diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 92eb646f480..5de2bd87e63 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,7 +25,7 @@ Your pull request should: * Tests should include reasonable permutations of the target fix/change * Include baseline changes with your change * All changed code must have 100% code coverage -* Follow the code conventions descriped in [Coding guidlines](https://github.com/Microsoft/TypeScript/wiki/Coding-guidlines) +* Follow the code conventions descriped in [Coding guidelines](https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines) * To avoid line ending issues, set `autocrlf = input` and `whitespace = cr-at-eol` in your git configuration ## Running the Tests diff --git a/Jakefile b/Jakefile index 2efd973a021..dcda1b648f2 100644 --- a/Jakefile +++ b/Jakefile @@ -105,24 +105,6 @@ var serverSources = [ return path.join(serverDirectory, f); }); -var definitionsRoots = [ - "compiler/types.d.ts", - "compiler/scanner.d.ts", - "compiler/parser.d.ts", - "compiler/checker.d.ts", - "compiler/program.d.ts", - "compiler/commandLineParser.d.ts", - "services/services.d.ts", -]; - -var internalDefinitionsRoots = [ - "compiler/core.d.ts", - "compiler/sys.d.ts", - "compiler/utilities.d.ts", - "compiler/commandLineParser.d.ts", - "services/utilities.d.ts", -]; - var harnessSources = [ "harness.ts", "sourceMapRecorder.ts", @@ -354,60 +336,32 @@ var tscFile = path.join(builtLocalDirectory, compilerFilename); compileFile(tscFile, compilerSources, [builtLocalDirectory, copyright].concat(compilerSources), [copyright], /*useBuiltCompiler:*/ false); var servicesFile = path.join(builtLocalDirectory, "typescriptServices.js"); +var standaloneDefinitionsFile = path.join(builtLocalDirectory, "typescriptServices.d.ts"); var nodePackageFile = path.join(builtLocalDirectory, "typescript.js"); +var nodeDefinitionsFile = path.join(builtLocalDirectory, "typescript.d.ts"); + compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].concat(servicesSources), /*prefixes*/ [copyright], /*useBuiltCompiler*/ true, /*noOutFile*/ false, - /*generateDeclarations*/ false, + /*generateDeclarations*/ true, /*outDir*/ undefined, /*preserveConstEnums*/ true, - /*keepComments*/ false, + /*keepComments*/ true, /*noResolve*/ false, - /*stripInternal*/ false, + /*stripInternal*/ true, /*callback*/ function () { jake.cpR(servicesFile, nodePackageFile, {silent: true}); + + prependFile(copyright, standaloneDefinitionsFile); + + // Create the node definition file by replacing 'ts' module with '"typescript"' as a module. + jake.cpR(standaloneDefinitionsFile, nodeDefinitionsFile, {silent: true}); + var definitionFileContents = fs.readFileSync(nodeDefinitionsFile).toString(); + definitionFileContents = definitionFileContents.replace(/declare module ts/g, 'declare module "typescript"'); + fs.writeFileSync(nodeDefinitionsFile, definitionFileContents); }); -var nodeDefinitionsFile = path.join(builtLocalDirectory, "typescript.d.ts"); -var standaloneDefinitionsFile = path.join(builtLocalDirectory, "typescriptServices.d.ts"); -var internalNodeDefinitionsFile = path.join(builtLocalDirectory, "typescript_internal.d.ts"); -var internalStandaloneDefinitionsFile = path.join(builtLocalDirectory, "typescriptServices_internal.d.ts"); -var tempDirPath = path.join(builtLocalDirectory, "temptempdir"); -compileFile(nodeDefinitionsFile, servicesSources,[builtLocalDirectory, copyright].concat(servicesSources), - /*prefixes*/ undefined, - /*useBuiltCompiler*/ true, - /*noOutFile*/ true, - /*generateDeclarations*/ true, - /*outDir*/ tempDirPath, - /*preserveConstEnums*/ true, - /*keepComments*/ true, - /*noResolve*/ true, - /*stripInternal*/ true, - /*callback*/ function () { - function makeDefinitionFiles(definitionsRoots, standaloneDefinitionsFile, nodeDefinitionsFile) { - // Create the standalone definition file - concatenateFiles(standaloneDefinitionsFile, definitionsRoots.map(function (f) { - return path.join(tempDirPath, f); - })); - prependFile(copyright, standaloneDefinitionsFile); - - // Create the node definition file by replacing 'ts' module with '"typescript"' as a module. - jake.cpR(standaloneDefinitionsFile, nodeDefinitionsFile, {silent: true}); - var definitionFileContents = fs.readFileSync(nodeDefinitionsFile).toString(); - definitionFileContents = definitionFileContents.replace(/declare module ts/g, 'declare module "typescript"'); - fs.writeFileSync(nodeDefinitionsFile, definitionFileContents); - } - - // Create the public definition files - makeDefinitionFiles(definitionsRoots, standaloneDefinitionsFile, nodeDefinitionsFile); - - // Create the internal definition files - makeDefinitionFiles(internalDefinitionsRoots, internalStandaloneDefinitionsFile, internalNodeDefinitionsFile); - - // Delete the temp dir - jake.rmRf(tempDirPath, {silent: true}); - }); var serverFile = path.join(builtLocalDirectory, "tsserver.js"); compileFile(serverFile, serverSources,[builtLocalDirectory, copyright].concat(serverSources), /*prefixes*/ [copyright], /*useBuiltCompiler*/ true); @@ -469,7 +423,7 @@ task("generate-spec", [specMd]) // Makes a new LKG. This target does not build anything, but errors if not all the outputs are present in the built/local directory desc("Makes a new LKG out of the built js files"); task("LKG", ["clean", "release", "local"].concat(libraryTargets), function() { - var expectedFiles = [tscFile, servicesFile, serverFile, nodePackageFile, nodeDefinitionsFile, standaloneDefinitionsFile, internalNodeDefinitionsFile, internalStandaloneDefinitionsFile].concat(libraryTargets); + var expectedFiles = [tscFile, servicesFile, serverFile, nodePackageFile, nodeDefinitionsFile, standaloneDefinitionsFile].concat(libraryTargets); var missingFiles = expectedFiles.filter(function (f) { return !fs.existsSync(f); }); diff --git a/bin/lib.core.d.ts b/bin/lib.core.d.ts index bc4225b0d82..8a2561af13a 100644 --- a/bin/lib.core.d.ts +++ b/bin/lib.core.d.ts @@ -838,7 +838,7 @@ interface RegExp { */ test(string: string): boolean; - /** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */ + /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */ source: string; /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */ @@ -1183,4 +1183,4 @@ interface TypedPropertyDescriptor { declare type ClassDecorator = (target: TFunction) => TFunction | void; declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; -declare type ParameterDecorator = (target: Function, propertyKey: string | symbol, parameterIndex: number) => void; +declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void; diff --git a/bin/lib.core.es6.d.ts b/bin/lib.core.es6.d.ts index 97c1c7d1b40..0b963774071 100644 --- a/bin/lib.core.es6.d.ts +++ b/bin/lib.core.es6.d.ts @@ -838,7 +838,7 @@ interface RegExp { */ test(string: string): boolean; - /** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */ + /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */ source: string; /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */ @@ -1183,7 +1183,7 @@ interface TypedPropertyDescriptor { declare type ClassDecorator = (target: TFunction) => TFunction | void; declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; -declare type ParameterDecorator = (target: Function, propertyKey: string | symbol, parameterIndex: number) => void; +declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void; declare type PropertyKey = string | number | symbol; interface Symbol { @@ -1236,26 +1236,21 @@ interface SymbolConstructor { */ isConcatSpreadable: symbol; - /** - * A Boolean value that if true indicates that an object may be used as a regular expression. - */ - isRegExp: symbol; - /** * A method that returns the default iterator for an object.Called by the semantics of the - * for-of statement. + * for-of statement. */ iterator: symbol; /** * A method that converts an object to a corresponding primitive value.Called by the ToPrimitive - * abstract operation. + * abstract operation. */ toPrimitive: symbol; /** - * A String value that is used in the creation of the default string description of an object. - * Called by the built- in method Object.prototype.toString. + * A String value that is used in the creation of the default string description of an object. + * Called by the built-in method Object.prototype.toString. */ toStringTag: symbol; @@ -1297,7 +1292,7 @@ interface ObjectConstructor { getOwnPropertySymbols(o: any): symbol[]; /** - * Returns true if the values are the same value, false otherwise. + * Returns true if the values are the same value, false otherwise. * @param value1 The first value. * @param value2 The second value. */ @@ -1784,8 +1779,6 @@ interface Math { } interface RegExp { - [Symbol.isRegExp]: boolean; - /** * Matches a string with a regular expression, and returns an array containing the results of * that search. @@ -1817,6 +1810,20 @@ interface RegExp { */ split(string: string, limit?: number): string[]; + /** + * Returns a string indicating the flags of the regular expression in question. This field is read-only. + * The characters in this string are sequenced and concatenated in the following order: + * + * - "g" for global + * - "i" for ignoreCase + * - "m" for multiline + * - "u" for unicode + * - "y" for sticky + * + * If no flags are set, the value is the empty string. + */ + flags: string; + /** * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular * expression. Default is false. Read-only. @@ -4699,27 +4706,27 @@ interface ProxyHandler { interface ProxyConstructor { revocable(target: T, handler: ProxyHandler): { proxy: T; revoke: () => void; }; - new (target: T, handeler: ProxyHandler): T + new (target: T, handler: ProxyHandler): T } declare var Proxy: ProxyConstructor; -declare var Reflect: { - apply(target: Function, thisArgument: any, argumentsList: ArrayLike): any; - construct(target: Function, argumentsList: ArrayLike): any; - defineProperty(target: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean; - deleteProperty(target: any, propertyKey: PropertyKey): boolean; - enumerate(target: any): IterableIterator; - get(target: any, propertyKey: PropertyKey, receiver?: any): any; - getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): PropertyDescriptor; - getPrototypeOf(target: any): any; - has(target: any, propertyKey: string): boolean; - has(target: any, propertyKey: symbol): boolean; - isExtensible(target: any): boolean; - ownKeys(target: any): Array; - preventExtensions(target: any): boolean; - set(target: any, propertyKey: PropertyKey, value: any, receiver? :any): boolean; - setPrototypeOf(target: any, proto: any): boolean; -}; +declare module Reflect { + function apply(target: Function, thisArgument: any, argumentsList: ArrayLike): any; + function construct(target: Function, argumentsList: ArrayLike): any; + function defineProperty(target: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean; + function deleteProperty(target: any, propertyKey: PropertyKey): boolean; + function enumerate(target: any): IterableIterator; + function get(target: any, propertyKey: PropertyKey, receiver?: any): any; + function getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): PropertyDescriptor; + function getPrototypeOf(target: any): any; + function has(target: any, propertyKey: string): boolean; + function has(target: any, propertyKey: symbol): boolean; + function isExtensible(target: any): boolean; + function ownKeys(target: any): Array; + function preventExtensions(target: any): boolean; + function set(target: any, propertyKey: PropertyKey, value: any, receiver? :any): boolean; + function setPrototypeOf(target: any, proto: any): boolean; +} /** * Represents the completion of an asynchronous operation diff --git a/bin/lib.d.ts b/bin/lib.d.ts index e0fdf442967..0d05939c9bb 100644 --- a/bin/lib.d.ts +++ b/bin/lib.d.ts @@ -838,7 +838,7 @@ interface RegExp { */ test(string: string): boolean; - /** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */ + /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */ source: string; /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */ @@ -1183,7 +1183,7 @@ interface TypedPropertyDescriptor { declare type ClassDecorator = (target: TFunction) => TFunction | void; declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; -declare type ParameterDecorator = (target: Function, propertyKey: string | symbol, parameterIndex: number) => void; +declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void; ///////////////////////////// /// IE10 ECMAScript Extensions diff --git a/bin/lib.es6.d.ts b/bin/lib.es6.d.ts index edc51cad7cc..4083865b6e9 100644 --- a/bin/lib.es6.d.ts +++ b/bin/lib.es6.d.ts @@ -838,7 +838,7 @@ interface RegExp { */ test(string: string): boolean; - /** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */ + /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */ source: string; /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */ @@ -1183,7 +1183,7 @@ interface TypedPropertyDescriptor { declare type ClassDecorator = (target: TFunction) => TFunction | void; declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; -declare type ParameterDecorator = (target: Function, propertyKey: string | symbol, parameterIndex: number) => void; +declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void; declare type PropertyKey = string | number | symbol; interface Symbol { @@ -1236,26 +1236,21 @@ interface SymbolConstructor { */ isConcatSpreadable: symbol; - /** - * A Boolean value that if true indicates that an object may be used as a regular expression. - */ - isRegExp: symbol; - /** * A method that returns the default iterator for an object.Called by the semantics of the - * for-of statement. + * for-of statement. */ iterator: symbol; /** * A method that converts an object to a corresponding primitive value.Called by the ToPrimitive - * abstract operation. + * abstract operation. */ toPrimitive: symbol; /** - * A String value that is used in the creation of the default string description of an object. - * Called by the built- in method Object.prototype.toString. + * A String value that is used in the creation of the default string description of an object. + * Called by the built-in method Object.prototype.toString. */ toStringTag: symbol; @@ -1297,7 +1292,7 @@ interface ObjectConstructor { getOwnPropertySymbols(o: any): symbol[]; /** - * Returns true if the values are the same value, false otherwise. + * Returns true if the values are the same value, false otherwise. * @param value1 The first value. * @param value2 The second value. */ @@ -1784,8 +1779,6 @@ interface Math { } interface RegExp { - [Symbol.isRegExp]: boolean; - /** * Matches a string with a regular expression, and returns an array containing the results of * that search. @@ -1817,6 +1810,20 @@ interface RegExp { */ split(string: string, limit?: number): string[]; + /** + * Returns a string indicating the flags of the regular expression in question. This field is read-only. + * The characters in this string are sequenced and concatenated in the following order: + * + * - "g" for global + * - "i" for ignoreCase + * - "m" for multiline + * - "u" for unicode + * - "y" for sticky + * + * If no flags are set, the value is the empty string. + */ + flags: string; + /** * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular * expression. Default is false. Read-only. @@ -4699,27 +4706,27 @@ interface ProxyHandler { interface ProxyConstructor { revocable(target: T, handler: ProxyHandler): { proxy: T; revoke: () => void; }; - new (target: T, handeler: ProxyHandler): T + new (target: T, handler: ProxyHandler): T } declare var Proxy: ProxyConstructor; -declare var Reflect: { - apply(target: Function, thisArgument: any, argumentsList: ArrayLike): any; - construct(target: Function, argumentsList: ArrayLike): any; - defineProperty(target: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean; - deleteProperty(target: any, propertyKey: PropertyKey): boolean; - enumerate(target: any): IterableIterator; - get(target: any, propertyKey: PropertyKey, receiver?: any): any; - getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): PropertyDescriptor; - getPrototypeOf(target: any): any; - has(target: any, propertyKey: string): boolean; - has(target: any, propertyKey: symbol): boolean; - isExtensible(target: any): boolean; - ownKeys(target: any): Array; - preventExtensions(target: any): boolean; - set(target: any, propertyKey: PropertyKey, value: any, receiver? :any): boolean; - setPrototypeOf(target: any, proto: any): boolean; -}; +declare module Reflect { + function apply(target: Function, thisArgument: any, argumentsList: ArrayLike): any; + function construct(target: Function, argumentsList: ArrayLike): any; + function defineProperty(target: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean; + function deleteProperty(target: any, propertyKey: PropertyKey): boolean; + function enumerate(target: any): IterableIterator; + function get(target: any, propertyKey: PropertyKey, receiver?: any): any; + function getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): PropertyDescriptor; + function getPrototypeOf(target: any): any; + function has(target: any, propertyKey: string): boolean; + function has(target: any, propertyKey: symbol): boolean; + function isExtensible(target: any): boolean; + function ownKeys(target: any): Array; + function preventExtensions(target: any): boolean; + function set(target: any, propertyKey: PropertyKey, value: any, receiver? :any): boolean; + function setPrototypeOf(target: any, proto: any): boolean; +} /** * Represents the completion of an asynchronous operation diff --git a/bin/tsc.js b/bin/tsc.js index 2acb2dd3a12..52ffd2b3b1b 100644 --- a/bin/tsc.js +++ b/bin/tsc.js @@ -277,13 +277,13 @@ var ts; ts.arrayToMap = arrayToMap; function formatStringFromArgs(text, args, baseIndex) { baseIndex = baseIndex || 0; - return text.replace(/{(\d+)}/g, function (match, index) { - return args[+index + baseIndex]; - }); + return text.replace(/{(\d+)}/g, function (match, index) { return args[+index + baseIndex]; }); } ts.localizedDiagnosticMessages = undefined; function getLocaleSpecificMessage(message) { - return ts.localizedDiagnosticMessages && ts.localizedDiagnosticMessages[message] ? ts.localizedDiagnosticMessages[message] : message; + return ts.localizedDiagnosticMessages && ts.localizedDiagnosticMessages[message] + ? ts.localizedDiagnosticMessages[message] + : message; } ts.getLocaleSpecificMessage = getLocaleSpecificMessage; function createFileDiagnostic(file, start, length, message) { @@ -354,7 +354,12 @@ var ts; return diagnostic.file ? diagnostic.file.fileName : undefined; } function compareDiagnostics(d1, d2) { - return compareValues(getDiagnosticFileName(d1), getDiagnosticFileName(d2)) || compareValues(d1.start, d2.start) || compareValues(d1.length, d2.length) || compareValues(d1.code, d2.code) || compareMessageText(d1.messageText, d2.messageText) || 0; + return compareValues(getDiagnosticFileName(d1), getDiagnosticFileName(d2)) || + compareValues(d1.start, d2.start) || + compareValues(d1.length, d2.length) || + compareValues(d1.code, d2.code) || + compareMessageText(d1.messageText, d2.messageText) || + 0; } ts.compareDiagnostics = compareDiagnostics; function compareMessageText(text1, text2) { @@ -381,9 +386,7 @@ var ts; if (diagnostics.length < 2) { return diagnostics; } - var newDiagnostics = [ - diagnostics[0] - ]; + var newDiagnostics = [diagnostics[0]]; var previousDiagnostic = diagnostics[0]; for (var i = 1; i < diagnostics.length; i++) { var currentDiagnostic = diagnostics[i]; @@ -417,6 +420,9 @@ var ts; return 3; return 2; } + var idx = path.indexOf('://'); + if (idx !== -1) + return idx + 3; return 0; } ts.getRootLength = getRootLength; @@ -460,9 +466,7 @@ var ts; ts.isRootedDiskPath = isRootedDiskPath; function normalizedPathComponents(path, rootLength) { var normalizedParts = getNormalizedParts(path, rootLength); - return [ - path.substr(0, rootLength) - ].concat(normalizedParts); + return [path.substr(0, rootLength)].concat(normalizedParts); } function getNormalizedPathComponents(path, currentDirectory) { path = normalizeSlashes(path); @@ -499,9 +503,7 @@ var ts; } } if (rootLength === urlLength) { - return [ - url - ]; + return [url]; } var indexOfNextSlash = url.indexOf(ts.directorySeparator, rootLength); if (indexOfNextSlash !== -1) { @@ -509,9 +511,7 @@ var ts; return normalizedPathComponents(url, rootLength); } else { - return [ - url + ts.directorySeparator - ]; + return [url + ts.directorySeparator]; } } function getNormalizedPathOrUrlComponents(pathOrUrl, currentDirectory) { @@ -573,11 +573,7 @@ var ts; return pathLen > extLen && path.substr(pathLen - extLen, extLen) === extension; } ts.fileExtensionIs = fileExtensionIs; - var supportedExtensions = [ - ".d.ts", - ".ts", - ".js" - ]; + var supportedExtensions = [".d.ts", ".ts", ".js"]; function removeFileExtension(path) { for (var _i = 0; _i < supportedExtensions.length; _i++) { var ext = supportedExtensions[_i]; @@ -631,15 +627,9 @@ var ts; }; return Node; }, - getSymbolConstructor: function () { - return Symbol; - }, - getTypeConstructor: function () { - return Type; - }, - getSignatureConstructor: function () { - return Signature; - } + getSymbolConstructor: function () { return Symbol; }, + getTypeConstructor: function () { return Type; }, + getSignatureConstructor: function () { return Signature; } }; var Debug; (function (Debug) { @@ -861,14 +851,9 @@ var ts; readFile: readFile, writeFile: writeFile, watchFile: function (fileName, callback) { - _fs.watchFile(fileName, { - persistent: true, - interval: 250 - }, fileChanged); + _fs.watchFile(fileName, { persistent: true, interval: 250 }, fileChanged); return { - close: function () { - _fs.unwatchFile(fileName, fileChanged); - } + close: function () { _fs.unwatchFile(fileName, fileChanged); } }; function fileChanged(curr, prev) { if (+curr.mtime <= +prev.mtime) { @@ -925,2546 +910,531 @@ var ts; var ts; (function (ts) { ts.Diagnostics = { - Unterminated_string_literal: { - code: 1002, - category: ts.DiagnosticCategory.Error, - key: "Unterminated string literal." - }, - Identifier_expected: { - code: 1003, - category: ts.DiagnosticCategory.Error, - key: "Identifier expected." - }, - _0_expected: { - code: 1005, - category: ts.DiagnosticCategory.Error, - key: "'{0}' expected." - }, - A_file_cannot_have_a_reference_to_itself: { - code: 1006, - category: ts.DiagnosticCategory.Error, - key: "A file cannot have a reference to itself." - }, - Trailing_comma_not_allowed: { - code: 1009, - category: ts.DiagnosticCategory.Error, - key: "Trailing comma not allowed." - }, - Asterisk_Slash_expected: { - code: 1010, - category: ts.DiagnosticCategory.Error, - key: "'*/' expected." - }, - Unexpected_token: { - code: 1012, - category: ts.DiagnosticCategory.Error, - key: "Unexpected token." - }, - A_rest_parameter_must_be_last_in_a_parameter_list: { - code: 1014, - category: ts.DiagnosticCategory.Error, - key: "A rest parameter must be last in a parameter list." - }, - Parameter_cannot_have_question_mark_and_initializer: { - code: 1015, - category: ts.DiagnosticCategory.Error, - key: "Parameter cannot have question mark and initializer." - }, - A_required_parameter_cannot_follow_an_optional_parameter: { - code: 1016, - category: ts.DiagnosticCategory.Error, - key: "A required parameter cannot follow an optional parameter." - }, - An_index_signature_cannot_have_a_rest_parameter: { - code: 1017, - category: ts.DiagnosticCategory.Error, - key: "An index signature cannot have a rest parameter." - }, - An_index_signature_parameter_cannot_have_an_accessibility_modifier: { - code: 1018, - category: ts.DiagnosticCategory.Error, - key: "An index signature parameter cannot have an accessibility modifier." - }, - An_index_signature_parameter_cannot_have_a_question_mark: { - code: 1019, - category: ts.DiagnosticCategory.Error, - key: "An index signature parameter cannot have a question mark." - }, - An_index_signature_parameter_cannot_have_an_initializer: { - code: 1020, - category: ts.DiagnosticCategory.Error, - key: "An index signature parameter cannot have an initializer." - }, - An_index_signature_must_have_a_type_annotation: { - code: 1021, - category: ts.DiagnosticCategory.Error, - key: "An index signature must have a type annotation." - }, - An_index_signature_parameter_must_have_a_type_annotation: { - code: 1022, - category: ts.DiagnosticCategory.Error, - key: "An index signature parameter must have a type annotation." - }, - An_index_signature_parameter_type_must_be_string_or_number: { - code: 1023, - category: ts.DiagnosticCategory.Error, - key: "An index signature parameter type must be 'string' or 'number'." - }, - A_class_or_interface_declaration_can_only_have_one_extends_clause: { - code: 1024, - category: ts.DiagnosticCategory.Error, - key: "A class or interface declaration can only have one 'extends' clause." - }, - An_extends_clause_must_precede_an_implements_clause: { - code: 1025, - category: ts.DiagnosticCategory.Error, - key: "An 'extends' clause must precede an 'implements' clause." - }, - A_class_can_only_extend_a_single_class: { - code: 1026, - category: ts.DiagnosticCategory.Error, - key: "A class can only extend a single class." - }, - A_class_declaration_can_only_have_one_implements_clause: { - code: 1027, - category: ts.DiagnosticCategory.Error, - key: "A class declaration can only have one 'implements' clause." - }, - Accessibility_modifier_already_seen: { - code: 1028, - category: ts.DiagnosticCategory.Error, - key: "Accessibility modifier already seen." - }, - _0_modifier_must_precede_1_modifier: { - code: 1029, - category: ts.DiagnosticCategory.Error, - key: "'{0}' modifier must precede '{1}' modifier." - }, - _0_modifier_already_seen: { - code: 1030, - category: ts.DiagnosticCategory.Error, - key: "'{0}' modifier already seen." - }, - _0_modifier_cannot_appear_on_a_class_element: { - code: 1031, - category: ts.DiagnosticCategory.Error, - key: "'{0}' modifier cannot appear on a class element." - }, - An_interface_declaration_cannot_have_an_implements_clause: { - code: 1032, - category: ts.DiagnosticCategory.Error, - key: "An interface declaration cannot have an 'implements' clause." - }, - super_must_be_followed_by_an_argument_list_or_member_access: { - code: 1034, - category: ts.DiagnosticCategory.Error, - key: "'super' must be followed by an argument list or member access." - }, - Only_ambient_modules_can_use_quoted_names: { - code: 1035, - category: ts.DiagnosticCategory.Error, - key: "Only ambient modules can use quoted names." - }, - Statements_are_not_allowed_in_ambient_contexts: { - code: 1036, - category: ts.DiagnosticCategory.Error, - key: "Statements are not allowed in ambient contexts." - }, - A_declare_modifier_cannot_be_used_in_an_already_ambient_context: { - code: 1038, - category: ts.DiagnosticCategory.Error, - key: "A 'declare' modifier cannot be used in an already ambient context." - }, - Initializers_are_not_allowed_in_ambient_contexts: { - code: 1039, - category: ts.DiagnosticCategory.Error, - key: "Initializers are not allowed in ambient contexts." - }, - _0_modifier_cannot_appear_on_a_module_element: { - code: 1044, - category: ts.DiagnosticCategory.Error, - key: "'{0}' modifier cannot appear on a module element." - }, - A_declare_modifier_cannot_be_used_with_an_interface_declaration: { - code: 1045, - category: ts.DiagnosticCategory.Error, - key: "A 'declare' modifier cannot be used with an interface declaration." - }, - A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file: { - code: 1046, - category: ts.DiagnosticCategory.Error, - key: "A 'declare' modifier is required for a top level declaration in a .d.ts file." - }, - A_rest_parameter_cannot_be_optional: { - code: 1047, - category: ts.DiagnosticCategory.Error, - key: "A rest parameter cannot be optional." - }, - A_rest_parameter_cannot_have_an_initializer: { - code: 1048, - category: ts.DiagnosticCategory.Error, - key: "A rest parameter cannot have an initializer." - }, - A_set_accessor_must_have_exactly_one_parameter: { - code: 1049, - category: ts.DiagnosticCategory.Error, - key: "A 'set' accessor must have exactly one parameter." - }, - A_set_accessor_cannot_have_an_optional_parameter: { - code: 1051, - category: ts.DiagnosticCategory.Error, - key: "A 'set' accessor cannot have an optional parameter." - }, - A_set_accessor_parameter_cannot_have_an_initializer: { - code: 1052, - category: ts.DiagnosticCategory.Error, - key: "A 'set' accessor parameter cannot have an initializer." - }, - A_set_accessor_cannot_have_rest_parameter: { - code: 1053, - category: ts.DiagnosticCategory.Error, - key: "A 'set' accessor cannot have rest parameter." - }, - A_get_accessor_cannot_have_parameters: { - code: 1054, - category: ts.DiagnosticCategory.Error, - key: "A 'get' accessor cannot have parameters." - }, - Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher: { - code: 1056, - category: ts.DiagnosticCategory.Error, - key: "Accessors are only available when targeting ECMAScript 5 and higher." - }, - Enum_member_must_have_initializer: { - code: 1061, - category: ts.DiagnosticCategory.Error, - key: "Enum member must have initializer." - }, - An_export_assignment_cannot_be_used_in_an_internal_module: { - code: 1063, - category: ts.DiagnosticCategory.Error, - key: "An export assignment cannot be used in an internal module." - }, - Ambient_enum_elements_can_only_have_integer_literal_initializers: { - code: 1066, - category: ts.DiagnosticCategory.Error, - key: "Ambient enum elements can only have integer literal initializers." - }, - Unexpected_token_A_constructor_method_accessor_or_property_was_expected: { - code: 1068, - category: ts.DiagnosticCategory.Error, - key: "Unexpected token. A constructor, method, accessor, or property was expected." - }, - A_declare_modifier_cannot_be_used_with_an_import_declaration: { - code: 1079, - category: ts.DiagnosticCategory.Error, - key: "A 'declare' modifier cannot be used with an import declaration." - }, - Invalid_reference_directive_syntax: { - code: 1084, - category: ts.DiagnosticCategory.Error, - key: "Invalid 'reference' directive syntax." - }, - Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: { - code: 1085, - category: ts.DiagnosticCategory.Error, - key: "Octal literals are not available when targeting ECMAScript 5 and higher." - }, - An_accessor_cannot_be_declared_in_an_ambient_context: { - code: 1086, - category: ts.DiagnosticCategory.Error, - key: "An accessor cannot be declared in an ambient context." - }, - _0_modifier_cannot_appear_on_a_constructor_declaration: { - code: 1089, - category: ts.DiagnosticCategory.Error, - key: "'{0}' modifier cannot appear on a constructor declaration." - }, - _0_modifier_cannot_appear_on_a_parameter: { - code: 1090, - category: ts.DiagnosticCategory.Error, - key: "'{0}' modifier cannot appear on a parameter." - }, - Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement: { - code: 1091, - category: ts.DiagnosticCategory.Error, - key: "Only a single variable declaration is allowed in a 'for...in' statement." - }, - Type_parameters_cannot_appear_on_a_constructor_declaration: { - code: 1092, - category: ts.DiagnosticCategory.Error, - key: "Type parameters cannot appear on a constructor declaration." - }, - Type_annotation_cannot_appear_on_a_constructor_declaration: { - code: 1093, - category: ts.DiagnosticCategory.Error, - key: "Type annotation cannot appear on a constructor declaration." - }, - An_accessor_cannot_have_type_parameters: { - code: 1094, - category: ts.DiagnosticCategory.Error, - key: "An accessor cannot have type parameters." - }, - A_set_accessor_cannot_have_a_return_type_annotation: { - code: 1095, - category: ts.DiagnosticCategory.Error, - key: "A 'set' accessor cannot have a return type annotation." - }, - An_index_signature_must_have_exactly_one_parameter: { - code: 1096, - category: ts.DiagnosticCategory.Error, - key: "An index signature must have exactly one parameter." - }, - _0_list_cannot_be_empty: { - code: 1097, - category: ts.DiagnosticCategory.Error, - key: "'{0}' list cannot be empty." - }, - Type_parameter_list_cannot_be_empty: { - code: 1098, - category: ts.DiagnosticCategory.Error, - key: "Type parameter list cannot be empty." - }, - Type_argument_list_cannot_be_empty: { - code: 1099, - category: ts.DiagnosticCategory.Error, - key: "Type argument list cannot be empty." - }, - Invalid_use_of_0_in_strict_mode: { - code: 1100, - category: ts.DiagnosticCategory.Error, - key: "Invalid use of '{0}' in strict mode." - }, - with_statements_are_not_allowed_in_strict_mode: { - code: 1101, - category: ts.DiagnosticCategory.Error, - key: "'with' statements are not allowed in strict mode." - }, - delete_cannot_be_called_on_an_identifier_in_strict_mode: { - code: 1102, - category: ts.DiagnosticCategory.Error, - key: "'delete' cannot be called on an identifier in strict mode." - }, - A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement: { - code: 1104, - category: ts.DiagnosticCategory.Error, - key: "A 'continue' statement can only be used within an enclosing iteration statement." - }, - A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement: { - code: 1105, - category: ts.DiagnosticCategory.Error, - key: "A 'break' statement can only be used within an enclosing iteration or switch statement." - }, - Jump_target_cannot_cross_function_boundary: { - code: 1107, - category: ts.DiagnosticCategory.Error, - key: "Jump target cannot cross function boundary." - }, - A_return_statement_can_only_be_used_within_a_function_body: { - code: 1108, - category: ts.DiagnosticCategory.Error, - key: "A 'return' statement can only be used within a function body." - }, - Expression_expected: { - code: 1109, - category: ts.DiagnosticCategory.Error, - key: "Expression expected." - }, - Type_expected: { - code: 1110, - category: ts.DiagnosticCategory.Error, - key: "Type expected." - }, - A_class_member_cannot_be_declared_optional: { - code: 1112, - category: ts.DiagnosticCategory.Error, - key: "A class member cannot be declared optional." - }, - A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: { - code: 1113, - category: ts.DiagnosticCategory.Error, - key: "A 'default' clause cannot appear more than once in a 'switch' statement." - }, - Duplicate_label_0: { - code: 1114, - category: ts.DiagnosticCategory.Error, - key: "Duplicate label '{0}'" - }, - A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: { - code: 1115, - category: ts.DiagnosticCategory.Error, - key: "A 'continue' statement can only jump to a label of an enclosing iteration statement." - }, - A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement: { - code: 1116, - category: ts.DiagnosticCategory.Error, - key: "A 'break' statement can only jump to a label of an enclosing statement." - }, - An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode: { - code: 1117, - category: ts.DiagnosticCategory.Error, - key: "An object literal cannot have multiple properties with the same name in strict mode." - }, - An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name: { - code: 1118, - category: ts.DiagnosticCategory.Error, - key: "An object literal cannot have multiple get/set accessors with the same name." - }, - An_object_literal_cannot_have_property_and_accessor_with_the_same_name: { - code: 1119, - category: ts.DiagnosticCategory.Error, - key: "An object literal cannot have property and accessor with the same name." - }, - An_export_assignment_cannot_have_modifiers: { - code: 1120, - category: ts.DiagnosticCategory.Error, - key: "An export assignment cannot have modifiers." - }, - Octal_literals_are_not_allowed_in_strict_mode: { - code: 1121, - category: ts.DiagnosticCategory.Error, - key: "Octal literals are not allowed in strict mode." - }, - A_tuple_type_element_list_cannot_be_empty: { - code: 1122, - category: ts.DiagnosticCategory.Error, - key: "A tuple type element list cannot be empty." - }, - Variable_declaration_list_cannot_be_empty: { - code: 1123, - category: ts.DiagnosticCategory.Error, - key: "Variable declaration list cannot be empty." - }, - Digit_expected: { - code: 1124, - category: ts.DiagnosticCategory.Error, - key: "Digit expected." - }, - Hexadecimal_digit_expected: { - code: 1125, - category: ts.DiagnosticCategory.Error, - key: "Hexadecimal digit expected." - }, - Unexpected_end_of_text: { - code: 1126, - category: ts.DiagnosticCategory.Error, - key: "Unexpected end of text." - }, - Invalid_character: { - code: 1127, - category: ts.DiagnosticCategory.Error, - key: "Invalid character." - }, - Declaration_or_statement_expected: { - code: 1128, - category: ts.DiagnosticCategory.Error, - key: "Declaration or statement expected." - }, - Statement_expected: { - code: 1129, - category: ts.DiagnosticCategory.Error, - key: "Statement expected." - }, - case_or_default_expected: { - code: 1130, - category: ts.DiagnosticCategory.Error, - key: "'case' or 'default' expected." - }, - Property_or_signature_expected: { - code: 1131, - category: ts.DiagnosticCategory.Error, - key: "Property or signature expected." - }, - Enum_member_expected: { - code: 1132, - category: ts.DiagnosticCategory.Error, - key: "Enum member expected." - }, - Type_reference_expected: { - code: 1133, - category: ts.DiagnosticCategory.Error, - key: "Type reference expected." - }, - Variable_declaration_expected: { - code: 1134, - category: ts.DiagnosticCategory.Error, - key: "Variable declaration expected." - }, - Argument_expression_expected: { - code: 1135, - category: ts.DiagnosticCategory.Error, - key: "Argument expression expected." - }, - Property_assignment_expected: { - code: 1136, - category: ts.DiagnosticCategory.Error, - key: "Property assignment expected." - }, - Expression_or_comma_expected: { - code: 1137, - category: ts.DiagnosticCategory.Error, - key: "Expression or comma expected." - }, - Parameter_declaration_expected: { - code: 1138, - category: ts.DiagnosticCategory.Error, - key: "Parameter declaration expected." - }, - Type_parameter_declaration_expected: { - code: 1139, - category: ts.DiagnosticCategory.Error, - key: "Type parameter declaration expected." - }, - Type_argument_expected: { - code: 1140, - category: ts.DiagnosticCategory.Error, - key: "Type argument expected." - }, - String_literal_expected: { - code: 1141, - category: ts.DiagnosticCategory.Error, - key: "String literal expected." - }, - Line_break_not_permitted_here: { - code: 1142, - category: ts.DiagnosticCategory.Error, - key: "Line break not permitted here." - }, - or_expected: { - code: 1144, - category: ts.DiagnosticCategory.Error, - key: "'{' or ';' expected." - }, - Modifiers_not_permitted_on_index_signature_members: { - code: 1145, - category: ts.DiagnosticCategory.Error, - key: "Modifiers not permitted on index signature members." - }, - Declaration_expected: { - code: 1146, - category: ts.DiagnosticCategory.Error, - key: "Declaration expected." - }, - Import_declarations_in_an_internal_module_cannot_reference_an_external_module: { - code: 1147, - category: ts.DiagnosticCategory.Error, - key: "Import declarations in an internal module cannot reference an external module." - }, - Cannot_compile_external_modules_unless_the_module_flag_is_provided: { - code: 1148, - category: ts.DiagnosticCategory.Error, - key: "Cannot compile external modules unless the '--module' flag is provided." - }, - File_name_0_differs_from_already_included_file_name_1_only_in_casing: { - code: 1149, - category: ts.DiagnosticCategory.Error, - key: "File name '{0}' differs from already included file name '{1}' only in casing" - }, - new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead: { - code: 1150, - category: ts.DiagnosticCategory.Error, - key: "'new T[]' cannot be used to create an array. Use 'new Array()' instead." - }, - var_let_or_const_expected: { - code: 1152, - category: ts.DiagnosticCategory.Error, - key: "'var', 'let' or 'const' expected." - }, - let_declarations_are_only_available_when_targeting_ECMAScript_6_and_higher: { - code: 1153, - category: ts.DiagnosticCategory.Error, - key: "'let' declarations are only available when targeting ECMAScript 6 and higher." - }, - const_declarations_are_only_available_when_targeting_ECMAScript_6_and_higher: { - code: 1154, - category: ts.DiagnosticCategory.Error, - key: "'const' declarations are only available when targeting ECMAScript 6 and higher." - }, - const_declarations_must_be_initialized: { - code: 1155, - category: ts.DiagnosticCategory.Error, - key: "'const' declarations must be initialized" - }, - const_declarations_can_only_be_declared_inside_a_block: { - code: 1156, - category: ts.DiagnosticCategory.Error, - key: "'const' declarations can only be declared inside a block." - }, - let_declarations_can_only_be_declared_inside_a_block: { - code: 1157, - category: ts.DiagnosticCategory.Error, - key: "'let' declarations can only be declared inside a block." - }, - Unterminated_template_literal: { - code: 1160, - category: ts.DiagnosticCategory.Error, - key: "Unterminated template literal." - }, - Unterminated_regular_expression_literal: { - code: 1161, - category: ts.DiagnosticCategory.Error, - key: "Unterminated regular expression literal." - }, - An_object_member_cannot_be_declared_optional: { - code: 1162, - category: ts.DiagnosticCategory.Error, - key: "An object member cannot be declared optional." - }, - yield_expression_must_be_contained_within_a_generator_declaration: { - code: 1163, - category: ts.DiagnosticCategory.Error, - key: "'yield' expression must be contained_within a generator declaration." - }, - Computed_property_names_are_not_allowed_in_enums: { - code: 1164, - category: ts.DiagnosticCategory.Error, - key: "Computed property names are not allowed in enums." - }, - A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol: { - code: 1165, - category: ts.DiagnosticCategory.Error, - key: "A computed property name in an ambient context must directly refer to a built-in symbol." - }, - A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol: { - code: 1166, - category: ts.DiagnosticCategory.Error, - key: "A computed property name in a class property declaration must directly refer to a built-in symbol." - }, - Computed_property_names_are_only_available_when_targeting_ECMAScript_6_and_higher: { - code: 1167, - category: ts.DiagnosticCategory.Error, - key: "Computed property names are only available when targeting ECMAScript 6 and higher." - }, - A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol: { - code: 1168, - category: ts.DiagnosticCategory.Error, - key: "A computed property name in a method overload must directly refer to a built-in symbol." - }, - A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol: { - code: 1169, - category: ts.DiagnosticCategory.Error, - key: "A computed property name in an interface must directly refer to a built-in symbol." - }, - A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol: { - code: 1170, - category: ts.DiagnosticCategory.Error, - key: "A computed property name in a type literal must directly refer to a built-in symbol." - }, - A_comma_expression_is_not_allowed_in_a_computed_property_name: { - code: 1171, - category: ts.DiagnosticCategory.Error, - key: "A comma expression is not allowed in a computed property name." - }, - extends_clause_already_seen: { - code: 1172, - category: ts.DiagnosticCategory.Error, - key: "'extends' clause already seen." - }, - extends_clause_must_precede_implements_clause: { - code: 1173, - category: ts.DiagnosticCategory.Error, - key: "'extends' clause must precede 'implements' clause." - }, - Classes_can_only_extend_a_single_class: { - code: 1174, - category: ts.DiagnosticCategory.Error, - key: "Classes can only extend a single class." - }, - implements_clause_already_seen: { - code: 1175, - category: ts.DiagnosticCategory.Error, - key: "'implements' clause already seen." - }, - Interface_declaration_cannot_have_implements_clause: { - code: 1176, - category: ts.DiagnosticCategory.Error, - key: "Interface declaration cannot have 'implements' clause." - }, - Binary_digit_expected: { - code: 1177, - category: ts.DiagnosticCategory.Error, - key: "Binary digit expected." - }, - Octal_digit_expected: { - code: 1178, - category: ts.DiagnosticCategory.Error, - key: "Octal digit expected." - }, - Unexpected_token_expected: { - code: 1179, - category: ts.DiagnosticCategory.Error, - key: "Unexpected token. '{' expected." - }, - Property_destructuring_pattern_expected: { - code: 1180, - category: ts.DiagnosticCategory.Error, - key: "Property destructuring pattern expected." - }, - Array_element_destructuring_pattern_expected: { - code: 1181, - category: ts.DiagnosticCategory.Error, - key: "Array element destructuring pattern expected." - }, - A_destructuring_declaration_must_have_an_initializer: { - code: 1182, - category: ts.DiagnosticCategory.Error, - key: "A destructuring declaration must have an initializer." - }, - Destructuring_declarations_are_not_allowed_in_ambient_contexts: { - code: 1183, - category: ts.DiagnosticCategory.Error, - key: "Destructuring declarations are not allowed in ambient contexts." - }, - An_implementation_cannot_be_declared_in_ambient_contexts: { - code: 1184, - category: ts.DiagnosticCategory.Error, - key: "An implementation cannot be declared in ambient contexts." - }, - Modifiers_cannot_appear_here: { - code: 1184, - category: ts.DiagnosticCategory.Error, - key: "Modifiers cannot appear here." - }, - Merge_conflict_marker_encountered: { - code: 1185, - category: ts.DiagnosticCategory.Error, - key: "Merge conflict marker encountered." - }, - A_rest_element_cannot_have_an_initializer: { - code: 1186, - category: ts.DiagnosticCategory.Error, - key: "A rest element cannot have an initializer." - }, - A_parameter_property_may_not_be_a_binding_pattern: { - code: 1187, - category: ts.DiagnosticCategory.Error, - key: "A parameter property may not be a binding pattern." - }, - Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement: { - code: 1188, - category: ts.DiagnosticCategory.Error, - key: "Only a single variable declaration is allowed in a 'for...of' statement." - }, - The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer: { - code: 1189, - category: ts.DiagnosticCategory.Error, - key: "The variable declaration of a 'for...in' statement cannot have an initializer." - }, - The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer: { - code: 1190, - category: ts.DiagnosticCategory.Error, - key: "The variable declaration of a 'for...of' statement cannot have an initializer." - }, - An_import_declaration_cannot_have_modifiers: { - code: 1191, - category: ts.DiagnosticCategory.Error, - key: "An import declaration cannot have modifiers." - }, - External_module_0_has_no_default_export: { - code: 1192, - category: ts.DiagnosticCategory.Error, - key: "External module '{0}' has no default export." - }, - An_export_declaration_cannot_have_modifiers: { - code: 1193, - category: ts.DiagnosticCategory.Error, - key: "An export declaration cannot have modifiers." - }, - Export_declarations_are_not_permitted_in_an_internal_module: { - code: 1194, - category: ts.DiagnosticCategory.Error, - key: "Export declarations are not permitted in an internal module." - }, - Catch_clause_variable_name_must_be_an_identifier: { - code: 1195, - category: ts.DiagnosticCategory.Error, - key: "Catch clause variable name must be an identifier." - }, - Catch_clause_variable_cannot_have_a_type_annotation: { - code: 1196, - category: ts.DiagnosticCategory.Error, - key: "Catch clause variable cannot have a type annotation." - }, - Catch_clause_variable_cannot_have_an_initializer: { - code: 1197, - category: ts.DiagnosticCategory.Error, - key: "Catch clause variable cannot have an initializer." - }, - An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: { - code: 1198, - category: ts.DiagnosticCategory.Error, - key: "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive." - }, - Unterminated_Unicode_escape_sequence: { - code: 1199, - category: ts.DiagnosticCategory.Error, - key: "Unterminated Unicode escape sequence." - }, - Line_terminator_not_permitted_before_arrow: { - code: 1200, - category: ts.DiagnosticCategory.Error, - key: "Line terminator not permitted before arrow." - }, - A_type_annotation_on_an_export_statement_is_only_allowed_in_an_ambient_external_module_declaration: { - code: 1201, - category: ts.DiagnosticCategory.Error, - key: "A type annotation on an export statement is only allowed in an ambient external module declaration." - }, - Import_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_or_import_d_from_mod_instead: { - code: 1202, - category: ts.DiagnosticCategory.Error, - key: "Import assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"' or 'import d from \"mod\"' instead." - }, - Export_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_export_default_instead: { - code: 1203, - category: ts.DiagnosticCategory.Error, - key: "Export assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'export default' instead." - }, - Cannot_compile_external_modules_into_amd_or_commonjs_when_targeting_es6_or_higher: { - code: 1204, - category: ts.DiagnosticCategory.Error, - key: "Cannot compile external modules into amd or commonjs when targeting es6 or higher." - }, - Decorators_are_only_available_when_targeting_ECMAScript_5_and_higher: { - code: 1205, - category: ts.DiagnosticCategory.Error, - key: "Decorators are only available when targeting ECMAScript 5 and higher." - }, - Decorators_are_not_valid_here: { - code: 1206, - category: ts.DiagnosticCategory.Error, - key: "Decorators are not valid here." - }, - Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name: { - code: 1207, - category: ts.DiagnosticCategory.Error, - key: "Decorators cannot be applied to multiple get/set accessors of the same name." - }, - Cannot_compile_non_external_modules_when_the_separateCompilation_flag_is_provided: { - code: 1208, - category: ts.DiagnosticCategory.Error, - key: "Cannot compile non-external modules when the '--separateCompilation' flag is provided." - }, - Ambient_const_enums_are_not_allowed_when_the_separateCompilation_flag_is_provided: { - code: 1209, - category: ts.DiagnosticCategory.Error, - key: "Ambient const enums are not allowed when the '--separateCompilation' flag is provided." - }, - Duplicate_identifier_0: { - code: 2300, - category: ts.DiagnosticCategory.Error, - key: "Duplicate identifier '{0}'." - }, - Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: { - code: 2301, - category: ts.DiagnosticCategory.Error, - key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor." - }, - Static_members_cannot_reference_class_type_parameters: { - code: 2302, - category: ts.DiagnosticCategory.Error, - key: "Static members cannot reference class type parameters." - }, - Circular_definition_of_import_alias_0: { - code: 2303, - category: ts.DiagnosticCategory.Error, - key: "Circular definition of import alias '{0}'." - }, - Cannot_find_name_0: { - code: 2304, - category: ts.DiagnosticCategory.Error, - key: "Cannot find name '{0}'." - }, - Module_0_has_no_exported_member_1: { - code: 2305, - category: ts.DiagnosticCategory.Error, - key: "Module '{0}' has no exported member '{1}'." - }, - File_0_is_not_an_external_module: { - code: 2306, - category: ts.DiagnosticCategory.Error, - key: "File '{0}' is not an external module." - }, - Cannot_find_external_module_0: { - code: 2307, - category: ts.DiagnosticCategory.Error, - key: "Cannot find external module '{0}'." - }, - A_module_cannot_have_more_than_one_export_assignment: { - code: 2308, - category: ts.DiagnosticCategory.Error, - key: "A module cannot have more than one export assignment." - }, - An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements: { - code: 2309, - category: ts.DiagnosticCategory.Error, - key: "An export assignment cannot be used in a module with other exported elements." - }, - Type_0_recursively_references_itself_as_a_base_type: { - code: 2310, - category: ts.DiagnosticCategory.Error, - key: "Type '{0}' recursively references itself as a base type." - }, - A_class_may_only_extend_another_class: { - code: 2311, - category: ts.DiagnosticCategory.Error, - key: "A class may only extend another class." - }, - An_interface_may_only_extend_a_class_or_another_interface: { - code: 2312, - category: ts.DiagnosticCategory.Error, - key: "An interface may only extend a class or another interface." - }, - Constraint_of_a_type_parameter_cannot_reference_any_type_parameter_from_the_same_type_parameter_list: { - code: 2313, - category: ts.DiagnosticCategory.Error, - key: "Constraint of a type parameter cannot reference any type parameter from the same type parameter list." - }, - Generic_type_0_requires_1_type_argument_s: { - code: 2314, - category: ts.DiagnosticCategory.Error, - key: "Generic type '{0}' requires {1} type argument(s)." - }, - Type_0_is_not_generic: { - code: 2315, - category: ts.DiagnosticCategory.Error, - key: "Type '{0}' is not generic." - }, - Global_type_0_must_be_a_class_or_interface_type: { - code: 2316, - category: ts.DiagnosticCategory.Error, - key: "Global type '{0}' must be a class or interface type." - }, - Global_type_0_must_have_1_type_parameter_s: { - code: 2317, - category: ts.DiagnosticCategory.Error, - key: "Global type '{0}' must have {1} type parameter(s)." - }, - Cannot_find_global_type_0: { - code: 2318, - category: ts.DiagnosticCategory.Error, - key: "Cannot find global type '{0}'." - }, - Named_property_0_of_types_1_and_2_are_not_identical: { - code: 2319, - category: ts.DiagnosticCategory.Error, - key: "Named property '{0}' of types '{1}' and '{2}' are not identical." - }, - Interface_0_cannot_simultaneously_extend_types_1_and_2: { - code: 2320, - category: ts.DiagnosticCategory.Error, - key: "Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'." - }, - Excessive_stack_depth_comparing_types_0_and_1: { - code: 2321, - category: ts.DiagnosticCategory.Error, - key: "Excessive stack depth comparing types '{0}' and '{1}'." - }, - Type_0_is_not_assignable_to_type_1: { - code: 2322, - category: ts.DiagnosticCategory.Error, - key: "Type '{0}' is not assignable to type '{1}'." - }, - Property_0_is_missing_in_type_1: { - code: 2324, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' is missing in type '{1}'." - }, - Property_0_is_private_in_type_1_but_not_in_type_2: { - code: 2325, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' is private in type '{1}' but not in type '{2}'." - }, - Types_of_property_0_are_incompatible: { - code: 2326, - category: ts.DiagnosticCategory.Error, - key: "Types of property '{0}' are incompatible." - }, - Property_0_is_optional_in_type_1_but_required_in_type_2: { - code: 2327, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' is optional in type '{1}' but required in type '{2}'." - }, - Types_of_parameters_0_and_1_are_incompatible: { - code: 2328, - category: ts.DiagnosticCategory.Error, - key: "Types of parameters '{0}' and '{1}' are incompatible." - }, - Index_signature_is_missing_in_type_0: { - code: 2329, - category: ts.DiagnosticCategory.Error, - key: "Index signature is missing in type '{0}'." - }, - Index_signatures_are_incompatible: { - code: 2330, - category: ts.DiagnosticCategory.Error, - key: "Index signatures are incompatible." - }, - this_cannot_be_referenced_in_a_module_body: { - code: 2331, - category: ts.DiagnosticCategory.Error, - key: "'this' cannot be referenced in a module body." - }, - this_cannot_be_referenced_in_current_location: { - code: 2332, - category: ts.DiagnosticCategory.Error, - key: "'this' cannot be referenced in current location." - }, - this_cannot_be_referenced_in_constructor_arguments: { - code: 2333, - category: ts.DiagnosticCategory.Error, - key: "'this' cannot be referenced in constructor arguments." - }, - this_cannot_be_referenced_in_a_static_property_initializer: { - code: 2334, - category: ts.DiagnosticCategory.Error, - key: "'this' cannot be referenced in a static property initializer." - }, - super_can_only_be_referenced_in_a_derived_class: { - code: 2335, - category: ts.DiagnosticCategory.Error, - key: "'super' can only be referenced in a derived class." - }, - super_cannot_be_referenced_in_constructor_arguments: { - code: 2336, - category: ts.DiagnosticCategory.Error, - key: "'super' cannot be referenced in constructor arguments." - }, - Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors: { - code: 2337, - category: ts.DiagnosticCategory.Error, - key: "Super calls are not permitted outside constructors or in nested functions inside constructors" - }, - super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class: { - code: 2338, - category: ts.DiagnosticCategory.Error, - key: "'super' property access is permitted only in a constructor, member function, or member accessor of a derived class" - }, - Property_0_does_not_exist_on_type_1: { - code: 2339, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' does not exist on type '{1}'." - }, - Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword: { - code: 2340, - category: ts.DiagnosticCategory.Error, - key: "Only public and protected methods of the base class are accessible via the 'super' keyword" - }, - Property_0_is_private_and_only_accessible_within_class_1: { - code: 2341, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' is private and only accessible within class '{1}'." - }, - An_index_expression_argument_must_be_of_type_string_number_symbol_or_any: { - code: 2342, - category: ts.DiagnosticCategory.Error, - key: "An index expression argument must be of type 'string', 'number', 'symbol, or 'any'." - }, - Type_0_does_not_satisfy_the_constraint_1: { - code: 2344, - category: ts.DiagnosticCategory.Error, - key: "Type '{0}' does not satisfy the constraint '{1}'." - }, - Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: { - code: 2345, - category: ts.DiagnosticCategory.Error, - key: "Argument of type '{0}' is not assignable to parameter of type '{1}'." - }, - Supplied_parameters_do_not_match_any_signature_of_call_target: { - code: 2346, - category: ts.DiagnosticCategory.Error, - key: "Supplied parameters do not match any signature of call target." - }, - Untyped_function_calls_may_not_accept_type_arguments: { - code: 2347, - category: ts.DiagnosticCategory.Error, - key: "Untyped function calls may not accept type arguments." - }, - Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: { - code: 2348, - category: ts.DiagnosticCategory.Error, - key: "Value of type '{0}' is not callable. Did you mean to include 'new'?" - }, - Cannot_invoke_an_expression_whose_type_lacks_a_call_signature: { - code: 2349, - category: ts.DiagnosticCategory.Error, - key: "Cannot invoke an expression whose type lacks a call signature." - }, - Only_a_void_function_can_be_called_with_the_new_keyword: { - code: 2350, - category: ts.DiagnosticCategory.Error, - key: "Only a void function can be called with the 'new' keyword." - }, - Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature: { - code: 2351, - category: ts.DiagnosticCategory.Error, - key: "Cannot use 'new' with an expression whose type lacks a call or construct signature." - }, - Neither_type_0_nor_type_1_is_assignable_to_the_other: { - code: 2352, - category: ts.DiagnosticCategory.Error, - key: "Neither type '{0}' nor type '{1}' is assignable to the other." - }, - No_best_common_type_exists_among_return_expressions: { - code: 2354, - category: ts.DiagnosticCategory.Error, - key: "No best common type exists among return expressions." - }, - A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_or_consist_of_a_single_throw_statement: { - code: 2355, - category: ts.DiagnosticCategory.Error, - key: "A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement." - }, - An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type: { - code: 2356, - category: ts.DiagnosticCategory.Error, - key: "An arithmetic operand must be of type 'any', 'number' or an enum type." - }, - The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_property_or_indexer: { - code: 2357, - category: ts.DiagnosticCategory.Error, - key: "The operand of an increment or decrement operator must be a variable, property or indexer." - }, - The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: { - code: 2358, - category: ts.DiagnosticCategory.Error, - key: "The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter." - }, - The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type: { - code: 2359, - category: ts.DiagnosticCategory.Error, - key: "The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type." - }, - The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol: { - code: 2360, - category: ts.DiagnosticCategory.Error, - key: "The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'." - }, - The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: { - code: 2361, - category: ts.DiagnosticCategory.Error, - key: "The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter" - }, - The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type: { - code: 2362, - category: ts.DiagnosticCategory.Error, - key: "The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type." - }, - The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type: { - code: 2363, - category: ts.DiagnosticCategory.Error, - key: "The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type." - }, - Invalid_left_hand_side_of_assignment_expression: { - code: 2364, - category: ts.DiagnosticCategory.Error, - key: "Invalid left-hand side of assignment expression." - }, - Operator_0_cannot_be_applied_to_types_1_and_2: { - code: 2365, - category: ts.DiagnosticCategory.Error, - key: "Operator '{0}' cannot be applied to types '{1}' and '{2}'." - }, - Type_parameter_name_cannot_be_0: { - code: 2368, - category: ts.DiagnosticCategory.Error, - key: "Type parameter name cannot be '{0}'" - }, - A_parameter_property_is_only_allowed_in_a_constructor_implementation: { - code: 2369, - category: ts.DiagnosticCategory.Error, - key: "A parameter property is only allowed in a constructor implementation." - }, - A_rest_parameter_must_be_of_an_array_type: { - code: 2370, - category: ts.DiagnosticCategory.Error, - key: "A rest parameter must be of an array type." - }, - A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation: { - code: 2371, - category: ts.DiagnosticCategory.Error, - key: "A parameter initializer is only allowed in a function or constructor implementation." - }, - Parameter_0_cannot_be_referenced_in_its_initializer: { - code: 2372, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' cannot be referenced in its initializer." - }, - Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it: { - code: 2373, - category: ts.DiagnosticCategory.Error, - key: "Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it." - }, - Duplicate_string_index_signature: { - code: 2374, - category: ts.DiagnosticCategory.Error, - key: "Duplicate string index signature." - }, - Duplicate_number_index_signature: { - code: 2375, - category: ts.DiagnosticCategory.Error, - key: "Duplicate number index signature." - }, - A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties: { - code: 2376, - category: ts.DiagnosticCategory.Error, - key: "A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties." - }, - Constructors_for_derived_classes_must_contain_a_super_call: { - code: 2377, - category: ts.DiagnosticCategory.Error, - key: "Constructors for derived classes must contain a 'super' call." - }, - A_get_accessor_must_return_a_value_or_consist_of_a_single_throw_statement: { - code: 2378, - category: ts.DiagnosticCategory.Error, - key: "A 'get' accessor must return a value or consist of a single 'throw' statement." - }, - Getter_and_setter_accessors_do_not_agree_in_visibility: { - code: 2379, - category: ts.DiagnosticCategory.Error, - key: "Getter and setter accessors do not agree in visibility." - }, - get_and_set_accessor_must_have_the_same_type: { - code: 2380, - category: ts.DiagnosticCategory.Error, - key: "'get' and 'set' accessor must have the same type." - }, - A_signature_with_an_implementation_cannot_use_a_string_literal_type: { - code: 2381, - category: ts.DiagnosticCategory.Error, - key: "A signature with an implementation cannot use a string literal type." - }, - Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature: { - code: 2382, - category: ts.DiagnosticCategory.Error, - key: "Specialized overload signature is not assignable to any non-specialized signature." - }, - Overload_signatures_must_all_be_exported_or_not_exported: { - code: 2383, - category: ts.DiagnosticCategory.Error, - key: "Overload signatures must all be exported or not exported." - }, - Overload_signatures_must_all_be_ambient_or_non_ambient: { - code: 2384, - category: ts.DiagnosticCategory.Error, - key: "Overload signatures must all be ambient or non-ambient." - }, - Overload_signatures_must_all_be_public_private_or_protected: { - code: 2385, - category: ts.DiagnosticCategory.Error, - key: "Overload signatures must all be public, private or protected." - }, - Overload_signatures_must_all_be_optional_or_required: { - code: 2386, - category: ts.DiagnosticCategory.Error, - key: "Overload signatures must all be optional or required." - }, - Function_overload_must_be_static: { - code: 2387, - category: ts.DiagnosticCategory.Error, - key: "Function overload must be static." - }, - Function_overload_must_not_be_static: { - code: 2388, - category: ts.DiagnosticCategory.Error, - key: "Function overload must not be static." - }, - Function_implementation_name_must_be_0: { - code: 2389, - category: ts.DiagnosticCategory.Error, - key: "Function implementation name must be '{0}'." - }, - Constructor_implementation_is_missing: { - code: 2390, - category: ts.DiagnosticCategory.Error, - key: "Constructor implementation is missing." - }, - Function_implementation_is_missing_or_not_immediately_following_the_declaration: { - code: 2391, - category: ts.DiagnosticCategory.Error, - key: "Function implementation is missing or not immediately following the declaration." - }, - Multiple_constructor_implementations_are_not_allowed: { - code: 2392, - category: ts.DiagnosticCategory.Error, - key: "Multiple constructor implementations are not allowed." - }, - Duplicate_function_implementation: { - code: 2393, - category: ts.DiagnosticCategory.Error, - key: "Duplicate function implementation." - }, - Overload_signature_is_not_compatible_with_function_implementation: { - code: 2394, - category: ts.DiagnosticCategory.Error, - key: "Overload signature is not compatible with function implementation." - }, - Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local: { - code: 2395, - category: ts.DiagnosticCategory.Error, - key: "Individual declarations in merged declaration {0} must be all exported or all local." - }, - Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters: { - code: 2396, - category: ts.DiagnosticCategory.Error, - key: "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters." - }, - Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference: { - code: 2399, - category: ts.DiagnosticCategory.Error, - key: "Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference." - }, - Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference: { - code: 2400, - category: ts.DiagnosticCategory.Error, - key: "Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference." - }, - Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference: { - code: 2401, - category: ts.DiagnosticCategory.Error, - key: "Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference." - }, - Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference: { - code: 2402, - category: ts.DiagnosticCategory.Error, - key: "Expression resolves to '_super' that compiler uses to capture base class reference." - }, - Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2: { - code: 2403, - category: ts.DiagnosticCategory.Error, - key: "Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'." - }, - The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation: { - code: 2404, - category: ts.DiagnosticCategory.Error, - key: "The left-hand side of a 'for...in' statement cannot use a type annotation." - }, - The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any: { - code: 2405, - category: ts.DiagnosticCategory.Error, - key: "The left-hand side of a 'for...in' statement must be of type 'string' or 'any'." - }, - Invalid_left_hand_side_in_for_in_statement: { - code: 2406, - category: ts.DiagnosticCategory.Error, - key: "Invalid left-hand side in 'for...in' statement." - }, - The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter: { - code: 2407, - category: ts.DiagnosticCategory.Error, - key: "The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter." - }, - Setters_cannot_return_a_value: { - code: 2408, - category: ts.DiagnosticCategory.Error, - key: "Setters cannot return a value." - }, - Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class: { - code: 2409, - category: ts.DiagnosticCategory.Error, - key: "Return type of constructor signature must be assignable to the instance type of the class" - }, - All_symbols_within_a_with_block_will_be_resolved_to_any: { - code: 2410, - category: ts.DiagnosticCategory.Error, - key: "All symbols within a 'with' block will be resolved to 'any'." - }, - Property_0_of_type_1_is_not_assignable_to_string_index_type_2: { - code: 2411, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' of type '{1}' is not assignable to string index type '{2}'." - }, - Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2: { - code: 2412, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'." - }, - Numeric_index_type_0_is_not_assignable_to_string_index_type_1: { - code: 2413, - category: ts.DiagnosticCategory.Error, - key: "Numeric index type '{0}' is not assignable to string index type '{1}'." - }, - Class_name_cannot_be_0: { - code: 2414, - category: ts.DiagnosticCategory.Error, - key: "Class name cannot be '{0}'" - }, - Class_0_incorrectly_extends_base_class_1: { - code: 2415, - category: ts.DiagnosticCategory.Error, - key: "Class '{0}' incorrectly extends base class '{1}'." - }, - Class_static_side_0_incorrectly_extends_base_class_static_side_1: { - code: 2417, - category: ts.DiagnosticCategory.Error, - key: "Class static side '{0}' incorrectly extends base class static side '{1}'." - }, - Type_name_0_in_extends_clause_does_not_reference_constructor_function_for_0: { - code: 2419, - category: ts.DiagnosticCategory.Error, - key: "Type name '{0}' in extends clause does not reference constructor function for '{0}'." - }, - Class_0_incorrectly_implements_interface_1: { - code: 2420, - category: ts.DiagnosticCategory.Error, - key: "Class '{0}' incorrectly implements interface '{1}'." - }, - A_class_may_only_implement_another_class_or_interface: { - code: 2422, - category: ts.DiagnosticCategory.Error, - key: "A class may only implement another class or interface." - }, - Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor: { - code: 2423, - category: ts.DiagnosticCategory.Error, - key: "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor." - }, - Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property: { - code: 2424, - category: ts.DiagnosticCategory.Error, - key: "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property." - }, - Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function: { - code: 2425, - category: ts.DiagnosticCategory.Error, - key: "Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function." - }, - Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function: { - code: 2426, - category: ts.DiagnosticCategory.Error, - key: "Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function." - }, - Interface_name_cannot_be_0: { - code: 2427, - category: ts.DiagnosticCategory.Error, - key: "Interface name cannot be '{0}'" - }, - All_declarations_of_an_interface_must_have_identical_type_parameters: { - code: 2428, - category: ts.DiagnosticCategory.Error, - key: "All declarations of an interface must have identical type parameters." - }, - Interface_0_incorrectly_extends_interface_1: { - code: 2430, - category: ts.DiagnosticCategory.Error, - key: "Interface '{0}' incorrectly extends interface '{1}'." - }, - Enum_name_cannot_be_0: { - code: 2431, - category: ts.DiagnosticCategory.Error, - key: "Enum name cannot be '{0}'" - }, - In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element: { - code: 2432, - category: ts.DiagnosticCategory.Error, - key: "In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element." - }, - A_module_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged: { - code: 2433, - category: ts.DiagnosticCategory.Error, - key: "A module declaration cannot be in a different file from a class or function with which it is merged" - }, - A_module_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged: { - code: 2434, - category: ts.DiagnosticCategory.Error, - key: "A module declaration cannot be located prior to a class or function with which it is merged" - }, - Ambient_external_modules_cannot_be_nested_in_other_modules: { - code: 2435, - category: ts.DiagnosticCategory.Error, - key: "Ambient external modules cannot be nested in other modules." - }, - Ambient_external_module_declaration_cannot_specify_relative_module_name: { - code: 2436, - category: ts.DiagnosticCategory.Error, - key: "Ambient external module declaration cannot specify relative module name." - }, - Module_0_is_hidden_by_a_local_declaration_with_the_same_name: { - code: 2437, - category: ts.DiagnosticCategory.Error, - key: "Module '{0}' is hidden by a local declaration with the same name" - }, - Import_name_cannot_be_0: { - code: 2438, - category: ts.DiagnosticCategory.Error, - key: "Import name cannot be '{0}'" - }, - Import_or_export_declaration_in_an_ambient_external_module_declaration_cannot_reference_external_module_through_relative_external_module_name: { - code: 2439, - category: ts.DiagnosticCategory.Error, - key: "Import or export declaration in an ambient external module declaration cannot reference external module through relative external module name." - }, - Import_declaration_conflicts_with_local_declaration_of_0: { - code: 2440, - category: ts.DiagnosticCategory.Error, - key: "Import declaration conflicts with local declaration of '{0}'" - }, - Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_an_external_module: { - code: 2441, - category: ts.DiagnosticCategory.Error, - key: "Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of an external module." - }, - Types_have_separate_declarations_of_a_private_property_0: { - code: 2442, - category: ts.DiagnosticCategory.Error, - key: "Types have separate declarations of a private property '{0}'." - }, - Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2: { - code: 2443, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' is protected but type '{1}' is not a class derived from '{2}'." - }, - Property_0_is_protected_in_type_1_but_public_in_type_2: { - code: 2444, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' is protected in type '{1}' but public in type '{2}'." - }, - Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses: { - code: 2445, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' is protected and only accessible within class '{1}' and its subclasses." - }, - Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1: { - code: 2446, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' is protected and only accessible through an instance of class '{1}'." - }, - The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead: { - code: 2447, - category: ts.DiagnosticCategory.Error, - key: "The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead." - }, - Block_scoped_variable_0_used_before_its_declaration: { - code: 2448, - category: ts.DiagnosticCategory.Error, - key: "Block-scoped variable '{0}' used before its declaration." - }, - The_operand_of_an_increment_or_decrement_operator_cannot_be_a_constant: { - code: 2449, - category: ts.DiagnosticCategory.Error, - key: "The operand of an increment or decrement operator cannot be a constant." - }, - Left_hand_side_of_assignment_expression_cannot_be_a_constant: { - code: 2450, - category: ts.DiagnosticCategory.Error, - key: "Left-hand side of assignment expression cannot be a constant." - }, - Cannot_redeclare_block_scoped_variable_0: { - code: 2451, - category: ts.DiagnosticCategory.Error, - key: "Cannot redeclare block-scoped variable '{0}'." - }, - An_enum_member_cannot_have_a_numeric_name: { - code: 2452, - category: ts.DiagnosticCategory.Error, - key: "An enum member cannot have a numeric name." - }, - The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly: { - code: 2453, - category: ts.DiagnosticCategory.Error, - key: "The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly." - }, - Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0: { - code: 2455, - category: ts.DiagnosticCategory.Error, - key: "Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'." - }, - Type_alias_0_circularly_references_itself: { - code: 2456, - category: ts.DiagnosticCategory.Error, - key: "Type alias '{0}' circularly references itself." - }, - Type_alias_name_cannot_be_0: { - code: 2457, - category: ts.DiagnosticCategory.Error, - key: "Type alias name cannot be '{0}'" - }, - An_AMD_module_cannot_have_multiple_name_assignments: { - code: 2458, - category: ts.DiagnosticCategory.Error, - key: "An AMD module cannot have multiple name assignments." - }, - Type_0_has_no_property_1_and_no_string_index_signature: { - code: 2459, - category: ts.DiagnosticCategory.Error, - key: "Type '{0}' has no property '{1}' and no string index signature." - }, - Type_0_has_no_property_1: { - code: 2460, - category: ts.DiagnosticCategory.Error, - key: "Type '{0}' has no property '{1}'." - }, - Type_0_is_not_an_array_type: { - code: 2461, - category: ts.DiagnosticCategory.Error, - key: "Type '{0}' is not an array type." - }, - A_rest_element_must_be_last_in_an_array_destructuring_pattern: { - code: 2462, - category: ts.DiagnosticCategory.Error, - key: "A rest element must be last in an array destructuring pattern" - }, - A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature: { - code: 2463, - category: ts.DiagnosticCategory.Error, - key: "A binding pattern parameter cannot be optional in an implementation signature." - }, - A_computed_property_name_must_be_of_type_string_number_symbol_or_any: { - code: 2464, - category: ts.DiagnosticCategory.Error, - key: "A computed property name must be of type 'string', 'number', 'symbol', or 'any'." - }, - this_cannot_be_referenced_in_a_computed_property_name: { - code: 2465, - category: ts.DiagnosticCategory.Error, - key: "'this' cannot be referenced in a computed property name." - }, - super_cannot_be_referenced_in_a_computed_property_name: { - code: 2466, - category: ts.DiagnosticCategory.Error, - key: "'super' cannot be referenced in a computed property name." - }, - A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type: { - code: 2467, - category: ts.DiagnosticCategory.Error, - key: "A computed property name cannot reference a type parameter from its containing type." - }, - Cannot_find_global_value_0: { - code: 2468, - category: ts.DiagnosticCategory.Error, - key: "Cannot find global value '{0}'." - }, - The_0_operator_cannot_be_applied_to_type_symbol: { - code: 2469, - category: ts.DiagnosticCategory.Error, - key: "The '{0}' operator cannot be applied to type 'symbol'." - }, - Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object: { - code: 2470, - category: ts.DiagnosticCategory.Error, - key: "'Symbol' reference does not refer to the global Symbol constructor object." - }, - A_computed_property_name_of_the_form_0_must_be_of_type_symbol: { - code: 2471, - category: ts.DiagnosticCategory.Error, - key: "A computed property name of the form '{0}' must be of type 'symbol'." - }, - Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_6_and_higher: { - code: 2472, - category: ts.DiagnosticCategory.Error, - key: "Spread operator in 'new' expressions is only available when targeting ECMAScript 6 and higher." - }, - Enum_declarations_must_all_be_const_or_non_const: { - code: 2473, - category: ts.DiagnosticCategory.Error, - key: "Enum declarations must all be const or non-const." - }, - In_const_enum_declarations_member_initializer_must_be_constant_expression: { - code: 2474, - category: ts.DiagnosticCategory.Error, - key: "In 'const' enum declarations member initializer must be constant expression." - }, - const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment: { - code: 2475, - category: ts.DiagnosticCategory.Error, - key: "'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment." - }, - A_const_enum_member_can_only_be_accessed_using_a_string_literal: { - code: 2476, - category: ts.DiagnosticCategory.Error, - key: "A const enum member can only be accessed using a string literal." - }, - const_enum_member_initializer_was_evaluated_to_a_non_finite_value: { - code: 2477, - category: ts.DiagnosticCategory.Error, - key: "'const' enum member initializer was evaluated to a non-finite value." - }, - const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN: { - code: 2478, - category: ts.DiagnosticCategory.Error, - key: "'const' enum member initializer was evaluated to disallowed value 'NaN'." - }, - Property_0_does_not_exist_on_const_enum_1: { - code: 2479, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' does not exist on 'const' enum '{1}'." - }, - let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations: { - code: 2480, - category: ts.DiagnosticCategory.Error, - key: "'let' is not allowed to be used as a name in 'let' or 'const' declarations." - }, - Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1: { - code: 2481, - category: ts.DiagnosticCategory.Error, - key: "Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'." - }, - The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation: { - code: 2483, - category: ts.DiagnosticCategory.Error, - key: "The left-hand side of a 'for...of' statement cannot use a type annotation." - }, - Export_declaration_conflicts_with_exported_declaration_of_0: { - code: 2484, - category: ts.DiagnosticCategory.Error, - key: "Export declaration conflicts with exported declaration of '{0}'" - }, - The_left_hand_side_of_a_for_of_statement_cannot_be_a_previously_defined_constant: { - code: 2485, - category: ts.DiagnosticCategory.Error, - key: "The left-hand side of a 'for...of' statement cannot be a previously defined constant." - }, - The_left_hand_side_of_a_for_in_statement_cannot_be_a_previously_defined_constant: { - code: 2486, - category: ts.DiagnosticCategory.Error, - key: "The left-hand side of a 'for...in' statement cannot be a previously defined constant." - }, - Invalid_left_hand_side_in_for_of_statement: { - code: 2487, - category: ts.DiagnosticCategory.Error, - key: "Invalid left-hand side in 'for...of' statement." - }, - The_right_hand_side_of_a_for_of_statement_must_have_a_Symbol_iterator_method_that_returns_an_iterator: { - code: 2488, - category: ts.DiagnosticCategory.Error, - key: "The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator." - }, - The_iterator_returned_by_the_right_hand_side_of_a_for_of_statement_must_have_a_next_method: { - code: 2489, - category: ts.DiagnosticCategory.Error, - key: "The iterator returned by the right-hand side of a 'for...of' statement must have a 'next()' method." - }, - The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property: { - code: 2490, - category: ts.DiagnosticCategory.Error, - key: "The type returned by the 'next()' method of an iterator must have a 'value' property." - }, - The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: { - code: 2491, - category: ts.DiagnosticCategory.Error, - key: "The left-hand side of a 'for...in' statement cannot be a destructuring pattern." - }, - Cannot_redeclare_identifier_0_in_catch_clause: { - code: 2492, - category: ts.DiagnosticCategory.Error, - key: "Cannot redeclare identifier '{0}' in catch clause" - }, - Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2: { - code: 2493, - category: ts.DiagnosticCategory.Error, - key: "Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'." - }, - Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: { - code: 2494, - category: ts.DiagnosticCategory.Error, - key: "Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher." - }, - Type_0_is_not_an_array_type_or_a_string_type: { - code: 2495, - category: ts.DiagnosticCategory.Error, - key: "Type '{0}' is not an array type or a string type." - }, - The_arguments_object_cannot_be_referenced_in_an_arrow_function_Consider_using_a_standard_function_expression: { - code: 2496, - category: ts.DiagnosticCategory.Error, - key: "The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression." - }, - External_module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct: { - code: 2497, - category: ts.DiagnosticCategory.Error, - key: "External module '{0}' resolves to a non-module entity and cannot be imported using this construct." - }, - External_module_0_uses_export_and_cannot_be_used_with_export_Asterisk: { - code: 2498, - category: ts.DiagnosticCategory.Error, - key: "External module '{0}' uses 'export =' and cannot be used with 'export *'." - }, - An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments: { - code: 2499, - category: ts.DiagnosticCategory.Error, - key: "An interface can only extend an identifier/qualified-name with optional type arguments." - }, - A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments: { - code: 2500, - category: ts.DiagnosticCategory.Error, - key: "A class can only implement an identifier/qualified-name with optional type arguments." - }, - Import_declaration_0_is_using_private_name_1: { - code: 4000, - category: ts.DiagnosticCategory.Error, - key: "Import declaration '{0}' is using private name '{1}'." - }, - Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: { - code: 4002, - category: ts.DiagnosticCategory.Error, - key: "Type parameter '{0}' of exported class has or is using private name '{1}'." - }, - Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: { - code: 4004, - category: ts.DiagnosticCategory.Error, - key: "Type parameter '{0}' of exported interface has or is using private name '{1}'." - }, - Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: { - code: 4006, - category: ts.DiagnosticCategory.Error, - key: "Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'." - }, - Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: { - code: 4008, - category: ts.DiagnosticCategory.Error, - key: "Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'." - }, - Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: { - code: 4010, - category: ts.DiagnosticCategory.Error, - key: "Type parameter '{0}' of public static method from exported class has or is using private name '{1}'." - }, - Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: { - code: 4012, - category: ts.DiagnosticCategory.Error, - key: "Type parameter '{0}' of public method from exported class has or is using private name '{1}'." - }, - Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: { - code: 4014, - category: ts.DiagnosticCategory.Error, - key: "Type parameter '{0}' of method from exported interface has or is using private name '{1}'." - }, - Type_parameter_0_of_exported_function_has_or_is_using_private_name_1: { - code: 4016, - category: ts.DiagnosticCategory.Error, - key: "Type parameter '{0}' of exported function has or is using private name '{1}'." - }, - Implements_clause_of_exported_class_0_has_or_is_using_private_name_1: { - code: 4019, - category: ts.DiagnosticCategory.Error, - key: "Implements clause of exported class '{0}' has or is using private name '{1}'." - }, - Extends_clause_of_exported_class_0_has_or_is_using_private_name_1: { - code: 4020, - category: ts.DiagnosticCategory.Error, - key: "Extends clause of exported class '{0}' has or is using private name '{1}'." - }, - Extends_clause_of_exported_interface_0_has_or_is_using_private_name_1: { - code: 4022, - category: ts.DiagnosticCategory.Error, - key: "Extends clause of exported interface '{0}' has or is using private name '{1}'." - }, - Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { - code: 4023, - category: ts.DiagnosticCategory.Error, - key: "Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named." - }, - Exported_variable_0_has_or_is_using_name_1_from_private_module_2: { - code: 4024, - category: ts.DiagnosticCategory.Error, - key: "Exported variable '{0}' has or is using name '{1}' from private module '{2}'." - }, - Exported_variable_0_has_or_is_using_private_name_1: { - code: 4025, - category: ts.DiagnosticCategory.Error, - key: "Exported variable '{0}' has or is using private name '{1}'." - }, - Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { - code: 4026, - category: ts.DiagnosticCategory.Error, - key: "Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named." - }, - Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: { - code: 4027, - category: ts.DiagnosticCategory.Error, - key: "Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'." - }, - Public_static_property_0_of_exported_class_has_or_is_using_private_name_1: { - code: 4028, - category: ts.DiagnosticCategory.Error, - key: "Public static property '{0}' of exported class has or is using private name '{1}'." - }, - Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { - code: 4029, - category: ts.DiagnosticCategory.Error, - key: "Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named." - }, - Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: { - code: 4030, - category: ts.DiagnosticCategory.Error, - key: "Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'." - }, - Public_property_0_of_exported_class_has_or_is_using_private_name_1: { - code: 4031, - category: ts.DiagnosticCategory.Error, - key: "Public property '{0}' of exported class has or is using private name '{1}'." - }, - Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: { - code: 4032, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'." - }, - Property_0_of_exported_interface_has_or_is_using_private_name_1: { - code: 4033, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' of exported interface has or is using private name '{1}'." - }, - Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2: { - code: 4034, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'." - }, - Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1: { - code: 4035, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'." - }, - Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2: { - code: 4036, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'." - }, - Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1: { - code: 4037, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of public property setter from exported class has or is using private name '{1}'." - }, - Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: { - code: 4038, - category: ts.DiagnosticCategory.Error, - key: "Return type of public static property getter from exported class has or is using name '{0}' from external module {1} but cannot be named." - }, - Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1: { - code: 4039, - category: ts.DiagnosticCategory.Error, - key: "Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'." - }, - Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0: { - code: 4040, - category: ts.DiagnosticCategory.Error, - key: "Return type of public static property getter from exported class has or is using private name '{0}'." - }, - Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: { - code: 4041, - category: ts.DiagnosticCategory.Error, - key: "Return type of public property getter from exported class has or is using name '{0}' from external module {1} but cannot be named." - }, - Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1: { - code: 4042, - category: ts.DiagnosticCategory.Error, - key: "Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'." - }, - Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0: { - code: 4043, - category: ts.DiagnosticCategory.Error, - key: "Return type of public property getter from exported class has or is using private name '{0}'." - }, - Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: { - code: 4044, - category: ts.DiagnosticCategory.Error, - key: "Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'." - }, - Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0: { - code: 4045, - category: ts.DiagnosticCategory.Error, - key: "Return type of constructor signature from exported interface has or is using private name '{0}'." - }, - Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: { - code: 4046, - category: ts.DiagnosticCategory.Error, - key: "Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'." - }, - Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0: { - code: 4047, - category: ts.DiagnosticCategory.Error, - key: "Return type of call signature from exported interface has or is using private name '{0}'." - }, - Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: { - code: 4048, - category: ts.DiagnosticCategory.Error, - key: "Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'." - }, - Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0: { - code: 4049, - category: ts.DiagnosticCategory.Error, - key: "Return type of index signature from exported interface has or is using private name '{0}'." - }, - Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: { - code: 4050, - category: ts.DiagnosticCategory.Error, - key: "Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named." - }, - Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: { - code: 4051, - category: ts.DiagnosticCategory.Error, - key: "Return type of public static method from exported class has or is using name '{0}' from private module '{1}'." - }, - Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0: { - code: 4052, - category: ts.DiagnosticCategory.Error, - key: "Return type of public static method from exported class has or is using private name '{0}'." - }, - Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: { - code: 4053, - category: ts.DiagnosticCategory.Error, - key: "Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named." - }, - Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: { - code: 4054, - category: ts.DiagnosticCategory.Error, - key: "Return type of public method from exported class has or is using name '{0}' from private module '{1}'." - }, - Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0: { - code: 4055, - category: ts.DiagnosticCategory.Error, - key: "Return type of public method from exported class has or is using private name '{0}'." - }, - Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1: { - code: 4056, - category: ts.DiagnosticCategory.Error, - key: "Return type of method from exported interface has or is using name '{0}' from private module '{1}'." - }, - Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0: { - code: 4057, - category: ts.DiagnosticCategory.Error, - key: "Return type of method from exported interface has or is using private name '{0}'." - }, - Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: { - code: 4058, - category: ts.DiagnosticCategory.Error, - key: "Return type of exported function has or is using name '{0}' from external module {1} but cannot be named." - }, - Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1: { - code: 4059, - category: ts.DiagnosticCategory.Error, - key: "Return type of exported function has or is using name '{0}' from private module '{1}'." - }, - Return_type_of_exported_function_has_or_is_using_private_name_0: { - code: 4060, - category: ts.DiagnosticCategory.Error, - key: "Return type of exported function has or is using private name '{0}'." - }, - Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { - code: 4061, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named." - }, - Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2: { - code: 4062, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'." - }, - Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1: { - code: 4063, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of constructor from exported class has or is using private name '{1}'." - }, - Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: { - code: 4064, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'." - }, - Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: { - code: 4065, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'." - }, - Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: { - code: 4066, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'." - }, - Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: { - code: 4067, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of call signature from exported interface has or is using private name '{1}'." - }, - Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { - code: 4068, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named." - }, - Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: { - code: 4069, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'." - }, - Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: { - code: 4070, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of public static method from exported class has or is using private name '{1}'." - }, - Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { - code: 4071, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named." - }, - Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: { - code: 4072, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'." - }, - Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: { - code: 4073, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of public method from exported class has or is using private name '{1}'." - }, - Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2: { - code: 4074, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'." - }, - Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: { - code: 4075, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of method from exported interface has or is using private name '{1}'." - }, - Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { - code: 4076, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named." - }, - Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2: { - code: 4077, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'." - }, - Parameter_0_of_exported_function_has_or_is_using_private_name_1: { - code: 4078, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' of exported function has or is using private name '{1}'." - }, - Exported_type_alias_0_has_or_is_using_private_name_1: { - code: 4081, - category: ts.DiagnosticCategory.Error, - key: "Exported type alias '{0}' has or is using private name '{1}'." - }, - Default_export_of_the_module_has_or_is_using_private_name_0: { - code: 4082, - category: ts.DiagnosticCategory.Error, - key: "Default export of the module has or is using private name '{0}'." - }, - Loop_contains_block_scoped_variable_0_referenced_by_a_function_in_the_loop_This_is_only_supported_in_ECMAScript_6_or_higher: { - code: 4091, - category: ts.DiagnosticCategory.Error, - key: "Loop contains block-scoped variable '{0}' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher." - }, - The_current_host_does_not_support_the_0_option: { - code: 5001, - category: ts.DiagnosticCategory.Error, - key: "The current host does not support the '{0}' option." - }, - Cannot_find_the_common_subdirectory_path_for_the_input_files: { - code: 5009, - category: ts.DiagnosticCategory.Error, - key: "Cannot find the common subdirectory path for the input files." - }, - Cannot_read_file_0_Colon_1: { - code: 5012, - category: ts.DiagnosticCategory.Error, - key: "Cannot read file '{0}': {1}" - }, - Unsupported_file_encoding: { - code: 5013, - category: ts.DiagnosticCategory.Error, - key: "Unsupported file encoding." - }, - Unknown_compiler_option_0: { - code: 5023, - category: ts.DiagnosticCategory.Error, - key: "Unknown compiler option '{0}'." - }, - Compiler_option_0_requires_a_value_of_type_1: { - code: 5024, - category: ts.DiagnosticCategory.Error, - key: "Compiler option '{0}' requires a value of type {1}." - }, - Could_not_write_file_0_Colon_1: { - code: 5033, - category: ts.DiagnosticCategory.Error, - key: "Could not write file '{0}': {1}" - }, - Option_mapRoot_cannot_be_specified_without_specifying_sourcemap_option: { - code: 5038, - category: ts.DiagnosticCategory.Error, - key: "Option 'mapRoot' cannot be specified without specifying 'sourcemap' option." - }, - Option_sourceRoot_cannot_be_specified_without_specifying_sourcemap_option: { - code: 5039, - category: ts.DiagnosticCategory.Error, - key: "Option 'sourceRoot' cannot be specified without specifying 'sourcemap' option." - }, - Option_noEmit_cannot_be_specified_with_option_out_or_outDir: { - code: 5040, - category: ts.DiagnosticCategory.Error, - key: "Option 'noEmit' cannot be specified with option 'out' or 'outDir'." - }, - Option_noEmit_cannot_be_specified_with_option_declaration: { - code: 5041, - category: ts.DiagnosticCategory.Error, - key: "Option 'noEmit' cannot be specified with option 'declaration'." - }, - Option_project_cannot_be_mixed_with_source_files_on_a_command_line: { - code: 5042, - category: ts.DiagnosticCategory.Error, - key: "Option 'project' cannot be mixed with source files on a command line." - }, - Option_sourceMap_cannot_be_specified_with_option_separateCompilation: { - code: 5043, - category: ts.DiagnosticCategory.Error, - key: "Option 'sourceMap' cannot be specified with option 'separateCompilation'." - }, - Option_declaration_cannot_be_specified_with_option_separateCompilation: { - code: 5044, - category: ts.DiagnosticCategory.Error, - key: "Option 'declaration' cannot be specified with option 'separateCompilation'." - }, - Option_noEmitOnError_cannot_be_specified_with_option_separateCompilation: { - code: 5045, - category: ts.DiagnosticCategory.Error, - key: "Option 'noEmitOnError' cannot be specified with option 'separateCompilation'." - }, - Option_out_cannot_be_specified_with_option_separateCompilation: { - code: 5046, - category: ts.DiagnosticCategory.Error, - key: "Option 'out' cannot be specified with option 'separateCompilation'." - }, - Option_separateCompilation_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES6_or_higher: { - code: 5047, - category: ts.DiagnosticCategory.Error, - key: "Option 'separateCompilation' can only be used when either option'--module' is provided or option 'target' is 'ES6' or higher." - }, - Concatenate_and_emit_output_to_single_file: { - code: 6001, - category: ts.DiagnosticCategory.Message, - key: "Concatenate and emit output to single file." - }, - Generates_corresponding_d_ts_file: { - code: 6002, - category: ts.DiagnosticCategory.Message, - key: "Generates corresponding '.d.ts' file." - }, - Specifies_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations: { - code: 6003, - category: ts.DiagnosticCategory.Message, - key: "Specifies the location where debugger should locate map files instead of generated locations." - }, - Specifies_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations: { - code: 6004, - category: ts.DiagnosticCategory.Message, - key: "Specifies the location where debugger should locate TypeScript files instead of source locations." - }, - Watch_input_files: { - code: 6005, - category: ts.DiagnosticCategory.Message, - key: "Watch input files." - }, - Redirect_output_structure_to_the_directory: { - code: 6006, - category: ts.DiagnosticCategory.Message, - key: "Redirect output structure to the directory." - }, - Do_not_erase_const_enum_declarations_in_generated_code: { - code: 6007, - category: ts.DiagnosticCategory.Message, - key: "Do not erase const enum declarations in generated code." - }, - Do_not_emit_outputs_if_any_type_checking_errors_were_reported: { - code: 6008, - category: ts.DiagnosticCategory.Message, - key: "Do not emit outputs if any type checking errors were reported." - }, - Do_not_emit_comments_to_output: { - code: 6009, - category: ts.DiagnosticCategory.Message, - key: "Do not emit comments to output." - }, - Do_not_emit_outputs: { - code: 6010, - category: ts.DiagnosticCategory.Message, - key: "Do not emit outputs." - }, - Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES6_experimental: { - code: 6015, - category: ts.DiagnosticCategory.Message, - key: "Specify ECMAScript target version: 'ES3' (default), 'ES5', or 'ES6' (experimental)" - }, - Specify_module_code_generation_Colon_commonjs_or_amd: { - code: 6016, - category: ts.DiagnosticCategory.Message, - key: "Specify module code generation: 'commonjs' or 'amd'" - }, - Print_this_message: { - code: 6017, - category: ts.DiagnosticCategory.Message, - key: "Print this message." - }, - Print_the_compiler_s_version: { - code: 6019, - category: ts.DiagnosticCategory.Message, - key: "Print the compiler's version." - }, - Compile_the_project_in_the_given_directory: { - code: 6020, - category: ts.DiagnosticCategory.Message, - key: "Compile the project in the given directory." - }, - Syntax_Colon_0: { - code: 6023, - category: ts.DiagnosticCategory.Message, - key: "Syntax: {0}" - }, - options: { - code: 6024, - category: ts.DiagnosticCategory.Message, - key: "options" - }, - file: { - code: 6025, - category: ts.DiagnosticCategory.Message, - key: "file" - }, - Examples_Colon_0: { - code: 6026, - category: ts.DiagnosticCategory.Message, - key: "Examples: {0}" - }, - Options_Colon: { - code: 6027, - category: ts.DiagnosticCategory.Message, - key: "Options:" - }, - Version_0: { - code: 6029, - category: ts.DiagnosticCategory.Message, - key: "Version {0}" - }, - Insert_command_line_options_and_files_from_a_file: { - code: 6030, - category: ts.DiagnosticCategory.Message, - key: "Insert command line options and files from a file." - }, - File_change_detected_Starting_incremental_compilation: { - code: 6032, - category: ts.DiagnosticCategory.Message, - key: "File change detected. Starting incremental compilation..." - }, - KIND: { - code: 6034, - category: ts.DiagnosticCategory.Message, - key: "KIND" - }, - FILE: { - code: 6035, - category: ts.DiagnosticCategory.Message, - key: "FILE" - }, - VERSION: { - code: 6036, - category: ts.DiagnosticCategory.Message, - key: "VERSION" - }, - LOCATION: { - code: 6037, - category: ts.DiagnosticCategory.Message, - key: "LOCATION" - }, - DIRECTORY: { - code: 6038, - category: ts.DiagnosticCategory.Message, - key: "DIRECTORY" - }, - Compilation_complete_Watching_for_file_changes: { - code: 6042, - category: ts.DiagnosticCategory.Message, - key: "Compilation complete. Watching for file changes." - }, - Generates_corresponding_map_file: { - code: 6043, - category: ts.DiagnosticCategory.Message, - key: "Generates corresponding '.map' file." - }, - Compiler_option_0_expects_an_argument: { - code: 6044, - category: ts.DiagnosticCategory.Error, - key: "Compiler option '{0}' expects an argument." - }, - Unterminated_quoted_string_in_response_file_0: { - code: 6045, - category: ts.DiagnosticCategory.Error, - key: "Unterminated quoted string in response file '{0}'." - }, - Argument_for_module_option_must_be_commonjs_or_amd: { - code: 6046, - category: ts.DiagnosticCategory.Error, - key: "Argument for '--module' option must be 'commonjs' or 'amd'." - }, - Argument_for_target_option_must_be_es3_es5_or_es6: { - code: 6047, - category: ts.DiagnosticCategory.Error, - key: "Argument for '--target' option must be 'es3', 'es5', or 'es6'." - }, - Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1: { - code: 6048, - category: ts.DiagnosticCategory.Error, - key: "Locale must be of the form or -. For example '{0}' or '{1}'." - }, - Unsupported_locale_0: { - code: 6049, - category: ts.DiagnosticCategory.Error, - key: "Unsupported locale '{0}'." - }, - Unable_to_open_file_0: { - code: 6050, - category: ts.DiagnosticCategory.Error, - key: "Unable to open file '{0}'." - }, - Corrupted_locale_file_0: { - code: 6051, - category: ts.DiagnosticCategory.Error, - key: "Corrupted locale file {0}." - }, - Raise_error_on_expressions_and_declarations_with_an_implied_any_type: { - code: 6052, - category: ts.DiagnosticCategory.Message, - key: "Raise error on expressions and declarations with an implied 'any' type." - }, - File_0_not_found: { - code: 6053, - category: ts.DiagnosticCategory.Error, - key: "File '{0}' not found." - }, - File_0_must_have_extension_ts_or_d_ts: { - code: 6054, - category: ts.DiagnosticCategory.Error, - key: "File '{0}' must have extension '.ts' or '.d.ts'." - }, - Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures: { - code: 6055, - category: ts.DiagnosticCategory.Message, - key: "Suppress noImplicitAny errors for indexing objects lacking index signatures." - }, - Do_not_emit_declarations_for_code_that_has_an_internal_annotation: { - code: 6056, - category: ts.DiagnosticCategory.Message, - key: "Do not emit declarations for code that has an '@internal' annotation." - }, - Preserve_new_lines_when_emitting_code: { - code: 6057, - category: ts.DiagnosticCategory.Message, - key: "Preserve new-lines when emitting code." - }, - Variable_0_implicitly_has_an_1_type: { - code: 7005, - category: ts.DiagnosticCategory.Error, - key: "Variable '{0}' implicitly has an '{1}' type." - }, - Parameter_0_implicitly_has_an_1_type: { - code: 7006, - category: ts.DiagnosticCategory.Error, - key: "Parameter '{0}' implicitly has an '{1}' type." - }, - Member_0_implicitly_has_an_1_type: { - code: 7008, - category: ts.DiagnosticCategory.Error, - key: "Member '{0}' implicitly has an '{1}' type." - }, - new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type: { - code: 7009, - category: ts.DiagnosticCategory.Error, - key: "'new' expression, whose target lacks a construct signature, implicitly has an 'any' type." - }, - _0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type: { - code: 7010, - category: ts.DiagnosticCategory.Error, - key: "'{0}', which lacks return-type annotation, implicitly has an '{1}' return type." - }, - Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: { - code: 7011, - category: ts.DiagnosticCategory.Error, - key: "Function expression, which lacks return-type annotation, implicitly has an '{0}' return type." - }, - Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: { - code: 7013, - category: ts.DiagnosticCategory.Error, - key: "Construct signature, which lacks return-type annotation, implicitly has an 'any' return type." - }, - Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_type_annotation: { - code: 7016, - category: ts.DiagnosticCategory.Error, - key: "Property '{0}' implicitly has type 'any', because its 'set' accessor lacks a type annotation." - }, - Index_signature_of_object_type_implicitly_has_an_any_type: { - code: 7017, - category: ts.DiagnosticCategory.Error, - key: "Index signature of object type implicitly has an 'any' type." - }, - Object_literal_s_property_0_implicitly_has_an_1_type: { - code: 7018, - category: ts.DiagnosticCategory.Error, - key: "Object literal's property '{0}' implicitly has an '{1}' type." - }, - Rest_parameter_0_implicitly_has_an_any_type: { - code: 7019, - category: ts.DiagnosticCategory.Error, - key: "Rest parameter '{0}' implicitly has an 'any[]' type." - }, - Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: { - code: 7020, - category: ts.DiagnosticCategory.Error, - key: "Call signature, which lacks return-type annotation, implicitly has an 'any' return type." - }, - _0_implicitly_has_type_any_because_it_is_referenced_directly_or_indirectly_in_its_own_type_annotation: { - code: 7021, - category: ts.DiagnosticCategory.Error, - key: "'{0}' implicitly has type 'any' because it is referenced directly or indirectly in its own type annotation." - }, - _0_implicitly_has_type_any_because_it_is_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer: { - code: 7022, - category: ts.DiagnosticCategory.Error, - key: "'{0}' implicitly has type 'any' because it is does not have a type annotation and is referenced directly or indirectly in its own initializer." - }, - _0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: { - code: 7023, - category: ts.DiagnosticCategory.Error, - key: "'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions." - }, - Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: { - code: 7024, - category: ts.DiagnosticCategory.Error, - key: "Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions." - }, - You_cannot_rename_this_element: { - code: 8000, - category: ts.DiagnosticCategory.Error, - key: "You cannot rename this element." - }, - You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: { - code: 8001, - category: ts.DiagnosticCategory.Error, - key: "You cannot rename elements that are defined in the standard TypeScript library." - }, - yield_expressions_are_not_currently_supported: { - code: 9000, - category: ts.DiagnosticCategory.Error, - key: "'yield' expressions are not currently supported." - }, - Generators_are_not_currently_supported: { - code: 9001, - category: ts.DiagnosticCategory.Error, - key: "Generators are not currently supported." - }, - Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clauses: { - code: 9002, - category: ts.DiagnosticCategory.Error, - key: "Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses." - }, - class_expressions_are_not_currently_supported: { - code: 9003, - category: ts.DiagnosticCategory.Error, - key: "'class' expressions are not currently supported." - }, - class_declarations_are_only_supported_directly_inside_a_module_or_as_a_top_level_declaration: { - code: 9004, - category: ts.DiagnosticCategory.Error, - key: "'class' declarations are only supported directly inside a module or as a top level declaration." - } + Unterminated_string_literal: { code: 1002, category: ts.DiagnosticCategory.Error, key: "Unterminated string literal." }, + Identifier_expected: { code: 1003, category: ts.DiagnosticCategory.Error, key: "Identifier expected." }, + _0_expected: { code: 1005, category: ts.DiagnosticCategory.Error, key: "'{0}' expected." }, + A_file_cannot_have_a_reference_to_itself: { code: 1006, category: ts.DiagnosticCategory.Error, key: "A file cannot have a reference to itself." }, + Trailing_comma_not_allowed: { code: 1009, category: ts.DiagnosticCategory.Error, key: "Trailing comma not allowed." }, + Asterisk_Slash_expected: { code: 1010, category: ts.DiagnosticCategory.Error, key: "'*/' expected." }, + Unexpected_token: { code: 1012, category: ts.DiagnosticCategory.Error, key: "Unexpected token." }, + A_rest_parameter_must_be_last_in_a_parameter_list: { code: 1014, category: ts.DiagnosticCategory.Error, key: "A rest parameter must be last in a parameter list." }, + Parameter_cannot_have_question_mark_and_initializer: { code: 1015, category: ts.DiagnosticCategory.Error, key: "Parameter cannot have question mark and initializer." }, + A_required_parameter_cannot_follow_an_optional_parameter: { code: 1016, category: ts.DiagnosticCategory.Error, key: "A required parameter cannot follow an optional parameter." }, + An_index_signature_cannot_have_a_rest_parameter: { code: 1017, category: ts.DiagnosticCategory.Error, key: "An index signature cannot have a rest parameter." }, + An_index_signature_parameter_cannot_have_an_accessibility_modifier: { code: 1018, category: ts.DiagnosticCategory.Error, key: "An index signature parameter cannot have an accessibility modifier." }, + An_index_signature_parameter_cannot_have_a_question_mark: { code: 1019, category: ts.DiagnosticCategory.Error, key: "An index signature parameter cannot have a question mark." }, + An_index_signature_parameter_cannot_have_an_initializer: { code: 1020, category: ts.DiagnosticCategory.Error, key: "An index signature parameter cannot have an initializer." }, + An_index_signature_must_have_a_type_annotation: { code: 1021, category: ts.DiagnosticCategory.Error, key: "An index signature must have a type annotation." }, + An_index_signature_parameter_must_have_a_type_annotation: { code: 1022, category: ts.DiagnosticCategory.Error, key: "An index signature parameter must have a type annotation." }, + An_index_signature_parameter_type_must_be_string_or_number: { code: 1023, category: ts.DiagnosticCategory.Error, key: "An index signature parameter type must be 'string' or 'number'." }, + A_class_or_interface_declaration_can_only_have_one_extends_clause: { code: 1024, category: ts.DiagnosticCategory.Error, key: "A class or interface declaration can only have one 'extends' clause." }, + An_extends_clause_must_precede_an_implements_clause: { code: 1025, category: ts.DiagnosticCategory.Error, key: "An 'extends' clause must precede an 'implements' clause." }, + A_class_can_only_extend_a_single_class: { code: 1026, category: ts.DiagnosticCategory.Error, key: "A class can only extend a single class." }, + A_class_declaration_can_only_have_one_implements_clause: { code: 1027, category: ts.DiagnosticCategory.Error, key: "A class declaration can only have one 'implements' clause." }, + Accessibility_modifier_already_seen: { code: 1028, category: ts.DiagnosticCategory.Error, key: "Accessibility modifier already seen." }, + _0_modifier_must_precede_1_modifier: { code: 1029, category: ts.DiagnosticCategory.Error, key: "'{0}' modifier must precede '{1}' modifier." }, + _0_modifier_already_seen: { code: 1030, category: ts.DiagnosticCategory.Error, key: "'{0}' modifier already seen." }, + _0_modifier_cannot_appear_on_a_class_element: { code: 1031, category: ts.DiagnosticCategory.Error, key: "'{0}' modifier cannot appear on a class element." }, + An_interface_declaration_cannot_have_an_implements_clause: { code: 1032, category: ts.DiagnosticCategory.Error, key: "An interface declaration cannot have an 'implements' clause." }, + super_must_be_followed_by_an_argument_list_or_member_access: { code: 1034, category: ts.DiagnosticCategory.Error, key: "'super' must be followed by an argument list or member access." }, + Only_ambient_modules_can_use_quoted_names: { code: 1035, category: ts.DiagnosticCategory.Error, key: "Only ambient modules can use quoted names." }, + Statements_are_not_allowed_in_ambient_contexts: { code: 1036, category: ts.DiagnosticCategory.Error, key: "Statements are not allowed in ambient contexts." }, + A_declare_modifier_cannot_be_used_in_an_already_ambient_context: { code: 1038, category: ts.DiagnosticCategory.Error, key: "A 'declare' modifier cannot be used in an already ambient context." }, + Initializers_are_not_allowed_in_ambient_contexts: { code: 1039, category: ts.DiagnosticCategory.Error, key: "Initializers are not allowed in ambient contexts." }, + _0_modifier_cannot_appear_on_a_module_element: { code: 1044, category: ts.DiagnosticCategory.Error, key: "'{0}' modifier cannot appear on a module element." }, + A_declare_modifier_cannot_be_used_with_an_interface_declaration: { code: 1045, category: ts.DiagnosticCategory.Error, key: "A 'declare' modifier cannot be used with an interface declaration." }, + A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file: { code: 1046, category: ts.DiagnosticCategory.Error, key: "A 'declare' modifier is required for a top level declaration in a .d.ts file." }, + A_rest_parameter_cannot_be_optional: { code: 1047, category: ts.DiagnosticCategory.Error, key: "A rest parameter cannot be optional." }, + A_rest_parameter_cannot_have_an_initializer: { code: 1048, category: ts.DiagnosticCategory.Error, key: "A rest parameter cannot have an initializer." }, + A_set_accessor_must_have_exactly_one_parameter: { code: 1049, category: ts.DiagnosticCategory.Error, key: "A 'set' accessor must have exactly one parameter." }, + A_set_accessor_cannot_have_an_optional_parameter: { code: 1051, category: ts.DiagnosticCategory.Error, key: "A 'set' accessor cannot have an optional parameter." }, + A_set_accessor_parameter_cannot_have_an_initializer: { code: 1052, category: ts.DiagnosticCategory.Error, key: "A 'set' accessor parameter cannot have an initializer." }, + A_set_accessor_cannot_have_rest_parameter: { code: 1053, category: ts.DiagnosticCategory.Error, key: "A 'set' accessor cannot have rest parameter." }, + A_get_accessor_cannot_have_parameters: { code: 1054, category: ts.DiagnosticCategory.Error, key: "A 'get' accessor cannot have parameters." }, + Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher: { code: 1056, category: ts.DiagnosticCategory.Error, key: "Accessors are only available when targeting ECMAScript 5 and higher." }, + Enum_member_must_have_initializer: { code: 1061, category: ts.DiagnosticCategory.Error, key: "Enum member must have initializer." }, + An_export_assignment_cannot_be_used_in_an_internal_module: { code: 1063, category: ts.DiagnosticCategory.Error, key: "An export assignment cannot be used in an internal module." }, + Ambient_enum_elements_can_only_have_integer_literal_initializers: { code: 1066, category: ts.DiagnosticCategory.Error, key: "Ambient enum elements can only have integer literal initializers." }, + Unexpected_token_A_constructor_method_accessor_or_property_was_expected: { code: 1068, category: ts.DiagnosticCategory.Error, key: "Unexpected token. A constructor, method, accessor, or property was expected." }, + A_declare_modifier_cannot_be_used_with_an_import_declaration: { code: 1079, category: ts.DiagnosticCategory.Error, key: "A 'declare' modifier cannot be used with an import declaration." }, + Invalid_reference_directive_syntax: { code: 1084, category: ts.DiagnosticCategory.Error, key: "Invalid 'reference' directive syntax." }, + Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: { code: 1085, category: ts.DiagnosticCategory.Error, key: "Octal literals are not available when targeting ECMAScript 5 and higher." }, + An_accessor_cannot_be_declared_in_an_ambient_context: { code: 1086, category: ts.DiagnosticCategory.Error, key: "An accessor cannot be declared in an ambient context." }, + _0_modifier_cannot_appear_on_a_constructor_declaration: { code: 1089, category: ts.DiagnosticCategory.Error, key: "'{0}' modifier cannot appear on a constructor declaration." }, + _0_modifier_cannot_appear_on_a_parameter: { code: 1090, category: ts.DiagnosticCategory.Error, key: "'{0}' modifier cannot appear on a parameter." }, + Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement: { code: 1091, category: ts.DiagnosticCategory.Error, key: "Only a single variable declaration is allowed in a 'for...in' statement." }, + Type_parameters_cannot_appear_on_a_constructor_declaration: { code: 1092, category: ts.DiagnosticCategory.Error, key: "Type parameters cannot appear on a constructor declaration." }, + Type_annotation_cannot_appear_on_a_constructor_declaration: { code: 1093, category: ts.DiagnosticCategory.Error, key: "Type annotation cannot appear on a constructor declaration." }, + An_accessor_cannot_have_type_parameters: { code: 1094, category: ts.DiagnosticCategory.Error, key: "An accessor cannot have type parameters." }, + A_set_accessor_cannot_have_a_return_type_annotation: { code: 1095, category: ts.DiagnosticCategory.Error, key: "A 'set' accessor cannot have a return type annotation." }, + An_index_signature_must_have_exactly_one_parameter: { code: 1096, category: ts.DiagnosticCategory.Error, key: "An index signature must have exactly one parameter." }, + _0_list_cannot_be_empty: { code: 1097, category: ts.DiagnosticCategory.Error, key: "'{0}' list cannot be empty." }, + Type_parameter_list_cannot_be_empty: { code: 1098, category: ts.DiagnosticCategory.Error, key: "Type parameter list cannot be empty." }, + Type_argument_list_cannot_be_empty: { code: 1099, category: ts.DiagnosticCategory.Error, key: "Type argument list cannot be empty." }, + Invalid_use_of_0_in_strict_mode: { code: 1100, category: ts.DiagnosticCategory.Error, key: "Invalid use of '{0}' in strict mode." }, + with_statements_are_not_allowed_in_strict_mode: { code: 1101, category: ts.DiagnosticCategory.Error, key: "'with' statements are not allowed in strict mode." }, + delete_cannot_be_called_on_an_identifier_in_strict_mode: { code: 1102, category: ts.DiagnosticCategory.Error, key: "'delete' cannot be called on an identifier in strict mode." }, + A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement: { code: 1104, category: ts.DiagnosticCategory.Error, key: "A 'continue' statement can only be used within an enclosing iteration statement." }, + A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement: { code: 1105, category: ts.DiagnosticCategory.Error, key: "A 'break' statement can only be used within an enclosing iteration or switch statement." }, + Jump_target_cannot_cross_function_boundary: { code: 1107, category: ts.DiagnosticCategory.Error, key: "Jump target cannot cross function boundary." }, + A_return_statement_can_only_be_used_within_a_function_body: { code: 1108, category: ts.DiagnosticCategory.Error, key: "A 'return' statement can only be used within a function body." }, + Expression_expected: { code: 1109, category: ts.DiagnosticCategory.Error, key: "Expression expected." }, + Type_expected: { code: 1110, category: ts.DiagnosticCategory.Error, key: "Type expected." }, + A_class_member_cannot_be_declared_optional: { code: 1112, category: ts.DiagnosticCategory.Error, key: "A class member cannot be declared optional." }, + A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: { code: 1113, category: ts.DiagnosticCategory.Error, key: "A 'default' clause cannot appear more than once in a 'switch' statement." }, + Duplicate_label_0: { code: 1114, category: ts.DiagnosticCategory.Error, key: "Duplicate label '{0}'" }, + A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: { code: 1115, category: ts.DiagnosticCategory.Error, key: "A 'continue' statement can only jump to a label of an enclosing iteration statement." }, + A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement: { code: 1116, category: ts.DiagnosticCategory.Error, key: "A 'break' statement can only jump to a label of an enclosing statement." }, + An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode: { code: 1117, category: ts.DiagnosticCategory.Error, key: "An object literal cannot have multiple properties with the same name in strict mode." }, + An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name: { code: 1118, category: ts.DiagnosticCategory.Error, key: "An object literal cannot have multiple get/set accessors with the same name." }, + An_object_literal_cannot_have_property_and_accessor_with_the_same_name: { code: 1119, category: ts.DiagnosticCategory.Error, key: "An object literal cannot have property and accessor with the same name." }, + An_export_assignment_cannot_have_modifiers: { code: 1120, category: ts.DiagnosticCategory.Error, key: "An export assignment cannot have modifiers." }, + Octal_literals_are_not_allowed_in_strict_mode: { code: 1121, category: ts.DiagnosticCategory.Error, key: "Octal literals are not allowed in strict mode." }, + A_tuple_type_element_list_cannot_be_empty: { code: 1122, category: ts.DiagnosticCategory.Error, key: "A tuple type element list cannot be empty." }, + Variable_declaration_list_cannot_be_empty: { code: 1123, category: ts.DiagnosticCategory.Error, key: "Variable declaration list cannot be empty." }, + Digit_expected: { code: 1124, category: ts.DiagnosticCategory.Error, key: "Digit expected." }, + Hexadecimal_digit_expected: { code: 1125, category: ts.DiagnosticCategory.Error, key: "Hexadecimal digit expected." }, + Unexpected_end_of_text: { code: 1126, category: ts.DiagnosticCategory.Error, key: "Unexpected end of text." }, + Invalid_character: { code: 1127, category: ts.DiagnosticCategory.Error, key: "Invalid character." }, + Declaration_or_statement_expected: { code: 1128, category: ts.DiagnosticCategory.Error, key: "Declaration or statement expected." }, + Statement_expected: { code: 1129, category: ts.DiagnosticCategory.Error, key: "Statement expected." }, + case_or_default_expected: { code: 1130, category: ts.DiagnosticCategory.Error, key: "'case' or 'default' expected." }, + Property_or_signature_expected: { code: 1131, category: ts.DiagnosticCategory.Error, key: "Property or signature expected." }, + Enum_member_expected: { code: 1132, category: ts.DiagnosticCategory.Error, key: "Enum member expected." }, + Type_reference_expected: { code: 1133, category: ts.DiagnosticCategory.Error, key: "Type reference expected." }, + Variable_declaration_expected: { code: 1134, category: ts.DiagnosticCategory.Error, key: "Variable declaration expected." }, + Argument_expression_expected: { code: 1135, category: ts.DiagnosticCategory.Error, key: "Argument expression expected." }, + Property_assignment_expected: { code: 1136, category: ts.DiagnosticCategory.Error, key: "Property assignment expected." }, + Expression_or_comma_expected: { code: 1137, category: ts.DiagnosticCategory.Error, key: "Expression or comma expected." }, + Parameter_declaration_expected: { code: 1138, category: ts.DiagnosticCategory.Error, key: "Parameter declaration expected." }, + Type_parameter_declaration_expected: { code: 1139, category: ts.DiagnosticCategory.Error, key: "Type parameter declaration expected." }, + Type_argument_expected: { code: 1140, category: ts.DiagnosticCategory.Error, key: "Type argument expected." }, + String_literal_expected: { code: 1141, category: ts.DiagnosticCategory.Error, key: "String literal expected." }, + Line_break_not_permitted_here: { code: 1142, category: ts.DiagnosticCategory.Error, key: "Line break not permitted here." }, + or_expected: { code: 1144, category: ts.DiagnosticCategory.Error, key: "'{' or ';' expected." }, + Modifiers_not_permitted_on_index_signature_members: { code: 1145, category: ts.DiagnosticCategory.Error, key: "Modifiers not permitted on index signature members." }, + Declaration_expected: { code: 1146, category: ts.DiagnosticCategory.Error, key: "Declaration expected." }, + Import_declarations_in_an_internal_module_cannot_reference_an_external_module: { code: 1147, category: ts.DiagnosticCategory.Error, key: "Import declarations in an internal module cannot reference an external module." }, + Cannot_compile_external_modules_unless_the_module_flag_is_provided: { code: 1148, category: ts.DiagnosticCategory.Error, key: "Cannot compile external modules unless the '--module' flag is provided." }, + File_name_0_differs_from_already_included_file_name_1_only_in_casing: { code: 1149, category: ts.DiagnosticCategory.Error, key: "File name '{0}' differs from already included file name '{1}' only in casing" }, + new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead: { code: 1150, category: ts.DiagnosticCategory.Error, key: "'new T[]' cannot be used to create an array. Use 'new Array()' instead." }, + var_let_or_const_expected: { code: 1152, category: ts.DiagnosticCategory.Error, key: "'var', 'let' or 'const' expected." }, + let_declarations_are_only_available_when_targeting_ECMAScript_6_and_higher: { code: 1153, category: ts.DiagnosticCategory.Error, key: "'let' declarations are only available when targeting ECMAScript 6 and higher." }, + const_declarations_are_only_available_when_targeting_ECMAScript_6_and_higher: { code: 1154, category: ts.DiagnosticCategory.Error, key: "'const' declarations are only available when targeting ECMAScript 6 and higher." }, + const_declarations_must_be_initialized: { code: 1155, category: ts.DiagnosticCategory.Error, key: "'const' declarations must be initialized" }, + const_declarations_can_only_be_declared_inside_a_block: { code: 1156, category: ts.DiagnosticCategory.Error, key: "'const' declarations can only be declared inside a block." }, + let_declarations_can_only_be_declared_inside_a_block: { code: 1157, category: ts.DiagnosticCategory.Error, key: "'let' declarations can only be declared inside a block." }, + Unterminated_template_literal: { code: 1160, category: ts.DiagnosticCategory.Error, key: "Unterminated template literal." }, + Unterminated_regular_expression_literal: { code: 1161, category: ts.DiagnosticCategory.Error, key: "Unterminated regular expression literal." }, + An_object_member_cannot_be_declared_optional: { code: 1162, category: ts.DiagnosticCategory.Error, key: "An object member cannot be declared optional." }, + yield_expression_must_be_contained_within_a_generator_declaration: { code: 1163, category: ts.DiagnosticCategory.Error, key: "'yield' expression must be contained_within a generator declaration." }, + Computed_property_names_are_not_allowed_in_enums: { code: 1164, category: ts.DiagnosticCategory.Error, key: "Computed property names are not allowed in enums." }, + A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol: { code: 1165, category: ts.DiagnosticCategory.Error, key: "A computed property name in an ambient context must directly refer to a built-in symbol." }, + A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol: { code: 1166, category: ts.DiagnosticCategory.Error, key: "A computed property name in a class property declaration must directly refer to a built-in symbol." }, + Computed_property_names_are_only_available_when_targeting_ECMAScript_6_and_higher: { code: 1167, category: ts.DiagnosticCategory.Error, key: "Computed property names are only available when targeting ECMAScript 6 and higher." }, + A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol: { code: 1168, category: ts.DiagnosticCategory.Error, key: "A computed property name in a method overload must directly refer to a built-in symbol." }, + A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol: { code: 1169, category: ts.DiagnosticCategory.Error, key: "A computed property name in an interface must directly refer to a built-in symbol." }, + A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol: { code: 1170, category: ts.DiagnosticCategory.Error, key: "A computed property name in a type literal must directly refer to a built-in symbol." }, + A_comma_expression_is_not_allowed_in_a_computed_property_name: { code: 1171, category: ts.DiagnosticCategory.Error, key: "A comma expression is not allowed in a computed property name." }, + extends_clause_already_seen: { code: 1172, category: ts.DiagnosticCategory.Error, key: "'extends' clause already seen." }, + extends_clause_must_precede_implements_clause: { code: 1173, category: ts.DiagnosticCategory.Error, key: "'extends' clause must precede 'implements' clause." }, + Classes_can_only_extend_a_single_class: { code: 1174, category: ts.DiagnosticCategory.Error, key: "Classes can only extend a single class." }, + implements_clause_already_seen: { code: 1175, category: ts.DiagnosticCategory.Error, key: "'implements' clause already seen." }, + Interface_declaration_cannot_have_implements_clause: { code: 1176, category: ts.DiagnosticCategory.Error, key: "Interface declaration cannot have 'implements' clause." }, + Binary_digit_expected: { code: 1177, category: ts.DiagnosticCategory.Error, key: "Binary digit expected." }, + Octal_digit_expected: { code: 1178, category: ts.DiagnosticCategory.Error, key: "Octal digit expected." }, + Unexpected_token_expected: { code: 1179, category: ts.DiagnosticCategory.Error, key: "Unexpected token. '{' expected." }, + Property_destructuring_pattern_expected: { code: 1180, category: ts.DiagnosticCategory.Error, key: "Property destructuring pattern expected." }, + Array_element_destructuring_pattern_expected: { code: 1181, category: ts.DiagnosticCategory.Error, key: "Array element destructuring pattern expected." }, + A_destructuring_declaration_must_have_an_initializer: { code: 1182, category: ts.DiagnosticCategory.Error, key: "A destructuring declaration must have an initializer." }, + Destructuring_declarations_are_not_allowed_in_ambient_contexts: { code: 1183, category: ts.DiagnosticCategory.Error, key: "Destructuring declarations are not allowed in ambient contexts." }, + An_implementation_cannot_be_declared_in_ambient_contexts: { code: 1184, category: ts.DiagnosticCategory.Error, key: "An implementation cannot be declared in ambient contexts." }, + Modifiers_cannot_appear_here: { code: 1184, category: ts.DiagnosticCategory.Error, key: "Modifiers cannot appear here." }, + Merge_conflict_marker_encountered: { code: 1185, category: ts.DiagnosticCategory.Error, key: "Merge conflict marker encountered." }, + A_rest_element_cannot_have_an_initializer: { code: 1186, category: ts.DiagnosticCategory.Error, key: "A rest element cannot have an initializer." }, + A_parameter_property_may_not_be_a_binding_pattern: { code: 1187, category: ts.DiagnosticCategory.Error, key: "A parameter property may not be a binding pattern." }, + Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement: { code: 1188, category: ts.DiagnosticCategory.Error, key: "Only a single variable declaration is allowed in a 'for...of' statement." }, + The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer: { code: 1189, category: ts.DiagnosticCategory.Error, key: "The variable declaration of a 'for...in' statement cannot have an initializer." }, + The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer: { code: 1190, category: ts.DiagnosticCategory.Error, key: "The variable declaration of a 'for...of' statement cannot have an initializer." }, + An_import_declaration_cannot_have_modifiers: { code: 1191, category: ts.DiagnosticCategory.Error, key: "An import declaration cannot have modifiers." }, + External_module_0_has_no_default_export: { code: 1192, category: ts.DiagnosticCategory.Error, key: "External module '{0}' has no default export." }, + An_export_declaration_cannot_have_modifiers: { code: 1193, category: ts.DiagnosticCategory.Error, key: "An export declaration cannot have modifiers." }, + Export_declarations_are_not_permitted_in_an_internal_module: { code: 1194, category: ts.DiagnosticCategory.Error, key: "Export declarations are not permitted in an internal module." }, + Catch_clause_variable_name_must_be_an_identifier: { code: 1195, category: ts.DiagnosticCategory.Error, key: "Catch clause variable name must be an identifier." }, + Catch_clause_variable_cannot_have_a_type_annotation: { code: 1196, category: ts.DiagnosticCategory.Error, key: "Catch clause variable cannot have a type annotation." }, + Catch_clause_variable_cannot_have_an_initializer: { code: 1197, category: ts.DiagnosticCategory.Error, key: "Catch clause variable cannot have an initializer." }, + An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: { code: 1198, category: ts.DiagnosticCategory.Error, key: "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive." }, + Unterminated_Unicode_escape_sequence: { code: 1199, category: ts.DiagnosticCategory.Error, key: "Unterminated Unicode escape sequence." }, + Line_terminator_not_permitted_before_arrow: { code: 1200, category: ts.DiagnosticCategory.Error, key: "Line terminator not permitted before arrow." }, + Import_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_or_import_d_from_mod_instead: { code: 1202, category: ts.DiagnosticCategory.Error, key: "Import assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"' or 'import d from \"mod\"' instead." }, + Export_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_export_default_instead: { code: 1203, category: ts.DiagnosticCategory.Error, key: "Export assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'export default' instead." }, + Cannot_compile_external_modules_into_amd_or_commonjs_when_targeting_es6_or_higher: { code: 1204, category: ts.DiagnosticCategory.Error, key: "Cannot compile external modules into amd or commonjs when targeting es6 or higher." }, + Decorators_are_only_available_when_targeting_ECMAScript_5_and_higher: { code: 1205, category: ts.DiagnosticCategory.Error, key: "Decorators are only available when targeting ECMAScript 5 and higher." }, + Decorators_are_not_valid_here: { code: 1206, category: ts.DiagnosticCategory.Error, key: "Decorators are not valid here." }, + Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name: { code: 1207, category: ts.DiagnosticCategory.Error, key: "Decorators cannot be applied to multiple get/set accessors of the same name." }, + Cannot_compile_non_external_modules_when_the_separateCompilation_flag_is_provided: { code: 1208, category: ts.DiagnosticCategory.Error, key: "Cannot compile non-external modules when the '--separateCompilation' flag is provided." }, + Ambient_const_enums_are_not_allowed_when_the_separateCompilation_flag_is_provided: { code: 1209, category: ts.DiagnosticCategory.Error, key: "Ambient const enums are not allowed when the '--separateCompilation' flag is provided." }, + Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode: { code: 1210, category: ts.DiagnosticCategory.Error, key: "Invalid use of '{0}'. Class definitions are automatically in strict mode." }, + A_class_declaration_without_the_default_modifier_must_have_a_name: { code: 1211, category: ts.DiagnosticCategory.Error, key: "A class declaration without the 'default' modifier must have a name" }, + Duplicate_identifier_0: { code: 2300, category: ts.DiagnosticCategory.Error, key: "Duplicate identifier '{0}'." }, + Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: { code: 2301, category: ts.DiagnosticCategory.Error, key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor." }, + Static_members_cannot_reference_class_type_parameters: { code: 2302, category: ts.DiagnosticCategory.Error, key: "Static members cannot reference class type parameters." }, + Circular_definition_of_import_alias_0: { code: 2303, category: ts.DiagnosticCategory.Error, key: "Circular definition of import alias '{0}'." }, + Cannot_find_name_0: { code: 2304, category: ts.DiagnosticCategory.Error, key: "Cannot find name '{0}'." }, + Module_0_has_no_exported_member_1: { code: 2305, category: ts.DiagnosticCategory.Error, key: "Module '{0}' has no exported member '{1}'." }, + File_0_is_not_an_external_module: { code: 2306, category: ts.DiagnosticCategory.Error, key: "File '{0}' is not an external module." }, + Cannot_find_external_module_0: { code: 2307, category: ts.DiagnosticCategory.Error, key: "Cannot find external module '{0}'." }, + A_module_cannot_have_more_than_one_export_assignment: { code: 2308, category: ts.DiagnosticCategory.Error, key: "A module cannot have more than one export assignment." }, + An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements: { code: 2309, category: ts.DiagnosticCategory.Error, key: "An export assignment cannot be used in a module with other exported elements." }, + Type_0_recursively_references_itself_as_a_base_type: { code: 2310, category: ts.DiagnosticCategory.Error, key: "Type '{0}' recursively references itself as a base type." }, + A_class_may_only_extend_another_class: { code: 2311, category: ts.DiagnosticCategory.Error, key: "A class may only extend another class." }, + An_interface_may_only_extend_a_class_or_another_interface: { code: 2312, category: ts.DiagnosticCategory.Error, key: "An interface may only extend a class or another interface." }, + Constraint_of_a_type_parameter_cannot_reference_any_type_parameter_from_the_same_type_parameter_list: { code: 2313, category: ts.DiagnosticCategory.Error, key: "Constraint of a type parameter cannot reference any type parameter from the same type parameter list." }, + Generic_type_0_requires_1_type_argument_s: { code: 2314, category: ts.DiagnosticCategory.Error, key: "Generic type '{0}' requires {1} type argument(s)." }, + Type_0_is_not_generic: { code: 2315, category: ts.DiagnosticCategory.Error, key: "Type '{0}' is not generic." }, + Global_type_0_must_be_a_class_or_interface_type: { code: 2316, category: ts.DiagnosticCategory.Error, key: "Global type '{0}' must be a class or interface type." }, + Global_type_0_must_have_1_type_parameter_s: { code: 2317, category: ts.DiagnosticCategory.Error, key: "Global type '{0}' must have {1} type parameter(s)." }, + Cannot_find_global_type_0: { code: 2318, category: ts.DiagnosticCategory.Error, key: "Cannot find global type '{0}'." }, + Named_property_0_of_types_1_and_2_are_not_identical: { code: 2319, category: ts.DiagnosticCategory.Error, key: "Named property '{0}' of types '{1}' and '{2}' are not identical." }, + Interface_0_cannot_simultaneously_extend_types_1_and_2: { code: 2320, category: ts.DiagnosticCategory.Error, key: "Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'." }, + Excessive_stack_depth_comparing_types_0_and_1: { code: 2321, category: ts.DiagnosticCategory.Error, key: "Excessive stack depth comparing types '{0}' and '{1}'." }, + Type_0_is_not_assignable_to_type_1: { code: 2322, category: ts.DiagnosticCategory.Error, key: "Type '{0}' is not assignable to type '{1}'." }, + Property_0_is_missing_in_type_1: { code: 2324, category: ts.DiagnosticCategory.Error, key: "Property '{0}' is missing in type '{1}'." }, + Property_0_is_private_in_type_1_but_not_in_type_2: { code: 2325, category: ts.DiagnosticCategory.Error, key: "Property '{0}' is private in type '{1}' but not in type '{2}'." }, + Types_of_property_0_are_incompatible: { code: 2326, category: ts.DiagnosticCategory.Error, key: "Types of property '{0}' are incompatible." }, + Property_0_is_optional_in_type_1_but_required_in_type_2: { code: 2327, category: ts.DiagnosticCategory.Error, key: "Property '{0}' is optional in type '{1}' but required in type '{2}'." }, + Types_of_parameters_0_and_1_are_incompatible: { code: 2328, category: ts.DiagnosticCategory.Error, key: "Types of parameters '{0}' and '{1}' are incompatible." }, + Index_signature_is_missing_in_type_0: { code: 2329, category: ts.DiagnosticCategory.Error, key: "Index signature is missing in type '{0}'." }, + Index_signatures_are_incompatible: { code: 2330, category: ts.DiagnosticCategory.Error, key: "Index signatures are incompatible." }, + this_cannot_be_referenced_in_a_module_body: { code: 2331, category: ts.DiagnosticCategory.Error, key: "'this' cannot be referenced in a module body." }, + this_cannot_be_referenced_in_current_location: { code: 2332, category: ts.DiagnosticCategory.Error, key: "'this' cannot be referenced in current location." }, + this_cannot_be_referenced_in_constructor_arguments: { code: 2333, category: ts.DiagnosticCategory.Error, key: "'this' cannot be referenced in constructor arguments." }, + this_cannot_be_referenced_in_a_static_property_initializer: { code: 2334, category: ts.DiagnosticCategory.Error, key: "'this' cannot be referenced in a static property initializer." }, + super_can_only_be_referenced_in_a_derived_class: { code: 2335, category: ts.DiagnosticCategory.Error, key: "'super' can only be referenced in a derived class." }, + super_cannot_be_referenced_in_constructor_arguments: { code: 2336, category: ts.DiagnosticCategory.Error, key: "'super' cannot be referenced in constructor arguments." }, + Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors: { code: 2337, category: ts.DiagnosticCategory.Error, key: "Super calls are not permitted outside constructors or in nested functions inside constructors" }, + super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class: { code: 2338, category: ts.DiagnosticCategory.Error, key: "'super' property access is permitted only in a constructor, member function, or member accessor of a derived class" }, + Property_0_does_not_exist_on_type_1: { code: 2339, category: ts.DiagnosticCategory.Error, key: "Property '{0}' does not exist on type '{1}'." }, + Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword: { code: 2340, category: ts.DiagnosticCategory.Error, key: "Only public and protected methods of the base class are accessible via the 'super' keyword" }, + Property_0_is_private_and_only_accessible_within_class_1: { code: 2341, category: ts.DiagnosticCategory.Error, key: "Property '{0}' is private and only accessible within class '{1}'." }, + An_index_expression_argument_must_be_of_type_string_number_symbol_or_any: { code: 2342, category: ts.DiagnosticCategory.Error, key: "An index expression argument must be of type 'string', 'number', 'symbol, or 'any'." }, + Type_0_does_not_satisfy_the_constraint_1: { code: 2344, category: ts.DiagnosticCategory.Error, key: "Type '{0}' does not satisfy the constraint '{1}'." }, + Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: { code: 2345, category: ts.DiagnosticCategory.Error, key: "Argument of type '{0}' is not assignable to parameter of type '{1}'." }, + Supplied_parameters_do_not_match_any_signature_of_call_target: { code: 2346, category: ts.DiagnosticCategory.Error, key: "Supplied parameters do not match any signature of call target." }, + Untyped_function_calls_may_not_accept_type_arguments: { code: 2347, category: ts.DiagnosticCategory.Error, key: "Untyped function calls may not accept type arguments." }, + Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: { code: 2348, category: ts.DiagnosticCategory.Error, key: "Value of type '{0}' is not callable. Did you mean to include 'new'?" }, + Cannot_invoke_an_expression_whose_type_lacks_a_call_signature: { code: 2349, category: ts.DiagnosticCategory.Error, key: "Cannot invoke an expression whose type lacks a call signature." }, + Only_a_void_function_can_be_called_with_the_new_keyword: { code: 2350, category: ts.DiagnosticCategory.Error, key: "Only a void function can be called with the 'new' keyword." }, + Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature: { code: 2351, category: ts.DiagnosticCategory.Error, key: "Cannot use 'new' with an expression whose type lacks a call or construct signature." }, + Neither_type_0_nor_type_1_is_assignable_to_the_other: { code: 2352, category: ts.DiagnosticCategory.Error, key: "Neither type '{0}' nor type '{1}' is assignable to the other." }, + No_best_common_type_exists_among_return_expressions: { code: 2354, category: ts.DiagnosticCategory.Error, key: "No best common type exists among return expressions." }, + A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_or_consist_of_a_single_throw_statement: { code: 2355, category: ts.DiagnosticCategory.Error, key: "A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement." }, + An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type: { code: 2356, category: ts.DiagnosticCategory.Error, key: "An arithmetic operand must be of type 'any', 'number' or an enum type." }, + The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_property_or_indexer: { code: 2357, category: ts.DiagnosticCategory.Error, key: "The operand of an increment or decrement operator must be a variable, property or indexer." }, + The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: { code: 2358, category: ts.DiagnosticCategory.Error, key: "The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter." }, + The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type: { code: 2359, category: ts.DiagnosticCategory.Error, key: "The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type." }, + The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol: { code: 2360, category: ts.DiagnosticCategory.Error, key: "The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'." }, + The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: { code: 2361, category: ts.DiagnosticCategory.Error, key: "The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter" }, + The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type: { code: 2362, category: ts.DiagnosticCategory.Error, key: "The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type." }, + The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type: { code: 2363, category: ts.DiagnosticCategory.Error, key: "The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type." }, + Invalid_left_hand_side_of_assignment_expression: { code: 2364, category: ts.DiagnosticCategory.Error, key: "Invalid left-hand side of assignment expression." }, + Operator_0_cannot_be_applied_to_types_1_and_2: { code: 2365, category: ts.DiagnosticCategory.Error, key: "Operator '{0}' cannot be applied to types '{1}' and '{2}'." }, + Type_parameter_name_cannot_be_0: { code: 2368, category: ts.DiagnosticCategory.Error, key: "Type parameter name cannot be '{0}'" }, + A_parameter_property_is_only_allowed_in_a_constructor_implementation: { code: 2369, category: ts.DiagnosticCategory.Error, key: "A parameter property is only allowed in a constructor implementation." }, + A_rest_parameter_must_be_of_an_array_type: { code: 2370, category: ts.DiagnosticCategory.Error, key: "A rest parameter must be of an array type." }, + A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation: { code: 2371, category: ts.DiagnosticCategory.Error, key: "A parameter initializer is only allowed in a function or constructor implementation." }, + Parameter_0_cannot_be_referenced_in_its_initializer: { code: 2372, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' cannot be referenced in its initializer." }, + Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it: { code: 2373, category: ts.DiagnosticCategory.Error, key: "Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it." }, + Duplicate_string_index_signature: { code: 2374, category: ts.DiagnosticCategory.Error, key: "Duplicate string index signature." }, + Duplicate_number_index_signature: { code: 2375, category: ts.DiagnosticCategory.Error, key: "Duplicate number index signature." }, + A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties: { code: 2376, category: ts.DiagnosticCategory.Error, key: "A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties." }, + Constructors_for_derived_classes_must_contain_a_super_call: { code: 2377, category: ts.DiagnosticCategory.Error, key: "Constructors for derived classes must contain a 'super' call." }, + A_get_accessor_must_return_a_value_or_consist_of_a_single_throw_statement: { code: 2378, category: ts.DiagnosticCategory.Error, key: "A 'get' accessor must return a value or consist of a single 'throw' statement." }, + Getter_and_setter_accessors_do_not_agree_in_visibility: { code: 2379, category: ts.DiagnosticCategory.Error, key: "Getter and setter accessors do not agree in visibility." }, + get_and_set_accessor_must_have_the_same_type: { code: 2380, category: ts.DiagnosticCategory.Error, key: "'get' and 'set' accessor must have the same type." }, + A_signature_with_an_implementation_cannot_use_a_string_literal_type: { code: 2381, category: ts.DiagnosticCategory.Error, key: "A signature with an implementation cannot use a string literal type." }, + Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature: { code: 2382, category: ts.DiagnosticCategory.Error, key: "Specialized overload signature is not assignable to any non-specialized signature." }, + Overload_signatures_must_all_be_exported_or_not_exported: { code: 2383, category: ts.DiagnosticCategory.Error, key: "Overload signatures must all be exported or not exported." }, + Overload_signatures_must_all_be_ambient_or_non_ambient: { code: 2384, category: ts.DiagnosticCategory.Error, key: "Overload signatures must all be ambient or non-ambient." }, + Overload_signatures_must_all_be_public_private_or_protected: { code: 2385, category: ts.DiagnosticCategory.Error, key: "Overload signatures must all be public, private or protected." }, + Overload_signatures_must_all_be_optional_or_required: { code: 2386, category: ts.DiagnosticCategory.Error, key: "Overload signatures must all be optional or required." }, + Function_overload_must_be_static: { code: 2387, category: ts.DiagnosticCategory.Error, key: "Function overload must be static." }, + Function_overload_must_not_be_static: { code: 2388, category: ts.DiagnosticCategory.Error, key: "Function overload must not be static." }, + Function_implementation_name_must_be_0: { code: 2389, category: ts.DiagnosticCategory.Error, key: "Function implementation name must be '{0}'." }, + Constructor_implementation_is_missing: { code: 2390, category: ts.DiagnosticCategory.Error, key: "Constructor implementation is missing." }, + Function_implementation_is_missing_or_not_immediately_following_the_declaration: { code: 2391, category: ts.DiagnosticCategory.Error, key: "Function implementation is missing or not immediately following the declaration." }, + Multiple_constructor_implementations_are_not_allowed: { code: 2392, category: ts.DiagnosticCategory.Error, key: "Multiple constructor implementations are not allowed." }, + Duplicate_function_implementation: { code: 2393, category: ts.DiagnosticCategory.Error, key: "Duplicate function implementation." }, + Overload_signature_is_not_compatible_with_function_implementation: { code: 2394, category: ts.DiagnosticCategory.Error, key: "Overload signature is not compatible with function implementation." }, + Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local: { code: 2395, category: ts.DiagnosticCategory.Error, key: "Individual declarations in merged declaration {0} must be all exported or all local." }, + Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters: { code: 2396, category: ts.DiagnosticCategory.Error, key: "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters." }, + Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference: { code: 2399, category: ts.DiagnosticCategory.Error, key: "Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference." }, + Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference: { code: 2400, category: ts.DiagnosticCategory.Error, key: "Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference." }, + Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference: { code: 2401, category: ts.DiagnosticCategory.Error, key: "Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference." }, + Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference: { code: 2402, category: ts.DiagnosticCategory.Error, key: "Expression resolves to '_super' that compiler uses to capture base class reference." }, + Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2: { code: 2403, category: ts.DiagnosticCategory.Error, key: "Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'." }, + The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation: { code: 2404, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...in' statement cannot use a type annotation." }, + The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any: { code: 2405, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...in' statement must be of type 'string' or 'any'." }, + Invalid_left_hand_side_in_for_in_statement: { code: 2406, category: ts.DiagnosticCategory.Error, key: "Invalid left-hand side in 'for...in' statement." }, + The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter: { code: 2407, category: ts.DiagnosticCategory.Error, key: "The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter." }, + Setters_cannot_return_a_value: { code: 2408, category: ts.DiagnosticCategory.Error, key: "Setters cannot return a value." }, + Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class: { code: 2409, category: ts.DiagnosticCategory.Error, key: "Return type of constructor signature must be assignable to the instance type of the class" }, + All_symbols_within_a_with_block_will_be_resolved_to_any: { code: 2410, category: ts.DiagnosticCategory.Error, key: "All symbols within a 'with' block will be resolved to 'any'." }, + Property_0_of_type_1_is_not_assignable_to_string_index_type_2: { code: 2411, category: ts.DiagnosticCategory.Error, key: "Property '{0}' of type '{1}' is not assignable to string index type '{2}'." }, + Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2: { code: 2412, category: ts.DiagnosticCategory.Error, key: "Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'." }, + Numeric_index_type_0_is_not_assignable_to_string_index_type_1: { code: 2413, category: ts.DiagnosticCategory.Error, key: "Numeric index type '{0}' is not assignable to string index type '{1}'." }, + Class_name_cannot_be_0: { code: 2414, category: ts.DiagnosticCategory.Error, key: "Class name cannot be '{0}'" }, + Class_0_incorrectly_extends_base_class_1: { code: 2415, category: ts.DiagnosticCategory.Error, key: "Class '{0}' incorrectly extends base class '{1}'." }, + Class_static_side_0_incorrectly_extends_base_class_static_side_1: { code: 2417, category: ts.DiagnosticCategory.Error, key: "Class static side '{0}' incorrectly extends base class static side '{1}'." }, + Type_name_0_in_extends_clause_does_not_reference_constructor_function_for_0: { code: 2419, category: ts.DiagnosticCategory.Error, key: "Type name '{0}' in extends clause does not reference constructor function for '{0}'." }, + Class_0_incorrectly_implements_interface_1: { code: 2420, category: ts.DiagnosticCategory.Error, key: "Class '{0}' incorrectly implements interface '{1}'." }, + A_class_may_only_implement_another_class_or_interface: { code: 2422, category: ts.DiagnosticCategory.Error, key: "A class may only implement another class or interface." }, + Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor: { code: 2423, category: ts.DiagnosticCategory.Error, key: "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor." }, + Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property: { code: 2424, category: ts.DiagnosticCategory.Error, key: "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property." }, + Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function: { code: 2425, category: ts.DiagnosticCategory.Error, key: "Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function." }, + Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function: { code: 2426, category: ts.DiagnosticCategory.Error, key: "Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function." }, + Interface_name_cannot_be_0: { code: 2427, category: ts.DiagnosticCategory.Error, key: "Interface name cannot be '{0}'" }, + All_declarations_of_an_interface_must_have_identical_type_parameters: { code: 2428, category: ts.DiagnosticCategory.Error, key: "All declarations of an interface must have identical type parameters." }, + Interface_0_incorrectly_extends_interface_1: { code: 2430, category: ts.DiagnosticCategory.Error, key: "Interface '{0}' incorrectly extends interface '{1}'." }, + Enum_name_cannot_be_0: { code: 2431, category: ts.DiagnosticCategory.Error, key: "Enum name cannot be '{0}'" }, + In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element: { code: 2432, category: ts.DiagnosticCategory.Error, key: "In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element." }, + A_module_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged: { code: 2433, category: ts.DiagnosticCategory.Error, key: "A module declaration cannot be in a different file from a class or function with which it is merged" }, + A_module_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged: { code: 2434, category: ts.DiagnosticCategory.Error, key: "A module declaration cannot be located prior to a class or function with which it is merged" }, + Ambient_external_modules_cannot_be_nested_in_other_modules: { code: 2435, category: ts.DiagnosticCategory.Error, key: "Ambient external modules cannot be nested in other modules." }, + Ambient_external_module_declaration_cannot_specify_relative_module_name: { code: 2436, category: ts.DiagnosticCategory.Error, key: "Ambient external module declaration cannot specify relative module name." }, + Module_0_is_hidden_by_a_local_declaration_with_the_same_name: { code: 2437, category: ts.DiagnosticCategory.Error, key: "Module '{0}' is hidden by a local declaration with the same name" }, + Import_name_cannot_be_0: { code: 2438, category: ts.DiagnosticCategory.Error, key: "Import name cannot be '{0}'" }, + Import_or_export_declaration_in_an_ambient_external_module_declaration_cannot_reference_external_module_through_relative_external_module_name: { code: 2439, category: ts.DiagnosticCategory.Error, key: "Import or export declaration in an ambient external module declaration cannot reference external module through relative external module name." }, + Import_declaration_conflicts_with_local_declaration_of_0: { code: 2440, category: ts.DiagnosticCategory.Error, key: "Import declaration conflicts with local declaration of '{0}'" }, + Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_an_external_module: { code: 2441, category: ts.DiagnosticCategory.Error, key: "Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of an external module." }, + Types_have_separate_declarations_of_a_private_property_0: { code: 2442, category: ts.DiagnosticCategory.Error, key: "Types have separate declarations of a private property '{0}'." }, + Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2: { code: 2443, category: ts.DiagnosticCategory.Error, key: "Property '{0}' is protected but type '{1}' is not a class derived from '{2}'." }, + Property_0_is_protected_in_type_1_but_public_in_type_2: { code: 2444, category: ts.DiagnosticCategory.Error, key: "Property '{0}' is protected in type '{1}' but public in type '{2}'." }, + Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses: { code: 2445, category: ts.DiagnosticCategory.Error, key: "Property '{0}' is protected and only accessible within class '{1}' and its subclasses." }, + Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1: { code: 2446, category: ts.DiagnosticCategory.Error, key: "Property '{0}' is protected and only accessible through an instance of class '{1}'." }, + The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead: { code: 2447, category: ts.DiagnosticCategory.Error, key: "The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead." }, + Block_scoped_variable_0_used_before_its_declaration: { code: 2448, category: ts.DiagnosticCategory.Error, key: "Block-scoped variable '{0}' used before its declaration." }, + The_operand_of_an_increment_or_decrement_operator_cannot_be_a_constant: { code: 2449, category: ts.DiagnosticCategory.Error, key: "The operand of an increment or decrement operator cannot be a constant." }, + Left_hand_side_of_assignment_expression_cannot_be_a_constant: { code: 2450, category: ts.DiagnosticCategory.Error, key: "Left-hand side of assignment expression cannot be a constant." }, + Cannot_redeclare_block_scoped_variable_0: { code: 2451, category: ts.DiagnosticCategory.Error, key: "Cannot redeclare block-scoped variable '{0}'." }, + An_enum_member_cannot_have_a_numeric_name: { code: 2452, category: ts.DiagnosticCategory.Error, key: "An enum member cannot have a numeric name." }, + The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly: { code: 2453, category: ts.DiagnosticCategory.Error, key: "The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly." }, + Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0: { code: 2455, category: ts.DiagnosticCategory.Error, key: "Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'." }, + Type_alias_0_circularly_references_itself: { code: 2456, category: ts.DiagnosticCategory.Error, key: "Type alias '{0}' circularly references itself." }, + Type_alias_name_cannot_be_0: { code: 2457, category: ts.DiagnosticCategory.Error, key: "Type alias name cannot be '{0}'" }, + An_AMD_module_cannot_have_multiple_name_assignments: { code: 2458, category: ts.DiagnosticCategory.Error, key: "An AMD module cannot have multiple name assignments." }, + Type_0_has_no_property_1_and_no_string_index_signature: { code: 2459, category: ts.DiagnosticCategory.Error, key: "Type '{0}' has no property '{1}' and no string index signature." }, + Type_0_has_no_property_1: { code: 2460, category: ts.DiagnosticCategory.Error, key: "Type '{0}' has no property '{1}'." }, + Type_0_is_not_an_array_type: { code: 2461, category: ts.DiagnosticCategory.Error, key: "Type '{0}' is not an array type." }, + A_rest_element_must_be_last_in_an_array_destructuring_pattern: { code: 2462, category: ts.DiagnosticCategory.Error, key: "A rest element must be last in an array destructuring pattern" }, + A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature: { code: 2463, category: ts.DiagnosticCategory.Error, key: "A binding pattern parameter cannot be optional in an implementation signature." }, + A_computed_property_name_must_be_of_type_string_number_symbol_or_any: { code: 2464, category: ts.DiagnosticCategory.Error, key: "A computed property name must be of type 'string', 'number', 'symbol', or 'any'." }, + this_cannot_be_referenced_in_a_computed_property_name: { code: 2465, category: ts.DiagnosticCategory.Error, key: "'this' cannot be referenced in a computed property name." }, + super_cannot_be_referenced_in_a_computed_property_name: { code: 2466, category: ts.DiagnosticCategory.Error, key: "'super' cannot be referenced in a computed property name." }, + A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type: { code: 2467, category: ts.DiagnosticCategory.Error, key: "A computed property name cannot reference a type parameter from its containing type." }, + Cannot_find_global_value_0: { code: 2468, category: ts.DiagnosticCategory.Error, key: "Cannot find global value '{0}'." }, + The_0_operator_cannot_be_applied_to_type_symbol: { code: 2469, category: ts.DiagnosticCategory.Error, key: "The '{0}' operator cannot be applied to type 'symbol'." }, + Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object: { code: 2470, category: ts.DiagnosticCategory.Error, key: "'Symbol' reference does not refer to the global Symbol constructor object." }, + A_computed_property_name_of_the_form_0_must_be_of_type_symbol: { code: 2471, category: ts.DiagnosticCategory.Error, key: "A computed property name of the form '{0}' must be of type 'symbol'." }, + Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_6_and_higher: { code: 2472, category: ts.DiagnosticCategory.Error, key: "Spread operator in 'new' expressions is only available when targeting ECMAScript 6 and higher." }, + Enum_declarations_must_all_be_const_or_non_const: { code: 2473, category: ts.DiagnosticCategory.Error, key: "Enum declarations must all be const or non-const." }, + In_const_enum_declarations_member_initializer_must_be_constant_expression: { code: 2474, category: ts.DiagnosticCategory.Error, key: "In 'const' enum declarations member initializer must be constant expression." }, + const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment: { code: 2475, category: ts.DiagnosticCategory.Error, key: "'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment." }, + A_const_enum_member_can_only_be_accessed_using_a_string_literal: { code: 2476, category: ts.DiagnosticCategory.Error, key: "A const enum member can only be accessed using a string literal." }, + const_enum_member_initializer_was_evaluated_to_a_non_finite_value: { code: 2477, category: ts.DiagnosticCategory.Error, key: "'const' enum member initializer was evaluated to a non-finite value." }, + const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN: { code: 2478, category: ts.DiagnosticCategory.Error, key: "'const' enum member initializer was evaluated to disallowed value 'NaN'." }, + Property_0_does_not_exist_on_const_enum_1: { code: 2479, category: ts.DiagnosticCategory.Error, key: "Property '{0}' does not exist on 'const' enum '{1}'." }, + let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations: { code: 2480, category: ts.DiagnosticCategory.Error, key: "'let' is not allowed to be used as a name in 'let' or 'const' declarations." }, + Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1: { code: 2481, category: ts.DiagnosticCategory.Error, key: "Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'." }, + The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation: { code: 2483, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...of' statement cannot use a type annotation." }, + Export_declaration_conflicts_with_exported_declaration_of_0: { code: 2484, category: ts.DiagnosticCategory.Error, key: "Export declaration conflicts with exported declaration of '{0}'" }, + The_left_hand_side_of_a_for_of_statement_cannot_be_a_previously_defined_constant: { code: 2485, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...of' statement cannot be a previously defined constant." }, + The_left_hand_side_of_a_for_in_statement_cannot_be_a_previously_defined_constant: { code: 2486, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...in' statement cannot be a previously defined constant." }, + Invalid_left_hand_side_in_for_of_statement: { code: 2487, category: ts.DiagnosticCategory.Error, key: "Invalid left-hand side in 'for...of' statement." }, + Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator: { code: 2488, category: ts.DiagnosticCategory.Error, key: "Type must have a '[Symbol.iterator]()' method that returns an iterator." }, + An_iterator_must_have_a_next_method: { code: 2489, category: ts.DiagnosticCategory.Error, key: "An iterator must have a 'next()' method." }, + The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property: { code: 2490, category: ts.DiagnosticCategory.Error, key: "The type returned by the 'next()' method of an iterator must have a 'value' property." }, + The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: { code: 2491, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...in' statement cannot be a destructuring pattern." }, + Cannot_redeclare_identifier_0_in_catch_clause: { code: 2492, category: ts.DiagnosticCategory.Error, key: "Cannot redeclare identifier '{0}' in catch clause" }, + Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2: { code: 2493, category: ts.DiagnosticCategory.Error, key: "Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'." }, + Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: { code: 2494, category: ts.DiagnosticCategory.Error, key: "Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher." }, + Type_0_is_not_an_array_type_or_a_string_type: { code: 2495, category: ts.DiagnosticCategory.Error, key: "Type '{0}' is not an array type or a string type." }, + The_arguments_object_cannot_be_referenced_in_an_arrow_function_Consider_using_a_standard_function_expression: { code: 2496, category: ts.DiagnosticCategory.Error, key: "The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression." }, + External_module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct: { code: 2497, category: ts.DiagnosticCategory.Error, key: "External module '{0}' resolves to a non-module entity and cannot be imported using this construct." }, + External_module_0_uses_export_and_cannot_be_used_with_export_Asterisk: { code: 2498, category: ts.DiagnosticCategory.Error, key: "External module '{0}' uses 'export =' and cannot be used with 'export *'." }, + An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments: { code: 2499, category: ts.DiagnosticCategory.Error, key: "An interface can only extend an identifier/qualified-name with optional type arguments." }, + A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments: { code: 2500, category: ts.DiagnosticCategory.Error, key: "A class can only implement an identifier/qualified-name with optional type arguments." }, + Import_declaration_0_is_using_private_name_1: { code: 4000, category: ts.DiagnosticCategory.Error, key: "Import declaration '{0}' is using private name '{1}'." }, + Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: { code: 4002, category: ts.DiagnosticCategory.Error, key: "Type parameter '{0}' of exported class has or is using private name '{1}'." }, + Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: { code: 4004, category: ts.DiagnosticCategory.Error, key: "Type parameter '{0}' of exported interface has or is using private name '{1}'." }, + Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: { code: 4006, category: ts.DiagnosticCategory.Error, key: "Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'." }, + Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: { code: 4008, category: ts.DiagnosticCategory.Error, key: "Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'." }, + Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: { code: 4010, category: ts.DiagnosticCategory.Error, key: "Type parameter '{0}' of public static method from exported class has or is using private name '{1}'." }, + Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: { code: 4012, category: ts.DiagnosticCategory.Error, key: "Type parameter '{0}' of public method from exported class has or is using private name '{1}'." }, + Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: { code: 4014, category: ts.DiagnosticCategory.Error, key: "Type parameter '{0}' of method from exported interface has or is using private name '{1}'." }, + Type_parameter_0_of_exported_function_has_or_is_using_private_name_1: { code: 4016, category: ts.DiagnosticCategory.Error, key: "Type parameter '{0}' of exported function has or is using private name '{1}'." }, + Implements_clause_of_exported_class_0_has_or_is_using_private_name_1: { code: 4019, category: ts.DiagnosticCategory.Error, key: "Implements clause of exported class '{0}' has or is using private name '{1}'." }, + Extends_clause_of_exported_class_0_has_or_is_using_private_name_1: { code: 4020, category: ts.DiagnosticCategory.Error, key: "Extends clause of exported class '{0}' has or is using private name '{1}'." }, + Extends_clause_of_exported_interface_0_has_or_is_using_private_name_1: { code: 4022, category: ts.DiagnosticCategory.Error, key: "Extends clause of exported interface '{0}' has or is using private name '{1}'." }, + Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { code: 4023, category: ts.DiagnosticCategory.Error, key: "Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named." }, + Exported_variable_0_has_or_is_using_name_1_from_private_module_2: { code: 4024, category: ts.DiagnosticCategory.Error, key: "Exported variable '{0}' has or is using name '{1}' from private module '{2}'." }, + Exported_variable_0_has_or_is_using_private_name_1: { code: 4025, category: ts.DiagnosticCategory.Error, key: "Exported variable '{0}' has or is using private name '{1}'." }, + Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { code: 4026, category: ts.DiagnosticCategory.Error, key: "Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named." }, + Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: { code: 4027, category: ts.DiagnosticCategory.Error, key: "Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'." }, + Public_static_property_0_of_exported_class_has_or_is_using_private_name_1: { code: 4028, category: ts.DiagnosticCategory.Error, key: "Public static property '{0}' of exported class has or is using private name '{1}'." }, + Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { code: 4029, category: ts.DiagnosticCategory.Error, key: "Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named." }, + Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: { code: 4030, category: ts.DiagnosticCategory.Error, key: "Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'." }, + Public_property_0_of_exported_class_has_or_is_using_private_name_1: { code: 4031, category: ts.DiagnosticCategory.Error, key: "Public property '{0}' of exported class has or is using private name '{1}'." }, + Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: { code: 4032, category: ts.DiagnosticCategory.Error, key: "Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'." }, + Property_0_of_exported_interface_has_or_is_using_private_name_1: { code: 4033, category: ts.DiagnosticCategory.Error, key: "Property '{0}' of exported interface has or is using private name '{1}'." }, + Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2: { code: 4034, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'." }, + Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1: { code: 4035, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'." }, + Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2: { code: 4036, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'." }, + Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1: { code: 4037, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of public property setter from exported class has or is using private name '{1}'." }, + Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: { code: 4038, category: ts.DiagnosticCategory.Error, key: "Return type of public static property getter from exported class has or is using name '{0}' from external module {1} but cannot be named." }, + Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1: { code: 4039, category: ts.DiagnosticCategory.Error, key: "Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'." }, + Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0: { code: 4040, category: ts.DiagnosticCategory.Error, key: "Return type of public static property getter from exported class has or is using private name '{0}'." }, + Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: { code: 4041, category: ts.DiagnosticCategory.Error, key: "Return type of public property getter from exported class has or is using name '{0}' from external module {1} but cannot be named." }, + Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1: { code: 4042, category: ts.DiagnosticCategory.Error, key: "Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'." }, + Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0: { code: 4043, category: ts.DiagnosticCategory.Error, key: "Return type of public property getter from exported class has or is using private name '{0}'." }, + Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: { code: 4044, category: ts.DiagnosticCategory.Error, key: "Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'." }, + Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0: { code: 4045, category: ts.DiagnosticCategory.Error, key: "Return type of constructor signature from exported interface has or is using private name '{0}'." }, + Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: { code: 4046, category: ts.DiagnosticCategory.Error, key: "Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'." }, + Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0: { code: 4047, category: ts.DiagnosticCategory.Error, key: "Return type of call signature from exported interface has or is using private name '{0}'." }, + Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: { code: 4048, category: ts.DiagnosticCategory.Error, key: "Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'." }, + Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0: { code: 4049, category: ts.DiagnosticCategory.Error, key: "Return type of index signature from exported interface has or is using private name '{0}'." }, + Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: { code: 4050, category: ts.DiagnosticCategory.Error, key: "Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named." }, + Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: { code: 4051, category: ts.DiagnosticCategory.Error, key: "Return type of public static method from exported class has or is using name '{0}' from private module '{1}'." }, + Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0: { code: 4052, category: ts.DiagnosticCategory.Error, key: "Return type of public static method from exported class has or is using private name '{0}'." }, + Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: { code: 4053, category: ts.DiagnosticCategory.Error, key: "Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named." }, + Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: { code: 4054, category: ts.DiagnosticCategory.Error, key: "Return type of public method from exported class has or is using name '{0}' from private module '{1}'." }, + Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0: { code: 4055, category: ts.DiagnosticCategory.Error, key: "Return type of public method from exported class has or is using private name '{0}'." }, + Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1: { code: 4056, category: ts.DiagnosticCategory.Error, key: "Return type of method from exported interface has or is using name '{0}' from private module '{1}'." }, + Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0: { code: 4057, category: ts.DiagnosticCategory.Error, key: "Return type of method from exported interface has or is using private name '{0}'." }, + Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: { code: 4058, category: ts.DiagnosticCategory.Error, key: "Return type of exported function has or is using name '{0}' from external module {1} but cannot be named." }, + Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1: { code: 4059, category: ts.DiagnosticCategory.Error, key: "Return type of exported function has or is using name '{0}' from private module '{1}'." }, + Return_type_of_exported_function_has_or_is_using_private_name_0: { code: 4060, category: ts.DiagnosticCategory.Error, key: "Return type of exported function has or is using private name '{0}'." }, + Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { code: 4061, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named." }, + Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2: { code: 4062, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'." }, + Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1: { code: 4063, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of constructor from exported class has or is using private name '{1}'." }, + Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: { code: 4064, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'." }, + Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: { code: 4065, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'." }, + Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: { code: 4066, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'." }, + Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: { code: 4067, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of call signature from exported interface has or is using private name '{1}'." }, + Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { code: 4068, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named." }, + Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: { code: 4069, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'." }, + Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: { code: 4070, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of public static method from exported class has or is using private name '{1}'." }, + Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { code: 4071, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named." }, + Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: { code: 4072, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'." }, + Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: { code: 4073, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of public method from exported class has or is using private name '{1}'." }, + Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2: { code: 4074, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'." }, + Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: { code: 4075, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of method from exported interface has or is using private name '{1}'." }, + Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: { code: 4076, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named." }, + Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2: { code: 4077, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'." }, + Parameter_0_of_exported_function_has_or_is_using_private_name_1: { code: 4078, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' of exported function has or is using private name '{1}'." }, + Exported_type_alias_0_has_or_is_using_private_name_1: { code: 4081, category: ts.DiagnosticCategory.Error, key: "Exported type alias '{0}' has or is using private name '{1}'." }, + Default_export_of_the_module_has_or_is_using_private_name_0: { code: 4082, category: ts.DiagnosticCategory.Error, key: "Default export of the module has or is using private name '{0}'." }, + Loop_contains_block_scoped_variable_0_referenced_by_a_function_in_the_loop_This_is_only_supported_in_ECMAScript_6_or_higher: { code: 4091, category: ts.DiagnosticCategory.Error, key: "Loop contains block-scoped variable '{0}' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher." }, + The_current_host_does_not_support_the_0_option: { code: 5001, category: ts.DiagnosticCategory.Error, key: "The current host does not support the '{0}' option." }, + Cannot_find_the_common_subdirectory_path_for_the_input_files: { code: 5009, category: ts.DiagnosticCategory.Error, key: "Cannot find the common subdirectory path for the input files." }, + Cannot_read_file_0_Colon_1: { code: 5012, category: ts.DiagnosticCategory.Error, key: "Cannot read file '{0}': {1}" }, + Unsupported_file_encoding: { code: 5013, category: ts.DiagnosticCategory.Error, key: "Unsupported file encoding." }, + Unknown_compiler_option_0: { code: 5023, category: ts.DiagnosticCategory.Error, key: "Unknown compiler option '{0}'." }, + Compiler_option_0_requires_a_value_of_type_1: { code: 5024, category: ts.DiagnosticCategory.Error, key: "Compiler option '{0}' requires a value of type {1}." }, + Could_not_write_file_0_Colon_1: { code: 5033, category: ts.DiagnosticCategory.Error, key: "Could not write file '{0}': {1}" }, + Option_mapRoot_cannot_be_specified_without_specifying_sourcemap_option: { code: 5038, category: ts.DiagnosticCategory.Error, key: "Option 'mapRoot' cannot be specified without specifying 'sourcemap' option." }, + Option_sourceRoot_cannot_be_specified_without_specifying_sourcemap_option: { code: 5039, category: ts.DiagnosticCategory.Error, key: "Option 'sourceRoot' cannot be specified without specifying 'sourcemap' option." }, + Option_noEmit_cannot_be_specified_with_option_out_or_outDir: { code: 5040, category: ts.DiagnosticCategory.Error, key: "Option 'noEmit' cannot be specified with option 'out' or 'outDir'." }, + Option_noEmit_cannot_be_specified_with_option_declaration: { code: 5041, category: ts.DiagnosticCategory.Error, key: "Option 'noEmit' cannot be specified with option 'declaration'." }, + Option_project_cannot_be_mixed_with_source_files_on_a_command_line: { code: 5042, category: ts.DiagnosticCategory.Error, key: "Option 'project' cannot be mixed with source files on a command line." }, + Option_sourceMap_cannot_be_specified_with_option_separateCompilation: { code: 5043, category: ts.DiagnosticCategory.Error, key: "Option 'sourceMap' cannot be specified with option 'separateCompilation'." }, + Option_declaration_cannot_be_specified_with_option_separateCompilation: { code: 5044, category: ts.DiagnosticCategory.Error, key: "Option 'declaration' cannot be specified with option 'separateCompilation'." }, + Option_noEmitOnError_cannot_be_specified_with_option_separateCompilation: { code: 5045, category: ts.DiagnosticCategory.Error, key: "Option 'noEmitOnError' cannot be specified with option 'separateCompilation'." }, + Option_out_cannot_be_specified_with_option_separateCompilation: { code: 5046, category: ts.DiagnosticCategory.Error, key: "Option 'out' cannot be specified with option 'separateCompilation'." }, + Option_separateCompilation_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES6_or_higher: { code: 5047, category: ts.DiagnosticCategory.Error, key: "Option 'separateCompilation' can only be used when either option'--module' is provided or option 'target' is 'ES6' or higher." }, + Concatenate_and_emit_output_to_single_file: { code: 6001, category: ts.DiagnosticCategory.Message, key: "Concatenate and emit output to single file." }, + Generates_corresponding_d_ts_file: { code: 6002, category: ts.DiagnosticCategory.Message, key: "Generates corresponding '.d.ts' file." }, + Specifies_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations: { code: 6003, category: ts.DiagnosticCategory.Message, key: "Specifies the location where debugger should locate map files instead of generated locations." }, + Specifies_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations: { code: 6004, category: ts.DiagnosticCategory.Message, key: "Specifies the location where debugger should locate TypeScript files instead of source locations." }, + Watch_input_files: { code: 6005, category: ts.DiagnosticCategory.Message, key: "Watch input files." }, + Redirect_output_structure_to_the_directory: { code: 6006, category: ts.DiagnosticCategory.Message, key: "Redirect output structure to the directory." }, + Do_not_erase_const_enum_declarations_in_generated_code: { code: 6007, category: ts.DiagnosticCategory.Message, key: "Do not erase const enum declarations in generated code." }, + Do_not_emit_outputs_if_any_type_checking_errors_were_reported: { code: 6008, category: ts.DiagnosticCategory.Message, key: "Do not emit outputs if any type checking errors were reported." }, + Do_not_emit_comments_to_output: { code: 6009, category: ts.DiagnosticCategory.Message, key: "Do not emit comments to output." }, + Do_not_emit_outputs: { code: 6010, category: ts.DiagnosticCategory.Message, key: "Do not emit outputs." }, + Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES6_experimental: { code: 6015, category: ts.DiagnosticCategory.Message, key: "Specify ECMAScript target version: 'ES3' (default), 'ES5', or 'ES6' (experimental)" }, + Specify_module_code_generation_Colon_commonjs_or_amd: { code: 6016, category: ts.DiagnosticCategory.Message, key: "Specify module code generation: 'commonjs' or 'amd'" }, + Print_this_message: { code: 6017, category: ts.DiagnosticCategory.Message, key: "Print this message." }, + Print_the_compiler_s_version: { code: 6019, category: ts.DiagnosticCategory.Message, key: "Print the compiler's version." }, + Compile_the_project_in_the_given_directory: { code: 6020, category: ts.DiagnosticCategory.Message, key: "Compile the project in the given directory." }, + Syntax_Colon_0: { code: 6023, category: ts.DiagnosticCategory.Message, key: "Syntax: {0}" }, + options: { code: 6024, category: ts.DiagnosticCategory.Message, key: "options" }, + file: { code: 6025, category: ts.DiagnosticCategory.Message, key: "file" }, + Examples_Colon_0: { code: 6026, category: ts.DiagnosticCategory.Message, key: "Examples: {0}" }, + Options_Colon: { code: 6027, category: ts.DiagnosticCategory.Message, key: "Options:" }, + Version_0: { code: 6029, category: ts.DiagnosticCategory.Message, key: "Version {0}" }, + Insert_command_line_options_and_files_from_a_file: { code: 6030, category: ts.DiagnosticCategory.Message, key: "Insert command line options and files from a file." }, + File_change_detected_Starting_incremental_compilation: { code: 6032, category: ts.DiagnosticCategory.Message, key: "File change detected. Starting incremental compilation..." }, + KIND: { code: 6034, category: ts.DiagnosticCategory.Message, key: "KIND" }, + FILE: { code: 6035, category: ts.DiagnosticCategory.Message, key: "FILE" }, + VERSION: { code: 6036, category: ts.DiagnosticCategory.Message, key: "VERSION" }, + LOCATION: { code: 6037, category: ts.DiagnosticCategory.Message, key: "LOCATION" }, + DIRECTORY: { code: 6038, category: ts.DiagnosticCategory.Message, key: "DIRECTORY" }, + Compilation_complete_Watching_for_file_changes: { code: 6042, category: ts.DiagnosticCategory.Message, key: "Compilation complete. Watching for file changes." }, + Generates_corresponding_map_file: { code: 6043, category: ts.DiagnosticCategory.Message, key: "Generates corresponding '.map' file." }, + Compiler_option_0_expects_an_argument: { code: 6044, category: ts.DiagnosticCategory.Error, key: "Compiler option '{0}' expects an argument." }, + Unterminated_quoted_string_in_response_file_0: { code: 6045, category: ts.DiagnosticCategory.Error, key: "Unterminated quoted string in response file '{0}'." }, + Argument_for_module_option_must_be_commonjs_or_amd: { code: 6046, category: ts.DiagnosticCategory.Error, key: "Argument for '--module' option must be 'commonjs' or 'amd'." }, + Argument_for_target_option_must_be_es3_es5_or_es6: { code: 6047, category: ts.DiagnosticCategory.Error, key: "Argument for '--target' option must be 'es3', 'es5', or 'es6'." }, + Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1: { code: 6048, category: ts.DiagnosticCategory.Error, key: "Locale must be of the form or -. For example '{0}' or '{1}'." }, + Unsupported_locale_0: { code: 6049, category: ts.DiagnosticCategory.Error, key: "Unsupported locale '{0}'." }, + Unable_to_open_file_0: { code: 6050, category: ts.DiagnosticCategory.Error, key: "Unable to open file '{0}'." }, + Corrupted_locale_file_0: { code: 6051, category: ts.DiagnosticCategory.Error, key: "Corrupted locale file {0}." }, + Raise_error_on_expressions_and_declarations_with_an_implied_any_type: { code: 6052, category: ts.DiagnosticCategory.Message, key: "Raise error on expressions and declarations with an implied 'any' type." }, + File_0_not_found: { code: 6053, category: ts.DiagnosticCategory.Error, key: "File '{0}' not found." }, + File_0_must_have_extension_ts_or_d_ts: { code: 6054, category: ts.DiagnosticCategory.Error, key: "File '{0}' must have extension '.ts' or '.d.ts'." }, + Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures: { code: 6055, category: ts.DiagnosticCategory.Message, key: "Suppress noImplicitAny errors for indexing objects lacking index signatures." }, + Do_not_emit_declarations_for_code_that_has_an_internal_annotation: { code: 6056, category: ts.DiagnosticCategory.Message, key: "Do not emit declarations for code that has an '@internal' annotation." }, + Preserve_new_lines_when_emitting_code: { code: 6057, category: ts.DiagnosticCategory.Message, key: "Preserve new-lines when emitting code." }, + Variable_0_implicitly_has_an_1_type: { code: 7005, category: ts.DiagnosticCategory.Error, key: "Variable '{0}' implicitly has an '{1}' type." }, + Parameter_0_implicitly_has_an_1_type: { code: 7006, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' implicitly has an '{1}' type." }, + Member_0_implicitly_has_an_1_type: { code: 7008, category: ts.DiagnosticCategory.Error, key: "Member '{0}' implicitly has an '{1}' type." }, + new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type: { code: 7009, category: ts.DiagnosticCategory.Error, key: "'new' expression, whose target lacks a construct signature, implicitly has an 'any' type." }, + _0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type: { code: 7010, category: ts.DiagnosticCategory.Error, key: "'{0}', which lacks return-type annotation, implicitly has an '{1}' return type." }, + Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: { code: 7011, category: ts.DiagnosticCategory.Error, key: "Function expression, which lacks return-type annotation, implicitly has an '{0}' return type." }, + Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: { code: 7013, category: ts.DiagnosticCategory.Error, key: "Construct signature, which lacks return-type annotation, implicitly has an 'any' return type." }, + Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_type_annotation: { code: 7016, category: ts.DiagnosticCategory.Error, key: "Property '{0}' implicitly has type 'any', because its 'set' accessor lacks a type annotation." }, + Index_signature_of_object_type_implicitly_has_an_any_type: { code: 7017, category: ts.DiagnosticCategory.Error, key: "Index signature of object type implicitly has an 'any' type." }, + Object_literal_s_property_0_implicitly_has_an_1_type: { code: 7018, category: ts.DiagnosticCategory.Error, key: "Object literal's property '{0}' implicitly has an '{1}' type." }, + Rest_parameter_0_implicitly_has_an_any_type: { code: 7019, category: ts.DiagnosticCategory.Error, key: "Rest parameter '{0}' implicitly has an 'any[]' type." }, + Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: { code: 7020, category: ts.DiagnosticCategory.Error, key: "Call signature, which lacks return-type annotation, implicitly has an 'any' return type." }, + _0_implicitly_has_type_any_because_it_is_referenced_directly_or_indirectly_in_its_own_type_annotation: { code: 7021, category: ts.DiagnosticCategory.Error, key: "'{0}' implicitly has type 'any' because it is referenced directly or indirectly in its own type annotation." }, + _0_implicitly_has_type_any_because_it_is_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer: { code: 7022, category: ts.DiagnosticCategory.Error, key: "'{0}' implicitly has type 'any' because it is does not have a type annotation and is referenced directly or indirectly in its own initializer." }, + _0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: { code: 7023, category: ts.DiagnosticCategory.Error, key: "'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions." }, + Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: { code: 7024, category: ts.DiagnosticCategory.Error, key: "Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions." }, + You_cannot_rename_this_element: { code: 8000, category: ts.DiagnosticCategory.Error, key: "You cannot rename this element." }, + You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: { code: 8001, category: ts.DiagnosticCategory.Error, key: "You cannot rename elements that are defined in the standard TypeScript library." }, + import_can_only_be_used_in_a_ts_file: { code: 8002, category: ts.DiagnosticCategory.Error, key: "'import ... =' can only be used in a .ts file." }, + export_can_only_be_used_in_a_ts_file: { code: 8003, category: ts.DiagnosticCategory.Error, key: "'export=' can only be used in a .ts file." }, + type_parameter_declarations_can_only_be_used_in_a_ts_file: { code: 8004, category: ts.DiagnosticCategory.Error, key: "'type parameter declarations' can only be used in a .ts file." }, + implements_clauses_can_only_be_used_in_a_ts_file: { code: 8005, category: ts.DiagnosticCategory.Error, key: "'implements clauses' can only be used in a .ts file." }, + interface_declarations_can_only_be_used_in_a_ts_file: { code: 8006, category: ts.DiagnosticCategory.Error, key: "'interface declarations' can only be used in a .ts file." }, + module_declarations_can_only_be_used_in_a_ts_file: { code: 8007, category: ts.DiagnosticCategory.Error, key: "'module declarations' can only be used in a .ts file." }, + type_aliases_can_only_be_used_in_a_ts_file: { code: 8008, category: ts.DiagnosticCategory.Error, key: "'type aliases' can only be used in a .ts file." }, + _0_can_only_be_used_in_a_ts_file: { code: 8009, category: ts.DiagnosticCategory.Error, key: "'{0}' can only be used in a .ts file." }, + types_can_only_be_used_in_a_ts_file: { code: 8010, category: ts.DiagnosticCategory.Error, key: "'types' can only be used in a .ts file." }, + type_arguments_can_only_be_used_in_a_ts_file: { code: 8011, category: ts.DiagnosticCategory.Error, key: "'type arguments' can only be used in a .ts file." }, + parameter_modifiers_can_only_be_used_in_a_ts_file: { code: 8012, category: ts.DiagnosticCategory.Error, key: "'parameter modifiers' can only be used in a .ts file." }, + can_only_be_used_in_a_ts_file: { code: 8013, category: ts.DiagnosticCategory.Error, key: "'?' can only be used in a .ts file." }, + property_declarations_can_only_be_used_in_a_ts_file: { code: 8014, category: ts.DiagnosticCategory.Error, key: "'property declarations' can only be used in a .ts file." }, + enum_declarations_can_only_be_used_in_a_ts_file: { code: 8015, category: ts.DiagnosticCategory.Error, key: "'enum declarations' can only be used in a .ts file." }, + type_assertion_expressions_can_only_be_used_in_a_ts_file: { code: 8016, category: ts.DiagnosticCategory.Error, key: "'type assertion expressions' can only be used in a .ts file." }, + decorators_can_only_be_used_in_a_ts_file: { code: 8017, category: ts.DiagnosticCategory.Error, key: "'decorators' can only be used in a .ts file." }, + yield_expressions_are_not_currently_supported: { code: 9000, category: ts.DiagnosticCategory.Error, key: "'yield' expressions are not currently supported." }, + Generators_are_not_currently_supported: { code: 9001, category: ts.DiagnosticCategory.Error, key: "Generators are not currently supported." }, + Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clauses: { code: 9002, category: ts.DiagnosticCategory.Error, key: "Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses." }, + class_expressions_are_not_currently_supported: { code: 9003, category: ts.DiagnosticCategory.Error, key: "'class' expressions are not currently supported." }, + class_declarations_are_only_supported_directly_inside_a_module_or_as_a_top_level_declaration: { code: 9004, category: ts.DiagnosticCategory.Error, key: "'class' declarations are only supported directly inside a module or as a top level declaration." } }; })(ts || (ts = {})); /// @@ -3584,2806 +1554,10 @@ var ts; "^=": 64, "@": 52 }; - var unicodeES3IdentifierStart = [ - 170, - 170, - 181, - 181, - 186, - 186, - 192, - 214, - 216, - 246, - 248, - 543, - 546, - 563, - 592, - 685, - 688, - 696, - 699, - 705, - 720, - 721, - 736, - 740, - 750, - 750, - 890, - 890, - 902, - 902, - 904, - 906, - 908, - 908, - 910, - 929, - 931, - 974, - 976, - 983, - 986, - 1011, - 1024, - 1153, - 1164, - 1220, - 1223, - 1224, - 1227, - 1228, - 1232, - 1269, - 1272, - 1273, - 1329, - 1366, - 1369, - 1369, - 1377, - 1415, - 1488, - 1514, - 1520, - 1522, - 1569, - 1594, - 1600, - 1610, - 1649, - 1747, - 1749, - 1749, - 1765, - 1766, - 1786, - 1788, - 1808, - 1808, - 1810, - 1836, - 1920, - 1957, - 2309, - 2361, - 2365, - 2365, - 2384, - 2384, - 2392, - 2401, - 2437, - 2444, - 2447, - 2448, - 2451, - 2472, - 2474, - 2480, - 2482, - 2482, - 2486, - 2489, - 2524, - 2525, - 2527, - 2529, - 2544, - 2545, - 2565, - 2570, - 2575, - 2576, - 2579, - 2600, - 2602, - 2608, - 2610, - 2611, - 2613, - 2614, - 2616, - 2617, - 2649, - 2652, - 2654, - 2654, - 2674, - 2676, - 2693, - 2699, - 2701, - 2701, - 2703, - 2705, - 2707, - 2728, - 2730, - 2736, - 2738, - 2739, - 2741, - 2745, - 2749, - 2749, - 2768, - 2768, - 2784, - 2784, - 2821, - 2828, - 2831, - 2832, - 2835, - 2856, - 2858, - 2864, - 2866, - 2867, - 2870, - 2873, - 2877, - 2877, - 2908, - 2909, - 2911, - 2913, - 2949, - 2954, - 2958, - 2960, - 2962, - 2965, - 2969, - 2970, - 2972, - 2972, - 2974, - 2975, - 2979, - 2980, - 2984, - 2986, - 2990, - 2997, - 2999, - 3001, - 3077, - 3084, - 3086, - 3088, - 3090, - 3112, - 3114, - 3123, - 3125, - 3129, - 3168, - 3169, - 3205, - 3212, - 3214, - 3216, - 3218, - 3240, - 3242, - 3251, - 3253, - 3257, - 3294, - 3294, - 3296, - 3297, - 3333, - 3340, - 3342, - 3344, - 3346, - 3368, - 3370, - 3385, - 3424, - 3425, - 3461, - 3478, - 3482, - 3505, - 3507, - 3515, - 3517, - 3517, - 3520, - 3526, - 3585, - 3632, - 3634, - 3635, - 3648, - 3654, - 3713, - 3714, - 3716, - 3716, - 3719, - 3720, - 3722, - 3722, - 3725, - 3725, - 3732, - 3735, - 3737, - 3743, - 3745, - 3747, - 3749, - 3749, - 3751, - 3751, - 3754, - 3755, - 3757, - 3760, - 3762, - 3763, - 3773, - 3773, - 3776, - 3780, - 3782, - 3782, - 3804, - 3805, - 3840, - 3840, - 3904, - 3911, - 3913, - 3946, - 3976, - 3979, - 4096, - 4129, - 4131, - 4135, - 4137, - 4138, - 4176, - 4181, - 4256, - 4293, - 4304, - 4342, - 4352, - 4441, - 4447, - 4514, - 4520, - 4601, - 4608, - 4614, - 4616, - 4678, - 4680, - 4680, - 4682, - 4685, - 4688, - 4694, - 4696, - 4696, - 4698, - 4701, - 4704, - 4742, - 4744, - 4744, - 4746, - 4749, - 4752, - 4782, - 4784, - 4784, - 4786, - 4789, - 4792, - 4798, - 4800, - 4800, - 4802, - 4805, - 4808, - 4814, - 4816, - 4822, - 4824, - 4846, - 4848, - 4878, - 4880, - 4880, - 4882, - 4885, - 4888, - 4894, - 4896, - 4934, - 4936, - 4954, - 5024, - 5108, - 5121, - 5740, - 5743, - 5750, - 5761, - 5786, - 5792, - 5866, - 6016, - 6067, - 6176, - 6263, - 6272, - 6312, - 7680, - 7835, - 7840, - 7929, - 7936, - 7957, - 7960, - 7965, - 7968, - 8005, - 8008, - 8013, - 8016, - 8023, - 8025, - 8025, - 8027, - 8027, - 8029, - 8029, - 8031, - 8061, - 8064, - 8116, - 8118, - 8124, - 8126, - 8126, - 8130, - 8132, - 8134, - 8140, - 8144, - 8147, - 8150, - 8155, - 8160, - 8172, - 8178, - 8180, - 8182, - 8188, - 8319, - 8319, - 8450, - 8450, - 8455, - 8455, - 8458, - 8467, - 8469, - 8469, - 8473, - 8477, - 8484, - 8484, - 8486, - 8486, - 8488, - 8488, - 8490, - 8493, - 8495, - 8497, - 8499, - 8505, - 8544, - 8579, - 12293, - 12295, - 12321, - 12329, - 12337, - 12341, - 12344, - 12346, - 12353, - 12436, - 12445, - 12446, - 12449, - 12538, - 12540, - 12542, - 12549, - 12588, - 12593, - 12686, - 12704, - 12727, - 13312, - 19893, - 19968, - 40869, - 40960, - 42124, - 44032, - 55203, - 63744, - 64045, - 64256, - 64262, - 64275, - 64279, - 64285, - 64285, - 64287, - 64296, - 64298, - 64310, - 64312, - 64316, - 64318, - 64318, - 64320, - 64321, - 64323, - 64324, - 64326, - 64433, - 64467, - 64829, - 64848, - 64911, - 64914, - 64967, - 65008, - 65019, - 65136, - 65138, - 65140, - 65140, - 65142, - 65276, - 65313, - 65338, - 65345, - 65370, - 65382, - 65470, - 65474, - 65479, - 65482, - 65487, - 65490, - 65495, - 65498, - 65500, - ]; - var unicodeES3IdentifierPart = [ - 170, - 170, - 181, - 181, - 186, - 186, - 192, - 214, - 216, - 246, - 248, - 543, - 546, - 563, - 592, - 685, - 688, - 696, - 699, - 705, - 720, - 721, - 736, - 740, - 750, - 750, - 768, - 846, - 864, - 866, - 890, - 890, - 902, - 902, - 904, - 906, - 908, - 908, - 910, - 929, - 931, - 974, - 976, - 983, - 986, - 1011, - 1024, - 1153, - 1155, - 1158, - 1164, - 1220, - 1223, - 1224, - 1227, - 1228, - 1232, - 1269, - 1272, - 1273, - 1329, - 1366, - 1369, - 1369, - 1377, - 1415, - 1425, - 1441, - 1443, - 1465, - 1467, - 1469, - 1471, - 1471, - 1473, - 1474, - 1476, - 1476, - 1488, - 1514, - 1520, - 1522, - 1569, - 1594, - 1600, - 1621, - 1632, - 1641, - 1648, - 1747, - 1749, - 1756, - 1759, - 1768, - 1770, - 1773, - 1776, - 1788, - 1808, - 1836, - 1840, - 1866, - 1920, - 1968, - 2305, - 2307, - 2309, - 2361, - 2364, - 2381, - 2384, - 2388, - 2392, - 2403, - 2406, - 2415, - 2433, - 2435, - 2437, - 2444, - 2447, - 2448, - 2451, - 2472, - 2474, - 2480, - 2482, - 2482, - 2486, - 2489, - 2492, - 2492, - 2494, - 2500, - 2503, - 2504, - 2507, - 2509, - 2519, - 2519, - 2524, - 2525, - 2527, - 2531, - 2534, - 2545, - 2562, - 2562, - 2565, - 2570, - 2575, - 2576, - 2579, - 2600, - 2602, - 2608, - 2610, - 2611, - 2613, - 2614, - 2616, - 2617, - 2620, - 2620, - 2622, - 2626, - 2631, - 2632, - 2635, - 2637, - 2649, - 2652, - 2654, - 2654, - 2662, - 2676, - 2689, - 2691, - 2693, - 2699, - 2701, - 2701, - 2703, - 2705, - 2707, - 2728, - 2730, - 2736, - 2738, - 2739, - 2741, - 2745, - 2748, - 2757, - 2759, - 2761, - 2763, - 2765, - 2768, - 2768, - 2784, - 2784, - 2790, - 2799, - 2817, - 2819, - 2821, - 2828, - 2831, - 2832, - 2835, - 2856, - 2858, - 2864, - 2866, - 2867, - 2870, - 2873, - 2876, - 2883, - 2887, - 2888, - 2891, - 2893, - 2902, - 2903, - 2908, - 2909, - 2911, - 2913, - 2918, - 2927, - 2946, - 2947, - 2949, - 2954, - 2958, - 2960, - 2962, - 2965, - 2969, - 2970, - 2972, - 2972, - 2974, - 2975, - 2979, - 2980, - 2984, - 2986, - 2990, - 2997, - 2999, - 3001, - 3006, - 3010, - 3014, - 3016, - 3018, - 3021, - 3031, - 3031, - 3047, - 3055, - 3073, - 3075, - 3077, - 3084, - 3086, - 3088, - 3090, - 3112, - 3114, - 3123, - 3125, - 3129, - 3134, - 3140, - 3142, - 3144, - 3146, - 3149, - 3157, - 3158, - 3168, - 3169, - 3174, - 3183, - 3202, - 3203, - 3205, - 3212, - 3214, - 3216, - 3218, - 3240, - 3242, - 3251, - 3253, - 3257, - 3262, - 3268, - 3270, - 3272, - 3274, - 3277, - 3285, - 3286, - 3294, - 3294, - 3296, - 3297, - 3302, - 3311, - 3330, - 3331, - 3333, - 3340, - 3342, - 3344, - 3346, - 3368, - 3370, - 3385, - 3390, - 3395, - 3398, - 3400, - 3402, - 3405, - 3415, - 3415, - 3424, - 3425, - 3430, - 3439, - 3458, - 3459, - 3461, - 3478, - 3482, - 3505, - 3507, - 3515, - 3517, - 3517, - 3520, - 3526, - 3530, - 3530, - 3535, - 3540, - 3542, - 3542, - 3544, - 3551, - 3570, - 3571, - 3585, - 3642, - 3648, - 3662, - 3664, - 3673, - 3713, - 3714, - 3716, - 3716, - 3719, - 3720, - 3722, - 3722, - 3725, - 3725, - 3732, - 3735, - 3737, - 3743, - 3745, - 3747, - 3749, - 3749, - 3751, - 3751, - 3754, - 3755, - 3757, - 3769, - 3771, - 3773, - 3776, - 3780, - 3782, - 3782, - 3784, - 3789, - 3792, - 3801, - 3804, - 3805, - 3840, - 3840, - 3864, - 3865, - 3872, - 3881, - 3893, - 3893, - 3895, - 3895, - 3897, - 3897, - 3902, - 3911, - 3913, - 3946, - 3953, - 3972, - 3974, - 3979, - 3984, - 3991, - 3993, - 4028, - 4038, - 4038, - 4096, - 4129, - 4131, - 4135, - 4137, - 4138, - 4140, - 4146, - 4150, - 4153, - 4160, - 4169, - 4176, - 4185, - 4256, - 4293, - 4304, - 4342, - 4352, - 4441, - 4447, - 4514, - 4520, - 4601, - 4608, - 4614, - 4616, - 4678, - 4680, - 4680, - 4682, - 4685, - 4688, - 4694, - 4696, - 4696, - 4698, - 4701, - 4704, - 4742, - 4744, - 4744, - 4746, - 4749, - 4752, - 4782, - 4784, - 4784, - 4786, - 4789, - 4792, - 4798, - 4800, - 4800, - 4802, - 4805, - 4808, - 4814, - 4816, - 4822, - 4824, - 4846, - 4848, - 4878, - 4880, - 4880, - 4882, - 4885, - 4888, - 4894, - 4896, - 4934, - 4936, - 4954, - 4969, - 4977, - 5024, - 5108, - 5121, - 5740, - 5743, - 5750, - 5761, - 5786, - 5792, - 5866, - 6016, - 6099, - 6112, - 6121, - 6160, - 6169, - 6176, - 6263, - 6272, - 6313, - 7680, - 7835, - 7840, - 7929, - 7936, - 7957, - 7960, - 7965, - 7968, - 8005, - 8008, - 8013, - 8016, - 8023, - 8025, - 8025, - 8027, - 8027, - 8029, - 8029, - 8031, - 8061, - 8064, - 8116, - 8118, - 8124, - 8126, - 8126, - 8130, - 8132, - 8134, - 8140, - 8144, - 8147, - 8150, - 8155, - 8160, - 8172, - 8178, - 8180, - 8182, - 8188, - 8255, - 8256, - 8319, - 8319, - 8400, - 8412, - 8417, - 8417, - 8450, - 8450, - 8455, - 8455, - 8458, - 8467, - 8469, - 8469, - 8473, - 8477, - 8484, - 8484, - 8486, - 8486, - 8488, - 8488, - 8490, - 8493, - 8495, - 8497, - 8499, - 8505, - 8544, - 8579, - 12293, - 12295, - 12321, - 12335, - 12337, - 12341, - 12344, - 12346, - 12353, - 12436, - 12441, - 12442, - 12445, - 12446, - 12449, - 12542, - 12549, - 12588, - 12593, - 12686, - 12704, - 12727, - 13312, - 19893, - 19968, - 40869, - 40960, - 42124, - 44032, - 55203, - 63744, - 64045, - 64256, - 64262, - 64275, - 64279, - 64285, - 64296, - 64298, - 64310, - 64312, - 64316, - 64318, - 64318, - 64320, - 64321, - 64323, - 64324, - 64326, - 64433, - 64467, - 64829, - 64848, - 64911, - 64914, - 64967, - 65008, - 65019, - 65056, - 65059, - 65075, - 65076, - 65101, - 65103, - 65136, - 65138, - 65140, - 65140, - 65142, - 65276, - 65296, - 65305, - 65313, - 65338, - 65343, - 65343, - 65345, - 65370, - 65381, - 65470, - 65474, - 65479, - 65482, - 65487, - 65490, - 65495, - 65498, - 65500, - ]; - var unicodeES5IdentifierStart = [ - 170, - 170, - 181, - 181, - 186, - 186, - 192, - 214, - 216, - 246, - 248, - 705, - 710, - 721, - 736, - 740, - 748, - 748, - 750, - 750, - 880, - 884, - 886, - 887, - 890, - 893, - 902, - 902, - 904, - 906, - 908, - 908, - 910, - 929, - 931, - 1013, - 1015, - 1153, - 1162, - 1319, - 1329, - 1366, - 1369, - 1369, - 1377, - 1415, - 1488, - 1514, - 1520, - 1522, - 1568, - 1610, - 1646, - 1647, - 1649, - 1747, - 1749, - 1749, - 1765, - 1766, - 1774, - 1775, - 1786, - 1788, - 1791, - 1791, - 1808, - 1808, - 1810, - 1839, - 1869, - 1957, - 1969, - 1969, - 1994, - 2026, - 2036, - 2037, - 2042, - 2042, - 2048, - 2069, - 2074, - 2074, - 2084, - 2084, - 2088, - 2088, - 2112, - 2136, - 2208, - 2208, - 2210, - 2220, - 2308, - 2361, - 2365, - 2365, - 2384, - 2384, - 2392, - 2401, - 2417, - 2423, - 2425, - 2431, - 2437, - 2444, - 2447, - 2448, - 2451, - 2472, - 2474, - 2480, - 2482, - 2482, - 2486, - 2489, - 2493, - 2493, - 2510, - 2510, - 2524, - 2525, - 2527, - 2529, - 2544, - 2545, - 2565, - 2570, - 2575, - 2576, - 2579, - 2600, - 2602, - 2608, - 2610, - 2611, - 2613, - 2614, - 2616, - 2617, - 2649, - 2652, - 2654, - 2654, - 2674, - 2676, - 2693, - 2701, - 2703, - 2705, - 2707, - 2728, - 2730, - 2736, - 2738, - 2739, - 2741, - 2745, - 2749, - 2749, - 2768, - 2768, - 2784, - 2785, - 2821, - 2828, - 2831, - 2832, - 2835, - 2856, - 2858, - 2864, - 2866, - 2867, - 2869, - 2873, - 2877, - 2877, - 2908, - 2909, - 2911, - 2913, - 2929, - 2929, - 2947, - 2947, - 2949, - 2954, - 2958, - 2960, - 2962, - 2965, - 2969, - 2970, - 2972, - 2972, - 2974, - 2975, - 2979, - 2980, - 2984, - 2986, - 2990, - 3001, - 3024, - 3024, - 3077, - 3084, - 3086, - 3088, - 3090, - 3112, - 3114, - 3123, - 3125, - 3129, - 3133, - 3133, - 3160, - 3161, - 3168, - 3169, - 3205, - 3212, - 3214, - 3216, - 3218, - 3240, - 3242, - 3251, - 3253, - 3257, - 3261, - 3261, - 3294, - 3294, - 3296, - 3297, - 3313, - 3314, - 3333, - 3340, - 3342, - 3344, - 3346, - 3386, - 3389, - 3389, - 3406, - 3406, - 3424, - 3425, - 3450, - 3455, - 3461, - 3478, - 3482, - 3505, - 3507, - 3515, - 3517, - 3517, - 3520, - 3526, - 3585, - 3632, - 3634, - 3635, - 3648, - 3654, - 3713, - 3714, - 3716, - 3716, - 3719, - 3720, - 3722, - 3722, - 3725, - 3725, - 3732, - 3735, - 3737, - 3743, - 3745, - 3747, - 3749, - 3749, - 3751, - 3751, - 3754, - 3755, - 3757, - 3760, - 3762, - 3763, - 3773, - 3773, - 3776, - 3780, - 3782, - 3782, - 3804, - 3807, - 3840, - 3840, - 3904, - 3911, - 3913, - 3948, - 3976, - 3980, - 4096, - 4138, - 4159, - 4159, - 4176, - 4181, - 4186, - 4189, - 4193, - 4193, - 4197, - 4198, - 4206, - 4208, - 4213, - 4225, - 4238, - 4238, - 4256, - 4293, - 4295, - 4295, - 4301, - 4301, - 4304, - 4346, - 4348, - 4680, - 4682, - 4685, - 4688, - 4694, - 4696, - 4696, - 4698, - 4701, - 4704, - 4744, - 4746, - 4749, - 4752, - 4784, - 4786, - 4789, - 4792, - 4798, - 4800, - 4800, - 4802, - 4805, - 4808, - 4822, - 4824, - 4880, - 4882, - 4885, - 4888, - 4954, - 4992, - 5007, - 5024, - 5108, - 5121, - 5740, - 5743, - 5759, - 5761, - 5786, - 5792, - 5866, - 5870, - 5872, - 5888, - 5900, - 5902, - 5905, - 5920, - 5937, - 5952, - 5969, - 5984, - 5996, - 5998, - 6000, - 6016, - 6067, - 6103, - 6103, - 6108, - 6108, - 6176, - 6263, - 6272, - 6312, - 6314, - 6314, - 6320, - 6389, - 6400, - 6428, - 6480, - 6509, - 6512, - 6516, - 6528, - 6571, - 6593, - 6599, - 6656, - 6678, - 6688, - 6740, - 6823, - 6823, - 6917, - 6963, - 6981, - 6987, - 7043, - 7072, - 7086, - 7087, - 7098, - 7141, - 7168, - 7203, - 7245, - 7247, - 7258, - 7293, - 7401, - 7404, - 7406, - 7409, - 7413, - 7414, - 7424, - 7615, - 7680, - 7957, - 7960, - 7965, - 7968, - 8005, - 8008, - 8013, - 8016, - 8023, - 8025, - 8025, - 8027, - 8027, - 8029, - 8029, - 8031, - 8061, - 8064, - 8116, - 8118, - 8124, - 8126, - 8126, - 8130, - 8132, - 8134, - 8140, - 8144, - 8147, - 8150, - 8155, - 8160, - 8172, - 8178, - 8180, - 8182, - 8188, - 8305, - 8305, - 8319, - 8319, - 8336, - 8348, - 8450, - 8450, - 8455, - 8455, - 8458, - 8467, - 8469, - 8469, - 8473, - 8477, - 8484, - 8484, - 8486, - 8486, - 8488, - 8488, - 8490, - 8493, - 8495, - 8505, - 8508, - 8511, - 8517, - 8521, - 8526, - 8526, - 8544, - 8584, - 11264, - 11310, - 11312, - 11358, - 11360, - 11492, - 11499, - 11502, - 11506, - 11507, - 11520, - 11557, - 11559, - 11559, - 11565, - 11565, - 11568, - 11623, - 11631, - 11631, - 11648, - 11670, - 11680, - 11686, - 11688, - 11694, - 11696, - 11702, - 11704, - 11710, - 11712, - 11718, - 11720, - 11726, - 11728, - 11734, - 11736, - 11742, - 11823, - 11823, - 12293, - 12295, - 12321, - 12329, - 12337, - 12341, - 12344, - 12348, - 12353, - 12438, - 12445, - 12447, - 12449, - 12538, - 12540, - 12543, - 12549, - 12589, - 12593, - 12686, - 12704, - 12730, - 12784, - 12799, - 13312, - 19893, - 19968, - 40908, - 40960, - 42124, - 42192, - 42237, - 42240, - 42508, - 42512, - 42527, - 42538, - 42539, - 42560, - 42606, - 42623, - 42647, - 42656, - 42735, - 42775, - 42783, - 42786, - 42888, - 42891, - 42894, - 42896, - 42899, - 42912, - 42922, - 43000, - 43009, - 43011, - 43013, - 43015, - 43018, - 43020, - 43042, - 43072, - 43123, - 43138, - 43187, - 43250, - 43255, - 43259, - 43259, - 43274, - 43301, - 43312, - 43334, - 43360, - 43388, - 43396, - 43442, - 43471, - 43471, - 43520, - 43560, - 43584, - 43586, - 43588, - 43595, - 43616, - 43638, - 43642, - 43642, - 43648, - 43695, - 43697, - 43697, - 43701, - 43702, - 43705, - 43709, - 43712, - 43712, - 43714, - 43714, - 43739, - 43741, - 43744, - 43754, - 43762, - 43764, - 43777, - 43782, - 43785, - 43790, - 43793, - 43798, - 43808, - 43814, - 43816, - 43822, - 43968, - 44002, - 44032, - 55203, - 55216, - 55238, - 55243, - 55291, - 63744, - 64109, - 64112, - 64217, - 64256, - 64262, - 64275, - 64279, - 64285, - 64285, - 64287, - 64296, - 64298, - 64310, - 64312, - 64316, - 64318, - 64318, - 64320, - 64321, - 64323, - 64324, - 64326, - 64433, - 64467, - 64829, - 64848, - 64911, - 64914, - 64967, - 65008, - 65019, - 65136, - 65140, - 65142, - 65276, - 65313, - 65338, - 65345, - 65370, - 65382, - 65470, - 65474, - 65479, - 65482, - 65487, - 65490, - 65495, - 65498, - 65500, - ]; - var unicodeES5IdentifierPart = [ - 170, - 170, - 181, - 181, - 186, - 186, - 192, - 214, - 216, - 246, - 248, - 705, - 710, - 721, - 736, - 740, - 748, - 748, - 750, - 750, - 768, - 884, - 886, - 887, - 890, - 893, - 902, - 902, - 904, - 906, - 908, - 908, - 910, - 929, - 931, - 1013, - 1015, - 1153, - 1155, - 1159, - 1162, - 1319, - 1329, - 1366, - 1369, - 1369, - 1377, - 1415, - 1425, - 1469, - 1471, - 1471, - 1473, - 1474, - 1476, - 1477, - 1479, - 1479, - 1488, - 1514, - 1520, - 1522, - 1552, - 1562, - 1568, - 1641, - 1646, - 1747, - 1749, - 1756, - 1759, - 1768, - 1770, - 1788, - 1791, - 1791, - 1808, - 1866, - 1869, - 1969, - 1984, - 2037, - 2042, - 2042, - 2048, - 2093, - 2112, - 2139, - 2208, - 2208, - 2210, - 2220, - 2276, - 2302, - 2304, - 2403, - 2406, - 2415, - 2417, - 2423, - 2425, - 2431, - 2433, - 2435, - 2437, - 2444, - 2447, - 2448, - 2451, - 2472, - 2474, - 2480, - 2482, - 2482, - 2486, - 2489, - 2492, - 2500, - 2503, - 2504, - 2507, - 2510, - 2519, - 2519, - 2524, - 2525, - 2527, - 2531, - 2534, - 2545, - 2561, - 2563, - 2565, - 2570, - 2575, - 2576, - 2579, - 2600, - 2602, - 2608, - 2610, - 2611, - 2613, - 2614, - 2616, - 2617, - 2620, - 2620, - 2622, - 2626, - 2631, - 2632, - 2635, - 2637, - 2641, - 2641, - 2649, - 2652, - 2654, - 2654, - 2662, - 2677, - 2689, - 2691, - 2693, - 2701, - 2703, - 2705, - 2707, - 2728, - 2730, - 2736, - 2738, - 2739, - 2741, - 2745, - 2748, - 2757, - 2759, - 2761, - 2763, - 2765, - 2768, - 2768, - 2784, - 2787, - 2790, - 2799, - 2817, - 2819, - 2821, - 2828, - 2831, - 2832, - 2835, - 2856, - 2858, - 2864, - 2866, - 2867, - 2869, - 2873, - 2876, - 2884, - 2887, - 2888, - 2891, - 2893, - 2902, - 2903, - 2908, - 2909, - 2911, - 2915, - 2918, - 2927, - 2929, - 2929, - 2946, - 2947, - 2949, - 2954, - 2958, - 2960, - 2962, - 2965, - 2969, - 2970, - 2972, - 2972, - 2974, - 2975, - 2979, - 2980, - 2984, - 2986, - 2990, - 3001, - 3006, - 3010, - 3014, - 3016, - 3018, - 3021, - 3024, - 3024, - 3031, - 3031, - 3046, - 3055, - 3073, - 3075, - 3077, - 3084, - 3086, - 3088, - 3090, - 3112, - 3114, - 3123, - 3125, - 3129, - 3133, - 3140, - 3142, - 3144, - 3146, - 3149, - 3157, - 3158, - 3160, - 3161, - 3168, - 3171, - 3174, - 3183, - 3202, - 3203, - 3205, - 3212, - 3214, - 3216, - 3218, - 3240, - 3242, - 3251, - 3253, - 3257, - 3260, - 3268, - 3270, - 3272, - 3274, - 3277, - 3285, - 3286, - 3294, - 3294, - 3296, - 3299, - 3302, - 3311, - 3313, - 3314, - 3330, - 3331, - 3333, - 3340, - 3342, - 3344, - 3346, - 3386, - 3389, - 3396, - 3398, - 3400, - 3402, - 3406, - 3415, - 3415, - 3424, - 3427, - 3430, - 3439, - 3450, - 3455, - 3458, - 3459, - 3461, - 3478, - 3482, - 3505, - 3507, - 3515, - 3517, - 3517, - 3520, - 3526, - 3530, - 3530, - 3535, - 3540, - 3542, - 3542, - 3544, - 3551, - 3570, - 3571, - 3585, - 3642, - 3648, - 3662, - 3664, - 3673, - 3713, - 3714, - 3716, - 3716, - 3719, - 3720, - 3722, - 3722, - 3725, - 3725, - 3732, - 3735, - 3737, - 3743, - 3745, - 3747, - 3749, - 3749, - 3751, - 3751, - 3754, - 3755, - 3757, - 3769, - 3771, - 3773, - 3776, - 3780, - 3782, - 3782, - 3784, - 3789, - 3792, - 3801, - 3804, - 3807, - 3840, - 3840, - 3864, - 3865, - 3872, - 3881, - 3893, - 3893, - 3895, - 3895, - 3897, - 3897, - 3902, - 3911, - 3913, - 3948, - 3953, - 3972, - 3974, - 3991, - 3993, - 4028, - 4038, - 4038, - 4096, - 4169, - 4176, - 4253, - 4256, - 4293, - 4295, - 4295, - 4301, - 4301, - 4304, - 4346, - 4348, - 4680, - 4682, - 4685, - 4688, - 4694, - 4696, - 4696, - 4698, - 4701, - 4704, - 4744, - 4746, - 4749, - 4752, - 4784, - 4786, - 4789, - 4792, - 4798, - 4800, - 4800, - 4802, - 4805, - 4808, - 4822, - 4824, - 4880, - 4882, - 4885, - 4888, - 4954, - 4957, - 4959, - 4992, - 5007, - 5024, - 5108, - 5121, - 5740, - 5743, - 5759, - 5761, - 5786, - 5792, - 5866, - 5870, - 5872, - 5888, - 5900, - 5902, - 5908, - 5920, - 5940, - 5952, - 5971, - 5984, - 5996, - 5998, - 6000, - 6002, - 6003, - 6016, - 6099, - 6103, - 6103, - 6108, - 6109, - 6112, - 6121, - 6155, - 6157, - 6160, - 6169, - 6176, - 6263, - 6272, - 6314, - 6320, - 6389, - 6400, - 6428, - 6432, - 6443, - 6448, - 6459, - 6470, - 6509, - 6512, - 6516, - 6528, - 6571, - 6576, - 6601, - 6608, - 6617, - 6656, - 6683, - 6688, - 6750, - 6752, - 6780, - 6783, - 6793, - 6800, - 6809, - 6823, - 6823, - 6912, - 6987, - 6992, - 7001, - 7019, - 7027, - 7040, - 7155, - 7168, - 7223, - 7232, - 7241, - 7245, - 7293, - 7376, - 7378, - 7380, - 7414, - 7424, - 7654, - 7676, - 7957, - 7960, - 7965, - 7968, - 8005, - 8008, - 8013, - 8016, - 8023, - 8025, - 8025, - 8027, - 8027, - 8029, - 8029, - 8031, - 8061, - 8064, - 8116, - 8118, - 8124, - 8126, - 8126, - 8130, - 8132, - 8134, - 8140, - 8144, - 8147, - 8150, - 8155, - 8160, - 8172, - 8178, - 8180, - 8182, - 8188, - 8204, - 8205, - 8255, - 8256, - 8276, - 8276, - 8305, - 8305, - 8319, - 8319, - 8336, - 8348, - 8400, - 8412, - 8417, - 8417, - 8421, - 8432, - 8450, - 8450, - 8455, - 8455, - 8458, - 8467, - 8469, - 8469, - 8473, - 8477, - 8484, - 8484, - 8486, - 8486, - 8488, - 8488, - 8490, - 8493, - 8495, - 8505, - 8508, - 8511, - 8517, - 8521, - 8526, - 8526, - 8544, - 8584, - 11264, - 11310, - 11312, - 11358, - 11360, - 11492, - 11499, - 11507, - 11520, - 11557, - 11559, - 11559, - 11565, - 11565, - 11568, - 11623, - 11631, - 11631, - 11647, - 11670, - 11680, - 11686, - 11688, - 11694, - 11696, - 11702, - 11704, - 11710, - 11712, - 11718, - 11720, - 11726, - 11728, - 11734, - 11736, - 11742, - 11744, - 11775, - 11823, - 11823, - 12293, - 12295, - 12321, - 12335, - 12337, - 12341, - 12344, - 12348, - 12353, - 12438, - 12441, - 12442, - 12445, - 12447, - 12449, - 12538, - 12540, - 12543, - 12549, - 12589, - 12593, - 12686, - 12704, - 12730, - 12784, - 12799, - 13312, - 19893, - 19968, - 40908, - 40960, - 42124, - 42192, - 42237, - 42240, - 42508, - 42512, - 42539, - 42560, - 42607, - 42612, - 42621, - 42623, - 42647, - 42655, - 42737, - 42775, - 42783, - 42786, - 42888, - 42891, - 42894, - 42896, - 42899, - 42912, - 42922, - 43000, - 43047, - 43072, - 43123, - 43136, - 43204, - 43216, - 43225, - 43232, - 43255, - 43259, - 43259, - 43264, - 43309, - 43312, - 43347, - 43360, - 43388, - 43392, - 43456, - 43471, - 43481, - 43520, - 43574, - 43584, - 43597, - 43600, - 43609, - 43616, - 43638, - 43642, - 43643, - 43648, - 43714, - 43739, - 43741, - 43744, - 43759, - 43762, - 43766, - 43777, - 43782, - 43785, - 43790, - 43793, - 43798, - 43808, - 43814, - 43816, - 43822, - 43968, - 44010, - 44012, - 44013, - 44016, - 44025, - 44032, - 55203, - 55216, - 55238, - 55243, - 55291, - 63744, - 64109, - 64112, - 64217, - 64256, - 64262, - 64275, - 64279, - 64285, - 64296, - 64298, - 64310, - 64312, - 64316, - 64318, - 64318, - 64320, - 64321, - 64323, - 64324, - 64326, - 64433, - 64467, - 64829, - 64848, - 64911, - 64914, - 64967, - 65008, - 65019, - 65024, - 65039, - 65056, - 65062, - 65075, - 65076, - 65101, - 65103, - 65136, - 65140, - 65142, - 65276, - 65296, - 65305, - 65313, - 65338, - 65343, - 65343, - 65345, - 65370, - 65382, - 65470, - 65474, - 65479, - 65482, - 65487, - 65490, - 65495, - 65498, - 65500, - ]; + var unicodeES3IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1610, 1649, 1747, 1749, 1749, 1765, 1766, 1786, 1788, 1808, 1808, 1810, 1836, 1920, 1957, 2309, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2784, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3294, 3294, 3296, 3297, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3424, 3425, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3805, 3840, 3840, 3904, 3911, 3913, 3946, 3976, 3979, 4096, 4129, 4131, 4135, 4137, 4138, 4176, 4181, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6067, 6176, 6263, 6272, 6312, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8319, 8319, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12346, 12353, 12436, 12445, 12446, 12449, 12538, 12540, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65138, 65140, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,]; + var unicodeES3IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 768, 846, 864, 866, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1155, 1158, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1441, 1443, 1465, 1467, 1469, 1471, 1471, 1473, 1474, 1476, 1476, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1621, 1632, 1641, 1648, 1747, 1749, 1756, 1759, 1768, 1770, 1773, 1776, 1788, 1808, 1836, 1840, 1866, 1920, 1968, 2305, 2307, 2309, 2361, 2364, 2381, 2384, 2388, 2392, 2403, 2406, 2415, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2492, 2494, 2500, 2503, 2504, 2507, 2509, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2562, 2562, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2649, 2652, 2654, 2654, 2662, 2676, 2689, 2691, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2784, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2876, 2883, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2913, 2918, 2927, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3031, 3031, 3047, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3134, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3168, 3169, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3262, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3297, 3302, 3311, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3390, 3395, 3398, 3400, 3402, 3405, 3415, 3415, 3424, 3425, 3430, 3439, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3805, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3946, 3953, 3972, 3974, 3979, 3984, 3991, 3993, 4028, 4038, 4038, 4096, 4129, 4131, 4135, 4137, 4138, 4140, 4146, 4150, 4153, 4160, 4169, 4176, 4185, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 4969, 4977, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6099, 6112, 6121, 6160, 6169, 6176, 6263, 6272, 6313, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8255, 8256, 8319, 8319, 8400, 8412, 8417, 8417, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12346, 12353, 12436, 12441, 12442, 12445, 12446, 12449, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65056, 65059, 65075, 65076, 65101, 65103, 65136, 65138, 65140, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65381, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,]; + var unicodeES5IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2208, 2208, 2210, 2220, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2423, 2425, 2431, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3133, 3160, 3161, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3424, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6000, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6263, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6428, 6480, 6509, 6512, 6516, 6528, 6571, 6593, 6599, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7401, 7404, 7406, 7409, 7413, 7414, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11823, 11823, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42647, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43000, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43648, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,]; + var unicodeES5IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1520, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2048, 2093, 2112, 2139, 2208, 2208, 2210, 2220, 2276, 2302, 2304, 2403, 2406, 2415, 2417, 2423, 2425, 2431, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3161, 3168, 3171, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3396, 3398, 3400, 3402, 3406, 3415, 3415, 3424, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6000, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6263, 6272, 6314, 6320, 6389, 6400, 6428, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6617, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7376, 7378, 7380, 7414, 7424, 7654, 7676, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8204, 8205, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 11823, 11823, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12442, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42647, 42655, 42737, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43000, 43047, 43072, 43123, 43136, 43204, 43216, 43225, 43232, 43255, 43259, 43259, 43264, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43643, 43648, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65062, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,]; function lookupInUnicodeMap(code, map) { if (code < map[0]) { return false; @@ -6407,11 +1581,15 @@ var ts; return false; } function isUnicodeIdentifierStart(code, languageVersion) { - return languageVersion >= 1 ? lookupInUnicodeMap(code, unicodeES5IdentifierStart) : lookupInUnicodeMap(code, unicodeES3IdentifierStart); + return languageVersion >= 1 ? + lookupInUnicodeMap(code, unicodeES5IdentifierStart) : + lookupInUnicodeMap(code, unicodeES3IdentifierStart); } ts.isUnicodeIdentifierStart = isUnicodeIdentifierStart; function isUnicodeIdentifierPart(code, languageVersion) { - return languageVersion >= 1 ? lookupInUnicodeMap(code, unicodeES5IdentifierPart) : lookupInUnicodeMap(code, unicodeES3IdentifierPart); + return languageVersion >= 1 ? + lookupInUnicodeMap(code, unicodeES5IdentifierPart) : + lookupInUnicodeMap(code, unicodeES3IdentifierPart); } function makeReverseMap(source) { var result = []; @@ -6488,7 +1666,18 @@ var ts; ts.getLineAndCharacterOfPosition = getLineAndCharacterOfPosition; var hasOwnProperty = Object.prototype.hasOwnProperty; function isWhiteSpace(ch) { - return ch === 32 || ch === 9 || ch === 11 || ch === 12 || ch === 160 || ch === 133 || ch === 5760 || ch >= 8192 && ch <= 8203 || ch === 8239 || ch === 8287 || ch === 12288 || ch === 65279; + return ch === 32 || + ch === 9 || + ch === 11 || + ch === 12 || + ch === 160 || + ch === 133 || + ch === 5760 || + ch >= 8192 && ch <= 8203 || + ch === 8239 || + ch === 8287 || + ch === 12288 || + ch === 65279; } ts.isWhiteSpace = isWhiteSpace; function isLineBreak(ch) { @@ -6502,7 +1691,10 @@ var ts; // \u2029 Paragraph separator // Only the characters in Table 3 are treated as line terminators. Other new line or line // breaking characters are treated as white space but not as line terminators. - return ch === 10 || ch === 13 || ch === 8232 || ch === 8233; + return ch === 10 || + ch === 13 || + ch === 8232 || + ch === 8233; } ts.isLineBreak = isLineBreak; function isDigit(ch) { @@ -6585,7 +1777,8 @@ var ts; return false; } } - return ch === 61 || text.charCodeAt(pos + mergeConflictMarkerLength) === 32; + return ch === 61 || + text.charCodeAt(pos + mergeConflictMarkerLength) === 32; } } return false; @@ -6643,6 +1836,7 @@ var ts; var nextChar = text.charCodeAt(pos + 1); var hasTrailingNewLine = false; if (nextChar === 47 || nextChar === 42) { + var kind = nextChar === 47 ? 2 : 3; var startPos = pos; pos += 2; if (nextChar === 47) { @@ -6667,11 +1861,7 @@ var ts; if (!result) { result = []; } - result.push({ - pos: startPos, - end: pos, - hasTrailingNewLine: hasTrailingNewLine - }); + result.push({ pos: startPos, end: pos, hasTrailingNewLine: hasTrailingNewLine, kind: kind }); } continue; } @@ -6698,11 +1888,15 @@ var ts; } ts.getTrailingCommentRanges = getTrailingCommentRanges; function isIdentifierStart(ch, languageVersion) { - return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch === 36 || ch === 95 || ch > 127 && isUnicodeIdentifierStart(ch, languageVersion); + return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || + ch === 36 || ch === 95 || + ch > 127 && isUnicodeIdentifierStart(ch, languageVersion); } ts.isIdentifierStart = isIdentifierStart; function isIdentifierPart(ch, languageVersion) { - return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 48 && ch <= 57 || ch === 36 || ch === 95 || ch > 127 && isUnicodeIdentifierPart(ch, languageVersion); + return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || + ch >= 48 && ch <= 57 || ch === 36 || ch === 95 || + ch > 127 && isUnicodeIdentifierPart(ch, languageVersion); } ts.isIdentifierPart = isIdentifierPart; function createScanner(languageVersion, skipTrivia, text, onError) { @@ -6721,10 +1915,14 @@ var ts; } } function isIdentifierStart(ch) { - return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch === 36 || ch === 95 || ch > 127 && isUnicodeIdentifierStart(ch, languageVersion); + return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || + ch === 36 || ch === 95 || + ch > 127 && isUnicodeIdentifierStart(ch, languageVersion); } function isIdentifierPart(ch) { - return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 48 && ch <= 57 || ch === 36 || ch === 95 || ch > 127 && isUnicodeIdentifierPart(ch, languageVersion); + return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || + ch >= 48 && ch <= 57 || ch === 36 || ch === 95 || + ch > 127 && isUnicodeIdentifierPart(ch, languageVersion); } function scanNumber() { var start = pos; @@ -7449,39 +2647,17 @@ var ts; } setText(text); return { - getStartPos: function () { - return startPos; - }, - getTextPos: function () { - return pos; - }, - getToken: function () { - return token; - }, - getTokenPos: function () { - return tokenPos; - }, - getTokenText: function () { - return text.substring(tokenPos, pos); - }, - getTokenValue: function () { - return tokenValue; - }, - hasExtendedUnicodeEscape: function () { - return hasExtendedUnicodeEscape; - }, - hasPrecedingLineBreak: function () { - return precedingLineBreak; - }, - isIdentifier: function () { - return token === 65 || token > 101; - }, - isReservedWord: function () { - return token >= 66 && token <= 101; - }, - isUnterminated: function () { - return tokenIsUnterminated; - }, + getStartPos: function () { return startPos; }, + getTextPos: function () { return pos; }, + getToken: function () { return token; }, + getTokenPos: function () { return tokenPos; }, + getTokenText: function () { return text.substring(tokenPos, pos); }, + getTokenValue: function () { return tokenValue; }, + hasExtendedUnicodeEscape: function () { return hasExtendedUnicodeEscape; }, + hasPrecedingLineBreak: function () { return precedingLineBreak; }, + isIdentifier: function () { return token === 65 || token > 101; }, + isReservedWord: function () { return token >= 66 && token <= 101; }, + isUnterminated: function () { return tokenIsUnterminated; }, reScanGreaterToken: reScanGreaterToken, reScanSlashToken: reScanSlashToken, reScanTemplateToken: reScanTemplateToken, @@ -7620,7 +2796,9 @@ var ts; if (node.name) { node.name.parent = node; } - var message = symbol.flags & 2 ? ts.Diagnostics.Cannot_redeclare_block_scoped_variable_0 : ts.Diagnostics.Duplicate_identifier_0; + var message = symbol.flags & 2 + ? ts.Diagnostics.Cannot_redeclare_block_scoped_variable_0 + : ts.Diagnostics.Duplicate_identifier_0; ts.forEach(symbol.declarations, function (declaration) { file.bindDiagnostics.push(ts.createDiagnosticForNode(declaration.name || declaration, message, getDisplayName(declaration))); }); @@ -7658,7 +2836,9 @@ var ts; } else { if (hasExportModifier || container.flags & 32768) { - var exportKind = (symbolKind & 107455 ? 1048576 : 0) | (symbolKind & 793056 ? 2097152 : 0) | (symbolKind & 1536 ? 4194304 : 0); + var exportKind = (symbolKind & 107455 ? 1048576 : 0) | + (symbolKind & 793056 ? 2097152 : 0) | + (symbolKind & 1536 ? 4194304 : 0); var local = declareSymbol(container.locals, undefined, node, exportKind, symbolExcludes); local.exportSymbol = declareSymbol(container.symbol.exports, container.symbol, node, symbolKind, symbolExcludes); node.localSymbol = local; @@ -7806,23 +2986,26 @@ var ts; function bindCatchVariableDeclaration(node) { bindChildren(node, 0, true); } - function bindBlockScopedVariableDeclaration(node) { + function bindBlockScopedDeclaration(node, symbolKind, symbolExcludes) { switch (blockScopeContainer.kind) { case 205: - declareModuleMember(node, 2, 107455); + declareModuleMember(node, symbolKind, symbolExcludes); break; case 227: if (ts.isExternalModule(container)) { - declareModuleMember(node, 2, 107455); + declareModuleMember(node, symbolKind, symbolExcludes); break; } default: if (!blockScopeContainer.locals) { blockScopeContainer.locals = {}; } - declareSymbol(blockScopeContainer.locals, undefined, node, 2, 107455); + declareSymbol(blockScopeContainer.locals, undefined, node, symbolKind, symbolExcludes); } - bindChildren(node, 2, false); + bindChildren(node, symbolKind, false); + } + function bindBlockScopedVariableDeclaration(node) { + bindBlockScopedDeclaration(node, 2, 107455); } function getDestructuringParameterName(node) { return "__" + ts.indexOf(node.parent.parameters, node); @@ -7901,7 +3084,7 @@ var ts; bindCatchVariableDeclaration(node); break; case 201: - bindDeclaration(node, 32, 899583, false); + bindBlockScopedDeclaration(node, 32, 899583); break; case 202: bindDeclaration(node, 64, 792992, false); @@ -7941,7 +3124,7 @@ var ts; bindChildren(node, 0, false); break; case 214: - if (node.expression && node.expression.kind === 65) { + if (node.expression.kind === 65) { declareSymbol(container.symbol.exports, container.symbol, node, 8388608, 107455 | 8388608); } else { @@ -7979,7 +3162,9 @@ var ts; else { bindDeclaration(node, 1, 107455, false); } - if (node.flags & 112 && node.parent.kind === 135 && (node.parent.parent.kind === 201 || node.parent.parent.kind === 174)) { + if (node.flags & 112 && + node.parent.kind === 135 && + (node.parent.parent.kind === 201 || node.parent.parent.kind === 174)) { var classDeclaration = node.parent.parent; declareSymbol(classDeclaration.symbol.members, classDeclaration.symbol, node, 4, 107455); } @@ -8012,13 +3197,9 @@ var ts; function getSingleLineStringWriter() { if (stringWriters.length == 0) { var str = ""; - var writeText = function (text) { - return str += text; - }; + var writeText = function (text) { return str += text; }; return { - string: function () { - return str; - }, + string: function () { return str; }, writeKeyword: writeText, writeOperator: writeText, writePunctuation: writeText, @@ -8026,18 +3207,11 @@ var ts; writeStringLiteral: writeText, writeParameter: writeText, writeSymbol: writeText, - writeLine: function () { - return str += " "; - }, - increaseIndent: function () { - }, - decreaseIndent: function () { - }, - clear: function () { - return str = ""; - }, - trackSymbol: function () { - } + writeLine: function () { return str += " "; }, + increaseIndent: function () { }, + decreaseIndent: function () { }, + clear: function () { return str = ""; }, + trackSymbol: function () { } }; } return stringWriters.pop(); @@ -8059,7 +3233,8 @@ var ts; ts.containsParseError = containsParseError; function aggregateChildData(node) { if (!(node.parserContextFlags & 128)) { - var thisNodeOrAnySubNodesHasError = ((node.parserContextFlags & 32) !== 0) || ts.forEachChild(node, containsParseError); + var thisNodeOrAnySubNodesHasError = ((node.parserContextFlags & 32) !== 0) || + ts.forEachChild(node, containsParseError); if (thisNodeOrAnySubNodesHasError) { node.parserContextFlags |= 64; } @@ -8106,6 +3281,13 @@ var ts; return ts.skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.pos); } ts.getTokenPosOfNode = getTokenPosOfNode; + function getNonDecoratorTokenPosOfNode(node, sourceFile) { + if (nodeIsMissing(node) || !node.decorators) { + return getTokenPosOfNode(node, sourceFile); + } + return ts.skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.decorators.end); + } + ts.getNonDecoratorTokenPosOfNode = getNonDecoratorTokenPosOfNode; function getSourceTextOfNodeFromSourceFile(sourceFile, node) { if (nodeIsMissing(node)) { return ""; @@ -8138,7 +3320,8 @@ var ts; } ts.makeIdentifierFromModuleName = makeIdentifierFromModuleName; function isBlockOrCatchScoped(declaration) { - return (getCombinedNodeFlags(declaration) & 12288) !== 0 || isCatchClauseVariableDeclaration(declaration); + return (getCombinedNodeFlags(declaration) & 12288) !== 0 || + isCatchClauseVariableDeclaration(declaration); } ts.isBlockOrCatchScoped = isBlockOrCatchScoped; function getEnclosingBlockScopeContainer(node) { @@ -8166,7 +3349,10 @@ var ts; } ts.getEnclosingBlockScopeContainer = getEnclosingBlockScopeContainer; function isCatchClauseVariableDeclaration(declaration) { - return declaration && declaration.kind === 198 && declaration.parent && declaration.parent.kind === 223; + return declaration && + declaration.kind === 198 && + declaration.parent && + declaration.parent.kind === 223; } ts.isCatchClauseVariableDeclaration = isCatchClauseVariableDeclaration; function declarationNameToString(name) { @@ -8225,7 +3411,9 @@ var ts; if (errorNode === undefined) { return getSpanOfTokenAtPosition(sourceFile, node.pos); } - var pos = nodeIsMissing(errorNode) ? errorNode.pos : ts.skipTrivia(sourceFile.text, errorNode.pos); + var pos = nodeIsMissing(errorNode) + ? errorNode.pos + : ts.skipTrivia(sourceFile.text, errorNode.pos); return createTextSpanFromBounds(pos, errorNode.end); } ts.getErrorSpanForNode = getErrorSpanForNode; @@ -8287,7 +3475,9 @@ var ts; function getJsDocComments(node, sourceFileOfNode) { return ts.filter(getLeadingCommentRangesOfNode(node, sourceFileOfNode), isJsDocComment); function isJsDocComment(comment) { - return sourceFileOfNode.text.charCodeAt(comment.pos + 1) === 42 && sourceFileOfNode.text.charCodeAt(comment.pos + 2) === 42 && sourceFileOfNode.text.charCodeAt(comment.pos + 3) !== 47; + return sourceFileOfNode.text.charCodeAt(comment.pos + 1) === 42 && + sourceFileOfNode.text.charCodeAt(comment.pos + 2) === 42 && + sourceFileOfNode.text.charCodeAt(comment.pos + 3) !== 47; } } ts.getJsDocComments = getJsDocComments; @@ -8335,6 +3525,17 @@ var ts; return false; } ts.isVariableLike = isVariableLike; + function isAccessor(node) { + if (node) { + switch (node.kind) { + case 136: + case 137: + return true; + } + } + return false; + } + ts.isAccessor = isAccessor; function isFunctionLike(node) { if (node) { switch (node.kind) { @@ -8390,6 +3591,14 @@ var ts; } node = node.parent; break; + case 130: + if (node.parent.kind === 129 && isClassElement(node.parent.parent)) { + node = node.parent.parent; + } + else if (isClassElement(node.parent)) { + node = node.parent; + } + break; case 163: if (!includeArrowFunctions) { continue; @@ -8423,6 +3632,14 @@ var ts; } node = node.parent; break; + case 130: + if (node.parent.kind === 129 && isClassElement(node.parent.parent)) { + node = node.parent.parent; + } + else if (isClassElement(node.parent)) { + node = node.parent; + } + break; case 200: case 162: case 163: @@ -8573,17 +3790,22 @@ var ts; return parent_1.expression === node; case 186: var forStatement = parent_1; - return (forStatement.initializer === node && forStatement.initializer.kind !== 199) || forStatement.condition === node || forStatement.iterator === node; + return (forStatement.initializer === node && forStatement.initializer.kind !== 199) || + forStatement.condition === node || + forStatement.iterator === node; case 187: case 188: var forInStatement = parent_1; - return (forInStatement.initializer === node && forInStatement.initializer.kind !== 199) || forInStatement.expression === node; + return (forInStatement.initializer === node && forInStatement.initializer.kind !== 199) || + forInStatement.expression === node; case 160: return node === parent_1.expression; case 176: return node === parent_1.expression; case 127: return node === parent_1.expression; + case 130: + return true; default: if (isExpression(parent_1)) { return true; @@ -8595,7 +3817,8 @@ var ts; ts.isExpression = isExpression; function isInstantiatedModule(node, preserveConstEnums) { var moduleState = ts.getModuleInstanceState(node); - return moduleState === 1 || (preserveConstEnums && moduleState === 2); + return moduleState === 1 || + (preserveConstEnums && moduleState === 2); } ts.isInstantiatedModule = isInstantiatedModule; function isExternalModuleImportEqualsDeclaration(node) { @@ -8746,6 +3969,7 @@ var ts; case 134: case 136: case 137: + case 133: case 140: return true; default: @@ -8770,7 +3994,12 @@ var ts; } ts.isDeclarationName = isDeclarationName; function isAliasSymbolDeclaration(node) { - return node.kind === 208 || node.kind === 210 && !!node.name || node.kind === 211 || node.kind === 213 || node.kind === 217 || node.kind === 214 && node.expression.kind === 65; + return node.kind === 208 || + node.kind === 210 && !!node.name || + node.kind === 211 || + node.kind === 213 || + node.kind === 217 || + node.kind === 214 && node.expression.kind === 65; } ts.isAliasSymbolDeclaration = isAliasSymbolDeclaration; function getClassExtendsHeritageClauseElement(node) { @@ -8861,7 +4090,9 @@ var ts; } ts.isTrivia = isTrivia; function hasDynamicName(declaration) { - return declaration.name && declaration.name.kind === 127 && !isWellKnownSymbolSyntactically(declaration.name.expression); + return declaration.name && + declaration.name.kind === 127 && + !isWellKnownSymbolSyntactically(declaration.name.expression); } ts.hasDynamicName = hasDynamicName; function isWellKnownSymbolSyntactically(node) { @@ -8965,10 +4196,7 @@ var ts; if (length < 0) { throw new Error("length < 0"); } - return { - start: start, - length: length - }; + return { start: start, length: length }; } ts.createTextSpan = createTextSpan; function createTextSpanFromBounds(start, end) { @@ -8987,10 +4215,7 @@ var ts; if (newLength < 0) { throw new Error("newLength < 0"); } - return { - span: span, - newLength: newLength - }; + return { span: span, newLength: newLength }; } ts.createTextChangeRange = createTextChangeRange; ts.unchangedTextChangeRange = createTextChangeRange(createTextSpan(0, 0), 0); @@ -9131,15 +4356,12 @@ var ts; } var nonAsciiCharacters = /[^\u0000-\u007F]/g; function escapeNonAsciiCharacters(s) { - return nonAsciiCharacters.test(s) ? s.replace(nonAsciiCharacters, function (c) { - return get16BitUnicodeEscapeSequence(c.charCodeAt(0)); - }) : s; + return nonAsciiCharacters.test(s) ? + s.replace(nonAsciiCharacters, function (c) { return get16BitUnicodeEscapeSequence(c.charCodeAt(0)); }) : + s; } ts.escapeNonAsciiCharacters = escapeNonAsciiCharacters; - var indentStrings = [ - "", - " " - ]; + var indentStrings = ["", " "]; function getIndentString(level) { if (indentStrings[level] === undefined) { indentStrings[level] = getIndentString(level - 1) + indentStrings[1]; @@ -9201,27 +4423,13 @@ var ts; writeTextOfNode: writeTextOfNode, writeLiteral: writeLiteral, writeLine: writeLine, - increaseIndent: function () { - return indent++; - }, - decreaseIndent: function () { - return indent--; - }, - getIndent: function () { - return indent; - }, - getTextPos: function () { - return output.length; - }, - getLine: function () { - return lineCount + 1; - }, - getColumn: function () { - return lineStart ? indent * getIndentSize() + 1 : output.length - linePos + 1; - }, - getText: function () { - return output; - } + increaseIndent: function () { return indent++; }, + decreaseIndent: function () { return indent--; }, + getIndent: function () { return indent; }, + getTextPos: function () { return output.length; }, + getLine: function () { return lineCount + 1; }, + getColumn: function () { return lineStart ? indent * getIndentSize() + 1 : output.length - linePos + 1; }, + getText: function () { return output; } }; } ts.createTextWriter = createTextWriter; @@ -9290,7 +4498,8 @@ var ts; } else { ts.forEach(declarations, function (member) { - if ((member.kind === 136 || member.kind === 137) && (member.flags & 128) === (accessor.flags & 128)) { + if ((member.kind === 136 || member.kind === 137) + && (member.flags & 128) === (accessor.flags & 128)) { var memberName = getPropertyNameForPropertyNameNode(member.name); var accessorName = getPropertyNameForPropertyNameNode(accessor.name); if (memberName === accessorName) { @@ -9319,7 +4528,8 @@ var ts; } ts.getAllAccessorDeclarations = getAllAccessorDeclarations; function emitNewLineBeforeLeadingComments(currentSourceFile, writer, node, leadingComments) { - if (leadingComments && leadingComments.length && node.pos !== leadingComments[0].pos && getLineOfLocalPosition(currentSourceFile, node.pos) !== getLineOfLocalPosition(currentSourceFile, leadingComments[0].pos)) { + if (leadingComments && leadingComments.length && node.pos !== leadingComments[0].pos && + getLineOfLocalPosition(currentSourceFile, node.pos) !== getLineOfLocalPosition(currentSourceFile, leadingComments[0].pos)) { writer.writeLine(); } } @@ -9350,7 +4560,9 @@ var ts; var lineCount = ts.getLineStarts(currentSourceFile).length; var firstCommentLineIndent; for (var pos = comment.pos, currentLine = firstCommentLineAndCharacter.line; pos < comment.end; currentLine++) { - var nextLineStart = (currentLine + 1) === lineCount ? currentSourceFile.text.length + 1 : getStartPositionOfLine(currentLine + 1, currentSourceFile); + var nextLineStart = (currentLine + 1) === lineCount + ? currentSourceFile.text.length + 1 + : getStartPositionOfLine(currentLine + 1, currentSourceFile); if (pos !== comment.pos) { if (firstCommentLineIndent === undefined) { firstCommentLineIndent = calculateIndent(getStartPositionOfLine(firstCommentLineAndCharacter.line, currentSourceFile), comment.pos); @@ -9420,7 +4632,8 @@ var ts; } } function isRightSideOfQualifiedNameOrPropertyAccess(node) { - return (node.parent.kind === 126 && node.parent.right === node) || (node.parent.kind === 155 && node.parent.name === node); + return (node.parent.kind === 126 && node.parent.right === node) || + (node.parent.kind === 155 && node.parent.name === node); } ts.isRightSideOfQualifiedNameOrPropertyAccess = isRightSideOfQualifiedNameOrPropertyAccess; function getLocalSymbolForExportDefault(symbol) { @@ -9471,9 +4684,12 @@ var ts; var cbNodes = cbNodeArray || cbNode; switch (node.kind) { case 126: - return visitNode(cbNode, node.left) || visitNode(cbNode, node.right); + return visitNode(cbNode, node.left) || + visitNode(cbNode, node.right); case 128: - return visitNode(cbNode, node.name) || visitNode(cbNode, node.constraint) || visitNode(cbNode, node.expression); + return visitNode(cbNode, node.name) || + visitNode(cbNode, node.constraint) || + visitNode(cbNode, node.expression); case 129: case 132: case 131: @@ -9481,13 +4697,24 @@ var ts; case 225: case 198: case 152: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.propertyName) || visitNode(cbNode, node.dotDotDotToken) || visitNode(cbNode, node.name) || visitNode(cbNode, node.questionToken) || visitNode(cbNode, node.type) || visitNode(cbNode, node.initializer); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNode(cbNode, node.propertyName) || + visitNode(cbNode, node.dotDotDotToken) || + visitNode(cbNode, node.name) || + visitNode(cbNode, node.questionToken) || + visitNode(cbNode, node.type) || + visitNode(cbNode, node.initializer); case 142: case 143: case 138: case 139: case 140: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNodes(cbNodes, node.typeParameters) || visitNodes(cbNodes, node.parameters) || visitNode(cbNode, node.type); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNodes(cbNodes, node.typeParameters) || + visitNodes(cbNodes, node.parameters) || + visitNode(cbNode, node.type); case 134: case 133: case 135: @@ -9496,9 +4723,19 @@ var ts; case 162: case 200: case 163: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.asteriskToken) || visitNode(cbNode, node.name) || visitNode(cbNode, node.questionToken) || visitNodes(cbNodes, node.typeParameters) || visitNodes(cbNodes, node.parameters) || visitNode(cbNode, node.type) || visitNode(cbNode, node.equalsGreaterThanToken) || visitNode(cbNode, node.body); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNode(cbNode, node.asteriskToken) || + visitNode(cbNode, node.name) || + visitNode(cbNode, node.questionToken) || + visitNodes(cbNodes, node.typeParameters) || + visitNodes(cbNodes, node.parameters) || + visitNode(cbNode, node.type) || + visitNode(cbNode, node.equalsGreaterThanToken) || + visitNode(cbNode, node.body); case 141: - return visitNode(cbNode, node.typeName) || visitNodes(cbNodes, node.typeArguments); + return visitNode(cbNode, node.typeName) || + visitNodes(cbNodes, node.typeArguments); case 144: return visitNode(cbNode, node.exprName); case 145: @@ -9519,16 +4756,23 @@ var ts; case 154: return visitNodes(cbNodes, node.properties); case 155: - return visitNode(cbNode, node.expression) || visitNode(cbNode, node.dotToken) || visitNode(cbNode, node.name); + return visitNode(cbNode, node.expression) || + visitNode(cbNode, node.dotToken) || + visitNode(cbNode, node.name); case 156: - return visitNode(cbNode, node.expression) || visitNode(cbNode, node.argumentExpression); + return visitNode(cbNode, node.expression) || + visitNode(cbNode, node.argumentExpression); case 157: case 158: - return visitNode(cbNode, node.expression) || visitNodes(cbNodes, node.typeArguments) || visitNodes(cbNodes, node.arguments); + return visitNode(cbNode, node.expression) || + visitNodes(cbNodes, node.typeArguments) || + visitNodes(cbNodes, node.arguments); case 159: - return visitNode(cbNode, node.tag) || visitNode(cbNode, node.template); + return visitNode(cbNode, node.tag) || + visitNode(cbNode, node.template); case 160: - return visitNode(cbNode, node.type) || visitNode(cbNode, node.expression); + return visitNode(cbNode, node.type) || + visitNode(cbNode, node.expression); case 161: return visitNode(cbNode, node.expression); case 164: @@ -9540,94 +4784,155 @@ var ts; case 167: return visitNode(cbNode, node.operand); case 172: - return visitNode(cbNode, node.asteriskToken) || visitNode(cbNode, node.expression); + return visitNode(cbNode, node.asteriskToken) || + visitNode(cbNode, node.expression); case 168: return visitNode(cbNode, node.operand); case 169: - return visitNode(cbNode, node.left) || visitNode(cbNode, node.operatorToken) || visitNode(cbNode, node.right); + return visitNode(cbNode, node.left) || + visitNode(cbNode, node.operatorToken) || + visitNode(cbNode, node.right); case 170: - return visitNode(cbNode, node.condition) || visitNode(cbNode, node.questionToken) || visitNode(cbNode, node.whenTrue) || visitNode(cbNode, node.colonToken) || visitNode(cbNode, node.whenFalse); + return visitNode(cbNode, node.condition) || + visitNode(cbNode, node.questionToken) || + visitNode(cbNode, node.whenTrue) || + visitNode(cbNode, node.colonToken) || + visitNode(cbNode, node.whenFalse); case 173: return visitNode(cbNode, node.expression); case 179: case 206: return visitNodes(cbNodes, node.statements); case 227: - return visitNodes(cbNodes, node.statements) || visitNode(cbNode, node.endOfFileToken); + return visitNodes(cbNodes, node.statements) || + visitNode(cbNode, node.endOfFileToken); case 180: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.declarationList); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNode(cbNode, node.declarationList); case 199: return visitNodes(cbNodes, node.declarations); case 182: return visitNode(cbNode, node.expression); case 183: - return visitNode(cbNode, node.expression) || visitNode(cbNode, node.thenStatement) || visitNode(cbNode, node.elseStatement); + return visitNode(cbNode, node.expression) || + visitNode(cbNode, node.thenStatement) || + visitNode(cbNode, node.elseStatement); case 184: - return visitNode(cbNode, node.statement) || visitNode(cbNode, node.expression); + return visitNode(cbNode, node.statement) || + visitNode(cbNode, node.expression); case 185: - return visitNode(cbNode, node.expression) || visitNode(cbNode, node.statement); + return visitNode(cbNode, node.expression) || + visitNode(cbNode, node.statement); case 186: - return visitNode(cbNode, node.initializer) || visitNode(cbNode, node.condition) || visitNode(cbNode, node.iterator) || visitNode(cbNode, node.statement); + return visitNode(cbNode, node.initializer) || + visitNode(cbNode, node.condition) || + visitNode(cbNode, node.iterator) || + visitNode(cbNode, node.statement); case 187: - return visitNode(cbNode, node.initializer) || visitNode(cbNode, node.expression) || visitNode(cbNode, node.statement); + return visitNode(cbNode, node.initializer) || + visitNode(cbNode, node.expression) || + visitNode(cbNode, node.statement); case 188: - return visitNode(cbNode, node.initializer) || visitNode(cbNode, node.expression) || visitNode(cbNode, node.statement); + return visitNode(cbNode, node.initializer) || + visitNode(cbNode, node.expression) || + visitNode(cbNode, node.statement); case 189: case 190: return visitNode(cbNode, node.label); case 191: return visitNode(cbNode, node.expression); case 192: - return visitNode(cbNode, node.expression) || visitNode(cbNode, node.statement); + return visitNode(cbNode, node.expression) || + visitNode(cbNode, node.statement); case 193: - return visitNode(cbNode, node.expression) || visitNode(cbNode, node.caseBlock); + return visitNode(cbNode, node.expression) || + visitNode(cbNode, node.caseBlock); case 207: return visitNodes(cbNodes, node.clauses); case 220: - return visitNode(cbNode, node.expression) || visitNodes(cbNodes, node.statements); + return visitNode(cbNode, node.expression) || + visitNodes(cbNodes, node.statements); case 221: return visitNodes(cbNodes, node.statements); case 194: - return visitNode(cbNode, node.label) || visitNode(cbNode, node.statement); + return visitNode(cbNode, node.label) || + visitNode(cbNode, node.statement); case 195: return visitNode(cbNode, node.expression); case 196: - return visitNode(cbNode, node.tryBlock) || visitNode(cbNode, node.catchClause) || visitNode(cbNode, node.finallyBlock); + return visitNode(cbNode, node.tryBlock) || + visitNode(cbNode, node.catchClause) || + visitNode(cbNode, node.finallyBlock); case 223: - return visitNode(cbNode, node.variableDeclaration) || visitNode(cbNode, node.block); + return visitNode(cbNode, node.variableDeclaration) || + visitNode(cbNode, node.block); case 130: return visitNode(cbNode, node.expression); case 201: case 174: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNodes(cbNodes, node.typeParameters) || visitNodes(cbNodes, node.heritageClauses) || visitNodes(cbNodes, node.members); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNode(cbNode, node.name) || + visitNodes(cbNodes, node.typeParameters) || + visitNodes(cbNodes, node.heritageClauses) || + visitNodes(cbNodes, node.members); case 202: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNodes(cbNodes, node.typeParameters) || visitNodes(cbNodes, node.heritageClauses) || visitNodes(cbNodes, node.members); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNode(cbNode, node.name) || + visitNodes(cbNodes, node.typeParameters) || + visitNodes(cbNodes, node.heritageClauses) || + visitNodes(cbNodes, node.members); case 203: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNode(cbNode, node.type); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNode(cbNode, node.name) || + visitNode(cbNode, node.type); case 204: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNodes(cbNodes, node.members); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNode(cbNode, node.name) || + visitNodes(cbNodes, node.members); case 226: - return visitNode(cbNode, node.name) || visitNode(cbNode, node.initializer); + return visitNode(cbNode, node.name) || + visitNode(cbNode, node.initializer); case 205: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNode(cbNode, node.body); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNode(cbNode, node.name) || + visitNode(cbNode, node.body); case 208: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNode(cbNode, node.moduleReference); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNode(cbNode, node.name) || + visitNode(cbNode, node.moduleReference); case 209: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.importClause) || visitNode(cbNode, node.moduleSpecifier); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNode(cbNode, node.importClause) || + visitNode(cbNode, node.moduleSpecifier); case 210: - return visitNode(cbNode, node.name) || visitNode(cbNode, node.namedBindings); + return visitNode(cbNode, node.name) || + visitNode(cbNode, node.namedBindings); case 211: return visitNode(cbNode, node.name); case 212: case 216: return visitNodes(cbNodes, node.elements); case 215: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.exportClause) || visitNode(cbNode, node.moduleSpecifier); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNode(cbNode, node.exportClause) || + visitNode(cbNode, node.moduleSpecifier); case 213: case 217: - return visitNode(cbNode, node.propertyName) || visitNode(cbNode, node.name); + return visitNode(cbNode, node.propertyName) || + visitNode(cbNode, node.name); case 214: - return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.expression) || visitNode(cbNode, node.type); + return visitNodes(cbNodes, node.decorators) || + visitNodes(cbNodes, node.modifiers) || + visitNode(cbNode, node.expression); case 171: return visitNode(cbNode, node.head) || visitNodes(cbNodes, node.templateSpans); case 176: @@ -9637,7 +4942,8 @@ var ts; case 222: return visitNodes(cbNodes, node.types); case 177: - return visitNode(cbNode, node.expression) || visitNodes(cbNodes, node.typeArguments); + return visitNode(cbNode, node.expression) || + visitNodes(cbNodes, node.typeArguments); case 219: return visitNode(cbNode, node.expression); case 218: @@ -9647,69 +4953,40 @@ var ts; ts.forEachChild = forEachChild; function parsingContextErrors(context) { switch (context) { - case 0: - return ts.Diagnostics.Declaration_or_statement_expected; - case 1: - return ts.Diagnostics.Declaration_or_statement_expected; - case 2: - return ts.Diagnostics.Statement_expected; - case 3: - return ts.Diagnostics.case_or_default_expected; - case 4: - return ts.Diagnostics.Statement_expected; - case 5: - return ts.Diagnostics.Property_or_signature_expected; - case 6: - return ts.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected; - case 7: - return ts.Diagnostics.Enum_member_expected; - case 8: - return ts.Diagnostics.Expression_expected; - case 9: - return ts.Diagnostics.Variable_declaration_expected; - case 10: - return ts.Diagnostics.Property_destructuring_pattern_expected; - case 11: - return ts.Diagnostics.Array_element_destructuring_pattern_expected; - case 12: - return ts.Diagnostics.Argument_expression_expected; - case 13: - return ts.Diagnostics.Property_assignment_expected; - case 14: - return ts.Diagnostics.Expression_or_comma_expected; - case 15: - return ts.Diagnostics.Parameter_declaration_expected; - case 16: - return ts.Diagnostics.Type_parameter_declaration_expected; - case 17: - return ts.Diagnostics.Type_argument_expected; - case 18: - return ts.Diagnostics.Type_expected; - case 19: - return ts.Diagnostics.Unexpected_token_expected; - case 20: - return ts.Diagnostics.Identifier_expected; + case 0: return ts.Diagnostics.Declaration_or_statement_expected; + case 1: return ts.Diagnostics.Declaration_or_statement_expected; + case 2: return ts.Diagnostics.Statement_expected; + case 3: return ts.Diagnostics.case_or_default_expected; + case 4: return ts.Diagnostics.Statement_expected; + case 5: return ts.Diagnostics.Property_or_signature_expected; + case 6: return ts.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected; + case 7: return ts.Diagnostics.Enum_member_expected; + case 8: return ts.Diagnostics.Expression_expected; + case 9: return ts.Diagnostics.Variable_declaration_expected; + case 10: return ts.Diagnostics.Property_destructuring_pattern_expected; + case 11: return ts.Diagnostics.Array_element_destructuring_pattern_expected; + case 12: return ts.Diagnostics.Argument_expression_expected; + case 13: return ts.Diagnostics.Property_assignment_expected; + case 14: return ts.Diagnostics.Expression_or_comma_expected; + case 15: return ts.Diagnostics.Parameter_declaration_expected; + case 16: return ts.Diagnostics.Type_parameter_declaration_expected; + case 17: return ts.Diagnostics.Type_argument_expected; + case 18: return ts.Diagnostics.Type_expected; + case 19: return ts.Diagnostics.Unexpected_token_expected; + case 20: return ts.Diagnostics.Identifier_expected; } } ; function modifierToFlag(token) { switch (token) { - case 110: - return 128; - case 109: - return 16; - case 108: - return 64; - case 107: - return 32; - case 78: - return 1; - case 115: - return 2; - case 70: - return 8192; - case 73: - return 256; + case 110: return 128; + case 109: return 16; + case 108: return 64; + case 107: return 32; + case 78: return 1; + case 115: return 2; + case 70: return 8192; + case 73: return 256; } return 0; } @@ -9946,7 +5223,8 @@ var ts; } ts.updateSourceFile = updateSourceFile; function isEvalOrArgumentsIdentifier(node) { - return node.kind === 65 && (node.text === "eval" || node.text === "arguments"); + return node.kind === 65 && + (node.text === "eval" || node.text === "arguments"); } ts.isEvalOrArgumentsIdentifier = isEvalOrArgumentsIdentifier; function isUseStrictPrologueDirective(sourceFile, node) { @@ -10190,7 +5468,9 @@ var ts; var saveParseDiagnosticsLength = sourceFile.parseDiagnostics.length; var saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode; var saveContextFlags = contextFlags; - var result = isLookAhead ? scanner.lookAhead(callback) : scanner.tryScan(callback); + var result = isLookAhead + ? scanner.lookAhead(callback) + : scanner.tryScan(callback); ts.Debug.assert(saveContextFlags === contextFlags); if (!result || isLookAhead) { token = saveToken; @@ -10241,7 +5521,8 @@ var ts; return undefined; } function parseExpectedToken(t, reportAtCurrentPosition, diagnosticMessage, arg0) { - return parseOptionalToken(t) || createMissingNode(t, reportAtCurrentPosition, diagnosticMessage, arg0); + return parseOptionalToken(t) || + createMissingNode(t, reportAtCurrentPosition, diagnosticMessage, arg0); } function parseTokenNode() { var node = createNode(token); @@ -10318,7 +5599,9 @@ var ts; return createIdentifier(isIdentifierOrKeyword()); } function isLiteralPropertyName() { - return isIdentifierOrKeyword() || token === 8 || token === 7; + return isIdentifierOrKeyword() || + token === 8 || + token === 7; } function parsePropertyName() { if (token === 8 || token === 7) { @@ -10371,7 +5654,10 @@ var ts; return canFollowModifier(); } function canFollowModifier() { - return token === 18 || token === 14 || token === 35 || isLiteralPropertyName(); + return token === 18 + || token === 14 + || token === 35 + || isLiteralPropertyName(); } function nextTokenIsClassOrFunction() { nextToken(); @@ -10445,7 +5731,8 @@ var ts; return isIdentifier(); } function isHeritageClauseExtendsOrImplementsKeyword() { - if (token === 103 || token === 79) { + if (token === 103 || + token === 79) { return lookAhead(nextTokenIsStartOfExpression); } return false; @@ -10831,7 +6118,9 @@ var ts; var tokenPos = scanner.getTokenPos(); nextToken(); finishNode(node); - if (node.kind === 7 && sourceText.charCodeAt(tokenPos) === 48 && ts.isOctalDigit(sourceText.charCodeAt(tokenPos + 1))) { + if (node.kind === 7 + && sourceText.charCodeAt(tokenPos) === 48 + && ts.isOctalDigit(sourceText.charCodeAt(tokenPos + 1))) { node.flags |= 16384; } return node; @@ -10870,7 +6159,9 @@ var ts; } function parseParameterType() { if (parseOptional(51)) { - return token === 8 ? parseLiteralNode(true) : parseType(); + return token === 8 + ? parseLiteralNode(true) + : parseType(); } return undefined; } @@ -11029,7 +6320,11 @@ var ts; } function isTypeMemberWithLiteralPropertyName() { nextToken(); - return token === 16 || token === 24 || token === 50 || token === 51 || canParseSemicolon(); + return token === 16 || + token === 24 || + token === 50 || + token === 51 || + canParseSemicolon(); } function parseTypeMember() { switch (token) { @@ -11037,7 +6332,9 @@ var ts; case 24: return parseSignatureMember(138); case 18: - return isIndexSignature() ? parseIndexSignatureDeclaration(scanner.getStartPos(), undefined, undefined) : parsePropertyOrMethodSignature(); + return isIndexSignature() + ? parseIndexSignatureDeclaration(scanner.getStartPos(), undefined, undefined) + : parsePropertyOrMethodSignature(); case 88: if (lookAhead(isStartOfConstructSignature)) { return parseSignatureMember(139); @@ -11061,7 +6358,9 @@ var ts; var fullStart = scanner.getStartPos(); var decorators = parseDecorators(); var modifiers = parseModifiers(); - return isIndexSignature() ? parseIndexSignatureDeclaration(fullStart, decorators, modifiers) : undefined; + return isIndexSignature() + ? parseIndexSignatureDeclaration(fullStart, decorators, modifiers) + : undefined; } function isStartOfConstructSignature() { nextToken(); @@ -11167,9 +6466,7 @@ var ts; function parseUnionTypeOrHigher() { var type = parseArrayTypeOrHigher(); if (token === 44) { - var types = [ - type - ]; + var types = [type]; types.pos = type.pos; while (parseOptional(44)) { types.push(parseArrayTypeOrHigher()); @@ -11194,7 +6491,9 @@ var ts; } if (isIdentifier() || ts.isModifier(token)) { nextToken(); - if (token === 51 || token === 23 || token === 50 || token === 53 || isIdentifier() || ts.isModifier(token)) { + if (token === 51 || token === 23 || + token === 50 || token === 53 || + isIdentifier() || ts.isModifier(token)) { return true; } if (token === 17) { @@ -11278,7 +6577,11 @@ var ts; } } function isStartOfExpressionStatement() { - return token !== 14 && token !== 83 && token !== 69 && token !== 52 && isStartOfExpression(); + return token !== 14 && + token !== 83 && + token !== 69 && + token !== 52 && + isStartOfExpression(); } function parseExpression() { // Expression[in]: @@ -11351,12 +6654,14 @@ var ts; } function nextTokenIsIdentifierOrStartOfDestructuringOnTheSameLine() { nextToken(); - return !scanner.hasPrecedingLineBreak() && (isIdentifier() || token === 14 || token === 18); + return !scanner.hasPrecedingLineBreak() && + (isIdentifier() || token === 14 || token === 18); } function parseYieldExpression() { var node = createNode(172); nextToken(); - if (!scanner.hasPrecedingLineBreak() && (token === 35 || isStartOfExpression())) { + if (!scanner.hasPrecedingLineBreak() && + (token === 35 || isStartOfExpression())) { node.asteriskToken = parseOptionalToken(35); node.expression = parseAssignmentExpressionOrHigher(); return finishNode(node); @@ -11371,9 +6676,7 @@ var ts; var parameter = createNode(129, identifier.pos); parameter.name = identifier; finishNode(parameter); - node.parameters = [ - parameter - ]; + node.parameters = [parameter]; node.parameters.pos = parameter.pos; node.parameters.end = parameter.end; node.equalsGreaterThanToken = parseExpectedToken(32, false, ts.Diagnostics._0_expected, "=>"); @@ -11385,13 +6688,17 @@ var ts; if (triState === 0) { return undefined; } - var arrowFunction = triState === 1 ? parseParenthesizedArrowFunctionExpressionHead(true) : tryParse(parsePossibleParenthesizedArrowFunctionExpressionHead); + var arrowFunction = triState === 1 + ? parseParenthesizedArrowFunctionExpressionHead(true) + : tryParse(parsePossibleParenthesizedArrowFunctionExpressionHead); if (!arrowFunction) { return undefined; } var lastToken = token; arrowFunction.equalsGreaterThanToken = parseExpectedToken(32, false, ts.Diagnostics._0_expected, "=>"); - arrowFunction.body = (lastToken === 32 || lastToken === 14) ? parseArrowFunctionExpressionBody() : parseIdentifier(); + arrowFunction.body = (lastToken === 32 || lastToken === 14) + ? parseArrowFunctionExpressionBody() + : parseIdentifier(); return finishNode(arrowFunction); } function isParenthesizedArrowFunctionExpression() { @@ -11418,6 +6725,9 @@ var ts; return 0; } } + if (second === 18 || second === 14) { + return 2; + } if (second === 21) { return 1; } @@ -11455,7 +6765,10 @@ var ts; if (token === 14) { return parseFunctionBlock(false, false); } - if (isStartOfStatement(true) && !isStartOfExpressionStatement() && token !== 83 && token !== 69) { + if (isStartOfStatement(true) && + !isStartOfExpressionStatement() && + token !== 83 && + token !== 69) { return parseFunctionBlock(false, true); } return parseAssignmentExpressionOrHigher(); @@ -11604,7 +6917,9 @@ var ts; return expression; } function parseLeftHandSideExpressionOrHigher() { - var expression = token === 91 ? parseSuperExpression() : parseMemberExpressionOrHigher(); + var expression = token === 91 + ? parseSuperExpression() + : parseMemberExpressionOrHigher(); return parseCallExpressionRest(expression); } function parseMemberExpressionOrHigher() { @@ -11658,7 +6973,9 @@ var ts; if (token === 10 || token === 11) { var tagExpression = createNode(159, expression.pos); tagExpression.tag = expression; - tagExpression.template = token === 10 ? parseLiteralNode() : parseTemplateExpression(); + tagExpression.template = token === 10 + ? parseLiteralNode() + : parseTemplateExpression(); expression = finishNode(tagExpression); continue; } @@ -11704,7 +7021,9 @@ var ts; if (!parseExpected(25)) { return undefined; } - return typeArguments && canFollowTypeArgumentsInExpression() ? typeArguments : undefined; + return typeArguments && canFollowTypeArgumentsInExpression() + ? typeArguments + : undefined; } function canFollowTypeArgumentsInExpression() { switch (token) { @@ -11782,7 +7101,9 @@ var ts; return finishNode(node); } function parseArgumentOrArrayLiteralElement() { - return token === 21 ? parseSpreadElement() : token === 23 ? createNode(175) : parseAssignmentExpressionOrHigher(); + return token === 21 ? parseSpreadElement() : + token === 23 ? createNode(175) : + parseAssignmentExpressionOrHigher(); } function parseArgumentExpression() { return doOutsideOfContext(disallowInAndDecoratorContext, parseArgumentOrArrayLiteralElement); @@ -12492,7 +7813,11 @@ var ts; if (isIndexSignature()) { return parseIndexSignatureDeclaration(fullStart, decorators, modifiers); } - if (isIdentifierOrKeyword() || token === 8 || token === 7 || token === 35 || token === 18) { + if (isIdentifierOrKeyword() || + token === 8 || + token === 7 || + token === 35 || + token === 18) { return parsePropertyOrMethodDeclaration(fullStart, decorators, modifiers); } if (decorators) { @@ -12509,18 +7834,18 @@ var ts; } function parseClassDeclarationOrExpression(fullStart, decorators, modifiers, kind) { var savedStrictModeContext = inStrictModeContext(); - if (languageVersion >= 2) { - setStrictModeContext(true); - } + setStrictModeContext(true); var node = createNode(kind, fullStart); node.decorators = decorators; setModifiers(node, modifiers); parseExpected(69); - node.name = node.flags & 256 ? parseOptionalIdentifier() : parseIdentifier(); + node.name = parseOptionalIdentifier(); node.typeParameters = parseTypeParameters(); node.heritageClauses = parseHeritageClauses(true); if (parseExpected(14)) { - node.members = inGeneratorParameterContext() ? doOutsideOfYieldContext(parseClassMembers) : parseClassMembers(); + node.members = inGeneratorParameterContext() + ? doOutsideOfYieldContext(parseClassMembers) + : parseClassMembers(); parseExpected(15); } else { @@ -12535,7 +7860,9 @@ var ts; // [~GeneratorParameter]ClassHeritage[?Yield]opt { ClassBody[?Yield]opt } // [+GeneratorParameter] ClassHeritageopt { ClassBodyopt } if (isHeritageClause()) { - return isClassHeritageClause && inGeneratorParameterContext() ? doOutsideOfYieldContext(parseHeritageClausesWorker) : parseHeritageClausesWorker(); + return isClassHeritageClause && inGeneratorParameterContext() + ? doOutsideOfYieldContext(parseHeritageClausesWorker) + : parseHeritageClausesWorker(); } return undefined; } @@ -12626,7 +7953,9 @@ var ts; setModifiers(node, modifiers); node.flags |= flags; node.name = parseIdentifier(); - node.body = parseOptional(20) ? parseInternalModuleTail(getNodePos(), undefined, undefined, 1) : parseModuleBlock(); + node.body = parseOptional(20) + ? parseInternalModuleTail(getNodePos(), undefined, undefined, 1) + : parseModuleBlock(); return finishNode(node); } function parseAmbientExternalModuleDeclaration(fullStart, decorators, modifiers) { @@ -12639,17 +7968,21 @@ var ts; } function parseModuleDeclaration(fullStart, decorators, modifiers) { parseExpected(117); - return token === 8 ? parseAmbientExternalModuleDeclaration(fullStart, decorators, modifiers) : parseInternalModuleTail(fullStart, decorators, modifiers, modifiers ? modifiers.flags : 0); + return token === 8 + ? parseAmbientExternalModuleDeclaration(fullStart, decorators, modifiers) + : parseInternalModuleTail(fullStart, decorators, modifiers, modifiers ? modifiers.flags : 0); } function isExternalModuleReference() { - return token === 118 && lookAhead(nextTokenIsOpenParen); + return token === 118 && + lookAhead(nextTokenIsOpenParen); } function nextTokenIsOpenParen() { return nextToken() === 16; } function nextTokenIsCommaOrFromKeyword() { nextToken(); - return token === 23 || token === 124; + return token === 23 || + token === 124; } function parseImportDeclarationOrImportEqualsDeclaration(fullStart, decorators, modifiers) { parseExpected(85); @@ -12671,7 +8004,9 @@ var ts; var importDeclaration = createNode(209, fullStart); importDeclaration.decorators = decorators; setModifiers(importDeclaration, modifiers); - if (identifier || token === 35 || token === 14) { + if (identifier || + token === 35 || + token === 14) { importDeclaration.importClause = parseImportClause(identifier, afterImportPos); parseExpected(124); } @@ -12690,13 +8025,16 @@ var ts; if (identifier) { importClause.name = identifier; } - if (!importClause.name || parseOptional(23)) { + if (!importClause.name || + parseOptional(23)) { importClause.namedBindings = token === 35 ? parseNamespaceImport() : parseNamedImportsOrExports(212); } return finishNode(importClause); } function parseModuleReference() { - return isExternalModuleReference() ? parseExternalModuleReference() : parseEntityName(false); + return isExternalModuleReference() + ? parseExternalModuleReference() + : parseEntityName(false); } function parseExternalModuleReference() { var node = createNode(219); @@ -12776,17 +8114,11 @@ var ts; setModifiers(node, modifiers); if (parseOptional(53)) { node.isExportEquals = true; - node.expression = parseAssignmentExpressionOrHigher(); } else { parseExpected(73); - if (parseOptional(51)) { - node.type = parseType(); - } - else { - node.expression = parseAssignmentExpressionOrHigher(); - } } + node.expression = parseAssignmentExpressionOrHigher(); parseSemicolon(); return finishNode(node); } @@ -12835,11 +8167,13 @@ var ts; } function nextTokenCanFollowImportKeyword() { nextToken(); - return isIdentifierOrKeyword() || token === 8 || token === 35 || token === 14; + return isIdentifierOrKeyword() || token === 8 || + token === 35 || token === 14; } function nextTokenCanFollowExportKeyword() { nextToken(); - return token === 53 || token === 35 || token === 14 || token === 73 || isDeclarationStart(true); + return token === 53 || token === 35 || + token === 14 || token === 73 || isDeclarationStart(true); } function nextTokenIsDeclarationStart() { nextToken(); @@ -12901,7 +8235,9 @@ var ts; return parseSourceElementOrModuleElement(); } function parseSourceElementOrModuleElement() { - return isDeclarationStart() ? parseDeclaration() : parseStatement(); + return isDeclarationStart() + ? parseDeclaration() + : parseStatement(); } function processReferenceComments(sourceFile) { var triviaScanner = ts.createScanner(sourceFile.languageVersion, false, sourceText); @@ -12916,10 +8252,7 @@ var ts; if (kind !== 2) { break; } - var range = { - pos: triviaScanner.getTokenPos(), - end: triviaScanner.getTextPos() - }; + var range = { pos: triviaScanner.getTokenPos(), end: triviaScanner.getTextPos(), kind: triviaScanner.getToken() }; var comment = sourceText.substring(range.pos, range.end); var referencePathMatchResult = ts.getFileReferenceFromReferencePath(comment, range); if (referencePathMatchResult) { @@ -12950,10 +8283,7 @@ var ts; var pathMatchResult = pathRegex.exec(comment); var nameMatchResult = nameRegex.exec(comment); if (pathMatchResult) { - var amdDependency = { - path: pathMatchResult[2], - name: nameMatchResult ? nameMatchResult[2] : undefined - }; + var amdDependency = { path: pathMatchResult[2], name: nameMatchResult ? nameMatchResult[2] : undefined }; amdDependencies.push(amdDependency); } } @@ -12965,7 +8295,13 @@ var ts; } function setExternalModuleIndicator(sourceFile) { sourceFile.externalModuleIndicator = ts.forEach(sourceFile.statements, function (node) { - return node.flags & 1 || node.kind === 208 && node.moduleReference.kind === 219 || node.kind === 209 || node.kind === 214 || node.kind === 215 ? node : undefined; + return node.flags & 1 + || node.kind === 208 && node.moduleReference.kind === 219 + || node.kind === 209 + || node.kind === 214 + || node.kind === 215 + ? node + : undefined; }); } } @@ -13037,24 +8373,12 @@ var ts; var undefinedSymbol = createSymbol(4 | 67108864, "undefined"); var argumentsSymbol = createSymbol(4 | 67108864, "arguments"); var checker = { - getNodeCount: function () { - return ts.sum(host.getSourceFiles(), "nodeCount"); - }, - getIdentifierCount: function () { - return ts.sum(host.getSourceFiles(), "identifierCount"); - }, - getSymbolCount: function () { - return ts.sum(host.getSourceFiles(), "symbolCount"); - }, - getTypeCount: function () { - return typeCount; - }, - isUndefinedSymbol: function (symbol) { - return symbol === undefinedSymbol; - }, - isArgumentsSymbol: function (symbol) { - return symbol === argumentsSymbol; - }, + getNodeCount: function () { return ts.sum(host.getSourceFiles(), "nodeCount"); }, + getIdentifierCount: function () { return ts.sum(host.getSourceFiles(), "identifierCount"); }, + getSymbolCount: function () { return ts.sum(host.getSourceFiles(), "symbolCount"); }, + getTypeCount: function () { return typeCount; }, + isUndefinedSymbol: function (symbol) { return symbol === undefinedSymbol; }, + isArgumentsSymbol: function (symbol) { return symbol === argumentsSymbol; }, getDiagnostics: getDiagnostics, getGlobalDiagnostics: getGlobalDiagnostics, getTypeOfSymbolAtLocation: getTypeOfSymbolAtLocation, @@ -13082,7 +8406,7 @@ var ts; isImplementationOfOverload: isImplementationOfOverload, getAliasedSymbol: resolveAlias, getEmitResolver: getEmitResolver, - getExportsOfExternalModule: getExportsOfExternalModule + getExportsOfModule: getExportsOfModuleAsArray }; var unknownSymbol = createSymbol(4 | 67108864, "unknown"); var resolvingSymbol = createSymbol(67108864, "__resolving__"); @@ -13125,6 +8449,7 @@ var ts; var stringLiteralTypes = {}; var emitExtends = false; var emitDecorate = false; + var emitParam = false; var mergedSymbols = []; var symbolLinks = []; var nodeLinks = []; @@ -13153,7 +8478,9 @@ var ts; return emitResolver; } function error(location, message, arg0, arg1, arg2) { - var diagnostic = location ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2) : ts.createCompilerDiagnostic(message, arg0, arg1, arg2); + var diagnostic = location + ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2) + : ts.createCompilerDiagnostic(message, arg0, arg1, arg2); diagnostics.add(diagnostic); } function createSymbol(flags, name) { @@ -13239,7 +8566,8 @@ var ts; recordMergedSymbol(target, source); } else { - var message = target.flags & 2 || source.flags & 2 ? ts.Diagnostics.Cannot_redeclare_block_scoped_variable_0 : ts.Diagnostics.Duplicate_identifier_0; + var message = target.flags & 2 || source.flags & 2 + ? ts.Diagnostics.Cannot_redeclare_block_scoped_variable_0 : ts.Diagnostics.Duplicate_identifier_0; ts.forEach(source.declarations, function (node) { error(node.name ? node.name : node, message, symbolToString(source)); }); @@ -13448,18 +8776,18 @@ var ts; } function checkResolvedBlockScopedVariable(result, errorLocation) { ts.Debug.assert((result.flags & 2) !== 0); - var declaration = ts.forEach(result.declarations, function (d) { - return ts.isBlockOrCatchScoped(d) ? d : undefined; - }); + var declaration = ts.forEach(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) ? d : undefined; }); ts.Debug.assert(declaration !== undefined, "Block-scoped variable declaration is undefined"); var isUsedBeforeDeclaration = !isDefinedBefore(declaration, errorLocation); if (!isUsedBeforeDeclaration) { var variableDeclaration = ts.getAncestor(declaration, 198); var container = ts.getEnclosingBlockScopeContainer(variableDeclaration); - if (variableDeclaration.parent.parent.kind === 180 || variableDeclaration.parent.parent.kind === 186) { + if (variableDeclaration.parent.parent.kind === 180 || + variableDeclaration.parent.parent.kind === 186) { isUsedBeforeDeclaration = isSameScopeDescendentOf(errorLocation, variableDeclaration, container); } - else if (variableDeclaration.parent.parent.kind === 188 || variableDeclaration.parent.parent.kind === 187) { + else if (variableDeclaration.parent.parent.kind === 188 || + variableDeclaration.parent.parent.kind === 187) { var expression = variableDeclaration.parent.parent.expression; isUsedBeforeDeclaration = isSameScopeDescendentOf(errorLocation, expression, container); } @@ -13491,9 +8819,7 @@ var ts; } } function getDeclarationOfAliasSymbol(symbol) { - return ts.forEach(symbol.declarations, function (d) { - return ts.isAliasSymbolDeclaration(d) ? d : undefined; - }); + return ts.forEach(symbol.declarations, function (d) { return ts.isAliasSymbolDeclaration(d) ? d : undefined; }); } function getTargetOfImportEqualsDeclaration(node) { if (node.moduleReference.kind === 219) { @@ -13562,7 +8888,9 @@ var ts; if (name_4.text) { var symbolFromModule = getExportOfModule(targetSymbol, name_4.text); var symbolFromVariable = getPropertyOfVariable(targetSymbol, name_4.text); - var symbol = symbolFromModule && symbolFromVariable ? combineValueAndTypeSymbols(symbolFromVariable, symbolFromModule) : symbolFromModule || symbolFromVariable; + var symbol = symbolFromModule && symbolFromVariable ? + combineValueAndTypeSymbols(symbolFromVariable, symbolFromModule) : + symbolFromModule || symbolFromVariable; if (!symbol) { error(name_4, ts.Diagnostics.Module_0_has_no_exported_member_1, getFullyQualifiedName(moduleSymbol), ts.declarationNameToString(name_4)); } @@ -13574,10 +8902,12 @@ var ts; return getExternalModuleMember(node.parent.parent.parent, node); } function getTargetOfExportSpecifier(node) { - return node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node) : resolveEntityName(node.propertyName || node.name, 107455 | 793056 | 1536); + return node.parent.parent.moduleSpecifier ? + getExternalModuleMember(node.parent.parent, node) : + resolveEntityName(node.propertyName || node.name, 107455 | 793056 | 1536); } function getTargetOfExportAssignment(node) { - return node.expression && resolveEntityName(node.expression, 107455 | 793056 | 1536); + return resolveEntityName(node.expression, 107455 | 793056 | 1536); } function getTargetOfAliasDeclaration(node) { switch (node.kind) { @@ -13621,7 +8951,8 @@ var ts; var symbol = getSymbolOfNode(node); var target = resolveAlias(symbol); if (target) { - var markAlias = (target === unknownSymbol && compilerOptions.separateCompilation) || (target !== unknownSymbol && (target.flags & 107455) && !isConstEnumOrConstEnumOnlyModule(target)); + var markAlias = (target === unknownSymbol && compilerOptions.separateCompilation) || + (target !== unknownSymbol && (target.flags & 107455) && !isConstEnumOrConstEnumOnlyModule(target)); if (markAlias) { markAliasSymbolAsReferenced(symbol); } @@ -13632,7 +8963,7 @@ var ts; if (!links.referenced) { links.referenced = true; var node = getDeclarationOfAliasSymbol(symbol); - if (node.kind === 214 && node.expression) { + if (node.kind === 214) { checkExpressionCached(node.expression); } else if (node.kind === 217) { @@ -13747,6 +9078,9 @@ var ts; function getExportAssignmentSymbol(moduleSymbol) { return moduleSymbol.exports["export="]; } + function getExportsOfModuleAsArray(moduleSymbol) { + return symbolsToArray(getExportsOfModule(moduleSymbol)); + } function getExportsOfSymbol(symbol) { return symbol.flags & 1536 ? getExportsOfModule(symbol) : symbol.exports || emptySymbols; } @@ -13767,7 +9101,7 @@ var ts; visit(moduleSymbol); return result || moduleSymbol.exports; function visit(symbol) { - if (symbol.flags & 1952 && !ts.contains(visitedSymbols, symbol)) { + if (symbol && symbol.flags & 1952 && !ts.contains(visitedSymbols, symbol)) { visitedSymbols.push(symbol); if (symbol !== moduleSymbol) { if (!result) { @@ -13796,7 +9130,9 @@ var ts; return getMergedSymbol(symbol.parent); } function getExportSymbolOfValueSymbolIfExported(symbol) { - return symbol && (symbol.flags & 1048576) !== 0 ? getMergedSymbol(symbol.exportSymbol) : symbol; + return symbol && (symbol.flags & 1048576) !== 0 + ? getMergedSymbol(symbol.exportSymbol) + : symbol; } function symbolIsValue(symbol) { if (symbol.flags & 16777216) { @@ -13835,7 +9171,10 @@ var ts; return type; } function isReservedMemberName(name) { - return name.charCodeAt(0) === 95 && name.charCodeAt(1) === 95 && name.charCodeAt(2) !== 95 && name.charCodeAt(2) !== 64; + return name.charCodeAt(0) === 95 && + name.charCodeAt(1) === 95 && + name.charCodeAt(2) !== 95 && + name.charCodeAt(2) !== 64; } function getNamedMembers(members) { var result; @@ -13909,28 +9248,24 @@ var ts; } function isAccessible(symbolFromSymbolTable, resolvedAliasSymbol) { if (symbol === (resolvedAliasSymbol || symbolFromSymbolTable)) { - return !ts.forEach(symbolFromSymbolTable.declarations, hasExternalModuleSymbol) && canQualifySymbol(symbolFromSymbolTable, meaning); + return !ts.forEach(symbolFromSymbolTable.declarations, hasExternalModuleSymbol) && + canQualifySymbol(symbolFromSymbolTable, meaning); } } if (isAccessible(ts.lookUp(symbols, symbol.name))) { - return [ - symbol - ]; + return [symbol]; } return ts.forEachValue(symbols, function (symbolFromSymbolTable) { if (symbolFromSymbolTable.flags & 8388608 && symbolFromSymbolTable.name !== "export=") { - if (!useOnlyExternalAliasing || ts.forEach(symbolFromSymbolTable.declarations, ts.isExternalModuleImportEqualsDeclaration)) { + if (!useOnlyExternalAliasing || + ts.forEach(symbolFromSymbolTable.declarations, ts.isExternalModuleImportEqualsDeclaration)) { var resolvedImportedSymbol = resolveAlias(symbolFromSymbolTable); if (isAccessible(symbolFromSymbolTable, resolveAlias(symbolFromSymbolTable))) { - return [ - symbolFromSymbolTable - ]; + return [symbolFromSymbolTable]; } var accessibleSymbolsFromExports = resolvedImportedSymbol.exports ? getAccessibleSymbolChainFromSymbolTable(resolvedImportedSymbol.exports) : undefined; if (accessibleSymbolsFromExports && canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) { - return [ - symbolFromSymbolTable - ].concat(accessibleSymbolsFromExports); + return [symbolFromSymbolTable].concat(accessibleSymbolsFromExports); } } } @@ -13995,9 +9330,7 @@ var ts; errorSymbolName: symbolToString(initialSymbol, enclosingDeclaration, meaning) }; } - return { - accessibility: 0 - }; + return { accessibility: 0 }; function getExternalModuleContainer(declaration) { for (; declaration; declaration = declaration.parent) { if (hasExternalModuleSymbol(declaration)) { @@ -14007,23 +9340,21 @@ var ts; } } function hasExternalModuleSymbol(declaration) { - return (declaration.kind === 205 && declaration.name.kind === 8) || (declaration.kind === 227 && ts.isExternalModule(declaration)); + return (declaration.kind === 205 && declaration.name.kind === 8) || + (declaration.kind === 227 && ts.isExternalModule(declaration)); } function hasVisibleDeclarations(symbol) { var aliasesToMakeVisible; - if (ts.forEach(symbol.declarations, function (declaration) { - return !getIsDeclarationVisible(declaration); - })) { + if (ts.forEach(symbol.declarations, function (declaration) { return !getIsDeclarationVisible(declaration); })) { return undefined; } - return { - accessibility: 0, - aliasesToMakeVisible: aliasesToMakeVisible - }; + return { accessibility: 0, aliasesToMakeVisible: aliasesToMakeVisible }; function getIsDeclarationVisible(declaration) { if (!isDeclarationVisible(declaration)) { var anyImportSyntax = getAnyImportSyntax(declaration); - if (anyImportSyntax && !(anyImportSyntax.flags & 1) && isDeclarationVisible(anyImportSyntax.parent)) { + if (anyImportSyntax && + !(anyImportSyntax.flags & 1) && + isDeclarationVisible(anyImportSyntax.parent)) { getNodeLinks(declaration).isVisible = true; if (aliasesToMakeVisible) { if (!ts.contains(aliasesToMakeVisible, anyImportSyntax)) { @@ -14031,9 +9362,7 @@ var ts; } } else { - aliasesToMakeVisible = [ - anyImportSyntax - ]; + aliasesToMakeVisible = [anyImportSyntax]; } return true; } @@ -14047,7 +9376,8 @@ var ts; if (entityName.parent.kind === 144) { meaning = 107455 | 1048576; } - else if (entityName.kind === 126 || entityName.kind === 155 || entityName.parent.kind === 208) { + else if (entityName.kind === 126 || entityName.kind === 155 || + entityName.parent.kind === 208) { meaning = 1536; } else { @@ -14133,7 +9463,8 @@ var ts; function walkSymbol(symbol, meaning) { if (symbol) { var accessibleSymbolChain = getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, !!(flags & 2)); - if (!accessibleSymbolChain || needsQualification(accessibleSymbolChain[0], enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning : getQualifiedLeftMeaning(meaning))) { + if (!accessibleSymbolChain || + needsQualification(accessibleSymbolChain[0], enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning : getQualifiedLeftMeaning(meaning))) { walkSymbol(getParentOfSymbol(accessibleSymbolChain ? accessibleSymbolChain[0] : symbol), getQualifiedLeftMeaning(meaning)); } if (accessibleSymbolChain) { @@ -14166,7 +9497,8 @@ var ts; return writeType(type, globalFlags); function writeType(type, flags) { if (type.flags & 1048703) { - writer.writeKeyword(!(globalFlags & 16) && (type.flags & 1) ? "any" : type.intrinsicName); + writer.writeKeyword(!(globalFlags & 16) && + (type.flags & 1) ? "any" : type.intrinsicName); } else if (type.flags & 4096) { writeTypeReference(type, flags); @@ -14259,14 +9591,16 @@ var ts; } function shouldWriteTypeOfFunctionSymbol() { if (type.symbol) { - var isStaticMethodSymbol = !!(type.symbol.flags & 8192 && ts.forEach(type.symbol.declarations, function (declaration) { - return declaration.flags & 128; - })); - var isNonLocalFunctionSymbol = !!(type.symbol.flags & 16) && (type.symbol.parent || ts.forEach(type.symbol.declarations, function (declaration) { - return declaration.parent.kind === 227 || declaration.parent.kind === 206; - })); + var isStaticMethodSymbol = !!(type.symbol.flags & 8192 && + ts.forEach(type.symbol.declarations, function (declaration) { return declaration.flags & 128; })); + var isNonLocalFunctionSymbol = !!(type.symbol.flags & 16) && + (type.symbol.parent || + ts.forEach(type.symbol.declarations, function (declaration) { + return declaration.parent.kind === 227 || declaration.parent.kind === 206; + })); if (isStaticMethodSymbol || isNonLocalFunctionSymbol) { - return !!(flags & 2) || (typeStack && ts.contains(typeStack, type)); + return !!(flags & 2) || + (typeStack && ts.contains(typeStack, type)); } } } @@ -14545,7 +9879,8 @@ var ts; case 152: return isDeclarationVisible(node.parent.parent); case 198: - if (ts.isBindingPattern(node.name) && !node.name.elements.length) { + if (ts.isBindingPattern(node.name) && + !node.name.elements.length) { return false; } case 205: @@ -14556,7 +9891,8 @@ var ts; case 204: case 208: var parent_2 = getDeclarationContainer(node); - if (!(ts.getCombinedNodeFlags(node) & 1) && !(node.kind !== 208 && parent_2.kind !== 227 && ts.isInAmbientContext(parent_2))) { + if (!(ts.getCombinedNodeFlags(node) & 1) && + !(node.kind !== 208 && parent_2.kind !== 227 && ts.isInAmbientContext(parent_2))) { return isGlobalSourceFile(parent_2); } return isDeclarationVisible(parent_2); @@ -14646,9 +9982,7 @@ var ts; } function getTypeOfPrototypeProperty(prototype) { var classType = getDeclaredTypeOfSymbol(prototype.parent); - return classType.typeParameters ? createTypeReference(classType, ts.map(classType.typeParameters, function (_) { - return anyType; - })) : classType; + return classType.typeParameters ? createTypeReference(classType, ts.map(classType.typeParameters, function (_) { return anyType; })) : classType; } function getTypeOfPropertyOfType(type, name) { var prop = getPropertyOfType(type, name); @@ -14669,20 +10003,24 @@ var ts; var type; if (pattern.kind === 150) { var name_5 = declaration.propertyName || declaration.name; - type = getTypeOfPropertyOfType(parentType, name_5.text) || isNumericLiteralName(name_5.text) && getIndexTypeOfType(parentType, 1) || getIndexTypeOfType(parentType, 0); + type = getTypeOfPropertyOfType(parentType, name_5.text) || + isNumericLiteralName(name_5.text) && getIndexTypeOfType(parentType, 1) || + getIndexTypeOfType(parentType, 0); if (!type) { error(name_5, ts.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature, typeToString(parentType), ts.declarationNameToString(name_5)); return unknownType; } } else { - if (!isArrayLikeType(parentType)) { - error(pattern, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(parentType)); - return unknownType; - } + var elementType = checkIteratedTypeOrElementType(parentType, pattern, false); if (!declaration.dotDotDotToken) { + if (elementType.flags & 1) { + return elementType; + } var propName = "" + ts.indexOf(pattern.elements, declaration); - type = isTupleLikeType(parentType) ? getTypeOfPropertyOfType(parentType, propName) : getIndexTypeOfType(parentType, 1); + type = isTupleLikeType(parentType) + ? getTypeOfPropertyOfType(parentType, propName) + : elementType; if (!type) { if (isTupleType(parentType)) { error(declaration, ts.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2, typeToString(parentType), parentType.elementTypes.length, pattern.elements.length); @@ -14694,7 +10032,7 @@ var ts; } } else { - type = createArrayType(getIndexTypeOfType(parentType, 1)); + type = createArrayType(elementType); } } return type; @@ -14762,10 +10100,26 @@ var ts; hasSpreadElement = true; } }); - return !elementTypes.length ? anyArrayType : hasSpreadElement ? createArrayType(getUnionType(elementTypes)) : createTupleType(elementTypes); + if (!elementTypes.length) { + return languageVersion >= 2 ? createIterableType(anyType) : anyArrayType; + } + else if (hasSpreadElement) { + var unionOfElements = getUnionType(elementTypes); + if (languageVersion >= 2) { + var parent_3 = pattern.parent; + var isRestParameter = parent_3.kind === 129 && + pattern === parent_3.name && + parent_3.dotDotDotToken !== undefined; + return isRestParameter ? createArrayType(unionOfElements) : createIterableType(unionOfElements); + } + return createArrayType(unionOfElements); + } + return createTupleType(elementTypes); } function getTypeFromBindingPattern(pattern) { - return pattern.kind === 150 ? getTypeFromObjectBindingPattern(pattern) : getTypeFromArrayBindingPattern(pattern); + return pattern.kind === 150 + ? getTypeFromObjectBindingPattern(pattern) + : getTypeFromArrayBindingPattern(pattern); } function getWidenedTypeForVariableLikeDeclaration(declaration, reportErrors) { var type = getTypeForVariableLikeDeclaration(declaration); @@ -14798,16 +10152,7 @@ var ts; return links.type = anyType; } if (declaration.kind === 214) { - var exportAssignment = declaration; - if (exportAssignment.expression) { - return links.type = checkExpression(exportAssignment.expression); - } - else if (exportAssignment.type) { - return links.type = getTypeFromTypeNodeOrHeritageClauseElement(exportAssignment.type); - } - else { - return links.type = anyType; - } + return links.type = checkExpression(declaration.expression); } links.type = resolvingType; var type = getWidenedTypeForVariableLikeDeclaration(declaration, true); @@ -14818,7 +10163,9 @@ var ts; else if (links.type === resolvingType) { links.type = anyType; if (compilerOptions.noImplicitAny) { - var diagnostic = symbol.valueDeclaration.type ? ts.Diagnostics._0_implicitly_has_type_any_because_it_is_referenced_directly_or_indirectly_in_its_own_type_annotation : ts.Diagnostics._0_implicitly_has_type_any_because_it_is_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer; + var diagnostic = symbol.valueDeclaration.type ? + ts.Diagnostics._0_implicitly_has_type_any_because_it_is_referenced_directly_or_indirectly_in_its_own_type_annotation : + ts.Diagnostics._0_implicitly_has_type_any_because_it_is_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer; error(symbol.valueDeclaration, diagnostic, symbolToString(symbol)); } } @@ -14952,9 +10299,7 @@ var ts; ts.forEach(declaration.typeParameters, function (node) { var tp = getDeclaredTypeOfTypeParameter(getSymbolOfNode(node)); if (!result) { - result = [ - tp - ]; + result = [tp]; } else if (!ts.contains(result, tp)) { result.push(tp); @@ -15201,15 +10546,14 @@ var ts; var baseType = classType.baseTypes[0]; var baseSignatures = getSignaturesOfType(getTypeOfSymbol(baseType.symbol), 1); return ts.map(baseSignatures, function (baseSignature) { - var signature = baseType.flags & 4096 ? getSignatureInstantiation(baseSignature, baseType.typeArguments) : cloneSignature(baseSignature); + var signature = baseType.flags & 4096 ? + getSignatureInstantiation(baseSignature, baseType.typeArguments) : cloneSignature(baseSignature); signature.typeParameters = classType.typeParameters; signature.resolvedReturnType = classType; return signature; }); } - return [ - createSignature(undefined, classType.typeParameters, emptyArray, classType, 0, false, false) - ]; + return [createSignature(undefined, classType.typeParameters, emptyArray, classType, 0, false, false)]; } function createTupleTypeMemberSymbols(memberTypes) { var members = {}; @@ -15238,9 +10582,7 @@ var ts; return true; } function getUnionSignatures(types, kind) { - var signatureLists = ts.map(types, function (t) { - return getSignaturesOfType(t, kind); - }); + var signatureLists = ts.map(types, function (t) { return getSignaturesOfType(t, kind); }); var signatures = signatureLists[0]; for (var _i = 0; _i < signatures.length; _i++) { var signature = signatures[_i]; @@ -15257,9 +10599,7 @@ var ts; for (var i = 0; i < result.length; i++) { var s = result[i]; s.resolvedReturnType = undefined; - s.unionSignatures = ts.map(signatureLists, function (signatures) { - return signatures[i]; - }); + s.unionSignatures = ts.map(signatureLists, function (signatures) { return signatures[i]; }); } return result; } @@ -15410,9 +10750,7 @@ var ts; return undefined; } if (!props) { - props = [ - prop - ]; + props = [prop]; } else { props.push(prop); @@ -15479,6 +10817,15 @@ var ts; function getSignaturesOfType(type, kind) { return getSignaturesOfObjectOrUnionType(getApparentType(type), kind); } + function typeHasCallOrConstructSignatures(type) { + var apparentType = getApparentType(type); + if (apparentType.flags & (48128 | 16384)) { + var resolved = resolveObjectOrUnionTypeMembers(type); + return resolved.callSignatures.length > 0 + || resolved.constructSignatures.length > 0; + } + return false; + } function getIndexTypeOfObjectOrUnionType(type, kind) { if (type.flags & (48128 | 16384)) { var resolved = resolveObjectOrUnionTypeMembers(type); @@ -15507,21 +10854,12 @@ var ts; } return result; } - function getExportsOfExternalModule(node) { - if (!node.moduleSpecifier) { - return emptyArray; - } - var module = resolveExternalModuleName(node, node.moduleSpecifier); - if (!module) { - return emptyArray; - } - return symbolsToArray(getExportsOfModule(module)); - } function getSignatureFromDeclaration(declaration) { var links = getNodeLinks(declaration); if (!links.resolvedSignature) { var classType = declaration.kind === 135 ? getDeclaredTypeOfClass(declaration.parent.symbol) : undefined; - var typeParameters = classType ? classType.typeParameters : declaration.typeParameters ? getTypeParametersFromDeclaration(declaration.typeParameters) : undefined; + var typeParameters = classType ? classType.typeParameters : + declaration.typeParameters ? getTypeParametersFromDeclaration(declaration.typeParameters) : undefined; var parameters = []; var hasStringLiterals = false; var minArgumentCount = -1; @@ -15653,12 +10991,8 @@ var ts; var type = createObjectType(32768 | 65536); type.members = emptySymbols; type.properties = emptyArray; - type.callSignatures = !isConstructor ? [ - signature - ] : emptyArray; - type.constructSignatures = isConstructor ? [ - signature - ] : emptyArray; + type.callSignatures = !isConstructor ? [signature] : emptyArray; + type.constructSignatures = isConstructor ? [signature] : emptyArray; signature.isolatedSignatureType = type; } return signature.isolatedSignatureType; @@ -15686,7 +11020,9 @@ var ts; } function getIndexTypeOfSymbol(symbol, kind) { var declaration = getIndexDeclarationOfSymbol(symbol, kind); - return declaration ? declaration.type ? getTypeFromTypeNodeOrHeritageClauseElement(declaration.type) : anyType : undefined; + return declaration + ? declaration.type ? getTypeFromTypeNodeOrHeritageClauseElement(declaration.type) : anyType + : undefined; } function getConstraintOfTypeParameter(type) { if (!type.constraint) { @@ -15742,9 +11078,7 @@ var ts; return links.isIllegalTypeReferenceInConstraint; } var currentNode = typeReferenceNode; - while (!ts.forEach(typeParameterSymbol.declarations, function (d) { - return d.parent === currentNode.parent; - })) { + while (!ts.forEach(typeParameterSymbol.declarations, function (d) { return d.parent === currentNode.parent; })) { currentNode = currentNode.parent; } links.isIllegalTypeReferenceInConstraint = currentNode.kind === 128; @@ -15758,9 +11092,7 @@ var ts; if (links.isIllegalTypeReferenceInConstraint === undefined) { var symbol = resolveName(typeParameter, n.typeName.text, 793056, undefined, undefined); if (symbol && (symbol.flags & 262144)) { - links.isIllegalTypeReferenceInConstraint = ts.forEach(symbol.declarations, function (d) { - return d.parent == typeParameter.parent; - }); + links.isIllegalTypeReferenceInConstraint = ts.forEach(symbol.declarations, function (d) { return d.parent == typeParameter.parent; }); } } if (links.isIllegalTypeReferenceInConstraint) { @@ -15785,7 +11117,9 @@ var ts; if (!links.resolvedType) { var type; if (node.kind !== 177 || ts.isSupportedHeritageClauseElement(node)) { - var typeNameOrExpression = node.kind === 141 ? node.typeName : node.expression; + var typeNameOrExpression = node.kind === 141 + ? node.typeName + : node.expression; var symbol = resolveEntityName(typeNameOrExpression, 793056); if (symbol) { if ((symbol.flags & 262144) && isTypeParameterReferenceIllegalInConstraint(node, symbol)) { @@ -15866,11 +11200,12 @@ var ts; function getGlobalESSymbolConstructorSymbol() { return globalESSymbolConstructorSymbol || (globalESSymbolConstructorSymbol = getGlobalValueSymbol("Symbol")); } + function createIterableType(elementType) { + return globalIterableType !== emptyObjectType ? createTypeReference(globalIterableType, [elementType]) : emptyObjectType; + } function createArrayType(elementType) { var arrayType = globalArrayType || getDeclaredTypeOfSymbol(globalArraySymbol); - return arrayType !== emptyObjectType ? createTypeReference(arrayType, [ - elementType - ]) : emptyObjectType; + return arrayType !== emptyObjectType ? createTypeReference(arrayType, [elementType]) : emptyObjectType; } function getTypeFromArrayTypeNode(node) { var links = getNodeLinks(node); @@ -16062,21 +11397,15 @@ var ts; return items; } function createUnaryTypeMapper(source, target) { - return function (t) { - return t === source ? target : t; - }; + return function (t) { return t === source ? target : t; }; } function createBinaryTypeMapper(source1, target1, source2, target2) { - return function (t) { - return t === source1 ? target1 : t === source2 ? target2 : t; - }; + return function (t) { return t === source1 ? target1 : t === source2 ? target2 : t; }; } function createTypeMapper(sources, targets) { switch (sources.length) { - case 1: - return createUnaryTypeMapper(sources[0], targets[0]); - case 2: - return createBinaryTypeMapper(sources[0], targets[0], sources[1], targets[1]); + case 1: return createUnaryTypeMapper(sources[0], targets[0]); + case 2: return createBinaryTypeMapper(sources[0], targets[0], sources[1], targets[1]); } return function (t) { for (var i = 0; i < sources.length; i++) { @@ -16088,21 +11417,15 @@ var ts; }; } function createUnaryTypeEraser(source) { - return function (t) { - return t === source ? anyType : t; - }; + return function (t) { return t === source ? anyType : t; }; } function createBinaryTypeEraser(source1, source2) { - return function (t) { - return t === source1 || t === source2 ? anyType : t; - }; + return function (t) { return t === source1 || t === source2 ? anyType : t; }; } function createTypeEraser(sources) { switch (sources.length) { - case 1: - return createUnaryTypeEraser(sources[0]); - case 2: - return createBinaryTypeEraser(sources[0], sources[1]); + case 1: return createUnaryTypeEraser(sources[0]); + case 2: return createBinaryTypeEraser(sources[0], sources[1]); } return function (t) { for (var _i = 0; _i < sources.length; _i++) { @@ -16129,9 +11452,7 @@ var ts; return type; } function combineTypeMappers(mapper1, mapper2) { - return function (t) { - return mapper2(mapper1(t)); - }; + return function (t) { return mapper2(mapper1(t)); }; } function instantiateTypeParameter(typeParameter, mapper) { var result = createType(512); @@ -16192,7 +11513,8 @@ var ts; return mapper(type); } if (type.flags & 32768) { - return type.symbol && type.symbol.flags & (16 | 8192 | 2048 | 4096) ? instantiateAnonymousType(type, mapper) : type; + return type.symbol && type.symbol.flags & (16 | 8192 | 2048 | 4096) ? + instantiateAnonymousType(type, mapper) : type; } if (type.flags & 4096) { return createTypeReference(type.target, instantiateList(type.typeArguments, mapper, instantiateType)); @@ -16217,9 +11539,11 @@ var ts; case 153: return ts.forEach(node.elements, isContextSensitive); case 170: - return isContextSensitive(node.whenTrue) || isContextSensitive(node.whenFalse); + return isContextSensitive(node.whenTrue) || + isContextSensitive(node.whenFalse); case 169: - return node.operatorToken.kind === 49 && (isContextSensitive(node.left) || isContextSensitive(node.right)); + return node.operatorToken.kind === 49 && + (isContextSensitive(node.left) || isContextSensitive(node.right)); case 224: return isContextSensitive(node.initializer); case 134: @@ -16231,9 +11555,7 @@ var ts; return false; } function isContextSensitiveFunctionLikeDeclaration(node) { - return !node.typeParameters && node.parameters.length && !ts.forEach(node.parameters, function (p) { - return p.type; - }); + return !node.typeParameters && node.parameters.length && !ts.forEach(node.parameters, function (p) { return p.type; }); } function getTypeWithoutConstructors(type) { if (type.flags & 48128) { @@ -16373,7 +11695,8 @@ var ts; } var reportStructuralErrors = reportErrors && errorInfo === saveErrorInfo; var sourceOrApparentType = relation === identityRelation ? source : getApparentType(source); - if (sourceOrApparentType.flags & 48128 && target.flags & 48128 && (result = objectTypeRelatedTo(sourceOrApparentType, target, reportStructuralErrors))) { + if (sourceOrApparentType.flags & 48128 && target.flags & 48128 && + (result = objectTypeRelatedTo(sourceOrApparentType, target, reportStructuralErrors))) { errorInfo = saveErrorInfo; return result; } @@ -16833,7 +12156,9 @@ var ts; if (source === target) { return -1; } - if (source.parameters.length !== target.parameters.length || source.minArgumentCount !== target.minArgumentCount || source.hasRestParameter !== target.hasRestParameter) { + if (source.parameters.length !== target.parameters.length || + source.minArgumentCount !== target.minArgumentCount || + source.hasRestParameter !== target.hasRestParameter) { return 0; } var result = -1; @@ -16877,9 +12202,7 @@ var ts; return true; } function getCommonSupertype(types) { - return ts.forEach(types, function (t) { - return isSupertypeOfEach(t, types) ? t : undefined; - }); + return ts.forEach(types, function (t) { return isSupertypeOfEach(t, types) ? t : undefined; }); } function reportNoCommonSupertypeError(types, errorLocation, errorMessageChainHead) { var bestSupertype; @@ -17000,7 +12323,9 @@ var ts; diagnostic = ts.Diagnostics.Member_0_implicitly_has_an_1_type; break; case 129: - diagnostic = declaration.dotDotDotToken ? ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : ts.Diagnostics.Parameter_0_implicitly_has_an_1_type; + diagnostic = declaration.dotDotDotToken ? + ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : + ts.Diagnostics.Parameter_0_implicitly_has_an_1_type; break; case 200: case 134: @@ -17057,11 +12382,7 @@ var ts; var inferences = []; for (var _i = 0; _i < typeParameters.length; _i++) { var unused = typeParameters[_i]; - inferences.push({ - primary: undefined, - secondary: undefined, - isFixed: false - }); + inferences.push({ primary: undefined, secondary: undefined, isFixed: false }); } return { typeParameters: typeParameters, @@ -17108,7 +12429,9 @@ var ts; if (target === typeParameters[i]) { var inferences = context.inferences[i]; if (!inferences.isFixed) { - var candidates = inferiority ? inferences.secondary || (inferences.secondary = []) : inferences.primary || (inferences.primary = []); + var candidates = inferiority ? + inferences.secondary || (inferences.secondary = []) : + inferences.primary || (inferences.primary = []); if (!ts.contains(candidates, source)) { candidates.push(source); } @@ -17151,7 +12474,8 @@ var ts; inferFromTypes(sourceType, target); } } - else if (source.flags & 48128 && (target.flags & (4096 | 8192) || (target.flags & 32768) && target.symbol && target.symbol.flags & (8192 | 2048))) { + else if (source.flags & 48128 && (target.flags & (4096 | 8192) || + (target.flags & 32768) && target.symbol && target.symbol.flags & (8192 | 2048))) { if (!isInProcess(source, target) && isWithinDepthLimit(source, sourceStack) && isWithinDepthLimit(target, targetStack)) { if (depth === 0) { sourceStack = []; @@ -17267,12 +12591,8 @@ var ts; function removeTypesFromUnionType(type, typeKind, isOfTypeKind, allowEmptyUnionResult) { if (type.flags & 16384) { var types = type.types; - if (ts.forEach(types, function (t) { - return !!(t.flags & typeKind) === isOfTypeKind; - })) { - var narrowedType = getUnionType(ts.filter(types, function (t) { - return !(t.flags & typeKind) === isOfTypeKind; - })); + if (ts.forEach(types, function (t) { return !!(t.flags & typeKind) === isOfTypeKind; })) { + var narrowedType = getUnionType(ts.filter(types, function (t) { return !(t.flags & typeKind) === isOfTypeKind; })); if (allowEmptyUnionResult || narrowedType !== emptyObjectType) { return narrowedType; } @@ -17365,14 +12685,13 @@ var ts; } function resolveLocation(node) { var containerNodes = []; - for (var parent_3 = node.parent; parent_3; parent_3 = parent_3.parent) { - if ((ts.isExpression(parent_3) || ts.isObjectLiteralMethod(node)) && isContextSensitive(parent_3)) { - containerNodes.unshift(parent_3); + for (var parent_4 = node.parent; parent_4; parent_4 = parent_4.parent) { + if ((ts.isExpression(parent_4) || ts.isObjectLiteralMethod(node)) && + isContextSensitive(parent_4)) { + containerNodes.unshift(parent_4); } } - ts.forEach(containerNodes, function (node) { - getTypeOfNode(node); - }); + ts.forEach(containerNodes, function (node) { getTypeOfNode(node); }); } function getSymbolAtLocation(node) { resolveLocation(node); @@ -17501,9 +12820,7 @@ var ts; return targetType; } if (type.flags & 16384) { - return getUnionType(ts.filter(type.types, function (t) { - return isTypeSubtypeOf(t, targetType); - })); + return getUnionType(ts.filter(type.types, function (t) { return isTypeSubtypeOf(t, targetType); })); } return type; } @@ -17559,7 +12876,9 @@ var ts; return false; } function checkBlockScopedBindingCapturedInLoop(node, symbol) { - if (languageVersion >= 2 || (symbol.flags & 2) === 0 || symbol.valueDeclaration.parent.kind === 223) { + if (languageVersion >= 2 || + (symbol.flags & 2) === 0 || + symbol.valueDeclaration.parent.kind === 223) { return; } var container = symbol.valueDeclaration; @@ -17663,14 +12982,25 @@ var ts; needToCaptureLexicalThis = false; while (container && container.kind === 163) { container = ts.getSuperContainer(container, true); - needToCaptureLexicalThis = true; + needToCaptureLexicalThis = languageVersion < 2; } if (container && container.parent && container.parent.kind === 201) { if (container.flags & 128) { - canUseSuperExpression = container.kind === 134 || container.kind === 133 || container.kind === 136 || container.kind === 137; + canUseSuperExpression = + container.kind === 134 || + container.kind === 133 || + container.kind === 136 || + container.kind === 137; } else { - canUseSuperExpression = container.kind === 134 || container.kind === 133 || container.kind === 136 || container.kind === 137 || container.kind === 132 || container.kind === 131 || container.kind === 135; + canUseSuperExpression = + container.kind === 134 || + container.kind === 133 || + container.kind === 136 || + container.kind === 137 || + container.kind === 132 || + container.kind === 131 || + container.kind === 135; } } } @@ -17694,7 +13024,7 @@ var ts; return returnType; } } - if (container.kind === 127) { + if (container && container.kind === 127) { error(node, ts.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); } else if (isCallExpression) { @@ -17717,7 +13047,8 @@ var ts; if (indexOfParameter < len) { return getTypeAtPosition(contextualSignature, indexOfParameter); } - if (indexOfParameter === (func.parameters.length - 1) && funcHasRestParameters && contextualSignature.hasRestParameter && func.parameters.length >= contextualSignature.parameters.length) { + if (indexOfParameter === (func.parameters.length - 1) && + funcHasRestParameters && contextualSignature.hasRestParameter && func.parameters.length >= contextualSignature.parameters.length) { return getTypeOfSymbol(contextualSignature.parameters[contextualSignature.parameters.length - 1]); } } @@ -17803,10 +13134,7 @@ var ts; mappedType = t; } else if (!mappedTypes) { - mappedTypes = [ - mappedType, - t - ]; + mappedTypes = [mappedType, t]; } else { mappedTypes.push(t); @@ -17822,17 +13150,13 @@ var ts; }); } function getIndexTypeOfContextualType(type, kind) { - return applyToContextualType(type, function (t) { - return getIndexTypeOfObjectOrUnionType(t, kind); - }); + return applyToContextualType(type, function (t) { return getIndexTypeOfObjectOrUnionType(t, kind); }); } function contextualTypeIsTupleLikeType(type) { return !!(type.flags & 16384 ? ts.forEach(type.types, isTupleLikeType) : isTupleLikeType(type)); } function contextualTypeHasIndexSignature(type, kind) { - return !!(type.flags & 16384 ? ts.forEach(type.types, function (t) { - return getIndexTypeOfObjectOrUnionType(t, kind); - }) : getIndexTypeOfObjectOrUnionType(type, kind)); + return !!(type.flags & 16384 ? ts.forEach(type.types, function (t) { return getIndexTypeOfObjectOrUnionType(t, kind); }) : getIndexTypeOfObjectOrUnionType(type, kind)); } function getContextualTypeForObjectLiteralMethod(node) { ts.Debug.assert(ts.isObjectLiteralMethod(node)); @@ -17852,7 +13176,8 @@ var ts; return propertyType; } } - return isNumericName(element.name) && getIndexTypeOfContextualType(type, 1) || getIndexTypeOfContextualType(type, 0); + return isNumericName(element.name) && getIndexTypeOfContextualType(type, 1) || + getIndexTypeOfContextualType(type, 0); } return undefined; } @@ -17861,7 +13186,9 @@ var ts; var type = getContextualType(arrayLiteral); if (type) { var index = ts.indexOf(arrayLiteral.elements, node); - return getTypeOfPropertyOfContextualType(type, "" + index) || getIndexTypeOfContextualType(type, 1) || (languageVersion >= 2 ? checkIteratedType(type, undefined) : undefined); + return getTypeOfPropertyOfContextualType(type, "" + index) + || getIndexTypeOfContextualType(type, 1) + || (languageVersion >= 2 ? checkIteratedType(type, undefined) : undefined); } return undefined; } @@ -17925,7 +13252,9 @@ var ts; } function getContextualSignature(node) { ts.Debug.assert(node.kind !== 134 || ts.isObjectLiteralMethod(node)); - var type = ts.isObjectLiteralMethod(node) ? getContextualTypeForObjectLiteralMethod(node) : getContextualType(node); + var type = ts.isObjectLiteralMethod(node) + ? getContextualTypeForObjectLiteralMethod(node) + : getContextualType(node); if (!type) { return undefined; } @@ -17936,15 +13265,14 @@ var ts; var types = type.types; for (var _i = 0; _i < types.length; _i++) { var current = types[_i]; - if (signatureList && getSignaturesOfObjectOrUnionType(current, 0).length > 1) { + if (signatureList && + getSignaturesOfObjectOrUnionType(current, 0).length > 1) { return undefined; } var signature = getNonGenericSignature(current); if (signature) { if (!signatureList) { - signatureList = [ - signature - ]; + signatureList = [signature]; } else if (!compareSignatures(signatureList[0], signature, false, compareTypes)) { return undefined; @@ -17979,12 +13307,8 @@ var ts; return false; } function checkSpreadElementExpression(node, contextualMapper) { - var type = checkExpressionCached(node.expression, contextualMapper); - if (!isArrayLikeType(type)) { - error(node.expression, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(type)); - return unknownType; - } - return type; + var arrayOrIterableType = checkExpressionCached(node.expression, contextualMapper); + return checkIteratedTypeOrElementType(arrayOrIterableType, node.expression, false); } function checkArrayLiteral(node, contextualMapper) { var elements = node.elements; @@ -17993,16 +13317,12 @@ var ts; } var hasSpreadElement = false; var elementTypes = []; - ts.forEach(elements, function (e) { + for (var _i = 0; _i < elements.length; _i++) { + var e = elements[_i]; var type = checkExpression(e, contextualMapper); - if (e.kind === 173) { - elementTypes.push(getIndexTypeOfType(type, 1) || anyType); - hasSpreadElement = true; - } - else { - elementTypes.push(type); - } - }); + elementTypes.push(type); + hasSpreadElement = hasSpreadElement || e.kind === 173; + } if (!hasSpreadElement) { var contextualType = getContextualType(node); if (contextualType && contextualTypeIsTupleLikeType(contextualType) || isAssignmentTarget(node)) { @@ -18042,7 +13362,9 @@ var ts; for (var _i = 0, _a = node.properties; _i < _a.length; _i++) { var memberDecl = _a[_i]; var member = memberDecl.symbol; - if (memberDecl.kind === 224 || memberDecl.kind === 225 || ts.isObjectLiteralMethod(memberDecl)) { + if (memberDecl.kind === 224 || + memberDecl.kind === 225 || + ts.isObjectLiteralMethod(memberDecl)) { var type = void 0; if (memberDecl.kind === 224) { type = checkPropertyAssignment(memberDecl, contextualMapper); @@ -18052,7 +13374,9 @@ var ts; } else { ts.Debug.assert(memberDecl.kind === 225); - type = memberDecl.name.kind === 127 ? unknownType : checkExpression(memberDecl.name, contextualMapper); + type = memberDecl.name.kind === 127 + ? unknownType + : checkExpression(memberDecl.name, contextualMapper); } typeFlags |= type.flags; var prop = createSymbol(4 | 67108864 | member.flags, member.name); @@ -18168,7 +13492,9 @@ var ts; return anyType; } function isValidPropertyAccess(node, propertyName) { - var left = node.kind === 155 ? node.expression : node.left; + var left = node.kind === 155 + ? node.expression + : node.left; var type = checkExpressionOrQualifiedName(left); if (type !== unknownType && type !== anyType) { var prop = getPropertyOfType(getWidenedType(type), propertyName); @@ -18205,7 +13531,8 @@ var ts; return unknownType; } var isConstEnum = isConstEnumObjectType(objectType); - if (isConstEnum && (!node.argumentExpression || node.argumentExpression.kind !== 8)) { + if (isConstEnum && + (!node.argumentExpression || node.argumentExpression.kind !== 8)) { error(node.argumentExpression, ts.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal); return unknownType; } @@ -18308,19 +13635,19 @@ var ts; for (var _i = 0; _i < signatures.length; _i++) { var signature = signatures[_i]; var symbol = signature.declaration && getSymbolOfNode(signature.declaration); - var parent_4 = signature.declaration && signature.declaration.parent; + var parent_5 = signature.declaration && signature.declaration.parent; if (!lastSymbol || symbol === lastSymbol) { - if (lastParent && parent_4 === lastParent) { + if (lastParent && parent_5 === lastParent) { index++; } else { - lastParent = parent_4; + lastParent = parent_5; index = cutoffIndex; } } else { index = cutoffIndex = result.length; - lastParent = parent_4; + lastParent = parent_5; } lastSymbol = symbol; if (signature.hasStringLiterals) { @@ -18372,7 +13699,8 @@ var ts; callIsIncomplete = callExpression.arguments.end === callExpression.end; typeArguments = callExpression.typeArguments; } - var hasRightNumberOfTypeArgs = !typeArguments || (signature.typeParameters && typeArguments.length === signature.typeParameters.length); + var hasRightNumberOfTypeArgs = !typeArguments || + (signature.typeParameters && typeArguments.length === signature.typeParameters.length); if (!hasRightNumberOfTypeArgs) { return false; } @@ -18389,7 +13717,8 @@ var ts; function getSingleCallSignature(type) { if (type.flags & 48128) { var resolved = resolveObjectOrUnionTypeMembers(type); - if (resolved.callSignatures.length === 1 && resolved.constructSignatures.length === 0 && resolved.properties.length === 0 && !resolved.stringIndexType && !resolved.numberIndexType) { + if (resolved.callSignatures.length === 1 && resolved.constructSignatures.length === 0 && + resolved.properties.length === 0 && !resolved.stringIndexType && !resolved.numberIndexType) { return resolved.callSignatures[0]; } } @@ -18416,7 +13745,7 @@ var ts; for (var i = 0; i < args.length; i++) { var arg = args[i]; if (arg.kind !== 175) { - var paramType = getTypeAtPosition(signature, arg.kind === 173 ? -1 : i); + var paramType = getTypeAtPosition(signature, i); var argType = void 0; if (i === 0 && args[i].parent.kind === 159) { argType = globalTemplateStringsArrayType; @@ -18432,7 +13761,7 @@ var ts; for (var i = 0; i < args.length; i++) { if (excludeArgument[i] === false) { var arg = args[i]; - var paramType = getTypeAtPosition(signature, arg.kind === 173 ? -1 : i); + var paramType = getTypeAtPosition(signature, i); inferTypes(context, checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType); } } @@ -18459,8 +13788,10 @@ var ts; for (var i = 0; i < args.length; i++) { var arg = args[i]; if (arg.kind !== 175) { - var paramType = getTypeAtPosition(signature, arg.kind === 173 ? -1 : i); - var argType = i === 0 && node.kind === 159 ? globalTemplateStringsArrayType : arg.kind === 8 && !reportErrors ? getStringLiteralType(arg) : checkExpressionWithContextualType(arg, paramType, excludeArgument && excludeArgument[i] ? identityMapper : undefined); + var paramType = getTypeAtPosition(signature, i); + var argType = i === 0 && node.kind === 159 ? globalTemplateStringsArrayType : + arg.kind === 8 && !reportErrors ? getStringLiteralType(arg) : + checkExpressionWithContextualType(arg, paramType, excludeArgument && excludeArgument[i] ? identityMapper : undefined); if (!checkTypeRelatedTo(argType, paramType, relation, reportErrors ? arg : undefined, ts.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1)) { return false; } @@ -18472,9 +13803,7 @@ var ts; var args; if (node.kind === 159) { var template = node.template; - args = [ - template - ]; + args = [template]; if (template.kind === 171) { ts.forEach(template.templateSpans, function (span) { args.push(span.expression); @@ -18572,7 +13901,9 @@ var ts; } var candidate = void 0; var typeArgumentsAreValid = void 0; - var inferenceContext = originalCandidate.typeParameters ? createInferenceContext(originalCandidate.typeParameters, false) : undefined; + var inferenceContext = originalCandidate.typeParameters + ? createInferenceContext(originalCandidate.typeParameters, false) + : undefined; while (true) { candidate = originalCandidate; if (candidate.typeParameters) { @@ -18728,7 +14059,10 @@ var ts; } if (node.kind === 158) { var declaration = signature.declaration; - if (declaration && declaration.kind !== 135 && declaration.kind !== 139 && declaration.kind !== 143) { + if (declaration && + declaration.kind !== 135 && + declaration.kind !== 139 && + declaration.kind !== 143) { if (compilerOptions.noImplicitAny) { error(node, ts.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); } @@ -18752,10 +14086,9 @@ var ts; return targetType; } function getTypeAtPosition(signature, pos) { - if (pos >= 0) { - return signature.hasRestParameter ? pos < signature.parameters.length - 1 ? getTypeOfSymbol(signature.parameters[pos]) : getRestTypeOfSignature(signature) : pos < signature.parameters.length ? getTypeOfSymbol(signature.parameters[pos]) : anyType; - } - return signature.hasRestParameter ? getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]) : anyArrayType; + return signature.hasRestParameter ? + pos < signature.parameters.length - 1 ? getTypeOfSymbol(signature.parameters[pos]) : getRestTypeOfSignature(signature) : + pos < signature.parameters.length ? getTypeOfSymbol(signature.parameters[pos]) : anyType; } function assignContextualParameterTypes(signature, context, mapper) { var len = signature.parameters.length - (signature.hasRestParameter ? 1 : 0); @@ -18904,16 +14237,14 @@ var ts; } function isReferenceOrErrorExpression(n) { switch (n.kind) { - case 65: - { - var symbol = findSymbol(n); - return !symbol || symbol === unknownSymbol || symbol === argumentsSymbol || (symbol.flags & 3) !== 0; - } - case 155: - { - var symbol = findSymbol(n); - return !symbol || symbol === unknownSymbol || (symbol.flags & ~8) !== 0; - } + case 65: { + var symbol = findSymbol(n); + return !symbol || symbol === unknownSymbol || symbol === argumentsSymbol || (symbol.flags & 3) !== 0; + } + case 155: { + var symbol = findSymbol(n); + return !symbol || symbol === unknownSymbol || (symbol.flags & ~8) !== 0; + } case 156: return true; case 161: @@ -18925,22 +14256,20 @@ var ts; function isConstVariableReference(n) { switch (n.kind) { case 65: - case 155: - { - var symbol = findSymbol(n); - return symbol && (symbol.flags & 3) !== 0 && (getDeclarationFlagsFromSymbol(symbol) & 8192) !== 0; - } - case 156: - { - var index = n.argumentExpression; - var symbol = findSymbol(n.expression); - if (symbol && index && index.kind === 8) { - var name_7 = index.text; - var prop = getPropertyOfType(getTypeOfSymbol(symbol), name_7); - return prop && (prop.flags & 3) !== 0 && (getDeclarationFlagsFromSymbol(prop) & 8192) !== 0; - } - return false; + case 155: { + var symbol = findSymbol(n); + return symbol && (symbol.flags & 3) !== 0 && (getDeclarationFlagsFromSymbol(symbol) & 8192) !== 0; + } + case 156: { + var index = n.argumentExpression; + var symbol = findSymbol(n.expression); + if (symbol && index && index.kind === 8) { + var name_7 = index.text; + var prop = getPropertyOfType(getTypeOfSymbol(symbol), name_7); + return prop && (prop.flags & 3) !== 0 && (getDeclarationFlagsFromSymbol(prop) & 8192) !== 0; } + return false; + } case 161: return isConstVariableReference(n.expression); default: @@ -19068,7 +14397,10 @@ var ts; var p = properties[_i]; if (p.kind === 224 || p.kind === 225) { var name_8 = p.name; - var type = sourceType.flags & 1 ? sourceType : getTypeOfPropertyOfType(sourceType, name_8.text) || isNumericLiteralName(name_8.text) && getIndexTypeOfType(sourceType, 1) || getIndexTypeOfType(sourceType, 0); + var type = sourceType.flags & 1 ? sourceType : + getTypeOfPropertyOfType(sourceType, name_8.text) || + isNumericLiteralName(name_8.text) && getIndexTypeOfType(sourceType, 1) || + getIndexTypeOfType(sourceType, 0); if (type) { checkDestructuringAssignment(p.initializer || name_8, type); } @@ -19083,17 +14415,17 @@ var ts; return sourceType; } function checkArrayLiteralAssignment(node, sourceType, contextualMapper) { - if (!isArrayLikeType(sourceType)) { - error(node, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(sourceType)); - return sourceType; - } + var elementType = checkIteratedTypeOrElementType(sourceType, node, false); var elements = node.elements; for (var i = 0; i < elements.length; i++) { var e = elements[i]; if (e.kind !== 175) { if (e.kind !== 173) { var propName = "" + i; - var type = sourceType.flags & 1 ? sourceType : isTupleLikeType(sourceType) ? getTypeOfPropertyOfType(sourceType, propName) : getIndexTypeOfType(sourceType, 1); + var type = sourceType.flags & 1 ? sourceType : + isTupleLikeType(sourceType) + ? getTypeOfPropertyOfType(sourceType, propName) + : elementType; if (type) { checkDestructuringAssignment(e, type, contextualMapper); } @@ -19108,7 +14440,7 @@ var ts; } else { if (i === elements.length - 1) { - checkReferenceAssignment(e.expression, sourceType, contextualMapper); + checkReferenceAssignment(e.expression, createArrayType(elementType), contextualMapper); } else { error(e, ts.Diagnostics.A_rest_element_must_be_last_in_an_array_destructuring_pattern); @@ -19174,7 +14506,9 @@ var ts; if (rightType.flags & (32 | 64)) rightType = leftType; var suggestedOperator; - if ((leftType.flags & 8) && (rightType.flags & 8) && (suggestedOperator = getSuggestedBooleanOperator(node.operatorToken.kind)) !== undefined) { + if ((leftType.flags & 8) && + (rightType.flags & 8) && + (suggestedOperator = getSuggestedBooleanOperator(node.operatorToken.kind)) !== undefined) { error(node, ts.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, ts.tokenToString(node.operatorToken.kind), ts.tokenToString(suggestedOperator)); } else { @@ -19236,10 +14570,7 @@ var ts; case 48: return rightType; case 49: - return getUnionType([ - leftType, - rightType - ]); + return getUnionType([leftType, rightType]); case 53: checkAssignmentOperator(rightType); return rightType; @@ -19247,7 +14578,9 @@ var ts; return rightType; } function checkForDisallowedESSymbolOperand(operator) { - var offendingSymbolOperand = someConstituentTypeHasKind(leftType, 1048576) ? node.left : someConstituentTypeHasKind(rightType, 1048576) ? node.right : undefined; + var offendingSymbolOperand = someConstituentTypeHasKind(leftType, 1048576) ? node.left : + someConstituentTypeHasKind(rightType, 1048576) ? node.right : + undefined; if (offendingSymbolOperand) { error(offendingSymbolOperand, ts.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, ts.tokenToString(operator)); return false; @@ -19293,10 +14626,7 @@ var ts; checkExpression(node.condition); var type1 = checkExpression(node.whenTrue, contextualMapper); var type2 = checkExpression(node.whenFalse, contextualMapper); - return getUnionType([ - type1, - type2 - ]); + return getUnionType([type1, type2]); } function checkTemplateExpression(node) { ts.forEach(node.templateSpans, function (templateSpan) { @@ -19360,7 +14690,9 @@ var ts; type = instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, contextualMapper); } if (isConstEnumObjectType(type)) { - var ok = (node.parent.kind === 155 && node.parent.expression === node) || (node.parent.kind === 156 && node.parent.expression === node) || ((node.kind === 65 || node.kind === 126) && isInRightSideOfImportOrExportAssignment(node)); + var ok = (node.parent.kind === 155 && node.parent.expression === node) || + (node.parent.kind === 156 && node.parent.expression === node) || + ((node.kind === 65 || node.kind === 126) && isInRightSideOfImportOrExportAssignment(node)); if (!ok) { error(node, ts.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment); } @@ -19478,7 +14810,9 @@ var ts; if (node.kind === 140) { checkGrammarIndexSignature(node); } - else if (node.kind === 142 || node.kind === 200 || node.kind === 143 || node.kind === 138 || node.kind === 135 || node.kind === 139) { + else if (node.kind === 142 || node.kind === 200 || node.kind === 143 || + node.kind === 138 || node.kind === 135 || + node.kind === 139) { checkGrammarFunctionLikeDeclaration(node); } checkTypeParameters(node.typeParameters); @@ -19572,10 +14906,8 @@ var ts; case 162: case 200: case 163: - case 154: - return false; - default: - return ts.forEachChild(n, containsSuperCall); + case 154: return false; + default: return ts.forEachChild(n, containsSuperCall); } } function markThisReferencesAsErrors(n) { @@ -19587,13 +14919,14 @@ var ts; } } function isInstancePropertyWithInitializer(n) { - return n.kind === 132 && !(n.flags & 128) && !!n.initializer; + return n.kind === 132 && + !(n.flags & 128) && + !!n.initializer; } if (ts.getClassExtendsHeritageClauseElement(node.parent)) { if (containsSuperCall(node.body)) { - var superCallShouldBeFirst = ts.forEach(node.parent.members, isInstancePropertyWithInitializer) || ts.forEach(node.parameters, function (p) { - return p.flags & (16 | 32 | 64); - }); + var superCallShouldBeFirst = ts.forEach(node.parent.members, isInstancePropertyWithInitializer) || + ts.forEach(node.parameters, function (p) { return p.flags & (16 | 32 | 64); }); if (superCallShouldBeFirst) { var statements = node.body.statements; if (!statements.length || statements[0].kind !== 182 || !isSuperCallExpression(statements[0].expression)) { @@ -19925,16 +15258,16 @@ var ts; case 202: return 2097152; case 205: - return d.name.kind === 8 || ts.getModuleInstanceState(d) !== 0 ? 4194304 | 1048576 : 4194304; + return d.name.kind === 8 || ts.getModuleInstanceState(d) !== 0 + ? 4194304 | 1048576 + : 4194304; case 201: case 204: return 2097152 | 1048576; case 208: var result = 0; var target = resolveAlias(getSymbolOfNode(d)); - ts.forEach(target.declarations, function (d) { - result |= getDeclarationSpaces(d); - }); + ts.forEach(target.declarations, function (d) { result |= getDeclarationSpaces(d); }); return result; default: return 1048576; @@ -19948,9 +15281,7 @@ var ts; case 201: var classSymbol = getSymbolOfNode(node.parent); var classConstructorType = getTypeOfSymbol(classSymbol); - var classDecoratorType = instantiateSingleCallFunctionType(globalClassDecoratorType, [ - classConstructorType - ]); + var classDecoratorType = instantiateSingleCallFunctionType(globalClassDecoratorType, [classConstructorType]); checkTypeAssignableTo(exprType, classDecoratorType, node); break; case 132: @@ -19960,9 +15291,7 @@ var ts; case 136: case 137: var methodType = getTypeOfNode(node.parent); - var methodDecoratorType = instantiateSingleCallFunctionType(globalMethodDecoratorType, [ - methodType - ]); + var methodDecoratorType = instantiateSingleCallFunctionType(globalMethodDecoratorType, [methodType]); checkTypeAssignableTo(exprType, methodDecoratorType, node); break; case 129: @@ -19970,27 +15299,80 @@ var ts; break; } } + function checkTypeNodeAsExpression(node) { + if (node && node.kind === 141) { + var type = getTypeFromTypeNodeOrHeritageClauseElement(node); + var shouldCheckIfUnknownType = type === unknownType && compilerOptions.separateCompilation; + if (!type || (!shouldCheckIfUnknownType && type.flags & (1048703 | 132 | 258))) { + return; + } + if (shouldCheckIfUnknownType || type.symbol.valueDeclaration) { + checkExpressionOrQualifiedName(node.typeName); + } + } + } + function checkTypeAnnotationAsExpression(node) { + switch (node.kind) { + case 132: + checkTypeNodeAsExpression(node.type); + break; + case 129: + checkTypeNodeAsExpression(node.type); + break; + case 134: + checkTypeNodeAsExpression(node.type); + break; + case 136: + checkTypeNodeAsExpression(node.type); + break; + case 137: + checkTypeNodeAsExpression(getSetAccessorTypeAnnotationNode(node)); + break; + } + } + function checkParameterTypeAnnotationsAsExpressions(node) { + for (var _i = 0, _a = node.parameters; _i < _a.length; _i++) { + var parameter = _a[_i]; + checkTypeAnnotationAsExpression(parameter); + } + } function checkDecorators(node) { if (!node.decorators) { return; } - switch (node.kind) { - case 201: - case 134: - case 136: - case 137: - case 132: - case 129: - emitDecorate = true; - break; - default: - return; + if (!ts.nodeCanBeDecorated(node)) { + return; + } + if (compilerOptions.emitDecoratorMetadata) { + switch (node.kind) { + case 201: + var constructor = ts.getFirstConstructorWithBody(node); + if (constructor) { + checkParameterTypeAnnotationsAsExpressions(constructor); + } + break; + case 134: + checkParameterTypeAnnotationsAsExpressions(node); + case 137: + case 136: + case 132: + case 129: + checkTypeAnnotationAsExpression(node); + break; + } + } + emitDecorate = true; + if (node.kind === 129) { + emitParam = true; } ts.forEach(node.decorators, checkDecorator); } function checkFunctionDeclaration(node) { if (produceDiagnostics) { - checkFunctionLikeDeclaration(node) || checkGrammarDisallowedModifiersInBlockOrObjectLiteralExpression(node) || checkGrammarFunctionName(node.name) || checkGrammarForGenerator(node); + checkFunctionLikeDeclaration(node) || + checkGrammarDisallowedModifiersInBlockOrObjectLiteralExpression(node) || + checkGrammarFunctionName(node.name) || + checkGrammarForGenerator(node); checkCollisionWithCapturedSuperVariable(node, node.name); checkCollisionWithCapturedThisVariable(node, node.name); checkCollisionWithRequireExportsInGeneratedCode(node, node.name); @@ -20046,7 +15428,12 @@ var ts; if (!(identifier && identifier.text === name)) { return false; } - if (node.kind === 132 || node.kind === 131 || node.kind === 134 || node.kind === 133 || node.kind === 136 || node.kind === 137) { + if (node.kind === 132 || + node.kind === 131 || + node.kind === 134 || + node.kind === 133 || + node.kind === 136 || + node.kind === 137) { return false; } if (ts.isInAmbientContext(node)) { @@ -20122,11 +15509,19 @@ var ts; var symbol = getSymbolOfNode(node); if (symbol.flags & 1) { var localDeclarationSymbol = resolveName(node, node.name.text, 3, undefined, undefined); - if (localDeclarationSymbol && localDeclarationSymbol !== symbol && localDeclarationSymbol.flags & 2) { + if (localDeclarationSymbol && + localDeclarationSymbol !== symbol && + localDeclarationSymbol.flags & 2) { if (getDeclarationFlagsFromSymbol(localDeclarationSymbol) & 12288) { var varDeclList = ts.getAncestor(localDeclarationSymbol.valueDeclaration, 199); - var container = varDeclList.parent.kind === 180 && varDeclList.parent.parent ? varDeclList.parent.parent : undefined; - var namesShareScope = container && (container.kind === 179 && ts.isFunctionLike(container.parent) || container.kind === 206 || container.kind === 205 || container.kind === 227); + var container = varDeclList.parent.kind === 180 && varDeclList.parent.parent + ? varDeclList.parent.parent + : undefined; + var namesShareScope = container && + (container.kind === 179 && ts.isFunctionLike(container.parent) || + container.kind === 206 || + container.kind === 205 || + container.kind === 227); if (!namesShareScope) { var name_9 = symbolToString(localDeclarationSymbol); error(node, ts.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name_9, name_9); @@ -20343,19 +15738,29 @@ var ts; } function checkRightHandSideOfForOf(rhsExpression) { var expressionType = getTypeOfExpression(rhsExpression); - return languageVersion >= 2 ? checkIteratedType(expressionType, rhsExpression) : checkElementTypeOfArrayOrString(expressionType, rhsExpression); + return checkIteratedTypeOrElementType(expressionType, rhsExpression, true); } - function checkIteratedType(iterable, expressionForError) { + function checkIteratedTypeOrElementType(inputType, errorNode, allowStringInput) { + if (languageVersion >= 2) { + return checkIteratedType(inputType, errorNode) || anyType; + } + if (allowStringInput) { + return checkElementTypeOfArrayOrString(inputType, errorNode); + } + if (isArrayLikeType(inputType)) { + return getIndexTypeOfType(inputType, 1); + } + error(errorNode, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(inputType)); + return unknownType; + } + function checkIteratedType(iterable, errorNode) { ts.Debug.assert(languageVersion >= 2); - var iteratedType = getIteratedType(iterable, expressionForError); - if (expressionForError && iteratedType) { - var completeIterableType = globalIterableType !== emptyObjectType ? createTypeReference(globalIterableType, [ - iteratedType - ]) : emptyObjectType; - checkTypeAssignableTo(iterable, completeIterableType, expressionForError); + var iteratedType = getIteratedType(iterable, errorNode); + if (errorNode && iteratedType) { + checkTypeAssignableTo(iterable, createIterableType(iteratedType), errorNode); } return iteratedType; - function getIteratedType(iterable, expressionForError) { + function getIteratedType(iterable, errorNode) { // We want to treat type as an iterable, and get the type it is an iterable of. The iterable // must have the following structure (annotated with the names of the variables below): // @@ -20384,14 +15789,17 @@ var ts; if (allConstituentTypesHaveKind(iterable, 1)) { return undefined; } + if ((iterable.flags & 4096) && iterable.target === globalIterableType) { + return iterable.typeArguments[0]; + } var iteratorFunction = getTypeOfPropertyOfType(iterable, ts.getPropertyNameForKnownSymbolName("iterator")); if (iteratorFunction && allConstituentTypesHaveKind(iteratorFunction, 1)) { return undefined; } var iteratorFunctionSignatures = iteratorFunction ? getSignaturesOfType(iteratorFunction, 0) : emptyArray; if (iteratorFunctionSignatures.length === 0) { - if (expressionForError) { - error(expressionForError, ts.Diagnostics.The_right_hand_side_of_a_for_of_statement_must_have_a_Symbol_iterator_method_that_returns_an_iterator); + if (errorNode) { + error(errorNode, ts.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator); } return undefined; } @@ -20405,8 +15813,8 @@ var ts; } var iteratorNextFunctionSignatures = iteratorNextFunction ? getSignaturesOfType(iteratorNextFunction, 0) : emptyArray; if (iteratorNextFunctionSignatures.length === 0) { - if (expressionForError) { - error(expressionForError, ts.Diagnostics.The_iterator_returned_by_the_right_hand_side_of_a_for_of_statement_must_have_a_next_method); + if (errorNode) { + error(errorNode, ts.Diagnostics.An_iterator_must_have_a_next_method); } return undefined; } @@ -20416,22 +15824,22 @@ var ts; } var iteratorNextValue = getTypeOfPropertyOfType(iteratorNextResult, "value"); if (!iteratorNextValue) { - if (expressionForError) { - error(expressionForError, ts.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property); + if (errorNode) { + error(errorNode, ts.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property); } return undefined; } return iteratorNextValue; } } - function checkElementTypeOfArrayOrString(arrayOrStringType, expressionForError) { + function checkElementTypeOfArrayOrString(arrayOrStringType, errorNode) { ts.Debug.assert(languageVersion < 2); var arrayType = removeTypesFromUnionType(arrayOrStringType, 258, true, true); var hasStringConstituent = arrayOrStringType !== arrayType; var reportedError = false; if (hasStringConstituent) { if (languageVersion < 1) { - error(expressionForError, ts.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); + error(errorNode, ts.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); reportedError = true; } if (arrayType === emptyObjectType) { @@ -20440,8 +15848,10 @@ var ts; } if (!isArrayLikeType(arrayType)) { if (!reportedError) { - var diagnostic = hasStringConstituent ? ts.Diagnostics.Type_0_is_not_an_array_type : ts.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type; - error(expressionForError, diagnostic, typeToString(arrayType)); + var diagnostic = hasStringConstituent + ? ts.Diagnostics.Type_0_is_not_an_array_type + : ts.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type; + error(errorNode, diagnostic, typeToString(arrayType)); } return hasStringConstituent ? stringType : unknownType; } @@ -20450,10 +15860,7 @@ var ts; if (arrayElementType.flags & 258) { return stringType; } - return getUnionType([ - arrayElementType, - stringType - ]); + return getUnionType([arrayElementType, stringType]); } return arrayElementType; } @@ -20615,9 +16022,7 @@ var ts; if (stringIndexType && numberIndexType) { errorNode = declaredNumberIndexer || declaredStringIndexer; if (!errorNode && (type.flags & 2048)) { - var someBaseTypeHasBothIndexers = ts.forEach(type.baseTypes, function (base) { - return getIndexTypeOfType(base, 0) && getIndexTypeOfType(base, 1); - }); + var someBaseTypeHasBothIndexers = ts.forEach(type.baseTypes, function (base) { return getIndexTypeOfType(base, 0) && getIndexTypeOfType(base, 1); }); errorNode = someBaseTypeHasBothIndexers ? undefined : type.symbol.declarations[0]; } } @@ -20639,13 +16044,13 @@ var ts; errorNode = indexDeclaration; } else if (containingType.flags & 2048) { - var someBaseClassHasBothPropertyAndIndexer = ts.forEach(containingType.baseTypes, function (base) { - return getPropertyOfObjectType(base, prop.name) && getIndexTypeOfType(base, indexKind); - }); + var someBaseClassHasBothPropertyAndIndexer = ts.forEach(containingType.baseTypes, function (base) { return getPropertyOfObjectType(base, prop.name) && getIndexTypeOfType(base, indexKind); }); errorNode = someBaseClassHasBothPropertyAndIndexer ? undefined : containingType.symbol.declarations[0]; } if (errorNode && !isTypeAssignableTo(propertyType, indexType)) { - var errorMessage = indexKind === 0 ? ts.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2 : ts.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2; + var errorMessage = indexKind === 0 + ? ts.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2 + : ts.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2; error(errorNode, errorMessage, symbolToString(prop), typeToString(propertyType), typeToString(indexType)); } } @@ -20685,6 +16090,9 @@ var ts; if (node.parent.kind !== 206 && node.parent.kind !== 227) { grammarErrorOnNode(node, ts.Diagnostics.class_declarations_are_only_supported_directly_inside_a_module_or_as_a_top_level_declaration); } + if (!node.name && !(node.flags & 256)) { + grammarErrorOnFirstToken(node, ts.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name); + } checkGrammarClassDeclarationHeritageClauses(node); checkDecorators(node); if (node.name) { @@ -20840,12 +16248,7 @@ var ts; return true; } var seen = {}; - ts.forEach(type.declaredProperties, function (p) { - seen[p.name] = { - prop: p, - containingType: type - }; - }); + ts.forEach(type.declaredProperties, function (p) { seen[p.name] = { prop: p, containingType: type }; }); var ok = true; for (var _i = 0, _a = type.baseTypes; _i < _a.length; _i++) { var base = _a[_i]; @@ -20853,10 +16256,7 @@ var ts; for (var _b = 0; _b < properties.length; _b++) { var prop = properties[_b]; if (!ts.hasProperty(seen, prop.name)) { - seen[prop.name] = { - prop: prop, - containingType: base - }; + seen[prop.name] = { prop: prop, containingType: base }; } else { var existing = seen[prop.name]; @@ -20964,12 +16364,9 @@ var ts; return undefined; } switch (e.operator) { - case 33: - return value; - case 34: - return -value; - case 47: - return ~value; + case 33: return value; + case 34: return -value; + case 47: return ~value; } return undefined; case 169: @@ -20982,28 +16379,17 @@ var ts; return undefined; } switch (e.operatorToken.kind) { - case 44: - return left | right; - case 43: - return left & right; - case 41: - return left >> right; - case 42: - return left >>> right; - case 40: - return left << right; - case 45: - return left ^ right; - case 35: - return left * right; - case 36: - return left / right; - case 33: - return left + right; - case 34: - return left - right; - case 37: - return left % right; + case 44: return left | right; + case 43: return left & right; + case 41: return left >> right; + case 42: return left >>> right; + case 40: return left << right; + case 45: return left ^ right; + case 35: return left * right; + case 36: return left / right; + case 33: return left + right; + case 34: return left - right; + case 37: return left % right; } return undefined; case 7: @@ -21024,7 +16410,8 @@ var ts; else { var expression; if (e.kind === 156) { - if (e.argumentExpression === undefined || e.argumentExpression.kind !== 8) { + if (e.argumentExpression === undefined || + e.argumentExpression.kind !== 8) { return undefined; } expression = e.expression; @@ -21136,7 +16523,10 @@ var ts; checkCollisionWithRequireExportsInGeneratedCode(node, node.name); checkExportsOnMergedDeclarations(node); var symbol = getSymbolOfNode(node); - if (symbol.flags & 512 && symbol.declarations.length > 1 && !ts.isInAmbientContext(node) && ts.isInstantiatedModule(node, compilerOptions.preserveConstEnums || compilerOptions.separateCompilation)) { + if (symbol.flags & 512 + && symbol.declarations.length > 1 + && !ts.isInAmbientContext(node) + && ts.isInstantiatedModule(node, compilerOptions.preserveConstEnums || compilerOptions.separateCompilation)) { var classOrFunc = getFirstNonAmbientClassOrFunctionDeclaration(symbol); if (classOrFunc) { if (ts.getSourceFileOfNode(node) !== ts.getSourceFileOfNode(classOrFunc)) { @@ -21181,7 +16571,9 @@ var ts; } var inAmbientExternalModule = node.parent.kind === 206 && node.parent.parent.name.kind === 8; if (node.parent.kind !== 227 && !inAmbientExternalModule) { - error(moduleName, node.kind === 215 ? ts.Diagnostics.Export_declarations_are_not_permitted_in_an_internal_module : ts.Diagnostics.Import_declarations_in_an_internal_module_cannot_reference_an_external_module); + error(moduleName, node.kind === 215 ? + ts.Diagnostics.Export_declarations_are_not_permitted_in_an_internal_module : + ts.Diagnostics.Import_declarations_in_an_internal_module_cannot_reference_an_external_module); return false; } if (inAmbientExternalModule && isExternalModuleNameRelative(moduleName.text)) { @@ -21194,9 +16586,13 @@ var ts; var symbol = getSymbolOfNode(node); var target = resolveAlias(symbol); if (target !== unknownSymbol) { - var excludedMeanings = (symbol.flags & 107455 ? 107455 : 0) | (symbol.flags & 793056 ? 793056 : 0) | (symbol.flags & 1536 ? 1536 : 0); + var excludedMeanings = (symbol.flags & 107455 ? 107455 : 0) | + (symbol.flags & 793056 ? 793056 : 0) | + (symbol.flags & 1536 ? 1536 : 0); if (target.flags & excludedMeanings) { - var message = node.kind === 217 ? ts.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : ts.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; + var message = node.kind === 217 ? + ts.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : + ts.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; error(node, message, symbolToString(symbol)); } } @@ -21290,19 +16686,11 @@ var ts; if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499)) { grammarErrorOnFirstToken(node, ts.Diagnostics.An_export_assignment_cannot_have_modifiers); } - if (node.expression) { - if (node.expression.kind === 65) { - markExportAsReferenced(node); - } - else { - checkExpressionCached(node.expression); - } + if (node.expression.kind === 65) { + markExportAsReferenced(node); } - if (node.type) { - checkSourceElement(node.type); - if (!ts.isInAmbientContext(node)) { - grammarErrorOnFirstToken(node.type, ts.Diagnostics.A_type_annotation_on_an_export_statement_is_only_allowed_in_an_ambient_external_module_declaration); - } + else { + checkExpressionCached(node.expression); } checkExternalModuleExports(container); if (node.isExportEquals && languageVersion >= 2) { @@ -21553,6 +16941,9 @@ var ts; if (emitDecorate) { links.flags |= 512; } + if (emitParam) { + links.flags |= 1024; + } links.flags |= 1; } } @@ -21679,7 +17070,9 @@ var ts; return symbolsToArray(symbols); } function isTypeDeclarationName(name) { - return name.kind == 65 && isTypeDeclaration(name.parent) && name.parent.name === name; + return name.kind == 65 && + isTypeDeclaration(name.parent) && + name.parent.name === name; } function isTypeDeclaration(node) { switch (node.kind) { @@ -21732,23 +17125,23 @@ var ts; case 126: case 155: ts.Debug.assert(node.kind === 65 || node.kind === 126 || node.kind === 155, "'node' was expected to be a qualified name, identifier or property access in 'isTypeNode'."); - var parent_5 = node.parent; - if (parent_5.kind === 144) { + var parent_6 = node.parent; + if (parent_6.kind === 144) { return false; } - if (141 <= parent_5.kind && parent_5.kind <= 149) { + if (141 <= parent_6.kind && parent_6.kind <= 149) { return true; } - switch (parent_5.kind) { + switch (parent_6.kind) { case 177: return true; case 128: - return node === parent_5.constraint; + return node === parent_6.constraint; case 132: case 131: case 129: case 198: - return node === parent_5.type; + return node === parent_6.type; case 200: case 162: case 163: @@ -21757,16 +17150,16 @@ var ts; case 133: case 136: case 137: - return node === parent_5.type; + return node === parent_6.type; case 138: case 139: case 140: - return node === parent_5.type; + return node === parent_6.type; case 160: - return node === parent_5.type; + return node === parent_6.type; case 157: case 158: - return parent_5.typeArguments && ts.indexOf(parent_5.typeArguments, node) >= 0; + return parent_6.typeArguments && ts.indexOf(parent_6.typeArguments, node) >= 0; case 159: return false; } @@ -21846,7 +17239,9 @@ var ts; return getSymbolOfNode(node.parent); } if (node.kind === 65 && isInRightSideOfImportOrExportAssignment(node)) { - return node.parent.kind === 214 ? getSymbolOfEntityNameOrPropertyAccessExpression(node) : getSymbolOfPartOfRightHandSideOfImportEquals(node); + return node.parent.kind === 214 + ? getSymbolOfEntityNameOrPropertyAccessExpression(node) + : getSymbolOfPartOfRightHandSideOfImportEquals(node); } switch (node.kind) { case 65: @@ -21865,7 +17260,10 @@ var ts; return undefined; case 8: var moduleName; - if ((ts.isExternalModuleImportEqualsDeclaration(node.parent.parent) && ts.getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node) || ((node.parent.kind === 209 || node.parent.kind === 215) && node.parent.moduleSpecifier === node)) { + if ((ts.isExternalModuleImportEqualsDeclaration(node.parent.parent) && + ts.getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node) || + ((node.parent.kind === 209 || node.parent.kind === 215) && + node.parent.moduleSpecifier === node)) { return resolveExternalModuleName(node, node); } case 7: @@ -21951,14 +17349,10 @@ var ts; else if (symbol.flags & 67108864) { var target = getSymbolLinks(symbol).target; if (target) { - return [ - target - ]; + return [target]; } } - return [ - symbol - ]; + return [symbol]; } function isExternalModuleSymbol(symbol) { return symbol.flags & 512 && symbol.declarations.length === 1 && symbol.declarations[0].kind === 227; @@ -22051,9 +17445,7 @@ var ts; } } if (checkChildren) { - return ts.forEachChild(node, function (node) { - return isReferencedAliasDeclaration(node, checkChildren); - }); + return ts.forEachChild(node, function (node) { return isReferencedAliasDeclaration(node, checkChildren); }); } return false; } @@ -22061,7 +17453,8 @@ var ts; if (ts.nodeIsPresent(node.body)) { var symbol = getSymbolOfNode(node); var signaturesOfSymbol = getSignaturesOfSymbol(symbol); - return signaturesOfSymbol.length > 1 || (signaturesOfSymbol.length === 1 && signaturesOfSymbol[0].declaration !== node); + return signaturesOfSymbol.length > 1 || + (signaturesOfSymbol.length === 1 && signaturesOfSymbol[0].declaration !== node); } return false; } @@ -22084,9 +17477,155 @@ var ts; } return undefined; } + function serializeEntityName(node, getGeneratedNameForNode, fallbackPath) { + if (node.kind === 65) { + var substitution = getExpressionNameSubstitution(node, getGeneratedNameForNode); + var text = substitution || node.text; + if (fallbackPath) { + fallbackPath.push(text); + } + else { + return text; + } + } + else { + var left = serializeEntityName(node.left, getGeneratedNameForNode, fallbackPath); + var right = serializeEntityName(node.right, getGeneratedNameForNode, fallbackPath); + if (!fallbackPath) { + return left + "." + right; + } + } + } + function serializeTypeReferenceNode(node, getGeneratedNameForNode) { + var type = getTypeFromTypeReference(node); + if (type.flags & 16) { + return "void 0"; + } + else if (type.flags & 8) { + return "Boolean"; + } + else if (type.flags & 132) { + return "Number"; + } + else if (type.flags & 258) { + return "String"; + } + else if (type.flags & 8192) { + return "Array"; + } + else if (type.flags & 1048576) { + return "Symbol"; + } + else if (type === unknownType) { + var fallbackPath = []; + serializeEntityName(node.typeName, getGeneratedNameForNode, fallbackPath); + return fallbackPath; + } + else if (type.symbol && type.symbol.valueDeclaration) { + return serializeEntityName(node.typeName, getGeneratedNameForNode); + } + else if (typeHasCallOrConstructSignatures(type)) { + return "Function"; + } + return "Object"; + } + function serializeTypeNode(node, getGeneratedNameForNode) { + if (node) { + switch (node.kind) { + case 99: + return "void 0"; + case 149: + return serializeTypeNode(node.type, getGeneratedNameForNode); + case 142: + case 143: + return "Function"; + case 146: + case 147: + return "Array"; + case 113: + return "Boolean"; + case 121: + case 8: + return "String"; + case 119: + return "Number"; + case 141: + return serializeTypeReferenceNode(node, getGeneratedNameForNode); + case 144: + case 145: + case 148: + case 112: + break; + default: + ts.Debug.fail("Cannot serialize unexpected type node."); + break; + } + } + return "Object"; + } + function serializeTypeOfNode(node, getGeneratedNameForNode) { + switch (node.kind) { + case 201: return "Function"; + case 132: return serializeTypeNode(node.type, getGeneratedNameForNode); + case 129: return serializeTypeNode(node.type, getGeneratedNameForNode); + case 136: return serializeTypeNode(node.type, getGeneratedNameForNode); + case 137: return serializeTypeNode(getSetAccessorTypeAnnotationNode(node), getGeneratedNameForNode); + } + if (ts.isFunctionLike(node)) { + return "Function"; + } + return "void 0"; + } + function serializeParameterTypesOfNode(node, getGeneratedNameForNode) { + if (node) { + var valueDeclaration; + if (node.kind === 201) { + valueDeclaration = ts.getFirstConstructorWithBody(node); + } + else if (ts.isFunctionLike(node) && ts.nodeIsPresent(node.body)) { + valueDeclaration = node; + } + if (valueDeclaration) { + var result; + var parameters = valueDeclaration.parameters; + var parameterCount = parameters.length; + if (parameterCount > 0) { + result = new Array(parameterCount); + for (var i = 0; i < parameterCount; i++) { + if (parameters[i].dotDotDotToken) { + var parameterType = parameters[i].type; + if (parameterType.kind === 146) { + parameterType = parameterType.elementType; + } + else if (parameterType.kind === 141 && parameterType.typeArguments && parameterType.typeArguments.length === 1) { + parameterType = parameterType.typeArguments[0]; + } + else { + parameterType = undefined; + } + result[i] = serializeTypeNode(parameterType, getGeneratedNameForNode); + } + else { + result[i] = serializeTypeOfNode(parameters[i], getGeneratedNameForNode); + } + } + return result; + } + } + } + return emptyArray; + } + function serializeReturnTypeOfNode(node, getGeneratedNameForNode) { + if (node && ts.isFunctionLike(node)) { + return serializeTypeNode(node.type, getGeneratedNameForNode); + } + return "void 0"; + } function writeTypeOfDeclaration(declaration, enclosingDeclaration, flags, writer) { var symbol = getSymbolOfNode(declaration); - var type = symbol && !(symbol.flags & (2048 | 131072)) ? getTypeOfSymbol(symbol) : unknownType; + var type = symbol && !(symbol.flags & (2048 | 131072)) + ? getTypeOfSymbol(symbol) + : unknownType; getSymbolDisplayBuilder().buildTypeDisplay(type, writer, enclosingDeclaration, flags); } function writeReturnTypeOfSignatureDeclaration(signatureDeclaration, enclosingDeclaration, flags, writer) { @@ -22107,8 +17646,12 @@ var ts; function getBlockScopedVariableId(n) { ts.Debug.assert(!ts.nodeIsSynthesized(n)); var isVariableDeclarationOrBindingElement = n.parent.kind === 152 || (n.parent.kind === 198 && n.parent.name === n); - var symbol = (isVariableDeclarationOrBindingElement ? getSymbolOfNode(n.parent) : undefined) || getNodeLinks(n).resolvedSymbol || resolveName(n, n.text, 107455 | 8388608, undefined, undefined); - var isLetOrConst = symbol && (symbol.flags & 2) && symbol.valueDeclaration.parent.kind !== 223; + var symbol = (isVariableDeclarationOrBindingElement ? getSymbolOfNode(n.parent) : undefined) || + getNodeLinks(n).resolvedSymbol || + resolveName(n, n.text, 107455 | 8388608, undefined, undefined); + var isLetOrConst = symbol && + (symbol.flags & 2) && + symbol.valueDeclaration.parent.kind !== 223; if (isLetOrConst) { getSymbolLinks(symbol); return symbol.id; @@ -22144,7 +17687,10 @@ var ts; getConstantValue: getConstantValue, resolvesToSomeValue: resolvesToSomeValue, collectLinkedAliases: collectLinkedAliases, - getBlockScopedVariableId: getBlockScopedVariableId + getBlockScopedVariableId: getBlockScopedVariableId, + serializeTypeOfNode: serializeTypeOfNode, + serializeParameterTypesOfNode: serializeParameterTypesOfNode, + serializeReturnTypeOfNode: serializeReturnTypeOfNode }; } function initializeTypeChecker() { @@ -22191,15 +17737,15 @@ var ts; return false; } if (!ts.nodeCanBeDecorated(node)) { - return grammarErrorOnNode(node, ts.Diagnostics.Decorators_are_not_valid_here); + return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_not_valid_here); } else if (languageVersion < 1) { - return grammarErrorOnNode(node, ts.Diagnostics.Decorators_are_only_available_when_targeting_ECMAScript_5_and_higher); + return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_only_available_when_targeting_ECMAScript_5_and_higher); } else if (node.kind === 136 || node.kind === 137) { var accessors = ts.getAllAccessorDeclarations(node.parent.members, node); if (accessors.firstAccessor.decorators && node === accessors.secondAccessor) { - return grammarErrorOnNode(node, ts.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); + return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); } } return false; @@ -22383,7 +17929,8 @@ var ts; } function checkGrammarFunctionLikeDeclaration(node) { var file = ts.getSourceFileOfNode(node); - return checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarTypeParameterList(node, node.typeParameters, file) || checkGrammarParameterList(node.parameters) || checkGrammarArrowFunction(node, file); + return checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarTypeParameterList(node, node.typeParameters, file) || + checkGrammarParameterList(node.parameters) || checkGrammarArrowFunction(node, file); } function checkGrammarArrowFunction(node, file) { if (node.kind === 163) { @@ -22445,7 +17992,8 @@ var ts; } } function checkGrammarTypeArguments(node, typeArguments) { - return checkGrammarForDisallowedTrailingComma(typeArguments) || checkGrammarForAtLeastOneTypeArgument(node, typeArguments); + return checkGrammarForDisallowedTrailingComma(typeArguments) || + checkGrammarForAtLeastOneTypeArgument(node, typeArguments); } function checkGrammarForOmittedArgument(node, arguments) { if (arguments) { @@ -22459,7 +18007,8 @@ var ts; } } function checkGrammarArguments(node, arguments) { - return checkGrammarForDisallowedTrailingComma(arguments) || checkGrammarForOmittedArgument(node, arguments); + return checkGrammarForDisallowedTrailingComma(arguments) || + checkGrammarForOmittedArgument(node, arguments); } function checkGrammarHeritageClause(node) { var types = node.types; @@ -22553,7 +18102,8 @@ var ts; for (var _i = 0, _a = node.properties; _i < _a.length; _i++) { var prop = _a[_i]; var name_11 = prop.name; - if (prop.kind === 175 || name_11.kind === 127) { + if (prop.kind === 175 || + name_11.kind === 127) { checkGrammarComputedPropertyName(name_11); continue; } @@ -22609,16 +18159,22 @@ var ts; var variableList = forInOrOfStatement.initializer; if (!checkGrammarVariableDeclarationList(variableList)) { if (variableList.declarations.length > 1) { - var diagnostic = forInOrOfStatement.kind === 187 ? ts.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : ts.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; + var diagnostic = forInOrOfStatement.kind === 187 + ? ts.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement + : ts.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; return grammarErrorOnFirstToken(variableList.declarations[1], diagnostic); } var firstDeclaration = variableList.declarations[0]; if (firstDeclaration.initializer) { - var diagnostic = forInOrOfStatement.kind === 187 ? ts.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : ts.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; + var diagnostic = forInOrOfStatement.kind === 187 + ? ts.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer + : ts.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; return grammarErrorOnNode(firstDeclaration.name, diagnostic); } if (firstDeclaration.type) { - var diagnostic = forInOrOfStatement.kind === 187 ? ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : ts.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; + var diagnostic = forInOrOfStatement.kind === 187 + ? ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation + : ts.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; return grammarErrorOnNode(firstDeclaration, diagnostic); } } @@ -22672,7 +18228,9 @@ var ts; } } function checkGrammarMethod(node) { - if (checkGrammarDisallowedModifiersInBlockOrObjectLiteralExpression(node) || checkGrammarFunctionLikeDeclaration(node) || checkGrammarForGenerator(node)) { + if (checkGrammarDisallowedModifiersInBlockOrObjectLiteralExpression(node) || + checkGrammarFunctionLikeDeclaration(node) || + checkGrammarForGenerator(node)) { return true; } if (node.parent.kind === 154) { @@ -22723,7 +18281,8 @@ var ts; switch (current.kind) { case 194: if (node.label && current.label.text === node.label.text) { - var isMisplacedContinueLabel = node.kind === 189 && !isIterationStatement(current.statement, true); + var isMisplacedContinueLabel = node.kind === 189 + && !isIterationStatement(current.statement, true); if (isMisplacedContinueLabel) { return grammarErrorOnNode(node, ts.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement); } @@ -22744,11 +18303,15 @@ var ts; current = current.parent; } if (node.label) { - var message = node.kind === 190 ? ts.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : ts.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; + var message = node.kind === 190 + ? ts.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement + : ts.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); } else { - var message = node.kind === 190 ? ts.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : ts.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; + var message = node.kind === 190 + ? ts.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement + : ts.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); } } @@ -22782,7 +18345,8 @@ var ts; } } var checkLetConstNames = languageVersion >= 2 && (ts.isLet(node) || ts.isConst(node)); - return (checkLetConstNames && checkGrammarNameInLetOrConstDeclarations(node.name)) || checkGrammarEvalOrArgumentsInStrictMode(node, node.name); + return (checkLetConstNames && checkGrammarNameInLetOrConstDeclarations(node.name)) || + checkGrammarEvalOrArgumentsInStrictMode(node, node.name); } function checkGrammarNameInLetOrConstDeclarations(name) { if (name.kind === 65) { @@ -22794,7 +18358,9 @@ var ts; var elements = name.elements; for (var _i = 0; _i < elements.length; _i++) { var element = elements[_i]; - checkGrammarNameInLetOrConstDeclarations(element.name); + if (element.kind !== 175) { + checkGrammarNameInLetOrConstDeclarations(element.name); + } } } } @@ -22899,7 +18465,12 @@ var ts; var identifier = name; if (contextNode && (contextNode.parserContextFlags & 1) && ts.isEvalOrArgumentsIdentifier(identifier)) { var nameText = ts.declarationNameToString(identifier); - return grammarErrorOnNode(identifier, ts.Diagnostics.Invalid_use_of_0_in_strict_mode, nameText); + if (ts.getAncestor(name, 201) || ts.getAncestor(name, 174)) { + return grammarErrorOnNode(identifier, ts.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode, nameText); + } + else { + return grammarErrorOnNode(identifier, ts.Diagnostics.Invalid_use_of_0_in_strict_mode, nameText); + } } } } @@ -22915,7 +18486,8 @@ var ts; } function checkGrammarProperty(node) { if (node.parent.kind === 201) { - if (checkGrammarForInvalidQuestionMark(node, node.questionToken, ts.Diagnostics.A_class_member_cannot_be_declared_optional) || checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol)) { + if (checkGrammarForInvalidQuestionMark(node, node.questionToken, ts.Diagnostics.A_class_member_cannot_be_declared_optional) || + checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol)) { return true; } } @@ -22934,7 +18506,13 @@ var ts; } } function checkGrammarTopLevelElementForRequiredDeclareModifier(node) { - if (node.kind === 202 || node.kind === 209 || node.kind === 208 || node.kind === 215 || node.kind === 214 || (node.flags & 2) || (node.flags & (1 | 256))) { + if (node.kind === 202 || + node.kind === 209 || + node.kind === 208 || + node.kind === 215 || + node.kind === 214 || + (node.flags & 2) || + (node.flags & (1 | 256))) { return false; } return grammarErrorOnFirstToken(node, ts.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file); @@ -23017,8 +18595,7 @@ var ts; var enclosingDeclaration; var currentSourceFile; var reportedDeclarationError = false; - var emitJsDocComments = compilerOptions.removeComments ? function (declaration) { - } : writeJsDocComments; + var emitJsDocComments = compilerOptions.removeComments ? function (declaration) { } : writeJsDocComments; var emit = compilerOptions.stripInternal ? stripInternal : emitNode; var moduleElementDeclarationEmitInfo = []; var asynchronousSubModuleDeclarationEmitInfo; @@ -23028,7 +18605,9 @@ var ts; var addedGlobalFileReference = false; ts.forEach(root.referencedFiles, function (fileReference) { var referencedFile = ts.tryResolveScriptReference(host, root, fileReference); - if (referencedFile && ((referencedFile.flags & 2048) || ts.shouldEmitToOwnFile(referencedFile, compilerOptions) || !addedGlobalFileReference)) { + if (referencedFile && ((referencedFile.flags & 2048) || + ts.shouldEmitToOwnFile(referencedFile, compilerOptions) || + !addedGlobalFileReference)) { writeReferencePath(referencedFile); if (!ts.isExternalModuleOrDeclarationFile(referencedFile)) { addedGlobalFileReference = true; @@ -23058,7 +18637,8 @@ var ts; if (!compilerOptions.noResolve) { ts.forEach(sourceFile.referencedFiles, function (fileReference) { var referencedFile = ts.tryResolveScriptReference(host, sourceFile, fileReference); - if (referencedFile && (ts.isExternalModuleOrDeclarationFile(referencedFile) && !ts.contains(emittedReferencedFiles, referencedFile))) { + if (referencedFile && (ts.isExternalModuleOrDeclarationFile(referencedFile) && + !ts.contains(emittedReferencedFiles, referencedFile))) { writeReferencePath(referencedFile); emittedReferencedFiles.push(referencedFile); } @@ -23122,13 +18702,9 @@ var ts; else { nodeToCheck = declaration; } - var moduleElementEmitInfo = ts.forEach(moduleElementDeclarationEmitInfo, function (declEmitInfo) { - return declEmitInfo.node === nodeToCheck ? declEmitInfo : undefined; - }); + var moduleElementEmitInfo = ts.forEach(moduleElementDeclarationEmitInfo, function (declEmitInfo) { return declEmitInfo.node === nodeToCheck ? declEmitInfo : undefined; }); if (!moduleElementEmitInfo && asynchronousSubModuleDeclarationEmitInfo) { - moduleElementEmitInfo = ts.forEach(asynchronousSubModuleDeclarationEmitInfo, function (declEmitInfo) { - return declEmitInfo.node === nodeToCheck ? declEmitInfo : undefined; - }); + moduleElementEmitInfo = ts.forEach(asynchronousSubModuleDeclarationEmitInfo, function (declEmitInfo) { return declEmitInfo.node === nodeToCheck ? declEmitInfo : undefined; }); } if (moduleElementEmitInfo) { if (moduleElementEmitInfo.node.kind === 209) { @@ -23336,20 +18912,35 @@ var ts; enclosingDeclaration = node; emitLines(node.statements); } + function getExportDefaultTempVariableName() { + var baseName = "_default"; + if (!ts.hasProperty(currentSourceFile.identifiers, baseName)) { + return baseName; + } + var count = 0; + while (true) { + var name_12 = baseName + "_" + (++count); + if (!ts.hasProperty(currentSourceFile.identifiers, name_12)) { + return name_12; + } + } + } function emitExportAssignment(node) { - write(node.isExportEquals ? "export = " : "export default "); if (node.expression.kind === 65) { + write(node.isExportEquals ? "export = " : "export default "); writeTextOfNode(currentSourceFile, node.expression); } else { + var tempVarName = getExportDefaultTempVariableName(); + write("declare var "); + write(tempVarName); write(": "); - if (node.type) { - emitType(node.type); - } - else { - writer.getSymbolAccessibilityDiagnostic = getDefaultExportAccessibilityDiagnostic; - resolver.writeTypeOfExpression(node.expression, enclosingDeclaration, 2, writer); - } + writer.getSymbolAccessibilityDiagnostic = getDefaultExportAccessibilityDiagnostic; + resolver.writeTypeOfExpression(node.expression, enclosingDeclaration, 2, writer); + write(";"); + writeLine(); + write(node.isExportEquals ? "export = " : "export default "); + write(tempVarName); } write(";"); writeLine(); @@ -23371,7 +18962,8 @@ var ts; if (isModuleElementVisible) { writeModuleElement(node); } - else if (node.kind === 208 || (node.parent.kind === 227 && ts.isExternalModule(currentSourceFile))) { + else if (node.kind === 208 || + (node.parent.kind === 227 && ts.isExternalModule(currentSourceFile))) { var isVisible; if (asynchronousSubModuleDeclarationEmitInfo && node.parent.kind !== 227) { asynchronousSubModuleDeclarationEmitInfo.push({ @@ -23385,7 +18977,8 @@ var ts; if (node.kind === 209) { var importDeclaration = node; if (importDeclaration.importClause) { - isVisible = (importDeclaration.importClause.name && resolver.isDeclarationVisible(importDeclaration.importClause)) || isVisibleNamedBinding(importDeclaration.importClause.namedBindings); + isVisible = (importDeclaration.importClause.name && resolver.isDeclarationVisible(importDeclaration.importClause)) || + isVisibleNamedBinding(importDeclaration.importClause.namedBindings); } } moduleElementDeclarationEmitInfo.push({ @@ -23477,9 +19070,7 @@ var ts; return resolver.isDeclarationVisible(namedBindings); } else { - return ts.forEach(namedBindings.elements, function (namedImport) { - return resolver.isDeclarationVisible(namedImport); - }); + return ts.forEach(namedBindings.elements, function (namedImport) { return resolver.isDeclarationVisible(namedImport); }); } } } @@ -23623,8 +19214,15 @@ var ts; writeTextOfNode(currentSourceFile, node.name); if (node.constraint && !isPrivateMethodTypeParameter(node)) { write(" extends "); - if (node.parent.kind === 142 || node.parent.kind === 143 || (node.parent.parent && node.parent.parent.kind === 145)) { - ts.Debug.assert(node.parent.kind === 134 || node.parent.kind === 133 || node.parent.kind === 142 || node.parent.kind === 143 || node.parent.kind === 138 || node.parent.kind === 139); + if (node.parent.kind === 142 || + node.parent.kind === 143 || + (node.parent.parent && node.parent.parent.kind === 145)) { + ts.Debug.assert(node.parent.kind === 134 || + node.parent.kind === 133 || + node.parent.kind === 142 || + node.parent.kind === 143 || + node.parent.kind === 138 || + node.parent.kind === 139); emitType(node.constraint); } else { @@ -23689,7 +19287,9 @@ var ts; function getHeritageClauseVisibilityError(symbolAccesibilityResult) { var diagnosticMessage; if (node.parent.parent.kind === 201) { - diagnosticMessage = isImplementsList ? ts.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1 : ts.Diagnostics.Extends_clause_of_exported_class_0_has_or_is_using_private_name_1; + diagnosticMessage = isImplementsList ? + ts.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1 : + ts.Diagnostics.Extends_clause_of_exported_class_0_has_or_is_using_private_name_1; } else { diagnosticMessage = ts.Diagnostics.Extends_clause_of_exported_interface_0_has_or_is_using_private_name_1; @@ -23721,9 +19321,7 @@ var ts; emitTypeParameters(node.typeParameters); var baseTypeNode = ts.getClassExtendsHeritageClauseElement(node); if (baseTypeNode) { - emitHeritageClause([ - baseTypeNode - ], false); + emitHeritageClause([baseTypeNode], false); } emitHeritageClause(ts.getClassImplementsHeritageClauseElements(node), true); write(" {"); @@ -23784,17 +19382,31 @@ var ts; } function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult) { if (node.kind === 198) { - return symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 ? ts.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1; + return symbolAccesibilityResult.errorModuleName ? + symbolAccesibilityResult.accessibility === 2 ? + ts.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : + ts.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1; } else if (node.kind === 132 || node.kind === 131) { if (node.flags & 128) { - return symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 ? ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; + return symbolAccesibilityResult.errorModuleName ? + symbolAccesibilityResult.accessibility === 2 ? + ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : + ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; } else if (node.parent.kind === 201) { - return symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 ? ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; + return symbolAccesibilityResult.errorModuleName ? + symbolAccesibilityResult.accessibility === 2 ? + ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : + ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; } else { - return symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; + return symbolAccesibilityResult.errorModuleName ? + ts.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; } } } @@ -23843,9 +19455,7 @@ var ts; } } function isVariableStatementVisible(node) { - return ts.forEach(node.declarationList.declarations, function (varDeclaration) { - return resolver.isDeclarationVisible(varDeclaration); - }); + return ts.forEach(node.declarationList.declarations, function (varDeclaration) { return resolver.isDeclarationVisible(varDeclaration); }); } function writeVariableStatement(node) { emitJsDocComments(node); @@ -23891,17 +19501,25 @@ var ts; } function getTypeAnnotationFromAccessor(accessor) { if (accessor) { - return accessor.kind === 136 ? accessor.type : accessor.parameters.length > 0 ? accessor.parameters[0].type : undefined; + return accessor.kind === 136 + ? accessor.type + : accessor.parameters.length > 0 + ? accessor.parameters[0].type + : undefined; } } function getAccessorDeclarationTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage; if (accessorWithTypeAnnotation.kind === 137) { if (accessorWithTypeAnnotation.parent.flags & 128) { - diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1; + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + ts.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1; } else { - diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1; + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + ts.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1; } return { diagnosticMessage: diagnosticMessage, @@ -23911,10 +19529,18 @@ var ts; } else { if (accessorWithTypeAnnotation.flags & 128) { - diagnosticMessage = symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 ? ts.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0; + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + symbolAccesibilityResult.accessibility === 2 ? + ts.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : + ts.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1 : + ts.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0; } else { - diagnosticMessage = symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 ? ts.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0; + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + symbolAccesibilityResult.accessibility === 2 ? + ts.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : + ts.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1 : + ts.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0; } return { diagnosticMessage: diagnosticMessage, @@ -23995,28 +19621,48 @@ var ts; var diagnosticMessage; switch (node.kind) { case 139: - diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0; + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + ts.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : + ts.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0; break; case 138: - diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0; + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + ts.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : + ts.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0; break; case 140: - diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0; + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + ts.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : + ts.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0; break; case 134: case 133: if (node.flags & 128) { - diagnosticMessage = symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 ? ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0; + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + symbolAccesibilityResult.accessibility === 2 ? + ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : + ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : + ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0; } else if (node.parent.kind === 201) { - diagnosticMessage = symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 ? ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0; + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + symbolAccesibilityResult.accessibility === 2 ? + ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : + ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : + ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0; } else { - diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0; + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + ts.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : + ts.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0; } break; case 200: - diagnosticMessage = symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 ? ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0; + diagnosticMessage = symbolAccesibilityResult.errorModuleName ? + symbolAccesibilityResult.accessibility === 2 ? + ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : + ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 : + ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0; break; default: ts.Debug.fail("This is unknown kind for signature: " + node.kind); @@ -24043,7 +19689,9 @@ var ts; write("?"); } decreaseIndent(); - if (node.parent.kind === 142 || node.parent.kind === 143 || node.parent.parent.kind === 145) { + if (node.parent.kind === 142 || + node.parent.kind === 143 || + node.parent.parent.kind === 145) { emitTypeOfVariableDeclarationFromTypeLiteral(node); } else if (!(node.parent.flags & 32)) { @@ -24060,24 +19708,46 @@ var ts; function getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult) { switch (node.parent.kind) { case 135: - return symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 ? ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1; + return symbolAccesibilityResult.errorModuleName ? + symbolAccesibilityResult.accessibility === 2 ? + ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : + ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1; case 139: - return symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; + return symbolAccesibilityResult.errorModuleName ? + ts.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; case 138: - return symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; + return symbolAccesibilityResult.errorModuleName ? + ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; case 134: case 133: if (node.parent.flags & 128) { - return symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 ? ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; + return symbolAccesibilityResult.errorModuleName ? + symbolAccesibilityResult.accessibility === 2 ? + ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : + ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; } else if (node.parent.parent.kind === 201) { - return symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 ? ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; + return symbolAccesibilityResult.errorModuleName ? + symbolAccesibilityResult.accessibility === 2 ? + ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : + ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { - return symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; + return symbolAccesibilityResult.errorModuleName ? + ts.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } case 200: - return symbolAccesibilityResult.errorModuleName ? symbolAccesibilityResult.accessibility === 2 ? ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1; + return symbolAccesibilityResult.errorModuleName ? + symbolAccesibilityResult.accessibility === 2 ? + ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : + ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 : + ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1; default: ts.Debug.fail("This is unknown parent for parameter: " + node.parent.kind); } @@ -24170,7 +19840,11 @@ var ts; } } function writeReferencePath(referencedFile) { - var declFileName = referencedFile.flags & 2048 ? referencedFile.fileName : ts.shouldEmitToOwnFile(referencedFile, compilerOptions) ? ts.getOwnEmitOutputFilePath(referencedFile, host, ".d.ts") : ts.removeFileExtension(compilerOptions.out) + ".d.ts"; + var declFileName = referencedFile.flags & 2048 + ? referencedFile.fileName + : ts.shouldEmitToOwnFile(referencedFile, compilerOptions) + ? ts.getOwnEmitOutputFilePath(referencedFile, host, ".d.ts") + : ts.removeFileExtension(compilerOptions.out) + ".d.ts"; declFileName = ts.getRelativePathToDirectoryOrUrl(ts.getDirectoryPath(ts.normalizeSlashes(jsFilePath)), declFileName, host.getCurrentDirectory(), host.getCanonicalFileName, false); referencePathsOutput += "/// " + newLine; } @@ -24178,7 +19852,8 @@ var ts; function writeDeclarationFile(jsFilePath, sourceFile, host, resolver, diagnostics) { var emitDeclarationResult = emitDeclarations(host, resolver, diagnostics, jsFilePath, sourceFile); if (!emitDeclarationResult.reportedDeclarationError) { - var declarationOutput = emitDeclarationResult.referencePathsOutput + getDeclarationOutput(emitDeclarationResult.synchronousDeclarationOutput, emitDeclarationResult.moduleElementDeclarationEmitInfo); + var declarationOutput = emitDeclarationResult.referencePathsOutput + + getDeclarationOutput(emitDeclarationResult.synchronousDeclarationOutput, emitDeclarationResult.moduleElementDeclarationEmitInfo); ts.writeFile(host, diagnostics, ts.removeFileExtension(jsFilePath) + ".d.ts", declarationOutput, host.getCompilerOptions().emitBOM); } function getDeclarationOutput(synchronousDeclarationOutput, moduleElementDeclarationEmitInfo) { @@ -24206,6 +19881,10 @@ var ts; } ts.isExternalModuleOrDeclarationFile = isExternalModuleOrDeclarationFile; function emitFiles(resolver, host, targetSourceFile) { + var extendsHelper = "\nvar __extends = this.__extends || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n __.prototype = b.prototype;\n d.prototype = new __();\n};"; + var decorateHelper = "\nvar __decorate = this.__decorate || (typeof Reflect === \"object\" && Reflect.decorate) || function (decorators, target, key, desc) {\n switch (arguments.length) {\n case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);\n case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);\n case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);\n }\n};"; + var metadataHelper = "\nvar __metadata = this.__metadata || (typeof Reflect === \"object\" && Reflect.metadata) || function () { };"; + var paramHelper = "\nvar __param = this.__param || function(index, decorator) { return function (target, key) { decorator(target, key, index); } };"; var compilerOptions = host.getCompilerOptions(); var languageVersion = compilerOptions.target || 0; var sourceMapDataList = compilerOptions.sourceMap ? [] : undefined; @@ -24269,6 +19948,7 @@ var ts; var computedPropertyNamesToGeneratedNames; var extendsEmitted = false; var decorateEmitted = false; + var paramEmitted = false; var tempFlags = 0; var tempVariables; var tempParameters; @@ -24280,15 +19960,11 @@ var ts; var detachedCommentsInfo; var writeComment = ts.writeCommentRange; var emit = emitNodeWithoutSourceMap; - var emitStart = function (node) { - }; - var emitEnd = function (node) { - }; + var emitStart = function (node) { }; + var emitEnd = function (node) { }; var emitToken = emitTokenText; - var scopeEmitStart = function (scopeDeclaration, scopeName) { - }; - var scopeEmitEnd = function () { - }; + var scopeEmitStart = function (scopeDeclaration, scopeName) { }; + var scopeEmitEnd = function () { }; var sourceMapData; if (compilerOptions.sourceMap) { initializeEmitterWithSourceMaps(); @@ -24311,7 +19987,9 @@ var ts; emit(sourceFile); } function isUniqueName(name) { - return !resolver.hasGlobalName(name) && !ts.hasProperty(currentSourceFile.identifiers, name) && !ts.hasProperty(generatedNameSet, name); + return !resolver.hasGlobalName(name) && + !ts.hasProperty(currentSourceFile.identifiers, name) && + !ts.hasProperty(generatedNameSet, name); } function makeTempVariableName(flags) { if (flags && !(tempFlags & flags)) { @@ -24325,9 +20003,9 @@ var ts; var count = tempFlags & 268435455; tempFlags++; if (count !== 8 && count !== 13) { - var name_12 = count < 26 ? "_" + String.fromCharCode(97 + count) : "_" + (count - 26); - if (isUniqueName(name_12)) { - return name_12; + var name_13 = count < 26 ? "_" + String.fromCharCode(97 + count) : "_" + (count - 26); + if (isUniqueName(name_13)) { + return name_13; } } } @@ -24355,13 +20033,14 @@ var ts; } function generateNameForModuleOrEnum(node) { if (node.name.kind === 65) { - var name_13 = node.name.text; - assignGeneratedName(node, isUniqueLocalName(name_13, node) ? name_13 : makeUniqueName(name_13)); + var name_14 = node.name.text; + assignGeneratedName(node, isUniqueLocalName(name_14, node) ? name_14 : makeUniqueName(name_14)); } } function generateNameForImportOrExportDeclaration(node) { var expr = ts.getExternalModuleName(node); - var baseName = expr.kind === 8 ? ts.escapeIdentifier(ts.makeIdentifierFromModuleName(expr.text)) : "module"; + var baseName = expr.kind === 8 ? + ts.escapeIdentifier(ts.makeIdentifierFromModuleName(expr.text)) : "module"; assignGeneratedName(node, makeUniqueName(baseName)); } function generateNameForImportDeclaration(node) { @@ -24383,6 +20062,7 @@ var ts; switch (node.kind) { case 200: case 201: + case 174: generateNameForFunctionOrClassDeclaration(node); break; case 205: @@ -24484,7 +20164,12 @@ var ts; sourceLinePos.character++; var emittedLine = writer.getLine(); var emittedColumn = writer.getColumn(); - if (!lastRecordedSourceMapSpan || lastRecordedSourceMapSpan.emittedLine != emittedLine || lastRecordedSourceMapSpan.emittedColumn != emittedColumn || (lastRecordedSourceMapSpan.sourceIndex === sourceMapSourceIndex && (lastRecordedSourceMapSpan.sourceLine > sourceLinePos.line || (lastRecordedSourceMapSpan.sourceLine === sourceLinePos.line && lastRecordedSourceMapSpan.sourceColumn > sourceLinePos.character)))) { + if (!lastRecordedSourceMapSpan || + lastRecordedSourceMapSpan.emittedLine != emittedLine || + lastRecordedSourceMapSpan.emittedColumn != emittedColumn || + (lastRecordedSourceMapSpan.sourceIndex === sourceMapSourceIndex && + (lastRecordedSourceMapSpan.sourceLine > sourceLinePos.line || + (lastRecordedSourceMapSpan.sourceLine === sourceLinePos.line && lastRecordedSourceMapSpan.sourceColumn > sourceLinePos.character)))) { encodeLastRecordedSourceMapSpan(); lastRecordedSourceMapSpan = { emittedLine: emittedLine, @@ -24529,8 +20214,8 @@ var ts; if (scopeName) { var parentIndex = getSourceMapNameIndex(); if (parentIndex !== -1) { - var name_14 = node.name; - if (!name_14 || name_14.kind !== 127) { + var name_15 = node.name; + if (!name_15 || name_15.kind !== 127) { scopeName = "." + scopeName; } scopeName = sourceMapData.sourceMapNames[parentIndex] + scopeName; @@ -24547,10 +20232,20 @@ var ts; if (scopeName) { recordScopeNameStart(scopeName); } - else if (node.kind === 200 || node.kind === 162 || node.kind === 134 || node.kind === 133 || node.kind === 136 || node.kind === 137 || node.kind === 205 || node.kind === 201 || node.kind === 204) { + else if (node.kind === 200 || + node.kind === 162 || + node.kind === 134 || + node.kind === 133 || + node.kind === 136 || + node.kind === 137 || + node.kind === 205 || + node.kind === 201 || + node.kind === 204) { if (node.name) { - var name_15 = node.name; - scopeName = name_15.kind === 127 ? ts.getTextOfNode(name_15) : node.name.text; + var name_16 = node.name; + scopeName = name_16.kind === 127 + ? ts.getTextOfNode(name_16) + : node.name.text; } recordScopeNameStart(scopeName); } @@ -24751,27 +20446,32 @@ var ts; writeLine(); } } - function emitList(nodes, start, count, multiLine, trailingComma) { + function emitList(nodes, start, count, multiLine, trailingComma, leadingComma, noTrailingNewLine, emitNode) { + if (!emitNode) { + emitNode = emit; + } for (var i = 0; i < count; i++) { if (multiLine) { - if (i) { + if (i || leadingComma) { write(","); } writeLine(); } else { - if (i) { + if (i || leadingComma) { write(", "); } } - emit(nodes[start + i]); + emitNode(nodes[start + i]); + leadingComma = true; } if (trailingComma) { write(","); } - if (multiLine) { + if (multiLine && !noTrailingNewLine) { writeLine(); } + return count; } function emitCommaList(nodes) { if (nodes) { @@ -24876,7 +20576,8 @@ var ts; if (node.template.kind === 171) { ts.forEach(node.template.templateSpans, function (templateSpan) { write(", "); - var needsParens = templateSpan.expression.kind === 169 && templateSpan.expression.operatorToken.kind === 23; + var needsParens = templateSpan.expression.kind === 169 + && templateSpan.expression.operatorToken.kind === 23; emitParenthesizedIf(templateSpan.expression, needsParens); }); } @@ -24887,7 +20588,8 @@ var ts; ts.forEachChild(node, emit); return; } - var emitOuterParens = ts.isExpression(node.parent) && templateNeedsParens(node, node.parent); + var emitOuterParens = ts.isExpression(node.parent) + && templateNeedsParens(node, node.parent); if (emitOuterParens) { write("("); } @@ -24898,7 +20600,8 @@ var ts; } for (var i = 0, n = node.templateSpans.length; i < n; i++) { var templateSpan = node.templateSpans[i]; - var needsParens = templateSpan.expression.kind !== 161 && comparePrecedenceToBinaryPlus(templateSpan.expression) !== 1; + var needsParens = templateSpan.expression.kind !== 161 + && comparePrecedenceToBinaryPlus(templateSpan.expression) !== 1; if (i > 0 || headEmitted) { write(" + "); } @@ -24975,15 +20678,13 @@ var ts; if (!computedPropertyNamesToGeneratedNames) { computedPropertyNamesToGeneratedNames = []; } - var generatedName = computedPropertyNamesToGeneratedNames[node.id]; + var generatedName = computedPropertyNamesToGeneratedNames[ts.getNodeId(node)]; if (generatedName) { write(generatedName); return; } - var generatedVariable = createTempVariable(0); - generatedName = generatedVariable.text; - recordTempDeclaration(generatedVariable); - computedPropertyNamesToGeneratedNames[node.id] = generatedName; + generatedName = createAndRecordTempVariable(0).text; + computedPropertyNamesToGeneratedNames[ts.getNodeId(node)] = generatedName; write(generatedName); write(" = "); } @@ -25195,147 +20896,133 @@ var ts; emitListWithSpread(elements, (node.flags & 512) !== 0, elements.hasTrailingComma); } } - function emitDownlevelObjectLiteralWithComputedProperties(node, firstComputedPropertyIndex) { - var parenthesizedObjectLiteral = createDownlevelObjectLiteralWithComputedProperties(node, firstComputedPropertyIndex); - return emit(parenthesizedObjectLiteral); - } - function createDownlevelObjectLiteralWithComputedProperties(originalObjectLiteral, firstComputedPropertyIndex) { - var tempVar = createAndRecordTempVariable(0); - var initialObjectLiteral = ts.createSynthesizedNode(154); - initialObjectLiteral.properties = originalObjectLiteral.properties.slice(0, firstComputedPropertyIndex); - initialObjectLiteral.flags |= 512; - var propertyPatches = createBinaryExpression(tempVar, 53, initialObjectLiteral); - ts.forEach(originalObjectLiteral.properties, function (property) { - var patchedProperty = tryCreatePatchingPropertyAssignment(originalObjectLiteral, tempVar, property); - if (patchedProperty) { - propertyPatches = createBinaryExpression(propertyPatches, 23, patchedProperty); + function emitObjectLiteralBody(node, numElements) { + if (numElements === 0) { + write("{}"); + return; + } + write("{"); + if (numElements > 0) { + var properties = node.properties; + if (numElements === properties.length) { + emitLinePreservingList(node, properties, languageVersion >= 1, true); } - }); - propertyPatches = createBinaryExpression(propertyPatches, 23, createIdentifier(tempVar.text, true)); - var result = createParenthesizedExpression(propertyPatches); - return result; - } - function addCommentsToSynthesizedNode(node, leadingCommentRanges, trailingCommentRanges) { - node.leadingCommentRanges = leadingCommentRanges; - node.trailingCommentRanges = trailingCommentRanges; - } - function tryCreatePatchingPropertyAssignment(objectLiteral, tempVar, property) { - var leftHandSide = createMemberAccessForPropertyName(tempVar, property.name); - var maybeRightHandSide = tryGetRightHandSideOfPatchingPropertyAssignment(objectLiteral, property); - return maybeRightHandSide && createBinaryExpression(leftHandSide, 53, maybeRightHandSide, true); - } - function tryGetRightHandSideOfPatchingPropertyAssignment(objectLiteral, property) { - switch (property.kind) { - case 224: - return property.initializer; - case 225: - return createIdentifier(resolver.getExpressionNameSubstitution(property.name, getGeneratedNameForNode)); - case 134: - return createFunctionExpression(property.parameters, property.body); - case 136: - case 137: - var _a = ts.getAllAccessorDeclarations(objectLiteral.properties, property), firstAccessor = _a.firstAccessor, getAccessor = _a.getAccessor, setAccessor = _a.setAccessor; - if (firstAccessor !== property) { - return undefined; + else { + var multiLine = (node.flags & 512) !== 0; + if (!multiLine) { + write(" "); } - var propertyDescriptor = ts.createSynthesizedNode(154); - var descriptorProperties = []; - if (getAccessor) { - var getProperty_1 = createPropertyAssignment(createIdentifier("get"), createFunctionExpression(getAccessor.parameters, getAccessor.body)); - descriptorProperties.push(getProperty_1); + else { + increaseIndent(); } - if (setAccessor) { - var setProperty = createPropertyAssignment(createIdentifier("set"), createFunctionExpression(setAccessor.parameters, setAccessor.body)); - descriptorProperties.push(setProperty); + emitList(properties, 0, numElements, multiLine, false); + if (!multiLine) { + write(" "); } - var trueExpr = ts.createSynthesizedNode(95); - var enumerableTrue = createPropertyAssignment(createIdentifier("enumerable"), trueExpr); - descriptorProperties.push(enumerableTrue); - var configurableTrue = createPropertyAssignment(createIdentifier("configurable"), trueExpr); - descriptorProperties.push(configurableTrue); - propertyDescriptor.properties = descriptorProperties; - var objectDotDefineProperty = createPropertyAccessExpression(createIdentifier("Object"), createIdentifier("defineProperty")); - return createCallExpression(objectDotDefineProperty, createNodeArray(propertyDescriptor)); - default: - ts.Debug.fail("ObjectLiteralElement kind " + property.kind + " not accounted for."); + else { + decreaseIndent(); + } + } } + write("}"); } - function createParenthesizedExpression(expression) { - var result = ts.createSynthesizedNode(161); - result.expression = expression; - return result; - } - function createNodeArray() { - var elements = []; - for (var _a = 0; _a < arguments.length; _a++) { - elements[_a - 0] = arguments[_a]; + function emitDownlevelObjectLiteralWithComputedProperties(node, firstComputedPropertyIndex) { + var multiLine = (node.flags & 512) !== 0; + var properties = node.properties; + write("("); + if (multiLine) { + increaseIndent(); } - var result = elements; - result.pos = -1; - result.end = -1; - return result; - } - function createBinaryExpression(left, operator, right, startsOnNewLine) { - var result = ts.createSynthesizedNode(169, startsOnNewLine); - result.operatorToken = ts.createSynthesizedNode(operator); - result.left = left; - result.right = right; - return result; - } - function createExpressionStatement(expression) { - var result = ts.createSynthesizedNode(182); - result.expression = expression; - return result; - } - function createMemberAccessForPropertyName(expression, memberName) { - if (memberName.kind === 65) { - return createPropertyAccessExpression(expression, memberName); + var tempVar = createAndRecordTempVariable(0); + emit(tempVar); + write(" = "); + emitObjectLiteralBody(node, firstComputedPropertyIndex); + for (var i = firstComputedPropertyIndex, n = properties.length; i < n; i++) { + writeComma(); + var property = properties[i]; + emitStart(property); + if (property.kind === 136 || property.kind === 137) { + var accessors = ts.getAllAccessorDeclarations(node.properties, property); + if (property !== accessors.firstAccessor) { + continue; + } + write("Object.defineProperty("); + emit(tempVar); + write(", "); + emitStart(node.name); + emitExpressionForPropertyName(property.name); + emitEnd(property.name); + write(", {"); + increaseIndent(); + if (accessors.getAccessor) { + writeLine(); + emitLeadingComments(accessors.getAccessor); + write("get: "); + emitStart(accessors.getAccessor); + write("function "); + emitSignatureAndBody(accessors.getAccessor); + emitEnd(accessors.getAccessor); + emitTrailingComments(accessors.getAccessor); + write(","); + } + if (accessors.setAccessor) { + writeLine(); + emitLeadingComments(accessors.setAccessor); + write("set: "); + emitStart(accessors.setAccessor); + write("function "); + emitSignatureAndBody(accessors.setAccessor); + emitEnd(accessors.setAccessor); + emitTrailingComments(accessors.setAccessor); + write(","); + } + writeLine(); + write("enumerable: true,"); + writeLine(); + write("configurable: true"); + decreaseIndent(); + writeLine(); + write("})"); + emitEnd(property); + } + else { + emitLeadingComments(property); + emitStart(property.name); + emit(tempVar); + emitMemberAccessForPropertyName(property.name); + emitEnd(property.name); + write(" = "); + if (property.kind === 224) { + emit(property.initializer); + } + else if (property.kind === 225) { + emitExpressionIdentifier(property.name); + } + else if (property.kind === 134) { + emitFunctionDeclaration(property); + } + else { + ts.Debug.fail("ObjectLiteralElement type not accounted for: " + property.kind); + } + } + emitEnd(property); } - else if (memberName.kind === 8 || memberName.kind === 7) { - return createElementAccessExpression(expression, memberName); + writeComma(); + emit(tempVar); + if (multiLine) { + decreaseIndent(); + writeLine(); } - else if (memberName.kind === 127) { - return createElementAccessExpression(expression, memberName.expression); + write(")"); + function writeComma() { + if (multiLine) { + write(","); + writeLine(); + } + else { + write(", "); + } } - else { - ts.Debug.fail("Kind '" + memberName.kind + "' not accounted for."); - } - } - function createPropertyAssignment(name, initializer) { - var result = ts.createSynthesizedNode(224); - result.name = name; - result.initializer = initializer; - return result; - } - function createFunctionExpression(parameters, body) { - var result = ts.createSynthesizedNode(162); - result.parameters = parameters; - result.body = body; - return result; - } - function createPropertyAccessExpression(expression, name) { - var result = ts.createSynthesizedNode(155); - result.expression = expression; - result.dotToken = ts.createSynthesizedNode(20); - result.name = name; - return result; - } - function createElementAccessExpression(expression, argumentExpression) { - var result = ts.createSynthesizedNode(156); - result.expression = expression; - result.argumentExpression = argumentExpression; - return result; - } - function createIdentifier(name, startsOnNewLine) { - var result = ts.createSynthesizedNode(65, startsOnNewLine); - result.text = name; - return result; - } - function createCallExpression(invokedExpression, arguments) { - var result = ts.createSynthesizedNode(157); - result.expression = invokedExpression; - result.arguments = arguments; - return result; } function emitObjectLiteral(node) { var properties = node.properties; @@ -25354,11 +21041,27 @@ var ts; return; } } - write("{"); - if (properties.length) { - emitLinePreservingList(node, properties, languageVersion >= 1, true); - } - write("}"); + emitObjectLiteralBody(node, properties.length); + } + function createBinaryExpression(left, operator, right, startsOnNewLine) { + var result = ts.createSynthesizedNode(169, startsOnNewLine); + result.operatorToken = ts.createSynthesizedNode(operator); + result.left = left; + result.right = right; + return result; + } + function createPropertyAccessExpression(expression, name) { + var result = ts.createSynthesizedNode(155); + result.expression = expression; + result.dotToken = ts.createSynthesizedNode(20); + result.name = name; + return result; + } + function createElementAccessExpression(expression, argumentExpression) { + var result = ts.createSynthesizedNode(156); + result.expression = expression; + result.argumentExpression = argumentExpression; + return result; } function emitComputedPropertyName(node) { write("["); @@ -25450,9 +21153,7 @@ var ts; write("]"); } function hasSpreadElement(elements) { - return ts.forEach(elements, function (e) { - return e.kind === 173; - }); + return ts.forEach(elements, function (e) { return e.kind === 173; }); } function skipParentheses(node) { while (node.kind === 161 || node.kind === 160) { @@ -25565,7 +21266,14 @@ var ts; while (operand.kind == 160) { operand = operand.expression; } - if (operand.kind !== 167 && operand.kind !== 166 && operand.kind !== 165 && operand.kind !== 164 && operand.kind !== 168 && operand.kind !== 158 && !(operand.kind === 157 && node.parent.kind === 158) && !(operand.kind === 162 && node.parent.kind === 157)) { + if (operand.kind !== 167 && + operand.kind !== 166 && + operand.kind !== 165 && + operand.kind !== 164 && + operand.kind !== 168 && + operand.kind !== 158 && + !(operand.kind === 157 && node.parent.kind === 158) && + !(operand.kind === 162 && node.parent.kind === 157)) { emit(operand); return; } @@ -25608,7 +21316,8 @@ var ts; write(ts.tokenToString(node.operator)); } function emitBinaryExpression(node) { - if (languageVersion < 2 && node.operatorToken.kind === 53 && (node.left.kind === 154 || node.left.kind === 153)) { + if (languageVersion < 2 && node.operatorToken.kind === 53 && + (node.left.kind === 154 || node.left.kind === 153)) { emitDestructuring(node, node.parent.kind === 182); } else { @@ -25935,13 +21644,16 @@ var ts; emitToken(15, node.clauses.end); } function nodeStartPositionsAreOnSameLine(node1, node2) { - return ts.getLineOfLocalPosition(currentSourceFile, ts.skipTrivia(currentSourceFile.text, node1.pos)) === ts.getLineOfLocalPosition(currentSourceFile, ts.skipTrivia(currentSourceFile.text, node2.pos)); + return ts.getLineOfLocalPosition(currentSourceFile, ts.skipTrivia(currentSourceFile.text, node1.pos)) === + ts.getLineOfLocalPosition(currentSourceFile, ts.skipTrivia(currentSourceFile.text, node2.pos)); } function nodeEndPositionsAreOnSameLine(node1, node2) { - return ts.getLineOfLocalPosition(currentSourceFile, node1.end) === ts.getLineOfLocalPosition(currentSourceFile, node2.end); + return ts.getLineOfLocalPosition(currentSourceFile, node1.end) === + ts.getLineOfLocalPosition(currentSourceFile, node2.end); } function nodeEndIsOnSameLineAsNodeStart(node1, node2) { - return ts.getLineOfLocalPosition(currentSourceFile, node1.end) === ts.getLineOfLocalPosition(currentSourceFile, ts.skipTrivia(currentSourceFile.text, node2.pos)); + return ts.getLineOfLocalPosition(currentSourceFile, node1.end) === + ts.getLineOfLocalPosition(currentSourceFile, ts.skipTrivia(currentSourceFile.text, node2.pos)); } function emitCaseOrDefaultClause(node) { if (node.kind === 220) { @@ -26258,8 +21970,11 @@ var ts; emitModuleMemberName(node); var initializer = node.initializer; if (!initializer && languageVersion < 2) { - var isUninitializedLet = (resolver.getNodeCheckFlags(node) & 256) && (getCombinedFlagsForIdentifier(node.name) & 4096); - if (isUninitializedLet && node.parent.parent.kind !== 187 && node.parent.parent.kind !== 188) { + var isUninitializedLet = (resolver.getNodeCheckFlags(node) & 256) && + (getCombinedFlagsForIdentifier(node.name) & 4096); + if (isUninitializedLet && + node.parent.parent.kind !== 187 && + node.parent.parent.kind !== 188) { initializer = createVoidZero(); } } @@ -26285,7 +22000,10 @@ var ts; return ts.getCombinedNodeFlags(node.parent); } function renameNonTopLevelLetAndConst(node) { - if (languageVersion >= 2 || ts.nodeIsSynthesized(node) || node.kind !== 65 || (node.parent.kind !== 198 && node.parent.kind !== 152)) { + if (languageVersion >= 2 || + ts.nodeIsSynthesized(node) || + node.kind !== 65 || + (node.parent.kind !== 198 && node.parent.kind !== 152)) { return; } var combinedFlags = getCombinedFlagsForIdentifier(node); @@ -26302,7 +22020,9 @@ var ts; } } var blockScopeContainer = ts.getEnclosingBlockScopeContainer(node); - var parent = blockScopeContainer.kind === 227 ? blockScopeContainer : blockScopeContainer.parent; + var parent = blockScopeContainer.kind === 227 + ? blockScopeContainer + : blockScopeContainer.parent; if (resolver.resolvesToSomeValue(parent, node.text)) { var variableId = resolver.getBlockScopedVariableId(node); if (!blockScopedVariableToGeneratedName) { @@ -26313,7 +22033,9 @@ var ts; } } function isES6ExportedDeclaration(node) { - return !!(node.flags & 1) && languageVersion >= 2 && node.parent.kind === 227; + return !!(node.flags & 1) && + languageVersion >= 2 && + node.parent.kind === 227; } function emitVariableStatement(node) { if (!(node.flags & 1)) { @@ -26332,12 +22054,12 @@ var ts; function emitParameter(node) { if (languageVersion < 2) { if (ts.isBindingPattern(node.name)) { - var name_16 = createTempVariable(0); + var name_17 = createTempVariable(0); if (!tempParameters) { tempParameters = []; } - tempParameters.push(name_16); - emit(name_16); + tempParameters.push(name_17); + emit(name_17); } else { emit(node.name); @@ -26653,28 +22375,47 @@ var ts; emitNodeWithoutSourceMap(memberName); } } - function emitMemberAssignments(node, staticFlag) { - ts.forEach(node.members, function (member) { - if (member.kind === 132 && (member.flags & 128) === staticFlag && member.initializer) { - writeLine(); - emitLeadingComments(member); - emitStart(member); - emitStart(member.name); - if (staticFlag) { - emitDeclarationName(node); - } - else { - write("this"); - } - emitMemberAccessForPropertyName(member.name); - emitEnd(member.name); - write(" = "); - emit(member.initializer); - write(";"); - emitEnd(member); - emitTrailingComments(member); + function getInitializedProperties(node, static) { + var properties = []; + for (var _a = 0, _b = node.members; _a < _b.length; _a++) { + var member = _b[_a]; + if (member.kind === 132 && static === ((member.flags & 128) !== 0) && member.initializer) { + properties.push(member); } - }); + } + return properties; + } + function emitPropertyDeclarations(node, properties) { + for (var _a = 0; _a < properties.length; _a++) { + var property = properties[_a]; + emitPropertyDeclaration(node, property); + } + } + function emitPropertyDeclaration(node, property, receiver, isExpression) { + writeLine(); + emitLeadingComments(property); + emitStart(property); + emitStart(property.name); + if (receiver) { + emit(receiver); + } + else { + if (property.flags & 128) { + emitDeclarationName(node); + } + else { + write("this"); + } + } + emitMemberAccessForPropertyName(property.name); + emitEnd(property.name); + write(" = "); + emit(property.initializer); + if (!isExpression) { + write(";"); + } + emitEnd(property); + emitTrailingComments(property); } function emitMemberFunctionsForES5AndLower(node) { ts.forEach(node.members, function (member) { @@ -26754,7 +22495,9 @@ var ts; if ((member.kind === 134 || node.kind === 133) && !member.body) { emitOnlyPinnedOrTripleSlashComments(member); } - else if (member.kind === 134 || member.kind === 136 || member.kind === 137) { + else if (member.kind === 134 || + member.kind === 136 || + member.kind === 137) { writeLine(); emitLeadingComments(member); emitStart(member); @@ -26785,6 +22528,12 @@ var ts; tempFlags = 0; tempVariables = undefined; tempParameters = undefined; + emitConstructorWorker(node, baseTypeElement); + tempFlags = saveTempFlags; + tempVariables = saveTempVariables; + tempParameters = saveTempParameters; + } + function emitConstructorWorker(node, baseTypeElement) { var hasInstancePropertyWithInitializer = false; ts.forEach(node.members, function (member) { if (member.kind === 135 && !member.body) { @@ -26853,7 +22602,7 @@ var ts; emitEnd(baseTypeElement); } } - emitMemberAssignments(node, 0); + emitPropertyDeclarations(node, getInitializedProperties(node, false)); if (ctor) { var statements = ctor.body.statements; if (superCall) { @@ -26873,9 +22622,6 @@ var ts; if (ctor) { emitTrailingComments(ctor); } - tempFlags = saveTempFlags; - tempVariables = saveTempVariables; - tempParameters = saveTempParameters; } function emitClassExpression(node) { return emitClassLikeDeclaration(node); @@ -26909,6 +22655,16 @@ var ts; } } } + var staticProperties = getInitializedProperties(node, true); + var isClassExpressionWithStaticProperties = staticProperties.length > 0 && node.kind === 174; + var tempVariable; + if (isClassExpressionWithStaticProperties) { + tempVariable = createAndRecordTempVariable(0); + write("("); + increaseIndent(); + emit(tempVariable); + write(" = "); + } write("class"); if ((node.name || !(node.flags & 256)) && !thisNodeIsDecorated) { write(" "); @@ -26941,9 +22697,24 @@ var ts; writeLine(); } } - writeLine(); - emitMemberAssignments(node, 128); - emitDecoratorsOfClass(node); + if (isClassExpressionWithStaticProperties) { + for (var _a = 0; _a < staticProperties.length; _a++) { + var property = staticProperties[_a]; + write(","); + writeLine(); + emitPropertyDeclaration(node, property, tempVariable, true); + } + write(","); + writeLine(); + emit(tempVariable); + decreaseIndent(); + write(")"); + } + else { + writeLine(); + emitPropertyDeclarations(node, staticProperties); + emitDecoratorsOfClass(node); + } if (!isES6ExportedDeclaration(node) && (node.flags & 1)) { writeLine(); emitStart(node); @@ -26993,7 +22764,7 @@ var ts; writeLine(); emitConstructor(node, baseTypeNode); emitMemberFunctionsForES5AndLower(node); - emitMemberAssignments(node, 128); + emitPropertyDeclarations(node, getInitializedProperties(node, true)); writeLine(); emitDecoratorsOfClass(node); writeLine(); @@ -27040,56 +22811,64 @@ var ts; emitDecoratorsOfConstructor(node); } function emitDecoratorsOfConstructor(node) { + var decorators = node.decorators; var constructor = ts.getFirstConstructorWithBody(node); - if (constructor) { - emitDecoratorsOfParameters(node, constructor); - } - if (!ts.nodeIsDecorated(node)) { + var hasDecoratedParameters = constructor && ts.forEach(constructor.parameters, ts.nodeIsDecorated); + if (!decorators && !hasDecoratedParameters) { return; } writeLine(); emitStart(node); emitDeclarationName(node); - write(" = "); - emitDecorateStart(node.decorators); + write(" = __decorate(["); + increaseIndent(); + writeLine(); + var decoratorCount = decorators ? decorators.length : 0; + var argumentsWritten = emitList(decorators, 0, decoratorCount, true, false, false, true, function (decorator) { + emitStart(decorator); + emit(decorator.expression); + emitEnd(decorator); + }); + argumentsWritten += emitDecoratorsOfParameters(constructor, argumentsWritten > 0); + emitSerializedTypeMetadata(node, argumentsWritten >= 0); + decreaseIndent(); + writeLine(); + write("], "); emitDeclarationName(node); write(");"); emitEnd(node); writeLine(); } function emitDecoratorsOfMembers(node, staticFlag) { - ts.forEach(node.members, function (member) { + for (var _a = 0, _b = node.members; _a < _b.length; _a++) { + var member = _b[_a]; if ((member.flags & 128) !== staticFlag) { - return; + continue; } - var decorators; - switch (member.kind) { - case 134: - emitDecoratorsOfParameters(node, member); - decorators = member.decorators; - break; - case 136: - case 137: - var accessors = ts.getAllAccessorDeclarations(node.members, member); - if (member !== accessors.firstAccessor) { - return; - } - if (accessors.setAccessor) { - emitDecoratorsOfParameters(node, accessors.setAccessor); - } - decorators = accessors.firstAccessor.decorators; - if (!decorators && accessors.secondAccessor) { - decorators = accessors.secondAccessor.decorators; - } - break; - case 132: - decorators = member.decorators; - break; - default: - return; + if (!ts.nodeCanBeDecorated(member)) { + continue; } - if (!decorators) { - return; + if (!ts.nodeOrChildIsDecorated(member)) { + continue; + } + var decorators = void 0; + var functionLikeMember = void 0; + if (ts.isAccessor(member)) { + var accessors = ts.getAllAccessorDeclarations(node.members, member); + if (member !== accessors.firstAccessor) { + continue; + } + decorators = accessors.firstAccessor.decorators; + if (!decorators && accessors.secondAccessor) { + decorators = accessors.secondAccessor.decorators; + } + functionLikeMember = accessors.setAccessor; + } + else { + decorators = member.decorators; + if (member.kind === 134) { + functionLikeMember = member; + } } writeLine(); emitStart(member); @@ -27100,9 +22879,24 @@ var ts; write(", "); emitExpressionForPropertyName(member.name); emitEnd(member.name); - write(", "); + write(","); + increaseIndent(); + writeLine(); } - emitDecorateStart(decorators); + write("__decorate(["); + increaseIndent(); + writeLine(); + var decoratorCount = decorators ? decorators.length : 0; + var argumentsWritten = emitList(decorators, 0, decoratorCount, true, false, false, true, function (decorator) { + emitStart(decorator); + emit(decorator.expression); + emitEnd(decorator); + }); + argumentsWritten += emitDecoratorsOfParameters(functionLikeMember, argumentsWritten > 0); + emitSerializedTypeMetadata(member, argumentsWritten > 0); + decreaseIndent(); + writeLine(); + write("], "); emitStart(member.name); emitClassMemberPrefix(node, member); write(", "); @@ -27116,51 +22910,131 @@ var ts; emitExpressionForPropertyName(member.name); emitEnd(member.name); write("))"); + decreaseIndent(); } write(");"); emitEnd(member); writeLine(); - }); - } - function emitDecoratorsOfParameters(node, member) { - ts.forEach(member.parameters, function (parameter, parameterIndex) { - if (!ts.nodeIsDecorated(parameter)) { - return; - } - writeLine(); - emitStart(parameter); - emitDecorateStart(parameter.decorators); - emitStart(parameter.name); - if (member.kind === 135) { - emitDeclarationName(node); - write(", void 0"); - } - else { - emitClassMemberPrefix(node, member); - write(", "); - emitExpressionForPropertyName(member.name); - } - write(", "); - write(String(parameterIndex)); - emitEnd(parameter.name); - write(");"); - emitEnd(parameter); - writeLine(); - }); - } - function emitDecorateStart(decorators) { - write("__decorate(["); - var decoratorCount = decorators.length; - for (var i = 0; i < decoratorCount; i++) { - if (i > 0) { - write(", "); - } - var decorator = decorators[i]; - emitStart(decorator); - emit(decorator.expression); - emitEnd(decorator); } - write("], "); + } + function emitDecoratorsOfParameters(node, leadingComma) { + var argumentsWritten = 0; + if (node) { + var parameterIndex = 0; + for (var _a = 0, _b = node.parameters; _a < _b.length; _a++) { + var parameter = _b[_a]; + if (ts.nodeIsDecorated(parameter)) { + var decorators = parameter.decorators; + argumentsWritten += emitList(decorators, 0, decorators.length, true, false, leadingComma, true, function (decorator) { + emitStart(decorator); + write("__param(" + parameterIndex + ", "); + emit(decorator.expression); + write(")"); + emitEnd(decorator); + }); + leadingComma = true; + } + ++parameterIndex; + } + } + return argumentsWritten; + } + function shouldEmitTypeMetadata(node) { + switch (node.kind) { + case 134: + case 136: + case 137: + case 132: + return true; + } + return false; + } + function shouldEmitReturnTypeMetadata(node) { + switch (node.kind) { + case 134: + return true; + } + return false; + } + function shouldEmitParamTypesMetadata(node) { + switch (node.kind) { + case 201: + case 134: + case 137: + return true; + } + return false; + } + function emitSerializedTypeMetadata(node, writeComma) { + var argumentsWritten = 0; + if (compilerOptions.emitDecoratorMetadata) { + if (shouldEmitTypeMetadata(node)) { + var serializedType = resolver.serializeTypeOfNode(node, getGeneratedNameForNode); + if (serializedType) { + if (writeComma) { + write(", "); + } + writeLine(); + write("__metadata('design:type', "); + emitSerializedType(node, serializedType); + write(")"); + argumentsWritten++; + } + } + if (shouldEmitParamTypesMetadata(node)) { + var serializedTypes = resolver.serializeParameterTypesOfNode(node, getGeneratedNameForNode); + if (serializedTypes) { + if (writeComma || argumentsWritten) { + write(", "); + } + writeLine(); + write("__metadata('design:paramtypes', ["); + for (var i = 0; i < serializedTypes.length; ++i) { + if (i > 0) { + write(", "); + } + emitSerializedType(node, serializedTypes[i]); + } + write("])"); + argumentsWritten++; + } + } + if (shouldEmitReturnTypeMetadata(node)) { + var serializedType = resolver.serializeReturnTypeOfNode(node, getGeneratedNameForNode); + if (serializedType) { + if (writeComma || argumentsWritten) { + write(", "); + } + writeLine(); + write("__metadata('design:returntype', "); + emitSerializedType(node, serializedType); + write(")"); + argumentsWritten++; + } + } + } + return argumentsWritten; + } + function serializeTypeNameSegment(location, path, index) { + switch (index) { + case 0: + return "typeof " + path[index] + " !== 'undefined' && " + path[index]; + case 1: + return serializeTypeNameSegment(location, path, index - 1) + "." + path[index]; + default: + var temp = createAndRecordTempVariable(0).text; + return "(" + temp + " = " + serializeTypeNameSegment(location, path, index - 1) + ") && " + temp + "." + path[index]; + } + } + function emitSerializedType(location, name) { + if (typeof name === "string") { + write(name); + return; + } + else { + ts.Debug.assert(name.length > 0, "Invalid serialized type name"); + write("(" + serializeTypeNameSegment(location, name, name.length - 1) + ") || Object"); + } } function emitInterfaceDeclaration(node) { emitOnlyPinnedOrTripleSlashComments(node); @@ -27439,7 +23313,8 @@ var ts; emitExternalImportDeclaration(node); return; } - if (resolver.isReferencedAliasDeclaration(node) || (!ts.isExternalModule(currentSourceFile) && resolver.isTopLevelValueImportEqualsWithEntityName(node))) { + if (resolver.isReferencedAliasDeclaration(node) || + (!ts.isExternalModule(currentSourceFile) && resolver.isTopLevelValueImportEqualsWithEntityName(node))) { emitLeadingComments(node); emitStart(node); if (isES6ExportedDeclaration(node)) { @@ -27551,7 +23426,8 @@ var ts; write("export default "); var expression = node.expression; emit(expression); - if (expression.kind !== 200 && expression.kind !== 201) { + if (expression.kind !== 200 && + expression.kind !== 201) { write(";"); } emitEnd(node); @@ -27576,7 +23452,8 @@ var ts; var node = _b[_a]; switch (node.kind) { case 209: - if (!node.importClause || resolver.isReferencedAliasDeclaration(node.importClause, true)) { + if (!node.importClause || + resolver.isReferencedAliasDeclaration(node.importClause, true)) { externalImports.push(node); } break; @@ -27598,8 +23475,8 @@ var ts; else { for (var _c = 0, _d = node.exportClause.elements; _c < _d.length; _c++) { var specifier = _d[_c]; - var name_17 = (specifier.propertyName || specifier.name).text; - (exportSpecifiers[name_17] || (exportSpecifiers[name_17] = [])).push(specifier); + var name_18 = (specifier.propertyName || specifier.name).text; + (exportSpecifiers[name_18] || (exportSpecifiers[name_18] = [])).push(specifier); } } break; @@ -27733,7 +23610,7 @@ var ts; } return statements.length; } - function writeHelper(text) { + function writeLines(text) { var lines = text.split(/\r\n|\r|\n/g); for (var i = 0; i < lines.length; ++i) { var line = lines[i]; @@ -27748,26 +23625,20 @@ var ts; emitDetachedComments(node); var startIndex = emitDirectivePrologues(node.statements, false); if ((languageVersion < 2) && (!extendsEmitted && resolver.getNodeCheckFlags(node) & 8)) { - writeLine(); - write("var __extends = this.__extends || function (d, b) {"); - increaseIndent(); - writeLine(); - write("for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];"); - writeLine(); - write("function __() { this.constructor = d; }"); - writeLine(); - write("__.prototype = b.prototype;"); - writeLine(); - write("d.prototype = new __();"); - decreaseIndent(); - writeLine(); - write("};"); + writeLines(extendsHelper); extendsEmitted = true; } if (!decorateEmitted && resolver.getNodeCheckFlags(node) & 512) { - writeHelper("\nvar __decorate = this.__decorate || function (decorators, target, key, value) {\n var kind = typeof (arguments.length == 2 ? value = target : value);\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n switch (kind) {\n case \"function\": value = decorator(value) || value; break;\n case \"number\": decorator(target, key, value); break;\n case \"undefined\": decorator(target, key); break;\n case \"object\": value = decorator(target, key, value) || value; break;\n }\n }\n return value;\n};"); + writeLines(decorateHelper); + if (compilerOptions.emitDecoratorMetadata) { + writeLines(metadataHelper); + } decorateEmitted = true; } + if (!paramEmitted && resolver.getNodeCheckFlags(node) & 1024) { + writeLines(paramHelper); + paramEmitted = true; + } if (ts.isExternalModule(node)) { if (languageVersion >= 2) { emitES6Module(node, startIndex); @@ -27820,7 +23691,11 @@ var ts; case 204: return shouldEmitEnumDeclaration(node); } - if (node.kind !== 179 && node.parent && node.parent.kind === 163 && node.parent.body === node && compilerOptions.target <= 1) { + if (node.kind !== 179 && + node.parent && + node.parent.kind === 163 && + node.parent.body === node && + compilerOptions.target <= 1) { return false; } return true; @@ -28047,10 +23922,7 @@ var ts; leadingComments = ts.getLeadingCommentRanges(currentSourceFile.text, pos); } leadingComments = filterComments(leadingComments, compilerOptions.removeComments); - ts.emitNewLineBeforeLeadingComments(currentSourceFile, writer, { - pos: pos, - end: pos - }, leadingComments); + ts.emitNewLineBeforeLeadingComments(currentSourceFile, writer, { pos: pos, end: pos }, leadingComments); ts.emitComments(currentSourceFile, writer, leadingComments, true, newLine, writeComment); } function emitDetachedComments(node) { @@ -28075,17 +23947,12 @@ var ts; if (nodeLine >= lastCommentLine + 2) { ts.emitNewLineBeforeLeadingComments(currentSourceFile, writer, node, leadingComments); ts.emitComments(currentSourceFile, writer, detachedComments, true, newLine, writeComment); - var currentDetachedCommentInfo = { - nodePos: node.pos, - detachedCommentEndPos: detachedComments[detachedComments.length - 1].end - }; + var currentDetachedCommentInfo = { nodePos: node.pos, detachedCommentEndPos: detachedComments[detachedComments.length - 1].end }; if (detachedCommentsInfo) { detachedCommentsInfo.push(currentDetachedCommentInfo); } else { - detachedCommentsInfo = [ - currentDetachedCommentInfo - ]; + detachedCommentsInfo = [currentDetachedCommentInfo]; } } } @@ -28095,7 +23962,10 @@ var ts; if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 42) { return currentSourceFile.text.charCodeAt(comment.pos + 2) === 33; } - else if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 47 && comment.pos + 2 < comment.end && currentSourceFile.text.charCodeAt(comment.pos + 2) === 47 && currentSourceFile.text.substring(comment.pos, comment.end).match(ts.fullTripleSlashReferencePathRegEx)) { + else if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 47 && + comment.pos + 2 < comment.end && + currentSourceFile.text.charCodeAt(comment.pos + 2) === 47 && + currentSourceFile.text.substring(comment.pos, comment.end).match(ts.fullTripleSlashReferencePathRegEx)) { return true; } } @@ -28150,7 +24020,9 @@ var ts; } catch (e) { if (onError) { - onError(e.number === unsupportedFileEncodingErrorCode ? ts.createCompilerDiagnostic(ts.Diagnostics.Unsupported_file_encoding).messageText : e.message); + onError(e.number === unsupportedFileEncodingErrorCode + ? ts.createCompilerDiagnostic(ts.Diagnostics.Unsupported_file_encoding).messageText + : e.message); } text = ""; } @@ -28188,20 +24060,12 @@ var ts; } return { getSourceFile: getSourceFile, - getDefaultLibFileName: function (options) { - return ts.combinePaths(ts.getDirectoryPath(ts.normalizePath(ts.sys.getExecutingFilePath())), ts.getDefaultLibFileName(options)); - }, + getDefaultLibFileName: function (options) { return ts.combinePaths(ts.getDirectoryPath(ts.normalizePath(ts.sys.getExecutingFilePath())), ts.getDefaultLibFileName(options)); }, writeFile: writeFile, - getCurrentDirectory: function () { - return currentDirectory || (currentDirectory = ts.sys.getCurrentDirectory()); - }, - useCaseSensitiveFileNames: function () { - return ts.sys.useCaseSensitiveFileNames; - }, + getCurrentDirectory: function () { return currentDirectory || (currentDirectory = ts.sys.getCurrentDirectory()); }, + useCaseSensitiveFileNames: function () { return ts.sys.useCaseSensitiveFileNames; }, getCanonicalFileName: getCanonicalFileName, - getNewLine: function () { - return ts.sys.newLine; - } + getNewLine: function () { return ts.sys.newLine; } }; } ts.createCompilerHost = createCompilerHost; @@ -28247,9 +24111,7 @@ var ts; var noDiagnosticsTypeChecker; var start = new Date().getTime(); host = host || createCompilerHost(options); - ts.forEach(rootNames, function (name) { - return processRootFile(name, false); - }); + ts.forEach(rootNames, function (name) { return processRootFile(name, false); }); if (!seenNoDefaultLib) { processRootFile(host.getDefaultLibFileName(options), true); } @@ -28257,35 +24119,21 @@ var ts; ts.programTime += new Date().getTime() - start; program = { getSourceFile: getSourceFile, - getSourceFiles: function () { - return files; - }, - getCompilerOptions: function () { - return options; - }, + getSourceFiles: function () { return files; }, + getCompilerOptions: function () { return options; }, getSyntacticDiagnostics: getSyntacticDiagnostics, getGlobalDiagnostics: getGlobalDiagnostics, getSemanticDiagnostics: getSemanticDiagnostics, getDeclarationDiagnostics: getDeclarationDiagnostics, getTypeChecker: getTypeChecker, getDiagnosticsProducingTypeChecker: getDiagnosticsProducingTypeChecker, - getCommonSourceDirectory: function () { - return commonSourceDirectory; - }, + getCommonSourceDirectory: function () { return commonSourceDirectory; }, emit: emit, getCurrentDirectory: host.getCurrentDirectory, - getNodeCount: function () { - return getDiagnosticsProducingTypeChecker().getNodeCount(); - }, - getIdentifierCount: function () { - return getDiagnosticsProducingTypeChecker().getIdentifierCount(); - }, - getSymbolCount: function () { - return getDiagnosticsProducingTypeChecker().getSymbolCount(); - }, - getTypeCount: function () { - return getDiagnosticsProducingTypeChecker().getTypeCount(); - } + getNodeCount: function () { return getDiagnosticsProducingTypeChecker().getNodeCount(); }, + getIdentifierCount: function () { return getDiagnosticsProducingTypeChecker().getIdentifierCount(); }, + getSymbolCount: function () { return getDiagnosticsProducingTypeChecker().getSymbolCount(); }, + getTypeCount: function () { return getDiagnosticsProducingTypeChecker().getTypeCount(); } }; return program; function getEmitHost(writeFileCallback) { @@ -28308,11 +24156,7 @@ var ts; } function emit(sourceFile, writeFileCallback) { if (options.noEmitOnError && getPreEmitDiagnostics(this).length > 0) { - return { - diagnostics: [], - sourceMaps: undefined, - emitSkipped: true - }; + return { diagnostics: [], sourceMaps: undefined, emitSkipped: true }; } var emitResolver = getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile); var start = new Date().getTime(); @@ -28357,8 +24201,7 @@ var ts; function getDeclarationDiagnosticsForFile(sourceFile) { if (!ts.isDeclarationFile(sourceFile)) { var resolver = getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile); - var writeFile = function () { - }; + var writeFile = function () { }; return ts.getDeclarationDiagnostics(getEmitHost(writeFile), resolver, sourceFile); } } @@ -28489,7 +24332,8 @@ var ts; } else if (node.kind === 205 && node.name.kind === 8 && (node.flags & 2 || ts.isDeclarationFile(file))) { ts.forEachChild(node.body, function (node) { - if (ts.isExternalModuleImportEqualsDeclaration(node) && ts.getExternalModuleImportEqualsDeclarationExpression(node).kind === 8) { + if (ts.isExternalModuleImportEqualsDeclaration(node) && + ts.getExternalModuleImportEqualsDeclarationExpression(node).kind === 8) { var nameLiteral = ts.getExternalModuleImportEqualsDeclarationExpression(node); var moduleName = nameLiteral.text; if (moduleName) { @@ -28532,16 +24376,12 @@ var ts; return; } var languageVersion = options.target || 0; - var firstExternalModuleSourceFile = ts.forEach(files, function (f) { - return ts.isExternalModule(f) ? f : undefined; - }); + var firstExternalModuleSourceFile = ts.forEach(files, function (f) { return ts.isExternalModule(f) ? f : undefined; }); if (options.separateCompilation) { if (!options.module && languageVersion < 2) { diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_separateCompilation_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES6_or_higher)); } - var firstNonExternalModuleSourceFile = ts.forEach(files, function (f) { - return !ts.isExternalModule(f) && !ts.isDeclarationFile(f) ? f : undefined; - }); + var firstNonExternalModuleSourceFile = ts.forEach(files, function (f) { return !ts.isExternalModule(f) && !ts.isDeclarationFile(f) ? f : undefined; }); if (firstNonExternalModuleSourceFile) { var span = ts.getErrorSpanForNode(firstNonExternalModuleSourceFile, firstNonExternalModuleSourceFile); diagnostics.add(ts.createFileDiagnostic(firstNonExternalModuleSourceFile, span.start, span.length, ts.Diagnostics.Cannot_compile_non_external_modules_when_the_separateCompilation_flag_is_provided)); @@ -28554,10 +24394,14 @@ var ts; if (options.module && languageVersion >= 2) { diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Cannot_compile_external_modules_into_amd_or_commonjs_when_targeting_es6_or_higher)); } - if (options.outDir || options.sourceRoot || (options.mapRoot && (!options.out || firstExternalModuleSourceFile !== undefined))) { + if (options.outDir || + options.sourceRoot || + (options.mapRoot && + (!options.out || firstExternalModuleSourceFile !== undefined))) { var commonPathComponents; ts.forEach(files, function (sourceFile) { - if (!(sourceFile.flags & 2048) && !ts.fileExtensionIs(sourceFile.fileName, ".js")) { + if (!(sourceFile.flags & 2048) + && !ts.fileExtensionIs(sourceFile.fileName, ".js")) { var sourcePathComponents = ts.getNormalizedPathComponents(sourceFile.fileName, host.getCurrentDirectory()); sourcePathComponents.pop(); if (commonPathComponents) { @@ -28738,11 +24582,7 @@ var ts; { name: "target", shortName: "t", - type: { - "es3": 0, - "es5": 1, - "es6": 2 - }, + type: { "es3": 0, "es5": 1, "es6": 2 }, description: ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES6_experimental, paramType: ts.Diagnostics.VERSION, error: ts.Diagnostics.Argument_for_target_option_must_be_es3_es5_or_es6 @@ -28758,6 +24598,11 @@ var ts; shortName: "w", type: "boolean", description: ts.Diagnostics.Watch_input_files + }, + { + name: "emitDecoratorMetadata", + type: "boolean", + experimental: true } ]; function parseCommandLine(commandLine) { @@ -28922,9 +24767,7 @@ var ts; var files = []; if (ts.hasProperty(json, "files")) { if (json["files"] instanceof Array) { - var files = ts.map(json["files"], function (s) { - return ts.combinePaths(basePath, s); - }); + var files = ts.map(json["files"], function (s) { return ts.combinePaths(basePath, s); }); } } else { @@ -28953,7 +24796,8 @@ var ts; } var language = matchResult[1]; var territory = matchResult[3]; - if (!trySetLanguageAndTerritory(language, territory, errors) && !trySetLanguageAndTerritory(language, undefined, errors)) { + if (!trySetLanguageAndTerritory(language, territory, errors) && + !trySetLanguageAndTerritory(language, undefined, errors)) { errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Unsupported_locale_0, locale)); return false; } @@ -29140,9 +24984,7 @@ var ts; } var sourceFile = hostGetSourceFile(fileName, languageVersion, onError); if (sourceFile && compilerOptions.watch) { - sourceFile.fileWatcher = ts.sys.watchFile(sourceFile.fileName, function () { - return sourceFileChanged(sourceFile); - }); + sourceFile.fileWatcher = ts.sys.watchFile(sourceFile.fileName, function () { return sourceFileChanged(sourceFile); }); } return sourceFile; } @@ -29215,10 +25057,7 @@ var ts; reportTimeStatistic("Emit time", ts.emitTime); reportTimeStatistic("Total time", ts.programTime + ts.bindTime + ts.checkTime + ts.emitTime); } - return { - program: program, - exitStatus: exitStatus - }; + return { program: program, exitStatus: exitStatus }; function compileProgram() { var diagnostics = program.getSyntacticDiagnostics(); reportDiagnostics(diagnostics); @@ -29231,7 +25070,9 @@ var ts; } } if (compilerOptions.noEmit) { - return diagnostics.length ? ts.ExitStatus.DiagnosticsPresent_OutputsSkipped : ts.ExitStatus.Success; + return diagnostics.length + ? ts.ExitStatus.DiagnosticsPresent_OutputsSkipped + : ts.ExitStatus.Success; } var emitOutput = program.emit(); reportDiagnostics(emitOutput.diagnostics); @@ -29262,12 +25103,8 @@ var ts; output += padding + "tsc @args.txt" + ts.sys.newLine; output += ts.sys.newLine; output += getDiagnosticText(ts.Diagnostics.Options_Colon) + ts.sys.newLine; - var optsList = ts.filter(ts.optionDeclarations.slice(), function (v) { - return !v.experimental; - }); - optsList.sort(function (a, b) { - return ts.compareValues(a.name.toLowerCase(), b.name.toLowerCase()); - }); + var optsList = ts.filter(ts.optionDeclarations.slice(), function (v) { return !v.experimental; }); + optsList.sort(function (a, b) { return ts.compareValues(a.name.toLowerCase(), b.name.toLowerCase()); }); var marginLength = 0; var usageColumn = []; var descriptionColumn = []; diff --git a/bin/tsserver.js b/bin/tsserver.js index e7cd07fc7a8..ba3c349c046 100644 --- a/bin/tsserver.js +++ b/bin/tsserver.js @@ -420,6 +420,9 @@ var ts; return 3; return 2; } + var idx = path.indexOf('://'); + if (idx !== -1) + return idx + 3; return 0; } ts.getRootLength = getRootLength; @@ -1063,7 +1066,6 @@ var ts; An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: { code: 1198, category: ts.DiagnosticCategory.Error, key: "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive." }, Unterminated_Unicode_escape_sequence: { code: 1199, category: ts.DiagnosticCategory.Error, key: "Unterminated Unicode escape sequence." }, Line_terminator_not_permitted_before_arrow: { code: 1200, category: ts.DiagnosticCategory.Error, key: "Line terminator not permitted before arrow." }, - A_type_annotation_on_an_export_statement_is_only_allowed_in_an_ambient_external_module_declaration: { code: 1201, category: ts.DiagnosticCategory.Error, key: "A type annotation on an export statement is only allowed in an ambient external module declaration." }, Import_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_or_import_d_from_mod_instead: { code: 1202, category: ts.DiagnosticCategory.Error, key: "Import assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"' or 'import d from \"mod\"' instead." }, Export_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_export_default_instead: { code: 1203, category: ts.DiagnosticCategory.Error, key: "Export assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'export default' instead." }, Cannot_compile_external_modules_into_amd_or_commonjs_when_targeting_es6_or_higher: { code: 1204, category: ts.DiagnosticCategory.Error, key: "Cannot compile external modules into amd or commonjs when targeting es6 or higher." }, @@ -1072,6 +1074,8 @@ var ts; Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name: { code: 1207, category: ts.DiagnosticCategory.Error, key: "Decorators cannot be applied to multiple get/set accessors of the same name." }, Cannot_compile_non_external_modules_when_the_separateCompilation_flag_is_provided: { code: 1208, category: ts.DiagnosticCategory.Error, key: "Cannot compile non-external modules when the '--separateCompilation' flag is provided." }, Ambient_const_enums_are_not_allowed_when_the_separateCompilation_flag_is_provided: { code: 1209, category: ts.DiagnosticCategory.Error, key: "Ambient const enums are not allowed when the '--separateCompilation' flag is provided." }, + Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode: { code: 1210, category: ts.DiagnosticCategory.Error, key: "Invalid use of '{0}'. Class definitions are automatically in strict mode." }, + A_class_declaration_without_the_default_modifier_must_have_a_name: { code: 1211, category: ts.DiagnosticCategory.Error, key: "A class declaration without the 'default' modifier must have a name" }, Duplicate_identifier_0: { code: 2300, category: ts.DiagnosticCategory.Error, key: "Duplicate identifier '{0}'." }, Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: { code: 2301, category: ts.DiagnosticCategory.Error, key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor." }, Static_members_cannot_reference_class_type_parameters: { code: 2302, category: ts.DiagnosticCategory.Error, key: "Static members cannot reference class type parameters." }, @@ -1247,8 +1251,8 @@ var ts; The_left_hand_side_of_a_for_of_statement_cannot_be_a_previously_defined_constant: { code: 2485, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...of' statement cannot be a previously defined constant." }, The_left_hand_side_of_a_for_in_statement_cannot_be_a_previously_defined_constant: { code: 2486, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...in' statement cannot be a previously defined constant." }, Invalid_left_hand_side_in_for_of_statement: { code: 2487, category: ts.DiagnosticCategory.Error, key: "Invalid left-hand side in 'for...of' statement." }, - The_right_hand_side_of_a_for_of_statement_must_have_a_Symbol_iterator_method_that_returns_an_iterator: { code: 2488, category: ts.DiagnosticCategory.Error, key: "The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator." }, - The_iterator_returned_by_the_right_hand_side_of_a_for_of_statement_must_have_a_next_method: { code: 2489, category: ts.DiagnosticCategory.Error, key: "The iterator returned by the right-hand side of a 'for...of' statement must have a 'next()' method." }, + Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator: { code: 2488, category: ts.DiagnosticCategory.Error, key: "Type must have a '[Symbol.iterator]()' method that returns an iterator." }, + An_iterator_must_have_a_next_method: { code: 2489, category: ts.DiagnosticCategory.Error, key: "An iterator must have a 'next()' method." }, The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property: { code: 2490, category: ts.DiagnosticCategory.Error, key: "The type returned by the 'next()' method of an iterator must have a 'value' property." }, The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: { code: 2491, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...in' statement cannot be a destructuring pattern." }, Cannot_redeclare_identifier_0_in_catch_clause: { code: 2492, category: ts.DiagnosticCategory.Error, key: "Cannot redeclare identifier '{0}' in catch clause" }, @@ -1410,6 +1414,22 @@ var ts; Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: { code: 7024, category: ts.DiagnosticCategory.Error, key: "Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions." }, You_cannot_rename_this_element: { code: 8000, category: ts.DiagnosticCategory.Error, key: "You cannot rename this element." }, You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: { code: 8001, category: ts.DiagnosticCategory.Error, key: "You cannot rename elements that are defined in the standard TypeScript library." }, + import_can_only_be_used_in_a_ts_file: { code: 8002, category: ts.DiagnosticCategory.Error, key: "'import ... =' can only be used in a .ts file." }, + export_can_only_be_used_in_a_ts_file: { code: 8003, category: ts.DiagnosticCategory.Error, key: "'export=' can only be used in a .ts file." }, + type_parameter_declarations_can_only_be_used_in_a_ts_file: { code: 8004, category: ts.DiagnosticCategory.Error, key: "'type parameter declarations' can only be used in a .ts file." }, + implements_clauses_can_only_be_used_in_a_ts_file: { code: 8005, category: ts.DiagnosticCategory.Error, key: "'implements clauses' can only be used in a .ts file." }, + interface_declarations_can_only_be_used_in_a_ts_file: { code: 8006, category: ts.DiagnosticCategory.Error, key: "'interface declarations' can only be used in a .ts file." }, + module_declarations_can_only_be_used_in_a_ts_file: { code: 8007, category: ts.DiagnosticCategory.Error, key: "'module declarations' can only be used in a .ts file." }, + type_aliases_can_only_be_used_in_a_ts_file: { code: 8008, category: ts.DiagnosticCategory.Error, key: "'type aliases' can only be used in a .ts file." }, + _0_can_only_be_used_in_a_ts_file: { code: 8009, category: ts.DiagnosticCategory.Error, key: "'{0}' can only be used in a .ts file." }, + types_can_only_be_used_in_a_ts_file: { code: 8010, category: ts.DiagnosticCategory.Error, key: "'types' can only be used in a .ts file." }, + type_arguments_can_only_be_used_in_a_ts_file: { code: 8011, category: ts.DiagnosticCategory.Error, key: "'type arguments' can only be used in a .ts file." }, + parameter_modifiers_can_only_be_used_in_a_ts_file: { code: 8012, category: ts.DiagnosticCategory.Error, key: "'parameter modifiers' can only be used in a .ts file." }, + can_only_be_used_in_a_ts_file: { code: 8013, category: ts.DiagnosticCategory.Error, key: "'?' can only be used in a .ts file." }, + property_declarations_can_only_be_used_in_a_ts_file: { code: 8014, category: ts.DiagnosticCategory.Error, key: "'property declarations' can only be used in a .ts file." }, + enum_declarations_can_only_be_used_in_a_ts_file: { code: 8015, category: ts.DiagnosticCategory.Error, key: "'enum declarations' can only be used in a .ts file." }, + type_assertion_expressions_can_only_be_used_in_a_ts_file: { code: 8016, category: ts.DiagnosticCategory.Error, key: "'type assertion expressions' can only be used in a .ts file." }, + decorators_can_only_be_used_in_a_ts_file: { code: 8017, category: ts.DiagnosticCategory.Error, key: "'decorators' can only be used in a .ts file." }, yield_expressions_are_not_currently_supported: { code: 9000, category: ts.DiagnosticCategory.Error, key: "'yield' expressions are not currently supported." }, Generators_are_not_currently_supported: { code: 9001, category: ts.DiagnosticCategory.Error, key: "Generators are not currently supported." }, Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clauses: { code: 9002, category: ts.DiagnosticCategory.Error, key: "Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses." }, @@ -1816,6 +1836,7 @@ var ts; var nextChar = text.charCodeAt(pos + 1); var hasTrailingNewLine = false; if (nextChar === 47 || nextChar === 42) { + var kind = nextChar === 47 ? 2 : 3; var startPos = pos; pos += 2; if (nextChar === 47) { @@ -1840,7 +1861,7 @@ var ts; if (!result) { result = []; } - result.push({ pos: startPos, end: pos, hasTrailingNewLine: hasTrailingNewLine }); + result.push({ pos: startPos, end: pos, hasTrailingNewLine: hasTrailingNewLine, kind: kind }); } continue; } @@ -2806,6 +2827,11 @@ var ts; shortName: "w", type: "boolean", description: ts.Diagnostics.Watch_input_files + }, + { + name: "emitDecoratorMetadata", + type: "boolean", + experimental: true } ]; function parseCommandLine(commandLine) { @@ -3089,6 +3115,13 @@ var ts; return ts.skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.pos); } ts.getTokenPosOfNode = getTokenPosOfNode; + function getNonDecoratorTokenPosOfNode(node, sourceFile) { + if (nodeIsMissing(node) || !node.decorators) { + return getTokenPosOfNode(node, sourceFile); + } + return ts.skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.decorators.end); + } + ts.getNonDecoratorTokenPosOfNode = getNonDecoratorTokenPosOfNode; function getSourceTextOfNodeFromSourceFile(sourceFile, node) { if (nodeIsMissing(node)) { return ""; @@ -3326,6 +3359,17 @@ var ts; return false; } ts.isVariableLike = isVariableLike; + function isAccessor(node) { + if (node) { + switch (node.kind) { + case 136: + case 137: + return true; + } + } + return false; + } + ts.isAccessor = isAccessor; function isFunctionLike(node) { if (node) { switch (node.kind) { @@ -3381,6 +3425,14 @@ var ts; } node = node.parent; break; + case 130: + if (node.parent.kind === 129 && isClassElement(node.parent.parent)) { + node = node.parent.parent; + } + else if (isClassElement(node.parent)) { + node = node.parent; + } + break; case 163: if (!includeArrowFunctions) { continue; @@ -3414,6 +3466,14 @@ var ts; } node = node.parent; break; + case 130: + if (node.parent.kind === 129 && isClassElement(node.parent.parent)) { + node = node.parent.parent; + } + else if (isClassElement(node.parent)) { + node = node.parent; + } + break; case 200: case 162: case 163: @@ -3578,6 +3638,8 @@ var ts; return node === parent_1.expression; case 127: return node === parent_1.expression; + case 130: + return true; default: if (isExpression(parent_1)) { return true; @@ -3741,6 +3803,7 @@ var ts; case 134: case 136: case 137: + case 133: case 140: return true; default: @@ -4703,8 +4766,7 @@ var ts; case 214: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || - visitNode(cbNode, node.expression) || - visitNode(cbNode, node.type); + visitNode(cbNode, node.expression); case 171: return visitNode(cbNode, node.head) || visitNodes(cbNodes, node.templateSpans); case 176: @@ -6497,6 +6559,9 @@ var ts; return 0; } } + if (second === 18 || second === 14) { + return 2; + } if (second === 21) { return 1; } @@ -7603,14 +7668,12 @@ var ts; } function parseClassDeclarationOrExpression(fullStart, decorators, modifiers, kind) { var savedStrictModeContext = inStrictModeContext(); - if (languageVersion >= 2) { - setStrictModeContext(true); - } + setStrictModeContext(true); var node = createNode(kind, fullStart); node.decorators = decorators; setModifiers(node, modifiers); parseExpected(69); - node.name = node.flags & 256 ? parseOptionalIdentifier() : parseIdentifier(); + node.name = parseOptionalIdentifier(); node.typeParameters = parseTypeParameters(); node.heritageClauses = parseHeritageClauses(true); if (parseExpected(14)) { @@ -7885,17 +7948,11 @@ var ts; setModifiers(node, modifiers); if (parseOptional(53)) { node.isExportEquals = true; - node.expression = parseAssignmentExpressionOrHigher(); } else { parseExpected(73); - if (parseOptional(51)) { - node.type = parseType(); - } - else { - node.expression = parseAssignmentExpressionOrHigher(); - } } + node.expression = parseAssignmentExpressionOrHigher(); parseSemicolon(); return finishNode(node); } @@ -8029,7 +8086,7 @@ var ts; if (kind !== 2) { break; } - var range = { pos: triviaScanner.getTokenPos(), end: triviaScanner.getTextPos() }; + var range = { pos: triviaScanner.getTokenPos(), end: triviaScanner.getTextPos(), kind: triviaScanner.getToken() }; var comment = sourceText.substring(range.pos, range.end); var referencePathMatchResult = ts.getFileReferenceFromReferencePath(comment, range); if (referencePathMatchResult) { @@ -8433,23 +8490,26 @@ var ts; function bindCatchVariableDeclaration(node) { bindChildren(node, 0, true); } - function bindBlockScopedVariableDeclaration(node) { + function bindBlockScopedDeclaration(node, symbolKind, symbolExcludes) { switch (blockScopeContainer.kind) { case 205: - declareModuleMember(node, 2, 107455); + declareModuleMember(node, symbolKind, symbolExcludes); break; case 227: if (ts.isExternalModule(container)) { - declareModuleMember(node, 2, 107455); + declareModuleMember(node, symbolKind, symbolExcludes); break; } default: if (!blockScopeContainer.locals) { blockScopeContainer.locals = {}; } - declareSymbol(blockScopeContainer.locals, undefined, node, 2, 107455); + declareSymbol(blockScopeContainer.locals, undefined, node, symbolKind, symbolExcludes); } - bindChildren(node, 2, false); + bindChildren(node, symbolKind, false); + } + function bindBlockScopedVariableDeclaration(node) { + bindBlockScopedDeclaration(node, 2, 107455); } function getDestructuringParameterName(node) { return "__" + ts.indexOf(node.parent.parameters, node); @@ -8528,7 +8588,7 @@ var ts; bindCatchVariableDeclaration(node); break; case 201: - bindDeclaration(node, 32, 899583, false); + bindBlockScopedDeclaration(node, 32, 899583); break; case 202: bindDeclaration(node, 64, 792992, false); @@ -8568,7 +8628,7 @@ var ts; bindChildren(node, 0, false); break; case 214: - if (node.expression && node.expression.kind === 65) { + if (node.expression.kind === 65) { declareSymbol(container.symbol.exports, container.symbol, node, 8388608, 107455 | 8388608); } else { @@ -8689,7 +8749,7 @@ var ts; isImplementationOfOverload: isImplementationOfOverload, getAliasedSymbol: resolveAlias, getEmitResolver: getEmitResolver, - getExportsOfExternalModule: getExportsOfExternalModule + getExportsOfModule: getExportsOfModuleAsArray }; var unknownSymbol = createSymbol(4 | 67108864, "unknown"); var resolvingSymbol = createSymbol(67108864, "__resolving__"); @@ -8732,6 +8792,7 @@ var ts; var stringLiteralTypes = {}; var emitExtends = false; var emitDecorate = false; + var emitParam = false; var mergedSymbols = []; var symbolLinks = []; var nodeLinks = []; @@ -9189,7 +9250,7 @@ var ts; resolveEntityName(node.propertyName || node.name, 107455 | 793056 | 1536); } function getTargetOfExportAssignment(node) { - return node.expression && resolveEntityName(node.expression, 107455 | 793056 | 1536); + return resolveEntityName(node.expression, 107455 | 793056 | 1536); } function getTargetOfAliasDeclaration(node) { switch (node.kind) { @@ -9245,7 +9306,7 @@ var ts; if (!links.referenced) { links.referenced = true; var node = getDeclarationOfAliasSymbol(symbol); - if (node.kind === 214 && node.expression) { + if (node.kind === 214) { checkExpressionCached(node.expression); } else if (node.kind === 217) { @@ -9360,6 +9421,9 @@ var ts; function getExportAssignmentSymbol(moduleSymbol) { return moduleSymbol.exports["export="]; } + function getExportsOfModuleAsArray(moduleSymbol) { + return symbolsToArray(getExportsOfModule(moduleSymbol)); + } function getExportsOfSymbol(symbol) { return symbol.flags & 1536 ? getExportsOfModule(symbol) : symbol.exports || emptySymbols; } @@ -9380,7 +9444,7 @@ var ts; visit(moduleSymbol); return result || moduleSymbol.exports; function visit(symbol) { - if (symbol.flags & 1952 && !ts.contains(visitedSymbols, symbol)) { + if (symbol && symbol.flags & 1952 && !ts.contains(visitedSymbols, symbol)) { visitedSymbols.push(symbol); if (symbol !== moduleSymbol) { if (!result) { @@ -10291,13 +10355,15 @@ var ts; } } else { - if (!isArrayLikeType(parentType)) { - error(pattern, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(parentType)); - return unknownType; - } + var elementType = checkIteratedTypeOrElementType(parentType, pattern, false); if (!declaration.dotDotDotToken) { + if (elementType.flags & 1) { + return elementType; + } var propName = "" + ts.indexOf(pattern.elements, declaration); - type = isTupleLikeType(parentType) ? getTypeOfPropertyOfType(parentType, propName) : getIndexTypeOfType(parentType, 1); + type = isTupleLikeType(parentType) + ? getTypeOfPropertyOfType(parentType, propName) + : elementType; if (!type) { if (isTupleType(parentType)) { error(declaration, ts.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2, typeToString(parentType), parentType.elementTypes.length, pattern.elements.length); @@ -10309,7 +10375,7 @@ var ts; } } else { - type = createArrayType(getIndexTypeOfType(parentType, 1)); + type = createArrayType(elementType); } } return type; @@ -10377,7 +10443,21 @@ var ts; hasSpreadElement = true; } }); - return !elementTypes.length ? anyArrayType : hasSpreadElement ? createArrayType(getUnionType(elementTypes)) : createTupleType(elementTypes); + if (!elementTypes.length) { + return languageVersion >= 2 ? createIterableType(anyType) : anyArrayType; + } + else if (hasSpreadElement) { + var unionOfElements = getUnionType(elementTypes); + if (languageVersion >= 2) { + var parent_3 = pattern.parent; + var isRestParameter = parent_3.kind === 129 && + pattern === parent_3.name && + parent_3.dotDotDotToken !== undefined; + return isRestParameter ? createArrayType(unionOfElements) : createIterableType(unionOfElements); + } + return createArrayType(unionOfElements); + } + return createTupleType(elementTypes); } function getTypeFromBindingPattern(pattern) { return pattern.kind === 150 @@ -10415,16 +10495,7 @@ var ts; return links.type = anyType; } if (declaration.kind === 214) { - var exportAssignment = declaration; - if (exportAssignment.expression) { - return links.type = checkExpression(exportAssignment.expression); - } - else if (exportAssignment.type) { - return links.type = getTypeFromTypeNodeOrHeritageClauseElement(exportAssignment.type); - } - else { - return links.type = anyType; - } + return links.type = checkExpression(declaration.expression); } links.type = resolvingType; var type = getWidenedTypeForVariableLikeDeclaration(declaration, true); @@ -11089,6 +11160,15 @@ var ts; function getSignaturesOfType(type, kind) { return getSignaturesOfObjectOrUnionType(getApparentType(type), kind); } + function typeHasCallOrConstructSignatures(type) { + var apparentType = getApparentType(type); + if (apparentType.flags & (48128 | 16384)) { + var resolved = resolveObjectOrUnionTypeMembers(type); + return resolved.callSignatures.length > 0 + || resolved.constructSignatures.length > 0; + } + return false; + } function getIndexTypeOfObjectOrUnionType(type, kind) { if (type.flags & (48128 | 16384)) { var resolved = resolveObjectOrUnionTypeMembers(type); @@ -11117,16 +11197,6 @@ var ts; } return result; } - function getExportsOfExternalModule(node) { - if (!node.moduleSpecifier) { - return emptyArray; - } - var module = resolveExternalModuleName(node, node.moduleSpecifier); - if (!module) { - return emptyArray; - } - return symbolsToArray(getExportsOfModule(module)); - } function getSignatureFromDeclaration(declaration) { var links = getNodeLinks(declaration); if (!links.resolvedSignature) { @@ -11473,6 +11543,9 @@ var ts; function getGlobalESSymbolConstructorSymbol() { return globalESSymbolConstructorSymbol || (globalESSymbolConstructorSymbol = getGlobalValueSymbol("Symbol")); } + function createIterableType(elementType) { + return globalIterableType !== emptyObjectType ? createTypeReference(globalIterableType, [elementType]) : emptyObjectType; + } function createArrayType(elementType) { var arrayType = globalArrayType || getDeclaredTypeOfSymbol(globalArraySymbol); return arrayType !== emptyObjectType ? createTypeReference(arrayType, [elementType]) : emptyObjectType; @@ -12955,10 +13028,10 @@ var ts; } function resolveLocation(node) { var containerNodes = []; - for (var parent_3 = node.parent; parent_3; parent_3 = parent_3.parent) { - if ((ts.isExpression(parent_3) || ts.isObjectLiteralMethod(node)) && - isContextSensitive(parent_3)) { - containerNodes.unshift(parent_3); + for (var parent_4 = node.parent; parent_4; parent_4 = parent_4.parent) { + if ((ts.isExpression(parent_4) || ts.isObjectLiteralMethod(node)) && + isContextSensitive(parent_4)) { + containerNodes.unshift(parent_4); } } ts.forEach(containerNodes, function (node) { getTypeOfNode(node); }); @@ -13252,7 +13325,7 @@ var ts; needToCaptureLexicalThis = false; while (container && container.kind === 163) { container = ts.getSuperContainer(container, true); - needToCaptureLexicalThis = true; + needToCaptureLexicalThis = languageVersion < 2; } if (container && container.parent && container.parent.kind === 201) { if (container.flags & 128) { @@ -13294,7 +13367,7 @@ var ts; return returnType; } } - if (container.kind === 127) { + if (container && container.kind === 127) { error(node, ts.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); } else if (isCallExpression) { @@ -13577,12 +13650,8 @@ var ts; return false; } function checkSpreadElementExpression(node, contextualMapper) { - var type = checkExpressionCached(node.expression, contextualMapper); - if (!isArrayLikeType(type)) { - error(node.expression, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(type)); - return unknownType; - } - return type; + var arrayOrIterableType = checkExpressionCached(node.expression, contextualMapper); + return checkIteratedTypeOrElementType(arrayOrIterableType, node.expression, false); } function checkArrayLiteral(node, contextualMapper) { var elements = node.elements; @@ -13591,16 +13660,12 @@ var ts; } var hasSpreadElement = false; var elementTypes = []; - ts.forEach(elements, function (e) { + for (var _i = 0; _i < elements.length; _i++) { + var e = elements[_i]; var type = checkExpression(e, contextualMapper); - if (e.kind === 173) { - elementTypes.push(getIndexTypeOfType(type, 1) || anyType); - hasSpreadElement = true; - } - else { - elementTypes.push(type); - } - }); + elementTypes.push(type); + hasSpreadElement = hasSpreadElement || e.kind === 173; + } if (!hasSpreadElement) { var contextualType = getContextualType(node); if (contextualType && contextualTypeIsTupleLikeType(contextualType) || isAssignmentTarget(node)) { @@ -13913,19 +13978,19 @@ var ts; for (var _i = 0; _i < signatures.length; _i++) { var signature = signatures[_i]; var symbol = signature.declaration && getSymbolOfNode(signature.declaration); - var parent_4 = signature.declaration && signature.declaration.parent; + var parent_5 = signature.declaration && signature.declaration.parent; if (!lastSymbol || symbol === lastSymbol) { - if (lastParent && parent_4 === lastParent) { + if (lastParent && parent_5 === lastParent) { index++; } else { - lastParent = parent_4; + lastParent = parent_5; index = cutoffIndex; } } else { index = cutoffIndex = result.length; - lastParent = parent_4; + lastParent = parent_5; } lastSymbol = symbol; if (signature.hasStringLiterals) { @@ -14023,7 +14088,7 @@ var ts; for (var i = 0; i < args.length; i++) { var arg = args[i]; if (arg.kind !== 175) { - var paramType = getTypeAtPosition(signature, arg.kind === 173 ? -1 : i); + var paramType = getTypeAtPosition(signature, i); var argType = void 0; if (i === 0 && args[i].parent.kind === 159) { argType = globalTemplateStringsArrayType; @@ -14039,7 +14104,7 @@ var ts; for (var i = 0; i < args.length; i++) { if (excludeArgument[i] === false) { var arg = args[i]; - var paramType = getTypeAtPosition(signature, arg.kind === 173 ? -1 : i); + var paramType = getTypeAtPosition(signature, i); inferTypes(context, checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType); } } @@ -14066,7 +14131,7 @@ var ts; for (var i = 0; i < args.length; i++) { var arg = args[i]; if (arg.kind !== 175) { - var paramType = getTypeAtPosition(signature, arg.kind === 173 ? -1 : i); + var paramType = getTypeAtPosition(signature, i); var argType = i === 0 && node.kind === 159 ? globalTemplateStringsArrayType : arg.kind === 8 && !reportErrors ? getStringLiteralType(arg) : checkExpressionWithContextualType(arg, paramType, excludeArgument && excludeArgument[i] ? identityMapper : undefined); @@ -14364,14 +14429,9 @@ var ts; return targetType; } function getTypeAtPosition(signature, pos) { - if (pos >= 0) { - return signature.hasRestParameter ? - pos < signature.parameters.length - 1 ? getTypeOfSymbol(signature.parameters[pos]) : getRestTypeOfSignature(signature) : - pos < signature.parameters.length ? getTypeOfSymbol(signature.parameters[pos]) : anyType; - } return signature.hasRestParameter ? - getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]) : - anyArrayType; + pos < signature.parameters.length - 1 ? getTypeOfSymbol(signature.parameters[pos]) : getRestTypeOfSignature(signature) : + pos < signature.parameters.length ? getTypeOfSymbol(signature.parameters[pos]) : anyType; } function assignContextualParameterTypes(signature, context, mapper) { var len = signature.parameters.length - (signature.hasRestParameter ? 1 : 0); @@ -14698,10 +14758,7 @@ var ts; return sourceType; } function checkArrayLiteralAssignment(node, sourceType, contextualMapper) { - if (!isArrayLikeType(sourceType)) { - error(node, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(sourceType)); - return sourceType; - } + var elementType = checkIteratedTypeOrElementType(sourceType, node, false); var elements = node.elements; for (var i = 0; i < elements.length; i++) { var e = elements[i]; @@ -14709,8 +14766,9 @@ var ts; if (e.kind !== 173) { var propName = "" + i; var type = sourceType.flags & 1 ? sourceType : - isTupleLikeType(sourceType) ? getTypeOfPropertyOfType(sourceType, propName) : - getIndexTypeOfType(sourceType, 1); + isTupleLikeType(sourceType) + ? getTypeOfPropertyOfType(sourceType, propName) + : elementType; if (type) { checkDestructuringAssignment(e, type, contextualMapper); } @@ -14725,7 +14783,7 @@ var ts; } else { if (i === elements.length - 1) { - checkReferenceAssignment(e.expression, sourceType, contextualMapper); + checkReferenceAssignment(e.expression, createArrayType(elementType), contextualMapper); } else { error(e, ts.Diagnostics.A_rest_element_must_be_last_in_an_array_destructuring_pattern); @@ -15584,21 +15642,71 @@ var ts; break; } } + function checkTypeNodeAsExpression(node) { + if (node && node.kind === 141) { + var type = getTypeFromTypeNodeOrHeritageClauseElement(node); + var shouldCheckIfUnknownType = type === unknownType && compilerOptions.separateCompilation; + if (!type || (!shouldCheckIfUnknownType && type.flags & (1048703 | 132 | 258))) { + return; + } + if (shouldCheckIfUnknownType || type.symbol.valueDeclaration) { + checkExpressionOrQualifiedName(node.typeName); + } + } + } + function checkTypeAnnotationAsExpression(node) { + switch (node.kind) { + case 132: + checkTypeNodeAsExpression(node.type); + break; + case 129: + checkTypeNodeAsExpression(node.type); + break; + case 134: + checkTypeNodeAsExpression(node.type); + break; + case 136: + checkTypeNodeAsExpression(node.type); + break; + case 137: + checkTypeNodeAsExpression(getSetAccessorTypeAnnotationNode(node)); + break; + } + } + function checkParameterTypeAnnotationsAsExpressions(node) { + for (var _i = 0, _a = node.parameters; _i < _a.length; _i++) { + var parameter = _a[_i]; + checkTypeAnnotationAsExpression(parameter); + } + } function checkDecorators(node) { if (!node.decorators) { return; } - switch (node.kind) { - case 201: - case 134: - case 136: - case 137: - case 132: - case 129: - emitDecorate = true; - break; - default: - return; + if (!ts.nodeCanBeDecorated(node)) { + return; + } + if (compilerOptions.emitDecoratorMetadata) { + switch (node.kind) { + case 201: + var constructor = ts.getFirstConstructorWithBody(node); + if (constructor) { + checkParameterTypeAnnotationsAsExpressions(constructor); + } + break; + case 134: + checkParameterTypeAnnotationsAsExpressions(node); + case 137: + case 136: + case 132: + case 129: + checkTypeAnnotationAsExpression(node); + break; + } + } + emitDecorate = true; + if (node.kind === 129) { + emitParam = true; } ts.forEach(node.decorators, checkDecorator); } @@ -15973,21 +16081,29 @@ var ts; } function checkRightHandSideOfForOf(rhsExpression) { var expressionType = getTypeOfExpression(rhsExpression); - return languageVersion >= 2 - ? checkIteratedType(expressionType, rhsExpression) - : checkElementTypeOfArrayOrString(expressionType, rhsExpression); + return checkIteratedTypeOrElementType(expressionType, rhsExpression, true); } - function checkIteratedType(iterable, expressionForError) { + function checkIteratedTypeOrElementType(inputType, errorNode, allowStringInput) { + if (languageVersion >= 2) { + return checkIteratedType(inputType, errorNode) || anyType; + } + if (allowStringInput) { + return checkElementTypeOfArrayOrString(inputType, errorNode); + } + if (isArrayLikeType(inputType)) { + return getIndexTypeOfType(inputType, 1); + } + error(errorNode, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(inputType)); + return unknownType; + } + function checkIteratedType(iterable, errorNode) { ts.Debug.assert(languageVersion >= 2); - var iteratedType = getIteratedType(iterable, expressionForError); - if (expressionForError && iteratedType) { - var completeIterableType = globalIterableType !== emptyObjectType - ? createTypeReference(globalIterableType, [iteratedType]) - : emptyObjectType; - checkTypeAssignableTo(iterable, completeIterableType, expressionForError); + var iteratedType = getIteratedType(iterable, errorNode); + if (errorNode && iteratedType) { + checkTypeAssignableTo(iterable, createIterableType(iteratedType), errorNode); } return iteratedType; - function getIteratedType(iterable, expressionForError) { + function getIteratedType(iterable, errorNode) { // We want to treat type as an iterable, and get the type it is an iterable of. The iterable // must have the following structure (annotated with the names of the variables below): // @@ -16016,14 +16132,17 @@ var ts; if (allConstituentTypesHaveKind(iterable, 1)) { return undefined; } + if ((iterable.flags & 4096) && iterable.target === globalIterableType) { + return iterable.typeArguments[0]; + } var iteratorFunction = getTypeOfPropertyOfType(iterable, ts.getPropertyNameForKnownSymbolName("iterator")); if (iteratorFunction && allConstituentTypesHaveKind(iteratorFunction, 1)) { return undefined; } var iteratorFunctionSignatures = iteratorFunction ? getSignaturesOfType(iteratorFunction, 0) : emptyArray; if (iteratorFunctionSignatures.length === 0) { - if (expressionForError) { - error(expressionForError, ts.Diagnostics.The_right_hand_side_of_a_for_of_statement_must_have_a_Symbol_iterator_method_that_returns_an_iterator); + if (errorNode) { + error(errorNode, ts.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator); } return undefined; } @@ -16037,8 +16156,8 @@ var ts; } var iteratorNextFunctionSignatures = iteratorNextFunction ? getSignaturesOfType(iteratorNextFunction, 0) : emptyArray; if (iteratorNextFunctionSignatures.length === 0) { - if (expressionForError) { - error(expressionForError, ts.Diagnostics.The_iterator_returned_by_the_right_hand_side_of_a_for_of_statement_must_have_a_next_method); + if (errorNode) { + error(errorNode, ts.Diagnostics.An_iterator_must_have_a_next_method); } return undefined; } @@ -16048,22 +16167,22 @@ var ts; } var iteratorNextValue = getTypeOfPropertyOfType(iteratorNextResult, "value"); if (!iteratorNextValue) { - if (expressionForError) { - error(expressionForError, ts.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property); + if (errorNode) { + error(errorNode, ts.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property); } return undefined; } return iteratorNextValue; } } - function checkElementTypeOfArrayOrString(arrayOrStringType, expressionForError) { + function checkElementTypeOfArrayOrString(arrayOrStringType, errorNode) { ts.Debug.assert(languageVersion < 2); var arrayType = removeTypesFromUnionType(arrayOrStringType, 258, true, true); var hasStringConstituent = arrayOrStringType !== arrayType; var reportedError = false; if (hasStringConstituent) { if (languageVersion < 1) { - error(expressionForError, ts.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); + error(errorNode, ts.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); reportedError = true; } if (arrayType === emptyObjectType) { @@ -16075,7 +16194,7 @@ var ts; var diagnostic = hasStringConstituent ? ts.Diagnostics.Type_0_is_not_an_array_type : ts.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type; - error(expressionForError, diagnostic, typeToString(arrayType)); + error(errorNode, diagnostic, typeToString(arrayType)); } return hasStringConstituent ? stringType : unknownType; } @@ -16314,6 +16433,9 @@ var ts; if (node.parent.kind !== 206 && node.parent.kind !== 227) { grammarErrorOnNode(node, ts.Diagnostics.class_declarations_are_only_supported_directly_inside_a_module_or_as_a_top_level_declaration); } + if (!node.name && !(node.flags & 256)) { + grammarErrorOnFirstToken(node, ts.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name); + } checkGrammarClassDeclarationHeritageClauses(node); checkDecorators(node); if (node.name) { @@ -16907,19 +17029,11 @@ var ts; if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499)) { grammarErrorOnFirstToken(node, ts.Diagnostics.An_export_assignment_cannot_have_modifiers); } - if (node.expression) { - if (node.expression.kind === 65) { - markExportAsReferenced(node); - } - else { - checkExpressionCached(node.expression); - } + if (node.expression.kind === 65) { + markExportAsReferenced(node); } - if (node.type) { - checkSourceElement(node.type); - if (!ts.isInAmbientContext(node)) { - grammarErrorOnFirstToken(node.type, ts.Diagnostics.A_type_annotation_on_an_export_statement_is_only_allowed_in_an_ambient_external_module_declaration); - } + else { + checkExpressionCached(node.expression); } checkExternalModuleExports(container); if (node.isExportEquals && languageVersion >= 2) { @@ -17170,6 +17284,9 @@ var ts; if (emitDecorate) { links.flags |= 512; } + if (emitParam) { + links.flags |= 1024; + } links.flags |= 1; } } @@ -17351,23 +17468,23 @@ var ts; case 126: case 155: ts.Debug.assert(node.kind === 65 || node.kind === 126 || node.kind === 155, "'node' was expected to be a qualified name, identifier or property access in 'isTypeNode'."); - var parent_5 = node.parent; - if (parent_5.kind === 144) { + var parent_6 = node.parent; + if (parent_6.kind === 144) { return false; } - if (141 <= parent_5.kind && parent_5.kind <= 149) { + if (141 <= parent_6.kind && parent_6.kind <= 149) { return true; } - switch (parent_5.kind) { + switch (parent_6.kind) { case 177: return true; case 128: - return node === parent_5.constraint; + return node === parent_6.constraint; case 132: case 131: case 129: case 198: - return node === parent_5.type; + return node === parent_6.type; case 200: case 162: case 163: @@ -17376,16 +17493,16 @@ var ts; case 133: case 136: case 137: - return node === parent_5.type; + return node === parent_6.type; case 138: case 139: case 140: - return node === parent_5.type; + return node === parent_6.type; case 160: - return node === parent_5.type; + return node === parent_6.type; case 157: case 158: - return parent_5.typeArguments && ts.indexOf(parent_5.typeArguments, node) >= 0; + return parent_6.typeArguments && ts.indexOf(parent_6.typeArguments, node) >= 0; case 159: return false; } @@ -17703,6 +17820,150 @@ var ts; } return undefined; } + function serializeEntityName(node, getGeneratedNameForNode, fallbackPath) { + if (node.kind === 65) { + var substitution = getExpressionNameSubstitution(node, getGeneratedNameForNode); + var text = substitution || node.text; + if (fallbackPath) { + fallbackPath.push(text); + } + else { + return text; + } + } + else { + var left = serializeEntityName(node.left, getGeneratedNameForNode, fallbackPath); + var right = serializeEntityName(node.right, getGeneratedNameForNode, fallbackPath); + if (!fallbackPath) { + return left + "." + right; + } + } + } + function serializeTypeReferenceNode(node, getGeneratedNameForNode) { + var type = getTypeFromTypeReference(node); + if (type.flags & 16) { + return "void 0"; + } + else if (type.flags & 8) { + return "Boolean"; + } + else if (type.flags & 132) { + return "Number"; + } + else if (type.flags & 258) { + return "String"; + } + else if (type.flags & 8192) { + return "Array"; + } + else if (type.flags & 1048576) { + return "Symbol"; + } + else if (type === unknownType) { + var fallbackPath = []; + serializeEntityName(node.typeName, getGeneratedNameForNode, fallbackPath); + return fallbackPath; + } + else if (type.symbol && type.symbol.valueDeclaration) { + return serializeEntityName(node.typeName, getGeneratedNameForNode); + } + else if (typeHasCallOrConstructSignatures(type)) { + return "Function"; + } + return "Object"; + } + function serializeTypeNode(node, getGeneratedNameForNode) { + if (node) { + switch (node.kind) { + case 99: + return "void 0"; + case 149: + return serializeTypeNode(node.type, getGeneratedNameForNode); + case 142: + case 143: + return "Function"; + case 146: + case 147: + return "Array"; + case 113: + return "Boolean"; + case 121: + case 8: + return "String"; + case 119: + return "Number"; + case 141: + return serializeTypeReferenceNode(node, getGeneratedNameForNode); + case 144: + case 145: + case 148: + case 112: + break; + default: + ts.Debug.fail("Cannot serialize unexpected type node."); + break; + } + } + return "Object"; + } + function serializeTypeOfNode(node, getGeneratedNameForNode) { + switch (node.kind) { + case 201: return "Function"; + case 132: return serializeTypeNode(node.type, getGeneratedNameForNode); + case 129: return serializeTypeNode(node.type, getGeneratedNameForNode); + case 136: return serializeTypeNode(node.type, getGeneratedNameForNode); + case 137: return serializeTypeNode(getSetAccessorTypeAnnotationNode(node), getGeneratedNameForNode); + } + if (ts.isFunctionLike(node)) { + return "Function"; + } + return "void 0"; + } + function serializeParameterTypesOfNode(node, getGeneratedNameForNode) { + if (node) { + var valueDeclaration; + if (node.kind === 201) { + valueDeclaration = ts.getFirstConstructorWithBody(node); + } + else if (ts.isFunctionLike(node) && ts.nodeIsPresent(node.body)) { + valueDeclaration = node; + } + if (valueDeclaration) { + var result; + var parameters = valueDeclaration.parameters; + var parameterCount = parameters.length; + if (parameterCount > 0) { + result = new Array(parameterCount); + for (var i = 0; i < parameterCount; i++) { + if (parameters[i].dotDotDotToken) { + var parameterType = parameters[i].type; + if (parameterType.kind === 146) { + parameterType = parameterType.elementType; + } + else if (parameterType.kind === 141 && parameterType.typeArguments && parameterType.typeArguments.length === 1) { + parameterType = parameterType.typeArguments[0]; + } + else { + parameterType = undefined; + } + result[i] = serializeTypeNode(parameterType, getGeneratedNameForNode); + } + else { + result[i] = serializeTypeOfNode(parameters[i], getGeneratedNameForNode); + } + } + return result; + } + } + } + return emptyArray; + } + function serializeReturnTypeOfNode(node, getGeneratedNameForNode) { + if (node && ts.isFunctionLike(node)) { + return serializeTypeNode(node.type, getGeneratedNameForNode); + } + return "void 0"; + } function writeTypeOfDeclaration(declaration, enclosingDeclaration, flags, writer) { var symbol = getSymbolOfNode(declaration); var type = symbol && !(symbol.flags & (2048 | 131072)) @@ -17769,7 +18030,10 @@ var ts; getConstantValue: getConstantValue, resolvesToSomeValue: resolvesToSomeValue, collectLinkedAliases: collectLinkedAliases, - getBlockScopedVariableId: getBlockScopedVariableId + getBlockScopedVariableId: getBlockScopedVariableId, + serializeTypeOfNode: serializeTypeOfNode, + serializeParameterTypesOfNode: serializeParameterTypesOfNode, + serializeReturnTypeOfNode: serializeReturnTypeOfNode }; } function initializeTypeChecker() { @@ -17816,15 +18080,15 @@ var ts; return false; } if (!ts.nodeCanBeDecorated(node)) { - return grammarErrorOnNode(node, ts.Diagnostics.Decorators_are_not_valid_here); + return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_not_valid_here); } else if (languageVersion < 1) { - return grammarErrorOnNode(node, ts.Diagnostics.Decorators_are_only_available_when_targeting_ECMAScript_5_and_higher); + return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_only_available_when_targeting_ECMAScript_5_and_higher); } else if (node.kind === 136 || node.kind === 137) { var accessors = ts.getAllAccessorDeclarations(node.parent.members, node); if (accessors.firstAccessor.decorators && node === accessors.secondAccessor) { - return grammarErrorOnNode(node, ts.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); + return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); } } return false; @@ -18437,7 +18701,9 @@ var ts; var elements = name.elements; for (var _i = 0; _i < elements.length; _i++) { var element = elements[_i]; - checkGrammarNameInLetOrConstDeclarations(element.name); + if (element.kind !== 175) { + checkGrammarNameInLetOrConstDeclarations(element.name); + } } } } @@ -18542,7 +18808,12 @@ var ts; var identifier = name; if (contextNode && (contextNode.parserContextFlags & 1) && ts.isEvalOrArgumentsIdentifier(identifier)) { var nameText = ts.declarationNameToString(identifier); - return grammarErrorOnNode(identifier, ts.Diagnostics.Invalid_use_of_0_in_strict_mode, nameText); + if (ts.getAncestor(name, 201) || ts.getAncestor(name, 174)) { + return grammarErrorOnNode(identifier, ts.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode, nameText); + } + else { + return grammarErrorOnNode(identifier, ts.Diagnostics.Invalid_use_of_0_in_strict_mode, nameText); + } } } } @@ -18984,20 +19255,35 @@ var ts; enclosingDeclaration = node; emitLines(node.statements); } + function getExportDefaultTempVariableName() { + var baseName = "_default"; + if (!ts.hasProperty(currentSourceFile.identifiers, baseName)) { + return baseName; + } + var count = 0; + while (true) { + var name_12 = baseName + "_" + (++count); + if (!ts.hasProperty(currentSourceFile.identifiers, name_12)) { + return name_12; + } + } + } function emitExportAssignment(node) { - write(node.isExportEquals ? "export = " : "export default "); if (node.expression.kind === 65) { + write(node.isExportEquals ? "export = " : "export default "); writeTextOfNode(currentSourceFile, node.expression); } else { + var tempVarName = getExportDefaultTempVariableName(); + write("declare var "); + write(tempVarName); write(": "); - if (node.type) { - emitType(node.type); - } - else { - writer.getSymbolAccessibilityDiagnostic = getDefaultExportAccessibilityDiagnostic; - resolver.writeTypeOfExpression(node.expression, enclosingDeclaration, 2, writer); - } + writer.getSymbolAccessibilityDiagnostic = getDefaultExportAccessibilityDiagnostic; + resolver.writeTypeOfExpression(node.expression, enclosingDeclaration, 2, writer); + write(";"); + writeLine(); + write(node.isExportEquals ? "export = " : "export default "); + write(tempVarName); } write(";"); writeLine(); @@ -19938,6 +20224,10 @@ var ts; } ts.isExternalModuleOrDeclarationFile = isExternalModuleOrDeclarationFile; function emitFiles(resolver, host, targetSourceFile) { + var extendsHelper = "\nvar __extends = this.__extends || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n __.prototype = b.prototype;\n d.prototype = new __();\n};"; + var decorateHelper = "\nvar __decorate = this.__decorate || (typeof Reflect === \"object\" && Reflect.decorate) || function (decorators, target, key, desc) {\n switch (arguments.length) {\n case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);\n case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);\n case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);\n }\n};"; + var metadataHelper = "\nvar __metadata = this.__metadata || (typeof Reflect === \"object\" && Reflect.metadata) || function () { };"; + var paramHelper = "\nvar __param = this.__param || function(index, decorator) { return function (target, key) { decorator(target, key, index); } };"; var compilerOptions = host.getCompilerOptions(); var languageVersion = compilerOptions.target || 0; var sourceMapDataList = compilerOptions.sourceMap ? [] : undefined; @@ -20001,6 +20291,7 @@ var ts; var computedPropertyNamesToGeneratedNames; var extendsEmitted = false; var decorateEmitted = false; + var paramEmitted = false; var tempFlags = 0; var tempVariables; var tempParameters; @@ -20055,9 +20346,9 @@ var ts; var count = tempFlags & 268435455; tempFlags++; if (count !== 8 && count !== 13) { - var name_12 = count < 26 ? "_" + String.fromCharCode(97 + count) : "_" + (count - 26); - if (isUniqueName(name_12)) { - return name_12; + var name_13 = count < 26 ? "_" + String.fromCharCode(97 + count) : "_" + (count - 26); + if (isUniqueName(name_13)) { + return name_13; } } } @@ -20085,8 +20376,8 @@ var ts; } function generateNameForModuleOrEnum(node) { if (node.name.kind === 65) { - var name_13 = node.name.text; - assignGeneratedName(node, isUniqueLocalName(name_13, node) ? name_13 : makeUniqueName(name_13)); + var name_14 = node.name.text; + assignGeneratedName(node, isUniqueLocalName(name_14, node) ? name_14 : makeUniqueName(name_14)); } } function generateNameForImportOrExportDeclaration(node) { @@ -20114,6 +20405,7 @@ var ts; switch (node.kind) { case 200: case 201: + case 174: generateNameForFunctionOrClassDeclaration(node); break; case 205: @@ -20265,8 +20557,8 @@ var ts; if (scopeName) { var parentIndex = getSourceMapNameIndex(); if (parentIndex !== -1) { - var name_14 = node.name; - if (!name_14 || name_14.kind !== 127) { + var name_15 = node.name; + if (!name_15 || name_15.kind !== 127) { scopeName = "." + scopeName; } scopeName = sourceMapData.sourceMapNames[parentIndex] + scopeName; @@ -20293,9 +20585,9 @@ var ts; node.kind === 201 || node.kind === 204) { if (node.name) { - var name_15 = node.name; - scopeName = name_15.kind === 127 - ? ts.getTextOfNode(name_15) + var name_16 = node.name; + scopeName = name_16.kind === 127 + ? ts.getTextOfNode(name_16) : node.name.text; } recordScopeNameStart(scopeName); @@ -20497,27 +20789,32 @@ var ts; writeLine(); } } - function emitList(nodes, start, count, multiLine, trailingComma) { + function emitList(nodes, start, count, multiLine, trailingComma, leadingComma, noTrailingNewLine, emitNode) { + if (!emitNode) { + emitNode = emit; + } for (var i = 0; i < count; i++) { if (multiLine) { - if (i) { + if (i || leadingComma) { write(","); } writeLine(); } else { - if (i) { + if (i || leadingComma) { write(", "); } } - emit(nodes[start + i]); + emitNode(nodes[start + i]); + leadingComma = true; } if (trailingComma) { write(","); } - if (multiLine) { + if (multiLine && !noTrailingNewLine) { writeLine(); } + return count; } function emitCommaList(nodes) { if (nodes) { @@ -20724,15 +21021,13 @@ var ts; if (!computedPropertyNamesToGeneratedNames) { computedPropertyNamesToGeneratedNames = []; } - var generatedName = computedPropertyNamesToGeneratedNames[node.id]; + var generatedName = computedPropertyNamesToGeneratedNames[ts.getNodeId(node)]; if (generatedName) { write(generatedName); return; } - var generatedVariable = createTempVariable(0); - generatedName = generatedVariable.text; - recordTempDeclaration(generatedVariable); - computedPropertyNamesToGeneratedNames[node.id] = generatedName; + generatedName = createAndRecordTempVariable(0).text; + computedPropertyNamesToGeneratedNames[ts.getNodeId(node)] = generatedName; write(generatedName); write(" = "); } @@ -20944,147 +21239,133 @@ var ts; emitListWithSpread(elements, (node.flags & 512) !== 0, elements.hasTrailingComma); } } - function emitDownlevelObjectLiteralWithComputedProperties(node, firstComputedPropertyIndex) { - var parenthesizedObjectLiteral = createDownlevelObjectLiteralWithComputedProperties(node, firstComputedPropertyIndex); - return emit(parenthesizedObjectLiteral); - } - function createDownlevelObjectLiteralWithComputedProperties(originalObjectLiteral, firstComputedPropertyIndex) { - var tempVar = createAndRecordTempVariable(0); - var initialObjectLiteral = ts.createSynthesizedNode(154); - initialObjectLiteral.properties = originalObjectLiteral.properties.slice(0, firstComputedPropertyIndex); - initialObjectLiteral.flags |= 512; - var propertyPatches = createBinaryExpression(tempVar, 53, initialObjectLiteral); - ts.forEach(originalObjectLiteral.properties, function (property) { - var patchedProperty = tryCreatePatchingPropertyAssignment(originalObjectLiteral, tempVar, property); - if (patchedProperty) { - propertyPatches = createBinaryExpression(propertyPatches, 23, patchedProperty); + function emitObjectLiteralBody(node, numElements) { + if (numElements === 0) { + write("{}"); + return; + } + write("{"); + if (numElements > 0) { + var properties = node.properties; + if (numElements === properties.length) { + emitLinePreservingList(node, properties, languageVersion >= 1, true); } - }); - propertyPatches = createBinaryExpression(propertyPatches, 23, createIdentifier(tempVar.text, true)); - var result = createParenthesizedExpression(propertyPatches); - return result; - } - function addCommentsToSynthesizedNode(node, leadingCommentRanges, trailingCommentRanges) { - node.leadingCommentRanges = leadingCommentRanges; - node.trailingCommentRanges = trailingCommentRanges; - } - function tryCreatePatchingPropertyAssignment(objectLiteral, tempVar, property) { - var leftHandSide = createMemberAccessForPropertyName(tempVar, property.name); - var maybeRightHandSide = tryGetRightHandSideOfPatchingPropertyAssignment(objectLiteral, property); - return maybeRightHandSide && createBinaryExpression(leftHandSide, 53, maybeRightHandSide, true); - } - function tryGetRightHandSideOfPatchingPropertyAssignment(objectLiteral, property) { - switch (property.kind) { - case 224: - return property.initializer; - case 225: - return createIdentifier(resolver.getExpressionNameSubstitution(property.name, getGeneratedNameForNode)); - case 134: - return createFunctionExpression(property.parameters, property.body); - case 136: - case 137: - var _a = ts.getAllAccessorDeclarations(objectLiteral.properties, property), firstAccessor = _a.firstAccessor, getAccessor = _a.getAccessor, setAccessor = _a.setAccessor; - if (firstAccessor !== property) { - return undefined; + else { + var multiLine = (node.flags & 512) !== 0; + if (!multiLine) { + write(" "); } - var propertyDescriptor = ts.createSynthesizedNode(154); - var descriptorProperties = []; - if (getAccessor) { - var getProperty_1 = createPropertyAssignment(createIdentifier("get"), createFunctionExpression(getAccessor.parameters, getAccessor.body)); - descriptorProperties.push(getProperty_1); + else { + increaseIndent(); } - if (setAccessor) { - var setProperty = createPropertyAssignment(createIdentifier("set"), createFunctionExpression(setAccessor.parameters, setAccessor.body)); - descriptorProperties.push(setProperty); + emitList(properties, 0, numElements, multiLine, false); + if (!multiLine) { + write(" "); } - var trueExpr = ts.createSynthesizedNode(95); - var enumerableTrue = createPropertyAssignment(createIdentifier("enumerable"), trueExpr); - descriptorProperties.push(enumerableTrue); - var configurableTrue = createPropertyAssignment(createIdentifier("configurable"), trueExpr); - descriptorProperties.push(configurableTrue); - propertyDescriptor.properties = descriptorProperties; - var objectDotDefineProperty = createPropertyAccessExpression(createIdentifier("Object"), createIdentifier("defineProperty")); - return createCallExpression(objectDotDefineProperty, createNodeArray(propertyDescriptor)); - default: - ts.Debug.fail("ObjectLiteralElement kind " + property.kind + " not accounted for."); + else { + decreaseIndent(); + } + } } + write("}"); } - function createParenthesizedExpression(expression) { - var result = ts.createSynthesizedNode(161); - result.expression = expression; - return result; - } - function createNodeArray() { - var elements = []; - for (var _a = 0; _a < arguments.length; _a++) { - elements[_a - 0] = arguments[_a]; + function emitDownlevelObjectLiteralWithComputedProperties(node, firstComputedPropertyIndex) { + var multiLine = (node.flags & 512) !== 0; + var properties = node.properties; + write("("); + if (multiLine) { + increaseIndent(); } - var result = elements; - result.pos = -1; - result.end = -1; - return result; - } - function createBinaryExpression(left, operator, right, startsOnNewLine) { - var result = ts.createSynthesizedNode(169, startsOnNewLine); - result.operatorToken = ts.createSynthesizedNode(operator); - result.left = left; - result.right = right; - return result; - } - function createExpressionStatement(expression) { - var result = ts.createSynthesizedNode(182); - result.expression = expression; - return result; - } - function createMemberAccessForPropertyName(expression, memberName) { - if (memberName.kind === 65) { - return createPropertyAccessExpression(expression, memberName); + var tempVar = createAndRecordTempVariable(0); + emit(tempVar); + write(" = "); + emitObjectLiteralBody(node, firstComputedPropertyIndex); + for (var i = firstComputedPropertyIndex, n = properties.length; i < n; i++) { + writeComma(); + var property = properties[i]; + emitStart(property); + if (property.kind === 136 || property.kind === 137) { + var accessors = ts.getAllAccessorDeclarations(node.properties, property); + if (property !== accessors.firstAccessor) { + continue; + } + write("Object.defineProperty("); + emit(tempVar); + write(", "); + emitStart(node.name); + emitExpressionForPropertyName(property.name); + emitEnd(property.name); + write(", {"); + increaseIndent(); + if (accessors.getAccessor) { + writeLine(); + emitLeadingComments(accessors.getAccessor); + write("get: "); + emitStart(accessors.getAccessor); + write("function "); + emitSignatureAndBody(accessors.getAccessor); + emitEnd(accessors.getAccessor); + emitTrailingComments(accessors.getAccessor); + write(","); + } + if (accessors.setAccessor) { + writeLine(); + emitLeadingComments(accessors.setAccessor); + write("set: "); + emitStart(accessors.setAccessor); + write("function "); + emitSignatureAndBody(accessors.setAccessor); + emitEnd(accessors.setAccessor); + emitTrailingComments(accessors.setAccessor); + write(","); + } + writeLine(); + write("enumerable: true,"); + writeLine(); + write("configurable: true"); + decreaseIndent(); + writeLine(); + write("})"); + emitEnd(property); + } + else { + emitLeadingComments(property); + emitStart(property.name); + emit(tempVar); + emitMemberAccessForPropertyName(property.name); + emitEnd(property.name); + write(" = "); + if (property.kind === 224) { + emit(property.initializer); + } + else if (property.kind === 225) { + emitExpressionIdentifier(property.name); + } + else if (property.kind === 134) { + emitFunctionDeclaration(property); + } + else { + ts.Debug.fail("ObjectLiteralElement type not accounted for: " + property.kind); + } + } + emitEnd(property); } - else if (memberName.kind === 8 || memberName.kind === 7) { - return createElementAccessExpression(expression, memberName); + writeComma(); + emit(tempVar); + if (multiLine) { + decreaseIndent(); + writeLine(); } - else if (memberName.kind === 127) { - return createElementAccessExpression(expression, memberName.expression); + write(")"); + function writeComma() { + if (multiLine) { + write(","); + writeLine(); + } + else { + write(", "); + } } - else { - ts.Debug.fail("Kind '" + memberName.kind + "' not accounted for."); - } - } - function createPropertyAssignment(name, initializer) { - var result = ts.createSynthesizedNode(224); - result.name = name; - result.initializer = initializer; - return result; - } - function createFunctionExpression(parameters, body) { - var result = ts.createSynthesizedNode(162); - result.parameters = parameters; - result.body = body; - return result; - } - function createPropertyAccessExpression(expression, name) { - var result = ts.createSynthesizedNode(155); - result.expression = expression; - result.dotToken = ts.createSynthesizedNode(20); - result.name = name; - return result; - } - function createElementAccessExpression(expression, argumentExpression) { - var result = ts.createSynthesizedNode(156); - result.expression = expression; - result.argumentExpression = argumentExpression; - return result; - } - function createIdentifier(name, startsOnNewLine) { - var result = ts.createSynthesizedNode(65, startsOnNewLine); - result.text = name; - return result; - } - function createCallExpression(invokedExpression, arguments) { - var result = ts.createSynthesizedNode(157); - result.expression = invokedExpression; - result.arguments = arguments; - return result; } function emitObjectLiteral(node) { var properties = node.properties; @@ -21103,11 +21384,27 @@ var ts; return; } } - write("{"); - if (properties.length) { - emitLinePreservingList(node, properties, languageVersion >= 1, true); - } - write("}"); + emitObjectLiteralBody(node, properties.length); + } + function createBinaryExpression(left, operator, right, startsOnNewLine) { + var result = ts.createSynthesizedNode(169, startsOnNewLine); + result.operatorToken = ts.createSynthesizedNode(operator); + result.left = left; + result.right = right; + return result; + } + function createPropertyAccessExpression(expression, name) { + var result = ts.createSynthesizedNode(155); + result.expression = expression; + result.dotToken = ts.createSynthesizedNode(20); + result.name = name; + return result; + } + function createElementAccessExpression(expression, argumentExpression) { + var result = ts.createSynthesizedNode(156); + result.expression = expression; + result.argumentExpression = argumentExpression; + return result; } function emitComputedPropertyName(node) { write("["); @@ -22100,12 +22397,12 @@ var ts; function emitParameter(node) { if (languageVersion < 2) { if (ts.isBindingPattern(node.name)) { - var name_16 = createTempVariable(0); + var name_17 = createTempVariable(0); if (!tempParameters) { tempParameters = []; } - tempParameters.push(name_16); - emit(name_16); + tempParameters.push(name_17); + emit(name_17); } else { emit(node.name); @@ -22421,28 +22718,47 @@ var ts; emitNodeWithoutSourceMap(memberName); } } - function emitMemberAssignments(node, staticFlag) { - ts.forEach(node.members, function (member) { - if (member.kind === 132 && (member.flags & 128) === staticFlag && member.initializer) { - writeLine(); - emitLeadingComments(member); - emitStart(member); - emitStart(member.name); - if (staticFlag) { - emitDeclarationName(node); - } - else { - write("this"); - } - emitMemberAccessForPropertyName(member.name); - emitEnd(member.name); - write(" = "); - emit(member.initializer); - write(";"); - emitEnd(member); - emitTrailingComments(member); + function getInitializedProperties(node, static) { + var properties = []; + for (var _a = 0, _b = node.members; _a < _b.length; _a++) { + var member = _b[_a]; + if (member.kind === 132 && static === ((member.flags & 128) !== 0) && member.initializer) { + properties.push(member); } - }); + } + return properties; + } + function emitPropertyDeclarations(node, properties) { + for (var _a = 0; _a < properties.length; _a++) { + var property = properties[_a]; + emitPropertyDeclaration(node, property); + } + } + function emitPropertyDeclaration(node, property, receiver, isExpression) { + writeLine(); + emitLeadingComments(property); + emitStart(property); + emitStart(property.name); + if (receiver) { + emit(receiver); + } + else { + if (property.flags & 128) { + emitDeclarationName(node); + } + else { + write("this"); + } + } + emitMemberAccessForPropertyName(property.name); + emitEnd(property.name); + write(" = "); + emit(property.initializer); + if (!isExpression) { + write(";"); + } + emitEnd(property); + emitTrailingComments(property); } function emitMemberFunctionsForES5AndLower(node) { ts.forEach(node.members, function (member) { @@ -22555,6 +22871,12 @@ var ts; tempFlags = 0; tempVariables = undefined; tempParameters = undefined; + emitConstructorWorker(node, baseTypeElement); + tempFlags = saveTempFlags; + tempVariables = saveTempVariables; + tempParameters = saveTempParameters; + } + function emitConstructorWorker(node, baseTypeElement) { var hasInstancePropertyWithInitializer = false; ts.forEach(node.members, function (member) { if (member.kind === 135 && !member.body) { @@ -22623,7 +22945,7 @@ var ts; emitEnd(baseTypeElement); } } - emitMemberAssignments(node, 0); + emitPropertyDeclarations(node, getInitializedProperties(node, false)); if (ctor) { var statements = ctor.body.statements; if (superCall) { @@ -22643,9 +22965,6 @@ var ts; if (ctor) { emitTrailingComments(ctor); } - tempFlags = saveTempFlags; - tempVariables = saveTempVariables; - tempParameters = saveTempParameters; } function emitClassExpression(node) { return emitClassLikeDeclaration(node); @@ -22679,6 +22998,16 @@ var ts; } } } + var staticProperties = getInitializedProperties(node, true); + var isClassExpressionWithStaticProperties = staticProperties.length > 0 && node.kind === 174; + var tempVariable; + if (isClassExpressionWithStaticProperties) { + tempVariable = createAndRecordTempVariable(0); + write("("); + increaseIndent(); + emit(tempVariable); + write(" = "); + } write("class"); if ((node.name || !(node.flags & 256)) && !thisNodeIsDecorated) { write(" "); @@ -22711,9 +23040,24 @@ var ts; writeLine(); } } - writeLine(); - emitMemberAssignments(node, 128); - emitDecoratorsOfClass(node); + if (isClassExpressionWithStaticProperties) { + for (var _a = 0; _a < staticProperties.length; _a++) { + var property = staticProperties[_a]; + write(","); + writeLine(); + emitPropertyDeclaration(node, property, tempVariable, true); + } + write(","); + writeLine(); + emit(tempVariable); + decreaseIndent(); + write(")"); + } + else { + writeLine(); + emitPropertyDeclarations(node, staticProperties); + emitDecoratorsOfClass(node); + } if (!isES6ExportedDeclaration(node) && (node.flags & 1)) { writeLine(); emitStart(node); @@ -22763,7 +23107,7 @@ var ts; writeLine(); emitConstructor(node, baseTypeNode); emitMemberFunctionsForES5AndLower(node); - emitMemberAssignments(node, 128); + emitPropertyDeclarations(node, getInitializedProperties(node, true)); writeLine(); emitDecoratorsOfClass(node); writeLine(); @@ -22810,56 +23154,64 @@ var ts; emitDecoratorsOfConstructor(node); } function emitDecoratorsOfConstructor(node) { + var decorators = node.decorators; var constructor = ts.getFirstConstructorWithBody(node); - if (constructor) { - emitDecoratorsOfParameters(node, constructor); - } - if (!ts.nodeIsDecorated(node)) { + var hasDecoratedParameters = constructor && ts.forEach(constructor.parameters, ts.nodeIsDecorated); + if (!decorators && !hasDecoratedParameters) { return; } writeLine(); emitStart(node); emitDeclarationName(node); - write(" = "); - emitDecorateStart(node.decorators); + write(" = __decorate(["); + increaseIndent(); + writeLine(); + var decoratorCount = decorators ? decorators.length : 0; + var argumentsWritten = emitList(decorators, 0, decoratorCount, true, false, false, true, function (decorator) { + emitStart(decorator); + emit(decorator.expression); + emitEnd(decorator); + }); + argumentsWritten += emitDecoratorsOfParameters(constructor, argumentsWritten > 0); + emitSerializedTypeMetadata(node, argumentsWritten >= 0); + decreaseIndent(); + writeLine(); + write("], "); emitDeclarationName(node); write(");"); emitEnd(node); writeLine(); } function emitDecoratorsOfMembers(node, staticFlag) { - ts.forEach(node.members, function (member) { + for (var _a = 0, _b = node.members; _a < _b.length; _a++) { + var member = _b[_a]; if ((member.flags & 128) !== staticFlag) { - return; + continue; } - var decorators; - switch (member.kind) { - case 134: - emitDecoratorsOfParameters(node, member); - decorators = member.decorators; - break; - case 136: - case 137: - var accessors = ts.getAllAccessorDeclarations(node.members, member); - if (member !== accessors.firstAccessor) { - return; - } - if (accessors.setAccessor) { - emitDecoratorsOfParameters(node, accessors.setAccessor); - } - decorators = accessors.firstAccessor.decorators; - if (!decorators && accessors.secondAccessor) { - decorators = accessors.secondAccessor.decorators; - } - break; - case 132: - decorators = member.decorators; - break; - default: - return; + if (!ts.nodeCanBeDecorated(member)) { + continue; } - if (!decorators) { - return; + if (!ts.nodeOrChildIsDecorated(member)) { + continue; + } + var decorators = void 0; + var functionLikeMember = void 0; + if (ts.isAccessor(member)) { + var accessors = ts.getAllAccessorDeclarations(node.members, member); + if (member !== accessors.firstAccessor) { + continue; + } + decorators = accessors.firstAccessor.decorators; + if (!decorators && accessors.secondAccessor) { + decorators = accessors.secondAccessor.decorators; + } + functionLikeMember = accessors.setAccessor; + } + else { + decorators = member.decorators; + if (member.kind === 134) { + functionLikeMember = member; + } } writeLine(); emitStart(member); @@ -22870,9 +23222,24 @@ var ts; write(", "); emitExpressionForPropertyName(member.name); emitEnd(member.name); - write(", "); + write(","); + increaseIndent(); + writeLine(); } - emitDecorateStart(decorators); + write("__decorate(["); + increaseIndent(); + writeLine(); + var decoratorCount = decorators ? decorators.length : 0; + var argumentsWritten = emitList(decorators, 0, decoratorCount, true, false, false, true, function (decorator) { + emitStart(decorator); + emit(decorator.expression); + emitEnd(decorator); + }); + argumentsWritten += emitDecoratorsOfParameters(functionLikeMember, argumentsWritten > 0); + emitSerializedTypeMetadata(member, argumentsWritten > 0); + decreaseIndent(); + writeLine(); + write("], "); emitStart(member.name); emitClassMemberPrefix(node, member); write(", "); @@ -22886,51 +23253,131 @@ var ts; emitExpressionForPropertyName(member.name); emitEnd(member.name); write("))"); + decreaseIndent(); } write(");"); emitEnd(member); writeLine(); - }); - } - function emitDecoratorsOfParameters(node, member) { - ts.forEach(member.parameters, function (parameter, parameterIndex) { - if (!ts.nodeIsDecorated(parameter)) { - return; - } - writeLine(); - emitStart(parameter); - emitDecorateStart(parameter.decorators); - emitStart(parameter.name); - if (member.kind === 135) { - emitDeclarationName(node); - write(", void 0"); - } - else { - emitClassMemberPrefix(node, member); - write(", "); - emitExpressionForPropertyName(member.name); - } - write(", "); - write(String(parameterIndex)); - emitEnd(parameter.name); - write(");"); - emitEnd(parameter); - writeLine(); - }); - } - function emitDecorateStart(decorators) { - write("__decorate(["); - var decoratorCount = decorators.length; - for (var i = 0; i < decoratorCount; i++) { - if (i > 0) { - write(", "); - } - var decorator = decorators[i]; - emitStart(decorator); - emit(decorator.expression); - emitEnd(decorator); } - write("], "); + } + function emitDecoratorsOfParameters(node, leadingComma) { + var argumentsWritten = 0; + if (node) { + var parameterIndex = 0; + for (var _a = 0, _b = node.parameters; _a < _b.length; _a++) { + var parameter = _b[_a]; + if (ts.nodeIsDecorated(parameter)) { + var decorators = parameter.decorators; + argumentsWritten += emitList(decorators, 0, decorators.length, true, false, leadingComma, true, function (decorator) { + emitStart(decorator); + write("__param(" + parameterIndex + ", "); + emit(decorator.expression); + write(")"); + emitEnd(decorator); + }); + leadingComma = true; + } + ++parameterIndex; + } + } + return argumentsWritten; + } + function shouldEmitTypeMetadata(node) { + switch (node.kind) { + case 134: + case 136: + case 137: + case 132: + return true; + } + return false; + } + function shouldEmitReturnTypeMetadata(node) { + switch (node.kind) { + case 134: + return true; + } + return false; + } + function shouldEmitParamTypesMetadata(node) { + switch (node.kind) { + case 201: + case 134: + case 137: + return true; + } + return false; + } + function emitSerializedTypeMetadata(node, writeComma) { + var argumentsWritten = 0; + if (compilerOptions.emitDecoratorMetadata) { + if (shouldEmitTypeMetadata(node)) { + var serializedType = resolver.serializeTypeOfNode(node, getGeneratedNameForNode); + if (serializedType) { + if (writeComma) { + write(", "); + } + writeLine(); + write("__metadata('design:type', "); + emitSerializedType(node, serializedType); + write(")"); + argumentsWritten++; + } + } + if (shouldEmitParamTypesMetadata(node)) { + var serializedTypes = resolver.serializeParameterTypesOfNode(node, getGeneratedNameForNode); + if (serializedTypes) { + if (writeComma || argumentsWritten) { + write(", "); + } + writeLine(); + write("__metadata('design:paramtypes', ["); + for (var i = 0; i < serializedTypes.length; ++i) { + if (i > 0) { + write(", "); + } + emitSerializedType(node, serializedTypes[i]); + } + write("])"); + argumentsWritten++; + } + } + if (shouldEmitReturnTypeMetadata(node)) { + var serializedType = resolver.serializeReturnTypeOfNode(node, getGeneratedNameForNode); + if (serializedType) { + if (writeComma || argumentsWritten) { + write(", "); + } + writeLine(); + write("__metadata('design:returntype', "); + emitSerializedType(node, serializedType); + write(")"); + argumentsWritten++; + } + } + } + return argumentsWritten; + } + function serializeTypeNameSegment(location, path, index) { + switch (index) { + case 0: + return "typeof " + path[index] + " !== 'undefined' && " + path[index]; + case 1: + return serializeTypeNameSegment(location, path, index - 1) + "." + path[index]; + default: + var temp = createAndRecordTempVariable(0).text; + return "(" + temp + " = " + serializeTypeNameSegment(location, path, index - 1) + ") && " + temp + "." + path[index]; + } + } + function emitSerializedType(location, name) { + if (typeof name === "string") { + write(name); + return; + } + else { + ts.Debug.assert(name.length > 0, "Invalid serialized type name"); + write("(" + serializeTypeNameSegment(location, name, name.length - 1) + ") || Object"); + } } function emitInterfaceDeclaration(node) { emitOnlyPinnedOrTripleSlashComments(node); @@ -23371,8 +23818,8 @@ var ts; else { for (var _c = 0, _d = node.exportClause.elements; _c < _d.length; _c++) { var specifier = _d[_c]; - var name_17 = (specifier.propertyName || specifier.name).text; - (exportSpecifiers[name_17] || (exportSpecifiers[name_17] = [])).push(specifier); + var name_18 = (specifier.propertyName || specifier.name).text; + (exportSpecifiers[name_18] || (exportSpecifiers[name_18] = [])).push(specifier); } } break; @@ -23506,7 +23953,7 @@ var ts; } return statements.length; } - function writeHelper(text) { + function writeLines(text) { var lines = text.split(/\r\n|\r|\n/g); for (var i = 0; i < lines.length; ++i) { var line = lines[i]; @@ -23521,26 +23968,20 @@ var ts; emitDetachedComments(node); var startIndex = emitDirectivePrologues(node.statements, false); if ((languageVersion < 2) && (!extendsEmitted && resolver.getNodeCheckFlags(node) & 8)) { - writeLine(); - write("var __extends = this.__extends || function (d, b) {"); - increaseIndent(); - writeLine(); - write("for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];"); - writeLine(); - write("function __() { this.constructor = d; }"); - writeLine(); - write("__.prototype = b.prototype;"); - writeLine(); - write("d.prototype = new __();"); - decreaseIndent(); - writeLine(); - write("};"); + writeLines(extendsHelper); extendsEmitted = true; } if (!decorateEmitted && resolver.getNodeCheckFlags(node) & 512) { - writeHelper("\nvar __decorate = this.__decorate || function (decorators, target, key, value) {\n var kind = typeof (arguments.length == 2 ? value = target : value);\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n switch (kind) {\n case \"function\": value = decorator(value) || value; break;\n case \"number\": decorator(target, key, value); break;\n case \"undefined\": decorator(target, key); break;\n case \"object\": value = decorator(target, key, value) || value; break;\n }\n }\n return value;\n};"); + writeLines(decorateHelper); + if (compilerOptions.emitDecoratorMetadata) { + writeLines(metadataHelper); + } decorateEmitted = true; } + if (!paramEmitted && resolver.getNodeCheckFlags(node) & 1024) { + writeLines(paramHelper); + paramEmitted = true; + } if (ts.isExternalModule(node)) { if (languageVersion >= 2) { emitES6Module(node, startIndex); @@ -24455,9 +24896,6 @@ var ts; case 195: return textSpan(node, node.expression); case 214: - if (!node.expression) { - return undefined; - } return textSpan(node, node.expression); case 208: return textSpan(node, node.moduleReference); @@ -24710,20 +25148,6 @@ var ts; BreakpointResolver.spanInSourceFileAtLocation = spanInSourceFileAtLocation; })(BreakpointResolver = ts.BreakpointResolver || (ts.BreakpointResolver = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// var ts; (function (ts) { var OutliningElementsCollector; @@ -24742,6 +25166,55 @@ var ts; elements.push(span); } } + function addOutliningSpanComments(commentSpan, autoCollapse) { + if (commentSpan) { + var span = { + textSpan: ts.createTextSpanFromBounds(commentSpan.pos, commentSpan.end), + hintSpan: ts.createTextSpanFromBounds(commentSpan.pos, commentSpan.end), + bannerText: collapseText, + autoCollapse: autoCollapse + }; + elements.push(span); + } + } + function addOutliningForLeadingCommentsForNode(n) { + var comments = ts.getLeadingCommentRangesOfNode(n, sourceFile); + if (comments) { + var firstSingleLineCommentStart = -1; + var lastSingleLineCommentEnd = -1; + var isFirstSingleLineComment = true; + var singleLineCommentCount = 0; + for (var _i = 0; _i < comments.length; _i++) { + var currentComment = comments[_i]; + if (currentComment.kind === 2) { + if (isFirstSingleLineComment) { + firstSingleLineCommentStart = currentComment.pos; + } + isFirstSingleLineComment = false; + lastSingleLineCommentEnd = currentComment.end; + singleLineCommentCount++; + } + else if (currentComment.kind === 3) { + combineAndAddMultipleSingleLineComments(singleLineCommentCount, firstSingleLineCommentStart, lastSingleLineCommentEnd); + addOutliningSpanComments(currentComment, false); + singleLineCommentCount = 0; + lastSingleLineCommentEnd = -1; + isFirstSingleLineComment = true; + } + } + combineAndAddMultipleSingleLineComments(singleLineCommentCount, firstSingleLineCommentStart, lastSingleLineCommentEnd); + } + } + function combineAndAddMultipleSingleLineComments(count, start, end) { + if (count > 1) { + var multipleSingleLineComments = { + pos: start, + end: end, + kind: 2 + }; + addOutliningSpanComments(multipleSingleLineComments, false); + } + } function autoCollapse(node) { return ts.isFunctionBlock(node) && node.parent.kind !== 163; } @@ -24751,27 +25224,30 @@ var ts; if (depth > maxDepth) { return; } + if (ts.isDeclaration(n)) { + addOutliningForLeadingCommentsForNode(n); + } switch (n.kind) { case 179: if (!ts.isFunctionBlock(n)) { - var parent_6 = n.parent; + var parent_7 = n.parent; var openBrace = ts.findChildOfKind(n, 14, sourceFile); var closeBrace = ts.findChildOfKind(n, 15, sourceFile); - if (parent_6.kind === 184 || - parent_6.kind === 187 || - parent_6.kind === 188 || - parent_6.kind === 186 || - parent_6.kind === 183 || - parent_6.kind === 185 || - parent_6.kind === 192 || - parent_6.kind === 223) { - addOutliningSpan(parent_6, openBrace, closeBrace, autoCollapse(n)); + if (parent_7.kind === 184 || + parent_7.kind === 187 || + parent_7.kind === 188 || + parent_7.kind === 186 || + parent_7.kind === 183 || + parent_7.kind === 185 || + parent_7.kind === 192 || + parent_7.kind === 223) { + addOutliningSpan(parent_7, openBrace, closeBrace, autoCollapse(n)); break; } - if (parent_6.kind === 196) { - var tryStatement = parent_6; + if (parent_7.kind === 196) { + var tryStatement = parent_7; if (tryStatement.tryBlock === n) { - addOutliningSpan(parent_6, openBrace, closeBrace, autoCollapse(n)); + addOutliningSpan(parent_7, openBrace, closeBrace, autoCollapse(n)); break; } else if (tryStatement.finallyBlock === n) { @@ -25194,9 +25670,9 @@ var ts; case 198: case 152: var variableDeclarationNode; - var name_18; + var name_19; if (node.kind === 152) { - name_18 = node.name; + name_19 = node.name; variableDeclarationNode = node; while (variableDeclarationNode && variableDeclarationNode.kind !== 198) { variableDeclarationNode = variableDeclarationNode.parent; @@ -25206,16 +25682,16 @@ var ts; else { ts.Debug.assert(!ts.isBindingPattern(node.name)); variableDeclarationNode = node; - name_18 = node.name; + name_19 = node.name; } if (ts.isConst(variableDeclarationNode)) { - return createItem(node, getTextOfNode(name_18), ts.ScriptElementKind.constElement); + return createItem(node, getTextOfNode(name_19), ts.ScriptElementKind.constElement); } else if (ts.isLet(variableDeclarationNode)) { - return createItem(node, getTextOfNode(name_18), ts.ScriptElementKind.letElement); + return createItem(node, getTextOfNode(name_19), ts.ScriptElementKind.letElement); } else { - return createItem(node, getTextOfNode(name_18), ts.ScriptElementKind.variableElement); + return createItem(node, getTextOfNode(name_19), ts.ScriptElementKind.variableElement); } case 135: return createItem(node, "constructor", ts.ScriptElementKind.constructorImplementationElement); @@ -25285,9 +25761,9 @@ var ts; return getNavigationBarItem(moduleName, ts.ScriptElementKind.moduleElement, ts.getNodeModifiers(node), [getNodeSpan(node)], childItems, getIndent(node)); } function createFunctionItem(node) { - if ((node.name || node.flags & 256) && node.body && node.body.kind === 179) { + if (node.body && node.body.kind === 179) { var childItems = getItemsWorker(sortNodes(node.body.statements), createChildItem); - return getNavigationBarItem((!node.name && node.flags & 256) ? "default" : node.name.text, ts.ScriptElementKind.functionElement, ts.getNodeModifiers(node), [getNodeSpan(node)], childItems, getIndent(node)); + return getNavigationBarItem(!node.name ? "default" : node.name.text, ts.ScriptElementKind.functionElement, ts.getNodeModifiers(node), [getNodeSpan(node)], childItems, getIndent(node)); } return undefined; } @@ -25314,7 +25790,7 @@ var ts; } childItems = getItemsWorker(sortNodes(nodes), createChildItem); } - var nodeName = !node.name && (node.flags & 256) ? "default" : node.name.text; + var nodeName = !node.name ? "default" : node.name.text; return getNavigationBarItem(nodeName, ts.ScriptElementKind.classElement, ts.getNodeModifiers(node), [getNodeSpan(node)], childItems, getIndent(node)); } function createEnumItem(node) { @@ -26812,20 +27288,6 @@ var ts; formatting.getFormattingScanner = getFormattingScanner; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// var ts; (function (ts) { @@ -26905,35 +27367,7 @@ var ts; formatting.FormattingContext = FormattingContext; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// var ts; (function (ts) { @@ -26956,35 +27390,7 @@ var ts; formatting.Rule = Rule; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// var ts; (function (ts) { @@ -27016,35 +27422,7 @@ var ts; formatting.RuleDescriptor = RuleDescriptor; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// var ts; (function (ts) { @@ -27073,20 +27451,6 @@ var ts; formatting.RuleOperation = RuleOperation; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// var ts; (function (ts) { @@ -27121,20 +27485,6 @@ var ts; formatting.RuleOperationContext = RuleOperationContext; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// var ts; (function (ts) { @@ -27213,6 +27563,9 @@ var ts; this.NoSpaceBeforeCloseAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 25), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8)); this.NoSpaceAfterCloseAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create3(25, formatting.Shared.TokenRange.FromTokens([16, 18, 25, 23])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8)); this.NoSpaceBetweenEmptyInterfaceBraceBrackets = new formatting.Rule(formatting.RuleDescriptor.create1(14, 15), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsObjectTypeContext), 8)); + this.SpaceBeforeAt = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 52), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); + this.NoSpaceAfterAt = new formatting.Rule(formatting.RuleDescriptor.create3(52, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); + this.SpaceAfterDecorator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.FromTokens([65, 78, 73, 69, 110, 109, 107, 108, 116, 120, 18, 35])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsEndOfDecoratorContextOnSameLine), 2)); this.HighPriorityCommonRules = [ this.IgnoreBeforeComment, this.IgnoreAfterLineComment, @@ -27247,7 +27600,10 @@ var ts; this.NoSpaceBetweenCloseParenAndAngularBracket, this.NoSpaceAfterOpenAngularBracket, this.NoSpaceBeforeCloseAngularBracket, - this.NoSpaceAfterCloseAngularBracket + this.NoSpaceAfterCloseAngularBracket, + this.SpaceBeforeAt, + this.NoSpaceAfterAt, + this.SpaceAfterDecorator, ]; this.LowPriorityCommonRules = [ @@ -27283,9 +27639,9 @@ var ts; } Rules.prototype.getRuleName = function (rule) { var o = this; - for (var name_19 in o) { - if (o[name_19] === rule) { - return name_19; + for (var name_20 in o) { + if (o[name_20] === rule) { + return name_20; } } throw new Error("Unknown rule"); @@ -27448,6 +27804,18 @@ var ts; Rules.IsSameLineTokenContext = function (context) { return context.TokensAreOnSameLine(); }; + Rules.IsEndOfDecoratorContextOnSameLine = function (context) { + return context.TokensAreOnSameLine() && + context.contextNode.decorators && + Rules.NodeIsInDecoratorContext(context.currentTokenParent) && + !Rules.NodeIsInDecoratorContext(context.nextTokenParent); + }; + Rules.NodeIsInDecoratorContext = function (node) { + while (ts.isExpression(node)) { + node = node.parent; + } + return node.kind === 130; + }; Rules.IsStartOfVariableDeclarationList = function (context) { return context.currentTokenParent.kind === 199 && context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos; @@ -27495,20 +27863,6 @@ var ts; formatting.Rules = Rules; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// var ts; (function (ts) { @@ -27646,20 +28000,6 @@ var ts; formatting.RulesBucket = RulesBucket; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// var ts; (function (ts) { @@ -27775,20 +28115,6 @@ var ts; })(Shared = formatting.Shared || (formatting.Shared = {})); })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// /// /// @@ -27801,20 +28127,6 @@ var ts; /// /// /// -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// var ts; (function (ts) { @@ -28077,8 +28389,12 @@ var ts; formattingScanner.advance(); if (formattingScanner.isOnToken()) { var startLine = sourceFile.getLineAndCharacterOfPosition(enclosingNode.getStart(sourceFile)).line; + var undecoratedStartLine = startLine; + if (enclosingNode.decorators) { + undecoratedStartLine = sourceFile.getLineAndCharacterOfPosition(ts.getNonDecoratorTokenPosOfNode(enclosingNode, sourceFile)).line; + } var delta = getOwnOrInheritedDelta(enclosingNode, options, sourceFile); - processNode(enclosingNode, enclosingNode, startLine, initialIndentation, delta); + processNode(enclosingNode, enclosingNode, startLine, undecoratedStartLine, initialIndentation, delta); } formattingScanner.close(); return edits; @@ -28200,14 +28516,14 @@ var ts; } }; } - function processNode(node, contextNode, nodeStartLine, indentation, delta) { + function processNode(node, contextNode, nodeStartLine, undecoratedNodeStartLine, indentation, delta) { if (!ts.rangeOverlapsWithStartEnd(originalRange, node.getStart(sourceFile), node.getEnd())) { return; } var nodeDynamicIndentation = getDynamicIndentation(node, nodeStartLine, indentation, delta); var childContextNode = contextNode; ts.forEachChild(node, function (child) { - processChildNode(child, -1, node, nodeDynamicIndentation, nodeStartLine, false); + processChildNode(child, -1, node, nodeDynamicIndentation, nodeStartLine, undecoratedNodeStartLine, false); }, function (nodes) { processChildNodes(nodes, node, nodeStartLine, nodeDynamicIndentation); }); @@ -28218,9 +28534,13 @@ var ts; } consumeTokenAndAdvanceScanner(tokenInfo, node, nodeDynamicIndentation); } - function processChildNode(child, inheritedIndentation, parent, parentDynamicIndentation, parentStartLine, isListItem) { + function processChildNode(child, inheritedIndentation, parent, parentDynamicIndentation, parentStartLine, undecoratedParentStartLine, isListItem) { var childStartPos = child.getStart(sourceFile); - var childStart = sourceFile.getLineAndCharacterOfPosition(childStartPos); + var childStartLine = sourceFile.getLineAndCharacterOfPosition(childStartPos).line; + var undecoratedChildStartLine = childStartLine; + if (child.decorators) { + undecoratedChildStartLine = sourceFile.getLineAndCharacterOfPosition(ts.getNonDecoratorTokenPosOfNode(child, sourceFile)).line; + } var childIndentationAmount = -1; if (isListItem) { childIndentationAmount = tryComputeIndentationForListItem(childStartPos, child.end, parentStartLine, originalRange, inheritedIndentation); @@ -28250,8 +28570,9 @@ var ts; consumeTokenAndAdvanceScanner(tokenInfo, node, parentDynamicIndentation); return inheritedIndentation; } - var childIndentation = computeIndentation(child, childStart.line, childIndentationAmount, node, parentDynamicIndentation, parentStartLine); - processNode(child, childContextNode, childStart.line, childIndentation.indentation, childIndentation.delta); + var effectiveParentStartLine = child.kind === 130 ? childStartLine : undecoratedParentStartLine; + var childIndentation = computeIndentation(child, childStartLine, childIndentationAmount, node, parentDynamicIndentation, effectiveParentStartLine); + processNode(child, childContextNode, childStartLine, undecoratedChildStartLine, childIndentation.indentation, childIndentation.delta); childContextNode = node; return inheritedIndentation; } @@ -28280,7 +28601,7 @@ var ts; var inheritedIndentation = -1; for (var _i = 0; _i < nodes.length; _i++) { var child = nodes[_i]; - inheritedIndentation = processChildNode(child, inheritedIndentation, node, listDynamicIndentation, startLine, true); + inheritedIndentation = processChildNode(child, inheritedIndentation, node, listDynamicIndentation, startLine, startLine, true); } if (listEndToken !== 0) { if (formattingScanner.isOnToken()) { @@ -29446,101 +29767,104 @@ var ts; }; SourceFileObject.prototype.getNamedDeclarations = function () { if (!this.namedDeclarations) { - var sourceFile = this; - var namedDeclarations = []; - ts.forEachChild(sourceFile, function visit(node) { - switch (node.kind) { - case 200: - case 134: - case 133: - var functionDeclaration = node; - if (functionDeclaration.name && functionDeclaration.name.getFullWidth() > 0) { - var lastDeclaration = namedDeclarations.length > 0 ? - namedDeclarations[namedDeclarations.length - 1] : - undefined; - if (lastDeclaration && functionDeclaration.symbol === lastDeclaration.symbol) { - if (functionDeclaration.body && !lastDeclaration.body) { - namedDeclarations[namedDeclarations.length - 1] = functionDeclaration; - } - } - else { - namedDeclarations.push(functionDeclaration); - } - ts.forEachChild(node, visit); - } - break; - case 201: - case 202: - case 203: - case 204: - case 205: - case 208: - case 217: - case 213: - case 208: - case 210: - case 211: - case 136: - case 137: - case 145: - if (node.name) { - namedDeclarations.push(node); - } - case 135: - case 180: - case 199: - case 150: - case 151: - case 206: - ts.forEachChild(node, visit); - break; - case 179: - if (ts.isFunctionBlock(node)) { - ts.forEachChild(node, visit); - } - break; - case 129: - if (!(node.flags & 112)) { - break; - } - case 198: - case 152: - if (ts.isBindingPattern(node.name)) { - ts.forEachChild(node.name, visit); - break; - } - case 226: - case 132: - case 131: - namedDeclarations.push(node); - break; - case 215: - if (node.exportClause) { - ts.forEach(node.exportClause.elements, visit); - } - break; - case 209: - var importClause = node.importClause; - if (importClause) { - if (importClause.name) { - namedDeclarations.push(importClause); - } - if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 211) { - namedDeclarations.push(importClause.namedBindings); - } - else { - ts.forEach(importClause.namedBindings.elements, visit); - } - } - } - break; - } - }); - this.namedDeclarations = namedDeclarations; + this.namedDeclarations = this.computeNamedDeclarations(); } return this.namedDeclarations; }; + SourceFileObject.prototype.computeNamedDeclarations = function () { + var namedDeclarations = []; + ts.forEachChild(this, visit); + return namedDeclarations; + function visit(node) { + switch (node.kind) { + case 200: + case 134: + case 133: + var functionDeclaration = node; + if (functionDeclaration.name && functionDeclaration.name.getFullWidth() > 0) { + var lastDeclaration = namedDeclarations.length > 0 ? + namedDeclarations[namedDeclarations.length - 1] : + undefined; + if (lastDeclaration && functionDeclaration.symbol === lastDeclaration.symbol) { + if (functionDeclaration.body && !lastDeclaration.body) { + namedDeclarations[namedDeclarations.length - 1] = functionDeclaration; + } + } + else { + namedDeclarations.push(functionDeclaration); + } + ts.forEachChild(node, visit); + } + break; + case 201: + case 202: + case 203: + case 204: + case 205: + case 208: + case 217: + case 213: + case 208: + case 210: + case 211: + case 136: + case 137: + case 145: + if (node.name) { + namedDeclarations.push(node); + } + case 135: + case 180: + case 199: + case 150: + case 151: + case 206: + ts.forEachChild(node, visit); + break; + case 179: + if (ts.isFunctionBlock(node)) { + ts.forEachChild(node, visit); + } + break; + case 129: + if (!(node.flags & 112)) { + break; + } + case 198: + case 152: + if (ts.isBindingPattern(node.name)) { + ts.forEachChild(node.name, visit); + break; + } + case 226: + case 132: + case 131: + namedDeclarations.push(node); + break; + case 215: + if (node.exportClause) { + ts.forEach(node.exportClause.elements, visit); + } + break; + case 209: + var importClause = node.importClause; + if (importClause) { + if (importClause.name) { + namedDeclarations.push(importClause); + } + if (importClause.namedBindings) { + if (importClause.namedBindings.kind === 211) { + namedDeclarations.push(importClause.namedBindings); + } + else { + ts.forEach(importClause.namedBindings.elements, visit); + } + } + } + break; + } + } + }; return SourceFileObject; })(NodeObject); var TextChange = (function () { @@ -29549,6 +29873,13 @@ var ts; return TextChange; })(); ts.TextChange = TextChange; + var HighlightSpanKind; + (function (HighlightSpanKind) { + HighlightSpanKind.none = "none"; + HighlightSpanKind.definition = "definition"; + HighlightSpanKind.reference = "reference"; + HighlightSpanKind.writtenReference = "writtenReference"; + })(HighlightSpanKind = ts.HighlightSpanKind || (ts.HighlightSpanKind = {})); (function (SymbolDisplayPartKind) { SymbolDisplayPartKind[SymbolDisplayPartKind["aliasName"] = 0] = "aliasName"; SymbolDisplayPartKind[SymbolDisplayPartKind["className"] = 1] = "className"; @@ -29586,10 +29917,10 @@ var ts; TokenClass[TokenClass["RegExpLiteral"] = 8] = "RegExpLiteral"; })(ts.TokenClass || (ts.TokenClass = {})); var TokenClass = ts.TokenClass; - var ScriptElementKind = (function () { - function ScriptElementKind() { - } + var ScriptElementKind; + (function (ScriptElementKind) { ScriptElementKind.unknown = ""; + ScriptElementKind.warning = "warning"; ScriptElementKind.keyword = "keyword"; ScriptElementKind.scriptElement = "script"; ScriptElementKind.moduleElement = "module"; @@ -29616,12 +29947,9 @@ var ts; ScriptElementKind.alias = "alias"; ScriptElementKind.constElement = "const"; ScriptElementKind.letElement = "let"; - return ScriptElementKind; - })(); - ts.ScriptElementKind = ScriptElementKind; - var ScriptElementKindModifier = (function () { - function ScriptElementKindModifier() { - } + })(ScriptElementKind = ts.ScriptElementKind || (ts.ScriptElementKind = {})); + var ScriptElementKindModifier; + (function (ScriptElementKindModifier) { ScriptElementKindModifier.none = ""; ScriptElementKindModifier.publicMemberModifier = "public"; ScriptElementKindModifier.privateMemberModifier = "private"; @@ -29629,9 +29957,7 @@ var ts; ScriptElementKindModifier.exportedModifier = "export"; ScriptElementKindModifier.ambientModifier = "declare"; ScriptElementKindModifier.staticModifier = "static"; - return ScriptElementKindModifier; - })(); - ts.ScriptElementKindModifier = ScriptElementKindModifier; + })(ScriptElementKindModifier = ts.ScriptElementKindModifier || (ts.ScriptElementKindModifier = {})); var ClassificationTypeNames = (function () { function ClassificationTypeNames() { } @@ -29671,8 +29997,8 @@ var ts; if (declaration.kind !== 198 && declaration.kind !== 200) { return false; } - for (var parent_7 = declaration.parent; !ts.isFunctionBlock(parent_7); parent_7 = parent_7.parent) { - if (parent_7.kind === 227 || parent_7.kind === 206) { + for (var parent_8 = declaration.parent; !ts.isFunctionBlock(parent_8); parent_8 = parent_8.parent) { + if (parent_8.kind === 227 || parent_8.kind === 206) { return false; } } @@ -29817,7 +30143,7 @@ var ts; useCaseSensitiveFileNames: function () { return false; }, getCanonicalFileName: function (fileName) { return fileName; }, getCurrentDirectory: function () { return ""; }, - getNewLine: function () { return "\r\n"; } + getNewLine: function () { return (ts.sys && ts.sys.newLine) || "\r\n"; } }; var program = ts.createProgram([inputFileName], options, compilerHost); if (diagnostics) { @@ -30181,7 +30507,8 @@ var ts; keywordCompletions.push({ name: ts.tokenToString(i), kind: ScriptElementKind.keyword, - kindModifiers: ScriptElementKindModifier.none + kindModifiers: ScriptElementKindModifier.none, + sortText: "0" }); } function getContainerNode(node) { @@ -30364,9 +30691,15 @@ var ts; synchronizeHostData(); return program.getSyntacticDiagnostics(getValidSourceFile(fileName)); } + function isJavaScript(fileName) { + return ts.fileExtensionIs(fileName, ".js"); + } function getSemanticDiagnostics(fileName) { synchronizeHostData(); var targetSourceFile = getValidSourceFile(fileName); + if (isJavaScript(fileName)) { + return getJavaScriptSemanticDiagnostics(targetSourceFile); + } var semanticDiagnostics = program.getSemanticDiagnostics(targetSourceFile); if (!program.getCompilerOptions().declaration) { return semanticDiagnostics; @@ -30374,26 +30707,176 @@ var ts; var declarationDiagnostics = program.getDeclarationDiagnostics(targetSourceFile); return ts.concatenate(semanticDiagnostics, declarationDiagnostics); } + function getJavaScriptSemanticDiagnostics(sourceFile) { + var diagnostics = []; + walk(sourceFile); + return diagnostics; + function walk(node) { + if (!node) { + return false; + } + switch (node.kind) { + case 208: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.import_can_only_be_used_in_a_ts_file)); + return true; + case 214: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.export_can_only_be_used_in_a_ts_file)); + return true; + case 201: + var classDeclaration = node; + if (checkModifiers(classDeclaration.modifiers) || + checkTypeParameters(classDeclaration.typeParameters)) { + return true; + } + break; + case 222: + var heritageClause = node; + if (heritageClause.token === 103) { + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file)); + return true; + } + break; + case 202: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file)); + return true; + case 205: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file)); + return true; + case 203: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file)); + return true; + case 134: + case 133: + case 135: + case 136: + case 137: + case 162: + case 200: + case 163: + case 200: + var functionDeclaration = node; + if (checkModifiers(functionDeclaration.modifiers) || + checkTypeParameters(functionDeclaration.typeParameters) || + checkTypeAnnotation(functionDeclaration.type)) { + return true; + } + break; + case 180: + var variableStatement = node; + if (checkModifiers(variableStatement.modifiers)) { + return true; + } + break; + case 198: + var variableDeclaration = node; + if (checkTypeAnnotation(variableDeclaration.type)) { + return true; + } + break; + case 157: + case 158: + var expression = node; + if (expression.typeArguments && expression.typeArguments.length > 0) { + var start = expression.typeArguments.pos; + diagnostics.push(ts.createFileDiagnostic(sourceFile, start, expression.typeArguments.end - start, ts.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file)); + return true; + } + break; + case 129: + var parameter = node; + if (parameter.modifiers) { + var start = parameter.modifiers.pos; + diagnostics.push(ts.createFileDiagnostic(sourceFile, start, parameter.modifiers.end - start, ts.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file)); + return true; + } + if (parameter.questionToken) { + diagnostics.push(ts.createDiagnosticForNode(parameter.questionToken, ts.Diagnostics.can_only_be_used_in_a_ts_file)); + return true; + } + if (parameter.type) { + diagnostics.push(ts.createDiagnosticForNode(parameter.type, ts.Diagnostics.types_can_only_be_used_in_a_ts_file)); + return true; + } + break; + case 132: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.property_declarations_can_only_be_used_in_a_ts_file)); + return true; + case 204: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file)); + return true; + case 160: + var typeAssertionExpression = node; + diagnostics.push(ts.createDiagnosticForNode(typeAssertionExpression.type, ts.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file)); + return true; + case 130: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.decorators_can_only_be_used_in_a_ts_file)); + return true; + } + return ts.forEachChild(node, walk); + } + function checkTypeParameters(typeParameters) { + if (typeParameters) { + var start = typeParameters.pos; + diagnostics.push(ts.createFileDiagnostic(sourceFile, start, typeParameters.end - start, ts.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file)); + return true; + } + return false; + } + function checkTypeAnnotation(type) { + if (type) { + diagnostics.push(ts.createDiagnosticForNode(type, ts.Diagnostics.types_can_only_be_used_in_a_ts_file)); + return true; + } + return false; + } + function checkModifiers(modifiers) { + if (modifiers) { + for (var _i = 0; _i < modifiers.length; _i++) { + var modifier = modifiers[_i]; + switch (modifier.kind) { + case 109: + case 107: + case 108: + case 115: + diagnostics.push(ts.createDiagnosticForNode(modifier, ts.Diagnostics._0_can_only_be_used_in_a_ts_file, ts.tokenToString(modifier.kind))); + return true; + case 110: + case 78: + case 70: + case 73: + } + } + } + return false; + } + } function getCompilerOptionsDiagnostics() { synchronizeHostData(); return program.getGlobalDiagnostics(); } - function getCompletionEntryDisplayName(symbol, target, performCharacterChecks) { + function getCompletionEntryDisplayNameForSymbol(symbol, target, performCharacterChecks) { var displayName = symbol.getName(); + if (displayName) { + if (displayName === "default") { + var localSymbol = ts.getLocalSymbolForExportDefault(symbol); + if (localSymbol && localSymbol.name) { + displayName = symbol.valueDeclaration.localSymbol.name; + } + } + var firstCharCode = displayName.charCodeAt(0); + if ((symbol.flags & 1536) && (firstCharCode === 39 || firstCharCode === 34)) { + return undefined; + } + } + return getCompletionEntryDisplayName(displayName, target, performCharacterChecks); + } + function getCompletionEntryDisplayName(displayName, target, performCharacterChecks) { if (!displayName) { return undefined; } - if (displayName === "default") { - var localSymbol = ts.getLocalSymbolForExportDefault(symbol); - if (localSymbol && localSymbol.name) { - displayName = symbol.valueDeclaration.localSymbol.name; - } - } var firstCharCode = displayName.charCodeAt(0); - if ((symbol.flags & 1536) && (firstCharCode === 39 || firstCharCode === 34)) { - return undefined; - } - if (displayName && displayName.length >= 2 && firstCharCode === displayName.charCodeAt(displayName.length - 1) && + if (displayName.length >= 2 && + firstCharCode === displayName.charCodeAt(displayName.length - 1) && (firstCharCode === 39 || firstCharCode === 34)) { displayName = displayName.substring(1, displayName.length - 1); } @@ -30413,14 +30896,15 @@ var ts; return ts.unescapeIdentifier(displayName); } function createCompletionEntry(symbol, typeChecker, location) { - var displayName = getCompletionEntryDisplayName(symbol, program.getCompilerOptions().target, true); + var displayName = getCompletionEntryDisplayNameForSymbol(symbol, program.getCompilerOptions().target, true); if (!displayName) { return undefined; } return { name: displayName, kind: getSymbolKind(symbol, typeChecker, location), - kindModifiers: getSymbolModifiers(symbol) + kindModifiers: getSymbolModifiers(symbol), + sortText: "0" }; } function getCompletionData(fileName, position) { @@ -30464,9 +30948,18 @@ var ts; var semanticStart = new Date().getTime(); var isMemberCompletion; var isNewIdentifierLocation; - var symbols; + var symbols = []; if (isRightOfDot) { - symbols = []; + getTypeScriptMemberSymbols(); + } + else { + if (!tryGetGlobalSymbols()) { + return undefined; + } + } + log("getCompletionData: Semantic work: " + (new Date().getTime() - semanticStart)); + return { symbols: symbols, isMemberCompletion: isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation, location: location, isRightOfDot: isRightOfDot }; + function getTypeScriptMemberSymbols() { isMemberCompletion = true; isNewIdentifierLocation = false; if (node.kind === 65 || node.kind === 126 || node.kind === 155) { @@ -30475,7 +30968,8 @@ var ts; symbol = typeInfoResolver.getAliasedSymbol(symbol); } if (symbol && symbol.flags & 1952) { - ts.forEachValue(symbol.exports, function (symbol) { + var exportedSymbols = typeInfoResolver.getExportsOfModule(symbol); + ts.forEach(exportedSymbols, function (symbol) { if (typeInfoResolver.isValidPropertyAccess((node.parent), symbol.name)) { symbols.push(symbol); } @@ -30491,14 +30985,14 @@ var ts; }); } } - else { + function tryGetGlobalSymbols() { var containingObjectLiteral = getContainingObjectLiteralApplicableForCompletion(contextToken); if (containingObjectLiteral) { isMemberCompletion = true; isNewIdentifierLocation = true; var contextualType = typeInfoResolver.getContextualType(containingObjectLiteral); if (!contextualType) { - return undefined; + return false; } var contextualTypeMembers = typeInfoResolver.getPropertiesOfType(contextualType); if (contextualTypeMembers && contextualTypeMembers.length > 0) { @@ -30511,8 +31005,14 @@ var ts; if (showCompletionsInImportsClause(contextToken)) { var importDeclaration = ts.getAncestor(contextToken, 209); ts.Debug.assert(importDeclaration !== undefined); - var exports_2 = typeInfoResolver.getExportsOfExternalModule(importDeclaration); - symbols = filterModuleExports(exports_2, importDeclaration); + var exports_2; + if (importDeclaration.moduleSpecifier) { + var moduleSpecifierSymbol = typeInfoResolver.getSymbolAtLocation(importDeclaration.moduleSpecifier); + if (moduleSpecifierSymbol) { + exports_2 = typeInfoResolver.getExportsOfModule(moduleSpecifierSymbol); + } + } + symbols = exports_2 ? filterModuleExports(exports_2, importDeclaration) : emptyArray; } } else { @@ -30528,9 +31028,8 @@ var ts; var symbolMeanings = 793056 | 107455 | 1536 | 8388608; symbols = typeInfoResolver.getSymbolsInScope(scopeNode, symbolMeanings); } + return true; } - log("getCompletionData: Semantic work: " + (new Date().getTime() - semanticStart)); - return { symbols: symbols, isMemberCompletion: isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation, location: location }; function getScopeNode(initialToken, position, sourceFile) { var scope = initialToken; while (scope && !ts.positionBelongsToNode(scope, position, sourceFile)) { @@ -30616,12 +31115,12 @@ var ts; function getContainingObjectLiteralApplicableForCompletion(previousToken) { // The locations in an object literal expression that are applicable for completion are property name definition locations. if (previousToken) { - var parent_8 = previousToken.parent; + var parent_9 = previousToken.parent; switch (previousToken.kind) { case 14: case 23: - if (parent_8 && parent_8.kind === 154) { - return parent_8; + if (parent_9 && parent_9.kind === 154) { + return parent_9; } break; } @@ -30771,27 +31270,61 @@ var ts; if (!completionData) { return undefined; } - var symbols = completionData.symbols, isMemberCompletion = completionData.isMemberCompletion, isNewIdentifierLocation = completionData.isNewIdentifierLocation, location = completionData.location; - if (!symbols || symbols.length === 0) { - return undefined; + var symbols = completionData.symbols, isMemberCompletion = completionData.isMemberCompletion, isNewIdentifierLocation = completionData.isNewIdentifierLocation, location = completionData.location, isRightOfDot = completionData.isRightOfDot; + var entries; + if (isRightOfDot && isJavaScript(fileName)) { + entries = getCompletionEntriesFromSymbols(symbols); + ts.addRange(entries, getJavaScriptCompletionEntries()); + } + else { + if (!symbols || symbols.length === 0) { + return undefined; + } + entries = getCompletionEntriesFromSymbols(symbols); } - var entries = getCompletionEntriesFromSymbols(symbols); if (!isMemberCompletion) { ts.addRange(entries, keywordCompletions); } return { isMemberCompletion: isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation, entries: entries }; + function getJavaScriptCompletionEntries() { + var entries = []; + var allNames = {}; + var target = program.getCompilerOptions().target; + for (var _i = 0, _a = program.getSourceFiles(); _i < _a.length; _i++) { + var sourceFile = _a[_i]; + var nameTable = getNameTable(sourceFile); + for (var name_21 in nameTable) { + if (!allNames[name_21]) { + allNames[name_21] = name_21; + var displayName = getCompletionEntryDisplayName(name_21, target, true); + if (displayName) { + var entry = { + name: displayName, + kind: ScriptElementKind.warning, + kindModifiers: "", + sortText: "1" + }; + entries.push(entry); + } + } + } + } + return entries; + } function getCompletionEntriesFromSymbols(symbols) { var start = new Date().getTime(); var entries = []; - var nameToSymbol = {}; - for (var _i = 0; _i < symbols.length; _i++) { - var symbol = symbols[_i]; - var entry = createCompletionEntry(symbol, typeInfoResolver, location); - if (entry) { - var id = ts.escapeIdentifier(entry.name); - if (!ts.lookUp(nameToSymbol, id)) { - entries.push(entry); - nameToSymbol[id] = symbol; + if (symbols) { + var nameToSymbol = {}; + for (var _i = 0; _i < symbols.length; _i++) { + var symbol = symbols[_i]; + var entry = createCompletionEntry(symbol, typeInfoResolver, location); + if (entry) { + var id = ts.escapeIdentifier(entry.name); + if (!ts.lookUp(nameToSymbol, id)) { + entries.push(entry); + nameToSymbol[id] = symbol; + } } } } @@ -30805,7 +31338,7 @@ var ts; if (completionData) { var symbols = completionData.symbols, location_2 = completionData.location; var target = program.getCompilerOptions().target; - var symbol = ts.forEach(symbols, function (s) { return getCompletionEntryDisplayName(s, target, false) === entryName ? s : undefined; }); + var symbol = ts.forEach(symbols, function (s) { return getCompletionEntryDisplayNameForSymbol(s, target, false) === entryName ? s : undefined; }); if (symbol) { var displayPartsDocumentationsAndSymbolKind = getSymbolDisplayPartsDocumentationAndSymbolKind(symbol, getValidSourceFile(fileName), location_2, typeInfoResolver, location_2, 7); return { @@ -31380,430 +31913,505 @@ var ts; var results = getOccurrencesAtPositionCore(fileName, position); if (results) { var sourceFile = getCanonicalFileName(ts.normalizeSlashes(fileName)); - results.forEach(function (value) { - var targetFile = getCanonicalFileName(ts.normalizeSlashes(value.fileName)); - ts.Debug.assert(sourceFile == targetFile, "Unexpected file in results. Found results in " + targetFile + " expected only results in " + sourceFile + "."); - }); + results = ts.filter(results, function (r) { return r.fileName === fileName; }); } return results; } - function getOccurrencesAtPositionCore(fileName, position) { + function getDocumentHighlights(fileName, position, filesToSearch) { synchronizeHostData(); + filesToSearch = ts.map(filesToSearch, ts.normalizeSlashes); + var sourceFilesToSearch = ts.filter(program.getSourceFiles(), function (f) { return ts.contains(filesToSearch, f.fileName); }); var sourceFile = getValidSourceFile(fileName); var node = ts.getTouchingWord(sourceFile, position); if (!node) { return undefined; } - if (node.kind === 65 || node.kind === 93 || node.kind === 91 || - isLiteralNameOfPropertyDeclarationOrIndexAccess(node) || isNameOfExternalModuleImportOrDeclaration(node)) { - return convertReferences(getReferencesForNode(node, [sourceFile], true, false, false)); + return getSemanticDocumentHighlights(node) || getSyntacticDocumentHighlights(node); + function getHighlightSpanForNode(node) { + var start = node.getStart(); + var end = node.getEnd(); + return { + fileName: sourceFile.fileName, + textSpan: ts.createTextSpanFromBounds(start, end), + kind: HighlightSpanKind.none + }; } - switch (node.kind) { - case 84: - case 76: - if (hasKind(node.parent, 183)) { - return getIfElseOccurrences(node.parent); - } - break; - case 90: - if (hasKind(node.parent, 191)) { - return getReturnOccurrences(node.parent); - } - break; - case 94: - if (hasKind(node.parent, 195)) { - return getThrowOccurrences(node.parent); - } - break; - case 68: - if (hasKind(parent(parent(node)), 196)) { - return getTryCatchFinallyOccurrences(node.parent.parent); - } - break; - case 96: - case 81: - if (hasKind(parent(node), 196)) { - return getTryCatchFinallyOccurrences(node.parent); - } - break; - case 92: - if (hasKind(node.parent, 193)) { - return getSwitchCaseDefaultOccurrences(node.parent); - } - break; - case 67: - case 73: - if (hasKind(parent(parent(parent(node))), 193)) { - return getSwitchCaseDefaultOccurrences(node.parent.parent.parent); - } - break; - case 66: - case 71: - if (hasKind(node.parent, 190) || hasKind(node.parent, 189)) { - return getBreakOrContinueStatementOccurences(node.parent); - } - break; - case 82: - if (hasKind(node.parent, 186) || - hasKind(node.parent, 187) || - hasKind(node.parent, 188)) { - return getLoopBreakContinueOccurrences(node.parent); - } - break; - case 100: - case 75: - if (hasKind(node.parent, 185) || hasKind(node.parent, 184)) { - return getLoopBreakContinueOccurrences(node.parent); - } - break; - case 114: - if (hasKind(node.parent, 135)) { - return getConstructorOccurrences(node.parent); - } - break; - case 116: - case 120: - if (hasKind(node.parent, 136) || hasKind(node.parent, 137)) { - return getGetAndSetOccurrences(node.parent); - } - default: - if (ts.isModifier(node.kind) && node.parent && - (ts.isDeclaration(node.parent) || node.parent.kind === 180)) { - return getModifierOccurrences(node.kind, node.parent); - } - } - return undefined; - function getIfElseOccurrences(ifStatement) { - var keywords = []; - while (hasKind(ifStatement.parent, 183) && ifStatement.parent.elseStatement === ifStatement) { - ifStatement = ifStatement.parent; + function getSemanticDocumentHighlights(node) { + if (node.kind === 65 || + node.kind === 93 || + node.kind === 91 || + isLiteralNameOfPropertyDeclarationOrIndexAccess(node) || + isNameOfExternalModuleImportOrDeclaration(node)) { + var referencedSymbols = getReferencedSymbolsForNodes(node, sourceFilesToSearch, false, false); + return convertReferencedSymbols(referencedSymbols); } - while (ifStatement) { - var children = ifStatement.getChildren(); - pushKeywordIf(keywords, children[0], 84); - for (var i = children.length - 1; i >= 0; i--) { - if (pushKeywordIf(keywords, children[i], 76)) { - break; + return undefined; + function convertReferencedSymbols(referencedSymbols) { + if (!referencedSymbols) { + return undefined; + } + var fileNameToDocumentHighlights = {}; + var result = []; + for (var _i = 0; _i < referencedSymbols.length; _i++) { + var referencedSymbol = referencedSymbols[_i]; + for (var _a = 0, _b = referencedSymbol.references; _a < _b.length; _a++) { + var referenceEntry = _b[_a]; + var fileName_1 = referenceEntry.fileName; + var documentHighlights = ts.getProperty(fileNameToDocumentHighlights, fileName_1); + if (!documentHighlights) { + documentHighlights = { fileName: fileName_1, highlightSpans: [] }; + fileNameToDocumentHighlights[fileName_1] = documentHighlights; + result.push(documentHighlights); + } + documentHighlights.highlightSpans.push({ + textSpan: referenceEntry.textSpan, + kind: referenceEntry.isWriteAccess ? HighlightSpanKind.writtenReference : HighlightSpanKind.reference + }); } } - if (!hasKind(ifStatement.elseStatement, 183)) { - break; - } - ifStatement = ifStatement.elseStatement; + return result; } - var result = []; - for (var i = 0; i < keywords.length; i++) { - if (keywords[i].kind === 76 && i < keywords.length - 1) { - var elseKeyword = keywords[i]; - var ifKeyword = keywords[i + 1]; - var shouldHighlightNextKeyword = true; - for (var j = ifKeyword.getStart() - 1; j >= elseKeyword.end; j--) { - if (!ts.isWhiteSpace(sourceFile.text.charCodeAt(j))) { - shouldHighlightNextKeyword = false; + } + function getSyntacticDocumentHighlights(node) { + var fileName = sourceFile.fileName; + var highlightSpans = getHighlightSpans(node); + if (!highlightSpans || highlightSpans.length === 0) { + return undefined; + } + return [{ fileName: fileName, highlightSpans: highlightSpans }]; + function hasKind(node, kind) { + return node !== undefined && node.kind === kind; + } + function parent(node) { + return node && node.parent; + } + function getHighlightSpans(node) { + if (node) { + switch (node.kind) { + case 84: + case 76: + if (hasKind(node.parent, 183)) { + return getIfElseOccurrences(node.parent); + } break; + case 90: + if (hasKind(node.parent, 191)) { + return getReturnOccurrences(node.parent); + } + break; + case 94: + if (hasKind(node.parent, 195)) { + return getThrowOccurrences(node.parent); + } + break; + case 68: + if (hasKind(parent(parent(node)), 196)) { + return getTryCatchFinallyOccurrences(node.parent.parent); + } + break; + case 96: + case 81: + if (hasKind(parent(node), 196)) { + return getTryCatchFinallyOccurrences(node.parent); + } + break; + case 92: + if (hasKind(node.parent, 193)) { + return getSwitchCaseDefaultOccurrences(node.parent); + } + break; + case 67: + case 73: + if (hasKind(parent(parent(parent(node))), 193)) { + return getSwitchCaseDefaultOccurrences(node.parent.parent.parent); + } + break; + case 66: + case 71: + if (hasKind(node.parent, 190) || hasKind(node.parent, 189)) { + return getBreakOrContinueStatementOccurences(node.parent); + } + break; + case 82: + if (hasKind(node.parent, 186) || + hasKind(node.parent, 187) || + hasKind(node.parent, 188)) { + return getLoopBreakContinueOccurrences(node.parent); + } + break; + case 100: + case 75: + if (hasKind(node.parent, 185) || hasKind(node.parent, 184)) { + return getLoopBreakContinueOccurrences(node.parent); + } + break; + case 114: + if (hasKind(node.parent, 135)) { + return getConstructorOccurrences(node.parent); + } + break; + case 116: + case 120: + if (hasKind(node.parent, 136) || hasKind(node.parent, 137)) { + return getGetAndSetOccurrences(node.parent); + } + default: + if (ts.isModifier(node.kind) && node.parent && + (ts.isDeclaration(node.parent) || node.parent.kind === 180)) { + return getModifierOccurrences(node.kind, node.parent); + } + } + } + return undefined; + } + function aggregateOwnedThrowStatements(node) { + var statementAccumulator = []; + aggregate(node); + return statementAccumulator; + function aggregate(node) { + if (node.kind === 195) { + statementAccumulator.push(node); + } + else if (node.kind === 196) { + var tryStatement = node; + if (tryStatement.catchClause) { + aggregate(tryStatement.catchClause); + } + else { + aggregate(tryStatement.tryBlock); + } + if (tryStatement.finallyBlock) { + aggregate(tryStatement.finallyBlock); } } - if (shouldHighlightNextKeyword) { - result.push({ - fileName: fileName, - textSpan: ts.createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end), - isWriteAccess: false - }); - i++; - continue; + else if (!ts.isFunctionLike(node)) { + ts.forEachChild(node, aggregate); } } - result.push(getReferenceEntryFromNode(keywords[i])); + ; } - return result; - } - function getReturnOccurrences(returnStatement) { - var func = ts.getContainingFunction(returnStatement); - if (!(func && hasKind(func.body, 179))) { + function getThrowStatementOwner(throwStatement) { + var child = throwStatement; + while (child.parent) { + var parent_10 = child.parent; + if (ts.isFunctionBlock(parent_10) || parent_10.kind === 227) { + return parent_10; + } + if (parent_10.kind === 196) { + var tryStatement = parent_10; + if (tryStatement.tryBlock === child && tryStatement.catchClause) { + return child; + } + } + child = parent_10; + } return undefined; } - var keywords = []; - ts.forEachReturnStatement(func.body, function (returnStatement) { - pushKeywordIf(keywords, returnStatement.getFirstToken(), 90); - }); - ts.forEach(aggregateOwnedThrowStatements(func.body), function (throwStatement) { - pushKeywordIf(keywords, throwStatement.getFirstToken(), 94); - }); - return ts.map(keywords, getReferenceEntryFromNode); - } - function getThrowOccurrences(throwStatement) { - var owner = getThrowStatementOwner(throwStatement); - if (!owner) { + function aggregateAllBreakAndContinueStatements(node) { + var statementAccumulator = []; + aggregate(node); + return statementAccumulator; + function aggregate(node) { + if (node.kind === 190 || node.kind === 189) { + statementAccumulator.push(node); + } + else if (!ts.isFunctionLike(node)) { + ts.forEachChild(node, aggregate); + } + } + ; + } + function ownsBreakOrContinueStatement(owner, statement) { + var actualOwner = getBreakOrContinueOwner(statement); + return actualOwner && actualOwner === owner; + } + function getBreakOrContinueOwner(statement) { + for (var node_1 = statement.parent; node_1; node_1 = node_1.parent) { + switch (node_1.kind) { + case 193: + if (statement.kind === 189) { + continue; + } + case 186: + case 187: + case 188: + case 185: + case 184: + if (!statement.label || isLabeledBy(node_1, statement.label.text)) { + return node_1; + } + break; + default: + if (ts.isFunctionLike(node_1)) { + return undefined; + } + break; + } + } return undefined; } - var keywords = []; - ts.forEach(aggregateOwnedThrowStatements(owner), function (throwStatement) { - pushKeywordIf(keywords, throwStatement.getFirstToken(), 94); - }); - if (ts.isFunctionBlock(owner)) { - ts.forEachReturnStatement(owner, function (returnStatement) { + function getModifierOccurrences(modifier, declaration) { + var container = declaration.parent; + if (ts.isAccessibilityModifier(modifier)) { + if (!(container.kind === 201 || + (declaration.kind === 129 && hasKind(container, 135)))) { + return undefined; + } + } + else if (modifier === 110) { + if (container.kind !== 201) { + return undefined; + } + } + else if (modifier === 78 || modifier === 115) { + if (!(container.kind === 206 || container.kind === 227)) { + return undefined; + } + } + else { + return undefined; + } + var keywords = []; + var modifierFlag = getFlagFromModifier(modifier); + var nodes; + switch (container.kind) { + case 206: + case 227: + nodes = container.statements; + break; + case 135: + nodes = container.parameters.concat(container.parent.members); + break; + case 201: + nodes = container.members; + if (modifierFlag & 112) { + var constructor = ts.forEach(container.members, function (member) { + return member.kind === 135 && member; + }); + if (constructor) { + nodes = nodes.concat(constructor.parameters); + } + } + break; + default: + ts.Debug.fail("Invalid container kind."); + } + ts.forEach(nodes, function (node) { + if (node.modifiers && node.flags & modifierFlag) { + ts.forEach(node.modifiers, function (child) { return pushKeywordIf(keywords, child, modifier); }); + } + }); + return ts.map(keywords, getHighlightSpanForNode); + function getFlagFromModifier(modifier) { + switch (modifier) { + case 109: + return 16; + case 107: + return 32; + case 108: + return 64; + case 110: + return 128; + case 78: + return 1; + case 115: + return 2; + default: + ts.Debug.fail(); + } + } + } + function pushKeywordIf(keywordList, token) { + var expected = []; + for (var _i = 2; _i < arguments.length; _i++) { + expected[_i - 2] = arguments[_i]; + } + if (token && ts.contains(expected, token.kind)) { + keywordList.push(token); + return true; + } + return false; + } + function getGetAndSetOccurrences(accessorDeclaration) { + var keywords = []; + tryPushAccessorKeyword(accessorDeclaration.symbol, 136); + tryPushAccessorKeyword(accessorDeclaration.symbol, 137); + return ts.map(keywords, getHighlightSpanForNode); + function tryPushAccessorKeyword(accessorSymbol, accessorKind) { + var accessor = ts.getDeclarationOfKind(accessorSymbol, accessorKind); + if (accessor) { + ts.forEach(accessor.getChildren(), function (child) { return pushKeywordIf(keywords, child, 116, 120); }); + } + } + } + function getConstructorOccurrences(constructorDeclaration) { + var declarations = constructorDeclaration.symbol.getDeclarations(); + var keywords = []; + ts.forEach(declarations, function (declaration) { + ts.forEach(declaration.getChildren(), function (token) { + return pushKeywordIf(keywords, token, 114); + }); + }); + return ts.map(keywords, getHighlightSpanForNode); + } + function getLoopBreakContinueOccurrences(loopNode) { + var keywords = []; + if (pushKeywordIf(keywords, loopNode.getFirstToken(), 82, 100, 75)) { + if (loopNode.kind === 184) { + var loopTokens = loopNode.getChildren(); + for (var i = loopTokens.length - 1; i >= 0; i--) { + if (pushKeywordIf(keywords, loopTokens[i], 100)) { + break; + } + } + } + } + var breaksAndContinues = aggregateAllBreakAndContinueStatements(loopNode.statement); + ts.forEach(breaksAndContinues, function (statement) { + if (ownsBreakOrContinueStatement(loopNode, statement)) { + pushKeywordIf(keywords, statement.getFirstToken(), 66, 71); + } + }); + return ts.map(keywords, getHighlightSpanForNode); + } + function getBreakOrContinueStatementOccurences(breakOrContinueStatement) { + var owner = getBreakOrContinueOwner(breakOrContinueStatement); + if (owner) { + switch (owner.kind) { + case 186: + case 187: + case 188: + case 184: + case 185: + return getLoopBreakContinueOccurrences(owner); + case 193: + return getSwitchCaseDefaultOccurrences(owner); + } + } + return undefined; + } + function getSwitchCaseDefaultOccurrences(switchStatement) { + var keywords = []; + pushKeywordIf(keywords, switchStatement.getFirstToken(), 92); + ts.forEach(switchStatement.caseBlock.clauses, function (clause) { + pushKeywordIf(keywords, clause.getFirstToken(), 67, 73); + var breaksAndContinues = aggregateAllBreakAndContinueStatements(clause); + ts.forEach(breaksAndContinues, function (statement) { + if (ownsBreakOrContinueStatement(switchStatement, statement)) { + pushKeywordIf(keywords, statement.getFirstToken(), 66); + } + }); + }); + return ts.map(keywords, getHighlightSpanForNode); + } + function getTryCatchFinallyOccurrences(tryStatement) { + var keywords = []; + pushKeywordIf(keywords, tryStatement.getFirstToken(), 96); + if (tryStatement.catchClause) { + pushKeywordIf(keywords, tryStatement.catchClause.getFirstToken(), 68); + } + if (tryStatement.finallyBlock) { + var finallyKeyword = ts.findChildOfKind(tryStatement, 81, sourceFile); + pushKeywordIf(keywords, finallyKeyword, 81); + } + return ts.map(keywords, getHighlightSpanForNode); + } + function getThrowOccurrences(throwStatement) { + var owner = getThrowStatementOwner(throwStatement); + if (!owner) { + return undefined; + } + var keywords = []; + ts.forEach(aggregateOwnedThrowStatements(owner), function (throwStatement) { + pushKeywordIf(keywords, throwStatement.getFirstToken(), 94); + }); + if (ts.isFunctionBlock(owner)) { + ts.forEachReturnStatement(owner, function (returnStatement) { + pushKeywordIf(keywords, returnStatement.getFirstToken(), 90); + }); + } + return ts.map(keywords, getHighlightSpanForNode); + } + function getReturnOccurrences(returnStatement) { + var func = ts.getContainingFunction(returnStatement); + if (!(func && hasKind(func.body, 179))) { + return undefined; + } + var keywords = []; + ts.forEachReturnStatement(func.body, function (returnStatement) { pushKeywordIf(keywords, returnStatement.getFirstToken(), 90); }); + ts.forEach(aggregateOwnedThrowStatements(func.body), function (throwStatement) { + pushKeywordIf(keywords, throwStatement.getFirstToken(), 94); + }); + return ts.map(keywords, getHighlightSpanForNode); } - return ts.map(keywords, getReferenceEntryFromNode); - } - function aggregateOwnedThrowStatements(node) { - var statementAccumulator = []; - aggregate(node); - return statementAccumulator; - function aggregate(node) { - if (node.kind === 195) { - statementAccumulator.push(node); + function getIfElseOccurrences(ifStatement) { + var keywords = []; + while (hasKind(ifStatement.parent, 183) && ifStatement.parent.elseStatement === ifStatement) { + ifStatement = ifStatement.parent; } - else if (node.kind === 196) { - var tryStatement = node; - if (tryStatement.catchClause) { - aggregate(tryStatement.catchClause); - } - else { - aggregate(tryStatement.tryBlock); - } - if (tryStatement.finallyBlock) { - aggregate(tryStatement.finallyBlock); - } - } - else if (!ts.isFunctionLike(node)) { - ts.forEachChild(node, aggregate); - } - } - ; - } - function getThrowStatementOwner(throwStatement) { - var child = throwStatement; - while (child.parent) { - var parent_9 = child.parent; - if (ts.isFunctionBlock(parent_9) || parent_9.kind === 227) { - return parent_9; - } - if (parent_9.kind === 196) { - var tryStatement = parent_9; - if (tryStatement.tryBlock === child && tryStatement.catchClause) { - return child; - } - } - child = parent_9; - } - return undefined; - } - function getTryCatchFinallyOccurrences(tryStatement) { - var keywords = []; - pushKeywordIf(keywords, tryStatement.getFirstToken(), 96); - if (tryStatement.catchClause) { - pushKeywordIf(keywords, tryStatement.catchClause.getFirstToken(), 68); - } - if (tryStatement.finallyBlock) { - var finallyKeyword = ts.findChildOfKind(tryStatement, 81, sourceFile); - pushKeywordIf(keywords, finallyKeyword, 81); - } - return ts.map(keywords, getReferenceEntryFromNode); - } - function getLoopBreakContinueOccurrences(loopNode) { - var keywords = []; - if (pushKeywordIf(keywords, loopNode.getFirstToken(), 82, 100, 75)) { - if (loopNode.kind === 184) { - var loopTokens = loopNode.getChildren(); - for (var i = loopTokens.length - 1; i >= 0; i--) { - if (pushKeywordIf(keywords, loopTokens[i], 100)) { + while (ifStatement) { + var children = ifStatement.getChildren(); + pushKeywordIf(keywords, children[0], 84); + for (var i = children.length - 1; i >= 0; i--) { + if (pushKeywordIf(keywords, children[i], 76)) { break; } } - } - } - var breaksAndContinues = aggregateAllBreakAndContinueStatements(loopNode.statement); - ts.forEach(breaksAndContinues, function (statement) { - if (ownsBreakOrContinueStatement(loopNode, statement)) { - pushKeywordIf(keywords, statement.getFirstToken(), 66, 71); - } - }); - return ts.map(keywords, getReferenceEntryFromNode); - } - function getSwitchCaseDefaultOccurrences(switchStatement) { - var keywords = []; - pushKeywordIf(keywords, switchStatement.getFirstToken(), 92); - ts.forEach(switchStatement.caseBlock.clauses, function (clause) { - pushKeywordIf(keywords, clause.getFirstToken(), 67, 73); - var breaksAndContinues = aggregateAllBreakAndContinueStatements(clause); - ts.forEach(breaksAndContinues, function (statement) { - if (ownsBreakOrContinueStatement(switchStatement, statement)) { - pushKeywordIf(keywords, statement.getFirstToken(), 66); + if (!hasKind(ifStatement.elseStatement, 183)) { + break; } - }); - }); - return ts.map(keywords, getReferenceEntryFromNode); - } - function getBreakOrContinueStatementOccurences(breakOrContinueStatement) { - var owner = getBreakOrContinueOwner(breakOrContinueStatement); - if (owner) { - switch (owner.kind) { - case 186: - case 187: - case 188: - case 184: - case 185: - return getLoopBreakContinueOccurrences(owner); - case 193: - return getSwitchCaseDefaultOccurrences(owner); + ifStatement = ifStatement.elseStatement; } - } - return undefined; - } - function aggregateAllBreakAndContinueStatements(node) { - var statementAccumulator = []; - aggregate(node); - return statementAccumulator; - function aggregate(node) { - if (node.kind === 190 || node.kind === 189) { - statementAccumulator.push(node); - } - else if (!ts.isFunctionLike(node)) { - ts.forEachChild(node, aggregate); - } - } - ; - } - function ownsBreakOrContinueStatement(owner, statement) { - var actualOwner = getBreakOrContinueOwner(statement); - return actualOwner && actualOwner === owner; - } - function getBreakOrContinueOwner(statement) { - for (var node_1 = statement.parent; node_1; node_1 = node_1.parent) { - switch (node_1.kind) { - case 193: - if (statement.kind === 189) { + var result = []; + for (var i = 0; i < keywords.length; i++) { + if (keywords[i].kind === 76 && i < keywords.length - 1) { + var elseKeyword = keywords[i]; + var ifKeyword = keywords[i + 1]; + var shouldCombindElseAndIf = true; + for (var j = ifKeyword.getStart() - 1; j >= elseKeyword.end; j--) { + if (!ts.isWhiteSpace(sourceFile.text.charCodeAt(j))) { + shouldCombindElseAndIf = false; + break; + } + } + if (shouldCombindElseAndIf) { + result.push({ + fileName: fileName, + textSpan: ts.createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end), + kind: HighlightSpanKind.reference + }); + i++; continue; } - case 186: - case 187: - case 188: - case 185: - case 184: - if (!statement.label || isLabeledBy(node_1, statement.label.text)) { - return node_1; - } - break; - default: - if (ts.isFunctionLike(node_1)) { - return undefined; - } - break; - } - } - return undefined; - } - function getConstructorOccurrences(constructorDeclaration) { - var declarations = constructorDeclaration.symbol.getDeclarations(); - var keywords = []; - ts.forEach(declarations, function (declaration) { - ts.forEach(declaration.getChildren(), function (token) { - return pushKeywordIf(keywords, token, 114); - }); - }); - return ts.map(keywords, getReferenceEntryFromNode); - } - function getGetAndSetOccurrences(accessorDeclaration) { - var keywords = []; - tryPushAccessorKeyword(accessorDeclaration.symbol, 136); - tryPushAccessorKeyword(accessorDeclaration.symbol, 137); - return ts.map(keywords, getReferenceEntryFromNode); - function tryPushAccessorKeyword(accessorSymbol, accessorKind) { - var accessor = ts.getDeclarationOfKind(accessorSymbol, accessorKind); - if (accessor) { - ts.forEach(accessor.getChildren(), function (child) { return pushKeywordIf(keywords, child, 116, 120); }); + } + result.push(getHighlightSpanForNode(keywords[i])); } + return result; } } - function getModifierOccurrences(modifier, declaration) { - var container = declaration.parent; - if (ts.isAccessibilityModifier(modifier)) { - if (!(container.kind === 201 || - (declaration.kind === 129 && hasKind(container, 135)))) { - return undefined; - } - } - else if (modifier === 110) { - if (container.kind !== 201) { - return undefined; - } - } - else if (modifier === 78 || modifier === 115) { - if (!(container.kind === 206 || container.kind === 227)) { - return undefined; - } - } - else { + } + function getOccurrencesAtPositionCore(fileName, position) { + synchronizeHostData(); + return convertDocumentHighlights(getDocumentHighlights(fileName, position, [fileName])); + function convertDocumentHighlights(documentHighlights) { + if (!documentHighlights) { return undefined; } - var keywords = []; - var modifierFlag = getFlagFromModifier(modifier); - var nodes; - switch (container.kind) { - case 206: - case 227: - nodes = container.statements; - break; - case 135: - nodes = container.parameters.concat(container.parent.members); - break; - case 201: - nodes = container.members; - if (modifierFlag & 112) { - var constructor = ts.forEach(container.members, function (member) { - return member.kind === 135 && member; - }); - if (constructor) { - nodes = nodes.concat(constructor.parameters); - } - } - break; - default: - ts.Debug.fail("Invalid container kind."); - } - ts.forEach(nodes, function (node) { - if (node.modifiers && node.flags & modifierFlag) { - ts.forEach(node.modifiers, function (child) { return pushKeywordIf(keywords, child, modifier); }); - } - }); - return ts.map(keywords, getReferenceEntryFromNode); - function getFlagFromModifier(modifier) { - switch (modifier) { - case 109: - return 16; - case 107: - return 32; - case 108: - return 64; - case 110: - return 128; - case 78: - return 1; - case 115: - return 2; - default: - ts.Debug.fail(); + var result = []; + for (var _i = 0; _i < documentHighlights.length; _i++) { + var entry = documentHighlights[_i]; + for (var _a = 0, _b = entry.highlightSpans; _a < _b.length; _a++) { + var highlightSpan = _b[_a]; + result.push({ + fileName: entry.fileName, + textSpan: highlightSpan.textSpan, + isWriteAccess: highlightSpan.kind === HighlightSpanKind.writtenReference + }); } } - } - function hasKind(node, kind) { - return node !== undefined && node.kind === kind; - } - function parent(node) { - return node && node.parent; - } - function pushKeywordIf(keywordList, token) { - var expected = []; - for (var _i = 2; _i < arguments.length; _i++) { - expected[_i - 2] = arguments[_i]; - } - if (token && ts.contains(expected, token.kind)) { - keywordList.push(token); - return true; - } - return false; + return result; } } function convertReferences(referenceSymbols) { @@ -31842,9 +32450,9 @@ var ts; return undefined; } ts.Debug.assert(node.kind === 65 || node.kind === 7 || node.kind === 8); - return getReferencesForNode(node, program.getSourceFiles(), false, findInStrings, findInComments); + return getReferencedSymbolsForNodes(node, program.getSourceFiles(), findInStrings, findInComments); } - function getReferencesForNode(node, sourceFiles, searchOnlyInCurrentFile, findInStrings, findInComments) { + function getReferencedSymbolsForNodes(node, sourceFiles, findInStrings, findInComments) { if (isLabelName(node)) { if (isJumpStatementTarget(node)) { var labelDefinition = getTargetLabel(node.parent, node.text); @@ -31878,21 +32486,15 @@ var ts; getReferencesInNode(scope, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); } else { - if (searchOnlyInCurrentFile) { - ts.Debug.assert(sourceFiles.length === 1); - result = []; - getReferencesInNode(sourceFiles[0], symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); - } - else { - var internedName = getInternedName(symbol, node, declarations); - ts.forEach(sourceFiles, function (sourceFile) { - cancellationToken.throwIfCancellationRequested(); - var nameTable = getNameTable(sourceFile); - if (ts.lookUp(nameTable, internedName)) { - result = result || []; - getReferencesInNode(sourceFile, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); - } - }); + var internedName = getInternedName(symbol, node, declarations); + for (var _i = 0; _i < sourceFiles.length; _i++) { + var sourceFile = sourceFiles[_i]; + cancellationToken.throwIfCancellationRequested(); + var nameTable = getNameTable(sourceFile); + if (ts.lookUp(nameTable, internedName)) { + result = result || []; + getReferencesInNode(sourceFile, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); + } } } return result; @@ -32333,17 +32935,17 @@ var ts; if (isNameOfPropertyAssignment(node)) { var objectLiteral = node.parent.parent; var contextualType = typeInfoResolver.getContextualType(objectLiteral); - var name_20 = node.text; + var name_22 = node.text; if (contextualType) { if (contextualType.flags & 16384) { - var unionProperty = contextualType.getProperty(name_20); + var unionProperty = contextualType.getProperty(name_22); if (unionProperty) { return [unionProperty]; } else { var result_3 = []; ts.forEach(contextualType.types, function (t) { - var symbol = t.getProperty(name_20); + var symbol = t.getProperty(name_22); if (symbol) { result_3.push(symbol); } @@ -32352,7 +32954,7 @@ var ts; } } else { - var symbol_1 = contextualType.getProperty(name_20); + var symbol_1 = contextualType.getProperty(name_22); if (symbol_1) { return [symbol_1]; } @@ -33034,6 +33636,7 @@ var ts; getReferencesAtPosition: getReferencesAtPosition, findReferences: findReferences, getOccurrencesAtPosition: getOccurrencesAtPosition, + getDocumentHighlights: getDocumentHighlights, getNameOrDottedNameSpan: getNameOrDottedNameSpan, getBreakpointStatementAtPosition: getBreakpointStatementAtPosition, getNavigateToItems: getNavigateToItems, @@ -33453,25 +34056,27 @@ var ts; } var CommandNames; (function (CommandNames) { + CommandNames.Brace = "brace"; CommandNames.Change = "change"; CommandNames.Close = "close"; CommandNames.Completions = "completions"; CommandNames.CompletionDetails = "completionEntryDetails"; - CommandNames.SignatureHelp = "signatureHelp"; CommandNames.Configure = "configure"; CommandNames.Definition = "definition"; + CommandNames.Exit = "exit"; CommandNames.Format = "format"; CommandNames.Formatonkey = "formatonkey"; CommandNames.Geterr = "geterr"; CommandNames.NavBar = "navbar"; CommandNames.Navto = "navto"; + CommandNames.Occurrences = "occurrences"; CommandNames.Open = "open"; CommandNames.Quickinfo = "quickinfo"; CommandNames.References = "references"; CommandNames.Reload = "reload"; CommandNames.Rename = "rename"; CommandNames.Saveto = "saveto"; - CommandNames.Brace = "brace"; + CommandNames.SignatureHelp = "signatureHelp"; CommandNames.Unknown = "unknown"; })(CommandNames = server.CommandNames || (server.CommandNames = {})); var Errors; @@ -33625,7 +34230,8 @@ var ts; this.errorTimer = setTimeout(checkOne, ms); } }; - Session.prototype.getDefinition = function (line, offset, fileName) { + Session.prototype.getDefinition = function (_a) { + var line = _a.line, offset = _a.offset, fileName = _a.file; var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); if (!project) { @@ -33643,7 +34249,33 @@ var ts; end: compilerService.host.positionToLineOffset(def.fileName, ts.textSpanEnd(def.textSpan)) }); }); }; - Session.prototype.getRenameLocations = function (line, offset, fileName, findInComments, findInStrings) { + Session.prototype.getOccurrences = function (_a) { + var line = _a.line, offset = _a.offset, fileName = _a.file; + fileName = ts.normalizePath(fileName); + var project = this.projectService.getProjectForFile(fileName); + if (!project) { + throw Errors.NoProject; + } + var compilerService = project.compilerService; + var position = compilerService.host.lineOffsetToPosition(fileName, line, offset); + var occurrences = compilerService.languageService.getOccurrencesAtPosition(fileName, position); + if (!occurrences) { + return undefined; + } + return occurrences.map(function (occurrence) { + var fileName = occurrence.fileName, isWriteAccess = occurrence.isWriteAccess, textSpan = occurrence.textSpan; + var start = compilerService.host.positionToLineOffset(fileName, textSpan.start); + var end = compilerService.host.positionToLineOffset(fileName, ts.textSpanEnd(textSpan)); + return { + start: start, + end: end, + file: fileName, + isWriteAccess: isWriteAccess + }; + }); + }; + Session.prototype.getRenameLocations = function (_a) { + var line = _a.line, offset = _a.offset, fileName = _a.file, findInComments = _a.findInComments, findInStrings = _a.findInStrings; var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); if (!project) { @@ -33704,7 +34336,8 @@ var ts; }, []); return { info: renameInfo, locs: bakedRenameLocs }; }; - Session.prototype.getReferences = function (line, offset, fileName) { + Session.prototype.getReferences = function (_a) { + var line = _a.line, offset = _a.offset, fileName = _a.file; var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); if (!project) { @@ -33744,11 +34377,13 @@ var ts; symbolDisplayString: displayString }; }; - Session.prototype.openClientFile = function (fileName) { + Session.prototype.openClientFile = function (_a) { + var fileName = _a.file; var file = ts.normalizePath(fileName); this.projectService.openClientFile(file); }; - Session.prototype.getQuickInfo = function (line, offset, fileName) { + Session.prototype.getQuickInfo = function (_a) { + var line = _a.line, offset = _a.offset, fileName = _a.file; var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); if (!project) { @@ -33771,7 +34406,8 @@ var ts; documentation: docString }; }; - Session.prototype.getFormattingEditsForRange = function (line, offset, endLine, endOffset, fileName) { + Session.prototype.getFormattingEditsForRange = function (_a) { + var line = _a.line, offset = _a.offset, endLine = _a.endLine, endOffset = _a.endOffset, fileName = _a.file; var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); if (!project) { @@ -33792,7 +34428,8 @@ var ts; }; }); }; - Session.prototype.getFormattingEditsAfterKeystroke = function (line, offset, key, fileName) { + Session.prototype.getFormattingEditsAfterKeystroke = function (_a) { + var line = _a.line, offset = _a.offset, key = _a.key, fileName = _a.file; var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); if (!project) { @@ -33849,7 +34486,8 @@ var ts; }; }); }; - Session.prototype.getCompletions = function (line, offset, prefix, fileName) { + Session.prototype.getCompletions = function (_a) { + var line = _a.line, offset = _a.offset, prefix = _a.prefix, fileName = _a.file; if (!prefix) { prefix = ""; } @@ -33871,7 +34509,8 @@ var ts; return result; }, []).sort(function (a, b) { return a.name.localeCompare(b.name); }); }; - Session.prototype.getCompletionEntryDetails = function (line, offset, entryNames, fileName) { + Session.prototype.getCompletionEntryDetails = function (_a) { + var line = _a.line, offset = _a.offset, entryNames = _a.entryNames, fileName = _a.file; var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); if (!project) { @@ -33887,7 +34526,8 @@ var ts; return accum; }, []); }; - Session.prototype.getSignatureHelpItems = function (line, offset, fileName) { + Session.prototype.getSignatureHelpItems = function (_a) { + var line = _a.line, offset = _a.offset, fileName = _a.file; var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); if (!project) { @@ -33912,8 +34552,9 @@ var ts; }; return result; }; - Session.prototype.getDiagnostics = function (delay, fileNames) { + Session.prototype.getDiagnostics = function (_a) { var _this = this; + var delay = _a.delay, fileNames = _a.files; var checkList = fileNames.reduce(function (accum, fileName) { fileName = ts.normalizePath(fileName); var project = _this.projectService.getProjectForFile(fileName); @@ -33926,8 +34567,9 @@ var ts; this.updateErrorCheck(checkList, this.changeSeq, function (n) { return n == _this.changeSeq; }, delay); } }; - Session.prototype.change = function (line, offset, endLine, endOffset, insertString, fileName) { + Session.prototype.change = function (_a) { var _this = this; + var line = _a.line, offset = _a.offset, endLine = _a.endLine, endOffset = _a.endOffset, insertString = _a.insertString, fileName = _a.file; var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); if (project) { @@ -33941,8 +34583,9 @@ var ts; this.updateProjectStructure(this.changeSeq, function (n) { return n == _this.changeSeq; }); } }; - Session.prototype.reload = function (fileName, tempFileName, reqSeq) { + Session.prototype.reload = function (_a, reqSeq) { var _this = this; + var fileName = _a.file, tempFileName = _a.tmpfile; if (reqSeq === void 0) { reqSeq = 0; } var file = ts.normalizePath(fileName); var tmpfile = ts.normalizePath(tempFileName); @@ -33954,7 +34597,8 @@ var ts; }); } }; - Session.prototype.saveToTmp = function (fileName, tempFileName) { + Session.prototype.saveToTmp = function (_a) { + var fileName = _a.file, tempFileName = _a.tmpfile; var file = ts.normalizePath(fileName); var tmpfile = ts.normalizePath(tempFileName); var project = this.projectService.getProjectForFile(file); @@ -33962,7 +34606,8 @@ var ts; project.compilerService.host.saveTo(file, tmpfile); } }; - Session.prototype.closeClientFile = function (fileName) { + Session.prototype.closeClientFile = function (_a) { + var fileName = _a.file; var file = ts.normalizePath(fileName); this.projectService.closeClientFile(file); }; @@ -33983,7 +34628,8 @@ var ts; childItems: _this.decorateNavigationBarItem(project, fileName, item.childItems) }); }); }; - Session.prototype.getNavigationBarItems = function (fileName) { + Session.prototype.getNavigationBarItems = function (_a) { + var fileName = _a.file; var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); if (!project) { @@ -33996,7 +34642,8 @@ var ts; } return this.decorateNavigationBarItem(project, fileName, items); }; - Session.prototype.getNavigateToItems = function (searchValue, fileName, maxResultCount) { + Session.prototype.getNavigateToItems = function (_a) { + var searchValue = _a.searchValue, fileName = _a.file, maxResultCount = _a.maxResultCount; var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); if (!project) { @@ -34032,7 +34679,8 @@ var ts; return bakedItem; }); }; - Session.prototype.getBraceMatching = function (line, offset, fileName) { + Session.prototype.getBraceMatching = function (_a) { + var line = _a.line, offset = _a.offset, fileName = _a.file; var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); if (!project) { @@ -34049,6 +34697,8 @@ var ts; end: compilerService.host.positionToLineOffset(file, span.start + span.length) }); }); }; + Session.prototype.exit = function () { + }; Session.prototype.onMessage = function (message) { if (this.logger.isVerbose()) { this.logger.info("request: " + message); @@ -34060,108 +34710,97 @@ var ts; var errorMessage; var responseRequired = true; switch (request.command) { + case CommandNames.Exit: { + this.exit(); + responseRequired = false; + break; + } case CommandNames.Definition: { - var defArgs = request.arguments; - response = this.getDefinition(defArgs.line, defArgs.offset, defArgs.file); + response = this.getDefinition(request.arguments); break; } case CommandNames.References: { - var refArgs = request.arguments; - response = this.getReferences(refArgs.line, refArgs.offset, refArgs.file); + response = this.getReferences(request.arguments); break; } case CommandNames.Rename: { - var renameArgs = request.arguments; - response = this.getRenameLocations(renameArgs.line, renameArgs.offset, renameArgs.file, renameArgs.findInComments, renameArgs.findInStrings); + response = this.getRenameLocations(request.arguments); break; } case CommandNames.Open: { - var openArgs = request.arguments; - this.openClientFile(openArgs.file); + this.openClientFile(request.arguments); responseRequired = false; break; } case CommandNames.Quickinfo: { - var quickinfoArgs = request.arguments; - response = this.getQuickInfo(quickinfoArgs.line, quickinfoArgs.offset, quickinfoArgs.file); + response = this.getQuickInfo(request.arguments); break; } case CommandNames.Format: { - var formatArgs = request.arguments; - response = this.getFormattingEditsForRange(formatArgs.line, formatArgs.offset, formatArgs.endLine, formatArgs.endOffset, formatArgs.file); + response = this.getFormattingEditsForRange(request.arguments); break; } case CommandNames.Formatonkey: { - var formatOnKeyArgs = request.arguments; - response = this.getFormattingEditsAfterKeystroke(formatOnKeyArgs.line, formatOnKeyArgs.offset, formatOnKeyArgs.key, formatOnKeyArgs.file); + response = this.getFormattingEditsAfterKeystroke(request.arguments); break; } case CommandNames.Completions: { - var completionsArgs = request.arguments; - response = this.getCompletions(completionsArgs.line, completionsArgs.offset, completionsArgs.prefix, completionsArgs.file); + response = this.getCompletions(request.arguments); break; } case CommandNames.CompletionDetails: { - var completionDetailsArgs = request.arguments; - response = - this.getCompletionEntryDetails(completionDetailsArgs.line, completionDetailsArgs.offset, completionDetailsArgs.entryNames, completionDetailsArgs.file); + response = this.getCompletionEntryDetails(request.arguments); break; } case CommandNames.SignatureHelp: { - var signatureHelpArgs = request.arguments; - response = this.getSignatureHelpItems(signatureHelpArgs.line, signatureHelpArgs.offset, signatureHelpArgs.file); + response = this.getSignatureHelpItems(request.arguments); break; } case CommandNames.Geterr: { - var geterrArgs = request.arguments; - response = this.getDiagnostics(geterrArgs.delay, geterrArgs.files); + this.getDiagnostics(request.arguments); responseRequired = false; break; } case CommandNames.Change: { - var changeArgs = request.arguments; - this.change(changeArgs.line, changeArgs.offset, changeArgs.endLine, changeArgs.endOffset, changeArgs.insertString, changeArgs.file); + this.change(request.arguments); responseRequired = false; break; } case CommandNames.Configure: { - var configureArgs = request.arguments; - this.projectService.setHostConfiguration(configureArgs); + this.projectService.setHostConfiguration(request.arguments); this.output(undefined, CommandNames.Configure, request.seq); responseRequired = false; break; } case CommandNames.Reload: { - var reloadArgs = request.arguments; - this.reload(reloadArgs.file, reloadArgs.tmpfile, request.seq); + this.reload(request.arguments); responseRequired = false; break; } case CommandNames.Saveto: { - var savetoArgs = request.arguments; - this.saveToTmp(savetoArgs.file, savetoArgs.tmpfile); + this.saveToTmp(request.arguments); responseRequired = false; break; } case CommandNames.Close: { - var closeArgs = request.arguments; - this.closeClientFile(closeArgs.file); + this.closeClientFile(request.arguments); responseRequired = false; break; } case CommandNames.Navto: { - var navtoArgs = request.arguments; - response = this.getNavigateToItems(navtoArgs.searchValue, navtoArgs.file, navtoArgs.maxResultCount); + response = this.getNavigateToItems(request.arguments); break; } case CommandNames.Brace: { - var braceArguments = request.arguments; - response = this.getBraceMatching(braceArguments.line, braceArguments.offset, braceArguments.file); + response = this.getBraceMatching(request.arguments); break; } case CommandNames.NavBar: { - var navBarArgs = request.arguments; - response = this.getNavigationBarItems(navBarArgs.file); + response = this.getNavigationBarItems(request.arguments); + break; + } + case CommandNames.Occurrences: { + response = this.getOccurrences(request.arguments); break; } default: { @@ -34551,7 +35190,7 @@ var ts; var info = this.filenameToScriptInfo[args.file]; if (info) { info.setFormatOptions(args.formatOptions); - this.log("Host configuration update for file " + args.file); + this.log("Host configuration update for file " + args.file, "Info"); } } else { @@ -34872,6 +35511,9 @@ var ts; } }; ProjectService.prototype.printProjects = function () { + if (!this.psLogger.isVerbose()) { + return; + } this.psLogger.startGroup(); for (var i = 0, len = this.inferredProjects.length; i < len; i++) { var project = this.inferredProjects[i]; @@ -35403,6 +36045,9 @@ var ts; } return accum; }; + LineIndex.prototype.getLength = function () { + return this.root.charCount(); + }; LineIndex.prototype.every = function (f, rangeStart, rangeEnd) { if (!rangeEnd) { rangeEnd = this.root.charCount(); @@ -35969,6 +36614,11 @@ var ts; function IOSession(host, logger) { _super.call(this, host, logger); } + IOSession.prototype.exit = function () { + this.projectService.log("Exiting...", "Info"); + this.projectService.closeLog(); + process.exit(0); + }; IOSession.prototype.listen = function () { var _this = this; rl.on('line', function (input) { @@ -35976,9 +36626,7 @@ var ts; _this.onMessage(message); }); rl.on('close', function () { - _this.projectService.log("Exiting..."); - _this.projectService.closeLog(); - process.exit(0); + _this.exit(); }); }; return IOSession; diff --git a/bin/typescript.d.ts b/bin/typescript.d.ts index e817dfb54ae..a16bff2a862 100644 --- a/bin/typescript.d.ts +++ b/bin/typescript.d.ts @@ -295,34 +295,12 @@ declare module "typescript" { AccessibilityModifier = 112, BlockScoped = 12288, } - const enum ParserContextFlags { - StrictMode = 1, - DisallowIn = 2, - Yield = 4, - GeneratorParameter = 8, - Decorator = 16, - ThisNodeHasError = 32, - ParserGeneratedFlags = 63, - ThisNodeOrAnySubNodesHasError = 64, - HasAggregatedChildData = 128, - } - const enum RelationComparisonResult { - Succeeded = 1, - Failed = 2, - FailedAndReported = 3, - } interface Node extends TextRange { kind: SyntaxKind; flags: NodeFlags; - parserContextFlags?: ParserContextFlags; decorators?: NodeArray; modifiers?: ModifiersArray; - id?: number; parent?: Node; - symbol?: Symbol; - locals?: SymbolTable; - nextContainer?: Node; - localSymbol?: Symbol; } interface NodeArray extends Array, TextRange { hasTrailingComma?: boolean; @@ -723,7 +701,7 @@ declare module "typescript" { interface ExternalModuleReference extends Node { expression?: Expression; } - interface ImportDeclaration extends Statement, ModuleElement { + interface ImportDeclaration extends ModuleElement { importClause?: ImportClause; moduleSpecifier: Expression; } @@ -751,14 +729,14 @@ declare module "typescript" { type ExportSpecifier = ImportOrExportSpecifier; interface ExportAssignment extends Declaration, ModuleElement { isExportEquals?: boolean; - expression?: Expression; - type?: TypeNode; + expression: Expression; } interface FileReference extends TextRange { fileName: string; } interface CommentRange extends TextRange { hasTrailingNewLine?: boolean; + kind: SyntaxKind; } interface SourceFile extends Declaration { statements: NodeArray; @@ -772,9 +750,7 @@ declare module "typescript" { amdModuleName: string; referencedFiles: FileReference[]; hasNoDefaultLib: boolean; - externalModuleIndicator: Node; languageVersion: ScriptTarget; - identifiers: Map; } interface ScriptReferenceHost { getCompilerOptions(): CompilerOptions; @@ -785,6 +761,9 @@ declare module "typescript" { (fileName: string, data: string, writeByteOrderMark: boolean, onError?: (message: string) => void): void; } interface Program extends ScriptReferenceHost { + /** + * Get a list of files in the program + */ getSourceFiles(): SourceFile[]; /** * Emits the JavaScript and declaration files. If targetSourceFile is not specified, then @@ -801,15 +780,23 @@ declare module "typescript" { getGlobalDiagnostics(): Diagnostic[]; getSemanticDiagnostics(sourceFile?: SourceFile): Diagnostic[]; getDeclarationDiagnostics(sourceFile?: SourceFile): Diagnostic[]; + /** + * Gets a type checker that can be used to semantically analyze source fils in the program. + */ getTypeChecker(): TypeChecker; - getCommonSourceDirectory(): string; } interface SourceMapSpan { + /** Line number in the .js file. */ emittedLine: number; + /** Column number in the .js file. */ emittedColumn: number; + /** Line number in the .ts file. */ sourceLine: number; + /** Column number in the .ts file. */ sourceColumn: number; + /** Optional name (index into names array) associated with this span. */ nameIndex?: number; + /** .ts file (index into sources array) associated with this span */ sourceIndex: number; } interface SourceMapData { @@ -823,6 +810,7 @@ declare module "typescript" { sourceMapMappings: string; sourceMapDecodedMappings: SourceMapSpan[]; } + /** Return code used by getEmitOutput function to indicate status of the function */ enum ExitStatus { Success = 0, DiagnosticsPresent_OutputsSkipped = 1, @@ -831,7 +819,6 @@ declare module "typescript" { interface EmitResult { emitSkipped: boolean; diagnostics: Diagnostic[]; - sourceMaps: SourceMapData[]; } interface TypeCheckerHost { getCompilerOptions(): CompilerOptions; @@ -865,7 +852,7 @@ declare module "typescript" { getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number; isValidPropertyAccess(node: PropertyAccessExpression | QualifiedName, propertyName: string): boolean; getAliasedSymbol(symbol: Symbol): Symbol; - getExportsOfExternalModule(node: ImportDeclaration): Symbol[]; + getExportsOfModule(moduleSymbol: Symbol): Symbol[]; } interface SymbolDisplayBuilder { buildTypeDisplay(type: Type, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void; @@ -908,40 +895,6 @@ declare module "typescript" { WriteTypeParametersOrArguments = 1, UseOnlyExternalAliasing = 2, } - const enum SymbolAccessibility { - Accessible = 0, - NotAccessible = 1, - CannotBeNamed = 2, - } - type AnyImportSyntax = ImportDeclaration | ImportEqualsDeclaration; - interface SymbolVisibilityResult { - accessibility: SymbolAccessibility; - aliasesToMakeVisible?: AnyImportSyntax[]; - errorSymbolName?: string; - errorNode?: Node; - } - interface SymbolAccessiblityResult extends SymbolVisibilityResult { - errorModuleName?: string; - } - interface EmitResolver { - hasGlobalName(name: string): boolean; - getExpressionNameSubstitution(node: Identifier, getGeneratedNameForNode: (node: Node) => string): string; - isValueAliasDeclaration(node: Node): boolean; - isReferencedAliasDeclaration(node: Node, checkChildren?: boolean): boolean; - isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean; - getNodeCheckFlags(node: Node): NodeCheckFlags; - isDeclarationVisible(node: Declaration): boolean; - collectLinkedAliases(node: Identifier): Node[]; - isImplementationOfOverload(node: FunctionLikeDeclaration): boolean; - writeTypeOfDeclaration(declaration: AccessorDeclaration | VariableLikeDeclaration, enclosingDeclaration: Node, flags: TypeFormatFlags, writer: SymbolWriter): void; - writeReturnTypeOfSignatureDeclaration(signatureDeclaration: SignatureDeclaration, enclosingDeclaration: Node, flags: TypeFormatFlags, writer: SymbolWriter): void; - writeTypeOfExpression(expr: Expression, enclosingDeclaration: Node, flags: TypeFormatFlags, writer: SymbolWriter): void; - isSymbolAccessible(symbol: Symbol, enclosingDeclaration: Node, meaning: SymbolFlags): SymbolAccessiblityResult; - isEntityNameVisible(entityName: EntityName | Expression, enclosingDeclaration: Node): SymbolVisibilityResult; - getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number; - resolvesToSomeValue(location: Node, name: string): boolean; - getBlockScopedVariableId(node: Identifier): number; - } const enum SymbolFlags { FunctionScopedVariable = 1, BlockScopedVariable = 2, @@ -1011,57 +964,14 @@ declare module "typescript" { interface Symbol { flags: SymbolFlags; name: string; - id?: number; - mergeId?: number; declarations?: Declaration[]; - parent?: Symbol; members?: SymbolTable; exports?: SymbolTable; - exportSymbol?: Symbol; valueDeclaration?: Declaration; - constEnumOnlyModule?: boolean; - } - interface SymbolLinks { - target?: Symbol; - type?: Type; - declaredType?: Type; - mapper?: TypeMapper; - referenced?: boolean; - unionType?: UnionType; - resolvedExports?: SymbolTable; - exportsChecked?: boolean; - } - interface TransientSymbol extends Symbol, SymbolLinks { } interface SymbolTable { [index: string]: Symbol; } - const enum NodeCheckFlags { - TypeChecked = 1, - LexicalThis = 2, - CaptureThis = 4, - EmitExtends = 8, - SuperInstance = 16, - SuperStatic = 32, - ContextChecked = 64, - EnumValuesComputed = 128, - BlockScopedBindingInLoop = 256, - EmitDecorate = 512, - } - interface NodeLinks { - resolvedType?: Type; - resolvedSignature?: Signature; - resolvedSymbol?: Symbol; - flags?: NodeCheckFlags; - enumMemberValue?: number; - isIllegalTypeReferenceInConstraint?: boolean; - isVisible?: boolean; - generatedName?: string; - generatedNames?: Map; - assignmentChecks?: Map; - hasReportedStatementInAmbientContext?: boolean; - importOnRightSide?: Symbol; - } const enum TypeFlags { Any = 1, String = 2, @@ -1079,26 +989,16 @@ declare module "typescript" { Tuple = 8192, Union = 16384, Anonymous = 32768, - FromSignature = 65536, ObjectLiteral = 131072, - ContainsUndefinedOrNull = 262144, - ContainsObjectLiteral = 524288, ESSymbol = 1048576, - Intrinsic = 1048703, - Primitive = 1049086, StringLike = 258, NumberLike = 132, ObjectType = 48128, - RequiresWidening = 786432, } interface Type { flags: TypeFlags; - id: number; symbol?: Symbol; } - interface IntrinsicType extends Type { - intrinsicName: string; - } interface StringLiteralType extends Type { text: string; } @@ -1118,7 +1018,6 @@ declare module "typescript" { typeArguments: Type[]; } interface GenericType extends InterfaceType, TypeReference { - instantiations: Map; } interface TupleType extends ObjectType { elementTypes: Type[]; @@ -1126,20 +1025,9 @@ declare module "typescript" { } interface UnionType extends Type { types: Type[]; - resolvedProperties: SymbolTable; - } - interface ResolvedType extends ObjectType, UnionType { - members: SymbolTable; - properties: Symbol[]; - callSignatures: Signature[]; - constructSignatures: Signature[]; - stringIndexType: Type; - numberIndexType: Type; } interface TypeParameter extends Type { constraint: Type; - target?: TypeParameter; - mapper?: TypeMapper; } const enum SignatureKind { Call = 0, @@ -1149,28 +1037,22 @@ declare module "typescript" { declaration: SignatureDeclaration; typeParameters: TypeParameter[]; parameters: Symbol[]; - resolvedReturnType: Type; - minArgumentCount: number; - hasRestParameter: boolean; - hasStringLiterals: boolean; - target?: Signature; - mapper?: TypeMapper; - unionSignatures?: Signature[]; - erasedSignatureCache?: Signature; - isolatedSignatureType?: ObjectType; } const enum IndexKind { String = 0, Number = 1, } - interface TypeMapper { - (t: Type): Type; - } interface DiagnosticMessage { key: string; category: DiagnosticCategory; code: number; } + /** + * A linked list of formatted diagnostic messages to be used as part of a multiline message. + * It is built from the bottom up, leaving the head to be the "main" diagnostic. + * While it seems that DiagnosticMessageChain is structurally similar to DiagnosticMessage, + * the difference is that messages are all preformatted in DMC. + */ interface DiagnosticMessageChain { messageText: string; category: DiagnosticCategory; @@ -1219,6 +1101,7 @@ declare module "typescript" { version?: boolean; watch?: boolean; separateCompilation?: boolean; + emitDecoratorMetadata?: boolean; [option: string]: string | number | boolean; } const enum ModuleKind { @@ -1241,142 +1124,6 @@ declare module "typescript" { fileNames: string[]; errors: Diagnostic[]; } - interface CommandLineOption { - name: string; - type: string | Map; - isFilePath?: boolean; - shortName?: string; - description?: DiagnosticMessage; - paramType?: DiagnosticMessage; - error?: DiagnosticMessage; - experimental?: boolean; - } - const enum CharacterCodes { - nullCharacter = 0, - maxAsciiCharacter = 127, - lineFeed = 10, - carriageReturn = 13, - lineSeparator = 8232, - paragraphSeparator = 8233, - nextLine = 133, - space = 32, - nonBreakingSpace = 160, - enQuad = 8192, - emQuad = 8193, - enSpace = 8194, - emSpace = 8195, - threePerEmSpace = 8196, - fourPerEmSpace = 8197, - sixPerEmSpace = 8198, - figureSpace = 8199, - punctuationSpace = 8200, - thinSpace = 8201, - hairSpace = 8202, - zeroWidthSpace = 8203, - narrowNoBreakSpace = 8239, - ideographicSpace = 12288, - mathematicalSpace = 8287, - ogham = 5760, - _ = 95, - $ = 36, - _0 = 48, - _1 = 49, - _2 = 50, - _3 = 51, - _4 = 52, - _5 = 53, - _6 = 54, - _7 = 55, - _8 = 56, - _9 = 57, - a = 97, - b = 98, - c = 99, - d = 100, - e = 101, - f = 102, - g = 103, - h = 104, - i = 105, - j = 106, - k = 107, - l = 108, - m = 109, - n = 110, - o = 111, - p = 112, - q = 113, - r = 114, - s = 115, - t = 116, - u = 117, - v = 118, - w = 119, - x = 120, - y = 121, - z = 122, - A = 65, - B = 66, - C = 67, - D = 68, - E = 69, - F = 70, - G = 71, - H = 72, - I = 73, - J = 74, - K = 75, - L = 76, - M = 77, - N = 78, - O = 79, - P = 80, - Q = 81, - R = 82, - S = 83, - T = 84, - U = 85, - V = 86, - W = 87, - X = 88, - Y = 89, - Z = 90, - ampersand = 38, - asterisk = 42, - at = 64, - backslash = 92, - backtick = 96, - bar = 124, - caret = 94, - closeBrace = 125, - closeBracket = 93, - closeParen = 41, - colon = 58, - comma = 44, - dot = 46, - doubleQuote = 34, - equals = 61, - exclamation = 33, - greaterThan = 62, - hash = 35, - lessThan = 60, - minus = 45, - openBrace = 123, - openBracket = 91, - openParen = 40, - percent = 37, - plus = 43, - question = 63, - semicolon = 59, - singleQuote = 39, - slash = 47, - tilde = 126, - backspace = 8, - formFeed = 12, - byteOrderMark = 65279, - tab = 9, - verticalTab = 11, - } interface CancellationToken { isCancellationRequested(): boolean; } @@ -1400,49 +1147,39 @@ declare module "typescript" { } } declare module "typescript" { - interface ErrorCallback { - (message: DiagnosticMessage, length: number): void; + interface System { + args: string[]; + newLine: string; + useCaseSensitiveFileNames: boolean; + write(s: string): void; + readFile(path: string, encoding?: string): string; + writeFile(path: string, data: string, writeByteOrderMark?: boolean): void; + watchFile?(path: string, callback: (path: string) => void): FileWatcher; + resolvePath(path: string): string; + fileExists(path: string): boolean; + directoryExists(path: string): boolean; + createDirectory(path: string): void; + getExecutingFilePath(): string; + getCurrentDirectory(): string; + readDirectory(path: string, extension?: string): string[]; + getMemoryUsage?(): number; + exit(exitCode?: number): void; } - interface Scanner { - getStartPos(): number; - getToken(): SyntaxKind; - getTextPos(): number; - getTokenPos(): number; - getTokenText(): string; - getTokenValue(): string; - hasExtendedUnicodeEscape(): boolean; - hasPrecedingLineBreak(): boolean; - isIdentifier(): boolean; - isReservedWord(): boolean; - isUnterminated(): boolean; - reScanGreaterToken(): SyntaxKind; - reScanSlashToken(): SyntaxKind; - reScanTemplateToken(): SyntaxKind; - scan(): SyntaxKind; - setText(text: string): void; - setTextPos(textPos: number): void; - lookAhead(callback: () => T): T; - tryScan(callback: () => T): T; + interface FileWatcher { + close(): void; } + var sys: System; +} +declare module "typescript" { function tokenToString(t: SyntaxKind): string; - function computeLineStarts(text: string): number[]; function getPositionOfLineAndCharacter(sourceFile: SourceFile, line: number, character: number): number; - function computePositionOfLineAndCharacter(lineStarts: number[], line: number, character: number): number; - function getLineStarts(sourceFile: SourceFile): number[]; - function computeLineAndCharacterOfPosition(lineStarts: number[], position: number): { - line: number; - character: number; - }; function getLineAndCharacterOfPosition(sourceFile: SourceFile, position: number): LineAndCharacter; function isWhiteSpace(ch: number): boolean; function isLineBreak(ch: number): boolean; - function isOctalDigit(ch: number): boolean; - function skipTrivia(text: string, pos: number, stopAfterLineBreak?: boolean): number; function getLeadingCommentRanges(text: string, pos: number): CommentRange[]; function getTrailingCommentRanges(text: string, pos: number): CommentRange[]; function isIdentifierStart(ch: number, languageVersion: ScriptTarget): boolean; function isIdentifierPart(ch: number, languageVersion: ScriptTarget): boolean; - function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, text?: string, onError?: ErrorCallback): Scanner; } declare module "typescript" { function getNodeConstructor(kind: SyntaxKind): new () => Node; @@ -1455,12 +1192,9 @@ declare module "typescript" { function isLeftHandSideExpression(expr: Expression): boolean; function isAssignmentOperator(token: SyntaxKind): boolean; } -declare module "typescript" { - function createTypeChecker(host: TypeCheckerHost, produceDiagnostics: boolean): TypeChecker; -} declare module "typescript" { /** The version of the TypeScript compiler release */ - let version: string; + const version: string; function findConfigFile(searchPath: string): string; function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost; function getPreEmitDiagnostics(program: Program): Diagnostic[]; @@ -1468,6 +1202,7 @@ declare module "typescript" { function createProgram(rootNames: string[], options: CompilerOptions, host?: CompilerHost): Program; } declare module "typescript" { + function parseCommandLine(commandLine: string[]): ParsedCommandLine; /** * Read tsconfig.json file * @param fileName The path to the config file @@ -1589,8 +1324,10 @@ declare module "typescript" { findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean): RenameLocation[]; getDefinitionAtPosition(fileName: string, position: number): DefinitionInfo[]; getReferencesAtPosition(fileName: string, position: number): ReferenceEntry[]; - getOccurrencesAtPosition(fileName: string, position: number): ReferenceEntry[]; findReferences(fileName: string, position: number): ReferencedSymbol[]; + getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[]; + /** @deprecated */ + getOccurrencesAtPosition(fileName: string, position: number): ReferenceEntry[]; getNavigateToItems(searchValue: string, maxResultCount?: number): NavigateToItem[]; getNavigationBarItems(fileName: string): NavigationBarItem[]; getOutliningSpans(fileName: string): OutliningSpan[]; @@ -1641,6 +1378,20 @@ declare module "typescript" { fileName: string; isWriteAccess: boolean; } + interface DocumentHighlights { + fileName: string; + highlightSpans: HighlightSpan[]; + } + module HighlightSpanKind { + const none: string; + const definition: string; + const reference: string; + const writtenReference: string; + } + interface HighlightSpan { + textSpan: TextSpan; + kind: string; + } interface NavigateToItem { name: string; kind: string; @@ -1765,6 +1516,7 @@ declare module "typescript" { name: string; kind: string; kindModifiers: string; + sortText: string; } interface CompletionEntryDetails { name: string; @@ -1905,43 +1657,44 @@ declare module "typescript" { */ releaseDocument(fileName: string, compilationSettings: CompilerOptions): void; } - class ScriptElementKind { - static unknown: string; - static keyword: string; - static scriptElement: string; - static moduleElement: string; - static classElement: string; - static interfaceElement: string; - static typeElement: string; - static enumElement: string; - static variableElement: string; - static localVariableElement: string; - static functionElement: string; - static localFunctionElement: string; - static memberFunctionElement: string; - static memberGetAccessorElement: string; - static memberSetAccessorElement: string; - static memberVariableElement: string; - static constructorImplementationElement: string; - static callSignatureElement: string; - static indexSignatureElement: string; - static constructSignatureElement: string; - static parameterElement: string; - static typeParameterElement: string; - static primitiveType: string; - static label: string; - static alias: string; - static constElement: string; - static letElement: string; + module ScriptElementKind { + const unknown: string; + const warning: string; + const keyword: string; + const scriptElement: string; + const moduleElement: string; + const classElement: string; + const interfaceElement: string; + const typeElement: string; + const enumElement: string; + const variableElement: string; + const localVariableElement: string; + const functionElement: string; + const localFunctionElement: string; + const memberFunctionElement: string; + const memberGetAccessorElement: string; + const memberSetAccessorElement: string; + const memberVariableElement: string; + const constructorImplementationElement: string; + const callSignatureElement: string; + const indexSignatureElement: string; + const constructSignatureElement: string; + const parameterElement: string; + const typeParameterElement: string; + const primitiveType: string; + const label: string; + const alias: string; + const constElement: string; + const letElement: string; } - class ScriptElementKindModifier { - static none: string; - static publicMemberModifier: string; - static privateMemberModifier: string; - static protectedMemberModifier: string; - static exportedModifier: string; - static ambientModifier: string; - static staticModifier: string; + module ScriptElementKindModifier { + const none: string; + const publicMemberModifier: string; + const privateMemberModifier: string; + const protectedMemberModifier: string; + const exportedModifier: string; + const ambientModifier: string; + const staticModifier: string; } class ClassificationTypeNames { static comment: string; diff --git a/bin/typescript.js b/bin/typescript.js index 0ea54239508..1c749f0d94a 100644 --- a/bin/typescript.js +++ b/bin/typescript.js @@ -15,6 +15,7 @@ and limitations under the License. var ts; (function (ts) { + // token > SyntaxKind.Identifer => token is a keyword (function (SyntaxKind) { SyntaxKind[SyntaxKind["Unknown"] = 0] = "Unknown"; SyntaxKind[SyntaxKind["EndOfFileToken"] = 1] = "EndOfFileToken"; @@ -22,14 +23,19 @@ var ts; SyntaxKind[SyntaxKind["MultiLineCommentTrivia"] = 3] = "MultiLineCommentTrivia"; SyntaxKind[SyntaxKind["NewLineTrivia"] = 4] = "NewLineTrivia"; SyntaxKind[SyntaxKind["WhitespaceTrivia"] = 5] = "WhitespaceTrivia"; + // We detect and provide better error recovery when we encounter a git merge marker. This + // allows us to edit files with git-conflict markers in them in a much more pleasant manner. SyntaxKind[SyntaxKind["ConflictMarkerTrivia"] = 6] = "ConflictMarkerTrivia"; + // Literals SyntaxKind[SyntaxKind["NumericLiteral"] = 7] = "NumericLiteral"; SyntaxKind[SyntaxKind["StringLiteral"] = 8] = "StringLiteral"; SyntaxKind[SyntaxKind["RegularExpressionLiteral"] = 9] = "RegularExpressionLiteral"; SyntaxKind[SyntaxKind["NoSubstitutionTemplateLiteral"] = 10] = "NoSubstitutionTemplateLiteral"; + // Pseudo-literals SyntaxKind[SyntaxKind["TemplateHead"] = 11] = "TemplateHead"; SyntaxKind[SyntaxKind["TemplateMiddle"] = 12] = "TemplateMiddle"; SyntaxKind[SyntaxKind["TemplateTail"] = 13] = "TemplateTail"; + // Punctuation SyntaxKind[SyntaxKind["OpenBraceToken"] = 14] = "OpenBraceToken"; SyntaxKind[SyntaxKind["CloseBraceToken"] = 15] = "CloseBraceToken"; SyntaxKind[SyntaxKind["OpenParenToken"] = 16] = "OpenParenToken"; @@ -69,6 +75,7 @@ var ts; SyntaxKind[SyntaxKind["QuestionToken"] = 50] = "QuestionToken"; SyntaxKind[SyntaxKind["ColonToken"] = 51] = "ColonToken"; SyntaxKind[SyntaxKind["AtToken"] = 52] = "AtToken"; + // Assignments SyntaxKind[SyntaxKind["EqualsToken"] = 53] = "EqualsToken"; SyntaxKind[SyntaxKind["PlusEqualsToken"] = 54] = "PlusEqualsToken"; SyntaxKind[SyntaxKind["MinusEqualsToken"] = 55] = "MinusEqualsToken"; @@ -81,7 +88,9 @@ var ts; SyntaxKind[SyntaxKind["AmpersandEqualsToken"] = 62] = "AmpersandEqualsToken"; SyntaxKind[SyntaxKind["BarEqualsToken"] = 63] = "BarEqualsToken"; SyntaxKind[SyntaxKind["CaretEqualsToken"] = 64] = "CaretEqualsToken"; + // Identifiers SyntaxKind[SyntaxKind["Identifier"] = 65] = "Identifier"; + // Reserved words SyntaxKind[SyntaxKind["BreakKeyword"] = 66] = "BreakKeyword"; SyntaxKind[SyntaxKind["CaseKeyword"] = 67] = "CaseKeyword"; SyntaxKind[SyntaxKind["CatchKeyword"] = 68] = "CatchKeyword"; @@ -118,6 +127,7 @@ var ts; SyntaxKind[SyntaxKind["VoidKeyword"] = 99] = "VoidKeyword"; SyntaxKind[SyntaxKind["WhileKeyword"] = 100] = "WhileKeyword"; SyntaxKind[SyntaxKind["WithKeyword"] = 101] = "WithKeyword"; + // Strict mode reserved words SyntaxKind[SyntaxKind["AsKeyword"] = 102] = "AsKeyword"; SyntaxKind[SyntaxKind["ImplementsKeyword"] = 103] = "ImplementsKeyword"; SyntaxKind[SyntaxKind["InterfaceKeyword"] = 104] = "InterfaceKeyword"; @@ -128,6 +138,7 @@ var ts; SyntaxKind[SyntaxKind["PublicKeyword"] = 109] = "PublicKeyword"; SyntaxKind[SyntaxKind["StaticKeyword"] = 110] = "StaticKeyword"; SyntaxKind[SyntaxKind["YieldKeyword"] = 111] = "YieldKeyword"; + // Contextual keywords SyntaxKind[SyntaxKind["AnyKeyword"] = 112] = "AnyKeyword"; SyntaxKind[SyntaxKind["BooleanKeyword"] = 113] = "BooleanKeyword"; SyntaxKind[SyntaxKind["ConstructorKeyword"] = 114] = "ConstructorKeyword"; @@ -142,11 +153,15 @@ var ts; SyntaxKind[SyntaxKind["TypeKeyword"] = 123] = "TypeKeyword"; SyntaxKind[SyntaxKind["FromKeyword"] = 124] = "FromKeyword"; SyntaxKind[SyntaxKind["OfKeyword"] = 125] = "OfKeyword"; + // Parse tree nodes + // Names SyntaxKind[SyntaxKind["QualifiedName"] = 126] = "QualifiedName"; SyntaxKind[SyntaxKind["ComputedPropertyName"] = 127] = "ComputedPropertyName"; + // Signature elements SyntaxKind[SyntaxKind["TypeParameter"] = 128] = "TypeParameter"; SyntaxKind[SyntaxKind["Parameter"] = 129] = "Parameter"; SyntaxKind[SyntaxKind["Decorator"] = 130] = "Decorator"; + // TypeMember SyntaxKind[SyntaxKind["PropertySignature"] = 131] = "PropertySignature"; SyntaxKind[SyntaxKind["PropertyDeclaration"] = 132] = "PropertyDeclaration"; SyntaxKind[SyntaxKind["MethodSignature"] = 133] = "MethodSignature"; @@ -157,6 +172,7 @@ var ts; SyntaxKind[SyntaxKind["CallSignature"] = 138] = "CallSignature"; SyntaxKind[SyntaxKind["ConstructSignature"] = 139] = "ConstructSignature"; SyntaxKind[SyntaxKind["IndexSignature"] = 140] = "IndexSignature"; + // Type SyntaxKind[SyntaxKind["TypeReference"] = 141] = "TypeReference"; SyntaxKind[SyntaxKind["FunctionType"] = 142] = "FunctionType"; SyntaxKind[SyntaxKind["ConstructorType"] = 143] = "ConstructorType"; @@ -166,9 +182,11 @@ var ts; SyntaxKind[SyntaxKind["TupleType"] = 147] = "TupleType"; SyntaxKind[SyntaxKind["UnionType"] = 148] = "UnionType"; SyntaxKind[SyntaxKind["ParenthesizedType"] = 149] = "ParenthesizedType"; + // Binding patterns SyntaxKind[SyntaxKind["ObjectBindingPattern"] = 150] = "ObjectBindingPattern"; SyntaxKind[SyntaxKind["ArrayBindingPattern"] = 151] = "ArrayBindingPattern"; SyntaxKind[SyntaxKind["BindingElement"] = 152] = "BindingElement"; + // Expression SyntaxKind[SyntaxKind["ArrayLiteralExpression"] = 153] = "ArrayLiteralExpression"; SyntaxKind[SyntaxKind["ObjectLiteralExpression"] = 154] = "ObjectLiteralExpression"; SyntaxKind[SyntaxKind["PropertyAccessExpression"] = 155] = "PropertyAccessExpression"; @@ -192,9 +210,11 @@ var ts; SyntaxKind[SyntaxKind["SpreadElementExpression"] = 173] = "SpreadElementExpression"; SyntaxKind[SyntaxKind["ClassExpression"] = 174] = "ClassExpression"; SyntaxKind[SyntaxKind["OmittedExpression"] = 175] = "OmittedExpression"; + // Misc SyntaxKind[SyntaxKind["TemplateSpan"] = 176] = "TemplateSpan"; SyntaxKind[SyntaxKind["HeritageClauseElement"] = 177] = "HeritageClauseElement"; SyntaxKind[SyntaxKind["SemicolonClassElement"] = 178] = "SemicolonClassElement"; + // Element SyntaxKind[SyntaxKind["Block"] = 179] = "Block"; SyntaxKind[SyntaxKind["VariableStatement"] = 180] = "VariableStatement"; SyntaxKind[SyntaxKind["EmptyStatement"] = 181] = "EmptyStatement"; @@ -235,17 +255,25 @@ var ts; SyntaxKind[SyntaxKind["NamedExports"] = 216] = "NamedExports"; SyntaxKind[SyntaxKind["ExportSpecifier"] = 217] = "ExportSpecifier"; SyntaxKind[SyntaxKind["MissingDeclaration"] = 218] = "MissingDeclaration"; + // Module references SyntaxKind[SyntaxKind["ExternalModuleReference"] = 219] = "ExternalModuleReference"; + // Clauses SyntaxKind[SyntaxKind["CaseClause"] = 220] = "CaseClause"; SyntaxKind[SyntaxKind["DefaultClause"] = 221] = "DefaultClause"; SyntaxKind[SyntaxKind["HeritageClause"] = 222] = "HeritageClause"; SyntaxKind[SyntaxKind["CatchClause"] = 223] = "CatchClause"; + // Property assignments SyntaxKind[SyntaxKind["PropertyAssignment"] = 224] = "PropertyAssignment"; SyntaxKind[SyntaxKind["ShorthandPropertyAssignment"] = 225] = "ShorthandPropertyAssignment"; + // Enum SyntaxKind[SyntaxKind["EnumMember"] = 226] = "EnumMember"; + // Top-level nodes SyntaxKind[SyntaxKind["SourceFile"] = 227] = "SourceFile"; + // Synthesized list SyntaxKind[SyntaxKind["SyntaxList"] = 228] = "SyntaxList"; + // Enum value count SyntaxKind[SyntaxKind["Count"] = 229] = "Count"; + // Markers SyntaxKind[SyntaxKind["FirstAssignment"] = 53] = "FirstAssignment"; SyntaxKind[SyntaxKind["LastAssignment"] = 64] = "LastAssignment"; SyntaxKind[SyntaxKind["FirstReservedWord"] = 66] = "FirstReservedWord"; @@ -291,27 +319,49 @@ var ts; NodeFlags[NodeFlags["BlockScoped"] = 12288] = "BlockScoped"; })(ts.NodeFlags || (ts.NodeFlags = {})); var NodeFlags = ts.NodeFlags; + /* @internal */ (function (ParserContextFlags) { + // Set if this node was parsed in strict mode. Used for grammar error checks, as well as + // checking if the node can be reused in incremental settings. ParserContextFlags[ParserContextFlags["StrictMode"] = 1] = "StrictMode"; + // If this node was parsed in a context where 'in-expressions' are not allowed. ParserContextFlags[ParserContextFlags["DisallowIn"] = 2] = "DisallowIn"; + // If this node was parsed in the 'yield' context created when parsing a generator. ParserContextFlags[ParserContextFlags["Yield"] = 4] = "Yield"; + // If this node was parsed in the parameters of a generator. ParserContextFlags[ParserContextFlags["GeneratorParameter"] = 8] = "GeneratorParameter"; + // If this node was parsed as part of a decorator ParserContextFlags[ParserContextFlags["Decorator"] = 16] = "Decorator"; + // If the parser encountered an error when parsing the code that created this node. Note + // the parser only sets this directly on the node it creates right after encountering the + // error. ParserContextFlags[ParserContextFlags["ThisNodeHasError"] = 32] = "ThisNodeHasError"; + // Context flags set directly by the parser. ParserContextFlags[ParserContextFlags["ParserGeneratedFlags"] = 63] = "ParserGeneratedFlags"; + // Context flags computed by aggregating child flags upwards. + // Used during incremental parsing to determine if this node or any of its children had an + // error. Computed only once and then cached. ParserContextFlags[ParserContextFlags["ThisNodeOrAnySubNodesHasError"] = 64] = "ThisNodeOrAnySubNodesHasError"; + // Used to know if we've computed data from children and cached it in this node. ParserContextFlags[ParserContextFlags["HasAggregatedChildData"] = 128] = "HasAggregatedChildData"; })(ts.ParserContextFlags || (ts.ParserContextFlags = {})); var ParserContextFlags = ts.ParserContextFlags; + /* @internal */ (function (RelationComparisonResult) { RelationComparisonResult[RelationComparisonResult["Succeeded"] = 1] = "Succeeded"; RelationComparisonResult[RelationComparisonResult["Failed"] = 2] = "Failed"; RelationComparisonResult[RelationComparisonResult["FailedAndReported"] = 3] = "FailedAndReported"; })(ts.RelationComparisonResult || (ts.RelationComparisonResult = {})); var RelationComparisonResult = ts.RelationComparisonResult; + /** Return code used by getEmitOutput function to indicate status of the function */ (function (ExitStatus) { + // Compiler ran successfully. Either this was a simple do-nothing compilation (for example, + // when -version or -help was provided, or this was a normal compilation, no diagnostics + // were produced, and all outputs were generated successfully. ExitStatus[ExitStatus["Success"] = 0] = "Success"; + // Diagnostics were produced and because of them no code was generated. ExitStatus[ExitStatus["DiagnosticsPresent_OutputsSkipped"] = 1] = "DiagnosticsPresent_OutputsSkipped"; + // Diagnostics were produced and outputs were generated in spite of them. ExitStatus[ExitStatus["DiagnosticsPresent_OutputsGenerated"] = 2] = "DiagnosticsPresent_OutputsGenerated"; })(ts.ExitStatus || (ts.ExitStatus = {})); var ExitStatus = ts.ExitStatus; @@ -329,10 +379,18 @@ var ts; var TypeFormatFlags = ts.TypeFormatFlags; (function (SymbolFormatFlags) { SymbolFormatFlags[SymbolFormatFlags["None"] = 0] = "None"; + // Write symbols's type argument if it is instantiated symbol + // eg. class C { p: T } <-- Show p as C.p here + // var a: C; + // var p = a.p; <--- Here p is property of C so show it as C.p instead of just C.p SymbolFormatFlags[SymbolFormatFlags["WriteTypeParametersOrArguments"] = 1] = "WriteTypeParametersOrArguments"; + // Use only external alias information to get the symbol name in the given context + // eg. module m { export class c { } } import x = m.c; + // When this flag is specified m.c will be used to refer to the class instead of alias symbol x SymbolFormatFlags[SymbolFormatFlags["UseOnlyExternalAliasing"] = 2] = "UseOnlyExternalAliasing"; })(ts.SymbolFormatFlags || (ts.SymbolFormatFlags = {})); var SymbolFormatFlags = ts.SymbolFormatFlags; + /* @internal */ (function (SymbolAccessibility) { SymbolAccessibility[SymbolAccessibility["Accessible"] = 0] = "Accessible"; SymbolAccessibility[SymbolAccessibility["NotAccessible"] = 1] = "NotAccessible"; @@ -378,7 +436,11 @@ var ts; SymbolFlags[SymbolFlags["Namespace"] = 1536] = "Namespace"; SymbolFlags[SymbolFlags["Module"] = 1536] = "Module"; SymbolFlags[SymbolFlags["Accessor"] = 98304] = "Accessor"; + // Variables can be redeclared, but can not redeclare a block-scoped declaration with the + // same name, or any other value that is not a variable, e.g. ValueModule or Class SymbolFlags[SymbolFlags["FunctionScopedVariableExcludes"] = 107454] = "FunctionScopedVariableExcludes"; + // Block-scoped declarations are not allowed to be re-declared + // they can not merge with anything in the value space SymbolFlags[SymbolFlags["BlockScopedVariableExcludes"] = 107455] = "BlockScopedVariableExcludes"; SymbolFlags[SymbolFlags["ParameterExcludes"] = 107455] = "ParameterExcludes"; SymbolFlags[SymbolFlags["PropertyExcludes"] = 107455] = "PropertyExcludes"; @@ -406,6 +468,7 @@ var ts; SymbolFlags[SymbolFlags["Export"] = 7340032] = "Export"; })(ts.SymbolFlags || (ts.SymbolFlags = {})); var SymbolFlags = ts.SymbolFlags; + /* @internal */ (function (NodeCheckFlags) { NodeCheckFlags[NodeCheckFlags["TypeChecked"] = 1] = "TypeChecked"; NodeCheckFlags[NodeCheckFlags["LexicalThis"] = 2] = "LexicalThis"; @@ -414,9 +477,11 @@ var ts; NodeCheckFlags[NodeCheckFlags["SuperInstance"] = 16] = "SuperInstance"; NodeCheckFlags[NodeCheckFlags["SuperStatic"] = 32] = "SuperStatic"; NodeCheckFlags[NodeCheckFlags["ContextChecked"] = 64] = "ContextChecked"; + // Values for enum members have been computed, and any errors have been reported for them. NodeCheckFlags[NodeCheckFlags["EnumValuesComputed"] = 128] = "EnumValuesComputed"; NodeCheckFlags[NodeCheckFlags["BlockScopedBindingInLoop"] = 256] = "BlockScopedBindingInLoop"; NodeCheckFlags[NodeCheckFlags["EmitDecorate"] = 512] = "EmitDecorate"; + NodeCheckFlags[NodeCheckFlags["EmitParam"] = 1024] = "EmitParam"; })(ts.NodeCheckFlags || (ts.NodeCheckFlags = {})); var NodeCheckFlags = ts.NodeCheckFlags; (function (TypeFlags) { @@ -436,16 +501,22 @@ var ts; TypeFlags[TypeFlags["Tuple"] = 8192] = "Tuple"; TypeFlags[TypeFlags["Union"] = 16384] = "Union"; TypeFlags[TypeFlags["Anonymous"] = 32768] = "Anonymous"; + /* @internal */ TypeFlags[TypeFlags["FromSignature"] = 65536] = "FromSignature"; TypeFlags[TypeFlags["ObjectLiteral"] = 131072] = "ObjectLiteral"; + /* @internal */ TypeFlags[TypeFlags["ContainsUndefinedOrNull"] = 262144] = "ContainsUndefinedOrNull"; + /* @internal */ TypeFlags[TypeFlags["ContainsObjectLiteral"] = 524288] = "ContainsObjectLiteral"; TypeFlags[TypeFlags["ESSymbol"] = 1048576] = "ESSymbol"; + /* @internal */ TypeFlags[TypeFlags["Intrinsic"] = 1048703] = "Intrinsic"; + /* @internal */ TypeFlags[TypeFlags["Primitive"] = 1049086] = "Primitive"; TypeFlags[TypeFlags["StringLike"] = 258] = "StringLike"; TypeFlags[TypeFlags["NumberLike"] = 132] = "NumberLike"; TypeFlags[TypeFlags["ObjectType"] = 48128] = "ObjectType"; + /* @internal */ TypeFlags[TypeFlags["RequiresWidening"] = 786432] = "RequiresWidening"; })(ts.TypeFlags || (ts.TypeFlags = {})); var TypeFlags = ts.TypeFlags; @@ -478,6 +549,7 @@ var ts; ScriptTarget[ScriptTarget["Latest"] = 2] = "Latest"; })(ts.ScriptTarget || (ts.ScriptTarget = {})); var ScriptTarget = ts.ScriptTarget; + /* @internal */ (function (CharacterCodes) { CharacterCodes[CharacterCodes["nullCharacter"] = 0] = "nullCharacter"; CharacterCodes[CharacterCodes["maxAsciiCharacter"] = 127] = "maxAsciiCharacter"; @@ -486,6 +558,7 @@ var ts; CharacterCodes[CharacterCodes["lineSeparator"] = 8232] = "lineSeparator"; CharacterCodes[CharacterCodes["paragraphSeparator"] = 8233] = "paragraphSeparator"; CharacterCodes[CharacterCodes["nextLine"] = 133] = "nextLine"; + // Unicode 3.0 space characters CharacterCodes[CharacterCodes["space"] = 32] = "space"; CharacterCodes[CharacterCodes["nonBreakingSpace"] = 160] = "nonBreakingSpace"; CharacterCodes[CharacterCodes["enQuad"] = 8192] = "enQuad"; @@ -607,8 +680,16 @@ var ts; var CharacterCodes = ts.CharacterCodes; })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { + // Ternary values are defined such that + // x & y is False if either x or y is False. + // x & y is Maybe if either x or y is Maybe, but neither x or y is False. + // x & y is True if both x and y are True. + // x | y is False if both x and y are False. + // x | y is Maybe if either x or y is Maybe, but neither x or y is True. + // x | y is True if either x or y is True. (function (Ternary) { Ternary[Ternary["False"] = 0] = "False"; Ternary[Ternary["Maybe"] = 1] = "Maybe"; @@ -735,6 +816,9 @@ var ts; } } ts.addRange = addRange; + /** + * Returns the last element of an array if non-empty, undefined otherwise. + */ function lastOrUndefined(array) { if (array.length === 0) { return undefined; @@ -857,6 +941,16 @@ var ts; } } ts.copyMap = copyMap; + /** + * Creates a map from the elements of an array. + * + * @param array the array of input elements. + * @param makeKey a function that produces a key for a given element. + * + * This function makes no effort to avoid collisions; if any two elements produce + * the same key with the given 'makeKey' function, then the element with the higher + * index in the array will be the one associated with the produced key. + */ function arrayToMap(array, makeKey) { var result = {}; forEach(array, function (value) { @@ -932,12 +1026,12 @@ var ts; ts.concatenateDiagnosticMessageChains = concatenateDiagnosticMessageChains; function compareValues(a, b) { if (a === b) - return 0; + return 0 /* EqualTo */; if (a === undefined) - return -1; + return -1 /* LessThan */; if (b === undefined) - return 1; - return a < b ? -1 : 1; + return 1 /* GreaterThan */; + return a < b ? -1 /* LessThan */ : 1 /* GreaterThan */; } ts.compareValues = compareValues; function getDiagnosticFileName(diagnostic) { @@ -949,11 +1043,12 @@ var ts; compareValues(d1.length, d2.length) || compareValues(d1.code, d2.code) || compareMessageText(d1.messageText, d2.messageText) || - 0; + 0 /* EqualTo */; } ts.compareDiagnostics = compareDiagnostics; function compareMessageText(text1, text2) { while (text1 && text2) { + // We still have both chains. var string1 = typeof text1 === "string" ? text1 : text1.messageText; var string2 = typeof text2 === "string" ? text2 : text2.messageText; var res = compareValues(string1, string2); @@ -964,9 +1059,11 @@ var ts; text2 = typeof text2 === "string" ? undefined : text2.next; } if (!text1 && !text2) { - return 0; + // if the chains are done, then these messages are the same. + return 0 /* EqualTo */; } - return text1 ? 1 : -1; + // We still have one chain remaining. The shorter chain should come first. + return text1 ? 1 /* GreaterThan */ : -1 /* LessThan */; } function sortAndDeduplicateDiagnostics(diagnostics) { return deduplicateSortedDiagnostics(diagnostics.sort(compareDiagnostics)); @@ -980,7 +1077,7 @@ var ts; var previousDiagnostic = diagnostics[0]; for (var i = 1; i < diagnostics.length; i++) { var currentDiagnostic = diagnostics[i]; - var isDupe = compareDiagnostics(currentDiagnostic, previousDiagnostic) === 0; + var isDupe = compareDiagnostics(currentDiagnostic, previousDiagnostic) === 0 /* EqualTo */; if (!isDupe) { newDiagnostics.push(currentDiagnostic); previousDiagnostic = currentDiagnostic; @@ -993,9 +1090,10 @@ var ts; return path.replace(/\\/g, "/"); } ts.normalizeSlashes = normalizeSlashes; + // Returns length of path root (i.e. length of "/", "x:/", "//server/share/, file:///user/files") function getRootLength(path) { - if (path.charCodeAt(0) === 47) { - if (path.charCodeAt(1) !== 47) + if (path.charCodeAt(0) === 47 /* slash */) { + if (path.charCodeAt(1) !== 47 /* slash */) return 1; var p1 = path.indexOf("/", 2); if (p1 < 0) @@ -1005,11 +1103,14 @@ var ts; return p1 + 1; return p2 + 1; } - if (path.charCodeAt(1) === 58) { - if (path.charCodeAt(2) === 47) + if (path.charCodeAt(1) === 58 /* colon */) { + if (path.charCodeAt(2) === 47 /* slash */) return 3; return 2; } + var idx = path.indexOf('://'); + if (idx !== -1) + return idx + 3; return 0; } ts.getRootLength = getRootLength; @@ -1024,6 +1125,8 @@ var ts; normalized.pop(); } else { + // A part may be an empty string (which is 'falsy') if the path had consecutive slashes, + // e.g. "path//file.ts". Drop these before re-joining the parts. if (part) { normalized.push(part); } @@ -1059,6 +1162,7 @@ var ts; path = normalizeSlashes(path); var rootLength = getRootLength(path); if (rootLength == 0) { + // If the path is not rooted it is relative to current directory path = combinePaths(normalizeSlashes(currentDirectory), path); rootLength = getRootLength(path); } @@ -1080,24 +1184,36 @@ var ts; // In this example the root is: http://www.website.com/ // normalized path components should be ["http://www.website.com/", "folder1", "folder2"] var urlLength = url.length; + // Initial root length is http:// part var rootLength = url.indexOf("://") + "://".length; while (rootLength < urlLength) { - if (url.charCodeAt(rootLength) === 47) { + // Consume all immediate slashes in the protocol + // eg.initial rootlength is just file:// but it needs to consume another "/" in file:/// + if (url.charCodeAt(rootLength) === 47 /* slash */) { rootLength++; } else { + // non slash character means we continue proceeding to next component of root search break; } } + // there are no parts after http:// just return current string as the pathComponent if (rootLength === urlLength) { return [url]; } + // Find the index of "/" after website.com so the root can be http://www.website.com/ (from existing http://) var indexOfNextSlash = url.indexOf(ts.directorySeparator, rootLength); if (indexOfNextSlash !== -1) { + // Found the "/" after the website.com so the root is length of http://www.website.com/ + // and get components afetr the root normally like any other folder components rootLength = indexOfNextSlash + 1; return normalizedPathComponents(url, rootLength); } else { + // Can't find the host assume the rest of the string as component + // but make sure we append "/" to it as root is not joined using "/" + // eg. if url passed in was http://website.com we want to use root as [http://website.com/] + // so that other path manipulations will be correct and it can be merged with relative paths correctly return [url + ts.directorySeparator]; } } @@ -1113,13 +1229,17 @@ var ts; var pathComponents = getNormalizedPathOrUrlComponents(relativeOrAbsolutePath, currentDirectory); var directoryComponents = getNormalizedPathOrUrlComponents(directoryPathOrUrl, currentDirectory); if (directoryComponents.length > 1 && directoryComponents[directoryComponents.length - 1] === "") { + // If the directory path given was of type test/cases/ then we really need components of directory to be only till its name + // that is ["test", "cases", ""] needs to be actually ["test", "cases"] directoryComponents.length--; } + // Find the component that differs for (var joinStartIndex = 0; joinStartIndex < pathComponents.length && joinStartIndex < directoryComponents.length; joinStartIndex++) { if (getCanonicalFileName(directoryComponents[joinStartIndex]) !== getCanonicalFileName(pathComponents[joinStartIndex])) { break; } } + // Get the relative path if (joinStartIndex) { var relativePath = ""; var relativePathComponents = pathComponents.slice(joinStartIndex, pathComponents.length); @@ -1130,6 +1250,7 @@ var ts; } return relativePath + relativePathComponents.join(ts.directorySeparator); } + // Cant find the relative path, get the absolute path var absolutePath = getNormalizedPathFromPathComponents(pathComponents); if (isAbsolutePathAnUrl && isRootedDiskPath(absolutePath)) { absolutePath = "file:///" + absolutePath; @@ -1185,10 +1306,10 @@ var ts; "\"": "\\\"", "\u2028": "\\u2028", "\u2029": "\\u2029", - "\u0085": "\\u0085" + "\u0085": "\\u0085" // nextLine }; function getDefaultLibFileName(options) { - return options.target === 2 ? "lib.es6.d.ts" : "lib.d.ts"; + return options.target === 2 /* ES6 */ ? "lib.es6.d.ts" : "lib.d.ts"; } ts.getDefaultLibFileName = getDefaultLibFileName; function Symbol(flags, name) { @@ -1227,7 +1348,7 @@ var ts; var AssertionLevel = ts.AssertionLevel; var Debug; (function (Debug) { - var currentAssertionLevel = 0; + var currentAssertionLevel = 0 /* None */; function shouldAssert(level) { return currentAssertionLevel >= level; } @@ -1255,9 +1376,9 @@ var ts; function getWScriptSystem() { var fso = new ActiveXObject("Scripting.FileSystemObject"); var fileStream = new ActiveXObject("ADODB.Stream"); - fileStream.Type = 2; + fileStream.Type = 2 /*text*/; var binaryStream = new ActiveXObject("ADODB.Stream"); - binaryStream.Type = 1; + binaryStream.Type = 1 /*binary*/; var args = []; for (var i = 0; i < WScript.Arguments.length; i++) { args[i] = WScript.Arguments.Item(i); @@ -1273,12 +1394,16 @@ var ts; fileStream.LoadFromFile(fileName); } else { + // Load file and read the first two bytes into a string with no interpretation fileStream.Charset = "x-ansi"; fileStream.LoadFromFile(fileName); var bom = fileStream.ReadText(2) || ""; + // Position must be at 0 before encoding can be changed fileStream.Position = 0; + // [0xFF,0xFE] and [0xFE,0xFF] mean utf-16 (little or big endian), otherwise default to utf-8 fileStream.Charset = bom.length >= 2 && (bom.charCodeAt(0) === 0xFF && bom.charCodeAt(1) === 0xFE || bom.charCodeAt(0) === 0xFE && bom.charCodeAt(1) === 0xFF) ? "unicode" : "utf-8"; } + // ReadText method always strips byte order mark from resulting string return fileStream.ReadText(); } catch (e) { @@ -1292,8 +1417,11 @@ var ts; fileStream.Open(); binaryStream.Open(); try { + // Write characters in UTF-8 encoding fileStream.Charset = "utf-8"; fileStream.WriteText(data); + // If we don't want the BOM, then skip it by setting the starting location to 3 (size of BOM). + // If not, start from position 0, as the BOM will be added automatically when charset==utf8. if (writeByteOrderMark) { fileStream.Position = 0; } @@ -1301,7 +1429,7 @@ var ts; fileStream.Position = 3; } fileStream.CopyTo(binaryStream); - binaryStream.SaveToFile(fileName, 2); + binaryStream.SaveToFile(fileName, 2 /*overwrite*/); } finally { binaryStream.Close(); @@ -1379,6 +1507,7 @@ var ts; var _path = require("path"); var _os = require('os'); var platform = _os.platform(); + // win32\win64 are case insensitive platforms, MacOS (darwin) by default is also case insensitive var useCaseSensitiveFileNames = platform !== "win32" && platform !== "win64" && platform !== "darwin"; function readFile(fileName, encoding) { if (!_fs.existsSync(fileName)) { @@ -1387,6 +1516,8 @@ var ts; var buffer = _fs.readFileSync(fileName); var len = buffer.length; if (len >= 2 && buffer[0] === 0xFE && buffer[1] === 0xFF) { + // Big endian UTF-16 byte order mark detected. Since big endian is not supported by node.js, + // flip all byte pairs and treat as little endian. len &= ~1; for (var i = 0; i < len; i += 2) { var temp = buffer[i]; @@ -1396,14 +1527,18 @@ var ts; return buffer.toString("utf16le", 2); } if (len >= 2 && buffer[0] === 0xFF && buffer[1] === 0xFE) { + // Little endian UTF-16 byte order mark detected return buffer.toString("utf16le", 2); } if (len >= 3 && buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) { + // UTF-8 byte order mark detected return buffer.toString("utf8", 3); } + // Default is UTF-8 with no byte order mark return buffer.toString("utf8"); } function writeFile(fileName, data, writeByteOrderMark) { + // If a BOM is required, emit one if (writeByteOrderMark) { data = '\uFEFF' + data; } @@ -1440,11 +1575,13 @@ var ts; newLine: _os.EOL, useCaseSensitiveFileNames: useCaseSensitiveFileNames, write: function (s) { + // 1 is a standard descriptor for stdout _fs.writeSync(1, s); }, readFile: readFile, writeFile: writeFile, watchFile: function (fileName, callback) { + // watchFile polls a file every 250ms, picking up file notifications. _fs.watchFile(fileName, { persistent: true, interval: 250 }, fileChanged); return { close: function () { _fs.unwatchFile(fileName, fileChanged); } @@ -1496,11 +1633,13 @@ var ts; return getNodeSystem(); } else { - return undefined; + return undefined; // Unsupported host } })(); })(ts || (ts = {})); +// /// +/* @internal */ var ts; (function (ts) { ts.Diagnostics = { @@ -1660,7 +1799,6 @@ var ts; An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: { code: 1198, category: ts.DiagnosticCategory.Error, key: "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive." }, Unterminated_Unicode_escape_sequence: { code: 1199, category: ts.DiagnosticCategory.Error, key: "Unterminated Unicode escape sequence." }, Line_terminator_not_permitted_before_arrow: { code: 1200, category: ts.DiagnosticCategory.Error, key: "Line terminator not permitted before arrow." }, - A_type_annotation_on_an_export_statement_is_only_allowed_in_an_ambient_external_module_declaration: { code: 1201, category: ts.DiagnosticCategory.Error, key: "A type annotation on an export statement is only allowed in an ambient external module declaration." }, Import_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_or_import_d_from_mod_instead: { code: 1202, category: ts.DiagnosticCategory.Error, key: "Import assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"' or 'import d from \"mod\"' instead." }, Export_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_export_default_instead: { code: 1203, category: ts.DiagnosticCategory.Error, key: "Export assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'export default' instead." }, Cannot_compile_external_modules_into_amd_or_commonjs_when_targeting_es6_or_higher: { code: 1204, category: ts.DiagnosticCategory.Error, key: "Cannot compile external modules into amd or commonjs when targeting es6 or higher." }, @@ -1669,6 +1807,8 @@ var ts; Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name: { code: 1207, category: ts.DiagnosticCategory.Error, key: "Decorators cannot be applied to multiple get/set accessors of the same name." }, Cannot_compile_non_external_modules_when_the_separateCompilation_flag_is_provided: { code: 1208, category: ts.DiagnosticCategory.Error, key: "Cannot compile non-external modules when the '--separateCompilation' flag is provided." }, Ambient_const_enums_are_not_allowed_when_the_separateCompilation_flag_is_provided: { code: 1209, category: ts.DiagnosticCategory.Error, key: "Ambient const enums are not allowed when the '--separateCompilation' flag is provided." }, + Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode: { code: 1210, category: ts.DiagnosticCategory.Error, key: "Invalid use of '{0}'. Class definitions are automatically in strict mode." }, + A_class_declaration_without_the_default_modifier_must_have_a_name: { code: 1211, category: ts.DiagnosticCategory.Error, key: "A class declaration without the 'default' modifier must have a name" }, Duplicate_identifier_0: { code: 2300, category: ts.DiagnosticCategory.Error, key: "Duplicate identifier '{0}'." }, Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: { code: 2301, category: ts.DiagnosticCategory.Error, key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor." }, Static_members_cannot_reference_class_type_parameters: { code: 2302, category: ts.DiagnosticCategory.Error, key: "Static members cannot reference class type parameters." }, @@ -1844,8 +1984,8 @@ var ts; The_left_hand_side_of_a_for_of_statement_cannot_be_a_previously_defined_constant: { code: 2485, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...of' statement cannot be a previously defined constant." }, The_left_hand_side_of_a_for_in_statement_cannot_be_a_previously_defined_constant: { code: 2486, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...in' statement cannot be a previously defined constant." }, Invalid_left_hand_side_in_for_of_statement: { code: 2487, category: ts.DiagnosticCategory.Error, key: "Invalid left-hand side in 'for...of' statement." }, - The_right_hand_side_of_a_for_of_statement_must_have_a_Symbol_iterator_method_that_returns_an_iterator: { code: 2488, category: ts.DiagnosticCategory.Error, key: "The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator." }, - The_iterator_returned_by_the_right_hand_side_of_a_for_of_statement_must_have_a_next_method: { code: 2489, category: ts.DiagnosticCategory.Error, key: "The iterator returned by the right-hand side of a 'for...of' statement must have a 'next()' method." }, + Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator: { code: 2488, category: ts.DiagnosticCategory.Error, key: "Type must have a '[Symbol.iterator]()' method that returns an iterator." }, + An_iterator_must_have_a_next_method: { code: 2489, category: ts.DiagnosticCategory.Error, key: "An iterator must have a 'next()' method." }, The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property: { code: 2490, category: ts.DiagnosticCategory.Error, key: "The type returned by the 'next()' method of an iterator must have a 'value' property." }, The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: { code: 2491, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...in' statement cannot be a destructuring pattern." }, Cannot_redeclare_identifier_0_in_catch_clause: { code: 2492, category: ts.DiagnosticCategory.Error, key: "Cannot redeclare identifier '{0}' in catch clause" }, @@ -2007,6 +2147,22 @@ var ts; Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: { code: 7024, category: ts.DiagnosticCategory.Error, key: "Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions." }, You_cannot_rename_this_element: { code: 8000, category: ts.DiagnosticCategory.Error, key: "You cannot rename this element." }, You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: { code: 8001, category: ts.DiagnosticCategory.Error, key: "You cannot rename elements that are defined in the standard TypeScript library." }, + import_can_only_be_used_in_a_ts_file: { code: 8002, category: ts.DiagnosticCategory.Error, key: "'import ... =' can only be used in a .ts file." }, + export_can_only_be_used_in_a_ts_file: { code: 8003, category: ts.DiagnosticCategory.Error, key: "'export=' can only be used in a .ts file." }, + type_parameter_declarations_can_only_be_used_in_a_ts_file: { code: 8004, category: ts.DiagnosticCategory.Error, key: "'type parameter declarations' can only be used in a .ts file." }, + implements_clauses_can_only_be_used_in_a_ts_file: { code: 8005, category: ts.DiagnosticCategory.Error, key: "'implements clauses' can only be used in a .ts file." }, + interface_declarations_can_only_be_used_in_a_ts_file: { code: 8006, category: ts.DiagnosticCategory.Error, key: "'interface declarations' can only be used in a .ts file." }, + module_declarations_can_only_be_used_in_a_ts_file: { code: 8007, category: ts.DiagnosticCategory.Error, key: "'module declarations' can only be used in a .ts file." }, + type_aliases_can_only_be_used_in_a_ts_file: { code: 8008, category: ts.DiagnosticCategory.Error, key: "'type aliases' can only be used in a .ts file." }, + _0_can_only_be_used_in_a_ts_file: { code: 8009, category: ts.DiagnosticCategory.Error, key: "'{0}' can only be used in a .ts file." }, + types_can_only_be_used_in_a_ts_file: { code: 8010, category: ts.DiagnosticCategory.Error, key: "'types' can only be used in a .ts file." }, + type_arguments_can_only_be_used_in_a_ts_file: { code: 8011, category: ts.DiagnosticCategory.Error, key: "'type arguments' can only be used in a .ts file." }, + parameter_modifiers_can_only_be_used_in_a_ts_file: { code: 8012, category: ts.DiagnosticCategory.Error, key: "'parameter modifiers' can only be used in a .ts file." }, + can_only_be_used_in_a_ts_file: { code: 8013, category: ts.DiagnosticCategory.Error, key: "'?' can only be used in a .ts file." }, + property_declarations_can_only_be_used_in_a_ts_file: { code: 8014, category: ts.DiagnosticCategory.Error, key: "'property declarations' can only be used in a .ts file." }, + enum_declarations_can_only_be_used_in_a_ts_file: { code: 8015, category: ts.DiagnosticCategory.Error, key: "'enum declarations' can only be used in a .ts file." }, + type_assertion_expressions_can_only_be_used_in_a_ts_file: { code: 8016, category: ts.DiagnosticCategory.Error, key: "'type assertion expressions' can only be used in a .ts file." }, + decorators_can_only_be_used_in_a_ts_file: { code: 8017, category: ts.DiagnosticCategory.Error, key: "'decorators' can only be used in a .ts file." }, yield_expressions_are_not_currently_supported: { code: 9000, category: ts.DiagnosticCategory.Error, key: "'yield' expressions are not currently supported." }, Generators_are_not_currently_supported: { code: 9001, category: ts.DiagnosticCategory.Error, key: "Generators are not currently supported." }, Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clauses: { code: 9002, category: ts.DiagnosticCategory.Error, key: "Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses." }, @@ -2019,131 +2175,176 @@ var ts; var ts; (function (ts) { var textToToken = { - "any": 112, - "as": 102, - "boolean": 113, - "break": 66, - "case": 67, - "catch": 68, - "class": 69, - "continue": 71, - "const": 70, - "constructor": 114, - "debugger": 72, - "declare": 115, - "default": 73, - "delete": 74, - "do": 75, - "else": 76, - "enum": 77, - "export": 78, - "extends": 79, - "false": 80, - "finally": 81, - "for": 82, - "from": 124, - "function": 83, - "get": 116, - "if": 84, - "implements": 103, - "import": 85, - "in": 86, - "instanceof": 87, - "interface": 104, - "let": 105, - "module": 117, - "new": 88, - "null": 89, - "number": 119, - "package": 106, - "private": 107, - "protected": 108, - "public": 109, - "require": 118, - "return": 90, - "set": 120, - "static": 110, - "string": 121, - "super": 91, - "switch": 92, - "symbol": 122, - "this": 93, - "throw": 94, - "true": 95, - "try": 96, - "type": 123, - "typeof": 97, - "var": 98, - "void": 99, - "while": 100, - "with": 101, - "yield": 111, - "of": 125, - "{": 14, - "}": 15, - "(": 16, - ")": 17, - "[": 18, - "]": 19, - ".": 20, - "...": 21, - ";": 22, - ",": 23, - "<": 24, - ">": 25, - "<=": 26, - ">=": 27, - "==": 28, - "!=": 29, - "===": 30, - "!==": 31, - "=>": 32, - "+": 33, - "-": 34, - "*": 35, - "/": 36, - "%": 37, - "++": 38, - "--": 39, - "<<": 40, - ">>": 41, - ">>>": 42, - "&": 43, - "|": 44, - "^": 45, - "!": 46, - "~": 47, - "&&": 48, - "||": 49, - "?": 50, - ":": 51, - "=": 53, - "+=": 54, - "-=": 55, - "*=": 56, - "/=": 57, - "%=": 58, - "<<=": 59, - ">>=": 60, - ">>>=": 61, - "&=": 62, - "|=": 63, - "^=": 64, - "@": 52 + "any": 112 /* AnyKeyword */, + "as": 102 /* AsKeyword */, + "boolean": 113 /* BooleanKeyword */, + "break": 66 /* BreakKeyword */, + "case": 67 /* CaseKeyword */, + "catch": 68 /* CatchKeyword */, + "class": 69 /* ClassKeyword */, + "continue": 71 /* ContinueKeyword */, + "const": 70 /* ConstKeyword */, + "constructor": 114 /* ConstructorKeyword */, + "debugger": 72 /* DebuggerKeyword */, + "declare": 115 /* DeclareKeyword */, + "default": 73 /* DefaultKeyword */, + "delete": 74 /* DeleteKeyword */, + "do": 75 /* DoKeyword */, + "else": 76 /* ElseKeyword */, + "enum": 77 /* EnumKeyword */, + "export": 78 /* ExportKeyword */, + "extends": 79 /* ExtendsKeyword */, + "false": 80 /* FalseKeyword */, + "finally": 81 /* FinallyKeyword */, + "for": 82 /* ForKeyword */, + "from": 124 /* FromKeyword */, + "function": 83 /* FunctionKeyword */, + "get": 116 /* GetKeyword */, + "if": 84 /* IfKeyword */, + "implements": 103 /* ImplementsKeyword */, + "import": 85 /* ImportKeyword */, + "in": 86 /* InKeyword */, + "instanceof": 87 /* InstanceOfKeyword */, + "interface": 104 /* InterfaceKeyword */, + "let": 105 /* LetKeyword */, + "module": 117 /* ModuleKeyword */, + "new": 88 /* NewKeyword */, + "null": 89 /* NullKeyword */, + "number": 119 /* NumberKeyword */, + "package": 106 /* PackageKeyword */, + "private": 107 /* PrivateKeyword */, + "protected": 108 /* ProtectedKeyword */, + "public": 109 /* PublicKeyword */, + "require": 118 /* RequireKeyword */, + "return": 90 /* ReturnKeyword */, + "set": 120 /* SetKeyword */, + "static": 110 /* StaticKeyword */, + "string": 121 /* StringKeyword */, + "super": 91 /* SuperKeyword */, + "switch": 92 /* SwitchKeyword */, + "symbol": 122 /* SymbolKeyword */, + "this": 93 /* ThisKeyword */, + "throw": 94 /* ThrowKeyword */, + "true": 95 /* TrueKeyword */, + "try": 96 /* TryKeyword */, + "type": 123 /* TypeKeyword */, + "typeof": 97 /* TypeOfKeyword */, + "var": 98 /* VarKeyword */, + "void": 99 /* VoidKeyword */, + "while": 100 /* WhileKeyword */, + "with": 101 /* WithKeyword */, + "yield": 111 /* YieldKeyword */, + "of": 125 /* OfKeyword */, + "{": 14 /* OpenBraceToken */, + "}": 15 /* CloseBraceToken */, + "(": 16 /* OpenParenToken */, + ")": 17 /* CloseParenToken */, + "[": 18 /* OpenBracketToken */, + "]": 19 /* CloseBracketToken */, + ".": 20 /* DotToken */, + "...": 21 /* DotDotDotToken */, + ";": 22 /* SemicolonToken */, + ",": 23 /* CommaToken */, + "<": 24 /* LessThanToken */, + ">": 25 /* GreaterThanToken */, + "<=": 26 /* LessThanEqualsToken */, + ">=": 27 /* GreaterThanEqualsToken */, + "==": 28 /* EqualsEqualsToken */, + "!=": 29 /* ExclamationEqualsToken */, + "===": 30 /* EqualsEqualsEqualsToken */, + "!==": 31 /* ExclamationEqualsEqualsToken */, + "=>": 32 /* EqualsGreaterThanToken */, + "+": 33 /* PlusToken */, + "-": 34 /* MinusToken */, + "*": 35 /* AsteriskToken */, + "/": 36 /* SlashToken */, + "%": 37 /* PercentToken */, + "++": 38 /* PlusPlusToken */, + "--": 39 /* MinusMinusToken */, + "<<": 40 /* LessThanLessThanToken */, + ">>": 41 /* GreaterThanGreaterThanToken */, + ">>>": 42 /* GreaterThanGreaterThanGreaterThanToken */, + "&": 43 /* AmpersandToken */, + "|": 44 /* BarToken */, + "^": 45 /* CaretToken */, + "!": 46 /* ExclamationToken */, + "~": 47 /* TildeToken */, + "&&": 48 /* AmpersandAmpersandToken */, + "||": 49 /* BarBarToken */, + "?": 50 /* QuestionToken */, + ":": 51 /* ColonToken */, + "=": 53 /* EqualsToken */, + "+=": 54 /* PlusEqualsToken */, + "-=": 55 /* MinusEqualsToken */, + "*=": 56 /* AsteriskEqualsToken */, + "/=": 57 /* SlashEqualsToken */, + "%=": 58 /* PercentEqualsToken */, + "<<=": 59 /* LessThanLessThanEqualsToken */, + ">>=": 60 /* GreaterThanGreaterThanEqualsToken */, + ">>>=": 61 /* GreaterThanGreaterThanGreaterThanEqualsToken */, + "&=": 62 /* AmpersandEqualsToken */, + "|=": 63 /* BarEqualsToken */, + "^=": 64 /* CaretEqualsToken */, + "@": 52 /* AtToken */ }; + /* + As per ECMAScript Language Specification 3th Edition, Section 7.6: Identifiers + IdentifierStart :: + Can contain Unicode 3.0.0 categories: + Uppercase letter (Lu), + Lowercase letter (Ll), + Titlecase letter (Lt), + Modifier letter (Lm), + Other letter (Lo), or + Letter number (Nl). + IdentifierPart :: = + Can contain IdentifierStart + Unicode 3.0.0 categories: + Non-spacing mark (Mn), + Combining spacing mark (Mc), + Decimal number (Nd), or + Connector punctuation (Pc). + + Codepoint ranges for ES3 Identifiers are extracted from the Unicode 3.0.0 specification at: + http://www.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.txt + */ var unicodeES3IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1610, 1649, 1747, 1749, 1749, 1765, 1766, 1786, 1788, 1808, 1808, 1810, 1836, 1920, 1957, 2309, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2784, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3294, 3294, 3296, 3297, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3424, 3425, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3805, 3840, 3840, 3904, 3911, 3913, 3946, 3976, 3979, 4096, 4129, 4131, 4135, 4137, 4138, 4176, 4181, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6067, 6176, 6263, 6272, 6312, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8319, 8319, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12346, 12353, 12436, 12445, 12446, 12449, 12538, 12540, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65138, 65140, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,]; var unicodeES3IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 768, 846, 864, 866, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1155, 1158, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1441, 1443, 1465, 1467, 1469, 1471, 1471, 1473, 1474, 1476, 1476, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1621, 1632, 1641, 1648, 1747, 1749, 1756, 1759, 1768, 1770, 1773, 1776, 1788, 1808, 1836, 1840, 1866, 1920, 1968, 2305, 2307, 2309, 2361, 2364, 2381, 2384, 2388, 2392, 2403, 2406, 2415, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2492, 2494, 2500, 2503, 2504, 2507, 2509, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2562, 2562, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2649, 2652, 2654, 2654, 2662, 2676, 2689, 2691, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2784, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2876, 2883, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2913, 2918, 2927, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3031, 3031, 3047, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3134, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3168, 3169, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3262, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3297, 3302, 3311, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3390, 3395, 3398, 3400, 3402, 3405, 3415, 3415, 3424, 3425, 3430, 3439, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3805, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3946, 3953, 3972, 3974, 3979, 3984, 3991, 3993, 4028, 4038, 4038, 4096, 4129, 4131, 4135, 4137, 4138, 4140, 4146, 4150, 4153, 4160, 4169, 4176, 4185, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 4969, 4977, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6099, 6112, 6121, 6160, 6169, 6176, 6263, 6272, 6313, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8255, 8256, 8319, 8319, 8400, 8412, 8417, 8417, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12346, 12353, 12436, 12441, 12442, 12445, 12446, 12449, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65056, 65059, 65075, 65076, 65101, 65103, 65136, 65138, 65140, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65381, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,]; + /* + As per ECMAScript Language Specification 5th Edition, Section 7.6: ISyntaxToken Names and Identifiers + IdentifierStart :: + Can contain Unicode 6.2 categories: + Uppercase letter (Lu), + Lowercase letter (Ll), + Titlecase letter (Lt), + Modifier letter (Lm), + Other letter (Lo), or + Letter number (Nl). + IdentifierPart :: + Can contain IdentifierStart + Unicode 6.2 categories: + Non-spacing mark (Mn), + Combining spacing mark (Mc), + Decimal number (Nd), + Connector punctuation (Pc), + , or + . + + Codepoint ranges for ES5 Identifiers are extracted from the Unicode 6.2 specification at: + http://www.unicode.org/Public/6.2.0/ucd/UnicodeData.txt + */ var unicodeES5IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2208, 2208, 2210, 2220, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2423, 2425, 2431, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3133, 3160, 3161, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3424, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6000, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6263, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6428, 6480, 6509, 6512, 6516, 6528, 6571, 6593, 6599, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7401, 7404, 7406, 7409, 7413, 7414, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11823, 11823, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42647, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43000, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43648, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,]; var unicodeES5IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1520, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2048, 2093, 2112, 2139, 2208, 2208, 2210, 2220, 2276, 2302, 2304, 2403, 2406, 2415, 2417, 2423, 2425, 2431, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3161, 3168, 3171, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3396, 3398, 3400, 3402, 3406, 3415, 3415, 3424, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6000, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6263, 6272, 6314, 6320, 6389, 6400, 6428, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6617, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7376, 7378, 7380, 7414, 7424, 7654, 7676, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8204, 8205, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 11823, 11823, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12442, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42647, 42655, 42737, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43000, 43047, 43072, 43123, 43136, 43204, 43216, 43225, 43232, 43255, 43259, 43259, 43264, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43643, 43648, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65062, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,]; function lookupInUnicodeMap(code, map) { + // Bail out quickly if it couldn't possibly be in the map. if (code < map[0]) { return false; } + // Perform binary search in one of the Unicode range maps var lo = 0; var hi = map.length; var mid; while (lo + 1 < hi) { mid = lo + (hi - lo) / 2; + // mid has to be even to catch a range's beginning mid -= mid % 2; if (map[mid] <= code && code <= map[mid + 1]) { return true; @@ -2157,14 +2358,14 @@ var ts; } return false; } - function isUnicodeIdentifierStart(code, languageVersion) { - return languageVersion >= 1 ? + /* @internal */ function isUnicodeIdentifierStart(code, languageVersion) { + return languageVersion >= 1 /* ES5 */ ? lookupInUnicodeMap(code, unicodeES5IdentifierStart) : lookupInUnicodeMap(code, unicodeES3IdentifierStart); } ts.isUnicodeIdentifierStart = isUnicodeIdentifierStart; function isUnicodeIdentifierPart(code, languageVersion) { - return languageVersion >= 1 ? + return languageVersion >= 1 /* ES5 */ ? lookupInUnicodeMap(code, unicodeES5IdentifierPart) : lookupInUnicodeMap(code, unicodeES3IdentifierPart); } @@ -2182,10 +2383,12 @@ var ts; return tokenStrings[t]; } ts.tokenToString = tokenToString; + /* @internal */ function stringToToken(s) { return textToToken[s]; } ts.stringToToken = stringToToken; + /* @internal */ function computeLineStarts(text) { var result = new Array(); var pos = 0; @@ -2193,16 +2396,16 @@ var ts; while (pos < text.length) { var ch = text.charCodeAt(pos++); switch (ch) { - case 13: - if (text.charCodeAt(pos) === 10) { + case 13 /* carriageReturn */: + if (text.charCodeAt(pos) === 10 /* lineFeed */) { pos++; } - case 10: + case 10 /* lineFeed */: result.push(lineStart); lineStart = pos; break; default: - if (ch > 127 && isLineBreak(ch)) { + if (ch > 127 /* maxAsciiCharacter */ && isLineBreak(ch)) { result.push(lineStart); lineStart = pos; } @@ -2217,18 +2420,25 @@ var ts; return computePositionOfLineAndCharacter(getLineStarts(sourceFile), line, character); } ts.getPositionOfLineAndCharacter = getPositionOfLineAndCharacter; + /* @internal */ function computePositionOfLineAndCharacter(lineStarts, line, character) { ts.Debug.assert(line >= 0 && line < lineStarts.length); return lineStarts[line] + character; } ts.computePositionOfLineAndCharacter = computePositionOfLineAndCharacter; + /* @internal */ function getLineStarts(sourceFile) { return sourceFile.lineMap || (sourceFile.lineMap = computeLineStarts(sourceFile.text)); } ts.getLineStarts = getLineStarts; + /* @internal */ function computeLineAndCharacterOfPosition(lineStarts, position) { var lineNumber = ts.binarySearch(lineStarts, position); if (lineNumber < 0) { + // If the actual position was not found, + // the binary search returns the negative value of the next line start + // e.g. if the line starts at [5, 10, 23, 80] and the position requested was 20 + // then the search will return -2 lineNumber = ~lineNumber - 1; } return { @@ -2243,18 +2453,20 @@ var ts; ts.getLineAndCharacterOfPosition = getLineAndCharacterOfPosition; var hasOwnProperty = Object.prototype.hasOwnProperty; function isWhiteSpace(ch) { - return ch === 32 || - ch === 9 || - ch === 11 || - ch === 12 || - ch === 160 || - ch === 133 || - ch === 5760 || - ch >= 8192 && ch <= 8203 || - ch === 8239 || - ch === 8287 || - ch === 12288 || - ch === 65279; + // Note: nextLine is in the Zs space, and should be considered to be a whitespace. + // It is explicitly not a line-break as it isn't in the exact set specified by EcmaScript. + return ch === 32 /* space */ || + ch === 9 /* tab */ || + ch === 11 /* verticalTab */ || + ch === 12 /* formFeed */ || + ch === 160 /* nonBreakingSpace */ || + ch === 133 /* nextLine */ || + ch === 5760 /* ogham */ || + ch >= 8192 /* enQuad */ && ch <= 8203 /* zeroWidthSpace */ || + ch === 8239 /* narrowNoBreakSpace */ || + ch === 8287 /* mathematicalSpace */ || + ch === 12288 /* ideographicSpace */ || + ch === 65279 /* byteOrderMark */; } ts.isWhiteSpace = isWhiteSpace; function isLineBreak(ch) { @@ -2268,41 +2480,43 @@ var ts; // \u2029 Paragraph separator // Only the characters in Table 3 are treated as line terminators. Other new line or line // breaking characters are treated as white space but not as line terminators. - return ch === 10 || - ch === 13 || - ch === 8232 || - ch === 8233; + return ch === 10 /* lineFeed */ || + ch === 13 /* carriageReturn */ || + ch === 8232 /* lineSeparator */ || + ch === 8233 /* paragraphSeparator */; } ts.isLineBreak = isLineBreak; function isDigit(ch) { - return ch >= 48 && ch <= 57; + return ch >= 48 /* _0 */ && ch <= 57 /* _9 */; } + /* @internal */ function isOctalDigit(ch) { - return ch >= 48 && ch <= 55; + return ch >= 48 /* _0 */ && ch <= 55 /* _7 */; } ts.isOctalDigit = isOctalDigit; + /* @internal */ function skipTrivia(text, pos, stopAfterLineBreak) { while (true) { var ch = text.charCodeAt(pos); switch (ch) { - case 13: - if (text.charCodeAt(pos + 1) === 10) { + case 13 /* carriageReturn */: + if (text.charCodeAt(pos + 1) === 10 /* lineFeed */) { pos++; } - case 10: + case 10 /* lineFeed */: pos++; if (stopAfterLineBreak) { return pos; } continue; - case 9: - case 11: - case 12: - case 32: + case 9 /* tab */: + case 11 /* verticalTab */: + case 12 /* formFeed */: + case 32 /* space */: pos++; continue; - case 47: - if (text.charCodeAt(pos + 1) === 47) { + case 47 /* slash */: + if (text.charCodeAt(pos + 1) === 47 /* slash */) { pos += 2; while (pos < text.length) { if (isLineBreak(text.charCodeAt(pos))) { @@ -2312,10 +2526,10 @@ var ts; } continue; } - if (text.charCodeAt(pos + 1) === 42) { + if (text.charCodeAt(pos + 1) === 42 /* asterisk */) { pos += 2; while (pos < text.length) { - if (text.charCodeAt(pos) === 42 && text.charCodeAt(pos + 1) === 47) { + if (text.charCodeAt(pos) === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) { pos += 2; break; } @@ -2324,16 +2538,16 @@ var ts; continue; } break; - case 60: - case 61: - case 62: + case 60 /* lessThan */: + case 61 /* equals */: + case 62 /* greaterThan */: if (isConflictMarkerTrivia(text, pos)) { pos = scanConflictMarkerTrivia(text, pos); continue; } break; default: - if (ch > 127 && (isWhiteSpace(ch) || isLineBreak(ch))) { + if (ch > 127 /* maxAsciiCharacter */ && (isWhiteSpace(ch) || isLineBreak(ch))) { pos++; continue; } @@ -2343,9 +2557,12 @@ var ts; } } ts.skipTrivia = skipTrivia; + // All conflict markers consist of the same character repeated seven times. If it is + // a <<<<<<< or >>>>>>> marker then it is also followd by a space. var mergeConflictMarkerLength = "<<<<<<<".length; function isConflictMarkerTrivia(text, pos) { ts.Debug.assert(pos >= 0); + // Conflict markers must be at the start of a line. if (pos === 0 || isLineBreak(text.charCodeAt(pos - 1))) { var ch = text.charCodeAt(pos); if ((pos + mergeConflictMarkerLength) < text.length) { @@ -2354,8 +2571,8 @@ var ts; return false; } } - return ch === 61 || - text.charCodeAt(pos + mergeConflictMarkerLength) === 32; + return ch === 61 /* equals */ || + text.charCodeAt(pos + mergeConflictMarkerLength) === 32 /* space */; } } return false; @@ -2366,16 +2583,18 @@ var ts; } var ch = text.charCodeAt(pos); var len = text.length; - if (ch === 60 || ch === 62) { + if (ch === 60 /* lessThan */ || ch === 62 /* greaterThan */) { while (pos < len && !isLineBreak(text.charCodeAt(pos))) { pos++; } } else { - ts.Debug.assert(ch === 61); + ts.Debug.assert(ch === 61 /* equals */); + // Consume everything from the start of the mid-conlict marker to the start of the next + // end-conflict marker. while (pos < len) { var ch_1 = text.charCodeAt(pos); - if (ch_1 === 62 && isConflictMarkerTrivia(text, pos)) { + if (ch_1 === 62 /* greaterThan */ && isConflictMarkerTrivia(text, pos)) { break; } pos++; @@ -2383,17 +2602,24 @@ var ts; } return pos; } + // Extract comments from the given source text starting at the given position. If trailing is + // false, whitespace is skipped until the first line break and comments between that location + // and the next token are returned.If trailing is true, comments occurring between the given + // position and the next line break are returned.The return value is an array containing a + // TextRange for each comment. Single-line comment ranges include the beginning '//' characters + // but not the ending line break. Multi - line comment ranges include the beginning '/* and + // ending '*/' characters.The return value is undefined if no comments were found. function getCommentRanges(text, pos, trailing) { var result; var collecting = trailing || pos === 0; while (true) { var ch = text.charCodeAt(pos); switch (ch) { - case 13: - if (text.charCodeAt(pos + 1) === 10) { + case 13 /* carriageReturn */: + if (text.charCodeAt(pos + 1) === 10 /* lineFeed */) { pos++; } - case 10: + case 10 /* lineFeed */: pos++; if (trailing) { return result; @@ -2403,19 +2629,20 @@ var ts; result[result.length - 1].hasTrailingNewLine = true; } continue; - case 9: - case 11: - case 12: - case 32: + case 9 /* tab */: + case 11 /* verticalTab */: + case 12 /* formFeed */: + case 32 /* space */: pos++; continue; - case 47: + case 47 /* slash */: var nextChar = text.charCodeAt(pos + 1); var hasTrailingNewLine = false; - if (nextChar === 47 || nextChar === 42) { + if (nextChar === 47 /* slash */ || nextChar === 42 /* asterisk */) { + var kind = nextChar === 47 /* slash */ ? 2 /* SingleLineCommentTrivia */ : 3 /* MultiLineCommentTrivia */; var startPos = pos; pos += 2; - if (nextChar === 47) { + if (nextChar === 47 /* slash */) { while (pos < text.length) { if (isLineBreak(text.charCodeAt(pos))) { hasTrailingNewLine = true; @@ -2426,7 +2653,7 @@ var ts; } else { while (pos < text.length) { - if (text.charCodeAt(pos) === 42 && text.charCodeAt(pos + 1) === 47) { + if (text.charCodeAt(pos) === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) { pos += 2; break; } @@ -2437,13 +2664,13 @@ var ts; if (!result) { result = []; } - result.push({ pos: startPos, end: pos, hasTrailingNewLine: hasTrailingNewLine }); + result.push({ pos: startPos, end: pos, hasTrailingNewLine: hasTrailingNewLine, kind: kind }); } continue; } break; default: - if (ch > 127 && (isWhiteSpace(ch) || isLineBreak(ch))) { + if (ch > 127 /* maxAsciiCharacter */ && (isWhiteSpace(ch) || isLineBreak(ch))) { if (result && result.length && isLineBreak(ch)) { result[result.length - 1].hasTrailingNewLine = true; } @@ -2464,22 +2691,23 @@ var ts; } ts.getTrailingCommentRanges = getTrailingCommentRanges; function isIdentifierStart(ch, languageVersion) { - return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || - ch === 36 || ch === 95 || - ch > 127 && isUnicodeIdentifierStart(ch, languageVersion); + return ch >= 65 /* A */ && ch <= 90 /* Z */ || ch >= 97 /* a */ && ch <= 122 /* z */ || + ch === 36 /* $ */ || ch === 95 /* _ */ || + ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierStart(ch, languageVersion); } ts.isIdentifierStart = isIdentifierStart; function isIdentifierPart(ch, languageVersion) { - return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || - ch >= 48 && ch <= 57 || ch === 36 || ch === 95 || - ch > 127 && isUnicodeIdentifierPart(ch, languageVersion); + return ch >= 65 /* A */ && ch <= 90 /* Z */ || ch >= 97 /* a */ && ch <= 122 /* z */ || + ch >= 48 /* _0 */ && ch <= 57 /* _9 */ || ch === 36 /* $ */ || ch === 95 /* _ */ || + ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierPart(ch, languageVersion); } ts.isIdentifierPart = isIdentifierPart; + /* @internal */ function createScanner(languageVersion, skipTrivia, text, onError) { - var pos; - var len; - var startPos; - var tokenPos; + var pos; // Current position (end position of text of current token) + var len; // Length of text + var startPos; // Start position of whitespace before current token + var tokenPos; // Start position of text of current token var token; var tokenValue; var precedingLineBreak; @@ -2491,28 +2719,28 @@ var ts; } } function isIdentifierStart(ch) { - return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || - ch === 36 || ch === 95 || - ch > 127 && isUnicodeIdentifierStart(ch, languageVersion); + return ch >= 65 /* A */ && ch <= 90 /* Z */ || ch >= 97 /* a */ && ch <= 122 /* z */ || + ch === 36 /* $ */ || ch === 95 /* _ */ || + ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierStart(ch, languageVersion); } function isIdentifierPart(ch) { - return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || - ch >= 48 && ch <= 57 || ch === 36 || ch === 95 || - ch > 127 && isUnicodeIdentifierPart(ch, languageVersion); + return ch >= 65 /* A */ && ch <= 90 /* Z */ || ch >= 97 /* a */ && ch <= 122 /* z */ || + ch >= 48 /* _0 */ && ch <= 57 /* _9 */ || ch === 36 /* $ */ || ch === 95 /* _ */ || + ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierPart(ch, languageVersion); } function scanNumber() { var start = pos; while (isDigit(text.charCodeAt(pos))) pos++; - if (text.charCodeAt(pos) === 46) { + if (text.charCodeAt(pos) === 46 /* dot */) { pos++; while (isDigit(text.charCodeAt(pos))) pos++; } var end = pos; - if (text.charCodeAt(pos) === 69 || text.charCodeAt(pos) === 101) { + if (text.charCodeAt(pos) === 69 /* E */ || text.charCodeAt(pos) === 101 /* e */) { pos++; - if (text.charCodeAt(pos) === 43 || text.charCodeAt(pos) === 45) + if (text.charCodeAt(pos) === 43 /* plus */ || text.charCodeAt(pos) === 45 /* minus */) pos++; if (isDigit(text.charCodeAt(pos))) { pos++; @@ -2533,9 +2761,17 @@ var ts; } return +(text.substring(start, pos)); } + /** + * Scans the given number of hexadecimal digits in the text, + * returning -1 if the given number is unavailable. + */ function scanExactNumberOfHexDigits(count) { return scanHexDigits(count, false); } + /** + * Scans as many hexadecimal digits as are available in the text, + * returning -1 if the given number of digits was unavailable. + */ function scanMinimumNumberOfHexDigits(count) { return scanHexDigits(count, true); } @@ -2544,14 +2780,14 @@ var ts; var value = 0; while (digits < minCount || scanAsManyAsPossible) { var ch = text.charCodeAt(pos); - if (ch >= 48 && ch <= 57) { - value = value * 16 + ch - 48; + if (ch >= 48 /* _0 */ && ch <= 57 /* _9 */) { + value = value * 16 + ch - 48 /* _0 */; } - else if (ch >= 65 && ch <= 70) { - value = value * 16 + ch - 65 + 10; + else if (ch >= 65 /* A */ && ch <= 70 /* F */) { + value = value * 16 + ch - 65 /* A */ + 10; } - else if (ch >= 97 && ch <= 102) { - value = value * 16 + ch - 97 + 10; + else if (ch >= 97 /* a */ && ch <= 102 /* f */) { + value = value * 16 + ch - 97 /* a */ + 10; } else { break; @@ -2581,7 +2817,7 @@ var ts; pos++; break; } - if (ch === 92) { + if (ch === 92 /* backslash */) { result += text.substring(start, pos); result += scanEscapeSequence(); start = pos; @@ -2597,8 +2833,12 @@ var ts; } return result; } + /** + * Sets the current 'tokenValue' and returns a NoSubstitutionTemplateLiteral or + * a literal component of a TemplateExpression. + */ function scanTemplateAndSetTokenValue() { - var startedWithBacktick = text.charCodeAt(pos) === 96; + var startedWithBacktick = text.charCodeAt(pos) === 96 /* backtick */; pos++; var start = pos; var contents = ""; @@ -2608,32 +2848,37 @@ var ts; contents += text.substring(start, pos); tokenIsUnterminated = true; error(ts.Diagnostics.Unterminated_template_literal); - resultingToken = startedWithBacktick ? 10 : 13; + resultingToken = startedWithBacktick ? 10 /* NoSubstitutionTemplateLiteral */ : 13 /* TemplateTail */; break; } var currChar = text.charCodeAt(pos); - if (currChar === 96) { + // '`' + if (currChar === 96 /* backtick */) { contents += text.substring(start, pos); pos++; - resultingToken = startedWithBacktick ? 10 : 13; + resultingToken = startedWithBacktick ? 10 /* NoSubstitutionTemplateLiteral */ : 13 /* TemplateTail */; break; } - if (currChar === 36 && pos + 1 < len && text.charCodeAt(pos + 1) === 123) { + // '${' + if (currChar === 36 /* $ */ && pos + 1 < len && text.charCodeAt(pos + 1) === 123 /* openBrace */) { contents += text.substring(start, pos); pos += 2; - resultingToken = startedWithBacktick ? 11 : 12; + resultingToken = startedWithBacktick ? 11 /* TemplateHead */ : 12 /* TemplateMiddle */; break; } - if (currChar === 92) { + // Escape character + if (currChar === 92 /* backslash */) { contents += text.substring(start, pos); contents += scanEscapeSequence(); start = pos; continue; } - if (currChar === 13) { + // Speculated ECMAScript 6 Spec 11.8.6.1: + // and LineTerminatorSequences are normalized to for Template Values + if (currChar === 13 /* carriageReturn */) { contents += text.substring(start, pos); pos++; - if (pos < len && text.charCodeAt(pos) === 10) { + if (pos < len && text.charCodeAt(pos) === 10 /* lineFeed */) { pos++; } contents += "\n"; @@ -2654,40 +2899,46 @@ var ts; } var ch = text.charCodeAt(pos++); switch (ch) { - case 48: + case 48 /* _0 */: return "\0"; - case 98: + case 98 /* b */: return "\b"; - case 116: + case 116 /* t */: return "\t"; - case 110: + case 110 /* n */: return "\n"; - case 118: + case 118 /* v */: return "\v"; - case 102: + case 102 /* f */: return "\f"; - case 114: + case 114 /* r */: return "\r"; - case 39: + case 39 /* singleQuote */: return "\'"; - case 34: + case 34 /* doubleQuote */: return "\""; - case 117: - if (pos < len && text.charCodeAt(pos) === 123) { + case 117 /* u */: + // '\u{DDDDDDDD}' + if (pos < len && text.charCodeAt(pos) === 123 /* openBrace */) { hasExtendedUnicodeEscape = true; pos++; return scanExtendedUnicodeEscape(); } + // '\uDDDD' return scanHexadecimalEscape(4); - case 120: + case 120 /* x */: + // '\xDD' return scanHexadecimalEscape(2); - case 13: - if (pos < len && text.charCodeAt(pos) === 10) { + // when encountering a LineContinuation (i.e. a backslash and a line terminator sequence), + // the line terminator is interpreted to be "the empty code unit sequence". + case 13 /* carriageReturn */: + if (pos < len && text.charCodeAt(pos) === 10 /* lineFeed */) { pos++; } - case 10: - case 8232: - case 8233: + // fall through + case 10 /* lineFeed */: + case 8232 /* lineSeparator */: + case 8233 /* paragraphSeparator */: return ""; default: return String.fromCharCode(ch); @@ -2706,6 +2957,7 @@ var ts; function scanExtendedUnicodeEscape() { var escapedValue = scanMinimumNumberOfHexDigits(1); var isInvalidExtendedEscape = false; + // Validate the value of the digit if (escapedValue < 0) { error(ts.Diagnostics.Hexadecimal_digit_expected); isInvalidExtendedEscape = true; @@ -2718,7 +2970,8 @@ var ts; error(ts.Diagnostics.Unexpected_end_of_text); isInvalidExtendedEscape = true; } - else if (text.charCodeAt(pos) == 125) { + else if (text.charCodeAt(pos) == 125 /* closeBrace */) { + // Only swallow the following character up if it's a '}'. pos++; } else { @@ -2730,6 +2983,7 @@ var ts; } return utf16EncodeAsString(escapedValue); } + // Derived from the 10.1.1 UTF16Encoding of the ES6 Spec. function utf16EncodeAsString(codePoint) { ts.Debug.assert(0x0 <= codePoint && codePoint <= 0x10FFFF); if (codePoint <= 65535) { @@ -2739,8 +2993,10 @@ var ts; var codeUnit2 = ((codePoint - 65536) % 1024) + 0xDC00; return String.fromCharCode(codeUnit1, codeUnit2); } + // Current character is known to be a backslash. Check for Unicode escape of the form '\uXXXX' + // and return code point value if valid Unicode escape is found. Otherwise return -1. function peekUnicodeEscape() { - if (pos + 5 < len && text.charCodeAt(pos + 1) === 117) { + if (pos + 5 < len && text.charCodeAt(pos + 1) === 117 /* u */) { var start = pos; pos += 2; var value = scanExactNumberOfHexDigits(4); @@ -2757,13 +3013,14 @@ var ts; if (isIdentifierPart(ch)) { pos++; } - else if (ch === 92) { + else if (ch === 92 /* backslash */) { ch = peekUnicodeEscape(); if (!(ch >= 0 && isIdentifierPart(ch))) { break; } result += text.substring(start, pos); result += String.fromCharCode(ch); + // Valid Unicode escape is always six characters pos += 6; start = pos; } @@ -2775,22 +3032,25 @@ var ts; return result; } function getIdentifierToken() { + // Reserved words are between 2 and 11 characters long and start with a lowercase letter var len = tokenValue.length; if (len >= 2 && len <= 11) { var ch = tokenValue.charCodeAt(0); - if (ch >= 97 && ch <= 122 && hasOwnProperty.call(textToToken, tokenValue)) { + if (ch >= 97 /* a */ && ch <= 122 /* z */ && hasOwnProperty.call(textToToken, tokenValue)) { return token = textToToken[tokenValue]; } } - return token = 65; + return token = 65 /* Identifier */; } function scanBinaryOrOctalDigits(base) { ts.Debug.assert(base !== 2 || base !== 8, "Expected either base 2 or base 8"); var value = 0; + // For counting number of digits; Valid binaryIntegerLiteral must have at least one binary digit following B or b. + // Similarly valid octalIntegerLiteral must have at least one octal digit following o or O. var numberOfDigits = 0; while (true) { var ch = text.charCodeAt(pos); - var valueOfCh = ch - 48; + var valueOfCh = ch - 48 /* _0 */; if (!isDigit(ch) || valueOfCh >= base) { break; } @@ -2798,6 +3058,7 @@ var ts; pos++; numberOfDigits++; } + // Invalid binaryIntegerLiteral or octalIntegerLiteral if (numberOfDigits === 0) { return -1; } @@ -2811,30 +3072,31 @@ var ts; while (true) { tokenPos = pos; if (pos >= len) { - return token = 1; + return token = 1 /* EndOfFileToken */; } var ch = text.charCodeAt(pos); switch (ch) { - case 10: - case 13: + case 10 /* lineFeed */: + case 13 /* carriageReturn */: precedingLineBreak = true; if (skipTrivia) { pos++; continue; } else { - if (ch === 13 && pos + 1 < len && text.charCodeAt(pos + 1) === 10) { + if (ch === 13 /* carriageReturn */ && pos + 1 < len && text.charCodeAt(pos + 1) === 10 /* lineFeed */) { + // consume both CR and LF pos += 2; } else { pos++; } - return token = 4; + return token = 4 /* NewLineTrivia */; } - case 9: - case 11: - case 12: - case 32: + case 9 /* tab */: + case 11 /* verticalTab */: + case 12 /* formFeed */: + case 32 /* space */: if (skipTrivia) { pos++; continue; @@ -2843,73 +3105,74 @@ var ts; while (pos < len && isWhiteSpace(text.charCodeAt(pos))) { pos++; } - return token = 5; + return token = 5 /* WhitespaceTrivia */; } - case 33: - if (text.charCodeAt(pos + 1) === 61) { - if (text.charCodeAt(pos + 2) === 61) { - return pos += 3, token = 31; + case 33 /* exclamation */: + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + if (text.charCodeAt(pos + 2) === 61 /* equals */) { + return pos += 3, token = 31 /* ExclamationEqualsEqualsToken */; } - return pos += 2, token = 29; + return pos += 2, token = 29 /* ExclamationEqualsToken */; } - return pos++, token = 46; - case 34: - case 39: + return pos++, token = 46 /* ExclamationToken */; + case 34 /* doubleQuote */: + case 39 /* singleQuote */: tokenValue = scanString(); - return token = 8; - case 96: + return token = 8 /* StringLiteral */; + case 96 /* backtick */: return token = scanTemplateAndSetTokenValue(); - case 37: - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 58; + case 37 /* percent */: + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 58 /* PercentEqualsToken */; } - return pos++, token = 37; - case 38: - if (text.charCodeAt(pos + 1) === 38) { - return pos += 2, token = 48; + return pos++, token = 37 /* PercentToken */; + case 38 /* ampersand */: + if (text.charCodeAt(pos + 1) === 38 /* ampersand */) { + return pos += 2, token = 48 /* AmpersandAmpersandToken */; } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 62; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 62 /* AmpersandEqualsToken */; } - return pos++, token = 43; - case 40: - return pos++, token = 16; - case 41: - return pos++, token = 17; - case 42: - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 56; + return pos++, token = 43 /* AmpersandToken */; + case 40 /* openParen */: + return pos++, token = 16 /* OpenParenToken */; + case 41 /* closeParen */: + return pos++, token = 17 /* CloseParenToken */; + case 42 /* asterisk */: + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 56 /* AsteriskEqualsToken */; } - return pos++, token = 35; - case 43: - if (text.charCodeAt(pos + 1) === 43) { - return pos += 2, token = 38; + return pos++, token = 35 /* AsteriskToken */; + case 43 /* plus */: + if (text.charCodeAt(pos + 1) === 43 /* plus */) { + return pos += 2, token = 38 /* PlusPlusToken */; } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 54; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 54 /* PlusEqualsToken */; } - return pos++, token = 33; - case 44: - return pos++, token = 23; - case 45: - if (text.charCodeAt(pos + 1) === 45) { - return pos += 2, token = 39; + return pos++, token = 33 /* PlusToken */; + case 44 /* comma */: + return pos++, token = 23 /* CommaToken */; + case 45 /* minus */: + if (text.charCodeAt(pos + 1) === 45 /* minus */) { + return pos += 2, token = 39 /* MinusMinusToken */; } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 55; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 55 /* MinusEqualsToken */; } - return pos++, token = 34; - case 46: + return pos++, token = 34 /* MinusToken */; + case 46 /* dot */: if (isDigit(text.charCodeAt(pos + 1))) { tokenValue = "" + scanNumber(); - return token = 7; + return token = 7 /* NumericLiteral */; } - if (text.charCodeAt(pos + 1) === 46 && text.charCodeAt(pos + 2) === 46) { - return pos += 3, token = 21; + if (text.charCodeAt(pos + 1) === 46 /* dot */ && text.charCodeAt(pos + 2) === 46 /* dot */) { + return pos += 3, token = 21 /* DotDotDotToken */; } - return pos++, token = 20; - case 47: - if (text.charCodeAt(pos + 1) === 47) { + return pos++, token = 20 /* DotToken */; + case 47 /* slash */: + // Single-line comment + if (text.charCodeAt(pos + 1) === 47 /* slash */) { pos += 2; while (pos < len) { if (isLineBreak(text.charCodeAt(pos))) { @@ -2921,15 +3184,16 @@ var ts; continue; } else { - return token = 2; + return token = 2 /* SingleLineCommentTrivia */; } } - if (text.charCodeAt(pos + 1) === 42) { + // Multi-line comment + if (text.charCodeAt(pos + 1) === 42 /* asterisk */) { pos += 2; var commentClosed = false; while (pos < len) { var ch_2 = text.charCodeAt(pos); - if (ch_2 === 42 && text.charCodeAt(pos + 1) === 47) { + if (ch_2 === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) { pos += 2; commentClosed = true; break; @@ -2947,15 +3211,15 @@ var ts; } else { tokenIsUnterminated = !commentClosed; - return token = 3; + return token = 3 /* MultiLineCommentTrivia */; } } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 57; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 57 /* SlashEqualsToken */; } - return pos++, token = 36; - case 48: - if (pos + 2 < len && (text.charCodeAt(pos + 1) === 88 || text.charCodeAt(pos + 1) === 120)) { + return pos++, token = 36 /* SlashToken */; + case 48 /* _0 */: + if (pos + 2 < len && (text.charCodeAt(pos + 1) === 88 /* X */ || text.charCodeAt(pos + 1) === 120 /* x */)) { pos += 2; var value = scanMinimumNumberOfHexDigits(1); if (value < 0) { @@ -2963,9 +3227,9 @@ var ts; value = 0; } tokenValue = "" + value; - return token = 7; + return token = 7 /* NumericLiteral */; } - else if (pos + 2 < len && (text.charCodeAt(pos + 1) === 66 || text.charCodeAt(pos + 1) === 98)) { + else if (pos + 2 < len && (text.charCodeAt(pos + 1) === 66 /* B */ || text.charCodeAt(pos + 1) === 98 /* b */)) { pos += 2; var value = scanBinaryOrOctalDigits(2); if (value < 0) { @@ -2973,9 +3237,9 @@ var ts; value = 0; } tokenValue = "" + value; - return token = 7; + return token = 7 /* NumericLiteral */; } - else if (pos + 2 < len && (text.charCodeAt(pos + 1) === 79 || text.charCodeAt(pos + 1) === 111)) { + else if (pos + 2 < len && (text.charCodeAt(pos + 1) === 79 /* O */ || text.charCodeAt(pos + 1) === 111 /* o */)) { pos += 2; var value = scanBinaryOrOctalDigits(8); if (value < 0) { @@ -2983,106 +3247,110 @@ var ts; value = 0; } tokenValue = "" + value; - return token = 7; + return token = 7 /* NumericLiteral */; } + // Try to parse as an octal if (pos + 1 < len && isOctalDigit(text.charCodeAt(pos + 1))) { tokenValue = "" + scanOctalDigits(); - return token = 7; + return token = 7 /* NumericLiteral */; } - case 49: - case 50: - case 51: - case 52: - case 53: - case 54: - case 55: - case 56: - case 57: + // This fall-through is a deviation from the EcmaScript grammar. The grammar says that a leading zero + // can only be followed by an octal digit, a dot, or the end of the number literal. However, we are being + // permissive and allowing decimal digits of the form 08* and 09* (which many browsers also do). + case 49 /* _1 */: + case 50 /* _2 */: + case 51 /* _3 */: + case 52 /* _4 */: + case 53 /* _5 */: + case 54 /* _6 */: + case 55 /* _7 */: + case 56 /* _8 */: + case 57 /* _9 */: tokenValue = "" + scanNumber(); - return token = 7; - case 58: - return pos++, token = 51; - case 59: - return pos++, token = 22; - case 60: + return token = 7 /* NumericLiteral */; + case 58 /* colon */: + return pos++, token = 51 /* ColonToken */; + case 59 /* semicolon */: + return pos++, token = 22 /* SemicolonToken */; + case 60 /* lessThan */: if (isConflictMarkerTrivia(text, pos)) { pos = scanConflictMarkerTrivia(text, pos, error); if (skipTrivia) { continue; } else { - return token = 6; + return token = 6 /* ConflictMarkerTrivia */; } } - if (text.charCodeAt(pos + 1) === 60) { - if (text.charCodeAt(pos + 2) === 61) { - return pos += 3, token = 59; + if (text.charCodeAt(pos + 1) === 60 /* lessThan */) { + if (text.charCodeAt(pos + 2) === 61 /* equals */) { + return pos += 3, token = 59 /* LessThanLessThanEqualsToken */; } - return pos += 2, token = 40; + return pos += 2, token = 40 /* LessThanLessThanToken */; } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 26; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 26 /* LessThanEqualsToken */; } - return pos++, token = 24; - case 61: + return pos++, token = 24 /* LessThanToken */; + case 61 /* equals */: if (isConflictMarkerTrivia(text, pos)) { pos = scanConflictMarkerTrivia(text, pos, error); if (skipTrivia) { continue; } else { - return token = 6; + return token = 6 /* ConflictMarkerTrivia */; } } - if (text.charCodeAt(pos + 1) === 61) { - if (text.charCodeAt(pos + 2) === 61) { - return pos += 3, token = 30; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + if (text.charCodeAt(pos + 2) === 61 /* equals */) { + return pos += 3, token = 30 /* EqualsEqualsEqualsToken */; } - return pos += 2, token = 28; + return pos += 2, token = 28 /* EqualsEqualsToken */; } - if (text.charCodeAt(pos + 1) === 62) { - return pos += 2, token = 32; + if (text.charCodeAt(pos + 1) === 62 /* greaterThan */) { + return pos += 2, token = 32 /* EqualsGreaterThanToken */; } - return pos++, token = 53; - case 62: + return pos++, token = 53 /* EqualsToken */; + case 62 /* greaterThan */: if (isConflictMarkerTrivia(text, pos)) { pos = scanConflictMarkerTrivia(text, pos, error); if (skipTrivia) { continue; } else { - return token = 6; + return token = 6 /* ConflictMarkerTrivia */; } } - return pos++, token = 25; - case 63: - return pos++, token = 50; - case 91: - return pos++, token = 18; - case 93: - return pos++, token = 19; - case 94: - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 64; + return pos++, token = 25 /* GreaterThanToken */; + case 63 /* question */: + return pos++, token = 50 /* QuestionToken */; + case 91 /* openBracket */: + return pos++, token = 18 /* OpenBracketToken */; + case 93 /* closeBracket */: + return pos++, token = 19 /* CloseBracketToken */; + case 94 /* caret */: + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 64 /* CaretEqualsToken */; } - return pos++, token = 45; - case 123: - return pos++, token = 14; - case 124: - if (text.charCodeAt(pos + 1) === 124) { - return pos += 2, token = 49; + return pos++, token = 45 /* CaretToken */; + case 123 /* openBrace */: + return pos++, token = 14 /* OpenBraceToken */; + case 124 /* bar */: + if (text.charCodeAt(pos + 1) === 124 /* bar */) { + return pos += 2, token = 49 /* BarBarToken */; } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 63; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 63 /* BarEqualsToken */; } - return pos++, token = 44; - case 125: - return pos++, token = 15; - case 126: - return pos++, token = 47; - case 64: - return pos++, token = 52; - case 92: + return pos++, token = 44 /* BarToken */; + case 125 /* closeBrace */: + return pos++, token = 15 /* CloseBraceToken */; + case 126 /* tilde */: + return pos++, token = 47 /* TildeToken */; + case 64 /* at */: + return pos++, token = 52 /* AtToken */; + case 92 /* backslash */: var cookedChar = peekUnicodeEscape(); if (cookedChar >= 0 && isIdentifierStart(cookedChar)) { pos += 6; @@ -3090,14 +3358,14 @@ var ts; return token = getIdentifierToken(); } error(ts.Diagnostics.Invalid_character); - return pos++, token = 0; + return pos++, token = 0 /* Unknown */; default: if (isIdentifierStart(ch)) { pos++; while (pos < len && isIdentifierPart(ch = text.charCodeAt(pos))) pos++; tokenValue = text.substring(tokenPos, pos); - if (ch === 92) { + if (ch === 92 /* backslash */) { tokenValue += scanIdentifierParts(); } return token = getIdentifierToken(); @@ -3112,36 +3380,38 @@ var ts; continue; } error(ts.Diagnostics.Invalid_character); - return pos++, token = 0; + return pos++, token = 0 /* Unknown */; } } } function reScanGreaterToken() { - if (token === 25) { - if (text.charCodeAt(pos) === 62) { - if (text.charCodeAt(pos + 1) === 62) { - if (text.charCodeAt(pos + 2) === 61) { - return pos += 3, token = 61; + if (token === 25 /* GreaterThanToken */) { + if (text.charCodeAt(pos) === 62 /* greaterThan */) { + if (text.charCodeAt(pos + 1) === 62 /* greaterThan */) { + if (text.charCodeAt(pos + 2) === 61 /* equals */) { + return pos += 3, token = 61 /* GreaterThanGreaterThanGreaterThanEqualsToken */; } - return pos += 2, token = 42; + return pos += 2, token = 42 /* GreaterThanGreaterThanGreaterThanToken */; } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 60; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 60 /* GreaterThanGreaterThanEqualsToken */; } - return pos++, token = 41; + return pos++, token = 41 /* GreaterThanGreaterThanToken */; } - if (text.charCodeAt(pos) === 61) { - return pos++, token = 27; + if (text.charCodeAt(pos) === 61 /* equals */) { + return pos++, token = 27 /* GreaterThanEqualsToken */; } } return token; } function reScanSlashToken() { - if (token === 36 || token === 57) { + if (token === 36 /* SlashToken */ || token === 57 /* SlashEqualsToken */) { var p = tokenPos + 1; var inEscape = false; var inCharacterClass = false; while (true) { + // If we reach the end of a file, or hit a newline, then this is an unterminated + // regex. Report error and return what we have so far. if (p >= len) { tokenIsUnterminated = true; error(ts.Diagnostics.Unterminated_regular_expression_literal); @@ -3154,19 +3424,23 @@ var ts; break; } if (inEscape) { + // Parsing an escape character; + // reset the flag and just advance to the next char. inEscape = false; } - else if (ch === 47 && !inCharacterClass) { + else if (ch === 47 /* slash */ && !inCharacterClass) { + // A slash within a character class is permissible, + // but in general it signals the end of the regexp literal. p++; break; } - else if (ch === 91) { + else if (ch === 91 /* openBracket */) { inCharacterClass = true; } - else if (ch === 92) { + else if (ch === 92 /* backslash */) { inEscape = true; } - else if (ch === 93) { + else if (ch === 93 /* closeBracket */) { inCharacterClass = false; } p++; @@ -3176,12 +3450,15 @@ var ts; } pos = p; tokenValue = text.substring(tokenPos, pos); - token = 9; + token = 9 /* RegularExpressionLiteral */; } return token; } + /** + * Unconditionally back up and scan a template expression portion. + */ function reScanTemplateToken() { - ts.Debug.assert(token === 15, "'reScanTemplateToken' should only be called on a '}'"); + ts.Debug.assert(token === 15 /* CloseBraceToken */, "'reScanTemplateToken' should only be called on a '}'"); pos = tokenPos; return token = scanTemplateAndSetTokenValue(); } @@ -3193,6 +3470,8 @@ var ts; var saveTokenValue = tokenValue; var savePrecedingLineBreak = precedingLineBreak; var result = callback(); + // If our callback returned something 'falsy' or we're just looking ahead, + // then unconditionally restore us to where we were. if (!result || isLookahead) { pos = savePos; startPos = saveStartPos; @@ -3218,7 +3497,7 @@ var ts; pos = textPos; startPos = textPos; tokenPos = textPos; - token = 0; + token = 0 /* Unknown */; precedingLineBreak = false; } setText(text); @@ -3231,8 +3510,8 @@ var ts; getTokenValue: function () { return tokenValue; }, hasExtendedUnicodeEscape: function () { return hasExtendedUnicodeEscape; }, hasPrecedingLineBreak: function () { return precedingLineBreak; }, - isIdentifier: function () { return token === 65 || token > 101; }, - isReservedWord: function () { return token >= 66 && token <= 101; }, + isIdentifier: function () { return token === 65 /* Identifier */ || token > 101 /* LastReservedWord */; }, + isReservedWord: function () { return token >= 66 /* FirstReservedWord */ && token <= 101 /* LastReservedWord */; }, isUnterminated: function () { return tokenIsUnterminated; }, reScanGreaterToken: reScanGreaterToken, reScanSlashToken: reScanSlashToken, @@ -3247,6 +3526,7 @@ var ts; ts.createScanner = createScanner; })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { ts.bindTime = 0; @@ -3257,36 +3537,41 @@ var ts; })(ts.ModuleInstanceState || (ts.ModuleInstanceState = {})); var ModuleInstanceState = ts.ModuleInstanceState; function getModuleInstanceState(node) { - if (node.kind === 202 || node.kind === 203) { - return 0; + // A module is uninstantiated if it contains only + // 1. interface declarations, type alias declarations + if (node.kind === 202 /* InterfaceDeclaration */ || node.kind === 203 /* TypeAliasDeclaration */) { + return 0 /* NonInstantiated */; } else if (ts.isConstEnumDeclaration(node)) { - return 2; + return 2 /* ConstEnumOnly */; } - else if ((node.kind === 209 || node.kind === 208) && !(node.flags & 1)) { - return 0; + else if ((node.kind === 209 /* ImportDeclaration */ || node.kind === 208 /* ImportEqualsDeclaration */) && !(node.flags & 1 /* Export */)) { + return 0 /* NonInstantiated */; } - else if (node.kind === 206) { - var state = 0; + else if (node.kind === 206 /* ModuleBlock */) { + var state = 0 /* NonInstantiated */; ts.forEachChild(node, function (n) { switch (getModuleInstanceState(n)) { - case 0: + case 0 /* NonInstantiated */: + // child is non-instantiated - continue searching return false; - case 2: - state = 2; + case 2 /* ConstEnumOnly */: + // child is const enum only - record state and continue searching + state = 2 /* ConstEnumOnly */; return false; - case 1: - state = 1; + case 1 /* Instantiated */: + // child is instantiated - record state and stop + state = 1 /* Instantiated */; return true; } }); return state; } - else if (node.kind === 205) { + else if (node.kind === 205 /* ModuleDeclaration */) { return getModuleInstanceState(node.body); } else { - return 1; + return 1 /* Instantiated */; } } ts.getModuleInstanceState = getModuleInstanceState; @@ -3325,20 +3610,22 @@ var ts; if (!symbol.declarations) symbol.declarations = []; symbol.declarations.push(node); - if (symbolKind & 1952 && !symbol.exports) + if (symbolKind & 1952 /* HasExports */ && !symbol.exports) symbol.exports = {}; - if (symbolKind & 6240 && !symbol.members) + if (symbolKind & 6240 /* HasMembers */ && !symbol.members) symbol.members = {}; node.symbol = symbol; - if (symbolKind & 107455 && !symbol.valueDeclaration) + if (symbolKind & 107455 /* Value */ && !symbol.valueDeclaration) symbol.valueDeclaration = node; } + // Should not be called on a declaration with a computed property name, + // unless it is a well known Symbol. function getDeclarationName(node) { if (node.name) { - if (node.kind === 205 && node.name.kind === 8) { + if (node.kind === 205 /* ModuleDeclaration */ && node.name.kind === 8 /* StringLiteral */) { return '"' + node.name.text + '"'; } - if (node.name.kind === 127) { + if (node.name.kind === 127 /* ComputedPropertyName */) { var nameExpression = node.name.expression; ts.Debug.assert(ts.isWellKnownSymbolSyntactically(nameExpression)); return ts.getPropertyNameForKnownSymbolName(nameExpression.name.text); @@ -3346,23 +3633,23 @@ var ts; return node.name.text; } switch (node.kind) { - case 143: - case 135: + case 143 /* ConstructorType */: + case 135 /* Constructor */: return "__constructor"; - case 142: - case 138: + case 142 /* FunctionType */: + case 138 /* CallSignature */: return "__call"; - case 139: + case 139 /* ConstructSignature */: return "__new"; - case 140: + case 140 /* IndexSignature */: return "__index"; - case 215: + case 215 /* ExportDeclaration */: return "__export"; - case 214: + case 214 /* ExportAssignment */: return node.isExportEquals ? "export=" : "default"; - case 200: - case 201: - return node.flags & 256 ? "default" : undefined; + case 200 /* FunctionDeclaration */: + case 201 /* ClassDeclaration */: + return node.flags & 256 /* Default */ ? "default" : undefined; } } function getDisplayName(node) { @@ -3370,7 +3657,8 @@ var ts; } function declareSymbol(symbols, parent, node, includes, excludes) { ts.Debug.assert(!ts.hasDynamicName(node)); - var name = node.flags & 256 && parent ? "default" : getDeclarationName(node); + // The exported symbol for an export default function/class node is always named "default" + var name = node.flags & 256 /* Default */ && parent ? "default" : getDeclarationName(node); var symbol; if (name !== undefined) { symbol = ts.hasProperty(symbols, name) ? symbols[name] : (symbols[name] = createSymbol(0, name)); @@ -3378,7 +3666,9 @@ var ts; if (node.name) { node.name.parent = node; } - var message = symbol.flags & 2 + // Report errors every position with duplicate declaration + // Report errors on previous encountered declarations + var message = symbol.flags & 2 /* BlockScopedVariable */ ? ts.Diagnostics.Cannot_redeclare_block_scoped_variable_0 : ts.Diagnostics.Duplicate_identifier_0; ts.forEach(symbol.declarations, function (declaration) { @@ -3393,8 +3683,12 @@ var ts; } addDeclarationToSymbol(symbol, node, includes); symbol.parent = parent; - if ((node.kind === 201 || node.kind === 174) && symbol.exports) { - var prototypeSymbol = createSymbol(4 | 134217728, "prototype"); + if ((node.kind === 201 /* ClassDeclaration */ || node.kind === 174 /* ClassExpression */) && symbol.exports) { + // TypeScript 1.0 spec (April 2014): 8.4 + // Every class automatically contains a static property member named 'prototype', + // the type of which is an instantiation of the class type with type Any supplied as a type argument for each type parameter. + // It is an error to explicitly declare a static property member with the name 'prototype'. + var prototypeSymbol = createSymbol(4 /* Property */ | 134217728 /* Prototype */, "prototype"); if (ts.hasProperty(symbol.exports, prototypeSymbol.name)) { if (node.name) { node.name.parent = node; @@ -3407,9 +3701,9 @@ var ts; return symbol; } function declareModuleMember(node, symbolKind, symbolExcludes) { - var hasExportModifier = ts.getCombinedNodeFlags(node) & 1; - if (symbolKind & 8388608) { - if (node.kind === 217 || (node.kind === 208 && hasExportModifier)) { + var hasExportModifier = ts.getCombinedNodeFlags(node) & 1 /* Export */; + if (symbolKind & 8388608 /* Alias */) { + if (node.kind === 217 /* ExportSpecifier */ || (node.kind === 208 /* ImportEqualsDeclaration */ && hasExportModifier)) { declareSymbol(container.symbol.exports, container.symbol, node, symbolKind, symbolExcludes); } else { @@ -3417,10 +3711,21 @@ var ts; } } else { - if (hasExportModifier || container.flags & 32768) { - var exportKind = (symbolKind & 107455 ? 1048576 : 0) | - (symbolKind & 793056 ? 2097152 : 0) | - (symbolKind & 1536 ? 4194304 : 0); + // Exported module members are given 2 symbols: A local symbol that is classified with an ExportValue, + // ExportType, or ExportContainer flag, and an associated export symbol with all the correct flags set + // on it. There are 2 main reasons: + // + // 1. We treat locals and exports of the same name as mutually exclusive within a container. + // That means the binder will issue a Duplicate Identifier error if you mix locals and exports + // with the same name in the same container. + // TODO: Make this a more specific error and decouple it from the exclusion logic. + // 2. When we checkIdentifier in the checker, we set its resolved symbol to the local symbol, + // but return the export symbol (by calling getExportSymbolOfValueSymbolIfExported). That way + // when the emitter comes back to it, it knows not to qualify the name if it was found in a containing scope. + if (hasExportModifier || container.flags & 32768 /* ExportContext */) { + var exportKind = (symbolKind & 107455 /* Value */ ? 1048576 /* ExportValue */ : 0) | + (symbolKind & 793056 /* Type */ ? 2097152 /* ExportType */ : 0) | + (symbolKind & 1536 /* Namespace */ ? 4194304 /* ExportNamespace */ : 0); var local = declareSymbol(container.locals, undefined, node, exportKind, symbolExcludes); local.exportSymbol = declareSymbol(container.symbol.exports, container.symbol, node, symbolKind, symbolExcludes); node.localSymbol = local; @@ -3430,15 +3735,17 @@ var ts; } } } + // All container nodes are kept on a linked list in declaration order. This list is used by the getLocalNameOfContainer function + // in the type checker to validate that the local name used for a container is unique. function bindChildren(node, symbolKind, isBlockScopeContainer) { - if (symbolKind & 255504) { + if (symbolKind & 255504 /* HasLocals */) { node.locals = {}; } var saveParent = parent; var saveContainer = container; var savedBlockScopeContainer = blockScopeContainer; parent = node; - if (symbolKind & 262128) { + if (symbolKind & 262128 /* IsContainer */) { container = node; if (lastContainer) { lastContainer.nextContainer = container; @@ -3446,7 +3753,13 @@ var ts; lastContainer = container; } if (isBlockScopeContainer) { - setBlockScopeContainer(node, (symbolKind & 255504) === 0 && node.kind !== 227); + // in incremental scenarios we might reuse nodes that already have locals being allocated + // during the bind step these locals should be dropped to prevent using stale data. + // locals should always be dropped unless they were previously initialized by the binder + // these cases are: + // - node has locals (symbolKind & HasLocals) !== 0 + // - node is a source file + setBlockScopeContainer(node, (symbolKind & 255504 /* HasLocals */) === 0 && node.kind !== 227 /* SourceFile */); } ts.forEachChild(node, bind); container = saveContainer; @@ -3455,41 +3768,41 @@ var ts; } function bindDeclaration(node, symbolKind, symbolExcludes, isBlockScopeContainer) { switch (container.kind) { - case 205: + case 205 /* ModuleDeclaration */: declareModuleMember(node, symbolKind, symbolExcludes); break; - case 227: + case 227 /* SourceFile */: if (ts.isExternalModule(container)) { declareModuleMember(node, symbolKind, symbolExcludes); break; } - case 142: - case 143: - case 138: - case 139: - case 140: - case 134: - case 133: - case 135: - case 136: - case 137: - case 200: - case 162: - case 163: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: declareSymbol(container.locals, undefined, node, symbolKind, symbolExcludes); break; - case 174: - case 201: - if (node.flags & 128) { + case 174 /* ClassExpression */: + case 201 /* ClassDeclaration */: + if (node.flags & 128 /* Static */) { declareSymbol(container.symbol.exports, container.symbol, node, symbolKind, symbolExcludes); break; } - case 145: - case 154: - case 202: + case 145 /* TypeLiteral */: + case 154 /* ObjectLiteralExpression */: + case 202 /* InterfaceDeclaration */: declareSymbol(container.symbol.members, container.symbol, node, symbolKind, symbolExcludes); break; - case 204: + case 204 /* EnumDeclaration */: declareSymbol(container.symbol.exports, container.symbol, node, symbolKind, symbolExcludes); break; } @@ -3497,18 +3810,18 @@ var ts; } function isAmbientContext(node) { while (node) { - if (node.flags & 2) + if (node.flags & 2 /* Ambient */) return true; node = node.parent; } return false; } function hasExportDeclarations(node) { - var body = node.kind === 227 ? node : node.body; - if (body.kind === 227 || body.kind === 206) { + var body = node.kind === 227 /* SourceFile */ ? node : node.body; + if (body.kind === 227 /* SourceFile */ || body.kind === 206 /* ModuleBlock */) { for (var _i = 0, _a = body.statements; _i < _a.length; _i++) { var stat = _a[_i]; - if (stat.kind === 215 || stat.kind === 214) { + if (stat.kind === 215 /* ExportDeclaration */ || stat.kind === 214 /* ExportAssignment */) { return true; } } @@ -3516,30 +3829,34 @@ var ts; return false; } function setExportContextFlag(node) { + // A declaration source file or ambient module declaration that contains no export declarations (but possibly regular + // declarations with export modifiers) is an export context in which declarations are implicitly exported. if (isAmbientContext(node) && !hasExportDeclarations(node)) { - node.flags |= 32768; + node.flags |= 32768 /* ExportContext */; } else { - node.flags &= ~32768; + node.flags &= ~32768 /* ExportContext */; } } function bindModuleDeclaration(node) { setExportContextFlag(node); - if (node.name.kind === 8) { - bindDeclaration(node, 512, 106639, true); + if (node.name.kind === 8 /* StringLiteral */) { + bindDeclaration(node, 512 /* ValueModule */, 106639 /* ValueModuleExcludes */, true); } else { var state = getModuleInstanceState(node); - if (state === 0) { - bindDeclaration(node, 1024, 0, true); + if (state === 0 /* NonInstantiated */) { + bindDeclaration(node, 1024 /* NamespaceModule */, 0 /* NamespaceModuleExcludes */, true); } else { - bindDeclaration(node, 512, 106639, true); - var currentModuleIsConstEnumOnly = state === 2; + bindDeclaration(node, 512 /* ValueModule */, 106639 /* ValueModuleExcludes */, true); + var currentModuleIsConstEnumOnly = state === 2 /* ConstEnumOnly */; if (node.symbol.constEnumOnlyModule === undefined) { + // non-merged case - use the current state node.symbol.constEnumOnlyModule = currentModuleIsConstEnumOnly; } else { + // merged case: module is const enum only if all its pieces are non-instantiated or const enum node.symbol.constEnumOnlyModule = node.symbol.constEnumOnlyModule && currentModuleIsConstEnumOnly; } } @@ -3552,13 +3869,13 @@ var ts; // We do that by making an anonymous type literal symbol, and then setting the function // symbol as its sole member. To the rest of the system, this symbol will be indistinguishable // from an actual type literal symbol you would have gotten had you used the long form. - var symbol = createSymbol(131072, getDeclarationName(node)); - addDeclarationToSymbol(symbol, node, 131072); - bindChildren(node, 131072, false); - var typeLiteralSymbol = createSymbol(2048, "__type"); - addDeclarationToSymbol(typeLiteralSymbol, node, 2048); + var symbol = createSymbol(131072 /* Signature */, getDeclarationName(node)); + addDeclarationToSymbol(symbol, node, 131072 /* Signature */); + bindChildren(node, 131072 /* Signature */, false); + var typeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, "__type"); + addDeclarationToSymbol(typeLiteralSymbol, node, 2048 /* TypeLiteral */); typeLiteralSymbol.members = {}; - typeLiteralSymbol.members[node.kind === 142 ? "__call" : "__new"] = symbol; + typeLiteralSymbol.members[node.kind === 142 /* FunctionType */ ? "__call" : "__new"] = symbol; } function bindAnonymousDeclaration(node, symbolKind, name, isBlockScopeContainer) { var symbol = createSymbol(symbolKind, name); @@ -3568,23 +3885,27 @@ var ts; function bindCatchVariableDeclaration(node) { bindChildren(node, 0, true); } - function bindBlockScopedVariableDeclaration(node) { + function bindBlockScopedDeclaration(node, symbolKind, symbolExcludes) { switch (blockScopeContainer.kind) { - case 205: - declareModuleMember(node, 2, 107455); + case 205 /* ModuleDeclaration */: + declareModuleMember(node, symbolKind, symbolExcludes); break; - case 227: + case 227 /* SourceFile */: if (ts.isExternalModule(container)) { - declareModuleMember(node, 2, 107455); + declareModuleMember(node, symbolKind, symbolExcludes); break; } + // fall through. default: if (!blockScopeContainer.locals) { blockScopeContainer.locals = {}; } - declareSymbol(blockScopeContainer.locals, undefined, node, 2, 107455); + declareSymbol(blockScopeContainer.locals, undefined, node, symbolKind, symbolExcludes); } - bindChildren(node, 2, false); + bindChildren(node, symbolKind, false); + } + function bindBlockScopedVariableDeclaration(node) { + bindBlockScopedDeclaration(node, 2 /* BlockScopedVariable */, 107455 /* BlockScopedVariableExcludes */); } function getDestructuringParameterName(node) { return "__" + ts.indexOf(node.parent.parameters, node); @@ -3592,14 +3913,14 @@ var ts; function bind(node) { node.parent = parent; switch (node.kind) { - case 128: - bindDeclaration(node, 262144, 530912, false); + case 128 /* TypeParameter */: + bindDeclaration(node, 262144 /* TypeParameter */, 530912 /* TypeParameterExcludes */, false); break; - case 129: + case 129 /* Parameter */: bindParameter(node); break; - case 198: - case 152: + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: if (ts.isBindingPattern(node.name)) { bindChildren(node, 0, false); } @@ -3607,124 +3928,139 @@ var ts; bindBlockScopedVariableDeclaration(node); } else { - bindDeclaration(node, 1, 107454, false); + bindDeclaration(node, 1 /* FunctionScopedVariable */, 107454 /* FunctionScopedVariableExcludes */, false); } break; - case 132: - case 131: - bindPropertyOrMethodOrAccessor(node, 4 | (node.questionToken ? 536870912 : 0), 107455, false); + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + bindPropertyOrMethodOrAccessor(node, 4 /* Property */ | (node.questionToken ? 536870912 /* Optional */ : 0), 107455 /* PropertyExcludes */, false); break; - case 224: - case 225: - bindPropertyOrMethodOrAccessor(node, 4, 107455, false); + case 224 /* PropertyAssignment */: + case 225 /* ShorthandPropertyAssignment */: + bindPropertyOrMethodOrAccessor(node, 4 /* Property */, 107455 /* PropertyExcludes */, false); break; - case 226: - bindPropertyOrMethodOrAccessor(node, 8, 107455, false); + case 226 /* EnumMember */: + bindPropertyOrMethodOrAccessor(node, 8 /* EnumMember */, 107455 /* EnumMemberExcludes */, false); break; - case 138: - case 139: - case 140: - bindDeclaration(node, 131072, 0, false); + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: + bindDeclaration(node, 131072 /* Signature */, 0, false); break; - case 134: - case 133: - bindPropertyOrMethodOrAccessor(node, 8192 | (node.questionToken ? 536870912 : 0), ts.isObjectLiteralMethod(node) ? 107455 : 99263, true); + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + // If this is an ObjectLiteralExpression method, then it sits in the same space + // as other properties in the object literal. So we use SymbolFlags.PropertyExcludes + // so that it will conflict with any other object literal members with the same + // name. + bindPropertyOrMethodOrAccessor(node, 8192 /* Method */ | (node.questionToken ? 536870912 /* Optional */ : 0), ts.isObjectLiteralMethod(node) ? 107455 /* PropertyExcludes */ : 99263 /* MethodExcludes */, true); break; - case 200: - bindDeclaration(node, 16, 106927, true); + case 200 /* FunctionDeclaration */: + bindDeclaration(node, 16 /* Function */, 106927 /* FunctionExcludes */, true); break; - case 135: - bindDeclaration(node, 16384, 0, true); + case 135 /* Constructor */: + bindDeclaration(node, 16384 /* Constructor */, 0, true); break; - case 136: - bindPropertyOrMethodOrAccessor(node, 32768, 41919, true); + case 136 /* GetAccessor */: + bindPropertyOrMethodOrAccessor(node, 32768 /* GetAccessor */, 41919 /* GetAccessorExcludes */, true); break; - case 137: - bindPropertyOrMethodOrAccessor(node, 65536, 74687, true); + case 137 /* SetAccessor */: + bindPropertyOrMethodOrAccessor(node, 65536 /* SetAccessor */, 74687 /* SetAccessorExcludes */, true); break; - case 142: - case 143: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: bindFunctionOrConstructorType(node); break; - case 145: - bindAnonymousDeclaration(node, 2048, "__type", false); + case 145 /* TypeLiteral */: + bindAnonymousDeclaration(node, 2048 /* TypeLiteral */, "__type", false); break; - case 154: - bindAnonymousDeclaration(node, 4096, "__object", false); + case 154 /* ObjectLiteralExpression */: + bindAnonymousDeclaration(node, 4096 /* ObjectLiteral */, "__object", false); break; - case 162: - case 163: - bindAnonymousDeclaration(node, 16, "__function", true); + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + bindAnonymousDeclaration(node, 16 /* Function */, "__function", true); break; - case 174: - bindAnonymousDeclaration(node, 32, "__class", false); + case 174 /* ClassExpression */: + bindAnonymousDeclaration(node, 32 /* Class */, "__class", false); break; - case 223: + case 223 /* CatchClause */: bindCatchVariableDeclaration(node); break; - case 201: - bindDeclaration(node, 32, 899583, false); + case 201 /* ClassDeclaration */: + bindBlockScopedDeclaration(node, 32 /* Class */, 899583 /* ClassExcludes */); break; - case 202: - bindDeclaration(node, 64, 792992, false); + case 202 /* InterfaceDeclaration */: + bindDeclaration(node, 64 /* Interface */, 792992 /* InterfaceExcludes */, false); break; - case 203: - bindDeclaration(node, 524288, 793056, false); + case 203 /* TypeAliasDeclaration */: + bindDeclaration(node, 524288 /* TypeAlias */, 793056 /* TypeAliasExcludes */, false); break; - case 204: + case 204 /* EnumDeclaration */: if (ts.isConst(node)) { - bindDeclaration(node, 128, 899967, false); + bindDeclaration(node, 128 /* ConstEnum */, 899967 /* ConstEnumExcludes */, false); } else { - bindDeclaration(node, 256, 899327, false); + bindDeclaration(node, 256 /* RegularEnum */, 899327 /* RegularEnumExcludes */, false); } break; - case 205: + case 205 /* ModuleDeclaration */: bindModuleDeclaration(node); break; - case 208: - case 211: - case 213: - case 217: - bindDeclaration(node, 8388608, 8388608, false); + case 208 /* ImportEqualsDeclaration */: + case 211 /* NamespaceImport */: + case 213 /* ImportSpecifier */: + case 217 /* ExportSpecifier */: + bindDeclaration(node, 8388608 /* Alias */, 8388608 /* AliasExcludes */, false); break; - case 210: + case 210 /* ImportClause */: if (node.name) { - bindDeclaration(node, 8388608, 8388608, false); + bindDeclaration(node, 8388608 /* Alias */, 8388608 /* AliasExcludes */, false); } else { bindChildren(node, 0, false); } break; - case 215: + case 215 /* ExportDeclaration */: if (!node.exportClause) { - declareSymbol(container.symbol.exports, container.symbol, node, 1073741824, 0); + // All export * declarations are collected in an __export symbol + declareSymbol(container.symbol.exports, container.symbol, node, 1073741824 /* ExportStar */, 0); } bindChildren(node, 0, false); break; - case 214: - if (node.expression && node.expression.kind === 65) { - declareSymbol(container.symbol.exports, container.symbol, node, 8388608, 107455 | 8388608); + case 214 /* ExportAssignment */: + if (node.expression.kind === 65 /* Identifier */) { + // An export default clause with an identifier exports all meanings of that identifier + declareSymbol(container.symbol.exports, container.symbol, node, 8388608 /* Alias */, 107455 /* PropertyExcludes */ | 8388608 /* AliasExcludes */); } else { - declareSymbol(container.symbol.exports, container.symbol, node, 4, 107455 | 8388608); + // An export default clause with an expression exports a value + declareSymbol(container.symbol.exports, container.symbol, node, 4 /* Property */, 107455 /* PropertyExcludes */ | 8388608 /* AliasExcludes */); } bindChildren(node, 0, false); break; - case 227: + case 227 /* SourceFile */: setExportContextFlag(node); if (ts.isExternalModule(node)) { - bindAnonymousDeclaration(node, 512, '"' + ts.removeFileExtension(node.fileName) + '"', true); + bindAnonymousDeclaration(node, 512 /* ValueModule */, '"' + ts.removeFileExtension(node.fileName) + '"', true); break; } - case 179: + case 179 /* Block */: + // do not treat function block a block-scope container + // all block-scope locals that reside in this block should go to the function locals. + // Otherwise this won't be considered as redeclaration of a block scoped local: + // function foo() { + // let x; + // let x; + // } + // 'let x' will be placed into the function locals and 'let x' - into the locals of the block bindChildren(node, 0, !ts.isFunctionLike(node.parent)); break; - case 223: - case 186: - case 187: - case 188: - case 207: + case 223 /* CatchClause */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 207 /* CaseBlock */: bindChildren(node, 0, true); break; default: @@ -3736,16 +4072,18 @@ var ts; } function bindParameter(node) { if (ts.isBindingPattern(node.name)) { - bindAnonymousDeclaration(node, 1, getDestructuringParameterName(node), false); + bindAnonymousDeclaration(node, 1 /* FunctionScopedVariable */, getDestructuringParameterName(node), false); } else { - bindDeclaration(node, 1, 107455, false); + bindDeclaration(node, 1 /* FunctionScopedVariable */, 107455 /* ParameterExcludes */, false); } - if (node.flags & 112 && - node.parent.kind === 135 && - (node.parent.parent.kind === 201 || node.parent.parent.kind === 174)) { + // If this is a property-parameter, then also declare the property symbol into the + // containing class. + if (node.flags & 112 /* AccessibilityModifier */ && + node.parent.kind === 135 /* Constructor */ && + (node.parent.parent.kind === 201 /* ClassDeclaration */ || node.parent.parent.kind === 174 /* ClassExpression */)) { var classDeclaration = node.parent.parent; - declareSymbol(classDeclaration.symbol.members, classDeclaration.symbol, node, 4, 107455); + declareSymbol(classDeclaration.symbol.members, classDeclaration.symbol, node, 4 /* Property */, 107455 /* PropertyExcludes */); } } function bindPropertyOrMethodOrAccessor(node, symbolKind, symbolExcludes, isBlockScopeContainer) { @@ -3759,6 +4097,7 @@ var ts; } })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { function getDeclarationOfKind(symbol, kind) { @@ -3772,6 +4111,7 @@ var ts; return undefined; } ts.getDeclarationOfKind = getDeclarationOfKind; + // Pool writers to avoid needing to allocate them for every symbol we write. var stringWriters = []; function getSingleLineStringWriter() { if (stringWriters.length == 0) { @@ -3786,6 +4126,8 @@ var ts; writeStringLiteral: writeText, writeParameter: writeText, writeSymbol: writeText, + // Completely ignore indentation for string writers. And map newlines to + // a single space. writeLine: function () { return str += " "; }, increaseIndent: function () { }, decreaseIndent: function () { }, @@ -3805,23 +4147,31 @@ var ts; return node.end - node.pos; } ts.getFullWidth = getFullWidth; + // Returns true if this node contains a parse error anywhere underneath it. function containsParseError(node) { aggregateChildData(node); - return (node.parserContextFlags & 64) !== 0; + return (node.parserContextFlags & 64 /* ThisNodeOrAnySubNodesHasError */) !== 0; } ts.containsParseError = containsParseError; function aggregateChildData(node) { - if (!(node.parserContextFlags & 128)) { - var thisNodeOrAnySubNodesHasError = ((node.parserContextFlags & 32) !== 0) || + if (!(node.parserContextFlags & 128 /* HasAggregatedChildData */)) { + // A node is considered to contain a parse error if: + // a) the parser explicitly marked that it had an error + // b) any of it's children reported that it had an error. + var thisNodeOrAnySubNodesHasError = ((node.parserContextFlags & 32 /* ThisNodeHasError */) !== 0) || ts.forEachChild(node, containsParseError); + // If so, mark ourselves accordingly. if (thisNodeOrAnySubNodesHasError) { - node.parserContextFlags |= 64; + node.parserContextFlags |= 64 /* ThisNodeOrAnySubNodesHasError */; } - node.parserContextFlags |= 128; + // Also mark that we've propogated the child information to this node. This way we can + // always consult the bit directly on this node without needing to check its children + // again. + node.parserContextFlags |= 128 /* HasAggregatedChildData */; } } function getSourceFileOfNode(node) { - while (node && node.kind !== 227) { + while (node && node.kind !== 227 /* SourceFile */) { node = node.parent; } return node; @@ -3832,6 +4182,7 @@ var ts; return ts.getLineStarts(sourceFile)[line]; } ts.getStartPositionOfLine = getStartPositionOfLine; + // This is a useful function for debugging purposes. function nodePosToString(node) { var file = getSourceFileOfNode(node); var loc = ts.getLineAndCharacterOfPosition(file, node.pos); @@ -3842,11 +4193,23 @@ var ts; return node.pos; } ts.getStartPosOfNode = getStartPosOfNode; + // Returns true if this node is missing from the actual source code. 'missing' is different + // from 'undefined/defined'. When a node is undefined (which can happen for optional nodes + // in the tree), it is definitel missing. HOwever, a node may be defined, but still be + // missing. This happens whenever the parser knows it needs to parse something, but can't + // get anything in the source code that it expects at that location. For example: + // + // let a: ; + // + // Here, the Type in the Type-Annotation is not-optional (as there is a colon in the source + // code). So the parser will attempt to parse out a type, and will create an actual node. + // However, this node will be 'missing' in the sense that no actual source-code/tokens are + // contained within it. function nodeIsMissing(node) { if (!node) { return true; } - return node.pos === node.end && node.kind !== 1; + return node.pos === node.end && node.kind !== 1 /* EndOfFileToken */; } ts.nodeIsMissing = nodeIsMissing; function nodeIsPresent(node) { @@ -3854,12 +4217,21 @@ var ts; } ts.nodeIsPresent = nodeIsPresent; function getTokenPosOfNode(node, sourceFile) { + // With nodes that have no width (i.e. 'Missing' nodes), we actually *don't* + // want to skip trivia because this will launch us forward to the next token. if (nodeIsMissing(node)) { return node.pos; } return ts.skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.pos); } ts.getTokenPosOfNode = getTokenPosOfNode; + function getNonDecoratorTokenPosOfNode(node, sourceFile) { + if (nodeIsMissing(node) || !node.decorators) { + return getTokenPosOfNode(node, sourceFile); + } + return ts.skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.decorators.end); + } + ts.getNonDecoratorTokenPosOfNode = getNonDecoratorTokenPosOfNode; function getSourceTextOfNodeFromSourceFile(sourceFile, node) { if (nodeIsMissing(node)) { return ""; @@ -3879,20 +4251,24 @@ var ts; return getSourceTextOfNodeFromSourceFile(getSourceFileOfNode(node), node); } ts.getTextOfNode = getTextOfNode; + // Add an extra underscore to identifiers that start with two underscores to avoid issues with magic names like '__proto__' function escapeIdentifier(identifier) { - return identifier.length >= 2 && identifier.charCodeAt(0) === 95 && identifier.charCodeAt(1) === 95 ? "_" + identifier : identifier; + return identifier.length >= 2 && identifier.charCodeAt(0) === 95 /* _ */ && identifier.charCodeAt(1) === 95 /* _ */ ? "_" + identifier : identifier; } ts.escapeIdentifier = escapeIdentifier; + // Remove extra underscore from escaped identifier function unescapeIdentifier(identifier) { - return identifier.length >= 3 && identifier.charCodeAt(0) === 95 && identifier.charCodeAt(1) === 95 && identifier.charCodeAt(2) === 95 ? identifier.substr(1) : identifier; + return identifier.length >= 3 && identifier.charCodeAt(0) === 95 /* _ */ && identifier.charCodeAt(1) === 95 /* _ */ && identifier.charCodeAt(2) === 95 /* _ */ ? identifier.substr(1) : identifier; } ts.unescapeIdentifier = unescapeIdentifier; + // Make an identifier from an external module name by extracting the string after the last "/" and replacing + // all non-alphanumeric characters with underscores function makeIdentifierFromModuleName(moduleName) { return ts.getBaseFileName(moduleName).replace(/\W/g, "_"); } ts.makeIdentifierFromModuleName = makeIdentifierFromModuleName; function isBlockOrCatchScoped(declaration) { - return (getCombinedNodeFlags(declaration) & 12288) !== 0 || + return (getCombinedNodeFlags(declaration) & 12288 /* BlockScoped */) !== 0 || isCatchClauseVariableDeclaration(declaration); } ts.isBlockOrCatchScoped = isBlockOrCatchScoped; @@ -3903,15 +4279,17 @@ var ts; return current; } switch (current.kind) { - case 227: - case 207: - case 223: - case 205: - case 186: - case 187: - case 188: + case 227 /* SourceFile */: + case 207 /* CaseBlock */: + case 223 /* CatchClause */: + case 205 /* ModuleDeclaration */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: return current; - case 179: + case 179 /* Block */: + // function block is not considered block-scope container + // see comment in binder.ts: bind(...), case for SyntaxKind.Block if (!isFunctionLike(current.parent)) { return current; } @@ -3922,11 +4300,14 @@ var ts; ts.getEnclosingBlockScopeContainer = getEnclosingBlockScopeContainer; function isCatchClauseVariableDeclaration(declaration) { return declaration && - declaration.kind === 198 && + declaration.kind === 198 /* VariableDeclaration */ && declaration.parent && - declaration.parent.kind === 223; + declaration.parent.kind === 223 /* CatchClause */; } ts.isCatchClauseVariableDeclaration = isCatchClauseVariableDeclaration; + // Return display name of an identifier + // Computed property names will just be emitted as "[]", where is the source + // text of the expression in the computed property. function declarationNameToString(name) { return getFullWidth(name) === 0 ? "(Missing)" : getTextOfNode(name); } @@ -3950,6 +4331,7 @@ var ts; }; } ts.createDiagnosticForNodeFromMessageChain = createDiagnosticForNodeFromMessageChain; + /* @internal */ function getSpanOfTokenAtPosition(sourceFile, pos) { var scanner = ts.createScanner(sourceFile.languageVersion, true, sourceFile.text); scanner.setTextPos(pos); @@ -3961,26 +4343,31 @@ var ts; function getErrorSpanForNode(sourceFile, node) { var errorNode = node; switch (node.kind) { - case 227: + case 227 /* SourceFile */: var pos_1 = ts.skipTrivia(sourceFile.text, 0, false); if (pos_1 === sourceFile.text.length) { + // file is empty - return span for the beginning of the file return createTextSpan(0, 0); } return getSpanOfTokenAtPosition(sourceFile, pos_1); - case 198: - case 152: - case 201: - case 174: - case 202: - case 205: - case 204: - case 226: - case 200: - case 162: + // This list is a work in progress. Add missing node kinds to improve their error + // spans. + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: + case 201 /* ClassDeclaration */: + case 174 /* ClassExpression */: + case 202 /* InterfaceDeclaration */: + case 205 /* ModuleDeclaration */: + case 204 /* EnumDeclaration */: + case 226 /* EnumMember */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: errorNode = node.name; break; } if (errorNode === undefined) { + // If we don't have a better node, then just set the error on the first token of + // construct. return getSpanOfTokenAtPosition(sourceFile, node.pos); } var pos = nodeIsMissing(errorNode) @@ -3994,49 +4381,61 @@ var ts; } ts.isExternalModule = isExternalModule; function isDeclarationFile(file) { - return (file.flags & 2048) !== 0; + return (file.flags & 2048 /* DeclarationFile */) !== 0; } ts.isDeclarationFile = isDeclarationFile; function isConstEnumDeclaration(node) { - return node.kind === 204 && isConst(node); + return node.kind === 204 /* EnumDeclaration */ && isConst(node); } ts.isConstEnumDeclaration = isConstEnumDeclaration; function walkUpBindingElementsAndPatterns(node) { - while (node && (node.kind === 152 || isBindingPattern(node))) { + while (node && (node.kind === 152 /* BindingElement */ || isBindingPattern(node))) { node = node.parent; } return node; } + // Returns the node flags for this node and all relevant parent nodes. This is done so that + // nodes like variable declarations and binding elements can returned a view of their flags + // that includes the modifiers from their container. i.e. flags like export/declare aren't + // stored on the variable declaration directly, but on the containing variable statement + // (if it has one). Similarly, flags for let/const are store on the variable declaration + // list. By calling this function, all those flags are combined so that the client can treat + // the node as if it actually had those flags. function getCombinedNodeFlags(node) { node = walkUpBindingElementsAndPatterns(node); var flags = node.flags; - if (node.kind === 198) { + if (node.kind === 198 /* VariableDeclaration */) { node = node.parent; } - if (node && node.kind === 199) { + if (node && node.kind === 199 /* VariableDeclarationList */) { flags |= node.flags; node = node.parent; } - if (node && node.kind === 180) { + if (node && node.kind === 180 /* VariableStatement */) { flags |= node.flags; } return flags; } ts.getCombinedNodeFlags = getCombinedNodeFlags; function isConst(node) { - return !!(getCombinedNodeFlags(node) & 8192); + return !!(getCombinedNodeFlags(node) & 8192 /* Const */); } ts.isConst = isConst; function isLet(node) { - return !!(getCombinedNodeFlags(node) & 4096); + return !!(getCombinedNodeFlags(node) & 4096 /* Let */); } ts.isLet = isLet; function isPrologueDirective(node) { - return node.kind === 182 && node.expression.kind === 8; + return node.kind === 182 /* ExpressionStatement */ && node.expression.kind === 8 /* StringLiteral */; } ts.isPrologueDirective = isPrologueDirective; function getLeadingCommentRangesOfNode(node, sourceFileOfNode) { - if (node.kind === 129 || node.kind === 128) { + // If parameter/type parameter, the prev token trailing comments are part of this node too + if (node.kind === 129 /* Parameter */ || node.kind === 128 /* TypeParameter */) { + // e.g. (/** blah */ a, /** blah */ b); + // e.g.: ( + // /** blah */ a, + // /** blah */ b); return ts.concatenate(ts.getTrailingCommentRanges(sourceFileOfNode.text, node.pos), ts.getLeadingCommentRanges(sourceFileOfNode.text, node.pos)); } else { @@ -4047,75 +4446,90 @@ var ts; function getJsDocComments(node, sourceFileOfNode) { return ts.filter(getLeadingCommentRangesOfNode(node, sourceFileOfNode), isJsDocComment); function isJsDocComment(comment) { - return sourceFileOfNode.text.charCodeAt(comment.pos + 1) === 42 && - sourceFileOfNode.text.charCodeAt(comment.pos + 2) === 42 && - sourceFileOfNode.text.charCodeAt(comment.pos + 3) !== 47; + // True if the comment starts with '/**' but not if it is '/**/' + return sourceFileOfNode.text.charCodeAt(comment.pos + 1) === 42 /* asterisk */ && + sourceFileOfNode.text.charCodeAt(comment.pos + 2) === 42 /* asterisk */ && + sourceFileOfNode.text.charCodeAt(comment.pos + 3) !== 47 /* slash */; } } ts.getJsDocComments = getJsDocComments; ts.fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*/; + // Warning: This has the same semantics as the forEach family of functions, + // in that traversal terminates in the event that 'visitor' supplies a truthy value. function forEachReturnStatement(body, visitor) { return traverse(body); function traverse(node) { switch (node.kind) { - case 191: + case 191 /* ReturnStatement */: return visitor(node); - case 207: - case 179: - case 183: - case 184: - case 185: - case 186: - case 187: - case 188: - case 192: - case 193: - case 220: - case 221: - case 194: - case 196: - case 223: + case 207 /* CaseBlock */: + case 179 /* Block */: + case 183 /* IfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 192 /* WithStatement */: + case 193 /* SwitchStatement */: + case 220 /* CaseClause */: + case 221 /* DefaultClause */: + case 194 /* LabeledStatement */: + case 196 /* TryStatement */: + case 223 /* CatchClause */: return ts.forEachChild(node, traverse); } } } ts.forEachReturnStatement = forEachReturnStatement; + /* @internal */ function isVariableLike(node) { if (node) { switch (node.kind) { - case 152: - case 226: - case 129: - case 224: - case 132: - case 131: - case 225: - case 198: + case 152 /* BindingElement */: + case 226 /* EnumMember */: + case 129 /* Parameter */: + case 224 /* PropertyAssignment */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 225 /* ShorthandPropertyAssignment */: + case 198 /* VariableDeclaration */: return true; } } return false; } ts.isVariableLike = isVariableLike; + function isAccessor(node) { + if (node) { + switch (node.kind) { + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + return true; + } + } + return false; + } + ts.isAccessor = isAccessor; function isFunctionLike(node) { if (node) { switch (node.kind) { - case 135: - case 162: - case 200: - case 163: - case 134: - case 133: - case 136: - case 137: - case 138: - case 139: - case 140: - case 142: - case 143: - case 162: - case 163: - case 200: + case 135 /* Constructor */: + case 162 /* FunctionExpression */: + case 200 /* FunctionDeclaration */: + case 163 /* ArrowFunction */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + case 200 /* FunctionDeclaration */: return true; } } @@ -4123,11 +4537,11 @@ var ts; } ts.isFunctionLike = isFunctionLike; function isFunctionBlock(node) { - return node && node.kind === 179 && isFunctionLike(node.parent); + return node && node.kind === 179 /* Block */ && isFunctionLike(node.parent); } ts.isFunctionBlock = isFunctionBlock; function isObjectLiteralMethod(node) { - return node && node.kind === 134 && node.parent.kind === 154; + return node && node.kind === 134 /* MethodDeclaration */ && node.parent.kind === 154 /* ObjectLiteralExpression */; } ts.isObjectLiteralMethod = isObjectLiteralMethod; function getContainingFunction(node) { @@ -4146,28 +4560,51 @@ var ts; return undefined; } switch (node.kind) { - case 127: - if (node.parent.parent.kind === 201) { + case 127 /* ComputedPropertyName */: + // If the grandparent node is an object literal (as opposed to a class), + // then the computed property is not a 'this' container. + // A computed property name in a class needs to be a this container + // so that we can error on it. + if (node.parent.parent.kind === 201 /* ClassDeclaration */) { return node; } + // If this is a computed property, then the parent should not + // make it a this container. The parent might be a property + // in an object literal, like a method or accessor. But in order for + // such a parent to be a this container, the reference must be in + // the *body* of the container. node = node.parent; break; - case 163: + case 130 /* Decorator */: + // Decorators are always applied outside of the body of a class or method. + if (node.parent.kind === 129 /* Parameter */ && isClassElement(node.parent.parent)) { + // If the decorator's parent is a Parameter, we resolve the this container from + // the grandparent class declaration. + node = node.parent.parent; + } + else if (isClassElement(node.parent)) { + // If the decorator's parent is a class element, we resolve the 'this' container + // from the parent class declaration. + node = node.parent; + } + break; + case 163 /* ArrowFunction */: if (!includeArrowFunctions) { continue; } - case 200: - case 162: - case 205: - case 132: - case 131: - case 134: - case 133: - case 135: - case 136: - case 137: - case 204: - case 227: + // Fall through + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 205 /* ModuleDeclaration */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 204 /* EnumDeclaration */: + case 227 /* SourceFile */: return node; } } @@ -4179,73 +4616,100 @@ var ts; if (!node) return node; switch (node.kind) { - case 127: - if (node.parent.parent.kind === 201) { + case 127 /* ComputedPropertyName */: + // If the grandparent node is an object literal (as opposed to a class), + // then the computed property is not a 'super' container. + // A computed property name in a class needs to be a super container + // so that we can error on it. + if (node.parent.parent.kind === 201 /* ClassDeclaration */) { return node; } + // If this is a computed property, then the parent should not + // make it a super container. The parent might be a property + // in an object literal, like a method or accessor. But in order for + // such a parent to be a super container, the reference must be in + // the *body* of the container. node = node.parent; break; - case 200: - case 162: - case 163: + case 130 /* Decorator */: + // Decorators are always applied outside of the body of a class or method. + if (node.parent.kind === 129 /* Parameter */ && isClassElement(node.parent.parent)) { + // If the decorator's parent is a Parameter, we resolve the this container from + // the grandparent class declaration. + node = node.parent.parent; + } + else if (isClassElement(node.parent)) { + // If the decorator's parent is a class element, we resolve the 'this' container + // from the parent class declaration. + node = node.parent; + } + break; + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: if (!includeFunctions) { continue; } - case 132: - case 131: - case 134: - case 133: - case 135: - case 136: - case 137: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: return node; } } } ts.getSuperContainer = getSuperContainer; function getInvokedExpression(node) { - if (node.kind === 159) { + if (node.kind === 159 /* TaggedTemplateExpression */) { return node.tag; } + // Will either be a CallExpression or NewExpression. return node.expression; } ts.getInvokedExpression = getInvokedExpression; function nodeCanBeDecorated(node) { switch (node.kind) { - case 201: + case 201 /* ClassDeclaration */: + // classes are valid targets return true; - case 132: - return node.parent.kind === 201; - case 129: - return node.parent.body && node.parent.parent.kind === 201; - case 136: - case 137: - case 134: - return node.body && node.parent.kind === 201; + case 132 /* PropertyDeclaration */: + // property declarations are valid if their parent is a class declaration. + return node.parent.kind === 201 /* ClassDeclaration */; + case 129 /* Parameter */: + // if the parameter's parent has a body and its grandparent is a class declaration, this is a valid target; + return node.parent.body && node.parent.parent.kind === 201 /* ClassDeclaration */; + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 134 /* MethodDeclaration */: + // if this method has a body and its parent is a class declaration, this is a valid target. + return node.body && node.parent.kind === 201 /* ClassDeclaration */; } return false; } ts.nodeCanBeDecorated = nodeCanBeDecorated; function nodeIsDecorated(node) { switch (node.kind) { - case 201: + case 201 /* ClassDeclaration */: if (node.decorators) { return true; } return false; - case 132: - case 129: + case 132 /* PropertyDeclaration */: + case 129 /* Parameter */: if (node.decorators) { return true; } return false; - case 136: + case 136 /* GetAccessor */: if (node.body && node.decorators) { return true; } return false; - case 134: - case 137: + case 134 /* MethodDeclaration */: + case 137 /* SetAccessor */: if (node.body && node.decorators) { return true; } @@ -4256,10 +4720,10 @@ var ts; ts.nodeIsDecorated = nodeIsDecorated; function childIsDecorated(node) { switch (node.kind) { - case 201: + case 201 /* ClassDeclaration */: return ts.forEach(node.members, nodeOrChildIsDecorated); - case 134: - case 137: + case 134 /* MethodDeclaration */: + case 137 /* SetAccessor */: return ts.forEach(node.parameters, nodeIsDecorated); } return false; @@ -4271,84 +4735,87 @@ var ts; ts.nodeOrChildIsDecorated = nodeOrChildIsDecorated; function isExpression(node) { switch (node.kind) { - case 93: - case 91: - case 89: - case 95: - case 80: - case 9: - case 153: - case 154: - case 155: - case 156: - case 157: - case 158: - case 159: - case 160: - case 161: - case 162: - case 174: - case 163: - case 166: - case 164: - case 165: - case 167: - case 168: - case 169: - case 170: - case 173: - case 171: - case 10: - case 175: + case 93 /* ThisKeyword */: + case 91 /* SuperKeyword */: + case 89 /* NullKeyword */: + case 95 /* TrueKeyword */: + case 80 /* FalseKeyword */: + case 9 /* RegularExpressionLiteral */: + case 153 /* ArrayLiteralExpression */: + case 154 /* ObjectLiteralExpression */: + case 155 /* PropertyAccessExpression */: + case 156 /* ElementAccessExpression */: + case 157 /* CallExpression */: + case 158 /* NewExpression */: + case 159 /* TaggedTemplateExpression */: + case 160 /* TypeAssertionExpression */: + case 161 /* ParenthesizedExpression */: + case 162 /* FunctionExpression */: + case 174 /* ClassExpression */: + case 163 /* ArrowFunction */: + case 166 /* VoidExpression */: + case 164 /* DeleteExpression */: + case 165 /* TypeOfExpression */: + case 167 /* PrefixUnaryExpression */: + case 168 /* PostfixUnaryExpression */: + case 169 /* BinaryExpression */: + case 170 /* ConditionalExpression */: + case 173 /* SpreadElementExpression */: + case 171 /* TemplateExpression */: + case 10 /* NoSubstitutionTemplateLiteral */: + case 175 /* OmittedExpression */: return true; - case 126: - while (node.parent.kind === 126) { + case 126 /* QualifiedName */: + while (node.parent.kind === 126 /* QualifiedName */) { node = node.parent; } - return node.parent.kind === 144; - case 65: - if (node.parent.kind === 144) { + return node.parent.kind === 144 /* TypeQuery */; + case 65 /* Identifier */: + if (node.parent.kind === 144 /* TypeQuery */) { return true; } - case 7: - case 8: + // fall through + case 7 /* NumericLiteral */: + case 8 /* StringLiteral */: var parent_1 = node.parent; switch (parent_1.kind) { - case 198: - case 129: - case 132: - case 131: - case 226: - case 224: - case 152: + case 198 /* VariableDeclaration */: + case 129 /* Parameter */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 226 /* EnumMember */: + case 224 /* PropertyAssignment */: + case 152 /* BindingElement */: return parent_1.initializer === node; - case 182: - case 183: - case 184: - case 185: - case 191: - case 192: - case 193: - case 220: - case 195: - case 193: + case 182 /* ExpressionStatement */: + case 183 /* IfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + case 191 /* ReturnStatement */: + case 192 /* WithStatement */: + case 193 /* SwitchStatement */: + case 220 /* CaseClause */: + case 195 /* ThrowStatement */: + case 193 /* SwitchStatement */: return parent_1.expression === node; - case 186: + case 186 /* ForStatement */: var forStatement = parent_1; - return (forStatement.initializer === node && forStatement.initializer.kind !== 199) || + return (forStatement.initializer === node && forStatement.initializer.kind !== 199 /* VariableDeclarationList */) || forStatement.condition === node || forStatement.iterator === node; - case 187: - case 188: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: var forInStatement = parent_1; - return (forInStatement.initializer === node && forInStatement.initializer.kind !== 199) || + return (forInStatement.initializer === node && forInStatement.initializer.kind !== 199 /* VariableDeclarationList */) || forInStatement.expression === node; - case 160: + case 160 /* TypeAssertionExpression */: return node === parent_1.expression; - case 176: + case 176 /* TemplateSpan */: return node === parent_1.expression; - case 127: + case 127 /* ComputedPropertyName */: return node === parent_1.expression; + case 130 /* Decorator */: + return true; default: if (isExpression(parent_1)) { return true; @@ -4360,12 +4827,12 @@ var ts; ts.isExpression = isExpression; function isInstantiatedModule(node, preserveConstEnums) { var moduleState = ts.getModuleInstanceState(node); - return moduleState === 1 || - (preserveConstEnums && moduleState === 2); + return moduleState === 1 /* Instantiated */ || + (preserveConstEnums && moduleState === 2 /* ConstEnumOnly */); } ts.isInstantiatedModule = isInstantiatedModule; function isExternalModuleImportEqualsDeclaration(node) { - return node.kind === 208 && node.moduleReference.kind === 219; + return node.kind === 208 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 219 /* ExternalModuleReference */; } ts.isExternalModuleImportEqualsDeclaration = isExternalModuleImportEqualsDeclaration; function getExternalModuleImportEqualsDeclarationExpression(node) { @@ -4374,40 +4841,40 @@ var ts; } ts.getExternalModuleImportEqualsDeclarationExpression = getExternalModuleImportEqualsDeclarationExpression; function isInternalModuleImportEqualsDeclaration(node) { - return node.kind === 208 && node.moduleReference.kind !== 219; + return node.kind === 208 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 219 /* ExternalModuleReference */; } ts.isInternalModuleImportEqualsDeclaration = isInternalModuleImportEqualsDeclaration; function getExternalModuleName(node) { - if (node.kind === 209) { + if (node.kind === 209 /* ImportDeclaration */) { return node.moduleSpecifier; } - if (node.kind === 208) { + if (node.kind === 208 /* ImportEqualsDeclaration */) { var reference = node.moduleReference; - if (reference.kind === 219) { + if (reference.kind === 219 /* ExternalModuleReference */) { return reference.expression; } } - if (node.kind === 215) { + if (node.kind === 215 /* ExportDeclaration */) { return node.moduleSpecifier; } } ts.getExternalModuleName = getExternalModuleName; function hasDotDotDotToken(node) { - return node && node.kind === 129 && node.dotDotDotToken !== undefined; + return node && node.kind === 129 /* Parameter */ && node.dotDotDotToken !== undefined; } ts.hasDotDotDotToken = hasDotDotDotToken; function hasQuestionToken(node) { if (node) { switch (node.kind) { - case 129: + case 129 /* Parameter */: return node.questionToken !== undefined; - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return node.questionToken !== undefined; - case 225: - case 224: - case 132: - case 131: + case 225 /* ShorthandPropertyAssignment */: + case 224 /* PropertyAssignment */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: return node.questionToken !== undefined; } } @@ -4419,24 +4886,24 @@ var ts; } ts.hasRestParameters = hasRestParameters; function isLiteralKind(kind) { - return 7 <= kind && kind <= 10; + return 7 /* FirstLiteralToken */ <= kind && kind <= 10 /* LastLiteralToken */; } ts.isLiteralKind = isLiteralKind; function isTextualLiteralKind(kind) { - return kind === 8 || kind === 10; + return kind === 8 /* StringLiteral */ || kind === 10 /* NoSubstitutionTemplateLiteral */; } ts.isTextualLiteralKind = isTextualLiteralKind; function isTemplateLiteralKind(kind) { - return 10 <= kind && kind <= 13; + return 10 /* FirstTemplateToken */ <= kind && kind <= 13 /* LastTemplateToken */; } ts.isTemplateLiteralKind = isTemplateLiteralKind; function isBindingPattern(node) { - return !!node && (node.kind === 151 || node.kind === 150); + return !!node && (node.kind === 151 /* ArrayBindingPattern */ || node.kind === 150 /* ObjectBindingPattern */); } ts.isBindingPattern = isBindingPattern; function isInAmbientContext(node) { while (node) { - if (node.flags & (2 | 2048)) { + if (node.flags & (2 /* Ambient */ | 2048 /* DeclarationFile */)) { return true; } node = node.parent; @@ -4446,33 +4913,33 @@ var ts; ts.isInAmbientContext = isInAmbientContext; function isDeclaration(node) { switch (node.kind) { - case 163: - case 152: - case 201: - case 135: - case 204: - case 226: - case 217: - case 200: - case 162: - case 136: - case 210: - case 208: - case 213: - case 202: - case 134: - case 133: - case 205: - case 211: - case 129: - case 224: - case 132: - case 131: - case 137: - case 225: - case 203: - case 128: - case 198: + case 163 /* ArrowFunction */: + case 152 /* BindingElement */: + case 201 /* ClassDeclaration */: + case 135 /* Constructor */: + case 204 /* EnumDeclaration */: + case 226 /* EnumMember */: + case 217 /* ExportSpecifier */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 136 /* GetAccessor */: + case 210 /* ImportClause */: + case 208 /* ImportEqualsDeclaration */: + case 213 /* ImportSpecifier */: + case 202 /* InterfaceDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 205 /* ModuleDeclaration */: + case 211 /* NamespaceImport */: + case 129 /* Parameter */: + case 224 /* PropertyAssignment */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 137 /* SetAccessor */: + case 225 /* ShorthandPropertyAssignment */: + case 203 /* TypeAliasDeclaration */: + case 128 /* TypeParameter */: + case 198 /* VariableDeclaration */: return true; } return false; @@ -4480,25 +4947,25 @@ var ts; ts.isDeclaration = isDeclaration; function isStatement(n) { switch (n.kind) { - case 190: - case 189: - case 197: - case 184: - case 182: - case 181: - case 187: - case 188: - case 186: - case 183: - case 194: - case 191: - case 193: - case 94: - case 196: - case 180: - case 185: - case 192: - case 214: + case 190 /* BreakStatement */: + case 189 /* ContinueStatement */: + case 197 /* DebuggerStatement */: + case 184 /* DoStatement */: + case 182 /* ExpressionStatement */: + case 181 /* EmptyStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 186 /* ForStatement */: + case 183 /* IfStatement */: + case 194 /* LabeledStatement */: + case 191 /* ReturnStatement */: + case 193 /* SwitchStatement */: + case 94 /* ThrowKeyword */: + case 196 /* TryStatement */: + case 180 /* VariableStatement */: + case 185 /* WhileStatement */: + case 192 /* WithStatement */: + case 214 /* ExportAssignment */: return true; default: return false; @@ -4507,24 +4974,26 @@ var ts; ts.isStatement = isStatement; function isClassElement(n) { switch (n.kind) { - case 135: - case 132: - case 134: - case 136: - case 137: - case 140: + case 135 /* Constructor */: + case 132 /* PropertyDeclaration */: + case 134 /* MethodDeclaration */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 133 /* MethodSignature */: + case 140 /* IndexSignature */: return true; default: return false; } } ts.isClassElement = isClassElement; + // True if the given identifier, string literal, or number literal is the name of a declaration node function isDeclarationName(name) { - if (name.kind !== 65 && name.kind !== 8 && name.kind !== 7) { + if (name.kind !== 65 /* Identifier */ && name.kind !== 8 /* StringLiteral */ && name.kind !== 7 /* NumericLiteral */) { return false; } var parent = name.parent; - if (parent.kind === 213 || parent.kind === 217) { + if (parent.kind === 213 /* ImportSpecifier */ || parent.kind === 217 /* ExportSpecifier */) { if (parent.propertyName) { return true; } @@ -4535,27 +5004,35 @@ var ts; return false; } ts.isDeclarationName = isDeclarationName; + // An alias symbol is created by one of the following declarations: + // import = ... + // import from ... + // import * as from ... + // import { x as } from ... + // export { x as } from ... + // export = ... + // export default ... function isAliasSymbolDeclaration(node) { - return node.kind === 208 || - node.kind === 210 && !!node.name || - node.kind === 211 || - node.kind === 213 || - node.kind === 217 || - node.kind === 214 && node.expression.kind === 65; + return node.kind === 208 /* ImportEqualsDeclaration */ || + node.kind === 210 /* ImportClause */ && !!node.name || + node.kind === 211 /* NamespaceImport */ || + node.kind === 213 /* ImportSpecifier */ || + node.kind === 217 /* ExportSpecifier */ || + node.kind === 214 /* ExportAssignment */ && node.expression.kind === 65 /* Identifier */; } ts.isAliasSymbolDeclaration = isAliasSymbolDeclaration; function getClassExtendsHeritageClauseElement(node) { - var heritageClause = getHeritageClause(node.heritageClauses, 79); + var heritageClause = getHeritageClause(node.heritageClauses, 79 /* ExtendsKeyword */); return heritageClause && heritageClause.types.length > 0 ? heritageClause.types[0] : undefined; } ts.getClassExtendsHeritageClauseElement = getClassExtendsHeritageClauseElement; function getClassImplementsHeritageClauseElements(node) { - var heritageClause = getHeritageClause(node.heritageClauses, 103); + var heritageClause = getHeritageClause(node.heritageClauses, 103 /* ImplementsKeyword */); return heritageClause ? heritageClause.types : undefined; } ts.getClassImplementsHeritageClauseElements = getClassImplementsHeritageClauseElements; function getInterfaceBaseTypeNodes(node) { - var heritageClause = getHeritageClause(node.heritageClauses, 79); + var heritageClause = getHeritageClause(node.heritageClauses, 79 /* ExtendsKeyword */); return heritageClause ? heritageClause.types : undefined; } ts.getInterfaceBaseTypeNodes = getInterfaceBaseTypeNodes; @@ -4624,28 +5101,40 @@ var ts; } ts.getFileReferenceFromReferencePath = getFileReferenceFromReferencePath; function isKeyword(token) { - return 66 <= token && token <= 125; + return 66 /* FirstKeyword */ <= token && token <= 125 /* LastKeyword */; } ts.isKeyword = isKeyword; function isTrivia(token) { - return 2 <= token && token <= 6; + return 2 /* FirstTriviaToken */ <= token && token <= 6 /* LastTriviaToken */; } ts.isTrivia = isTrivia; + /** + * A declaration has a dynamic name if both of the following are true: + * 1. The declaration has a computed property name + * 2. The computed name is *not* expressed as Symbol., where name + * is a property of the Symbol constructor that denotes a built in + * Symbol. + */ function hasDynamicName(declaration) { return declaration.name && - declaration.name.kind === 127 && + declaration.name.kind === 127 /* ComputedPropertyName */ && !isWellKnownSymbolSyntactically(declaration.name.expression); } ts.hasDynamicName = hasDynamicName; + /** + * Checks if the expression is of the form: + * Symbol.name + * where Symbol is literally the word "Symbol", and name is any identifierName + */ function isWellKnownSymbolSyntactically(node) { - return node.kind === 155 && isESSymbolIdentifier(node.expression); + return node.kind === 155 /* PropertyAccessExpression */ && isESSymbolIdentifier(node.expression); } ts.isWellKnownSymbolSyntactically = isWellKnownSymbolSyntactically; function getPropertyNameForPropertyNameNode(name) { - if (name.kind === 65 || name.kind === 8 || name.kind === 7) { + if (name.kind === 65 /* Identifier */ || name.kind === 8 /* StringLiteral */ || name.kind === 7 /* NumericLiteral */) { return name.text; } - if (name.kind === 127) { + if (name.kind === 127 /* ComputedPropertyName */) { var nameExpression = name.expression; if (isWellKnownSymbolSyntactically(nameExpression)) { var rightHandSideName = nameExpression.name.text; @@ -4659,20 +5148,23 @@ var ts; return "__@" + symbolName; } ts.getPropertyNameForKnownSymbolName = getPropertyNameForKnownSymbolName; + /** + * Includes the word "Symbol" with unicode escapes + */ function isESSymbolIdentifier(node) { - return node.kind === 65 && node.text === "Symbol"; + return node.kind === 65 /* Identifier */ && node.text === "Symbol"; } ts.isESSymbolIdentifier = isESSymbolIdentifier; function isModifier(token) { switch (token) { - case 109: - case 107: - case 108: - case 110: - case 78: - case 115: - case 70: - case 73: + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: + case 110 /* StaticKeyword */: + case 78 /* ExportKeyword */: + case 115 /* DeclareKeyword */: + case 70 /* ConstKeyword */: + case 73 /* DefaultKeyword */: return true; } return false; @@ -4690,6 +5182,7 @@ var ts; return position >= span.start && position < textSpanEnd(span); } ts.textSpanContainsPosition = textSpanContainsPosition; + // Returns true if 'span' contains 'other'. function textSpanContainsTextSpan(span, other) { return other.start >= span.start && textSpanEnd(other) <= textSpanEnd(span); } @@ -4761,6 +5254,14 @@ var ts; } ts.createTextChangeRange = createTextChangeRange; ts.unchangedTextChangeRange = createTextChangeRange(createTextSpan(0, 0), 0); + /** + * Called to merge all the changes that occurred across several versions of a script snapshot + * into a single change. i.e. if a user keeps making successive edits to a script we will + * have a text change from V1 to V2, V2 to V3, ..., Vn. + * + * This function will then merge those changes into a single change range valid between V1 and + * Vn. + */ function collapseTextChangeRangesAcrossMultipleVersions(changes) { if (changes.length === 0) { return ts.unchangedTextChangeRange; @@ -4768,12 +5269,93 @@ var ts; if (changes.length === 1) { return changes[0]; } + // We change from talking about { { oldStart, oldLength }, newLength } to { oldStart, oldEnd, newEnd } + // as it makes things much easier to reason about. var change0 = changes[0]; var oldStartN = change0.span.start; var oldEndN = textSpanEnd(change0.span); var newEndN = oldStartN + change0.newLength; for (var i = 1; i < changes.length; i++) { var nextChange = changes[i]; + // Consider the following case: + // i.e. two edits. The first represents the text change range { { 10, 50 }, 30 }. i.e. The span starting + // at 10, with length 50 is reduced to length 30. The second represents the text change range { { 30, 30 }, 40 }. + // i.e. the span starting at 30 with length 30 is increased to length 40. + // + // 0 10 20 30 40 50 60 70 80 90 100 + // ------------------------------------------------------------------------------------------------------- + // | / + // | /---- + // T1 | /---- + // | /---- + // | /---- + // ------------------------------------------------------------------------------------------------------- + // | \ + // | \ + // T2 | \ + // | \ + // | \ + // ------------------------------------------------------------------------------------------------------- + // + // Merging these turns out to not be too difficult. First, determining the new start of the change is trivial + // it's just the min of the old and new starts. i.e.: + // + // 0 10 20 30 40 50 60 70 80 90 100 + // ------------------------------------------------------------*------------------------------------------ + // | / + // | /---- + // T1 | /---- + // | /---- + // | /---- + // ----------------------------------------$-------------------$------------------------------------------ + // . | \ + // . | \ + // T2 . | \ + // . | \ + // . | \ + // ----------------------------------------------------------------------*-------------------------------- + // + // (Note the dots represent the newly inferrred start. + // Determining the new and old end is also pretty simple. Basically it boils down to paying attention to the + // absolute positions at the asterixes, and the relative change between the dollar signs. Basically, we see + // which if the two $'s precedes the other, and we move that one forward until they line up. in this case that + // means: + // + // 0 10 20 30 40 50 60 70 80 90 100 + // --------------------------------------------------------------------------------*---------------------- + // | / + // | /---- + // T1 | /---- + // | /---- + // | /---- + // ------------------------------------------------------------$------------------------------------------ + // . | \ + // . | \ + // T2 . | \ + // . | \ + // . | \ + // ----------------------------------------------------------------------*-------------------------------- + // + // In other words (in this case), we're recognizing that the second edit happened after where the first edit + // ended with a delta of 20 characters (60 - 40). Thus, if we go back in time to where the first edit started + // that's the same as if we started at char 80 instead of 60. + // + // As it so happens, the same logic applies if the second edit precedes the first edit. In that case rahter + // than pusing the first edit forward to match the second, we'll push the second edit forward to match the + // first. + // + // In this case that means we have { oldStart: 10, oldEnd: 80, newEnd: 70 } or, in TextChangeRange + // semantics: { { start: 10, length: 70 }, newLength: 60 } + // + // The math then works out as follows. + // If we have { oldStart1, oldEnd1, newEnd1 } and { oldStart2, oldEnd2, newEnd2 } then we can compute the + // final result like so: + // + // { + // oldStart3: Min(oldStart1, oldStart2), + // oldEnd3 : Max(oldEnd1, oldEnd1 + (oldEnd2 - newEnd1)), + // newEnd3 : Max(newEnd2, newEnd2 + (newEnd1 - oldEnd2)) + // } var oldStart1 = oldStartN; var oldEnd1 = oldEndN; var newEnd1 = newEndN; @@ -4788,7 +5370,7 @@ var ts; } ts.collapseTextChangeRangesAcrossMultipleVersions = collapseTextChangeRangesAcrossMultipleVersions; function nodeStartsNewLexicalEnvironment(n) { - return isFunctionLike(n) || n.kind === 205 || n.kind === 227; + return isFunctionLike(n) || n.kind === 205 /* ModuleDeclaration */ || n.kind === 227 /* SourceFile */; } ts.nodeStartsNewLexicalEnvironment = nodeStartsNewLexicalEnvironment; function nodeIsSynthesized(node) { @@ -4803,6 +5385,7 @@ var ts; return node; } ts.createSynthesizedNode = createSynthesizedNode; + /* @internal */ function createDiagnosticCollection() { var nonFileDiagnostics = []; var fileDiagnostics = {}; @@ -4868,6 +5451,11 @@ var ts; } } ts.createDiagnosticCollection = createDiagnosticCollection; + // This consists of the first 19 unprintable ASCII characters, canonical escapes, lineSeparator, + // paragraphSeparator, and nextLine. The latter three are just desirable to suppress new lines in + // the language service. These characters should be escaped when printing, and if any characters are added, + // the map below must be updated. Note that this regexp *does not* include the 'delete' character. + // There is no reason for this other than that JSON.stringify does not handle it either. var escapedCharsRegExp = /[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; var escapedCharsMap = { "\0": "\\0", @@ -4881,8 +5469,13 @@ var ts; "\"": "\\\"", "\u2028": "\\u2028", "\u2029": "\\u2029", - "\u0085": "\\u0085" + "\u0085": "\\u0085" // nextLine }; + /** + * Based heavily on the abstract 'Quote'/'QuoteJSONString' operation from ECMA-262 (24.3.2.2), + * but augmented for a few select characters (e.g. lineSeparator, paragraphSeparator, nextLine) + * Note that this doesn't actually wrap the input in double quotes. + */ function escapeString(s) { s = escapedCharsRegExp.test(s) ? s.replace(escapedCharsRegExp, getReplacement) : s; return s; @@ -4898,6 +5491,8 @@ var ts; } var nonAsciiCharacters = /[^\u0000-\u007F]/g; function escapeNonAsciiCharacters(s) { + // Replace non-ASCII characters with '\uNNNN' escapes if any exist. + // Otherwise just return the original string. return nonAsciiCharacters.test(s) ? s.replace(nonAsciiCharacters, function (c) { return get16BitUnicodeEscapeSequence(c.charCodeAt(0)); }) : s; @@ -5005,7 +5600,7 @@ var ts; ts.getLineOfLocalPosition = getLineOfLocalPosition; function getFirstConstructorWithBody(node) { return ts.forEach(node.members, function (member) { - if (member.kind === 135 && nodeIsPresent(member.body)) { + if (member.kind === 135 /* Constructor */ && nodeIsPresent(member.body)) { return member; } }); @@ -5028,10 +5623,10 @@ var ts; var setAccessor; if (hasDynamicName(accessor)) { firstAccessor = accessor; - if (accessor.kind === 136) { + if (accessor.kind === 136 /* GetAccessor */) { getAccessor = accessor; } - else if (accessor.kind === 137) { + else if (accessor.kind === 137 /* SetAccessor */) { setAccessor = accessor; } else { @@ -5040,8 +5635,8 @@ var ts; } else { ts.forEach(declarations, function (member) { - if ((member.kind === 136 || member.kind === 137) - && (member.flags & 128) === (accessor.flags & 128)) { + if ((member.kind === 136 /* GetAccessor */ || member.kind === 137 /* SetAccessor */) + && (member.flags & 128 /* Static */) === (accessor.flags & 128 /* Static */)) { var memberName = getPropertyNameForPropertyNameNode(member.name); var accessorName = getPropertyNameForPropertyNameNode(accessor.name); if (memberName === accessorName) { @@ -5051,10 +5646,10 @@ var ts; else if (!secondAccessor) { secondAccessor = member; } - if (member.kind === 136 && !getAccessor) { + if (member.kind === 136 /* GetAccessor */ && !getAccessor) { getAccessor = member; } - if (member.kind === 137 && !setAccessor) { + if (member.kind === 137 /* SetAccessor */ && !setAccessor) { setAccessor = member; } } @@ -5070,6 +5665,7 @@ var ts; } ts.getAllAccessorDeclarations = getAllAccessorDeclarations; function emitNewLineBeforeLeadingComments(currentSourceFile, writer, node, leadingComments) { + // If the leading comments start on different line than the start of node, write new line if (leadingComments && leadingComments.length && node.pos !== leadingComments[0].pos && getLineOfLocalPosition(currentSourceFile, node.pos) !== getLineOfLocalPosition(currentSourceFile, leadingComments[0].pos)) { writer.writeLine(); @@ -5091,13 +5687,14 @@ var ts; writer.write(" "); } else { + // Emit leading space to separate comment during next comment emit emitLeadingSpace = true; } }); } ts.emitComments = emitComments; function writeCommentRange(currentSourceFile, writer, comment, newLine) { - if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 42) { + if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 42 /* asterisk */) { var firstCommentLineAndCharacter = ts.getLineAndCharacterOfPosition(currentSourceFile, comment.pos); var lineCount = ts.getLineStarts(currentSourceFile).length; var firstCommentLineIndent; @@ -5106,51 +5703,76 @@ var ts; ? currentSourceFile.text.length + 1 : getStartPositionOfLine(currentLine + 1, currentSourceFile); if (pos !== comment.pos) { + // If we are not emitting first line, we need to write the spaces to adjust the alignment if (firstCommentLineIndent === undefined) { firstCommentLineIndent = calculateIndent(getStartPositionOfLine(firstCommentLineAndCharacter.line, currentSourceFile), comment.pos); } + // These are number of spaces writer is going to write at current indent var currentWriterIndentSpacing = writer.getIndent() * getIndentSize(); + // Number of spaces we want to be writing + // eg: Assume writer indent + // module m { + // /* starts at character 9 this is line 1 + // * starts at character pos 4 line --1 = 8 - 8 + 3 + // More left indented comment */ --2 = 8 - 8 + 2 + // class c { } + // } + // module m { + // /* this is line 1 -- Assume current writer indent 8 + // * line --3 = 8 - 4 + 5 + // More right indented comment */ --4 = 8 - 4 + 11 + // class c { } + // } var spacesToEmit = currentWriterIndentSpacing - firstCommentLineIndent + calculateIndent(pos, nextLineStart); if (spacesToEmit > 0) { var numberOfSingleSpacesToEmit = spacesToEmit % getIndentSize(); var indentSizeSpaceString = getIndentString((spacesToEmit - numberOfSingleSpacesToEmit) / getIndentSize()); + // Write indent size string ( in eg 1: = "", 2: "" , 3: string with 8 spaces 4: string with 12 spaces writer.rawWrite(indentSizeSpaceString); + // Emit the single spaces (in eg: 1: 3 spaces, 2: 2 spaces, 3: 1 space, 4: 3 spaces) while (numberOfSingleSpacesToEmit) { writer.rawWrite(" "); numberOfSingleSpacesToEmit--; } } else { + // No spaces to emit write empty string writer.rawWrite(""); } } + // Write the comment line text writeTrimmedCurrentLine(pos, nextLineStart); pos = nextLineStart; } } else { + // Single line comment of style //.... writer.write(currentSourceFile.text.substring(comment.pos, comment.end)); } function writeTrimmedCurrentLine(pos, nextLineStart) { var end = Math.min(comment.end, nextLineStart - 1); var currentLineText = currentSourceFile.text.substring(pos, end).replace(/^\s+|\s+$/g, ''); if (currentLineText) { + // trimmed forward and ending spaces text writer.write(currentLineText); if (end !== comment.end) { writer.writeLine(); } } else { + // Empty string - make sure we write empty line writer.writeLiteral(newLine); } } function calculateIndent(pos, end) { var currentLineIndent = 0; for (; pos < end && ts.isWhiteSpace(currentSourceFile.text.charCodeAt(pos)); pos++) { - if (currentSourceFile.text.charCodeAt(pos) === 9) { + if (currentSourceFile.text.charCodeAt(pos) === 9 /* tab */) { + // Tabs = TabSize = indent size and go to next tabStop currentLineIndent += getIndentSize() - (currentLineIndent % getIndentSize()); } else { + // Single space currentLineIndent++; } } @@ -5158,15 +5780,17 @@ var ts; } } ts.writeCommentRange = writeCommentRange; + // Returns false if this heritage clause element's expression contains something unsupported + // (i.e. not a name or dotted name). function isSupportedHeritageClauseElement(node) { return isSupportedHeritageClauseElementExpression(node.expression); } ts.isSupportedHeritageClauseElement = isSupportedHeritageClauseElement; function isSupportedHeritageClauseElementExpression(node) { - if (node.kind === 65) { + if (node.kind === 65 /* Identifier */) { return true; } - else if (node.kind === 155) { + else if (node.kind === 155 /* PropertyAccessExpression */) { return isSupportedHeritageClauseElementExpression(node.expression); } else { @@ -5174,12 +5798,12 @@ var ts; } } function isRightSideOfQualifiedNameOrPropertyAccess(node) { - return (node.parent.kind === 126 && node.parent.right === node) || - (node.parent.kind === 155 && node.parent.name === node); + return (node.parent.kind === 126 /* QualifiedName */ && node.parent.right === node) || + (node.parent.kind === 155 /* PropertyAccessExpression */ && node.parent.name === node); } ts.isRightSideOfQualifiedNameOrPropertyAccess = isRightSideOfQualifiedNameOrPropertyAccess; function getLocalSymbolForExportDefault(symbol) { - return symbol && symbol.valueDeclaration && (symbol.valueDeclaration.flags & 256) ? symbol.valueDeclaration.localSymbol : undefined; + return symbol && symbol.valueDeclaration && (symbol.valueDeclaration.flags & 256 /* Default */) ? symbol.valueDeclaration.localSymbol : undefined; } ts.getLocalSymbolForExportDefault = getLocalSymbolForExportDefault; })(ts || (ts = {})); @@ -5187,8 +5811,8 @@ var ts; /// var ts; (function (ts) { - var nodeConstructors = new Array(229); - ts.parseTime = 0; + var nodeConstructors = new Array(229 /* Count */); + /* @internal */ ts.parseTime = 0; function getNodeConstructor(kind) { return nodeConstructors[kind] || (nodeConstructors[kind] = ts.objectAllocator.getNodeConstructor(kind)); } @@ -5218,27 +5842,34 @@ var ts; } } } + // Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes + // stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise, + // embedded arrays are flattened and the 'cbNode' callback is invoked for each element. If a callback returns + // a truthy value, iteration stops and that value is returned. Otherwise, undefined is returned. function forEachChild(node, cbNode, cbNodeArray) { if (!node) { return; } + // The visitXXX functions could be written as local functions that close over the cbNode and cbNodeArray + // callback parameters, but that causes a closure allocation for each invocation with noticeable effects + // on performance. var visitNodes = cbNodeArray ? visitNodeArray : visitEachNode; var cbNodes = cbNodeArray || cbNode; switch (node.kind) { - case 126: + case 126 /* QualifiedName */: return visitNode(cbNode, node.left) || visitNode(cbNode, node.right); - case 128: + case 128 /* TypeParameter */: return visitNode(cbNode, node.name) || visitNode(cbNode, node.constraint) || visitNode(cbNode, node.expression); - case 129: - case 132: - case 131: - case 224: - case 225: - case 198: - case 152: + case 129 /* Parameter */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 224 /* PropertyAssignment */: + case 225 /* ShorthandPropertyAssignment */: + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.propertyName) || @@ -5247,24 +5878,24 @@ var ts; visitNode(cbNode, node.questionToken) || visitNode(cbNode, node.type) || visitNode(cbNode, node.initializer); - case 142: - case 143: - case 138: - case 139: - case 140: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNodes(cbNodes, node.typeParameters) || visitNodes(cbNodes, node.parameters) || visitNode(cbNode, node.type); - case 134: - case 133: - case 135: - case 136: - case 137: - case 162: - case 200: - case 163: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 162 /* FunctionExpression */: + case 200 /* FunctionDeclaration */: + case 163 /* ArrowFunction */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.asteriskToken) || @@ -5275,221 +5906,220 @@ var ts; visitNode(cbNode, node.type) || visitNode(cbNode, node.equalsGreaterThanToken) || visitNode(cbNode, node.body); - case 141: + case 141 /* TypeReference */: return visitNode(cbNode, node.typeName) || visitNodes(cbNodes, node.typeArguments); - case 144: + case 144 /* TypeQuery */: return visitNode(cbNode, node.exprName); - case 145: + case 145 /* TypeLiteral */: return visitNodes(cbNodes, node.members); - case 146: + case 146 /* ArrayType */: return visitNode(cbNode, node.elementType); - case 147: + case 147 /* TupleType */: return visitNodes(cbNodes, node.elementTypes); - case 148: + case 148 /* UnionType */: return visitNodes(cbNodes, node.types); - case 149: + case 149 /* ParenthesizedType */: return visitNode(cbNode, node.type); - case 150: - case 151: + case 150 /* ObjectBindingPattern */: + case 151 /* ArrayBindingPattern */: return visitNodes(cbNodes, node.elements); - case 153: + case 153 /* ArrayLiteralExpression */: return visitNodes(cbNodes, node.elements); - case 154: + case 154 /* ObjectLiteralExpression */: return visitNodes(cbNodes, node.properties); - case 155: + case 155 /* PropertyAccessExpression */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.dotToken) || visitNode(cbNode, node.name); - case 156: + case 156 /* ElementAccessExpression */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.argumentExpression); - case 157: - case 158: + case 157 /* CallExpression */: + case 158 /* NewExpression */: return visitNode(cbNode, node.expression) || visitNodes(cbNodes, node.typeArguments) || visitNodes(cbNodes, node.arguments); - case 159: + case 159 /* TaggedTemplateExpression */: return visitNode(cbNode, node.tag) || visitNode(cbNode, node.template); - case 160: + case 160 /* TypeAssertionExpression */: return visitNode(cbNode, node.type) || visitNode(cbNode, node.expression); - case 161: + case 161 /* ParenthesizedExpression */: return visitNode(cbNode, node.expression); - case 164: + case 164 /* DeleteExpression */: return visitNode(cbNode, node.expression); - case 165: + case 165 /* TypeOfExpression */: return visitNode(cbNode, node.expression); - case 166: + case 166 /* VoidExpression */: return visitNode(cbNode, node.expression); - case 167: + case 167 /* PrefixUnaryExpression */: return visitNode(cbNode, node.operand); - case 172: + case 172 /* YieldExpression */: return visitNode(cbNode, node.asteriskToken) || visitNode(cbNode, node.expression); - case 168: + case 168 /* PostfixUnaryExpression */: return visitNode(cbNode, node.operand); - case 169: + case 169 /* BinaryExpression */: return visitNode(cbNode, node.left) || visitNode(cbNode, node.operatorToken) || visitNode(cbNode, node.right); - case 170: + case 170 /* ConditionalExpression */: return visitNode(cbNode, node.condition) || visitNode(cbNode, node.questionToken) || visitNode(cbNode, node.whenTrue) || visitNode(cbNode, node.colonToken) || visitNode(cbNode, node.whenFalse); - case 173: + case 173 /* SpreadElementExpression */: return visitNode(cbNode, node.expression); - case 179: - case 206: + case 179 /* Block */: + case 206 /* ModuleBlock */: return visitNodes(cbNodes, node.statements); - case 227: + case 227 /* SourceFile */: return visitNodes(cbNodes, node.statements) || visitNode(cbNode, node.endOfFileToken); - case 180: + case 180 /* VariableStatement */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.declarationList); - case 199: + case 199 /* VariableDeclarationList */: return visitNodes(cbNodes, node.declarations); - case 182: + case 182 /* ExpressionStatement */: return visitNode(cbNode, node.expression); - case 183: + case 183 /* IfStatement */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.thenStatement) || visitNode(cbNode, node.elseStatement); - case 184: + case 184 /* DoStatement */: return visitNode(cbNode, node.statement) || visitNode(cbNode, node.expression); - case 185: + case 185 /* WhileStatement */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.statement); - case 186: + case 186 /* ForStatement */: return visitNode(cbNode, node.initializer) || visitNode(cbNode, node.condition) || visitNode(cbNode, node.iterator) || visitNode(cbNode, node.statement); - case 187: + case 187 /* ForInStatement */: return visitNode(cbNode, node.initializer) || visitNode(cbNode, node.expression) || visitNode(cbNode, node.statement); - case 188: + case 188 /* ForOfStatement */: return visitNode(cbNode, node.initializer) || visitNode(cbNode, node.expression) || visitNode(cbNode, node.statement); - case 189: - case 190: + case 189 /* ContinueStatement */: + case 190 /* BreakStatement */: return visitNode(cbNode, node.label); - case 191: + case 191 /* ReturnStatement */: return visitNode(cbNode, node.expression); - case 192: + case 192 /* WithStatement */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.statement); - case 193: + case 193 /* SwitchStatement */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.caseBlock); - case 207: + case 207 /* CaseBlock */: return visitNodes(cbNodes, node.clauses); - case 220: + case 220 /* CaseClause */: return visitNode(cbNode, node.expression) || visitNodes(cbNodes, node.statements); - case 221: + case 221 /* DefaultClause */: return visitNodes(cbNodes, node.statements); - case 194: + case 194 /* LabeledStatement */: return visitNode(cbNode, node.label) || visitNode(cbNode, node.statement); - case 195: + case 195 /* ThrowStatement */: return visitNode(cbNode, node.expression); - case 196: + case 196 /* TryStatement */: return visitNode(cbNode, node.tryBlock) || visitNode(cbNode, node.catchClause) || visitNode(cbNode, node.finallyBlock); - case 223: + case 223 /* CatchClause */: return visitNode(cbNode, node.variableDeclaration) || visitNode(cbNode, node.block); - case 130: + case 130 /* Decorator */: return visitNode(cbNode, node.expression); - case 201: - case 174: + case 201 /* ClassDeclaration */: + case 174 /* ClassExpression */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNodes(cbNodes, node.typeParameters) || visitNodes(cbNodes, node.heritageClauses) || visitNodes(cbNodes, node.members); - case 202: + case 202 /* InterfaceDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNodes(cbNodes, node.typeParameters) || visitNodes(cbNodes, node.heritageClauses) || visitNodes(cbNodes, node.members); - case 203: + case 203 /* TypeAliasDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNode(cbNode, node.type); - case 204: + case 204 /* EnumDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNodes(cbNodes, node.members); - case 226: + case 226 /* EnumMember */: return visitNode(cbNode, node.name) || visitNode(cbNode, node.initializer); - case 205: + case 205 /* ModuleDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNode(cbNode, node.body); - case 208: + case 208 /* ImportEqualsDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNode(cbNode, node.moduleReference); - case 209: + case 209 /* ImportDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.importClause) || visitNode(cbNode, node.moduleSpecifier); - case 210: + case 210 /* ImportClause */: return visitNode(cbNode, node.name) || visitNode(cbNode, node.namedBindings); - case 211: + case 211 /* NamespaceImport */: return visitNode(cbNode, node.name); - case 212: - case 216: + case 212 /* NamedImports */: + case 216 /* NamedExports */: return visitNodes(cbNodes, node.elements); - case 215: + case 215 /* ExportDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.exportClause) || visitNode(cbNode, node.moduleSpecifier); - case 213: - case 217: + case 213 /* ImportSpecifier */: + case 217 /* ExportSpecifier */: return visitNode(cbNode, node.propertyName) || visitNode(cbNode, node.name); - case 214: + case 214 /* ExportAssignment */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || - visitNode(cbNode, node.expression) || - visitNode(cbNode, node.type); - case 171: + visitNode(cbNode, node.expression); + case 171 /* TemplateExpression */: return visitNode(cbNode, node.head) || visitNodes(cbNodes, node.templateSpans); - case 176: + case 176 /* TemplateSpan */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.literal); - case 127: + case 127 /* ComputedPropertyName */: return visitNode(cbNode, node.expression); - case 222: + case 222 /* HeritageClause */: return visitNodes(cbNodes, node.types); - case 177: + case 177 /* HeritageClauseElement */: return visitNode(cbNode, node.expression) || visitNodes(cbNodes, node.typeArguments); - case 219: + case 219 /* ExternalModuleReference */: return visitNode(cbNode, node.expression); - case 218: + case 218 /* MissingDeclaration */: return visitNodes(cbNodes, node.decorators); } } @@ -5517,7 +6147,7 @@ var ts; ParsingContext[ParsingContext["TupleElementTypes"] = 18] = "TupleElementTypes"; ParsingContext[ParsingContext["HeritageClauses"] = 19] = "HeritageClauses"; ParsingContext[ParsingContext["ImportOrExportSpecifiers"] = 20] = "ImportOrExportSpecifiers"; - ParsingContext[ParsingContext["Count"] = 21] = "Count"; + ParsingContext[ParsingContext["Count"] = 21] = "Count"; // Number of parsing contexts })(ParsingContext || (ParsingContext = {})); var Tristate; (function (Tristate) { @@ -5527,40 +6157,40 @@ var ts; })(Tristate || (Tristate = {})); function parsingContextErrors(context) { switch (context) { - case 0: return ts.Diagnostics.Declaration_or_statement_expected; - case 1: return ts.Diagnostics.Declaration_or_statement_expected; - case 2: return ts.Diagnostics.Statement_expected; - case 3: return ts.Diagnostics.case_or_default_expected; - case 4: return ts.Diagnostics.Statement_expected; - case 5: return ts.Diagnostics.Property_or_signature_expected; - case 6: return ts.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected; - case 7: return ts.Diagnostics.Enum_member_expected; - case 8: return ts.Diagnostics.Expression_expected; - case 9: return ts.Diagnostics.Variable_declaration_expected; - case 10: return ts.Diagnostics.Property_destructuring_pattern_expected; - case 11: return ts.Diagnostics.Array_element_destructuring_pattern_expected; - case 12: return ts.Diagnostics.Argument_expression_expected; - case 13: return ts.Diagnostics.Property_assignment_expected; - case 14: return ts.Diagnostics.Expression_or_comma_expected; - case 15: return ts.Diagnostics.Parameter_declaration_expected; - case 16: return ts.Diagnostics.Type_parameter_declaration_expected; - case 17: return ts.Diagnostics.Type_argument_expected; - case 18: return ts.Diagnostics.Type_expected; - case 19: return ts.Diagnostics.Unexpected_token_expected; - case 20: return ts.Diagnostics.Identifier_expected; + case 0 /* SourceElements */: return ts.Diagnostics.Declaration_or_statement_expected; + case 1 /* ModuleElements */: return ts.Diagnostics.Declaration_or_statement_expected; + case 2 /* BlockStatements */: return ts.Diagnostics.Statement_expected; + case 3 /* SwitchClauses */: return ts.Diagnostics.case_or_default_expected; + case 4 /* SwitchClauseStatements */: return ts.Diagnostics.Statement_expected; + case 5 /* TypeMembers */: return ts.Diagnostics.Property_or_signature_expected; + case 6 /* ClassMembers */: return ts.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected; + case 7 /* EnumMembers */: return ts.Diagnostics.Enum_member_expected; + case 8 /* HeritageClauseElement */: return ts.Diagnostics.Expression_expected; + case 9 /* VariableDeclarations */: return ts.Diagnostics.Variable_declaration_expected; + case 10 /* ObjectBindingElements */: return ts.Diagnostics.Property_destructuring_pattern_expected; + case 11 /* ArrayBindingElements */: return ts.Diagnostics.Array_element_destructuring_pattern_expected; + case 12 /* ArgumentExpressions */: return ts.Diagnostics.Argument_expression_expected; + case 13 /* ObjectLiteralMembers */: return ts.Diagnostics.Property_assignment_expected; + case 14 /* ArrayLiteralMembers */: return ts.Diagnostics.Expression_or_comma_expected; + case 15 /* Parameters */: return ts.Diagnostics.Parameter_declaration_expected; + case 16 /* TypeParameters */: return ts.Diagnostics.Type_parameter_declaration_expected; + case 17 /* TypeArguments */: return ts.Diagnostics.Type_argument_expected; + case 18 /* TupleElementTypes */: return ts.Diagnostics.Type_expected; + case 19 /* HeritageClauses */: return ts.Diagnostics.Unexpected_token_expected; + case 20 /* ImportOrExportSpecifiers */: return ts.Diagnostics.Identifier_expected; } } ; function modifierToFlag(token) { switch (token) { - case 110: return 128; - case 109: return 16; - case 108: return 64; - case 107: return 32; - case 78: return 1; - case 115: return 2; - case 70: return 8192; - case 73: return 256; + case 110 /* StaticKeyword */: return 128 /* Static */; + case 109 /* PublicKeyword */: return 16 /* Public */; + case 108 /* ProtectedKeyword */: return 64 /* Protected */; + case 107 /* PrivateKeyword */: return 32 /* Private */; + case 78 /* ExportKeyword */: return 1 /* Export */; + case 115 /* DeclareKeyword */: return 2 /* Ambient */; + case 70 /* ConstKeyword */: return 8192 /* Const */; + case 73 /* DefaultKeyword */: return 256 /* Default */; } return 0; } @@ -5574,6 +6204,9 @@ var ts; forEachChild(sourceFile, visitNode); return; function visitNode(n) { + // walk down setting parents that differ from the parent we think it should be. This + // allows us to quickly bail out of setting parents for subtrees during incremental + // parsing if (n.parent !== parent) { n.parent = parent; var saveParent = parent; @@ -5585,9 +6218,9 @@ var ts; } function shouldCheckNode(node) { switch (node.kind) { - case 8: - case 7: - case 65: + case 8 /* StringLiteral */: + case 7 /* NumericLiteral */: + case 65 /* Identifier */: return true; } return false; @@ -5604,6 +6237,8 @@ var ts; if (aggressiveChecks && shouldCheckNode(node)) { var text = oldText.substring(node.pos, node.end); } + // Ditch any existing LS children we may have created. This way we can avoid + // moving them forward. node._children = undefined; node.pos += delta; node.end += delta; @@ -5627,11 +6262,63 @@ var ts; ts.Debug.assert(element.end >= changeStart, "Adjusting an element that was entirely before the change range"); ts.Debug.assert(element.pos <= changeRangeOldEnd, "Adjusting an element that was entirely after the change range"); ts.Debug.assert(element.pos <= element.end); + // We have an element that intersects the change range in some way. It may have its + // start, or its end (or both) in the changed range. We want to adjust any part + // that intersects such that the final tree is in a consistent state. i.e. all + // chlidren have spans within the span of their parent, and all siblings are ordered + // properly. + // We may need to update both the 'pos' and the 'end' of the element. + // If the 'pos' is before the start of the change, then we don't need to touch it. + // If it isn't, then the 'pos' must be inside the change. How we update it will + // depend if delta is positive or negative. If delta is positive then we have + // something like: + // + // -------------------AAA----------------- + // -------------------BBBCCCCCCC----------------- + // + // In this case, we consider any node that started in the change range to still be + // starting at the same position. + // + // however, if the delta is negative, then we instead have something like this: + // + // -------------------XXXYYYYYYY----------------- + // -------------------ZZZ----------------- + // + // In this case, any element that started in the 'X' range will keep its position. + // However any element htat started after that will have their pos adjusted to be + // at the end of the new range. i.e. any node that started in the 'Y' range will + // be adjusted to have their start at the end of the 'Z' range. + // + // The element will keep its position if possible. Or Move backward to the new-end + // if it's in the 'Y' range. element.pos = Math.min(element.pos, changeRangeNewEnd); + // If the 'end' is after the change range, then we always adjust it by the delta + // amount. However, if the end is in the change range, then how we adjust it + // will depend on if delta is positive or negative. If delta is positive then we + // have something like: + // + // -------------------AAA----------------- + // -------------------BBBCCCCCCC----------------- + // + // In this case, we consider any node that ended inside the change range to keep its + // end position. + // + // however, if the delta is negative, then we instead have something like this: + // + // -------------------XXXYYYYYYY----------------- + // -------------------ZZZ----------------- + // + // In this case, any element that ended in the 'X' range will keep its position. + // However any element htat ended after that will have their pos adjusted to be + // at the end of the new range. i.e. any node that ended in the 'Y' range will + // be adjusted to have their end at the end of the 'Z' range. if (element.end >= changeRangeOldEnd) { + // Element ends after the change range. Always adjust the end pos. element.end += delta; } else { + // Element ends in the change range. The element will keep its position if + // possible. Or Move backward to the new-end if it's in the 'Y' range. element.end = Math.min(element.end, changeRangeNewEnd); } ts.Debug.assert(element.pos <= element.end); @@ -5656,30 +6343,43 @@ var ts; function visitNode(child) { ts.Debug.assert(child.pos <= child.end); if (child.pos > changeRangeOldEnd) { + // Node is entirely past the change range. We need to move both its pos and + // end, forward or backward appropriately. moveElementEntirelyPastChangeRange(child, false, delta, oldText, newText, aggressiveChecks); return; } + // Check if the element intersects the change range. If it does, then it is not + // reusable. Also, we'll need to recurse to see what constituent portions we may + // be able to use. var fullEnd = child.end; if (fullEnd >= changeStart) { child.intersectsChange = true; child._children = undefined; + // Adjust the pos or end (or both) of the intersecting element accordingly. adjustIntersectingElement(child, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta); forEachChild(child, visitNode, visitArray); checkNodePositions(child, aggressiveChecks); return; } + // Otherwise, the node is entirely before the change range. No need to do anything with it. ts.Debug.assert(fullEnd < changeStart); } function visitArray(array) { ts.Debug.assert(array.pos <= array.end); if (array.pos > changeRangeOldEnd) { + // Array is entirely after the change range. We need to move it, and move any of + // its children. moveElementEntirelyPastChangeRange(array, true, delta, oldText, newText, aggressiveChecks); return; } + // Check if the element intersects the change range. If it does, then it is not + // reusable. Also, we'll need to recurse to see what constituent portions we may + // be able to use. var fullEnd = array.end; if (fullEnd >= changeStart) { array.intersectsChange = true; array._children = undefined; + // Adjust the pos or end (or both) of the intersecting array accordingly. adjustIntersectingElement(array, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta); for (var _i = 0; _i < array.length; _i++) { var node = array[_i]; @@ -5687,12 +6387,26 @@ var ts; } return; } + // Otherwise, the array is entirely before the change range. No need to do anything with it. ts.Debug.assert(fullEnd < changeStart); } } function extendToAffectedRange(sourceFile, changeRange) { + // Consider the following code: + // void foo() { /; } + // + // If the text changes with an insertion of / just before the semicolon then we end up with: + // void foo() { //; } + // + // If we were to just use the changeRange a is, then we would not rescan the { token + // (as it does not intersect the actual original change range). Because an edit may + // change the token touching it, we actually need to look back *at least* one token so + // that the prior token sees that change. var maxLookahead = 1; var start = changeRange.span.start; + // the first iteration aligns us with the change start. subsequent iteration move us to + // the left by maxLookahead tokens. We only need to do this as long as we're not at the + // start of the tree. for (var i = 0; start > 0 && i <= maxLookahead; i++) { var nearestNode = findNearestNodeStartingBeforeOrAtPosition(sourceFile, start); ts.Debug.assert(nearestNode.pos <= start); @@ -5736,23 +6450,54 @@ var ts; } function visit(child) { if (ts.nodeIsMissing(child)) { + // Missing nodes are effectively invisible to us. We never even consider them + // When trying to find the nearest node before us. return; } + // If the child intersects this position, then this node is currently the nearest + // node that starts before the position. if (child.pos <= position) { if (child.pos >= bestResult.pos) { + // This node starts before the position, and is closer to the position than + // the previous best node we found. It is now the new best node. bestResult = child; } + // Now, the node may overlap the position, or it may end entirely before the + // position. If it overlaps with the position, then either it, or one of its + // children must be the nearest node before the position. So we can just + // recurse into this child to see if we can find something better. if (position < child.end) { + // The nearest node is either this child, or one of the children inside + // of it. We've already marked this child as the best so far. Recurse + // in case one of the children is better. forEachChild(child, visit); + // Once we look at the children of this node, then there's no need to + // continue any further. return true; } else { ts.Debug.assert(child.end <= position); + // The child ends entirely before this position. Say you have the following + // (where $ is the position) + // + // ? $ : <...> <...> + // + // We would want to find the nearest preceding node in "complex expr 2". + // To support that, we keep track of this node, and once we're done searching + // for a best node, we recurse down this node to see if we can find a good + // result in it. + // + // This approach allows us to quickly skip over nodes that are entirely + // before the position, while still allowing us to find any nodes in the + // last one that might be what we want. lastNodeEntirelyBeforePosition = child; } } else { ts.Debug.assert(child.pos > position); + // We're now at a node that is entirely past the position we're searching for. + // This node (and all following nodes) could never contribute to the result, + // so just skip them by returning 'true' here. return true; } } @@ -5761,7 +6506,7 @@ var ts; var oldText = sourceFile.text; if (textChangeRange) { ts.Debug.assert((oldText.length - textChangeRange.span.length + textChangeRange.newLength) === newText.length); - if (aggressiveChecks || ts.Debug.shouldAssert(3)) { + if (aggressiveChecks || ts.Debug.shouldAssert(3 /* VeryAggressive */)) { var oldTextPrefix = oldText.substr(0, textChangeRange.span.start); var newTextPrefix = newText.substr(0, textChangeRange.span.start); ts.Debug.assert(oldTextPrefix === newTextPrefix); @@ -5771,39 +6516,96 @@ var ts; } } } + // Produces a new SourceFile for the 'newText' provided. The 'textChangeRange' parameter + // indicates what changed between the 'text' that this SourceFile has and the 'newText'. + // The SourceFile will be created with the compiler attempting to reuse as many nodes from + // this file as possible. + // + // Note: this function mutates nodes from this SourceFile. That means any existing nodes + // from this SourceFile that are being held onto may change as a result (including + // becoming detached from any SourceFile). It is recommended that this SourceFile not + // be used once 'update' is called on it. function updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks) { - aggressiveChecks = aggressiveChecks || ts.Debug.shouldAssert(2); + aggressiveChecks = aggressiveChecks || ts.Debug.shouldAssert(2 /* Aggressive */); checkChangeRange(sourceFile, newText, textChangeRange, aggressiveChecks); if (ts.textChangeRangeIsUnchanged(textChangeRange)) { + // if the text didn't change, then we can just return our current source file as-is. return sourceFile; } if (sourceFile.statements.length === 0) { + // If we don't have any statements in the current source file, then there's no real + // way to incrementally parse. So just do a full parse instead. return parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, undefined, true); } + // Make sure we're not trying to incrementally update a source file more than once. Once + // we do an update the original source file is considered unusbale from that point onwards. + // + // This is because we do incremental parsing in-place. i.e. we take nodes from the old + // tree and give them new positions and parents. From that point on, trusting the old + // tree at all is not possible as far too much of it may violate invariants. var incrementalSourceFile = sourceFile; ts.Debug.assert(!incrementalSourceFile.hasBeenIncrementallyParsed); incrementalSourceFile.hasBeenIncrementallyParsed = true; var oldText = sourceFile.text; var syntaxCursor = createSyntaxCursor(sourceFile); + // Make the actual change larger so that we know to reparse anything whose lookahead + // might have intersected the change. var changeRange = extendToAffectedRange(sourceFile, textChangeRange); checkChangeRange(sourceFile, newText, changeRange, aggressiveChecks); + // Ensure that extending the affected range only moved the start of the change range + // earlier in the file. ts.Debug.assert(changeRange.span.start <= textChangeRange.span.start); ts.Debug.assert(ts.textSpanEnd(changeRange.span) === ts.textSpanEnd(textChangeRange.span)); ts.Debug.assert(ts.textSpanEnd(ts.textChangeRangeNewSpan(changeRange)) === ts.textSpanEnd(ts.textChangeRangeNewSpan(textChangeRange))); + // The is the amount the nodes after the edit range need to be adjusted. It can be + // positive (if the edit added characters), negative (if the edit deleted characters) + // or zero (if this was a pure overwrite with nothing added/removed). var delta = ts.textChangeRangeNewSpan(changeRange).length - changeRange.span.length; + // If we added or removed characters during the edit, then we need to go and adjust all + // the nodes after the edit. Those nodes may move forward (if we inserted chars) or they + // may move backward (if we deleted chars). + // + // Doing this helps us out in two ways. First, it means that any nodes/tokens we want + // to reuse are already at the appropriate position in the new text. That way when we + // reuse them, we don't have to figure out if they need to be adjusted. Second, it makes + // it very easy to determine if we can reuse a node. If the node's position is at where + // we are in the text, then we can reuse it. Otherwise we can't. If the node's position + // is ahead of us, then we'll need to rescan tokens. If the node's position is behind + // us, then we'll need to skip it or crumble it as appropriate + // + // We will also adjust the positions of nodes that intersect the change range as well. + // By doing this, we ensure that all the positions in the old tree are consistent, not + // just the positions of nodes entirely before/after the change range. By being + // consistent, we can then easily map from positions to nodes in the old tree easily. + // + // Also, mark any syntax elements that intersect the changed span. We know, up front, + // that we cannot reuse these elements. updateTokenPositionsAndMarkElements(incrementalSourceFile, changeRange.span.start, ts.textSpanEnd(changeRange.span), ts.textSpanEnd(ts.textChangeRangeNewSpan(changeRange)), delta, oldText, newText, aggressiveChecks); + // Now that we've set up our internal incremental state just proceed and parse the + // source file in the normal fashion. When possible the parser will retrieve and + // reuse nodes from the old tree. + // + // Note: passing in 'true' for setNodeParents is very important. When incrementally + // parsing, we will be reusing nodes from the old tree, and placing it into new + // parents. If we don't set the parents now, we'll end up with an observably + // inconsistent tree. Setting the parents on the new tree should be very fast. We + // will immediately bail out of walking any subtrees when we can see that their parents + // are already correct. var result = parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, syntaxCursor, true); return result; } ts.updateSourceFile = updateSourceFile; function isEvalOrArgumentsIdentifier(node) { - return node.kind === 65 && + return node.kind === 65 /* Identifier */ && (node.text === "eval" || node.text === "arguments"); } ts.isEvalOrArgumentsIdentifier = isEvalOrArgumentsIdentifier; + /// Should be called only on prologue directives (isPrologueDirective(node) should be true) function isUseStrictPrologueDirective(sourceFile, node) { ts.Debug.assert(ts.isPrologueDirective(node)); var nodeText = ts.getSourceTextOfNodeFromSourceFile(sourceFile, node.expression); + // Note: the node text must be exactly "use strict" or 'use strict'. It is not ok for the + // string to contain unicode escapes (as per ES5). return nodeText === '"use strict"' || nodeText === "'use strict'"; } var InvalidPosition; @@ -5815,42 +6617,68 @@ var ts; var currentArrayIndex = 0; ts.Debug.assert(currentArrayIndex < currentArray.length); var current = currentArray[currentArrayIndex]; - var lastQueriedPosition = -1; + var lastQueriedPosition = -1 /* Value */; return { currentNode: function (position) { + // Only compute the current node if the position is different than the last time + // we were asked. The parser commonly asks for the node at the same position + // twice. Once to know if can read an appropriate list element at a certain point, + // and then to actually read and consume the node. if (position !== lastQueriedPosition) { + // Much of the time the parser will need the very next node in the array that + // we just returned a node from.So just simply check for that case and move + // forward in the array instead of searching for the node again. if (current && current.end === position && currentArrayIndex < (currentArray.length - 1)) { currentArrayIndex++; current = currentArray[currentArrayIndex]; } + // If we don't have a node, or the node we have isn't in the right position, + // then try to find a viable node at the position requested. if (!current || current.pos !== position) { findHighestListElementThatStartsAtPosition(position); } } + // Cache this query so that we don't do any extra work if the parser calls back + // into us. Note: this is very common as the parser will make pairs of calls like + // 'isListElement -> parseListElement'. If we were unable to find a node when + // called with 'isListElement', we don't want to redo the work when parseListElement + // is called immediately after. lastQueriedPosition = position; + // Either we don'd have a node, or we have a node at the position being asked for. ts.Debug.assert(!current || current.pos === position); return current; } }; + // Finds the highest element in the tree we can find that starts at the provided position. + // The element must be a direct child of some node list in the tree. This way after we + // return it, we can easily return its next sibling in the list. function findHighestListElementThatStartsAtPosition(position) { + // Clear out any cached state about the last node we found. currentArray = undefined; - currentArrayIndex = -1; + currentArrayIndex = -1 /* Value */; current = undefined; + // Recurse into the source file to find the highest node at this position. forEachChild(sourceFile, visitNode, visitArray); return; function visitNode(node) { if (position >= node.pos && position < node.end) { + // Position was within this node. Keep searching deeper to find the node. forEachChild(node, visitNode, visitArray); + // don't procede any futher in the search. return true; } + // position wasn't in this node, have to keep searching. return false; } function visitArray(array) { if (position >= array.pos && position < array.end) { + // position was in this array. Search through this array to see if we find a + // viable element. for (var i = 0, n = array.length; i < n; i++) { var child = array[i]; if (child) { if (child.pos === position) { + // Found the right node. We're done. currentArray = array; currentArrayIndex = i; current = child; @@ -5858,6 +6686,8 @@ var ts; } else { if (child.pos < position && position < child.end) { + // Position in somewhere within this child. Search in it and + // stop searching in this array. forEachChild(child, visitNode, visitArray); return true; } @@ -5865,6 +6695,7 @@ var ts; } } } + // position wasn't in this array, have to keep searching. return false; } } @@ -5879,13 +6710,13 @@ var ts; ts.createSourceFile = createSourceFile; function parseSourceFile(fileName, sourceText, languageVersion, syntaxCursor, setParentNodes) { if (setParentNodes === void 0) { setParentNodes = false; } - var disallowInAndDecoratorContext = 2 | 16; + var disallowInAndDecoratorContext = 2 /* DisallowIn */ | 16 /* Decorator */; var parsingContext = 0; var identifiers = {}; var identifierCount = 0; var nodeCount = 0; var token; - var sourceFile = createNode(227, 0); + var sourceFile = createNode(227 /* SourceFile */, 0); sourceFile.pos = 0; sourceFile.end = sourceText.length; sourceFile.text = sourceText; @@ -5893,14 +6724,88 @@ var ts; sourceFile.bindDiagnostics = []; sourceFile.languageVersion = languageVersion; sourceFile.fileName = ts.normalizePath(fileName); - sourceFile.flags = ts.fileExtensionIs(sourceFile.fileName, ".d.ts") ? 2048 : 0; + sourceFile.flags = ts.fileExtensionIs(sourceFile.fileName, ".d.ts") ? 2048 /* DeclarationFile */ : 0; + // Flags that dictate what parsing context we're in. For example: + // Whether or not we are in strict parsing mode. All that changes in strict parsing mode is + // that some tokens that would be considered identifiers may be considered keywords. + // + // When adding more parser context flags, consider which is the more common case that the + // flag will be in. This should be the 'false' state for that flag. The reason for this is + // that we don't store data in our nodes unless the value is in the *non-default* state. So, + // for example, more often than code 'allows-in' (or doesn't 'disallow-in'). We opt for + // 'disallow-in' set to 'false'. Otherwise, if we had 'allowsIn' set to 'true', then almost + // all nodes would need extra state on them to store this info. + // + // Note: 'allowIn' and 'allowYield' track 1:1 with the [in] and [yield] concepts in the ES6 + // grammar specification. + // + // An important thing about these context concepts. By default they are effectively inherited + // while parsing through every grammar production. i.e. if you don't change them, then when + // you parse a sub-production, it will have the same context values as the parent production. + // This is great most of the time. After all, consider all the 'expression' grammar productions + // and how nearly all of them pass along the 'in' and 'yield' context values: + // + // EqualityExpression[In, Yield] : + // RelationalExpression[?In, ?Yield] + // EqualityExpression[?In, ?Yield] == RelationalExpression[?In, ?Yield] + // EqualityExpression[?In, ?Yield] != RelationalExpression[?In, ?Yield] + // EqualityExpression[?In, ?Yield] === RelationalExpression[?In, ?Yield] + // EqualityExpression[?In, ?Yield] !== RelationalExpression[?In, ?Yield] + // + // Where you have to be careful is then understanding what the points are in the grammar + // where the values are *not* passed along. For example: + // + // SingleNameBinding[Yield,GeneratorParameter] + // [+GeneratorParameter]BindingIdentifier[Yield] Initializer[In]opt + // [~GeneratorParameter]BindingIdentifier[?Yield]Initializer[In, ?Yield]opt + // + // Here this is saying that if the GeneratorParameter context flag is set, that we should + // explicitly set the 'yield' context flag to false before calling into the BindingIdentifier + // and we should explicitly unset the 'yield' context flag before calling into the Initializer. + // production. Conversely, if the GeneratorParameter context flag is not set, then we + // should leave the 'yield' context flag alone. + // + // Getting this all correct is tricky and requires careful reading of the grammar to + // understand when these values should be changed versus when they should be inherited. + // + // Note: it should not be necessary to save/restore these flags during speculative/lookahead + // parsing. These context flags are naturally stored and restored through normal recursive + // descent parsing and unwinding. var contextFlags = 0; + // Whether or not we've had a parse error since creating the last AST node. If we have + // encountered an error, it will be stored on the next AST node we create. Parse errors + // can be broken down into three categories: + // + // 1) An error that occurred during scanning. For example, an unterminated literal, or a + // character that was completely not understood. + // + // 2) A token was expected, but was not present. This type of error is commonly produced + // by the 'parseExpected' function. + // + // 3) A token was present that no parsing function was able to consume. This type of error + // only occurs in the 'abortParsingListOrMoveToNextToken' function when the parser + // decides to skip the token. + // + // In all of these cases, we want to mark the next node as having had an error before it. + // With this mark, we can know in incremental settings if this node can be reused, or if + // we have to reparse it. If we don't keep this information around, we may just reuse the + // node. in that event we would then not produce the same errors as we did before, causing + // significant confusion problems. + // + // Note: it is necessary that this value be saved/restored during speculative/lookahead + // parsing. During lookahead parsing, we will often create a node. That node will have + // this value attached, and then this value will be set back to 'false'. If we decide to + // rewind, we must get back to the same value we had prior to the lookahead. + // + // Note: any errors at the end of the file that do not precede a regular node, should get + // attached to the EOF token. var parseErrorBeforeNextFinishedNode = false; + // Create and prime the scanner before parsing the source elements. var scanner = ts.createScanner(languageVersion, true, sourceText, scanError); token = nextToken(); processReferenceComments(sourceFile); - sourceFile.statements = parseList(0, true, parseSourceElement); - ts.Debug.assert(token === 1); + sourceFile.statements = parseList(0 /* SourceElements */, true, parseSourceElement); + ts.Debug.assert(token === 1 /* EndOfFileToken */); sourceFile.endOfFileToken = parseTokenNode(); setExternalModuleIndicator(sourceFile); sourceFile.nodeCount = nodeCount; @@ -5920,19 +6825,19 @@ var ts; } } function setStrictModeContext(val) { - setContextFlag(val, 1); + setContextFlag(val, 1 /* StrictMode */); } function setDisallowInContext(val) { - setContextFlag(val, 2); + setContextFlag(val, 2 /* DisallowIn */); } function setYieldContext(val) { - setContextFlag(val, 4); + setContextFlag(val, 4 /* Yield */); } function setGeneratorParameterContext(val) { - setContextFlag(val, 8); + setContextFlag(val, 8 /* GeneratorParameter */); } function setDecoratorContext(val) { - setContextFlag(val, 16); + setContextFlag(val, 16 /* Decorator */); } function doOutsideOfContext(flags, func) { var currentContextFlags = contextFlags & flags; @@ -5942,19 +6847,22 @@ var ts; setContextFlag(true, currentContextFlags); return result; } + // no need to do anything special as we are not in any of the requested contexts return func(); } function allowInAnd(func) { - if (contextFlags & 2) { + if (contextFlags & 2 /* DisallowIn */) { setDisallowInContext(false); var result = func(); setDisallowInContext(true); return result; } + // no need to do anything special if 'in' is already allowed. return func(); } function disallowInAnd(func) { - if (contextFlags & 2) { + if (contextFlags & 2 /* DisallowIn */) { + // no need to do anything special if 'in' is already disallowed. return func(); } setDisallowInContext(true); @@ -5963,7 +6871,8 @@ var ts; return result; } function doInYieldContext(func) { - if (contextFlags & 4) { + if (contextFlags & 4 /* Yield */) { + // no need to do anything special if we're already in the [Yield] context. return func(); } setYieldContext(true); @@ -5972,16 +6881,18 @@ var ts; return result; } function doOutsideOfYieldContext(func) { - if (contextFlags & 4) { + if (contextFlags & 4 /* Yield */) { setYieldContext(false); var result = func(); setYieldContext(true); return result; } + // no need to do anything special if we're not in the [Yield] context. return func(); } function doInDecoratorContext(func) { - if (contextFlags & 16) { + if (contextFlags & 16 /* Decorator */) { + // no need to do anything special if we're already in the [Decorator] context. return func(); } setDecoratorContext(true); @@ -5990,19 +6901,19 @@ var ts; return result; } function inYieldContext() { - return (contextFlags & 4) !== 0; + return (contextFlags & 4 /* Yield */) !== 0; } function inStrictModeContext() { - return (contextFlags & 1) !== 0; + return (contextFlags & 1 /* StrictMode */) !== 0; } function inGeneratorParameterContext() { - return (contextFlags & 8) !== 0; + return (contextFlags & 8 /* GeneratorParameter */) !== 0; } function inDisallowInContext() { - return (contextFlags & 2) !== 0; + return (contextFlags & 2 /* DisallowIn */) !== 0; } function inDecoratorContext() { - return (contextFlags & 16) !== 0; + return (contextFlags & 16 /* Decorator */) !== 0; } function parseErrorAtCurrentToken(message, arg0) { var start = scanner.getTokenPos(); @@ -6010,10 +6921,13 @@ var ts; parseErrorAtPosition(start, length, message, arg0); } function parseErrorAtPosition(start, length, message, arg0) { + // Don't report another error if it would just be at the same position as the last error. var lastError = ts.lastOrUndefined(sourceFile.parseDiagnostics); if (!lastError || start !== lastError.start) { sourceFile.parseDiagnostics.push(ts.createFileDiagnostic(sourceFile, start, length, message, arg0)); } + // Mark that we've encountered an error. We'll set an appropriate bit on the next + // node we finish so that it can't be reused incrementally. parseErrorBeforeNextFinishedNode = true; } function scanError(message, length) { @@ -6042,14 +6956,25 @@ var ts; return token = scanner.reScanTemplateToken(); } function speculationHelper(callback, isLookAhead) { + // Keep track of the state we'll need to rollback to if lookahead fails (or if the + // caller asked us to always reset our state). var saveToken = token; var saveParseDiagnosticsLength = sourceFile.parseDiagnostics.length; var saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode; + // Note: it is not actually necessary to save/restore the context flags here. That's + // because the saving/restorating of these flags happens naturally through the recursive + // descent nature of our parser. However, we still store this here just so we can + // assert that that invariant holds. var saveContextFlags = contextFlags; + // If we're only looking ahead, then tell the scanner to only lookahead as well. + // Otherwise, if we're actually speculatively parsing, then tell the scanner to do the + // same. var result = isLookAhead ? scanner.lookAhead(callback) : scanner.tryScan(callback); ts.Debug.assert(saveContextFlags === contextFlags); + // If our callback returned something 'falsy' or we're just looking ahead, + // then unconditionally restore us to where we were. if (!result || isLookAhead) { token = saveToken; sourceFile.parseDiagnostics.length = saveParseDiagnosticsLength; @@ -6057,26 +6982,36 @@ var ts; } return result; } + // Invokes the provided callback then unconditionally restores the parser to the state it + // was in immediately prior to invoking the callback. The result of invoking the callback + // is returned from this function. function lookAhead(callback) { return speculationHelper(callback, true); } + // Invokes the provided callback. If the callback returns something falsy, then it restores + // the parser to the state it was in immediately prior to invoking the callback. If the + // callback returns something truthy, then the parser state is not rolled back. The result + // of invoking the callback is returned from this function. function tryParse(callback) { return speculationHelper(callback, false); } function isIdentifier() { - if (token === 65) { + if (token === 65 /* Identifier */) { return true; } - if (token === 111 && inYieldContext()) { + // If we have a 'yield' keyword, and we're in the [yield] context, then 'yield' is + // considered a keyword and is not an identifier. + if (token === 111 /* YieldKeyword */ && inYieldContext()) { return false; } - return inStrictModeContext() ? token > 111 : token > 101; + return inStrictModeContext() ? token > 111 /* LastFutureReservedWord */ : token > 101 /* LastReservedWord */; } function parseExpected(kind, diagnosticMessage) { if (token === kind) { nextToken(); return true; } + // Report specific message if provided with one. Otherwise, report generic fallback message. if (diagnosticMessage) { parseErrorAtCurrentToken(diagnosticMessage); } @@ -6108,20 +7043,23 @@ var ts; return finishNode(node); } function canParseSemicolon() { - if (token === 22) { + // If there's a real semicolon, then we can always parse it out. + if (token === 22 /* SemicolonToken */) { return true; } - return token === 15 || token === 1 || scanner.hasPrecedingLineBreak(); + // We can parse out an optional semicolon in ASI cases in the following cases. + return token === 15 /* CloseBraceToken */ || token === 1 /* EndOfFileToken */ || scanner.hasPrecedingLineBreak(); } function parseSemicolon() { if (canParseSemicolon()) { - if (token === 22) { + if (token === 22 /* SemicolonToken */) { + // consume the semicolon if it was explicitly provided. nextToken(); } return true; } else { - return parseExpected(22); + return parseExpected(22 /* SemicolonToken */); } } function createNode(kind, pos) { @@ -6139,9 +7077,12 @@ var ts; if (contextFlags) { node.parserContextFlags = contextFlags; } + // Keep track on the node if we encountered an error while parsing it. If we did, then + // we cannot reuse the node incrementally. Once we've marked this node, clear out the + // flag so that we don't mark any subsequent nodes. if (parseErrorBeforeNextFinishedNode) { parseErrorBeforeNextFinishedNode = false; - node.parserContextFlags |= 32; + node.parserContextFlags |= 32 /* ThisNodeHasError */; } return node; } @@ -6160,15 +7101,18 @@ var ts; text = ts.escapeIdentifier(text); return ts.hasProperty(identifiers, text) ? identifiers[text] : (identifiers[text] = text); } + // An identifier that starts with two underscores has an extra underscore character prepended to it to avoid issues + // with magic property names like '__proto__'. The 'identifiers' object is used to share a single string instance for + // each identifier in order to reduce memory consumption. function createIdentifier(isIdentifier, diagnosticMessage) { identifierCount++; if (isIdentifier) { - var node = createNode(65); + var node = createNode(65 /* Identifier */); node.text = internIdentifier(scanner.getTokenValue()); nextToken(); return finishNode(node); } - return createMissingNode(65, false, diagnosticMessage || ts.Diagnostics.Identifier_expected); + return createMissingNode(65 /* Identifier */, false, diagnosticMessage || ts.Diagnostics.Identifier_expected); } function parseIdentifier(diagnosticMessage) { return createIdentifier(isIdentifier(), diagnosticMessage); @@ -6178,21 +7122,32 @@ var ts; } function isLiteralPropertyName() { return isIdentifierOrKeyword() || - token === 8 || - token === 7; + token === 8 /* StringLiteral */ || + token === 7 /* NumericLiteral */; } function parsePropertyName() { - if (token === 8 || token === 7) { + if (token === 8 /* StringLiteral */ || token === 7 /* NumericLiteral */) { return parseLiteralNode(true); } - if (token === 18) { + if (token === 18 /* OpenBracketToken */) { return parseComputedPropertyName(); } return parseIdentifierName(); } function parseComputedPropertyName() { - var node = createNode(127); - parseExpected(18); + // PropertyName[Yield,GeneratorParameter] : + // LiteralPropertyName + // [+GeneratorParameter] ComputedPropertyName + // [~GeneratorParameter] ComputedPropertyName[?Yield] + // + // ComputedPropertyName[Yield] : + // [ AssignmentExpression[In, ?Yield] ] + // + var node = createNode(127 /* ComputedPropertyName */); + parseExpected(18 /* OpenBracketToken */); + // We parse any expression (including a comma expression). But the grammar + // says that only an assignment expression is allowed, so the grammar checker + // will error if it sees a comma expression. var yieldContext = inYieldContext(); if (inGeneratorParameterContext()) { setYieldContext(false); @@ -6201,7 +7156,7 @@ var ts; if (inGeneratorParameterContext()) { setYieldContext(yieldContext); } - parseExpected(19); + parseExpected(19 /* CloseBracketToken */); return finishNode(node); } function parseContextualModifier(t) { @@ -6215,92 +7170,112 @@ var ts; return ts.isModifier(token) && tryParse(nextTokenCanFollowContextualModifier); } function nextTokenCanFollowContextualModifier() { - if (token === 70) { - return nextToken() === 77; + if (token === 70 /* ConstKeyword */) { + // 'const' is only a modifier if followed by 'enum'. + return nextToken() === 77 /* EnumKeyword */; } - if (token === 78) { + if (token === 78 /* ExportKeyword */) { nextToken(); - if (token === 73) { + if (token === 73 /* DefaultKeyword */) { return lookAhead(nextTokenIsClassOrFunction); } - return token !== 35 && token !== 14 && canFollowModifier(); + return token !== 35 /* AsteriskToken */ && token !== 14 /* OpenBraceToken */ && canFollowModifier(); } - if (token === 73) { + if (token === 73 /* DefaultKeyword */) { return nextTokenIsClassOrFunction(); } nextToken(); return canFollowModifier(); } function canFollowModifier() { - return token === 18 - || token === 14 - || token === 35 + return token === 18 /* OpenBracketToken */ + || token === 14 /* OpenBraceToken */ + || token === 35 /* AsteriskToken */ || isLiteralPropertyName(); } function nextTokenIsClassOrFunction() { nextToken(); - return token === 69 || token === 83; + return token === 69 /* ClassKeyword */ || token === 83 /* FunctionKeyword */; } + // True if positioned at the start of a list element function isListElement(parsingContext, inErrorRecovery) { var node = currentNode(parsingContext); if (node) { return true; } switch (parsingContext) { - case 0: - case 1: + case 0 /* SourceElements */: + case 1 /* ModuleElements */: return isSourceElement(inErrorRecovery); - case 2: - case 4: + case 2 /* BlockStatements */: + case 4 /* SwitchClauseStatements */: return isStartOfStatement(inErrorRecovery); - case 3: - return token === 67 || token === 73; - case 5: + case 3 /* SwitchClauses */: + return token === 67 /* CaseKeyword */ || token === 73 /* DefaultKeyword */; + case 5 /* TypeMembers */: return isStartOfTypeMember(); - case 6: - return lookAhead(isClassMemberStart) || (token === 22 && !inErrorRecovery); - case 7: - return token === 18 || isLiteralPropertyName(); - case 13: - return token === 18 || token === 35 || isLiteralPropertyName(); - case 10: + case 6 /* ClassMembers */: + // We allow semicolons as class elements (as specified by ES6) as long as we're + // not in error recovery. If we're in error recovery, we don't want an errant + // semicolon to be treated as a class member (since they're almost always used + // for statements. + return lookAhead(isClassMemberStart) || (token === 22 /* SemicolonToken */ && !inErrorRecovery); + case 7 /* EnumMembers */: + // Include open bracket computed properties. This technically also lets in indexers, + // which would be a candidate for improved error reporting. + return token === 18 /* OpenBracketToken */ || isLiteralPropertyName(); + case 13 /* ObjectLiteralMembers */: + return token === 18 /* OpenBracketToken */ || token === 35 /* AsteriskToken */ || isLiteralPropertyName(); + case 10 /* ObjectBindingElements */: return isLiteralPropertyName(); - case 8: - if (token === 14) { + case 8 /* HeritageClauseElement */: + // If we see { } then only consume it as an expression if it is followed by , or { + // That way we won't consume the body of a class in its heritage clause. + if (token === 14 /* OpenBraceToken */) { return lookAhead(isValidHeritageClauseObjectLiteral); } if (!inErrorRecovery) { return isStartOfLeftHandSideExpression() && !isHeritageClauseExtendsOrImplementsKeyword(); } else { + // If we're in error recovery we tighten up what we're willing to match. + // That way we don't treat something like "this" as a valid heritage clause + // element during recovery. return isIdentifier() && !isHeritageClauseExtendsOrImplementsKeyword(); } - case 9: + case 9 /* VariableDeclarations */: return isIdentifierOrPattern(); - case 11: - return token === 23 || token === 21 || isIdentifierOrPattern(); - case 16: + case 11 /* ArrayBindingElements */: + return token === 23 /* CommaToken */ || token === 21 /* DotDotDotToken */ || isIdentifierOrPattern(); + case 16 /* TypeParameters */: return isIdentifier(); - case 12: - case 14: - return token === 23 || token === 21 || isStartOfExpression(); - case 15: + case 12 /* ArgumentExpressions */: + case 14 /* ArrayLiteralMembers */: + return token === 23 /* CommaToken */ || token === 21 /* DotDotDotToken */ || isStartOfExpression(); + case 15 /* Parameters */: return isStartOfParameter(); - case 17: - case 18: - return token === 23 || isStartOfType(); - case 19: + case 17 /* TypeArguments */: + case 18 /* TupleElementTypes */: + return token === 23 /* CommaToken */ || isStartOfType(); + case 19 /* HeritageClauses */: return isHeritageClause(); - case 20: + case 20 /* ImportOrExportSpecifiers */: return isIdentifierOrKeyword(); } ts.Debug.fail("Non-exhaustive case in 'isListElement'."); } function isValidHeritageClauseObjectLiteral() { - ts.Debug.assert(token === 14); - if (nextToken() === 15) { + ts.Debug.assert(token === 14 /* OpenBraceToken */); + if (nextToken() === 15 /* CloseBraceToken */) { + // if we see "extends {}" then only treat the {} as what we're extending (and not + // the class body) if we have: + // + // extends {} { + // extends {}, + // extends {} extends + // extends {} implements var next = nextToken(); - return next === 23 || next === 14 || next === 79 || next === 103; + return next === 23 /* CommaToken */ || next === 14 /* OpenBraceToken */ || next === 79 /* ExtendsKeyword */ || next === 103 /* ImplementsKeyword */; } return true; } @@ -6309,8 +7284,8 @@ var ts; return isIdentifier(); } function isHeritageClauseExtendsOrImplementsKeyword() { - if (token === 103 || - token === 79) { + if (token === 103 /* ImplementsKeyword */ || + token === 79 /* ExtendsKeyword */) { return lookAhead(nextTokenIsStartOfExpression); } return false; @@ -6319,57 +7294,73 @@ var ts; nextToken(); return isStartOfExpression(); } + // True if positioned at a list terminator function isListTerminator(kind) { - if (token === 1) { + if (token === 1 /* EndOfFileToken */) { + // Being at the end of the file ends all lists. return true; } switch (kind) { - case 1: - case 2: - case 3: - case 5: - case 6: - case 7: - case 13: - case 10: - case 20: - return token === 15; - case 4: - return token === 15 || token === 67 || token === 73; - case 8: - return token === 14 || token === 79 || token === 103; - case 9: + case 1 /* ModuleElements */: + case 2 /* BlockStatements */: + case 3 /* SwitchClauses */: + case 5 /* TypeMembers */: + case 6 /* ClassMembers */: + case 7 /* EnumMembers */: + case 13 /* ObjectLiteralMembers */: + case 10 /* ObjectBindingElements */: + case 20 /* ImportOrExportSpecifiers */: + return token === 15 /* CloseBraceToken */; + case 4 /* SwitchClauseStatements */: + return token === 15 /* CloseBraceToken */ || token === 67 /* CaseKeyword */ || token === 73 /* DefaultKeyword */; + case 8 /* HeritageClauseElement */: + return token === 14 /* OpenBraceToken */ || token === 79 /* ExtendsKeyword */ || token === 103 /* ImplementsKeyword */; + case 9 /* VariableDeclarations */: return isVariableDeclaratorListTerminator(); - case 16: - return token === 25 || token === 16 || token === 14 || token === 79 || token === 103; - case 12: - return token === 17 || token === 22; - case 14: - case 18: - case 11: - return token === 19; - case 15: - return token === 17 || token === 19; - case 17: - return token === 25 || token === 16; - case 19: - return token === 14 || token === 15; + case 16 /* TypeParameters */: + // Tokens other than '>' are here for better error recovery + return token === 25 /* GreaterThanToken */ || token === 16 /* OpenParenToken */ || token === 14 /* OpenBraceToken */ || token === 79 /* ExtendsKeyword */ || token === 103 /* ImplementsKeyword */; + case 12 /* ArgumentExpressions */: + // Tokens other than ')' are here for better error recovery + return token === 17 /* CloseParenToken */ || token === 22 /* SemicolonToken */; + case 14 /* ArrayLiteralMembers */: + case 18 /* TupleElementTypes */: + case 11 /* ArrayBindingElements */: + return token === 19 /* CloseBracketToken */; + case 15 /* Parameters */: + // Tokens other than ')' and ']' (the latter for index signatures) are here for better error recovery + return token === 17 /* CloseParenToken */ || token === 19 /* CloseBracketToken */ /*|| token === SyntaxKind.OpenBraceToken*/; + case 17 /* TypeArguments */: + // Tokens other than '>' are here for better error recovery + return token === 25 /* GreaterThanToken */ || token === 16 /* OpenParenToken */; + case 19 /* HeritageClauses */: + return token === 14 /* OpenBraceToken */ || token === 15 /* CloseBraceToken */; } } function isVariableDeclaratorListTerminator() { + // If we can consume a semicolon (either explicitly, or with ASI), then consider us done + // with parsing the list of variable declarators. if (canParseSemicolon()) { return true; } + // in the case where we're parsing the variable declarator of a 'for-in' statement, we + // are done if we see an 'in' keyword in front of us. Same with for-of if (isInOrOfKeyword(token)) { return true; } - if (token === 32) { + // ERROR RECOVERY TWEAK: + // For better error recovery, if we see an '=>' then we just stop immediately. We've got an + // arrow function here and it's going to be very unlikely that we'll resynchronize and get + // another variable declaration. + if (token === 32 /* EqualsGreaterThanToken */) { return true; } + // Keep trying to parse out variable declarators. return false; } + // True if positioned at element or terminator of the current list or any enclosing list function isInSomeParsingContext() { - for (var kind = 0; kind < 21; kind++) { + for (var kind = 0; kind < 21 /* Count */; kind++) { if (parsingContext & (1 << kind)) { if (isListElement(kind, true) || isListTerminator(kind)) { return true; @@ -6378,6 +7369,7 @@ var ts; } return false; } + // Parses a list of elements function parseList(kind, checkForStrictMode, parseElement) { var saveParsingContext = parsingContext; parsingContext |= 1 << kind; @@ -6388,6 +7380,7 @@ var ts; if (isListElement(kind, false)) { var element = parseListElement(kind, parseElement); result.push(element); + // test elements only if we are not already in strict mode if (checkForStrictMode && !inStrictModeContext()) { if (ts.isPrologueDirective(element)) { if (isUseStrictPrologueDirective(sourceFile, element)) { @@ -6418,76 +7411,130 @@ var ts; return parseElement(); } function currentNode(parsingContext) { + // If there is an outstanding parse error that we've encountered, but not attached to + // some node, then we cannot get a node from the old source tree. This is because we + // want to mark the next node we encounter as being unusable. + // + // Note: This may be too conservative. Perhaps we could reuse the node and set the bit + // on it (or its leftmost child) as having the error. For now though, being conservative + // is nice and likely won't ever affect perf. if (parseErrorBeforeNextFinishedNode) { return undefined; } if (!syntaxCursor) { + // if we don't have a cursor, we could never return a node from the old tree. return undefined; } var node = syntaxCursor.currentNode(scanner.getStartPos()); + // Can't reuse a missing node. if (ts.nodeIsMissing(node)) { return undefined; } + // Can't reuse a node that intersected the change range. if (node.intersectsChange) { return undefined; } + // Can't reuse a node that contains a parse error. This is necessary so that we + // produce the same set of errors again. if (ts.containsParseError(node)) { return undefined; } - var nodeContextFlags = node.parserContextFlags & 63; + // We can only reuse a node if it was parsed under the same strict mode that we're + // currently in. i.e. if we originally parsed a node in non-strict mode, but then + // the user added 'using strict' at the top of the file, then we can't use that node + // again as the presense of strict mode may cause us to parse the tokens in the file + // differetly. + // + // Note: we *can* reuse tokens when the strict mode changes. That's because tokens + // are unaffected by strict mode. It's just the parser will decide what to do with it + // differently depending on what mode it is in. + // + // This also applies to all our other context flags as well. + var nodeContextFlags = node.parserContextFlags & 63 /* ParserGeneratedFlags */; if (nodeContextFlags !== contextFlags) { return undefined; } + // Ok, we have a node that looks like it could be reused. Now verify that it is valid + // in the currest list parsing context that we're currently at. if (!canReuseNode(node, parsingContext)) { return undefined; } return node; } function consumeNode(node) { + // Move the scanner so it is after the node we just consumed. scanner.setTextPos(node.end); nextToken(); return node; } function canReuseNode(node, parsingContext) { switch (parsingContext) { - case 1: + case 1 /* ModuleElements */: return isReusableModuleElement(node); - case 6: + case 6 /* ClassMembers */: return isReusableClassMember(node); - case 3: + case 3 /* SwitchClauses */: return isReusableSwitchClause(node); - case 2: - case 4: + case 2 /* BlockStatements */: + case 4 /* SwitchClauseStatements */: return isReusableStatement(node); - case 7: + case 7 /* EnumMembers */: return isReusableEnumMember(node); - case 5: + case 5 /* TypeMembers */: return isReusableTypeMember(node); - case 9: + case 9 /* VariableDeclarations */: return isReusableVariableDeclaration(node); - case 15: + case 15 /* Parameters */: return isReusableParameter(node); - case 19: - case 16: - case 18: - case 17: - case 12: - case 13: - case 8: + // Any other lists we do not care about reusing nodes in. But feel free to add if + // you can do so safely. Danger areas involve nodes that may involve speculative + // parsing. If speculative parsing is involved with the node, then the range the + // parser reached while looking ahead might be in the edited range (see the example + // in canReuseVariableDeclaratorNode for a good case of this). + case 19 /* HeritageClauses */: + // This would probably be safe to reuse. There is no speculative parsing with + // heritage clauses. + case 16 /* TypeParameters */: + // This would probably be safe to reuse. There is no speculative parsing with + // type parameters. Note that that's because type *parameters* only occur in + // unambiguous *type* contexts. While type *arguments* occur in very ambiguous + // *expression* contexts. + case 18 /* TupleElementTypes */: + // This would probably be safe to reuse. There is no speculative parsing with + // tuple types. + // Technically, type argument list types are probably safe to reuse. While + // speculative parsing is involved with them (since type argument lists are only + // produced from speculative parsing a < as a type argument list), we only have + // the types because speculative parsing succeeded. Thus, the lookahead never + // went past the end of the list and rewound. + case 17 /* TypeArguments */: + // Note: these are almost certainly not safe to ever reuse. Expressions commonly + // need a large amount of lookahead, and we should not reuse them as they may + // have actually intersected the edit. + case 12 /* ArgumentExpressions */: + // This is not safe to reuse for the same reason as the 'AssignmentExpression' + // cases. i.e. a property assignment may end with an expression, and thus might + // have lookahead far beyond it's old node. + case 13 /* ObjectLiteralMembers */: + // This is probably not safe to reuse. There can be speculative parsing with + // type names in a heritage clause. There can be generic names in the type + // name list, and there can be left hand side expressions (which can have type + // arguments.) + case 8 /* HeritageClauseElement */: } return false; } function isReusableModuleElement(node) { if (node) { switch (node.kind) { - case 209: - case 208: - case 215: - case 214: - case 201: - case 202: - case 205: - case 204: + case 209 /* ImportDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 215 /* ExportDeclaration */: + case 214 /* ExportAssignment */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 205 /* ModuleDeclaration */: + case 204 /* EnumDeclaration */: return true; } return isReusableStatement(node); @@ -6497,13 +7544,13 @@ var ts; function isReusableClassMember(node) { if (node) { switch (node.kind) { - case 135: - case 140: - case 134: - case 136: - case 137: - case 132: - case 178: + case 135 /* Constructor */: + case 140 /* IndexSignature */: + case 134 /* MethodDeclaration */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 132 /* PropertyDeclaration */: + case 178 /* SemicolonClassElement */: return true; } } @@ -6512,8 +7559,8 @@ var ts; function isReusableSwitchClause(node) { if (node) { switch (node.kind) { - case 220: - case 221: + case 220 /* CaseClause */: + case 221 /* DefaultClause */: return true; } } @@ -6522,61 +7569,77 @@ var ts; function isReusableStatement(node) { if (node) { switch (node.kind) { - case 200: - case 180: - case 179: - case 183: - case 182: - case 195: - case 191: - case 193: - case 190: - case 189: - case 187: - case 188: - case 186: - case 185: - case 192: - case 181: - case 196: - case 194: - case 184: - case 197: + case 200 /* FunctionDeclaration */: + case 180 /* VariableStatement */: + case 179 /* Block */: + case 183 /* IfStatement */: + case 182 /* ExpressionStatement */: + case 195 /* ThrowStatement */: + case 191 /* ReturnStatement */: + case 193 /* SwitchStatement */: + case 190 /* BreakStatement */: + case 189 /* ContinueStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 186 /* ForStatement */: + case 185 /* WhileStatement */: + case 192 /* WithStatement */: + case 181 /* EmptyStatement */: + case 196 /* TryStatement */: + case 194 /* LabeledStatement */: + case 184 /* DoStatement */: + case 197 /* DebuggerStatement */: return true; } } return false; } function isReusableEnumMember(node) { - return node.kind === 226; + return node.kind === 226 /* EnumMember */; } function isReusableTypeMember(node) { if (node) { switch (node.kind) { - case 139: - case 133: - case 140: - case 131: - case 138: + case 139 /* ConstructSignature */: + case 133 /* MethodSignature */: + case 140 /* IndexSignature */: + case 131 /* PropertySignature */: + case 138 /* CallSignature */: return true; } } return false; } function isReusableVariableDeclaration(node) { - if (node.kind !== 198) { + if (node.kind !== 198 /* VariableDeclaration */) { return false; } + // Very subtle incremental parsing bug. Consider the following code: + // + // let v = new List < A, B + // + // This is actually legal code. It's a list of variable declarators "v = new List() + // + // then we have a problem. "v = new List= 0) { + // Always preserve a trailing comma by marking it on the NodeArray result.hasTrailingComma = true; } result.end = getNodeEnd(); @@ -6637,10 +7714,11 @@ var ts; } return createMissingList(); } + // The allowReservedWords parameter controls whether reserved words are permitted after the first dot function parseEntityName(allowReservedWords, diagnosticMessage) { var entity = parseIdentifier(diagnosticMessage); - while (parseOptional(20)) { - var node = createNode(126, entity.pos); + while (parseOptional(20 /* DotToken */)) { + var node = createNode(126 /* QualifiedName */, entity.pos); node.left = entity; node.right = parseRightSideOfDot(allowReservedWords); entity = finishNode(node); @@ -6648,37 +7726,59 @@ var ts; return entity; } function parseRightSideOfDot(allowIdentifierNames) { + // Technically a keyword is valid here as all keywords are identifier names. + // However, often we'll encounter this in error situations when the keyword + // is actually starting another valid construct. + // + // So, we check for the following specific case: + // + // name. + // keyword identifierNameOrKeyword + // + // Note: the newlines are important here. For example, if that above code + // were rewritten into: + // + // name.keyword + // identifierNameOrKeyword + // + // Then we would consider it valid. That's because ASI would take effect and + // the code would be implicitly: "name.keyword; identifierNameOrKeyword". + // In the first case though, ASI will not take effect because there is not a + // line terminator after the keyword. if (scanner.hasPrecedingLineBreak() && scanner.isReservedWord()) { var matchesPattern = lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine); if (matchesPattern) { - return createMissingNode(65, true, ts.Diagnostics.Identifier_expected); + // Report that we need an identifier. However, report it right after the dot, + // and not on the next token. This is because the next token might actually + // be an identifier and the error woudl be quite confusing. + return createMissingNode(65 /* Identifier */, true, ts.Diagnostics.Identifier_expected); } } return allowIdentifierNames ? parseIdentifierName() : parseIdentifier(); } function parseTemplateExpression() { - var template = createNode(171); + var template = createNode(171 /* TemplateExpression */); template.head = parseLiteralNode(); - ts.Debug.assert(template.head.kind === 11, "Template head has wrong token kind"); + ts.Debug.assert(template.head.kind === 11 /* TemplateHead */, "Template head has wrong token kind"); var templateSpans = []; templateSpans.pos = getNodePos(); do { templateSpans.push(parseTemplateSpan()); - } while (templateSpans[templateSpans.length - 1].literal.kind === 12); + } while (templateSpans[templateSpans.length - 1].literal.kind === 12 /* TemplateMiddle */); templateSpans.end = getNodeEnd(); template.templateSpans = templateSpans; return finishNode(template); } function parseTemplateSpan() { - var span = createNode(176); + var span = createNode(176 /* TemplateSpan */); span.expression = allowInAnd(parseExpression); var literal; - if (token === 15) { + if (token === 15 /* CloseBraceToken */) { reScanTemplateToken(); literal = parseLiteralNode(); } else { - literal = parseExpectedToken(13, false, ts.Diagnostics._0_expected, ts.tokenToString(15)); + literal = parseExpectedToken(13 /* TemplateTail */, false, ts.Diagnostics._0_expected, ts.tokenToString(15 /* CloseBraceToken */)); } span.literal = literal; return finishNode(span); @@ -6696,55 +7796,73 @@ var ts; var tokenPos = scanner.getTokenPos(); nextToken(); finishNode(node); - if (node.kind === 7 - && sourceText.charCodeAt(tokenPos) === 48 + // Octal literals are not allowed in strict mode or ES5 + // Note that theoretically the following condition would hold true literals like 009, + // which is not octal.But because of how the scanner separates the tokens, we would + // never get a token like this. Instead, we would get 00 and 9 as two separate tokens. + // We also do not need to check for negatives because any prefix operator would be part of a + // parent unary expression. + if (node.kind === 7 /* NumericLiteral */ + && sourceText.charCodeAt(tokenPos) === 48 /* _0 */ && ts.isOctalDigit(sourceText.charCodeAt(tokenPos + 1))) { - node.flags |= 16384; + node.flags |= 16384 /* OctalLiteral */; } return node; } + // TYPES function parseTypeReference() { - var node = createNode(141); + var node = createNode(141 /* TypeReference */); node.typeName = parseEntityName(false, ts.Diagnostics.Type_expected); - if (!scanner.hasPrecedingLineBreak() && token === 24) { - node.typeArguments = parseBracketedList(17, parseType, 24, 25); + if (!scanner.hasPrecedingLineBreak() && token === 24 /* LessThanToken */) { + node.typeArguments = parseBracketedList(17 /* TypeArguments */, parseType, 24 /* LessThanToken */, 25 /* GreaterThanToken */); } return finishNode(node); } function parseTypeQuery() { - var node = createNode(144); - parseExpected(97); + var node = createNode(144 /* TypeQuery */); + parseExpected(97 /* TypeOfKeyword */); node.exprName = parseEntityName(true); return finishNode(node); } function parseTypeParameter() { - var node = createNode(128); + var node = createNode(128 /* TypeParameter */); node.name = parseIdentifier(); - if (parseOptional(79)) { + if (parseOptional(79 /* ExtendsKeyword */)) { + // It's not uncommon for people to write improper constraints to a generic. If the + // user writes a constraint that is an expression and not an actual type, then parse + // it out as an expression (so we can recover well), but report that a type is needed + // instead. if (isStartOfType() || !isStartOfExpression()) { node.constraint = parseType(); } else { + // It was not a type, and it looked like an expression. Parse out an expression + // here so we recover well. Note: it is important that we call parseUnaryExpression + // and not parseExpression here. If the user has: + // + // + // + // We do *not* want to consume the > as we're consuming the expression for "". node.expression = parseUnaryExpressionOrHigher(); } } return finishNode(node); } function parseTypeParameters() { - if (token === 24) { - return parseBracketedList(16, parseTypeParameter, 24, 25); + if (token === 24 /* LessThanToken */) { + return parseBracketedList(16 /* TypeParameters */, parseTypeParameter, 24 /* LessThanToken */, 25 /* GreaterThanToken */); } } function parseParameterType() { - if (parseOptional(51)) { - return token === 8 + if (parseOptional(51 /* ColonToken */)) { + return token === 8 /* StringLiteral */ ? parseLiteralNode(true) : parseType(); } return undefined; } function isStartOfParameter() { - return token === 21 || isIdentifierOrPattern() || ts.isModifier(token) || token === 52; + return token === 21 /* DotDotDotToken */ || isIdentifierOrPattern() || ts.isModifier(token) || token === 52 /* AtToken */; } function setModifiers(node, modifiers) { if (modifiers) { @@ -6753,24 +7871,43 @@ var ts; } } function parseParameter() { - var node = createNode(129); + var node = createNode(129 /* Parameter */); node.decorators = parseDecorators(); setModifiers(node, parseModifiers()); - node.dotDotDotToken = parseOptionalToken(21); + node.dotDotDotToken = parseOptionalToken(21 /* DotDotDotToken */); + // SingleNameBinding[Yield,GeneratorParameter] : See 13.2.3 + // [+GeneratorParameter]BindingIdentifier[Yield]Initializer[In]opt + // [~GeneratorParameter]BindingIdentifier[?Yield]Initializer[In, ?Yield]opt node.name = inGeneratorParameterContext() ? doInYieldContext(parseIdentifierOrPattern) : parseIdentifierOrPattern(); if (ts.getFullWidth(node.name) === 0 && node.flags === 0 && ts.isModifier(token)) { + // in cases like + // 'use strict' + // function foo(static) + // isParameter('static') === true, because of isModifier('static') + // however 'static' is not a legal identifier in a strict mode. + // so result of this function will be ParameterDeclaration (flags = 0, name = missing, type = undefined, initializer = undefined) + // and current token will not change => parsing of the enclosing parameter list will last till the end of time (or OOM) + // to avoid this we'll advance cursor to the next token. nextToken(); } - node.questionToken = parseOptionalToken(50); + node.questionToken = parseOptionalToken(50 /* QuestionToken */); node.type = parseParameterType(); node.initializer = inGeneratorParameterContext() ? doOutsideOfYieldContext(parseParameterInitializer) : parseParameterInitializer(); + // Do not check for initializers in an ambient context for parameters. This is not + // a grammar error because the grammar allows arbitrary call signatures in + // an ambient context. + // It is actually not necessary for this to be an error at all. The reason is that + // function/constructor implementations are syntactically disallowed in ambient + // contexts. In addition, parameter initializers are semantically disallowed in + // overload signatures. So parameter initializers are transitively disallowed in + // ambient contexts. return finishNode(node); } function parseParameterInitializer() { return parseInitializer(true); } function fillSignature(returnToken, yieldAndGeneratorParameterContext, requireCompleteParameterList, signature) { - var returnTokenRequired = returnToken === 32; + var returnTokenRequired = returnToken === 32 /* EqualsGreaterThanToken */; signature.typeParameters = parseTypeParameters(); signature.parameters = parseParameterList(yieldAndGeneratorParameterContext, requireCompleteParameterList); if (returnTokenRequired) { @@ -6781,46 +7918,88 @@ var ts; signature.type = parseType(); } } + // Note: after careful analysis of the grammar, it does not appear to be possible to + // have 'Yield' And 'GeneratorParameter' not in sync. i.e. any production calling + // this FormalParameters production either always sets both to true, or always sets + // both to false. As such we only have a single parameter to represent both. function parseParameterList(yieldAndGeneratorParameterContext, requireCompleteParameterList) { - if (parseExpected(16)) { + // FormalParameters[Yield,GeneratorParameter] : + // ... + // + // FormalParameter[Yield,GeneratorParameter] : + // BindingElement[?Yield, ?GeneratorParameter] + // + // BindingElement[Yield, GeneratorParameter ] : See 13.2.3 + // SingleNameBinding[?Yield, ?GeneratorParameter] + // [+GeneratorParameter]BindingPattern[?Yield, GeneratorParameter]Initializer[In]opt + // [~GeneratorParameter]BindingPattern[?Yield]Initializer[In, ?Yield]opt + // + // SingleNameBinding[Yield, GeneratorParameter] : See 13.2.3 + // [+GeneratorParameter]BindingIdentifier[Yield]Initializer[In]opt + // [~GeneratorParameter]BindingIdentifier[?Yield]Initializer[In, ?Yield]opt + if (parseExpected(16 /* OpenParenToken */)) { var savedYieldContext = inYieldContext(); var savedGeneratorParameterContext = inGeneratorParameterContext(); setYieldContext(yieldAndGeneratorParameterContext); setGeneratorParameterContext(yieldAndGeneratorParameterContext); - var result = parseDelimitedList(15, parseParameter); + var result = parseDelimitedList(15 /* Parameters */, parseParameter); setYieldContext(savedYieldContext); setGeneratorParameterContext(savedGeneratorParameterContext); - if (!parseExpected(17) && requireCompleteParameterList) { + if (!parseExpected(17 /* CloseParenToken */) && requireCompleteParameterList) { + // Caller insisted that we had to end with a ) We didn't. So just return + // undefined here. return undefined; } return result; } + // We didn't even have an open paren. If the caller requires a complete parameter list, + // we definitely can't provide that. However, if they're ok with an incomplete one, + // then just return an empty set of parameters. return requireCompleteParameterList ? undefined : createMissingList(); } function parseTypeMemberSemicolon() { - if (parseOptional(23)) { + // We allow type members to be separated by commas or (possibly ASI) semicolons. + // First check if it was a comma. If so, we're done with the member. + if (parseOptional(23 /* CommaToken */)) { return; } + // Didn't have a comma. We must have a (possible ASI) semicolon. parseSemicolon(); } function parseSignatureMember(kind) { var node = createNode(kind); - if (kind === 139) { - parseExpected(88); + if (kind === 139 /* ConstructSignature */) { + parseExpected(88 /* NewKeyword */); } - fillSignature(51, false, false, node); + fillSignature(51 /* ColonToken */, false, false, node); parseTypeMemberSemicolon(); return finishNode(node); } function isIndexSignature() { - if (token !== 18) { + if (token !== 18 /* OpenBracketToken */) { return false; } return lookAhead(isUnambiguouslyIndexSignature); } function isUnambiguouslyIndexSignature() { + // The only allowed sequence is: + // + // [id: + // + // However, for error recovery, we also check the following cases: + // + // [... + // [id, + // [id?, + // [id?: + // [id?] + // [public id + // [private id + // [protected id + // [] + // nextToken(); - if (token === 21 || token === 19) { + if (token === 21 /* DotDotDotToken */ || token === 19 /* CloseBracketToken */) { return true; } if (ts.isModifier(token)) { @@ -6833,22 +8012,30 @@ var ts; return false; } else { + // Skip the identifier nextToken(); } - if (token === 51 || token === 23) { + // A colon signifies a well formed indexer + // A comma should be a badly formed indexer because comma expressions are not allowed + // in computed properties. + if (token === 51 /* ColonToken */ || token === 23 /* CommaToken */) { return true; } - if (token !== 50) { + // Question mark could be an indexer with an optional property, + // or it could be a conditional expression in a computed property. + if (token !== 50 /* QuestionToken */) { return false; } + // If any of the following tokens are after the question mark, it cannot + // be a conditional expression, so treat it as an indexer. nextToken(); - return token === 51 || token === 23 || token === 19; + return token === 51 /* ColonToken */ || token === 23 /* CommaToken */ || token === 19 /* CloseBracketToken */; } function parseIndexSignatureDeclaration(fullStart, decorators, modifiers) { - var node = createNode(140, fullStart); + var node = createNode(140 /* IndexSignature */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - node.parameters = parseBracketedList(15, parseParameter, 18, 19); + node.parameters = parseBracketedList(15 /* Parameters */, parseParameter, 18 /* OpenBracketToken */, 19 /* CloseBracketToken */); node.type = parseTypeAnnotation(); parseTypeMemberSemicolon(); return finishNode(node); @@ -6856,17 +8043,19 @@ var ts; function parsePropertyOrMethodSignature() { var fullStart = scanner.getStartPos(); var name = parsePropertyName(); - var questionToken = parseOptionalToken(50); - if (token === 16 || token === 24) { - var method = createNode(133, fullStart); + var questionToken = parseOptionalToken(50 /* QuestionToken */); + if (token === 16 /* OpenParenToken */ || token === 24 /* LessThanToken */) { + var method = createNode(133 /* MethodSignature */, fullStart); method.name = name; method.questionToken = questionToken; - fillSignature(51, false, false, method); + // Method signatues don't exist in expression contexts. So they have neither + // [Yield] nor [GeneratorParameter] + fillSignature(51 /* ColonToken */, false, false, method); parseTypeMemberSemicolon(); return finishNode(method); } else { - var property = createNode(131, fullStart); + var property = createNode(131 /* PropertySignature */, fullStart); property.name = name; property.questionToken = questionToken; property.type = parseTypeAnnotation(); @@ -6876,9 +8065,9 @@ var ts; } function isStartOfTypeMember() { switch (token) { - case 16: - case 24: - case 18: + case 16 /* OpenParenToken */: + case 24 /* LessThanToken */: + case 18 /* OpenBracketToken */: return true; default: if (ts.isModifier(token)) { @@ -6898,29 +8087,37 @@ var ts; } function isTypeMemberWithLiteralPropertyName() { nextToken(); - return token === 16 || - token === 24 || - token === 50 || - token === 51 || + return token === 16 /* OpenParenToken */ || + token === 24 /* LessThanToken */ || + token === 50 /* QuestionToken */ || + token === 51 /* ColonToken */ || canParseSemicolon(); } function parseTypeMember() { switch (token) { - case 16: - case 24: - return parseSignatureMember(138); - case 18: + case 16 /* OpenParenToken */: + case 24 /* LessThanToken */: + return parseSignatureMember(138 /* CallSignature */); + case 18 /* OpenBracketToken */: + // Indexer or computed property return isIndexSignature() ? parseIndexSignatureDeclaration(scanner.getStartPos(), undefined, undefined) : parsePropertyOrMethodSignature(); - case 88: + case 88 /* NewKeyword */: if (lookAhead(isStartOfConstructSignature)) { - return parseSignatureMember(139); + return parseSignatureMember(139 /* ConstructSignature */); } - case 8: - case 7: + // fall through. + case 8 /* StringLiteral */: + case 7 /* NumericLiteral */: return parsePropertyOrMethodSignature(); default: + // Index declaration as allowed as a type member. But as per the grammar, + // they also allow modifiers. So we have to check for an index declaration + // that might be following modifiers. This ensures that things work properly + // when incrementally parsing as the parser will produce the Index declaration + // if it has the same text regardless of whether it is inside a class or an + // object type. if (ts.isModifier(token)) { var result = tryParse(parseIndexSignatureWithModifiers); if (result) { @@ -6942,18 +8139,18 @@ var ts; } function isStartOfConstructSignature() { nextToken(); - return token === 16 || token === 24; + return token === 16 /* OpenParenToken */ || token === 24 /* LessThanToken */; } function parseTypeLiteral() { - var node = createNode(145); + var node = createNode(145 /* TypeLiteral */); node.members = parseObjectTypeMembers(); return finishNode(node); } function parseObjectTypeMembers() { var members; - if (parseExpected(14)) { - members = parseList(5, false, parseTypeMember); - parseExpected(15); + if (parseExpected(14 /* OpenBraceToken */)) { + members = parseList(5 /* TypeMembers */, false, parseTypeMember); + parseExpected(15 /* CloseBraceToken */); } else { members = createMissingList(); @@ -6961,47 +8158,48 @@ var ts; return members; } function parseTupleType() { - var node = createNode(147); - node.elementTypes = parseBracketedList(18, parseType, 18, 19); + var node = createNode(147 /* TupleType */); + node.elementTypes = parseBracketedList(18 /* TupleElementTypes */, parseType, 18 /* OpenBracketToken */, 19 /* CloseBracketToken */); return finishNode(node); } function parseParenthesizedType() { - var node = createNode(149); - parseExpected(16); + var node = createNode(149 /* ParenthesizedType */); + parseExpected(16 /* OpenParenToken */); node.type = parseType(); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); return finishNode(node); } function parseFunctionOrConstructorType(kind) { var node = createNode(kind); - if (kind === 143) { - parseExpected(88); + if (kind === 143 /* ConstructorType */) { + parseExpected(88 /* NewKeyword */); } - fillSignature(32, false, false, node); + fillSignature(32 /* EqualsGreaterThanToken */, false, false, node); return finishNode(node); } function parseKeywordAndNoDot() { var node = parseTokenNode(); - return token === 20 ? undefined : node; + return token === 20 /* DotToken */ ? undefined : node; } function parseNonArrayType() { switch (token) { - case 112: - case 121: - case 119: - case 113: - case 122: + case 112 /* AnyKeyword */: + case 121 /* StringKeyword */: + case 119 /* NumberKeyword */: + case 113 /* BooleanKeyword */: + case 122 /* SymbolKeyword */: + // If these are followed by a dot, then parse these out as a dotted type reference instead. var node = tryParse(parseKeywordAndNoDot); return node || parseTypeReference(); - case 99: + case 99 /* VoidKeyword */: return parseTokenNode(); - case 97: + case 97 /* TypeOfKeyword */: return parseTypeQuery(); - case 14: + case 14 /* OpenBraceToken */: return parseTypeLiteral(); - case 18: + case 18 /* OpenBracketToken */: return parseTupleType(); - case 16: + case 16 /* OpenParenToken */: return parseParenthesizedType(); default: return parseTypeReference(); @@ -7009,19 +8207,21 @@ var ts; } function isStartOfType() { switch (token) { - case 112: - case 121: - case 119: - case 113: - case 122: - case 99: - case 97: - case 14: - case 18: - case 24: - case 88: + case 112 /* AnyKeyword */: + case 121 /* StringKeyword */: + case 119 /* NumberKeyword */: + case 113 /* BooleanKeyword */: + case 122 /* SymbolKeyword */: + case 99 /* VoidKeyword */: + case 97 /* TypeOfKeyword */: + case 14 /* OpenBraceToken */: + case 18 /* OpenBracketToken */: + case 24 /* LessThanToken */: + case 88 /* NewKeyword */: return true; - case 16: + case 16 /* OpenParenToken */: + // Only consider '(' the start of a type if followed by ')', '...', an identifier, a modifier, + // or something that starts a type. We don't want to consider things like '(1)' a type. return lookAhead(isStartOfParenthesizedOrFunctionType); default: return isIdentifier(); @@ -7029,13 +8229,13 @@ var ts; } function isStartOfParenthesizedOrFunctionType() { nextToken(); - return token === 17 || isStartOfParameter() || isStartOfType(); + return token === 17 /* CloseParenToken */ || isStartOfParameter() || isStartOfType(); } function parseArrayTypeOrHigher() { var type = parseNonArrayType(); - while (!scanner.hasPrecedingLineBreak() && parseOptional(18)) { - parseExpected(19); - var node = createNode(146, type.pos); + while (!scanner.hasPrecedingLineBreak() && parseOptional(18 /* OpenBracketToken */)) { + parseExpected(19 /* CloseBracketToken */); + var node = createNode(146 /* ArrayType */, type.pos); node.elementType = type; type = finishNode(node); } @@ -7043,40 +8243,48 @@ var ts; } function parseUnionTypeOrHigher() { var type = parseArrayTypeOrHigher(); - if (token === 44) { + if (token === 44 /* BarToken */) { var types = [type]; types.pos = type.pos; - while (parseOptional(44)) { + while (parseOptional(44 /* BarToken */)) { types.push(parseArrayTypeOrHigher()); } types.end = getNodeEnd(); - var node = createNode(148, type.pos); + var node = createNode(148 /* UnionType */, type.pos); node.types = types; type = finishNode(node); } return type; } function isStartOfFunctionType() { - if (token === 24) { + if (token === 24 /* LessThanToken */) { return true; } - return token === 16 && lookAhead(isUnambiguouslyStartOfFunctionType); + return token === 16 /* OpenParenToken */ && lookAhead(isUnambiguouslyStartOfFunctionType); } function isUnambiguouslyStartOfFunctionType() { nextToken(); - if (token === 17 || token === 21) { + if (token === 17 /* CloseParenToken */ || token === 21 /* DotDotDotToken */) { + // ( ) + // ( ... return true; } if (isIdentifier() || ts.isModifier(token)) { nextToken(); - if (token === 51 || token === 23 || - token === 50 || token === 53 || + if (token === 51 /* ColonToken */ || token === 23 /* CommaToken */ || + token === 50 /* QuestionToken */ || token === 53 /* EqualsToken */ || isIdentifier() || ts.isModifier(token)) { + // ( id : + // ( id , + // ( id ? + // ( id = + // ( modifier id return true; } - if (token === 17) { + if (token === 17 /* CloseParenToken */) { nextToken(); - if (token === 32) { + if (token === 32 /* EqualsGreaterThanToken */) { + // ( id ) => return true; } } @@ -7084,6 +8292,8 @@ var ts; return false; } function parseType() { + // The rules about 'yield' only apply to actual code/expression contexts. They don't + // apply to 'type' contexts. So we disable these parameters here before moving on. var savedYieldContext = inYieldContext(); var savedGeneratorParameterContext = inGeneratorParameterContext(); setYieldContext(false); @@ -7095,36 +8305,37 @@ var ts; } function parseTypeWorker() { if (isStartOfFunctionType()) { - return parseFunctionOrConstructorType(142); + return parseFunctionOrConstructorType(142 /* FunctionType */); } - if (token === 88) { - return parseFunctionOrConstructorType(143); + if (token === 88 /* NewKeyword */) { + return parseFunctionOrConstructorType(143 /* ConstructorType */); } return parseUnionTypeOrHigher(); } function parseTypeAnnotation() { - return parseOptional(51) ? parseType() : undefined; + return parseOptional(51 /* ColonToken */) ? parseType() : undefined; } + // EXPRESSIONS function isStartOfLeftHandSideExpression() { switch (token) { - case 93: - case 91: - case 89: - case 95: - case 80: - case 7: - case 8: - case 10: - case 11: - case 16: - case 18: - case 14: - case 83: - case 69: - case 88: - case 36: - case 57: - case 65: + case 93 /* ThisKeyword */: + case 91 /* SuperKeyword */: + case 89 /* NullKeyword */: + case 95 /* TrueKeyword */: + case 80 /* FalseKeyword */: + case 7 /* NumericLiteral */: + case 8 /* StringLiteral */: + case 10 /* NoSubstitutionTemplateLiteral */: + case 11 /* TemplateHead */: + case 16 /* OpenParenToken */: + case 18 /* OpenBracketToken */: + case 14 /* OpenBraceToken */: + case 83 /* FunctionKeyword */: + case 69 /* ClassKeyword */: + case 88 /* NewKeyword */: + case 36 /* SlashToken */: + case 57 /* SlashEqualsToken */: + case 65 /* Identifier */: return true; default: return isIdentifier(); @@ -7135,19 +8346,26 @@ var ts; return true; } switch (token) { - case 33: - case 34: - case 47: - case 46: - case 74: - case 97: - case 99: - case 38: - case 39: - case 24: - case 111: + case 33 /* PlusToken */: + case 34 /* MinusToken */: + case 47 /* TildeToken */: + case 46 /* ExclamationToken */: + case 74 /* DeleteKeyword */: + case 97 /* TypeOfKeyword */: + case 99 /* VoidKeyword */: + case 38 /* PlusPlusToken */: + case 39 /* MinusMinusToken */: + case 24 /* LessThanToken */: + case 111 /* YieldKeyword */: + // Yield always starts an expression. Either it is an identifier (in which case + // it is definitely an expression). Or it's a keyword (either because we're in + // a generator, or in strict mode (or both)) and it started a yield expression. return true; default: + // Error tolerance. If we see the start of some binary operator, we consider + // that the start of an expression. That way we'll parse out a missing identifier, + // give a good message about an identifier being missing, and then consume the + // rest of the binary expression. if (isBinaryOperator()) { return true; } @@ -7155,23 +8373,25 @@ var ts; } } function isStartOfExpressionStatement() { - return token !== 14 && - token !== 83 && - token !== 69 && - token !== 52 && + // As per the grammar, none of '{' or 'function' or 'class' can start an expression statement. + return token !== 14 /* OpenBraceToken */ && + token !== 83 /* FunctionKeyword */ && + token !== 69 /* ClassKeyword */ && + token !== 52 /* AtToken */ && isStartOfExpression(); } function parseExpression() { // Expression[in]: // AssignmentExpression[in] // Expression[in] , AssignmentExpression[in] + // clear the decorator context when parsing Expression, as it should be unambiguous when parsing a decorator var saveDecoratorContext = inDecoratorContext(); if (saveDecoratorContext) { setDecoratorContext(false); } var expr = parseAssignmentExpressionOrHigher(); var operatorToken; - while ((operatorToken = parseOptionalToken(23))) { + while ((operatorToken = parseOptionalToken(23 /* CommaToken */))) { expr = makeBinaryExpression(expr, operatorToken, parseAssignmentExpressionOrHigher()); } if (saveDecoratorContext) { @@ -7180,12 +8400,24 @@ var ts; return expr; } function parseInitializer(inParameter) { - if (token !== 53) { - if (scanner.hasPrecedingLineBreak() || (inParameter && token === 14) || !isStartOfExpression()) { + if (token !== 53 /* EqualsToken */) { + // It's not uncommon during typing for the user to miss writing the '=' token. Check if + // there is no newline after the last token and if we're on an expression. If so, parse + // this as an equals-value clause with a missing equals. + // NOTE: There are two places where we allow equals-value clauses. The first is in a + // variable declarator. The second is with a parameter. For variable declarators + // it's more likely that a { would be a allowed (as an object literal). While this + // is also allowed for parameters, the risk is that we consume the { as an object + // literal when it really will be for the block following the parameter. + if (scanner.hasPrecedingLineBreak() || (inParameter && token === 14 /* OpenBraceToken */) || !isStartOfExpression()) { + // preceding line break, open brace in a parameter (likely a function body) or current token is not an expression - + // do not try to parse initializer return undefined; } } - parseExpected(53); + // Initializer[In, Yield] : + // = AssignmentExpression[?In, ?Yield] + parseExpected(53 /* EqualsToken */); return parseAssignmentExpressionOrHigher(); } function parseAssignmentExpressionOrHigher() { @@ -7198,30 +8430,72 @@ var ts; // // Note: for ease of implementation we treat productions '2' and '3' as the same thing. // (i.e. they're both BinaryExpressions with an assignment operator in it). + // First, do the simple check if we have a YieldExpression (production '5'). if (isYieldExpression()) { return parseYieldExpression(); } + // Then, check if we have an arrow function (production '4') that starts with a parenthesized + // parameter list. If we do, we must *not* recurse for productions 1, 2 or 3. An ArrowFunction is + // not a LeftHandSideExpression, nor does it start a ConditionalExpression. So we are done + // with AssignmentExpression if we see one. var arrowExpression = tryParseParenthesizedArrowFunctionExpression(); if (arrowExpression) { return arrowExpression; } + // Now try to see if we're in production '1', '2' or '3'. A conditional expression can + // start with a LogicalOrExpression, while the assignment productions can only start with + // LeftHandSideExpressions. + // + // So, first, we try to just parse out a BinaryExpression. If we get something that is a + // LeftHandSide or higher, then we can try to parse out the assignment expression part. + // Otherwise, we try to parse out the conditional expression bit. We want to allow any + // binary expression here, so we pass in the 'lowest' precedence here so that it matches + // and consumes anything. var expr = parseBinaryExpressionOrHigher(0); - if (expr.kind === 65 && token === 32) { + // To avoid a look-ahead, we did not handle the case of an arrow function with a single un-parenthesized + // parameter ('x => ...') above. We handle it here by checking if the parsed expression was a single + // identifier and the current token is an arrow. + if (expr.kind === 65 /* Identifier */ && token === 32 /* EqualsGreaterThanToken */) { return parseSimpleArrowFunctionExpression(expr); } + // Now see if we might be in cases '2' or '3'. + // If the expression was a LHS expression, and we have an assignment operator, then + // we're in '2' or '3'. Consume the assignment and return. + // + // Note: we call reScanGreaterToken so that we get an appropriately merged token + // for cases like > > = becoming >>= if (isLeftHandSideExpression(expr) && isAssignmentOperator(reScanGreaterToken())) { return makeBinaryExpression(expr, parseTokenNode(), parseAssignmentExpressionOrHigher()); } + // It wasn't an assignment or a lambda. This is a conditional expression: return parseConditionalExpressionRest(expr); } function isYieldExpression() { - if (token === 111) { + if (token === 111 /* YieldKeyword */) { + // If we have a 'yield' keyword, and htis is a context where yield expressions are + // allowed, then definitely parse out a yield expression. if (inYieldContext()) { return true; } if (inStrictModeContext()) { + // If we're in strict mode, then 'yield' is a keyword, could only ever start + // a yield expression. return true; } + // We're in a context where 'yield expr' is not allowed. However, if we can + // definitely tell that the user was trying to parse a 'yield expr' and not + // just a normal expr that start with a 'yield' identifier, then parse out + // a 'yield expr'. We can then report an error later that they are only + // allowed in generator expressions. + // + // for example, if we see 'yield(foo)', then we'll have to treat that as an + // invocation expression of something called 'yield'. However, if we have + // 'yield foo' then that is not legal as a normal expression, so we can + // definitely recognize this as a yield expression. + // + // for now we just check if the next token is an identifier. More heuristics + // can be added here later as necessary. We just need to make sure that we + // don't accidently consume something legal. return lookAhead(nextTokenIsIdentifierOnSameLine); } return false; @@ -7233,131 +8507,214 @@ var ts; function nextTokenIsIdentifierOrStartOfDestructuringOnTheSameLine() { nextToken(); return !scanner.hasPrecedingLineBreak() && - (isIdentifier() || token === 14 || token === 18); + (isIdentifier() || token === 14 /* OpenBraceToken */ || token === 18 /* OpenBracketToken */); } function parseYieldExpression() { - var node = createNode(172); + var node = createNode(172 /* YieldExpression */); + // YieldExpression[In] : + // yield + // yield [no LineTerminator here] [Lexical goal InputElementRegExp]AssignmentExpression[?In, Yield] + // yield [no LineTerminator here] * [Lexical goal InputElementRegExp]AssignmentExpression[?In, Yield] nextToken(); if (!scanner.hasPrecedingLineBreak() && - (token === 35 || isStartOfExpression())) { - node.asteriskToken = parseOptionalToken(35); + (token === 35 /* AsteriskToken */ || isStartOfExpression())) { + node.asteriskToken = parseOptionalToken(35 /* AsteriskToken */); node.expression = parseAssignmentExpressionOrHigher(); return finishNode(node); } else { + // if the next token is not on the same line as yield. or we don't have an '*' or + // the start of an expressin, then this is just a simple "yield" expression. return finishNode(node); } } function parseSimpleArrowFunctionExpression(identifier) { - ts.Debug.assert(token === 32, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); - var node = createNode(163, identifier.pos); - var parameter = createNode(129, identifier.pos); + ts.Debug.assert(token === 32 /* EqualsGreaterThanToken */, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); + var node = createNode(163 /* ArrowFunction */, identifier.pos); + var parameter = createNode(129 /* Parameter */, identifier.pos); parameter.name = identifier; finishNode(parameter); node.parameters = [parameter]; node.parameters.pos = parameter.pos; node.parameters.end = parameter.end; - node.equalsGreaterThanToken = parseExpectedToken(32, false, ts.Diagnostics._0_expected, "=>"); + node.equalsGreaterThanToken = parseExpectedToken(32 /* EqualsGreaterThanToken */, false, ts.Diagnostics._0_expected, "=>"); node.body = parseArrowFunctionExpressionBody(); return finishNode(node); } function tryParseParenthesizedArrowFunctionExpression() { var triState = isParenthesizedArrowFunctionExpression(); - if (triState === 0) { + if (triState === 0 /* False */) { + // It's definitely not a parenthesized arrow function expression. return undefined; } - var arrowFunction = triState === 1 + // If we definitely have an arrow function, then we can just parse one, not requiring a + // following => or { token. Otherwise, we *might* have an arrow function. Try to parse + // it out, but don't allow any ambiguity, and return 'undefined' if this could be an + // expression instead. + var arrowFunction = triState === 1 /* True */ ? parseParenthesizedArrowFunctionExpressionHead(true) : tryParse(parsePossibleParenthesizedArrowFunctionExpressionHead); if (!arrowFunction) { + // Didn't appear to actually be a parenthesized arrow function. Just bail out. return undefined; } + // If we have an arrow, then try to parse the body. Even if not, try to parse if we + // have an opening brace, just in case we're in an error state. var lastToken = token; - arrowFunction.equalsGreaterThanToken = parseExpectedToken(32, false, ts.Diagnostics._0_expected, "=>"); - arrowFunction.body = (lastToken === 32 || lastToken === 14) + arrowFunction.equalsGreaterThanToken = parseExpectedToken(32 /* EqualsGreaterThanToken */, false, ts.Diagnostics._0_expected, "=>"); + arrowFunction.body = (lastToken === 32 /* EqualsGreaterThanToken */ || lastToken === 14 /* OpenBraceToken */) ? parseArrowFunctionExpressionBody() : parseIdentifier(); return finishNode(arrowFunction); } + // True -> We definitely expect a parenthesized arrow function here. + // False -> There *cannot* be a parenthesized arrow function here. + // Unknown -> There *might* be a parenthesized arrow function here. + // Speculatively look ahead to be sure, and rollback if not. function isParenthesizedArrowFunctionExpression() { - if (token === 16 || token === 24) { + if (token === 16 /* OpenParenToken */ || token === 24 /* LessThanToken */) { return lookAhead(isParenthesizedArrowFunctionExpressionWorker); } - if (token === 32) { - return 1; + if (token === 32 /* EqualsGreaterThanToken */) { + // ERROR RECOVERY TWEAK: + // If we see a standalone => try to parse it as an arrow function expression as that's + // likely what the user intended to write. + return 1 /* True */; } - return 0; + // Definitely not a parenthesized arrow function. + return 0 /* False */; } function isParenthesizedArrowFunctionExpressionWorker() { var first = token; var second = nextToken(); - if (first === 16) { - if (second === 17) { + if (first === 16 /* OpenParenToken */) { + if (second === 17 /* CloseParenToken */) { + // Simple cases: "() =>", "(): ", and "() {". + // This is an arrow function with no parameters. + // The last one is not actually an arrow function, + // but this is probably what the user intended. var third = nextToken(); switch (third) { - case 32: - case 51: - case 14: - return 1; + case 32 /* EqualsGreaterThanToken */: + case 51 /* ColonToken */: + case 14 /* OpenBraceToken */: + return 1 /* True */; default: - return 0; + return 0 /* False */; } } - if (second === 21) { - return 1; + // If encounter "([" or "({", this could be the start of a binding pattern. + // Examples: + // ([ x ]) => { } + // ({ x }) => { } + // ([ x ]) + // ({ x }) + if (second === 18 /* OpenBracketToken */ || second === 14 /* OpenBraceToken */) { + return 2 /* Unknown */; } + // Simple case: "(..." + // This is an arrow function with a rest parameter. + if (second === 21 /* DotDotDotToken */) { + return 1 /* True */; + } + // If we had "(" followed by something that's not an identifier, + // then this definitely doesn't look like a lambda. + // Note: we could be a little more lenient and allow + // "(public" or "(private". These would not ever actually be allowed, + // but we could provide a good error message instead of bailing out. if (!isIdentifier()) { - return 0; + return 0 /* False */; } - if (nextToken() === 51) { - return 1; + // If we have something like "(a:", then we must have a + // type-annotated parameter in an arrow function expression. + if (nextToken() === 51 /* ColonToken */) { + return 1 /* True */; } - return 2; + // This *could* be a parenthesized arrow function. + // Return Unknown to let the caller know. + return 2 /* Unknown */; } else { - ts.Debug.assert(first === 24); + ts.Debug.assert(first === 24 /* LessThanToken */); + // If we have "<" not followed by an identifier, + // then this definitely is not an arrow function. if (!isIdentifier()) { - return 0; + return 0 /* False */; } - return 2; + // This *could* be a parenthesized arrow function. + return 2 /* Unknown */; } } function parsePossibleParenthesizedArrowFunctionExpressionHead() { return parseParenthesizedArrowFunctionExpressionHead(false); } function parseParenthesizedArrowFunctionExpressionHead(allowAmbiguity) { - var node = createNode(163); - fillSignature(51, false, !allowAmbiguity, node); + var node = createNode(163 /* ArrowFunction */); + // Arrow functions are never generators. + // + // If we're speculatively parsing a signature for a parenthesized arrow function, then + // we have to have a complete parameter list. Otherwise we might see something like + // a => (b => c) + // And think that "(b =>" was actually a parenthesized arrow function with a missing + // close paren. + fillSignature(51 /* ColonToken */, false, !allowAmbiguity, node); + // If we couldn't get parameters, we definitely could not parse out an arrow function. if (!node.parameters) { return undefined; } - if (!allowAmbiguity && token !== 32 && token !== 14) { + // Parsing a signature isn't enough. + // Parenthesized arrow signatures often look like other valid expressions. + // For instance: + // - "(x = 10)" is an assignment expression parsed as a signature with a default parameter value. + // - "(x,y)" is a comma expression parsed as a signature with two parameters. + // - "a ? (b): c" will have "(b):" parsed as a signature with a return type annotation. + // + // So we need just a bit of lookahead to ensure that it can only be a signature. + if (!allowAmbiguity && token !== 32 /* EqualsGreaterThanToken */ && token !== 14 /* OpenBraceToken */) { + // Returning undefined here will cause our caller to rewind to where we started from. return undefined; } return node; } function parseArrowFunctionExpressionBody() { - if (token === 14) { + if (token === 14 /* OpenBraceToken */) { return parseFunctionBlock(false, false); } if (isStartOfStatement(true) && !isStartOfExpressionStatement() && - token !== 83 && - token !== 69) { + token !== 83 /* FunctionKeyword */ && + token !== 69 /* ClassKeyword */) { + // Check if we got a plain statement (i.e. no expression-statements, no function/class expressions/declarations) + // + // Here we try to recover from a potential error situation in the case where the + // user meant to supply a block. For example, if the user wrote: + // + // a => + // let v = 0; + // } + // + // they may be missing an open brace. Check to see if that's the case so we can + // try to recover better. If we don't do this, then the next close curly we see may end + // up preemptively closing the containing construct. + // + // Note: even when 'ignoreMissingOpenBrace' is passed as true, parseBody will still error. return parseFunctionBlock(false, true); } return parseAssignmentExpressionOrHigher(); } function parseConditionalExpressionRest(leftOperand) { - var questionToken = parseOptionalToken(50); + // Note: we are passed in an expression which was produced from parseBinaryExpressionOrHigher. + var questionToken = parseOptionalToken(50 /* QuestionToken */); if (!questionToken) { return leftOperand; } - var node = createNode(170, leftOperand.pos); + // Note: we explicitly 'allowIn' in the whenTrue part of the condition expression, and + // we do not that for the 'whenFalse' part. + var node = createNode(170 /* ConditionalExpression */, leftOperand.pos); node.condition = leftOperand; node.questionToken = questionToken; node.whenTrue = doOutsideOfContext(disallowInAndDecoratorContext, parseAssignmentExpressionOrHigher); - node.colonToken = parseExpectedToken(51, false, ts.Diagnostics._0_expected, ts.tokenToString(51)); + node.colonToken = parseExpectedToken(51 /* ColonToken */, false, ts.Diagnostics._0_expected, ts.tokenToString(51 /* ColonToken */)); node.whenFalse = parseAssignmentExpressionOrHigher(); return finishNode(node); } @@ -7366,16 +8723,19 @@ var ts; return parseBinaryExpressionRest(precedence, leftOperand); } function isInOrOfKeyword(t) { - return t === 86 || t === 125; + return t === 86 /* InKeyword */ || t === 125 /* OfKeyword */; } function parseBinaryExpressionRest(precedence, leftOperand) { while (true) { + // We either have a binary operator here, or we're finished. We call + // reScanGreaterToken so that we merge token sequences like > and = into >= reScanGreaterToken(); var newPrecedence = getBinaryOperatorPrecedence(); + // Check the precedence to see if we should "take" this operator if (newPrecedence <= precedence) { break; } - if (token === 86 && inDisallowInContext()) { + if (token === 86 /* InKeyword */ && inDisallowInContext()) { break; } leftOperand = makeBinaryExpression(leftOperand, parseTokenNode(), parseBinaryExpressionOrHigher(newPrecedence)); @@ -7383,97 +8743,99 @@ var ts; return leftOperand; } function isBinaryOperator() { - if (inDisallowInContext() && token === 86) { + if (inDisallowInContext() && token === 86 /* InKeyword */) { return false; } return getBinaryOperatorPrecedence() > 0; } function getBinaryOperatorPrecedence() { switch (token) { - case 49: + case 49 /* BarBarToken */: return 1; - case 48: + case 48 /* AmpersandAmpersandToken */: return 2; - case 44: + case 44 /* BarToken */: return 3; - case 45: + case 45 /* CaretToken */: return 4; - case 43: + case 43 /* AmpersandToken */: return 5; - case 28: - case 29: - case 30: - case 31: + case 28 /* EqualsEqualsToken */: + case 29 /* ExclamationEqualsToken */: + case 30 /* EqualsEqualsEqualsToken */: + case 31 /* ExclamationEqualsEqualsToken */: return 6; - case 24: - case 25: - case 26: - case 27: - case 87: - case 86: + case 24 /* LessThanToken */: + case 25 /* GreaterThanToken */: + case 26 /* LessThanEqualsToken */: + case 27 /* GreaterThanEqualsToken */: + case 87 /* InstanceOfKeyword */: + case 86 /* InKeyword */: return 7; - case 40: - case 41: - case 42: + case 40 /* LessThanLessThanToken */: + case 41 /* GreaterThanGreaterThanToken */: + case 42 /* GreaterThanGreaterThanGreaterThanToken */: return 8; - case 33: - case 34: + case 33 /* PlusToken */: + case 34 /* MinusToken */: return 9; - case 35: - case 36: - case 37: + case 35 /* AsteriskToken */: + case 36 /* SlashToken */: + case 37 /* PercentToken */: return 10; } + // -1 is lower than all other precedences. Returning it will cause binary expression + // parsing to stop. return -1; } function makeBinaryExpression(left, operatorToken, right) { - var node = createNode(169, left.pos); + var node = createNode(169 /* BinaryExpression */, left.pos); node.left = left; node.operatorToken = operatorToken; node.right = right; return finishNode(node); } function parsePrefixUnaryExpression() { - var node = createNode(167); + var node = createNode(167 /* PrefixUnaryExpression */); node.operator = token; nextToken(); node.operand = parseUnaryExpressionOrHigher(); return finishNode(node); } function parseDeleteExpression() { - var node = createNode(164); + var node = createNode(164 /* DeleteExpression */); nextToken(); node.expression = parseUnaryExpressionOrHigher(); return finishNode(node); } function parseTypeOfExpression() { - var node = createNode(165); + var node = createNode(165 /* TypeOfExpression */); nextToken(); node.expression = parseUnaryExpressionOrHigher(); return finishNode(node); } function parseVoidExpression() { - var node = createNode(166); + var node = createNode(166 /* VoidExpression */); nextToken(); node.expression = parseUnaryExpressionOrHigher(); return finishNode(node); } function parseUnaryExpressionOrHigher() { switch (token) { - case 33: - case 34: - case 47: - case 46: - case 38: - case 39: + case 33 /* PlusToken */: + case 34 /* MinusToken */: + case 47 /* TildeToken */: + case 46 /* ExclamationToken */: + case 38 /* PlusPlusToken */: + case 39 /* MinusMinusToken */: return parsePrefixUnaryExpression(); - case 74: + case 74 /* DeleteKeyword */: return parseDeleteExpression(); - case 97: + case 97 /* TypeOfKeyword */: return parseTypeOfExpression(); - case 99: + case 99 /* VoidKeyword */: return parseVoidExpression(); - case 24: + case 24 /* LessThanToken */: return parseTypeAssertion(); default: return parsePostfixExpressionOrHigher(); @@ -7482,8 +8844,8 @@ var ts; function parsePostfixExpressionOrHigher() { var expression = parseLeftHandSideExpressionOrHigher(); ts.Debug.assert(isLeftHandSideExpression(expression)); - if ((token === 38 || token === 39) && !scanner.hasPrecedingLineBreak()) { - var node = createNode(168, expression.pos); + if ((token === 38 /* PlusPlusToken */ || token === 39 /* MinusMinusToken */) && !scanner.hasPrecedingLineBreak()) { + var node = createNode(168 /* PostfixUnaryExpression */, expression.pos); node.operand = expression; node.operator = token; nextToken(); @@ -7492,63 +8854,147 @@ var ts; return expression; } function parseLeftHandSideExpressionOrHigher() { - var expression = token === 91 + // Original Ecma: + // LeftHandSideExpression: See 11.2 + // NewExpression + // CallExpression + // + // Our simplification: + // + // LeftHandSideExpression: See 11.2 + // MemberExpression + // CallExpression + // + // See comment in parseMemberExpressionOrHigher on how we replaced NewExpression with + // MemberExpression to make our lives easier. + // + // to best understand the below code, it's important to see how CallExpression expands + // out into its own productions: + // + // CallExpression: + // MemberExpression Arguments + // CallExpression Arguments + // CallExpression[Expression] + // CallExpression.IdentifierName + // super ( ArgumentListopt ) + // super.IdentifierName + // + // Because of the recursion in these calls, we need to bottom out first. There are two + // bottom out states we can run into. Either we see 'super' which must start either of + // the last two CallExpression productions. Or we have a MemberExpression which either + // completes the LeftHandSideExpression, or starts the beginning of the first four + // CallExpression productions. + var expression = token === 91 /* SuperKeyword */ ? parseSuperExpression() : parseMemberExpressionOrHigher(); + // Now, we *may* be complete. However, we might have consumed the start of a + // CallExpression. As such, we need to consume the rest of it here to be complete. return parseCallExpressionRest(expression); } function parseMemberExpressionOrHigher() { + // Note: to make our lives simpler, we decompose the the NewExpression productions and + // place ObjectCreationExpression and FunctionExpression into PrimaryExpression. + // like so: + // + // PrimaryExpression : See 11.1 + // this + // Identifier + // Literal + // ArrayLiteral + // ObjectLiteral + // (Expression) + // FunctionExpression + // new MemberExpression Arguments? + // + // MemberExpression : See 11.2 + // PrimaryExpression + // MemberExpression[Expression] + // MemberExpression.IdentifierName + // + // CallExpression : See 11.2 + // MemberExpression + // CallExpression Arguments + // CallExpression[Expression] + // CallExpression.IdentifierName + // + // Technically this is ambiguous. i.e. CallExpression defines: + // + // CallExpression: + // CallExpression Arguments + // + // If you see: "new Foo()" + // + // Then that could be treated as a single ObjectCreationExpression, or it could be + // treated as the invocation of "new Foo". We disambiguate that in code (to match + // the original grammar) by making sure that if we see an ObjectCreationExpression + // we always consume arguments if they are there. So we treat "new Foo()" as an + // object creation only, and not at all as an invocation) Another way to think + // about this is that for every "new" that we see, we will consume an argument list if + // it is there as part of the *associated* object creation node. Any additional + // argument lists we see, will become invocation expressions. + // + // Because there are no other places in the grammar now that refer to FunctionExpression + // or ObjectCreationExpression, it is safe to push down into the PrimaryExpression + // production. + // + // Because CallExpression and MemberExpression are left recursive, we need to bottom out + // of the recursion immediately. So we parse out a primary expression to start with. var expression = parsePrimaryExpression(); return parseMemberExpressionRest(expression); } function parseSuperExpression() { var expression = parseTokenNode(); - if (token === 16 || token === 20) { + if (token === 16 /* OpenParenToken */ || token === 20 /* DotToken */) { return expression; } - var node = createNode(155, expression.pos); + // If we have seen "super" it must be followed by '(' or '.'. + // If it wasn't then just try to parse out a '.' and report an error. + var node = createNode(155 /* PropertyAccessExpression */, expression.pos); node.expression = expression; - node.dotToken = parseExpectedToken(20, false, ts.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access); + node.dotToken = parseExpectedToken(20 /* DotToken */, false, ts.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access); node.name = parseRightSideOfDot(true); return finishNode(node); } function parseTypeAssertion() { - var node = createNode(160); - parseExpected(24); + var node = createNode(160 /* TypeAssertionExpression */); + parseExpected(24 /* LessThanToken */); node.type = parseType(); - parseExpected(25); + parseExpected(25 /* GreaterThanToken */); node.expression = parseUnaryExpressionOrHigher(); return finishNode(node); } function parseMemberExpressionRest(expression) { while (true) { - var dotToken = parseOptionalToken(20); + var dotToken = parseOptionalToken(20 /* DotToken */); if (dotToken) { - var propertyAccess = createNode(155, expression.pos); + var propertyAccess = createNode(155 /* PropertyAccessExpression */, expression.pos); propertyAccess.expression = expression; propertyAccess.dotToken = dotToken; propertyAccess.name = parseRightSideOfDot(true); expression = finishNode(propertyAccess); continue; } - if (!inDecoratorContext() && parseOptional(18)) { - var indexedAccess = createNode(156, expression.pos); + // when in the [Decorator] context, we do not parse ElementAccess as it could be part of a ComputedPropertyName + if (!inDecoratorContext() && parseOptional(18 /* OpenBracketToken */)) { + var indexedAccess = createNode(156 /* ElementAccessExpression */, expression.pos); indexedAccess.expression = expression; - if (token !== 19) { + // It's not uncommon for a user to write: "new Type[]". + // Check for that common pattern and report a better error message. + if (token !== 19 /* CloseBracketToken */) { indexedAccess.argumentExpression = allowInAnd(parseExpression); - if (indexedAccess.argumentExpression.kind === 8 || indexedAccess.argumentExpression.kind === 7) { + if (indexedAccess.argumentExpression.kind === 8 /* StringLiteral */ || indexedAccess.argumentExpression.kind === 7 /* NumericLiteral */) { var literal = indexedAccess.argumentExpression; literal.text = internIdentifier(literal.text); } } - parseExpected(19); + parseExpected(19 /* CloseBracketToken */); expression = finishNode(indexedAccess); continue; } - if (token === 10 || token === 11) { - var tagExpression = createNode(159, expression.pos); + if (token === 10 /* NoSubstitutionTemplateLiteral */ || token === 11 /* TemplateHead */) { + var tagExpression = createNode(159 /* TaggedTemplateExpression */, expression.pos); tagExpression.tag = expression; - tagExpression.template = token === 10 + tagExpression.template = token === 10 /* NoSubstitutionTemplateLiteral */ ? parseLiteralNode() : parseTemplateExpression(); expression = finishNode(tagExpression); @@ -7560,20 +9006,24 @@ var ts; function parseCallExpressionRest(expression) { while (true) { expression = parseMemberExpressionRest(expression); - if (token === 24) { + if (token === 24 /* LessThanToken */) { + // See if this is the start of a generic invocation. If so, consume it and + // keep checking for postfix expressions. Otherwise, it's just a '<' that's + // part of an arithmetic expression. Break out so we consume it higher in the + // stack. var typeArguments = tryParse(parseTypeArgumentsInExpression); if (!typeArguments) { return expression; } - var callExpr = createNode(157, expression.pos); + var callExpr = createNode(157 /* CallExpression */, expression.pos); callExpr.expression = expression; callExpr.typeArguments = typeArguments; callExpr.arguments = parseArgumentList(); expression = finishNode(callExpr); continue; } - else if (token === 16) { - var callExpr = createNode(157, expression.pos); + else if (token === 16 /* OpenParenToken */) { + var callExpr = createNode(157 /* CallExpression */, expression.pos); callExpr.expression = expression; callExpr.arguments = parseArgumentList(); expression = finishNode(callExpr); @@ -7583,121 +9033,133 @@ var ts; } } function parseArgumentList() { - parseExpected(16); - var result = parseDelimitedList(12, parseArgumentExpression); - parseExpected(17); + parseExpected(16 /* OpenParenToken */); + var result = parseDelimitedList(12 /* ArgumentExpressions */, parseArgumentExpression); + parseExpected(17 /* CloseParenToken */); return result; } function parseTypeArgumentsInExpression() { - if (!parseOptional(24)) { + if (!parseOptional(24 /* LessThanToken */)) { return undefined; } - var typeArguments = parseDelimitedList(17, parseType); - if (!parseExpected(25)) { + var typeArguments = parseDelimitedList(17 /* TypeArguments */, parseType); + if (!parseExpected(25 /* GreaterThanToken */)) { + // If it doesn't have the closing > then it's definitely not an type argument list. return undefined; } + // If we have a '<', then only parse this as a arugment list if the type arguments + // are complete and we have an open paren. if we don't, rewind and return nothing. return typeArguments && canFollowTypeArgumentsInExpression() ? typeArguments : undefined; } function canFollowTypeArgumentsInExpression() { switch (token) { - case 16: - case 20: - case 17: - case 19: - case 51: - case 22: - case 50: - case 28: - case 30: - case 29: - case 31: - case 48: - case 49: - case 45: - case 43: - case 44: - case 15: - case 1: + case 16 /* OpenParenToken */: // foo( + // this case are the only case where this token can legally follow a type argument + // list. So we definitely want to treat this as a type arg list. + case 20 /* DotToken */: // foo. + case 17 /* CloseParenToken */: // foo) + case 19 /* CloseBracketToken */: // foo] + case 51 /* ColonToken */: // foo: + case 22 /* SemicolonToken */: // foo; + case 50 /* QuestionToken */: // foo? + case 28 /* EqualsEqualsToken */: // foo == + case 30 /* EqualsEqualsEqualsToken */: // foo === + case 29 /* ExclamationEqualsToken */: // foo != + case 31 /* ExclamationEqualsEqualsToken */: // foo !== + case 48 /* AmpersandAmpersandToken */: // foo && + case 49 /* BarBarToken */: // foo || + case 45 /* CaretToken */: // foo ^ + case 43 /* AmpersandToken */: // foo & + case 44 /* BarToken */: // foo | + case 15 /* CloseBraceToken */: // foo } + case 1 /* EndOfFileToken */: + // these cases can't legally follow a type arg list. However, they're not legal + // expressions either. The user is probably in the middle of a generic type. So + // treat it as such. return true; - case 23: - case 14: + case 23 /* CommaToken */: // foo, + case 14 /* OpenBraceToken */: // foo { + // We don't want to treat these as type arguments. Otherwise we'll parse this + // as an invocation expression. Instead, we want to parse out the expression + // in isolation from the type arguments. default: + // Anything else treat as an expression. return false; } } function parsePrimaryExpression() { switch (token) { - case 7: - case 8: - case 10: + case 7 /* NumericLiteral */: + case 8 /* StringLiteral */: + case 10 /* NoSubstitutionTemplateLiteral */: return parseLiteralNode(); - case 93: - case 91: - case 89: - case 95: - case 80: + case 93 /* ThisKeyword */: + case 91 /* SuperKeyword */: + case 89 /* NullKeyword */: + case 95 /* TrueKeyword */: + case 80 /* FalseKeyword */: return parseTokenNode(); - case 16: + case 16 /* OpenParenToken */: return parseParenthesizedExpression(); - case 18: + case 18 /* OpenBracketToken */: return parseArrayLiteralExpression(); - case 14: + case 14 /* OpenBraceToken */: return parseObjectLiteralExpression(); - case 69: + case 69 /* ClassKeyword */: return parseClassExpression(); - case 83: + case 83 /* FunctionKeyword */: return parseFunctionExpression(); - case 88: + case 88 /* NewKeyword */: return parseNewExpression(); - case 36: - case 57: - if (reScanSlashToken() === 9) { + case 36 /* SlashToken */: + case 57 /* SlashEqualsToken */: + if (reScanSlashToken() === 9 /* RegularExpressionLiteral */) { return parseLiteralNode(); } break; - case 11: + case 11 /* TemplateHead */: return parseTemplateExpression(); } return parseIdentifier(ts.Diagnostics.Expression_expected); } function parseParenthesizedExpression() { - var node = createNode(161); - parseExpected(16); + var node = createNode(161 /* ParenthesizedExpression */); + parseExpected(16 /* OpenParenToken */); node.expression = allowInAnd(parseExpression); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); return finishNode(node); } function parseSpreadElement() { - var node = createNode(173); - parseExpected(21); + var node = createNode(173 /* SpreadElementExpression */); + parseExpected(21 /* DotDotDotToken */); node.expression = parseAssignmentExpressionOrHigher(); return finishNode(node); } function parseArgumentOrArrayLiteralElement() { - return token === 21 ? parseSpreadElement() : - token === 23 ? createNode(175) : + return token === 21 /* DotDotDotToken */ ? parseSpreadElement() : + token === 23 /* CommaToken */ ? createNode(175 /* OmittedExpression */) : parseAssignmentExpressionOrHigher(); } function parseArgumentExpression() { return doOutsideOfContext(disallowInAndDecoratorContext, parseArgumentOrArrayLiteralElement); } function parseArrayLiteralExpression() { - var node = createNode(153); - parseExpected(18); + var node = createNode(153 /* ArrayLiteralExpression */); + parseExpected(18 /* OpenBracketToken */); if (scanner.hasPrecedingLineBreak()) - node.flags |= 512; - node.elements = parseDelimitedList(14, parseArgumentOrArrayLiteralElement); - parseExpected(19); + node.flags |= 512 /* MultiLine */; + node.elements = parseDelimitedList(14 /* ArrayLiteralMembers */, parseArgumentOrArrayLiteralElement); + parseExpected(19 /* CloseBracketToken */); return finishNode(node); } function tryParseAccessorDeclaration(fullStart, decorators, modifiers) { - if (parseContextualModifier(116)) { - return parseAccessorDeclaration(136, fullStart, decorators, modifiers); + if (parseContextualModifier(116 /* GetKeyword */)) { + return parseAccessorDeclaration(136 /* GetAccessor */, fullStart, decorators, modifiers); } - else if (parseContextualModifier(120)) { - return parseAccessorDeclaration(137, fullStart, decorators, modifiers); + else if (parseContextualModifier(120 /* SetKeyword */)) { + return parseAccessorDeclaration(137 /* SetAccessor */, fullStart, decorators, modifiers); } return undefined; } @@ -7709,49 +9171,55 @@ var ts; if (accessor) { return accessor; } - var asteriskToken = parseOptionalToken(35); + var asteriskToken = parseOptionalToken(35 /* AsteriskToken */); var tokenIsIdentifier = isIdentifier(); var nameToken = token; var propertyName = parsePropertyName(); - var questionToken = parseOptionalToken(50); - if (asteriskToken || token === 16 || token === 24) { + // Disallowing of optional property assignments happens in the grammar checker. + var questionToken = parseOptionalToken(50 /* QuestionToken */); + if (asteriskToken || token === 16 /* OpenParenToken */ || token === 24 /* LessThanToken */) { return parseMethodDeclaration(fullStart, decorators, modifiers, asteriskToken, propertyName, questionToken); } - if ((token === 23 || token === 15) && tokenIsIdentifier) { - var shorthandDeclaration = createNode(225, fullStart); + // Parse to check if it is short-hand property assignment or normal property assignment + if ((token === 23 /* CommaToken */ || token === 15 /* CloseBraceToken */) && tokenIsIdentifier) { + var shorthandDeclaration = createNode(225 /* ShorthandPropertyAssignment */, fullStart); shorthandDeclaration.name = propertyName; shorthandDeclaration.questionToken = questionToken; return finishNode(shorthandDeclaration); } else { - var propertyAssignment = createNode(224, fullStart); + var propertyAssignment = createNode(224 /* PropertyAssignment */, fullStart); propertyAssignment.name = propertyName; propertyAssignment.questionToken = questionToken; - parseExpected(51); + parseExpected(51 /* ColonToken */); propertyAssignment.initializer = allowInAnd(parseAssignmentExpressionOrHigher); return finishNode(propertyAssignment); } } function parseObjectLiteralExpression() { - var node = createNode(154); - parseExpected(14); + var node = createNode(154 /* ObjectLiteralExpression */); + parseExpected(14 /* OpenBraceToken */); if (scanner.hasPrecedingLineBreak()) { - node.flags |= 512; + node.flags |= 512 /* MultiLine */; } - node.properties = parseDelimitedList(13, parseObjectLiteralElement, true); - parseExpected(15); + node.properties = parseDelimitedList(13 /* ObjectLiteralMembers */, parseObjectLiteralElement, true); + parseExpected(15 /* CloseBraceToken */); return finishNode(node); } function parseFunctionExpression() { + // GeneratorExpression : + // function * BindingIdentifier[Yield]opt (FormalParameters[Yield, GeneratorParameter]) { GeneratorBody[Yield] } + // FunctionExpression: + // function BindingIdentifieropt(FormalParameters) { FunctionBody } var saveDecoratorContext = inDecoratorContext(); if (saveDecoratorContext) { setDecoratorContext(false); } - var node = createNode(162); - parseExpected(83); - node.asteriskToken = parseOptionalToken(35); + var node = createNode(162 /* FunctionExpression */); + parseExpected(83 /* FunctionKeyword */); + node.asteriskToken = parseOptionalToken(35 /* AsteriskToken */); node.name = node.asteriskToken ? doInYieldContext(parseOptionalIdentifier) : parseOptionalIdentifier(); - fillSignature(51, !!node.asteriskToken, false, node); + fillSignature(51 /* ColonToken */, !!node.asteriskToken, false, node); node.body = parseFunctionBlock(!!node.asteriskToken, false); if (saveDecoratorContext) { setDecoratorContext(true); @@ -7762,20 +9230,21 @@ var ts; return isIdentifier() ? parseIdentifier() : undefined; } function parseNewExpression() { - var node = createNode(158); - parseExpected(88); + var node = createNode(158 /* NewExpression */); + parseExpected(88 /* NewKeyword */); node.expression = parseMemberExpressionOrHigher(); node.typeArguments = tryParse(parseTypeArgumentsInExpression); - if (node.typeArguments || token === 16) { + if (node.typeArguments || token === 16 /* OpenParenToken */) { node.arguments = parseArgumentList(); } return finishNode(node); } + // STATEMENTS function parseBlock(ignoreMissingOpenBrace, checkForStrictMode, diagnosticMessage) { - var node = createNode(179); - if (parseExpected(14, diagnosticMessage) || ignoreMissingOpenBrace) { - node.statements = parseList(2, checkForStrictMode, parseStatement); - parseExpected(15); + var node = createNode(179 /* Block */); + if (parseExpected(14 /* OpenBraceToken */, diagnosticMessage) || ignoreMissingOpenBrace) { + node.statements = parseList(2 /* BlockStatements */, checkForStrictMode, parseStatement); + parseExpected(15 /* CloseBraceToken */); } else { node.statements = createMissingList(); @@ -7785,6 +9254,8 @@ var ts; function parseFunctionBlock(allowYield, ignoreMissingOpenBrace, diagnosticMessage) { var savedYieldContext = inYieldContext(); setYieldContext(allowYield); + // We may be in a [Decorator] context when parsing a function expression or + // arrow function. The body of the function is not in [Decorator] context. var saveDecoratorContext = inDecoratorContext(); if (saveDecoratorContext) { setDecoratorContext(false); @@ -7797,47 +9268,51 @@ var ts; return block; } function parseEmptyStatement() { - var node = createNode(181); - parseExpected(22); + var node = createNode(181 /* EmptyStatement */); + parseExpected(22 /* SemicolonToken */); return finishNode(node); } function parseIfStatement() { - var node = createNode(183); - parseExpected(84); - parseExpected(16); + var node = createNode(183 /* IfStatement */); + parseExpected(84 /* IfKeyword */); + parseExpected(16 /* OpenParenToken */); node.expression = allowInAnd(parseExpression); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); node.thenStatement = parseStatement(); - node.elseStatement = parseOptional(76) ? parseStatement() : undefined; + node.elseStatement = parseOptional(76 /* ElseKeyword */) ? parseStatement() : undefined; return finishNode(node); } function parseDoStatement() { - var node = createNode(184); - parseExpected(75); + var node = createNode(184 /* DoStatement */); + parseExpected(75 /* DoKeyword */); node.statement = parseStatement(); - parseExpected(100); - parseExpected(16); + parseExpected(100 /* WhileKeyword */); + parseExpected(16 /* OpenParenToken */); node.expression = allowInAnd(parseExpression); - parseExpected(17); - parseOptional(22); + parseExpected(17 /* CloseParenToken */); + // From: https://mail.mozilla.org/pipermail/es-discuss/2011-August/016188.html + // 157 min --- All allen at wirfs-brock.com CONF --- "do{;}while(false)false" prohibited in + // spec but allowed in consensus reality. Approved -- this is the de-facto standard whereby + // do;while(0)x will have a semicolon inserted before x. + parseOptional(22 /* SemicolonToken */); return finishNode(node); } function parseWhileStatement() { - var node = createNode(185); - parseExpected(100); - parseExpected(16); + var node = createNode(185 /* WhileStatement */); + parseExpected(100 /* WhileKeyword */); + parseExpected(16 /* OpenParenToken */); node.expression = allowInAnd(parseExpression); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); node.statement = parseStatement(); return finishNode(node); } function parseForOrForInOrForOfStatement() { var pos = getNodePos(); - parseExpected(82); - parseExpected(16); + parseExpected(82 /* ForKeyword */); + parseExpected(16 /* OpenParenToken */); var initializer = undefined; - if (token !== 22) { - if (token === 98 || token === 105 || token === 70) { + if (token !== 22 /* SemicolonToken */) { + if (token === 98 /* VarKeyword */ || token === 105 /* LetKeyword */ || token === 70 /* ConstKeyword */) { initializer = parseVariableDeclarationList(true); } else { @@ -7845,32 +9320,32 @@ var ts; } } var forOrForInOrForOfStatement; - if (parseOptional(86)) { - var forInStatement = createNode(187, pos); + if (parseOptional(86 /* InKeyword */)) { + var forInStatement = createNode(187 /* ForInStatement */, pos); forInStatement.initializer = initializer; forInStatement.expression = allowInAnd(parseExpression); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); forOrForInOrForOfStatement = forInStatement; } - else if (parseOptional(125)) { - var forOfStatement = createNode(188, pos); + else if (parseOptional(125 /* OfKeyword */)) { + var forOfStatement = createNode(188 /* ForOfStatement */, pos); forOfStatement.initializer = initializer; forOfStatement.expression = allowInAnd(parseAssignmentExpressionOrHigher); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); forOrForInOrForOfStatement = forOfStatement; } else { - var forStatement = createNode(186, pos); + var forStatement = createNode(186 /* ForStatement */, pos); forStatement.initializer = initializer; - parseExpected(22); - if (token !== 22 && token !== 17) { + parseExpected(22 /* SemicolonToken */); + if (token !== 22 /* SemicolonToken */ && token !== 17 /* CloseParenToken */) { forStatement.condition = allowInAnd(parseExpression); } - parseExpected(22); - if (token !== 17) { + parseExpected(22 /* SemicolonToken */); + if (token !== 17 /* CloseParenToken */) { forStatement.iterator = allowInAnd(parseExpression); } - parseExpected(17); + parseExpected(17 /* CloseParenToken */); forOrForInOrForOfStatement = forStatement; } forOrForInOrForOfStatement.statement = parseStatement(); @@ -7878,7 +9353,7 @@ var ts; } function parseBreakOrContinueStatement(kind) { var node = createNode(kind); - parseExpected(kind === 190 ? 66 : 71); + parseExpected(kind === 190 /* BreakStatement */ ? 66 /* BreakKeyword */ : 71 /* ContinueKeyword */); if (!canParseSemicolon()) { node.label = parseIdentifier(); } @@ -7886,8 +9361,8 @@ var ts; return finishNode(node); } function parseReturnStatement() { - var node = createNode(191); - parseExpected(90); + var node = createNode(191 /* ReturnStatement */); + parseExpected(90 /* ReturnKeyword */); if (!canParseSemicolon()) { node.expression = allowInAnd(parseExpression); } @@ -7895,98 +9370,115 @@ var ts; return finishNode(node); } function parseWithStatement() { - var node = createNode(192); - parseExpected(101); - parseExpected(16); + var node = createNode(192 /* WithStatement */); + parseExpected(101 /* WithKeyword */); + parseExpected(16 /* OpenParenToken */); node.expression = allowInAnd(parseExpression); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); node.statement = parseStatement(); return finishNode(node); } function parseCaseClause() { - var node = createNode(220); - parseExpected(67); + var node = createNode(220 /* CaseClause */); + parseExpected(67 /* CaseKeyword */); node.expression = allowInAnd(parseExpression); - parseExpected(51); - node.statements = parseList(4, false, parseStatement); + parseExpected(51 /* ColonToken */); + node.statements = parseList(4 /* SwitchClauseStatements */, false, parseStatement); return finishNode(node); } function parseDefaultClause() { - var node = createNode(221); - parseExpected(73); - parseExpected(51); - node.statements = parseList(4, false, parseStatement); + var node = createNode(221 /* DefaultClause */); + parseExpected(73 /* DefaultKeyword */); + parseExpected(51 /* ColonToken */); + node.statements = parseList(4 /* SwitchClauseStatements */, false, parseStatement); return finishNode(node); } function parseCaseOrDefaultClause() { - return token === 67 ? parseCaseClause() : parseDefaultClause(); + return token === 67 /* CaseKeyword */ ? parseCaseClause() : parseDefaultClause(); } function parseSwitchStatement() { - var node = createNode(193); - parseExpected(92); - parseExpected(16); + var node = createNode(193 /* SwitchStatement */); + parseExpected(92 /* SwitchKeyword */); + parseExpected(16 /* OpenParenToken */); node.expression = allowInAnd(parseExpression); - parseExpected(17); - var caseBlock = createNode(207, scanner.getStartPos()); - parseExpected(14); - caseBlock.clauses = parseList(3, false, parseCaseOrDefaultClause); - parseExpected(15); + parseExpected(17 /* CloseParenToken */); + var caseBlock = createNode(207 /* CaseBlock */, scanner.getStartPos()); + parseExpected(14 /* OpenBraceToken */); + caseBlock.clauses = parseList(3 /* SwitchClauses */, false, parseCaseOrDefaultClause); + parseExpected(15 /* CloseBraceToken */); node.caseBlock = finishNode(caseBlock); return finishNode(node); } function parseThrowStatement() { // ThrowStatement[Yield] : // throw [no LineTerminator here]Expression[In, ?Yield]; - var node = createNode(195); - parseExpected(94); + // Because of automatic semicolon insertion, we need to report error if this + // throw could be terminated with a semicolon. Note: we can't call 'parseExpression' + // directly as that might consume an expression on the following line. + // We just return 'undefined' in that case. The actual error will be reported in the + // grammar walker. + var node = createNode(195 /* ThrowStatement */); + parseExpected(94 /* ThrowKeyword */); node.expression = scanner.hasPrecedingLineBreak() ? undefined : allowInAnd(parseExpression); parseSemicolon(); return finishNode(node); } + // TODO: Review for error recovery function parseTryStatement() { - var node = createNode(196); - parseExpected(96); + var node = createNode(196 /* TryStatement */); + parseExpected(96 /* TryKeyword */); node.tryBlock = parseBlock(false, false); - node.catchClause = token === 68 ? parseCatchClause() : undefined; - if (!node.catchClause || token === 81) { - parseExpected(81); + node.catchClause = token === 68 /* CatchKeyword */ ? parseCatchClause() : undefined; + // If we don't have a catch clause, then we must have a finally clause. Try to parse + // one out no matter what. + if (!node.catchClause || token === 81 /* FinallyKeyword */) { + parseExpected(81 /* FinallyKeyword */); node.finallyBlock = parseBlock(false, false); } return finishNode(node); } function parseCatchClause() { - var result = createNode(223); - parseExpected(68); - if (parseExpected(16)) { + var result = createNode(223 /* CatchClause */); + parseExpected(68 /* CatchKeyword */); + if (parseExpected(16 /* OpenParenToken */)) { result.variableDeclaration = parseVariableDeclaration(); } - parseExpected(17); + parseExpected(17 /* CloseParenToken */); result.block = parseBlock(false, false); return finishNode(result); } function parseDebuggerStatement() { - var node = createNode(197); - parseExpected(72); + var node = createNode(197 /* DebuggerStatement */); + parseExpected(72 /* DebuggerKeyword */); parseSemicolon(); return finishNode(node); } function parseExpressionOrLabeledStatement() { + // Avoiding having to do the lookahead for a labeled statement by just trying to parse + // out an expression, seeing if it is identifier and then seeing if it is followed by + // a colon. var fullStart = scanner.getStartPos(); var expression = allowInAnd(parseExpression); - if (expression.kind === 65 && parseOptional(51)) { - var labeledStatement = createNode(194, fullStart); + if (expression.kind === 65 /* Identifier */ && parseOptional(51 /* ColonToken */)) { + var labeledStatement = createNode(194 /* LabeledStatement */, fullStart); labeledStatement.label = expression; labeledStatement.statement = parseStatement(); return finishNode(labeledStatement); } else { - var expressionStatement = createNode(182, fullStart); + var expressionStatement = createNode(182 /* ExpressionStatement */, fullStart); expressionStatement.expression = expression; parseSemicolon(); return finishNode(expressionStatement); } } function isStartOfStatement(inErrorRecovery) { + // Functions, variable statements and classes are allowed as a statement. But as per + // the grammar, they also allow modifiers. So we have to check for those statements + // that might be following modifiers.This ensures that things work properly when + // incrementally parsing as the parser will produce the same FunctionDeclaraiton, + // VariableStatement or ClassDeclaration, if it has the same text regardless of whether + // it is inside a block or not. if (ts.isModifier(token)) { var result = lookAhead(parseVariableStatementOrFunctionDeclarationOrClassDeclarationWithDecoratorsOrModifiers); if (result) { @@ -7994,42 +9486,57 @@ var ts; } } switch (token) { - case 22: + case 22 /* SemicolonToken */: + // If we're in error recovery, then we don't want to treat ';' as an empty statement. + // The problem is that ';' can show up in far too many contexts, and if we see one + // and assume it's a statement, then we may bail out inappropriately from whatever + // we're parsing. For example, if we have a semicolon in the middle of a class, then + // we really don't want to assume the class is over and we're on a statement in the + // outer module. We just want to consume and move on. return !inErrorRecovery; - case 14: - case 98: - case 105: - case 83: - case 69: - case 84: - case 75: - case 100: - case 82: - case 71: - case 66: - case 90: - case 101: - case 92: - case 94: - case 96: - case 72: - case 68: - case 81: + case 14 /* OpenBraceToken */: + case 98 /* VarKeyword */: + case 105 /* LetKeyword */: + case 83 /* FunctionKeyword */: + case 69 /* ClassKeyword */: + case 84 /* IfKeyword */: + case 75 /* DoKeyword */: + case 100 /* WhileKeyword */: + case 82 /* ForKeyword */: + case 71 /* ContinueKeyword */: + case 66 /* BreakKeyword */: + case 90 /* ReturnKeyword */: + case 101 /* WithKeyword */: + case 92 /* SwitchKeyword */: + case 94 /* ThrowKeyword */: + case 96 /* TryKeyword */: + case 72 /* DebuggerKeyword */: + // 'catch' and 'finally' do not actually indicate that the code is part of a statement, + // however, we say they are here so that we may gracefully parse them and error later. + case 68 /* CatchKeyword */: + case 81 /* FinallyKeyword */: return true; - case 70: + case 70 /* ConstKeyword */: + // const keyword can precede enum keyword when defining constant enums + // 'const enum' do not start statement. + // In ES 6 'enum' is a future reserved keyword, so it should not be used as identifier var isConstEnum = lookAhead(nextTokenIsEnumKeyword); return !isConstEnum; - case 104: - case 117: - case 77: - case 123: + case 104 /* InterfaceKeyword */: + case 117 /* ModuleKeyword */: + case 77 /* EnumKeyword */: + case 123 /* TypeKeyword */: + // When followed by an identifier, these do not start a statement but might + // instead be following declarations if (isDeclarationStart()) { return false; } - case 109: - case 107: - case 108: - case 110: + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: + case 110 /* StaticKeyword */: + // When followed by an identifier or keyword, these do not start a statement but + // might instead be following type members if (lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine)) { return false; } @@ -8039,7 +9546,7 @@ var ts; } function nextTokenIsEnumKeyword() { nextToken(); - return token === 77; + return token === 77 /* EnumKeyword */; } function nextTokenIsIdentifierOrKeywordOnSameLine() { nextToken(); @@ -8047,49 +9554,61 @@ var ts; } function parseStatement() { switch (token) { - case 14: + case 14 /* OpenBraceToken */: return parseBlock(false, false); - case 98: - case 70: + case 98 /* VarKeyword */: + case 70 /* ConstKeyword */: + // const here should always be parsed as const declaration because of check in 'isStatement' return parseVariableStatement(scanner.getStartPos(), undefined, undefined); - case 83: + case 83 /* FunctionKeyword */: return parseFunctionDeclaration(scanner.getStartPos(), undefined, undefined); - case 69: + case 69 /* ClassKeyword */: return parseClassDeclaration(scanner.getStartPos(), undefined, undefined); - case 22: + case 22 /* SemicolonToken */: return parseEmptyStatement(); - case 84: + case 84 /* IfKeyword */: return parseIfStatement(); - case 75: + case 75 /* DoKeyword */: return parseDoStatement(); - case 100: + case 100 /* WhileKeyword */: return parseWhileStatement(); - case 82: + case 82 /* ForKeyword */: return parseForOrForInOrForOfStatement(); - case 71: - return parseBreakOrContinueStatement(189); - case 66: - return parseBreakOrContinueStatement(190); - case 90: + case 71 /* ContinueKeyword */: + return parseBreakOrContinueStatement(189 /* ContinueStatement */); + case 66 /* BreakKeyword */: + return parseBreakOrContinueStatement(190 /* BreakStatement */); + case 90 /* ReturnKeyword */: return parseReturnStatement(); - case 101: + case 101 /* WithKeyword */: return parseWithStatement(); - case 92: + case 92 /* SwitchKeyword */: return parseSwitchStatement(); - case 94: + case 94 /* ThrowKeyword */: return parseThrowStatement(); - case 96: - case 68: - case 81: + case 96 /* TryKeyword */: + // Include the next two for error recovery. + case 68 /* CatchKeyword */: + case 81 /* FinallyKeyword */: return parseTryStatement(); - case 72: + case 72 /* DebuggerKeyword */: return parseDebuggerStatement(); - case 105: + case 105 /* LetKeyword */: + // If let follows identifier on the same line, it is declaration parse it as variable statement if (isLetDeclaration()) { return parseVariableStatement(scanner.getStartPos(), undefined, undefined); } + // Else parse it like identifier - fall through default: - if (ts.isModifier(token) || token === 52) { + // Functions and variable statements are allowed as a statement. But as per + // the grammar, they also allow modifiers. So we have to check for those + // statements that might be following modifiers. This ensures that things + // work properly when incrementally parsing as the parser will produce the + // same FunctionDeclaraiton or VariableStatement if it has the same text + // regardless of whether it is inside a block or not. + // Even though variable statements and function declarations cannot have decorators, + // we parse them here to provide better error recovery. + if (ts.isModifier(token) || token === 52 /* AtToken */) { var result = tryParse(parseVariableStatementOrFunctionDeclarationOrClassDeclarationWithDecoratorsOrModifiers); if (result) { return result; @@ -8103,51 +9622,53 @@ var ts; var decorators = parseDecorators(); var modifiers = parseModifiers(); switch (token) { - case 70: + case 70 /* ConstKeyword */: var nextTokenIsEnum = lookAhead(nextTokenIsEnumKeyword); if (nextTokenIsEnum) { return undefined; } return parseVariableStatement(start, decorators, modifiers); - case 105: + case 105 /* LetKeyword */: if (!isLetDeclaration()) { return undefined; } return parseVariableStatement(start, decorators, modifiers); - case 98: + case 98 /* VarKeyword */: return parseVariableStatement(start, decorators, modifiers); - case 83: + case 83 /* FunctionKeyword */: return parseFunctionDeclaration(start, decorators, modifiers); - case 69: + case 69 /* ClassKeyword */: return parseClassDeclaration(start, decorators, modifiers); } return undefined; } function parseFunctionBlockOrSemicolon(isGenerator, diagnosticMessage) { - if (token !== 14 && canParseSemicolon()) { + if (token !== 14 /* OpenBraceToken */ && canParseSemicolon()) { parseSemicolon(); return; } return parseFunctionBlock(isGenerator, false, diagnosticMessage); } + // DECLARATIONS function parseArrayBindingElement() { - if (token === 23) { - return createNode(175); + if (token === 23 /* CommaToken */) { + return createNode(175 /* OmittedExpression */); } - var node = createNode(152); - node.dotDotDotToken = parseOptionalToken(21); + var node = createNode(152 /* BindingElement */); + node.dotDotDotToken = parseOptionalToken(21 /* DotDotDotToken */); node.name = parseIdentifierOrPattern(); node.initializer = parseInitializer(false); return finishNode(node); } function parseObjectBindingElement() { - var node = createNode(152); + var node = createNode(152 /* BindingElement */); + // TODO(andersh): Handle computed properties var id = parsePropertyName(); - if (id.kind === 65 && token !== 51) { + if (id.kind === 65 /* Identifier */ && token !== 51 /* ColonToken */) { node.name = id; } else { - parseExpected(51); + parseExpected(51 /* ColonToken */); node.propertyName = id; node.name = parseIdentifierOrPattern(); } @@ -8155,33 +9676,33 @@ var ts; return finishNode(node); } function parseObjectBindingPattern() { - var node = createNode(150); - parseExpected(14); - node.elements = parseDelimitedList(10, parseObjectBindingElement); - parseExpected(15); + var node = createNode(150 /* ObjectBindingPattern */); + parseExpected(14 /* OpenBraceToken */); + node.elements = parseDelimitedList(10 /* ObjectBindingElements */, parseObjectBindingElement); + parseExpected(15 /* CloseBraceToken */); return finishNode(node); } function parseArrayBindingPattern() { - var node = createNode(151); - parseExpected(18); - node.elements = parseDelimitedList(11, parseArrayBindingElement); - parseExpected(19); + var node = createNode(151 /* ArrayBindingPattern */); + parseExpected(18 /* OpenBracketToken */); + node.elements = parseDelimitedList(11 /* ArrayBindingElements */, parseArrayBindingElement); + parseExpected(19 /* CloseBracketToken */); return finishNode(node); } function isIdentifierOrPattern() { - return token === 14 || token === 18 || isIdentifier(); + return token === 14 /* OpenBraceToken */ || token === 18 /* OpenBracketToken */ || isIdentifier(); } function parseIdentifierOrPattern() { - if (token === 18) { + if (token === 18 /* OpenBracketToken */) { return parseArrayBindingPattern(); } - if (token === 14) { + if (token === 14 /* OpenBraceToken */) { return parseObjectBindingPattern(); } return parseIdentifier(); } function parseVariableDeclaration() { - var node = createNode(198); + var node = createNode(198 /* VariableDeclaration */); node.name = parseIdentifierOrPattern(); node.type = parseTypeAnnotation(); if (!isInOrOfKeyword(token)) { @@ -8190,36 +9711,45 @@ var ts; return finishNode(node); } function parseVariableDeclarationList(inForStatementInitializer) { - var node = createNode(199); + var node = createNode(199 /* VariableDeclarationList */); switch (token) { - case 98: + case 98 /* VarKeyword */: break; - case 105: - node.flags |= 4096; + case 105 /* LetKeyword */: + node.flags |= 4096 /* Let */; break; - case 70: - node.flags |= 8192; + case 70 /* ConstKeyword */: + node.flags |= 8192 /* Const */; break; default: ts.Debug.fail(); } nextToken(); - if (token === 125 && lookAhead(canFollowContextualOfKeyword)) { + // The user may have written the following: + // + // for (let of X) { } + // + // In this case, we want to parse an empty declaration list, and then parse 'of' + // as a keyword. The reason this is not automatic is that 'of' is a valid identifier. + // So we need to look ahead to determine if 'of' should be treated as a keyword in + // this context. + // The checker will then give an error that there is an empty declaration list. + if (token === 125 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { node.declarations = createMissingList(); } else { var savedDisallowIn = inDisallowInContext(); setDisallowInContext(inForStatementInitializer); - node.declarations = parseDelimitedList(9, parseVariableDeclaration); + node.declarations = parseDelimitedList(9 /* VariableDeclarations */, parseVariableDeclaration); setDisallowInContext(savedDisallowIn); } return finishNode(node); } function canFollowContextualOfKeyword() { - return nextTokenIsIdentifier() && nextToken() === 17; + return nextTokenIsIdentifier() && nextToken() === 17 /* CloseParenToken */; } function parseVariableStatement(fullStart, decorators, modifiers) { - var node = createNode(180, fullStart); + var node = createNode(180 /* VariableStatement */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); node.declarationList = parseVariableDeclarationList(false); @@ -8227,38 +9757,38 @@ var ts; return finishNode(node); } function parseFunctionDeclaration(fullStart, decorators, modifiers) { - var node = createNode(200, fullStart); + var node = createNode(200 /* FunctionDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - parseExpected(83); - node.asteriskToken = parseOptionalToken(35); - node.name = node.flags & 256 ? parseOptionalIdentifier() : parseIdentifier(); - fillSignature(51, !!node.asteriskToken, false, node); + parseExpected(83 /* FunctionKeyword */); + node.asteriskToken = parseOptionalToken(35 /* AsteriskToken */); + node.name = node.flags & 256 /* Default */ ? parseOptionalIdentifier() : parseIdentifier(); + fillSignature(51 /* ColonToken */, !!node.asteriskToken, false, node); node.body = parseFunctionBlockOrSemicolon(!!node.asteriskToken, ts.Diagnostics.or_expected); return finishNode(node); } function parseConstructorDeclaration(pos, decorators, modifiers) { - var node = createNode(135, pos); + var node = createNode(135 /* Constructor */, pos); node.decorators = decorators; setModifiers(node, modifiers); - parseExpected(114); - fillSignature(51, false, false, node); + parseExpected(114 /* ConstructorKeyword */); + fillSignature(51 /* ColonToken */, false, false, node); node.body = parseFunctionBlockOrSemicolon(false, ts.Diagnostics.or_expected); return finishNode(node); } function parseMethodDeclaration(fullStart, decorators, modifiers, asteriskToken, name, questionToken, diagnosticMessage) { - var method = createNode(134, fullStart); + var method = createNode(134 /* MethodDeclaration */, fullStart); method.decorators = decorators; setModifiers(method, modifiers); method.asteriskToken = asteriskToken; method.name = name; method.questionToken = questionToken; - fillSignature(51, !!asteriskToken, false, method); + fillSignature(51 /* ColonToken */, !!asteriskToken, false, method); method.body = parseFunctionBlockOrSemicolon(!!asteriskToken, diagnosticMessage); return finishNode(method); } function parsePropertyDeclaration(fullStart, decorators, modifiers, name, questionToken) { - var property = createNode(132, fullStart); + var property = createNode(132 /* PropertyDeclaration */, fullStart); property.decorators = decorators; setModifiers(property, modifiers); property.name = name; @@ -8269,10 +9799,12 @@ var ts; return finishNode(property); } function parsePropertyOrMethodDeclaration(fullStart, decorators, modifiers) { - var asteriskToken = parseOptionalToken(35); + var asteriskToken = parseOptionalToken(35 /* AsteriskToken */); var name = parsePropertyName(); - var questionToken = parseOptionalToken(50); - if (asteriskToken || token === 16 || token === 24) { + // Note: this is not legal as per the grammar. But we allow it in the parser and + // report an error in the grammar checker. + var questionToken = parseOptionalToken(50 /* QuestionToken */); + if (asteriskToken || token === 16 /* OpenParenToken */ || token === 24 /* LessThanToken */) { return parseMethodDeclaration(fullStart, decorators, modifiers, asteriskToken, name, questionToken, ts.Diagnostics.or_expected); } else { @@ -8287,41 +9819,54 @@ var ts; node.decorators = decorators; setModifiers(node, modifiers); node.name = parsePropertyName(); - fillSignature(51, false, false, node); + fillSignature(51 /* ColonToken */, false, false, node); node.body = parseFunctionBlockOrSemicolon(false); return finishNode(node); } function isClassMemberStart() { var idToken; - if (token === 52) { + if (token === 52 /* AtToken */) { return true; } + // Eat up all modifiers, but hold on to the last one in case it is actually an identifier. while (ts.isModifier(token)) { idToken = token; nextToken(); } - if (token === 35) { + if (token === 35 /* AsteriskToken */) { return true; } + // Try to get the first property-like token following all modifiers. + // This can either be an identifier or the 'get' or 'set' keywords. if (isLiteralPropertyName()) { idToken = token; nextToken(); } - if (token === 18) { + // Index signatures and computed properties are class members; we can parse. + if (token === 18 /* OpenBracketToken */) { return true; } + // If we were able to get any potential identifier... if (idToken !== undefined) { - if (!ts.isKeyword(idToken) || idToken === 120 || idToken === 116) { + // If we have a non-keyword identifier, or if we have an accessor, then it's safe to parse. + if (!ts.isKeyword(idToken) || idToken === 120 /* SetKeyword */ || idToken === 116 /* GetKeyword */) { return true; } + // If it *is* a keyword, but not an accessor, check a little farther along + // to see if it should actually be parsed as a class member. switch (token) { - case 16: - case 24: - case 51: - case 53: - case 50: + case 16 /* OpenParenToken */: // Method declaration + case 24 /* LessThanToken */: // Generic Method declaration + case 51 /* ColonToken */: // Type Annotation for declaration + case 53 /* EqualsToken */: // Initializer for declaration + case 50 /* QuestionToken */: return true; default: + // Covers + // - Semicolons (declaration termination) + // - Closing braces (end-of-class, must be declaration) + // - End-of-files (not valid, but permitted so that it gets caught later on) + // - Line-breaks (enabling *automatic semicolon insertion*) return canParseSemicolon(); } } @@ -8331,14 +9876,14 @@ var ts; var decorators; while (true) { var decoratorStart = getNodePos(); - if (!parseOptional(52)) { + if (!parseOptional(52 /* AtToken */)) { break; } if (!decorators) { decorators = []; decorators.pos = scanner.getStartPos(); } - var decorator = createNode(130, decoratorStart); + var decorator = createNode(130 /* Decorator */, decoratorStart); decorator.expression = doInDecoratorContext(parseLeftHandSideExpressionOrHigher); decorators.push(finishNode(decorator)); } @@ -8370,8 +9915,8 @@ var ts; return modifiers; } function parseClassElement() { - if (token === 22) { - var result = createNode(178); + if (token === 22 /* SemicolonToken */) { + var result = createNode(178 /* SemicolonClassElement */); nextToken(); return finishNode(result); } @@ -8382,48 +9927,57 @@ var ts; if (accessor) { return accessor; } - if (token === 114) { + if (token === 114 /* ConstructorKeyword */) { return parseConstructorDeclaration(fullStart, decorators, modifiers); } if (isIndexSignature()) { return parseIndexSignatureDeclaration(fullStart, decorators, modifiers); } + // It is very important that we check this *after* checking indexers because + // the [ token can start an index signature or a computed property name if (isIdentifierOrKeyword() || - token === 8 || - token === 7 || - token === 35 || - token === 18) { + token === 8 /* StringLiteral */ || + token === 7 /* NumericLiteral */ || + token === 35 /* AsteriskToken */ || + token === 18 /* OpenBracketToken */) { return parsePropertyOrMethodDeclaration(fullStart, decorators, modifiers); } if (decorators) { - var name_3 = createMissingNode(65, true, ts.Diagnostics.Declaration_expected); + // treat this as a property declaration with a missing name. + var name_3 = createMissingNode(65 /* Identifier */, true, ts.Diagnostics.Declaration_expected); return parsePropertyDeclaration(fullStart, decorators, modifiers, name_3, undefined); } + // 'isClassMemberStart' should have hinted not to attempt parsing. ts.Debug.fail("Should not have attempted to parse class member declaration."); } function parseClassExpression() { - return parseClassDeclarationOrExpression(scanner.getStartPos(), undefined, undefined, 174); + return parseClassDeclarationOrExpression( + /*fullStart:*/ scanner.getStartPos(), + /*decorators:*/ undefined, + /*modifiers:*/ undefined, 174 /* ClassExpression */); } function parseClassDeclaration(fullStart, decorators, modifiers) { - return parseClassDeclarationOrExpression(fullStart, decorators, modifiers, 201); + return parseClassDeclarationOrExpression(fullStart, decorators, modifiers, 201 /* ClassDeclaration */); } function parseClassDeclarationOrExpression(fullStart, decorators, modifiers, kind) { + // In ES6 specification, All parts of a ClassDeclaration or a ClassExpression are strict mode code var savedStrictModeContext = inStrictModeContext(); - if (languageVersion >= 2) { - setStrictModeContext(true); - } + setStrictModeContext(true); var node = createNode(kind, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - parseExpected(69); - node.name = node.flags & 256 ? parseOptionalIdentifier() : parseIdentifier(); + parseExpected(69 /* ClassKeyword */); + node.name = parseOptionalIdentifier(); node.typeParameters = parseTypeParameters(); node.heritageClauses = parseHeritageClauses(true); - if (parseExpected(14)) { + if (parseExpected(14 /* OpenBraceToken */)) { + // ClassTail[Yield,GeneratorParameter] : See 14.5 + // [~GeneratorParameter]ClassHeritage[?Yield]opt { ClassBody[?Yield]opt } + // [+GeneratorParameter] ClassHeritageopt { ClassBodyopt } node.members = inGeneratorParameterContext() ? doOutsideOfYieldContext(parseClassMembers) : parseClassMembers(); - parseExpected(15); + parseExpected(15 /* CloseBraceToken */); } else { node.members = createMissingList(); @@ -8444,37 +9998,37 @@ var ts; return undefined; } function parseHeritageClausesWorker() { - return parseList(19, false, parseHeritageClause); + return parseList(19 /* HeritageClauses */, false, parseHeritageClause); } function parseHeritageClause() { - if (token === 79 || token === 103) { - var node = createNode(222); + if (token === 79 /* ExtendsKeyword */ || token === 103 /* ImplementsKeyword */) { + var node = createNode(222 /* HeritageClause */); node.token = token; nextToken(); - node.types = parseDelimitedList(8, parseHeritageClauseElement); + node.types = parseDelimitedList(8 /* HeritageClauseElement */, parseHeritageClauseElement); return finishNode(node); } return undefined; } function parseHeritageClauseElement() { - var node = createNode(177); + var node = createNode(177 /* HeritageClauseElement */); node.expression = parseLeftHandSideExpressionOrHigher(); - if (token === 24) { - node.typeArguments = parseBracketedList(17, parseType, 24, 25); + if (token === 24 /* LessThanToken */) { + node.typeArguments = parseBracketedList(17 /* TypeArguments */, parseType, 24 /* LessThanToken */, 25 /* GreaterThanToken */); } return finishNode(node); } function isHeritageClause() { - return token === 79 || token === 103; + return token === 79 /* ExtendsKeyword */ || token === 103 /* ImplementsKeyword */; } function parseClassMembers() { - return parseList(6, false, parseClassElement); + return parseList(6 /* ClassMembers */, false, parseClassElement); } function parseInterfaceDeclaration(fullStart, decorators, modifiers) { - var node = createNode(202, fullStart); + var node = createNode(202 /* InterfaceDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - parseExpected(104); + parseExpected(104 /* InterfaceKeyword */); node.name = parseIdentifier(); node.typeParameters = parseTypeParameters(); node.heritageClauses = parseHeritageClauses(false); @@ -8482,31 +10036,35 @@ var ts; return finishNode(node); } function parseTypeAliasDeclaration(fullStart, decorators, modifiers) { - var node = createNode(203, fullStart); + var node = createNode(203 /* TypeAliasDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - parseExpected(123); + parseExpected(123 /* TypeKeyword */); node.name = parseIdentifier(); - parseExpected(53); + parseExpected(53 /* EqualsToken */); node.type = parseType(); parseSemicolon(); return finishNode(node); } + // In an ambient declaration, the grammar only allows integer literals as initializers. + // In a non-ambient declaration, the grammar allows uninitialized members only in a + // ConstantEnumMemberSection, which starts at the beginning of an enum declaration + // or any time an integer literal initializer is encountered. function parseEnumMember() { - var node = createNode(226, scanner.getStartPos()); + var node = createNode(226 /* EnumMember */, scanner.getStartPos()); node.name = parsePropertyName(); node.initializer = allowInAnd(parseNonParameterInitializer); return finishNode(node); } function parseEnumDeclaration(fullStart, decorators, modifiers) { - var node = createNode(204, fullStart); + var node = createNode(204 /* EnumDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - parseExpected(77); + parseExpected(77 /* EnumKeyword */); node.name = parseIdentifier(); - if (parseExpected(14)) { - node.members = parseDelimitedList(7, parseEnumMember); - parseExpected(15); + if (parseExpected(14 /* OpenBraceToken */)) { + node.members = parseDelimitedList(7 /* EnumMembers */, parseEnumMember); + parseExpected(15 /* CloseBraceToken */); } else { node.members = createMissingList(); @@ -8514,10 +10072,10 @@ var ts; return finishNode(node); } function parseModuleBlock() { - var node = createNode(206, scanner.getStartPos()); - if (parseExpected(14)) { - node.statements = parseList(1, false, parseModuleElement); - parseExpected(15); + var node = createNode(206 /* ModuleBlock */, scanner.getStartPos()); + if (parseExpected(14 /* OpenBraceToken */)) { + node.statements = parseList(1 /* ModuleElements */, false, parseModuleElement); + parseExpected(15 /* CloseBraceToken */); } else { node.statements = createMissingList(); @@ -8525,18 +10083,18 @@ var ts; return finishNode(node); } function parseInternalModuleTail(fullStart, decorators, modifiers, flags) { - var node = createNode(205, fullStart); + var node = createNode(205 /* ModuleDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); node.flags |= flags; node.name = parseIdentifier(); - node.body = parseOptional(20) - ? parseInternalModuleTail(getNodePos(), undefined, undefined, 1) + node.body = parseOptional(20 /* DotToken */) + ? parseInternalModuleTail(getNodePos(), undefined, undefined, 1 /* Export */) : parseModuleBlock(); return finishNode(node); } function parseAmbientExternalModuleDeclaration(fullStart, decorators, modifiers) { - var node = createNode(205, fullStart); + var node = createNode(205 /* ModuleDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); node.name = parseLiteralNode(true); @@ -8544,48 +10102,55 @@ var ts; return finishNode(node); } function parseModuleDeclaration(fullStart, decorators, modifiers) { - parseExpected(117); - return token === 8 + parseExpected(117 /* ModuleKeyword */); + return token === 8 /* StringLiteral */ ? parseAmbientExternalModuleDeclaration(fullStart, decorators, modifiers) : parseInternalModuleTail(fullStart, decorators, modifiers, modifiers ? modifiers.flags : 0); } function isExternalModuleReference() { - return token === 118 && + return token === 118 /* RequireKeyword */ && lookAhead(nextTokenIsOpenParen); } function nextTokenIsOpenParen() { - return nextToken() === 16; + return nextToken() === 16 /* OpenParenToken */; } function nextTokenIsCommaOrFromKeyword() { nextToken(); - return token === 23 || - token === 124; + return token === 23 /* CommaToken */ || + token === 124 /* FromKeyword */; } function parseImportDeclarationOrImportEqualsDeclaration(fullStart, decorators, modifiers) { - parseExpected(85); + parseExpected(85 /* ImportKeyword */); var afterImportPos = scanner.getStartPos(); var identifier; if (isIdentifier()) { identifier = parseIdentifier(); - if (token !== 23 && token !== 124) { - var importEqualsDeclaration = createNode(208, fullStart); + if (token !== 23 /* CommaToken */ && token !== 124 /* FromKeyword */) { + // ImportEquals declaration of type: + // import x = require("mod"); or + // import x = M.x; + var importEqualsDeclaration = createNode(208 /* ImportEqualsDeclaration */, fullStart); importEqualsDeclaration.decorators = decorators; setModifiers(importEqualsDeclaration, modifiers); importEqualsDeclaration.name = identifier; - parseExpected(53); + parseExpected(53 /* EqualsToken */); importEqualsDeclaration.moduleReference = parseModuleReference(); parseSemicolon(); return finishNode(importEqualsDeclaration); } } - var importDeclaration = createNode(209, fullStart); + // Import statement + var importDeclaration = createNode(209 /* ImportDeclaration */, fullStart); importDeclaration.decorators = decorators; setModifiers(importDeclaration, modifiers); + // ImportDeclaration: + // import ImportClause from ModuleSpecifier ; + // import ModuleSpecifier; if (identifier || - token === 35 || - token === 14) { + token === 35 /* AsteriskToken */ || + token === 14 /* OpenBraceToken */) { importDeclaration.importClause = parseImportClause(identifier, afterImportPos); - parseExpected(124); + parseExpected(124 /* FromKeyword */); } importDeclaration.moduleSpecifier = parseModuleSpecifier(); parseSemicolon(); @@ -8598,13 +10163,17 @@ var ts; // NamedImports // ImportedDefaultBinding, NameSpaceImport // ImportedDefaultBinding, NamedImports - var importClause = createNode(210, fullStart); + var importClause = createNode(210 /* ImportClause */, fullStart); if (identifier) { + // ImportedDefaultBinding: + // ImportedBinding importClause.name = identifier; } + // If there was no default import or if there is comma token after default import + // parse namespace or named imports if (!importClause.name || - parseOptional(23)) { - importClause.namedBindings = token === 35 ? parseNamespaceImport() : parseNamedImportsOrExports(212); + parseOptional(23 /* CommaToken */)) { + importClause.namedBindings = token === 35 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(212 /* NamedImports */); } return finishNode(importClause); } @@ -8614,47 +10183,67 @@ var ts; : parseEntityName(false); } function parseExternalModuleReference() { - var node = createNode(219); - parseExpected(118); - parseExpected(16); + var node = createNode(219 /* ExternalModuleReference */); + parseExpected(118 /* RequireKeyword */); + parseExpected(16 /* OpenParenToken */); node.expression = parseModuleSpecifier(); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); return finishNode(node); } function parseModuleSpecifier() { + // We allow arbitrary expressions here, even though the grammar only allows string + // literals. We check to ensure that it is only a string literal later in the grammar + // walker. var result = parseExpression(); - if (result.kind === 8) { + // Ensure the string being required is in our 'identifier' table. This will ensure + // that features like 'find refs' will look inside this file when search for its name. + if (result.kind === 8 /* StringLiteral */) { internIdentifier(result.text); } return result; } function parseNamespaceImport() { - var namespaceImport = createNode(211); - parseExpected(35); - parseExpected(102); + // NameSpaceImport: + // * as ImportedBinding + var namespaceImport = createNode(211 /* NamespaceImport */); + parseExpected(35 /* AsteriskToken */); + parseExpected(102 /* AsKeyword */); namespaceImport.name = parseIdentifier(); return finishNode(namespaceImport); } function parseNamedImportsOrExports(kind) { var node = createNode(kind); - node.elements = parseBracketedList(20, kind === 212 ? parseImportSpecifier : parseExportSpecifier, 14, 15); + // NamedImports: + // { } + // { ImportsList } + // { ImportsList, } + // ImportsList: + // ImportSpecifier + // ImportsList, ImportSpecifier + node.elements = parseBracketedList(20 /* ImportOrExportSpecifiers */, kind === 212 /* NamedImports */ ? parseImportSpecifier : parseExportSpecifier, 14 /* OpenBraceToken */, 15 /* CloseBraceToken */); return finishNode(node); } function parseExportSpecifier() { - return parseImportOrExportSpecifier(217); + return parseImportOrExportSpecifier(217 /* ExportSpecifier */); } function parseImportSpecifier() { - return parseImportOrExportSpecifier(213); + return parseImportOrExportSpecifier(213 /* ImportSpecifier */); } function parseImportOrExportSpecifier(kind) { var node = createNode(kind); + // ImportSpecifier: + // BindingIdentifier + // IdentifierName as BindingIdentifier + // ExportSpecififer: + // IdentifierName + // IdentifierName as IdentifierName var checkIdentifierIsKeyword = ts.isKeyword(token) && !isIdentifier(); var checkIdentifierStart = scanner.getTokenPos(); var checkIdentifierEnd = scanner.getTextPos(); var identifierName = parseIdentifierName(); - if (token === 102) { + if (token === 102 /* AsKeyword */) { node.propertyName = identifierName; - parseExpected(102); + parseExpected(102 /* AsKeyword */); checkIdentifierIsKeyword = ts.isKeyword(token) && !isIdentifier(); checkIdentifierStart = scanner.getTokenPos(); checkIdentifierEnd = scanner.getTextPos(); @@ -8663,22 +10252,23 @@ var ts; else { node.name = identifierName; } - if (kind === 213 && checkIdentifierIsKeyword) { + if (kind === 213 /* ImportSpecifier */ && checkIdentifierIsKeyword) { + // Report error identifier expected parseErrorAtPosition(checkIdentifierStart, checkIdentifierEnd - checkIdentifierStart, ts.Diagnostics.Identifier_expected); } return finishNode(node); } function parseExportDeclaration(fullStart, decorators, modifiers) { - var node = createNode(215, fullStart); + var node = createNode(215 /* ExportDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - if (parseOptional(35)) { - parseExpected(124); + if (parseOptional(35 /* AsteriskToken */)) { + parseExpected(124 /* FromKeyword */); node.moduleSpecifier = parseModuleSpecifier(); } else { - node.exportClause = parseNamedImportsOrExports(216); - if (parseOptional(124)) { + node.exportClause = parseNamedImportsOrExports(216 /* NamedExports */); + if (parseOptional(124 /* FromKeyword */)) { node.moduleSpecifier = parseModuleSpecifier(); } } @@ -8686,59 +10276,62 @@ var ts; return finishNode(node); } function parseExportAssignment(fullStart, decorators, modifiers) { - var node = createNode(214, fullStart); + var node = createNode(214 /* ExportAssignment */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - if (parseOptional(53)) { + if (parseOptional(53 /* EqualsToken */)) { node.isExportEquals = true; - node.expression = parseAssignmentExpressionOrHigher(); } else { - parseExpected(73); - if (parseOptional(51)) { - node.type = parseType(); - } - else { - node.expression = parseAssignmentExpressionOrHigher(); - } + parseExpected(73 /* DefaultKeyword */); } + node.expression = parseAssignmentExpressionOrHigher(); parseSemicolon(); return finishNode(node); } function isLetDeclaration() { + // It is let declaration if in strict mode or next token is identifier\open bracket\open curly on same line. + // otherwise it needs to be treated like identifier return inStrictModeContext() || lookAhead(nextTokenIsIdentifierOrStartOfDestructuringOnTheSameLine); } function isDeclarationStart(followsModifier) { switch (token) { - case 98: - case 70: - case 83: + case 98 /* VarKeyword */: + case 70 /* ConstKeyword */: + case 83 /* FunctionKeyword */: return true; - case 105: + case 105 /* LetKeyword */: return isLetDeclaration(); - case 69: - case 104: - case 77: - case 123: + case 69 /* ClassKeyword */: + case 104 /* InterfaceKeyword */: + case 77 /* EnumKeyword */: + case 123 /* TypeKeyword */: + // Not true keywords so ensure an identifier follows return lookAhead(nextTokenIsIdentifierOrKeyword); - case 85: + case 85 /* ImportKeyword */: + // Not true keywords so ensure an identifier follows or is string literal or asterisk or open brace return lookAhead(nextTokenCanFollowImportKeyword); - case 117: + case 117 /* ModuleKeyword */: + // Not a true keyword so ensure an identifier or string literal follows return lookAhead(nextTokenIsIdentifierOrKeywordOrStringLiteral); - case 78: + case 78 /* ExportKeyword */: + // Check for export assignment or modifier on source element return lookAhead(nextTokenCanFollowExportKeyword); - case 115: - case 109: - case 107: - case 108: - case 110: + case 115 /* DeclareKeyword */: + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: + case 110 /* StaticKeyword */: + // Check for modifier on source element return lookAhead(nextTokenIsDeclarationStart); - case 52: + case 52 /* AtToken */: + // a lookahead here is too costly, and decorators are only valid on a declaration. + // We will assume we are parsing a declaration here and report an error later return !followsModifier; } } function isIdentifierOrKeyword() { - return token >= 65; + return token >= 65 /* Identifier */; } function nextTokenIsIdentifierOrKeyword() { nextToken(); @@ -8746,60 +10339,62 @@ var ts; } function nextTokenIsIdentifierOrKeywordOrStringLiteral() { nextToken(); - return isIdentifierOrKeyword() || token === 8; + return isIdentifierOrKeyword() || token === 8 /* StringLiteral */; } function nextTokenCanFollowImportKeyword() { nextToken(); - return isIdentifierOrKeyword() || token === 8 || - token === 35 || token === 14; + return isIdentifierOrKeyword() || token === 8 /* StringLiteral */ || + token === 35 /* AsteriskToken */ || token === 14 /* OpenBraceToken */; } function nextTokenCanFollowExportKeyword() { nextToken(); - return token === 53 || token === 35 || - token === 14 || token === 73 || isDeclarationStart(true); + return token === 53 /* EqualsToken */ || token === 35 /* AsteriskToken */ || + token === 14 /* OpenBraceToken */ || token === 73 /* DefaultKeyword */ || isDeclarationStart(true); } function nextTokenIsDeclarationStart() { nextToken(); return isDeclarationStart(true); } function nextTokenIsAsKeyword() { - return nextToken() === 102; + return nextToken() === 102 /* AsKeyword */; } function parseDeclaration() { var fullStart = getNodePos(); var decorators = parseDecorators(); var modifiers = parseModifiers(); - if (token === 78) { + if (token === 78 /* ExportKeyword */) { nextToken(); - if (token === 73 || token === 53) { + if (token === 73 /* DefaultKeyword */ || token === 53 /* EqualsToken */) { return parseExportAssignment(fullStart, decorators, modifiers); } - if (token === 35 || token === 14) { + if (token === 35 /* AsteriskToken */ || token === 14 /* OpenBraceToken */) { return parseExportDeclaration(fullStart, decorators, modifiers); } } switch (token) { - case 98: - case 105: - case 70: + case 98 /* VarKeyword */: + case 105 /* LetKeyword */: + case 70 /* ConstKeyword */: return parseVariableStatement(fullStart, decorators, modifiers); - case 83: + case 83 /* FunctionKeyword */: return parseFunctionDeclaration(fullStart, decorators, modifiers); - case 69: + case 69 /* ClassKeyword */: return parseClassDeclaration(fullStart, decorators, modifiers); - case 104: + case 104 /* InterfaceKeyword */: return parseInterfaceDeclaration(fullStart, decorators, modifiers); - case 123: + case 123 /* TypeKeyword */: return parseTypeAliasDeclaration(fullStart, decorators, modifiers); - case 77: + case 77 /* EnumKeyword */: return parseEnumDeclaration(fullStart, decorators, modifiers); - case 117: + case 117 /* ModuleKeyword */: return parseModuleDeclaration(fullStart, decorators, modifiers); - case 85: + case 85 /* ImportKeyword */: return parseImportDeclarationOrImportEqualsDeclaration(fullStart, decorators, modifiers); default: if (decorators) { - var node = createMissingNode(218, true, ts.Diagnostics.Declaration_expected); + // We reached this point because we encountered an AtToken and assumed a declaration would + // follow. For recovery and error reporting purposes, return an incomplete declaration. + var node = createMissingNode(218 /* MissingDeclaration */, true, ts.Diagnostics.Declaration_expected); node.pos = fullStart; node.decorators = decorators; setModifiers(node, modifiers); @@ -8827,15 +10422,18 @@ var ts; var referencedFiles = []; var amdDependencies = []; var amdModuleName; + // Keep scanning all the leading trivia in the file until we get to something that + // isn't trivia. Any single line comment will be analyzed to see if it is a + // reference comment. while (true) { var kind = triviaScanner.scan(); - if (kind === 5 || kind === 4 || kind === 3) { + if (kind === 5 /* WhitespaceTrivia */ || kind === 4 /* NewLineTrivia */ || kind === 3 /* MultiLineCommentTrivia */) { continue; } - if (kind !== 2) { + if (kind !== 2 /* SingleLineCommentTrivia */) { break; } - var range = { pos: triviaScanner.getTokenPos(), end: triviaScanner.getTextPos() }; + var range = { pos: triviaScanner.getTokenPos(), end: triviaScanner.getTextPos(), kind: triviaScanner.getToken() }; var comment = sourceText.substring(range.pos, range.end); var referencePathMatchResult = ts.getFileReferenceFromReferencePath(comment, range); if (referencePathMatchResult) { @@ -8878,11 +10476,11 @@ var ts; } function setExternalModuleIndicator(sourceFile) { sourceFile.externalModuleIndicator = ts.forEach(sourceFile.statements, function (node) { - return node.flags & 1 - || node.kind === 208 && node.moduleReference.kind === 219 - || node.kind === 209 - || node.kind === 214 - || node.kind === 215 + return node.flags & 1 /* Export */ + || node.kind === 208 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 219 /* ExternalModuleReference */ + || node.kind === 209 /* ImportDeclaration */ + || node.kind === 214 /* ExportAssignment */ + || node.kind === 215 /* ExportDeclaration */ ? node : undefined; }); @@ -8891,27 +10489,27 @@ var ts; function isLeftHandSideExpression(expr) { if (expr) { switch (expr.kind) { - case 155: - case 156: - case 158: - case 157: - case 159: - case 153: - case 161: - case 154: - case 174: - case 162: - case 65: - case 9: - case 7: - case 8: - case 10: - case 171: - case 80: - case 89: - case 93: - case 95: - case 91: + case 155 /* PropertyAccessExpression */: + case 156 /* ElementAccessExpression */: + case 158 /* NewExpression */: + case 157 /* CallExpression */: + case 159 /* TaggedTemplateExpression */: + case 153 /* ArrayLiteralExpression */: + case 161 /* ParenthesizedExpression */: + case 154 /* ObjectLiteralExpression */: + case 174 /* ClassExpression */: + case 162 /* FunctionExpression */: + case 65 /* Identifier */: + case 9 /* RegularExpressionLiteral */: + case 7 /* NumericLiteral */: + case 8 /* StringLiteral */: + case 10 /* NoSubstitutionTemplateLiteral */: + case 171 /* TemplateExpression */: + case 80 /* FalseKeyword */: + case 89 /* NullKeyword */: + case 93 /* ThisKeyword */: + case 95 /* TrueKeyword */: + case 91 /* SuperKeyword */: return true; } } @@ -8919,11 +10517,12 @@ var ts; } ts.isLeftHandSideExpression = isLeftHandSideExpression; function isAssignmentOperator(token) { - return token >= 53 && token <= 64; + return token >= 53 /* FirstAssignment */ && token <= 64 /* LastAssignment */; } ts.isAssignmentOperator = isAssignmentOperator; })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { var nextSymbolId = 1; @@ -8951,10 +10550,10 @@ var ts; var emptyArray = []; var emptySymbols = {}; var compilerOptions = host.getCompilerOptions(); - var languageVersion = compilerOptions.target || 0; + var languageVersion = compilerOptions.target || 0 /* ES3 */; var emitResolver = createResolver(); - var undefinedSymbol = createSymbol(4 | 67108864, "undefined"); - var argumentsSymbol = createSymbol(4 | 67108864, "arguments"); + var undefinedSymbol = createSymbol(4 /* Property */ | 67108864 /* Transient */, "undefined"); + var argumentsSymbol = createSymbol(4 /* Property */ | 67108864 /* Transient */, "arguments"); var checker = { getNodeCount: function () { return ts.sum(host.getSourceFiles(), "nodeCount"); }, getIdentifierCount: function () { return ts.sum(host.getSourceFiles(), "identifierCount"); }, @@ -8989,20 +10588,20 @@ var ts; isImplementationOfOverload: isImplementationOfOverload, getAliasedSymbol: resolveAlias, getEmitResolver: getEmitResolver, - getExportsOfExternalModule: getExportsOfExternalModule + getExportsOfModule: getExportsOfModuleAsArray }; - var unknownSymbol = createSymbol(4 | 67108864, "unknown"); - var resolvingSymbol = createSymbol(67108864, "__resolving__"); - var anyType = createIntrinsicType(1, "any"); - var stringType = createIntrinsicType(2, "string"); - var numberType = createIntrinsicType(4, "number"); - var booleanType = createIntrinsicType(8, "boolean"); - var esSymbolType = createIntrinsicType(1048576, "symbol"); - var voidType = createIntrinsicType(16, "void"); - var undefinedType = createIntrinsicType(32 | 262144, "undefined"); - var nullType = createIntrinsicType(64 | 262144, "null"); - var unknownType = createIntrinsicType(1, "unknown"); - var resolvingType = createIntrinsicType(1, "__resolving__"); + var unknownSymbol = createSymbol(4 /* Property */ | 67108864 /* Transient */, "unknown"); + var resolvingSymbol = createSymbol(67108864 /* Transient */, "__resolving__"); + var anyType = createIntrinsicType(1 /* Any */, "any"); + var stringType = createIntrinsicType(2 /* String */, "string"); + var numberType = createIntrinsicType(4 /* Number */, "number"); + var booleanType = createIntrinsicType(8 /* Boolean */, "boolean"); + var esSymbolType = createIntrinsicType(1048576 /* ESSymbol */, "symbol"); + var voidType = createIntrinsicType(16 /* Void */, "void"); + var undefinedType = createIntrinsicType(32 /* Undefined */ | 262144 /* ContainsUndefinedOrNull */, "undefined"); + var nullType = createIntrinsicType(64 /* Null */ | 262144 /* ContainsUndefinedOrNull */, "null"); + var unknownType = createIntrinsicType(1 /* Any */, "unknown"); + var resolvingType = createIntrinsicType(1 /* Any */, "__resolving__"); var emptyObjectType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); var anyFunctionType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); var noConstraintType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); @@ -9032,6 +10631,7 @@ var ts; var stringLiteralTypes = {}; var emitExtends = false; var emitDecorate = false; + var emitParam = false; var mergedSymbols = []; var symbolLinks = []; var nodeLinks = []; @@ -9040,22 +10640,24 @@ var ts; var primitiveTypeInfo = { "string": { type: stringType, - flags: 258 + flags: 258 /* StringLike */ }, "number": { type: numberType, - flags: 132 + flags: 132 /* NumberLike */ }, "boolean": { type: booleanType, - flags: 8 + flags: 8 /* Boolean */ }, "symbol": { type: esSymbolType, - flags: 1048576 + flags: 1048576 /* ESSymbol */ } }; function getEmitResolver(sourceFile) { + // Ensure we have all the type information in place for this file so that all the + // emitter questions of this resolver will return the right information. getDiagnostics(sourceFile); return emitResolver; } @@ -9070,38 +10672,38 @@ var ts; } function getExcludedSymbolFlags(flags) { var result = 0; - if (flags & 2) - result |= 107455; - if (flags & 1) - result |= 107454; - if (flags & 4) - result |= 107455; - if (flags & 8) - result |= 107455; - if (flags & 16) - result |= 106927; - if (flags & 32) - result |= 899583; - if (flags & 64) - result |= 792992; - if (flags & 256) - result |= 899327; - if (flags & 128) - result |= 899967; - if (flags & 512) - result |= 106639; - if (flags & 8192) - result |= 99263; - if (flags & 32768) - result |= 41919; - if (flags & 65536) - result |= 74687; - if (flags & 262144) - result |= 530912; - if (flags & 524288) - result |= 793056; - if (flags & 8388608) - result |= 8388608; + if (flags & 2 /* BlockScopedVariable */) + result |= 107455 /* BlockScopedVariableExcludes */; + if (flags & 1 /* FunctionScopedVariable */) + result |= 107454 /* FunctionScopedVariableExcludes */; + if (flags & 4 /* Property */) + result |= 107455 /* PropertyExcludes */; + if (flags & 8 /* EnumMember */) + result |= 107455 /* EnumMemberExcludes */; + if (flags & 16 /* Function */) + result |= 106927 /* FunctionExcludes */; + if (flags & 32 /* Class */) + result |= 899583 /* ClassExcludes */; + if (flags & 64 /* Interface */) + result |= 792992 /* InterfaceExcludes */; + if (flags & 256 /* RegularEnum */) + result |= 899327 /* RegularEnumExcludes */; + if (flags & 128 /* ConstEnum */) + result |= 899967 /* ConstEnumExcludes */; + if (flags & 512 /* ValueModule */) + result |= 106639 /* ValueModuleExcludes */; + if (flags & 8192 /* Method */) + result |= 99263 /* MethodExcludes */; + if (flags & 32768 /* GetAccessor */) + result |= 41919 /* GetAccessorExcludes */; + if (flags & 65536 /* SetAccessor */) + result |= 74687 /* SetAccessorExcludes */; + if (flags & 262144 /* TypeParameter */) + result |= 530912 /* TypeParameterExcludes */; + if (flags & 524288 /* TypeAlias */) + result |= 793056 /* TypeAliasExcludes */; + if (flags & 8388608 /* Alias */) + result |= 8388608 /* AliasExcludes */; return result; } function recordMergedSymbol(target, source) { @@ -9110,7 +10712,7 @@ var ts; mergedSymbols[source.mergeId] = target; } function cloneSymbol(symbol) { - var result = createSymbol(symbol.flags | 33554432, symbol.name); + var result = createSymbol(symbol.flags | 33554432 /* Merged */, symbol.name); result.declarations = symbol.declarations.slice(0); result.parent = symbol.parent; if (symbol.valueDeclaration) @@ -9126,7 +10728,8 @@ var ts; } function mergeSymbol(target, source) { if (!(target.flags & getExcludedSymbolFlags(source.flags))) { - if (source.flags & 512 && target.flags & 512 && target.constEnumOnlyModule && !source.constEnumOnlyModule) { + if (source.flags & 512 /* ValueModule */ && target.flags & 512 /* ValueModule */ && target.constEnumOnlyModule && !source.constEnumOnlyModule) { + // reset flag when merging instantiated module into value module that has only const enums target.constEnumOnlyModule = false; } target.flags |= source.flags; @@ -9148,7 +10751,7 @@ var ts; recordMergedSymbol(target, source); } else { - var message = target.flags & 2 || source.flags & 2 + var message = target.flags & 2 /* BlockScopedVariable */ || source.flags & 2 /* BlockScopedVariable */ ? ts.Diagnostics.Cannot_redeclare_block_scoped_variable_0 : ts.Diagnostics.Duplicate_identifier_0; ts.forEach(source.declarations, function (node) { error(node.name ? node.name : node, message, symbolToString(source)); @@ -9175,7 +10778,7 @@ var ts; } else { var symbol = target[id]; - if (!(symbol.flags & 33554432)) { + if (!(symbol.flags & 33554432 /* Merged */)) { target[id] = symbol = cloneSymbol(symbol); } mergeSymbol(symbol, source[id]); @@ -9184,7 +10787,7 @@ var ts; } } function getSymbolLinks(symbol) { - if (symbol.flags & 67108864) + if (symbol.flags & 67108864 /* Transient */) return symbol; var id = getSymbolId(symbol); return symbolLinks[id] || (symbolLinks[id] = {}); @@ -9194,26 +10797,29 @@ var ts; return nodeLinks[nodeId] || (nodeLinks[nodeId] = {}); } function getSourceFile(node) { - return ts.getAncestor(node, 227); + return ts.getAncestor(node, 227 /* SourceFile */); } function isGlobalSourceFile(node) { - return node.kind === 227 && !ts.isExternalModule(node); + return node.kind === 227 /* SourceFile */ && !ts.isExternalModule(node); } function getSymbol(symbols, name, meaning) { if (meaning && ts.hasProperty(symbols, name)) { var symbol = symbols[name]; - ts.Debug.assert((symbol.flags & 16777216) === 0, "Should never get an instantiated symbol here."); + ts.Debug.assert((symbol.flags & 16777216 /* Instantiated */) === 0, "Should never get an instantiated symbol here."); if (symbol.flags & meaning) { return symbol; } - if (symbol.flags & 8388608) { + if (symbol.flags & 8388608 /* Alias */) { var target = resolveAlias(symbol); + // Unknown symbol means an error occurred in alias resolution, treat it as positive answer to avoid cascading errors if (target === unknownSymbol || target.flags & meaning) { return symbol; } } } + // return undefined if we can't find a symbol. } + /** Returns true if node1 is defined before node 2**/ function isDefinedBefore(node1, node2) { var file1 = ts.getSourceFileOfNode(node1); var file2 = ts.getSourceFileOfNode(node2); @@ -9226,6 +10832,9 @@ var ts; var sourceFiles = host.getSourceFiles(); return sourceFiles.indexOf(file1) <= sourceFiles.indexOf(file2); } + // Resolve a given name for a given meaning at a given location. An error is reported if the name was not found and + // the nameNotFoundMessage argument is not undefined. Returns the resolved symbol, or undefined if no symbol with + // the given name can be found. function resolveName(location, name, meaning, nameNotFoundMessage, nameArg) { var result; var lastLocation; @@ -9233,24 +10842,25 @@ var ts; var errorLocation = location; var grandparent; loop: while (location) { + // Locals of a source file are not in scope (because they get merged into the global symbol table) if (location.locals && !isGlobalSourceFile(location)) { if (result = getSymbol(location.locals, name, meaning)) { break loop; } } switch (location.kind) { - case 227: + case 227 /* SourceFile */: if (!ts.isExternalModule(location)) break; - case 205: - if (result = getSymbol(getSymbolOfNode(location).exports, name, meaning & 8914931)) { - if (result.flags & meaning || !(result.flags & 8388608 && getDeclarationOfAliasSymbol(result).kind === 217)) { + case 205 /* ModuleDeclaration */: + if (result = getSymbol(getSymbolOfNode(location).exports, name, meaning & 8914931 /* ModuleMember */)) { + if (result.flags & meaning || !(result.flags & 8388608 /* Alias */ && getDeclarationOfAliasSymbol(result).kind === 217 /* ExportSpecifier */)) { break loop; } result = undefined; } - else if (location.kind === 227) { - result = getSymbol(getSymbolOfNode(location).exports, "default", meaning & 8914931); + else if (location.kind === 227 /* SourceFile */) { + result = getSymbol(getSymbolOfNode(location).exports, "default", meaning & 8914931 /* ModuleMember */); var localSymbol = ts.getLocalSymbolForExportDefault(result); if (result && (result.flags & meaning) && localSymbol && localSymbol.name === name) { break loop; @@ -9258,54 +10868,73 @@ var ts; result = undefined; } break; - case 204: - if (result = getSymbol(getSymbolOfNode(location).exports, name, meaning & 8)) { + case 204 /* EnumDeclaration */: + if (result = getSymbol(getSymbolOfNode(location).exports, name, meaning & 8 /* EnumMember */)) { break loop; } break; - case 132: - case 131: - if (location.parent.kind === 201 && !(location.flags & 128)) { + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + // TypeScript 1.0 spec (April 2014): 8.4.1 + // Initializer expressions for instance member variables are evaluated in the scope + // of the class constructor body but are not permitted to reference parameters or + // local variables of the constructor. This effectively means that entities from outer scopes + // by the same name as a constructor parameter or local variable are inaccessible + // in initializer expressions for instance member variables. + if (location.parent.kind === 201 /* ClassDeclaration */ && !(location.flags & 128 /* Static */)) { var ctor = findConstructorDeclaration(location.parent); if (ctor && ctor.locals) { - if (getSymbol(ctor.locals, name, meaning & 107455)) { + if (getSymbol(ctor.locals, name, meaning & 107455 /* Value */)) { + // Remember the property node, it will be used later to report appropriate error propertyWithInvalidInitializer = location; } } } break; - case 201: - case 202: - if (result = getSymbol(getSymbolOfNode(location).members, name, meaning & 793056)) { - if (lastLocation && lastLocation.flags & 128) { + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + if (result = getSymbol(getSymbolOfNode(location).members, name, meaning & 793056 /* Type */)) { + if (lastLocation && lastLocation.flags & 128 /* Static */) { + // TypeScript 1.0 spec (April 2014): 3.4.1 + // The scope of a type parameter extends over the entire declaration with which the type + // parameter list is associated, with the exception of static member declarations in classes. error(errorLocation, ts.Diagnostics.Static_members_cannot_reference_class_type_parameters); return undefined; } break loop; } break; - case 127: + // It is not legal to reference a class's own type parameters from a computed property name that + // belongs to the class. For example: + // + // function foo() { return '' } + // class C { // <-- Class's own type parameter T + // [foo()]() { } // <-- Reference to T from class's own computed property + // } + // + case 127 /* ComputedPropertyName */: grandparent = location.parent.parent; - if (grandparent.kind === 201 || grandparent.kind === 202) { - if (result = getSymbol(getSymbolOfNode(grandparent).members, name, meaning & 793056)) { + if (grandparent.kind === 201 /* ClassDeclaration */ || grandparent.kind === 202 /* InterfaceDeclaration */) { + // A reference to this grandparent's type parameters would be an error + if (result = getSymbol(getSymbolOfNode(grandparent).members, name, meaning & 793056 /* Type */)) { error(errorLocation, ts.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type); return undefined; } } break; - case 134: - case 133: - case 135: - case 136: - case 137: - case 200: - case 163: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 200 /* FunctionDeclaration */: + case 163 /* ArrowFunction */: if (name === "arguments") { result = argumentsSymbol; break loop; } break; - case 162: + case 162 /* FunctionExpression */: if (name === "arguments") { result = argumentsSymbol; break loop; @@ -9316,17 +10945,31 @@ var ts; break loop; } break; - case 174: + case 174 /* ClassExpression */: var className = location.name; if (className && name === className.text) { result = location.symbol; break loop; } break; - case 130: - if (location.parent && location.parent.kind === 129) { + case 130 /* Decorator */: + // Decorators are resolved at the class declaration. Resolving at the parameter + // or member would result in looking up locals in the method. + // + // function y() {} + // class C { + // method(@y x, y) {} // <-- decorator y should be resolved at the class declaration, not the parameter. + // } + // + if (location.parent && location.parent.kind === 129 /* Parameter */) { location = location.parent; } + // + // function y() {} + // class C { + // @y method(x, y) {} // <-- decorator y should be resolved at the class declaration, not the method. + // } + // if (location.parent && ts.isClassElement(location.parent)) { location = location.parent; } @@ -9344,32 +10987,47 @@ var ts; } return undefined; } + // Perform extra checks only if error reporting was requested if (nameNotFoundMessage) { if (propertyWithInvalidInitializer) { + // We have a match, but the reference occurred within a property initializer and the identifier also binds + // to a local variable in the constructor where the code will be emitted. var propertyName = propertyWithInvalidInitializer.name; error(errorLocation, ts.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, ts.declarationNameToString(propertyName), typeof nameArg === "string" ? nameArg : ts.declarationNameToString(nameArg)); return undefined; } - if (result.flags & 2) { + if (result.flags & 2 /* BlockScopedVariable */) { checkResolvedBlockScopedVariable(result, errorLocation); } } return result; } function checkResolvedBlockScopedVariable(result, errorLocation) { - ts.Debug.assert((result.flags & 2) !== 0); + ts.Debug.assert((result.flags & 2 /* BlockScopedVariable */) !== 0); + // Block-scoped variables cannot be used before their definition var declaration = ts.forEach(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) ? d : undefined; }); ts.Debug.assert(declaration !== undefined, "Block-scoped variable declaration is undefined"); + // first check if usage is lexically located after the declaration var isUsedBeforeDeclaration = !isDefinedBefore(declaration, errorLocation); if (!isUsedBeforeDeclaration) { - var variableDeclaration = ts.getAncestor(declaration, 198); + // lexical check succeeded however code still can be illegal. + // - block scoped variables cannot be used in its initializers + // let x = x; // illegal but usage is lexically after definition + // - in ForIn/ForOf statements variable cannot be contained in expression part + // for (let x in x) + // for (let x of x) + // climb up to the variable declaration skipping binding patterns + var variableDeclaration = ts.getAncestor(declaration, 198 /* VariableDeclaration */); var container = ts.getEnclosingBlockScopeContainer(variableDeclaration); - if (variableDeclaration.parent.parent.kind === 180 || - variableDeclaration.parent.parent.kind === 186) { + if (variableDeclaration.parent.parent.kind === 180 /* VariableStatement */ || + variableDeclaration.parent.parent.kind === 186 /* ForStatement */) { + // variable statement/for statement case, + // use site should not be inside variable declaration (initializer of declaration or binding element) isUsedBeforeDeclaration = isSameScopeDescendentOf(errorLocation, variableDeclaration, container); } - else if (variableDeclaration.parent.parent.kind === 188 || - variableDeclaration.parent.parent.kind === 187) { + else if (variableDeclaration.parent.parent.kind === 188 /* ForOfStatement */ || + variableDeclaration.parent.parent.kind === 187 /* ForInStatement */) { + // ForIn/ForOf case - use site should not be used in expression part var expression = variableDeclaration.parent.parent.expression; isUsedBeforeDeclaration = isSameScopeDescendentOf(errorLocation, expression, container); } @@ -9378,6 +11036,10 @@ var ts; error(errorLocation, ts.Diagnostics.Block_scoped_variable_0_used_before_its_declaration, ts.declarationNameToString(declaration.name)); } } + /* Starting from 'initial' node walk up the parent chain until 'stopAt' node is reached. + * If at any point current node is equal to 'parent' node - return true. + * Return false if 'stopAt' node is reached or isFunctionLike(current) === true. + */ function isSameScopeDescendentOf(initial, parent, stopAt) { if (!parent) { return false; @@ -9391,10 +11053,10 @@ var ts; } function getAnyImportSyntax(node) { if (ts.isAliasSymbolDeclaration(node)) { - if (node.kind === 208) { + if (node.kind === 208 /* ImportEqualsDeclaration */) { return node; } - while (node && node.kind !== 209) { + while (node && node.kind !== 209 /* ImportDeclaration */) { node = node.parent; } return node; @@ -9404,7 +11066,7 @@ var ts; return ts.forEach(symbol.declarations, function (d) { return ts.isAliasSymbolDeclaration(d) ? d : undefined; }); } function getTargetOfImportEqualsDeclaration(node) { - if (node.moduleReference.kind === 219) { + if (node.moduleReference.kind === 219 /* ExternalModuleReference */) { return resolveExternalModuleSymbol(resolveExternalModuleName(node, ts.getExternalModuleImportEqualsDeclarationExpression(node))); } return getSymbolOfPartOfRightHandSideOfImportEquals(node.moduleReference, node); @@ -9424,15 +11086,33 @@ var ts; return resolveESModuleSymbol(resolveExternalModuleName(node, moduleSpecifier), moduleSpecifier); } function getMemberOfModuleVariable(moduleSymbol, name) { - if (moduleSymbol.flags & 3) { + if (moduleSymbol.flags & 3 /* Variable */) { var typeAnnotation = moduleSymbol.valueDeclaration.type; if (typeAnnotation) { return getPropertyOfType(getTypeFromTypeNodeOrHeritageClauseElement(typeAnnotation), name); } } } + // This function creates a synthetic symbol that combines the value side of one symbol with the + // type/namespace side of another symbol. Consider this example: + // + // declare module graphics { + // interface Point { + // x: number; + // y: number; + // } + // } + // declare var graphics: { + // Point: new (x: number, y: number) => graphics.Point; + // } + // declare module "graphics" { + // export = graphics; + // } + // + // An 'import { Point } from "graphics"' needs to create a symbol that combines the value side 'Point' + // property with the type/namespace side interface 'Point'. function combineValueAndTypeSymbols(valueSymbol, typeSymbol) { - if (valueSymbol.flags & (793056 | 1536)) { + if (valueSymbol.flags & (793056 /* Type */ | 1536 /* Namespace */)) { return valueSymbol; } var result = createSymbol(valueSymbol.flags | typeSymbol.flags, valueSymbol.name); @@ -9447,7 +11127,7 @@ var ts; return result; } function getExportOfModule(symbol, name) { - if (symbol.flags & 1536) { + if (symbol.flags & 1536 /* Module */) { var exports = getExportsOfSymbol(symbol); if (ts.hasProperty(exports, name)) { return resolveSymbol(exports[name]); @@ -9455,7 +11135,7 @@ var ts; } } function getPropertyOfVariable(symbol, name) { - if (symbol.flags & 3) { + if (symbol.flags & 3 /* Variable */) { var typeAnnotation = symbol.valueDeclaration.type; if (typeAnnotation) { return resolveSymbol(getPropertyOfType(getTypeFromTypeNodeOrHeritageClauseElement(typeAnnotation), name)); @@ -9486,32 +11166,32 @@ var ts; function getTargetOfExportSpecifier(node) { return node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node) : - resolveEntityName(node.propertyName || node.name, 107455 | 793056 | 1536); + resolveEntityName(node.propertyName || node.name, 107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */); } function getTargetOfExportAssignment(node) { - return node.expression && resolveEntityName(node.expression, 107455 | 793056 | 1536); + return resolveEntityName(node.expression, 107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */); } function getTargetOfAliasDeclaration(node) { switch (node.kind) { - case 208: + case 208 /* ImportEqualsDeclaration */: return getTargetOfImportEqualsDeclaration(node); - case 210: + case 210 /* ImportClause */: return getTargetOfImportClause(node); - case 211: + case 211 /* NamespaceImport */: return getTargetOfNamespaceImport(node); - case 213: + case 213 /* ImportSpecifier */: return getTargetOfImportSpecifier(node); - case 217: + case 217 /* ExportSpecifier */: return getTargetOfExportSpecifier(node); - case 214: + case 214 /* ExportAssignment */: return getTargetOfExportAssignment(node); } } function resolveSymbol(symbol) { - return symbol && symbol.flags & 8388608 && !(symbol.flags & (107455 | 793056 | 1536)) ? resolveAlias(symbol) : symbol; + return symbol && symbol.flags & 8388608 /* Alias */ && !(symbol.flags & (107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */)) ? resolveAlias(symbol) : symbol; } function resolveAlias(symbol) { - ts.Debug.assert((symbol.flags & 8388608) !== 0, "Should only get Alias here."); + ts.Debug.assert((symbol.flags & 8388608 /* Alias */) !== 0, "Should only get Alias here."); var links = getSymbolLinks(symbol); if (!links.target) { links.target = resolvingSymbol; @@ -9534,62 +11214,79 @@ var ts; var target = resolveAlias(symbol); if (target) { var markAlias = (target === unknownSymbol && compilerOptions.separateCompilation) || - (target !== unknownSymbol && (target.flags & 107455) && !isConstEnumOrConstEnumOnlyModule(target)); + (target !== unknownSymbol && (target.flags & 107455 /* Value */) && !isConstEnumOrConstEnumOnlyModule(target)); if (markAlias) { markAliasSymbolAsReferenced(symbol); } } } + // When an alias symbol is referenced, we need to mark the entity it references as referenced and in turn repeat that until + // we reach a non-alias or an exported entity (which is always considered referenced). We do this by checking the target of + // the alias as an expression (which recursively takes us back here if the target references another alias). function markAliasSymbolAsReferenced(symbol) { var links = getSymbolLinks(symbol); if (!links.referenced) { links.referenced = true; var node = getDeclarationOfAliasSymbol(symbol); - if (node.kind === 214 && node.expression) { + if (node.kind === 214 /* ExportAssignment */) { + // export default checkExpressionCached(node.expression); } - else if (node.kind === 217) { + else if (node.kind === 217 /* ExportSpecifier */) { + // export { } or export { as foo } checkExpressionCached(node.propertyName || node.name); } else if (ts.isInternalModuleImportEqualsDeclaration(node)) { + // import foo = checkExpressionCached(node.moduleReference); } } } + // This function is only for imports with entity names function getSymbolOfPartOfRightHandSideOfImportEquals(entityName, importDeclaration) { if (!importDeclaration) { - importDeclaration = ts.getAncestor(entityName, 208); + importDeclaration = ts.getAncestor(entityName, 208 /* ImportEqualsDeclaration */); ts.Debug.assert(importDeclaration !== undefined); } - if (entityName.kind === 65 && ts.isRightSideOfQualifiedNameOrPropertyAccess(entityName)) { + // There are three things we might try to look for. In the following examples, + // the search term is enclosed in |...|: + // + // import a = |b|; // Namespace + // import a = |b.c|; // Value, type, namespace + // import a = |b.c|.d; // Namespace + if (entityName.kind === 65 /* Identifier */ && ts.isRightSideOfQualifiedNameOrPropertyAccess(entityName)) { entityName = entityName.parent; } - if (entityName.kind === 65 || entityName.parent.kind === 126) { - return resolveEntityName(entityName, 1536); + // Check for case 1 and 3 in the above example + if (entityName.kind === 65 /* Identifier */ || entityName.parent.kind === 126 /* QualifiedName */) { + return resolveEntityName(entityName, 1536 /* Namespace */); } else { - ts.Debug.assert(entityName.parent.kind === 208); - return resolveEntityName(entityName, 107455 | 793056 | 1536); + // Case 2 in above example + // entityName.kind could be a QualifiedName or a Missing identifier + ts.Debug.assert(entityName.parent.kind === 208 /* ImportEqualsDeclaration */); + return resolveEntityName(entityName, 107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */); } } function getFullyQualifiedName(symbol) { return symbol.parent ? getFullyQualifiedName(symbol.parent) + "." + symbolToString(symbol) : symbolToString(symbol); } + // Resolves a qualified name and any involved aliases function resolveEntityName(name, meaning) { if (ts.nodeIsMissing(name)) { return undefined; } var symbol; - if (name.kind === 65) { + if (name.kind === 65 /* Identifier */) { symbol = resolveName(name, name.text, meaning, ts.Diagnostics.Cannot_find_name_0, name); if (!symbol) { return undefined; } } - else if (name.kind === 126 || name.kind === 155) { - var left = name.kind === 126 ? name.left : name.expression; - var right = name.kind === 126 ? name.right : name.name; - var namespace = resolveEntityName(left, 1536); + else if (name.kind === 126 /* QualifiedName */ || name.kind === 155 /* PropertyAccessExpression */) { + var left = name.kind === 126 /* QualifiedName */ ? name.left : name.expression; + var right = name.kind === 126 /* QualifiedName */ ? name.right : name.name; + var namespace = resolveEntityName(left, 1536 /* Namespace */); if (!namespace || namespace === unknownSymbol || ts.nodeIsMissing(right)) { return undefined; } @@ -9602,24 +11299,28 @@ var ts; else { ts.Debug.fail("Unknown entity name kind."); } - ts.Debug.assert((symbol.flags & 16777216) === 0, "Should never get an instantiated symbol here."); + ts.Debug.assert((symbol.flags & 16777216 /* Instantiated */) === 0, "Should never get an instantiated symbol here."); return symbol.flags & meaning ? symbol : resolveAlias(symbol); } function isExternalModuleNameRelative(moduleName) { + // TypeScript 1.0 spec (April 2014): 11.2.1 + // An external module name is "relative" if the first term is "." or "..". return moduleName.substr(0, 2) === "./" || moduleName.substr(0, 3) === "../" || moduleName.substr(0, 2) === ".\\" || moduleName.substr(0, 3) === "..\\"; } function resolveExternalModuleName(location, moduleReferenceExpression) { - if (moduleReferenceExpression.kind !== 8) { + if (moduleReferenceExpression.kind !== 8 /* StringLiteral */) { return; } var moduleReferenceLiteral = moduleReferenceExpression; var searchPath = ts.getDirectoryPath(getSourceFile(location).fileName); + // Module names are escaped in our symbol table. However, string literal values aren't. + // Escape the name in the "require(...)" clause to ensure we find the right symbol. var moduleName = ts.escapeIdentifier(moduleReferenceLiteral.text); if (!moduleName) return; var isRelative = isExternalModuleNameRelative(moduleName); if (!isRelative) { - var symbol = getSymbol(globals, '"' + moduleName + '"', 512); + var symbol = getSymbol(globals, '"' + moduleName + '"', 512 /* ValueModule */); if (symbol) { return symbol; } @@ -9646,12 +11347,17 @@ var ts; } error(moduleReferenceLiteral, ts.Diagnostics.Cannot_find_external_module_0, moduleName); } + // An external module with an 'export =' declaration resolves to the target of the 'export =' declaration, + // and an external module with no 'export =' declaration resolves to the module itself. function resolveExternalModuleSymbol(moduleSymbol) { return moduleSymbol && resolveSymbol(moduleSymbol.exports["export="]) || moduleSymbol; } + // An external module with an 'export =' declaration may be referenced as an ES6 module provided the 'export =' + // references a symbol that is at least declared as a module or a variable. The target of the 'export =' may + // combine other declarations with the module or variable (e.g. a class/module, function/module, interface/variable). function resolveESModuleSymbol(moduleSymbol, moduleReferenceExpression) { var symbol = resolveExternalModuleSymbol(moduleSymbol); - if (symbol && !(symbol.flags & (1536 | 3))) { + if (symbol && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */))) { error(moduleReferenceExpression, ts.Diagnostics.External_module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct, symbolToString(moduleSymbol)); symbol = undefined; } @@ -9660,8 +11366,11 @@ var ts; function getExportAssignmentSymbol(moduleSymbol) { return moduleSymbol.exports["export="]; } + function getExportsOfModuleAsArray(moduleSymbol) { + return symbolsToArray(getExportsOfModule(moduleSymbol)); + } function getExportsOfSymbol(symbol) { - return symbol.flags & 1536 ? getExportsOfModule(symbol) : symbol.exports || emptySymbols; + return symbol.flags & 1536 /* Module */ ? getExportsOfModule(symbol) : symbol.exports || emptySymbols; } function getExportsOfModule(moduleSymbol) { var links = getSymbolLinks(moduleSymbol); @@ -9679,8 +11388,10 @@ var ts; var visitedSymbols = []; visit(moduleSymbol); return result || moduleSymbol.exports; + // The ES6 spec permits export * declarations in a module to circularly reference the module itself. For example, + // module 'a' can 'export * from "b"' and 'b' can 'export * from "a"' without error. function visit(symbol) { - if (symbol.flags & 1952 && !ts.contains(visitedSymbols, symbol)) { + if (symbol && symbol.flags & 1952 /* HasExports */ && !ts.contains(visitedSymbols, symbol)) { visitedSymbols.push(symbol); if (symbol !== moduleSymbol) { if (!result) { @@ -9688,6 +11399,7 @@ var ts; } extendExportSymbols(result, symbol.exports); } + // All export * declarations are collected in an __export symbol by the binder var exportStars = symbol.exports["__export"]; if (exportStars) { for (var _i = 0, _a = exportStars.declarations; _i < _a.length; _i++) { @@ -9709,19 +11421,23 @@ var ts; return getMergedSymbol(symbol.parent); } function getExportSymbolOfValueSymbolIfExported(symbol) { - return symbol && (symbol.flags & 1048576) !== 0 + return symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 ? getMergedSymbol(symbol.exportSymbol) : symbol; } function symbolIsValue(symbol) { - if (symbol.flags & 16777216) { + // If it is an instantiated symbol, then it is a value if the symbol it is an + // instantiation of is a value. + if (symbol.flags & 16777216 /* Instantiated */) { return symbolIsValue(getSymbolLinks(symbol).target); } - if (symbol.flags & 107455) { + // If the symbol has the value flag, it is trivially a value. + if (symbol.flags & 107455 /* Value */) { return true; } - if (symbol.flags & 8388608) { - return (resolveAlias(symbol).flags & 107455) !== 0; + // If it is an alias, then it is a value if the symbol it resolves to is a value. + if (symbol.flags & 8388608 /* Alias */) { + return (resolveAlias(symbol).flags & 107455 /* Value */) !== 0; } return false; } @@ -9729,7 +11445,7 @@ var ts; var members = node.members; for (var _i = 0; _i < members.length; _i++) { var member = members[_i]; - if (member.kind === 135 && ts.nodeIsPresent(member.body)) { + if (member.kind === 135 /* Constructor */ && ts.nodeIsPresent(member.body)) { return member; } } @@ -9749,11 +11465,15 @@ var ts; type.symbol = symbol; return type; } + // A reserved member name starts with two underscores, but the third character cannot be an underscore + // or the @ symbol. A third underscore indicates an escaped form of an identifer that started + // with at least two underscores. The @ character indicates that the name is denoted by a well known ES + // Symbol instance. function isReservedMemberName(name) { - return name.charCodeAt(0) === 95 && - name.charCodeAt(1) === 95 && - name.charCodeAt(2) !== 95 && - name.charCodeAt(2) !== 64; + return name.charCodeAt(0) === 95 /* _ */ && + name.charCodeAt(1) === 95 /* _ */ && + name.charCodeAt(2) !== 95 /* _ */ && + name.charCodeAt(2) !== 64 /* at */; } function getNamedMembers(members) { var result; @@ -9783,28 +11503,29 @@ var ts; return type; } function createAnonymousType(symbol, members, callSignatures, constructSignatures, stringIndexType, numberIndexType) { - return setObjectTypeMembers(createObjectType(32768, symbol), members, callSignatures, constructSignatures, stringIndexType, numberIndexType); + return setObjectTypeMembers(createObjectType(32768 /* Anonymous */, symbol), members, callSignatures, constructSignatures, stringIndexType, numberIndexType); } function forEachSymbolTableInScope(enclosingDeclaration, callback) { var result; for (var location_1 = enclosingDeclaration; location_1; location_1 = location_1.parent) { + // Locals of a source file are not in scope (because they get merged into the global symbol table) if (location_1.locals && !isGlobalSourceFile(location_1)) { if (result = callback(location_1.locals)) { return result; } } switch (location_1.kind) { - case 227: + case 227 /* SourceFile */: if (!ts.isExternalModule(location_1)) { break; } - case 205: + case 205 /* ModuleDeclaration */: if (result = callback(getSymbolOfNode(location_1).exports)) { return result; } break; - case 201: - case 202: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: if (result = callback(getSymbolOfNode(location_1).members)) { return result; } @@ -9814,34 +11535,45 @@ var ts; return callback(globals); } function getQualifiedLeftMeaning(rightMeaning) { - return rightMeaning === 107455 ? 107455 : 1536; + // If we are looking in value space, the parent meaning is value, other wise it is namespace + return rightMeaning === 107455 /* Value */ ? 107455 /* Value */ : 1536 /* Namespace */; } function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing) { function getAccessibleSymbolChainFromSymbolTable(symbols) { function canQualifySymbol(symbolFromSymbolTable, meaning) { + // If the symbol is equivalent and doesn't need further qualification, this symbol is accessible if (!needsQualification(symbolFromSymbolTable, enclosingDeclaration, meaning)) { return true; } + // If symbol needs qualification, make sure that parent is accessible, if it is then this symbol is accessible too var accessibleParent = getAccessibleSymbolChain(symbolFromSymbolTable.parent, enclosingDeclaration, getQualifiedLeftMeaning(meaning), useOnlyExternalAliasing); return !!accessibleParent; } function isAccessible(symbolFromSymbolTable, resolvedAliasSymbol) { if (symbol === (resolvedAliasSymbol || symbolFromSymbolTable)) { + // if the symbolFromSymbolTable is not external module (it could be if it was determined as ambient external module and would be in globals table) + // and if symbolfrom symbolTable or alias resolution matches the symbol, + // check the symbol can be qualified, it is only then this symbol is accessible return !ts.forEach(symbolFromSymbolTable.declarations, hasExternalModuleSymbol) && canQualifySymbol(symbolFromSymbolTable, meaning); } } + // If symbol is directly available by its name in the symbol table if (isAccessible(ts.lookUp(symbols, symbol.name))) { return [symbol]; } + // Check if symbol is any of the alias return ts.forEachValue(symbols, function (symbolFromSymbolTable) { - if (symbolFromSymbolTable.flags & 8388608 && symbolFromSymbolTable.name !== "export=") { + if (symbolFromSymbolTable.flags & 8388608 /* Alias */ && symbolFromSymbolTable.name !== "export=") { if (!useOnlyExternalAliasing || + // Is this external alias, then use it to name ts.forEach(symbolFromSymbolTable.declarations, ts.isExternalModuleImportEqualsDeclaration)) { var resolvedImportedSymbol = resolveAlias(symbolFromSymbolTable); if (isAccessible(symbolFromSymbolTable, resolveAlias(symbolFromSymbolTable))) { return [symbolFromSymbolTable]; } + // Look in the exported members, if we can find accessibleSymbolChain, symbol is accessible using this chain + // but only if the symbolFromSymbolTable can be qualified var accessibleSymbolsFromExports = resolvedImportedSymbol.exports ? getAccessibleSymbolChainFromSymbolTable(resolvedImportedSymbol.exports) : undefined; if (accessibleSymbolsFromExports && canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) { return [symbolFromSymbolTable].concat(accessibleSymbolsFromExports); @@ -9857,59 +11589,82 @@ var ts; function needsQualification(symbol, enclosingDeclaration, meaning) { var qualify = false; forEachSymbolTableInScope(enclosingDeclaration, function (symbolTable) { + // If symbol of this name is not available in the symbol table we are ok if (!ts.hasProperty(symbolTable, symbol.name)) { + // Continue to the next symbol table return false; } + // If the symbol with this name is present it should refer to the symbol var symbolFromSymbolTable = symbolTable[symbol.name]; if (symbolFromSymbolTable === symbol) { + // No need to qualify return true; } - symbolFromSymbolTable = (symbolFromSymbolTable.flags & 8388608) ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable; + // Qualify if the symbol from symbol table has same meaning as expected + symbolFromSymbolTable = (symbolFromSymbolTable.flags & 8388608 /* Alias */) ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable; if (symbolFromSymbolTable.flags & meaning) { qualify = true; return true; } + // Continue to the next symbol table return false; }); return qualify; } function isSymbolAccessible(symbol, enclosingDeclaration, meaning) { - if (symbol && enclosingDeclaration && !(symbol.flags & 262144)) { + if (symbol && enclosingDeclaration && !(symbol.flags & 262144 /* TypeParameter */)) { var initialSymbol = symbol; var meaningToLook = meaning; while (symbol) { + // Symbol is accessible if it by itself is accessible var accessibleSymbolChain = getAccessibleSymbolChain(symbol, enclosingDeclaration, meaningToLook, false); if (accessibleSymbolChain) { var hasAccessibleDeclarations = hasVisibleDeclarations(accessibleSymbolChain[0]); if (!hasAccessibleDeclarations) { return { - accessibility: 1, + accessibility: 1 /* NotAccessible */, errorSymbolName: symbolToString(initialSymbol, enclosingDeclaration, meaning), - errorModuleName: symbol !== initialSymbol ? symbolToString(symbol, enclosingDeclaration, 1536) : undefined + errorModuleName: symbol !== initialSymbol ? symbolToString(symbol, enclosingDeclaration, 1536 /* Namespace */) : undefined }; } return hasAccessibleDeclarations; } + // If we haven't got the accessible symbol, it doesn't mean the symbol is actually inaccessible. + // It could be a qualified symbol and hence verify the path + // e.g.: + // module m { + // export class c { + // } + // } + // let x: typeof m.c + // In the above example when we start with checking if typeof m.c symbol is accessible, + // we are going to see if c can be accessed in scope directly. + // But it can't, hence the accessible is going to be undefined, but that doesn't mean m.c is inaccessible + // It is accessible if the parent m is accessible because then m.c can be accessed through qualification meaningToLook = getQualifiedLeftMeaning(meaning); symbol = getParentOfSymbol(symbol); } + // This could be a symbol that is not exported in the external module + // or it could be a symbol from different external module that is not aliased and hence cannot be named var symbolExternalModule = ts.forEach(initialSymbol.declarations, getExternalModuleContainer); if (symbolExternalModule) { var enclosingExternalModule = getExternalModuleContainer(enclosingDeclaration); if (symbolExternalModule !== enclosingExternalModule) { + // name from different external module that is not visible return { - accessibility: 2, + accessibility: 2 /* CannotBeNamed */, errorSymbolName: symbolToString(initialSymbol, enclosingDeclaration, meaning), errorModuleName: symbolToString(symbolExternalModule) }; } } + // Just a local name that is not accessible return { - accessibility: 1, + accessibility: 1 /* NotAccessible */, errorSymbolName: symbolToString(initialSymbol, enclosingDeclaration, meaning) }; } - return { accessibility: 0 }; + return { accessibility: 0 /* Accessible */ }; function getExternalModuleContainer(declaration) { for (; declaration; declaration = declaration.parent) { if (hasExternalModuleSymbol(declaration)) { @@ -9919,20 +11674,22 @@ var ts; } } function hasExternalModuleSymbol(declaration) { - return (declaration.kind === 205 && declaration.name.kind === 8) || - (declaration.kind === 227 && ts.isExternalModule(declaration)); + return (declaration.kind === 205 /* ModuleDeclaration */ && declaration.name.kind === 8 /* StringLiteral */) || + (declaration.kind === 227 /* SourceFile */ && ts.isExternalModule(declaration)); } function hasVisibleDeclarations(symbol) { var aliasesToMakeVisible; if (ts.forEach(symbol.declarations, function (declaration) { return !getIsDeclarationVisible(declaration); })) { return undefined; } - return { accessibility: 0, aliasesToMakeVisible: aliasesToMakeVisible }; + return { accessibility: 0 /* Accessible */, aliasesToMakeVisible: aliasesToMakeVisible }; function getIsDeclarationVisible(declaration) { if (!isDeclarationVisible(declaration)) { + // Mark the unexported alias as visible if its parent is visible + // because these kind of aliases can be used to name types in declaration file var anyImportSyntax = getAnyImportSyntax(declaration); if (anyImportSyntax && - !(anyImportSyntax.flags & 1) && + !(anyImportSyntax.flags & 1 /* Export */) && isDeclarationVisible(anyImportSyntax.parent)) { getNodeLinks(declaration).isVisible = true; if (aliasesToMakeVisible) { @@ -9945,27 +11702,34 @@ var ts; } return true; } + // Declaration is not visible return false; } return true; } } function isEntityNameVisible(entityName, enclosingDeclaration) { + // get symbol of the first identifier of the entityName var meaning; - if (entityName.parent.kind === 144) { - meaning = 107455 | 1048576; + if (entityName.parent.kind === 144 /* TypeQuery */) { + // Typeof value + meaning = 107455 /* Value */ | 1048576 /* ExportValue */; } - else if (entityName.kind === 126 || entityName.kind === 155 || - entityName.parent.kind === 208) { - meaning = 1536; + else if (entityName.kind === 126 /* QualifiedName */ || entityName.kind === 155 /* PropertyAccessExpression */ || + entityName.parent.kind === 208 /* ImportEqualsDeclaration */) { + // Left identifier from type reference or TypeAlias + // Entity name of the import declaration + meaning = 1536 /* Namespace */; } else { - meaning = 793056; + // Type Reference or TypeAlias entity = Identifier + meaning = 793056 /* Type */; } var firstIdentifier = getFirstIdentifier(entityName); var symbol = resolveName(enclosingDeclaration, firstIdentifier.text, meaning, undefined, undefined); + // Verify if the symbol is accessible return (symbol && hasVisibleDeclarations(symbol)) || { - accessibility: 1, + accessibility: 1 /* NotAccessible */, errorSymbolName: ts.getTextOfNode(firstIdentifier), errorNode: firstIdentifier }; @@ -9991,26 +11755,31 @@ var ts; getSymbolDisplayBuilder().buildTypeDisplay(type, writer, enclosingDeclaration, flags); var result = writer.string(); ts.releaseStringWriter(writer); - var maxLength = compilerOptions.noErrorTruncation || flags & 4 ? undefined : 100; + var maxLength = compilerOptions.noErrorTruncation || flags & 4 /* NoTruncation */ ? undefined : 100; if (maxLength && result.length >= maxLength) { result = result.substr(0, maxLength - "...".length) + "..."; } return result; } function getTypeAliasForTypeLiteral(type) { - if (type.symbol && type.symbol.flags & 2048) { + if (type.symbol && type.symbol.flags & 2048 /* TypeLiteral */) { var node = type.symbol.declarations[0].parent; - while (node.kind === 149) { + while (node.kind === 149 /* ParenthesizedType */) { node = node.parent; } - if (node.kind === 203) { + if (node.kind === 203 /* TypeAliasDeclaration */) { return getSymbolOfNode(node); } } return undefined; } + // This is for caching the result of getSymbolDisplayBuilder. Do not access directly. var _displayBuilder; function getSymbolDisplayBuilder() { + /** + * Writes only the name of the symbol out to the writer. Uses the original source text + * for the name of the symbol if it is available to match how the user inputted the name. + */ function appendSymbolNameOnly(symbol, writer) { if (symbol.declarations && symbol.declarations.length > 0) { var declaration = symbol.declarations[0]; @@ -10021,29 +11790,42 @@ var ts; } writer.writeSymbol(symbol.name, symbol); } + /** + * Enclosing declaration is optional when we don't want to get qualified name in the enclosing declaration scope + * Meaning needs to be specified if the enclosing declaration is given + */ function buildSymbolDisplay(symbol, writer, enclosingDeclaration, meaning, flags, typeFlags) { var parentSymbol; function appendParentTypeArgumentsAndSymbolName(symbol) { if (parentSymbol) { - if (flags & 1) { - if (symbol.flags & 16777216) { + // Write type arguments of instantiated class/interface here + if (flags & 1 /* WriteTypeParametersOrArguments */) { + if (symbol.flags & 16777216 /* Instantiated */) { buildDisplayForTypeArgumentsAndDelimiters(getTypeParametersOfClassOrInterface(parentSymbol), symbol.mapper, writer, enclosingDeclaration); } else { buildTypeParameterDisplayFromSymbol(parentSymbol, writer, enclosingDeclaration); } } - writePunctuation(writer, 20); + writePunctuation(writer, 20 /* DotToken */); } parentSymbol = symbol; appendSymbolNameOnly(symbol, writer); } + // Let the writer know we just wrote out a symbol. The declaration emitter writer uses + // this to determine if an import it has previously seen (and not written out) needs + // to be written to the file once the walk of the tree is complete. + // + // NOTE(cyrusn): This approach feels somewhat unfortunate. A simple pass over the tree + // up front (for example, during checking) could determine if we need to emit the imports + // and we could then access that data during declaration emit. writer.trackSymbol(symbol, enclosingDeclaration, meaning); function walkSymbol(symbol, meaning) { if (symbol) { - var accessibleSymbolChain = getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, !!(flags & 2)); + var accessibleSymbolChain = getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, !!(flags & 2 /* UseOnlyExternalAliasing */)); if (!accessibleSymbolChain || needsQualification(accessibleSymbolChain[0], enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning : getQualifiedLeftMeaning(meaning))) { + // Go up and add our parent. walkSymbol(getParentOfSymbol(accessibleSymbolChain ? accessibleSymbolChain[0] : symbol), getQualifiedLeftMeaning(meaning)); } if (accessibleSymbolChain) { @@ -10053,18 +11835,23 @@ var ts; } } else { + // If we didn't find accessible symbol chain for this symbol, break if this is external module if (!parentSymbol && ts.forEach(symbol.declarations, hasExternalModuleSymbol)) { return; } - if (symbol.flags & 2048 || symbol.flags & 4096) { + // if this is anonymous type break + if (symbol.flags & 2048 /* TypeLiteral */ || symbol.flags & 4096 /* ObjectLiteral */) { return; } appendParentTypeArgumentsAndSymbolName(symbol); } } } - var isTypeParameter = symbol.flags & 262144; - var typeFormatFlag = 128 & typeFlags; + // Get qualified name if the symbol is not a type parameter + // and there is an enclosing declaration or we specifically + // asked for it + var isTypeParameter = symbol.flags & 262144 /* TypeParameter */; + var typeFormatFlag = 128 /* UseFullyQualifiedType */ & typeFlags; if (!isTypeParameter && (enclosingDeclaration || typeFormatFlag)) { walkSymbol(symbol, meaning); return; @@ -10072,37 +11859,42 @@ var ts; return appendParentTypeArgumentsAndSymbolName(symbol); } function buildTypeDisplay(type, writer, enclosingDeclaration, globalFlags, typeStack) { - var globalFlagsToPass = globalFlags & 16; + var globalFlagsToPass = globalFlags & 16 /* WriteOwnNameForAnyLike */; return writeType(type, globalFlags); function writeType(type, flags) { - if (type.flags & 1048703) { - writer.writeKeyword(!(globalFlags & 16) && - (type.flags & 1) ? "any" : type.intrinsicName); + // Write undefined/null type as any + if (type.flags & 1048703 /* Intrinsic */) { + // Special handling for unknown / resolving types, they should show up as any and not unknown or __resolving + writer.writeKeyword(!(globalFlags & 16 /* WriteOwnNameForAnyLike */) && + (type.flags & 1 /* Any */) ? "any" : type.intrinsicName); } - else if (type.flags & 4096) { + else if (type.flags & 4096 /* Reference */) { writeTypeReference(type, flags); } - else if (type.flags & (1024 | 2048 | 128 | 512)) { - buildSymbolDisplay(type.symbol, writer, enclosingDeclaration, 793056, 0, flags); + else if (type.flags & (1024 /* Class */ | 2048 /* Interface */ | 128 /* Enum */ | 512 /* TypeParameter */)) { + // The specified symbol flags need to be reinterpreted as type flags + buildSymbolDisplay(type.symbol, writer, enclosingDeclaration, 793056 /* Type */, 0 /* None */, flags); } - else if (type.flags & 8192) { + else if (type.flags & 8192 /* Tuple */) { writeTupleType(type); } - else if (type.flags & 16384) { + else if (type.flags & 16384 /* Union */) { writeUnionType(type, flags); } - else if (type.flags & 32768) { + else if (type.flags & 32768 /* Anonymous */) { writeAnonymousType(type, flags); } - else if (type.flags & 256) { + else if (type.flags & 256 /* StringLiteral */) { writer.writeStringLiteral(type.text); } else { - writePunctuation(writer, 14); + // Should never get here + // { ... } + writePunctuation(writer, 14 /* OpenBraceToken */); writeSpace(writer); - writePunctuation(writer, 21); + writePunctuation(writer, 21 /* DotDotDotToken */); writeSpace(writer); - writePunctuation(writer, 15); + writePunctuation(writer, 15 /* CloseBraceToken */); } } function writeTypeList(types, union) { @@ -10111,53 +11903,57 @@ var ts; if (union) { writeSpace(writer); } - writePunctuation(writer, union ? 44 : 23); + writePunctuation(writer, union ? 44 /* BarToken */ : 23 /* CommaToken */); writeSpace(writer); } - writeType(types[i], union ? 64 : 0); + writeType(types[i], union ? 64 /* InElementType */ : 0 /* None */); } } function writeTypeReference(type, flags) { - if (type.target === globalArrayType && !(flags & 1)) { - writeType(type.typeArguments[0], 64); - writePunctuation(writer, 18); - writePunctuation(writer, 19); + if (type.target === globalArrayType && !(flags & 1 /* WriteArrayAsGenericType */)) { + writeType(type.typeArguments[0], 64 /* InElementType */); + writePunctuation(writer, 18 /* OpenBracketToken */); + writePunctuation(writer, 19 /* CloseBracketToken */); } else { - buildSymbolDisplay(type.target.symbol, writer, enclosingDeclaration, 793056); - writePunctuation(writer, 24); + buildSymbolDisplay(type.target.symbol, writer, enclosingDeclaration, 793056 /* Type */); + writePunctuation(writer, 24 /* LessThanToken */); writeTypeList(type.typeArguments, false); - writePunctuation(writer, 25); + writePunctuation(writer, 25 /* GreaterThanToken */); } } function writeTupleType(type) { - writePunctuation(writer, 18); + writePunctuation(writer, 18 /* OpenBracketToken */); writeTypeList(type.elementTypes, false); - writePunctuation(writer, 19); + writePunctuation(writer, 19 /* CloseBracketToken */); } function writeUnionType(type, flags) { - if (flags & 64) { - writePunctuation(writer, 16); + if (flags & 64 /* InElementType */) { + writePunctuation(writer, 16 /* OpenParenToken */); } writeTypeList(type.types, true); - if (flags & 64) { - writePunctuation(writer, 17); + if (flags & 64 /* InElementType */) { + writePunctuation(writer, 17 /* CloseParenToken */); } } function writeAnonymousType(type, flags) { - if (type.symbol && type.symbol.flags & (32 | 384 | 512)) { + // Always use 'typeof T' for type of class, enum, and module objects + if (type.symbol && type.symbol.flags & (32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) { writeTypeofSymbol(type, flags); } else if (shouldWriteTypeOfFunctionSymbol()) { writeTypeofSymbol(type, flags); } else if (typeStack && ts.contains(typeStack, type)) { + // If type is an anonymous type literal in a type alias declaration, use type alias name var typeAlias = getTypeAliasForTypeLiteral(type); if (typeAlias) { - buildSymbolDisplay(typeAlias, writer, enclosingDeclaration, 793056, 0, flags); + // The specified symbol flags need to be reinterpreted as type flags + buildSymbolDisplay(typeAlias, writer, enclosingDeclaration, 793056 /* Type */, 0 /* None */, flags); } else { - writeKeyword(writer, 112); + // Recursive usage, use any + writeKeyword(writer, 112 /* AnyKeyword */); } } else { @@ -10170,28 +11966,31 @@ var ts; } function shouldWriteTypeOfFunctionSymbol() { if (type.symbol) { - var isStaticMethodSymbol = !!(type.symbol.flags & 8192 && - ts.forEach(type.symbol.declarations, function (declaration) { return declaration.flags & 128; })); - var isNonLocalFunctionSymbol = !!(type.symbol.flags & 16) && + var isStaticMethodSymbol = !!(type.symbol.flags & 8192 /* Method */ && + ts.forEach(type.symbol.declarations, function (declaration) { return declaration.flags & 128 /* Static */; })); + var isNonLocalFunctionSymbol = !!(type.symbol.flags & 16 /* Function */) && (type.symbol.parent || ts.forEach(type.symbol.declarations, function (declaration) { - return declaration.parent.kind === 227 || declaration.parent.kind === 206; + return declaration.parent.kind === 227 /* SourceFile */ || declaration.parent.kind === 206 /* ModuleBlock */; })); if (isStaticMethodSymbol || isNonLocalFunctionSymbol) { - return !!(flags & 2) || - (typeStack && ts.contains(typeStack, type)); + // typeof is allowed only for static/non local functions + return !!(flags & 2 /* UseTypeOfFunction */) || + (typeStack && ts.contains(typeStack, type)); // it is type of the symbol uses itself recursively } } } } function writeTypeofSymbol(type, typeFormatFlags) { - writeKeyword(writer, 97); + writeKeyword(writer, 97 /* TypeOfKeyword */); writeSpace(writer); - buildSymbolDisplay(type.symbol, writer, enclosingDeclaration, 107455, 0, typeFormatFlags); + buildSymbolDisplay(type.symbol, writer, enclosingDeclaration, 107455 /* Value */, 0 /* None */, typeFormatFlags); } function getIndexerParameterName(type, indexKind, fallbackName) { var declaration = getIndexDeclarationOfSymbol(type.symbol, indexKind); if (!declaration) { + // declaration might not be found if indexer was added from the contextual type. + // in this case use fallback name return fallbackName; } ts.Debug.assert(declaration.parameters.length !== 0); @@ -10201,111 +12000,113 @@ var ts; var resolved = resolveObjectOrUnionTypeMembers(type); if (!resolved.properties.length && !resolved.stringIndexType && !resolved.numberIndexType) { if (!resolved.callSignatures.length && !resolved.constructSignatures.length) { - writePunctuation(writer, 14); - writePunctuation(writer, 15); + writePunctuation(writer, 14 /* OpenBraceToken */); + writePunctuation(writer, 15 /* CloseBraceToken */); return; } if (resolved.callSignatures.length === 1 && !resolved.constructSignatures.length) { - if (flags & 64) { - writePunctuation(writer, 16); + if (flags & 64 /* InElementType */) { + writePunctuation(writer, 16 /* OpenParenToken */); } - buildSignatureDisplay(resolved.callSignatures[0], writer, enclosingDeclaration, globalFlagsToPass | 8, typeStack); - if (flags & 64) { - writePunctuation(writer, 17); + buildSignatureDisplay(resolved.callSignatures[0], writer, enclosingDeclaration, globalFlagsToPass | 8 /* WriteArrowStyleSignature */, typeStack); + if (flags & 64 /* InElementType */) { + writePunctuation(writer, 17 /* CloseParenToken */); } return; } if (resolved.constructSignatures.length === 1 && !resolved.callSignatures.length) { - if (flags & 64) { - writePunctuation(writer, 16); + if (flags & 64 /* InElementType */) { + writePunctuation(writer, 16 /* OpenParenToken */); } - writeKeyword(writer, 88); + writeKeyword(writer, 88 /* NewKeyword */); writeSpace(writer); - buildSignatureDisplay(resolved.constructSignatures[0], writer, enclosingDeclaration, globalFlagsToPass | 8, typeStack); - if (flags & 64) { - writePunctuation(writer, 17); + buildSignatureDisplay(resolved.constructSignatures[0], writer, enclosingDeclaration, globalFlagsToPass | 8 /* WriteArrowStyleSignature */, typeStack); + if (flags & 64 /* InElementType */) { + writePunctuation(writer, 17 /* CloseParenToken */); } return; } } - writePunctuation(writer, 14); + writePunctuation(writer, 14 /* OpenBraceToken */); writer.writeLine(); writer.increaseIndent(); for (var _i = 0, _a = resolved.callSignatures; _i < _a.length; _i++) { var signature = _a[_i]; buildSignatureDisplay(signature, writer, enclosingDeclaration, globalFlagsToPass, typeStack); - writePunctuation(writer, 22); + writePunctuation(writer, 22 /* SemicolonToken */); writer.writeLine(); } for (var _b = 0, _c = resolved.constructSignatures; _b < _c.length; _b++) { var signature = _c[_b]; - writeKeyword(writer, 88); + writeKeyword(writer, 88 /* NewKeyword */); writeSpace(writer); buildSignatureDisplay(signature, writer, enclosingDeclaration, globalFlagsToPass, typeStack); - writePunctuation(writer, 22); + writePunctuation(writer, 22 /* SemicolonToken */); writer.writeLine(); } if (resolved.stringIndexType) { - writePunctuation(writer, 18); - writer.writeParameter(getIndexerParameterName(resolved, 0, "x")); - writePunctuation(writer, 51); + // [x: string]: + writePunctuation(writer, 18 /* OpenBracketToken */); + writer.writeParameter(getIndexerParameterName(resolved, 0 /* String */, "x")); + writePunctuation(writer, 51 /* ColonToken */); writeSpace(writer); - writeKeyword(writer, 121); - writePunctuation(writer, 19); - writePunctuation(writer, 51); + writeKeyword(writer, 121 /* StringKeyword */); + writePunctuation(writer, 19 /* CloseBracketToken */); + writePunctuation(writer, 51 /* ColonToken */); writeSpace(writer); - writeType(resolved.stringIndexType, 0); - writePunctuation(writer, 22); + writeType(resolved.stringIndexType, 0 /* None */); + writePunctuation(writer, 22 /* SemicolonToken */); writer.writeLine(); } if (resolved.numberIndexType) { - writePunctuation(writer, 18); - writer.writeParameter(getIndexerParameterName(resolved, 1, "x")); - writePunctuation(writer, 51); + // [x: number]: + writePunctuation(writer, 18 /* OpenBracketToken */); + writer.writeParameter(getIndexerParameterName(resolved, 1 /* Number */, "x")); + writePunctuation(writer, 51 /* ColonToken */); writeSpace(writer); - writeKeyword(writer, 119); - writePunctuation(writer, 19); - writePunctuation(writer, 51); + writeKeyword(writer, 119 /* NumberKeyword */); + writePunctuation(writer, 19 /* CloseBracketToken */); + writePunctuation(writer, 51 /* ColonToken */); writeSpace(writer); - writeType(resolved.numberIndexType, 0); - writePunctuation(writer, 22); + writeType(resolved.numberIndexType, 0 /* None */); + writePunctuation(writer, 22 /* SemicolonToken */); writer.writeLine(); } for (var _d = 0, _e = resolved.properties; _d < _e.length; _d++) { var p = _e[_d]; var t = getTypeOfSymbol(p); - if (p.flags & (16 | 8192) && !getPropertiesOfObjectType(t).length) { - var signatures = getSignaturesOfType(t, 0); + if (p.flags & (16 /* Function */ | 8192 /* Method */) && !getPropertiesOfObjectType(t).length) { + var signatures = getSignaturesOfType(t, 0 /* Call */); for (var _f = 0; _f < signatures.length; _f++) { var signature = signatures[_f]; buildSymbolDisplay(p, writer); - if (p.flags & 536870912) { - writePunctuation(writer, 50); + if (p.flags & 536870912 /* Optional */) { + writePunctuation(writer, 50 /* QuestionToken */); } buildSignatureDisplay(signature, writer, enclosingDeclaration, globalFlagsToPass, typeStack); - writePunctuation(writer, 22); + writePunctuation(writer, 22 /* SemicolonToken */); writer.writeLine(); } } else { buildSymbolDisplay(p, writer); - if (p.flags & 536870912) { - writePunctuation(writer, 50); + if (p.flags & 536870912 /* Optional */) { + writePunctuation(writer, 50 /* QuestionToken */); } - writePunctuation(writer, 51); + writePunctuation(writer, 51 /* ColonToken */); writeSpace(writer); - writeType(t, 0); - writePunctuation(writer, 22); + writeType(t, 0 /* None */); + writePunctuation(writer, 22 /* SemicolonToken */); writer.writeLine(); } } writer.decreaseIndent(); - writePunctuation(writer, 15); + writePunctuation(writer, 15 /* CloseBraceToken */); } } function buildTypeParameterDisplayFromSymbol(symbol, writer, enclosingDeclaraiton, flags) { var targetSymbol = getTargetSymbol(symbol); - if (targetSymbol.flags & 32 || targetSymbol.flags & 64) { + if (targetSymbol.flags & 32 /* Class */ || targetSymbol.flags & 64 /* Interface */) { buildDisplayForTypeParametersAndDelimiters(getTypeParametersOfClassOrInterface(symbol), writer, enclosingDeclaraiton, flags); } } @@ -10314,73 +12115,75 @@ var ts; var constraint = getConstraintOfTypeParameter(tp); if (constraint) { writeSpace(writer); - writeKeyword(writer, 79); + writeKeyword(writer, 79 /* ExtendsKeyword */); writeSpace(writer); buildTypeDisplay(constraint, writer, enclosingDeclaration, flags, typeStack); } } function buildParameterDisplay(p, writer, enclosingDeclaration, flags, typeStack) { if (ts.hasDotDotDotToken(p.valueDeclaration)) { - writePunctuation(writer, 21); + writePunctuation(writer, 21 /* DotDotDotToken */); } appendSymbolNameOnly(p, writer); if (ts.hasQuestionToken(p.valueDeclaration) || p.valueDeclaration.initializer) { - writePunctuation(writer, 50); + writePunctuation(writer, 50 /* QuestionToken */); } - writePunctuation(writer, 51); + writePunctuation(writer, 51 /* ColonToken */); writeSpace(writer); buildTypeDisplay(getTypeOfSymbol(p), writer, enclosingDeclaration, flags, typeStack); } function buildDisplayForTypeParametersAndDelimiters(typeParameters, writer, enclosingDeclaration, flags, typeStack) { if (typeParameters && typeParameters.length) { - writePunctuation(writer, 24); + writePunctuation(writer, 24 /* LessThanToken */); for (var i = 0; i < typeParameters.length; i++) { if (i > 0) { - writePunctuation(writer, 23); + writePunctuation(writer, 23 /* CommaToken */); writeSpace(writer); } buildTypeParameterDisplay(typeParameters[i], writer, enclosingDeclaration, flags, typeStack); } - writePunctuation(writer, 25); + writePunctuation(writer, 25 /* GreaterThanToken */); } } function buildDisplayForTypeArgumentsAndDelimiters(typeParameters, mapper, writer, enclosingDeclaration, flags, typeStack) { if (typeParameters && typeParameters.length) { - writePunctuation(writer, 24); + writePunctuation(writer, 24 /* LessThanToken */); for (var i = 0; i < typeParameters.length; i++) { if (i > 0) { - writePunctuation(writer, 23); + writePunctuation(writer, 23 /* CommaToken */); writeSpace(writer); } - buildTypeDisplay(mapper(typeParameters[i]), writer, enclosingDeclaration, 0); + buildTypeDisplay(mapper(typeParameters[i]), writer, enclosingDeclaration, 0 /* None */); } - writePunctuation(writer, 25); + writePunctuation(writer, 25 /* GreaterThanToken */); } } function buildDisplayForParametersAndDelimiters(parameters, writer, enclosingDeclaration, flags, typeStack) { - writePunctuation(writer, 16); + writePunctuation(writer, 16 /* OpenParenToken */); for (var i = 0; i < parameters.length; i++) { if (i > 0) { - writePunctuation(writer, 23); + writePunctuation(writer, 23 /* CommaToken */); writeSpace(writer); } buildParameterDisplay(parameters[i], writer, enclosingDeclaration, flags, typeStack); } - writePunctuation(writer, 17); + writePunctuation(writer, 17 /* CloseParenToken */); } function buildReturnTypeDisplay(signature, writer, enclosingDeclaration, flags, typeStack) { - if (flags & 8) { + if (flags & 8 /* WriteArrowStyleSignature */) { writeSpace(writer); - writePunctuation(writer, 32); + writePunctuation(writer, 32 /* EqualsGreaterThanToken */); } else { - writePunctuation(writer, 51); + writePunctuation(writer, 51 /* ColonToken */); } writeSpace(writer); buildTypeDisplay(getReturnTypeOfSignature(signature), writer, enclosingDeclaration, flags, typeStack); } function buildSignatureDisplay(signature, writer, enclosingDeclaration, flags, typeStack) { - if (signature.target && (flags & 32)) { + if (signature.target && (flags & 32 /* WriteTypeArgumentsOfSignature */)) { + // Instantiated signature, write type arguments instead + // This is achieved by passing in the mapper separately buildDisplayForTypeArgumentsAndDelimiters(signature.target.typeParameters, signature.mapper, writer, enclosingDeclaration); } else { @@ -10407,41 +12210,47 @@ var ts; function isDeclarationVisible(node) { function getContainingExternalModule(node) { for (; node; node = node.parent) { - if (node.kind === 205) { - if (node.name.kind === 8) { + if (node.kind === 205 /* ModuleDeclaration */) { + if (node.name.kind === 8 /* StringLiteral */) { return node; } } - else if (node.kind === 227) { + else if (node.kind === 227 /* SourceFile */) { return ts.isExternalModule(node) ? node : undefined; } } ts.Debug.fail("getContainingModule cant reach here"); } function isUsedInExportAssignment(node) { + // Get source File and see if it is external module and has export assigned symbol var externalModule = getContainingExternalModule(node); var exportAssignmentSymbol; var resolvedExportSymbol; if (externalModule) { + // This is export assigned symbol node var externalModuleSymbol = getSymbolOfNode(externalModule); exportAssignmentSymbol = getExportAssignmentSymbol(externalModuleSymbol); var symbolOfNode = getSymbolOfNode(node); if (isSymbolUsedInExportAssignment(symbolOfNode)) { return true; } - if (symbolOfNode.flags & 8388608) { + // if symbolOfNode is alias declaration, resolve the symbol declaration and check + if (symbolOfNode.flags & 8388608 /* Alias */) { return isSymbolUsedInExportAssignment(resolveAlias(symbolOfNode)); } } + // Check if the symbol is used in export assignment function isSymbolUsedInExportAssignment(symbol) { if (exportAssignmentSymbol === symbol) { return true; } - if (exportAssignmentSymbol && !!(exportAssignmentSymbol.flags & 8388608)) { + if (exportAssignmentSymbol && !!(exportAssignmentSymbol.flags & 8388608 /* Alias */)) { + // if export assigned symbol is alias declaration, resolve the alias resolvedExportSymbol = resolvedExportSymbol || resolveAlias(exportAssignmentSymbol); if (resolvedExportSymbol === symbol) { return true; } + // Container of resolvedExportSymbol is visible return ts.forEach(resolvedExportSymbol.declarations, function (current) { while (current) { if (current === node) { @@ -10455,58 +12264,69 @@ var ts; } function determineIfDeclarationIsVisible() { switch (node.kind) { - case 152: + case 152 /* BindingElement */: return isDeclarationVisible(node.parent.parent); - case 198: + case 198 /* VariableDeclaration */: if (ts.isBindingPattern(node.name) && !node.name.elements.length) { + // If the binding pattern is empty, this variable declaration is not visible return false; } - case 205: - case 201: - case 202: - case 203: - case 200: - case 204: - case 208: + // Otherwise fall through + case 205 /* ModuleDeclaration */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 200 /* FunctionDeclaration */: + case 204 /* EnumDeclaration */: + case 208 /* ImportEqualsDeclaration */: var parent_2 = getDeclarationContainer(node); - if (!(ts.getCombinedNodeFlags(node) & 1) && - !(node.kind !== 208 && parent_2.kind !== 227 && ts.isInAmbientContext(parent_2))) { + // If the node is not exported or it is not ambient module element (except import declaration) + if (!(ts.getCombinedNodeFlags(node) & 1 /* Export */) && + !(node.kind !== 208 /* ImportEqualsDeclaration */ && parent_2.kind !== 227 /* SourceFile */ && ts.isInAmbientContext(parent_2))) { return isGlobalSourceFile(parent_2); } + // Exported members/ambient module elements (exception import declaration) are visible if parent is visible return isDeclarationVisible(parent_2); - case 132: - case 131: - case 136: - case 137: - case 134: - case 133: - if (node.flags & (32 | 64)) { + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + if (node.flags & (32 /* Private */ | 64 /* Protected */)) { + // Private/protected properties/methods are not visible return false; } - case 135: - case 139: - case 138: - case 140: - case 129: - case 206: - case 142: - case 143: - case 145: - case 141: - case 146: - case 147: - case 148: - case 149: + // Public properties/methods are visible if its parents are visible, so let it fall into next case statement + case 135 /* Constructor */: + case 139 /* ConstructSignature */: + case 138 /* CallSignature */: + case 140 /* IndexSignature */: + case 129 /* Parameter */: + case 206 /* ModuleBlock */: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 145 /* TypeLiteral */: + case 141 /* TypeReference */: + case 146 /* ArrayType */: + case 147 /* TupleType */: + case 148 /* UnionType */: + case 149 /* ParenthesizedType */: return isDeclarationVisible(node.parent); - case 210: - case 211: - case 213: + // Default binding, import specifier and namespace import is visible + // only on demand so by default it is not visible + case 210 /* ImportClause */: + case 211 /* NamespaceImport */: + case 213 /* ImportSpecifier */: return false; - case 128: - case 227: + // Type parameters are always visible + case 128 /* TypeParameter */: + // Source file is always visible + case 227 /* SourceFile */: return true; - case 214: + // Export assignements do not create name bindings outside the module + case 214 /* ExportAssignment */: return false; default: ts.Debug.fail("isDeclarationVisible unknown: SyntaxKind: " + node.kind); @@ -10522,10 +12342,10 @@ var ts; } function collectLinkedAliases(node) { var exportSymbol; - if (node.parent && node.parent.kind === 214) { - exportSymbol = resolveName(node.parent, node.text, 107455 | 793056 | 1536, ts.Diagnostics.Cannot_find_name_0, node); + if (node.parent && node.parent.kind === 214 /* ExportAssignment */) { + exportSymbol = resolveName(node.parent, node.text, 107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */, ts.Diagnostics.Cannot_find_name_0, node); } - else if (node.parent.kind === 217) { + else if (node.parent.kind === 217 /* ExportSpecifier */) { exportSymbol = getTargetOfExportSpecifier(node.parent); } var result = []; @@ -10541,38 +12361,51 @@ var ts; result.push(resultNode); } if (ts.isInternalModuleImportEqualsDeclaration(declaration)) { + // Add the referenced top container visible var internalModuleReference = declaration.moduleReference; var firstIdentifier = getFirstIdentifier(internalModuleReference); - var importSymbol = resolveName(declaration, firstIdentifier.text, 107455 | 793056 | 1536, ts.Diagnostics.Cannot_find_name_0, firstIdentifier); + var importSymbol = resolveName(declaration, firstIdentifier.text, 107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */, ts.Diagnostics.Cannot_find_name_0, firstIdentifier); buildVisibleNodeList(importSymbol.declarations); } }); } } function getRootDeclaration(node) { - while (node.kind === 152) { + while (node.kind === 152 /* BindingElement */) { node = node.parent.parent; } return node; } function getDeclarationContainer(node) { node = getRootDeclaration(node); - return node.kind === 198 ? node.parent.parent.parent : node.parent; + // Parent chain: + // VaribleDeclaration -> VariableDeclarationList -> VariableStatement -> 'Declaration Container' + return node.kind === 198 /* VariableDeclaration */ ? node.parent.parent.parent : node.parent; } function getTypeOfPrototypeProperty(prototype) { + // TypeScript 1.0 spec (April 2014): 8.4 + // Every class automatically contains a static property member named 'prototype', + // the type of which is an instantiation of the class type with type Any supplied as a type argument for each type parameter. + // It is an error to explicitly declare a static property member with the name 'prototype'. var classType = getDeclaredTypeOfSymbol(prototype.parent); return classType.typeParameters ? createTypeReference(classType, ts.map(classType.typeParameters, function (_) { return anyType; })) : classType; } + // Return the type of the given property in the given type, or undefined if no such property exists function getTypeOfPropertyOfType(type, name) { var prop = getPropertyOfType(type, name); return prop ? getTypeOfSymbol(prop) : undefined; } + // Return the inferred type for a binding element function getTypeForBindingElement(declaration) { var pattern = declaration.parent; var parentType = getTypeForVariableLikeDeclaration(pattern.parent); + // If parent has the unknown (error) type, then so does this binding element if (parentType === unknownType) { return unknownType; } + // If no type was specified or inferred for parent, or if the specified or inferred type is any, + // infer from the initializer of the binding element if one is present. Otherwise, go with the + // undefined or any type of the parent. if (!parentType || parentType === anyType) { if (declaration.initializer) { return checkExpressionCached(declaration.initializer); @@ -10580,24 +12413,33 @@ var ts; return parentType; } var type; - if (pattern.kind === 150) { + if (pattern.kind === 150 /* ObjectBindingPattern */) { + // Use explicitly specified property name ({ p: xxx } form), or otherwise the implied name ({ p } form) var name_5 = declaration.propertyName || declaration.name; + // Use type of the specified property, or otherwise, for a numeric name, the type of the numeric index signature, + // or otherwise the type of the string index signature. type = getTypeOfPropertyOfType(parentType, name_5.text) || - isNumericLiteralName(name_5.text) && getIndexTypeOfType(parentType, 1) || - getIndexTypeOfType(parentType, 0); + isNumericLiteralName(name_5.text) && getIndexTypeOfType(parentType, 1 /* Number */) || + getIndexTypeOfType(parentType, 0 /* String */); if (!type) { error(name_5, ts.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature, typeToString(parentType), ts.declarationNameToString(name_5)); return unknownType; } } else { - if (!isArrayLikeType(parentType)) { - error(pattern, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(parentType)); - return unknownType; - } + // This elementType will be used if the specific property corresponding to this index is not + // present (aka the tuple element property). This call also checks that the parentType is in + // fact an iterable or array (depending on target language). + var elementType = checkIteratedTypeOrElementType(parentType, pattern, false); if (!declaration.dotDotDotToken) { + if (elementType.flags & 1 /* Any */) { + return elementType; + } + // Use specific property type when parent is a tuple or numeric index type when parent is an array var propName = "" + ts.indexOf(pattern.elements, declaration); - type = isTupleLikeType(parentType) ? getTypeOfPropertyOfType(parentType, propName) : getIndexTypeOfType(parentType, 1); + type = isTupleLikeType(parentType) + ? getTypeOfPropertyOfType(parentType, propName) + : elementType; if (!type) { if (isTupleType(parentType)) { error(declaration, ts.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2, typeToString(parentType), parentType.elementTypes.length, pattern.elements.length); @@ -10609,45 +12451,61 @@ var ts; } } else { - type = createArrayType(getIndexTypeOfType(parentType, 1)); + // Rest element has an array type with the same element type as the parent type + type = createArrayType(elementType); } } return type; } + // Return the inferred type for a variable, parameter, or property declaration function getTypeForVariableLikeDeclaration(declaration) { - if (declaration.parent.parent.kind === 187) { + // A variable declared in a for..in statement is always of type any + if (declaration.parent.parent.kind === 187 /* ForInStatement */) { return anyType; } - if (declaration.parent.parent.kind === 188) { + if (declaration.parent.parent.kind === 188 /* ForOfStatement */) { + // checkRightHandSideOfForOf will return undefined if the for-of expression type was + // missing properties/signatures required to get its iteratedType (like + // [Symbol.iterator] or next). This may be because we accessed properties from anyType, + // or it may have led to an error inside getIteratedType. return checkRightHandSideOfForOf(declaration.parent.parent.expression) || anyType; } if (ts.isBindingPattern(declaration.parent)) { return getTypeForBindingElement(declaration); } + // Use type from type annotation if one is present if (declaration.type) { return getTypeFromTypeNodeOrHeritageClauseElement(declaration.type); } - if (declaration.kind === 129) { + if (declaration.kind === 129 /* Parameter */) { var func = declaration.parent; - if (func.kind === 137 && !ts.hasDynamicName(func)) { - var getter = ts.getDeclarationOfKind(declaration.parent.symbol, 136); + // For a parameter of a set accessor, use the type of the get accessor if one is present + if (func.kind === 137 /* SetAccessor */ && !ts.hasDynamicName(func)) { + var getter = ts.getDeclarationOfKind(declaration.parent.symbol, 136 /* GetAccessor */); if (getter) { return getReturnTypeOfSignature(getSignatureFromDeclaration(getter)); } } + // Use contextual parameter type if one is available var type = getContextuallyTypedParameterType(declaration); if (type) { return type; } } + // Use the type of the initializer expression if one is present if (declaration.initializer) { return checkExpressionCached(declaration.initializer); } - if (declaration.kind === 225) { + // If it is a short-hand property assignment, use the type of the identifier + if (declaration.kind === 225 /* ShorthandPropertyAssignment */) { return checkIdentifier(declaration.name); } + // No type specified and nothing can be inferred return undefined; } + // Return the type implied by a binding pattern element. This is the type of the initializer of the element if + // one is present. Otherwise, if the element is itself a binding pattern, it is the type implied by the binding + // pattern. Otherwise, it is the type any. function getTypeFromBindingElement(element) { if (element.initializer) { return getWidenedType(checkExpressionCached(element.initializer)); @@ -10657,10 +12515,11 @@ var ts; } return anyType; } + // Return the type implied by an object binding pattern function getTypeFromObjectBindingPattern(pattern) { var members = {}; ts.forEach(pattern.elements, function (e) { - var flags = 4 | 67108864 | (e.initializer ? 536870912 : 0); + var flags = 4 /* Property */ | 67108864 /* Transient */ | (e.initializer ? 536870912 /* Optional */ : 0); var name = e.propertyName || e.name; var symbol = createSymbol(flags, name.text); symbol.type = getTypeFromBindingElement(e); @@ -10668,37 +12527,86 @@ var ts; }); return createAnonymousType(undefined, members, emptyArray, emptyArray, undefined, undefined); } + // Return the type implied by an array binding pattern function getTypeFromArrayBindingPattern(pattern) { var hasSpreadElement = false; var elementTypes = []; ts.forEach(pattern.elements, function (e) { - elementTypes.push(e.kind === 175 || e.dotDotDotToken ? anyType : getTypeFromBindingElement(e)); + elementTypes.push(e.kind === 175 /* OmittedExpression */ || e.dotDotDotToken ? anyType : getTypeFromBindingElement(e)); if (e.dotDotDotToken) { hasSpreadElement = true; } }); - return !elementTypes.length ? anyArrayType : hasSpreadElement ? createArrayType(getUnionType(elementTypes)) : createTupleType(elementTypes); + if (!elementTypes.length) { + return languageVersion >= 2 /* ES6 */ ? createIterableType(anyType) : anyArrayType; + } + else if (hasSpreadElement) { + var unionOfElements = getUnionType(elementTypes); + if (languageVersion >= 2 /* ES6 */) { + // If the user has something like: + // + // function fun(...[a, ...b]) { } + // + // Normally, in ES6, the implied type of an array binding pattern with a rest element is + // an iterable. However, there is a requirement in our type system that all rest + // parameters be array types. To satisfy this, we have an exception to the rule that + // says the type of an array binding pattern with a rest element is an array type + // if it is *itself* in a rest parameter. It will still be compatible with a spreaded + // iterable argument, but within the function it will be an array. + var parent_3 = pattern.parent; + var isRestParameter = parent_3.kind === 129 /* Parameter */ && + pattern === parent_3.name && + parent_3.dotDotDotToken !== undefined; + return isRestParameter ? createArrayType(unionOfElements) : createIterableType(unionOfElements); + } + return createArrayType(unionOfElements); + } + // If the pattern has at least one element, and no rest element, then it should imply a tuple type. + return createTupleType(elementTypes); } + // Return the type implied by a binding pattern. This is the type implied purely by the binding pattern itself + // and without regard to its context (i.e. without regard any type annotation or initializer associated with the + // declaration in which the binding pattern is contained). For example, the implied type of [x, y] is [any, any] + // and the implied type of { x, y: z = 1 } is { x: any; y: number; }. The type implied by a binding pattern is + // used as the contextual type of an initializer associated with the binding pattern. Also, for a destructuring + // parameter with no type annotation or initializer, the type implied by the binding pattern becomes the type of + // the parameter. function getTypeFromBindingPattern(pattern) { - return pattern.kind === 150 + return pattern.kind === 150 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern) : getTypeFromArrayBindingPattern(pattern); } + // Return the type associated with a variable, parameter, or property declaration. In the simple case this is the type + // specified in a type annotation or inferred from an initializer. However, in the case of a destructuring declaration it + // is a bit more involved. For example: + // + // var [x, s = ""] = [1, "one"]; + // + // Here, the array literal [1, "one"] is contextually typed by the type [any, string], which is the implied type of the + // binding pattern [x, s = ""]. Because the contextual type is a tuple type, the resulting type of [1, "one"] is the + // tuple type [number, string]. Thus, the type inferred for 'x' is number and the type inferred for 's' is string. function getWidenedTypeForVariableLikeDeclaration(declaration, reportErrors) { var type = getTypeForVariableLikeDeclaration(declaration); if (type) { if (reportErrors) { reportErrorsFromWidening(declaration, type); } - return declaration.kind !== 224 ? getWidenedType(type) : type; + // During a normal type check we'll never get to here with a property assignment (the check of the containing + // object literal uses a different path). We exclude widening only so that language services and type verification + // tools see the actual type. + return declaration.kind !== 224 /* PropertyAssignment */ ? getWidenedType(type) : type; } + // If no type was specified and nothing could be inferred, and if the declaration specifies a binding pattern, use + // the type implied by the binding pattern if (ts.isBindingPattern(declaration.name)) { return getTypeFromBindingPattern(declaration.name); } + // Rest parameters default to type any[], other parameters default to type any type = declaration.dotDotDotToken ? anyArrayType : anyType; + // Report implicit any errors unless this is a private property within an ambient declaration if (reportErrors && compilerOptions.noImplicitAny) { var root = getRootDeclaration(declaration); - if (!isPrivateWithinAmbient(root) && !(root.kind === 129 && isPrivateWithinAmbient(root.parent))) { + if (!isPrivateWithinAmbient(root) && !(root.kind === 129 /* Parameter */ && isPrivateWithinAmbient(root.parent))) { reportImplicitAnyError(declaration, type); } } @@ -10707,25 +12615,20 @@ var ts; function getTypeOfVariableOrParameterOrProperty(symbol) { var links = getSymbolLinks(symbol); if (!links.type) { - if (symbol.flags & 134217728) { + // Handle prototype property + if (symbol.flags & 134217728 /* Prototype */) { return links.type = getTypeOfPrototypeProperty(symbol); } + // Handle catch clause variables var declaration = symbol.valueDeclaration; - if (declaration.parent.kind === 223) { + if (declaration.parent.kind === 223 /* CatchClause */) { return links.type = anyType; } - if (declaration.kind === 214) { - var exportAssignment = declaration; - if (exportAssignment.expression) { - return links.type = checkExpression(exportAssignment.expression); - } - else if (exportAssignment.type) { - return links.type = getTypeFromTypeNodeOrHeritageClauseElement(exportAssignment.type); - } - else { - return links.type = anyType; - } + // Handle export default expressions + if (declaration.kind === 214 /* ExportAssignment */) { + return links.type = checkExpression(declaration.expression); } + // Handle variable, parameter or property links.type = resolvingType; var type = getWidenedTypeForVariableLikeDeclaration(declaration, true); if (links.type === resolvingType) { @@ -10748,7 +12651,7 @@ var ts; } function getAnnotatedAccessorType(accessor) { if (accessor) { - if (accessor.kind === 136) { + if (accessor.kind === 136 /* GetAccessor */) { return accessor.type && getTypeFromTypeNodeOrHeritageClauseElement(accessor.type); } else { @@ -10767,19 +12670,22 @@ var ts; links = links || getSymbolLinks(symbol); if (!links.type) { links.type = resolvingType; - var getter = ts.getDeclarationOfKind(symbol, 136); - var setter = ts.getDeclarationOfKind(symbol, 137); + var getter = ts.getDeclarationOfKind(symbol, 136 /* GetAccessor */); + var setter = ts.getDeclarationOfKind(symbol, 137 /* SetAccessor */); var type; + // First try to see if the user specified a return type on the get-accessor. var getterReturnType = getAnnotatedAccessorType(getter); if (getterReturnType) { type = getterReturnType; } else { + // If the user didn't specify a return type, try to use the set-accessor's parameter type. var setterParameterType = getAnnotatedAccessorType(setter); if (setterParameterType) { type = setterParameterType; } else { + // If there are no specified types, try to infer it from the body of the get accessor if it exists. if (getter && getter.body) { type = getReturnTypeFromBody(getter); } @@ -10798,7 +12704,7 @@ var ts; else if (links.type === resolvingType) { links.type = anyType; if (compilerOptions.noImplicitAny) { - var getter = ts.getDeclarationOfKind(symbol, 136); + var getter = ts.getDeclarationOfKind(symbol, 136 /* GetAccessor */); error(getter, ts.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol)); } } @@ -10806,7 +12712,7 @@ var ts; function getTypeOfFuncClassEnumModule(symbol) { var links = getSymbolLinks(symbol); if (!links.type) { - links.type = createObjectType(32768, symbol); + links.type = createObjectType(32768 /* Anonymous */, symbol); } return links.type; } @@ -10832,28 +12738,28 @@ var ts; return links.type; } function getTypeOfSymbol(symbol) { - if (symbol.flags & 16777216) { + if (symbol.flags & 16777216 /* Instantiated */) { return getTypeOfInstantiatedSymbol(symbol); } - if (symbol.flags & (3 | 4)) { + if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) { return getTypeOfVariableOrParameterOrProperty(symbol); } - if (symbol.flags & (16 | 8192 | 32 | 384 | 512)) { + if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) { return getTypeOfFuncClassEnumModule(symbol); } - if (symbol.flags & 8) { + if (symbol.flags & 8 /* EnumMember */) { return getTypeOfEnumMember(symbol); } - if (symbol.flags & 98304) { + if (symbol.flags & 98304 /* Accessor */) { return getTypeOfAccessors(symbol); } - if (symbol.flags & 8388608) { + if (symbol.flags & 8388608 /* Alias */) { return getTypeOfAlias(symbol); } return unknownType; } function getTargetType(type) { - return type.flags & 4096 ? type.target : type; + return type.flags & 4096 /* Reference */ ? type.target : type; } function hasBaseType(type, checkBase) { return check(type); @@ -10862,10 +12768,13 @@ var ts; return target === checkBase || ts.forEach(target.baseTypes, check); } } + // Return combined list of type parameters from all declarations of a class or interface. Elsewhere we check they're all + // the same, but even if they're not we still need the complete list to ensure instantiations supply type arguments + // for all type parameters. function getTypeParametersOfClassOrInterface(symbol) { var result; ts.forEach(symbol.declarations, function (node) { - if (node.kind === 202 || node.kind === 201) { + if (node.kind === 202 /* InterfaceDeclaration */ || node.kind === 201 /* ClassDeclaration */) { var declaration = node; if (declaration.typeParameters && declaration.typeParameters.length) { ts.forEach(declaration.typeParameters, function (node) { @@ -10885,10 +12794,10 @@ var ts; function getDeclaredTypeOfClass(symbol) { var links = getSymbolLinks(symbol); if (!links.declaredType) { - var type = links.declaredType = createObjectType(1024, symbol); + var type = links.declaredType = createObjectType(1024 /* Class */, symbol); var typeParameters = getTypeParametersOfClassOrInterface(symbol); if (typeParameters) { - type.flags |= 4096; + type.flags |= 4096 /* Reference */; type.typeParameters = typeParameters; type.instantiations = {}; type.instantiations[getTypeListId(type.typeParameters)] = type; @@ -10896,17 +12805,17 @@ var ts; type.typeArguments = type.typeParameters; } type.baseTypes = []; - var declaration = ts.getDeclarationOfKind(symbol, 201); + var declaration = ts.getDeclarationOfKind(symbol, 201 /* ClassDeclaration */); var baseTypeNode = ts.getClassExtendsHeritageClauseElement(declaration); if (baseTypeNode) { var baseType = getTypeFromHeritageClauseElement(baseTypeNode); if (baseType !== unknownType) { - if (getTargetType(baseType).flags & 1024) { + if (getTargetType(baseType).flags & 1024 /* Class */) { if (type !== baseType && !hasBaseType(baseType, type)) { type.baseTypes.push(baseType); } else { - error(declaration, ts.Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, undefined, 1)); + error(declaration, ts.Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, undefined, 1 /* WriteArrayAsGenericType */)); } } else { @@ -10917,18 +12826,18 @@ var ts; type.declaredProperties = getNamedMembers(symbol.members); type.declaredCallSignatures = emptyArray; type.declaredConstructSignatures = emptyArray; - type.declaredStringIndexType = getIndexTypeOfSymbol(symbol, 0); - type.declaredNumberIndexType = getIndexTypeOfSymbol(symbol, 1); + type.declaredStringIndexType = getIndexTypeOfSymbol(symbol, 0 /* String */); + type.declaredNumberIndexType = getIndexTypeOfSymbol(symbol, 1 /* Number */); } return links.declaredType; } function getDeclaredTypeOfInterface(symbol) { var links = getSymbolLinks(symbol); if (!links.declaredType) { - var type = links.declaredType = createObjectType(2048, symbol); + var type = links.declaredType = createObjectType(2048 /* Interface */, symbol); var typeParameters = getTypeParametersOfClassOrInterface(symbol); if (typeParameters) { - type.flags |= 4096; + type.flags |= 4096 /* Reference */; type.typeParameters = typeParameters; type.instantiations = {}; type.instantiations[getTypeListId(type.typeParameters)] = type; @@ -10937,16 +12846,16 @@ var ts; } type.baseTypes = []; ts.forEach(symbol.declarations, function (declaration) { - if (declaration.kind === 202 && ts.getInterfaceBaseTypeNodes(declaration)) { + if (declaration.kind === 202 /* InterfaceDeclaration */ && ts.getInterfaceBaseTypeNodes(declaration)) { ts.forEach(ts.getInterfaceBaseTypeNodes(declaration), function (node) { var baseType = getTypeFromHeritageClauseElement(node); if (baseType !== unknownType) { - if (getTargetType(baseType).flags & (1024 | 2048)) { + if (getTargetType(baseType).flags & (1024 /* Class */ | 2048 /* Interface */)) { if (type !== baseType && !hasBaseType(baseType, type)) { type.baseTypes.push(baseType); } else { - error(declaration, ts.Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, undefined, 1)); + error(declaration, ts.Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, undefined, 1 /* WriteArrayAsGenericType */)); } } else { @@ -10959,8 +12868,8 @@ var ts; type.declaredProperties = getNamedMembers(symbol.members); type.declaredCallSignatures = getSignaturesOfSymbol(symbol.members["__call"]); type.declaredConstructSignatures = getSignaturesOfSymbol(symbol.members["__new"]); - type.declaredStringIndexType = getIndexTypeOfSymbol(symbol, 0); - type.declaredNumberIndexType = getIndexTypeOfSymbol(symbol, 1); + type.declaredStringIndexType = getIndexTypeOfSymbol(symbol, 0 /* String */); + type.declaredNumberIndexType = getIndexTypeOfSymbol(symbol, 1 /* Number */); } return links.declaredType; } @@ -10968,7 +12877,7 @@ var ts; var links = getSymbolLinks(symbol); if (!links.declaredType) { links.declaredType = resolvingType; - var declaration = ts.getDeclarationOfKind(symbol, 203); + var declaration = ts.getDeclarationOfKind(symbol, 203 /* TypeAliasDeclaration */); var type = getTypeFromTypeNodeOrHeritageClauseElement(declaration.type); if (links.declaredType === resolvingType) { links.declaredType = type; @@ -10976,7 +12885,7 @@ var ts; } else if (links.declaredType === resolvingType) { links.declaredType = unknownType; - var declaration = ts.getDeclarationOfKind(symbol, 203); + var declaration = ts.getDeclarationOfKind(symbol, 203 /* TypeAliasDeclaration */); error(declaration.name, ts.Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); } return links.declaredType; @@ -10984,7 +12893,7 @@ var ts; function getDeclaredTypeOfEnum(symbol) { var links = getSymbolLinks(symbol); if (!links.declaredType) { - var type = createType(128); + var type = createType(128 /* Enum */); type.symbol = symbol; links.declaredType = type; } @@ -10993,9 +12902,9 @@ var ts; function getDeclaredTypeOfTypeParameter(symbol) { var links = getSymbolLinks(symbol); if (!links.declaredType) { - var type = createType(512); + var type = createType(512 /* TypeParameter */); type.symbol = symbol; - if (!ts.getDeclarationOfKind(symbol, 128).constraint) { + if (!ts.getDeclarationOfKind(symbol, 128 /* TypeParameter */).constraint) { type.constraint = noConstraintType; } links.declaredType = type; @@ -11010,23 +12919,23 @@ var ts; return links.declaredType; } function getDeclaredTypeOfSymbol(symbol) { - ts.Debug.assert((symbol.flags & 16777216) === 0); - if (symbol.flags & 32) { + ts.Debug.assert((symbol.flags & 16777216 /* Instantiated */) === 0); + if (symbol.flags & 32 /* Class */) { return getDeclaredTypeOfClass(symbol); } - if (symbol.flags & 64) { + if (symbol.flags & 64 /* Interface */) { return getDeclaredTypeOfInterface(symbol); } - if (symbol.flags & 524288) { + if (symbol.flags & 524288 /* TypeAlias */) { return getDeclaredTypeOfTypeAlias(symbol); } - if (symbol.flags & 384) { + if (symbol.flags & 384 /* Enum */) { return getDeclaredTypeOfEnum(symbol); } - if (symbol.flags & 262144) { + if (symbol.flags & 262144 /* TypeParameter */) { return getDeclaredTypeOfTypeParameter(symbol); } - if (symbol.flags & 8388608) { + if (symbol.flags & 8388608 /* Alias */) { return getDeclaredTypeOfAlias(symbol); } return unknownType; @@ -11073,10 +12982,10 @@ var ts; members = createSymbolTable(type.declaredProperties); ts.forEach(type.baseTypes, function (baseType) { addInheritedMembers(members, getPropertiesOfObjectType(baseType)); - callSignatures = ts.concatenate(callSignatures, getSignaturesOfType(baseType, 0)); - constructSignatures = ts.concatenate(constructSignatures, getSignaturesOfType(baseType, 1)); - stringIndexType = stringIndexType || getIndexTypeOfType(baseType, 0); - numberIndexType = numberIndexType || getIndexTypeOfType(baseType, 1); + callSignatures = ts.concatenate(callSignatures, getSignaturesOfType(baseType, 0 /* Call */)); + constructSignatures = ts.concatenate(constructSignatures, getSignaturesOfType(baseType, 1 /* Construct */)); + stringIndexType = stringIndexType || getIndexTypeOfType(baseType, 0 /* String */); + numberIndexType = numberIndexType || getIndexTypeOfType(baseType, 1 /* Number */); }); } setObjectTypeMembers(type, members, callSignatures, constructSignatures, stringIndexType, numberIndexType); @@ -11092,10 +13001,10 @@ var ts; ts.forEach(target.baseTypes, function (baseType) { var instantiatedBaseType = instantiateType(baseType, mapper); addInheritedMembers(members, getPropertiesOfObjectType(instantiatedBaseType)); - callSignatures = ts.concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0)); - constructSignatures = ts.concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1)); - stringIndexType = stringIndexType || getIndexTypeOfType(instantiatedBaseType, 0); - numberIndexType = numberIndexType || getIndexTypeOfType(instantiatedBaseType, 1); + callSignatures = ts.concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0 /* Call */)); + constructSignatures = ts.concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1 /* Construct */)); + stringIndexType = stringIndexType || getIndexTypeOfType(instantiatedBaseType, 0 /* String */); + numberIndexType = numberIndexType || getIndexTypeOfType(instantiatedBaseType, 1 /* Number */); }); setObjectTypeMembers(type, members, callSignatures, constructSignatures, stringIndexType, numberIndexType); } @@ -11116,9 +13025,9 @@ var ts; function getDefaultConstructSignatures(classType) { if (classType.baseTypes.length) { var baseType = classType.baseTypes[0]; - var baseSignatures = getSignaturesOfType(getTypeOfSymbol(baseType.symbol), 1); + var baseSignatures = getSignaturesOfType(getTypeOfSymbol(baseType.symbol), 1 /* Construct */); return ts.map(baseSignatures, function (baseSignature) { - var signature = baseType.flags & 4096 ? + var signature = baseType.flags & 4096 /* Reference */ ? getSignatureInstantiation(baseSignature, baseType.typeArguments) : cloneSignature(baseSignature); signature.typeParameters = classType.typeParameters; signature.resolvedReturnType = classType; @@ -11130,7 +13039,7 @@ var ts; function createTupleTypeMemberSymbols(memberTypes) { var members = {}; for (var i = 0; i < memberTypes.length; i++) { - var symbol = createSymbol(4 | 67108864, "" + i); + var symbol = createSymbol(4 /* Property */ | 67108864 /* Transient */, "" + i); symbol.type = memberTypes[i]; members[i] = symbol; } @@ -11153,6 +13062,9 @@ var ts; } return true; } + // If the lists of call or construct signatures in the given types are all identical except for return types, + // and if none of the signatures are generic, return a list of signatures that has substitutes a union of the + // return types of the corresponding signatures in each resulting signature. function getUnionSignatures(types, kind) { var signatureLists = ts.map(types, function (t) { return getSignaturesOfType(t, kind); }); var signatures = signatureLists[0]; @@ -11170,6 +13082,7 @@ var ts; var result = ts.map(signatures, cloneSignature); for (var i = 0; i < result.length; i++) { var s = result[i]; + // Clear resolved return type we possibly got from cloneSignature s.resolvedReturnType = undefined; s.unionSignatures = ts.map(signatureLists, function (signatures) { return signatures[i]; }); } @@ -11188,10 +13101,12 @@ var ts; return getUnionType(indexTypes); } function resolveUnionTypeMembers(type) { - var callSignatures = getUnionSignatures(type.types, 0); - var constructSignatures = getUnionSignatures(type.types, 1); - var stringIndexType = getUnionIndexType(type.types, 0); - var numberIndexType = getUnionIndexType(type.types, 1); + // The members and properties collections are empty for union types. To get all properties of a union + // type use getPropertiesOfType (only the language service uses this). + var callSignatures = getUnionSignatures(type.types, 0 /* Call */); + var constructSignatures = getUnionSignatures(type.types, 1 /* Construct */); + var stringIndexType = getUnionIndexType(type.types, 0 /* String */); + var numberIndexType = getUnionIndexType(type.types, 1 /* Number */); setObjectTypeMembers(type, emptySymbols, callSignatures, constructSignatures, stringIndexType, numberIndexType); } function resolveAnonymousTypeMembers(type) { @@ -11201,24 +13116,25 @@ var ts; var constructSignatures; var stringIndexType; var numberIndexType; - if (symbol.flags & 2048) { + if (symbol.flags & 2048 /* TypeLiteral */) { members = symbol.members; callSignatures = getSignaturesOfSymbol(members["__call"]); constructSignatures = getSignaturesOfSymbol(members["__new"]); - stringIndexType = getIndexTypeOfSymbol(symbol, 0); - numberIndexType = getIndexTypeOfSymbol(symbol, 1); + stringIndexType = getIndexTypeOfSymbol(symbol, 0 /* String */); + numberIndexType = getIndexTypeOfSymbol(symbol, 1 /* Number */); } else { + // Combinations of function, class, enum and module members = emptySymbols; callSignatures = emptyArray; constructSignatures = emptyArray; - if (symbol.flags & 1952) { + if (symbol.flags & 1952 /* HasExports */) { members = getExportsOfSymbol(symbol); } - if (symbol.flags & (16 | 8192)) { + if (symbol.flags & (16 /* Function */ | 8192 /* Method */)) { callSignatures = getSignaturesOfSymbol(symbol); } - if (symbol.flags & 32) { + if (symbol.flags & 32 /* Class */) { var classType = getDeclaredTypeOfClass(symbol); constructSignatures = getSignaturesOfSymbol(symbol.members["__constructor"]); if (!constructSignatures.length) { @@ -11230,22 +13146,22 @@ var ts; } } stringIndexType = undefined; - numberIndexType = (symbol.flags & 384) ? stringType : undefined; + numberIndexType = (symbol.flags & 384 /* Enum */) ? stringType : undefined; } setObjectTypeMembers(type, members, callSignatures, constructSignatures, stringIndexType, numberIndexType); } function resolveObjectOrUnionTypeMembers(type) { if (!type.members) { - if (type.flags & (1024 | 2048)) { + if (type.flags & (1024 /* Class */ | 2048 /* Interface */)) { resolveClassOrInterfaceMembers(type); } - else if (type.flags & 32768) { + else if (type.flags & 32768 /* Anonymous */) { resolveAnonymousTypeMembers(type); } - else if (type.flags & 8192) { + else if (type.flags & 8192 /* Tuple */) { resolveTupleTypeMembers(type); } - else if (type.flags & 16384) { + else if (type.flags & 16384 /* Union */) { resolveUnionTypeMembers(type); } else { @@ -11254,14 +13170,17 @@ var ts; } return type; } + // Return properties of an object type or an empty array for other types function getPropertiesOfObjectType(type) { - if (type.flags & 48128) { + if (type.flags & 48128 /* ObjectType */) { return resolveObjectOrUnionTypeMembers(type).properties; } return emptyArray; } + // If the given type is an object type and that type has a property by the given name, return + // the symbol for that property. Otherwise return undefined. function getPropertyOfObjectType(type, name) { - if (type.flags & 48128) { + if (type.flags & 48128 /* ObjectType */) { var resolved = resolveObjectOrUnionTypeMembers(type); if (ts.hasProperty(resolved.members, name)) { var symbol = resolved.members[name]; @@ -11282,30 +13201,33 @@ var ts; return result; } function getPropertiesOfType(type) { - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { return getPropertiesOfUnionType(type); } return getPropertiesOfObjectType(getApparentType(type)); } + // For a type parameter, return the base constraint of the type parameter. For the string, number, + // boolean, and symbol primitive types, return the corresponding object types. Otherwise return the + // type itself. Note that the apparent type of a union type is the union type itself. function getApparentType(type) { - if (type.flags & 512) { + if (type.flags & 512 /* TypeParameter */) { do { type = getConstraintOfTypeParameter(type); - } while (type && type.flags & 512); + } while (type && type.flags & 512 /* TypeParameter */); if (!type) { type = emptyObjectType; } } - if (type.flags & 258) { + if (type.flags & 258 /* StringLike */) { type = globalStringType; } - else if (type.flags & 132) { + else if (type.flags & 132 /* NumberLike */) { type = globalNumberType; } - else if (type.flags & 8) { + else if (type.flags & 8 /* Boolean */) { type = globalBooleanType; } - else if (type.flags & 1048576) { + else if (type.flags & 1048576 /* ESSymbol */) { type = globalESSymbolType; } return type; @@ -11338,7 +13260,7 @@ var ts; } propTypes.push(getTypeOfSymbol(prop)); } - var result = createSymbol(4 | 67108864 | 268435456, name); + var result = createSymbol(4 /* Property */ | 67108864 /* Transient */ | 268435456 /* UnionProperty */, name); result.unionType = unionType; result.declarations = declarations; result.type = getUnionType(propTypes); @@ -11355,13 +13277,16 @@ var ts; } return property; } + // Return the symbol for the property with the given name in the given type. Creates synthetic union properties when + // necessary, maps primitive types and type parameters are to their apparent types, and augments with properties from + // Object and Function as appropriate. function getPropertyOfType(type, name) { - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { return getPropertyOfUnionType(type, name); } - if (!(type.flags & 48128)) { + if (!(type.flags & 48128 /* ObjectType */)) { type = getApparentType(type); - if (!(type.flags & 48128)) { + if (!(type.flags & 48128 /* ObjectType */)) { return undefined; } } @@ -11380,24 +13305,39 @@ var ts; return getPropertyOfObjectType(globalObjectType, name); } function getSignaturesOfObjectOrUnionType(type, kind) { - if (type.flags & (48128 | 16384)) { + if (type.flags & (48128 /* ObjectType */ | 16384 /* Union */)) { var resolved = resolveObjectOrUnionTypeMembers(type); - return kind === 0 ? resolved.callSignatures : resolved.constructSignatures; + return kind === 0 /* Call */ ? resolved.callSignatures : resolved.constructSignatures; } return emptyArray; } + // Return the signatures of the given kind in the given type. Creates synthetic union signatures when necessary and + // maps primitive types and type parameters are to their apparent types. function getSignaturesOfType(type, kind) { return getSignaturesOfObjectOrUnionType(getApparentType(type), kind); } - function getIndexTypeOfObjectOrUnionType(type, kind) { - if (type.flags & (48128 | 16384)) { + function typeHasCallOrConstructSignatures(type) { + var apparentType = getApparentType(type); + if (apparentType.flags & (48128 /* ObjectType */ | 16384 /* Union */)) { var resolved = resolveObjectOrUnionTypeMembers(type); - return kind === 0 ? resolved.stringIndexType : resolved.numberIndexType; + return resolved.callSignatures.length > 0 + || resolved.constructSignatures.length > 0; + } + return false; + } + function getIndexTypeOfObjectOrUnionType(type, kind) { + if (type.flags & (48128 /* ObjectType */ | 16384 /* Union */)) { + var resolved = resolveObjectOrUnionTypeMembers(type); + return kind === 0 /* String */ ? resolved.stringIndexType : resolved.numberIndexType; } } + // Return the index type of the given kind in the given type. Creates synthetic union index types when necessary and + // maps primitive types and type parameters are to their apparent types. function getIndexTypeOfType(type, kind) { return getIndexTypeOfObjectOrUnionType(getApparentType(type), kind); } + // Return list of type parameters with duplicates removed (duplicate identifier errors are generated in the actual + // type checking functions). function getTypeParametersFromDeclaration(typeParameterDeclarations) { var result = []; ts.forEach(typeParameterDeclarations, function (node) { @@ -11417,20 +13357,10 @@ var ts; } return result; } - function getExportsOfExternalModule(node) { - if (!node.moduleSpecifier) { - return emptyArray; - } - var module = resolveExternalModuleName(node, node.moduleSpecifier); - if (!module) { - return emptyArray; - } - return symbolsToArray(getExportsOfModule(module)); - } function getSignatureFromDeclaration(declaration) { var links = getNodeLinks(declaration); if (!links.resolvedSignature) { - var classType = declaration.kind === 135 ? getDeclaredTypeOfClass(declaration.parent.symbol) : undefined; + var classType = declaration.kind === 135 /* Constructor */ ? getDeclaredTypeOfClass(declaration.parent.symbol) : undefined; var typeParameters = classType ? classType.typeParameters : declaration.typeParameters ? getTypeParametersFromDeclaration(declaration.typeParameters) : undefined; var parameters = []; @@ -11439,7 +13369,7 @@ var ts; for (var i = 0, n = declaration.parameters.length; i < n; i++) { var param = declaration.parameters[i]; parameters.push(param.symbol); - if (param.type && param.type.kind === 8) { + if (param.type && param.type.kind === 8 /* StringLiteral */) { hasStringLiterals = true; } if (minArgumentCount < 0) { @@ -11459,8 +13389,10 @@ var ts; returnType = getTypeFromTypeNodeOrHeritageClauseElement(declaration.type); } else { - if (declaration.kind === 136 && !ts.hasDynamicName(declaration)) { - var setter = ts.getDeclarationOfKind(declaration.symbol, 137); + // TypeScript 1.0 spec (April 2014): + // If only one accessor includes a type annotation, the other behaves as if it had the same type annotation. + if (declaration.kind === 136 /* GetAccessor */ && !ts.hasDynamicName(declaration)) { + var setter = ts.getDeclarationOfKind(declaration.symbol, 137 /* SetAccessor */); returnType = getAnnotatedAccessorType(setter); } if (!returnType && ts.nodeIsMissing(declaration.body)) { @@ -11478,19 +13410,22 @@ var ts; for (var i = 0, len = symbol.declarations.length; i < len; i++) { var node = symbol.declarations[i]; switch (node.kind) { - case 142: - case 143: - case 200: - case 134: - case 133: - case 135: - case 138: - case 139: - case 140: - case 136: - case 137: - case 162: - case 163: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + // Don't include signature if node is the implementation of an overloaded function. A node is considered + // an implementation node if it has a body and the previous node is of the same kind and immediately + // precedes the implementation node (i.e. has the same parent and ends where the implementation starts). if (i > 0 && node.body) { var previous = symbol.declarations[i - 1]; if (node.parent === previous.parent && node.kind === previous.kind && node.pos === previous.end) { @@ -11536,7 +13471,7 @@ var ts; function getRestTypeOfSignature(signature) { if (signature.hasRestParameter) { var type = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]); - if (type.flags & 4096 && type.target === globalArrayType) { + if (type.flags & 4096 /* Reference */ && type.target === globalArrayType) { return type.typeArguments[0]; } } @@ -11559,9 +13494,13 @@ var ts; return signature.erasedSignatureCache; } function getOrCreateTypeFromSignature(signature) { + // There are two ways to declare a construct signature, one is by declaring a class constructor + // using the constructor keyword, and the other is declaring a bare construct signature in an + // object type literal or interface (using the new keyword). Each way of declaring a constructor + // will result in a different declaration kind. if (!signature.isolatedSignatureType) { - var isConstructor = signature.declaration.kind === 135 || signature.declaration.kind === 139; - var type = createObjectType(32768 | 65536); + var isConstructor = signature.declaration.kind === 135 /* Constructor */ || signature.declaration.kind === 139 /* ConstructSignature */; + var type = createObjectType(32768 /* Anonymous */ | 65536 /* FromSignature */); type.members = emptySymbols; type.properties = emptyArray; type.callSignatures = !isConstructor ? [signature] : emptyArray; @@ -11574,7 +13513,7 @@ var ts; return symbol.members["__index"]; } function getIndexDeclarationOfSymbol(symbol, kind) { - var syntaxKind = kind === 1 ? 119 : 121; + var syntaxKind = kind === 1 /* Number */ ? 119 /* NumberKeyword */ : 121 /* StringKeyword */; var indexSymbol = getIndexSymbol(symbol); if (indexSymbol) { var len = indexSymbol.declarations.length; @@ -11604,7 +13543,7 @@ var ts; type.constraint = targetConstraint ? instantiateType(targetConstraint, type.mapper) : noConstraintType; } else { - type.constraint = getTypeFromTypeNodeOrHeritageClauseElement(ts.getDeclarationOfKind(type.symbol, 128).constraint); + type.constraint = getTypeFromTypeNodeOrHeritageClauseElement(ts.getDeclarationOfKind(type.symbol, 128 /* TypeParameter */).constraint); } } return type.constraint === noConstraintType ? undefined : type.constraint; @@ -11626,19 +13565,22 @@ var ts; return result; } } + // This function is used to propagate widening flags when creating new object types references and union types. + // It is only necessary to do so if a constituent type might be the undefined type, the null type, or the type + // of an object literal (since those types have widening related information we need to track). function getWideningFlagsOfTypes(types) { var result = 0; for (var _i = 0; _i < types.length; _i++) { var type = types[_i]; result |= type.flags; } - return result & 786432; + return result & 786432 /* RequiresWidening */; } function createTypeReference(target, typeArguments) { var id = getTypeListId(typeArguments); var type = target.instantiations[id]; if (!type) { - var flags = 4096 | getWideningFlagsOfTypes(typeArguments); + var flags = 4096 /* Reference */ | getWideningFlagsOfTypes(typeArguments); type = target.instantiations[id] = createObjectType(flags, target.symbol); type.target = target; type.typeArguments = typeArguments; @@ -11650,21 +13592,31 @@ var ts; if (links.isIllegalTypeReferenceInConstraint !== undefined) { return links.isIllegalTypeReferenceInConstraint; } + // bubble up to the declaration var currentNode = typeReferenceNode; + // forEach === exists while (!ts.forEach(typeParameterSymbol.declarations, function (d) { return d.parent === currentNode.parent; })) { currentNode = currentNode.parent; } - links.isIllegalTypeReferenceInConstraint = currentNode.kind === 128; + // if last step was made from the type parameter this means that path has started somewhere in constraint which is illegal + links.isIllegalTypeReferenceInConstraint = currentNode.kind === 128 /* TypeParameter */; return links.isIllegalTypeReferenceInConstraint; } function checkTypeParameterHasIllegalReferencesInConstraint(typeParameter) { var typeParameterSymbol; function check(n) { - if (n.kind === 141 && n.typeName.kind === 65) { + if (n.kind === 141 /* TypeReference */ && n.typeName.kind === 65 /* Identifier */) { var links = getNodeLinks(n); if (links.isIllegalTypeReferenceInConstraint === undefined) { - var symbol = resolveName(typeParameter, n.typeName.text, 793056, undefined, undefined); - if (symbol && (symbol.flags & 262144)) { + var symbol = resolveName(typeParameter, n.typeName.text, 793056 /* Type */, undefined, undefined); + if (symbol && (symbol.flags & 262144 /* TypeParameter */)) { + // TypeScript 1.0 spec (April 2014): 3.4.1 + // Type parameters declared in a particular type parameter list + // may not be referenced in constraints in that type parameter list + // symbol.declaration.parent === typeParameter.parent + // -> typeParameter and symbol.declaration originate from the same type parameter list + // -> illegal for all declarations in symbol + // forEach === exists links.isIllegalTypeReferenceInConstraint = ts.forEach(symbol.declarations, function (d) { return d.parent == typeParameter.parent; }); } } @@ -11689,24 +13641,30 @@ var ts; var links = getNodeLinks(node); if (!links.resolvedType) { var type; - if (node.kind !== 177 || ts.isSupportedHeritageClauseElement(node)) { - var typeNameOrExpression = node.kind === 141 + // We don't currently support heritage clauses with complex expressions in them. + // For these cases, we just set the type to be the unknownType. + if (node.kind !== 177 /* HeritageClauseElement */ || ts.isSupportedHeritageClauseElement(node)) { + var typeNameOrExpression = node.kind === 141 /* TypeReference */ ? node.typeName : node.expression; - var symbol = resolveEntityName(typeNameOrExpression, 793056); + var symbol = resolveEntityName(typeNameOrExpression, 793056 /* Type */); if (symbol) { - if ((symbol.flags & 262144) && isTypeParameterReferenceIllegalInConstraint(node, symbol)) { + if ((symbol.flags & 262144 /* TypeParameter */) && isTypeParameterReferenceIllegalInConstraint(node, symbol)) { + // TypeScript 1.0 spec (April 2014): 3.4.1 + // Type parameters declared in a particular type parameter list + // may not be referenced in constraints in that type parameter list + // Implementation: such type references are resolved to 'unknown' type that usually denotes error type = unknownType; } else { type = getDeclaredTypeOfSymbol(symbol); - if (type.flags & (1024 | 2048) && type.flags & 4096) { + if (type.flags & (1024 /* Class */ | 2048 /* Interface */) && type.flags & 4096 /* Reference */) { var typeParameters = type.typeParameters; if (node.typeArguments && node.typeArguments.length === typeParameters.length) { type = createTypeReference(type, ts.map(node.typeArguments, getTypeFromTypeNodeOrHeritageClauseElement)); } else { - error(node, ts.Diagnostics.Generic_type_0_requires_1_type_argument_s, typeToString(type, undefined, 1), typeParameters.length); + error(node, ts.Diagnostics.Generic_type_0_requires_1_type_argument_s, typeToString(type, undefined, 1 /* WriteArrayAsGenericType */), typeParameters.length); type = undefined; } } @@ -11726,6 +13684,10 @@ var ts; function getTypeFromTypeQueryNode(node) { var links = getNodeLinks(node); if (!links.resolvedType) { + // TypeScript 1.0 spec (April 2014): 3.6.3 + // The expression is processed as an identifier expression (section 4.3) + // or property access expression(section 4.10), + // the widened type(section 3.9) of which becomes the result. links.resolvedType = getWidenedType(checkExpressionOrQualifiedName(node.exprName)); } return links.resolvedType; @@ -11736,9 +13698,9 @@ var ts; for (var _i = 0; _i < declarations.length; _i++) { var declaration = declarations[_i]; switch (declaration.kind) { - case 201: - case 202: - case 204: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: return declaration; } } @@ -11747,7 +13709,7 @@ var ts; return emptyObjectType; } var type = getDeclaredTypeOfSymbol(symbol); - if (!(type.flags & 48128)) { + if (!(type.flags & 48128 /* ObjectType */)) { error(getTypeDeclaration(symbol), ts.Diagnostics.Global_type_0_must_be_a_class_or_interface_type, symbol.name); return emptyObjectType; } @@ -11758,10 +13720,10 @@ var ts; return type; } function getGlobalValueSymbol(name) { - return getGlobalSymbol(name, 107455, ts.Diagnostics.Cannot_find_global_value_0); + return getGlobalSymbol(name, 107455 /* Value */, ts.Diagnostics.Cannot_find_global_value_0); } function getGlobalTypeSymbol(name) { - return getGlobalSymbol(name, 793056, ts.Diagnostics.Cannot_find_global_type_0); + return getGlobalSymbol(name, 793056 /* Type */, ts.Diagnostics.Cannot_find_global_type_0); } function getGlobalSymbol(name, meaning, diagnostic) { return resolveName(undefined, name, meaning, diagnostic, name); @@ -11773,7 +13735,13 @@ var ts; function getGlobalESSymbolConstructorSymbol() { return globalESSymbolConstructorSymbol || (globalESSymbolConstructorSymbol = getGlobalValueSymbol("Symbol")); } + function createIterableType(elementType) { + return globalIterableType !== emptyObjectType ? createTypeReference(globalIterableType, [elementType]) : emptyObjectType; + } function createArrayType(elementType) { + // globalArrayType will be undefined if we get here during creation of the Array type. This for example happens if + // user code augments the Array type with call or construct signatures that have an array type as the return type. + // We instead use globalArraySymbol to obtain the (not yet fully constructed) Array type. var arrayType = globalArrayType || getDeclaredTypeOfSymbol(globalArraySymbol); return arrayType !== emptyObjectType ? createTypeReference(arrayType, [elementType]) : emptyObjectType; } @@ -11788,7 +13756,7 @@ var ts; var id = getTypeListId(elementTypes); var type = tupleTypes[id]; if (!type) { - type = tupleTypes[id] = createObjectType(8192); + type = tupleTypes[id] = createObjectType(8192 /* Tuple */); type.elementTypes = elementTypes; } return type; @@ -11801,7 +13769,7 @@ var ts; return links.resolvedType; } function addTypeToSortedSet(sortedSet, type) { - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { addTypesToSortedSet(sortedSet, type.types); } else { @@ -11842,7 +13810,7 @@ var ts; function containsAnyType(types) { for (var _i = 0; _i < types.length; _i++) { var type = types[_i]; - if (type.flags & 1) { + if (type.flags & 1 /* Any */) { return true; } } @@ -11879,7 +13847,7 @@ var ts; var id = getTypeListId(sortedTypes); var type = unionTypes[id]; if (!type) { - type = unionTypes[id] = createObjectType(16384 | getWideningFlagsOfTypes(sortedTypes)); + type = unionTypes[id] = createObjectType(16384 /* Union */ | getWideningFlagsOfTypes(sortedTypes)); type.types = sortedTypes; } return type; @@ -11894,7 +13862,8 @@ var ts; function getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node) { var links = getNodeLinks(node); if (!links.resolvedType) { - links.resolvedType = createObjectType(32768, node.symbol); + // Deferred resolution of members is handled by resolveObjectTypeMembers + links.resolvedType = createObjectType(32768 /* Anonymous */, node.symbol); } return links.resolvedType; } @@ -11902,7 +13871,7 @@ var ts; if (ts.hasProperty(stringLiteralTypes, node.text)) { return stringLiteralTypes[node.text]; } - var type = stringLiteralTypes[node.text] = createType(256); + var type = stringLiteralTypes[node.text] = createType(256 /* StringLiteral */); type.text = ts.getTextOfNode(node); return type; } @@ -11915,40 +13884,42 @@ var ts; } function getTypeFromTypeNodeOrHeritageClauseElement(node) { switch (node.kind) { - case 112: + case 112 /* AnyKeyword */: return anyType; - case 121: + case 121 /* StringKeyword */: return stringType; - case 119: + case 119 /* NumberKeyword */: return numberType; - case 113: + case 113 /* BooleanKeyword */: return booleanType; - case 122: + case 122 /* SymbolKeyword */: return esSymbolType; - case 99: + case 99 /* VoidKeyword */: return voidType; - case 8: + case 8 /* StringLiteral */: return getTypeFromStringLiteral(node); - case 141: + case 141 /* TypeReference */: return getTypeFromTypeReference(node); - case 177: + case 177 /* HeritageClauseElement */: return getTypeFromHeritageClauseElement(node); - case 144: + case 144 /* TypeQuery */: return getTypeFromTypeQueryNode(node); - case 146: + case 146 /* ArrayType */: return getTypeFromArrayTypeNode(node); - case 147: + case 147 /* TupleType */: return getTypeFromTupleTypeNode(node); - case 148: + case 148 /* UnionType */: return getTypeFromUnionTypeNode(node); - case 149: + case 149 /* ParenthesizedType */: return getTypeFromTypeNodeOrHeritageClauseElement(node.type); - case 142: - case 143: - case 145: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 145 /* TypeLiteral */: return getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node); - case 65: - case 126: + // This function assumes that an identifier or qualified name is a type expression + // Callers should first ensure this by calling isTypeNode + case 65 /* Identifier */: + case 126 /* QualifiedName */: var symbol = getSymbolInfo(node); return symbol && getDeclaredTypeOfSymbol(symbol); default: @@ -12025,7 +13996,7 @@ var ts; return function (t) { return mapper2(mapper1(t)); }; } function instantiateTypeParameter(typeParameter, mapper) { - var result = createType(512); + var result = createType(512 /* TypeParameter */); result.symbol = typeParameter.symbol; if (typeParameter.constraint) { result.constraint = instantiateType(typeParameter.constraint, mapper); @@ -12048,12 +14019,17 @@ var ts; return result; } function instantiateSymbol(symbol, mapper) { - if (symbol.flags & 16777216) { + if (symbol.flags & 16777216 /* Instantiated */) { var links = getSymbolLinks(symbol); + // If symbol being instantiated is itself a instantiation, fetch the original target and combine the + // type mappers. This ensures that original type identities are properly preserved and that aliases + // always reference a non-aliases. symbol = links.target; mapper = combineTypeMappers(links.mapper, mapper); } - var result = createSymbol(16777216 | 67108864 | symbol.flags, symbol.name); + // Keep the flags from the symbol we're instantiating. Mark that is instantiated, and + // also transient so that we can just store data on it directly. + var result = createSymbol(16777216 /* Instantiated */ | 67108864 /* Transient */ | symbol.flags, symbol.name); result.declarations = symbol.declarations; result.parent = symbol.parent; result.target = symbol; @@ -12064,13 +14040,13 @@ var ts; return result; } function instantiateAnonymousType(type, mapper) { - var result = createObjectType(32768, type.symbol); + var result = createObjectType(32768 /* Anonymous */, type.symbol); result.properties = instantiateList(getPropertiesOfObjectType(type), mapper, instantiateSymbol); result.members = createSymbolTable(result.properties); - result.callSignatures = instantiateList(getSignaturesOfType(type, 0), mapper, instantiateSignature); - result.constructSignatures = instantiateList(getSignaturesOfType(type, 1), mapper, instantiateSignature); - var stringIndexType = getIndexTypeOfType(type, 0); - var numberIndexType = getIndexTypeOfType(type, 1); + result.callSignatures = instantiateList(getSignaturesOfType(type, 0 /* Call */), mapper, instantiateSignature); + result.constructSignatures = instantiateList(getSignaturesOfType(type, 1 /* Construct */), mapper, instantiateSignature); + var stringIndexType = getIndexTypeOfType(type, 0 /* String */); + var numberIndexType = getIndexTypeOfType(type, 1 /* Number */); if (stringIndexType) result.stringIndexType = instantiateType(stringIndexType, mapper); if (numberIndexType) @@ -12079,47 +14055,49 @@ var ts; } function instantiateType(type, mapper) { if (mapper !== identityMapper) { - if (type.flags & 512) { + if (type.flags & 512 /* TypeParameter */) { return mapper(type); } - if (type.flags & 32768) { - return type.symbol && type.symbol.flags & (16 | 8192 | 2048 | 4096) ? + if (type.flags & 32768 /* Anonymous */) { + return type.symbol && type.symbol.flags & (16 /* Function */ | 8192 /* Method */ | 2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */) ? instantiateAnonymousType(type, mapper) : type; } - if (type.flags & 4096) { + if (type.flags & 4096 /* Reference */) { return createTypeReference(type.target, instantiateList(type.typeArguments, mapper, instantiateType)); } - if (type.flags & 8192) { + if (type.flags & 8192 /* Tuple */) { return createTupleType(instantiateList(type.elementTypes, mapper, instantiateType)); } - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { return getUnionType(instantiateList(type.types, mapper, instantiateType), true); } } return type; } + // Returns true if the given expression contains (at any level of nesting) a function or arrow expression + // that is subject to contextual typing. function isContextSensitive(node) { - ts.Debug.assert(node.kind !== 134 || ts.isObjectLiteralMethod(node)); + ts.Debug.assert(node.kind !== 134 /* MethodDeclaration */ || ts.isObjectLiteralMethod(node)); switch (node.kind) { - case 162: - case 163: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: return isContextSensitiveFunctionLikeDeclaration(node); - case 154: + case 154 /* ObjectLiteralExpression */: return ts.forEach(node.properties, isContextSensitive); - case 153: + case 153 /* ArrayLiteralExpression */: return ts.forEach(node.elements, isContextSensitive); - case 170: + case 170 /* ConditionalExpression */: return isContextSensitive(node.whenTrue) || isContextSensitive(node.whenFalse); - case 169: - return node.operatorToken.kind === 49 && + case 169 /* BinaryExpression */: + return node.operatorToken.kind === 49 /* BarBarToken */ && (isContextSensitive(node.left) || isContextSensitive(node.right)); - case 224: + case 224 /* PropertyAssignment */: return isContextSensitive(node.initializer); - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return isContextSensitiveFunctionLikeDeclaration(node); - case 161: + case 161 /* ParenthesizedExpression */: return isContextSensitive(node.expression); } return false; @@ -12128,10 +14106,10 @@ var ts; return !node.typeParameters && node.parameters.length && !ts.forEach(node.parameters, function (p) { return p.type; }); } function getTypeWithoutConstructors(type) { - if (type.flags & 48128) { + if (type.flags & 48128 /* ObjectType */) { var resolved = resolveObjectOrUnionTypeMembers(type); if (resolved.constructSignatures.length) { - var result = createObjectType(32768, type.symbol); + var result = createObjectType(32768 /* Anonymous */, type.symbol); result.members = resolved.members; result.properties = resolved.properties; result.callSignatures = resolved.callSignatures; @@ -12141,6 +14119,7 @@ var ts; } return type; } + // TYPE CHECKING var subtypeRelation = {}; var assignableRelation = {}; var identityRelation = {}; @@ -12148,7 +14127,7 @@ var ts; return checkTypeRelatedTo(source, target, identityRelation, undefined); } function compareTypes(source, target) { - return checkTypeRelatedTo(source, target, identityRelation, undefined) ? -1 : 0; + return checkTypeRelatedTo(source, target, identityRelation, undefined) ? -1 /* True */ : 0 /* False */; } function isTypeSubtypeOf(source, target) { return checkTypeSubtypeOf(source, target, undefined); @@ -12182,6 +14161,10 @@ var ts; error(errorNode, ts.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1, typeToString(source), typeToString(target)); } else if (errorInfo) { + // If we already computed this relation, but in a context where we didn't want to report errors (e.g. overload resolution), + // then we'll only have a top-level error (e.g. 'Class X does not implement interface Y') without any details. If this happened, + // request a recompuation to get a complete error message. This will be skipped if we've already done this computation in a context + // where errors were being reported. if (errorInfo.next === undefined) { errorInfo = undefined; elaborateErrors = true; @@ -12192,42 +14175,47 @@ var ts; } diagnostics.add(ts.createDiagnosticForNodeFromMessageChain(errorNode, errorInfo)); } - return result !== 0; + return result !== 0 /* False */; function reportError(message, arg0, arg1, arg2) { errorInfo = ts.chainDiagnosticMessages(errorInfo, message, arg0, arg1, arg2); } + // Compare two types and return + // Ternary.True if they are related with no assumptions, + // Ternary.Maybe if they are related with assumptions of other relationships, or + // Ternary.False if they are not related. function isRelatedTo(source, target, reportErrors, headMessage) { var result; + // both types are the same - covers 'they are the same primitive type or both are Any' or the same type parameter cases if (source === target) - return -1; + return -1 /* True */; if (relation !== identityRelation) { - if (target.flags & 1) - return -1; + if (target.flags & 1 /* Any */) + return -1 /* True */; if (source === undefinedType) - return -1; + return -1 /* True */; if (source === nullType && target !== undefinedType) - return -1; - if (source.flags & 128 && target === numberType) - return -1; - if (source.flags & 256 && target === stringType) - return -1; + return -1 /* True */; + if (source.flags & 128 /* Enum */ && target === numberType) + return -1 /* True */; + if (source.flags & 256 /* StringLiteral */ && target === stringType) + return -1 /* True */; if (relation === assignableRelation) { - if (source.flags & 1) - return -1; - if (source === numberType && target.flags & 128) - return -1; + if (source.flags & 1 /* Any */) + return -1 /* True */; + if (source === numberType && target.flags & 128 /* Enum */) + return -1 /* True */; } } - if (source.flags & 16384 || target.flags & 16384) { + if (source.flags & 16384 /* Union */ || target.flags & 16384 /* Union */) { if (relation === identityRelation) { - if (source.flags & 16384 && target.flags & 16384) { + if (source.flags & 16384 /* Union */ && target.flags & 16384 /* Union */) { if (result = unionTypeRelatedToUnionType(source, target)) { if (result &= unionTypeRelatedToUnionType(target, source)) { return result; } } } - else if (source.flags & 16384) { + else if (source.flags & 16384 /* Union */) { if (result = unionTypeRelatedToType(source, target, reportErrors)) { return result; } @@ -12239,7 +14227,7 @@ var ts; } } else { - if (source.flags & 16384) { + if (source.flags & 16384 /* Union */) { if (result = unionTypeRelatedToType(source, target, reportErrors)) { return result; } @@ -12251,21 +14239,25 @@ var ts; } } } - else if (source.flags & 512 && target.flags & 512) { + else if (source.flags & 512 /* TypeParameter */ && target.flags & 512 /* TypeParameter */) { if (result = typeParameterRelatedTo(source, target, reportErrors)) { return result; } } else { var saveErrorInfo = errorInfo; - if (source.flags & 4096 && target.flags & 4096 && source.target === target.target) { + if (source.flags & 4096 /* Reference */ && target.flags & 4096 /* Reference */ && source.target === target.target) { + // We have type references to same target type, see if relationship holds for all type arguments if (result = typesRelatedTo(source.typeArguments, target.typeArguments, reportErrors)) { return result; } } + // Even if relationship doesn't hold for type arguments, it may hold in a structural comparison + // Report structural errors only if we haven't reported any errors yet var reportStructuralErrors = reportErrors && errorInfo === saveErrorInfo; + // identity relation does not use apparent type var sourceOrApparentType = relation === identityRelation ? source : getApparentType(source); - if (sourceOrApparentType.flags & 48128 && target.flags & 48128 && + if (sourceOrApparentType.flags & 48128 /* ObjectType */ && target.flags & 48128 /* ObjectType */ && (result = objectTypeRelatedTo(sourceOrApparentType, target, reportStructuralErrors))) { errorInfo = saveErrorInfo; return result; @@ -12276,21 +14268,21 @@ var ts; var sourceType = typeToString(source); var targetType = typeToString(target); if (sourceType === targetType) { - sourceType = typeToString(source, undefined, 128); - targetType = typeToString(target, undefined, 128); + sourceType = typeToString(source, undefined, 128 /* UseFullyQualifiedType */); + targetType = typeToString(target, undefined, 128 /* UseFullyQualifiedType */); } reportError(headMessage, sourceType, targetType); } - return 0; + return 0 /* False */; } function unionTypeRelatedToUnionType(source, target) { - var result = -1; + var result = -1 /* True */; var sourceTypes = source.types; for (var _i = 0; _i < sourceTypes.length; _i++) { var sourceType = sourceTypes[_i]; var related = typeRelatedToUnionType(sourceType, target, false); if (!related) { - return 0; + return 0 /* False */; } result &= related; } @@ -12304,27 +14296,27 @@ var ts; return related; } } - return 0; + return 0 /* False */; } function unionTypeRelatedToType(source, target, reportErrors) { - var result = -1; + var result = -1 /* True */; var sourceTypes = source.types; for (var _i = 0; _i < sourceTypes.length; _i++) { var sourceType = sourceTypes[_i]; var related = isRelatedTo(sourceType, target, reportErrors); if (!related) { - return 0; + return 0 /* False */; } result &= related; } return result; } function typesRelatedTo(sources, targets, reportErrors) { - var result = -1; + var result = -1 /* True */; for (var i = 0, len = sources.length; i < len; i++) { var related = isRelatedTo(sources[i], targets[i], reportErrors); if (!related) { - return 0; + return 0 /* False */; } result &= related; } @@ -12333,13 +14325,14 @@ var ts; function typeParameterRelatedTo(source, target, reportErrors) { if (relation === identityRelation) { if (source.symbol.name !== target.symbol.name) { - return 0; + return 0 /* False */; } + // covers case when both type parameters does not have constraint (both equal to noConstraintType) if (source.constraint === target.constraint) { - return -1; + return -1 /* True */; } if (source.constraint === noConstraintType || target.constraint === noConstraintType) { - return 0; + return 0 /* False */; } return isRelatedTo(source.constraint, target.constraint, reportErrors); } @@ -12347,34 +14340,43 @@ var ts; while (true) { var constraint = getConstraintOfTypeParameter(source); if (constraint === target) - return -1; - if (!(constraint && constraint.flags & 512)) + return -1 /* True */; + if (!(constraint && constraint.flags & 512 /* TypeParameter */)) break; source = constraint; } - return 0; + return 0 /* False */; } } + // Determine if two object types are related by structure. First, check if the result is already available in the global cache. + // Second, check if we have already started a comparison of the given two types in which case we assume the result to be true. + // Third, check if both types are part of deeply nested chains of generic type instantiations and if so assume the types are + // equal and infinitely expanding. Fourth, if we have reached a depth of 100 nested comparisons, assume we have runaway recursion + // and issue an error. Otherwise, actually compare the structure of the two types. function objectTypeRelatedTo(source, target, reportErrors) { if (overflow) { - return 0; + return 0 /* False */; } var id = relation !== identityRelation || source.id < target.id ? source.id + "," + target.id : target.id + "," + source.id; var related = relation[id]; + //let related: RelationComparisonResult = undefined; // relation[id]; if (related !== undefined) { - if (!elaborateErrors || (related === 3)) { - return related === 1 ? -1 : 0; + // If we computed this relation already and it was failed and reported, or if we're not being asked to elaborate + // errors, we can use the cached value. Otherwise, recompute the relation + if (!elaborateErrors || (related === 3 /* FailedAndReported */)) { + return related === 1 /* Succeeded */ ? -1 /* True */ : 0 /* False */; } } if (depth > 0) { for (var i = 0; i < depth; i++) { + // If source and target are already being compared, consider them related with assumptions if (maybeStack[i][id]) { - return 1; + return 1 /* Maybe */; } } if (depth === 100) { overflow = true; - return 0; + return 0 /* False */; } } else { @@ -12386,7 +14388,7 @@ var ts; sourceStack[depth] = source; targetStack[depth] = target; maybeStack[depth] = {}; - maybeStack[depth][id] = 1; + maybeStack[depth][id] = 1 /* Succeeded */; depth++; var saveExpandingFlags = expandingFlags; if (!(expandingFlags & 1) && isDeeplyNestedGeneric(source, sourceStack)) @@ -12395,14 +14397,14 @@ var ts; expandingFlags |= 2; var result; if (expandingFlags === 3) { - result = 1; + result = 1 /* Maybe */; } else { result = propertiesRelatedTo(source, target, reportErrors); if (result) { - result &= signaturesRelatedTo(source, target, 0, reportErrors); + result &= signaturesRelatedTo(source, target, 0 /* Call */, reportErrors); if (result) { - result &= signaturesRelatedTo(source, target, 1, reportErrors); + result &= signaturesRelatedTo(source, target, 1 /* Construct */, reportErrors); if (result) { result &= stringIndexTypesRelatedTo(source, target, reportErrors); if (result) { @@ -12416,21 +14418,29 @@ var ts; depth--; if (result) { var maybeCache = maybeStack[depth]; - var destinationCache = (result === -1 || depth === 0) ? relation : maybeStack[depth - 1]; + // If result is definitely true, copy assumptions to global cache, else copy to next level up + var destinationCache = (result === -1 /* True */ || depth === 0) ? relation : maybeStack[depth - 1]; ts.copyMap(maybeCache, destinationCache); } else { - relation[id] = reportErrors ? 3 : 2; + // A false result goes straight into global cache (when something is false under assumptions it + // will also be false without assumptions) + relation[id] = reportErrors ? 3 /* FailedAndReported */ : 2 /* Failed */; } return result; } + // Return true if the given type is part of a deeply nested chain of generic instantiations. We consider this to be the case + // when structural type comparisons have been started for 10 or more instantiations of the same generic type. It is possible, + // though highly unlikely, for this test to be true in a situation where a chain of instantiations is not infinitely expanding. + // Effectively, we will generate a false positive when two types are structurally equal to at least 10 levels, but unequal at + // some level beyond that. function isDeeplyNestedGeneric(type, stack) { - if (type.flags & 4096 && depth >= 10) { + if (type.flags & 4096 /* Reference */ && depth >= 10) { var target_1 = type.target; var count = 0; for (var i = 0; i < depth; i++) { var t = stack[i]; - if (t.flags & 4096 && t.target === target_1) { + if (t.flags & 4096 /* Reference */ && t.target === target_1) { count++; if (count >= 10) return true; @@ -12443,67 +14453,74 @@ var ts; if (relation === identityRelation) { return propertiesIdenticalTo(source, target); } - var result = -1; + var result = -1 /* True */; var properties = getPropertiesOfObjectType(target); - var requireOptionalProperties = relation === subtypeRelation && !(source.flags & 131072); + var requireOptionalProperties = relation === subtypeRelation && !(source.flags & 131072 /* ObjectLiteral */); for (var _i = 0; _i < properties.length; _i++) { var targetProp = properties[_i]; var sourceProp = getPropertyOfType(source, targetProp.name); if (sourceProp !== targetProp) { if (!sourceProp) { - if (!(targetProp.flags & 536870912) || requireOptionalProperties) { + if (!(targetProp.flags & 536870912 /* Optional */) || requireOptionalProperties) { if (reportErrors) { reportError(ts.Diagnostics.Property_0_is_missing_in_type_1, symbolToString(targetProp), typeToString(source)); } - return 0; + return 0 /* False */; } } - else if (!(targetProp.flags & 134217728)) { + else if (!(targetProp.flags & 134217728 /* Prototype */)) { var sourceFlags = getDeclarationFlagsFromSymbol(sourceProp); var targetFlags = getDeclarationFlagsFromSymbol(targetProp); - if (sourceFlags & 32 || targetFlags & 32) { + if (sourceFlags & 32 /* Private */ || targetFlags & 32 /* Private */) { if (sourceProp.valueDeclaration !== targetProp.valueDeclaration) { if (reportErrors) { - if (sourceFlags & 32 && targetFlags & 32) { + if (sourceFlags & 32 /* Private */ && targetFlags & 32 /* Private */) { reportError(ts.Diagnostics.Types_have_separate_declarations_of_a_private_property_0, symbolToString(targetProp)); } else { - reportError(ts.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2, symbolToString(targetProp), typeToString(sourceFlags & 32 ? source : target), typeToString(sourceFlags & 32 ? target : source)); + reportError(ts.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2, symbolToString(targetProp), typeToString(sourceFlags & 32 /* Private */ ? source : target), typeToString(sourceFlags & 32 /* Private */ ? target : source)); } } - return 0; + return 0 /* False */; } } - else if (targetFlags & 64) { - var sourceDeclaredInClass = sourceProp.parent && sourceProp.parent.flags & 32; + else if (targetFlags & 64 /* Protected */) { + var sourceDeclaredInClass = sourceProp.parent && sourceProp.parent.flags & 32 /* Class */; var sourceClass = sourceDeclaredInClass ? getDeclaredTypeOfSymbol(sourceProp.parent) : undefined; var targetClass = getDeclaredTypeOfSymbol(targetProp.parent); if (!sourceClass || !hasBaseType(sourceClass, targetClass)) { if (reportErrors) { reportError(ts.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2, symbolToString(targetProp), typeToString(sourceClass || source), typeToString(targetClass)); } - return 0; + return 0 /* False */; } } - else if (sourceFlags & 64) { + else if (sourceFlags & 64 /* Protected */) { if (reportErrors) { reportError(ts.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2, symbolToString(targetProp), typeToString(source), typeToString(target)); } - return 0; + return 0 /* False */; } var related = isRelatedTo(getTypeOfSymbol(sourceProp), getTypeOfSymbol(targetProp), reportErrors); if (!related) { if (reportErrors) { reportError(ts.Diagnostics.Types_of_property_0_are_incompatible, symbolToString(targetProp)); } - return 0; + return 0 /* False */; } result &= related; - if (sourceProp.flags & 536870912 && !(targetProp.flags & 536870912)) { + if (sourceProp.flags & 536870912 /* Optional */ && !(targetProp.flags & 536870912 /* Optional */)) { + // TypeScript 1.0 spec (April 2014): 3.8.3 + // S is a subtype of a type T, and T is a supertype of S if ... + // S' and T are object types and, for each member M in T.. + // M is a property and S' contains a property N where + // if M is a required property, N is also a required property + // (M - property in T) + // (N - property in S) if (reportErrors) { reportError(ts.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2, symbolToString(targetProp), typeToString(source), typeToString(target)); } - return 0; + return 0 /* False */; } } } @@ -12514,18 +14531,18 @@ var ts; var sourceProperties = getPropertiesOfObjectType(source); var targetProperties = getPropertiesOfObjectType(target); if (sourceProperties.length !== targetProperties.length) { - return 0; + return 0 /* False */; } - var result = -1; + var result = -1 /* True */; for (var _i = 0; _i < sourceProperties.length; _i++) { var sourceProp = sourceProperties[_i]; var targetProp = getPropertyOfObjectType(target, sourceProp.name); if (!targetProp) { - return 0; + return 0 /* False */; } var related = compareProperties(sourceProp, targetProp, isRelatedTo); if (!related) { - return 0; + return 0 /* False */; } result &= related; } @@ -12536,39 +14553,40 @@ var ts; return signaturesIdenticalTo(source, target, kind); } if (target === anyFunctionType || source === anyFunctionType) { - return -1; + return -1 /* True */; } var sourceSignatures = getSignaturesOfType(source, kind); var targetSignatures = getSignaturesOfType(target, kind); - var result = -1; + var result = -1 /* True */; var saveErrorInfo = errorInfo; outer: for (var _i = 0; _i < targetSignatures.length; _i++) { var t = targetSignatures[_i]; - if (!t.hasStringLiterals || target.flags & 65536) { + if (!t.hasStringLiterals || target.flags & 65536 /* FromSignature */) { var localErrors = reportErrors; for (var _a = 0; _a < sourceSignatures.length; _a++) { var s = sourceSignatures[_a]; - if (!s.hasStringLiterals || source.flags & 65536) { + if (!s.hasStringLiterals || source.flags & 65536 /* FromSignature */) { var related = signatureRelatedTo(s, t, localErrors); if (related) { result &= related; errorInfo = saveErrorInfo; continue outer; } + // Only report errors from the first failure localErrors = false; } } - return 0; + return 0 /* False */; } } return result; } function signatureRelatedTo(source, target, reportErrors) { if (source === target) { - return -1; + return -1 /* True */; } if (!target.hasRestParameter && source.minArgumentCount > target.parameters.length) { - return 0; + return 0 /* False */; } var sourceMax = source.parameters.length; var targetMax = target.parameters.length; @@ -12589,9 +14607,11 @@ var ts; else { checkCount = sourceMax < targetMax ? sourceMax : targetMax; } + // Spec 1.0 Section 3.8.3 & 3.8.4: + // M and N (the signatures) are instantiated using type Any as the type argument for all type parameters declared by M and N source = getErasedSignature(source); target = getErasedSignature(target); - var result = -1; + var result = -1 /* True */; for (var i = 0; i < checkCount; i++) { var s_1 = i < sourceMax ? getTypeOfSymbol(source.parameters[i]) : getRestTypeOfSignature(source); var t_1 = i < targetMax ? getTypeOfSymbol(target.parameters[i]) : getRestTypeOfSignature(target); @@ -12603,7 +14623,7 @@ var ts; if (reportErrors) { reportError(ts.Diagnostics.Types_of_parameters_0_and_1_are_incompatible, source.parameters[i < sourceMax ? i : sourceMax].name, target.parameters[i < targetMax ? i : targetMax].name); } - return 0; + return 0 /* False */; } errorInfo = saveErrorInfo; } @@ -12619,13 +14639,13 @@ var ts; var sourceSignatures = getSignaturesOfType(source, kind); var targetSignatures = getSignaturesOfType(target, kind); if (sourceSignatures.length !== targetSignatures.length) { - return 0; + return 0 /* False */; } - var result = -1; + var result = -1 /* True */; for (var i = 0, len = sourceSignatures.length; i < len; ++i) { var related = compareSignatures(sourceSignatures[i], targetSignatures[i], true, isRelatedTo); if (!related) { - return 0; + return 0 /* False */; } result &= related; } @@ -12633,44 +14653,45 @@ var ts; } function stringIndexTypesRelatedTo(source, target, reportErrors) { if (relation === identityRelation) { - return indexTypesIdenticalTo(0, source, target); + return indexTypesIdenticalTo(0 /* String */, source, target); } - var targetType = getIndexTypeOfType(target, 0); + var targetType = getIndexTypeOfType(target, 0 /* String */); if (targetType) { - var sourceType = getIndexTypeOfType(source, 0); + var sourceType = getIndexTypeOfType(source, 0 /* String */); if (!sourceType) { if (reportErrors) { reportError(ts.Diagnostics.Index_signature_is_missing_in_type_0, typeToString(source)); } - return 0; + return 0 /* False */; } var related = isRelatedTo(sourceType, targetType, reportErrors); if (!related) { if (reportErrors) { reportError(ts.Diagnostics.Index_signatures_are_incompatible); } - return 0; + return 0 /* False */; } return related; } - return -1; + return -1 /* True */; } function numberIndexTypesRelatedTo(source, target, reportErrors) { if (relation === identityRelation) { - return indexTypesIdenticalTo(1, source, target); + return indexTypesIdenticalTo(1 /* Number */, source, target); } - var targetType = getIndexTypeOfType(target, 1); + var targetType = getIndexTypeOfType(target, 1 /* Number */); if (targetType) { - var sourceStringType = getIndexTypeOfType(source, 0); - var sourceNumberType = getIndexTypeOfType(source, 1); + var sourceStringType = getIndexTypeOfType(source, 0 /* String */); + var sourceNumberType = getIndexTypeOfType(source, 1 /* Number */); if (!(sourceStringType || sourceNumberType)) { if (reportErrors) { reportError(ts.Diagnostics.Index_signature_is_missing_in_type_0, typeToString(source)); } - return 0; + return 0 /* False */; } var related; if (sourceStringType && sourceNumberType) { + // If we know for sure we're testing both string and numeric index types then only report errors from the second one related = isRelatedTo(sourceStringType, targetType, false) || isRelatedTo(sourceNumberType, targetType, reportErrors); } else { @@ -12680,73 +14701,78 @@ var ts; if (reportErrors) { reportError(ts.Diagnostics.Index_signatures_are_incompatible); } - return 0; + return 0 /* False */; } return related; } - return -1; + return -1 /* True */; } function indexTypesIdenticalTo(indexKind, source, target) { var targetType = getIndexTypeOfType(target, indexKind); var sourceType = getIndexTypeOfType(source, indexKind); if (!sourceType && !targetType) { - return -1; + return -1 /* True */; } if (sourceType && targetType) { return isRelatedTo(sourceType, targetType); } - return 0; + return 0 /* False */; } } function isPropertyIdenticalTo(sourceProp, targetProp) { - return compareProperties(sourceProp, targetProp, compareTypes) !== 0; + return compareProperties(sourceProp, targetProp, compareTypes) !== 0 /* False */; } function compareProperties(sourceProp, targetProp, compareTypes) { + // Two members are considered identical when + // - they are public properties with identical names, optionality, and types, + // - they are private or protected properties originating in the same declaration and having identical types if (sourceProp === targetProp) { - return -1; + return -1 /* True */; } - var sourcePropAccessibility = getDeclarationFlagsFromSymbol(sourceProp) & (32 | 64); - var targetPropAccessibility = getDeclarationFlagsFromSymbol(targetProp) & (32 | 64); + var sourcePropAccessibility = getDeclarationFlagsFromSymbol(sourceProp) & (32 /* Private */ | 64 /* Protected */); + var targetPropAccessibility = getDeclarationFlagsFromSymbol(targetProp) & (32 /* Private */ | 64 /* Protected */); if (sourcePropAccessibility !== targetPropAccessibility) { - return 0; + return 0 /* False */; } if (sourcePropAccessibility) { if (getTargetSymbol(sourceProp) !== getTargetSymbol(targetProp)) { - return 0; + return 0 /* False */; } } else { - if ((sourceProp.flags & 536870912) !== (targetProp.flags & 536870912)) { - return 0; + if ((sourceProp.flags & 536870912 /* Optional */) !== (targetProp.flags & 536870912 /* Optional */)) { + return 0 /* False */; } } return compareTypes(getTypeOfSymbol(sourceProp), getTypeOfSymbol(targetProp)); } function compareSignatures(source, target, compareReturnTypes, compareTypes) { if (source === target) { - return -1; + return -1 /* True */; } if (source.parameters.length !== target.parameters.length || source.minArgumentCount !== target.minArgumentCount || source.hasRestParameter !== target.hasRestParameter) { - return 0; + return 0 /* False */; } - var result = -1; + var result = -1 /* True */; if (source.typeParameters && target.typeParameters) { if (source.typeParameters.length !== target.typeParameters.length) { - return 0; + return 0 /* False */; } for (var i = 0, len = source.typeParameters.length; i < len; ++i) { var related = compareTypes(source.typeParameters[i], target.typeParameters[i]); if (!related) { - return 0; + return 0 /* False */; } result &= related; } } else if (source.typeParameters || target.typeParameters) { - return 0; + return 0 /* False */; } + // Spec 1.0 Section 3.8.3 & 3.8.4: + // M and N (the signatures) are instantiated using type Any as the type argument for all type parameters declared by M and N source = getErasedSignature(source); target = getErasedSignature(target); for (var i = 0, len = source.parameters.length; i < len; i++) { @@ -12754,7 +14780,7 @@ var ts; var t = target.hasRestParameter && i === len - 1 ? getRestTypeOfSignature(target) : getTypeOfSymbol(target.parameters[i]); var related = compareTypes(s, t); if (!related) { - return 0; + return 0 /* False */; } result &= related; } @@ -12775,6 +14801,9 @@ var ts; return ts.forEach(types, function (t) { return isSupertypeOfEach(t, types) ? t : undefined; }); } function reportNoCommonSupertypeError(types, errorLocation, errorMessageChainHead) { + // The downfallType/bestSupertypeDownfallType is the first type that caused a particular candidate + // to not be the common supertype. So if it weren't for this one downfallType (and possibly others), + // the type in question could have been the common supertype. var bestSupertype; var bestSupertypeDownfallType; var bestSupertypeScore = 0; @@ -12795,23 +14824,31 @@ var ts; bestSupertypeDownfallType = downfallType; bestSupertypeScore = score; } + // types.length - 1 is the maximum score, given that getCommonSupertype returned false if (bestSupertypeScore === types.length - 1) { break; } } + // In the following errors, the {1} slot is before the {0} slot because checkTypeSubtypeOf supplies the + // subtype as the first argument to the error checkTypeSubtypeOf(bestSupertypeDownfallType, bestSupertype, errorLocation, ts.Diagnostics.Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0, errorMessageChainHead); } function isArrayType(type) { - return type.flags & 4096 && type.target === globalArrayType; + return type.flags & 4096 /* Reference */ && type.target === globalArrayType; } function isArrayLikeType(type) { - return !(type.flags & (32 | 64)) && isTypeAssignableTo(type, anyArrayType); + // A type is array-like if it is not the undefined or null type and if it is assignable to any[] + return !(type.flags & (32 /* Undefined */ | 64 /* Null */)) && isTypeAssignableTo(type, anyArrayType); } function isTupleLikeType(type) { return !!getPropertyOfType(type, "0"); } + /** + * Check if a Type was written as a tuple type literal. + * Prefer using isTupleLikeType() unless the use of `elementTypes` is required. + */ function isTupleType(type) { - return (type.flags & 8192) && !!type.elementTypes; + return (type.flags & 8192 /* Tuple */) && !!type.elementTypes; } function getWidenedTypeOfObjectLiteral(type) { var properties = getPropertiesOfObjectType(type); @@ -12820,7 +14857,7 @@ var ts; var propType = getTypeOfSymbol(p); var widenedType = getWidenedType(propType); if (propType !== widenedType) { - var symbol = createSymbol(p.flags | 67108864, p.name); + var symbol = createSymbol(p.flags | 67108864 /* Transient */, p.name); symbol.declarations = p.declarations; symbol.parent = p.parent; symbol.type = widenedType; @@ -12831,8 +14868,8 @@ var ts; } members[p.name] = p; }); - var stringIndexType = getIndexTypeOfType(type, 0); - var numberIndexType = getIndexTypeOfType(type, 1); + var stringIndexType = getIndexTypeOfType(type, 0 /* String */); + var numberIndexType = getIndexTypeOfType(type, 1 /* Number */); if (stringIndexType) stringIndexType = getWidenedType(stringIndexType); if (numberIndexType) @@ -12840,14 +14877,14 @@ var ts; return createAnonymousType(type.symbol, members, emptyArray, emptyArray, stringIndexType, numberIndexType); } function getWidenedType(type) { - if (type.flags & 786432) { - if (type.flags & (32 | 64)) { + if (type.flags & 786432 /* RequiresWidening */) { + if (type.flags & (32 /* Undefined */ | 64 /* Null */)) { return anyType; } - if (type.flags & 131072) { + if (type.flags & 131072 /* ObjectLiteral */) { return getWidenedTypeOfObjectLiteral(type); } - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { return getUnionType(ts.map(type.types, getWidenedType)); } if (isArrayType(type)) { @@ -12857,7 +14894,7 @@ var ts; return type; } function reportWideningErrorsInType(type) { - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { var errorReported = false; ts.forEach(type.types, function (t) { if (reportWideningErrorsInType(t)) { @@ -12869,11 +14906,11 @@ var ts; if (isArrayType(type)) { return reportWideningErrorsInType(type.typeArguments[0]); } - if (type.flags & 131072) { + if (type.flags & 131072 /* ObjectLiteral */) { var errorReported = false; ts.forEach(getPropertiesOfObjectType(type), function (p) { var t = getTypeOfSymbol(p); - if (t.flags & 262144) { + if (t.flags & 262144 /* ContainsUndefinedOrNull */) { if (!reportWideningErrorsInType(t)) { error(p.valueDeclaration, ts.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, p.name, typeToString(getWidenedType(t))); } @@ -12888,22 +14925,22 @@ var ts; var typeAsString = typeToString(getWidenedType(type)); var diagnostic; switch (declaration.kind) { - case 132: - case 131: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: diagnostic = ts.Diagnostics.Member_0_implicitly_has_an_1_type; break; - case 129: + case 129 /* Parameter */: diagnostic = declaration.dotDotDotToken ? ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : ts.Diagnostics.Parameter_0_implicitly_has_an_1_type; break; - case 200: - case 134: - case 133: - case 136: - case 137: - case 162: - case 163: + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: if (!declaration.name) { error(declaration, ts.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); return; @@ -12916,7 +14953,8 @@ var ts; error(declaration, diagnostic, ts.declarationNameToString(declaration.name), typeAsString); } function reportErrorsFromWidening(declaration, type) { - if (produceDiagnostics && compilerOptions.noImplicitAny && type.flags & 262144) { + if (produceDiagnostics && compilerOptions.noImplicitAny && type.flags & 262144 /* ContainsUndefinedOrNull */) { + // Report implicit any error within type if possible, otherwise report error on declaration if (!reportWideningErrorsInType(type)) { reportImplicitAnyError(declaration, type); } @@ -12981,7 +15019,7 @@ var ts; var count = 0; for (var i = 0; i < depth; i++) { var t = stack[i]; - if (t.flags & 4096 && t.target === target_2) { + if (t.flags & 4096 /* Reference */ && t.target === target_2) { count++; } } @@ -12993,12 +15031,19 @@ var ts; if (source === anyFunctionType) { return; } - if (target.flags & 512) { + if (target.flags & 512 /* TypeParameter */) { + // If target is a type parameter, make an inference var typeParameters = context.typeParameters; for (var i = 0; i < typeParameters.length; i++) { if (target === typeParameters[i]) { var inferences = context.inferences[i]; if (!inferences.isFixed) { + // Any inferences that are made to a type parameter in a union type are inferior + // to inferences made to a flat (non-union) type. This is because if we infer to + // T | string[], we really don't know if we should be inferring to T or not (because + // the correct constituent on the target side could be string[]). Therefore, we put + // such inferior inferences into a secondary bucket, and only use them if the primary + // bucket is empty. var candidates = inferiority ? inferences.secondary || (inferences.secondary = []) : inferences.primary || (inferences.primary = []); @@ -13010,20 +15055,22 @@ var ts; } } } - else if (source.flags & 4096 && target.flags & 4096 && source.target === target.target) { + else if (source.flags & 4096 /* Reference */ && target.flags & 4096 /* Reference */ && source.target === target.target) { + // If source and target are references to the same generic type, infer from type arguments var sourceTypes = source.typeArguments; var targetTypes = target.typeArguments; for (var i = 0; i < sourceTypes.length; i++) { inferFromTypes(sourceTypes[i], targetTypes[i]); } } - else if (target.flags & 16384) { + else if (target.flags & 16384 /* Union */) { var targetTypes = target.types; var typeParameterCount = 0; var typeParameter; + // First infer to each type in union that isn't a type parameter for (var _i = 0; _i < targetTypes.length; _i++) { var t = targetTypes[_i]; - if (t.flags & 512 && ts.contains(context.typeParameters, t)) { + if (t.flags & 512 /* TypeParameter */ && ts.contains(context.typeParameters, t)) { typeParameter = t; typeParameterCount++; } @@ -13031,21 +15078,24 @@ var ts; inferFromTypes(source, t); } } + // If union contains a single naked type parameter, make a secondary inference to that type parameter if (typeParameterCount === 1) { inferiority++; inferFromTypes(source, typeParameter); inferiority--; } } - else if (source.flags & 16384) { + else if (source.flags & 16384 /* Union */) { + // Source is a union type, infer from each consituent type var sourceTypes = source.types; for (var _a = 0; _a < sourceTypes.length; _a++) { var sourceType = sourceTypes[_a]; inferFromTypes(sourceType, target); } } - else if (source.flags & 48128 && (target.flags & (4096 | 8192) || - (target.flags & 32768) && target.symbol && target.symbol.flags & (8192 | 2048))) { + else if (source.flags & 48128 /* ObjectType */ && (target.flags & (4096 /* Reference */ | 8192 /* Tuple */) || + (target.flags & 32768 /* Anonymous */) && target.symbol && target.symbol.flags & (8192 /* Method */ | 2048 /* TypeLiteral */))) { + // If source is an object type, and target is a type reference, a tuple type, the type of a method, or a type literal, infer from members if (!isInProcess(source, target) && isWithinDepthLimit(source, sourceStack) && isWithinDepthLimit(target, targetStack)) { if (depth === 0) { sourceStack = []; @@ -13055,11 +15105,11 @@ var ts; targetStack[depth] = target; depth++; inferFromProperties(source, target); - inferFromSignatures(source, target, 0); - inferFromSignatures(source, target, 1); - inferFromIndexTypes(source, target, 0, 0); - inferFromIndexTypes(source, target, 1, 1); - inferFromIndexTypes(source, target, 0, 1); + inferFromSignatures(source, target, 0 /* Call */); + inferFromSignatures(source, target, 1 /* Construct */); + inferFromIndexTypes(source, target, 0 /* String */, 0 /* String */); + inferFromIndexTypes(source, target, 1 /* Number */, 1 /* Number */); + inferFromIndexTypes(source, target, 0 /* String */, 1 /* Number */); depth--; } } @@ -13108,19 +15158,28 @@ var ts; if (!inferredType) { var inferences = getInferenceCandidates(context, index); if (inferences.length) { + // Infer widened union or supertype, or the unknown type for no common supertype var unionOrSuperType = context.inferUnionTypes ? getUnionType(inferences) : getCommonSupertype(inferences); inferredType = unionOrSuperType ? getWidenedType(unionOrSuperType) : unknownType; inferenceSucceeded = !!unionOrSuperType; } else { + // Infer the empty object type when no inferences were made. It is important to remember that + // in this case, inference still succeeds, meaning there is no error for not having inference + // candidates. An inference error only occurs when there are *conflicting* candidates, i.e. + // candidates with no common supertype. inferredType = emptyObjectType; inferenceSucceeded = true; } + // Only do the constraint check if inference succeeded (to prevent cascading errors) if (inferenceSucceeded) { var constraint = getConstraintOfTypeParameter(context.typeParameters[index]); inferredType = constraint && !isTypeAssignableTo(inferredType, constraint) ? constraint : inferredType; } else if (context.failedTypeParameterIndex === undefined || context.failedTypeParameterIndex > index) { + // If inference failed, it is necessary to record the index of the failed type parameter (the one we are on). + // It might be that inference has already failed on a later type parameter on a previous call to inferTypeArguments. + // So if this failure is on preceding type parameter, this type parameter is the new failure index. context.failedTypeParameterIndex = index; } context.inferredTypes[index] = inferredType; @@ -13136,20 +15195,24 @@ var ts; function hasAncestor(node, kind) { return ts.getAncestor(node, kind) !== undefined; } + // EXPRESSION TYPE CHECKING function getResolvedSymbol(node) { var links = getNodeLinks(node); if (!links.resolvedSymbol) { - links.resolvedSymbol = (!ts.nodeIsMissing(node) && resolveName(node, node.text, 107455 | 1048576, ts.Diagnostics.Cannot_find_name_0, node)) || unknownSymbol; + links.resolvedSymbol = (!ts.nodeIsMissing(node) && resolveName(node, node.text, 107455 /* Value */ | 1048576 /* ExportValue */, ts.Diagnostics.Cannot_find_name_0, node)) || unknownSymbol; } return links.resolvedSymbol; } function isInTypeQuery(node) { + // TypeScript 1.0 spec (April 2014): 3.6.3 + // A type query consists of the keyword typeof followed by an expression. + // The expression is restricted to a single identifier or a sequence of identifiers separated by periods while (node) { switch (node.kind) { - case 144: + case 144 /* TypeQuery */: return true; - case 65: - case 126: + case 65 /* Identifier */: + case 126 /* QualifiedName */: node = node.parent; continue; default: @@ -13158,10 +15221,13 @@ var ts; } ts.Debug.fail("should not get here"); } + // For a union type, remove all constituent types that are of the given type kind (when isOfTypeKind is true) + // or not of the given type kind (when isOfTypeKind is false) function removeTypesFromUnionType(type, typeKind, isOfTypeKind, allowEmptyUnionResult) { - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { var types = type.types; if (ts.forEach(types, function (t) { return !!(t.flags & typeKind) === isOfTypeKind; })) { + // Above we checked if we have anything to remove, now use the opposite test to do the removal var narrowedType = getUnionType(ts.filter(types, function (t) { return !(t.flags & typeKind) === isOfTypeKind; })); if (allowEmptyUnionResult || narrowedType !== emptyObjectType) { return narrowedType; @@ -13169,6 +15235,8 @@ var ts; } } else if (allowEmptyUnionResult && !!(type.flags & typeKind) === isOfTypeKind) { + // Use getUnionType(emptyArray) instead of emptyObjectType in case the way empty union types + // are represented ever changes. return getUnionType(emptyArray); } return type; @@ -13176,6 +15244,7 @@ var ts; function hasInitializer(node) { return !!(node.initializer || ts.isBindingPattern(node.parent) && hasInitializer(node.parent.parent)); } + // Check if a given variable is assigned within a given syntax node function isVariableAssignedWithin(symbol, node) { var links = getNodeLinks(node); if (links.assignmentChecks) { @@ -13189,12 +15258,12 @@ var ts; } return links.assignmentChecks[symbol.id] = isAssignedIn(node); function isAssignedInBinaryExpression(node) { - if (node.operatorToken.kind >= 53 && node.operatorToken.kind <= 64) { + if (node.operatorToken.kind >= 53 /* FirstAssignment */ && node.operatorToken.kind <= 64 /* LastAssignment */) { var n = node.left; - while (n.kind === 161) { + while (n.kind === 161 /* ParenthesizedExpression */) { n = n.expression; } - if (n.kind === 65 && getResolvedSymbol(n) === symbol) { + if (n.kind === 65 /* Identifier */ && getResolvedSymbol(n) === symbol) { return true; } } @@ -13208,57 +15277,59 @@ var ts; } function isAssignedIn(node) { switch (node.kind) { - case 169: + case 169 /* BinaryExpression */: return isAssignedInBinaryExpression(node); - case 198: - case 152: + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: return isAssignedInVariableDeclaration(node); - case 150: - case 151: - case 153: - case 154: - case 155: - case 156: - case 157: - case 158: - case 160: - case 161: - case 167: - case 164: - case 165: - case 166: - case 168: - case 170: - case 173: - case 179: - case 180: - case 182: - case 183: - case 184: - case 185: - case 186: - case 187: - case 188: - case 191: - case 192: - case 193: - case 220: - case 221: - case 194: - case 195: - case 196: - case 223: + case 150 /* ObjectBindingPattern */: + case 151 /* ArrayBindingPattern */: + case 153 /* ArrayLiteralExpression */: + case 154 /* ObjectLiteralExpression */: + case 155 /* PropertyAccessExpression */: + case 156 /* ElementAccessExpression */: + case 157 /* CallExpression */: + case 158 /* NewExpression */: + case 160 /* TypeAssertionExpression */: + case 161 /* ParenthesizedExpression */: + case 167 /* PrefixUnaryExpression */: + case 164 /* DeleteExpression */: + case 165 /* TypeOfExpression */: + case 166 /* VoidExpression */: + case 168 /* PostfixUnaryExpression */: + case 170 /* ConditionalExpression */: + case 173 /* SpreadElementExpression */: + case 179 /* Block */: + case 180 /* VariableStatement */: + case 182 /* ExpressionStatement */: + case 183 /* IfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 191 /* ReturnStatement */: + case 192 /* WithStatement */: + case 193 /* SwitchStatement */: + case 220 /* CaseClause */: + case 221 /* DefaultClause */: + case 194 /* LabeledStatement */: + case 195 /* ThrowStatement */: + case 196 /* TryStatement */: + case 223 /* CatchClause */: return ts.forEachChild(node, isAssignedIn); } return false; } } function resolveLocation(node) { + // Resolve location from top down towards node if it is a context sensitive expression + // That helps in making sure not assigning types as any when resolved out of order var containerNodes = []; - for (var parent_3 = node.parent; parent_3; parent_3 = parent_3.parent) { - if ((ts.isExpression(parent_3) || ts.isObjectLiteralMethod(node)) && - isContextSensitive(parent_3)) { - containerNodes.unshift(parent_3); + for (var parent_4 = node.parent; parent_4; parent_4 = parent_4.parent) { + if ((ts.isExpression(parent_4) || ts.isObjectLiteralMethod(node)) && + isContextSensitive(parent_4)) { + containerNodes.unshift(parent_4); } } ts.forEach(containerNodes, function (node) { getTypeOfNode(node); }); @@ -13273,46 +15344,65 @@ var ts; } function getTypeOfSymbolAtLocation(symbol, node) { resolveLocation(node); + // Get the narrowed type of symbol at given location instead of just getting + // the type of the symbol. + // eg. + // function foo(a: string | number) { + // if (typeof a === "string") { + // a/**/ + // } + // } + // getTypeOfSymbol for a would return type of parameter symbol string | number + // Unless we provide location /**/, checker wouldn't know how to narrow the type + // By using getNarrowedTypeOfSymbol would return string since it would be able to narrow + // it by typeguard in the if true condition return getNarrowedTypeOfSymbol(symbol, node); } + // Get the narrowed type of a given symbol at a given location function getNarrowedTypeOfSymbol(symbol, node) { var type = getTypeOfSymbol(symbol); - if (node && symbol.flags & 3 && type.flags & (1 | 48128 | 16384 | 512)) { + // Only narrow when symbol is variable of type any or an object, union, or type parameter type + if (node && symbol.flags & 3 /* Variable */ && type.flags & (1 /* Any */ | 48128 /* ObjectType */ | 16384 /* Union */ | 512 /* TypeParameter */)) { loop: while (node.parent) { var child = node; node = node.parent; var narrowedType = type; switch (node.kind) { - case 183: + case 183 /* IfStatement */: + // In a branch of an if statement, narrow based on controlling expression if (child !== node.expression) { narrowedType = narrowType(type, node.expression, child === node.thenStatement); } break; - case 170: + case 170 /* ConditionalExpression */: + // In a branch of a conditional expression, narrow based on controlling condition if (child !== node.condition) { narrowedType = narrowType(type, node.condition, child === node.whenTrue); } break; - case 169: + case 169 /* BinaryExpression */: + // In the right operand of an && or ||, narrow based on left operand if (child === node.right) { - if (node.operatorToken.kind === 48) { + if (node.operatorToken.kind === 48 /* AmpersandAmpersandToken */) { narrowedType = narrowType(type, node.left, true); } - else if (node.operatorToken.kind === 49) { + else if (node.operatorToken.kind === 49 /* BarBarToken */) { narrowedType = narrowType(type, node.left, false); } } break; - case 227: - case 205: - case 200: - case 134: - case 133: - case 136: - case 137: - case 135: + case 227 /* SourceFile */: + case 205 /* ModuleDeclaration */: + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 135 /* Constructor */: + // Stop at the first containing function or module declaration break loop; } + // Use narrowed type if construct contains no assignments to variable if (narrowedType !== type) { if (isVariableAssignedWithin(symbol, node)) { break; @@ -13323,39 +15413,50 @@ var ts; } return type; function narrowTypeByEquality(type, expr, assumeTrue) { - if (expr.left.kind !== 165 || expr.right.kind !== 8) { + // Check that we have 'typeof ' on the left and string literal on the right + if (expr.left.kind !== 165 /* TypeOfExpression */ || expr.right.kind !== 8 /* StringLiteral */) { return type; } var left = expr.left; var right = expr.right; - if (left.expression.kind !== 65 || getResolvedSymbol(left.expression) !== symbol) { + if (left.expression.kind !== 65 /* Identifier */ || getResolvedSymbol(left.expression) !== symbol) { return type; } var typeInfo = primitiveTypeInfo[right.text]; - if (expr.operatorToken.kind === 31) { + if (expr.operatorToken.kind === 31 /* ExclamationEqualsEqualsToken */) { assumeTrue = !assumeTrue; } if (assumeTrue) { + // Assumed result is true. If check was not for a primitive type, remove all primitive types if (!typeInfo) { - return removeTypesFromUnionType(type, 258 | 132 | 8 | 1048576, true, false); + return removeTypesFromUnionType(type, 258 /* StringLike */ | 132 /* NumberLike */ | 8 /* Boolean */ | 1048576 /* ESSymbol */, + /*isOfTypeKind*/ true, false); } + // Check was for a primitive type, return that primitive type if it is a subtype if (isTypeSubtypeOf(typeInfo.type, type)) { return typeInfo.type; } + // Otherwise, remove all types that aren't of the primitive type kind. This can happen when the type is + // union of enum types and other types. return removeTypesFromUnionType(type, typeInfo.flags, false, false); } else { + // Assumed result is false. If check was for a primitive type, remove that primitive type if (typeInfo) { return removeTypesFromUnionType(type, typeInfo.flags, true, false); } + // Otherwise we don't have enough information to do anything. return type; } } function narrowTypeByAnd(type, expr, assumeTrue) { if (assumeTrue) { + // The assumed result is true, therefore we narrow assuming each operand to be true. return narrowType(narrowType(type, expr.left, true), expr.right, true); } else { + // The assumed result is false. This means either the first operand was false, or the first operand was true + // and the second operand was false. We narrow with those assumptions and union the two resulting types. return getUnionType([ narrowType(type, expr.left, false), narrowType(narrowType(type, expr.left, true), expr.right, false) @@ -13364,57 +15465,67 @@ var ts; } function narrowTypeByOr(type, expr, assumeTrue) { if (assumeTrue) { + // The assumed result is true. This means either the first operand was true, or the first operand was false + // and the second operand was true. We narrow with those assumptions and union the two resulting types. return getUnionType([ narrowType(type, expr.left, true), narrowType(narrowType(type, expr.left, false), expr.right, true) ]); } else { + // The assumed result is false, therefore we narrow assuming each operand to be false. return narrowType(narrowType(type, expr.left, false), expr.right, false); } } function narrowTypeByInstanceof(type, expr, assumeTrue) { - if (type.flags & 1 || !assumeTrue || expr.left.kind !== 65 || getResolvedSymbol(expr.left) !== symbol) { + // Check that type is not any, assumed result is true, and we have variable symbol on the left + if (type.flags & 1 /* Any */ || !assumeTrue || expr.left.kind !== 65 /* Identifier */ || getResolvedSymbol(expr.left) !== symbol) { return type; } + // Check that right operand is a function type with a prototype property var rightType = checkExpression(expr.right); if (!isTypeSubtypeOf(rightType, globalFunctionType)) { return type; } + // Target type is type of prototype property var prototypeProperty = getPropertyOfType(rightType, "prototype"); if (!prototypeProperty) { return type; } var targetType = getTypeOfSymbol(prototypeProperty); + // Narrow to target type if it is a subtype of current type if (isTypeSubtypeOf(targetType, type)) { return targetType; } - if (type.flags & 16384) { + // If current type is a union type, remove all constituents that aren't subtypes of target type + if (type.flags & 16384 /* Union */) { return getUnionType(ts.filter(type.types, function (t) { return isTypeSubtypeOf(t, targetType); })); } return type; } + // Narrow the given type based on the given expression having the assumed boolean value. The returned type + // will be a subtype or the same type as the argument. function narrowType(type, expr, assumeTrue) { switch (expr.kind) { - case 161: + case 161 /* ParenthesizedExpression */: return narrowType(type, expr.expression, assumeTrue); - case 169: + case 169 /* BinaryExpression */: var operator = expr.operatorToken.kind; - if (operator === 30 || operator === 31) { + if (operator === 30 /* EqualsEqualsEqualsToken */ || operator === 31 /* ExclamationEqualsEqualsToken */) { return narrowTypeByEquality(type, expr, assumeTrue); } - else if (operator === 48) { + else if (operator === 48 /* AmpersandAmpersandToken */) { return narrowTypeByAnd(type, expr, assumeTrue); } - else if (operator === 49) { + else if (operator === 49 /* BarBarToken */) { return narrowTypeByOr(type, expr, assumeTrue); } - else if (operator === 87) { + else if (operator === 87 /* InstanceOfKeyword */) { return narrowTypeByInstanceof(type, expr, assumeTrue); } break; - case 167: - if (expr.operator === 46) { + case 167 /* PrefixUnaryExpression */: + if (expr.operator === 46 /* ExclamationToken */) { return narrowType(type, expr.operand, !assumeTrue); } break; @@ -13424,10 +15535,16 @@ var ts; } function checkIdentifier(node) { var symbol = getResolvedSymbol(node); - if (symbol === argumentsSymbol && ts.getContainingFunction(node).kind === 163) { + // As noted in ECMAScript 6 language spec, arrow functions never have an arguments objects. + // Although in down-level emit of arrow function, we emit it using function expression which means that + // arguments objects will be bound to the inner object; emitting arrow function natively in ES6, arguments objects + // will be bound to non-arrow function that contain this arrow function. This results in inconsistent behavior. + // To avoid that we will give an error to users if they use arguments objects in arrow function so that they + // can explicitly bound arguments objects + if (symbol === argumentsSymbol && ts.getContainingFunction(node).kind === 163 /* ArrowFunction */) { error(node, ts.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_Consider_using_a_standard_function_expression); } - if (symbol.flags & 8388608 && !isInTypeQuery(node) && !isConstEnumOrConstEnumOnlyModule(resolveAlias(symbol))) { + if (symbol.flags & 8388608 /* Alias */ && !isInTypeQuery(node) && !isConstEnumOrConstEnumOnlyModule(resolveAlias(symbol))) { markAliasSymbolAsReferenced(symbol); } checkCollisionWithCapturedSuperVariable(node, node); @@ -13446,17 +15563,24 @@ var ts; return false; } function checkBlockScopedBindingCapturedInLoop(node, symbol) { - if (languageVersion >= 2 || - (symbol.flags & 2) === 0 || - symbol.valueDeclaration.parent.kind === 223) { + if (languageVersion >= 2 /* ES6 */ || + (symbol.flags & 2 /* BlockScopedVariable */) === 0 || + symbol.valueDeclaration.parent.kind === 223 /* CatchClause */) { return; } + // - check if binding is used in some function + // (stop the walk when reaching container of binding declaration) + // - if first check succeeded - check if variable is declared inside the loop + // nesting structure: + // (variable declaration or binding element) -> variable declaration list -> container var container = symbol.valueDeclaration; - while (container.kind !== 199) { + while (container.kind !== 199 /* VariableDeclarationList */) { container = container.parent; } + // get the parent of variable declaration list container = container.parent; - if (container.kind === 180) { + if (container.kind === 180 /* VariableStatement */) { + // if parent is variable statement - get its parent container = container.parent; } var inFunction = isInsideFunction(node.parent, container); @@ -13466,72 +15590,79 @@ var ts; if (inFunction) { grammarErrorOnFirstToken(current, ts.Diagnostics.Loop_contains_block_scoped_variable_0_referenced_by_a_function_in_the_loop_This_is_only_supported_in_ECMAScript_6_or_higher, ts.declarationNameToString(node)); } - getNodeLinks(symbol.valueDeclaration).flags |= 256; + // mark value declaration so during emit they can have a special handling + getNodeLinks(symbol.valueDeclaration).flags |= 256 /* BlockScopedBindingInLoop */; break; } current = current.parent; } } function captureLexicalThis(node, container) { - var classNode = container.parent && container.parent.kind === 201 ? container.parent : undefined; - getNodeLinks(node).flags |= 2; - if (container.kind === 132 || container.kind === 135) { - getNodeLinks(classNode).flags |= 4; + var classNode = container.parent && container.parent.kind === 201 /* ClassDeclaration */ ? container.parent : undefined; + getNodeLinks(node).flags |= 2 /* LexicalThis */; + if (container.kind === 132 /* PropertyDeclaration */ || container.kind === 135 /* Constructor */) { + getNodeLinks(classNode).flags |= 4 /* CaptureThis */; } else { - getNodeLinks(container).flags |= 4; + getNodeLinks(container).flags |= 4 /* CaptureThis */; } } function checkThisExpression(node) { + // Stop at the first arrow function so that we can + // tell whether 'this' needs to be captured. var container = ts.getThisContainer(node, true); var needToCaptureLexicalThis = false; - if (container.kind === 163) { + // Now skip arrow functions to get the "real" owner of 'this'. + if (container.kind === 163 /* ArrowFunction */) { container = ts.getThisContainer(container, false); - needToCaptureLexicalThis = (languageVersion < 2); + // When targeting es6, arrow function lexically bind "this" so we do not need to do the work of binding "this" in emitted code + needToCaptureLexicalThis = (languageVersion < 2 /* ES6 */); } switch (container.kind) { - case 205: + case 205 /* ModuleDeclaration */: error(node, ts.Diagnostics.this_cannot_be_referenced_in_a_module_body); + // do not return here so in case if lexical this is captured - it will be reflected in flags on NodeLinks break; - case 204: + case 204 /* EnumDeclaration */: error(node, ts.Diagnostics.this_cannot_be_referenced_in_current_location); + // do not return here so in case if lexical this is captured - it will be reflected in flags on NodeLinks break; - case 135: + case 135 /* Constructor */: if (isInConstructorArgumentInitializer(node, container)) { error(node, ts.Diagnostics.this_cannot_be_referenced_in_constructor_arguments); } break; - case 132: - case 131: - if (container.flags & 128) { + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + if (container.flags & 128 /* Static */) { error(node, ts.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer); } break; - case 127: + case 127 /* ComputedPropertyName */: error(node, ts.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name); break; } if (needToCaptureLexicalThis) { captureLexicalThis(node, container); } - var classNode = container.parent && container.parent.kind === 201 ? container.parent : undefined; + var classNode = container.parent && container.parent.kind === 201 /* ClassDeclaration */ ? container.parent : undefined; if (classNode) { var symbol = getSymbolOfNode(classNode); - return container.flags & 128 ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol); + return container.flags & 128 /* Static */ ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol); } return anyType; } function isInConstructorArgumentInitializer(node, constructorDecl) { for (var n = node; n && n !== constructorDecl; n = n.parent) { - if (n.kind === 129) { + if (n.kind === 129 /* Parameter */) { return true; } } return false; } function checkSuperExpression(node) { - var isCallExpression = node.parent.kind === 157 && node.parent.expression === node; - var enclosingClass = ts.getAncestor(node, 201); + var isCallExpression = node.parent.kind === 157 /* CallExpression */ && node.parent.expression === node; + var enclosingClass = ts.getAncestor(node, 201 /* ClassDeclaration */); var baseClass; if (enclosingClass && ts.getClassExtendsHeritageClauseElement(enclosingClass)) { var classType = getDeclaredTypeOfSymbol(getSymbolOfNode(enclosingClass)); @@ -13546,55 +15677,67 @@ var ts; var canUseSuperExpression = false; var needToCaptureLexicalThis; if (isCallExpression) { - canUseSuperExpression = container.kind === 135; + // TS 1.0 SPEC (April 2014): 4.8.1 + // Super calls are only permitted in constructors of derived classes + canUseSuperExpression = container.kind === 135 /* Constructor */; } else { + // TS 1.0 SPEC (April 2014) + // 'super' property access is allowed + // - In a constructor, instance member function, instance member accessor, or instance member variable initializer where this references a derived class instance + // - In a static member function or static member accessor + // super property access might appear in arrow functions with arbitrary deep nesting needToCaptureLexicalThis = false; - while (container && container.kind === 163) { + while (container && container.kind === 163 /* ArrowFunction */) { container = ts.getSuperContainer(container, true); - needToCaptureLexicalThis = true; + needToCaptureLexicalThis = languageVersion < 2 /* ES6 */; } - if (container && container.parent && container.parent.kind === 201) { - if (container.flags & 128) { + // topmost container must be something that is directly nested in the class declaration + if (container && container.parent && container.parent.kind === 201 /* ClassDeclaration */) { + if (container.flags & 128 /* Static */) { canUseSuperExpression = - container.kind === 134 || - container.kind === 133 || - container.kind === 136 || - container.kind === 137; + container.kind === 134 /* MethodDeclaration */ || + container.kind === 133 /* MethodSignature */ || + container.kind === 136 /* GetAccessor */ || + container.kind === 137 /* SetAccessor */; } else { canUseSuperExpression = - container.kind === 134 || - container.kind === 133 || - container.kind === 136 || - container.kind === 137 || - container.kind === 132 || - container.kind === 131 || - container.kind === 135; + container.kind === 134 /* MethodDeclaration */ || + container.kind === 133 /* MethodSignature */ || + container.kind === 136 /* GetAccessor */ || + container.kind === 137 /* SetAccessor */ || + container.kind === 132 /* PropertyDeclaration */ || + container.kind === 131 /* PropertySignature */ || + container.kind === 135 /* Constructor */; } } } if (canUseSuperExpression) { var returnType; - if ((container.flags & 128) || isCallExpression) { - getNodeLinks(node).flags |= 32; + if ((container.flags & 128 /* Static */) || isCallExpression) { + getNodeLinks(node).flags |= 32 /* SuperStatic */; returnType = getTypeOfSymbol(baseClass.symbol); } else { - getNodeLinks(node).flags |= 16; + getNodeLinks(node).flags |= 16 /* SuperInstance */; returnType = baseClass; } - if (container.kind === 135 && isInConstructorArgumentInitializer(node, container)) { + if (container.kind === 135 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) { + // issue custom error message for super property access in constructor arguments (to be aligned with old compiler) error(node, ts.Diagnostics.super_cannot_be_referenced_in_constructor_arguments); returnType = unknownType; } if (!isCallExpression && needToCaptureLexicalThis) { + // call expressions are allowed only in constructors so they should always capture correct 'this' + // super property access expressions can also appear in arrow functions - + // in this case they should also use correct lexical this captureLexicalThis(node.parent, container); } return returnType; } } - if (container.kind === 127) { + if (container && container.kind === 127 /* ComputedPropertyName */) { error(node, ts.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); } else if (isCallExpression) { @@ -13605,6 +15748,7 @@ var ts; } return unknownType; } + // Return contextual type of parameter or undefined if no contextual type is available function getContextuallyTypedParameterType(parameter) { if (isFunctionExpressionOrArrowFunction(parameter.parent)) { var func = parameter.parent; @@ -13617,6 +15761,7 @@ var ts; if (indexOfParameter < len) { return getTypeAtPosition(contextualSignature, indexOfParameter); } + // If last parameter is contextually rest parameter get its type if (indexOfParameter === (func.parameters.length - 1) && funcHasRestParameters && contextualSignature.hasRestParameter && func.parameters.length >= contextualSignature.parameters.length) { return getTypeOfSymbol(contextualSignature.parameters[contextualSignature.parameters.length - 1]); @@ -13626,13 +15771,18 @@ var ts; } return undefined; } + // In a variable, parameter or property declaration with a type annotation, the contextual type of an initializer + // expression is the type of the variable, parameter or property. Otherwise, in a parameter declaration of a + // contextually typed function expression, the contextual type of an initializer expression is the contextual type + // of the parameter. Otherwise, in a variable or parameter declaration with a binding pattern name, the contextual + // type of an initializer expression is the type implied by the binding pattern. function getContextualTypeForInitializerExpression(node) { var declaration = node.parent; if (node === declaration.initializer) { if (declaration.type) { return getTypeFromTypeNodeOrHeritageClauseElement(declaration.type); } - if (declaration.kind === 129) { + if (declaration.kind === 129 /* Parameter */) { var type = getContextuallyTypedParameterType(declaration); if (type) { return type; @@ -13647,9 +15797,13 @@ var ts; function getContextualTypeForReturnExpression(node) { var func = ts.getContainingFunction(node); if (func) { - if (func.type || func.kind === 135 || func.kind === 136 && getSetAccessorTypeAnnotationNode(ts.getDeclarationOfKind(func.symbol, 137))) { + // If the containing function has a return type annotation, is a constructor, or is a get accessor whose + // corresponding set accessor has a type annotation, return statements in the function are contextually typed + if (func.type || func.kind === 135 /* Constructor */ || func.kind === 136 /* GetAccessor */ && getSetAccessorTypeAnnotationNode(ts.getDeclarationOfKind(func.symbol, 137 /* SetAccessor */))) { return getReturnTypeOfSignature(getSignatureFromDeclaration(func)); } + // Otherwise, if the containing function is contextually typed by a function type with exactly one call signature + // and that call signature is non-generic, return statements are contextually typed by the return type of the signature var signature = getContextualSignatureForFunctionLikeDeclaration(func); if (signature) { return getReturnTypeOfSignature(signature); @@ -13657,6 +15811,7 @@ var ts; } return undefined; } + // In a typed function call, an argument or substitution expression is contextually typed by the type of the corresponding parameter. function getContextualTypeForArgument(callTarget, arg) { var args = getEffectiveCallArguments(callTarget); var argIndex = ts.indexOf(args, arg); @@ -13667,7 +15822,7 @@ var ts; return undefined; } function getContextualTypeForSubstitutionExpression(template, substitutionExpression) { - if (template.parent.kind === 159) { + if (template.parent.kind === 159 /* TaggedTemplateExpression */) { return getContextualTypeForArgument(template.parent, substitutionExpression); } return undefined; @@ -13675,12 +15830,15 @@ var ts; function getContextualTypeForBinaryOperand(node) { var binaryExpression = node.parent; var operator = binaryExpression.operatorToken.kind; - if (operator >= 53 && operator <= 64) { + if (operator >= 53 /* FirstAssignment */ && operator <= 64 /* LastAssignment */) { + // In an assignment expression, the right operand is contextually typed by the type of the left operand. if (node === binaryExpression.right) { return checkExpression(binaryExpression.left); } } - else if (operator === 49) { + else if (operator === 49 /* BarBarToken */) { + // When an || expression has a contextual type, the operands are contextually typed by that type. When an || + // expression has no contextual type, the right operand is contextually typed by the type of the left operand. var type = getContextualType(binaryExpression); if (!type && node === binaryExpression.right) { type = checkExpression(binaryExpression.left); @@ -13689,8 +15847,11 @@ var ts; } return undefined; } + // Apply a mapping function to a contextual type and return the resulting type. If the contextual type + // is a union type, the mapping function is applied to each constituent type and a union of the resulting + // types is returned. function applyToContextualType(type, mapper) { - if (!(type.flags & 16384)) { + if (!(type.flags & 16384 /* Union */)) { return mapper(type); } var types = type.types; @@ -13722,15 +15883,21 @@ var ts; function getIndexTypeOfContextualType(type, kind) { return applyToContextualType(type, function (t) { return getIndexTypeOfObjectOrUnionType(t, kind); }); } + // Return true if the given contextual type is a tuple-like type function contextualTypeIsTupleLikeType(type) { - return !!(type.flags & 16384 ? ts.forEach(type.types, isTupleLikeType) : isTupleLikeType(type)); + return !!(type.flags & 16384 /* Union */ ? ts.forEach(type.types, isTupleLikeType) : isTupleLikeType(type)); } + // Return true if the given contextual type provides an index signature of the given kind function contextualTypeHasIndexSignature(type, kind) { - return !!(type.flags & 16384 ? ts.forEach(type.types, function (t) { return getIndexTypeOfObjectOrUnionType(t, kind); }) : getIndexTypeOfObjectOrUnionType(type, kind)); + return !!(type.flags & 16384 /* Union */ ? ts.forEach(type.types, function (t) { return getIndexTypeOfObjectOrUnionType(t, kind); }) : getIndexTypeOfObjectOrUnionType(type, kind)); } + // In an object literal contextually typed by a type T, the contextual type of a property assignment is the type of + // the matching property in T, if one exists. Otherwise, it is the type of the numeric index signature in T, if one + // exists. Otherwise, it is the type of the string index signature in T, if one exists. function getContextualTypeForObjectLiteralMethod(node) { ts.Debug.assert(ts.isObjectLiteralMethod(node)); if (isInsideWithStatementBody(node)) { + // We cannot answer semantic questions within a with block, do not proceed any further return undefined; } return getContextualTypeForObjectLiteralElement(node); @@ -13740,34 +15907,45 @@ var ts; var type = getContextualType(objectLiteral); if (type) { if (!ts.hasDynamicName(element)) { + // For a (non-symbol) computed property, there is no reason to look up the name + // in the type. It will just be "__computed", which does not appear in any + // SymbolTable. var symbolName = getSymbolOfNode(element).name; var propertyType = getTypeOfPropertyOfContextualType(type, symbolName); if (propertyType) { return propertyType; } } - return isNumericName(element.name) && getIndexTypeOfContextualType(type, 1) || - getIndexTypeOfContextualType(type, 0); + return isNumericName(element.name) && getIndexTypeOfContextualType(type, 1 /* Number */) || + getIndexTypeOfContextualType(type, 0 /* String */); } return undefined; } + // In an array literal contextually typed by a type T, the contextual type of an element expression at index N is + // the type of the property with the numeric name N in T, if one exists. Otherwise, if T has a numeric index signature, + // it is the type of the numeric index signature in T. Otherwise, in ES6 and higher, the contextual type is the iterated + // type of T. function getContextualTypeForElementExpression(node) { var arrayLiteral = node.parent; var type = getContextualType(arrayLiteral); if (type) { var index = ts.indexOf(arrayLiteral.elements, node); return getTypeOfPropertyOfContextualType(type, "" + index) - || getIndexTypeOfContextualType(type, 1) - || (languageVersion >= 2 ? checkIteratedType(type, undefined) : undefined); + || getIndexTypeOfContextualType(type, 1 /* Number */) + || (languageVersion >= 2 /* ES6 */ ? checkIteratedType(type, undefined) : undefined); } return undefined; } + // In a contextually typed conditional expression, the true/false expressions are contextually typed by the same type. function getContextualTypeForConditionalOperand(node) { var conditional = node.parent; return node === conditional.whenTrue || node === conditional.whenFalse ? getContextualType(conditional) : undefined; } + // Return the contextual type for a given expression node. During overload resolution, a contextual type may temporarily + // be "pushed" onto a node using the contextualType property. function getContextualType(node) { if (isInsideWithStatementBody(node)) { + // We cannot answer semantic questions within a with block, do not proceed any further return undefined; } if (node.contextualType) { @@ -13775,38 +15953,40 @@ var ts; } var parent = node.parent; switch (parent.kind) { - case 198: - case 129: - case 132: - case 131: - case 152: + case 198 /* VariableDeclaration */: + case 129 /* Parameter */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 152 /* BindingElement */: return getContextualTypeForInitializerExpression(node); - case 163: - case 191: + case 163 /* ArrowFunction */: + case 191 /* ReturnStatement */: return getContextualTypeForReturnExpression(node); - case 157: - case 158: + case 157 /* CallExpression */: + case 158 /* NewExpression */: return getContextualTypeForArgument(parent, node); - case 160: + case 160 /* TypeAssertionExpression */: return getTypeFromTypeNodeOrHeritageClauseElement(parent.type); - case 169: + case 169 /* BinaryExpression */: return getContextualTypeForBinaryOperand(node); - case 224: + case 224 /* PropertyAssignment */: return getContextualTypeForObjectLiteralElement(parent); - case 153: + case 153 /* ArrayLiteralExpression */: return getContextualTypeForElementExpression(node); - case 170: + case 170 /* ConditionalExpression */: return getContextualTypeForConditionalOperand(node); - case 176: - ts.Debug.assert(parent.parent.kind === 171); + case 176 /* TemplateSpan */: + ts.Debug.assert(parent.parent.kind === 171 /* TemplateExpression */); return getContextualTypeForSubstitutionExpression(parent.parent, node); - case 161: + case 161 /* ParenthesizedExpression */: return getContextualType(parent); } return undefined; } + // If the given type is an object or union type, if that type has a single signature, and if + // that signature is non-generic, return the signature. Otherwise return undefined. function getNonGenericSignature(type) { - var signatures = getSignaturesOfObjectOrUnionType(type, 0); + var signatures = getSignaturesOfObjectOrUnionType(type, 0 /* Call */); if (signatures.length === 1) { var signature = signatures[0]; if (!signature.typeParameters) { @@ -13815,74 +15995,94 @@ var ts; } } function isFunctionExpressionOrArrowFunction(node) { - return node.kind === 162 || node.kind === 163; + return node.kind === 162 /* FunctionExpression */ || node.kind === 163 /* ArrowFunction */; } function getContextualSignatureForFunctionLikeDeclaration(node) { + // Only function expressions and arrow functions are contextually typed. return isFunctionExpressionOrArrowFunction(node) ? getContextualSignature(node) : undefined; } + // Return the contextual signature for a given expression node. A contextual type provides a + // contextual signature if it has a single call signature and if that call signature is non-generic. + // If the contextual type is a union type, get the signature from each type possible and if they are + // all identical ignoring their return type, the result is same signature but with return type as + // union type of return types from these signatures function getContextualSignature(node) { - ts.Debug.assert(node.kind !== 134 || ts.isObjectLiteralMethod(node)); + ts.Debug.assert(node.kind !== 134 /* MethodDeclaration */ || ts.isObjectLiteralMethod(node)); var type = ts.isObjectLiteralMethod(node) ? getContextualTypeForObjectLiteralMethod(node) : getContextualType(node); if (!type) { return undefined; } - if (!(type.flags & 16384)) { + if (!(type.flags & 16384 /* Union */)) { return getNonGenericSignature(type); } var signatureList; var types = type.types; for (var _i = 0; _i < types.length; _i++) { var current = types[_i]; + // The signature set of all constituent type with call signatures should match + // So number of signatures allowed is either 0 or 1 if (signatureList && - getSignaturesOfObjectOrUnionType(current, 0).length > 1) { + getSignaturesOfObjectOrUnionType(current, 0 /* Call */).length > 1) { return undefined; } var signature = getNonGenericSignature(current); if (signature) { if (!signatureList) { + // This signature will contribute to contextual union signature signatureList = [signature]; } else if (!compareSignatures(signatureList[0], signature, false, compareTypes)) { + // Signatures aren't identical, do not use return undefined; } else { + // Use this signature for contextual union signature signatureList.push(signature); } } } + // Result is union of signatures collected (return type is union of return types of this signature set) var result; if (signatureList) { result = cloneSignature(signatureList[0]); + // Clear resolved return type we possibly got from cloneSignature result.resolvedReturnType = undefined; result.unionSignatures = signatureList; } return result; } + // Presence of a contextual type mapper indicates inferential typing, except the identityMapper object is + // used as a special marker for other purposes. function isInferentialContext(mapper) { return mapper && mapper !== identityMapper; } + // A node is an assignment target if it is on the left hand side of an '=' token, if it is parented by a property + // assignment in an object literal that is an assignment target, or if it is parented by an array literal that is + // an assignment target. Examples include 'a = xxx', '{ p: a } = xxx', '[{ p: a}] = xxx'. function isAssignmentTarget(node) { var parent = node.parent; - if (parent.kind === 169 && parent.operatorToken.kind === 53 && parent.left === node) { + if (parent.kind === 169 /* BinaryExpression */ && parent.operatorToken.kind === 53 /* EqualsToken */ && parent.left === node) { return true; } - if (parent.kind === 224) { + if (parent.kind === 224 /* PropertyAssignment */) { return isAssignmentTarget(parent.parent); } - if (parent.kind === 153) { + if (parent.kind === 153 /* ArrayLiteralExpression */) { return isAssignmentTarget(parent); } return false; } function checkSpreadElementExpression(node, contextualMapper) { - var type = checkExpressionCached(node.expression, contextualMapper); - if (!isArrayLikeType(type)) { - error(node.expression, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(type)); - return unknownType; - } - return type; + // It is usually not safe to call checkExpressionCached if we can be contextually typing. + // You can tell that we are contextually typing because of the contextualMapper parameter. + // While it is true that a spread element can have a contextual type, it does not do anything + // with this type. It is neither affected by it, nor does it propagate it to its operand. + // So the fact that contextualMapper is passed is not important, because the operand of a spread + // element is not contextually typed. + var arrayOrIterableType = checkExpressionCached(node.expression, contextualMapper); + return checkIteratedTypeOrElementType(arrayOrIterableType, node.expression, false); } function checkArrayLiteral(node, contextualMapper) { var elements = node.elements; @@ -13891,16 +16091,12 @@ var ts; } var hasSpreadElement = false; var elementTypes = []; - ts.forEach(elements, function (e) { + for (var _i = 0; _i < elements.length; _i++) { + var e = elements[_i]; var type = checkExpression(e, contextualMapper); - if (e.kind === 173) { - elementTypes.push(getIndexTypeOfType(type, 1) || anyType); - hasSpreadElement = true; - } - else { - elementTypes.push(type); - } - }); + elementTypes.push(type); + hasSpreadElement = hasSpreadElement || e.kind === 173 /* SpreadElementExpression */; + } if (!hasSpreadElement) { var contextualType = getContextualType(node); if (contextualType && contextualTypeIsTupleLikeType(contextualType) || isAssignmentTarget(node)) { @@ -13910,19 +16106,44 @@ var ts; return createArrayType(getUnionType(elementTypes)); } function isNumericName(name) { - return name.kind === 127 ? isNumericComputedName(name) : isNumericLiteralName(name.text); + return name.kind === 127 /* ComputedPropertyName */ ? isNumericComputedName(name) : isNumericLiteralName(name.text); } function isNumericComputedName(name) { - return allConstituentTypesHaveKind(checkComputedPropertyName(name), 1 | 132); + // It seems odd to consider an expression of type Any to result in a numeric name, + // but this behavior is consistent with checkIndexedAccess + return allConstituentTypesHaveKind(checkComputedPropertyName(name), 1 /* Any */ | 132 /* NumberLike */); } function isNumericLiteralName(name) { + // The intent of numeric names is that + // - they are names with text in a numeric form, and that + // - setting properties/indexing with them is always equivalent to doing so with the numeric literal 'numLit', + // acquired by applying the abstract 'ToNumber' operation on the name's text. + // + // The subtlety is in the latter portion, as we cannot reliably say that anything that looks like a numeric literal is a numeric name. + // In fact, it is the case that the text of the name must be equal to 'ToString(numLit)' for this to hold. + // + // Consider the property name '"0xF00D"'. When one indexes with '0xF00D', they are actually indexing with the value of 'ToString(0xF00D)' + // according to the ECMAScript specification, so it is actually as if the user indexed with the string '"61453"'. + // Thus, the text of all numeric literals equivalent to '61543' such as '0xF00D', '0xf00D', '0170015', etc. are not valid numeric names + // because their 'ToString' representation is not equal to their original text. + // This is motivated by ECMA-262 sections 9.3.1, 9.8.1, 11.1.5, and 11.2.1. + // + // Here, we test whether 'ToString(ToNumber(name))' is exactly equal to 'name'. + // The '+' prefix operator is equivalent here to applying the abstract ToNumber operation. + // Applying the 'toString()' method on a number gives us the abstract ToString operation on a number. + // + // Note that this accepts the values 'Infinity', '-Infinity', and 'NaN', and that this is intentional. + // This is desired behavior, because when indexing with them as numeric entities, you are indexing + // with the strings '"Infinity"', '"-Infinity"', and '"NaN"' respectively. return (+name).toString() === name; } function checkComputedPropertyName(node) { var links = getNodeLinks(node.expression); if (!links.resolvedType) { links.resolvedType = checkExpression(node.expression); - if (!allConstituentTypesHaveKind(links.resolvedType, 1 | 132 | 258 | 1048576)) { + // This will allow types number, string, symbol or any. It will also allow enums, the unknown + // type, and any union of these types (like string | number). + if (!allConstituentTypesHaveKind(links.resolvedType, 1 /* Any */ | 132 /* NumberLike */ | 258 /* StringLike */ | 1048576 /* ESSymbol */)) { error(node, ts.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any); } else { @@ -13932,6 +16153,7 @@ var ts; return links.resolvedType; } function checkObjectLiteral(node, contextualMapper) { + // Grammar checking checkGrammarObjectLiteralExpression(node); var propertiesTable = {}; var propertiesArray = []; @@ -13940,24 +16162,24 @@ var ts; for (var _i = 0, _a = node.properties; _i < _a.length; _i++) { var memberDecl = _a[_i]; var member = memberDecl.symbol; - if (memberDecl.kind === 224 || - memberDecl.kind === 225 || + if (memberDecl.kind === 224 /* PropertyAssignment */ || + memberDecl.kind === 225 /* ShorthandPropertyAssignment */ || ts.isObjectLiteralMethod(memberDecl)) { var type = void 0; - if (memberDecl.kind === 224) { + if (memberDecl.kind === 224 /* PropertyAssignment */) { type = checkPropertyAssignment(memberDecl, contextualMapper); } - else if (memberDecl.kind === 134) { + else if (memberDecl.kind === 134 /* MethodDeclaration */) { type = checkObjectLiteralMethod(memberDecl, contextualMapper); } else { - ts.Debug.assert(memberDecl.kind === 225); - type = memberDecl.name.kind === 127 + ts.Debug.assert(memberDecl.kind === 225 /* ShorthandPropertyAssignment */); + type = memberDecl.name.kind === 127 /* ComputedPropertyName */ ? unknownType : checkExpression(memberDecl.name, contextualMapper); } typeFlags |= type.flags; - var prop = createSymbol(4 | 67108864 | member.flags, member.name); + var prop = createSymbol(4 /* Property */ | 67108864 /* Transient */ | member.flags, member.name); prop.declarations = member.declarations; prop.parent = member.parent; if (member.valueDeclaration) { @@ -13968,7 +16190,12 @@ var ts; member = prop; } else { - ts.Debug.assert(memberDecl.kind === 136 || memberDecl.kind === 137); + // TypeScript 1.0 spec (April 2014) + // A get accessor declaration is processed in the same manner as + // an ordinary function declaration(section 6.1) with no parameters. + // A set accessor declaration is processed in the same manner + // as an ordinary function declaration with a single parameter and a Void return type. + ts.Debug.assert(memberDecl.kind === 136 /* GetAccessor */ || memberDecl.kind === 137 /* SetAccessor */); checkAccessorDeclaration(memberDecl); } if (!ts.hasDynamicName(memberDecl)) { @@ -13976,17 +16203,21 @@ var ts; } propertiesArray.push(member); } - var stringIndexType = getIndexType(0); - var numberIndexType = getIndexType(1); + var stringIndexType = getIndexType(0 /* String */); + var numberIndexType = getIndexType(1 /* Number */); var result = createAnonymousType(node.symbol, propertiesTable, emptyArray, emptyArray, stringIndexType, numberIndexType); - result.flags |= 131072 | 524288 | (typeFlags & 262144); + result.flags |= 131072 /* ObjectLiteral */ | 524288 /* ContainsObjectLiteral */ | (typeFlags & 262144 /* ContainsUndefinedOrNull */); return result; function getIndexType(kind) { if (contextualType && contextualTypeHasIndexSignature(contextualType, kind)) { var propTypes = []; for (var i = 0; i < propertiesArray.length; i++) { var propertyDecl = node.properties[i]; - if (kind === 0 || isNumericName(propertyDecl.name)) { + if (kind === 0 /* String */ || isNumericName(propertyDecl.name)) { + // Do not call getSymbolOfNode(propertyDecl), as that will get the + // original symbol for the node. We actually want to get the symbol + // created by checkObjectLiteral, since that will be appropriately + // contextually typed and resolved. var type = getTypeOfSymbol(propertiesArray[i]); if (!ts.contains(propTypes, type)) { propTypes.push(type); @@ -14000,37 +16231,48 @@ var ts; return undefined; } } + // If a symbol is a synthesized symbol with no value declaration, we assume it is a property. Example of this are the synthesized + // '.prototype' property as well as synthesized tuple index properties. function getDeclarationKindFromSymbol(s) { - return s.valueDeclaration ? s.valueDeclaration.kind : 132; + return s.valueDeclaration ? s.valueDeclaration.kind : 132 /* PropertyDeclaration */; } function getDeclarationFlagsFromSymbol(s) { - return s.valueDeclaration ? ts.getCombinedNodeFlags(s.valueDeclaration) : s.flags & 134217728 ? 16 | 128 : 0; + return s.valueDeclaration ? ts.getCombinedNodeFlags(s.valueDeclaration) : s.flags & 134217728 /* Prototype */ ? 16 /* Public */ | 128 /* Static */ : 0; } function checkClassPropertyAccess(node, left, type, prop) { var flags = getDeclarationFlagsFromSymbol(prop); - if (!(flags & (32 | 64))) { + // Public properties are always accessible + if (!(flags & (32 /* Private */ | 64 /* Protected */))) { return; } - var enclosingClassDeclaration = ts.getAncestor(node, 201); + // Property is known to be private or protected at this point + // Get the declaring and enclosing class instance types + var enclosingClassDeclaration = ts.getAncestor(node, 201 /* ClassDeclaration */); var enclosingClass = enclosingClassDeclaration ? getDeclaredTypeOfSymbol(getSymbolOfNode(enclosingClassDeclaration)) : undefined; var declaringClass = getDeclaredTypeOfSymbol(prop.parent); - if (flags & 32) { + // Private property is accessible if declaring and enclosing class are the same + if (flags & 32 /* Private */) { if (declaringClass !== enclosingClass) { error(node, ts.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1, symbolToString(prop), typeToString(declaringClass)); } return; } - if (left.kind === 91) { + // Property is known to be protected at this point + // All protected properties of a supertype are accessible in a super access + if (left.kind === 91 /* SuperKeyword */) { return; } + // A protected property is accessible in the declaring class and classes derived from it if (!enclosingClass || !hasBaseType(enclosingClass, declaringClass)) { error(node, ts.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, symbolToString(prop), typeToString(declaringClass)); return; } - if (flags & 128) { + // No further restrictions for static properties + if (flags & 128 /* Static */) { return; } - if (!(getTargetType(type).flags & (1024 | 2048) && hasBaseType(type, enclosingClass))) { + // An instance property must be accessed through an instance of the enclosing class + if (!(getTargetType(type).flags & (1024 /* Class */ | 2048 /* Interface */) && hasBaseType(type, enclosingClass))) { error(node, ts.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1, symbolToString(prop), typeToString(enclosingClass)); } } @@ -14047,6 +16289,7 @@ var ts; if (type !== anyType) { var apparentType = getApparentType(getWidenedType(type)); if (apparentType === unknownType) { + // handle cases when type is Type parameter with invalid constraint return unknownType; } var prop = getPropertyOfType(apparentType, right.text); @@ -14057,8 +16300,15 @@ var ts; return unknownType; } getNodeLinks(node).resolvedSymbol = prop; - if (prop.parent && prop.parent.flags & 32) { - if (left.kind === 91 && getDeclarationKindFromSymbol(prop) !== 134) { + if (prop.parent && prop.parent.flags & 32 /* Class */) { + // TS 1.0 spec (April 2014): 4.8.2 + // - In a constructor, instance member function, instance member accessor, or + // instance member variable initializer where this references a derived class instance, + // a super property access is permitted and must specify a public instance member function of the base class. + // - In a static member function or static member accessor + // where this references the constructor function object of a derived class, + // a super property access is permitted and must specify a public static member function of the base class. + if (left.kind === 91 /* SuperKeyword */ && getDeclarationKindFromSymbol(prop) !== 134 /* MethodDeclaration */) { error(right, ts.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword); } else { @@ -14070,14 +16320,14 @@ var ts; return anyType; } function isValidPropertyAccess(node, propertyName) { - var left = node.kind === 155 + var left = node.kind === 155 /* PropertyAccessExpression */ ? node.expression : node.left; var type = checkExpressionOrQualifiedName(left); if (type !== unknownType && type !== anyType) { var prop = getPropertyOfType(getWidenedType(type), propertyName); - if (prop && prop.parent && prop.parent.flags & 32) { - if (left.kind === 91 && getDeclarationKindFromSymbol(prop) !== 134) { + if (prop && prop.parent && prop.parent.flags & 32 /* Class */) { + if (left.kind === 91 /* SuperKeyword */ && getDeclarationKindFromSymbol(prop) !== 134 /* MethodDeclaration */) { return false; } else { @@ -14090,9 +16340,10 @@ var ts; return true; } function checkIndexedAccess(node) { + // Grammar checking if (!node.argumentExpression) { var sourceFile = getSourceFile(node); - if (node.parent.kind === 158 && node.parent.expression === node) { + if (node.parent.kind === 158 /* NewExpression */ && node.parent.expression === node) { var start = ts.skipTrivia(sourceFile.text, node.expression.end); var end = node.end; grammarErrorAtPos(sourceFile, start, end - start, ts.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead); @@ -14103,6 +16354,7 @@ var ts; grammarErrorAtPos(sourceFile, start, end - start, ts.Diagnostics.Expression_expected); } } + // Obtain base constraint such that we can bail out if the constraint is an unknown type var objectType = getApparentType(checkExpression(node.expression)); var indexType = node.argumentExpression ? checkExpression(node.argumentExpression) : unknownType; if (objectType === unknownType) { @@ -14110,10 +16362,19 @@ var ts; } var isConstEnum = isConstEnumObjectType(objectType); if (isConstEnum && - (!node.argumentExpression || node.argumentExpression.kind !== 8)) { + (!node.argumentExpression || node.argumentExpression.kind !== 8 /* StringLiteral */)) { error(node.argumentExpression, ts.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal); return unknownType; } + // TypeScript 1.0 spec (April 2014): 4.10 Property Access + // - If IndexExpr is a string literal or a numeric literal and ObjExpr's apparent type has a property with the name + // given by that literal(converted to its string representation in the case of a numeric literal), the property access is of the type of that property. + // - Otherwise, if ObjExpr's apparent type has a numeric index signature and IndexExpr is of type Any, the Number primitive type, or an enum type, + // the property access is of the type of that index signature. + // - Otherwise, if ObjExpr's apparent type has a string index signature and IndexExpr is of type Any, the String or Number primitive type, or an enum type, + // the property access is of the type of that index signature. + // - Otherwise, if IndexExpr is of type Any, the String or Number primitive type, or an enum type, the property access is of type Any. + // See if we can index as a property. if (node.argumentExpression) { var name_6 = getPropertyNameForIndexedAccess(node.argumentExpression, indexType); if (name_6 !== undefined) { @@ -14128,27 +16389,38 @@ var ts; } } } - if (allConstituentTypesHaveKind(indexType, 1 | 258 | 132 | 1048576)) { - if (allConstituentTypesHaveKind(indexType, 1 | 132)) { - var numberIndexType = getIndexTypeOfType(objectType, 1); + // Check for compatible indexer types. + if (allConstituentTypesHaveKind(indexType, 1 /* Any */ | 258 /* StringLike */ | 132 /* NumberLike */ | 1048576 /* ESSymbol */)) { + // Try to use a number indexer. + if (allConstituentTypesHaveKind(indexType, 1 /* Any */ | 132 /* NumberLike */)) { + var numberIndexType = getIndexTypeOfType(objectType, 1 /* Number */); if (numberIndexType) { return numberIndexType; } } - var stringIndexType = getIndexTypeOfType(objectType, 0); + // Try to use string indexing. + var stringIndexType = getIndexTypeOfType(objectType, 0 /* String */); if (stringIndexType) { return stringIndexType; } + // Fall back to any. if (compilerOptions.noImplicitAny && !compilerOptions.suppressImplicitAnyIndexErrors && objectType !== anyType) { error(node, ts.Diagnostics.Index_signature_of_object_type_implicitly_has_an_any_type); } return anyType; } + // REVIEW: Users should know the type that was actually used. error(node, ts.Diagnostics.An_index_expression_argument_must_be_of_type_string_number_symbol_or_any); return unknownType; } + /** + * If indexArgumentExpression is a string literal or number literal, returns its text. + * If indexArgumentExpression is a well known symbol, returns the property name corresponding + * to this symbol, as long as it is a proper symbol reference. + * Otherwise, returns undefined. + */ function getPropertyNameForIndexedAccess(indexArgumentExpression, indexArgumentType) { - if (indexArgumentExpression.kind === 8 || indexArgumentExpression.kind === 7) { + if (indexArgumentExpression.kind === 8 /* StringLiteral */ || indexArgumentExpression.kind === 7 /* NumericLiteral */) { return indexArgumentExpression.text; } if (checkThatExpressionIsProperSymbolReference(indexArgumentExpression, indexArgumentType, false)) { @@ -14157,19 +16429,30 @@ var ts; } return undefined; } + /** + * A proper symbol reference requires the following: + * 1. The property access denotes a property that exists + * 2. The expression is of the form Symbol. + * 3. The property access is of the primitive type symbol. + * 4. Symbol in this context resolves to the global Symbol object + */ function checkThatExpressionIsProperSymbolReference(expression, expressionType, reportError) { if (expressionType === unknownType) { + // There is already an error, so no need to report one. return false; } if (!ts.isWellKnownSymbolSyntactically(expression)) { return false; } - if ((expressionType.flags & 1048576) === 0) { + // Make sure the property type is the primitive symbol type + if ((expressionType.flags & 1048576 /* ESSymbol */) === 0) { if (reportError) { error(expression, ts.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol, ts.getTextOfNode(expression)); } return false; } + // The name is Symbol., so make sure Symbol actually resolves to the + // global Symbol object var leftHandSide = expression.expression; var leftHandSideSymbol = getResolvedSymbol(leftHandSide); if (!leftHandSideSymbol) { @@ -14177,6 +16460,7 @@ var ts; } var globalESSymbol = getGlobalESSymbolConstructorSymbol(); if (!globalESSymbol) { + // Already errored when we tried to look up the symbol return false; } if (leftHandSideSymbol !== globalESSymbol) { @@ -14188,7 +16472,7 @@ var ts; return true; } function resolveUntypedCall(node) { - if (node.kind === 159) { + if (node.kind === 159 /* TaggedTemplateExpression */) { checkExpression(node.template); } else { @@ -14202,6 +16486,14 @@ var ts; resolveUntypedCall(node); return unknownSignature; } + // Re-order candidate signatures into the result array. Assumes the result array to be empty. + // The candidate list orders groups in reverse, but within a group signatures are kept in declaration order + // A nit here is that we reorder only signatures that belong to the same symbol, + // so order how inherited signatures are processed is still preserved. + // interface A { (x: string): void } + // interface B extends A { (x: 'foo'): string } + // let b: B; + // b('foo') // <- here overloads should be processed as [(x:'foo'): string, (x: string): void] function reorderCandidates(signatures, result) { var lastParent; var lastSymbol; @@ -14213,24 +16505,31 @@ var ts; for (var _i = 0; _i < signatures.length; _i++) { var signature = signatures[_i]; var symbol = signature.declaration && getSymbolOfNode(signature.declaration); - var parent_4 = signature.declaration && signature.declaration.parent; + var parent_5 = signature.declaration && signature.declaration.parent; if (!lastSymbol || symbol === lastSymbol) { - if (lastParent && parent_4 === lastParent) { + if (lastParent && parent_5 === lastParent) { index++; } else { - lastParent = parent_4; + lastParent = parent_5; index = cutoffIndex; } } else { + // current declaration belongs to a different symbol + // set cutoffIndex so re-orderings in the future won't change result set from 0 to cutoffIndex index = cutoffIndex = result.length; - lastParent = parent_4; + lastParent = parent_5; } lastSymbol = symbol; + // specialized signatures always need to be placed before non-specialized signatures regardless + // of the cutoff position; see GH#1133 if (signature.hasStringLiterals) { specializedIndex++; spliceIndex = specializedIndex; + // The cutoff index always needs to be greater than or equal to the specialized signature index + // in order to prevent non-specialized signatures from being added before a specialized + // signature. cutoffIndex++; } else { @@ -14241,59 +16540,76 @@ var ts; } function getSpreadArgumentIndex(args) { for (var i = 0; i < args.length; i++) { - if (args[i].kind === 173) { + if (args[i].kind === 173 /* SpreadElementExpression */) { return i; } } return -1; } function hasCorrectArity(node, args, signature) { - var adjustedArgCount; - var typeArguments; - var callIsIncomplete; - if (node.kind === 159) { + var adjustedArgCount; // Apparent number of arguments we will have in this call + var typeArguments; // Type arguments (undefined if none) + var callIsIncomplete; // In incomplete call we want to be lenient when we have too few arguments + if (node.kind === 159 /* TaggedTemplateExpression */) { var tagExpression = node; + // Even if the call is incomplete, we'll have a missing expression as our last argument, + // so we can say the count is just the arg list length adjustedArgCount = args.length; typeArguments = undefined; - if (tagExpression.template.kind === 171) { + if (tagExpression.template.kind === 171 /* TemplateExpression */) { + // If a tagged template expression lacks a tail literal, the call is incomplete. + // Specifically, a template only can end in a TemplateTail or a Missing literal. var templateExpression = tagExpression.template; var lastSpan = ts.lastOrUndefined(templateExpression.templateSpans); - ts.Debug.assert(lastSpan !== undefined); + ts.Debug.assert(lastSpan !== undefined); // we should always have at least one span. callIsIncomplete = ts.nodeIsMissing(lastSpan.literal) || !!lastSpan.literal.isUnterminated; } else { + // If the template didn't end in a backtick, or its beginning occurred right prior to EOF, + // then this might actually turn out to be a TemplateHead in the future; + // so we consider the call to be incomplete. var templateLiteral = tagExpression.template; - ts.Debug.assert(templateLiteral.kind === 10); + ts.Debug.assert(templateLiteral.kind === 10 /* NoSubstitutionTemplateLiteral */); callIsIncomplete = !!templateLiteral.isUnterminated; } } else { var callExpression = node; if (!callExpression.arguments) { - ts.Debug.assert(callExpression.kind === 158); + // This only happens when we have something of the form: 'new C' + ts.Debug.assert(callExpression.kind === 158 /* NewExpression */); return signature.minArgumentCount === 0; } + // For IDE scenarios we may have an incomplete call, so a trailing comma is tantamount to adding another argument. adjustedArgCount = callExpression.arguments.hasTrailingComma ? args.length + 1 : args.length; + // If we are missing the close paren, the call is incomplete. callIsIncomplete = callExpression.arguments.end === callExpression.end; typeArguments = callExpression.typeArguments; } + // If the user supplied type arguments, but the number of type arguments does not match + // the declared number of type parameters, the call has an incorrect arity. var hasRightNumberOfTypeArgs = !typeArguments || (signature.typeParameters && typeArguments.length === signature.typeParameters.length); if (!hasRightNumberOfTypeArgs) { return false; } + // If spread arguments are present, check that they correspond to a rest parameter. If so, no + // further checking is necessary. var spreadArgIndex = getSpreadArgumentIndex(args); if (spreadArgIndex >= 0) { return signature.hasRestParameter && spreadArgIndex >= signature.parameters.length - 1; } + // Too many arguments implies incorrect arity. if (!signature.hasRestParameter && adjustedArgCount > signature.parameters.length) { return false; } + // If the call is incomplete, we should skip the lower bound check. var hasEnoughArguments = adjustedArgCount >= signature.minArgumentCount; return callIsIncomplete || hasEnoughArguments; } + // If type has a single call signature and no other members, return that signature. Otherwise, return undefined. function getSingleCallSignature(type) { - if (type.flags & 48128) { + if (type.flags & 48128 /* ObjectType */) { var resolved = resolveObjectOrUnionTypeMembers(type); if (resolved.callSignatures.length === 1 && resolved.constructSignatures.length === 0 && resolved.properties.length === 0 && !resolved.stringIndexType && !resolved.numberIndexType) { @@ -14302,9 +16618,11 @@ var ts; } return undefined; } + // Instantiate a generic signature in the context of a non-generic signature (section 3.8.5 in TypeScript spec) function instantiateSignatureInContextOf(signature, contextualSignature, contextualMapper) { var context = createInferenceContext(signature.typeParameters, true); forEachMatchingParameterType(contextualSignature, signature, function (source, target) { + // Type parameters from outer context referenced by source type are fixed by instantiation of the source type inferTypes(context, instantiateType(source, contextualMapper), target); }); return getSignatureInstantiation(signature, getInferredTypes(context)); @@ -14312,34 +16630,54 @@ var ts; function inferTypeArguments(signature, args, excludeArgument, context) { var typeParameters = signature.typeParameters; var inferenceMapper = createInferenceMapper(context); + // Clear out all the inference results from the last time inferTypeArguments was called on this context for (var i = 0; i < typeParameters.length; i++) { + // As an optimization, we don't have to clear (and later recompute) inferred types + // for type parameters that have already been fixed on the previous call to inferTypeArguments. + // It would be just as correct to reset all of them. But then we'd be repeating the same work + // for the type parameters that were fixed, namely the work done by getInferredType. if (!context.inferences[i].isFixed) { context.inferredTypes[i] = undefined; } } + // On this call to inferTypeArguments, we may get more inferences for certain type parameters that were not + // fixed last time. This means that a type parameter that failed inference last time may succeed this time, + // or vice versa. Therefore, the failedTypeParameterIndex is useless if it points to an unfixed type parameter, + // because it may change. So here we reset it. However, getInferredType will not revisit any type parameters + // that were previously fixed. So if a fixed type parameter failed previously, it will fail again because + // it will contain the exact same set of inferences. So if we reset the index from a fixed type parameter, + // we will lose information that we won't recover this time around. if (context.failedTypeParameterIndex !== undefined && !context.inferences[context.failedTypeParameterIndex].isFixed) { context.failedTypeParameterIndex = undefined; } + // We perform two passes over the arguments. In the first pass we infer from all arguments, but use + // wildcards for all context sensitive function expressions. for (var i = 0; i < args.length; i++) { var arg = args[i]; - if (arg.kind !== 175) { - var paramType = getTypeAtPosition(signature, arg.kind === 173 ? -1 : i); + if (arg.kind !== 175 /* OmittedExpression */) { + var paramType = getTypeAtPosition(signature, i); var argType = void 0; - if (i === 0 && args[i].parent.kind === 159) { + if (i === 0 && args[i].parent.kind === 159 /* TaggedTemplateExpression */) { argType = globalTemplateStringsArrayType; } else { + // For context sensitive arguments we pass the identityMapper, which is a signal to treat all + // context sensitive function expressions as wildcards var mapper = excludeArgument && excludeArgument[i] !== undefined ? identityMapper : inferenceMapper; argType = checkExpressionWithContextualType(arg, paramType, mapper); } inferTypes(context, argType, paramType); } } + // In the second pass we visit only context sensitive arguments, and only those that aren't excluded, this + // time treating function expressions normally (which may cause previously inferred type arguments to be fixed + // as we construct types for contextually typed parameters) if (excludeArgument) { for (var i = 0; i < args.length; i++) { + // No need to check for omitted args and template expressions, their exlusion value is always undefined if (excludeArgument[i] === false) { var arg = args[i]; - var paramType = getTypeAtPosition(signature, arg.kind === 173 ? -1 : i); + var paramType = getTypeAtPosition(signature, i); inferTypes(context, checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType); } } @@ -14352,8 +16690,9 @@ var ts; for (var i = 0; i < typeParameters.length; i++) { var typeArgNode = typeArguments[i]; var typeArgument = getTypeFromTypeNodeOrHeritageClauseElement(typeArgNode); + // Do not push on this array! It has a preallocated length typeArgumentResultTypes[i] = typeArgument; - if (typeArgumentsAreAssignable) { + if (typeArgumentsAreAssignable /* so far */) { var constraint = getConstraintOfTypeParameter(typeParameters[i]); if (constraint) { typeArgumentsAreAssignable = checkTypeAssignableTo(typeArgument, constraint, reportErrors ? typeArgNode : undefined, ts.Diagnostics.Type_0_does_not_satisfy_the_constraint_1); @@ -14365,11 +16704,15 @@ var ts; function checkApplicableSignature(node, args, signature, relation, excludeArgument, reportErrors) { for (var i = 0; i < args.length; i++) { var arg = args[i]; - if (arg.kind !== 175) { - var paramType = getTypeAtPosition(signature, arg.kind === 173 ? -1 : i); - var argType = i === 0 && node.kind === 159 ? globalTemplateStringsArrayType : - arg.kind === 8 && !reportErrors ? getStringLiteralType(arg) : + if (arg.kind !== 175 /* OmittedExpression */) { + // Check spread elements against rest type (from arity check we know spread argument corresponds to a rest parameter) + var paramType = getTypeAtPosition(signature, i); + // A tagged template expression provides a special first argument, and string literals get string literal types + // unless we're reporting errors + var argType = i === 0 && node.kind === 159 /* TaggedTemplateExpression */ ? globalTemplateStringsArrayType : + arg.kind === 8 /* StringLiteral */ && !reportErrors ? getStringLiteralType(arg) : checkExpressionWithContextualType(arg, paramType, excludeArgument && excludeArgument[i] ? identityMapper : undefined); + // Use argument expression as error location when reporting errors if (!checkTypeRelatedTo(argType, paramType, relation, reportErrors ? arg : undefined, ts.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1)) { return false; } @@ -14377,12 +16720,19 @@ var ts; } return true; } + /** + * Returns the effective arguments for an expression that works like a function invocation. + * + * If 'node' is a CallExpression or a NewExpression, then its argument list is returned. + * If 'node' is a TaggedTemplateExpression, a new argument list is constructed from the substitution + * expressions, where the first element of the list is the template for error reporting purposes. + */ function getEffectiveCallArguments(node) { var args; - if (node.kind === 159) { + if (node.kind === 159 /* TaggedTemplateExpression */) { var template = node.template; args = [template]; - if (template.kind === 171) { + if (template.kind === 171 /* TemplateExpression */) { ts.forEach(template.templateSpans, function (span) { args.push(span.expression); }); @@ -14393,32 +16743,56 @@ var ts; } return args; } + /** + * In a 'super' call, type arguments are not provided within the CallExpression node itself. + * Instead, they must be fetched from the class declaration's base type node. + * + * If 'node' is a 'super' call (e.g. super(...), new super(...)), then we attempt to fetch + * the type arguments off the containing class's first heritage clause (if one exists). Note that if + * type arguments are supplied on the 'super' call, they are ignored (though this is syntactically incorrect). + * + * In all other cases, the call's explicit type arguments are returned. + */ function getEffectiveTypeArguments(callExpression) { - if (callExpression.expression.kind === 91) { - var containingClass = ts.getAncestor(callExpression, 201); + if (callExpression.expression.kind === 91 /* SuperKeyword */) { + var containingClass = ts.getAncestor(callExpression, 201 /* ClassDeclaration */); var baseClassTypeNode = containingClass && ts.getClassExtendsHeritageClauseElement(containingClass); return baseClassTypeNode && baseClassTypeNode.typeArguments; } else { + // Ordinary case - simple function invocation. return callExpression.typeArguments; } } function resolveCall(node, signatures, candidatesOutArray) { - var isTaggedTemplate = node.kind === 159; + var isTaggedTemplate = node.kind === 159 /* TaggedTemplateExpression */; var typeArguments; if (!isTaggedTemplate) { typeArguments = getEffectiveTypeArguments(node); - if (node.expression.kind !== 91) { + // We already perform checking on the type arguments on the class declaration itself. + if (node.expression.kind !== 91 /* SuperKeyword */) { ts.forEach(typeArguments, checkSourceElement); } } var candidates = candidatesOutArray || []; + // reorderCandidates fills up the candidates array directly reorderCandidates(signatures, candidates); if (!candidates.length) { error(node, ts.Diagnostics.Supplied_parameters_do_not_match_any_signature_of_call_target); return resolveErrorCall(node); } var args = getEffectiveCallArguments(node); + // The following applies to any value of 'excludeArgument[i]': + // - true: the argument at 'i' is susceptible to a one-time permanent contextual typing. + // - undefined: the argument at 'i' is *not* susceptible to permanent contextual typing. + // - false: the argument at 'i' *was* and *has been* permanently contextually typed. + // + // The idea is that we will perform type argument inference & assignability checking once + // without using the susceptible parameters that are functions, and once more for each of those + // parameters, contextually typing each as we go along. + // + // For a tagged template, then the first argument be 'undefined' if necessary + // because it represents a TemplateStringsArray. var excludeArgument; for (var i = isTaggedTemplate ? 1 : 0; i < args.length; i++) { if (isContextSensitive(args[i])) { @@ -14428,14 +16802,46 @@ var ts; excludeArgument[i] = true; } } + // The following variables are captured and modified by calls to chooseOverload. + // If overload resolution or type argument inference fails, we want to report the + // best error possible. The best error is one which says that an argument was not + // assignable to a parameter. This implies that everything else about the overload + // was fine. So if there is any overload that is only incorrect because of an + // argument, we will report an error on that one. + // + // function foo(s: string) {} + // function foo(n: number) {} // Report argument error on this overload + // function foo() {} + // foo(true); + // + // If none of the overloads even made it that far, there are two possibilities. + // There was a problem with type arguments for some overload, in which case + // report an error on that. Or none of the overloads even had correct arity, + // in which case give an arity error. + // + // function foo(x: T, y: T) {} // Report type argument inference error + // function foo() {} + // foo(0, true); + // var candidateForArgumentError; var candidateForTypeArgumentError; var resultOfFailedInference; var result; + // Section 4.12.1: + // if the candidate list contains one or more signatures for which the type of each argument + // expression is a subtype of each corresponding parameter type, the return type of the first + // of those signatures becomes the return type of the function call. + // Otherwise, the return type of the first signature in the candidate list becomes the return + // type of the function call. + // + // Whether the call is an error is determined by assignability of the arguments. The subtype pass + // is just important for choosing the best signature. So in the case where there is only one + // signature, the subtype pass is useless. So skipping it is an optimization. if (candidates.length > 1) { result = chooseOverload(candidates, subtypeRelation); } if (!result) { + // Reinitialize these pointers for round two candidateForArgumentError = undefined; candidateForTypeArgumentError = undefined; resultOfFailedInference = undefined; @@ -14444,7 +16850,16 @@ var ts; if (result) { return result; } + // No signatures were applicable. Now report errors based on the last applicable signature with + // no arguments excluded from assignability checks. + // If candidate is undefined, it means that no candidates had a suitable arity. In that case, + // skip the checkApplicableSignature check. if (candidateForArgumentError) { + // excludeArgument is undefined, in this case also equivalent to [undefined, undefined, ...] + // The importance of excludeArgument is to prevent us from typing function expression parameters + // in arguments too early. If possible, we'd like to only type them once we know the correct + // overload. However, this matters for the case where the call is correct. When the call is + // an error, we don't need to exclude any arguments, although it would cause no harm to do so. checkApplicableSignature(node, args, candidateForArgumentError, assignableRelation, undefined, true); } else if (candidateForTypeArgumentError) { @@ -14462,6 +16877,11 @@ var ts; else { error(node, ts.Diagnostics.Supplied_parameters_do_not_match_any_signature_of_call_target); } + // No signature was applicable. We have already reported the errors for the invalid signature. + // If this is a type resolution session, e.g. Language Service, try to get better information that anySignature. + // Pick the first candidate that matches the arity. This way we can get a contextual type for cases like: + // declare function f(a: { xa: number; xb: number; }); + // f({ | if (!produceDiagnostics) { for (var _i = 0; _i < candidates.length; _i++) { var candidate = candidates[_i]; @@ -14509,6 +16929,11 @@ var ts; } excludeArgument[index] = false; } + // A post-mortem of this iteration of the loop. The signature was not applicable, + // so we want to track it as a candidate for reporting an error. If the candidate + // had no type parameters, or had no issues related to type arguments, we can + // report an error based on the arguments. If there was an issue with type + // arguments, then we can only report an error based on the type arguments. if (originalCandidate.typeParameters) { var instantiatedCandidate = candidate; if (typeArgumentsAreValid) { @@ -14530,26 +16955,41 @@ var ts; } } function resolveCallExpression(node, candidatesOutArray) { - if (node.expression.kind === 91) { + if (node.expression.kind === 91 /* SuperKeyword */) { var superType = checkSuperExpression(node.expression); if (superType !== unknownType) { - return resolveCall(node, getSignaturesOfType(superType, 1), candidatesOutArray); + return resolveCall(node, getSignaturesOfType(superType, 1 /* Construct */), candidatesOutArray); } return resolveUntypedCall(node); } var funcType = checkExpression(node.expression); var apparentType = getApparentType(funcType); if (apparentType === unknownType) { + // Another error has already been reported return resolveErrorCall(node); } - var callSignatures = getSignaturesOfType(apparentType, 0); - var constructSignatures = getSignaturesOfType(apparentType, 1); - if (funcType === anyType || (!callSignatures.length && !constructSignatures.length && !(funcType.flags & 16384) && isTypeAssignableTo(funcType, globalFunctionType))) { + // Technically, this signatures list may be incomplete. We are taking the apparent type, + // but we are not including call signatures that may have been added to the Object or + // Function interface, since they have none by default. This is a bit of a leap of faith + // that the user will not add any. + var callSignatures = getSignaturesOfType(apparentType, 0 /* Call */); + var constructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */); + // TS 1.0 spec: 4.12 + // If FuncExpr is of type Any, or of an object type that has no call or construct signatures + // but is a subtype of the Function interface, the call is an untyped function call. In an + // untyped function call no TypeArgs are permitted, Args can be any argument list, no contextual + // types are provided for the argument expressions, and the result is always of type Any. + // We exclude union types because we may have a union of function types that happen to have + // no common signatures. + if (funcType === anyType || (!callSignatures.length && !constructSignatures.length && !(funcType.flags & 16384 /* Union */) && isTypeAssignableTo(funcType, globalFunctionType))) { if (node.typeArguments) { error(node, ts.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); } return resolveUntypedCall(node); } + // If FuncExpr's apparent type(section 3.8.1) is a function type, the call is a typed function call. + // TypeScript employs overload resolution in typed function calls in order to support functions + // with multiple call signatures. if (!callSignatures.length) { if (constructSignatures.length) { error(node, ts.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); @@ -14562,28 +17002,45 @@ var ts; return resolveCall(node, callSignatures, candidatesOutArray); } function resolveNewExpression(node, candidatesOutArray) { - if (node.arguments && languageVersion < 2) { + if (node.arguments && languageVersion < 2 /* ES6 */) { var spreadIndex = getSpreadArgumentIndex(node.arguments); if (spreadIndex >= 0) { error(node.arguments[spreadIndex], ts.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_6_and_higher); } } var expressionType = checkExpression(node.expression); + // TS 1.0 spec: 4.11 + // If ConstructExpr is of type Any, Args can be any argument + // list and the result of the operation is of type Any. if (expressionType === anyType) { if (node.typeArguments) { error(node, ts.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); } return resolveUntypedCall(node); } + // If ConstructExpr's apparent type(section 3.8.1) is an object type with one or + // more construct signatures, the expression is processed in the same manner as a + // function call, but using the construct signatures as the initial set of candidate + // signatures for overload resolution.The result type of the function call becomes + // the result type of the operation. expressionType = getApparentType(expressionType); if (expressionType === unknownType) { + // Another error has already been reported return resolveErrorCall(node); } - var constructSignatures = getSignaturesOfType(expressionType, 1); + // Technically, this signatures list may be incomplete. We are taking the apparent type, + // but we are not including construct signatures that may have been added to the Object or + // Function interface, since they have none by default. This is a bit of a leap of faith + // that the user will not add any. + var constructSignatures = getSignaturesOfType(expressionType, 1 /* Construct */); if (constructSignatures.length) { return resolveCall(node, constructSignatures, candidatesOutArray); } - var callSignatures = getSignaturesOfType(expressionType, 0); + // If ConstructExpr's apparent type is an object type with no construct signatures but + // one or more call signatures, the expression is processed as a function call. A compile-time + // error occurs if the result of the function call is not Void. The type of the result of the + // operation is Any. + var callSignatures = getSignaturesOfType(expressionType, 0 /* Call */); if (callSignatures.length) { var signature = resolveCall(node, callSignatures, candidatesOutArray); if (getReturnTypeOfSignature(signature) !== voidType) { @@ -14598,10 +17055,11 @@ var ts; var tagType = checkExpression(node.tag); var apparentType = getApparentType(tagType); if (apparentType === unknownType) { + // Another error has already been reported return resolveErrorCall(node); } - var callSignatures = getSignaturesOfType(apparentType, 0); - if (tagType === anyType || (!callSignatures.length && !(tagType.flags & 16384) && isTypeAssignableTo(tagType, globalFunctionType))) { + var callSignatures = getSignaturesOfType(apparentType, 0 /* Call */); + if (tagType === anyType || (!callSignatures.length && !(tagType.flags & 16384 /* Union */) && isTypeAssignableTo(tagType, globalFunctionType))) { return resolveUntypedCall(node); } if (!callSignatures.length) { @@ -14610,17 +17068,23 @@ var ts; } return resolveCall(node, callSignatures, candidatesOutArray); } + // candidatesOutArray is passed by signature help in the language service, and collectCandidates + // must fill it up with the appropriate candidate signatures function getResolvedSignature(node, candidatesOutArray) { var links = getNodeLinks(node); + // If getResolvedSignature has already been called, we will have cached the resolvedSignature. + // However, it is possible that either candidatesOutArray was not passed in the first time, + // or that a different candidatesOutArray was passed in. Therefore, we need to redo the work + // to correctly fill the candidatesOutArray. if (!links.resolvedSignature || candidatesOutArray) { links.resolvedSignature = anySignature; - if (node.kind === 157) { + if (node.kind === 157 /* CallExpression */) { links.resolvedSignature = resolveCallExpression(node, candidatesOutArray); } - else if (node.kind === 158) { + else if (node.kind === 158 /* NewExpression */) { links.resolvedSignature = resolveNewExpression(node, candidatesOutArray); } - else if (node.kind === 159) { + else if (node.kind === 159 /* TaggedTemplateExpression */) { links.resolvedSignature = resolveTaggedTemplateExpression(node, candidatesOutArray); } else { @@ -14630,17 +17094,19 @@ var ts; return links.resolvedSignature; } function checkCallExpression(node) { + // Grammar checking; stop grammar-checking if checkGrammarTypeArguments return true checkGrammarTypeArguments(node, node.typeArguments) || checkGrammarArguments(node, node.arguments); var signature = getResolvedSignature(node); - if (node.expression.kind === 91) { + if (node.expression.kind === 91 /* SuperKeyword */) { return voidType; } - if (node.kind === 158) { + if (node.kind === 158 /* NewExpression */) { var declaration = signature.declaration; if (declaration && - declaration.kind !== 135 && - declaration.kind !== 139 && - declaration.kind !== 143) { + declaration.kind !== 135 /* Constructor */ && + declaration.kind !== 139 /* ConstructSignature */ && + declaration.kind !== 143 /* ConstructorType */) { + // When resolved signature is a call signature (and not a construct signature) the result type is any if (compilerOptions.noImplicitAny) { error(node, ts.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); } @@ -14664,14 +17130,9 @@ var ts; return targetType; } function getTypeAtPosition(signature, pos) { - if (pos >= 0) { - return signature.hasRestParameter ? - pos < signature.parameters.length - 1 ? getTypeOfSymbol(signature.parameters[pos]) : getRestTypeOfSignature(signature) : - pos < signature.parameters.length ? getTypeOfSymbol(signature.parameters[pos]) : anyType; - } return signature.hasRestParameter ? - getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]) : - anyArrayType; + pos < signature.parameters.length - 1 ? getTypeOfSymbol(signature.parameters[pos]) : getRestTypeOfSignature(signature) : + pos < signature.parameters.length ? getTypeOfSymbol(signature.parameters[pos]) : anyType; } function assignContextualParameterTypes(signature, context, mapper) { var len = signature.parameters.length - (signature.hasRestParameter ? 1 : 0); @@ -14692,14 +17153,17 @@ var ts; return unknownType; } var type; - if (func.body.kind !== 179) { + if (func.body.kind !== 179 /* Block */) { type = checkExpressionCached(func.body, contextualMapper); } else { + // Aggregate the types of expressions within all the return statements. var types = checkAndAggregateReturnExpressionTypes(func.body, contextualMapper); if (types.length === 0) { return voidType; } + // When return statements are contextually typed we allow the return type to be a union type. Otherwise we require the + // return expressions to have a best common supertype. type = contextualSignature ? getUnionType(types) : getCommonSupertype(types); if (!type) { error(func, ts.Diagnostics.No_best_common_type_exists_among_return_expressions); @@ -14711,6 +17175,7 @@ var ts; } return getWidenedType(type); } + /// Returns a set of types relating to every return expression relating to a function block. function checkAndAggregateReturnExpressionTypes(body, contextualMapper) { var aggregatedTypes = []; ts.forEachReturnStatement(body, function (returnStatement) { @@ -14730,44 +17195,61 @@ var ts; }); } function bodyContainsSingleThrowStatement(body) { - return (body.statements.length === 1) && (body.statements[0].kind === 195); + return (body.statements.length === 1) && (body.statements[0].kind === 195 /* ThrowStatement */); } + // TypeScript Specification 1.0 (6.3) - July 2014 + // An explicitly typed function whose return type isn't the Void or the Any type + // must have at least one return statement somewhere in its body. + // An exception to this rule is if the function implementation consists of a single 'throw' statement. function checkIfNonVoidFunctionHasReturnExpressionsOrSingleThrowStatment(func, returnType) { if (!produceDiagnostics) { return; } + // Functions that return 'void' or 'any' don't need any return expressions. if (returnType === voidType || returnType === anyType) { return; } - if (ts.nodeIsMissing(func.body) || func.body.kind !== 179) { + // If all we have is a function signature, or an arrow function with an expression body, then there is nothing to check. + if (ts.nodeIsMissing(func.body) || func.body.kind !== 179 /* Block */) { return; } var bodyBlock = func.body; + // Ensure the body has at least one return expression. if (bodyContainsAReturnStatement(bodyBlock)) { return; } + // If there are no return expressions, then we need to check if + // the function body consists solely of a throw statement; + // this is to make an exception for unimplemented functions. if (bodyContainsSingleThrowStatement(bodyBlock)) { return; } + // This function does not conform to the specification. error(func.type, ts.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_or_consist_of_a_single_throw_statement); } function checkFunctionExpressionOrObjectLiteralMethod(node, contextualMapper) { - ts.Debug.assert(node.kind !== 134 || ts.isObjectLiteralMethod(node)); + ts.Debug.assert(node.kind !== 134 /* MethodDeclaration */ || ts.isObjectLiteralMethod(node)); + // Grammar checking var hasGrammarError = checkGrammarFunctionLikeDeclaration(node); - if (!hasGrammarError && node.kind === 162) { + if (!hasGrammarError && node.kind === 162 /* FunctionExpression */) { checkGrammarFunctionName(node.name) || checkGrammarForGenerator(node); } + // The identityMapper object is used to indicate that function expressions are wildcards if (contextualMapper === identityMapper && isContextSensitive(node)) { return anyFunctionType; } var links = getNodeLinks(node); var type = getTypeOfSymbol(node.symbol); - if (!(links.flags & 64)) { + // Check if function expression is contextually typed and assign parameter types if so + if (!(links.flags & 64 /* ContextChecked */)) { var contextualSignature = getContextualSignature(node); - if (!(links.flags & 64)) { - links.flags |= 64; + // If a type check is started at a function expression that is an argument of a function call, obtaining the + // contextual type may recursively get back to here during overload resolution of the call. If so, we will have + // already assigned contextual types. + if (!(links.flags & 64 /* ContextChecked */)) { + links.flags |= 64 /* ContextChecked */; if (contextualSignature) { - var signature = getSignaturesOfType(type, 0)[0]; + var signature = getSignaturesOfType(type, 0 /* Call */)[0]; if (isContextSensitive(node)) { assignContextualParameterTypes(signature, contextualSignature, contextualMapper || identityMapper); } @@ -14782,19 +17264,19 @@ var ts; checkSignatureDeclaration(node); } } - if (produceDiagnostics && node.kind !== 134 && node.kind !== 133) { + if (produceDiagnostics && node.kind !== 134 /* MethodDeclaration */ && node.kind !== 133 /* MethodSignature */) { checkCollisionWithCapturedSuperVariable(node, node.name); checkCollisionWithCapturedThisVariable(node, node.name); } return type; } function checkFunctionExpressionOrObjectLiteralMethodBody(node) { - ts.Debug.assert(node.kind !== 134 || ts.isObjectLiteralMethod(node)); + ts.Debug.assert(node.kind !== 134 /* MethodDeclaration */ || ts.isObjectLiteralMethod(node)); if (node.type) { checkIfNonVoidFunctionHasReturnExpressionsOrSingleThrowStatment(node, getTypeFromTypeNodeOrHeritageClauseElement(node.type)); } if (node.body) { - if (node.body.kind === 179) { + if (node.body.kind === 179 /* Block */) { checkSourceElement(node.body); } else { @@ -14807,7 +17289,7 @@ var ts; } } function checkArithmeticOperandType(operand, type, diagnostic) { - if (!allConstituentTypesHaveKind(type, 1 | 132)) { + if (!allConstituentTypesHaveKind(type, 1 /* Any */ | 132 /* NumberLike */)) { error(operand, diagnostic); return false; } @@ -14816,21 +17298,37 @@ var ts; function checkReferenceExpression(n, invalidReferenceMessage, constantVariableMessage) { function findSymbol(n) { var symbol = getNodeLinks(n).resolvedSymbol; + // Because we got the symbol from the resolvedSymbol property, it might be of kind + // SymbolFlags.ExportValue. In this case it is necessary to get the actual export + // symbol, which will have the correct flags set on it. return symbol && getExportSymbolOfValueSymbolIfExported(symbol); } function isReferenceOrErrorExpression(n) { + // TypeScript 1.0 spec (April 2014): + // Expressions are classified as values or references. + // References are the subset of expressions that are permitted as the target of an assignment. + // Specifically, references are combinations of identifiers(section 4.3), parentheses(section 4.7), + // and property accesses(section 4.10). + // All other expression constructs described in this chapter are classified as values. switch (n.kind) { - case 65: { + case 65 /* Identifier */: { var symbol = findSymbol(n); - return !symbol || symbol === unknownSymbol || symbol === argumentsSymbol || (symbol.flags & 3) !== 0; + // TypeScript 1.0 spec (April 2014): 4.3 + // An identifier expression that references a variable or parameter is classified as a reference. + // An identifier expression that references any other kind of entity is classified as a value(and therefore cannot be the target of an assignment). + return !symbol || symbol === unknownSymbol || symbol === argumentsSymbol || (symbol.flags & 3 /* Variable */) !== 0; } - case 155: { + case 155 /* PropertyAccessExpression */: { var symbol = findSymbol(n); - return !symbol || symbol === unknownSymbol || (symbol.flags & ~8) !== 0; + // TypeScript 1.0 spec (April 2014): 4.10 + // A property access expression is always classified as a reference. + // NOTE (not in spec): assignment to enum members should not be allowed + return !symbol || symbol === unknownSymbol || (symbol.flags & ~8 /* EnumMember */) !== 0; } - case 156: + case 156 /* ElementAccessExpression */: + // old compiler doesn't check indexed assess return true; - case 161: + case 161 /* ParenthesizedExpression */: return isReferenceOrErrorExpression(n.expression); default: return false; @@ -14838,22 +17336,22 @@ var ts; } function isConstVariableReference(n) { switch (n.kind) { - case 65: - case 155: { + case 65 /* Identifier */: + case 155 /* PropertyAccessExpression */: { var symbol = findSymbol(n); - return symbol && (symbol.flags & 3) !== 0 && (getDeclarationFlagsFromSymbol(symbol) & 8192) !== 0; + return symbol && (symbol.flags & 3 /* Variable */) !== 0 && (getDeclarationFlagsFromSymbol(symbol) & 8192 /* Const */) !== 0; } - case 156: { + case 156 /* ElementAccessExpression */: { var index = n.argumentExpression; var symbol = findSymbol(n.expression); - if (symbol && index && index.kind === 8) { + if (symbol && index && index.kind === 8 /* StringLiteral */) { var name_7 = index.text; var prop = getPropertyOfType(getTypeOfSymbol(symbol), name_7); - return prop && (prop.flags & 3) !== 0 && (getDeclarationFlagsFromSymbol(prop) & 8192) !== 0; + return prop && (prop.flags & 3 /* Variable */) !== 0 && (getDeclarationFlagsFromSymbol(prop) & 8192 /* Const */) !== 0; } return false; } - case 161: + case 161 /* ParenthesizedExpression */: return isConstVariableReference(n.expression); default: return false; @@ -14870,7 +17368,10 @@ var ts; return true; } function checkDeleteExpression(node) { - if (node.parserContextFlags & 1 && node.expression.kind === 65) { + // Grammar checking + if (node.parserContextFlags & 1 /* StrictMode */ && node.expression.kind === 65 /* Identifier */) { + // When a delete operator occurs within strict mode code, a SyntaxError is thrown if its + // UnaryExpression is a direct reference to a variable, function argument, or function name grammarErrorOnNode(node.expression, ts.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode); } var operandType = checkExpression(node.expression); @@ -14885,24 +17386,29 @@ var ts; return undefinedType; } function checkPrefixUnaryExpression(node) { - if ((node.operator === 38 || node.operator === 39)) { + // Grammar checking + // The identifier eval or arguments may not appear as the LeftHandSideExpression of an + // Assignment operator(11.13) or of a PostfixExpression(11.3) or as the UnaryExpression + // operated upon by a Prefix Increment(11.4.4) or a Prefix Decrement(11.4.5) operator + if ((node.operator === 38 /* PlusPlusToken */ || node.operator === 39 /* MinusMinusToken */)) { checkGrammarEvalOrArgumentsInStrictMode(node, node.operand); } var operandType = checkExpression(node.operand); switch (node.operator) { - case 33: - case 34: - case 47: - if (someConstituentTypeHasKind(operandType, 1048576)) { + case 33 /* PlusToken */: + case 34 /* MinusToken */: + case 47 /* TildeToken */: + if (someConstituentTypeHasKind(operandType, 1048576 /* ESSymbol */)) { error(node.operand, ts.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, ts.tokenToString(node.operator)); } return numberType; - case 46: + case 46 /* ExclamationToken */: return booleanType; - case 38: - case 39: + case 38 /* PlusPlusToken */: + case 39 /* MinusMinusToken */: var ok = checkArithmeticOperandType(node.operand, operandType, ts.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type); if (ok) { + // run check only if former checks succeeded to avoid reporting cascading errors checkReferenceExpression(node.operand, ts.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_property_or_indexer, ts.Diagnostics.The_operand_of_an_increment_or_decrement_operator_cannot_be_a_constant); } return numberType; @@ -14910,19 +17416,26 @@ var ts; return unknownType; } function checkPostfixUnaryExpression(node) { + // Grammar checking + // The identifier eval or arguments may not appear as the LeftHandSideExpression of an + // Assignment operator(11.13) or of a PostfixExpression(11.3) or as the UnaryExpression + // operated upon by a Prefix Increment(11.4.4) or a Prefix Decrement(11.4.5) operator. checkGrammarEvalOrArgumentsInStrictMode(node, node.operand); var operandType = checkExpression(node.operand); var ok = checkArithmeticOperandType(node.operand, operandType, ts.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type); if (ok) { + // run check only if former checks succeeded to avoid reporting cascading errors checkReferenceExpression(node.operand, ts.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_property_or_indexer, ts.Diagnostics.The_operand_of_an_increment_or_decrement_operator_cannot_be_a_constant); } return numberType; } + // Just like isTypeOfKind below, except that it returns true if *any* constituent + // has this kind. function someConstituentTypeHasKind(type, kind) { if (type.flags & kind) { return true; } - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { var types = type.types; for (var _i = 0; _i < types.length; _i++) { var current = types[_i]; @@ -14934,11 +17447,12 @@ var ts; } return false; } + // Return true if type has the given flags, or is a union type composed of types that all have those flags. function allConstituentTypesHaveKind(type, kind) { if (type.flags & kind) { return true; } - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { var types = type.types; for (var _i = 0; _i < types.length; _i++) { var current = types[_i]; @@ -14951,25 +17465,35 @@ var ts; return false; } function isConstEnumObjectType(type) { - return type.flags & (48128 | 32768) && type.symbol && isConstEnumSymbol(type.symbol); + return type.flags & (48128 /* ObjectType */ | 32768 /* Anonymous */) && type.symbol && isConstEnumSymbol(type.symbol); } function isConstEnumSymbol(symbol) { - return (symbol.flags & 128) !== 0; + return (symbol.flags & 128 /* ConstEnum */) !== 0; } function checkInstanceOfExpression(node, leftType, rightType) { - if (allConstituentTypesHaveKind(leftType, 1049086)) { + // TypeScript 1.0 spec (April 2014): 4.15.4 + // The instanceof operator requires the left operand to be of type Any, an object type, or a type parameter type, + // and the right operand to be of type Any or a subtype of the 'Function' interface type. + // The result is always of the Boolean primitive type. + // NOTE: do not raise error if leftType is unknown as related error was already reported + if (allConstituentTypesHaveKind(leftType, 1049086 /* Primitive */)) { error(node.left, ts.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); } - if (!(rightType.flags & 1 || isTypeSubtypeOf(rightType, globalFunctionType))) { + // NOTE: do not raise error if right is unknown as related error was already reported + if (!(rightType.flags & 1 /* Any */ || isTypeSubtypeOf(rightType, globalFunctionType))) { error(node.right, ts.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type); } return booleanType; } function checkInExpression(node, leftType, rightType) { - if (!allConstituentTypesHaveKind(leftType, 1 | 258 | 132 | 1048576)) { + // TypeScript 1.0 spec (April 2014): 4.15.5 + // The in operator requires the left operand to be of type Any, the String primitive type, or the Number primitive type, + // and the right operand to be of type Any, an object type, or a type parameter type. + // The result is always of the Boolean primitive type. + if (!allConstituentTypesHaveKind(leftType, 1 /* Any */ | 258 /* StringLike */ | 132 /* NumberLike */ | 1048576 /* ESSymbol */)) { error(node.left, ts.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol); } - if (!allConstituentTypesHaveKind(rightType, 1 | 48128 | 512)) { + if (!allConstituentTypesHaveKind(rightType, 1 /* Any */ | 48128 /* ObjectType */ | 512 /* TypeParameter */)) { error(node.right, ts.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); } return booleanType; @@ -14978,12 +17502,13 @@ var ts; var properties = node.properties; for (var _i = 0; _i < properties.length; _i++) { var p = properties[_i]; - if (p.kind === 224 || p.kind === 225) { + if (p.kind === 224 /* PropertyAssignment */ || p.kind === 225 /* ShorthandPropertyAssignment */) { + // TODO(andersh): Computed property support var name_8 = p.name; - var type = sourceType.flags & 1 ? sourceType : + var type = sourceType.flags & 1 /* Any */ ? sourceType : getTypeOfPropertyOfType(sourceType, name_8.text) || - isNumericLiteralName(name_8.text) && getIndexTypeOfType(sourceType, 1) || - getIndexTypeOfType(sourceType, 0); + isNumericLiteralName(name_8.text) && getIndexTypeOfType(sourceType, 1 /* Number */) || + getIndexTypeOfType(sourceType, 0 /* String */); if (type) { checkDestructuringAssignment(p.initializer || name_8, type); } @@ -14998,19 +17523,20 @@ var ts; return sourceType; } function checkArrayLiteralAssignment(node, sourceType, contextualMapper) { - if (!isArrayLikeType(sourceType)) { - error(node, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(sourceType)); - return sourceType; - } + // This elementType will be used if the specific property corresponding to this index is not + // present (aka the tuple element property). This call also checks that the parentType is in + // fact an iterable or array (depending on target language). + var elementType = checkIteratedTypeOrElementType(sourceType, node, false); var elements = node.elements; for (var i = 0; i < elements.length; i++) { var e = elements[i]; - if (e.kind !== 175) { - if (e.kind !== 173) { + if (e.kind !== 175 /* OmittedExpression */) { + if (e.kind !== 173 /* SpreadElementExpression */) { var propName = "" + i; - var type = sourceType.flags & 1 ? sourceType : - isTupleLikeType(sourceType) ? getTypeOfPropertyOfType(sourceType, propName) : - getIndexTypeOfType(sourceType, 1); + var type = sourceType.flags & 1 /* Any */ ? sourceType : + isTupleLikeType(sourceType) + ? getTypeOfPropertyOfType(sourceType, propName) + : elementType; if (type) { checkDestructuringAssignment(e, type, contextualMapper); } @@ -15025,7 +17551,7 @@ var ts; } else { if (i === elements.length - 1) { - checkReferenceAssignment(e.expression, sourceType, contextualMapper); + checkReferenceAssignment(e.expression, createArrayType(elementType), contextualMapper); } else { error(e, ts.Diagnostics.A_rest_element_must_be_last_in_an_array_destructuring_pattern); @@ -15036,14 +17562,14 @@ var ts; return sourceType; } function checkDestructuringAssignment(target, sourceType, contextualMapper) { - if (target.kind === 169 && target.operatorToken.kind === 53) { + if (target.kind === 169 /* BinaryExpression */ && target.operatorToken.kind === 53 /* EqualsToken */) { checkBinaryExpression(target, contextualMapper); target = target.left; } - if (target.kind === 154) { + if (target.kind === 154 /* ObjectLiteralExpression */) { return checkObjectLiteralAssignment(target, sourceType, contextualMapper); } - if (target.kind === 153) { + if (target.kind === 153 /* ArrayLiteralExpression */) { return checkArrayLiteralAssignment(target, sourceType, contextualMapper); } return checkReferenceAssignment(target, sourceType, contextualMapper); @@ -15056,47 +17582,59 @@ var ts; return sourceType; } function checkBinaryExpression(node, contextualMapper) { + // Grammar checking if (ts.isLeftHandSideExpression(node.left) && ts.isAssignmentOperator(node.operatorToken.kind)) { + // ECMA 262 (Annex C) The identifier eval or arguments may not appear as the LeftHandSideExpression of an + // Assignment operator(11.13) or of a PostfixExpression(11.3) checkGrammarEvalOrArgumentsInStrictMode(node, node.left); } var operator = node.operatorToken.kind; - if (operator === 53 && (node.left.kind === 154 || node.left.kind === 153)) { + if (operator === 53 /* EqualsToken */ && (node.left.kind === 154 /* ObjectLiteralExpression */ || node.left.kind === 153 /* ArrayLiteralExpression */)) { return checkDestructuringAssignment(node.left, checkExpression(node.right, contextualMapper), contextualMapper); } var leftType = checkExpression(node.left, contextualMapper); var rightType = checkExpression(node.right, contextualMapper); switch (operator) { - case 35: - case 56: - case 36: - case 57: - case 37: - case 58: - case 34: - case 55: - case 40: - case 59: - case 41: - case 60: - case 42: - case 61: - case 44: - case 63: - case 45: - case 64: - case 43: - case 62: - if (leftType.flags & (32 | 64)) + case 35 /* AsteriskToken */: + case 56 /* AsteriskEqualsToken */: + case 36 /* SlashToken */: + case 57 /* SlashEqualsToken */: + case 37 /* PercentToken */: + case 58 /* PercentEqualsToken */: + case 34 /* MinusToken */: + case 55 /* MinusEqualsToken */: + case 40 /* LessThanLessThanToken */: + case 59 /* LessThanLessThanEqualsToken */: + case 41 /* GreaterThanGreaterThanToken */: + case 60 /* GreaterThanGreaterThanEqualsToken */: + case 42 /* GreaterThanGreaterThanGreaterThanToken */: + case 61 /* GreaterThanGreaterThanGreaterThanEqualsToken */: + case 44 /* BarToken */: + case 63 /* BarEqualsToken */: + case 45 /* CaretToken */: + case 64 /* CaretEqualsToken */: + case 43 /* AmpersandToken */: + case 62 /* AmpersandEqualsToken */: + // TypeScript 1.0 spec (April 2014): 4.15.1 + // These operators require their operands to be of type Any, the Number primitive type, + // or an enum type. Operands of an enum type are treated + // as having the primitive type Number. If one operand is the null or undefined value, + // it is treated as having the type of the other operand. + // The result is always of the Number primitive type. + if (leftType.flags & (32 /* Undefined */ | 64 /* Null */)) leftType = rightType; - if (rightType.flags & (32 | 64)) + if (rightType.flags & (32 /* Undefined */ | 64 /* Null */)) rightType = leftType; var suggestedOperator; - if ((leftType.flags & 8) && - (rightType.flags & 8) && + // if a user tries to apply a bitwise operator to 2 boolean operands + // try and return them a helpful suggestion + if ((leftType.flags & 8 /* Boolean */) && + (rightType.flags & 8 /* Boolean */) && (suggestedOperator = getSuggestedBooleanOperator(node.operatorToken.kind)) !== undefined) { error(node, ts.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, ts.tokenToString(node.operatorToken.kind), ts.tokenToString(suggestedOperator)); } else { + // otherwise just check each operand separately and report errors as normal var leftOk = checkArithmeticOperandType(node.left, leftType, ts.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type); var rightOk = checkArithmeticOperandType(node.right, rightType, ts.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type); if (leftOk && rightOk) { @@ -15104,23 +17642,33 @@ var ts; } } return numberType; - case 33: - case 54: - if (leftType.flags & (32 | 64)) + case 33 /* PlusToken */: + case 54 /* PlusEqualsToken */: + // TypeScript 1.0 spec (April 2014): 4.15.2 + // The binary + operator requires both operands to be of the Number primitive type or an enum type, + // or at least one of the operands to be of type Any or the String primitive type. + // If one operand is the null or undefined value, it is treated as having the type of the other operand. + if (leftType.flags & (32 /* Undefined */ | 64 /* Null */)) leftType = rightType; - if (rightType.flags & (32 | 64)) + if (rightType.flags & (32 /* Undefined */ | 64 /* Null */)) rightType = leftType; var resultType; - if (allConstituentTypesHaveKind(leftType, 132) && allConstituentTypesHaveKind(rightType, 132)) { + if (allConstituentTypesHaveKind(leftType, 132 /* NumberLike */) && allConstituentTypesHaveKind(rightType, 132 /* NumberLike */)) { + // Operands of an enum type are treated as having the primitive type Number. + // If both operands are of the Number primitive type, the result is of the Number primitive type. resultType = numberType; } else { - if (allConstituentTypesHaveKind(leftType, 258) || allConstituentTypesHaveKind(rightType, 258)) { + if (allConstituentTypesHaveKind(leftType, 258 /* StringLike */) || allConstituentTypesHaveKind(rightType, 258 /* StringLike */)) { + // If one or both operands are of the String primitive type, the result is of the String primitive type. resultType = stringType; } - else if (leftType.flags & 1 || rightType.flags & 1) { + else if (leftType.flags & 1 /* Any */ || rightType.flags & 1 /* Any */) { + // Otherwise, the result is of type Any. + // NOTE: unknown type here denotes error type. Old compiler treated this case as any type so do we. resultType = anyType; } + // Symbols are not allowed at all in arithmetic expressions if (resultType && !checkForDisallowedESSymbolOperand(operator)) { return resultType; } @@ -15129,42 +17677,44 @@ var ts; reportOperatorError(); return anyType; } - if (operator === 54) { + if (operator === 54 /* PlusEqualsToken */) { checkAssignmentOperator(resultType); } return resultType; - case 24: - case 25: - case 26: - case 27: + case 24 /* LessThanToken */: + case 25 /* GreaterThanToken */: + case 26 /* LessThanEqualsToken */: + case 27 /* GreaterThanEqualsToken */: if (!checkForDisallowedESSymbolOperand(operator)) { return booleanType; } - case 28: - case 29: - case 30: - case 31: + // Fall through + case 28 /* EqualsEqualsToken */: + case 29 /* ExclamationEqualsToken */: + case 30 /* EqualsEqualsEqualsToken */: + case 31 /* ExclamationEqualsEqualsToken */: if (!isTypeAssignableTo(leftType, rightType) && !isTypeAssignableTo(rightType, leftType)) { reportOperatorError(); } return booleanType; - case 87: + case 87 /* InstanceOfKeyword */: return checkInstanceOfExpression(node, leftType, rightType); - case 86: + case 86 /* InKeyword */: return checkInExpression(node, leftType, rightType); - case 48: + case 48 /* AmpersandAmpersandToken */: return rightType; - case 49: + case 49 /* BarBarToken */: return getUnionType([leftType, rightType]); - case 53: + case 53 /* EqualsToken */: checkAssignmentOperator(rightType); return rightType; - case 23: + case 23 /* CommaToken */: return rightType; } + // Return true if there was no error, false if there was an error. function checkForDisallowedESSymbolOperand(operator) { - var offendingSymbolOperand = someConstituentTypeHasKind(leftType, 1048576) ? node.left : - someConstituentTypeHasKind(rightType, 1048576) ? node.right : + var offendingSymbolOperand = someConstituentTypeHasKind(leftType, 1048576 /* ESSymbol */) ? node.left : + someConstituentTypeHasKind(rightType, 1048576 /* ESSymbol */) ? node.right : undefined; if (offendingSymbolOperand) { error(offendingSymbolOperand, ts.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, ts.tokenToString(operator)); @@ -15174,23 +17724,31 @@ var ts; } function getSuggestedBooleanOperator(operator) { switch (operator) { - case 44: - case 63: - return 49; - case 45: - case 64: - return 31; - case 43: - case 62: - return 48; + case 44 /* BarToken */: + case 63 /* BarEqualsToken */: + return 49 /* BarBarToken */; + case 45 /* CaretToken */: + case 64 /* CaretEqualsToken */: + return 31 /* ExclamationEqualsEqualsToken */; + case 43 /* AmpersandToken */: + case 62 /* AmpersandEqualsToken */: + return 48 /* AmpersandAmpersandToken */; default: return undefined; } } function checkAssignmentOperator(valueType) { - if (produceDiagnostics && operator >= 53 && operator <= 64) { + if (produceDiagnostics && operator >= 53 /* FirstAssignment */ && operator <= 64 /* LastAssignment */) { + // TypeScript 1.0 spec (April 2014): 4.17 + // An assignment of the form + // VarExpr = ValueExpr + // requires VarExpr to be classified as a reference + // A compound assignment furthermore requires VarExpr to be classified as a reference (section 4.1) + // and the type of the non - compound operation to be assignable to the type of VarExpr. var ok = checkReferenceExpression(node.left, ts.Diagnostics.Invalid_left_hand_side_of_assignment_expression, ts.Diagnostics.Left_hand_side_of_assignment_expression_cannot_be_a_constant); + // Use default messages if (ok) { + // to avoid cascading errors check assignability only if 'isReference' check succeeded and no errors were reported checkTypeAssignableTo(valueType, leftType, node.left, undefined); } } @@ -15200,7 +17758,8 @@ var ts; } } function checkYieldExpression(node) { - if (!(node.parserContextFlags & 4)) { + // Grammar checking + if (!(node.parserContextFlags & 4 /* Yield */)) { grammarErrorOnFirstToken(node, ts.Diagnostics.yield_expression_must_be_contained_within_a_generator_declaration); } else { @@ -15214,6 +17773,11 @@ var ts; return getUnionType([type1, type2]); } function checkTemplateExpression(node) { + // We just want to check each expressions, but we are unconcerned with + // the type of each expression, as any value may be coerced into a string. + // It is worth asking whether this is what we really want though. + // A place where we actually *are* concerned with the expressions' types are + // in tagged templates. ts.forEach(node.templateSpans, function (templateSpan) { checkExpression(templateSpan.expression); }); @@ -15234,14 +17798,21 @@ var ts; return links.resolvedType; } function checkPropertyAssignment(node, contextualMapper) { - if (node.name.kind === 127) { + // Do not use hasDynamicName here, because that returns false for well known symbols. + // We want to perform checkComputedPropertyName for all computed properties, including + // well known symbols. + if (node.name.kind === 127 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } return checkExpression(node.initializer, contextualMapper); } function checkObjectLiteralMethod(node, contextualMapper) { + // Grammar checking checkGrammarMethod(node); - if (node.name.kind === 127) { + // Do not use hasDynamicName here, because that returns false for well known symbols. + // We want to perform checkComputedPropertyName for all computed properties, including + // well known symbols. + if (node.name.kind === 127 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } var uninstantiatedType = checkFunctionExpressionOrObjectLiteralMethod(node, contextualMapper); @@ -15265,9 +17836,16 @@ var ts; function checkExpression(node, contextualMapper) { return checkExpressionOrQualifiedName(node, contextualMapper); } + // Checks an expression and returns its type. The contextualMapper parameter serves two purposes: When + // contextualMapper is not undefined and not equal to the identityMapper function object it indicates that the + // expression is being inferentially typed (section 4.12.2 in spec) and provides the type mapper to use in + // conjunction with the generic contextual type. When contextualMapper is equal to the identityMapper function + // object, it serves as an indicator that all contained function and arrow expressions should be considered to + // have the wildcard function type; this form of type check is used during overload resolution to exclude + // contextually typed function and arrow expressions in the initial phase. function checkExpressionOrQualifiedName(node, contextualMapper) { var type; - if (node.kind == 126) { + if (node.kind == 126 /* QualifiedName */) { type = checkQualifiedName(node); } else { @@ -15275,9 +17853,13 @@ var ts; type = instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, contextualMapper); } if (isConstEnumObjectType(type)) { - var ok = (node.parent.kind === 155 && node.parent.expression === node) || - (node.parent.kind === 156 && node.parent.expression === node) || - ((node.kind === 65 || node.kind === 126) && isInRightSideOfImportOrExportAssignment(node)); + // enum object type for const enums are only permitted in: + // - 'left' in property access + // - 'object' in indexed access + // - target in rhs of import statement + var ok = (node.parent.kind === 155 /* PropertyAccessExpression */ && node.parent.expression === node) || + (node.parent.kind === 156 /* ElementAccessExpression */ && node.parent.expression === node) || + ((node.kind === 65 /* Identifier */ || node.kind === 126 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node)); if (!ok) { error(node, ts.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment); } @@ -15285,78 +17867,81 @@ var ts; return type; } function checkNumericLiteral(node) { + // Grammar checking checkGrammarNumbericLiteral(node); return numberType; } function checkExpressionWorker(node, contextualMapper) { switch (node.kind) { - case 65: + case 65 /* Identifier */: return checkIdentifier(node); - case 93: + case 93 /* ThisKeyword */: return checkThisExpression(node); - case 91: + case 91 /* SuperKeyword */: return checkSuperExpression(node); - case 89: + case 89 /* NullKeyword */: return nullType; - case 95: - case 80: + case 95 /* TrueKeyword */: + case 80 /* FalseKeyword */: return booleanType; - case 7: + case 7 /* NumericLiteral */: return checkNumericLiteral(node); - case 171: + case 171 /* TemplateExpression */: return checkTemplateExpression(node); - case 8: - case 10: + case 8 /* StringLiteral */: + case 10 /* NoSubstitutionTemplateLiteral */: return stringType; - case 9: + case 9 /* RegularExpressionLiteral */: return globalRegExpType; - case 153: + case 153 /* ArrayLiteralExpression */: return checkArrayLiteral(node, contextualMapper); - case 154: + case 154 /* ObjectLiteralExpression */: return checkObjectLiteral(node, contextualMapper); - case 155: + case 155 /* PropertyAccessExpression */: return checkPropertyAccessExpression(node); - case 156: + case 156 /* ElementAccessExpression */: return checkIndexedAccess(node); - case 157: - case 158: + case 157 /* CallExpression */: + case 158 /* NewExpression */: return checkCallExpression(node); - case 159: + case 159 /* TaggedTemplateExpression */: return checkTaggedTemplateExpression(node); - case 160: + case 160 /* TypeAssertionExpression */: return checkTypeAssertion(node); - case 161: + case 161 /* ParenthesizedExpression */: return checkExpression(node.expression, contextualMapper); - case 174: + case 174 /* ClassExpression */: return checkClassExpression(node); - case 162: - case 163: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: return checkFunctionExpressionOrObjectLiteralMethod(node, contextualMapper); - case 165: + case 165 /* TypeOfExpression */: return checkTypeOfExpression(node); - case 164: + case 164 /* DeleteExpression */: return checkDeleteExpression(node); - case 166: + case 166 /* VoidExpression */: return checkVoidExpression(node); - case 167: + case 167 /* PrefixUnaryExpression */: return checkPrefixUnaryExpression(node); - case 168: + case 168 /* PostfixUnaryExpression */: return checkPostfixUnaryExpression(node); - case 169: + case 169 /* BinaryExpression */: return checkBinaryExpression(node, contextualMapper); - case 170: + case 170 /* ConditionalExpression */: return checkConditionalExpression(node, contextualMapper); - case 173: + case 173 /* SpreadElementExpression */: return checkSpreadElementExpression(node, contextualMapper); - case 175: + case 175 /* OmittedExpression */: return undefinedType; - case 172: + case 172 /* YieldExpression */: checkYieldExpression(node); return unknownType; } return unknownType; } + // DECLARATION AND STATEMENT TYPE CHECKING function checkTypeParameter(node) { + // Grammar Checking if (node.expression) { grammarErrorOnFirstToken(node.expression, ts.Diagnostics.Type_expected); } @@ -15365,6 +17950,7 @@ var ts; checkTypeParameterHasIllegalReferencesInConstraint(node); checkTypeNameIsReserved(node.name, ts.Diagnostics.Type_parameter_name_cannot_be_0); } + // TODO: Check multiple declarations are identical } function checkParameter(node) { // Grammar checking @@ -15373,12 +17959,13 @@ var ts; // or if its FunctionBody is strict code(11.1.5). // It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a // strict mode FunctionLikeDeclaration or FunctionExpression(13.1) + // Grammar checking checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarEvalOrArgumentsInStrictMode(node, node.name); checkVariableLikeDeclaration(node); var func = ts.getContainingFunction(node); - if (node.flags & 112) { + if (node.flags & 112 /* AccessibilityModifier */) { func = ts.getContainingFunction(node); - if (!(func.kind === 135 && ts.nodeIsPresent(func.body))) { + if (!(func.kind === 135 /* Constructor */ && ts.nodeIsPresent(func.body))) { error(node, ts.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); } } @@ -15392,12 +17979,13 @@ var ts; } } function checkSignatureDeclaration(node) { - if (node.kind === 140) { + // Grammar checking + if (node.kind === 140 /* IndexSignature */) { checkGrammarIndexSignature(node); } - else if (node.kind === 142 || node.kind === 200 || node.kind === 143 || - node.kind === 138 || node.kind === 135 || - node.kind === 139) { + else if (node.kind === 142 /* FunctionType */ || node.kind === 200 /* FunctionDeclaration */ || node.kind === 143 /* ConstructorType */ || + node.kind === 138 /* CallSignature */ || node.kind === 135 /* Constructor */ || + node.kind === 139 /* ConstructSignature */) { checkGrammarFunctionLikeDeclaration(node); } checkTypeParameters(node.typeParameters); @@ -15409,10 +17997,10 @@ var ts; checkCollisionWithArgumentsInGeneratedCode(node); if (compilerOptions.noImplicitAny && !node.type) { switch (node.kind) { - case 139: + case 139 /* ConstructSignature */: error(node, ts.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; - case 138: + case 138 /* CallSignature */: error(node, ts.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; } @@ -15421,12 +18009,17 @@ var ts; checkSpecializedSignatureDeclaration(node); } function checkTypeForDuplicateIndexSignatures(node) { - if (node.kind === 202) { + if (node.kind === 202 /* InterfaceDeclaration */) { var nodeSymbol = getSymbolOfNode(node); + // in case of merging interface declaration it is possible that we'll enter this check procedure several times for every declaration + // to prevent this run check only for the first declaration of a given kind if (nodeSymbol.declarations.length > 0 && nodeSymbol.declarations[0] !== node) { return; } } + // TypeScript 1.0 spec (April 2014) + // 3.7.4: An object type can contain at most one string index signature and one numeric index signature. + // 8.5: A class declaration can have at most one string index member declaration and one numeric index member declaration var indexSymbol = getIndexSymbol(getSymbolOfNode(node)); if (indexSymbol) { var seenNumericIndexer = false; @@ -15436,7 +18029,7 @@ var ts; var declaration = decl; if (declaration.parameters.length === 1 && declaration.parameters[0].type) { switch (declaration.parameters[0].type.kind) { - case 121: + case 121 /* StringKeyword */: if (!seenStringIndexer) { seenStringIndexer = true; } @@ -15444,7 +18037,7 @@ var ts; error(declaration, ts.Diagnostics.Duplicate_string_index_signature); } break; - case 119: + case 119 /* NumberKeyword */: if (!seenNumericIndexer) { seenNumericIndexer = true; } @@ -15458,22 +18051,29 @@ var ts; } } function checkPropertyDeclaration(node) { + // Grammar checking checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarProperty(node) || checkGrammarComputedPropertyName(node.name); checkVariableLikeDeclaration(node); } function checkMethodDeclaration(node) { + // Grammar checking checkGrammarMethod(node) || checkGrammarComputedPropertyName(node.name); + // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration checkFunctionLikeDeclaration(node); } function checkConstructorDeclaration(node) { + // Grammar check on signature of constructor and modifier of the constructor is done in checkSignatureDeclaration function. checkSignatureDeclaration(node); + // Grammar check for checking only related to constructoDeclaration checkGrammarConstructorTypeParameters(node) || checkGrammarConstructorTypeAnnotation(node); checkSourceElement(node.body); var symbol = getSymbolOfNode(node); var firstDeclaration = ts.getDeclarationOfKind(symbol, node.kind); + // Only type check the symbol once if (node === firstDeclaration) { checkFunctionOrConstructorSymbol(symbol); } + // exit early in the case of signature - super checks are not relevant to them if (ts.nodeIsMissing(node.body)) { return; } @@ -15481,43 +18081,51 @@ var ts; return; } function isSuperCallExpression(n) { - return n.kind === 157 && n.expression.kind === 91; + return n.kind === 157 /* CallExpression */ && n.expression.kind === 91 /* SuperKeyword */; } function containsSuperCall(n) { if (isSuperCallExpression(n)) { return true; } switch (n.kind) { - case 162: - case 200: - case 163: - case 154: return false; + case 162 /* FunctionExpression */: + case 200 /* FunctionDeclaration */: + case 163 /* ArrowFunction */: + case 154 /* ObjectLiteralExpression */: return false; default: return ts.forEachChild(n, containsSuperCall); } } function markThisReferencesAsErrors(n) { - if (n.kind === 93) { + if (n.kind === 93 /* ThisKeyword */) { error(n, ts.Diagnostics.this_cannot_be_referenced_in_current_location); } - else if (n.kind !== 162 && n.kind !== 200) { + else if (n.kind !== 162 /* FunctionExpression */ && n.kind !== 200 /* FunctionDeclaration */) { ts.forEachChild(n, markThisReferencesAsErrors); } } function isInstancePropertyWithInitializer(n) { - return n.kind === 132 && - !(n.flags & 128) && + return n.kind === 132 /* PropertyDeclaration */ && + !(n.flags & 128 /* Static */) && !!n.initializer; } + // TS 1.0 spec (April 2014): 8.3.2 + // Constructors of classes with no extends clause may not contain super calls, whereas + // constructors of derived classes must contain at least one super call somewhere in their function body. if (ts.getClassExtendsHeritageClauseElement(node.parent)) { if (containsSuperCall(node.body)) { + // The first statement in the body of a constructor must be a super call if both of the following are true: + // - The containing class is a derived class. + // - The constructor declares parameter properties + // or the containing class declares instance member variables with initializers. var superCallShouldBeFirst = ts.forEach(node.parent.members, isInstancePropertyWithInitializer) || - ts.forEach(node.parameters, function (p) { return p.flags & (16 | 32 | 64); }); + ts.forEach(node.parameters, function (p) { return p.flags & (16 /* Public */ | 32 /* Private */ | 64 /* Protected */); }); if (superCallShouldBeFirst) { var statements = node.body.statements; - if (!statements.length || statements[0].kind !== 182 || !isSuperCallExpression(statements[0].expression)) { + if (!statements.length || statements[0].kind !== 182 /* ExpressionStatement */ || !isSuperCallExpression(statements[0].expression)) { error(node, ts.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties); } else { + // In such a required super call, it is a compile-time error for argument expressions to reference this. markThisReferencesAsErrors(statements[0].expression); } } @@ -15529,21 +18137,26 @@ var ts; } function checkAccessorDeclaration(node) { if (produceDiagnostics) { + // Grammar checking accessors checkGrammarFunctionLikeDeclaration(node) || checkGrammarAccessor(node) || checkGrammarComputedPropertyName(node.name); - if (node.kind === 136) { + if (node.kind === 136 /* GetAccessor */) { if (!ts.isInAmbientContext(node) && ts.nodeIsPresent(node.body) && !(bodyContainsAReturnStatement(node.body) || bodyContainsSingleThrowStatement(node.body))) { error(node.name, ts.Diagnostics.A_get_accessor_must_return_a_value_or_consist_of_a_single_throw_statement); } } if (!ts.hasDynamicName(node)) { - var otherKind = node.kind === 136 ? 137 : 136; + // TypeScript 1.0 spec (April 2014): 8.4.3 + // Accessors for the same member name must specify the same accessibility. + var otherKind = node.kind === 136 /* GetAccessor */ ? 137 /* SetAccessor */ : 136 /* GetAccessor */; var otherAccessor = ts.getDeclarationOfKind(node.symbol, otherKind); if (otherAccessor) { - if (((node.flags & 112) !== (otherAccessor.flags & 112))) { + if (((node.flags & 112 /* AccessibilityModifier */) !== (otherAccessor.flags & 112 /* AccessibilityModifier */))) { error(node.name, ts.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility); } var currentAccessorType = getAnnotatedAccessorType(node); var otherAccessorType = getAnnotatedAccessorType(otherAccessor); + // TypeScript 1.0 spec (April 2014): 4.5 + // If both accessors include type annotations, the specified types must be identical. if (currentAccessorType && otherAccessorType) { if (!isTypeIdenticalTo(currentAccessorType, otherAccessorType)) { error(node, ts.Diagnostics.get_and_set_accessor_must_have_the_same_type); @@ -15565,9 +18178,11 @@ var ts; return checkTypeReferenceOrHeritageClauseElement(node); } function checkTypeReferenceOrHeritageClauseElement(node) { + // Grammar checking checkGrammarTypeArguments(node, node.typeArguments); var type = getTypeFromTypeReferenceOrHeritageClauseElement(node); if (type !== unknownType && node.typeArguments) { + // Do type argument local checks only if referenced type is successfully resolved var len = node.typeArguments.length; for (var i = 0; i < len; i++) { checkSourceElement(node.typeArguments[i]); @@ -15594,6 +18209,7 @@ var ts; checkSourceElement(node.elementType); } function checkTupleType(node) { + // Grammar checking var hasErrorFromDisallowedTrailingComma = checkGrammarForDisallowedTrailingComma(node.elementTypes); if (!hasErrorFromDisallowedTrailingComma && node.elementTypes.length === 0) { grammarErrorOnNode(node, ts.Diagnostics.A_tuple_type_element_list_cannot_be_empty); @@ -15604,7 +18220,7 @@ var ts; ts.forEach(node.types, checkSourceElement); } function isPrivateWithinAmbient(node) { - return (node.flags & 32) && ts.isInAmbientContext(node); + return (node.flags & 32 /* Private */) && ts.isInAmbientContext(node); } function checkSpecializedSignatureDeclaration(signatureDeclarationNode) { if (!produceDiagnostics) { @@ -15614,14 +18230,21 @@ var ts; if (!signature.hasStringLiterals) { return; } + // TypeScript 1.0 spec (April 2014): 3.7.2.2 + // Specialized signatures are not permitted in conjunction with a function body if (ts.nodeIsPresent(signatureDeclarationNode.body)) { error(signatureDeclarationNode, ts.Diagnostics.A_signature_with_an_implementation_cannot_use_a_string_literal_type); return; } + // TypeScript 1.0 spec (April 2014): 3.7.2.4 + // Every specialized call or construct signature in an object type must be assignable + // to at least one non-specialized call or construct signature in the same object type var signaturesToCheck; - if (!signatureDeclarationNode.name && signatureDeclarationNode.parent && signatureDeclarationNode.parent.kind === 202) { - ts.Debug.assert(signatureDeclarationNode.kind === 138 || signatureDeclarationNode.kind === 139); - var signatureKind = signatureDeclarationNode.kind === 138 ? 0 : 1; + // Unnamed (call\construct) signatures in interfaces are inherited and not shadowed so examining just node symbol won't give complete answer. + // Use declaring type to obtain full list of signatures. + if (!signatureDeclarationNode.name && signatureDeclarationNode.parent && signatureDeclarationNode.parent.kind === 202 /* InterfaceDeclaration */) { + ts.Debug.assert(signatureDeclarationNode.kind === 138 /* CallSignature */ || signatureDeclarationNode.kind === 139 /* ConstructSignature */); + var signatureKind = signatureDeclarationNode.kind === 138 /* CallSignature */ ? 0 /* Call */ : 1 /* Construct */; var containingSymbol = getSymbolOfNode(signatureDeclarationNode.parent); var containingType = getDeclaredTypeOfSymbol(containingSymbol); signaturesToCheck = getSignaturesOfType(containingType, signatureKind); @@ -15639,11 +18262,12 @@ var ts; } function getEffectiveDeclarationFlags(n, flagsToCheck) { var flags = ts.getCombinedNodeFlags(n); - if (n.parent.kind !== 202 && ts.isInAmbientContext(n)) { - if (!(flags & 2)) { - flags |= 1; + if (n.parent.kind !== 202 /* InterfaceDeclaration */ && ts.isInAmbientContext(n)) { + if (!(flags & 2 /* Ambient */)) { + // It is nested in an ambient context, which means it is automatically exported + flags |= 1 /* Export */; } - flags |= 2; + flags |= 2 /* Ambient */; } return flags & flagsToCheck; } @@ -15652,22 +18276,29 @@ var ts; return; } function getCanonicalOverload(overloads, implementation) { + // Consider the canonical set of flags to be the flags of the bodyDeclaration or the first declaration + // Error on all deviations from this canonical set of flags + // The caveat is that if some overloads are defined in lib.d.ts, we don't want to + // report the errors on those. To achieve this, we will say that the implementation is + // the canonical signature only if it is in the same container as the first overload var implementationSharesContainerWithFirstOverload = implementation !== undefined && implementation.parent === overloads[0].parent; return implementationSharesContainerWithFirstOverload ? implementation : overloads[0]; } function checkFlagAgreementBetweenOverloads(overloads, implementation, flagsToCheck, someOverloadFlags, allOverloadFlags) { + // Error if some overloads have a flag that is not shared by all overloads. To find the + // deviations, we XOR someOverloadFlags with allOverloadFlags var someButNotAllOverloadFlags = someOverloadFlags ^ allOverloadFlags; if (someButNotAllOverloadFlags !== 0) { var canonicalFlags = getEffectiveDeclarationFlags(getCanonicalOverload(overloads, implementation), flagsToCheck); ts.forEach(overloads, function (o) { var deviation = getEffectiveDeclarationFlags(o, flagsToCheck) ^ canonicalFlags; - if (deviation & 1) { + if (deviation & 1 /* Export */) { error(o.name, ts.Diagnostics.Overload_signatures_must_all_be_exported_or_not_exported); } - else if (deviation & 2) { + else if (deviation & 2 /* Ambient */) { error(o.name, ts.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient); } - else if (deviation & (32 | 64)) { + else if (deviation & (32 /* Private */ | 64 /* Protected */)) { error(o.name, ts.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected); } }); @@ -15684,7 +18315,7 @@ var ts; }); } } - var flagsToCheck = 1 | 2 | 32 | 64; + var flagsToCheck = 1 /* Export */ | 2 /* Ambient */ | 32 /* Private */ | 64 /* Protected */; var someNodeFlags = 0; var allNodeFlags = flagsToCheck; var someHaveQuestionToken = false; @@ -15694,7 +18325,7 @@ var ts; var lastSeenNonAmbientDeclaration; var previousDeclaration; var declarations = symbol.declarations; - var isConstructor = (symbol.flags & 16384) !== 0; + var isConstructor = (symbol.flags & 16384 /* Constructor */) !== 0; function reportImplementationExpectedError(node) { if (node.name && ts.nodeIsMissing(node.name)) { return; @@ -15711,10 +18342,12 @@ var ts; if (subsequentNode) { if (subsequentNode.kind === node.kind) { var errorNode_1 = subsequentNode.name || subsequentNode; + // TODO(jfreeman): These are methods, so handle computed name case if (node.name && subsequentNode.name && node.name.text === subsequentNode.name.text) { - ts.Debug.assert(node.kind === 134 || node.kind === 133); - ts.Debug.assert((node.flags & 128) !== (subsequentNode.flags & 128)); - var diagnostic = node.flags & 128 ? ts.Diagnostics.Function_overload_must_be_static : ts.Diagnostics.Function_overload_must_not_be_static; + // the only situation when this is possible (same kind\same name but different symbol) - mixed static and instance class members + ts.Debug.assert(node.kind === 134 /* MethodDeclaration */ || node.kind === 133 /* MethodSignature */); + ts.Debug.assert((node.flags & 128 /* Static */) !== (subsequentNode.flags & 128 /* Static */)); + var diagnostic = node.flags & 128 /* Static */ ? ts.Diagnostics.Function_overload_must_be_static : ts.Diagnostics.Function_overload_must_not_be_static; error(errorNode_1, diagnostic); return; } @@ -15732,18 +18365,27 @@ var ts; error(errorNode, ts.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration); } } - var isExportSymbolInsideModule = symbol.parent && symbol.parent.flags & 1536; + // when checking exported function declarations across modules check only duplicate implementations + // names and consistency of modifiers are verified when we check local symbol + var isExportSymbolInsideModule = symbol.parent && symbol.parent.flags & 1536 /* Module */; var duplicateFunctionDeclaration = false; var multipleConstructorImplementation = false; for (var _i = 0; _i < declarations.length; _i++) { var current = declarations[_i]; var node = current; var inAmbientContext = ts.isInAmbientContext(node); - var inAmbientContextOrInterface = node.parent.kind === 202 || node.parent.kind === 145 || inAmbientContext; + var inAmbientContextOrInterface = node.parent.kind === 202 /* InterfaceDeclaration */ || node.parent.kind === 145 /* TypeLiteral */ || inAmbientContext; if (inAmbientContextOrInterface) { + // check if declarations are consecutive only if they are non-ambient + // 1. ambient declarations can be interleaved + // i.e. this is legal + // declare function foo(); + // declare function bar(); + // declare function foo(); + // 2. mixing ambient and non-ambient declarations is a separate error that will be reported - do not want to report an extra one previousDeclaration = undefined; } - if (node.kind === 200 || node.kind === 134 || node.kind === 133 || node.kind === 135) { + if (node.kind === 200 /* FunctionDeclaration */ || node.kind === 134 /* MethodDeclaration */ || node.kind === 133 /* MethodSignature */ || node.kind === 135 /* Constructor */) { var currentNodeFlags = getEffectiveDeclarationFlags(node, flagsToCheck); someNodeFlags |= currentNodeFlags; allNodeFlags &= currentNodeFlags; @@ -15793,7 +18435,23 @@ var ts; if (bodyDeclaration) { var signatures = getSignaturesOfSymbol(symbol); var bodySignature = getSignatureFromDeclaration(bodyDeclaration); + // If the implementation signature has string literals, we will have reported an error in + // checkSpecializedSignatureDeclaration if (!bodySignature.hasStringLiterals) { + // TypeScript 1.0 spec (April 2014): 6.1 + // If a function declaration includes overloads, the overloads determine the call + // signatures of the type given to the function object + // and the function implementation signature must be assignable to that type + // + // TypeScript 1.0 spec (April 2014): 3.8.4 + // Note that specialized call and construct signatures (section 3.7.2.4) are not significant when determining assignment compatibility + // Consider checking against specialized signatures too. Not doing so creates a type hole: + // + // function g(x: "hi", y: boolean); + // function g(x: string, y: {}); + // function g(x: string, y: string) { } + // + // The implementation is completely unrelated to the specialized signature, yet we do not check this. for (var _a = 0; _a < signatures.length; _a++) { var signature = signatures[_a]; if (!signature.hasStringLiterals && !isSignatureAssignableTo(bodySignature, signature)) { @@ -15809,21 +18467,30 @@ var ts; if (!produceDiagnostics) { return; } + // Exports should be checked only if enclosing module contains both exported and non exported declarations. + // In case if all declarations are non-exported check is unnecessary. + // if localSymbol is defined on node then node itself is exported - check is required var symbol = node.localSymbol; if (!symbol) { + // local symbol is undefined => this declaration is non-exported. + // however symbol might contain other declarations that are exported symbol = getSymbolOfNode(node); - if (!(symbol.flags & 7340032)) { + if (!(symbol.flags & 7340032 /* Export */)) { + // this is a pure local symbol (all declarations are non-exported) - no need to check anything return; } } + // run the check only for the first declaration in the list if (ts.getDeclarationOfKind(symbol, node.kind) !== node) { return; } + // we use SymbolFlags.ExportValue, SymbolFlags.ExportType and SymbolFlags.ExportNamespace + // to denote disjoint declarationSpaces (without making new enum type). var exportedDeclarationSpaces = 0; var nonExportedDeclarationSpaces = 0; ts.forEach(symbol.declarations, function (d) { var declarationSpaces = getDeclarationSpaces(d); - if (getEffectiveDeclarationFlags(d, 1)) { + if (getEffectiveDeclarationFlags(d, 1 /* Export */)) { exportedDeclarationSpaces |= declarationSpaces; } else { @@ -15832,6 +18499,7 @@ var ts; }); var commonDeclarationSpace = exportedDeclarationSpaces & nonExportedDeclarationSpaces; if (commonDeclarationSpace) { + // declaration spaces for exported and non-exported declarations intersect ts.forEach(symbol.declarations, function (d) { if (getDeclarationSpaces(d) & commonDeclarationSpace) { error(d.name, ts.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, ts.declarationNameToString(d.name)); @@ -15840,65 +18508,131 @@ var ts; } function getDeclarationSpaces(d) { switch (d.kind) { - case 202: - return 2097152; - case 205: - return d.name.kind === 8 || ts.getModuleInstanceState(d) !== 0 - ? 4194304 | 1048576 - : 4194304; - case 201: - case 204: - return 2097152 | 1048576; - case 208: + case 202 /* InterfaceDeclaration */: + return 2097152 /* ExportType */; + case 205 /* ModuleDeclaration */: + return d.name.kind === 8 /* StringLiteral */ || ts.getModuleInstanceState(d) !== 0 /* NonInstantiated */ + ? 4194304 /* ExportNamespace */ | 1048576 /* ExportValue */ + : 4194304 /* ExportNamespace */; + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + return 2097152 /* ExportType */ | 1048576 /* ExportValue */; + case 208 /* ImportEqualsDeclaration */: var result = 0; var target = resolveAlias(getSymbolOfNode(d)); ts.forEach(target.declarations, function (d) { result |= getDeclarationSpaces(d); }); return result; default: - return 1048576; + return 1048576 /* ExportValue */; } } } + /** Check a decorator */ function checkDecorator(node) { var expression = node.expression; var exprType = checkExpression(expression); switch (node.parent.kind) { - case 201: + case 201 /* ClassDeclaration */: var classSymbol = getSymbolOfNode(node.parent); var classConstructorType = getTypeOfSymbol(classSymbol); var classDecoratorType = instantiateSingleCallFunctionType(globalClassDecoratorType, [classConstructorType]); checkTypeAssignableTo(exprType, classDecoratorType, node); break; - case 132: + case 132 /* PropertyDeclaration */: checkTypeAssignableTo(exprType, globalPropertyDecoratorType, node); break; - case 134: - case 136: - case 137: + case 134 /* MethodDeclaration */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: var methodType = getTypeOfNode(node.parent); var methodDecoratorType = instantiateSingleCallFunctionType(globalMethodDecoratorType, [methodType]); checkTypeAssignableTo(exprType, methodDecoratorType, node); break; - case 129: + case 129 /* Parameter */: checkTypeAssignableTo(exprType, globalParameterDecoratorType, node); break; } } + /** Checks a type reference node as an expression. */ + function checkTypeNodeAsExpression(node) { + // When we are emitting type metadata for decorators, we need to try to check the type + // as if it were an expression so that we can emit the type in a value position when we + // serialize the type metadata. + if (node && node.kind === 141 /* TypeReference */) { + var type = getTypeFromTypeNodeOrHeritageClauseElement(node); + var shouldCheckIfUnknownType = type === unknownType && compilerOptions.separateCompilation; + if (!type || (!shouldCheckIfUnknownType && type.flags & (1048703 /* Intrinsic */ | 132 /* NumberLike */ | 258 /* StringLike */))) { + return; + } + if (shouldCheckIfUnknownType || type.symbol.valueDeclaration) { + checkExpressionOrQualifiedName(node.typeName); + } + } + } + /** + * Checks the type annotation of an accessor declaration or property declaration as + * an expression if it is a type reference to a type with a value declaration. + */ + function checkTypeAnnotationAsExpression(node) { + switch (node.kind) { + case 132 /* PropertyDeclaration */: + checkTypeNodeAsExpression(node.type); + break; + case 129 /* Parameter */: + checkTypeNodeAsExpression(node.type); + break; + case 134 /* MethodDeclaration */: + checkTypeNodeAsExpression(node.type); + break; + case 136 /* GetAccessor */: + checkTypeNodeAsExpression(node.type); + break; + case 137 /* SetAccessor */: + checkTypeNodeAsExpression(getSetAccessorTypeAnnotationNode(node)); + break; + } + } + /** Checks the type annotation of the parameters of a function/method or the constructor of a class as expressions */ + function checkParameterTypeAnnotationsAsExpressions(node) { + // ensure all type annotations with a value declaration are checked as an expression + for (var _i = 0, _a = node.parameters; _i < _a.length; _i++) { + var parameter = _a[_i]; + checkTypeAnnotationAsExpression(parameter); + } + } + /** Check the decorators of a node */ function checkDecorators(node) { if (!node.decorators) { return; } - switch (node.kind) { - case 201: - case 134: - case 136: - case 137: - case 132: - case 129: - emitDecorate = true; - break; - default: - return; + // skip this check for nodes that cannot have decorators. These should have already had an error reported by + // checkGrammarDecorators. + if (!ts.nodeCanBeDecorated(node)) { + return; + } + if (compilerOptions.emitDecoratorMetadata) { + // we only need to perform these checks if we are emitting serialized type metadata for the target of a decorator. + switch (node.kind) { + case 201 /* ClassDeclaration */: + var constructor = ts.getFirstConstructorWithBody(node); + if (constructor) { + checkParameterTypeAnnotationsAsExpressions(constructor); + } + break; + case 134 /* MethodDeclaration */: + checkParameterTypeAnnotationsAsExpressions(node); + // fall-through + case 137 /* SetAccessor */: + case 136 /* GetAccessor */: + case 132 /* PropertyDeclaration */: + case 129 /* Parameter */: + checkTypeAnnotationAsExpression(node); + break; + } + } + emitDecorate = true; + if (node.kind === 129 /* Parameter */) { + emitParam = true; } ts.forEach(node.decorators, checkDecorator); } @@ -15916,18 +18650,29 @@ var ts; function checkFunctionLikeDeclaration(node) { checkDecorators(node); checkSignatureDeclaration(node); - if (node.name && node.name.kind === 127) { + // Do not use hasDynamicName here, because that returns false for well known symbols. + // We want to perform checkComputedPropertyName for all computed properties, including + // well known symbols. + if (node.name && node.name.kind === 127 /* ComputedPropertyName */) { + // This check will account for methods in class/interface declarations, + // as well as accessors in classes/object literals checkComputedPropertyName(node.name); } if (!ts.hasDynamicName(node)) { + // first we want to check the local symbol that contain this declaration + // - if node.localSymbol !== undefined - this is current declaration is exported and localSymbol points to the local symbol + // - if node.localSymbol === undefined - this node is non-exported so we can just pick the result of getSymbolOfNode var symbol = getSymbolOfNode(node); var localSymbol = node.localSymbol || symbol; var firstDeclaration = ts.getDeclarationOfKind(localSymbol, node.kind); + // Only type check the symbol once if (node === firstDeclaration) { checkFunctionOrConstructorSymbol(localSymbol); } if (symbol.parent) { + // run check once for the first declaration if (ts.getDeclarationOfKind(symbol, node.kind) === node) { + // run check on export symbol to check that modifiers agree across all exported declarations checkFunctionOrConstructorSymbol(symbol); } } @@ -15936,20 +18681,24 @@ var ts; if (node.type && !isAccessor(node.kind)) { checkIfNonVoidFunctionHasReturnExpressionsOrSingleThrowStatment(node, getTypeFromTypeNodeOrHeritageClauseElement(node.type)); } + // Report an implicit any error if there is no body, no explicit return type, and node is not a private method + // in an ambient context if (compilerOptions.noImplicitAny && ts.nodeIsMissing(node.body) && !node.type && !isPrivateWithinAmbient(node)) { reportImplicitAnyError(node, anyType); } } function checkBlock(node) { - if (node.kind === 179) { + // Grammar checking for SyntaxKind.Block + if (node.kind === 179 /* Block */) { checkGrammarStatementInAmbientContext(node); } ts.forEach(node.statements, checkSourceElement); - if (ts.isFunctionBlock(node) || node.kind === 206) { + if (ts.isFunctionBlock(node) || node.kind === 206 /* ModuleBlock */) { checkFunctionExpressionBodies(node); } } function checkCollisionWithArgumentsInGeneratedCode(node) { + // no rest parameters \ declaration context \ overload - no codegen impact if (!ts.hasRestParameters(node) || ts.isInAmbientContext(node) || ts.nodeIsMissing(node.body)) { return; } @@ -15963,19 +18712,22 @@ var ts; if (!(identifier && identifier.text === name)) { return false; } - if (node.kind === 132 || - node.kind === 131 || - node.kind === 134 || - node.kind === 133 || - node.kind === 136 || - node.kind === 137) { + if (node.kind === 132 /* PropertyDeclaration */ || + node.kind === 131 /* PropertySignature */ || + node.kind === 134 /* MethodDeclaration */ || + node.kind === 133 /* MethodSignature */ || + node.kind === 136 /* GetAccessor */ || + node.kind === 137 /* SetAccessor */) { + // it is ok to have member named '_super' or '_this' - member access is always qualified return false; } if (ts.isInAmbientContext(node)) { + // ambient context - no codegen impact return false; } var root = getRootDeclaration(node); - if (root.kind === 129 && ts.nodeIsMissing(root.parent.body)) { + if (root.kind === 129 /* Parameter */ && ts.nodeIsMissing(root.parent.body)) { + // just an overload - no codegen impact return false; } return true; @@ -15985,11 +18737,12 @@ var ts; potentialThisCollisions.push(node); } } + // this function will run after checking the source file so 'CaptureThis' is correct for all nodes function checkIfThisIsCapturedInEnclosingScope(node) { var current = node; while (current) { - if (getNodeCheckFlags(current) & 4) { - var isDeclaration_1 = node.kind !== 65; + if (getNodeCheckFlags(current) & 4 /* CaptureThis */) { + var isDeclaration_1 = node.kind !== 65 /* Identifier */; if (isDeclaration_1) { error(node.name, ts.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference); } @@ -16005,12 +18758,14 @@ var ts; if (!needCollisionCheckForIdentifier(node, name, "_super")) { return; } - var enclosingClass = ts.getAncestor(node, 201); + // bubble up and find containing type + var enclosingClass = ts.getAncestor(node, 201 /* ClassDeclaration */); + // if containing type was not found or it is ambient - exit (no codegen) if (!enclosingClass || ts.isInAmbientContext(enclosingClass)) { return; } if (ts.getClassExtendsHeritageClauseElement(enclosingClass)) { - var isDeclaration_2 = node.kind !== 65; + var isDeclaration_2 = node.kind !== 65 /* Identifier */; if (isDeclaration_2) { error(node, ts.Diagnostics.Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference); } @@ -16023,11 +18778,14 @@ var ts; if (!needCollisionCheckForIdentifier(node, name, "require") && !needCollisionCheckForIdentifier(node, name, "exports")) { return; } - if (node.kind === 205 && ts.getModuleInstanceState(node) !== 1) { + // Uninstantiated modules shouldnt do this check + if (node.kind === 205 /* ModuleDeclaration */ && ts.getModuleInstanceState(node) !== 1 /* Instantiated */) { return; } + // In case of variable declaration, node.parent is variable statement so look at the variable statement's parent var parent = getDeclarationContainer(node); - if (parent.kind === 227 && ts.isExternalModule(parent)) { + if (parent.kind === 227 /* SourceFile */ && ts.isExternalModule(parent)) { + // If the declaration happens to be in external module, report error that require and exports are reserved keywords error(name, ts.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_an_external_module, ts.declarationNameToString(name), ts.declarationNameToString(name)); } } @@ -16035,28 +18793,57 @@ var ts; // - ScriptBody : StatementList // It is a Syntax Error if any element of the LexicallyDeclaredNames of StatementList // also occurs in the VarDeclaredNames of StatementList. - if ((ts.getCombinedNodeFlags(node) & 12288) !== 0 || isParameterDeclaration(node)) { + // - Block : { StatementList } + // It is a Syntax Error if any element of the LexicallyDeclaredNames of StatementList + // also occurs in the VarDeclaredNames of StatementList. + // Variable declarations are hoisted to the top of their function scope. They can shadow + // block scoped declarations, which bind tighter. this will not be flagged as duplicate definition + // by the binder as the declaration scope is different. + // A non-initialized declaration is a no-op as the block declaration will resolve before the var + // declaration. the problem is if the declaration has an initializer. this will act as a write to the + // block declared value. this is fine for let, but not const. + // Only consider declarations with initializers, uninitialized let declarations will not + // step on a let/const variable. + // Do not consider let and const declarations, as duplicate block-scoped declarations + // are handled by the binder. + // We are only looking for let declarations that step on let\const declarations from a + // different scope. e.g.: + // { + // const x = 0; // localDeclarationSymbol obtained after name resolution will correspond to this declaration + // let x = 0; // symbol for this declaration will be 'symbol' + // } + // skip block-scoped variables and parameters + if ((ts.getCombinedNodeFlags(node) & 12288 /* BlockScoped */) !== 0 || isParameterDeclaration(node)) { return; } - if (node.kind === 198 && !node.initializer) { + // skip variable declarations that don't have initializers + // NOTE: in ES6 spec initializer is required in variable declarations where name is binding pattern + // so we'll always treat binding elements as initialized + if (node.kind === 198 /* VariableDeclaration */ && !node.initializer) { return; } var symbol = getSymbolOfNode(node); - if (symbol.flags & 1) { - var localDeclarationSymbol = resolveName(node, node.name.text, 3, undefined, undefined); + if (symbol.flags & 1 /* FunctionScopedVariable */) { + var localDeclarationSymbol = resolveName(node, node.name.text, 3 /* Variable */, undefined, undefined); if (localDeclarationSymbol && localDeclarationSymbol !== symbol && - localDeclarationSymbol.flags & 2) { - if (getDeclarationFlagsFromSymbol(localDeclarationSymbol) & 12288) { - var varDeclList = ts.getAncestor(localDeclarationSymbol.valueDeclaration, 199); - var container = varDeclList.parent.kind === 180 && varDeclList.parent.parent + localDeclarationSymbol.flags & 2 /* BlockScopedVariable */) { + if (getDeclarationFlagsFromSymbol(localDeclarationSymbol) & 12288 /* BlockScoped */) { + var varDeclList = ts.getAncestor(localDeclarationSymbol.valueDeclaration, 199 /* VariableDeclarationList */); + var container = varDeclList.parent.kind === 180 /* VariableStatement */ && varDeclList.parent.parent ? varDeclList.parent.parent : undefined; + // names of block-scoped and function scoped variables can collide only + // if block scoped variable is defined in the function\module\source file scope (because of variable hoisting) var namesShareScope = container && - (container.kind === 179 && ts.isFunctionLike(container.parent) || - container.kind === 206 || - container.kind === 205 || - container.kind === 227); + (container.kind === 179 /* Block */ && ts.isFunctionLike(container.parent) || + container.kind === 206 /* ModuleBlock */ || + container.kind === 205 /* ModuleDeclaration */ || + container.kind === 227 /* SourceFile */); + // here we know that function scoped variable is shadowed by block scoped one + // if they are defined in the same scope - binder has already reported redeclaration error + // otherwise if variable has an initializer - show error that initialization will fail + // since LHS will be block scoped name instead of function scoped if (!namesShareScope) { var name_9 = symbolToString(localDeclarationSymbol); error(node, ts.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name_9, name_9); @@ -16066,27 +18853,31 @@ var ts; } } function isParameterDeclaration(node) { - while (node.kind === 152) { + while (node.kind === 152 /* BindingElement */) { node = node.parent.parent; } - return node.kind === 129; + return node.kind === 129 /* Parameter */; } + // Check that a parameter initializer contains no references to parameters declared to the right of itself function checkParameterInitializer(node) { - if (getRootDeclaration(node).kind !== 129) { + if (getRootDeclaration(node).kind !== 129 /* Parameter */) { return; } var func = ts.getContainingFunction(node); visit(node.initializer); function visit(n) { - if (n.kind === 65) { + if (n.kind === 65 /* Identifier */) { var referencedSymbol = getNodeLinks(n).resolvedSymbol; - if (referencedSymbol && referencedSymbol !== unknownSymbol && getSymbol(func.locals, referencedSymbol.name, 107455) === referencedSymbol) { - if (referencedSymbol.valueDeclaration.kind === 129) { + // check FunctionLikeDeclaration.locals (stores parameters\function local variable) + // if it contains entry with a specified name and if this entry matches the resolved symbol + if (referencedSymbol && referencedSymbol !== unknownSymbol && getSymbol(func.locals, referencedSymbol.name, 107455 /* Value */) === referencedSymbol) { + if (referencedSymbol.valueDeclaration.kind === 129 /* Parameter */) { if (referencedSymbol.valueDeclaration === node) { error(n, ts.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer, ts.declarationNameToString(node.name)); return; } if (referencedSymbol.valueDeclaration.pos < node.pos) { + // legal case - parameter initializer references some parameter strictly on left of current parameter declaration return; } } @@ -16098,22 +18889,30 @@ var ts; } } } + // Check variable, parameter, or property declaration function checkVariableLikeDeclaration(node) { checkDecorators(node); checkSourceElement(node.type); - if (node.name.kind === 127) { + // For a computed property, just check the initializer and exit + // Do not use hasDynamicName here, because that returns false for well known symbols. + // We want to perform checkComputedPropertyName for all computed properties, including + // well known symbols. + if (node.name.kind === 127 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); if (node.initializer) { checkExpressionCached(node.initializer); } } + // For a binding pattern, check contained binding elements if (ts.isBindingPattern(node.name)) { ts.forEach(node.name.elements, checkSourceElement); } - if (node.initializer && getRootDeclaration(node).kind === 129 && ts.nodeIsMissing(ts.getContainingFunction(node).body)) { + // For a parameter declaration with an initializer, error and exit if the containing function doesn't have a body + if (node.initializer && getRootDeclaration(node).kind === 129 /* Parameter */ && ts.nodeIsMissing(ts.getContainingFunction(node).body)) { error(node, ts.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation); return; } + // For a binding pattern, validate the initializer and exit if (ts.isBindingPattern(node.name)) { if (node.initializer) { checkTypeAssignableTo(checkExpressionCached(node.initializer), getWidenedTypeForVariableLikeDeclaration(node), node, undefined); @@ -16124,12 +18923,15 @@ var ts; var symbol = getSymbolOfNode(node); var type = getTypeOfVariableOrParameterOrProperty(symbol); if (node === symbol.valueDeclaration) { + // Node is the primary declaration of the symbol, just validate the initializer if (node.initializer) { checkTypeAssignableTo(checkExpressionCached(node.initializer), type, node, undefined); checkParameterInitializer(node); } } else { + // Node is a secondary declaration, check that type is identical to primary declaration and check that + // initializer is consistent with type associated with the node var declarationType = getWidenedTypeForVariableLikeDeclaration(node); if (type !== unknownType && declarationType !== unknownType && !isTypeIdenticalTo(type, declarationType)) { error(node.name, ts.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2, ts.declarationNameToString(node.name), typeToString(type), typeToString(declarationType)); @@ -16138,9 +18940,10 @@ var ts; checkTypeAssignableTo(checkExpressionCached(node.initializer), declarationType, node, undefined); } } - if (node.kind !== 132 && node.kind !== 131) { + if (node.kind !== 132 /* PropertyDeclaration */ && node.kind !== 131 /* PropertySignature */) { + // We know we don't have a binding pattern or computed name here checkExportsOnMergedDeclarations(node); - if (node.kind === 198 || node.kind === 152) { + if (node.kind === 198 /* VariableDeclaration */ || node.kind === 152 /* BindingElement */) { checkVarDeclaredNamesNotShadowed(node); } checkCollisionWithCapturedSuperVariable(node, node.name); @@ -16157,6 +18960,7 @@ var ts; return checkVariableLikeDeclaration(node); } function checkVariableStatement(node) { + // Grammar checking checkGrammarDecorators(node) || checkGrammarDisallowedModifiersInBlockOrObjectLiteralExpression(node) || checkGrammarModifiers(node) || checkGrammarVariableDeclarationList(node.declarationList) || checkGrammarForDisallowedLetOrConstStatement(node); ts.forEach(node.declarationList.declarations, checkSourceElement); } @@ -16169,40 +18973,45 @@ var ts; } function inBlockOrObjectLiteralExpression(node) { while (node) { - if (node.kind === 179 || node.kind === 154) { + if (node.kind === 179 /* Block */ || node.kind === 154 /* ObjectLiteralExpression */) { return true; } node = node.parent; } } function checkExpressionStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node); checkExpression(node.expression); } function checkIfStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node); checkExpression(node.expression); checkSourceElement(node.thenStatement); checkSourceElement(node.elseStatement); } function checkDoStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node); checkSourceElement(node.statement); checkExpression(node.expression); } function checkWhileStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node); checkExpression(node.expression); checkSourceElement(node.statement); } function checkForStatement(node) { + // Grammar checking if (!checkGrammarStatementInAmbientContext(node)) { - if (node.initializer && node.initializer.kind == 199) { + if (node.initializer && node.initializer.kind == 199 /* VariableDeclarationList */) { checkGrammarVariableDeclarationList(node.initializer); } } if (node.initializer) { - if (node.initializer.kind === 199) { + if (node.initializer.kind === 199 /* VariableDeclarationList */) { ts.forEach(node.initializer.declarations, checkVariableDeclaration); } else { @@ -16217,18 +19026,32 @@ var ts; } function checkForOfStatement(node) { checkGrammarForInOrForOfStatement(node); - if (node.initializer.kind === 199) { + // Check the LHS and RHS + // If the LHS is a declaration, just check it as a variable declaration, which will in turn check the RHS + // via checkRightHandSideOfForOf. + // If the LHS is an expression, check the LHS, as a destructuring assignment or as a reference. + // Then check that the RHS is assignable to it. + if (node.initializer.kind === 199 /* VariableDeclarationList */) { checkForInOrForOfVariableDeclaration(node); } else { var varExpr = node.initializer; var iteratedType = checkRightHandSideOfForOf(node.expression); - if (varExpr.kind === 153 || varExpr.kind === 154) { + // There may be a destructuring assignment on the left side + if (varExpr.kind === 153 /* ArrayLiteralExpression */ || varExpr.kind === 154 /* ObjectLiteralExpression */) { + // iteratedType may be undefined. In this case, we still want to check the structure of + // varExpr, in particular making sure it's a valid LeftHandSideExpression. But we'd like + // to short circuit the type relation checking as much as possible, so we pass the unknownType. checkDestructuringAssignment(varExpr, iteratedType || unknownType); } else { var leftType = checkExpression(varExpr); - checkReferenceExpression(varExpr, ts.Diagnostics.Invalid_left_hand_side_in_for_of_statement, ts.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_be_a_previously_defined_constant); + checkReferenceExpression(varExpr, ts.Diagnostics.Invalid_left_hand_side_in_for_of_statement, + /*constantVariableMessage*/ ts.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_be_a_previously_defined_constant); + // iteratedType will be undefined if the rightType was missing properties/signatures + // required to get its iteratedType (like [Symbol.iterator] or next). This may be + // because we accessed properties from anyType, or it may have led to an error inside + // getIteratedType. if (iteratedType) { checkTypeAssignableTo(iteratedType, leftType, varExpr, undefined); } @@ -16237,8 +19060,14 @@ var ts; checkSourceElement(node.statement); } function checkForInStatement(node) { + // Grammar checking checkGrammarForInOrForOfStatement(node); - if (node.initializer.kind === 199) { + // TypeScript 1.0 spec (April 2014): 5.4 + // In a 'for-in' statement of the form + // for (let VarDecl in Expr) Statement + // VarDecl must be a variable declaration without a type annotation that declares a variable of type Any, + // and Expr must be an expression of type Any, an object type, or a type parameter type. + if (node.initializer.kind === 199 /* VariableDeclarationList */) { var variable = node.initializer.declarations[0]; if (variable && ts.isBindingPattern(variable.name)) { error(variable.name, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); @@ -16246,26 +19075,34 @@ var ts; checkForInOrForOfVariableDeclaration(node); } else { + // In a 'for-in' statement of the form + // for (Var in Expr) Statement + // Var must be an expression classified as a reference of type Any or the String primitive type, + // and Expr must be an expression of type Any, an object type, or a type parameter type. var varExpr = node.initializer; var leftType = checkExpression(varExpr); - if (varExpr.kind === 153 || varExpr.kind === 154) { + if (varExpr.kind === 153 /* ArrayLiteralExpression */ || varExpr.kind === 154 /* ObjectLiteralExpression */) { error(varExpr, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); } - else if (!allConstituentTypesHaveKind(leftType, 1 | 258)) { + else if (!allConstituentTypesHaveKind(leftType, 1 /* Any */ | 258 /* StringLike */)) { error(varExpr, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any); } else { + // run check only former check succeeded to avoid cascading errors checkReferenceExpression(varExpr, ts.Diagnostics.Invalid_left_hand_side_in_for_in_statement, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_previously_defined_constant); } } var rightType = checkExpression(node.expression); - if (!allConstituentTypesHaveKind(rightType, 1 | 48128 | 512)) { + // unknownType is returned i.e. if node.expression is identifier whose name cannot be resolved + // in this case error about missing name is already reported - do not report extra one + if (!allConstituentTypesHaveKind(rightType, 1 /* Any */ | 48128 /* ObjectType */ | 512 /* TypeParameter */)) { error(node.expression, ts.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter); } checkSourceElement(node.statement); } function checkForInOrForOfVariableDeclaration(iterationStatement) { var variableDeclarationList = iterationStatement.initializer; + // checkGrammarForInOrForOfStatement will check that there is exactly one declaration. if (variableDeclarationList.declarations.length >= 1) { var decl = variableDeclarationList.declarations[0]; checkVariableDeclaration(decl); @@ -16273,21 +19110,34 @@ var ts; } function checkRightHandSideOfForOf(rhsExpression) { var expressionType = getTypeOfExpression(rhsExpression); - return languageVersion >= 2 - ? checkIteratedType(expressionType, rhsExpression) - : checkElementTypeOfArrayOrString(expressionType, rhsExpression); + return checkIteratedTypeOrElementType(expressionType, rhsExpression, true); } - function checkIteratedType(iterable, expressionForError) { - ts.Debug.assert(languageVersion >= 2); - var iteratedType = getIteratedType(iterable, expressionForError); - if (expressionForError && iteratedType) { - var completeIterableType = globalIterableType !== emptyObjectType - ? createTypeReference(globalIterableType, [iteratedType]) - : emptyObjectType; - checkTypeAssignableTo(iterable, completeIterableType, expressionForError); + function checkIteratedTypeOrElementType(inputType, errorNode, allowStringInput) { + if (languageVersion >= 2 /* ES6 */) { + return checkIteratedType(inputType, errorNode) || anyType; + } + if (allowStringInput) { + return checkElementTypeOfArrayOrString(inputType, errorNode); + } + if (isArrayLikeType(inputType)) { + return getIndexTypeOfType(inputType, 1 /* Number */); + } + error(errorNode, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(inputType)); + return unknownType; + } + /** + * When errorNode is undefined, it means we should not report any errors. + */ + function checkIteratedType(iterable, errorNode) { + ts.Debug.assert(languageVersion >= 2 /* ES6 */); + var iteratedType = getIteratedType(iterable, errorNode); + // Now even though we have extracted the iteratedType, we will have to validate that the type + // passed in is actually an Iterable. + if (errorNode && iteratedType) { + checkTypeAssignableTo(iterable, createIterableType(iteratedType), errorNode); } return iteratedType; - function getIteratedType(iterable, expressionForError) { + function getIteratedType(iterable, errorNode) { // We want to treat type as an iterable, and get the type it is an iterable of. The iterable // must have the following structure (annotated with the names of the variables below): // @@ -16313,75 +19163,106 @@ var ts; // caller requested it. Then the caller can decide what to do in the case where there is no iterated // type. This is different from returning anyType, because that would signify that we have matched the // whole pattern and that T (above) is 'any'. - if (allConstituentTypesHaveKind(iterable, 1)) { + if (allConstituentTypesHaveKind(iterable, 1 /* Any */)) { return undefined; } + // As an optimization, if the type is instantiated directly using the globalIterableType (Iterable), + // then just grab its type argument. + if ((iterable.flags & 4096 /* Reference */) && iterable.target === globalIterableType) { + return iterable.typeArguments[0]; + } var iteratorFunction = getTypeOfPropertyOfType(iterable, ts.getPropertyNameForKnownSymbolName("iterator")); - if (iteratorFunction && allConstituentTypesHaveKind(iteratorFunction, 1)) { + if (iteratorFunction && allConstituentTypesHaveKind(iteratorFunction, 1 /* Any */)) { return undefined; } - var iteratorFunctionSignatures = iteratorFunction ? getSignaturesOfType(iteratorFunction, 0) : emptyArray; + var iteratorFunctionSignatures = iteratorFunction ? getSignaturesOfType(iteratorFunction, 0 /* Call */) : emptyArray; if (iteratorFunctionSignatures.length === 0) { - if (expressionForError) { - error(expressionForError, ts.Diagnostics.The_right_hand_side_of_a_for_of_statement_must_have_a_Symbol_iterator_method_that_returns_an_iterator); + if (errorNode) { + error(errorNode, ts.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator); } return undefined; } var iterator = getUnionType(ts.map(iteratorFunctionSignatures, getReturnTypeOfSignature)); - if (allConstituentTypesHaveKind(iterator, 1)) { + if (allConstituentTypesHaveKind(iterator, 1 /* Any */)) { return undefined; } var iteratorNextFunction = getTypeOfPropertyOfType(iterator, "next"); - if (iteratorNextFunction && allConstituentTypesHaveKind(iteratorNextFunction, 1)) { + if (iteratorNextFunction && allConstituentTypesHaveKind(iteratorNextFunction, 1 /* Any */)) { return undefined; } - var iteratorNextFunctionSignatures = iteratorNextFunction ? getSignaturesOfType(iteratorNextFunction, 0) : emptyArray; + var iteratorNextFunctionSignatures = iteratorNextFunction ? getSignaturesOfType(iteratorNextFunction, 0 /* Call */) : emptyArray; if (iteratorNextFunctionSignatures.length === 0) { - if (expressionForError) { - error(expressionForError, ts.Diagnostics.The_iterator_returned_by_the_right_hand_side_of_a_for_of_statement_must_have_a_next_method); + if (errorNode) { + error(errorNode, ts.Diagnostics.An_iterator_must_have_a_next_method); } return undefined; } var iteratorNextResult = getUnionType(ts.map(iteratorNextFunctionSignatures, getReturnTypeOfSignature)); - if (allConstituentTypesHaveKind(iteratorNextResult, 1)) { + if (allConstituentTypesHaveKind(iteratorNextResult, 1 /* Any */)) { return undefined; } var iteratorNextValue = getTypeOfPropertyOfType(iteratorNextResult, "value"); if (!iteratorNextValue) { - if (expressionForError) { - error(expressionForError, ts.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property); + if (errorNode) { + error(errorNode, ts.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property); } return undefined; } return iteratorNextValue; } } - function checkElementTypeOfArrayOrString(arrayOrStringType, expressionForError) { - ts.Debug.assert(languageVersion < 2); - var arrayType = removeTypesFromUnionType(arrayOrStringType, 258, true, true); + /** + * This function does the following steps: + * 1. Break up arrayOrStringType (possibly a union) into its string constituents and array constituents. + * 2. Take the element types of the array constituents. + * 3. Return the union of the element types, and string if there was a string constitutent. + * + * For example: + * string -> string + * number[] -> number + * string[] | number[] -> string | number + * string | number[] -> string | number + * string | string[] | number[] -> string | number + * + * It also errors if: + * 1. Some constituent is neither a string nor an array. + * 2. Some constituent is a string and target is less than ES5 (because in ES3 string is not indexable). + */ + function checkElementTypeOfArrayOrString(arrayOrStringType, errorNode) { + ts.Debug.assert(languageVersion < 2 /* ES6 */); + // After we remove all types that are StringLike, we will know if there was a string constituent + // based on whether the remaining type is the same as the initial type. + var arrayType = removeTypesFromUnionType(arrayOrStringType, 258 /* StringLike */, true, true); var hasStringConstituent = arrayOrStringType !== arrayType; var reportedError = false; if (hasStringConstituent) { - if (languageVersion < 1) { - error(expressionForError, ts.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); + if (languageVersion < 1 /* ES5 */) { + error(errorNode, ts.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); reportedError = true; } + // Now that we've removed all the StringLike types, if no constituents remain, then the entire + // arrayOrStringType was a string. if (arrayType === emptyObjectType) { return stringType; } } if (!isArrayLikeType(arrayType)) { if (!reportedError) { + // Which error we report depends on whether there was a string constituent. For example, + // if the input type is number | string, we want to say that number is not an array type. + // But if the input was just number, we want to say that number is not an array type + // or a string type. var diagnostic = hasStringConstituent ? ts.Diagnostics.Type_0_is_not_an_array_type : ts.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type; - error(expressionForError, diagnostic, typeToString(arrayType)); + error(errorNode, diagnostic, typeToString(arrayType)); } return hasStringConstituent ? stringType : unknownType; } - var arrayElementType = getIndexTypeOfType(arrayType, 1) || unknownType; + var arrayElementType = getIndexTypeOfType(arrayType, 1 /* Number */) || unknownType; if (hasStringConstituent) { - if (arrayElementType.flags & 258) { + // This is just an optimization for the case where arrayOrStringType is string | string[] + if (arrayElementType.flags & 258 /* StringLike */) { return stringType; } return getUnionType([arrayElementType, stringType]); @@ -16389,12 +19270,15 @@ var ts; return arrayElementType; } function checkBreakOrContinueStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node) || checkGrammarBreakOrContinueStatement(node); + // TODO: Check that target label is valid } function isGetAccessorWithAnnotatatedSetAccessor(node) { - return !!(node.kind === 136 && getSetAccessorTypeAnnotationNode(ts.getDeclarationOfKind(node.symbol, 137))); + return !!(node.kind === 136 /* GetAccessor */ && getSetAccessorTypeAnnotationNode(ts.getDeclarationOfKind(node.symbol, 137 /* SetAccessor */))); } function checkReturnStatement(node) { + // Grammar checking if (!checkGrammarStatementInAmbientContext(node)) { var functionBlock = ts.getContainingFunction(node); if (!functionBlock) { @@ -16406,11 +19290,11 @@ var ts; if (func) { var returnType = getReturnTypeOfSignature(getSignatureFromDeclaration(func)); var exprType = checkExpressionCached(node.expression); - if (func.kind === 137) { + if (func.kind === 137 /* SetAccessor */) { error(node.expression, ts.Diagnostics.Setters_cannot_return_a_value); } else { - if (func.kind === 135) { + if (func.kind === 135 /* Constructor */) { if (!isTypeAssignableTo(exprType, returnType)) { error(node.expression, ts.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); } @@ -16423,8 +19307,9 @@ var ts; } } function checkWithStatement(node) { + // Grammar checking for withStatement if (!checkGrammarStatementInAmbientContext(node)) { - if (node.parserContextFlags & 1) { + if (node.parserContextFlags & 1 /* StrictMode */) { grammarErrorOnFirstToken(node, ts.Diagnostics.with_statements_are_not_allowed_in_strict_mode); } } @@ -16432,12 +19317,14 @@ var ts; error(node.expression, ts.Diagnostics.All_symbols_within_a_with_block_will_be_resolved_to_any); } function checkSwitchStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node); var firstDefaultClause; var hasDuplicateDefaultClause = false; var expressionType = checkExpression(node.expression); ts.forEach(node.caseBlock.clauses, function (clause) { - if (clause.kind === 221 && !hasDuplicateDefaultClause) { + // Grammar check for duplicate default clauses, skip if we already report duplicate default clause + if (clause.kind === 221 /* DefaultClause */ && !hasDuplicateDefaultClause) { if (firstDefaultClause === undefined) { firstDefaultClause = clause; } @@ -16449,10 +19336,13 @@ var ts; hasDuplicateDefaultClause = true; } } - if (produceDiagnostics && clause.kind === 220) { + if (produceDiagnostics && clause.kind === 220 /* CaseClause */) { var caseClause = clause; + // TypeScript 1.0 spec (April 2014):5.9 + // In a 'switch' statement, each 'case' expression must be of a type that is assignable to or from the type of the 'switch' expression. var caseType = checkExpression(caseClause.expression); if (!isTypeAssignableTo(expressionType, caseType)) { + // check 'expressionType isAssignableTo caseType' failed, try the reversed check and report errors if it fails checkTypeAssignableTo(caseType, expressionType, caseClause.expression, undefined); } } @@ -16460,13 +19350,14 @@ var ts; }); } function checkLabeledStatement(node) { + // Grammar checking if (!checkGrammarStatementInAmbientContext(node)) { var current = node.parent; while (current) { if (ts.isFunctionLike(current)) { break; } - if (current.kind === 194 && current.label.text === node.label.text) { + if (current.kind === 194 /* LabeledStatement */ && current.label.text === node.label.text) { var sourceFile = ts.getSourceFileOfNode(node); grammarErrorOnNode(node.label, ts.Diagnostics.Duplicate_label_0, ts.getTextOfNodeFromSourceText(sourceFile.text, node.label)); break; @@ -16474,9 +19365,11 @@ var ts; current = current.parent; } } + // ensure that label is unique checkSourceElement(node.statement); } function checkThrowStatement(node) { + // Grammar checking if (!checkGrammarStatementInAmbientContext(node)) { if (node.expression === undefined) { grammarErrorAfterFirstToken(node, ts.Diagnostics.Line_break_not_permitted_here); @@ -16487,12 +19380,14 @@ var ts; } } function checkTryStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node); checkBlock(node.tryBlock); var catchClause = node.catchClause; if (catchClause) { + // Grammar checking if (catchClause.variableDeclaration) { - if (catchClause.variableDeclaration.name.kind !== 65) { + if (catchClause.variableDeclaration.name.kind !== 65 /* Identifier */) { grammarErrorOnFirstToken(catchClause.variableDeclaration.name, ts.Diagnostics.Catch_clause_variable_name_must_be_an_identifier); } else if (catchClause.variableDeclaration.type) { @@ -16506,10 +19401,12 @@ var ts; var locals = catchClause.block.locals; if (locals && ts.hasProperty(locals, identifierName)) { var localSymbol = locals[identifierName]; - if (localSymbol && (localSymbol.flags & 2) !== 0) { + if (localSymbol && (localSymbol.flags & 2 /* BlockScopedVariable */) !== 0) { grammarErrorOnNode(localSymbol.valueDeclaration, ts.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause, identifierName); } } + // It is a SyntaxError if a TryStatement with a Catch occurs within strict code and the Identifier of the + // Catch production is eval or arguments checkGrammarEvalOrArgumentsInStrictMode(node, catchClause.variableDeclaration.name); } } @@ -16520,24 +19417,27 @@ var ts; } } function checkIndexConstraints(type) { - var declaredNumberIndexer = getIndexDeclarationOfSymbol(type.symbol, 1); - var declaredStringIndexer = getIndexDeclarationOfSymbol(type.symbol, 0); - var stringIndexType = getIndexTypeOfType(type, 0); - var numberIndexType = getIndexTypeOfType(type, 1); + var declaredNumberIndexer = getIndexDeclarationOfSymbol(type.symbol, 1 /* Number */); + var declaredStringIndexer = getIndexDeclarationOfSymbol(type.symbol, 0 /* String */); + var stringIndexType = getIndexTypeOfType(type, 0 /* String */); + var numberIndexType = getIndexTypeOfType(type, 1 /* Number */); if (stringIndexType || numberIndexType) { ts.forEach(getPropertiesOfObjectType(type), function (prop) { var propType = getTypeOfSymbol(prop); - checkIndexConstraintForProperty(prop, propType, type, declaredStringIndexer, stringIndexType, 0); - checkIndexConstraintForProperty(prop, propType, type, declaredNumberIndexer, numberIndexType, 1); + checkIndexConstraintForProperty(prop, propType, type, declaredStringIndexer, stringIndexType, 0 /* String */); + checkIndexConstraintForProperty(prop, propType, type, declaredNumberIndexer, numberIndexType, 1 /* Number */); }); - if (type.flags & 1024 && type.symbol.valueDeclaration.kind === 201) { + if (type.flags & 1024 /* Class */ && type.symbol.valueDeclaration.kind === 201 /* ClassDeclaration */) { var classDeclaration = type.symbol.valueDeclaration; for (var _i = 0, _a = classDeclaration.members; _i < _a.length; _i++) { var member = _a[_i]; - if (!(member.flags & 128) && ts.hasDynamicName(member)) { + // Only process instance properties with computed names here. + // Static properties cannot be in conflict with indexers, + // and properties with literal names were already checked. + if (!(member.flags & 128 /* Static */) && ts.hasDynamicName(member)) { var propType = getTypeOfSymbol(member.symbol); - checkIndexConstraintForProperty(member.symbol, propType, type, declaredStringIndexer, stringIndexType, 0); - checkIndexConstraintForProperty(member.symbol, propType, type, declaredNumberIndexer, numberIndexType, 1); + checkIndexConstraintForProperty(member.symbol, propType, type, declaredStringIndexer, stringIndexType, 0 /* String */); + checkIndexConstraintForProperty(member.symbol, propType, type, declaredNumberIndexer, numberIndexType, 1 /* Number */); } } } @@ -16545,8 +19445,9 @@ var ts; var errorNode; if (stringIndexType && numberIndexType) { errorNode = declaredNumberIndexer || declaredStringIndexer; - if (!errorNode && (type.flags & 2048)) { - var someBaseTypeHasBothIndexers = ts.forEach(type.baseTypes, function (base) { return getIndexTypeOfType(base, 0) && getIndexTypeOfType(base, 1); }); + // condition 'errorNode === undefined' may appear if types does not declare nor string neither number indexer + if (!errorNode && (type.flags & 2048 /* Interface */)) { + var someBaseTypeHasBothIndexers = ts.forEach(type.baseTypes, function (base) { return getIndexTypeOfType(base, 0 /* String */) && getIndexTypeOfType(base, 1 /* Number */); }); errorNode = someBaseTypeHasBothIndexers ? undefined : type.symbol.declarations[0]; } } @@ -16557,22 +19458,28 @@ var ts; if (!indexType) { return; } - if (indexKind === 1 && !isNumericName(prop.valueDeclaration.name)) { + // index is numeric and property name is not valid numeric literal + if (indexKind === 1 /* Number */ && !isNumericName(prop.valueDeclaration.name)) { return; } + // perform property check if property or indexer is declared in 'type' + // this allows to rule out cases when both property and indexer are inherited from the base class var errorNode; - if (prop.valueDeclaration.name.kind === 127 || prop.parent === containingType.symbol) { + if (prop.valueDeclaration.name.kind === 127 /* ComputedPropertyName */ || prop.parent === containingType.symbol) { errorNode = prop.valueDeclaration; } else if (indexDeclaration) { errorNode = indexDeclaration; } - else if (containingType.flags & 2048) { + else if (containingType.flags & 2048 /* Interface */) { + // for interfaces property and indexer might be inherited from different bases + // check if any base class already has both property and indexer. + // check should be performed only if 'type' is the first type that brings property\indexer together var someBaseClassHasBothPropertyAndIndexer = ts.forEach(containingType.baseTypes, function (base) { return getPropertyOfObjectType(base, prop.name) && getIndexTypeOfType(base, indexKind); }); errorNode = someBaseClassHasBothPropertyAndIndexer ? undefined : containingType.symbol.declarations[0]; } if (errorNode && !isTypeAssignableTo(propertyType, indexType)) { - var errorMessage = indexKind === 0 + var errorMessage = indexKind === 0 /* String */ ? ts.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2 : ts.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2; error(errorNode, errorMessage, symbolToString(prop), typeToString(propertyType), typeToString(indexType)); @@ -16580,6 +19487,8 @@ var ts; } } function checkTypeNameIsReserved(name, message) { + // TS 1.0 spec (April 2014): 3.6.1 + // The predefined type keywords are reserved and cannot be used as names of user defined types. switch (name.text) { case "any": case "number": @@ -16590,6 +19499,7 @@ var ts; error(name, message, name.text); } } + // Check each type parameter and check that list has no duplicate type parameter declarations function checkTypeParameters(typeParameterDeclarations) { if (typeParameterDeclarations) { for (var i = 0, n = typeParameterDeclarations.length; i < n; i++) { @@ -16611,9 +19521,13 @@ var ts; return unknownType; } function checkClassDeclaration(node) { - if (node.parent.kind !== 206 && node.parent.kind !== 227) { + // Grammar checking + if (node.parent.kind !== 206 /* ModuleBlock */ && node.parent.kind !== 227 /* SourceFile */) { grammarErrorOnNode(node, ts.Diagnostics.class_declarations_are_only_supported_directly_inside_a_module_or_as_a_top_level_declaration); } + if (!node.name && !(node.flags & 256 /* Default */)) { + grammarErrorOnFirstToken(node, ts.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name); + } checkGrammarClassDeclarationHeritageClauses(node); checkDecorators(node); if (node.name) { @@ -16640,13 +19554,14 @@ var ts; checkTypeAssignableTo(type, baseType, node.name || node, ts.Diagnostics.Class_0_incorrectly_extends_base_class_1); var staticBaseType = getTypeOfSymbol(baseType.symbol); checkTypeAssignableTo(staticType, getTypeWithoutConstructors(staticBaseType), node.name || node, ts.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1); - if (baseType.symbol !== resolveEntityName(baseTypeNode.expression, 107455)) { + if (baseType.symbol !== resolveEntityName(baseTypeNode.expression, 107455 /* Value */)) { error(baseTypeNode, ts.Diagnostics.Type_name_0_in_extends_clause_does_not_reference_constructor_function_for_0, typeToString(baseType)); } checkKindsOfPropertyMemberOverrides(type, baseType); } } if (type.baseTypes.length || (baseTypeNode && compilerOptions.separateCompilation)) { + // Check that base type can be evaluated as expression checkExpressionOrQualifiedName(baseTypeNode.expression); } var implementedTypeNodes = ts.getClassImplementsHeritageClauseElements(node); @@ -16659,8 +19574,8 @@ var ts; if (produceDiagnostics) { var t = getTypeFromHeritageClauseElement(typeRefNode); if (t !== unknownType) { - var declaredType = (t.flags & 4096) ? t.target : t; - if (declaredType.flags & (1024 | 2048)) { + var declaredType = (t.flags & 4096 /* Reference */) ? t.target : t; + if (declaredType.flags & (1024 /* Class */ | 2048 /* Interface */)) { checkTypeAssignableTo(type, t, node.name || node, ts.Diagnostics.Class_0_incorrectly_implements_interface_1); } else { @@ -16677,7 +19592,9 @@ var ts; } } function getTargetSymbol(s) { - return s.flags & 16777216 ? getSymbolLinks(s).target : s; + // if symbol is instantiated its flags are not copied from the 'target' + // so we'll need to get back original 'target' symbol to work with correct set of flags + return s.flags & 16777216 /* Instantiated */ ? getSymbolLinks(s).target : s; } function checkKindsOfPropertyMemberOverrides(type, baseType) { // TypeScript 1.0 spec (April 2014): 8.2.3 @@ -16693,43 +19610,47 @@ var ts; // but not by other kinds of members. // Base class instance member variables and accessors can be overridden by // derived class instance member variables and accessors, but not by other kinds of members. + // NOTE: assignability is checked in checkClassDeclaration var baseProperties = getPropertiesOfObjectType(baseType); for (var _i = 0; _i < baseProperties.length; _i++) { var baseProperty = baseProperties[_i]; var base = getTargetSymbol(baseProperty); - if (base.flags & 134217728) { + if (base.flags & 134217728 /* Prototype */) { continue; } var derived = getTargetSymbol(getPropertyOfObjectType(type, base.name)); if (derived) { var baseDeclarationFlags = getDeclarationFlagsFromSymbol(base); var derivedDeclarationFlags = getDeclarationFlagsFromSymbol(derived); - if ((baseDeclarationFlags & 32) || (derivedDeclarationFlags & 32)) { + if ((baseDeclarationFlags & 32 /* Private */) || (derivedDeclarationFlags & 32 /* Private */)) { + // either base or derived property is private - not override, skip it continue; } - if ((baseDeclarationFlags & 128) !== (derivedDeclarationFlags & 128)) { + if ((baseDeclarationFlags & 128 /* Static */) !== (derivedDeclarationFlags & 128 /* Static */)) { + // value of 'static' is not the same for properties - not override, skip it continue; } - if ((base.flags & derived.flags & 8192) || ((base.flags & 98308) && (derived.flags & 98308))) { + if ((base.flags & derived.flags & 8192 /* Method */) || ((base.flags & 98308 /* PropertyOrAccessor */) && (derived.flags & 98308 /* PropertyOrAccessor */))) { + // method is overridden with method or property/accessor is overridden with property/accessor - correct case continue; } var errorMessage = void 0; - if (base.flags & 8192) { - if (derived.flags & 98304) { + if (base.flags & 8192 /* Method */) { + if (derived.flags & 98304 /* Accessor */) { errorMessage = ts.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor; } else { - ts.Debug.assert((derived.flags & 4) !== 0); + ts.Debug.assert((derived.flags & 4 /* Property */) !== 0); errorMessage = ts.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property; } } - else if (base.flags & 4) { - ts.Debug.assert((derived.flags & 8192) !== 0); + else if (base.flags & 4 /* Property */) { + ts.Debug.assert((derived.flags & 8192 /* Method */) !== 0); errorMessage = ts.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function; } else { - ts.Debug.assert((base.flags & 98304) !== 0); - ts.Debug.assert((derived.flags & 8192) !== 0); + ts.Debug.assert((base.flags & 98304 /* Accessor */) !== 0); + ts.Debug.assert((derived.flags & 8192 /* Method */) !== 0); errorMessage = ts.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function; } error(derived.valueDeclaration.name, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type)); @@ -16737,7 +19658,7 @@ var ts; } } function isAccessor(kind) { - return kind === 136 || kind === 137; + return kind === 136 /* GetAccessor */ || kind === 137 /* SetAccessor */; } function areTypeParametersIdentical(list1, list2) { if (!list1 && !list2) { @@ -16746,6 +19667,9 @@ var ts; if (!list1 || !list2 || list1.length !== list2.length) { return false; } + // TypeScript 1.0 spec (April 2014): + // When a generic interface has multiple declarations, all declarations must have identical type parameter + // lists, i.e. identical type parameter names with identical constraints in identical order. for (var i = 0, len = list1.length; i < len; i++) { var tp1 = list1[i]; var tp2 = list2[i]; @@ -16796,20 +19720,23 @@ var ts; return ok; } function checkInterfaceDeclaration(node) { + // Grammar checking checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarInterfaceDeclaration(node); checkTypeParameters(node.typeParameters); if (produceDiagnostics) { checkTypeNameIsReserved(node.name, ts.Diagnostics.Interface_name_cannot_be_0); checkExportsOnMergedDeclarations(node); var symbol = getSymbolOfNode(node); - var firstInterfaceDecl = ts.getDeclarationOfKind(symbol, 202); + var firstInterfaceDecl = ts.getDeclarationOfKind(symbol, 202 /* InterfaceDeclaration */); if (symbol.declarations.length > 1) { if (node !== firstInterfaceDecl && !areTypeParametersIdentical(firstInterfaceDecl.typeParameters, node.typeParameters)) { error(node.name, ts.Diagnostics.All_declarations_of_an_interface_must_have_identical_type_parameters); } } + // Only check this symbol once if (node === firstInterfaceDecl) { var type = getDeclaredTypeOfSymbol(symbol); + // run subsequent checks only if first set succeeded if (checkInheritedPropertiesAreIdentical(type, node.name)) { ts.forEach(type.baseTypes, function (baseType) { checkTypeAssignableTo(type, baseType, node.name, ts.Diagnostics.Interface_0_incorrectly_extends_interface_1); @@ -16830,20 +19757,21 @@ var ts; } } function checkTypeAliasDeclaration(node) { + // Grammar checking checkGrammarDecorators(node) || checkGrammarModifiers(node); checkTypeNameIsReserved(node.name, ts.Diagnostics.Type_alias_name_cannot_be_0); checkSourceElement(node.type); } function computeEnumMemberValues(node) { var nodeLinks = getNodeLinks(node); - if (!(nodeLinks.flags & 128)) { + if (!(nodeLinks.flags & 128 /* EnumValuesComputed */)) { var enumSymbol = getSymbolOfNode(node); var enumType = getDeclaredTypeOfSymbol(enumSymbol); var autoValue = 0; var ambient = ts.isInAmbientContext(node); var enumIsConst = ts.isConst(node); ts.forEach(node.members, function (member) { - if (member.name.kind !== 127 && isNumericLiteralName(member.name.text)) { + if (member.name.kind !== 127 /* ComputedPropertyName */ && isNumericLiteralName(member.name.text)) { error(member.name, ts.Diagnostics.An_enum_member_cannot_have_a_numeric_name); } var initializer = member.initializer; @@ -16854,6 +19782,10 @@ var ts; error(initializer, ts.Diagnostics.In_const_enum_declarations_member_initializer_must_be_constant_expression); } else if (!ambient) { + // Only here do we need to check that the initializer is assignable to the enum type. + // If it is a constant value (not undefined), it is syntactically constrained to be a number. + // Also, we do not need to check this for ambients because there is already + // a syntax error if it is not a constant. checkTypeAssignableTo(checkExpression(initializer), enumType, initializer, undefined); } } @@ -16873,24 +19805,24 @@ var ts; getNodeLinks(member).enumMemberValue = autoValue++; } }); - nodeLinks.flags |= 128; + nodeLinks.flags |= 128 /* EnumValuesComputed */; } function getConstantValueForEnumMemberInitializer(initializer) { return evalConstant(initializer); function evalConstant(e) { switch (e.kind) { - case 167: + case 167 /* PrefixUnaryExpression */: var value = evalConstant(e.operand); if (value === undefined) { return undefined; } switch (e.operator) { - case 33: return value; - case 34: return -value; - case 47: return ~value; + case 33 /* PlusToken */: return value; + case 34 /* MinusToken */: return -value; + case 47 /* TildeToken */: return ~value; } return undefined; - case 169: + case 169 /* BinaryExpression */: var left = evalConstant(e.left); if (left === undefined) { return undefined; @@ -16900,39 +19832,41 @@ var ts; return undefined; } switch (e.operatorToken.kind) { - case 44: return left | right; - case 43: return left & right; - case 41: return left >> right; - case 42: return left >>> right; - case 40: return left << right; - case 45: return left ^ right; - case 35: return left * right; - case 36: return left / right; - case 33: return left + right; - case 34: return left - right; - case 37: return left % right; + case 44 /* BarToken */: return left | right; + case 43 /* AmpersandToken */: return left & right; + case 41 /* GreaterThanGreaterThanToken */: return left >> right; + case 42 /* GreaterThanGreaterThanGreaterThanToken */: return left >>> right; + case 40 /* LessThanLessThanToken */: return left << right; + case 45 /* CaretToken */: return left ^ right; + case 35 /* AsteriskToken */: return left * right; + case 36 /* SlashToken */: return left / right; + case 33 /* PlusToken */: return left + right; + case 34 /* MinusToken */: return left - right; + case 37 /* PercentToken */: return left % right; } return undefined; - case 7: + case 7 /* NumericLiteral */: return +e.text; - case 161: + case 161 /* ParenthesizedExpression */: return evalConstant(e.expression); - case 65: - case 156: - case 155: + case 65 /* Identifier */: + case 156 /* ElementAccessExpression */: + case 155 /* PropertyAccessExpression */: var member = initializer.parent; var currentType = getTypeOfSymbol(getSymbolOfNode(member.parent)); var enumType; var propertyName; - if (e.kind === 65) { + if (e.kind === 65 /* Identifier */) { + // unqualified names can refer to member that reside in different declaration of the enum so just doing name resolution won't work. + // instead pick current enum type and later try to fetch member from the type enumType = currentType; propertyName = e.text; } else { var expression; - if (e.kind === 156) { + if (e.kind === 156 /* ElementAccessExpression */) { if (e.argumentExpression === undefined || - e.argumentExpression.kind !== 8) { + e.argumentExpression.kind !== 8 /* StringLiteral */) { return undefined; } expression = e.expression; @@ -16942,12 +19876,13 @@ var ts; expression = e.expression; propertyName = e.name.text; } + // expression part in ElementAccess\PropertyAccess should be either identifier or dottedName var current = expression; while (current) { - if (current.kind === 65) { + if (current.kind === 65 /* Identifier */) { break; } - else if (current.kind === 155) { + else if (current.kind === 155 /* PropertyAccessExpression */) { current = current.expression; } else { @@ -16955,7 +19890,8 @@ var ts; } } enumType = checkExpression(expression); - if (!(enumType.symbol && (enumType.symbol.flags & 384))) { + // allow references to constant members of other enums + if (!(enumType.symbol && (enumType.symbol.flags & 384 /* Enum */))) { return undefined; } } @@ -16963,13 +19899,15 @@ var ts; return undefined; } var property = getPropertyOfObjectType(enumType, propertyName); - if (!property || !(property.flags & 8)) { + if (!property || !(property.flags & 8 /* EnumMember */)) { return undefined; } var propertyDecl = property.valueDeclaration; + // self references are illegal if (member === propertyDecl) { return undefined; } + // illegal case: forward reference if (!isDefinedBefore(propertyDecl, member)) { return undefined; } @@ -16982,6 +19920,7 @@ var ts; if (!produceDiagnostics) { return; } + // Grammar checking checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarEnumDeclaration(node); checkTypeNameIsReserved(node.name, ts.Diagnostics.Enum_name_cannot_be_0); checkCollisionWithCapturedThisVariable(node, node.name); @@ -16992,10 +19931,17 @@ var ts; if (compilerOptions.separateCompilation && enumIsConst && ts.isInAmbientContext(node)) { error(node.name, ts.Diagnostics.Ambient_const_enums_are_not_allowed_when_the_separateCompilation_flag_is_provided); } + // Spec 2014 - Section 9.3: + // It isn't possible for one enum declaration to continue the automatic numbering sequence of another, + // and when an enum type has multiple declarations, only one declaration is permitted to omit a value + // for the first member. + // + // Only perform this check once per symbol var enumSymbol = getSymbolOfNode(node); var firstDeclaration = ts.getDeclarationOfKind(enumSymbol, node.kind); if (node === firstDeclaration) { if (enumSymbol.declarations.length > 1) { + // check that const is placed\omitted on all enum declarations ts.forEach(enumSymbol.declarations, function (decl) { if (ts.isConstEnumDeclaration(decl) !== enumIsConst) { error(decl.name, ts.Diagnostics.Enum_declarations_must_all_be_const_or_non_const); @@ -17004,7 +19950,8 @@ var ts; } var seenEnumMissingInitialInitializer = false; ts.forEach(enumSymbol.declarations, function (declaration) { - if (declaration.kind !== 204) { + // return true if we hit a violation of the rule, false otherwise + if (declaration.kind !== 204 /* EnumDeclaration */) { return false; } var enumDeclaration = declaration; @@ -17027,7 +19974,7 @@ var ts; var declarations = symbol.declarations; for (var _i = 0; _i < declarations.length; _i++) { var declaration = declarations[_i]; - if ((declaration.kind === 201 || (declaration.kind === 200 && ts.nodeIsPresent(declaration.body))) && !ts.isInAmbientContext(declaration)) { + if ((declaration.kind === 201 /* ClassDeclaration */ || (declaration.kind === 200 /* FunctionDeclaration */ && ts.nodeIsPresent(declaration.body))) && !ts.isInAmbientContext(declaration)) { return declaration; } } @@ -17035,8 +19982,9 @@ var ts; } function checkModuleDeclaration(node) { if (produceDiagnostics) { + // Grammar checking if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node)) { - if (!ts.isInAmbientContext(node) && node.name.kind === 8) { + if (!ts.isInAmbientContext(node) && node.name.kind === 8 /* StringLiteral */) { grammarErrorOnNode(node.name, ts.Diagnostics.Only_ambient_modules_can_use_quoted_names); } } @@ -17044,7 +19992,8 @@ var ts; checkCollisionWithRequireExportsInGeneratedCode(node, node.name); checkExportsOnMergedDeclarations(node); var symbol = getSymbolOfNode(node); - if (symbol.flags & 512 + // The following checks only apply on a non-ambient instantiated module declaration. + if (symbol.flags & 512 /* ValueModule */ && symbol.declarations.length > 1 && !ts.isInAmbientContext(node) && ts.isInstantiatedModule(node, compilerOptions.preserveConstEnums || compilerOptions.separateCompilation)) { @@ -17058,7 +20007,8 @@ var ts; } } } - if (node.name.kind === 8) { + // Checks for ambient external modules. + if (node.name.kind === 8 /* StringLiteral */) { if (!isGlobalSourceFile(node.parent)) { error(node.name, ts.Diagnostics.Ambient_external_modules_cannot_be_nested_in_other_modules); } @@ -17071,33 +20021,37 @@ var ts; } function getFirstIdentifier(node) { while (true) { - if (node.kind === 126) { + if (node.kind === 126 /* QualifiedName */) { node = node.left; } - else if (node.kind === 155) { + else if (node.kind === 155 /* PropertyAccessExpression */) { node = node.expression; } else { break; } } - ts.Debug.assert(node.kind === 65); + ts.Debug.assert(node.kind === 65 /* Identifier */); return node; } function checkExternalImportOrExportDeclaration(node) { var moduleName = ts.getExternalModuleName(node); - if (!ts.nodeIsMissing(moduleName) && moduleName.kind !== 8) { + if (!ts.nodeIsMissing(moduleName) && moduleName.kind !== 8 /* StringLiteral */) { error(moduleName, ts.Diagnostics.String_literal_expected); return false; } - var inAmbientExternalModule = node.parent.kind === 206 && node.parent.parent.name.kind === 8; - if (node.parent.kind !== 227 && !inAmbientExternalModule) { - error(moduleName, node.kind === 215 ? + var inAmbientExternalModule = node.parent.kind === 206 /* ModuleBlock */ && node.parent.parent.name.kind === 8 /* StringLiteral */; + if (node.parent.kind !== 227 /* SourceFile */ && !inAmbientExternalModule) { + error(moduleName, node.kind === 215 /* ExportDeclaration */ ? ts.Diagnostics.Export_declarations_are_not_permitted_in_an_internal_module : ts.Diagnostics.Import_declarations_in_an_internal_module_cannot_reference_an_external_module); return false; } if (inAmbientExternalModule && isExternalModuleNameRelative(moduleName.text)) { + // TypeScript 1.0 spec (April 2013): 12.1.6 + // An ExternalImportDeclaration in an AmbientExternalModuleDeclaration may reference + // other external modules only through top - level external module names. + // Relative external module names are not permitted. error(node, ts.Diagnostics.Import_or_export_declaration_in_an_ambient_external_module_declaration_cannot_reference_external_module_through_relative_external_module_name); return false; } @@ -17107,11 +20061,11 @@ var ts; var symbol = getSymbolOfNode(node); var target = resolveAlias(symbol); if (target !== unknownSymbol) { - var excludedMeanings = (symbol.flags & 107455 ? 107455 : 0) | - (symbol.flags & 793056 ? 793056 : 0) | - (symbol.flags & 1536 ? 1536 : 0); + var excludedMeanings = (symbol.flags & 107455 /* Value */ ? 107455 /* Value */ : 0) | + (symbol.flags & 793056 /* Type */ ? 793056 /* Type */ : 0) | + (symbol.flags & 1536 /* Namespace */ ? 1536 /* Namespace */ : 0); if (target.flags & excludedMeanings) { - var message = node.kind === 217 ? + var message = node.kind === 217 /* ExportSpecifier */ ? ts.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : ts.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; error(node, message, symbolToString(symbol)); @@ -17124,7 +20078,7 @@ var ts; checkAliasSymbol(node); } function checkImportDeclaration(node) { - if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499)) { + if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499 /* Modifier */)) { grammarErrorOnFirstToken(node, ts.Diagnostics.An_import_declaration_cannot_have_modifiers); } if (checkExternalImportOrExportDeclaration(node)) { @@ -17134,7 +20088,7 @@ var ts; checkImportBinding(importClause); } if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 211) { + if (importClause.namedBindings.kind === 211 /* NamespaceImport */) { checkImportBinding(importClause.namedBindings); } else { @@ -17148,43 +20102,48 @@ var ts; checkGrammarDecorators(node) || checkGrammarModifiers(node); if (ts.isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) { checkImportBinding(node); - if (node.flags & 1) { + if (node.flags & 1 /* Export */) { markExportAsReferenced(node); } if (ts.isInternalModuleImportEqualsDeclaration(node)) { var target = resolveAlias(getSymbolOfNode(node)); if (target !== unknownSymbol) { - if (target.flags & 107455) { + if (target.flags & 107455 /* Value */) { + // Target is a value symbol, check that it is not hidden by a local declaration with the same name var moduleName = getFirstIdentifier(node.moduleReference); - if (!(resolveEntityName(moduleName, 107455 | 1536).flags & 1536)) { + if (!(resolveEntityName(moduleName, 107455 /* Value */ | 1536 /* Namespace */).flags & 1536 /* Namespace */)) { error(moduleName, ts.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, ts.declarationNameToString(moduleName)); } } - if (target.flags & 793056) { + if (target.flags & 793056 /* Type */) { checkTypeNameIsReserved(node.name, ts.Diagnostics.Import_name_cannot_be_0); } } } else { - if (languageVersion >= 2) { + if (languageVersion >= 2 /* ES6 */) { + // Import equals declaration is deprecated in es6 or above grammarErrorOnNode(node, ts.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_or_import_d_from_mod_instead); } } } } function checkExportDeclaration(node) { - if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499)) { + if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499 /* Modifier */)) { grammarErrorOnFirstToken(node, ts.Diagnostics.An_export_declaration_cannot_have_modifiers); } if (!node.moduleSpecifier || checkExternalImportOrExportDeclaration(node)) { if (node.exportClause) { + // export { x, y } + // export { x, y } from "foo" ts.forEach(node.exportClause.elements, checkExportSpecifier); - var inAmbientExternalModule = node.parent.kind === 206 && node.parent.parent.name.kind === 8; - if (node.parent.kind !== 227 && !inAmbientExternalModule) { + var inAmbientExternalModule = node.parent.kind === 206 /* ModuleBlock */ && node.parent.parent.name.kind === 8 /* StringLiteral */; + if (node.parent.kind !== 227 /* SourceFile */ && !inAmbientExternalModule) { error(node, ts.Diagnostics.Export_declarations_are_not_permitted_in_an_internal_module); } } else { + // export * from "foo" var moduleSymbol = resolveExternalModuleName(node, node.moduleSpecifier); if (moduleSymbol && moduleSymbol.exports["export="]) { error(node.moduleSpecifier, ts.Diagnostics.External_module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol)); @@ -17199,38 +20158,32 @@ var ts; } } function checkExportAssignment(node) { - var container = node.parent.kind === 227 ? node.parent : node.parent.parent; - if (container.kind === 205 && container.name.kind === 65) { + var container = node.parent.kind === 227 /* SourceFile */ ? node.parent : node.parent.parent; + if (container.kind === 205 /* ModuleDeclaration */ && container.name.kind === 65 /* Identifier */) { error(node, ts.Diagnostics.An_export_assignment_cannot_be_used_in_an_internal_module); return; } - if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499)) { + // Grammar checking + if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499 /* Modifier */)) { grammarErrorOnFirstToken(node, ts.Diagnostics.An_export_assignment_cannot_have_modifiers); } - if (node.expression) { - if (node.expression.kind === 65) { - markExportAsReferenced(node); - } - else { - checkExpressionCached(node.expression); - } + if (node.expression.kind === 65 /* Identifier */) { + markExportAsReferenced(node); } - if (node.type) { - checkSourceElement(node.type); - if (!ts.isInAmbientContext(node)) { - grammarErrorOnFirstToken(node.type, ts.Diagnostics.A_type_annotation_on_an_export_statement_is_only_allowed_in_an_ambient_external_module_declaration); - } + else { + checkExpressionCached(node.expression); } checkExternalModuleExports(container); - if (node.isExportEquals && languageVersion >= 2) { + if (node.isExportEquals && languageVersion >= 2 /* ES6 */) { + // export assignment is deprecated in es6 or above grammarErrorOnNode(node, ts.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_export_default_instead); } } function getModuleStatements(node) { - if (node.kind === 227) { + if (node.kind === 227 /* SourceFile */) { return node.statements; } - if (node.kind === 205 && node.body.kind === 206) { + if (node.kind === 205 /* ModuleDeclaration */ && node.body.kind === 206 /* ModuleBlock */) { return node.body.statements; } return emptyArray; @@ -17259,187 +20212,196 @@ var ts; if (!node) return; switch (node.kind) { - case 128: + case 128 /* TypeParameter */: return checkTypeParameter(node); - case 129: + case 129 /* Parameter */: return checkParameter(node); - case 132: - case 131: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: return checkPropertyDeclaration(node); - case 142: - case 143: - case 138: - case 139: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: return checkSignatureDeclaration(node); - case 140: + case 140 /* IndexSignature */: return checkSignatureDeclaration(node); - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return checkMethodDeclaration(node); - case 135: + case 135 /* Constructor */: return checkConstructorDeclaration(node); - case 136: - case 137: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: return checkAccessorDeclaration(node); - case 141: + case 141 /* TypeReference */: return checkTypeReferenceNode(node); - case 144: + case 144 /* TypeQuery */: return checkTypeQuery(node); - case 145: + case 145 /* TypeLiteral */: return checkTypeLiteral(node); - case 146: + case 146 /* ArrayType */: return checkArrayType(node); - case 147: + case 147 /* TupleType */: return checkTupleType(node); - case 148: + case 148 /* UnionType */: return checkUnionType(node); - case 149: + case 149 /* ParenthesizedType */: return checkSourceElement(node.type); - case 200: + case 200 /* FunctionDeclaration */: return checkFunctionDeclaration(node); - case 179: - case 206: + case 179 /* Block */: + case 206 /* ModuleBlock */: return checkBlock(node); - case 180: + case 180 /* VariableStatement */: return checkVariableStatement(node); - case 182: + case 182 /* ExpressionStatement */: return checkExpressionStatement(node); - case 183: + case 183 /* IfStatement */: return checkIfStatement(node); - case 184: + case 184 /* DoStatement */: return checkDoStatement(node); - case 185: + case 185 /* WhileStatement */: return checkWhileStatement(node); - case 186: + case 186 /* ForStatement */: return checkForStatement(node); - case 187: + case 187 /* ForInStatement */: return checkForInStatement(node); - case 188: + case 188 /* ForOfStatement */: return checkForOfStatement(node); - case 189: - case 190: + case 189 /* ContinueStatement */: + case 190 /* BreakStatement */: return checkBreakOrContinueStatement(node); - case 191: + case 191 /* ReturnStatement */: return checkReturnStatement(node); - case 192: + case 192 /* WithStatement */: return checkWithStatement(node); - case 193: + case 193 /* SwitchStatement */: return checkSwitchStatement(node); - case 194: + case 194 /* LabeledStatement */: return checkLabeledStatement(node); - case 195: + case 195 /* ThrowStatement */: return checkThrowStatement(node); - case 196: + case 196 /* TryStatement */: return checkTryStatement(node); - case 198: + case 198 /* VariableDeclaration */: return checkVariableDeclaration(node); - case 152: + case 152 /* BindingElement */: return checkBindingElement(node); - case 201: + case 201 /* ClassDeclaration */: return checkClassDeclaration(node); - case 202: + case 202 /* InterfaceDeclaration */: return checkInterfaceDeclaration(node); - case 203: + case 203 /* TypeAliasDeclaration */: return checkTypeAliasDeclaration(node); - case 204: + case 204 /* EnumDeclaration */: return checkEnumDeclaration(node); - case 205: + case 205 /* ModuleDeclaration */: return checkModuleDeclaration(node); - case 209: + case 209 /* ImportDeclaration */: return checkImportDeclaration(node); - case 208: + case 208 /* ImportEqualsDeclaration */: return checkImportEqualsDeclaration(node); - case 215: + case 215 /* ExportDeclaration */: return checkExportDeclaration(node); - case 214: + case 214 /* ExportAssignment */: return checkExportAssignment(node); - case 181: + case 181 /* EmptyStatement */: checkGrammarStatementInAmbientContext(node); return; - case 197: + case 197 /* DebuggerStatement */: checkGrammarStatementInAmbientContext(node); return; - case 218: + case 218 /* MissingDeclaration */: return checkMissingDeclaration(node); } } + // Function expression bodies are checked after all statements in the enclosing body. This is to ensure + // constructs like the following are permitted: + // let foo = function () { + // let s = foo(); + // return "hello"; + // } + // Here, performing a full type check of the body of the function expression whilst in the process of + // determining the type of foo would cause foo to be given type any because of the recursive reference. + // Delaying the type check of the body ensures foo has been assigned a type. function checkFunctionExpressionBodies(node) { switch (node.kind) { - case 162: - case 163: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: ts.forEach(node.parameters, checkFunctionExpressionBodies); checkFunctionExpressionOrObjectLiteralMethodBody(node); break; - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: ts.forEach(node.parameters, checkFunctionExpressionBodies); if (ts.isObjectLiteralMethod(node)) { checkFunctionExpressionOrObjectLiteralMethodBody(node); } break; - case 135: - case 136: - case 137: - case 200: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 200 /* FunctionDeclaration */: ts.forEach(node.parameters, checkFunctionExpressionBodies); break; - case 192: + case 192 /* WithStatement */: checkFunctionExpressionBodies(node.expression); break; - case 129: - case 132: - case 131: - case 150: - case 151: - case 152: - case 153: - case 154: - case 224: - case 155: - case 156: - case 157: - case 158: - case 159: - case 171: - case 176: - case 160: - case 161: - case 165: - case 166: - case 164: - case 167: - case 168: - case 169: - case 170: - case 173: - case 179: - case 206: - case 180: - case 182: - case 183: - case 184: - case 185: - case 186: - case 187: - case 188: - case 189: - case 190: - case 191: - case 193: - case 207: - case 220: - case 221: - case 194: - case 195: - case 196: - case 223: - case 198: - case 199: - case 201: - case 204: - case 226: - case 214: - case 227: + case 129 /* Parameter */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 150 /* ObjectBindingPattern */: + case 151 /* ArrayBindingPattern */: + case 152 /* BindingElement */: + case 153 /* ArrayLiteralExpression */: + case 154 /* ObjectLiteralExpression */: + case 224 /* PropertyAssignment */: + case 155 /* PropertyAccessExpression */: + case 156 /* ElementAccessExpression */: + case 157 /* CallExpression */: + case 158 /* NewExpression */: + case 159 /* TaggedTemplateExpression */: + case 171 /* TemplateExpression */: + case 176 /* TemplateSpan */: + case 160 /* TypeAssertionExpression */: + case 161 /* ParenthesizedExpression */: + case 165 /* TypeOfExpression */: + case 166 /* VoidExpression */: + case 164 /* DeleteExpression */: + case 167 /* PrefixUnaryExpression */: + case 168 /* PostfixUnaryExpression */: + case 169 /* BinaryExpression */: + case 170 /* ConditionalExpression */: + case 173 /* SpreadElementExpression */: + case 179 /* Block */: + case 206 /* ModuleBlock */: + case 180 /* VariableStatement */: + case 182 /* ExpressionStatement */: + case 183 /* IfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 189 /* ContinueStatement */: + case 190 /* BreakStatement */: + case 191 /* ReturnStatement */: + case 193 /* SwitchStatement */: + case 207 /* CaseBlock */: + case 220 /* CaseClause */: + case 221 /* DefaultClause */: + case 194 /* LabeledStatement */: + case 195 /* ThrowStatement */: + case 196 /* TryStatement */: + case 223 /* CatchClause */: + case 198 /* VariableDeclaration */: + case 199 /* VariableDeclarationList */: + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + case 226 /* EnumMember */: + case 214 /* ExportAssignment */: + case 227 /* SourceFile */: ts.forEachChild(node, checkFunctionExpressionBodies); break; } @@ -17449,9 +20411,11 @@ var ts; checkSourceFileWorker(node); ts.checkTime += new Date().getTime() - start; } + // Fully type check a source file and collect the relevant diagnostics. function checkSourceFileWorker(node) { var links = getNodeLinks(node); - if (!(links.flags & 1)) { + if (!(links.flags & 1 /* TypeChecked */)) { + // Grammar checking checkGrammarSourceFile(node); emitExtends = false; potentialThisCollisions.length = 0; @@ -17465,12 +20429,15 @@ var ts; potentialThisCollisions.length = 0; } if (emitExtends) { - links.flags |= 8; + links.flags |= 8 /* EmitExtends */; } if (emitDecorate) { - links.flags |= 512; + links.flags |= 512 /* EmitDecorate */; } - links.flags |= 1; + if (emitParam) { + links.flags |= 1024 /* EmitParam */; + } + links.flags |= 1 /* TypeChecked */; } } function getDiagnostics(sourceFile) { @@ -17491,10 +20458,11 @@ var ts; throw new Error("Trying to get diagnostics from a type checker that does not produce them."); } } + // Language service support function isInsideWithStatementBody(node) { if (node) { while (node.parent) { - if (node.parent.kind === 192 && node.parent.statement === node) { + if (node.parent.kind === 192 /* WithStatement */ && node.parent.statement === node) { return true; } node = node.parent; @@ -17506,6 +20474,7 @@ var ts; var symbols = {}; var memberFlags = 0; if (isInsideWithStatementBody(location)) { + // We cannot answer semantic questions within a with block, do not proceed any further return []; } populateSymbols(); @@ -17516,23 +20485,23 @@ var ts; copySymbols(location.locals, meaning); } switch (location.kind) { - case 227: + case 227 /* SourceFile */: if (!ts.isExternalModule(location)) { break; } - case 205: - copySymbols(getSymbolOfNode(location).exports, meaning & 8914931); + case 205 /* ModuleDeclaration */: + copySymbols(getSymbolOfNode(location).exports, meaning & 8914931 /* ModuleMember */); break; - case 204: - copySymbols(getSymbolOfNode(location).exports, meaning & 8); + case 204 /* EnumDeclaration */: + copySymbols(getSymbolOfNode(location).exports, meaning & 8 /* EnumMember */); break; - case 201: - case 202: - if (!(memberFlags & 128)) { - copySymbols(getSymbolOfNode(location).members, meaning & 793056); + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + if (!(memberFlags & 128 /* Static */)) { + copySymbols(getSymbolOfNode(location).members, meaning & 793056 /* Type */); } break; - case 162: + case 162 /* FunctionExpression */: if (location.name) { copySymbol(location.symbol, meaning); } @@ -17543,6 +20512,7 @@ var ts; } copySymbols(globals, meaning); } + // Returns 'true' if we should stop processing symbols. function copySymbol(symbol, meaning) { if (symbol.flags & meaning) { var id = symbol.name; @@ -17561,6 +20531,7 @@ var ts; } } if (isInsideWithStatementBody(location)) { + // We cannot answer semantic questions within a with block, do not proceed any further return []; } while (location) { @@ -17568,22 +20539,22 @@ var ts; copySymbols(location.locals, meaning); } switch (location.kind) { - case 227: + case 227 /* SourceFile */: if (!ts.isExternalModule(location)) break; - case 205: - copySymbols(getSymbolOfNode(location).exports, meaning & 8914931); + case 205 /* ModuleDeclaration */: + copySymbols(getSymbolOfNode(location).exports, meaning & 8914931 /* ModuleMember */); break; - case 204: - copySymbols(getSymbolOfNode(location).exports, meaning & 8); + case 204 /* EnumDeclaration */: + copySymbols(getSymbolOfNode(location).exports, meaning & 8 /* EnumMember */); break; - case 201: - case 202: - if (!(memberFlags & 128)) { - copySymbols(getSymbolOfNode(location).members, meaning & 793056); + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + if (!(memberFlags & 128 /* Static */)) { + copySymbols(getSymbolOfNode(location).members, meaning & 793056 /* Type */); } break; - case 162: + case 162 /* FunctionExpression */: if (location.name) { copySymbol(location.symbol, meaning); } @@ -17596,110 +20567,124 @@ var ts; return symbolsToArray(symbols); } function isTypeDeclarationName(name) { - return name.kind == 65 && + return name.kind == 65 /* Identifier */ && isTypeDeclaration(name.parent) && name.parent.name === name; } function isTypeDeclaration(node) { switch (node.kind) { - case 128: - case 201: - case 202: - case 203: - case 204: + case 128 /* TypeParameter */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 204 /* EnumDeclaration */: return true; } } + // True if the given identifier is part of a type reference function isTypeReferenceIdentifier(entityName) { var node = entityName; - while (node.parent && node.parent.kind === 126) { + while (node.parent && node.parent.kind === 126 /* QualifiedName */) { node = node.parent; } - return node.parent && node.parent.kind === 141; + return node.parent && node.parent.kind === 141 /* TypeReference */; } function isHeritageClauseElementIdentifier(entityName) { var node = entityName; - while (node.parent && node.parent.kind === 155) { + while (node.parent && node.parent.kind === 155 /* PropertyAccessExpression */) { node = node.parent; } - return node.parent && node.parent.kind === 177; + return node.parent && node.parent.kind === 177 /* HeritageClauseElement */; } function isTypeNodeOrHeritageClauseElement(node) { - if (141 <= node.kind && node.kind <= 149) { + if (141 /* FirstTypeNode */ <= node.kind && node.kind <= 149 /* LastTypeNode */) { return true; } switch (node.kind) { - case 112: - case 119: - case 121: - case 113: - case 122: + case 112 /* AnyKeyword */: + case 119 /* NumberKeyword */: + case 121 /* StringKeyword */: + case 113 /* BooleanKeyword */: + case 122 /* SymbolKeyword */: return true; - case 99: - return node.parent.kind !== 166; - case 8: - return node.parent.kind === 129; - case 177: + case 99 /* VoidKeyword */: + return node.parent.kind !== 166 /* VoidExpression */; + case 8 /* StringLiteral */: + // Specialized signatures can have string literals as their parameters' type names + return node.parent.kind === 129 /* Parameter */; + case 177 /* HeritageClauseElement */: return true; - case 65: - if (node.parent.kind === 126 && node.parent.right === node) { + // Identifiers and qualified names may be type nodes, depending on their context. Climb + // above them to find the lowest container + case 65 /* Identifier */: + // If the identifier is the RHS of a qualified name, then it's a type iff its parent is. + if (node.parent.kind === 126 /* QualifiedName */ && node.parent.right === node) { node = node.parent; } - else if (node.parent.kind === 155 && node.parent.name === node) { + else if (node.parent.kind === 155 /* PropertyAccessExpression */ && node.parent.name === node) { node = node.parent; } - case 126: - case 155: - ts.Debug.assert(node.kind === 65 || node.kind === 126 || node.kind === 155, "'node' was expected to be a qualified name, identifier or property access in 'isTypeNode'."); - var parent_5 = node.parent; - if (parent_5.kind === 144) { + // fall through + case 126 /* QualifiedName */: + case 155 /* PropertyAccessExpression */: + // At this point, node is either a qualified name or an identifier + ts.Debug.assert(node.kind === 65 /* Identifier */ || node.kind === 126 /* QualifiedName */ || node.kind === 155 /* PropertyAccessExpression */, "'node' was expected to be a qualified name, identifier or property access in 'isTypeNode'."); + var parent_6 = node.parent; + if (parent_6.kind === 144 /* TypeQuery */) { return false; } - if (141 <= parent_5.kind && parent_5.kind <= 149) { + // Do not recursively call isTypeNode on the parent. In the example: + // + // let a: A.B.C; + // + // Calling isTypeNode would consider the qualified name A.B a type node. Only C or + // A.B.C is a type node. + if (141 /* FirstTypeNode */ <= parent_6.kind && parent_6.kind <= 149 /* LastTypeNode */) { return true; } - switch (parent_5.kind) { - case 177: + switch (parent_6.kind) { + case 177 /* HeritageClauseElement */: return true; - case 128: - return node === parent_5.constraint; - case 132: - case 131: - case 129: - case 198: - return node === parent_5.type; - case 200: - case 162: - case 163: - case 135: - case 134: - case 133: - case 136: - case 137: - return node === parent_5.type; - case 138: - case 139: - case 140: - return node === parent_5.type; - case 160: - return node === parent_5.type; - case 157: - case 158: - return parent_5.typeArguments && ts.indexOf(parent_5.typeArguments, node) >= 0; - case 159: + case 128 /* TypeParameter */: + return node === parent_6.constraint; + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 129 /* Parameter */: + case 198 /* VariableDeclaration */: + return node === parent_6.type; + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + case 135 /* Constructor */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + return node === parent_6.type; + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: + return node === parent_6.type; + case 160 /* TypeAssertionExpression */: + return node === parent_6.type; + case 157 /* CallExpression */: + case 158 /* NewExpression */: + return parent_6.typeArguments && ts.indexOf(parent_6.typeArguments, node) >= 0; + case 159 /* TaggedTemplateExpression */: + // TODO (drosen): TaggedTemplateExpressions may eventually support type arguments. return false; } } return false; } function getLeftSideOfImportEqualsOrExportAssignment(nodeOnRightSide) { - while (nodeOnRightSide.parent.kind === 126) { + while (nodeOnRightSide.parent.kind === 126 /* QualifiedName */) { nodeOnRightSide = nodeOnRightSide.parent; } - if (nodeOnRightSide.parent.kind === 208) { + if (nodeOnRightSide.parent.kind === 208 /* ImportEqualsDeclaration */) { return nodeOnRightSide.parent.moduleReference === nodeOnRightSide && nodeOnRightSide.parent; } - if (nodeOnRightSide.parent.kind === 214) { + if (nodeOnRightSide.parent.kind === 214 /* ExportAssignment */) { return nodeOnRightSide.parent.expression === nodeOnRightSide && nodeOnRightSide.parent; } return undefined; @@ -17711,11 +20696,13 @@ var ts; if (ts.isDeclarationName(entityName)) { return getSymbolOfNode(entityName.parent); } - if (entityName.parent.kind === 214) { - return resolveEntityName(entityName, 107455 | 793056 | 1536 | 8388608); + if (entityName.parent.kind === 214 /* ExportAssignment */) { + return resolveEntityName(entityName, + /*all meanings*/ 107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */ | 8388608 /* Alias */); } - if (entityName.kind !== 155) { + if (entityName.kind !== 155 /* PropertyAccessExpression */) { if (isInRightSideOfImportOrExportAssignment(entityName)) { + // Since we already checked for ExportAssignment, this really could only be an Import return getSymbolOfPartOfRightHandSideOfImportEquals(entityName); } } @@ -17723,26 +20710,29 @@ var ts; entityName = entityName.parent; } if (isHeritageClauseElementIdentifier(entityName)) { - var meaning = entityName.parent.kind === 177 ? 793056 : 1536; - meaning |= 8388608; + var meaning = entityName.parent.kind === 177 /* HeritageClauseElement */ ? 793056 /* Type */ : 1536 /* Namespace */; + meaning |= 8388608 /* Alias */; return resolveEntityName(entityName, meaning); } else if (ts.isExpression(entityName)) { if (ts.nodeIsMissing(entityName)) { + // Missing entity name. return undefined; } - if (entityName.kind === 65) { - var meaning = 107455 | 8388608; + if (entityName.kind === 65 /* Identifier */) { + // Include aliases in the meaning, this ensures that we do not follow aliases to where they point and instead + // return the alias symbol. + var meaning = 107455 /* Value */ | 8388608 /* Alias */; return resolveEntityName(entityName, meaning); } - else if (entityName.kind === 155) { + else if (entityName.kind === 155 /* PropertyAccessExpression */) { var symbol = getNodeLinks(entityName).resolvedSymbol; if (!symbol) { checkPropertyAccessExpression(entityName); } return getNodeLinks(entityName).resolvedSymbol; } - else if (entityName.kind === 126) { + else if (entityName.kind === 126 /* QualifiedName */) { var symbol = getNodeLinks(entityName).resolvedSymbol; if (!symbol) { checkQualifiedName(entityName); @@ -17751,49 +20741,58 @@ var ts; } } else if (isTypeReferenceIdentifier(entityName)) { - var meaning = entityName.parent.kind === 141 ? 793056 : 1536; - meaning |= 8388608; + var meaning = entityName.parent.kind === 141 /* TypeReference */ ? 793056 /* Type */ : 1536 /* Namespace */; + // Include aliases in the meaning, this ensures that we do not follow aliases to where they point and instead + // return the alias symbol. + meaning |= 8388608 /* Alias */; return resolveEntityName(entityName, meaning); } + // Do we want to return undefined here? return undefined; } function getSymbolInfo(node) { if (isInsideWithStatementBody(node)) { + // We cannot answer semantic questions within a with block, do not proceed any further return undefined; } if (ts.isDeclarationName(node)) { + // This is a declaration, call getSymbolOfNode return getSymbolOfNode(node.parent); } - if (node.kind === 65 && isInRightSideOfImportOrExportAssignment(node)) { - return node.parent.kind === 214 + if (node.kind === 65 /* Identifier */ && isInRightSideOfImportOrExportAssignment(node)) { + return node.parent.kind === 214 /* ExportAssignment */ ? getSymbolOfEntityNameOrPropertyAccessExpression(node) : getSymbolOfPartOfRightHandSideOfImportEquals(node); } switch (node.kind) { - case 65: - case 155: - case 126: + case 65 /* Identifier */: + case 155 /* PropertyAccessExpression */: + case 126 /* QualifiedName */: return getSymbolOfEntityNameOrPropertyAccessExpression(node); - case 93: - case 91: + case 93 /* ThisKeyword */: + case 91 /* SuperKeyword */: var type = checkExpression(node); return type.symbol; - case 114: + case 114 /* ConstructorKeyword */: + // constructor keyword for an overload, should take us to the definition if it exist var constructorDeclaration = node.parent; - if (constructorDeclaration && constructorDeclaration.kind === 135) { + if (constructorDeclaration && constructorDeclaration.kind === 135 /* Constructor */) { return constructorDeclaration.parent.symbol; } return undefined; - case 8: + case 8 /* StringLiteral */: + // External module name in an import declaration var moduleName; if ((ts.isExternalModuleImportEqualsDeclaration(node.parent.parent) && ts.getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node) || - ((node.parent.kind === 209 || node.parent.kind === 215) && + ((node.parent.kind === 209 /* ImportDeclaration */ || node.parent.kind === 215 /* ExportDeclaration */) && node.parent.moduleSpecifier === node)) { return resolveExternalModuleName(node, node); } - case 7: - if (node.parent.kind == 156 && node.parent.argumentExpression === node) { + // Intentional fall-through + case 7 /* NumericLiteral */: + // index access + if (node.parent.kind == 156 /* ElementAccessExpression */ && node.parent.argumentExpression === node) { var objectType = checkExpression(node.parent.expression); if (objectType === unknownType) return undefined; @@ -17807,13 +20806,17 @@ var ts; return undefined; } function getShorthandAssignmentValueSymbol(location) { - if (location && location.kind === 225) { - return resolveEntityName(location.name, 107455); + // The function returns a value symbol of an identifier in the short-hand property assignment. + // This is necessary as an identifier in short-hand property assignment can contains two meaning: + // property name and property value. + if (location && location.kind === 225 /* ShorthandPropertyAssignment */) { + return resolveEntityName(location.name, 107455 /* Value */); } return undefined; } function getTypeOfNode(node) { if (isInsideWithStatementBody(node)) { + // We cannot answer semantic questions within a with block, do not proceed any further return unknownType; } if (isTypeNodeOrHeritageClauseElement(node)) { @@ -17823,6 +20826,7 @@ var ts; return getTypeOfExpression(node); } if (isTypeDeclaration(node)) { + // In this case, we call getSymbolOfNode instead of getSymbolInfo because it is a declaration var symbol = getSymbolOfNode(node); return getDeclaredTypeOfSymbol(symbol); } @@ -17831,6 +20835,7 @@ var ts; return symbol && getDeclaredTypeOfSymbol(symbol); } if (ts.isDeclaration(node)) { + // In this case, we call getSymbolOfNode instead of getSymbolInfo because it is a declaration var symbol = getSymbolOfNode(node); return getTypeOfSymbol(symbol); } @@ -17851,10 +20856,12 @@ var ts; } return checkExpression(expr); } + // Return the list of properties of the given type, augmented with properties from Function + // if the type has call or construct signatures function getAugmentedPropertiesOfType(type) { type = getApparentType(type); var propsByName = createSymbolTable(getPropertiesOfType(type)); - if (getSignaturesOfType(type, 0).length || getSignaturesOfType(type, 1).length) { + if (getSignaturesOfType(type, 0 /* Call */).length || getSignaturesOfType(type, 1 /* Construct */).length) { ts.forEach(getPropertiesOfType(globalFunctionType), function (p) { if (!ts.hasProperty(propsByName, p.name)) { propsByName[p.name] = p; @@ -17864,7 +20871,7 @@ var ts; return getNamedMembers(propsByName); } function getRootSymbols(symbol) { - if (symbol.flags & 268435456) { + if (symbol.flags & 268435456 /* UnionProperty */) { var symbols = []; var name_10 = symbol.name; ts.forEach(getSymbolLinks(symbol).unionType.types, function (t) { @@ -17872,7 +20879,7 @@ var ts; }); return symbols; } - else if (symbol.flags & 67108864) { + else if (symbol.flags & 67108864 /* Transient */) { var target = getSymbolLinks(symbol).target; if (target) { return [target]; @@ -17880,19 +20887,22 @@ var ts; } return [symbol]; } + // Emitter support function isExternalModuleSymbol(symbol) { - return symbol.flags & 512 && symbol.declarations.length === 1 && symbol.declarations[0].kind === 227; + return symbol.flags & 512 /* ValueModule */ && symbol.declarations.length === 1 && symbol.declarations[0].kind === 227 /* SourceFile */; } function getAliasNameSubstitution(symbol, getGeneratedNameForNode) { - if (languageVersion >= 2) { + // If this is es6 or higher, just use the name of the export + // no need to qualify it. + if (languageVersion >= 2 /* ES6 */) { return undefined; } var node = getDeclarationOfAliasSymbol(symbol); if (node) { - if (node.kind === 210) { + if (node.kind === 210 /* ImportClause */) { return getGeneratedNameForNode(node.parent) + ".default"; } - if (node.kind === 213) { + if (node.kind === 213 /* ImportSpecifier */) { var moduleName = getGeneratedNameForNode(node.parent.parent.parent); var propertyName = node.propertyName || node.name; return moduleName + "." + ts.unescapeIdentifier(propertyName.text); @@ -17901,7 +20911,9 @@ var ts; } function getExportNameSubstitution(symbol, location, getGeneratedNameForNode) { if (isExternalModuleSymbol(symbol.parent)) { - if (languageVersion >= 2) { + // If this is es6 or higher, just use the name of the export + // no need to qualify it. + if (languageVersion >= 2 /* ES6 */) { return undefined; } return "exports." + ts.unescapeIdentifier(symbol.name); @@ -17909,7 +20921,7 @@ var ts; var node = location; var containerSymbol = getParentOfSymbol(symbol); while (node) { - if ((node.kind === 205 || node.kind === 204) && getSymbolOfNode(node) === containerSymbol) { + if ((node.kind === 205 /* ModuleDeclaration */ || node.kind === 204 /* EnumDeclaration */) && getSymbolOfNode(node) === containerSymbol) { return getGeneratedNameForNode(node) + "." + ts.unescapeIdentifier(symbol.name); } node = node.parent; @@ -17918,36 +20930,43 @@ var ts; function getExpressionNameSubstitution(node, getGeneratedNameForNode) { var symbol = getNodeLinks(node).resolvedSymbol || (ts.isDeclarationName(node) ? getSymbolOfNode(node.parent) : undefined); if (symbol) { + // Whan an identifier resolves to a parented symbol, it references an exported entity from + // another declaration of the same internal module. if (symbol.parent) { return getExportNameSubstitution(symbol, node.parent, getGeneratedNameForNode); } + // If we reference an exported entity within the same module declaration, then whether + // we prefix depends on the kind of entity. SymbolFlags.ExportHasLocal encompasses all the + // kinds that we do NOT prefix. var exportSymbol = getExportSymbolOfValueSymbolIfExported(symbol); - if (symbol !== exportSymbol && !(exportSymbol.flags & 944)) { + if (symbol !== exportSymbol && !(exportSymbol.flags & 944 /* ExportHasLocal */)) { return getExportNameSubstitution(exportSymbol, node.parent, getGeneratedNameForNode); } - if (symbol.flags & 8388608) { + // Named imports from ES6 import declarations are rewritten + if (symbol.flags & 8388608 /* Alias */) { return getAliasNameSubstitution(symbol, getGeneratedNameForNode); } } } function isValueAliasDeclaration(node) { switch (node.kind) { - case 208: - case 210: - case 211: - case 213: - case 217: + case 208 /* ImportEqualsDeclaration */: + case 210 /* ImportClause */: + case 211 /* NamespaceImport */: + case 213 /* ImportSpecifier */: + case 217 /* ExportSpecifier */: return isAliasResolvedToValue(getSymbolOfNode(node)); - case 215: + case 215 /* ExportDeclaration */: var exportClause = node.exportClause; return exportClause && ts.forEach(exportClause.elements, isValueAliasDeclaration); - case 214: - return node.expression && node.expression.kind === 65 ? isAliasResolvedToValue(getSymbolOfNode(node)) : true; + case 214 /* ExportAssignment */: + return node.expression && node.expression.kind === 65 /* Identifier */ ? isAliasResolvedToValue(getSymbolOfNode(node)) : true; } return false; } function isTopLevelValueImportEqualsWithEntityName(node) { - if (node.parent.kind !== 227 || !ts.isInternalModuleImportEqualsDeclaration(node)) { + if (node.parent.kind !== 227 /* SourceFile */ || !ts.isInternalModuleImportEqualsDeclaration(node)) { + // parent is not source file or it is not reference to internal module return false; } var isValue = isAliasResolvedToValue(getSymbolOfNode(node)); @@ -17958,7 +20977,8 @@ var ts; if (target === unknownSymbol && compilerOptions.separateCompilation) { return true; } - return target !== unknownSymbol && target && target.flags & 107455 && !isConstEnumOrConstEnumOnlyModule(target); + // const enums and modules that contain only const enums are not considered values from the emit perespective + return target !== unknownSymbol && target && target.flags & 107455 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target); } function isConstEnumOrConstEnumOnlyModule(s) { return isConstEnumSymbol(s) || s.constEnumOnlyModule; @@ -17979,7 +20999,18 @@ var ts; if (ts.nodeIsPresent(node.body)) { var symbol = getSymbolOfNode(node); var signaturesOfSymbol = getSignaturesOfSymbol(symbol); + // If this function body corresponds to function with multiple signature, it is implementation of overload + // e.g.: function foo(a: string): string; + // function foo(a: number): number; + // function foo(a: any) { // This is implementation of the overloads + // return a; + // } return signaturesOfSymbol.length > 1 || + // If there is single signature for the symbol, it is overload if that signature isn't coming from the node + // e.g.: function foo(a: string): string; + // function foo(a: any) { // This is implementation of the overloads + // return a; + // } (signaturesOfSymbol.length === 1 && signaturesOfSymbol[0].declaration !== node); } return false; @@ -17992,20 +21023,209 @@ var ts; return getNodeLinks(node).enumMemberValue; } function getConstantValue(node) { - if (node.kind === 226) { + if (node.kind === 226 /* EnumMember */) { return getEnumMemberValue(node); } var symbol = getNodeLinks(node).resolvedSymbol; - if (symbol && (symbol.flags & 8)) { + if (symbol && (symbol.flags & 8 /* EnumMember */)) { + // inline property\index accesses only for const enums if (ts.isConstEnumDeclaration(symbol.valueDeclaration.parent)) { return getEnumMemberValue(symbol.valueDeclaration); } } return undefined; } + /** Serializes an EntityName (with substitutions) to an appropriate JS constructor value. Used by the __metadata decorator. */ + function serializeEntityName(node, getGeneratedNameForNode, fallbackPath) { + if (node.kind === 65 /* Identifier */) { + var substitution = getExpressionNameSubstitution(node, getGeneratedNameForNode); + var text = substitution || node.text; + if (fallbackPath) { + fallbackPath.push(text); + } + else { + return text; + } + } + else { + var left = serializeEntityName(node.left, getGeneratedNameForNode, fallbackPath); + var right = serializeEntityName(node.right, getGeneratedNameForNode, fallbackPath); + if (!fallbackPath) { + return left + "." + right; + } + } + } + /** Serializes a TypeReferenceNode to an appropriate JS constructor value. Used by the __metadata decorator. */ + function serializeTypeReferenceNode(node, getGeneratedNameForNode) { + // serialization of a TypeReferenceNode uses the following rules: + // + // * The serialized type of a TypeReference that is `void` is "void 0". + // * The serialized type of a TypeReference that is a `boolean` is "Boolean". + // * The serialized type of a TypeReference that is an enum or `number` is "Number". + // * The serialized type of a TypeReference that is a string literal or `string` is "String". + // * The serialized type of a TypeReference that is a tuple is "Array". + // * The serialized type of a TypeReference that is a `symbol` is "Symbol". + // * The serialized type of a TypeReference with a value declaration is its entity name. + // * The serialized type of a TypeReference with a call or construct signature is "Function". + // * The serialized type of any other type is "Object". + var type = getTypeFromTypeReference(node); + if (type.flags & 16 /* Void */) { + return "void 0"; + } + else if (type.flags & 8 /* Boolean */) { + return "Boolean"; + } + else if (type.flags & 132 /* NumberLike */) { + return "Number"; + } + else if (type.flags & 258 /* StringLike */) { + return "String"; + } + else if (type.flags & 8192 /* Tuple */) { + return "Array"; + } + else if (type.flags & 1048576 /* ESSymbol */) { + return "Symbol"; + } + else if (type === unknownType) { + var fallbackPath = []; + serializeEntityName(node.typeName, getGeneratedNameForNode, fallbackPath); + return fallbackPath; + } + else if (type.symbol && type.symbol.valueDeclaration) { + return serializeEntityName(node.typeName, getGeneratedNameForNode); + } + else if (typeHasCallOrConstructSignatures(type)) { + return "Function"; + } + return "Object"; + } + /** Serializes a TypeNode to an appropriate JS constructor value. Used by the __metadata decorator. */ + function serializeTypeNode(node, getGeneratedNameForNode) { + // serialization of a TypeNode uses the following rules: + // + // * The serialized type of `void` is "void 0" (undefined). + // * The serialized type of a parenthesized type is the serialized type of its nested type. + // * The serialized type of a Function or Constructor type is "Function". + // * The serialized type of an Array or Tuple type is "Array". + // * The serialized type of `boolean` is "Boolean". + // * The serialized type of `string` or a string-literal type is "String". + // * The serialized type of a type reference is handled by `serializeTypeReferenceNode`. + // * The serialized type of any other type node is "Object". + if (node) { + switch (node.kind) { + case 99 /* VoidKeyword */: + return "void 0"; + case 149 /* ParenthesizedType */: + return serializeTypeNode(node.type, getGeneratedNameForNode); + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + return "Function"; + case 146 /* ArrayType */: + case 147 /* TupleType */: + return "Array"; + case 113 /* BooleanKeyword */: + return "Boolean"; + case 121 /* StringKeyword */: + case 8 /* StringLiteral */: + return "String"; + case 119 /* NumberKeyword */: + return "Number"; + case 141 /* TypeReference */: + return serializeTypeReferenceNode(node, getGeneratedNameForNode); + case 144 /* TypeQuery */: + case 145 /* TypeLiteral */: + case 148 /* UnionType */: + case 112 /* AnyKeyword */: + break; + default: + ts.Debug.fail("Cannot serialize unexpected type node."); + break; + } + } + return "Object"; + } + /** Serializes the type of a declaration to an appropriate JS constructor value. Used by the __metadata decorator for a class member. */ + function serializeTypeOfNode(node, getGeneratedNameForNode) { + // serialization of the type of a declaration uses the following rules: + // + // * The serialized type of a ClassDeclaration is "Function" + // * The serialized type of a ParameterDeclaration is the serialized type of its type annotation. + // * The serialized type of a PropertyDeclaration is the serialized type of its type annotation. + // * The serialized type of an AccessorDeclaration is the serialized type of the return type annotation of its getter or parameter type annotation of its setter. + // * The serialized type of any other FunctionLikeDeclaration is "Function". + // * The serialized type of any other node is "void 0". + // + // For rules on serializing type annotations, see `serializeTypeNode`. + switch (node.kind) { + case 201 /* ClassDeclaration */: return "Function"; + case 132 /* PropertyDeclaration */: return serializeTypeNode(node.type, getGeneratedNameForNode); + case 129 /* Parameter */: return serializeTypeNode(node.type, getGeneratedNameForNode); + case 136 /* GetAccessor */: return serializeTypeNode(node.type, getGeneratedNameForNode); + case 137 /* SetAccessor */: return serializeTypeNode(getSetAccessorTypeAnnotationNode(node), getGeneratedNameForNode); + } + if (ts.isFunctionLike(node)) { + return "Function"; + } + return "void 0"; + } + /** Serializes the parameter types of a function or the constructor of a class. Used by the __metadata decorator for a method or set accessor. */ + function serializeParameterTypesOfNode(node, getGeneratedNameForNode) { + // serialization of parameter types uses the following rules: + // + // * If the declaration is a class, the parameters of the first constructor with a body are used. + // * If the declaration is function-like and has a body, the parameters of the function are used. + // + // For the rules on serializing the type of each parameter declaration, see `serializeTypeOfDeclaration`. + if (node) { + var valueDeclaration; + if (node.kind === 201 /* ClassDeclaration */) { + valueDeclaration = ts.getFirstConstructorWithBody(node); + } + else if (ts.isFunctionLike(node) && ts.nodeIsPresent(node.body)) { + valueDeclaration = node; + } + if (valueDeclaration) { + var result; + var parameters = valueDeclaration.parameters; + var parameterCount = parameters.length; + if (parameterCount > 0) { + result = new Array(parameterCount); + for (var i = 0; i < parameterCount; i++) { + if (parameters[i].dotDotDotToken) { + var parameterType = parameters[i].type; + if (parameterType.kind === 146 /* ArrayType */) { + parameterType = parameterType.elementType; + } + else if (parameterType.kind === 141 /* TypeReference */ && parameterType.typeArguments && parameterType.typeArguments.length === 1) { + parameterType = parameterType.typeArguments[0]; + } + else { + parameterType = undefined; + } + result[i] = serializeTypeNode(parameterType, getGeneratedNameForNode); + } + else { + result[i] = serializeTypeOfNode(parameters[i], getGeneratedNameForNode); + } + } + return result; + } + } + } + return emptyArray; + } + /** Serializes the return type of function. Used by the __metadata decorator for a method. */ + function serializeReturnTypeOfNode(node, getGeneratedNameForNode) { + if (node && ts.isFunctionLike(node)) { + return serializeTypeNode(node.type, getGeneratedNameForNode); + } + return "void 0"; + } function writeTypeOfDeclaration(declaration, enclosingDeclaration, flags, writer) { + // Get type of the symbol if this is the valid symbol otherwise get type at location var symbol = getSymbolOfNode(declaration); - var type = symbol && !(symbol.flags & (2048 | 131072)) + var type = symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */)) ? getTypeOfSymbol(symbol) : unknownType; getSymbolDisplayBuilder().buildTypeDisplay(type, writer, enclosingDeclaration, flags); @@ -18023,18 +21243,20 @@ var ts; } function resolvesToSomeValue(location, name) { ts.Debug.assert(!ts.nodeIsSynthesized(location), "resolvesToSomeValue called with a synthesized location"); - return !!resolveName(location, name, 107455, undefined, undefined); + return !!resolveName(location, name, 107455 /* Value */, undefined, undefined); } function getBlockScopedVariableId(n) { ts.Debug.assert(!ts.nodeIsSynthesized(n)); - var isVariableDeclarationOrBindingElement = n.parent.kind === 152 || (n.parent.kind === 198 && n.parent.name === n); + var isVariableDeclarationOrBindingElement = n.parent.kind === 152 /* BindingElement */ || (n.parent.kind === 198 /* VariableDeclaration */ && n.parent.name === n); var symbol = (isVariableDeclarationOrBindingElement ? getSymbolOfNode(n.parent) : undefined) || getNodeLinks(n).resolvedSymbol || - resolveName(n, n.text, 107455 | 8388608, undefined, undefined); + resolveName(n, n.text, 107455 /* Value */ | 8388608 /* Alias */, undefined, undefined); var isLetOrConst = symbol && - (symbol.flags & 2) && - symbol.valueDeclaration.parent.kind !== 223; + (symbol.flags & 2 /* BlockScopedVariable */) && + symbol.valueDeclaration.parent.kind !== 223 /* CatchClause */; if (isLetOrConst) { + // side-effect of calling this method: + // assign id to symbol if it was not yet set getSymbolLinks(symbol); return symbol.id; } @@ -18069,22 +21291,29 @@ var ts; getConstantValue: getConstantValue, resolvesToSomeValue: resolvesToSomeValue, collectLinkedAliases: collectLinkedAliases, - getBlockScopedVariableId: getBlockScopedVariableId + getBlockScopedVariableId: getBlockScopedVariableId, + serializeTypeOfNode: serializeTypeOfNode, + serializeParameterTypesOfNode: serializeParameterTypesOfNode, + serializeReturnTypeOfNode: serializeReturnTypeOfNode }; } function initializeTypeChecker() { + // Bind all source files and propagate errors ts.forEach(host.getSourceFiles(), function (file) { ts.bindSourceFile(file); }); + // Initialize global symbol table ts.forEach(host.getSourceFiles(), function (file) { if (!ts.isExternalModule(file)) { mergeSymbolTable(globals, file.locals); } }); + // Initialize special symbols getSymbolLinks(undefinedSymbol).type = undefinedType; getSymbolLinks(argumentsSymbol).type = getGlobalType("IArguments"); getSymbolLinks(unknownSymbol).type = unknownType; globals[undefinedSymbol.name] = undefinedSymbol; + // Initialize special types globalArraySymbol = getGlobalTypeSymbol("Array"); globalArrayType = getTypeOfGlobalSymbol(globalArraySymbol, 1); globalObjectType = getGlobalType("Object"); @@ -18098,7 +21327,9 @@ var ts; globalPropertyDecoratorType = getGlobalType("PropertyDecorator"); globalMethodDecoratorType = getGlobalType("MethodDecorator"); globalParameterDecoratorType = getGlobalType("ParameterDecorator"); - if (languageVersion >= 2) { + // If we're in ES6 mode, load the TemplateStringsArray. + // Otherwise, default to 'unknown' for the purposes of type checking in LS scenarios. + if (languageVersion >= 2 /* ES6 */) { globalTemplateStringsArrayType = getGlobalType("TemplateStringsArray"); globalESSymbolType = getGlobalType("Symbol"); globalESSymbolConstructorSymbol = getGlobalValueSymbol("Symbol"); @@ -18106,51 +21337,55 @@ var ts; } else { globalTemplateStringsArrayType = unknownType; + // Consider putting Symbol interface in lib.d.ts. On the plus side, putting it in lib.d.ts would make it + // extensible for Polyfilling Symbols. But putting it into lib.d.ts could also break users that have + // a global Symbol already, particularly if it is a class. globalESSymbolType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); globalESSymbolConstructorSymbol = undefined; } anyArrayType = createArrayType(anyType); } + // GRAMMAR CHECKING function checkGrammarDecorators(node) { if (!node.decorators) { return false; } if (!ts.nodeCanBeDecorated(node)) { - return grammarErrorOnNode(node, ts.Diagnostics.Decorators_are_not_valid_here); + return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_not_valid_here); } - else if (languageVersion < 1) { - return grammarErrorOnNode(node, ts.Diagnostics.Decorators_are_only_available_when_targeting_ECMAScript_5_and_higher); + else if (languageVersion < 1 /* ES5 */) { + return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_only_available_when_targeting_ECMAScript_5_and_higher); } - else if (node.kind === 136 || node.kind === 137) { + else if (node.kind === 136 /* GetAccessor */ || node.kind === 137 /* SetAccessor */) { var accessors = ts.getAllAccessorDeclarations(node.parent.members, node); if (accessors.firstAccessor.decorators && node === accessors.secondAccessor) { - return grammarErrorOnNode(node, ts.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); + return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); } } return false; } function checkGrammarModifiers(node) { switch (node.kind) { - case 136: - case 137: - case 135: - case 132: - case 131: - case 134: - case 133: - case 140: - case 201: - case 202: - case 205: - case 204: - case 180: - case 200: - case 203: - case 209: - case 208: - case 215: - case 214: - case 129: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 135 /* Constructor */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 140 /* IndexSignature */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 205 /* ModuleDeclaration */: + case 204 /* EnumDeclaration */: + case 180 /* VariableStatement */: + case 200 /* FunctionDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 209 /* ImportDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 215 /* ExportDeclaration */: + case 214 /* ExportAssignment */: + case 129 /* Parameter */: break; default: return false; @@ -18163,14 +21398,14 @@ var ts; for (var _i = 0, _a = node.modifiers; _i < _a.length; _i++) { var modifier = _a[_i]; switch (modifier.kind) { - case 109: - case 108: - case 107: + case 109 /* PublicKeyword */: + case 108 /* ProtectedKeyword */: + case 107 /* PrivateKeyword */: var text = void 0; - if (modifier.kind === 109) { + if (modifier.kind === 109 /* PublicKeyword */) { text = "public"; } - else if (modifier.kind === 108) { + else if (modifier.kind === 108 /* ProtectedKeyword */) { text = "protected"; lastProtected = modifier; } @@ -18178,81 +21413,81 @@ var ts; text = "private"; lastPrivate = modifier; } - if (flags & 112) { + if (flags & 112 /* AccessibilityModifier */) { return grammarErrorOnNode(modifier, ts.Diagnostics.Accessibility_modifier_already_seen); } - else if (flags & 128) { + else if (flags & 128 /* Static */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, text, "static"); } - else if (node.parent.kind === 206 || node.parent.kind === 227) { + else if (node.parent.kind === 206 /* ModuleBlock */ || node.parent.kind === 227 /* SourceFile */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_module_element, text); } flags |= ts.modifierToFlag(modifier.kind); break; - case 110: - if (flags & 128) { + case 110 /* StaticKeyword */: + if (flags & 128 /* Static */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, "static"); } - else if (node.parent.kind === 206 || node.parent.kind === 227) { + else if (node.parent.kind === 206 /* ModuleBlock */ || node.parent.kind === 227 /* SourceFile */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_module_element, "static"); } - else if (node.kind === 129) { + else if (node.kind === 129 /* Parameter */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_parameter, "static"); } - flags |= 128; + flags |= 128 /* Static */; lastStatic = modifier; break; - case 78: - if (flags & 1) { + case 78 /* ExportKeyword */: + if (flags & 1 /* Export */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, "export"); } - else if (flags & 2) { + else if (flags & 2 /* Ambient */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, "export", "declare"); } - else if (node.parent.kind === 201) { + else if (node.parent.kind === 201 /* ClassDeclaration */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_class_element, "export"); } - else if (node.kind === 129) { + else if (node.kind === 129 /* Parameter */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_parameter, "export"); } - flags |= 1; + flags |= 1 /* Export */; break; - case 115: - if (flags & 2) { + case 115 /* DeclareKeyword */: + if (flags & 2 /* Ambient */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, "declare"); } - else if (node.parent.kind === 201) { + else if (node.parent.kind === 201 /* ClassDeclaration */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_class_element, "declare"); } - else if (node.kind === 129) { + else if (node.kind === 129 /* Parameter */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_parameter, "declare"); } - else if (ts.isInAmbientContext(node.parent) && node.parent.kind === 206) { + else if (ts.isInAmbientContext(node.parent) && node.parent.kind === 206 /* ModuleBlock */) { return grammarErrorOnNode(modifier, ts.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context); } - flags |= 2; + flags |= 2 /* Ambient */; lastDeclare = modifier; break; } } - if (node.kind === 135) { - if (flags & 128) { + if (node.kind === 135 /* Constructor */) { + if (flags & 128 /* Static */) { return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static"); } - else if (flags & 64) { + else if (flags & 64 /* Protected */) { return grammarErrorOnNode(lastProtected, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "protected"); } - else if (flags & 32) { + else if (flags & 32 /* Private */) { return grammarErrorOnNode(lastPrivate, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "private"); } } - else if ((node.kind === 209 || node.kind === 208) && flags & 2) { + else if ((node.kind === 209 /* ImportDeclaration */ || node.kind === 208 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) { return grammarErrorOnNode(lastDeclare, ts.Diagnostics.A_declare_modifier_cannot_be_used_with_an_import_declaration, "declare"); } - else if (node.kind === 202 && flags & 2) { + else if (node.kind === 202 /* InterfaceDeclaration */ && flags & 2 /* Ambient */) { return grammarErrorOnNode(lastDeclare, ts.Diagnostics.A_declare_modifier_cannot_be_used_with_an_interface_declaration, "declare"); } - else if (node.kind === 129 && (flags & 112) && ts.isBindingPattern(node.name)) { + else if (node.kind === 129 /* Parameter */ && (flags & 112 /* AccessibilityModifier */) && ts.isBindingPattern(node.name)) { return grammarErrorOnNode(node, ts.Diagnostics.A_parameter_property_may_not_be_a_binding_pattern); } } @@ -18307,12 +21542,13 @@ var ts; } } function checkGrammarFunctionLikeDeclaration(node) { + // Prevent cascading error by short-circuit var file = ts.getSourceFileOfNode(node); return checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarTypeParameterList(node, node.typeParameters, file) || checkGrammarParameterList(node.parameters) || checkGrammarArrowFunction(node, file); } function checkGrammarArrowFunction(node, file) { - if (node.kind === 163) { + if (node.kind === 163 /* ArrowFunction */) { var arrowFunction = node; var startLine = ts.getLineAndCharacterOfPosition(file, arrowFunction.equalsGreaterThanToken.pos).line; var endLine = ts.getLineAndCharacterOfPosition(file, arrowFunction.equalsGreaterThanToken.end).line; @@ -18335,7 +21571,7 @@ var ts; if (parameter.dotDotDotToken) { return grammarErrorOnNode(parameter.dotDotDotToken, ts.Diagnostics.An_index_signature_cannot_have_a_rest_parameter); } - if (parameter.flags & 499) { + if (parameter.flags & 499 /* Modifier */) { return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier); } if (parameter.questionToken) { @@ -18347,7 +21583,7 @@ var ts; if (!parameter.type) { return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation); } - if (parameter.type.kind !== 121 && parameter.type.kind !== 119) { + if (parameter.type.kind !== 121 /* StringKeyword */ && parameter.type.kind !== 119 /* NumberKeyword */) { return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number); } if (!node.type) { @@ -18355,11 +21591,12 @@ var ts; } } function checkGrammarForIndexSignatureModifier(node) { - if (node.flags & 499) { + if (node.flags & 499 /* Modifier */) { grammarErrorOnFirstToken(node, ts.Diagnostics.Modifiers_not_permitted_on_index_signature_members); } } function checkGrammarIndexSignature(node) { + // Prevent cascading error by short-circuit return checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarIndexSignatureParameters(node) || checkGrammarForIndexSignatureModifier(node); } function checkGrammarForAtLeastOneTypeArgument(node, typeArguments) { @@ -18379,7 +21616,7 @@ var ts; var sourceFile = ts.getSourceFileOfNode(node); for (var _i = 0; _i < arguments.length; _i++) { var arg = arguments[_i]; - if (arg.kind === 175) { + if (arg.kind === 175 /* OmittedExpression */) { return grammarErrorAtPos(sourceFile, arg.pos, 0, ts.Diagnostics.Argument_expression_expected); } } @@ -18406,7 +21643,7 @@ var ts; if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && node.heritageClauses) { for (var _i = 0, _a = node.heritageClauses; _i < _a.length; _i++) { var heritageClause = _a[_i]; - if (heritageClause.token === 79) { + if (heritageClause.token === 79 /* ExtendsKeyword */) { if (seenExtendsClause) { return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.extends_clause_already_seen); } @@ -18419,12 +21656,13 @@ var ts; seenExtendsClause = true; } else { - ts.Debug.assert(heritageClause.token === 103); + ts.Debug.assert(heritageClause.token === 103 /* ImplementsKeyword */); if (seenImplementsClause) { return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.implements_clause_already_seen); } seenImplementsClause = true; } + // Grammar checking heritageClause inside class declaration checkGrammarHeritageClause(heritageClause); } } @@ -18434,27 +21672,29 @@ var ts; if (node.heritageClauses) { for (var _i = 0, _a = node.heritageClauses; _i < _a.length; _i++) { var heritageClause = _a[_i]; - if (heritageClause.token === 79) { + if (heritageClause.token === 79 /* ExtendsKeyword */) { if (seenExtendsClause) { return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.extends_clause_already_seen); } seenExtendsClause = true; } else { - ts.Debug.assert(heritageClause.token === 103); + ts.Debug.assert(heritageClause.token === 103 /* ImplementsKeyword */); return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.Interface_declaration_cannot_have_implements_clause); } + // Grammar checking heritageClause inside class declaration checkGrammarHeritageClause(heritageClause); } } return false; } function checkGrammarComputedPropertyName(node) { - if (node.kind !== 127) { + // If node is not a computedPropertyName, just skip the grammar checking + if (node.kind !== 127 /* ComputedPropertyName */) { return false; } var computedPropertyName = node; - if (computedPropertyName.expression.kind === 169 && computedPropertyName.expression.operatorToken.kind === 23) { + if (computedPropertyName.expression.kind === 169 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 23 /* CommaToken */) { return grammarErrorOnNode(computedPropertyName.expression, ts.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name); } } @@ -18464,6 +21704,7 @@ var ts; } } function checkGrammarFunctionName(name) { + // It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a strict mode FunctionDeclaration or FunctionExpression (13.1)) return checkGrammarEvalOrArgumentsInStrictMode(name, name); } function checkGrammarForInvalidQuestionMark(node, questionToken, message) { @@ -18477,30 +21718,40 @@ var ts; var GetAccessor = 2; var SetAccesor = 4; var GetOrSetAccessor = GetAccessor | SetAccesor; - var inStrictMode = (node.parserContextFlags & 1) !== 0; + var inStrictMode = (node.parserContextFlags & 1 /* StrictMode */) !== 0; for (var _i = 0, _a = node.properties; _i < _a.length; _i++) { var prop = _a[_i]; var name_11 = prop.name; - if (prop.kind === 175 || - name_11.kind === 127) { + if (prop.kind === 175 /* OmittedExpression */ || + name_11.kind === 127 /* ComputedPropertyName */) { + // If the name is not a ComputedPropertyName, the grammar checking will skip it checkGrammarComputedPropertyName(name_11); continue; } + // ECMA-262 11.1.5 Object Initialiser + // If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + // a.This production is contained in strict code and IsDataDescriptor(previous) is true and + // IsDataDescriptor(propId.descriptor) is true. + // b.IsDataDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true. + // c.IsAccessorDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true. + // d.IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true + // and either both previous and propId.descriptor have[[Get]] fields or both previous and propId.descriptor have[[Set]] fields var currentKind = void 0; - if (prop.kind === 224 || prop.kind === 225) { + if (prop.kind === 224 /* PropertyAssignment */ || prop.kind === 225 /* ShorthandPropertyAssignment */) { + // Grammar checking for computedPropertName and shorthandPropertyAssignment checkGrammarForInvalidQuestionMark(prop, prop.questionToken, ts.Diagnostics.An_object_member_cannot_be_declared_optional); - if (name_11.kind === 7) { + if (name_11.kind === 7 /* NumericLiteral */) { checkGrammarNumbericLiteral(name_11); } currentKind = Property; } - else if (prop.kind === 134) { + else if (prop.kind === 134 /* MethodDeclaration */) { currentKind = Property; } - else if (prop.kind === 136) { + else if (prop.kind === 136 /* GetAccessor */) { currentKind = GetAccessor; } - else if (prop.kind === 137) { + else if (prop.kind === 137 /* SetAccessor */) { currentKind = SetAccesor; } else { @@ -18534,24 +21785,24 @@ var ts; if (checkGrammarStatementInAmbientContext(forInOrOfStatement)) { return true; } - if (forInOrOfStatement.initializer.kind === 199) { + if (forInOrOfStatement.initializer.kind === 199 /* VariableDeclarationList */) { var variableList = forInOrOfStatement.initializer; if (!checkGrammarVariableDeclarationList(variableList)) { if (variableList.declarations.length > 1) { - var diagnostic = forInOrOfStatement.kind === 187 + var diagnostic = forInOrOfStatement.kind === 187 /* ForInStatement */ ? ts.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : ts.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; return grammarErrorOnFirstToken(variableList.declarations[1], diagnostic); } var firstDeclaration = variableList.declarations[0]; if (firstDeclaration.initializer) { - var diagnostic = forInOrOfStatement.kind === 187 + var diagnostic = forInOrOfStatement.kind === 187 /* ForInStatement */ ? ts.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : ts.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; return grammarErrorOnNode(firstDeclaration.name, diagnostic); } if (firstDeclaration.type) { - var diagnostic = forInOrOfStatement.kind === 187 + var diagnostic = forInOrOfStatement.kind === 187 /* ForInStatement */ ? ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : ts.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; return grammarErrorOnNode(firstDeclaration, diagnostic); @@ -18562,7 +21813,7 @@ var ts; } function checkGrammarAccessor(accessor) { var kind = accessor.kind; - if (languageVersion < 1) { + if (languageVersion < 1 /* ES5 */) { return grammarErrorOnNode(accessor.name, ts.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher); } else if (ts.isInAmbientContext(accessor)) { @@ -18574,10 +21825,10 @@ var ts; else if (accessor.typeParameters) { return grammarErrorOnNode(accessor.name, ts.Diagnostics.An_accessor_cannot_have_type_parameters); } - else if (kind === 136 && accessor.parameters.length) { + else if (kind === 136 /* GetAccessor */ && accessor.parameters.length) { return grammarErrorOnNode(accessor.name, ts.Diagnostics.A_get_accessor_cannot_have_parameters); } - else if (kind === 137) { + else if (kind === 137 /* SetAccessor */) { if (accessor.type) { return grammarErrorOnNode(accessor.name, ts.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation); } @@ -18589,7 +21840,7 @@ var ts; if (parameter.dotDotDotToken) { return grammarErrorOnNode(parameter.dotDotDotToken, ts.Diagnostics.A_set_accessor_cannot_have_rest_parameter); } - else if (parameter.flags & 499) { + else if (parameter.flags & 499 /* Modifier */) { return grammarErrorOnNode(accessor.name, ts.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); } else if (parameter.questionToken) { @@ -18602,7 +21853,7 @@ var ts; } } function checkGrammarForNonSymbolComputedProperty(node, message) { - if (node.kind === 127 && !ts.isWellKnownSymbolSyntactically(node.expression)) { + if (node.kind === 127 /* ComputedPropertyName */ && !ts.isWellKnownSymbolSyntactically(node.expression)) { return grammarErrorOnNode(node, message); } } @@ -18612,7 +21863,7 @@ var ts; checkGrammarForGenerator(node)) { return true; } - if (node.parent.kind === 154) { + if (node.parent.kind === 154 /* ObjectLiteralExpression */) { if (checkGrammarForInvalidQuestionMark(node, node.questionToken, ts.Diagnostics.A_class_member_cannot_be_declared_optional)) { return true; } @@ -18620,10 +21871,15 @@ var ts; return grammarErrorAtPos(getSourceFile(node), node.end - 1, ";".length, ts.Diagnostics._0_expected, "{"); } } - if (node.parent.kind === 201) { + if (node.parent.kind === 201 /* ClassDeclaration */) { if (checkGrammarForInvalidQuestionMark(node, node.questionToken, ts.Diagnostics.A_class_member_cannot_be_declared_optional)) { return true; } + // Technically, computed properties in ambient contexts is disallowed + // for property declarations and accessors too, not just methods. + // However, property declarations disallow computed names in general, + // and accessors are not allowed in ambient contexts in general, + // so this error only really matters for methods. if (ts.isInAmbientContext(node)) { return checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol); } @@ -18631,22 +21887,22 @@ var ts; return checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol); } } - else if (node.parent.kind === 202) { + else if (node.parent.kind === 202 /* InterfaceDeclaration */) { return checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol); } - else if (node.parent.kind === 145) { + else if (node.parent.kind === 145 /* TypeLiteral */) { return checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol); } } function isIterationStatement(node, lookInLabeledStatements) { switch (node.kind) { - case 186: - case 187: - case 188: - case 184: - case 185: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: return true; - case 194: + case 194 /* LabeledStatement */: return lookInLabeledStatements && isIterationStatement(node.statement, lookInLabeledStatements); } return false; @@ -18658,9 +21914,11 @@ var ts; return grammarErrorOnNode(node, ts.Diagnostics.Jump_target_cannot_cross_function_boundary); } switch (current.kind) { - case 194: + case 194 /* LabeledStatement */: if (node.label && current.label.text === node.label.text) { - var isMisplacedContinueLabel = node.kind === 189 + // found matching label - verify that label usage is correct + // continue can only target labels that are on iteration statements + var isMisplacedContinueLabel = node.kind === 189 /* ContinueStatement */ && !isIterationStatement(current.statement, true); if (isMisplacedContinueLabel) { return grammarErrorOnNode(node, ts.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement); @@ -18668,13 +21926,15 @@ var ts; return false; } break; - case 193: - if (node.kind === 190 && !node.label) { + case 193 /* SwitchStatement */: + if (node.kind === 190 /* BreakStatement */ && !node.label) { + // unlabeled break within switch statement - ok return false; } break; default: if (isIterationStatement(current, false) && !node.label) { + // unlabeled break or continue within iteration statement - ok return false; } break; @@ -18682,13 +21942,13 @@ var ts; current = current.parent; } if (node.label) { - var message = node.kind === 190 + var message = node.kind === 190 /* BreakStatement */ ? ts.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : ts.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); } else { - var message = node.kind === 190 + var message = node.kind === 190 /* BreakStatement */ ? ts.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : ts.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); @@ -18701,15 +21961,19 @@ var ts; return grammarErrorOnNode(node, ts.Diagnostics.A_rest_element_must_be_last_in_an_array_destructuring_pattern); } if (node.initializer) { + // Error on equals token which immediate precedes the initializer return grammarErrorAtPos(ts.getSourceFileOfNode(node), node.initializer.pos - 1, 1, ts.Diagnostics.A_rest_element_cannot_have_an_initializer); } } + // It is a SyntaxError if a VariableDeclaration or VariableDeclarationNoIn occurs within strict code + // and its Identifier is eval or arguments return checkGrammarEvalOrArgumentsInStrictMode(node, node.name); } function checkGrammarVariableDeclaration(node) { - if (node.parent.parent.kind !== 187 && node.parent.parent.kind !== 188) { + if (node.parent.parent.kind !== 187 /* ForInStatement */ && node.parent.parent.kind !== 188 /* ForOfStatement */) { if (ts.isInAmbientContext(node)) { if (node.initializer) { + // Error on equals token which immediate precedes the initializer var equalsTokenLength = "=".length; return grammarErrorAtPos(ts.getSourceFileOfNode(node), node.initializer.pos - equalsTokenLength, equalsTokenLength, ts.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts); } @@ -18723,12 +21987,18 @@ var ts; } } } - var checkLetConstNames = languageVersion >= 2 && (ts.isLet(node) || ts.isConst(node)); + var checkLetConstNames = languageVersion >= 2 /* ES6 */ && (ts.isLet(node) || ts.isConst(node)); + // 1. LexicalDeclaration : LetOrConst BindingList ; + // It is a Syntax Error if the BoundNames of BindingList contains "let". + // 2. ForDeclaration: ForDeclaration : LetOrConst ForBinding + // It is a Syntax Error if the BoundNames of ForDeclaration contains "let". + // It is a SyntaxError if a VariableDeclaration or VariableDeclarationNoIn occurs within strict code + // and its Identifier is eval or arguments return (checkLetConstNames && checkGrammarNameInLetOrConstDeclarations(node.name)) || checkGrammarEvalOrArgumentsInStrictMode(node, node.name); } function checkGrammarNameInLetOrConstDeclarations(name) { - if (name.kind === 65) { + if (name.kind === 65 /* Identifier */) { if (name.text === "let") { return grammarErrorOnNode(name, ts.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations); } @@ -18737,7 +22007,9 @@ var ts; var elements = name.elements; for (var _i = 0; _i < elements.length; _i++) { var element = elements[_i]; - checkGrammarNameInLetOrConstDeclarations(element.name); + if (element.kind !== 175 /* OmittedExpression */) { + checkGrammarNameInLetOrConstDeclarations(element.name); + } } } } @@ -18752,15 +22024,15 @@ var ts; } function allowLetAndConstDeclarations(parent) { switch (parent.kind) { - case 183: - case 184: - case 185: - case 192: - case 186: - case 187: - case 188: + case 183 /* IfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + case 192 /* WithStatement */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: return false; - case 194: + case 194 /* LabeledStatement */: return allowLetAndConstDeclarations(parent.parent); } return true; @@ -18776,26 +22048,36 @@ var ts; } } function isIntegerLiteral(expression) { - if (expression.kind === 167) { + if (expression.kind === 167 /* PrefixUnaryExpression */) { var unaryExpression = expression; - if (unaryExpression.operator === 33 || unaryExpression.operator === 34) { + if (unaryExpression.operator === 33 /* PlusToken */ || unaryExpression.operator === 34 /* MinusToken */) { expression = unaryExpression.operand; } } - if (expression.kind === 7) { + if (expression.kind === 7 /* NumericLiteral */) { + // Allows for scientific notation since literalExpression.text was formed by + // coercing a number to a string. Sometimes this coercion can yield a string + // in scientific notation. + // We also don't need special logic for hex because a hex integer is converted + // to decimal when it is coerced. return /^[0-9]+([eE]\+?[0-9]+)?$/.test(expression.text); } return false; } function checkGrammarEnumDeclaration(enumDecl) { - var enumIsConst = (enumDecl.flags & 8192) !== 0; + var enumIsConst = (enumDecl.flags & 8192 /* Const */) !== 0; var hasError = false; + // skip checks below for const enums - they allow arbitrary initializers as long as they can be evaluated to constant expressions. + // since all values are known in compile time - it is not necessary to check that constant enum section precedes computed enum members. if (!enumIsConst) { var inConstantEnumMemberSection = true; var inAmbientContext = ts.isInAmbientContext(enumDecl); for (var _i = 0, _a = enumDecl.members; _i < _a.length; _i++) { var node = _a[_i]; - if (node.name.kind === 127) { + // Do not use hasDynamicName here, because that returns false for well known symbols. + // We want to perform checkComputedPropertyName for all computed properties, including + // well known symbols. + if (node.name.kind === 127 /* ComputedPropertyName */) { hasError = grammarErrorOnNode(node.name, ts.Diagnostics.Computed_property_names_are_not_allowed_in_enums); } else if (inAmbientContext) { @@ -18838,11 +22120,19 @@ var ts; } } function checkGrammarEvalOrArgumentsInStrictMode(contextNode, name) { - if (name && name.kind === 65) { + if (name && name.kind === 65 /* Identifier */) { var identifier = name; - if (contextNode && (contextNode.parserContextFlags & 1) && ts.isEvalOrArgumentsIdentifier(identifier)) { + if (contextNode && (contextNode.parserContextFlags & 1 /* StrictMode */) && ts.isEvalOrArgumentsIdentifier(identifier)) { var nameText = ts.declarationNameToString(identifier); - return grammarErrorOnNode(identifier, ts.Diagnostics.Invalid_use_of_0_in_strict_mode, nameText); + // We are checking if this name is inside class declaration or class expression (which are under class definitions inside ES6 spec.) + // if so, we would like to give more explicit invalid usage error. + // This will be particularly helpful in the case of "arguments" as such case is very common mistake. + if (ts.getAncestor(name, 201 /* ClassDeclaration */) || ts.getAncestor(name, 174 /* ClassExpression */)) { + return grammarErrorOnNode(identifier, ts.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode, nameText); + } + else { + return grammarErrorOnNode(identifier, ts.Diagnostics.Invalid_use_of_0_in_strict_mode, nameText); + } } } } @@ -18857,18 +22147,18 @@ var ts; } } function checkGrammarProperty(node) { - if (node.parent.kind === 201) { + if (node.parent.kind === 201 /* ClassDeclaration */) { if (checkGrammarForInvalidQuestionMark(node, node.questionToken, ts.Diagnostics.A_class_member_cannot_be_declared_optional) || checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol)) { return true; } } - else if (node.parent.kind === 202) { + else if (node.parent.kind === 202 /* InterfaceDeclaration */) { if (checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol)) { return true; } } - else if (node.parent.kind === 145) { + else if (node.parent.kind === 145 /* TypeLiteral */) { if (checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)) { return true; } @@ -18878,13 +22168,23 @@ var ts; } } function checkGrammarTopLevelElementForRequiredDeclareModifier(node) { - if (node.kind === 202 || - node.kind === 209 || - node.kind === 208 || - node.kind === 215 || - node.kind === 214 || - (node.flags & 2) || - (node.flags & (1 | 256))) { + // A declare modifier is required for any top level .d.ts declaration except export=, export default, + // interfaces and imports categories: + // + // DeclarationElement: + // ExportAssignment + // export_opt InterfaceDeclaration + // export_opt ImportDeclaration + // export_opt ExternalImportDeclaration + // export_opt AmbientDeclaration + // + if (node.kind === 202 /* InterfaceDeclaration */ || + node.kind === 209 /* ImportDeclaration */ || + node.kind === 208 /* ImportEqualsDeclaration */ || + node.kind === 215 /* ExportDeclaration */ || + node.kind === 214 /* ExportAssignment */ || + (node.flags & 2 /* Ambient */) || + (node.flags & (1 /* Export */ | 256 /* Default */))) { return false; } return grammarErrorOnFirstToken(node, ts.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file); @@ -18892,7 +22192,7 @@ var ts; function checkGrammarTopLevelElementsForRequiredDeclareModifier(file) { for (var _i = 0, _a = file.statements; _i < _a.length; _i++) { var decl = _a[_i]; - if (ts.isDeclaration(decl) || decl.kind === 180) { + if (ts.isDeclaration(decl) || decl.kind === 180 /* VariableStatement */) { if (checkGrammarTopLevelElementForRequiredDeclareModifier(decl)) { return true; } @@ -18904,15 +22204,23 @@ var ts; } function checkGrammarStatementInAmbientContext(node) { if (ts.isInAmbientContext(node)) { + // An accessors is already reported about the ambient context if (isAccessor(node.parent.kind)) { return getNodeLinks(node).hasReportedStatementInAmbientContext = true; } + // Find containing block which is either Block, ModuleBlock, SourceFile var links = getNodeLinks(node); if (!links.hasReportedStatementInAmbientContext && ts.isFunctionLike(node.parent)) { return getNodeLinks(node).hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, ts.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); } - if (node.parent.kind === 179 || node.parent.kind === 206 || node.parent.kind === 227) { + // We are either parented by another statement, or some sort of block. + // If we're in a block, we only want to really report an error once + // to prevent noisyness. So use a bit on the block to indicate if + // this has already been reported, and don't report if it has. + // + if (node.parent.kind === 179 /* Block */ || node.parent.kind === 206 /* ModuleBlock */ || node.parent.kind === 227 /* SourceFile */) { var links_1 = getNodeLinks(node.parent); + // Check if the containing block ever report this error if (!links_1.hasReportedStatementInAmbientContext) { return links_1.hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, ts.Diagnostics.Statements_are_not_allowed_in_ambient_contexts); } @@ -18922,11 +22230,12 @@ var ts; } } function checkGrammarNumbericLiteral(node) { - if (node.flags & 16384) { - if (node.parserContextFlags & 1) { + // Grammar checking + if (node.flags & 16384 /* OctalLiteral */) { + if (node.parserContextFlags & 1 /* StrictMode */) { return grammarErrorOnNode(node, ts.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode); } - else if (languageVersion >= 1) { + else if (languageVersion >= 1 /* ES5 */) { return grammarErrorOnNode(node, ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher); } } @@ -18945,6 +22254,7 @@ var ts; ts.createTypeChecker = createTypeChecker; })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { function getDeclarationDiagnostics(host, resolver, targetSourceFile) { @@ -18957,7 +22267,7 @@ var ts; function emitDeclarations(host, resolver, diagnostics, jsFilePath, root) { var newLine = host.getNewLine(); var compilerOptions = host.getCompilerOptions(); - var languageVersion = compilerOptions.target || 0; + var languageVersion = compilerOptions.target || 0 /* ES3 */; var write; var writeLine; var increaseIndent; @@ -18971,13 +22281,18 @@ var ts; var emit = compilerOptions.stripInternal ? stripInternal : emitNode; var moduleElementDeclarationEmitInfo = []; var asynchronousSubModuleDeclarationEmitInfo; + // Contains the reference paths that needs to go in the declaration file. + // Collecting this separately because reference paths need to be first thing in the declaration file + // and we could be collecting these paths from multiple files into single one with --out option var referencePathsOutput = ""; if (root) { + // Emitting just a single file, so emit references in this file only if (!compilerOptions.noResolve) { var addedGlobalFileReference = false; ts.forEach(root.referencedFiles, function (fileReference) { var referencedFile = ts.tryResolveScriptReference(host, root, fileReference); - if (referencedFile && ((referencedFile.flags & 2048) || + // All the references that are not going to be part of same file + if (referencedFile && ((referencedFile.flags & 2048 /* DeclarationFile */) || ts.shouldEmitToOwnFile(referencedFile, compilerOptions) || !addedGlobalFileReference)) { writeReferencePath(referencedFile); @@ -18988,11 +22303,12 @@ var ts; }); } emitSourceFile(root); + // create asynchronous output for the importDeclarations if (moduleElementDeclarationEmitInfo.length) { var oldWriter = writer; ts.forEach(moduleElementDeclarationEmitInfo, function (aliasEmitInfo) { if (aliasEmitInfo.isVisible) { - ts.Debug.assert(aliasEmitInfo.node.kind === 209); + ts.Debug.assert(aliasEmitInfo.node.kind === 209 /* ImportDeclaration */); createAndSetNewTextWriterWithSymbolWriter(); ts.Debug.assert(aliasEmitInfo.indent === 0); writeImportDeclaration(aliasEmitInfo.node); @@ -19003,12 +22319,15 @@ var ts; } } else { + // Emit references corresponding to this file var emittedReferencedFiles = []; ts.forEach(host.getSourceFiles(), function (sourceFile) { if (!ts.isExternalModuleOrDeclarationFile(sourceFile)) { + // Check what references need to be added if (!compilerOptions.noResolve) { ts.forEach(sourceFile.referencedFiles, function (fileReference) { var referencedFile = ts.tryResolveScriptReference(host, sourceFile, fileReference); + // If the reference file is a declaration file or an external module, emit that reference if (referencedFile && (ts.isExternalModuleOrDeclarationFile(referencedFile) && !ts.contains(emittedReferencedFiles, referencedFile))) { writeReferencePath(referencedFile); @@ -19065,10 +22384,10 @@ var ts; var oldWriter = writer; ts.forEach(nodes, function (declaration) { var nodeToCheck; - if (declaration.kind === 198) { + if (declaration.kind === 198 /* VariableDeclaration */) { nodeToCheck = declaration.parent.parent; } - else if (declaration.kind === 212 || declaration.kind === 213 || declaration.kind === 210) { + else if (declaration.kind === 212 /* NamedImports */ || declaration.kind === 213 /* ImportSpecifier */ || declaration.kind === 210 /* ImportClause */) { ts.Debug.fail("We should be getting ImportDeclaration instead to write"); } else { @@ -19078,8 +22397,17 @@ var ts; if (!moduleElementEmitInfo && asynchronousSubModuleDeclarationEmitInfo) { moduleElementEmitInfo = ts.forEach(asynchronousSubModuleDeclarationEmitInfo, function (declEmitInfo) { return declEmitInfo.node === nodeToCheck ? declEmitInfo : undefined; }); } + // If the alias was marked as not visible when we saw its declaration, we would have saved the aliasEmitInfo, but if we haven't yet visited the alias declaration + // then we don't need to write it at this point. We will write it when we actually see its declaration + // Eg. + // export function bar(a: foo.Foo) { } + // import foo = require("foo"); + // Writing of function bar would mark alias declaration foo as visible but we haven't yet visited that declaration so do nothing, + // we would write alias foo declaration when we visit it since it would now be marked as visible if (moduleElementEmitInfo) { - if (moduleElementEmitInfo.node.kind === 209) { + if (moduleElementEmitInfo.node.kind === 209 /* ImportDeclaration */) { + // we have to create asynchronous output only after we have collected complete information + // because it is possible to enable multiple bindings as asynchronously visible moduleElementEmitInfo.isVisible = true; } else { @@ -19087,12 +22415,12 @@ var ts; for (var declarationIndent = moduleElementEmitInfo.indent; declarationIndent; declarationIndent--) { increaseIndent(); } - if (nodeToCheck.kind === 205) { + if (nodeToCheck.kind === 205 /* ModuleDeclaration */) { ts.Debug.assert(asynchronousSubModuleDeclarationEmitInfo === undefined); asynchronousSubModuleDeclarationEmitInfo = []; } writeModuleElement(nodeToCheck); - if (nodeToCheck.kind === 205) { + if (nodeToCheck.kind === 205 /* ModuleDeclaration */) { moduleElementEmitInfo.subModuleElementDeclarationEmitInfo = asynchronousSubModuleDeclarationEmitInfo; asynchronousSubModuleDeclarationEmitInfo = undefined; } @@ -19103,12 +22431,14 @@ var ts; setWriter(oldWriter); } function handleSymbolAccessibilityError(symbolAccesibilityResult) { - if (symbolAccesibilityResult.accessibility === 0) { + if (symbolAccesibilityResult.accessibility === 0 /* Accessible */) { + // write the aliases if (symbolAccesibilityResult && symbolAccesibilityResult.aliasesToMakeVisible) { writeAsynchronousModuleElements(symbolAccesibilityResult.aliasesToMakeVisible); } } else { + // Report error reportedDeclarationError = true; var errorInfo = writer.getSymbolAccessibilityDiagnostic(symbolAccesibilityResult); if (errorInfo) { @@ -19128,20 +22458,22 @@ var ts; writer.getSymbolAccessibilityDiagnostic = getSymbolAccessibilityDiagnostic; write(": "); if (type) { + // Write the type emitType(type); } else { - resolver.writeTypeOfDeclaration(declaration, enclosingDeclaration, 2, writer); + resolver.writeTypeOfDeclaration(declaration, enclosingDeclaration, 2 /* UseTypeOfFunction */, writer); } } function writeReturnTypeAtSignature(signature, getSymbolAccessibilityDiagnostic) { writer.getSymbolAccessibilityDiagnostic = getSymbolAccessibilityDiagnostic; write(": "); if (signature.type) { + // Write the type emitType(signature.type); } else { - resolver.writeReturnTypeOfSignatureDeclaration(signature, enclosingDeclaration, 2, writer); + resolver.writeReturnTypeOfSignatureDeclaration(signature, enclosingDeclaration, 2 /* UseTypeOfFunction */, writer); } } function emitLines(nodes) { @@ -19170,6 +22502,7 @@ var ts; if (declaration) { var jsDocComments = ts.getJsDocComments(declaration, currentSourceFile); ts.emitNewLineBeforeLeadingComments(currentSourceFile, writer, declaration, jsDocComments); + // jsDoc comments are emitted at /*leading comment1 */space/*leading comment*/space ts.emitComments(currentSourceFile, writer, jsDocComments, true, newLine, ts.writeCommentRange); } } @@ -19179,49 +22512,51 @@ var ts; } function emitType(type) { switch (type.kind) { - case 112: - case 121: - case 119: - case 113: - case 122: - case 99: - case 8: + case 112 /* AnyKeyword */: + case 121 /* StringKeyword */: + case 119 /* NumberKeyword */: + case 113 /* BooleanKeyword */: + case 122 /* SymbolKeyword */: + case 99 /* VoidKeyword */: + case 8 /* StringLiteral */: return writeTextOfNode(currentSourceFile, type); - case 177: + case 177 /* HeritageClauseElement */: return emitHeritageClauseElement(type); - case 141: + case 141 /* TypeReference */: return emitTypeReference(type); - case 144: + case 144 /* TypeQuery */: return emitTypeQuery(type); - case 146: + case 146 /* ArrayType */: return emitArrayType(type); - case 147: + case 147 /* TupleType */: return emitTupleType(type); - case 148: + case 148 /* UnionType */: return emitUnionType(type); - case 149: + case 149 /* ParenthesizedType */: return emitParenType(type); - case 142: - case 143: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: return emitSignatureDeclarationWithJsDocComments(type); - case 145: + case 145 /* TypeLiteral */: return emitTypeLiteral(type); - case 65: + case 65 /* Identifier */: return emitEntityName(type); - case 126: + case 126 /* QualifiedName */: return emitEntityName(type); } function emitEntityName(entityName) { - var visibilityResult = resolver.isEntityNameVisible(entityName, entityName.parent.kind === 208 ? entityName.parent : enclosingDeclaration); + var visibilityResult = resolver.isEntityNameVisible(entityName, + // Aliases can be written asynchronously so use correct enclosing declaration + entityName.parent.kind === 208 /* ImportEqualsDeclaration */ ? entityName.parent : enclosingDeclaration); handleSymbolAccessibilityError(visibilityResult); writeEntityName(entityName); function writeEntityName(entityName) { - if (entityName.kind === 65) { + if (entityName.kind === 65 /* Identifier */) { writeTextOfNode(currentSourceFile, entityName); } else { - var left = entityName.kind === 126 ? entityName.left : entityName.expression; - var right = entityName.kind === 126 ? entityName.right : entityName.name; + var left = entityName.kind === 126 /* QualifiedName */ ? entityName.left : entityName.expression; + var right = entityName.kind === 126 /* QualifiedName */ ? entityName.right : entityName.name; writeEntityName(left); write("."); writeTextOfNode(currentSourceFile, right); @@ -19230,7 +22565,7 @@ var ts; } function emitHeritageClauseElement(node) { if (ts.isSupportedHeritageClauseElement(node)) { - ts.Debug.assert(node.expression.kind === 65 || node.expression.kind === 155); + ts.Debug.assert(node.expression.kind === 65 /* Identifier */ || node.expression.kind === 155 /* PropertyAccessExpression */); emitEntityName(node.expression); if (node.typeArguments) { write("<"); @@ -19273,6 +22608,7 @@ var ts; if (type.members.length) { writeLine(); increaseIndent(); + // write members emitLines(type.members); decreaseIndent(); } @@ -19284,25 +22620,47 @@ var ts; enclosingDeclaration = node; emitLines(node.statements); } + // Return a temp variable name to be used in `export default` statements. + // The temp name will be of the form _default_counter. + // Note that export default is only allowed at most once in a module, so we + // do not need to keep track of created temp names. + function getExportDefaultTempVariableName() { + var baseName = "_default"; + if (!ts.hasProperty(currentSourceFile.identifiers, baseName)) { + return baseName; + } + var count = 0; + while (true) { + var name_12 = baseName + "_" + (++count); + if (!ts.hasProperty(currentSourceFile.identifiers, name_12)) { + return name_12; + } + } + } function emitExportAssignment(node) { - write(node.isExportEquals ? "export = " : "export default "); - if (node.expression.kind === 65) { + if (node.expression.kind === 65 /* Identifier */) { + write(node.isExportEquals ? "export = " : "export default "); writeTextOfNode(currentSourceFile, node.expression); } else { + // Expression + var tempVarName = getExportDefaultTempVariableName(); + write("declare var "); + write(tempVarName); write(": "); - if (node.type) { - emitType(node.type); - } - else { - writer.getSymbolAccessibilityDiagnostic = getDefaultExportAccessibilityDiagnostic; - resolver.writeTypeOfExpression(node.expression, enclosingDeclaration, 2, writer); - } + writer.getSymbolAccessibilityDiagnostic = getDefaultExportAccessibilityDiagnostic; + resolver.writeTypeOfExpression(node.expression, enclosingDeclaration, 2 /* UseTypeOfFunction */, writer); + write(";"); + writeLine(); + write(node.isExportEquals ? "export = " : "export default "); + write(tempVarName); } write(";"); writeLine(); - if (node.expression.kind === 65) { + // Make all the declarations visible for the export name + if (node.expression.kind === 65 /* Identifier */) { var nodes = resolver.collectLinkedAliases(node.expression); + // write each of these declarations asynchronously writeAsynchronousModuleElements(nodes); } function getDefaultExportAccessibilityDiagnostic(diagnostic) { @@ -19319,10 +22677,11 @@ var ts; if (isModuleElementVisible) { writeModuleElement(node); } - else if (node.kind === 208 || - (node.parent.kind === 227 && ts.isExternalModule(currentSourceFile))) { + else if (node.kind === 208 /* ImportEqualsDeclaration */ || + (node.parent.kind === 227 /* SourceFile */ && ts.isExternalModule(currentSourceFile))) { var isVisible; - if (asynchronousSubModuleDeclarationEmitInfo && node.parent.kind !== 227) { + if (asynchronousSubModuleDeclarationEmitInfo && node.parent.kind !== 227 /* SourceFile */) { + // Import declaration of another module that is visited async so lets put it in right spot asynchronousSubModuleDeclarationEmitInfo.push({ node: node, outputPos: writer.getTextPos(), @@ -19331,7 +22690,7 @@ var ts; }); } else { - if (node.kind === 209) { + if (node.kind === 209 /* ImportDeclaration */) { var importDeclaration = node; if (importDeclaration.importClause) { isVisible = (importDeclaration.importClause.name && resolver.isDeclarationVisible(importDeclaration.importClause)) || @@ -19349,55 +22708,59 @@ var ts; } function writeModuleElement(node) { switch (node.kind) { - case 200: + case 200 /* FunctionDeclaration */: return writeFunctionDeclaration(node); - case 180: + case 180 /* VariableStatement */: return writeVariableStatement(node); - case 202: + case 202 /* InterfaceDeclaration */: return writeInterfaceDeclaration(node); - case 201: + case 201 /* ClassDeclaration */: return writeClassDeclaration(node); - case 203: + case 203 /* TypeAliasDeclaration */: return writeTypeAliasDeclaration(node); - case 204: + case 204 /* EnumDeclaration */: return writeEnumDeclaration(node); - case 205: + case 205 /* ModuleDeclaration */: return writeModuleDeclaration(node); - case 208: + case 208 /* ImportEqualsDeclaration */: return writeImportEqualsDeclaration(node); - case 209: + case 209 /* ImportDeclaration */: return writeImportDeclaration(node); default: ts.Debug.fail("Unknown symbol kind"); } } function emitModuleElementDeclarationFlags(node) { + // If the node is parented in the current source file we need to emit export declare or just export if (node.parent === currentSourceFile) { - if (node.flags & 1) { + // If the node is exported + if (node.flags & 1 /* Export */) { write("export "); } - if (node.flags & 256) { + if (node.flags & 256 /* Default */) { write("default "); } - else if (node.kind !== 202) { + else if (node.kind !== 202 /* InterfaceDeclaration */) { write("declare "); } } } function emitClassMemberDeclarationFlags(node) { - if (node.flags & 32) { + if (node.flags & 32 /* Private */) { write("private "); } - else if (node.flags & 64) { + else if (node.flags & 64 /* Protected */) { write("protected "); } - if (node.flags & 128) { + if (node.flags & 128 /* Static */) { write("static "); } } function writeImportEqualsDeclaration(node) { + // note usage of writer. methods instead of aliases created, just to make sure we are using + // correct writer especially to handle asynchronous alias writing emitJsDocComments(node); - if (node.flags & 1) { + if (node.flags & 1 /* Export */) { write("export "); } write("import "); @@ -19423,7 +22786,7 @@ var ts; } function isVisibleNamedBinding(namedBindings) { if (namedBindings) { - if (namedBindings.kind === 211) { + if (namedBindings.kind === 211 /* NamespaceImport */) { return resolver.isDeclarationVisible(namedBindings); } else { @@ -19432,11 +22795,12 @@ var ts; } } function writeImportDeclaration(node) { - if (!node.importClause && !(node.flags & 1)) { + if (!node.importClause && !(node.flags & 1 /* Export */)) { + // do not write non-exported import declarations that don't have import clauses return; } emitJsDocComments(node); - if (node.flags & 1) { + if (node.flags & 1 /* Export */) { write("export "); } write("import "); @@ -19447,9 +22811,10 @@ var ts; } if (node.importClause.namedBindings && isVisibleNamedBinding(node.importClause.namedBindings)) { if (currentWriterPos !== writer.getTextPos()) { + // If the default binding was emitted, write the separated write(", "); } - if (node.importClause.namedBindings.kind === 211) { + if (node.importClause.namedBindings.kind === 211 /* NamespaceImport */) { write("* as "); writeTextOfNode(currentSourceFile, node.importClause.namedBindings.name); } @@ -19474,7 +22839,9 @@ var ts; } function emitExportSpecifier(node) { emitImportOrExportSpecifier(node); + // Make all the declarations visible for the export name var nodes = resolver.collectLinkedAliases(node.propertyName || node.name); + // write each of these declarations asynchronously writeAsynchronousModuleElements(nodes); } function emitExportDeclaration(node) { @@ -19500,7 +22867,7 @@ var ts; emitModuleElementDeclarationFlags(node); write("module "); writeTextOfNode(currentSourceFile, node.name); - while (node.body.kind !== 206) { + while (node.body.kind !== 206 /* ModuleBlock */) { node = node.body; write("."); writeTextOfNode(currentSourceFile, node.name); @@ -19561,7 +22928,7 @@ var ts; writeLine(); } function isPrivateMethodTypeParameter(node) { - return node.parent.kind === 134 && (node.parent.flags & 32); + return node.parent.kind === 134 /* MethodDeclaration */ && (node.parent.flags & 32 /* Private */); } function emitTypeParameters(typeParameters) { function emitTypeParameter(node) { @@ -19569,17 +22936,18 @@ var ts; emitJsDocComments(node); decreaseIndent(); writeTextOfNode(currentSourceFile, node.name); + // If there is constraint present and this is not a type parameter of the private method emit the constraint if (node.constraint && !isPrivateMethodTypeParameter(node)) { write(" extends "); - if (node.parent.kind === 142 || - node.parent.kind === 143 || - (node.parent.parent && node.parent.parent.kind === 145)) { - ts.Debug.assert(node.parent.kind === 134 || - node.parent.kind === 133 || - node.parent.kind === 142 || - node.parent.kind === 143 || - node.parent.kind === 138 || - node.parent.kind === 139); + if (node.parent.kind === 142 /* FunctionType */ || + node.parent.kind === 143 /* ConstructorType */ || + (node.parent.parent && node.parent.parent.kind === 145 /* TypeLiteral */)) { + ts.Debug.assert(node.parent.kind === 134 /* MethodDeclaration */ || + node.parent.kind === 133 /* MethodSignature */ || + node.parent.kind === 142 /* FunctionType */ || + node.parent.kind === 143 /* ConstructorType */ || + node.parent.kind === 138 /* CallSignature */ || + node.parent.kind === 139 /* ConstructSignature */); emitType(node.constraint); } else { @@ -19587,33 +22955,34 @@ var ts; } } function getTypeParameterConstraintVisibilityError(symbolAccesibilityResult) { + // Type parameter constraints are named by user so we should always be able to name it var diagnosticMessage; switch (node.parent.kind) { - case 201: + case 201 /* ClassDeclaration */: diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1; break; - case 202: + case 202 /* InterfaceDeclaration */: diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1; break; - case 139: + case 139 /* ConstructSignature */: diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; break; - case 138: + case 138 /* CallSignature */: diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; break; - case 134: - case 133: - if (node.parent.flags & 128) { + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + if (node.parent.flags & 128 /* Static */) { diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; } - else if (node.parent.parent.kind === 201) { + else if (node.parent.parent.kind === 201 /* ClassDeclaration */) { diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } break; - case 200: + case 200 /* FunctionDeclaration */: diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1; break; default: @@ -19643,12 +23012,15 @@ var ts; } function getHeritageClauseVisibilityError(symbolAccesibilityResult) { var diagnosticMessage; - if (node.parent.parent.kind === 201) { + // Heritage clause is written by user so it can always be named + if (node.parent.parent.kind === 201 /* ClassDeclaration */) { + // Class or Interface implemented/extended is inaccessible diagnosticMessage = isImplementsList ? ts.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1 : ts.Diagnostics.Extends_clause_of_exported_class_0_has_or_is_using_private_name_1; } else { + // interface is inaccessible diagnosticMessage = ts.Diagnostics.Extends_clause_of_exported_interface_0_has_or_is_using_private_name_1; } return { @@ -19663,7 +23035,7 @@ var ts; function emitParameterProperties(constructorDeclaration) { if (constructorDeclaration) { ts.forEach(constructorDeclaration.parameters, function (param) { - if (param.flags & 112) { + if (param.flags & 112 /* AccessibilityModifier */) { emitPropertyDeclaration(param); } }); @@ -19720,47 +23092,55 @@ var ts; writeLine(); } function emitVariableDeclaration(node) { - if (node.kind !== 198 || resolver.isDeclarationVisible(node)) { + // If we are emitting property it isn't moduleElement and hence we already know it needs to be emitted + // so there is no check needed to see if declaration is visible + if (node.kind !== 198 /* VariableDeclaration */ || resolver.isDeclarationVisible(node)) { if (ts.isBindingPattern(node.name)) { emitBindingPattern(node.name); } else { + // If this node is a computed name, it can only be a symbol, because we've already skipped + // it if it's not a well known symbol. In that case, the text of the name will be exactly + // what we want, namely the name expression enclosed in brackets. writeTextOfNode(currentSourceFile, node.name); - if ((node.kind === 132 || node.kind === 131) && ts.hasQuestionToken(node)) { + // If optional property emit ? + if ((node.kind === 132 /* PropertyDeclaration */ || node.kind === 131 /* PropertySignature */) && ts.hasQuestionToken(node)) { write("?"); } - if ((node.kind === 132 || node.kind === 131) && node.parent.kind === 145) { + if ((node.kind === 132 /* PropertyDeclaration */ || node.kind === 131 /* PropertySignature */) && node.parent.kind === 145 /* TypeLiteral */) { emitTypeOfVariableDeclarationFromTypeLiteral(node); } - else if (!(node.flags & 32)) { + else if (!(node.flags & 32 /* Private */)) { writeTypeOfDeclaration(node, node.type, getVariableDeclarationTypeVisibilityError); } } } function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult) { - if (node.kind === 198) { + if (node.kind === 198 /* VariableDeclaration */) { return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1; } - else if (node.kind === 132 || node.kind === 131) { - if (node.flags & 128) { + else if (node.kind === 132 /* PropertyDeclaration */ || node.kind === 131 /* PropertySignature */) { + // TODO(jfreeman): Deal with computed properties in error reporting. + if (node.flags & 128 /* Static */) { return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; } - else if (node.parent.kind === 201) { + else if (node.parent.kind === 201 /* ClassDeclaration */) { return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; } else { + // Interfaces cannot have types that cannot be named return symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; @@ -19776,10 +23156,15 @@ var ts; } : undefined; } function emitBindingPattern(bindingPattern) { + // Only select non-omitted expression from the bindingPattern's elements. + // We have to do this to avoid emitting trailing commas. + // For example: + // original: var [, c,,] = [ 2,3,4] + // emitted: declare var c: number; // instead of declare var c:number, ; var elements = []; for (var _i = 0, _a = bindingPattern.elements; _i < _a.length; _i++) { var element = _a[_i]; - if (element.kind !== 175) { + if (element.kind !== 175 /* OmittedExpression */) { elements.push(element); } } @@ -19806,6 +23191,9 @@ var ts; } } function emitTypeOfVariableDeclarationFromTypeLiteral(node) { + // if this is property of type literal, + // or is parameter of method/call/construct/index signature of type literal + // emit only if type is specified if (node.type) { write(": "); emitType(node.type); @@ -19841,11 +23229,12 @@ var ts; emitJsDocComments(accessors.setAccessor); emitClassMemberDeclarationFlags(node); writeTextOfNode(currentSourceFile, node.name); - if (!(node.flags & 32)) { + if (!(node.flags & 32 /* Private */)) { accessorWithTypeAnnotation = node; var type = getTypeAnnotationFromAccessor(node); if (!type) { - var anotherAccessor = node.kind === 136 ? accessors.setAccessor : accessors.getAccessor; + // couldn't get type for the first accessor, try the another one + var anotherAccessor = node.kind === 136 /* GetAccessor */ ? accessors.setAccessor : accessors.getAccessor; type = getTypeAnnotationFromAccessor(anotherAccessor); if (type) { accessorWithTypeAnnotation = anotherAccessor; @@ -19858,17 +23247,18 @@ var ts; } function getTypeAnnotationFromAccessor(accessor) { if (accessor) { - return accessor.kind === 136 - ? accessor.type + return accessor.kind === 136 /* GetAccessor */ + ? accessor.type // Getter - return type : accessor.parameters.length > 0 - ? accessor.parameters[0].type + ? accessor.parameters[0].type // Setter parameter type : undefined; } } function getAccessorDeclarationTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage; - if (accessorWithTypeAnnotation.kind === 137) { - if (accessorWithTypeAnnotation.parent.flags & 128) { + if (accessorWithTypeAnnotation.kind === 137 /* SetAccessor */) { + // Setters have to have type named and cannot infer it so, the type should always be named + if (accessorWithTypeAnnotation.parent.flags & 128 /* Static */) { diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1; @@ -19881,20 +23271,21 @@ var ts; return { diagnosticMessage: diagnosticMessage, errorNode: accessorWithTypeAnnotation.parameters[0], + // TODO(jfreeman): Investigate why we are passing node.name instead of node.parameters[0].name typeName: accessorWithTypeAnnotation.name }; } else { - if (accessorWithTypeAnnotation.flags & 128) { + if (accessorWithTypeAnnotation.flags & 128 /* Static */) { diagnosticMessage = symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0; } else { diagnosticMessage = symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0; @@ -19911,19 +23302,21 @@ var ts; if (ts.hasDynamicName(node)) { return; } + // If we are emitting Method/Constructor it isn't moduleElement and hence already determined to be emitting + // so no need to verify if the declaration is visible if (!resolver.isImplementationOfOverload(node)) { emitJsDocComments(node); - if (node.kind === 200) { + if (node.kind === 200 /* FunctionDeclaration */) { emitModuleElementDeclarationFlags(node); } - else if (node.kind === 134) { + else if (node.kind === 134 /* MethodDeclaration */) { emitClassMemberDeclarationFlags(node); } - if (node.kind === 200) { + if (node.kind === 200 /* FunctionDeclaration */) { write("function "); writeTextOfNode(currentSourceFile, node.name); } - else if (node.kind === 135) { + else if (node.kind === 135 /* Constructor */) { write("constructor"); } else { @@ -19940,11 +23333,12 @@ var ts; emitSignatureDeclaration(node); } function emitSignatureDeclaration(node) { - if (node.kind === 139 || node.kind === 143) { + // Construct signature or constructor type write new Signature + if (node.kind === 139 /* ConstructSignature */ || node.kind === 143 /* ConstructorType */) { write("new "); } emitTypeParameters(node.typeParameters); - if (node.kind === 140) { + if (node.kind === 140 /* IndexSignature */) { write("["); } else { @@ -19952,21 +23346,24 @@ var ts; } var prevEnclosingDeclaration = enclosingDeclaration; enclosingDeclaration = node; + // Parameters emitCommaList(node.parameters, emitParameterDeclaration); - if (node.kind === 140) { + if (node.kind === 140 /* IndexSignature */) { write("]"); } else { write(")"); } - var isFunctionTypeOrConstructorType = node.kind === 142 || node.kind === 143; - if (isFunctionTypeOrConstructorType || node.parent.kind === 145) { + // If this is not a constructor and is not private, emit the return type + var isFunctionTypeOrConstructorType = node.kind === 142 /* FunctionType */ || node.kind === 143 /* ConstructorType */; + if (isFunctionTypeOrConstructorType || node.parent.kind === 145 /* TypeLiteral */) { + // Emit type literal signature return type only if specified if (node.type) { write(isFunctionTypeOrConstructorType ? " => " : ": "); emitType(node.type); } } - else if (node.kind !== 135 && !(node.flags & 32)) { + else if (node.kind !== 135 /* Constructor */ && !(node.flags & 32 /* Private */)) { writeReturnTypeAtSignature(node, getReturnTypeVisibilityError); } enclosingDeclaration = prevEnclosingDeclaration; @@ -19977,46 +23374,50 @@ var ts; function getReturnTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage; switch (node.kind) { - case 139: + case 139 /* ConstructSignature */: + // Interfaces cannot have return types that cannot be named diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 138: + case 138 /* CallSignature */: + // Interfaces cannot have return types that cannot be named diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 140: + case 140 /* IndexSignature */: + // Interfaces cannot have return types that cannot be named diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 134: - case 133: - if (node.flags & 128) { + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + if (node.flags & 128 /* Static */) { diagnosticMessage = symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0; } - else if (node.parent.kind === 201) { + else if (node.parent.kind === 201 /* ClassDeclaration */) { diagnosticMessage = symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0; } else { + // Interfaces cannot have return types that cannot be named diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0; } break; - case 200: + case 200 /* FunctionDeclaration */: diagnosticMessage = symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0; @@ -20037,6 +23438,9 @@ var ts; write("..."); } if (ts.isBindingPattern(node.name)) { + // For bindingPattern, we can't simply writeTextOfNode from the source file + // because we want to omit the initializer and using writeTextOfNode will result in initializer get emitted. + // Therefore, we will have to recursively emit each element in the bindingPattern. emitBindingPattern(node.name); } else { @@ -20046,12 +23450,12 @@ var ts; write("?"); } decreaseIndent(); - if (node.parent.kind === 142 || - node.parent.kind === 143 || - node.parent.parent.kind === 145) { + if (node.parent.kind === 142 /* FunctionType */ || + node.parent.kind === 143 /* ConstructorType */ || + node.parent.parent.kind === 145 /* TypeLiteral */) { emitTypeOfVariableDeclarationFromTypeLiteral(node); } - else if (!(node.parent.flags & 32)) { + else if (!(node.parent.flags & 32 /* Private */)) { writeTypeOfDeclaration(node, node.type, getParameterDeclarationTypeVisibilityError); } function getParameterDeclarationTypeVisibilityError(symbolAccesibilityResult) { @@ -20064,44 +23468,47 @@ var ts; } function getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult) { switch (node.parent.kind) { - case 135: + case 135 /* Constructor */: return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1; - case 139: + case 139 /* ConstructSignature */: + // Interfaces cannot have parameter types that cannot be named return symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; - case 138: + case 138 /* CallSignature */: + // Interfaces cannot have parameter types that cannot be named return symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; - case 134: - case 133: - if (node.parent.flags & 128) { + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + if (node.parent.flags & 128 /* Static */) { return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; } - else if (node.parent.parent.kind === 201) { + else if (node.parent.parent.kind === 201 /* ClassDeclaration */) { return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { + // Interfaces cannot have parameter types that cannot be named return symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } - case 200: + case 200 /* FunctionDeclaration */: return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1; @@ -20110,12 +23517,13 @@ var ts; } } function emitBindingPattern(bindingPattern) { - if (bindingPattern.kind === 150) { + // We have to explicitly emit square bracket and bracket because these tokens are not store inside the node. + if (bindingPattern.kind === 150 /* ObjectBindingPattern */) { write("{"); emitCommaList(bindingPattern.elements, emitBindingElement); write("}"); } - else if (bindingPattern.kind === 151) { + else if (bindingPattern.kind === 151 /* ArrayBindingPattern */) { write("["); var elements = bindingPattern.elements; emitCommaList(elements, emitBindingElement); @@ -20134,21 +23542,45 @@ var ts; typeName: bindingElement.name } : undefined; } - if (bindingElement.kind === 175) { + if (bindingElement.kind === 175 /* OmittedExpression */) { + // If bindingElement is an omittedExpression (i.e. containing elision), + // we will emit blank space (although this may differ from users' original code, + // it allows emitSeparatedList to write separator appropriately) + // Example: + // original: function foo([, x, ,]) {} + // emit : function foo([ , x, , ]) {} write(" "); } - else if (bindingElement.kind === 152) { + else if (bindingElement.kind === 152 /* BindingElement */) { if (bindingElement.propertyName) { + // bindingElement has propertyName property in the following case: + // { y: [a,b,c] ...} -> bindingPattern will have a property called propertyName for "y" + // We have to explicitly emit the propertyName before descending into its binding elements. + // Example: + // original: function foo({y: [a,b,c]}) {} + // emit : declare function foo({y: [a, b, c]}: { y: [any, any, any] }) void; writeTextOfNode(currentSourceFile, bindingElement.propertyName); write(": "); + // If bindingElement has propertyName property, then its name must be another bindingPattern of SyntaxKind.ObjectBindingPattern emitBindingPattern(bindingElement.name); } else if (bindingElement.name) { if (ts.isBindingPattern(bindingElement.name)) { + // If it is a nested binding pattern, we will recursively descend into each element and emit each one separately. + // In the case of rest element, we will omit rest element. + // Example: + // original: function foo([a, [[b]], c] = [1,[["string"]], 3]) {} + // emit : declare function foo([a, [[b]], c]: [number, [[string]], number]): void; + // original with rest: function foo([a, ...c]) {} + // emit : declare function foo([a, ...c]): void; emitBindingPattern(bindingElement.name); } else { - ts.Debug.assert(bindingElement.name.kind === 65); + ts.Debug.assert(bindingElement.name.kind === 65 /* Identifier */); + // If the node is just an identifier, we will simply emit the text associated with the node's name + // Example: + // original: function foo({y = 10, x}) {} + // emit : declare function foo({y, x}: {number, any}): void; if (bindingElement.dotDotDotToken) { write("..."); } @@ -20160,54 +23592,59 @@ var ts; } function emitNode(node) { switch (node.kind) { - case 200: - case 205: - case 208: - case 202: - case 201: - case 203: - case 204: + case 200 /* FunctionDeclaration */: + case 205 /* ModuleDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 202 /* InterfaceDeclaration */: + case 201 /* ClassDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 204 /* EnumDeclaration */: return emitModuleElement(node, isModuleElementVisible(node)); - case 180: + case 180 /* VariableStatement */: return emitModuleElement(node, isVariableStatementVisible(node)); - case 209: + case 209 /* ImportDeclaration */: + // Import declaration without import clause is visible, otherwise it is not visible return emitModuleElement(node, !node.importClause); - case 215: + case 215 /* ExportDeclaration */: return emitExportDeclaration(node); - case 135: - case 134: - case 133: + case 135 /* Constructor */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return writeFunctionDeclaration(node); - case 139: - case 138: - case 140: + case 139 /* ConstructSignature */: + case 138 /* CallSignature */: + case 140 /* IndexSignature */: return emitSignatureDeclarationWithJsDocComments(node); - case 136: - case 137: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: return emitAccessorDeclaration(node); - case 132: - case 131: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: return emitPropertyDeclaration(node); - case 226: + case 226 /* EnumMember */: return emitEnumMemberDeclaration(node); - case 214: + case 214 /* ExportAssignment */: return emitExportAssignment(node); - case 227: + case 227 /* SourceFile */: return emitSourceFile(node); } } function writeReferencePath(referencedFile) { - var declFileName = referencedFile.flags & 2048 - ? referencedFile.fileName + var declFileName = referencedFile.flags & 2048 /* DeclarationFile */ + ? referencedFile.fileName // Declaration file, use declaration file name : ts.shouldEmitToOwnFile(referencedFile, compilerOptions) - ? ts.getOwnEmitOutputFilePath(referencedFile, host, ".d.ts") - : ts.removeFileExtension(compilerOptions.out) + ".d.ts"; - declFileName = ts.getRelativePathToDirectoryOrUrl(ts.getDirectoryPath(ts.normalizeSlashes(jsFilePath)), declFileName, host.getCurrentDirectory(), host.getCanonicalFileName, false); + ? ts.getOwnEmitOutputFilePath(referencedFile, host, ".d.ts") // Own output file so get the .d.ts file + : ts.removeFileExtension(compilerOptions.out) + ".d.ts"; // Global out file + declFileName = ts.getRelativePathToDirectoryOrUrl(ts.getDirectoryPath(ts.normalizeSlashes(jsFilePath)), declFileName, host.getCurrentDirectory(), host.getCanonicalFileName, + /*isAbsolutePathAnUrl*/ false); referencePathsOutput += "/// " + newLine; } } + /* @internal */ function writeDeclarationFile(jsFilePath, sourceFile, host, resolver, diagnostics) { var emitDeclarationResult = emitDeclarations(host, resolver, diagnostics, jsFilePath, sourceFile); + // TODO(shkamat): Should we not write any declaration file if any of them can produce error, + // or should we just not write this file like we are doing now if (!emitDeclarationResult.reportedDeclarationError) { var declarationOutput = emitDeclarationResult.referencePathsOutput + getDeclarationOutput(emitDeclarationResult.synchronousDeclarationOutput, emitDeclarationResult.moduleElementDeclarationEmitInfo); @@ -20216,6 +23653,7 @@ var ts; function getDeclarationOutput(synchronousDeclarationOutput, moduleElementDeclarationEmitInfo) { var appliedSyncOutputPos = 0; var declarationOutput = ""; + // apply asynchronous additions to the synchronous output ts.forEach(moduleElementDeclarationEmitInfo, function (aliasEmitInfo) { if (aliasEmitInfo.asynchronousOutput) { declarationOutput += synchronousDeclarationOutput.substring(appliedSyncOutputPos, aliasEmitInfo.outputPos); @@ -20231,12 +23669,14 @@ var ts; })(ts || (ts = {})); /// /// +/* @internal */ var ts; (function (ts) { function isExternalModuleOrDeclarationFile(sourceFile) { return ts.isExternalModule(sourceFile) || ts.isDeclarationFile(sourceFile); } ts.isExternalModuleOrDeclarationFile = isExternalModuleOrDeclarationFile; + // Flags enum to track count of temp variables and a few dedicated names var TempFlags; (function (TempFlags) { TempFlags[TempFlags["Auto"] = 0] = "Auto"; @@ -20244,9 +23684,18 @@ var ts; TempFlags[TempFlags["_i"] = 268435456] = "_i"; TempFlags[TempFlags["_n"] = 536870912] = "_n"; })(TempFlags || (TempFlags = {})); + // targetSourceFile is when users only want one file in entire project to be emitted. This is used in compileOnSave feature function emitFiles(resolver, host, targetSourceFile) { + // emit output for the __extends helper function + var extendsHelper = "\nvar __extends = this.__extends || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n __.prototype = b.prototype;\n d.prototype = new __();\n};"; + // emit output for the __decorate helper function + var decorateHelper = "\nvar __decorate = this.__decorate || (typeof Reflect === \"object\" && Reflect.decorate) || function (decorators, target, key, desc) {\n switch (arguments.length) {\n case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);\n case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);\n case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);\n }\n};"; + // emit output for the __metadata helper function + var metadataHelper = "\nvar __metadata = this.__metadata || (typeof Reflect === \"object\" && Reflect.metadata) || function () { };"; + // emit output for the __param helper function + var paramHelper = "\nvar __param = this.__param || function(index, decorator) { return function (target, key) { decorator(target, key, index); } };"; var compilerOptions = host.getCompilerOptions(); - var languageVersion = compilerOptions.target || 0; + var languageVersion = compilerOptions.target || 0 /* ES3 */; var sourceMapDataList = compilerOptions.sourceMap ? [] : undefined; var diagnostics = []; var newLine = host.getNewLine(); @@ -20262,6 +23711,7 @@ var ts; } } else { + // targetSourceFile is specified (e.g calling emitter from language service or calling getSemanticDiagnostic from language service) if (ts.shouldEmitToOwnFile(targetSourceFile, compilerOptions)) { var jsFilePath = ts.getOwnEmitOutputFilePath(targetSourceFile, host, ".js"); emitFile(jsFilePath, targetSourceFile); @@ -20270,6 +23720,7 @@ var ts; emitFile(compilerOptions.out); } } + // Sort and make the unique list of diagnostics diagnostics = ts.sortAndDeduplicateDiagnostics(diagnostics); return { emitSkipped: false, @@ -20287,7 +23738,8 @@ var ts; function isUniqueLocalName(name, container) { for (var node = container; isNodeDescendentOf(node, container); node = node.nextContainer) { if (node.locals && ts.hasProperty(node.locals, name)) { - if (node.locals[name].flags & (107455 | 1048576 | 8388608)) { + // We conservatively include alias symbols to cover cases where they're emitted as locals + if (node.locals[name].flags & (107455 /* Value */ | 1048576 /* ExportValue */ | 8388608 /* Alias */)) { return false; } } @@ -20308,6 +23760,7 @@ var ts; var computedPropertyNamesToGeneratedNames; var extendsEmitted = false; var decorateEmitted = false; + var paramEmitted = false; var tempFlags = 0; var tempVariables; var tempParameters; @@ -20315,20 +23768,36 @@ var ts; var exportSpecifiers; var exportEquals; var hasExportStars; + /** write emitted output to disk*/ var writeEmittedFiles = writeJavaScriptFile; var detachedCommentsInfo; var writeComment = ts.writeCommentRange; + /** Emit a node */ var emit = emitNodeWithoutSourceMap; + /** Called just before starting emit of a node */ var emitStart = function (node) { }; + /** Called once the emit of the node is done */ var emitEnd = function (node) { }; + /** Emit the text for the given token that comes after startPos + * This by default writes the text provided with the given tokenKind + * but if optional emitFn callback is provided the text is emitted using the callback instead of default text + * @param tokenKind the kind of the token to search and emit + * @param startPos the position in the source to start searching for the token + * @param emitFn if given will be invoked to emit the text instead of actual token emit */ var emitToken = emitTokenText; + /** Called to before starting the lexical scopes as in function/class in the emitted code because of node + * @param scopeDeclaration node that starts the lexical scope + * @param scopeName Optional name of this scope instead of deducing one from the declaration node */ var scopeEmitStart = function (scopeDeclaration, scopeName) { }; + /** Called after coming out of the scope */ var scopeEmitEnd = function () { }; + /** Sourcemap data that will get encoded */ var sourceMapData; if (compilerOptions.sourceMap) { initializeEmitterWithSourceMaps(); } if (root) { + // Do not call emit directly. It does not set the currentSourceFile. emitSourceFile(root); } else { @@ -20350,27 +23819,36 @@ var ts; !ts.hasProperty(currentSourceFile.identifiers, name) && !ts.hasProperty(generatedNameSet, name); } + // Return the next available name in the pattern _a ... _z, _0, _1, ... + // TempFlags._i or TempFlags._n may be used to express a preference for that dedicated name. + // Note that names generated by makeTempVariableName and makeUniqueName will never conflict. function makeTempVariableName(flags) { if (flags && !(tempFlags & flags)) { - var name = flags === 268435456 ? "_i" : "_n"; + var name = flags === 268435456 /* _i */ ? "_i" : "_n"; if (isUniqueName(name)) { tempFlags |= flags; return name; } } while (true) { - var count = tempFlags & 268435455; + var count = tempFlags & 268435455 /* CountMask */; tempFlags++; + // Skip over 'i' and 'n' if (count !== 8 && count !== 13) { - var name_12 = count < 26 ? "_" + String.fromCharCode(97 + count) : "_" + (count - 26); - if (isUniqueName(name_12)) { - return name_12; + var name_13 = count < 26 ? "_" + String.fromCharCode(97 /* a */ + count) : "_" + (count - 26); + if (isUniqueName(name_13)) { + return name_13; } } } } + // Generate a name that is unique within the current file and doesn't conflict with any names + // in global scope. The name is formed by adding an '_n' suffix to the specified base name, + // where n is a positive integer. Note that names generated by makeTempVariableName and + // makeUniqueName are guaranteed to never conflict. function makeUniqueName(baseName) { - if (baseName.charCodeAt(baseName.length - 1) !== 95) { + // Find the first unique 'name_n', where n is a positive number + if (baseName.charCodeAt(baseName.length - 1) !== 95 /* _ */) { baseName += "_"; } var i = 1; @@ -20391,14 +23869,15 @@ var ts; } } function generateNameForModuleOrEnum(node) { - if (node.name.kind === 65) { - var name_13 = node.name.text; - assignGeneratedName(node, isUniqueLocalName(name_13, node) ? name_13 : makeUniqueName(name_13)); + if (node.name.kind === 65 /* Identifier */) { + var name_14 = node.name.text; + // Use module/enum name itself if it is unique, otherwise make a unique variation + assignGeneratedName(node, isUniqueLocalName(name_14, node) ? name_14 : makeUniqueName(name_14)); } } function generateNameForImportOrExportDeclaration(node) { var expr = ts.getExternalModuleName(node); - var baseName = expr.kind === 8 ? + var baseName = expr.kind === 8 /* StringLiteral */ ? ts.escapeIdentifier(ts.makeIdentifierFromModuleName(expr.text)) : "module"; assignGeneratedName(node, makeUniqueName(baseName)); } @@ -20413,30 +23892,31 @@ var ts; } } function generateNameForExportAssignment(node) { - if (node.expression && node.expression.kind !== 65) { + if (node.expression && node.expression.kind !== 65 /* Identifier */) { assignGeneratedName(node, makeUniqueName("default")); } } function generateNameForNode(node) { switch (node.kind) { - case 200: - case 201: + case 200 /* FunctionDeclaration */: + case 201 /* ClassDeclaration */: + case 174 /* ClassExpression */: generateNameForFunctionOrClassDeclaration(node); break; - case 205: + case 205 /* ModuleDeclaration */: generateNameForModuleOrEnum(node); generateNameForNode(node.body); break; - case 204: + case 204 /* EnumDeclaration */: generateNameForModuleOrEnum(node); break; - case 209: + case 209 /* ImportDeclaration */: generateNameForImportDeclaration(node); break; - case 215: + case 215 /* ExportDeclaration */: generateNameForExportDeclaration(node); break; - case 214: + case 214 /* ExportAssignment */: generateNameForExportAssignment(node); break; } @@ -20449,13 +23929,16 @@ var ts; return nodeToGeneratedName[nodeId]; } function initializeEmitterWithSourceMaps() { - var sourceMapDir; + var sourceMapDir; // The directory in which sourcemap will be + // Current source map file and its index in the sources list var sourceMapSourceIndex = -1; + // Names and its index map var sourceMapNameIndexMap = {}; var sourceMapNameIndices = []; function getSourceMapNameIndex() { return sourceMapNameIndices.length ? sourceMapNameIndices[sourceMapNameIndices.length - 1] : -1; } + // Last recorded and encoded spans var lastRecordedSourceMapSpan; var lastEncodedSourceMapSpan = { emittedLine: 1, @@ -20465,26 +23948,35 @@ var ts; sourceIndex: 0 }; var lastEncodedNameIndex = 0; + // Encoding for sourcemap span function encodeLastRecordedSourceMapSpan() { if (!lastRecordedSourceMapSpan || lastRecordedSourceMapSpan === lastEncodedSourceMapSpan) { return; } var prevEncodedEmittedColumn = lastEncodedSourceMapSpan.emittedColumn; + // Line/Comma delimiters if (lastEncodedSourceMapSpan.emittedLine == lastRecordedSourceMapSpan.emittedLine) { + // Emit comma to separate the entry if (sourceMapData.sourceMapMappings) { sourceMapData.sourceMapMappings += ","; } } else { + // Emit line delimiters for (var encodedLine = lastEncodedSourceMapSpan.emittedLine; encodedLine < lastRecordedSourceMapSpan.emittedLine; encodedLine++) { sourceMapData.sourceMapMappings += ";"; } prevEncodedEmittedColumn = 1; } + // 1. Relative Column 0 based sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.emittedColumn - prevEncodedEmittedColumn); + // 2. Relative sourceIndex sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.sourceIndex - lastEncodedSourceMapSpan.sourceIndex); + // 3. Relative sourceLine 0 based sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.sourceLine - lastEncodedSourceMapSpan.sourceLine); + // 4. Relative sourceColumn 0 based sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.sourceColumn - lastEncodedSourceMapSpan.sourceColumn); + // 5. Relative namePosition 0 based if (lastRecordedSourceMapSpan.nameIndex >= 0) { sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.nameIndex - lastEncodedNameIndex); lastEncodedNameIndex = lastRecordedSourceMapSpan.nameIndex; @@ -20498,17 +23990,24 @@ var ts; } throw TypeError(inValue + ": not a 64 based value"); } + // Add a new least significant bit that has the sign of the value. + // if negative number the least significant bit that gets added to the number has value 1 + // else least significant bit value that gets added is 0 + // eg. -1 changes to binary : 01 [1] => 3 + // +1 changes to binary : 01 [0] => 2 if (inValue < 0) { inValue = ((-inValue) << 1) + 1; } else { inValue = inValue << 1; } + // Encode 5 bits at a time starting from least significant bits var encodedStr = ""; do { - var currentDigit = inValue & 31; + var currentDigit = inValue & 31; // 11111 inValue = inValue >> 5; if (inValue > 0) { + // There are still more digits to decode, set the msb (6th bit) currentDigit = currentDigit | 32; } encodedStr = encodedStr + base64FormatEncode(currentDigit); @@ -20518,17 +24017,21 @@ var ts; } function recordSourceMapSpan(pos) { var sourceLinePos = ts.getLineAndCharacterOfPosition(currentSourceFile, pos); + // Convert the location to be one-based. sourceLinePos.line++; sourceLinePos.character++; var emittedLine = writer.getLine(); var emittedColumn = writer.getColumn(); + // If this location wasn't recorded or the location in source is going backwards, record the span if (!lastRecordedSourceMapSpan || lastRecordedSourceMapSpan.emittedLine != emittedLine || lastRecordedSourceMapSpan.emittedColumn != emittedColumn || (lastRecordedSourceMapSpan.sourceIndex === sourceMapSourceIndex && (lastRecordedSourceMapSpan.sourceLine > sourceLinePos.line || (lastRecordedSourceMapSpan.sourceLine === sourceLinePos.line && lastRecordedSourceMapSpan.sourceColumn > sourceLinePos.character)))) { + // Encode the last recordedSpan before assigning new encodeLastRecordedSourceMapSpan(); + // New span lastRecordedSourceMapSpan = { emittedLine: emittedLine, emittedColumn: emittedColumn, @@ -20539,12 +24042,14 @@ var ts; }; } else { + // Take the new pos instead since there is no change in emittedLine and column since last location lastRecordedSourceMapSpan.sourceLine = sourceLinePos.line; lastRecordedSourceMapSpan.sourceColumn = sourceLinePos.character; lastRecordedSourceMapSpan.sourceIndex = sourceMapSourceIndex; } } function recordEmitNodeStartSpan(node) { + // Get the token pos after skipping to the token (ignoring the leading trivia) recordSourceMapSpan(ts.skipTrivia(currentSourceFile.text, node.pos)); } function recordEmitNodeEndSpan(node) { @@ -20558,9 +24063,14 @@ var ts; return tokenEndPos; } function recordNewSourceFileStart(node) { + // Add the file to tsFilePaths + // If sourceroot option: Use the relative path corresponding to the common directory path + // otherwise source locations relative to map file location var sourcesDirectoryPath = compilerOptions.sourceRoot ? host.getCommonSourceDirectory() : sourceMapDir; - sourceMapData.sourceMapSources.push(ts.getRelativePathToDirectoryOrUrl(sourcesDirectoryPath, node.fileName, host.getCurrentDirectory(), host.getCanonicalFileName, true)); + sourceMapData.sourceMapSources.push(ts.getRelativePathToDirectoryOrUrl(sourcesDirectoryPath, node.fileName, host.getCurrentDirectory(), host.getCanonicalFileName, + /*isAbsolutePathAnUrl*/ true)); sourceMapSourceIndex = sourceMapData.sourceMapSources.length - 1; + // The one that can be used from program to get the actual source file sourceMapData.inputSourceFileNames.push(node.fileName); } function recordScopeNameOfNode(node, scopeName) { @@ -20572,8 +24082,11 @@ var ts; if (scopeName) { var parentIndex = getSourceMapNameIndex(); if (parentIndex !== -1) { - var name_14 = node.name; - if (!name_14 || name_14.kind !== 127) { + // Child scopes are always shown with a dot (even if they have no name), + // unless it is a computed property. Then it is shown with brackets, + // but the brackets are included in the name. + var name_15 = node.name; + if (!name_15 || name_15.kind !== 127 /* ComputedPropertyName */) { scopeName = "." + scopeName; } scopeName = sourceMapData.sourceMapNames[parentIndex] + scopeName; @@ -20588,26 +24101,30 @@ var ts; recordScopeNameIndex(scopeNameIndex); } if (scopeName) { + // The scope was already given a name use it recordScopeNameStart(scopeName); } - else if (node.kind === 200 || - node.kind === 162 || - node.kind === 134 || - node.kind === 133 || - node.kind === 136 || - node.kind === 137 || - node.kind === 205 || - node.kind === 201 || - node.kind === 204) { + else if (node.kind === 200 /* FunctionDeclaration */ || + node.kind === 162 /* FunctionExpression */ || + node.kind === 134 /* MethodDeclaration */ || + node.kind === 133 /* MethodSignature */ || + node.kind === 136 /* GetAccessor */ || + node.kind === 137 /* SetAccessor */ || + node.kind === 205 /* ModuleDeclaration */ || + node.kind === 201 /* ClassDeclaration */ || + node.kind === 204 /* EnumDeclaration */) { + // Declaration and has associated name use it if (node.name) { - var name_15 = node.name; - scopeName = name_15.kind === 127 - ? ts.getTextOfNode(name_15) + var name_16 = node.name; + // For computed property names, the text will include the brackets + scopeName = name_16.kind === 127 /* ComputedPropertyName */ + ? ts.getTextOfNode(name_16) : node.name.text; } recordScopeNameStart(scopeName); } else { + // Block just use the name from upper level scope recordScopeNameIndex(getSourceMapNameIndex()); } } @@ -20644,11 +24161,14 @@ var ts; } } function writeJavaScriptAndSourceMapFile(emitOutput, writeByteOrderMark) { + // Write source map file encodeLastRecordedSourceMapSpan(); ts.writeFile(host, diagnostics, sourceMapData.sourceMapFilePath, serializeSourceMapContents(3, sourceMapData.sourceMapFile, sourceMapData.sourceMapSourceRoot, sourceMapData.sourceMapSources, sourceMapData.sourceMapNames, sourceMapData.sourceMapMappings), false); sourceMapDataList.push(sourceMapData); + // Write sourcemap url to the js file and write the js file writeJavaScriptFile(emitOutput + "//# sourceMappingURL=" + sourceMapData.jsSourceMappingURL, writeByteOrderMark); } + // Initialize source map data var sourceMapJsFile = ts.getBaseFileName(ts.normalizeSlashes(jsFilePath)); sourceMapData = { sourceMapFilePath: jsFilePath + ".map", @@ -20661,18 +24181,24 @@ var ts; sourceMapMappings: "", sourceMapDecodedMappings: [] }; + // Normalize source root and make sure it has trailing "/" so that it can be used to combine paths with the + // relative paths of the sources list in the sourcemap sourceMapData.sourceMapSourceRoot = ts.normalizeSlashes(sourceMapData.sourceMapSourceRoot); - if (sourceMapData.sourceMapSourceRoot.length && sourceMapData.sourceMapSourceRoot.charCodeAt(sourceMapData.sourceMapSourceRoot.length - 1) !== 47) { + if (sourceMapData.sourceMapSourceRoot.length && sourceMapData.sourceMapSourceRoot.charCodeAt(sourceMapData.sourceMapSourceRoot.length - 1) !== 47 /* slash */) { sourceMapData.sourceMapSourceRoot += ts.directorySeparator; } if (compilerOptions.mapRoot) { sourceMapDir = ts.normalizeSlashes(compilerOptions.mapRoot); if (root) { + // For modules or multiple emit files the mapRoot will have directory structure like the sources + // So if src\a.ts and src\lib\b.ts are compiled together user would be moving the maps into mapRoot\a.js.map and mapRoot\lib\b.js.map sourceMapDir = ts.getDirectoryPath(ts.getSourceFilePathInNewDir(root, host, sourceMapDir)); } if (!ts.isRootedDiskPath(sourceMapDir) && !ts.isUrl(sourceMapDir)) { + // The relative paths are relative to the common directory sourceMapDir = ts.combinePaths(host.getCommonSourceDirectory(), sourceMapDir); - sourceMapData.jsSourceMappingURL = ts.getRelativePathToDirectoryOrUrl(ts.getDirectoryPath(ts.normalizePath(jsFilePath)), ts.combinePaths(sourceMapDir, sourceMapData.jsSourceMappingURL), host.getCurrentDirectory(), host.getCanonicalFileName, true); + sourceMapData.jsSourceMappingURL = ts.getRelativePathToDirectoryOrUrl(ts.getDirectoryPath(ts.normalizePath(jsFilePath)), ts.combinePaths(sourceMapDir, sourceMapData.jsSourceMappingURL), host.getCurrentDirectory(), host.getCanonicalFileName, + /*isAbsolutePathAnUrl*/ true); } else { sourceMapData.jsSourceMappingURL = ts.combinePaths(sourceMapDir, sourceMapData.jsSourceMappingURL); @@ -20686,7 +24212,7 @@ var ts; if (ts.nodeIsSynthesized(node)) { return emitNodeWithoutSourceMap(node, false); } - if (node.kind != 227) { + if (node.kind != 227 /* SourceFile */) { recordEmitNodeStartSpan(node); emitNodeWithoutSourceMap(node, allowGeneratedIdentifiers); recordEmitNodeEndSpan(node); @@ -20709,8 +24235,9 @@ var ts; function writeJavaScriptFile(emitOutput, writeByteOrderMark) { ts.writeFile(host, diagnostics, jsFilePath, emitOutput, writeByteOrderMark); } + // Create a temporary variable with a unique unused name. function createTempVariable(flags) { - var result = ts.createSynthesizedNode(65); + var result = ts.createSynthesizedNode(65 /* Identifier */); result.text = makeTempVariableName(flags); return result; } @@ -20804,27 +24331,32 @@ var ts; writeLine(); } } - function emitList(nodes, start, count, multiLine, trailingComma) { + function emitList(nodes, start, count, multiLine, trailingComma, leadingComma, noTrailingNewLine, emitNode) { + if (!emitNode) { + emitNode = emit; + } for (var i = 0; i < count; i++) { if (multiLine) { - if (i) { + if (i || leadingComma) { write(","); } writeLine(); } else { - if (i) { + if (i || leadingComma) { write(", "); } } - emit(nodes[start + i]); + emitNode(nodes[start + i]); + leadingComma = true; } if (trailingComma) { write(","); } - if (multiLine) { + if (multiLine && !noTrailingNewLine) { writeLine(); } + return count; } function emitCommaList(nodes) { if (nodes) { @@ -20841,12 +24373,12 @@ var ts; } } function isBinaryOrOctalIntegerLiteral(node, text) { - if (node.kind === 7 && text.length > 1) { + if (node.kind === 7 /* NumericLiteral */ && text.length > 1) { switch (text.charCodeAt(1)) { - case 98: - case 66: - case 111: - case 79: + case 98 /* b */: + case 66 /* B */: + case 111 /* o */: + case 79 /* O */: return true; } } @@ -20854,10 +24386,10 @@ var ts; } function emitLiteral(node) { var text = getLiteralText(node); - if (compilerOptions.sourceMap && (node.kind === 8 || ts.isTemplateLiteralKind(node.kind))) { + if (compilerOptions.sourceMap && (node.kind === 8 /* StringLiteral */ || ts.isTemplateLiteralKind(node.kind))) { writer.writeLiteral(text); } - else if (languageVersion < 2 && isBinaryOrOctalIntegerLiteral(node, text)) { + else if (languageVersion < 2 /* ES6 */ && isBinaryOrOctalIntegerLiteral(node, text)) { write(node.text); } else { @@ -20865,24 +24397,30 @@ var ts; } } function getLiteralText(node) { - if (languageVersion < 2 && (ts.isTemplateLiteralKind(node.kind) || node.hasExtendedUnicodeEscape)) { + // Any template literal or string literal with an extended escape + // (e.g. "\u{0067}") will need to be downleveled as a escaped string literal. + if (languageVersion < 2 /* ES6 */ && (ts.isTemplateLiteralKind(node.kind) || node.hasExtendedUnicodeEscape)) { return getQuotedEscapedLiteralText('"', node.text, '"'); } + // If we don't need to downlevel and we can reach the original source text using + // the node's parent reference, then simply get the text as it was originally written. if (node.parent) { return ts.getSourceTextOfNodeFromSourceFile(currentSourceFile, node); } + // If we can't reach the original source text, use the canonical form if it's a number, + // or an escaped quoted form of the original text if it's string-like. switch (node.kind) { - case 8: + case 8 /* StringLiteral */: return getQuotedEscapedLiteralText('"', node.text, '"'); - case 10: + case 10 /* NoSubstitutionTemplateLiteral */: return getQuotedEscapedLiteralText('`', node.text, '`'); - case 11: + case 11 /* TemplateHead */: return getQuotedEscapedLiteralText('`', node.text, '${'); - case 12: + case 12 /* TemplateMiddle */: return getQuotedEscapedLiteralText('}', node.text, '${'); - case 13: + case 13 /* TemplateTail */: return getQuotedEscapedLiteralText('}', node.text, '`'); - case 7: + case 7 /* NumericLiteral */: return node.text; } ts.Debug.fail("Literal kind '" + node.kind + "' not accounted for."); @@ -20891,16 +24429,26 @@ var ts; return leftQuote + ts.escapeNonAsciiCharacters(ts.escapeString(text)) + rightQuote; } function emitDownlevelRawTemplateLiteral(node) { + // Find original source text, since we need to emit the raw strings of the tagged template. + // The raw strings contain the (escaped) strings of what the user wrote. + // Examples: `\n` is converted to "\\n", a template string with a newline to "\n". var text = ts.getSourceTextOfNodeFromSourceFile(currentSourceFile, node); - var isLast = node.kind === 10 || node.kind === 13; + // text contains the original source, it will also contain quotes ("`"), dolar signs and braces ("${" and "}"), + // thus we need to remove those characters. + // First template piece starts with "`", others with "}" + // Last template piece ends with "`", others with "${" + var isLast = node.kind === 10 /* NoSubstitutionTemplateLiteral */ || node.kind === 13 /* TemplateTail */; text = text.substring(1, text.length - (isLast ? 1 : 2)); + // Newline normalization: + // ES6 Spec 11.8.6.1 - Static Semantics of TV's and TRV's + // and LineTerminatorSequences are normalized to for both TV and TRV. text = text.replace(/\r\n?/g, "\n"); text = ts.escapeString(text); write('"' + text + '"'); } function emitDownlevelTaggedTemplateArray(node, literalEmitter) { write("["); - if (node.template.kind === 10) { + if (node.template.kind === 10 /* NoSubstitutionTemplateLiteral */) { literalEmitter(node.template); } else { @@ -20913,7 +24461,7 @@ var ts; write("]"); } function emitDownlevelTaggedTemplate(node) { - var tempVariable = createAndRecordTempVariable(0); + var tempVariable = createAndRecordTempVariable(0 /* Auto */); write("("); emit(tempVariable); write(" = "); @@ -20926,18 +24474,21 @@ var ts; emitParenthesizedIf(node.tag, needsParenthesisForPropertyAccessOrInvocation(node.tag)); write("("); emit(tempVariable); - if (node.template.kind === 171) { + // Now we emit the expressions + if (node.template.kind === 171 /* TemplateExpression */) { ts.forEach(node.template.templateSpans, function (templateSpan) { write(", "); - var needsParens = templateSpan.expression.kind === 169 - && templateSpan.expression.operatorToken.kind === 23; + var needsParens = templateSpan.expression.kind === 169 /* BinaryExpression */ + && templateSpan.expression.operatorToken.kind === 23 /* CommaToken */; emitParenthesizedIf(templateSpan.expression, needsParens); }); } write("))"); } function emitTemplateExpression(node) { - if (languageVersion >= 2) { + // In ES6 mode and above, we can simply emit each portion of a template in order, but in + // ES3 & ES5 we must convert the template expression into a series of string concatenations. + if (languageVersion >= 2 /* ES6 */) { ts.forEachChild(node, emit); return; } @@ -20953,12 +24504,28 @@ var ts; } for (var i = 0, n = node.templateSpans.length; i < n; i++) { var templateSpan = node.templateSpans[i]; - var needsParens = templateSpan.expression.kind !== 161 - && comparePrecedenceToBinaryPlus(templateSpan.expression) !== 1; + // Check if the expression has operands and binds its operands less closely than binary '+'. + // If it does, we need to wrap the expression in parentheses. Otherwise, something like + // `abc${ 1 << 2 }` + // becomes + // "abc" + 1 << 2 + "" + // which is really + // ("abc" + 1) << (2 + "") + // rather than + // "abc" + (1 << 2) + "" + var needsParens = templateSpan.expression.kind !== 161 /* ParenthesizedExpression */ + && comparePrecedenceToBinaryPlus(templateSpan.expression) !== 1 /* GreaterThan */; if (i > 0 || headEmitted) { + // If this is the first span and the head was not emitted, then this templateSpan's + // expression will be the first to be emitted. Don't emit the preceding ' + ' in that + // case. write(" + "); } emitParenthesizedIf(templateSpan.expression, needsParens); + // Only emit if the literal is non-empty. + // The binary '+' operator is left-associative, so the first string concatenation + // with the head will force the result up to this point to be a string. + // Emitting a '+ ""' has no semantic effect for middles and tails. if (templateSpan.literal.text.length !== 0) { write(" + "); emitLiteral(templateSpan.literal); @@ -20981,39 +24548,54 @@ var ts; // `${ foo }${ bar }` // must still be emitted as // "" + foo + bar + // There is always atleast one templateSpan in this code path, since + // NoSubstitutionTemplateLiterals are directly emitted via emitLiteral() ts.Debug.assert(node.templateSpans.length !== 0); return node.head.text.length !== 0 || node.templateSpans[0].literal.text.length === 0; } function templateNeedsParens(template, parent) { switch (parent.kind) { - case 157: - case 158: + case 157 /* CallExpression */: + case 158 /* NewExpression */: return parent.expression === template; - case 159: - case 161: + case 159 /* TaggedTemplateExpression */: + case 161 /* ParenthesizedExpression */: return false; default: - return comparePrecedenceToBinaryPlus(parent) !== -1; + return comparePrecedenceToBinaryPlus(parent) !== -1 /* LessThan */; } } + /** + * Returns whether the expression has lesser, greater, + * or equal precedence to the binary '+' operator + */ function comparePrecedenceToBinaryPlus(expression) { + // All binary expressions have lower precedence than '+' apart from '*', '/', and '%' + // which have greater precedence and '-' which has equal precedence. + // All unary operators have a higher precedence apart from yield. + // Arrow functions and conditionals have a lower precedence, + // although we convert the former into regular function expressions in ES5 mode, + // and in ES6 mode this function won't get called anyway. + // + // TODO (drosen): Note that we need to account for the upcoming 'yield' and + // spread ('...') unary operators that are anticipated for ES6. switch (expression.kind) { - case 169: + case 169 /* BinaryExpression */: switch (expression.operatorToken.kind) { - case 35: - case 36: - case 37: - return 1; - case 33: - case 34: - return 0; + case 35 /* AsteriskToken */: + case 36 /* SlashToken */: + case 37 /* PercentToken */: + return 1 /* GreaterThan */; + case 33 /* PlusToken */: + case 34 /* MinusToken */: + return 0 /* EqualTo */; default: - return -1; + return -1 /* LessThan */; } - case 170: - return -1; + case 170 /* ConditionalExpression */: + return -1 /* LessThan */; default: - return 1; + return 1 /* GreaterThan */; } } } @@ -21021,25 +24603,39 @@ var ts; emit(span.expression); emit(span.literal); } + // This function specifically handles numeric/string literals for enum and accessor 'identifiers'. + // In a sense, it does not actually emit identifiers as much as it declares a name for a specific property. + // For example, this is utilized when feeding in a result to Object.defineProperty. function emitExpressionForPropertyName(node) { - ts.Debug.assert(node.kind !== 152); - if (node.kind === 8) { + ts.Debug.assert(node.kind !== 152 /* BindingElement */); + if (node.kind === 8 /* StringLiteral */) { emitLiteral(node); } - else if (node.kind === 127) { + else if (node.kind === 127 /* ComputedPropertyName */) { + // if this is a decorated computed property, we will need to capture the result + // of the property expression so that we can apply decorators later. This is to ensure + // we don't introduce unintended side effects: + // + // class C { + // [_a = x]() { } + // } + // + // The emit for the decorated computed property decorator is: + // + // Object.defineProperty(C.prototype, _a, __decorate([dec], C.prototype, _a, Object.getOwnPropertyDescriptor(C.prototype, _a))); + // if (ts.nodeIsDecorated(node.parent)) { if (!computedPropertyNamesToGeneratedNames) { computedPropertyNamesToGeneratedNames = []; } - var generatedName = computedPropertyNamesToGeneratedNames[node.id]; + var generatedName = computedPropertyNamesToGeneratedNames[ts.getNodeId(node)]; if (generatedName) { + // we have already generated a variable for this node, write that value instead. write(generatedName); return; } - var generatedVariable = createTempVariable(0); - generatedName = generatedVariable.text; - recordTempDeclaration(generatedVariable); - computedPropertyNamesToGeneratedNames[node.id] = generatedName; + generatedName = createAndRecordTempVariable(0 /* Auto */).text; + computedPropertyNamesToGeneratedNames[ts.getNodeId(node)] = generatedName; write(generatedName); write(" = "); } @@ -21047,7 +24643,7 @@ var ts; } else { write("\""); - if (node.kind === 7) { + if (node.kind === 7 /* NumericLiteral */) { write(node.text); } else { @@ -21059,36 +24655,36 @@ var ts; function isNotExpressionIdentifier(node) { var parent = node.parent; switch (parent.kind) { - case 129: - case 198: - case 152: - case 132: - case 131: - case 224: - case 225: - case 226: - case 134: - case 133: - case 200: - case 136: - case 137: - case 162: - case 201: - case 202: - case 204: - case 205: - case 208: - case 210: - case 211: + case 129 /* Parameter */: + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 224 /* PropertyAssignment */: + case 225 /* ShorthandPropertyAssignment */: + case 226 /* EnumMember */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 200 /* FunctionDeclaration */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 162 /* FunctionExpression */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: + case 205 /* ModuleDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 210 /* ImportClause */: + case 211 /* NamespaceImport */: return parent.name === node; - case 213: - case 217: + case 213 /* ImportSpecifier */: + case 217 /* ExportSpecifier */: return parent.name === node || parent.propertyName === node; - case 190: - case 189: - case 214: + case 190 /* BreakStatement */: + case 189 /* ContinueStatement */: + case 214 /* ExportAssignment */: return false; - case 194: + case 194 /* LabeledStatement */: return node.parent.label === node; } } @@ -21130,7 +24726,7 @@ var ts; } } function emitThis(node) { - if (resolver.getNodeCheckFlags(node) & 2) { + if (resolver.getNodeCheckFlags(node) & 2 /* LexicalThis */) { write("_this"); } else { @@ -21138,12 +24734,12 @@ var ts; } } function emitSuper(node) { - if (languageVersion >= 2) { + if (languageVersion >= 2 /* ES6 */) { write("super"); } else { var flags = resolver.getNodeCheckFlags(node); - if (flags & 16) { + if (flags & 16 /* SuperInstance */) { write("_super.prototype"); } else { @@ -21185,12 +24781,14 @@ var ts; } function needsParenthesisForPropertyAccessOrInvocation(node) { switch (node.kind) { - case 65: - case 153: - case 155: - case 156: - case 157: - case 161: + case 65 /* Identifier */: + case 153 /* ArrayLiteralExpression */: + case 155 /* PropertyAccessExpression */: + case 156 /* ElementAccessExpression */: + case 157 /* CallExpression */: + case 161 /* ParenthesizedExpression */: + // This list is not exhaustive and only includes those cases that are relevant + // to the check in emitArrayLiteral. More cases can be added as needed. return false; } return true; @@ -21200,6 +24798,7 @@ var ts; var group = 0; var length = elements.length; while (pos < length) { + // Emit using the pattern .concat(, , ...) if (group === 1) { write(".concat("); } @@ -21207,14 +24806,14 @@ var ts; write(", "); } var e = elements[pos]; - if (e.kind === 173) { + if (e.kind === 173 /* SpreadElementExpression */) { e = e.expression; emitParenthesizedIf(e, group === 0 && needsParenthesisForPropertyAccessOrInvocation(e)); pos++; } else { var i = pos; - while (i < length && elements[i].kind !== 173) { + while (i < length && elements[i].kind !== 173 /* SpreadElementExpression */) { i++; } write("["); @@ -21235,171 +24834,169 @@ var ts; } } function isSpreadElementExpression(node) { - return node.kind === 173; + return node.kind === 173 /* SpreadElementExpression */; } function emitArrayLiteral(node) { var elements = node.elements; if (elements.length === 0) { write("[]"); } - else if (languageVersion >= 2 || !ts.forEach(elements, isSpreadElementExpression)) { + else if (languageVersion >= 2 /* ES6 */ || !ts.forEach(elements, isSpreadElementExpression)) { write("["); emitLinePreservingList(node, node.elements, elements.hasTrailingComma, false); write("]"); } else { - emitListWithSpread(elements, (node.flags & 512) !== 0, elements.hasTrailingComma); + emitListWithSpread(elements, (node.flags & 512 /* MultiLine */) !== 0, + /*trailingComma*/ elements.hasTrailingComma); } } + function emitObjectLiteralBody(node, numElements) { + if (numElements === 0) { + write("{}"); + return; + } + write("{"); + if (numElements > 0) { + var properties = node.properties; + // If we are not doing a downlevel transformation for object literals, + // then try to preserve the original shape of the object literal. + // Otherwise just try to preserve the formatting. + if (numElements === properties.length) { + emitLinePreservingList(node, properties, languageVersion >= 1 /* ES5 */, true); + } + else { + var multiLine = (node.flags & 512 /* MultiLine */) !== 0; + if (!multiLine) { + write(" "); + } + else { + increaseIndent(); + } + emitList(properties, 0, numElements, multiLine, false); + if (!multiLine) { + write(" "); + } + else { + decreaseIndent(); + } + } + } + write("}"); + } function emitDownlevelObjectLiteralWithComputedProperties(node, firstComputedPropertyIndex) { - var parenthesizedObjectLiteral = createDownlevelObjectLiteralWithComputedProperties(node, firstComputedPropertyIndex); - return emit(parenthesizedObjectLiteral); - } - function createDownlevelObjectLiteralWithComputedProperties(originalObjectLiteral, firstComputedPropertyIndex) { - var tempVar = createAndRecordTempVariable(0); - var initialObjectLiteral = ts.createSynthesizedNode(154); - initialObjectLiteral.properties = originalObjectLiteral.properties.slice(0, firstComputedPropertyIndex); - initialObjectLiteral.flags |= 512; - var propertyPatches = createBinaryExpression(tempVar, 53, initialObjectLiteral); - ts.forEach(originalObjectLiteral.properties, function (property) { - var patchedProperty = tryCreatePatchingPropertyAssignment(originalObjectLiteral, tempVar, property); - if (patchedProperty) { - propertyPatches = createBinaryExpression(propertyPatches, 23, patchedProperty); + var multiLine = (node.flags & 512 /* MultiLine */) !== 0; + var properties = node.properties; + write("("); + if (multiLine) { + increaseIndent(); + } + // For computed properties, we need to create a unique handle to the object + // literal so we can modify it without risking internal assignments tainting the object. + var tempVar = createAndRecordTempVariable(0 /* Auto */); + // Write out the first non-computed properties + // (or all properties if none of them are computed), + // then emit the rest through indexing on the temp variable. + emit(tempVar); + write(" = "); + emitObjectLiteralBody(node, firstComputedPropertyIndex); + for (var i = firstComputedPropertyIndex, n = properties.length; i < n; i++) { + writeComma(); + var property = properties[i]; + emitStart(property); + if (property.kind === 136 /* GetAccessor */ || property.kind === 137 /* SetAccessor */) { + // TODO (drosen): Reconcile with 'emitMemberFunctions'. + var accessors = ts.getAllAccessorDeclarations(node.properties, property); + if (property !== accessors.firstAccessor) { + continue; + } + write("Object.defineProperty("); + emit(tempVar); + write(", "); + emitStart(node.name); + emitExpressionForPropertyName(property.name); + emitEnd(property.name); + write(", {"); + increaseIndent(); + if (accessors.getAccessor) { + writeLine(); + emitLeadingComments(accessors.getAccessor); + write("get: "); + emitStart(accessors.getAccessor); + write("function "); + emitSignatureAndBody(accessors.getAccessor); + emitEnd(accessors.getAccessor); + emitTrailingComments(accessors.getAccessor); + write(","); + } + if (accessors.setAccessor) { + writeLine(); + emitLeadingComments(accessors.setAccessor); + write("set: "); + emitStart(accessors.setAccessor); + write("function "); + emitSignatureAndBody(accessors.setAccessor); + emitEnd(accessors.setAccessor); + emitTrailingComments(accessors.setAccessor); + write(","); + } + writeLine(); + write("enumerable: true,"); + writeLine(); + write("configurable: true"); + decreaseIndent(); + writeLine(); + write("})"); + emitEnd(property); } - }); - propertyPatches = createBinaryExpression(propertyPatches, 23, createIdentifier(tempVar.text, true)); - var result = createParenthesizedExpression(propertyPatches); - return result; - } - function addCommentsToSynthesizedNode(node, leadingCommentRanges, trailingCommentRanges) { - node.leadingCommentRanges = leadingCommentRanges; - node.trailingCommentRanges = trailingCommentRanges; - } - function tryCreatePatchingPropertyAssignment(objectLiteral, tempVar, property) { - var leftHandSide = createMemberAccessForPropertyName(tempVar, property.name); - var maybeRightHandSide = tryGetRightHandSideOfPatchingPropertyAssignment(objectLiteral, property); - return maybeRightHandSide && createBinaryExpression(leftHandSide, 53, maybeRightHandSide, true); - } - function tryGetRightHandSideOfPatchingPropertyAssignment(objectLiteral, property) { - switch (property.kind) { - case 224: - return property.initializer; - case 225: - return createIdentifier(resolver.getExpressionNameSubstitution(property.name, getGeneratedNameForNode)); - case 134: - return createFunctionExpression(property.parameters, property.body); - case 136: - case 137: - var _a = ts.getAllAccessorDeclarations(objectLiteral.properties, property), firstAccessor = _a.firstAccessor, getAccessor = _a.getAccessor, setAccessor = _a.setAccessor; - if (firstAccessor !== property) { - return undefined; + else { + emitLeadingComments(property); + emitStart(property.name); + emit(tempVar); + emitMemberAccessForPropertyName(property.name); + emitEnd(property.name); + write(" = "); + if (property.kind === 224 /* PropertyAssignment */) { + emit(property.initializer); } - var propertyDescriptor = ts.createSynthesizedNode(154); - var descriptorProperties = []; - if (getAccessor) { - var getProperty_1 = createPropertyAssignment(createIdentifier("get"), createFunctionExpression(getAccessor.parameters, getAccessor.body)); - descriptorProperties.push(getProperty_1); + else if (property.kind === 225 /* ShorthandPropertyAssignment */) { + emitExpressionIdentifier(property.name); } - if (setAccessor) { - var setProperty = createPropertyAssignment(createIdentifier("set"), createFunctionExpression(setAccessor.parameters, setAccessor.body)); - descriptorProperties.push(setProperty); + else if (property.kind === 134 /* MethodDeclaration */) { + emitFunctionDeclaration(property); } - var trueExpr = ts.createSynthesizedNode(95); - var enumerableTrue = createPropertyAssignment(createIdentifier("enumerable"), trueExpr); - descriptorProperties.push(enumerableTrue); - var configurableTrue = createPropertyAssignment(createIdentifier("configurable"), trueExpr); - descriptorProperties.push(configurableTrue); - propertyDescriptor.properties = descriptorProperties; - var objectDotDefineProperty = createPropertyAccessExpression(createIdentifier("Object"), createIdentifier("defineProperty")); - return createCallExpression(objectDotDefineProperty, createNodeArray(propertyDescriptor)); - default: - ts.Debug.fail("ObjectLiteralElement kind " + property.kind + " not accounted for."); + else { + ts.Debug.fail("ObjectLiteralElement type not accounted for: " + property.kind); + } + } + emitEnd(property); } - } - function createParenthesizedExpression(expression) { - var result = ts.createSynthesizedNode(161); - result.expression = expression; - return result; - } - function createNodeArray() { - var elements = []; - for (var _a = 0; _a < arguments.length; _a++) { - elements[_a - 0] = arguments[_a]; + writeComma(); + emit(tempVar); + if (multiLine) { + decreaseIndent(); + writeLine(); } - var result = elements; - result.pos = -1; - result.end = -1; - return result; - } - function createBinaryExpression(left, operator, right, startsOnNewLine) { - var result = ts.createSynthesizedNode(169, startsOnNewLine); - result.operatorToken = ts.createSynthesizedNode(operator); - result.left = left; - result.right = right; - return result; - } - function createExpressionStatement(expression) { - var result = ts.createSynthesizedNode(182); - result.expression = expression; - return result; - } - function createMemberAccessForPropertyName(expression, memberName) { - if (memberName.kind === 65) { - return createPropertyAccessExpression(expression, memberName); + write(")"); + function writeComma() { + if (multiLine) { + write(","); + writeLine(); + } + else { + write(", "); + } } - else if (memberName.kind === 8 || memberName.kind === 7) { - return createElementAccessExpression(expression, memberName); - } - else if (memberName.kind === 127) { - return createElementAccessExpression(expression, memberName.expression); - } - else { - ts.Debug.fail("Kind '" + memberName.kind + "' not accounted for."); - } - } - function createPropertyAssignment(name, initializer) { - var result = ts.createSynthesizedNode(224); - result.name = name; - result.initializer = initializer; - return result; - } - function createFunctionExpression(parameters, body) { - var result = ts.createSynthesizedNode(162); - result.parameters = parameters; - result.body = body; - return result; - } - function createPropertyAccessExpression(expression, name) { - var result = ts.createSynthesizedNode(155); - result.expression = expression; - result.dotToken = ts.createSynthesizedNode(20); - result.name = name; - return result; - } - function createElementAccessExpression(expression, argumentExpression) { - var result = ts.createSynthesizedNode(156); - result.expression = expression; - result.argumentExpression = argumentExpression; - return result; - } - function createIdentifier(name, startsOnNewLine) { - var result = ts.createSynthesizedNode(65, startsOnNewLine); - result.text = name; - return result; - } - function createCallExpression(invokedExpression, arguments) { - var result = ts.createSynthesizedNode(157); - result.expression = invokedExpression; - result.arguments = arguments; - return result; } function emitObjectLiteral(node) { var properties = node.properties; - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { var numProperties = properties.length; + // Find the first computed property. + // Everything until that point can be emitted as part of the initial object literal. var numInitialNonComputedProperties = numProperties; for (var i = 0, n = properties.length; i < n; i++) { - if (properties[i].name.kind === 127) { + if (properties[i].name.kind === 127 /* ComputedPropertyName */) { numInitialNonComputedProperties = i; break; } @@ -21410,11 +25007,29 @@ var ts; return; } } - write("{"); - if (properties.length) { - emitLinePreservingList(node, properties, languageVersion >= 1, true); - } - write("}"); + // Ordinary case: either the object has no computed properties + // or we're compiling with an ES6+ target. + emitObjectLiteralBody(node, properties.length); + } + function createBinaryExpression(left, operator, right, startsOnNewLine) { + var result = ts.createSynthesizedNode(169 /* BinaryExpression */, startsOnNewLine); + result.operatorToken = ts.createSynthesizedNode(operator); + result.left = left; + result.right = right; + return result; + } + function createPropertyAccessExpression(expression, name) { + var result = ts.createSynthesizedNode(155 /* PropertyAccessExpression */); + result.expression = expression; + result.dotToken = ts.createSynthesizedNode(20 /* DotToken */); + result.name = name; + return result; + } + function createElementAccessExpression(expression, argumentExpression) { + var result = ts.createSynthesizedNode(156 /* ElementAccessExpression */); + result.expression = expression; + result.argumentExpression = argumentExpression; + return result; } function emitComputedPropertyName(node) { write("["); @@ -21423,7 +25038,7 @@ var ts; } function emitMethod(node) { emit(node.name, false); - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { write(": function "); } emitSignatureAndBody(node); @@ -21435,38 +25050,57 @@ var ts; } function emitShorthandPropertyAssignment(node) { emit(node.name, false); - if (languageVersion < 2) { + // If short-hand property has a prefix, then regardless of the target version, we will emit it as normal property assignment. For example: + // module m { + // export let y; + // } + // module m { + // export let obj = { y }; + // } + // The short-hand property in obj need to emit as such ... = { y : m.y } regardless of the TargetScript version + if (languageVersion < 2 /* ES6 */) { + // Emit identifier as an identifier write(": "); var generatedName = getGeneratedNameForIdentifier(node.name); if (generatedName) { write(generatedName); } else { + // Even though this is stored as identifier treat it as an expression + // Short-hand, { x }, is equivalent of normal form { x: x } emitExpressionIdentifier(node.name); } } else if (resolver.getExpressionNameSubstitution(node.name, getGeneratedNameForNode)) { + // Emit identifier as an identifier write(": "); + // Even though this is stored as identifier treat it as an expression + // Short-hand, { x }, is equivalent of normal form { x: x } emitExpressionIdentifier(node.name); } } function tryEmitConstantValue(node) { if (compilerOptions.separateCompilation) { + // do not inline enum values in separate compilation mode return false; } var constantValue = resolver.getConstantValue(node); if (constantValue !== undefined) { write(constantValue.toString()); if (!compilerOptions.removeComments) { - var propertyName = node.kind === 155 ? ts.declarationNameToString(node.name) : ts.getTextOfNode(node.argumentExpression); + var propertyName = node.kind === 155 /* PropertyAccessExpression */ ? ts.declarationNameToString(node.name) : ts.getTextOfNode(node.argumentExpression); write(" /* " + propertyName + " */"); } return true; } return false; } + // Returns 'true' if the code was actually indented, false otherwise. + // If the code is not indented, an optional valueToWriteWhenNotIndenting will be + // emitted instead. function indentIfOnDifferentLines(parent, node1, node2, valueToWriteWhenNotIndenting) { var realNodesAreOnDifferentLines = !ts.nodeIsSynthesized(parent) && !nodeEndIsOnSameLineAsNodeStart(node1, node2); + // Always use a newline for synthesized code if the synthesizer desires it. var synthesizedNodeIsOnDifferentLine = synthesizedNodeStartsOnNewLine(node2); if (realNodesAreOnDifferentLines || synthesizedNodeIsOnDifferentLine) { increaseIndent(); @@ -21506,20 +25140,20 @@ var ts; write("]"); } function hasSpreadElement(elements) { - return ts.forEach(elements, function (e) { return e.kind === 173; }); + return ts.forEach(elements, function (e) { return e.kind === 173 /* SpreadElementExpression */; }); } function skipParentheses(node) { - while (node.kind === 161 || node.kind === 160) { + while (node.kind === 161 /* ParenthesizedExpression */ || node.kind === 160 /* TypeAssertionExpression */) { node = node.expression; } return node; } function emitCallTarget(node) { - if (node.kind === 65 || node.kind === 93 || node.kind === 91) { + if (node.kind === 65 /* Identifier */ || node.kind === 93 /* ThisKeyword */ || node.kind === 91 /* SuperKeyword */) { emit(node); return node; } - var temp = createAndRecordTempVariable(0); + var temp = createAndRecordTempVariable(0 /* Auto */); write("("); emit(temp); write(" = "); @@ -21530,18 +25164,20 @@ var ts; function emitCallWithSpread(node) { var target; var expr = skipParentheses(node.expression); - if (expr.kind === 155) { + if (expr.kind === 155 /* PropertyAccessExpression */) { + // Target will be emitted as "this" argument target = emitCallTarget(expr.expression); write("."); emit(expr.name); } - else if (expr.kind === 156) { + else if (expr.kind === 156 /* ElementAccessExpression */) { + // Target will be emitted as "this" argument target = emitCallTarget(expr.expression); write("["); emit(expr.argumentExpression); write("]"); } - else if (expr.kind === 91) { + else if (expr.kind === 91 /* SuperKeyword */) { target = expr; write("_super"); } @@ -21550,14 +25186,17 @@ var ts; } write(".apply("); if (target) { - if (target.kind === 91) { + if (target.kind === 91 /* SuperKeyword */) { + // Calls of form super(...) and super.foo(...) emitThis(target); } else { + // Calls of form obj.foo(...) emit(target); } } else { + // Calls of form foo(...) write("void 0"); } write(", "); @@ -21565,20 +25204,20 @@ var ts; write(")"); } function emitCallExpression(node) { - if (languageVersion < 2 && hasSpreadElement(node.arguments)) { + if (languageVersion < 2 /* ES6 */ && hasSpreadElement(node.arguments)) { emitCallWithSpread(node); return; } var superCall = false; - if (node.expression.kind === 91) { + if (node.expression.kind === 91 /* SuperKeyword */) { emitSuper(node.expression); superCall = true; } else { emit(node.expression); - superCall = node.expression.kind === 155 && node.expression.expression.kind === 91; + superCall = node.expression.kind === 155 /* PropertyAccessExpression */ && node.expression.expression.kind === 91 /* SuperKeyword */; } - if (superCall && languageVersion < 2) { + if (superCall && languageVersion < 2 /* ES6 */) { write(".call("); emitThis(node.expression); if (node.arguments.length) { @@ -21603,7 +25242,7 @@ var ts; } } function emitTaggedTemplateExpression(node) { - if (languageVersion >= 2) { + if (languageVersion >= 2 /* ES6 */) { emit(node.tag); write(" "); emit(node.template); @@ -21613,20 +25252,30 @@ var ts; } } function emitParenExpression(node) { - if (!node.parent || node.parent.kind !== 163) { - if (node.expression.kind === 160) { + if (!node.parent || node.parent.kind !== 163 /* ArrowFunction */) { + if (node.expression.kind === 160 /* TypeAssertionExpression */) { var operand = node.expression.expression; - while (operand.kind == 160) { + // Make sure we consider all nested cast expressions, e.g.: + // (-A).x; + while (operand.kind == 160 /* TypeAssertionExpression */) { operand = operand.expression; } - if (operand.kind !== 167 && - operand.kind !== 166 && - operand.kind !== 165 && - operand.kind !== 164 && - operand.kind !== 168 && - operand.kind !== 158 && - !(operand.kind === 157 && node.parent.kind === 158) && - !(operand.kind === 162 && node.parent.kind === 157)) { + // We have an expression of the form: (SubExpr) + // Emitting this as (SubExpr) is really not desirable. We would like to emit the subexpr as is. + // Omitting the parentheses, however, could cause change in the semantics of the generated + // code if the casted expression has a lower precedence than the rest of the expression, e.g.: + // (new A).foo should be emitted as (new A).foo and not new A.foo + // (typeof A).toString() should be emitted as (typeof A).toString() and not typeof A.toString() + // new (A()) should be emitted as new (A()) and not new A() + // (function foo() { })() should be emitted as an IIF (function foo(){})() and not declaration function foo(){} () + if (operand.kind !== 167 /* PrefixUnaryExpression */ && + operand.kind !== 166 /* VoidExpression */ && + operand.kind !== 165 /* TypeOfExpression */ && + operand.kind !== 164 /* DeleteExpression */ && + operand.kind !== 168 /* PostfixUnaryExpression */ && + operand.kind !== 158 /* NewExpression */ && + !(operand.kind === 157 /* CallExpression */ && node.parent.kind === 158 /* NewExpression */) && + !(operand.kind === 162 /* FunctionExpression */ && node.parent.kind === 157 /* CallExpression */)) { emit(operand); return; } @@ -21637,28 +25286,40 @@ var ts; write(")"); } function emitDeleteExpression(node) { - write(ts.tokenToString(74)); + write(ts.tokenToString(74 /* DeleteKeyword */)); write(" "); emit(node.expression); } function emitVoidExpression(node) { - write(ts.tokenToString(99)); + write(ts.tokenToString(99 /* VoidKeyword */)); write(" "); emit(node.expression); } function emitTypeOfExpression(node) { - write(ts.tokenToString(97)); + write(ts.tokenToString(97 /* TypeOfKeyword */)); write(" "); emit(node.expression); } function emitPrefixUnaryExpression(node) { write(ts.tokenToString(node.operator)); - if (node.operand.kind === 167) { + // In some cases, we need to emit a space between the operator and the operand. One obvious case + // is when the operator is an identifier, like delete or typeof. We also need to do this for plus + // and minus expressions in certain cases. Specifically, consider the following two cases (parens + // are just for clarity of exposition, and not part of the source code): + // + // (+(+1)) + // (+(++1)) + // + // We need to emit a space in both cases. In the first case, the absence of a space will make + // the resulting expression a prefix increment operation. And in the second, it will make the resulting + // expression a prefix increment whose operand is a plus expression - (++(+x)) + // The same is true of minus of course. + if (node.operand.kind === 167 /* PrefixUnaryExpression */) { var operand = node.operand; - if (node.operator === 33 && (operand.operator === 33 || operand.operator === 38)) { + if (node.operator === 33 /* PlusToken */ && (operand.operator === 33 /* PlusToken */ || operand.operator === 38 /* PlusPlusToken */)) { write(" "); } - else if (node.operator === 34 && (operand.operator === 34 || operand.operator === 39)) { + else if (node.operator === 34 /* MinusToken */ && (operand.operator === 34 /* MinusToken */ || operand.operator === 39 /* MinusMinusToken */)) { write(" "); } } @@ -21669,13 +25330,13 @@ var ts; write(ts.tokenToString(node.operator)); } function emitBinaryExpression(node) { - if (languageVersion < 2 && node.operatorToken.kind === 53 && - (node.left.kind === 154 || node.left.kind === 153)) { - emitDestructuring(node, node.parent.kind === 182); + if (languageVersion < 2 /* ES6 */ && node.operatorToken.kind === 53 /* EqualsToken */ && + (node.left.kind === 154 /* ObjectLiteralExpression */ || node.left.kind === 153 /* ArrayLiteralExpression */)) { + emitDestructuring(node, node.parent.kind === 182 /* ExpressionStatement */); } else { emit(node.left); - var indentedBeforeOperator = indentIfOnDifferentLines(node, node.left, node.operatorToken, node.operatorToken.kind !== 23 ? " " : undefined); + var indentedBeforeOperator = indentIfOnDifferentLines(node, node.left, node.operatorToken, node.operatorToken.kind !== 23 /* CommaToken */ ? " " : undefined); write(ts.tokenToString(node.operatorToken.kind)); var indentedAfterOperator = indentIfOnDifferentLines(node, node.operatorToken, node.right, " "); emit(node.right); @@ -21698,6 +25359,10 @@ var ts; emit(node.whenFalse); decreaseIndentIf(indentedBeforeColon, indentedAfterColon); } + // Helper function to decrease the indent if we previously indented. Allows multiple + // previous indent values to be considered at a time. This also allows caller to just + // call this once, passing in all their appropriate indent values, instead of needing + // to call this helper function multiple times. function decreaseIndentIf(value1, value2) { if (value1) { decreaseIndent(); @@ -21707,36 +25372,36 @@ var ts; } } function isSingleLineEmptyBlock(node) { - if (node && node.kind === 179) { + if (node && node.kind === 179 /* Block */) { var block = node; return block.statements.length === 0 && nodeEndIsOnSameLineAsNodeStart(block, block); } } function emitBlock(node) { if (isSingleLineEmptyBlock(node)) { - emitToken(14, node.pos); + emitToken(14 /* OpenBraceToken */, node.pos); write(" "); - emitToken(15, node.statements.end); + emitToken(15 /* CloseBraceToken */, node.statements.end); return; } - emitToken(14, node.pos); + emitToken(14 /* OpenBraceToken */, node.pos); increaseIndent(); scopeEmitStart(node.parent); - if (node.kind === 206) { - ts.Debug.assert(node.parent.kind === 205); + if (node.kind === 206 /* ModuleBlock */) { + ts.Debug.assert(node.parent.kind === 205 /* ModuleDeclaration */); emitCaptureThisForNodeIfNecessary(node.parent); } emitLines(node.statements); - if (node.kind === 206) { + if (node.kind === 206 /* ModuleBlock */) { emitTempDeclarations(true); } decreaseIndent(); writeLine(); - emitToken(15, node.statements.end); + emitToken(15 /* CloseBraceToken */, node.statements.end); scopeEmitEnd(); } function emitEmbeddedStatement(node) { - if (node.kind === 179) { + if (node.kind === 179 /* Block */) { write(" "); emit(node); } @@ -21748,20 +25413,20 @@ var ts; } } function emitExpressionStatement(node) { - emitParenthesizedIf(node.expression, node.expression.kind === 163); + emitParenthesizedIf(node.expression, node.expression.kind === 163 /* ArrowFunction */); write(";"); } function emitIfStatement(node) { - var endPos = emitToken(84, node.pos); + var endPos = emitToken(84 /* IfKeyword */, node.pos); write(" "); - endPos = emitToken(16, endPos); + endPos = emitToken(16 /* OpenParenToken */, endPos); emit(node.expression); - emitToken(17, node.expression.end); + emitToken(17 /* CloseParenToken */, node.expression.end); emitEmbeddedStatement(node.thenStatement); if (node.elseStatement) { writeLine(); - emitToken(76, node.thenStatement.end); - if (node.elseStatement.kind === 183) { + emitToken(76 /* ElseKeyword */, node.thenStatement.end); + if (node.elseStatement.kind === 183 /* IfStatement */) { write(" "); emit(node.elseStatement); } @@ -21773,7 +25438,7 @@ var ts; function emitDoStatement(node) { write("do"); emitEmbeddedStatement(node.statement); - if (node.statement.kind === 179) { + if (node.statement.kind === 179 /* Block */) { write(" "); } else { @@ -21790,13 +25455,13 @@ var ts; emitEmbeddedStatement(node.statement); } function emitStartOfVariableDeclarationList(decl, startPos) { - var tokenKind = 98; - if (decl && languageVersion >= 2) { + var tokenKind = 98 /* VarKeyword */; + if (decl && languageVersion >= 2 /* ES6 */) { if (ts.isLet(decl)) { - tokenKind = 105; + tokenKind = 105 /* LetKeyword */; } else if (ts.isConst(decl)) { - tokenKind = 70; + tokenKind = 70 /* ConstKeyword */; } } if (startPos !== undefined) { @@ -21804,20 +25469,20 @@ var ts; } else { switch (tokenKind) { - case 98: + case 98 /* VarKeyword */: return write("var "); - case 105: + case 105 /* LetKeyword */: return write("let "); - case 70: + case 70 /* ConstKeyword */: return write("const "); } } } function emitForStatement(node) { - var endPos = emitToken(82, node.pos); + var endPos = emitToken(82 /* ForKeyword */, node.pos); write(" "); - endPos = emitToken(16, endPos); - if (node.initializer && node.initializer.kind === 199) { + endPos = emitToken(16 /* OpenParenToken */, endPos); + if (node.initializer && node.initializer.kind === 199 /* VariableDeclarationList */) { var variableDeclarationList = node.initializer; var declarations = variableDeclarationList.declarations; emitStartOfVariableDeclarationList(declarations[0], endPos); @@ -21835,13 +25500,13 @@ var ts; emitEmbeddedStatement(node.statement); } function emitForInOrForOfStatement(node) { - if (languageVersion < 2 && node.kind === 188) { + if (languageVersion < 2 /* ES6 */ && node.kind === 188 /* ForOfStatement */) { return emitDownLevelForOfStatement(node); } - var endPos = emitToken(82, node.pos); + var endPos = emitToken(82 /* ForKeyword */, node.pos); write(" "); - endPos = emitToken(16, endPos); - if (node.initializer.kind === 199) { + endPos = emitToken(16 /* OpenParenToken */, endPos); + if (node.initializer.kind === 199 /* VariableDeclarationList */) { var variableDeclarationList = node.initializer; if (variableDeclarationList.declarations.length >= 1) { var decl = variableDeclarationList.declarations[0]; @@ -21853,14 +25518,14 @@ var ts; else { emit(node.initializer); } - if (node.kind === 187) { + if (node.kind === 187 /* ForInStatement */) { write(" in "); } else { write(" of "); } emit(node.expression); - emitToken(17, node.expression.end); + emitToken(17 /* CloseParenToken */, node.expression.end); emitEmbeddedStatement(node.statement); } function emitDownLevelForOfStatement(node) { @@ -21884,18 +25549,30 @@ var ts; // all destructuring. // Note also that because an extra statement is needed to assign to the LHS, // for-of bodies are always emitted as blocks. - var endPos = emitToken(82, node.pos); + var endPos = emitToken(82 /* ForKeyword */, node.pos); write(" "); - endPos = emitToken(16, endPos); - var rhsIsIdentifier = node.expression.kind === 65; - var counter = createTempVariable(268435456); - var rhsReference = rhsIsIdentifier ? node.expression : createTempVariable(0); + endPos = emitToken(16 /* OpenParenToken */, endPos); + // Do not emit the LHS let declaration yet, because it might contain destructuring. + // Do not call recordTempDeclaration because we are declaring the temps + // right here. Recording means they will be declared later. + // In the case where the user wrote an identifier as the RHS, like this: + // + // for (let v of arr) { } + // + // we don't want to emit a temporary variable for the RHS, just use it directly. + var rhsIsIdentifier = node.expression.kind === 65 /* Identifier */; + var counter = createTempVariable(268435456 /* _i */); + var rhsReference = rhsIsIdentifier ? node.expression : createTempVariable(0 /* Auto */); + // This is the let keyword for the counter and rhsReference. The let keyword for + // the LHS will be emitted inside the body. emitStart(node.expression); write("var "); + // _i = 0 emitNodeWithoutSourceMap(counter); write(" = 0"); emitEnd(node.expression); if (!rhsIsIdentifier) { + // , _a = expr write(", "); emitStart(node.expression); emitNodeWithoutSourceMap(rhsReference); @@ -21904,6 +25581,7 @@ var ts; emitEnd(node.expression); } write("; "); + // _i < _a.length; emitStart(node.initializer); emitNodeWithoutSourceMap(counter); write(" < "); @@ -21911,39 +25589,53 @@ var ts; write(".length"); emitEnd(node.initializer); write("; "); + // _i++) emitStart(node.initializer); emitNodeWithoutSourceMap(counter); write("++"); emitEnd(node.initializer); - emitToken(17, node.expression.end); + emitToken(17 /* CloseParenToken */, node.expression.end); + // Body write(" {"); writeLine(); increaseIndent(); + // Initialize LHS + // let v = _a[_i]; var rhsIterationValue = createElementAccessExpression(rhsReference, counter); emitStart(node.initializer); - if (node.initializer.kind === 199) { + if (node.initializer.kind === 199 /* VariableDeclarationList */) { write("var "); var variableDeclarationList = node.initializer; if (variableDeclarationList.declarations.length > 0) { var declaration = variableDeclarationList.declarations[0]; if (ts.isBindingPattern(declaration.name)) { + // This works whether the declaration is a var, let, or const. + // It will use rhsIterationValue _a[_i] as the initializer. emitDestructuring(declaration, false, rhsIterationValue); } else { + // The following call does not include the initializer, so we have + // to emit it separately. emitNodeWithoutSourceMap(declaration); write(" = "); emitNodeWithoutSourceMap(rhsIterationValue); } } else { - emitNodeWithoutSourceMap(createTempVariable(0)); + // It's an empty declaration list. This can only happen in an error case, if the user wrote + // for (let of []) {} + emitNodeWithoutSourceMap(createTempVariable(0 /* Auto */)); write(" = "); emitNodeWithoutSourceMap(rhsIterationValue); } } else { - var assignmentExpression = createBinaryExpression(node.initializer, 53, rhsIterationValue, false); - if (node.initializer.kind === 153 || node.initializer.kind === 154) { + // Initializer is an expression. Emit the expression in the body, so that it's + // evaluated on every iteration. + var assignmentExpression = createBinaryExpression(node.initializer, 53 /* EqualsToken */, rhsIterationValue, false); + if (node.initializer.kind === 153 /* ArrayLiteralExpression */ || node.initializer.kind === 154 /* ObjectLiteralExpression */) { + // This is a destructuring pattern, so call emitDestructuring instead of emit. Calling emit will not work, because it will cause + // the BinaryExpression to be passed in instead of the expression statement, which will cause emitDestructuring to crash. emitDestructuring(assignmentExpression, true, undefined, node); } else { @@ -21952,7 +25644,7 @@ var ts; } emitEnd(node.initializer); write(";"); - if (node.statement.kind === 179) { + if (node.statement.kind === 179 /* Block */) { emitLines(node.statement.statements); } else { @@ -21964,12 +25656,12 @@ var ts; write("}"); } function emitBreakOrContinueStatement(node) { - emitToken(node.kind === 190 ? 66 : 71, node.pos); + emitToken(node.kind === 190 /* BreakStatement */ ? 66 /* BreakKeyword */ : 71 /* ContinueKeyword */, node.pos); emitOptional(" ", node.label); write(";"); } function emitReturnStatement(node) { - emitToken(90, node.pos); + emitToken(90 /* ReturnKeyword */, node.pos); emitOptional(" ", node.expression); write(";"); } @@ -21980,21 +25672,21 @@ var ts; emitEmbeddedStatement(node.statement); } function emitSwitchStatement(node) { - var endPos = emitToken(92, node.pos); + var endPos = emitToken(92 /* SwitchKeyword */, node.pos); write(" "); - emitToken(16, endPos); + emitToken(16 /* OpenParenToken */, endPos); emit(node.expression); - endPos = emitToken(17, node.expression.end); + endPos = emitToken(17 /* CloseParenToken */, node.expression.end); write(" "); emitCaseBlock(node.caseBlock, endPos); } function emitCaseBlock(node, startPos) { - emitToken(14, startPos); + emitToken(14 /* OpenBraceToken */, startPos); increaseIndent(); emitLines(node.clauses); decreaseIndent(); writeLine(); - emitToken(15, node.clauses.end); + emitToken(15 /* CloseBraceToken */, node.clauses.end); } function nodeStartPositionsAreOnSameLine(node1, node2) { return ts.getLineOfLocalPosition(currentSourceFile, ts.skipTrivia(currentSourceFile.text, node1.pos)) === @@ -22009,7 +25701,7 @@ var ts; ts.getLineOfLocalPosition(currentSourceFile, ts.skipTrivia(currentSourceFile.text, node2.pos)); } function emitCaseOrDefaultClause(node) { - if (node.kind === 220) { + if (node.kind === 220 /* CaseClause */) { write("case "); emit(node.expression); write(":"); @@ -22044,16 +25736,16 @@ var ts; } function emitCatchClause(node) { writeLine(); - var endPos = emitToken(68, node.pos); + var endPos = emitToken(68 /* CatchKeyword */, node.pos); write(" "); - emitToken(16, endPos); + emitToken(16 /* OpenParenToken */, endPos); emit(node.variableDeclaration); - emitToken(17, node.variableDeclaration ? node.variableDeclaration.end : endPos); + emitToken(17 /* CloseParenToken */, node.variableDeclaration ? node.variableDeclaration.end : endPos); write(" "); emitBlock(node.block); } function emitDebuggerStatement(node) { - emitToken(72, node.pos); + emitToken(72 /* DebuggerKeyword */, node.pos); write(";"); } function emitLabelledStatement(node) { @@ -22064,7 +25756,7 @@ var ts; function getContainingModule(node) { do { node = node.parent; - } while (node && node.kind !== 205); + } while (node && node.kind !== 205 /* ModuleDeclaration */); return node; } function emitContainingModuleName(node) { @@ -22073,13 +25765,13 @@ var ts; } function emitModuleMemberName(node) { emitStart(node.name); - if (ts.getCombinedNodeFlags(node) & 1) { + if (ts.getCombinedNodeFlags(node) & 1 /* Export */) { var container = getContainingModule(node); if (container) { write(getGeneratedNameForNode(container)); write("."); } - else if (languageVersion < 2) { + else if (languageVersion < 2 /* ES6 */) { write("exports."); } } @@ -22087,17 +25779,17 @@ var ts; emitEnd(node.name); } function createVoidZero() { - var zero = ts.createSynthesizedNode(7); + var zero = ts.createSynthesizedNode(7 /* NumericLiteral */); zero.text = "0"; - var result = ts.createSynthesizedNode(166); + var result = ts.createSynthesizedNode(166 /* VoidExpression */); result.expression = zero; return result; } function emitExportMemberAssignment(node) { - if (node.flags & 1) { + if (node.flags & 1 /* Export */) { writeLine(); emitStart(node); - if (node.flags & 256) { + if (node.flags & 256 /* Default */) { write("exports.default"); } else { @@ -22125,10 +25817,18 @@ var ts; } } } + /** + * If the root has a chance of being a synthesized node, callers should also pass a value for + * lowestNonSynthesizedAncestor. This should be an ancestor of root, it should not be synthesized, + * and there should not be a lower ancestor that introduces a scope. This node will be used as the + * location for ensuring that temporary names are unique. + */ function emitDestructuring(root, isAssignmentExpressionStatement, value, lowestNonSynthesizedAncestor) { var emitCount = 0; - var isDeclaration = (root.kind === 198 && !(ts.getCombinedNodeFlags(root) & 1)) || root.kind === 129; - if (root.kind === 169) { + // An exported declaration is actually emitted as an assignment (to a property on the module object), so + // temporary variables in an exported declaration need to have real declarations elsewhere + var isDeclaration = (root.kind === 198 /* VariableDeclaration */ && !(ts.getCombinedNodeFlags(root) & 1 /* Export */)) || root.kind === 129 /* Parameter */; + if (root.kind === 169 /* BinaryExpression */) { emitAssignmentExpression(root); } else { @@ -22140,7 +25840,7 @@ var ts; write(", "); } renameNonTopLevelLetAndConst(name); - if (name.parent && (name.parent.kind === 198 || name.parent.kind === 152)) { + if (name.parent && (name.parent.kind === 198 /* VariableDeclaration */ || name.parent.kind === 152 /* BindingElement */)) { emitModuleMemberName(name.parent); } else { @@ -22150,8 +25850,11 @@ var ts; emit(value); } function ensureIdentifier(expr) { - if (expr.kind !== 65) { - var identifier = createTempVariable(0); + if (expr.kind !== 65 /* Identifier */) { + // In case the root is a synthesized node, we need to pass lowestNonSynthesizedAncestor + // as the location for determining uniqueness of the variable we are about to + // generate. + var identifier = createTempVariable(0 /* Auto */); if (!isDeclaration) { recordTempDeclaration(identifier); } @@ -22161,43 +25864,46 @@ var ts; return expr; } function createDefaultValueCheck(value, defaultValue) { + // The value expression will be evaluated twice, so for anything but a simple identifier + // we need to generate a temporary variable value = ensureIdentifier(value); - var equals = ts.createSynthesizedNode(169); + // Return the expression 'value === void 0 ? defaultValue : value' + var equals = ts.createSynthesizedNode(169 /* BinaryExpression */); equals.left = value; - equals.operatorToken = ts.createSynthesizedNode(30); + equals.operatorToken = ts.createSynthesizedNode(30 /* EqualsEqualsEqualsToken */); equals.right = createVoidZero(); return createConditionalExpression(equals, defaultValue, value); } function createConditionalExpression(condition, whenTrue, whenFalse) { - var cond = ts.createSynthesizedNode(170); + var cond = ts.createSynthesizedNode(170 /* ConditionalExpression */); cond.condition = condition; - cond.questionToken = ts.createSynthesizedNode(50); + cond.questionToken = ts.createSynthesizedNode(50 /* QuestionToken */); cond.whenTrue = whenTrue; - cond.colonToken = ts.createSynthesizedNode(51); + cond.colonToken = ts.createSynthesizedNode(51 /* ColonToken */); cond.whenFalse = whenFalse; return cond; } function createNumericLiteral(value) { - var node = ts.createSynthesizedNode(7); + var node = ts.createSynthesizedNode(7 /* NumericLiteral */); node.text = "" + value; return node; } function parenthesizeForAccess(expr) { - if (expr.kind === 65 || expr.kind === 155 || expr.kind === 156) { + if (expr.kind === 65 /* Identifier */ || expr.kind === 155 /* PropertyAccessExpression */ || expr.kind === 156 /* ElementAccessExpression */) { return expr; } - var node = ts.createSynthesizedNode(161); + var node = ts.createSynthesizedNode(161 /* ParenthesizedExpression */); node.expression = expr; return node; } function createPropertyAccess(object, propName) { - if (propName.kind !== 65) { + if (propName.kind !== 65 /* Identifier */) { return createElementAccess(object, propName); } return createPropertyAccessExpression(parenthesizeForAccess(object), propName); } function createElementAccess(object, index) { - var node = ts.createSynthesizedNode(156); + var node = ts.createSynthesizedNode(156 /* ElementAccessExpression */); node.expression = parenthesizeForAccess(object); node.argumentExpression = index; return node; @@ -22205,11 +25911,14 @@ var ts; function emitObjectLiteralAssignment(target, value) { var properties = target.properties; if (properties.length !== 1) { + // For anything but a single element destructuring we need to generate a temporary + // to ensure value is evaluated exactly once. value = ensureIdentifier(value); } for (var _a = 0; _a < properties.length; _a++) { var p = properties[_a]; - if (p.kind === 224 || p.kind === 225) { + if (p.kind === 224 /* PropertyAssignment */ || p.kind === 225 /* ShorthandPropertyAssignment */) { + // TODO(andersh): Computed property support var propName = (p.name); emitDestructuringAssignment(p.initializer || propName, createPropertyAccess(value, propName)); } @@ -22218,12 +25927,14 @@ var ts; function emitArrayLiteralAssignment(target, value) { var elements = target.elements; if (elements.length !== 1) { + // For anything but a single element destructuring we need to generate a temporary + // to ensure value is evaluated exactly once. value = ensureIdentifier(value); } for (var i = 0; i < elements.length; i++) { var e = elements[i]; - if (e.kind !== 175) { - if (e.kind !== 173) { + if (e.kind !== 175 /* OmittedExpression */) { + if (e.kind !== 173 /* SpreadElementExpression */) { emitDestructuringAssignment(e, createElementAccess(value, createNumericLiteral(i))); } else { @@ -22237,14 +25948,14 @@ var ts; } } function emitDestructuringAssignment(target, value) { - if (target.kind === 169 && target.operatorToken.kind === 53) { + if (target.kind === 169 /* BinaryExpression */ && target.operatorToken.kind === 53 /* EqualsToken */) { value = createDefaultValueCheck(value, target.right); target = target.left; } - if (target.kind === 154) { + if (target.kind === 154 /* ObjectLiteralExpression */) { emitObjectLiteralAssignment(target, value); } - else if (target.kind === 153) { + else if (target.kind === 153 /* ArrayLiteralExpression */) { emitArrayLiteralAssignment(target, value); } else { @@ -22258,39 +25969,45 @@ var ts; emitDestructuringAssignment(target, value); } else { - if (root.parent.kind !== 161) { + if (root.parent.kind !== 161 /* ParenthesizedExpression */) { write("("); } value = ensureIdentifier(value); emitDestructuringAssignment(target, value); write(", "); emit(value); - if (root.parent.kind !== 161) { + if (root.parent.kind !== 161 /* ParenthesizedExpression */) { write(")"); } } } function emitBindingElement(target, value) { if (target.initializer) { + // Combine value and initializer value = value ? createDefaultValueCheck(value, target.initializer) : target.initializer; } else if (!value) { + // Use 'void 0' in absence of value and initializer value = createVoidZero(); } if (ts.isBindingPattern(target.name)) { var pattern = target.name; var elements = pattern.elements; if (elements.length !== 1) { + // For anything but a single element destructuring we need to generate a temporary + // to ensure value is evaluated exactly once. value = ensureIdentifier(value); } for (var i = 0; i < elements.length; i++) { var element = elements[i]; - if (pattern.kind === 150) { + if (pattern.kind === 150 /* ObjectBindingPattern */) { + // Rewrite element to a declaration with an initializer that fetches property var propName = element.propertyName || element.name; emitBindingElement(element, createPropertyAccess(value, propName)); } - else if (element.kind !== 175) { + else if (element.kind !== 175 /* OmittedExpression */) { if (!element.dotDotDotToken) { + // Rewrite element to a declaration that accesses array element at index i emitBindingElement(element, createElementAccess(value, createNumericLiteral(i))); } else { @@ -22310,7 +26027,7 @@ var ts; } function emitVariableDeclaration(node) { if (ts.isBindingPattern(node.name)) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { emitDestructuring(node, false); } else { @@ -22322,12 +26039,19 @@ var ts; renameNonTopLevelLetAndConst(node.name); emitModuleMemberName(node); var initializer = node.initializer; - if (!initializer && languageVersion < 2) { - var isUninitializedLet = (resolver.getNodeCheckFlags(node) & 256) && - (getCombinedFlagsForIdentifier(node.name) & 4096); + if (!initializer && languageVersion < 2 /* ES6 */) { + // downlevel emit for non-initialized let bindings defined in loops + // for (...) { let x; } + // should be + // for (...) { var = void 0; } + // this is necessary to preserve ES6 semantic in scenarios like + // for (...) { let x; console.log(x); x = 1 } // assignment on one iteration should not affect other iterations + var isUninitializedLet = (resolver.getNodeCheckFlags(node) & 256 /* BlockScopedBindingInLoop */) && + (getCombinedFlagsForIdentifier(node.name) & 4096 /* Let */); + // NOTE: default initialization should not be added to let bindings in for-in\for-of statements if (isUninitializedLet && - node.parent.parent.kind !== 187 && - node.parent.parent.kind !== 188) { + node.parent.parent.kind !== 187 /* ForInStatement */ && + node.parent.parent.kind !== 188 /* ForOfStatement */) { initializer = createVoidZero(); } } @@ -22335,11 +26059,11 @@ var ts; } } function emitExportVariableAssignments(node) { - if (node.kind === 175) { + if (node.kind === 175 /* OmittedExpression */) { return; } var name = node.name; - if (name.kind === 65) { + if (name.kind === 65 /* Identifier */) { emitExportMemberAssignments(name); } else if (ts.isBindingPattern(name)) { @@ -22347,33 +26071,41 @@ var ts; } } function getCombinedFlagsForIdentifier(node) { - if (!node.parent || (node.parent.kind !== 198 && node.parent.kind !== 152)) { + if (!node.parent || (node.parent.kind !== 198 /* VariableDeclaration */ && node.parent.kind !== 152 /* BindingElement */)) { return 0; } return ts.getCombinedNodeFlags(node.parent); } function renameNonTopLevelLetAndConst(node) { - if (languageVersion >= 2 || + // do not rename if + // - language version is ES6+ + // - node is synthesized + // - node is not identifier (can happen when tree is malformed) + // - node is definitely not name of variable declaration. + // it still can be part of parameter declaration, this check will be done next + if (languageVersion >= 2 /* ES6 */ || ts.nodeIsSynthesized(node) || - node.kind !== 65 || - (node.parent.kind !== 198 && node.parent.kind !== 152)) { + node.kind !== 65 /* Identifier */ || + (node.parent.kind !== 198 /* VariableDeclaration */ && node.parent.kind !== 152 /* BindingElement */)) { return; } var combinedFlags = getCombinedFlagsForIdentifier(node); - if (((combinedFlags & 12288) === 0) || combinedFlags & 1) { + if (((combinedFlags & 12288 /* BlockScoped */) === 0) || combinedFlags & 1 /* Export */) { + // do not rename exported or non-block scoped variables return; } - var list = ts.getAncestor(node, 199); - if (list.parent.kind === 180) { - var isSourceFileLevelBinding = list.parent.parent.kind === 227; - var isModuleLevelBinding = list.parent.parent.kind === 206; - var isFunctionLevelBinding = list.parent.parent.kind === 179 && ts.isFunctionLike(list.parent.parent.parent); + // here it is known that node is a block scoped variable + var list = ts.getAncestor(node, 199 /* VariableDeclarationList */); + if (list.parent.kind === 180 /* VariableStatement */) { + var isSourceFileLevelBinding = list.parent.parent.kind === 227 /* SourceFile */; + var isModuleLevelBinding = list.parent.parent.kind === 206 /* ModuleBlock */; + var isFunctionLevelBinding = list.parent.parent.kind === 179 /* Block */ && ts.isFunctionLike(list.parent.parent.parent); if (isSourceFileLevelBinding || isModuleLevelBinding || isFunctionLevelBinding) { return; } } var blockScopeContainer = ts.getEnclosingBlockScopeContainer(node); - var parent = blockScopeContainer.kind === 227 + var parent = blockScopeContainer.kind === 227 /* SourceFile */ ? blockScopeContainer : blockScopeContainer.parent; if (resolver.resolvesToSomeValue(parent, node.text)) { @@ -22386,33 +26118,34 @@ var ts; } } function isES6ExportedDeclaration(node) { - return !!(node.flags & 1) && - languageVersion >= 2 && - node.parent.kind === 227; + return !!(node.flags & 1 /* Export */) && + languageVersion >= 2 /* ES6 */ && + node.parent.kind === 227 /* SourceFile */; } function emitVariableStatement(node) { - if (!(node.flags & 1)) { + if (!(node.flags & 1 /* Export */)) { emitStartOfVariableDeclarationList(node.declarationList); } else if (isES6ExportedDeclaration(node)) { + // Exported ES6 module member write("export "); emitStartOfVariableDeclarationList(node.declarationList); } emitCommaList(node.declarationList.declarations); write(";"); - if (languageVersion < 2 && node.parent === currentSourceFile) { + if (languageVersion < 2 /* ES6 */ && node.parent === currentSourceFile) { ts.forEach(node.declarationList.declarations, emitExportVariableAssignments); } } function emitParameter(node) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { if (ts.isBindingPattern(node.name)) { - var name_16 = createTempVariable(0); + var name_17 = createTempVariable(0 /* Auto */); if (!tempParameters) { tempParameters = []; } - tempParameters.push(name_16); - emit(name_16); + tempParameters.push(name_17); + emit(name_17); } else { emit(node.name); @@ -22427,7 +26160,7 @@ var ts; } } function emitDefaultValueAssignments(node) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { var tempIndex = 0; ts.forEach(node.parameters, function (p) { if (ts.isBindingPattern(p.name)) { @@ -22456,10 +26189,10 @@ var ts; } } function emitRestParameter(node) { - if (languageVersion < 2 && ts.hasRestParameters(node)) { + if (languageVersion < 2 /* ES6 */ && ts.hasRestParameters(node)) { var restIndex = node.parameters.length - 1; var restParam = node.parameters[restIndex]; - var tempName = createTempVariable(268435456).text; + var tempName = createTempVariable(268435456 /* _i */).text; writeLine(); emitLeadingComments(restParam); emitStart(restParam); @@ -22494,12 +26227,12 @@ var ts; } } function emitAccessor(node) { - write(node.kind === 136 ? "get " : "set "); + write(node.kind === 136 /* GetAccessor */ ? "get " : "set "); emit(node.name, false); emitSignatureAndBody(node); } function shouldEmitAsArrowFunction(node) { - return node.kind === 163 && languageVersion >= 2; + return node.kind === 163 /* ArrowFunction */ && languageVersion >= 2 /* ES6 */; } function emitDeclarationName(node) { if (node.name) { @@ -22510,24 +26243,29 @@ var ts; } } function shouldEmitFunctionName(node) { - if (node.kind === 162) { + if (node.kind === 162 /* FunctionExpression */) { + // Emit name if one is present return !!node.name; } - if (node.kind === 200) { - return !!node.name || languageVersion < 2; + if (node.kind === 200 /* FunctionDeclaration */) { + // Emit name if one is present, or emit generated name in down-level case (for export default case) + return !!node.name || languageVersion < 2 /* ES6 */; } } function emitFunctionDeclaration(node) { if (ts.nodeIsMissing(node.body)) { return emitOnlyPinnedOrTripleSlashComments(node); } - if (node.kind !== 134 && node.kind !== 133) { + if (node.kind !== 134 /* MethodDeclaration */ && node.kind !== 133 /* MethodSignature */) { + // Methods will emit the comments as part of emitting method declaration emitLeadingComments(node); } + // For targeting below es6, emit functions-like declaration including arrow function using function keyword. + // When targeting ES6, emit arrow function natively in ES6 by omitting function keyword and using fat arrow instead if (!shouldEmitAsArrowFunction(node)) { if (isES6ExportedDeclaration(node)) { write("export "); - if (node.flags & 256) { + if (node.flags & 256 /* Default */) { write("default "); } } @@ -22537,15 +26275,15 @@ var ts; emitDeclarationName(node); } emitSignatureAndBody(node); - if (languageVersion < 2 && node.kind === 200 && node.parent === currentSourceFile && node.name) { + if (languageVersion < 2 /* ES6 */ && node.kind === 200 /* FunctionDeclaration */ && node.parent === currentSourceFile && node.name) { emitExportMemberAssignments(node.name); } - if (node.kind !== 134 && node.kind !== 133) { + if (node.kind !== 134 /* MethodDeclaration */ && node.kind !== 133 /* MethodSignature */) { emitTrailingComments(node); } } function emitCaptureThisForNodeIfNecessary(node) { - if (resolver.getNodeCheckFlags(node) & 4) { + if (resolver.getNodeCheckFlags(node) & 4 /* CaptureThis */) { writeLine(); emitStart(node); write("var _this = this;"); @@ -22557,13 +26295,14 @@ var ts; write("("); if (node) { var parameters = node.parameters; - var omitCount = languageVersion < 2 && ts.hasRestParameters(node) ? 1 : 0; + var omitCount = languageVersion < 2 /* ES6 */ && ts.hasRestParameters(node) ? 1 : 0; emitList(parameters, 0, parameters.length - omitCount, false, false); } write(")"); decreaseIndent(); } function emitSignatureParametersForArrow(node) { + // Check whether the parameter list needs parentheses and preserve no-parenthesis if (node.parameters.length === 1 && node.pos === node.parameters[0].pos) { emit(node.parameters[0]); return; @@ -22577,6 +26316,7 @@ var ts; tempFlags = 0; tempVariables = undefined; tempParameters = undefined; + // When targeting ES6, emit arrow function natively in ES6 if (shouldEmitAsArrowFunction(node)) { emitSignatureParametersForArrow(node); write(" =>"); @@ -22585,9 +26325,11 @@ var ts; emitSignatureParameters(node); } if (!node.body) { + // There can be no body when there are parse errors. Just emit an empty block + // in that case. write(" { }"); } - else if (node.body.kind === 179) { + else if (node.body.kind === 179 /* Block */) { emitBlockFunctionBody(node, node.body); } else { @@ -22600,22 +26342,28 @@ var ts; tempVariables = saveTempVariables; tempParameters = saveTempParameters; } + // Returns true if any preamble code was emitted. function emitFunctionBodyPreamble(node) { emitCaptureThisForNodeIfNecessary(node); emitDefaultValueAssignments(node); emitRestParameter(node); } function emitExpressionFunctionBody(node, body) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { emitDownLevelExpressionFunctionBody(node, body); return; } + // For es6 and higher we can emit the expression as is. However, in the case + // where the expression might end up looking like a block when emitted, we'll + // also wrap it in parentheses first. For example if you have: a => {} + // then we need to generate: a => ({}) write(" "); + // Unwrap all type assertions. var current = body; - while (current.kind === 160) { + while (current.kind === 160 /* TypeAssertionExpression */) { current = current.expression; } - emitParenthesizedIf(body, current.kind === 154); + emitParenthesizedIf(body, current.kind === 154 /* ObjectLiteralExpression */); } function emitDownLevelExpressionFunctionBody(node, body) { write(" {"); @@ -22626,6 +26374,8 @@ var ts; emitFunctionBodyPreamble(node); var preambleEmitted = writer.getTextPos() !== outPos; decreaseIndent(); + // If we didn't have to emit any preamble code, then attempt to keep the arrow + // function on one line. if (!preambleEmitted && nodeStartPositionsAreOnSameLine(node, body)) { write(" "); emitStart(body); @@ -22659,6 +26409,8 @@ var ts; var initialTextPos = writer.getTextPos(); increaseIndent(); emitDetachedComments(body.statements); + // Emit all the directive prologues (like "use strict"). These have to come before + // any other preamble code we write (like parameter initializers). var startIndex = emitDirectivePrologues(body.statements, true); emitFunctionBodyPreamble(node); decreaseIndent(); @@ -22681,17 +26433,17 @@ var ts; emitLeadingCommentsOfPosition(body.statements.end); decreaseIndent(); } - emitToken(15, body.statements.end); + emitToken(15 /* CloseBraceToken */, body.statements.end); scopeEmitEnd(); } function findInitialSuperCall(ctor) { if (ctor.body) { var statement = ctor.body.statements[0]; - if (statement && statement.kind === 182) { + if (statement && statement.kind === 182 /* ExpressionStatement */) { var expr = statement.expression; - if (expr && expr.kind === 157) { + if (expr && expr.kind === 157 /* CallExpression */) { var func = expr.expression; - if (func && func.kind === 91) { + if (func && func.kind === 91 /* SuperKeyword */) { return statement; } } @@ -22700,7 +26452,7 @@ var ts; } function emitParameterPropertyAssignments(node) { ts.forEach(node.parameters, function (param) { - if (param.flags & 112) { + if (param.flags & 112 /* AccessibilityModifier */) { writeLine(); emitStart(param); emitStart(param.name); @@ -22715,12 +26467,13 @@ var ts; }); } function emitMemberAccessForPropertyName(memberName) { - if (memberName.kind === 8 || memberName.kind === 7) { + // TODO: (jfreeman,drosen): comment on why this is emitNodeWithoutSourceMap instead of emit here. + if (memberName.kind === 8 /* StringLiteral */ || memberName.kind === 7 /* NumericLiteral */) { write("["); emitNodeWithoutSourceMap(memberName); write("]"); } - else if (memberName.kind === 127) { + else if (memberName.kind === 127 /* ComputedPropertyName */) { emitComputedPropertyName(memberName); } else { @@ -22728,36 +26481,55 @@ var ts; emitNodeWithoutSourceMap(memberName); } } - function emitMemberAssignments(node, staticFlag) { - ts.forEach(node.members, function (member) { - if (member.kind === 132 && (member.flags & 128) === staticFlag && member.initializer) { - writeLine(); - emitLeadingComments(member); - emitStart(member); - emitStart(member.name); - if (staticFlag) { - emitDeclarationName(node); - } - else { - write("this"); - } - emitMemberAccessForPropertyName(member.name); - emitEnd(member.name); - write(" = "); - emit(member.initializer); - write(";"); - emitEnd(member); - emitTrailingComments(member); + function getInitializedProperties(node, static) { + var properties = []; + for (var _a = 0, _b = node.members; _a < _b.length; _a++) { + var member = _b[_a]; + if (member.kind === 132 /* PropertyDeclaration */ && static === ((member.flags & 128 /* Static */) !== 0) && member.initializer) { + properties.push(member); } - }); + } + return properties; + } + function emitPropertyDeclarations(node, properties) { + for (var _a = 0; _a < properties.length; _a++) { + var property = properties[_a]; + emitPropertyDeclaration(node, property); + } + } + function emitPropertyDeclaration(node, property, receiver, isExpression) { + writeLine(); + emitLeadingComments(property); + emitStart(property); + emitStart(property.name); + if (receiver) { + emit(receiver); + } + else { + if (property.flags & 128 /* Static */) { + emitDeclarationName(node); + } + else { + write("this"); + } + } + emitMemberAccessForPropertyName(property.name); + emitEnd(property.name); + write(" = "); + emit(property.initializer); + if (!isExpression) { + write(";"); + } + emitEnd(property); + emitTrailingComments(property); } function emitMemberFunctionsForES5AndLower(node) { ts.forEach(node.members, function (member) { - if (member.kind === 178) { + if (member.kind === 178 /* SemicolonClassElement */) { writeLine(); write(";"); } - else if (member.kind === 134 || node.kind === 133) { + else if (member.kind === 134 /* MethodDeclaration */ || node.kind === 133 /* MethodSignature */) { if (!member.body) { return emitOnlyPinnedOrTripleSlashComments(member); } @@ -22776,7 +26548,7 @@ var ts; write(";"); emitTrailingComments(member); } - else if (member.kind === 136 || member.kind === 137) { + else if (member.kind === 136 /* GetAccessor */ || member.kind === 137 /* SetAccessor */) { var accessors = ts.getAllAccessorDeclarations(node.members, member); if (member === accessors.firstAccessor) { writeLine(); @@ -22826,22 +26598,22 @@ var ts; function emitMemberFunctionsForES6AndHigher(node) { for (var _a = 0, _b = node.members; _a < _b.length; _a++) { var member = _b[_a]; - if ((member.kind === 134 || node.kind === 133) && !member.body) { + if ((member.kind === 134 /* MethodDeclaration */ || node.kind === 133 /* MethodSignature */) && !member.body) { emitOnlyPinnedOrTripleSlashComments(member); } - else if (member.kind === 134 || - member.kind === 136 || - member.kind === 137) { + else if (member.kind === 134 /* MethodDeclaration */ || + member.kind === 136 /* GetAccessor */ || + member.kind === 137 /* SetAccessor */) { writeLine(); emitLeadingComments(member); emitStart(member); - if (member.flags & 128) { + if (member.flags & 128 /* Static */) { write("static "); } - if (member.kind === 136) { + if (member.kind === 136 /* GetAccessor */) { write("get "); } - else if (member.kind === 137) { + else if (member.kind === 137 /* SetAccessor */) { write("set "); } emit(member.name); @@ -22849,7 +26621,7 @@ var ts; emitEnd(member); emitTrailingComments(member); } - else if (member.kind === 178) { + else if (member.kind === 178 /* SemicolonClassElement */) { writeLine(); write(";"); } @@ -22862,24 +26634,37 @@ var ts; tempFlags = 0; tempVariables = undefined; tempParameters = undefined; + emitConstructorWorker(node, baseTypeElement); + tempFlags = saveTempFlags; + tempVariables = saveTempVariables; + tempParameters = saveTempParameters; + } + function emitConstructorWorker(node, baseTypeElement) { + // Check if we have property assignment inside class declaration. + // If there is property assignment, we need to emit constructor whether users define it or not + // If there is no property assignment, we can omit constructor if users do not define it var hasInstancePropertyWithInitializer = false; + // Emit the constructor overload pinned comments ts.forEach(node.members, function (member) { - if (member.kind === 135 && !member.body) { + if (member.kind === 135 /* Constructor */ && !member.body) { emitOnlyPinnedOrTripleSlashComments(member); } - if (member.kind === 132 && member.initializer && (member.flags & 128) === 0) { + // Check if there is any non-static property assignment + if (member.kind === 132 /* PropertyDeclaration */ && member.initializer && (member.flags & 128 /* Static */) === 0) { hasInstancePropertyWithInitializer = true; } }); var ctor = ts.getFirstConstructorWithBody(node); - if (languageVersion >= 2 && !ctor && !hasInstancePropertyWithInitializer) { + // For target ES6 and above, if there is no user-defined constructor and there is no property assignment + // do not emit constructor in class declaration. + if (languageVersion >= 2 /* ES6 */ && !ctor && !hasInstancePropertyWithInitializer) { return; } if (ctor) { emitLeadingComments(ctor); } emitStart(ctor || node); - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { write("function "); emitDeclarationName(node); emitSignatureParameters(ctor); @@ -22890,6 +26675,12 @@ var ts; emitSignatureParameters(ctor); } else { + // Based on EcmaScript6 section 14.5.14: Runtime Semantics: ClassDefinitionEvaluation. + // If constructor is empty, then, + // If ClassHeritageopt is present, then + // Let constructor be the result of parsing the String "constructor(... args){ super (...args);}" using the syntactic grammar with the goal symbol MethodDefinition. + // Else, + // Let constructor be the result of parsing the String "constructor( ){ }" using the syntactic grammar with the goal symbol MethodDefinition if (baseTypeElement) { write("(...args)"); } @@ -22921,7 +26712,7 @@ var ts; if (baseTypeElement) { writeLine(); emitStart(baseTypeElement); - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { write("_super.apply(this, arguments);"); } else { @@ -22930,7 +26721,7 @@ var ts; emitEnd(baseTypeElement); } } - emitMemberAssignments(node, 0); + emitPropertyDeclarations(node, getInitializedProperties(node, false)); if (ctor) { var statements = ctor.body.statements; if (superCall) { @@ -22944,15 +26735,12 @@ var ts; emitLeadingCommentsOfPosition(ctor.body.statements.end); } decreaseIndent(); - emitToken(15, ctor ? ctor.body.statements.end : node.members.end); + emitToken(15 /* CloseBraceToken */, ctor ? ctor.body.statements.end : node.members.end); scopeEmitEnd(); emitEnd(ctor || node); if (ctor) { emitTrailingComments(ctor); } - tempFlags = saveTempFlags; - tempVariables = saveTempVariables; - tempParameters = saveTempParameters; } function emitClassExpression(node) { return emitClassLikeDeclaration(node); @@ -22961,7 +26749,7 @@ var ts; return emitClassLikeDeclaration(node); } function emitClassLikeDeclaration(node) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { emitClassLikeDeclarationBelowES6(node); } else { @@ -22970,9 +26758,61 @@ var ts; } function emitClassLikeDeclarationForES6AndHigher(node) { var thisNodeIsDecorated = ts.nodeIsDecorated(node); - if (node.kind === 201) { + if (node.kind === 201 /* ClassDeclaration */) { if (thisNodeIsDecorated) { - if (isES6ExportedDeclaration(node) && !(node.flags & 256)) { + // To preserve the correct runtime semantics when decorators are applied to the class, + // the emit needs to follow one of the following rules: + // + // * For a local class declaration: + // + // @dec class C { + // } + // + // The emit should be: + // + // let C = class { + // }; + // Object.defineProperty(C, "name", { value: "C", configurable: true }); + // C = __decorate([dec], C); + // + // * For an exported class declaration: + // + // @dec export class C { + // } + // + // The emit should be: + // + // export let C = class { + // }; + // Object.defineProperty(C, "name", { value: "C", configurable: true }); + // C = __decorate([dec], C); + // + // * For a default export of a class declaration with a name: + // + // @dec default export class C { + // } + // + // The emit should be: + // + // let C = class { + // } + // Object.defineProperty(C, "name", { value: "C", configurable: true }); + // C = __decorate([dec], C); + // export default C; + // + // * For a default export of a class declaration without a name: + // + // @dec default export class { + // } + // + // The emit should be: + // + // let _default = class { + // } + // _default = __decorate([dec], _default); + // export default _default; + // + if (isES6ExportedDeclaration(node) && !(node.flags & 256 /* Default */)) { write("export "); } write("let "); @@ -22981,13 +26821,35 @@ var ts; } else if (isES6ExportedDeclaration(node)) { write("export "); - if (node.flags & 256) { + if (node.flags & 256 /* Default */) { write("default "); } } } + // If the class has static properties, and it's a class expression, then we'll need + // to specialize the emit a bit. for a class expression of the form: + // + // class C { static a = 1; static b = 2; ... } + // + // We'll emit: + // + // (_temp = class C { ... }, _temp.a = 1, _temp.b = 2, _temp) + // + // This keeps the expression as an expression, while ensuring that the static parts + // of it have been initialized by the time it is used. + var staticProperties = getInitializedProperties(node, true); + var isClassExpressionWithStaticProperties = staticProperties.length > 0 && node.kind === 174 /* ClassExpression */; + var tempVariable; + if (isClassExpressionWithStaticProperties) { + tempVariable = createAndRecordTempVariable(0 /* Auto */); + write("("); + increaseIndent(); + emit(tempVariable); + write(" = "); + } write("class"); - if ((node.name || !(node.flags & 256)) && !thisNodeIsDecorated) { + // check if this is an "export default class" as it may not have a name. Do not emit the name if the class is decorated. + if ((node.name || !(node.flags & 256 /* Default */)) && !thisNodeIsDecorated) { write(" "); emitDeclarationName(node); } @@ -23004,8 +26866,15 @@ var ts; emitMemberFunctionsForES6AndHigher(node); decreaseIndent(); writeLine(); - emitToken(15, node.members.end); + emitToken(15 /* CloseBraceToken */, node.members.end); scopeEmitEnd(); + // For a decorated class, we need to assign its name (if it has one). This is because we emit + // the class as a class expression to avoid the double-binding of the identifier: + // + // let C = class { + // } + // Object.defineProperty(C, "name", { value: "C", configurable: true }); + // if (thisNodeIsDecorated) { write(";"); if (node.name) { @@ -23018,10 +26887,32 @@ var ts; writeLine(); } } - writeLine(); - emitMemberAssignments(node, 128); - emitDecoratorsOfClass(node); - if (!isES6ExportedDeclaration(node) && (node.flags & 1)) { + // Emit static property assignment. Because classDeclaration is lexically evaluated, + // it is safe to emit static property assignment after classDeclaration + // From ES6 specification: + // HasLexicalDeclaration (N) : Determines if the argument identifier has a binding in this environment record that was created using + // a lexical declaration such as a LexicalDeclaration or a ClassDeclaration. + if (isClassExpressionWithStaticProperties) { + for (var _a = 0; _a < staticProperties.length; _a++) { + var property = staticProperties[_a]; + write(","); + writeLine(); + emitPropertyDeclaration(node, property, tempVariable, true); + } + write(","); + writeLine(); + emit(tempVariable); + decreaseIndent(); + write(")"); + } + else { + writeLine(); + emitPropertyDeclarations(node, staticProperties); + emitDecoratorsOfClass(node); + } + // If this is an exported class, but not on the top level (i.e. on an internal + // module), export it + if (!isES6ExportedDeclaration(node) && (node.flags & 1 /* Export */)) { writeLine(); emitStart(node); emitModuleMemberName(node); @@ -23030,7 +26921,8 @@ var ts; emitEnd(node); write(";"); } - else if (isES6ExportedDeclaration(node) && (node.flags & 256) && thisNodeIsDecorated) { + else if (isES6ExportedDeclaration(node) && (node.flags & 256 /* Default */) && thisNodeIsDecorated) { + // if this is a top level default export of decorated class, write the export after the declaration. writeLine(); write("export default "); emitDeclarationName(node); @@ -23038,7 +26930,7 @@ var ts; } } function emitClassLikeDeclarationBelowES6(node) { - if (node.kind === 201) { + if (node.kind === 201 /* ClassDeclaration */) { write("var "); emitDeclarationName(node); write(" = "); @@ -23070,11 +26962,11 @@ var ts; writeLine(); emitConstructor(node, baseTypeNode); emitMemberFunctionsForES5AndLower(node); - emitMemberAssignments(node, 128); + emitPropertyDeclarations(node, getInitializedProperties(node, true)); writeLine(); emitDecoratorsOfClass(node); writeLine(); - emitToken(15, node.members.end, function () { + emitToken(15 /* CloseBraceToken */, node.members.end, function () { write("return "); emitDeclarationName(node); }); @@ -23086,7 +26978,7 @@ var ts; computedPropertyNamesToGeneratedNames = saveComputedPropertyNamesToGeneratedNames; decreaseIndent(); writeLine(); - emitToken(15, node.members.end); + emitToken(15 /* CloseBraceToken */, node.members.end); scopeEmitEnd(); emitStart(node); write(")("); @@ -23094,98 +26986,171 @@ var ts; emit(baseTypeNode.expression); } write(")"); - if (node.kind === 201) { + if (node.kind === 201 /* ClassDeclaration */) { write(";"); } emitEnd(node); - if (node.kind === 201) { + if (node.kind === 201 /* ClassDeclaration */) { emitExportMemberAssignment(node); } - if (languageVersion < 2 && node.parent === currentSourceFile && node.name) { + if (languageVersion < 2 /* ES6 */ && node.parent === currentSourceFile && node.name) { emitExportMemberAssignments(node.name); } } function emitClassMemberPrefix(node, member) { emitDeclarationName(node); - if (!(member.flags & 128)) { + if (!(member.flags & 128 /* Static */)) { write(".prototype"); } } function emitDecoratorsOfClass(node) { emitDecoratorsOfMembers(node, 0); - emitDecoratorsOfMembers(node, 128); + emitDecoratorsOfMembers(node, 128 /* Static */); emitDecoratorsOfConstructor(node); } function emitDecoratorsOfConstructor(node) { + var decorators = node.decorators; var constructor = ts.getFirstConstructorWithBody(node); - if (constructor) { - emitDecoratorsOfParameters(node, constructor); - } - if (!ts.nodeIsDecorated(node)) { + var hasDecoratedParameters = constructor && ts.forEach(constructor.parameters, ts.nodeIsDecorated); + // skip decoration of the constructor if neither it nor its parameters are decorated + if (!decorators && !hasDecoratedParameters) { return; } + // Emit the call to __decorate. Given the class: + // + // @dec + // class C { + // } + // + // The emit for the class is: + // + // C = __decorate([dec], C); + // writeLine(); emitStart(node); emitDeclarationName(node); - write(" = "); - emitDecorateStart(node.decorators); + write(" = __decorate(["); + increaseIndent(); + writeLine(); + var decoratorCount = decorators ? decorators.length : 0; + var argumentsWritten = emitList(decorators, 0, decoratorCount, true, false, false, true, function (decorator) { + emitStart(decorator); + emit(decorator.expression); + emitEnd(decorator); + }); + argumentsWritten += emitDecoratorsOfParameters(constructor, argumentsWritten > 0); + emitSerializedTypeMetadata(node, argumentsWritten >= 0); + decreaseIndent(); + writeLine(); + write("], "); emitDeclarationName(node); write(");"); emitEnd(node); writeLine(); } function emitDecoratorsOfMembers(node, staticFlag) { - ts.forEach(node.members, function (member) { - if ((member.flags & 128) !== staticFlag) { - return; + for (var _a = 0, _b = node.members; _a < _b.length; _a++) { + var member = _b[_a]; + // only emit members in the correct group + if ((member.flags & 128 /* Static */) !== staticFlag) { + continue; } - var decorators; - switch (member.kind) { - case 134: - emitDecoratorsOfParameters(node, member); - decorators = member.decorators; - break; - case 136: - case 137: - var accessors = ts.getAllAccessorDeclarations(node.members, member); - if (member !== accessors.firstAccessor) { - return; - } - if (accessors.setAccessor) { - emitDecoratorsOfParameters(node, accessors.setAccessor); - } - decorators = accessors.firstAccessor.decorators; - if (!decorators && accessors.secondAccessor) { - decorators = accessors.secondAccessor.decorators; - } - break; - case 132: - decorators = member.decorators; - break; - default: - return; + // skip members that cannot be decorated (such as the constructor) + if (!ts.nodeCanBeDecorated(member)) { + continue; } - if (!decorators) { - return; + // skip a member if it or any of its parameters are not decorated + if (!ts.nodeOrChildIsDecorated(member)) { + continue; } + // skip an accessor declaration if it is not the first accessor + var decorators = void 0; + var functionLikeMember = void 0; + if (ts.isAccessor(member)) { + var accessors = ts.getAllAccessorDeclarations(node.members, member); + if (member !== accessors.firstAccessor) { + continue; + } + // get the decorators from the first accessor with decorators + decorators = accessors.firstAccessor.decorators; + if (!decorators && accessors.secondAccessor) { + decorators = accessors.secondAccessor.decorators; + } + // we only decorate parameters of the set accessor + functionLikeMember = accessors.setAccessor; + } + else { + decorators = member.decorators; + // we only decorate the parameters here if this is a method + if (member.kind === 134 /* MethodDeclaration */) { + functionLikeMember = member; + } + } + // Emit the call to __decorate. Given the following: + // + // class C { + // @dec method(@dec2 x) {} + // @dec get accessor() {} + // @dec prop; + // } + // + // The emit for a method is: + // + // Object.defineProperty(C.prototype, "method", + // __decorate([ + // dec, + // __param(0, dec2), + // __metadata("design:type", Function), + // __metadata("design:paramtypes", [Object]), + // __metadata("design:returntype", void 0) + // ], C.prototype, "method", Object.getOwnPropertyDescriptor(C.prototype, "method"))); + // + // The emit for an accessor is: + // + // Object.defineProperty(C.prototype, "accessor", + // __decorate([ + // dec + // ], C.prototype, "accessor", Object.getOwnPropertyDescriptor(C.prototype, "accessor"))); + // + // The emit for a property is: + // + // __decorate([ + // dec + // ], C.prototype, "prop"); + // writeLine(); emitStart(member); - if (member.kind !== 132) { + if (member.kind !== 132 /* PropertyDeclaration */) { write("Object.defineProperty("); emitStart(member.name); emitClassMemberPrefix(node, member); write(", "); emitExpressionForPropertyName(member.name); emitEnd(member.name); - write(", "); + write(","); + increaseIndent(); + writeLine(); } - emitDecorateStart(decorators); + write("__decorate(["); + increaseIndent(); + writeLine(); + var decoratorCount = decorators ? decorators.length : 0; + var argumentsWritten = emitList(decorators, 0, decoratorCount, true, false, false, true, function (decorator) { + emitStart(decorator); + emit(decorator.expression); + emitEnd(decorator); + }); + argumentsWritten += emitDecoratorsOfParameters(functionLikeMember, argumentsWritten > 0); + emitSerializedTypeMetadata(member, argumentsWritten > 0); + decreaseIndent(); + writeLine(); + write("], "); emitStart(member.name); emitClassMemberPrefix(node, member); write(", "); emitExpressionForPropertyName(member.name); emitEnd(member.name); - if (member.kind !== 132) { + if (member.kind !== 132 /* PropertyDeclaration */) { write(", Object.getOwnPropertyDescriptor("); emitStart(member.name); emitClassMemberPrefix(node, member); @@ -23193,51 +27158,142 @@ var ts; emitExpressionForPropertyName(member.name); emitEnd(member.name); write("))"); + decreaseIndent(); } write(");"); emitEnd(member); writeLine(); - }); - } - function emitDecoratorsOfParameters(node, member) { - ts.forEach(member.parameters, function (parameter, parameterIndex) { - if (!ts.nodeIsDecorated(parameter)) { - return; - } - writeLine(); - emitStart(parameter); - emitDecorateStart(parameter.decorators); - emitStart(parameter.name); - if (member.kind === 135) { - emitDeclarationName(node); - write(", void 0"); - } - else { - emitClassMemberPrefix(node, member); - write(", "); - emitExpressionForPropertyName(member.name); - } - write(", "); - write(String(parameterIndex)); - emitEnd(parameter.name); - write(");"); - emitEnd(parameter); - writeLine(); - }); - } - function emitDecorateStart(decorators) { - write("__decorate(["); - var decoratorCount = decorators.length; - for (var i = 0; i < decoratorCount; i++) { - if (i > 0) { - write(", "); - } - var decorator = decorators[i]; - emitStart(decorator); - emit(decorator.expression); - emitEnd(decorator); } - write("], "); + } + function emitDecoratorsOfParameters(node, leadingComma) { + var argumentsWritten = 0; + if (node) { + var parameterIndex = 0; + for (var _a = 0, _b = node.parameters; _a < _b.length; _a++) { + var parameter = _b[_a]; + if (ts.nodeIsDecorated(parameter)) { + var decorators = parameter.decorators; + argumentsWritten += emitList(decorators, 0, decorators.length, true, false, leadingComma, true, function (decorator) { + emitStart(decorator); + write("__param(" + parameterIndex + ", "); + emit(decorator.expression); + write(")"); + emitEnd(decorator); + }); + leadingComma = true; + } + ++parameterIndex; + } + } + return argumentsWritten; + } + function shouldEmitTypeMetadata(node) { + // This method determines whether to emit the "design:type" metadata based on the node's kind. + // The caller should have already tested whether the node has decorators and whether the emitDecoratorMetadata + // compiler option is set. + switch (node.kind) { + case 134 /* MethodDeclaration */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 132 /* PropertyDeclaration */: + return true; + } + return false; + } + function shouldEmitReturnTypeMetadata(node) { + // This method determines whether to emit the "design:returntype" metadata based on the node's kind. + // The caller should have already tested whether the node has decorators and whether the emitDecoratorMetadata + // compiler option is set. + switch (node.kind) { + case 134 /* MethodDeclaration */: + return true; + } + return false; + } + function shouldEmitParamTypesMetadata(node) { + // This method determines whether to emit the "design:paramtypes" metadata based on the node's kind. + // The caller should have already tested whether the node has decorators and whether the emitDecoratorMetadata + // compiler option is set. + switch (node.kind) { + case 201 /* ClassDeclaration */: + case 134 /* MethodDeclaration */: + case 137 /* SetAccessor */: + return true; + } + return false; + } + function emitSerializedTypeMetadata(node, writeComma) { + // This method emits the serialized type metadata for a decorator target. + // The caller should have already tested whether the node has decorators. + var argumentsWritten = 0; + if (compilerOptions.emitDecoratorMetadata) { + if (shouldEmitTypeMetadata(node)) { + var serializedType = resolver.serializeTypeOfNode(node, getGeneratedNameForNode); + if (serializedType) { + if (writeComma) { + write(", "); + } + writeLine(); + write("__metadata('design:type', "); + emitSerializedType(node, serializedType); + write(")"); + argumentsWritten++; + } + } + if (shouldEmitParamTypesMetadata(node)) { + var serializedTypes = resolver.serializeParameterTypesOfNode(node, getGeneratedNameForNode); + if (serializedTypes) { + if (writeComma || argumentsWritten) { + write(", "); + } + writeLine(); + write("__metadata('design:paramtypes', ["); + for (var i = 0; i < serializedTypes.length; ++i) { + if (i > 0) { + write(", "); + } + emitSerializedType(node, serializedTypes[i]); + } + write("])"); + argumentsWritten++; + } + } + if (shouldEmitReturnTypeMetadata(node)) { + var serializedType = resolver.serializeReturnTypeOfNode(node, getGeneratedNameForNode); + if (serializedType) { + if (writeComma || argumentsWritten) { + write(", "); + } + writeLine(); + write("__metadata('design:returntype', "); + emitSerializedType(node, serializedType); + write(")"); + argumentsWritten++; + } + } + } + return argumentsWritten; + } + function serializeTypeNameSegment(location, path, index) { + switch (index) { + case 0: + return "typeof " + path[index] + " !== 'undefined' && " + path[index]; + case 1: + return serializeTypeNameSegment(location, path, index - 1) + "." + path[index]; + default: + var temp = createAndRecordTempVariable(0 /* Auto */).text; + return "(" + temp + " = " + serializeTypeNameSegment(location, path, index - 1) + ") && " + temp + "." + path[index]; + } + } + function emitSerializedType(location, name) { + if (typeof name === "string") { + write(name); + return; + } + else { + ts.Debug.assert(name.length > 0, "Invalid serialized type name"); + write("(" + serializeTypeNameSegment(location, name, name.length - 1) + ") || Object"); + } } function emitInterfaceDeclaration(node) { emitOnlyPinnedOrTripleSlashComments(node); @@ -23247,10 +27303,11 @@ var ts; return !isConstEnum || compilerOptions.preserveConstEnums || compilerOptions.separateCompilation; } function emitEnumDeclaration(node) { + // const enums are completely erased during compilation. if (!shouldEmitEnumDeclaration(node)) { return; } - if (!(node.flags & 1) || isES6ExportedDeclaration(node)) { + if (!(node.flags & 1 /* Export */) || isES6ExportedDeclaration(node)) { emitStart(node); if (isES6ExportedDeclaration(node)) { write("export "); @@ -23272,7 +27329,7 @@ var ts; emitLines(node.members); decreaseIndent(); writeLine(); - emitToken(15, node.members.end); + emitToken(15 /* CloseBraceToken */, node.members.end); scopeEmitEnd(); write(")("); emitModuleMemberName(node); @@ -23280,7 +27337,7 @@ var ts; emitModuleMemberName(node); write(" = {}));"); emitEnd(node); - if (!isES6ExportedDeclaration(node) && node.flags & 1) { + if (!isES6ExportedDeclaration(node) && node.flags & 1 /* Export */) { writeLine(); emitStart(node); write("var "); @@ -23290,7 +27347,7 @@ var ts; emitEnd(node); write(";"); } - if (languageVersion < 2 && node.parent === currentSourceFile) { + if (languageVersion < 2 /* ES6 */ && node.parent === currentSourceFile) { emitExportMemberAssignments(node.name); } } @@ -23323,7 +27380,7 @@ var ts; } } function getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration) { - if (moduleDeclaration.body.kind === 205) { + if (moduleDeclaration.body.kind === 205 /* ModuleDeclaration */) { var recursiveInnerModule = getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration.body); return recursiveInnerModule || moduleDeclaration.body; } @@ -23332,6 +27389,7 @@ var ts; return ts.isInstantiatedModule(node, compilerOptions.preserveConstEnums || compilerOptions.separateCompilation); } function emitModuleDeclaration(node) { + // Emit only if this module is non-ambient. var shouldEmit = shouldEmitModuleDeclaration(node); if (!shouldEmit) { return emitOnlyPinnedOrTripleSlashComments(node); @@ -23351,7 +27409,7 @@ var ts; write(getGeneratedNameForNode(node)); emitEnd(node.name); write(") "); - if (node.body.kind === 206) { + if (node.body.kind === 206 /* ModuleBlock */) { var saveTempFlags = tempFlags; var saveTempVariables = tempVariables; tempFlags = 0; @@ -23370,11 +27428,12 @@ var ts; decreaseIndent(); writeLine(); var moduleBlock = getInnerMostModuleDeclarationFromDottedModule(node).body; - emitToken(15, moduleBlock.statements.end); + emitToken(15 /* CloseBraceToken */, moduleBlock.statements.end); scopeEmitEnd(); } write(")("); - if ((node.flags & 1) && !isES6ExportedDeclaration(node)) { + // write moduleDecl = containingModule.m only if it is not exported es6 module member + if ((node.flags & 1 /* Export */) && !isES6ExportedDeclaration(node)) { emit(node.name); write(" = "); } @@ -23383,33 +27442,33 @@ var ts; emitModuleMemberName(node); write(" = {}));"); emitEnd(node); - if (!isES6ExportedDeclaration(node) && node.name.kind === 65 && node.parent === currentSourceFile) { + if (!isES6ExportedDeclaration(node) && node.name.kind === 65 /* Identifier */ && node.parent === currentSourceFile) { emitExportMemberAssignments(node.name); } } function emitRequire(moduleName) { - if (moduleName.kind === 8) { + if (moduleName.kind === 8 /* StringLiteral */) { write("require("); emitStart(moduleName); emitLiteral(moduleName); emitEnd(moduleName); - emitToken(17, moduleName.end); + emitToken(17 /* CloseParenToken */, moduleName.end); } else { write("require()"); } } function getNamespaceDeclarationNode(node) { - if (node.kind === 208) { + if (node.kind === 208 /* ImportEqualsDeclaration */) { return node; } var importClause = node.importClause; - if (importClause && importClause.namedBindings && importClause.namedBindings.kind === 211) { + if (importClause && importClause.namedBindings && importClause.namedBindings.kind === 211 /* NamespaceImport */) { return importClause.namedBindings; } } function isDefaultImport(node) { - return node.kind === 209 && node.importClause && !!node.importClause.name; + return node.kind === 209 /* ImportDeclaration */ && node.importClause && !!node.importClause.name; } function emitExportImportAssignments(node) { if (ts.isAliasSymbolDeclaration(node) && resolver.isValueAliasDeclaration(node)) { @@ -23418,9 +27477,10 @@ var ts; ts.forEachChild(node, emitExportImportAssignments); } function emitImportDeclaration(node) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { return emitExternalImportDeclaration(node); } + // ES6 import if (node.importClause) { var shouldEmitDefaultBindings = resolver.isReferencedAliasDeclaration(node.importClause); var shouldEmitNamedBindings = node.importClause.namedBindings && resolver.isReferencedAliasDeclaration(node.importClause.namedBindings, true); @@ -23436,7 +27496,7 @@ var ts; if (shouldEmitNamedBindings) { emitLeadingComments(node.importClause.namedBindings); emitStart(node.importClause.namedBindings); - if (node.importClause.namedBindings.kind === 211) { + if (node.importClause.namedBindings.kind === 211 /* NamespaceImport */) { write("* as "); emit(node.importClause.namedBindings.name); } @@ -23462,19 +27522,26 @@ var ts; } function emitExternalImportDeclaration(node) { if (ts.contains(externalImports, node)) { - var isExportedImport = node.kind === 208 && (node.flags & 1) !== 0; + var isExportedImport = node.kind === 208 /* ImportEqualsDeclaration */ && (node.flags & 1 /* Export */) !== 0; var namespaceDeclaration = getNamespaceDeclarationNode(node); - if (compilerOptions.module !== 2) { + if (compilerOptions.module !== 2 /* AMD */) { emitLeadingComments(node); emitStart(node); if (namespaceDeclaration && !isDefaultImport(node)) { + // import x = require("foo") + // import * as x from "foo" if (!isExportedImport) write("var "); emitModuleMemberName(namespaceDeclaration); write(" = "); } else { - var isNakedImport = 209 && !node.importClause; + // import "foo" + // import x from "foo" + // import { x, y } from "foo" + // import d, * as x from "foo" + // import d, { x, y } from "foo" + var isNakedImport = 209 /* ImportDeclaration */ && !node.importClause; if (!isNakedImport) { write("var "); write(getGeneratedNameForNode(node)); @@ -23483,6 +27550,7 @@ var ts; } emitRequire(ts.getExternalModuleName(node)); if (namespaceDeclaration && isDefaultImport(node)) { + // import d, * as x from "foo" write(", "); emitModuleMemberName(namespaceDeclaration); write(" = "); @@ -23501,6 +27569,7 @@ var ts; write(";"); } else if (namespaceDeclaration && isDefaultImport(node)) { + // import d, * as x from "foo" write("var "); emitModuleMemberName(namespaceDeclaration); write(" = "); @@ -23516,6 +27585,9 @@ var ts; emitExternalImportDeclaration(node); return; } + // preserve old compiler's behavior: emit 'var' for import declaration (even if we do not consider them referenced) when + // - current file is not external module + // - import declaration is top level and target is value imported by entity name if (resolver.isReferencedAliasDeclaration(node) || (!ts.isExternalModule(currentSourceFile) && resolver.isTopLevelValueImportEqualsWithEntityName(node))) { emitLeadingComments(node); @@ -23524,7 +27596,7 @@ var ts; write("export "); write("var "); } - else if (!(node.flags & 1)) { + else if (!(node.flags & 1 /* Export */)) { write("var "); } emitModuleMemberName(node); @@ -23537,12 +27609,13 @@ var ts; } } function emitExportDeclaration(node) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { if (node.moduleSpecifier && (!node.exportClause || resolver.isValueAliasDeclaration(node))) { emitStart(node); var generatedName = getGeneratedNameForNode(node); if (node.exportClause) { - if (compilerOptions.module !== 2) { + // export { x, y, ... } from "foo" + if (compilerOptions.module !== 2 /* AMD */) { write("var "); write(generatedName); write(" = "); @@ -23567,9 +27640,10 @@ var ts; } } else { + // export * from "foo" writeLine(); write("__export("); - if (compilerOptions.module !== 2) { + if (compilerOptions.module !== 2 /* AMD */) { emitRequire(ts.getExternalModuleName(node)); } else { @@ -23585,6 +27659,7 @@ var ts; emitStart(node); write("export "); if (node.exportClause) { + // export { x, y, ... } write("{ "); emitExportOrImportSpecifierList(node.exportClause.elements, resolver.isValueAliasDeclaration); write(" }"); @@ -23602,7 +27677,7 @@ var ts; } } function emitExportOrImportSpecifierList(specifiers, shouldEmit) { - ts.Debug.assert(languageVersion >= 2); + ts.Debug.assert(languageVersion >= 2 /* ES6 */); var needsComma = false; for (var _a = 0; _a < specifiers.length; _a++) { var specifier = specifiers[_a]; @@ -23623,14 +27698,14 @@ var ts; } function emitExportAssignment(node) { if (!node.isExportEquals && resolver.isValueAliasDeclaration(node)) { - if (languageVersion >= 2) { + if (languageVersion >= 2 /* ES6 */) { writeLine(); emitStart(node); write("export default "); var expression = node.expression; emit(expression); - if (expression.kind !== 200 && - expression.kind !== 201) { + if (expression.kind !== 200 /* FunctionDeclaration */ && + expression.kind !== 201 /* ClassDeclaration */) { write(";"); } emitEnd(node); @@ -23654,37 +27729,46 @@ var ts; for (var _a = 0, _b = sourceFile.statements; _a < _b.length; _a++) { var node = _b[_a]; switch (node.kind) { - case 209: + case 209 /* ImportDeclaration */: if (!node.importClause || resolver.isReferencedAliasDeclaration(node.importClause, true)) { + // import "mod" + // import x from "mod" where x is referenced + // import * as x from "mod" where x is referenced + // import { x, y } from "mod" where at least one import is referenced externalImports.push(node); } break; - case 208: - if (node.moduleReference.kind === 219 && resolver.isReferencedAliasDeclaration(node)) { + case 208 /* ImportEqualsDeclaration */: + if (node.moduleReference.kind === 219 /* ExternalModuleReference */ && resolver.isReferencedAliasDeclaration(node)) { + // import x = require("mod") where x is referenced externalImports.push(node); } break; - case 215: + case 215 /* ExportDeclaration */: if (node.moduleSpecifier) { if (!node.exportClause) { + // export * from "mod" externalImports.push(node); hasExportStars = true; } else if (resolver.isValueAliasDeclaration(node)) { + // export { x, y } from "mod" where at least one export is a value symbol externalImports.push(node); } } else { + // export { x, y } for (var _c = 0, _d = node.exportClause.elements; _c < _d.length; _c++) { var specifier = _d[_c]; - var name_17 = (specifier.propertyName || specifier.name).text; - (exportSpecifiers[name_17] || (exportSpecifiers[name_17] = [])).push(specifier); + var name_18 = (specifier.propertyName || specifier.name).text; + (exportSpecifiers[name_18] || (exportSpecifiers[name_18] = [])).push(specifier); } } break; - case 214: + case 214 /* ExportAssignment */: if (node.isExportEquals && !exportEquals) { + // export = x exportEquals = node; } break; @@ -23692,6 +27776,7 @@ var ts; } } function sortAMDModules(amdModules) { + // AMD modules with declared variable names go first return amdModules.sort(function (moduleA, moduleB) { if (moduleA.name === moduleB.name) { return 0; @@ -23729,7 +27814,7 @@ var ts; var importNode = externalImports[_a]; write(", "); var moduleName = ts.getExternalModuleName(importNode); - if (moduleName.kind === 8) { + if (moduleName.kind === 8 /* StringLiteral */) { emitLiteral(moduleName); } else { @@ -23788,6 +27873,8 @@ var ts; emitCaptureThisForNodeIfNecessary(node); emitLinesStartingAt(node.statements, startIndex); emitTempDeclarations(true); + // Emit exportDefault if it exists will happen as part + // or normal statement emit. } function emitExportEquals(emitAsReturn) { if (exportEquals && resolver.isValueAliasDeclaration(exportEquals)) { @@ -23808,12 +27895,13 @@ var ts; emit(statements[i]); } else { + // return index of the first non prologue directive return i; } } return statements.length; } - function writeHelper(text) { + function writeLines(text) { var lines = text.split(/\r\n|\r|\n/g); for (var i = 0; i < lines.length; ++i) { var line = lines[i]; @@ -23824,35 +27912,33 @@ var ts; } } function emitSourceFileNode(node) { + // Start new file on new line writeLine(); emitDetachedComments(node); + // emit prologue directives prior to __extends var startIndex = emitDirectivePrologues(node.statements, false); - if ((languageVersion < 2) && (!extendsEmitted && resolver.getNodeCheckFlags(node) & 8)) { - writeLine(); - write("var __extends = this.__extends || function (d, b) {"); - increaseIndent(); - writeLine(); - write("for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];"); - writeLine(); - write("function __() { this.constructor = d; }"); - writeLine(); - write("__.prototype = b.prototype;"); - writeLine(); - write("d.prototype = new __();"); - decreaseIndent(); - writeLine(); - write("};"); + // Only Emit __extends function when target ES5. + // For target ES6 and above, we can emit classDeclaration as is. + if ((languageVersion < 2 /* ES6 */) && (!extendsEmitted && resolver.getNodeCheckFlags(node) & 8 /* EmitExtends */)) { + writeLines(extendsHelper); extendsEmitted = true; } - if (!decorateEmitted && resolver.getNodeCheckFlags(node) & 512) { - writeHelper("\nvar __decorate = this.__decorate || function (decorators, target, key, value) {\n var kind = typeof (arguments.length == 2 ? value = target : value);\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n switch (kind) {\n case \"function\": value = decorator(value) || value; break;\n case \"number\": decorator(target, key, value); break;\n case \"undefined\": decorator(target, key); break;\n case \"object\": value = decorator(target, key, value) || value; break;\n }\n }\n return value;\n};"); + if (!decorateEmitted && resolver.getNodeCheckFlags(node) & 512 /* EmitDecorate */) { + writeLines(decorateHelper); + if (compilerOptions.emitDecoratorMetadata) { + writeLines(metadataHelper); + } decorateEmitted = true; } + if (!paramEmitted && resolver.getNodeCheckFlags(node) & 1024 /* EmitParam */) { + writeLines(paramHelper); + paramEmitted = true; + } if (ts.isExternalModule(node)) { - if (languageVersion >= 2) { + if (languageVersion >= 2 /* ES6 */) { emitES6Module(node, startIndex); } - else if (compilerOptions.module === 2) { + else if (compilerOptions.module === 2 /* AMD */) { emitAMDModule(node, startIndex); } else { @@ -23874,7 +27960,7 @@ var ts; if (!node) { return; } - if (node.flags & 2) { + if (node.flags & 2 /* Ambient */) { return emitOnlyPinnedOrTripleSlashComments(node); } var emitComments = shouldEmitLeadingAndTrailingComments(node); @@ -23888,181 +27974,193 @@ var ts; } function shouldEmitLeadingAndTrailingComments(node) { switch (node.kind) { - case 202: - case 200: - case 209: - case 208: - case 203: - case 214: + // All of these entities are emitted in a specialized fashion. As such, we allow + // the specialized methods for each to handle the comments on the nodes. + case 202 /* InterfaceDeclaration */: + case 200 /* FunctionDeclaration */: + case 209 /* ImportDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 214 /* ExportAssignment */: return false; - case 205: + case 205 /* ModuleDeclaration */: + // Only emit the leading/trailing comments for a module if we're actually + // emitting the module as well. return shouldEmitModuleDeclaration(node); - case 204: + case 204 /* EnumDeclaration */: + // Only emit the leading/trailing comments for an enum if we're actually + // emitting the module as well. return shouldEmitEnumDeclaration(node); } - if (node.kind !== 179 && + // If this is the expression body of an arrow function that we're down-leveling, + // then we don't want to emit comments when we emit the body. It will have already + // been taken care of when we emitted the 'return' statement for the function + // expression body. + if (node.kind !== 179 /* Block */ && node.parent && - node.parent.kind === 163 && + node.parent.kind === 163 /* ArrowFunction */ && node.parent.body === node && - compilerOptions.target <= 1) { + compilerOptions.target <= 1 /* ES5 */) { return false; } + // Emit comments for everything else. return true; } function emitJavaScriptWorker(node, allowGeneratedIdentifiers) { if (allowGeneratedIdentifiers === void 0) { allowGeneratedIdentifiers = true; } + // Check if the node can be emitted regardless of the ScriptTarget switch (node.kind) { - case 65: + case 65 /* Identifier */: return emitIdentifier(node, allowGeneratedIdentifiers); - case 129: + case 129 /* Parameter */: return emitParameter(node); - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return emitMethod(node); - case 136: - case 137: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: return emitAccessor(node); - case 93: + case 93 /* ThisKeyword */: return emitThis(node); - case 91: + case 91 /* SuperKeyword */: return emitSuper(node); - case 89: + case 89 /* NullKeyword */: return write("null"); - case 95: + case 95 /* TrueKeyword */: return write("true"); - case 80: + case 80 /* FalseKeyword */: return write("false"); - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: + case 7 /* NumericLiteral */: + case 8 /* StringLiteral */: + case 9 /* RegularExpressionLiteral */: + case 10 /* NoSubstitutionTemplateLiteral */: + case 11 /* TemplateHead */: + case 12 /* TemplateMiddle */: + case 13 /* TemplateTail */: return emitLiteral(node); - case 171: + case 171 /* TemplateExpression */: return emitTemplateExpression(node); - case 176: + case 176 /* TemplateSpan */: return emitTemplateSpan(node); - case 126: + case 126 /* QualifiedName */: return emitQualifiedName(node); - case 150: + case 150 /* ObjectBindingPattern */: return emitObjectBindingPattern(node); - case 151: + case 151 /* ArrayBindingPattern */: return emitArrayBindingPattern(node); - case 152: + case 152 /* BindingElement */: return emitBindingElement(node); - case 153: + case 153 /* ArrayLiteralExpression */: return emitArrayLiteral(node); - case 154: + case 154 /* ObjectLiteralExpression */: return emitObjectLiteral(node); - case 224: + case 224 /* PropertyAssignment */: return emitPropertyAssignment(node); - case 225: + case 225 /* ShorthandPropertyAssignment */: return emitShorthandPropertyAssignment(node); - case 127: + case 127 /* ComputedPropertyName */: return emitComputedPropertyName(node); - case 155: + case 155 /* PropertyAccessExpression */: return emitPropertyAccess(node); - case 156: + case 156 /* ElementAccessExpression */: return emitIndexedAccess(node); - case 157: + case 157 /* CallExpression */: return emitCallExpression(node); - case 158: + case 158 /* NewExpression */: return emitNewExpression(node); - case 159: + case 159 /* TaggedTemplateExpression */: return emitTaggedTemplateExpression(node); - case 160: + case 160 /* TypeAssertionExpression */: return emit(node.expression); - case 161: + case 161 /* ParenthesizedExpression */: return emitParenExpression(node); - case 200: - case 162: - case 163: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: return emitFunctionDeclaration(node); - case 164: + case 164 /* DeleteExpression */: return emitDeleteExpression(node); - case 165: + case 165 /* TypeOfExpression */: return emitTypeOfExpression(node); - case 166: + case 166 /* VoidExpression */: return emitVoidExpression(node); - case 167: + case 167 /* PrefixUnaryExpression */: return emitPrefixUnaryExpression(node); - case 168: + case 168 /* PostfixUnaryExpression */: return emitPostfixUnaryExpression(node); - case 169: + case 169 /* BinaryExpression */: return emitBinaryExpression(node); - case 170: + case 170 /* ConditionalExpression */: return emitConditionalExpression(node); - case 173: + case 173 /* SpreadElementExpression */: return emitSpreadElementExpression(node); - case 175: + case 175 /* OmittedExpression */: return; - case 179: - case 206: + case 179 /* Block */: + case 206 /* ModuleBlock */: return emitBlock(node); - case 180: + case 180 /* VariableStatement */: return emitVariableStatement(node); - case 181: + case 181 /* EmptyStatement */: return write(";"); - case 182: + case 182 /* ExpressionStatement */: return emitExpressionStatement(node); - case 183: + case 183 /* IfStatement */: return emitIfStatement(node); - case 184: + case 184 /* DoStatement */: return emitDoStatement(node); - case 185: + case 185 /* WhileStatement */: return emitWhileStatement(node); - case 186: + case 186 /* ForStatement */: return emitForStatement(node); - case 188: - case 187: + case 188 /* ForOfStatement */: + case 187 /* ForInStatement */: return emitForInOrForOfStatement(node); - case 189: - case 190: + case 189 /* ContinueStatement */: + case 190 /* BreakStatement */: return emitBreakOrContinueStatement(node); - case 191: + case 191 /* ReturnStatement */: return emitReturnStatement(node); - case 192: + case 192 /* WithStatement */: return emitWithStatement(node); - case 193: + case 193 /* SwitchStatement */: return emitSwitchStatement(node); - case 220: - case 221: + case 220 /* CaseClause */: + case 221 /* DefaultClause */: return emitCaseOrDefaultClause(node); - case 194: + case 194 /* LabeledStatement */: return emitLabelledStatement(node); - case 195: + case 195 /* ThrowStatement */: return emitThrowStatement(node); - case 196: + case 196 /* TryStatement */: return emitTryStatement(node); - case 223: + case 223 /* CatchClause */: return emitCatchClause(node); - case 197: + case 197 /* DebuggerStatement */: return emitDebuggerStatement(node); - case 198: + case 198 /* VariableDeclaration */: return emitVariableDeclaration(node); - case 174: + case 174 /* ClassExpression */: return emitClassExpression(node); - case 201: + case 201 /* ClassDeclaration */: return emitClassDeclaration(node); - case 202: + case 202 /* InterfaceDeclaration */: return emitInterfaceDeclaration(node); - case 204: + case 204 /* EnumDeclaration */: return emitEnumDeclaration(node); - case 226: + case 226 /* EnumMember */: return emitEnumMember(node); - case 205: + case 205 /* ModuleDeclaration */: return emitModuleDeclaration(node); - case 209: + case 209 /* ImportDeclaration */: return emitImportDeclaration(node); - case 208: + case 208 /* ImportEqualsDeclaration */: return emitImportEqualsDeclaration(node); - case 215: + case 215 /* ExportDeclaration */: return emitExportDeclaration(node); - case 214: + case 214 /* ExportAssignment */: return emitExportAssignment(node); - case 227: + case 227 /* SourceFile */: return emitSourceFileNode(node); } } @@ -24070,6 +28168,7 @@ var ts; return detachedCommentsInfo !== undefined && detachedCommentsInfo[detachedCommentsInfo.length - 1].nodePos === pos; } function getLeadingCommentsWithoutDetachedComments() { + // get the leading comments from detachedPos var leadingComments = ts.getLeadingCommentRanges(currentSourceFile.text, detachedCommentsInfo[detachedCommentsInfo.length - 1].detachedCommentEndPos); if (detachedCommentsInfo.length - 1) { detachedCommentsInfo.pop(); @@ -24080,6 +28179,8 @@ var ts; return leadingComments; } function filterComments(ranges, onlyPinnedOrTripleSlashComments) { + // If we're removing comments, then we want to strip out all but the pinned or + // triple slash comments. if (ranges && onlyPinnedOrTripleSlashComments) { ranges = ts.filter(ranges, isPinnedOrTripleSlashComment); if (ranges.length === 0) { @@ -24089,20 +28190,24 @@ var ts; return ranges; } function getLeadingCommentsToEmit(node) { + // Emit the leading comments only if the parent's pos doesn't match because parent should take care of emitting these comments if (node.parent) { - if (node.parent.kind === 227 || node.pos !== node.parent.pos) { + if (node.parent.kind === 227 /* SourceFile */ || node.pos !== node.parent.pos) { if (hasDetachedComments(node.pos)) { + // get comments without detached comments return getLeadingCommentsWithoutDetachedComments(); } else { + // get the leading comments from the node return ts.getLeadingCommentRangesOfNode(node, currentSourceFile); } } } } function getTrailingCommentsToEmit(node) { + // Emit the trailing comments only if the parent's pos doesn't match because parent should take care of emitting these comments if (node.parent) { - if (node.parent.kind === 227 || node.end !== node.parent.end) { + if (node.parent.kind === 227 /* SourceFile */ || node.end !== node.parent.end) { return ts.getTrailingCommentRanges(currentSourceFile.text, node.end); } } @@ -24114,24 +28219,32 @@ var ts; return emitLeadingCommentsWorker(node, compilerOptions.removeComments); } function emitLeadingCommentsWorker(node, onlyPinnedOrTripleSlashComments) { + // If the caller only wants pinned or triple slash comments, then always filter + // down to that set. Otherwise, filter based on the current compiler options. var leadingComments = filterComments(getLeadingCommentsToEmit(node), onlyPinnedOrTripleSlashComments); ts.emitNewLineBeforeLeadingComments(currentSourceFile, writer, node, leadingComments); + // Leading comments are emitted at /*leading comment1 */space/*leading comment*/space ts.emitComments(currentSourceFile, writer, leadingComments, true, newLine, writeComment); } function emitTrailingComments(node) { + // Emit the trailing comments only if the parent's end doesn't match var trailingComments = filterComments(getTrailingCommentsToEmit(node), compilerOptions.removeComments); + // trailing comments are emitted at space/*trailing comment1 */space/*trailing comment*/ ts.emitComments(currentSourceFile, writer, trailingComments, false, newLine, writeComment); } function emitLeadingCommentsOfPosition(pos) { var leadingComments; if (hasDetachedComments(pos)) { + // get comments without detached comments leadingComments = getLeadingCommentsWithoutDetachedComments(); } else { + // get the leading comments from the node leadingComments = ts.getLeadingCommentRanges(currentSourceFile.text, pos); } leadingComments = filterComments(leadingComments, compilerOptions.removeComments); ts.emitNewLineBeforeLeadingComments(currentSourceFile, writer, { pos: pos, end: pos }, leadingComments); + // Leading comments are emitted at /*leading comment1 */space/*leading comment*/space ts.emitComments(currentSourceFile, writer, leadingComments, true, newLine, writeComment); } function emitDetachedComments(node) { @@ -24144,6 +28257,9 @@ var ts; var lastCommentLine = ts.getLineOfLocalPosition(currentSourceFile, lastComment.end); var commentLine = ts.getLineOfLocalPosition(currentSourceFile, comment.pos); if (commentLine >= lastCommentLine + 2) { + // There was a blank line between the last comment and this comment. This + // comment is not part of the copyright comments. Return what we have so + // far. return detachedComments; } } @@ -24151,9 +28267,13 @@ var ts; lastComment = comment; }); if (detachedComments.length) { + // All comments look like they could have been part of the copyright header. Make + // sure there is at least one blank line between it and the node. If not, it's not + // a copyright header. var lastCommentLine = ts.getLineOfLocalPosition(currentSourceFile, detachedComments[detachedComments.length - 1].end); var nodeLine = ts.getLineOfLocalPosition(currentSourceFile, ts.skipTrivia(currentSourceFile.text, node.pos)); if (nodeLine >= lastCommentLine + 2) { + // Valid detachedComments ts.emitNewLineBeforeLeadingComments(currentSourceFile, writer, node, leadingComments); ts.emitComments(currentSourceFile, writer, detachedComments, true, newLine, writeComment); var currentDetachedCommentInfo = { nodePos: node.pos, detachedCommentEndPos: detachedComments[detachedComments.length - 1].end }; @@ -24168,12 +28288,12 @@ var ts; } } function isPinnedOrTripleSlashComment(comment) { - if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 42) { - return currentSourceFile.text.charCodeAt(comment.pos + 2) === 33; + if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 42 /* asterisk */) { + return currentSourceFile.text.charCodeAt(comment.pos + 2) === 33 /* exclamation */; } - else if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 47 && + else if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 47 /* slash */ && comment.pos + 2 < comment.end && - currentSourceFile.text.charCodeAt(comment.pos + 2) === 47 && + currentSourceFile.text.charCodeAt(comment.pos + 2) === 47 /* slash */ && currentSourceFile.text.substring(comment.pos, comment.end).match(ts.fullTripleSlashReferencePathRegEx)) { return true; } @@ -24192,10 +28312,11 @@ var ts; /// var ts; (function (ts) { - ts.programTime = 0; - ts.emitTime = 0; - ts.ioReadTime = 0; - ts.ioWriteTime = 0; + /* @internal */ ts.programTime = 0; + /* @internal */ ts.emitTime = 0; + /* @internal */ ts.ioReadTime = 0; + /* @internal */ ts.ioWriteTime = 0; + /** The version of the TypeScript compiler release */ ts.version = "1.5.0"; function findConfigFile(searchPath) { var fileName = "tsconfig.json"; @@ -24217,8 +28338,11 @@ var ts; var currentDirectory; var existingDirectories = {}; function getCanonicalFileName(fileName) { + // if underlying system can distinguish between two files whose names differs only in cases then file name already in canonical form. + // otherwise use toLowerCase as a canonical form. return ts.sys.useCaseSensitiveFileNames ? fileName : fileName.toLowerCase(); } + // returned by CScript sys environment var unsupportedFileEncodingErrorCode = -2147024809; function getSourceFile(fileName, languageVersion, onError) { var text; @@ -24364,9 +28488,14 @@ var ts; return noDiagnosticsTypeChecker || (noDiagnosticsTypeChecker = ts.createTypeChecker(program, false)); } function emit(sourceFile, writeFileCallback) { + // If the noEmitOnError flag is set, then check if we have any errors so far. If so, + // immediately bail out. if (options.noEmitOnError && getPreEmitDiagnostics(this).length > 0) { return { diagnostics: [], sourceMaps: undefined, emitSkipped: true }; } + // Create the emit resolver outside of the "emitTime" tracking code below. That way + // any cost associated with it (like type checking) are appropriate associated with + // the type-checking counter. var emitResolver = getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile); var start = new Date().getTime(); var emitResult = ts.emitFiles(emitResolver, getEmitHost(writeFileCallback), sourceFile); @@ -24410,6 +28539,7 @@ var ts; function getDeclarationDiagnosticsForFile(sourceFile) { if (!ts.isDeclarationFile(sourceFile)) { var resolver = getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile); + // Don't actually write any files since we're just getting diagnostics. var writeFile = function () { }; return ts.getDeclarationDiagnostics(getEmitHost(writeFile), resolver, sourceFile); } @@ -24464,9 +28594,11 @@ var ts; } } } + // Get source file from normalized fileName function findSourceFile(fileName, isDefaultLib, refFile, refStart, refLength) { var canonicalName = host.getCanonicalFileName(fileName); if (ts.hasProperty(filesByName, canonicalName)) { + // We've already looked for this file, use cached result return getSourceFileFromCache(fileName, canonicalName, false); } else { @@ -24475,6 +28607,7 @@ var ts; if (ts.hasProperty(filesByName, canonicalAbsolutePath)) { return getSourceFileFromCache(normalizedAbsolutePath, canonicalAbsolutePath, true); } + // We haven't looked for this file, do so now and cache result var file = filesByName[canonicalName] = host.getSourceFile(fileName, options.target, function (hostErrorMessage) { if (refFile) { diagnostics.add(ts.createFileDiagnostic(refFile, refStart, refLength, ts.Diagnostics.Cannot_read_file_0_Colon_1, fileName, hostErrorMessage)); @@ -24485,6 +28618,7 @@ var ts; }); if (file) { seenNoDefaultLib = seenNoDefaultLib || file.hasNoDefaultLib; + // Set the source file for normalized absolute path filesByName[canonicalAbsolutePath] = file; if (!options.noResolve) { var basePath = ts.getDirectoryPath(fileName); @@ -24519,9 +28653,9 @@ var ts; } function processImportedModules(file, basePath) { ts.forEach(file.statements, function (node) { - if (node.kind === 209 || node.kind === 208 || node.kind === 215) { + if (node.kind === 209 /* ImportDeclaration */ || node.kind === 208 /* ImportEqualsDeclaration */ || node.kind === 215 /* ExportDeclaration */) { var moduleNameExpr = ts.getExternalModuleName(node); - if (moduleNameExpr && moduleNameExpr.kind === 8) { + if (moduleNameExpr && moduleNameExpr.kind === 8 /* StringLiteral */) { var moduleNameText = moduleNameExpr.text; if (moduleNameText) { var searchPath = basePath; @@ -24539,13 +28673,21 @@ var ts; } } } - else if (node.kind === 205 && node.name.kind === 8 && (node.flags & 2 || ts.isDeclarationFile(file))) { + else if (node.kind === 205 /* ModuleDeclaration */ && node.name.kind === 8 /* StringLiteral */ && (node.flags & 2 /* Ambient */ || ts.isDeclarationFile(file))) { + // TypeScript 1.0 spec (April 2014): 12.1.6 + // An AmbientExternalModuleDeclaration declares an external module. + // This type of declaration is permitted only in the global module. + // The StringLiteral must specify a top - level external module name. + // Relative external module names are not permitted ts.forEachChild(node.body, function (node) { if (ts.isExternalModuleImportEqualsDeclaration(node) && - ts.getExternalModuleImportEqualsDeclarationExpression(node).kind === 8) { + ts.getExternalModuleImportEqualsDeclarationExpression(node).kind === 8 /* StringLiteral */) { var nameLiteral = ts.getExternalModuleImportEqualsDeclarationExpression(node); var moduleName = nameLiteral.text; if (moduleName) { + // TypeScript 1.0 spec (April 2014): 12.1.6 + // An ExternalImportDeclaration in anAmbientExternalModuleDeclaration may reference other external modules + // only through top - level external module names. Relative external module names are not permitted. var searchName = ts.normalizePath(ts.combinePaths(basePath, moduleName)); var tsFile = findModuleSourceFile(searchName + ".ts", nameLiteral); if (!tsFile) { @@ -24576,6 +28718,7 @@ var ts; } } if (!options.sourceMap && (options.mapRoot || options.sourceRoot)) { + // Error to specify --mapRoot or --sourceRoot without mapSourceFiles if (options.mapRoot) { diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_mapRoot_cannot_be_specified_without_specifying_sourcemap_option)); } @@ -24584,10 +28727,10 @@ var ts; } return; } - var languageVersion = options.target || 0; + var languageVersion = options.target || 0 /* ES3 */; var firstExternalModuleSourceFile = ts.forEach(files, function (f) { return ts.isExternalModule(f) ? f : undefined; }); if (options.separateCompilation) { - if (!options.module && languageVersion < 2) { + if (!options.module && languageVersion < 2 /* ES6 */) { diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_separateCompilation_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES6_or_higher)); } var firstNonExternalModuleSourceFile = ts.forEach(files, function (f) { return !ts.isExternalModule(f) && !ts.isDeclarationFile(f) ? f : undefined; }); @@ -24596,23 +28739,28 @@ var ts; diagnostics.add(ts.createFileDiagnostic(firstNonExternalModuleSourceFile, span.start, span.length, ts.Diagnostics.Cannot_compile_non_external_modules_when_the_separateCompilation_flag_is_provided)); } } - else if (firstExternalModuleSourceFile && languageVersion < 2 && !options.module) { + else if (firstExternalModuleSourceFile && languageVersion < 2 /* ES6 */ && !options.module) { + // We cannot use createDiagnosticFromNode because nodes do not have parents yet var span = ts.getErrorSpanForNode(firstExternalModuleSourceFile, firstExternalModuleSourceFile.externalModuleIndicator); diagnostics.add(ts.createFileDiagnostic(firstExternalModuleSourceFile, span.start, span.length, ts.Diagnostics.Cannot_compile_external_modules_unless_the_module_flag_is_provided)); } - if (options.module && languageVersion >= 2) { + // Cannot specify module gen target when in es6 or above + if (options.module && languageVersion >= 2 /* ES6 */) { diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Cannot_compile_external_modules_into_amd_or_commonjs_when_targeting_es6_or_higher)); } + // there has to be common source directory if user specified --outdir || --sourceRoot + // if user specified --mapRoot, there needs to be common source directory if there would be multiple files being emitted if (options.outDir || options.sourceRoot || (options.mapRoot && (!options.out || firstExternalModuleSourceFile !== undefined))) { var commonPathComponents; ts.forEach(files, function (sourceFile) { - if (!(sourceFile.flags & 2048) + // Each file contributes into common source file path + if (!(sourceFile.flags & 2048 /* DeclarationFile */) && !ts.fileExtensionIs(sourceFile.fileName, ".js")) { var sourcePathComponents = ts.getNormalizedPathComponents(sourceFile.fileName, host.getCurrentDirectory()); - sourcePathComponents.pop(); + sourcePathComponents.pop(); // FileName is not part of directory if (commonPathComponents) { for (var i = 0; i < Math.min(commonPathComponents.length, sourcePathComponents.length); i++) { if (commonPathComponents[i] !== sourcePathComponents[i]) { @@ -24620,21 +28768,27 @@ var ts; diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files)); return; } + // New common path found that is 0 -> i-1 commonPathComponents.length = i; break; } } + // If the fileComponent path completely matched and less than already found update the length if (sourcePathComponents.length < commonPathComponents.length) { commonPathComponents.length = sourcePathComponents.length; } } else { + // first file commonPathComponents = sourcePathComponents; } } }); commonSourceDirectory = ts.getNormalizedPathFromPathComponents(commonPathComponents); if (commonSourceDirectory) { + // Make sure directory path ends with directory separator so this string can directly + // used to replace with "" to get the relative path of the source file and the relative path doesn't + // start with / making it rooted path commonSourceDirectory += ts.directorySeparator; } } @@ -24656,6 +28810,7 @@ var ts; /// var ts; (function (ts) { + /* @internal */ ts.optionDeclarations = [ { name: "charset", @@ -24700,8 +28855,8 @@ var ts; name: "module", shortName: "m", type: { - "commonjs": 1, - "amd": 2 + "commonjs": 1 /* CommonJS */, + "amd": 2 /* AMD */ }, description: ts.Diagnostics.Specify_module_code_generation_Colon_commonjs_or_amd, paramType: ts.Diagnostics.KIND, @@ -24791,7 +28946,7 @@ var ts; { name: "target", shortName: "t", - type: { "es3": 0, "es5": 1, "es6": 2 }, + type: { "es3": 0 /* ES3 */, "es5": 1 /* ES5 */, "es6": 2 /* ES6 */ }, description: ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES6_experimental, paramType: ts.Diagnostics.VERSION, error: ts.Diagnostics.Argument_for_target_option_must_be_es3_es5_or_es6 @@ -24807,6 +28962,11 @@ var ts; shortName: "w", type: "boolean", description: ts.Diagnostics.Watch_input_files + }, + { + name: "emitDecoratorMetadata", + type: "boolean", + experimental: true } ]; function parseCommandLine(commandLine) { @@ -24831,16 +28991,18 @@ var ts; var i = 0; while (i < args.length) { var s = args[i++]; - if (s.charCodeAt(0) === 64) { + if (s.charCodeAt(0) === 64 /* at */) { parseResponseFile(s.slice(1)); } - else if (s.charCodeAt(0) === 45) { - s = s.slice(s.charCodeAt(1) === 45 ? 2 : 1).toLowerCase(); + else if (s.charCodeAt(0) === 45 /* minus */) { + s = s.slice(s.charCodeAt(1) === 45 /* minus */ ? 2 : 1).toLowerCase(); + // Try to translate short option names to their full equivalents. if (ts.hasProperty(shortOptionNames, s)) { s = shortOptionNames[s]; } if (ts.hasProperty(optionNameMap, s)) { var opt = optionNameMap[s]; + // Check to see if no argument was provided (e.g. "--locale" is the last command-line argument). if (!args[i] && opt.type !== "boolean") { errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Compiler_option_0_expects_an_argument, opt.name)); } @@ -24854,6 +29016,7 @@ var ts; case "string": options[opt.name] = args[i++] || ""; break; + // If not a primitive, the possible types are specified in what is effectively a map of options. default: var map = opt.type; var key = (args[i++] || "").toLowerCase(); @@ -24883,14 +29046,14 @@ var ts; var args = []; var pos = 0; while (true) { - while (pos < text.length && text.charCodeAt(pos) <= 32) + while (pos < text.length && text.charCodeAt(pos) <= 32 /* space */) pos++; if (pos >= text.length) break; var start = pos; - if (text.charCodeAt(start) === 34) { + if (text.charCodeAt(start) === 34 /* doubleQuote */) { pos++; - while (pos < text.length && text.charCodeAt(pos) !== 34) + while (pos < text.length && text.charCodeAt(pos) !== 34 /* doubleQuote */) pos++; if (pos < text.length) { args.push(text.substring(start + 1, pos)); @@ -24901,7 +29064,7 @@ var ts; } } else { - while (text.charCodeAt(pos) > 32) + while (text.charCodeAt(pos) > 32 /* space */) pos++; args.push(text.substring(start, pos)); } @@ -24910,6 +29073,10 @@ var ts; } } ts.parseCommandLine = parseCommandLine; + /** + * Read tsconfig.json file + * @param fileName The path to the config file + */ function readConfigFile(fileName) { try { var text = ts.sys.readFile(fileName); @@ -24919,6 +29086,12 @@ var ts; } } ts.readConfigFile = readConfigFile; + /** + * Parse the contents of a config file (tsconfig.json). + * @param json The contents of the config file to parse + * @param basePath A root directory to resolve relative path entries in the config + * file to. e.g. outDir + */ function parseConfigFile(json, basePath) { var errors = []; return { @@ -24988,20 +29161,7 @@ var ts; } ts.parseConfigFile = parseConfigFile; })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* @internal */ var ts; (function (ts) { var OutliningElementsCollector; @@ -25020,8 +29180,60 @@ var ts; elements.push(span); } } + function addOutliningSpanComments(commentSpan, autoCollapse) { + if (commentSpan) { + var span = { + textSpan: ts.createTextSpanFromBounds(commentSpan.pos, commentSpan.end), + hintSpan: ts.createTextSpanFromBounds(commentSpan.pos, commentSpan.end), + bannerText: collapseText, + autoCollapse: autoCollapse + }; + elements.push(span); + } + } + function addOutliningForLeadingCommentsForNode(n) { + var comments = ts.getLeadingCommentRangesOfNode(n, sourceFile); + if (comments) { + var firstSingleLineCommentStart = -1; + var lastSingleLineCommentEnd = -1; + var isFirstSingleLineComment = true; + var singleLineCommentCount = 0; + for (var _i = 0; _i < comments.length; _i++) { + var currentComment = comments[_i]; + // For single line comments, combine consecutive ones (2 or more) into + // a single span from the start of the first till the end of the last + if (currentComment.kind === 2 /* SingleLineCommentTrivia */) { + if (isFirstSingleLineComment) { + firstSingleLineCommentStart = currentComment.pos; + } + isFirstSingleLineComment = false; + lastSingleLineCommentEnd = currentComment.end; + singleLineCommentCount++; + } + else if (currentComment.kind === 3 /* MultiLineCommentTrivia */) { + combineAndAddMultipleSingleLineComments(singleLineCommentCount, firstSingleLineCommentStart, lastSingleLineCommentEnd); + addOutliningSpanComments(currentComment, false); + singleLineCommentCount = 0; + lastSingleLineCommentEnd = -1; + isFirstSingleLineComment = true; + } + } + combineAndAddMultipleSingleLineComments(singleLineCommentCount, firstSingleLineCommentStart, lastSingleLineCommentEnd); + } + } + function combineAndAddMultipleSingleLineComments(count, start, end) { + // Only outline spans of two or more consecutive single line comments + if (count > 1) { + var multipleSingleLineComments = { + pos: start, + end: end, + kind: 2 /* SingleLineCommentTrivia */ + }; + addOutliningSpanComments(multipleSingleLineComments, false); + } + } function autoCollapse(node) { - return ts.isFunctionBlock(node) && node.parent.kind !== 163; + return ts.isFunctionBlock(node) && node.parent.kind !== 163 /* ArrowFunction */; } var depth = 0; var maxDepth = 20; @@ -25029,37 +29241,46 @@ var ts; if (depth > maxDepth) { return; } + if (ts.isDeclaration(n)) { + addOutliningForLeadingCommentsForNode(n); + } switch (n.kind) { - case 179: + case 179 /* Block */: if (!ts.isFunctionBlock(n)) { - var parent_6 = n.parent; - var openBrace = ts.findChildOfKind(n, 14, sourceFile); - var closeBrace = ts.findChildOfKind(n, 15, sourceFile); - if (parent_6.kind === 184 || - parent_6.kind === 187 || - parent_6.kind === 188 || - parent_6.kind === 186 || - parent_6.kind === 183 || - parent_6.kind === 185 || - parent_6.kind === 192 || - parent_6.kind === 223) { - addOutliningSpan(parent_6, openBrace, closeBrace, autoCollapse(n)); + var parent_7 = n.parent; + var openBrace = ts.findChildOfKind(n, 14 /* OpenBraceToken */, sourceFile); + var closeBrace = ts.findChildOfKind(n, 15 /* CloseBraceToken */, sourceFile); + // Check if the block is standalone, or 'attached' to some parent statement. + // If the latter, we want to collaps the block, but consider its hint span + // to be the entire span of the parent. + if (parent_7.kind === 184 /* DoStatement */ || + parent_7.kind === 187 /* ForInStatement */ || + parent_7.kind === 188 /* ForOfStatement */ || + parent_7.kind === 186 /* ForStatement */ || + parent_7.kind === 183 /* IfStatement */ || + parent_7.kind === 185 /* WhileStatement */ || + parent_7.kind === 192 /* WithStatement */ || + parent_7.kind === 223 /* CatchClause */) { + addOutliningSpan(parent_7, openBrace, closeBrace, autoCollapse(n)); break; } - if (parent_6.kind === 196) { - var tryStatement = parent_6; + if (parent_7.kind === 196 /* TryStatement */) { + // Could be the try-block, or the finally-block. + var tryStatement = parent_7; if (tryStatement.tryBlock === n) { - addOutliningSpan(parent_6, openBrace, closeBrace, autoCollapse(n)); + addOutliningSpan(parent_7, openBrace, closeBrace, autoCollapse(n)); break; } else if (tryStatement.finallyBlock === n) { - var finallyKeyword = ts.findChildOfKind(tryStatement, 81, sourceFile); + var finallyKeyword = ts.findChildOfKind(tryStatement, 81 /* FinallyKeyword */, sourceFile); if (finallyKeyword) { addOutliningSpan(finallyKeyword, openBrace, closeBrace, autoCollapse(n)); break; } } } + // Block was a standalone block. In this case we want to only collapse + // the span of the block, independent of any parent span. var span = ts.createTextSpanFromBounds(n.getStart(), n.end); elements.push({ textSpan: span, @@ -25069,25 +29290,26 @@ var ts; }); break; } - case 206: { - var openBrace = ts.findChildOfKind(n, 14, sourceFile); - var closeBrace = ts.findChildOfKind(n, 15, sourceFile); + // Fallthrough. + case 206 /* ModuleBlock */: { + var openBrace = ts.findChildOfKind(n, 14 /* OpenBraceToken */, sourceFile); + var closeBrace = ts.findChildOfKind(n, 15 /* CloseBraceToken */, sourceFile); addOutliningSpan(n.parent, openBrace, closeBrace, autoCollapse(n)); break; } - case 201: - case 202: - case 204: - case 154: - case 207: { - var openBrace = ts.findChildOfKind(n, 14, sourceFile); - var closeBrace = ts.findChildOfKind(n, 15, sourceFile); + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: + case 154 /* ObjectLiteralExpression */: + case 207 /* CaseBlock */: { + var openBrace = ts.findChildOfKind(n, 14 /* OpenBraceToken */, sourceFile); + var closeBrace = ts.findChildOfKind(n, 15 /* CloseBraceToken */, sourceFile); addOutliningSpan(n, openBrace, closeBrace, autoCollapse(n)); break; } - case 153: - var openBracket = ts.findChildOfKind(n, 18, sourceFile); - var closeBracket = ts.findChildOfKind(n, 19, sourceFile); + case 153 /* ArrayLiteralExpression */: + var openBracket = ts.findChildOfKind(n, 18 /* OpenBracketToken */, sourceFile); + var closeBracket = ts.findChildOfKind(n, 19 /* CloseBracketToken */, sourceFile); addOutliningSpan(n, openBracket, closeBracket, autoCollapse(n)); break; } @@ -25101,6 +29323,7 @@ var ts; OutliningElementsCollector.collectElements = collectElements; })(OutliningElementsCollector = ts.OutliningElementsCollector || (ts.OutliningElementsCollector = {})); })(ts || (ts = {})); +/* @internal */ var ts; (function (ts) { var NavigateTo; @@ -25108,6 +29331,7 @@ var ts; function getNavigateToItems(program, cancellationToken, searchValue, maxResultCount) { var patternMatcher = ts.createPatternMatcher(searchValue); var rawItems = []; + // Search the declarations in all files and output matched NavigateToItem into array of NavigateToItem[] ts.forEach(program.getSourceFiles(), function (sourceFile) { cancellationToken.throwIfCancellationRequested(); var declarations = sourceFile.getNamedDeclarations(); @@ -25115,10 +29339,14 @@ var ts; var declaration = declarations[_i]; var name = getDeclarationName(declaration); if (name !== undefined) { + // First do a quick check to see if the name of the declaration matches the + // last portion of the (possibly) dotted name they're searching for. var matches = patternMatcher.getMatchesForLastSegmentOfPattern(name); if (!matches) { continue; } + // It was a match! If the pattern has dots in it, then also see if the + // declaration container matches as well. if (patternMatcher.patternContainsDots) { var containers = getContainers(declaration); if (!containers) { @@ -25143,6 +29371,7 @@ var ts; return items; function allMatchesAreCaseSensitive(matches) { ts.Debug.assert(matches.length > 0); + // This is a case sensitive match, only if all the submatches were case sensitive. for (var _i = 0; _i < matches.length; _i++) { var match = matches[_i]; if (!match.isCaseSensitive) { @@ -25156,9 +29385,9 @@ var ts; if (result !== undefined) { return result; } - if (declaration.name.kind === 127) { + if (declaration.name.kind === 127 /* ComputedPropertyName */) { var expr = declaration.name.expression; - if (expr.kind === 155) { + if (expr.kind === 155 /* PropertyAccessExpression */) { return expr.name.text; } return getTextOfIdentifierOrLiteral(expr); @@ -25166,9 +29395,9 @@ var ts; return undefined; } function getTextOfIdentifierOrLiteral(node) { - if (node.kind === 65 || - node.kind === 8 || - node.kind === 7) { + if (node.kind === 65 /* Identifier */ || + node.kind === 8 /* StringLiteral */ || + node.kind === 7 /* NumericLiteral */) { return node.text; } return undefined; @@ -25179,15 +29408,19 @@ var ts; if (text !== undefined) { containers.unshift(text); } - else if (declaration.name.kind === 127) { + else if (declaration.name.kind === 127 /* ComputedPropertyName */) { return tryAddComputedPropertyName(declaration.name.expression, containers, true); } else { + // Don't know how to add this. return false; } } return true; } + // Only added the names of computed properties if they're simple dotted expressions, like: + // + // [X.Y.Z]() { } function tryAddComputedPropertyName(expression, containers, includeLastPortion) { var text = getTextOfIdentifierOrLiteral(expression); if (text !== undefined) { @@ -25196,7 +29429,7 @@ var ts; } return true; } - if (expression.kind === 155) { + if (expression.kind === 155 /* PropertyAccessExpression */) { var propertyAccess = expression; if (includeLastPortion) { containers.unshift(propertyAccess.name.text); @@ -25207,11 +29440,14 @@ var ts; } function getContainers(declaration) { var containers = []; - if (declaration.name.kind === 127) { + // First, if we started with a computed property name, then add all but the last + // portion into the container array. + if (declaration.name.kind === 127 /* ComputedPropertyName */) { if (!tryAddComputedPropertyName(declaration.name.expression, containers, false)) { return undefined; } } + // Now, walk up our containers, adding all their names to the container array. declaration = ts.getContainerNode(declaration); while (declaration) { if (!tryAddSingleDeclarationName(declaration, containers)) { @@ -25233,8 +29469,13 @@ var ts; } return bestMatchKind; } + // This means "compare in a case insensitive manner." var baseSensitivity = { sensitivity: "base" }; function compareNavigateToItems(i1, i2) { + // TODO(cyrusn): get the gamut of comparisons that VS already uses here. + // Right now we just sort by kind first, and then by name of the item. + // We first sort case insensitively. So "Aaa" will come before "bar". + // Then we sort case sensitively, so "aaa" will come before "Aaa". return i1.matchKind - i2.matchKind || i1.name.localeCompare(i2.name, undefined, baseSensitivity) || i1.name.localeCompare(i2.name); @@ -25250,6 +29491,7 @@ var ts; isCaseSensitive: rawItem.isCaseSensitive, fileName: rawItem.fileName, textSpan: ts.createTextSpanFromBounds(declaration.getStart(), declaration.getEnd()), + // TODO(jfreeman): What should be the containerName when the container has a computed name? containerName: container && container.name ? container.name.text : "", containerKind: container && container.name ? ts.getNodeKind(container) : "" }; @@ -25259,26 +29501,34 @@ var ts; })(NavigateTo = ts.NavigateTo || (ts.NavigateTo = {})); })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { var NavigationBar; (function (NavigationBar) { function getNavigationBarItems(sourceFile) { + // If the source file has any child items, then it included in the tree + // and takes lexical ownership of all other top-level items. var hasGlobalNode = false; return getItemsWorker(getTopLevelNodes(sourceFile), createTopLevelItem); function getIndent(node) { + // If we have a global node in the tree, + // then it adds an extra layer of depth to all subnodes. var indent = hasGlobalNode ? 1 : 0; var current = node.parent; while (current) { switch (current.kind) { - case 205: + case 205 /* ModuleDeclaration */: + // If we have a module declared as A.B.C, it is more "intuitive" + // to say it only has a single layer of depth do { current = current.parent; - } while (current.kind === 205); - case 201: - case 204: - case 202: - case 200: + } while (current.kind === 205 /* ModuleDeclaration */); + // fall through + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + case 202 /* InterfaceDeclaration */: + case 200 /* FunctionDeclaration */: indent++; } current = current.parent; @@ -25289,26 +29539,33 @@ var ts; var childNodes = []; function visit(node) { switch (node.kind) { - case 180: + case 180 /* VariableStatement */: ts.forEach(node.declarationList.declarations, visit); break; - case 150: - case 151: + case 150 /* ObjectBindingPattern */: + case 151 /* ArrayBindingPattern */: ts.forEach(node.elements, visit); break; - case 215: + case 215 /* ExportDeclaration */: + // Handle named exports case e.g.: + // export {a, b as B} from "mod"; if (node.exportClause) { ts.forEach(node.exportClause.elements, visit); } break; - case 209: + case 209 /* ImportDeclaration */: var importClause = node.importClause; if (importClause) { + // Handle default import case e.g.: + // import d from "mod"; if (importClause.name) { childNodes.push(importClause); } + // Handle named bindings in imports e.g.: + // import * as NS from "mod"; + // import {a, b as B} from "mod"; if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 211) { + if (importClause.namedBindings.kind === 211 /* NamespaceImport */) { childNodes.push(importClause.namedBindings); } else { @@ -25317,24 +29574,38 @@ var ts; } } break; - case 152: - case 198: + case 152 /* BindingElement */: + case 198 /* VariableDeclaration */: if (ts.isBindingPattern(node.name)) { visit(node.name); break; } - case 201: - case 204: - case 202: - case 205: - case 200: - case 208: - case 213: - case 217: + // Fall through + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + case 202 /* InterfaceDeclaration */: + case 205 /* ModuleDeclaration */: + case 200 /* FunctionDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 213 /* ImportSpecifier */: + case 217 /* ExportSpecifier */: childNodes.push(node); break; } } + //for (let i = 0, n = nodes.length; i < n; i++) { + // let node = nodes[i]; + // if (node.kind === SyntaxKind.ClassDeclaration || + // node.kind === SyntaxKind.EnumDeclaration || + // node.kind === SyntaxKind.InterfaceDeclaration || + // node.kind === SyntaxKind.ModuleDeclaration || + // node.kind === SyntaxKind.FunctionDeclaration) { + // childNodes.push(node); + // } + // else if (node.kind === SyntaxKind.VariableStatement) { + // childNodes.push.apply(childNodes, (node).declarations); + // } + //} ts.forEach(nodes, visit); return sortNodes(childNodes); } @@ -25365,17 +29636,17 @@ var ts; for (var _i = 0; _i < nodes.length; _i++) { var node = nodes[_i]; switch (node.kind) { - case 201: - case 204: - case 202: + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + case 202 /* InterfaceDeclaration */: topLevelNodes.push(node); break; - case 205: + case 205 /* ModuleDeclaration */: var moduleDeclaration = node; topLevelNodes.push(node); addTopLevelNodes(getInnermostModule(moduleDeclaration).body.statements, topLevelNodes); break; - case 200: + case 200 /* FunctionDeclaration */: var functionDeclaration = node; if (isTopLevelFunctionDeclaration(functionDeclaration)) { topLevelNodes.push(node); @@ -25386,11 +29657,16 @@ var ts; } } function isTopLevelFunctionDeclaration(functionDeclaration) { - if (functionDeclaration.kind === 200) { - if (functionDeclaration.body && functionDeclaration.body.kind === 179) { - if (ts.forEach(functionDeclaration.body.statements, function (s) { return s.kind === 200 && !isEmpty(s.name.text); })) { + if (functionDeclaration.kind === 200 /* FunctionDeclaration */) { + // A function declaration is 'top level' if it contains any function declarations + // within it. + if (functionDeclaration.body && functionDeclaration.body.kind === 179 /* Block */) { + // Proper function declarations can only have identifier names + if (ts.forEach(functionDeclaration.body.statements, function (s) { return s.kind === 200 /* FunctionDeclaration */ && !isEmpty(s.name.text); })) { return true; } + // Or if it is not parented by another function. i.e all functions + // at module scope are 'top level'. if (!ts.isFunctionBlock(functionDeclaration.parent)) { return true; } @@ -25409,6 +29685,7 @@ var ts; var key = item_3.text + "-" + item_3.kind + "-" + item_3.indent; var itemWithSameName = keyToItem[key]; if (itemWithSameName) { + // We had an item with the same name. Merge these items together. merge(itemWithSameName, item_3); } else { @@ -25421,62 +29698,68 @@ var ts; return items; } function merge(target, source) { + // First, add any spans in the source to the target. target.spans.push.apply(target.spans, source.spans); if (source.childItems) { if (!target.childItems) { target.childItems = []; } + // Next, recursively merge or add any children in the source as appropriate. outer: for (var _i = 0, _a = source.childItems; _i < _a.length; _i++) { var sourceChild = _a[_i]; for (var _b = 0, _c = target.childItems; _b < _c.length; _b++) { var targetChild = _c[_b]; if (targetChild.text === sourceChild.text && targetChild.kind === sourceChild.kind) { + // Found a match. merge them. merge(targetChild, sourceChild); continue outer; } } + // Didn't find a match, just add this child to the list. target.childItems.push(sourceChild); } } } function createChildItem(node) { switch (node.kind) { - case 129: + case 129 /* Parameter */: if (ts.isBindingPattern(node.name)) { break; } - if ((node.flags & 499) === 0) { + if ((node.flags & 499 /* Modifier */) === 0) { return undefined; } return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.memberVariableElement); - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.memberFunctionElement); - case 136: + case 136 /* GetAccessor */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.memberGetAccessorElement); - case 137: + case 137 /* SetAccessor */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.memberSetAccessorElement); - case 140: + case 140 /* IndexSignature */: return createItem(node, "[]", ts.ScriptElementKind.indexSignatureElement); - case 226: + case 226 /* EnumMember */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.memberVariableElement); - case 138: + case 138 /* CallSignature */: return createItem(node, "()", ts.ScriptElementKind.callSignatureElement); - case 139: + case 139 /* ConstructSignature */: return createItem(node, "new()", ts.ScriptElementKind.constructSignatureElement); - case 132: - case 131: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.memberVariableElement); - case 200: + case 200 /* FunctionDeclaration */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.functionElement); - case 198: - case 152: + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: var variableDeclarationNode; - var name_18; - if (node.kind === 152) { - name_18 = node.name; + var name_19; + if (node.kind === 152 /* BindingElement */) { + name_19 = node.name; variableDeclarationNode = node; - while (variableDeclarationNode && variableDeclarationNode.kind !== 198) { + // binding elements are added only for variable declarations + // bubble up to the containing variable declaration + while (variableDeclarationNode && variableDeclarationNode.kind !== 198 /* VariableDeclaration */) { variableDeclarationNode = variableDeclarationNode.parent; } ts.Debug.assert(variableDeclarationNode !== undefined); @@ -25484,24 +29767,24 @@ var ts; else { ts.Debug.assert(!ts.isBindingPattern(node.name)); variableDeclarationNode = node; - name_18 = node.name; + name_19 = node.name; } if (ts.isConst(variableDeclarationNode)) { - return createItem(node, getTextOfNode(name_18), ts.ScriptElementKind.constElement); + return createItem(node, getTextOfNode(name_19), ts.ScriptElementKind.constElement); } else if (ts.isLet(variableDeclarationNode)) { - return createItem(node, getTextOfNode(name_18), ts.ScriptElementKind.letElement); + return createItem(node, getTextOfNode(name_19), ts.ScriptElementKind.letElement); } else { - return createItem(node, getTextOfNode(name_18), ts.ScriptElementKind.variableElement); + return createItem(node, getTextOfNode(name_19), ts.ScriptElementKind.variableElement); } - case 135: + case 135 /* Constructor */: return createItem(node, "constructor", ts.ScriptElementKind.constructorImplementationElement); - case 217: - case 213: - case 208: - case 210: - case 211: + case 217 /* ExportSpecifier */: + case 213 /* ImportSpecifier */: + case 208 /* ImportEqualsDeclaration */: + case 210 /* ImportClause */: + case 211 /* NamespaceImport */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.alias); } return undefined; @@ -25531,27 +29814,29 @@ var ts; } function createTopLevelItem(node) { switch (node.kind) { - case 227: + case 227 /* SourceFile */: return createSourceFileItem(node); - case 201: + case 201 /* ClassDeclaration */: return createClassItem(node); - case 204: + case 204 /* EnumDeclaration */: return createEnumItem(node); - case 202: + case 202 /* InterfaceDeclaration */: return createIterfaceItem(node); - case 205: + case 205 /* ModuleDeclaration */: return createModuleItem(node); - case 200: + case 200 /* FunctionDeclaration */: return createFunctionItem(node); } return undefined; function getModuleName(moduleDeclaration) { - if (moduleDeclaration.name.kind === 8) { + // We want to maintain quotation marks. + if (moduleDeclaration.name.kind === 8 /* StringLiteral */) { return getTextOfNode(moduleDeclaration.name); } + // Otherwise, we need to aggregate each identifier to build up the qualified name. var result = []; result.push(moduleDeclaration.name.text); - while (moduleDeclaration.body && moduleDeclaration.body.kind === 205) { + while (moduleDeclaration.body && moduleDeclaration.body.kind === 205 /* ModuleDeclaration */) { moduleDeclaration = moduleDeclaration.body; result.push(moduleDeclaration.name.text); } @@ -25563,9 +29848,9 @@ var ts; return getNavigationBarItem(moduleName, ts.ScriptElementKind.moduleElement, ts.getNodeModifiers(node), [getNodeSpan(node)], childItems, getIndent(node)); } function createFunctionItem(node) { - if ((node.name || node.flags & 256) && node.body && node.body.kind === 179) { + if (node.body && node.body.kind === 179 /* Block */) { var childItems = getItemsWorker(sortNodes(node.body.statements), createChildItem); - return getNavigationBarItem((!node.name && node.flags & 256) ? "default" : node.name.text, ts.ScriptElementKind.functionElement, ts.getNodeModifiers(node), [getNodeSpan(node)], childItems, getIndent(node)); + return getNavigationBarItem(!node.name ? "default" : node.name.text, ts.ScriptElementKind.functionElement, ts.getNodeModifiers(node), [getNodeSpan(node)], childItems, getIndent(node)); } return undefined; } @@ -25584,15 +29869,18 @@ var ts; var childItems; if (node.members) { var constructor = ts.forEach(node.members, function (member) { - return member.kind === 135 && member; + return member.kind === 135 /* Constructor */ && member; }); + // Add the constructor parameters in as children of the class (for property parameters). + // Note that *all non-binding pattern named* parameters will be added to the nodes array, but parameters that + // are not properties will be filtered out later by createChildItem. var nodes = removeDynamicallyNamedProperties(node); if (constructor) { nodes.push.apply(nodes, ts.filter(constructor.parameters, function (p) { return !ts.isBindingPattern(p.name); })); } childItems = getItemsWorker(sortNodes(nodes), createChildItem); } - var nodeName = !node.name && (node.flags & 256) ? "default" : node.name.text; + var nodeName = !node.name ? "default" : node.name.text; return getNavigationBarItem(nodeName, ts.ScriptElementKind.classElement, ts.getNodeModifiers(node), [getNodeSpan(node)], childItems, getIndent(node)); } function createEnumItem(node) { @@ -25605,19 +29893,22 @@ var ts; } } function removeComputedProperties(node) { - return ts.filter(node.members, function (member) { return member.name === undefined || member.name.kind !== 127; }); + return ts.filter(node.members, function (member) { return member.name === undefined || member.name.kind !== 127 /* ComputedPropertyName */; }); } + /** + * Like removeComputedProperties, but retains the properties with well known symbol names + */ function removeDynamicallyNamedProperties(node) { return ts.filter(node.members, function (member) { return !ts.hasDynamicName(member); }); } function getInnermostModule(node) { - while (node.body.kind === 205) { + while (node.body.kind === 205 /* ModuleDeclaration */) { node = node.body; } return node; } function getNodeSpan(node) { - return node.kind === 227 + return node.kind === 227 /* SourceFile */ ? ts.createTextSpanFromBounds(node.getFullStart(), node.getEnd()) : ts.createTextSpanFromBounds(node.getStart(), node.getEnd()); } @@ -25628,8 +29919,10 @@ var ts; NavigationBar.getNavigationBarItems = getNavigationBarItems; })(NavigationBar = ts.NavigationBar || (ts.NavigationBar = {})); })(ts || (ts = {})); +/* @internal */ var ts; (function (ts) { + // Note(cyrusn): this enum is ordered from strongest match type to weakest match type. (function (PatternMatchKind) { PatternMatchKind[PatternMatchKind["exact"] = 0] = "exact"; PatternMatchKind[PatternMatchKind["prefix"] = 1] = "prefix"; @@ -25646,6 +29939,10 @@ var ts; }; } function createPatternMatcher(pattern) { + // We'll often see the same candidate string many times when searching (For example, when + // we see the name of a module that is used everywhere, or the name of an overload). As + // such, we cache the information we compute about the candidate for the life of this + // pattern matcher so we don't have to compute it multiple times. var stringToWordSpans = {}; pattern = pattern.trim(); var fullPatternSegment = createSegment(pattern); @@ -25656,6 +29953,7 @@ var ts; getMatchesForLastSegmentOfPattern: getMatchesForLastSegmentOfPattern, patternContainsDots: dotSeparatedSegments.length > 1 }; + // Quick checks so we can bail out when asked to match a candidate. function skipMatch(candidate) { return invalidPattern || !candidate; } @@ -25669,24 +29967,36 @@ var ts; if (skipMatch(candidate)) { return undefined; } + // First, check that the last part of the dot separated pattern matches the name of the + // candidate. If not, then there's no point in proceeding and doing the more + // expensive work. var candidateMatch = matchSegment(candidate, ts.lastOrUndefined(dotSeparatedSegments)); if (!candidateMatch) { return undefined; } candidateContainers = candidateContainers || []; + // -1 because the last part was checked against the name, and only the rest + // of the parts are checked against the container. if (dotSeparatedSegments.length - 1 > candidateContainers.length) { + // There weren't enough container parts to match against the pattern parts. + // So this definitely doesn't match. return undefined; } + // So far so good. Now break up the container for the candidate and check if all + // the dotted parts match up correctly. var totalMatch = candidateMatch; for (var i = dotSeparatedSegments.length - 2, j = candidateContainers.length - 1; i >= 0; i--, j--) { var segment = dotSeparatedSegments[i]; var containerName = candidateContainers[j]; var containerMatch = matchSegment(containerName, segment); if (!containerMatch) { + // This container didn't match the pattern piece. So there's no match at all. return undefined; } ts.addRange(totalMatch, containerMatch); } + // Success, this symbol's full name matched against the dotted name the user was asking + // about. return totalMatch; } function getWordSpans(word) { @@ -25699,30 +30009,46 @@ var ts; var index = indexOfIgnoringCase(candidate, chunk.textLowerCase); if (index === 0) { if (chunk.text.length === candidate.length) { + // a) Check if the part matches the candidate entirely, in an case insensitive or + // sensitive manner. If it does, return that there was an exact match. return createPatternMatch(PatternMatchKind.exact, punctuationStripped, candidate === chunk.text); } else { + // b) Check if the part is a prefix of the candidate, in a case insensitive or sensitive + // manner. If it does, return that there was a prefix match. return createPatternMatch(PatternMatchKind.prefix, punctuationStripped, startsWith(candidate, chunk.text)); } } var isLowercase = chunk.isLowerCase; if (isLowercase) { if (index > 0) { + // c) If the part is entirely lowercase, then check if it is contained anywhere in the + // candidate in a case insensitive manner. If so, return that there was a substring + // match. + // + // Note: We only have a substring match if the lowercase part is prefix match of some + // word part. That way we don't match something like 'Class' when the user types 'a'. + // But we would match 'FooAttribute' (since 'Attribute' starts with 'a'). var wordSpans = getWordSpans(candidate); for (var _i = 0; _i < wordSpans.length; _i++) { var span = wordSpans[_i]; if (partStartsWith(candidate, span, chunk.text, true)) { - return createPatternMatch(PatternMatchKind.substring, punctuationStripped, partStartsWith(candidate, span, chunk.text, false)); + return createPatternMatch(PatternMatchKind.substring, punctuationStripped, + /*isCaseSensitive:*/ partStartsWith(candidate, span, chunk.text, false)); } } } } else { + // d) If the part was not entirely lowercase, then check if it is contained in the + // candidate in a case *sensitive* manner. If so, return that there was a substring + // match. if (candidate.indexOf(chunk.text) > 0) { return createPatternMatch(PatternMatchKind.substring, punctuationStripped, true); } } if (!isLowercase) { + // e) If the part was not entirely lowercase, then attempt a camel cased match as well. if (chunk.characterSpans.length > 0) { var candidateParts = getWordSpans(candidate); var camelCaseWeight = tryCamelCaseMatch(candidate, candidateParts, chunk, false); @@ -25736,6 +30062,12 @@ var ts; } } if (isLowercase) { + // f) Is the pattern a substring of the candidate starting on one of the candidate's word boundaries? + // We could check every character boundary start of the candidate for the pattern. However, that's + // an m * n operation in the wost case. Instead, find the first instance of the pattern + // substring, and see if it starts on a capital letter. It seems unlikely that the user will try to + // filter the list based on a substring that starts on a capital letter and also with a lowercase one. + // (Pattern: fogbar, Candidate: quuxfogbarFogBar). if (chunk.text.length < candidate.length) { if (index > 0 && isUpperCaseLetter(candidate.charCodeAt(index))) { return createPatternMatch(PatternMatchKind.substring, punctuationStripped, false); @@ -25747,23 +30079,67 @@ var ts; function containsSpaceOrAsterisk(text) { for (var i = 0; i < text.length; i++) { var ch = text.charCodeAt(i); - if (ch === 32 || ch === 42) { + if (ch === 32 /* space */ || ch === 42 /* asterisk */) { return true; } } return false; } function matchSegment(candidate, segment) { + // First check if the segment matches as is. This is also useful if the segment contains + // characters we would normally strip when splitting into parts that we also may want to + // match in the candidate. For example if the segment is "@int" and the candidate is + // "@int", then that will show up as an exact match here. + // + // Note: if the segment contains a space or an asterisk then we must assume that it's a + // multi-word segment. if (!containsSpaceOrAsterisk(segment.totalTextChunk.text)) { var match = matchTextChunk(candidate, segment.totalTextChunk, false); if (match) { return [match]; } } + // The logic for pattern matching is now as follows: + // + // 1) Break the segment passed in into words. Breaking is rather simple and a + // good way to think about it that if gives you all the individual alphanumeric words + // of the pattern. + // + // 2) For each word try to match the word against the candidate value. + // + // 3) Matching is as follows: + // + // a) Check if the word matches the candidate entirely, in an case insensitive or + // sensitive manner. If it does, return that there was an exact match. + // + // b) Check if the word is a prefix of the candidate, in a case insensitive or + // sensitive manner. If it does, return that there was a prefix match. + // + // c) If the word is entirely lowercase, then check if it is contained anywhere in the + // candidate in a case insensitive manner. If so, return that there was a substring + // match. + // + // Note: We only have a substring match if the lowercase part is prefix match of + // some word part. That way we don't match something like 'Class' when the user + // types 'a'. But we would match 'FooAttribute' (since 'Attribute' starts with + // 'a'). + // + // d) If the word was not entirely lowercase, then check if it is contained in the + // candidate in a case *sensitive* manner. If so, return that there was a substring + // match. + // + // e) If the word was not entirely lowercase, then attempt a camel cased match as + // well. + // + // f) The word is all lower case. Is it a case insensitive substring of the candidate starting + // on a part boundary of the candidate? + // + // Only if all words have some sort of match is the pattern considered matched. var subWordTextChunks = segment.subWordTextChunks; var matches = undefined; for (var _i = 0; _i < subWordTextChunks.length; _i++) { var subWordTextChunk = subWordTextChunks[_i]; + // Try to match the candidate with this word var result = matchTextChunk(candidate, subWordTextChunk, true); if (!result) { return undefined; @@ -25777,6 +30153,7 @@ var ts; var patternPartStart = patternSpan ? patternSpan.start : 0; var patternPartLength = patternSpan ? patternSpan.length : pattern.length; if (patternPartLength > candidateSpan.length) { + // Pattern part is longer than the candidate part. There can never be a match. return false; } if (ignoreCase) { @@ -25801,29 +30178,45 @@ var ts; } function tryCamelCaseMatch(candidate, candidateParts, chunk, ignoreCase) { var chunkCharacterSpans = chunk.characterSpans; + // Note: we may have more pattern parts than candidate parts. This is because multiple + // pattern parts may match a candidate part. For example "SiUI" against "SimpleUI". + // We'll have 3 pattern parts Si/U/I against two candidate parts Simple/UI. However, U + // and I will both match in UI. var currentCandidate = 0; var currentChunkSpan = 0; var firstMatch = undefined; var contiguous = undefined; while (true) { + // Let's consider our termination cases if (currentChunkSpan === chunkCharacterSpans.length) { + // We did match! We shall assign a weight to this var weight = 0; + // Was this contiguous? if (contiguous) { weight += 1; } + // Did we start at the beginning of the candidate? if (firstMatch === 0) { weight += 2; } return weight; } else if (currentCandidate === candidateParts.length) { + // No match, since we still have more of the pattern to hit return undefined; } var candidatePart = candidateParts[currentCandidate]; var gotOneMatchThisCandidate = false; + // Consider the case of matching SiUI against SimpleUIElement. The candidate parts + // will be Simple/UI/Element, and the pattern parts will be Si/U/I. We'll match 'Si' + // against 'Simple' first. Then we'll match 'U' against 'UI'. However, we want to + // still keep matching pattern parts against that candidate part. for (; currentChunkSpan < chunkCharacterSpans.length; currentChunkSpan++) { var chunkCharacterSpan = chunkCharacterSpans[currentChunkSpan]; if (gotOneMatchThisCandidate) { + // We've already gotten one pattern part match in this candidate. We will + // only continue trying to consumer pattern parts if the last part and this + // part are both upper case. if (!isUpperCaseLetter(chunk.text.charCodeAt(chunkCharacterSpans[currentChunkSpan - 1].start)) || !isUpperCaseLetter(chunk.text.charCodeAt(chunkCharacterSpans[currentChunkSpan].start))) { break; @@ -25834,17 +30227,30 @@ var ts; } gotOneMatchThisCandidate = true; firstMatch = firstMatch === undefined ? currentCandidate : firstMatch; + // If we were contiguous, then keep that value. If we weren't, then keep that + // value. If we don't know, then set the value to 'true' as an initial match is + // obviously contiguous. contiguous = contiguous === undefined ? true : contiguous; candidatePart = ts.createTextSpan(candidatePart.start + chunkCharacterSpan.length, candidatePart.length - chunkCharacterSpan.length); } + // Check if we matched anything at all. If we didn't, then we need to unset the + // contiguous bit if we currently had it set. + // If we haven't set the bit yet, then that means we haven't matched anything so + // far, and we don't want to change that. if (!gotOneMatchThisCandidate && contiguous !== undefined) { contiguous = false; } + // Move onto the next candidate. currentCandidate++; } } } ts.createPatternMatcher = createPatternMatcher; + // Helper function to compare two matches to determine which is better. Matches are first + // ordered by kind (so all prefix matches always beat all substring matches). Then, if the + // match is a camel case match, the relative weights of the match are used to determine + // which is better (with a greater weight being better). Then if the match is of the same + // type, then a case sensitive match is considered better than an insensitive one. function patternMatchCompareTo(match1, match2) { return compareType(match1, match2) || compareCamelCase(match1, match2) || @@ -25852,6 +30258,8 @@ var ts; comparePunctuation(match1, match2); } function comparePunctuation(result1, result2) { + // Consider a match to be better if it was successful without stripping punctuation + // versus a match that had to strip punctuation to succeed. if (result1.punctuationStripped !== result2.punctuationStripped) { return result1.punctuationStripped ? 1 : -1; } @@ -25868,6 +30276,8 @@ var ts; } function compareCamelCase(result1, result2) { if (result1.kind === PatternMatchKind.camelCase && result2.kind === PatternMatchKind.camelCase) { + // Swap the values here. If result1 has a higher weight, then we want it to come + // first. return result2.camelCaseWeight - result1.camelCaseWeight; } return 0; @@ -25878,26 +30288,33 @@ var ts; subWordTextChunks: breakPatternIntoTextChunks(text) }; } + // A segment is considered invalid if we couldn't find any words in it. function segmentIsInvalid(segment) { return segment.subWordTextChunks.length === 0; } function isUpperCaseLetter(ch) { - if (ch >= 65 && ch <= 90) { + // Fast check for the ascii range. + if (ch >= 65 /* A */ && ch <= 90 /* Z */) { return true; } - if (ch < 127 || !ts.isUnicodeIdentifierStart(ch, 2)) { + if (ch < 127 /* maxAsciiCharacter */ || !ts.isUnicodeIdentifierStart(ch, 2 /* Latest */)) { return false; } + // TODO: find a way to determine this for any unicode characters in a + // non-allocating manner. var str = String.fromCharCode(ch); return str === str.toUpperCase(); } function isLowerCaseLetter(ch) { - if (ch >= 97 && ch <= 122) { + // Fast check for the ascii range. + if (ch >= 97 /* a */ && ch <= 122 /* z */) { return true; } - if (ch < 127 || !ts.isUnicodeIdentifierStart(ch, 2)) { + if (ch < 127 /* maxAsciiCharacter */ || !ts.isUnicodeIdentifierStart(ch, 2 /* Latest */)) { return false; } + // TODO: find a way to determine this for any unicode characters in a + // non-allocating manner. var str = String.fromCharCode(ch); return str === str.toLowerCase(); } @@ -25917,6 +30334,7 @@ var ts; } return true; } + // Assumes 'value' is already lowercase. function indexOfIgnoringCase(string, value) { for (var i = 0, n = string.length - value.length; i <= n; i++) { if (startsWithIgnoringCase(string, value, i)) { @@ -25925,6 +30343,7 @@ var ts; } return -1; } + // Assumes 'value' is already lowercase. function startsWithIgnoringCase(string, value, start) { for (var i = 0, n = value.length; i < n; i++) { var ch1 = toLowerCase(string.charCodeAt(i + start)); @@ -25936,19 +30355,23 @@ var ts; return true; } function toLowerCase(ch) { - if (ch >= 65 && ch <= 90) { - return 97 + (ch - 65); + // Fast convert for the ascii range. + if (ch >= 65 /* A */ && ch <= 90 /* Z */) { + return 97 /* a */ + (ch - 65 /* A */); } - if (ch < 127) { + if (ch < 127 /* maxAsciiCharacter */) { return ch; } + // TODO: find a way to compute this for any unicode characters in a + // non-allocating manner. return String.fromCharCode(ch).toLowerCase().charCodeAt(0); } function isDigit(ch) { - return ch >= 48 && ch <= 57; + // TODO(cyrusn): Find a way to support this for unicode digits. + return ch >= 48 /* _0 */ && ch <= 57 /* _9 */; } function isWordChar(ch) { - return isUpperCaseLetter(ch) || isLowerCaseLetter(ch) || isDigit(ch) || ch === 95 || ch === 36; + return isUpperCaseLetter(ch) || isLowerCaseLetter(ch) || isDigit(ch) || ch === 95 /* _ */ || ch === 36 /* $ */; } function breakPatternIntoTextChunks(pattern) { var result = []; @@ -25982,11 +30405,11 @@ var ts; characterSpans: breakIntoCharacterSpans(text) }; } - function breakIntoCharacterSpans(identifier) { + /* @internal */ function breakIntoCharacterSpans(identifier) { return breakIntoSpans(identifier, false); } ts.breakIntoCharacterSpans = breakIntoCharacterSpans; - function breakIntoWordSpans(identifier) { + /* @internal */ function breakIntoWordSpans(identifier) { return breakIntoSpans(identifier, true); } ts.breakIntoWordSpans = breakIntoWordSpans; @@ -26016,29 +30439,29 @@ var ts; } function charIsPunctuation(ch) { switch (ch) { - case 33: - case 34: - case 35: - case 37: - case 38: - case 39: - case 40: - case 41: - case 42: - case 44: - case 45: - case 46: - case 47: - case 58: - case 59: - case 63: - case 64: - case 91: - case 92: - case 93: - case 95: - case 123: - case 125: + case 33 /* exclamation */: + case 34 /* doubleQuote */: + case 35 /* hash */: + case 37 /* percent */: + case 38 /* ampersand */: + case 39 /* singleQuote */: + case 40 /* openParen */: + case 41 /* closeParen */: + case 42 /* asterisk */: + case 44 /* comma */: + case 45 /* minus */: + case 46 /* dot */: + case 47 /* slash */: + case 58 /* colon */: + case 59 /* semicolon */: + case 63 /* question */: + case 64 /* at */: + case 91 /* openBracket */: + case 92 /* backslash */: + case 93 /* closeBracket */: + case 95 /* _ */: + case 123 /* openBrace */: + case 125 /* closeBrace */: return true; } return false; @@ -26046,7 +30469,8 @@ var ts; function isAllPunctuation(identifier, start, end) { for (var i = start; i < end; i++) { var ch = identifier.charCodeAt(i); - if (!charIsPunctuation(ch) || ch === 95 || ch === 36) { + // We don't consider _ or $ as punctuation as there may be things with that name. + if (!charIsPunctuation(ch) || ch === 95 /* _ */ || ch === 36 /* $ */) { return false; } } @@ -26054,11 +30478,25 @@ var ts; } function transitionFromUpperToLower(identifier, word, index, wordStart) { if (word) { + // Cases this supports: + // 1) IDisposable -> I, Disposable + // 2) UIElement -> UI, Element + // 3) HTMLDocument -> HTML, Document + // + // etc. if (index != wordStart && index + 1 < identifier.length) { var currentIsUpper = isUpperCaseLetter(identifier.charCodeAt(index)); var nextIsLower = isLowerCaseLetter(identifier.charCodeAt(index + 1)); if (currentIsUpper && nextIsLower) { + // We have a transition from an upper to a lower letter here. But we only + // want to break if all the letters that preceded are uppercase. i.e. if we + // have "Foo" we don't want to break that into "F, oo". But if we have + // "IFoo" or "UIFoo", then we want to break that into "I, Foo" and "UI, + // Foo". i.e. the last uppercase letter belongs to the lowercase letters + // that follows. Note: this will make the following not split properly: + // "HELLOthere". However, these sorts of names do not show up in .Net + // programs. for (var i = wordStart; i < index; i++) { if (!isUpperCaseLetter(identifier.charCodeAt(i))) { return false; @@ -26073,6 +30511,19 @@ var ts; function transitionFromLowerToUpper(identifier, word, index) { var lastIsUpper = isUpperCaseLetter(identifier.charCodeAt(index - 1)); var currentIsUpper = isUpperCaseLetter(identifier.charCodeAt(index)); + // See if the casing indicates we're starting a new word. Note: if we're breaking on + // words, then just seeing an upper case character isn't enough. Instead, it has to + // be uppercase and the previous character can't be uppercase. + // + // For example, breaking "AddMetadata" on words would make: Add Metadata + // + // on characters would be: A dd M etadata + // + // Break "AM" on words would be: AM + // + // on characters would be: A M + // + // We break the search string on characters. But we break the symbol name on words. var transition = word ? (currentIsUpper && !lastIsUpper) : currentIsUpper; @@ -26080,10 +30531,143 @@ var ts; } })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { var SignatureHelp; (function (SignatureHelp) { + // A partially written generic type expression is not guaranteed to have the correct syntax tree. the expression could be parsed as less than/greater than expression or a comma expression + // or some other combination depending on what the user has typed so far. For the purposes of signature help we need to consider any location after "<" as a possible generic type reference. + // To do this, the method will back parse the expression starting at the position required. it will try to parse the current expression as a generic type expression, if it did succeed it + // will return the generic identifier that started the expression (e.g. "foo" in "foo(#a, b) -> The token introduces a list, and should begin a sig help session + // Case 2: + // fo#o#(a, b)# -> The token is either not associated with a list, or ends a list, so the session should end + // Case 3: + // foo(a#, #b#) -> The token is buried inside a list, and should give sig help + // Find out if 'node' is an argument, a type argument, or neither + if (node.kind === 24 /* LessThanToken */ || + node.kind === 16 /* OpenParenToken */) { + // Find the list that starts right *after* the < or ( token. + // If the user has just opened a list, consider this item 0. var list = getChildListThatStartsWithOpenerToken(callExpression, node, sourceFile); var isTypeArgList = callExpression.typeArguments && callExpression.typeArguments.pos === list.pos; ts.Debug.assert(list !== undefined); return { - kind: isTypeArgList ? 0 : 1, + kind: isTypeArgList ? 0 /* TypeArguments */ : 1 /* CallArguments */, invocation: callExpression, argumentsSpan: getApplicableSpanForArguments(list), argumentIndex: 0, argumentCount: getArgumentCount(list) }; } + // findListItemInfo can return undefined if we are not in parent's argument list + // or type argument list. This includes cases where the cursor is: + // - To the right of the closing paren, non-substitution template, or template tail. + // - Between the type arguments and the arguments (greater than token) + // - On the target of the call (parent.func) + // - On the 'new' keyword in a 'new' expression var listItemInfo = ts.findListItemInfo(node); if (listItemInfo) { var list = listItemInfo.list; @@ -26133,7 +30746,7 @@ var ts; var argumentCount = getArgumentCount(list); ts.Debug.assert(argumentIndex === 0 || argumentIndex < argumentCount, "argumentCount < argumentIndex, " + argumentCount + " < " + argumentIndex); return { - kind: isTypeArgList ? 0 : 1, + kind: isTypeArgList ? 0 /* TypeArguments */ : 1 /* CallArguments */, invocation: callExpression, argumentsSpan: getApplicableSpanForArguments(list), argumentIndex: argumentIndex, @@ -26141,24 +30754,27 @@ var ts; }; } } - else if (node.kind === 10 && node.parent.kind === 159) { + else if (node.kind === 10 /* NoSubstitutionTemplateLiteral */ && node.parent.kind === 159 /* TaggedTemplateExpression */) { + // Check if we're actually inside the template; + // otherwise we'll fall out and return undefined. if (ts.isInsideTemplateLiteral(node, position)) { return getArgumentListInfoForTemplate(node.parent, 0); } } - else if (node.kind === 11 && node.parent.parent.kind === 159) { + else if (node.kind === 11 /* TemplateHead */ && node.parent.parent.kind === 159 /* TaggedTemplateExpression */) { var templateExpression = node.parent; var tagExpression = templateExpression.parent; - ts.Debug.assert(templateExpression.kind === 171); + ts.Debug.assert(templateExpression.kind === 171 /* TemplateExpression */); var argumentIndex = ts.isInsideTemplateLiteral(node, position) ? 0 : 1; return getArgumentListInfoForTemplate(tagExpression, argumentIndex); } - else if (node.parent.kind === 176 && node.parent.parent.parent.kind === 159) { + else if (node.parent.kind === 176 /* TemplateSpan */ && node.parent.parent.parent.kind === 159 /* TaggedTemplateExpression */) { var templateSpan = node.parent; var templateExpression = templateSpan.parent; var tagExpression = templateExpression.parent; - ts.Debug.assert(templateExpression.kind === 171); - if (node.kind === 13 && !ts.isInsideTemplateLiteral(node, position)) { + ts.Debug.assert(templateExpression.kind === 171 /* TemplateExpression */); + // If we're just after a template tail, don't show signature help. + if (node.kind === 13 /* TemplateTail */ && !ts.isInsideTemplateLiteral(node, position)) { return undefined; } var spanIndex = templateExpression.templateSpans.indexOf(templateSpan); @@ -26168,6 +30784,17 @@ var ts; return undefined; } function getArgumentIndex(argumentsList, node) { + // The list we got back can include commas. In the presence of errors it may + // also just have nodes without commas. For example "Foo(a b c)" will have 3 + // args without commas. We want to find what index we're at. So we count + // forward until we hit ourselves, only incrementing the index if it isn't a + // comma. + // + // Note: the subtlety around trailing commas (in getArgumentCount) does not apply + // here. That's because we're only walking forward until we hit the node we're + // on. In that case, even if we're after the trailing comma, we'll still see + // that trailing comma in the list, and we'll have generated the appropriate + // arg index. var argumentIndex = 0; var listChildren = argumentsList.getChildren(); for (var _i = 0; _i < listChildren.length; _i++) { @@ -26175,21 +30802,45 @@ var ts; if (child === node) { break; } - if (child.kind !== 23) { + if (child.kind !== 23 /* CommaToken */) { argumentIndex++; } } return argumentIndex; } function getArgumentCount(argumentsList) { + // The argument count for a list is normally the number of non-comma children it has. + // For example, if you have "Foo(a,b)" then there will be three children of the arg + // list 'a' '' 'b'. So, in this case the arg count will be 2. However, there + // is a small subtlety. If you have "Foo(a,)", then the child list will just have + // 'a' ''. So, in the case where the last child is a comma, we increase the + // arg count by one to compensate. + // + // Note: this subtlety only applies to the last comma. If you had "Foo(a,," then + // we'll have: 'a' '' '' + // That will give us 2 non-commas. We then add one for the last comma, givin us an + // arg count of 3. var listChildren = argumentsList.getChildren(); - var argumentCount = ts.countWhere(listChildren, function (arg) { return arg.kind !== 23; }); - if (listChildren.length > 0 && ts.lastOrUndefined(listChildren).kind === 23) { + var argumentCount = ts.countWhere(listChildren, function (arg) { return arg.kind !== 23 /* CommaToken */; }); + if (listChildren.length > 0 && ts.lastOrUndefined(listChildren).kind === 23 /* CommaToken */) { argumentCount++; } return argumentCount; } + // spanIndex is either the index for a given template span. + // This does not give appropriate results for a NoSubstitutionTemplateLiteral function getArgumentIndexForTemplatePiece(spanIndex, node) { + // Because the TemplateStringsArray is the first argument, we have to offset each substitution expression by 1. + // There are three cases we can encounter: + // 1. We are precisely in the template literal (argIndex = 0). + // 2. We are in or to the right of the substitution expression (argIndex = spanIndex + 1). + // 3. We are directly to the right of the template literal, but because we look for the token on the left, + // not enough to put us in the substitution expression; we should consider ourselves part of + // the *next* span's expression by offsetting the index (argIndex = (spanIndex + 1) + 1). + // + // Example: f `# abcd $#{# 1 + 1# }# efghi ${ #"#hello"# } # ` + // ^ ^ ^ ^ ^ ^ ^ ^ ^ + // Case: 1 1 3 2 1 3 2 2 1 ts.Debug.assert(position >= node.getStart(), "Assumed 'position' could not occur before node."); if (ts.isTemplateLiteralKind(node.kind)) { if (ts.isInsideTemplateLiteral(node, position)) { @@ -26200,12 +30851,13 @@ var ts; return spanIndex + 1; } function getArgumentListInfoForTemplate(tagExpression, argumentIndex) { - var argumentCount = tagExpression.template.kind === 10 + // argumentCount is either 1 or (numSpans + 1) to account for the template strings array argument. + var argumentCount = tagExpression.template.kind === 10 /* NoSubstitutionTemplateLiteral */ ? 1 : tagExpression.template.templateSpans.length + 1; ts.Debug.assert(argumentIndex === 0 || argumentIndex < argumentCount, "argumentCount < argumentIndex, " + argumentCount + " < " + argumentIndex); return { - kind: 2, + kind: 2 /* TaggedTemplateArguments */, invocation: tagExpression, argumentsSpan: getApplicableSpanForTaggedTemplate(tagExpression), argumentIndex: argumentIndex, @@ -26213,6 +30865,14 @@ var ts; }; } function getApplicableSpanForArguments(argumentsList) { + // We use full start and skip trivia on the end because we want to include trivia on + // both sides. For example, + // + // foo( /*comment */ a, b, c /*comment*/ ) + // | | + // + // The applicable span is from the first bar to the second bar (inclusive, + // but not including parentheses) var applicableSpanStart = argumentsList.getFullStart(); var applicableSpanEnd = ts.skipTrivia(sourceFile.text, argumentsList.getEnd(), false); return ts.createTextSpan(applicableSpanStart, applicableSpanEnd - applicableSpanStart); @@ -26221,7 +30881,16 @@ var ts; var template = taggedTemplate.template; var applicableSpanStart = template.getStart(); var applicableSpanEnd = template.getEnd(); - if (template.kind === 171) { + // We need to adjust the end position for the case where the template does not have a tail. + // Otherwise, we will not show signature help past the expression. + // For example, + // + // ` ${ 1 + 1 foo(10) + // | | + // + // This is because a Missing node has no width. However, what we actually want is to include trivia + // leading up to the next token in case the user is about to type in a TemplateMiddle or TemplateTail. + if (template.kind === 171 /* TemplateExpression */) { var lastSpan = ts.lastOrUndefined(template.templateSpans); if (lastSpan.literal.getFullWidth() === 0) { applicableSpanEnd = ts.skipTrivia(sourceFile.text, applicableSpanEnd, false); @@ -26230,10 +30899,12 @@ var ts; return ts.createTextSpan(applicableSpanStart, applicableSpanEnd - applicableSpanStart); } function getContainingArgumentInfo(node) { - for (var n = node; n.kind !== 227; n = n.parent) { + for (var n = node; n.kind !== 227 /* SourceFile */; n = n.parent) { if (ts.isFunctionBlock(n)) { return undefined; } + // If the node is not a subspan of its parent, this is a big problem. + // There have been crashes that might be caused by this violation. if (n.pos < n.parent.pos || n.end > n.parent.end) { ts.Debug.fail("Node of kind " + n.kind + " is not a subspan of its parent of kind " + n.parent.kind); } @@ -26250,6 +30921,14 @@ var ts; ts.Debug.assert(indexOfOpenerToken >= 0 && children.length > indexOfOpenerToken + 1); return children[indexOfOpenerToken + 1]; } + /** + * The selectedItemIndex could be negative for several reasons. + * 1. There are too many arguments for all of the overloads + * 2. None of the overloads were type compatible + * The solution here is to try to pick the best overload by picking + * either the first one that has an appropriate number of parameters, + * or the one with the most parameters. + */ function selectBestInvalidOverloadIndex(candidates, argumentCount) { var maxParamsSignatureIndex = -1; var maxParams = -1; @@ -26267,7 +30946,7 @@ var ts; } function createSignatureHelpItems(candidates, bestSignature, argumentListInfo) { var applicableSpan = argumentListInfo.argumentsSpan; - var isTypeParameterList = argumentListInfo.kind === 0; + var isTypeParameterList = argumentListInfo.kind === 0 /* TypeArguments */; var invocation = argumentListInfo.invocation; var callTarget = ts.getInvokedExpression(invocation); var callTargetSymbol = typeInfoResolver.getSymbolAtLocation(callTarget); @@ -26280,10 +30959,10 @@ var ts; prefixDisplayParts.push.apply(prefixDisplayParts, callTargetDisplayParts); } if (isTypeParameterList) { - prefixDisplayParts.push(ts.punctuationPart(24)); + prefixDisplayParts.push(ts.punctuationPart(24 /* LessThanToken */)); var typeParameters = candidateSignature.typeParameters; signatureHelpParameters = typeParameters && typeParameters.length > 0 ? ts.map(typeParameters, createSignatureHelpParameterForTypeParameter) : emptyArray; - suffixDisplayParts.push(ts.punctuationPart(25)); + suffixDisplayParts.push(ts.punctuationPart(25 /* GreaterThanToken */)); var parameterParts = ts.mapToDisplayParts(function (writer) { return typeInfoResolver.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(candidateSignature.parameters, writer, invocation); }); @@ -26294,10 +30973,10 @@ var ts; return typeInfoResolver.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(candidateSignature.typeParameters, writer, invocation); }); prefixDisplayParts.push.apply(prefixDisplayParts, typeParameterParts); - prefixDisplayParts.push(ts.punctuationPart(16)); + prefixDisplayParts.push(ts.punctuationPart(16 /* OpenParenToken */)); var parameters = candidateSignature.parameters; signatureHelpParameters = parameters.length > 0 ? ts.map(parameters, createSignatureHelpParameterForParameter) : emptyArray; - suffixDisplayParts.push(ts.punctuationPart(17)); + suffixDisplayParts.push(ts.punctuationPart(17 /* CloseParenToken */)); } var returnTypeParts = ts.mapToDisplayParts(function (writer) { return typeInfoResolver.getSymbolDisplayBuilder().buildReturnTypeDisplay(candidateSignature, writer, invocation); @@ -26307,12 +30986,13 @@ var ts; isVariadic: candidateSignature.hasRestParameter, prefixDisplayParts: prefixDisplayParts, suffixDisplayParts: suffixDisplayParts, - separatorDisplayParts: [ts.punctuationPart(23), ts.spacePart()], + separatorDisplayParts: [ts.punctuationPart(23 /* CommaToken */), ts.spacePart()], parameters: signatureHelpParameters, documentation: candidateSignature.getDocumentationComment() }; }); var argumentIndex = argumentListInfo.argumentIndex; + // argumentCount is the *apparent* number of arguments. var argumentCount = argumentListInfo.argumentCount; var selectedItemIndex = candidates.indexOf(bestSignature); if (selectedItemIndex < 0) { @@ -26354,6 +31034,8 @@ var ts; SignatureHelp.getSignatureHelpItems = getSignatureHelpItems; })(SignatureHelp = ts.SignatureHelp || (ts.SignatureHelp = {})); })(ts || (ts = {})); +// These utilities are common to multiple language service features. +/* @internal */ var ts; (function (ts) { function getEndLinePosition(line, sourceFile) { @@ -26361,12 +31043,19 @@ var ts; var lineStarts = sourceFile.getLineStarts(); var lineIndex = line; if (lineIndex + 1 === lineStarts.length) { + // last line - return EOF return sourceFile.text.length - 1; } else { + // current line start var start = lineStarts[lineIndex]; + // take the start position of the next line -1 = it should be some line break var pos = lineStarts[lineIndex + 1] - 1; ts.Debug.assert(ts.isLineBreak(sourceFile.text.charCodeAt(pos))); + // walk backwards skipping line breaks, stop the the beginning of current line. + // i.e: + // + // $ <- end of line for this position should match the start position while (start <= pos && ts.isLineBreak(sourceFile.text.charCodeAt(pos))) { pos--; } @@ -26411,107 +31100,116 @@ var ts; return false; } switch (n.kind) { - case 201: - case 202: - case 204: - case 154: - case 150: - case 145: - case 179: - case 206: - case 207: - return nodeEndsWith(n, 15, sourceFile); - case 223: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: + case 154 /* ObjectLiteralExpression */: + case 150 /* ObjectBindingPattern */: + case 145 /* TypeLiteral */: + case 179 /* Block */: + case 206 /* ModuleBlock */: + case 207 /* CaseBlock */: + return nodeEndsWith(n, 15 /* CloseBraceToken */, sourceFile); + case 223 /* CatchClause */: return isCompletedNode(n.block, sourceFile); - case 158: + case 158 /* NewExpression */: if (!n.arguments) { return true; } - case 157: - case 161: - case 149: - return nodeEndsWith(n, 17, sourceFile); - case 142: - case 143: + // fall through + case 157 /* CallExpression */: + case 161 /* ParenthesizedExpression */: + case 149 /* ParenthesizedType */: + return nodeEndsWith(n, 17 /* CloseParenToken */, sourceFile); + case 142 /* FunctionType */: + case 143 /* ConstructorType */: return isCompletedNode(n.type, sourceFile); - case 135: - case 136: - case 137: - case 200: - case 162: - case 134: - case 133: - case 139: - case 138: - case 163: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 139 /* ConstructSignature */: + case 138 /* CallSignature */: + case 163 /* ArrowFunction */: if (n.body) { return isCompletedNode(n.body, sourceFile); } if (n.type) { return isCompletedNode(n.type, sourceFile); } - return hasChildOfKind(n, 17, sourceFile); - case 205: + // Even though type parameters can be unclosed, we can get away with + // having at least a closing paren. + return hasChildOfKind(n, 17 /* CloseParenToken */, sourceFile); + case 205 /* ModuleDeclaration */: return n.body && isCompletedNode(n.body, sourceFile); - case 183: + case 183 /* IfStatement */: if (n.elseStatement) { return isCompletedNode(n.elseStatement, sourceFile); } return isCompletedNode(n.thenStatement, sourceFile); - case 182: + case 182 /* ExpressionStatement */: return isCompletedNode(n.expression, sourceFile); - case 153: - case 151: - case 156: - case 127: - case 147: - return nodeEndsWith(n, 19, sourceFile); - case 140: + case 153 /* ArrayLiteralExpression */: + case 151 /* ArrayBindingPattern */: + case 156 /* ElementAccessExpression */: + case 127 /* ComputedPropertyName */: + case 147 /* TupleType */: + return nodeEndsWith(n, 19 /* CloseBracketToken */, sourceFile); + case 140 /* IndexSignature */: if (n.type) { return isCompletedNode(n.type, sourceFile); } - return hasChildOfKind(n, 19, sourceFile); - case 220: - case 221: + return hasChildOfKind(n, 19 /* CloseBracketToken */, sourceFile); + case 220 /* CaseClause */: + case 221 /* DefaultClause */: + // there is no such thing as terminator token for CaseClause/DefaultClause so for simplicitly always consider them non-completed return false; - case 186: - case 187: - case 188: - case 185: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 185 /* WhileStatement */: return isCompletedNode(n.statement, sourceFile); - case 184: - var hasWhileKeyword = findChildOfKind(n, 100, sourceFile); + case 184 /* DoStatement */: + // rough approximation: if DoStatement has While keyword - then if node is completed is checking the presence of ')'; + var hasWhileKeyword = findChildOfKind(n, 100 /* WhileKeyword */, sourceFile); if (hasWhileKeyword) { - return nodeEndsWith(n, 17, sourceFile); + return nodeEndsWith(n, 17 /* CloseParenToken */, sourceFile); } return isCompletedNode(n.statement, sourceFile); - case 144: + case 144 /* TypeQuery */: return isCompletedNode(n.exprName, sourceFile); - case 165: - case 164: - case 166: - case 172: - case 173: + case 165 /* TypeOfExpression */: + case 164 /* DeleteExpression */: + case 166 /* VoidExpression */: + case 172 /* YieldExpression */: + case 173 /* SpreadElementExpression */: var unaryWordExpression = n; return isCompletedNode(unaryWordExpression.expression, sourceFile); - case 159: + case 159 /* TaggedTemplateExpression */: return isCompletedNode(n.template, sourceFile); - case 171: + case 171 /* TemplateExpression */: var lastSpan = ts.lastOrUndefined(n.templateSpans); return isCompletedNode(lastSpan, sourceFile); - case 176: + case 176 /* TemplateSpan */: return ts.nodeIsPresent(n.literal); - case 167: + case 167 /* PrefixUnaryExpression */: return isCompletedNode(n.operand, sourceFile); - case 169: + case 169 /* BinaryExpression */: return isCompletedNode(n.right, sourceFile); - case 170: + case 170 /* ConditionalExpression */: return isCompletedNode(n.whenFalse, sourceFile); default: return true; } } ts.isCompletedNode = isCompletedNode; + /* + * Checks if node ends with 'expectedLastToken'. + * If child at position 'length - 1' is 'SemicolonToken' it is skipped and 'expectedLastToken' is compared with child at position 'length - 2'. + */ function nodeEndsWith(n, expectedLastToken, sourceFile) { var children = n.getChildren(sourceFile); if (children.length) { @@ -26519,7 +31217,7 @@ var ts; if (last.kind === expectedLastToken) { return true; } - else if (last.kind === 22 && children.length !== 1) { + else if (last.kind === 22 /* SemicolonToken */ && children.length !== 1) { return children[children.length - 2].kind === expectedLastToken; } } @@ -26527,6 +31225,10 @@ var ts; } function findListItemInfo(node) { var list = findContainingList(node); + // It is possible at this point for syntaxList to be undefined, either if + // node.parent had no list child, or if none of its list children contained + // the span of node. If this happens, return undefined. The caller should + // handle this case. if (!list) { return undefined; } @@ -26547,43 +31249,60 @@ var ts; } ts.findChildOfKind = findChildOfKind; function findContainingList(node) { + // The node might be a list element (nonsynthetic) or a comma (synthetic). Either way, it will + // be parented by the container of the SyntaxList, not the SyntaxList itself. + // In order to find the list item index, we first need to locate SyntaxList itself and then search + // for the position of the relevant node (or comma). var syntaxList = ts.forEach(node.parent.getChildren(), function (c) { - if (c.kind === 228 && c.pos <= node.pos && c.end >= node.end) { + // find syntax list that covers the span of the node + if (c.kind === 228 /* SyntaxList */ && c.pos <= node.pos && c.end >= node.end) { return c; } }); + // Either we didn't find an appropriate list, or the list must contain us. ts.Debug.assert(!syntaxList || ts.contains(syntaxList.getChildren(), node)); return syntaxList; } ts.findContainingList = findContainingList; + /* Gets the token whose text has range [start, end) and + * position >= start and (position < end or (position === end && token is keyword or identifier)) + */ function getTouchingWord(sourceFile, position) { return getTouchingToken(sourceFile, position, function (n) { return isWord(n.kind); }); } ts.getTouchingWord = getTouchingWord; + /* Gets the token whose text has range [start, end) and position >= start + * and (position < end or (position === end && token is keyword or identifier or numeric\string litera)) + */ function getTouchingPropertyName(sourceFile, position) { return getTouchingToken(sourceFile, position, function (n) { return isPropertyName(n.kind); }); } ts.getTouchingPropertyName = getTouchingPropertyName; + /** Returns the token if position is in [start, end) or if position === end and includeItemAtEndPosition(token) === true */ function getTouchingToken(sourceFile, position, includeItemAtEndPosition) { return getTokenAtPositionWorker(sourceFile, position, false, includeItemAtEndPosition); } ts.getTouchingToken = getTouchingToken; + /** Returns a token if position is in [start-of-leading-trivia, end) */ function getTokenAtPosition(sourceFile, position) { return getTokenAtPositionWorker(sourceFile, position, true, undefined); } ts.getTokenAtPosition = getTokenAtPosition; + /** Get the token whose text contains the position */ function getTokenAtPositionWorker(sourceFile, position, allowPositionInLeadingTrivia, includeItemAtEndPosition) { var current = sourceFile; outer: while (true) { if (isToken(current)) { + // exit early return current; } + // find the child that contains 'position' for (var i = 0, n = current.getChildCount(sourceFile); i < n; i++) { var child = current.getChildAt(i); var start = allowPositionInLeadingTrivia ? child.getFullStart() : child.getStart(sourceFile); if (start <= position) { var end = child.getEnd(); - if (position < end || (position === end && child.kind === 1)) { + if (position < end || (position === end && child.kind === 1 /* EndOfFileToken */)) { current = child; continue outer; } @@ -26598,7 +31317,17 @@ var ts; return current; } } + /** + * The token on the left of the position is the token that strictly includes the position + * or sits to the left of the cursor if it is on a boundary. For example + * + * fo|o -> will return foo + * foo |bar -> will return foo + * + */ function findTokenOnLeftOfPosition(file, position) { + // Ideally, getTokenAtPosition should return a token. However, it is currently + // broken, so we do a check to make sure the result was indeed a token. var tokenAtPosition = getTokenAtPosition(file, position); if (isToken(tokenAtPosition) && position > tokenAtPosition.getStart(file) && position < tokenAtPosition.getEnd()) { return tokenAtPosition; @@ -26610,12 +31339,16 @@ var ts; return find(parent); function find(n) { if (isToken(n) && n.pos === previousToken.end) { + // this is token that starts at the end of previous token - return it return n; } var children = n.getChildren(); for (var _i = 0; _i < children.length; _i++) { var child = children[_i]; - var shouldDiveInChildNode = (child.pos <= previousToken.pos && child.end > previousToken.end) || + var shouldDiveInChildNode = + // previous token is enclosed somewhere in the child + (child.pos <= previousToken.pos && child.end > previousToken.end) || + // previous token ends exactly at the beginning of child (child.pos === previousToken.end); if (shouldDiveInChildNode && nodeHasTokens(child)) { return find(child); @@ -26645,21 +31378,28 @@ var ts; if (nodeHasTokens(child)) { if (position <= child.end) { if (child.getStart(sourceFile) >= position) { + // actual start of the node is past the position - previous token should be at the end of previous child var candidate = findRightmostChildNodeWithTokens(children, i); return candidate && findRightmostToken(candidate); } else { + // candidate should be in this node return find(child); } } } } - ts.Debug.assert(startNode !== undefined || n.kind === 227); + ts.Debug.assert(startNode !== undefined || n.kind === 227 /* SourceFile */); + // Here we know that none of child token nodes embrace the position, + // the only known case is when position is at the end of the file. + // Try to find the rightmost token in the file without filtering. + // Namely we are skipping the check: 'position < node.end' if (children.length) { var candidate = findRightmostChildNodeWithTokens(children, children.length); return candidate && findRightmostToken(candidate); } } + /// finds last node that is considered as candidate for search (isCandidate(node) === true) starting from 'exclusiveStartPosition' function findRightmostChildNodeWithTokens(children, exclusiveStartPosition) { for (var i = exclusiveStartPosition - 1; i >= 0; --i) { if (nodeHasTokens(children[i])) { @@ -26670,20 +31410,22 @@ var ts; } ts.findPrecedingToken = findPrecedingToken; function nodeHasTokens(n) { + // If we have a token or node that has a non-zero width, it must have tokens. + // Note, that getWidth() does not take trivia into account. return n.getWidth() !== 0; } function getNodeModifiers(node) { var flags = ts.getCombinedNodeFlags(node); var result = []; - if (flags & 32) + if (flags & 32 /* Private */) result.push(ts.ScriptElementKindModifier.privateMemberModifier); - if (flags & 64) + if (flags & 64 /* Protected */) result.push(ts.ScriptElementKindModifier.protectedMemberModifier); - if (flags & 16) + if (flags & 16 /* Public */) result.push(ts.ScriptElementKindModifier.publicMemberModifier); - if (flags & 128) + if (flags & 128 /* Static */) result.push(ts.ScriptElementKindModifier.staticModifier); - if (flags & 1) + if (flags & 1 /* Export */) result.push(ts.ScriptElementKindModifier.exportedModifier); if (ts.isInAmbientContext(node)) result.push(ts.ScriptElementKindModifier.ambientModifier); @@ -26691,32 +31433,32 @@ var ts; } ts.getNodeModifiers = getNodeModifiers; function getTypeArgumentOrTypeParameterList(node) { - if (node.kind === 141 || node.kind === 157) { + if (node.kind === 141 /* TypeReference */ || node.kind === 157 /* CallExpression */) { return node.typeArguments; } - if (ts.isFunctionLike(node) || node.kind === 201 || node.kind === 202) { + if (ts.isFunctionLike(node) || node.kind === 201 /* ClassDeclaration */ || node.kind === 202 /* InterfaceDeclaration */) { return node.typeParameters; } return undefined; } ts.getTypeArgumentOrTypeParameterList = getTypeArgumentOrTypeParameterList; function isToken(n) { - return n.kind >= 0 && n.kind <= 125; + return n.kind >= 0 /* FirstToken */ && n.kind <= 125 /* LastToken */; } ts.isToken = isToken; function isWord(kind) { - return kind === 65 || ts.isKeyword(kind); + return kind === 65 /* Identifier */ || ts.isKeyword(kind); } ts.isWord = isWord; function isPropertyName(kind) { - return kind === 8 || kind === 7 || isWord(kind); + return kind === 8 /* StringLiteral */ || kind === 7 /* NumericLiteral */ || isWord(kind); } function isComment(kind) { - return kind === 2 || kind === 3; + return kind === 2 /* SingleLineCommentTrivia */ || kind === 3 /* MultiLineCommentTrivia */; } ts.isComment = isComment; function isPunctuation(kind) { - return 14 <= kind && kind <= 64; + return 14 /* FirstPunctuation */ <= kind && kind <= 64 /* LastPunctuation */; } ts.isPunctuation = isPunctuation; function isInsideTemplateLiteral(node, position) { @@ -26726,9 +31468,9 @@ var ts; ts.isInsideTemplateLiteral = isInsideTemplateLiteral; function isAccessibilityModifier(kind) { switch (kind) { - case 109: - case 107: - case 108: + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: return true; } return false; @@ -26751,10 +31493,12 @@ var ts; } ts.compareDataObjects = compareDataObjects; })(ts || (ts = {})); +// Display-part writer helpers +/* @internal */ var ts; (function (ts) { function isFirstDeclarationOfSymbolParameter(symbol) { - return symbol.declarations && symbol.declarations.length > 0 && symbol.declarations[0].kind === 129; + return symbol.declarations && symbol.declarations.length > 0 && symbol.declarations[0].kind === 129 /* Parameter */; } ts.isFirstDeclarationOfSymbolParameter = isFirstDeclarationOfSymbolParameter; var displayPartWriter = getDisplayPartWriter(); @@ -26809,46 +31553,46 @@ var ts; return displayPart(text, displayPartKind(symbol), symbol); function displayPartKind(symbol) { var flags = symbol.flags; - if (flags & 3) { + if (flags & 3 /* Variable */) { return isFirstDeclarationOfSymbolParameter(symbol) ? ts.SymbolDisplayPartKind.parameterName : ts.SymbolDisplayPartKind.localName; } - else if (flags & 4) { + else if (flags & 4 /* Property */) { return ts.SymbolDisplayPartKind.propertyName; } - else if (flags & 32768) { + else if (flags & 32768 /* GetAccessor */) { return ts.SymbolDisplayPartKind.propertyName; } - else if (flags & 65536) { + else if (flags & 65536 /* SetAccessor */) { return ts.SymbolDisplayPartKind.propertyName; } - else if (flags & 8) { + else if (flags & 8 /* EnumMember */) { return ts.SymbolDisplayPartKind.enumMemberName; } - else if (flags & 16) { + else if (flags & 16 /* Function */) { return ts.SymbolDisplayPartKind.functionName; } - else if (flags & 32) { + else if (flags & 32 /* Class */) { return ts.SymbolDisplayPartKind.className; } - else if (flags & 64) { + else if (flags & 64 /* Interface */) { return ts.SymbolDisplayPartKind.interfaceName; } - else if (flags & 384) { + else if (flags & 384 /* Enum */) { return ts.SymbolDisplayPartKind.enumName; } - else if (flags & 1536) { + else if (flags & 1536 /* Module */) { return ts.SymbolDisplayPartKind.moduleName; } - else if (flags & 8192) { + else if (flags & 8192 /* Method */) { return ts.SymbolDisplayPartKind.methodName; } - else if (flags & 262144) { + else if (flags & 262144 /* TypeParameter */) { return ts.SymbolDisplayPartKind.typeParameterName; } - else if (flags & 524288) { + else if (flags & 524288 /* TypeAlias */) { return ts.SymbolDisplayPartKind.aliasName; } - else if (flags & 8388608) { + else if (flags & 8388608 /* Alias */) { return ts.SymbolDisplayPartKind.aliasName; } return ts.SymbolDisplayPartKind.text; @@ -26921,11 +31665,12 @@ var ts; })(ts || (ts = {})); /// /// +/* @internal */ var ts; (function (ts) { var formatting; (function (formatting) { - var scanner = ts.createScanner(2, false); + var scanner = ts.createScanner(2 /* Latest */, false); var ScanAction; (function (ScanAction) { ScanAction[ScanAction["Scan"] = 0] = "Scan"; @@ -26958,7 +31703,7 @@ var ts; if (isStarted) { if (trailingTrivia) { ts.Debug.assert(trailingTrivia.length !== 0); - wasNewLine = trailingTrivia[trailingTrivia.length - 1].kind === 4; + wasNewLine = trailingTrivia[trailingTrivia.length - 1].kind === 4 /* NewLineTrivia */; } else { wasNewLine = false; @@ -26971,11 +31716,13 @@ var ts; } var t; var pos = scanner.getStartPos(); + // Read leading trivia and token while (pos < endPos) { var t_2 = scanner.getToken(); if (!ts.isTrivia(t_2)) { break; } + // consume leading trivia scanner.scan(); var item_4 = { pos: pos, @@ -26993,72 +31740,83 @@ var ts; function shouldRescanGreaterThanToken(node) { if (node) { switch (node.kind) { - case 27: - case 60: - case 61: - case 42: - case 41: + case 27 /* GreaterThanEqualsToken */: + case 60 /* GreaterThanGreaterThanEqualsToken */: + case 61 /* GreaterThanGreaterThanGreaterThanEqualsToken */: + case 42 /* GreaterThanGreaterThanGreaterThanToken */: + case 41 /* GreaterThanGreaterThanToken */: return true; } } return false; } function shouldRescanSlashToken(container) { - return container.kind === 9; + return container.kind === 9 /* RegularExpressionLiteral */; } function shouldRescanTemplateToken(container) { - return container.kind === 12 || - container.kind === 13; + return container.kind === 12 /* TemplateMiddle */ || + container.kind === 13 /* TemplateTail */; } function startsWithSlashToken(t) { - return t === 36 || t === 57; + return t === 36 /* SlashToken */ || t === 57 /* SlashEqualsToken */; } function readTokenInfo(n) { if (!isOnToken()) { + // scanner is not on the token (either advance was not called yet or scanner is already past the end position) return { leadingTrivia: leadingTrivia, trailingTrivia: undefined, token: undefined }; } + // normally scanner returns the smallest available token + // check the kind of context node to determine if scanner should have more greedy behavior and consume more text. var expectedScanAction = shouldRescanGreaterThanToken(n) - ? 1 + ? 1 /* RescanGreaterThanToken */ : shouldRescanSlashToken(n) - ? 2 + ? 2 /* RescanSlashToken */ : shouldRescanTemplateToken(n) - ? 3 - : 0; + ? 3 /* RescanTemplateToken */ + : 0 /* Scan */; if (lastTokenInfo && expectedScanAction === lastScanAction) { + // readTokenInfo was called before with the same expected scan action. + // No need to re-scan text, return existing 'lastTokenInfo' + // it is ok to call fixTokenKind here since it does not affect + // what portion of text is consumed. In opposize rescanning can change it, + // i.e. for '>=' when originally scanner eats just one character + // and rescanning forces it to consume more. return fixTokenKind(lastTokenInfo, n); } if (scanner.getStartPos() !== savedPos) { ts.Debug.assert(lastTokenInfo !== undefined); + // readTokenInfo was called before but scan action differs - rescan text scanner.setTextPos(savedPos); scanner.scan(); } var currentToken = scanner.getToken(); - if (expectedScanAction === 1 && currentToken === 25) { + if (expectedScanAction === 1 /* RescanGreaterThanToken */ && currentToken === 25 /* GreaterThanToken */) { currentToken = scanner.reScanGreaterToken(); ts.Debug.assert(n.kind === currentToken); - lastScanAction = 1; + lastScanAction = 1 /* RescanGreaterThanToken */; } - else if (expectedScanAction === 2 && startsWithSlashToken(currentToken)) { + else if (expectedScanAction === 2 /* RescanSlashToken */ && startsWithSlashToken(currentToken)) { currentToken = scanner.reScanSlashToken(); ts.Debug.assert(n.kind === currentToken); - lastScanAction = 2; + lastScanAction = 2 /* RescanSlashToken */; } - else if (expectedScanAction === 3 && currentToken === 15) { + else if (expectedScanAction === 3 /* RescanTemplateToken */ && currentToken === 15 /* CloseBraceToken */) { currentToken = scanner.reScanTemplateToken(); - lastScanAction = 3; + lastScanAction = 3 /* RescanTemplateToken */; } else { - lastScanAction = 0; + lastScanAction = 0 /* Scan */; } var token = { pos: scanner.getStartPos(), end: scanner.getTextPos(), kind: currentToken }; + // consume trailing trivia if (trailingTrivia) { trailingTrivia = undefined; } @@ -27076,7 +31834,8 @@ var ts; trailingTrivia = []; } trailingTrivia.push(trivia); - if (currentToken === 4) { + if (currentToken === 4 /* NewLineTrivia */) { + // move past new line scanner.scan(); break; } @@ -27091,8 +31850,12 @@ var ts; function isOnToken() { var current = (lastTokenInfo && lastTokenInfo.token.kind) || scanner.getToken(); var startPos = (lastTokenInfo && lastTokenInfo.token.pos) || scanner.getStartPos(); - return startPos < endPos && current !== 1 && !ts.isTrivia(current); + return startPos < endPos && current !== 1 /* EndOfFileToken */ && !ts.isTrivia(current); } + // when containing node in the tree is token + // but its kind differs from the kind that was returned by the scanner, + // then kind needs to be fixed. This might happen in cases + // when parser interprets token differently, i.e keyword treated as identifier function fixTokenKind(tokenInfo, container) { if (ts.isToken(container) && tokenInfo.token.kind !== container.kind) { tokenInfo.token.kind = container.kind; @@ -27103,21 +31866,8 @@ var ts; formatting.getFormattingScanner = getFormattingScanner; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27138,6 +31888,7 @@ var ts; this.nextTokenSpan = nextRange; this.nextTokenParent = nextTokenParent; this.contextNode = commonParent; + // drop cached results this.contextNodeAllOnSameLine = undefined; this.nextNodeAllOnSameLine = undefined; this.tokensAreOnSameLine = undefined; @@ -27182,8 +31933,8 @@ var ts; return startLine == endLine; }; FormattingContext.prototype.BlockIsOnOneLine = function (node) { - var openBrace = ts.findChildOfKind(node, 14, this.sourceFile); - var closeBrace = ts.findChildOfKind(node, 15, this.sourceFile); + var openBrace = ts.findChildOfKind(node, 14 /* OpenBraceToken */, this.sourceFile); + var closeBrace = ts.findChildOfKind(node, 15 /* CloseBraceToken */, this.sourceFile); if (openBrace && closeBrace) { var startLine = this.sourceFile.getLineAndCharacterOfPosition(openBrace.getEnd()).line; var endLine = this.sourceFile.getLineAndCharacterOfPosition(closeBrace.getStart(this.sourceFile)).line; @@ -27196,21 +31947,8 @@ var ts; formatting.FormattingContext = FormattingContext; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27225,28 +31963,15 @@ var ts; var FormattingRequestKind = formatting.FormattingRequestKind; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; (function (formatting) { var Rule = (function () { function Rule(Descriptor, Operation, Flag) { - if (Flag === void 0) { Flag = 0; } + if (Flag === void 0) { Flag = 0 /* None */; } this.Descriptor = Descriptor; this.Operation = Operation; this.Flag = Flag; @@ -27261,21 +31986,8 @@ var ts; formatting.Rule = Rule; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27289,21 +32001,8 @@ var ts; var RuleAction = formatting.RuleAction; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27334,21 +32033,8 @@ var ts; formatting.RuleDescriptor = RuleDescriptor; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27360,21 +32046,8 @@ var ts; var RuleFlags = formatting.RuleFlags; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27402,21 +32075,8 @@ var ts; formatting.RuleOperation = RuleOperation; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27450,21 +32110,8 @@ var ts; formatting.RuleOperationContext = RuleOperationContext; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27474,74 +32121,113 @@ var ts; /// /// Common Rules /// - this.IgnoreBeforeComment = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.Comments), formatting.RuleOperation.create1(1)); - this.IgnoreAfterLineComment = new formatting.Rule(formatting.RuleDescriptor.create3(2, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create1(1)); - this.NoSpaceBeforeSemicolon = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 22), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeColon = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 51), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8)); - this.NoSpaceBeforeQuestionMark = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 50), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8)); - this.SpaceAfterColon = new formatting.Rule(formatting.RuleDescriptor.create3(51, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 2)); - this.SpaceAfterQuestionMarkInConditionalOperator = new formatting.Rule(formatting.RuleDescriptor.create3(50, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsConditionalOperatorContext), 2)); - this.NoSpaceAfterQuestionMark = new formatting.Rule(formatting.RuleDescriptor.create3(50, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceAfterSemicolon = new formatting.Rule(formatting.RuleDescriptor.create3(22, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceAfterCloseBrace = new formatting.Rule(formatting.RuleDescriptor.create3(15, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsAfterCodeBlockContext), 2)); - this.SpaceBetweenCloseBraceAndElse = new formatting.Rule(formatting.RuleDescriptor.create1(15, 76), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceBetweenCloseBraceAndWhile = new formatting.Rule(formatting.RuleDescriptor.create1(15, 100), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.NoSpaceAfterCloseBrace = new formatting.Rule(formatting.RuleDescriptor.create3(15, formatting.Shared.TokenRange.FromTokens([17, 19, 23, 22])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeDot = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 20), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterDot = new formatting.Rule(formatting.RuleDescriptor.create3(20, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeOpenBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 18), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterOpenBracket = new formatting.Rule(formatting.RuleDescriptor.create3(18, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeCloseBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 19), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterCloseBracket = new formatting.Rule(formatting.RuleDescriptor.create3(19, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); + // Leave comments alone + this.IgnoreBeforeComment = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.Comments), formatting.RuleOperation.create1(1 /* Ignore */)); + this.IgnoreAfterLineComment = new formatting.Rule(formatting.RuleDescriptor.create3(2 /* SingleLineCommentTrivia */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create1(1 /* Ignore */)); + // Space after keyword but not before ; or : or ? + this.NoSpaceBeforeSemicolon = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 22 /* SemicolonToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceBeforeColon = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 51 /* ColonToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8 /* Delete */)); + this.NoSpaceBeforeQuestionMark = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 50 /* QuestionToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8 /* Delete */)); + this.SpaceAfterColon = new formatting.Rule(formatting.RuleDescriptor.create3(51 /* ColonToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 2 /* Space */)); + this.SpaceAfterQuestionMarkInConditionalOperator = new formatting.Rule(formatting.RuleDescriptor.create3(50 /* QuestionToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsConditionalOperatorContext), 2 /* Space */)); + this.NoSpaceAfterQuestionMark = new formatting.Rule(formatting.RuleDescriptor.create3(50 /* QuestionToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.SpaceAfterSemicolon = new formatting.Rule(formatting.RuleDescriptor.create3(22 /* SemicolonToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + // Space after }. + this.SpaceAfterCloseBrace = new formatting.Rule(formatting.RuleDescriptor.create3(15 /* CloseBraceToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsAfterCodeBlockContext), 2 /* Space */)); + // Special case for (}, else) and (}, while) since else & while tokens are not part of the tree which makes SpaceAfterCloseBrace rule not applied + this.SpaceBetweenCloseBraceAndElse = new formatting.Rule(formatting.RuleDescriptor.create1(15 /* CloseBraceToken */, 76 /* ElseKeyword */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.SpaceBetweenCloseBraceAndWhile = new formatting.Rule(formatting.RuleDescriptor.create1(15 /* CloseBraceToken */, 100 /* WhileKeyword */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.NoSpaceAfterCloseBrace = new formatting.Rule(formatting.RuleDescriptor.create3(15 /* CloseBraceToken */, formatting.Shared.TokenRange.FromTokens([17 /* CloseParenToken */, 19 /* CloseBracketToken */, 23 /* CommaToken */, 22 /* SemicolonToken */])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // No space for indexer and dot + this.NoSpaceBeforeDot = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 20 /* DotToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceAfterDot = new formatting.Rule(formatting.RuleDescriptor.create3(20 /* DotToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceBeforeOpenBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 18 /* OpenBracketToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceAfterOpenBracket = new formatting.Rule(formatting.RuleDescriptor.create3(18 /* OpenBracketToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceBeforeCloseBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 19 /* CloseBracketToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceAfterCloseBracket = new formatting.Rule(formatting.RuleDescriptor.create3(19 /* CloseBracketToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // Place a space before open brace in a function declaration this.FunctionOpenBraceLeftTokenRange = formatting.Shared.TokenRange.AnyIncludingMultilineComments; - this.SpaceBeforeOpenBraceInFunction = new formatting.Rule(formatting.RuleDescriptor.create2(this.FunctionOpenBraceLeftTokenRange, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext, Rules.IsBeforeBlockContext, Rules.IsNotFormatOnEnter, Rules.IsSameLineTokenOrBeforeMultilineBlockContext), 2), 1); - this.TypeScriptOpenBraceLeftTokenRange = formatting.Shared.TokenRange.FromTokens([65, 3]); - this.SpaceBeforeOpenBraceInTypeScriptDeclWithBlock = new formatting.Rule(formatting.RuleDescriptor.create2(this.TypeScriptOpenBraceLeftTokenRange, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsTypeScriptDeclWithBlockContext, Rules.IsNotFormatOnEnter, Rules.IsSameLineTokenOrBeforeMultilineBlockContext), 2), 1); - this.ControlOpenBraceLeftTokenRange = formatting.Shared.TokenRange.FromTokens([17, 3, 75, 96, 81, 76]); - this.SpaceBeforeOpenBraceInControl = new formatting.Rule(formatting.RuleDescriptor.create2(this.ControlOpenBraceLeftTokenRange, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext, Rules.IsNotFormatOnEnter, Rules.IsSameLineTokenOrBeforeMultilineBlockContext), 2), 1); - this.SpaceAfterOpenBrace = new formatting.Rule(formatting.RuleDescriptor.create3(14, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSingleLineBlockContext), 2)); - this.SpaceBeforeCloseBrace = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 15), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSingleLineBlockContext), 2)); - this.NoSpaceBetweenEmptyBraceBrackets = new formatting.Rule(formatting.RuleDescriptor.create1(14, 15), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsObjectContext), 8)); - this.NewLineAfterOpenBraceInBlockContext = new formatting.Rule(formatting.RuleDescriptor.create3(14, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsMultilineBlockContext), 4)); - this.NewLineBeforeCloseBraceInBlockContext = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.AnyIncludingMultilineComments, 15), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsMultilineBlockContext), 4)); - this.NoSpaceAfterUnaryPrefixOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.UnaryPrefixOperators, formatting.Shared.TokenRange.UnaryPrefixExpressions), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8)); - this.NoSpaceAfterUnaryPreincrementOperator = new formatting.Rule(formatting.RuleDescriptor.create3(38, formatting.Shared.TokenRange.UnaryPreincrementExpressions), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterUnaryPredecrementOperator = new formatting.Rule(formatting.RuleDescriptor.create3(39, formatting.Shared.TokenRange.UnaryPredecrementExpressions), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeUnaryPostincrementOperator = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.UnaryPostincrementExpressions, 38), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeUnaryPostdecrementOperator = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.UnaryPostdecrementExpressions, 39), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceAfterPostincrementWhenFollowedByAdd = new formatting.Rule(formatting.RuleDescriptor.create1(38, 33), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterAddWhenFollowedByUnaryPlus = new formatting.Rule(formatting.RuleDescriptor.create1(33, 33), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterAddWhenFollowedByPreincrement = new formatting.Rule(formatting.RuleDescriptor.create1(33, 38), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterPostdecrementWhenFollowedBySubtract = new formatting.Rule(formatting.RuleDescriptor.create1(39, 34), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterSubtractWhenFollowedByUnaryMinus = new formatting.Rule(formatting.RuleDescriptor.create1(34, 34), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterSubtractWhenFollowedByPredecrement = new formatting.Rule(formatting.RuleDescriptor.create1(34, 39), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.NoSpaceBeforeComma = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 23), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceAfterCertainKeywords = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([98, 94, 88, 74, 90, 97]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceAfterLetConstInVariableDeclaration = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([105, 70]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsStartOfVariableDeclarationList), 2)); - this.NoSpaceBeforeOpenParenInFuncCall = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsFunctionCallOrNewContext, Rules.IsPreviousTokenNotComma), 8)); - this.SpaceAfterFunctionInFuncDecl = new formatting.Rule(formatting.RuleDescriptor.create3(83, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2)); - this.NoSpaceBeforeOpenParenInFuncDecl = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsFunctionDeclContext), 8)); - this.SpaceAfterVoidOperator = new formatting.Rule(formatting.RuleDescriptor.create3(99, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsVoidOpContext), 2)); - this.NoSpaceBetweenReturnAndSemicolon = new formatting.Rule(formatting.RuleDescriptor.create1(90, 22), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceBetweenStatements = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([17, 75, 76, 67]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotForContext), 2)); - this.SpaceAfterTryFinally = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([96, 81]), 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceAfterGetSetInMember = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([116, 120]), 65), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2)); - this.SpaceBeforeBinaryKeywordOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.BinaryKeywordOperators), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterBinaryKeywordOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryKeywordOperators, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.NoSpaceAfterConstructor = new formatting.Rule(formatting.RuleDescriptor.create1(114, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterModuleImport = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([117, 118]), 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceAfterCertainTypeScriptKeywords = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([69, 115, 77, 78, 79, 116, 103, 85, 104, 117, 107, 109, 120, 110]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceBeforeCertainTypeScriptKeywords = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.FromTokens([79, 103])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceAfterModuleName = new formatting.Rule(formatting.RuleDescriptor.create1(8, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsModuleDeclContext), 2)); - this.SpaceAfterArrow = new formatting.Rule(formatting.RuleDescriptor.create3(32, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.NoSpaceAfterEllipsis = new formatting.Rule(formatting.RuleDescriptor.create1(21, 65), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterOptionalParameters = new formatting.Rule(formatting.RuleDescriptor.create3(50, formatting.Shared.TokenRange.FromTokens([17, 23])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8)); - this.NoSpaceBeforeOpenAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.TypeNames, 24), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8)); - this.NoSpaceBetweenCloseParenAndAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create1(17, 24), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8)); - this.NoSpaceAfterOpenAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create3(24, formatting.Shared.TokenRange.TypeNames), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8)); - this.NoSpaceBeforeCloseAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 25), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8)); - this.NoSpaceAfterCloseAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create3(25, formatting.Shared.TokenRange.FromTokens([16, 18, 25, 23])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8)); - this.NoSpaceBetweenEmptyInterfaceBraceBrackets = new formatting.Rule(formatting.RuleDescriptor.create1(14, 15), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsObjectTypeContext), 8)); + this.SpaceBeforeOpenBraceInFunction = new formatting.Rule(formatting.RuleDescriptor.create2(this.FunctionOpenBraceLeftTokenRange, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext, Rules.IsBeforeBlockContext, Rules.IsNotFormatOnEnter, Rules.IsSameLineTokenOrBeforeMultilineBlockContext), 2 /* Space */), 1 /* CanDeleteNewLines */); + // Place a space before open brace in a TypeScript declaration that has braces as children (class, module, enum, etc) + this.TypeScriptOpenBraceLeftTokenRange = formatting.Shared.TokenRange.FromTokens([65 /* Identifier */, 3 /* MultiLineCommentTrivia */]); + this.SpaceBeforeOpenBraceInTypeScriptDeclWithBlock = new formatting.Rule(formatting.RuleDescriptor.create2(this.TypeScriptOpenBraceLeftTokenRange, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsTypeScriptDeclWithBlockContext, Rules.IsNotFormatOnEnter, Rules.IsSameLineTokenOrBeforeMultilineBlockContext), 2 /* Space */), 1 /* CanDeleteNewLines */); + // Place a space before open brace in a control flow construct + this.ControlOpenBraceLeftTokenRange = formatting.Shared.TokenRange.FromTokens([17 /* CloseParenToken */, 3 /* MultiLineCommentTrivia */, 75 /* DoKeyword */, 96 /* TryKeyword */, 81 /* FinallyKeyword */, 76 /* ElseKeyword */]); + this.SpaceBeforeOpenBraceInControl = new formatting.Rule(formatting.RuleDescriptor.create2(this.ControlOpenBraceLeftTokenRange, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext, Rules.IsNotFormatOnEnter, Rules.IsSameLineTokenOrBeforeMultilineBlockContext), 2 /* Space */), 1 /* CanDeleteNewLines */); + // Insert a space after { and before } in single-line contexts, but remove space from empty object literals {}. + this.SpaceAfterOpenBrace = new formatting.Rule(formatting.RuleDescriptor.create3(14 /* OpenBraceToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSingleLineBlockContext), 2 /* Space */)); + this.SpaceBeforeCloseBrace = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 15 /* CloseBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSingleLineBlockContext), 2 /* Space */)); + this.NoSpaceBetweenEmptyBraceBrackets = new formatting.Rule(formatting.RuleDescriptor.create1(14 /* OpenBraceToken */, 15 /* CloseBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsObjectContext), 8 /* Delete */)); + // Insert new line after { and before } in multi-line contexts. + this.NewLineAfterOpenBraceInBlockContext = new formatting.Rule(formatting.RuleDescriptor.create3(14 /* OpenBraceToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsMultilineBlockContext), 4 /* NewLine */)); + // For functions and control block place } on a new line [multi-line rule] + this.NewLineBeforeCloseBraceInBlockContext = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.AnyIncludingMultilineComments, 15 /* CloseBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsMultilineBlockContext), 4 /* NewLine */)); + // Special handling of unary operators. + // Prefix operators generally shouldn't have a space between + // them and their target unary expression. + this.NoSpaceAfterUnaryPrefixOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.UnaryPrefixOperators, formatting.Shared.TokenRange.UnaryPrefixExpressions), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8 /* Delete */)); + this.NoSpaceAfterUnaryPreincrementOperator = new formatting.Rule(formatting.RuleDescriptor.create3(38 /* PlusPlusToken */, formatting.Shared.TokenRange.UnaryPreincrementExpressions), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceAfterUnaryPredecrementOperator = new formatting.Rule(formatting.RuleDescriptor.create3(39 /* MinusMinusToken */, formatting.Shared.TokenRange.UnaryPredecrementExpressions), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceBeforeUnaryPostincrementOperator = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.UnaryPostincrementExpressions, 38 /* PlusPlusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceBeforeUnaryPostdecrementOperator = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.UnaryPostdecrementExpressions, 39 /* MinusMinusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // More unary operator special-casing. + // DevDiv 181814: Be careful when removing leading whitespace + // around unary operators. Examples: + // 1 - -2 --X--> 1--2 + // a + ++b --X--> a+++b + this.SpaceAfterPostincrementWhenFollowedByAdd = new formatting.Rule(formatting.RuleDescriptor.create1(38 /* PlusPlusToken */, 33 /* PlusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterAddWhenFollowedByUnaryPlus = new formatting.Rule(formatting.RuleDescriptor.create1(33 /* PlusToken */, 33 /* PlusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterAddWhenFollowedByPreincrement = new formatting.Rule(formatting.RuleDescriptor.create1(33 /* PlusToken */, 38 /* PlusPlusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterPostdecrementWhenFollowedBySubtract = new formatting.Rule(formatting.RuleDescriptor.create1(39 /* MinusMinusToken */, 34 /* MinusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterSubtractWhenFollowedByUnaryMinus = new formatting.Rule(formatting.RuleDescriptor.create1(34 /* MinusToken */, 34 /* MinusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterSubtractWhenFollowedByPredecrement = new formatting.Rule(formatting.RuleDescriptor.create1(34 /* MinusToken */, 39 /* MinusMinusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.NoSpaceBeforeComma = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 23 /* CommaToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.SpaceAfterCertainKeywords = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([98 /* VarKeyword */, 94 /* ThrowKeyword */, 88 /* NewKeyword */, 74 /* DeleteKeyword */, 90 /* ReturnKeyword */, 97 /* TypeOfKeyword */]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.SpaceAfterLetConstInVariableDeclaration = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([105 /* LetKeyword */, 70 /* ConstKeyword */]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsStartOfVariableDeclarationList), 2 /* Space */)); + this.NoSpaceBeforeOpenParenInFuncCall = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsFunctionCallOrNewContext, Rules.IsPreviousTokenNotComma), 8 /* Delete */)); + this.SpaceAfterFunctionInFuncDecl = new formatting.Rule(formatting.RuleDescriptor.create3(83 /* FunctionKeyword */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2 /* Space */)); + this.NoSpaceBeforeOpenParenInFuncDecl = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsFunctionDeclContext), 8 /* Delete */)); + this.SpaceAfterVoidOperator = new formatting.Rule(formatting.RuleDescriptor.create3(99 /* VoidKeyword */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsVoidOpContext), 2 /* Space */)); + this.NoSpaceBetweenReturnAndSemicolon = new formatting.Rule(formatting.RuleDescriptor.create1(90 /* ReturnKeyword */, 22 /* SemicolonToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // Add a space between statements. All keywords except (do,else,case) has open/close parens after them. + // So, we have a rule to add a space for [),Any], [do,Any], [else,Any], and [case,Any] + this.SpaceBetweenStatements = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([17 /* CloseParenToken */, 75 /* DoKeyword */, 76 /* ElseKeyword */, 67 /* CaseKeyword */]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotForContext), 2 /* Space */)); + // This low-pri rule takes care of "try {" and "finally {" in case the rule SpaceBeforeOpenBraceInControl didn't execute on FormatOnEnter. + this.SpaceAfterTryFinally = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([96 /* TryKeyword */, 81 /* FinallyKeyword */]), 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + // get x() {} + // set x(val) {} + this.SpaceAfterGetSetInMember = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([116 /* GetKeyword */, 120 /* SetKeyword */]), 65 /* Identifier */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2 /* Space */)); + // Special case for binary operators (that are keywords). For these we have to add a space and shouldn't follow any user options. + this.SpaceBeforeBinaryKeywordOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.BinaryKeywordOperators), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterBinaryKeywordOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryKeywordOperators, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + // TypeScript-specific higher priority rules + // Treat constructor as an identifier in a function declaration, and remove spaces between constructor and following left parentheses + this.NoSpaceAfterConstructor = new formatting.Rule(formatting.RuleDescriptor.create1(114 /* ConstructorKeyword */, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // Use of module as a function call. e.g.: import m2 = module("m2"); + this.NoSpaceAfterModuleImport = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([117 /* ModuleKeyword */, 118 /* RequireKeyword */]), 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // Add a space around certain TypeScript keywords + this.SpaceAfterCertainTypeScriptKeywords = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([69 /* ClassKeyword */, 115 /* DeclareKeyword */, 77 /* EnumKeyword */, 78 /* ExportKeyword */, 79 /* ExtendsKeyword */, 116 /* GetKeyword */, 103 /* ImplementsKeyword */, 85 /* ImportKeyword */, 104 /* InterfaceKeyword */, 117 /* ModuleKeyword */, 107 /* PrivateKeyword */, 109 /* PublicKeyword */, 120 /* SetKeyword */, 110 /* StaticKeyword */]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.SpaceBeforeCertainTypeScriptKeywords = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.FromTokens([79 /* ExtendsKeyword */, 103 /* ImplementsKeyword */])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + // Treat string literals in module names as identifiers, and add a space between the literal and the opening Brace braces, e.g.: module "m2" { + this.SpaceAfterModuleName = new formatting.Rule(formatting.RuleDescriptor.create1(8 /* StringLiteral */, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsModuleDeclContext), 2 /* Space */)); + // Lambda expressions + this.SpaceAfterArrow = new formatting.Rule(formatting.RuleDescriptor.create3(32 /* EqualsGreaterThanToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + // Optional parameters and let args + this.NoSpaceAfterEllipsis = new formatting.Rule(formatting.RuleDescriptor.create1(21 /* DotDotDotToken */, 65 /* Identifier */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceAfterOptionalParameters = new formatting.Rule(formatting.RuleDescriptor.create3(50 /* QuestionToken */, formatting.Shared.TokenRange.FromTokens([17 /* CloseParenToken */, 23 /* CommaToken */])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8 /* Delete */)); + // generics + this.NoSpaceBeforeOpenAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.TypeNames, 24 /* LessThanToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8 /* Delete */)); + this.NoSpaceBetweenCloseParenAndAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create1(17 /* CloseParenToken */, 24 /* LessThanToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8 /* Delete */)); + this.NoSpaceAfterOpenAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create3(24 /* LessThanToken */, formatting.Shared.TokenRange.TypeNames), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8 /* Delete */)); + this.NoSpaceBeforeCloseAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 25 /* GreaterThanToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8 /* Delete */)); + this.NoSpaceAfterCloseAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create3(25 /* GreaterThanToken */, formatting.Shared.TokenRange.FromTokens([16 /* OpenParenToken */, 18 /* OpenBracketToken */, 25 /* GreaterThanToken */, 23 /* CommaToken */])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8 /* Delete */)); + // Remove spaces in empty interface literals. e.g.: x: {} + this.NoSpaceBetweenEmptyInterfaceBraceBrackets = new formatting.Rule(formatting.RuleDescriptor.create1(14 /* OpenBraceToken */, 15 /* CloseBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsObjectTypeContext), 8 /* Delete */)); + // decorators + this.SpaceBeforeAt = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 52 /* AtToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.NoSpaceAfterAt = new formatting.Rule(formatting.RuleDescriptor.create3(52 /* AtToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.SpaceAfterDecorator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.FromTokens([65 /* Identifier */, 78 /* ExportKeyword */, 73 /* DefaultKeyword */, 69 /* ClassKeyword */, 110 /* StaticKeyword */, 109 /* PublicKeyword */, 107 /* PrivateKeyword */, 108 /* ProtectedKeyword */, 116 /* GetKeyword */, 120 /* SetKeyword */, 18 /* OpenBracketToken */, 35 /* AsteriskToken */])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsEndOfDecoratorContextOnSameLine), 2 /* Space */)); + // These rules are higher in priority than user-configurable rules. this.HighPriorityCommonRules = [ this.IgnoreBeforeComment, this.IgnoreAfterLineComment, @@ -27565,6 +32251,7 @@ var ts; this.NoSpaceBeforeOpenParenInFuncCall, this.SpaceBeforeBinaryKeywordOperator, this.SpaceAfterBinaryKeywordOperator, this.SpaceAfterVoidOperator, + // TypeScript-specific rules this.NoSpaceAfterConstructor, this.NoSpaceAfterModuleImport, this.SpaceAfterCertainTypeScriptKeywords, this.SpaceBeforeCertainTypeScriptKeywords, this.SpaceAfterModuleName, @@ -27576,8 +32263,12 @@ var ts; this.NoSpaceBetweenCloseParenAndAngularBracket, this.NoSpaceAfterOpenAngularBracket, this.NoSpaceBeforeCloseAngularBracket, - this.NoSpaceAfterCloseAngularBracket + this.NoSpaceAfterCloseAngularBracket, + this.SpaceBeforeAt, + this.NoSpaceAfterAt, + this.SpaceAfterDecorator, ]; + // These rules are lower in priority than user-configurable rules. this.LowPriorityCommonRules = [ this.NoSpaceBeforeSemicolon, @@ -27589,60 +32280,81 @@ var ts; this.NoSpaceBeforeOpenParenInFuncDecl, this.SpaceBetweenStatements, this.SpaceAfterTryFinally ]; - this.SpaceAfterComma = new formatting.Rule(formatting.RuleDescriptor.create3(23, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.NoSpaceAfterComma = new formatting.Rule(formatting.RuleDescriptor.create3(23, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceBeforeBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.BinaryOperators), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryOperators, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.NoSpaceBeforeBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.BinaryOperators), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 8)); - this.NoSpaceAfterBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryOperators, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 8)); - this.SpaceAfterKeywordInControl = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Keywords, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext), 2)); - this.NoSpaceAfterKeywordInControl = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Keywords, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext), 8)); - this.NewLineBeforeOpenBraceInFunction = new formatting.Rule(formatting.RuleDescriptor.create2(this.FunctionOpenBraceLeftTokenRange, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext, Rules.IsBeforeMultilineBlockContext), 4), 1); - this.NewLineBeforeOpenBraceInTypeScriptDeclWithBlock = new formatting.Rule(formatting.RuleDescriptor.create2(this.TypeScriptOpenBraceLeftTokenRange, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsTypeScriptDeclWithBlockContext, Rules.IsBeforeMultilineBlockContext), 4), 1); - this.NewLineBeforeOpenBraceInControl = new formatting.Rule(formatting.RuleDescriptor.create2(this.ControlOpenBraceLeftTokenRange, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext, Rules.IsBeforeMultilineBlockContext), 4), 1); - this.SpaceAfterSemicolonInFor = new formatting.Rule(formatting.RuleDescriptor.create3(22, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsForContext), 2)); - this.NoSpaceAfterSemicolonInFor = new formatting.Rule(formatting.RuleDescriptor.create3(22, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsForContext), 8)); - this.SpaceAfterOpenParen = new formatting.Rule(formatting.RuleDescriptor.create3(16, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceBeforeCloseParen = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 17), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.NoSpaceBetweenParens = new formatting.Rule(formatting.RuleDescriptor.create1(16, 17), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterOpenParen = new formatting.Rule(formatting.RuleDescriptor.create3(16, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeCloseParen = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 17), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceAfterAnonymousFunctionKeyword = new formatting.Rule(formatting.RuleDescriptor.create1(83, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2)); - this.NoSpaceAfterAnonymousFunctionKeyword = new formatting.Rule(formatting.RuleDescriptor.create1(83, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 8)); + /// + /// Rules controlled by user options + /// + // Insert space after comma delimiter + this.SpaceAfterComma = new formatting.Rule(formatting.RuleDescriptor.create3(23 /* CommaToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.NoSpaceAfterComma = new formatting.Rule(formatting.RuleDescriptor.create3(23 /* CommaToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // Insert space before and after binary operators + this.SpaceBeforeBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.BinaryOperators), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryOperators, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.NoSpaceBeforeBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.BinaryOperators), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 8 /* Delete */)); + this.NoSpaceAfterBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryOperators, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 8 /* Delete */)); + // Insert space after keywords in control flow statements + this.SpaceAfterKeywordInControl = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Keywords, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext), 2 /* Space */)); + this.NoSpaceAfterKeywordInControl = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Keywords, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext), 8 /* Delete */)); + // Open Brace braces after function + //TypeScript: Function can have return types, which can be made of tons of different token kinds + this.NewLineBeforeOpenBraceInFunction = new formatting.Rule(formatting.RuleDescriptor.create2(this.FunctionOpenBraceLeftTokenRange, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext, Rules.IsBeforeMultilineBlockContext), 4 /* NewLine */), 1 /* CanDeleteNewLines */); + // Open Brace braces after TypeScript module/class/interface + this.NewLineBeforeOpenBraceInTypeScriptDeclWithBlock = new formatting.Rule(formatting.RuleDescriptor.create2(this.TypeScriptOpenBraceLeftTokenRange, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsTypeScriptDeclWithBlockContext, Rules.IsBeforeMultilineBlockContext), 4 /* NewLine */), 1 /* CanDeleteNewLines */); + // Open Brace braces after control block + this.NewLineBeforeOpenBraceInControl = new formatting.Rule(formatting.RuleDescriptor.create2(this.ControlOpenBraceLeftTokenRange, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext, Rules.IsBeforeMultilineBlockContext), 4 /* NewLine */), 1 /* CanDeleteNewLines */); + // Insert space after semicolon in for statement + this.SpaceAfterSemicolonInFor = new formatting.Rule(formatting.RuleDescriptor.create3(22 /* SemicolonToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsForContext), 2 /* Space */)); + this.NoSpaceAfterSemicolonInFor = new formatting.Rule(formatting.RuleDescriptor.create3(22 /* SemicolonToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsForContext), 8 /* Delete */)); + // Insert space after opening and before closing nonempty parenthesis + this.SpaceAfterOpenParen = new formatting.Rule(formatting.RuleDescriptor.create3(16 /* OpenParenToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.SpaceBeforeCloseParen = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 17 /* CloseParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.NoSpaceBetweenParens = new formatting.Rule(formatting.RuleDescriptor.create1(16 /* OpenParenToken */, 17 /* CloseParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceAfterOpenParen = new formatting.Rule(formatting.RuleDescriptor.create3(16 /* OpenParenToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceBeforeCloseParen = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 17 /* CloseParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // Insert space after function keyword for anonymous functions + this.SpaceAfterAnonymousFunctionKeyword = new formatting.Rule(formatting.RuleDescriptor.create1(83 /* FunctionKeyword */, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2 /* Space */)); + this.NoSpaceAfterAnonymousFunctionKeyword = new formatting.Rule(formatting.RuleDescriptor.create1(83 /* FunctionKeyword */, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 8 /* Delete */)); } Rules.prototype.getRuleName = function (rule) { var o = this; - for (var name_19 in o) { - if (o[name_19] === rule) { - return name_19; + for (var name_20 in o) { + if (o[name_20] === rule) { + return name_20; } } throw new Error("Unknown rule"); }; + /// + /// Contexts + /// Rules.IsForContext = function (context) { - return context.contextNode.kind === 186; + return context.contextNode.kind === 186 /* ForStatement */; }; Rules.IsNotForContext = function (context) { return !Rules.IsForContext(context); }; Rules.IsBinaryOpContext = function (context) { switch (context.contextNode.kind) { - case 169: - case 170: + case 169 /* BinaryExpression */: + case 170 /* ConditionalExpression */: return true; - case 208: - case 198: - case 129: - case 226: - case 132: - case 131: - return context.currentTokenSpan.kind === 53 || context.nextTokenSpan.kind === 53; - case 187: - return context.currentTokenSpan.kind === 86 || context.nextTokenSpan.kind === 86; - case 188: - return context.currentTokenSpan.kind === 125 || context.nextTokenSpan.kind === 125; - case 152: - return context.currentTokenSpan.kind === 53 || context.nextTokenSpan.kind === 53; + // equal in import a = module('a'); + case 208 /* ImportEqualsDeclaration */: + // equal in let a = 0; + case 198 /* VariableDeclaration */: + // equal in p = 0; + case 129 /* Parameter */: + case 226 /* EnumMember */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + return context.currentTokenSpan.kind === 53 /* EqualsToken */ || context.nextTokenSpan.kind === 53 /* EqualsToken */; + // "in" keyword in for (let x in []) { } + case 187 /* ForInStatement */: + return context.currentTokenSpan.kind === 86 /* InKeyword */ || context.nextTokenSpan.kind === 86 /* InKeyword */; + // Technically, "of" is not a binary operator, but format it the same way as "in" + case 188 /* ForOfStatement */: + return context.currentTokenSpan.kind === 125 /* OfKeyword */ || context.nextTokenSpan.kind === 125 /* OfKeyword */; + case 152 /* BindingElement */: + return context.currentTokenSpan.kind === 53 /* EqualsToken */ || context.nextTokenSpan.kind === 53 /* EqualsToken */; } return false; }; @@ -27650,7 +32362,7 @@ var ts; return !Rules.IsBinaryOpContext(context); }; Rules.IsConditionalOperatorContext = function (context) { - return context.contextNode.kind === 170; + return context.contextNode.kind === 170 /* ConditionalExpression */; }; Rules.IsSameLineTokenOrBeforeMultilineBlockContext = function (context) { //// This check is mainly used inside SpaceBeforeOpenBraceInControl and SpaceBeforeOpenBraceInFunction. @@ -27671,6 +32383,7 @@ var ts; //// * ) and { are on differnet lines. We only need to format if the block is multiline context. So in this case we format. return context.TokensAreOnSameLine() || Rules.IsBeforeMultilineBlockContext(context); }; + // This check is done before an open brace in a control construct, a function, or a typescript block declaration Rules.IsBeforeMultilineBlockContext = function (context) { return Rules.IsBeforeBlockContext(context) && !(context.NextNodeAllOnSameLine() || context.NextNodeBlockIsOnOneLine()); }; @@ -27686,31 +32399,38 @@ var ts; Rules.IsBeforeBlockContext = function (context) { return Rules.NodeIsBlockContext(context.nextTokenParent); }; + // IMPORTANT!!! This method must return true ONLY for nodes with open and close braces as immediate children Rules.NodeIsBlockContext = function (node) { if (Rules.NodeIsTypeScriptDeclWithBlockContext(node)) { + // This means we are in a context that looks like a block to the user, but in the grammar is actually not a node (it's a class, module, enum, object type literal, etc). return true; } switch (node.kind) { - case 179: - case 207: - case 154: - case 206: + case 179 /* Block */: + case 207 /* CaseBlock */: + case 154 /* ObjectLiteralExpression */: + case 206 /* ModuleBlock */: return true; } return false; }; Rules.IsFunctionDeclContext = function (context) { switch (context.contextNode.kind) { - case 200: - case 134: - case 133: - case 136: - case 137: - case 138: - case 162: - case 135: - case 163: - case 202: + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + //case SyntaxKind.MemberFunctionDeclaration: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + ///case SyntaxKind.MethodSignature: + case 138 /* CallSignature */: + case 162 /* FunctionExpression */: + case 135 /* Constructor */: + case 163 /* ArrowFunction */: + //case SyntaxKind.ConstructorDeclaration: + //case SyntaxKind.SimpleArrowFunctionExpression: + //case SyntaxKind.ParenthesizedArrowFunctionExpression: + case 202 /* InterfaceDeclaration */: return true; } return false; @@ -27720,93 +32440,107 @@ var ts; }; Rules.NodeIsTypeScriptDeclWithBlockContext = function (node) { switch (node.kind) { - case 201: - case 202: - case 204: - case 145: - case 205: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: + case 145 /* TypeLiteral */: + case 205 /* ModuleDeclaration */: return true; } return false; }; Rules.IsAfterCodeBlockContext = function (context) { switch (context.currentTokenParent.kind) { - case 201: - case 205: - case 204: - case 179: - case 223: - case 206: - case 193: + case 201 /* ClassDeclaration */: + case 205 /* ModuleDeclaration */: + case 204 /* EnumDeclaration */: + case 179 /* Block */: + case 223 /* CatchClause */: + case 206 /* ModuleBlock */: + case 193 /* SwitchStatement */: return true; } return false; }; Rules.IsControlDeclContext = function (context) { switch (context.contextNode.kind) { - case 183: - case 193: - case 186: - case 187: - case 188: - case 185: - case 196: - case 184: - case 192: - case 223: + case 183 /* IfStatement */: + case 193 /* SwitchStatement */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 185 /* WhileStatement */: + case 196 /* TryStatement */: + case 184 /* DoStatement */: + case 192 /* WithStatement */: + // TODO + // case SyntaxKind.ElseClause: + case 223 /* CatchClause */: return true; default: return false; } }; Rules.IsObjectContext = function (context) { - return context.contextNode.kind === 154; + return context.contextNode.kind === 154 /* ObjectLiteralExpression */; }; Rules.IsFunctionCallContext = function (context) { - return context.contextNode.kind === 157; + return context.contextNode.kind === 157 /* CallExpression */; }; Rules.IsNewContext = function (context) { - return context.contextNode.kind === 158; + return context.contextNode.kind === 158 /* NewExpression */; }; Rules.IsFunctionCallOrNewContext = function (context) { return Rules.IsFunctionCallContext(context) || Rules.IsNewContext(context); }; Rules.IsPreviousTokenNotComma = function (context) { - return context.currentTokenSpan.kind !== 23; + return context.currentTokenSpan.kind !== 23 /* CommaToken */; }; Rules.IsSameLineTokenContext = function (context) { return context.TokensAreOnSameLine(); }; + Rules.IsEndOfDecoratorContextOnSameLine = function (context) { + return context.TokensAreOnSameLine() && + context.contextNode.decorators && + Rules.NodeIsInDecoratorContext(context.currentTokenParent) && + !Rules.NodeIsInDecoratorContext(context.nextTokenParent); + }; + Rules.NodeIsInDecoratorContext = function (node) { + while (ts.isExpression(node)) { + node = node.parent; + } + return node.kind === 130 /* Decorator */; + }; Rules.IsStartOfVariableDeclarationList = function (context) { - return context.currentTokenParent.kind === 199 && + return context.currentTokenParent.kind === 199 /* VariableDeclarationList */ && context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos; }; Rules.IsNotFormatOnEnter = function (context) { - return context.formattingRequestKind != 2; + return context.formattingRequestKind != 2 /* FormatOnEnter */; }; Rules.IsModuleDeclContext = function (context) { - return context.contextNode.kind === 205; + return context.contextNode.kind === 205 /* ModuleDeclaration */; }; Rules.IsObjectTypeContext = function (context) { - return context.contextNode.kind === 145; + return context.contextNode.kind === 145 /* TypeLiteral */; // && context.contextNode.parent.kind !== SyntaxKind.InterfaceDeclaration; }; Rules.IsTypeArgumentOrParameter = function (token, parent) { - if (token.kind !== 24 && token.kind !== 25) { + if (token.kind !== 24 /* LessThanToken */ && token.kind !== 25 /* GreaterThanToken */) { return false; } switch (parent.kind) { - case 141: - case 201: - case 202: - case 200: - case 162: - case 163: - case 134: - case 133: - case 138: - case 139: - case 157: - case 158: + case 141 /* TypeReference */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 157 /* CallExpression */: + case 158 /* NewExpression */: return true; default: return false; @@ -27817,28 +32551,15 @@ var ts; Rules.IsTypeArgumentOrParameter(context.nextTokenSpan, context.nextTokenParent); }; Rules.IsVoidOpContext = function (context) { - return context.currentTokenSpan.kind === 99 && context.currentTokenParent.kind === 166; + return context.currentTokenSpan.kind === 99 /* VoidKeyword */ && context.currentTokenParent.kind === 166 /* VoidExpression */; }; return Rules; })(); formatting.Rules = Rules; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27854,9 +32575,10 @@ var ts; return result; }; RulesMap.prototype.Initialize = function (rules) { - this.mapRowLength = 125 + 1; - this.map = new Array(this.mapRowLength * this.mapRowLength); - var rulesBucketConstructionStateList = new Array(this.map.length); + this.mapRowLength = 125 /* LastToken */ + 1; + this.map = new Array(this.mapRowLength * this.mapRowLength); //new Array(this.mapRowLength * this.mapRowLength); + // This array is used only during construction of the rulesbucket in the map + var rulesBucketConstructionStateList = new Array(this.map.length); //new Array(this.map.length); this.FillRules(rules, rulesBucketConstructionStateList); return this.map; }; @@ -27868,6 +32590,7 @@ var ts; }; RulesMap.prototype.GetRuleBucketIndex = function (row, column) { var rulesBucketIndex = (row * this.mapRowLength) + column; + //Debug.Assert(rulesBucketIndex < this.map.Length, "Trying to access an index outside the array."); return rulesBucketIndex; }; RulesMap.prototype.FillRule = function (rule, rulesBucketConstructionStateList) { @@ -27914,6 +32637,21 @@ var ts; var RulesPosition = formatting.RulesPosition; var RulesBucketConstructionState = (function () { function RulesBucketConstructionState() { + //// The Rules list contains all the inserted rules into a rulebucket in the following order: + //// 1- Ignore rules with specific token combination + //// 2- Ignore rules with any token combination + //// 3- Context rules with specific token combination + //// 4- Context rules with any token combination + //// 5- Non-context rules with specific token combination + //// 6- Non-context rules with any token combination + //// + //// The member rulesInsertionIndexBitmap is used to describe the number of rules + //// in each sub-bucket (above) hence can be used to know the index of where to insert + //// the next rule. It's a bitmap which contains 6 different sections each is given 5 bits. + //// + //// Example: + //// In order to insert a rule to the end of sub-bucket (3), we get the index by adding + //// the values in the bitmap segments 3rd, 2nd, and 1st. this.rulesInsertionIndexBitmap = 0; } RulesBucketConstructionState.prototype.GetInsertionIndex = function (maskPosition) { @@ -27947,7 +32685,7 @@ var ts; }; RulesBucket.prototype.AddRule = function (rule, specificTokens, constructionState, rulesBucketIndex) { var position; - if (rule.Operation.Action == 1) { + if (rule.Operation.Action == 1 /* Ignore */) { position = specificTokens ? RulesPosition.IgnoreRulesSpecific : RulesPosition.IgnoreRulesAny; @@ -27975,21 +32713,8 @@ var ts; formatting.RulesBucket = RulesBucket; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -28045,7 +32770,7 @@ var ts; } TokenAllAccess.prototype.GetTokens = function () { var result = []; - for (var token = 0; token <= 125; token++) { + for (var token = 0 /* FirstToken */; token <= 125 /* LastToken */; token++) { result.push(token); } return result; @@ -28086,38 +32811,24 @@ var ts; return this.tokenAccess.toString(); }; TokenRange.Any = TokenRange.AllTokens(); - TokenRange.AnyIncludingMultilineComments = TokenRange.FromTokens(TokenRange.Any.GetTokens().concat([3])); - TokenRange.Keywords = TokenRange.FromRange(66, 125); - TokenRange.BinaryOperators = TokenRange.FromRange(24, 64); - TokenRange.BinaryKeywordOperators = TokenRange.FromTokens([86, 87, 125]); - TokenRange.UnaryPrefixOperators = TokenRange.FromTokens([38, 39, 47, 46]); - TokenRange.UnaryPrefixExpressions = TokenRange.FromTokens([7, 65, 16, 18, 14, 93, 88]); - TokenRange.UnaryPreincrementExpressions = TokenRange.FromTokens([65, 16, 93, 88]); - TokenRange.UnaryPostincrementExpressions = TokenRange.FromTokens([65, 17, 19, 88]); - TokenRange.UnaryPredecrementExpressions = TokenRange.FromTokens([65, 16, 93, 88]); - TokenRange.UnaryPostdecrementExpressions = TokenRange.FromTokens([65, 17, 19, 88]); - TokenRange.Comments = TokenRange.FromTokens([2, 3]); - TokenRange.TypeNames = TokenRange.FromTokens([65, 119, 121, 113, 122, 99, 112]); + TokenRange.AnyIncludingMultilineComments = TokenRange.FromTokens(TokenRange.Any.GetTokens().concat([3 /* MultiLineCommentTrivia */])); + TokenRange.Keywords = TokenRange.FromRange(66 /* FirstKeyword */, 125 /* LastKeyword */); + TokenRange.BinaryOperators = TokenRange.FromRange(24 /* FirstBinaryOperator */, 64 /* LastBinaryOperator */); + TokenRange.BinaryKeywordOperators = TokenRange.FromTokens([86 /* InKeyword */, 87 /* InstanceOfKeyword */, 125 /* OfKeyword */]); + TokenRange.UnaryPrefixOperators = TokenRange.FromTokens([38 /* PlusPlusToken */, 39 /* MinusMinusToken */, 47 /* TildeToken */, 46 /* ExclamationToken */]); + TokenRange.UnaryPrefixExpressions = TokenRange.FromTokens([7 /* NumericLiteral */, 65 /* Identifier */, 16 /* OpenParenToken */, 18 /* OpenBracketToken */, 14 /* OpenBraceToken */, 93 /* ThisKeyword */, 88 /* NewKeyword */]); + TokenRange.UnaryPreincrementExpressions = TokenRange.FromTokens([65 /* Identifier */, 16 /* OpenParenToken */, 93 /* ThisKeyword */, 88 /* NewKeyword */]); + TokenRange.UnaryPostincrementExpressions = TokenRange.FromTokens([65 /* Identifier */, 17 /* CloseParenToken */, 19 /* CloseBracketToken */, 88 /* NewKeyword */]); + TokenRange.UnaryPredecrementExpressions = TokenRange.FromTokens([65 /* Identifier */, 16 /* OpenParenToken */, 93 /* ThisKeyword */, 88 /* NewKeyword */]); + TokenRange.UnaryPostdecrementExpressions = TokenRange.FromTokens([65 /* Identifier */, 17 /* CloseParenToken */, 19 /* CloseBracketToken */, 88 /* NewKeyword */]); + TokenRange.Comments = TokenRange.FromTokens([2 /* SingleLineCommentTrivia */, 3 /* MultiLineCommentTrivia */]); + TokenRange.TypeNames = TokenRange.FromTokens([65 /* Identifier */, 119 /* NumberKeyword */, 121 /* StringKeyword */, 113 /* BooleanKeyword */, 122 /* SymbolKeyword */, 99 /* VoidKeyword */, 112 /* AnyKeyword */]); return TokenRange; })(); Shared.TokenRange = TokenRange; })(Shared = formatting.Shared || (formatting.Shared = {})); })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// /// /// @@ -28130,21 +32841,8 @@ var ts; /// /// /// -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -28234,6 +32932,7 @@ var ts; /// /// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -28247,19 +32946,22 @@ var ts; if (line === 0) { return []; } + // get the span for the previous\current line var span = { + // get start position for the previous line pos: ts.getStartPositionOfLine(line - 1, sourceFile), + // get end position for the current line (end value is exclusive so add 1 to the result) end: ts.getEndLinePosition(line, sourceFile) + 1 }; - return formatSpan(span, sourceFile, options, rulesProvider, 2); + return formatSpan(span, sourceFile, options, rulesProvider, 2 /* FormatOnEnter */); } formatting.formatOnEnter = formatOnEnter; function formatOnSemicolon(position, sourceFile, rulesProvider, options) { - return formatOutermostParent(position, 22, sourceFile, options, rulesProvider, 3); + return formatOutermostParent(position, 22 /* SemicolonToken */, sourceFile, options, rulesProvider, 3 /* FormatOnSemicolon */); } formatting.formatOnSemicolon = formatOnSemicolon; function formatOnClosingCurly(position, sourceFile, rulesProvider, options) { - return formatOutermostParent(position, 15, sourceFile, options, rulesProvider, 4); + return formatOutermostParent(position, 15 /* CloseBraceToken */, sourceFile, options, rulesProvider, 4 /* FormatOnClosingCurlyBrace */); } formatting.formatOnClosingCurly = formatOnClosingCurly; function formatDocument(sourceFile, rulesProvider, options) { @@ -28267,15 +32969,16 @@ var ts; pos: 0, end: sourceFile.text.length }; - return formatSpan(span, sourceFile, options, rulesProvider, 0); + return formatSpan(span, sourceFile, options, rulesProvider, 0 /* FormatDocument */); } formatting.formatDocument = formatDocument; function formatSelection(start, end, sourceFile, rulesProvider, options) { + // format from the beginning of the line var span = { pos: ts.getLineStartPositionForPosition(start, sourceFile), end: end }; - return formatSpan(span, sourceFile, options, rulesProvider, 1); + return formatSpan(span, sourceFile, options, rulesProvider, 1 /* FormatSelection */); } formatting.formatSelection = formatSelection; function formatOutermostParent(position, expectedLastToken, sourceFile, options, rulesProvider, requestKind) { @@ -28291,11 +32994,24 @@ var ts; } function findOutermostParent(position, expectedTokenKind, sourceFile) { var precedingToken = ts.findPrecedingToken(position, sourceFile); + // when it is claimed that trigger character was typed at given position + // we verify that there is a token with a matching kind whose end is equal to position (because the character was just typed). + // If this condition is not hold - then trigger character was typed in some other context, + // i.e.in comment and thus should not trigger autoformatting if (!precedingToken || precedingToken.kind !== expectedTokenKind || position !== precedingToken.getEnd()) { return undefined; } + // walk up and search for the parent node that ends at the same position with precedingToken. + // for cases like this + // + // let x = 1; + // while (true) { + // } + // after typing close curly in while statement we want to reformat just the while statement. + // However if we just walk upwards searching for the parent that has the same end value - + // we'll end up with the whole source file. isListElement allows to stop on the list element level var current = precedingToken; while (current && current.parent && @@ -28305,23 +33021,26 @@ var ts; } return current; } + // Returns true if node is a element in some list in parent + // i.e. parent is class declaration with the list of members and node is one of members. function isListElement(parent, node) { switch (parent.kind) { - case 201: - case 202: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: return ts.rangeContainsRange(parent.members, node); - case 205: + case 205 /* ModuleDeclaration */: var body = parent.body; - return body && body.kind === 179 && ts.rangeContainsRange(body.statements, node); - case 227: - case 179: - case 206: + return body && body.kind === 179 /* Block */ && ts.rangeContainsRange(body.statements, node); + case 227 /* SourceFile */: + case 179 /* Block */: + case 206 /* ModuleBlock */: return ts.rangeContainsRange(parent.statements, node); - case 223: + case 223 /* CatchClause */: return ts.rangeContainsRange(parent.block.statements, node); } return false; } + /** find node that fully contains given text range */ function findEnclosingNode(range, sourceFile) { return find(sourceFile); function find(n) { @@ -28335,10 +33054,15 @@ var ts; return n; } } + /** formatting is not applied to ranges that contain parse errors. + * This function will return a predicate that for a given text range will tell + * if there are any parse errors that overlap with the range. + */ function prepareRangeContainsErrorFunction(errors, originalRange) { if (!errors.length) { return rangeHasNoErrors; } + // pick only errors that fall in range var sorted = errors .filter(function (d) { return ts.rangeOverlapsWithStartEnd(originalRange, d.start, d.start + d.length); }) .sort(function (e1, e2) { return e1.start - e2.start; }); @@ -28347,15 +33071,20 @@ var ts; } var index = 0; return function (r) { + // in current implementation sequence of arguments [r1, r2...] is monotonically increasing. + // 'index' tracks the index of the most recent error that was checked. while (true) { if (index >= sorted.length) { + // all errors in the range were already checked -> no error in specified range return false; } var error = sorted[index]; if (r.end <= error.start) { + // specified range ends before the error refered by 'index' - no error in range return false; } if (ts.startEndOverlapsWithStartEnd(r.pos, r.end, error.start, error.start + error.length)) { + // specified range overlaps with error range return true; } index++; @@ -28365,6 +33094,11 @@ var ts; return false; } } + /** + * Start of the original range might fall inside the comment - scanner will not yield appropriate results + * This function will look for token that is located before the start of target range + * and return its end as start position for the scanner. + */ function getScanStartPosition(enclosingNode, originalRange, sourceFile) { var start = enclosingNode.getStart(sourceFile); if (start === originalRange.pos && enclosingNode.end === originalRange.end) { @@ -28372,19 +33106,37 @@ var ts; } var precedingToken = ts.findPrecedingToken(originalRange.pos, sourceFile); if (!precedingToken) { + // no preceding token found - start from the beginning of enclosing node return enclosingNode.pos; } + // preceding token ends after the start of original range (i.e when originaRange.pos falls in the middle of literal) + // start from the beginning of enclosingNode to handle the entire 'originalRange' if (precedingToken.end >= originalRange.pos) { return enclosingNode.pos; } return precedingToken.end; } + /* + * For cases like + * if (a || + * b ||$ + * c) {...} + * If we hit Enter at $ we want line ' b ||' to be indented. + * Formatting will be applied to the last two lines. + * Node that fully encloses these lines is binary expression 'a ||...'. + * Initial indentation for this node will be 0. + * Binary expressions don't introduce new indentation scopes, however it is possible + * that some parent node on the same line does - like if statement in this case. + * Note that we are considering parents only from the same line with initial node - + * if parent is on the different line - its delta was already contributed + * to the initial indentation. + */ function getOwnOrInheritedDelta(n, options, sourceFile) { - var previousLine = -1; - var childKind = 0; + var previousLine = -1 /* Unknown */; + var childKind = 0 /* Unknown */; while (n) { var line = sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)).line; - if (previousLine !== -1 && line !== previousLine) { + if (previousLine !== -1 /* Unknown */ && line !== previousLine) { break; } if (formatting.SmartIndenter.shouldIndentChildNode(n.kind, childKind)) { @@ -28398,7 +33150,9 @@ var ts; } function formatSpan(originalRange, sourceFile, options, rulesProvider, requestKind) { var rangeContainsError = prepareRangeContainsErrorFunction(sourceFile.parseDiagnostics, originalRange); + // formatting context is used by rules provider var formattingContext = new formatting.FormattingContext(sourceFile, requestKind); + // find the smallest node that fully wraps the range and compute the initial indentation for the node var enclosingNode = findEnclosingNode(originalRange, sourceFile); var formattingScanner = formatting.getFormattingScanner(sourceFile, getScanStartPosition(enclosingNode, originalRange, sourceFile), originalRange.end); var initialIndentation = formatting.SmartIndenter.getIndentationForNode(enclosingNode, originalRange, sourceFile, options); @@ -28410,14 +33164,26 @@ var ts; formattingScanner.advance(); if (formattingScanner.isOnToken()) { var startLine = sourceFile.getLineAndCharacterOfPosition(enclosingNode.getStart(sourceFile)).line; + var undecoratedStartLine = startLine; + if (enclosingNode.decorators) { + undecoratedStartLine = sourceFile.getLineAndCharacterOfPosition(ts.getNonDecoratorTokenPosOfNode(enclosingNode, sourceFile)).line; + } var delta = getOwnOrInheritedDelta(enclosingNode, options, sourceFile); - processNode(enclosingNode, enclosingNode, startLine, initialIndentation, delta); + processNode(enclosingNode, enclosingNode, startLine, undecoratedStartLine, initialIndentation, delta); } formattingScanner.close(); return edits; + // local functions + /** Tries to compute the indentation for a list element. + * If list element is not in range then + * function will pick its actual indentation + * so it can be pushed downstream as inherited indentation. + * If list element is in the range - its indentation will be equal + * to inherited indentation from its predecessors. + */ function tryComputeIndentationForListItem(startPos, endPos, parentStartLine, range, inheritedIndentation) { if (ts.rangeOverlapsWithStartEnd(range, startPos, endPos)) { - if (inheritedIndentation !== -1) { + if (inheritedIndentation !== -1 /* Unknown */) { return inheritedIndentation; } } @@ -28429,16 +33195,20 @@ var ts; return column; } } - return -1; + return -1 /* Unknown */; } function computeIndentation(node, startLine, inheritedIndentation, parent, parentDynamicIndentation, effectiveParentStartLine) { var indentation = inheritedIndentation; - if (indentation === -1) { + if (indentation === -1 /* Unknown */) { if (isSomeBlock(node.kind)) { + // blocks should be indented in + // - other blocks + // - source file + // - switch\default clauses if (isSomeBlock(parent.kind) || - parent.kind === 227 || - parent.kind === 220 || - parent.kind === 221) { + parent.kind === 227 /* SourceFile */ || + parent.kind === 220 /* CaseClause */ || + parent.kind === 221 /* DefaultClause */) { indentation = parentDynamicIndentation.getIndentation() + parentDynamicIndentation.getDelta(); } else { @@ -28454,8 +33224,11 @@ var ts; } } } - var delta = formatting.SmartIndenter.shouldIndentChildNode(node.kind, 0) ? options.IndentSize : 0; + var delta = formatting.SmartIndenter.shouldIndentChildNode(node.kind, 0 /* Unknown */) ? options.IndentSize : 0; if (effectiveParentStartLine === startLine) { + // if node is located on the same line with the parent + // - inherit indentation from the parent + // - push children if either parent of node itself has non-zero delta indentation = parentDynamicIndentation.getIndentation(); delta = Math.min(options.IndentSize, parentDynamicIndentation.getDelta() + delta); } @@ -28469,18 +33242,19 @@ var ts; return node.modifiers[0].kind; } switch (node.kind) { - case 201: return 69; - case 202: return 104; - case 200: return 83; - case 204: return 204; - case 136: return 116; - case 137: return 120; - case 134: + case 201 /* ClassDeclaration */: return 69 /* ClassKeyword */; + case 202 /* InterfaceDeclaration */: return 104 /* InterfaceKeyword */; + case 200 /* FunctionDeclaration */: return 83 /* FunctionKeyword */; + case 204 /* EnumDeclaration */: return 204 /* EnumDeclaration */; + case 136 /* GetAccessor */: return 116 /* GetKeyword */; + case 137 /* SetAccessor */: return 120 /* SetKeyword */; + case 134 /* MethodDeclaration */: if (node.asteriskToken) { - return 35; + return 35 /* AsteriskToken */; } - case 132: - case 129: + // fall-through + case 132 /* PropertyDeclaration */: + case 129 /* Parameter */: return node.name.kind; } } @@ -28488,8 +33262,12 @@ var ts; return { getIndentationForComment: function (kind) { switch (kind) { - case 15: - case 19: + // preceding comment to the token that closes the indentation scope inherits the indentation from the scope + // .. { + // // comment + // } + case 15 /* CloseBraceToken */: + case 19 /* CloseBracketToken */: return indentation + delta; } return indentation; @@ -28497,19 +33275,22 @@ var ts; getIndentationForToken: function (line, kind) { if (nodeStartLine !== line && node.decorators) { if (kind === getFirstNonDecoratorTokenOfNode(node)) { + // if this token is the first token following the list of decorators, we do not need to indent return indentation; } } switch (kind) { - case 14: - case 15: - case 18: - case 19: - case 76: - case 100: - case 52: + // open and close brace, 'else' and 'while' (in do statement) tokens has indentation of the parent + case 14 /* OpenBraceToken */: + case 15 /* CloseBraceToken */: + case 18 /* OpenBracketToken */: + case 19 /* CloseBracketToken */: + case 76 /* ElseKeyword */: + case 100 /* WhileKeyword */: + case 52 /* AtToken */: return indentation; default: + // if token line equals to the line of containing node (this is a first token in the node) - use node indentation return nodeStartLine !== line ? indentation + delta : indentation; } }, @@ -28523,7 +33304,7 @@ var ts; else { indentation -= options.IndentSize; } - if (formatting.SmartIndenter.shouldIndentChildNode(node.kind, 0)) { + if (formatting.SmartIndenter.shouldIndentChildNode(node.kind, 0 /* Unknown */)) { delta = options.IndentSize; } else { @@ -28533,17 +33314,31 @@ var ts; } }; } - function processNode(node, contextNode, nodeStartLine, indentation, delta) { + function processNode(node, contextNode, nodeStartLine, undecoratedNodeStartLine, indentation, delta) { if (!ts.rangeOverlapsWithStartEnd(originalRange, node.getStart(sourceFile), node.getEnd())) { return; } var nodeDynamicIndentation = getDynamicIndentation(node, nodeStartLine, indentation, delta); + // a useful observations when tracking context node + // / + // [a] + // / | \ + // [b] [c] [d] + // node 'a' is a context node for nodes 'b', 'c', 'd' + // except for the leftmost leaf token in [b] - in this case context node ('e') is located somewhere above 'a' + // this rule can be applied recursively to child nodes of 'a'. + // + // context node is set to parent node value after processing every child node + // context node is set to parent of the token after processing every token var childContextNode = contextNode; + // if there are any tokens that logically belong to node and interleave child nodes + // such tokens will be consumed in processChildNode for for the child that follows them ts.forEachChild(node, function (child) { - processChildNode(child, -1, node, nodeDynamicIndentation, nodeStartLine, false); + processChildNode(child, -1 /* Unknown */, node, nodeDynamicIndentation, nodeStartLine, undecoratedNodeStartLine, false); }, function (nodes) { processChildNodes(nodes, node, nodeStartLine, nodeDynamicIndentation); }); + // proceed any tokens in the node that are located after child nodes while (formattingScanner.isOnToken()) { var tokenInfo = formattingScanner.readTokenInfo(node); if (tokenInfo.token.end > node.end) { @@ -28551,16 +33346,22 @@ var ts; } consumeTokenAndAdvanceScanner(tokenInfo, node, nodeDynamicIndentation); } - function processChildNode(child, inheritedIndentation, parent, parentDynamicIndentation, parentStartLine, isListItem) { + function processChildNode(child, inheritedIndentation, parent, parentDynamicIndentation, parentStartLine, undecoratedParentStartLine, isListItem) { var childStartPos = child.getStart(sourceFile); - var childStart = sourceFile.getLineAndCharacterOfPosition(childStartPos); - var childIndentationAmount = -1; + var childStartLine = sourceFile.getLineAndCharacterOfPosition(childStartPos).line; + var undecoratedChildStartLine = childStartLine; + if (child.decorators) { + undecoratedChildStartLine = sourceFile.getLineAndCharacterOfPosition(ts.getNonDecoratorTokenPosOfNode(child, sourceFile)).line; + } + // if child is a list item - try to get its indentation + var childIndentationAmount = -1 /* Unknown */; if (isListItem) { childIndentationAmount = tryComputeIndentationForListItem(childStartPos, child.end, parentStartLine, originalRange, inheritedIndentation); - if (childIndentationAmount !== -1) { + if (childIndentationAmount !== -1 /* Unknown */) { inheritedIndentation = childIndentationAmount; } } + // child node is outside the target range - do not dive inside if (!ts.rangeOverlapsWithStartEnd(originalRange, child.pos, child.end)) { return inheritedIndentation; } @@ -28568,8 +33369,10 @@ var ts; return inheritedIndentation; } while (formattingScanner.isOnToken()) { + // proceed any parent tokens that are located prior to child.getStart() var tokenInfo = formattingScanner.readTokenInfo(node); if (tokenInfo.token.end > childStartPos) { + // stop when formatting scanner advances past the beginning of the child break; } consumeTokenAndAdvanceScanner(tokenInfo, node, parentDynamicIndentation); @@ -28578,13 +33381,15 @@ var ts; return inheritedIndentation; } if (ts.isToken(child)) { + // if child node is a token, it does not impact indentation, proceed it using parent indentation scope rules var tokenInfo = formattingScanner.readTokenInfo(child); ts.Debug.assert(tokenInfo.token.end === child.end); consumeTokenAndAdvanceScanner(tokenInfo, node, parentDynamicIndentation); return inheritedIndentation; } - var childIndentation = computeIndentation(child, childStart.line, childIndentationAmount, node, parentDynamicIndentation, parentStartLine); - processNode(child, childContextNode, childStart.line, childIndentation.indentation, childIndentation.delta); + var effectiveParentStartLine = child.kind === 130 /* Decorator */ ? childStartLine : undecoratedParentStartLine; + var childIndentation = computeIndentation(child, childStartLine, childIndentationAmount, node, parentDynamicIndentation, effectiveParentStartLine); + processNode(child, childContextNode, childStartLine, undecoratedChildStartLine, childIndentation.indentation, childIndentation.delta); childContextNode = node; return inheritedIndentation; } @@ -28593,32 +33398,41 @@ var ts; var listEndToken = getCloseTokenForOpenToken(listStartToken); var listDynamicIndentation = parentDynamicIndentation; var startLine = parentStartLine; - if (listStartToken !== 0) { + if (listStartToken !== 0 /* Unknown */) { + // introduce a new indentation scope for lists (including list start and end tokens) while (formattingScanner.isOnToken()) { var tokenInfo = formattingScanner.readTokenInfo(parent); if (tokenInfo.token.end > nodes.pos) { + // stop when formatting scanner moves past the beginning of node list break; } else if (tokenInfo.token.kind === listStartToken) { + // consume list start token startLine = sourceFile.getLineAndCharacterOfPosition(tokenInfo.token.pos).line; - var indentation_1 = computeIndentation(tokenInfo.token, startLine, -1, parent, parentDynamicIndentation, startLine); + var indentation_1 = computeIndentation(tokenInfo.token, startLine, -1 /* Unknown */, parent, parentDynamicIndentation, startLine); listDynamicIndentation = getDynamicIndentation(parent, parentStartLine, indentation_1.indentation, indentation_1.delta); consumeTokenAndAdvanceScanner(tokenInfo, parent, listDynamicIndentation); } else { + // consume any tokens that precede the list as child elements of 'node' using its indentation scope consumeTokenAndAdvanceScanner(tokenInfo, parent, parentDynamicIndentation); } } } - var inheritedIndentation = -1; + var inheritedIndentation = -1 /* Unknown */; for (var _i = 0; _i < nodes.length; _i++) { var child = nodes[_i]; - inheritedIndentation = processChildNode(child, inheritedIndentation, node, listDynamicIndentation, startLine, true); + inheritedIndentation = processChildNode(child, inheritedIndentation, node, listDynamicIndentation, startLine, startLine, true); } - if (listEndToken !== 0) { + if (listEndToken !== 0 /* Unknown */) { if (formattingScanner.isOnToken()) { var tokenInfo = formattingScanner.readTokenInfo(parent); + // consume the list end token only if it is still belong to the parent + // there might be the case when current token matches end token but does not considered as one + // function (x: function) <-- + // without this check close paren will be interpreted as list end token for function expression which is wrong if (tokenInfo.token.kind === listEndToken && ts.rangeContainsRange(parent, tokenInfo.token)) { + // consume list end token consumeTokenAndAdvanceScanner(tokenInfo, parent, listDynamicIndentation); } } @@ -28636,9 +33450,11 @@ var ts; var tokenStart = sourceFile.getLineAndCharacterOfPosition(currentTokenInfo.token.pos); if (isTokenInRange) { var rangeHasError = rangeContainsError(currentTokenInfo.token); + // save prevStartLine since processRange will overwrite this value with current ones var prevStartLine = previousRangeStartLine; lineAdded = processRange(currentTokenInfo.token, tokenStart, parent, childContextNode, dynamicIndentation); if (rangeHasError) { + // do not indent comments\token if token range overlaps with some error indentToken = false; } else { @@ -28663,24 +33479,25 @@ var ts; } var triviaStartLine = sourceFile.getLineAndCharacterOfPosition(triviaItem.pos).line; switch (triviaItem.kind) { - case 3: + case 3 /* MultiLineCommentTrivia */: var commentIndentation = dynamicIndentation.getIndentationForComment(currentTokenInfo.token.kind); indentMultilineComment(triviaItem, commentIndentation, !indentNextTokenOrTrivia); indentNextTokenOrTrivia = false; break; - case 2: + case 2 /* SingleLineCommentTrivia */: if (indentNextTokenOrTrivia) { var commentIndentation_1 = dynamicIndentation.getIndentationForComment(currentTokenInfo.token.kind); insertIndentation(triviaItem.pos, commentIndentation_1, false); indentNextTokenOrTrivia = false; } break; - case 4: + case 4 /* NewLineTrivia */: indentNextTokenOrTrivia = true; break; } } } + // indent token only if is it is in target range and does not overlap with any error ranges if (isTokenInRange && !rangeContainsError(currentTokenInfo.token)) { var tokenIndentation = dynamicIndentation.getIndentationForToken(tokenStart.line, currentTokenInfo.token.kind); insertIndentation(currentTokenInfo.token.pos, tokenIndentation, lineAdded); @@ -28704,6 +33521,7 @@ var ts; var lineAdded; if (!rangeHasError && !previousRangeHasError) { if (!previousRange) { + // trim whitespaces starting from the beginning of the span up to the current line var originalStart = sourceFile.getLineAndCharacterOfPosition(originalRange.pos); trimTrailingWhitespacesForLines(originalStart.line, rangeStart.line); } @@ -28725,26 +33543,33 @@ var ts; var lineAdded; if (rule) { applyRuleEdits(rule, previousItem, previousStartLine, currentItem, currentStartLine); - if (rule.Operation.Action & (2 | 8) && currentStartLine !== previousStartLine) { + if (rule.Operation.Action & (2 /* Space */ | 8 /* Delete */) && currentStartLine !== previousStartLine) { lineAdded = false; + // Handle the case where the next line is moved to be the end of this line. + // In this case we don't indent the next line in the next pass. if (currentParent.getStart(sourceFile) === currentItem.pos) { dynamicIndentation.recomputeIndentation(false); } } - else if (rule.Operation.Action & 4 && currentStartLine === previousStartLine) { + else if (rule.Operation.Action & 4 /* NewLine */ && currentStartLine === previousStartLine) { lineAdded = true; + // Handle the case where token2 is moved to the new line. + // In this case we indent token2 in the next pass but we set + // sameLineIndent flag to notify the indenter that the indentation is within the line. if (currentParent.getStart(sourceFile) === currentItem.pos) { dynamicIndentation.recomputeIndentation(true); } } + // We need to trim trailing whitespace between the tokens if they were on different lines, and no rule was applied to put them on the same line trimTrailingWhitespaces = - (rule.Operation.Action & (4 | 2)) && - rule.Flag !== 1; + (rule.Operation.Action & (4 /* NewLine */ | 2 /* Space */)) && + rule.Flag !== 1 /* CanDeleteNewLines */; } else { trimTrailingWhitespaces = true; } if (currentStartLine !== previousStartLine && trimTrailingWhitespaces) { + // We need to trim trailing whitespace between the tokens if they were on different lines, and no rule was applied to put them on the same line trimTrailingWhitespacesForLines(previousStartLine, currentStartLine, previousItem); } return lineAdded; @@ -28752,6 +33577,8 @@ var ts; function insertIndentation(pos, indentation, lineAdded) { var indentationString = getIndentationString(indentation, options); if (lineAdded) { + // new line is added before the token by the formatting rules + // insert indentation string at the very beginning of the token recordReplace(pos, 0, indentationString); } else { @@ -28763,11 +33590,13 @@ var ts; } } function indentMultilineComment(commentRange, indentation, firstLineIsIndented) { + // split comment in lines var startLine = sourceFile.getLineAndCharacterOfPosition(commentRange.pos).line; var endLine = sourceFile.getLineAndCharacterOfPosition(commentRange.end).line; var parts; if (startLine === endLine) { if (!firstLineIsIndented) { + // treat as single line comment insertIndentation(commentRange.pos, indentation, false); } return; @@ -28792,6 +33621,7 @@ var ts; startIndex = 1; startLine++; } + // shift all parts on the delta size var delta = indentation - nonWhitespaceColumnInFirstPart.column; for (var i = startIndex, len = parts.length; i < len; ++i, ++startLine) { var startLinePos_1 = ts.getStartPositionOfLine(startLine, sourceFile); @@ -28812,6 +33642,7 @@ var ts; for (var line = line1; line < line2; ++line) { var lineStartPosition = ts.getStartPositionOfLine(line, sourceFile); var lineEndPosition = ts.getEndLinePosition(line, sourceFile); + // do not trim whitespaces in comments if (range && ts.isComment(range.kind) && range.pos <= lineEndPosition && range.end > lineEndPosition) { continue; } @@ -28841,28 +33672,35 @@ var ts; function applyRuleEdits(rule, previousRange, previousStartLine, currentRange, currentStartLine) { var between; switch (rule.Operation.Action) { - case 1: + case 1 /* Ignore */: + // no action required return; - case 8: + case 8 /* Delete */: if (previousRange.end !== currentRange.pos) { + // delete characters starting from t1.end up to t2.pos exclusive recordDelete(previousRange.end, currentRange.pos - previousRange.end); } break; - case 4: - if (rule.Flag !== 1 && previousStartLine !== currentStartLine) { + case 4 /* NewLine */: + // exit early if we on different lines and rule cannot change number of newlines + // if line1 and line2 are on subsequent lines then no edits are required - ok to exit + // if line1 and line2 are separated with more than one newline - ok to exit since we cannot delete extra new lines + if (rule.Flag !== 1 /* CanDeleteNewLines */ && previousStartLine !== currentStartLine) { return; } + // edit should not be applied only if we have one line feed between elements var lineDelta = currentStartLine - previousStartLine; if (lineDelta !== 1) { recordReplace(previousRange.end, currentRange.pos - previousRange.end, options.NewLineCharacter); } break; - case 2: - if (rule.Flag !== 1 && previousStartLine !== currentStartLine) { + case 2 /* Space */: + // exit early if we on different lines and rule cannot change number of newlines + if (rule.Flag !== 1 /* CanDeleteNewLines */ && previousStartLine !== currentStartLine) { return; } var posDelta = currentRange.pos - previousRange.end; - if (posDelta !== 1 || sourceFile.text.charCodeAt(previousRange.end) !== 32) { + if (posDelta !== 1 || sourceFile.text.charCodeAt(previousRange.end) !== 32 /* space */) { recordReplace(previousRange.end, currentRange.pos - previousRange.end, " "); } break; @@ -28871,56 +33709,57 @@ var ts; } function isSomeBlock(kind) { switch (kind) { - case 179: - case 206: + case 179 /* Block */: + case 206 /* ModuleBlock */: return true; } return false; } function getOpenTokenForList(node, list) { switch (node.kind) { - case 135: - case 200: - case 162: - case 134: - case 133: - case 163: + case 135 /* Constructor */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 163 /* ArrowFunction */: if (node.typeParameters === list) { - return 24; + return 24 /* LessThanToken */; } else if (node.parameters === list) { - return 16; + return 16 /* OpenParenToken */; } break; - case 157: - case 158: + case 157 /* CallExpression */: + case 158 /* NewExpression */: if (node.typeArguments === list) { - return 24; + return 24 /* LessThanToken */; } else if (node.arguments === list) { - return 16; + return 16 /* OpenParenToken */; } break; - case 141: + case 141 /* TypeReference */: if (node.typeArguments === list) { - return 24; + return 24 /* LessThanToken */; } } - return 0; + return 0 /* Unknown */; } function getCloseTokenForOpenToken(kind) { switch (kind) { - case 16: - return 17; - case 24: - return 25; + case 16 /* OpenParenToken */: + return 17 /* CloseParenToken */; + case 24 /* LessThanToken */: + return 25 /* GreaterThanToken */; } - return 0; + return 0 /* Unknown */; } var internedSizes; var internedTabsIndentation; var internedSpacesIndentation; function getIndentationString(indentation, options) { + // reset interned strings if FormatCodeOptions were changed var resetInternedStrings = !internedSizes || (internedSizes.tabSize !== options.TabSize || internedSizes.indentSize !== options.IndentSize); if (resetInternedStrings) { internedSizes = { tabSize: options.TabSize, indentSize: options.IndentSize }; @@ -28969,6 +33808,7 @@ var ts; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -28981,34 +33821,38 @@ var ts; })(Value || (Value = {})); function getIndentation(position, sourceFile, options) { if (position > sourceFile.text.length) { - return 0; + return 0; // past EOF } var precedingToken = ts.findPrecedingToken(position, sourceFile); if (!precedingToken) { return 0; } - var precedingTokenIsLiteral = precedingToken.kind === 8 || - precedingToken.kind === 9 || - precedingToken.kind === 10 || - precedingToken.kind === 11 || - precedingToken.kind === 12 || - precedingToken.kind === 13; + // no indentation in string \regex\template literals + var precedingTokenIsLiteral = precedingToken.kind === 8 /* StringLiteral */ || + precedingToken.kind === 9 /* RegularExpressionLiteral */ || + precedingToken.kind === 10 /* NoSubstitutionTemplateLiteral */ || + precedingToken.kind === 11 /* TemplateHead */ || + precedingToken.kind === 12 /* TemplateMiddle */ || + precedingToken.kind === 13 /* TemplateTail */; if (precedingTokenIsLiteral && precedingToken.getStart(sourceFile) <= position && precedingToken.end > position) { return 0; } var lineAtPosition = sourceFile.getLineAndCharacterOfPosition(position).line; - if (precedingToken.kind === 23 && precedingToken.parent.kind !== 169) { + if (precedingToken.kind === 23 /* CommaToken */ && precedingToken.parent.kind !== 169 /* BinaryExpression */) { + // previous token is comma that separates items in list - find the previous item and try to derive indentation from it var actualIndentation = getActualIndentationForListItemBeforeComma(precedingToken, sourceFile, options); - if (actualIndentation !== -1) { + if (actualIndentation !== -1 /* Unknown */) { return actualIndentation; } } + // try to find node that can contribute to indentation and includes 'position' starting from 'precedingToken' + // if such node is found - compute initial indentation for 'position' inside this node var previous; var current = precedingToken; var currentStart; var indentationDelta; while (current) { - if (ts.positionBelongsToNode(current, position, sourceFile) && shouldIndentChildNode(current.kind, previous ? previous.kind : 0)) { + if (ts.positionBelongsToNode(current, position, sourceFile) && shouldIndentChildNode(current.kind, previous ? previous.kind : 0 /* Unknown */)) { currentStart = getStartLineAndCharacterForNode(current, sourceFile); if (nextTokenIsCurlyBraceOnSameLineAsCursor(precedingToken, current, lineAtPosition, sourceFile)) { indentationDelta = 0; @@ -29018,14 +33862,16 @@ var ts; } break; } + // check if current node is a list item - if yes, take indentation from it var actualIndentation = getActualIndentationForListItem(current, sourceFile, options); - if (actualIndentation !== -1) { + if (actualIndentation !== -1 /* Unknown */) { return actualIndentation; } previous = current; current = current.parent; } if (!current) { + // no parent was found - return 0 to be indented on the level of SourceFile return 0; } return getIndentationForNodeWorker(current, currentStart, undefined, indentationDelta, sourceFile, options); @@ -29039,6 +33885,8 @@ var ts; function getIndentationForNodeWorker(current, currentStart, ignoreActualIndentationRange, indentationDelta, sourceFile, options) { var parent = current.parent; var parentStart; + // walk upwards and collect indentations for pairs of parent-child nodes + // indentation is not added if parent and child nodes start on the same line or if parent is IfStatement and child starts on the same line with 'else clause' while (parent) { var useActualIndentation = true; if (ignoreActualIndentationRange) { @@ -29046,8 +33894,9 @@ var ts; useActualIndentation = start < ignoreActualIndentationRange.pos || start > ignoreActualIndentationRange.end; } if (useActualIndentation) { + // check if current node is a list item - if yes, take indentation from it var actualIndentation = getActualIndentationForListItem(current, sourceFile, options); - if (actualIndentation !== -1) { + if (actualIndentation !== -1 /* Unknown */) { return actualIndentation + indentationDelta; } } @@ -29055,11 +33904,13 @@ var ts; var parentAndChildShareLine = parentStart.line === currentStart.line || childStartsOnTheSameLineWithElseInIfStatement(parent, current, currentStart.line, sourceFile); if (useActualIndentation) { + // try to fetch actual indentation for current node from source text var actualIndentation = getActualIndentationForNode(current, parent, currentStart, parentAndChildShareLine, sourceFile, options); - if (actualIndentation !== -1) { + if (actualIndentation !== -1 /* Unknown */) { return actualIndentation + indentationDelta; } } + // increase indentation if parent node wants its content to be indented and parent and child nodes don't start on the same line if (shouldIndentChildNode(parent.kind, current.kind) && !parentAndChildShareLine) { indentationDelta += options.IndentSize; } @@ -29076,20 +33927,31 @@ var ts; } return sourceFile.getLineAndCharacterOfPosition(parent.getStart(sourceFile)); } + /* + * Function returns Value.Unknown if indentation cannot be determined + */ function getActualIndentationForListItemBeforeComma(commaToken, sourceFile, options) { + // previous token is comma that separates items in list - find the previous item and try to derive indentation from it var commaItemInfo = ts.findListItemInfo(commaToken); if (commaItemInfo && commaItemInfo.listItemIndex > 0) { return deriveActualIndentationFromList(commaItemInfo.list.getChildren(), commaItemInfo.listItemIndex - 1, sourceFile, options); } else { - return -1; + // handle broken code gracefully + return -1 /* Unknown */; } } + /* + * Function returns Value.Unknown if actual indentation for node should not be used (i.e because node is nested expression) + */ function getActualIndentationForNode(current, parent, currentLineAndChar, parentAndChildShareLine, sourceFile, options) { + // actual indentation is used for statements\declarations if one of cases below is true: + // - parent is SourceFile - by default immediate children of SourceFile are not indented except when user indents them manually + // - parent and child are not on the same line var useActualIndentation = (ts.isDeclaration(current) || ts.isStatement(current)) && - (parent.kind === 227 || !parentAndChildShareLine); + (parent.kind === 227 /* SourceFile */ || !parentAndChildShareLine); if (!useActualIndentation) { - return -1; + return -1 /* Unknown */; } return findColumnForFirstNonWhitespaceCharacterInLine(currentLineAndChar, sourceFile, options); } @@ -29098,10 +33960,19 @@ var ts; if (!nextToken) { return false; } - if (nextToken.kind === 14) { + if (nextToken.kind === 14 /* OpenBraceToken */) { + // open braces are always indented at the parent level return true; } - else if (nextToken.kind === 15) { + else if (nextToken.kind === 15 /* CloseBraceToken */) { + // close braces are indented at the parent level if they are located on the same line with cursor + // this means that if new line will be added at $ position, this case will be indented + // class A { + // $ + // } + /// and this one - not + // class A { + // $} var nextTokenStartLine = getStartLineAndCharacterForNode(nextToken, sourceFile).line; return lineAtPosition === nextTokenStartLine; } @@ -29111,8 +33982,8 @@ var ts; return sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)); } function childStartsOnTheSameLineWithElseInIfStatement(parent, child, childStartLine, sourceFile) { - if (parent.kind === 183 && parent.elseStatement === child) { - var elseKeyword = ts.findChildOfKind(parent, 76, sourceFile); + if (parent.kind === 183 /* IfStatement */ && parent.elseStatement === child) { + var elseKeyword = ts.findChildOfKind(parent, 76 /* ElseKeyword */, sourceFile); ts.Debug.assert(elseKeyword !== undefined); var elseKeywordStartLine = getStartLineAndCharacterForNode(elseKeyword, sourceFile).line; return elseKeywordStartLine === childStartLine; @@ -29123,23 +33994,23 @@ var ts; function getContainingList(node, sourceFile) { if (node.parent) { switch (node.parent.kind) { - case 141: + case 141 /* TypeReference */: if (node.parent.typeArguments && ts.rangeContainsStartEnd(node.parent.typeArguments, node.getStart(sourceFile), node.getEnd())) { return node.parent.typeArguments; } break; - case 154: + case 154 /* ObjectLiteralExpression */: return node.parent.properties; - case 153: + case 153 /* ArrayLiteralExpression */: return node.parent.elements; - case 200: - case 162: - case 163: - case 134: - case 133: - case 138: - case 139: { + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: { var start = node.getStart(sourceFile); if (node.parent.typeParameters && ts.rangeContainsStartEnd(node.parent.typeParameters, start, node.getEnd())) { @@ -29150,8 +34021,8 @@ var ts; } break; } - case 158: - case 157: { + case 158 /* NewExpression */: + case 157 /* CallExpression */: { var start = node.getStart(sourceFile); if (node.parent.typeArguments && ts.rangeContainsStartEnd(node.parent.typeArguments, start, node.getEnd())) { @@ -29169,32 +34040,42 @@ var ts; } function getActualIndentationForListItem(node, sourceFile, options) { var containingList = getContainingList(node, sourceFile); - return containingList ? getActualIndentationFromList(containingList) : -1; + return containingList ? getActualIndentationFromList(containingList) : -1 /* Unknown */; function getActualIndentationFromList(list) { var index = ts.indexOf(list, node); - return index !== -1 ? deriveActualIndentationFromList(list, index, sourceFile, options) : -1; + return index !== -1 ? deriveActualIndentationFromList(list, index, sourceFile, options) : -1 /* Unknown */; } } function deriveActualIndentationFromList(list, index, sourceFile, options) { ts.Debug.assert(index >= 0 && index < list.length); var node = list[index]; + // walk toward the start of the list starting from current node and check if the line is the same for all items. + // if end line for item [i - 1] differs from the start line for item [i] - find column of the first non-whitespace character on the line of item [i] var lineAndCharacter = getStartLineAndCharacterForNode(node, sourceFile); for (var i = index - 1; i >= 0; --i) { - if (list[i].kind === 23) { + if (list[i].kind === 23 /* CommaToken */) { continue; } + // skip list items that ends on the same line with the current list element var prevEndLine = sourceFile.getLineAndCharacterOfPosition(list[i].end).line; if (prevEndLine !== lineAndCharacter.line) { return findColumnForFirstNonWhitespaceCharacterInLine(lineAndCharacter, sourceFile, options); } lineAndCharacter = getStartLineAndCharacterForNode(list[i], sourceFile); } - return -1; + return -1 /* Unknown */; } function findColumnForFirstNonWhitespaceCharacterInLine(lineAndCharacter, sourceFile, options) { var lineStart = sourceFile.getPositionOfLineAndCharacter(lineAndCharacter.line, 0); return findFirstNonWhitespaceColumn(lineStart, lineStart + lineAndCharacter.character, sourceFile, options); } + /* + Character is the actual index of the character since the beginning of the line. + Column - position of the character after expanding tabs to spaces + "0\t2$" + value of 'character' for '$' is 3 + value of 'column' for '$' is 6 (assuming that tab size is 4) + */ function findFirstNonWhitespaceCharacterAndColumn(startPos, endPos, sourceFile, options) { var character = 0; var column = 0; @@ -29203,7 +34084,7 @@ var ts; if (!ts.isWhiteSpace(ch)) { break; } - if (ch === 9) { + if (ch === 9 /* tab */) { column += options.TabSize + (column % options.TabSize); } else { @@ -29220,28 +34101,28 @@ var ts; SmartIndenter.findFirstNonWhitespaceColumn = findFirstNonWhitespaceColumn; function nodeContentIsAlwaysIndented(kind) { switch (kind) { - case 201: - case 202: - case 204: - case 153: - case 179: - case 206: - case 154: - case 145: - case 147: - case 207: - case 221: - case 220: - case 161: - case 157: - case 158: - case 180: - case 198: - case 214: - case 191: - case 170: - case 151: - case 150: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: + case 153 /* ArrayLiteralExpression */: + case 179 /* Block */: + case 206 /* ModuleBlock */: + case 154 /* ObjectLiteralExpression */: + case 145 /* TypeLiteral */: + case 147 /* TupleType */: + case 207 /* CaseBlock */: + case 221 /* DefaultClause */: + case 220 /* CaseClause */: + case 161 /* ParenthesizedExpression */: + case 157 /* CallExpression */: + case 158 /* NewExpression */: + case 180 /* VariableStatement */: + case 198 /* VariableDeclaration */: + case 214 /* ExportAssignment */: + case 191 /* ReturnStatement */: + case 170 /* ConditionalExpression */: + case 151 /* ArrayBindingPattern */: + case 150 /* ObjectBindingPattern */: return true; } return false; @@ -29251,22 +34132,22 @@ var ts; return true; } switch (parent) { - case 184: - case 185: - case 187: - case 188: - case 186: - case 183: - case 200: - case 162: - case 134: - case 133: - case 138: - case 163: - case 135: - case 136: - case 137: - return child !== 179; + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 186 /* ForStatement */: + case 183 /* IfStatement */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 138 /* CallSignature */: + case 163 /* ArrowFunction */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + return child !== 179 /* Block */; default: return false; } @@ -29293,6 +34174,7 @@ var __extends = this.__extends || function (d, b) { /// var ts; (function (ts) { + /** The version of the language service API */ ts.servicesVersion = "0.4"; var ScriptSnapshot; (function (ScriptSnapshot) { @@ -29308,6 +34190,8 @@ var ts; return this.text.length; }; StringScriptSnapshot.prototype.getChangeRange = function (oldSnapshot) { + // Text-based snapshots do not support incremental parsing. Return undefined + // to signal that to the caller. return undefined; }; return StringScriptSnapshot; @@ -29317,7 +34201,7 @@ var ts; } ScriptSnapshot.fromString = fromString; })(ScriptSnapshot = ts.ScriptSnapshot || (ts.ScriptSnapshot = {})); - var scanner = ts.createScanner(2, true); + var scanner = ts.createScanner(2 /* Latest */, true); var emptyArray = []; function createNode(kind, pos, end, flags, parent) { var node = new (ts.getNodeConstructor(kind))(); @@ -29362,13 +34246,13 @@ var ts; while (pos < end) { var token = scanner.scan(); var textPos = scanner.getTextPos(); - nodes.push(createNode(token, pos, textPos, 1024, this)); + nodes.push(createNode(token, pos, textPos, 1024 /* Synthetic */, this)); pos = textPos; } return pos; }; NodeObject.prototype.createSyntaxList = function (nodes) { - var list = createNode(228, nodes.pos, nodes.end, 1024, this); + var list = createNode(228 /* SyntaxList */, nodes.pos, nodes.end, 1024 /* Synthetic */, this); list._children = []; var pos = nodes.pos; for (var _i = 0; _i < nodes.length; _i++) { @@ -29387,7 +34271,7 @@ var ts; NodeObject.prototype.createChildren = function (sourceFile) { var _this = this; var children; - if (this.kind >= 126) { + if (this.kind >= 126 /* FirstNode */) { scanner.setText((sourceFile || this.getSourceFile()).text); children = []; var pos = this.pos; @@ -29432,7 +34316,7 @@ var ts; var children = this.getChildren(); for (var _i = 0; _i < children.length; _i++) { var child = children[_i]; - if (child.kind < 126) { + if (child.kind < 126 /* FirstNode */) { return child; } return child.getFirstToken(sourceFile); @@ -29442,7 +34326,7 @@ var ts; var children = this.getChildren(sourceFile); for (var i = children.length - 1; i >= 0; i--) { var child = children[i]; - if (child.kind < 126) { + if (child.kind < 126 /* FirstNode */) { return child; } return child.getLastToken(sourceFile); @@ -29466,7 +34350,7 @@ var ts; }; SymbolObject.prototype.getDocumentationComment = function () { if (this.documentationComment === undefined) { - this.documentationComment = getJsDocCommentsFromDeclarations(this.declarations, this.name, !(this.flags & 4)); + this.documentationComment = getJsDocCommentsFromDeclarations(this.declarations, this.name, !(this.flags & 4 /* Property */)); } return this.documentationComment; }; @@ -29486,9 +34370,16 @@ var ts; var paramTag = "@param"; var jsDocCommentParts = []; ts.forEach(declarations, function (declaration, indexOfDeclaration) { + // Make sure we are collecting doc comment from declaration once, + // In case of union property there might be same declaration multiple times + // which only varies in type parameter + // Eg. let a: Array | Array; a.length + // The property length will have two declarations of property length coming + // from Array - Array and Array if (ts.indexOf(declarations, declaration) === indexOfDeclaration) { var sourceFileOfDeclaration = ts.getSourceFileOfNode(declaration); - if (canUseParsedParamTagComments && declaration.kind === 129) { + // If it is parameter - try and get the jsDoc comment with @param tag from function declaration's jsDoc comments + if (canUseParsedParamTagComments && declaration.kind === 129 /* Parameter */) { ts.forEach(getJsDocCommentTextRange(declaration.parent, sourceFileOfDeclaration), function (jsDocCommentTextRange) { var cleanedParamJsDocComment = getCleanedParamJsDocComment(jsDocCommentTextRange.pos, jsDocCommentTextRange.end, sourceFileOfDeclaration); if (cleanedParamJsDocComment) { @@ -29496,13 +34387,16 @@ var ts; } }); } - if (declaration.kind === 205 && declaration.body.kind === 205) { + // If this is left side of dotted module declaration, there is no doc comments associated with this node + if (declaration.kind === 205 /* ModuleDeclaration */ && declaration.body.kind === 205 /* ModuleDeclaration */) { return; } - while (declaration.kind === 205 && declaration.parent.kind === 205) { + // If this is dotted module name, get the doc comments from the parent + while (declaration.kind === 205 /* ModuleDeclaration */ && declaration.parent.kind === 205 /* ModuleDeclaration */) { declaration = declaration.parent; } - ts.forEach(getJsDocCommentTextRange(declaration.kind === 198 ? declaration.parent.parent : declaration, sourceFileOfDeclaration), function (jsDocCommentTextRange) { + // Get the cleaned js doc comment text from the declaration + ts.forEach(getJsDocCommentTextRange(declaration.kind === 198 /* VariableDeclaration */ ? declaration.parent.parent : declaration, sourceFileOfDeclaration), function (jsDocCommentTextRange) { var cleanedJsDocComment = getCleanedJsDocComment(jsDocCommentTextRange.pos, jsDocCommentTextRange.end, sourceFileOfDeclaration); if (cleanedJsDocComment) { jsDocCommentParts.push.apply(jsDocCommentParts, cleanedJsDocComment); @@ -29515,7 +34409,7 @@ var ts; return ts.map(ts.getJsDocComments(node, sourceFile), function (jsDocComment) { return { pos: jsDocComment.pos + "/*".length, - end: jsDocComment.end - "*/".length + end: jsDocComment.end - "*/".length // Trim off comment end indicator }; }); } @@ -29526,6 +34420,7 @@ var ts; for (; pos < end; pos++) { var ch = sourceFile.text.charCodeAt(pos); if (!ts.isWhiteSpace(ch) || ts.isLineBreak(ch)) { + // Either found lineBreak or non whiteSpace return pos; } } @@ -29544,9 +34439,11 @@ var ts; ts.isLineBreak(sourceFile.text.charCodeAt(pos + name.length))); } function isParamTag(pos, end, sourceFile) { + // If it is @param tag return isName(pos, end, sourceFile, paramTag); } function pushDocCommentLineText(docComments, text, blankLineCount) { + // Add the empty lines in between texts while (blankLineCount--) { docComments.push(ts.textPart("")); } @@ -29559,10 +34456,13 @@ var ts; var isInParamTag = false; while (pos < end) { var docCommentTextOfLine = ""; + // First consume leading white space pos = consumeWhiteSpacesOnTheLine(pos, end, sourceFile); - if (pos < end && sourceFile.text.charCodeAt(pos) === 42) { + // If the comment starts with '*' consume the spaces on this line + if (pos < end && sourceFile.text.charCodeAt(pos) === 42 /* asterisk */) { var lineStartPos = pos + 1; pos = consumeWhiteSpacesOnTheLine(pos + 1, end, sourceFile, spacesToRemoveAfterAsterisk); + // Set the spaces to remove after asterisk as margin if not already set if (spacesToRemoveAfterAsterisk === undefined && pos < end && !ts.isLineBreak(sourceFile.text.charCodeAt(pos))) { spacesToRemoveAfterAsterisk = pos - lineStartPos; } @@ -29570,9 +34470,11 @@ var ts; else if (spacesToRemoveAfterAsterisk === undefined) { spacesToRemoveAfterAsterisk = 0; } + // Analyse text on this line while (pos < end && !ts.isLineBreak(sourceFile.text.charCodeAt(pos))) { var ch = sourceFile.text.charAt(pos); if (ch === "@") { + // If it is @param tag if (isParamTag(pos, end, sourceFile)) { isInParamTag = true; pos += paramTag.length; @@ -29582,17 +34484,21 @@ var ts; isInParamTag = false; } } + // Add the ch to doc text if we arent in param tag if (!isInParamTag) { docCommentTextOfLine += ch; } + // Scan next character pos++; } + // Continue with next line pos = consumeLineBreaks(pos, end, sourceFile); if (docCommentTextOfLine) { pushDocCommentLineText(docComments, docCommentTextOfLine, blankLineCount); blankLineCount = 0; } else if (!isInParamTag && docComments.length) { + // This is blank line when there is text already parsed blankLineCount++; } } @@ -29605,38 +34511,48 @@ var ts; if (isParamTag(pos, end, sourceFile)) { var blankLineCount = 0; var recordedParamTag = false; + // Consume leading spaces pos = consumeWhiteSpaces(pos + paramTag.length); if (pos >= end) { break; } - if (sourceFile.text.charCodeAt(pos) === 123) { + // Ignore type expression + if (sourceFile.text.charCodeAt(pos) === 123 /* openBrace */) { pos++; for (var curlies = 1; pos < end; pos++) { var charCode = sourceFile.text.charCodeAt(pos); - if (charCode === 123) { + // { character means we need to find another } to match the found one + if (charCode === 123 /* openBrace */) { curlies++; continue; } - if (charCode === 125) { + // } char + if (charCode === 125 /* closeBrace */) { curlies--; if (curlies === 0) { + // We do not have any more } to match the type expression is ignored completely pos++; break; } else { + // there are more { to be matched with } continue; } } - if (charCode === 64) { + // Found start of another tag + if (charCode === 64 /* at */) { break; } } + // Consume white spaces pos = consumeWhiteSpaces(pos); if (pos >= end) { break; } } + // Parameter name if (isName(pos, end, sourceFile, name)) { + // Found the parameter we are looking for consume white spaces pos = consumeWhiteSpaces(pos + name.length); if (pos >= end) { break; @@ -29645,6 +34561,7 @@ var ts; var firstLineParamHelpStringPos = pos; while (pos < end) { var ch = sourceFile.text.charCodeAt(pos); + // at line break, set this comment line text and go to next line if (ts.isLineBreak(ch)) { if (paramHelpString) { pushDocCommentLineText(paramDocComments, paramHelpString, blankLineCount); @@ -29655,24 +34572,30 @@ var ts; else if (recordedParamTag) { blankLineCount++; } + // Get the pos after cleaning start of the line setPosForParamHelpStringOnNextLine(firstLineParamHelpStringPos); continue; } - if (ch === 64) { + // Done scanning param help string - next tag found + if (ch === 64 /* at */) { break; } paramHelpString += sourceFile.text.charAt(pos); + // Go to next character pos++; } + // If there is param help text, add it top the doc comments if (paramHelpString) { pushDocCommentLineText(paramDocComments, paramHelpString, blankLineCount); } paramHelpStringMargin = undefined; } - if (sourceFile.text.charCodeAt(pos) === 64) { + // If this is the start of another tag, continue with the loop in seach of param tag with symbol name + if (sourceFile.text.charCodeAt(pos) === 64 /* at */) { continue; } } + // Next character pos++; } return paramDocComments; @@ -29683,6 +34606,7 @@ var ts; return pos; } function setPosForParamHelpStringOnNextLine(firstLineParamHelpStringPos) { + // Get the pos after consuming line breaks pos = consumeLineBreaks(pos, end, sourceFile); if (pos >= end) { return; @@ -29690,6 +34614,7 @@ var ts; if (paramHelpStringMargin === undefined) { paramHelpStringMargin = sourceFile.getLineAndCharacterOfPosition(firstLineParamHelpStringPos).character; } + // Now consume white spaces max var startOfLinePos = pos; pos = consumeWhiteSpacesOnTheLine(pos, end, sourceFile, paramHelpStringMargin); if (pos >= end) { @@ -29698,7 +34623,8 @@ var ts; var consumedSpaces = pos - startOfLinePos; if (consumedSpaces < paramHelpStringMargin) { var ch = sourceFile.text.charCodeAt(pos); - if (ch === 42) { + if (ch === 42 /* asterisk */) { + // Consume more spaces after asterisk pos = consumeWhiteSpacesOnTheLine(pos + 1, end, sourceFile, paramHelpStringMargin - consumedSpaces - 1); } } @@ -29727,16 +34653,16 @@ var ts; return this.checker.getAugmentedPropertiesOfType(this); }; TypeObject.prototype.getCallSignatures = function () { - return this.checker.getSignaturesOfType(this, 0); + return this.checker.getSignaturesOfType(this, 0 /* Call */); }; TypeObject.prototype.getConstructSignatures = function () { - return this.checker.getSignaturesOfType(this, 1); + return this.checker.getSignaturesOfType(this, 1 /* Construct */); }; TypeObject.prototype.getStringIndexType = function () { - return this.checker.getIndexTypeOfType(this, 0); + return this.checker.getIndexTypeOfType(this, 0 /* String */); }; TypeObject.prototype.getNumberIndexType = function () { - return this.checker.getIndexTypeOfType(this, 1); + return this.checker.getIndexTypeOfType(this, 1 /* Number */); }; return TypeObject; })(); @@ -29758,7 +34684,9 @@ var ts; }; SignatureObject.prototype.getDocumentationComment = function () { if (this.documentationComment === undefined) { - this.documentationComment = this.declaration ? getJsDocCommentsFromDeclarations([this.declaration], undefined, false) : []; + this.documentationComment = this.declaration ? getJsDocCommentsFromDeclarations([this.declaration], + /*name*/ undefined, + /*canUseParsedParamTagComments*/ false) : []; } return this.documentationComment; }; @@ -29783,101 +34711,117 @@ var ts; }; SourceFileObject.prototype.getNamedDeclarations = function () { if (!this.namedDeclarations) { - var sourceFile = this; - var namedDeclarations = []; - ts.forEachChild(sourceFile, function visit(node) { - switch (node.kind) { - case 200: - case 134: - case 133: - var functionDeclaration = node; - if (functionDeclaration.name && functionDeclaration.name.getFullWidth() > 0) { - var lastDeclaration = namedDeclarations.length > 0 ? - namedDeclarations[namedDeclarations.length - 1] : - undefined; - if (lastDeclaration && functionDeclaration.symbol === lastDeclaration.symbol) { - if (functionDeclaration.body && !lastDeclaration.body) { - namedDeclarations[namedDeclarations.length - 1] = functionDeclaration; - } - } - else { - namedDeclarations.push(functionDeclaration); - } - ts.forEachChild(node, visit); - } - break; - case 201: - case 202: - case 203: - case 204: - case 205: - case 208: - case 217: - case 213: - case 208: - case 210: - case 211: - case 136: - case 137: - case 145: - if (node.name) { - namedDeclarations.push(node); - } - case 135: - case 180: - case 199: - case 150: - case 151: - case 206: - ts.forEachChild(node, visit); - break; - case 179: - if (ts.isFunctionBlock(node)) { - ts.forEachChild(node, visit); - } - break; - case 129: - if (!(node.flags & 112)) { - break; - } - case 198: - case 152: - if (ts.isBindingPattern(node.name)) { - ts.forEachChild(node.name, visit); - break; - } - case 226: - case 132: - case 131: - namedDeclarations.push(node); - break; - case 215: - if (node.exportClause) { - ts.forEach(node.exportClause.elements, visit); - } - break; - case 209: - var importClause = node.importClause; - if (importClause) { - if (importClause.name) { - namedDeclarations.push(importClause); - } - if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 211) { - namedDeclarations.push(importClause.namedBindings); - } - else { - ts.forEach(importClause.namedBindings.elements, visit); - } - } - } - break; - } - }); - this.namedDeclarations = namedDeclarations; + this.namedDeclarations = this.computeNamedDeclarations(); } return this.namedDeclarations; }; + SourceFileObject.prototype.computeNamedDeclarations = function () { + var namedDeclarations = []; + ts.forEachChild(this, visit); + return namedDeclarations; + function visit(node) { + switch (node.kind) { + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + var functionDeclaration = node; + if (functionDeclaration.name && functionDeclaration.name.getFullWidth() > 0) { + var lastDeclaration = namedDeclarations.length > 0 ? + namedDeclarations[namedDeclarations.length - 1] : + undefined; + // Check whether this declaration belongs to an "overload group". + if (lastDeclaration && functionDeclaration.symbol === lastDeclaration.symbol) { + // Overwrite the last declaration if it was an overload + // and this one is an implementation. + if (functionDeclaration.body && !lastDeclaration.body) { + namedDeclarations[namedDeclarations.length - 1] = functionDeclaration; + } + } + else { + namedDeclarations.push(functionDeclaration); + } + ts.forEachChild(node, visit); + } + break; + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 204 /* EnumDeclaration */: + case 205 /* ModuleDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 217 /* ExportSpecifier */: + case 213 /* ImportSpecifier */: + case 208 /* ImportEqualsDeclaration */: + case 210 /* ImportClause */: + case 211 /* NamespaceImport */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 145 /* TypeLiteral */: + if (node.name) { + namedDeclarations.push(node); + } + // fall through + case 135 /* Constructor */: + case 180 /* VariableStatement */: + case 199 /* VariableDeclarationList */: + case 150 /* ObjectBindingPattern */: + case 151 /* ArrayBindingPattern */: + case 206 /* ModuleBlock */: + ts.forEachChild(node, visit); + break; + case 179 /* Block */: + if (ts.isFunctionBlock(node)) { + ts.forEachChild(node, visit); + } + break; + case 129 /* Parameter */: + // Only consider properties defined as constructor parameters + if (!(node.flags & 112 /* AccessibilityModifier */)) { + break; + } + // fall through + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: + if (ts.isBindingPattern(node.name)) { + ts.forEachChild(node.name, visit); + break; + } + case 226 /* EnumMember */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + namedDeclarations.push(node); + break; + case 215 /* ExportDeclaration */: + // Handle named exports case e.g.: + // export {a, b as B} from "mod"; + if (node.exportClause) { + ts.forEach(node.exportClause.elements, visit); + } + break; + case 209 /* ImportDeclaration */: + var importClause = node.importClause; + if (importClause) { + // Handle default import case e.g.: + // import d from "mod"; + if (importClause.name) { + namedDeclarations.push(importClause); + } + // Handle named bindings in imports e.g.: + // import * as NS from "mod"; + // import {a, b as B} from "mod"; + if (importClause.namedBindings) { + if (importClause.namedBindings.kind === 211 /* NamespaceImport */) { + namedDeclarations.push(importClause.namedBindings); + } + else { + ts.forEach(importClause.namedBindings.elements, visit); + } + } + } + break; + } + } + }; return SourceFileObject; })(NodeObject); var TextChange = (function () { @@ -29886,6 +34830,13 @@ var ts; return TextChange; })(); ts.TextChange = TextChange; + var HighlightSpanKind; + (function (HighlightSpanKind) { + HighlightSpanKind.none = "none"; + HighlightSpanKind.definition = "definition"; + HighlightSpanKind.reference = "reference"; + HighlightSpanKind.writtenReference = "writtenReference"; + })(HighlightSpanKind = ts.HighlightSpanKind || (ts.HighlightSpanKind = {})); (function (SymbolDisplayPartKind) { SymbolDisplayPartKind[SymbolDisplayPartKind["aliasName"] = 0] = "aliasName"; SymbolDisplayPartKind[SymbolDisplayPartKind["className"] = 1] = "className"; @@ -29939,29 +34890,52 @@ var ts; TokenClass[TokenClass["RegExpLiteral"] = 8] = "RegExpLiteral"; })(ts.TokenClass || (ts.TokenClass = {})); var TokenClass = ts.TokenClass; - var ScriptElementKind = (function () { - function ScriptElementKind() { - } + // TODO: move these to enums + var ScriptElementKind; + (function (ScriptElementKind) { ScriptElementKind.unknown = ""; + ScriptElementKind.warning = "warning"; + // predefined type (void) or keyword (class) ScriptElementKind.keyword = "keyword"; + // top level script node ScriptElementKind.scriptElement = "script"; + // module foo {} ScriptElementKind.moduleElement = "module"; + // class X {} ScriptElementKind.classElement = "class"; + // interface Y {} ScriptElementKind.interfaceElement = "interface"; + // type T = ... ScriptElementKind.typeElement = "type"; + // enum E ScriptElementKind.enumElement = "enum"; + // Inside module and script only + // let v = .. ScriptElementKind.variableElement = "var"; + // Inside function ScriptElementKind.localVariableElement = "local var"; + // Inside module and script only + // function f() { } ScriptElementKind.functionElement = "function"; + // Inside function ScriptElementKind.localFunctionElement = "local function"; + // class X { [public|private]* foo() {} } ScriptElementKind.memberFunctionElement = "method"; + // class X { [public|private]* [get|set] foo:number; } ScriptElementKind.memberGetAccessorElement = "getter"; ScriptElementKind.memberSetAccessorElement = "setter"; + // class X { [public|private]* foo:number; } + // interface Y { foo:number; } ScriptElementKind.memberVariableElement = "property"; + // class X { constructor() { } } ScriptElementKind.constructorImplementationElement = "constructor"; + // interface Y { ():number; } ScriptElementKind.callSignatureElement = "call"; + // interface Y { []:number; } ScriptElementKind.indexSignatureElement = "index"; + // interface Y { new():Y; } ScriptElementKind.constructSignatureElement = "construct"; + // function foo(*Y*: string) ScriptElementKind.parameterElement = "parameter"; ScriptElementKind.typeParameterElement = "type parameter"; ScriptElementKind.primitiveType = "primitive type"; @@ -29969,12 +34943,9 @@ var ts; ScriptElementKind.alias = "alias"; ScriptElementKind.constElement = "const"; ScriptElementKind.letElement = "let"; - return ScriptElementKind; - })(); - ts.ScriptElementKind = ScriptElementKind; - var ScriptElementKindModifier = (function () { - function ScriptElementKindModifier() { - } + })(ScriptElementKind = ts.ScriptElementKind || (ts.ScriptElementKind = {})); + var ScriptElementKindModifier; + (function (ScriptElementKindModifier) { ScriptElementKindModifier.none = ""; ScriptElementKindModifier.publicMemberModifier = "public"; ScriptElementKindModifier.privateMemberModifier = "private"; @@ -29982,9 +34953,7 @@ var ts; ScriptElementKindModifier.exportedModifier = "export"; ScriptElementKindModifier.ambientModifier = "declare"; ScriptElementKindModifier.staticModifier = "static"; - return ScriptElementKindModifier; - })(); - ts.ScriptElementKindModifier = ScriptElementKindModifier; + })(ScriptElementKindModifier = ts.ScriptElementKindModifier || (ts.ScriptElementKindModifier = {})); var ClassificationTypeNames = (function () { function ClassificationTypeNames() { } @@ -30015,27 +34984,32 @@ var ts; ts.displayPartsToString = displayPartsToString; function isLocalVariableOrFunction(symbol) { if (symbol.parent) { - return false; + return false; // This is exported symbol } return ts.forEach(symbol.declarations, function (declaration) { - if (declaration.kind === 162) { + // Function expressions are local + if (declaration.kind === 162 /* FunctionExpression */) { return true; } - if (declaration.kind !== 198 && declaration.kind !== 200) { + if (declaration.kind !== 198 /* VariableDeclaration */ && declaration.kind !== 200 /* FunctionDeclaration */) { return false; } - for (var parent_7 = declaration.parent; !ts.isFunctionBlock(parent_7); parent_7 = parent_7.parent) { - if (parent_7.kind === 227 || parent_7.kind === 206) { + // If the parent is not sourceFile or module block it is local variable + for (var parent_8 = declaration.parent; !ts.isFunctionBlock(parent_8); parent_8 = parent_8.parent) { + // Reached source file or module block + if (parent_8.kind === 227 /* SourceFile */ || parent_8.kind === 206 /* ModuleBlock */) { return false; } } + // parent is in function block return true; }); } function getDefaultCompilerOptions() { + // Always default to "ScriptTarget.ES5" for the language service return { - target: 1, - module: 0 + target: 1 /* ES5 */, + module: 0 /* None */ }; } ts.getDefaultCompilerOptions = getDefaultCompilerOptions; @@ -30061,15 +35035,21 @@ var ts; return CancellationTokenObject; })(); ts.CancellationTokenObject = CancellationTokenObject; + // Cache host information about scrip Should be refreshed + // 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) { this.host = host; + // script id => script index this.fileNameToEntry = {}; + // Initialize the list with the root file names var rootFileNames = host.getScriptFileNames(); for (var _i = 0; _i < rootFileNames.length; _i++) { var fileName = rootFileNames[_i]; this.createEntry(fileName); } + // store the compilation settings this._compilationSettings = host.getCompilationSettings() || getDefaultCompilerOptions(); } HostCache.prototype.compilationSettings = function () { @@ -30125,18 +35105,22 @@ var ts; SyntaxTreeCache.prototype.getCurrentSourceFile = function (fileName) { var scriptSnapshot = this.host.getScriptSnapshot(fileName); if (!scriptSnapshot) { + // The host does not know about this file. throw new Error("Could not find file: '" + fileName + "'."); } var version = this.host.getScriptVersion(fileName); var sourceFile; if (this.currentFileName !== fileName) { - sourceFile = createLanguageServiceSourceFile(fileName, scriptSnapshot, 2, version, true); + // This is a new file, just parse it + sourceFile = createLanguageServiceSourceFile(fileName, scriptSnapshot, 2 /* Latest */, version, true); } else if (this.currentFileVersion !== version) { + // This is the same file, just a newer version. Incrementally parse the file. var editRange = scriptSnapshot.getChangeRange(this.currentFileScriptSnapshot); sourceFile = updateLanguageServiceSourceFile(this.currentSourceFile, scriptSnapshot, version, editRange); } if (sourceFile) { + // All done, ensure state is up to date this.currentFileVersion = version; this.currentFileName = fileName; this.currentFileScriptSnapshot = scriptSnapshot; @@ -30150,16 +35134,28 @@ var ts; sourceFile.version = version; sourceFile.scriptSnapshot = scriptSnapshot; } + /* + * This function will compile source text from 'input' argument using specified compiler options. + * If not options are provided - it will use a set of default compiler options. + * Extra compiler options that will unconditionally be used bu this function are: + * - separateCompilation = true + * - allowNonTsExtensions = true + */ function transpile(input, compilerOptions, fileName, diagnostics) { var options = compilerOptions ? ts.clone(compilerOptions) : getDefaultCompilerOptions(); options.separateCompilation = true; + // Filename can be non-ts file. options.allowNonTsExtensions = true; + // Parse var inputFileName = fileName || "module.ts"; var sourceFile = ts.createSourceFile(inputFileName, input, options.target); + // Store syntactic diagnostics if (diagnostics && sourceFile.parseDiagnostics) { diagnostics.push.apply(diagnostics, sourceFile.parseDiagnostics); } + // Output var outputText; + // Create a compilerHost object to allow the compiler to read and write files var compilerHost = { getSourceFile: function (fileName, target) { return fileName === inputFileName ? sourceFile : undefined; }, writeFile: function (name, text, writeByteOrderMark) { @@ -30170,12 +35166,13 @@ var ts; useCaseSensitiveFileNames: function () { return false; }, getCanonicalFileName: function (fileName) { return fileName; }, getCurrentDirectory: function () { return ""; }, - getNewLine: function () { return "\r\n"; } + getNewLine: function () { return (ts.sys && ts.sys.newLine) || "\r\n"; } }; var program = ts.createProgram([inputFileName], options, compilerHost); if (diagnostics) { diagnostics.push.apply(diagnostics, program.getGlobalDiagnostics()); } + // Emit program.emit(); ts.Debug.assert(outputText !== undefined, "Output generation failed"); return outputText; @@ -30184,29 +35181,38 @@ var ts; function createLanguageServiceSourceFile(fileName, scriptSnapshot, scriptTarget, version, setNodeParents) { var sourceFile = ts.createSourceFile(fileName, scriptSnapshot.getText(0, scriptSnapshot.getLength()), scriptTarget, setNodeParents); setSourceFileFields(sourceFile, scriptSnapshot, version); + // after full parsing we can use table with interned strings as name table sourceFile.nameTable = sourceFile.identifiers; return sourceFile; } ts.createLanguageServiceSourceFile = createLanguageServiceSourceFile; ts.disableIncrementalParsing = false; function updateLanguageServiceSourceFile(sourceFile, scriptSnapshot, version, textChangeRange, aggressiveChecks) { + // If we were given a text change range, and our version or open-ness changed, then + // incrementally parse this file. if (textChangeRange) { if (version !== sourceFile.version) { + // Once incremental parsing is ready, then just call into this function. if (!ts.disableIncrementalParsing) { var newSourceFile = ts.updateSourceFile(sourceFile, scriptSnapshot.getText(0, scriptSnapshot.getLength()), textChangeRange, aggressiveChecks); setSourceFileFields(newSourceFile, scriptSnapshot, version); + // after incremental parsing nameTable might not be up-to-date + // drop it so it can be lazily recreated later newSourceFile.nameTable = undefined; return newSourceFile; } } } + // Otherwise, just create a new source file. return createLanguageServiceSourceFile(sourceFile.fileName, scriptSnapshot, sourceFile.languageVersion, version, true); } ts.updateLanguageServiceSourceFile = updateLanguageServiceSourceFile; function createDocumentRegistry() { + // Maps from compiler setting target (ES3, ES5, etc.) to all the cached documents we have + // for those settings. var buckets = {}; function getKeyFromCompilationSettings(settings) { - return "_" + settings.target; + return "_" + settings.target; // + "|" + settings.propagateEnumConstantoString() } function getBucketForCompilationSettings(settings, createIfMissing) { var key = getKeyFromCompilationSettings(settings); @@ -30247,6 +35253,7 @@ var ts; var entry = ts.lookUp(bucket, fileName); if (!entry) { ts.Debug.assert(acquiring, "How could we be trying to update a document that the registry doesn't have?"); + // Have never seen this file with these settings. Create a new source file for it. var sourceFile = createLanguageServiceSourceFile(fileName, scriptSnapshot, compilationSettings.target, version, false); bucket[fileName] = entry = { sourceFile: sourceFile, @@ -30255,10 +35262,18 @@ var ts; }; } else { + // We have an entry for this file. However, it may be for a different version of + // the script snapshot. If so, update it appropriately. Otherwise, we can just + // return it as is. if (entry.sourceFile.version !== version) { entry.sourceFile = updateLanguageServiceSourceFile(entry.sourceFile, scriptSnapshot, version, scriptSnapshot.getChangeRange(entry.sourceFile.scriptSnapshot)); } } + // If we're acquiring, then this is the first time this LS is asking for this document. + // Increase our ref count so we know there's another LS using the document. If we're + // not acquiring, then that means the LS is 'updating' the file instead, and that means + // it has already acquired the document previously. As such, we do not need to increase + // the ref count. if (acquiring) { entry.languageServiceRefCount++; } @@ -30313,67 +35328,87 @@ var ts; function processImport() { scanner.setText(sourceText); var token = scanner.scan(); - while (token !== 1) { - if (token === 85) { + // Look for: + // import "mod"; + // import d from "mod" + // import {a as A } from "mod"; + // import * as NS from "mod" + // import d, {a, b as B} from "mod" + // import i = require("mod"); + // + // export * from "mod" + // export {a as b} from "mod" + while (token !== 1 /* EndOfFileToken */) { + if (token === 85 /* ImportKeyword */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // import "mod"; recordModuleName(); continue; } else { - if (token === 65) { + if (token === 65 /* Identifier */) { token = scanner.scan(); - if (token === 124) { + if (token === 124 /* FromKeyword */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // import d from "mod"; recordModuleName(); continue; } } - else if (token === 53) { + else if (token === 53 /* EqualsToken */) { token = scanner.scan(); - if (token === 118) { + if (token === 118 /* RequireKeyword */) { token = scanner.scan(); - if (token === 16) { + if (token === 16 /* OpenParenToken */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // import i = require("mod"); recordModuleName(); continue; } } } } - else if (token === 23) { + else if (token === 23 /* CommaToken */) { + // consume comma and keep going token = scanner.scan(); } else { + // unknown syntax continue; } } - if (token === 14) { + if (token === 14 /* OpenBraceToken */) { token = scanner.scan(); - while (token !== 15) { + // consume "{ a as B, c, d as D}" clauses + while (token !== 15 /* CloseBraceToken */) { token = scanner.scan(); } - if (token === 15) { + if (token === 15 /* CloseBraceToken */) { token = scanner.scan(); - if (token === 124) { + if (token === 124 /* FromKeyword */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // import {a as A} from "mod"; + // import d, {a, b as B} from "mod" recordModuleName(); } } } } - else if (token === 35) { + else if (token === 35 /* AsteriskToken */) { token = scanner.scan(); - if (token === 102) { + if (token === 102 /* AsKeyword */) { token = scanner.scan(); - if (token === 65) { + if (token === 65 /* Identifier */) { token = scanner.scan(); - if (token === 124) { + if (token === 124 /* FromKeyword */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // import * as NS from "mod" + // import d, * as NS from "mod" recordModuleName(); } } @@ -30382,28 +35417,32 @@ var ts; } } } - else if (token === 78) { + else if (token === 78 /* ExportKeyword */) { token = scanner.scan(); - if (token === 14) { + if (token === 14 /* OpenBraceToken */) { token = scanner.scan(); - while (token !== 15) { + // consume "{ a as B, c, d as D}" clauses + while (token !== 15 /* CloseBraceToken */) { token = scanner.scan(); } - if (token === 15) { + if (token === 15 /* CloseBraceToken */) { token = scanner.scan(); - if (token === 124) { + if (token === 124 /* FromKeyword */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // export {a as A} from "mod"; + // export {a, b as B} from "mod" recordModuleName(); } } } } - else if (token === 35) { + else if (token === 35 /* AsteriskToken */) { token = scanner.scan(); - if (token === 124) { + if (token === 124 /* FromKeyword */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // export * from "mod" recordModuleName(); } } @@ -30420,9 +35459,10 @@ var ts; return { referencedFiles: referencedFiles, importedFiles: importedFiles, isLibFile: isNoDefaultLib }; } ts.preProcessFile = preProcessFile; + /// Helpers function getTargetLabel(referenceNode, labelName) { while (referenceNode) { - if (referenceNode.kind === 194 && referenceNode.label.text === labelName) { + if (referenceNode.kind === 194 /* LabeledStatement */ && referenceNode.label.text === labelName) { return referenceNode.label; } referenceNode = referenceNode.parent; @@ -30430,17 +35470,21 @@ var ts; return undefined; } function isJumpStatementTarget(node) { - return node.kind === 65 && - (node.parent.kind === 190 || node.parent.kind === 189) && + return node.kind === 65 /* Identifier */ && + (node.parent.kind === 190 /* BreakStatement */ || node.parent.kind === 189 /* ContinueStatement */) && node.parent.label === node; } function isLabelOfLabeledStatement(node) { - return node.kind === 65 && - node.parent.kind === 194 && + return node.kind === 65 /* Identifier */ && + node.parent.kind === 194 /* LabeledStatement */ && node.parent.label === node; } + /** + * Whether or not a 'node' is preceded by a label of the given string. + * Note: 'node' cannot be a SourceFile. + */ function isLabeledBy(node, labelName) { - for (var owner = node.parent; owner.kind === 194; owner = owner.parent) { + for (var owner = node.parent; owner.kind === 194 /* LabeledStatement */; owner = owner.parent) { if (owner.label.text === labelName) { return true; } @@ -30451,78 +35495,84 @@ var ts; return isLabelOfLabeledStatement(node) || isJumpStatementTarget(node); } function isRightSideOfQualifiedName(node) { - return node.parent.kind === 126 && node.parent.right === node; + return node.parent.kind === 126 /* QualifiedName */ && node.parent.right === node; } function isRightSideOfPropertyAccess(node) { - return node && node.parent && node.parent.kind === 155 && node.parent.name === node; + return node && node.parent && node.parent.kind === 155 /* PropertyAccessExpression */ && node.parent.name === node; } function isCallExpressionTarget(node) { if (isRightSideOfPropertyAccess(node)) { node = node.parent; } - return node && node.parent && node.parent.kind === 157 && node.parent.expression === node; + return node && node.parent && node.parent.kind === 157 /* CallExpression */ && node.parent.expression === node; } function isNewExpressionTarget(node) { if (isRightSideOfPropertyAccess(node)) { node = node.parent; } - return node && node.parent && node.parent.kind === 158 && node.parent.expression === node; + return node && node.parent && node.parent.kind === 158 /* NewExpression */ && node.parent.expression === node; } function isNameOfModuleDeclaration(node) { - return node.parent.kind === 205 && node.parent.name === node; + return node.parent.kind === 205 /* ModuleDeclaration */ && node.parent.name === node; } function isNameOfFunctionDeclaration(node) { - return node.kind === 65 && + return node.kind === 65 /* Identifier */ && ts.isFunctionLike(node.parent) && node.parent.name === node; } + /** Returns true if node is a name of an object literal property, e.g. "a" in x = { "a": 1 } */ function isNameOfPropertyAssignment(node) { - return (node.kind === 65 || node.kind === 8 || node.kind === 7) && - (node.parent.kind === 224 || node.parent.kind === 225) && node.parent.name === node; + return (node.kind === 65 /* Identifier */ || node.kind === 8 /* StringLiteral */ || node.kind === 7 /* NumericLiteral */) && + (node.parent.kind === 224 /* PropertyAssignment */ || node.parent.kind === 225 /* ShorthandPropertyAssignment */) && node.parent.name === node; } function isLiteralNameOfPropertyDeclarationOrIndexAccess(node) { - if (node.kind === 8 || node.kind === 7) { + if (node.kind === 8 /* StringLiteral */ || node.kind === 7 /* NumericLiteral */) { switch (node.parent.kind) { - case 132: - case 131: - case 224: - case 226: - case 134: - case 133: - case 136: - case 137: - case 205: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 224 /* PropertyAssignment */: + case 226 /* EnumMember */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 205 /* ModuleDeclaration */: return node.parent.name === node; - case 156: + case 156 /* ElementAccessExpression */: return node.parent.argumentExpression === node; } } return false; } function isNameOfExternalModuleImportOrDeclaration(node) { - if (node.kind === 8) { + if (node.kind === 8 /* StringLiteral */) { return isNameOfModuleDeclaration(node) || (ts.isExternalModuleImportEqualsDeclaration(node.parent.parent) && ts.getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node); } return false; } + /** Returns true if the position is within a comment */ function isInsideComment(sourceFile, token, position) { + // The position has to be: 1. in the leading trivia (before token.getStart()), and 2. within a comment return position <= token.getStart(sourceFile) && (isInsideCommentRange(ts.getTrailingCommentRanges(sourceFile.text, token.getFullStart())) || isInsideCommentRange(ts.getLeadingCommentRanges(sourceFile.text, token.getFullStart()))); function isInsideCommentRange(comments) { return ts.forEach(comments, function (comment) { + // either we are 1. completely inside the comment, or 2. at the end of the comment if (comment.pos < position && position < comment.end) { return true; } else if (position === comment.end) { var text = sourceFile.text; var width = comment.end - comment.pos; - if (width <= 2 || text.charCodeAt(comment.pos + 1) === 47) { + // is single line comment or just /* + if (width <= 2 || text.charCodeAt(comment.pos + 1) === 47 /* slash */) { return true; } else { - return !(text.charCodeAt(comment.end - 1) === 47 && - text.charCodeAt(comment.end - 2) === 42); + // is unterminated multi-line comment + return !(text.charCodeAt(comment.end - 1) === 47 /* slash */ && + text.charCodeAt(comment.end - 2) === 42 /* asterisk */); } } return false; @@ -30544,71 +35594,73 @@ var ts; BreakContinueSearchType[BreakContinueSearchType["Labeled"] = 2] = "Labeled"; BreakContinueSearchType[BreakContinueSearchType["All"] = 3] = "All"; })(BreakContinueSearchType || (BreakContinueSearchType = {})); + // A cache of completion entries for keywords, these do not change between sessions var keywordCompletions = []; - for (var i = 66; i <= 125; i++) { + for (var i = 66 /* FirstKeyword */; i <= 125 /* LastKeyword */; i++) { keywordCompletions.push({ name: ts.tokenToString(i), kind: ScriptElementKind.keyword, - kindModifiers: ScriptElementKindModifier.none + kindModifiers: ScriptElementKindModifier.none, + sortText: "0" }); } - function getContainerNode(node) { + /* @internal */ function getContainerNode(node) { while (true) { node = node.parent; if (!node) { return undefined; } switch (node.kind) { - case 227: - case 134: - case 133: - case 200: - case 162: - case 136: - case 137: - case 201: - case 202: - case 204: - case 205: + case 227 /* SourceFile */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: + case 205 /* ModuleDeclaration */: return node; } } } ts.getContainerNode = getContainerNode; - function getNodeKind(node) { + /* @internal */ function getNodeKind(node) { switch (node.kind) { - case 205: return ScriptElementKind.moduleElement; - case 201: return ScriptElementKind.classElement; - case 202: return ScriptElementKind.interfaceElement; - case 203: return ScriptElementKind.typeElement; - case 204: return ScriptElementKind.enumElement; - case 198: + case 205 /* ModuleDeclaration */: return ScriptElementKind.moduleElement; + case 201 /* ClassDeclaration */: return ScriptElementKind.classElement; + case 202 /* InterfaceDeclaration */: return ScriptElementKind.interfaceElement; + case 203 /* TypeAliasDeclaration */: return ScriptElementKind.typeElement; + case 204 /* EnumDeclaration */: return ScriptElementKind.enumElement; + case 198 /* VariableDeclaration */: return ts.isConst(node) ? ScriptElementKind.constElement : ts.isLet(node) ? ScriptElementKind.letElement : ScriptElementKind.variableElement; - case 200: return ScriptElementKind.functionElement; - case 136: return ScriptElementKind.memberGetAccessorElement; - case 137: return ScriptElementKind.memberSetAccessorElement; - case 134: - case 133: + case 200 /* FunctionDeclaration */: return ScriptElementKind.functionElement; + case 136 /* GetAccessor */: return ScriptElementKind.memberGetAccessorElement; + case 137 /* SetAccessor */: return ScriptElementKind.memberSetAccessorElement; + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return ScriptElementKind.memberFunctionElement; - case 132: - case 131: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: return ScriptElementKind.memberVariableElement; - case 140: return ScriptElementKind.indexSignatureElement; - case 139: return ScriptElementKind.constructSignatureElement; - case 138: return ScriptElementKind.callSignatureElement; - case 135: return ScriptElementKind.constructorImplementationElement; - case 128: return ScriptElementKind.typeParameterElement; - case 226: return ScriptElementKind.variableElement; - case 129: return (node.flags & 112) ? ScriptElementKind.memberVariableElement : ScriptElementKind.parameterElement; - case 208: - case 213: - case 210: - case 217: - case 211: + case 140 /* IndexSignature */: return ScriptElementKind.indexSignatureElement; + case 139 /* ConstructSignature */: return ScriptElementKind.constructSignatureElement; + case 138 /* CallSignature */: return ScriptElementKind.callSignatureElement; + case 135 /* Constructor */: return ScriptElementKind.constructorImplementationElement; + case 128 /* TypeParameter */: return ScriptElementKind.typeParameterElement; + case 226 /* EnumMember */: return ScriptElementKind.variableElement; + case 129 /* Parameter */: return (node.flags & 112 /* AccessibilityModifier */) ? ScriptElementKind.memberVariableElement : ScriptElementKind.parameterElement; + case 208 /* ImportEqualsDeclaration */: + case 213 /* ImportSpecifier */: + case 210 /* ImportClause */: + case 217 /* ExportSpecifier */: + case 211 /* NamespaceImport */: return ScriptElementKind.alias; } return ScriptElementKind.unknown; @@ -30619,9 +35671,11 @@ var ts; var syntaxTreeCache = new SyntaxTreeCache(host); var ruleProvider; var program; + // this checker is used to answer all LS questions except errors var typeInfoResolver; var useCaseSensitivefileNames = false; var cancellationToken = new CancellationTokenObject(host.getCancellationToken && host.getCancellationToken()); + // Check if the localized messages json is set, otherwise query the host for it if (!ts.localizedDiagnosticMessages && host.getLocalizedDiagnosticMessages) { ts.localizedDiagnosticMessages = host.getLocalizedDiagnosticMessages(); } @@ -30642,6 +35696,7 @@ var ts; return sourceFile; } function getRuleProvider(options) { + // Ensure rules are initialized and up to date wrt to formatting options if (!ruleProvider) { ruleProvider = new ts.formatting.RulesProvider(); } @@ -30649,13 +35704,21 @@ var ts; return ruleProvider; } function synchronizeHostData() { + // Get a fresh cache of the host information var hostCache = new HostCache(host); + // If the program is already up-to-date, we can reuse it if (programUpToDate()) { return; } + // IMPORTANT - It is critical from this moment onward that we do not check + // cancellation tokens. We are about to mutate source files from a previous program + // instance. If we cancel midway through, we may end up in an inconsistent state where + // the program points to old source files that have been invalidated because of + // incremental parsing. var oldSettings = program && program.getCompilerOptions(); var newSettings = hostCache.compilationSettings(); var changesInCompilationSettingsAffectSyntax = oldSettings && oldSettings.target !== newSettings.target; + // Now create a new compiler var newProgram = ts.createProgram(hostCache.getRootFileNames(), newSettings, { getSourceFile: getOrCreateSourceFile, getCancellationToken: function () { return cancellationToken; }, @@ -30666,6 +35729,8 @@ var ts; writeFile: function (fileName, data, writeByteOrderMark) { }, getCurrentDirectory: function () { return host.getCurrentDirectory(); } }); + // Release any files we have acquired in the old program but are + // not part of the new program. if (program) { var oldSourceFiles = program.getSourceFiles(); for (var _i = 0; _i < oldSourceFiles.length; _i++) { @@ -30680,35 +35745,68 @@ var ts; typeInfoResolver = program.getTypeChecker(); return; function getOrCreateSourceFile(fileName) { + // The program is asking for this file, check first if the host can locate it. + // If the host can not locate the file, then it does not exist. return undefined + // to the program to allow reporting of errors for missing files. var hostFileInformation = hostCache.getOrCreateEntry(fileName); if (!hostFileInformation) { return undefined; } + // Check if the language version has changed since we last created a program; if they are the same, + // it is safe to reuse the souceFiles; if not, then the shape of the AST can change, and the oldSourceFile + // can not be reused. we have to dump all syntax trees and create new ones. if (!changesInCompilationSettingsAffectSyntax) { + // Check if the old program had this file already var oldSourceFile = program && program.getSourceFile(fileName); if (oldSourceFile) { + // We already had a source file for this file name. Go to the registry to + // ensure that we get the right up to date version of it. We need this to + // address the following 'race'. Specifically, say we have the following: + // + // LS1 + // \ + // DocumentRegistry + // / + // LS2 + // + // Each LS has a reference to file 'foo.ts' at version 1. LS2 then updates + // it's version of 'foo.ts' to version 2. This will cause LS2 and the + // DocumentRegistry to have version 2 of the document. HOwever, LS1 will + // have version 1. And *importantly* this source file will be *corrupt*. + // The act of creating version 2 of the file irrevocably damages the version + // 1 file. + // + // So, later when we call into LS1, we need to make sure that it doesn't use + // it's source file any more, and instead defers to DocumentRegistry to get + // either version 1, version 2 (or some other version) depending on what the + // host says should be used. return documentRegistry.updateDocument(fileName, newSettings, hostFileInformation.scriptSnapshot, hostFileInformation.version); } } + // Could not find this file in the old program, create a new SourceFile for it. return documentRegistry.acquireDocument(fileName, newSettings, hostFileInformation.scriptSnapshot, hostFileInformation.version); } function sourceFileUpToDate(sourceFile) { return sourceFile && sourceFile.version === hostCache.getVersion(sourceFile.fileName); } function programUpToDate() { + // If we haven't create a program yet, then it is not up-to-date if (!program) { return false; } + // If number of files in the program do not match, it is not up-to-date var rootFileNames = hostCache.getRootFileNames(); if (program.getSourceFiles().length !== rootFileNames.length) { return false; } + // If any file is not up-to-date, then the whole program is not up-to-date for (var _i = 0; _i < rootFileNames.length; _i++) { var fileName = rootFileNames[_i]; if (!sourceFileUpToDate(program.getSourceFile(fileName))) { return false; } } + // If the compilation settings do no match, then the program is not up-to-date return ts.compareDataObjects(program.getCompilerOptions(), hostCache.compilationSettings()); } } @@ -30716,6 +35814,11 @@ var ts; synchronizeHostData(); return program; } + /** + * Clean up any semantic caches that are not needed. + * The host can call this method if it wants to jettison unused memory. + * We will just dump the typeChecker and recreate a new one. this should have the effect of destroying all the semantic caches. + */ function cleanupSemanticCache() { if (program) { typeInfoResolver = program.getTypeChecker(); @@ -30728,41 +35831,216 @@ var ts; }); } } + /// Diagnostics function getSyntacticDiagnostics(fileName) { synchronizeHostData(); return program.getSyntacticDiagnostics(getValidSourceFile(fileName)); } + function isJavaScript(fileName) { + return ts.fileExtensionIs(fileName, ".js"); + } + /** + * getSemanticDiagnostiscs return array of Diagnostics. If '-d' is not enabled, only report semantic errors + * If '-d' enabled, report both semantic and emitter errors + */ function getSemanticDiagnostics(fileName) { synchronizeHostData(); var targetSourceFile = getValidSourceFile(fileName); + // For JavaScript files, we don't want to report the normal typescript semantic errors. + // Instead, we just report errors for using TypeScript-only constructs from within a + // JavaScript file. + if (isJavaScript(fileName)) { + return getJavaScriptSemanticDiagnostics(targetSourceFile); + } + // Only perform the action per file regardless of '-out' flag as LanguageServiceHost is expected to call this function per file. + // Therefore only get diagnostics for given file. var semanticDiagnostics = program.getSemanticDiagnostics(targetSourceFile); if (!program.getCompilerOptions().declaration) { return semanticDiagnostics; } + // If '-d' is enabled, check for emitter error. One example of emitter error is export class implements non-export interface var declarationDiagnostics = program.getDeclarationDiagnostics(targetSourceFile); return ts.concatenate(semanticDiagnostics, declarationDiagnostics); } + function getJavaScriptSemanticDiagnostics(sourceFile) { + var diagnostics = []; + walk(sourceFile); + return diagnostics; + function walk(node) { + if (!node) { + return false; + } + switch (node.kind) { + case 208 /* ImportEqualsDeclaration */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.import_can_only_be_used_in_a_ts_file)); + return true; + case 214 /* ExportAssignment */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.export_can_only_be_used_in_a_ts_file)); + return true; + case 201 /* ClassDeclaration */: + var classDeclaration = node; + if (checkModifiers(classDeclaration.modifiers) || + checkTypeParameters(classDeclaration.typeParameters)) { + return true; + } + break; + case 222 /* HeritageClause */: + var heritageClause = node; + if (heritageClause.token === 103 /* ImplementsKeyword */) { + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file)); + return true; + } + break; + case 202 /* InterfaceDeclaration */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file)); + return true; + case 205 /* ModuleDeclaration */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file)); + return true; + case 203 /* TypeAliasDeclaration */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file)); + return true; + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 162 /* FunctionExpression */: + case 200 /* FunctionDeclaration */: + case 163 /* ArrowFunction */: + case 200 /* FunctionDeclaration */: + var functionDeclaration = node; + if (checkModifiers(functionDeclaration.modifiers) || + checkTypeParameters(functionDeclaration.typeParameters) || + checkTypeAnnotation(functionDeclaration.type)) { + return true; + } + break; + case 180 /* VariableStatement */: + var variableStatement = node; + if (checkModifiers(variableStatement.modifiers)) { + return true; + } + break; + case 198 /* VariableDeclaration */: + var variableDeclaration = node; + if (checkTypeAnnotation(variableDeclaration.type)) { + return true; + } + break; + case 157 /* CallExpression */: + case 158 /* NewExpression */: + var expression = node; + if (expression.typeArguments && expression.typeArguments.length > 0) { + var start = expression.typeArguments.pos; + diagnostics.push(ts.createFileDiagnostic(sourceFile, start, expression.typeArguments.end - start, ts.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file)); + return true; + } + break; + case 129 /* Parameter */: + var parameter = node; + if (parameter.modifiers) { + var start = parameter.modifiers.pos; + diagnostics.push(ts.createFileDiagnostic(sourceFile, start, parameter.modifiers.end - start, ts.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file)); + return true; + } + if (parameter.questionToken) { + diagnostics.push(ts.createDiagnosticForNode(parameter.questionToken, ts.Diagnostics.can_only_be_used_in_a_ts_file)); + return true; + } + if (parameter.type) { + diagnostics.push(ts.createDiagnosticForNode(parameter.type, ts.Diagnostics.types_can_only_be_used_in_a_ts_file)); + return true; + } + break; + case 132 /* PropertyDeclaration */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.property_declarations_can_only_be_used_in_a_ts_file)); + return true; + case 204 /* EnumDeclaration */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file)); + return true; + case 160 /* TypeAssertionExpression */: + var typeAssertionExpression = node; + diagnostics.push(ts.createDiagnosticForNode(typeAssertionExpression.type, ts.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file)); + return true; + case 130 /* Decorator */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.decorators_can_only_be_used_in_a_ts_file)); + return true; + } + return ts.forEachChild(node, walk); + } + function checkTypeParameters(typeParameters) { + if (typeParameters) { + var start = typeParameters.pos; + diagnostics.push(ts.createFileDiagnostic(sourceFile, start, typeParameters.end - start, ts.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file)); + return true; + } + return false; + } + function checkTypeAnnotation(type) { + if (type) { + diagnostics.push(ts.createDiagnosticForNode(type, ts.Diagnostics.types_can_only_be_used_in_a_ts_file)); + return true; + } + return false; + } + function checkModifiers(modifiers) { + if (modifiers) { + for (var _i = 0; _i < modifiers.length; _i++) { + var modifier = modifiers[_i]; + switch (modifier.kind) { + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: + case 115 /* DeclareKeyword */: + diagnostics.push(ts.createDiagnosticForNode(modifier, ts.Diagnostics._0_can_only_be_used_in_a_ts_file, ts.tokenToString(modifier.kind))); + return true; + // These are all legal modifiers. + case 110 /* StaticKeyword */: + case 78 /* ExportKeyword */: + case 70 /* ConstKeyword */: + case 73 /* DefaultKeyword */: + } + } + } + return false; + } + } function getCompilerOptionsDiagnostics() { synchronizeHostData(); return program.getGlobalDiagnostics(); } - function getCompletionEntryDisplayName(symbol, target, performCharacterChecks) { + /// Completion + function getCompletionEntryDisplayNameForSymbol(symbol, target, performCharacterChecks) { var displayName = symbol.getName(); + if (displayName) { + // If this is the default export, get the name of the declaration if it exists + if (displayName === "default") { + var localSymbol = ts.getLocalSymbolForExportDefault(symbol); + if (localSymbol && localSymbol.name) { + displayName = symbol.valueDeclaration.localSymbol.name; + } + } + var firstCharCode = displayName.charCodeAt(0); + // First check of the displayName is not external module; if it is an external module, it is not valid entry + if ((symbol.flags & 1536 /* Namespace */) && (firstCharCode === 39 /* singleQuote */ || firstCharCode === 34 /* doubleQuote */)) { + // If the symbol is external module, don't show it in the completion list + // (i.e declare module "http" { let x; } | // <= request completion here, "http" should not be there) + return undefined; + } + } + return getCompletionEntryDisplayName(displayName, target, performCharacterChecks); + } + function getCompletionEntryDisplayName(displayName, target, performCharacterChecks) { if (!displayName) { return undefined; } - if (displayName === "default") { - var localSymbol = ts.getLocalSymbolForExportDefault(symbol); - if (localSymbol && localSymbol.name) { - displayName = symbol.valueDeclaration.localSymbol.name; - } - } var firstCharCode = displayName.charCodeAt(0); - if ((symbol.flags & 1536) && (firstCharCode === 39 || firstCharCode === 34)) { - return undefined; - } - if (displayName && displayName.length >= 2 && firstCharCode === displayName.charCodeAt(displayName.length - 1) && - (firstCharCode === 39 || firstCharCode === 34)) { + if (displayName.length >= 2 && + firstCharCode === displayName.charCodeAt(displayName.length - 1) && + (firstCharCode === 39 /* singleQuote */ || firstCharCode === 34 /* doubleQuote */)) { + // If the user entered name for the symbol was quoted, removing the quotes is not enough, as the name could be an + // invalid identifier name. We need to check if whatever was inside the quotes is actually a valid identifier name. displayName = displayName.substring(1, displayName.length - 1); } if (!displayName) { @@ -30781,14 +36059,25 @@ var ts; return ts.unescapeIdentifier(displayName); } function createCompletionEntry(symbol, typeChecker, location) { - var displayName = getCompletionEntryDisplayName(symbol, program.getCompilerOptions().target, true); + // Try to get a valid display name for this symbol, if we could not find one, then ignore it. + // We would like to only show things that can be added after a dot, so for instance numeric properties can + // not be accessed with a dot (a.1 <- invalid) + var displayName = getCompletionEntryDisplayNameForSymbol(symbol, program.getCompilerOptions().target, true); if (!displayName) { return undefined; } + // TODO(drosen): Right now we just permit *all* semantic meanings when calling + // 'getSymbolKind' which is permissible given that it is backwards compatible; but + // really we should consider passing the meaning for the node so that we don't report + // that a suggestion for a value is an interface. We COULD also just do what + // 'getSymbolModifiers' does, which is to use the first declaration. + // Use a 'sortText' of 0' so that all symbol completion entries come before any other + // entries (like JavaScript identifier entries). return { name: displayName, kind: getSymbolKind(symbol, typeChecker, location), - kindModifiers: getSymbolModifiers(symbol) + kindModifiers: getSymbolModifiers(symbol), + sortText: "0" }; } function getCompletionData(fileName, position) { @@ -30798,6 +36087,7 @@ var ts; var currentToken = ts.getTokenAtPosition(sourceFile, position); log("getCompletionData: Get current token: " + (new Date().getTime() - start)); start = new Date().getTime(); + // Completion not allowed inside comments, bail out if this is the case var insideComment = isInsideComment(sourceFile, currentToken, position); log("getCompletionData: Is inside comment: " + (new Date().getTime() - start)); if (insideComment) { @@ -30807,23 +36097,31 @@ var ts; start = new Date().getTime(); var previousToken = ts.findPrecedingToken(position, sourceFile); log("getCompletionData: Get previous token 1: " + (new Date().getTime() - start)); + // The decision to provide completion depends on the contextToken, which is determined through the previousToken. + // Note: 'previousToken' (and thus 'contextToken') can be undefined if we are the beginning of the file var contextToken = previousToken; + // Check if the caret is at the end of an identifier; this is a partial identifier that we want to complete: e.g. a.toS| + // Skip this partial identifier and adjust the contextToken to the token that precedes it. if (contextToken && position <= contextToken.end && ts.isWord(contextToken.kind)) { var start_1 = new Date().getTime(); contextToken = ts.findPrecedingToken(contextToken.getFullStart(), sourceFile); log("getCompletionData: Get previous token 2: " + (new Date().getTime() - start_1)); } + // Check if this is a valid completion location if (contextToken && isCompletionListBlocker(contextToken)) { log("Returning an empty list because completion was requested in an invalid position."); return undefined; } + // Find the node where completion is requested on, in the case of a completion after + // a dot, it is the member access expression other wise, it is a request for all + // visible symbols in the scope, and the node is the current location. var node = currentToken; var isRightOfDot = false; - if (contextToken && contextToken.kind === 20 && contextToken.parent.kind === 155) { + if (contextToken && contextToken.kind === 20 /* DotToken */ && contextToken.parent.kind === 155 /* PropertyAccessExpression */) { node = contextToken.parent.expression; isRightOfDot = true; } - else if (contextToken && contextToken.kind === 20 && contextToken.parent.kind === 126) { + else if (contextToken && contextToken.kind === 20 /* DotToken */ && contextToken.parent.kind === 126 /* QualifiedName */) { node = contextToken.parent.left; isRightOfDot = true; } @@ -30832,18 +36130,34 @@ var ts; var semanticStart = new Date().getTime(); var isMemberCompletion; var isNewIdentifierLocation; - var symbols; + var symbols = []; if (isRightOfDot) { - symbols = []; + getTypeScriptMemberSymbols(); + } + else { + // For JavaScript or TypeScript, if we're not after a dot, then just try to get the + // global symbols in scope. These results should be valid for either language as + // the set of symbols that can be referenced from this location. + if (!tryGetGlobalSymbols()) { + return undefined; + } + } + log("getCompletionData: Semantic work: " + (new Date().getTime() - semanticStart)); + return { symbols: symbols, isMemberCompletion: isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation, location: location, isRightOfDot: isRightOfDot }; + function getTypeScriptMemberSymbols() { + // Right of dot member completion list isMemberCompletion = true; isNewIdentifierLocation = false; - if (node.kind === 65 || node.kind === 126 || node.kind === 155) { + if (node.kind === 65 /* Identifier */ || node.kind === 126 /* QualifiedName */ || node.kind === 155 /* PropertyAccessExpression */) { var symbol = typeInfoResolver.getSymbolAtLocation(node); - if (symbol && symbol.flags & 8388608) { + // This is an alias, follow what it aliases + if (symbol && symbol.flags & 8388608 /* Alias */) { symbol = typeInfoResolver.getAliasedSymbol(symbol); } - if (symbol && symbol.flags & 1952) { - ts.forEachValue(symbol.exports, function (symbol) { + if (symbol && symbol.flags & 1952 /* HasExports */) { + // Extract module or enum members + var exportedSymbols = typeInfoResolver.getExportsOfModule(symbol); + ts.forEach(exportedSymbols, function (symbol) { if (typeInfoResolver.isValidPropertyAccess((node.parent), symbol.name)) { symbols.push(symbol); } @@ -30852,6 +36166,7 @@ var ts; } var type = typeInfoResolver.getTypeAtLocation(node); if (type) { + // Filter private properties ts.forEach(type.getApparentProperties(), function (symbol) { if (typeInfoResolver.isValidPropertyAccess((node.parent), symbol.name)) { symbols.push(symbol); @@ -30859,46 +36174,87 @@ var ts; }); } } - else { + function tryGetGlobalSymbols() { var containingObjectLiteral = getContainingObjectLiteralApplicableForCompletion(contextToken); if (containingObjectLiteral) { + // Object literal expression, look up possible property names from contextual type isMemberCompletion = true; isNewIdentifierLocation = true; var contextualType = typeInfoResolver.getContextualType(containingObjectLiteral); if (!contextualType) { - return undefined; + return false; } var contextualTypeMembers = typeInfoResolver.getPropertiesOfType(contextualType); if (contextualTypeMembers && contextualTypeMembers.length > 0) { + // Add filtered items to the completion list symbols = filterContextualMembersList(contextualTypeMembers, containingObjectLiteral.properties); } } - else if (ts.getAncestor(contextToken, 210)) { + else if (ts.getAncestor(contextToken, 210 /* ImportClause */)) { + // cursor is in import clause + // try to show exported member for imported module isMemberCompletion = true; isNewIdentifierLocation = true; if (showCompletionsInImportsClause(contextToken)) { - var importDeclaration = ts.getAncestor(contextToken, 209); + var importDeclaration = ts.getAncestor(contextToken, 209 /* ImportDeclaration */); ts.Debug.assert(importDeclaration !== undefined); - var exports = typeInfoResolver.getExportsOfExternalModule(importDeclaration); - symbols = filterModuleExports(exports, importDeclaration); + var exports; + if (importDeclaration.moduleSpecifier) { + var moduleSpecifierSymbol = typeInfoResolver.getSymbolAtLocation(importDeclaration.moduleSpecifier); + if (moduleSpecifierSymbol) { + exports = typeInfoResolver.getExportsOfModule(moduleSpecifierSymbol); + } + } + //let exports = typeInfoResolver.getExportsOfImportDeclaration(importDeclaration); + symbols = exports ? filterModuleExports(exports, importDeclaration) : emptyArray; } } else { + // Get all entities in the current scope. isMemberCompletion = false; isNewIdentifierLocation = isNewIdentifierDefinitionLocation(contextToken); if (previousToken !== contextToken) { ts.Debug.assert(!!previousToken, "Expected 'contextToken' to be defined when different from 'previousToken'."); } + // We need to find the node that will give us an appropriate scope to begin + // aggregating completion candidates. This is achieved in 'getScopeNode' + // by finding the first node that encompasses a position, accounting for whether a node + // is "complete" to decide whether a position belongs to the node. + // + // However, at the end of an identifier, we are interested in the scope of the identifier + // itself, but fall outside of the identifier. For instance: + // + // xyz => x$ + // + // the cursor is outside of both the 'x' and the arrow function 'xyz => x', + // so 'xyz' is not returned in our results. + // + // We define 'adjustedPosition' so that we may appropriately account for + // being at the end of an identifier. The intention is that if requesting completion + // at the end of an identifier, it should be effectively equivalent to requesting completion + // anywhere inside/at the beginning of the identifier. So in the previous case, the + // 'adjustedPosition' will work as if requesting completion in the following: + // + // xyz => $x + // + // If previousToken !== contextToken, then + // - 'contextToken' was adjusted to the token prior to 'previousToken' + // because we were at the end of an identifier. + // - 'previousToken' is defined. var adjustedPosition = previousToken !== contextToken ? previousToken.getStart() : position; var scopeNode = getScopeNode(contextToken, adjustedPosition, sourceFile) || sourceFile; - var symbolMeanings = 793056 | 107455 | 1536 | 8388608; + /// TODO filter meaning based on the current context + var symbolMeanings = 793056 /* Type */ | 107455 /* Value */ | 1536 /* Namespace */ | 8388608 /* Alias */; symbols = typeInfoResolver.getSymbolsInScope(scopeNode, symbolMeanings); } + return true; } - log("getCompletionData: Semantic work: " + (new Date().getTime() - semanticStart)); - return { symbols: symbols, isMemberCompletion: isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation, location: location }; + /** + * Finds the first node that "embraces" the position, so that one may + * accurately aggregate locals from the closest containing scope. + */ function getScopeNode(initialToken, position, sourceFile) { var scope = initialToken; while (scope && !ts.positionBelongsToNode(scope, position, sourceFile)) { @@ -30916,8 +36272,10 @@ var ts; } function showCompletionsInImportsClause(node) { if (node) { - if (node.kind === 14 || node.kind === 23) { - return node.parent.kind === 212; + // import {| + // import {a,| + if (node.kind === 14 /* OpenBraceToken */ || node.kind === 23 /* CommaToken */) { + return node.parent.kind === 212 /* NamedImports */; } } return false; @@ -30926,37 +36284,38 @@ var ts; if (previousToken) { var containingNodeKind = previousToken.parent.kind; switch (previousToken.kind) { - case 23: - return containingNodeKind === 157 - || containingNodeKind === 135 - || containingNodeKind === 158 - || containingNodeKind === 153 - || containingNodeKind === 169; - case 16: - return containingNodeKind === 157 - || containingNodeKind === 135 - || containingNodeKind === 158 - || containingNodeKind === 161; - case 18: - return containingNodeKind === 153; - case 117: + case 23 /* CommaToken */: + return containingNodeKind === 157 /* CallExpression */ // func( a, | + || containingNodeKind === 135 /* Constructor */ // constructor( a, | public, protected, private keywords are allowed here, so show completion + || containingNodeKind === 158 /* NewExpression */ // new C(a, | + || containingNodeKind === 153 /* ArrayLiteralExpression */ // [a, | + || containingNodeKind === 169 /* BinaryExpression */; // let x = (a, | + case 16 /* OpenParenToken */: + return containingNodeKind === 157 /* CallExpression */ // func( | + || containingNodeKind === 135 /* Constructor */ // constructor( | + || containingNodeKind === 158 /* NewExpression */ // new C(a| + || containingNodeKind === 161 /* ParenthesizedExpression */; // let x = (a| + case 18 /* OpenBracketToken */: + return containingNodeKind === 153 /* ArrayLiteralExpression */; // [ | + case 117 /* ModuleKeyword */: return true; - case 20: - return containingNodeKind === 205; - case 14: - return containingNodeKind === 201; - case 53: - return containingNodeKind === 198 - || containingNodeKind === 169; - case 11: - return containingNodeKind === 171; - case 12: - return containingNodeKind === 176; - case 109: - case 107: - case 108: - return containingNodeKind === 132; + case 20 /* DotToken */: + return containingNodeKind === 205 /* ModuleDeclaration */; // module A.| + case 14 /* OpenBraceToken */: + return containingNodeKind === 201 /* ClassDeclaration */; // class A{ | + case 53 /* EqualsToken */: + return containingNodeKind === 198 /* VariableDeclaration */ // let x = a| + || containingNodeKind === 169 /* BinaryExpression */; // x = a| + case 11 /* TemplateHead */: + return containingNodeKind === 171 /* TemplateExpression */; // `aa ${| + case 12 /* TemplateMiddle */: + return containingNodeKind === 176 /* TemplateSpan */; // `aa ${10} dd ${| + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: + return containingNodeKind === 132 /* PropertyDeclaration */; // class A{ public | } + // Previous token may have been a keyword that was converted to an identifier. switch (previousToken.getText()) { case "public": case "protected": @@ -30967,9 +36326,11 @@ var ts; return false; } function isInStringOrRegularExpressionOrTemplateLiteral(previousToken) { - if (previousToken.kind === 8 - || previousToken.kind === 9 + if (previousToken.kind === 8 /* StringLiteral */ + || previousToken.kind === 9 /* RegularExpressionLiteral */ || ts.isTemplateLiteralKind(previousToken.kind)) { + // The position has to be either: 1. entirely within the token text, or + // 2. at the end position of an unterminated token. var start_2 = previousToken.getStart(); var end = previousToken.getEnd(); if (start_2 < position && position < end) { @@ -30984,12 +36345,12 @@ var ts; function getContainingObjectLiteralApplicableForCompletion(previousToken) { // The locations in an object literal expression that are applicable for completion are property name definition locations. if (previousToken) { - var parent_8 = previousToken.parent; + var parent_9 = previousToken.parent; switch (previousToken.kind) { - case 14: - case 23: - if (parent_8 && parent_8.kind === 154) { - return parent_8; + case 14 /* OpenBraceToken */: // let x = { | + case 23 /* CommaToken */: + if (parent_9 && parent_9.kind === 154 /* ObjectLiteralExpression */) { + return parent_9; } break; } @@ -30998,16 +36359,16 @@ var ts; } function isFunction(kind) { switch (kind) { - case 162: - case 163: - case 200: - case 134: - case 133: - case 136: - case 137: - case 138: - case 139: - case 140: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: return true; } return false; @@ -31016,61 +36377,62 @@ var ts; if (previousToken) { var containingNodeKind = previousToken.parent.kind; switch (previousToken.kind) { - case 23: - return containingNodeKind === 198 || - containingNodeKind === 199 || - containingNodeKind === 180 || - containingNodeKind === 204 || + case 23 /* CommaToken */: + return containingNodeKind === 198 /* VariableDeclaration */ || + containingNodeKind === 199 /* VariableDeclarationList */ || + containingNodeKind === 180 /* VariableStatement */ || + containingNodeKind === 204 /* EnumDeclaration */ || isFunction(containingNodeKind) || - containingNodeKind === 201 || - containingNodeKind === 200 || - containingNodeKind === 202 || - containingNodeKind === 151 || - containingNodeKind === 150; - case 20: - return containingNodeKind === 151; - case 18: - return containingNodeKind === 151; - case 16: - return containingNodeKind === 223 || + containingNodeKind === 201 /* ClassDeclaration */ || + containingNodeKind === 200 /* FunctionDeclaration */ || + containingNodeKind === 202 /* InterfaceDeclaration */ || + containingNodeKind === 151 /* ArrayBindingPattern */ || + containingNodeKind === 150 /* ObjectBindingPattern */; // function func({ x, y| + case 20 /* DotToken */: + return containingNodeKind === 151 /* ArrayBindingPattern */; // var [.| + case 18 /* OpenBracketToken */: + return containingNodeKind === 151 /* ArrayBindingPattern */; // var [x| + case 16 /* OpenParenToken */: + return containingNodeKind === 223 /* CatchClause */ || isFunction(containingNodeKind); - case 14: - return containingNodeKind === 204 || - containingNodeKind === 202 || - containingNodeKind === 145 || - containingNodeKind === 150; - case 22: - return containingNodeKind === 131 && - (previousToken.parent.parent.kind === 202 || - previousToken.parent.parent.kind === 145); - case 24: - return containingNodeKind === 201 || - containingNodeKind === 200 || - containingNodeKind === 202 || + case 14 /* OpenBraceToken */: + return containingNodeKind === 204 /* EnumDeclaration */ || + containingNodeKind === 202 /* InterfaceDeclaration */ || + containingNodeKind === 145 /* TypeLiteral */ || + containingNodeKind === 150 /* ObjectBindingPattern */; // function func({ x| + case 22 /* SemicolonToken */: + return containingNodeKind === 131 /* PropertySignature */ && + (previousToken.parent.parent.kind === 202 /* InterfaceDeclaration */ || + previousToken.parent.parent.kind === 145 /* TypeLiteral */); // let x : { a; | + case 24 /* LessThanToken */: + return containingNodeKind === 201 /* ClassDeclaration */ || + containingNodeKind === 200 /* FunctionDeclaration */ || + containingNodeKind === 202 /* InterfaceDeclaration */ || isFunction(containingNodeKind); - case 110: - return containingNodeKind === 132; - case 21: - return containingNodeKind === 129 || - containingNodeKind === 135 || - (previousToken.parent.parent.kind === 151); - case 109: - case 107: - case 108: - return containingNodeKind === 129; - case 69: - case 77: - case 104: - case 83: - case 98: - case 116: - case 120: - case 85: - case 105: - case 70: - case 111: + case 110 /* StaticKeyword */: + return containingNodeKind === 132 /* PropertyDeclaration */; + case 21 /* DotDotDotToken */: + return containingNodeKind === 129 /* Parameter */ || + containingNodeKind === 135 /* Constructor */ || + (previousToken.parent.parent.kind === 151 /* ArrayBindingPattern */); // var [ ...z| + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: + return containingNodeKind === 129 /* Parameter */; + case 69 /* ClassKeyword */: + case 77 /* EnumKeyword */: + case 104 /* InterfaceKeyword */: + case 83 /* FunctionKeyword */: + case 98 /* VarKeyword */: + case 116 /* GetKeyword */: + case 120 /* SetKeyword */: + case 85 /* ImportKeyword */: + case 105 /* LetKeyword */: + case 70 /* ConstKeyword */: + case 111 /* YieldKeyword */: return true; } + // Previous token may have been a keyword that was converted to an identifier. switch (previousToken.getText()) { case "class": case "interface": @@ -31087,7 +36449,7 @@ var ts; return false; } function isRightOfIllegalDot(previousToken) { - if (previousToken && previousToken.kind === 7) { + if (previousToken && previousToken.kind === 7 /* NumericLiteral */) { var text = previousToken.getFullText(); return text.charAt(text.length - 1) === "."; } @@ -31099,7 +36461,7 @@ var ts; return exports; } if (importDeclaration.importClause.namedBindings && - importDeclaration.importClause.namedBindings.kind === 212) { + importDeclaration.importClause.namedBindings.kind === 212 /* NamedImports */) { ts.forEach(importDeclaration.importClause.namedBindings.elements, function (el) { var name = el.propertyName || el.name; exisingImports[name.text] = true; @@ -31116,12 +36478,15 @@ var ts; } var existingMemberNames = {}; ts.forEach(existingMembers, function (m) { - if (m.kind !== 224 && m.kind !== 225) { + if (m.kind !== 224 /* PropertyAssignment */ && m.kind !== 225 /* ShorthandPropertyAssignment */) { + // Ignore omitted expressions for missing members in the object literal return; } if (m.getStart() <= position && position <= m.getEnd()) { + // If this is the current item we are editing right now, do not filter it out return; } + // TODO(jfreeman): Account for computed property name existingMemberNames[m.name.text] = true; }); var filteredMembers = []; @@ -31139,27 +36504,62 @@ var ts; if (!completionData) { return undefined; } - var symbols = completionData.symbols, isMemberCompletion = completionData.isMemberCompletion, isNewIdentifierLocation = completionData.isNewIdentifierLocation, location = completionData.location; - if (!symbols || symbols.length === 0) { - return undefined; + var symbols = completionData.symbols, isMemberCompletion = completionData.isMemberCompletion, isNewIdentifierLocation = completionData.isNewIdentifierLocation, location = completionData.location, isRightOfDot = completionData.isRightOfDot; + var entries; + if (isRightOfDot && isJavaScript(fileName)) { + entries = getCompletionEntriesFromSymbols(symbols); + ts.addRange(entries, getJavaScriptCompletionEntries()); } - var entries = getCompletionEntriesFromSymbols(symbols); + else { + if (!symbols || symbols.length === 0) { + return undefined; + } + entries = getCompletionEntriesFromSymbols(symbols); + } + // Add keywords if this is not a member completion list if (!isMemberCompletion) { ts.addRange(entries, keywordCompletions); } return { isMemberCompletion: isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation, entries: entries }; + function getJavaScriptCompletionEntries() { + var entries = []; + var allNames = {}; + var target = program.getCompilerOptions().target; + for (var _i = 0, _a = program.getSourceFiles(); _i < _a.length; _i++) { + var sourceFile = _a[_i]; + var nameTable = getNameTable(sourceFile); + for (var name_21 in nameTable) { + if (!allNames[name_21]) { + allNames[name_21] = name_21; + var displayName = getCompletionEntryDisplayName(name_21, target, true); + if (displayName) { + var entry = { + name: displayName, + kind: ScriptElementKind.warning, + kindModifiers: "", + sortText: "1" + }; + entries.push(entry); + } + } + } + } + return entries; + } function getCompletionEntriesFromSymbols(symbols) { var start = new Date().getTime(); var entries = []; - var nameToSymbol = {}; - for (var _i = 0; _i < symbols.length; _i++) { - var symbol = symbols[_i]; - var entry = createCompletionEntry(symbol, typeInfoResolver, location); - if (entry) { - var id = ts.escapeIdentifier(entry.name); - if (!ts.lookUp(nameToSymbol, id)) { - entries.push(entry); - nameToSymbol[id] = symbol; + if (symbols) { + var nameToSymbol = {}; + for (var _i = 0; _i < symbols.length; _i++) { + var symbol = symbols[_i]; + var entry = createCompletionEntry(symbol, typeInfoResolver, location); + if (entry) { + var id = ts.escapeIdentifier(entry.name); + if (!ts.lookUp(nameToSymbol, id)) { + entries.push(entry); + nameToSymbol[id] = symbol; + } } } } @@ -31169,13 +36569,18 @@ var ts; } function getCompletionEntryDetails(fileName, position, entryName) { synchronizeHostData(); + // Compute all the completion symbols again. var completionData = getCompletionData(fileName, position); if (completionData) { var symbols = completionData.symbols, location_2 = completionData.location; + // Find the symbol with the matching entry name. var target = program.getCompilerOptions().target; - var symbol = ts.forEach(symbols, function (s) { return getCompletionEntryDisplayName(s, target, false) === entryName ? s : undefined; }); + // We don't need to perform character checks here because we're only comparing the + // name against 'entryName' (which is known to be good), not building a new + // completion entry. + var symbol = ts.forEach(symbols, function (s) { return getCompletionEntryDisplayNameForSymbol(s, target, false) === entryName ? s : undefined; }); if (symbol) { - var displayPartsDocumentationsAndSymbolKind = getSymbolDisplayPartsDocumentationAndSymbolKind(symbol, getValidSourceFile(fileName), location_2, typeInfoResolver, location_2, 7); + var displayPartsDocumentationsAndSymbolKind = getSymbolDisplayPartsDocumentationAndSymbolKind(symbol, getValidSourceFile(fileName), location_2, typeInfoResolver, location_2, 7 /* All */); return { name: entryName, kind: displayPartsDocumentationsAndSymbolKind.symbolKind, @@ -31185,6 +36590,7 @@ var ts; }; } } + // Didn't find a symbol with this name. See if we can find a keyword instead. var keywordCompletion = ts.forEach(keywordCompletions, function (c) { return c.name === entryName; }); if (keywordCompletion) { return { @@ -31197,27 +36603,28 @@ var ts; } return undefined; } + // TODO(drosen): use contextual SemanticMeaning. function getSymbolKind(symbol, typeResolver, location) { var flags = symbol.getFlags(); - if (flags & 32) + if (flags & 32 /* Class */) return ScriptElementKind.classElement; - if (flags & 384) + if (flags & 384 /* Enum */) return ScriptElementKind.enumElement; - if (flags & 524288) + if (flags & 524288 /* TypeAlias */) return ScriptElementKind.typeElement; - if (flags & 64) + if (flags & 64 /* Interface */) return ScriptElementKind.interfaceElement; - if (flags & 262144) + if (flags & 262144 /* TypeParameter */) return ScriptElementKind.typeParameterElement; var result = getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(symbol, flags, typeResolver, location); if (result === ScriptElementKind.unknown) { - if (flags & 262144) + if (flags & 262144 /* TypeParameter */) return ScriptElementKind.typeParameterElement; - if (flags & 8) + if (flags & 8 /* EnumMember */) return ScriptElementKind.variableElement; - if (flags & 8388608) + if (flags & 8388608 /* Alias */) return ScriptElementKind.alias; - if (flags & 1536) + if (flags & 1536 /* Module */) return ScriptElementKind.moduleElement; } return result; @@ -31229,7 +36636,7 @@ var ts; if (typeResolver.isArgumentsSymbol(symbol)) { return ScriptElementKind.localVariableElement; } - if (flags & 3) { + if (flags & 3 /* Variable */) { if (ts.isFirstDeclarationOfSymbolParameter(symbol)) { return ScriptElementKind.parameterElement; } @@ -31241,26 +36648,29 @@ var ts; } return isLocalVariableOrFunction(symbol) ? ScriptElementKind.localVariableElement : ScriptElementKind.variableElement; } - if (flags & 16) + if (flags & 16 /* Function */) return isLocalVariableOrFunction(symbol) ? ScriptElementKind.localFunctionElement : ScriptElementKind.functionElement; - if (flags & 32768) + if (flags & 32768 /* GetAccessor */) return ScriptElementKind.memberGetAccessorElement; - if (flags & 65536) + if (flags & 65536 /* SetAccessor */) return ScriptElementKind.memberSetAccessorElement; - if (flags & 8192) + if (flags & 8192 /* Method */) return ScriptElementKind.memberFunctionElement; - if (flags & 16384) + if (flags & 16384 /* Constructor */) return ScriptElementKind.constructorImplementationElement; - if (flags & 4) { - if (flags & 268435456) { + if (flags & 4 /* Property */) { + if (flags & 268435456 /* UnionProperty */) { + // If union property is result of union of non method (property/accessors/variables), it is labeled as property var unionPropertyKind = ts.forEach(typeInfoResolver.getRootSymbols(symbol), function (rootSymbol) { var rootSymbolFlags = rootSymbol.getFlags(); - if (rootSymbolFlags & (98308 | 3)) { + if (rootSymbolFlags & (98308 /* PropertyOrAccessor */ | 3 /* Variable */)) { return ScriptElementKind.memberVariableElement; } - ts.Debug.assert(!!(rootSymbolFlags & 8192)); + ts.Debug.assert(!!(rootSymbolFlags & 8192 /* Method */)); }); if (!unionPropertyKind) { + // If this was union of all methods, + //make sure it has call signatures before we can label it as method var typeOfUnionProperty = typeInfoResolver.getTypeOfSymbolAtLocation(symbol, location); if (typeOfUnionProperty.getCallSignatures().length) { return ScriptElementKind.memberFunctionElement; @@ -31275,17 +36685,17 @@ var ts; } function getTypeKind(type) { var flags = type.getFlags(); - if (flags & 128) + if (flags & 128 /* Enum */) return ScriptElementKind.enumElement; - if (flags & 1024) + if (flags & 1024 /* Class */) return ScriptElementKind.classElement; - if (flags & 2048) + if (flags & 2048 /* Interface */) return ScriptElementKind.interfaceElement; - if (flags & 512) + if (flags & 512 /* TypeParameter */) return ScriptElementKind.typeParameterElement; - if (flags & 1048703) + if (flags & 1048703 /* Intrinsic */) return ScriptElementKind.primitiveType; - if (flags & 256) + if (flags & 256 /* StringLiteral */) return ScriptElementKind.primitiveType; return ScriptElementKind.unknown; } @@ -31294,7 +36704,9 @@ var ts; ? ts.getNodeModifiers(symbol.declarations[0]) : ScriptElementKindModifier.none; } - function getSymbolDisplayPartsDocumentationAndSymbolKind(symbol, sourceFile, enclosingDeclaration, typeResolver, location, semanticMeaning) { + function getSymbolDisplayPartsDocumentationAndSymbolKind(symbol, sourceFile, enclosingDeclaration, typeResolver, location, + // TODO(drosen): Currently completion entry details passes the SemanticMeaning.All instead of using semanticMeaning of location + semanticMeaning) { if (semanticMeaning === void 0) { semanticMeaning = getMeaningFromLocation(location); } var displayParts = []; var documentation; @@ -31302,21 +36714,25 @@ var ts; var symbolKind = getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(symbol, symbolFlags, typeResolver, location); var hasAddedSymbolInfo; var type; - if (symbolKind !== ScriptElementKind.unknown || symbolFlags & 32 || symbolFlags & 8388608) { + // Class at constructor site need to be shown as constructor apart from property,method, vars + if (symbolKind !== ScriptElementKind.unknown || symbolFlags & 32 /* Class */ || symbolFlags & 8388608 /* Alias */) { + // If it is accessor they are allowed only if location is at name of the accessor if (symbolKind === ScriptElementKind.memberGetAccessorElement || symbolKind === ScriptElementKind.memberSetAccessorElement) { symbolKind = ScriptElementKind.memberVariableElement; } var signature; type = typeResolver.getTypeOfSymbolAtLocation(symbol, location); if (type) { - if (location.parent && location.parent.kind === 155) { + if (location.parent && location.parent.kind === 155 /* PropertyAccessExpression */) { var right = location.parent.name; + // Either the location is on the right of a property access, or on the left and the right is missing if (right === location || (right && right.getFullWidth() === 0)) { location = location.parent; } } + // try get the call/construct signature from the type if it matches var callExpression; - if (location.kind === 157 || location.kind === 158) { + if (location.kind === 157 /* CallExpression */ || location.kind === 158 /* NewExpression */) { callExpression = location; } else if (isCallExpressionTarget(location) || isNewExpressionTarget(location)) { @@ -31326,24 +36742,27 @@ var ts; var candidateSignatures = []; signature = typeResolver.getResolvedSignature(callExpression, candidateSignatures); if (!signature && candidateSignatures.length) { + // Use the first candidate: signature = candidateSignatures[0]; } - var useConstructSignatures = callExpression.kind === 158 || callExpression.expression.kind === 91; + var useConstructSignatures = callExpression.kind === 158 /* NewExpression */ || callExpression.expression.kind === 91 /* SuperKeyword */; var allSignatures = useConstructSignatures ? type.getConstructSignatures() : type.getCallSignatures(); if (!ts.contains(allSignatures, signature.target || signature)) { + // Get the first signature if there signature = allSignatures.length ? allSignatures[0] : undefined; } if (signature) { - if (useConstructSignatures && (symbolFlags & 32)) { + if (useConstructSignatures && (symbolFlags & 32 /* Class */)) { + // Constructor symbolKind = ScriptElementKind.constructorImplementationElement; addPrefixForAnyFunctionOrVar(type.symbol, symbolKind); } - else if (symbolFlags & 8388608) { + else if (symbolFlags & 8388608 /* Alias */) { symbolKind = ScriptElementKind.alias; pushTypePart(symbolKind); displayParts.push(ts.spacePart()); if (useConstructSignatures) { - displayParts.push(ts.keywordPart(88)); + displayParts.push(ts.keywordPart(88 /* NewKeyword */)); displayParts.push(ts.spacePart()); } addFullSymbolName(symbol); @@ -31358,147 +36777,154 @@ var ts; case ScriptElementKind.letElement: case ScriptElementKind.parameterElement: case ScriptElementKind.localVariableElement: - displayParts.push(ts.punctuationPart(51)); + // If it is call or construct signature of lambda's write type name + displayParts.push(ts.punctuationPart(51 /* ColonToken */)); displayParts.push(ts.spacePart()); if (useConstructSignatures) { - displayParts.push(ts.keywordPart(88)); + displayParts.push(ts.keywordPart(88 /* NewKeyword */)); displayParts.push(ts.spacePart()); } - if (!(type.flags & 32768)) { - displayParts.push.apply(displayParts, ts.symbolToDisplayParts(typeResolver, type.symbol, enclosingDeclaration, undefined, 1)); + if (!(type.flags & 32768 /* Anonymous */)) { + displayParts.push.apply(displayParts, ts.symbolToDisplayParts(typeResolver, type.symbol, enclosingDeclaration, undefined, 1 /* WriteTypeParametersOrArguments */)); } - addSignatureDisplayParts(signature, allSignatures, 8); + addSignatureDisplayParts(signature, allSignatures, 8 /* WriteArrowStyleSignature */); break; default: + // Just signature addSignatureDisplayParts(signature, allSignatures); } hasAddedSymbolInfo = true; } } - else if ((isNameOfFunctionDeclaration(location) && !(symbol.flags & 98304)) || - (location.kind === 114 && location.parent.kind === 135)) { + else if ((isNameOfFunctionDeclaration(location) && !(symbol.flags & 98304 /* Accessor */)) || + (location.kind === 114 /* ConstructorKeyword */ && location.parent.kind === 135 /* Constructor */)) { + // get the signature from the declaration and write it var functionDeclaration = location.parent; - var allSignatures = functionDeclaration.kind === 135 ? type.getConstructSignatures() : type.getCallSignatures(); + var allSignatures = functionDeclaration.kind === 135 /* Constructor */ ? type.getConstructSignatures() : type.getCallSignatures(); if (!typeResolver.isImplementationOfOverload(functionDeclaration)) { signature = typeResolver.getSignatureFromDeclaration(functionDeclaration); } else { signature = allSignatures[0]; } - if (functionDeclaration.kind === 135) { + if (functionDeclaration.kind === 135 /* Constructor */) { + // show (constructor) Type(...) signature symbolKind = ScriptElementKind.constructorImplementationElement; addPrefixForAnyFunctionOrVar(type.symbol, symbolKind); } else { - addPrefixForAnyFunctionOrVar(functionDeclaration.kind === 138 && - !(type.symbol.flags & 2048 || type.symbol.flags & 4096) ? type.symbol : symbol, symbolKind); + // (function/method) symbol(..signature) + addPrefixForAnyFunctionOrVar(functionDeclaration.kind === 138 /* CallSignature */ && + !(type.symbol.flags & 2048 /* TypeLiteral */ || type.symbol.flags & 4096 /* ObjectLiteral */) ? type.symbol : symbol, symbolKind); } addSignatureDisplayParts(signature, allSignatures); hasAddedSymbolInfo = true; } } } - if (symbolFlags & 32 && !hasAddedSymbolInfo) { - displayParts.push(ts.keywordPart(69)); + if (symbolFlags & 32 /* Class */ && !hasAddedSymbolInfo) { + displayParts.push(ts.keywordPart(69 /* ClassKeyword */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); writeTypeParametersOfSymbol(symbol, sourceFile); } - if ((symbolFlags & 64) && (semanticMeaning & 2)) { + if ((symbolFlags & 64 /* Interface */) && (semanticMeaning & 2 /* Type */)) { addNewLineIfDisplayPartsExist(); - displayParts.push(ts.keywordPart(104)); + displayParts.push(ts.keywordPart(104 /* InterfaceKeyword */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); writeTypeParametersOfSymbol(symbol, sourceFile); } - if (symbolFlags & 524288) { + if (symbolFlags & 524288 /* TypeAlias */) { addNewLineIfDisplayPartsExist(); - displayParts.push(ts.keywordPart(123)); + displayParts.push(ts.keywordPart(123 /* TypeKeyword */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); displayParts.push(ts.spacePart()); - displayParts.push(ts.operatorPart(53)); + displayParts.push(ts.operatorPart(53 /* EqualsToken */)); displayParts.push(ts.spacePart()); displayParts.push.apply(displayParts, ts.typeToDisplayParts(typeResolver, typeResolver.getDeclaredTypeOfSymbol(symbol), enclosingDeclaration)); } - if (symbolFlags & 384) { + if (symbolFlags & 384 /* Enum */) { addNewLineIfDisplayPartsExist(); if (ts.forEach(symbol.declarations, ts.isConstEnumDeclaration)) { - displayParts.push(ts.keywordPart(70)); + displayParts.push(ts.keywordPart(70 /* ConstKeyword */)); displayParts.push(ts.spacePart()); } - displayParts.push(ts.keywordPart(77)); + displayParts.push(ts.keywordPart(77 /* EnumKeyword */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); } - if (symbolFlags & 1536) { + if (symbolFlags & 1536 /* Module */) { addNewLineIfDisplayPartsExist(); - displayParts.push(ts.keywordPart(117)); + displayParts.push(ts.keywordPart(117 /* ModuleKeyword */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); } - if ((symbolFlags & 262144) && (semanticMeaning & 2)) { + if ((symbolFlags & 262144 /* TypeParameter */) && (semanticMeaning & 2 /* Type */)) { addNewLineIfDisplayPartsExist(); - displayParts.push(ts.punctuationPart(16)); + displayParts.push(ts.punctuationPart(16 /* OpenParenToken */)); displayParts.push(ts.textPart("type parameter")); - displayParts.push(ts.punctuationPart(17)); + displayParts.push(ts.punctuationPart(17 /* CloseParenToken */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); displayParts.push(ts.spacePart()); - displayParts.push(ts.keywordPart(86)); + displayParts.push(ts.keywordPart(86 /* InKeyword */)); displayParts.push(ts.spacePart()); if (symbol.parent) { + // Class/Interface type parameter addFullSymbolName(symbol.parent, enclosingDeclaration); writeTypeParametersOfSymbol(symbol.parent, enclosingDeclaration); } else { - var signatureDeclaration = ts.getDeclarationOfKind(symbol, 128).parent; + // Method/function type parameter + var signatureDeclaration = ts.getDeclarationOfKind(symbol, 128 /* TypeParameter */).parent; var signature = typeResolver.getSignatureFromDeclaration(signatureDeclaration); - if (signatureDeclaration.kind === 139) { - displayParts.push(ts.keywordPart(88)); + if (signatureDeclaration.kind === 139 /* ConstructSignature */) { + displayParts.push(ts.keywordPart(88 /* NewKeyword */)); displayParts.push(ts.spacePart()); } - else if (signatureDeclaration.kind !== 138 && signatureDeclaration.name) { + else if (signatureDeclaration.kind !== 138 /* CallSignature */ && signatureDeclaration.name) { addFullSymbolName(signatureDeclaration.symbol); } - displayParts.push.apply(displayParts, ts.signatureToDisplayParts(typeResolver, signature, sourceFile, 32)); + displayParts.push.apply(displayParts, ts.signatureToDisplayParts(typeResolver, signature, sourceFile, 32 /* WriteTypeArgumentsOfSignature */)); } } - if (symbolFlags & 8) { + if (symbolFlags & 8 /* EnumMember */) { addPrefixForAnyFunctionOrVar(symbol, "enum member"); var declaration = symbol.declarations[0]; - if (declaration.kind === 226) { + if (declaration.kind === 226 /* EnumMember */) { var constantValue = typeResolver.getConstantValue(declaration); if (constantValue !== undefined) { displayParts.push(ts.spacePart()); - displayParts.push(ts.operatorPart(53)); + displayParts.push(ts.operatorPart(53 /* EqualsToken */)); displayParts.push(ts.spacePart()); displayParts.push(ts.displayPart(constantValue.toString(), SymbolDisplayPartKind.numericLiteral)); } } } - if (symbolFlags & 8388608) { + if (symbolFlags & 8388608 /* Alias */) { addNewLineIfDisplayPartsExist(); - displayParts.push(ts.keywordPart(85)); + displayParts.push(ts.keywordPart(85 /* ImportKeyword */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); ts.forEach(symbol.declarations, function (declaration) { - if (declaration.kind === 208) { + if (declaration.kind === 208 /* ImportEqualsDeclaration */) { var importEqualsDeclaration = declaration; if (ts.isExternalModuleImportEqualsDeclaration(importEqualsDeclaration)) { displayParts.push(ts.spacePart()); - displayParts.push(ts.operatorPart(53)); + displayParts.push(ts.operatorPart(53 /* EqualsToken */)); displayParts.push(ts.spacePart()); - displayParts.push(ts.keywordPart(118)); - displayParts.push(ts.punctuationPart(16)); + displayParts.push(ts.keywordPart(118 /* RequireKeyword */)); + displayParts.push(ts.punctuationPart(16 /* OpenParenToken */)); displayParts.push(ts.displayPart(ts.getTextOfNode(ts.getExternalModuleImportEqualsDeclarationExpression(importEqualsDeclaration)), SymbolDisplayPartKind.stringLiteral)); - displayParts.push(ts.punctuationPart(17)); + displayParts.push(ts.punctuationPart(17 /* CloseParenToken */)); } else { var internalAliasSymbol = typeResolver.getSymbolAtLocation(importEqualsDeclaration.moduleReference); if (internalAliasSymbol) { displayParts.push(ts.spacePart()); - displayParts.push(ts.operatorPart(53)); + displayParts.push(ts.operatorPart(53 /* EqualsToken */)); displayParts.push(ts.spacePart()); addFullSymbolName(internalAliasSymbol, enclosingDeclaration); } @@ -31511,12 +36937,14 @@ var ts; if (symbolKind !== ScriptElementKind.unknown) { if (type) { addPrefixForAnyFunctionOrVar(symbol, symbolKind); + // For properties, variables and local vars: show the type if (symbolKind === ScriptElementKind.memberVariableElement || - symbolFlags & 3 || + symbolFlags & 3 /* Variable */ || symbolKind === ScriptElementKind.localVariableElement) { - displayParts.push(ts.punctuationPart(51)); + displayParts.push(ts.punctuationPart(51 /* ColonToken */)); displayParts.push(ts.spacePart()); - if (type.symbol && type.symbol.flags & 262144) { + // If the type is type parameter, format it specially + if (type.symbol && type.symbol.flags & 262144 /* TypeParameter */) { var typeParameterParts = ts.mapToDisplayParts(function (writer) { typeResolver.getSymbolDisplayBuilder().buildTypeParameterDisplay(type, writer, enclosingDeclaration); }); @@ -31526,11 +36954,11 @@ var ts; displayParts.push.apply(displayParts, ts.typeToDisplayParts(typeResolver, type, enclosingDeclaration)); } } - else if (symbolFlags & 16 || - symbolFlags & 8192 || - symbolFlags & 16384 || - symbolFlags & 131072 || - symbolFlags & 98304 || + else if (symbolFlags & 16 /* Function */ || + symbolFlags & 8192 /* Method */ || + symbolFlags & 16384 /* Constructor */ || + symbolFlags & 131072 /* Signature */ || + symbolFlags & 98304 /* Accessor */ || symbolKind === ScriptElementKind.memberFunctionElement) { var allSignatures = type.getCallSignatures(); addSignatureDisplayParts(allSignatures[0], allSignatures); @@ -31551,7 +36979,7 @@ var ts; } } function addFullSymbolName(symbol, enclosingDeclaration) { - var fullSymbolDisplayParts = ts.symbolToDisplayParts(typeResolver, symbol, enclosingDeclaration || sourceFile, undefined, 1 | 2); + var fullSymbolDisplayParts = ts.symbolToDisplayParts(typeResolver, symbol, enclosingDeclaration || sourceFile, undefined, 1 /* WriteTypeParametersOrArguments */ | 2 /* UseOnlyExternalAliasing */); displayParts.push.apply(displayParts, fullSymbolDisplayParts); } function addPrefixForAnyFunctionOrVar(symbol, symbolKind) { @@ -31572,22 +37000,22 @@ var ts; displayParts.push(ts.textOrKeywordPart(symbolKind)); return; default: - displayParts.push(ts.punctuationPart(16)); + displayParts.push(ts.punctuationPart(16 /* OpenParenToken */)); displayParts.push(ts.textOrKeywordPart(symbolKind)); - displayParts.push(ts.punctuationPart(17)); + displayParts.push(ts.punctuationPart(17 /* CloseParenToken */)); return; } } function addSignatureDisplayParts(signature, allSignatures, flags) { - displayParts.push.apply(displayParts, ts.signatureToDisplayParts(typeResolver, signature, enclosingDeclaration, flags | 32)); + displayParts.push.apply(displayParts, ts.signatureToDisplayParts(typeResolver, signature, enclosingDeclaration, flags | 32 /* WriteTypeArgumentsOfSignature */)); if (allSignatures.length > 1) { displayParts.push(ts.spacePart()); - displayParts.push(ts.punctuationPart(16)); - displayParts.push(ts.operatorPart(33)); + displayParts.push(ts.punctuationPart(16 /* OpenParenToken */)); + displayParts.push(ts.operatorPart(33 /* PlusToken */)); displayParts.push(ts.displayPart((allSignatures.length - 1).toString(), SymbolDisplayPartKind.numericLiteral)); displayParts.push(ts.spacePart()); displayParts.push(ts.textPart(allSignatures.length === 2 ? "overload" : "overloads")); - displayParts.push(ts.punctuationPart(17)); + displayParts.push(ts.punctuationPart(17 /* CloseParenToken */)); } documentation = signature.getDocumentationComment(); } @@ -31607,12 +37035,14 @@ var ts; } var symbol = typeInfoResolver.getSymbolAtLocation(node); if (!symbol) { + // Try getting just type at this position and show switch (node.kind) { - case 65: - case 155: - case 126: - case 93: - case 91: + case 65 /* Identifier */: + case 155 /* PropertyAccessExpression */: + case 126 /* QualifiedName */: + case 93 /* ThisKeyword */: + case 91 /* SuperKeyword */: + // For the identifiers/this/super etc get the type at position var type = typeInfoResolver.getTypeAtLocation(node); if (type) { return { @@ -31645,6 +37075,7 @@ var ts; containerName: containerName }; } + /// Goto definition function getDefinitionAtPosition(fileName, position) { synchronizeHostData(); var sourceFile = getValidSourceFile(fileName); @@ -31652,11 +37083,13 @@ var ts; if (!node) { return undefined; } + // Labels if (isJumpStatementTarget(node)) { var labelName = node.text; var label = getTargetLabel(node.parent, node.text); return label ? [createDefinitionInfo(label, ScriptElementKind.label, labelName, undefined)] : undefined; } + /// Triple slash reference comments var comment = ts.forEach(sourceFile.referencedFiles, function (r) { return (r.pos <= position && position < r.end) ? r : undefined; }); if (comment) { var referenceFile = ts.tryResolveScriptReference(program, sourceFile, comment); @@ -31673,16 +37106,27 @@ var ts; return undefined; } var symbol = typeInfoResolver.getSymbolAtLocation(node); + // Could not find a symbol e.g. node is string or number keyword, + // or the symbol was an internal symbol and does not have a declaration e.g. undefined symbol if (!symbol) { return undefined; } - if (symbol.flags & 8388608) { + // If this is an alias, and the request came at the declaration location + // get the aliased symbol instead. This allows for goto def on an import e.g. + // import {A, B} from "mod"; + // to jump to the implementation directly. + if (symbol.flags & 8388608 /* Alias */) { var declaration = symbol.declarations[0]; - if (node.kind === 65 && node.parent === declaration) { + if (node.kind === 65 /* Identifier */ && node.parent === declaration) { symbol = typeInfoResolver.getAliasedSymbol(symbol); } } - if (node.parent.kind === 225) { + // Because name in short-hand property assignment has two different meanings: property name and property value, + // using go-to-definition at such position should go to the variable declaration of the property value rather than + // go to the declaration of the property name (in this case stay at the same position). However, if go-to-definition + // is performed at the location of property access, we would like to go to definition of the property in the short-hand + // assignment. This case and others are handled by the following code. + if (node.parent.kind === 225 /* ShorthandPropertyAssignment */) { var shorthandSymbol = typeInfoResolver.getShorthandAssignmentValueSymbol(symbol.valueDeclaration); if (!shorthandSymbol) { return []; @@ -31695,22 +37139,25 @@ var ts; } var result = []; var declarations = symbol.getDeclarations(); - var symbolName = typeInfoResolver.symbolToString(symbol); + var symbolName = typeInfoResolver.symbolToString(symbol); // Do not get scoped name, just the name of the symbol var symbolKind = getSymbolKind(symbol, typeInfoResolver, node); var containerSymbol = symbol.parent; var containerName = containerSymbol ? typeInfoResolver.symbolToString(containerSymbol, node) : ""; if (!tryAddConstructSignature(symbol, node, symbolKind, symbolName, containerName, result) && !tryAddCallSignature(symbol, node, symbolKind, symbolName, containerName, result)) { + // Just add all the declarations. ts.forEach(declarations, function (declaration) { result.push(createDefinitionInfo(declaration, symbolKind, symbolName, containerName)); }); } return result; function tryAddConstructSignature(symbol, location, symbolKind, symbolName, containerName, result) { - if (isNewExpressionTarget(location) || location.kind === 114) { - if (symbol.flags & 32) { + // Applicable only if we are in a new expression, or we are on a constructor declaration + // and in either case the symbol has a construct signature definition, i.e. class + if (isNewExpressionTarget(location) || location.kind === 114 /* ConstructorKeyword */) { + if (symbol.flags & 32 /* Class */) { var classDeclaration = symbol.getDeclarations()[0]; - ts.Debug.assert(classDeclaration && classDeclaration.kind === 201); + ts.Debug.assert(classDeclaration && classDeclaration.kind === 201 /* ClassDeclaration */); return tryAddSignature(classDeclaration.members, true, symbolKind, symbolName, containerName, result); } } @@ -31726,8 +37173,8 @@ var ts; var declarations = []; var definition; ts.forEach(signatureDeclarations, function (d) { - if ((selectConstructors && d.kind === 135) || - (!selectConstructors && (d.kind === 200 || d.kind === 134 || d.kind === 133))) { + if ((selectConstructors && d.kind === 135 /* Constructor */) || + (!selectConstructors && (d.kind === 200 /* FunctionDeclaration */ || d.kind === 134 /* MethodDeclaration */ || d.kind === 133 /* MethodSignature */))) { declarations.push(d); if (d.body) definition = d; @@ -31748,430 +37195,542 @@ var ts; var results = getOccurrencesAtPositionCore(fileName, position); if (results) { var sourceFile = getCanonicalFileName(ts.normalizeSlashes(fileName)); - results.forEach(function (value) { - var targetFile = getCanonicalFileName(ts.normalizeSlashes(value.fileName)); - ts.Debug.assert(sourceFile == targetFile, "Unexpected file in results. Found results in " + targetFile + " expected only results in " + sourceFile + "."); - }); + // Get occurrences only supports reporting occurrences for the file queried. So + // filter down to that list. + results = ts.filter(results, function (r) { return r.fileName === fileName; }); } return results; } - function getOccurrencesAtPositionCore(fileName, position) { + function getDocumentHighlights(fileName, position, filesToSearch) { synchronizeHostData(); + filesToSearch = ts.map(filesToSearch, ts.normalizeSlashes); + var sourceFilesToSearch = ts.filter(program.getSourceFiles(), function (f) { return ts.contains(filesToSearch, f.fileName); }); var sourceFile = getValidSourceFile(fileName); var node = ts.getTouchingWord(sourceFile, position); if (!node) { return undefined; } - if (node.kind === 65 || node.kind === 93 || node.kind === 91 || - isLiteralNameOfPropertyDeclarationOrIndexAccess(node) || isNameOfExternalModuleImportOrDeclaration(node)) { - return convertReferences(getReferencesForNode(node, [sourceFile], true, false, false)); + return getSemanticDocumentHighlights(node) || getSyntacticDocumentHighlights(node); + function getHighlightSpanForNode(node) { + var start = node.getStart(); + var end = node.getEnd(); + return { + fileName: sourceFile.fileName, + textSpan: ts.createTextSpanFromBounds(start, end), + kind: HighlightSpanKind.none + }; } - switch (node.kind) { - case 84: - case 76: - if (hasKind(node.parent, 183)) { - return getIfElseOccurrences(node.parent); - } - break; - case 90: - if (hasKind(node.parent, 191)) { - return getReturnOccurrences(node.parent); - } - break; - case 94: - if (hasKind(node.parent, 195)) { - return getThrowOccurrences(node.parent); - } - break; - case 68: - if (hasKind(parent(parent(node)), 196)) { - return getTryCatchFinallyOccurrences(node.parent.parent); - } - break; - case 96: - case 81: - if (hasKind(parent(node), 196)) { - return getTryCatchFinallyOccurrences(node.parent); - } - break; - case 92: - if (hasKind(node.parent, 193)) { - return getSwitchCaseDefaultOccurrences(node.parent); - } - break; - case 67: - case 73: - if (hasKind(parent(parent(parent(node))), 193)) { - return getSwitchCaseDefaultOccurrences(node.parent.parent.parent); - } - break; - case 66: - case 71: - if (hasKind(node.parent, 190) || hasKind(node.parent, 189)) { - return getBreakOrContinueStatementOccurences(node.parent); - } - break; - case 82: - if (hasKind(node.parent, 186) || - hasKind(node.parent, 187) || - hasKind(node.parent, 188)) { - return getLoopBreakContinueOccurrences(node.parent); - } - break; - case 100: - case 75: - if (hasKind(node.parent, 185) || hasKind(node.parent, 184)) { - return getLoopBreakContinueOccurrences(node.parent); - } - break; - case 114: - if (hasKind(node.parent, 135)) { - return getConstructorOccurrences(node.parent); - } - break; - case 116: - case 120: - if (hasKind(node.parent, 136) || hasKind(node.parent, 137)) { - return getGetAndSetOccurrences(node.parent); - } - default: - if (ts.isModifier(node.kind) && node.parent && - (ts.isDeclaration(node.parent) || node.parent.kind === 180)) { - return getModifierOccurrences(node.kind, node.parent); - } - } - return undefined; - function getIfElseOccurrences(ifStatement) { - var keywords = []; - while (hasKind(ifStatement.parent, 183) && ifStatement.parent.elseStatement === ifStatement) { - ifStatement = ifStatement.parent; + function getSemanticDocumentHighlights(node) { + if (node.kind === 65 /* Identifier */ || + node.kind === 93 /* ThisKeyword */ || + node.kind === 91 /* SuperKeyword */ || + isLiteralNameOfPropertyDeclarationOrIndexAccess(node) || + isNameOfExternalModuleImportOrDeclaration(node)) { + var referencedSymbols = getReferencedSymbolsForNodes(node, sourceFilesToSearch, false, false); + return convertReferencedSymbols(referencedSymbols); } - while (ifStatement) { - var children = ifStatement.getChildren(); - pushKeywordIf(keywords, children[0], 84); - for (var i = children.length - 1; i >= 0; i--) { - if (pushKeywordIf(keywords, children[i], 76)) { + return undefined; + function convertReferencedSymbols(referencedSymbols) { + if (!referencedSymbols) { + return undefined; + } + var fileNameToDocumentHighlights = {}; + var result = []; + for (var _i = 0; _i < referencedSymbols.length; _i++) { + var referencedSymbol = referencedSymbols[_i]; + for (var _a = 0, _b = referencedSymbol.references; _a < _b.length; _a++) { + var referenceEntry = _b[_a]; + var fileName_1 = referenceEntry.fileName; + var documentHighlights = ts.getProperty(fileNameToDocumentHighlights, fileName_1); + if (!documentHighlights) { + documentHighlights = { fileName: fileName_1, highlightSpans: [] }; + fileNameToDocumentHighlights[fileName_1] = documentHighlights; + result.push(documentHighlights); + } + documentHighlights.highlightSpans.push({ + textSpan: referenceEntry.textSpan, + kind: referenceEntry.isWriteAccess ? HighlightSpanKind.writtenReference : HighlightSpanKind.reference + }); + } + } + return result; + } + } + function getSyntacticDocumentHighlights(node) { + var fileName = sourceFile.fileName; + var highlightSpans = getHighlightSpans(node); + if (!highlightSpans || highlightSpans.length === 0) { + return undefined; + } + return [{ fileName: fileName, highlightSpans: highlightSpans }]; + // returns true if 'node' is defined and has a matching 'kind'. + function hasKind(node, kind) { + return node !== undefined && node.kind === kind; + } + // Null-propagating 'parent' function. + function parent(node) { + return node && node.parent; + } + function getHighlightSpans(node) { + if (node) { + switch (node.kind) { + case 84 /* IfKeyword */: + case 76 /* ElseKeyword */: + if (hasKind(node.parent, 183 /* IfStatement */)) { + return getIfElseOccurrences(node.parent); + } + break; + case 90 /* ReturnKeyword */: + if (hasKind(node.parent, 191 /* ReturnStatement */)) { + return getReturnOccurrences(node.parent); + } + break; + case 94 /* ThrowKeyword */: + if (hasKind(node.parent, 195 /* ThrowStatement */)) { + return getThrowOccurrences(node.parent); + } + break; + case 68 /* CatchKeyword */: + if (hasKind(parent(parent(node)), 196 /* TryStatement */)) { + return getTryCatchFinallyOccurrences(node.parent.parent); + } + break; + case 96 /* TryKeyword */: + case 81 /* FinallyKeyword */: + if (hasKind(parent(node), 196 /* TryStatement */)) { + return getTryCatchFinallyOccurrences(node.parent); + } + break; + case 92 /* SwitchKeyword */: + if (hasKind(node.parent, 193 /* SwitchStatement */)) { + return getSwitchCaseDefaultOccurrences(node.parent); + } + break; + case 67 /* CaseKeyword */: + case 73 /* DefaultKeyword */: + if (hasKind(parent(parent(parent(node))), 193 /* SwitchStatement */)) { + return getSwitchCaseDefaultOccurrences(node.parent.parent.parent); + } + break; + case 66 /* BreakKeyword */: + case 71 /* ContinueKeyword */: + if (hasKind(node.parent, 190 /* BreakStatement */) || hasKind(node.parent, 189 /* ContinueStatement */)) { + return getBreakOrContinueStatementOccurences(node.parent); + } + break; + case 82 /* ForKeyword */: + if (hasKind(node.parent, 186 /* ForStatement */) || + hasKind(node.parent, 187 /* ForInStatement */) || + hasKind(node.parent, 188 /* ForOfStatement */)) { + return getLoopBreakContinueOccurrences(node.parent); + } + break; + case 100 /* WhileKeyword */: + case 75 /* DoKeyword */: + if (hasKind(node.parent, 185 /* WhileStatement */) || hasKind(node.parent, 184 /* DoStatement */)) { + return getLoopBreakContinueOccurrences(node.parent); + } + break; + case 114 /* ConstructorKeyword */: + if (hasKind(node.parent, 135 /* Constructor */)) { + return getConstructorOccurrences(node.parent); + } + break; + case 116 /* GetKeyword */: + case 120 /* SetKeyword */: + if (hasKind(node.parent, 136 /* GetAccessor */) || hasKind(node.parent, 137 /* SetAccessor */)) { + return getGetAndSetOccurrences(node.parent); + } + default: + if (ts.isModifier(node.kind) && node.parent && + (ts.isDeclaration(node.parent) || node.parent.kind === 180 /* VariableStatement */)) { + return getModifierOccurrences(node.kind, node.parent); + } + } + } + return undefined; + } + /** + * Aggregates all throw-statements within this node *without* crossing + * into function boundaries and try-blocks with catch-clauses. + */ + function aggregateOwnedThrowStatements(node) { + var statementAccumulator = []; + aggregate(node); + return statementAccumulator; + function aggregate(node) { + if (node.kind === 195 /* ThrowStatement */) { + statementAccumulator.push(node); + } + else if (node.kind === 196 /* TryStatement */) { + var tryStatement = node; + if (tryStatement.catchClause) { + aggregate(tryStatement.catchClause); + } + else { + // Exceptions thrown within a try block lacking a catch clause + // are "owned" in the current context. + aggregate(tryStatement.tryBlock); + } + if (tryStatement.finallyBlock) { + aggregate(tryStatement.finallyBlock); + } + } + else if (!ts.isFunctionLike(node)) { + ts.forEachChild(node, aggregate); + } + } + ; + } + /** + * For lack of a better name, this function takes a throw statement and returns the + * nearest ancestor that is a try-block (whose try statement has a catch clause), + * function-block, or source file. + */ + function getThrowStatementOwner(throwStatement) { + var child = throwStatement; + while (child.parent) { + var parent_10 = child.parent; + if (ts.isFunctionBlock(parent_10) || parent_10.kind === 227 /* SourceFile */) { + return parent_10; + } + // A throw-statement is only owned by a try-statement if the try-statement has + // a catch clause, and if the throw-statement occurs within the try block. + if (parent_10.kind === 196 /* TryStatement */) { + var tryStatement = parent_10; + if (tryStatement.tryBlock === child && tryStatement.catchClause) { + return child; + } + } + child = parent_10; + } + return undefined; + } + function aggregateAllBreakAndContinueStatements(node) { + var statementAccumulator = []; + aggregate(node); + return statementAccumulator; + function aggregate(node) { + if (node.kind === 190 /* BreakStatement */ || node.kind === 189 /* ContinueStatement */) { + statementAccumulator.push(node); + } + else if (!ts.isFunctionLike(node)) { + ts.forEachChild(node, aggregate); + } + } + ; + } + function ownsBreakOrContinueStatement(owner, statement) { + var actualOwner = getBreakOrContinueOwner(statement); + return actualOwner && actualOwner === owner; + } + function getBreakOrContinueOwner(statement) { + for (var node_1 = statement.parent; node_1; node_1 = node_1.parent) { + switch (node_1.kind) { + case 193 /* SwitchStatement */: + if (statement.kind === 189 /* ContinueStatement */) { + continue; + } + // Fall through. + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 185 /* WhileStatement */: + case 184 /* DoStatement */: + if (!statement.label || isLabeledBy(node_1, statement.label.text)) { + return node_1; + } + break; + default: + // Don't cross function boundaries. + if (ts.isFunctionLike(node_1)) { + return undefined; + } + break; + } + } + return undefined; + } + function getModifierOccurrences(modifier, declaration) { + var container = declaration.parent; + // Make sure we only highlight the keyword when it makes sense to do so. + if (ts.isAccessibilityModifier(modifier)) { + if (!(container.kind === 201 /* ClassDeclaration */ || + (declaration.kind === 129 /* Parameter */ && hasKind(container, 135 /* Constructor */)))) { + return undefined; + } + } + else if (modifier === 110 /* StaticKeyword */) { + if (container.kind !== 201 /* ClassDeclaration */) { + return undefined; + } + } + else if (modifier === 78 /* ExportKeyword */ || modifier === 115 /* DeclareKeyword */) { + if (!(container.kind === 206 /* ModuleBlock */ || container.kind === 227 /* SourceFile */)) { + return undefined; + } + } + else { + // unsupported modifier + return undefined; + } + var keywords = []; + var modifierFlag = getFlagFromModifier(modifier); + var nodes; + switch (container.kind) { + case 206 /* ModuleBlock */: + case 227 /* SourceFile */: + nodes = container.statements; + break; + case 135 /* Constructor */: + nodes = container.parameters.concat(container.parent.members); + break; + case 201 /* ClassDeclaration */: + nodes = container.members; + // If we're an accessibility modifier, we're in an instance member and should search + // the constructor's parameter list for instance members as well. + if (modifierFlag & 112 /* AccessibilityModifier */) { + var constructor = ts.forEach(container.members, function (member) { + return member.kind === 135 /* Constructor */ && member; + }); + if (constructor) { + nodes = nodes.concat(constructor.parameters); + } + } + break; + default: + ts.Debug.fail("Invalid container kind."); + } + ts.forEach(nodes, function (node) { + if (node.modifiers && node.flags & modifierFlag) { + ts.forEach(node.modifiers, function (child) { return pushKeywordIf(keywords, child, modifier); }); + } + }); + return ts.map(keywords, getHighlightSpanForNode); + function getFlagFromModifier(modifier) { + switch (modifier) { + case 109 /* PublicKeyword */: + return 16 /* Public */; + case 107 /* PrivateKeyword */: + return 32 /* Private */; + case 108 /* ProtectedKeyword */: + return 64 /* Protected */; + case 110 /* StaticKeyword */: + return 128 /* Static */; + case 78 /* ExportKeyword */: + return 1 /* Export */; + case 115 /* DeclareKeyword */: + return 2 /* Ambient */; + default: + ts.Debug.fail(); + } + } + } + function pushKeywordIf(keywordList, token) { + var expected = []; + for (var _i = 2; _i < arguments.length; _i++) { + expected[_i - 2] = arguments[_i]; + } + if (token && ts.contains(expected, token.kind)) { + keywordList.push(token); + return true; + } + return false; + } + function getGetAndSetOccurrences(accessorDeclaration) { + var keywords = []; + tryPushAccessorKeyword(accessorDeclaration.symbol, 136 /* GetAccessor */); + tryPushAccessorKeyword(accessorDeclaration.symbol, 137 /* SetAccessor */); + return ts.map(keywords, getHighlightSpanForNode); + function tryPushAccessorKeyword(accessorSymbol, accessorKind) { + var accessor = ts.getDeclarationOfKind(accessorSymbol, accessorKind); + if (accessor) { + ts.forEach(accessor.getChildren(), function (child) { return pushKeywordIf(keywords, child, 116 /* GetKeyword */, 120 /* SetKeyword */); }); + } + } + } + function getConstructorOccurrences(constructorDeclaration) { + var declarations = constructorDeclaration.symbol.getDeclarations(); + var keywords = []; + ts.forEach(declarations, function (declaration) { + ts.forEach(declaration.getChildren(), function (token) { + return pushKeywordIf(keywords, token, 114 /* ConstructorKeyword */); + }); + }); + return ts.map(keywords, getHighlightSpanForNode); + } + function getLoopBreakContinueOccurrences(loopNode) { + var keywords = []; + if (pushKeywordIf(keywords, loopNode.getFirstToken(), 82 /* ForKeyword */, 100 /* WhileKeyword */, 75 /* DoKeyword */)) { + // If we succeeded and got a do-while loop, then start looking for a 'while' keyword. + if (loopNode.kind === 184 /* DoStatement */) { + var loopTokens = loopNode.getChildren(); + for (var i = loopTokens.length - 1; i >= 0; i--) { + if (pushKeywordIf(keywords, loopTokens[i], 100 /* WhileKeyword */)) { + break; + } + } + } + } + var breaksAndContinues = aggregateAllBreakAndContinueStatements(loopNode.statement); + ts.forEach(breaksAndContinues, function (statement) { + if (ownsBreakOrContinueStatement(loopNode, statement)) { + pushKeywordIf(keywords, statement.getFirstToken(), 66 /* BreakKeyword */, 71 /* ContinueKeyword */); + } + }); + return ts.map(keywords, getHighlightSpanForNode); + } + function getBreakOrContinueStatementOccurences(breakOrContinueStatement) { + var owner = getBreakOrContinueOwner(breakOrContinueStatement); + if (owner) { + switch (owner.kind) { + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + return getLoopBreakContinueOccurrences(owner); + case 193 /* SwitchStatement */: + return getSwitchCaseDefaultOccurrences(owner); + } + } + return undefined; + } + function getSwitchCaseDefaultOccurrences(switchStatement) { + var keywords = []; + pushKeywordIf(keywords, switchStatement.getFirstToken(), 92 /* SwitchKeyword */); + // Go through each clause in the switch statement, collecting the 'case'/'default' keywords. + ts.forEach(switchStatement.caseBlock.clauses, function (clause) { + pushKeywordIf(keywords, clause.getFirstToken(), 67 /* CaseKeyword */, 73 /* DefaultKeyword */); + var breaksAndContinues = aggregateAllBreakAndContinueStatements(clause); + ts.forEach(breaksAndContinues, function (statement) { + if (ownsBreakOrContinueStatement(switchStatement, statement)) { + pushKeywordIf(keywords, statement.getFirstToken(), 66 /* BreakKeyword */); + } + }); + }); + return ts.map(keywords, getHighlightSpanForNode); + } + function getTryCatchFinallyOccurrences(tryStatement) { + var keywords = []; + pushKeywordIf(keywords, tryStatement.getFirstToken(), 96 /* TryKeyword */); + if (tryStatement.catchClause) { + pushKeywordIf(keywords, tryStatement.catchClause.getFirstToken(), 68 /* CatchKeyword */); + } + if (tryStatement.finallyBlock) { + var finallyKeyword = ts.findChildOfKind(tryStatement, 81 /* FinallyKeyword */, sourceFile); + pushKeywordIf(keywords, finallyKeyword, 81 /* FinallyKeyword */); + } + return ts.map(keywords, getHighlightSpanForNode); + } + function getThrowOccurrences(throwStatement) { + var owner = getThrowStatementOwner(throwStatement); + if (!owner) { + return undefined; + } + var keywords = []; + ts.forEach(aggregateOwnedThrowStatements(owner), function (throwStatement) { + pushKeywordIf(keywords, throwStatement.getFirstToken(), 94 /* ThrowKeyword */); + }); + // If the "owner" is a function, then we equate 'return' and 'throw' statements in their + // ability to "jump out" of the function, and include occurrences for both. + if (ts.isFunctionBlock(owner)) { + ts.forEachReturnStatement(owner, function (returnStatement) { + pushKeywordIf(keywords, returnStatement.getFirstToken(), 90 /* ReturnKeyword */); + }); + } + return ts.map(keywords, getHighlightSpanForNode); + } + function getReturnOccurrences(returnStatement) { + var func = ts.getContainingFunction(returnStatement); + // If we didn't find a containing function with a block body, bail out. + if (!(func && hasKind(func.body, 179 /* Block */))) { + return undefined; + } + var keywords = []; + ts.forEachReturnStatement(func.body, function (returnStatement) { + pushKeywordIf(keywords, returnStatement.getFirstToken(), 90 /* ReturnKeyword */); + }); + // Include 'throw' statements that do not occur within a try block. + ts.forEach(aggregateOwnedThrowStatements(func.body), function (throwStatement) { + pushKeywordIf(keywords, throwStatement.getFirstToken(), 94 /* ThrowKeyword */); + }); + return ts.map(keywords, getHighlightSpanForNode); + } + function getIfElseOccurrences(ifStatement) { + var keywords = []; + // Traverse upwards through all parent if-statements linked by their else-branches. + while (hasKind(ifStatement.parent, 183 /* IfStatement */) && ifStatement.parent.elseStatement === ifStatement) { + ifStatement = ifStatement.parent; + } + // Now traverse back down through the else branches, aggregating if/else keywords of if-statements. + while (ifStatement) { + var children = ifStatement.getChildren(); + pushKeywordIf(keywords, children[0], 84 /* IfKeyword */); + // Generally the 'else' keyword is second-to-last, so we traverse backwards. + for (var i = children.length - 1; i >= 0; i--) { + if (pushKeywordIf(keywords, children[i], 76 /* ElseKeyword */)) { + break; + } + } + if (!hasKind(ifStatement.elseStatement, 183 /* IfStatement */)) { break; } + ifStatement = ifStatement.elseStatement; } - if (!hasKind(ifStatement.elseStatement, 183)) { - break; - } - ifStatement = ifStatement.elseStatement; - } - var result = []; - for (var i = 0; i < keywords.length; i++) { - if (keywords[i].kind === 76 && i < keywords.length - 1) { - var elseKeyword = keywords[i]; - var ifKeyword = keywords[i + 1]; - var shouldHighlightNextKeyword = true; - for (var j = ifKeyword.getStart() - 1; j >= elseKeyword.end; j--) { - if (!ts.isWhiteSpace(sourceFile.text.charCodeAt(j))) { - shouldHighlightNextKeyword = false; - break; + var result = []; + // We'd like to highlight else/ifs together if they are only separated by whitespace + // (i.e. the keywords are separated by no comments, no newlines). + for (var i = 0; i < keywords.length; i++) { + if (keywords[i].kind === 76 /* ElseKeyword */ && i < keywords.length - 1) { + var elseKeyword = keywords[i]; + var ifKeyword = keywords[i + 1]; // this *should* always be an 'if' keyword. + var shouldCombindElseAndIf = true; + // Avoid recalculating getStart() by iterating backwards. + for (var j = ifKeyword.getStart() - 1; j >= elseKeyword.end; j--) { + if (!ts.isWhiteSpace(sourceFile.text.charCodeAt(j))) { + shouldCombindElseAndIf = false; + break; + } } - } - if (shouldHighlightNextKeyword) { - result.push({ - fileName: fileName, - textSpan: ts.createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end), - isWriteAccess: false - }); - i++; - continue; - } - } - result.push(getReferenceEntryFromNode(keywords[i])); - } - return result; - } - function getReturnOccurrences(returnStatement) { - var func = ts.getContainingFunction(returnStatement); - if (!(func && hasKind(func.body, 179))) { - return undefined; - } - var keywords = []; - ts.forEachReturnStatement(func.body, function (returnStatement) { - pushKeywordIf(keywords, returnStatement.getFirstToken(), 90); - }); - ts.forEach(aggregateOwnedThrowStatements(func.body), function (throwStatement) { - pushKeywordIf(keywords, throwStatement.getFirstToken(), 94); - }); - return ts.map(keywords, getReferenceEntryFromNode); - } - function getThrowOccurrences(throwStatement) { - var owner = getThrowStatementOwner(throwStatement); - if (!owner) { - return undefined; - } - var keywords = []; - ts.forEach(aggregateOwnedThrowStatements(owner), function (throwStatement) { - pushKeywordIf(keywords, throwStatement.getFirstToken(), 94); - }); - if (ts.isFunctionBlock(owner)) { - ts.forEachReturnStatement(owner, function (returnStatement) { - pushKeywordIf(keywords, returnStatement.getFirstToken(), 90); - }); - } - return ts.map(keywords, getReferenceEntryFromNode); - } - function aggregateOwnedThrowStatements(node) { - var statementAccumulator = []; - aggregate(node); - return statementAccumulator; - function aggregate(node) { - if (node.kind === 195) { - statementAccumulator.push(node); - } - else if (node.kind === 196) { - var tryStatement = node; - if (tryStatement.catchClause) { - aggregate(tryStatement.catchClause); - } - else { - aggregate(tryStatement.tryBlock); - } - if (tryStatement.finallyBlock) { - aggregate(tryStatement.finallyBlock); - } - } - else if (!ts.isFunctionLike(node)) { - ts.forEachChild(node, aggregate); - } - } - ; - } - function getThrowStatementOwner(throwStatement) { - var child = throwStatement; - while (child.parent) { - var parent_9 = child.parent; - if (ts.isFunctionBlock(parent_9) || parent_9.kind === 227) { - return parent_9; - } - if (parent_9.kind === 196) { - var tryStatement = parent_9; - if (tryStatement.tryBlock === child && tryStatement.catchClause) { - return child; - } - } - child = parent_9; - } - return undefined; - } - function getTryCatchFinallyOccurrences(tryStatement) { - var keywords = []; - pushKeywordIf(keywords, tryStatement.getFirstToken(), 96); - if (tryStatement.catchClause) { - pushKeywordIf(keywords, tryStatement.catchClause.getFirstToken(), 68); - } - if (tryStatement.finallyBlock) { - var finallyKeyword = ts.findChildOfKind(tryStatement, 81, sourceFile); - pushKeywordIf(keywords, finallyKeyword, 81); - } - return ts.map(keywords, getReferenceEntryFromNode); - } - function getLoopBreakContinueOccurrences(loopNode) { - var keywords = []; - if (pushKeywordIf(keywords, loopNode.getFirstToken(), 82, 100, 75)) { - if (loopNode.kind === 184) { - var loopTokens = loopNode.getChildren(); - for (var i = loopTokens.length - 1; i >= 0; i--) { - if (pushKeywordIf(keywords, loopTokens[i], 100)) { - break; - } - } - } - } - var breaksAndContinues = aggregateAllBreakAndContinueStatements(loopNode.statement); - ts.forEach(breaksAndContinues, function (statement) { - if (ownsBreakOrContinueStatement(loopNode, statement)) { - pushKeywordIf(keywords, statement.getFirstToken(), 66, 71); - } - }); - return ts.map(keywords, getReferenceEntryFromNode); - } - function getSwitchCaseDefaultOccurrences(switchStatement) { - var keywords = []; - pushKeywordIf(keywords, switchStatement.getFirstToken(), 92); - ts.forEach(switchStatement.caseBlock.clauses, function (clause) { - pushKeywordIf(keywords, clause.getFirstToken(), 67, 73); - var breaksAndContinues = aggregateAllBreakAndContinueStatements(clause); - ts.forEach(breaksAndContinues, function (statement) { - if (ownsBreakOrContinueStatement(switchStatement, statement)) { - pushKeywordIf(keywords, statement.getFirstToken(), 66); - } - }); - }); - return ts.map(keywords, getReferenceEntryFromNode); - } - function getBreakOrContinueStatementOccurences(breakOrContinueStatement) { - var owner = getBreakOrContinueOwner(breakOrContinueStatement); - if (owner) { - switch (owner.kind) { - case 186: - case 187: - case 188: - case 184: - case 185: - return getLoopBreakContinueOccurrences(owner); - case 193: - return getSwitchCaseDefaultOccurrences(owner); - } - } - return undefined; - } - function aggregateAllBreakAndContinueStatements(node) { - var statementAccumulator = []; - aggregate(node); - return statementAccumulator; - function aggregate(node) { - if (node.kind === 190 || node.kind === 189) { - statementAccumulator.push(node); - } - else if (!ts.isFunctionLike(node)) { - ts.forEachChild(node, aggregate); - } - } - ; - } - function ownsBreakOrContinueStatement(owner, statement) { - var actualOwner = getBreakOrContinueOwner(statement); - return actualOwner && actualOwner === owner; - } - function getBreakOrContinueOwner(statement) { - for (var node_1 = statement.parent; node_1; node_1 = node_1.parent) { - switch (node_1.kind) { - case 193: - if (statement.kind === 189) { + if (shouldCombindElseAndIf) { + result.push({ + fileName: fileName, + textSpan: ts.createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end), + kind: HighlightSpanKind.reference + }); + i++; // skip the next keyword continue; } - case 186: - case 187: - case 188: - case 185: - case 184: - if (!statement.label || isLabeledBy(node_1, statement.label.text)) { - return node_1; - } - break; - default: - if (ts.isFunctionLike(node_1)) { - return undefined; - } - break; - } - } - return undefined; - } - function getConstructorOccurrences(constructorDeclaration) { - var declarations = constructorDeclaration.symbol.getDeclarations(); - var keywords = []; - ts.forEach(declarations, function (declaration) { - ts.forEach(declaration.getChildren(), function (token) { - return pushKeywordIf(keywords, token, 114); - }); - }); - return ts.map(keywords, getReferenceEntryFromNode); - } - function getGetAndSetOccurrences(accessorDeclaration) { - var keywords = []; - tryPushAccessorKeyword(accessorDeclaration.symbol, 136); - tryPushAccessorKeyword(accessorDeclaration.symbol, 137); - return ts.map(keywords, getReferenceEntryFromNode); - function tryPushAccessorKeyword(accessorSymbol, accessorKind) { - var accessor = ts.getDeclarationOfKind(accessorSymbol, accessorKind); - if (accessor) { - ts.forEach(accessor.getChildren(), function (child) { return pushKeywordIf(keywords, child, 116, 120); }); + } + // Ordinary case: just highlight the keyword. + result.push(getHighlightSpanForNode(keywords[i])); } + return result; } } - function getModifierOccurrences(modifier, declaration) { - var container = declaration.parent; - if (ts.isAccessibilityModifier(modifier)) { - if (!(container.kind === 201 || - (declaration.kind === 129 && hasKind(container, 135)))) { - return undefined; - } - } - else if (modifier === 110) { - if (container.kind !== 201) { - return undefined; - } - } - else if (modifier === 78 || modifier === 115) { - if (!(container.kind === 206 || container.kind === 227)) { - return undefined; - } - } - else { + } + /// References and Occurrences + function getOccurrencesAtPositionCore(fileName, position) { + synchronizeHostData(); + return convertDocumentHighlights(getDocumentHighlights(fileName, position, [fileName])); + function convertDocumentHighlights(documentHighlights) { + if (!documentHighlights) { return undefined; } - var keywords = []; - var modifierFlag = getFlagFromModifier(modifier); - var nodes; - switch (container.kind) { - case 206: - case 227: - nodes = container.statements; - break; - case 135: - nodes = container.parameters.concat(container.parent.members); - break; - case 201: - nodes = container.members; - if (modifierFlag & 112) { - var constructor = ts.forEach(container.members, function (member) { - return member.kind === 135 && member; - }); - if (constructor) { - nodes = nodes.concat(constructor.parameters); - } - } - break; - default: - ts.Debug.fail("Invalid container kind."); - } - ts.forEach(nodes, function (node) { - if (node.modifiers && node.flags & modifierFlag) { - ts.forEach(node.modifiers, function (child) { return pushKeywordIf(keywords, child, modifier); }); - } - }); - return ts.map(keywords, getReferenceEntryFromNode); - function getFlagFromModifier(modifier) { - switch (modifier) { - case 109: - return 16; - case 107: - return 32; - case 108: - return 64; - case 110: - return 128; - case 78: - return 1; - case 115: - return 2; - default: - ts.Debug.fail(); + var result = []; + for (var _i = 0; _i < documentHighlights.length; _i++) { + var entry = documentHighlights[_i]; + for (var _a = 0, _b = entry.highlightSpans; _a < _b.length; _a++) { + var highlightSpan = _b[_a]; + result.push({ + fileName: entry.fileName, + textSpan: highlightSpan.textSpan, + isWriteAccess: highlightSpan.kind === HighlightSpanKind.writtenReference + }); } } - } - function hasKind(node, kind) { - return node !== undefined && node.kind === kind; - } - function parent(node) { - return node && node.parent; - } - function pushKeywordIf(keywordList, token) { - var expected = []; - for (var _i = 2; _i < arguments.length; _i++) { - expected[_i - 2] = arguments[_i]; - } - if (token && ts.contains(expected, token.kind)) { - keywordList.push(token); - return true; - } - return false; + return result; } } function convertReferences(referenceSymbols) { @@ -32195,6 +37754,7 @@ var ts; } function findReferences(fileName, position) { var referencedSymbols = findReferencedSymbols(fileName, position, false, false); + // Only include referenced symbols that have a valid definition. return ts.filter(referencedSymbols, function (rs) { return !!rs.definition; }); } function findReferencedSymbols(fileName, position, findInStrings, findInComments) { @@ -32204,63 +37764,72 @@ var ts; if (!node) { return undefined; } - if (node.kind !== 65 && + if (node.kind !== 65 /* Identifier */ && + // TODO (drosen): This should be enabled in a later release - currently breaks rename. + //node.kind !== SyntaxKind.ThisKeyword && + //node.kind !== SyntaxKind.SuperKeyword && !isLiteralNameOfPropertyDeclarationOrIndexAccess(node) && !isNameOfExternalModuleImportOrDeclaration(node)) { return undefined; } - ts.Debug.assert(node.kind === 65 || node.kind === 7 || node.kind === 8); - return getReferencesForNode(node, program.getSourceFiles(), false, findInStrings, findInComments); + ts.Debug.assert(node.kind === 65 /* Identifier */ || node.kind === 7 /* NumericLiteral */ || node.kind === 8 /* StringLiteral */); + return getReferencedSymbolsForNodes(node, program.getSourceFiles(), findInStrings, findInComments); } - function getReferencesForNode(node, sourceFiles, searchOnlyInCurrentFile, findInStrings, findInComments) { + function getReferencedSymbolsForNodes(node, sourceFiles, findInStrings, findInComments) { + // Labels if (isLabelName(node)) { if (isJumpStatementTarget(node)) { var labelDefinition = getTargetLabel(node.parent, node.text); + // if we have a label definition, look within its statement for references, if not, then + // the label is undefined and we have no results.. return labelDefinition ? getLabelReferencesInNode(labelDefinition.parent, labelDefinition) : undefined; } else { + // it is a label definition and not a target, search within the parent labeledStatement return getLabelReferencesInNode(node.parent, node); } } - if (node.kind === 93) { + if (node.kind === 93 /* ThisKeyword */) { return getReferencesForThisKeyword(node, sourceFiles); } - if (node.kind === 91) { + if (node.kind === 91 /* SuperKeyword */) { return getReferencesForSuperKeyword(node); } var symbol = typeInfoResolver.getSymbolAtLocation(node); + // Could not find a symbol e.g. unknown identifier if (!symbol) { + // Can't have references to something that we have no symbol for. return undefined; } var declarations = symbol.declarations; + // The symbol was an internal symbol and does not have a declaration e.g.undefined symbol if (!declarations || !declarations.length) { return undefined; } var result; + // Compute the meaning from the location and the symbol it references var searchMeaning = getIntersectingMeaningFromDeclarations(getMeaningFromLocation(node), declarations); + // Get the text to search for, we need to normalize it as external module names will have quote var declaredName = getDeclaredName(symbol, node); + // Try to get the smallest valid scope that we can limit our search to; + // otherwise we'll need to search globally (i.e. include each file). var scope = getSymbolScope(symbol); + // Maps from a symbol ID to the ReferencedSymbol entry in 'result'. var symbolToIndex = []; if (scope) { result = []; getReferencesInNode(scope, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); } else { - if (searchOnlyInCurrentFile) { - ts.Debug.assert(sourceFiles.length === 1); - result = []; - getReferencesInNode(sourceFiles[0], symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); - } - else { - var internedName = getInternedName(symbol, node, declarations); - ts.forEach(sourceFiles, function (sourceFile) { - cancellationToken.throwIfCancellationRequested(); - var nameTable = getNameTable(sourceFile); - if (ts.lookUp(nameTable, internedName)) { - result = result || []; - getReferencesInNode(sourceFile, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); - } - }); + var internedName = getInternedName(symbol, node, declarations); + for (var _i = 0; _i < sourceFiles.length; _i++) { + var sourceFile = sourceFiles[_i]; + cancellationToken.throwIfCancellationRequested(); + var nameTable = getNameTable(sourceFile); + if (ts.lookUp(nameTable, internedName)) { + result = result || []; + getReferencesInNode(sourceFile, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); + } } } return result; @@ -32282,20 +37851,29 @@ var ts; } function isImportOrExportSpecifierName(location) { return location.parent && - (location.parent.kind === 213 || location.parent.kind === 217) && + (location.parent.kind === 213 /* ImportSpecifier */ || location.parent.kind === 217 /* ExportSpecifier */) && location.parent.propertyName === location; } function isImportOrExportSpecifierImportSymbol(symbol) { - return (symbol.flags & 8388608) && ts.forEach(symbol.declarations, function (declaration) { - return declaration.kind === 213 || declaration.kind === 217; + return (symbol.flags & 8388608 /* Alias */) && ts.forEach(symbol.declarations, function (declaration) { + return declaration.kind === 213 /* ImportSpecifier */ || declaration.kind === 217 /* ExportSpecifier */; }); } function getDeclaredName(symbol, location) { - var functionExpression = ts.forEach(symbol.declarations, function (d) { return d.kind === 162 ? d : undefined; }); + // Special case for function expressions, whose names are solely local to their bodies. + var functionExpression = ts.forEach(symbol.declarations, function (d) { return d.kind === 162 /* FunctionExpression */ ? d : undefined; }); + // When a name gets interned into a SourceFile's 'identifiers' Map, + // its name is escaped and stored in the same way its symbol name/identifier + // name should be stored. Function expressions, however, are a special case, + // because despite sometimes having a name, the binder unconditionally binds them + // to a symbol with the name "__function". var name; if (functionExpression && functionExpression.name) { name = functionExpression.name.text; } + // If this is an export or import specifier it could have been renamed using the as syntax. + // if so we want to search for whatever under the cursor, the symbol is pointing to the alias (name) + // so check for the propertyName. if (isImportOrExportSpecifierName(location)) { return location.getText(); } @@ -32303,10 +37881,19 @@ var ts; return stripQuotes(name); } function getInternedName(symbol, location, declarations) { + // If this is an export or import specifier it could have been renamed using the as syntax. + // if so we want to search for whatever under the cursor, the symbol is pointing to the alias (name) + // so check for the propertyName. if (isImportOrExportSpecifierName(location)) { return location.getText(); } - var functionExpression = ts.forEach(declarations, function (d) { return d.kind === 162 ? d : undefined; }); + // Special case for function expressions, whose names are solely local to their bodies. + var functionExpression = ts.forEach(declarations, function (d) { return d.kind === 162 /* FunctionExpression */ ? d : undefined; }); + // When a name gets interned into a SourceFile's 'identifiers' Map, + // its name is escaped and stored in the same way its symbol name/identifier + // name should be stored. Function expressions, however, are a special case, + // because despite sometimes having a name, the binder unconditionally binds them + // to a symbol with the name "__function". var name = functionExpression && functionExpression.name ? functionExpression.name.text : symbol.name; @@ -32314,23 +37901,28 @@ var ts; } function stripQuotes(name) { var length = name.length; - if (length >= 2 && name.charCodeAt(0) === 34 && name.charCodeAt(length - 1) === 34) { + if (length >= 2 && name.charCodeAt(0) === 34 /* doubleQuote */ && name.charCodeAt(length - 1) === 34 /* doubleQuote */) { return name.substring(1, length - 1); } ; return name; } function getSymbolScope(symbol) { - if (symbol.flags & (4 | 8192)) { - var privateDeclaration = ts.forEach(symbol.getDeclarations(), function (d) { return (d.flags & 32) ? d : undefined; }); + // If this is private property or method, the scope is the containing class + if (symbol.flags & (4 /* Property */ | 8192 /* Method */)) { + var privateDeclaration = ts.forEach(symbol.getDeclarations(), function (d) { return (d.flags & 32 /* Private */) ? d : undefined; }); if (privateDeclaration) { - return ts.getAncestor(privateDeclaration, 201); + return ts.getAncestor(privateDeclaration, 201 /* ClassDeclaration */); } } - if (symbol.flags & 8388608) { + // If the symbol is an import we would like to find it if we are looking for what it imports. + // So consider it visibile outside its declaration scope. + if (symbol.flags & 8388608 /* Alias */) { return undefined; } - if (symbol.parent || (symbol.flags & 268435456)) { + // if this symbol is visible from its parent container, e.g. exported, then bail out + // if symbol correspond to the union property - bail out + if (symbol.parent || (symbol.flags & 268435456 /* UnionProperty */)) { return undefined; } var scope = undefined; @@ -32343,11 +37935,15 @@ var ts; return undefined; } if (scope && scope !== container) { + // Different declarations have different containers, bail out return undefined; } - if (container.kind === 227 && !ts.isExternalModule(container)) { + if (container.kind === 227 /* SourceFile */ && !ts.isExternalModule(container)) { + // This is a global variable and not an external module, any declaration defined + // within this scope is visible outside the file return undefined; } + // The search scope is the container node scope = container; } } @@ -32355,6 +37951,9 @@ var ts; } function getPossibleSymbolReferencePositions(sourceFile, symbolName, start, end) { var positions = []; + /// TODO: Cache symbol existence for files to save text search + // Also, need to make this work for unicode escapes. + // Be resilient in the face of a symbol with no name or zero length name if (!symbolName || !symbolName.length) { return positions; } @@ -32364,11 +37963,15 @@ var ts; var position = text.indexOf(symbolName, start); while (position >= 0) { cancellationToken.throwIfCancellationRequested(); + // If we are past the end, stop looking if (position > end) break; + // We found a match. Make sure it's not part of a larger word (i.e. the char + // before and after it have to be a non-identifier char). var endPosition = position + symbolNameLength; - if ((position === 0 || !ts.isIdentifierPart(text.charCodeAt(position - 1), 2)) && - (endPosition === sourceLength || !ts.isIdentifierPart(text.charCodeAt(endPosition), 2))) { + if ((position === 0 || !ts.isIdentifierPart(text.charCodeAt(position - 1), 2 /* Latest */)) && + (endPosition === sourceLength || !ts.isIdentifierPart(text.charCodeAt(endPosition), 2 /* Latest */))) { + // Found a real match. Keep searching. positions.push(position); } position = text.indexOf(symbolName, position + symbolNameLength + 1); @@ -32386,6 +37989,7 @@ var ts; if (!node || node.getWidth() !== labelName.length) { return; } + // Only pick labels that are either the target label, or have a target that is the target label if (node === targetLabel || (isJumpStatementTarget(node) && getTargetLabel(node, labelName) === targetLabel)) { references.push(getReferenceEntryFromNode(node)); @@ -32403,16 +38007,18 @@ var ts; } function isValidReferencePosition(node, searchSymbolName) { if (node) { + // Compare the length so we filter out strict superstrings of the symbol we are looking for switch (node.kind) { - case 65: + case 65 /* Identifier */: return node.getWidth() === searchSymbolName.length; - case 8: + case 8 /* StringLiteral */: if (isLiteralNameOfPropertyDeclarationOrIndexAccess(node) || isNameOfExternalModuleImportOrDeclaration(node)) { + // For string literals we have two additional chars for the quotes return node.getWidth() === searchSymbolName.length + 2; } break; - case 7: + case 7 /* NumericLiteral */: if (isLiteralNameOfPropertyDeclarationOrIndexAccess(node)) { return node.getWidth() === searchSymbolName.length; } @@ -32421,18 +38027,30 @@ var ts; } return false; } + /** Search within node "container" for references for a search value, where the search value is defined as a + * tuple of(searchSymbol, searchText, searchLocation, and searchMeaning). + * searchLocation: a node where the search value + */ function getReferencesInNode(container, searchSymbol, searchText, searchLocation, searchMeaning, findInStrings, findInComments, result, symbolToIndex) { var sourceFile = container.getSourceFile(); var tripleSlashDirectivePrefixRegex = /^\/\/\/\s*= 0) { + else if (!(referenceSymbol.flags & 67108864 /* Transient */) && searchSymbols.indexOf(shorthandValueSymbol) >= 0) { var referencedSymbol = getReferencedSymbol(shorthandValueSymbol); referencedSymbol.references.push(getReferenceEntryFromNode(referenceSymbolDeclaration.name)); } @@ -32479,12 +38097,15 @@ var ts; } function isInString(position) { var token = ts.getTokenAtPosition(sourceFile, position); - return token && token.kind === 8 && position > token.getStart(); + return token && token.kind === 8 /* StringLiteral */ && position > token.getStart(); } function isInComment(position) { var token = ts.getTokenAtPosition(sourceFile, position); if (token && position < token.getStart()) { + // First, we have to see if this position actually landed in a comment. var commentRanges = ts.getLeadingCommentRanges(sourceFile.text, token.pos); + // Then we want to make sure that it wasn't in a "///<" directive comment + // We don't want to unintentionally update a file name. return ts.forEach(commentRanges, function (c) { if (c.pos < position && position < c.end) { var commentText = sourceFile.text.substring(c.pos, c.end); @@ -32502,17 +38123,18 @@ var ts; if (!searchSpaceNode) { return undefined; } - var staticFlag = 128; + // Whether 'super' occurs in a static context within a class. + var staticFlag = 128 /* Static */; switch (searchSpaceNode.kind) { - case 132: - case 131: - case 134: - case 133: - case 135: - case 136: - case 137: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: staticFlag &= searchSpaceNode.flags; - searchSpaceNode = searchSpaceNode.parent; + searchSpaceNode = searchSpaceNode.parent; // re-assign to be the owning class break; default: return undefined; @@ -32523,11 +38145,14 @@ var ts; ts.forEach(possiblePositions, function (position) { cancellationToken.throwIfCancellationRequested(); var node = ts.getTouchingWord(sourceFile, position); - if (!node || node.kind !== 91) { + if (!node || node.kind !== 91 /* SuperKeyword */) { return; } var container = ts.getSuperContainer(node, false); - if (container && (128 & container.flags) === staticFlag && container.parent.symbol === searchSpaceNode.symbol) { + // If we have a 'super' container, we must have an enclosing class. + // Now make sure the owning class is the same as the search-space + // and has the same static qualifier as the original 'super's owner. + if (container && (128 /* Static */ & container.flags) === staticFlag && container.parent.symbol === searchSpaceNode.symbol) { references.push(getReferenceEntryFromNode(node)); } }); @@ -32536,34 +38161,39 @@ var ts; } function getReferencesForThisKeyword(thisOrSuperKeyword, sourceFiles) { var searchSpaceNode = ts.getThisContainer(thisOrSuperKeyword, false); - var staticFlag = 128; + // Whether 'this' occurs in a static context within a class. + var staticFlag = 128 /* Static */; switch (searchSpaceNode.kind) { - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: if (ts.isObjectLiteralMethod(searchSpaceNode)) { break; } - case 132: - case 131: - case 135: - case 136: - case 137: + // fall through + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: staticFlag &= searchSpaceNode.flags; - searchSpaceNode = searchSpaceNode.parent; + searchSpaceNode = searchSpaceNode.parent; // re-assign to be the owning class break; - case 227: + case 227 /* SourceFile */: if (ts.isExternalModule(searchSpaceNode)) { return undefined; } - case 200: - case 162: + // Fall through + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: break; + // Computed properties in classes are not handled here because references to this are illegal, + // so there is no point finding references to them. default: return undefined; } var references = []; var possiblePositions; - if (searchSpaceNode.kind === 227) { + if (searchSpaceNode.kind === 227 /* SourceFile */) { ts.forEach(sourceFiles, function (sourceFile) { possiblePositions = getPossibleSymbolReferencePositions(sourceFile, "this", sourceFile.getStart(), sourceFile.getEnd()); getThisReferencesInFile(sourceFile, sourceFile, possiblePositions, references); @@ -32589,30 +38219,32 @@ var ts; ts.forEach(possiblePositions, function (position) { cancellationToken.throwIfCancellationRequested(); var node = ts.getTouchingWord(sourceFile, position); - if (!node || node.kind !== 93) { + if (!node || node.kind !== 93 /* ThisKeyword */) { return; } var container = ts.getThisContainer(node, false); switch (searchSpaceNode.kind) { - case 162: - case 200: + case 162 /* FunctionExpression */: + case 200 /* FunctionDeclaration */: if (searchSpaceNode.symbol === container.symbol) { result.push(getReferenceEntryFromNode(node)); } break; - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: if (ts.isObjectLiteralMethod(searchSpaceNode) && searchSpaceNode.symbol === container.symbol) { result.push(getReferenceEntryFromNode(node)); } break; - case 201: - if (container.parent && searchSpaceNode.symbol === container.parent.symbol && (container.flags & 128) === staticFlag) { + case 201 /* ClassDeclaration */: + // Make sure the container belongs to the same class + // and has the appropriate static modifier from the original container. + if (container.parent && searchSpaceNode.symbol === container.parent.symbol && (container.flags & 128 /* Static */) === staticFlag) { result.push(getReferenceEntryFromNode(node)); } break; - case 227: - if (container.kind === 227 && !ts.isExternalModule(container)) { + case 227 /* SourceFile */: + if (container.kind === 227 /* SourceFile */ && !ts.isExternalModule(container)) { result.push(getReferenceEntryFromNode(node)); } break; @@ -32621,37 +38253,56 @@ var ts; } } function populateSearchSymbolSet(symbol, location) { + // The search set contains at least the current symbol var result = [symbol]; + // If the symbol is an alias, add what it alaises to the list if (isImportOrExportSpecifierImportSymbol(symbol)) { result.push(typeInfoResolver.getAliasedSymbol(symbol)); } + // If the location is in a context sensitive location (i.e. in an object literal) try + // to get a contextual type for it, and add the property symbol from the contextual + // type to the search set if (isNameOfPropertyAssignment(location)) { ts.forEach(getPropertySymbolsFromContextualType(location), function (contextualSymbol) { result.push.apply(result, typeInfoResolver.getRootSymbols(contextualSymbol)); }); + /* Because in short-hand property assignment, location has two meaning : property name and as value of the property + * When we do findAllReference at the position of the short-hand property assignment, we would want to have references to position of + * property name and variable declaration of the identifier. + * Like in below example, when querying for all references for an identifier 'name', of the property assignment, the language service + * should show both 'name' in 'obj' and 'name' in variable declaration + * let name = "Foo"; + * let obj = { name }; + * In order to do that, we will populate the search set with the value symbol of the identifier as a value of the property assignment + * so that when matching with potential reference symbol, both symbols from property declaration and variable declaration + * will be included correctly. + */ var shorthandValueSymbol = typeInfoResolver.getShorthandAssignmentValueSymbol(location.parent); if (shorthandValueSymbol) { result.push(shorthandValueSymbol); } } + // If this is a union property, add all the symbols from all its source symbols in all unioned types. + // If the symbol is an instantiation from a another symbol (e.g. widened symbol) , add the root the list ts.forEach(typeInfoResolver.getRootSymbols(symbol), function (rootSymbol) { if (rootSymbol !== symbol) { result.push(rootSymbol); } - if (rootSymbol.parent && rootSymbol.parent.flags & (32 | 64)) { + // Add symbol of properties/methods of the same name in base classes and implemented interfaces definitions + if (rootSymbol.parent && rootSymbol.parent.flags & (32 /* Class */ | 64 /* Interface */)) { getPropertySymbolsFromBaseTypes(rootSymbol.parent, rootSymbol.getName(), result); } }); return result; } function getPropertySymbolsFromBaseTypes(symbol, propertyName, result) { - if (symbol && symbol.flags & (32 | 64)) { + if (symbol && symbol.flags & (32 /* Class */ | 64 /* Interface */)) { ts.forEach(symbol.getDeclarations(), function (declaration) { - if (declaration.kind === 201) { + if (declaration.kind === 201 /* ClassDeclaration */) { getPropertySymbolFromTypeReference(ts.getClassExtendsHeritageClauseElement(declaration)); ts.forEach(ts.getClassImplementsHeritageClauseElements(declaration), getPropertySymbolFromTypeReference); } - else if (declaration.kind === 202) { + else if (declaration.kind === 202 /* InterfaceDeclaration */) { ts.forEach(ts.getInterfaceBaseTypeNodes(declaration), getPropertySymbolFromTypeReference); } }); @@ -32665,6 +38316,7 @@ var ts; if (propertySymbol) { result.push(propertySymbol); } + // Visit the typeReference as well to see if it directly or indirectly use that property getPropertySymbolsFromBaseTypes(type.symbol, propertyName, result); } } @@ -32674,22 +38326,32 @@ var ts; if (searchSymbols.indexOf(referenceSymbol) >= 0) { return referenceSymbol; } + // If the reference symbol is an alias, check if what it is aliasing is one of the search + // symbols. if (isImportOrExportSpecifierImportSymbol(referenceSymbol)) { var aliasedSymbol = typeInfoResolver.getAliasedSymbol(referenceSymbol); if (searchSymbols.indexOf(aliasedSymbol) >= 0) { return aliasedSymbol; } } + // If the reference location is in an object literal, try to get the contextual type for the + // object literal, lookup the property symbol in the contextual type, and use this symbol to + // compare to our searchSymbol if (isNameOfPropertyAssignment(referenceLocation)) { return ts.forEach(getPropertySymbolsFromContextualType(referenceLocation), function (contextualSymbol) { return ts.forEach(typeInfoResolver.getRootSymbols(contextualSymbol), function (s) { return searchSymbols.indexOf(s) >= 0 ? s : undefined; }); }); } + // Unwrap symbols to get to the root (e.g. transient symbols as a result of widening) + // Or a union property, use its underlying unioned symbols return ts.forEach(typeInfoResolver.getRootSymbols(referenceSymbol), function (rootSymbol) { + // if it is in the list, then we are done if (searchSymbols.indexOf(rootSymbol) >= 0) { return rootSymbol; } - if (rootSymbol.parent && rootSymbol.parent.flags & (32 | 64)) { + // Finally, try all properties with the same name in any type the containing type extended or implemented, and + // see if any is in the list + if (rootSymbol.parent && rootSymbol.parent.flags & (32 /* Class */ | 64 /* Interface */)) { var result_2 = []; getPropertySymbolsFromBaseTypes(rootSymbol.parent, rootSymbol.getName(), result_2); return ts.forEach(result_2, function (s) { return searchSymbols.indexOf(s) >= 0 ? s : undefined; }); @@ -32701,17 +38363,19 @@ var ts; if (isNameOfPropertyAssignment(node)) { var objectLiteral = node.parent.parent; var contextualType = typeInfoResolver.getContextualType(objectLiteral); - var name_20 = node.text; + var name_22 = node.text; if (contextualType) { - if (contextualType.flags & 16384) { - var unionProperty = contextualType.getProperty(name_20); + if (contextualType.flags & 16384 /* Union */) { + // This is a union type, first see if the property we are looking for is a union property (i.e. exists in all types) + // if not, search the constituent types for the property + var unionProperty = contextualType.getProperty(name_22); if (unionProperty) { return [unionProperty]; } else { var result_3 = []; ts.forEach(contextualType.types, function (t) { - var symbol = t.getProperty(name_20); + var symbol = t.getProperty(name_22); if (symbol) { result_3.push(symbol); } @@ -32720,7 +38384,7 @@ var ts; } } else { - var symbol_1 = contextualType.getProperty(name_20); + var symbol_1 = contextualType.getProperty(name_22); if (symbol_1) { return [symbol_1]; } @@ -32729,10 +38393,22 @@ var ts; } return undefined; } + /** Given an initial searchMeaning, extracted from a location, widen the search scope based on the declarations + * of the corresponding symbol. e.g. if we are searching for "Foo" in value position, but "Foo" references a class + * then we need to widen the search to include type positions as well. + * On the contrary, if we are searching for "Bar" in type position and we trace bar to an interface, and an uninstantiated + * module, we want to keep the search limited to only types, as the two declarations (interface and uninstantiated module) + * do not intersect in any of the three spaces. + */ function getIntersectingMeaningFromDeclarations(meaning, declarations) { if (declarations) { var lastIterationMeaning; do { + // The result is order-sensitive, for instance if initialMeaning === Namespace, and declarations = [class, instantiated module] + // we need to consider both as they initialMeaning intersects with the module in the namespace space, and the module + // intersects with the class in the value space. + // To achieve that we will keep iterating until the result stabilizes. + // Remember the last meaning lastIterationMeaning = meaning; for (var _i = 0; _i < declarations.length; _i++) { var declaration = declarations[_i]; @@ -32749,7 +38425,7 @@ var ts; function getReferenceEntryFromNode(node) { var start = node.getStart(); var end = node.getEnd(); - if (node.kind === 8) { + if (node.kind === 8 /* StringLiteral */) { start += 1; end -= 1; } @@ -32759,22 +38435,24 @@ var ts; isWriteAccess: isWriteAccess(node) }; } + /** A node is considered a writeAccess iff it is a name of a declaration or a target of an assignment */ function isWriteAccess(node) { - if (node.kind === 65 && ts.isDeclarationName(node)) { + if (node.kind === 65 /* Identifier */ && ts.isDeclarationName(node)) { return true; } var parent = node.parent; if (parent) { - if (parent.kind === 168 || parent.kind === 167) { + if (parent.kind === 168 /* PostfixUnaryExpression */ || parent.kind === 167 /* PrefixUnaryExpression */) { return true; } - else if (parent.kind === 169 && parent.left === node) { + else if (parent.kind === 169 /* BinaryExpression */ && parent.left === node) { var operator = parent.operatorToken.kind; - return 53 <= operator && operator <= 64; + return 53 /* FirstAssignment */ <= operator && operator <= 64 /* LastAssignment */; } } return false; } + /// NavigateTo function getNavigateToItems(searchValue, maxResultCount) { synchronizeHostData(); return ts.NavigateTo.getNavigateToItems(program, cancellationToken, searchValue, maxResultCount); @@ -32801,60 +38479,61 @@ var ts; } function getMeaningFromDeclaration(node) { switch (node.kind) { - case 129: - case 198: - case 152: - case 132: - case 131: - case 224: - case 225: - case 226: - case 134: - case 133: - case 135: - case 136: - case 137: - case 200: - case 162: - case 163: - case 223: - return 1; - case 128: - case 202: - case 203: - case 145: - return 2; - case 201: - case 204: - return 1 | 2; - case 205: - if (node.name.kind === 8) { - return 4 | 1; + case 129 /* Parameter */: + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 224 /* PropertyAssignment */: + case 225 /* ShorthandPropertyAssignment */: + case 226 /* EnumMember */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + case 223 /* CatchClause */: + return 1 /* Value */; + case 128 /* TypeParameter */: + case 202 /* InterfaceDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 145 /* TypeLiteral */: + return 2 /* Type */; + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + return 1 /* Value */ | 2 /* Type */; + case 205 /* ModuleDeclaration */: + if (node.name.kind === 8 /* StringLiteral */) { + return 4 /* Namespace */ | 1 /* Value */; } - else if (ts.getModuleInstanceState(node) === 1) { - return 4 | 1; + else if (ts.getModuleInstanceState(node) === 1 /* Instantiated */) { + return 4 /* Namespace */ | 1 /* Value */; } else { - return 4; + return 4 /* Namespace */; } - case 212: - case 213: - case 208: - case 209: - case 214: - case 215: - return 1 | 2 | 4; - case 227: - return 4 | 1; + case 212 /* NamedImports */: + case 213 /* ImportSpecifier */: + case 208 /* ImportEqualsDeclaration */: + case 209 /* ImportDeclaration */: + case 214 /* ExportAssignment */: + case 215 /* ExportDeclaration */: + return 1 /* Value */ | 2 /* Type */ | 4 /* Namespace */; + // An external module can be a Value + case 227 /* SourceFile */: + return 4 /* Namespace */ | 1 /* Value */; } - return 1 | 2 | 4; + return 1 /* Value */ | 2 /* Type */ | 4 /* Namespace */; ts.Debug.fail("Unknown declaration type"); } function isTypeReference(node) { if (ts.isRightSideOfQualifiedNameOrPropertyAccess(node)) { node = node.parent; } - return node.parent.kind === 141 || node.parent.kind === 177; + return node.parent.kind === 141 /* TypeReference */ || node.parent.kind === 177 /* HeritageClauseElement */; } function isNamespaceReference(node) { return isQualifiedNameNamespaceReference(node) || isPropertyAccessNamespaceReference(node); @@ -32862,48 +38541,51 @@ var ts; function isPropertyAccessNamespaceReference(node) { var root = node; var isLastClause = true; - if (root.parent.kind === 155) { - while (root.parent && root.parent.kind === 155) { + if (root.parent.kind === 155 /* PropertyAccessExpression */) { + while (root.parent && root.parent.kind === 155 /* PropertyAccessExpression */) { root = root.parent; } isLastClause = root.name === node; } - if (!isLastClause && root.parent.kind === 177 && root.parent.parent.kind === 222) { + if (!isLastClause && root.parent.kind === 177 /* HeritageClauseElement */ && root.parent.parent.kind === 222 /* HeritageClause */) { var decl = root.parent.parent.parent; - return (decl.kind === 201 && root.parent.parent.token === 103) || - (decl.kind === 202 && root.parent.parent.token === 79); + return (decl.kind === 201 /* ClassDeclaration */ && root.parent.parent.token === 103 /* ImplementsKeyword */) || + (decl.kind === 202 /* InterfaceDeclaration */ && root.parent.parent.token === 79 /* ExtendsKeyword */); } return false; } function isQualifiedNameNamespaceReference(node) { var root = node; var isLastClause = true; - if (root.parent.kind === 126) { - while (root.parent && root.parent.kind === 126) { + if (root.parent.kind === 126 /* QualifiedName */) { + while (root.parent && root.parent.kind === 126 /* QualifiedName */) { root = root.parent; } isLastClause = root.right === node; } - return root.parent.kind === 141 && !isLastClause; + return root.parent.kind === 141 /* TypeReference */ && !isLastClause; } function isInRightSideOfImport(node) { - while (node.parent.kind === 126) { + while (node.parent.kind === 126 /* QualifiedName */) { node = node.parent; } return ts.isInternalModuleImportEqualsDeclaration(node.parent) && node.parent.moduleReference === node; } function getMeaningFromRightHandSideOfImportEquals(node) { - ts.Debug.assert(node.kind === 65); - if (node.parent.kind === 126 && + ts.Debug.assert(node.kind === 65 /* Identifier */); + // import a = |b|; // Namespace + // import a = |b.c|; // Value, type, namespace + // import a = |b.c|.d; // Namespace + if (node.parent.kind === 126 /* QualifiedName */ && node.parent.right === node && - node.parent.parent.kind === 208) { - return 1 | 2 | 4; + node.parent.parent.kind === 208 /* ImportEqualsDeclaration */) { + return 1 /* Value */ | 2 /* Type */ | 4 /* Namespace */; } - return 4; + return 4 /* Namespace */; } function getMeaningFromLocation(node) { - if (node.parent.kind === 214) { - return 1 | 2 | 4; + if (node.parent.kind === 214 /* ExportAssignment */) { + return 1 /* Value */ | 2 /* Type */ | 4 /* Namespace */; } else if (isInRightSideOfImport(node)) { return getMeaningFromRightHandSideOfImportEquals(node); @@ -32912,64 +38594,79 @@ var ts; return getMeaningFromDeclaration(node.parent); } else if (isTypeReference(node)) { - return 2; + return 2 /* Type */; } else if (isNamespaceReference(node)) { - return 4; + return 4 /* Namespace */; } else { - return 1; + return 1 /* Value */; } } + // Signature help + /** + * This is a semantic operation. + */ function getSignatureHelpItems(fileName, position) { synchronizeHostData(); var sourceFile = getValidSourceFile(fileName); return ts.SignatureHelp.getSignatureHelpItems(sourceFile, position, typeInfoResolver, cancellationToken); } + /// Syntactic features function getSourceFile(fileName) { return syntaxTreeCache.getCurrentSourceFile(fileName); } function getNameOrDottedNameSpan(fileName, startPos, endPos) { var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); + // Get node at the location var node = ts.getTouchingPropertyName(sourceFile, startPos); if (!node) { return; } switch (node.kind) { - case 155: - case 126: - case 8: - case 80: - case 95: - case 89: - case 91: - case 93: - case 65: + case 155 /* PropertyAccessExpression */: + case 126 /* QualifiedName */: + case 8 /* StringLiteral */: + case 80 /* FalseKeyword */: + case 95 /* TrueKeyword */: + case 89 /* NullKeyword */: + case 91 /* SuperKeyword */: + case 93 /* ThisKeyword */: + case 65 /* Identifier */: break; + // Cant create the text span default: return; } var nodeForStartPos = node; while (true) { if (isRightSideOfPropertyAccess(nodeForStartPos) || isRightSideOfQualifiedName(nodeForStartPos)) { + // If on the span is in right side of the the property or qualified name, return the span from the qualified name pos to end of this node nodeForStartPos = nodeForStartPos.parent; } else if (isNameOfModuleDeclaration(nodeForStartPos)) { - if (nodeForStartPos.parent.parent.kind === 205 && + // If this is name of a module declarations, check if this is right side of dotted module name + // If parent of the module declaration which is parent of this node is module declaration and its body is the module declaration that this node is name of + // Then this name is name from dotted module + if (nodeForStartPos.parent.parent.kind === 205 /* ModuleDeclaration */ && nodeForStartPos.parent.parent.body === nodeForStartPos.parent) { + // Use parent module declarations name for start pos nodeForStartPos = nodeForStartPos.parent.parent.name; } else { + // We have to use this name for start pos break; } } else { + // Is not a member expression so we have found the node for start pos break; } } return ts.createTextSpanFromBounds(nodeForStartPos.getStart(), node.getEnd()); } function getBreakpointStatementAtPosition(fileName, position) { + // doesn't use compiler - no need to synchronize with host var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); return ts.BreakpointResolver.spanInSourceFileAtLocation(sourceFile, position); } @@ -32985,39 +38682,46 @@ var ts; return result; function classifySymbol(symbol, meaningAtPosition) { var flags = symbol.getFlags(); - if (flags & 32) { + if (flags & 32 /* Class */) { return ClassificationTypeNames.className; } - else if (flags & 384) { + else if (flags & 384 /* Enum */) { return ClassificationTypeNames.enumName; } - else if (flags & 524288) { + else if (flags & 524288 /* TypeAlias */) { return ClassificationTypeNames.typeAlias; } - else if (meaningAtPosition & 2) { - if (flags & 64) { + else if (meaningAtPosition & 2 /* Type */) { + if (flags & 64 /* Interface */) { return ClassificationTypeNames.interfaceName; } - else if (flags & 262144) { + else if (flags & 262144 /* TypeParameter */) { return ClassificationTypeNames.typeParameterName; } } - else if (flags & 1536) { - if (meaningAtPosition & 4 || - (meaningAtPosition & 1 && hasValueSideModule(symbol))) { + else if (flags & 1536 /* Module */) { + // Only classify a module as such if + // - It appears in a namespace context. + // - There exists a module declaration which actually impacts the value side. + if (meaningAtPosition & 4 /* Namespace */ || + (meaningAtPosition & 1 /* Value */ && hasValueSideModule(symbol))) { return ClassificationTypeNames.moduleName; } } return undefined; + /** + * Returns true if there exists a module that introduces entities on the value side. + */ function hasValueSideModule(symbol) { return ts.forEach(symbol.declarations, function (declaration) { - return declaration.kind === 205 && ts.getModuleInstanceState(declaration) == 1; + return declaration.kind === 205 /* ModuleDeclaration */ && ts.getModuleInstanceState(declaration) == 1 /* Instantiated */; }); } } function processNode(node) { + // Only walk into nodes that intersect the requested span. if (node && ts.textSpanIntersectsWith(span, node.getStart(), node.getWidth())) { - if (node.kind === 65 && node.getWidth() > 0) { + if (node.kind === 65 /* Identifier */ && node.getWidth() > 0) { var symbol = typeInfoResolver.getSymbolAtLocation(node); if (symbol) { var type = classifySymbol(symbol, getMeaningFromLocation(node)); @@ -33034,9 +38738,11 @@ var ts; } } function getSyntacticClassifications(fileName, span) { + // doesn't use compiler - no need to synchronize with host var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); - var triviaScanner = ts.createScanner(2, false, sourceFile.text); - var mergeConflictScanner = ts.createScanner(2, false, sourceFile.text); + // Make a scanner we can get trivia from. + var triviaScanner = ts.createScanner(2 /* Latest */, false, sourceFile.text); + var mergeConflictScanner = ts.createScanner(2 /* Latest */, false, sourceFile.text); var result = []; processElement(sourceFile); return result; @@ -33045,6 +38751,7 @@ var ts; if (tokenStart === token.pos) { return; } + // token has trivia. Classify them appropriately. triviaScanner.setTextPos(token.pos); while (true) { var start = triviaScanner.getTextPos(); @@ -33056,29 +38763,36 @@ var ts; return; } if (ts.isComment(kind)) { + // Simple comment. Just add as is. result.push({ textSpan: ts.createTextSpan(start, width), classificationType: ClassificationTypeNames.comment }); continue; } - if (kind === 6) { + if (kind === 6 /* ConflictMarkerTrivia */) { var text = sourceFile.text; var ch = text.charCodeAt(start); - if (ch === 60 || ch === 62) { + // for the <<<<<<< and >>>>>>> markers, we just add them in as comments + // in the classification stream. + if (ch === 60 /* lessThan */ || ch === 62 /* greaterThan */) { result.push({ textSpan: ts.createTextSpan(start, width), classificationType: ClassificationTypeNames.comment }); continue; } - ts.Debug.assert(ch === 61); + // for the ======== add a comment for the first line, and then lex all + // subsequent lines up until the end of the conflict marker. + ts.Debug.assert(ch === 61 /* equals */); classifyDisabledMergeCode(text, start, end); } } } } function classifyDisabledMergeCode(text, start, end) { + // Classify the line that the ======= marker is on as a comment. Then just lex + // all further tokens and add them to the result. for (var i = start; i < end; i++) { if (ts.isLineBreak(text.charCodeAt(i))) { break; @@ -33117,69 +38831,79 @@ var ts; } } } + // for accurate classification, the actual token should be passed in. however, for + // cases like 'disabled merge code' classification, we just get the token kind and + // classify based on that instead. function classifyTokenType(tokenKind, token) { if (ts.isKeyword(tokenKind)) { return ClassificationTypeNames.keyword; } - if (tokenKind === 24 || tokenKind === 25) { + // Special case < and > If they appear in a generic context they are punctuation, + // not operators. + if (tokenKind === 24 /* LessThanToken */ || tokenKind === 25 /* GreaterThanToken */) { + // If the node owning the token has a type argument list or type parameter list, then + // we can effectively assume that a '<' and '>' belong to those lists. if (token && ts.getTypeArgumentOrTypeParameterList(token.parent)) { return ClassificationTypeNames.punctuation; } } if (ts.isPunctuation(tokenKind)) { if (token) { - if (tokenKind === 53) { - if (token.parent.kind === 198 || - token.parent.kind === 132 || - token.parent.kind === 129) { + if (tokenKind === 53 /* EqualsToken */) { + // the '=' in a variable declaration is special cased here. + if (token.parent.kind === 198 /* VariableDeclaration */ || + token.parent.kind === 132 /* PropertyDeclaration */ || + token.parent.kind === 129 /* Parameter */) { return ClassificationTypeNames.operator; } } - if (token.parent.kind === 169 || - token.parent.kind === 167 || - token.parent.kind === 168 || - token.parent.kind === 170) { + if (token.parent.kind === 169 /* BinaryExpression */ || + token.parent.kind === 167 /* PrefixUnaryExpression */ || + token.parent.kind === 168 /* PostfixUnaryExpression */ || + token.parent.kind === 170 /* ConditionalExpression */) { return ClassificationTypeNames.operator; } } return ClassificationTypeNames.punctuation; } - else if (tokenKind === 7) { + else if (tokenKind === 7 /* NumericLiteral */) { return ClassificationTypeNames.numericLiteral; } - else if (tokenKind === 8) { + else if (tokenKind === 8 /* StringLiteral */) { return ClassificationTypeNames.stringLiteral; } - else if (tokenKind === 9) { + else if (tokenKind === 9 /* RegularExpressionLiteral */) { + // TODO: we should get another classification type for these literals. return ClassificationTypeNames.stringLiteral; } else if (ts.isTemplateLiteralKind(tokenKind)) { + // TODO (drosen): we should *also* get another classification type for these literals. return ClassificationTypeNames.stringLiteral; } - else if (tokenKind === 65) { + else if (tokenKind === 65 /* Identifier */) { if (token) { switch (token.parent.kind) { - case 201: + case 201 /* ClassDeclaration */: if (token.parent.name === token) { return ClassificationTypeNames.className; } return; - case 128: + case 128 /* TypeParameter */: if (token.parent.name === token) { return ClassificationTypeNames.typeParameterName; } return; - case 202: + case 202 /* InterfaceDeclaration */: if (token.parent.name === token) { return ClassificationTypeNames.interfaceName; } return; - case 204: + case 204 /* EnumDeclaration */: if (token.parent.name === token) { return ClassificationTypeNames.enumName; } return; - case 205: + case 205 /* ModuleDeclaration */: if (token.parent.name === token) { return ClassificationTypeNames.moduleName; } @@ -33190,6 +38914,7 @@ var ts; } } function processElement(element) { + // Ignore nodes that don't intersect the original span to classify. if (ts.textSpanIntersectsWith(span, element.getFullStart(), element.getFullWidth())) { var children = element.getChildren(); for (var _i = 0; _i < children.length; _i++) { @@ -33198,6 +38923,7 @@ var ts; classifyToken(child); } else { + // Recurse into our child nodes. processElement(child); } } @@ -33205,6 +38931,7 @@ var ts; } } function getOutliningSpans(fileName) { + // doesn't use compiler - no need to synchronize with host var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); return ts.OutliningElementsCollector.collectElements(sourceFile); } @@ -33214,6 +38941,7 @@ var ts; var token = ts.getTouchingToken(sourceFile, position); if (token.getStart(sourceFile) === position) { var matchKind = getMatchingTokenKind(token); + // Ensure that there is a corresponding token to match ours. if (matchKind) { var parentElement = token.parent; var childNodes = parentElement.getChildren(sourceFile); @@ -33222,6 +38950,7 @@ var ts; if (current.kind === matchKind) { var range1 = ts.createTextSpan(token.getStart(sourceFile), token.getWidth(sourceFile)); var range2 = ts.createTextSpan(current.getStart(sourceFile), current.getWidth(sourceFile)); + // We want to order the braces when we return the result. if (range1.start < range2.start) { result.push(range1, range2); } @@ -33236,14 +38965,14 @@ var ts; return result; function getMatchingTokenKind(token) { switch (token.kind) { - case 14: return 15; - case 16: return 17; - case 18: return 19; - case 24: return 25; - case 15: return 14; - case 17: return 16; - case 19: return 18; - case 25: return 24; + case 14 /* OpenBraceToken */: return 15 /* CloseBraceToken */; + case 16 /* OpenParenToken */: return 17 /* CloseParenToken */; + case 18 /* OpenBracketToken */: return 19 /* CloseBracketToken */; + case 24 /* LessThanToken */: return 25 /* GreaterThanToken */; + case 15 /* CloseBraceToken */: return 14 /* OpenBraceToken */; + case 17 /* CloseParenToken */: return 16 /* OpenParenToken */; + case 19 /* CloseBracketToken */: return 18 /* OpenBracketToken */; + case 25 /* GreaterThanToken */: return 24 /* LessThanToken */; } return undefined; } @@ -33279,6 +39008,12 @@ var ts; return []; } function getTodoComments(fileName, descriptors) { + // Note: while getting todo comments seems like a syntactic operation, we actually + // treat it as a semantic operation here. This is because we expect our host to call + // this on every single file. If we treat this syntactically, then that will cause + // us to populate and throw away the tree in our syntax tree cache for each file. By + // treating this as a semantic operation, we can access any tree without throwing + // anything away. synchronizeHostData(); var sourceFile = getValidSourceFile(fileName); cancellationToken.throwIfCancellationRequested(); @@ -33289,10 +39024,29 @@ var ts; var matchArray; while (matchArray = regExp.exec(fileContents)) { cancellationToken.throwIfCancellationRequested(); + // If we got a match, here is what the match array will look like. Say the source text is: + // + // " // hack 1" + // + // The result array with the regexp: will be: + // + // ["// hack 1", "// ", "hack 1", undefined, "hack"] + // + // Here are the relevant capture groups: + // 0) The full match for the entire regexp. + // 1) The preamble to the message portion. + // 2) The message portion. + // 3...N) The descriptor that was matched - by index. 'undefined' for each + // descriptor that didn't match. an actual value if it did match. + // + // i.e. 'undefined' in position 3 above means TODO(jason) didn't match. + // "hack" in position 4 means HACK did match. var firstDescriptorCaptureIndex = 3; ts.Debug.assert(matchArray.length === descriptors.length + firstDescriptorCaptureIndex); var preamble = matchArray[1]; var matchPosition = matchArray.index + preamble.length; + // OK, we have found a match in the file. This is only an acceptable match if + // it is contained within a comment. var token = ts.getTokenAtPosition(sourceFile, matchPosition); if (!isInsideComment(sourceFile, token, matchPosition)) { continue; @@ -33304,6 +39058,8 @@ var ts; } } ts.Debug.assert(descriptor !== undefined); + // We don't want to match something like 'TODOBY', so we make sure a non + // letter/digit follows the match. if (isLetterOrDigit(fileContents.charCodeAt(matchPosition + descriptor.text.length))) { continue; } @@ -33322,32 +39078,71 @@ var ts; function getTodoCommentsRegExp() { // NOTE: ?: means 'non-capture group'. It allows us to have groups without having to // filter them out later in the final result array. + // TODO comments can appear in one of the following forms: + // + // 1) // TODO or /////////// TODO + // + // 2) /* TODO or /********** TODO + // + // 3) /* + // * TODO + // */ + // + // The following three regexps are used to match the start of the text up to the TODO + // comment portion. var singleLineCommentStart = /(?:\/\/+\s*)/.source; var multiLineCommentStart = /(?:\/\*+\s*)/.source; var anyNumberOfSpacesAndAsterixesAtStartOfLine = /(?:^(?:\s|\*)*)/.source; + // Match any of the above three TODO comment start regexps. + // Note that the outermost group *is* a capture group. We want to capture the preamble + // so that we can determine the starting position of the TODO comment match. var preamble = "(" + anyNumberOfSpacesAndAsterixesAtStartOfLine + "|" + singleLineCommentStart + "|" + multiLineCommentStart + ")"; + // Takes the descriptors and forms a regexp that matches them as if they were literals. + // For example, if the descriptors are "TODO(jason)" and "HACK", then this will be: + // + // (?:(TODO\(jason\))|(HACK)) + // + // Note that the outermost group is *not* a capture group, but the innermost groups + // *are* capture groups. By capturing the inner literals we can determine after + // matching which descriptor we are dealing with. var literals = "(?:" + ts.map(descriptors, function (d) { return "(" + escapeRegExp(d.text) + ")"; }).join("|") + ")"; + // After matching a descriptor literal, the following regexp matches the rest of the + // text up to the end of the line (or */). var endOfLineOrEndOfComment = /(?:$|\*\/)/.source; var messageRemainder = /(?:.*?)/.source; + // This is the portion of the match we'll return as part of the TODO comment result. We + // match the literal portion up to the end of the line or end of comment. var messagePortion = "(" + literals + messageRemainder + ")"; var regExpString = preamble + messagePortion + endOfLineOrEndOfComment; + // The final regexp will look like this: + // /((?:\/\/+\s*)|(?:\/\*+\s*)|(?:^(?:\s|\*)*))((?:(TODO\(jason\))|(HACK))(?:.*?))(?:$|\*\/)/gim + // The flags of the regexp are important here. + // 'g' is so that we are doing a global search and can find matches several times + // in the input. + // + // 'i' is for case insensitivity (We do this to match C# TODO comment code). + // + // 'm' is so we can find matches in a multi-line input. return new RegExp(regExpString, "gim"); } function isLetterOrDigit(char) { - return (char >= 97 && char <= 122) || - (char >= 65 && char <= 90) || - (char >= 48 && char <= 57); + return (char >= 97 /* a */ && char <= 122 /* z */) || + (char >= 65 /* A */ && char <= 90 /* Z */) || + (char >= 48 /* _0 */ && char <= 57 /* _9 */); } } function getRenameInfo(fileName, position) { synchronizeHostData(); var sourceFile = getValidSourceFile(fileName); var node = ts.getTouchingWord(sourceFile, position); - if (node && node.kind === 65) { + // Can only rename an identifier. + if (node && node.kind === 65 /* Identifier */) { var symbol = typeInfoResolver.getSymbolAtLocation(node); + // Only allow a symbol to be renamed if it actually has at least one declaration. if (symbol) { var declarations = symbol.getDeclarations(); if (declarations && declarations.length > 0) { + // Disallow rename for elements that are defined in the standard TypeScript library. var defaultLibFileName = host.getDefaultLibFileName(host.getCompilationSettings()); if (defaultLibFileName) { for (var _i = 0; _i < declarations.length; _i++) { @@ -33402,6 +39197,7 @@ var ts; getReferencesAtPosition: getReferencesAtPosition, findReferences: findReferences, getOccurrencesAtPosition: getOccurrencesAtPosition, + getDocumentHighlights: getDocumentHighlights, getNameOrDottedNameSpan: getNameOrDottedNameSpan, getBreakpointStatementAtPosition: getBreakpointStatementAtPosition, getNavigateToItems: getNavigateToItems, @@ -33421,6 +39217,7 @@ var ts; }; } ts.createLanguageService = createLanguageService; + /* @internal */ function getNameTable(sourceFile) { if (!sourceFile.nameTable) { initializeNameTable(sourceFile); @@ -33434,13 +39231,17 @@ var ts; sourceFile.nameTable = nameTable; function walk(node) { switch (node.kind) { - case 65: + case 65 /* Identifier */: nameTable[node.text] = node.text; break; - case 8: - case 7: + case 8 /* StringLiteral */: + case 7 /* NumericLiteral */: + // We want to store any numbers/strings if they were a name that could be + // related to a declaration. So, if we have 'import x = require("something")' + // then we want 'something' to be in the name table. Similarly, if we have + // "a['propname']" then we want to store "propname" in the name table. if (ts.isDeclarationName(node) || - node.parent.kind === 219 || + node.parent.kind === 219 /* ExternalModuleReference */ || isArgumentOfElementAccessExpression(node)) { nameTable[node.text] = node.text; } @@ -33453,126 +39254,202 @@ var ts; function isArgumentOfElementAccessExpression(node) { return node && node.parent && - node.parent.kind === 156 && + node.parent.kind === 156 /* ElementAccessExpression */ && node.parent.argumentExpression === node; } + /// Classifier function createClassifier() { - var scanner = ts.createScanner(2, false); + var scanner = ts.createScanner(2 /* Latest */, false); + /// We do not have a full parser support to know when we should parse a regex or not + /// If we consider every slash token to be a regex, we could be missing cases like "1/2/3", where + /// we have a series of divide operator. this list allows us to be more accurate by ruling out + /// locations where a regexp cannot exist. var noRegexTable = []; - noRegexTable[65] = true; - noRegexTable[8] = true; - noRegexTable[7] = true; - noRegexTable[9] = true; - noRegexTable[93] = true; - noRegexTable[38] = true; - noRegexTable[39] = true; - noRegexTable[17] = true; - noRegexTable[19] = true; - noRegexTable[15] = true; - noRegexTable[95] = true; - noRegexTable[80] = true; + noRegexTable[65 /* Identifier */] = true; + noRegexTable[8 /* StringLiteral */] = true; + noRegexTable[7 /* NumericLiteral */] = true; + noRegexTable[9 /* RegularExpressionLiteral */] = true; + noRegexTable[93 /* ThisKeyword */] = true; + noRegexTable[38 /* PlusPlusToken */] = true; + noRegexTable[39 /* MinusMinusToken */] = true; + noRegexTable[17 /* CloseParenToken */] = true; + noRegexTable[19 /* CloseBracketToken */] = true; + noRegexTable[15 /* CloseBraceToken */] = true; + noRegexTable[95 /* TrueKeyword */] = true; + noRegexTable[80 /* FalseKeyword */] = true; + // Just a stack of TemplateHeads and OpenCurlyBraces, used to perform rudimentary (inexact) + // classification on template strings. Because of the context free nature of templates, + // the only precise way to classify a template portion would be by propagating the stack across + // lines, just as we do with the end-of-line state. However, this is a burden for implementers, + // and the behavior is entirely subsumed by the syntactic classifier anyway, so we instead + // flatten any nesting when the template stack is non-empty and encode it in the end-of-line state. + // Situations in which this fails are + // 1) When template strings are nested across different lines: + // `hello ${ `world + // ` }` + // + // Where on the second line, you will get the closing of a template, + // a closing curly, and a new template. + // + // 2) When substitution expressions have curly braces and the curly brace falls on the next line: + // `hello ${ () => { + // return "world" } } ` + // + // Where on the second line, you will get the 'return' keyword, + // a string literal, and a template end consisting of '} } `'. var templateStack = []; + /** Returns true if 'keyword2' can legally follow 'keyword1' in any language construct. */ function canFollow(keyword1, keyword2) { if (ts.isAccessibilityModifier(keyword1)) { - if (keyword2 === 116 || - keyword2 === 120 || - keyword2 === 114 || - keyword2 === 110) { + if (keyword2 === 116 /* GetKeyword */ || + keyword2 === 120 /* SetKeyword */ || + keyword2 === 114 /* ConstructorKeyword */ || + keyword2 === 110 /* StaticKeyword */) { + // Allow things like "public get", "public constructor" and "public static". + // These are all legal. return true; } + // Any other keyword following "public" is actually an identifier an not a real + // keyword. return false; } + // Assume any other keyword combination is legal. This can be refined in the future + // if there are more cases we want the classifier to be better at. return true; } + // If there is a syntactic classifier ('syntacticClassifierAbsent' is false), + // we will be more conservative in order to avoid conflicting with the syntactic classifier. function getClassificationsForLine(text, lexState, syntacticClassifierAbsent) { var offset = 0; - var token = 0; - var lastNonTriviaToken = 0; + var token = 0 /* Unknown */; + var lastNonTriviaToken = 0 /* Unknown */; + // Empty out the template stack for reuse. while (templateStack.length > 0) { templateStack.pop(); } + // If we're in a string literal, then prepend: "\ + // (and a newline). That way when we lex we'll think we're still in a string literal. + // + // If we're in a multiline comment, then prepend: /* + // (and a newline). That way when we lex we'll think we're still in a multiline comment. switch (lexState) { - case 3: + case 3 /* InDoubleQuoteStringLiteral */: text = '"\\\n' + text; offset = 3; break; - case 2: + case 2 /* InSingleQuoteStringLiteral */: text = "'\\\n" + text; offset = 3; break; - case 1: + case 1 /* InMultiLineCommentTrivia */: text = "/*\n" + text; offset = 3; break; - case 4: + case 4 /* InTemplateHeadOrNoSubstitutionTemplate */: text = "`\n" + text; offset = 2; break; - case 5: + case 5 /* InTemplateMiddleOrTail */: text = "}\n" + text; offset = 2; - case 6: - templateStack.push(11); + // fallthrough + case 6 /* InTemplateSubstitutionPosition */: + templateStack.push(11 /* TemplateHead */); break; } scanner.setText(text); var result = { - finalLexState: 0, + finalLexState: 0 /* Start */, entries: [] }; + // We can run into an unfortunate interaction between the lexical and syntactic classifier + // when the user is typing something generic. Consider the case where the user types: + // + // Foo tokens. It's a weak heuristic, but should + // work well enough in practice. var angleBracketStack = 0; do { token = scanner.scan(); if (!ts.isTrivia(token)) { - if ((token === 36 || token === 57) && !noRegexTable[lastNonTriviaToken]) { - if (scanner.reScanSlashToken() === 9) { - token = 9; + if ((token === 36 /* SlashToken */ || token === 57 /* SlashEqualsToken */) && !noRegexTable[lastNonTriviaToken]) { + if (scanner.reScanSlashToken() === 9 /* RegularExpressionLiteral */) { + token = 9 /* RegularExpressionLiteral */; } } - else if (lastNonTriviaToken === 20 && isKeyword(token)) { - token = 65; + else if (lastNonTriviaToken === 20 /* DotToken */ && isKeyword(token)) { + token = 65 /* Identifier */; } else if (isKeyword(lastNonTriviaToken) && isKeyword(token) && !canFollow(lastNonTriviaToken, token)) { - token = 65; + // We have two keywords in a row. Only treat the second as a keyword if + // it's a sequence that could legally occur in the language. Otherwise + // treat it as an identifier. This way, if someone writes "private var" + // we recognize that 'var' is actually an identifier here. + token = 65 /* Identifier */; } - else if (lastNonTriviaToken === 65 && - token === 24) { + else if (lastNonTriviaToken === 65 /* Identifier */ && + token === 24 /* LessThanToken */) { + // Could be the start of something generic. Keep track of that by bumping + // up the current count of generic contexts we may be in. angleBracketStack++; } - else if (token === 25 && angleBracketStack > 0) { + else if (token === 25 /* GreaterThanToken */ && angleBracketStack > 0) { + // If we think we're currently in something generic, then mark that that + // generic entity is complete. angleBracketStack--; } - else if (token === 112 || - token === 121 || - token === 119 || - token === 113 || - token === 122) { + else if (token === 112 /* AnyKeyword */ || + token === 121 /* StringKeyword */ || + token === 119 /* NumberKeyword */ || + token === 113 /* BooleanKeyword */ || + token === 122 /* SymbolKeyword */) { if (angleBracketStack > 0 && !syntacticClassifierAbsent) { - token = 65; + // If it looks like we're could be in something generic, don't classify this + // as a keyword. We may just get overwritten by the syntactic classifier, + // causing a noisy experience for the user. + token = 65 /* Identifier */; } } - else if (token === 11) { + else if (token === 11 /* TemplateHead */) { templateStack.push(token); } - else if (token === 14) { + else if (token === 14 /* OpenBraceToken */) { + // If we don't have anything on the template stack, + // then we aren't trying to keep track of a previously scanned template head. if (templateStack.length > 0) { templateStack.push(token); } } - else if (token === 15) { + else if (token === 15 /* CloseBraceToken */) { + // If we don't have anything on the template stack, + // then we aren't trying to keep track of a previously scanned template head. if (templateStack.length > 0) { var lastTemplateStackToken = ts.lastOrUndefined(templateStack); - if (lastTemplateStackToken === 11) { + if (lastTemplateStackToken === 11 /* TemplateHead */) { token = scanner.reScanTemplateToken(); - if (token === 13) { + // Only pop on a TemplateTail; a TemplateMiddle indicates there is more for us. + if (token === 13 /* TemplateTail */) { templateStack.pop(); } else { - ts.Debug.assert(token === 12, "Should have been a template middle. Was " + token); + ts.Debug.assert(token === 12 /* TemplateMiddle */, "Should have been a template middle. Was " + token); } } else { - ts.Debug.assert(lastTemplateStackToken === 14, "Should have been an open brace. Was: " + token); + ts.Debug.assert(lastTemplateStackToken === 14 /* OpenBraceToken */, "Should have been an open brace. Was: " + token); templateStack.pop(); } } @@ -33580,54 +39457,59 @@ var ts; lastNonTriviaToken = token; } processToken(); - } while (token !== 1); + } while (token !== 1 /* EndOfFileToken */); return result; function processToken() { var start = scanner.getTokenPos(); var end = scanner.getTextPos(); addResult(end - start, classFromKind(token)); if (end >= text.length) { - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // Check to see if we finished up on a multiline string literal. var tokenText = scanner.getTokenText(); if (scanner.isUnterminated()) { var lastCharIndex = tokenText.length - 1; var numBackslashes = 0; - while (tokenText.charCodeAt(lastCharIndex - numBackslashes) === 92) { + while (tokenText.charCodeAt(lastCharIndex - numBackslashes) === 92 /* backslash */) { numBackslashes++; } + // If we have an odd number of backslashes, then the multiline string is unclosed if (numBackslashes & 1) { var quoteChar = tokenText.charCodeAt(0); - result.finalLexState = quoteChar === 34 - ? 3 - : 2; + result.finalLexState = quoteChar === 34 /* doubleQuote */ + ? 3 /* InDoubleQuoteStringLiteral */ + : 2 /* InSingleQuoteStringLiteral */; } } } - else if (token === 3) { + else if (token === 3 /* MultiLineCommentTrivia */) { + // Check to see if the multiline comment was unclosed. if (scanner.isUnterminated()) { - result.finalLexState = 1; + result.finalLexState = 1 /* InMultiLineCommentTrivia */; } } else if (ts.isTemplateLiteralKind(token)) { if (scanner.isUnterminated()) { - if (token === 13) { - result.finalLexState = 5; + if (token === 13 /* TemplateTail */) { + result.finalLexState = 5 /* InTemplateMiddleOrTail */; } - else if (token === 10) { - result.finalLexState = 4; + else if (token === 10 /* NoSubstitutionTemplateLiteral */) { + result.finalLexState = 4 /* InTemplateHeadOrNoSubstitutionTemplate */; } else { ts.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #" + token); } } } - else if (templateStack.length > 0 && ts.lastOrUndefined(templateStack) === 11) { - result.finalLexState = 6; + else if (templateStack.length > 0 && ts.lastOrUndefined(templateStack) === 11 /* TemplateHead */) { + result.finalLexState = 6 /* InTemplateSubstitutionPosition */; } } } function addResult(length, classification) { if (length > 0) { + // If this is the first classification we're adding to the list, then remove any + // offset we have if we were continuing a construct from the previous line. if (result.entries.length === 0) { length -= offset; } @@ -33637,42 +39519,42 @@ var ts; } function isBinaryExpressionOperatorToken(token) { switch (token) { - case 35: - case 36: - case 37: - case 33: - case 34: - case 40: - case 41: - case 42: - case 24: - case 25: - case 26: - case 27: - case 87: - case 86: - case 28: - case 29: - case 30: - case 31: - case 43: - case 45: - case 44: - case 48: - case 49: - case 63: - case 62: - case 64: - case 59: - case 60: - case 61: - case 54: - case 55: - case 56: - case 57: - case 58: - case 53: - case 23: + case 35 /* AsteriskToken */: + case 36 /* SlashToken */: + case 37 /* PercentToken */: + case 33 /* PlusToken */: + case 34 /* MinusToken */: + case 40 /* LessThanLessThanToken */: + case 41 /* GreaterThanGreaterThanToken */: + case 42 /* GreaterThanGreaterThanGreaterThanToken */: + case 24 /* LessThanToken */: + case 25 /* GreaterThanToken */: + case 26 /* LessThanEqualsToken */: + case 27 /* GreaterThanEqualsToken */: + case 87 /* InstanceOfKeyword */: + case 86 /* InKeyword */: + case 28 /* EqualsEqualsToken */: + case 29 /* ExclamationEqualsToken */: + case 30 /* EqualsEqualsEqualsToken */: + case 31 /* ExclamationEqualsEqualsToken */: + case 43 /* AmpersandToken */: + case 45 /* CaretToken */: + case 44 /* BarToken */: + case 48 /* AmpersandAmpersandToken */: + case 49 /* BarBarToken */: + case 63 /* BarEqualsToken */: + case 62 /* AmpersandEqualsToken */: + case 64 /* CaretEqualsToken */: + case 59 /* LessThanLessThanEqualsToken */: + case 60 /* GreaterThanGreaterThanEqualsToken */: + case 61 /* GreaterThanGreaterThanGreaterThanEqualsToken */: + case 54 /* PlusEqualsToken */: + case 55 /* MinusEqualsToken */: + case 56 /* AsteriskEqualsToken */: + case 57 /* SlashEqualsToken */: + case 58 /* PercentEqualsToken */: + case 53 /* EqualsToken */: + case 23 /* CommaToken */: return true; default: return false; @@ -33680,19 +39562,19 @@ var ts; } function isPrefixUnaryExpressionOperatorToken(token) { switch (token) { - case 33: - case 34: - case 47: - case 46: - case 38: - case 39: + case 33 /* PlusToken */: + case 34 /* MinusToken */: + case 47 /* TildeToken */: + case 46 /* ExclamationToken */: + case 38 /* PlusPlusToken */: + case 39 /* MinusMinusToken */: return true; default: return false; } } function isKeyword(token) { - return token >= 66 && token <= 125; + return token >= 66 /* FirstKeyword */ && token <= 125 /* LastKeyword */; } function classFromKind(token) { if (isKeyword(token)) { @@ -33701,24 +39583,24 @@ var ts; else if (isBinaryExpressionOperatorToken(token) || isPrefixUnaryExpressionOperatorToken(token)) { return TokenClass.Operator; } - else if (token >= 14 && token <= 64) { + else if (token >= 14 /* FirstPunctuation */ && token <= 64 /* LastPunctuation */) { return TokenClass.Punctuation; } switch (token) { - case 7: + case 7 /* NumericLiteral */: return TokenClass.NumberLiteral; - case 8: + case 8 /* StringLiteral */: return TokenClass.StringLiteral; - case 9: + case 9 /* RegularExpressionLiteral */: return TokenClass.RegExpLiteral; - case 6: - case 3: - case 2: + case 6 /* ConflictMarkerTrivia */: + case 3 /* MultiLineCommentTrivia */: + case 2 /* SingleLineCommentTrivia */: return TokenClass.Comment; - case 5: - case 4: + case 5 /* WhitespaceTrivia */: + case 4 /* NewLineTrivia */: return TokenClass.Whitespace; - case 65: + case 65 /* Identifier */: default: if (ts.isTemplateLiteralKind(token)) { return TokenClass.StringLiteral; @@ -33729,7 +39611,13 @@ var ts; return { getClassificationsForLine: getClassificationsForLine }; } ts.createClassifier = createClassifier; + /** + * Get the path of the default library file (lib.d.ts) as distributed with the typescript + * node package. + * The functionality is not supported if the ts module is consumed outside of a node module. + */ function getDefaultLibFilePath(options) { + // Check __dirname is defined and that we are on a node.js system. if (typeof __dirname !== "undefined") { return __dirname + ts.directorySeparator + ts.getDefaultLibFileName(options); } @@ -33741,7 +39629,7 @@ var ts; getNodeConstructor: function (kind) { function Node() { } - var proto = kind === 227 ? new SourceFileObject() : new NodeObject(); + var proto = kind === 227 /* SourceFile */ ? new SourceFileObject() : new NodeObject(); proto.kind = kind; proto.pos = 0; proto.end = 0; @@ -33760,25 +39648,38 @@ var ts; // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. /// +/* @internal */ var ts; (function (ts) { var BreakpointResolver; (function (BreakpointResolver) { + /** + * Get the breakpoint span in given sourceFile + */ function spanInSourceFileAtLocation(sourceFile, position) { - if (sourceFile.flags & 2048) { + // Cannot set breakpoint in dts file + if (sourceFile.flags & 2048 /* DeclarationFile */) { return undefined; } var tokenAtLocation = ts.getTokenAtPosition(sourceFile, position); var lineOfPosition = sourceFile.getLineAndCharacterOfPosition(position).line; if (sourceFile.getLineAndCharacterOfPosition(tokenAtLocation.getStart()).line > lineOfPosition) { + // Get previous token if the token is returned starts on new line + // eg: let x =10; |--- cursor is here + // let y = 10; + // token at position will return let keyword on second line as the token but we would like to use + // token on same line if trailing trivia (comments or white spaces on same line) part of the last token on that line tokenAtLocation = ts.findPrecedingToken(tokenAtLocation.pos, sourceFile); + // Its a blank line if (!tokenAtLocation || sourceFile.getLineAndCharacterOfPosition(tokenAtLocation.getEnd()).line !== lineOfPosition) { return undefined; } } + // Cannot set breakpoint in ambient declarations if (ts.isInAmbientContext(tokenAtLocation)) { return undefined; } + // Get the span in the node based on its syntax return spanInNode(tokenAtLocation); function textSpan(startNode, endNode) { return ts.createTextSpanFromBounds(startNode.getStart(), (endNode || startNode).getEnd()); @@ -33798,173 +39699,210 @@ var ts; function spanInNode(node) { if (node) { if (ts.isExpression(node)) { - if (node.parent.kind === 184) { + if (node.parent.kind === 184 /* DoStatement */) { + // Set span as if on while keyword return spanInPreviousNode(node); } - if (node.parent.kind === 186) { + if (node.parent.kind === 186 /* ForStatement */) { + // For now lets set the span on this expression, fix it later return textSpan(node); } - if (node.parent.kind === 169 && node.parent.operatorToken.kind === 23) { + if (node.parent.kind === 169 /* BinaryExpression */ && node.parent.operatorToken.kind === 23 /* CommaToken */) { + // if this is comma expression, the breakpoint is possible in this expression return textSpan(node); } - if (node.parent.kind == 163 && node.parent.body == node) { + if (node.parent.kind == 163 /* ArrowFunction */ && node.parent.body == node) { + // If this is body of arrow function, it is allowed to have the breakpoint return textSpan(node); } } switch (node.kind) { - case 180: + case 180 /* VariableStatement */: + // Span on first variable declaration return spanInVariableDeclaration(node.declarationList.declarations[0]); - case 198: - case 132: - case 131: + case 198 /* VariableDeclaration */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: return spanInVariableDeclaration(node); - case 129: + case 129 /* Parameter */: return spanInParameterDeclaration(node); - case 200: - case 134: - case 133: - case 136: - case 137: - case 135: - case 162: - case 163: + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 135 /* Constructor */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: return spanInFunctionDeclaration(node); - case 179: + case 179 /* Block */: if (ts.isFunctionBlock(node)) { return spanInFunctionBlock(node); } - case 206: + // Fall through + case 206 /* ModuleBlock */: return spanInBlock(node); - case 223: + case 223 /* CatchClause */: return spanInBlock(node.block); - case 182: + case 182 /* ExpressionStatement */: + // span on the expression return textSpan(node.expression); - case 191: + case 191 /* ReturnStatement */: + // span on return keyword and expression if present return textSpan(node.getChildAt(0), node.expression); - case 185: + case 185 /* WhileStatement */: + // Span on while(...) return textSpan(node, ts.findNextToken(node.expression, node)); - case 184: + case 184 /* DoStatement */: + // span in statement of the do statement return spanInNode(node.statement); - case 197: + case 197 /* DebuggerStatement */: + // span on debugger keyword return textSpan(node.getChildAt(0)); - case 183: + case 183 /* IfStatement */: + // set on if(..) span return textSpan(node, ts.findNextToken(node.expression, node)); - case 194: + case 194 /* LabeledStatement */: + // span in statement return spanInNode(node.statement); - case 190: - case 189: + case 190 /* BreakStatement */: + case 189 /* ContinueStatement */: + // On break or continue keyword and label if present return textSpan(node.getChildAt(0), node.label); - case 186: + case 186 /* ForStatement */: return spanInForStatement(node); - case 187: - case 188: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + // span on for (a in ...) return textSpan(node, ts.findNextToken(node.expression, node)); - case 193: + case 193 /* SwitchStatement */: + // span on switch(...) return textSpan(node, ts.findNextToken(node.expression, node)); - case 220: - case 221: + case 220 /* CaseClause */: + case 221 /* DefaultClause */: + // span in first statement of the clause return spanInNode(node.statements[0]); - case 196: + case 196 /* TryStatement */: + // span in try block return spanInBlock(node.tryBlock); - case 195: + case 195 /* ThrowStatement */: + // span in throw ... return textSpan(node, node.expression); - case 214: - if (!node.expression) { - return undefined; - } + case 214 /* ExportAssignment */: + // span on export = id return textSpan(node, node.expression); - case 208: + case 208 /* ImportEqualsDeclaration */: + // import statement without including semicolon return textSpan(node, node.moduleReference); - case 209: + case 209 /* ImportDeclaration */: + // import statement without including semicolon return textSpan(node, node.moduleSpecifier); - case 215: + case 215 /* ExportDeclaration */: + // import statement without including semicolon return textSpan(node, node.moduleSpecifier); - case 205: - if (ts.getModuleInstanceState(node) !== 1) { + case 205 /* ModuleDeclaration */: + // span on complete module if it is instantiated + if (ts.getModuleInstanceState(node) !== 1 /* Instantiated */) { return undefined; } - case 201: - case 204: - case 226: - case 157: - case 158: + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + case 226 /* EnumMember */: + case 157 /* CallExpression */: + case 158 /* NewExpression */: + // span on complete node return textSpan(node); - case 192: + case 192 /* WithStatement */: + // span in statement return spanInNode(node.statement); - case 202: - case 203: + // No breakpoint in interface, type alias + case 202 /* InterfaceDeclaration */: + case 203 /* TypeAliasDeclaration */: return undefined; - case 22: - case 1: + // Tokens: + case 22 /* SemicolonToken */: + case 1 /* EndOfFileToken */: return spanInNodeIfStartsOnSameLine(ts.findPrecedingToken(node.pos, sourceFile)); - case 23: + case 23 /* CommaToken */: return spanInPreviousNode(node); - case 14: + case 14 /* OpenBraceToken */: return spanInOpenBraceToken(node); - case 15: + case 15 /* CloseBraceToken */: return spanInCloseBraceToken(node); - case 16: + case 16 /* OpenParenToken */: return spanInOpenParenToken(node); - case 17: + case 17 /* CloseParenToken */: return spanInCloseParenToken(node); - case 51: + case 51 /* ColonToken */: return spanInColonToken(node); - case 25: - case 24: + case 25 /* GreaterThanToken */: + case 24 /* LessThanToken */: return spanInGreaterThanOrLessThanToken(node); - case 100: + // Keywords: + case 100 /* WhileKeyword */: return spanInWhileKeyword(node); - case 76: - case 68: - case 81: + case 76 /* ElseKeyword */: + case 68 /* CatchKeyword */: + case 81 /* FinallyKeyword */: return spanInNextNode(node); default: - if (node.parent.kind === 224 && node.parent.name === node) { + // If this is name of property assignment, set breakpoint in the initializer + if (node.parent.kind === 224 /* PropertyAssignment */ && node.parent.name === node) { return spanInNode(node.parent.initializer); } - if (node.parent.kind === 160 && node.parent.type === node) { + // Breakpoint in type assertion goes to its operand + if (node.parent.kind === 160 /* TypeAssertionExpression */ && node.parent.type === node) { return spanInNode(node.parent.expression); } + // return type of function go to previous token if (ts.isFunctionLike(node.parent) && node.parent.type === node) { return spanInPreviousNode(node); } + // Default go to parent to set the breakpoint return spanInNode(node.parent); } } function spanInVariableDeclaration(variableDeclaration) { - if (variableDeclaration.parent.parent.kind === 187 || - variableDeclaration.parent.parent.kind === 188) { + // If declaration of for in statement, just set the span in parent + if (variableDeclaration.parent.parent.kind === 187 /* ForInStatement */ || + variableDeclaration.parent.parent.kind === 188 /* ForOfStatement */) { return spanInNode(variableDeclaration.parent.parent); } - var isParentVariableStatement = variableDeclaration.parent.parent.kind === 180; - var isDeclarationOfForStatement = variableDeclaration.parent.parent.kind === 186 && ts.contains(variableDeclaration.parent.parent.initializer.declarations, variableDeclaration); + var isParentVariableStatement = variableDeclaration.parent.parent.kind === 180 /* VariableStatement */; + var isDeclarationOfForStatement = variableDeclaration.parent.parent.kind === 186 /* ForStatement */ && ts.contains(variableDeclaration.parent.parent.initializer.declarations, variableDeclaration); var declarations = isParentVariableStatement ? variableDeclaration.parent.parent.declarationList.declarations : isDeclarationOfForStatement ? variableDeclaration.parent.parent.initializer.declarations : undefined; - if (variableDeclaration.initializer || (variableDeclaration.flags & 1)) { + // Breakpoint is possible in variableDeclaration only if there is initialization + if (variableDeclaration.initializer || (variableDeclaration.flags & 1 /* Export */)) { if (declarations && declarations[0] === variableDeclaration) { if (isParentVariableStatement) { + // First declaration - include let keyword return textSpan(variableDeclaration.parent, variableDeclaration); } else { ts.Debug.assert(isDeclarationOfForStatement); + // Include let keyword from for statement declarations in the span return textSpan(ts.findPrecedingToken(variableDeclaration.pos, sourceFile, variableDeclaration.parent), variableDeclaration); } } else { + // Span only on this declaration return textSpan(variableDeclaration); } } else if (declarations && declarations[0] !== variableDeclaration) { + // If we cant set breakpoint on this declaration, set it on previous one var indexOfCurrentDeclaration = ts.indexOf(declarations, variableDeclaration); return spanInVariableDeclaration(declarations[indexOfCurrentDeclaration - 1]); } } function canHaveSpanInParameterDeclaration(parameter) { + // Breakpoint is possible on parameter only if it has initializer, is a rest parameter, or has public or private modifier return !!parameter.initializer || parameter.dotDotDotToken !== undefined || - !!(parameter.flags & 16) || !!(parameter.flags & 32); + !!(parameter.flags & 16 /* Public */) || !!(parameter.flags & 32 /* Private */); } function spanInParameterDeclaration(parameter) { if (canHaveSpanInParameterDeclaration(parameter)) { @@ -33974,24 +39912,29 @@ var ts; var functionDeclaration = parameter.parent; var indexOfParameter = ts.indexOf(functionDeclaration.parameters, parameter); if (indexOfParameter) { + // Not a first parameter, go to previous parameter return spanInParameterDeclaration(functionDeclaration.parameters[indexOfParameter - 1]); } else { + // Set breakpoint in the function declaration body return spanInNode(functionDeclaration.body); } } } function canFunctionHaveSpanInWholeDeclaration(functionDeclaration) { - return !!(functionDeclaration.flags & 1) || - (functionDeclaration.parent.kind === 201 && functionDeclaration.kind !== 135); + return !!(functionDeclaration.flags & 1 /* Export */) || + (functionDeclaration.parent.kind === 201 /* ClassDeclaration */ && functionDeclaration.kind !== 135 /* Constructor */); } function spanInFunctionDeclaration(functionDeclaration) { + // No breakpoints in the function signature if (!functionDeclaration.body) { return undefined; } if (canFunctionHaveSpanInWholeDeclaration(functionDeclaration)) { + // Set the span on whole function declaration return textSpan(functionDeclaration); } + // Set span in function body return spanInNode(functionDeclaration.body); } function spanInFunctionBlock(block) { @@ -34003,23 +39946,26 @@ var ts; } function spanInBlock(block) { switch (block.parent.kind) { - case 205: - if (ts.getModuleInstanceState(block.parent) !== 1) { + case 205 /* ModuleDeclaration */: + if (ts.getModuleInstanceState(block.parent) !== 1 /* Instantiated */) { return undefined; } - case 185: - case 183: - case 187: - case 188: + // Set on parent if on same line otherwise on first statement + case 185 /* WhileStatement */: + case 183 /* IfStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: return spanInNodeIfStartsOnSameLine(block.parent, block.statements[0]); - case 186: + // Set span on previous token if it starts on same line otherwise on the first statement of the block + case 186 /* ForStatement */: return spanInNodeIfStartsOnSameLine(ts.findPrecedingToken(block.pos, sourceFile, block.parent), block.statements[0]); } + // Default action is to set on first statement return spanInNode(block.statements[0]); } function spanInForStatement(forStatement) { if (forStatement.initializer) { - if (forStatement.initializer.kind === 199) { + if (forStatement.initializer.kind === 199 /* VariableDeclarationList */) { var variableDeclarationList = forStatement.initializer; if (variableDeclarationList.declarations.length > 0) { return spanInNode(variableDeclarationList.declarations[0]); @@ -34036,87 +39982,103 @@ var ts; return textSpan(forStatement.iterator); } } + // Tokens: function spanInOpenBraceToken(node) { switch (node.parent.kind) { - case 204: + case 204 /* EnumDeclaration */: var enumDeclaration = node.parent; return spanInNodeIfStartsOnSameLine(ts.findPrecedingToken(node.pos, sourceFile, node.parent), enumDeclaration.members.length ? enumDeclaration.members[0] : enumDeclaration.getLastToken(sourceFile)); - case 201: + case 201 /* ClassDeclaration */: var classDeclaration = node.parent; return spanInNodeIfStartsOnSameLine(ts.findPrecedingToken(node.pos, sourceFile, node.parent), classDeclaration.members.length ? classDeclaration.members[0] : classDeclaration.getLastToken(sourceFile)); - case 207: + case 207 /* CaseBlock */: return spanInNodeIfStartsOnSameLine(node.parent.parent, node.parent.clauses[0]); } + // Default to parent node return spanInNode(node.parent); } function spanInCloseBraceToken(node) { switch (node.parent.kind) { - case 206: - if (ts.getModuleInstanceState(node.parent.parent) !== 1) { + case 206 /* ModuleBlock */: + // If this is not instantiated module block no bp span + if (ts.getModuleInstanceState(node.parent.parent) !== 1 /* Instantiated */) { return undefined; } - case 204: - case 201: + case 204 /* EnumDeclaration */: + case 201 /* ClassDeclaration */: + // Span on close brace token return textSpan(node); - case 179: + case 179 /* Block */: if (ts.isFunctionBlock(node.parent)) { + // Span on close brace token return textSpan(node); } - case 223: + // fall through. + case 223 /* CatchClause */: return spanInNode(node.parent.statements[node.parent.statements.length - 1]); ; - case 207: + case 207 /* CaseBlock */: + // breakpoint in last statement of the last clause var caseBlock = node.parent; var lastClause = caseBlock.clauses[caseBlock.clauses.length - 1]; if (lastClause) { return spanInNode(lastClause.statements[lastClause.statements.length - 1]); } return undefined; + // Default to parent node default: return spanInNode(node.parent); } } function spanInOpenParenToken(node) { - if (node.parent.kind === 184) { + if (node.parent.kind === 184 /* DoStatement */) { + // Go to while keyword and do action instead return spanInPreviousNode(node); } + // Default to parent node return spanInNode(node.parent); } function spanInCloseParenToken(node) { + // Is this close paren token of parameter list, set span in previous token switch (node.parent.kind) { - case 162: - case 200: - case 163: - case 134: - case 133: - case 136: - case 137: - case 135: - case 185: - case 184: - case 186: + case 162 /* FunctionExpression */: + case 200 /* FunctionDeclaration */: + case 163 /* ArrowFunction */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 135 /* Constructor */: + case 185 /* WhileStatement */: + case 184 /* DoStatement */: + case 186 /* ForStatement */: return spanInPreviousNode(node); + // Default to parent node default: return spanInNode(node.parent); } + // Default to parent node return spanInNode(node.parent); } function spanInColonToken(node) { - if (ts.isFunctionLike(node.parent) || node.parent.kind === 224) { + // Is this : specifying return annotation of the function declaration + if (ts.isFunctionLike(node.parent) || node.parent.kind === 224 /* PropertyAssignment */) { return spanInPreviousNode(node); } return spanInNode(node.parent); } function spanInGreaterThanOrLessThanToken(node) { - if (node.parent.kind === 160) { + if (node.parent.kind === 160 /* TypeAssertionExpression */) { return spanInNode(node.parent.expression); } return spanInNode(node.parent); } function spanInWhileKeyword(node) { - if (node.parent.kind === 184) { + if (node.parent.kind === 184 /* DoStatement */) { + // Set span on while expression return textSpan(node, ts.findNextToken(node.parent.expression, node.parent)); } + // Default to parent node return spanInNode(node.parent); } } @@ -34139,7 +40101,9 @@ var ts; // limitations under the License. // /// +/* @internal */ var debugObjectHost = this; +/* @internal */ var ts; (function (ts) { function logInternalError(logger, err) { @@ -34193,6 +40157,8 @@ var ts; return this.files = JSON.parse(encoded); }; LanguageServiceShimHostAdapter.prototype.getScriptSnapshot = function (fileName) { + // Shim the API changes for 1.5 release. This should be removed once + // TypeScript 1.5 has shipped. if (this.files && this.files.indexOf(fileName) < 0) { return undefined; } @@ -34222,6 +40188,8 @@ var ts; return this.shimHost.getCurrentDirectory(); }; LanguageServiceShimHostAdapter.prototype.getDefaultLibFileName = function (options) { + // Wrap the API changes for 1.5 release. This try/catch + // should be removed once TypeScript 1.5 has shipped. try { return this.shimHost.getDefaultLibFileName(JSON.stringify(options)); } @@ -34271,6 +40239,20 @@ var ts; }; return ShimBase; })(); + function realizeDiagnostics(diagnostics, newLine) { + return diagnostics.map(function (d) { return realizeDiagnostic(d, newLine); }); + } + ts.realizeDiagnostics = realizeDiagnostics; + function realizeDiagnostic(diagnostic, newLine) { + return { + message: ts.flattenDiagnosticMessageText(diagnostic.messageText, newLine), + start: diagnostic.start, + length: diagnostic.length, + /// TODO: no need for the tolowerCase call + category: ts.DiagnosticCategory[diagnostic.category].toLowerCase(), + code: diagnostic.code + }; + } var LanguageServiceShimObject = (function (_super) { __extends(LanguageServiceShimObject, _super); function LanguageServiceShimObject(factory, host, languageService) { @@ -34282,10 +40264,16 @@ var ts; LanguageServiceShimObject.prototype.forwardJSONCall = function (actionDescription, action) { return forwardJSONCall(this.logger, actionDescription, action); }; + /// DISPOSE + /** + * Ensure (almost) deterministic release of internal Javascript resources when + * some external native objects holds onto us (e.g. Com/Interop). + */ LanguageServiceShimObject.prototype.dispose = function (dummy) { this.logger.log("dispose()"); this.languageService.dispose(); this.languageService = null; + // force a GC if (debugObjectHost && debugObjectHost.CollectGarbage) { debugObjectHost.CollectGarbage(); this.logger.log("CollectGarbage()"); @@ -34293,6 +40281,10 @@ var ts; this.logger = null; _super.prototype.dispose.call(this, dummy); }; + /// REFRESH + /** + * Update the list of scripts known to the compiler + */ LanguageServiceShimObject.prototype.refresh = function (throwOnError) { this.forwardJSONCall("refresh(" + throwOnError + ")", function () { return null; @@ -34306,18 +40298,8 @@ var ts; }); }; LanguageServiceShimObject.prototype.realizeDiagnostics = function (diagnostics) { - var _this = this; var newLine = this.getNewLine(); - return diagnostics.map(function (d) { return _this.realizeDiagnostic(d, newLine); }); - }; - LanguageServiceShimObject.prototype.realizeDiagnostic = function (diagnostic, newLine) { - return { - message: ts.flattenDiagnosticMessageText(diagnostic.messageText, newLine), - start: diagnostic.start, - length: diagnostic.length, - category: ts.DiagnosticCategory[diagnostic.category].toLowerCase(), - code: diagnostic.code - }; + return ts.realizeDiagnostics(diagnostics, newLine); }; LanguageServiceShimObject.prototype.getSyntacticClassifications = function (fileName, start, length) { var _this = this; @@ -34357,6 +40339,11 @@ var ts; return _this.realizeDiagnostics(diagnostics); }); }; + /// QUICKINFO + /** + * Computes a string representation of the type at the requested position + * in the active file. + */ LanguageServiceShimObject.prototype.getQuickInfoAtPosition = function (fileName, position) { var _this = this; return this.forwardJSONCall("getQuickInfoAtPosition('" + fileName + "', " + position + ")", function () { @@ -34364,6 +40351,11 @@ var ts; return quickInfo; }); }; + /// NAMEORDOTTEDNAMESPAN + /** + * Computes span information of the name or dotted name at the requested position + * in the active file. + */ LanguageServiceShimObject.prototype.getNameOrDottedNameSpan = function (fileName, startPos, endPos) { var _this = this; return this.forwardJSONCall("getNameOrDottedNameSpan('" + fileName + "', " + startPos + ", " + endPos + ")", function () { @@ -34371,6 +40363,10 @@ var ts; return spanInfo; }); }; + /** + * STATEMENTSPAN + * Computes span information of statement at the requested position in the active file. + */ LanguageServiceShimObject.prototype.getBreakpointStatementAtPosition = function (fileName, position) { var _this = this; return this.forwardJSONCall("getBreakpointStatementAtPosition('" + fileName + "', " + position + ")", function () { @@ -34378,6 +40374,7 @@ var ts; return spanInfo; }); }; + /// SIGNATUREHELP LanguageServiceShimObject.prototype.getSignatureHelpItems = function (fileName, position) { var _this = this; return this.forwardJSONCall("getSignatureHelpItems('" + fileName + "', " + position + ")", function () { @@ -34385,6 +40382,11 @@ var ts; return signatureInfo; }); }; + /// GOTO DEFINITION + /** + * Computes the definition location and file for the symbol + * at the requested position. + */ LanguageServiceShimObject.prototype.getDefinitionAtPosition = function (fileName, position) { var _this = this; return this.forwardJSONCall("getDefinitionAtPosition('" + fileName + "', " + position + ")", function () { @@ -34403,6 +40405,7 @@ var ts; return _this.languageService.findRenameLocations(fileName, position, findInStrings, findInComments); }); }; + /// GET BRACE MATCHING LanguageServiceShimObject.prototype.getBraceMatchingAtPosition = function (fileName, position) { var _this = this; return this.forwardJSONCall("getBraceMatchingAtPosition('" + fileName + "', " + position + ")", function () { @@ -34410,13 +40413,15 @@ var ts; return textRanges; }); }; - LanguageServiceShimObject.prototype.getIndentationAtPosition = function (fileName, position, options) { + /// GET SMART INDENT + LanguageServiceShimObject.prototype.getIndentationAtPosition = function (fileName, position, options /*Services.EditorOptions*/) { var _this = this; return this.forwardJSONCall("getIndentationAtPosition('" + fileName + "', " + position + ")", function () { var localOptions = JSON.parse(options); return _this.languageService.getIndentationAtPosition(fileName, position, localOptions); }); }; + /// GET REFERENCES LanguageServiceShimObject.prototype.getReferencesAtPosition = function (fileName, position) { var _this = this; return this.forwardJSONCall("getReferencesAtPosition('" + fileName + "', " + position + ")", function () { @@ -34435,6 +40440,18 @@ var ts; return _this.languageService.getOccurrencesAtPosition(fileName, position); }); }; + LanguageServiceShimObject.prototype.getDocumentHighlights = function (fileName, position, filesToSearch) { + var _this = this; + return this.forwardJSONCall("getDocumentHighlights('" + fileName + "', " + position + ")", function () { + return _this.languageService.getDocumentHighlights(fileName, position, JSON.parse(filesToSearch)); + }); + }; + /// COMPLETION LISTS + /** + * Get a string based representation of the completions + * to provide at the given source position and providing a member completion + * list if requested. + */ LanguageServiceShimObject.prototype.getCompletionsAtPosition = function (fileName, position) { var _this = this; return this.forwardJSONCall("getCompletionsAtPosition('" + fileName + "', " + position + ")", function () { @@ -34442,6 +40459,7 @@ var ts; return completion; }); }; + /** Get a string based representation of a completion list entry details */ LanguageServiceShimObject.prototype.getCompletionEntryDetails = function (fileName, position, entryName) { var _this = this; return this.forwardJSONCall("getCompletionEntryDetails('" + fileName + "', " + position + ", " + entryName + ")", function () { @@ -34449,7 +40467,7 @@ var ts; return details; }); }; - LanguageServiceShimObject.prototype.getFormattingEditsForRange = function (fileName, start, end, options) { + LanguageServiceShimObject.prototype.getFormattingEditsForRange = function (fileName, start, end, options /*Services.FormatCodeOptions*/) { var _this = this; return this.forwardJSONCall("getFormattingEditsForRange('" + fileName + "', " + start + ", " + end + ")", function () { var localOptions = JSON.parse(options); @@ -34457,7 +40475,7 @@ var ts; return edits; }); }; - LanguageServiceShimObject.prototype.getFormattingEditsForDocument = function (fileName, options) { + LanguageServiceShimObject.prototype.getFormattingEditsForDocument = function (fileName, options /*Services.FormatCodeOptions*/) { var _this = this; return this.forwardJSONCall("getFormattingEditsForDocument('" + fileName + "')", function () { var localOptions = JSON.parse(options); @@ -34465,7 +40483,7 @@ var ts; return edits; }); }; - LanguageServiceShimObject.prototype.getFormattingEditsAfterKeystroke = function (fileName, position, key, options) { + LanguageServiceShimObject.prototype.getFormattingEditsAfterKeystroke = function (fileName, position, key, options /*Services.FormatCodeOptions*/) { var _this = this; return this.forwardJSONCall("getFormattingEditsAfterKeystroke('" + fileName + "', " + position + ", '" + key + "')", function () { var localOptions = JSON.parse(options); @@ -34473,6 +40491,8 @@ var ts; return edits; }); }; + /// NAVIGATE TO + /** Return a list of symbols that are interesting to navigate to */ LanguageServiceShimObject.prototype.getNavigateToItems = function (searchValue, maxResultCount) { var _this = this; return this.forwardJSONCall("getNavigateToItems('" + searchValue + "', " + maxResultCount + ")", function () { @@ -34501,10 +40521,13 @@ var ts; return items; }); }; + /// Emit LanguageServiceShimObject.prototype.getEmitOutput = function (fileName) { var _this = this; return this.forwardJSONCall("getEmitOutput('" + fileName + "')", function () { var output = _this.languageService.getEmitOutput(fileName); + // Shim the API changes for 1.5 release. This should be removed once + // TypeScript 1.5 has shipped. output.emitOutputStatus = output.emitSkipped ? 1 : 0; return output; }); @@ -34517,6 +40540,7 @@ var ts; _super.call(this, factory); this.classifier = ts.createClassifier(); } + /// COLORIZATION ClassifierShimObject.prototype.getClassificationsForLine = function (text, lexState, classifyKeywordsInGenerics) { var classification = this.classifier.getClassificationsForLine(text, lexState, classifyKeywordsInGenerics); var items = classification.entries; @@ -34576,6 +40600,9 @@ var ts; this._shims = []; this.documentRegistry = ts.createDocumentRegistry(); } + /* + * Returns script API version. + */ TypeScriptServicesFactory.prototype.getServicesVersion = function () { return ts.servicesVersion; }; @@ -34609,6 +40636,7 @@ var ts; } }; TypeScriptServicesFactory.prototype.close = function () { + // Forget all the registered shims this._shims = []; this.documentRegistry = ts.createDocumentRegistry(); }; @@ -34631,6 +40659,8 @@ var ts; module.exports = ts; } })(ts || (ts = {})); +/// TODO: this is used by VS, clean this up on both sides of the interface +/* @internal */ var TypeScript; (function (TypeScript) { var Services; @@ -34638,4 +40668,5 @@ var TypeScript; Services.TypeScriptServicesFactory = ts.TypeScriptServicesFactory; })(Services = TypeScript.Services || (TypeScript.Services = {})); })(TypeScript || (TypeScript = {})); +/* @internal */ var toolsVersion = "1.4"; diff --git a/bin/typescriptServices.d.ts b/bin/typescriptServices.d.ts index 972a63a67bf..d988810fd3b 100644 --- a/bin/typescriptServices.d.ts +++ b/bin/typescriptServices.d.ts @@ -295,34 +295,12 @@ declare module ts { AccessibilityModifier = 112, BlockScoped = 12288, } - const enum ParserContextFlags { - StrictMode = 1, - DisallowIn = 2, - Yield = 4, - GeneratorParameter = 8, - Decorator = 16, - ThisNodeHasError = 32, - ParserGeneratedFlags = 63, - ThisNodeOrAnySubNodesHasError = 64, - HasAggregatedChildData = 128, - } - const enum RelationComparisonResult { - Succeeded = 1, - Failed = 2, - FailedAndReported = 3, - } interface Node extends TextRange { kind: SyntaxKind; flags: NodeFlags; - parserContextFlags?: ParserContextFlags; decorators?: NodeArray; modifiers?: ModifiersArray; - id?: number; parent?: Node; - symbol?: Symbol; - locals?: SymbolTable; - nextContainer?: Node; - localSymbol?: Symbol; } interface NodeArray extends Array, TextRange { hasTrailingComma?: boolean; @@ -723,7 +701,7 @@ declare module ts { interface ExternalModuleReference extends Node { expression?: Expression; } - interface ImportDeclaration extends Statement, ModuleElement { + interface ImportDeclaration extends ModuleElement { importClause?: ImportClause; moduleSpecifier: Expression; } @@ -751,14 +729,14 @@ declare module ts { type ExportSpecifier = ImportOrExportSpecifier; interface ExportAssignment extends Declaration, ModuleElement { isExportEquals?: boolean; - expression?: Expression; - type?: TypeNode; + expression: Expression; } interface FileReference extends TextRange { fileName: string; } interface CommentRange extends TextRange { hasTrailingNewLine?: boolean; + kind: SyntaxKind; } interface SourceFile extends Declaration { statements: NodeArray; @@ -772,9 +750,7 @@ declare module ts { amdModuleName: string; referencedFiles: FileReference[]; hasNoDefaultLib: boolean; - externalModuleIndicator: Node; languageVersion: ScriptTarget; - identifiers: Map; } interface ScriptReferenceHost { getCompilerOptions(): CompilerOptions; @@ -785,6 +761,9 @@ declare module ts { (fileName: string, data: string, writeByteOrderMark: boolean, onError?: (message: string) => void): void; } interface Program extends ScriptReferenceHost { + /** + * Get a list of files in the program + */ getSourceFiles(): SourceFile[]; /** * Emits the JavaScript and declaration files. If targetSourceFile is not specified, then @@ -801,15 +780,23 @@ declare module ts { getGlobalDiagnostics(): Diagnostic[]; getSemanticDiagnostics(sourceFile?: SourceFile): Diagnostic[]; getDeclarationDiagnostics(sourceFile?: SourceFile): Diagnostic[]; + /** + * Gets a type checker that can be used to semantically analyze source fils in the program. + */ getTypeChecker(): TypeChecker; - getCommonSourceDirectory(): string; } interface SourceMapSpan { + /** Line number in the .js file. */ emittedLine: number; + /** Column number in the .js file. */ emittedColumn: number; + /** Line number in the .ts file. */ sourceLine: number; + /** Column number in the .ts file. */ sourceColumn: number; + /** Optional name (index into names array) associated with this span. */ nameIndex?: number; + /** .ts file (index into sources array) associated with this span */ sourceIndex: number; } interface SourceMapData { @@ -823,6 +810,7 @@ declare module ts { sourceMapMappings: string; sourceMapDecodedMappings: SourceMapSpan[]; } + /** Return code used by getEmitOutput function to indicate status of the function */ enum ExitStatus { Success = 0, DiagnosticsPresent_OutputsSkipped = 1, @@ -831,7 +819,6 @@ declare module ts { interface EmitResult { emitSkipped: boolean; diagnostics: Diagnostic[]; - sourceMaps: SourceMapData[]; } interface TypeCheckerHost { getCompilerOptions(): CompilerOptions; @@ -865,7 +852,7 @@ declare module ts { getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number; isValidPropertyAccess(node: PropertyAccessExpression | QualifiedName, propertyName: string): boolean; getAliasedSymbol(symbol: Symbol): Symbol; - getExportsOfExternalModule(node: ImportDeclaration): Symbol[]; + getExportsOfModule(moduleSymbol: Symbol): Symbol[]; } interface SymbolDisplayBuilder { buildTypeDisplay(type: Type, writer: SymbolWriter, enclosingDeclaration?: Node, flags?: TypeFormatFlags): void; @@ -908,40 +895,6 @@ declare module ts { WriteTypeParametersOrArguments = 1, UseOnlyExternalAliasing = 2, } - const enum SymbolAccessibility { - Accessible = 0, - NotAccessible = 1, - CannotBeNamed = 2, - } - type AnyImportSyntax = ImportDeclaration | ImportEqualsDeclaration; - interface SymbolVisibilityResult { - accessibility: SymbolAccessibility; - aliasesToMakeVisible?: AnyImportSyntax[]; - errorSymbolName?: string; - errorNode?: Node; - } - interface SymbolAccessiblityResult extends SymbolVisibilityResult { - errorModuleName?: string; - } - interface EmitResolver { - hasGlobalName(name: string): boolean; - getExpressionNameSubstitution(node: Identifier, getGeneratedNameForNode: (node: Node) => string): string; - isValueAliasDeclaration(node: Node): boolean; - isReferencedAliasDeclaration(node: Node, checkChildren?: boolean): boolean; - isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean; - getNodeCheckFlags(node: Node): NodeCheckFlags; - isDeclarationVisible(node: Declaration): boolean; - collectLinkedAliases(node: Identifier): Node[]; - isImplementationOfOverload(node: FunctionLikeDeclaration): boolean; - writeTypeOfDeclaration(declaration: AccessorDeclaration | VariableLikeDeclaration, enclosingDeclaration: Node, flags: TypeFormatFlags, writer: SymbolWriter): void; - writeReturnTypeOfSignatureDeclaration(signatureDeclaration: SignatureDeclaration, enclosingDeclaration: Node, flags: TypeFormatFlags, writer: SymbolWriter): void; - writeTypeOfExpression(expr: Expression, enclosingDeclaration: Node, flags: TypeFormatFlags, writer: SymbolWriter): void; - isSymbolAccessible(symbol: Symbol, enclosingDeclaration: Node, meaning: SymbolFlags): SymbolAccessiblityResult; - isEntityNameVisible(entityName: EntityName | Expression, enclosingDeclaration: Node): SymbolVisibilityResult; - getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number; - resolvesToSomeValue(location: Node, name: string): boolean; - getBlockScopedVariableId(node: Identifier): number; - } const enum SymbolFlags { FunctionScopedVariable = 1, BlockScopedVariable = 2, @@ -1011,57 +964,14 @@ declare module ts { interface Symbol { flags: SymbolFlags; name: string; - id?: number; - mergeId?: number; declarations?: Declaration[]; - parent?: Symbol; members?: SymbolTable; exports?: SymbolTable; - exportSymbol?: Symbol; valueDeclaration?: Declaration; - constEnumOnlyModule?: boolean; - } - interface SymbolLinks { - target?: Symbol; - type?: Type; - declaredType?: Type; - mapper?: TypeMapper; - referenced?: boolean; - unionType?: UnionType; - resolvedExports?: SymbolTable; - exportsChecked?: boolean; - } - interface TransientSymbol extends Symbol, SymbolLinks { } interface SymbolTable { [index: string]: Symbol; } - const enum NodeCheckFlags { - TypeChecked = 1, - LexicalThis = 2, - CaptureThis = 4, - EmitExtends = 8, - SuperInstance = 16, - SuperStatic = 32, - ContextChecked = 64, - EnumValuesComputed = 128, - BlockScopedBindingInLoop = 256, - EmitDecorate = 512, - } - interface NodeLinks { - resolvedType?: Type; - resolvedSignature?: Signature; - resolvedSymbol?: Symbol; - flags?: NodeCheckFlags; - enumMemberValue?: number; - isIllegalTypeReferenceInConstraint?: boolean; - isVisible?: boolean; - generatedName?: string; - generatedNames?: Map; - assignmentChecks?: Map; - hasReportedStatementInAmbientContext?: boolean; - importOnRightSide?: Symbol; - } const enum TypeFlags { Any = 1, String = 2, @@ -1079,26 +989,16 @@ declare module ts { Tuple = 8192, Union = 16384, Anonymous = 32768, - FromSignature = 65536, ObjectLiteral = 131072, - ContainsUndefinedOrNull = 262144, - ContainsObjectLiteral = 524288, ESSymbol = 1048576, - Intrinsic = 1048703, - Primitive = 1049086, StringLike = 258, NumberLike = 132, ObjectType = 48128, - RequiresWidening = 786432, } interface Type { flags: TypeFlags; - id: number; symbol?: Symbol; } - interface IntrinsicType extends Type { - intrinsicName: string; - } interface StringLiteralType extends Type { text: string; } @@ -1118,7 +1018,6 @@ declare module ts { typeArguments: Type[]; } interface GenericType extends InterfaceType, TypeReference { - instantiations: Map; } interface TupleType extends ObjectType { elementTypes: Type[]; @@ -1126,20 +1025,9 @@ declare module ts { } interface UnionType extends Type { types: Type[]; - resolvedProperties: SymbolTable; - } - interface ResolvedType extends ObjectType, UnionType { - members: SymbolTable; - properties: Symbol[]; - callSignatures: Signature[]; - constructSignatures: Signature[]; - stringIndexType: Type; - numberIndexType: Type; } interface TypeParameter extends Type { constraint: Type; - target?: TypeParameter; - mapper?: TypeMapper; } const enum SignatureKind { Call = 0, @@ -1149,28 +1037,22 @@ declare module ts { declaration: SignatureDeclaration; typeParameters: TypeParameter[]; parameters: Symbol[]; - resolvedReturnType: Type; - minArgumentCount: number; - hasRestParameter: boolean; - hasStringLiterals: boolean; - target?: Signature; - mapper?: TypeMapper; - unionSignatures?: Signature[]; - erasedSignatureCache?: Signature; - isolatedSignatureType?: ObjectType; } const enum IndexKind { String = 0, Number = 1, } - interface TypeMapper { - (t: Type): Type; - } interface DiagnosticMessage { key: string; category: DiagnosticCategory; code: number; } + /** + * A linked list of formatted diagnostic messages to be used as part of a multiline message. + * It is built from the bottom up, leaving the head to be the "main" diagnostic. + * While it seems that DiagnosticMessageChain is structurally similar to DiagnosticMessage, + * the difference is that messages are all preformatted in DMC. + */ interface DiagnosticMessageChain { messageText: string; category: DiagnosticCategory; @@ -1219,6 +1101,7 @@ declare module ts { version?: boolean; watch?: boolean; separateCompilation?: boolean; + emitDecoratorMetadata?: boolean; [option: string]: string | number | boolean; } const enum ModuleKind { @@ -1241,142 +1124,6 @@ declare module ts { fileNames: string[]; errors: Diagnostic[]; } - interface CommandLineOption { - name: string; - type: string | Map; - isFilePath?: boolean; - shortName?: string; - description?: DiagnosticMessage; - paramType?: DiagnosticMessage; - error?: DiagnosticMessage; - experimental?: boolean; - } - const enum CharacterCodes { - nullCharacter = 0, - maxAsciiCharacter = 127, - lineFeed = 10, - carriageReturn = 13, - lineSeparator = 8232, - paragraphSeparator = 8233, - nextLine = 133, - space = 32, - nonBreakingSpace = 160, - enQuad = 8192, - emQuad = 8193, - enSpace = 8194, - emSpace = 8195, - threePerEmSpace = 8196, - fourPerEmSpace = 8197, - sixPerEmSpace = 8198, - figureSpace = 8199, - punctuationSpace = 8200, - thinSpace = 8201, - hairSpace = 8202, - zeroWidthSpace = 8203, - narrowNoBreakSpace = 8239, - ideographicSpace = 12288, - mathematicalSpace = 8287, - ogham = 5760, - _ = 95, - $ = 36, - _0 = 48, - _1 = 49, - _2 = 50, - _3 = 51, - _4 = 52, - _5 = 53, - _6 = 54, - _7 = 55, - _8 = 56, - _9 = 57, - a = 97, - b = 98, - c = 99, - d = 100, - e = 101, - f = 102, - g = 103, - h = 104, - i = 105, - j = 106, - k = 107, - l = 108, - m = 109, - n = 110, - o = 111, - p = 112, - q = 113, - r = 114, - s = 115, - t = 116, - u = 117, - v = 118, - w = 119, - x = 120, - y = 121, - z = 122, - A = 65, - B = 66, - C = 67, - D = 68, - E = 69, - F = 70, - G = 71, - H = 72, - I = 73, - J = 74, - K = 75, - L = 76, - M = 77, - N = 78, - O = 79, - P = 80, - Q = 81, - R = 82, - S = 83, - T = 84, - U = 85, - V = 86, - W = 87, - X = 88, - Y = 89, - Z = 90, - ampersand = 38, - asterisk = 42, - at = 64, - backslash = 92, - backtick = 96, - bar = 124, - caret = 94, - closeBrace = 125, - closeBracket = 93, - closeParen = 41, - colon = 58, - comma = 44, - dot = 46, - doubleQuote = 34, - equals = 61, - exclamation = 33, - greaterThan = 62, - hash = 35, - lessThan = 60, - minus = 45, - openBrace = 123, - openBracket = 91, - openParen = 40, - percent = 37, - plus = 43, - question = 63, - semicolon = 59, - singleQuote = 39, - slash = 47, - tilde = 126, - backspace = 8, - formFeed = 12, - byteOrderMark = 65279, - tab = 9, - verticalTab = 11, - } interface CancellationToken { isCancellationRequested(): boolean; } @@ -1400,49 +1147,39 @@ declare module ts { } } declare module ts { - interface ErrorCallback { - (message: DiagnosticMessage, length: number): void; + interface System { + args: string[]; + newLine: string; + useCaseSensitiveFileNames: boolean; + write(s: string): void; + readFile(path: string, encoding?: string): string; + writeFile(path: string, data: string, writeByteOrderMark?: boolean): void; + watchFile?(path: string, callback: (path: string) => void): FileWatcher; + resolvePath(path: string): string; + fileExists(path: string): boolean; + directoryExists(path: string): boolean; + createDirectory(path: string): void; + getExecutingFilePath(): string; + getCurrentDirectory(): string; + readDirectory(path: string, extension?: string): string[]; + getMemoryUsage?(): number; + exit(exitCode?: number): void; } - interface Scanner { - getStartPos(): number; - getToken(): SyntaxKind; - getTextPos(): number; - getTokenPos(): number; - getTokenText(): string; - getTokenValue(): string; - hasExtendedUnicodeEscape(): boolean; - hasPrecedingLineBreak(): boolean; - isIdentifier(): boolean; - isReservedWord(): boolean; - isUnterminated(): boolean; - reScanGreaterToken(): SyntaxKind; - reScanSlashToken(): SyntaxKind; - reScanTemplateToken(): SyntaxKind; - scan(): SyntaxKind; - setText(text: string): void; - setTextPos(textPos: number): void; - lookAhead(callback: () => T): T; - tryScan(callback: () => T): T; + interface FileWatcher { + close(): void; } + var sys: System; +} +declare module ts { function tokenToString(t: SyntaxKind): string; - function computeLineStarts(text: string): number[]; function getPositionOfLineAndCharacter(sourceFile: SourceFile, line: number, character: number): number; - function computePositionOfLineAndCharacter(lineStarts: number[], line: number, character: number): number; - function getLineStarts(sourceFile: SourceFile): number[]; - function computeLineAndCharacterOfPosition(lineStarts: number[], position: number): { - line: number; - character: number; - }; function getLineAndCharacterOfPosition(sourceFile: SourceFile, position: number): LineAndCharacter; function isWhiteSpace(ch: number): boolean; function isLineBreak(ch: number): boolean; - function isOctalDigit(ch: number): boolean; - function skipTrivia(text: string, pos: number, stopAfterLineBreak?: boolean): number; function getLeadingCommentRanges(text: string, pos: number): CommentRange[]; function getTrailingCommentRanges(text: string, pos: number): CommentRange[]; function isIdentifierStart(ch: number, languageVersion: ScriptTarget): boolean; function isIdentifierPart(ch: number, languageVersion: ScriptTarget): boolean; - function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, text?: string, onError?: ErrorCallback): Scanner; } declare module ts { function getNodeConstructor(kind: SyntaxKind): new () => Node; @@ -1455,12 +1192,9 @@ declare module ts { function isLeftHandSideExpression(expr: Expression): boolean; function isAssignmentOperator(token: SyntaxKind): boolean; } -declare module ts { - function createTypeChecker(host: TypeCheckerHost, produceDiagnostics: boolean): TypeChecker; -} declare module ts { /** The version of the TypeScript compiler release */ - let version: string; + const version: string; function findConfigFile(searchPath: string): string; function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost; function getPreEmitDiagnostics(program: Program): Diagnostic[]; @@ -1468,6 +1202,7 @@ declare module ts { function createProgram(rootNames: string[], options: CompilerOptions, host?: CompilerHost): Program; } declare module ts { + function parseCommandLine(commandLine: string[]): ParsedCommandLine; /** * Read tsconfig.json file * @param fileName The path to the config file @@ -1589,8 +1324,10 @@ declare module ts { findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean): RenameLocation[]; getDefinitionAtPosition(fileName: string, position: number): DefinitionInfo[]; getReferencesAtPosition(fileName: string, position: number): ReferenceEntry[]; - getOccurrencesAtPosition(fileName: string, position: number): ReferenceEntry[]; findReferences(fileName: string, position: number): ReferencedSymbol[]; + getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[]; + /** @deprecated */ + getOccurrencesAtPosition(fileName: string, position: number): ReferenceEntry[]; getNavigateToItems(searchValue: string, maxResultCount?: number): NavigateToItem[]; getNavigationBarItems(fileName: string): NavigationBarItem[]; getOutliningSpans(fileName: string): OutliningSpan[]; @@ -1641,6 +1378,20 @@ declare module ts { fileName: string; isWriteAccess: boolean; } + interface DocumentHighlights { + fileName: string; + highlightSpans: HighlightSpan[]; + } + module HighlightSpanKind { + const none: string; + const definition: string; + const reference: string; + const writtenReference: string; + } + interface HighlightSpan { + textSpan: TextSpan; + kind: string; + } interface NavigateToItem { name: string; kind: string; @@ -1765,6 +1516,7 @@ declare module ts { name: string; kind: string; kindModifiers: string; + sortText: string; } interface CompletionEntryDetails { name: string; @@ -1905,43 +1657,44 @@ declare module ts { */ releaseDocument(fileName: string, compilationSettings: CompilerOptions): void; } - class ScriptElementKind { - static unknown: string; - static keyword: string; - static scriptElement: string; - static moduleElement: string; - static classElement: string; - static interfaceElement: string; - static typeElement: string; - static enumElement: string; - static variableElement: string; - static localVariableElement: string; - static functionElement: string; - static localFunctionElement: string; - static memberFunctionElement: string; - static memberGetAccessorElement: string; - static memberSetAccessorElement: string; - static memberVariableElement: string; - static constructorImplementationElement: string; - static callSignatureElement: string; - static indexSignatureElement: string; - static constructSignatureElement: string; - static parameterElement: string; - static typeParameterElement: string; - static primitiveType: string; - static label: string; - static alias: string; - static constElement: string; - static letElement: string; + module ScriptElementKind { + const unknown: string; + const warning: string; + const keyword: string; + const scriptElement: string; + const moduleElement: string; + const classElement: string; + const interfaceElement: string; + const typeElement: string; + const enumElement: string; + const variableElement: string; + const localVariableElement: string; + const functionElement: string; + const localFunctionElement: string; + const memberFunctionElement: string; + const memberGetAccessorElement: string; + const memberSetAccessorElement: string; + const memberVariableElement: string; + const constructorImplementationElement: string; + const callSignatureElement: string; + const indexSignatureElement: string; + const constructSignatureElement: string; + const parameterElement: string; + const typeParameterElement: string; + const primitiveType: string; + const label: string; + const alias: string; + const constElement: string; + const letElement: string; } - class ScriptElementKindModifier { - static none: string; - static publicMemberModifier: string; - static privateMemberModifier: string; - static protectedMemberModifier: string; - static exportedModifier: string; - static ambientModifier: string; - static staticModifier: string; + module ScriptElementKindModifier { + const none: string; + const publicMemberModifier: string; + const privateMemberModifier: string; + const protectedMemberModifier: string; + const exportedModifier: string; + const ambientModifier: string; + const staticModifier: string; } class ClassificationTypeNames { static comment: string; diff --git a/bin/typescriptServices.js b/bin/typescriptServices.js index 0ea54239508..1c749f0d94a 100644 --- a/bin/typescriptServices.js +++ b/bin/typescriptServices.js @@ -15,6 +15,7 @@ and limitations under the License. var ts; (function (ts) { + // token > SyntaxKind.Identifer => token is a keyword (function (SyntaxKind) { SyntaxKind[SyntaxKind["Unknown"] = 0] = "Unknown"; SyntaxKind[SyntaxKind["EndOfFileToken"] = 1] = "EndOfFileToken"; @@ -22,14 +23,19 @@ var ts; SyntaxKind[SyntaxKind["MultiLineCommentTrivia"] = 3] = "MultiLineCommentTrivia"; SyntaxKind[SyntaxKind["NewLineTrivia"] = 4] = "NewLineTrivia"; SyntaxKind[SyntaxKind["WhitespaceTrivia"] = 5] = "WhitespaceTrivia"; + // We detect and provide better error recovery when we encounter a git merge marker. This + // allows us to edit files with git-conflict markers in them in a much more pleasant manner. SyntaxKind[SyntaxKind["ConflictMarkerTrivia"] = 6] = "ConflictMarkerTrivia"; + // Literals SyntaxKind[SyntaxKind["NumericLiteral"] = 7] = "NumericLiteral"; SyntaxKind[SyntaxKind["StringLiteral"] = 8] = "StringLiteral"; SyntaxKind[SyntaxKind["RegularExpressionLiteral"] = 9] = "RegularExpressionLiteral"; SyntaxKind[SyntaxKind["NoSubstitutionTemplateLiteral"] = 10] = "NoSubstitutionTemplateLiteral"; + // Pseudo-literals SyntaxKind[SyntaxKind["TemplateHead"] = 11] = "TemplateHead"; SyntaxKind[SyntaxKind["TemplateMiddle"] = 12] = "TemplateMiddle"; SyntaxKind[SyntaxKind["TemplateTail"] = 13] = "TemplateTail"; + // Punctuation SyntaxKind[SyntaxKind["OpenBraceToken"] = 14] = "OpenBraceToken"; SyntaxKind[SyntaxKind["CloseBraceToken"] = 15] = "CloseBraceToken"; SyntaxKind[SyntaxKind["OpenParenToken"] = 16] = "OpenParenToken"; @@ -69,6 +75,7 @@ var ts; SyntaxKind[SyntaxKind["QuestionToken"] = 50] = "QuestionToken"; SyntaxKind[SyntaxKind["ColonToken"] = 51] = "ColonToken"; SyntaxKind[SyntaxKind["AtToken"] = 52] = "AtToken"; + // Assignments SyntaxKind[SyntaxKind["EqualsToken"] = 53] = "EqualsToken"; SyntaxKind[SyntaxKind["PlusEqualsToken"] = 54] = "PlusEqualsToken"; SyntaxKind[SyntaxKind["MinusEqualsToken"] = 55] = "MinusEqualsToken"; @@ -81,7 +88,9 @@ var ts; SyntaxKind[SyntaxKind["AmpersandEqualsToken"] = 62] = "AmpersandEqualsToken"; SyntaxKind[SyntaxKind["BarEqualsToken"] = 63] = "BarEqualsToken"; SyntaxKind[SyntaxKind["CaretEqualsToken"] = 64] = "CaretEqualsToken"; + // Identifiers SyntaxKind[SyntaxKind["Identifier"] = 65] = "Identifier"; + // Reserved words SyntaxKind[SyntaxKind["BreakKeyword"] = 66] = "BreakKeyword"; SyntaxKind[SyntaxKind["CaseKeyword"] = 67] = "CaseKeyword"; SyntaxKind[SyntaxKind["CatchKeyword"] = 68] = "CatchKeyword"; @@ -118,6 +127,7 @@ var ts; SyntaxKind[SyntaxKind["VoidKeyword"] = 99] = "VoidKeyword"; SyntaxKind[SyntaxKind["WhileKeyword"] = 100] = "WhileKeyword"; SyntaxKind[SyntaxKind["WithKeyword"] = 101] = "WithKeyword"; + // Strict mode reserved words SyntaxKind[SyntaxKind["AsKeyword"] = 102] = "AsKeyword"; SyntaxKind[SyntaxKind["ImplementsKeyword"] = 103] = "ImplementsKeyword"; SyntaxKind[SyntaxKind["InterfaceKeyword"] = 104] = "InterfaceKeyword"; @@ -128,6 +138,7 @@ var ts; SyntaxKind[SyntaxKind["PublicKeyword"] = 109] = "PublicKeyword"; SyntaxKind[SyntaxKind["StaticKeyword"] = 110] = "StaticKeyword"; SyntaxKind[SyntaxKind["YieldKeyword"] = 111] = "YieldKeyword"; + // Contextual keywords SyntaxKind[SyntaxKind["AnyKeyword"] = 112] = "AnyKeyword"; SyntaxKind[SyntaxKind["BooleanKeyword"] = 113] = "BooleanKeyword"; SyntaxKind[SyntaxKind["ConstructorKeyword"] = 114] = "ConstructorKeyword"; @@ -142,11 +153,15 @@ var ts; SyntaxKind[SyntaxKind["TypeKeyword"] = 123] = "TypeKeyword"; SyntaxKind[SyntaxKind["FromKeyword"] = 124] = "FromKeyword"; SyntaxKind[SyntaxKind["OfKeyword"] = 125] = "OfKeyword"; + // Parse tree nodes + // Names SyntaxKind[SyntaxKind["QualifiedName"] = 126] = "QualifiedName"; SyntaxKind[SyntaxKind["ComputedPropertyName"] = 127] = "ComputedPropertyName"; + // Signature elements SyntaxKind[SyntaxKind["TypeParameter"] = 128] = "TypeParameter"; SyntaxKind[SyntaxKind["Parameter"] = 129] = "Parameter"; SyntaxKind[SyntaxKind["Decorator"] = 130] = "Decorator"; + // TypeMember SyntaxKind[SyntaxKind["PropertySignature"] = 131] = "PropertySignature"; SyntaxKind[SyntaxKind["PropertyDeclaration"] = 132] = "PropertyDeclaration"; SyntaxKind[SyntaxKind["MethodSignature"] = 133] = "MethodSignature"; @@ -157,6 +172,7 @@ var ts; SyntaxKind[SyntaxKind["CallSignature"] = 138] = "CallSignature"; SyntaxKind[SyntaxKind["ConstructSignature"] = 139] = "ConstructSignature"; SyntaxKind[SyntaxKind["IndexSignature"] = 140] = "IndexSignature"; + // Type SyntaxKind[SyntaxKind["TypeReference"] = 141] = "TypeReference"; SyntaxKind[SyntaxKind["FunctionType"] = 142] = "FunctionType"; SyntaxKind[SyntaxKind["ConstructorType"] = 143] = "ConstructorType"; @@ -166,9 +182,11 @@ var ts; SyntaxKind[SyntaxKind["TupleType"] = 147] = "TupleType"; SyntaxKind[SyntaxKind["UnionType"] = 148] = "UnionType"; SyntaxKind[SyntaxKind["ParenthesizedType"] = 149] = "ParenthesizedType"; + // Binding patterns SyntaxKind[SyntaxKind["ObjectBindingPattern"] = 150] = "ObjectBindingPattern"; SyntaxKind[SyntaxKind["ArrayBindingPattern"] = 151] = "ArrayBindingPattern"; SyntaxKind[SyntaxKind["BindingElement"] = 152] = "BindingElement"; + // Expression SyntaxKind[SyntaxKind["ArrayLiteralExpression"] = 153] = "ArrayLiteralExpression"; SyntaxKind[SyntaxKind["ObjectLiteralExpression"] = 154] = "ObjectLiteralExpression"; SyntaxKind[SyntaxKind["PropertyAccessExpression"] = 155] = "PropertyAccessExpression"; @@ -192,9 +210,11 @@ var ts; SyntaxKind[SyntaxKind["SpreadElementExpression"] = 173] = "SpreadElementExpression"; SyntaxKind[SyntaxKind["ClassExpression"] = 174] = "ClassExpression"; SyntaxKind[SyntaxKind["OmittedExpression"] = 175] = "OmittedExpression"; + // Misc SyntaxKind[SyntaxKind["TemplateSpan"] = 176] = "TemplateSpan"; SyntaxKind[SyntaxKind["HeritageClauseElement"] = 177] = "HeritageClauseElement"; SyntaxKind[SyntaxKind["SemicolonClassElement"] = 178] = "SemicolonClassElement"; + // Element SyntaxKind[SyntaxKind["Block"] = 179] = "Block"; SyntaxKind[SyntaxKind["VariableStatement"] = 180] = "VariableStatement"; SyntaxKind[SyntaxKind["EmptyStatement"] = 181] = "EmptyStatement"; @@ -235,17 +255,25 @@ var ts; SyntaxKind[SyntaxKind["NamedExports"] = 216] = "NamedExports"; SyntaxKind[SyntaxKind["ExportSpecifier"] = 217] = "ExportSpecifier"; SyntaxKind[SyntaxKind["MissingDeclaration"] = 218] = "MissingDeclaration"; + // Module references SyntaxKind[SyntaxKind["ExternalModuleReference"] = 219] = "ExternalModuleReference"; + // Clauses SyntaxKind[SyntaxKind["CaseClause"] = 220] = "CaseClause"; SyntaxKind[SyntaxKind["DefaultClause"] = 221] = "DefaultClause"; SyntaxKind[SyntaxKind["HeritageClause"] = 222] = "HeritageClause"; SyntaxKind[SyntaxKind["CatchClause"] = 223] = "CatchClause"; + // Property assignments SyntaxKind[SyntaxKind["PropertyAssignment"] = 224] = "PropertyAssignment"; SyntaxKind[SyntaxKind["ShorthandPropertyAssignment"] = 225] = "ShorthandPropertyAssignment"; + // Enum SyntaxKind[SyntaxKind["EnumMember"] = 226] = "EnumMember"; + // Top-level nodes SyntaxKind[SyntaxKind["SourceFile"] = 227] = "SourceFile"; + // Synthesized list SyntaxKind[SyntaxKind["SyntaxList"] = 228] = "SyntaxList"; + // Enum value count SyntaxKind[SyntaxKind["Count"] = 229] = "Count"; + // Markers SyntaxKind[SyntaxKind["FirstAssignment"] = 53] = "FirstAssignment"; SyntaxKind[SyntaxKind["LastAssignment"] = 64] = "LastAssignment"; SyntaxKind[SyntaxKind["FirstReservedWord"] = 66] = "FirstReservedWord"; @@ -291,27 +319,49 @@ var ts; NodeFlags[NodeFlags["BlockScoped"] = 12288] = "BlockScoped"; })(ts.NodeFlags || (ts.NodeFlags = {})); var NodeFlags = ts.NodeFlags; + /* @internal */ (function (ParserContextFlags) { + // Set if this node was parsed in strict mode. Used for grammar error checks, as well as + // checking if the node can be reused in incremental settings. ParserContextFlags[ParserContextFlags["StrictMode"] = 1] = "StrictMode"; + // If this node was parsed in a context where 'in-expressions' are not allowed. ParserContextFlags[ParserContextFlags["DisallowIn"] = 2] = "DisallowIn"; + // If this node was parsed in the 'yield' context created when parsing a generator. ParserContextFlags[ParserContextFlags["Yield"] = 4] = "Yield"; + // If this node was parsed in the parameters of a generator. ParserContextFlags[ParserContextFlags["GeneratorParameter"] = 8] = "GeneratorParameter"; + // If this node was parsed as part of a decorator ParserContextFlags[ParserContextFlags["Decorator"] = 16] = "Decorator"; + // If the parser encountered an error when parsing the code that created this node. Note + // the parser only sets this directly on the node it creates right after encountering the + // error. ParserContextFlags[ParserContextFlags["ThisNodeHasError"] = 32] = "ThisNodeHasError"; + // Context flags set directly by the parser. ParserContextFlags[ParserContextFlags["ParserGeneratedFlags"] = 63] = "ParserGeneratedFlags"; + // Context flags computed by aggregating child flags upwards. + // Used during incremental parsing to determine if this node or any of its children had an + // error. Computed only once and then cached. ParserContextFlags[ParserContextFlags["ThisNodeOrAnySubNodesHasError"] = 64] = "ThisNodeOrAnySubNodesHasError"; + // Used to know if we've computed data from children and cached it in this node. ParserContextFlags[ParserContextFlags["HasAggregatedChildData"] = 128] = "HasAggregatedChildData"; })(ts.ParserContextFlags || (ts.ParserContextFlags = {})); var ParserContextFlags = ts.ParserContextFlags; + /* @internal */ (function (RelationComparisonResult) { RelationComparisonResult[RelationComparisonResult["Succeeded"] = 1] = "Succeeded"; RelationComparisonResult[RelationComparisonResult["Failed"] = 2] = "Failed"; RelationComparisonResult[RelationComparisonResult["FailedAndReported"] = 3] = "FailedAndReported"; })(ts.RelationComparisonResult || (ts.RelationComparisonResult = {})); var RelationComparisonResult = ts.RelationComparisonResult; + /** Return code used by getEmitOutput function to indicate status of the function */ (function (ExitStatus) { + // Compiler ran successfully. Either this was a simple do-nothing compilation (for example, + // when -version or -help was provided, or this was a normal compilation, no diagnostics + // were produced, and all outputs were generated successfully. ExitStatus[ExitStatus["Success"] = 0] = "Success"; + // Diagnostics were produced and because of them no code was generated. ExitStatus[ExitStatus["DiagnosticsPresent_OutputsSkipped"] = 1] = "DiagnosticsPresent_OutputsSkipped"; + // Diagnostics were produced and outputs were generated in spite of them. ExitStatus[ExitStatus["DiagnosticsPresent_OutputsGenerated"] = 2] = "DiagnosticsPresent_OutputsGenerated"; })(ts.ExitStatus || (ts.ExitStatus = {})); var ExitStatus = ts.ExitStatus; @@ -329,10 +379,18 @@ var ts; var TypeFormatFlags = ts.TypeFormatFlags; (function (SymbolFormatFlags) { SymbolFormatFlags[SymbolFormatFlags["None"] = 0] = "None"; + // Write symbols's type argument if it is instantiated symbol + // eg. class C { p: T } <-- Show p as C.p here + // var a: C; + // var p = a.p; <--- Here p is property of C so show it as C.p instead of just C.p SymbolFormatFlags[SymbolFormatFlags["WriteTypeParametersOrArguments"] = 1] = "WriteTypeParametersOrArguments"; + // Use only external alias information to get the symbol name in the given context + // eg. module m { export class c { } } import x = m.c; + // When this flag is specified m.c will be used to refer to the class instead of alias symbol x SymbolFormatFlags[SymbolFormatFlags["UseOnlyExternalAliasing"] = 2] = "UseOnlyExternalAliasing"; })(ts.SymbolFormatFlags || (ts.SymbolFormatFlags = {})); var SymbolFormatFlags = ts.SymbolFormatFlags; + /* @internal */ (function (SymbolAccessibility) { SymbolAccessibility[SymbolAccessibility["Accessible"] = 0] = "Accessible"; SymbolAccessibility[SymbolAccessibility["NotAccessible"] = 1] = "NotAccessible"; @@ -378,7 +436,11 @@ var ts; SymbolFlags[SymbolFlags["Namespace"] = 1536] = "Namespace"; SymbolFlags[SymbolFlags["Module"] = 1536] = "Module"; SymbolFlags[SymbolFlags["Accessor"] = 98304] = "Accessor"; + // Variables can be redeclared, but can not redeclare a block-scoped declaration with the + // same name, or any other value that is not a variable, e.g. ValueModule or Class SymbolFlags[SymbolFlags["FunctionScopedVariableExcludes"] = 107454] = "FunctionScopedVariableExcludes"; + // Block-scoped declarations are not allowed to be re-declared + // they can not merge with anything in the value space SymbolFlags[SymbolFlags["BlockScopedVariableExcludes"] = 107455] = "BlockScopedVariableExcludes"; SymbolFlags[SymbolFlags["ParameterExcludes"] = 107455] = "ParameterExcludes"; SymbolFlags[SymbolFlags["PropertyExcludes"] = 107455] = "PropertyExcludes"; @@ -406,6 +468,7 @@ var ts; SymbolFlags[SymbolFlags["Export"] = 7340032] = "Export"; })(ts.SymbolFlags || (ts.SymbolFlags = {})); var SymbolFlags = ts.SymbolFlags; + /* @internal */ (function (NodeCheckFlags) { NodeCheckFlags[NodeCheckFlags["TypeChecked"] = 1] = "TypeChecked"; NodeCheckFlags[NodeCheckFlags["LexicalThis"] = 2] = "LexicalThis"; @@ -414,9 +477,11 @@ var ts; NodeCheckFlags[NodeCheckFlags["SuperInstance"] = 16] = "SuperInstance"; NodeCheckFlags[NodeCheckFlags["SuperStatic"] = 32] = "SuperStatic"; NodeCheckFlags[NodeCheckFlags["ContextChecked"] = 64] = "ContextChecked"; + // Values for enum members have been computed, and any errors have been reported for them. NodeCheckFlags[NodeCheckFlags["EnumValuesComputed"] = 128] = "EnumValuesComputed"; NodeCheckFlags[NodeCheckFlags["BlockScopedBindingInLoop"] = 256] = "BlockScopedBindingInLoop"; NodeCheckFlags[NodeCheckFlags["EmitDecorate"] = 512] = "EmitDecorate"; + NodeCheckFlags[NodeCheckFlags["EmitParam"] = 1024] = "EmitParam"; })(ts.NodeCheckFlags || (ts.NodeCheckFlags = {})); var NodeCheckFlags = ts.NodeCheckFlags; (function (TypeFlags) { @@ -436,16 +501,22 @@ var ts; TypeFlags[TypeFlags["Tuple"] = 8192] = "Tuple"; TypeFlags[TypeFlags["Union"] = 16384] = "Union"; TypeFlags[TypeFlags["Anonymous"] = 32768] = "Anonymous"; + /* @internal */ TypeFlags[TypeFlags["FromSignature"] = 65536] = "FromSignature"; TypeFlags[TypeFlags["ObjectLiteral"] = 131072] = "ObjectLiteral"; + /* @internal */ TypeFlags[TypeFlags["ContainsUndefinedOrNull"] = 262144] = "ContainsUndefinedOrNull"; + /* @internal */ TypeFlags[TypeFlags["ContainsObjectLiteral"] = 524288] = "ContainsObjectLiteral"; TypeFlags[TypeFlags["ESSymbol"] = 1048576] = "ESSymbol"; + /* @internal */ TypeFlags[TypeFlags["Intrinsic"] = 1048703] = "Intrinsic"; + /* @internal */ TypeFlags[TypeFlags["Primitive"] = 1049086] = "Primitive"; TypeFlags[TypeFlags["StringLike"] = 258] = "StringLike"; TypeFlags[TypeFlags["NumberLike"] = 132] = "NumberLike"; TypeFlags[TypeFlags["ObjectType"] = 48128] = "ObjectType"; + /* @internal */ TypeFlags[TypeFlags["RequiresWidening"] = 786432] = "RequiresWidening"; })(ts.TypeFlags || (ts.TypeFlags = {})); var TypeFlags = ts.TypeFlags; @@ -478,6 +549,7 @@ var ts; ScriptTarget[ScriptTarget["Latest"] = 2] = "Latest"; })(ts.ScriptTarget || (ts.ScriptTarget = {})); var ScriptTarget = ts.ScriptTarget; + /* @internal */ (function (CharacterCodes) { CharacterCodes[CharacterCodes["nullCharacter"] = 0] = "nullCharacter"; CharacterCodes[CharacterCodes["maxAsciiCharacter"] = 127] = "maxAsciiCharacter"; @@ -486,6 +558,7 @@ var ts; CharacterCodes[CharacterCodes["lineSeparator"] = 8232] = "lineSeparator"; CharacterCodes[CharacterCodes["paragraphSeparator"] = 8233] = "paragraphSeparator"; CharacterCodes[CharacterCodes["nextLine"] = 133] = "nextLine"; + // Unicode 3.0 space characters CharacterCodes[CharacterCodes["space"] = 32] = "space"; CharacterCodes[CharacterCodes["nonBreakingSpace"] = 160] = "nonBreakingSpace"; CharacterCodes[CharacterCodes["enQuad"] = 8192] = "enQuad"; @@ -607,8 +680,16 @@ var ts; var CharacterCodes = ts.CharacterCodes; })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { + // Ternary values are defined such that + // x & y is False if either x or y is False. + // x & y is Maybe if either x or y is Maybe, but neither x or y is False. + // x & y is True if both x and y are True. + // x | y is False if both x and y are False. + // x | y is Maybe if either x or y is Maybe, but neither x or y is True. + // x | y is True if either x or y is True. (function (Ternary) { Ternary[Ternary["False"] = 0] = "False"; Ternary[Ternary["Maybe"] = 1] = "Maybe"; @@ -735,6 +816,9 @@ var ts; } } ts.addRange = addRange; + /** + * Returns the last element of an array if non-empty, undefined otherwise. + */ function lastOrUndefined(array) { if (array.length === 0) { return undefined; @@ -857,6 +941,16 @@ var ts; } } ts.copyMap = copyMap; + /** + * Creates a map from the elements of an array. + * + * @param array the array of input elements. + * @param makeKey a function that produces a key for a given element. + * + * This function makes no effort to avoid collisions; if any two elements produce + * the same key with the given 'makeKey' function, then the element with the higher + * index in the array will be the one associated with the produced key. + */ function arrayToMap(array, makeKey) { var result = {}; forEach(array, function (value) { @@ -932,12 +1026,12 @@ var ts; ts.concatenateDiagnosticMessageChains = concatenateDiagnosticMessageChains; function compareValues(a, b) { if (a === b) - return 0; + return 0 /* EqualTo */; if (a === undefined) - return -1; + return -1 /* LessThan */; if (b === undefined) - return 1; - return a < b ? -1 : 1; + return 1 /* GreaterThan */; + return a < b ? -1 /* LessThan */ : 1 /* GreaterThan */; } ts.compareValues = compareValues; function getDiagnosticFileName(diagnostic) { @@ -949,11 +1043,12 @@ var ts; compareValues(d1.length, d2.length) || compareValues(d1.code, d2.code) || compareMessageText(d1.messageText, d2.messageText) || - 0; + 0 /* EqualTo */; } ts.compareDiagnostics = compareDiagnostics; function compareMessageText(text1, text2) { while (text1 && text2) { + // We still have both chains. var string1 = typeof text1 === "string" ? text1 : text1.messageText; var string2 = typeof text2 === "string" ? text2 : text2.messageText; var res = compareValues(string1, string2); @@ -964,9 +1059,11 @@ var ts; text2 = typeof text2 === "string" ? undefined : text2.next; } if (!text1 && !text2) { - return 0; + // if the chains are done, then these messages are the same. + return 0 /* EqualTo */; } - return text1 ? 1 : -1; + // We still have one chain remaining. The shorter chain should come first. + return text1 ? 1 /* GreaterThan */ : -1 /* LessThan */; } function sortAndDeduplicateDiagnostics(diagnostics) { return deduplicateSortedDiagnostics(diagnostics.sort(compareDiagnostics)); @@ -980,7 +1077,7 @@ var ts; var previousDiagnostic = diagnostics[0]; for (var i = 1; i < diagnostics.length; i++) { var currentDiagnostic = diagnostics[i]; - var isDupe = compareDiagnostics(currentDiagnostic, previousDiagnostic) === 0; + var isDupe = compareDiagnostics(currentDiagnostic, previousDiagnostic) === 0 /* EqualTo */; if (!isDupe) { newDiagnostics.push(currentDiagnostic); previousDiagnostic = currentDiagnostic; @@ -993,9 +1090,10 @@ var ts; return path.replace(/\\/g, "/"); } ts.normalizeSlashes = normalizeSlashes; + // Returns length of path root (i.e. length of "/", "x:/", "//server/share/, file:///user/files") function getRootLength(path) { - if (path.charCodeAt(0) === 47) { - if (path.charCodeAt(1) !== 47) + if (path.charCodeAt(0) === 47 /* slash */) { + if (path.charCodeAt(1) !== 47 /* slash */) return 1; var p1 = path.indexOf("/", 2); if (p1 < 0) @@ -1005,11 +1103,14 @@ var ts; return p1 + 1; return p2 + 1; } - if (path.charCodeAt(1) === 58) { - if (path.charCodeAt(2) === 47) + if (path.charCodeAt(1) === 58 /* colon */) { + if (path.charCodeAt(2) === 47 /* slash */) return 3; return 2; } + var idx = path.indexOf('://'); + if (idx !== -1) + return idx + 3; return 0; } ts.getRootLength = getRootLength; @@ -1024,6 +1125,8 @@ var ts; normalized.pop(); } else { + // A part may be an empty string (which is 'falsy') if the path had consecutive slashes, + // e.g. "path//file.ts". Drop these before re-joining the parts. if (part) { normalized.push(part); } @@ -1059,6 +1162,7 @@ var ts; path = normalizeSlashes(path); var rootLength = getRootLength(path); if (rootLength == 0) { + // If the path is not rooted it is relative to current directory path = combinePaths(normalizeSlashes(currentDirectory), path); rootLength = getRootLength(path); } @@ -1080,24 +1184,36 @@ var ts; // In this example the root is: http://www.website.com/ // normalized path components should be ["http://www.website.com/", "folder1", "folder2"] var urlLength = url.length; + // Initial root length is http:// part var rootLength = url.indexOf("://") + "://".length; while (rootLength < urlLength) { - if (url.charCodeAt(rootLength) === 47) { + // Consume all immediate slashes in the protocol + // eg.initial rootlength is just file:// but it needs to consume another "/" in file:/// + if (url.charCodeAt(rootLength) === 47 /* slash */) { rootLength++; } else { + // non slash character means we continue proceeding to next component of root search break; } } + // there are no parts after http:// just return current string as the pathComponent if (rootLength === urlLength) { return [url]; } + // Find the index of "/" after website.com so the root can be http://www.website.com/ (from existing http://) var indexOfNextSlash = url.indexOf(ts.directorySeparator, rootLength); if (indexOfNextSlash !== -1) { + // Found the "/" after the website.com so the root is length of http://www.website.com/ + // and get components afetr the root normally like any other folder components rootLength = indexOfNextSlash + 1; return normalizedPathComponents(url, rootLength); } else { + // Can't find the host assume the rest of the string as component + // but make sure we append "/" to it as root is not joined using "/" + // eg. if url passed in was http://website.com we want to use root as [http://website.com/] + // so that other path manipulations will be correct and it can be merged with relative paths correctly return [url + ts.directorySeparator]; } } @@ -1113,13 +1229,17 @@ var ts; var pathComponents = getNormalizedPathOrUrlComponents(relativeOrAbsolutePath, currentDirectory); var directoryComponents = getNormalizedPathOrUrlComponents(directoryPathOrUrl, currentDirectory); if (directoryComponents.length > 1 && directoryComponents[directoryComponents.length - 1] === "") { + // If the directory path given was of type test/cases/ then we really need components of directory to be only till its name + // that is ["test", "cases", ""] needs to be actually ["test", "cases"] directoryComponents.length--; } + // Find the component that differs for (var joinStartIndex = 0; joinStartIndex < pathComponents.length && joinStartIndex < directoryComponents.length; joinStartIndex++) { if (getCanonicalFileName(directoryComponents[joinStartIndex]) !== getCanonicalFileName(pathComponents[joinStartIndex])) { break; } } + // Get the relative path if (joinStartIndex) { var relativePath = ""; var relativePathComponents = pathComponents.slice(joinStartIndex, pathComponents.length); @@ -1130,6 +1250,7 @@ var ts; } return relativePath + relativePathComponents.join(ts.directorySeparator); } + // Cant find the relative path, get the absolute path var absolutePath = getNormalizedPathFromPathComponents(pathComponents); if (isAbsolutePathAnUrl && isRootedDiskPath(absolutePath)) { absolutePath = "file:///" + absolutePath; @@ -1185,10 +1306,10 @@ var ts; "\"": "\\\"", "\u2028": "\\u2028", "\u2029": "\\u2029", - "\u0085": "\\u0085" + "\u0085": "\\u0085" // nextLine }; function getDefaultLibFileName(options) { - return options.target === 2 ? "lib.es6.d.ts" : "lib.d.ts"; + return options.target === 2 /* ES6 */ ? "lib.es6.d.ts" : "lib.d.ts"; } ts.getDefaultLibFileName = getDefaultLibFileName; function Symbol(flags, name) { @@ -1227,7 +1348,7 @@ var ts; var AssertionLevel = ts.AssertionLevel; var Debug; (function (Debug) { - var currentAssertionLevel = 0; + var currentAssertionLevel = 0 /* None */; function shouldAssert(level) { return currentAssertionLevel >= level; } @@ -1255,9 +1376,9 @@ var ts; function getWScriptSystem() { var fso = new ActiveXObject("Scripting.FileSystemObject"); var fileStream = new ActiveXObject("ADODB.Stream"); - fileStream.Type = 2; + fileStream.Type = 2 /*text*/; var binaryStream = new ActiveXObject("ADODB.Stream"); - binaryStream.Type = 1; + binaryStream.Type = 1 /*binary*/; var args = []; for (var i = 0; i < WScript.Arguments.length; i++) { args[i] = WScript.Arguments.Item(i); @@ -1273,12 +1394,16 @@ var ts; fileStream.LoadFromFile(fileName); } else { + // Load file and read the first two bytes into a string with no interpretation fileStream.Charset = "x-ansi"; fileStream.LoadFromFile(fileName); var bom = fileStream.ReadText(2) || ""; + // Position must be at 0 before encoding can be changed fileStream.Position = 0; + // [0xFF,0xFE] and [0xFE,0xFF] mean utf-16 (little or big endian), otherwise default to utf-8 fileStream.Charset = bom.length >= 2 && (bom.charCodeAt(0) === 0xFF && bom.charCodeAt(1) === 0xFE || bom.charCodeAt(0) === 0xFE && bom.charCodeAt(1) === 0xFF) ? "unicode" : "utf-8"; } + // ReadText method always strips byte order mark from resulting string return fileStream.ReadText(); } catch (e) { @@ -1292,8 +1417,11 @@ var ts; fileStream.Open(); binaryStream.Open(); try { + // Write characters in UTF-8 encoding fileStream.Charset = "utf-8"; fileStream.WriteText(data); + // If we don't want the BOM, then skip it by setting the starting location to 3 (size of BOM). + // If not, start from position 0, as the BOM will be added automatically when charset==utf8. if (writeByteOrderMark) { fileStream.Position = 0; } @@ -1301,7 +1429,7 @@ var ts; fileStream.Position = 3; } fileStream.CopyTo(binaryStream); - binaryStream.SaveToFile(fileName, 2); + binaryStream.SaveToFile(fileName, 2 /*overwrite*/); } finally { binaryStream.Close(); @@ -1379,6 +1507,7 @@ var ts; var _path = require("path"); var _os = require('os'); var platform = _os.platform(); + // win32\win64 are case insensitive platforms, MacOS (darwin) by default is also case insensitive var useCaseSensitiveFileNames = platform !== "win32" && platform !== "win64" && platform !== "darwin"; function readFile(fileName, encoding) { if (!_fs.existsSync(fileName)) { @@ -1387,6 +1516,8 @@ var ts; var buffer = _fs.readFileSync(fileName); var len = buffer.length; if (len >= 2 && buffer[0] === 0xFE && buffer[1] === 0xFF) { + // Big endian UTF-16 byte order mark detected. Since big endian is not supported by node.js, + // flip all byte pairs and treat as little endian. len &= ~1; for (var i = 0; i < len; i += 2) { var temp = buffer[i]; @@ -1396,14 +1527,18 @@ var ts; return buffer.toString("utf16le", 2); } if (len >= 2 && buffer[0] === 0xFF && buffer[1] === 0xFE) { + // Little endian UTF-16 byte order mark detected return buffer.toString("utf16le", 2); } if (len >= 3 && buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) { + // UTF-8 byte order mark detected return buffer.toString("utf8", 3); } + // Default is UTF-8 with no byte order mark return buffer.toString("utf8"); } function writeFile(fileName, data, writeByteOrderMark) { + // If a BOM is required, emit one if (writeByteOrderMark) { data = '\uFEFF' + data; } @@ -1440,11 +1575,13 @@ var ts; newLine: _os.EOL, useCaseSensitiveFileNames: useCaseSensitiveFileNames, write: function (s) { + // 1 is a standard descriptor for stdout _fs.writeSync(1, s); }, readFile: readFile, writeFile: writeFile, watchFile: function (fileName, callback) { + // watchFile polls a file every 250ms, picking up file notifications. _fs.watchFile(fileName, { persistent: true, interval: 250 }, fileChanged); return { close: function () { _fs.unwatchFile(fileName, fileChanged); } @@ -1496,11 +1633,13 @@ var ts; return getNodeSystem(); } else { - return undefined; + return undefined; // Unsupported host } })(); })(ts || (ts = {})); +// /// +/* @internal */ var ts; (function (ts) { ts.Diagnostics = { @@ -1660,7 +1799,6 @@ var ts; An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: { code: 1198, category: ts.DiagnosticCategory.Error, key: "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive." }, Unterminated_Unicode_escape_sequence: { code: 1199, category: ts.DiagnosticCategory.Error, key: "Unterminated Unicode escape sequence." }, Line_terminator_not_permitted_before_arrow: { code: 1200, category: ts.DiagnosticCategory.Error, key: "Line terminator not permitted before arrow." }, - A_type_annotation_on_an_export_statement_is_only_allowed_in_an_ambient_external_module_declaration: { code: 1201, category: ts.DiagnosticCategory.Error, key: "A type annotation on an export statement is only allowed in an ambient external module declaration." }, Import_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_or_import_d_from_mod_instead: { code: 1202, category: ts.DiagnosticCategory.Error, key: "Import assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"' or 'import d from \"mod\"' instead." }, Export_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_export_default_instead: { code: 1203, category: ts.DiagnosticCategory.Error, key: "Export assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'export default' instead." }, Cannot_compile_external_modules_into_amd_or_commonjs_when_targeting_es6_or_higher: { code: 1204, category: ts.DiagnosticCategory.Error, key: "Cannot compile external modules into amd or commonjs when targeting es6 or higher." }, @@ -1669,6 +1807,8 @@ var ts; Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name: { code: 1207, category: ts.DiagnosticCategory.Error, key: "Decorators cannot be applied to multiple get/set accessors of the same name." }, Cannot_compile_non_external_modules_when_the_separateCompilation_flag_is_provided: { code: 1208, category: ts.DiagnosticCategory.Error, key: "Cannot compile non-external modules when the '--separateCompilation' flag is provided." }, Ambient_const_enums_are_not_allowed_when_the_separateCompilation_flag_is_provided: { code: 1209, category: ts.DiagnosticCategory.Error, key: "Ambient const enums are not allowed when the '--separateCompilation' flag is provided." }, + Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode: { code: 1210, category: ts.DiagnosticCategory.Error, key: "Invalid use of '{0}'. Class definitions are automatically in strict mode." }, + A_class_declaration_without_the_default_modifier_must_have_a_name: { code: 1211, category: ts.DiagnosticCategory.Error, key: "A class declaration without the 'default' modifier must have a name" }, Duplicate_identifier_0: { code: 2300, category: ts.DiagnosticCategory.Error, key: "Duplicate identifier '{0}'." }, Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: { code: 2301, category: ts.DiagnosticCategory.Error, key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor." }, Static_members_cannot_reference_class_type_parameters: { code: 2302, category: ts.DiagnosticCategory.Error, key: "Static members cannot reference class type parameters." }, @@ -1844,8 +1984,8 @@ var ts; The_left_hand_side_of_a_for_of_statement_cannot_be_a_previously_defined_constant: { code: 2485, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...of' statement cannot be a previously defined constant." }, The_left_hand_side_of_a_for_in_statement_cannot_be_a_previously_defined_constant: { code: 2486, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...in' statement cannot be a previously defined constant." }, Invalid_left_hand_side_in_for_of_statement: { code: 2487, category: ts.DiagnosticCategory.Error, key: "Invalid left-hand side in 'for...of' statement." }, - The_right_hand_side_of_a_for_of_statement_must_have_a_Symbol_iterator_method_that_returns_an_iterator: { code: 2488, category: ts.DiagnosticCategory.Error, key: "The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator." }, - The_iterator_returned_by_the_right_hand_side_of_a_for_of_statement_must_have_a_next_method: { code: 2489, category: ts.DiagnosticCategory.Error, key: "The iterator returned by the right-hand side of a 'for...of' statement must have a 'next()' method." }, + Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator: { code: 2488, category: ts.DiagnosticCategory.Error, key: "Type must have a '[Symbol.iterator]()' method that returns an iterator." }, + An_iterator_must_have_a_next_method: { code: 2489, category: ts.DiagnosticCategory.Error, key: "An iterator must have a 'next()' method." }, The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property: { code: 2490, category: ts.DiagnosticCategory.Error, key: "The type returned by the 'next()' method of an iterator must have a 'value' property." }, The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: { code: 2491, category: ts.DiagnosticCategory.Error, key: "The left-hand side of a 'for...in' statement cannot be a destructuring pattern." }, Cannot_redeclare_identifier_0_in_catch_clause: { code: 2492, category: ts.DiagnosticCategory.Error, key: "Cannot redeclare identifier '{0}' in catch clause" }, @@ -2007,6 +2147,22 @@ var ts; Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: { code: 7024, category: ts.DiagnosticCategory.Error, key: "Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions." }, You_cannot_rename_this_element: { code: 8000, category: ts.DiagnosticCategory.Error, key: "You cannot rename this element." }, You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: { code: 8001, category: ts.DiagnosticCategory.Error, key: "You cannot rename elements that are defined in the standard TypeScript library." }, + import_can_only_be_used_in_a_ts_file: { code: 8002, category: ts.DiagnosticCategory.Error, key: "'import ... =' can only be used in a .ts file." }, + export_can_only_be_used_in_a_ts_file: { code: 8003, category: ts.DiagnosticCategory.Error, key: "'export=' can only be used in a .ts file." }, + type_parameter_declarations_can_only_be_used_in_a_ts_file: { code: 8004, category: ts.DiagnosticCategory.Error, key: "'type parameter declarations' can only be used in a .ts file." }, + implements_clauses_can_only_be_used_in_a_ts_file: { code: 8005, category: ts.DiagnosticCategory.Error, key: "'implements clauses' can only be used in a .ts file." }, + interface_declarations_can_only_be_used_in_a_ts_file: { code: 8006, category: ts.DiagnosticCategory.Error, key: "'interface declarations' can only be used in a .ts file." }, + module_declarations_can_only_be_used_in_a_ts_file: { code: 8007, category: ts.DiagnosticCategory.Error, key: "'module declarations' can only be used in a .ts file." }, + type_aliases_can_only_be_used_in_a_ts_file: { code: 8008, category: ts.DiagnosticCategory.Error, key: "'type aliases' can only be used in a .ts file." }, + _0_can_only_be_used_in_a_ts_file: { code: 8009, category: ts.DiagnosticCategory.Error, key: "'{0}' can only be used in a .ts file." }, + types_can_only_be_used_in_a_ts_file: { code: 8010, category: ts.DiagnosticCategory.Error, key: "'types' can only be used in a .ts file." }, + type_arguments_can_only_be_used_in_a_ts_file: { code: 8011, category: ts.DiagnosticCategory.Error, key: "'type arguments' can only be used in a .ts file." }, + parameter_modifiers_can_only_be_used_in_a_ts_file: { code: 8012, category: ts.DiagnosticCategory.Error, key: "'parameter modifiers' can only be used in a .ts file." }, + can_only_be_used_in_a_ts_file: { code: 8013, category: ts.DiagnosticCategory.Error, key: "'?' can only be used in a .ts file." }, + property_declarations_can_only_be_used_in_a_ts_file: { code: 8014, category: ts.DiagnosticCategory.Error, key: "'property declarations' can only be used in a .ts file." }, + enum_declarations_can_only_be_used_in_a_ts_file: { code: 8015, category: ts.DiagnosticCategory.Error, key: "'enum declarations' can only be used in a .ts file." }, + type_assertion_expressions_can_only_be_used_in_a_ts_file: { code: 8016, category: ts.DiagnosticCategory.Error, key: "'type assertion expressions' can only be used in a .ts file." }, + decorators_can_only_be_used_in_a_ts_file: { code: 8017, category: ts.DiagnosticCategory.Error, key: "'decorators' can only be used in a .ts file." }, yield_expressions_are_not_currently_supported: { code: 9000, category: ts.DiagnosticCategory.Error, key: "'yield' expressions are not currently supported." }, Generators_are_not_currently_supported: { code: 9001, category: ts.DiagnosticCategory.Error, key: "Generators are not currently supported." }, Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clauses: { code: 9002, category: ts.DiagnosticCategory.Error, key: "Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses." }, @@ -2019,131 +2175,176 @@ var ts; var ts; (function (ts) { var textToToken = { - "any": 112, - "as": 102, - "boolean": 113, - "break": 66, - "case": 67, - "catch": 68, - "class": 69, - "continue": 71, - "const": 70, - "constructor": 114, - "debugger": 72, - "declare": 115, - "default": 73, - "delete": 74, - "do": 75, - "else": 76, - "enum": 77, - "export": 78, - "extends": 79, - "false": 80, - "finally": 81, - "for": 82, - "from": 124, - "function": 83, - "get": 116, - "if": 84, - "implements": 103, - "import": 85, - "in": 86, - "instanceof": 87, - "interface": 104, - "let": 105, - "module": 117, - "new": 88, - "null": 89, - "number": 119, - "package": 106, - "private": 107, - "protected": 108, - "public": 109, - "require": 118, - "return": 90, - "set": 120, - "static": 110, - "string": 121, - "super": 91, - "switch": 92, - "symbol": 122, - "this": 93, - "throw": 94, - "true": 95, - "try": 96, - "type": 123, - "typeof": 97, - "var": 98, - "void": 99, - "while": 100, - "with": 101, - "yield": 111, - "of": 125, - "{": 14, - "}": 15, - "(": 16, - ")": 17, - "[": 18, - "]": 19, - ".": 20, - "...": 21, - ";": 22, - ",": 23, - "<": 24, - ">": 25, - "<=": 26, - ">=": 27, - "==": 28, - "!=": 29, - "===": 30, - "!==": 31, - "=>": 32, - "+": 33, - "-": 34, - "*": 35, - "/": 36, - "%": 37, - "++": 38, - "--": 39, - "<<": 40, - ">>": 41, - ">>>": 42, - "&": 43, - "|": 44, - "^": 45, - "!": 46, - "~": 47, - "&&": 48, - "||": 49, - "?": 50, - ":": 51, - "=": 53, - "+=": 54, - "-=": 55, - "*=": 56, - "/=": 57, - "%=": 58, - "<<=": 59, - ">>=": 60, - ">>>=": 61, - "&=": 62, - "|=": 63, - "^=": 64, - "@": 52 + "any": 112 /* AnyKeyword */, + "as": 102 /* AsKeyword */, + "boolean": 113 /* BooleanKeyword */, + "break": 66 /* BreakKeyword */, + "case": 67 /* CaseKeyword */, + "catch": 68 /* CatchKeyword */, + "class": 69 /* ClassKeyword */, + "continue": 71 /* ContinueKeyword */, + "const": 70 /* ConstKeyword */, + "constructor": 114 /* ConstructorKeyword */, + "debugger": 72 /* DebuggerKeyword */, + "declare": 115 /* DeclareKeyword */, + "default": 73 /* DefaultKeyword */, + "delete": 74 /* DeleteKeyword */, + "do": 75 /* DoKeyword */, + "else": 76 /* ElseKeyword */, + "enum": 77 /* EnumKeyword */, + "export": 78 /* ExportKeyword */, + "extends": 79 /* ExtendsKeyword */, + "false": 80 /* FalseKeyword */, + "finally": 81 /* FinallyKeyword */, + "for": 82 /* ForKeyword */, + "from": 124 /* FromKeyword */, + "function": 83 /* FunctionKeyword */, + "get": 116 /* GetKeyword */, + "if": 84 /* IfKeyword */, + "implements": 103 /* ImplementsKeyword */, + "import": 85 /* ImportKeyword */, + "in": 86 /* InKeyword */, + "instanceof": 87 /* InstanceOfKeyword */, + "interface": 104 /* InterfaceKeyword */, + "let": 105 /* LetKeyword */, + "module": 117 /* ModuleKeyword */, + "new": 88 /* NewKeyword */, + "null": 89 /* NullKeyword */, + "number": 119 /* NumberKeyword */, + "package": 106 /* PackageKeyword */, + "private": 107 /* PrivateKeyword */, + "protected": 108 /* ProtectedKeyword */, + "public": 109 /* PublicKeyword */, + "require": 118 /* RequireKeyword */, + "return": 90 /* ReturnKeyword */, + "set": 120 /* SetKeyword */, + "static": 110 /* StaticKeyword */, + "string": 121 /* StringKeyword */, + "super": 91 /* SuperKeyword */, + "switch": 92 /* SwitchKeyword */, + "symbol": 122 /* SymbolKeyword */, + "this": 93 /* ThisKeyword */, + "throw": 94 /* ThrowKeyword */, + "true": 95 /* TrueKeyword */, + "try": 96 /* TryKeyword */, + "type": 123 /* TypeKeyword */, + "typeof": 97 /* TypeOfKeyword */, + "var": 98 /* VarKeyword */, + "void": 99 /* VoidKeyword */, + "while": 100 /* WhileKeyword */, + "with": 101 /* WithKeyword */, + "yield": 111 /* YieldKeyword */, + "of": 125 /* OfKeyword */, + "{": 14 /* OpenBraceToken */, + "}": 15 /* CloseBraceToken */, + "(": 16 /* OpenParenToken */, + ")": 17 /* CloseParenToken */, + "[": 18 /* OpenBracketToken */, + "]": 19 /* CloseBracketToken */, + ".": 20 /* DotToken */, + "...": 21 /* DotDotDotToken */, + ";": 22 /* SemicolonToken */, + ",": 23 /* CommaToken */, + "<": 24 /* LessThanToken */, + ">": 25 /* GreaterThanToken */, + "<=": 26 /* LessThanEqualsToken */, + ">=": 27 /* GreaterThanEqualsToken */, + "==": 28 /* EqualsEqualsToken */, + "!=": 29 /* ExclamationEqualsToken */, + "===": 30 /* EqualsEqualsEqualsToken */, + "!==": 31 /* ExclamationEqualsEqualsToken */, + "=>": 32 /* EqualsGreaterThanToken */, + "+": 33 /* PlusToken */, + "-": 34 /* MinusToken */, + "*": 35 /* AsteriskToken */, + "/": 36 /* SlashToken */, + "%": 37 /* PercentToken */, + "++": 38 /* PlusPlusToken */, + "--": 39 /* MinusMinusToken */, + "<<": 40 /* LessThanLessThanToken */, + ">>": 41 /* GreaterThanGreaterThanToken */, + ">>>": 42 /* GreaterThanGreaterThanGreaterThanToken */, + "&": 43 /* AmpersandToken */, + "|": 44 /* BarToken */, + "^": 45 /* CaretToken */, + "!": 46 /* ExclamationToken */, + "~": 47 /* TildeToken */, + "&&": 48 /* AmpersandAmpersandToken */, + "||": 49 /* BarBarToken */, + "?": 50 /* QuestionToken */, + ":": 51 /* ColonToken */, + "=": 53 /* EqualsToken */, + "+=": 54 /* PlusEqualsToken */, + "-=": 55 /* MinusEqualsToken */, + "*=": 56 /* AsteriskEqualsToken */, + "/=": 57 /* SlashEqualsToken */, + "%=": 58 /* PercentEqualsToken */, + "<<=": 59 /* LessThanLessThanEqualsToken */, + ">>=": 60 /* GreaterThanGreaterThanEqualsToken */, + ">>>=": 61 /* GreaterThanGreaterThanGreaterThanEqualsToken */, + "&=": 62 /* AmpersandEqualsToken */, + "|=": 63 /* BarEqualsToken */, + "^=": 64 /* CaretEqualsToken */, + "@": 52 /* AtToken */ }; + /* + As per ECMAScript Language Specification 3th Edition, Section 7.6: Identifiers + IdentifierStart :: + Can contain Unicode 3.0.0 categories: + Uppercase letter (Lu), + Lowercase letter (Ll), + Titlecase letter (Lt), + Modifier letter (Lm), + Other letter (Lo), or + Letter number (Nl). + IdentifierPart :: = + Can contain IdentifierStart + Unicode 3.0.0 categories: + Non-spacing mark (Mn), + Combining spacing mark (Mc), + Decimal number (Nd), or + Connector punctuation (Pc). + + Codepoint ranges for ES3 Identifiers are extracted from the Unicode 3.0.0 specification at: + http://www.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.txt + */ var unicodeES3IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1610, 1649, 1747, 1749, 1749, 1765, 1766, 1786, 1788, 1808, 1808, 1810, 1836, 1920, 1957, 2309, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2784, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3294, 3294, 3296, 3297, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3424, 3425, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3805, 3840, 3840, 3904, 3911, 3913, 3946, 3976, 3979, 4096, 4129, 4131, 4135, 4137, 4138, 4176, 4181, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6067, 6176, 6263, 6272, 6312, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8319, 8319, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12346, 12353, 12436, 12445, 12446, 12449, 12538, 12540, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65138, 65140, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,]; var unicodeES3IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 768, 846, 864, 866, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1155, 1158, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1441, 1443, 1465, 1467, 1469, 1471, 1471, 1473, 1474, 1476, 1476, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1621, 1632, 1641, 1648, 1747, 1749, 1756, 1759, 1768, 1770, 1773, 1776, 1788, 1808, 1836, 1840, 1866, 1920, 1968, 2305, 2307, 2309, 2361, 2364, 2381, 2384, 2388, 2392, 2403, 2406, 2415, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2492, 2494, 2500, 2503, 2504, 2507, 2509, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2562, 2562, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2649, 2652, 2654, 2654, 2662, 2676, 2689, 2691, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2784, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2876, 2883, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2913, 2918, 2927, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3031, 3031, 3047, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3134, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3168, 3169, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3262, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3297, 3302, 3311, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3390, 3395, 3398, 3400, 3402, 3405, 3415, 3415, 3424, 3425, 3430, 3439, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3805, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3946, 3953, 3972, 3974, 3979, 3984, 3991, 3993, 4028, 4038, 4038, 4096, 4129, 4131, 4135, 4137, 4138, 4140, 4146, 4150, 4153, 4160, 4169, 4176, 4185, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 4969, 4977, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6099, 6112, 6121, 6160, 6169, 6176, 6263, 6272, 6313, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8255, 8256, 8319, 8319, 8400, 8412, 8417, 8417, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12346, 12353, 12436, 12441, 12442, 12445, 12446, 12449, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65056, 65059, 65075, 65076, 65101, 65103, 65136, 65138, 65140, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65381, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,]; + /* + As per ECMAScript Language Specification 5th Edition, Section 7.6: ISyntaxToken Names and Identifiers + IdentifierStart :: + Can contain Unicode 6.2 categories: + Uppercase letter (Lu), + Lowercase letter (Ll), + Titlecase letter (Lt), + Modifier letter (Lm), + Other letter (Lo), or + Letter number (Nl). + IdentifierPart :: + Can contain IdentifierStart + Unicode 6.2 categories: + Non-spacing mark (Mn), + Combining spacing mark (Mc), + Decimal number (Nd), + Connector punctuation (Pc), + , or + . + + Codepoint ranges for ES5 Identifiers are extracted from the Unicode 6.2 specification at: + http://www.unicode.org/Public/6.2.0/ucd/UnicodeData.txt + */ var unicodeES5IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2208, 2208, 2210, 2220, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2423, 2425, 2431, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3133, 3160, 3161, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3424, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6000, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6263, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6428, 6480, 6509, 6512, 6516, 6528, 6571, 6593, 6599, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7401, 7404, 7406, 7409, 7413, 7414, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11823, 11823, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42647, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43000, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43648, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,]; var unicodeES5IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1520, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2048, 2093, 2112, 2139, 2208, 2208, 2210, 2220, 2276, 2302, 2304, 2403, 2406, 2415, 2417, 2423, 2425, 2431, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3161, 3168, 3171, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3396, 3398, 3400, 3402, 3406, 3415, 3415, 3424, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6000, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6263, 6272, 6314, 6320, 6389, 6400, 6428, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6617, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7376, 7378, 7380, 7414, 7424, 7654, 7676, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8204, 8205, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 11823, 11823, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12442, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42647, 42655, 42737, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43000, 43047, 43072, 43123, 43136, 43204, 43216, 43225, 43232, 43255, 43259, 43259, 43264, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43643, 43648, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65062, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,]; function lookupInUnicodeMap(code, map) { + // Bail out quickly if it couldn't possibly be in the map. if (code < map[0]) { return false; } + // Perform binary search in one of the Unicode range maps var lo = 0; var hi = map.length; var mid; while (lo + 1 < hi) { mid = lo + (hi - lo) / 2; + // mid has to be even to catch a range's beginning mid -= mid % 2; if (map[mid] <= code && code <= map[mid + 1]) { return true; @@ -2157,14 +2358,14 @@ var ts; } return false; } - function isUnicodeIdentifierStart(code, languageVersion) { - return languageVersion >= 1 ? + /* @internal */ function isUnicodeIdentifierStart(code, languageVersion) { + return languageVersion >= 1 /* ES5 */ ? lookupInUnicodeMap(code, unicodeES5IdentifierStart) : lookupInUnicodeMap(code, unicodeES3IdentifierStart); } ts.isUnicodeIdentifierStart = isUnicodeIdentifierStart; function isUnicodeIdentifierPart(code, languageVersion) { - return languageVersion >= 1 ? + return languageVersion >= 1 /* ES5 */ ? lookupInUnicodeMap(code, unicodeES5IdentifierPart) : lookupInUnicodeMap(code, unicodeES3IdentifierPart); } @@ -2182,10 +2383,12 @@ var ts; return tokenStrings[t]; } ts.tokenToString = tokenToString; + /* @internal */ function stringToToken(s) { return textToToken[s]; } ts.stringToToken = stringToToken; + /* @internal */ function computeLineStarts(text) { var result = new Array(); var pos = 0; @@ -2193,16 +2396,16 @@ var ts; while (pos < text.length) { var ch = text.charCodeAt(pos++); switch (ch) { - case 13: - if (text.charCodeAt(pos) === 10) { + case 13 /* carriageReturn */: + if (text.charCodeAt(pos) === 10 /* lineFeed */) { pos++; } - case 10: + case 10 /* lineFeed */: result.push(lineStart); lineStart = pos; break; default: - if (ch > 127 && isLineBreak(ch)) { + if (ch > 127 /* maxAsciiCharacter */ && isLineBreak(ch)) { result.push(lineStart); lineStart = pos; } @@ -2217,18 +2420,25 @@ var ts; return computePositionOfLineAndCharacter(getLineStarts(sourceFile), line, character); } ts.getPositionOfLineAndCharacter = getPositionOfLineAndCharacter; + /* @internal */ function computePositionOfLineAndCharacter(lineStarts, line, character) { ts.Debug.assert(line >= 0 && line < lineStarts.length); return lineStarts[line] + character; } ts.computePositionOfLineAndCharacter = computePositionOfLineAndCharacter; + /* @internal */ function getLineStarts(sourceFile) { return sourceFile.lineMap || (sourceFile.lineMap = computeLineStarts(sourceFile.text)); } ts.getLineStarts = getLineStarts; + /* @internal */ function computeLineAndCharacterOfPosition(lineStarts, position) { var lineNumber = ts.binarySearch(lineStarts, position); if (lineNumber < 0) { + // If the actual position was not found, + // the binary search returns the negative value of the next line start + // e.g. if the line starts at [5, 10, 23, 80] and the position requested was 20 + // then the search will return -2 lineNumber = ~lineNumber - 1; } return { @@ -2243,18 +2453,20 @@ var ts; ts.getLineAndCharacterOfPosition = getLineAndCharacterOfPosition; var hasOwnProperty = Object.prototype.hasOwnProperty; function isWhiteSpace(ch) { - return ch === 32 || - ch === 9 || - ch === 11 || - ch === 12 || - ch === 160 || - ch === 133 || - ch === 5760 || - ch >= 8192 && ch <= 8203 || - ch === 8239 || - ch === 8287 || - ch === 12288 || - ch === 65279; + // Note: nextLine is in the Zs space, and should be considered to be a whitespace. + // It is explicitly not a line-break as it isn't in the exact set specified by EcmaScript. + return ch === 32 /* space */ || + ch === 9 /* tab */ || + ch === 11 /* verticalTab */ || + ch === 12 /* formFeed */ || + ch === 160 /* nonBreakingSpace */ || + ch === 133 /* nextLine */ || + ch === 5760 /* ogham */ || + ch >= 8192 /* enQuad */ && ch <= 8203 /* zeroWidthSpace */ || + ch === 8239 /* narrowNoBreakSpace */ || + ch === 8287 /* mathematicalSpace */ || + ch === 12288 /* ideographicSpace */ || + ch === 65279 /* byteOrderMark */; } ts.isWhiteSpace = isWhiteSpace; function isLineBreak(ch) { @@ -2268,41 +2480,43 @@ var ts; // \u2029 Paragraph separator // Only the characters in Table 3 are treated as line terminators. Other new line or line // breaking characters are treated as white space but not as line terminators. - return ch === 10 || - ch === 13 || - ch === 8232 || - ch === 8233; + return ch === 10 /* lineFeed */ || + ch === 13 /* carriageReturn */ || + ch === 8232 /* lineSeparator */ || + ch === 8233 /* paragraphSeparator */; } ts.isLineBreak = isLineBreak; function isDigit(ch) { - return ch >= 48 && ch <= 57; + return ch >= 48 /* _0 */ && ch <= 57 /* _9 */; } + /* @internal */ function isOctalDigit(ch) { - return ch >= 48 && ch <= 55; + return ch >= 48 /* _0 */ && ch <= 55 /* _7 */; } ts.isOctalDigit = isOctalDigit; + /* @internal */ function skipTrivia(text, pos, stopAfterLineBreak) { while (true) { var ch = text.charCodeAt(pos); switch (ch) { - case 13: - if (text.charCodeAt(pos + 1) === 10) { + case 13 /* carriageReturn */: + if (text.charCodeAt(pos + 1) === 10 /* lineFeed */) { pos++; } - case 10: + case 10 /* lineFeed */: pos++; if (stopAfterLineBreak) { return pos; } continue; - case 9: - case 11: - case 12: - case 32: + case 9 /* tab */: + case 11 /* verticalTab */: + case 12 /* formFeed */: + case 32 /* space */: pos++; continue; - case 47: - if (text.charCodeAt(pos + 1) === 47) { + case 47 /* slash */: + if (text.charCodeAt(pos + 1) === 47 /* slash */) { pos += 2; while (pos < text.length) { if (isLineBreak(text.charCodeAt(pos))) { @@ -2312,10 +2526,10 @@ var ts; } continue; } - if (text.charCodeAt(pos + 1) === 42) { + if (text.charCodeAt(pos + 1) === 42 /* asterisk */) { pos += 2; while (pos < text.length) { - if (text.charCodeAt(pos) === 42 && text.charCodeAt(pos + 1) === 47) { + if (text.charCodeAt(pos) === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) { pos += 2; break; } @@ -2324,16 +2538,16 @@ var ts; continue; } break; - case 60: - case 61: - case 62: + case 60 /* lessThan */: + case 61 /* equals */: + case 62 /* greaterThan */: if (isConflictMarkerTrivia(text, pos)) { pos = scanConflictMarkerTrivia(text, pos); continue; } break; default: - if (ch > 127 && (isWhiteSpace(ch) || isLineBreak(ch))) { + if (ch > 127 /* maxAsciiCharacter */ && (isWhiteSpace(ch) || isLineBreak(ch))) { pos++; continue; } @@ -2343,9 +2557,12 @@ var ts; } } ts.skipTrivia = skipTrivia; + // All conflict markers consist of the same character repeated seven times. If it is + // a <<<<<<< or >>>>>>> marker then it is also followd by a space. var mergeConflictMarkerLength = "<<<<<<<".length; function isConflictMarkerTrivia(text, pos) { ts.Debug.assert(pos >= 0); + // Conflict markers must be at the start of a line. if (pos === 0 || isLineBreak(text.charCodeAt(pos - 1))) { var ch = text.charCodeAt(pos); if ((pos + mergeConflictMarkerLength) < text.length) { @@ -2354,8 +2571,8 @@ var ts; return false; } } - return ch === 61 || - text.charCodeAt(pos + mergeConflictMarkerLength) === 32; + return ch === 61 /* equals */ || + text.charCodeAt(pos + mergeConflictMarkerLength) === 32 /* space */; } } return false; @@ -2366,16 +2583,18 @@ var ts; } var ch = text.charCodeAt(pos); var len = text.length; - if (ch === 60 || ch === 62) { + if (ch === 60 /* lessThan */ || ch === 62 /* greaterThan */) { while (pos < len && !isLineBreak(text.charCodeAt(pos))) { pos++; } } else { - ts.Debug.assert(ch === 61); + ts.Debug.assert(ch === 61 /* equals */); + // Consume everything from the start of the mid-conlict marker to the start of the next + // end-conflict marker. while (pos < len) { var ch_1 = text.charCodeAt(pos); - if (ch_1 === 62 && isConflictMarkerTrivia(text, pos)) { + if (ch_1 === 62 /* greaterThan */ && isConflictMarkerTrivia(text, pos)) { break; } pos++; @@ -2383,17 +2602,24 @@ var ts; } return pos; } + // Extract comments from the given source text starting at the given position. If trailing is + // false, whitespace is skipped until the first line break and comments between that location + // and the next token are returned.If trailing is true, comments occurring between the given + // position and the next line break are returned.The return value is an array containing a + // TextRange for each comment. Single-line comment ranges include the beginning '//' characters + // but not the ending line break. Multi - line comment ranges include the beginning '/* and + // ending '*/' characters.The return value is undefined if no comments were found. function getCommentRanges(text, pos, trailing) { var result; var collecting = trailing || pos === 0; while (true) { var ch = text.charCodeAt(pos); switch (ch) { - case 13: - if (text.charCodeAt(pos + 1) === 10) { + case 13 /* carriageReturn */: + if (text.charCodeAt(pos + 1) === 10 /* lineFeed */) { pos++; } - case 10: + case 10 /* lineFeed */: pos++; if (trailing) { return result; @@ -2403,19 +2629,20 @@ var ts; result[result.length - 1].hasTrailingNewLine = true; } continue; - case 9: - case 11: - case 12: - case 32: + case 9 /* tab */: + case 11 /* verticalTab */: + case 12 /* formFeed */: + case 32 /* space */: pos++; continue; - case 47: + case 47 /* slash */: var nextChar = text.charCodeAt(pos + 1); var hasTrailingNewLine = false; - if (nextChar === 47 || nextChar === 42) { + if (nextChar === 47 /* slash */ || nextChar === 42 /* asterisk */) { + var kind = nextChar === 47 /* slash */ ? 2 /* SingleLineCommentTrivia */ : 3 /* MultiLineCommentTrivia */; var startPos = pos; pos += 2; - if (nextChar === 47) { + if (nextChar === 47 /* slash */) { while (pos < text.length) { if (isLineBreak(text.charCodeAt(pos))) { hasTrailingNewLine = true; @@ -2426,7 +2653,7 @@ var ts; } else { while (pos < text.length) { - if (text.charCodeAt(pos) === 42 && text.charCodeAt(pos + 1) === 47) { + if (text.charCodeAt(pos) === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) { pos += 2; break; } @@ -2437,13 +2664,13 @@ var ts; if (!result) { result = []; } - result.push({ pos: startPos, end: pos, hasTrailingNewLine: hasTrailingNewLine }); + result.push({ pos: startPos, end: pos, hasTrailingNewLine: hasTrailingNewLine, kind: kind }); } continue; } break; default: - if (ch > 127 && (isWhiteSpace(ch) || isLineBreak(ch))) { + if (ch > 127 /* maxAsciiCharacter */ && (isWhiteSpace(ch) || isLineBreak(ch))) { if (result && result.length && isLineBreak(ch)) { result[result.length - 1].hasTrailingNewLine = true; } @@ -2464,22 +2691,23 @@ var ts; } ts.getTrailingCommentRanges = getTrailingCommentRanges; function isIdentifierStart(ch, languageVersion) { - return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || - ch === 36 || ch === 95 || - ch > 127 && isUnicodeIdentifierStart(ch, languageVersion); + return ch >= 65 /* A */ && ch <= 90 /* Z */ || ch >= 97 /* a */ && ch <= 122 /* z */ || + ch === 36 /* $ */ || ch === 95 /* _ */ || + ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierStart(ch, languageVersion); } ts.isIdentifierStart = isIdentifierStart; function isIdentifierPart(ch, languageVersion) { - return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || - ch >= 48 && ch <= 57 || ch === 36 || ch === 95 || - ch > 127 && isUnicodeIdentifierPart(ch, languageVersion); + return ch >= 65 /* A */ && ch <= 90 /* Z */ || ch >= 97 /* a */ && ch <= 122 /* z */ || + ch >= 48 /* _0 */ && ch <= 57 /* _9 */ || ch === 36 /* $ */ || ch === 95 /* _ */ || + ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierPart(ch, languageVersion); } ts.isIdentifierPart = isIdentifierPart; + /* @internal */ function createScanner(languageVersion, skipTrivia, text, onError) { - var pos; - var len; - var startPos; - var tokenPos; + var pos; // Current position (end position of text of current token) + var len; // Length of text + var startPos; // Start position of whitespace before current token + var tokenPos; // Start position of text of current token var token; var tokenValue; var precedingLineBreak; @@ -2491,28 +2719,28 @@ var ts; } } function isIdentifierStart(ch) { - return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || - ch === 36 || ch === 95 || - ch > 127 && isUnicodeIdentifierStart(ch, languageVersion); + return ch >= 65 /* A */ && ch <= 90 /* Z */ || ch >= 97 /* a */ && ch <= 122 /* z */ || + ch === 36 /* $ */ || ch === 95 /* _ */ || + ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierStart(ch, languageVersion); } function isIdentifierPart(ch) { - return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || - ch >= 48 && ch <= 57 || ch === 36 || ch === 95 || - ch > 127 && isUnicodeIdentifierPart(ch, languageVersion); + return ch >= 65 /* A */ && ch <= 90 /* Z */ || ch >= 97 /* a */ && ch <= 122 /* z */ || + ch >= 48 /* _0 */ && ch <= 57 /* _9 */ || ch === 36 /* $ */ || ch === 95 /* _ */ || + ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierPart(ch, languageVersion); } function scanNumber() { var start = pos; while (isDigit(text.charCodeAt(pos))) pos++; - if (text.charCodeAt(pos) === 46) { + if (text.charCodeAt(pos) === 46 /* dot */) { pos++; while (isDigit(text.charCodeAt(pos))) pos++; } var end = pos; - if (text.charCodeAt(pos) === 69 || text.charCodeAt(pos) === 101) { + if (text.charCodeAt(pos) === 69 /* E */ || text.charCodeAt(pos) === 101 /* e */) { pos++; - if (text.charCodeAt(pos) === 43 || text.charCodeAt(pos) === 45) + if (text.charCodeAt(pos) === 43 /* plus */ || text.charCodeAt(pos) === 45 /* minus */) pos++; if (isDigit(text.charCodeAt(pos))) { pos++; @@ -2533,9 +2761,17 @@ var ts; } return +(text.substring(start, pos)); } + /** + * Scans the given number of hexadecimal digits in the text, + * returning -1 if the given number is unavailable. + */ function scanExactNumberOfHexDigits(count) { return scanHexDigits(count, false); } + /** + * Scans as many hexadecimal digits as are available in the text, + * returning -1 if the given number of digits was unavailable. + */ function scanMinimumNumberOfHexDigits(count) { return scanHexDigits(count, true); } @@ -2544,14 +2780,14 @@ var ts; var value = 0; while (digits < minCount || scanAsManyAsPossible) { var ch = text.charCodeAt(pos); - if (ch >= 48 && ch <= 57) { - value = value * 16 + ch - 48; + if (ch >= 48 /* _0 */ && ch <= 57 /* _9 */) { + value = value * 16 + ch - 48 /* _0 */; } - else if (ch >= 65 && ch <= 70) { - value = value * 16 + ch - 65 + 10; + else if (ch >= 65 /* A */ && ch <= 70 /* F */) { + value = value * 16 + ch - 65 /* A */ + 10; } - else if (ch >= 97 && ch <= 102) { - value = value * 16 + ch - 97 + 10; + else if (ch >= 97 /* a */ && ch <= 102 /* f */) { + value = value * 16 + ch - 97 /* a */ + 10; } else { break; @@ -2581,7 +2817,7 @@ var ts; pos++; break; } - if (ch === 92) { + if (ch === 92 /* backslash */) { result += text.substring(start, pos); result += scanEscapeSequence(); start = pos; @@ -2597,8 +2833,12 @@ var ts; } return result; } + /** + * Sets the current 'tokenValue' and returns a NoSubstitutionTemplateLiteral or + * a literal component of a TemplateExpression. + */ function scanTemplateAndSetTokenValue() { - var startedWithBacktick = text.charCodeAt(pos) === 96; + var startedWithBacktick = text.charCodeAt(pos) === 96 /* backtick */; pos++; var start = pos; var contents = ""; @@ -2608,32 +2848,37 @@ var ts; contents += text.substring(start, pos); tokenIsUnterminated = true; error(ts.Diagnostics.Unterminated_template_literal); - resultingToken = startedWithBacktick ? 10 : 13; + resultingToken = startedWithBacktick ? 10 /* NoSubstitutionTemplateLiteral */ : 13 /* TemplateTail */; break; } var currChar = text.charCodeAt(pos); - if (currChar === 96) { + // '`' + if (currChar === 96 /* backtick */) { contents += text.substring(start, pos); pos++; - resultingToken = startedWithBacktick ? 10 : 13; + resultingToken = startedWithBacktick ? 10 /* NoSubstitutionTemplateLiteral */ : 13 /* TemplateTail */; break; } - if (currChar === 36 && pos + 1 < len && text.charCodeAt(pos + 1) === 123) { + // '${' + if (currChar === 36 /* $ */ && pos + 1 < len && text.charCodeAt(pos + 1) === 123 /* openBrace */) { contents += text.substring(start, pos); pos += 2; - resultingToken = startedWithBacktick ? 11 : 12; + resultingToken = startedWithBacktick ? 11 /* TemplateHead */ : 12 /* TemplateMiddle */; break; } - if (currChar === 92) { + // Escape character + if (currChar === 92 /* backslash */) { contents += text.substring(start, pos); contents += scanEscapeSequence(); start = pos; continue; } - if (currChar === 13) { + // Speculated ECMAScript 6 Spec 11.8.6.1: + // and LineTerminatorSequences are normalized to for Template Values + if (currChar === 13 /* carriageReturn */) { contents += text.substring(start, pos); pos++; - if (pos < len && text.charCodeAt(pos) === 10) { + if (pos < len && text.charCodeAt(pos) === 10 /* lineFeed */) { pos++; } contents += "\n"; @@ -2654,40 +2899,46 @@ var ts; } var ch = text.charCodeAt(pos++); switch (ch) { - case 48: + case 48 /* _0 */: return "\0"; - case 98: + case 98 /* b */: return "\b"; - case 116: + case 116 /* t */: return "\t"; - case 110: + case 110 /* n */: return "\n"; - case 118: + case 118 /* v */: return "\v"; - case 102: + case 102 /* f */: return "\f"; - case 114: + case 114 /* r */: return "\r"; - case 39: + case 39 /* singleQuote */: return "\'"; - case 34: + case 34 /* doubleQuote */: return "\""; - case 117: - if (pos < len && text.charCodeAt(pos) === 123) { + case 117 /* u */: + // '\u{DDDDDDDD}' + if (pos < len && text.charCodeAt(pos) === 123 /* openBrace */) { hasExtendedUnicodeEscape = true; pos++; return scanExtendedUnicodeEscape(); } + // '\uDDDD' return scanHexadecimalEscape(4); - case 120: + case 120 /* x */: + // '\xDD' return scanHexadecimalEscape(2); - case 13: - if (pos < len && text.charCodeAt(pos) === 10) { + // when encountering a LineContinuation (i.e. a backslash and a line terminator sequence), + // the line terminator is interpreted to be "the empty code unit sequence". + case 13 /* carriageReturn */: + if (pos < len && text.charCodeAt(pos) === 10 /* lineFeed */) { pos++; } - case 10: - case 8232: - case 8233: + // fall through + case 10 /* lineFeed */: + case 8232 /* lineSeparator */: + case 8233 /* paragraphSeparator */: return ""; default: return String.fromCharCode(ch); @@ -2706,6 +2957,7 @@ var ts; function scanExtendedUnicodeEscape() { var escapedValue = scanMinimumNumberOfHexDigits(1); var isInvalidExtendedEscape = false; + // Validate the value of the digit if (escapedValue < 0) { error(ts.Diagnostics.Hexadecimal_digit_expected); isInvalidExtendedEscape = true; @@ -2718,7 +2970,8 @@ var ts; error(ts.Diagnostics.Unexpected_end_of_text); isInvalidExtendedEscape = true; } - else if (text.charCodeAt(pos) == 125) { + else if (text.charCodeAt(pos) == 125 /* closeBrace */) { + // Only swallow the following character up if it's a '}'. pos++; } else { @@ -2730,6 +2983,7 @@ var ts; } return utf16EncodeAsString(escapedValue); } + // Derived from the 10.1.1 UTF16Encoding of the ES6 Spec. function utf16EncodeAsString(codePoint) { ts.Debug.assert(0x0 <= codePoint && codePoint <= 0x10FFFF); if (codePoint <= 65535) { @@ -2739,8 +2993,10 @@ var ts; var codeUnit2 = ((codePoint - 65536) % 1024) + 0xDC00; return String.fromCharCode(codeUnit1, codeUnit2); } + // Current character is known to be a backslash. Check for Unicode escape of the form '\uXXXX' + // and return code point value if valid Unicode escape is found. Otherwise return -1. function peekUnicodeEscape() { - if (pos + 5 < len && text.charCodeAt(pos + 1) === 117) { + if (pos + 5 < len && text.charCodeAt(pos + 1) === 117 /* u */) { var start = pos; pos += 2; var value = scanExactNumberOfHexDigits(4); @@ -2757,13 +3013,14 @@ var ts; if (isIdentifierPart(ch)) { pos++; } - else if (ch === 92) { + else if (ch === 92 /* backslash */) { ch = peekUnicodeEscape(); if (!(ch >= 0 && isIdentifierPart(ch))) { break; } result += text.substring(start, pos); result += String.fromCharCode(ch); + // Valid Unicode escape is always six characters pos += 6; start = pos; } @@ -2775,22 +3032,25 @@ var ts; return result; } function getIdentifierToken() { + // Reserved words are between 2 and 11 characters long and start with a lowercase letter var len = tokenValue.length; if (len >= 2 && len <= 11) { var ch = tokenValue.charCodeAt(0); - if (ch >= 97 && ch <= 122 && hasOwnProperty.call(textToToken, tokenValue)) { + if (ch >= 97 /* a */ && ch <= 122 /* z */ && hasOwnProperty.call(textToToken, tokenValue)) { return token = textToToken[tokenValue]; } } - return token = 65; + return token = 65 /* Identifier */; } function scanBinaryOrOctalDigits(base) { ts.Debug.assert(base !== 2 || base !== 8, "Expected either base 2 or base 8"); var value = 0; + // For counting number of digits; Valid binaryIntegerLiteral must have at least one binary digit following B or b. + // Similarly valid octalIntegerLiteral must have at least one octal digit following o or O. var numberOfDigits = 0; while (true) { var ch = text.charCodeAt(pos); - var valueOfCh = ch - 48; + var valueOfCh = ch - 48 /* _0 */; if (!isDigit(ch) || valueOfCh >= base) { break; } @@ -2798,6 +3058,7 @@ var ts; pos++; numberOfDigits++; } + // Invalid binaryIntegerLiteral or octalIntegerLiteral if (numberOfDigits === 0) { return -1; } @@ -2811,30 +3072,31 @@ var ts; while (true) { tokenPos = pos; if (pos >= len) { - return token = 1; + return token = 1 /* EndOfFileToken */; } var ch = text.charCodeAt(pos); switch (ch) { - case 10: - case 13: + case 10 /* lineFeed */: + case 13 /* carriageReturn */: precedingLineBreak = true; if (skipTrivia) { pos++; continue; } else { - if (ch === 13 && pos + 1 < len && text.charCodeAt(pos + 1) === 10) { + if (ch === 13 /* carriageReturn */ && pos + 1 < len && text.charCodeAt(pos + 1) === 10 /* lineFeed */) { + // consume both CR and LF pos += 2; } else { pos++; } - return token = 4; + return token = 4 /* NewLineTrivia */; } - case 9: - case 11: - case 12: - case 32: + case 9 /* tab */: + case 11 /* verticalTab */: + case 12 /* formFeed */: + case 32 /* space */: if (skipTrivia) { pos++; continue; @@ -2843,73 +3105,74 @@ var ts; while (pos < len && isWhiteSpace(text.charCodeAt(pos))) { pos++; } - return token = 5; + return token = 5 /* WhitespaceTrivia */; } - case 33: - if (text.charCodeAt(pos + 1) === 61) { - if (text.charCodeAt(pos + 2) === 61) { - return pos += 3, token = 31; + case 33 /* exclamation */: + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + if (text.charCodeAt(pos + 2) === 61 /* equals */) { + return pos += 3, token = 31 /* ExclamationEqualsEqualsToken */; } - return pos += 2, token = 29; + return pos += 2, token = 29 /* ExclamationEqualsToken */; } - return pos++, token = 46; - case 34: - case 39: + return pos++, token = 46 /* ExclamationToken */; + case 34 /* doubleQuote */: + case 39 /* singleQuote */: tokenValue = scanString(); - return token = 8; - case 96: + return token = 8 /* StringLiteral */; + case 96 /* backtick */: return token = scanTemplateAndSetTokenValue(); - case 37: - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 58; + case 37 /* percent */: + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 58 /* PercentEqualsToken */; } - return pos++, token = 37; - case 38: - if (text.charCodeAt(pos + 1) === 38) { - return pos += 2, token = 48; + return pos++, token = 37 /* PercentToken */; + case 38 /* ampersand */: + if (text.charCodeAt(pos + 1) === 38 /* ampersand */) { + return pos += 2, token = 48 /* AmpersandAmpersandToken */; } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 62; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 62 /* AmpersandEqualsToken */; } - return pos++, token = 43; - case 40: - return pos++, token = 16; - case 41: - return pos++, token = 17; - case 42: - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 56; + return pos++, token = 43 /* AmpersandToken */; + case 40 /* openParen */: + return pos++, token = 16 /* OpenParenToken */; + case 41 /* closeParen */: + return pos++, token = 17 /* CloseParenToken */; + case 42 /* asterisk */: + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 56 /* AsteriskEqualsToken */; } - return pos++, token = 35; - case 43: - if (text.charCodeAt(pos + 1) === 43) { - return pos += 2, token = 38; + return pos++, token = 35 /* AsteriskToken */; + case 43 /* plus */: + if (text.charCodeAt(pos + 1) === 43 /* plus */) { + return pos += 2, token = 38 /* PlusPlusToken */; } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 54; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 54 /* PlusEqualsToken */; } - return pos++, token = 33; - case 44: - return pos++, token = 23; - case 45: - if (text.charCodeAt(pos + 1) === 45) { - return pos += 2, token = 39; + return pos++, token = 33 /* PlusToken */; + case 44 /* comma */: + return pos++, token = 23 /* CommaToken */; + case 45 /* minus */: + if (text.charCodeAt(pos + 1) === 45 /* minus */) { + return pos += 2, token = 39 /* MinusMinusToken */; } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 55; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 55 /* MinusEqualsToken */; } - return pos++, token = 34; - case 46: + return pos++, token = 34 /* MinusToken */; + case 46 /* dot */: if (isDigit(text.charCodeAt(pos + 1))) { tokenValue = "" + scanNumber(); - return token = 7; + return token = 7 /* NumericLiteral */; } - if (text.charCodeAt(pos + 1) === 46 && text.charCodeAt(pos + 2) === 46) { - return pos += 3, token = 21; + if (text.charCodeAt(pos + 1) === 46 /* dot */ && text.charCodeAt(pos + 2) === 46 /* dot */) { + return pos += 3, token = 21 /* DotDotDotToken */; } - return pos++, token = 20; - case 47: - if (text.charCodeAt(pos + 1) === 47) { + return pos++, token = 20 /* DotToken */; + case 47 /* slash */: + // Single-line comment + if (text.charCodeAt(pos + 1) === 47 /* slash */) { pos += 2; while (pos < len) { if (isLineBreak(text.charCodeAt(pos))) { @@ -2921,15 +3184,16 @@ var ts; continue; } else { - return token = 2; + return token = 2 /* SingleLineCommentTrivia */; } } - if (text.charCodeAt(pos + 1) === 42) { + // Multi-line comment + if (text.charCodeAt(pos + 1) === 42 /* asterisk */) { pos += 2; var commentClosed = false; while (pos < len) { var ch_2 = text.charCodeAt(pos); - if (ch_2 === 42 && text.charCodeAt(pos + 1) === 47) { + if (ch_2 === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) { pos += 2; commentClosed = true; break; @@ -2947,15 +3211,15 @@ var ts; } else { tokenIsUnterminated = !commentClosed; - return token = 3; + return token = 3 /* MultiLineCommentTrivia */; } } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 57; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 57 /* SlashEqualsToken */; } - return pos++, token = 36; - case 48: - if (pos + 2 < len && (text.charCodeAt(pos + 1) === 88 || text.charCodeAt(pos + 1) === 120)) { + return pos++, token = 36 /* SlashToken */; + case 48 /* _0 */: + if (pos + 2 < len && (text.charCodeAt(pos + 1) === 88 /* X */ || text.charCodeAt(pos + 1) === 120 /* x */)) { pos += 2; var value = scanMinimumNumberOfHexDigits(1); if (value < 0) { @@ -2963,9 +3227,9 @@ var ts; value = 0; } tokenValue = "" + value; - return token = 7; + return token = 7 /* NumericLiteral */; } - else if (pos + 2 < len && (text.charCodeAt(pos + 1) === 66 || text.charCodeAt(pos + 1) === 98)) { + else if (pos + 2 < len && (text.charCodeAt(pos + 1) === 66 /* B */ || text.charCodeAt(pos + 1) === 98 /* b */)) { pos += 2; var value = scanBinaryOrOctalDigits(2); if (value < 0) { @@ -2973,9 +3237,9 @@ var ts; value = 0; } tokenValue = "" + value; - return token = 7; + return token = 7 /* NumericLiteral */; } - else if (pos + 2 < len && (text.charCodeAt(pos + 1) === 79 || text.charCodeAt(pos + 1) === 111)) { + else if (pos + 2 < len && (text.charCodeAt(pos + 1) === 79 /* O */ || text.charCodeAt(pos + 1) === 111 /* o */)) { pos += 2; var value = scanBinaryOrOctalDigits(8); if (value < 0) { @@ -2983,106 +3247,110 @@ var ts; value = 0; } tokenValue = "" + value; - return token = 7; + return token = 7 /* NumericLiteral */; } + // Try to parse as an octal if (pos + 1 < len && isOctalDigit(text.charCodeAt(pos + 1))) { tokenValue = "" + scanOctalDigits(); - return token = 7; + return token = 7 /* NumericLiteral */; } - case 49: - case 50: - case 51: - case 52: - case 53: - case 54: - case 55: - case 56: - case 57: + // This fall-through is a deviation from the EcmaScript grammar. The grammar says that a leading zero + // can only be followed by an octal digit, a dot, or the end of the number literal. However, we are being + // permissive and allowing decimal digits of the form 08* and 09* (which many browsers also do). + case 49 /* _1 */: + case 50 /* _2 */: + case 51 /* _3 */: + case 52 /* _4 */: + case 53 /* _5 */: + case 54 /* _6 */: + case 55 /* _7 */: + case 56 /* _8 */: + case 57 /* _9 */: tokenValue = "" + scanNumber(); - return token = 7; - case 58: - return pos++, token = 51; - case 59: - return pos++, token = 22; - case 60: + return token = 7 /* NumericLiteral */; + case 58 /* colon */: + return pos++, token = 51 /* ColonToken */; + case 59 /* semicolon */: + return pos++, token = 22 /* SemicolonToken */; + case 60 /* lessThan */: if (isConflictMarkerTrivia(text, pos)) { pos = scanConflictMarkerTrivia(text, pos, error); if (skipTrivia) { continue; } else { - return token = 6; + return token = 6 /* ConflictMarkerTrivia */; } } - if (text.charCodeAt(pos + 1) === 60) { - if (text.charCodeAt(pos + 2) === 61) { - return pos += 3, token = 59; + if (text.charCodeAt(pos + 1) === 60 /* lessThan */) { + if (text.charCodeAt(pos + 2) === 61 /* equals */) { + return pos += 3, token = 59 /* LessThanLessThanEqualsToken */; } - return pos += 2, token = 40; + return pos += 2, token = 40 /* LessThanLessThanToken */; } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 26; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 26 /* LessThanEqualsToken */; } - return pos++, token = 24; - case 61: + return pos++, token = 24 /* LessThanToken */; + case 61 /* equals */: if (isConflictMarkerTrivia(text, pos)) { pos = scanConflictMarkerTrivia(text, pos, error); if (skipTrivia) { continue; } else { - return token = 6; + return token = 6 /* ConflictMarkerTrivia */; } } - if (text.charCodeAt(pos + 1) === 61) { - if (text.charCodeAt(pos + 2) === 61) { - return pos += 3, token = 30; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + if (text.charCodeAt(pos + 2) === 61 /* equals */) { + return pos += 3, token = 30 /* EqualsEqualsEqualsToken */; } - return pos += 2, token = 28; + return pos += 2, token = 28 /* EqualsEqualsToken */; } - if (text.charCodeAt(pos + 1) === 62) { - return pos += 2, token = 32; + if (text.charCodeAt(pos + 1) === 62 /* greaterThan */) { + return pos += 2, token = 32 /* EqualsGreaterThanToken */; } - return pos++, token = 53; - case 62: + return pos++, token = 53 /* EqualsToken */; + case 62 /* greaterThan */: if (isConflictMarkerTrivia(text, pos)) { pos = scanConflictMarkerTrivia(text, pos, error); if (skipTrivia) { continue; } else { - return token = 6; + return token = 6 /* ConflictMarkerTrivia */; } } - return pos++, token = 25; - case 63: - return pos++, token = 50; - case 91: - return pos++, token = 18; - case 93: - return pos++, token = 19; - case 94: - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 64; + return pos++, token = 25 /* GreaterThanToken */; + case 63 /* question */: + return pos++, token = 50 /* QuestionToken */; + case 91 /* openBracket */: + return pos++, token = 18 /* OpenBracketToken */; + case 93 /* closeBracket */: + return pos++, token = 19 /* CloseBracketToken */; + case 94 /* caret */: + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 64 /* CaretEqualsToken */; } - return pos++, token = 45; - case 123: - return pos++, token = 14; - case 124: - if (text.charCodeAt(pos + 1) === 124) { - return pos += 2, token = 49; + return pos++, token = 45 /* CaretToken */; + case 123 /* openBrace */: + return pos++, token = 14 /* OpenBraceToken */; + case 124 /* bar */: + if (text.charCodeAt(pos + 1) === 124 /* bar */) { + return pos += 2, token = 49 /* BarBarToken */; } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 63; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 63 /* BarEqualsToken */; } - return pos++, token = 44; - case 125: - return pos++, token = 15; - case 126: - return pos++, token = 47; - case 64: - return pos++, token = 52; - case 92: + return pos++, token = 44 /* BarToken */; + case 125 /* closeBrace */: + return pos++, token = 15 /* CloseBraceToken */; + case 126 /* tilde */: + return pos++, token = 47 /* TildeToken */; + case 64 /* at */: + return pos++, token = 52 /* AtToken */; + case 92 /* backslash */: var cookedChar = peekUnicodeEscape(); if (cookedChar >= 0 && isIdentifierStart(cookedChar)) { pos += 6; @@ -3090,14 +3358,14 @@ var ts; return token = getIdentifierToken(); } error(ts.Diagnostics.Invalid_character); - return pos++, token = 0; + return pos++, token = 0 /* Unknown */; default: if (isIdentifierStart(ch)) { pos++; while (pos < len && isIdentifierPart(ch = text.charCodeAt(pos))) pos++; tokenValue = text.substring(tokenPos, pos); - if (ch === 92) { + if (ch === 92 /* backslash */) { tokenValue += scanIdentifierParts(); } return token = getIdentifierToken(); @@ -3112,36 +3380,38 @@ var ts; continue; } error(ts.Diagnostics.Invalid_character); - return pos++, token = 0; + return pos++, token = 0 /* Unknown */; } } } function reScanGreaterToken() { - if (token === 25) { - if (text.charCodeAt(pos) === 62) { - if (text.charCodeAt(pos + 1) === 62) { - if (text.charCodeAt(pos + 2) === 61) { - return pos += 3, token = 61; + if (token === 25 /* GreaterThanToken */) { + if (text.charCodeAt(pos) === 62 /* greaterThan */) { + if (text.charCodeAt(pos + 1) === 62 /* greaterThan */) { + if (text.charCodeAt(pos + 2) === 61 /* equals */) { + return pos += 3, token = 61 /* GreaterThanGreaterThanGreaterThanEqualsToken */; } - return pos += 2, token = 42; + return pos += 2, token = 42 /* GreaterThanGreaterThanGreaterThanToken */; } - if (text.charCodeAt(pos + 1) === 61) { - return pos += 2, token = 60; + if (text.charCodeAt(pos + 1) === 61 /* equals */) { + return pos += 2, token = 60 /* GreaterThanGreaterThanEqualsToken */; } - return pos++, token = 41; + return pos++, token = 41 /* GreaterThanGreaterThanToken */; } - if (text.charCodeAt(pos) === 61) { - return pos++, token = 27; + if (text.charCodeAt(pos) === 61 /* equals */) { + return pos++, token = 27 /* GreaterThanEqualsToken */; } } return token; } function reScanSlashToken() { - if (token === 36 || token === 57) { + if (token === 36 /* SlashToken */ || token === 57 /* SlashEqualsToken */) { var p = tokenPos + 1; var inEscape = false; var inCharacterClass = false; while (true) { + // If we reach the end of a file, or hit a newline, then this is an unterminated + // regex. Report error and return what we have so far. if (p >= len) { tokenIsUnterminated = true; error(ts.Diagnostics.Unterminated_regular_expression_literal); @@ -3154,19 +3424,23 @@ var ts; break; } if (inEscape) { + // Parsing an escape character; + // reset the flag and just advance to the next char. inEscape = false; } - else if (ch === 47 && !inCharacterClass) { + else if (ch === 47 /* slash */ && !inCharacterClass) { + // A slash within a character class is permissible, + // but in general it signals the end of the regexp literal. p++; break; } - else if (ch === 91) { + else if (ch === 91 /* openBracket */) { inCharacterClass = true; } - else if (ch === 92) { + else if (ch === 92 /* backslash */) { inEscape = true; } - else if (ch === 93) { + else if (ch === 93 /* closeBracket */) { inCharacterClass = false; } p++; @@ -3176,12 +3450,15 @@ var ts; } pos = p; tokenValue = text.substring(tokenPos, pos); - token = 9; + token = 9 /* RegularExpressionLiteral */; } return token; } + /** + * Unconditionally back up and scan a template expression portion. + */ function reScanTemplateToken() { - ts.Debug.assert(token === 15, "'reScanTemplateToken' should only be called on a '}'"); + ts.Debug.assert(token === 15 /* CloseBraceToken */, "'reScanTemplateToken' should only be called on a '}'"); pos = tokenPos; return token = scanTemplateAndSetTokenValue(); } @@ -3193,6 +3470,8 @@ var ts; var saveTokenValue = tokenValue; var savePrecedingLineBreak = precedingLineBreak; var result = callback(); + // If our callback returned something 'falsy' or we're just looking ahead, + // then unconditionally restore us to where we were. if (!result || isLookahead) { pos = savePos; startPos = saveStartPos; @@ -3218,7 +3497,7 @@ var ts; pos = textPos; startPos = textPos; tokenPos = textPos; - token = 0; + token = 0 /* Unknown */; precedingLineBreak = false; } setText(text); @@ -3231,8 +3510,8 @@ var ts; getTokenValue: function () { return tokenValue; }, hasExtendedUnicodeEscape: function () { return hasExtendedUnicodeEscape; }, hasPrecedingLineBreak: function () { return precedingLineBreak; }, - isIdentifier: function () { return token === 65 || token > 101; }, - isReservedWord: function () { return token >= 66 && token <= 101; }, + isIdentifier: function () { return token === 65 /* Identifier */ || token > 101 /* LastReservedWord */; }, + isReservedWord: function () { return token >= 66 /* FirstReservedWord */ && token <= 101 /* LastReservedWord */; }, isUnterminated: function () { return tokenIsUnterminated; }, reScanGreaterToken: reScanGreaterToken, reScanSlashToken: reScanSlashToken, @@ -3247,6 +3526,7 @@ var ts; ts.createScanner = createScanner; })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { ts.bindTime = 0; @@ -3257,36 +3537,41 @@ var ts; })(ts.ModuleInstanceState || (ts.ModuleInstanceState = {})); var ModuleInstanceState = ts.ModuleInstanceState; function getModuleInstanceState(node) { - if (node.kind === 202 || node.kind === 203) { - return 0; + // A module is uninstantiated if it contains only + // 1. interface declarations, type alias declarations + if (node.kind === 202 /* InterfaceDeclaration */ || node.kind === 203 /* TypeAliasDeclaration */) { + return 0 /* NonInstantiated */; } else if (ts.isConstEnumDeclaration(node)) { - return 2; + return 2 /* ConstEnumOnly */; } - else if ((node.kind === 209 || node.kind === 208) && !(node.flags & 1)) { - return 0; + else if ((node.kind === 209 /* ImportDeclaration */ || node.kind === 208 /* ImportEqualsDeclaration */) && !(node.flags & 1 /* Export */)) { + return 0 /* NonInstantiated */; } - else if (node.kind === 206) { - var state = 0; + else if (node.kind === 206 /* ModuleBlock */) { + var state = 0 /* NonInstantiated */; ts.forEachChild(node, function (n) { switch (getModuleInstanceState(n)) { - case 0: + case 0 /* NonInstantiated */: + // child is non-instantiated - continue searching return false; - case 2: - state = 2; + case 2 /* ConstEnumOnly */: + // child is const enum only - record state and continue searching + state = 2 /* ConstEnumOnly */; return false; - case 1: - state = 1; + case 1 /* Instantiated */: + // child is instantiated - record state and stop + state = 1 /* Instantiated */; return true; } }); return state; } - else if (node.kind === 205) { + else if (node.kind === 205 /* ModuleDeclaration */) { return getModuleInstanceState(node.body); } else { - return 1; + return 1 /* Instantiated */; } } ts.getModuleInstanceState = getModuleInstanceState; @@ -3325,20 +3610,22 @@ var ts; if (!symbol.declarations) symbol.declarations = []; symbol.declarations.push(node); - if (symbolKind & 1952 && !symbol.exports) + if (symbolKind & 1952 /* HasExports */ && !symbol.exports) symbol.exports = {}; - if (symbolKind & 6240 && !symbol.members) + if (symbolKind & 6240 /* HasMembers */ && !symbol.members) symbol.members = {}; node.symbol = symbol; - if (symbolKind & 107455 && !symbol.valueDeclaration) + if (symbolKind & 107455 /* Value */ && !symbol.valueDeclaration) symbol.valueDeclaration = node; } + // Should not be called on a declaration with a computed property name, + // unless it is a well known Symbol. function getDeclarationName(node) { if (node.name) { - if (node.kind === 205 && node.name.kind === 8) { + if (node.kind === 205 /* ModuleDeclaration */ && node.name.kind === 8 /* StringLiteral */) { return '"' + node.name.text + '"'; } - if (node.name.kind === 127) { + if (node.name.kind === 127 /* ComputedPropertyName */) { var nameExpression = node.name.expression; ts.Debug.assert(ts.isWellKnownSymbolSyntactically(nameExpression)); return ts.getPropertyNameForKnownSymbolName(nameExpression.name.text); @@ -3346,23 +3633,23 @@ var ts; return node.name.text; } switch (node.kind) { - case 143: - case 135: + case 143 /* ConstructorType */: + case 135 /* Constructor */: return "__constructor"; - case 142: - case 138: + case 142 /* FunctionType */: + case 138 /* CallSignature */: return "__call"; - case 139: + case 139 /* ConstructSignature */: return "__new"; - case 140: + case 140 /* IndexSignature */: return "__index"; - case 215: + case 215 /* ExportDeclaration */: return "__export"; - case 214: + case 214 /* ExportAssignment */: return node.isExportEquals ? "export=" : "default"; - case 200: - case 201: - return node.flags & 256 ? "default" : undefined; + case 200 /* FunctionDeclaration */: + case 201 /* ClassDeclaration */: + return node.flags & 256 /* Default */ ? "default" : undefined; } } function getDisplayName(node) { @@ -3370,7 +3657,8 @@ var ts; } function declareSymbol(symbols, parent, node, includes, excludes) { ts.Debug.assert(!ts.hasDynamicName(node)); - var name = node.flags & 256 && parent ? "default" : getDeclarationName(node); + // The exported symbol for an export default function/class node is always named "default" + var name = node.flags & 256 /* Default */ && parent ? "default" : getDeclarationName(node); var symbol; if (name !== undefined) { symbol = ts.hasProperty(symbols, name) ? symbols[name] : (symbols[name] = createSymbol(0, name)); @@ -3378,7 +3666,9 @@ var ts; if (node.name) { node.name.parent = node; } - var message = symbol.flags & 2 + // Report errors every position with duplicate declaration + // Report errors on previous encountered declarations + var message = symbol.flags & 2 /* BlockScopedVariable */ ? ts.Diagnostics.Cannot_redeclare_block_scoped_variable_0 : ts.Diagnostics.Duplicate_identifier_0; ts.forEach(symbol.declarations, function (declaration) { @@ -3393,8 +3683,12 @@ var ts; } addDeclarationToSymbol(symbol, node, includes); symbol.parent = parent; - if ((node.kind === 201 || node.kind === 174) && symbol.exports) { - var prototypeSymbol = createSymbol(4 | 134217728, "prototype"); + if ((node.kind === 201 /* ClassDeclaration */ || node.kind === 174 /* ClassExpression */) && symbol.exports) { + // TypeScript 1.0 spec (April 2014): 8.4 + // Every class automatically contains a static property member named 'prototype', + // the type of which is an instantiation of the class type with type Any supplied as a type argument for each type parameter. + // It is an error to explicitly declare a static property member with the name 'prototype'. + var prototypeSymbol = createSymbol(4 /* Property */ | 134217728 /* Prototype */, "prototype"); if (ts.hasProperty(symbol.exports, prototypeSymbol.name)) { if (node.name) { node.name.parent = node; @@ -3407,9 +3701,9 @@ var ts; return symbol; } function declareModuleMember(node, symbolKind, symbolExcludes) { - var hasExportModifier = ts.getCombinedNodeFlags(node) & 1; - if (symbolKind & 8388608) { - if (node.kind === 217 || (node.kind === 208 && hasExportModifier)) { + var hasExportModifier = ts.getCombinedNodeFlags(node) & 1 /* Export */; + if (symbolKind & 8388608 /* Alias */) { + if (node.kind === 217 /* ExportSpecifier */ || (node.kind === 208 /* ImportEqualsDeclaration */ && hasExportModifier)) { declareSymbol(container.symbol.exports, container.symbol, node, symbolKind, symbolExcludes); } else { @@ -3417,10 +3711,21 @@ var ts; } } else { - if (hasExportModifier || container.flags & 32768) { - var exportKind = (symbolKind & 107455 ? 1048576 : 0) | - (symbolKind & 793056 ? 2097152 : 0) | - (symbolKind & 1536 ? 4194304 : 0); + // Exported module members are given 2 symbols: A local symbol that is classified with an ExportValue, + // ExportType, or ExportContainer flag, and an associated export symbol with all the correct flags set + // on it. There are 2 main reasons: + // + // 1. We treat locals and exports of the same name as mutually exclusive within a container. + // That means the binder will issue a Duplicate Identifier error if you mix locals and exports + // with the same name in the same container. + // TODO: Make this a more specific error and decouple it from the exclusion logic. + // 2. When we checkIdentifier in the checker, we set its resolved symbol to the local symbol, + // but return the export symbol (by calling getExportSymbolOfValueSymbolIfExported). That way + // when the emitter comes back to it, it knows not to qualify the name if it was found in a containing scope. + if (hasExportModifier || container.flags & 32768 /* ExportContext */) { + var exportKind = (symbolKind & 107455 /* Value */ ? 1048576 /* ExportValue */ : 0) | + (symbolKind & 793056 /* Type */ ? 2097152 /* ExportType */ : 0) | + (symbolKind & 1536 /* Namespace */ ? 4194304 /* ExportNamespace */ : 0); var local = declareSymbol(container.locals, undefined, node, exportKind, symbolExcludes); local.exportSymbol = declareSymbol(container.symbol.exports, container.symbol, node, symbolKind, symbolExcludes); node.localSymbol = local; @@ -3430,15 +3735,17 @@ var ts; } } } + // All container nodes are kept on a linked list in declaration order. This list is used by the getLocalNameOfContainer function + // in the type checker to validate that the local name used for a container is unique. function bindChildren(node, symbolKind, isBlockScopeContainer) { - if (symbolKind & 255504) { + if (symbolKind & 255504 /* HasLocals */) { node.locals = {}; } var saveParent = parent; var saveContainer = container; var savedBlockScopeContainer = blockScopeContainer; parent = node; - if (symbolKind & 262128) { + if (symbolKind & 262128 /* IsContainer */) { container = node; if (lastContainer) { lastContainer.nextContainer = container; @@ -3446,7 +3753,13 @@ var ts; lastContainer = container; } if (isBlockScopeContainer) { - setBlockScopeContainer(node, (symbolKind & 255504) === 0 && node.kind !== 227); + // in incremental scenarios we might reuse nodes that already have locals being allocated + // during the bind step these locals should be dropped to prevent using stale data. + // locals should always be dropped unless they were previously initialized by the binder + // these cases are: + // - node has locals (symbolKind & HasLocals) !== 0 + // - node is a source file + setBlockScopeContainer(node, (symbolKind & 255504 /* HasLocals */) === 0 && node.kind !== 227 /* SourceFile */); } ts.forEachChild(node, bind); container = saveContainer; @@ -3455,41 +3768,41 @@ var ts; } function bindDeclaration(node, symbolKind, symbolExcludes, isBlockScopeContainer) { switch (container.kind) { - case 205: + case 205 /* ModuleDeclaration */: declareModuleMember(node, symbolKind, symbolExcludes); break; - case 227: + case 227 /* SourceFile */: if (ts.isExternalModule(container)) { declareModuleMember(node, symbolKind, symbolExcludes); break; } - case 142: - case 143: - case 138: - case 139: - case 140: - case 134: - case 133: - case 135: - case 136: - case 137: - case 200: - case 162: - case 163: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: declareSymbol(container.locals, undefined, node, symbolKind, symbolExcludes); break; - case 174: - case 201: - if (node.flags & 128) { + case 174 /* ClassExpression */: + case 201 /* ClassDeclaration */: + if (node.flags & 128 /* Static */) { declareSymbol(container.symbol.exports, container.symbol, node, symbolKind, symbolExcludes); break; } - case 145: - case 154: - case 202: + case 145 /* TypeLiteral */: + case 154 /* ObjectLiteralExpression */: + case 202 /* InterfaceDeclaration */: declareSymbol(container.symbol.members, container.symbol, node, symbolKind, symbolExcludes); break; - case 204: + case 204 /* EnumDeclaration */: declareSymbol(container.symbol.exports, container.symbol, node, symbolKind, symbolExcludes); break; } @@ -3497,18 +3810,18 @@ var ts; } function isAmbientContext(node) { while (node) { - if (node.flags & 2) + if (node.flags & 2 /* Ambient */) return true; node = node.parent; } return false; } function hasExportDeclarations(node) { - var body = node.kind === 227 ? node : node.body; - if (body.kind === 227 || body.kind === 206) { + var body = node.kind === 227 /* SourceFile */ ? node : node.body; + if (body.kind === 227 /* SourceFile */ || body.kind === 206 /* ModuleBlock */) { for (var _i = 0, _a = body.statements; _i < _a.length; _i++) { var stat = _a[_i]; - if (stat.kind === 215 || stat.kind === 214) { + if (stat.kind === 215 /* ExportDeclaration */ || stat.kind === 214 /* ExportAssignment */) { return true; } } @@ -3516,30 +3829,34 @@ var ts; return false; } function setExportContextFlag(node) { + // A declaration source file or ambient module declaration that contains no export declarations (but possibly regular + // declarations with export modifiers) is an export context in which declarations are implicitly exported. if (isAmbientContext(node) && !hasExportDeclarations(node)) { - node.flags |= 32768; + node.flags |= 32768 /* ExportContext */; } else { - node.flags &= ~32768; + node.flags &= ~32768 /* ExportContext */; } } function bindModuleDeclaration(node) { setExportContextFlag(node); - if (node.name.kind === 8) { - bindDeclaration(node, 512, 106639, true); + if (node.name.kind === 8 /* StringLiteral */) { + bindDeclaration(node, 512 /* ValueModule */, 106639 /* ValueModuleExcludes */, true); } else { var state = getModuleInstanceState(node); - if (state === 0) { - bindDeclaration(node, 1024, 0, true); + if (state === 0 /* NonInstantiated */) { + bindDeclaration(node, 1024 /* NamespaceModule */, 0 /* NamespaceModuleExcludes */, true); } else { - bindDeclaration(node, 512, 106639, true); - var currentModuleIsConstEnumOnly = state === 2; + bindDeclaration(node, 512 /* ValueModule */, 106639 /* ValueModuleExcludes */, true); + var currentModuleIsConstEnumOnly = state === 2 /* ConstEnumOnly */; if (node.symbol.constEnumOnlyModule === undefined) { + // non-merged case - use the current state node.symbol.constEnumOnlyModule = currentModuleIsConstEnumOnly; } else { + // merged case: module is const enum only if all its pieces are non-instantiated or const enum node.symbol.constEnumOnlyModule = node.symbol.constEnumOnlyModule && currentModuleIsConstEnumOnly; } } @@ -3552,13 +3869,13 @@ var ts; // We do that by making an anonymous type literal symbol, and then setting the function // symbol as its sole member. To the rest of the system, this symbol will be indistinguishable // from an actual type literal symbol you would have gotten had you used the long form. - var symbol = createSymbol(131072, getDeclarationName(node)); - addDeclarationToSymbol(symbol, node, 131072); - bindChildren(node, 131072, false); - var typeLiteralSymbol = createSymbol(2048, "__type"); - addDeclarationToSymbol(typeLiteralSymbol, node, 2048); + var symbol = createSymbol(131072 /* Signature */, getDeclarationName(node)); + addDeclarationToSymbol(symbol, node, 131072 /* Signature */); + bindChildren(node, 131072 /* Signature */, false); + var typeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, "__type"); + addDeclarationToSymbol(typeLiteralSymbol, node, 2048 /* TypeLiteral */); typeLiteralSymbol.members = {}; - typeLiteralSymbol.members[node.kind === 142 ? "__call" : "__new"] = symbol; + typeLiteralSymbol.members[node.kind === 142 /* FunctionType */ ? "__call" : "__new"] = symbol; } function bindAnonymousDeclaration(node, symbolKind, name, isBlockScopeContainer) { var symbol = createSymbol(symbolKind, name); @@ -3568,23 +3885,27 @@ var ts; function bindCatchVariableDeclaration(node) { bindChildren(node, 0, true); } - function bindBlockScopedVariableDeclaration(node) { + function bindBlockScopedDeclaration(node, symbolKind, symbolExcludes) { switch (blockScopeContainer.kind) { - case 205: - declareModuleMember(node, 2, 107455); + case 205 /* ModuleDeclaration */: + declareModuleMember(node, symbolKind, symbolExcludes); break; - case 227: + case 227 /* SourceFile */: if (ts.isExternalModule(container)) { - declareModuleMember(node, 2, 107455); + declareModuleMember(node, symbolKind, symbolExcludes); break; } + // fall through. default: if (!blockScopeContainer.locals) { blockScopeContainer.locals = {}; } - declareSymbol(blockScopeContainer.locals, undefined, node, 2, 107455); + declareSymbol(blockScopeContainer.locals, undefined, node, symbolKind, symbolExcludes); } - bindChildren(node, 2, false); + bindChildren(node, symbolKind, false); + } + function bindBlockScopedVariableDeclaration(node) { + bindBlockScopedDeclaration(node, 2 /* BlockScopedVariable */, 107455 /* BlockScopedVariableExcludes */); } function getDestructuringParameterName(node) { return "__" + ts.indexOf(node.parent.parameters, node); @@ -3592,14 +3913,14 @@ var ts; function bind(node) { node.parent = parent; switch (node.kind) { - case 128: - bindDeclaration(node, 262144, 530912, false); + case 128 /* TypeParameter */: + bindDeclaration(node, 262144 /* TypeParameter */, 530912 /* TypeParameterExcludes */, false); break; - case 129: + case 129 /* Parameter */: bindParameter(node); break; - case 198: - case 152: + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: if (ts.isBindingPattern(node.name)) { bindChildren(node, 0, false); } @@ -3607,124 +3928,139 @@ var ts; bindBlockScopedVariableDeclaration(node); } else { - bindDeclaration(node, 1, 107454, false); + bindDeclaration(node, 1 /* FunctionScopedVariable */, 107454 /* FunctionScopedVariableExcludes */, false); } break; - case 132: - case 131: - bindPropertyOrMethodOrAccessor(node, 4 | (node.questionToken ? 536870912 : 0), 107455, false); + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + bindPropertyOrMethodOrAccessor(node, 4 /* Property */ | (node.questionToken ? 536870912 /* Optional */ : 0), 107455 /* PropertyExcludes */, false); break; - case 224: - case 225: - bindPropertyOrMethodOrAccessor(node, 4, 107455, false); + case 224 /* PropertyAssignment */: + case 225 /* ShorthandPropertyAssignment */: + bindPropertyOrMethodOrAccessor(node, 4 /* Property */, 107455 /* PropertyExcludes */, false); break; - case 226: - bindPropertyOrMethodOrAccessor(node, 8, 107455, false); + case 226 /* EnumMember */: + bindPropertyOrMethodOrAccessor(node, 8 /* EnumMember */, 107455 /* EnumMemberExcludes */, false); break; - case 138: - case 139: - case 140: - bindDeclaration(node, 131072, 0, false); + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: + bindDeclaration(node, 131072 /* Signature */, 0, false); break; - case 134: - case 133: - bindPropertyOrMethodOrAccessor(node, 8192 | (node.questionToken ? 536870912 : 0), ts.isObjectLiteralMethod(node) ? 107455 : 99263, true); + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + // If this is an ObjectLiteralExpression method, then it sits in the same space + // as other properties in the object literal. So we use SymbolFlags.PropertyExcludes + // so that it will conflict with any other object literal members with the same + // name. + bindPropertyOrMethodOrAccessor(node, 8192 /* Method */ | (node.questionToken ? 536870912 /* Optional */ : 0), ts.isObjectLiteralMethod(node) ? 107455 /* PropertyExcludes */ : 99263 /* MethodExcludes */, true); break; - case 200: - bindDeclaration(node, 16, 106927, true); + case 200 /* FunctionDeclaration */: + bindDeclaration(node, 16 /* Function */, 106927 /* FunctionExcludes */, true); break; - case 135: - bindDeclaration(node, 16384, 0, true); + case 135 /* Constructor */: + bindDeclaration(node, 16384 /* Constructor */, 0, true); break; - case 136: - bindPropertyOrMethodOrAccessor(node, 32768, 41919, true); + case 136 /* GetAccessor */: + bindPropertyOrMethodOrAccessor(node, 32768 /* GetAccessor */, 41919 /* GetAccessorExcludes */, true); break; - case 137: - bindPropertyOrMethodOrAccessor(node, 65536, 74687, true); + case 137 /* SetAccessor */: + bindPropertyOrMethodOrAccessor(node, 65536 /* SetAccessor */, 74687 /* SetAccessorExcludes */, true); break; - case 142: - case 143: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: bindFunctionOrConstructorType(node); break; - case 145: - bindAnonymousDeclaration(node, 2048, "__type", false); + case 145 /* TypeLiteral */: + bindAnonymousDeclaration(node, 2048 /* TypeLiteral */, "__type", false); break; - case 154: - bindAnonymousDeclaration(node, 4096, "__object", false); + case 154 /* ObjectLiteralExpression */: + bindAnonymousDeclaration(node, 4096 /* ObjectLiteral */, "__object", false); break; - case 162: - case 163: - bindAnonymousDeclaration(node, 16, "__function", true); + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + bindAnonymousDeclaration(node, 16 /* Function */, "__function", true); break; - case 174: - bindAnonymousDeclaration(node, 32, "__class", false); + case 174 /* ClassExpression */: + bindAnonymousDeclaration(node, 32 /* Class */, "__class", false); break; - case 223: + case 223 /* CatchClause */: bindCatchVariableDeclaration(node); break; - case 201: - bindDeclaration(node, 32, 899583, false); + case 201 /* ClassDeclaration */: + bindBlockScopedDeclaration(node, 32 /* Class */, 899583 /* ClassExcludes */); break; - case 202: - bindDeclaration(node, 64, 792992, false); + case 202 /* InterfaceDeclaration */: + bindDeclaration(node, 64 /* Interface */, 792992 /* InterfaceExcludes */, false); break; - case 203: - bindDeclaration(node, 524288, 793056, false); + case 203 /* TypeAliasDeclaration */: + bindDeclaration(node, 524288 /* TypeAlias */, 793056 /* TypeAliasExcludes */, false); break; - case 204: + case 204 /* EnumDeclaration */: if (ts.isConst(node)) { - bindDeclaration(node, 128, 899967, false); + bindDeclaration(node, 128 /* ConstEnum */, 899967 /* ConstEnumExcludes */, false); } else { - bindDeclaration(node, 256, 899327, false); + bindDeclaration(node, 256 /* RegularEnum */, 899327 /* RegularEnumExcludes */, false); } break; - case 205: + case 205 /* ModuleDeclaration */: bindModuleDeclaration(node); break; - case 208: - case 211: - case 213: - case 217: - bindDeclaration(node, 8388608, 8388608, false); + case 208 /* ImportEqualsDeclaration */: + case 211 /* NamespaceImport */: + case 213 /* ImportSpecifier */: + case 217 /* ExportSpecifier */: + bindDeclaration(node, 8388608 /* Alias */, 8388608 /* AliasExcludes */, false); break; - case 210: + case 210 /* ImportClause */: if (node.name) { - bindDeclaration(node, 8388608, 8388608, false); + bindDeclaration(node, 8388608 /* Alias */, 8388608 /* AliasExcludes */, false); } else { bindChildren(node, 0, false); } break; - case 215: + case 215 /* ExportDeclaration */: if (!node.exportClause) { - declareSymbol(container.symbol.exports, container.symbol, node, 1073741824, 0); + // All export * declarations are collected in an __export symbol + declareSymbol(container.symbol.exports, container.symbol, node, 1073741824 /* ExportStar */, 0); } bindChildren(node, 0, false); break; - case 214: - if (node.expression && node.expression.kind === 65) { - declareSymbol(container.symbol.exports, container.symbol, node, 8388608, 107455 | 8388608); + case 214 /* ExportAssignment */: + if (node.expression.kind === 65 /* Identifier */) { + // An export default clause with an identifier exports all meanings of that identifier + declareSymbol(container.symbol.exports, container.symbol, node, 8388608 /* Alias */, 107455 /* PropertyExcludes */ | 8388608 /* AliasExcludes */); } else { - declareSymbol(container.symbol.exports, container.symbol, node, 4, 107455 | 8388608); + // An export default clause with an expression exports a value + declareSymbol(container.symbol.exports, container.symbol, node, 4 /* Property */, 107455 /* PropertyExcludes */ | 8388608 /* AliasExcludes */); } bindChildren(node, 0, false); break; - case 227: + case 227 /* SourceFile */: setExportContextFlag(node); if (ts.isExternalModule(node)) { - bindAnonymousDeclaration(node, 512, '"' + ts.removeFileExtension(node.fileName) + '"', true); + bindAnonymousDeclaration(node, 512 /* ValueModule */, '"' + ts.removeFileExtension(node.fileName) + '"', true); break; } - case 179: + case 179 /* Block */: + // do not treat function block a block-scope container + // all block-scope locals that reside in this block should go to the function locals. + // Otherwise this won't be considered as redeclaration of a block scoped local: + // function foo() { + // let x; + // let x; + // } + // 'let x' will be placed into the function locals and 'let x' - into the locals of the block bindChildren(node, 0, !ts.isFunctionLike(node.parent)); break; - case 223: - case 186: - case 187: - case 188: - case 207: + case 223 /* CatchClause */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 207 /* CaseBlock */: bindChildren(node, 0, true); break; default: @@ -3736,16 +4072,18 @@ var ts; } function bindParameter(node) { if (ts.isBindingPattern(node.name)) { - bindAnonymousDeclaration(node, 1, getDestructuringParameterName(node), false); + bindAnonymousDeclaration(node, 1 /* FunctionScopedVariable */, getDestructuringParameterName(node), false); } else { - bindDeclaration(node, 1, 107455, false); + bindDeclaration(node, 1 /* FunctionScopedVariable */, 107455 /* ParameterExcludes */, false); } - if (node.flags & 112 && - node.parent.kind === 135 && - (node.parent.parent.kind === 201 || node.parent.parent.kind === 174)) { + // If this is a property-parameter, then also declare the property symbol into the + // containing class. + if (node.flags & 112 /* AccessibilityModifier */ && + node.parent.kind === 135 /* Constructor */ && + (node.parent.parent.kind === 201 /* ClassDeclaration */ || node.parent.parent.kind === 174 /* ClassExpression */)) { var classDeclaration = node.parent.parent; - declareSymbol(classDeclaration.symbol.members, classDeclaration.symbol, node, 4, 107455); + declareSymbol(classDeclaration.symbol.members, classDeclaration.symbol, node, 4 /* Property */, 107455 /* PropertyExcludes */); } } function bindPropertyOrMethodOrAccessor(node, symbolKind, symbolExcludes, isBlockScopeContainer) { @@ -3759,6 +4097,7 @@ var ts; } })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { function getDeclarationOfKind(symbol, kind) { @@ -3772,6 +4111,7 @@ var ts; return undefined; } ts.getDeclarationOfKind = getDeclarationOfKind; + // Pool writers to avoid needing to allocate them for every symbol we write. var stringWriters = []; function getSingleLineStringWriter() { if (stringWriters.length == 0) { @@ -3786,6 +4126,8 @@ var ts; writeStringLiteral: writeText, writeParameter: writeText, writeSymbol: writeText, + // Completely ignore indentation for string writers. And map newlines to + // a single space. writeLine: function () { return str += " "; }, increaseIndent: function () { }, decreaseIndent: function () { }, @@ -3805,23 +4147,31 @@ var ts; return node.end - node.pos; } ts.getFullWidth = getFullWidth; + // Returns true if this node contains a parse error anywhere underneath it. function containsParseError(node) { aggregateChildData(node); - return (node.parserContextFlags & 64) !== 0; + return (node.parserContextFlags & 64 /* ThisNodeOrAnySubNodesHasError */) !== 0; } ts.containsParseError = containsParseError; function aggregateChildData(node) { - if (!(node.parserContextFlags & 128)) { - var thisNodeOrAnySubNodesHasError = ((node.parserContextFlags & 32) !== 0) || + if (!(node.parserContextFlags & 128 /* HasAggregatedChildData */)) { + // A node is considered to contain a parse error if: + // a) the parser explicitly marked that it had an error + // b) any of it's children reported that it had an error. + var thisNodeOrAnySubNodesHasError = ((node.parserContextFlags & 32 /* ThisNodeHasError */) !== 0) || ts.forEachChild(node, containsParseError); + // If so, mark ourselves accordingly. if (thisNodeOrAnySubNodesHasError) { - node.parserContextFlags |= 64; + node.parserContextFlags |= 64 /* ThisNodeOrAnySubNodesHasError */; } - node.parserContextFlags |= 128; + // Also mark that we've propogated the child information to this node. This way we can + // always consult the bit directly on this node without needing to check its children + // again. + node.parserContextFlags |= 128 /* HasAggregatedChildData */; } } function getSourceFileOfNode(node) { - while (node && node.kind !== 227) { + while (node && node.kind !== 227 /* SourceFile */) { node = node.parent; } return node; @@ -3832,6 +4182,7 @@ var ts; return ts.getLineStarts(sourceFile)[line]; } ts.getStartPositionOfLine = getStartPositionOfLine; + // This is a useful function for debugging purposes. function nodePosToString(node) { var file = getSourceFileOfNode(node); var loc = ts.getLineAndCharacterOfPosition(file, node.pos); @@ -3842,11 +4193,23 @@ var ts; return node.pos; } ts.getStartPosOfNode = getStartPosOfNode; + // Returns true if this node is missing from the actual source code. 'missing' is different + // from 'undefined/defined'. When a node is undefined (which can happen for optional nodes + // in the tree), it is definitel missing. HOwever, a node may be defined, but still be + // missing. This happens whenever the parser knows it needs to parse something, but can't + // get anything in the source code that it expects at that location. For example: + // + // let a: ; + // + // Here, the Type in the Type-Annotation is not-optional (as there is a colon in the source + // code). So the parser will attempt to parse out a type, and will create an actual node. + // However, this node will be 'missing' in the sense that no actual source-code/tokens are + // contained within it. function nodeIsMissing(node) { if (!node) { return true; } - return node.pos === node.end && node.kind !== 1; + return node.pos === node.end && node.kind !== 1 /* EndOfFileToken */; } ts.nodeIsMissing = nodeIsMissing; function nodeIsPresent(node) { @@ -3854,12 +4217,21 @@ var ts; } ts.nodeIsPresent = nodeIsPresent; function getTokenPosOfNode(node, sourceFile) { + // With nodes that have no width (i.e. 'Missing' nodes), we actually *don't* + // want to skip trivia because this will launch us forward to the next token. if (nodeIsMissing(node)) { return node.pos; } return ts.skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.pos); } ts.getTokenPosOfNode = getTokenPosOfNode; + function getNonDecoratorTokenPosOfNode(node, sourceFile) { + if (nodeIsMissing(node) || !node.decorators) { + return getTokenPosOfNode(node, sourceFile); + } + return ts.skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.decorators.end); + } + ts.getNonDecoratorTokenPosOfNode = getNonDecoratorTokenPosOfNode; function getSourceTextOfNodeFromSourceFile(sourceFile, node) { if (nodeIsMissing(node)) { return ""; @@ -3879,20 +4251,24 @@ var ts; return getSourceTextOfNodeFromSourceFile(getSourceFileOfNode(node), node); } ts.getTextOfNode = getTextOfNode; + // Add an extra underscore to identifiers that start with two underscores to avoid issues with magic names like '__proto__' function escapeIdentifier(identifier) { - return identifier.length >= 2 && identifier.charCodeAt(0) === 95 && identifier.charCodeAt(1) === 95 ? "_" + identifier : identifier; + return identifier.length >= 2 && identifier.charCodeAt(0) === 95 /* _ */ && identifier.charCodeAt(1) === 95 /* _ */ ? "_" + identifier : identifier; } ts.escapeIdentifier = escapeIdentifier; + // Remove extra underscore from escaped identifier function unescapeIdentifier(identifier) { - return identifier.length >= 3 && identifier.charCodeAt(0) === 95 && identifier.charCodeAt(1) === 95 && identifier.charCodeAt(2) === 95 ? identifier.substr(1) : identifier; + return identifier.length >= 3 && identifier.charCodeAt(0) === 95 /* _ */ && identifier.charCodeAt(1) === 95 /* _ */ && identifier.charCodeAt(2) === 95 /* _ */ ? identifier.substr(1) : identifier; } ts.unescapeIdentifier = unescapeIdentifier; + // Make an identifier from an external module name by extracting the string after the last "/" and replacing + // all non-alphanumeric characters with underscores function makeIdentifierFromModuleName(moduleName) { return ts.getBaseFileName(moduleName).replace(/\W/g, "_"); } ts.makeIdentifierFromModuleName = makeIdentifierFromModuleName; function isBlockOrCatchScoped(declaration) { - return (getCombinedNodeFlags(declaration) & 12288) !== 0 || + return (getCombinedNodeFlags(declaration) & 12288 /* BlockScoped */) !== 0 || isCatchClauseVariableDeclaration(declaration); } ts.isBlockOrCatchScoped = isBlockOrCatchScoped; @@ -3903,15 +4279,17 @@ var ts; return current; } switch (current.kind) { - case 227: - case 207: - case 223: - case 205: - case 186: - case 187: - case 188: + case 227 /* SourceFile */: + case 207 /* CaseBlock */: + case 223 /* CatchClause */: + case 205 /* ModuleDeclaration */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: return current; - case 179: + case 179 /* Block */: + // function block is not considered block-scope container + // see comment in binder.ts: bind(...), case for SyntaxKind.Block if (!isFunctionLike(current.parent)) { return current; } @@ -3922,11 +4300,14 @@ var ts; ts.getEnclosingBlockScopeContainer = getEnclosingBlockScopeContainer; function isCatchClauseVariableDeclaration(declaration) { return declaration && - declaration.kind === 198 && + declaration.kind === 198 /* VariableDeclaration */ && declaration.parent && - declaration.parent.kind === 223; + declaration.parent.kind === 223 /* CatchClause */; } ts.isCatchClauseVariableDeclaration = isCatchClauseVariableDeclaration; + // Return display name of an identifier + // Computed property names will just be emitted as "[]", where is the source + // text of the expression in the computed property. function declarationNameToString(name) { return getFullWidth(name) === 0 ? "(Missing)" : getTextOfNode(name); } @@ -3950,6 +4331,7 @@ var ts; }; } ts.createDiagnosticForNodeFromMessageChain = createDiagnosticForNodeFromMessageChain; + /* @internal */ function getSpanOfTokenAtPosition(sourceFile, pos) { var scanner = ts.createScanner(sourceFile.languageVersion, true, sourceFile.text); scanner.setTextPos(pos); @@ -3961,26 +4343,31 @@ var ts; function getErrorSpanForNode(sourceFile, node) { var errorNode = node; switch (node.kind) { - case 227: + case 227 /* SourceFile */: var pos_1 = ts.skipTrivia(sourceFile.text, 0, false); if (pos_1 === sourceFile.text.length) { + // file is empty - return span for the beginning of the file return createTextSpan(0, 0); } return getSpanOfTokenAtPosition(sourceFile, pos_1); - case 198: - case 152: - case 201: - case 174: - case 202: - case 205: - case 204: - case 226: - case 200: - case 162: + // This list is a work in progress. Add missing node kinds to improve their error + // spans. + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: + case 201 /* ClassDeclaration */: + case 174 /* ClassExpression */: + case 202 /* InterfaceDeclaration */: + case 205 /* ModuleDeclaration */: + case 204 /* EnumDeclaration */: + case 226 /* EnumMember */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: errorNode = node.name; break; } if (errorNode === undefined) { + // If we don't have a better node, then just set the error on the first token of + // construct. return getSpanOfTokenAtPosition(sourceFile, node.pos); } var pos = nodeIsMissing(errorNode) @@ -3994,49 +4381,61 @@ var ts; } ts.isExternalModule = isExternalModule; function isDeclarationFile(file) { - return (file.flags & 2048) !== 0; + return (file.flags & 2048 /* DeclarationFile */) !== 0; } ts.isDeclarationFile = isDeclarationFile; function isConstEnumDeclaration(node) { - return node.kind === 204 && isConst(node); + return node.kind === 204 /* EnumDeclaration */ && isConst(node); } ts.isConstEnumDeclaration = isConstEnumDeclaration; function walkUpBindingElementsAndPatterns(node) { - while (node && (node.kind === 152 || isBindingPattern(node))) { + while (node && (node.kind === 152 /* BindingElement */ || isBindingPattern(node))) { node = node.parent; } return node; } + // Returns the node flags for this node and all relevant parent nodes. This is done so that + // nodes like variable declarations and binding elements can returned a view of their flags + // that includes the modifiers from their container. i.e. flags like export/declare aren't + // stored on the variable declaration directly, but on the containing variable statement + // (if it has one). Similarly, flags for let/const are store on the variable declaration + // list. By calling this function, all those flags are combined so that the client can treat + // the node as if it actually had those flags. function getCombinedNodeFlags(node) { node = walkUpBindingElementsAndPatterns(node); var flags = node.flags; - if (node.kind === 198) { + if (node.kind === 198 /* VariableDeclaration */) { node = node.parent; } - if (node && node.kind === 199) { + if (node && node.kind === 199 /* VariableDeclarationList */) { flags |= node.flags; node = node.parent; } - if (node && node.kind === 180) { + if (node && node.kind === 180 /* VariableStatement */) { flags |= node.flags; } return flags; } ts.getCombinedNodeFlags = getCombinedNodeFlags; function isConst(node) { - return !!(getCombinedNodeFlags(node) & 8192); + return !!(getCombinedNodeFlags(node) & 8192 /* Const */); } ts.isConst = isConst; function isLet(node) { - return !!(getCombinedNodeFlags(node) & 4096); + return !!(getCombinedNodeFlags(node) & 4096 /* Let */); } ts.isLet = isLet; function isPrologueDirective(node) { - return node.kind === 182 && node.expression.kind === 8; + return node.kind === 182 /* ExpressionStatement */ && node.expression.kind === 8 /* StringLiteral */; } ts.isPrologueDirective = isPrologueDirective; function getLeadingCommentRangesOfNode(node, sourceFileOfNode) { - if (node.kind === 129 || node.kind === 128) { + // If parameter/type parameter, the prev token trailing comments are part of this node too + if (node.kind === 129 /* Parameter */ || node.kind === 128 /* TypeParameter */) { + // e.g. (/** blah */ a, /** blah */ b); + // e.g.: ( + // /** blah */ a, + // /** blah */ b); return ts.concatenate(ts.getTrailingCommentRanges(sourceFileOfNode.text, node.pos), ts.getLeadingCommentRanges(sourceFileOfNode.text, node.pos)); } else { @@ -4047,75 +4446,90 @@ var ts; function getJsDocComments(node, sourceFileOfNode) { return ts.filter(getLeadingCommentRangesOfNode(node, sourceFileOfNode), isJsDocComment); function isJsDocComment(comment) { - return sourceFileOfNode.text.charCodeAt(comment.pos + 1) === 42 && - sourceFileOfNode.text.charCodeAt(comment.pos + 2) === 42 && - sourceFileOfNode.text.charCodeAt(comment.pos + 3) !== 47; + // True if the comment starts with '/**' but not if it is '/**/' + return sourceFileOfNode.text.charCodeAt(comment.pos + 1) === 42 /* asterisk */ && + sourceFileOfNode.text.charCodeAt(comment.pos + 2) === 42 /* asterisk */ && + sourceFileOfNode.text.charCodeAt(comment.pos + 3) !== 47 /* slash */; } } ts.getJsDocComments = getJsDocComments; ts.fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*/; + // Warning: This has the same semantics as the forEach family of functions, + // in that traversal terminates in the event that 'visitor' supplies a truthy value. function forEachReturnStatement(body, visitor) { return traverse(body); function traverse(node) { switch (node.kind) { - case 191: + case 191 /* ReturnStatement */: return visitor(node); - case 207: - case 179: - case 183: - case 184: - case 185: - case 186: - case 187: - case 188: - case 192: - case 193: - case 220: - case 221: - case 194: - case 196: - case 223: + case 207 /* CaseBlock */: + case 179 /* Block */: + case 183 /* IfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 192 /* WithStatement */: + case 193 /* SwitchStatement */: + case 220 /* CaseClause */: + case 221 /* DefaultClause */: + case 194 /* LabeledStatement */: + case 196 /* TryStatement */: + case 223 /* CatchClause */: return ts.forEachChild(node, traverse); } } } ts.forEachReturnStatement = forEachReturnStatement; + /* @internal */ function isVariableLike(node) { if (node) { switch (node.kind) { - case 152: - case 226: - case 129: - case 224: - case 132: - case 131: - case 225: - case 198: + case 152 /* BindingElement */: + case 226 /* EnumMember */: + case 129 /* Parameter */: + case 224 /* PropertyAssignment */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 225 /* ShorthandPropertyAssignment */: + case 198 /* VariableDeclaration */: return true; } } return false; } ts.isVariableLike = isVariableLike; + function isAccessor(node) { + if (node) { + switch (node.kind) { + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + return true; + } + } + return false; + } + ts.isAccessor = isAccessor; function isFunctionLike(node) { if (node) { switch (node.kind) { - case 135: - case 162: - case 200: - case 163: - case 134: - case 133: - case 136: - case 137: - case 138: - case 139: - case 140: - case 142: - case 143: - case 162: - case 163: - case 200: + case 135 /* Constructor */: + case 162 /* FunctionExpression */: + case 200 /* FunctionDeclaration */: + case 163 /* ArrowFunction */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + case 200 /* FunctionDeclaration */: return true; } } @@ -4123,11 +4537,11 @@ var ts; } ts.isFunctionLike = isFunctionLike; function isFunctionBlock(node) { - return node && node.kind === 179 && isFunctionLike(node.parent); + return node && node.kind === 179 /* Block */ && isFunctionLike(node.parent); } ts.isFunctionBlock = isFunctionBlock; function isObjectLiteralMethod(node) { - return node && node.kind === 134 && node.parent.kind === 154; + return node && node.kind === 134 /* MethodDeclaration */ && node.parent.kind === 154 /* ObjectLiteralExpression */; } ts.isObjectLiteralMethod = isObjectLiteralMethod; function getContainingFunction(node) { @@ -4146,28 +4560,51 @@ var ts; return undefined; } switch (node.kind) { - case 127: - if (node.parent.parent.kind === 201) { + case 127 /* ComputedPropertyName */: + // If the grandparent node is an object literal (as opposed to a class), + // then the computed property is not a 'this' container. + // A computed property name in a class needs to be a this container + // so that we can error on it. + if (node.parent.parent.kind === 201 /* ClassDeclaration */) { return node; } + // If this is a computed property, then the parent should not + // make it a this container. The parent might be a property + // in an object literal, like a method or accessor. But in order for + // such a parent to be a this container, the reference must be in + // the *body* of the container. node = node.parent; break; - case 163: + case 130 /* Decorator */: + // Decorators are always applied outside of the body of a class or method. + if (node.parent.kind === 129 /* Parameter */ && isClassElement(node.parent.parent)) { + // If the decorator's parent is a Parameter, we resolve the this container from + // the grandparent class declaration. + node = node.parent.parent; + } + else if (isClassElement(node.parent)) { + // If the decorator's parent is a class element, we resolve the 'this' container + // from the parent class declaration. + node = node.parent; + } + break; + case 163 /* ArrowFunction */: if (!includeArrowFunctions) { continue; } - case 200: - case 162: - case 205: - case 132: - case 131: - case 134: - case 133: - case 135: - case 136: - case 137: - case 204: - case 227: + // Fall through + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 205 /* ModuleDeclaration */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 204 /* EnumDeclaration */: + case 227 /* SourceFile */: return node; } } @@ -4179,73 +4616,100 @@ var ts; if (!node) return node; switch (node.kind) { - case 127: - if (node.parent.parent.kind === 201) { + case 127 /* ComputedPropertyName */: + // If the grandparent node is an object literal (as opposed to a class), + // then the computed property is not a 'super' container. + // A computed property name in a class needs to be a super container + // so that we can error on it. + if (node.parent.parent.kind === 201 /* ClassDeclaration */) { return node; } + // If this is a computed property, then the parent should not + // make it a super container. The parent might be a property + // in an object literal, like a method or accessor. But in order for + // such a parent to be a super container, the reference must be in + // the *body* of the container. node = node.parent; break; - case 200: - case 162: - case 163: + case 130 /* Decorator */: + // Decorators are always applied outside of the body of a class or method. + if (node.parent.kind === 129 /* Parameter */ && isClassElement(node.parent.parent)) { + // If the decorator's parent is a Parameter, we resolve the this container from + // the grandparent class declaration. + node = node.parent.parent; + } + else if (isClassElement(node.parent)) { + // If the decorator's parent is a class element, we resolve the 'this' container + // from the parent class declaration. + node = node.parent; + } + break; + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: if (!includeFunctions) { continue; } - case 132: - case 131: - case 134: - case 133: - case 135: - case 136: - case 137: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: return node; } } } ts.getSuperContainer = getSuperContainer; function getInvokedExpression(node) { - if (node.kind === 159) { + if (node.kind === 159 /* TaggedTemplateExpression */) { return node.tag; } + // Will either be a CallExpression or NewExpression. return node.expression; } ts.getInvokedExpression = getInvokedExpression; function nodeCanBeDecorated(node) { switch (node.kind) { - case 201: + case 201 /* ClassDeclaration */: + // classes are valid targets return true; - case 132: - return node.parent.kind === 201; - case 129: - return node.parent.body && node.parent.parent.kind === 201; - case 136: - case 137: - case 134: - return node.body && node.parent.kind === 201; + case 132 /* PropertyDeclaration */: + // property declarations are valid if their parent is a class declaration. + return node.parent.kind === 201 /* ClassDeclaration */; + case 129 /* Parameter */: + // if the parameter's parent has a body and its grandparent is a class declaration, this is a valid target; + return node.parent.body && node.parent.parent.kind === 201 /* ClassDeclaration */; + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 134 /* MethodDeclaration */: + // if this method has a body and its parent is a class declaration, this is a valid target. + return node.body && node.parent.kind === 201 /* ClassDeclaration */; } return false; } ts.nodeCanBeDecorated = nodeCanBeDecorated; function nodeIsDecorated(node) { switch (node.kind) { - case 201: + case 201 /* ClassDeclaration */: if (node.decorators) { return true; } return false; - case 132: - case 129: + case 132 /* PropertyDeclaration */: + case 129 /* Parameter */: if (node.decorators) { return true; } return false; - case 136: + case 136 /* GetAccessor */: if (node.body && node.decorators) { return true; } return false; - case 134: - case 137: + case 134 /* MethodDeclaration */: + case 137 /* SetAccessor */: if (node.body && node.decorators) { return true; } @@ -4256,10 +4720,10 @@ var ts; ts.nodeIsDecorated = nodeIsDecorated; function childIsDecorated(node) { switch (node.kind) { - case 201: + case 201 /* ClassDeclaration */: return ts.forEach(node.members, nodeOrChildIsDecorated); - case 134: - case 137: + case 134 /* MethodDeclaration */: + case 137 /* SetAccessor */: return ts.forEach(node.parameters, nodeIsDecorated); } return false; @@ -4271,84 +4735,87 @@ var ts; ts.nodeOrChildIsDecorated = nodeOrChildIsDecorated; function isExpression(node) { switch (node.kind) { - case 93: - case 91: - case 89: - case 95: - case 80: - case 9: - case 153: - case 154: - case 155: - case 156: - case 157: - case 158: - case 159: - case 160: - case 161: - case 162: - case 174: - case 163: - case 166: - case 164: - case 165: - case 167: - case 168: - case 169: - case 170: - case 173: - case 171: - case 10: - case 175: + case 93 /* ThisKeyword */: + case 91 /* SuperKeyword */: + case 89 /* NullKeyword */: + case 95 /* TrueKeyword */: + case 80 /* FalseKeyword */: + case 9 /* RegularExpressionLiteral */: + case 153 /* ArrayLiteralExpression */: + case 154 /* ObjectLiteralExpression */: + case 155 /* PropertyAccessExpression */: + case 156 /* ElementAccessExpression */: + case 157 /* CallExpression */: + case 158 /* NewExpression */: + case 159 /* TaggedTemplateExpression */: + case 160 /* TypeAssertionExpression */: + case 161 /* ParenthesizedExpression */: + case 162 /* FunctionExpression */: + case 174 /* ClassExpression */: + case 163 /* ArrowFunction */: + case 166 /* VoidExpression */: + case 164 /* DeleteExpression */: + case 165 /* TypeOfExpression */: + case 167 /* PrefixUnaryExpression */: + case 168 /* PostfixUnaryExpression */: + case 169 /* BinaryExpression */: + case 170 /* ConditionalExpression */: + case 173 /* SpreadElementExpression */: + case 171 /* TemplateExpression */: + case 10 /* NoSubstitutionTemplateLiteral */: + case 175 /* OmittedExpression */: return true; - case 126: - while (node.parent.kind === 126) { + case 126 /* QualifiedName */: + while (node.parent.kind === 126 /* QualifiedName */) { node = node.parent; } - return node.parent.kind === 144; - case 65: - if (node.parent.kind === 144) { + return node.parent.kind === 144 /* TypeQuery */; + case 65 /* Identifier */: + if (node.parent.kind === 144 /* TypeQuery */) { return true; } - case 7: - case 8: + // fall through + case 7 /* NumericLiteral */: + case 8 /* StringLiteral */: var parent_1 = node.parent; switch (parent_1.kind) { - case 198: - case 129: - case 132: - case 131: - case 226: - case 224: - case 152: + case 198 /* VariableDeclaration */: + case 129 /* Parameter */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 226 /* EnumMember */: + case 224 /* PropertyAssignment */: + case 152 /* BindingElement */: return parent_1.initializer === node; - case 182: - case 183: - case 184: - case 185: - case 191: - case 192: - case 193: - case 220: - case 195: - case 193: + case 182 /* ExpressionStatement */: + case 183 /* IfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + case 191 /* ReturnStatement */: + case 192 /* WithStatement */: + case 193 /* SwitchStatement */: + case 220 /* CaseClause */: + case 195 /* ThrowStatement */: + case 193 /* SwitchStatement */: return parent_1.expression === node; - case 186: + case 186 /* ForStatement */: var forStatement = parent_1; - return (forStatement.initializer === node && forStatement.initializer.kind !== 199) || + return (forStatement.initializer === node && forStatement.initializer.kind !== 199 /* VariableDeclarationList */) || forStatement.condition === node || forStatement.iterator === node; - case 187: - case 188: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: var forInStatement = parent_1; - return (forInStatement.initializer === node && forInStatement.initializer.kind !== 199) || + return (forInStatement.initializer === node && forInStatement.initializer.kind !== 199 /* VariableDeclarationList */) || forInStatement.expression === node; - case 160: + case 160 /* TypeAssertionExpression */: return node === parent_1.expression; - case 176: + case 176 /* TemplateSpan */: return node === parent_1.expression; - case 127: + case 127 /* ComputedPropertyName */: return node === parent_1.expression; + case 130 /* Decorator */: + return true; default: if (isExpression(parent_1)) { return true; @@ -4360,12 +4827,12 @@ var ts; ts.isExpression = isExpression; function isInstantiatedModule(node, preserveConstEnums) { var moduleState = ts.getModuleInstanceState(node); - return moduleState === 1 || - (preserveConstEnums && moduleState === 2); + return moduleState === 1 /* Instantiated */ || + (preserveConstEnums && moduleState === 2 /* ConstEnumOnly */); } ts.isInstantiatedModule = isInstantiatedModule; function isExternalModuleImportEqualsDeclaration(node) { - return node.kind === 208 && node.moduleReference.kind === 219; + return node.kind === 208 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 219 /* ExternalModuleReference */; } ts.isExternalModuleImportEqualsDeclaration = isExternalModuleImportEqualsDeclaration; function getExternalModuleImportEqualsDeclarationExpression(node) { @@ -4374,40 +4841,40 @@ var ts; } ts.getExternalModuleImportEqualsDeclarationExpression = getExternalModuleImportEqualsDeclarationExpression; function isInternalModuleImportEqualsDeclaration(node) { - return node.kind === 208 && node.moduleReference.kind !== 219; + return node.kind === 208 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 219 /* ExternalModuleReference */; } ts.isInternalModuleImportEqualsDeclaration = isInternalModuleImportEqualsDeclaration; function getExternalModuleName(node) { - if (node.kind === 209) { + if (node.kind === 209 /* ImportDeclaration */) { return node.moduleSpecifier; } - if (node.kind === 208) { + if (node.kind === 208 /* ImportEqualsDeclaration */) { var reference = node.moduleReference; - if (reference.kind === 219) { + if (reference.kind === 219 /* ExternalModuleReference */) { return reference.expression; } } - if (node.kind === 215) { + if (node.kind === 215 /* ExportDeclaration */) { return node.moduleSpecifier; } } ts.getExternalModuleName = getExternalModuleName; function hasDotDotDotToken(node) { - return node && node.kind === 129 && node.dotDotDotToken !== undefined; + return node && node.kind === 129 /* Parameter */ && node.dotDotDotToken !== undefined; } ts.hasDotDotDotToken = hasDotDotDotToken; function hasQuestionToken(node) { if (node) { switch (node.kind) { - case 129: + case 129 /* Parameter */: return node.questionToken !== undefined; - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return node.questionToken !== undefined; - case 225: - case 224: - case 132: - case 131: + case 225 /* ShorthandPropertyAssignment */: + case 224 /* PropertyAssignment */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: return node.questionToken !== undefined; } } @@ -4419,24 +4886,24 @@ var ts; } ts.hasRestParameters = hasRestParameters; function isLiteralKind(kind) { - return 7 <= kind && kind <= 10; + return 7 /* FirstLiteralToken */ <= kind && kind <= 10 /* LastLiteralToken */; } ts.isLiteralKind = isLiteralKind; function isTextualLiteralKind(kind) { - return kind === 8 || kind === 10; + return kind === 8 /* StringLiteral */ || kind === 10 /* NoSubstitutionTemplateLiteral */; } ts.isTextualLiteralKind = isTextualLiteralKind; function isTemplateLiteralKind(kind) { - return 10 <= kind && kind <= 13; + return 10 /* FirstTemplateToken */ <= kind && kind <= 13 /* LastTemplateToken */; } ts.isTemplateLiteralKind = isTemplateLiteralKind; function isBindingPattern(node) { - return !!node && (node.kind === 151 || node.kind === 150); + return !!node && (node.kind === 151 /* ArrayBindingPattern */ || node.kind === 150 /* ObjectBindingPattern */); } ts.isBindingPattern = isBindingPattern; function isInAmbientContext(node) { while (node) { - if (node.flags & (2 | 2048)) { + if (node.flags & (2 /* Ambient */ | 2048 /* DeclarationFile */)) { return true; } node = node.parent; @@ -4446,33 +4913,33 @@ var ts; ts.isInAmbientContext = isInAmbientContext; function isDeclaration(node) { switch (node.kind) { - case 163: - case 152: - case 201: - case 135: - case 204: - case 226: - case 217: - case 200: - case 162: - case 136: - case 210: - case 208: - case 213: - case 202: - case 134: - case 133: - case 205: - case 211: - case 129: - case 224: - case 132: - case 131: - case 137: - case 225: - case 203: - case 128: - case 198: + case 163 /* ArrowFunction */: + case 152 /* BindingElement */: + case 201 /* ClassDeclaration */: + case 135 /* Constructor */: + case 204 /* EnumDeclaration */: + case 226 /* EnumMember */: + case 217 /* ExportSpecifier */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 136 /* GetAccessor */: + case 210 /* ImportClause */: + case 208 /* ImportEqualsDeclaration */: + case 213 /* ImportSpecifier */: + case 202 /* InterfaceDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 205 /* ModuleDeclaration */: + case 211 /* NamespaceImport */: + case 129 /* Parameter */: + case 224 /* PropertyAssignment */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 137 /* SetAccessor */: + case 225 /* ShorthandPropertyAssignment */: + case 203 /* TypeAliasDeclaration */: + case 128 /* TypeParameter */: + case 198 /* VariableDeclaration */: return true; } return false; @@ -4480,25 +4947,25 @@ var ts; ts.isDeclaration = isDeclaration; function isStatement(n) { switch (n.kind) { - case 190: - case 189: - case 197: - case 184: - case 182: - case 181: - case 187: - case 188: - case 186: - case 183: - case 194: - case 191: - case 193: - case 94: - case 196: - case 180: - case 185: - case 192: - case 214: + case 190 /* BreakStatement */: + case 189 /* ContinueStatement */: + case 197 /* DebuggerStatement */: + case 184 /* DoStatement */: + case 182 /* ExpressionStatement */: + case 181 /* EmptyStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 186 /* ForStatement */: + case 183 /* IfStatement */: + case 194 /* LabeledStatement */: + case 191 /* ReturnStatement */: + case 193 /* SwitchStatement */: + case 94 /* ThrowKeyword */: + case 196 /* TryStatement */: + case 180 /* VariableStatement */: + case 185 /* WhileStatement */: + case 192 /* WithStatement */: + case 214 /* ExportAssignment */: return true; default: return false; @@ -4507,24 +4974,26 @@ var ts; ts.isStatement = isStatement; function isClassElement(n) { switch (n.kind) { - case 135: - case 132: - case 134: - case 136: - case 137: - case 140: + case 135 /* Constructor */: + case 132 /* PropertyDeclaration */: + case 134 /* MethodDeclaration */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 133 /* MethodSignature */: + case 140 /* IndexSignature */: return true; default: return false; } } ts.isClassElement = isClassElement; + // True if the given identifier, string literal, or number literal is the name of a declaration node function isDeclarationName(name) { - if (name.kind !== 65 && name.kind !== 8 && name.kind !== 7) { + if (name.kind !== 65 /* Identifier */ && name.kind !== 8 /* StringLiteral */ && name.kind !== 7 /* NumericLiteral */) { return false; } var parent = name.parent; - if (parent.kind === 213 || parent.kind === 217) { + if (parent.kind === 213 /* ImportSpecifier */ || parent.kind === 217 /* ExportSpecifier */) { if (parent.propertyName) { return true; } @@ -4535,27 +5004,35 @@ var ts; return false; } ts.isDeclarationName = isDeclarationName; + // An alias symbol is created by one of the following declarations: + // import = ... + // import from ... + // import * as from ... + // import { x as } from ... + // export { x as } from ... + // export = ... + // export default ... function isAliasSymbolDeclaration(node) { - return node.kind === 208 || - node.kind === 210 && !!node.name || - node.kind === 211 || - node.kind === 213 || - node.kind === 217 || - node.kind === 214 && node.expression.kind === 65; + return node.kind === 208 /* ImportEqualsDeclaration */ || + node.kind === 210 /* ImportClause */ && !!node.name || + node.kind === 211 /* NamespaceImport */ || + node.kind === 213 /* ImportSpecifier */ || + node.kind === 217 /* ExportSpecifier */ || + node.kind === 214 /* ExportAssignment */ && node.expression.kind === 65 /* Identifier */; } ts.isAliasSymbolDeclaration = isAliasSymbolDeclaration; function getClassExtendsHeritageClauseElement(node) { - var heritageClause = getHeritageClause(node.heritageClauses, 79); + var heritageClause = getHeritageClause(node.heritageClauses, 79 /* ExtendsKeyword */); return heritageClause && heritageClause.types.length > 0 ? heritageClause.types[0] : undefined; } ts.getClassExtendsHeritageClauseElement = getClassExtendsHeritageClauseElement; function getClassImplementsHeritageClauseElements(node) { - var heritageClause = getHeritageClause(node.heritageClauses, 103); + var heritageClause = getHeritageClause(node.heritageClauses, 103 /* ImplementsKeyword */); return heritageClause ? heritageClause.types : undefined; } ts.getClassImplementsHeritageClauseElements = getClassImplementsHeritageClauseElements; function getInterfaceBaseTypeNodes(node) { - var heritageClause = getHeritageClause(node.heritageClauses, 79); + var heritageClause = getHeritageClause(node.heritageClauses, 79 /* ExtendsKeyword */); return heritageClause ? heritageClause.types : undefined; } ts.getInterfaceBaseTypeNodes = getInterfaceBaseTypeNodes; @@ -4624,28 +5101,40 @@ var ts; } ts.getFileReferenceFromReferencePath = getFileReferenceFromReferencePath; function isKeyword(token) { - return 66 <= token && token <= 125; + return 66 /* FirstKeyword */ <= token && token <= 125 /* LastKeyword */; } ts.isKeyword = isKeyword; function isTrivia(token) { - return 2 <= token && token <= 6; + return 2 /* FirstTriviaToken */ <= token && token <= 6 /* LastTriviaToken */; } ts.isTrivia = isTrivia; + /** + * A declaration has a dynamic name if both of the following are true: + * 1. The declaration has a computed property name + * 2. The computed name is *not* expressed as Symbol., where name + * is a property of the Symbol constructor that denotes a built in + * Symbol. + */ function hasDynamicName(declaration) { return declaration.name && - declaration.name.kind === 127 && + declaration.name.kind === 127 /* ComputedPropertyName */ && !isWellKnownSymbolSyntactically(declaration.name.expression); } ts.hasDynamicName = hasDynamicName; + /** + * Checks if the expression is of the form: + * Symbol.name + * where Symbol is literally the word "Symbol", and name is any identifierName + */ function isWellKnownSymbolSyntactically(node) { - return node.kind === 155 && isESSymbolIdentifier(node.expression); + return node.kind === 155 /* PropertyAccessExpression */ && isESSymbolIdentifier(node.expression); } ts.isWellKnownSymbolSyntactically = isWellKnownSymbolSyntactically; function getPropertyNameForPropertyNameNode(name) { - if (name.kind === 65 || name.kind === 8 || name.kind === 7) { + if (name.kind === 65 /* Identifier */ || name.kind === 8 /* StringLiteral */ || name.kind === 7 /* NumericLiteral */) { return name.text; } - if (name.kind === 127) { + if (name.kind === 127 /* ComputedPropertyName */) { var nameExpression = name.expression; if (isWellKnownSymbolSyntactically(nameExpression)) { var rightHandSideName = nameExpression.name.text; @@ -4659,20 +5148,23 @@ var ts; return "__@" + symbolName; } ts.getPropertyNameForKnownSymbolName = getPropertyNameForKnownSymbolName; + /** + * Includes the word "Symbol" with unicode escapes + */ function isESSymbolIdentifier(node) { - return node.kind === 65 && node.text === "Symbol"; + return node.kind === 65 /* Identifier */ && node.text === "Symbol"; } ts.isESSymbolIdentifier = isESSymbolIdentifier; function isModifier(token) { switch (token) { - case 109: - case 107: - case 108: - case 110: - case 78: - case 115: - case 70: - case 73: + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: + case 110 /* StaticKeyword */: + case 78 /* ExportKeyword */: + case 115 /* DeclareKeyword */: + case 70 /* ConstKeyword */: + case 73 /* DefaultKeyword */: return true; } return false; @@ -4690,6 +5182,7 @@ var ts; return position >= span.start && position < textSpanEnd(span); } ts.textSpanContainsPosition = textSpanContainsPosition; + // Returns true if 'span' contains 'other'. function textSpanContainsTextSpan(span, other) { return other.start >= span.start && textSpanEnd(other) <= textSpanEnd(span); } @@ -4761,6 +5254,14 @@ var ts; } ts.createTextChangeRange = createTextChangeRange; ts.unchangedTextChangeRange = createTextChangeRange(createTextSpan(0, 0), 0); + /** + * Called to merge all the changes that occurred across several versions of a script snapshot + * into a single change. i.e. if a user keeps making successive edits to a script we will + * have a text change from V1 to V2, V2 to V3, ..., Vn. + * + * This function will then merge those changes into a single change range valid between V1 and + * Vn. + */ function collapseTextChangeRangesAcrossMultipleVersions(changes) { if (changes.length === 0) { return ts.unchangedTextChangeRange; @@ -4768,12 +5269,93 @@ var ts; if (changes.length === 1) { return changes[0]; } + // We change from talking about { { oldStart, oldLength }, newLength } to { oldStart, oldEnd, newEnd } + // as it makes things much easier to reason about. var change0 = changes[0]; var oldStartN = change0.span.start; var oldEndN = textSpanEnd(change0.span); var newEndN = oldStartN + change0.newLength; for (var i = 1; i < changes.length; i++) { var nextChange = changes[i]; + // Consider the following case: + // i.e. two edits. The first represents the text change range { { 10, 50 }, 30 }. i.e. The span starting + // at 10, with length 50 is reduced to length 30. The second represents the text change range { { 30, 30 }, 40 }. + // i.e. the span starting at 30 with length 30 is increased to length 40. + // + // 0 10 20 30 40 50 60 70 80 90 100 + // ------------------------------------------------------------------------------------------------------- + // | / + // | /---- + // T1 | /---- + // | /---- + // | /---- + // ------------------------------------------------------------------------------------------------------- + // | \ + // | \ + // T2 | \ + // | \ + // | \ + // ------------------------------------------------------------------------------------------------------- + // + // Merging these turns out to not be too difficult. First, determining the new start of the change is trivial + // it's just the min of the old and new starts. i.e.: + // + // 0 10 20 30 40 50 60 70 80 90 100 + // ------------------------------------------------------------*------------------------------------------ + // | / + // | /---- + // T1 | /---- + // | /---- + // | /---- + // ----------------------------------------$-------------------$------------------------------------------ + // . | \ + // . | \ + // T2 . | \ + // . | \ + // . | \ + // ----------------------------------------------------------------------*-------------------------------- + // + // (Note the dots represent the newly inferrred start. + // Determining the new and old end is also pretty simple. Basically it boils down to paying attention to the + // absolute positions at the asterixes, and the relative change between the dollar signs. Basically, we see + // which if the two $'s precedes the other, and we move that one forward until they line up. in this case that + // means: + // + // 0 10 20 30 40 50 60 70 80 90 100 + // --------------------------------------------------------------------------------*---------------------- + // | / + // | /---- + // T1 | /---- + // | /---- + // | /---- + // ------------------------------------------------------------$------------------------------------------ + // . | \ + // . | \ + // T2 . | \ + // . | \ + // . | \ + // ----------------------------------------------------------------------*-------------------------------- + // + // In other words (in this case), we're recognizing that the second edit happened after where the first edit + // ended with a delta of 20 characters (60 - 40). Thus, if we go back in time to where the first edit started + // that's the same as if we started at char 80 instead of 60. + // + // As it so happens, the same logic applies if the second edit precedes the first edit. In that case rahter + // than pusing the first edit forward to match the second, we'll push the second edit forward to match the + // first. + // + // In this case that means we have { oldStart: 10, oldEnd: 80, newEnd: 70 } or, in TextChangeRange + // semantics: { { start: 10, length: 70 }, newLength: 60 } + // + // The math then works out as follows. + // If we have { oldStart1, oldEnd1, newEnd1 } and { oldStart2, oldEnd2, newEnd2 } then we can compute the + // final result like so: + // + // { + // oldStart3: Min(oldStart1, oldStart2), + // oldEnd3 : Max(oldEnd1, oldEnd1 + (oldEnd2 - newEnd1)), + // newEnd3 : Max(newEnd2, newEnd2 + (newEnd1 - oldEnd2)) + // } var oldStart1 = oldStartN; var oldEnd1 = oldEndN; var newEnd1 = newEndN; @@ -4788,7 +5370,7 @@ var ts; } ts.collapseTextChangeRangesAcrossMultipleVersions = collapseTextChangeRangesAcrossMultipleVersions; function nodeStartsNewLexicalEnvironment(n) { - return isFunctionLike(n) || n.kind === 205 || n.kind === 227; + return isFunctionLike(n) || n.kind === 205 /* ModuleDeclaration */ || n.kind === 227 /* SourceFile */; } ts.nodeStartsNewLexicalEnvironment = nodeStartsNewLexicalEnvironment; function nodeIsSynthesized(node) { @@ -4803,6 +5385,7 @@ var ts; return node; } ts.createSynthesizedNode = createSynthesizedNode; + /* @internal */ function createDiagnosticCollection() { var nonFileDiagnostics = []; var fileDiagnostics = {}; @@ -4868,6 +5451,11 @@ var ts; } } ts.createDiagnosticCollection = createDiagnosticCollection; + // This consists of the first 19 unprintable ASCII characters, canonical escapes, lineSeparator, + // paragraphSeparator, and nextLine. The latter three are just desirable to suppress new lines in + // the language service. These characters should be escaped when printing, and if any characters are added, + // the map below must be updated. Note that this regexp *does not* include the 'delete' character. + // There is no reason for this other than that JSON.stringify does not handle it either. var escapedCharsRegExp = /[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; var escapedCharsMap = { "\0": "\\0", @@ -4881,8 +5469,13 @@ var ts; "\"": "\\\"", "\u2028": "\\u2028", "\u2029": "\\u2029", - "\u0085": "\\u0085" + "\u0085": "\\u0085" // nextLine }; + /** + * Based heavily on the abstract 'Quote'/'QuoteJSONString' operation from ECMA-262 (24.3.2.2), + * but augmented for a few select characters (e.g. lineSeparator, paragraphSeparator, nextLine) + * Note that this doesn't actually wrap the input in double quotes. + */ function escapeString(s) { s = escapedCharsRegExp.test(s) ? s.replace(escapedCharsRegExp, getReplacement) : s; return s; @@ -4898,6 +5491,8 @@ var ts; } var nonAsciiCharacters = /[^\u0000-\u007F]/g; function escapeNonAsciiCharacters(s) { + // Replace non-ASCII characters with '\uNNNN' escapes if any exist. + // Otherwise just return the original string. return nonAsciiCharacters.test(s) ? s.replace(nonAsciiCharacters, function (c) { return get16BitUnicodeEscapeSequence(c.charCodeAt(0)); }) : s; @@ -5005,7 +5600,7 @@ var ts; ts.getLineOfLocalPosition = getLineOfLocalPosition; function getFirstConstructorWithBody(node) { return ts.forEach(node.members, function (member) { - if (member.kind === 135 && nodeIsPresent(member.body)) { + if (member.kind === 135 /* Constructor */ && nodeIsPresent(member.body)) { return member; } }); @@ -5028,10 +5623,10 @@ var ts; var setAccessor; if (hasDynamicName(accessor)) { firstAccessor = accessor; - if (accessor.kind === 136) { + if (accessor.kind === 136 /* GetAccessor */) { getAccessor = accessor; } - else if (accessor.kind === 137) { + else if (accessor.kind === 137 /* SetAccessor */) { setAccessor = accessor; } else { @@ -5040,8 +5635,8 @@ var ts; } else { ts.forEach(declarations, function (member) { - if ((member.kind === 136 || member.kind === 137) - && (member.flags & 128) === (accessor.flags & 128)) { + if ((member.kind === 136 /* GetAccessor */ || member.kind === 137 /* SetAccessor */) + && (member.flags & 128 /* Static */) === (accessor.flags & 128 /* Static */)) { var memberName = getPropertyNameForPropertyNameNode(member.name); var accessorName = getPropertyNameForPropertyNameNode(accessor.name); if (memberName === accessorName) { @@ -5051,10 +5646,10 @@ var ts; else if (!secondAccessor) { secondAccessor = member; } - if (member.kind === 136 && !getAccessor) { + if (member.kind === 136 /* GetAccessor */ && !getAccessor) { getAccessor = member; } - if (member.kind === 137 && !setAccessor) { + if (member.kind === 137 /* SetAccessor */ && !setAccessor) { setAccessor = member; } } @@ -5070,6 +5665,7 @@ var ts; } ts.getAllAccessorDeclarations = getAllAccessorDeclarations; function emitNewLineBeforeLeadingComments(currentSourceFile, writer, node, leadingComments) { + // If the leading comments start on different line than the start of node, write new line if (leadingComments && leadingComments.length && node.pos !== leadingComments[0].pos && getLineOfLocalPosition(currentSourceFile, node.pos) !== getLineOfLocalPosition(currentSourceFile, leadingComments[0].pos)) { writer.writeLine(); @@ -5091,13 +5687,14 @@ var ts; writer.write(" "); } else { + // Emit leading space to separate comment during next comment emit emitLeadingSpace = true; } }); } ts.emitComments = emitComments; function writeCommentRange(currentSourceFile, writer, comment, newLine) { - if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 42) { + if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 42 /* asterisk */) { var firstCommentLineAndCharacter = ts.getLineAndCharacterOfPosition(currentSourceFile, comment.pos); var lineCount = ts.getLineStarts(currentSourceFile).length; var firstCommentLineIndent; @@ -5106,51 +5703,76 @@ var ts; ? currentSourceFile.text.length + 1 : getStartPositionOfLine(currentLine + 1, currentSourceFile); if (pos !== comment.pos) { + // If we are not emitting first line, we need to write the spaces to adjust the alignment if (firstCommentLineIndent === undefined) { firstCommentLineIndent = calculateIndent(getStartPositionOfLine(firstCommentLineAndCharacter.line, currentSourceFile), comment.pos); } + // These are number of spaces writer is going to write at current indent var currentWriterIndentSpacing = writer.getIndent() * getIndentSize(); + // Number of spaces we want to be writing + // eg: Assume writer indent + // module m { + // /* starts at character 9 this is line 1 + // * starts at character pos 4 line --1 = 8 - 8 + 3 + // More left indented comment */ --2 = 8 - 8 + 2 + // class c { } + // } + // module m { + // /* this is line 1 -- Assume current writer indent 8 + // * line --3 = 8 - 4 + 5 + // More right indented comment */ --4 = 8 - 4 + 11 + // class c { } + // } var spacesToEmit = currentWriterIndentSpacing - firstCommentLineIndent + calculateIndent(pos, nextLineStart); if (spacesToEmit > 0) { var numberOfSingleSpacesToEmit = spacesToEmit % getIndentSize(); var indentSizeSpaceString = getIndentString((spacesToEmit - numberOfSingleSpacesToEmit) / getIndentSize()); + // Write indent size string ( in eg 1: = "", 2: "" , 3: string with 8 spaces 4: string with 12 spaces writer.rawWrite(indentSizeSpaceString); + // Emit the single spaces (in eg: 1: 3 spaces, 2: 2 spaces, 3: 1 space, 4: 3 spaces) while (numberOfSingleSpacesToEmit) { writer.rawWrite(" "); numberOfSingleSpacesToEmit--; } } else { + // No spaces to emit write empty string writer.rawWrite(""); } } + // Write the comment line text writeTrimmedCurrentLine(pos, nextLineStart); pos = nextLineStart; } } else { + // Single line comment of style //.... writer.write(currentSourceFile.text.substring(comment.pos, comment.end)); } function writeTrimmedCurrentLine(pos, nextLineStart) { var end = Math.min(comment.end, nextLineStart - 1); var currentLineText = currentSourceFile.text.substring(pos, end).replace(/^\s+|\s+$/g, ''); if (currentLineText) { + // trimmed forward and ending spaces text writer.write(currentLineText); if (end !== comment.end) { writer.writeLine(); } } else { + // Empty string - make sure we write empty line writer.writeLiteral(newLine); } } function calculateIndent(pos, end) { var currentLineIndent = 0; for (; pos < end && ts.isWhiteSpace(currentSourceFile.text.charCodeAt(pos)); pos++) { - if (currentSourceFile.text.charCodeAt(pos) === 9) { + if (currentSourceFile.text.charCodeAt(pos) === 9 /* tab */) { + // Tabs = TabSize = indent size and go to next tabStop currentLineIndent += getIndentSize() - (currentLineIndent % getIndentSize()); } else { + // Single space currentLineIndent++; } } @@ -5158,15 +5780,17 @@ var ts; } } ts.writeCommentRange = writeCommentRange; + // Returns false if this heritage clause element's expression contains something unsupported + // (i.e. not a name or dotted name). function isSupportedHeritageClauseElement(node) { return isSupportedHeritageClauseElementExpression(node.expression); } ts.isSupportedHeritageClauseElement = isSupportedHeritageClauseElement; function isSupportedHeritageClauseElementExpression(node) { - if (node.kind === 65) { + if (node.kind === 65 /* Identifier */) { return true; } - else if (node.kind === 155) { + else if (node.kind === 155 /* PropertyAccessExpression */) { return isSupportedHeritageClauseElementExpression(node.expression); } else { @@ -5174,12 +5798,12 @@ var ts; } } function isRightSideOfQualifiedNameOrPropertyAccess(node) { - return (node.parent.kind === 126 && node.parent.right === node) || - (node.parent.kind === 155 && node.parent.name === node); + return (node.parent.kind === 126 /* QualifiedName */ && node.parent.right === node) || + (node.parent.kind === 155 /* PropertyAccessExpression */ && node.parent.name === node); } ts.isRightSideOfQualifiedNameOrPropertyAccess = isRightSideOfQualifiedNameOrPropertyAccess; function getLocalSymbolForExportDefault(symbol) { - return symbol && symbol.valueDeclaration && (symbol.valueDeclaration.flags & 256) ? symbol.valueDeclaration.localSymbol : undefined; + return symbol && symbol.valueDeclaration && (symbol.valueDeclaration.flags & 256 /* Default */) ? symbol.valueDeclaration.localSymbol : undefined; } ts.getLocalSymbolForExportDefault = getLocalSymbolForExportDefault; })(ts || (ts = {})); @@ -5187,8 +5811,8 @@ var ts; /// var ts; (function (ts) { - var nodeConstructors = new Array(229); - ts.parseTime = 0; + var nodeConstructors = new Array(229 /* Count */); + /* @internal */ ts.parseTime = 0; function getNodeConstructor(kind) { return nodeConstructors[kind] || (nodeConstructors[kind] = ts.objectAllocator.getNodeConstructor(kind)); } @@ -5218,27 +5842,34 @@ var ts; } } } + // Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes + // stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise, + // embedded arrays are flattened and the 'cbNode' callback is invoked for each element. If a callback returns + // a truthy value, iteration stops and that value is returned. Otherwise, undefined is returned. function forEachChild(node, cbNode, cbNodeArray) { if (!node) { return; } + // The visitXXX functions could be written as local functions that close over the cbNode and cbNodeArray + // callback parameters, but that causes a closure allocation for each invocation with noticeable effects + // on performance. var visitNodes = cbNodeArray ? visitNodeArray : visitEachNode; var cbNodes = cbNodeArray || cbNode; switch (node.kind) { - case 126: + case 126 /* QualifiedName */: return visitNode(cbNode, node.left) || visitNode(cbNode, node.right); - case 128: + case 128 /* TypeParameter */: return visitNode(cbNode, node.name) || visitNode(cbNode, node.constraint) || visitNode(cbNode, node.expression); - case 129: - case 132: - case 131: - case 224: - case 225: - case 198: - case 152: + case 129 /* Parameter */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 224 /* PropertyAssignment */: + case 225 /* ShorthandPropertyAssignment */: + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.propertyName) || @@ -5247,24 +5878,24 @@ var ts; visitNode(cbNode, node.questionToken) || visitNode(cbNode, node.type) || visitNode(cbNode, node.initializer); - case 142: - case 143: - case 138: - case 139: - case 140: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNodes(cbNodes, node.typeParameters) || visitNodes(cbNodes, node.parameters) || visitNode(cbNode, node.type); - case 134: - case 133: - case 135: - case 136: - case 137: - case 162: - case 200: - case 163: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 162 /* FunctionExpression */: + case 200 /* FunctionDeclaration */: + case 163 /* ArrowFunction */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.asteriskToken) || @@ -5275,221 +5906,220 @@ var ts; visitNode(cbNode, node.type) || visitNode(cbNode, node.equalsGreaterThanToken) || visitNode(cbNode, node.body); - case 141: + case 141 /* TypeReference */: return visitNode(cbNode, node.typeName) || visitNodes(cbNodes, node.typeArguments); - case 144: + case 144 /* TypeQuery */: return visitNode(cbNode, node.exprName); - case 145: + case 145 /* TypeLiteral */: return visitNodes(cbNodes, node.members); - case 146: + case 146 /* ArrayType */: return visitNode(cbNode, node.elementType); - case 147: + case 147 /* TupleType */: return visitNodes(cbNodes, node.elementTypes); - case 148: + case 148 /* UnionType */: return visitNodes(cbNodes, node.types); - case 149: + case 149 /* ParenthesizedType */: return visitNode(cbNode, node.type); - case 150: - case 151: + case 150 /* ObjectBindingPattern */: + case 151 /* ArrayBindingPattern */: return visitNodes(cbNodes, node.elements); - case 153: + case 153 /* ArrayLiteralExpression */: return visitNodes(cbNodes, node.elements); - case 154: + case 154 /* ObjectLiteralExpression */: return visitNodes(cbNodes, node.properties); - case 155: + case 155 /* PropertyAccessExpression */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.dotToken) || visitNode(cbNode, node.name); - case 156: + case 156 /* ElementAccessExpression */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.argumentExpression); - case 157: - case 158: + case 157 /* CallExpression */: + case 158 /* NewExpression */: return visitNode(cbNode, node.expression) || visitNodes(cbNodes, node.typeArguments) || visitNodes(cbNodes, node.arguments); - case 159: + case 159 /* TaggedTemplateExpression */: return visitNode(cbNode, node.tag) || visitNode(cbNode, node.template); - case 160: + case 160 /* TypeAssertionExpression */: return visitNode(cbNode, node.type) || visitNode(cbNode, node.expression); - case 161: + case 161 /* ParenthesizedExpression */: return visitNode(cbNode, node.expression); - case 164: + case 164 /* DeleteExpression */: return visitNode(cbNode, node.expression); - case 165: + case 165 /* TypeOfExpression */: return visitNode(cbNode, node.expression); - case 166: + case 166 /* VoidExpression */: return visitNode(cbNode, node.expression); - case 167: + case 167 /* PrefixUnaryExpression */: return visitNode(cbNode, node.operand); - case 172: + case 172 /* YieldExpression */: return visitNode(cbNode, node.asteriskToken) || visitNode(cbNode, node.expression); - case 168: + case 168 /* PostfixUnaryExpression */: return visitNode(cbNode, node.operand); - case 169: + case 169 /* BinaryExpression */: return visitNode(cbNode, node.left) || visitNode(cbNode, node.operatorToken) || visitNode(cbNode, node.right); - case 170: + case 170 /* ConditionalExpression */: return visitNode(cbNode, node.condition) || visitNode(cbNode, node.questionToken) || visitNode(cbNode, node.whenTrue) || visitNode(cbNode, node.colonToken) || visitNode(cbNode, node.whenFalse); - case 173: + case 173 /* SpreadElementExpression */: return visitNode(cbNode, node.expression); - case 179: - case 206: + case 179 /* Block */: + case 206 /* ModuleBlock */: return visitNodes(cbNodes, node.statements); - case 227: + case 227 /* SourceFile */: return visitNodes(cbNodes, node.statements) || visitNode(cbNode, node.endOfFileToken); - case 180: + case 180 /* VariableStatement */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.declarationList); - case 199: + case 199 /* VariableDeclarationList */: return visitNodes(cbNodes, node.declarations); - case 182: + case 182 /* ExpressionStatement */: return visitNode(cbNode, node.expression); - case 183: + case 183 /* IfStatement */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.thenStatement) || visitNode(cbNode, node.elseStatement); - case 184: + case 184 /* DoStatement */: return visitNode(cbNode, node.statement) || visitNode(cbNode, node.expression); - case 185: + case 185 /* WhileStatement */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.statement); - case 186: + case 186 /* ForStatement */: return visitNode(cbNode, node.initializer) || visitNode(cbNode, node.condition) || visitNode(cbNode, node.iterator) || visitNode(cbNode, node.statement); - case 187: + case 187 /* ForInStatement */: return visitNode(cbNode, node.initializer) || visitNode(cbNode, node.expression) || visitNode(cbNode, node.statement); - case 188: + case 188 /* ForOfStatement */: return visitNode(cbNode, node.initializer) || visitNode(cbNode, node.expression) || visitNode(cbNode, node.statement); - case 189: - case 190: + case 189 /* ContinueStatement */: + case 190 /* BreakStatement */: return visitNode(cbNode, node.label); - case 191: + case 191 /* ReturnStatement */: return visitNode(cbNode, node.expression); - case 192: + case 192 /* WithStatement */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.statement); - case 193: + case 193 /* SwitchStatement */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.caseBlock); - case 207: + case 207 /* CaseBlock */: return visitNodes(cbNodes, node.clauses); - case 220: + case 220 /* CaseClause */: return visitNode(cbNode, node.expression) || visitNodes(cbNodes, node.statements); - case 221: + case 221 /* DefaultClause */: return visitNodes(cbNodes, node.statements); - case 194: + case 194 /* LabeledStatement */: return visitNode(cbNode, node.label) || visitNode(cbNode, node.statement); - case 195: + case 195 /* ThrowStatement */: return visitNode(cbNode, node.expression); - case 196: + case 196 /* TryStatement */: return visitNode(cbNode, node.tryBlock) || visitNode(cbNode, node.catchClause) || visitNode(cbNode, node.finallyBlock); - case 223: + case 223 /* CatchClause */: return visitNode(cbNode, node.variableDeclaration) || visitNode(cbNode, node.block); - case 130: + case 130 /* Decorator */: return visitNode(cbNode, node.expression); - case 201: - case 174: + case 201 /* ClassDeclaration */: + case 174 /* ClassExpression */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNodes(cbNodes, node.typeParameters) || visitNodes(cbNodes, node.heritageClauses) || visitNodes(cbNodes, node.members); - case 202: + case 202 /* InterfaceDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNodes(cbNodes, node.typeParameters) || visitNodes(cbNodes, node.heritageClauses) || visitNodes(cbNodes, node.members); - case 203: + case 203 /* TypeAliasDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNode(cbNode, node.type); - case 204: + case 204 /* EnumDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNodes(cbNodes, node.members); - case 226: + case 226 /* EnumMember */: return visitNode(cbNode, node.name) || visitNode(cbNode, node.initializer); - case 205: + case 205 /* ModuleDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNode(cbNode, node.body); - case 208: + case 208 /* ImportEqualsDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.name) || visitNode(cbNode, node.moduleReference); - case 209: + case 209 /* ImportDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.importClause) || visitNode(cbNode, node.moduleSpecifier); - case 210: + case 210 /* ImportClause */: return visitNode(cbNode, node.name) || visitNode(cbNode, node.namedBindings); - case 211: + case 211 /* NamespaceImport */: return visitNode(cbNode, node.name); - case 212: - case 216: + case 212 /* NamedImports */: + case 216 /* NamedExports */: return visitNodes(cbNodes, node.elements); - case 215: + case 215 /* ExportDeclaration */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || visitNode(cbNode, node.exportClause) || visitNode(cbNode, node.moduleSpecifier); - case 213: - case 217: + case 213 /* ImportSpecifier */: + case 217 /* ExportSpecifier */: return visitNode(cbNode, node.propertyName) || visitNode(cbNode, node.name); - case 214: + case 214 /* ExportAssignment */: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || - visitNode(cbNode, node.expression) || - visitNode(cbNode, node.type); - case 171: + visitNode(cbNode, node.expression); + case 171 /* TemplateExpression */: return visitNode(cbNode, node.head) || visitNodes(cbNodes, node.templateSpans); - case 176: + case 176 /* TemplateSpan */: return visitNode(cbNode, node.expression) || visitNode(cbNode, node.literal); - case 127: + case 127 /* ComputedPropertyName */: return visitNode(cbNode, node.expression); - case 222: + case 222 /* HeritageClause */: return visitNodes(cbNodes, node.types); - case 177: + case 177 /* HeritageClauseElement */: return visitNode(cbNode, node.expression) || visitNodes(cbNodes, node.typeArguments); - case 219: + case 219 /* ExternalModuleReference */: return visitNode(cbNode, node.expression); - case 218: + case 218 /* MissingDeclaration */: return visitNodes(cbNodes, node.decorators); } } @@ -5517,7 +6147,7 @@ var ts; ParsingContext[ParsingContext["TupleElementTypes"] = 18] = "TupleElementTypes"; ParsingContext[ParsingContext["HeritageClauses"] = 19] = "HeritageClauses"; ParsingContext[ParsingContext["ImportOrExportSpecifiers"] = 20] = "ImportOrExportSpecifiers"; - ParsingContext[ParsingContext["Count"] = 21] = "Count"; + ParsingContext[ParsingContext["Count"] = 21] = "Count"; // Number of parsing contexts })(ParsingContext || (ParsingContext = {})); var Tristate; (function (Tristate) { @@ -5527,40 +6157,40 @@ var ts; })(Tristate || (Tristate = {})); function parsingContextErrors(context) { switch (context) { - case 0: return ts.Diagnostics.Declaration_or_statement_expected; - case 1: return ts.Diagnostics.Declaration_or_statement_expected; - case 2: return ts.Diagnostics.Statement_expected; - case 3: return ts.Diagnostics.case_or_default_expected; - case 4: return ts.Diagnostics.Statement_expected; - case 5: return ts.Diagnostics.Property_or_signature_expected; - case 6: return ts.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected; - case 7: return ts.Diagnostics.Enum_member_expected; - case 8: return ts.Diagnostics.Expression_expected; - case 9: return ts.Diagnostics.Variable_declaration_expected; - case 10: return ts.Diagnostics.Property_destructuring_pattern_expected; - case 11: return ts.Diagnostics.Array_element_destructuring_pattern_expected; - case 12: return ts.Diagnostics.Argument_expression_expected; - case 13: return ts.Diagnostics.Property_assignment_expected; - case 14: return ts.Diagnostics.Expression_or_comma_expected; - case 15: return ts.Diagnostics.Parameter_declaration_expected; - case 16: return ts.Diagnostics.Type_parameter_declaration_expected; - case 17: return ts.Diagnostics.Type_argument_expected; - case 18: return ts.Diagnostics.Type_expected; - case 19: return ts.Diagnostics.Unexpected_token_expected; - case 20: return ts.Diagnostics.Identifier_expected; + case 0 /* SourceElements */: return ts.Diagnostics.Declaration_or_statement_expected; + case 1 /* ModuleElements */: return ts.Diagnostics.Declaration_or_statement_expected; + case 2 /* BlockStatements */: return ts.Diagnostics.Statement_expected; + case 3 /* SwitchClauses */: return ts.Diagnostics.case_or_default_expected; + case 4 /* SwitchClauseStatements */: return ts.Diagnostics.Statement_expected; + case 5 /* TypeMembers */: return ts.Diagnostics.Property_or_signature_expected; + case 6 /* ClassMembers */: return ts.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected; + case 7 /* EnumMembers */: return ts.Diagnostics.Enum_member_expected; + case 8 /* HeritageClauseElement */: return ts.Diagnostics.Expression_expected; + case 9 /* VariableDeclarations */: return ts.Diagnostics.Variable_declaration_expected; + case 10 /* ObjectBindingElements */: return ts.Diagnostics.Property_destructuring_pattern_expected; + case 11 /* ArrayBindingElements */: return ts.Diagnostics.Array_element_destructuring_pattern_expected; + case 12 /* ArgumentExpressions */: return ts.Diagnostics.Argument_expression_expected; + case 13 /* ObjectLiteralMembers */: return ts.Diagnostics.Property_assignment_expected; + case 14 /* ArrayLiteralMembers */: return ts.Diagnostics.Expression_or_comma_expected; + case 15 /* Parameters */: return ts.Diagnostics.Parameter_declaration_expected; + case 16 /* TypeParameters */: return ts.Diagnostics.Type_parameter_declaration_expected; + case 17 /* TypeArguments */: return ts.Diagnostics.Type_argument_expected; + case 18 /* TupleElementTypes */: return ts.Diagnostics.Type_expected; + case 19 /* HeritageClauses */: return ts.Diagnostics.Unexpected_token_expected; + case 20 /* ImportOrExportSpecifiers */: return ts.Diagnostics.Identifier_expected; } } ; function modifierToFlag(token) { switch (token) { - case 110: return 128; - case 109: return 16; - case 108: return 64; - case 107: return 32; - case 78: return 1; - case 115: return 2; - case 70: return 8192; - case 73: return 256; + case 110 /* StaticKeyword */: return 128 /* Static */; + case 109 /* PublicKeyword */: return 16 /* Public */; + case 108 /* ProtectedKeyword */: return 64 /* Protected */; + case 107 /* PrivateKeyword */: return 32 /* Private */; + case 78 /* ExportKeyword */: return 1 /* Export */; + case 115 /* DeclareKeyword */: return 2 /* Ambient */; + case 70 /* ConstKeyword */: return 8192 /* Const */; + case 73 /* DefaultKeyword */: return 256 /* Default */; } return 0; } @@ -5574,6 +6204,9 @@ var ts; forEachChild(sourceFile, visitNode); return; function visitNode(n) { + // walk down setting parents that differ from the parent we think it should be. This + // allows us to quickly bail out of setting parents for subtrees during incremental + // parsing if (n.parent !== parent) { n.parent = parent; var saveParent = parent; @@ -5585,9 +6218,9 @@ var ts; } function shouldCheckNode(node) { switch (node.kind) { - case 8: - case 7: - case 65: + case 8 /* StringLiteral */: + case 7 /* NumericLiteral */: + case 65 /* Identifier */: return true; } return false; @@ -5604,6 +6237,8 @@ var ts; if (aggressiveChecks && shouldCheckNode(node)) { var text = oldText.substring(node.pos, node.end); } + // Ditch any existing LS children we may have created. This way we can avoid + // moving them forward. node._children = undefined; node.pos += delta; node.end += delta; @@ -5627,11 +6262,63 @@ var ts; ts.Debug.assert(element.end >= changeStart, "Adjusting an element that was entirely before the change range"); ts.Debug.assert(element.pos <= changeRangeOldEnd, "Adjusting an element that was entirely after the change range"); ts.Debug.assert(element.pos <= element.end); + // We have an element that intersects the change range in some way. It may have its + // start, or its end (or both) in the changed range. We want to adjust any part + // that intersects such that the final tree is in a consistent state. i.e. all + // chlidren have spans within the span of their parent, and all siblings are ordered + // properly. + // We may need to update both the 'pos' and the 'end' of the element. + // If the 'pos' is before the start of the change, then we don't need to touch it. + // If it isn't, then the 'pos' must be inside the change. How we update it will + // depend if delta is positive or negative. If delta is positive then we have + // something like: + // + // -------------------AAA----------------- + // -------------------BBBCCCCCCC----------------- + // + // In this case, we consider any node that started in the change range to still be + // starting at the same position. + // + // however, if the delta is negative, then we instead have something like this: + // + // -------------------XXXYYYYYYY----------------- + // -------------------ZZZ----------------- + // + // In this case, any element that started in the 'X' range will keep its position. + // However any element htat started after that will have their pos adjusted to be + // at the end of the new range. i.e. any node that started in the 'Y' range will + // be adjusted to have their start at the end of the 'Z' range. + // + // The element will keep its position if possible. Or Move backward to the new-end + // if it's in the 'Y' range. element.pos = Math.min(element.pos, changeRangeNewEnd); + // If the 'end' is after the change range, then we always adjust it by the delta + // amount. However, if the end is in the change range, then how we adjust it + // will depend on if delta is positive or negative. If delta is positive then we + // have something like: + // + // -------------------AAA----------------- + // -------------------BBBCCCCCCC----------------- + // + // In this case, we consider any node that ended inside the change range to keep its + // end position. + // + // however, if the delta is negative, then we instead have something like this: + // + // -------------------XXXYYYYYYY----------------- + // -------------------ZZZ----------------- + // + // In this case, any element that ended in the 'X' range will keep its position. + // However any element htat ended after that will have their pos adjusted to be + // at the end of the new range. i.e. any node that ended in the 'Y' range will + // be adjusted to have their end at the end of the 'Z' range. if (element.end >= changeRangeOldEnd) { + // Element ends after the change range. Always adjust the end pos. element.end += delta; } else { + // Element ends in the change range. The element will keep its position if + // possible. Or Move backward to the new-end if it's in the 'Y' range. element.end = Math.min(element.end, changeRangeNewEnd); } ts.Debug.assert(element.pos <= element.end); @@ -5656,30 +6343,43 @@ var ts; function visitNode(child) { ts.Debug.assert(child.pos <= child.end); if (child.pos > changeRangeOldEnd) { + // Node is entirely past the change range. We need to move both its pos and + // end, forward or backward appropriately. moveElementEntirelyPastChangeRange(child, false, delta, oldText, newText, aggressiveChecks); return; } + // Check if the element intersects the change range. If it does, then it is not + // reusable. Also, we'll need to recurse to see what constituent portions we may + // be able to use. var fullEnd = child.end; if (fullEnd >= changeStart) { child.intersectsChange = true; child._children = undefined; + // Adjust the pos or end (or both) of the intersecting element accordingly. adjustIntersectingElement(child, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta); forEachChild(child, visitNode, visitArray); checkNodePositions(child, aggressiveChecks); return; } + // Otherwise, the node is entirely before the change range. No need to do anything with it. ts.Debug.assert(fullEnd < changeStart); } function visitArray(array) { ts.Debug.assert(array.pos <= array.end); if (array.pos > changeRangeOldEnd) { + // Array is entirely after the change range. We need to move it, and move any of + // its children. moveElementEntirelyPastChangeRange(array, true, delta, oldText, newText, aggressiveChecks); return; } + // Check if the element intersects the change range. If it does, then it is not + // reusable. Also, we'll need to recurse to see what constituent portions we may + // be able to use. var fullEnd = array.end; if (fullEnd >= changeStart) { array.intersectsChange = true; array._children = undefined; + // Adjust the pos or end (or both) of the intersecting array accordingly. adjustIntersectingElement(array, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta); for (var _i = 0; _i < array.length; _i++) { var node = array[_i]; @@ -5687,12 +6387,26 @@ var ts; } return; } + // Otherwise, the array is entirely before the change range. No need to do anything with it. ts.Debug.assert(fullEnd < changeStart); } } function extendToAffectedRange(sourceFile, changeRange) { + // Consider the following code: + // void foo() { /; } + // + // If the text changes with an insertion of / just before the semicolon then we end up with: + // void foo() { //; } + // + // If we were to just use the changeRange a is, then we would not rescan the { token + // (as it does not intersect the actual original change range). Because an edit may + // change the token touching it, we actually need to look back *at least* one token so + // that the prior token sees that change. var maxLookahead = 1; var start = changeRange.span.start; + // the first iteration aligns us with the change start. subsequent iteration move us to + // the left by maxLookahead tokens. We only need to do this as long as we're not at the + // start of the tree. for (var i = 0; start > 0 && i <= maxLookahead; i++) { var nearestNode = findNearestNodeStartingBeforeOrAtPosition(sourceFile, start); ts.Debug.assert(nearestNode.pos <= start); @@ -5736,23 +6450,54 @@ var ts; } function visit(child) { if (ts.nodeIsMissing(child)) { + // Missing nodes are effectively invisible to us. We never even consider them + // When trying to find the nearest node before us. return; } + // If the child intersects this position, then this node is currently the nearest + // node that starts before the position. if (child.pos <= position) { if (child.pos >= bestResult.pos) { + // This node starts before the position, and is closer to the position than + // the previous best node we found. It is now the new best node. bestResult = child; } + // Now, the node may overlap the position, or it may end entirely before the + // position. If it overlaps with the position, then either it, or one of its + // children must be the nearest node before the position. So we can just + // recurse into this child to see if we can find something better. if (position < child.end) { + // The nearest node is either this child, or one of the children inside + // of it. We've already marked this child as the best so far. Recurse + // in case one of the children is better. forEachChild(child, visit); + // Once we look at the children of this node, then there's no need to + // continue any further. return true; } else { ts.Debug.assert(child.end <= position); + // The child ends entirely before this position. Say you have the following + // (where $ is the position) + // + // ? $ : <...> <...> + // + // We would want to find the nearest preceding node in "complex expr 2". + // To support that, we keep track of this node, and once we're done searching + // for a best node, we recurse down this node to see if we can find a good + // result in it. + // + // This approach allows us to quickly skip over nodes that are entirely + // before the position, while still allowing us to find any nodes in the + // last one that might be what we want. lastNodeEntirelyBeforePosition = child; } } else { ts.Debug.assert(child.pos > position); + // We're now at a node that is entirely past the position we're searching for. + // This node (and all following nodes) could never contribute to the result, + // so just skip them by returning 'true' here. return true; } } @@ -5761,7 +6506,7 @@ var ts; var oldText = sourceFile.text; if (textChangeRange) { ts.Debug.assert((oldText.length - textChangeRange.span.length + textChangeRange.newLength) === newText.length); - if (aggressiveChecks || ts.Debug.shouldAssert(3)) { + if (aggressiveChecks || ts.Debug.shouldAssert(3 /* VeryAggressive */)) { var oldTextPrefix = oldText.substr(0, textChangeRange.span.start); var newTextPrefix = newText.substr(0, textChangeRange.span.start); ts.Debug.assert(oldTextPrefix === newTextPrefix); @@ -5771,39 +6516,96 @@ var ts; } } } + // Produces a new SourceFile for the 'newText' provided. The 'textChangeRange' parameter + // indicates what changed between the 'text' that this SourceFile has and the 'newText'. + // The SourceFile will be created with the compiler attempting to reuse as many nodes from + // this file as possible. + // + // Note: this function mutates nodes from this SourceFile. That means any existing nodes + // from this SourceFile that are being held onto may change as a result (including + // becoming detached from any SourceFile). It is recommended that this SourceFile not + // be used once 'update' is called on it. function updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks) { - aggressiveChecks = aggressiveChecks || ts.Debug.shouldAssert(2); + aggressiveChecks = aggressiveChecks || ts.Debug.shouldAssert(2 /* Aggressive */); checkChangeRange(sourceFile, newText, textChangeRange, aggressiveChecks); if (ts.textChangeRangeIsUnchanged(textChangeRange)) { + // if the text didn't change, then we can just return our current source file as-is. return sourceFile; } if (sourceFile.statements.length === 0) { + // If we don't have any statements in the current source file, then there's no real + // way to incrementally parse. So just do a full parse instead. return parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, undefined, true); } + // Make sure we're not trying to incrementally update a source file more than once. Once + // we do an update the original source file is considered unusbale from that point onwards. + // + // This is because we do incremental parsing in-place. i.e. we take nodes from the old + // tree and give them new positions and parents. From that point on, trusting the old + // tree at all is not possible as far too much of it may violate invariants. var incrementalSourceFile = sourceFile; ts.Debug.assert(!incrementalSourceFile.hasBeenIncrementallyParsed); incrementalSourceFile.hasBeenIncrementallyParsed = true; var oldText = sourceFile.text; var syntaxCursor = createSyntaxCursor(sourceFile); + // Make the actual change larger so that we know to reparse anything whose lookahead + // might have intersected the change. var changeRange = extendToAffectedRange(sourceFile, textChangeRange); checkChangeRange(sourceFile, newText, changeRange, aggressiveChecks); + // Ensure that extending the affected range only moved the start of the change range + // earlier in the file. ts.Debug.assert(changeRange.span.start <= textChangeRange.span.start); ts.Debug.assert(ts.textSpanEnd(changeRange.span) === ts.textSpanEnd(textChangeRange.span)); ts.Debug.assert(ts.textSpanEnd(ts.textChangeRangeNewSpan(changeRange)) === ts.textSpanEnd(ts.textChangeRangeNewSpan(textChangeRange))); + // The is the amount the nodes after the edit range need to be adjusted. It can be + // positive (if the edit added characters), negative (if the edit deleted characters) + // or zero (if this was a pure overwrite with nothing added/removed). var delta = ts.textChangeRangeNewSpan(changeRange).length - changeRange.span.length; + // If we added or removed characters during the edit, then we need to go and adjust all + // the nodes after the edit. Those nodes may move forward (if we inserted chars) or they + // may move backward (if we deleted chars). + // + // Doing this helps us out in two ways. First, it means that any nodes/tokens we want + // to reuse are already at the appropriate position in the new text. That way when we + // reuse them, we don't have to figure out if they need to be adjusted. Second, it makes + // it very easy to determine if we can reuse a node. If the node's position is at where + // we are in the text, then we can reuse it. Otherwise we can't. If the node's position + // is ahead of us, then we'll need to rescan tokens. If the node's position is behind + // us, then we'll need to skip it or crumble it as appropriate + // + // We will also adjust the positions of nodes that intersect the change range as well. + // By doing this, we ensure that all the positions in the old tree are consistent, not + // just the positions of nodes entirely before/after the change range. By being + // consistent, we can then easily map from positions to nodes in the old tree easily. + // + // Also, mark any syntax elements that intersect the changed span. We know, up front, + // that we cannot reuse these elements. updateTokenPositionsAndMarkElements(incrementalSourceFile, changeRange.span.start, ts.textSpanEnd(changeRange.span), ts.textSpanEnd(ts.textChangeRangeNewSpan(changeRange)), delta, oldText, newText, aggressiveChecks); + // Now that we've set up our internal incremental state just proceed and parse the + // source file in the normal fashion. When possible the parser will retrieve and + // reuse nodes from the old tree. + // + // Note: passing in 'true' for setNodeParents is very important. When incrementally + // parsing, we will be reusing nodes from the old tree, and placing it into new + // parents. If we don't set the parents now, we'll end up with an observably + // inconsistent tree. Setting the parents on the new tree should be very fast. We + // will immediately bail out of walking any subtrees when we can see that their parents + // are already correct. var result = parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, syntaxCursor, true); return result; } ts.updateSourceFile = updateSourceFile; function isEvalOrArgumentsIdentifier(node) { - return node.kind === 65 && + return node.kind === 65 /* Identifier */ && (node.text === "eval" || node.text === "arguments"); } ts.isEvalOrArgumentsIdentifier = isEvalOrArgumentsIdentifier; + /// Should be called only on prologue directives (isPrologueDirective(node) should be true) function isUseStrictPrologueDirective(sourceFile, node) { ts.Debug.assert(ts.isPrologueDirective(node)); var nodeText = ts.getSourceTextOfNodeFromSourceFile(sourceFile, node.expression); + // Note: the node text must be exactly "use strict" or 'use strict'. It is not ok for the + // string to contain unicode escapes (as per ES5). return nodeText === '"use strict"' || nodeText === "'use strict'"; } var InvalidPosition; @@ -5815,42 +6617,68 @@ var ts; var currentArrayIndex = 0; ts.Debug.assert(currentArrayIndex < currentArray.length); var current = currentArray[currentArrayIndex]; - var lastQueriedPosition = -1; + var lastQueriedPosition = -1 /* Value */; return { currentNode: function (position) { + // Only compute the current node if the position is different than the last time + // we were asked. The parser commonly asks for the node at the same position + // twice. Once to know if can read an appropriate list element at a certain point, + // and then to actually read and consume the node. if (position !== lastQueriedPosition) { + // Much of the time the parser will need the very next node in the array that + // we just returned a node from.So just simply check for that case and move + // forward in the array instead of searching for the node again. if (current && current.end === position && currentArrayIndex < (currentArray.length - 1)) { currentArrayIndex++; current = currentArray[currentArrayIndex]; } + // If we don't have a node, or the node we have isn't in the right position, + // then try to find a viable node at the position requested. if (!current || current.pos !== position) { findHighestListElementThatStartsAtPosition(position); } } + // Cache this query so that we don't do any extra work if the parser calls back + // into us. Note: this is very common as the parser will make pairs of calls like + // 'isListElement -> parseListElement'. If we were unable to find a node when + // called with 'isListElement', we don't want to redo the work when parseListElement + // is called immediately after. lastQueriedPosition = position; + // Either we don'd have a node, or we have a node at the position being asked for. ts.Debug.assert(!current || current.pos === position); return current; } }; + // Finds the highest element in the tree we can find that starts at the provided position. + // The element must be a direct child of some node list in the tree. This way after we + // return it, we can easily return its next sibling in the list. function findHighestListElementThatStartsAtPosition(position) { + // Clear out any cached state about the last node we found. currentArray = undefined; - currentArrayIndex = -1; + currentArrayIndex = -1 /* Value */; current = undefined; + // Recurse into the source file to find the highest node at this position. forEachChild(sourceFile, visitNode, visitArray); return; function visitNode(node) { if (position >= node.pos && position < node.end) { + // Position was within this node. Keep searching deeper to find the node. forEachChild(node, visitNode, visitArray); + // don't procede any futher in the search. return true; } + // position wasn't in this node, have to keep searching. return false; } function visitArray(array) { if (position >= array.pos && position < array.end) { + // position was in this array. Search through this array to see if we find a + // viable element. for (var i = 0, n = array.length; i < n; i++) { var child = array[i]; if (child) { if (child.pos === position) { + // Found the right node. We're done. currentArray = array; currentArrayIndex = i; current = child; @@ -5858,6 +6686,8 @@ var ts; } else { if (child.pos < position && position < child.end) { + // Position in somewhere within this child. Search in it and + // stop searching in this array. forEachChild(child, visitNode, visitArray); return true; } @@ -5865,6 +6695,7 @@ var ts; } } } + // position wasn't in this array, have to keep searching. return false; } } @@ -5879,13 +6710,13 @@ var ts; ts.createSourceFile = createSourceFile; function parseSourceFile(fileName, sourceText, languageVersion, syntaxCursor, setParentNodes) { if (setParentNodes === void 0) { setParentNodes = false; } - var disallowInAndDecoratorContext = 2 | 16; + var disallowInAndDecoratorContext = 2 /* DisallowIn */ | 16 /* Decorator */; var parsingContext = 0; var identifiers = {}; var identifierCount = 0; var nodeCount = 0; var token; - var sourceFile = createNode(227, 0); + var sourceFile = createNode(227 /* SourceFile */, 0); sourceFile.pos = 0; sourceFile.end = sourceText.length; sourceFile.text = sourceText; @@ -5893,14 +6724,88 @@ var ts; sourceFile.bindDiagnostics = []; sourceFile.languageVersion = languageVersion; sourceFile.fileName = ts.normalizePath(fileName); - sourceFile.flags = ts.fileExtensionIs(sourceFile.fileName, ".d.ts") ? 2048 : 0; + sourceFile.flags = ts.fileExtensionIs(sourceFile.fileName, ".d.ts") ? 2048 /* DeclarationFile */ : 0; + // Flags that dictate what parsing context we're in. For example: + // Whether or not we are in strict parsing mode. All that changes in strict parsing mode is + // that some tokens that would be considered identifiers may be considered keywords. + // + // When adding more parser context flags, consider which is the more common case that the + // flag will be in. This should be the 'false' state for that flag. The reason for this is + // that we don't store data in our nodes unless the value is in the *non-default* state. So, + // for example, more often than code 'allows-in' (or doesn't 'disallow-in'). We opt for + // 'disallow-in' set to 'false'. Otherwise, if we had 'allowsIn' set to 'true', then almost + // all nodes would need extra state on them to store this info. + // + // Note: 'allowIn' and 'allowYield' track 1:1 with the [in] and [yield] concepts in the ES6 + // grammar specification. + // + // An important thing about these context concepts. By default they are effectively inherited + // while parsing through every grammar production. i.e. if you don't change them, then when + // you parse a sub-production, it will have the same context values as the parent production. + // This is great most of the time. After all, consider all the 'expression' grammar productions + // and how nearly all of them pass along the 'in' and 'yield' context values: + // + // EqualityExpression[In, Yield] : + // RelationalExpression[?In, ?Yield] + // EqualityExpression[?In, ?Yield] == RelationalExpression[?In, ?Yield] + // EqualityExpression[?In, ?Yield] != RelationalExpression[?In, ?Yield] + // EqualityExpression[?In, ?Yield] === RelationalExpression[?In, ?Yield] + // EqualityExpression[?In, ?Yield] !== RelationalExpression[?In, ?Yield] + // + // Where you have to be careful is then understanding what the points are in the grammar + // where the values are *not* passed along. For example: + // + // SingleNameBinding[Yield,GeneratorParameter] + // [+GeneratorParameter]BindingIdentifier[Yield] Initializer[In]opt + // [~GeneratorParameter]BindingIdentifier[?Yield]Initializer[In, ?Yield]opt + // + // Here this is saying that if the GeneratorParameter context flag is set, that we should + // explicitly set the 'yield' context flag to false before calling into the BindingIdentifier + // and we should explicitly unset the 'yield' context flag before calling into the Initializer. + // production. Conversely, if the GeneratorParameter context flag is not set, then we + // should leave the 'yield' context flag alone. + // + // Getting this all correct is tricky and requires careful reading of the grammar to + // understand when these values should be changed versus when they should be inherited. + // + // Note: it should not be necessary to save/restore these flags during speculative/lookahead + // parsing. These context flags are naturally stored and restored through normal recursive + // descent parsing and unwinding. var contextFlags = 0; + // Whether or not we've had a parse error since creating the last AST node. If we have + // encountered an error, it will be stored on the next AST node we create. Parse errors + // can be broken down into three categories: + // + // 1) An error that occurred during scanning. For example, an unterminated literal, or a + // character that was completely not understood. + // + // 2) A token was expected, but was not present. This type of error is commonly produced + // by the 'parseExpected' function. + // + // 3) A token was present that no parsing function was able to consume. This type of error + // only occurs in the 'abortParsingListOrMoveToNextToken' function when the parser + // decides to skip the token. + // + // In all of these cases, we want to mark the next node as having had an error before it. + // With this mark, we can know in incremental settings if this node can be reused, or if + // we have to reparse it. If we don't keep this information around, we may just reuse the + // node. in that event we would then not produce the same errors as we did before, causing + // significant confusion problems. + // + // Note: it is necessary that this value be saved/restored during speculative/lookahead + // parsing. During lookahead parsing, we will often create a node. That node will have + // this value attached, and then this value will be set back to 'false'. If we decide to + // rewind, we must get back to the same value we had prior to the lookahead. + // + // Note: any errors at the end of the file that do not precede a regular node, should get + // attached to the EOF token. var parseErrorBeforeNextFinishedNode = false; + // Create and prime the scanner before parsing the source elements. var scanner = ts.createScanner(languageVersion, true, sourceText, scanError); token = nextToken(); processReferenceComments(sourceFile); - sourceFile.statements = parseList(0, true, parseSourceElement); - ts.Debug.assert(token === 1); + sourceFile.statements = parseList(0 /* SourceElements */, true, parseSourceElement); + ts.Debug.assert(token === 1 /* EndOfFileToken */); sourceFile.endOfFileToken = parseTokenNode(); setExternalModuleIndicator(sourceFile); sourceFile.nodeCount = nodeCount; @@ -5920,19 +6825,19 @@ var ts; } } function setStrictModeContext(val) { - setContextFlag(val, 1); + setContextFlag(val, 1 /* StrictMode */); } function setDisallowInContext(val) { - setContextFlag(val, 2); + setContextFlag(val, 2 /* DisallowIn */); } function setYieldContext(val) { - setContextFlag(val, 4); + setContextFlag(val, 4 /* Yield */); } function setGeneratorParameterContext(val) { - setContextFlag(val, 8); + setContextFlag(val, 8 /* GeneratorParameter */); } function setDecoratorContext(val) { - setContextFlag(val, 16); + setContextFlag(val, 16 /* Decorator */); } function doOutsideOfContext(flags, func) { var currentContextFlags = contextFlags & flags; @@ -5942,19 +6847,22 @@ var ts; setContextFlag(true, currentContextFlags); return result; } + // no need to do anything special as we are not in any of the requested contexts return func(); } function allowInAnd(func) { - if (contextFlags & 2) { + if (contextFlags & 2 /* DisallowIn */) { setDisallowInContext(false); var result = func(); setDisallowInContext(true); return result; } + // no need to do anything special if 'in' is already allowed. return func(); } function disallowInAnd(func) { - if (contextFlags & 2) { + if (contextFlags & 2 /* DisallowIn */) { + // no need to do anything special if 'in' is already disallowed. return func(); } setDisallowInContext(true); @@ -5963,7 +6871,8 @@ var ts; return result; } function doInYieldContext(func) { - if (contextFlags & 4) { + if (contextFlags & 4 /* Yield */) { + // no need to do anything special if we're already in the [Yield] context. return func(); } setYieldContext(true); @@ -5972,16 +6881,18 @@ var ts; return result; } function doOutsideOfYieldContext(func) { - if (contextFlags & 4) { + if (contextFlags & 4 /* Yield */) { setYieldContext(false); var result = func(); setYieldContext(true); return result; } + // no need to do anything special if we're not in the [Yield] context. return func(); } function doInDecoratorContext(func) { - if (contextFlags & 16) { + if (contextFlags & 16 /* Decorator */) { + // no need to do anything special if we're already in the [Decorator] context. return func(); } setDecoratorContext(true); @@ -5990,19 +6901,19 @@ var ts; return result; } function inYieldContext() { - return (contextFlags & 4) !== 0; + return (contextFlags & 4 /* Yield */) !== 0; } function inStrictModeContext() { - return (contextFlags & 1) !== 0; + return (contextFlags & 1 /* StrictMode */) !== 0; } function inGeneratorParameterContext() { - return (contextFlags & 8) !== 0; + return (contextFlags & 8 /* GeneratorParameter */) !== 0; } function inDisallowInContext() { - return (contextFlags & 2) !== 0; + return (contextFlags & 2 /* DisallowIn */) !== 0; } function inDecoratorContext() { - return (contextFlags & 16) !== 0; + return (contextFlags & 16 /* Decorator */) !== 0; } function parseErrorAtCurrentToken(message, arg0) { var start = scanner.getTokenPos(); @@ -6010,10 +6921,13 @@ var ts; parseErrorAtPosition(start, length, message, arg0); } function parseErrorAtPosition(start, length, message, arg0) { + // Don't report another error if it would just be at the same position as the last error. var lastError = ts.lastOrUndefined(sourceFile.parseDiagnostics); if (!lastError || start !== lastError.start) { sourceFile.parseDiagnostics.push(ts.createFileDiagnostic(sourceFile, start, length, message, arg0)); } + // Mark that we've encountered an error. We'll set an appropriate bit on the next + // node we finish so that it can't be reused incrementally. parseErrorBeforeNextFinishedNode = true; } function scanError(message, length) { @@ -6042,14 +6956,25 @@ var ts; return token = scanner.reScanTemplateToken(); } function speculationHelper(callback, isLookAhead) { + // Keep track of the state we'll need to rollback to if lookahead fails (or if the + // caller asked us to always reset our state). var saveToken = token; var saveParseDiagnosticsLength = sourceFile.parseDiagnostics.length; var saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode; + // Note: it is not actually necessary to save/restore the context flags here. That's + // because the saving/restorating of these flags happens naturally through the recursive + // descent nature of our parser. However, we still store this here just so we can + // assert that that invariant holds. var saveContextFlags = contextFlags; + // If we're only looking ahead, then tell the scanner to only lookahead as well. + // Otherwise, if we're actually speculatively parsing, then tell the scanner to do the + // same. var result = isLookAhead ? scanner.lookAhead(callback) : scanner.tryScan(callback); ts.Debug.assert(saveContextFlags === contextFlags); + // If our callback returned something 'falsy' or we're just looking ahead, + // then unconditionally restore us to where we were. if (!result || isLookAhead) { token = saveToken; sourceFile.parseDiagnostics.length = saveParseDiagnosticsLength; @@ -6057,26 +6982,36 @@ var ts; } return result; } + // Invokes the provided callback then unconditionally restores the parser to the state it + // was in immediately prior to invoking the callback. The result of invoking the callback + // is returned from this function. function lookAhead(callback) { return speculationHelper(callback, true); } + // Invokes the provided callback. If the callback returns something falsy, then it restores + // the parser to the state it was in immediately prior to invoking the callback. If the + // callback returns something truthy, then the parser state is not rolled back. The result + // of invoking the callback is returned from this function. function tryParse(callback) { return speculationHelper(callback, false); } function isIdentifier() { - if (token === 65) { + if (token === 65 /* Identifier */) { return true; } - if (token === 111 && inYieldContext()) { + // If we have a 'yield' keyword, and we're in the [yield] context, then 'yield' is + // considered a keyword and is not an identifier. + if (token === 111 /* YieldKeyword */ && inYieldContext()) { return false; } - return inStrictModeContext() ? token > 111 : token > 101; + return inStrictModeContext() ? token > 111 /* LastFutureReservedWord */ : token > 101 /* LastReservedWord */; } function parseExpected(kind, diagnosticMessage) { if (token === kind) { nextToken(); return true; } + // Report specific message if provided with one. Otherwise, report generic fallback message. if (diagnosticMessage) { parseErrorAtCurrentToken(diagnosticMessage); } @@ -6108,20 +7043,23 @@ var ts; return finishNode(node); } function canParseSemicolon() { - if (token === 22) { + // If there's a real semicolon, then we can always parse it out. + if (token === 22 /* SemicolonToken */) { return true; } - return token === 15 || token === 1 || scanner.hasPrecedingLineBreak(); + // We can parse out an optional semicolon in ASI cases in the following cases. + return token === 15 /* CloseBraceToken */ || token === 1 /* EndOfFileToken */ || scanner.hasPrecedingLineBreak(); } function parseSemicolon() { if (canParseSemicolon()) { - if (token === 22) { + if (token === 22 /* SemicolonToken */) { + // consume the semicolon if it was explicitly provided. nextToken(); } return true; } else { - return parseExpected(22); + return parseExpected(22 /* SemicolonToken */); } } function createNode(kind, pos) { @@ -6139,9 +7077,12 @@ var ts; if (contextFlags) { node.parserContextFlags = contextFlags; } + // Keep track on the node if we encountered an error while parsing it. If we did, then + // we cannot reuse the node incrementally. Once we've marked this node, clear out the + // flag so that we don't mark any subsequent nodes. if (parseErrorBeforeNextFinishedNode) { parseErrorBeforeNextFinishedNode = false; - node.parserContextFlags |= 32; + node.parserContextFlags |= 32 /* ThisNodeHasError */; } return node; } @@ -6160,15 +7101,18 @@ var ts; text = ts.escapeIdentifier(text); return ts.hasProperty(identifiers, text) ? identifiers[text] : (identifiers[text] = text); } + // An identifier that starts with two underscores has an extra underscore character prepended to it to avoid issues + // with magic property names like '__proto__'. The 'identifiers' object is used to share a single string instance for + // each identifier in order to reduce memory consumption. function createIdentifier(isIdentifier, diagnosticMessage) { identifierCount++; if (isIdentifier) { - var node = createNode(65); + var node = createNode(65 /* Identifier */); node.text = internIdentifier(scanner.getTokenValue()); nextToken(); return finishNode(node); } - return createMissingNode(65, false, diagnosticMessage || ts.Diagnostics.Identifier_expected); + return createMissingNode(65 /* Identifier */, false, diagnosticMessage || ts.Diagnostics.Identifier_expected); } function parseIdentifier(diagnosticMessage) { return createIdentifier(isIdentifier(), diagnosticMessage); @@ -6178,21 +7122,32 @@ var ts; } function isLiteralPropertyName() { return isIdentifierOrKeyword() || - token === 8 || - token === 7; + token === 8 /* StringLiteral */ || + token === 7 /* NumericLiteral */; } function parsePropertyName() { - if (token === 8 || token === 7) { + if (token === 8 /* StringLiteral */ || token === 7 /* NumericLiteral */) { return parseLiteralNode(true); } - if (token === 18) { + if (token === 18 /* OpenBracketToken */) { return parseComputedPropertyName(); } return parseIdentifierName(); } function parseComputedPropertyName() { - var node = createNode(127); - parseExpected(18); + // PropertyName[Yield,GeneratorParameter] : + // LiteralPropertyName + // [+GeneratorParameter] ComputedPropertyName + // [~GeneratorParameter] ComputedPropertyName[?Yield] + // + // ComputedPropertyName[Yield] : + // [ AssignmentExpression[In, ?Yield] ] + // + var node = createNode(127 /* ComputedPropertyName */); + parseExpected(18 /* OpenBracketToken */); + // We parse any expression (including a comma expression). But the grammar + // says that only an assignment expression is allowed, so the grammar checker + // will error if it sees a comma expression. var yieldContext = inYieldContext(); if (inGeneratorParameterContext()) { setYieldContext(false); @@ -6201,7 +7156,7 @@ var ts; if (inGeneratorParameterContext()) { setYieldContext(yieldContext); } - parseExpected(19); + parseExpected(19 /* CloseBracketToken */); return finishNode(node); } function parseContextualModifier(t) { @@ -6215,92 +7170,112 @@ var ts; return ts.isModifier(token) && tryParse(nextTokenCanFollowContextualModifier); } function nextTokenCanFollowContextualModifier() { - if (token === 70) { - return nextToken() === 77; + if (token === 70 /* ConstKeyword */) { + // 'const' is only a modifier if followed by 'enum'. + return nextToken() === 77 /* EnumKeyword */; } - if (token === 78) { + if (token === 78 /* ExportKeyword */) { nextToken(); - if (token === 73) { + if (token === 73 /* DefaultKeyword */) { return lookAhead(nextTokenIsClassOrFunction); } - return token !== 35 && token !== 14 && canFollowModifier(); + return token !== 35 /* AsteriskToken */ && token !== 14 /* OpenBraceToken */ && canFollowModifier(); } - if (token === 73) { + if (token === 73 /* DefaultKeyword */) { return nextTokenIsClassOrFunction(); } nextToken(); return canFollowModifier(); } function canFollowModifier() { - return token === 18 - || token === 14 - || token === 35 + return token === 18 /* OpenBracketToken */ + || token === 14 /* OpenBraceToken */ + || token === 35 /* AsteriskToken */ || isLiteralPropertyName(); } function nextTokenIsClassOrFunction() { nextToken(); - return token === 69 || token === 83; + return token === 69 /* ClassKeyword */ || token === 83 /* FunctionKeyword */; } + // True if positioned at the start of a list element function isListElement(parsingContext, inErrorRecovery) { var node = currentNode(parsingContext); if (node) { return true; } switch (parsingContext) { - case 0: - case 1: + case 0 /* SourceElements */: + case 1 /* ModuleElements */: return isSourceElement(inErrorRecovery); - case 2: - case 4: + case 2 /* BlockStatements */: + case 4 /* SwitchClauseStatements */: return isStartOfStatement(inErrorRecovery); - case 3: - return token === 67 || token === 73; - case 5: + case 3 /* SwitchClauses */: + return token === 67 /* CaseKeyword */ || token === 73 /* DefaultKeyword */; + case 5 /* TypeMembers */: return isStartOfTypeMember(); - case 6: - return lookAhead(isClassMemberStart) || (token === 22 && !inErrorRecovery); - case 7: - return token === 18 || isLiteralPropertyName(); - case 13: - return token === 18 || token === 35 || isLiteralPropertyName(); - case 10: + case 6 /* ClassMembers */: + // We allow semicolons as class elements (as specified by ES6) as long as we're + // not in error recovery. If we're in error recovery, we don't want an errant + // semicolon to be treated as a class member (since they're almost always used + // for statements. + return lookAhead(isClassMemberStart) || (token === 22 /* SemicolonToken */ && !inErrorRecovery); + case 7 /* EnumMembers */: + // Include open bracket computed properties. This technically also lets in indexers, + // which would be a candidate for improved error reporting. + return token === 18 /* OpenBracketToken */ || isLiteralPropertyName(); + case 13 /* ObjectLiteralMembers */: + return token === 18 /* OpenBracketToken */ || token === 35 /* AsteriskToken */ || isLiteralPropertyName(); + case 10 /* ObjectBindingElements */: return isLiteralPropertyName(); - case 8: - if (token === 14) { + case 8 /* HeritageClauseElement */: + // If we see { } then only consume it as an expression if it is followed by , or { + // That way we won't consume the body of a class in its heritage clause. + if (token === 14 /* OpenBraceToken */) { return lookAhead(isValidHeritageClauseObjectLiteral); } if (!inErrorRecovery) { return isStartOfLeftHandSideExpression() && !isHeritageClauseExtendsOrImplementsKeyword(); } else { + // If we're in error recovery we tighten up what we're willing to match. + // That way we don't treat something like "this" as a valid heritage clause + // element during recovery. return isIdentifier() && !isHeritageClauseExtendsOrImplementsKeyword(); } - case 9: + case 9 /* VariableDeclarations */: return isIdentifierOrPattern(); - case 11: - return token === 23 || token === 21 || isIdentifierOrPattern(); - case 16: + case 11 /* ArrayBindingElements */: + return token === 23 /* CommaToken */ || token === 21 /* DotDotDotToken */ || isIdentifierOrPattern(); + case 16 /* TypeParameters */: return isIdentifier(); - case 12: - case 14: - return token === 23 || token === 21 || isStartOfExpression(); - case 15: + case 12 /* ArgumentExpressions */: + case 14 /* ArrayLiteralMembers */: + return token === 23 /* CommaToken */ || token === 21 /* DotDotDotToken */ || isStartOfExpression(); + case 15 /* Parameters */: return isStartOfParameter(); - case 17: - case 18: - return token === 23 || isStartOfType(); - case 19: + case 17 /* TypeArguments */: + case 18 /* TupleElementTypes */: + return token === 23 /* CommaToken */ || isStartOfType(); + case 19 /* HeritageClauses */: return isHeritageClause(); - case 20: + case 20 /* ImportOrExportSpecifiers */: return isIdentifierOrKeyword(); } ts.Debug.fail("Non-exhaustive case in 'isListElement'."); } function isValidHeritageClauseObjectLiteral() { - ts.Debug.assert(token === 14); - if (nextToken() === 15) { + ts.Debug.assert(token === 14 /* OpenBraceToken */); + if (nextToken() === 15 /* CloseBraceToken */) { + // if we see "extends {}" then only treat the {} as what we're extending (and not + // the class body) if we have: + // + // extends {} { + // extends {}, + // extends {} extends + // extends {} implements var next = nextToken(); - return next === 23 || next === 14 || next === 79 || next === 103; + return next === 23 /* CommaToken */ || next === 14 /* OpenBraceToken */ || next === 79 /* ExtendsKeyword */ || next === 103 /* ImplementsKeyword */; } return true; } @@ -6309,8 +7284,8 @@ var ts; return isIdentifier(); } function isHeritageClauseExtendsOrImplementsKeyword() { - if (token === 103 || - token === 79) { + if (token === 103 /* ImplementsKeyword */ || + token === 79 /* ExtendsKeyword */) { return lookAhead(nextTokenIsStartOfExpression); } return false; @@ -6319,57 +7294,73 @@ var ts; nextToken(); return isStartOfExpression(); } + // True if positioned at a list terminator function isListTerminator(kind) { - if (token === 1) { + if (token === 1 /* EndOfFileToken */) { + // Being at the end of the file ends all lists. return true; } switch (kind) { - case 1: - case 2: - case 3: - case 5: - case 6: - case 7: - case 13: - case 10: - case 20: - return token === 15; - case 4: - return token === 15 || token === 67 || token === 73; - case 8: - return token === 14 || token === 79 || token === 103; - case 9: + case 1 /* ModuleElements */: + case 2 /* BlockStatements */: + case 3 /* SwitchClauses */: + case 5 /* TypeMembers */: + case 6 /* ClassMembers */: + case 7 /* EnumMembers */: + case 13 /* ObjectLiteralMembers */: + case 10 /* ObjectBindingElements */: + case 20 /* ImportOrExportSpecifiers */: + return token === 15 /* CloseBraceToken */; + case 4 /* SwitchClauseStatements */: + return token === 15 /* CloseBraceToken */ || token === 67 /* CaseKeyword */ || token === 73 /* DefaultKeyword */; + case 8 /* HeritageClauseElement */: + return token === 14 /* OpenBraceToken */ || token === 79 /* ExtendsKeyword */ || token === 103 /* ImplementsKeyword */; + case 9 /* VariableDeclarations */: return isVariableDeclaratorListTerminator(); - case 16: - return token === 25 || token === 16 || token === 14 || token === 79 || token === 103; - case 12: - return token === 17 || token === 22; - case 14: - case 18: - case 11: - return token === 19; - case 15: - return token === 17 || token === 19; - case 17: - return token === 25 || token === 16; - case 19: - return token === 14 || token === 15; + case 16 /* TypeParameters */: + // Tokens other than '>' are here for better error recovery + return token === 25 /* GreaterThanToken */ || token === 16 /* OpenParenToken */ || token === 14 /* OpenBraceToken */ || token === 79 /* ExtendsKeyword */ || token === 103 /* ImplementsKeyword */; + case 12 /* ArgumentExpressions */: + // Tokens other than ')' are here for better error recovery + return token === 17 /* CloseParenToken */ || token === 22 /* SemicolonToken */; + case 14 /* ArrayLiteralMembers */: + case 18 /* TupleElementTypes */: + case 11 /* ArrayBindingElements */: + return token === 19 /* CloseBracketToken */; + case 15 /* Parameters */: + // Tokens other than ')' and ']' (the latter for index signatures) are here for better error recovery + return token === 17 /* CloseParenToken */ || token === 19 /* CloseBracketToken */ /*|| token === SyntaxKind.OpenBraceToken*/; + case 17 /* TypeArguments */: + // Tokens other than '>' are here for better error recovery + return token === 25 /* GreaterThanToken */ || token === 16 /* OpenParenToken */; + case 19 /* HeritageClauses */: + return token === 14 /* OpenBraceToken */ || token === 15 /* CloseBraceToken */; } } function isVariableDeclaratorListTerminator() { + // If we can consume a semicolon (either explicitly, or with ASI), then consider us done + // with parsing the list of variable declarators. if (canParseSemicolon()) { return true; } + // in the case where we're parsing the variable declarator of a 'for-in' statement, we + // are done if we see an 'in' keyword in front of us. Same with for-of if (isInOrOfKeyword(token)) { return true; } - if (token === 32) { + // ERROR RECOVERY TWEAK: + // For better error recovery, if we see an '=>' then we just stop immediately. We've got an + // arrow function here and it's going to be very unlikely that we'll resynchronize and get + // another variable declaration. + if (token === 32 /* EqualsGreaterThanToken */) { return true; } + // Keep trying to parse out variable declarators. return false; } + // True if positioned at element or terminator of the current list or any enclosing list function isInSomeParsingContext() { - for (var kind = 0; kind < 21; kind++) { + for (var kind = 0; kind < 21 /* Count */; kind++) { if (parsingContext & (1 << kind)) { if (isListElement(kind, true) || isListTerminator(kind)) { return true; @@ -6378,6 +7369,7 @@ var ts; } return false; } + // Parses a list of elements function parseList(kind, checkForStrictMode, parseElement) { var saveParsingContext = parsingContext; parsingContext |= 1 << kind; @@ -6388,6 +7380,7 @@ var ts; if (isListElement(kind, false)) { var element = parseListElement(kind, parseElement); result.push(element); + // test elements only if we are not already in strict mode if (checkForStrictMode && !inStrictModeContext()) { if (ts.isPrologueDirective(element)) { if (isUseStrictPrologueDirective(sourceFile, element)) { @@ -6418,76 +7411,130 @@ var ts; return parseElement(); } function currentNode(parsingContext) { + // If there is an outstanding parse error that we've encountered, but not attached to + // some node, then we cannot get a node from the old source tree. This is because we + // want to mark the next node we encounter as being unusable. + // + // Note: This may be too conservative. Perhaps we could reuse the node and set the bit + // on it (or its leftmost child) as having the error. For now though, being conservative + // is nice and likely won't ever affect perf. if (parseErrorBeforeNextFinishedNode) { return undefined; } if (!syntaxCursor) { + // if we don't have a cursor, we could never return a node from the old tree. return undefined; } var node = syntaxCursor.currentNode(scanner.getStartPos()); + // Can't reuse a missing node. if (ts.nodeIsMissing(node)) { return undefined; } + // Can't reuse a node that intersected the change range. if (node.intersectsChange) { return undefined; } + // Can't reuse a node that contains a parse error. This is necessary so that we + // produce the same set of errors again. if (ts.containsParseError(node)) { return undefined; } - var nodeContextFlags = node.parserContextFlags & 63; + // We can only reuse a node if it was parsed under the same strict mode that we're + // currently in. i.e. if we originally parsed a node in non-strict mode, but then + // the user added 'using strict' at the top of the file, then we can't use that node + // again as the presense of strict mode may cause us to parse the tokens in the file + // differetly. + // + // Note: we *can* reuse tokens when the strict mode changes. That's because tokens + // are unaffected by strict mode. It's just the parser will decide what to do with it + // differently depending on what mode it is in. + // + // This also applies to all our other context flags as well. + var nodeContextFlags = node.parserContextFlags & 63 /* ParserGeneratedFlags */; if (nodeContextFlags !== contextFlags) { return undefined; } + // Ok, we have a node that looks like it could be reused. Now verify that it is valid + // in the currest list parsing context that we're currently at. if (!canReuseNode(node, parsingContext)) { return undefined; } return node; } function consumeNode(node) { + // Move the scanner so it is after the node we just consumed. scanner.setTextPos(node.end); nextToken(); return node; } function canReuseNode(node, parsingContext) { switch (parsingContext) { - case 1: + case 1 /* ModuleElements */: return isReusableModuleElement(node); - case 6: + case 6 /* ClassMembers */: return isReusableClassMember(node); - case 3: + case 3 /* SwitchClauses */: return isReusableSwitchClause(node); - case 2: - case 4: + case 2 /* BlockStatements */: + case 4 /* SwitchClauseStatements */: return isReusableStatement(node); - case 7: + case 7 /* EnumMembers */: return isReusableEnumMember(node); - case 5: + case 5 /* TypeMembers */: return isReusableTypeMember(node); - case 9: + case 9 /* VariableDeclarations */: return isReusableVariableDeclaration(node); - case 15: + case 15 /* Parameters */: return isReusableParameter(node); - case 19: - case 16: - case 18: - case 17: - case 12: - case 13: - case 8: + // Any other lists we do not care about reusing nodes in. But feel free to add if + // you can do so safely. Danger areas involve nodes that may involve speculative + // parsing. If speculative parsing is involved with the node, then the range the + // parser reached while looking ahead might be in the edited range (see the example + // in canReuseVariableDeclaratorNode for a good case of this). + case 19 /* HeritageClauses */: + // This would probably be safe to reuse. There is no speculative parsing with + // heritage clauses. + case 16 /* TypeParameters */: + // This would probably be safe to reuse. There is no speculative parsing with + // type parameters. Note that that's because type *parameters* only occur in + // unambiguous *type* contexts. While type *arguments* occur in very ambiguous + // *expression* contexts. + case 18 /* TupleElementTypes */: + // This would probably be safe to reuse. There is no speculative parsing with + // tuple types. + // Technically, type argument list types are probably safe to reuse. While + // speculative parsing is involved with them (since type argument lists are only + // produced from speculative parsing a < as a type argument list), we only have + // the types because speculative parsing succeeded. Thus, the lookahead never + // went past the end of the list and rewound. + case 17 /* TypeArguments */: + // Note: these are almost certainly not safe to ever reuse. Expressions commonly + // need a large amount of lookahead, and we should not reuse them as they may + // have actually intersected the edit. + case 12 /* ArgumentExpressions */: + // This is not safe to reuse for the same reason as the 'AssignmentExpression' + // cases. i.e. a property assignment may end with an expression, and thus might + // have lookahead far beyond it's old node. + case 13 /* ObjectLiteralMembers */: + // This is probably not safe to reuse. There can be speculative parsing with + // type names in a heritage clause. There can be generic names in the type + // name list, and there can be left hand side expressions (which can have type + // arguments.) + case 8 /* HeritageClauseElement */: } return false; } function isReusableModuleElement(node) { if (node) { switch (node.kind) { - case 209: - case 208: - case 215: - case 214: - case 201: - case 202: - case 205: - case 204: + case 209 /* ImportDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 215 /* ExportDeclaration */: + case 214 /* ExportAssignment */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 205 /* ModuleDeclaration */: + case 204 /* EnumDeclaration */: return true; } return isReusableStatement(node); @@ -6497,13 +7544,13 @@ var ts; function isReusableClassMember(node) { if (node) { switch (node.kind) { - case 135: - case 140: - case 134: - case 136: - case 137: - case 132: - case 178: + case 135 /* Constructor */: + case 140 /* IndexSignature */: + case 134 /* MethodDeclaration */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 132 /* PropertyDeclaration */: + case 178 /* SemicolonClassElement */: return true; } } @@ -6512,8 +7559,8 @@ var ts; function isReusableSwitchClause(node) { if (node) { switch (node.kind) { - case 220: - case 221: + case 220 /* CaseClause */: + case 221 /* DefaultClause */: return true; } } @@ -6522,61 +7569,77 @@ var ts; function isReusableStatement(node) { if (node) { switch (node.kind) { - case 200: - case 180: - case 179: - case 183: - case 182: - case 195: - case 191: - case 193: - case 190: - case 189: - case 187: - case 188: - case 186: - case 185: - case 192: - case 181: - case 196: - case 194: - case 184: - case 197: + case 200 /* FunctionDeclaration */: + case 180 /* VariableStatement */: + case 179 /* Block */: + case 183 /* IfStatement */: + case 182 /* ExpressionStatement */: + case 195 /* ThrowStatement */: + case 191 /* ReturnStatement */: + case 193 /* SwitchStatement */: + case 190 /* BreakStatement */: + case 189 /* ContinueStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 186 /* ForStatement */: + case 185 /* WhileStatement */: + case 192 /* WithStatement */: + case 181 /* EmptyStatement */: + case 196 /* TryStatement */: + case 194 /* LabeledStatement */: + case 184 /* DoStatement */: + case 197 /* DebuggerStatement */: return true; } } return false; } function isReusableEnumMember(node) { - return node.kind === 226; + return node.kind === 226 /* EnumMember */; } function isReusableTypeMember(node) { if (node) { switch (node.kind) { - case 139: - case 133: - case 140: - case 131: - case 138: + case 139 /* ConstructSignature */: + case 133 /* MethodSignature */: + case 140 /* IndexSignature */: + case 131 /* PropertySignature */: + case 138 /* CallSignature */: return true; } } return false; } function isReusableVariableDeclaration(node) { - if (node.kind !== 198) { + if (node.kind !== 198 /* VariableDeclaration */) { return false; } + // Very subtle incremental parsing bug. Consider the following code: + // + // let v = new List < A, B + // + // This is actually legal code. It's a list of variable declarators "v = new List() + // + // then we have a problem. "v = new List= 0) { + // Always preserve a trailing comma by marking it on the NodeArray result.hasTrailingComma = true; } result.end = getNodeEnd(); @@ -6637,10 +7714,11 @@ var ts; } return createMissingList(); } + // The allowReservedWords parameter controls whether reserved words are permitted after the first dot function parseEntityName(allowReservedWords, diagnosticMessage) { var entity = parseIdentifier(diagnosticMessage); - while (parseOptional(20)) { - var node = createNode(126, entity.pos); + while (parseOptional(20 /* DotToken */)) { + var node = createNode(126 /* QualifiedName */, entity.pos); node.left = entity; node.right = parseRightSideOfDot(allowReservedWords); entity = finishNode(node); @@ -6648,37 +7726,59 @@ var ts; return entity; } function parseRightSideOfDot(allowIdentifierNames) { + // Technically a keyword is valid here as all keywords are identifier names. + // However, often we'll encounter this in error situations when the keyword + // is actually starting another valid construct. + // + // So, we check for the following specific case: + // + // name. + // keyword identifierNameOrKeyword + // + // Note: the newlines are important here. For example, if that above code + // were rewritten into: + // + // name.keyword + // identifierNameOrKeyword + // + // Then we would consider it valid. That's because ASI would take effect and + // the code would be implicitly: "name.keyword; identifierNameOrKeyword". + // In the first case though, ASI will not take effect because there is not a + // line terminator after the keyword. if (scanner.hasPrecedingLineBreak() && scanner.isReservedWord()) { var matchesPattern = lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine); if (matchesPattern) { - return createMissingNode(65, true, ts.Diagnostics.Identifier_expected); + // Report that we need an identifier. However, report it right after the dot, + // and not on the next token. This is because the next token might actually + // be an identifier and the error woudl be quite confusing. + return createMissingNode(65 /* Identifier */, true, ts.Diagnostics.Identifier_expected); } } return allowIdentifierNames ? parseIdentifierName() : parseIdentifier(); } function parseTemplateExpression() { - var template = createNode(171); + var template = createNode(171 /* TemplateExpression */); template.head = parseLiteralNode(); - ts.Debug.assert(template.head.kind === 11, "Template head has wrong token kind"); + ts.Debug.assert(template.head.kind === 11 /* TemplateHead */, "Template head has wrong token kind"); var templateSpans = []; templateSpans.pos = getNodePos(); do { templateSpans.push(parseTemplateSpan()); - } while (templateSpans[templateSpans.length - 1].literal.kind === 12); + } while (templateSpans[templateSpans.length - 1].literal.kind === 12 /* TemplateMiddle */); templateSpans.end = getNodeEnd(); template.templateSpans = templateSpans; return finishNode(template); } function parseTemplateSpan() { - var span = createNode(176); + var span = createNode(176 /* TemplateSpan */); span.expression = allowInAnd(parseExpression); var literal; - if (token === 15) { + if (token === 15 /* CloseBraceToken */) { reScanTemplateToken(); literal = parseLiteralNode(); } else { - literal = parseExpectedToken(13, false, ts.Diagnostics._0_expected, ts.tokenToString(15)); + literal = parseExpectedToken(13 /* TemplateTail */, false, ts.Diagnostics._0_expected, ts.tokenToString(15 /* CloseBraceToken */)); } span.literal = literal; return finishNode(span); @@ -6696,55 +7796,73 @@ var ts; var tokenPos = scanner.getTokenPos(); nextToken(); finishNode(node); - if (node.kind === 7 - && sourceText.charCodeAt(tokenPos) === 48 + // Octal literals are not allowed in strict mode or ES5 + // Note that theoretically the following condition would hold true literals like 009, + // which is not octal.But because of how the scanner separates the tokens, we would + // never get a token like this. Instead, we would get 00 and 9 as two separate tokens. + // We also do not need to check for negatives because any prefix operator would be part of a + // parent unary expression. + if (node.kind === 7 /* NumericLiteral */ + && sourceText.charCodeAt(tokenPos) === 48 /* _0 */ && ts.isOctalDigit(sourceText.charCodeAt(tokenPos + 1))) { - node.flags |= 16384; + node.flags |= 16384 /* OctalLiteral */; } return node; } + // TYPES function parseTypeReference() { - var node = createNode(141); + var node = createNode(141 /* TypeReference */); node.typeName = parseEntityName(false, ts.Diagnostics.Type_expected); - if (!scanner.hasPrecedingLineBreak() && token === 24) { - node.typeArguments = parseBracketedList(17, parseType, 24, 25); + if (!scanner.hasPrecedingLineBreak() && token === 24 /* LessThanToken */) { + node.typeArguments = parseBracketedList(17 /* TypeArguments */, parseType, 24 /* LessThanToken */, 25 /* GreaterThanToken */); } return finishNode(node); } function parseTypeQuery() { - var node = createNode(144); - parseExpected(97); + var node = createNode(144 /* TypeQuery */); + parseExpected(97 /* TypeOfKeyword */); node.exprName = parseEntityName(true); return finishNode(node); } function parseTypeParameter() { - var node = createNode(128); + var node = createNode(128 /* TypeParameter */); node.name = parseIdentifier(); - if (parseOptional(79)) { + if (parseOptional(79 /* ExtendsKeyword */)) { + // It's not uncommon for people to write improper constraints to a generic. If the + // user writes a constraint that is an expression and not an actual type, then parse + // it out as an expression (so we can recover well), but report that a type is needed + // instead. if (isStartOfType() || !isStartOfExpression()) { node.constraint = parseType(); } else { + // It was not a type, and it looked like an expression. Parse out an expression + // here so we recover well. Note: it is important that we call parseUnaryExpression + // and not parseExpression here. If the user has: + // + // + // + // We do *not* want to consume the > as we're consuming the expression for "". node.expression = parseUnaryExpressionOrHigher(); } } return finishNode(node); } function parseTypeParameters() { - if (token === 24) { - return parseBracketedList(16, parseTypeParameter, 24, 25); + if (token === 24 /* LessThanToken */) { + return parseBracketedList(16 /* TypeParameters */, parseTypeParameter, 24 /* LessThanToken */, 25 /* GreaterThanToken */); } } function parseParameterType() { - if (parseOptional(51)) { - return token === 8 + if (parseOptional(51 /* ColonToken */)) { + return token === 8 /* StringLiteral */ ? parseLiteralNode(true) : parseType(); } return undefined; } function isStartOfParameter() { - return token === 21 || isIdentifierOrPattern() || ts.isModifier(token) || token === 52; + return token === 21 /* DotDotDotToken */ || isIdentifierOrPattern() || ts.isModifier(token) || token === 52 /* AtToken */; } function setModifiers(node, modifiers) { if (modifiers) { @@ -6753,24 +7871,43 @@ var ts; } } function parseParameter() { - var node = createNode(129); + var node = createNode(129 /* Parameter */); node.decorators = parseDecorators(); setModifiers(node, parseModifiers()); - node.dotDotDotToken = parseOptionalToken(21); + node.dotDotDotToken = parseOptionalToken(21 /* DotDotDotToken */); + // SingleNameBinding[Yield,GeneratorParameter] : See 13.2.3 + // [+GeneratorParameter]BindingIdentifier[Yield]Initializer[In]opt + // [~GeneratorParameter]BindingIdentifier[?Yield]Initializer[In, ?Yield]opt node.name = inGeneratorParameterContext() ? doInYieldContext(parseIdentifierOrPattern) : parseIdentifierOrPattern(); if (ts.getFullWidth(node.name) === 0 && node.flags === 0 && ts.isModifier(token)) { + // in cases like + // 'use strict' + // function foo(static) + // isParameter('static') === true, because of isModifier('static') + // however 'static' is not a legal identifier in a strict mode. + // so result of this function will be ParameterDeclaration (flags = 0, name = missing, type = undefined, initializer = undefined) + // and current token will not change => parsing of the enclosing parameter list will last till the end of time (or OOM) + // to avoid this we'll advance cursor to the next token. nextToken(); } - node.questionToken = parseOptionalToken(50); + node.questionToken = parseOptionalToken(50 /* QuestionToken */); node.type = parseParameterType(); node.initializer = inGeneratorParameterContext() ? doOutsideOfYieldContext(parseParameterInitializer) : parseParameterInitializer(); + // Do not check for initializers in an ambient context for parameters. This is not + // a grammar error because the grammar allows arbitrary call signatures in + // an ambient context. + // It is actually not necessary for this to be an error at all. The reason is that + // function/constructor implementations are syntactically disallowed in ambient + // contexts. In addition, parameter initializers are semantically disallowed in + // overload signatures. So parameter initializers are transitively disallowed in + // ambient contexts. return finishNode(node); } function parseParameterInitializer() { return parseInitializer(true); } function fillSignature(returnToken, yieldAndGeneratorParameterContext, requireCompleteParameterList, signature) { - var returnTokenRequired = returnToken === 32; + var returnTokenRequired = returnToken === 32 /* EqualsGreaterThanToken */; signature.typeParameters = parseTypeParameters(); signature.parameters = parseParameterList(yieldAndGeneratorParameterContext, requireCompleteParameterList); if (returnTokenRequired) { @@ -6781,46 +7918,88 @@ var ts; signature.type = parseType(); } } + // Note: after careful analysis of the grammar, it does not appear to be possible to + // have 'Yield' And 'GeneratorParameter' not in sync. i.e. any production calling + // this FormalParameters production either always sets both to true, or always sets + // both to false. As such we only have a single parameter to represent both. function parseParameterList(yieldAndGeneratorParameterContext, requireCompleteParameterList) { - if (parseExpected(16)) { + // FormalParameters[Yield,GeneratorParameter] : + // ... + // + // FormalParameter[Yield,GeneratorParameter] : + // BindingElement[?Yield, ?GeneratorParameter] + // + // BindingElement[Yield, GeneratorParameter ] : See 13.2.3 + // SingleNameBinding[?Yield, ?GeneratorParameter] + // [+GeneratorParameter]BindingPattern[?Yield, GeneratorParameter]Initializer[In]opt + // [~GeneratorParameter]BindingPattern[?Yield]Initializer[In, ?Yield]opt + // + // SingleNameBinding[Yield, GeneratorParameter] : See 13.2.3 + // [+GeneratorParameter]BindingIdentifier[Yield]Initializer[In]opt + // [~GeneratorParameter]BindingIdentifier[?Yield]Initializer[In, ?Yield]opt + if (parseExpected(16 /* OpenParenToken */)) { var savedYieldContext = inYieldContext(); var savedGeneratorParameterContext = inGeneratorParameterContext(); setYieldContext(yieldAndGeneratorParameterContext); setGeneratorParameterContext(yieldAndGeneratorParameterContext); - var result = parseDelimitedList(15, parseParameter); + var result = parseDelimitedList(15 /* Parameters */, parseParameter); setYieldContext(savedYieldContext); setGeneratorParameterContext(savedGeneratorParameterContext); - if (!parseExpected(17) && requireCompleteParameterList) { + if (!parseExpected(17 /* CloseParenToken */) && requireCompleteParameterList) { + // Caller insisted that we had to end with a ) We didn't. So just return + // undefined here. return undefined; } return result; } + // We didn't even have an open paren. If the caller requires a complete parameter list, + // we definitely can't provide that. However, if they're ok with an incomplete one, + // then just return an empty set of parameters. return requireCompleteParameterList ? undefined : createMissingList(); } function parseTypeMemberSemicolon() { - if (parseOptional(23)) { + // We allow type members to be separated by commas or (possibly ASI) semicolons. + // First check if it was a comma. If so, we're done with the member. + if (parseOptional(23 /* CommaToken */)) { return; } + // Didn't have a comma. We must have a (possible ASI) semicolon. parseSemicolon(); } function parseSignatureMember(kind) { var node = createNode(kind); - if (kind === 139) { - parseExpected(88); + if (kind === 139 /* ConstructSignature */) { + parseExpected(88 /* NewKeyword */); } - fillSignature(51, false, false, node); + fillSignature(51 /* ColonToken */, false, false, node); parseTypeMemberSemicolon(); return finishNode(node); } function isIndexSignature() { - if (token !== 18) { + if (token !== 18 /* OpenBracketToken */) { return false; } return lookAhead(isUnambiguouslyIndexSignature); } function isUnambiguouslyIndexSignature() { + // The only allowed sequence is: + // + // [id: + // + // However, for error recovery, we also check the following cases: + // + // [... + // [id, + // [id?, + // [id?: + // [id?] + // [public id + // [private id + // [protected id + // [] + // nextToken(); - if (token === 21 || token === 19) { + if (token === 21 /* DotDotDotToken */ || token === 19 /* CloseBracketToken */) { return true; } if (ts.isModifier(token)) { @@ -6833,22 +8012,30 @@ var ts; return false; } else { + // Skip the identifier nextToken(); } - if (token === 51 || token === 23) { + // A colon signifies a well formed indexer + // A comma should be a badly formed indexer because comma expressions are not allowed + // in computed properties. + if (token === 51 /* ColonToken */ || token === 23 /* CommaToken */) { return true; } - if (token !== 50) { + // Question mark could be an indexer with an optional property, + // or it could be a conditional expression in a computed property. + if (token !== 50 /* QuestionToken */) { return false; } + // If any of the following tokens are after the question mark, it cannot + // be a conditional expression, so treat it as an indexer. nextToken(); - return token === 51 || token === 23 || token === 19; + return token === 51 /* ColonToken */ || token === 23 /* CommaToken */ || token === 19 /* CloseBracketToken */; } function parseIndexSignatureDeclaration(fullStart, decorators, modifiers) { - var node = createNode(140, fullStart); + var node = createNode(140 /* IndexSignature */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - node.parameters = parseBracketedList(15, parseParameter, 18, 19); + node.parameters = parseBracketedList(15 /* Parameters */, parseParameter, 18 /* OpenBracketToken */, 19 /* CloseBracketToken */); node.type = parseTypeAnnotation(); parseTypeMemberSemicolon(); return finishNode(node); @@ -6856,17 +8043,19 @@ var ts; function parsePropertyOrMethodSignature() { var fullStart = scanner.getStartPos(); var name = parsePropertyName(); - var questionToken = parseOptionalToken(50); - if (token === 16 || token === 24) { - var method = createNode(133, fullStart); + var questionToken = parseOptionalToken(50 /* QuestionToken */); + if (token === 16 /* OpenParenToken */ || token === 24 /* LessThanToken */) { + var method = createNode(133 /* MethodSignature */, fullStart); method.name = name; method.questionToken = questionToken; - fillSignature(51, false, false, method); + // Method signatues don't exist in expression contexts. So they have neither + // [Yield] nor [GeneratorParameter] + fillSignature(51 /* ColonToken */, false, false, method); parseTypeMemberSemicolon(); return finishNode(method); } else { - var property = createNode(131, fullStart); + var property = createNode(131 /* PropertySignature */, fullStart); property.name = name; property.questionToken = questionToken; property.type = parseTypeAnnotation(); @@ -6876,9 +8065,9 @@ var ts; } function isStartOfTypeMember() { switch (token) { - case 16: - case 24: - case 18: + case 16 /* OpenParenToken */: + case 24 /* LessThanToken */: + case 18 /* OpenBracketToken */: return true; default: if (ts.isModifier(token)) { @@ -6898,29 +8087,37 @@ var ts; } function isTypeMemberWithLiteralPropertyName() { nextToken(); - return token === 16 || - token === 24 || - token === 50 || - token === 51 || + return token === 16 /* OpenParenToken */ || + token === 24 /* LessThanToken */ || + token === 50 /* QuestionToken */ || + token === 51 /* ColonToken */ || canParseSemicolon(); } function parseTypeMember() { switch (token) { - case 16: - case 24: - return parseSignatureMember(138); - case 18: + case 16 /* OpenParenToken */: + case 24 /* LessThanToken */: + return parseSignatureMember(138 /* CallSignature */); + case 18 /* OpenBracketToken */: + // Indexer or computed property return isIndexSignature() ? parseIndexSignatureDeclaration(scanner.getStartPos(), undefined, undefined) : parsePropertyOrMethodSignature(); - case 88: + case 88 /* NewKeyword */: if (lookAhead(isStartOfConstructSignature)) { - return parseSignatureMember(139); + return parseSignatureMember(139 /* ConstructSignature */); } - case 8: - case 7: + // fall through. + case 8 /* StringLiteral */: + case 7 /* NumericLiteral */: return parsePropertyOrMethodSignature(); default: + // Index declaration as allowed as a type member. But as per the grammar, + // they also allow modifiers. So we have to check for an index declaration + // that might be following modifiers. This ensures that things work properly + // when incrementally parsing as the parser will produce the Index declaration + // if it has the same text regardless of whether it is inside a class or an + // object type. if (ts.isModifier(token)) { var result = tryParse(parseIndexSignatureWithModifiers); if (result) { @@ -6942,18 +8139,18 @@ var ts; } function isStartOfConstructSignature() { nextToken(); - return token === 16 || token === 24; + return token === 16 /* OpenParenToken */ || token === 24 /* LessThanToken */; } function parseTypeLiteral() { - var node = createNode(145); + var node = createNode(145 /* TypeLiteral */); node.members = parseObjectTypeMembers(); return finishNode(node); } function parseObjectTypeMembers() { var members; - if (parseExpected(14)) { - members = parseList(5, false, parseTypeMember); - parseExpected(15); + if (parseExpected(14 /* OpenBraceToken */)) { + members = parseList(5 /* TypeMembers */, false, parseTypeMember); + parseExpected(15 /* CloseBraceToken */); } else { members = createMissingList(); @@ -6961,47 +8158,48 @@ var ts; return members; } function parseTupleType() { - var node = createNode(147); - node.elementTypes = parseBracketedList(18, parseType, 18, 19); + var node = createNode(147 /* TupleType */); + node.elementTypes = parseBracketedList(18 /* TupleElementTypes */, parseType, 18 /* OpenBracketToken */, 19 /* CloseBracketToken */); return finishNode(node); } function parseParenthesizedType() { - var node = createNode(149); - parseExpected(16); + var node = createNode(149 /* ParenthesizedType */); + parseExpected(16 /* OpenParenToken */); node.type = parseType(); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); return finishNode(node); } function parseFunctionOrConstructorType(kind) { var node = createNode(kind); - if (kind === 143) { - parseExpected(88); + if (kind === 143 /* ConstructorType */) { + parseExpected(88 /* NewKeyword */); } - fillSignature(32, false, false, node); + fillSignature(32 /* EqualsGreaterThanToken */, false, false, node); return finishNode(node); } function parseKeywordAndNoDot() { var node = parseTokenNode(); - return token === 20 ? undefined : node; + return token === 20 /* DotToken */ ? undefined : node; } function parseNonArrayType() { switch (token) { - case 112: - case 121: - case 119: - case 113: - case 122: + case 112 /* AnyKeyword */: + case 121 /* StringKeyword */: + case 119 /* NumberKeyword */: + case 113 /* BooleanKeyword */: + case 122 /* SymbolKeyword */: + // If these are followed by a dot, then parse these out as a dotted type reference instead. var node = tryParse(parseKeywordAndNoDot); return node || parseTypeReference(); - case 99: + case 99 /* VoidKeyword */: return parseTokenNode(); - case 97: + case 97 /* TypeOfKeyword */: return parseTypeQuery(); - case 14: + case 14 /* OpenBraceToken */: return parseTypeLiteral(); - case 18: + case 18 /* OpenBracketToken */: return parseTupleType(); - case 16: + case 16 /* OpenParenToken */: return parseParenthesizedType(); default: return parseTypeReference(); @@ -7009,19 +8207,21 @@ var ts; } function isStartOfType() { switch (token) { - case 112: - case 121: - case 119: - case 113: - case 122: - case 99: - case 97: - case 14: - case 18: - case 24: - case 88: + case 112 /* AnyKeyword */: + case 121 /* StringKeyword */: + case 119 /* NumberKeyword */: + case 113 /* BooleanKeyword */: + case 122 /* SymbolKeyword */: + case 99 /* VoidKeyword */: + case 97 /* TypeOfKeyword */: + case 14 /* OpenBraceToken */: + case 18 /* OpenBracketToken */: + case 24 /* LessThanToken */: + case 88 /* NewKeyword */: return true; - case 16: + case 16 /* OpenParenToken */: + // Only consider '(' the start of a type if followed by ')', '...', an identifier, a modifier, + // or something that starts a type. We don't want to consider things like '(1)' a type. return lookAhead(isStartOfParenthesizedOrFunctionType); default: return isIdentifier(); @@ -7029,13 +8229,13 @@ var ts; } function isStartOfParenthesizedOrFunctionType() { nextToken(); - return token === 17 || isStartOfParameter() || isStartOfType(); + return token === 17 /* CloseParenToken */ || isStartOfParameter() || isStartOfType(); } function parseArrayTypeOrHigher() { var type = parseNonArrayType(); - while (!scanner.hasPrecedingLineBreak() && parseOptional(18)) { - parseExpected(19); - var node = createNode(146, type.pos); + while (!scanner.hasPrecedingLineBreak() && parseOptional(18 /* OpenBracketToken */)) { + parseExpected(19 /* CloseBracketToken */); + var node = createNode(146 /* ArrayType */, type.pos); node.elementType = type; type = finishNode(node); } @@ -7043,40 +8243,48 @@ var ts; } function parseUnionTypeOrHigher() { var type = parseArrayTypeOrHigher(); - if (token === 44) { + if (token === 44 /* BarToken */) { var types = [type]; types.pos = type.pos; - while (parseOptional(44)) { + while (parseOptional(44 /* BarToken */)) { types.push(parseArrayTypeOrHigher()); } types.end = getNodeEnd(); - var node = createNode(148, type.pos); + var node = createNode(148 /* UnionType */, type.pos); node.types = types; type = finishNode(node); } return type; } function isStartOfFunctionType() { - if (token === 24) { + if (token === 24 /* LessThanToken */) { return true; } - return token === 16 && lookAhead(isUnambiguouslyStartOfFunctionType); + return token === 16 /* OpenParenToken */ && lookAhead(isUnambiguouslyStartOfFunctionType); } function isUnambiguouslyStartOfFunctionType() { nextToken(); - if (token === 17 || token === 21) { + if (token === 17 /* CloseParenToken */ || token === 21 /* DotDotDotToken */) { + // ( ) + // ( ... return true; } if (isIdentifier() || ts.isModifier(token)) { nextToken(); - if (token === 51 || token === 23 || - token === 50 || token === 53 || + if (token === 51 /* ColonToken */ || token === 23 /* CommaToken */ || + token === 50 /* QuestionToken */ || token === 53 /* EqualsToken */ || isIdentifier() || ts.isModifier(token)) { + // ( id : + // ( id , + // ( id ? + // ( id = + // ( modifier id return true; } - if (token === 17) { + if (token === 17 /* CloseParenToken */) { nextToken(); - if (token === 32) { + if (token === 32 /* EqualsGreaterThanToken */) { + // ( id ) => return true; } } @@ -7084,6 +8292,8 @@ var ts; return false; } function parseType() { + // The rules about 'yield' only apply to actual code/expression contexts. They don't + // apply to 'type' contexts. So we disable these parameters here before moving on. var savedYieldContext = inYieldContext(); var savedGeneratorParameterContext = inGeneratorParameterContext(); setYieldContext(false); @@ -7095,36 +8305,37 @@ var ts; } function parseTypeWorker() { if (isStartOfFunctionType()) { - return parseFunctionOrConstructorType(142); + return parseFunctionOrConstructorType(142 /* FunctionType */); } - if (token === 88) { - return parseFunctionOrConstructorType(143); + if (token === 88 /* NewKeyword */) { + return parseFunctionOrConstructorType(143 /* ConstructorType */); } return parseUnionTypeOrHigher(); } function parseTypeAnnotation() { - return parseOptional(51) ? parseType() : undefined; + return parseOptional(51 /* ColonToken */) ? parseType() : undefined; } + // EXPRESSIONS function isStartOfLeftHandSideExpression() { switch (token) { - case 93: - case 91: - case 89: - case 95: - case 80: - case 7: - case 8: - case 10: - case 11: - case 16: - case 18: - case 14: - case 83: - case 69: - case 88: - case 36: - case 57: - case 65: + case 93 /* ThisKeyword */: + case 91 /* SuperKeyword */: + case 89 /* NullKeyword */: + case 95 /* TrueKeyword */: + case 80 /* FalseKeyword */: + case 7 /* NumericLiteral */: + case 8 /* StringLiteral */: + case 10 /* NoSubstitutionTemplateLiteral */: + case 11 /* TemplateHead */: + case 16 /* OpenParenToken */: + case 18 /* OpenBracketToken */: + case 14 /* OpenBraceToken */: + case 83 /* FunctionKeyword */: + case 69 /* ClassKeyword */: + case 88 /* NewKeyword */: + case 36 /* SlashToken */: + case 57 /* SlashEqualsToken */: + case 65 /* Identifier */: return true; default: return isIdentifier(); @@ -7135,19 +8346,26 @@ var ts; return true; } switch (token) { - case 33: - case 34: - case 47: - case 46: - case 74: - case 97: - case 99: - case 38: - case 39: - case 24: - case 111: + case 33 /* PlusToken */: + case 34 /* MinusToken */: + case 47 /* TildeToken */: + case 46 /* ExclamationToken */: + case 74 /* DeleteKeyword */: + case 97 /* TypeOfKeyword */: + case 99 /* VoidKeyword */: + case 38 /* PlusPlusToken */: + case 39 /* MinusMinusToken */: + case 24 /* LessThanToken */: + case 111 /* YieldKeyword */: + // Yield always starts an expression. Either it is an identifier (in which case + // it is definitely an expression). Or it's a keyword (either because we're in + // a generator, or in strict mode (or both)) and it started a yield expression. return true; default: + // Error tolerance. If we see the start of some binary operator, we consider + // that the start of an expression. That way we'll parse out a missing identifier, + // give a good message about an identifier being missing, and then consume the + // rest of the binary expression. if (isBinaryOperator()) { return true; } @@ -7155,23 +8373,25 @@ var ts; } } function isStartOfExpressionStatement() { - return token !== 14 && - token !== 83 && - token !== 69 && - token !== 52 && + // As per the grammar, none of '{' or 'function' or 'class' can start an expression statement. + return token !== 14 /* OpenBraceToken */ && + token !== 83 /* FunctionKeyword */ && + token !== 69 /* ClassKeyword */ && + token !== 52 /* AtToken */ && isStartOfExpression(); } function parseExpression() { // Expression[in]: // AssignmentExpression[in] // Expression[in] , AssignmentExpression[in] + // clear the decorator context when parsing Expression, as it should be unambiguous when parsing a decorator var saveDecoratorContext = inDecoratorContext(); if (saveDecoratorContext) { setDecoratorContext(false); } var expr = parseAssignmentExpressionOrHigher(); var operatorToken; - while ((operatorToken = parseOptionalToken(23))) { + while ((operatorToken = parseOptionalToken(23 /* CommaToken */))) { expr = makeBinaryExpression(expr, operatorToken, parseAssignmentExpressionOrHigher()); } if (saveDecoratorContext) { @@ -7180,12 +8400,24 @@ var ts; return expr; } function parseInitializer(inParameter) { - if (token !== 53) { - if (scanner.hasPrecedingLineBreak() || (inParameter && token === 14) || !isStartOfExpression()) { + if (token !== 53 /* EqualsToken */) { + // It's not uncommon during typing for the user to miss writing the '=' token. Check if + // there is no newline after the last token and if we're on an expression. If so, parse + // this as an equals-value clause with a missing equals. + // NOTE: There are two places where we allow equals-value clauses. The first is in a + // variable declarator. The second is with a parameter. For variable declarators + // it's more likely that a { would be a allowed (as an object literal). While this + // is also allowed for parameters, the risk is that we consume the { as an object + // literal when it really will be for the block following the parameter. + if (scanner.hasPrecedingLineBreak() || (inParameter && token === 14 /* OpenBraceToken */) || !isStartOfExpression()) { + // preceding line break, open brace in a parameter (likely a function body) or current token is not an expression - + // do not try to parse initializer return undefined; } } - parseExpected(53); + // Initializer[In, Yield] : + // = AssignmentExpression[?In, ?Yield] + parseExpected(53 /* EqualsToken */); return parseAssignmentExpressionOrHigher(); } function parseAssignmentExpressionOrHigher() { @@ -7198,30 +8430,72 @@ var ts; // // Note: for ease of implementation we treat productions '2' and '3' as the same thing. // (i.e. they're both BinaryExpressions with an assignment operator in it). + // First, do the simple check if we have a YieldExpression (production '5'). if (isYieldExpression()) { return parseYieldExpression(); } + // Then, check if we have an arrow function (production '4') that starts with a parenthesized + // parameter list. If we do, we must *not* recurse for productions 1, 2 or 3. An ArrowFunction is + // not a LeftHandSideExpression, nor does it start a ConditionalExpression. So we are done + // with AssignmentExpression if we see one. var arrowExpression = tryParseParenthesizedArrowFunctionExpression(); if (arrowExpression) { return arrowExpression; } + // Now try to see if we're in production '1', '2' or '3'. A conditional expression can + // start with a LogicalOrExpression, while the assignment productions can only start with + // LeftHandSideExpressions. + // + // So, first, we try to just parse out a BinaryExpression. If we get something that is a + // LeftHandSide or higher, then we can try to parse out the assignment expression part. + // Otherwise, we try to parse out the conditional expression bit. We want to allow any + // binary expression here, so we pass in the 'lowest' precedence here so that it matches + // and consumes anything. var expr = parseBinaryExpressionOrHigher(0); - if (expr.kind === 65 && token === 32) { + // To avoid a look-ahead, we did not handle the case of an arrow function with a single un-parenthesized + // parameter ('x => ...') above. We handle it here by checking if the parsed expression was a single + // identifier and the current token is an arrow. + if (expr.kind === 65 /* Identifier */ && token === 32 /* EqualsGreaterThanToken */) { return parseSimpleArrowFunctionExpression(expr); } + // Now see if we might be in cases '2' or '3'. + // If the expression was a LHS expression, and we have an assignment operator, then + // we're in '2' or '3'. Consume the assignment and return. + // + // Note: we call reScanGreaterToken so that we get an appropriately merged token + // for cases like > > = becoming >>= if (isLeftHandSideExpression(expr) && isAssignmentOperator(reScanGreaterToken())) { return makeBinaryExpression(expr, parseTokenNode(), parseAssignmentExpressionOrHigher()); } + // It wasn't an assignment or a lambda. This is a conditional expression: return parseConditionalExpressionRest(expr); } function isYieldExpression() { - if (token === 111) { + if (token === 111 /* YieldKeyword */) { + // If we have a 'yield' keyword, and htis is a context where yield expressions are + // allowed, then definitely parse out a yield expression. if (inYieldContext()) { return true; } if (inStrictModeContext()) { + // If we're in strict mode, then 'yield' is a keyword, could only ever start + // a yield expression. return true; } + // We're in a context where 'yield expr' is not allowed. However, if we can + // definitely tell that the user was trying to parse a 'yield expr' and not + // just a normal expr that start with a 'yield' identifier, then parse out + // a 'yield expr'. We can then report an error later that they are only + // allowed in generator expressions. + // + // for example, if we see 'yield(foo)', then we'll have to treat that as an + // invocation expression of something called 'yield'. However, if we have + // 'yield foo' then that is not legal as a normal expression, so we can + // definitely recognize this as a yield expression. + // + // for now we just check if the next token is an identifier. More heuristics + // can be added here later as necessary. We just need to make sure that we + // don't accidently consume something legal. return lookAhead(nextTokenIsIdentifierOnSameLine); } return false; @@ -7233,131 +8507,214 @@ var ts; function nextTokenIsIdentifierOrStartOfDestructuringOnTheSameLine() { nextToken(); return !scanner.hasPrecedingLineBreak() && - (isIdentifier() || token === 14 || token === 18); + (isIdentifier() || token === 14 /* OpenBraceToken */ || token === 18 /* OpenBracketToken */); } function parseYieldExpression() { - var node = createNode(172); + var node = createNode(172 /* YieldExpression */); + // YieldExpression[In] : + // yield + // yield [no LineTerminator here] [Lexical goal InputElementRegExp]AssignmentExpression[?In, Yield] + // yield [no LineTerminator here] * [Lexical goal InputElementRegExp]AssignmentExpression[?In, Yield] nextToken(); if (!scanner.hasPrecedingLineBreak() && - (token === 35 || isStartOfExpression())) { - node.asteriskToken = parseOptionalToken(35); + (token === 35 /* AsteriskToken */ || isStartOfExpression())) { + node.asteriskToken = parseOptionalToken(35 /* AsteriskToken */); node.expression = parseAssignmentExpressionOrHigher(); return finishNode(node); } else { + // if the next token is not on the same line as yield. or we don't have an '*' or + // the start of an expressin, then this is just a simple "yield" expression. return finishNode(node); } } function parseSimpleArrowFunctionExpression(identifier) { - ts.Debug.assert(token === 32, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); - var node = createNode(163, identifier.pos); - var parameter = createNode(129, identifier.pos); + ts.Debug.assert(token === 32 /* EqualsGreaterThanToken */, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); + var node = createNode(163 /* ArrowFunction */, identifier.pos); + var parameter = createNode(129 /* Parameter */, identifier.pos); parameter.name = identifier; finishNode(parameter); node.parameters = [parameter]; node.parameters.pos = parameter.pos; node.parameters.end = parameter.end; - node.equalsGreaterThanToken = parseExpectedToken(32, false, ts.Diagnostics._0_expected, "=>"); + node.equalsGreaterThanToken = parseExpectedToken(32 /* EqualsGreaterThanToken */, false, ts.Diagnostics._0_expected, "=>"); node.body = parseArrowFunctionExpressionBody(); return finishNode(node); } function tryParseParenthesizedArrowFunctionExpression() { var triState = isParenthesizedArrowFunctionExpression(); - if (triState === 0) { + if (triState === 0 /* False */) { + // It's definitely not a parenthesized arrow function expression. return undefined; } - var arrowFunction = triState === 1 + // If we definitely have an arrow function, then we can just parse one, not requiring a + // following => or { token. Otherwise, we *might* have an arrow function. Try to parse + // it out, but don't allow any ambiguity, and return 'undefined' if this could be an + // expression instead. + var arrowFunction = triState === 1 /* True */ ? parseParenthesizedArrowFunctionExpressionHead(true) : tryParse(parsePossibleParenthesizedArrowFunctionExpressionHead); if (!arrowFunction) { + // Didn't appear to actually be a parenthesized arrow function. Just bail out. return undefined; } + // If we have an arrow, then try to parse the body. Even if not, try to parse if we + // have an opening brace, just in case we're in an error state. var lastToken = token; - arrowFunction.equalsGreaterThanToken = parseExpectedToken(32, false, ts.Diagnostics._0_expected, "=>"); - arrowFunction.body = (lastToken === 32 || lastToken === 14) + arrowFunction.equalsGreaterThanToken = parseExpectedToken(32 /* EqualsGreaterThanToken */, false, ts.Diagnostics._0_expected, "=>"); + arrowFunction.body = (lastToken === 32 /* EqualsGreaterThanToken */ || lastToken === 14 /* OpenBraceToken */) ? parseArrowFunctionExpressionBody() : parseIdentifier(); return finishNode(arrowFunction); } + // True -> We definitely expect a parenthesized arrow function here. + // False -> There *cannot* be a parenthesized arrow function here. + // Unknown -> There *might* be a parenthesized arrow function here. + // Speculatively look ahead to be sure, and rollback if not. function isParenthesizedArrowFunctionExpression() { - if (token === 16 || token === 24) { + if (token === 16 /* OpenParenToken */ || token === 24 /* LessThanToken */) { return lookAhead(isParenthesizedArrowFunctionExpressionWorker); } - if (token === 32) { - return 1; + if (token === 32 /* EqualsGreaterThanToken */) { + // ERROR RECOVERY TWEAK: + // If we see a standalone => try to parse it as an arrow function expression as that's + // likely what the user intended to write. + return 1 /* True */; } - return 0; + // Definitely not a parenthesized arrow function. + return 0 /* False */; } function isParenthesizedArrowFunctionExpressionWorker() { var first = token; var second = nextToken(); - if (first === 16) { - if (second === 17) { + if (first === 16 /* OpenParenToken */) { + if (second === 17 /* CloseParenToken */) { + // Simple cases: "() =>", "(): ", and "() {". + // This is an arrow function with no parameters. + // The last one is not actually an arrow function, + // but this is probably what the user intended. var third = nextToken(); switch (third) { - case 32: - case 51: - case 14: - return 1; + case 32 /* EqualsGreaterThanToken */: + case 51 /* ColonToken */: + case 14 /* OpenBraceToken */: + return 1 /* True */; default: - return 0; + return 0 /* False */; } } - if (second === 21) { - return 1; + // If encounter "([" or "({", this could be the start of a binding pattern. + // Examples: + // ([ x ]) => { } + // ({ x }) => { } + // ([ x ]) + // ({ x }) + if (second === 18 /* OpenBracketToken */ || second === 14 /* OpenBraceToken */) { + return 2 /* Unknown */; } + // Simple case: "(..." + // This is an arrow function with a rest parameter. + if (second === 21 /* DotDotDotToken */) { + return 1 /* True */; + } + // If we had "(" followed by something that's not an identifier, + // then this definitely doesn't look like a lambda. + // Note: we could be a little more lenient and allow + // "(public" or "(private". These would not ever actually be allowed, + // but we could provide a good error message instead of bailing out. if (!isIdentifier()) { - return 0; + return 0 /* False */; } - if (nextToken() === 51) { - return 1; + // If we have something like "(a:", then we must have a + // type-annotated parameter in an arrow function expression. + if (nextToken() === 51 /* ColonToken */) { + return 1 /* True */; } - return 2; + // This *could* be a parenthesized arrow function. + // Return Unknown to let the caller know. + return 2 /* Unknown */; } else { - ts.Debug.assert(first === 24); + ts.Debug.assert(first === 24 /* LessThanToken */); + // If we have "<" not followed by an identifier, + // then this definitely is not an arrow function. if (!isIdentifier()) { - return 0; + return 0 /* False */; } - return 2; + // This *could* be a parenthesized arrow function. + return 2 /* Unknown */; } } function parsePossibleParenthesizedArrowFunctionExpressionHead() { return parseParenthesizedArrowFunctionExpressionHead(false); } function parseParenthesizedArrowFunctionExpressionHead(allowAmbiguity) { - var node = createNode(163); - fillSignature(51, false, !allowAmbiguity, node); + var node = createNode(163 /* ArrowFunction */); + // Arrow functions are never generators. + // + // If we're speculatively parsing a signature for a parenthesized arrow function, then + // we have to have a complete parameter list. Otherwise we might see something like + // a => (b => c) + // And think that "(b =>" was actually a parenthesized arrow function with a missing + // close paren. + fillSignature(51 /* ColonToken */, false, !allowAmbiguity, node); + // If we couldn't get parameters, we definitely could not parse out an arrow function. if (!node.parameters) { return undefined; } - if (!allowAmbiguity && token !== 32 && token !== 14) { + // Parsing a signature isn't enough. + // Parenthesized arrow signatures often look like other valid expressions. + // For instance: + // - "(x = 10)" is an assignment expression parsed as a signature with a default parameter value. + // - "(x,y)" is a comma expression parsed as a signature with two parameters. + // - "a ? (b): c" will have "(b):" parsed as a signature with a return type annotation. + // + // So we need just a bit of lookahead to ensure that it can only be a signature. + if (!allowAmbiguity && token !== 32 /* EqualsGreaterThanToken */ && token !== 14 /* OpenBraceToken */) { + // Returning undefined here will cause our caller to rewind to where we started from. return undefined; } return node; } function parseArrowFunctionExpressionBody() { - if (token === 14) { + if (token === 14 /* OpenBraceToken */) { return parseFunctionBlock(false, false); } if (isStartOfStatement(true) && !isStartOfExpressionStatement() && - token !== 83 && - token !== 69) { + token !== 83 /* FunctionKeyword */ && + token !== 69 /* ClassKeyword */) { + // Check if we got a plain statement (i.e. no expression-statements, no function/class expressions/declarations) + // + // Here we try to recover from a potential error situation in the case where the + // user meant to supply a block. For example, if the user wrote: + // + // a => + // let v = 0; + // } + // + // they may be missing an open brace. Check to see if that's the case so we can + // try to recover better. If we don't do this, then the next close curly we see may end + // up preemptively closing the containing construct. + // + // Note: even when 'ignoreMissingOpenBrace' is passed as true, parseBody will still error. return parseFunctionBlock(false, true); } return parseAssignmentExpressionOrHigher(); } function parseConditionalExpressionRest(leftOperand) { - var questionToken = parseOptionalToken(50); + // Note: we are passed in an expression which was produced from parseBinaryExpressionOrHigher. + var questionToken = parseOptionalToken(50 /* QuestionToken */); if (!questionToken) { return leftOperand; } - var node = createNode(170, leftOperand.pos); + // Note: we explicitly 'allowIn' in the whenTrue part of the condition expression, and + // we do not that for the 'whenFalse' part. + var node = createNode(170 /* ConditionalExpression */, leftOperand.pos); node.condition = leftOperand; node.questionToken = questionToken; node.whenTrue = doOutsideOfContext(disallowInAndDecoratorContext, parseAssignmentExpressionOrHigher); - node.colonToken = parseExpectedToken(51, false, ts.Diagnostics._0_expected, ts.tokenToString(51)); + node.colonToken = parseExpectedToken(51 /* ColonToken */, false, ts.Diagnostics._0_expected, ts.tokenToString(51 /* ColonToken */)); node.whenFalse = parseAssignmentExpressionOrHigher(); return finishNode(node); } @@ -7366,16 +8723,19 @@ var ts; return parseBinaryExpressionRest(precedence, leftOperand); } function isInOrOfKeyword(t) { - return t === 86 || t === 125; + return t === 86 /* InKeyword */ || t === 125 /* OfKeyword */; } function parseBinaryExpressionRest(precedence, leftOperand) { while (true) { + // We either have a binary operator here, or we're finished. We call + // reScanGreaterToken so that we merge token sequences like > and = into >= reScanGreaterToken(); var newPrecedence = getBinaryOperatorPrecedence(); + // Check the precedence to see if we should "take" this operator if (newPrecedence <= precedence) { break; } - if (token === 86 && inDisallowInContext()) { + if (token === 86 /* InKeyword */ && inDisallowInContext()) { break; } leftOperand = makeBinaryExpression(leftOperand, parseTokenNode(), parseBinaryExpressionOrHigher(newPrecedence)); @@ -7383,97 +8743,99 @@ var ts; return leftOperand; } function isBinaryOperator() { - if (inDisallowInContext() && token === 86) { + if (inDisallowInContext() && token === 86 /* InKeyword */) { return false; } return getBinaryOperatorPrecedence() > 0; } function getBinaryOperatorPrecedence() { switch (token) { - case 49: + case 49 /* BarBarToken */: return 1; - case 48: + case 48 /* AmpersandAmpersandToken */: return 2; - case 44: + case 44 /* BarToken */: return 3; - case 45: + case 45 /* CaretToken */: return 4; - case 43: + case 43 /* AmpersandToken */: return 5; - case 28: - case 29: - case 30: - case 31: + case 28 /* EqualsEqualsToken */: + case 29 /* ExclamationEqualsToken */: + case 30 /* EqualsEqualsEqualsToken */: + case 31 /* ExclamationEqualsEqualsToken */: return 6; - case 24: - case 25: - case 26: - case 27: - case 87: - case 86: + case 24 /* LessThanToken */: + case 25 /* GreaterThanToken */: + case 26 /* LessThanEqualsToken */: + case 27 /* GreaterThanEqualsToken */: + case 87 /* InstanceOfKeyword */: + case 86 /* InKeyword */: return 7; - case 40: - case 41: - case 42: + case 40 /* LessThanLessThanToken */: + case 41 /* GreaterThanGreaterThanToken */: + case 42 /* GreaterThanGreaterThanGreaterThanToken */: return 8; - case 33: - case 34: + case 33 /* PlusToken */: + case 34 /* MinusToken */: return 9; - case 35: - case 36: - case 37: + case 35 /* AsteriskToken */: + case 36 /* SlashToken */: + case 37 /* PercentToken */: return 10; } + // -1 is lower than all other precedences. Returning it will cause binary expression + // parsing to stop. return -1; } function makeBinaryExpression(left, operatorToken, right) { - var node = createNode(169, left.pos); + var node = createNode(169 /* BinaryExpression */, left.pos); node.left = left; node.operatorToken = operatorToken; node.right = right; return finishNode(node); } function parsePrefixUnaryExpression() { - var node = createNode(167); + var node = createNode(167 /* PrefixUnaryExpression */); node.operator = token; nextToken(); node.operand = parseUnaryExpressionOrHigher(); return finishNode(node); } function parseDeleteExpression() { - var node = createNode(164); + var node = createNode(164 /* DeleteExpression */); nextToken(); node.expression = parseUnaryExpressionOrHigher(); return finishNode(node); } function parseTypeOfExpression() { - var node = createNode(165); + var node = createNode(165 /* TypeOfExpression */); nextToken(); node.expression = parseUnaryExpressionOrHigher(); return finishNode(node); } function parseVoidExpression() { - var node = createNode(166); + var node = createNode(166 /* VoidExpression */); nextToken(); node.expression = parseUnaryExpressionOrHigher(); return finishNode(node); } function parseUnaryExpressionOrHigher() { switch (token) { - case 33: - case 34: - case 47: - case 46: - case 38: - case 39: + case 33 /* PlusToken */: + case 34 /* MinusToken */: + case 47 /* TildeToken */: + case 46 /* ExclamationToken */: + case 38 /* PlusPlusToken */: + case 39 /* MinusMinusToken */: return parsePrefixUnaryExpression(); - case 74: + case 74 /* DeleteKeyword */: return parseDeleteExpression(); - case 97: + case 97 /* TypeOfKeyword */: return parseTypeOfExpression(); - case 99: + case 99 /* VoidKeyword */: return parseVoidExpression(); - case 24: + case 24 /* LessThanToken */: return parseTypeAssertion(); default: return parsePostfixExpressionOrHigher(); @@ -7482,8 +8844,8 @@ var ts; function parsePostfixExpressionOrHigher() { var expression = parseLeftHandSideExpressionOrHigher(); ts.Debug.assert(isLeftHandSideExpression(expression)); - if ((token === 38 || token === 39) && !scanner.hasPrecedingLineBreak()) { - var node = createNode(168, expression.pos); + if ((token === 38 /* PlusPlusToken */ || token === 39 /* MinusMinusToken */) && !scanner.hasPrecedingLineBreak()) { + var node = createNode(168 /* PostfixUnaryExpression */, expression.pos); node.operand = expression; node.operator = token; nextToken(); @@ -7492,63 +8854,147 @@ var ts; return expression; } function parseLeftHandSideExpressionOrHigher() { - var expression = token === 91 + // Original Ecma: + // LeftHandSideExpression: See 11.2 + // NewExpression + // CallExpression + // + // Our simplification: + // + // LeftHandSideExpression: See 11.2 + // MemberExpression + // CallExpression + // + // See comment in parseMemberExpressionOrHigher on how we replaced NewExpression with + // MemberExpression to make our lives easier. + // + // to best understand the below code, it's important to see how CallExpression expands + // out into its own productions: + // + // CallExpression: + // MemberExpression Arguments + // CallExpression Arguments + // CallExpression[Expression] + // CallExpression.IdentifierName + // super ( ArgumentListopt ) + // super.IdentifierName + // + // Because of the recursion in these calls, we need to bottom out first. There are two + // bottom out states we can run into. Either we see 'super' which must start either of + // the last two CallExpression productions. Or we have a MemberExpression which either + // completes the LeftHandSideExpression, or starts the beginning of the first four + // CallExpression productions. + var expression = token === 91 /* SuperKeyword */ ? parseSuperExpression() : parseMemberExpressionOrHigher(); + // Now, we *may* be complete. However, we might have consumed the start of a + // CallExpression. As such, we need to consume the rest of it here to be complete. return parseCallExpressionRest(expression); } function parseMemberExpressionOrHigher() { + // Note: to make our lives simpler, we decompose the the NewExpression productions and + // place ObjectCreationExpression and FunctionExpression into PrimaryExpression. + // like so: + // + // PrimaryExpression : See 11.1 + // this + // Identifier + // Literal + // ArrayLiteral + // ObjectLiteral + // (Expression) + // FunctionExpression + // new MemberExpression Arguments? + // + // MemberExpression : See 11.2 + // PrimaryExpression + // MemberExpression[Expression] + // MemberExpression.IdentifierName + // + // CallExpression : See 11.2 + // MemberExpression + // CallExpression Arguments + // CallExpression[Expression] + // CallExpression.IdentifierName + // + // Technically this is ambiguous. i.e. CallExpression defines: + // + // CallExpression: + // CallExpression Arguments + // + // If you see: "new Foo()" + // + // Then that could be treated as a single ObjectCreationExpression, or it could be + // treated as the invocation of "new Foo". We disambiguate that in code (to match + // the original grammar) by making sure that if we see an ObjectCreationExpression + // we always consume arguments if they are there. So we treat "new Foo()" as an + // object creation only, and not at all as an invocation) Another way to think + // about this is that for every "new" that we see, we will consume an argument list if + // it is there as part of the *associated* object creation node. Any additional + // argument lists we see, will become invocation expressions. + // + // Because there are no other places in the grammar now that refer to FunctionExpression + // or ObjectCreationExpression, it is safe to push down into the PrimaryExpression + // production. + // + // Because CallExpression and MemberExpression are left recursive, we need to bottom out + // of the recursion immediately. So we parse out a primary expression to start with. var expression = parsePrimaryExpression(); return parseMemberExpressionRest(expression); } function parseSuperExpression() { var expression = parseTokenNode(); - if (token === 16 || token === 20) { + if (token === 16 /* OpenParenToken */ || token === 20 /* DotToken */) { return expression; } - var node = createNode(155, expression.pos); + // If we have seen "super" it must be followed by '(' or '.'. + // If it wasn't then just try to parse out a '.' and report an error. + var node = createNode(155 /* PropertyAccessExpression */, expression.pos); node.expression = expression; - node.dotToken = parseExpectedToken(20, false, ts.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access); + node.dotToken = parseExpectedToken(20 /* DotToken */, false, ts.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access); node.name = parseRightSideOfDot(true); return finishNode(node); } function parseTypeAssertion() { - var node = createNode(160); - parseExpected(24); + var node = createNode(160 /* TypeAssertionExpression */); + parseExpected(24 /* LessThanToken */); node.type = parseType(); - parseExpected(25); + parseExpected(25 /* GreaterThanToken */); node.expression = parseUnaryExpressionOrHigher(); return finishNode(node); } function parseMemberExpressionRest(expression) { while (true) { - var dotToken = parseOptionalToken(20); + var dotToken = parseOptionalToken(20 /* DotToken */); if (dotToken) { - var propertyAccess = createNode(155, expression.pos); + var propertyAccess = createNode(155 /* PropertyAccessExpression */, expression.pos); propertyAccess.expression = expression; propertyAccess.dotToken = dotToken; propertyAccess.name = parseRightSideOfDot(true); expression = finishNode(propertyAccess); continue; } - if (!inDecoratorContext() && parseOptional(18)) { - var indexedAccess = createNode(156, expression.pos); + // when in the [Decorator] context, we do not parse ElementAccess as it could be part of a ComputedPropertyName + if (!inDecoratorContext() && parseOptional(18 /* OpenBracketToken */)) { + var indexedAccess = createNode(156 /* ElementAccessExpression */, expression.pos); indexedAccess.expression = expression; - if (token !== 19) { + // It's not uncommon for a user to write: "new Type[]". + // Check for that common pattern and report a better error message. + if (token !== 19 /* CloseBracketToken */) { indexedAccess.argumentExpression = allowInAnd(parseExpression); - if (indexedAccess.argumentExpression.kind === 8 || indexedAccess.argumentExpression.kind === 7) { + if (indexedAccess.argumentExpression.kind === 8 /* StringLiteral */ || indexedAccess.argumentExpression.kind === 7 /* NumericLiteral */) { var literal = indexedAccess.argumentExpression; literal.text = internIdentifier(literal.text); } } - parseExpected(19); + parseExpected(19 /* CloseBracketToken */); expression = finishNode(indexedAccess); continue; } - if (token === 10 || token === 11) { - var tagExpression = createNode(159, expression.pos); + if (token === 10 /* NoSubstitutionTemplateLiteral */ || token === 11 /* TemplateHead */) { + var tagExpression = createNode(159 /* TaggedTemplateExpression */, expression.pos); tagExpression.tag = expression; - tagExpression.template = token === 10 + tagExpression.template = token === 10 /* NoSubstitutionTemplateLiteral */ ? parseLiteralNode() : parseTemplateExpression(); expression = finishNode(tagExpression); @@ -7560,20 +9006,24 @@ var ts; function parseCallExpressionRest(expression) { while (true) { expression = parseMemberExpressionRest(expression); - if (token === 24) { + if (token === 24 /* LessThanToken */) { + // See if this is the start of a generic invocation. If so, consume it and + // keep checking for postfix expressions. Otherwise, it's just a '<' that's + // part of an arithmetic expression. Break out so we consume it higher in the + // stack. var typeArguments = tryParse(parseTypeArgumentsInExpression); if (!typeArguments) { return expression; } - var callExpr = createNode(157, expression.pos); + var callExpr = createNode(157 /* CallExpression */, expression.pos); callExpr.expression = expression; callExpr.typeArguments = typeArguments; callExpr.arguments = parseArgumentList(); expression = finishNode(callExpr); continue; } - else if (token === 16) { - var callExpr = createNode(157, expression.pos); + else if (token === 16 /* OpenParenToken */) { + var callExpr = createNode(157 /* CallExpression */, expression.pos); callExpr.expression = expression; callExpr.arguments = parseArgumentList(); expression = finishNode(callExpr); @@ -7583,121 +9033,133 @@ var ts; } } function parseArgumentList() { - parseExpected(16); - var result = parseDelimitedList(12, parseArgumentExpression); - parseExpected(17); + parseExpected(16 /* OpenParenToken */); + var result = parseDelimitedList(12 /* ArgumentExpressions */, parseArgumentExpression); + parseExpected(17 /* CloseParenToken */); return result; } function parseTypeArgumentsInExpression() { - if (!parseOptional(24)) { + if (!parseOptional(24 /* LessThanToken */)) { return undefined; } - var typeArguments = parseDelimitedList(17, parseType); - if (!parseExpected(25)) { + var typeArguments = parseDelimitedList(17 /* TypeArguments */, parseType); + if (!parseExpected(25 /* GreaterThanToken */)) { + // If it doesn't have the closing > then it's definitely not an type argument list. return undefined; } + // If we have a '<', then only parse this as a arugment list if the type arguments + // are complete and we have an open paren. if we don't, rewind and return nothing. return typeArguments && canFollowTypeArgumentsInExpression() ? typeArguments : undefined; } function canFollowTypeArgumentsInExpression() { switch (token) { - case 16: - case 20: - case 17: - case 19: - case 51: - case 22: - case 50: - case 28: - case 30: - case 29: - case 31: - case 48: - case 49: - case 45: - case 43: - case 44: - case 15: - case 1: + case 16 /* OpenParenToken */: // foo( + // this case are the only case where this token can legally follow a type argument + // list. So we definitely want to treat this as a type arg list. + case 20 /* DotToken */: // foo. + case 17 /* CloseParenToken */: // foo) + case 19 /* CloseBracketToken */: // foo] + case 51 /* ColonToken */: // foo: + case 22 /* SemicolonToken */: // foo; + case 50 /* QuestionToken */: // foo? + case 28 /* EqualsEqualsToken */: // foo == + case 30 /* EqualsEqualsEqualsToken */: // foo === + case 29 /* ExclamationEqualsToken */: // foo != + case 31 /* ExclamationEqualsEqualsToken */: // foo !== + case 48 /* AmpersandAmpersandToken */: // foo && + case 49 /* BarBarToken */: // foo || + case 45 /* CaretToken */: // foo ^ + case 43 /* AmpersandToken */: // foo & + case 44 /* BarToken */: // foo | + case 15 /* CloseBraceToken */: // foo } + case 1 /* EndOfFileToken */: + // these cases can't legally follow a type arg list. However, they're not legal + // expressions either. The user is probably in the middle of a generic type. So + // treat it as such. return true; - case 23: - case 14: + case 23 /* CommaToken */: // foo, + case 14 /* OpenBraceToken */: // foo { + // We don't want to treat these as type arguments. Otherwise we'll parse this + // as an invocation expression. Instead, we want to parse out the expression + // in isolation from the type arguments. default: + // Anything else treat as an expression. return false; } } function parsePrimaryExpression() { switch (token) { - case 7: - case 8: - case 10: + case 7 /* NumericLiteral */: + case 8 /* StringLiteral */: + case 10 /* NoSubstitutionTemplateLiteral */: return parseLiteralNode(); - case 93: - case 91: - case 89: - case 95: - case 80: + case 93 /* ThisKeyword */: + case 91 /* SuperKeyword */: + case 89 /* NullKeyword */: + case 95 /* TrueKeyword */: + case 80 /* FalseKeyword */: return parseTokenNode(); - case 16: + case 16 /* OpenParenToken */: return parseParenthesizedExpression(); - case 18: + case 18 /* OpenBracketToken */: return parseArrayLiteralExpression(); - case 14: + case 14 /* OpenBraceToken */: return parseObjectLiteralExpression(); - case 69: + case 69 /* ClassKeyword */: return parseClassExpression(); - case 83: + case 83 /* FunctionKeyword */: return parseFunctionExpression(); - case 88: + case 88 /* NewKeyword */: return parseNewExpression(); - case 36: - case 57: - if (reScanSlashToken() === 9) { + case 36 /* SlashToken */: + case 57 /* SlashEqualsToken */: + if (reScanSlashToken() === 9 /* RegularExpressionLiteral */) { return parseLiteralNode(); } break; - case 11: + case 11 /* TemplateHead */: return parseTemplateExpression(); } return parseIdentifier(ts.Diagnostics.Expression_expected); } function parseParenthesizedExpression() { - var node = createNode(161); - parseExpected(16); + var node = createNode(161 /* ParenthesizedExpression */); + parseExpected(16 /* OpenParenToken */); node.expression = allowInAnd(parseExpression); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); return finishNode(node); } function parseSpreadElement() { - var node = createNode(173); - parseExpected(21); + var node = createNode(173 /* SpreadElementExpression */); + parseExpected(21 /* DotDotDotToken */); node.expression = parseAssignmentExpressionOrHigher(); return finishNode(node); } function parseArgumentOrArrayLiteralElement() { - return token === 21 ? parseSpreadElement() : - token === 23 ? createNode(175) : + return token === 21 /* DotDotDotToken */ ? parseSpreadElement() : + token === 23 /* CommaToken */ ? createNode(175 /* OmittedExpression */) : parseAssignmentExpressionOrHigher(); } function parseArgumentExpression() { return doOutsideOfContext(disallowInAndDecoratorContext, parseArgumentOrArrayLiteralElement); } function parseArrayLiteralExpression() { - var node = createNode(153); - parseExpected(18); + var node = createNode(153 /* ArrayLiteralExpression */); + parseExpected(18 /* OpenBracketToken */); if (scanner.hasPrecedingLineBreak()) - node.flags |= 512; - node.elements = parseDelimitedList(14, parseArgumentOrArrayLiteralElement); - parseExpected(19); + node.flags |= 512 /* MultiLine */; + node.elements = parseDelimitedList(14 /* ArrayLiteralMembers */, parseArgumentOrArrayLiteralElement); + parseExpected(19 /* CloseBracketToken */); return finishNode(node); } function tryParseAccessorDeclaration(fullStart, decorators, modifiers) { - if (parseContextualModifier(116)) { - return parseAccessorDeclaration(136, fullStart, decorators, modifiers); + if (parseContextualModifier(116 /* GetKeyword */)) { + return parseAccessorDeclaration(136 /* GetAccessor */, fullStart, decorators, modifiers); } - else if (parseContextualModifier(120)) { - return parseAccessorDeclaration(137, fullStart, decorators, modifiers); + else if (parseContextualModifier(120 /* SetKeyword */)) { + return parseAccessorDeclaration(137 /* SetAccessor */, fullStart, decorators, modifiers); } return undefined; } @@ -7709,49 +9171,55 @@ var ts; if (accessor) { return accessor; } - var asteriskToken = parseOptionalToken(35); + var asteriskToken = parseOptionalToken(35 /* AsteriskToken */); var tokenIsIdentifier = isIdentifier(); var nameToken = token; var propertyName = parsePropertyName(); - var questionToken = parseOptionalToken(50); - if (asteriskToken || token === 16 || token === 24) { + // Disallowing of optional property assignments happens in the grammar checker. + var questionToken = parseOptionalToken(50 /* QuestionToken */); + if (asteriskToken || token === 16 /* OpenParenToken */ || token === 24 /* LessThanToken */) { return parseMethodDeclaration(fullStart, decorators, modifiers, asteriskToken, propertyName, questionToken); } - if ((token === 23 || token === 15) && tokenIsIdentifier) { - var shorthandDeclaration = createNode(225, fullStart); + // Parse to check if it is short-hand property assignment or normal property assignment + if ((token === 23 /* CommaToken */ || token === 15 /* CloseBraceToken */) && tokenIsIdentifier) { + var shorthandDeclaration = createNode(225 /* ShorthandPropertyAssignment */, fullStart); shorthandDeclaration.name = propertyName; shorthandDeclaration.questionToken = questionToken; return finishNode(shorthandDeclaration); } else { - var propertyAssignment = createNode(224, fullStart); + var propertyAssignment = createNode(224 /* PropertyAssignment */, fullStart); propertyAssignment.name = propertyName; propertyAssignment.questionToken = questionToken; - parseExpected(51); + parseExpected(51 /* ColonToken */); propertyAssignment.initializer = allowInAnd(parseAssignmentExpressionOrHigher); return finishNode(propertyAssignment); } } function parseObjectLiteralExpression() { - var node = createNode(154); - parseExpected(14); + var node = createNode(154 /* ObjectLiteralExpression */); + parseExpected(14 /* OpenBraceToken */); if (scanner.hasPrecedingLineBreak()) { - node.flags |= 512; + node.flags |= 512 /* MultiLine */; } - node.properties = parseDelimitedList(13, parseObjectLiteralElement, true); - parseExpected(15); + node.properties = parseDelimitedList(13 /* ObjectLiteralMembers */, parseObjectLiteralElement, true); + parseExpected(15 /* CloseBraceToken */); return finishNode(node); } function parseFunctionExpression() { + // GeneratorExpression : + // function * BindingIdentifier[Yield]opt (FormalParameters[Yield, GeneratorParameter]) { GeneratorBody[Yield] } + // FunctionExpression: + // function BindingIdentifieropt(FormalParameters) { FunctionBody } var saveDecoratorContext = inDecoratorContext(); if (saveDecoratorContext) { setDecoratorContext(false); } - var node = createNode(162); - parseExpected(83); - node.asteriskToken = parseOptionalToken(35); + var node = createNode(162 /* FunctionExpression */); + parseExpected(83 /* FunctionKeyword */); + node.asteriskToken = parseOptionalToken(35 /* AsteriskToken */); node.name = node.asteriskToken ? doInYieldContext(parseOptionalIdentifier) : parseOptionalIdentifier(); - fillSignature(51, !!node.asteriskToken, false, node); + fillSignature(51 /* ColonToken */, !!node.asteriskToken, false, node); node.body = parseFunctionBlock(!!node.asteriskToken, false); if (saveDecoratorContext) { setDecoratorContext(true); @@ -7762,20 +9230,21 @@ var ts; return isIdentifier() ? parseIdentifier() : undefined; } function parseNewExpression() { - var node = createNode(158); - parseExpected(88); + var node = createNode(158 /* NewExpression */); + parseExpected(88 /* NewKeyword */); node.expression = parseMemberExpressionOrHigher(); node.typeArguments = tryParse(parseTypeArgumentsInExpression); - if (node.typeArguments || token === 16) { + if (node.typeArguments || token === 16 /* OpenParenToken */) { node.arguments = parseArgumentList(); } return finishNode(node); } + // STATEMENTS function parseBlock(ignoreMissingOpenBrace, checkForStrictMode, diagnosticMessage) { - var node = createNode(179); - if (parseExpected(14, diagnosticMessage) || ignoreMissingOpenBrace) { - node.statements = parseList(2, checkForStrictMode, parseStatement); - parseExpected(15); + var node = createNode(179 /* Block */); + if (parseExpected(14 /* OpenBraceToken */, diagnosticMessage) || ignoreMissingOpenBrace) { + node.statements = parseList(2 /* BlockStatements */, checkForStrictMode, parseStatement); + parseExpected(15 /* CloseBraceToken */); } else { node.statements = createMissingList(); @@ -7785,6 +9254,8 @@ var ts; function parseFunctionBlock(allowYield, ignoreMissingOpenBrace, diagnosticMessage) { var savedYieldContext = inYieldContext(); setYieldContext(allowYield); + // We may be in a [Decorator] context when parsing a function expression or + // arrow function. The body of the function is not in [Decorator] context. var saveDecoratorContext = inDecoratorContext(); if (saveDecoratorContext) { setDecoratorContext(false); @@ -7797,47 +9268,51 @@ var ts; return block; } function parseEmptyStatement() { - var node = createNode(181); - parseExpected(22); + var node = createNode(181 /* EmptyStatement */); + parseExpected(22 /* SemicolonToken */); return finishNode(node); } function parseIfStatement() { - var node = createNode(183); - parseExpected(84); - parseExpected(16); + var node = createNode(183 /* IfStatement */); + parseExpected(84 /* IfKeyword */); + parseExpected(16 /* OpenParenToken */); node.expression = allowInAnd(parseExpression); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); node.thenStatement = parseStatement(); - node.elseStatement = parseOptional(76) ? parseStatement() : undefined; + node.elseStatement = parseOptional(76 /* ElseKeyword */) ? parseStatement() : undefined; return finishNode(node); } function parseDoStatement() { - var node = createNode(184); - parseExpected(75); + var node = createNode(184 /* DoStatement */); + parseExpected(75 /* DoKeyword */); node.statement = parseStatement(); - parseExpected(100); - parseExpected(16); + parseExpected(100 /* WhileKeyword */); + parseExpected(16 /* OpenParenToken */); node.expression = allowInAnd(parseExpression); - parseExpected(17); - parseOptional(22); + parseExpected(17 /* CloseParenToken */); + // From: https://mail.mozilla.org/pipermail/es-discuss/2011-August/016188.html + // 157 min --- All allen at wirfs-brock.com CONF --- "do{;}while(false)false" prohibited in + // spec but allowed in consensus reality. Approved -- this is the de-facto standard whereby + // do;while(0)x will have a semicolon inserted before x. + parseOptional(22 /* SemicolonToken */); return finishNode(node); } function parseWhileStatement() { - var node = createNode(185); - parseExpected(100); - parseExpected(16); + var node = createNode(185 /* WhileStatement */); + parseExpected(100 /* WhileKeyword */); + parseExpected(16 /* OpenParenToken */); node.expression = allowInAnd(parseExpression); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); node.statement = parseStatement(); return finishNode(node); } function parseForOrForInOrForOfStatement() { var pos = getNodePos(); - parseExpected(82); - parseExpected(16); + parseExpected(82 /* ForKeyword */); + parseExpected(16 /* OpenParenToken */); var initializer = undefined; - if (token !== 22) { - if (token === 98 || token === 105 || token === 70) { + if (token !== 22 /* SemicolonToken */) { + if (token === 98 /* VarKeyword */ || token === 105 /* LetKeyword */ || token === 70 /* ConstKeyword */) { initializer = parseVariableDeclarationList(true); } else { @@ -7845,32 +9320,32 @@ var ts; } } var forOrForInOrForOfStatement; - if (parseOptional(86)) { - var forInStatement = createNode(187, pos); + if (parseOptional(86 /* InKeyword */)) { + var forInStatement = createNode(187 /* ForInStatement */, pos); forInStatement.initializer = initializer; forInStatement.expression = allowInAnd(parseExpression); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); forOrForInOrForOfStatement = forInStatement; } - else if (parseOptional(125)) { - var forOfStatement = createNode(188, pos); + else if (parseOptional(125 /* OfKeyword */)) { + var forOfStatement = createNode(188 /* ForOfStatement */, pos); forOfStatement.initializer = initializer; forOfStatement.expression = allowInAnd(parseAssignmentExpressionOrHigher); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); forOrForInOrForOfStatement = forOfStatement; } else { - var forStatement = createNode(186, pos); + var forStatement = createNode(186 /* ForStatement */, pos); forStatement.initializer = initializer; - parseExpected(22); - if (token !== 22 && token !== 17) { + parseExpected(22 /* SemicolonToken */); + if (token !== 22 /* SemicolonToken */ && token !== 17 /* CloseParenToken */) { forStatement.condition = allowInAnd(parseExpression); } - parseExpected(22); - if (token !== 17) { + parseExpected(22 /* SemicolonToken */); + if (token !== 17 /* CloseParenToken */) { forStatement.iterator = allowInAnd(parseExpression); } - parseExpected(17); + parseExpected(17 /* CloseParenToken */); forOrForInOrForOfStatement = forStatement; } forOrForInOrForOfStatement.statement = parseStatement(); @@ -7878,7 +9353,7 @@ var ts; } function parseBreakOrContinueStatement(kind) { var node = createNode(kind); - parseExpected(kind === 190 ? 66 : 71); + parseExpected(kind === 190 /* BreakStatement */ ? 66 /* BreakKeyword */ : 71 /* ContinueKeyword */); if (!canParseSemicolon()) { node.label = parseIdentifier(); } @@ -7886,8 +9361,8 @@ var ts; return finishNode(node); } function parseReturnStatement() { - var node = createNode(191); - parseExpected(90); + var node = createNode(191 /* ReturnStatement */); + parseExpected(90 /* ReturnKeyword */); if (!canParseSemicolon()) { node.expression = allowInAnd(parseExpression); } @@ -7895,98 +9370,115 @@ var ts; return finishNode(node); } function parseWithStatement() { - var node = createNode(192); - parseExpected(101); - parseExpected(16); + var node = createNode(192 /* WithStatement */); + parseExpected(101 /* WithKeyword */); + parseExpected(16 /* OpenParenToken */); node.expression = allowInAnd(parseExpression); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); node.statement = parseStatement(); return finishNode(node); } function parseCaseClause() { - var node = createNode(220); - parseExpected(67); + var node = createNode(220 /* CaseClause */); + parseExpected(67 /* CaseKeyword */); node.expression = allowInAnd(parseExpression); - parseExpected(51); - node.statements = parseList(4, false, parseStatement); + parseExpected(51 /* ColonToken */); + node.statements = parseList(4 /* SwitchClauseStatements */, false, parseStatement); return finishNode(node); } function parseDefaultClause() { - var node = createNode(221); - parseExpected(73); - parseExpected(51); - node.statements = parseList(4, false, parseStatement); + var node = createNode(221 /* DefaultClause */); + parseExpected(73 /* DefaultKeyword */); + parseExpected(51 /* ColonToken */); + node.statements = parseList(4 /* SwitchClauseStatements */, false, parseStatement); return finishNode(node); } function parseCaseOrDefaultClause() { - return token === 67 ? parseCaseClause() : parseDefaultClause(); + return token === 67 /* CaseKeyword */ ? parseCaseClause() : parseDefaultClause(); } function parseSwitchStatement() { - var node = createNode(193); - parseExpected(92); - parseExpected(16); + var node = createNode(193 /* SwitchStatement */); + parseExpected(92 /* SwitchKeyword */); + parseExpected(16 /* OpenParenToken */); node.expression = allowInAnd(parseExpression); - parseExpected(17); - var caseBlock = createNode(207, scanner.getStartPos()); - parseExpected(14); - caseBlock.clauses = parseList(3, false, parseCaseOrDefaultClause); - parseExpected(15); + parseExpected(17 /* CloseParenToken */); + var caseBlock = createNode(207 /* CaseBlock */, scanner.getStartPos()); + parseExpected(14 /* OpenBraceToken */); + caseBlock.clauses = parseList(3 /* SwitchClauses */, false, parseCaseOrDefaultClause); + parseExpected(15 /* CloseBraceToken */); node.caseBlock = finishNode(caseBlock); return finishNode(node); } function parseThrowStatement() { // ThrowStatement[Yield] : // throw [no LineTerminator here]Expression[In, ?Yield]; - var node = createNode(195); - parseExpected(94); + // Because of automatic semicolon insertion, we need to report error if this + // throw could be terminated with a semicolon. Note: we can't call 'parseExpression' + // directly as that might consume an expression on the following line. + // We just return 'undefined' in that case. The actual error will be reported in the + // grammar walker. + var node = createNode(195 /* ThrowStatement */); + parseExpected(94 /* ThrowKeyword */); node.expression = scanner.hasPrecedingLineBreak() ? undefined : allowInAnd(parseExpression); parseSemicolon(); return finishNode(node); } + // TODO: Review for error recovery function parseTryStatement() { - var node = createNode(196); - parseExpected(96); + var node = createNode(196 /* TryStatement */); + parseExpected(96 /* TryKeyword */); node.tryBlock = parseBlock(false, false); - node.catchClause = token === 68 ? parseCatchClause() : undefined; - if (!node.catchClause || token === 81) { - parseExpected(81); + node.catchClause = token === 68 /* CatchKeyword */ ? parseCatchClause() : undefined; + // If we don't have a catch clause, then we must have a finally clause. Try to parse + // one out no matter what. + if (!node.catchClause || token === 81 /* FinallyKeyword */) { + parseExpected(81 /* FinallyKeyword */); node.finallyBlock = parseBlock(false, false); } return finishNode(node); } function parseCatchClause() { - var result = createNode(223); - parseExpected(68); - if (parseExpected(16)) { + var result = createNode(223 /* CatchClause */); + parseExpected(68 /* CatchKeyword */); + if (parseExpected(16 /* OpenParenToken */)) { result.variableDeclaration = parseVariableDeclaration(); } - parseExpected(17); + parseExpected(17 /* CloseParenToken */); result.block = parseBlock(false, false); return finishNode(result); } function parseDebuggerStatement() { - var node = createNode(197); - parseExpected(72); + var node = createNode(197 /* DebuggerStatement */); + parseExpected(72 /* DebuggerKeyword */); parseSemicolon(); return finishNode(node); } function parseExpressionOrLabeledStatement() { + // Avoiding having to do the lookahead for a labeled statement by just trying to parse + // out an expression, seeing if it is identifier and then seeing if it is followed by + // a colon. var fullStart = scanner.getStartPos(); var expression = allowInAnd(parseExpression); - if (expression.kind === 65 && parseOptional(51)) { - var labeledStatement = createNode(194, fullStart); + if (expression.kind === 65 /* Identifier */ && parseOptional(51 /* ColonToken */)) { + var labeledStatement = createNode(194 /* LabeledStatement */, fullStart); labeledStatement.label = expression; labeledStatement.statement = parseStatement(); return finishNode(labeledStatement); } else { - var expressionStatement = createNode(182, fullStart); + var expressionStatement = createNode(182 /* ExpressionStatement */, fullStart); expressionStatement.expression = expression; parseSemicolon(); return finishNode(expressionStatement); } } function isStartOfStatement(inErrorRecovery) { + // Functions, variable statements and classes are allowed as a statement. But as per + // the grammar, they also allow modifiers. So we have to check for those statements + // that might be following modifiers.This ensures that things work properly when + // incrementally parsing as the parser will produce the same FunctionDeclaraiton, + // VariableStatement or ClassDeclaration, if it has the same text regardless of whether + // it is inside a block or not. if (ts.isModifier(token)) { var result = lookAhead(parseVariableStatementOrFunctionDeclarationOrClassDeclarationWithDecoratorsOrModifiers); if (result) { @@ -7994,42 +9486,57 @@ var ts; } } switch (token) { - case 22: + case 22 /* SemicolonToken */: + // If we're in error recovery, then we don't want to treat ';' as an empty statement. + // The problem is that ';' can show up in far too many contexts, and if we see one + // and assume it's a statement, then we may bail out inappropriately from whatever + // we're parsing. For example, if we have a semicolon in the middle of a class, then + // we really don't want to assume the class is over and we're on a statement in the + // outer module. We just want to consume and move on. return !inErrorRecovery; - case 14: - case 98: - case 105: - case 83: - case 69: - case 84: - case 75: - case 100: - case 82: - case 71: - case 66: - case 90: - case 101: - case 92: - case 94: - case 96: - case 72: - case 68: - case 81: + case 14 /* OpenBraceToken */: + case 98 /* VarKeyword */: + case 105 /* LetKeyword */: + case 83 /* FunctionKeyword */: + case 69 /* ClassKeyword */: + case 84 /* IfKeyword */: + case 75 /* DoKeyword */: + case 100 /* WhileKeyword */: + case 82 /* ForKeyword */: + case 71 /* ContinueKeyword */: + case 66 /* BreakKeyword */: + case 90 /* ReturnKeyword */: + case 101 /* WithKeyword */: + case 92 /* SwitchKeyword */: + case 94 /* ThrowKeyword */: + case 96 /* TryKeyword */: + case 72 /* DebuggerKeyword */: + // 'catch' and 'finally' do not actually indicate that the code is part of a statement, + // however, we say they are here so that we may gracefully parse them and error later. + case 68 /* CatchKeyword */: + case 81 /* FinallyKeyword */: return true; - case 70: + case 70 /* ConstKeyword */: + // const keyword can precede enum keyword when defining constant enums + // 'const enum' do not start statement. + // In ES 6 'enum' is a future reserved keyword, so it should not be used as identifier var isConstEnum = lookAhead(nextTokenIsEnumKeyword); return !isConstEnum; - case 104: - case 117: - case 77: - case 123: + case 104 /* InterfaceKeyword */: + case 117 /* ModuleKeyword */: + case 77 /* EnumKeyword */: + case 123 /* TypeKeyword */: + // When followed by an identifier, these do not start a statement but might + // instead be following declarations if (isDeclarationStart()) { return false; } - case 109: - case 107: - case 108: - case 110: + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: + case 110 /* StaticKeyword */: + // When followed by an identifier or keyword, these do not start a statement but + // might instead be following type members if (lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine)) { return false; } @@ -8039,7 +9546,7 @@ var ts; } function nextTokenIsEnumKeyword() { nextToken(); - return token === 77; + return token === 77 /* EnumKeyword */; } function nextTokenIsIdentifierOrKeywordOnSameLine() { nextToken(); @@ -8047,49 +9554,61 @@ var ts; } function parseStatement() { switch (token) { - case 14: + case 14 /* OpenBraceToken */: return parseBlock(false, false); - case 98: - case 70: + case 98 /* VarKeyword */: + case 70 /* ConstKeyword */: + // const here should always be parsed as const declaration because of check in 'isStatement' return parseVariableStatement(scanner.getStartPos(), undefined, undefined); - case 83: + case 83 /* FunctionKeyword */: return parseFunctionDeclaration(scanner.getStartPos(), undefined, undefined); - case 69: + case 69 /* ClassKeyword */: return parseClassDeclaration(scanner.getStartPos(), undefined, undefined); - case 22: + case 22 /* SemicolonToken */: return parseEmptyStatement(); - case 84: + case 84 /* IfKeyword */: return parseIfStatement(); - case 75: + case 75 /* DoKeyword */: return parseDoStatement(); - case 100: + case 100 /* WhileKeyword */: return parseWhileStatement(); - case 82: + case 82 /* ForKeyword */: return parseForOrForInOrForOfStatement(); - case 71: - return parseBreakOrContinueStatement(189); - case 66: - return parseBreakOrContinueStatement(190); - case 90: + case 71 /* ContinueKeyword */: + return parseBreakOrContinueStatement(189 /* ContinueStatement */); + case 66 /* BreakKeyword */: + return parseBreakOrContinueStatement(190 /* BreakStatement */); + case 90 /* ReturnKeyword */: return parseReturnStatement(); - case 101: + case 101 /* WithKeyword */: return parseWithStatement(); - case 92: + case 92 /* SwitchKeyword */: return parseSwitchStatement(); - case 94: + case 94 /* ThrowKeyword */: return parseThrowStatement(); - case 96: - case 68: - case 81: + case 96 /* TryKeyword */: + // Include the next two for error recovery. + case 68 /* CatchKeyword */: + case 81 /* FinallyKeyword */: return parseTryStatement(); - case 72: + case 72 /* DebuggerKeyword */: return parseDebuggerStatement(); - case 105: + case 105 /* LetKeyword */: + // If let follows identifier on the same line, it is declaration parse it as variable statement if (isLetDeclaration()) { return parseVariableStatement(scanner.getStartPos(), undefined, undefined); } + // Else parse it like identifier - fall through default: - if (ts.isModifier(token) || token === 52) { + // Functions and variable statements are allowed as a statement. But as per + // the grammar, they also allow modifiers. So we have to check for those + // statements that might be following modifiers. This ensures that things + // work properly when incrementally parsing as the parser will produce the + // same FunctionDeclaraiton or VariableStatement if it has the same text + // regardless of whether it is inside a block or not. + // Even though variable statements and function declarations cannot have decorators, + // we parse them here to provide better error recovery. + if (ts.isModifier(token) || token === 52 /* AtToken */) { var result = tryParse(parseVariableStatementOrFunctionDeclarationOrClassDeclarationWithDecoratorsOrModifiers); if (result) { return result; @@ -8103,51 +9622,53 @@ var ts; var decorators = parseDecorators(); var modifiers = parseModifiers(); switch (token) { - case 70: + case 70 /* ConstKeyword */: var nextTokenIsEnum = lookAhead(nextTokenIsEnumKeyword); if (nextTokenIsEnum) { return undefined; } return parseVariableStatement(start, decorators, modifiers); - case 105: + case 105 /* LetKeyword */: if (!isLetDeclaration()) { return undefined; } return parseVariableStatement(start, decorators, modifiers); - case 98: + case 98 /* VarKeyword */: return parseVariableStatement(start, decorators, modifiers); - case 83: + case 83 /* FunctionKeyword */: return parseFunctionDeclaration(start, decorators, modifiers); - case 69: + case 69 /* ClassKeyword */: return parseClassDeclaration(start, decorators, modifiers); } return undefined; } function parseFunctionBlockOrSemicolon(isGenerator, diagnosticMessage) { - if (token !== 14 && canParseSemicolon()) { + if (token !== 14 /* OpenBraceToken */ && canParseSemicolon()) { parseSemicolon(); return; } return parseFunctionBlock(isGenerator, false, diagnosticMessage); } + // DECLARATIONS function parseArrayBindingElement() { - if (token === 23) { - return createNode(175); + if (token === 23 /* CommaToken */) { + return createNode(175 /* OmittedExpression */); } - var node = createNode(152); - node.dotDotDotToken = parseOptionalToken(21); + var node = createNode(152 /* BindingElement */); + node.dotDotDotToken = parseOptionalToken(21 /* DotDotDotToken */); node.name = parseIdentifierOrPattern(); node.initializer = parseInitializer(false); return finishNode(node); } function parseObjectBindingElement() { - var node = createNode(152); + var node = createNode(152 /* BindingElement */); + // TODO(andersh): Handle computed properties var id = parsePropertyName(); - if (id.kind === 65 && token !== 51) { + if (id.kind === 65 /* Identifier */ && token !== 51 /* ColonToken */) { node.name = id; } else { - parseExpected(51); + parseExpected(51 /* ColonToken */); node.propertyName = id; node.name = parseIdentifierOrPattern(); } @@ -8155,33 +9676,33 @@ var ts; return finishNode(node); } function parseObjectBindingPattern() { - var node = createNode(150); - parseExpected(14); - node.elements = parseDelimitedList(10, parseObjectBindingElement); - parseExpected(15); + var node = createNode(150 /* ObjectBindingPattern */); + parseExpected(14 /* OpenBraceToken */); + node.elements = parseDelimitedList(10 /* ObjectBindingElements */, parseObjectBindingElement); + parseExpected(15 /* CloseBraceToken */); return finishNode(node); } function parseArrayBindingPattern() { - var node = createNode(151); - parseExpected(18); - node.elements = parseDelimitedList(11, parseArrayBindingElement); - parseExpected(19); + var node = createNode(151 /* ArrayBindingPattern */); + parseExpected(18 /* OpenBracketToken */); + node.elements = parseDelimitedList(11 /* ArrayBindingElements */, parseArrayBindingElement); + parseExpected(19 /* CloseBracketToken */); return finishNode(node); } function isIdentifierOrPattern() { - return token === 14 || token === 18 || isIdentifier(); + return token === 14 /* OpenBraceToken */ || token === 18 /* OpenBracketToken */ || isIdentifier(); } function parseIdentifierOrPattern() { - if (token === 18) { + if (token === 18 /* OpenBracketToken */) { return parseArrayBindingPattern(); } - if (token === 14) { + if (token === 14 /* OpenBraceToken */) { return parseObjectBindingPattern(); } return parseIdentifier(); } function parseVariableDeclaration() { - var node = createNode(198); + var node = createNode(198 /* VariableDeclaration */); node.name = parseIdentifierOrPattern(); node.type = parseTypeAnnotation(); if (!isInOrOfKeyword(token)) { @@ -8190,36 +9711,45 @@ var ts; return finishNode(node); } function parseVariableDeclarationList(inForStatementInitializer) { - var node = createNode(199); + var node = createNode(199 /* VariableDeclarationList */); switch (token) { - case 98: + case 98 /* VarKeyword */: break; - case 105: - node.flags |= 4096; + case 105 /* LetKeyword */: + node.flags |= 4096 /* Let */; break; - case 70: - node.flags |= 8192; + case 70 /* ConstKeyword */: + node.flags |= 8192 /* Const */; break; default: ts.Debug.fail(); } nextToken(); - if (token === 125 && lookAhead(canFollowContextualOfKeyword)) { + // The user may have written the following: + // + // for (let of X) { } + // + // In this case, we want to parse an empty declaration list, and then parse 'of' + // as a keyword. The reason this is not automatic is that 'of' is a valid identifier. + // So we need to look ahead to determine if 'of' should be treated as a keyword in + // this context. + // The checker will then give an error that there is an empty declaration list. + if (token === 125 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { node.declarations = createMissingList(); } else { var savedDisallowIn = inDisallowInContext(); setDisallowInContext(inForStatementInitializer); - node.declarations = parseDelimitedList(9, parseVariableDeclaration); + node.declarations = parseDelimitedList(9 /* VariableDeclarations */, parseVariableDeclaration); setDisallowInContext(savedDisallowIn); } return finishNode(node); } function canFollowContextualOfKeyword() { - return nextTokenIsIdentifier() && nextToken() === 17; + return nextTokenIsIdentifier() && nextToken() === 17 /* CloseParenToken */; } function parseVariableStatement(fullStart, decorators, modifiers) { - var node = createNode(180, fullStart); + var node = createNode(180 /* VariableStatement */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); node.declarationList = parseVariableDeclarationList(false); @@ -8227,38 +9757,38 @@ var ts; return finishNode(node); } function parseFunctionDeclaration(fullStart, decorators, modifiers) { - var node = createNode(200, fullStart); + var node = createNode(200 /* FunctionDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - parseExpected(83); - node.asteriskToken = parseOptionalToken(35); - node.name = node.flags & 256 ? parseOptionalIdentifier() : parseIdentifier(); - fillSignature(51, !!node.asteriskToken, false, node); + parseExpected(83 /* FunctionKeyword */); + node.asteriskToken = parseOptionalToken(35 /* AsteriskToken */); + node.name = node.flags & 256 /* Default */ ? parseOptionalIdentifier() : parseIdentifier(); + fillSignature(51 /* ColonToken */, !!node.asteriskToken, false, node); node.body = parseFunctionBlockOrSemicolon(!!node.asteriskToken, ts.Diagnostics.or_expected); return finishNode(node); } function parseConstructorDeclaration(pos, decorators, modifiers) { - var node = createNode(135, pos); + var node = createNode(135 /* Constructor */, pos); node.decorators = decorators; setModifiers(node, modifiers); - parseExpected(114); - fillSignature(51, false, false, node); + parseExpected(114 /* ConstructorKeyword */); + fillSignature(51 /* ColonToken */, false, false, node); node.body = parseFunctionBlockOrSemicolon(false, ts.Diagnostics.or_expected); return finishNode(node); } function parseMethodDeclaration(fullStart, decorators, modifiers, asteriskToken, name, questionToken, diagnosticMessage) { - var method = createNode(134, fullStart); + var method = createNode(134 /* MethodDeclaration */, fullStart); method.decorators = decorators; setModifiers(method, modifiers); method.asteriskToken = asteriskToken; method.name = name; method.questionToken = questionToken; - fillSignature(51, !!asteriskToken, false, method); + fillSignature(51 /* ColonToken */, !!asteriskToken, false, method); method.body = parseFunctionBlockOrSemicolon(!!asteriskToken, diagnosticMessage); return finishNode(method); } function parsePropertyDeclaration(fullStart, decorators, modifiers, name, questionToken) { - var property = createNode(132, fullStart); + var property = createNode(132 /* PropertyDeclaration */, fullStart); property.decorators = decorators; setModifiers(property, modifiers); property.name = name; @@ -8269,10 +9799,12 @@ var ts; return finishNode(property); } function parsePropertyOrMethodDeclaration(fullStart, decorators, modifiers) { - var asteriskToken = parseOptionalToken(35); + var asteriskToken = parseOptionalToken(35 /* AsteriskToken */); var name = parsePropertyName(); - var questionToken = parseOptionalToken(50); - if (asteriskToken || token === 16 || token === 24) { + // Note: this is not legal as per the grammar. But we allow it in the parser and + // report an error in the grammar checker. + var questionToken = parseOptionalToken(50 /* QuestionToken */); + if (asteriskToken || token === 16 /* OpenParenToken */ || token === 24 /* LessThanToken */) { return parseMethodDeclaration(fullStart, decorators, modifiers, asteriskToken, name, questionToken, ts.Diagnostics.or_expected); } else { @@ -8287,41 +9819,54 @@ var ts; node.decorators = decorators; setModifiers(node, modifiers); node.name = parsePropertyName(); - fillSignature(51, false, false, node); + fillSignature(51 /* ColonToken */, false, false, node); node.body = parseFunctionBlockOrSemicolon(false); return finishNode(node); } function isClassMemberStart() { var idToken; - if (token === 52) { + if (token === 52 /* AtToken */) { return true; } + // Eat up all modifiers, but hold on to the last one in case it is actually an identifier. while (ts.isModifier(token)) { idToken = token; nextToken(); } - if (token === 35) { + if (token === 35 /* AsteriskToken */) { return true; } + // Try to get the first property-like token following all modifiers. + // This can either be an identifier or the 'get' or 'set' keywords. if (isLiteralPropertyName()) { idToken = token; nextToken(); } - if (token === 18) { + // Index signatures and computed properties are class members; we can parse. + if (token === 18 /* OpenBracketToken */) { return true; } + // If we were able to get any potential identifier... if (idToken !== undefined) { - if (!ts.isKeyword(idToken) || idToken === 120 || idToken === 116) { + // If we have a non-keyword identifier, or if we have an accessor, then it's safe to parse. + if (!ts.isKeyword(idToken) || idToken === 120 /* SetKeyword */ || idToken === 116 /* GetKeyword */) { return true; } + // If it *is* a keyword, but not an accessor, check a little farther along + // to see if it should actually be parsed as a class member. switch (token) { - case 16: - case 24: - case 51: - case 53: - case 50: + case 16 /* OpenParenToken */: // Method declaration + case 24 /* LessThanToken */: // Generic Method declaration + case 51 /* ColonToken */: // Type Annotation for declaration + case 53 /* EqualsToken */: // Initializer for declaration + case 50 /* QuestionToken */: return true; default: + // Covers + // - Semicolons (declaration termination) + // - Closing braces (end-of-class, must be declaration) + // - End-of-files (not valid, but permitted so that it gets caught later on) + // - Line-breaks (enabling *automatic semicolon insertion*) return canParseSemicolon(); } } @@ -8331,14 +9876,14 @@ var ts; var decorators; while (true) { var decoratorStart = getNodePos(); - if (!parseOptional(52)) { + if (!parseOptional(52 /* AtToken */)) { break; } if (!decorators) { decorators = []; decorators.pos = scanner.getStartPos(); } - var decorator = createNode(130, decoratorStart); + var decorator = createNode(130 /* Decorator */, decoratorStart); decorator.expression = doInDecoratorContext(parseLeftHandSideExpressionOrHigher); decorators.push(finishNode(decorator)); } @@ -8370,8 +9915,8 @@ var ts; return modifiers; } function parseClassElement() { - if (token === 22) { - var result = createNode(178); + if (token === 22 /* SemicolonToken */) { + var result = createNode(178 /* SemicolonClassElement */); nextToken(); return finishNode(result); } @@ -8382,48 +9927,57 @@ var ts; if (accessor) { return accessor; } - if (token === 114) { + if (token === 114 /* ConstructorKeyword */) { return parseConstructorDeclaration(fullStart, decorators, modifiers); } if (isIndexSignature()) { return parseIndexSignatureDeclaration(fullStart, decorators, modifiers); } + // It is very important that we check this *after* checking indexers because + // the [ token can start an index signature or a computed property name if (isIdentifierOrKeyword() || - token === 8 || - token === 7 || - token === 35 || - token === 18) { + token === 8 /* StringLiteral */ || + token === 7 /* NumericLiteral */ || + token === 35 /* AsteriskToken */ || + token === 18 /* OpenBracketToken */) { return parsePropertyOrMethodDeclaration(fullStart, decorators, modifiers); } if (decorators) { - var name_3 = createMissingNode(65, true, ts.Diagnostics.Declaration_expected); + // treat this as a property declaration with a missing name. + var name_3 = createMissingNode(65 /* Identifier */, true, ts.Diagnostics.Declaration_expected); return parsePropertyDeclaration(fullStart, decorators, modifiers, name_3, undefined); } + // 'isClassMemberStart' should have hinted not to attempt parsing. ts.Debug.fail("Should not have attempted to parse class member declaration."); } function parseClassExpression() { - return parseClassDeclarationOrExpression(scanner.getStartPos(), undefined, undefined, 174); + return parseClassDeclarationOrExpression( + /*fullStart:*/ scanner.getStartPos(), + /*decorators:*/ undefined, + /*modifiers:*/ undefined, 174 /* ClassExpression */); } function parseClassDeclaration(fullStart, decorators, modifiers) { - return parseClassDeclarationOrExpression(fullStart, decorators, modifiers, 201); + return parseClassDeclarationOrExpression(fullStart, decorators, modifiers, 201 /* ClassDeclaration */); } function parseClassDeclarationOrExpression(fullStart, decorators, modifiers, kind) { + // In ES6 specification, All parts of a ClassDeclaration or a ClassExpression are strict mode code var savedStrictModeContext = inStrictModeContext(); - if (languageVersion >= 2) { - setStrictModeContext(true); - } + setStrictModeContext(true); var node = createNode(kind, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - parseExpected(69); - node.name = node.flags & 256 ? parseOptionalIdentifier() : parseIdentifier(); + parseExpected(69 /* ClassKeyword */); + node.name = parseOptionalIdentifier(); node.typeParameters = parseTypeParameters(); node.heritageClauses = parseHeritageClauses(true); - if (parseExpected(14)) { + if (parseExpected(14 /* OpenBraceToken */)) { + // ClassTail[Yield,GeneratorParameter] : See 14.5 + // [~GeneratorParameter]ClassHeritage[?Yield]opt { ClassBody[?Yield]opt } + // [+GeneratorParameter] ClassHeritageopt { ClassBodyopt } node.members = inGeneratorParameterContext() ? doOutsideOfYieldContext(parseClassMembers) : parseClassMembers(); - parseExpected(15); + parseExpected(15 /* CloseBraceToken */); } else { node.members = createMissingList(); @@ -8444,37 +9998,37 @@ var ts; return undefined; } function parseHeritageClausesWorker() { - return parseList(19, false, parseHeritageClause); + return parseList(19 /* HeritageClauses */, false, parseHeritageClause); } function parseHeritageClause() { - if (token === 79 || token === 103) { - var node = createNode(222); + if (token === 79 /* ExtendsKeyword */ || token === 103 /* ImplementsKeyword */) { + var node = createNode(222 /* HeritageClause */); node.token = token; nextToken(); - node.types = parseDelimitedList(8, parseHeritageClauseElement); + node.types = parseDelimitedList(8 /* HeritageClauseElement */, parseHeritageClauseElement); return finishNode(node); } return undefined; } function parseHeritageClauseElement() { - var node = createNode(177); + var node = createNode(177 /* HeritageClauseElement */); node.expression = parseLeftHandSideExpressionOrHigher(); - if (token === 24) { - node.typeArguments = parseBracketedList(17, parseType, 24, 25); + if (token === 24 /* LessThanToken */) { + node.typeArguments = parseBracketedList(17 /* TypeArguments */, parseType, 24 /* LessThanToken */, 25 /* GreaterThanToken */); } return finishNode(node); } function isHeritageClause() { - return token === 79 || token === 103; + return token === 79 /* ExtendsKeyword */ || token === 103 /* ImplementsKeyword */; } function parseClassMembers() { - return parseList(6, false, parseClassElement); + return parseList(6 /* ClassMembers */, false, parseClassElement); } function parseInterfaceDeclaration(fullStart, decorators, modifiers) { - var node = createNode(202, fullStart); + var node = createNode(202 /* InterfaceDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - parseExpected(104); + parseExpected(104 /* InterfaceKeyword */); node.name = parseIdentifier(); node.typeParameters = parseTypeParameters(); node.heritageClauses = parseHeritageClauses(false); @@ -8482,31 +10036,35 @@ var ts; return finishNode(node); } function parseTypeAliasDeclaration(fullStart, decorators, modifiers) { - var node = createNode(203, fullStart); + var node = createNode(203 /* TypeAliasDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - parseExpected(123); + parseExpected(123 /* TypeKeyword */); node.name = parseIdentifier(); - parseExpected(53); + parseExpected(53 /* EqualsToken */); node.type = parseType(); parseSemicolon(); return finishNode(node); } + // In an ambient declaration, the grammar only allows integer literals as initializers. + // In a non-ambient declaration, the grammar allows uninitialized members only in a + // ConstantEnumMemberSection, which starts at the beginning of an enum declaration + // or any time an integer literal initializer is encountered. function parseEnumMember() { - var node = createNode(226, scanner.getStartPos()); + var node = createNode(226 /* EnumMember */, scanner.getStartPos()); node.name = parsePropertyName(); node.initializer = allowInAnd(parseNonParameterInitializer); return finishNode(node); } function parseEnumDeclaration(fullStart, decorators, modifiers) { - var node = createNode(204, fullStart); + var node = createNode(204 /* EnumDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - parseExpected(77); + parseExpected(77 /* EnumKeyword */); node.name = parseIdentifier(); - if (parseExpected(14)) { - node.members = parseDelimitedList(7, parseEnumMember); - parseExpected(15); + if (parseExpected(14 /* OpenBraceToken */)) { + node.members = parseDelimitedList(7 /* EnumMembers */, parseEnumMember); + parseExpected(15 /* CloseBraceToken */); } else { node.members = createMissingList(); @@ -8514,10 +10072,10 @@ var ts; return finishNode(node); } function parseModuleBlock() { - var node = createNode(206, scanner.getStartPos()); - if (parseExpected(14)) { - node.statements = parseList(1, false, parseModuleElement); - parseExpected(15); + var node = createNode(206 /* ModuleBlock */, scanner.getStartPos()); + if (parseExpected(14 /* OpenBraceToken */)) { + node.statements = parseList(1 /* ModuleElements */, false, parseModuleElement); + parseExpected(15 /* CloseBraceToken */); } else { node.statements = createMissingList(); @@ -8525,18 +10083,18 @@ var ts; return finishNode(node); } function parseInternalModuleTail(fullStart, decorators, modifiers, flags) { - var node = createNode(205, fullStart); + var node = createNode(205 /* ModuleDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); node.flags |= flags; node.name = parseIdentifier(); - node.body = parseOptional(20) - ? parseInternalModuleTail(getNodePos(), undefined, undefined, 1) + node.body = parseOptional(20 /* DotToken */) + ? parseInternalModuleTail(getNodePos(), undefined, undefined, 1 /* Export */) : parseModuleBlock(); return finishNode(node); } function parseAmbientExternalModuleDeclaration(fullStart, decorators, modifiers) { - var node = createNode(205, fullStart); + var node = createNode(205 /* ModuleDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); node.name = parseLiteralNode(true); @@ -8544,48 +10102,55 @@ var ts; return finishNode(node); } function parseModuleDeclaration(fullStart, decorators, modifiers) { - parseExpected(117); - return token === 8 + parseExpected(117 /* ModuleKeyword */); + return token === 8 /* StringLiteral */ ? parseAmbientExternalModuleDeclaration(fullStart, decorators, modifiers) : parseInternalModuleTail(fullStart, decorators, modifiers, modifiers ? modifiers.flags : 0); } function isExternalModuleReference() { - return token === 118 && + return token === 118 /* RequireKeyword */ && lookAhead(nextTokenIsOpenParen); } function nextTokenIsOpenParen() { - return nextToken() === 16; + return nextToken() === 16 /* OpenParenToken */; } function nextTokenIsCommaOrFromKeyword() { nextToken(); - return token === 23 || - token === 124; + return token === 23 /* CommaToken */ || + token === 124 /* FromKeyword */; } function parseImportDeclarationOrImportEqualsDeclaration(fullStart, decorators, modifiers) { - parseExpected(85); + parseExpected(85 /* ImportKeyword */); var afterImportPos = scanner.getStartPos(); var identifier; if (isIdentifier()) { identifier = parseIdentifier(); - if (token !== 23 && token !== 124) { - var importEqualsDeclaration = createNode(208, fullStart); + if (token !== 23 /* CommaToken */ && token !== 124 /* FromKeyword */) { + // ImportEquals declaration of type: + // import x = require("mod"); or + // import x = M.x; + var importEqualsDeclaration = createNode(208 /* ImportEqualsDeclaration */, fullStart); importEqualsDeclaration.decorators = decorators; setModifiers(importEqualsDeclaration, modifiers); importEqualsDeclaration.name = identifier; - parseExpected(53); + parseExpected(53 /* EqualsToken */); importEqualsDeclaration.moduleReference = parseModuleReference(); parseSemicolon(); return finishNode(importEqualsDeclaration); } } - var importDeclaration = createNode(209, fullStart); + // Import statement + var importDeclaration = createNode(209 /* ImportDeclaration */, fullStart); importDeclaration.decorators = decorators; setModifiers(importDeclaration, modifiers); + // ImportDeclaration: + // import ImportClause from ModuleSpecifier ; + // import ModuleSpecifier; if (identifier || - token === 35 || - token === 14) { + token === 35 /* AsteriskToken */ || + token === 14 /* OpenBraceToken */) { importDeclaration.importClause = parseImportClause(identifier, afterImportPos); - parseExpected(124); + parseExpected(124 /* FromKeyword */); } importDeclaration.moduleSpecifier = parseModuleSpecifier(); parseSemicolon(); @@ -8598,13 +10163,17 @@ var ts; // NamedImports // ImportedDefaultBinding, NameSpaceImport // ImportedDefaultBinding, NamedImports - var importClause = createNode(210, fullStart); + var importClause = createNode(210 /* ImportClause */, fullStart); if (identifier) { + // ImportedDefaultBinding: + // ImportedBinding importClause.name = identifier; } + // If there was no default import or if there is comma token after default import + // parse namespace or named imports if (!importClause.name || - parseOptional(23)) { - importClause.namedBindings = token === 35 ? parseNamespaceImport() : parseNamedImportsOrExports(212); + parseOptional(23 /* CommaToken */)) { + importClause.namedBindings = token === 35 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(212 /* NamedImports */); } return finishNode(importClause); } @@ -8614,47 +10183,67 @@ var ts; : parseEntityName(false); } function parseExternalModuleReference() { - var node = createNode(219); - parseExpected(118); - parseExpected(16); + var node = createNode(219 /* ExternalModuleReference */); + parseExpected(118 /* RequireKeyword */); + parseExpected(16 /* OpenParenToken */); node.expression = parseModuleSpecifier(); - parseExpected(17); + parseExpected(17 /* CloseParenToken */); return finishNode(node); } function parseModuleSpecifier() { + // We allow arbitrary expressions here, even though the grammar only allows string + // literals. We check to ensure that it is only a string literal later in the grammar + // walker. var result = parseExpression(); - if (result.kind === 8) { + // Ensure the string being required is in our 'identifier' table. This will ensure + // that features like 'find refs' will look inside this file when search for its name. + if (result.kind === 8 /* StringLiteral */) { internIdentifier(result.text); } return result; } function parseNamespaceImport() { - var namespaceImport = createNode(211); - parseExpected(35); - parseExpected(102); + // NameSpaceImport: + // * as ImportedBinding + var namespaceImport = createNode(211 /* NamespaceImport */); + parseExpected(35 /* AsteriskToken */); + parseExpected(102 /* AsKeyword */); namespaceImport.name = parseIdentifier(); return finishNode(namespaceImport); } function parseNamedImportsOrExports(kind) { var node = createNode(kind); - node.elements = parseBracketedList(20, kind === 212 ? parseImportSpecifier : parseExportSpecifier, 14, 15); + // NamedImports: + // { } + // { ImportsList } + // { ImportsList, } + // ImportsList: + // ImportSpecifier + // ImportsList, ImportSpecifier + node.elements = parseBracketedList(20 /* ImportOrExportSpecifiers */, kind === 212 /* NamedImports */ ? parseImportSpecifier : parseExportSpecifier, 14 /* OpenBraceToken */, 15 /* CloseBraceToken */); return finishNode(node); } function parseExportSpecifier() { - return parseImportOrExportSpecifier(217); + return parseImportOrExportSpecifier(217 /* ExportSpecifier */); } function parseImportSpecifier() { - return parseImportOrExportSpecifier(213); + return parseImportOrExportSpecifier(213 /* ImportSpecifier */); } function parseImportOrExportSpecifier(kind) { var node = createNode(kind); + // ImportSpecifier: + // BindingIdentifier + // IdentifierName as BindingIdentifier + // ExportSpecififer: + // IdentifierName + // IdentifierName as IdentifierName var checkIdentifierIsKeyword = ts.isKeyword(token) && !isIdentifier(); var checkIdentifierStart = scanner.getTokenPos(); var checkIdentifierEnd = scanner.getTextPos(); var identifierName = parseIdentifierName(); - if (token === 102) { + if (token === 102 /* AsKeyword */) { node.propertyName = identifierName; - parseExpected(102); + parseExpected(102 /* AsKeyword */); checkIdentifierIsKeyword = ts.isKeyword(token) && !isIdentifier(); checkIdentifierStart = scanner.getTokenPos(); checkIdentifierEnd = scanner.getTextPos(); @@ -8663,22 +10252,23 @@ var ts; else { node.name = identifierName; } - if (kind === 213 && checkIdentifierIsKeyword) { + if (kind === 213 /* ImportSpecifier */ && checkIdentifierIsKeyword) { + // Report error identifier expected parseErrorAtPosition(checkIdentifierStart, checkIdentifierEnd - checkIdentifierStart, ts.Diagnostics.Identifier_expected); } return finishNode(node); } function parseExportDeclaration(fullStart, decorators, modifiers) { - var node = createNode(215, fullStart); + var node = createNode(215 /* ExportDeclaration */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - if (parseOptional(35)) { - parseExpected(124); + if (parseOptional(35 /* AsteriskToken */)) { + parseExpected(124 /* FromKeyword */); node.moduleSpecifier = parseModuleSpecifier(); } else { - node.exportClause = parseNamedImportsOrExports(216); - if (parseOptional(124)) { + node.exportClause = parseNamedImportsOrExports(216 /* NamedExports */); + if (parseOptional(124 /* FromKeyword */)) { node.moduleSpecifier = parseModuleSpecifier(); } } @@ -8686,59 +10276,62 @@ var ts; return finishNode(node); } function parseExportAssignment(fullStart, decorators, modifiers) { - var node = createNode(214, fullStart); + var node = createNode(214 /* ExportAssignment */, fullStart); node.decorators = decorators; setModifiers(node, modifiers); - if (parseOptional(53)) { + if (parseOptional(53 /* EqualsToken */)) { node.isExportEquals = true; - node.expression = parseAssignmentExpressionOrHigher(); } else { - parseExpected(73); - if (parseOptional(51)) { - node.type = parseType(); - } - else { - node.expression = parseAssignmentExpressionOrHigher(); - } + parseExpected(73 /* DefaultKeyword */); } + node.expression = parseAssignmentExpressionOrHigher(); parseSemicolon(); return finishNode(node); } function isLetDeclaration() { + // It is let declaration if in strict mode or next token is identifier\open bracket\open curly on same line. + // otherwise it needs to be treated like identifier return inStrictModeContext() || lookAhead(nextTokenIsIdentifierOrStartOfDestructuringOnTheSameLine); } function isDeclarationStart(followsModifier) { switch (token) { - case 98: - case 70: - case 83: + case 98 /* VarKeyword */: + case 70 /* ConstKeyword */: + case 83 /* FunctionKeyword */: return true; - case 105: + case 105 /* LetKeyword */: return isLetDeclaration(); - case 69: - case 104: - case 77: - case 123: + case 69 /* ClassKeyword */: + case 104 /* InterfaceKeyword */: + case 77 /* EnumKeyword */: + case 123 /* TypeKeyword */: + // Not true keywords so ensure an identifier follows return lookAhead(nextTokenIsIdentifierOrKeyword); - case 85: + case 85 /* ImportKeyword */: + // Not true keywords so ensure an identifier follows or is string literal or asterisk or open brace return lookAhead(nextTokenCanFollowImportKeyword); - case 117: + case 117 /* ModuleKeyword */: + // Not a true keyword so ensure an identifier or string literal follows return lookAhead(nextTokenIsIdentifierOrKeywordOrStringLiteral); - case 78: + case 78 /* ExportKeyword */: + // Check for export assignment or modifier on source element return lookAhead(nextTokenCanFollowExportKeyword); - case 115: - case 109: - case 107: - case 108: - case 110: + case 115 /* DeclareKeyword */: + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: + case 110 /* StaticKeyword */: + // Check for modifier on source element return lookAhead(nextTokenIsDeclarationStart); - case 52: + case 52 /* AtToken */: + // a lookahead here is too costly, and decorators are only valid on a declaration. + // We will assume we are parsing a declaration here and report an error later return !followsModifier; } } function isIdentifierOrKeyword() { - return token >= 65; + return token >= 65 /* Identifier */; } function nextTokenIsIdentifierOrKeyword() { nextToken(); @@ -8746,60 +10339,62 @@ var ts; } function nextTokenIsIdentifierOrKeywordOrStringLiteral() { nextToken(); - return isIdentifierOrKeyword() || token === 8; + return isIdentifierOrKeyword() || token === 8 /* StringLiteral */; } function nextTokenCanFollowImportKeyword() { nextToken(); - return isIdentifierOrKeyword() || token === 8 || - token === 35 || token === 14; + return isIdentifierOrKeyword() || token === 8 /* StringLiteral */ || + token === 35 /* AsteriskToken */ || token === 14 /* OpenBraceToken */; } function nextTokenCanFollowExportKeyword() { nextToken(); - return token === 53 || token === 35 || - token === 14 || token === 73 || isDeclarationStart(true); + return token === 53 /* EqualsToken */ || token === 35 /* AsteriskToken */ || + token === 14 /* OpenBraceToken */ || token === 73 /* DefaultKeyword */ || isDeclarationStart(true); } function nextTokenIsDeclarationStart() { nextToken(); return isDeclarationStart(true); } function nextTokenIsAsKeyword() { - return nextToken() === 102; + return nextToken() === 102 /* AsKeyword */; } function parseDeclaration() { var fullStart = getNodePos(); var decorators = parseDecorators(); var modifiers = parseModifiers(); - if (token === 78) { + if (token === 78 /* ExportKeyword */) { nextToken(); - if (token === 73 || token === 53) { + if (token === 73 /* DefaultKeyword */ || token === 53 /* EqualsToken */) { return parseExportAssignment(fullStart, decorators, modifiers); } - if (token === 35 || token === 14) { + if (token === 35 /* AsteriskToken */ || token === 14 /* OpenBraceToken */) { return parseExportDeclaration(fullStart, decorators, modifiers); } } switch (token) { - case 98: - case 105: - case 70: + case 98 /* VarKeyword */: + case 105 /* LetKeyword */: + case 70 /* ConstKeyword */: return parseVariableStatement(fullStart, decorators, modifiers); - case 83: + case 83 /* FunctionKeyword */: return parseFunctionDeclaration(fullStart, decorators, modifiers); - case 69: + case 69 /* ClassKeyword */: return parseClassDeclaration(fullStart, decorators, modifiers); - case 104: + case 104 /* InterfaceKeyword */: return parseInterfaceDeclaration(fullStart, decorators, modifiers); - case 123: + case 123 /* TypeKeyword */: return parseTypeAliasDeclaration(fullStart, decorators, modifiers); - case 77: + case 77 /* EnumKeyword */: return parseEnumDeclaration(fullStart, decorators, modifiers); - case 117: + case 117 /* ModuleKeyword */: return parseModuleDeclaration(fullStart, decorators, modifiers); - case 85: + case 85 /* ImportKeyword */: return parseImportDeclarationOrImportEqualsDeclaration(fullStart, decorators, modifiers); default: if (decorators) { - var node = createMissingNode(218, true, ts.Diagnostics.Declaration_expected); + // We reached this point because we encountered an AtToken and assumed a declaration would + // follow. For recovery and error reporting purposes, return an incomplete declaration. + var node = createMissingNode(218 /* MissingDeclaration */, true, ts.Diagnostics.Declaration_expected); node.pos = fullStart; node.decorators = decorators; setModifiers(node, modifiers); @@ -8827,15 +10422,18 @@ var ts; var referencedFiles = []; var amdDependencies = []; var amdModuleName; + // Keep scanning all the leading trivia in the file until we get to something that + // isn't trivia. Any single line comment will be analyzed to see if it is a + // reference comment. while (true) { var kind = triviaScanner.scan(); - if (kind === 5 || kind === 4 || kind === 3) { + if (kind === 5 /* WhitespaceTrivia */ || kind === 4 /* NewLineTrivia */ || kind === 3 /* MultiLineCommentTrivia */) { continue; } - if (kind !== 2) { + if (kind !== 2 /* SingleLineCommentTrivia */) { break; } - var range = { pos: triviaScanner.getTokenPos(), end: triviaScanner.getTextPos() }; + var range = { pos: triviaScanner.getTokenPos(), end: triviaScanner.getTextPos(), kind: triviaScanner.getToken() }; var comment = sourceText.substring(range.pos, range.end); var referencePathMatchResult = ts.getFileReferenceFromReferencePath(comment, range); if (referencePathMatchResult) { @@ -8878,11 +10476,11 @@ var ts; } function setExternalModuleIndicator(sourceFile) { sourceFile.externalModuleIndicator = ts.forEach(sourceFile.statements, function (node) { - return node.flags & 1 - || node.kind === 208 && node.moduleReference.kind === 219 - || node.kind === 209 - || node.kind === 214 - || node.kind === 215 + return node.flags & 1 /* Export */ + || node.kind === 208 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 219 /* ExternalModuleReference */ + || node.kind === 209 /* ImportDeclaration */ + || node.kind === 214 /* ExportAssignment */ + || node.kind === 215 /* ExportDeclaration */ ? node : undefined; }); @@ -8891,27 +10489,27 @@ var ts; function isLeftHandSideExpression(expr) { if (expr) { switch (expr.kind) { - case 155: - case 156: - case 158: - case 157: - case 159: - case 153: - case 161: - case 154: - case 174: - case 162: - case 65: - case 9: - case 7: - case 8: - case 10: - case 171: - case 80: - case 89: - case 93: - case 95: - case 91: + case 155 /* PropertyAccessExpression */: + case 156 /* ElementAccessExpression */: + case 158 /* NewExpression */: + case 157 /* CallExpression */: + case 159 /* TaggedTemplateExpression */: + case 153 /* ArrayLiteralExpression */: + case 161 /* ParenthesizedExpression */: + case 154 /* ObjectLiteralExpression */: + case 174 /* ClassExpression */: + case 162 /* FunctionExpression */: + case 65 /* Identifier */: + case 9 /* RegularExpressionLiteral */: + case 7 /* NumericLiteral */: + case 8 /* StringLiteral */: + case 10 /* NoSubstitutionTemplateLiteral */: + case 171 /* TemplateExpression */: + case 80 /* FalseKeyword */: + case 89 /* NullKeyword */: + case 93 /* ThisKeyword */: + case 95 /* TrueKeyword */: + case 91 /* SuperKeyword */: return true; } } @@ -8919,11 +10517,12 @@ var ts; } ts.isLeftHandSideExpression = isLeftHandSideExpression; function isAssignmentOperator(token) { - return token >= 53 && token <= 64; + return token >= 53 /* FirstAssignment */ && token <= 64 /* LastAssignment */; } ts.isAssignmentOperator = isAssignmentOperator; })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { var nextSymbolId = 1; @@ -8951,10 +10550,10 @@ var ts; var emptyArray = []; var emptySymbols = {}; var compilerOptions = host.getCompilerOptions(); - var languageVersion = compilerOptions.target || 0; + var languageVersion = compilerOptions.target || 0 /* ES3 */; var emitResolver = createResolver(); - var undefinedSymbol = createSymbol(4 | 67108864, "undefined"); - var argumentsSymbol = createSymbol(4 | 67108864, "arguments"); + var undefinedSymbol = createSymbol(4 /* Property */ | 67108864 /* Transient */, "undefined"); + var argumentsSymbol = createSymbol(4 /* Property */ | 67108864 /* Transient */, "arguments"); var checker = { getNodeCount: function () { return ts.sum(host.getSourceFiles(), "nodeCount"); }, getIdentifierCount: function () { return ts.sum(host.getSourceFiles(), "identifierCount"); }, @@ -8989,20 +10588,20 @@ var ts; isImplementationOfOverload: isImplementationOfOverload, getAliasedSymbol: resolveAlias, getEmitResolver: getEmitResolver, - getExportsOfExternalModule: getExportsOfExternalModule + getExportsOfModule: getExportsOfModuleAsArray }; - var unknownSymbol = createSymbol(4 | 67108864, "unknown"); - var resolvingSymbol = createSymbol(67108864, "__resolving__"); - var anyType = createIntrinsicType(1, "any"); - var stringType = createIntrinsicType(2, "string"); - var numberType = createIntrinsicType(4, "number"); - var booleanType = createIntrinsicType(8, "boolean"); - var esSymbolType = createIntrinsicType(1048576, "symbol"); - var voidType = createIntrinsicType(16, "void"); - var undefinedType = createIntrinsicType(32 | 262144, "undefined"); - var nullType = createIntrinsicType(64 | 262144, "null"); - var unknownType = createIntrinsicType(1, "unknown"); - var resolvingType = createIntrinsicType(1, "__resolving__"); + var unknownSymbol = createSymbol(4 /* Property */ | 67108864 /* Transient */, "unknown"); + var resolvingSymbol = createSymbol(67108864 /* Transient */, "__resolving__"); + var anyType = createIntrinsicType(1 /* Any */, "any"); + var stringType = createIntrinsicType(2 /* String */, "string"); + var numberType = createIntrinsicType(4 /* Number */, "number"); + var booleanType = createIntrinsicType(8 /* Boolean */, "boolean"); + var esSymbolType = createIntrinsicType(1048576 /* ESSymbol */, "symbol"); + var voidType = createIntrinsicType(16 /* Void */, "void"); + var undefinedType = createIntrinsicType(32 /* Undefined */ | 262144 /* ContainsUndefinedOrNull */, "undefined"); + var nullType = createIntrinsicType(64 /* Null */ | 262144 /* ContainsUndefinedOrNull */, "null"); + var unknownType = createIntrinsicType(1 /* Any */, "unknown"); + var resolvingType = createIntrinsicType(1 /* Any */, "__resolving__"); var emptyObjectType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); var anyFunctionType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); var noConstraintType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); @@ -9032,6 +10631,7 @@ var ts; var stringLiteralTypes = {}; var emitExtends = false; var emitDecorate = false; + var emitParam = false; var mergedSymbols = []; var symbolLinks = []; var nodeLinks = []; @@ -9040,22 +10640,24 @@ var ts; var primitiveTypeInfo = { "string": { type: stringType, - flags: 258 + flags: 258 /* StringLike */ }, "number": { type: numberType, - flags: 132 + flags: 132 /* NumberLike */ }, "boolean": { type: booleanType, - flags: 8 + flags: 8 /* Boolean */ }, "symbol": { type: esSymbolType, - flags: 1048576 + flags: 1048576 /* ESSymbol */ } }; function getEmitResolver(sourceFile) { + // Ensure we have all the type information in place for this file so that all the + // emitter questions of this resolver will return the right information. getDiagnostics(sourceFile); return emitResolver; } @@ -9070,38 +10672,38 @@ var ts; } function getExcludedSymbolFlags(flags) { var result = 0; - if (flags & 2) - result |= 107455; - if (flags & 1) - result |= 107454; - if (flags & 4) - result |= 107455; - if (flags & 8) - result |= 107455; - if (flags & 16) - result |= 106927; - if (flags & 32) - result |= 899583; - if (flags & 64) - result |= 792992; - if (flags & 256) - result |= 899327; - if (flags & 128) - result |= 899967; - if (flags & 512) - result |= 106639; - if (flags & 8192) - result |= 99263; - if (flags & 32768) - result |= 41919; - if (flags & 65536) - result |= 74687; - if (flags & 262144) - result |= 530912; - if (flags & 524288) - result |= 793056; - if (flags & 8388608) - result |= 8388608; + if (flags & 2 /* BlockScopedVariable */) + result |= 107455 /* BlockScopedVariableExcludes */; + if (flags & 1 /* FunctionScopedVariable */) + result |= 107454 /* FunctionScopedVariableExcludes */; + if (flags & 4 /* Property */) + result |= 107455 /* PropertyExcludes */; + if (flags & 8 /* EnumMember */) + result |= 107455 /* EnumMemberExcludes */; + if (flags & 16 /* Function */) + result |= 106927 /* FunctionExcludes */; + if (flags & 32 /* Class */) + result |= 899583 /* ClassExcludes */; + if (flags & 64 /* Interface */) + result |= 792992 /* InterfaceExcludes */; + if (flags & 256 /* RegularEnum */) + result |= 899327 /* RegularEnumExcludes */; + if (flags & 128 /* ConstEnum */) + result |= 899967 /* ConstEnumExcludes */; + if (flags & 512 /* ValueModule */) + result |= 106639 /* ValueModuleExcludes */; + if (flags & 8192 /* Method */) + result |= 99263 /* MethodExcludes */; + if (flags & 32768 /* GetAccessor */) + result |= 41919 /* GetAccessorExcludes */; + if (flags & 65536 /* SetAccessor */) + result |= 74687 /* SetAccessorExcludes */; + if (flags & 262144 /* TypeParameter */) + result |= 530912 /* TypeParameterExcludes */; + if (flags & 524288 /* TypeAlias */) + result |= 793056 /* TypeAliasExcludes */; + if (flags & 8388608 /* Alias */) + result |= 8388608 /* AliasExcludes */; return result; } function recordMergedSymbol(target, source) { @@ -9110,7 +10712,7 @@ var ts; mergedSymbols[source.mergeId] = target; } function cloneSymbol(symbol) { - var result = createSymbol(symbol.flags | 33554432, symbol.name); + var result = createSymbol(symbol.flags | 33554432 /* Merged */, symbol.name); result.declarations = symbol.declarations.slice(0); result.parent = symbol.parent; if (symbol.valueDeclaration) @@ -9126,7 +10728,8 @@ var ts; } function mergeSymbol(target, source) { if (!(target.flags & getExcludedSymbolFlags(source.flags))) { - if (source.flags & 512 && target.flags & 512 && target.constEnumOnlyModule && !source.constEnumOnlyModule) { + if (source.flags & 512 /* ValueModule */ && target.flags & 512 /* ValueModule */ && target.constEnumOnlyModule && !source.constEnumOnlyModule) { + // reset flag when merging instantiated module into value module that has only const enums target.constEnumOnlyModule = false; } target.flags |= source.flags; @@ -9148,7 +10751,7 @@ var ts; recordMergedSymbol(target, source); } else { - var message = target.flags & 2 || source.flags & 2 + var message = target.flags & 2 /* BlockScopedVariable */ || source.flags & 2 /* BlockScopedVariable */ ? ts.Diagnostics.Cannot_redeclare_block_scoped_variable_0 : ts.Diagnostics.Duplicate_identifier_0; ts.forEach(source.declarations, function (node) { error(node.name ? node.name : node, message, symbolToString(source)); @@ -9175,7 +10778,7 @@ var ts; } else { var symbol = target[id]; - if (!(symbol.flags & 33554432)) { + if (!(symbol.flags & 33554432 /* Merged */)) { target[id] = symbol = cloneSymbol(symbol); } mergeSymbol(symbol, source[id]); @@ -9184,7 +10787,7 @@ var ts; } } function getSymbolLinks(symbol) { - if (symbol.flags & 67108864) + if (symbol.flags & 67108864 /* Transient */) return symbol; var id = getSymbolId(symbol); return symbolLinks[id] || (symbolLinks[id] = {}); @@ -9194,26 +10797,29 @@ var ts; return nodeLinks[nodeId] || (nodeLinks[nodeId] = {}); } function getSourceFile(node) { - return ts.getAncestor(node, 227); + return ts.getAncestor(node, 227 /* SourceFile */); } function isGlobalSourceFile(node) { - return node.kind === 227 && !ts.isExternalModule(node); + return node.kind === 227 /* SourceFile */ && !ts.isExternalModule(node); } function getSymbol(symbols, name, meaning) { if (meaning && ts.hasProperty(symbols, name)) { var symbol = symbols[name]; - ts.Debug.assert((symbol.flags & 16777216) === 0, "Should never get an instantiated symbol here."); + ts.Debug.assert((symbol.flags & 16777216 /* Instantiated */) === 0, "Should never get an instantiated symbol here."); if (symbol.flags & meaning) { return symbol; } - if (symbol.flags & 8388608) { + if (symbol.flags & 8388608 /* Alias */) { var target = resolveAlias(symbol); + // Unknown symbol means an error occurred in alias resolution, treat it as positive answer to avoid cascading errors if (target === unknownSymbol || target.flags & meaning) { return symbol; } } } + // return undefined if we can't find a symbol. } + /** Returns true if node1 is defined before node 2**/ function isDefinedBefore(node1, node2) { var file1 = ts.getSourceFileOfNode(node1); var file2 = ts.getSourceFileOfNode(node2); @@ -9226,6 +10832,9 @@ var ts; var sourceFiles = host.getSourceFiles(); return sourceFiles.indexOf(file1) <= sourceFiles.indexOf(file2); } + // Resolve a given name for a given meaning at a given location. An error is reported if the name was not found and + // the nameNotFoundMessage argument is not undefined. Returns the resolved symbol, or undefined if no symbol with + // the given name can be found. function resolveName(location, name, meaning, nameNotFoundMessage, nameArg) { var result; var lastLocation; @@ -9233,24 +10842,25 @@ var ts; var errorLocation = location; var grandparent; loop: while (location) { + // Locals of a source file are not in scope (because they get merged into the global symbol table) if (location.locals && !isGlobalSourceFile(location)) { if (result = getSymbol(location.locals, name, meaning)) { break loop; } } switch (location.kind) { - case 227: + case 227 /* SourceFile */: if (!ts.isExternalModule(location)) break; - case 205: - if (result = getSymbol(getSymbolOfNode(location).exports, name, meaning & 8914931)) { - if (result.flags & meaning || !(result.flags & 8388608 && getDeclarationOfAliasSymbol(result).kind === 217)) { + case 205 /* ModuleDeclaration */: + if (result = getSymbol(getSymbolOfNode(location).exports, name, meaning & 8914931 /* ModuleMember */)) { + if (result.flags & meaning || !(result.flags & 8388608 /* Alias */ && getDeclarationOfAliasSymbol(result).kind === 217 /* ExportSpecifier */)) { break loop; } result = undefined; } - else if (location.kind === 227) { - result = getSymbol(getSymbolOfNode(location).exports, "default", meaning & 8914931); + else if (location.kind === 227 /* SourceFile */) { + result = getSymbol(getSymbolOfNode(location).exports, "default", meaning & 8914931 /* ModuleMember */); var localSymbol = ts.getLocalSymbolForExportDefault(result); if (result && (result.flags & meaning) && localSymbol && localSymbol.name === name) { break loop; @@ -9258,54 +10868,73 @@ var ts; result = undefined; } break; - case 204: - if (result = getSymbol(getSymbolOfNode(location).exports, name, meaning & 8)) { + case 204 /* EnumDeclaration */: + if (result = getSymbol(getSymbolOfNode(location).exports, name, meaning & 8 /* EnumMember */)) { break loop; } break; - case 132: - case 131: - if (location.parent.kind === 201 && !(location.flags & 128)) { + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + // TypeScript 1.0 spec (April 2014): 8.4.1 + // Initializer expressions for instance member variables are evaluated in the scope + // of the class constructor body but are not permitted to reference parameters or + // local variables of the constructor. This effectively means that entities from outer scopes + // by the same name as a constructor parameter or local variable are inaccessible + // in initializer expressions for instance member variables. + if (location.parent.kind === 201 /* ClassDeclaration */ && !(location.flags & 128 /* Static */)) { var ctor = findConstructorDeclaration(location.parent); if (ctor && ctor.locals) { - if (getSymbol(ctor.locals, name, meaning & 107455)) { + if (getSymbol(ctor.locals, name, meaning & 107455 /* Value */)) { + // Remember the property node, it will be used later to report appropriate error propertyWithInvalidInitializer = location; } } } break; - case 201: - case 202: - if (result = getSymbol(getSymbolOfNode(location).members, name, meaning & 793056)) { - if (lastLocation && lastLocation.flags & 128) { + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + if (result = getSymbol(getSymbolOfNode(location).members, name, meaning & 793056 /* Type */)) { + if (lastLocation && lastLocation.flags & 128 /* Static */) { + // TypeScript 1.0 spec (April 2014): 3.4.1 + // The scope of a type parameter extends over the entire declaration with which the type + // parameter list is associated, with the exception of static member declarations in classes. error(errorLocation, ts.Diagnostics.Static_members_cannot_reference_class_type_parameters); return undefined; } break loop; } break; - case 127: + // It is not legal to reference a class's own type parameters from a computed property name that + // belongs to the class. For example: + // + // function foo() { return '' } + // class C { // <-- Class's own type parameter T + // [foo()]() { } // <-- Reference to T from class's own computed property + // } + // + case 127 /* ComputedPropertyName */: grandparent = location.parent.parent; - if (grandparent.kind === 201 || grandparent.kind === 202) { - if (result = getSymbol(getSymbolOfNode(grandparent).members, name, meaning & 793056)) { + if (grandparent.kind === 201 /* ClassDeclaration */ || grandparent.kind === 202 /* InterfaceDeclaration */) { + // A reference to this grandparent's type parameters would be an error + if (result = getSymbol(getSymbolOfNode(grandparent).members, name, meaning & 793056 /* Type */)) { error(errorLocation, ts.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type); return undefined; } } break; - case 134: - case 133: - case 135: - case 136: - case 137: - case 200: - case 163: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 200 /* FunctionDeclaration */: + case 163 /* ArrowFunction */: if (name === "arguments") { result = argumentsSymbol; break loop; } break; - case 162: + case 162 /* FunctionExpression */: if (name === "arguments") { result = argumentsSymbol; break loop; @@ -9316,17 +10945,31 @@ var ts; break loop; } break; - case 174: + case 174 /* ClassExpression */: var className = location.name; if (className && name === className.text) { result = location.symbol; break loop; } break; - case 130: - if (location.parent && location.parent.kind === 129) { + case 130 /* Decorator */: + // Decorators are resolved at the class declaration. Resolving at the parameter + // or member would result in looking up locals in the method. + // + // function y() {} + // class C { + // method(@y x, y) {} // <-- decorator y should be resolved at the class declaration, not the parameter. + // } + // + if (location.parent && location.parent.kind === 129 /* Parameter */) { location = location.parent; } + // + // function y() {} + // class C { + // @y method(x, y) {} // <-- decorator y should be resolved at the class declaration, not the method. + // } + // if (location.parent && ts.isClassElement(location.parent)) { location = location.parent; } @@ -9344,32 +10987,47 @@ var ts; } return undefined; } + // Perform extra checks only if error reporting was requested if (nameNotFoundMessage) { if (propertyWithInvalidInitializer) { + // We have a match, but the reference occurred within a property initializer and the identifier also binds + // to a local variable in the constructor where the code will be emitted. var propertyName = propertyWithInvalidInitializer.name; error(errorLocation, ts.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, ts.declarationNameToString(propertyName), typeof nameArg === "string" ? nameArg : ts.declarationNameToString(nameArg)); return undefined; } - if (result.flags & 2) { + if (result.flags & 2 /* BlockScopedVariable */) { checkResolvedBlockScopedVariable(result, errorLocation); } } return result; } function checkResolvedBlockScopedVariable(result, errorLocation) { - ts.Debug.assert((result.flags & 2) !== 0); + ts.Debug.assert((result.flags & 2 /* BlockScopedVariable */) !== 0); + // Block-scoped variables cannot be used before their definition var declaration = ts.forEach(result.declarations, function (d) { return ts.isBlockOrCatchScoped(d) ? d : undefined; }); ts.Debug.assert(declaration !== undefined, "Block-scoped variable declaration is undefined"); + // first check if usage is lexically located after the declaration var isUsedBeforeDeclaration = !isDefinedBefore(declaration, errorLocation); if (!isUsedBeforeDeclaration) { - var variableDeclaration = ts.getAncestor(declaration, 198); + // lexical check succeeded however code still can be illegal. + // - block scoped variables cannot be used in its initializers + // let x = x; // illegal but usage is lexically after definition + // - in ForIn/ForOf statements variable cannot be contained in expression part + // for (let x in x) + // for (let x of x) + // climb up to the variable declaration skipping binding patterns + var variableDeclaration = ts.getAncestor(declaration, 198 /* VariableDeclaration */); var container = ts.getEnclosingBlockScopeContainer(variableDeclaration); - if (variableDeclaration.parent.parent.kind === 180 || - variableDeclaration.parent.parent.kind === 186) { + if (variableDeclaration.parent.parent.kind === 180 /* VariableStatement */ || + variableDeclaration.parent.parent.kind === 186 /* ForStatement */) { + // variable statement/for statement case, + // use site should not be inside variable declaration (initializer of declaration or binding element) isUsedBeforeDeclaration = isSameScopeDescendentOf(errorLocation, variableDeclaration, container); } - else if (variableDeclaration.parent.parent.kind === 188 || - variableDeclaration.parent.parent.kind === 187) { + else if (variableDeclaration.parent.parent.kind === 188 /* ForOfStatement */ || + variableDeclaration.parent.parent.kind === 187 /* ForInStatement */) { + // ForIn/ForOf case - use site should not be used in expression part var expression = variableDeclaration.parent.parent.expression; isUsedBeforeDeclaration = isSameScopeDescendentOf(errorLocation, expression, container); } @@ -9378,6 +11036,10 @@ var ts; error(errorLocation, ts.Diagnostics.Block_scoped_variable_0_used_before_its_declaration, ts.declarationNameToString(declaration.name)); } } + /* Starting from 'initial' node walk up the parent chain until 'stopAt' node is reached. + * If at any point current node is equal to 'parent' node - return true. + * Return false if 'stopAt' node is reached or isFunctionLike(current) === true. + */ function isSameScopeDescendentOf(initial, parent, stopAt) { if (!parent) { return false; @@ -9391,10 +11053,10 @@ var ts; } function getAnyImportSyntax(node) { if (ts.isAliasSymbolDeclaration(node)) { - if (node.kind === 208) { + if (node.kind === 208 /* ImportEqualsDeclaration */) { return node; } - while (node && node.kind !== 209) { + while (node && node.kind !== 209 /* ImportDeclaration */) { node = node.parent; } return node; @@ -9404,7 +11066,7 @@ var ts; return ts.forEach(symbol.declarations, function (d) { return ts.isAliasSymbolDeclaration(d) ? d : undefined; }); } function getTargetOfImportEqualsDeclaration(node) { - if (node.moduleReference.kind === 219) { + if (node.moduleReference.kind === 219 /* ExternalModuleReference */) { return resolveExternalModuleSymbol(resolveExternalModuleName(node, ts.getExternalModuleImportEqualsDeclarationExpression(node))); } return getSymbolOfPartOfRightHandSideOfImportEquals(node.moduleReference, node); @@ -9424,15 +11086,33 @@ var ts; return resolveESModuleSymbol(resolveExternalModuleName(node, moduleSpecifier), moduleSpecifier); } function getMemberOfModuleVariable(moduleSymbol, name) { - if (moduleSymbol.flags & 3) { + if (moduleSymbol.flags & 3 /* Variable */) { var typeAnnotation = moduleSymbol.valueDeclaration.type; if (typeAnnotation) { return getPropertyOfType(getTypeFromTypeNodeOrHeritageClauseElement(typeAnnotation), name); } } } + // This function creates a synthetic symbol that combines the value side of one symbol with the + // type/namespace side of another symbol. Consider this example: + // + // declare module graphics { + // interface Point { + // x: number; + // y: number; + // } + // } + // declare var graphics: { + // Point: new (x: number, y: number) => graphics.Point; + // } + // declare module "graphics" { + // export = graphics; + // } + // + // An 'import { Point } from "graphics"' needs to create a symbol that combines the value side 'Point' + // property with the type/namespace side interface 'Point'. function combineValueAndTypeSymbols(valueSymbol, typeSymbol) { - if (valueSymbol.flags & (793056 | 1536)) { + if (valueSymbol.flags & (793056 /* Type */ | 1536 /* Namespace */)) { return valueSymbol; } var result = createSymbol(valueSymbol.flags | typeSymbol.flags, valueSymbol.name); @@ -9447,7 +11127,7 @@ var ts; return result; } function getExportOfModule(symbol, name) { - if (symbol.flags & 1536) { + if (symbol.flags & 1536 /* Module */) { var exports = getExportsOfSymbol(symbol); if (ts.hasProperty(exports, name)) { return resolveSymbol(exports[name]); @@ -9455,7 +11135,7 @@ var ts; } } function getPropertyOfVariable(symbol, name) { - if (symbol.flags & 3) { + if (symbol.flags & 3 /* Variable */) { var typeAnnotation = symbol.valueDeclaration.type; if (typeAnnotation) { return resolveSymbol(getPropertyOfType(getTypeFromTypeNodeOrHeritageClauseElement(typeAnnotation), name)); @@ -9486,32 +11166,32 @@ var ts; function getTargetOfExportSpecifier(node) { return node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node) : - resolveEntityName(node.propertyName || node.name, 107455 | 793056 | 1536); + resolveEntityName(node.propertyName || node.name, 107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */); } function getTargetOfExportAssignment(node) { - return node.expression && resolveEntityName(node.expression, 107455 | 793056 | 1536); + return resolveEntityName(node.expression, 107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */); } function getTargetOfAliasDeclaration(node) { switch (node.kind) { - case 208: + case 208 /* ImportEqualsDeclaration */: return getTargetOfImportEqualsDeclaration(node); - case 210: + case 210 /* ImportClause */: return getTargetOfImportClause(node); - case 211: + case 211 /* NamespaceImport */: return getTargetOfNamespaceImport(node); - case 213: + case 213 /* ImportSpecifier */: return getTargetOfImportSpecifier(node); - case 217: + case 217 /* ExportSpecifier */: return getTargetOfExportSpecifier(node); - case 214: + case 214 /* ExportAssignment */: return getTargetOfExportAssignment(node); } } function resolveSymbol(symbol) { - return symbol && symbol.flags & 8388608 && !(symbol.flags & (107455 | 793056 | 1536)) ? resolveAlias(symbol) : symbol; + return symbol && symbol.flags & 8388608 /* Alias */ && !(symbol.flags & (107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */)) ? resolveAlias(symbol) : symbol; } function resolveAlias(symbol) { - ts.Debug.assert((symbol.flags & 8388608) !== 0, "Should only get Alias here."); + ts.Debug.assert((symbol.flags & 8388608 /* Alias */) !== 0, "Should only get Alias here."); var links = getSymbolLinks(symbol); if (!links.target) { links.target = resolvingSymbol; @@ -9534,62 +11214,79 @@ var ts; var target = resolveAlias(symbol); if (target) { var markAlias = (target === unknownSymbol && compilerOptions.separateCompilation) || - (target !== unknownSymbol && (target.flags & 107455) && !isConstEnumOrConstEnumOnlyModule(target)); + (target !== unknownSymbol && (target.flags & 107455 /* Value */) && !isConstEnumOrConstEnumOnlyModule(target)); if (markAlias) { markAliasSymbolAsReferenced(symbol); } } } + // When an alias symbol is referenced, we need to mark the entity it references as referenced and in turn repeat that until + // we reach a non-alias or an exported entity (which is always considered referenced). We do this by checking the target of + // the alias as an expression (which recursively takes us back here if the target references another alias). function markAliasSymbolAsReferenced(symbol) { var links = getSymbolLinks(symbol); if (!links.referenced) { links.referenced = true; var node = getDeclarationOfAliasSymbol(symbol); - if (node.kind === 214 && node.expression) { + if (node.kind === 214 /* ExportAssignment */) { + // export default checkExpressionCached(node.expression); } - else if (node.kind === 217) { + else if (node.kind === 217 /* ExportSpecifier */) { + // export { } or export { as foo } checkExpressionCached(node.propertyName || node.name); } else if (ts.isInternalModuleImportEqualsDeclaration(node)) { + // import foo = checkExpressionCached(node.moduleReference); } } } + // This function is only for imports with entity names function getSymbolOfPartOfRightHandSideOfImportEquals(entityName, importDeclaration) { if (!importDeclaration) { - importDeclaration = ts.getAncestor(entityName, 208); + importDeclaration = ts.getAncestor(entityName, 208 /* ImportEqualsDeclaration */); ts.Debug.assert(importDeclaration !== undefined); } - if (entityName.kind === 65 && ts.isRightSideOfQualifiedNameOrPropertyAccess(entityName)) { + // There are three things we might try to look for. In the following examples, + // the search term is enclosed in |...|: + // + // import a = |b|; // Namespace + // import a = |b.c|; // Value, type, namespace + // import a = |b.c|.d; // Namespace + if (entityName.kind === 65 /* Identifier */ && ts.isRightSideOfQualifiedNameOrPropertyAccess(entityName)) { entityName = entityName.parent; } - if (entityName.kind === 65 || entityName.parent.kind === 126) { - return resolveEntityName(entityName, 1536); + // Check for case 1 and 3 in the above example + if (entityName.kind === 65 /* Identifier */ || entityName.parent.kind === 126 /* QualifiedName */) { + return resolveEntityName(entityName, 1536 /* Namespace */); } else { - ts.Debug.assert(entityName.parent.kind === 208); - return resolveEntityName(entityName, 107455 | 793056 | 1536); + // Case 2 in above example + // entityName.kind could be a QualifiedName or a Missing identifier + ts.Debug.assert(entityName.parent.kind === 208 /* ImportEqualsDeclaration */); + return resolveEntityName(entityName, 107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */); } } function getFullyQualifiedName(symbol) { return symbol.parent ? getFullyQualifiedName(symbol.parent) + "." + symbolToString(symbol) : symbolToString(symbol); } + // Resolves a qualified name and any involved aliases function resolveEntityName(name, meaning) { if (ts.nodeIsMissing(name)) { return undefined; } var symbol; - if (name.kind === 65) { + if (name.kind === 65 /* Identifier */) { symbol = resolveName(name, name.text, meaning, ts.Diagnostics.Cannot_find_name_0, name); if (!symbol) { return undefined; } } - else if (name.kind === 126 || name.kind === 155) { - var left = name.kind === 126 ? name.left : name.expression; - var right = name.kind === 126 ? name.right : name.name; - var namespace = resolveEntityName(left, 1536); + else if (name.kind === 126 /* QualifiedName */ || name.kind === 155 /* PropertyAccessExpression */) { + var left = name.kind === 126 /* QualifiedName */ ? name.left : name.expression; + var right = name.kind === 126 /* QualifiedName */ ? name.right : name.name; + var namespace = resolveEntityName(left, 1536 /* Namespace */); if (!namespace || namespace === unknownSymbol || ts.nodeIsMissing(right)) { return undefined; } @@ -9602,24 +11299,28 @@ var ts; else { ts.Debug.fail("Unknown entity name kind."); } - ts.Debug.assert((symbol.flags & 16777216) === 0, "Should never get an instantiated symbol here."); + ts.Debug.assert((symbol.flags & 16777216 /* Instantiated */) === 0, "Should never get an instantiated symbol here."); return symbol.flags & meaning ? symbol : resolveAlias(symbol); } function isExternalModuleNameRelative(moduleName) { + // TypeScript 1.0 spec (April 2014): 11.2.1 + // An external module name is "relative" if the first term is "." or "..". return moduleName.substr(0, 2) === "./" || moduleName.substr(0, 3) === "../" || moduleName.substr(0, 2) === ".\\" || moduleName.substr(0, 3) === "..\\"; } function resolveExternalModuleName(location, moduleReferenceExpression) { - if (moduleReferenceExpression.kind !== 8) { + if (moduleReferenceExpression.kind !== 8 /* StringLiteral */) { return; } var moduleReferenceLiteral = moduleReferenceExpression; var searchPath = ts.getDirectoryPath(getSourceFile(location).fileName); + // Module names are escaped in our symbol table. However, string literal values aren't. + // Escape the name in the "require(...)" clause to ensure we find the right symbol. var moduleName = ts.escapeIdentifier(moduleReferenceLiteral.text); if (!moduleName) return; var isRelative = isExternalModuleNameRelative(moduleName); if (!isRelative) { - var symbol = getSymbol(globals, '"' + moduleName + '"', 512); + var symbol = getSymbol(globals, '"' + moduleName + '"', 512 /* ValueModule */); if (symbol) { return symbol; } @@ -9646,12 +11347,17 @@ var ts; } error(moduleReferenceLiteral, ts.Diagnostics.Cannot_find_external_module_0, moduleName); } + // An external module with an 'export =' declaration resolves to the target of the 'export =' declaration, + // and an external module with no 'export =' declaration resolves to the module itself. function resolveExternalModuleSymbol(moduleSymbol) { return moduleSymbol && resolveSymbol(moduleSymbol.exports["export="]) || moduleSymbol; } + // An external module with an 'export =' declaration may be referenced as an ES6 module provided the 'export =' + // references a symbol that is at least declared as a module or a variable. The target of the 'export =' may + // combine other declarations with the module or variable (e.g. a class/module, function/module, interface/variable). function resolveESModuleSymbol(moduleSymbol, moduleReferenceExpression) { var symbol = resolveExternalModuleSymbol(moduleSymbol); - if (symbol && !(symbol.flags & (1536 | 3))) { + if (symbol && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */))) { error(moduleReferenceExpression, ts.Diagnostics.External_module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct, symbolToString(moduleSymbol)); symbol = undefined; } @@ -9660,8 +11366,11 @@ var ts; function getExportAssignmentSymbol(moduleSymbol) { return moduleSymbol.exports["export="]; } + function getExportsOfModuleAsArray(moduleSymbol) { + return symbolsToArray(getExportsOfModule(moduleSymbol)); + } function getExportsOfSymbol(symbol) { - return symbol.flags & 1536 ? getExportsOfModule(symbol) : symbol.exports || emptySymbols; + return symbol.flags & 1536 /* Module */ ? getExportsOfModule(symbol) : symbol.exports || emptySymbols; } function getExportsOfModule(moduleSymbol) { var links = getSymbolLinks(moduleSymbol); @@ -9679,8 +11388,10 @@ var ts; var visitedSymbols = []; visit(moduleSymbol); return result || moduleSymbol.exports; + // The ES6 spec permits export * declarations in a module to circularly reference the module itself. For example, + // module 'a' can 'export * from "b"' and 'b' can 'export * from "a"' without error. function visit(symbol) { - if (symbol.flags & 1952 && !ts.contains(visitedSymbols, symbol)) { + if (symbol && symbol.flags & 1952 /* HasExports */ && !ts.contains(visitedSymbols, symbol)) { visitedSymbols.push(symbol); if (symbol !== moduleSymbol) { if (!result) { @@ -9688,6 +11399,7 @@ var ts; } extendExportSymbols(result, symbol.exports); } + // All export * declarations are collected in an __export symbol by the binder var exportStars = symbol.exports["__export"]; if (exportStars) { for (var _i = 0, _a = exportStars.declarations; _i < _a.length; _i++) { @@ -9709,19 +11421,23 @@ var ts; return getMergedSymbol(symbol.parent); } function getExportSymbolOfValueSymbolIfExported(symbol) { - return symbol && (symbol.flags & 1048576) !== 0 + return symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 ? getMergedSymbol(symbol.exportSymbol) : symbol; } function symbolIsValue(symbol) { - if (symbol.flags & 16777216) { + // If it is an instantiated symbol, then it is a value if the symbol it is an + // instantiation of is a value. + if (symbol.flags & 16777216 /* Instantiated */) { return symbolIsValue(getSymbolLinks(symbol).target); } - if (symbol.flags & 107455) { + // If the symbol has the value flag, it is trivially a value. + if (symbol.flags & 107455 /* Value */) { return true; } - if (symbol.flags & 8388608) { - return (resolveAlias(symbol).flags & 107455) !== 0; + // If it is an alias, then it is a value if the symbol it resolves to is a value. + if (symbol.flags & 8388608 /* Alias */) { + return (resolveAlias(symbol).flags & 107455 /* Value */) !== 0; } return false; } @@ -9729,7 +11445,7 @@ var ts; var members = node.members; for (var _i = 0; _i < members.length; _i++) { var member = members[_i]; - if (member.kind === 135 && ts.nodeIsPresent(member.body)) { + if (member.kind === 135 /* Constructor */ && ts.nodeIsPresent(member.body)) { return member; } } @@ -9749,11 +11465,15 @@ var ts; type.symbol = symbol; return type; } + // A reserved member name starts with two underscores, but the third character cannot be an underscore + // or the @ symbol. A third underscore indicates an escaped form of an identifer that started + // with at least two underscores. The @ character indicates that the name is denoted by a well known ES + // Symbol instance. function isReservedMemberName(name) { - return name.charCodeAt(0) === 95 && - name.charCodeAt(1) === 95 && - name.charCodeAt(2) !== 95 && - name.charCodeAt(2) !== 64; + return name.charCodeAt(0) === 95 /* _ */ && + name.charCodeAt(1) === 95 /* _ */ && + name.charCodeAt(2) !== 95 /* _ */ && + name.charCodeAt(2) !== 64 /* at */; } function getNamedMembers(members) { var result; @@ -9783,28 +11503,29 @@ var ts; return type; } function createAnonymousType(symbol, members, callSignatures, constructSignatures, stringIndexType, numberIndexType) { - return setObjectTypeMembers(createObjectType(32768, symbol), members, callSignatures, constructSignatures, stringIndexType, numberIndexType); + return setObjectTypeMembers(createObjectType(32768 /* Anonymous */, symbol), members, callSignatures, constructSignatures, stringIndexType, numberIndexType); } function forEachSymbolTableInScope(enclosingDeclaration, callback) { var result; for (var location_1 = enclosingDeclaration; location_1; location_1 = location_1.parent) { + // Locals of a source file are not in scope (because they get merged into the global symbol table) if (location_1.locals && !isGlobalSourceFile(location_1)) { if (result = callback(location_1.locals)) { return result; } } switch (location_1.kind) { - case 227: + case 227 /* SourceFile */: if (!ts.isExternalModule(location_1)) { break; } - case 205: + case 205 /* ModuleDeclaration */: if (result = callback(getSymbolOfNode(location_1).exports)) { return result; } break; - case 201: - case 202: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: if (result = callback(getSymbolOfNode(location_1).members)) { return result; } @@ -9814,34 +11535,45 @@ var ts; return callback(globals); } function getQualifiedLeftMeaning(rightMeaning) { - return rightMeaning === 107455 ? 107455 : 1536; + // If we are looking in value space, the parent meaning is value, other wise it is namespace + return rightMeaning === 107455 /* Value */ ? 107455 /* Value */ : 1536 /* Namespace */; } function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing) { function getAccessibleSymbolChainFromSymbolTable(symbols) { function canQualifySymbol(symbolFromSymbolTable, meaning) { + // If the symbol is equivalent and doesn't need further qualification, this symbol is accessible if (!needsQualification(symbolFromSymbolTable, enclosingDeclaration, meaning)) { return true; } + // If symbol needs qualification, make sure that parent is accessible, if it is then this symbol is accessible too var accessibleParent = getAccessibleSymbolChain(symbolFromSymbolTable.parent, enclosingDeclaration, getQualifiedLeftMeaning(meaning), useOnlyExternalAliasing); return !!accessibleParent; } function isAccessible(symbolFromSymbolTable, resolvedAliasSymbol) { if (symbol === (resolvedAliasSymbol || symbolFromSymbolTable)) { + // if the symbolFromSymbolTable is not external module (it could be if it was determined as ambient external module and would be in globals table) + // and if symbolfrom symbolTable or alias resolution matches the symbol, + // check the symbol can be qualified, it is only then this symbol is accessible return !ts.forEach(symbolFromSymbolTable.declarations, hasExternalModuleSymbol) && canQualifySymbol(symbolFromSymbolTable, meaning); } } + // If symbol is directly available by its name in the symbol table if (isAccessible(ts.lookUp(symbols, symbol.name))) { return [symbol]; } + // Check if symbol is any of the alias return ts.forEachValue(symbols, function (symbolFromSymbolTable) { - if (symbolFromSymbolTable.flags & 8388608 && symbolFromSymbolTable.name !== "export=") { + if (symbolFromSymbolTable.flags & 8388608 /* Alias */ && symbolFromSymbolTable.name !== "export=") { if (!useOnlyExternalAliasing || + // Is this external alias, then use it to name ts.forEach(symbolFromSymbolTable.declarations, ts.isExternalModuleImportEqualsDeclaration)) { var resolvedImportedSymbol = resolveAlias(symbolFromSymbolTable); if (isAccessible(symbolFromSymbolTable, resolveAlias(symbolFromSymbolTable))) { return [symbolFromSymbolTable]; } + // Look in the exported members, if we can find accessibleSymbolChain, symbol is accessible using this chain + // but only if the symbolFromSymbolTable can be qualified var accessibleSymbolsFromExports = resolvedImportedSymbol.exports ? getAccessibleSymbolChainFromSymbolTable(resolvedImportedSymbol.exports) : undefined; if (accessibleSymbolsFromExports && canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) { return [symbolFromSymbolTable].concat(accessibleSymbolsFromExports); @@ -9857,59 +11589,82 @@ var ts; function needsQualification(symbol, enclosingDeclaration, meaning) { var qualify = false; forEachSymbolTableInScope(enclosingDeclaration, function (symbolTable) { + // If symbol of this name is not available in the symbol table we are ok if (!ts.hasProperty(symbolTable, symbol.name)) { + // Continue to the next symbol table return false; } + // If the symbol with this name is present it should refer to the symbol var symbolFromSymbolTable = symbolTable[symbol.name]; if (symbolFromSymbolTable === symbol) { + // No need to qualify return true; } - symbolFromSymbolTable = (symbolFromSymbolTable.flags & 8388608) ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable; + // Qualify if the symbol from symbol table has same meaning as expected + symbolFromSymbolTable = (symbolFromSymbolTable.flags & 8388608 /* Alias */) ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable; if (symbolFromSymbolTable.flags & meaning) { qualify = true; return true; } + // Continue to the next symbol table return false; }); return qualify; } function isSymbolAccessible(symbol, enclosingDeclaration, meaning) { - if (symbol && enclosingDeclaration && !(symbol.flags & 262144)) { + if (symbol && enclosingDeclaration && !(symbol.flags & 262144 /* TypeParameter */)) { var initialSymbol = symbol; var meaningToLook = meaning; while (symbol) { + // Symbol is accessible if it by itself is accessible var accessibleSymbolChain = getAccessibleSymbolChain(symbol, enclosingDeclaration, meaningToLook, false); if (accessibleSymbolChain) { var hasAccessibleDeclarations = hasVisibleDeclarations(accessibleSymbolChain[0]); if (!hasAccessibleDeclarations) { return { - accessibility: 1, + accessibility: 1 /* NotAccessible */, errorSymbolName: symbolToString(initialSymbol, enclosingDeclaration, meaning), - errorModuleName: symbol !== initialSymbol ? symbolToString(symbol, enclosingDeclaration, 1536) : undefined + errorModuleName: symbol !== initialSymbol ? symbolToString(symbol, enclosingDeclaration, 1536 /* Namespace */) : undefined }; } return hasAccessibleDeclarations; } + // If we haven't got the accessible symbol, it doesn't mean the symbol is actually inaccessible. + // It could be a qualified symbol and hence verify the path + // e.g.: + // module m { + // export class c { + // } + // } + // let x: typeof m.c + // In the above example when we start with checking if typeof m.c symbol is accessible, + // we are going to see if c can be accessed in scope directly. + // But it can't, hence the accessible is going to be undefined, but that doesn't mean m.c is inaccessible + // It is accessible if the parent m is accessible because then m.c can be accessed through qualification meaningToLook = getQualifiedLeftMeaning(meaning); symbol = getParentOfSymbol(symbol); } + // This could be a symbol that is not exported in the external module + // or it could be a symbol from different external module that is not aliased and hence cannot be named var symbolExternalModule = ts.forEach(initialSymbol.declarations, getExternalModuleContainer); if (symbolExternalModule) { var enclosingExternalModule = getExternalModuleContainer(enclosingDeclaration); if (symbolExternalModule !== enclosingExternalModule) { + // name from different external module that is not visible return { - accessibility: 2, + accessibility: 2 /* CannotBeNamed */, errorSymbolName: symbolToString(initialSymbol, enclosingDeclaration, meaning), errorModuleName: symbolToString(symbolExternalModule) }; } } + // Just a local name that is not accessible return { - accessibility: 1, + accessibility: 1 /* NotAccessible */, errorSymbolName: symbolToString(initialSymbol, enclosingDeclaration, meaning) }; } - return { accessibility: 0 }; + return { accessibility: 0 /* Accessible */ }; function getExternalModuleContainer(declaration) { for (; declaration; declaration = declaration.parent) { if (hasExternalModuleSymbol(declaration)) { @@ -9919,20 +11674,22 @@ var ts; } } function hasExternalModuleSymbol(declaration) { - return (declaration.kind === 205 && declaration.name.kind === 8) || - (declaration.kind === 227 && ts.isExternalModule(declaration)); + return (declaration.kind === 205 /* ModuleDeclaration */ && declaration.name.kind === 8 /* StringLiteral */) || + (declaration.kind === 227 /* SourceFile */ && ts.isExternalModule(declaration)); } function hasVisibleDeclarations(symbol) { var aliasesToMakeVisible; if (ts.forEach(symbol.declarations, function (declaration) { return !getIsDeclarationVisible(declaration); })) { return undefined; } - return { accessibility: 0, aliasesToMakeVisible: aliasesToMakeVisible }; + return { accessibility: 0 /* Accessible */, aliasesToMakeVisible: aliasesToMakeVisible }; function getIsDeclarationVisible(declaration) { if (!isDeclarationVisible(declaration)) { + // Mark the unexported alias as visible if its parent is visible + // because these kind of aliases can be used to name types in declaration file var anyImportSyntax = getAnyImportSyntax(declaration); if (anyImportSyntax && - !(anyImportSyntax.flags & 1) && + !(anyImportSyntax.flags & 1 /* Export */) && isDeclarationVisible(anyImportSyntax.parent)) { getNodeLinks(declaration).isVisible = true; if (aliasesToMakeVisible) { @@ -9945,27 +11702,34 @@ var ts; } return true; } + // Declaration is not visible return false; } return true; } } function isEntityNameVisible(entityName, enclosingDeclaration) { + // get symbol of the first identifier of the entityName var meaning; - if (entityName.parent.kind === 144) { - meaning = 107455 | 1048576; + if (entityName.parent.kind === 144 /* TypeQuery */) { + // Typeof value + meaning = 107455 /* Value */ | 1048576 /* ExportValue */; } - else if (entityName.kind === 126 || entityName.kind === 155 || - entityName.parent.kind === 208) { - meaning = 1536; + else if (entityName.kind === 126 /* QualifiedName */ || entityName.kind === 155 /* PropertyAccessExpression */ || + entityName.parent.kind === 208 /* ImportEqualsDeclaration */) { + // Left identifier from type reference or TypeAlias + // Entity name of the import declaration + meaning = 1536 /* Namespace */; } else { - meaning = 793056; + // Type Reference or TypeAlias entity = Identifier + meaning = 793056 /* Type */; } var firstIdentifier = getFirstIdentifier(entityName); var symbol = resolveName(enclosingDeclaration, firstIdentifier.text, meaning, undefined, undefined); + // Verify if the symbol is accessible return (symbol && hasVisibleDeclarations(symbol)) || { - accessibility: 1, + accessibility: 1 /* NotAccessible */, errorSymbolName: ts.getTextOfNode(firstIdentifier), errorNode: firstIdentifier }; @@ -9991,26 +11755,31 @@ var ts; getSymbolDisplayBuilder().buildTypeDisplay(type, writer, enclosingDeclaration, flags); var result = writer.string(); ts.releaseStringWriter(writer); - var maxLength = compilerOptions.noErrorTruncation || flags & 4 ? undefined : 100; + var maxLength = compilerOptions.noErrorTruncation || flags & 4 /* NoTruncation */ ? undefined : 100; if (maxLength && result.length >= maxLength) { result = result.substr(0, maxLength - "...".length) + "..."; } return result; } function getTypeAliasForTypeLiteral(type) { - if (type.symbol && type.symbol.flags & 2048) { + if (type.symbol && type.symbol.flags & 2048 /* TypeLiteral */) { var node = type.symbol.declarations[0].parent; - while (node.kind === 149) { + while (node.kind === 149 /* ParenthesizedType */) { node = node.parent; } - if (node.kind === 203) { + if (node.kind === 203 /* TypeAliasDeclaration */) { return getSymbolOfNode(node); } } return undefined; } + // This is for caching the result of getSymbolDisplayBuilder. Do not access directly. var _displayBuilder; function getSymbolDisplayBuilder() { + /** + * Writes only the name of the symbol out to the writer. Uses the original source text + * for the name of the symbol if it is available to match how the user inputted the name. + */ function appendSymbolNameOnly(symbol, writer) { if (symbol.declarations && symbol.declarations.length > 0) { var declaration = symbol.declarations[0]; @@ -10021,29 +11790,42 @@ var ts; } writer.writeSymbol(symbol.name, symbol); } + /** + * Enclosing declaration is optional when we don't want to get qualified name in the enclosing declaration scope + * Meaning needs to be specified if the enclosing declaration is given + */ function buildSymbolDisplay(symbol, writer, enclosingDeclaration, meaning, flags, typeFlags) { var parentSymbol; function appendParentTypeArgumentsAndSymbolName(symbol) { if (parentSymbol) { - if (flags & 1) { - if (symbol.flags & 16777216) { + // Write type arguments of instantiated class/interface here + if (flags & 1 /* WriteTypeParametersOrArguments */) { + if (symbol.flags & 16777216 /* Instantiated */) { buildDisplayForTypeArgumentsAndDelimiters(getTypeParametersOfClassOrInterface(parentSymbol), symbol.mapper, writer, enclosingDeclaration); } else { buildTypeParameterDisplayFromSymbol(parentSymbol, writer, enclosingDeclaration); } } - writePunctuation(writer, 20); + writePunctuation(writer, 20 /* DotToken */); } parentSymbol = symbol; appendSymbolNameOnly(symbol, writer); } + // Let the writer know we just wrote out a symbol. The declaration emitter writer uses + // this to determine if an import it has previously seen (and not written out) needs + // to be written to the file once the walk of the tree is complete. + // + // NOTE(cyrusn): This approach feels somewhat unfortunate. A simple pass over the tree + // up front (for example, during checking) could determine if we need to emit the imports + // and we could then access that data during declaration emit. writer.trackSymbol(symbol, enclosingDeclaration, meaning); function walkSymbol(symbol, meaning) { if (symbol) { - var accessibleSymbolChain = getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, !!(flags & 2)); + var accessibleSymbolChain = getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, !!(flags & 2 /* UseOnlyExternalAliasing */)); if (!accessibleSymbolChain || needsQualification(accessibleSymbolChain[0], enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning : getQualifiedLeftMeaning(meaning))) { + // Go up and add our parent. walkSymbol(getParentOfSymbol(accessibleSymbolChain ? accessibleSymbolChain[0] : symbol), getQualifiedLeftMeaning(meaning)); } if (accessibleSymbolChain) { @@ -10053,18 +11835,23 @@ var ts; } } else { + // If we didn't find accessible symbol chain for this symbol, break if this is external module if (!parentSymbol && ts.forEach(symbol.declarations, hasExternalModuleSymbol)) { return; } - if (symbol.flags & 2048 || symbol.flags & 4096) { + // if this is anonymous type break + if (symbol.flags & 2048 /* TypeLiteral */ || symbol.flags & 4096 /* ObjectLiteral */) { return; } appendParentTypeArgumentsAndSymbolName(symbol); } } } - var isTypeParameter = symbol.flags & 262144; - var typeFormatFlag = 128 & typeFlags; + // Get qualified name if the symbol is not a type parameter + // and there is an enclosing declaration or we specifically + // asked for it + var isTypeParameter = symbol.flags & 262144 /* TypeParameter */; + var typeFormatFlag = 128 /* UseFullyQualifiedType */ & typeFlags; if (!isTypeParameter && (enclosingDeclaration || typeFormatFlag)) { walkSymbol(symbol, meaning); return; @@ -10072,37 +11859,42 @@ var ts; return appendParentTypeArgumentsAndSymbolName(symbol); } function buildTypeDisplay(type, writer, enclosingDeclaration, globalFlags, typeStack) { - var globalFlagsToPass = globalFlags & 16; + var globalFlagsToPass = globalFlags & 16 /* WriteOwnNameForAnyLike */; return writeType(type, globalFlags); function writeType(type, flags) { - if (type.flags & 1048703) { - writer.writeKeyword(!(globalFlags & 16) && - (type.flags & 1) ? "any" : type.intrinsicName); + // Write undefined/null type as any + if (type.flags & 1048703 /* Intrinsic */) { + // Special handling for unknown / resolving types, they should show up as any and not unknown or __resolving + writer.writeKeyword(!(globalFlags & 16 /* WriteOwnNameForAnyLike */) && + (type.flags & 1 /* Any */) ? "any" : type.intrinsicName); } - else if (type.flags & 4096) { + else if (type.flags & 4096 /* Reference */) { writeTypeReference(type, flags); } - else if (type.flags & (1024 | 2048 | 128 | 512)) { - buildSymbolDisplay(type.symbol, writer, enclosingDeclaration, 793056, 0, flags); + else if (type.flags & (1024 /* Class */ | 2048 /* Interface */ | 128 /* Enum */ | 512 /* TypeParameter */)) { + // The specified symbol flags need to be reinterpreted as type flags + buildSymbolDisplay(type.symbol, writer, enclosingDeclaration, 793056 /* Type */, 0 /* None */, flags); } - else if (type.flags & 8192) { + else if (type.flags & 8192 /* Tuple */) { writeTupleType(type); } - else if (type.flags & 16384) { + else if (type.flags & 16384 /* Union */) { writeUnionType(type, flags); } - else if (type.flags & 32768) { + else if (type.flags & 32768 /* Anonymous */) { writeAnonymousType(type, flags); } - else if (type.flags & 256) { + else if (type.flags & 256 /* StringLiteral */) { writer.writeStringLiteral(type.text); } else { - writePunctuation(writer, 14); + // Should never get here + // { ... } + writePunctuation(writer, 14 /* OpenBraceToken */); writeSpace(writer); - writePunctuation(writer, 21); + writePunctuation(writer, 21 /* DotDotDotToken */); writeSpace(writer); - writePunctuation(writer, 15); + writePunctuation(writer, 15 /* CloseBraceToken */); } } function writeTypeList(types, union) { @@ -10111,53 +11903,57 @@ var ts; if (union) { writeSpace(writer); } - writePunctuation(writer, union ? 44 : 23); + writePunctuation(writer, union ? 44 /* BarToken */ : 23 /* CommaToken */); writeSpace(writer); } - writeType(types[i], union ? 64 : 0); + writeType(types[i], union ? 64 /* InElementType */ : 0 /* None */); } } function writeTypeReference(type, flags) { - if (type.target === globalArrayType && !(flags & 1)) { - writeType(type.typeArguments[0], 64); - writePunctuation(writer, 18); - writePunctuation(writer, 19); + if (type.target === globalArrayType && !(flags & 1 /* WriteArrayAsGenericType */)) { + writeType(type.typeArguments[0], 64 /* InElementType */); + writePunctuation(writer, 18 /* OpenBracketToken */); + writePunctuation(writer, 19 /* CloseBracketToken */); } else { - buildSymbolDisplay(type.target.symbol, writer, enclosingDeclaration, 793056); - writePunctuation(writer, 24); + buildSymbolDisplay(type.target.symbol, writer, enclosingDeclaration, 793056 /* Type */); + writePunctuation(writer, 24 /* LessThanToken */); writeTypeList(type.typeArguments, false); - writePunctuation(writer, 25); + writePunctuation(writer, 25 /* GreaterThanToken */); } } function writeTupleType(type) { - writePunctuation(writer, 18); + writePunctuation(writer, 18 /* OpenBracketToken */); writeTypeList(type.elementTypes, false); - writePunctuation(writer, 19); + writePunctuation(writer, 19 /* CloseBracketToken */); } function writeUnionType(type, flags) { - if (flags & 64) { - writePunctuation(writer, 16); + if (flags & 64 /* InElementType */) { + writePunctuation(writer, 16 /* OpenParenToken */); } writeTypeList(type.types, true); - if (flags & 64) { - writePunctuation(writer, 17); + if (flags & 64 /* InElementType */) { + writePunctuation(writer, 17 /* CloseParenToken */); } } function writeAnonymousType(type, flags) { - if (type.symbol && type.symbol.flags & (32 | 384 | 512)) { + // Always use 'typeof T' for type of class, enum, and module objects + if (type.symbol && type.symbol.flags & (32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) { writeTypeofSymbol(type, flags); } else if (shouldWriteTypeOfFunctionSymbol()) { writeTypeofSymbol(type, flags); } else if (typeStack && ts.contains(typeStack, type)) { + // If type is an anonymous type literal in a type alias declaration, use type alias name var typeAlias = getTypeAliasForTypeLiteral(type); if (typeAlias) { - buildSymbolDisplay(typeAlias, writer, enclosingDeclaration, 793056, 0, flags); + // The specified symbol flags need to be reinterpreted as type flags + buildSymbolDisplay(typeAlias, writer, enclosingDeclaration, 793056 /* Type */, 0 /* None */, flags); } else { - writeKeyword(writer, 112); + // Recursive usage, use any + writeKeyword(writer, 112 /* AnyKeyword */); } } else { @@ -10170,28 +11966,31 @@ var ts; } function shouldWriteTypeOfFunctionSymbol() { if (type.symbol) { - var isStaticMethodSymbol = !!(type.symbol.flags & 8192 && - ts.forEach(type.symbol.declarations, function (declaration) { return declaration.flags & 128; })); - var isNonLocalFunctionSymbol = !!(type.symbol.flags & 16) && + var isStaticMethodSymbol = !!(type.symbol.flags & 8192 /* Method */ && + ts.forEach(type.symbol.declarations, function (declaration) { return declaration.flags & 128 /* Static */; })); + var isNonLocalFunctionSymbol = !!(type.symbol.flags & 16 /* Function */) && (type.symbol.parent || ts.forEach(type.symbol.declarations, function (declaration) { - return declaration.parent.kind === 227 || declaration.parent.kind === 206; + return declaration.parent.kind === 227 /* SourceFile */ || declaration.parent.kind === 206 /* ModuleBlock */; })); if (isStaticMethodSymbol || isNonLocalFunctionSymbol) { - return !!(flags & 2) || - (typeStack && ts.contains(typeStack, type)); + // typeof is allowed only for static/non local functions + return !!(flags & 2 /* UseTypeOfFunction */) || + (typeStack && ts.contains(typeStack, type)); // it is type of the symbol uses itself recursively } } } } function writeTypeofSymbol(type, typeFormatFlags) { - writeKeyword(writer, 97); + writeKeyword(writer, 97 /* TypeOfKeyword */); writeSpace(writer); - buildSymbolDisplay(type.symbol, writer, enclosingDeclaration, 107455, 0, typeFormatFlags); + buildSymbolDisplay(type.symbol, writer, enclosingDeclaration, 107455 /* Value */, 0 /* None */, typeFormatFlags); } function getIndexerParameterName(type, indexKind, fallbackName) { var declaration = getIndexDeclarationOfSymbol(type.symbol, indexKind); if (!declaration) { + // declaration might not be found if indexer was added from the contextual type. + // in this case use fallback name return fallbackName; } ts.Debug.assert(declaration.parameters.length !== 0); @@ -10201,111 +12000,113 @@ var ts; var resolved = resolveObjectOrUnionTypeMembers(type); if (!resolved.properties.length && !resolved.stringIndexType && !resolved.numberIndexType) { if (!resolved.callSignatures.length && !resolved.constructSignatures.length) { - writePunctuation(writer, 14); - writePunctuation(writer, 15); + writePunctuation(writer, 14 /* OpenBraceToken */); + writePunctuation(writer, 15 /* CloseBraceToken */); return; } if (resolved.callSignatures.length === 1 && !resolved.constructSignatures.length) { - if (flags & 64) { - writePunctuation(writer, 16); + if (flags & 64 /* InElementType */) { + writePunctuation(writer, 16 /* OpenParenToken */); } - buildSignatureDisplay(resolved.callSignatures[0], writer, enclosingDeclaration, globalFlagsToPass | 8, typeStack); - if (flags & 64) { - writePunctuation(writer, 17); + buildSignatureDisplay(resolved.callSignatures[0], writer, enclosingDeclaration, globalFlagsToPass | 8 /* WriteArrowStyleSignature */, typeStack); + if (flags & 64 /* InElementType */) { + writePunctuation(writer, 17 /* CloseParenToken */); } return; } if (resolved.constructSignatures.length === 1 && !resolved.callSignatures.length) { - if (flags & 64) { - writePunctuation(writer, 16); + if (flags & 64 /* InElementType */) { + writePunctuation(writer, 16 /* OpenParenToken */); } - writeKeyword(writer, 88); + writeKeyword(writer, 88 /* NewKeyword */); writeSpace(writer); - buildSignatureDisplay(resolved.constructSignatures[0], writer, enclosingDeclaration, globalFlagsToPass | 8, typeStack); - if (flags & 64) { - writePunctuation(writer, 17); + buildSignatureDisplay(resolved.constructSignatures[0], writer, enclosingDeclaration, globalFlagsToPass | 8 /* WriteArrowStyleSignature */, typeStack); + if (flags & 64 /* InElementType */) { + writePunctuation(writer, 17 /* CloseParenToken */); } return; } } - writePunctuation(writer, 14); + writePunctuation(writer, 14 /* OpenBraceToken */); writer.writeLine(); writer.increaseIndent(); for (var _i = 0, _a = resolved.callSignatures; _i < _a.length; _i++) { var signature = _a[_i]; buildSignatureDisplay(signature, writer, enclosingDeclaration, globalFlagsToPass, typeStack); - writePunctuation(writer, 22); + writePunctuation(writer, 22 /* SemicolonToken */); writer.writeLine(); } for (var _b = 0, _c = resolved.constructSignatures; _b < _c.length; _b++) { var signature = _c[_b]; - writeKeyword(writer, 88); + writeKeyword(writer, 88 /* NewKeyword */); writeSpace(writer); buildSignatureDisplay(signature, writer, enclosingDeclaration, globalFlagsToPass, typeStack); - writePunctuation(writer, 22); + writePunctuation(writer, 22 /* SemicolonToken */); writer.writeLine(); } if (resolved.stringIndexType) { - writePunctuation(writer, 18); - writer.writeParameter(getIndexerParameterName(resolved, 0, "x")); - writePunctuation(writer, 51); + // [x: string]: + writePunctuation(writer, 18 /* OpenBracketToken */); + writer.writeParameter(getIndexerParameterName(resolved, 0 /* String */, "x")); + writePunctuation(writer, 51 /* ColonToken */); writeSpace(writer); - writeKeyword(writer, 121); - writePunctuation(writer, 19); - writePunctuation(writer, 51); + writeKeyword(writer, 121 /* StringKeyword */); + writePunctuation(writer, 19 /* CloseBracketToken */); + writePunctuation(writer, 51 /* ColonToken */); writeSpace(writer); - writeType(resolved.stringIndexType, 0); - writePunctuation(writer, 22); + writeType(resolved.stringIndexType, 0 /* None */); + writePunctuation(writer, 22 /* SemicolonToken */); writer.writeLine(); } if (resolved.numberIndexType) { - writePunctuation(writer, 18); - writer.writeParameter(getIndexerParameterName(resolved, 1, "x")); - writePunctuation(writer, 51); + // [x: number]: + writePunctuation(writer, 18 /* OpenBracketToken */); + writer.writeParameter(getIndexerParameterName(resolved, 1 /* Number */, "x")); + writePunctuation(writer, 51 /* ColonToken */); writeSpace(writer); - writeKeyword(writer, 119); - writePunctuation(writer, 19); - writePunctuation(writer, 51); + writeKeyword(writer, 119 /* NumberKeyword */); + writePunctuation(writer, 19 /* CloseBracketToken */); + writePunctuation(writer, 51 /* ColonToken */); writeSpace(writer); - writeType(resolved.numberIndexType, 0); - writePunctuation(writer, 22); + writeType(resolved.numberIndexType, 0 /* None */); + writePunctuation(writer, 22 /* SemicolonToken */); writer.writeLine(); } for (var _d = 0, _e = resolved.properties; _d < _e.length; _d++) { var p = _e[_d]; var t = getTypeOfSymbol(p); - if (p.flags & (16 | 8192) && !getPropertiesOfObjectType(t).length) { - var signatures = getSignaturesOfType(t, 0); + if (p.flags & (16 /* Function */ | 8192 /* Method */) && !getPropertiesOfObjectType(t).length) { + var signatures = getSignaturesOfType(t, 0 /* Call */); for (var _f = 0; _f < signatures.length; _f++) { var signature = signatures[_f]; buildSymbolDisplay(p, writer); - if (p.flags & 536870912) { - writePunctuation(writer, 50); + if (p.flags & 536870912 /* Optional */) { + writePunctuation(writer, 50 /* QuestionToken */); } buildSignatureDisplay(signature, writer, enclosingDeclaration, globalFlagsToPass, typeStack); - writePunctuation(writer, 22); + writePunctuation(writer, 22 /* SemicolonToken */); writer.writeLine(); } } else { buildSymbolDisplay(p, writer); - if (p.flags & 536870912) { - writePunctuation(writer, 50); + if (p.flags & 536870912 /* Optional */) { + writePunctuation(writer, 50 /* QuestionToken */); } - writePunctuation(writer, 51); + writePunctuation(writer, 51 /* ColonToken */); writeSpace(writer); - writeType(t, 0); - writePunctuation(writer, 22); + writeType(t, 0 /* None */); + writePunctuation(writer, 22 /* SemicolonToken */); writer.writeLine(); } } writer.decreaseIndent(); - writePunctuation(writer, 15); + writePunctuation(writer, 15 /* CloseBraceToken */); } } function buildTypeParameterDisplayFromSymbol(symbol, writer, enclosingDeclaraiton, flags) { var targetSymbol = getTargetSymbol(symbol); - if (targetSymbol.flags & 32 || targetSymbol.flags & 64) { + if (targetSymbol.flags & 32 /* Class */ || targetSymbol.flags & 64 /* Interface */) { buildDisplayForTypeParametersAndDelimiters(getTypeParametersOfClassOrInterface(symbol), writer, enclosingDeclaraiton, flags); } } @@ -10314,73 +12115,75 @@ var ts; var constraint = getConstraintOfTypeParameter(tp); if (constraint) { writeSpace(writer); - writeKeyword(writer, 79); + writeKeyword(writer, 79 /* ExtendsKeyword */); writeSpace(writer); buildTypeDisplay(constraint, writer, enclosingDeclaration, flags, typeStack); } } function buildParameterDisplay(p, writer, enclosingDeclaration, flags, typeStack) { if (ts.hasDotDotDotToken(p.valueDeclaration)) { - writePunctuation(writer, 21); + writePunctuation(writer, 21 /* DotDotDotToken */); } appendSymbolNameOnly(p, writer); if (ts.hasQuestionToken(p.valueDeclaration) || p.valueDeclaration.initializer) { - writePunctuation(writer, 50); + writePunctuation(writer, 50 /* QuestionToken */); } - writePunctuation(writer, 51); + writePunctuation(writer, 51 /* ColonToken */); writeSpace(writer); buildTypeDisplay(getTypeOfSymbol(p), writer, enclosingDeclaration, flags, typeStack); } function buildDisplayForTypeParametersAndDelimiters(typeParameters, writer, enclosingDeclaration, flags, typeStack) { if (typeParameters && typeParameters.length) { - writePunctuation(writer, 24); + writePunctuation(writer, 24 /* LessThanToken */); for (var i = 0; i < typeParameters.length; i++) { if (i > 0) { - writePunctuation(writer, 23); + writePunctuation(writer, 23 /* CommaToken */); writeSpace(writer); } buildTypeParameterDisplay(typeParameters[i], writer, enclosingDeclaration, flags, typeStack); } - writePunctuation(writer, 25); + writePunctuation(writer, 25 /* GreaterThanToken */); } } function buildDisplayForTypeArgumentsAndDelimiters(typeParameters, mapper, writer, enclosingDeclaration, flags, typeStack) { if (typeParameters && typeParameters.length) { - writePunctuation(writer, 24); + writePunctuation(writer, 24 /* LessThanToken */); for (var i = 0; i < typeParameters.length; i++) { if (i > 0) { - writePunctuation(writer, 23); + writePunctuation(writer, 23 /* CommaToken */); writeSpace(writer); } - buildTypeDisplay(mapper(typeParameters[i]), writer, enclosingDeclaration, 0); + buildTypeDisplay(mapper(typeParameters[i]), writer, enclosingDeclaration, 0 /* None */); } - writePunctuation(writer, 25); + writePunctuation(writer, 25 /* GreaterThanToken */); } } function buildDisplayForParametersAndDelimiters(parameters, writer, enclosingDeclaration, flags, typeStack) { - writePunctuation(writer, 16); + writePunctuation(writer, 16 /* OpenParenToken */); for (var i = 0; i < parameters.length; i++) { if (i > 0) { - writePunctuation(writer, 23); + writePunctuation(writer, 23 /* CommaToken */); writeSpace(writer); } buildParameterDisplay(parameters[i], writer, enclosingDeclaration, flags, typeStack); } - writePunctuation(writer, 17); + writePunctuation(writer, 17 /* CloseParenToken */); } function buildReturnTypeDisplay(signature, writer, enclosingDeclaration, flags, typeStack) { - if (flags & 8) { + if (flags & 8 /* WriteArrowStyleSignature */) { writeSpace(writer); - writePunctuation(writer, 32); + writePunctuation(writer, 32 /* EqualsGreaterThanToken */); } else { - writePunctuation(writer, 51); + writePunctuation(writer, 51 /* ColonToken */); } writeSpace(writer); buildTypeDisplay(getReturnTypeOfSignature(signature), writer, enclosingDeclaration, flags, typeStack); } function buildSignatureDisplay(signature, writer, enclosingDeclaration, flags, typeStack) { - if (signature.target && (flags & 32)) { + if (signature.target && (flags & 32 /* WriteTypeArgumentsOfSignature */)) { + // Instantiated signature, write type arguments instead + // This is achieved by passing in the mapper separately buildDisplayForTypeArgumentsAndDelimiters(signature.target.typeParameters, signature.mapper, writer, enclosingDeclaration); } else { @@ -10407,41 +12210,47 @@ var ts; function isDeclarationVisible(node) { function getContainingExternalModule(node) { for (; node; node = node.parent) { - if (node.kind === 205) { - if (node.name.kind === 8) { + if (node.kind === 205 /* ModuleDeclaration */) { + if (node.name.kind === 8 /* StringLiteral */) { return node; } } - else if (node.kind === 227) { + else if (node.kind === 227 /* SourceFile */) { return ts.isExternalModule(node) ? node : undefined; } } ts.Debug.fail("getContainingModule cant reach here"); } function isUsedInExportAssignment(node) { + // Get source File and see if it is external module and has export assigned symbol var externalModule = getContainingExternalModule(node); var exportAssignmentSymbol; var resolvedExportSymbol; if (externalModule) { + // This is export assigned symbol node var externalModuleSymbol = getSymbolOfNode(externalModule); exportAssignmentSymbol = getExportAssignmentSymbol(externalModuleSymbol); var symbolOfNode = getSymbolOfNode(node); if (isSymbolUsedInExportAssignment(symbolOfNode)) { return true; } - if (symbolOfNode.flags & 8388608) { + // if symbolOfNode is alias declaration, resolve the symbol declaration and check + if (symbolOfNode.flags & 8388608 /* Alias */) { return isSymbolUsedInExportAssignment(resolveAlias(symbolOfNode)); } } + // Check if the symbol is used in export assignment function isSymbolUsedInExportAssignment(symbol) { if (exportAssignmentSymbol === symbol) { return true; } - if (exportAssignmentSymbol && !!(exportAssignmentSymbol.flags & 8388608)) { + if (exportAssignmentSymbol && !!(exportAssignmentSymbol.flags & 8388608 /* Alias */)) { + // if export assigned symbol is alias declaration, resolve the alias resolvedExportSymbol = resolvedExportSymbol || resolveAlias(exportAssignmentSymbol); if (resolvedExportSymbol === symbol) { return true; } + // Container of resolvedExportSymbol is visible return ts.forEach(resolvedExportSymbol.declarations, function (current) { while (current) { if (current === node) { @@ -10455,58 +12264,69 @@ var ts; } function determineIfDeclarationIsVisible() { switch (node.kind) { - case 152: + case 152 /* BindingElement */: return isDeclarationVisible(node.parent.parent); - case 198: + case 198 /* VariableDeclaration */: if (ts.isBindingPattern(node.name) && !node.name.elements.length) { + // If the binding pattern is empty, this variable declaration is not visible return false; } - case 205: - case 201: - case 202: - case 203: - case 200: - case 204: - case 208: + // Otherwise fall through + case 205 /* ModuleDeclaration */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 200 /* FunctionDeclaration */: + case 204 /* EnumDeclaration */: + case 208 /* ImportEqualsDeclaration */: var parent_2 = getDeclarationContainer(node); - if (!(ts.getCombinedNodeFlags(node) & 1) && - !(node.kind !== 208 && parent_2.kind !== 227 && ts.isInAmbientContext(parent_2))) { + // If the node is not exported or it is not ambient module element (except import declaration) + if (!(ts.getCombinedNodeFlags(node) & 1 /* Export */) && + !(node.kind !== 208 /* ImportEqualsDeclaration */ && parent_2.kind !== 227 /* SourceFile */ && ts.isInAmbientContext(parent_2))) { return isGlobalSourceFile(parent_2); } + // Exported members/ambient module elements (exception import declaration) are visible if parent is visible return isDeclarationVisible(parent_2); - case 132: - case 131: - case 136: - case 137: - case 134: - case 133: - if (node.flags & (32 | 64)) { + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + if (node.flags & (32 /* Private */ | 64 /* Protected */)) { + // Private/protected properties/methods are not visible return false; } - case 135: - case 139: - case 138: - case 140: - case 129: - case 206: - case 142: - case 143: - case 145: - case 141: - case 146: - case 147: - case 148: - case 149: + // Public properties/methods are visible if its parents are visible, so let it fall into next case statement + case 135 /* Constructor */: + case 139 /* ConstructSignature */: + case 138 /* CallSignature */: + case 140 /* IndexSignature */: + case 129 /* Parameter */: + case 206 /* ModuleBlock */: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 145 /* TypeLiteral */: + case 141 /* TypeReference */: + case 146 /* ArrayType */: + case 147 /* TupleType */: + case 148 /* UnionType */: + case 149 /* ParenthesizedType */: return isDeclarationVisible(node.parent); - case 210: - case 211: - case 213: + // Default binding, import specifier and namespace import is visible + // only on demand so by default it is not visible + case 210 /* ImportClause */: + case 211 /* NamespaceImport */: + case 213 /* ImportSpecifier */: return false; - case 128: - case 227: + // Type parameters are always visible + case 128 /* TypeParameter */: + // Source file is always visible + case 227 /* SourceFile */: return true; - case 214: + // Export assignements do not create name bindings outside the module + case 214 /* ExportAssignment */: return false; default: ts.Debug.fail("isDeclarationVisible unknown: SyntaxKind: " + node.kind); @@ -10522,10 +12342,10 @@ var ts; } function collectLinkedAliases(node) { var exportSymbol; - if (node.parent && node.parent.kind === 214) { - exportSymbol = resolveName(node.parent, node.text, 107455 | 793056 | 1536, ts.Diagnostics.Cannot_find_name_0, node); + if (node.parent && node.parent.kind === 214 /* ExportAssignment */) { + exportSymbol = resolveName(node.parent, node.text, 107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */, ts.Diagnostics.Cannot_find_name_0, node); } - else if (node.parent.kind === 217) { + else if (node.parent.kind === 217 /* ExportSpecifier */) { exportSymbol = getTargetOfExportSpecifier(node.parent); } var result = []; @@ -10541,38 +12361,51 @@ var ts; result.push(resultNode); } if (ts.isInternalModuleImportEqualsDeclaration(declaration)) { + // Add the referenced top container visible var internalModuleReference = declaration.moduleReference; var firstIdentifier = getFirstIdentifier(internalModuleReference); - var importSymbol = resolveName(declaration, firstIdentifier.text, 107455 | 793056 | 1536, ts.Diagnostics.Cannot_find_name_0, firstIdentifier); + var importSymbol = resolveName(declaration, firstIdentifier.text, 107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */, ts.Diagnostics.Cannot_find_name_0, firstIdentifier); buildVisibleNodeList(importSymbol.declarations); } }); } } function getRootDeclaration(node) { - while (node.kind === 152) { + while (node.kind === 152 /* BindingElement */) { node = node.parent.parent; } return node; } function getDeclarationContainer(node) { node = getRootDeclaration(node); - return node.kind === 198 ? node.parent.parent.parent : node.parent; + // Parent chain: + // VaribleDeclaration -> VariableDeclarationList -> VariableStatement -> 'Declaration Container' + return node.kind === 198 /* VariableDeclaration */ ? node.parent.parent.parent : node.parent; } function getTypeOfPrototypeProperty(prototype) { + // TypeScript 1.0 spec (April 2014): 8.4 + // Every class automatically contains a static property member named 'prototype', + // the type of which is an instantiation of the class type with type Any supplied as a type argument for each type parameter. + // It is an error to explicitly declare a static property member with the name 'prototype'. var classType = getDeclaredTypeOfSymbol(prototype.parent); return classType.typeParameters ? createTypeReference(classType, ts.map(classType.typeParameters, function (_) { return anyType; })) : classType; } + // Return the type of the given property in the given type, or undefined if no such property exists function getTypeOfPropertyOfType(type, name) { var prop = getPropertyOfType(type, name); return prop ? getTypeOfSymbol(prop) : undefined; } + // Return the inferred type for a binding element function getTypeForBindingElement(declaration) { var pattern = declaration.parent; var parentType = getTypeForVariableLikeDeclaration(pattern.parent); + // If parent has the unknown (error) type, then so does this binding element if (parentType === unknownType) { return unknownType; } + // If no type was specified or inferred for parent, or if the specified or inferred type is any, + // infer from the initializer of the binding element if one is present. Otherwise, go with the + // undefined or any type of the parent. if (!parentType || parentType === anyType) { if (declaration.initializer) { return checkExpressionCached(declaration.initializer); @@ -10580,24 +12413,33 @@ var ts; return parentType; } var type; - if (pattern.kind === 150) { + if (pattern.kind === 150 /* ObjectBindingPattern */) { + // Use explicitly specified property name ({ p: xxx } form), or otherwise the implied name ({ p } form) var name_5 = declaration.propertyName || declaration.name; + // Use type of the specified property, or otherwise, for a numeric name, the type of the numeric index signature, + // or otherwise the type of the string index signature. type = getTypeOfPropertyOfType(parentType, name_5.text) || - isNumericLiteralName(name_5.text) && getIndexTypeOfType(parentType, 1) || - getIndexTypeOfType(parentType, 0); + isNumericLiteralName(name_5.text) && getIndexTypeOfType(parentType, 1 /* Number */) || + getIndexTypeOfType(parentType, 0 /* String */); if (!type) { error(name_5, ts.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature, typeToString(parentType), ts.declarationNameToString(name_5)); return unknownType; } } else { - if (!isArrayLikeType(parentType)) { - error(pattern, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(parentType)); - return unknownType; - } + // This elementType will be used if the specific property corresponding to this index is not + // present (aka the tuple element property). This call also checks that the parentType is in + // fact an iterable or array (depending on target language). + var elementType = checkIteratedTypeOrElementType(parentType, pattern, false); if (!declaration.dotDotDotToken) { + if (elementType.flags & 1 /* Any */) { + return elementType; + } + // Use specific property type when parent is a tuple or numeric index type when parent is an array var propName = "" + ts.indexOf(pattern.elements, declaration); - type = isTupleLikeType(parentType) ? getTypeOfPropertyOfType(parentType, propName) : getIndexTypeOfType(parentType, 1); + type = isTupleLikeType(parentType) + ? getTypeOfPropertyOfType(parentType, propName) + : elementType; if (!type) { if (isTupleType(parentType)) { error(declaration, ts.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2, typeToString(parentType), parentType.elementTypes.length, pattern.elements.length); @@ -10609,45 +12451,61 @@ var ts; } } else { - type = createArrayType(getIndexTypeOfType(parentType, 1)); + // Rest element has an array type with the same element type as the parent type + type = createArrayType(elementType); } } return type; } + // Return the inferred type for a variable, parameter, or property declaration function getTypeForVariableLikeDeclaration(declaration) { - if (declaration.parent.parent.kind === 187) { + // A variable declared in a for..in statement is always of type any + if (declaration.parent.parent.kind === 187 /* ForInStatement */) { return anyType; } - if (declaration.parent.parent.kind === 188) { + if (declaration.parent.parent.kind === 188 /* ForOfStatement */) { + // checkRightHandSideOfForOf will return undefined if the for-of expression type was + // missing properties/signatures required to get its iteratedType (like + // [Symbol.iterator] or next). This may be because we accessed properties from anyType, + // or it may have led to an error inside getIteratedType. return checkRightHandSideOfForOf(declaration.parent.parent.expression) || anyType; } if (ts.isBindingPattern(declaration.parent)) { return getTypeForBindingElement(declaration); } + // Use type from type annotation if one is present if (declaration.type) { return getTypeFromTypeNodeOrHeritageClauseElement(declaration.type); } - if (declaration.kind === 129) { + if (declaration.kind === 129 /* Parameter */) { var func = declaration.parent; - if (func.kind === 137 && !ts.hasDynamicName(func)) { - var getter = ts.getDeclarationOfKind(declaration.parent.symbol, 136); + // For a parameter of a set accessor, use the type of the get accessor if one is present + if (func.kind === 137 /* SetAccessor */ && !ts.hasDynamicName(func)) { + var getter = ts.getDeclarationOfKind(declaration.parent.symbol, 136 /* GetAccessor */); if (getter) { return getReturnTypeOfSignature(getSignatureFromDeclaration(getter)); } } + // Use contextual parameter type if one is available var type = getContextuallyTypedParameterType(declaration); if (type) { return type; } } + // Use the type of the initializer expression if one is present if (declaration.initializer) { return checkExpressionCached(declaration.initializer); } - if (declaration.kind === 225) { + // If it is a short-hand property assignment, use the type of the identifier + if (declaration.kind === 225 /* ShorthandPropertyAssignment */) { return checkIdentifier(declaration.name); } + // No type specified and nothing can be inferred return undefined; } + // Return the type implied by a binding pattern element. This is the type of the initializer of the element if + // one is present. Otherwise, if the element is itself a binding pattern, it is the type implied by the binding + // pattern. Otherwise, it is the type any. function getTypeFromBindingElement(element) { if (element.initializer) { return getWidenedType(checkExpressionCached(element.initializer)); @@ -10657,10 +12515,11 @@ var ts; } return anyType; } + // Return the type implied by an object binding pattern function getTypeFromObjectBindingPattern(pattern) { var members = {}; ts.forEach(pattern.elements, function (e) { - var flags = 4 | 67108864 | (e.initializer ? 536870912 : 0); + var flags = 4 /* Property */ | 67108864 /* Transient */ | (e.initializer ? 536870912 /* Optional */ : 0); var name = e.propertyName || e.name; var symbol = createSymbol(flags, name.text); symbol.type = getTypeFromBindingElement(e); @@ -10668,37 +12527,86 @@ var ts; }); return createAnonymousType(undefined, members, emptyArray, emptyArray, undefined, undefined); } + // Return the type implied by an array binding pattern function getTypeFromArrayBindingPattern(pattern) { var hasSpreadElement = false; var elementTypes = []; ts.forEach(pattern.elements, function (e) { - elementTypes.push(e.kind === 175 || e.dotDotDotToken ? anyType : getTypeFromBindingElement(e)); + elementTypes.push(e.kind === 175 /* OmittedExpression */ || e.dotDotDotToken ? anyType : getTypeFromBindingElement(e)); if (e.dotDotDotToken) { hasSpreadElement = true; } }); - return !elementTypes.length ? anyArrayType : hasSpreadElement ? createArrayType(getUnionType(elementTypes)) : createTupleType(elementTypes); + if (!elementTypes.length) { + return languageVersion >= 2 /* ES6 */ ? createIterableType(anyType) : anyArrayType; + } + else if (hasSpreadElement) { + var unionOfElements = getUnionType(elementTypes); + if (languageVersion >= 2 /* ES6 */) { + // If the user has something like: + // + // function fun(...[a, ...b]) { } + // + // Normally, in ES6, the implied type of an array binding pattern with a rest element is + // an iterable. However, there is a requirement in our type system that all rest + // parameters be array types. To satisfy this, we have an exception to the rule that + // says the type of an array binding pattern with a rest element is an array type + // if it is *itself* in a rest parameter. It will still be compatible with a spreaded + // iterable argument, but within the function it will be an array. + var parent_3 = pattern.parent; + var isRestParameter = parent_3.kind === 129 /* Parameter */ && + pattern === parent_3.name && + parent_3.dotDotDotToken !== undefined; + return isRestParameter ? createArrayType(unionOfElements) : createIterableType(unionOfElements); + } + return createArrayType(unionOfElements); + } + // If the pattern has at least one element, and no rest element, then it should imply a tuple type. + return createTupleType(elementTypes); } + // Return the type implied by a binding pattern. This is the type implied purely by the binding pattern itself + // and without regard to its context (i.e. without regard any type annotation or initializer associated with the + // declaration in which the binding pattern is contained). For example, the implied type of [x, y] is [any, any] + // and the implied type of { x, y: z = 1 } is { x: any; y: number; }. The type implied by a binding pattern is + // used as the contextual type of an initializer associated with the binding pattern. Also, for a destructuring + // parameter with no type annotation or initializer, the type implied by the binding pattern becomes the type of + // the parameter. function getTypeFromBindingPattern(pattern) { - return pattern.kind === 150 + return pattern.kind === 150 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern) : getTypeFromArrayBindingPattern(pattern); } + // Return the type associated with a variable, parameter, or property declaration. In the simple case this is the type + // specified in a type annotation or inferred from an initializer. However, in the case of a destructuring declaration it + // is a bit more involved. For example: + // + // var [x, s = ""] = [1, "one"]; + // + // Here, the array literal [1, "one"] is contextually typed by the type [any, string], which is the implied type of the + // binding pattern [x, s = ""]. Because the contextual type is a tuple type, the resulting type of [1, "one"] is the + // tuple type [number, string]. Thus, the type inferred for 'x' is number and the type inferred for 's' is string. function getWidenedTypeForVariableLikeDeclaration(declaration, reportErrors) { var type = getTypeForVariableLikeDeclaration(declaration); if (type) { if (reportErrors) { reportErrorsFromWidening(declaration, type); } - return declaration.kind !== 224 ? getWidenedType(type) : type; + // During a normal type check we'll never get to here with a property assignment (the check of the containing + // object literal uses a different path). We exclude widening only so that language services and type verification + // tools see the actual type. + return declaration.kind !== 224 /* PropertyAssignment */ ? getWidenedType(type) : type; } + // If no type was specified and nothing could be inferred, and if the declaration specifies a binding pattern, use + // the type implied by the binding pattern if (ts.isBindingPattern(declaration.name)) { return getTypeFromBindingPattern(declaration.name); } + // Rest parameters default to type any[], other parameters default to type any type = declaration.dotDotDotToken ? anyArrayType : anyType; + // Report implicit any errors unless this is a private property within an ambient declaration if (reportErrors && compilerOptions.noImplicitAny) { var root = getRootDeclaration(declaration); - if (!isPrivateWithinAmbient(root) && !(root.kind === 129 && isPrivateWithinAmbient(root.parent))) { + if (!isPrivateWithinAmbient(root) && !(root.kind === 129 /* Parameter */ && isPrivateWithinAmbient(root.parent))) { reportImplicitAnyError(declaration, type); } } @@ -10707,25 +12615,20 @@ var ts; function getTypeOfVariableOrParameterOrProperty(symbol) { var links = getSymbolLinks(symbol); if (!links.type) { - if (symbol.flags & 134217728) { + // Handle prototype property + if (symbol.flags & 134217728 /* Prototype */) { return links.type = getTypeOfPrototypeProperty(symbol); } + // Handle catch clause variables var declaration = symbol.valueDeclaration; - if (declaration.parent.kind === 223) { + if (declaration.parent.kind === 223 /* CatchClause */) { return links.type = anyType; } - if (declaration.kind === 214) { - var exportAssignment = declaration; - if (exportAssignment.expression) { - return links.type = checkExpression(exportAssignment.expression); - } - else if (exportAssignment.type) { - return links.type = getTypeFromTypeNodeOrHeritageClauseElement(exportAssignment.type); - } - else { - return links.type = anyType; - } + // Handle export default expressions + if (declaration.kind === 214 /* ExportAssignment */) { + return links.type = checkExpression(declaration.expression); } + // Handle variable, parameter or property links.type = resolvingType; var type = getWidenedTypeForVariableLikeDeclaration(declaration, true); if (links.type === resolvingType) { @@ -10748,7 +12651,7 @@ var ts; } function getAnnotatedAccessorType(accessor) { if (accessor) { - if (accessor.kind === 136) { + if (accessor.kind === 136 /* GetAccessor */) { return accessor.type && getTypeFromTypeNodeOrHeritageClauseElement(accessor.type); } else { @@ -10767,19 +12670,22 @@ var ts; links = links || getSymbolLinks(symbol); if (!links.type) { links.type = resolvingType; - var getter = ts.getDeclarationOfKind(symbol, 136); - var setter = ts.getDeclarationOfKind(symbol, 137); + var getter = ts.getDeclarationOfKind(symbol, 136 /* GetAccessor */); + var setter = ts.getDeclarationOfKind(symbol, 137 /* SetAccessor */); var type; + // First try to see if the user specified a return type on the get-accessor. var getterReturnType = getAnnotatedAccessorType(getter); if (getterReturnType) { type = getterReturnType; } else { + // If the user didn't specify a return type, try to use the set-accessor's parameter type. var setterParameterType = getAnnotatedAccessorType(setter); if (setterParameterType) { type = setterParameterType; } else { + // If there are no specified types, try to infer it from the body of the get accessor if it exists. if (getter && getter.body) { type = getReturnTypeFromBody(getter); } @@ -10798,7 +12704,7 @@ var ts; else if (links.type === resolvingType) { links.type = anyType; if (compilerOptions.noImplicitAny) { - var getter = ts.getDeclarationOfKind(symbol, 136); + var getter = ts.getDeclarationOfKind(symbol, 136 /* GetAccessor */); error(getter, ts.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol)); } } @@ -10806,7 +12712,7 @@ var ts; function getTypeOfFuncClassEnumModule(symbol) { var links = getSymbolLinks(symbol); if (!links.type) { - links.type = createObjectType(32768, symbol); + links.type = createObjectType(32768 /* Anonymous */, symbol); } return links.type; } @@ -10832,28 +12738,28 @@ var ts; return links.type; } function getTypeOfSymbol(symbol) { - if (symbol.flags & 16777216) { + if (symbol.flags & 16777216 /* Instantiated */) { return getTypeOfInstantiatedSymbol(symbol); } - if (symbol.flags & (3 | 4)) { + if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) { return getTypeOfVariableOrParameterOrProperty(symbol); } - if (symbol.flags & (16 | 8192 | 32 | 384 | 512)) { + if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) { return getTypeOfFuncClassEnumModule(symbol); } - if (symbol.flags & 8) { + if (symbol.flags & 8 /* EnumMember */) { return getTypeOfEnumMember(symbol); } - if (symbol.flags & 98304) { + if (symbol.flags & 98304 /* Accessor */) { return getTypeOfAccessors(symbol); } - if (symbol.flags & 8388608) { + if (symbol.flags & 8388608 /* Alias */) { return getTypeOfAlias(symbol); } return unknownType; } function getTargetType(type) { - return type.flags & 4096 ? type.target : type; + return type.flags & 4096 /* Reference */ ? type.target : type; } function hasBaseType(type, checkBase) { return check(type); @@ -10862,10 +12768,13 @@ var ts; return target === checkBase || ts.forEach(target.baseTypes, check); } } + // Return combined list of type parameters from all declarations of a class or interface. Elsewhere we check they're all + // the same, but even if they're not we still need the complete list to ensure instantiations supply type arguments + // for all type parameters. function getTypeParametersOfClassOrInterface(symbol) { var result; ts.forEach(symbol.declarations, function (node) { - if (node.kind === 202 || node.kind === 201) { + if (node.kind === 202 /* InterfaceDeclaration */ || node.kind === 201 /* ClassDeclaration */) { var declaration = node; if (declaration.typeParameters && declaration.typeParameters.length) { ts.forEach(declaration.typeParameters, function (node) { @@ -10885,10 +12794,10 @@ var ts; function getDeclaredTypeOfClass(symbol) { var links = getSymbolLinks(symbol); if (!links.declaredType) { - var type = links.declaredType = createObjectType(1024, symbol); + var type = links.declaredType = createObjectType(1024 /* Class */, symbol); var typeParameters = getTypeParametersOfClassOrInterface(symbol); if (typeParameters) { - type.flags |= 4096; + type.flags |= 4096 /* Reference */; type.typeParameters = typeParameters; type.instantiations = {}; type.instantiations[getTypeListId(type.typeParameters)] = type; @@ -10896,17 +12805,17 @@ var ts; type.typeArguments = type.typeParameters; } type.baseTypes = []; - var declaration = ts.getDeclarationOfKind(symbol, 201); + var declaration = ts.getDeclarationOfKind(symbol, 201 /* ClassDeclaration */); var baseTypeNode = ts.getClassExtendsHeritageClauseElement(declaration); if (baseTypeNode) { var baseType = getTypeFromHeritageClauseElement(baseTypeNode); if (baseType !== unknownType) { - if (getTargetType(baseType).flags & 1024) { + if (getTargetType(baseType).flags & 1024 /* Class */) { if (type !== baseType && !hasBaseType(baseType, type)) { type.baseTypes.push(baseType); } else { - error(declaration, ts.Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, undefined, 1)); + error(declaration, ts.Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, undefined, 1 /* WriteArrayAsGenericType */)); } } else { @@ -10917,18 +12826,18 @@ var ts; type.declaredProperties = getNamedMembers(symbol.members); type.declaredCallSignatures = emptyArray; type.declaredConstructSignatures = emptyArray; - type.declaredStringIndexType = getIndexTypeOfSymbol(symbol, 0); - type.declaredNumberIndexType = getIndexTypeOfSymbol(symbol, 1); + type.declaredStringIndexType = getIndexTypeOfSymbol(symbol, 0 /* String */); + type.declaredNumberIndexType = getIndexTypeOfSymbol(symbol, 1 /* Number */); } return links.declaredType; } function getDeclaredTypeOfInterface(symbol) { var links = getSymbolLinks(symbol); if (!links.declaredType) { - var type = links.declaredType = createObjectType(2048, symbol); + var type = links.declaredType = createObjectType(2048 /* Interface */, symbol); var typeParameters = getTypeParametersOfClassOrInterface(symbol); if (typeParameters) { - type.flags |= 4096; + type.flags |= 4096 /* Reference */; type.typeParameters = typeParameters; type.instantiations = {}; type.instantiations[getTypeListId(type.typeParameters)] = type; @@ -10937,16 +12846,16 @@ var ts; } type.baseTypes = []; ts.forEach(symbol.declarations, function (declaration) { - if (declaration.kind === 202 && ts.getInterfaceBaseTypeNodes(declaration)) { + if (declaration.kind === 202 /* InterfaceDeclaration */ && ts.getInterfaceBaseTypeNodes(declaration)) { ts.forEach(ts.getInterfaceBaseTypeNodes(declaration), function (node) { var baseType = getTypeFromHeritageClauseElement(node); if (baseType !== unknownType) { - if (getTargetType(baseType).flags & (1024 | 2048)) { + if (getTargetType(baseType).flags & (1024 /* Class */ | 2048 /* Interface */)) { if (type !== baseType && !hasBaseType(baseType, type)) { type.baseTypes.push(baseType); } else { - error(declaration, ts.Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, undefined, 1)); + error(declaration, ts.Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, undefined, 1 /* WriteArrayAsGenericType */)); } } else { @@ -10959,8 +12868,8 @@ var ts; type.declaredProperties = getNamedMembers(symbol.members); type.declaredCallSignatures = getSignaturesOfSymbol(symbol.members["__call"]); type.declaredConstructSignatures = getSignaturesOfSymbol(symbol.members["__new"]); - type.declaredStringIndexType = getIndexTypeOfSymbol(symbol, 0); - type.declaredNumberIndexType = getIndexTypeOfSymbol(symbol, 1); + type.declaredStringIndexType = getIndexTypeOfSymbol(symbol, 0 /* String */); + type.declaredNumberIndexType = getIndexTypeOfSymbol(symbol, 1 /* Number */); } return links.declaredType; } @@ -10968,7 +12877,7 @@ var ts; var links = getSymbolLinks(symbol); if (!links.declaredType) { links.declaredType = resolvingType; - var declaration = ts.getDeclarationOfKind(symbol, 203); + var declaration = ts.getDeclarationOfKind(symbol, 203 /* TypeAliasDeclaration */); var type = getTypeFromTypeNodeOrHeritageClauseElement(declaration.type); if (links.declaredType === resolvingType) { links.declaredType = type; @@ -10976,7 +12885,7 @@ var ts; } else if (links.declaredType === resolvingType) { links.declaredType = unknownType; - var declaration = ts.getDeclarationOfKind(symbol, 203); + var declaration = ts.getDeclarationOfKind(symbol, 203 /* TypeAliasDeclaration */); error(declaration.name, ts.Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); } return links.declaredType; @@ -10984,7 +12893,7 @@ var ts; function getDeclaredTypeOfEnum(symbol) { var links = getSymbolLinks(symbol); if (!links.declaredType) { - var type = createType(128); + var type = createType(128 /* Enum */); type.symbol = symbol; links.declaredType = type; } @@ -10993,9 +12902,9 @@ var ts; function getDeclaredTypeOfTypeParameter(symbol) { var links = getSymbolLinks(symbol); if (!links.declaredType) { - var type = createType(512); + var type = createType(512 /* TypeParameter */); type.symbol = symbol; - if (!ts.getDeclarationOfKind(symbol, 128).constraint) { + if (!ts.getDeclarationOfKind(symbol, 128 /* TypeParameter */).constraint) { type.constraint = noConstraintType; } links.declaredType = type; @@ -11010,23 +12919,23 @@ var ts; return links.declaredType; } function getDeclaredTypeOfSymbol(symbol) { - ts.Debug.assert((symbol.flags & 16777216) === 0); - if (symbol.flags & 32) { + ts.Debug.assert((symbol.flags & 16777216 /* Instantiated */) === 0); + if (symbol.flags & 32 /* Class */) { return getDeclaredTypeOfClass(symbol); } - if (symbol.flags & 64) { + if (symbol.flags & 64 /* Interface */) { return getDeclaredTypeOfInterface(symbol); } - if (symbol.flags & 524288) { + if (symbol.flags & 524288 /* TypeAlias */) { return getDeclaredTypeOfTypeAlias(symbol); } - if (symbol.flags & 384) { + if (symbol.flags & 384 /* Enum */) { return getDeclaredTypeOfEnum(symbol); } - if (symbol.flags & 262144) { + if (symbol.flags & 262144 /* TypeParameter */) { return getDeclaredTypeOfTypeParameter(symbol); } - if (symbol.flags & 8388608) { + if (symbol.flags & 8388608 /* Alias */) { return getDeclaredTypeOfAlias(symbol); } return unknownType; @@ -11073,10 +12982,10 @@ var ts; members = createSymbolTable(type.declaredProperties); ts.forEach(type.baseTypes, function (baseType) { addInheritedMembers(members, getPropertiesOfObjectType(baseType)); - callSignatures = ts.concatenate(callSignatures, getSignaturesOfType(baseType, 0)); - constructSignatures = ts.concatenate(constructSignatures, getSignaturesOfType(baseType, 1)); - stringIndexType = stringIndexType || getIndexTypeOfType(baseType, 0); - numberIndexType = numberIndexType || getIndexTypeOfType(baseType, 1); + callSignatures = ts.concatenate(callSignatures, getSignaturesOfType(baseType, 0 /* Call */)); + constructSignatures = ts.concatenate(constructSignatures, getSignaturesOfType(baseType, 1 /* Construct */)); + stringIndexType = stringIndexType || getIndexTypeOfType(baseType, 0 /* String */); + numberIndexType = numberIndexType || getIndexTypeOfType(baseType, 1 /* Number */); }); } setObjectTypeMembers(type, members, callSignatures, constructSignatures, stringIndexType, numberIndexType); @@ -11092,10 +13001,10 @@ var ts; ts.forEach(target.baseTypes, function (baseType) { var instantiatedBaseType = instantiateType(baseType, mapper); addInheritedMembers(members, getPropertiesOfObjectType(instantiatedBaseType)); - callSignatures = ts.concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0)); - constructSignatures = ts.concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1)); - stringIndexType = stringIndexType || getIndexTypeOfType(instantiatedBaseType, 0); - numberIndexType = numberIndexType || getIndexTypeOfType(instantiatedBaseType, 1); + callSignatures = ts.concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0 /* Call */)); + constructSignatures = ts.concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1 /* Construct */)); + stringIndexType = stringIndexType || getIndexTypeOfType(instantiatedBaseType, 0 /* String */); + numberIndexType = numberIndexType || getIndexTypeOfType(instantiatedBaseType, 1 /* Number */); }); setObjectTypeMembers(type, members, callSignatures, constructSignatures, stringIndexType, numberIndexType); } @@ -11116,9 +13025,9 @@ var ts; function getDefaultConstructSignatures(classType) { if (classType.baseTypes.length) { var baseType = classType.baseTypes[0]; - var baseSignatures = getSignaturesOfType(getTypeOfSymbol(baseType.symbol), 1); + var baseSignatures = getSignaturesOfType(getTypeOfSymbol(baseType.symbol), 1 /* Construct */); return ts.map(baseSignatures, function (baseSignature) { - var signature = baseType.flags & 4096 ? + var signature = baseType.flags & 4096 /* Reference */ ? getSignatureInstantiation(baseSignature, baseType.typeArguments) : cloneSignature(baseSignature); signature.typeParameters = classType.typeParameters; signature.resolvedReturnType = classType; @@ -11130,7 +13039,7 @@ var ts; function createTupleTypeMemberSymbols(memberTypes) { var members = {}; for (var i = 0; i < memberTypes.length; i++) { - var symbol = createSymbol(4 | 67108864, "" + i); + var symbol = createSymbol(4 /* Property */ | 67108864 /* Transient */, "" + i); symbol.type = memberTypes[i]; members[i] = symbol; } @@ -11153,6 +13062,9 @@ var ts; } return true; } + // If the lists of call or construct signatures in the given types are all identical except for return types, + // and if none of the signatures are generic, return a list of signatures that has substitutes a union of the + // return types of the corresponding signatures in each resulting signature. function getUnionSignatures(types, kind) { var signatureLists = ts.map(types, function (t) { return getSignaturesOfType(t, kind); }); var signatures = signatureLists[0]; @@ -11170,6 +13082,7 @@ var ts; var result = ts.map(signatures, cloneSignature); for (var i = 0; i < result.length; i++) { var s = result[i]; + // Clear resolved return type we possibly got from cloneSignature s.resolvedReturnType = undefined; s.unionSignatures = ts.map(signatureLists, function (signatures) { return signatures[i]; }); } @@ -11188,10 +13101,12 @@ var ts; return getUnionType(indexTypes); } function resolveUnionTypeMembers(type) { - var callSignatures = getUnionSignatures(type.types, 0); - var constructSignatures = getUnionSignatures(type.types, 1); - var stringIndexType = getUnionIndexType(type.types, 0); - var numberIndexType = getUnionIndexType(type.types, 1); + // The members and properties collections are empty for union types. To get all properties of a union + // type use getPropertiesOfType (only the language service uses this). + var callSignatures = getUnionSignatures(type.types, 0 /* Call */); + var constructSignatures = getUnionSignatures(type.types, 1 /* Construct */); + var stringIndexType = getUnionIndexType(type.types, 0 /* String */); + var numberIndexType = getUnionIndexType(type.types, 1 /* Number */); setObjectTypeMembers(type, emptySymbols, callSignatures, constructSignatures, stringIndexType, numberIndexType); } function resolveAnonymousTypeMembers(type) { @@ -11201,24 +13116,25 @@ var ts; var constructSignatures; var stringIndexType; var numberIndexType; - if (symbol.flags & 2048) { + if (symbol.flags & 2048 /* TypeLiteral */) { members = symbol.members; callSignatures = getSignaturesOfSymbol(members["__call"]); constructSignatures = getSignaturesOfSymbol(members["__new"]); - stringIndexType = getIndexTypeOfSymbol(symbol, 0); - numberIndexType = getIndexTypeOfSymbol(symbol, 1); + stringIndexType = getIndexTypeOfSymbol(symbol, 0 /* String */); + numberIndexType = getIndexTypeOfSymbol(symbol, 1 /* Number */); } else { + // Combinations of function, class, enum and module members = emptySymbols; callSignatures = emptyArray; constructSignatures = emptyArray; - if (symbol.flags & 1952) { + if (symbol.flags & 1952 /* HasExports */) { members = getExportsOfSymbol(symbol); } - if (symbol.flags & (16 | 8192)) { + if (symbol.flags & (16 /* Function */ | 8192 /* Method */)) { callSignatures = getSignaturesOfSymbol(symbol); } - if (symbol.flags & 32) { + if (symbol.flags & 32 /* Class */) { var classType = getDeclaredTypeOfClass(symbol); constructSignatures = getSignaturesOfSymbol(symbol.members["__constructor"]); if (!constructSignatures.length) { @@ -11230,22 +13146,22 @@ var ts; } } stringIndexType = undefined; - numberIndexType = (symbol.flags & 384) ? stringType : undefined; + numberIndexType = (symbol.flags & 384 /* Enum */) ? stringType : undefined; } setObjectTypeMembers(type, members, callSignatures, constructSignatures, stringIndexType, numberIndexType); } function resolveObjectOrUnionTypeMembers(type) { if (!type.members) { - if (type.flags & (1024 | 2048)) { + if (type.flags & (1024 /* Class */ | 2048 /* Interface */)) { resolveClassOrInterfaceMembers(type); } - else if (type.flags & 32768) { + else if (type.flags & 32768 /* Anonymous */) { resolveAnonymousTypeMembers(type); } - else if (type.flags & 8192) { + else if (type.flags & 8192 /* Tuple */) { resolveTupleTypeMembers(type); } - else if (type.flags & 16384) { + else if (type.flags & 16384 /* Union */) { resolveUnionTypeMembers(type); } else { @@ -11254,14 +13170,17 @@ var ts; } return type; } + // Return properties of an object type or an empty array for other types function getPropertiesOfObjectType(type) { - if (type.flags & 48128) { + if (type.flags & 48128 /* ObjectType */) { return resolveObjectOrUnionTypeMembers(type).properties; } return emptyArray; } + // If the given type is an object type and that type has a property by the given name, return + // the symbol for that property. Otherwise return undefined. function getPropertyOfObjectType(type, name) { - if (type.flags & 48128) { + if (type.flags & 48128 /* ObjectType */) { var resolved = resolveObjectOrUnionTypeMembers(type); if (ts.hasProperty(resolved.members, name)) { var symbol = resolved.members[name]; @@ -11282,30 +13201,33 @@ var ts; return result; } function getPropertiesOfType(type) { - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { return getPropertiesOfUnionType(type); } return getPropertiesOfObjectType(getApparentType(type)); } + // For a type parameter, return the base constraint of the type parameter. For the string, number, + // boolean, and symbol primitive types, return the corresponding object types. Otherwise return the + // type itself. Note that the apparent type of a union type is the union type itself. function getApparentType(type) { - if (type.flags & 512) { + if (type.flags & 512 /* TypeParameter */) { do { type = getConstraintOfTypeParameter(type); - } while (type && type.flags & 512); + } while (type && type.flags & 512 /* TypeParameter */); if (!type) { type = emptyObjectType; } } - if (type.flags & 258) { + if (type.flags & 258 /* StringLike */) { type = globalStringType; } - else if (type.flags & 132) { + else if (type.flags & 132 /* NumberLike */) { type = globalNumberType; } - else if (type.flags & 8) { + else if (type.flags & 8 /* Boolean */) { type = globalBooleanType; } - else if (type.flags & 1048576) { + else if (type.flags & 1048576 /* ESSymbol */) { type = globalESSymbolType; } return type; @@ -11338,7 +13260,7 @@ var ts; } propTypes.push(getTypeOfSymbol(prop)); } - var result = createSymbol(4 | 67108864 | 268435456, name); + var result = createSymbol(4 /* Property */ | 67108864 /* Transient */ | 268435456 /* UnionProperty */, name); result.unionType = unionType; result.declarations = declarations; result.type = getUnionType(propTypes); @@ -11355,13 +13277,16 @@ var ts; } return property; } + // Return the symbol for the property with the given name in the given type. Creates synthetic union properties when + // necessary, maps primitive types and type parameters are to their apparent types, and augments with properties from + // Object and Function as appropriate. function getPropertyOfType(type, name) { - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { return getPropertyOfUnionType(type, name); } - if (!(type.flags & 48128)) { + if (!(type.flags & 48128 /* ObjectType */)) { type = getApparentType(type); - if (!(type.flags & 48128)) { + if (!(type.flags & 48128 /* ObjectType */)) { return undefined; } } @@ -11380,24 +13305,39 @@ var ts; return getPropertyOfObjectType(globalObjectType, name); } function getSignaturesOfObjectOrUnionType(type, kind) { - if (type.flags & (48128 | 16384)) { + if (type.flags & (48128 /* ObjectType */ | 16384 /* Union */)) { var resolved = resolveObjectOrUnionTypeMembers(type); - return kind === 0 ? resolved.callSignatures : resolved.constructSignatures; + return kind === 0 /* Call */ ? resolved.callSignatures : resolved.constructSignatures; } return emptyArray; } + // Return the signatures of the given kind in the given type. Creates synthetic union signatures when necessary and + // maps primitive types and type parameters are to their apparent types. function getSignaturesOfType(type, kind) { return getSignaturesOfObjectOrUnionType(getApparentType(type), kind); } - function getIndexTypeOfObjectOrUnionType(type, kind) { - if (type.flags & (48128 | 16384)) { + function typeHasCallOrConstructSignatures(type) { + var apparentType = getApparentType(type); + if (apparentType.flags & (48128 /* ObjectType */ | 16384 /* Union */)) { var resolved = resolveObjectOrUnionTypeMembers(type); - return kind === 0 ? resolved.stringIndexType : resolved.numberIndexType; + return resolved.callSignatures.length > 0 + || resolved.constructSignatures.length > 0; + } + return false; + } + function getIndexTypeOfObjectOrUnionType(type, kind) { + if (type.flags & (48128 /* ObjectType */ | 16384 /* Union */)) { + var resolved = resolveObjectOrUnionTypeMembers(type); + return kind === 0 /* String */ ? resolved.stringIndexType : resolved.numberIndexType; } } + // Return the index type of the given kind in the given type. Creates synthetic union index types when necessary and + // maps primitive types and type parameters are to their apparent types. function getIndexTypeOfType(type, kind) { return getIndexTypeOfObjectOrUnionType(getApparentType(type), kind); } + // Return list of type parameters with duplicates removed (duplicate identifier errors are generated in the actual + // type checking functions). function getTypeParametersFromDeclaration(typeParameterDeclarations) { var result = []; ts.forEach(typeParameterDeclarations, function (node) { @@ -11417,20 +13357,10 @@ var ts; } return result; } - function getExportsOfExternalModule(node) { - if (!node.moduleSpecifier) { - return emptyArray; - } - var module = resolveExternalModuleName(node, node.moduleSpecifier); - if (!module) { - return emptyArray; - } - return symbolsToArray(getExportsOfModule(module)); - } function getSignatureFromDeclaration(declaration) { var links = getNodeLinks(declaration); if (!links.resolvedSignature) { - var classType = declaration.kind === 135 ? getDeclaredTypeOfClass(declaration.parent.symbol) : undefined; + var classType = declaration.kind === 135 /* Constructor */ ? getDeclaredTypeOfClass(declaration.parent.symbol) : undefined; var typeParameters = classType ? classType.typeParameters : declaration.typeParameters ? getTypeParametersFromDeclaration(declaration.typeParameters) : undefined; var parameters = []; @@ -11439,7 +13369,7 @@ var ts; for (var i = 0, n = declaration.parameters.length; i < n; i++) { var param = declaration.parameters[i]; parameters.push(param.symbol); - if (param.type && param.type.kind === 8) { + if (param.type && param.type.kind === 8 /* StringLiteral */) { hasStringLiterals = true; } if (minArgumentCount < 0) { @@ -11459,8 +13389,10 @@ var ts; returnType = getTypeFromTypeNodeOrHeritageClauseElement(declaration.type); } else { - if (declaration.kind === 136 && !ts.hasDynamicName(declaration)) { - var setter = ts.getDeclarationOfKind(declaration.symbol, 137); + // TypeScript 1.0 spec (April 2014): + // If only one accessor includes a type annotation, the other behaves as if it had the same type annotation. + if (declaration.kind === 136 /* GetAccessor */ && !ts.hasDynamicName(declaration)) { + var setter = ts.getDeclarationOfKind(declaration.symbol, 137 /* SetAccessor */); returnType = getAnnotatedAccessorType(setter); } if (!returnType && ts.nodeIsMissing(declaration.body)) { @@ -11478,19 +13410,22 @@ var ts; for (var i = 0, len = symbol.declarations.length; i < len; i++) { var node = symbol.declarations[i]; switch (node.kind) { - case 142: - case 143: - case 200: - case 134: - case 133: - case 135: - case 138: - case 139: - case 140: - case 136: - case 137: - case 162: - case 163: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + // Don't include signature if node is the implementation of an overloaded function. A node is considered + // an implementation node if it has a body and the previous node is of the same kind and immediately + // precedes the implementation node (i.e. has the same parent and ends where the implementation starts). if (i > 0 && node.body) { var previous = symbol.declarations[i - 1]; if (node.parent === previous.parent && node.kind === previous.kind && node.pos === previous.end) { @@ -11536,7 +13471,7 @@ var ts; function getRestTypeOfSignature(signature) { if (signature.hasRestParameter) { var type = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]); - if (type.flags & 4096 && type.target === globalArrayType) { + if (type.flags & 4096 /* Reference */ && type.target === globalArrayType) { return type.typeArguments[0]; } } @@ -11559,9 +13494,13 @@ var ts; return signature.erasedSignatureCache; } function getOrCreateTypeFromSignature(signature) { + // There are two ways to declare a construct signature, one is by declaring a class constructor + // using the constructor keyword, and the other is declaring a bare construct signature in an + // object type literal or interface (using the new keyword). Each way of declaring a constructor + // will result in a different declaration kind. if (!signature.isolatedSignatureType) { - var isConstructor = signature.declaration.kind === 135 || signature.declaration.kind === 139; - var type = createObjectType(32768 | 65536); + var isConstructor = signature.declaration.kind === 135 /* Constructor */ || signature.declaration.kind === 139 /* ConstructSignature */; + var type = createObjectType(32768 /* Anonymous */ | 65536 /* FromSignature */); type.members = emptySymbols; type.properties = emptyArray; type.callSignatures = !isConstructor ? [signature] : emptyArray; @@ -11574,7 +13513,7 @@ var ts; return symbol.members["__index"]; } function getIndexDeclarationOfSymbol(symbol, kind) { - var syntaxKind = kind === 1 ? 119 : 121; + var syntaxKind = kind === 1 /* Number */ ? 119 /* NumberKeyword */ : 121 /* StringKeyword */; var indexSymbol = getIndexSymbol(symbol); if (indexSymbol) { var len = indexSymbol.declarations.length; @@ -11604,7 +13543,7 @@ var ts; type.constraint = targetConstraint ? instantiateType(targetConstraint, type.mapper) : noConstraintType; } else { - type.constraint = getTypeFromTypeNodeOrHeritageClauseElement(ts.getDeclarationOfKind(type.symbol, 128).constraint); + type.constraint = getTypeFromTypeNodeOrHeritageClauseElement(ts.getDeclarationOfKind(type.symbol, 128 /* TypeParameter */).constraint); } } return type.constraint === noConstraintType ? undefined : type.constraint; @@ -11626,19 +13565,22 @@ var ts; return result; } } + // This function is used to propagate widening flags when creating new object types references and union types. + // It is only necessary to do so if a constituent type might be the undefined type, the null type, or the type + // of an object literal (since those types have widening related information we need to track). function getWideningFlagsOfTypes(types) { var result = 0; for (var _i = 0; _i < types.length; _i++) { var type = types[_i]; result |= type.flags; } - return result & 786432; + return result & 786432 /* RequiresWidening */; } function createTypeReference(target, typeArguments) { var id = getTypeListId(typeArguments); var type = target.instantiations[id]; if (!type) { - var flags = 4096 | getWideningFlagsOfTypes(typeArguments); + var flags = 4096 /* Reference */ | getWideningFlagsOfTypes(typeArguments); type = target.instantiations[id] = createObjectType(flags, target.symbol); type.target = target; type.typeArguments = typeArguments; @@ -11650,21 +13592,31 @@ var ts; if (links.isIllegalTypeReferenceInConstraint !== undefined) { return links.isIllegalTypeReferenceInConstraint; } + // bubble up to the declaration var currentNode = typeReferenceNode; + // forEach === exists while (!ts.forEach(typeParameterSymbol.declarations, function (d) { return d.parent === currentNode.parent; })) { currentNode = currentNode.parent; } - links.isIllegalTypeReferenceInConstraint = currentNode.kind === 128; + // if last step was made from the type parameter this means that path has started somewhere in constraint which is illegal + links.isIllegalTypeReferenceInConstraint = currentNode.kind === 128 /* TypeParameter */; return links.isIllegalTypeReferenceInConstraint; } function checkTypeParameterHasIllegalReferencesInConstraint(typeParameter) { var typeParameterSymbol; function check(n) { - if (n.kind === 141 && n.typeName.kind === 65) { + if (n.kind === 141 /* TypeReference */ && n.typeName.kind === 65 /* Identifier */) { var links = getNodeLinks(n); if (links.isIllegalTypeReferenceInConstraint === undefined) { - var symbol = resolveName(typeParameter, n.typeName.text, 793056, undefined, undefined); - if (symbol && (symbol.flags & 262144)) { + var symbol = resolveName(typeParameter, n.typeName.text, 793056 /* Type */, undefined, undefined); + if (symbol && (symbol.flags & 262144 /* TypeParameter */)) { + // TypeScript 1.0 spec (April 2014): 3.4.1 + // Type parameters declared in a particular type parameter list + // may not be referenced in constraints in that type parameter list + // symbol.declaration.parent === typeParameter.parent + // -> typeParameter and symbol.declaration originate from the same type parameter list + // -> illegal for all declarations in symbol + // forEach === exists links.isIllegalTypeReferenceInConstraint = ts.forEach(symbol.declarations, function (d) { return d.parent == typeParameter.parent; }); } } @@ -11689,24 +13641,30 @@ var ts; var links = getNodeLinks(node); if (!links.resolvedType) { var type; - if (node.kind !== 177 || ts.isSupportedHeritageClauseElement(node)) { - var typeNameOrExpression = node.kind === 141 + // We don't currently support heritage clauses with complex expressions in them. + // For these cases, we just set the type to be the unknownType. + if (node.kind !== 177 /* HeritageClauseElement */ || ts.isSupportedHeritageClauseElement(node)) { + var typeNameOrExpression = node.kind === 141 /* TypeReference */ ? node.typeName : node.expression; - var symbol = resolveEntityName(typeNameOrExpression, 793056); + var symbol = resolveEntityName(typeNameOrExpression, 793056 /* Type */); if (symbol) { - if ((symbol.flags & 262144) && isTypeParameterReferenceIllegalInConstraint(node, symbol)) { + if ((symbol.flags & 262144 /* TypeParameter */) && isTypeParameterReferenceIllegalInConstraint(node, symbol)) { + // TypeScript 1.0 spec (April 2014): 3.4.1 + // Type parameters declared in a particular type parameter list + // may not be referenced in constraints in that type parameter list + // Implementation: such type references are resolved to 'unknown' type that usually denotes error type = unknownType; } else { type = getDeclaredTypeOfSymbol(symbol); - if (type.flags & (1024 | 2048) && type.flags & 4096) { + if (type.flags & (1024 /* Class */ | 2048 /* Interface */) && type.flags & 4096 /* Reference */) { var typeParameters = type.typeParameters; if (node.typeArguments && node.typeArguments.length === typeParameters.length) { type = createTypeReference(type, ts.map(node.typeArguments, getTypeFromTypeNodeOrHeritageClauseElement)); } else { - error(node, ts.Diagnostics.Generic_type_0_requires_1_type_argument_s, typeToString(type, undefined, 1), typeParameters.length); + error(node, ts.Diagnostics.Generic_type_0_requires_1_type_argument_s, typeToString(type, undefined, 1 /* WriteArrayAsGenericType */), typeParameters.length); type = undefined; } } @@ -11726,6 +13684,10 @@ var ts; function getTypeFromTypeQueryNode(node) { var links = getNodeLinks(node); if (!links.resolvedType) { + // TypeScript 1.0 spec (April 2014): 3.6.3 + // The expression is processed as an identifier expression (section 4.3) + // or property access expression(section 4.10), + // the widened type(section 3.9) of which becomes the result. links.resolvedType = getWidenedType(checkExpressionOrQualifiedName(node.exprName)); } return links.resolvedType; @@ -11736,9 +13698,9 @@ var ts; for (var _i = 0; _i < declarations.length; _i++) { var declaration = declarations[_i]; switch (declaration.kind) { - case 201: - case 202: - case 204: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: return declaration; } } @@ -11747,7 +13709,7 @@ var ts; return emptyObjectType; } var type = getDeclaredTypeOfSymbol(symbol); - if (!(type.flags & 48128)) { + if (!(type.flags & 48128 /* ObjectType */)) { error(getTypeDeclaration(symbol), ts.Diagnostics.Global_type_0_must_be_a_class_or_interface_type, symbol.name); return emptyObjectType; } @@ -11758,10 +13720,10 @@ var ts; return type; } function getGlobalValueSymbol(name) { - return getGlobalSymbol(name, 107455, ts.Diagnostics.Cannot_find_global_value_0); + return getGlobalSymbol(name, 107455 /* Value */, ts.Diagnostics.Cannot_find_global_value_0); } function getGlobalTypeSymbol(name) { - return getGlobalSymbol(name, 793056, ts.Diagnostics.Cannot_find_global_type_0); + return getGlobalSymbol(name, 793056 /* Type */, ts.Diagnostics.Cannot_find_global_type_0); } function getGlobalSymbol(name, meaning, diagnostic) { return resolveName(undefined, name, meaning, diagnostic, name); @@ -11773,7 +13735,13 @@ var ts; function getGlobalESSymbolConstructorSymbol() { return globalESSymbolConstructorSymbol || (globalESSymbolConstructorSymbol = getGlobalValueSymbol("Symbol")); } + function createIterableType(elementType) { + return globalIterableType !== emptyObjectType ? createTypeReference(globalIterableType, [elementType]) : emptyObjectType; + } function createArrayType(elementType) { + // globalArrayType will be undefined if we get here during creation of the Array type. This for example happens if + // user code augments the Array type with call or construct signatures that have an array type as the return type. + // We instead use globalArraySymbol to obtain the (not yet fully constructed) Array type. var arrayType = globalArrayType || getDeclaredTypeOfSymbol(globalArraySymbol); return arrayType !== emptyObjectType ? createTypeReference(arrayType, [elementType]) : emptyObjectType; } @@ -11788,7 +13756,7 @@ var ts; var id = getTypeListId(elementTypes); var type = tupleTypes[id]; if (!type) { - type = tupleTypes[id] = createObjectType(8192); + type = tupleTypes[id] = createObjectType(8192 /* Tuple */); type.elementTypes = elementTypes; } return type; @@ -11801,7 +13769,7 @@ var ts; return links.resolvedType; } function addTypeToSortedSet(sortedSet, type) { - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { addTypesToSortedSet(sortedSet, type.types); } else { @@ -11842,7 +13810,7 @@ var ts; function containsAnyType(types) { for (var _i = 0; _i < types.length; _i++) { var type = types[_i]; - if (type.flags & 1) { + if (type.flags & 1 /* Any */) { return true; } } @@ -11879,7 +13847,7 @@ var ts; var id = getTypeListId(sortedTypes); var type = unionTypes[id]; if (!type) { - type = unionTypes[id] = createObjectType(16384 | getWideningFlagsOfTypes(sortedTypes)); + type = unionTypes[id] = createObjectType(16384 /* Union */ | getWideningFlagsOfTypes(sortedTypes)); type.types = sortedTypes; } return type; @@ -11894,7 +13862,8 @@ var ts; function getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node) { var links = getNodeLinks(node); if (!links.resolvedType) { - links.resolvedType = createObjectType(32768, node.symbol); + // Deferred resolution of members is handled by resolveObjectTypeMembers + links.resolvedType = createObjectType(32768 /* Anonymous */, node.symbol); } return links.resolvedType; } @@ -11902,7 +13871,7 @@ var ts; if (ts.hasProperty(stringLiteralTypes, node.text)) { return stringLiteralTypes[node.text]; } - var type = stringLiteralTypes[node.text] = createType(256); + var type = stringLiteralTypes[node.text] = createType(256 /* StringLiteral */); type.text = ts.getTextOfNode(node); return type; } @@ -11915,40 +13884,42 @@ var ts; } function getTypeFromTypeNodeOrHeritageClauseElement(node) { switch (node.kind) { - case 112: + case 112 /* AnyKeyword */: return anyType; - case 121: + case 121 /* StringKeyword */: return stringType; - case 119: + case 119 /* NumberKeyword */: return numberType; - case 113: + case 113 /* BooleanKeyword */: return booleanType; - case 122: + case 122 /* SymbolKeyword */: return esSymbolType; - case 99: + case 99 /* VoidKeyword */: return voidType; - case 8: + case 8 /* StringLiteral */: return getTypeFromStringLiteral(node); - case 141: + case 141 /* TypeReference */: return getTypeFromTypeReference(node); - case 177: + case 177 /* HeritageClauseElement */: return getTypeFromHeritageClauseElement(node); - case 144: + case 144 /* TypeQuery */: return getTypeFromTypeQueryNode(node); - case 146: + case 146 /* ArrayType */: return getTypeFromArrayTypeNode(node); - case 147: + case 147 /* TupleType */: return getTypeFromTupleTypeNode(node); - case 148: + case 148 /* UnionType */: return getTypeFromUnionTypeNode(node); - case 149: + case 149 /* ParenthesizedType */: return getTypeFromTypeNodeOrHeritageClauseElement(node.type); - case 142: - case 143: - case 145: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 145 /* TypeLiteral */: return getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node); - case 65: - case 126: + // This function assumes that an identifier or qualified name is a type expression + // Callers should first ensure this by calling isTypeNode + case 65 /* Identifier */: + case 126 /* QualifiedName */: var symbol = getSymbolInfo(node); return symbol && getDeclaredTypeOfSymbol(symbol); default: @@ -12025,7 +13996,7 @@ var ts; return function (t) { return mapper2(mapper1(t)); }; } function instantiateTypeParameter(typeParameter, mapper) { - var result = createType(512); + var result = createType(512 /* TypeParameter */); result.symbol = typeParameter.symbol; if (typeParameter.constraint) { result.constraint = instantiateType(typeParameter.constraint, mapper); @@ -12048,12 +14019,17 @@ var ts; return result; } function instantiateSymbol(symbol, mapper) { - if (symbol.flags & 16777216) { + if (symbol.flags & 16777216 /* Instantiated */) { var links = getSymbolLinks(symbol); + // If symbol being instantiated is itself a instantiation, fetch the original target and combine the + // type mappers. This ensures that original type identities are properly preserved and that aliases + // always reference a non-aliases. symbol = links.target; mapper = combineTypeMappers(links.mapper, mapper); } - var result = createSymbol(16777216 | 67108864 | symbol.flags, symbol.name); + // Keep the flags from the symbol we're instantiating. Mark that is instantiated, and + // also transient so that we can just store data on it directly. + var result = createSymbol(16777216 /* Instantiated */ | 67108864 /* Transient */ | symbol.flags, symbol.name); result.declarations = symbol.declarations; result.parent = symbol.parent; result.target = symbol; @@ -12064,13 +14040,13 @@ var ts; return result; } function instantiateAnonymousType(type, mapper) { - var result = createObjectType(32768, type.symbol); + var result = createObjectType(32768 /* Anonymous */, type.symbol); result.properties = instantiateList(getPropertiesOfObjectType(type), mapper, instantiateSymbol); result.members = createSymbolTable(result.properties); - result.callSignatures = instantiateList(getSignaturesOfType(type, 0), mapper, instantiateSignature); - result.constructSignatures = instantiateList(getSignaturesOfType(type, 1), mapper, instantiateSignature); - var stringIndexType = getIndexTypeOfType(type, 0); - var numberIndexType = getIndexTypeOfType(type, 1); + result.callSignatures = instantiateList(getSignaturesOfType(type, 0 /* Call */), mapper, instantiateSignature); + result.constructSignatures = instantiateList(getSignaturesOfType(type, 1 /* Construct */), mapper, instantiateSignature); + var stringIndexType = getIndexTypeOfType(type, 0 /* String */); + var numberIndexType = getIndexTypeOfType(type, 1 /* Number */); if (stringIndexType) result.stringIndexType = instantiateType(stringIndexType, mapper); if (numberIndexType) @@ -12079,47 +14055,49 @@ var ts; } function instantiateType(type, mapper) { if (mapper !== identityMapper) { - if (type.flags & 512) { + if (type.flags & 512 /* TypeParameter */) { return mapper(type); } - if (type.flags & 32768) { - return type.symbol && type.symbol.flags & (16 | 8192 | 2048 | 4096) ? + if (type.flags & 32768 /* Anonymous */) { + return type.symbol && type.symbol.flags & (16 /* Function */ | 8192 /* Method */ | 2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */) ? instantiateAnonymousType(type, mapper) : type; } - if (type.flags & 4096) { + if (type.flags & 4096 /* Reference */) { return createTypeReference(type.target, instantiateList(type.typeArguments, mapper, instantiateType)); } - if (type.flags & 8192) { + if (type.flags & 8192 /* Tuple */) { return createTupleType(instantiateList(type.elementTypes, mapper, instantiateType)); } - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { return getUnionType(instantiateList(type.types, mapper, instantiateType), true); } } return type; } + // Returns true if the given expression contains (at any level of nesting) a function or arrow expression + // that is subject to contextual typing. function isContextSensitive(node) { - ts.Debug.assert(node.kind !== 134 || ts.isObjectLiteralMethod(node)); + ts.Debug.assert(node.kind !== 134 /* MethodDeclaration */ || ts.isObjectLiteralMethod(node)); switch (node.kind) { - case 162: - case 163: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: return isContextSensitiveFunctionLikeDeclaration(node); - case 154: + case 154 /* ObjectLiteralExpression */: return ts.forEach(node.properties, isContextSensitive); - case 153: + case 153 /* ArrayLiteralExpression */: return ts.forEach(node.elements, isContextSensitive); - case 170: + case 170 /* ConditionalExpression */: return isContextSensitive(node.whenTrue) || isContextSensitive(node.whenFalse); - case 169: - return node.operatorToken.kind === 49 && + case 169 /* BinaryExpression */: + return node.operatorToken.kind === 49 /* BarBarToken */ && (isContextSensitive(node.left) || isContextSensitive(node.right)); - case 224: + case 224 /* PropertyAssignment */: return isContextSensitive(node.initializer); - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return isContextSensitiveFunctionLikeDeclaration(node); - case 161: + case 161 /* ParenthesizedExpression */: return isContextSensitive(node.expression); } return false; @@ -12128,10 +14106,10 @@ var ts; return !node.typeParameters && node.parameters.length && !ts.forEach(node.parameters, function (p) { return p.type; }); } function getTypeWithoutConstructors(type) { - if (type.flags & 48128) { + if (type.flags & 48128 /* ObjectType */) { var resolved = resolveObjectOrUnionTypeMembers(type); if (resolved.constructSignatures.length) { - var result = createObjectType(32768, type.symbol); + var result = createObjectType(32768 /* Anonymous */, type.symbol); result.members = resolved.members; result.properties = resolved.properties; result.callSignatures = resolved.callSignatures; @@ -12141,6 +14119,7 @@ var ts; } return type; } + // TYPE CHECKING var subtypeRelation = {}; var assignableRelation = {}; var identityRelation = {}; @@ -12148,7 +14127,7 @@ var ts; return checkTypeRelatedTo(source, target, identityRelation, undefined); } function compareTypes(source, target) { - return checkTypeRelatedTo(source, target, identityRelation, undefined) ? -1 : 0; + return checkTypeRelatedTo(source, target, identityRelation, undefined) ? -1 /* True */ : 0 /* False */; } function isTypeSubtypeOf(source, target) { return checkTypeSubtypeOf(source, target, undefined); @@ -12182,6 +14161,10 @@ var ts; error(errorNode, ts.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1, typeToString(source), typeToString(target)); } else if (errorInfo) { + // If we already computed this relation, but in a context where we didn't want to report errors (e.g. overload resolution), + // then we'll only have a top-level error (e.g. 'Class X does not implement interface Y') without any details. If this happened, + // request a recompuation to get a complete error message. This will be skipped if we've already done this computation in a context + // where errors were being reported. if (errorInfo.next === undefined) { errorInfo = undefined; elaborateErrors = true; @@ -12192,42 +14175,47 @@ var ts; } diagnostics.add(ts.createDiagnosticForNodeFromMessageChain(errorNode, errorInfo)); } - return result !== 0; + return result !== 0 /* False */; function reportError(message, arg0, arg1, arg2) { errorInfo = ts.chainDiagnosticMessages(errorInfo, message, arg0, arg1, arg2); } + // Compare two types and return + // Ternary.True if they are related with no assumptions, + // Ternary.Maybe if they are related with assumptions of other relationships, or + // Ternary.False if they are not related. function isRelatedTo(source, target, reportErrors, headMessage) { var result; + // both types are the same - covers 'they are the same primitive type or both are Any' or the same type parameter cases if (source === target) - return -1; + return -1 /* True */; if (relation !== identityRelation) { - if (target.flags & 1) - return -1; + if (target.flags & 1 /* Any */) + return -1 /* True */; if (source === undefinedType) - return -1; + return -1 /* True */; if (source === nullType && target !== undefinedType) - return -1; - if (source.flags & 128 && target === numberType) - return -1; - if (source.flags & 256 && target === stringType) - return -1; + return -1 /* True */; + if (source.flags & 128 /* Enum */ && target === numberType) + return -1 /* True */; + if (source.flags & 256 /* StringLiteral */ && target === stringType) + return -1 /* True */; if (relation === assignableRelation) { - if (source.flags & 1) - return -1; - if (source === numberType && target.flags & 128) - return -1; + if (source.flags & 1 /* Any */) + return -1 /* True */; + if (source === numberType && target.flags & 128 /* Enum */) + return -1 /* True */; } } - if (source.flags & 16384 || target.flags & 16384) { + if (source.flags & 16384 /* Union */ || target.flags & 16384 /* Union */) { if (relation === identityRelation) { - if (source.flags & 16384 && target.flags & 16384) { + if (source.flags & 16384 /* Union */ && target.flags & 16384 /* Union */) { if (result = unionTypeRelatedToUnionType(source, target)) { if (result &= unionTypeRelatedToUnionType(target, source)) { return result; } } } - else if (source.flags & 16384) { + else if (source.flags & 16384 /* Union */) { if (result = unionTypeRelatedToType(source, target, reportErrors)) { return result; } @@ -12239,7 +14227,7 @@ var ts; } } else { - if (source.flags & 16384) { + if (source.flags & 16384 /* Union */) { if (result = unionTypeRelatedToType(source, target, reportErrors)) { return result; } @@ -12251,21 +14239,25 @@ var ts; } } } - else if (source.flags & 512 && target.flags & 512) { + else if (source.flags & 512 /* TypeParameter */ && target.flags & 512 /* TypeParameter */) { if (result = typeParameterRelatedTo(source, target, reportErrors)) { return result; } } else { var saveErrorInfo = errorInfo; - if (source.flags & 4096 && target.flags & 4096 && source.target === target.target) { + if (source.flags & 4096 /* Reference */ && target.flags & 4096 /* Reference */ && source.target === target.target) { + // We have type references to same target type, see if relationship holds for all type arguments if (result = typesRelatedTo(source.typeArguments, target.typeArguments, reportErrors)) { return result; } } + // Even if relationship doesn't hold for type arguments, it may hold in a structural comparison + // Report structural errors only if we haven't reported any errors yet var reportStructuralErrors = reportErrors && errorInfo === saveErrorInfo; + // identity relation does not use apparent type var sourceOrApparentType = relation === identityRelation ? source : getApparentType(source); - if (sourceOrApparentType.flags & 48128 && target.flags & 48128 && + if (sourceOrApparentType.flags & 48128 /* ObjectType */ && target.flags & 48128 /* ObjectType */ && (result = objectTypeRelatedTo(sourceOrApparentType, target, reportStructuralErrors))) { errorInfo = saveErrorInfo; return result; @@ -12276,21 +14268,21 @@ var ts; var sourceType = typeToString(source); var targetType = typeToString(target); if (sourceType === targetType) { - sourceType = typeToString(source, undefined, 128); - targetType = typeToString(target, undefined, 128); + sourceType = typeToString(source, undefined, 128 /* UseFullyQualifiedType */); + targetType = typeToString(target, undefined, 128 /* UseFullyQualifiedType */); } reportError(headMessage, sourceType, targetType); } - return 0; + return 0 /* False */; } function unionTypeRelatedToUnionType(source, target) { - var result = -1; + var result = -1 /* True */; var sourceTypes = source.types; for (var _i = 0; _i < sourceTypes.length; _i++) { var sourceType = sourceTypes[_i]; var related = typeRelatedToUnionType(sourceType, target, false); if (!related) { - return 0; + return 0 /* False */; } result &= related; } @@ -12304,27 +14296,27 @@ var ts; return related; } } - return 0; + return 0 /* False */; } function unionTypeRelatedToType(source, target, reportErrors) { - var result = -1; + var result = -1 /* True */; var sourceTypes = source.types; for (var _i = 0; _i < sourceTypes.length; _i++) { var sourceType = sourceTypes[_i]; var related = isRelatedTo(sourceType, target, reportErrors); if (!related) { - return 0; + return 0 /* False */; } result &= related; } return result; } function typesRelatedTo(sources, targets, reportErrors) { - var result = -1; + var result = -1 /* True */; for (var i = 0, len = sources.length; i < len; i++) { var related = isRelatedTo(sources[i], targets[i], reportErrors); if (!related) { - return 0; + return 0 /* False */; } result &= related; } @@ -12333,13 +14325,14 @@ var ts; function typeParameterRelatedTo(source, target, reportErrors) { if (relation === identityRelation) { if (source.symbol.name !== target.symbol.name) { - return 0; + return 0 /* False */; } + // covers case when both type parameters does not have constraint (both equal to noConstraintType) if (source.constraint === target.constraint) { - return -1; + return -1 /* True */; } if (source.constraint === noConstraintType || target.constraint === noConstraintType) { - return 0; + return 0 /* False */; } return isRelatedTo(source.constraint, target.constraint, reportErrors); } @@ -12347,34 +14340,43 @@ var ts; while (true) { var constraint = getConstraintOfTypeParameter(source); if (constraint === target) - return -1; - if (!(constraint && constraint.flags & 512)) + return -1 /* True */; + if (!(constraint && constraint.flags & 512 /* TypeParameter */)) break; source = constraint; } - return 0; + return 0 /* False */; } } + // Determine if two object types are related by structure. First, check if the result is already available in the global cache. + // Second, check if we have already started a comparison of the given two types in which case we assume the result to be true. + // Third, check if both types are part of deeply nested chains of generic type instantiations and if so assume the types are + // equal and infinitely expanding. Fourth, if we have reached a depth of 100 nested comparisons, assume we have runaway recursion + // and issue an error. Otherwise, actually compare the structure of the two types. function objectTypeRelatedTo(source, target, reportErrors) { if (overflow) { - return 0; + return 0 /* False */; } var id = relation !== identityRelation || source.id < target.id ? source.id + "," + target.id : target.id + "," + source.id; var related = relation[id]; + //let related: RelationComparisonResult = undefined; // relation[id]; if (related !== undefined) { - if (!elaborateErrors || (related === 3)) { - return related === 1 ? -1 : 0; + // If we computed this relation already and it was failed and reported, or if we're not being asked to elaborate + // errors, we can use the cached value. Otherwise, recompute the relation + if (!elaborateErrors || (related === 3 /* FailedAndReported */)) { + return related === 1 /* Succeeded */ ? -1 /* True */ : 0 /* False */; } } if (depth > 0) { for (var i = 0; i < depth; i++) { + // If source and target are already being compared, consider them related with assumptions if (maybeStack[i][id]) { - return 1; + return 1 /* Maybe */; } } if (depth === 100) { overflow = true; - return 0; + return 0 /* False */; } } else { @@ -12386,7 +14388,7 @@ var ts; sourceStack[depth] = source; targetStack[depth] = target; maybeStack[depth] = {}; - maybeStack[depth][id] = 1; + maybeStack[depth][id] = 1 /* Succeeded */; depth++; var saveExpandingFlags = expandingFlags; if (!(expandingFlags & 1) && isDeeplyNestedGeneric(source, sourceStack)) @@ -12395,14 +14397,14 @@ var ts; expandingFlags |= 2; var result; if (expandingFlags === 3) { - result = 1; + result = 1 /* Maybe */; } else { result = propertiesRelatedTo(source, target, reportErrors); if (result) { - result &= signaturesRelatedTo(source, target, 0, reportErrors); + result &= signaturesRelatedTo(source, target, 0 /* Call */, reportErrors); if (result) { - result &= signaturesRelatedTo(source, target, 1, reportErrors); + result &= signaturesRelatedTo(source, target, 1 /* Construct */, reportErrors); if (result) { result &= stringIndexTypesRelatedTo(source, target, reportErrors); if (result) { @@ -12416,21 +14418,29 @@ var ts; depth--; if (result) { var maybeCache = maybeStack[depth]; - var destinationCache = (result === -1 || depth === 0) ? relation : maybeStack[depth - 1]; + // If result is definitely true, copy assumptions to global cache, else copy to next level up + var destinationCache = (result === -1 /* True */ || depth === 0) ? relation : maybeStack[depth - 1]; ts.copyMap(maybeCache, destinationCache); } else { - relation[id] = reportErrors ? 3 : 2; + // A false result goes straight into global cache (when something is false under assumptions it + // will also be false without assumptions) + relation[id] = reportErrors ? 3 /* FailedAndReported */ : 2 /* Failed */; } return result; } + // Return true if the given type is part of a deeply nested chain of generic instantiations. We consider this to be the case + // when structural type comparisons have been started for 10 or more instantiations of the same generic type. It is possible, + // though highly unlikely, for this test to be true in a situation where a chain of instantiations is not infinitely expanding. + // Effectively, we will generate a false positive when two types are structurally equal to at least 10 levels, but unequal at + // some level beyond that. function isDeeplyNestedGeneric(type, stack) { - if (type.flags & 4096 && depth >= 10) { + if (type.flags & 4096 /* Reference */ && depth >= 10) { var target_1 = type.target; var count = 0; for (var i = 0; i < depth; i++) { var t = stack[i]; - if (t.flags & 4096 && t.target === target_1) { + if (t.flags & 4096 /* Reference */ && t.target === target_1) { count++; if (count >= 10) return true; @@ -12443,67 +14453,74 @@ var ts; if (relation === identityRelation) { return propertiesIdenticalTo(source, target); } - var result = -1; + var result = -1 /* True */; var properties = getPropertiesOfObjectType(target); - var requireOptionalProperties = relation === subtypeRelation && !(source.flags & 131072); + var requireOptionalProperties = relation === subtypeRelation && !(source.flags & 131072 /* ObjectLiteral */); for (var _i = 0; _i < properties.length; _i++) { var targetProp = properties[_i]; var sourceProp = getPropertyOfType(source, targetProp.name); if (sourceProp !== targetProp) { if (!sourceProp) { - if (!(targetProp.flags & 536870912) || requireOptionalProperties) { + if (!(targetProp.flags & 536870912 /* Optional */) || requireOptionalProperties) { if (reportErrors) { reportError(ts.Diagnostics.Property_0_is_missing_in_type_1, symbolToString(targetProp), typeToString(source)); } - return 0; + return 0 /* False */; } } - else if (!(targetProp.flags & 134217728)) { + else if (!(targetProp.flags & 134217728 /* Prototype */)) { var sourceFlags = getDeclarationFlagsFromSymbol(sourceProp); var targetFlags = getDeclarationFlagsFromSymbol(targetProp); - if (sourceFlags & 32 || targetFlags & 32) { + if (sourceFlags & 32 /* Private */ || targetFlags & 32 /* Private */) { if (sourceProp.valueDeclaration !== targetProp.valueDeclaration) { if (reportErrors) { - if (sourceFlags & 32 && targetFlags & 32) { + if (sourceFlags & 32 /* Private */ && targetFlags & 32 /* Private */) { reportError(ts.Diagnostics.Types_have_separate_declarations_of_a_private_property_0, symbolToString(targetProp)); } else { - reportError(ts.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2, symbolToString(targetProp), typeToString(sourceFlags & 32 ? source : target), typeToString(sourceFlags & 32 ? target : source)); + reportError(ts.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2, symbolToString(targetProp), typeToString(sourceFlags & 32 /* Private */ ? source : target), typeToString(sourceFlags & 32 /* Private */ ? target : source)); } } - return 0; + return 0 /* False */; } } - else if (targetFlags & 64) { - var sourceDeclaredInClass = sourceProp.parent && sourceProp.parent.flags & 32; + else if (targetFlags & 64 /* Protected */) { + var sourceDeclaredInClass = sourceProp.parent && sourceProp.parent.flags & 32 /* Class */; var sourceClass = sourceDeclaredInClass ? getDeclaredTypeOfSymbol(sourceProp.parent) : undefined; var targetClass = getDeclaredTypeOfSymbol(targetProp.parent); if (!sourceClass || !hasBaseType(sourceClass, targetClass)) { if (reportErrors) { reportError(ts.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2, symbolToString(targetProp), typeToString(sourceClass || source), typeToString(targetClass)); } - return 0; + return 0 /* False */; } } - else if (sourceFlags & 64) { + else if (sourceFlags & 64 /* Protected */) { if (reportErrors) { reportError(ts.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2, symbolToString(targetProp), typeToString(source), typeToString(target)); } - return 0; + return 0 /* False */; } var related = isRelatedTo(getTypeOfSymbol(sourceProp), getTypeOfSymbol(targetProp), reportErrors); if (!related) { if (reportErrors) { reportError(ts.Diagnostics.Types_of_property_0_are_incompatible, symbolToString(targetProp)); } - return 0; + return 0 /* False */; } result &= related; - if (sourceProp.flags & 536870912 && !(targetProp.flags & 536870912)) { + if (sourceProp.flags & 536870912 /* Optional */ && !(targetProp.flags & 536870912 /* Optional */)) { + // TypeScript 1.0 spec (April 2014): 3.8.3 + // S is a subtype of a type T, and T is a supertype of S if ... + // S' and T are object types and, for each member M in T.. + // M is a property and S' contains a property N where + // if M is a required property, N is also a required property + // (M - property in T) + // (N - property in S) if (reportErrors) { reportError(ts.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2, symbolToString(targetProp), typeToString(source), typeToString(target)); } - return 0; + return 0 /* False */; } } } @@ -12514,18 +14531,18 @@ var ts; var sourceProperties = getPropertiesOfObjectType(source); var targetProperties = getPropertiesOfObjectType(target); if (sourceProperties.length !== targetProperties.length) { - return 0; + return 0 /* False */; } - var result = -1; + var result = -1 /* True */; for (var _i = 0; _i < sourceProperties.length; _i++) { var sourceProp = sourceProperties[_i]; var targetProp = getPropertyOfObjectType(target, sourceProp.name); if (!targetProp) { - return 0; + return 0 /* False */; } var related = compareProperties(sourceProp, targetProp, isRelatedTo); if (!related) { - return 0; + return 0 /* False */; } result &= related; } @@ -12536,39 +14553,40 @@ var ts; return signaturesIdenticalTo(source, target, kind); } if (target === anyFunctionType || source === anyFunctionType) { - return -1; + return -1 /* True */; } var sourceSignatures = getSignaturesOfType(source, kind); var targetSignatures = getSignaturesOfType(target, kind); - var result = -1; + var result = -1 /* True */; var saveErrorInfo = errorInfo; outer: for (var _i = 0; _i < targetSignatures.length; _i++) { var t = targetSignatures[_i]; - if (!t.hasStringLiterals || target.flags & 65536) { + if (!t.hasStringLiterals || target.flags & 65536 /* FromSignature */) { var localErrors = reportErrors; for (var _a = 0; _a < sourceSignatures.length; _a++) { var s = sourceSignatures[_a]; - if (!s.hasStringLiterals || source.flags & 65536) { + if (!s.hasStringLiterals || source.flags & 65536 /* FromSignature */) { var related = signatureRelatedTo(s, t, localErrors); if (related) { result &= related; errorInfo = saveErrorInfo; continue outer; } + // Only report errors from the first failure localErrors = false; } } - return 0; + return 0 /* False */; } } return result; } function signatureRelatedTo(source, target, reportErrors) { if (source === target) { - return -1; + return -1 /* True */; } if (!target.hasRestParameter && source.minArgumentCount > target.parameters.length) { - return 0; + return 0 /* False */; } var sourceMax = source.parameters.length; var targetMax = target.parameters.length; @@ -12589,9 +14607,11 @@ var ts; else { checkCount = sourceMax < targetMax ? sourceMax : targetMax; } + // Spec 1.0 Section 3.8.3 & 3.8.4: + // M and N (the signatures) are instantiated using type Any as the type argument for all type parameters declared by M and N source = getErasedSignature(source); target = getErasedSignature(target); - var result = -1; + var result = -1 /* True */; for (var i = 0; i < checkCount; i++) { var s_1 = i < sourceMax ? getTypeOfSymbol(source.parameters[i]) : getRestTypeOfSignature(source); var t_1 = i < targetMax ? getTypeOfSymbol(target.parameters[i]) : getRestTypeOfSignature(target); @@ -12603,7 +14623,7 @@ var ts; if (reportErrors) { reportError(ts.Diagnostics.Types_of_parameters_0_and_1_are_incompatible, source.parameters[i < sourceMax ? i : sourceMax].name, target.parameters[i < targetMax ? i : targetMax].name); } - return 0; + return 0 /* False */; } errorInfo = saveErrorInfo; } @@ -12619,13 +14639,13 @@ var ts; var sourceSignatures = getSignaturesOfType(source, kind); var targetSignatures = getSignaturesOfType(target, kind); if (sourceSignatures.length !== targetSignatures.length) { - return 0; + return 0 /* False */; } - var result = -1; + var result = -1 /* True */; for (var i = 0, len = sourceSignatures.length; i < len; ++i) { var related = compareSignatures(sourceSignatures[i], targetSignatures[i], true, isRelatedTo); if (!related) { - return 0; + return 0 /* False */; } result &= related; } @@ -12633,44 +14653,45 @@ var ts; } function stringIndexTypesRelatedTo(source, target, reportErrors) { if (relation === identityRelation) { - return indexTypesIdenticalTo(0, source, target); + return indexTypesIdenticalTo(0 /* String */, source, target); } - var targetType = getIndexTypeOfType(target, 0); + var targetType = getIndexTypeOfType(target, 0 /* String */); if (targetType) { - var sourceType = getIndexTypeOfType(source, 0); + var sourceType = getIndexTypeOfType(source, 0 /* String */); if (!sourceType) { if (reportErrors) { reportError(ts.Diagnostics.Index_signature_is_missing_in_type_0, typeToString(source)); } - return 0; + return 0 /* False */; } var related = isRelatedTo(sourceType, targetType, reportErrors); if (!related) { if (reportErrors) { reportError(ts.Diagnostics.Index_signatures_are_incompatible); } - return 0; + return 0 /* False */; } return related; } - return -1; + return -1 /* True */; } function numberIndexTypesRelatedTo(source, target, reportErrors) { if (relation === identityRelation) { - return indexTypesIdenticalTo(1, source, target); + return indexTypesIdenticalTo(1 /* Number */, source, target); } - var targetType = getIndexTypeOfType(target, 1); + var targetType = getIndexTypeOfType(target, 1 /* Number */); if (targetType) { - var sourceStringType = getIndexTypeOfType(source, 0); - var sourceNumberType = getIndexTypeOfType(source, 1); + var sourceStringType = getIndexTypeOfType(source, 0 /* String */); + var sourceNumberType = getIndexTypeOfType(source, 1 /* Number */); if (!(sourceStringType || sourceNumberType)) { if (reportErrors) { reportError(ts.Diagnostics.Index_signature_is_missing_in_type_0, typeToString(source)); } - return 0; + return 0 /* False */; } var related; if (sourceStringType && sourceNumberType) { + // If we know for sure we're testing both string and numeric index types then only report errors from the second one related = isRelatedTo(sourceStringType, targetType, false) || isRelatedTo(sourceNumberType, targetType, reportErrors); } else { @@ -12680,73 +14701,78 @@ var ts; if (reportErrors) { reportError(ts.Diagnostics.Index_signatures_are_incompatible); } - return 0; + return 0 /* False */; } return related; } - return -1; + return -1 /* True */; } function indexTypesIdenticalTo(indexKind, source, target) { var targetType = getIndexTypeOfType(target, indexKind); var sourceType = getIndexTypeOfType(source, indexKind); if (!sourceType && !targetType) { - return -1; + return -1 /* True */; } if (sourceType && targetType) { return isRelatedTo(sourceType, targetType); } - return 0; + return 0 /* False */; } } function isPropertyIdenticalTo(sourceProp, targetProp) { - return compareProperties(sourceProp, targetProp, compareTypes) !== 0; + return compareProperties(sourceProp, targetProp, compareTypes) !== 0 /* False */; } function compareProperties(sourceProp, targetProp, compareTypes) { + // Two members are considered identical when + // - they are public properties with identical names, optionality, and types, + // - they are private or protected properties originating in the same declaration and having identical types if (sourceProp === targetProp) { - return -1; + return -1 /* True */; } - var sourcePropAccessibility = getDeclarationFlagsFromSymbol(sourceProp) & (32 | 64); - var targetPropAccessibility = getDeclarationFlagsFromSymbol(targetProp) & (32 | 64); + var sourcePropAccessibility = getDeclarationFlagsFromSymbol(sourceProp) & (32 /* Private */ | 64 /* Protected */); + var targetPropAccessibility = getDeclarationFlagsFromSymbol(targetProp) & (32 /* Private */ | 64 /* Protected */); if (sourcePropAccessibility !== targetPropAccessibility) { - return 0; + return 0 /* False */; } if (sourcePropAccessibility) { if (getTargetSymbol(sourceProp) !== getTargetSymbol(targetProp)) { - return 0; + return 0 /* False */; } } else { - if ((sourceProp.flags & 536870912) !== (targetProp.flags & 536870912)) { - return 0; + if ((sourceProp.flags & 536870912 /* Optional */) !== (targetProp.flags & 536870912 /* Optional */)) { + return 0 /* False */; } } return compareTypes(getTypeOfSymbol(sourceProp), getTypeOfSymbol(targetProp)); } function compareSignatures(source, target, compareReturnTypes, compareTypes) { if (source === target) { - return -1; + return -1 /* True */; } if (source.parameters.length !== target.parameters.length || source.minArgumentCount !== target.minArgumentCount || source.hasRestParameter !== target.hasRestParameter) { - return 0; + return 0 /* False */; } - var result = -1; + var result = -1 /* True */; if (source.typeParameters && target.typeParameters) { if (source.typeParameters.length !== target.typeParameters.length) { - return 0; + return 0 /* False */; } for (var i = 0, len = source.typeParameters.length; i < len; ++i) { var related = compareTypes(source.typeParameters[i], target.typeParameters[i]); if (!related) { - return 0; + return 0 /* False */; } result &= related; } } else if (source.typeParameters || target.typeParameters) { - return 0; + return 0 /* False */; } + // Spec 1.0 Section 3.8.3 & 3.8.4: + // M and N (the signatures) are instantiated using type Any as the type argument for all type parameters declared by M and N source = getErasedSignature(source); target = getErasedSignature(target); for (var i = 0, len = source.parameters.length; i < len; i++) { @@ -12754,7 +14780,7 @@ var ts; var t = target.hasRestParameter && i === len - 1 ? getRestTypeOfSignature(target) : getTypeOfSymbol(target.parameters[i]); var related = compareTypes(s, t); if (!related) { - return 0; + return 0 /* False */; } result &= related; } @@ -12775,6 +14801,9 @@ var ts; return ts.forEach(types, function (t) { return isSupertypeOfEach(t, types) ? t : undefined; }); } function reportNoCommonSupertypeError(types, errorLocation, errorMessageChainHead) { + // The downfallType/bestSupertypeDownfallType is the first type that caused a particular candidate + // to not be the common supertype. So if it weren't for this one downfallType (and possibly others), + // the type in question could have been the common supertype. var bestSupertype; var bestSupertypeDownfallType; var bestSupertypeScore = 0; @@ -12795,23 +14824,31 @@ var ts; bestSupertypeDownfallType = downfallType; bestSupertypeScore = score; } + // types.length - 1 is the maximum score, given that getCommonSupertype returned false if (bestSupertypeScore === types.length - 1) { break; } } + // In the following errors, the {1} slot is before the {0} slot because checkTypeSubtypeOf supplies the + // subtype as the first argument to the error checkTypeSubtypeOf(bestSupertypeDownfallType, bestSupertype, errorLocation, ts.Diagnostics.Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0, errorMessageChainHead); } function isArrayType(type) { - return type.flags & 4096 && type.target === globalArrayType; + return type.flags & 4096 /* Reference */ && type.target === globalArrayType; } function isArrayLikeType(type) { - return !(type.flags & (32 | 64)) && isTypeAssignableTo(type, anyArrayType); + // A type is array-like if it is not the undefined or null type and if it is assignable to any[] + return !(type.flags & (32 /* Undefined */ | 64 /* Null */)) && isTypeAssignableTo(type, anyArrayType); } function isTupleLikeType(type) { return !!getPropertyOfType(type, "0"); } + /** + * Check if a Type was written as a tuple type literal. + * Prefer using isTupleLikeType() unless the use of `elementTypes` is required. + */ function isTupleType(type) { - return (type.flags & 8192) && !!type.elementTypes; + return (type.flags & 8192 /* Tuple */) && !!type.elementTypes; } function getWidenedTypeOfObjectLiteral(type) { var properties = getPropertiesOfObjectType(type); @@ -12820,7 +14857,7 @@ var ts; var propType = getTypeOfSymbol(p); var widenedType = getWidenedType(propType); if (propType !== widenedType) { - var symbol = createSymbol(p.flags | 67108864, p.name); + var symbol = createSymbol(p.flags | 67108864 /* Transient */, p.name); symbol.declarations = p.declarations; symbol.parent = p.parent; symbol.type = widenedType; @@ -12831,8 +14868,8 @@ var ts; } members[p.name] = p; }); - var stringIndexType = getIndexTypeOfType(type, 0); - var numberIndexType = getIndexTypeOfType(type, 1); + var stringIndexType = getIndexTypeOfType(type, 0 /* String */); + var numberIndexType = getIndexTypeOfType(type, 1 /* Number */); if (stringIndexType) stringIndexType = getWidenedType(stringIndexType); if (numberIndexType) @@ -12840,14 +14877,14 @@ var ts; return createAnonymousType(type.symbol, members, emptyArray, emptyArray, stringIndexType, numberIndexType); } function getWidenedType(type) { - if (type.flags & 786432) { - if (type.flags & (32 | 64)) { + if (type.flags & 786432 /* RequiresWidening */) { + if (type.flags & (32 /* Undefined */ | 64 /* Null */)) { return anyType; } - if (type.flags & 131072) { + if (type.flags & 131072 /* ObjectLiteral */) { return getWidenedTypeOfObjectLiteral(type); } - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { return getUnionType(ts.map(type.types, getWidenedType)); } if (isArrayType(type)) { @@ -12857,7 +14894,7 @@ var ts; return type; } function reportWideningErrorsInType(type) { - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { var errorReported = false; ts.forEach(type.types, function (t) { if (reportWideningErrorsInType(t)) { @@ -12869,11 +14906,11 @@ var ts; if (isArrayType(type)) { return reportWideningErrorsInType(type.typeArguments[0]); } - if (type.flags & 131072) { + if (type.flags & 131072 /* ObjectLiteral */) { var errorReported = false; ts.forEach(getPropertiesOfObjectType(type), function (p) { var t = getTypeOfSymbol(p); - if (t.flags & 262144) { + if (t.flags & 262144 /* ContainsUndefinedOrNull */) { if (!reportWideningErrorsInType(t)) { error(p.valueDeclaration, ts.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, p.name, typeToString(getWidenedType(t))); } @@ -12888,22 +14925,22 @@ var ts; var typeAsString = typeToString(getWidenedType(type)); var diagnostic; switch (declaration.kind) { - case 132: - case 131: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: diagnostic = ts.Diagnostics.Member_0_implicitly_has_an_1_type; break; - case 129: + case 129 /* Parameter */: diagnostic = declaration.dotDotDotToken ? ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : ts.Diagnostics.Parameter_0_implicitly_has_an_1_type; break; - case 200: - case 134: - case 133: - case 136: - case 137: - case 162: - case 163: + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: if (!declaration.name) { error(declaration, ts.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); return; @@ -12916,7 +14953,8 @@ var ts; error(declaration, diagnostic, ts.declarationNameToString(declaration.name), typeAsString); } function reportErrorsFromWidening(declaration, type) { - if (produceDiagnostics && compilerOptions.noImplicitAny && type.flags & 262144) { + if (produceDiagnostics && compilerOptions.noImplicitAny && type.flags & 262144 /* ContainsUndefinedOrNull */) { + // Report implicit any error within type if possible, otherwise report error on declaration if (!reportWideningErrorsInType(type)) { reportImplicitAnyError(declaration, type); } @@ -12981,7 +15019,7 @@ var ts; var count = 0; for (var i = 0; i < depth; i++) { var t = stack[i]; - if (t.flags & 4096 && t.target === target_2) { + if (t.flags & 4096 /* Reference */ && t.target === target_2) { count++; } } @@ -12993,12 +15031,19 @@ var ts; if (source === anyFunctionType) { return; } - if (target.flags & 512) { + if (target.flags & 512 /* TypeParameter */) { + // If target is a type parameter, make an inference var typeParameters = context.typeParameters; for (var i = 0; i < typeParameters.length; i++) { if (target === typeParameters[i]) { var inferences = context.inferences[i]; if (!inferences.isFixed) { + // Any inferences that are made to a type parameter in a union type are inferior + // to inferences made to a flat (non-union) type. This is because if we infer to + // T | string[], we really don't know if we should be inferring to T or not (because + // the correct constituent on the target side could be string[]). Therefore, we put + // such inferior inferences into a secondary bucket, and only use them if the primary + // bucket is empty. var candidates = inferiority ? inferences.secondary || (inferences.secondary = []) : inferences.primary || (inferences.primary = []); @@ -13010,20 +15055,22 @@ var ts; } } } - else if (source.flags & 4096 && target.flags & 4096 && source.target === target.target) { + else if (source.flags & 4096 /* Reference */ && target.flags & 4096 /* Reference */ && source.target === target.target) { + // If source and target are references to the same generic type, infer from type arguments var sourceTypes = source.typeArguments; var targetTypes = target.typeArguments; for (var i = 0; i < sourceTypes.length; i++) { inferFromTypes(sourceTypes[i], targetTypes[i]); } } - else if (target.flags & 16384) { + else if (target.flags & 16384 /* Union */) { var targetTypes = target.types; var typeParameterCount = 0; var typeParameter; + // First infer to each type in union that isn't a type parameter for (var _i = 0; _i < targetTypes.length; _i++) { var t = targetTypes[_i]; - if (t.flags & 512 && ts.contains(context.typeParameters, t)) { + if (t.flags & 512 /* TypeParameter */ && ts.contains(context.typeParameters, t)) { typeParameter = t; typeParameterCount++; } @@ -13031,21 +15078,24 @@ var ts; inferFromTypes(source, t); } } + // If union contains a single naked type parameter, make a secondary inference to that type parameter if (typeParameterCount === 1) { inferiority++; inferFromTypes(source, typeParameter); inferiority--; } } - else if (source.flags & 16384) { + else if (source.flags & 16384 /* Union */) { + // Source is a union type, infer from each consituent type var sourceTypes = source.types; for (var _a = 0; _a < sourceTypes.length; _a++) { var sourceType = sourceTypes[_a]; inferFromTypes(sourceType, target); } } - else if (source.flags & 48128 && (target.flags & (4096 | 8192) || - (target.flags & 32768) && target.symbol && target.symbol.flags & (8192 | 2048))) { + else if (source.flags & 48128 /* ObjectType */ && (target.flags & (4096 /* Reference */ | 8192 /* Tuple */) || + (target.flags & 32768 /* Anonymous */) && target.symbol && target.symbol.flags & (8192 /* Method */ | 2048 /* TypeLiteral */))) { + // If source is an object type, and target is a type reference, a tuple type, the type of a method, or a type literal, infer from members if (!isInProcess(source, target) && isWithinDepthLimit(source, sourceStack) && isWithinDepthLimit(target, targetStack)) { if (depth === 0) { sourceStack = []; @@ -13055,11 +15105,11 @@ var ts; targetStack[depth] = target; depth++; inferFromProperties(source, target); - inferFromSignatures(source, target, 0); - inferFromSignatures(source, target, 1); - inferFromIndexTypes(source, target, 0, 0); - inferFromIndexTypes(source, target, 1, 1); - inferFromIndexTypes(source, target, 0, 1); + inferFromSignatures(source, target, 0 /* Call */); + inferFromSignatures(source, target, 1 /* Construct */); + inferFromIndexTypes(source, target, 0 /* String */, 0 /* String */); + inferFromIndexTypes(source, target, 1 /* Number */, 1 /* Number */); + inferFromIndexTypes(source, target, 0 /* String */, 1 /* Number */); depth--; } } @@ -13108,19 +15158,28 @@ var ts; if (!inferredType) { var inferences = getInferenceCandidates(context, index); if (inferences.length) { + // Infer widened union or supertype, or the unknown type for no common supertype var unionOrSuperType = context.inferUnionTypes ? getUnionType(inferences) : getCommonSupertype(inferences); inferredType = unionOrSuperType ? getWidenedType(unionOrSuperType) : unknownType; inferenceSucceeded = !!unionOrSuperType; } else { + // Infer the empty object type when no inferences were made. It is important to remember that + // in this case, inference still succeeds, meaning there is no error for not having inference + // candidates. An inference error only occurs when there are *conflicting* candidates, i.e. + // candidates with no common supertype. inferredType = emptyObjectType; inferenceSucceeded = true; } + // Only do the constraint check if inference succeeded (to prevent cascading errors) if (inferenceSucceeded) { var constraint = getConstraintOfTypeParameter(context.typeParameters[index]); inferredType = constraint && !isTypeAssignableTo(inferredType, constraint) ? constraint : inferredType; } else if (context.failedTypeParameterIndex === undefined || context.failedTypeParameterIndex > index) { + // If inference failed, it is necessary to record the index of the failed type parameter (the one we are on). + // It might be that inference has already failed on a later type parameter on a previous call to inferTypeArguments. + // So if this failure is on preceding type parameter, this type parameter is the new failure index. context.failedTypeParameterIndex = index; } context.inferredTypes[index] = inferredType; @@ -13136,20 +15195,24 @@ var ts; function hasAncestor(node, kind) { return ts.getAncestor(node, kind) !== undefined; } + // EXPRESSION TYPE CHECKING function getResolvedSymbol(node) { var links = getNodeLinks(node); if (!links.resolvedSymbol) { - links.resolvedSymbol = (!ts.nodeIsMissing(node) && resolveName(node, node.text, 107455 | 1048576, ts.Diagnostics.Cannot_find_name_0, node)) || unknownSymbol; + links.resolvedSymbol = (!ts.nodeIsMissing(node) && resolveName(node, node.text, 107455 /* Value */ | 1048576 /* ExportValue */, ts.Diagnostics.Cannot_find_name_0, node)) || unknownSymbol; } return links.resolvedSymbol; } function isInTypeQuery(node) { + // TypeScript 1.0 spec (April 2014): 3.6.3 + // A type query consists of the keyword typeof followed by an expression. + // The expression is restricted to a single identifier or a sequence of identifiers separated by periods while (node) { switch (node.kind) { - case 144: + case 144 /* TypeQuery */: return true; - case 65: - case 126: + case 65 /* Identifier */: + case 126 /* QualifiedName */: node = node.parent; continue; default: @@ -13158,10 +15221,13 @@ var ts; } ts.Debug.fail("should not get here"); } + // For a union type, remove all constituent types that are of the given type kind (when isOfTypeKind is true) + // or not of the given type kind (when isOfTypeKind is false) function removeTypesFromUnionType(type, typeKind, isOfTypeKind, allowEmptyUnionResult) { - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { var types = type.types; if (ts.forEach(types, function (t) { return !!(t.flags & typeKind) === isOfTypeKind; })) { + // Above we checked if we have anything to remove, now use the opposite test to do the removal var narrowedType = getUnionType(ts.filter(types, function (t) { return !(t.flags & typeKind) === isOfTypeKind; })); if (allowEmptyUnionResult || narrowedType !== emptyObjectType) { return narrowedType; @@ -13169,6 +15235,8 @@ var ts; } } else if (allowEmptyUnionResult && !!(type.flags & typeKind) === isOfTypeKind) { + // Use getUnionType(emptyArray) instead of emptyObjectType in case the way empty union types + // are represented ever changes. return getUnionType(emptyArray); } return type; @@ -13176,6 +15244,7 @@ var ts; function hasInitializer(node) { return !!(node.initializer || ts.isBindingPattern(node.parent) && hasInitializer(node.parent.parent)); } + // Check if a given variable is assigned within a given syntax node function isVariableAssignedWithin(symbol, node) { var links = getNodeLinks(node); if (links.assignmentChecks) { @@ -13189,12 +15258,12 @@ var ts; } return links.assignmentChecks[symbol.id] = isAssignedIn(node); function isAssignedInBinaryExpression(node) { - if (node.operatorToken.kind >= 53 && node.operatorToken.kind <= 64) { + if (node.operatorToken.kind >= 53 /* FirstAssignment */ && node.operatorToken.kind <= 64 /* LastAssignment */) { var n = node.left; - while (n.kind === 161) { + while (n.kind === 161 /* ParenthesizedExpression */) { n = n.expression; } - if (n.kind === 65 && getResolvedSymbol(n) === symbol) { + if (n.kind === 65 /* Identifier */ && getResolvedSymbol(n) === symbol) { return true; } } @@ -13208,57 +15277,59 @@ var ts; } function isAssignedIn(node) { switch (node.kind) { - case 169: + case 169 /* BinaryExpression */: return isAssignedInBinaryExpression(node); - case 198: - case 152: + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: return isAssignedInVariableDeclaration(node); - case 150: - case 151: - case 153: - case 154: - case 155: - case 156: - case 157: - case 158: - case 160: - case 161: - case 167: - case 164: - case 165: - case 166: - case 168: - case 170: - case 173: - case 179: - case 180: - case 182: - case 183: - case 184: - case 185: - case 186: - case 187: - case 188: - case 191: - case 192: - case 193: - case 220: - case 221: - case 194: - case 195: - case 196: - case 223: + case 150 /* ObjectBindingPattern */: + case 151 /* ArrayBindingPattern */: + case 153 /* ArrayLiteralExpression */: + case 154 /* ObjectLiteralExpression */: + case 155 /* PropertyAccessExpression */: + case 156 /* ElementAccessExpression */: + case 157 /* CallExpression */: + case 158 /* NewExpression */: + case 160 /* TypeAssertionExpression */: + case 161 /* ParenthesizedExpression */: + case 167 /* PrefixUnaryExpression */: + case 164 /* DeleteExpression */: + case 165 /* TypeOfExpression */: + case 166 /* VoidExpression */: + case 168 /* PostfixUnaryExpression */: + case 170 /* ConditionalExpression */: + case 173 /* SpreadElementExpression */: + case 179 /* Block */: + case 180 /* VariableStatement */: + case 182 /* ExpressionStatement */: + case 183 /* IfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 191 /* ReturnStatement */: + case 192 /* WithStatement */: + case 193 /* SwitchStatement */: + case 220 /* CaseClause */: + case 221 /* DefaultClause */: + case 194 /* LabeledStatement */: + case 195 /* ThrowStatement */: + case 196 /* TryStatement */: + case 223 /* CatchClause */: return ts.forEachChild(node, isAssignedIn); } return false; } } function resolveLocation(node) { + // Resolve location from top down towards node if it is a context sensitive expression + // That helps in making sure not assigning types as any when resolved out of order var containerNodes = []; - for (var parent_3 = node.parent; parent_3; parent_3 = parent_3.parent) { - if ((ts.isExpression(parent_3) || ts.isObjectLiteralMethod(node)) && - isContextSensitive(parent_3)) { - containerNodes.unshift(parent_3); + for (var parent_4 = node.parent; parent_4; parent_4 = parent_4.parent) { + if ((ts.isExpression(parent_4) || ts.isObjectLiteralMethod(node)) && + isContextSensitive(parent_4)) { + containerNodes.unshift(parent_4); } } ts.forEach(containerNodes, function (node) { getTypeOfNode(node); }); @@ -13273,46 +15344,65 @@ var ts; } function getTypeOfSymbolAtLocation(symbol, node) { resolveLocation(node); + // Get the narrowed type of symbol at given location instead of just getting + // the type of the symbol. + // eg. + // function foo(a: string | number) { + // if (typeof a === "string") { + // a/**/ + // } + // } + // getTypeOfSymbol for a would return type of parameter symbol string | number + // Unless we provide location /**/, checker wouldn't know how to narrow the type + // By using getNarrowedTypeOfSymbol would return string since it would be able to narrow + // it by typeguard in the if true condition return getNarrowedTypeOfSymbol(symbol, node); } + // Get the narrowed type of a given symbol at a given location function getNarrowedTypeOfSymbol(symbol, node) { var type = getTypeOfSymbol(symbol); - if (node && symbol.flags & 3 && type.flags & (1 | 48128 | 16384 | 512)) { + // Only narrow when symbol is variable of type any or an object, union, or type parameter type + if (node && symbol.flags & 3 /* Variable */ && type.flags & (1 /* Any */ | 48128 /* ObjectType */ | 16384 /* Union */ | 512 /* TypeParameter */)) { loop: while (node.parent) { var child = node; node = node.parent; var narrowedType = type; switch (node.kind) { - case 183: + case 183 /* IfStatement */: + // In a branch of an if statement, narrow based on controlling expression if (child !== node.expression) { narrowedType = narrowType(type, node.expression, child === node.thenStatement); } break; - case 170: + case 170 /* ConditionalExpression */: + // In a branch of a conditional expression, narrow based on controlling condition if (child !== node.condition) { narrowedType = narrowType(type, node.condition, child === node.whenTrue); } break; - case 169: + case 169 /* BinaryExpression */: + // In the right operand of an && or ||, narrow based on left operand if (child === node.right) { - if (node.operatorToken.kind === 48) { + if (node.operatorToken.kind === 48 /* AmpersandAmpersandToken */) { narrowedType = narrowType(type, node.left, true); } - else if (node.operatorToken.kind === 49) { + else if (node.operatorToken.kind === 49 /* BarBarToken */) { narrowedType = narrowType(type, node.left, false); } } break; - case 227: - case 205: - case 200: - case 134: - case 133: - case 136: - case 137: - case 135: + case 227 /* SourceFile */: + case 205 /* ModuleDeclaration */: + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 135 /* Constructor */: + // Stop at the first containing function or module declaration break loop; } + // Use narrowed type if construct contains no assignments to variable if (narrowedType !== type) { if (isVariableAssignedWithin(symbol, node)) { break; @@ -13323,39 +15413,50 @@ var ts; } return type; function narrowTypeByEquality(type, expr, assumeTrue) { - if (expr.left.kind !== 165 || expr.right.kind !== 8) { + // Check that we have 'typeof ' on the left and string literal on the right + if (expr.left.kind !== 165 /* TypeOfExpression */ || expr.right.kind !== 8 /* StringLiteral */) { return type; } var left = expr.left; var right = expr.right; - if (left.expression.kind !== 65 || getResolvedSymbol(left.expression) !== symbol) { + if (left.expression.kind !== 65 /* Identifier */ || getResolvedSymbol(left.expression) !== symbol) { return type; } var typeInfo = primitiveTypeInfo[right.text]; - if (expr.operatorToken.kind === 31) { + if (expr.operatorToken.kind === 31 /* ExclamationEqualsEqualsToken */) { assumeTrue = !assumeTrue; } if (assumeTrue) { + // Assumed result is true. If check was not for a primitive type, remove all primitive types if (!typeInfo) { - return removeTypesFromUnionType(type, 258 | 132 | 8 | 1048576, true, false); + return removeTypesFromUnionType(type, 258 /* StringLike */ | 132 /* NumberLike */ | 8 /* Boolean */ | 1048576 /* ESSymbol */, + /*isOfTypeKind*/ true, false); } + // Check was for a primitive type, return that primitive type if it is a subtype if (isTypeSubtypeOf(typeInfo.type, type)) { return typeInfo.type; } + // Otherwise, remove all types that aren't of the primitive type kind. This can happen when the type is + // union of enum types and other types. return removeTypesFromUnionType(type, typeInfo.flags, false, false); } else { + // Assumed result is false. If check was for a primitive type, remove that primitive type if (typeInfo) { return removeTypesFromUnionType(type, typeInfo.flags, true, false); } + // Otherwise we don't have enough information to do anything. return type; } } function narrowTypeByAnd(type, expr, assumeTrue) { if (assumeTrue) { + // The assumed result is true, therefore we narrow assuming each operand to be true. return narrowType(narrowType(type, expr.left, true), expr.right, true); } else { + // The assumed result is false. This means either the first operand was false, or the first operand was true + // and the second operand was false. We narrow with those assumptions and union the two resulting types. return getUnionType([ narrowType(type, expr.left, false), narrowType(narrowType(type, expr.left, true), expr.right, false) @@ -13364,57 +15465,67 @@ var ts; } function narrowTypeByOr(type, expr, assumeTrue) { if (assumeTrue) { + // The assumed result is true. This means either the first operand was true, or the first operand was false + // and the second operand was true. We narrow with those assumptions and union the two resulting types. return getUnionType([ narrowType(type, expr.left, true), narrowType(narrowType(type, expr.left, false), expr.right, true) ]); } else { + // The assumed result is false, therefore we narrow assuming each operand to be false. return narrowType(narrowType(type, expr.left, false), expr.right, false); } } function narrowTypeByInstanceof(type, expr, assumeTrue) { - if (type.flags & 1 || !assumeTrue || expr.left.kind !== 65 || getResolvedSymbol(expr.left) !== symbol) { + // Check that type is not any, assumed result is true, and we have variable symbol on the left + if (type.flags & 1 /* Any */ || !assumeTrue || expr.left.kind !== 65 /* Identifier */ || getResolvedSymbol(expr.left) !== symbol) { return type; } + // Check that right operand is a function type with a prototype property var rightType = checkExpression(expr.right); if (!isTypeSubtypeOf(rightType, globalFunctionType)) { return type; } + // Target type is type of prototype property var prototypeProperty = getPropertyOfType(rightType, "prototype"); if (!prototypeProperty) { return type; } var targetType = getTypeOfSymbol(prototypeProperty); + // Narrow to target type if it is a subtype of current type if (isTypeSubtypeOf(targetType, type)) { return targetType; } - if (type.flags & 16384) { + // If current type is a union type, remove all constituents that aren't subtypes of target type + if (type.flags & 16384 /* Union */) { return getUnionType(ts.filter(type.types, function (t) { return isTypeSubtypeOf(t, targetType); })); } return type; } + // Narrow the given type based on the given expression having the assumed boolean value. The returned type + // will be a subtype or the same type as the argument. function narrowType(type, expr, assumeTrue) { switch (expr.kind) { - case 161: + case 161 /* ParenthesizedExpression */: return narrowType(type, expr.expression, assumeTrue); - case 169: + case 169 /* BinaryExpression */: var operator = expr.operatorToken.kind; - if (operator === 30 || operator === 31) { + if (operator === 30 /* EqualsEqualsEqualsToken */ || operator === 31 /* ExclamationEqualsEqualsToken */) { return narrowTypeByEquality(type, expr, assumeTrue); } - else if (operator === 48) { + else if (operator === 48 /* AmpersandAmpersandToken */) { return narrowTypeByAnd(type, expr, assumeTrue); } - else if (operator === 49) { + else if (operator === 49 /* BarBarToken */) { return narrowTypeByOr(type, expr, assumeTrue); } - else if (operator === 87) { + else if (operator === 87 /* InstanceOfKeyword */) { return narrowTypeByInstanceof(type, expr, assumeTrue); } break; - case 167: - if (expr.operator === 46) { + case 167 /* PrefixUnaryExpression */: + if (expr.operator === 46 /* ExclamationToken */) { return narrowType(type, expr.operand, !assumeTrue); } break; @@ -13424,10 +15535,16 @@ var ts; } function checkIdentifier(node) { var symbol = getResolvedSymbol(node); - if (symbol === argumentsSymbol && ts.getContainingFunction(node).kind === 163) { + // As noted in ECMAScript 6 language spec, arrow functions never have an arguments objects. + // Although in down-level emit of arrow function, we emit it using function expression which means that + // arguments objects will be bound to the inner object; emitting arrow function natively in ES6, arguments objects + // will be bound to non-arrow function that contain this arrow function. This results in inconsistent behavior. + // To avoid that we will give an error to users if they use arguments objects in arrow function so that they + // can explicitly bound arguments objects + if (symbol === argumentsSymbol && ts.getContainingFunction(node).kind === 163 /* ArrowFunction */) { error(node, ts.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_Consider_using_a_standard_function_expression); } - if (symbol.flags & 8388608 && !isInTypeQuery(node) && !isConstEnumOrConstEnumOnlyModule(resolveAlias(symbol))) { + if (symbol.flags & 8388608 /* Alias */ && !isInTypeQuery(node) && !isConstEnumOrConstEnumOnlyModule(resolveAlias(symbol))) { markAliasSymbolAsReferenced(symbol); } checkCollisionWithCapturedSuperVariable(node, node); @@ -13446,17 +15563,24 @@ var ts; return false; } function checkBlockScopedBindingCapturedInLoop(node, symbol) { - if (languageVersion >= 2 || - (symbol.flags & 2) === 0 || - symbol.valueDeclaration.parent.kind === 223) { + if (languageVersion >= 2 /* ES6 */ || + (symbol.flags & 2 /* BlockScopedVariable */) === 0 || + symbol.valueDeclaration.parent.kind === 223 /* CatchClause */) { return; } + // - check if binding is used in some function + // (stop the walk when reaching container of binding declaration) + // - if first check succeeded - check if variable is declared inside the loop + // nesting structure: + // (variable declaration or binding element) -> variable declaration list -> container var container = symbol.valueDeclaration; - while (container.kind !== 199) { + while (container.kind !== 199 /* VariableDeclarationList */) { container = container.parent; } + // get the parent of variable declaration list container = container.parent; - if (container.kind === 180) { + if (container.kind === 180 /* VariableStatement */) { + // if parent is variable statement - get its parent container = container.parent; } var inFunction = isInsideFunction(node.parent, container); @@ -13466,72 +15590,79 @@ var ts; if (inFunction) { grammarErrorOnFirstToken(current, ts.Diagnostics.Loop_contains_block_scoped_variable_0_referenced_by_a_function_in_the_loop_This_is_only_supported_in_ECMAScript_6_or_higher, ts.declarationNameToString(node)); } - getNodeLinks(symbol.valueDeclaration).flags |= 256; + // mark value declaration so during emit they can have a special handling + getNodeLinks(symbol.valueDeclaration).flags |= 256 /* BlockScopedBindingInLoop */; break; } current = current.parent; } } function captureLexicalThis(node, container) { - var classNode = container.parent && container.parent.kind === 201 ? container.parent : undefined; - getNodeLinks(node).flags |= 2; - if (container.kind === 132 || container.kind === 135) { - getNodeLinks(classNode).flags |= 4; + var classNode = container.parent && container.parent.kind === 201 /* ClassDeclaration */ ? container.parent : undefined; + getNodeLinks(node).flags |= 2 /* LexicalThis */; + if (container.kind === 132 /* PropertyDeclaration */ || container.kind === 135 /* Constructor */) { + getNodeLinks(classNode).flags |= 4 /* CaptureThis */; } else { - getNodeLinks(container).flags |= 4; + getNodeLinks(container).flags |= 4 /* CaptureThis */; } } function checkThisExpression(node) { + // Stop at the first arrow function so that we can + // tell whether 'this' needs to be captured. var container = ts.getThisContainer(node, true); var needToCaptureLexicalThis = false; - if (container.kind === 163) { + // Now skip arrow functions to get the "real" owner of 'this'. + if (container.kind === 163 /* ArrowFunction */) { container = ts.getThisContainer(container, false); - needToCaptureLexicalThis = (languageVersion < 2); + // When targeting es6, arrow function lexically bind "this" so we do not need to do the work of binding "this" in emitted code + needToCaptureLexicalThis = (languageVersion < 2 /* ES6 */); } switch (container.kind) { - case 205: + case 205 /* ModuleDeclaration */: error(node, ts.Diagnostics.this_cannot_be_referenced_in_a_module_body); + // do not return here so in case if lexical this is captured - it will be reflected in flags on NodeLinks break; - case 204: + case 204 /* EnumDeclaration */: error(node, ts.Diagnostics.this_cannot_be_referenced_in_current_location); + // do not return here so in case if lexical this is captured - it will be reflected in flags on NodeLinks break; - case 135: + case 135 /* Constructor */: if (isInConstructorArgumentInitializer(node, container)) { error(node, ts.Diagnostics.this_cannot_be_referenced_in_constructor_arguments); } break; - case 132: - case 131: - if (container.flags & 128) { + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + if (container.flags & 128 /* Static */) { error(node, ts.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer); } break; - case 127: + case 127 /* ComputedPropertyName */: error(node, ts.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name); break; } if (needToCaptureLexicalThis) { captureLexicalThis(node, container); } - var classNode = container.parent && container.parent.kind === 201 ? container.parent : undefined; + var classNode = container.parent && container.parent.kind === 201 /* ClassDeclaration */ ? container.parent : undefined; if (classNode) { var symbol = getSymbolOfNode(classNode); - return container.flags & 128 ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol); + return container.flags & 128 /* Static */ ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol); } return anyType; } function isInConstructorArgumentInitializer(node, constructorDecl) { for (var n = node; n && n !== constructorDecl; n = n.parent) { - if (n.kind === 129) { + if (n.kind === 129 /* Parameter */) { return true; } } return false; } function checkSuperExpression(node) { - var isCallExpression = node.parent.kind === 157 && node.parent.expression === node; - var enclosingClass = ts.getAncestor(node, 201); + var isCallExpression = node.parent.kind === 157 /* CallExpression */ && node.parent.expression === node; + var enclosingClass = ts.getAncestor(node, 201 /* ClassDeclaration */); var baseClass; if (enclosingClass && ts.getClassExtendsHeritageClauseElement(enclosingClass)) { var classType = getDeclaredTypeOfSymbol(getSymbolOfNode(enclosingClass)); @@ -13546,55 +15677,67 @@ var ts; var canUseSuperExpression = false; var needToCaptureLexicalThis; if (isCallExpression) { - canUseSuperExpression = container.kind === 135; + // TS 1.0 SPEC (April 2014): 4.8.1 + // Super calls are only permitted in constructors of derived classes + canUseSuperExpression = container.kind === 135 /* Constructor */; } else { + // TS 1.0 SPEC (April 2014) + // 'super' property access is allowed + // - In a constructor, instance member function, instance member accessor, or instance member variable initializer where this references a derived class instance + // - In a static member function or static member accessor + // super property access might appear in arrow functions with arbitrary deep nesting needToCaptureLexicalThis = false; - while (container && container.kind === 163) { + while (container && container.kind === 163 /* ArrowFunction */) { container = ts.getSuperContainer(container, true); - needToCaptureLexicalThis = true; + needToCaptureLexicalThis = languageVersion < 2 /* ES6 */; } - if (container && container.parent && container.parent.kind === 201) { - if (container.flags & 128) { + // topmost container must be something that is directly nested in the class declaration + if (container && container.parent && container.parent.kind === 201 /* ClassDeclaration */) { + if (container.flags & 128 /* Static */) { canUseSuperExpression = - container.kind === 134 || - container.kind === 133 || - container.kind === 136 || - container.kind === 137; + container.kind === 134 /* MethodDeclaration */ || + container.kind === 133 /* MethodSignature */ || + container.kind === 136 /* GetAccessor */ || + container.kind === 137 /* SetAccessor */; } else { canUseSuperExpression = - container.kind === 134 || - container.kind === 133 || - container.kind === 136 || - container.kind === 137 || - container.kind === 132 || - container.kind === 131 || - container.kind === 135; + container.kind === 134 /* MethodDeclaration */ || + container.kind === 133 /* MethodSignature */ || + container.kind === 136 /* GetAccessor */ || + container.kind === 137 /* SetAccessor */ || + container.kind === 132 /* PropertyDeclaration */ || + container.kind === 131 /* PropertySignature */ || + container.kind === 135 /* Constructor */; } } } if (canUseSuperExpression) { var returnType; - if ((container.flags & 128) || isCallExpression) { - getNodeLinks(node).flags |= 32; + if ((container.flags & 128 /* Static */) || isCallExpression) { + getNodeLinks(node).flags |= 32 /* SuperStatic */; returnType = getTypeOfSymbol(baseClass.symbol); } else { - getNodeLinks(node).flags |= 16; + getNodeLinks(node).flags |= 16 /* SuperInstance */; returnType = baseClass; } - if (container.kind === 135 && isInConstructorArgumentInitializer(node, container)) { + if (container.kind === 135 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) { + // issue custom error message for super property access in constructor arguments (to be aligned with old compiler) error(node, ts.Diagnostics.super_cannot_be_referenced_in_constructor_arguments); returnType = unknownType; } if (!isCallExpression && needToCaptureLexicalThis) { + // call expressions are allowed only in constructors so they should always capture correct 'this' + // super property access expressions can also appear in arrow functions - + // in this case they should also use correct lexical this captureLexicalThis(node.parent, container); } return returnType; } } - if (container.kind === 127) { + if (container && container.kind === 127 /* ComputedPropertyName */) { error(node, ts.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); } else if (isCallExpression) { @@ -13605,6 +15748,7 @@ var ts; } return unknownType; } + // Return contextual type of parameter or undefined if no contextual type is available function getContextuallyTypedParameterType(parameter) { if (isFunctionExpressionOrArrowFunction(parameter.parent)) { var func = parameter.parent; @@ -13617,6 +15761,7 @@ var ts; if (indexOfParameter < len) { return getTypeAtPosition(contextualSignature, indexOfParameter); } + // If last parameter is contextually rest parameter get its type if (indexOfParameter === (func.parameters.length - 1) && funcHasRestParameters && contextualSignature.hasRestParameter && func.parameters.length >= contextualSignature.parameters.length) { return getTypeOfSymbol(contextualSignature.parameters[contextualSignature.parameters.length - 1]); @@ -13626,13 +15771,18 @@ var ts; } return undefined; } + // In a variable, parameter or property declaration with a type annotation, the contextual type of an initializer + // expression is the type of the variable, parameter or property. Otherwise, in a parameter declaration of a + // contextually typed function expression, the contextual type of an initializer expression is the contextual type + // of the parameter. Otherwise, in a variable or parameter declaration with a binding pattern name, the contextual + // type of an initializer expression is the type implied by the binding pattern. function getContextualTypeForInitializerExpression(node) { var declaration = node.parent; if (node === declaration.initializer) { if (declaration.type) { return getTypeFromTypeNodeOrHeritageClauseElement(declaration.type); } - if (declaration.kind === 129) { + if (declaration.kind === 129 /* Parameter */) { var type = getContextuallyTypedParameterType(declaration); if (type) { return type; @@ -13647,9 +15797,13 @@ var ts; function getContextualTypeForReturnExpression(node) { var func = ts.getContainingFunction(node); if (func) { - if (func.type || func.kind === 135 || func.kind === 136 && getSetAccessorTypeAnnotationNode(ts.getDeclarationOfKind(func.symbol, 137))) { + // If the containing function has a return type annotation, is a constructor, or is a get accessor whose + // corresponding set accessor has a type annotation, return statements in the function are contextually typed + if (func.type || func.kind === 135 /* Constructor */ || func.kind === 136 /* GetAccessor */ && getSetAccessorTypeAnnotationNode(ts.getDeclarationOfKind(func.symbol, 137 /* SetAccessor */))) { return getReturnTypeOfSignature(getSignatureFromDeclaration(func)); } + // Otherwise, if the containing function is contextually typed by a function type with exactly one call signature + // and that call signature is non-generic, return statements are contextually typed by the return type of the signature var signature = getContextualSignatureForFunctionLikeDeclaration(func); if (signature) { return getReturnTypeOfSignature(signature); @@ -13657,6 +15811,7 @@ var ts; } return undefined; } + // In a typed function call, an argument or substitution expression is contextually typed by the type of the corresponding parameter. function getContextualTypeForArgument(callTarget, arg) { var args = getEffectiveCallArguments(callTarget); var argIndex = ts.indexOf(args, arg); @@ -13667,7 +15822,7 @@ var ts; return undefined; } function getContextualTypeForSubstitutionExpression(template, substitutionExpression) { - if (template.parent.kind === 159) { + if (template.parent.kind === 159 /* TaggedTemplateExpression */) { return getContextualTypeForArgument(template.parent, substitutionExpression); } return undefined; @@ -13675,12 +15830,15 @@ var ts; function getContextualTypeForBinaryOperand(node) { var binaryExpression = node.parent; var operator = binaryExpression.operatorToken.kind; - if (operator >= 53 && operator <= 64) { + if (operator >= 53 /* FirstAssignment */ && operator <= 64 /* LastAssignment */) { + // In an assignment expression, the right operand is contextually typed by the type of the left operand. if (node === binaryExpression.right) { return checkExpression(binaryExpression.left); } } - else if (operator === 49) { + else if (operator === 49 /* BarBarToken */) { + // When an || expression has a contextual type, the operands are contextually typed by that type. When an || + // expression has no contextual type, the right operand is contextually typed by the type of the left operand. var type = getContextualType(binaryExpression); if (!type && node === binaryExpression.right) { type = checkExpression(binaryExpression.left); @@ -13689,8 +15847,11 @@ var ts; } return undefined; } + // Apply a mapping function to a contextual type and return the resulting type. If the contextual type + // is a union type, the mapping function is applied to each constituent type and a union of the resulting + // types is returned. function applyToContextualType(type, mapper) { - if (!(type.flags & 16384)) { + if (!(type.flags & 16384 /* Union */)) { return mapper(type); } var types = type.types; @@ -13722,15 +15883,21 @@ var ts; function getIndexTypeOfContextualType(type, kind) { return applyToContextualType(type, function (t) { return getIndexTypeOfObjectOrUnionType(t, kind); }); } + // Return true if the given contextual type is a tuple-like type function contextualTypeIsTupleLikeType(type) { - return !!(type.flags & 16384 ? ts.forEach(type.types, isTupleLikeType) : isTupleLikeType(type)); + return !!(type.flags & 16384 /* Union */ ? ts.forEach(type.types, isTupleLikeType) : isTupleLikeType(type)); } + // Return true if the given contextual type provides an index signature of the given kind function contextualTypeHasIndexSignature(type, kind) { - return !!(type.flags & 16384 ? ts.forEach(type.types, function (t) { return getIndexTypeOfObjectOrUnionType(t, kind); }) : getIndexTypeOfObjectOrUnionType(type, kind)); + return !!(type.flags & 16384 /* Union */ ? ts.forEach(type.types, function (t) { return getIndexTypeOfObjectOrUnionType(t, kind); }) : getIndexTypeOfObjectOrUnionType(type, kind)); } + // In an object literal contextually typed by a type T, the contextual type of a property assignment is the type of + // the matching property in T, if one exists. Otherwise, it is the type of the numeric index signature in T, if one + // exists. Otherwise, it is the type of the string index signature in T, if one exists. function getContextualTypeForObjectLiteralMethod(node) { ts.Debug.assert(ts.isObjectLiteralMethod(node)); if (isInsideWithStatementBody(node)) { + // We cannot answer semantic questions within a with block, do not proceed any further return undefined; } return getContextualTypeForObjectLiteralElement(node); @@ -13740,34 +15907,45 @@ var ts; var type = getContextualType(objectLiteral); if (type) { if (!ts.hasDynamicName(element)) { + // For a (non-symbol) computed property, there is no reason to look up the name + // in the type. It will just be "__computed", which does not appear in any + // SymbolTable. var symbolName = getSymbolOfNode(element).name; var propertyType = getTypeOfPropertyOfContextualType(type, symbolName); if (propertyType) { return propertyType; } } - return isNumericName(element.name) && getIndexTypeOfContextualType(type, 1) || - getIndexTypeOfContextualType(type, 0); + return isNumericName(element.name) && getIndexTypeOfContextualType(type, 1 /* Number */) || + getIndexTypeOfContextualType(type, 0 /* String */); } return undefined; } + // In an array literal contextually typed by a type T, the contextual type of an element expression at index N is + // the type of the property with the numeric name N in T, if one exists. Otherwise, if T has a numeric index signature, + // it is the type of the numeric index signature in T. Otherwise, in ES6 and higher, the contextual type is the iterated + // type of T. function getContextualTypeForElementExpression(node) { var arrayLiteral = node.parent; var type = getContextualType(arrayLiteral); if (type) { var index = ts.indexOf(arrayLiteral.elements, node); return getTypeOfPropertyOfContextualType(type, "" + index) - || getIndexTypeOfContextualType(type, 1) - || (languageVersion >= 2 ? checkIteratedType(type, undefined) : undefined); + || getIndexTypeOfContextualType(type, 1 /* Number */) + || (languageVersion >= 2 /* ES6 */ ? checkIteratedType(type, undefined) : undefined); } return undefined; } + // In a contextually typed conditional expression, the true/false expressions are contextually typed by the same type. function getContextualTypeForConditionalOperand(node) { var conditional = node.parent; return node === conditional.whenTrue || node === conditional.whenFalse ? getContextualType(conditional) : undefined; } + // Return the contextual type for a given expression node. During overload resolution, a contextual type may temporarily + // be "pushed" onto a node using the contextualType property. function getContextualType(node) { if (isInsideWithStatementBody(node)) { + // We cannot answer semantic questions within a with block, do not proceed any further return undefined; } if (node.contextualType) { @@ -13775,38 +15953,40 @@ var ts; } var parent = node.parent; switch (parent.kind) { - case 198: - case 129: - case 132: - case 131: - case 152: + case 198 /* VariableDeclaration */: + case 129 /* Parameter */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 152 /* BindingElement */: return getContextualTypeForInitializerExpression(node); - case 163: - case 191: + case 163 /* ArrowFunction */: + case 191 /* ReturnStatement */: return getContextualTypeForReturnExpression(node); - case 157: - case 158: + case 157 /* CallExpression */: + case 158 /* NewExpression */: return getContextualTypeForArgument(parent, node); - case 160: + case 160 /* TypeAssertionExpression */: return getTypeFromTypeNodeOrHeritageClauseElement(parent.type); - case 169: + case 169 /* BinaryExpression */: return getContextualTypeForBinaryOperand(node); - case 224: + case 224 /* PropertyAssignment */: return getContextualTypeForObjectLiteralElement(parent); - case 153: + case 153 /* ArrayLiteralExpression */: return getContextualTypeForElementExpression(node); - case 170: + case 170 /* ConditionalExpression */: return getContextualTypeForConditionalOperand(node); - case 176: - ts.Debug.assert(parent.parent.kind === 171); + case 176 /* TemplateSpan */: + ts.Debug.assert(parent.parent.kind === 171 /* TemplateExpression */); return getContextualTypeForSubstitutionExpression(parent.parent, node); - case 161: + case 161 /* ParenthesizedExpression */: return getContextualType(parent); } return undefined; } + // If the given type is an object or union type, if that type has a single signature, and if + // that signature is non-generic, return the signature. Otherwise return undefined. function getNonGenericSignature(type) { - var signatures = getSignaturesOfObjectOrUnionType(type, 0); + var signatures = getSignaturesOfObjectOrUnionType(type, 0 /* Call */); if (signatures.length === 1) { var signature = signatures[0]; if (!signature.typeParameters) { @@ -13815,74 +15995,94 @@ var ts; } } function isFunctionExpressionOrArrowFunction(node) { - return node.kind === 162 || node.kind === 163; + return node.kind === 162 /* FunctionExpression */ || node.kind === 163 /* ArrowFunction */; } function getContextualSignatureForFunctionLikeDeclaration(node) { + // Only function expressions and arrow functions are contextually typed. return isFunctionExpressionOrArrowFunction(node) ? getContextualSignature(node) : undefined; } + // Return the contextual signature for a given expression node. A contextual type provides a + // contextual signature if it has a single call signature and if that call signature is non-generic. + // If the contextual type is a union type, get the signature from each type possible and if they are + // all identical ignoring their return type, the result is same signature but with return type as + // union type of return types from these signatures function getContextualSignature(node) { - ts.Debug.assert(node.kind !== 134 || ts.isObjectLiteralMethod(node)); + ts.Debug.assert(node.kind !== 134 /* MethodDeclaration */ || ts.isObjectLiteralMethod(node)); var type = ts.isObjectLiteralMethod(node) ? getContextualTypeForObjectLiteralMethod(node) : getContextualType(node); if (!type) { return undefined; } - if (!(type.flags & 16384)) { + if (!(type.flags & 16384 /* Union */)) { return getNonGenericSignature(type); } var signatureList; var types = type.types; for (var _i = 0; _i < types.length; _i++) { var current = types[_i]; + // The signature set of all constituent type with call signatures should match + // So number of signatures allowed is either 0 or 1 if (signatureList && - getSignaturesOfObjectOrUnionType(current, 0).length > 1) { + getSignaturesOfObjectOrUnionType(current, 0 /* Call */).length > 1) { return undefined; } var signature = getNonGenericSignature(current); if (signature) { if (!signatureList) { + // This signature will contribute to contextual union signature signatureList = [signature]; } else if (!compareSignatures(signatureList[0], signature, false, compareTypes)) { + // Signatures aren't identical, do not use return undefined; } else { + // Use this signature for contextual union signature signatureList.push(signature); } } } + // Result is union of signatures collected (return type is union of return types of this signature set) var result; if (signatureList) { result = cloneSignature(signatureList[0]); + // Clear resolved return type we possibly got from cloneSignature result.resolvedReturnType = undefined; result.unionSignatures = signatureList; } return result; } + // Presence of a contextual type mapper indicates inferential typing, except the identityMapper object is + // used as a special marker for other purposes. function isInferentialContext(mapper) { return mapper && mapper !== identityMapper; } + // A node is an assignment target if it is on the left hand side of an '=' token, if it is parented by a property + // assignment in an object literal that is an assignment target, or if it is parented by an array literal that is + // an assignment target. Examples include 'a = xxx', '{ p: a } = xxx', '[{ p: a}] = xxx'. function isAssignmentTarget(node) { var parent = node.parent; - if (parent.kind === 169 && parent.operatorToken.kind === 53 && parent.left === node) { + if (parent.kind === 169 /* BinaryExpression */ && parent.operatorToken.kind === 53 /* EqualsToken */ && parent.left === node) { return true; } - if (parent.kind === 224) { + if (parent.kind === 224 /* PropertyAssignment */) { return isAssignmentTarget(parent.parent); } - if (parent.kind === 153) { + if (parent.kind === 153 /* ArrayLiteralExpression */) { return isAssignmentTarget(parent); } return false; } function checkSpreadElementExpression(node, contextualMapper) { - var type = checkExpressionCached(node.expression, contextualMapper); - if (!isArrayLikeType(type)) { - error(node.expression, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(type)); - return unknownType; - } - return type; + // It is usually not safe to call checkExpressionCached if we can be contextually typing. + // You can tell that we are contextually typing because of the contextualMapper parameter. + // While it is true that a spread element can have a contextual type, it does not do anything + // with this type. It is neither affected by it, nor does it propagate it to its operand. + // So the fact that contextualMapper is passed is not important, because the operand of a spread + // element is not contextually typed. + var arrayOrIterableType = checkExpressionCached(node.expression, contextualMapper); + return checkIteratedTypeOrElementType(arrayOrIterableType, node.expression, false); } function checkArrayLiteral(node, contextualMapper) { var elements = node.elements; @@ -13891,16 +16091,12 @@ var ts; } var hasSpreadElement = false; var elementTypes = []; - ts.forEach(elements, function (e) { + for (var _i = 0; _i < elements.length; _i++) { + var e = elements[_i]; var type = checkExpression(e, contextualMapper); - if (e.kind === 173) { - elementTypes.push(getIndexTypeOfType(type, 1) || anyType); - hasSpreadElement = true; - } - else { - elementTypes.push(type); - } - }); + elementTypes.push(type); + hasSpreadElement = hasSpreadElement || e.kind === 173 /* SpreadElementExpression */; + } if (!hasSpreadElement) { var contextualType = getContextualType(node); if (contextualType && contextualTypeIsTupleLikeType(contextualType) || isAssignmentTarget(node)) { @@ -13910,19 +16106,44 @@ var ts; return createArrayType(getUnionType(elementTypes)); } function isNumericName(name) { - return name.kind === 127 ? isNumericComputedName(name) : isNumericLiteralName(name.text); + return name.kind === 127 /* ComputedPropertyName */ ? isNumericComputedName(name) : isNumericLiteralName(name.text); } function isNumericComputedName(name) { - return allConstituentTypesHaveKind(checkComputedPropertyName(name), 1 | 132); + // It seems odd to consider an expression of type Any to result in a numeric name, + // but this behavior is consistent with checkIndexedAccess + return allConstituentTypesHaveKind(checkComputedPropertyName(name), 1 /* Any */ | 132 /* NumberLike */); } function isNumericLiteralName(name) { + // The intent of numeric names is that + // - they are names with text in a numeric form, and that + // - setting properties/indexing with them is always equivalent to doing so with the numeric literal 'numLit', + // acquired by applying the abstract 'ToNumber' operation on the name's text. + // + // The subtlety is in the latter portion, as we cannot reliably say that anything that looks like a numeric literal is a numeric name. + // In fact, it is the case that the text of the name must be equal to 'ToString(numLit)' for this to hold. + // + // Consider the property name '"0xF00D"'. When one indexes with '0xF00D', they are actually indexing with the value of 'ToString(0xF00D)' + // according to the ECMAScript specification, so it is actually as if the user indexed with the string '"61453"'. + // Thus, the text of all numeric literals equivalent to '61543' such as '0xF00D', '0xf00D', '0170015', etc. are not valid numeric names + // because their 'ToString' representation is not equal to their original text. + // This is motivated by ECMA-262 sections 9.3.1, 9.8.1, 11.1.5, and 11.2.1. + // + // Here, we test whether 'ToString(ToNumber(name))' is exactly equal to 'name'. + // The '+' prefix operator is equivalent here to applying the abstract ToNumber operation. + // Applying the 'toString()' method on a number gives us the abstract ToString operation on a number. + // + // Note that this accepts the values 'Infinity', '-Infinity', and 'NaN', and that this is intentional. + // This is desired behavior, because when indexing with them as numeric entities, you are indexing + // with the strings '"Infinity"', '"-Infinity"', and '"NaN"' respectively. return (+name).toString() === name; } function checkComputedPropertyName(node) { var links = getNodeLinks(node.expression); if (!links.resolvedType) { links.resolvedType = checkExpression(node.expression); - if (!allConstituentTypesHaveKind(links.resolvedType, 1 | 132 | 258 | 1048576)) { + // This will allow types number, string, symbol or any. It will also allow enums, the unknown + // type, and any union of these types (like string | number). + if (!allConstituentTypesHaveKind(links.resolvedType, 1 /* Any */ | 132 /* NumberLike */ | 258 /* StringLike */ | 1048576 /* ESSymbol */)) { error(node, ts.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any); } else { @@ -13932,6 +16153,7 @@ var ts; return links.resolvedType; } function checkObjectLiteral(node, contextualMapper) { + // Grammar checking checkGrammarObjectLiteralExpression(node); var propertiesTable = {}; var propertiesArray = []; @@ -13940,24 +16162,24 @@ var ts; for (var _i = 0, _a = node.properties; _i < _a.length; _i++) { var memberDecl = _a[_i]; var member = memberDecl.symbol; - if (memberDecl.kind === 224 || - memberDecl.kind === 225 || + if (memberDecl.kind === 224 /* PropertyAssignment */ || + memberDecl.kind === 225 /* ShorthandPropertyAssignment */ || ts.isObjectLiteralMethod(memberDecl)) { var type = void 0; - if (memberDecl.kind === 224) { + if (memberDecl.kind === 224 /* PropertyAssignment */) { type = checkPropertyAssignment(memberDecl, contextualMapper); } - else if (memberDecl.kind === 134) { + else if (memberDecl.kind === 134 /* MethodDeclaration */) { type = checkObjectLiteralMethod(memberDecl, contextualMapper); } else { - ts.Debug.assert(memberDecl.kind === 225); - type = memberDecl.name.kind === 127 + ts.Debug.assert(memberDecl.kind === 225 /* ShorthandPropertyAssignment */); + type = memberDecl.name.kind === 127 /* ComputedPropertyName */ ? unknownType : checkExpression(memberDecl.name, contextualMapper); } typeFlags |= type.flags; - var prop = createSymbol(4 | 67108864 | member.flags, member.name); + var prop = createSymbol(4 /* Property */ | 67108864 /* Transient */ | member.flags, member.name); prop.declarations = member.declarations; prop.parent = member.parent; if (member.valueDeclaration) { @@ -13968,7 +16190,12 @@ var ts; member = prop; } else { - ts.Debug.assert(memberDecl.kind === 136 || memberDecl.kind === 137); + // TypeScript 1.0 spec (April 2014) + // A get accessor declaration is processed in the same manner as + // an ordinary function declaration(section 6.1) with no parameters. + // A set accessor declaration is processed in the same manner + // as an ordinary function declaration with a single parameter and a Void return type. + ts.Debug.assert(memberDecl.kind === 136 /* GetAccessor */ || memberDecl.kind === 137 /* SetAccessor */); checkAccessorDeclaration(memberDecl); } if (!ts.hasDynamicName(memberDecl)) { @@ -13976,17 +16203,21 @@ var ts; } propertiesArray.push(member); } - var stringIndexType = getIndexType(0); - var numberIndexType = getIndexType(1); + var stringIndexType = getIndexType(0 /* String */); + var numberIndexType = getIndexType(1 /* Number */); var result = createAnonymousType(node.symbol, propertiesTable, emptyArray, emptyArray, stringIndexType, numberIndexType); - result.flags |= 131072 | 524288 | (typeFlags & 262144); + result.flags |= 131072 /* ObjectLiteral */ | 524288 /* ContainsObjectLiteral */ | (typeFlags & 262144 /* ContainsUndefinedOrNull */); return result; function getIndexType(kind) { if (contextualType && contextualTypeHasIndexSignature(contextualType, kind)) { var propTypes = []; for (var i = 0; i < propertiesArray.length; i++) { var propertyDecl = node.properties[i]; - if (kind === 0 || isNumericName(propertyDecl.name)) { + if (kind === 0 /* String */ || isNumericName(propertyDecl.name)) { + // Do not call getSymbolOfNode(propertyDecl), as that will get the + // original symbol for the node. We actually want to get the symbol + // created by checkObjectLiteral, since that will be appropriately + // contextually typed and resolved. var type = getTypeOfSymbol(propertiesArray[i]); if (!ts.contains(propTypes, type)) { propTypes.push(type); @@ -14000,37 +16231,48 @@ var ts; return undefined; } } + // If a symbol is a synthesized symbol with no value declaration, we assume it is a property. Example of this are the synthesized + // '.prototype' property as well as synthesized tuple index properties. function getDeclarationKindFromSymbol(s) { - return s.valueDeclaration ? s.valueDeclaration.kind : 132; + return s.valueDeclaration ? s.valueDeclaration.kind : 132 /* PropertyDeclaration */; } function getDeclarationFlagsFromSymbol(s) { - return s.valueDeclaration ? ts.getCombinedNodeFlags(s.valueDeclaration) : s.flags & 134217728 ? 16 | 128 : 0; + return s.valueDeclaration ? ts.getCombinedNodeFlags(s.valueDeclaration) : s.flags & 134217728 /* Prototype */ ? 16 /* Public */ | 128 /* Static */ : 0; } function checkClassPropertyAccess(node, left, type, prop) { var flags = getDeclarationFlagsFromSymbol(prop); - if (!(flags & (32 | 64))) { + // Public properties are always accessible + if (!(flags & (32 /* Private */ | 64 /* Protected */))) { return; } - var enclosingClassDeclaration = ts.getAncestor(node, 201); + // Property is known to be private or protected at this point + // Get the declaring and enclosing class instance types + var enclosingClassDeclaration = ts.getAncestor(node, 201 /* ClassDeclaration */); var enclosingClass = enclosingClassDeclaration ? getDeclaredTypeOfSymbol(getSymbolOfNode(enclosingClassDeclaration)) : undefined; var declaringClass = getDeclaredTypeOfSymbol(prop.parent); - if (flags & 32) { + // Private property is accessible if declaring and enclosing class are the same + if (flags & 32 /* Private */) { if (declaringClass !== enclosingClass) { error(node, ts.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1, symbolToString(prop), typeToString(declaringClass)); } return; } - if (left.kind === 91) { + // Property is known to be protected at this point + // All protected properties of a supertype are accessible in a super access + if (left.kind === 91 /* SuperKeyword */) { return; } + // A protected property is accessible in the declaring class and classes derived from it if (!enclosingClass || !hasBaseType(enclosingClass, declaringClass)) { error(node, ts.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, symbolToString(prop), typeToString(declaringClass)); return; } - if (flags & 128) { + // No further restrictions for static properties + if (flags & 128 /* Static */) { return; } - if (!(getTargetType(type).flags & (1024 | 2048) && hasBaseType(type, enclosingClass))) { + // An instance property must be accessed through an instance of the enclosing class + if (!(getTargetType(type).flags & (1024 /* Class */ | 2048 /* Interface */) && hasBaseType(type, enclosingClass))) { error(node, ts.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1, symbolToString(prop), typeToString(enclosingClass)); } } @@ -14047,6 +16289,7 @@ var ts; if (type !== anyType) { var apparentType = getApparentType(getWidenedType(type)); if (apparentType === unknownType) { + // handle cases when type is Type parameter with invalid constraint return unknownType; } var prop = getPropertyOfType(apparentType, right.text); @@ -14057,8 +16300,15 @@ var ts; return unknownType; } getNodeLinks(node).resolvedSymbol = prop; - if (prop.parent && prop.parent.flags & 32) { - if (left.kind === 91 && getDeclarationKindFromSymbol(prop) !== 134) { + if (prop.parent && prop.parent.flags & 32 /* Class */) { + // TS 1.0 spec (April 2014): 4.8.2 + // - In a constructor, instance member function, instance member accessor, or + // instance member variable initializer where this references a derived class instance, + // a super property access is permitted and must specify a public instance member function of the base class. + // - In a static member function or static member accessor + // where this references the constructor function object of a derived class, + // a super property access is permitted and must specify a public static member function of the base class. + if (left.kind === 91 /* SuperKeyword */ && getDeclarationKindFromSymbol(prop) !== 134 /* MethodDeclaration */) { error(right, ts.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword); } else { @@ -14070,14 +16320,14 @@ var ts; return anyType; } function isValidPropertyAccess(node, propertyName) { - var left = node.kind === 155 + var left = node.kind === 155 /* PropertyAccessExpression */ ? node.expression : node.left; var type = checkExpressionOrQualifiedName(left); if (type !== unknownType && type !== anyType) { var prop = getPropertyOfType(getWidenedType(type), propertyName); - if (prop && prop.parent && prop.parent.flags & 32) { - if (left.kind === 91 && getDeclarationKindFromSymbol(prop) !== 134) { + if (prop && prop.parent && prop.parent.flags & 32 /* Class */) { + if (left.kind === 91 /* SuperKeyword */ && getDeclarationKindFromSymbol(prop) !== 134 /* MethodDeclaration */) { return false; } else { @@ -14090,9 +16340,10 @@ var ts; return true; } function checkIndexedAccess(node) { + // Grammar checking if (!node.argumentExpression) { var sourceFile = getSourceFile(node); - if (node.parent.kind === 158 && node.parent.expression === node) { + if (node.parent.kind === 158 /* NewExpression */ && node.parent.expression === node) { var start = ts.skipTrivia(sourceFile.text, node.expression.end); var end = node.end; grammarErrorAtPos(sourceFile, start, end - start, ts.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead); @@ -14103,6 +16354,7 @@ var ts; grammarErrorAtPos(sourceFile, start, end - start, ts.Diagnostics.Expression_expected); } } + // Obtain base constraint such that we can bail out if the constraint is an unknown type var objectType = getApparentType(checkExpression(node.expression)); var indexType = node.argumentExpression ? checkExpression(node.argumentExpression) : unknownType; if (objectType === unknownType) { @@ -14110,10 +16362,19 @@ var ts; } var isConstEnum = isConstEnumObjectType(objectType); if (isConstEnum && - (!node.argumentExpression || node.argumentExpression.kind !== 8)) { + (!node.argumentExpression || node.argumentExpression.kind !== 8 /* StringLiteral */)) { error(node.argumentExpression, ts.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal); return unknownType; } + // TypeScript 1.0 spec (April 2014): 4.10 Property Access + // - If IndexExpr is a string literal or a numeric literal and ObjExpr's apparent type has a property with the name + // given by that literal(converted to its string representation in the case of a numeric literal), the property access is of the type of that property. + // - Otherwise, if ObjExpr's apparent type has a numeric index signature and IndexExpr is of type Any, the Number primitive type, or an enum type, + // the property access is of the type of that index signature. + // - Otherwise, if ObjExpr's apparent type has a string index signature and IndexExpr is of type Any, the String or Number primitive type, or an enum type, + // the property access is of the type of that index signature. + // - Otherwise, if IndexExpr is of type Any, the String or Number primitive type, or an enum type, the property access is of type Any. + // See if we can index as a property. if (node.argumentExpression) { var name_6 = getPropertyNameForIndexedAccess(node.argumentExpression, indexType); if (name_6 !== undefined) { @@ -14128,27 +16389,38 @@ var ts; } } } - if (allConstituentTypesHaveKind(indexType, 1 | 258 | 132 | 1048576)) { - if (allConstituentTypesHaveKind(indexType, 1 | 132)) { - var numberIndexType = getIndexTypeOfType(objectType, 1); + // Check for compatible indexer types. + if (allConstituentTypesHaveKind(indexType, 1 /* Any */ | 258 /* StringLike */ | 132 /* NumberLike */ | 1048576 /* ESSymbol */)) { + // Try to use a number indexer. + if (allConstituentTypesHaveKind(indexType, 1 /* Any */ | 132 /* NumberLike */)) { + var numberIndexType = getIndexTypeOfType(objectType, 1 /* Number */); if (numberIndexType) { return numberIndexType; } } - var stringIndexType = getIndexTypeOfType(objectType, 0); + // Try to use string indexing. + var stringIndexType = getIndexTypeOfType(objectType, 0 /* String */); if (stringIndexType) { return stringIndexType; } + // Fall back to any. if (compilerOptions.noImplicitAny && !compilerOptions.suppressImplicitAnyIndexErrors && objectType !== anyType) { error(node, ts.Diagnostics.Index_signature_of_object_type_implicitly_has_an_any_type); } return anyType; } + // REVIEW: Users should know the type that was actually used. error(node, ts.Diagnostics.An_index_expression_argument_must_be_of_type_string_number_symbol_or_any); return unknownType; } + /** + * If indexArgumentExpression is a string literal or number literal, returns its text. + * If indexArgumentExpression is a well known symbol, returns the property name corresponding + * to this symbol, as long as it is a proper symbol reference. + * Otherwise, returns undefined. + */ function getPropertyNameForIndexedAccess(indexArgumentExpression, indexArgumentType) { - if (indexArgumentExpression.kind === 8 || indexArgumentExpression.kind === 7) { + if (indexArgumentExpression.kind === 8 /* StringLiteral */ || indexArgumentExpression.kind === 7 /* NumericLiteral */) { return indexArgumentExpression.text; } if (checkThatExpressionIsProperSymbolReference(indexArgumentExpression, indexArgumentType, false)) { @@ -14157,19 +16429,30 @@ var ts; } return undefined; } + /** + * A proper symbol reference requires the following: + * 1. The property access denotes a property that exists + * 2. The expression is of the form Symbol. + * 3. The property access is of the primitive type symbol. + * 4. Symbol in this context resolves to the global Symbol object + */ function checkThatExpressionIsProperSymbolReference(expression, expressionType, reportError) { if (expressionType === unknownType) { + // There is already an error, so no need to report one. return false; } if (!ts.isWellKnownSymbolSyntactically(expression)) { return false; } - if ((expressionType.flags & 1048576) === 0) { + // Make sure the property type is the primitive symbol type + if ((expressionType.flags & 1048576 /* ESSymbol */) === 0) { if (reportError) { error(expression, ts.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol, ts.getTextOfNode(expression)); } return false; } + // The name is Symbol., so make sure Symbol actually resolves to the + // global Symbol object var leftHandSide = expression.expression; var leftHandSideSymbol = getResolvedSymbol(leftHandSide); if (!leftHandSideSymbol) { @@ -14177,6 +16460,7 @@ var ts; } var globalESSymbol = getGlobalESSymbolConstructorSymbol(); if (!globalESSymbol) { + // Already errored when we tried to look up the symbol return false; } if (leftHandSideSymbol !== globalESSymbol) { @@ -14188,7 +16472,7 @@ var ts; return true; } function resolveUntypedCall(node) { - if (node.kind === 159) { + if (node.kind === 159 /* TaggedTemplateExpression */) { checkExpression(node.template); } else { @@ -14202,6 +16486,14 @@ var ts; resolveUntypedCall(node); return unknownSignature; } + // Re-order candidate signatures into the result array. Assumes the result array to be empty. + // The candidate list orders groups in reverse, but within a group signatures are kept in declaration order + // A nit here is that we reorder only signatures that belong to the same symbol, + // so order how inherited signatures are processed is still preserved. + // interface A { (x: string): void } + // interface B extends A { (x: 'foo'): string } + // let b: B; + // b('foo') // <- here overloads should be processed as [(x:'foo'): string, (x: string): void] function reorderCandidates(signatures, result) { var lastParent; var lastSymbol; @@ -14213,24 +16505,31 @@ var ts; for (var _i = 0; _i < signatures.length; _i++) { var signature = signatures[_i]; var symbol = signature.declaration && getSymbolOfNode(signature.declaration); - var parent_4 = signature.declaration && signature.declaration.parent; + var parent_5 = signature.declaration && signature.declaration.parent; if (!lastSymbol || symbol === lastSymbol) { - if (lastParent && parent_4 === lastParent) { + if (lastParent && parent_5 === lastParent) { index++; } else { - lastParent = parent_4; + lastParent = parent_5; index = cutoffIndex; } } else { + // current declaration belongs to a different symbol + // set cutoffIndex so re-orderings in the future won't change result set from 0 to cutoffIndex index = cutoffIndex = result.length; - lastParent = parent_4; + lastParent = parent_5; } lastSymbol = symbol; + // specialized signatures always need to be placed before non-specialized signatures regardless + // of the cutoff position; see GH#1133 if (signature.hasStringLiterals) { specializedIndex++; spliceIndex = specializedIndex; + // The cutoff index always needs to be greater than or equal to the specialized signature index + // in order to prevent non-specialized signatures from being added before a specialized + // signature. cutoffIndex++; } else { @@ -14241,59 +16540,76 @@ var ts; } function getSpreadArgumentIndex(args) { for (var i = 0; i < args.length; i++) { - if (args[i].kind === 173) { + if (args[i].kind === 173 /* SpreadElementExpression */) { return i; } } return -1; } function hasCorrectArity(node, args, signature) { - var adjustedArgCount; - var typeArguments; - var callIsIncomplete; - if (node.kind === 159) { + var adjustedArgCount; // Apparent number of arguments we will have in this call + var typeArguments; // Type arguments (undefined if none) + var callIsIncomplete; // In incomplete call we want to be lenient when we have too few arguments + if (node.kind === 159 /* TaggedTemplateExpression */) { var tagExpression = node; + // Even if the call is incomplete, we'll have a missing expression as our last argument, + // so we can say the count is just the arg list length adjustedArgCount = args.length; typeArguments = undefined; - if (tagExpression.template.kind === 171) { + if (tagExpression.template.kind === 171 /* TemplateExpression */) { + // If a tagged template expression lacks a tail literal, the call is incomplete. + // Specifically, a template only can end in a TemplateTail or a Missing literal. var templateExpression = tagExpression.template; var lastSpan = ts.lastOrUndefined(templateExpression.templateSpans); - ts.Debug.assert(lastSpan !== undefined); + ts.Debug.assert(lastSpan !== undefined); // we should always have at least one span. callIsIncomplete = ts.nodeIsMissing(lastSpan.literal) || !!lastSpan.literal.isUnterminated; } else { + // If the template didn't end in a backtick, or its beginning occurred right prior to EOF, + // then this might actually turn out to be a TemplateHead in the future; + // so we consider the call to be incomplete. var templateLiteral = tagExpression.template; - ts.Debug.assert(templateLiteral.kind === 10); + ts.Debug.assert(templateLiteral.kind === 10 /* NoSubstitutionTemplateLiteral */); callIsIncomplete = !!templateLiteral.isUnterminated; } } else { var callExpression = node; if (!callExpression.arguments) { - ts.Debug.assert(callExpression.kind === 158); + // This only happens when we have something of the form: 'new C' + ts.Debug.assert(callExpression.kind === 158 /* NewExpression */); return signature.minArgumentCount === 0; } + // For IDE scenarios we may have an incomplete call, so a trailing comma is tantamount to adding another argument. adjustedArgCount = callExpression.arguments.hasTrailingComma ? args.length + 1 : args.length; + // If we are missing the close paren, the call is incomplete. callIsIncomplete = callExpression.arguments.end === callExpression.end; typeArguments = callExpression.typeArguments; } + // If the user supplied type arguments, but the number of type arguments does not match + // the declared number of type parameters, the call has an incorrect arity. var hasRightNumberOfTypeArgs = !typeArguments || (signature.typeParameters && typeArguments.length === signature.typeParameters.length); if (!hasRightNumberOfTypeArgs) { return false; } + // If spread arguments are present, check that they correspond to a rest parameter. If so, no + // further checking is necessary. var spreadArgIndex = getSpreadArgumentIndex(args); if (spreadArgIndex >= 0) { return signature.hasRestParameter && spreadArgIndex >= signature.parameters.length - 1; } + // Too many arguments implies incorrect arity. if (!signature.hasRestParameter && adjustedArgCount > signature.parameters.length) { return false; } + // If the call is incomplete, we should skip the lower bound check. var hasEnoughArguments = adjustedArgCount >= signature.minArgumentCount; return callIsIncomplete || hasEnoughArguments; } + // If type has a single call signature and no other members, return that signature. Otherwise, return undefined. function getSingleCallSignature(type) { - if (type.flags & 48128) { + if (type.flags & 48128 /* ObjectType */) { var resolved = resolveObjectOrUnionTypeMembers(type); if (resolved.callSignatures.length === 1 && resolved.constructSignatures.length === 0 && resolved.properties.length === 0 && !resolved.stringIndexType && !resolved.numberIndexType) { @@ -14302,9 +16618,11 @@ var ts; } return undefined; } + // Instantiate a generic signature in the context of a non-generic signature (section 3.8.5 in TypeScript spec) function instantiateSignatureInContextOf(signature, contextualSignature, contextualMapper) { var context = createInferenceContext(signature.typeParameters, true); forEachMatchingParameterType(contextualSignature, signature, function (source, target) { + // Type parameters from outer context referenced by source type are fixed by instantiation of the source type inferTypes(context, instantiateType(source, contextualMapper), target); }); return getSignatureInstantiation(signature, getInferredTypes(context)); @@ -14312,34 +16630,54 @@ var ts; function inferTypeArguments(signature, args, excludeArgument, context) { var typeParameters = signature.typeParameters; var inferenceMapper = createInferenceMapper(context); + // Clear out all the inference results from the last time inferTypeArguments was called on this context for (var i = 0; i < typeParameters.length; i++) { + // As an optimization, we don't have to clear (and later recompute) inferred types + // for type parameters that have already been fixed on the previous call to inferTypeArguments. + // It would be just as correct to reset all of them. But then we'd be repeating the same work + // for the type parameters that were fixed, namely the work done by getInferredType. if (!context.inferences[i].isFixed) { context.inferredTypes[i] = undefined; } } + // On this call to inferTypeArguments, we may get more inferences for certain type parameters that were not + // fixed last time. This means that a type parameter that failed inference last time may succeed this time, + // or vice versa. Therefore, the failedTypeParameterIndex is useless if it points to an unfixed type parameter, + // because it may change. So here we reset it. However, getInferredType will not revisit any type parameters + // that were previously fixed. So if a fixed type parameter failed previously, it will fail again because + // it will contain the exact same set of inferences. So if we reset the index from a fixed type parameter, + // we will lose information that we won't recover this time around. if (context.failedTypeParameterIndex !== undefined && !context.inferences[context.failedTypeParameterIndex].isFixed) { context.failedTypeParameterIndex = undefined; } + // We perform two passes over the arguments. In the first pass we infer from all arguments, but use + // wildcards for all context sensitive function expressions. for (var i = 0; i < args.length; i++) { var arg = args[i]; - if (arg.kind !== 175) { - var paramType = getTypeAtPosition(signature, arg.kind === 173 ? -1 : i); + if (arg.kind !== 175 /* OmittedExpression */) { + var paramType = getTypeAtPosition(signature, i); var argType = void 0; - if (i === 0 && args[i].parent.kind === 159) { + if (i === 0 && args[i].parent.kind === 159 /* TaggedTemplateExpression */) { argType = globalTemplateStringsArrayType; } else { + // For context sensitive arguments we pass the identityMapper, which is a signal to treat all + // context sensitive function expressions as wildcards var mapper = excludeArgument && excludeArgument[i] !== undefined ? identityMapper : inferenceMapper; argType = checkExpressionWithContextualType(arg, paramType, mapper); } inferTypes(context, argType, paramType); } } + // In the second pass we visit only context sensitive arguments, and only those that aren't excluded, this + // time treating function expressions normally (which may cause previously inferred type arguments to be fixed + // as we construct types for contextually typed parameters) if (excludeArgument) { for (var i = 0; i < args.length; i++) { + // No need to check for omitted args and template expressions, their exlusion value is always undefined if (excludeArgument[i] === false) { var arg = args[i]; - var paramType = getTypeAtPosition(signature, arg.kind === 173 ? -1 : i); + var paramType = getTypeAtPosition(signature, i); inferTypes(context, checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType); } } @@ -14352,8 +16690,9 @@ var ts; for (var i = 0; i < typeParameters.length; i++) { var typeArgNode = typeArguments[i]; var typeArgument = getTypeFromTypeNodeOrHeritageClauseElement(typeArgNode); + // Do not push on this array! It has a preallocated length typeArgumentResultTypes[i] = typeArgument; - if (typeArgumentsAreAssignable) { + if (typeArgumentsAreAssignable /* so far */) { var constraint = getConstraintOfTypeParameter(typeParameters[i]); if (constraint) { typeArgumentsAreAssignable = checkTypeAssignableTo(typeArgument, constraint, reportErrors ? typeArgNode : undefined, ts.Diagnostics.Type_0_does_not_satisfy_the_constraint_1); @@ -14365,11 +16704,15 @@ var ts; function checkApplicableSignature(node, args, signature, relation, excludeArgument, reportErrors) { for (var i = 0; i < args.length; i++) { var arg = args[i]; - if (arg.kind !== 175) { - var paramType = getTypeAtPosition(signature, arg.kind === 173 ? -1 : i); - var argType = i === 0 && node.kind === 159 ? globalTemplateStringsArrayType : - arg.kind === 8 && !reportErrors ? getStringLiteralType(arg) : + if (arg.kind !== 175 /* OmittedExpression */) { + // Check spread elements against rest type (from arity check we know spread argument corresponds to a rest parameter) + var paramType = getTypeAtPosition(signature, i); + // A tagged template expression provides a special first argument, and string literals get string literal types + // unless we're reporting errors + var argType = i === 0 && node.kind === 159 /* TaggedTemplateExpression */ ? globalTemplateStringsArrayType : + arg.kind === 8 /* StringLiteral */ && !reportErrors ? getStringLiteralType(arg) : checkExpressionWithContextualType(arg, paramType, excludeArgument && excludeArgument[i] ? identityMapper : undefined); + // Use argument expression as error location when reporting errors if (!checkTypeRelatedTo(argType, paramType, relation, reportErrors ? arg : undefined, ts.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1)) { return false; } @@ -14377,12 +16720,19 @@ var ts; } return true; } + /** + * Returns the effective arguments for an expression that works like a function invocation. + * + * If 'node' is a CallExpression or a NewExpression, then its argument list is returned. + * If 'node' is a TaggedTemplateExpression, a new argument list is constructed from the substitution + * expressions, where the first element of the list is the template for error reporting purposes. + */ function getEffectiveCallArguments(node) { var args; - if (node.kind === 159) { + if (node.kind === 159 /* TaggedTemplateExpression */) { var template = node.template; args = [template]; - if (template.kind === 171) { + if (template.kind === 171 /* TemplateExpression */) { ts.forEach(template.templateSpans, function (span) { args.push(span.expression); }); @@ -14393,32 +16743,56 @@ var ts; } return args; } + /** + * In a 'super' call, type arguments are not provided within the CallExpression node itself. + * Instead, they must be fetched from the class declaration's base type node. + * + * If 'node' is a 'super' call (e.g. super(...), new super(...)), then we attempt to fetch + * the type arguments off the containing class's first heritage clause (if one exists). Note that if + * type arguments are supplied on the 'super' call, they are ignored (though this is syntactically incorrect). + * + * In all other cases, the call's explicit type arguments are returned. + */ function getEffectiveTypeArguments(callExpression) { - if (callExpression.expression.kind === 91) { - var containingClass = ts.getAncestor(callExpression, 201); + if (callExpression.expression.kind === 91 /* SuperKeyword */) { + var containingClass = ts.getAncestor(callExpression, 201 /* ClassDeclaration */); var baseClassTypeNode = containingClass && ts.getClassExtendsHeritageClauseElement(containingClass); return baseClassTypeNode && baseClassTypeNode.typeArguments; } else { + // Ordinary case - simple function invocation. return callExpression.typeArguments; } } function resolveCall(node, signatures, candidatesOutArray) { - var isTaggedTemplate = node.kind === 159; + var isTaggedTemplate = node.kind === 159 /* TaggedTemplateExpression */; var typeArguments; if (!isTaggedTemplate) { typeArguments = getEffectiveTypeArguments(node); - if (node.expression.kind !== 91) { + // We already perform checking on the type arguments on the class declaration itself. + if (node.expression.kind !== 91 /* SuperKeyword */) { ts.forEach(typeArguments, checkSourceElement); } } var candidates = candidatesOutArray || []; + // reorderCandidates fills up the candidates array directly reorderCandidates(signatures, candidates); if (!candidates.length) { error(node, ts.Diagnostics.Supplied_parameters_do_not_match_any_signature_of_call_target); return resolveErrorCall(node); } var args = getEffectiveCallArguments(node); + // The following applies to any value of 'excludeArgument[i]': + // - true: the argument at 'i' is susceptible to a one-time permanent contextual typing. + // - undefined: the argument at 'i' is *not* susceptible to permanent contextual typing. + // - false: the argument at 'i' *was* and *has been* permanently contextually typed. + // + // The idea is that we will perform type argument inference & assignability checking once + // without using the susceptible parameters that are functions, and once more for each of those + // parameters, contextually typing each as we go along. + // + // For a tagged template, then the first argument be 'undefined' if necessary + // because it represents a TemplateStringsArray. var excludeArgument; for (var i = isTaggedTemplate ? 1 : 0; i < args.length; i++) { if (isContextSensitive(args[i])) { @@ -14428,14 +16802,46 @@ var ts; excludeArgument[i] = true; } } + // The following variables are captured and modified by calls to chooseOverload. + // If overload resolution or type argument inference fails, we want to report the + // best error possible. The best error is one which says that an argument was not + // assignable to a parameter. This implies that everything else about the overload + // was fine. So if there is any overload that is only incorrect because of an + // argument, we will report an error on that one. + // + // function foo(s: string) {} + // function foo(n: number) {} // Report argument error on this overload + // function foo() {} + // foo(true); + // + // If none of the overloads even made it that far, there are two possibilities. + // There was a problem with type arguments for some overload, in which case + // report an error on that. Or none of the overloads even had correct arity, + // in which case give an arity error. + // + // function foo(x: T, y: T) {} // Report type argument inference error + // function foo() {} + // foo(0, true); + // var candidateForArgumentError; var candidateForTypeArgumentError; var resultOfFailedInference; var result; + // Section 4.12.1: + // if the candidate list contains one or more signatures for which the type of each argument + // expression is a subtype of each corresponding parameter type, the return type of the first + // of those signatures becomes the return type of the function call. + // Otherwise, the return type of the first signature in the candidate list becomes the return + // type of the function call. + // + // Whether the call is an error is determined by assignability of the arguments. The subtype pass + // is just important for choosing the best signature. So in the case where there is only one + // signature, the subtype pass is useless. So skipping it is an optimization. if (candidates.length > 1) { result = chooseOverload(candidates, subtypeRelation); } if (!result) { + // Reinitialize these pointers for round two candidateForArgumentError = undefined; candidateForTypeArgumentError = undefined; resultOfFailedInference = undefined; @@ -14444,7 +16850,16 @@ var ts; if (result) { return result; } + // No signatures were applicable. Now report errors based on the last applicable signature with + // no arguments excluded from assignability checks. + // If candidate is undefined, it means that no candidates had a suitable arity. In that case, + // skip the checkApplicableSignature check. if (candidateForArgumentError) { + // excludeArgument is undefined, in this case also equivalent to [undefined, undefined, ...] + // The importance of excludeArgument is to prevent us from typing function expression parameters + // in arguments too early. If possible, we'd like to only type them once we know the correct + // overload. However, this matters for the case where the call is correct. When the call is + // an error, we don't need to exclude any arguments, although it would cause no harm to do so. checkApplicableSignature(node, args, candidateForArgumentError, assignableRelation, undefined, true); } else if (candidateForTypeArgumentError) { @@ -14462,6 +16877,11 @@ var ts; else { error(node, ts.Diagnostics.Supplied_parameters_do_not_match_any_signature_of_call_target); } + // No signature was applicable. We have already reported the errors for the invalid signature. + // If this is a type resolution session, e.g. Language Service, try to get better information that anySignature. + // Pick the first candidate that matches the arity. This way we can get a contextual type for cases like: + // declare function f(a: { xa: number; xb: number; }); + // f({ | if (!produceDiagnostics) { for (var _i = 0; _i < candidates.length; _i++) { var candidate = candidates[_i]; @@ -14509,6 +16929,11 @@ var ts; } excludeArgument[index] = false; } + // A post-mortem of this iteration of the loop. The signature was not applicable, + // so we want to track it as a candidate for reporting an error. If the candidate + // had no type parameters, or had no issues related to type arguments, we can + // report an error based on the arguments. If there was an issue with type + // arguments, then we can only report an error based on the type arguments. if (originalCandidate.typeParameters) { var instantiatedCandidate = candidate; if (typeArgumentsAreValid) { @@ -14530,26 +16955,41 @@ var ts; } } function resolveCallExpression(node, candidatesOutArray) { - if (node.expression.kind === 91) { + if (node.expression.kind === 91 /* SuperKeyword */) { var superType = checkSuperExpression(node.expression); if (superType !== unknownType) { - return resolveCall(node, getSignaturesOfType(superType, 1), candidatesOutArray); + return resolveCall(node, getSignaturesOfType(superType, 1 /* Construct */), candidatesOutArray); } return resolveUntypedCall(node); } var funcType = checkExpression(node.expression); var apparentType = getApparentType(funcType); if (apparentType === unknownType) { + // Another error has already been reported return resolveErrorCall(node); } - var callSignatures = getSignaturesOfType(apparentType, 0); - var constructSignatures = getSignaturesOfType(apparentType, 1); - if (funcType === anyType || (!callSignatures.length && !constructSignatures.length && !(funcType.flags & 16384) && isTypeAssignableTo(funcType, globalFunctionType))) { + // Technically, this signatures list may be incomplete. We are taking the apparent type, + // but we are not including call signatures that may have been added to the Object or + // Function interface, since they have none by default. This is a bit of a leap of faith + // that the user will not add any. + var callSignatures = getSignaturesOfType(apparentType, 0 /* Call */); + var constructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */); + // TS 1.0 spec: 4.12 + // If FuncExpr is of type Any, or of an object type that has no call or construct signatures + // but is a subtype of the Function interface, the call is an untyped function call. In an + // untyped function call no TypeArgs are permitted, Args can be any argument list, no contextual + // types are provided for the argument expressions, and the result is always of type Any. + // We exclude union types because we may have a union of function types that happen to have + // no common signatures. + if (funcType === anyType || (!callSignatures.length && !constructSignatures.length && !(funcType.flags & 16384 /* Union */) && isTypeAssignableTo(funcType, globalFunctionType))) { if (node.typeArguments) { error(node, ts.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); } return resolveUntypedCall(node); } + // If FuncExpr's apparent type(section 3.8.1) is a function type, the call is a typed function call. + // TypeScript employs overload resolution in typed function calls in order to support functions + // with multiple call signatures. if (!callSignatures.length) { if (constructSignatures.length) { error(node, ts.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); @@ -14562,28 +17002,45 @@ var ts; return resolveCall(node, callSignatures, candidatesOutArray); } function resolveNewExpression(node, candidatesOutArray) { - if (node.arguments && languageVersion < 2) { + if (node.arguments && languageVersion < 2 /* ES6 */) { var spreadIndex = getSpreadArgumentIndex(node.arguments); if (spreadIndex >= 0) { error(node.arguments[spreadIndex], ts.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_6_and_higher); } } var expressionType = checkExpression(node.expression); + // TS 1.0 spec: 4.11 + // If ConstructExpr is of type Any, Args can be any argument + // list and the result of the operation is of type Any. if (expressionType === anyType) { if (node.typeArguments) { error(node, ts.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); } return resolveUntypedCall(node); } + // If ConstructExpr's apparent type(section 3.8.1) is an object type with one or + // more construct signatures, the expression is processed in the same manner as a + // function call, but using the construct signatures as the initial set of candidate + // signatures for overload resolution.The result type of the function call becomes + // the result type of the operation. expressionType = getApparentType(expressionType); if (expressionType === unknownType) { + // Another error has already been reported return resolveErrorCall(node); } - var constructSignatures = getSignaturesOfType(expressionType, 1); + // Technically, this signatures list may be incomplete. We are taking the apparent type, + // but we are not including construct signatures that may have been added to the Object or + // Function interface, since they have none by default. This is a bit of a leap of faith + // that the user will not add any. + var constructSignatures = getSignaturesOfType(expressionType, 1 /* Construct */); if (constructSignatures.length) { return resolveCall(node, constructSignatures, candidatesOutArray); } - var callSignatures = getSignaturesOfType(expressionType, 0); + // If ConstructExpr's apparent type is an object type with no construct signatures but + // one or more call signatures, the expression is processed as a function call. A compile-time + // error occurs if the result of the function call is not Void. The type of the result of the + // operation is Any. + var callSignatures = getSignaturesOfType(expressionType, 0 /* Call */); if (callSignatures.length) { var signature = resolveCall(node, callSignatures, candidatesOutArray); if (getReturnTypeOfSignature(signature) !== voidType) { @@ -14598,10 +17055,11 @@ var ts; var tagType = checkExpression(node.tag); var apparentType = getApparentType(tagType); if (apparentType === unknownType) { + // Another error has already been reported return resolveErrorCall(node); } - var callSignatures = getSignaturesOfType(apparentType, 0); - if (tagType === anyType || (!callSignatures.length && !(tagType.flags & 16384) && isTypeAssignableTo(tagType, globalFunctionType))) { + var callSignatures = getSignaturesOfType(apparentType, 0 /* Call */); + if (tagType === anyType || (!callSignatures.length && !(tagType.flags & 16384 /* Union */) && isTypeAssignableTo(tagType, globalFunctionType))) { return resolveUntypedCall(node); } if (!callSignatures.length) { @@ -14610,17 +17068,23 @@ var ts; } return resolveCall(node, callSignatures, candidatesOutArray); } + // candidatesOutArray is passed by signature help in the language service, and collectCandidates + // must fill it up with the appropriate candidate signatures function getResolvedSignature(node, candidatesOutArray) { var links = getNodeLinks(node); + // If getResolvedSignature has already been called, we will have cached the resolvedSignature. + // However, it is possible that either candidatesOutArray was not passed in the first time, + // or that a different candidatesOutArray was passed in. Therefore, we need to redo the work + // to correctly fill the candidatesOutArray. if (!links.resolvedSignature || candidatesOutArray) { links.resolvedSignature = anySignature; - if (node.kind === 157) { + if (node.kind === 157 /* CallExpression */) { links.resolvedSignature = resolveCallExpression(node, candidatesOutArray); } - else if (node.kind === 158) { + else if (node.kind === 158 /* NewExpression */) { links.resolvedSignature = resolveNewExpression(node, candidatesOutArray); } - else if (node.kind === 159) { + else if (node.kind === 159 /* TaggedTemplateExpression */) { links.resolvedSignature = resolveTaggedTemplateExpression(node, candidatesOutArray); } else { @@ -14630,17 +17094,19 @@ var ts; return links.resolvedSignature; } function checkCallExpression(node) { + // Grammar checking; stop grammar-checking if checkGrammarTypeArguments return true checkGrammarTypeArguments(node, node.typeArguments) || checkGrammarArguments(node, node.arguments); var signature = getResolvedSignature(node); - if (node.expression.kind === 91) { + if (node.expression.kind === 91 /* SuperKeyword */) { return voidType; } - if (node.kind === 158) { + if (node.kind === 158 /* NewExpression */) { var declaration = signature.declaration; if (declaration && - declaration.kind !== 135 && - declaration.kind !== 139 && - declaration.kind !== 143) { + declaration.kind !== 135 /* Constructor */ && + declaration.kind !== 139 /* ConstructSignature */ && + declaration.kind !== 143 /* ConstructorType */) { + // When resolved signature is a call signature (and not a construct signature) the result type is any if (compilerOptions.noImplicitAny) { error(node, ts.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); } @@ -14664,14 +17130,9 @@ var ts; return targetType; } function getTypeAtPosition(signature, pos) { - if (pos >= 0) { - return signature.hasRestParameter ? - pos < signature.parameters.length - 1 ? getTypeOfSymbol(signature.parameters[pos]) : getRestTypeOfSignature(signature) : - pos < signature.parameters.length ? getTypeOfSymbol(signature.parameters[pos]) : anyType; - } return signature.hasRestParameter ? - getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]) : - anyArrayType; + pos < signature.parameters.length - 1 ? getTypeOfSymbol(signature.parameters[pos]) : getRestTypeOfSignature(signature) : + pos < signature.parameters.length ? getTypeOfSymbol(signature.parameters[pos]) : anyType; } function assignContextualParameterTypes(signature, context, mapper) { var len = signature.parameters.length - (signature.hasRestParameter ? 1 : 0); @@ -14692,14 +17153,17 @@ var ts; return unknownType; } var type; - if (func.body.kind !== 179) { + if (func.body.kind !== 179 /* Block */) { type = checkExpressionCached(func.body, contextualMapper); } else { + // Aggregate the types of expressions within all the return statements. var types = checkAndAggregateReturnExpressionTypes(func.body, contextualMapper); if (types.length === 0) { return voidType; } + // When return statements are contextually typed we allow the return type to be a union type. Otherwise we require the + // return expressions to have a best common supertype. type = contextualSignature ? getUnionType(types) : getCommonSupertype(types); if (!type) { error(func, ts.Diagnostics.No_best_common_type_exists_among_return_expressions); @@ -14711,6 +17175,7 @@ var ts; } return getWidenedType(type); } + /// Returns a set of types relating to every return expression relating to a function block. function checkAndAggregateReturnExpressionTypes(body, contextualMapper) { var aggregatedTypes = []; ts.forEachReturnStatement(body, function (returnStatement) { @@ -14730,44 +17195,61 @@ var ts; }); } function bodyContainsSingleThrowStatement(body) { - return (body.statements.length === 1) && (body.statements[0].kind === 195); + return (body.statements.length === 1) && (body.statements[0].kind === 195 /* ThrowStatement */); } + // TypeScript Specification 1.0 (6.3) - July 2014 + // An explicitly typed function whose return type isn't the Void or the Any type + // must have at least one return statement somewhere in its body. + // An exception to this rule is if the function implementation consists of a single 'throw' statement. function checkIfNonVoidFunctionHasReturnExpressionsOrSingleThrowStatment(func, returnType) { if (!produceDiagnostics) { return; } + // Functions that return 'void' or 'any' don't need any return expressions. if (returnType === voidType || returnType === anyType) { return; } - if (ts.nodeIsMissing(func.body) || func.body.kind !== 179) { + // If all we have is a function signature, or an arrow function with an expression body, then there is nothing to check. + if (ts.nodeIsMissing(func.body) || func.body.kind !== 179 /* Block */) { return; } var bodyBlock = func.body; + // Ensure the body has at least one return expression. if (bodyContainsAReturnStatement(bodyBlock)) { return; } + // If there are no return expressions, then we need to check if + // the function body consists solely of a throw statement; + // this is to make an exception for unimplemented functions. if (bodyContainsSingleThrowStatement(bodyBlock)) { return; } + // This function does not conform to the specification. error(func.type, ts.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_or_consist_of_a_single_throw_statement); } function checkFunctionExpressionOrObjectLiteralMethod(node, contextualMapper) { - ts.Debug.assert(node.kind !== 134 || ts.isObjectLiteralMethod(node)); + ts.Debug.assert(node.kind !== 134 /* MethodDeclaration */ || ts.isObjectLiteralMethod(node)); + // Grammar checking var hasGrammarError = checkGrammarFunctionLikeDeclaration(node); - if (!hasGrammarError && node.kind === 162) { + if (!hasGrammarError && node.kind === 162 /* FunctionExpression */) { checkGrammarFunctionName(node.name) || checkGrammarForGenerator(node); } + // The identityMapper object is used to indicate that function expressions are wildcards if (contextualMapper === identityMapper && isContextSensitive(node)) { return anyFunctionType; } var links = getNodeLinks(node); var type = getTypeOfSymbol(node.symbol); - if (!(links.flags & 64)) { + // Check if function expression is contextually typed and assign parameter types if so + if (!(links.flags & 64 /* ContextChecked */)) { var contextualSignature = getContextualSignature(node); - if (!(links.flags & 64)) { - links.flags |= 64; + // If a type check is started at a function expression that is an argument of a function call, obtaining the + // contextual type may recursively get back to here during overload resolution of the call. If so, we will have + // already assigned contextual types. + if (!(links.flags & 64 /* ContextChecked */)) { + links.flags |= 64 /* ContextChecked */; if (contextualSignature) { - var signature = getSignaturesOfType(type, 0)[0]; + var signature = getSignaturesOfType(type, 0 /* Call */)[0]; if (isContextSensitive(node)) { assignContextualParameterTypes(signature, contextualSignature, contextualMapper || identityMapper); } @@ -14782,19 +17264,19 @@ var ts; checkSignatureDeclaration(node); } } - if (produceDiagnostics && node.kind !== 134 && node.kind !== 133) { + if (produceDiagnostics && node.kind !== 134 /* MethodDeclaration */ && node.kind !== 133 /* MethodSignature */) { checkCollisionWithCapturedSuperVariable(node, node.name); checkCollisionWithCapturedThisVariable(node, node.name); } return type; } function checkFunctionExpressionOrObjectLiteralMethodBody(node) { - ts.Debug.assert(node.kind !== 134 || ts.isObjectLiteralMethod(node)); + ts.Debug.assert(node.kind !== 134 /* MethodDeclaration */ || ts.isObjectLiteralMethod(node)); if (node.type) { checkIfNonVoidFunctionHasReturnExpressionsOrSingleThrowStatment(node, getTypeFromTypeNodeOrHeritageClauseElement(node.type)); } if (node.body) { - if (node.body.kind === 179) { + if (node.body.kind === 179 /* Block */) { checkSourceElement(node.body); } else { @@ -14807,7 +17289,7 @@ var ts; } } function checkArithmeticOperandType(operand, type, diagnostic) { - if (!allConstituentTypesHaveKind(type, 1 | 132)) { + if (!allConstituentTypesHaveKind(type, 1 /* Any */ | 132 /* NumberLike */)) { error(operand, diagnostic); return false; } @@ -14816,21 +17298,37 @@ var ts; function checkReferenceExpression(n, invalidReferenceMessage, constantVariableMessage) { function findSymbol(n) { var symbol = getNodeLinks(n).resolvedSymbol; + // Because we got the symbol from the resolvedSymbol property, it might be of kind + // SymbolFlags.ExportValue. In this case it is necessary to get the actual export + // symbol, which will have the correct flags set on it. return symbol && getExportSymbolOfValueSymbolIfExported(symbol); } function isReferenceOrErrorExpression(n) { + // TypeScript 1.0 spec (April 2014): + // Expressions are classified as values or references. + // References are the subset of expressions that are permitted as the target of an assignment. + // Specifically, references are combinations of identifiers(section 4.3), parentheses(section 4.7), + // and property accesses(section 4.10). + // All other expression constructs described in this chapter are classified as values. switch (n.kind) { - case 65: { + case 65 /* Identifier */: { var symbol = findSymbol(n); - return !symbol || symbol === unknownSymbol || symbol === argumentsSymbol || (symbol.flags & 3) !== 0; + // TypeScript 1.0 spec (April 2014): 4.3 + // An identifier expression that references a variable or parameter is classified as a reference. + // An identifier expression that references any other kind of entity is classified as a value(and therefore cannot be the target of an assignment). + return !symbol || symbol === unknownSymbol || symbol === argumentsSymbol || (symbol.flags & 3 /* Variable */) !== 0; } - case 155: { + case 155 /* PropertyAccessExpression */: { var symbol = findSymbol(n); - return !symbol || symbol === unknownSymbol || (symbol.flags & ~8) !== 0; + // TypeScript 1.0 spec (April 2014): 4.10 + // A property access expression is always classified as a reference. + // NOTE (not in spec): assignment to enum members should not be allowed + return !symbol || symbol === unknownSymbol || (symbol.flags & ~8 /* EnumMember */) !== 0; } - case 156: + case 156 /* ElementAccessExpression */: + // old compiler doesn't check indexed assess return true; - case 161: + case 161 /* ParenthesizedExpression */: return isReferenceOrErrorExpression(n.expression); default: return false; @@ -14838,22 +17336,22 @@ var ts; } function isConstVariableReference(n) { switch (n.kind) { - case 65: - case 155: { + case 65 /* Identifier */: + case 155 /* PropertyAccessExpression */: { var symbol = findSymbol(n); - return symbol && (symbol.flags & 3) !== 0 && (getDeclarationFlagsFromSymbol(symbol) & 8192) !== 0; + return symbol && (symbol.flags & 3 /* Variable */) !== 0 && (getDeclarationFlagsFromSymbol(symbol) & 8192 /* Const */) !== 0; } - case 156: { + case 156 /* ElementAccessExpression */: { var index = n.argumentExpression; var symbol = findSymbol(n.expression); - if (symbol && index && index.kind === 8) { + if (symbol && index && index.kind === 8 /* StringLiteral */) { var name_7 = index.text; var prop = getPropertyOfType(getTypeOfSymbol(symbol), name_7); - return prop && (prop.flags & 3) !== 0 && (getDeclarationFlagsFromSymbol(prop) & 8192) !== 0; + return prop && (prop.flags & 3 /* Variable */) !== 0 && (getDeclarationFlagsFromSymbol(prop) & 8192 /* Const */) !== 0; } return false; } - case 161: + case 161 /* ParenthesizedExpression */: return isConstVariableReference(n.expression); default: return false; @@ -14870,7 +17368,10 @@ var ts; return true; } function checkDeleteExpression(node) { - if (node.parserContextFlags & 1 && node.expression.kind === 65) { + // Grammar checking + if (node.parserContextFlags & 1 /* StrictMode */ && node.expression.kind === 65 /* Identifier */) { + // When a delete operator occurs within strict mode code, a SyntaxError is thrown if its + // UnaryExpression is a direct reference to a variable, function argument, or function name grammarErrorOnNode(node.expression, ts.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode); } var operandType = checkExpression(node.expression); @@ -14885,24 +17386,29 @@ var ts; return undefinedType; } function checkPrefixUnaryExpression(node) { - if ((node.operator === 38 || node.operator === 39)) { + // Grammar checking + // The identifier eval or arguments may not appear as the LeftHandSideExpression of an + // Assignment operator(11.13) or of a PostfixExpression(11.3) or as the UnaryExpression + // operated upon by a Prefix Increment(11.4.4) or a Prefix Decrement(11.4.5) operator + if ((node.operator === 38 /* PlusPlusToken */ || node.operator === 39 /* MinusMinusToken */)) { checkGrammarEvalOrArgumentsInStrictMode(node, node.operand); } var operandType = checkExpression(node.operand); switch (node.operator) { - case 33: - case 34: - case 47: - if (someConstituentTypeHasKind(operandType, 1048576)) { + case 33 /* PlusToken */: + case 34 /* MinusToken */: + case 47 /* TildeToken */: + if (someConstituentTypeHasKind(operandType, 1048576 /* ESSymbol */)) { error(node.operand, ts.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, ts.tokenToString(node.operator)); } return numberType; - case 46: + case 46 /* ExclamationToken */: return booleanType; - case 38: - case 39: + case 38 /* PlusPlusToken */: + case 39 /* MinusMinusToken */: var ok = checkArithmeticOperandType(node.operand, operandType, ts.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type); if (ok) { + // run check only if former checks succeeded to avoid reporting cascading errors checkReferenceExpression(node.operand, ts.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_property_or_indexer, ts.Diagnostics.The_operand_of_an_increment_or_decrement_operator_cannot_be_a_constant); } return numberType; @@ -14910,19 +17416,26 @@ var ts; return unknownType; } function checkPostfixUnaryExpression(node) { + // Grammar checking + // The identifier eval or arguments may not appear as the LeftHandSideExpression of an + // Assignment operator(11.13) or of a PostfixExpression(11.3) or as the UnaryExpression + // operated upon by a Prefix Increment(11.4.4) or a Prefix Decrement(11.4.5) operator. checkGrammarEvalOrArgumentsInStrictMode(node, node.operand); var operandType = checkExpression(node.operand); var ok = checkArithmeticOperandType(node.operand, operandType, ts.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type); if (ok) { + // run check only if former checks succeeded to avoid reporting cascading errors checkReferenceExpression(node.operand, ts.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_property_or_indexer, ts.Diagnostics.The_operand_of_an_increment_or_decrement_operator_cannot_be_a_constant); } return numberType; } + // Just like isTypeOfKind below, except that it returns true if *any* constituent + // has this kind. function someConstituentTypeHasKind(type, kind) { if (type.flags & kind) { return true; } - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { var types = type.types; for (var _i = 0; _i < types.length; _i++) { var current = types[_i]; @@ -14934,11 +17447,12 @@ var ts; } return false; } + // Return true if type has the given flags, or is a union type composed of types that all have those flags. function allConstituentTypesHaveKind(type, kind) { if (type.flags & kind) { return true; } - if (type.flags & 16384) { + if (type.flags & 16384 /* Union */) { var types = type.types; for (var _i = 0; _i < types.length; _i++) { var current = types[_i]; @@ -14951,25 +17465,35 @@ var ts; return false; } function isConstEnumObjectType(type) { - return type.flags & (48128 | 32768) && type.symbol && isConstEnumSymbol(type.symbol); + return type.flags & (48128 /* ObjectType */ | 32768 /* Anonymous */) && type.symbol && isConstEnumSymbol(type.symbol); } function isConstEnumSymbol(symbol) { - return (symbol.flags & 128) !== 0; + return (symbol.flags & 128 /* ConstEnum */) !== 0; } function checkInstanceOfExpression(node, leftType, rightType) { - if (allConstituentTypesHaveKind(leftType, 1049086)) { + // TypeScript 1.0 spec (April 2014): 4.15.4 + // The instanceof operator requires the left operand to be of type Any, an object type, or a type parameter type, + // and the right operand to be of type Any or a subtype of the 'Function' interface type. + // The result is always of the Boolean primitive type. + // NOTE: do not raise error if leftType is unknown as related error was already reported + if (allConstituentTypesHaveKind(leftType, 1049086 /* Primitive */)) { error(node.left, ts.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); } - if (!(rightType.flags & 1 || isTypeSubtypeOf(rightType, globalFunctionType))) { + // NOTE: do not raise error if right is unknown as related error was already reported + if (!(rightType.flags & 1 /* Any */ || isTypeSubtypeOf(rightType, globalFunctionType))) { error(node.right, ts.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type); } return booleanType; } function checkInExpression(node, leftType, rightType) { - if (!allConstituentTypesHaveKind(leftType, 1 | 258 | 132 | 1048576)) { + // TypeScript 1.0 spec (April 2014): 4.15.5 + // The in operator requires the left operand to be of type Any, the String primitive type, or the Number primitive type, + // and the right operand to be of type Any, an object type, or a type parameter type. + // The result is always of the Boolean primitive type. + if (!allConstituentTypesHaveKind(leftType, 1 /* Any */ | 258 /* StringLike */ | 132 /* NumberLike */ | 1048576 /* ESSymbol */)) { error(node.left, ts.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol); } - if (!allConstituentTypesHaveKind(rightType, 1 | 48128 | 512)) { + if (!allConstituentTypesHaveKind(rightType, 1 /* Any */ | 48128 /* ObjectType */ | 512 /* TypeParameter */)) { error(node.right, ts.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); } return booleanType; @@ -14978,12 +17502,13 @@ var ts; var properties = node.properties; for (var _i = 0; _i < properties.length; _i++) { var p = properties[_i]; - if (p.kind === 224 || p.kind === 225) { + if (p.kind === 224 /* PropertyAssignment */ || p.kind === 225 /* ShorthandPropertyAssignment */) { + // TODO(andersh): Computed property support var name_8 = p.name; - var type = sourceType.flags & 1 ? sourceType : + var type = sourceType.flags & 1 /* Any */ ? sourceType : getTypeOfPropertyOfType(sourceType, name_8.text) || - isNumericLiteralName(name_8.text) && getIndexTypeOfType(sourceType, 1) || - getIndexTypeOfType(sourceType, 0); + isNumericLiteralName(name_8.text) && getIndexTypeOfType(sourceType, 1 /* Number */) || + getIndexTypeOfType(sourceType, 0 /* String */); if (type) { checkDestructuringAssignment(p.initializer || name_8, type); } @@ -14998,19 +17523,20 @@ var ts; return sourceType; } function checkArrayLiteralAssignment(node, sourceType, contextualMapper) { - if (!isArrayLikeType(sourceType)) { - error(node, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(sourceType)); - return sourceType; - } + // This elementType will be used if the specific property corresponding to this index is not + // present (aka the tuple element property). This call also checks that the parentType is in + // fact an iterable or array (depending on target language). + var elementType = checkIteratedTypeOrElementType(sourceType, node, false); var elements = node.elements; for (var i = 0; i < elements.length; i++) { var e = elements[i]; - if (e.kind !== 175) { - if (e.kind !== 173) { + if (e.kind !== 175 /* OmittedExpression */) { + if (e.kind !== 173 /* SpreadElementExpression */) { var propName = "" + i; - var type = sourceType.flags & 1 ? sourceType : - isTupleLikeType(sourceType) ? getTypeOfPropertyOfType(sourceType, propName) : - getIndexTypeOfType(sourceType, 1); + var type = sourceType.flags & 1 /* Any */ ? sourceType : + isTupleLikeType(sourceType) + ? getTypeOfPropertyOfType(sourceType, propName) + : elementType; if (type) { checkDestructuringAssignment(e, type, contextualMapper); } @@ -15025,7 +17551,7 @@ var ts; } else { if (i === elements.length - 1) { - checkReferenceAssignment(e.expression, sourceType, contextualMapper); + checkReferenceAssignment(e.expression, createArrayType(elementType), contextualMapper); } else { error(e, ts.Diagnostics.A_rest_element_must_be_last_in_an_array_destructuring_pattern); @@ -15036,14 +17562,14 @@ var ts; return sourceType; } function checkDestructuringAssignment(target, sourceType, contextualMapper) { - if (target.kind === 169 && target.operatorToken.kind === 53) { + if (target.kind === 169 /* BinaryExpression */ && target.operatorToken.kind === 53 /* EqualsToken */) { checkBinaryExpression(target, contextualMapper); target = target.left; } - if (target.kind === 154) { + if (target.kind === 154 /* ObjectLiteralExpression */) { return checkObjectLiteralAssignment(target, sourceType, contextualMapper); } - if (target.kind === 153) { + if (target.kind === 153 /* ArrayLiteralExpression */) { return checkArrayLiteralAssignment(target, sourceType, contextualMapper); } return checkReferenceAssignment(target, sourceType, contextualMapper); @@ -15056,47 +17582,59 @@ var ts; return sourceType; } function checkBinaryExpression(node, contextualMapper) { + // Grammar checking if (ts.isLeftHandSideExpression(node.left) && ts.isAssignmentOperator(node.operatorToken.kind)) { + // ECMA 262 (Annex C) The identifier eval or arguments may not appear as the LeftHandSideExpression of an + // Assignment operator(11.13) or of a PostfixExpression(11.3) checkGrammarEvalOrArgumentsInStrictMode(node, node.left); } var operator = node.operatorToken.kind; - if (operator === 53 && (node.left.kind === 154 || node.left.kind === 153)) { + if (operator === 53 /* EqualsToken */ && (node.left.kind === 154 /* ObjectLiteralExpression */ || node.left.kind === 153 /* ArrayLiteralExpression */)) { return checkDestructuringAssignment(node.left, checkExpression(node.right, contextualMapper), contextualMapper); } var leftType = checkExpression(node.left, contextualMapper); var rightType = checkExpression(node.right, contextualMapper); switch (operator) { - case 35: - case 56: - case 36: - case 57: - case 37: - case 58: - case 34: - case 55: - case 40: - case 59: - case 41: - case 60: - case 42: - case 61: - case 44: - case 63: - case 45: - case 64: - case 43: - case 62: - if (leftType.flags & (32 | 64)) + case 35 /* AsteriskToken */: + case 56 /* AsteriskEqualsToken */: + case 36 /* SlashToken */: + case 57 /* SlashEqualsToken */: + case 37 /* PercentToken */: + case 58 /* PercentEqualsToken */: + case 34 /* MinusToken */: + case 55 /* MinusEqualsToken */: + case 40 /* LessThanLessThanToken */: + case 59 /* LessThanLessThanEqualsToken */: + case 41 /* GreaterThanGreaterThanToken */: + case 60 /* GreaterThanGreaterThanEqualsToken */: + case 42 /* GreaterThanGreaterThanGreaterThanToken */: + case 61 /* GreaterThanGreaterThanGreaterThanEqualsToken */: + case 44 /* BarToken */: + case 63 /* BarEqualsToken */: + case 45 /* CaretToken */: + case 64 /* CaretEqualsToken */: + case 43 /* AmpersandToken */: + case 62 /* AmpersandEqualsToken */: + // TypeScript 1.0 spec (April 2014): 4.15.1 + // These operators require their operands to be of type Any, the Number primitive type, + // or an enum type. Operands of an enum type are treated + // as having the primitive type Number. If one operand is the null or undefined value, + // it is treated as having the type of the other operand. + // The result is always of the Number primitive type. + if (leftType.flags & (32 /* Undefined */ | 64 /* Null */)) leftType = rightType; - if (rightType.flags & (32 | 64)) + if (rightType.flags & (32 /* Undefined */ | 64 /* Null */)) rightType = leftType; var suggestedOperator; - if ((leftType.flags & 8) && - (rightType.flags & 8) && + // if a user tries to apply a bitwise operator to 2 boolean operands + // try and return them a helpful suggestion + if ((leftType.flags & 8 /* Boolean */) && + (rightType.flags & 8 /* Boolean */) && (suggestedOperator = getSuggestedBooleanOperator(node.operatorToken.kind)) !== undefined) { error(node, ts.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, ts.tokenToString(node.operatorToken.kind), ts.tokenToString(suggestedOperator)); } else { + // otherwise just check each operand separately and report errors as normal var leftOk = checkArithmeticOperandType(node.left, leftType, ts.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type); var rightOk = checkArithmeticOperandType(node.right, rightType, ts.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type); if (leftOk && rightOk) { @@ -15104,23 +17642,33 @@ var ts; } } return numberType; - case 33: - case 54: - if (leftType.flags & (32 | 64)) + case 33 /* PlusToken */: + case 54 /* PlusEqualsToken */: + // TypeScript 1.0 spec (April 2014): 4.15.2 + // The binary + operator requires both operands to be of the Number primitive type or an enum type, + // or at least one of the operands to be of type Any or the String primitive type. + // If one operand is the null or undefined value, it is treated as having the type of the other operand. + if (leftType.flags & (32 /* Undefined */ | 64 /* Null */)) leftType = rightType; - if (rightType.flags & (32 | 64)) + if (rightType.flags & (32 /* Undefined */ | 64 /* Null */)) rightType = leftType; var resultType; - if (allConstituentTypesHaveKind(leftType, 132) && allConstituentTypesHaveKind(rightType, 132)) { + if (allConstituentTypesHaveKind(leftType, 132 /* NumberLike */) && allConstituentTypesHaveKind(rightType, 132 /* NumberLike */)) { + // Operands of an enum type are treated as having the primitive type Number. + // If both operands are of the Number primitive type, the result is of the Number primitive type. resultType = numberType; } else { - if (allConstituentTypesHaveKind(leftType, 258) || allConstituentTypesHaveKind(rightType, 258)) { + if (allConstituentTypesHaveKind(leftType, 258 /* StringLike */) || allConstituentTypesHaveKind(rightType, 258 /* StringLike */)) { + // If one or both operands are of the String primitive type, the result is of the String primitive type. resultType = stringType; } - else if (leftType.flags & 1 || rightType.flags & 1) { + else if (leftType.flags & 1 /* Any */ || rightType.flags & 1 /* Any */) { + // Otherwise, the result is of type Any. + // NOTE: unknown type here denotes error type. Old compiler treated this case as any type so do we. resultType = anyType; } + // Symbols are not allowed at all in arithmetic expressions if (resultType && !checkForDisallowedESSymbolOperand(operator)) { return resultType; } @@ -15129,42 +17677,44 @@ var ts; reportOperatorError(); return anyType; } - if (operator === 54) { + if (operator === 54 /* PlusEqualsToken */) { checkAssignmentOperator(resultType); } return resultType; - case 24: - case 25: - case 26: - case 27: + case 24 /* LessThanToken */: + case 25 /* GreaterThanToken */: + case 26 /* LessThanEqualsToken */: + case 27 /* GreaterThanEqualsToken */: if (!checkForDisallowedESSymbolOperand(operator)) { return booleanType; } - case 28: - case 29: - case 30: - case 31: + // Fall through + case 28 /* EqualsEqualsToken */: + case 29 /* ExclamationEqualsToken */: + case 30 /* EqualsEqualsEqualsToken */: + case 31 /* ExclamationEqualsEqualsToken */: if (!isTypeAssignableTo(leftType, rightType) && !isTypeAssignableTo(rightType, leftType)) { reportOperatorError(); } return booleanType; - case 87: + case 87 /* InstanceOfKeyword */: return checkInstanceOfExpression(node, leftType, rightType); - case 86: + case 86 /* InKeyword */: return checkInExpression(node, leftType, rightType); - case 48: + case 48 /* AmpersandAmpersandToken */: return rightType; - case 49: + case 49 /* BarBarToken */: return getUnionType([leftType, rightType]); - case 53: + case 53 /* EqualsToken */: checkAssignmentOperator(rightType); return rightType; - case 23: + case 23 /* CommaToken */: return rightType; } + // Return true if there was no error, false if there was an error. function checkForDisallowedESSymbolOperand(operator) { - var offendingSymbolOperand = someConstituentTypeHasKind(leftType, 1048576) ? node.left : - someConstituentTypeHasKind(rightType, 1048576) ? node.right : + var offendingSymbolOperand = someConstituentTypeHasKind(leftType, 1048576 /* ESSymbol */) ? node.left : + someConstituentTypeHasKind(rightType, 1048576 /* ESSymbol */) ? node.right : undefined; if (offendingSymbolOperand) { error(offendingSymbolOperand, ts.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, ts.tokenToString(operator)); @@ -15174,23 +17724,31 @@ var ts; } function getSuggestedBooleanOperator(operator) { switch (operator) { - case 44: - case 63: - return 49; - case 45: - case 64: - return 31; - case 43: - case 62: - return 48; + case 44 /* BarToken */: + case 63 /* BarEqualsToken */: + return 49 /* BarBarToken */; + case 45 /* CaretToken */: + case 64 /* CaretEqualsToken */: + return 31 /* ExclamationEqualsEqualsToken */; + case 43 /* AmpersandToken */: + case 62 /* AmpersandEqualsToken */: + return 48 /* AmpersandAmpersandToken */; default: return undefined; } } function checkAssignmentOperator(valueType) { - if (produceDiagnostics && operator >= 53 && operator <= 64) { + if (produceDiagnostics && operator >= 53 /* FirstAssignment */ && operator <= 64 /* LastAssignment */) { + // TypeScript 1.0 spec (April 2014): 4.17 + // An assignment of the form + // VarExpr = ValueExpr + // requires VarExpr to be classified as a reference + // A compound assignment furthermore requires VarExpr to be classified as a reference (section 4.1) + // and the type of the non - compound operation to be assignable to the type of VarExpr. var ok = checkReferenceExpression(node.left, ts.Diagnostics.Invalid_left_hand_side_of_assignment_expression, ts.Diagnostics.Left_hand_side_of_assignment_expression_cannot_be_a_constant); + // Use default messages if (ok) { + // to avoid cascading errors check assignability only if 'isReference' check succeeded and no errors were reported checkTypeAssignableTo(valueType, leftType, node.left, undefined); } } @@ -15200,7 +17758,8 @@ var ts; } } function checkYieldExpression(node) { - if (!(node.parserContextFlags & 4)) { + // Grammar checking + if (!(node.parserContextFlags & 4 /* Yield */)) { grammarErrorOnFirstToken(node, ts.Diagnostics.yield_expression_must_be_contained_within_a_generator_declaration); } else { @@ -15214,6 +17773,11 @@ var ts; return getUnionType([type1, type2]); } function checkTemplateExpression(node) { + // We just want to check each expressions, but we are unconcerned with + // the type of each expression, as any value may be coerced into a string. + // It is worth asking whether this is what we really want though. + // A place where we actually *are* concerned with the expressions' types are + // in tagged templates. ts.forEach(node.templateSpans, function (templateSpan) { checkExpression(templateSpan.expression); }); @@ -15234,14 +17798,21 @@ var ts; return links.resolvedType; } function checkPropertyAssignment(node, contextualMapper) { - if (node.name.kind === 127) { + // Do not use hasDynamicName here, because that returns false for well known symbols. + // We want to perform checkComputedPropertyName for all computed properties, including + // well known symbols. + if (node.name.kind === 127 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } return checkExpression(node.initializer, contextualMapper); } function checkObjectLiteralMethod(node, contextualMapper) { + // Grammar checking checkGrammarMethod(node); - if (node.name.kind === 127) { + // Do not use hasDynamicName here, because that returns false for well known symbols. + // We want to perform checkComputedPropertyName for all computed properties, including + // well known symbols. + if (node.name.kind === 127 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); } var uninstantiatedType = checkFunctionExpressionOrObjectLiteralMethod(node, contextualMapper); @@ -15265,9 +17836,16 @@ var ts; function checkExpression(node, contextualMapper) { return checkExpressionOrQualifiedName(node, contextualMapper); } + // Checks an expression and returns its type. The contextualMapper parameter serves two purposes: When + // contextualMapper is not undefined and not equal to the identityMapper function object it indicates that the + // expression is being inferentially typed (section 4.12.2 in spec) and provides the type mapper to use in + // conjunction with the generic contextual type. When contextualMapper is equal to the identityMapper function + // object, it serves as an indicator that all contained function and arrow expressions should be considered to + // have the wildcard function type; this form of type check is used during overload resolution to exclude + // contextually typed function and arrow expressions in the initial phase. function checkExpressionOrQualifiedName(node, contextualMapper) { var type; - if (node.kind == 126) { + if (node.kind == 126 /* QualifiedName */) { type = checkQualifiedName(node); } else { @@ -15275,9 +17853,13 @@ var ts; type = instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, contextualMapper); } if (isConstEnumObjectType(type)) { - var ok = (node.parent.kind === 155 && node.parent.expression === node) || - (node.parent.kind === 156 && node.parent.expression === node) || - ((node.kind === 65 || node.kind === 126) && isInRightSideOfImportOrExportAssignment(node)); + // enum object type for const enums are only permitted in: + // - 'left' in property access + // - 'object' in indexed access + // - target in rhs of import statement + var ok = (node.parent.kind === 155 /* PropertyAccessExpression */ && node.parent.expression === node) || + (node.parent.kind === 156 /* ElementAccessExpression */ && node.parent.expression === node) || + ((node.kind === 65 /* Identifier */ || node.kind === 126 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node)); if (!ok) { error(node, ts.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment); } @@ -15285,78 +17867,81 @@ var ts; return type; } function checkNumericLiteral(node) { + // Grammar checking checkGrammarNumbericLiteral(node); return numberType; } function checkExpressionWorker(node, contextualMapper) { switch (node.kind) { - case 65: + case 65 /* Identifier */: return checkIdentifier(node); - case 93: + case 93 /* ThisKeyword */: return checkThisExpression(node); - case 91: + case 91 /* SuperKeyword */: return checkSuperExpression(node); - case 89: + case 89 /* NullKeyword */: return nullType; - case 95: - case 80: + case 95 /* TrueKeyword */: + case 80 /* FalseKeyword */: return booleanType; - case 7: + case 7 /* NumericLiteral */: return checkNumericLiteral(node); - case 171: + case 171 /* TemplateExpression */: return checkTemplateExpression(node); - case 8: - case 10: + case 8 /* StringLiteral */: + case 10 /* NoSubstitutionTemplateLiteral */: return stringType; - case 9: + case 9 /* RegularExpressionLiteral */: return globalRegExpType; - case 153: + case 153 /* ArrayLiteralExpression */: return checkArrayLiteral(node, contextualMapper); - case 154: + case 154 /* ObjectLiteralExpression */: return checkObjectLiteral(node, contextualMapper); - case 155: + case 155 /* PropertyAccessExpression */: return checkPropertyAccessExpression(node); - case 156: + case 156 /* ElementAccessExpression */: return checkIndexedAccess(node); - case 157: - case 158: + case 157 /* CallExpression */: + case 158 /* NewExpression */: return checkCallExpression(node); - case 159: + case 159 /* TaggedTemplateExpression */: return checkTaggedTemplateExpression(node); - case 160: + case 160 /* TypeAssertionExpression */: return checkTypeAssertion(node); - case 161: + case 161 /* ParenthesizedExpression */: return checkExpression(node.expression, contextualMapper); - case 174: + case 174 /* ClassExpression */: return checkClassExpression(node); - case 162: - case 163: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: return checkFunctionExpressionOrObjectLiteralMethod(node, contextualMapper); - case 165: + case 165 /* TypeOfExpression */: return checkTypeOfExpression(node); - case 164: + case 164 /* DeleteExpression */: return checkDeleteExpression(node); - case 166: + case 166 /* VoidExpression */: return checkVoidExpression(node); - case 167: + case 167 /* PrefixUnaryExpression */: return checkPrefixUnaryExpression(node); - case 168: + case 168 /* PostfixUnaryExpression */: return checkPostfixUnaryExpression(node); - case 169: + case 169 /* BinaryExpression */: return checkBinaryExpression(node, contextualMapper); - case 170: + case 170 /* ConditionalExpression */: return checkConditionalExpression(node, contextualMapper); - case 173: + case 173 /* SpreadElementExpression */: return checkSpreadElementExpression(node, contextualMapper); - case 175: + case 175 /* OmittedExpression */: return undefinedType; - case 172: + case 172 /* YieldExpression */: checkYieldExpression(node); return unknownType; } return unknownType; } + // DECLARATION AND STATEMENT TYPE CHECKING function checkTypeParameter(node) { + // Grammar Checking if (node.expression) { grammarErrorOnFirstToken(node.expression, ts.Diagnostics.Type_expected); } @@ -15365,6 +17950,7 @@ var ts; checkTypeParameterHasIllegalReferencesInConstraint(node); checkTypeNameIsReserved(node.name, ts.Diagnostics.Type_parameter_name_cannot_be_0); } + // TODO: Check multiple declarations are identical } function checkParameter(node) { // Grammar checking @@ -15373,12 +17959,13 @@ var ts; // or if its FunctionBody is strict code(11.1.5). // It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a // strict mode FunctionLikeDeclaration or FunctionExpression(13.1) + // Grammar checking checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarEvalOrArgumentsInStrictMode(node, node.name); checkVariableLikeDeclaration(node); var func = ts.getContainingFunction(node); - if (node.flags & 112) { + if (node.flags & 112 /* AccessibilityModifier */) { func = ts.getContainingFunction(node); - if (!(func.kind === 135 && ts.nodeIsPresent(func.body))) { + if (!(func.kind === 135 /* Constructor */ && ts.nodeIsPresent(func.body))) { error(node, ts.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); } } @@ -15392,12 +17979,13 @@ var ts; } } function checkSignatureDeclaration(node) { - if (node.kind === 140) { + // Grammar checking + if (node.kind === 140 /* IndexSignature */) { checkGrammarIndexSignature(node); } - else if (node.kind === 142 || node.kind === 200 || node.kind === 143 || - node.kind === 138 || node.kind === 135 || - node.kind === 139) { + else if (node.kind === 142 /* FunctionType */ || node.kind === 200 /* FunctionDeclaration */ || node.kind === 143 /* ConstructorType */ || + node.kind === 138 /* CallSignature */ || node.kind === 135 /* Constructor */ || + node.kind === 139 /* ConstructSignature */) { checkGrammarFunctionLikeDeclaration(node); } checkTypeParameters(node.typeParameters); @@ -15409,10 +17997,10 @@ var ts; checkCollisionWithArgumentsInGeneratedCode(node); if (compilerOptions.noImplicitAny && !node.type) { switch (node.kind) { - case 139: + case 139 /* ConstructSignature */: error(node, ts.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; - case 138: + case 138 /* CallSignature */: error(node, ts.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); break; } @@ -15421,12 +18009,17 @@ var ts; checkSpecializedSignatureDeclaration(node); } function checkTypeForDuplicateIndexSignatures(node) { - if (node.kind === 202) { + if (node.kind === 202 /* InterfaceDeclaration */) { var nodeSymbol = getSymbolOfNode(node); + // in case of merging interface declaration it is possible that we'll enter this check procedure several times for every declaration + // to prevent this run check only for the first declaration of a given kind if (nodeSymbol.declarations.length > 0 && nodeSymbol.declarations[0] !== node) { return; } } + // TypeScript 1.0 spec (April 2014) + // 3.7.4: An object type can contain at most one string index signature and one numeric index signature. + // 8.5: A class declaration can have at most one string index member declaration and one numeric index member declaration var indexSymbol = getIndexSymbol(getSymbolOfNode(node)); if (indexSymbol) { var seenNumericIndexer = false; @@ -15436,7 +18029,7 @@ var ts; var declaration = decl; if (declaration.parameters.length === 1 && declaration.parameters[0].type) { switch (declaration.parameters[0].type.kind) { - case 121: + case 121 /* StringKeyword */: if (!seenStringIndexer) { seenStringIndexer = true; } @@ -15444,7 +18037,7 @@ var ts; error(declaration, ts.Diagnostics.Duplicate_string_index_signature); } break; - case 119: + case 119 /* NumberKeyword */: if (!seenNumericIndexer) { seenNumericIndexer = true; } @@ -15458,22 +18051,29 @@ var ts; } } function checkPropertyDeclaration(node) { + // Grammar checking checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarProperty(node) || checkGrammarComputedPropertyName(node.name); checkVariableLikeDeclaration(node); } function checkMethodDeclaration(node) { + // Grammar checking checkGrammarMethod(node) || checkGrammarComputedPropertyName(node.name); + // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration checkFunctionLikeDeclaration(node); } function checkConstructorDeclaration(node) { + // Grammar check on signature of constructor and modifier of the constructor is done in checkSignatureDeclaration function. checkSignatureDeclaration(node); + // Grammar check for checking only related to constructoDeclaration checkGrammarConstructorTypeParameters(node) || checkGrammarConstructorTypeAnnotation(node); checkSourceElement(node.body); var symbol = getSymbolOfNode(node); var firstDeclaration = ts.getDeclarationOfKind(symbol, node.kind); + // Only type check the symbol once if (node === firstDeclaration) { checkFunctionOrConstructorSymbol(symbol); } + // exit early in the case of signature - super checks are not relevant to them if (ts.nodeIsMissing(node.body)) { return; } @@ -15481,43 +18081,51 @@ var ts; return; } function isSuperCallExpression(n) { - return n.kind === 157 && n.expression.kind === 91; + return n.kind === 157 /* CallExpression */ && n.expression.kind === 91 /* SuperKeyword */; } function containsSuperCall(n) { if (isSuperCallExpression(n)) { return true; } switch (n.kind) { - case 162: - case 200: - case 163: - case 154: return false; + case 162 /* FunctionExpression */: + case 200 /* FunctionDeclaration */: + case 163 /* ArrowFunction */: + case 154 /* ObjectLiteralExpression */: return false; default: return ts.forEachChild(n, containsSuperCall); } } function markThisReferencesAsErrors(n) { - if (n.kind === 93) { + if (n.kind === 93 /* ThisKeyword */) { error(n, ts.Diagnostics.this_cannot_be_referenced_in_current_location); } - else if (n.kind !== 162 && n.kind !== 200) { + else if (n.kind !== 162 /* FunctionExpression */ && n.kind !== 200 /* FunctionDeclaration */) { ts.forEachChild(n, markThisReferencesAsErrors); } } function isInstancePropertyWithInitializer(n) { - return n.kind === 132 && - !(n.flags & 128) && + return n.kind === 132 /* PropertyDeclaration */ && + !(n.flags & 128 /* Static */) && !!n.initializer; } + // TS 1.0 spec (April 2014): 8.3.2 + // Constructors of classes with no extends clause may not contain super calls, whereas + // constructors of derived classes must contain at least one super call somewhere in their function body. if (ts.getClassExtendsHeritageClauseElement(node.parent)) { if (containsSuperCall(node.body)) { + // The first statement in the body of a constructor must be a super call if both of the following are true: + // - The containing class is a derived class. + // - The constructor declares parameter properties + // or the containing class declares instance member variables with initializers. var superCallShouldBeFirst = ts.forEach(node.parent.members, isInstancePropertyWithInitializer) || - ts.forEach(node.parameters, function (p) { return p.flags & (16 | 32 | 64); }); + ts.forEach(node.parameters, function (p) { return p.flags & (16 /* Public */ | 32 /* Private */ | 64 /* Protected */); }); if (superCallShouldBeFirst) { var statements = node.body.statements; - if (!statements.length || statements[0].kind !== 182 || !isSuperCallExpression(statements[0].expression)) { + if (!statements.length || statements[0].kind !== 182 /* ExpressionStatement */ || !isSuperCallExpression(statements[0].expression)) { error(node, ts.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties); } else { + // In such a required super call, it is a compile-time error for argument expressions to reference this. markThisReferencesAsErrors(statements[0].expression); } } @@ -15529,21 +18137,26 @@ var ts; } function checkAccessorDeclaration(node) { if (produceDiagnostics) { + // Grammar checking accessors checkGrammarFunctionLikeDeclaration(node) || checkGrammarAccessor(node) || checkGrammarComputedPropertyName(node.name); - if (node.kind === 136) { + if (node.kind === 136 /* GetAccessor */) { if (!ts.isInAmbientContext(node) && ts.nodeIsPresent(node.body) && !(bodyContainsAReturnStatement(node.body) || bodyContainsSingleThrowStatement(node.body))) { error(node.name, ts.Diagnostics.A_get_accessor_must_return_a_value_or_consist_of_a_single_throw_statement); } } if (!ts.hasDynamicName(node)) { - var otherKind = node.kind === 136 ? 137 : 136; + // TypeScript 1.0 spec (April 2014): 8.4.3 + // Accessors for the same member name must specify the same accessibility. + var otherKind = node.kind === 136 /* GetAccessor */ ? 137 /* SetAccessor */ : 136 /* GetAccessor */; var otherAccessor = ts.getDeclarationOfKind(node.symbol, otherKind); if (otherAccessor) { - if (((node.flags & 112) !== (otherAccessor.flags & 112))) { + if (((node.flags & 112 /* AccessibilityModifier */) !== (otherAccessor.flags & 112 /* AccessibilityModifier */))) { error(node.name, ts.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility); } var currentAccessorType = getAnnotatedAccessorType(node); var otherAccessorType = getAnnotatedAccessorType(otherAccessor); + // TypeScript 1.0 spec (April 2014): 4.5 + // If both accessors include type annotations, the specified types must be identical. if (currentAccessorType && otherAccessorType) { if (!isTypeIdenticalTo(currentAccessorType, otherAccessorType)) { error(node, ts.Diagnostics.get_and_set_accessor_must_have_the_same_type); @@ -15565,9 +18178,11 @@ var ts; return checkTypeReferenceOrHeritageClauseElement(node); } function checkTypeReferenceOrHeritageClauseElement(node) { + // Grammar checking checkGrammarTypeArguments(node, node.typeArguments); var type = getTypeFromTypeReferenceOrHeritageClauseElement(node); if (type !== unknownType && node.typeArguments) { + // Do type argument local checks only if referenced type is successfully resolved var len = node.typeArguments.length; for (var i = 0; i < len; i++) { checkSourceElement(node.typeArguments[i]); @@ -15594,6 +18209,7 @@ var ts; checkSourceElement(node.elementType); } function checkTupleType(node) { + // Grammar checking var hasErrorFromDisallowedTrailingComma = checkGrammarForDisallowedTrailingComma(node.elementTypes); if (!hasErrorFromDisallowedTrailingComma && node.elementTypes.length === 0) { grammarErrorOnNode(node, ts.Diagnostics.A_tuple_type_element_list_cannot_be_empty); @@ -15604,7 +18220,7 @@ var ts; ts.forEach(node.types, checkSourceElement); } function isPrivateWithinAmbient(node) { - return (node.flags & 32) && ts.isInAmbientContext(node); + return (node.flags & 32 /* Private */) && ts.isInAmbientContext(node); } function checkSpecializedSignatureDeclaration(signatureDeclarationNode) { if (!produceDiagnostics) { @@ -15614,14 +18230,21 @@ var ts; if (!signature.hasStringLiterals) { return; } + // TypeScript 1.0 spec (April 2014): 3.7.2.2 + // Specialized signatures are not permitted in conjunction with a function body if (ts.nodeIsPresent(signatureDeclarationNode.body)) { error(signatureDeclarationNode, ts.Diagnostics.A_signature_with_an_implementation_cannot_use_a_string_literal_type); return; } + // TypeScript 1.0 spec (April 2014): 3.7.2.4 + // Every specialized call or construct signature in an object type must be assignable + // to at least one non-specialized call or construct signature in the same object type var signaturesToCheck; - if (!signatureDeclarationNode.name && signatureDeclarationNode.parent && signatureDeclarationNode.parent.kind === 202) { - ts.Debug.assert(signatureDeclarationNode.kind === 138 || signatureDeclarationNode.kind === 139); - var signatureKind = signatureDeclarationNode.kind === 138 ? 0 : 1; + // Unnamed (call\construct) signatures in interfaces are inherited and not shadowed so examining just node symbol won't give complete answer. + // Use declaring type to obtain full list of signatures. + if (!signatureDeclarationNode.name && signatureDeclarationNode.parent && signatureDeclarationNode.parent.kind === 202 /* InterfaceDeclaration */) { + ts.Debug.assert(signatureDeclarationNode.kind === 138 /* CallSignature */ || signatureDeclarationNode.kind === 139 /* ConstructSignature */); + var signatureKind = signatureDeclarationNode.kind === 138 /* CallSignature */ ? 0 /* Call */ : 1 /* Construct */; var containingSymbol = getSymbolOfNode(signatureDeclarationNode.parent); var containingType = getDeclaredTypeOfSymbol(containingSymbol); signaturesToCheck = getSignaturesOfType(containingType, signatureKind); @@ -15639,11 +18262,12 @@ var ts; } function getEffectiveDeclarationFlags(n, flagsToCheck) { var flags = ts.getCombinedNodeFlags(n); - if (n.parent.kind !== 202 && ts.isInAmbientContext(n)) { - if (!(flags & 2)) { - flags |= 1; + if (n.parent.kind !== 202 /* InterfaceDeclaration */ && ts.isInAmbientContext(n)) { + if (!(flags & 2 /* Ambient */)) { + // It is nested in an ambient context, which means it is automatically exported + flags |= 1 /* Export */; } - flags |= 2; + flags |= 2 /* Ambient */; } return flags & flagsToCheck; } @@ -15652,22 +18276,29 @@ var ts; return; } function getCanonicalOverload(overloads, implementation) { + // Consider the canonical set of flags to be the flags of the bodyDeclaration or the first declaration + // Error on all deviations from this canonical set of flags + // The caveat is that if some overloads are defined in lib.d.ts, we don't want to + // report the errors on those. To achieve this, we will say that the implementation is + // the canonical signature only if it is in the same container as the first overload var implementationSharesContainerWithFirstOverload = implementation !== undefined && implementation.parent === overloads[0].parent; return implementationSharesContainerWithFirstOverload ? implementation : overloads[0]; } function checkFlagAgreementBetweenOverloads(overloads, implementation, flagsToCheck, someOverloadFlags, allOverloadFlags) { + // Error if some overloads have a flag that is not shared by all overloads. To find the + // deviations, we XOR someOverloadFlags with allOverloadFlags var someButNotAllOverloadFlags = someOverloadFlags ^ allOverloadFlags; if (someButNotAllOverloadFlags !== 0) { var canonicalFlags = getEffectiveDeclarationFlags(getCanonicalOverload(overloads, implementation), flagsToCheck); ts.forEach(overloads, function (o) { var deviation = getEffectiveDeclarationFlags(o, flagsToCheck) ^ canonicalFlags; - if (deviation & 1) { + if (deviation & 1 /* Export */) { error(o.name, ts.Diagnostics.Overload_signatures_must_all_be_exported_or_not_exported); } - else if (deviation & 2) { + else if (deviation & 2 /* Ambient */) { error(o.name, ts.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient); } - else if (deviation & (32 | 64)) { + else if (deviation & (32 /* Private */ | 64 /* Protected */)) { error(o.name, ts.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected); } }); @@ -15684,7 +18315,7 @@ var ts; }); } } - var flagsToCheck = 1 | 2 | 32 | 64; + var flagsToCheck = 1 /* Export */ | 2 /* Ambient */ | 32 /* Private */ | 64 /* Protected */; var someNodeFlags = 0; var allNodeFlags = flagsToCheck; var someHaveQuestionToken = false; @@ -15694,7 +18325,7 @@ var ts; var lastSeenNonAmbientDeclaration; var previousDeclaration; var declarations = symbol.declarations; - var isConstructor = (symbol.flags & 16384) !== 0; + var isConstructor = (symbol.flags & 16384 /* Constructor */) !== 0; function reportImplementationExpectedError(node) { if (node.name && ts.nodeIsMissing(node.name)) { return; @@ -15711,10 +18342,12 @@ var ts; if (subsequentNode) { if (subsequentNode.kind === node.kind) { var errorNode_1 = subsequentNode.name || subsequentNode; + // TODO(jfreeman): These are methods, so handle computed name case if (node.name && subsequentNode.name && node.name.text === subsequentNode.name.text) { - ts.Debug.assert(node.kind === 134 || node.kind === 133); - ts.Debug.assert((node.flags & 128) !== (subsequentNode.flags & 128)); - var diagnostic = node.flags & 128 ? ts.Diagnostics.Function_overload_must_be_static : ts.Diagnostics.Function_overload_must_not_be_static; + // the only situation when this is possible (same kind\same name but different symbol) - mixed static and instance class members + ts.Debug.assert(node.kind === 134 /* MethodDeclaration */ || node.kind === 133 /* MethodSignature */); + ts.Debug.assert((node.flags & 128 /* Static */) !== (subsequentNode.flags & 128 /* Static */)); + var diagnostic = node.flags & 128 /* Static */ ? ts.Diagnostics.Function_overload_must_be_static : ts.Diagnostics.Function_overload_must_not_be_static; error(errorNode_1, diagnostic); return; } @@ -15732,18 +18365,27 @@ var ts; error(errorNode, ts.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration); } } - var isExportSymbolInsideModule = symbol.parent && symbol.parent.flags & 1536; + // when checking exported function declarations across modules check only duplicate implementations + // names and consistency of modifiers are verified when we check local symbol + var isExportSymbolInsideModule = symbol.parent && symbol.parent.flags & 1536 /* Module */; var duplicateFunctionDeclaration = false; var multipleConstructorImplementation = false; for (var _i = 0; _i < declarations.length; _i++) { var current = declarations[_i]; var node = current; var inAmbientContext = ts.isInAmbientContext(node); - var inAmbientContextOrInterface = node.parent.kind === 202 || node.parent.kind === 145 || inAmbientContext; + var inAmbientContextOrInterface = node.parent.kind === 202 /* InterfaceDeclaration */ || node.parent.kind === 145 /* TypeLiteral */ || inAmbientContext; if (inAmbientContextOrInterface) { + // check if declarations are consecutive only if they are non-ambient + // 1. ambient declarations can be interleaved + // i.e. this is legal + // declare function foo(); + // declare function bar(); + // declare function foo(); + // 2. mixing ambient and non-ambient declarations is a separate error that will be reported - do not want to report an extra one previousDeclaration = undefined; } - if (node.kind === 200 || node.kind === 134 || node.kind === 133 || node.kind === 135) { + if (node.kind === 200 /* FunctionDeclaration */ || node.kind === 134 /* MethodDeclaration */ || node.kind === 133 /* MethodSignature */ || node.kind === 135 /* Constructor */) { var currentNodeFlags = getEffectiveDeclarationFlags(node, flagsToCheck); someNodeFlags |= currentNodeFlags; allNodeFlags &= currentNodeFlags; @@ -15793,7 +18435,23 @@ var ts; if (bodyDeclaration) { var signatures = getSignaturesOfSymbol(symbol); var bodySignature = getSignatureFromDeclaration(bodyDeclaration); + // If the implementation signature has string literals, we will have reported an error in + // checkSpecializedSignatureDeclaration if (!bodySignature.hasStringLiterals) { + // TypeScript 1.0 spec (April 2014): 6.1 + // If a function declaration includes overloads, the overloads determine the call + // signatures of the type given to the function object + // and the function implementation signature must be assignable to that type + // + // TypeScript 1.0 spec (April 2014): 3.8.4 + // Note that specialized call and construct signatures (section 3.7.2.4) are not significant when determining assignment compatibility + // Consider checking against specialized signatures too. Not doing so creates a type hole: + // + // function g(x: "hi", y: boolean); + // function g(x: string, y: {}); + // function g(x: string, y: string) { } + // + // The implementation is completely unrelated to the specialized signature, yet we do not check this. for (var _a = 0; _a < signatures.length; _a++) { var signature = signatures[_a]; if (!signature.hasStringLiterals && !isSignatureAssignableTo(bodySignature, signature)) { @@ -15809,21 +18467,30 @@ var ts; if (!produceDiagnostics) { return; } + // Exports should be checked only if enclosing module contains both exported and non exported declarations. + // In case if all declarations are non-exported check is unnecessary. + // if localSymbol is defined on node then node itself is exported - check is required var symbol = node.localSymbol; if (!symbol) { + // local symbol is undefined => this declaration is non-exported. + // however symbol might contain other declarations that are exported symbol = getSymbolOfNode(node); - if (!(symbol.flags & 7340032)) { + if (!(symbol.flags & 7340032 /* Export */)) { + // this is a pure local symbol (all declarations are non-exported) - no need to check anything return; } } + // run the check only for the first declaration in the list if (ts.getDeclarationOfKind(symbol, node.kind) !== node) { return; } + // we use SymbolFlags.ExportValue, SymbolFlags.ExportType and SymbolFlags.ExportNamespace + // to denote disjoint declarationSpaces (without making new enum type). var exportedDeclarationSpaces = 0; var nonExportedDeclarationSpaces = 0; ts.forEach(symbol.declarations, function (d) { var declarationSpaces = getDeclarationSpaces(d); - if (getEffectiveDeclarationFlags(d, 1)) { + if (getEffectiveDeclarationFlags(d, 1 /* Export */)) { exportedDeclarationSpaces |= declarationSpaces; } else { @@ -15832,6 +18499,7 @@ var ts; }); var commonDeclarationSpace = exportedDeclarationSpaces & nonExportedDeclarationSpaces; if (commonDeclarationSpace) { + // declaration spaces for exported and non-exported declarations intersect ts.forEach(symbol.declarations, function (d) { if (getDeclarationSpaces(d) & commonDeclarationSpace) { error(d.name, ts.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, ts.declarationNameToString(d.name)); @@ -15840,65 +18508,131 @@ var ts; } function getDeclarationSpaces(d) { switch (d.kind) { - case 202: - return 2097152; - case 205: - return d.name.kind === 8 || ts.getModuleInstanceState(d) !== 0 - ? 4194304 | 1048576 - : 4194304; - case 201: - case 204: - return 2097152 | 1048576; - case 208: + case 202 /* InterfaceDeclaration */: + return 2097152 /* ExportType */; + case 205 /* ModuleDeclaration */: + return d.name.kind === 8 /* StringLiteral */ || ts.getModuleInstanceState(d) !== 0 /* NonInstantiated */ + ? 4194304 /* ExportNamespace */ | 1048576 /* ExportValue */ + : 4194304 /* ExportNamespace */; + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + return 2097152 /* ExportType */ | 1048576 /* ExportValue */; + case 208 /* ImportEqualsDeclaration */: var result = 0; var target = resolveAlias(getSymbolOfNode(d)); ts.forEach(target.declarations, function (d) { result |= getDeclarationSpaces(d); }); return result; default: - return 1048576; + return 1048576 /* ExportValue */; } } } + /** Check a decorator */ function checkDecorator(node) { var expression = node.expression; var exprType = checkExpression(expression); switch (node.parent.kind) { - case 201: + case 201 /* ClassDeclaration */: var classSymbol = getSymbolOfNode(node.parent); var classConstructorType = getTypeOfSymbol(classSymbol); var classDecoratorType = instantiateSingleCallFunctionType(globalClassDecoratorType, [classConstructorType]); checkTypeAssignableTo(exprType, classDecoratorType, node); break; - case 132: + case 132 /* PropertyDeclaration */: checkTypeAssignableTo(exprType, globalPropertyDecoratorType, node); break; - case 134: - case 136: - case 137: + case 134 /* MethodDeclaration */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: var methodType = getTypeOfNode(node.parent); var methodDecoratorType = instantiateSingleCallFunctionType(globalMethodDecoratorType, [methodType]); checkTypeAssignableTo(exprType, methodDecoratorType, node); break; - case 129: + case 129 /* Parameter */: checkTypeAssignableTo(exprType, globalParameterDecoratorType, node); break; } } + /** Checks a type reference node as an expression. */ + function checkTypeNodeAsExpression(node) { + // When we are emitting type metadata for decorators, we need to try to check the type + // as if it were an expression so that we can emit the type in a value position when we + // serialize the type metadata. + if (node && node.kind === 141 /* TypeReference */) { + var type = getTypeFromTypeNodeOrHeritageClauseElement(node); + var shouldCheckIfUnknownType = type === unknownType && compilerOptions.separateCompilation; + if (!type || (!shouldCheckIfUnknownType && type.flags & (1048703 /* Intrinsic */ | 132 /* NumberLike */ | 258 /* StringLike */))) { + return; + } + if (shouldCheckIfUnknownType || type.symbol.valueDeclaration) { + checkExpressionOrQualifiedName(node.typeName); + } + } + } + /** + * Checks the type annotation of an accessor declaration or property declaration as + * an expression if it is a type reference to a type with a value declaration. + */ + function checkTypeAnnotationAsExpression(node) { + switch (node.kind) { + case 132 /* PropertyDeclaration */: + checkTypeNodeAsExpression(node.type); + break; + case 129 /* Parameter */: + checkTypeNodeAsExpression(node.type); + break; + case 134 /* MethodDeclaration */: + checkTypeNodeAsExpression(node.type); + break; + case 136 /* GetAccessor */: + checkTypeNodeAsExpression(node.type); + break; + case 137 /* SetAccessor */: + checkTypeNodeAsExpression(getSetAccessorTypeAnnotationNode(node)); + break; + } + } + /** Checks the type annotation of the parameters of a function/method or the constructor of a class as expressions */ + function checkParameterTypeAnnotationsAsExpressions(node) { + // ensure all type annotations with a value declaration are checked as an expression + for (var _i = 0, _a = node.parameters; _i < _a.length; _i++) { + var parameter = _a[_i]; + checkTypeAnnotationAsExpression(parameter); + } + } + /** Check the decorators of a node */ function checkDecorators(node) { if (!node.decorators) { return; } - switch (node.kind) { - case 201: - case 134: - case 136: - case 137: - case 132: - case 129: - emitDecorate = true; - break; - default: - return; + // skip this check for nodes that cannot have decorators. These should have already had an error reported by + // checkGrammarDecorators. + if (!ts.nodeCanBeDecorated(node)) { + return; + } + if (compilerOptions.emitDecoratorMetadata) { + // we only need to perform these checks if we are emitting serialized type metadata for the target of a decorator. + switch (node.kind) { + case 201 /* ClassDeclaration */: + var constructor = ts.getFirstConstructorWithBody(node); + if (constructor) { + checkParameterTypeAnnotationsAsExpressions(constructor); + } + break; + case 134 /* MethodDeclaration */: + checkParameterTypeAnnotationsAsExpressions(node); + // fall-through + case 137 /* SetAccessor */: + case 136 /* GetAccessor */: + case 132 /* PropertyDeclaration */: + case 129 /* Parameter */: + checkTypeAnnotationAsExpression(node); + break; + } + } + emitDecorate = true; + if (node.kind === 129 /* Parameter */) { + emitParam = true; } ts.forEach(node.decorators, checkDecorator); } @@ -15916,18 +18650,29 @@ var ts; function checkFunctionLikeDeclaration(node) { checkDecorators(node); checkSignatureDeclaration(node); - if (node.name && node.name.kind === 127) { + // Do not use hasDynamicName here, because that returns false for well known symbols. + // We want to perform checkComputedPropertyName for all computed properties, including + // well known symbols. + if (node.name && node.name.kind === 127 /* ComputedPropertyName */) { + // This check will account for methods in class/interface declarations, + // as well as accessors in classes/object literals checkComputedPropertyName(node.name); } if (!ts.hasDynamicName(node)) { + // first we want to check the local symbol that contain this declaration + // - if node.localSymbol !== undefined - this is current declaration is exported and localSymbol points to the local symbol + // - if node.localSymbol === undefined - this node is non-exported so we can just pick the result of getSymbolOfNode var symbol = getSymbolOfNode(node); var localSymbol = node.localSymbol || symbol; var firstDeclaration = ts.getDeclarationOfKind(localSymbol, node.kind); + // Only type check the symbol once if (node === firstDeclaration) { checkFunctionOrConstructorSymbol(localSymbol); } if (symbol.parent) { + // run check once for the first declaration if (ts.getDeclarationOfKind(symbol, node.kind) === node) { + // run check on export symbol to check that modifiers agree across all exported declarations checkFunctionOrConstructorSymbol(symbol); } } @@ -15936,20 +18681,24 @@ var ts; if (node.type && !isAccessor(node.kind)) { checkIfNonVoidFunctionHasReturnExpressionsOrSingleThrowStatment(node, getTypeFromTypeNodeOrHeritageClauseElement(node.type)); } + // Report an implicit any error if there is no body, no explicit return type, and node is not a private method + // in an ambient context if (compilerOptions.noImplicitAny && ts.nodeIsMissing(node.body) && !node.type && !isPrivateWithinAmbient(node)) { reportImplicitAnyError(node, anyType); } } function checkBlock(node) { - if (node.kind === 179) { + // Grammar checking for SyntaxKind.Block + if (node.kind === 179 /* Block */) { checkGrammarStatementInAmbientContext(node); } ts.forEach(node.statements, checkSourceElement); - if (ts.isFunctionBlock(node) || node.kind === 206) { + if (ts.isFunctionBlock(node) || node.kind === 206 /* ModuleBlock */) { checkFunctionExpressionBodies(node); } } function checkCollisionWithArgumentsInGeneratedCode(node) { + // no rest parameters \ declaration context \ overload - no codegen impact if (!ts.hasRestParameters(node) || ts.isInAmbientContext(node) || ts.nodeIsMissing(node.body)) { return; } @@ -15963,19 +18712,22 @@ var ts; if (!(identifier && identifier.text === name)) { return false; } - if (node.kind === 132 || - node.kind === 131 || - node.kind === 134 || - node.kind === 133 || - node.kind === 136 || - node.kind === 137) { + if (node.kind === 132 /* PropertyDeclaration */ || + node.kind === 131 /* PropertySignature */ || + node.kind === 134 /* MethodDeclaration */ || + node.kind === 133 /* MethodSignature */ || + node.kind === 136 /* GetAccessor */ || + node.kind === 137 /* SetAccessor */) { + // it is ok to have member named '_super' or '_this' - member access is always qualified return false; } if (ts.isInAmbientContext(node)) { + // ambient context - no codegen impact return false; } var root = getRootDeclaration(node); - if (root.kind === 129 && ts.nodeIsMissing(root.parent.body)) { + if (root.kind === 129 /* Parameter */ && ts.nodeIsMissing(root.parent.body)) { + // just an overload - no codegen impact return false; } return true; @@ -15985,11 +18737,12 @@ var ts; potentialThisCollisions.push(node); } } + // this function will run after checking the source file so 'CaptureThis' is correct for all nodes function checkIfThisIsCapturedInEnclosingScope(node) { var current = node; while (current) { - if (getNodeCheckFlags(current) & 4) { - var isDeclaration_1 = node.kind !== 65; + if (getNodeCheckFlags(current) & 4 /* CaptureThis */) { + var isDeclaration_1 = node.kind !== 65 /* Identifier */; if (isDeclaration_1) { error(node.name, ts.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference); } @@ -16005,12 +18758,14 @@ var ts; if (!needCollisionCheckForIdentifier(node, name, "_super")) { return; } - var enclosingClass = ts.getAncestor(node, 201); + // bubble up and find containing type + var enclosingClass = ts.getAncestor(node, 201 /* ClassDeclaration */); + // if containing type was not found or it is ambient - exit (no codegen) if (!enclosingClass || ts.isInAmbientContext(enclosingClass)) { return; } if (ts.getClassExtendsHeritageClauseElement(enclosingClass)) { - var isDeclaration_2 = node.kind !== 65; + var isDeclaration_2 = node.kind !== 65 /* Identifier */; if (isDeclaration_2) { error(node, ts.Diagnostics.Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference); } @@ -16023,11 +18778,14 @@ var ts; if (!needCollisionCheckForIdentifier(node, name, "require") && !needCollisionCheckForIdentifier(node, name, "exports")) { return; } - if (node.kind === 205 && ts.getModuleInstanceState(node) !== 1) { + // Uninstantiated modules shouldnt do this check + if (node.kind === 205 /* ModuleDeclaration */ && ts.getModuleInstanceState(node) !== 1 /* Instantiated */) { return; } + // In case of variable declaration, node.parent is variable statement so look at the variable statement's parent var parent = getDeclarationContainer(node); - if (parent.kind === 227 && ts.isExternalModule(parent)) { + if (parent.kind === 227 /* SourceFile */ && ts.isExternalModule(parent)) { + // If the declaration happens to be in external module, report error that require and exports are reserved keywords error(name, ts.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_an_external_module, ts.declarationNameToString(name), ts.declarationNameToString(name)); } } @@ -16035,28 +18793,57 @@ var ts; // - ScriptBody : StatementList // It is a Syntax Error if any element of the LexicallyDeclaredNames of StatementList // also occurs in the VarDeclaredNames of StatementList. - if ((ts.getCombinedNodeFlags(node) & 12288) !== 0 || isParameterDeclaration(node)) { + // - Block : { StatementList } + // It is a Syntax Error if any element of the LexicallyDeclaredNames of StatementList + // also occurs in the VarDeclaredNames of StatementList. + // Variable declarations are hoisted to the top of their function scope. They can shadow + // block scoped declarations, which bind tighter. this will not be flagged as duplicate definition + // by the binder as the declaration scope is different. + // A non-initialized declaration is a no-op as the block declaration will resolve before the var + // declaration. the problem is if the declaration has an initializer. this will act as a write to the + // block declared value. this is fine for let, but not const. + // Only consider declarations with initializers, uninitialized let declarations will not + // step on a let/const variable. + // Do not consider let and const declarations, as duplicate block-scoped declarations + // are handled by the binder. + // We are only looking for let declarations that step on let\const declarations from a + // different scope. e.g.: + // { + // const x = 0; // localDeclarationSymbol obtained after name resolution will correspond to this declaration + // let x = 0; // symbol for this declaration will be 'symbol' + // } + // skip block-scoped variables and parameters + if ((ts.getCombinedNodeFlags(node) & 12288 /* BlockScoped */) !== 0 || isParameterDeclaration(node)) { return; } - if (node.kind === 198 && !node.initializer) { + // skip variable declarations that don't have initializers + // NOTE: in ES6 spec initializer is required in variable declarations where name is binding pattern + // so we'll always treat binding elements as initialized + if (node.kind === 198 /* VariableDeclaration */ && !node.initializer) { return; } var symbol = getSymbolOfNode(node); - if (symbol.flags & 1) { - var localDeclarationSymbol = resolveName(node, node.name.text, 3, undefined, undefined); + if (symbol.flags & 1 /* FunctionScopedVariable */) { + var localDeclarationSymbol = resolveName(node, node.name.text, 3 /* Variable */, undefined, undefined); if (localDeclarationSymbol && localDeclarationSymbol !== symbol && - localDeclarationSymbol.flags & 2) { - if (getDeclarationFlagsFromSymbol(localDeclarationSymbol) & 12288) { - var varDeclList = ts.getAncestor(localDeclarationSymbol.valueDeclaration, 199); - var container = varDeclList.parent.kind === 180 && varDeclList.parent.parent + localDeclarationSymbol.flags & 2 /* BlockScopedVariable */) { + if (getDeclarationFlagsFromSymbol(localDeclarationSymbol) & 12288 /* BlockScoped */) { + var varDeclList = ts.getAncestor(localDeclarationSymbol.valueDeclaration, 199 /* VariableDeclarationList */); + var container = varDeclList.parent.kind === 180 /* VariableStatement */ && varDeclList.parent.parent ? varDeclList.parent.parent : undefined; + // names of block-scoped and function scoped variables can collide only + // if block scoped variable is defined in the function\module\source file scope (because of variable hoisting) var namesShareScope = container && - (container.kind === 179 && ts.isFunctionLike(container.parent) || - container.kind === 206 || - container.kind === 205 || - container.kind === 227); + (container.kind === 179 /* Block */ && ts.isFunctionLike(container.parent) || + container.kind === 206 /* ModuleBlock */ || + container.kind === 205 /* ModuleDeclaration */ || + container.kind === 227 /* SourceFile */); + // here we know that function scoped variable is shadowed by block scoped one + // if they are defined in the same scope - binder has already reported redeclaration error + // otherwise if variable has an initializer - show error that initialization will fail + // since LHS will be block scoped name instead of function scoped if (!namesShareScope) { var name_9 = symbolToString(localDeclarationSymbol); error(node, ts.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name_9, name_9); @@ -16066,27 +18853,31 @@ var ts; } } function isParameterDeclaration(node) { - while (node.kind === 152) { + while (node.kind === 152 /* BindingElement */) { node = node.parent.parent; } - return node.kind === 129; + return node.kind === 129 /* Parameter */; } + // Check that a parameter initializer contains no references to parameters declared to the right of itself function checkParameterInitializer(node) { - if (getRootDeclaration(node).kind !== 129) { + if (getRootDeclaration(node).kind !== 129 /* Parameter */) { return; } var func = ts.getContainingFunction(node); visit(node.initializer); function visit(n) { - if (n.kind === 65) { + if (n.kind === 65 /* Identifier */) { var referencedSymbol = getNodeLinks(n).resolvedSymbol; - if (referencedSymbol && referencedSymbol !== unknownSymbol && getSymbol(func.locals, referencedSymbol.name, 107455) === referencedSymbol) { - if (referencedSymbol.valueDeclaration.kind === 129) { + // check FunctionLikeDeclaration.locals (stores parameters\function local variable) + // if it contains entry with a specified name and if this entry matches the resolved symbol + if (referencedSymbol && referencedSymbol !== unknownSymbol && getSymbol(func.locals, referencedSymbol.name, 107455 /* Value */) === referencedSymbol) { + if (referencedSymbol.valueDeclaration.kind === 129 /* Parameter */) { if (referencedSymbol.valueDeclaration === node) { error(n, ts.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer, ts.declarationNameToString(node.name)); return; } if (referencedSymbol.valueDeclaration.pos < node.pos) { + // legal case - parameter initializer references some parameter strictly on left of current parameter declaration return; } } @@ -16098,22 +18889,30 @@ var ts; } } } + // Check variable, parameter, or property declaration function checkVariableLikeDeclaration(node) { checkDecorators(node); checkSourceElement(node.type); - if (node.name.kind === 127) { + // For a computed property, just check the initializer and exit + // Do not use hasDynamicName here, because that returns false for well known symbols. + // We want to perform checkComputedPropertyName for all computed properties, including + // well known symbols. + if (node.name.kind === 127 /* ComputedPropertyName */) { checkComputedPropertyName(node.name); if (node.initializer) { checkExpressionCached(node.initializer); } } + // For a binding pattern, check contained binding elements if (ts.isBindingPattern(node.name)) { ts.forEach(node.name.elements, checkSourceElement); } - if (node.initializer && getRootDeclaration(node).kind === 129 && ts.nodeIsMissing(ts.getContainingFunction(node).body)) { + // For a parameter declaration with an initializer, error and exit if the containing function doesn't have a body + if (node.initializer && getRootDeclaration(node).kind === 129 /* Parameter */ && ts.nodeIsMissing(ts.getContainingFunction(node).body)) { error(node, ts.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation); return; } + // For a binding pattern, validate the initializer and exit if (ts.isBindingPattern(node.name)) { if (node.initializer) { checkTypeAssignableTo(checkExpressionCached(node.initializer), getWidenedTypeForVariableLikeDeclaration(node), node, undefined); @@ -16124,12 +18923,15 @@ var ts; var symbol = getSymbolOfNode(node); var type = getTypeOfVariableOrParameterOrProperty(symbol); if (node === symbol.valueDeclaration) { + // Node is the primary declaration of the symbol, just validate the initializer if (node.initializer) { checkTypeAssignableTo(checkExpressionCached(node.initializer), type, node, undefined); checkParameterInitializer(node); } } else { + // Node is a secondary declaration, check that type is identical to primary declaration and check that + // initializer is consistent with type associated with the node var declarationType = getWidenedTypeForVariableLikeDeclaration(node); if (type !== unknownType && declarationType !== unknownType && !isTypeIdenticalTo(type, declarationType)) { error(node.name, ts.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2, ts.declarationNameToString(node.name), typeToString(type), typeToString(declarationType)); @@ -16138,9 +18940,10 @@ var ts; checkTypeAssignableTo(checkExpressionCached(node.initializer), declarationType, node, undefined); } } - if (node.kind !== 132 && node.kind !== 131) { + if (node.kind !== 132 /* PropertyDeclaration */ && node.kind !== 131 /* PropertySignature */) { + // We know we don't have a binding pattern or computed name here checkExportsOnMergedDeclarations(node); - if (node.kind === 198 || node.kind === 152) { + if (node.kind === 198 /* VariableDeclaration */ || node.kind === 152 /* BindingElement */) { checkVarDeclaredNamesNotShadowed(node); } checkCollisionWithCapturedSuperVariable(node, node.name); @@ -16157,6 +18960,7 @@ var ts; return checkVariableLikeDeclaration(node); } function checkVariableStatement(node) { + // Grammar checking checkGrammarDecorators(node) || checkGrammarDisallowedModifiersInBlockOrObjectLiteralExpression(node) || checkGrammarModifiers(node) || checkGrammarVariableDeclarationList(node.declarationList) || checkGrammarForDisallowedLetOrConstStatement(node); ts.forEach(node.declarationList.declarations, checkSourceElement); } @@ -16169,40 +18973,45 @@ var ts; } function inBlockOrObjectLiteralExpression(node) { while (node) { - if (node.kind === 179 || node.kind === 154) { + if (node.kind === 179 /* Block */ || node.kind === 154 /* ObjectLiteralExpression */) { return true; } node = node.parent; } } function checkExpressionStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node); checkExpression(node.expression); } function checkIfStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node); checkExpression(node.expression); checkSourceElement(node.thenStatement); checkSourceElement(node.elseStatement); } function checkDoStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node); checkSourceElement(node.statement); checkExpression(node.expression); } function checkWhileStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node); checkExpression(node.expression); checkSourceElement(node.statement); } function checkForStatement(node) { + // Grammar checking if (!checkGrammarStatementInAmbientContext(node)) { - if (node.initializer && node.initializer.kind == 199) { + if (node.initializer && node.initializer.kind == 199 /* VariableDeclarationList */) { checkGrammarVariableDeclarationList(node.initializer); } } if (node.initializer) { - if (node.initializer.kind === 199) { + if (node.initializer.kind === 199 /* VariableDeclarationList */) { ts.forEach(node.initializer.declarations, checkVariableDeclaration); } else { @@ -16217,18 +19026,32 @@ var ts; } function checkForOfStatement(node) { checkGrammarForInOrForOfStatement(node); - if (node.initializer.kind === 199) { + // Check the LHS and RHS + // If the LHS is a declaration, just check it as a variable declaration, which will in turn check the RHS + // via checkRightHandSideOfForOf. + // If the LHS is an expression, check the LHS, as a destructuring assignment or as a reference. + // Then check that the RHS is assignable to it. + if (node.initializer.kind === 199 /* VariableDeclarationList */) { checkForInOrForOfVariableDeclaration(node); } else { var varExpr = node.initializer; var iteratedType = checkRightHandSideOfForOf(node.expression); - if (varExpr.kind === 153 || varExpr.kind === 154) { + // There may be a destructuring assignment on the left side + if (varExpr.kind === 153 /* ArrayLiteralExpression */ || varExpr.kind === 154 /* ObjectLiteralExpression */) { + // iteratedType may be undefined. In this case, we still want to check the structure of + // varExpr, in particular making sure it's a valid LeftHandSideExpression. But we'd like + // to short circuit the type relation checking as much as possible, so we pass the unknownType. checkDestructuringAssignment(varExpr, iteratedType || unknownType); } else { var leftType = checkExpression(varExpr); - checkReferenceExpression(varExpr, ts.Diagnostics.Invalid_left_hand_side_in_for_of_statement, ts.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_be_a_previously_defined_constant); + checkReferenceExpression(varExpr, ts.Diagnostics.Invalid_left_hand_side_in_for_of_statement, + /*constantVariableMessage*/ ts.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_be_a_previously_defined_constant); + // iteratedType will be undefined if the rightType was missing properties/signatures + // required to get its iteratedType (like [Symbol.iterator] or next). This may be + // because we accessed properties from anyType, or it may have led to an error inside + // getIteratedType. if (iteratedType) { checkTypeAssignableTo(iteratedType, leftType, varExpr, undefined); } @@ -16237,8 +19060,14 @@ var ts; checkSourceElement(node.statement); } function checkForInStatement(node) { + // Grammar checking checkGrammarForInOrForOfStatement(node); - if (node.initializer.kind === 199) { + // TypeScript 1.0 spec (April 2014): 5.4 + // In a 'for-in' statement of the form + // for (let VarDecl in Expr) Statement + // VarDecl must be a variable declaration without a type annotation that declares a variable of type Any, + // and Expr must be an expression of type Any, an object type, or a type parameter type. + if (node.initializer.kind === 199 /* VariableDeclarationList */) { var variable = node.initializer.declarations[0]; if (variable && ts.isBindingPattern(variable.name)) { error(variable.name, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); @@ -16246,26 +19075,34 @@ var ts; checkForInOrForOfVariableDeclaration(node); } else { + // In a 'for-in' statement of the form + // for (Var in Expr) Statement + // Var must be an expression classified as a reference of type Any or the String primitive type, + // and Expr must be an expression of type Any, an object type, or a type parameter type. var varExpr = node.initializer; var leftType = checkExpression(varExpr); - if (varExpr.kind === 153 || varExpr.kind === 154) { + if (varExpr.kind === 153 /* ArrayLiteralExpression */ || varExpr.kind === 154 /* ObjectLiteralExpression */) { error(varExpr, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); } - else if (!allConstituentTypesHaveKind(leftType, 1 | 258)) { + else if (!allConstituentTypesHaveKind(leftType, 1 /* Any */ | 258 /* StringLike */)) { error(varExpr, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any); } else { + // run check only former check succeeded to avoid cascading errors checkReferenceExpression(varExpr, ts.Diagnostics.Invalid_left_hand_side_in_for_in_statement, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_previously_defined_constant); } } var rightType = checkExpression(node.expression); - if (!allConstituentTypesHaveKind(rightType, 1 | 48128 | 512)) { + // unknownType is returned i.e. if node.expression is identifier whose name cannot be resolved + // in this case error about missing name is already reported - do not report extra one + if (!allConstituentTypesHaveKind(rightType, 1 /* Any */ | 48128 /* ObjectType */ | 512 /* TypeParameter */)) { error(node.expression, ts.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter); } checkSourceElement(node.statement); } function checkForInOrForOfVariableDeclaration(iterationStatement) { var variableDeclarationList = iterationStatement.initializer; + // checkGrammarForInOrForOfStatement will check that there is exactly one declaration. if (variableDeclarationList.declarations.length >= 1) { var decl = variableDeclarationList.declarations[0]; checkVariableDeclaration(decl); @@ -16273,21 +19110,34 @@ var ts; } function checkRightHandSideOfForOf(rhsExpression) { var expressionType = getTypeOfExpression(rhsExpression); - return languageVersion >= 2 - ? checkIteratedType(expressionType, rhsExpression) - : checkElementTypeOfArrayOrString(expressionType, rhsExpression); + return checkIteratedTypeOrElementType(expressionType, rhsExpression, true); } - function checkIteratedType(iterable, expressionForError) { - ts.Debug.assert(languageVersion >= 2); - var iteratedType = getIteratedType(iterable, expressionForError); - if (expressionForError && iteratedType) { - var completeIterableType = globalIterableType !== emptyObjectType - ? createTypeReference(globalIterableType, [iteratedType]) - : emptyObjectType; - checkTypeAssignableTo(iterable, completeIterableType, expressionForError); + function checkIteratedTypeOrElementType(inputType, errorNode, allowStringInput) { + if (languageVersion >= 2 /* ES6 */) { + return checkIteratedType(inputType, errorNode) || anyType; + } + if (allowStringInput) { + return checkElementTypeOfArrayOrString(inputType, errorNode); + } + if (isArrayLikeType(inputType)) { + return getIndexTypeOfType(inputType, 1 /* Number */); + } + error(errorNode, ts.Diagnostics.Type_0_is_not_an_array_type, typeToString(inputType)); + return unknownType; + } + /** + * When errorNode is undefined, it means we should not report any errors. + */ + function checkIteratedType(iterable, errorNode) { + ts.Debug.assert(languageVersion >= 2 /* ES6 */); + var iteratedType = getIteratedType(iterable, errorNode); + // Now even though we have extracted the iteratedType, we will have to validate that the type + // passed in is actually an Iterable. + if (errorNode && iteratedType) { + checkTypeAssignableTo(iterable, createIterableType(iteratedType), errorNode); } return iteratedType; - function getIteratedType(iterable, expressionForError) { + function getIteratedType(iterable, errorNode) { // We want to treat type as an iterable, and get the type it is an iterable of. The iterable // must have the following structure (annotated with the names of the variables below): // @@ -16313,75 +19163,106 @@ var ts; // caller requested it. Then the caller can decide what to do in the case where there is no iterated // type. This is different from returning anyType, because that would signify that we have matched the // whole pattern and that T (above) is 'any'. - if (allConstituentTypesHaveKind(iterable, 1)) { + if (allConstituentTypesHaveKind(iterable, 1 /* Any */)) { return undefined; } + // As an optimization, if the type is instantiated directly using the globalIterableType (Iterable), + // then just grab its type argument. + if ((iterable.flags & 4096 /* Reference */) && iterable.target === globalIterableType) { + return iterable.typeArguments[0]; + } var iteratorFunction = getTypeOfPropertyOfType(iterable, ts.getPropertyNameForKnownSymbolName("iterator")); - if (iteratorFunction && allConstituentTypesHaveKind(iteratorFunction, 1)) { + if (iteratorFunction && allConstituentTypesHaveKind(iteratorFunction, 1 /* Any */)) { return undefined; } - var iteratorFunctionSignatures = iteratorFunction ? getSignaturesOfType(iteratorFunction, 0) : emptyArray; + var iteratorFunctionSignatures = iteratorFunction ? getSignaturesOfType(iteratorFunction, 0 /* Call */) : emptyArray; if (iteratorFunctionSignatures.length === 0) { - if (expressionForError) { - error(expressionForError, ts.Diagnostics.The_right_hand_side_of_a_for_of_statement_must_have_a_Symbol_iterator_method_that_returns_an_iterator); + if (errorNode) { + error(errorNode, ts.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator); } return undefined; } var iterator = getUnionType(ts.map(iteratorFunctionSignatures, getReturnTypeOfSignature)); - if (allConstituentTypesHaveKind(iterator, 1)) { + if (allConstituentTypesHaveKind(iterator, 1 /* Any */)) { return undefined; } var iteratorNextFunction = getTypeOfPropertyOfType(iterator, "next"); - if (iteratorNextFunction && allConstituentTypesHaveKind(iteratorNextFunction, 1)) { + if (iteratorNextFunction && allConstituentTypesHaveKind(iteratorNextFunction, 1 /* Any */)) { return undefined; } - var iteratorNextFunctionSignatures = iteratorNextFunction ? getSignaturesOfType(iteratorNextFunction, 0) : emptyArray; + var iteratorNextFunctionSignatures = iteratorNextFunction ? getSignaturesOfType(iteratorNextFunction, 0 /* Call */) : emptyArray; if (iteratorNextFunctionSignatures.length === 0) { - if (expressionForError) { - error(expressionForError, ts.Diagnostics.The_iterator_returned_by_the_right_hand_side_of_a_for_of_statement_must_have_a_next_method); + if (errorNode) { + error(errorNode, ts.Diagnostics.An_iterator_must_have_a_next_method); } return undefined; } var iteratorNextResult = getUnionType(ts.map(iteratorNextFunctionSignatures, getReturnTypeOfSignature)); - if (allConstituentTypesHaveKind(iteratorNextResult, 1)) { + if (allConstituentTypesHaveKind(iteratorNextResult, 1 /* Any */)) { return undefined; } var iteratorNextValue = getTypeOfPropertyOfType(iteratorNextResult, "value"); if (!iteratorNextValue) { - if (expressionForError) { - error(expressionForError, ts.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property); + if (errorNode) { + error(errorNode, ts.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property); } return undefined; } return iteratorNextValue; } } - function checkElementTypeOfArrayOrString(arrayOrStringType, expressionForError) { - ts.Debug.assert(languageVersion < 2); - var arrayType = removeTypesFromUnionType(arrayOrStringType, 258, true, true); + /** + * This function does the following steps: + * 1. Break up arrayOrStringType (possibly a union) into its string constituents and array constituents. + * 2. Take the element types of the array constituents. + * 3. Return the union of the element types, and string if there was a string constitutent. + * + * For example: + * string -> string + * number[] -> number + * string[] | number[] -> string | number + * string | number[] -> string | number + * string | string[] | number[] -> string | number + * + * It also errors if: + * 1. Some constituent is neither a string nor an array. + * 2. Some constituent is a string and target is less than ES5 (because in ES3 string is not indexable). + */ + function checkElementTypeOfArrayOrString(arrayOrStringType, errorNode) { + ts.Debug.assert(languageVersion < 2 /* ES6 */); + // After we remove all types that are StringLike, we will know if there was a string constituent + // based on whether the remaining type is the same as the initial type. + var arrayType = removeTypesFromUnionType(arrayOrStringType, 258 /* StringLike */, true, true); var hasStringConstituent = arrayOrStringType !== arrayType; var reportedError = false; if (hasStringConstituent) { - if (languageVersion < 1) { - error(expressionForError, ts.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); + if (languageVersion < 1 /* ES5 */) { + error(errorNode, ts.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); reportedError = true; } + // Now that we've removed all the StringLike types, if no constituents remain, then the entire + // arrayOrStringType was a string. if (arrayType === emptyObjectType) { return stringType; } } if (!isArrayLikeType(arrayType)) { if (!reportedError) { + // Which error we report depends on whether there was a string constituent. For example, + // if the input type is number | string, we want to say that number is not an array type. + // But if the input was just number, we want to say that number is not an array type + // or a string type. var diagnostic = hasStringConstituent ? ts.Diagnostics.Type_0_is_not_an_array_type : ts.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type; - error(expressionForError, diagnostic, typeToString(arrayType)); + error(errorNode, diagnostic, typeToString(arrayType)); } return hasStringConstituent ? stringType : unknownType; } - var arrayElementType = getIndexTypeOfType(arrayType, 1) || unknownType; + var arrayElementType = getIndexTypeOfType(arrayType, 1 /* Number */) || unknownType; if (hasStringConstituent) { - if (arrayElementType.flags & 258) { + // This is just an optimization for the case where arrayOrStringType is string | string[] + if (arrayElementType.flags & 258 /* StringLike */) { return stringType; } return getUnionType([arrayElementType, stringType]); @@ -16389,12 +19270,15 @@ var ts; return arrayElementType; } function checkBreakOrContinueStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node) || checkGrammarBreakOrContinueStatement(node); + // TODO: Check that target label is valid } function isGetAccessorWithAnnotatatedSetAccessor(node) { - return !!(node.kind === 136 && getSetAccessorTypeAnnotationNode(ts.getDeclarationOfKind(node.symbol, 137))); + return !!(node.kind === 136 /* GetAccessor */ && getSetAccessorTypeAnnotationNode(ts.getDeclarationOfKind(node.symbol, 137 /* SetAccessor */))); } function checkReturnStatement(node) { + // Grammar checking if (!checkGrammarStatementInAmbientContext(node)) { var functionBlock = ts.getContainingFunction(node); if (!functionBlock) { @@ -16406,11 +19290,11 @@ var ts; if (func) { var returnType = getReturnTypeOfSignature(getSignatureFromDeclaration(func)); var exprType = checkExpressionCached(node.expression); - if (func.kind === 137) { + if (func.kind === 137 /* SetAccessor */) { error(node.expression, ts.Diagnostics.Setters_cannot_return_a_value); } else { - if (func.kind === 135) { + if (func.kind === 135 /* Constructor */) { if (!isTypeAssignableTo(exprType, returnType)) { error(node.expression, ts.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); } @@ -16423,8 +19307,9 @@ var ts; } } function checkWithStatement(node) { + // Grammar checking for withStatement if (!checkGrammarStatementInAmbientContext(node)) { - if (node.parserContextFlags & 1) { + if (node.parserContextFlags & 1 /* StrictMode */) { grammarErrorOnFirstToken(node, ts.Diagnostics.with_statements_are_not_allowed_in_strict_mode); } } @@ -16432,12 +19317,14 @@ var ts; error(node.expression, ts.Diagnostics.All_symbols_within_a_with_block_will_be_resolved_to_any); } function checkSwitchStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node); var firstDefaultClause; var hasDuplicateDefaultClause = false; var expressionType = checkExpression(node.expression); ts.forEach(node.caseBlock.clauses, function (clause) { - if (clause.kind === 221 && !hasDuplicateDefaultClause) { + // Grammar check for duplicate default clauses, skip if we already report duplicate default clause + if (clause.kind === 221 /* DefaultClause */ && !hasDuplicateDefaultClause) { if (firstDefaultClause === undefined) { firstDefaultClause = clause; } @@ -16449,10 +19336,13 @@ var ts; hasDuplicateDefaultClause = true; } } - if (produceDiagnostics && clause.kind === 220) { + if (produceDiagnostics && clause.kind === 220 /* CaseClause */) { var caseClause = clause; + // TypeScript 1.0 spec (April 2014):5.9 + // In a 'switch' statement, each 'case' expression must be of a type that is assignable to or from the type of the 'switch' expression. var caseType = checkExpression(caseClause.expression); if (!isTypeAssignableTo(expressionType, caseType)) { + // check 'expressionType isAssignableTo caseType' failed, try the reversed check and report errors if it fails checkTypeAssignableTo(caseType, expressionType, caseClause.expression, undefined); } } @@ -16460,13 +19350,14 @@ var ts; }); } function checkLabeledStatement(node) { + // Grammar checking if (!checkGrammarStatementInAmbientContext(node)) { var current = node.parent; while (current) { if (ts.isFunctionLike(current)) { break; } - if (current.kind === 194 && current.label.text === node.label.text) { + if (current.kind === 194 /* LabeledStatement */ && current.label.text === node.label.text) { var sourceFile = ts.getSourceFileOfNode(node); grammarErrorOnNode(node.label, ts.Diagnostics.Duplicate_label_0, ts.getTextOfNodeFromSourceText(sourceFile.text, node.label)); break; @@ -16474,9 +19365,11 @@ var ts; current = current.parent; } } + // ensure that label is unique checkSourceElement(node.statement); } function checkThrowStatement(node) { + // Grammar checking if (!checkGrammarStatementInAmbientContext(node)) { if (node.expression === undefined) { grammarErrorAfterFirstToken(node, ts.Diagnostics.Line_break_not_permitted_here); @@ -16487,12 +19380,14 @@ var ts; } } function checkTryStatement(node) { + // Grammar checking checkGrammarStatementInAmbientContext(node); checkBlock(node.tryBlock); var catchClause = node.catchClause; if (catchClause) { + // Grammar checking if (catchClause.variableDeclaration) { - if (catchClause.variableDeclaration.name.kind !== 65) { + if (catchClause.variableDeclaration.name.kind !== 65 /* Identifier */) { grammarErrorOnFirstToken(catchClause.variableDeclaration.name, ts.Diagnostics.Catch_clause_variable_name_must_be_an_identifier); } else if (catchClause.variableDeclaration.type) { @@ -16506,10 +19401,12 @@ var ts; var locals = catchClause.block.locals; if (locals && ts.hasProperty(locals, identifierName)) { var localSymbol = locals[identifierName]; - if (localSymbol && (localSymbol.flags & 2) !== 0) { + if (localSymbol && (localSymbol.flags & 2 /* BlockScopedVariable */) !== 0) { grammarErrorOnNode(localSymbol.valueDeclaration, ts.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause, identifierName); } } + // It is a SyntaxError if a TryStatement with a Catch occurs within strict code and the Identifier of the + // Catch production is eval or arguments checkGrammarEvalOrArgumentsInStrictMode(node, catchClause.variableDeclaration.name); } } @@ -16520,24 +19417,27 @@ var ts; } } function checkIndexConstraints(type) { - var declaredNumberIndexer = getIndexDeclarationOfSymbol(type.symbol, 1); - var declaredStringIndexer = getIndexDeclarationOfSymbol(type.symbol, 0); - var stringIndexType = getIndexTypeOfType(type, 0); - var numberIndexType = getIndexTypeOfType(type, 1); + var declaredNumberIndexer = getIndexDeclarationOfSymbol(type.symbol, 1 /* Number */); + var declaredStringIndexer = getIndexDeclarationOfSymbol(type.symbol, 0 /* String */); + var stringIndexType = getIndexTypeOfType(type, 0 /* String */); + var numberIndexType = getIndexTypeOfType(type, 1 /* Number */); if (stringIndexType || numberIndexType) { ts.forEach(getPropertiesOfObjectType(type), function (prop) { var propType = getTypeOfSymbol(prop); - checkIndexConstraintForProperty(prop, propType, type, declaredStringIndexer, stringIndexType, 0); - checkIndexConstraintForProperty(prop, propType, type, declaredNumberIndexer, numberIndexType, 1); + checkIndexConstraintForProperty(prop, propType, type, declaredStringIndexer, stringIndexType, 0 /* String */); + checkIndexConstraintForProperty(prop, propType, type, declaredNumberIndexer, numberIndexType, 1 /* Number */); }); - if (type.flags & 1024 && type.symbol.valueDeclaration.kind === 201) { + if (type.flags & 1024 /* Class */ && type.symbol.valueDeclaration.kind === 201 /* ClassDeclaration */) { var classDeclaration = type.symbol.valueDeclaration; for (var _i = 0, _a = classDeclaration.members; _i < _a.length; _i++) { var member = _a[_i]; - if (!(member.flags & 128) && ts.hasDynamicName(member)) { + // Only process instance properties with computed names here. + // Static properties cannot be in conflict with indexers, + // and properties with literal names were already checked. + if (!(member.flags & 128 /* Static */) && ts.hasDynamicName(member)) { var propType = getTypeOfSymbol(member.symbol); - checkIndexConstraintForProperty(member.symbol, propType, type, declaredStringIndexer, stringIndexType, 0); - checkIndexConstraintForProperty(member.symbol, propType, type, declaredNumberIndexer, numberIndexType, 1); + checkIndexConstraintForProperty(member.symbol, propType, type, declaredStringIndexer, stringIndexType, 0 /* String */); + checkIndexConstraintForProperty(member.symbol, propType, type, declaredNumberIndexer, numberIndexType, 1 /* Number */); } } } @@ -16545,8 +19445,9 @@ var ts; var errorNode; if (stringIndexType && numberIndexType) { errorNode = declaredNumberIndexer || declaredStringIndexer; - if (!errorNode && (type.flags & 2048)) { - var someBaseTypeHasBothIndexers = ts.forEach(type.baseTypes, function (base) { return getIndexTypeOfType(base, 0) && getIndexTypeOfType(base, 1); }); + // condition 'errorNode === undefined' may appear if types does not declare nor string neither number indexer + if (!errorNode && (type.flags & 2048 /* Interface */)) { + var someBaseTypeHasBothIndexers = ts.forEach(type.baseTypes, function (base) { return getIndexTypeOfType(base, 0 /* String */) && getIndexTypeOfType(base, 1 /* Number */); }); errorNode = someBaseTypeHasBothIndexers ? undefined : type.symbol.declarations[0]; } } @@ -16557,22 +19458,28 @@ var ts; if (!indexType) { return; } - if (indexKind === 1 && !isNumericName(prop.valueDeclaration.name)) { + // index is numeric and property name is not valid numeric literal + if (indexKind === 1 /* Number */ && !isNumericName(prop.valueDeclaration.name)) { return; } + // perform property check if property or indexer is declared in 'type' + // this allows to rule out cases when both property and indexer are inherited from the base class var errorNode; - if (prop.valueDeclaration.name.kind === 127 || prop.parent === containingType.symbol) { + if (prop.valueDeclaration.name.kind === 127 /* ComputedPropertyName */ || prop.parent === containingType.symbol) { errorNode = prop.valueDeclaration; } else if (indexDeclaration) { errorNode = indexDeclaration; } - else if (containingType.flags & 2048) { + else if (containingType.flags & 2048 /* Interface */) { + // for interfaces property and indexer might be inherited from different bases + // check if any base class already has both property and indexer. + // check should be performed only if 'type' is the first type that brings property\indexer together var someBaseClassHasBothPropertyAndIndexer = ts.forEach(containingType.baseTypes, function (base) { return getPropertyOfObjectType(base, prop.name) && getIndexTypeOfType(base, indexKind); }); errorNode = someBaseClassHasBothPropertyAndIndexer ? undefined : containingType.symbol.declarations[0]; } if (errorNode && !isTypeAssignableTo(propertyType, indexType)) { - var errorMessage = indexKind === 0 + var errorMessage = indexKind === 0 /* String */ ? ts.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2 : ts.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2; error(errorNode, errorMessage, symbolToString(prop), typeToString(propertyType), typeToString(indexType)); @@ -16580,6 +19487,8 @@ var ts; } } function checkTypeNameIsReserved(name, message) { + // TS 1.0 spec (April 2014): 3.6.1 + // The predefined type keywords are reserved and cannot be used as names of user defined types. switch (name.text) { case "any": case "number": @@ -16590,6 +19499,7 @@ var ts; error(name, message, name.text); } } + // Check each type parameter and check that list has no duplicate type parameter declarations function checkTypeParameters(typeParameterDeclarations) { if (typeParameterDeclarations) { for (var i = 0, n = typeParameterDeclarations.length; i < n; i++) { @@ -16611,9 +19521,13 @@ var ts; return unknownType; } function checkClassDeclaration(node) { - if (node.parent.kind !== 206 && node.parent.kind !== 227) { + // Grammar checking + if (node.parent.kind !== 206 /* ModuleBlock */ && node.parent.kind !== 227 /* SourceFile */) { grammarErrorOnNode(node, ts.Diagnostics.class_declarations_are_only_supported_directly_inside_a_module_or_as_a_top_level_declaration); } + if (!node.name && !(node.flags & 256 /* Default */)) { + grammarErrorOnFirstToken(node, ts.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name); + } checkGrammarClassDeclarationHeritageClauses(node); checkDecorators(node); if (node.name) { @@ -16640,13 +19554,14 @@ var ts; checkTypeAssignableTo(type, baseType, node.name || node, ts.Diagnostics.Class_0_incorrectly_extends_base_class_1); var staticBaseType = getTypeOfSymbol(baseType.symbol); checkTypeAssignableTo(staticType, getTypeWithoutConstructors(staticBaseType), node.name || node, ts.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1); - if (baseType.symbol !== resolveEntityName(baseTypeNode.expression, 107455)) { + if (baseType.symbol !== resolveEntityName(baseTypeNode.expression, 107455 /* Value */)) { error(baseTypeNode, ts.Diagnostics.Type_name_0_in_extends_clause_does_not_reference_constructor_function_for_0, typeToString(baseType)); } checkKindsOfPropertyMemberOverrides(type, baseType); } } if (type.baseTypes.length || (baseTypeNode && compilerOptions.separateCompilation)) { + // Check that base type can be evaluated as expression checkExpressionOrQualifiedName(baseTypeNode.expression); } var implementedTypeNodes = ts.getClassImplementsHeritageClauseElements(node); @@ -16659,8 +19574,8 @@ var ts; if (produceDiagnostics) { var t = getTypeFromHeritageClauseElement(typeRefNode); if (t !== unknownType) { - var declaredType = (t.flags & 4096) ? t.target : t; - if (declaredType.flags & (1024 | 2048)) { + var declaredType = (t.flags & 4096 /* Reference */) ? t.target : t; + if (declaredType.flags & (1024 /* Class */ | 2048 /* Interface */)) { checkTypeAssignableTo(type, t, node.name || node, ts.Diagnostics.Class_0_incorrectly_implements_interface_1); } else { @@ -16677,7 +19592,9 @@ var ts; } } function getTargetSymbol(s) { - return s.flags & 16777216 ? getSymbolLinks(s).target : s; + // if symbol is instantiated its flags are not copied from the 'target' + // so we'll need to get back original 'target' symbol to work with correct set of flags + return s.flags & 16777216 /* Instantiated */ ? getSymbolLinks(s).target : s; } function checkKindsOfPropertyMemberOverrides(type, baseType) { // TypeScript 1.0 spec (April 2014): 8.2.3 @@ -16693,43 +19610,47 @@ var ts; // but not by other kinds of members. // Base class instance member variables and accessors can be overridden by // derived class instance member variables and accessors, but not by other kinds of members. + // NOTE: assignability is checked in checkClassDeclaration var baseProperties = getPropertiesOfObjectType(baseType); for (var _i = 0; _i < baseProperties.length; _i++) { var baseProperty = baseProperties[_i]; var base = getTargetSymbol(baseProperty); - if (base.flags & 134217728) { + if (base.flags & 134217728 /* Prototype */) { continue; } var derived = getTargetSymbol(getPropertyOfObjectType(type, base.name)); if (derived) { var baseDeclarationFlags = getDeclarationFlagsFromSymbol(base); var derivedDeclarationFlags = getDeclarationFlagsFromSymbol(derived); - if ((baseDeclarationFlags & 32) || (derivedDeclarationFlags & 32)) { + if ((baseDeclarationFlags & 32 /* Private */) || (derivedDeclarationFlags & 32 /* Private */)) { + // either base or derived property is private - not override, skip it continue; } - if ((baseDeclarationFlags & 128) !== (derivedDeclarationFlags & 128)) { + if ((baseDeclarationFlags & 128 /* Static */) !== (derivedDeclarationFlags & 128 /* Static */)) { + // value of 'static' is not the same for properties - not override, skip it continue; } - if ((base.flags & derived.flags & 8192) || ((base.flags & 98308) && (derived.flags & 98308))) { + if ((base.flags & derived.flags & 8192 /* Method */) || ((base.flags & 98308 /* PropertyOrAccessor */) && (derived.flags & 98308 /* PropertyOrAccessor */))) { + // method is overridden with method or property/accessor is overridden with property/accessor - correct case continue; } var errorMessage = void 0; - if (base.flags & 8192) { - if (derived.flags & 98304) { + if (base.flags & 8192 /* Method */) { + if (derived.flags & 98304 /* Accessor */) { errorMessage = ts.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor; } else { - ts.Debug.assert((derived.flags & 4) !== 0); + ts.Debug.assert((derived.flags & 4 /* Property */) !== 0); errorMessage = ts.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property; } } - else if (base.flags & 4) { - ts.Debug.assert((derived.flags & 8192) !== 0); + else if (base.flags & 4 /* Property */) { + ts.Debug.assert((derived.flags & 8192 /* Method */) !== 0); errorMessage = ts.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function; } else { - ts.Debug.assert((base.flags & 98304) !== 0); - ts.Debug.assert((derived.flags & 8192) !== 0); + ts.Debug.assert((base.flags & 98304 /* Accessor */) !== 0); + ts.Debug.assert((derived.flags & 8192 /* Method */) !== 0); errorMessage = ts.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function; } error(derived.valueDeclaration.name, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type)); @@ -16737,7 +19658,7 @@ var ts; } } function isAccessor(kind) { - return kind === 136 || kind === 137; + return kind === 136 /* GetAccessor */ || kind === 137 /* SetAccessor */; } function areTypeParametersIdentical(list1, list2) { if (!list1 && !list2) { @@ -16746,6 +19667,9 @@ var ts; if (!list1 || !list2 || list1.length !== list2.length) { return false; } + // TypeScript 1.0 spec (April 2014): + // When a generic interface has multiple declarations, all declarations must have identical type parameter + // lists, i.e. identical type parameter names with identical constraints in identical order. for (var i = 0, len = list1.length; i < len; i++) { var tp1 = list1[i]; var tp2 = list2[i]; @@ -16796,20 +19720,23 @@ var ts; return ok; } function checkInterfaceDeclaration(node) { + // Grammar checking checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarInterfaceDeclaration(node); checkTypeParameters(node.typeParameters); if (produceDiagnostics) { checkTypeNameIsReserved(node.name, ts.Diagnostics.Interface_name_cannot_be_0); checkExportsOnMergedDeclarations(node); var symbol = getSymbolOfNode(node); - var firstInterfaceDecl = ts.getDeclarationOfKind(symbol, 202); + var firstInterfaceDecl = ts.getDeclarationOfKind(symbol, 202 /* InterfaceDeclaration */); if (symbol.declarations.length > 1) { if (node !== firstInterfaceDecl && !areTypeParametersIdentical(firstInterfaceDecl.typeParameters, node.typeParameters)) { error(node.name, ts.Diagnostics.All_declarations_of_an_interface_must_have_identical_type_parameters); } } + // Only check this symbol once if (node === firstInterfaceDecl) { var type = getDeclaredTypeOfSymbol(symbol); + // run subsequent checks only if first set succeeded if (checkInheritedPropertiesAreIdentical(type, node.name)) { ts.forEach(type.baseTypes, function (baseType) { checkTypeAssignableTo(type, baseType, node.name, ts.Diagnostics.Interface_0_incorrectly_extends_interface_1); @@ -16830,20 +19757,21 @@ var ts; } } function checkTypeAliasDeclaration(node) { + // Grammar checking checkGrammarDecorators(node) || checkGrammarModifiers(node); checkTypeNameIsReserved(node.name, ts.Diagnostics.Type_alias_name_cannot_be_0); checkSourceElement(node.type); } function computeEnumMemberValues(node) { var nodeLinks = getNodeLinks(node); - if (!(nodeLinks.flags & 128)) { + if (!(nodeLinks.flags & 128 /* EnumValuesComputed */)) { var enumSymbol = getSymbolOfNode(node); var enumType = getDeclaredTypeOfSymbol(enumSymbol); var autoValue = 0; var ambient = ts.isInAmbientContext(node); var enumIsConst = ts.isConst(node); ts.forEach(node.members, function (member) { - if (member.name.kind !== 127 && isNumericLiteralName(member.name.text)) { + if (member.name.kind !== 127 /* ComputedPropertyName */ && isNumericLiteralName(member.name.text)) { error(member.name, ts.Diagnostics.An_enum_member_cannot_have_a_numeric_name); } var initializer = member.initializer; @@ -16854,6 +19782,10 @@ var ts; error(initializer, ts.Diagnostics.In_const_enum_declarations_member_initializer_must_be_constant_expression); } else if (!ambient) { + // Only here do we need to check that the initializer is assignable to the enum type. + // If it is a constant value (not undefined), it is syntactically constrained to be a number. + // Also, we do not need to check this for ambients because there is already + // a syntax error if it is not a constant. checkTypeAssignableTo(checkExpression(initializer), enumType, initializer, undefined); } } @@ -16873,24 +19805,24 @@ var ts; getNodeLinks(member).enumMemberValue = autoValue++; } }); - nodeLinks.flags |= 128; + nodeLinks.flags |= 128 /* EnumValuesComputed */; } function getConstantValueForEnumMemberInitializer(initializer) { return evalConstant(initializer); function evalConstant(e) { switch (e.kind) { - case 167: + case 167 /* PrefixUnaryExpression */: var value = evalConstant(e.operand); if (value === undefined) { return undefined; } switch (e.operator) { - case 33: return value; - case 34: return -value; - case 47: return ~value; + case 33 /* PlusToken */: return value; + case 34 /* MinusToken */: return -value; + case 47 /* TildeToken */: return ~value; } return undefined; - case 169: + case 169 /* BinaryExpression */: var left = evalConstant(e.left); if (left === undefined) { return undefined; @@ -16900,39 +19832,41 @@ var ts; return undefined; } switch (e.operatorToken.kind) { - case 44: return left | right; - case 43: return left & right; - case 41: return left >> right; - case 42: return left >>> right; - case 40: return left << right; - case 45: return left ^ right; - case 35: return left * right; - case 36: return left / right; - case 33: return left + right; - case 34: return left - right; - case 37: return left % right; + case 44 /* BarToken */: return left | right; + case 43 /* AmpersandToken */: return left & right; + case 41 /* GreaterThanGreaterThanToken */: return left >> right; + case 42 /* GreaterThanGreaterThanGreaterThanToken */: return left >>> right; + case 40 /* LessThanLessThanToken */: return left << right; + case 45 /* CaretToken */: return left ^ right; + case 35 /* AsteriskToken */: return left * right; + case 36 /* SlashToken */: return left / right; + case 33 /* PlusToken */: return left + right; + case 34 /* MinusToken */: return left - right; + case 37 /* PercentToken */: return left % right; } return undefined; - case 7: + case 7 /* NumericLiteral */: return +e.text; - case 161: + case 161 /* ParenthesizedExpression */: return evalConstant(e.expression); - case 65: - case 156: - case 155: + case 65 /* Identifier */: + case 156 /* ElementAccessExpression */: + case 155 /* PropertyAccessExpression */: var member = initializer.parent; var currentType = getTypeOfSymbol(getSymbolOfNode(member.parent)); var enumType; var propertyName; - if (e.kind === 65) { + if (e.kind === 65 /* Identifier */) { + // unqualified names can refer to member that reside in different declaration of the enum so just doing name resolution won't work. + // instead pick current enum type and later try to fetch member from the type enumType = currentType; propertyName = e.text; } else { var expression; - if (e.kind === 156) { + if (e.kind === 156 /* ElementAccessExpression */) { if (e.argumentExpression === undefined || - e.argumentExpression.kind !== 8) { + e.argumentExpression.kind !== 8 /* StringLiteral */) { return undefined; } expression = e.expression; @@ -16942,12 +19876,13 @@ var ts; expression = e.expression; propertyName = e.name.text; } + // expression part in ElementAccess\PropertyAccess should be either identifier or dottedName var current = expression; while (current) { - if (current.kind === 65) { + if (current.kind === 65 /* Identifier */) { break; } - else if (current.kind === 155) { + else if (current.kind === 155 /* PropertyAccessExpression */) { current = current.expression; } else { @@ -16955,7 +19890,8 @@ var ts; } } enumType = checkExpression(expression); - if (!(enumType.symbol && (enumType.symbol.flags & 384))) { + // allow references to constant members of other enums + if (!(enumType.symbol && (enumType.symbol.flags & 384 /* Enum */))) { return undefined; } } @@ -16963,13 +19899,15 @@ var ts; return undefined; } var property = getPropertyOfObjectType(enumType, propertyName); - if (!property || !(property.flags & 8)) { + if (!property || !(property.flags & 8 /* EnumMember */)) { return undefined; } var propertyDecl = property.valueDeclaration; + // self references are illegal if (member === propertyDecl) { return undefined; } + // illegal case: forward reference if (!isDefinedBefore(propertyDecl, member)) { return undefined; } @@ -16982,6 +19920,7 @@ var ts; if (!produceDiagnostics) { return; } + // Grammar checking checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarEnumDeclaration(node); checkTypeNameIsReserved(node.name, ts.Diagnostics.Enum_name_cannot_be_0); checkCollisionWithCapturedThisVariable(node, node.name); @@ -16992,10 +19931,17 @@ var ts; if (compilerOptions.separateCompilation && enumIsConst && ts.isInAmbientContext(node)) { error(node.name, ts.Diagnostics.Ambient_const_enums_are_not_allowed_when_the_separateCompilation_flag_is_provided); } + // Spec 2014 - Section 9.3: + // It isn't possible for one enum declaration to continue the automatic numbering sequence of another, + // and when an enum type has multiple declarations, only one declaration is permitted to omit a value + // for the first member. + // + // Only perform this check once per symbol var enumSymbol = getSymbolOfNode(node); var firstDeclaration = ts.getDeclarationOfKind(enumSymbol, node.kind); if (node === firstDeclaration) { if (enumSymbol.declarations.length > 1) { + // check that const is placed\omitted on all enum declarations ts.forEach(enumSymbol.declarations, function (decl) { if (ts.isConstEnumDeclaration(decl) !== enumIsConst) { error(decl.name, ts.Diagnostics.Enum_declarations_must_all_be_const_or_non_const); @@ -17004,7 +19950,8 @@ var ts; } var seenEnumMissingInitialInitializer = false; ts.forEach(enumSymbol.declarations, function (declaration) { - if (declaration.kind !== 204) { + // return true if we hit a violation of the rule, false otherwise + if (declaration.kind !== 204 /* EnumDeclaration */) { return false; } var enumDeclaration = declaration; @@ -17027,7 +19974,7 @@ var ts; var declarations = symbol.declarations; for (var _i = 0; _i < declarations.length; _i++) { var declaration = declarations[_i]; - if ((declaration.kind === 201 || (declaration.kind === 200 && ts.nodeIsPresent(declaration.body))) && !ts.isInAmbientContext(declaration)) { + if ((declaration.kind === 201 /* ClassDeclaration */ || (declaration.kind === 200 /* FunctionDeclaration */ && ts.nodeIsPresent(declaration.body))) && !ts.isInAmbientContext(declaration)) { return declaration; } } @@ -17035,8 +19982,9 @@ var ts; } function checkModuleDeclaration(node) { if (produceDiagnostics) { + // Grammar checking if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node)) { - if (!ts.isInAmbientContext(node) && node.name.kind === 8) { + if (!ts.isInAmbientContext(node) && node.name.kind === 8 /* StringLiteral */) { grammarErrorOnNode(node.name, ts.Diagnostics.Only_ambient_modules_can_use_quoted_names); } } @@ -17044,7 +19992,8 @@ var ts; checkCollisionWithRequireExportsInGeneratedCode(node, node.name); checkExportsOnMergedDeclarations(node); var symbol = getSymbolOfNode(node); - if (symbol.flags & 512 + // The following checks only apply on a non-ambient instantiated module declaration. + if (symbol.flags & 512 /* ValueModule */ && symbol.declarations.length > 1 && !ts.isInAmbientContext(node) && ts.isInstantiatedModule(node, compilerOptions.preserveConstEnums || compilerOptions.separateCompilation)) { @@ -17058,7 +20007,8 @@ var ts; } } } - if (node.name.kind === 8) { + // Checks for ambient external modules. + if (node.name.kind === 8 /* StringLiteral */) { if (!isGlobalSourceFile(node.parent)) { error(node.name, ts.Diagnostics.Ambient_external_modules_cannot_be_nested_in_other_modules); } @@ -17071,33 +20021,37 @@ var ts; } function getFirstIdentifier(node) { while (true) { - if (node.kind === 126) { + if (node.kind === 126 /* QualifiedName */) { node = node.left; } - else if (node.kind === 155) { + else if (node.kind === 155 /* PropertyAccessExpression */) { node = node.expression; } else { break; } } - ts.Debug.assert(node.kind === 65); + ts.Debug.assert(node.kind === 65 /* Identifier */); return node; } function checkExternalImportOrExportDeclaration(node) { var moduleName = ts.getExternalModuleName(node); - if (!ts.nodeIsMissing(moduleName) && moduleName.kind !== 8) { + if (!ts.nodeIsMissing(moduleName) && moduleName.kind !== 8 /* StringLiteral */) { error(moduleName, ts.Diagnostics.String_literal_expected); return false; } - var inAmbientExternalModule = node.parent.kind === 206 && node.parent.parent.name.kind === 8; - if (node.parent.kind !== 227 && !inAmbientExternalModule) { - error(moduleName, node.kind === 215 ? + var inAmbientExternalModule = node.parent.kind === 206 /* ModuleBlock */ && node.parent.parent.name.kind === 8 /* StringLiteral */; + if (node.parent.kind !== 227 /* SourceFile */ && !inAmbientExternalModule) { + error(moduleName, node.kind === 215 /* ExportDeclaration */ ? ts.Diagnostics.Export_declarations_are_not_permitted_in_an_internal_module : ts.Diagnostics.Import_declarations_in_an_internal_module_cannot_reference_an_external_module); return false; } if (inAmbientExternalModule && isExternalModuleNameRelative(moduleName.text)) { + // TypeScript 1.0 spec (April 2013): 12.1.6 + // An ExternalImportDeclaration in an AmbientExternalModuleDeclaration may reference + // other external modules only through top - level external module names. + // Relative external module names are not permitted. error(node, ts.Diagnostics.Import_or_export_declaration_in_an_ambient_external_module_declaration_cannot_reference_external_module_through_relative_external_module_name); return false; } @@ -17107,11 +20061,11 @@ var ts; var symbol = getSymbolOfNode(node); var target = resolveAlias(symbol); if (target !== unknownSymbol) { - var excludedMeanings = (symbol.flags & 107455 ? 107455 : 0) | - (symbol.flags & 793056 ? 793056 : 0) | - (symbol.flags & 1536 ? 1536 : 0); + var excludedMeanings = (symbol.flags & 107455 /* Value */ ? 107455 /* Value */ : 0) | + (symbol.flags & 793056 /* Type */ ? 793056 /* Type */ : 0) | + (symbol.flags & 1536 /* Namespace */ ? 1536 /* Namespace */ : 0); if (target.flags & excludedMeanings) { - var message = node.kind === 217 ? + var message = node.kind === 217 /* ExportSpecifier */ ? ts.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : ts.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; error(node, message, symbolToString(symbol)); @@ -17124,7 +20078,7 @@ var ts; checkAliasSymbol(node); } function checkImportDeclaration(node) { - if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499)) { + if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499 /* Modifier */)) { grammarErrorOnFirstToken(node, ts.Diagnostics.An_import_declaration_cannot_have_modifiers); } if (checkExternalImportOrExportDeclaration(node)) { @@ -17134,7 +20088,7 @@ var ts; checkImportBinding(importClause); } if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 211) { + if (importClause.namedBindings.kind === 211 /* NamespaceImport */) { checkImportBinding(importClause.namedBindings); } else { @@ -17148,43 +20102,48 @@ var ts; checkGrammarDecorators(node) || checkGrammarModifiers(node); if (ts.isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) { checkImportBinding(node); - if (node.flags & 1) { + if (node.flags & 1 /* Export */) { markExportAsReferenced(node); } if (ts.isInternalModuleImportEqualsDeclaration(node)) { var target = resolveAlias(getSymbolOfNode(node)); if (target !== unknownSymbol) { - if (target.flags & 107455) { + if (target.flags & 107455 /* Value */) { + // Target is a value symbol, check that it is not hidden by a local declaration with the same name var moduleName = getFirstIdentifier(node.moduleReference); - if (!(resolveEntityName(moduleName, 107455 | 1536).flags & 1536)) { + if (!(resolveEntityName(moduleName, 107455 /* Value */ | 1536 /* Namespace */).flags & 1536 /* Namespace */)) { error(moduleName, ts.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, ts.declarationNameToString(moduleName)); } } - if (target.flags & 793056) { + if (target.flags & 793056 /* Type */) { checkTypeNameIsReserved(node.name, ts.Diagnostics.Import_name_cannot_be_0); } } } else { - if (languageVersion >= 2) { + if (languageVersion >= 2 /* ES6 */) { + // Import equals declaration is deprecated in es6 or above grammarErrorOnNode(node, ts.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_or_import_d_from_mod_instead); } } } } function checkExportDeclaration(node) { - if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499)) { + if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499 /* Modifier */)) { grammarErrorOnFirstToken(node, ts.Diagnostics.An_export_declaration_cannot_have_modifiers); } if (!node.moduleSpecifier || checkExternalImportOrExportDeclaration(node)) { if (node.exportClause) { + // export { x, y } + // export { x, y } from "foo" ts.forEach(node.exportClause.elements, checkExportSpecifier); - var inAmbientExternalModule = node.parent.kind === 206 && node.parent.parent.name.kind === 8; - if (node.parent.kind !== 227 && !inAmbientExternalModule) { + var inAmbientExternalModule = node.parent.kind === 206 /* ModuleBlock */ && node.parent.parent.name.kind === 8 /* StringLiteral */; + if (node.parent.kind !== 227 /* SourceFile */ && !inAmbientExternalModule) { error(node, ts.Diagnostics.Export_declarations_are_not_permitted_in_an_internal_module); } } else { + // export * from "foo" var moduleSymbol = resolveExternalModuleName(node, node.moduleSpecifier); if (moduleSymbol && moduleSymbol.exports["export="]) { error(node.moduleSpecifier, ts.Diagnostics.External_module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol)); @@ -17199,38 +20158,32 @@ var ts; } } function checkExportAssignment(node) { - var container = node.parent.kind === 227 ? node.parent : node.parent.parent; - if (container.kind === 205 && container.name.kind === 65) { + var container = node.parent.kind === 227 /* SourceFile */ ? node.parent : node.parent.parent; + if (container.kind === 205 /* ModuleDeclaration */ && container.name.kind === 65 /* Identifier */) { error(node, ts.Diagnostics.An_export_assignment_cannot_be_used_in_an_internal_module); return; } - if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499)) { + // Grammar checking + if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & 499 /* Modifier */)) { grammarErrorOnFirstToken(node, ts.Diagnostics.An_export_assignment_cannot_have_modifiers); } - if (node.expression) { - if (node.expression.kind === 65) { - markExportAsReferenced(node); - } - else { - checkExpressionCached(node.expression); - } + if (node.expression.kind === 65 /* Identifier */) { + markExportAsReferenced(node); } - if (node.type) { - checkSourceElement(node.type); - if (!ts.isInAmbientContext(node)) { - grammarErrorOnFirstToken(node.type, ts.Diagnostics.A_type_annotation_on_an_export_statement_is_only_allowed_in_an_ambient_external_module_declaration); - } + else { + checkExpressionCached(node.expression); } checkExternalModuleExports(container); - if (node.isExportEquals && languageVersion >= 2) { + if (node.isExportEquals && languageVersion >= 2 /* ES6 */) { + // export assignment is deprecated in es6 or above grammarErrorOnNode(node, ts.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_export_default_instead); } } function getModuleStatements(node) { - if (node.kind === 227) { + if (node.kind === 227 /* SourceFile */) { return node.statements; } - if (node.kind === 205 && node.body.kind === 206) { + if (node.kind === 205 /* ModuleDeclaration */ && node.body.kind === 206 /* ModuleBlock */) { return node.body.statements; } return emptyArray; @@ -17259,187 +20212,196 @@ var ts; if (!node) return; switch (node.kind) { - case 128: + case 128 /* TypeParameter */: return checkTypeParameter(node); - case 129: + case 129 /* Parameter */: return checkParameter(node); - case 132: - case 131: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: return checkPropertyDeclaration(node); - case 142: - case 143: - case 138: - case 139: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: return checkSignatureDeclaration(node); - case 140: + case 140 /* IndexSignature */: return checkSignatureDeclaration(node); - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return checkMethodDeclaration(node); - case 135: + case 135 /* Constructor */: return checkConstructorDeclaration(node); - case 136: - case 137: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: return checkAccessorDeclaration(node); - case 141: + case 141 /* TypeReference */: return checkTypeReferenceNode(node); - case 144: + case 144 /* TypeQuery */: return checkTypeQuery(node); - case 145: + case 145 /* TypeLiteral */: return checkTypeLiteral(node); - case 146: + case 146 /* ArrayType */: return checkArrayType(node); - case 147: + case 147 /* TupleType */: return checkTupleType(node); - case 148: + case 148 /* UnionType */: return checkUnionType(node); - case 149: + case 149 /* ParenthesizedType */: return checkSourceElement(node.type); - case 200: + case 200 /* FunctionDeclaration */: return checkFunctionDeclaration(node); - case 179: - case 206: + case 179 /* Block */: + case 206 /* ModuleBlock */: return checkBlock(node); - case 180: + case 180 /* VariableStatement */: return checkVariableStatement(node); - case 182: + case 182 /* ExpressionStatement */: return checkExpressionStatement(node); - case 183: + case 183 /* IfStatement */: return checkIfStatement(node); - case 184: + case 184 /* DoStatement */: return checkDoStatement(node); - case 185: + case 185 /* WhileStatement */: return checkWhileStatement(node); - case 186: + case 186 /* ForStatement */: return checkForStatement(node); - case 187: + case 187 /* ForInStatement */: return checkForInStatement(node); - case 188: + case 188 /* ForOfStatement */: return checkForOfStatement(node); - case 189: - case 190: + case 189 /* ContinueStatement */: + case 190 /* BreakStatement */: return checkBreakOrContinueStatement(node); - case 191: + case 191 /* ReturnStatement */: return checkReturnStatement(node); - case 192: + case 192 /* WithStatement */: return checkWithStatement(node); - case 193: + case 193 /* SwitchStatement */: return checkSwitchStatement(node); - case 194: + case 194 /* LabeledStatement */: return checkLabeledStatement(node); - case 195: + case 195 /* ThrowStatement */: return checkThrowStatement(node); - case 196: + case 196 /* TryStatement */: return checkTryStatement(node); - case 198: + case 198 /* VariableDeclaration */: return checkVariableDeclaration(node); - case 152: + case 152 /* BindingElement */: return checkBindingElement(node); - case 201: + case 201 /* ClassDeclaration */: return checkClassDeclaration(node); - case 202: + case 202 /* InterfaceDeclaration */: return checkInterfaceDeclaration(node); - case 203: + case 203 /* TypeAliasDeclaration */: return checkTypeAliasDeclaration(node); - case 204: + case 204 /* EnumDeclaration */: return checkEnumDeclaration(node); - case 205: + case 205 /* ModuleDeclaration */: return checkModuleDeclaration(node); - case 209: + case 209 /* ImportDeclaration */: return checkImportDeclaration(node); - case 208: + case 208 /* ImportEqualsDeclaration */: return checkImportEqualsDeclaration(node); - case 215: + case 215 /* ExportDeclaration */: return checkExportDeclaration(node); - case 214: + case 214 /* ExportAssignment */: return checkExportAssignment(node); - case 181: + case 181 /* EmptyStatement */: checkGrammarStatementInAmbientContext(node); return; - case 197: + case 197 /* DebuggerStatement */: checkGrammarStatementInAmbientContext(node); return; - case 218: + case 218 /* MissingDeclaration */: return checkMissingDeclaration(node); } } + // Function expression bodies are checked after all statements in the enclosing body. This is to ensure + // constructs like the following are permitted: + // let foo = function () { + // let s = foo(); + // return "hello"; + // } + // Here, performing a full type check of the body of the function expression whilst in the process of + // determining the type of foo would cause foo to be given type any because of the recursive reference. + // Delaying the type check of the body ensures foo has been assigned a type. function checkFunctionExpressionBodies(node) { switch (node.kind) { - case 162: - case 163: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: ts.forEach(node.parameters, checkFunctionExpressionBodies); checkFunctionExpressionOrObjectLiteralMethodBody(node); break; - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: ts.forEach(node.parameters, checkFunctionExpressionBodies); if (ts.isObjectLiteralMethod(node)) { checkFunctionExpressionOrObjectLiteralMethodBody(node); } break; - case 135: - case 136: - case 137: - case 200: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 200 /* FunctionDeclaration */: ts.forEach(node.parameters, checkFunctionExpressionBodies); break; - case 192: + case 192 /* WithStatement */: checkFunctionExpressionBodies(node.expression); break; - case 129: - case 132: - case 131: - case 150: - case 151: - case 152: - case 153: - case 154: - case 224: - case 155: - case 156: - case 157: - case 158: - case 159: - case 171: - case 176: - case 160: - case 161: - case 165: - case 166: - case 164: - case 167: - case 168: - case 169: - case 170: - case 173: - case 179: - case 206: - case 180: - case 182: - case 183: - case 184: - case 185: - case 186: - case 187: - case 188: - case 189: - case 190: - case 191: - case 193: - case 207: - case 220: - case 221: - case 194: - case 195: - case 196: - case 223: - case 198: - case 199: - case 201: - case 204: - case 226: - case 214: - case 227: + case 129 /* Parameter */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 150 /* ObjectBindingPattern */: + case 151 /* ArrayBindingPattern */: + case 152 /* BindingElement */: + case 153 /* ArrayLiteralExpression */: + case 154 /* ObjectLiteralExpression */: + case 224 /* PropertyAssignment */: + case 155 /* PropertyAccessExpression */: + case 156 /* ElementAccessExpression */: + case 157 /* CallExpression */: + case 158 /* NewExpression */: + case 159 /* TaggedTemplateExpression */: + case 171 /* TemplateExpression */: + case 176 /* TemplateSpan */: + case 160 /* TypeAssertionExpression */: + case 161 /* ParenthesizedExpression */: + case 165 /* TypeOfExpression */: + case 166 /* VoidExpression */: + case 164 /* DeleteExpression */: + case 167 /* PrefixUnaryExpression */: + case 168 /* PostfixUnaryExpression */: + case 169 /* BinaryExpression */: + case 170 /* ConditionalExpression */: + case 173 /* SpreadElementExpression */: + case 179 /* Block */: + case 206 /* ModuleBlock */: + case 180 /* VariableStatement */: + case 182 /* ExpressionStatement */: + case 183 /* IfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 189 /* ContinueStatement */: + case 190 /* BreakStatement */: + case 191 /* ReturnStatement */: + case 193 /* SwitchStatement */: + case 207 /* CaseBlock */: + case 220 /* CaseClause */: + case 221 /* DefaultClause */: + case 194 /* LabeledStatement */: + case 195 /* ThrowStatement */: + case 196 /* TryStatement */: + case 223 /* CatchClause */: + case 198 /* VariableDeclaration */: + case 199 /* VariableDeclarationList */: + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + case 226 /* EnumMember */: + case 214 /* ExportAssignment */: + case 227 /* SourceFile */: ts.forEachChild(node, checkFunctionExpressionBodies); break; } @@ -17449,9 +20411,11 @@ var ts; checkSourceFileWorker(node); ts.checkTime += new Date().getTime() - start; } + // Fully type check a source file and collect the relevant diagnostics. function checkSourceFileWorker(node) { var links = getNodeLinks(node); - if (!(links.flags & 1)) { + if (!(links.flags & 1 /* TypeChecked */)) { + // Grammar checking checkGrammarSourceFile(node); emitExtends = false; potentialThisCollisions.length = 0; @@ -17465,12 +20429,15 @@ var ts; potentialThisCollisions.length = 0; } if (emitExtends) { - links.flags |= 8; + links.flags |= 8 /* EmitExtends */; } if (emitDecorate) { - links.flags |= 512; + links.flags |= 512 /* EmitDecorate */; } - links.flags |= 1; + if (emitParam) { + links.flags |= 1024 /* EmitParam */; + } + links.flags |= 1 /* TypeChecked */; } } function getDiagnostics(sourceFile) { @@ -17491,10 +20458,11 @@ var ts; throw new Error("Trying to get diagnostics from a type checker that does not produce them."); } } + // Language service support function isInsideWithStatementBody(node) { if (node) { while (node.parent) { - if (node.parent.kind === 192 && node.parent.statement === node) { + if (node.parent.kind === 192 /* WithStatement */ && node.parent.statement === node) { return true; } node = node.parent; @@ -17506,6 +20474,7 @@ var ts; var symbols = {}; var memberFlags = 0; if (isInsideWithStatementBody(location)) { + // We cannot answer semantic questions within a with block, do not proceed any further return []; } populateSymbols(); @@ -17516,23 +20485,23 @@ var ts; copySymbols(location.locals, meaning); } switch (location.kind) { - case 227: + case 227 /* SourceFile */: if (!ts.isExternalModule(location)) { break; } - case 205: - copySymbols(getSymbolOfNode(location).exports, meaning & 8914931); + case 205 /* ModuleDeclaration */: + copySymbols(getSymbolOfNode(location).exports, meaning & 8914931 /* ModuleMember */); break; - case 204: - copySymbols(getSymbolOfNode(location).exports, meaning & 8); + case 204 /* EnumDeclaration */: + copySymbols(getSymbolOfNode(location).exports, meaning & 8 /* EnumMember */); break; - case 201: - case 202: - if (!(memberFlags & 128)) { - copySymbols(getSymbolOfNode(location).members, meaning & 793056); + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + if (!(memberFlags & 128 /* Static */)) { + copySymbols(getSymbolOfNode(location).members, meaning & 793056 /* Type */); } break; - case 162: + case 162 /* FunctionExpression */: if (location.name) { copySymbol(location.symbol, meaning); } @@ -17543,6 +20512,7 @@ var ts; } copySymbols(globals, meaning); } + // Returns 'true' if we should stop processing symbols. function copySymbol(symbol, meaning) { if (symbol.flags & meaning) { var id = symbol.name; @@ -17561,6 +20531,7 @@ var ts; } } if (isInsideWithStatementBody(location)) { + // We cannot answer semantic questions within a with block, do not proceed any further return []; } while (location) { @@ -17568,22 +20539,22 @@ var ts; copySymbols(location.locals, meaning); } switch (location.kind) { - case 227: + case 227 /* SourceFile */: if (!ts.isExternalModule(location)) break; - case 205: - copySymbols(getSymbolOfNode(location).exports, meaning & 8914931); + case 205 /* ModuleDeclaration */: + copySymbols(getSymbolOfNode(location).exports, meaning & 8914931 /* ModuleMember */); break; - case 204: - copySymbols(getSymbolOfNode(location).exports, meaning & 8); + case 204 /* EnumDeclaration */: + copySymbols(getSymbolOfNode(location).exports, meaning & 8 /* EnumMember */); break; - case 201: - case 202: - if (!(memberFlags & 128)) { - copySymbols(getSymbolOfNode(location).members, meaning & 793056); + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + if (!(memberFlags & 128 /* Static */)) { + copySymbols(getSymbolOfNode(location).members, meaning & 793056 /* Type */); } break; - case 162: + case 162 /* FunctionExpression */: if (location.name) { copySymbol(location.symbol, meaning); } @@ -17596,110 +20567,124 @@ var ts; return symbolsToArray(symbols); } function isTypeDeclarationName(name) { - return name.kind == 65 && + return name.kind == 65 /* Identifier */ && isTypeDeclaration(name.parent) && name.parent.name === name; } function isTypeDeclaration(node) { switch (node.kind) { - case 128: - case 201: - case 202: - case 203: - case 204: + case 128 /* TypeParameter */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 204 /* EnumDeclaration */: return true; } } + // True if the given identifier is part of a type reference function isTypeReferenceIdentifier(entityName) { var node = entityName; - while (node.parent && node.parent.kind === 126) { + while (node.parent && node.parent.kind === 126 /* QualifiedName */) { node = node.parent; } - return node.parent && node.parent.kind === 141; + return node.parent && node.parent.kind === 141 /* TypeReference */; } function isHeritageClauseElementIdentifier(entityName) { var node = entityName; - while (node.parent && node.parent.kind === 155) { + while (node.parent && node.parent.kind === 155 /* PropertyAccessExpression */) { node = node.parent; } - return node.parent && node.parent.kind === 177; + return node.parent && node.parent.kind === 177 /* HeritageClauseElement */; } function isTypeNodeOrHeritageClauseElement(node) { - if (141 <= node.kind && node.kind <= 149) { + if (141 /* FirstTypeNode */ <= node.kind && node.kind <= 149 /* LastTypeNode */) { return true; } switch (node.kind) { - case 112: - case 119: - case 121: - case 113: - case 122: + case 112 /* AnyKeyword */: + case 119 /* NumberKeyword */: + case 121 /* StringKeyword */: + case 113 /* BooleanKeyword */: + case 122 /* SymbolKeyword */: return true; - case 99: - return node.parent.kind !== 166; - case 8: - return node.parent.kind === 129; - case 177: + case 99 /* VoidKeyword */: + return node.parent.kind !== 166 /* VoidExpression */; + case 8 /* StringLiteral */: + // Specialized signatures can have string literals as their parameters' type names + return node.parent.kind === 129 /* Parameter */; + case 177 /* HeritageClauseElement */: return true; - case 65: - if (node.parent.kind === 126 && node.parent.right === node) { + // Identifiers and qualified names may be type nodes, depending on their context. Climb + // above them to find the lowest container + case 65 /* Identifier */: + // If the identifier is the RHS of a qualified name, then it's a type iff its parent is. + if (node.parent.kind === 126 /* QualifiedName */ && node.parent.right === node) { node = node.parent; } - else if (node.parent.kind === 155 && node.parent.name === node) { + else if (node.parent.kind === 155 /* PropertyAccessExpression */ && node.parent.name === node) { node = node.parent; } - case 126: - case 155: - ts.Debug.assert(node.kind === 65 || node.kind === 126 || node.kind === 155, "'node' was expected to be a qualified name, identifier or property access in 'isTypeNode'."); - var parent_5 = node.parent; - if (parent_5.kind === 144) { + // fall through + case 126 /* QualifiedName */: + case 155 /* PropertyAccessExpression */: + // At this point, node is either a qualified name or an identifier + ts.Debug.assert(node.kind === 65 /* Identifier */ || node.kind === 126 /* QualifiedName */ || node.kind === 155 /* PropertyAccessExpression */, "'node' was expected to be a qualified name, identifier or property access in 'isTypeNode'."); + var parent_6 = node.parent; + if (parent_6.kind === 144 /* TypeQuery */) { return false; } - if (141 <= parent_5.kind && parent_5.kind <= 149) { + // Do not recursively call isTypeNode on the parent. In the example: + // + // let a: A.B.C; + // + // Calling isTypeNode would consider the qualified name A.B a type node. Only C or + // A.B.C is a type node. + if (141 /* FirstTypeNode */ <= parent_6.kind && parent_6.kind <= 149 /* LastTypeNode */) { return true; } - switch (parent_5.kind) { - case 177: + switch (parent_6.kind) { + case 177 /* HeritageClauseElement */: return true; - case 128: - return node === parent_5.constraint; - case 132: - case 131: - case 129: - case 198: - return node === parent_5.type; - case 200: - case 162: - case 163: - case 135: - case 134: - case 133: - case 136: - case 137: - return node === parent_5.type; - case 138: - case 139: - case 140: - return node === parent_5.type; - case 160: - return node === parent_5.type; - case 157: - case 158: - return parent_5.typeArguments && ts.indexOf(parent_5.typeArguments, node) >= 0; - case 159: + case 128 /* TypeParameter */: + return node === parent_6.constraint; + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 129 /* Parameter */: + case 198 /* VariableDeclaration */: + return node === parent_6.type; + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + case 135 /* Constructor */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + return node === parent_6.type; + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: + return node === parent_6.type; + case 160 /* TypeAssertionExpression */: + return node === parent_6.type; + case 157 /* CallExpression */: + case 158 /* NewExpression */: + return parent_6.typeArguments && ts.indexOf(parent_6.typeArguments, node) >= 0; + case 159 /* TaggedTemplateExpression */: + // TODO (drosen): TaggedTemplateExpressions may eventually support type arguments. return false; } } return false; } function getLeftSideOfImportEqualsOrExportAssignment(nodeOnRightSide) { - while (nodeOnRightSide.parent.kind === 126) { + while (nodeOnRightSide.parent.kind === 126 /* QualifiedName */) { nodeOnRightSide = nodeOnRightSide.parent; } - if (nodeOnRightSide.parent.kind === 208) { + if (nodeOnRightSide.parent.kind === 208 /* ImportEqualsDeclaration */) { return nodeOnRightSide.parent.moduleReference === nodeOnRightSide && nodeOnRightSide.parent; } - if (nodeOnRightSide.parent.kind === 214) { + if (nodeOnRightSide.parent.kind === 214 /* ExportAssignment */) { return nodeOnRightSide.parent.expression === nodeOnRightSide && nodeOnRightSide.parent; } return undefined; @@ -17711,11 +20696,13 @@ var ts; if (ts.isDeclarationName(entityName)) { return getSymbolOfNode(entityName.parent); } - if (entityName.parent.kind === 214) { - return resolveEntityName(entityName, 107455 | 793056 | 1536 | 8388608); + if (entityName.parent.kind === 214 /* ExportAssignment */) { + return resolveEntityName(entityName, + /*all meanings*/ 107455 /* Value */ | 793056 /* Type */ | 1536 /* Namespace */ | 8388608 /* Alias */); } - if (entityName.kind !== 155) { + if (entityName.kind !== 155 /* PropertyAccessExpression */) { if (isInRightSideOfImportOrExportAssignment(entityName)) { + // Since we already checked for ExportAssignment, this really could only be an Import return getSymbolOfPartOfRightHandSideOfImportEquals(entityName); } } @@ -17723,26 +20710,29 @@ var ts; entityName = entityName.parent; } if (isHeritageClauseElementIdentifier(entityName)) { - var meaning = entityName.parent.kind === 177 ? 793056 : 1536; - meaning |= 8388608; + var meaning = entityName.parent.kind === 177 /* HeritageClauseElement */ ? 793056 /* Type */ : 1536 /* Namespace */; + meaning |= 8388608 /* Alias */; return resolveEntityName(entityName, meaning); } else if (ts.isExpression(entityName)) { if (ts.nodeIsMissing(entityName)) { + // Missing entity name. return undefined; } - if (entityName.kind === 65) { - var meaning = 107455 | 8388608; + if (entityName.kind === 65 /* Identifier */) { + // Include aliases in the meaning, this ensures that we do not follow aliases to where they point and instead + // return the alias symbol. + var meaning = 107455 /* Value */ | 8388608 /* Alias */; return resolveEntityName(entityName, meaning); } - else if (entityName.kind === 155) { + else if (entityName.kind === 155 /* PropertyAccessExpression */) { var symbol = getNodeLinks(entityName).resolvedSymbol; if (!symbol) { checkPropertyAccessExpression(entityName); } return getNodeLinks(entityName).resolvedSymbol; } - else if (entityName.kind === 126) { + else if (entityName.kind === 126 /* QualifiedName */) { var symbol = getNodeLinks(entityName).resolvedSymbol; if (!symbol) { checkQualifiedName(entityName); @@ -17751,49 +20741,58 @@ var ts; } } else if (isTypeReferenceIdentifier(entityName)) { - var meaning = entityName.parent.kind === 141 ? 793056 : 1536; - meaning |= 8388608; + var meaning = entityName.parent.kind === 141 /* TypeReference */ ? 793056 /* Type */ : 1536 /* Namespace */; + // Include aliases in the meaning, this ensures that we do not follow aliases to where they point and instead + // return the alias symbol. + meaning |= 8388608 /* Alias */; return resolveEntityName(entityName, meaning); } + // Do we want to return undefined here? return undefined; } function getSymbolInfo(node) { if (isInsideWithStatementBody(node)) { + // We cannot answer semantic questions within a with block, do not proceed any further return undefined; } if (ts.isDeclarationName(node)) { + // This is a declaration, call getSymbolOfNode return getSymbolOfNode(node.parent); } - if (node.kind === 65 && isInRightSideOfImportOrExportAssignment(node)) { - return node.parent.kind === 214 + if (node.kind === 65 /* Identifier */ && isInRightSideOfImportOrExportAssignment(node)) { + return node.parent.kind === 214 /* ExportAssignment */ ? getSymbolOfEntityNameOrPropertyAccessExpression(node) : getSymbolOfPartOfRightHandSideOfImportEquals(node); } switch (node.kind) { - case 65: - case 155: - case 126: + case 65 /* Identifier */: + case 155 /* PropertyAccessExpression */: + case 126 /* QualifiedName */: return getSymbolOfEntityNameOrPropertyAccessExpression(node); - case 93: - case 91: + case 93 /* ThisKeyword */: + case 91 /* SuperKeyword */: var type = checkExpression(node); return type.symbol; - case 114: + case 114 /* ConstructorKeyword */: + // constructor keyword for an overload, should take us to the definition if it exist var constructorDeclaration = node.parent; - if (constructorDeclaration && constructorDeclaration.kind === 135) { + if (constructorDeclaration && constructorDeclaration.kind === 135 /* Constructor */) { return constructorDeclaration.parent.symbol; } return undefined; - case 8: + case 8 /* StringLiteral */: + // External module name in an import declaration var moduleName; if ((ts.isExternalModuleImportEqualsDeclaration(node.parent.parent) && ts.getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node) || - ((node.parent.kind === 209 || node.parent.kind === 215) && + ((node.parent.kind === 209 /* ImportDeclaration */ || node.parent.kind === 215 /* ExportDeclaration */) && node.parent.moduleSpecifier === node)) { return resolveExternalModuleName(node, node); } - case 7: - if (node.parent.kind == 156 && node.parent.argumentExpression === node) { + // Intentional fall-through + case 7 /* NumericLiteral */: + // index access + if (node.parent.kind == 156 /* ElementAccessExpression */ && node.parent.argumentExpression === node) { var objectType = checkExpression(node.parent.expression); if (objectType === unknownType) return undefined; @@ -17807,13 +20806,17 @@ var ts; return undefined; } function getShorthandAssignmentValueSymbol(location) { - if (location && location.kind === 225) { - return resolveEntityName(location.name, 107455); + // The function returns a value symbol of an identifier in the short-hand property assignment. + // This is necessary as an identifier in short-hand property assignment can contains two meaning: + // property name and property value. + if (location && location.kind === 225 /* ShorthandPropertyAssignment */) { + return resolveEntityName(location.name, 107455 /* Value */); } return undefined; } function getTypeOfNode(node) { if (isInsideWithStatementBody(node)) { + // We cannot answer semantic questions within a with block, do not proceed any further return unknownType; } if (isTypeNodeOrHeritageClauseElement(node)) { @@ -17823,6 +20826,7 @@ var ts; return getTypeOfExpression(node); } if (isTypeDeclaration(node)) { + // In this case, we call getSymbolOfNode instead of getSymbolInfo because it is a declaration var symbol = getSymbolOfNode(node); return getDeclaredTypeOfSymbol(symbol); } @@ -17831,6 +20835,7 @@ var ts; return symbol && getDeclaredTypeOfSymbol(symbol); } if (ts.isDeclaration(node)) { + // In this case, we call getSymbolOfNode instead of getSymbolInfo because it is a declaration var symbol = getSymbolOfNode(node); return getTypeOfSymbol(symbol); } @@ -17851,10 +20856,12 @@ var ts; } return checkExpression(expr); } + // Return the list of properties of the given type, augmented with properties from Function + // if the type has call or construct signatures function getAugmentedPropertiesOfType(type) { type = getApparentType(type); var propsByName = createSymbolTable(getPropertiesOfType(type)); - if (getSignaturesOfType(type, 0).length || getSignaturesOfType(type, 1).length) { + if (getSignaturesOfType(type, 0 /* Call */).length || getSignaturesOfType(type, 1 /* Construct */).length) { ts.forEach(getPropertiesOfType(globalFunctionType), function (p) { if (!ts.hasProperty(propsByName, p.name)) { propsByName[p.name] = p; @@ -17864,7 +20871,7 @@ var ts; return getNamedMembers(propsByName); } function getRootSymbols(symbol) { - if (symbol.flags & 268435456) { + if (symbol.flags & 268435456 /* UnionProperty */) { var symbols = []; var name_10 = symbol.name; ts.forEach(getSymbolLinks(symbol).unionType.types, function (t) { @@ -17872,7 +20879,7 @@ var ts; }); return symbols; } - else if (symbol.flags & 67108864) { + else if (symbol.flags & 67108864 /* Transient */) { var target = getSymbolLinks(symbol).target; if (target) { return [target]; @@ -17880,19 +20887,22 @@ var ts; } return [symbol]; } + // Emitter support function isExternalModuleSymbol(symbol) { - return symbol.flags & 512 && symbol.declarations.length === 1 && symbol.declarations[0].kind === 227; + return symbol.flags & 512 /* ValueModule */ && symbol.declarations.length === 1 && symbol.declarations[0].kind === 227 /* SourceFile */; } function getAliasNameSubstitution(symbol, getGeneratedNameForNode) { - if (languageVersion >= 2) { + // If this is es6 or higher, just use the name of the export + // no need to qualify it. + if (languageVersion >= 2 /* ES6 */) { return undefined; } var node = getDeclarationOfAliasSymbol(symbol); if (node) { - if (node.kind === 210) { + if (node.kind === 210 /* ImportClause */) { return getGeneratedNameForNode(node.parent) + ".default"; } - if (node.kind === 213) { + if (node.kind === 213 /* ImportSpecifier */) { var moduleName = getGeneratedNameForNode(node.parent.parent.parent); var propertyName = node.propertyName || node.name; return moduleName + "." + ts.unescapeIdentifier(propertyName.text); @@ -17901,7 +20911,9 @@ var ts; } function getExportNameSubstitution(symbol, location, getGeneratedNameForNode) { if (isExternalModuleSymbol(symbol.parent)) { - if (languageVersion >= 2) { + // If this is es6 or higher, just use the name of the export + // no need to qualify it. + if (languageVersion >= 2 /* ES6 */) { return undefined; } return "exports." + ts.unescapeIdentifier(symbol.name); @@ -17909,7 +20921,7 @@ var ts; var node = location; var containerSymbol = getParentOfSymbol(symbol); while (node) { - if ((node.kind === 205 || node.kind === 204) && getSymbolOfNode(node) === containerSymbol) { + if ((node.kind === 205 /* ModuleDeclaration */ || node.kind === 204 /* EnumDeclaration */) && getSymbolOfNode(node) === containerSymbol) { return getGeneratedNameForNode(node) + "." + ts.unescapeIdentifier(symbol.name); } node = node.parent; @@ -17918,36 +20930,43 @@ var ts; function getExpressionNameSubstitution(node, getGeneratedNameForNode) { var symbol = getNodeLinks(node).resolvedSymbol || (ts.isDeclarationName(node) ? getSymbolOfNode(node.parent) : undefined); if (symbol) { + // Whan an identifier resolves to a parented symbol, it references an exported entity from + // another declaration of the same internal module. if (symbol.parent) { return getExportNameSubstitution(symbol, node.parent, getGeneratedNameForNode); } + // If we reference an exported entity within the same module declaration, then whether + // we prefix depends on the kind of entity. SymbolFlags.ExportHasLocal encompasses all the + // kinds that we do NOT prefix. var exportSymbol = getExportSymbolOfValueSymbolIfExported(symbol); - if (symbol !== exportSymbol && !(exportSymbol.flags & 944)) { + if (symbol !== exportSymbol && !(exportSymbol.flags & 944 /* ExportHasLocal */)) { return getExportNameSubstitution(exportSymbol, node.parent, getGeneratedNameForNode); } - if (symbol.flags & 8388608) { + // Named imports from ES6 import declarations are rewritten + if (symbol.flags & 8388608 /* Alias */) { return getAliasNameSubstitution(symbol, getGeneratedNameForNode); } } } function isValueAliasDeclaration(node) { switch (node.kind) { - case 208: - case 210: - case 211: - case 213: - case 217: + case 208 /* ImportEqualsDeclaration */: + case 210 /* ImportClause */: + case 211 /* NamespaceImport */: + case 213 /* ImportSpecifier */: + case 217 /* ExportSpecifier */: return isAliasResolvedToValue(getSymbolOfNode(node)); - case 215: + case 215 /* ExportDeclaration */: var exportClause = node.exportClause; return exportClause && ts.forEach(exportClause.elements, isValueAliasDeclaration); - case 214: - return node.expression && node.expression.kind === 65 ? isAliasResolvedToValue(getSymbolOfNode(node)) : true; + case 214 /* ExportAssignment */: + return node.expression && node.expression.kind === 65 /* Identifier */ ? isAliasResolvedToValue(getSymbolOfNode(node)) : true; } return false; } function isTopLevelValueImportEqualsWithEntityName(node) { - if (node.parent.kind !== 227 || !ts.isInternalModuleImportEqualsDeclaration(node)) { + if (node.parent.kind !== 227 /* SourceFile */ || !ts.isInternalModuleImportEqualsDeclaration(node)) { + // parent is not source file or it is not reference to internal module return false; } var isValue = isAliasResolvedToValue(getSymbolOfNode(node)); @@ -17958,7 +20977,8 @@ var ts; if (target === unknownSymbol && compilerOptions.separateCompilation) { return true; } - return target !== unknownSymbol && target && target.flags & 107455 && !isConstEnumOrConstEnumOnlyModule(target); + // const enums and modules that contain only const enums are not considered values from the emit perespective + return target !== unknownSymbol && target && target.flags & 107455 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target); } function isConstEnumOrConstEnumOnlyModule(s) { return isConstEnumSymbol(s) || s.constEnumOnlyModule; @@ -17979,7 +20999,18 @@ var ts; if (ts.nodeIsPresent(node.body)) { var symbol = getSymbolOfNode(node); var signaturesOfSymbol = getSignaturesOfSymbol(symbol); + // If this function body corresponds to function with multiple signature, it is implementation of overload + // e.g.: function foo(a: string): string; + // function foo(a: number): number; + // function foo(a: any) { // This is implementation of the overloads + // return a; + // } return signaturesOfSymbol.length > 1 || + // If there is single signature for the symbol, it is overload if that signature isn't coming from the node + // e.g.: function foo(a: string): string; + // function foo(a: any) { // This is implementation of the overloads + // return a; + // } (signaturesOfSymbol.length === 1 && signaturesOfSymbol[0].declaration !== node); } return false; @@ -17992,20 +21023,209 @@ var ts; return getNodeLinks(node).enumMemberValue; } function getConstantValue(node) { - if (node.kind === 226) { + if (node.kind === 226 /* EnumMember */) { return getEnumMemberValue(node); } var symbol = getNodeLinks(node).resolvedSymbol; - if (symbol && (symbol.flags & 8)) { + if (symbol && (symbol.flags & 8 /* EnumMember */)) { + // inline property\index accesses only for const enums if (ts.isConstEnumDeclaration(symbol.valueDeclaration.parent)) { return getEnumMemberValue(symbol.valueDeclaration); } } return undefined; } + /** Serializes an EntityName (with substitutions) to an appropriate JS constructor value. Used by the __metadata decorator. */ + function serializeEntityName(node, getGeneratedNameForNode, fallbackPath) { + if (node.kind === 65 /* Identifier */) { + var substitution = getExpressionNameSubstitution(node, getGeneratedNameForNode); + var text = substitution || node.text; + if (fallbackPath) { + fallbackPath.push(text); + } + else { + return text; + } + } + else { + var left = serializeEntityName(node.left, getGeneratedNameForNode, fallbackPath); + var right = serializeEntityName(node.right, getGeneratedNameForNode, fallbackPath); + if (!fallbackPath) { + return left + "." + right; + } + } + } + /** Serializes a TypeReferenceNode to an appropriate JS constructor value. Used by the __metadata decorator. */ + function serializeTypeReferenceNode(node, getGeneratedNameForNode) { + // serialization of a TypeReferenceNode uses the following rules: + // + // * The serialized type of a TypeReference that is `void` is "void 0". + // * The serialized type of a TypeReference that is a `boolean` is "Boolean". + // * The serialized type of a TypeReference that is an enum or `number` is "Number". + // * The serialized type of a TypeReference that is a string literal or `string` is "String". + // * The serialized type of a TypeReference that is a tuple is "Array". + // * The serialized type of a TypeReference that is a `symbol` is "Symbol". + // * The serialized type of a TypeReference with a value declaration is its entity name. + // * The serialized type of a TypeReference with a call or construct signature is "Function". + // * The serialized type of any other type is "Object". + var type = getTypeFromTypeReference(node); + if (type.flags & 16 /* Void */) { + return "void 0"; + } + else if (type.flags & 8 /* Boolean */) { + return "Boolean"; + } + else if (type.flags & 132 /* NumberLike */) { + return "Number"; + } + else if (type.flags & 258 /* StringLike */) { + return "String"; + } + else if (type.flags & 8192 /* Tuple */) { + return "Array"; + } + else if (type.flags & 1048576 /* ESSymbol */) { + return "Symbol"; + } + else if (type === unknownType) { + var fallbackPath = []; + serializeEntityName(node.typeName, getGeneratedNameForNode, fallbackPath); + return fallbackPath; + } + else if (type.symbol && type.symbol.valueDeclaration) { + return serializeEntityName(node.typeName, getGeneratedNameForNode); + } + else if (typeHasCallOrConstructSignatures(type)) { + return "Function"; + } + return "Object"; + } + /** Serializes a TypeNode to an appropriate JS constructor value. Used by the __metadata decorator. */ + function serializeTypeNode(node, getGeneratedNameForNode) { + // serialization of a TypeNode uses the following rules: + // + // * The serialized type of `void` is "void 0" (undefined). + // * The serialized type of a parenthesized type is the serialized type of its nested type. + // * The serialized type of a Function or Constructor type is "Function". + // * The serialized type of an Array or Tuple type is "Array". + // * The serialized type of `boolean` is "Boolean". + // * The serialized type of `string` or a string-literal type is "String". + // * The serialized type of a type reference is handled by `serializeTypeReferenceNode`. + // * The serialized type of any other type node is "Object". + if (node) { + switch (node.kind) { + case 99 /* VoidKeyword */: + return "void 0"; + case 149 /* ParenthesizedType */: + return serializeTypeNode(node.type, getGeneratedNameForNode); + case 142 /* FunctionType */: + case 143 /* ConstructorType */: + return "Function"; + case 146 /* ArrayType */: + case 147 /* TupleType */: + return "Array"; + case 113 /* BooleanKeyword */: + return "Boolean"; + case 121 /* StringKeyword */: + case 8 /* StringLiteral */: + return "String"; + case 119 /* NumberKeyword */: + return "Number"; + case 141 /* TypeReference */: + return serializeTypeReferenceNode(node, getGeneratedNameForNode); + case 144 /* TypeQuery */: + case 145 /* TypeLiteral */: + case 148 /* UnionType */: + case 112 /* AnyKeyword */: + break; + default: + ts.Debug.fail("Cannot serialize unexpected type node."); + break; + } + } + return "Object"; + } + /** Serializes the type of a declaration to an appropriate JS constructor value. Used by the __metadata decorator for a class member. */ + function serializeTypeOfNode(node, getGeneratedNameForNode) { + // serialization of the type of a declaration uses the following rules: + // + // * The serialized type of a ClassDeclaration is "Function" + // * The serialized type of a ParameterDeclaration is the serialized type of its type annotation. + // * The serialized type of a PropertyDeclaration is the serialized type of its type annotation. + // * The serialized type of an AccessorDeclaration is the serialized type of the return type annotation of its getter or parameter type annotation of its setter. + // * The serialized type of any other FunctionLikeDeclaration is "Function". + // * The serialized type of any other node is "void 0". + // + // For rules on serializing type annotations, see `serializeTypeNode`. + switch (node.kind) { + case 201 /* ClassDeclaration */: return "Function"; + case 132 /* PropertyDeclaration */: return serializeTypeNode(node.type, getGeneratedNameForNode); + case 129 /* Parameter */: return serializeTypeNode(node.type, getGeneratedNameForNode); + case 136 /* GetAccessor */: return serializeTypeNode(node.type, getGeneratedNameForNode); + case 137 /* SetAccessor */: return serializeTypeNode(getSetAccessorTypeAnnotationNode(node), getGeneratedNameForNode); + } + if (ts.isFunctionLike(node)) { + return "Function"; + } + return "void 0"; + } + /** Serializes the parameter types of a function or the constructor of a class. Used by the __metadata decorator for a method or set accessor. */ + function serializeParameterTypesOfNode(node, getGeneratedNameForNode) { + // serialization of parameter types uses the following rules: + // + // * If the declaration is a class, the parameters of the first constructor with a body are used. + // * If the declaration is function-like and has a body, the parameters of the function are used. + // + // For the rules on serializing the type of each parameter declaration, see `serializeTypeOfDeclaration`. + if (node) { + var valueDeclaration; + if (node.kind === 201 /* ClassDeclaration */) { + valueDeclaration = ts.getFirstConstructorWithBody(node); + } + else if (ts.isFunctionLike(node) && ts.nodeIsPresent(node.body)) { + valueDeclaration = node; + } + if (valueDeclaration) { + var result; + var parameters = valueDeclaration.parameters; + var parameterCount = parameters.length; + if (parameterCount > 0) { + result = new Array(parameterCount); + for (var i = 0; i < parameterCount; i++) { + if (parameters[i].dotDotDotToken) { + var parameterType = parameters[i].type; + if (parameterType.kind === 146 /* ArrayType */) { + parameterType = parameterType.elementType; + } + else if (parameterType.kind === 141 /* TypeReference */ && parameterType.typeArguments && parameterType.typeArguments.length === 1) { + parameterType = parameterType.typeArguments[0]; + } + else { + parameterType = undefined; + } + result[i] = serializeTypeNode(parameterType, getGeneratedNameForNode); + } + else { + result[i] = serializeTypeOfNode(parameters[i], getGeneratedNameForNode); + } + } + return result; + } + } + } + return emptyArray; + } + /** Serializes the return type of function. Used by the __metadata decorator for a method. */ + function serializeReturnTypeOfNode(node, getGeneratedNameForNode) { + if (node && ts.isFunctionLike(node)) { + return serializeTypeNode(node.type, getGeneratedNameForNode); + } + return "void 0"; + } function writeTypeOfDeclaration(declaration, enclosingDeclaration, flags, writer) { + // Get type of the symbol if this is the valid symbol otherwise get type at location var symbol = getSymbolOfNode(declaration); - var type = symbol && !(symbol.flags & (2048 | 131072)) + var type = symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */)) ? getTypeOfSymbol(symbol) : unknownType; getSymbolDisplayBuilder().buildTypeDisplay(type, writer, enclosingDeclaration, flags); @@ -18023,18 +21243,20 @@ var ts; } function resolvesToSomeValue(location, name) { ts.Debug.assert(!ts.nodeIsSynthesized(location), "resolvesToSomeValue called with a synthesized location"); - return !!resolveName(location, name, 107455, undefined, undefined); + return !!resolveName(location, name, 107455 /* Value */, undefined, undefined); } function getBlockScopedVariableId(n) { ts.Debug.assert(!ts.nodeIsSynthesized(n)); - var isVariableDeclarationOrBindingElement = n.parent.kind === 152 || (n.parent.kind === 198 && n.parent.name === n); + var isVariableDeclarationOrBindingElement = n.parent.kind === 152 /* BindingElement */ || (n.parent.kind === 198 /* VariableDeclaration */ && n.parent.name === n); var symbol = (isVariableDeclarationOrBindingElement ? getSymbolOfNode(n.parent) : undefined) || getNodeLinks(n).resolvedSymbol || - resolveName(n, n.text, 107455 | 8388608, undefined, undefined); + resolveName(n, n.text, 107455 /* Value */ | 8388608 /* Alias */, undefined, undefined); var isLetOrConst = symbol && - (symbol.flags & 2) && - symbol.valueDeclaration.parent.kind !== 223; + (symbol.flags & 2 /* BlockScopedVariable */) && + symbol.valueDeclaration.parent.kind !== 223 /* CatchClause */; if (isLetOrConst) { + // side-effect of calling this method: + // assign id to symbol if it was not yet set getSymbolLinks(symbol); return symbol.id; } @@ -18069,22 +21291,29 @@ var ts; getConstantValue: getConstantValue, resolvesToSomeValue: resolvesToSomeValue, collectLinkedAliases: collectLinkedAliases, - getBlockScopedVariableId: getBlockScopedVariableId + getBlockScopedVariableId: getBlockScopedVariableId, + serializeTypeOfNode: serializeTypeOfNode, + serializeParameterTypesOfNode: serializeParameterTypesOfNode, + serializeReturnTypeOfNode: serializeReturnTypeOfNode }; } function initializeTypeChecker() { + // Bind all source files and propagate errors ts.forEach(host.getSourceFiles(), function (file) { ts.bindSourceFile(file); }); + // Initialize global symbol table ts.forEach(host.getSourceFiles(), function (file) { if (!ts.isExternalModule(file)) { mergeSymbolTable(globals, file.locals); } }); + // Initialize special symbols getSymbolLinks(undefinedSymbol).type = undefinedType; getSymbolLinks(argumentsSymbol).type = getGlobalType("IArguments"); getSymbolLinks(unknownSymbol).type = unknownType; globals[undefinedSymbol.name] = undefinedSymbol; + // Initialize special types globalArraySymbol = getGlobalTypeSymbol("Array"); globalArrayType = getTypeOfGlobalSymbol(globalArraySymbol, 1); globalObjectType = getGlobalType("Object"); @@ -18098,7 +21327,9 @@ var ts; globalPropertyDecoratorType = getGlobalType("PropertyDecorator"); globalMethodDecoratorType = getGlobalType("MethodDecorator"); globalParameterDecoratorType = getGlobalType("ParameterDecorator"); - if (languageVersion >= 2) { + // If we're in ES6 mode, load the TemplateStringsArray. + // Otherwise, default to 'unknown' for the purposes of type checking in LS scenarios. + if (languageVersion >= 2 /* ES6 */) { globalTemplateStringsArrayType = getGlobalType("TemplateStringsArray"); globalESSymbolType = getGlobalType("Symbol"); globalESSymbolConstructorSymbol = getGlobalValueSymbol("Symbol"); @@ -18106,51 +21337,55 @@ var ts; } else { globalTemplateStringsArrayType = unknownType; + // Consider putting Symbol interface in lib.d.ts. On the plus side, putting it in lib.d.ts would make it + // extensible for Polyfilling Symbols. But putting it into lib.d.ts could also break users that have + // a global Symbol already, particularly if it is a class. globalESSymbolType = createAnonymousType(undefined, emptySymbols, emptyArray, emptyArray, undefined, undefined); globalESSymbolConstructorSymbol = undefined; } anyArrayType = createArrayType(anyType); } + // GRAMMAR CHECKING function checkGrammarDecorators(node) { if (!node.decorators) { return false; } if (!ts.nodeCanBeDecorated(node)) { - return grammarErrorOnNode(node, ts.Diagnostics.Decorators_are_not_valid_here); + return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_not_valid_here); } - else if (languageVersion < 1) { - return grammarErrorOnNode(node, ts.Diagnostics.Decorators_are_only_available_when_targeting_ECMAScript_5_and_higher); + else if (languageVersion < 1 /* ES5 */) { + return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_only_available_when_targeting_ECMAScript_5_and_higher); } - else if (node.kind === 136 || node.kind === 137) { + else if (node.kind === 136 /* GetAccessor */ || node.kind === 137 /* SetAccessor */) { var accessors = ts.getAllAccessorDeclarations(node.parent.members, node); if (accessors.firstAccessor.decorators && node === accessors.secondAccessor) { - return grammarErrorOnNode(node, ts.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); + return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); } } return false; } function checkGrammarModifiers(node) { switch (node.kind) { - case 136: - case 137: - case 135: - case 132: - case 131: - case 134: - case 133: - case 140: - case 201: - case 202: - case 205: - case 204: - case 180: - case 200: - case 203: - case 209: - case 208: - case 215: - case 214: - case 129: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 135 /* Constructor */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 140 /* IndexSignature */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 205 /* ModuleDeclaration */: + case 204 /* EnumDeclaration */: + case 180 /* VariableStatement */: + case 200 /* FunctionDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 209 /* ImportDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 215 /* ExportDeclaration */: + case 214 /* ExportAssignment */: + case 129 /* Parameter */: break; default: return false; @@ -18163,14 +21398,14 @@ var ts; for (var _i = 0, _a = node.modifiers; _i < _a.length; _i++) { var modifier = _a[_i]; switch (modifier.kind) { - case 109: - case 108: - case 107: + case 109 /* PublicKeyword */: + case 108 /* ProtectedKeyword */: + case 107 /* PrivateKeyword */: var text = void 0; - if (modifier.kind === 109) { + if (modifier.kind === 109 /* PublicKeyword */) { text = "public"; } - else if (modifier.kind === 108) { + else if (modifier.kind === 108 /* ProtectedKeyword */) { text = "protected"; lastProtected = modifier; } @@ -18178,81 +21413,81 @@ var ts; text = "private"; lastPrivate = modifier; } - if (flags & 112) { + if (flags & 112 /* AccessibilityModifier */) { return grammarErrorOnNode(modifier, ts.Diagnostics.Accessibility_modifier_already_seen); } - else if (flags & 128) { + else if (flags & 128 /* Static */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, text, "static"); } - else if (node.parent.kind === 206 || node.parent.kind === 227) { + else if (node.parent.kind === 206 /* ModuleBlock */ || node.parent.kind === 227 /* SourceFile */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_module_element, text); } flags |= ts.modifierToFlag(modifier.kind); break; - case 110: - if (flags & 128) { + case 110 /* StaticKeyword */: + if (flags & 128 /* Static */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, "static"); } - else if (node.parent.kind === 206 || node.parent.kind === 227) { + else if (node.parent.kind === 206 /* ModuleBlock */ || node.parent.kind === 227 /* SourceFile */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_module_element, "static"); } - else if (node.kind === 129) { + else if (node.kind === 129 /* Parameter */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_parameter, "static"); } - flags |= 128; + flags |= 128 /* Static */; lastStatic = modifier; break; - case 78: - if (flags & 1) { + case 78 /* ExportKeyword */: + if (flags & 1 /* Export */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, "export"); } - else if (flags & 2) { + else if (flags & 2 /* Ambient */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, "export", "declare"); } - else if (node.parent.kind === 201) { + else if (node.parent.kind === 201 /* ClassDeclaration */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_class_element, "export"); } - else if (node.kind === 129) { + else if (node.kind === 129 /* Parameter */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_parameter, "export"); } - flags |= 1; + flags |= 1 /* Export */; break; - case 115: - if (flags & 2) { + case 115 /* DeclareKeyword */: + if (flags & 2 /* Ambient */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, "declare"); } - else if (node.parent.kind === 201) { + else if (node.parent.kind === 201 /* ClassDeclaration */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_class_element, "declare"); } - else if (node.kind === 129) { + else if (node.kind === 129 /* Parameter */) { return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_parameter, "declare"); } - else if (ts.isInAmbientContext(node.parent) && node.parent.kind === 206) { + else if (ts.isInAmbientContext(node.parent) && node.parent.kind === 206 /* ModuleBlock */) { return grammarErrorOnNode(modifier, ts.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context); } - flags |= 2; + flags |= 2 /* Ambient */; lastDeclare = modifier; break; } } - if (node.kind === 135) { - if (flags & 128) { + if (node.kind === 135 /* Constructor */) { + if (flags & 128 /* Static */) { return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static"); } - else if (flags & 64) { + else if (flags & 64 /* Protected */) { return grammarErrorOnNode(lastProtected, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "protected"); } - else if (flags & 32) { + else if (flags & 32 /* Private */) { return grammarErrorOnNode(lastPrivate, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "private"); } } - else if ((node.kind === 209 || node.kind === 208) && flags & 2) { + else if ((node.kind === 209 /* ImportDeclaration */ || node.kind === 208 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) { return grammarErrorOnNode(lastDeclare, ts.Diagnostics.A_declare_modifier_cannot_be_used_with_an_import_declaration, "declare"); } - else if (node.kind === 202 && flags & 2) { + else if (node.kind === 202 /* InterfaceDeclaration */ && flags & 2 /* Ambient */) { return grammarErrorOnNode(lastDeclare, ts.Diagnostics.A_declare_modifier_cannot_be_used_with_an_interface_declaration, "declare"); } - else if (node.kind === 129 && (flags & 112) && ts.isBindingPattern(node.name)) { + else if (node.kind === 129 /* Parameter */ && (flags & 112 /* AccessibilityModifier */) && ts.isBindingPattern(node.name)) { return grammarErrorOnNode(node, ts.Diagnostics.A_parameter_property_may_not_be_a_binding_pattern); } } @@ -18307,12 +21542,13 @@ var ts; } } function checkGrammarFunctionLikeDeclaration(node) { + // Prevent cascading error by short-circuit var file = ts.getSourceFileOfNode(node); return checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarTypeParameterList(node, node.typeParameters, file) || checkGrammarParameterList(node.parameters) || checkGrammarArrowFunction(node, file); } function checkGrammarArrowFunction(node, file) { - if (node.kind === 163) { + if (node.kind === 163 /* ArrowFunction */) { var arrowFunction = node; var startLine = ts.getLineAndCharacterOfPosition(file, arrowFunction.equalsGreaterThanToken.pos).line; var endLine = ts.getLineAndCharacterOfPosition(file, arrowFunction.equalsGreaterThanToken.end).line; @@ -18335,7 +21571,7 @@ var ts; if (parameter.dotDotDotToken) { return grammarErrorOnNode(parameter.dotDotDotToken, ts.Diagnostics.An_index_signature_cannot_have_a_rest_parameter); } - if (parameter.flags & 499) { + if (parameter.flags & 499 /* Modifier */) { return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier); } if (parameter.questionToken) { @@ -18347,7 +21583,7 @@ var ts; if (!parameter.type) { return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation); } - if (parameter.type.kind !== 121 && parameter.type.kind !== 119) { + if (parameter.type.kind !== 121 /* StringKeyword */ && parameter.type.kind !== 119 /* NumberKeyword */) { return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number); } if (!node.type) { @@ -18355,11 +21591,12 @@ var ts; } } function checkGrammarForIndexSignatureModifier(node) { - if (node.flags & 499) { + if (node.flags & 499 /* Modifier */) { grammarErrorOnFirstToken(node, ts.Diagnostics.Modifiers_not_permitted_on_index_signature_members); } } function checkGrammarIndexSignature(node) { + // Prevent cascading error by short-circuit return checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarIndexSignatureParameters(node) || checkGrammarForIndexSignatureModifier(node); } function checkGrammarForAtLeastOneTypeArgument(node, typeArguments) { @@ -18379,7 +21616,7 @@ var ts; var sourceFile = ts.getSourceFileOfNode(node); for (var _i = 0; _i < arguments.length; _i++) { var arg = arguments[_i]; - if (arg.kind === 175) { + if (arg.kind === 175 /* OmittedExpression */) { return grammarErrorAtPos(sourceFile, arg.pos, 0, ts.Diagnostics.Argument_expression_expected); } } @@ -18406,7 +21643,7 @@ var ts; if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && node.heritageClauses) { for (var _i = 0, _a = node.heritageClauses; _i < _a.length; _i++) { var heritageClause = _a[_i]; - if (heritageClause.token === 79) { + if (heritageClause.token === 79 /* ExtendsKeyword */) { if (seenExtendsClause) { return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.extends_clause_already_seen); } @@ -18419,12 +21656,13 @@ var ts; seenExtendsClause = true; } else { - ts.Debug.assert(heritageClause.token === 103); + ts.Debug.assert(heritageClause.token === 103 /* ImplementsKeyword */); if (seenImplementsClause) { return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.implements_clause_already_seen); } seenImplementsClause = true; } + // Grammar checking heritageClause inside class declaration checkGrammarHeritageClause(heritageClause); } } @@ -18434,27 +21672,29 @@ var ts; if (node.heritageClauses) { for (var _i = 0, _a = node.heritageClauses; _i < _a.length; _i++) { var heritageClause = _a[_i]; - if (heritageClause.token === 79) { + if (heritageClause.token === 79 /* ExtendsKeyword */) { if (seenExtendsClause) { return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.extends_clause_already_seen); } seenExtendsClause = true; } else { - ts.Debug.assert(heritageClause.token === 103); + ts.Debug.assert(heritageClause.token === 103 /* ImplementsKeyword */); return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.Interface_declaration_cannot_have_implements_clause); } + // Grammar checking heritageClause inside class declaration checkGrammarHeritageClause(heritageClause); } } return false; } function checkGrammarComputedPropertyName(node) { - if (node.kind !== 127) { + // If node is not a computedPropertyName, just skip the grammar checking + if (node.kind !== 127 /* ComputedPropertyName */) { return false; } var computedPropertyName = node; - if (computedPropertyName.expression.kind === 169 && computedPropertyName.expression.operatorToken.kind === 23) { + if (computedPropertyName.expression.kind === 169 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 23 /* CommaToken */) { return grammarErrorOnNode(computedPropertyName.expression, ts.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name); } } @@ -18464,6 +21704,7 @@ var ts; } } function checkGrammarFunctionName(name) { + // It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a strict mode FunctionDeclaration or FunctionExpression (13.1)) return checkGrammarEvalOrArgumentsInStrictMode(name, name); } function checkGrammarForInvalidQuestionMark(node, questionToken, message) { @@ -18477,30 +21718,40 @@ var ts; var GetAccessor = 2; var SetAccesor = 4; var GetOrSetAccessor = GetAccessor | SetAccesor; - var inStrictMode = (node.parserContextFlags & 1) !== 0; + var inStrictMode = (node.parserContextFlags & 1 /* StrictMode */) !== 0; for (var _i = 0, _a = node.properties; _i < _a.length; _i++) { var prop = _a[_i]; var name_11 = prop.name; - if (prop.kind === 175 || - name_11.kind === 127) { + if (prop.kind === 175 /* OmittedExpression */ || + name_11.kind === 127 /* ComputedPropertyName */) { + // If the name is not a ComputedPropertyName, the grammar checking will skip it checkGrammarComputedPropertyName(name_11); continue; } + // ECMA-262 11.1.5 Object Initialiser + // If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true + // a.This production is contained in strict code and IsDataDescriptor(previous) is true and + // IsDataDescriptor(propId.descriptor) is true. + // b.IsDataDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true. + // c.IsAccessorDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true. + // d.IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true + // and either both previous and propId.descriptor have[[Get]] fields or both previous and propId.descriptor have[[Set]] fields var currentKind = void 0; - if (prop.kind === 224 || prop.kind === 225) { + if (prop.kind === 224 /* PropertyAssignment */ || prop.kind === 225 /* ShorthandPropertyAssignment */) { + // Grammar checking for computedPropertName and shorthandPropertyAssignment checkGrammarForInvalidQuestionMark(prop, prop.questionToken, ts.Diagnostics.An_object_member_cannot_be_declared_optional); - if (name_11.kind === 7) { + if (name_11.kind === 7 /* NumericLiteral */) { checkGrammarNumbericLiteral(name_11); } currentKind = Property; } - else if (prop.kind === 134) { + else if (prop.kind === 134 /* MethodDeclaration */) { currentKind = Property; } - else if (prop.kind === 136) { + else if (prop.kind === 136 /* GetAccessor */) { currentKind = GetAccessor; } - else if (prop.kind === 137) { + else if (prop.kind === 137 /* SetAccessor */) { currentKind = SetAccesor; } else { @@ -18534,24 +21785,24 @@ var ts; if (checkGrammarStatementInAmbientContext(forInOrOfStatement)) { return true; } - if (forInOrOfStatement.initializer.kind === 199) { + if (forInOrOfStatement.initializer.kind === 199 /* VariableDeclarationList */) { var variableList = forInOrOfStatement.initializer; if (!checkGrammarVariableDeclarationList(variableList)) { if (variableList.declarations.length > 1) { - var diagnostic = forInOrOfStatement.kind === 187 + var diagnostic = forInOrOfStatement.kind === 187 /* ForInStatement */ ? ts.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : ts.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; return grammarErrorOnFirstToken(variableList.declarations[1], diagnostic); } var firstDeclaration = variableList.declarations[0]; if (firstDeclaration.initializer) { - var diagnostic = forInOrOfStatement.kind === 187 + var diagnostic = forInOrOfStatement.kind === 187 /* ForInStatement */ ? ts.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : ts.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; return grammarErrorOnNode(firstDeclaration.name, diagnostic); } if (firstDeclaration.type) { - var diagnostic = forInOrOfStatement.kind === 187 + var diagnostic = forInOrOfStatement.kind === 187 /* ForInStatement */ ? ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : ts.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; return grammarErrorOnNode(firstDeclaration, diagnostic); @@ -18562,7 +21813,7 @@ var ts; } function checkGrammarAccessor(accessor) { var kind = accessor.kind; - if (languageVersion < 1) { + if (languageVersion < 1 /* ES5 */) { return grammarErrorOnNode(accessor.name, ts.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher); } else if (ts.isInAmbientContext(accessor)) { @@ -18574,10 +21825,10 @@ var ts; else if (accessor.typeParameters) { return grammarErrorOnNode(accessor.name, ts.Diagnostics.An_accessor_cannot_have_type_parameters); } - else if (kind === 136 && accessor.parameters.length) { + else if (kind === 136 /* GetAccessor */ && accessor.parameters.length) { return grammarErrorOnNode(accessor.name, ts.Diagnostics.A_get_accessor_cannot_have_parameters); } - else if (kind === 137) { + else if (kind === 137 /* SetAccessor */) { if (accessor.type) { return grammarErrorOnNode(accessor.name, ts.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation); } @@ -18589,7 +21840,7 @@ var ts; if (parameter.dotDotDotToken) { return grammarErrorOnNode(parameter.dotDotDotToken, ts.Diagnostics.A_set_accessor_cannot_have_rest_parameter); } - else if (parameter.flags & 499) { + else if (parameter.flags & 499 /* Modifier */) { return grammarErrorOnNode(accessor.name, ts.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); } else if (parameter.questionToken) { @@ -18602,7 +21853,7 @@ var ts; } } function checkGrammarForNonSymbolComputedProperty(node, message) { - if (node.kind === 127 && !ts.isWellKnownSymbolSyntactically(node.expression)) { + if (node.kind === 127 /* ComputedPropertyName */ && !ts.isWellKnownSymbolSyntactically(node.expression)) { return grammarErrorOnNode(node, message); } } @@ -18612,7 +21863,7 @@ var ts; checkGrammarForGenerator(node)) { return true; } - if (node.parent.kind === 154) { + if (node.parent.kind === 154 /* ObjectLiteralExpression */) { if (checkGrammarForInvalidQuestionMark(node, node.questionToken, ts.Diagnostics.A_class_member_cannot_be_declared_optional)) { return true; } @@ -18620,10 +21871,15 @@ var ts; return grammarErrorAtPos(getSourceFile(node), node.end - 1, ";".length, ts.Diagnostics._0_expected, "{"); } } - if (node.parent.kind === 201) { + if (node.parent.kind === 201 /* ClassDeclaration */) { if (checkGrammarForInvalidQuestionMark(node, node.questionToken, ts.Diagnostics.A_class_member_cannot_be_declared_optional)) { return true; } + // Technically, computed properties in ambient contexts is disallowed + // for property declarations and accessors too, not just methods. + // However, property declarations disallow computed names in general, + // and accessors are not allowed in ambient contexts in general, + // so this error only really matters for methods. if (ts.isInAmbientContext(node)) { return checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol); } @@ -18631,22 +21887,22 @@ var ts; return checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol); } } - else if (node.parent.kind === 202) { + else if (node.parent.kind === 202 /* InterfaceDeclaration */) { return checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol); } - else if (node.parent.kind === 145) { + else if (node.parent.kind === 145 /* TypeLiteral */) { return checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol); } } function isIterationStatement(node, lookInLabeledStatements) { switch (node.kind) { - case 186: - case 187: - case 188: - case 184: - case 185: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: return true; - case 194: + case 194 /* LabeledStatement */: return lookInLabeledStatements && isIterationStatement(node.statement, lookInLabeledStatements); } return false; @@ -18658,9 +21914,11 @@ var ts; return grammarErrorOnNode(node, ts.Diagnostics.Jump_target_cannot_cross_function_boundary); } switch (current.kind) { - case 194: + case 194 /* LabeledStatement */: if (node.label && current.label.text === node.label.text) { - var isMisplacedContinueLabel = node.kind === 189 + // found matching label - verify that label usage is correct + // continue can only target labels that are on iteration statements + var isMisplacedContinueLabel = node.kind === 189 /* ContinueStatement */ && !isIterationStatement(current.statement, true); if (isMisplacedContinueLabel) { return grammarErrorOnNode(node, ts.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement); @@ -18668,13 +21926,15 @@ var ts; return false; } break; - case 193: - if (node.kind === 190 && !node.label) { + case 193 /* SwitchStatement */: + if (node.kind === 190 /* BreakStatement */ && !node.label) { + // unlabeled break within switch statement - ok return false; } break; default: if (isIterationStatement(current, false) && !node.label) { + // unlabeled break or continue within iteration statement - ok return false; } break; @@ -18682,13 +21942,13 @@ var ts; current = current.parent; } if (node.label) { - var message = node.kind === 190 + var message = node.kind === 190 /* BreakStatement */ ? ts.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : ts.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); } else { - var message = node.kind === 190 + var message = node.kind === 190 /* BreakStatement */ ? ts.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : ts.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; return grammarErrorOnNode(node, message); @@ -18701,15 +21961,19 @@ var ts; return grammarErrorOnNode(node, ts.Diagnostics.A_rest_element_must_be_last_in_an_array_destructuring_pattern); } if (node.initializer) { + // Error on equals token which immediate precedes the initializer return grammarErrorAtPos(ts.getSourceFileOfNode(node), node.initializer.pos - 1, 1, ts.Diagnostics.A_rest_element_cannot_have_an_initializer); } } + // It is a SyntaxError if a VariableDeclaration or VariableDeclarationNoIn occurs within strict code + // and its Identifier is eval or arguments return checkGrammarEvalOrArgumentsInStrictMode(node, node.name); } function checkGrammarVariableDeclaration(node) { - if (node.parent.parent.kind !== 187 && node.parent.parent.kind !== 188) { + if (node.parent.parent.kind !== 187 /* ForInStatement */ && node.parent.parent.kind !== 188 /* ForOfStatement */) { if (ts.isInAmbientContext(node)) { if (node.initializer) { + // Error on equals token which immediate precedes the initializer var equalsTokenLength = "=".length; return grammarErrorAtPos(ts.getSourceFileOfNode(node), node.initializer.pos - equalsTokenLength, equalsTokenLength, ts.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts); } @@ -18723,12 +21987,18 @@ var ts; } } } - var checkLetConstNames = languageVersion >= 2 && (ts.isLet(node) || ts.isConst(node)); + var checkLetConstNames = languageVersion >= 2 /* ES6 */ && (ts.isLet(node) || ts.isConst(node)); + // 1. LexicalDeclaration : LetOrConst BindingList ; + // It is a Syntax Error if the BoundNames of BindingList contains "let". + // 2. ForDeclaration: ForDeclaration : LetOrConst ForBinding + // It is a Syntax Error if the BoundNames of ForDeclaration contains "let". + // It is a SyntaxError if a VariableDeclaration or VariableDeclarationNoIn occurs within strict code + // and its Identifier is eval or arguments return (checkLetConstNames && checkGrammarNameInLetOrConstDeclarations(node.name)) || checkGrammarEvalOrArgumentsInStrictMode(node, node.name); } function checkGrammarNameInLetOrConstDeclarations(name) { - if (name.kind === 65) { + if (name.kind === 65 /* Identifier */) { if (name.text === "let") { return grammarErrorOnNode(name, ts.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations); } @@ -18737,7 +22007,9 @@ var ts; var elements = name.elements; for (var _i = 0; _i < elements.length; _i++) { var element = elements[_i]; - checkGrammarNameInLetOrConstDeclarations(element.name); + if (element.kind !== 175 /* OmittedExpression */) { + checkGrammarNameInLetOrConstDeclarations(element.name); + } } } } @@ -18752,15 +22024,15 @@ var ts; } function allowLetAndConstDeclarations(parent) { switch (parent.kind) { - case 183: - case 184: - case 185: - case 192: - case 186: - case 187: - case 188: + case 183 /* IfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + case 192 /* WithStatement */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: return false; - case 194: + case 194 /* LabeledStatement */: return allowLetAndConstDeclarations(parent.parent); } return true; @@ -18776,26 +22048,36 @@ var ts; } } function isIntegerLiteral(expression) { - if (expression.kind === 167) { + if (expression.kind === 167 /* PrefixUnaryExpression */) { var unaryExpression = expression; - if (unaryExpression.operator === 33 || unaryExpression.operator === 34) { + if (unaryExpression.operator === 33 /* PlusToken */ || unaryExpression.operator === 34 /* MinusToken */) { expression = unaryExpression.operand; } } - if (expression.kind === 7) { + if (expression.kind === 7 /* NumericLiteral */) { + // Allows for scientific notation since literalExpression.text was formed by + // coercing a number to a string. Sometimes this coercion can yield a string + // in scientific notation. + // We also don't need special logic for hex because a hex integer is converted + // to decimal when it is coerced. return /^[0-9]+([eE]\+?[0-9]+)?$/.test(expression.text); } return false; } function checkGrammarEnumDeclaration(enumDecl) { - var enumIsConst = (enumDecl.flags & 8192) !== 0; + var enumIsConst = (enumDecl.flags & 8192 /* Const */) !== 0; var hasError = false; + // skip checks below for const enums - they allow arbitrary initializers as long as they can be evaluated to constant expressions. + // since all values are known in compile time - it is not necessary to check that constant enum section precedes computed enum members. if (!enumIsConst) { var inConstantEnumMemberSection = true; var inAmbientContext = ts.isInAmbientContext(enumDecl); for (var _i = 0, _a = enumDecl.members; _i < _a.length; _i++) { var node = _a[_i]; - if (node.name.kind === 127) { + // Do not use hasDynamicName here, because that returns false for well known symbols. + // We want to perform checkComputedPropertyName for all computed properties, including + // well known symbols. + if (node.name.kind === 127 /* ComputedPropertyName */) { hasError = grammarErrorOnNode(node.name, ts.Diagnostics.Computed_property_names_are_not_allowed_in_enums); } else if (inAmbientContext) { @@ -18838,11 +22120,19 @@ var ts; } } function checkGrammarEvalOrArgumentsInStrictMode(contextNode, name) { - if (name && name.kind === 65) { + if (name && name.kind === 65 /* Identifier */) { var identifier = name; - if (contextNode && (contextNode.parserContextFlags & 1) && ts.isEvalOrArgumentsIdentifier(identifier)) { + if (contextNode && (contextNode.parserContextFlags & 1 /* StrictMode */) && ts.isEvalOrArgumentsIdentifier(identifier)) { var nameText = ts.declarationNameToString(identifier); - return grammarErrorOnNode(identifier, ts.Diagnostics.Invalid_use_of_0_in_strict_mode, nameText); + // We are checking if this name is inside class declaration or class expression (which are under class definitions inside ES6 spec.) + // if so, we would like to give more explicit invalid usage error. + // This will be particularly helpful in the case of "arguments" as such case is very common mistake. + if (ts.getAncestor(name, 201 /* ClassDeclaration */) || ts.getAncestor(name, 174 /* ClassExpression */)) { + return grammarErrorOnNode(identifier, ts.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode, nameText); + } + else { + return grammarErrorOnNode(identifier, ts.Diagnostics.Invalid_use_of_0_in_strict_mode, nameText); + } } } } @@ -18857,18 +22147,18 @@ var ts; } } function checkGrammarProperty(node) { - if (node.parent.kind === 201) { + if (node.parent.kind === 201 /* ClassDeclaration */) { if (checkGrammarForInvalidQuestionMark(node, node.questionToken, ts.Diagnostics.A_class_member_cannot_be_declared_optional) || checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol)) { return true; } } - else if (node.parent.kind === 202) { + else if (node.parent.kind === 202 /* InterfaceDeclaration */) { if (checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol)) { return true; } } - else if (node.parent.kind === 145) { + else if (node.parent.kind === 145 /* TypeLiteral */) { if (checkGrammarForNonSymbolComputedProperty(node.name, ts.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)) { return true; } @@ -18878,13 +22168,23 @@ var ts; } } function checkGrammarTopLevelElementForRequiredDeclareModifier(node) { - if (node.kind === 202 || - node.kind === 209 || - node.kind === 208 || - node.kind === 215 || - node.kind === 214 || - (node.flags & 2) || - (node.flags & (1 | 256))) { + // A declare modifier is required for any top level .d.ts declaration except export=, export default, + // interfaces and imports categories: + // + // DeclarationElement: + // ExportAssignment + // export_opt InterfaceDeclaration + // export_opt ImportDeclaration + // export_opt ExternalImportDeclaration + // export_opt AmbientDeclaration + // + if (node.kind === 202 /* InterfaceDeclaration */ || + node.kind === 209 /* ImportDeclaration */ || + node.kind === 208 /* ImportEqualsDeclaration */ || + node.kind === 215 /* ExportDeclaration */ || + node.kind === 214 /* ExportAssignment */ || + (node.flags & 2 /* Ambient */) || + (node.flags & (1 /* Export */ | 256 /* Default */))) { return false; } return grammarErrorOnFirstToken(node, ts.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file); @@ -18892,7 +22192,7 @@ var ts; function checkGrammarTopLevelElementsForRequiredDeclareModifier(file) { for (var _i = 0, _a = file.statements; _i < _a.length; _i++) { var decl = _a[_i]; - if (ts.isDeclaration(decl) || decl.kind === 180) { + if (ts.isDeclaration(decl) || decl.kind === 180 /* VariableStatement */) { if (checkGrammarTopLevelElementForRequiredDeclareModifier(decl)) { return true; } @@ -18904,15 +22204,23 @@ var ts; } function checkGrammarStatementInAmbientContext(node) { if (ts.isInAmbientContext(node)) { + // An accessors is already reported about the ambient context if (isAccessor(node.parent.kind)) { return getNodeLinks(node).hasReportedStatementInAmbientContext = true; } + // Find containing block which is either Block, ModuleBlock, SourceFile var links = getNodeLinks(node); if (!links.hasReportedStatementInAmbientContext && ts.isFunctionLike(node.parent)) { return getNodeLinks(node).hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, ts.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); } - if (node.parent.kind === 179 || node.parent.kind === 206 || node.parent.kind === 227) { + // We are either parented by another statement, or some sort of block. + // If we're in a block, we only want to really report an error once + // to prevent noisyness. So use a bit on the block to indicate if + // this has already been reported, and don't report if it has. + // + if (node.parent.kind === 179 /* Block */ || node.parent.kind === 206 /* ModuleBlock */ || node.parent.kind === 227 /* SourceFile */) { var links_1 = getNodeLinks(node.parent); + // Check if the containing block ever report this error if (!links_1.hasReportedStatementInAmbientContext) { return links_1.hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, ts.Diagnostics.Statements_are_not_allowed_in_ambient_contexts); } @@ -18922,11 +22230,12 @@ var ts; } } function checkGrammarNumbericLiteral(node) { - if (node.flags & 16384) { - if (node.parserContextFlags & 1) { + // Grammar checking + if (node.flags & 16384 /* OctalLiteral */) { + if (node.parserContextFlags & 1 /* StrictMode */) { return grammarErrorOnNode(node, ts.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode); } - else if (languageVersion >= 1) { + else if (languageVersion >= 1 /* ES5 */) { return grammarErrorOnNode(node, ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher); } } @@ -18945,6 +22254,7 @@ var ts; ts.createTypeChecker = createTypeChecker; })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { function getDeclarationDiagnostics(host, resolver, targetSourceFile) { @@ -18957,7 +22267,7 @@ var ts; function emitDeclarations(host, resolver, diagnostics, jsFilePath, root) { var newLine = host.getNewLine(); var compilerOptions = host.getCompilerOptions(); - var languageVersion = compilerOptions.target || 0; + var languageVersion = compilerOptions.target || 0 /* ES3 */; var write; var writeLine; var increaseIndent; @@ -18971,13 +22281,18 @@ var ts; var emit = compilerOptions.stripInternal ? stripInternal : emitNode; var moduleElementDeclarationEmitInfo = []; var asynchronousSubModuleDeclarationEmitInfo; + // Contains the reference paths that needs to go in the declaration file. + // Collecting this separately because reference paths need to be first thing in the declaration file + // and we could be collecting these paths from multiple files into single one with --out option var referencePathsOutput = ""; if (root) { + // Emitting just a single file, so emit references in this file only if (!compilerOptions.noResolve) { var addedGlobalFileReference = false; ts.forEach(root.referencedFiles, function (fileReference) { var referencedFile = ts.tryResolveScriptReference(host, root, fileReference); - if (referencedFile && ((referencedFile.flags & 2048) || + // All the references that are not going to be part of same file + if (referencedFile && ((referencedFile.flags & 2048 /* DeclarationFile */) || ts.shouldEmitToOwnFile(referencedFile, compilerOptions) || !addedGlobalFileReference)) { writeReferencePath(referencedFile); @@ -18988,11 +22303,12 @@ var ts; }); } emitSourceFile(root); + // create asynchronous output for the importDeclarations if (moduleElementDeclarationEmitInfo.length) { var oldWriter = writer; ts.forEach(moduleElementDeclarationEmitInfo, function (aliasEmitInfo) { if (aliasEmitInfo.isVisible) { - ts.Debug.assert(aliasEmitInfo.node.kind === 209); + ts.Debug.assert(aliasEmitInfo.node.kind === 209 /* ImportDeclaration */); createAndSetNewTextWriterWithSymbolWriter(); ts.Debug.assert(aliasEmitInfo.indent === 0); writeImportDeclaration(aliasEmitInfo.node); @@ -19003,12 +22319,15 @@ var ts; } } else { + // Emit references corresponding to this file var emittedReferencedFiles = []; ts.forEach(host.getSourceFiles(), function (sourceFile) { if (!ts.isExternalModuleOrDeclarationFile(sourceFile)) { + // Check what references need to be added if (!compilerOptions.noResolve) { ts.forEach(sourceFile.referencedFiles, function (fileReference) { var referencedFile = ts.tryResolveScriptReference(host, sourceFile, fileReference); + // If the reference file is a declaration file or an external module, emit that reference if (referencedFile && (ts.isExternalModuleOrDeclarationFile(referencedFile) && !ts.contains(emittedReferencedFiles, referencedFile))) { writeReferencePath(referencedFile); @@ -19065,10 +22384,10 @@ var ts; var oldWriter = writer; ts.forEach(nodes, function (declaration) { var nodeToCheck; - if (declaration.kind === 198) { + if (declaration.kind === 198 /* VariableDeclaration */) { nodeToCheck = declaration.parent.parent; } - else if (declaration.kind === 212 || declaration.kind === 213 || declaration.kind === 210) { + else if (declaration.kind === 212 /* NamedImports */ || declaration.kind === 213 /* ImportSpecifier */ || declaration.kind === 210 /* ImportClause */) { ts.Debug.fail("We should be getting ImportDeclaration instead to write"); } else { @@ -19078,8 +22397,17 @@ var ts; if (!moduleElementEmitInfo && asynchronousSubModuleDeclarationEmitInfo) { moduleElementEmitInfo = ts.forEach(asynchronousSubModuleDeclarationEmitInfo, function (declEmitInfo) { return declEmitInfo.node === nodeToCheck ? declEmitInfo : undefined; }); } + // If the alias was marked as not visible when we saw its declaration, we would have saved the aliasEmitInfo, but if we haven't yet visited the alias declaration + // then we don't need to write it at this point. We will write it when we actually see its declaration + // Eg. + // export function bar(a: foo.Foo) { } + // import foo = require("foo"); + // Writing of function bar would mark alias declaration foo as visible but we haven't yet visited that declaration so do nothing, + // we would write alias foo declaration when we visit it since it would now be marked as visible if (moduleElementEmitInfo) { - if (moduleElementEmitInfo.node.kind === 209) { + if (moduleElementEmitInfo.node.kind === 209 /* ImportDeclaration */) { + // we have to create asynchronous output only after we have collected complete information + // because it is possible to enable multiple bindings as asynchronously visible moduleElementEmitInfo.isVisible = true; } else { @@ -19087,12 +22415,12 @@ var ts; for (var declarationIndent = moduleElementEmitInfo.indent; declarationIndent; declarationIndent--) { increaseIndent(); } - if (nodeToCheck.kind === 205) { + if (nodeToCheck.kind === 205 /* ModuleDeclaration */) { ts.Debug.assert(asynchronousSubModuleDeclarationEmitInfo === undefined); asynchronousSubModuleDeclarationEmitInfo = []; } writeModuleElement(nodeToCheck); - if (nodeToCheck.kind === 205) { + if (nodeToCheck.kind === 205 /* ModuleDeclaration */) { moduleElementEmitInfo.subModuleElementDeclarationEmitInfo = asynchronousSubModuleDeclarationEmitInfo; asynchronousSubModuleDeclarationEmitInfo = undefined; } @@ -19103,12 +22431,14 @@ var ts; setWriter(oldWriter); } function handleSymbolAccessibilityError(symbolAccesibilityResult) { - if (symbolAccesibilityResult.accessibility === 0) { + if (symbolAccesibilityResult.accessibility === 0 /* Accessible */) { + // write the aliases if (symbolAccesibilityResult && symbolAccesibilityResult.aliasesToMakeVisible) { writeAsynchronousModuleElements(symbolAccesibilityResult.aliasesToMakeVisible); } } else { + // Report error reportedDeclarationError = true; var errorInfo = writer.getSymbolAccessibilityDiagnostic(symbolAccesibilityResult); if (errorInfo) { @@ -19128,20 +22458,22 @@ var ts; writer.getSymbolAccessibilityDiagnostic = getSymbolAccessibilityDiagnostic; write(": "); if (type) { + // Write the type emitType(type); } else { - resolver.writeTypeOfDeclaration(declaration, enclosingDeclaration, 2, writer); + resolver.writeTypeOfDeclaration(declaration, enclosingDeclaration, 2 /* UseTypeOfFunction */, writer); } } function writeReturnTypeAtSignature(signature, getSymbolAccessibilityDiagnostic) { writer.getSymbolAccessibilityDiagnostic = getSymbolAccessibilityDiagnostic; write(": "); if (signature.type) { + // Write the type emitType(signature.type); } else { - resolver.writeReturnTypeOfSignatureDeclaration(signature, enclosingDeclaration, 2, writer); + resolver.writeReturnTypeOfSignatureDeclaration(signature, enclosingDeclaration, 2 /* UseTypeOfFunction */, writer); } } function emitLines(nodes) { @@ -19170,6 +22502,7 @@ var ts; if (declaration) { var jsDocComments = ts.getJsDocComments(declaration, currentSourceFile); ts.emitNewLineBeforeLeadingComments(currentSourceFile, writer, declaration, jsDocComments); + // jsDoc comments are emitted at /*leading comment1 */space/*leading comment*/space ts.emitComments(currentSourceFile, writer, jsDocComments, true, newLine, ts.writeCommentRange); } } @@ -19179,49 +22512,51 @@ var ts; } function emitType(type) { switch (type.kind) { - case 112: - case 121: - case 119: - case 113: - case 122: - case 99: - case 8: + case 112 /* AnyKeyword */: + case 121 /* StringKeyword */: + case 119 /* NumberKeyword */: + case 113 /* BooleanKeyword */: + case 122 /* SymbolKeyword */: + case 99 /* VoidKeyword */: + case 8 /* StringLiteral */: return writeTextOfNode(currentSourceFile, type); - case 177: + case 177 /* HeritageClauseElement */: return emitHeritageClauseElement(type); - case 141: + case 141 /* TypeReference */: return emitTypeReference(type); - case 144: + case 144 /* TypeQuery */: return emitTypeQuery(type); - case 146: + case 146 /* ArrayType */: return emitArrayType(type); - case 147: + case 147 /* TupleType */: return emitTupleType(type); - case 148: + case 148 /* UnionType */: return emitUnionType(type); - case 149: + case 149 /* ParenthesizedType */: return emitParenType(type); - case 142: - case 143: + case 142 /* FunctionType */: + case 143 /* ConstructorType */: return emitSignatureDeclarationWithJsDocComments(type); - case 145: + case 145 /* TypeLiteral */: return emitTypeLiteral(type); - case 65: + case 65 /* Identifier */: return emitEntityName(type); - case 126: + case 126 /* QualifiedName */: return emitEntityName(type); } function emitEntityName(entityName) { - var visibilityResult = resolver.isEntityNameVisible(entityName, entityName.parent.kind === 208 ? entityName.parent : enclosingDeclaration); + var visibilityResult = resolver.isEntityNameVisible(entityName, + // Aliases can be written asynchronously so use correct enclosing declaration + entityName.parent.kind === 208 /* ImportEqualsDeclaration */ ? entityName.parent : enclosingDeclaration); handleSymbolAccessibilityError(visibilityResult); writeEntityName(entityName); function writeEntityName(entityName) { - if (entityName.kind === 65) { + if (entityName.kind === 65 /* Identifier */) { writeTextOfNode(currentSourceFile, entityName); } else { - var left = entityName.kind === 126 ? entityName.left : entityName.expression; - var right = entityName.kind === 126 ? entityName.right : entityName.name; + var left = entityName.kind === 126 /* QualifiedName */ ? entityName.left : entityName.expression; + var right = entityName.kind === 126 /* QualifiedName */ ? entityName.right : entityName.name; writeEntityName(left); write("."); writeTextOfNode(currentSourceFile, right); @@ -19230,7 +22565,7 @@ var ts; } function emitHeritageClauseElement(node) { if (ts.isSupportedHeritageClauseElement(node)) { - ts.Debug.assert(node.expression.kind === 65 || node.expression.kind === 155); + ts.Debug.assert(node.expression.kind === 65 /* Identifier */ || node.expression.kind === 155 /* PropertyAccessExpression */); emitEntityName(node.expression); if (node.typeArguments) { write("<"); @@ -19273,6 +22608,7 @@ var ts; if (type.members.length) { writeLine(); increaseIndent(); + // write members emitLines(type.members); decreaseIndent(); } @@ -19284,25 +22620,47 @@ var ts; enclosingDeclaration = node; emitLines(node.statements); } + // Return a temp variable name to be used in `export default` statements. + // The temp name will be of the form _default_counter. + // Note that export default is only allowed at most once in a module, so we + // do not need to keep track of created temp names. + function getExportDefaultTempVariableName() { + var baseName = "_default"; + if (!ts.hasProperty(currentSourceFile.identifiers, baseName)) { + return baseName; + } + var count = 0; + while (true) { + var name_12 = baseName + "_" + (++count); + if (!ts.hasProperty(currentSourceFile.identifiers, name_12)) { + return name_12; + } + } + } function emitExportAssignment(node) { - write(node.isExportEquals ? "export = " : "export default "); - if (node.expression.kind === 65) { + if (node.expression.kind === 65 /* Identifier */) { + write(node.isExportEquals ? "export = " : "export default "); writeTextOfNode(currentSourceFile, node.expression); } else { + // Expression + var tempVarName = getExportDefaultTempVariableName(); + write("declare var "); + write(tempVarName); write(": "); - if (node.type) { - emitType(node.type); - } - else { - writer.getSymbolAccessibilityDiagnostic = getDefaultExportAccessibilityDiagnostic; - resolver.writeTypeOfExpression(node.expression, enclosingDeclaration, 2, writer); - } + writer.getSymbolAccessibilityDiagnostic = getDefaultExportAccessibilityDiagnostic; + resolver.writeTypeOfExpression(node.expression, enclosingDeclaration, 2 /* UseTypeOfFunction */, writer); + write(";"); + writeLine(); + write(node.isExportEquals ? "export = " : "export default "); + write(tempVarName); } write(";"); writeLine(); - if (node.expression.kind === 65) { + // Make all the declarations visible for the export name + if (node.expression.kind === 65 /* Identifier */) { var nodes = resolver.collectLinkedAliases(node.expression); + // write each of these declarations asynchronously writeAsynchronousModuleElements(nodes); } function getDefaultExportAccessibilityDiagnostic(diagnostic) { @@ -19319,10 +22677,11 @@ var ts; if (isModuleElementVisible) { writeModuleElement(node); } - else if (node.kind === 208 || - (node.parent.kind === 227 && ts.isExternalModule(currentSourceFile))) { + else if (node.kind === 208 /* ImportEqualsDeclaration */ || + (node.parent.kind === 227 /* SourceFile */ && ts.isExternalModule(currentSourceFile))) { var isVisible; - if (asynchronousSubModuleDeclarationEmitInfo && node.parent.kind !== 227) { + if (asynchronousSubModuleDeclarationEmitInfo && node.parent.kind !== 227 /* SourceFile */) { + // Import declaration of another module that is visited async so lets put it in right spot asynchronousSubModuleDeclarationEmitInfo.push({ node: node, outputPos: writer.getTextPos(), @@ -19331,7 +22690,7 @@ var ts; }); } else { - if (node.kind === 209) { + if (node.kind === 209 /* ImportDeclaration */) { var importDeclaration = node; if (importDeclaration.importClause) { isVisible = (importDeclaration.importClause.name && resolver.isDeclarationVisible(importDeclaration.importClause)) || @@ -19349,55 +22708,59 @@ var ts; } function writeModuleElement(node) { switch (node.kind) { - case 200: + case 200 /* FunctionDeclaration */: return writeFunctionDeclaration(node); - case 180: + case 180 /* VariableStatement */: return writeVariableStatement(node); - case 202: + case 202 /* InterfaceDeclaration */: return writeInterfaceDeclaration(node); - case 201: + case 201 /* ClassDeclaration */: return writeClassDeclaration(node); - case 203: + case 203 /* TypeAliasDeclaration */: return writeTypeAliasDeclaration(node); - case 204: + case 204 /* EnumDeclaration */: return writeEnumDeclaration(node); - case 205: + case 205 /* ModuleDeclaration */: return writeModuleDeclaration(node); - case 208: + case 208 /* ImportEqualsDeclaration */: return writeImportEqualsDeclaration(node); - case 209: + case 209 /* ImportDeclaration */: return writeImportDeclaration(node); default: ts.Debug.fail("Unknown symbol kind"); } } function emitModuleElementDeclarationFlags(node) { + // If the node is parented in the current source file we need to emit export declare or just export if (node.parent === currentSourceFile) { - if (node.flags & 1) { + // If the node is exported + if (node.flags & 1 /* Export */) { write("export "); } - if (node.flags & 256) { + if (node.flags & 256 /* Default */) { write("default "); } - else if (node.kind !== 202) { + else if (node.kind !== 202 /* InterfaceDeclaration */) { write("declare "); } } } function emitClassMemberDeclarationFlags(node) { - if (node.flags & 32) { + if (node.flags & 32 /* Private */) { write("private "); } - else if (node.flags & 64) { + else if (node.flags & 64 /* Protected */) { write("protected "); } - if (node.flags & 128) { + if (node.flags & 128 /* Static */) { write("static "); } } function writeImportEqualsDeclaration(node) { + // note usage of writer. methods instead of aliases created, just to make sure we are using + // correct writer especially to handle asynchronous alias writing emitJsDocComments(node); - if (node.flags & 1) { + if (node.flags & 1 /* Export */) { write("export "); } write("import "); @@ -19423,7 +22786,7 @@ var ts; } function isVisibleNamedBinding(namedBindings) { if (namedBindings) { - if (namedBindings.kind === 211) { + if (namedBindings.kind === 211 /* NamespaceImport */) { return resolver.isDeclarationVisible(namedBindings); } else { @@ -19432,11 +22795,12 @@ var ts; } } function writeImportDeclaration(node) { - if (!node.importClause && !(node.flags & 1)) { + if (!node.importClause && !(node.flags & 1 /* Export */)) { + // do not write non-exported import declarations that don't have import clauses return; } emitJsDocComments(node); - if (node.flags & 1) { + if (node.flags & 1 /* Export */) { write("export "); } write("import "); @@ -19447,9 +22811,10 @@ var ts; } if (node.importClause.namedBindings && isVisibleNamedBinding(node.importClause.namedBindings)) { if (currentWriterPos !== writer.getTextPos()) { + // If the default binding was emitted, write the separated write(", "); } - if (node.importClause.namedBindings.kind === 211) { + if (node.importClause.namedBindings.kind === 211 /* NamespaceImport */) { write("* as "); writeTextOfNode(currentSourceFile, node.importClause.namedBindings.name); } @@ -19474,7 +22839,9 @@ var ts; } function emitExportSpecifier(node) { emitImportOrExportSpecifier(node); + // Make all the declarations visible for the export name var nodes = resolver.collectLinkedAliases(node.propertyName || node.name); + // write each of these declarations asynchronously writeAsynchronousModuleElements(nodes); } function emitExportDeclaration(node) { @@ -19500,7 +22867,7 @@ var ts; emitModuleElementDeclarationFlags(node); write("module "); writeTextOfNode(currentSourceFile, node.name); - while (node.body.kind !== 206) { + while (node.body.kind !== 206 /* ModuleBlock */) { node = node.body; write("."); writeTextOfNode(currentSourceFile, node.name); @@ -19561,7 +22928,7 @@ var ts; writeLine(); } function isPrivateMethodTypeParameter(node) { - return node.parent.kind === 134 && (node.parent.flags & 32); + return node.parent.kind === 134 /* MethodDeclaration */ && (node.parent.flags & 32 /* Private */); } function emitTypeParameters(typeParameters) { function emitTypeParameter(node) { @@ -19569,17 +22936,18 @@ var ts; emitJsDocComments(node); decreaseIndent(); writeTextOfNode(currentSourceFile, node.name); + // If there is constraint present and this is not a type parameter of the private method emit the constraint if (node.constraint && !isPrivateMethodTypeParameter(node)) { write(" extends "); - if (node.parent.kind === 142 || - node.parent.kind === 143 || - (node.parent.parent && node.parent.parent.kind === 145)) { - ts.Debug.assert(node.parent.kind === 134 || - node.parent.kind === 133 || - node.parent.kind === 142 || - node.parent.kind === 143 || - node.parent.kind === 138 || - node.parent.kind === 139); + if (node.parent.kind === 142 /* FunctionType */ || + node.parent.kind === 143 /* ConstructorType */ || + (node.parent.parent && node.parent.parent.kind === 145 /* TypeLiteral */)) { + ts.Debug.assert(node.parent.kind === 134 /* MethodDeclaration */ || + node.parent.kind === 133 /* MethodSignature */ || + node.parent.kind === 142 /* FunctionType */ || + node.parent.kind === 143 /* ConstructorType */ || + node.parent.kind === 138 /* CallSignature */ || + node.parent.kind === 139 /* ConstructSignature */); emitType(node.constraint); } else { @@ -19587,33 +22955,34 @@ var ts; } } function getTypeParameterConstraintVisibilityError(symbolAccesibilityResult) { + // Type parameter constraints are named by user so we should always be able to name it var diagnosticMessage; switch (node.parent.kind) { - case 201: + case 201 /* ClassDeclaration */: diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1; break; - case 202: + case 202 /* InterfaceDeclaration */: diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1; break; - case 139: + case 139 /* ConstructSignature */: diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; break; - case 138: + case 138 /* CallSignature */: diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; break; - case 134: - case 133: - if (node.parent.flags & 128) { + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + if (node.parent.flags & 128 /* Static */) { diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; } - else if (node.parent.parent.kind === 201) { + else if (node.parent.parent.kind === 201 /* ClassDeclaration */) { diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } break; - case 200: + case 200 /* FunctionDeclaration */: diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1; break; default: @@ -19643,12 +23012,15 @@ var ts; } function getHeritageClauseVisibilityError(symbolAccesibilityResult) { var diagnosticMessage; - if (node.parent.parent.kind === 201) { + // Heritage clause is written by user so it can always be named + if (node.parent.parent.kind === 201 /* ClassDeclaration */) { + // Class or Interface implemented/extended is inaccessible diagnosticMessage = isImplementsList ? ts.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1 : ts.Diagnostics.Extends_clause_of_exported_class_0_has_or_is_using_private_name_1; } else { + // interface is inaccessible diagnosticMessage = ts.Diagnostics.Extends_clause_of_exported_interface_0_has_or_is_using_private_name_1; } return { @@ -19663,7 +23035,7 @@ var ts; function emitParameterProperties(constructorDeclaration) { if (constructorDeclaration) { ts.forEach(constructorDeclaration.parameters, function (param) { - if (param.flags & 112) { + if (param.flags & 112 /* AccessibilityModifier */) { emitPropertyDeclaration(param); } }); @@ -19720,47 +23092,55 @@ var ts; writeLine(); } function emitVariableDeclaration(node) { - if (node.kind !== 198 || resolver.isDeclarationVisible(node)) { + // If we are emitting property it isn't moduleElement and hence we already know it needs to be emitted + // so there is no check needed to see if declaration is visible + if (node.kind !== 198 /* VariableDeclaration */ || resolver.isDeclarationVisible(node)) { if (ts.isBindingPattern(node.name)) { emitBindingPattern(node.name); } else { + // If this node is a computed name, it can only be a symbol, because we've already skipped + // it if it's not a well known symbol. In that case, the text of the name will be exactly + // what we want, namely the name expression enclosed in brackets. writeTextOfNode(currentSourceFile, node.name); - if ((node.kind === 132 || node.kind === 131) && ts.hasQuestionToken(node)) { + // If optional property emit ? + if ((node.kind === 132 /* PropertyDeclaration */ || node.kind === 131 /* PropertySignature */) && ts.hasQuestionToken(node)) { write("?"); } - if ((node.kind === 132 || node.kind === 131) && node.parent.kind === 145) { + if ((node.kind === 132 /* PropertyDeclaration */ || node.kind === 131 /* PropertySignature */) && node.parent.kind === 145 /* TypeLiteral */) { emitTypeOfVariableDeclarationFromTypeLiteral(node); } - else if (!(node.flags & 32)) { + else if (!(node.flags & 32 /* Private */)) { writeTypeOfDeclaration(node, node.type, getVariableDeclarationTypeVisibilityError); } } } function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult) { - if (node.kind === 198) { + if (node.kind === 198 /* VariableDeclaration */) { return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1; } - else if (node.kind === 132 || node.kind === 131) { - if (node.flags & 128) { + else if (node.kind === 132 /* PropertyDeclaration */ || node.kind === 131 /* PropertySignature */) { + // TODO(jfreeman): Deal with computed properties in error reporting. + if (node.flags & 128 /* Static */) { return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; } - else if (node.parent.kind === 201) { + else if (node.parent.kind === 201 /* ClassDeclaration */) { return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; } else { + // Interfaces cannot have types that cannot be named return symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; @@ -19776,10 +23156,15 @@ var ts; } : undefined; } function emitBindingPattern(bindingPattern) { + // Only select non-omitted expression from the bindingPattern's elements. + // We have to do this to avoid emitting trailing commas. + // For example: + // original: var [, c,,] = [ 2,3,4] + // emitted: declare var c: number; // instead of declare var c:number, ; var elements = []; for (var _i = 0, _a = bindingPattern.elements; _i < _a.length; _i++) { var element = _a[_i]; - if (element.kind !== 175) { + if (element.kind !== 175 /* OmittedExpression */) { elements.push(element); } } @@ -19806,6 +23191,9 @@ var ts; } } function emitTypeOfVariableDeclarationFromTypeLiteral(node) { + // if this is property of type literal, + // or is parameter of method/call/construct/index signature of type literal + // emit only if type is specified if (node.type) { write(": "); emitType(node.type); @@ -19841,11 +23229,12 @@ var ts; emitJsDocComments(accessors.setAccessor); emitClassMemberDeclarationFlags(node); writeTextOfNode(currentSourceFile, node.name); - if (!(node.flags & 32)) { + if (!(node.flags & 32 /* Private */)) { accessorWithTypeAnnotation = node; var type = getTypeAnnotationFromAccessor(node); if (!type) { - var anotherAccessor = node.kind === 136 ? accessors.setAccessor : accessors.getAccessor; + // couldn't get type for the first accessor, try the another one + var anotherAccessor = node.kind === 136 /* GetAccessor */ ? accessors.setAccessor : accessors.getAccessor; type = getTypeAnnotationFromAccessor(anotherAccessor); if (type) { accessorWithTypeAnnotation = anotherAccessor; @@ -19858,17 +23247,18 @@ var ts; } function getTypeAnnotationFromAccessor(accessor) { if (accessor) { - return accessor.kind === 136 - ? accessor.type + return accessor.kind === 136 /* GetAccessor */ + ? accessor.type // Getter - return type : accessor.parameters.length > 0 - ? accessor.parameters[0].type + ? accessor.parameters[0].type // Setter parameter type : undefined; } } function getAccessorDeclarationTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage; - if (accessorWithTypeAnnotation.kind === 137) { - if (accessorWithTypeAnnotation.parent.flags & 128) { + if (accessorWithTypeAnnotation.kind === 137 /* SetAccessor */) { + // Setters have to have type named and cannot infer it so, the type should always be named + if (accessorWithTypeAnnotation.parent.flags & 128 /* Static */) { diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1; @@ -19881,20 +23271,21 @@ var ts; return { diagnosticMessage: diagnosticMessage, errorNode: accessorWithTypeAnnotation.parameters[0], + // TODO(jfreeman): Investigate why we are passing node.name instead of node.parameters[0].name typeName: accessorWithTypeAnnotation.name }; } else { - if (accessorWithTypeAnnotation.flags & 128) { + if (accessorWithTypeAnnotation.flags & 128 /* Static */) { diagnosticMessage = symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0; } else { diagnosticMessage = symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0; @@ -19911,19 +23302,21 @@ var ts; if (ts.hasDynamicName(node)) { return; } + // If we are emitting Method/Constructor it isn't moduleElement and hence already determined to be emitting + // so no need to verify if the declaration is visible if (!resolver.isImplementationOfOverload(node)) { emitJsDocComments(node); - if (node.kind === 200) { + if (node.kind === 200 /* FunctionDeclaration */) { emitModuleElementDeclarationFlags(node); } - else if (node.kind === 134) { + else if (node.kind === 134 /* MethodDeclaration */) { emitClassMemberDeclarationFlags(node); } - if (node.kind === 200) { + if (node.kind === 200 /* FunctionDeclaration */) { write("function "); writeTextOfNode(currentSourceFile, node.name); } - else if (node.kind === 135) { + else if (node.kind === 135 /* Constructor */) { write("constructor"); } else { @@ -19940,11 +23333,12 @@ var ts; emitSignatureDeclaration(node); } function emitSignatureDeclaration(node) { - if (node.kind === 139 || node.kind === 143) { + // Construct signature or constructor type write new Signature + if (node.kind === 139 /* ConstructSignature */ || node.kind === 143 /* ConstructorType */) { write("new "); } emitTypeParameters(node.typeParameters); - if (node.kind === 140) { + if (node.kind === 140 /* IndexSignature */) { write("["); } else { @@ -19952,21 +23346,24 @@ var ts; } var prevEnclosingDeclaration = enclosingDeclaration; enclosingDeclaration = node; + // Parameters emitCommaList(node.parameters, emitParameterDeclaration); - if (node.kind === 140) { + if (node.kind === 140 /* IndexSignature */) { write("]"); } else { write(")"); } - var isFunctionTypeOrConstructorType = node.kind === 142 || node.kind === 143; - if (isFunctionTypeOrConstructorType || node.parent.kind === 145) { + // If this is not a constructor and is not private, emit the return type + var isFunctionTypeOrConstructorType = node.kind === 142 /* FunctionType */ || node.kind === 143 /* ConstructorType */; + if (isFunctionTypeOrConstructorType || node.parent.kind === 145 /* TypeLiteral */) { + // Emit type literal signature return type only if specified if (node.type) { write(isFunctionTypeOrConstructorType ? " => " : ": "); emitType(node.type); } } - else if (node.kind !== 135 && !(node.flags & 32)) { + else if (node.kind !== 135 /* Constructor */ && !(node.flags & 32 /* Private */)) { writeReturnTypeAtSignature(node, getReturnTypeVisibilityError); } enclosingDeclaration = prevEnclosingDeclaration; @@ -19977,46 +23374,50 @@ var ts; function getReturnTypeVisibilityError(symbolAccesibilityResult) { var diagnosticMessage; switch (node.kind) { - case 139: + case 139 /* ConstructSignature */: + // Interfaces cannot have return types that cannot be named diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 138: + case 138 /* CallSignature */: + // Interfaces cannot have return types that cannot be named diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 140: + case 140 /* IndexSignature */: + // Interfaces cannot have return types that cannot be named diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0; break; - case 134: - case 133: - if (node.flags & 128) { + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + if (node.flags & 128 /* Static */) { diagnosticMessage = symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0; } - else if (node.parent.kind === 201) { + else if (node.parent.kind === 201 /* ClassDeclaration */) { diagnosticMessage = symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0; } else { + // Interfaces cannot have return types that cannot be named diagnosticMessage = symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0; } break; - case 200: + case 200 /* FunctionDeclaration */: diagnosticMessage = symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 : ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0; @@ -20037,6 +23438,9 @@ var ts; write("..."); } if (ts.isBindingPattern(node.name)) { + // For bindingPattern, we can't simply writeTextOfNode from the source file + // because we want to omit the initializer and using writeTextOfNode will result in initializer get emitted. + // Therefore, we will have to recursively emit each element in the bindingPattern. emitBindingPattern(node.name); } else { @@ -20046,12 +23450,12 @@ var ts; write("?"); } decreaseIndent(); - if (node.parent.kind === 142 || - node.parent.kind === 143 || - node.parent.parent.kind === 145) { + if (node.parent.kind === 142 /* FunctionType */ || + node.parent.kind === 143 /* ConstructorType */ || + node.parent.parent.kind === 145 /* TypeLiteral */) { emitTypeOfVariableDeclarationFromTypeLiteral(node); } - else if (!(node.parent.flags & 32)) { + else if (!(node.parent.flags & 32 /* Private */)) { writeTypeOfDeclaration(node, node.type, getParameterDeclarationTypeVisibilityError); } function getParameterDeclarationTypeVisibilityError(symbolAccesibilityResult) { @@ -20064,44 +23468,47 @@ var ts; } function getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccesibilityResult) { switch (node.parent.kind) { - case 135: + case 135 /* Constructor */: return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1; - case 139: + case 139 /* ConstructSignature */: + // Interfaces cannot have parameter types that cannot be named return symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; - case 138: + case 138 /* CallSignature */: + // Interfaces cannot have parameter types that cannot be named return symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; - case 134: - case 133: - if (node.parent.flags & 128) { + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + if (node.parent.flags & 128 /* Static */) { return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; } - else if (node.parent.parent.kind === 201) { + else if (node.parent.parent.kind === 201 /* ClassDeclaration */) { return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; } else { + // Interfaces cannot have parameter types that cannot be named return symbolAccesibilityResult.errorModuleName ? ts.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; } - case 200: + case 200 /* FunctionDeclaration */: return symbolAccesibilityResult.errorModuleName ? - symbolAccesibilityResult.accessibility === 2 ? + symbolAccesibilityResult.accessibility === 2 /* CannotBeNamed */ ? ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 : ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1; @@ -20110,12 +23517,13 @@ var ts; } } function emitBindingPattern(bindingPattern) { - if (bindingPattern.kind === 150) { + // We have to explicitly emit square bracket and bracket because these tokens are not store inside the node. + if (bindingPattern.kind === 150 /* ObjectBindingPattern */) { write("{"); emitCommaList(bindingPattern.elements, emitBindingElement); write("}"); } - else if (bindingPattern.kind === 151) { + else if (bindingPattern.kind === 151 /* ArrayBindingPattern */) { write("["); var elements = bindingPattern.elements; emitCommaList(elements, emitBindingElement); @@ -20134,21 +23542,45 @@ var ts; typeName: bindingElement.name } : undefined; } - if (bindingElement.kind === 175) { + if (bindingElement.kind === 175 /* OmittedExpression */) { + // If bindingElement is an omittedExpression (i.e. containing elision), + // we will emit blank space (although this may differ from users' original code, + // it allows emitSeparatedList to write separator appropriately) + // Example: + // original: function foo([, x, ,]) {} + // emit : function foo([ , x, , ]) {} write(" "); } - else if (bindingElement.kind === 152) { + else if (bindingElement.kind === 152 /* BindingElement */) { if (bindingElement.propertyName) { + // bindingElement has propertyName property in the following case: + // { y: [a,b,c] ...} -> bindingPattern will have a property called propertyName for "y" + // We have to explicitly emit the propertyName before descending into its binding elements. + // Example: + // original: function foo({y: [a,b,c]}) {} + // emit : declare function foo({y: [a, b, c]}: { y: [any, any, any] }) void; writeTextOfNode(currentSourceFile, bindingElement.propertyName); write(": "); + // If bindingElement has propertyName property, then its name must be another bindingPattern of SyntaxKind.ObjectBindingPattern emitBindingPattern(bindingElement.name); } else if (bindingElement.name) { if (ts.isBindingPattern(bindingElement.name)) { + // If it is a nested binding pattern, we will recursively descend into each element and emit each one separately. + // In the case of rest element, we will omit rest element. + // Example: + // original: function foo([a, [[b]], c] = [1,[["string"]], 3]) {} + // emit : declare function foo([a, [[b]], c]: [number, [[string]], number]): void; + // original with rest: function foo([a, ...c]) {} + // emit : declare function foo([a, ...c]): void; emitBindingPattern(bindingElement.name); } else { - ts.Debug.assert(bindingElement.name.kind === 65); + ts.Debug.assert(bindingElement.name.kind === 65 /* Identifier */); + // If the node is just an identifier, we will simply emit the text associated with the node's name + // Example: + // original: function foo({y = 10, x}) {} + // emit : declare function foo({y, x}: {number, any}): void; if (bindingElement.dotDotDotToken) { write("..."); } @@ -20160,54 +23592,59 @@ var ts; } function emitNode(node) { switch (node.kind) { - case 200: - case 205: - case 208: - case 202: - case 201: - case 203: - case 204: + case 200 /* FunctionDeclaration */: + case 205 /* ModuleDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 202 /* InterfaceDeclaration */: + case 201 /* ClassDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 204 /* EnumDeclaration */: return emitModuleElement(node, isModuleElementVisible(node)); - case 180: + case 180 /* VariableStatement */: return emitModuleElement(node, isVariableStatementVisible(node)); - case 209: + case 209 /* ImportDeclaration */: + // Import declaration without import clause is visible, otherwise it is not visible return emitModuleElement(node, !node.importClause); - case 215: + case 215 /* ExportDeclaration */: return emitExportDeclaration(node); - case 135: - case 134: - case 133: + case 135 /* Constructor */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return writeFunctionDeclaration(node); - case 139: - case 138: - case 140: + case 139 /* ConstructSignature */: + case 138 /* CallSignature */: + case 140 /* IndexSignature */: return emitSignatureDeclarationWithJsDocComments(node); - case 136: - case 137: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: return emitAccessorDeclaration(node); - case 132: - case 131: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: return emitPropertyDeclaration(node); - case 226: + case 226 /* EnumMember */: return emitEnumMemberDeclaration(node); - case 214: + case 214 /* ExportAssignment */: return emitExportAssignment(node); - case 227: + case 227 /* SourceFile */: return emitSourceFile(node); } } function writeReferencePath(referencedFile) { - var declFileName = referencedFile.flags & 2048 - ? referencedFile.fileName + var declFileName = referencedFile.flags & 2048 /* DeclarationFile */ + ? referencedFile.fileName // Declaration file, use declaration file name : ts.shouldEmitToOwnFile(referencedFile, compilerOptions) - ? ts.getOwnEmitOutputFilePath(referencedFile, host, ".d.ts") - : ts.removeFileExtension(compilerOptions.out) + ".d.ts"; - declFileName = ts.getRelativePathToDirectoryOrUrl(ts.getDirectoryPath(ts.normalizeSlashes(jsFilePath)), declFileName, host.getCurrentDirectory(), host.getCanonicalFileName, false); + ? ts.getOwnEmitOutputFilePath(referencedFile, host, ".d.ts") // Own output file so get the .d.ts file + : ts.removeFileExtension(compilerOptions.out) + ".d.ts"; // Global out file + declFileName = ts.getRelativePathToDirectoryOrUrl(ts.getDirectoryPath(ts.normalizeSlashes(jsFilePath)), declFileName, host.getCurrentDirectory(), host.getCanonicalFileName, + /*isAbsolutePathAnUrl*/ false); referencePathsOutput += "/// " + newLine; } } + /* @internal */ function writeDeclarationFile(jsFilePath, sourceFile, host, resolver, diagnostics) { var emitDeclarationResult = emitDeclarations(host, resolver, diagnostics, jsFilePath, sourceFile); + // TODO(shkamat): Should we not write any declaration file if any of them can produce error, + // or should we just not write this file like we are doing now if (!emitDeclarationResult.reportedDeclarationError) { var declarationOutput = emitDeclarationResult.referencePathsOutput + getDeclarationOutput(emitDeclarationResult.synchronousDeclarationOutput, emitDeclarationResult.moduleElementDeclarationEmitInfo); @@ -20216,6 +23653,7 @@ var ts; function getDeclarationOutput(synchronousDeclarationOutput, moduleElementDeclarationEmitInfo) { var appliedSyncOutputPos = 0; var declarationOutput = ""; + // apply asynchronous additions to the synchronous output ts.forEach(moduleElementDeclarationEmitInfo, function (aliasEmitInfo) { if (aliasEmitInfo.asynchronousOutput) { declarationOutput += synchronousDeclarationOutput.substring(appliedSyncOutputPos, aliasEmitInfo.outputPos); @@ -20231,12 +23669,14 @@ var ts; })(ts || (ts = {})); /// /// +/* @internal */ var ts; (function (ts) { function isExternalModuleOrDeclarationFile(sourceFile) { return ts.isExternalModule(sourceFile) || ts.isDeclarationFile(sourceFile); } ts.isExternalModuleOrDeclarationFile = isExternalModuleOrDeclarationFile; + // Flags enum to track count of temp variables and a few dedicated names var TempFlags; (function (TempFlags) { TempFlags[TempFlags["Auto"] = 0] = "Auto"; @@ -20244,9 +23684,18 @@ var ts; TempFlags[TempFlags["_i"] = 268435456] = "_i"; TempFlags[TempFlags["_n"] = 536870912] = "_n"; })(TempFlags || (TempFlags = {})); + // targetSourceFile is when users only want one file in entire project to be emitted. This is used in compileOnSave feature function emitFiles(resolver, host, targetSourceFile) { + // emit output for the __extends helper function + var extendsHelper = "\nvar __extends = this.__extends || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n __.prototype = b.prototype;\n d.prototype = new __();\n};"; + // emit output for the __decorate helper function + var decorateHelper = "\nvar __decorate = this.__decorate || (typeof Reflect === \"object\" && Reflect.decorate) || function (decorators, target, key, desc) {\n switch (arguments.length) {\n case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);\n case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);\n case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);\n }\n};"; + // emit output for the __metadata helper function + var metadataHelper = "\nvar __metadata = this.__metadata || (typeof Reflect === \"object\" && Reflect.metadata) || function () { };"; + // emit output for the __param helper function + var paramHelper = "\nvar __param = this.__param || function(index, decorator) { return function (target, key) { decorator(target, key, index); } };"; var compilerOptions = host.getCompilerOptions(); - var languageVersion = compilerOptions.target || 0; + var languageVersion = compilerOptions.target || 0 /* ES3 */; var sourceMapDataList = compilerOptions.sourceMap ? [] : undefined; var diagnostics = []; var newLine = host.getNewLine(); @@ -20262,6 +23711,7 @@ var ts; } } else { + // targetSourceFile is specified (e.g calling emitter from language service or calling getSemanticDiagnostic from language service) if (ts.shouldEmitToOwnFile(targetSourceFile, compilerOptions)) { var jsFilePath = ts.getOwnEmitOutputFilePath(targetSourceFile, host, ".js"); emitFile(jsFilePath, targetSourceFile); @@ -20270,6 +23720,7 @@ var ts; emitFile(compilerOptions.out); } } + // Sort and make the unique list of diagnostics diagnostics = ts.sortAndDeduplicateDiagnostics(diagnostics); return { emitSkipped: false, @@ -20287,7 +23738,8 @@ var ts; function isUniqueLocalName(name, container) { for (var node = container; isNodeDescendentOf(node, container); node = node.nextContainer) { if (node.locals && ts.hasProperty(node.locals, name)) { - if (node.locals[name].flags & (107455 | 1048576 | 8388608)) { + // We conservatively include alias symbols to cover cases where they're emitted as locals + if (node.locals[name].flags & (107455 /* Value */ | 1048576 /* ExportValue */ | 8388608 /* Alias */)) { return false; } } @@ -20308,6 +23760,7 @@ var ts; var computedPropertyNamesToGeneratedNames; var extendsEmitted = false; var decorateEmitted = false; + var paramEmitted = false; var tempFlags = 0; var tempVariables; var tempParameters; @@ -20315,20 +23768,36 @@ var ts; var exportSpecifiers; var exportEquals; var hasExportStars; + /** write emitted output to disk*/ var writeEmittedFiles = writeJavaScriptFile; var detachedCommentsInfo; var writeComment = ts.writeCommentRange; + /** Emit a node */ var emit = emitNodeWithoutSourceMap; + /** Called just before starting emit of a node */ var emitStart = function (node) { }; + /** Called once the emit of the node is done */ var emitEnd = function (node) { }; + /** Emit the text for the given token that comes after startPos + * This by default writes the text provided with the given tokenKind + * but if optional emitFn callback is provided the text is emitted using the callback instead of default text + * @param tokenKind the kind of the token to search and emit + * @param startPos the position in the source to start searching for the token + * @param emitFn if given will be invoked to emit the text instead of actual token emit */ var emitToken = emitTokenText; + /** Called to before starting the lexical scopes as in function/class in the emitted code because of node + * @param scopeDeclaration node that starts the lexical scope + * @param scopeName Optional name of this scope instead of deducing one from the declaration node */ var scopeEmitStart = function (scopeDeclaration, scopeName) { }; + /** Called after coming out of the scope */ var scopeEmitEnd = function () { }; + /** Sourcemap data that will get encoded */ var sourceMapData; if (compilerOptions.sourceMap) { initializeEmitterWithSourceMaps(); } if (root) { + // Do not call emit directly. It does not set the currentSourceFile. emitSourceFile(root); } else { @@ -20350,27 +23819,36 @@ var ts; !ts.hasProperty(currentSourceFile.identifiers, name) && !ts.hasProperty(generatedNameSet, name); } + // Return the next available name in the pattern _a ... _z, _0, _1, ... + // TempFlags._i or TempFlags._n may be used to express a preference for that dedicated name. + // Note that names generated by makeTempVariableName and makeUniqueName will never conflict. function makeTempVariableName(flags) { if (flags && !(tempFlags & flags)) { - var name = flags === 268435456 ? "_i" : "_n"; + var name = flags === 268435456 /* _i */ ? "_i" : "_n"; if (isUniqueName(name)) { tempFlags |= flags; return name; } } while (true) { - var count = tempFlags & 268435455; + var count = tempFlags & 268435455 /* CountMask */; tempFlags++; + // Skip over 'i' and 'n' if (count !== 8 && count !== 13) { - var name_12 = count < 26 ? "_" + String.fromCharCode(97 + count) : "_" + (count - 26); - if (isUniqueName(name_12)) { - return name_12; + var name_13 = count < 26 ? "_" + String.fromCharCode(97 /* a */ + count) : "_" + (count - 26); + if (isUniqueName(name_13)) { + return name_13; } } } } + // Generate a name that is unique within the current file and doesn't conflict with any names + // in global scope. The name is formed by adding an '_n' suffix to the specified base name, + // where n is a positive integer. Note that names generated by makeTempVariableName and + // makeUniqueName are guaranteed to never conflict. function makeUniqueName(baseName) { - if (baseName.charCodeAt(baseName.length - 1) !== 95) { + // Find the first unique 'name_n', where n is a positive number + if (baseName.charCodeAt(baseName.length - 1) !== 95 /* _ */) { baseName += "_"; } var i = 1; @@ -20391,14 +23869,15 @@ var ts; } } function generateNameForModuleOrEnum(node) { - if (node.name.kind === 65) { - var name_13 = node.name.text; - assignGeneratedName(node, isUniqueLocalName(name_13, node) ? name_13 : makeUniqueName(name_13)); + if (node.name.kind === 65 /* Identifier */) { + var name_14 = node.name.text; + // Use module/enum name itself if it is unique, otherwise make a unique variation + assignGeneratedName(node, isUniqueLocalName(name_14, node) ? name_14 : makeUniqueName(name_14)); } } function generateNameForImportOrExportDeclaration(node) { var expr = ts.getExternalModuleName(node); - var baseName = expr.kind === 8 ? + var baseName = expr.kind === 8 /* StringLiteral */ ? ts.escapeIdentifier(ts.makeIdentifierFromModuleName(expr.text)) : "module"; assignGeneratedName(node, makeUniqueName(baseName)); } @@ -20413,30 +23892,31 @@ var ts; } } function generateNameForExportAssignment(node) { - if (node.expression && node.expression.kind !== 65) { + if (node.expression && node.expression.kind !== 65 /* Identifier */) { assignGeneratedName(node, makeUniqueName("default")); } } function generateNameForNode(node) { switch (node.kind) { - case 200: - case 201: + case 200 /* FunctionDeclaration */: + case 201 /* ClassDeclaration */: + case 174 /* ClassExpression */: generateNameForFunctionOrClassDeclaration(node); break; - case 205: + case 205 /* ModuleDeclaration */: generateNameForModuleOrEnum(node); generateNameForNode(node.body); break; - case 204: + case 204 /* EnumDeclaration */: generateNameForModuleOrEnum(node); break; - case 209: + case 209 /* ImportDeclaration */: generateNameForImportDeclaration(node); break; - case 215: + case 215 /* ExportDeclaration */: generateNameForExportDeclaration(node); break; - case 214: + case 214 /* ExportAssignment */: generateNameForExportAssignment(node); break; } @@ -20449,13 +23929,16 @@ var ts; return nodeToGeneratedName[nodeId]; } function initializeEmitterWithSourceMaps() { - var sourceMapDir; + var sourceMapDir; // The directory in which sourcemap will be + // Current source map file and its index in the sources list var sourceMapSourceIndex = -1; + // Names and its index map var sourceMapNameIndexMap = {}; var sourceMapNameIndices = []; function getSourceMapNameIndex() { return sourceMapNameIndices.length ? sourceMapNameIndices[sourceMapNameIndices.length - 1] : -1; } + // Last recorded and encoded spans var lastRecordedSourceMapSpan; var lastEncodedSourceMapSpan = { emittedLine: 1, @@ -20465,26 +23948,35 @@ var ts; sourceIndex: 0 }; var lastEncodedNameIndex = 0; + // Encoding for sourcemap span function encodeLastRecordedSourceMapSpan() { if (!lastRecordedSourceMapSpan || lastRecordedSourceMapSpan === lastEncodedSourceMapSpan) { return; } var prevEncodedEmittedColumn = lastEncodedSourceMapSpan.emittedColumn; + // Line/Comma delimiters if (lastEncodedSourceMapSpan.emittedLine == lastRecordedSourceMapSpan.emittedLine) { + // Emit comma to separate the entry if (sourceMapData.sourceMapMappings) { sourceMapData.sourceMapMappings += ","; } } else { + // Emit line delimiters for (var encodedLine = lastEncodedSourceMapSpan.emittedLine; encodedLine < lastRecordedSourceMapSpan.emittedLine; encodedLine++) { sourceMapData.sourceMapMappings += ";"; } prevEncodedEmittedColumn = 1; } + // 1. Relative Column 0 based sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.emittedColumn - prevEncodedEmittedColumn); + // 2. Relative sourceIndex sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.sourceIndex - lastEncodedSourceMapSpan.sourceIndex); + // 3. Relative sourceLine 0 based sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.sourceLine - lastEncodedSourceMapSpan.sourceLine); + // 4. Relative sourceColumn 0 based sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.sourceColumn - lastEncodedSourceMapSpan.sourceColumn); + // 5. Relative namePosition 0 based if (lastRecordedSourceMapSpan.nameIndex >= 0) { sourceMapData.sourceMapMappings += base64VLQFormatEncode(lastRecordedSourceMapSpan.nameIndex - lastEncodedNameIndex); lastEncodedNameIndex = lastRecordedSourceMapSpan.nameIndex; @@ -20498,17 +23990,24 @@ var ts; } throw TypeError(inValue + ": not a 64 based value"); } + // Add a new least significant bit that has the sign of the value. + // if negative number the least significant bit that gets added to the number has value 1 + // else least significant bit value that gets added is 0 + // eg. -1 changes to binary : 01 [1] => 3 + // +1 changes to binary : 01 [0] => 2 if (inValue < 0) { inValue = ((-inValue) << 1) + 1; } else { inValue = inValue << 1; } + // Encode 5 bits at a time starting from least significant bits var encodedStr = ""; do { - var currentDigit = inValue & 31; + var currentDigit = inValue & 31; // 11111 inValue = inValue >> 5; if (inValue > 0) { + // There are still more digits to decode, set the msb (6th bit) currentDigit = currentDigit | 32; } encodedStr = encodedStr + base64FormatEncode(currentDigit); @@ -20518,17 +24017,21 @@ var ts; } function recordSourceMapSpan(pos) { var sourceLinePos = ts.getLineAndCharacterOfPosition(currentSourceFile, pos); + // Convert the location to be one-based. sourceLinePos.line++; sourceLinePos.character++; var emittedLine = writer.getLine(); var emittedColumn = writer.getColumn(); + // If this location wasn't recorded or the location in source is going backwards, record the span if (!lastRecordedSourceMapSpan || lastRecordedSourceMapSpan.emittedLine != emittedLine || lastRecordedSourceMapSpan.emittedColumn != emittedColumn || (lastRecordedSourceMapSpan.sourceIndex === sourceMapSourceIndex && (lastRecordedSourceMapSpan.sourceLine > sourceLinePos.line || (lastRecordedSourceMapSpan.sourceLine === sourceLinePos.line && lastRecordedSourceMapSpan.sourceColumn > sourceLinePos.character)))) { + // Encode the last recordedSpan before assigning new encodeLastRecordedSourceMapSpan(); + // New span lastRecordedSourceMapSpan = { emittedLine: emittedLine, emittedColumn: emittedColumn, @@ -20539,12 +24042,14 @@ var ts; }; } else { + // Take the new pos instead since there is no change in emittedLine and column since last location lastRecordedSourceMapSpan.sourceLine = sourceLinePos.line; lastRecordedSourceMapSpan.sourceColumn = sourceLinePos.character; lastRecordedSourceMapSpan.sourceIndex = sourceMapSourceIndex; } } function recordEmitNodeStartSpan(node) { + // Get the token pos after skipping to the token (ignoring the leading trivia) recordSourceMapSpan(ts.skipTrivia(currentSourceFile.text, node.pos)); } function recordEmitNodeEndSpan(node) { @@ -20558,9 +24063,14 @@ var ts; return tokenEndPos; } function recordNewSourceFileStart(node) { + // Add the file to tsFilePaths + // If sourceroot option: Use the relative path corresponding to the common directory path + // otherwise source locations relative to map file location var sourcesDirectoryPath = compilerOptions.sourceRoot ? host.getCommonSourceDirectory() : sourceMapDir; - sourceMapData.sourceMapSources.push(ts.getRelativePathToDirectoryOrUrl(sourcesDirectoryPath, node.fileName, host.getCurrentDirectory(), host.getCanonicalFileName, true)); + sourceMapData.sourceMapSources.push(ts.getRelativePathToDirectoryOrUrl(sourcesDirectoryPath, node.fileName, host.getCurrentDirectory(), host.getCanonicalFileName, + /*isAbsolutePathAnUrl*/ true)); sourceMapSourceIndex = sourceMapData.sourceMapSources.length - 1; + // The one that can be used from program to get the actual source file sourceMapData.inputSourceFileNames.push(node.fileName); } function recordScopeNameOfNode(node, scopeName) { @@ -20572,8 +24082,11 @@ var ts; if (scopeName) { var parentIndex = getSourceMapNameIndex(); if (parentIndex !== -1) { - var name_14 = node.name; - if (!name_14 || name_14.kind !== 127) { + // Child scopes are always shown with a dot (even if they have no name), + // unless it is a computed property. Then it is shown with brackets, + // but the brackets are included in the name. + var name_15 = node.name; + if (!name_15 || name_15.kind !== 127 /* ComputedPropertyName */) { scopeName = "." + scopeName; } scopeName = sourceMapData.sourceMapNames[parentIndex] + scopeName; @@ -20588,26 +24101,30 @@ var ts; recordScopeNameIndex(scopeNameIndex); } if (scopeName) { + // The scope was already given a name use it recordScopeNameStart(scopeName); } - else if (node.kind === 200 || - node.kind === 162 || - node.kind === 134 || - node.kind === 133 || - node.kind === 136 || - node.kind === 137 || - node.kind === 205 || - node.kind === 201 || - node.kind === 204) { + else if (node.kind === 200 /* FunctionDeclaration */ || + node.kind === 162 /* FunctionExpression */ || + node.kind === 134 /* MethodDeclaration */ || + node.kind === 133 /* MethodSignature */ || + node.kind === 136 /* GetAccessor */ || + node.kind === 137 /* SetAccessor */ || + node.kind === 205 /* ModuleDeclaration */ || + node.kind === 201 /* ClassDeclaration */ || + node.kind === 204 /* EnumDeclaration */) { + // Declaration and has associated name use it if (node.name) { - var name_15 = node.name; - scopeName = name_15.kind === 127 - ? ts.getTextOfNode(name_15) + var name_16 = node.name; + // For computed property names, the text will include the brackets + scopeName = name_16.kind === 127 /* ComputedPropertyName */ + ? ts.getTextOfNode(name_16) : node.name.text; } recordScopeNameStart(scopeName); } else { + // Block just use the name from upper level scope recordScopeNameIndex(getSourceMapNameIndex()); } } @@ -20644,11 +24161,14 @@ var ts; } } function writeJavaScriptAndSourceMapFile(emitOutput, writeByteOrderMark) { + // Write source map file encodeLastRecordedSourceMapSpan(); ts.writeFile(host, diagnostics, sourceMapData.sourceMapFilePath, serializeSourceMapContents(3, sourceMapData.sourceMapFile, sourceMapData.sourceMapSourceRoot, sourceMapData.sourceMapSources, sourceMapData.sourceMapNames, sourceMapData.sourceMapMappings), false); sourceMapDataList.push(sourceMapData); + // Write sourcemap url to the js file and write the js file writeJavaScriptFile(emitOutput + "//# sourceMappingURL=" + sourceMapData.jsSourceMappingURL, writeByteOrderMark); } + // Initialize source map data var sourceMapJsFile = ts.getBaseFileName(ts.normalizeSlashes(jsFilePath)); sourceMapData = { sourceMapFilePath: jsFilePath + ".map", @@ -20661,18 +24181,24 @@ var ts; sourceMapMappings: "", sourceMapDecodedMappings: [] }; + // Normalize source root and make sure it has trailing "/" so that it can be used to combine paths with the + // relative paths of the sources list in the sourcemap sourceMapData.sourceMapSourceRoot = ts.normalizeSlashes(sourceMapData.sourceMapSourceRoot); - if (sourceMapData.sourceMapSourceRoot.length && sourceMapData.sourceMapSourceRoot.charCodeAt(sourceMapData.sourceMapSourceRoot.length - 1) !== 47) { + if (sourceMapData.sourceMapSourceRoot.length && sourceMapData.sourceMapSourceRoot.charCodeAt(sourceMapData.sourceMapSourceRoot.length - 1) !== 47 /* slash */) { sourceMapData.sourceMapSourceRoot += ts.directorySeparator; } if (compilerOptions.mapRoot) { sourceMapDir = ts.normalizeSlashes(compilerOptions.mapRoot); if (root) { + // For modules or multiple emit files the mapRoot will have directory structure like the sources + // So if src\a.ts and src\lib\b.ts are compiled together user would be moving the maps into mapRoot\a.js.map and mapRoot\lib\b.js.map sourceMapDir = ts.getDirectoryPath(ts.getSourceFilePathInNewDir(root, host, sourceMapDir)); } if (!ts.isRootedDiskPath(sourceMapDir) && !ts.isUrl(sourceMapDir)) { + // The relative paths are relative to the common directory sourceMapDir = ts.combinePaths(host.getCommonSourceDirectory(), sourceMapDir); - sourceMapData.jsSourceMappingURL = ts.getRelativePathToDirectoryOrUrl(ts.getDirectoryPath(ts.normalizePath(jsFilePath)), ts.combinePaths(sourceMapDir, sourceMapData.jsSourceMappingURL), host.getCurrentDirectory(), host.getCanonicalFileName, true); + sourceMapData.jsSourceMappingURL = ts.getRelativePathToDirectoryOrUrl(ts.getDirectoryPath(ts.normalizePath(jsFilePath)), ts.combinePaths(sourceMapDir, sourceMapData.jsSourceMappingURL), host.getCurrentDirectory(), host.getCanonicalFileName, + /*isAbsolutePathAnUrl*/ true); } else { sourceMapData.jsSourceMappingURL = ts.combinePaths(sourceMapDir, sourceMapData.jsSourceMappingURL); @@ -20686,7 +24212,7 @@ var ts; if (ts.nodeIsSynthesized(node)) { return emitNodeWithoutSourceMap(node, false); } - if (node.kind != 227) { + if (node.kind != 227 /* SourceFile */) { recordEmitNodeStartSpan(node); emitNodeWithoutSourceMap(node, allowGeneratedIdentifiers); recordEmitNodeEndSpan(node); @@ -20709,8 +24235,9 @@ var ts; function writeJavaScriptFile(emitOutput, writeByteOrderMark) { ts.writeFile(host, diagnostics, jsFilePath, emitOutput, writeByteOrderMark); } + // Create a temporary variable with a unique unused name. function createTempVariable(flags) { - var result = ts.createSynthesizedNode(65); + var result = ts.createSynthesizedNode(65 /* Identifier */); result.text = makeTempVariableName(flags); return result; } @@ -20804,27 +24331,32 @@ var ts; writeLine(); } } - function emitList(nodes, start, count, multiLine, trailingComma) { + function emitList(nodes, start, count, multiLine, trailingComma, leadingComma, noTrailingNewLine, emitNode) { + if (!emitNode) { + emitNode = emit; + } for (var i = 0; i < count; i++) { if (multiLine) { - if (i) { + if (i || leadingComma) { write(","); } writeLine(); } else { - if (i) { + if (i || leadingComma) { write(", "); } } - emit(nodes[start + i]); + emitNode(nodes[start + i]); + leadingComma = true; } if (trailingComma) { write(","); } - if (multiLine) { + if (multiLine && !noTrailingNewLine) { writeLine(); } + return count; } function emitCommaList(nodes) { if (nodes) { @@ -20841,12 +24373,12 @@ var ts; } } function isBinaryOrOctalIntegerLiteral(node, text) { - if (node.kind === 7 && text.length > 1) { + if (node.kind === 7 /* NumericLiteral */ && text.length > 1) { switch (text.charCodeAt(1)) { - case 98: - case 66: - case 111: - case 79: + case 98 /* b */: + case 66 /* B */: + case 111 /* o */: + case 79 /* O */: return true; } } @@ -20854,10 +24386,10 @@ var ts; } function emitLiteral(node) { var text = getLiteralText(node); - if (compilerOptions.sourceMap && (node.kind === 8 || ts.isTemplateLiteralKind(node.kind))) { + if (compilerOptions.sourceMap && (node.kind === 8 /* StringLiteral */ || ts.isTemplateLiteralKind(node.kind))) { writer.writeLiteral(text); } - else if (languageVersion < 2 && isBinaryOrOctalIntegerLiteral(node, text)) { + else if (languageVersion < 2 /* ES6 */ && isBinaryOrOctalIntegerLiteral(node, text)) { write(node.text); } else { @@ -20865,24 +24397,30 @@ var ts; } } function getLiteralText(node) { - if (languageVersion < 2 && (ts.isTemplateLiteralKind(node.kind) || node.hasExtendedUnicodeEscape)) { + // Any template literal or string literal with an extended escape + // (e.g. "\u{0067}") will need to be downleveled as a escaped string literal. + if (languageVersion < 2 /* ES6 */ && (ts.isTemplateLiteralKind(node.kind) || node.hasExtendedUnicodeEscape)) { return getQuotedEscapedLiteralText('"', node.text, '"'); } + // If we don't need to downlevel and we can reach the original source text using + // the node's parent reference, then simply get the text as it was originally written. if (node.parent) { return ts.getSourceTextOfNodeFromSourceFile(currentSourceFile, node); } + // If we can't reach the original source text, use the canonical form if it's a number, + // or an escaped quoted form of the original text if it's string-like. switch (node.kind) { - case 8: + case 8 /* StringLiteral */: return getQuotedEscapedLiteralText('"', node.text, '"'); - case 10: + case 10 /* NoSubstitutionTemplateLiteral */: return getQuotedEscapedLiteralText('`', node.text, '`'); - case 11: + case 11 /* TemplateHead */: return getQuotedEscapedLiteralText('`', node.text, '${'); - case 12: + case 12 /* TemplateMiddle */: return getQuotedEscapedLiteralText('}', node.text, '${'); - case 13: + case 13 /* TemplateTail */: return getQuotedEscapedLiteralText('}', node.text, '`'); - case 7: + case 7 /* NumericLiteral */: return node.text; } ts.Debug.fail("Literal kind '" + node.kind + "' not accounted for."); @@ -20891,16 +24429,26 @@ var ts; return leftQuote + ts.escapeNonAsciiCharacters(ts.escapeString(text)) + rightQuote; } function emitDownlevelRawTemplateLiteral(node) { + // Find original source text, since we need to emit the raw strings of the tagged template. + // The raw strings contain the (escaped) strings of what the user wrote. + // Examples: `\n` is converted to "\\n", a template string with a newline to "\n". var text = ts.getSourceTextOfNodeFromSourceFile(currentSourceFile, node); - var isLast = node.kind === 10 || node.kind === 13; + // text contains the original source, it will also contain quotes ("`"), dolar signs and braces ("${" and "}"), + // thus we need to remove those characters. + // First template piece starts with "`", others with "}" + // Last template piece ends with "`", others with "${" + var isLast = node.kind === 10 /* NoSubstitutionTemplateLiteral */ || node.kind === 13 /* TemplateTail */; text = text.substring(1, text.length - (isLast ? 1 : 2)); + // Newline normalization: + // ES6 Spec 11.8.6.1 - Static Semantics of TV's and TRV's + // and LineTerminatorSequences are normalized to for both TV and TRV. text = text.replace(/\r\n?/g, "\n"); text = ts.escapeString(text); write('"' + text + '"'); } function emitDownlevelTaggedTemplateArray(node, literalEmitter) { write("["); - if (node.template.kind === 10) { + if (node.template.kind === 10 /* NoSubstitutionTemplateLiteral */) { literalEmitter(node.template); } else { @@ -20913,7 +24461,7 @@ var ts; write("]"); } function emitDownlevelTaggedTemplate(node) { - var tempVariable = createAndRecordTempVariable(0); + var tempVariable = createAndRecordTempVariable(0 /* Auto */); write("("); emit(tempVariable); write(" = "); @@ -20926,18 +24474,21 @@ var ts; emitParenthesizedIf(node.tag, needsParenthesisForPropertyAccessOrInvocation(node.tag)); write("("); emit(tempVariable); - if (node.template.kind === 171) { + // Now we emit the expressions + if (node.template.kind === 171 /* TemplateExpression */) { ts.forEach(node.template.templateSpans, function (templateSpan) { write(", "); - var needsParens = templateSpan.expression.kind === 169 - && templateSpan.expression.operatorToken.kind === 23; + var needsParens = templateSpan.expression.kind === 169 /* BinaryExpression */ + && templateSpan.expression.operatorToken.kind === 23 /* CommaToken */; emitParenthesizedIf(templateSpan.expression, needsParens); }); } write("))"); } function emitTemplateExpression(node) { - if (languageVersion >= 2) { + // In ES6 mode and above, we can simply emit each portion of a template in order, but in + // ES3 & ES5 we must convert the template expression into a series of string concatenations. + if (languageVersion >= 2 /* ES6 */) { ts.forEachChild(node, emit); return; } @@ -20953,12 +24504,28 @@ var ts; } for (var i = 0, n = node.templateSpans.length; i < n; i++) { var templateSpan = node.templateSpans[i]; - var needsParens = templateSpan.expression.kind !== 161 - && comparePrecedenceToBinaryPlus(templateSpan.expression) !== 1; + // Check if the expression has operands and binds its operands less closely than binary '+'. + // If it does, we need to wrap the expression in parentheses. Otherwise, something like + // `abc${ 1 << 2 }` + // becomes + // "abc" + 1 << 2 + "" + // which is really + // ("abc" + 1) << (2 + "") + // rather than + // "abc" + (1 << 2) + "" + var needsParens = templateSpan.expression.kind !== 161 /* ParenthesizedExpression */ + && comparePrecedenceToBinaryPlus(templateSpan.expression) !== 1 /* GreaterThan */; if (i > 0 || headEmitted) { + // If this is the first span and the head was not emitted, then this templateSpan's + // expression will be the first to be emitted. Don't emit the preceding ' + ' in that + // case. write(" + "); } emitParenthesizedIf(templateSpan.expression, needsParens); + // Only emit if the literal is non-empty. + // The binary '+' operator is left-associative, so the first string concatenation + // with the head will force the result up to this point to be a string. + // Emitting a '+ ""' has no semantic effect for middles and tails. if (templateSpan.literal.text.length !== 0) { write(" + "); emitLiteral(templateSpan.literal); @@ -20981,39 +24548,54 @@ var ts; // `${ foo }${ bar }` // must still be emitted as // "" + foo + bar + // There is always atleast one templateSpan in this code path, since + // NoSubstitutionTemplateLiterals are directly emitted via emitLiteral() ts.Debug.assert(node.templateSpans.length !== 0); return node.head.text.length !== 0 || node.templateSpans[0].literal.text.length === 0; } function templateNeedsParens(template, parent) { switch (parent.kind) { - case 157: - case 158: + case 157 /* CallExpression */: + case 158 /* NewExpression */: return parent.expression === template; - case 159: - case 161: + case 159 /* TaggedTemplateExpression */: + case 161 /* ParenthesizedExpression */: return false; default: - return comparePrecedenceToBinaryPlus(parent) !== -1; + return comparePrecedenceToBinaryPlus(parent) !== -1 /* LessThan */; } } + /** + * Returns whether the expression has lesser, greater, + * or equal precedence to the binary '+' operator + */ function comparePrecedenceToBinaryPlus(expression) { + // All binary expressions have lower precedence than '+' apart from '*', '/', and '%' + // which have greater precedence and '-' which has equal precedence. + // All unary operators have a higher precedence apart from yield. + // Arrow functions and conditionals have a lower precedence, + // although we convert the former into regular function expressions in ES5 mode, + // and in ES6 mode this function won't get called anyway. + // + // TODO (drosen): Note that we need to account for the upcoming 'yield' and + // spread ('...') unary operators that are anticipated for ES6. switch (expression.kind) { - case 169: + case 169 /* BinaryExpression */: switch (expression.operatorToken.kind) { - case 35: - case 36: - case 37: - return 1; - case 33: - case 34: - return 0; + case 35 /* AsteriskToken */: + case 36 /* SlashToken */: + case 37 /* PercentToken */: + return 1 /* GreaterThan */; + case 33 /* PlusToken */: + case 34 /* MinusToken */: + return 0 /* EqualTo */; default: - return -1; + return -1 /* LessThan */; } - case 170: - return -1; + case 170 /* ConditionalExpression */: + return -1 /* LessThan */; default: - return 1; + return 1 /* GreaterThan */; } } } @@ -21021,25 +24603,39 @@ var ts; emit(span.expression); emit(span.literal); } + // This function specifically handles numeric/string literals for enum and accessor 'identifiers'. + // In a sense, it does not actually emit identifiers as much as it declares a name for a specific property. + // For example, this is utilized when feeding in a result to Object.defineProperty. function emitExpressionForPropertyName(node) { - ts.Debug.assert(node.kind !== 152); - if (node.kind === 8) { + ts.Debug.assert(node.kind !== 152 /* BindingElement */); + if (node.kind === 8 /* StringLiteral */) { emitLiteral(node); } - else if (node.kind === 127) { + else if (node.kind === 127 /* ComputedPropertyName */) { + // if this is a decorated computed property, we will need to capture the result + // of the property expression so that we can apply decorators later. This is to ensure + // we don't introduce unintended side effects: + // + // class C { + // [_a = x]() { } + // } + // + // The emit for the decorated computed property decorator is: + // + // Object.defineProperty(C.prototype, _a, __decorate([dec], C.prototype, _a, Object.getOwnPropertyDescriptor(C.prototype, _a))); + // if (ts.nodeIsDecorated(node.parent)) { if (!computedPropertyNamesToGeneratedNames) { computedPropertyNamesToGeneratedNames = []; } - var generatedName = computedPropertyNamesToGeneratedNames[node.id]; + var generatedName = computedPropertyNamesToGeneratedNames[ts.getNodeId(node)]; if (generatedName) { + // we have already generated a variable for this node, write that value instead. write(generatedName); return; } - var generatedVariable = createTempVariable(0); - generatedName = generatedVariable.text; - recordTempDeclaration(generatedVariable); - computedPropertyNamesToGeneratedNames[node.id] = generatedName; + generatedName = createAndRecordTempVariable(0 /* Auto */).text; + computedPropertyNamesToGeneratedNames[ts.getNodeId(node)] = generatedName; write(generatedName); write(" = "); } @@ -21047,7 +24643,7 @@ var ts; } else { write("\""); - if (node.kind === 7) { + if (node.kind === 7 /* NumericLiteral */) { write(node.text); } else { @@ -21059,36 +24655,36 @@ var ts; function isNotExpressionIdentifier(node) { var parent = node.parent; switch (parent.kind) { - case 129: - case 198: - case 152: - case 132: - case 131: - case 224: - case 225: - case 226: - case 134: - case 133: - case 200: - case 136: - case 137: - case 162: - case 201: - case 202: - case 204: - case 205: - case 208: - case 210: - case 211: + case 129 /* Parameter */: + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 224 /* PropertyAssignment */: + case 225 /* ShorthandPropertyAssignment */: + case 226 /* EnumMember */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 200 /* FunctionDeclaration */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 162 /* FunctionExpression */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: + case 205 /* ModuleDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 210 /* ImportClause */: + case 211 /* NamespaceImport */: return parent.name === node; - case 213: - case 217: + case 213 /* ImportSpecifier */: + case 217 /* ExportSpecifier */: return parent.name === node || parent.propertyName === node; - case 190: - case 189: - case 214: + case 190 /* BreakStatement */: + case 189 /* ContinueStatement */: + case 214 /* ExportAssignment */: return false; - case 194: + case 194 /* LabeledStatement */: return node.parent.label === node; } } @@ -21130,7 +24726,7 @@ var ts; } } function emitThis(node) { - if (resolver.getNodeCheckFlags(node) & 2) { + if (resolver.getNodeCheckFlags(node) & 2 /* LexicalThis */) { write("_this"); } else { @@ -21138,12 +24734,12 @@ var ts; } } function emitSuper(node) { - if (languageVersion >= 2) { + if (languageVersion >= 2 /* ES6 */) { write("super"); } else { var flags = resolver.getNodeCheckFlags(node); - if (flags & 16) { + if (flags & 16 /* SuperInstance */) { write("_super.prototype"); } else { @@ -21185,12 +24781,14 @@ var ts; } function needsParenthesisForPropertyAccessOrInvocation(node) { switch (node.kind) { - case 65: - case 153: - case 155: - case 156: - case 157: - case 161: + case 65 /* Identifier */: + case 153 /* ArrayLiteralExpression */: + case 155 /* PropertyAccessExpression */: + case 156 /* ElementAccessExpression */: + case 157 /* CallExpression */: + case 161 /* ParenthesizedExpression */: + // This list is not exhaustive and only includes those cases that are relevant + // to the check in emitArrayLiteral. More cases can be added as needed. return false; } return true; @@ -21200,6 +24798,7 @@ var ts; var group = 0; var length = elements.length; while (pos < length) { + // Emit using the pattern .concat(, , ...) if (group === 1) { write(".concat("); } @@ -21207,14 +24806,14 @@ var ts; write(", "); } var e = elements[pos]; - if (e.kind === 173) { + if (e.kind === 173 /* SpreadElementExpression */) { e = e.expression; emitParenthesizedIf(e, group === 0 && needsParenthesisForPropertyAccessOrInvocation(e)); pos++; } else { var i = pos; - while (i < length && elements[i].kind !== 173) { + while (i < length && elements[i].kind !== 173 /* SpreadElementExpression */) { i++; } write("["); @@ -21235,171 +24834,169 @@ var ts; } } function isSpreadElementExpression(node) { - return node.kind === 173; + return node.kind === 173 /* SpreadElementExpression */; } function emitArrayLiteral(node) { var elements = node.elements; if (elements.length === 0) { write("[]"); } - else if (languageVersion >= 2 || !ts.forEach(elements, isSpreadElementExpression)) { + else if (languageVersion >= 2 /* ES6 */ || !ts.forEach(elements, isSpreadElementExpression)) { write("["); emitLinePreservingList(node, node.elements, elements.hasTrailingComma, false); write("]"); } else { - emitListWithSpread(elements, (node.flags & 512) !== 0, elements.hasTrailingComma); + emitListWithSpread(elements, (node.flags & 512 /* MultiLine */) !== 0, + /*trailingComma*/ elements.hasTrailingComma); } } + function emitObjectLiteralBody(node, numElements) { + if (numElements === 0) { + write("{}"); + return; + } + write("{"); + if (numElements > 0) { + var properties = node.properties; + // If we are not doing a downlevel transformation for object literals, + // then try to preserve the original shape of the object literal. + // Otherwise just try to preserve the formatting. + if (numElements === properties.length) { + emitLinePreservingList(node, properties, languageVersion >= 1 /* ES5 */, true); + } + else { + var multiLine = (node.flags & 512 /* MultiLine */) !== 0; + if (!multiLine) { + write(" "); + } + else { + increaseIndent(); + } + emitList(properties, 0, numElements, multiLine, false); + if (!multiLine) { + write(" "); + } + else { + decreaseIndent(); + } + } + } + write("}"); + } function emitDownlevelObjectLiteralWithComputedProperties(node, firstComputedPropertyIndex) { - var parenthesizedObjectLiteral = createDownlevelObjectLiteralWithComputedProperties(node, firstComputedPropertyIndex); - return emit(parenthesizedObjectLiteral); - } - function createDownlevelObjectLiteralWithComputedProperties(originalObjectLiteral, firstComputedPropertyIndex) { - var tempVar = createAndRecordTempVariable(0); - var initialObjectLiteral = ts.createSynthesizedNode(154); - initialObjectLiteral.properties = originalObjectLiteral.properties.slice(0, firstComputedPropertyIndex); - initialObjectLiteral.flags |= 512; - var propertyPatches = createBinaryExpression(tempVar, 53, initialObjectLiteral); - ts.forEach(originalObjectLiteral.properties, function (property) { - var patchedProperty = tryCreatePatchingPropertyAssignment(originalObjectLiteral, tempVar, property); - if (patchedProperty) { - propertyPatches = createBinaryExpression(propertyPatches, 23, patchedProperty); + var multiLine = (node.flags & 512 /* MultiLine */) !== 0; + var properties = node.properties; + write("("); + if (multiLine) { + increaseIndent(); + } + // For computed properties, we need to create a unique handle to the object + // literal so we can modify it without risking internal assignments tainting the object. + var tempVar = createAndRecordTempVariable(0 /* Auto */); + // Write out the first non-computed properties + // (or all properties if none of them are computed), + // then emit the rest through indexing on the temp variable. + emit(tempVar); + write(" = "); + emitObjectLiteralBody(node, firstComputedPropertyIndex); + for (var i = firstComputedPropertyIndex, n = properties.length; i < n; i++) { + writeComma(); + var property = properties[i]; + emitStart(property); + if (property.kind === 136 /* GetAccessor */ || property.kind === 137 /* SetAccessor */) { + // TODO (drosen): Reconcile with 'emitMemberFunctions'. + var accessors = ts.getAllAccessorDeclarations(node.properties, property); + if (property !== accessors.firstAccessor) { + continue; + } + write("Object.defineProperty("); + emit(tempVar); + write(", "); + emitStart(node.name); + emitExpressionForPropertyName(property.name); + emitEnd(property.name); + write(", {"); + increaseIndent(); + if (accessors.getAccessor) { + writeLine(); + emitLeadingComments(accessors.getAccessor); + write("get: "); + emitStart(accessors.getAccessor); + write("function "); + emitSignatureAndBody(accessors.getAccessor); + emitEnd(accessors.getAccessor); + emitTrailingComments(accessors.getAccessor); + write(","); + } + if (accessors.setAccessor) { + writeLine(); + emitLeadingComments(accessors.setAccessor); + write("set: "); + emitStart(accessors.setAccessor); + write("function "); + emitSignatureAndBody(accessors.setAccessor); + emitEnd(accessors.setAccessor); + emitTrailingComments(accessors.setAccessor); + write(","); + } + writeLine(); + write("enumerable: true,"); + writeLine(); + write("configurable: true"); + decreaseIndent(); + writeLine(); + write("})"); + emitEnd(property); } - }); - propertyPatches = createBinaryExpression(propertyPatches, 23, createIdentifier(tempVar.text, true)); - var result = createParenthesizedExpression(propertyPatches); - return result; - } - function addCommentsToSynthesizedNode(node, leadingCommentRanges, trailingCommentRanges) { - node.leadingCommentRanges = leadingCommentRanges; - node.trailingCommentRanges = trailingCommentRanges; - } - function tryCreatePatchingPropertyAssignment(objectLiteral, tempVar, property) { - var leftHandSide = createMemberAccessForPropertyName(tempVar, property.name); - var maybeRightHandSide = tryGetRightHandSideOfPatchingPropertyAssignment(objectLiteral, property); - return maybeRightHandSide && createBinaryExpression(leftHandSide, 53, maybeRightHandSide, true); - } - function tryGetRightHandSideOfPatchingPropertyAssignment(objectLiteral, property) { - switch (property.kind) { - case 224: - return property.initializer; - case 225: - return createIdentifier(resolver.getExpressionNameSubstitution(property.name, getGeneratedNameForNode)); - case 134: - return createFunctionExpression(property.parameters, property.body); - case 136: - case 137: - var _a = ts.getAllAccessorDeclarations(objectLiteral.properties, property), firstAccessor = _a.firstAccessor, getAccessor = _a.getAccessor, setAccessor = _a.setAccessor; - if (firstAccessor !== property) { - return undefined; + else { + emitLeadingComments(property); + emitStart(property.name); + emit(tempVar); + emitMemberAccessForPropertyName(property.name); + emitEnd(property.name); + write(" = "); + if (property.kind === 224 /* PropertyAssignment */) { + emit(property.initializer); } - var propertyDescriptor = ts.createSynthesizedNode(154); - var descriptorProperties = []; - if (getAccessor) { - var getProperty_1 = createPropertyAssignment(createIdentifier("get"), createFunctionExpression(getAccessor.parameters, getAccessor.body)); - descriptorProperties.push(getProperty_1); + else if (property.kind === 225 /* ShorthandPropertyAssignment */) { + emitExpressionIdentifier(property.name); } - if (setAccessor) { - var setProperty = createPropertyAssignment(createIdentifier("set"), createFunctionExpression(setAccessor.parameters, setAccessor.body)); - descriptorProperties.push(setProperty); + else if (property.kind === 134 /* MethodDeclaration */) { + emitFunctionDeclaration(property); } - var trueExpr = ts.createSynthesizedNode(95); - var enumerableTrue = createPropertyAssignment(createIdentifier("enumerable"), trueExpr); - descriptorProperties.push(enumerableTrue); - var configurableTrue = createPropertyAssignment(createIdentifier("configurable"), trueExpr); - descriptorProperties.push(configurableTrue); - propertyDescriptor.properties = descriptorProperties; - var objectDotDefineProperty = createPropertyAccessExpression(createIdentifier("Object"), createIdentifier("defineProperty")); - return createCallExpression(objectDotDefineProperty, createNodeArray(propertyDescriptor)); - default: - ts.Debug.fail("ObjectLiteralElement kind " + property.kind + " not accounted for."); + else { + ts.Debug.fail("ObjectLiteralElement type not accounted for: " + property.kind); + } + } + emitEnd(property); } - } - function createParenthesizedExpression(expression) { - var result = ts.createSynthesizedNode(161); - result.expression = expression; - return result; - } - function createNodeArray() { - var elements = []; - for (var _a = 0; _a < arguments.length; _a++) { - elements[_a - 0] = arguments[_a]; + writeComma(); + emit(tempVar); + if (multiLine) { + decreaseIndent(); + writeLine(); } - var result = elements; - result.pos = -1; - result.end = -1; - return result; - } - function createBinaryExpression(left, operator, right, startsOnNewLine) { - var result = ts.createSynthesizedNode(169, startsOnNewLine); - result.operatorToken = ts.createSynthesizedNode(operator); - result.left = left; - result.right = right; - return result; - } - function createExpressionStatement(expression) { - var result = ts.createSynthesizedNode(182); - result.expression = expression; - return result; - } - function createMemberAccessForPropertyName(expression, memberName) { - if (memberName.kind === 65) { - return createPropertyAccessExpression(expression, memberName); + write(")"); + function writeComma() { + if (multiLine) { + write(","); + writeLine(); + } + else { + write(", "); + } } - else if (memberName.kind === 8 || memberName.kind === 7) { - return createElementAccessExpression(expression, memberName); - } - else if (memberName.kind === 127) { - return createElementAccessExpression(expression, memberName.expression); - } - else { - ts.Debug.fail("Kind '" + memberName.kind + "' not accounted for."); - } - } - function createPropertyAssignment(name, initializer) { - var result = ts.createSynthesizedNode(224); - result.name = name; - result.initializer = initializer; - return result; - } - function createFunctionExpression(parameters, body) { - var result = ts.createSynthesizedNode(162); - result.parameters = parameters; - result.body = body; - return result; - } - function createPropertyAccessExpression(expression, name) { - var result = ts.createSynthesizedNode(155); - result.expression = expression; - result.dotToken = ts.createSynthesizedNode(20); - result.name = name; - return result; - } - function createElementAccessExpression(expression, argumentExpression) { - var result = ts.createSynthesizedNode(156); - result.expression = expression; - result.argumentExpression = argumentExpression; - return result; - } - function createIdentifier(name, startsOnNewLine) { - var result = ts.createSynthesizedNode(65, startsOnNewLine); - result.text = name; - return result; - } - function createCallExpression(invokedExpression, arguments) { - var result = ts.createSynthesizedNode(157); - result.expression = invokedExpression; - result.arguments = arguments; - return result; } function emitObjectLiteral(node) { var properties = node.properties; - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { var numProperties = properties.length; + // Find the first computed property. + // Everything until that point can be emitted as part of the initial object literal. var numInitialNonComputedProperties = numProperties; for (var i = 0, n = properties.length; i < n; i++) { - if (properties[i].name.kind === 127) { + if (properties[i].name.kind === 127 /* ComputedPropertyName */) { numInitialNonComputedProperties = i; break; } @@ -21410,11 +25007,29 @@ var ts; return; } } - write("{"); - if (properties.length) { - emitLinePreservingList(node, properties, languageVersion >= 1, true); - } - write("}"); + // Ordinary case: either the object has no computed properties + // or we're compiling with an ES6+ target. + emitObjectLiteralBody(node, properties.length); + } + function createBinaryExpression(left, operator, right, startsOnNewLine) { + var result = ts.createSynthesizedNode(169 /* BinaryExpression */, startsOnNewLine); + result.operatorToken = ts.createSynthesizedNode(operator); + result.left = left; + result.right = right; + return result; + } + function createPropertyAccessExpression(expression, name) { + var result = ts.createSynthesizedNode(155 /* PropertyAccessExpression */); + result.expression = expression; + result.dotToken = ts.createSynthesizedNode(20 /* DotToken */); + result.name = name; + return result; + } + function createElementAccessExpression(expression, argumentExpression) { + var result = ts.createSynthesizedNode(156 /* ElementAccessExpression */); + result.expression = expression; + result.argumentExpression = argumentExpression; + return result; } function emitComputedPropertyName(node) { write("["); @@ -21423,7 +25038,7 @@ var ts; } function emitMethod(node) { emit(node.name, false); - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { write(": function "); } emitSignatureAndBody(node); @@ -21435,38 +25050,57 @@ var ts; } function emitShorthandPropertyAssignment(node) { emit(node.name, false); - if (languageVersion < 2) { + // If short-hand property has a prefix, then regardless of the target version, we will emit it as normal property assignment. For example: + // module m { + // export let y; + // } + // module m { + // export let obj = { y }; + // } + // The short-hand property in obj need to emit as such ... = { y : m.y } regardless of the TargetScript version + if (languageVersion < 2 /* ES6 */) { + // Emit identifier as an identifier write(": "); var generatedName = getGeneratedNameForIdentifier(node.name); if (generatedName) { write(generatedName); } else { + // Even though this is stored as identifier treat it as an expression + // Short-hand, { x }, is equivalent of normal form { x: x } emitExpressionIdentifier(node.name); } } else if (resolver.getExpressionNameSubstitution(node.name, getGeneratedNameForNode)) { + // Emit identifier as an identifier write(": "); + // Even though this is stored as identifier treat it as an expression + // Short-hand, { x }, is equivalent of normal form { x: x } emitExpressionIdentifier(node.name); } } function tryEmitConstantValue(node) { if (compilerOptions.separateCompilation) { + // do not inline enum values in separate compilation mode return false; } var constantValue = resolver.getConstantValue(node); if (constantValue !== undefined) { write(constantValue.toString()); if (!compilerOptions.removeComments) { - var propertyName = node.kind === 155 ? ts.declarationNameToString(node.name) : ts.getTextOfNode(node.argumentExpression); + var propertyName = node.kind === 155 /* PropertyAccessExpression */ ? ts.declarationNameToString(node.name) : ts.getTextOfNode(node.argumentExpression); write(" /* " + propertyName + " */"); } return true; } return false; } + // Returns 'true' if the code was actually indented, false otherwise. + // If the code is not indented, an optional valueToWriteWhenNotIndenting will be + // emitted instead. function indentIfOnDifferentLines(parent, node1, node2, valueToWriteWhenNotIndenting) { var realNodesAreOnDifferentLines = !ts.nodeIsSynthesized(parent) && !nodeEndIsOnSameLineAsNodeStart(node1, node2); + // Always use a newline for synthesized code if the synthesizer desires it. var synthesizedNodeIsOnDifferentLine = synthesizedNodeStartsOnNewLine(node2); if (realNodesAreOnDifferentLines || synthesizedNodeIsOnDifferentLine) { increaseIndent(); @@ -21506,20 +25140,20 @@ var ts; write("]"); } function hasSpreadElement(elements) { - return ts.forEach(elements, function (e) { return e.kind === 173; }); + return ts.forEach(elements, function (e) { return e.kind === 173 /* SpreadElementExpression */; }); } function skipParentheses(node) { - while (node.kind === 161 || node.kind === 160) { + while (node.kind === 161 /* ParenthesizedExpression */ || node.kind === 160 /* TypeAssertionExpression */) { node = node.expression; } return node; } function emitCallTarget(node) { - if (node.kind === 65 || node.kind === 93 || node.kind === 91) { + if (node.kind === 65 /* Identifier */ || node.kind === 93 /* ThisKeyword */ || node.kind === 91 /* SuperKeyword */) { emit(node); return node; } - var temp = createAndRecordTempVariable(0); + var temp = createAndRecordTempVariable(0 /* Auto */); write("("); emit(temp); write(" = "); @@ -21530,18 +25164,20 @@ var ts; function emitCallWithSpread(node) { var target; var expr = skipParentheses(node.expression); - if (expr.kind === 155) { + if (expr.kind === 155 /* PropertyAccessExpression */) { + // Target will be emitted as "this" argument target = emitCallTarget(expr.expression); write("."); emit(expr.name); } - else if (expr.kind === 156) { + else if (expr.kind === 156 /* ElementAccessExpression */) { + // Target will be emitted as "this" argument target = emitCallTarget(expr.expression); write("["); emit(expr.argumentExpression); write("]"); } - else if (expr.kind === 91) { + else if (expr.kind === 91 /* SuperKeyword */) { target = expr; write("_super"); } @@ -21550,14 +25186,17 @@ var ts; } write(".apply("); if (target) { - if (target.kind === 91) { + if (target.kind === 91 /* SuperKeyword */) { + // Calls of form super(...) and super.foo(...) emitThis(target); } else { + // Calls of form obj.foo(...) emit(target); } } else { + // Calls of form foo(...) write("void 0"); } write(", "); @@ -21565,20 +25204,20 @@ var ts; write(")"); } function emitCallExpression(node) { - if (languageVersion < 2 && hasSpreadElement(node.arguments)) { + if (languageVersion < 2 /* ES6 */ && hasSpreadElement(node.arguments)) { emitCallWithSpread(node); return; } var superCall = false; - if (node.expression.kind === 91) { + if (node.expression.kind === 91 /* SuperKeyword */) { emitSuper(node.expression); superCall = true; } else { emit(node.expression); - superCall = node.expression.kind === 155 && node.expression.expression.kind === 91; + superCall = node.expression.kind === 155 /* PropertyAccessExpression */ && node.expression.expression.kind === 91 /* SuperKeyword */; } - if (superCall && languageVersion < 2) { + if (superCall && languageVersion < 2 /* ES6 */) { write(".call("); emitThis(node.expression); if (node.arguments.length) { @@ -21603,7 +25242,7 @@ var ts; } } function emitTaggedTemplateExpression(node) { - if (languageVersion >= 2) { + if (languageVersion >= 2 /* ES6 */) { emit(node.tag); write(" "); emit(node.template); @@ -21613,20 +25252,30 @@ var ts; } } function emitParenExpression(node) { - if (!node.parent || node.parent.kind !== 163) { - if (node.expression.kind === 160) { + if (!node.parent || node.parent.kind !== 163 /* ArrowFunction */) { + if (node.expression.kind === 160 /* TypeAssertionExpression */) { var operand = node.expression.expression; - while (operand.kind == 160) { + // Make sure we consider all nested cast expressions, e.g.: + // (-A).x; + while (operand.kind == 160 /* TypeAssertionExpression */) { operand = operand.expression; } - if (operand.kind !== 167 && - operand.kind !== 166 && - operand.kind !== 165 && - operand.kind !== 164 && - operand.kind !== 168 && - operand.kind !== 158 && - !(operand.kind === 157 && node.parent.kind === 158) && - !(operand.kind === 162 && node.parent.kind === 157)) { + // We have an expression of the form: (SubExpr) + // Emitting this as (SubExpr) is really not desirable. We would like to emit the subexpr as is. + // Omitting the parentheses, however, could cause change in the semantics of the generated + // code if the casted expression has a lower precedence than the rest of the expression, e.g.: + // (new A).foo should be emitted as (new A).foo and not new A.foo + // (typeof A).toString() should be emitted as (typeof A).toString() and not typeof A.toString() + // new (A()) should be emitted as new (A()) and not new A() + // (function foo() { })() should be emitted as an IIF (function foo(){})() and not declaration function foo(){} () + if (operand.kind !== 167 /* PrefixUnaryExpression */ && + operand.kind !== 166 /* VoidExpression */ && + operand.kind !== 165 /* TypeOfExpression */ && + operand.kind !== 164 /* DeleteExpression */ && + operand.kind !== 168 /* PostfixUnaryExpression */ && + operand.kind !== 158 /* NewExpression */ && + !(operand.kind === 157 /* CallExpression */ && node.parent.kind === 158 /* NewExpression */) && + !(operand.kind === 162 /* FunctionExpression */ && node.parent.kind === 157 /* CallExpression */)) { emit(operand); return; } @@ -21637,28 +25286,40 @@ var ts; write(")"); } function emitDeleteExpression(node) { - write(ts.tokenToString(74)); + write(ts.tokenToString(74 /* DeleteKeyword */)); write(" "); emit(node.expression); } function emitVoidExpression(node) { - write(ts.tokenToString(99)); + write(ts.tokenToString(99 /* VoidKeyword */)); write(" "); emit(node.expression); } function emitTypeOfExpression(node) { - write(ts.tokenToString(97)); + write(ts.tokenToString(97 /* TypeOfKeyword */)); write(" "); emit(node.expression); } function emitPrefixUnaryExpression(node) { write(ts.tokenToString(node.operator)); - if (node.operand.kind === 167) { + // In some cases, we need to emit a space between the operator and the operand. One obvious case + // is when the operator is an identifier, like delete or typeof. We also need to do this for plus + // and minus expressions in certain cases. Specifically, consider the following two cases (parens + // are just for clarity of exposition, and not part of the source code): + // + // (+(+1)) + // (+(++1)) + // + // We need to emit a space in both cases. In the first case, the absence of a space will make + // the resulting expression a prefix increment operation. And in the second, it will make the resulting + // expression a prefix increment whose operand is a plus expression - (++(+x)) + // The same is true of minus of course. + if (node.operand.kind === 167 /* PrefixUnaryExpression */) { var operand = node.operand; - if (node.operator === 33 && (operand.operator === 33 || operand.operator === 38)) { + if (node.operator === 33 /* PlusToken */ && (operand.operator === 33 /* PlusToken */ || operand.operator === 38 /* PlusPlusToken */)) { write(" "); } - else if (node.operator === 34 && (operand.operator === 34 || operand.operator === 39)) { + else if (node.operator === 34 /* MinusToken */ && (operand.operator === 34 /* MinusToken */ || operand.operator === 39 /* MinusMinusToken */)) { write(" "); } } @@ -21669,13 +25330,13 @@ var ts; write(ts.tokenToString(node.operator)); } function emitBinaryExpression(node) { - if (languageVersion < 2 && node.operatorToken.kind === 53 && - (node.left.kind === 154 || node.left.kind === 153)) { - emitDestructuring(node, node.parent.kind === 182); + if (languageVersion < 2 /* ES6 */ && node.operatorToken.kind === 53 /* EqualsToken */ && + (node.left.kind === 154 /* ObjectLiteralExpression */ || node.left.kind === 153 /* ArrayLiteralExpression */)) { + emitDestructuring(node, node.parent.kind === 182 /* ExpressionStatement */); } else { emit(node.left); - var indentedBeforeOperator = indentIfOnDifferentLines(node, node.left, node.operatorToken, node.operatorToken.kind !== 23 ? " " : undefined); + var indentedBeforeOperator = indentIfOnDifferentLines(node, node.left, node.operatorToken, node.operatorToken.kind !== 23 /* CommaToken */ ? " " : undefined); write(ts.tokenToString(node.operatorToken.kind)); var indentedAfterOperator = indentIfOnDifferentLines(node, node.operatorToken, node.right, " "); emit(node.right); @@ -21698,6 +25359,10 @@ var ts; emit(node.whenFalse); decreaseIndentIf(indentedBeforeColon, indentedAfterColon); } + // Helper function to decrease the indent if we previously indented. Allows multiple + // previous indent values to be considered at a time. This also allows caller to just + // call this once, passing in all their appropriate indent values, instead of needing + // to call this helper function multiple times. function decreaseIndentIf(value1, value2) { if (value1) { decreaseIndent(); @@ -21707,36 +25372,36 @@ var ts; } } function isSingleLineEmptyBlock(node) { - if (node && node.kind === 179) { + if (node && node.kind === 179 /* Block */) { var block = node; return block.statements.length === 0 && nodeEndIsOnSameLineAsNodeStart(block, block); } } function emitBlock(node) { if (isSingleLineEmptyBlock(node)) { - emitToken(14, node.pos); + emitToken(14 /* OpenBraceToken */, node.pos); write(" "); - emitToken(15, node.statements.end); + emitToken(15 /* CloseBraceToken */, node.statements.end); return; } - emitToken(14, node.pos); + emitToken(14 /* OpenBraceToken */, node.pos); increaseIndent(); scopeEmitStart(node.parent); - if (node.kind === 206) { - ts.Debug.assert(node.parent.kind === 205); + if (node.kind === 206 /* ModuleBlock */) { + ts.Debug.assert(node.parent.kind === 205 /* ModuleDeclaration */); emitCaptureThisForNodeIfNecessary(node.parent); } emitLines(node.statements); - if (node.kind === 206) { + if (node.kind === 206 /* ModuleBlock */) { emitTempDeclarations(true); } decreaseIndent(); writeLine(); - emitToken(15, node.statements.end); + emitToken(15 /* CloseBraceToken */, node.statements.end); scopeEmitEnd(); } function emitEmbeddedStatement(node) { - if (node.kind === 179) { + if (node.kind === 179 /* Block */) { write(" "); emit(node); } @@ -21748,20 +25413,20 @@ var ts; } } function emitExpressionStatement(node) { - emitParenthesizedIf(node.expression, node.expression.kind === 163); + emitParenthesizedIf(node.expression, node.expression.kind === 163 /* ArrowFunction */); write(";"); } function emitIfStatement(node) { - var endPos = emitToken(84, node.pos); + var endPos = emitToken(84 /* IfKeyword */, node.pos); write(" "); - endPos = emitToken(16, endPos); + endPos = emitToken(16 /* OpenParenToken */, endPos); emit(node.expression); - emitToken(17, node.expression.end); + emitToken(17 /* CloseParenToken */, node.expression.end); emitEmbeddedStatement(node.thenStatement); if (node.elseStatement) { writeLine(); - emitToken(76, node.thenStatement.end); - if (node.elseStatement.kind === 183) { + emitToken(76 /* ElseKeyword */, node.thenStatement.end); + if (node.elseStatement.kind === 183 /* IfStatement */) { write(" "); emit(node.elseStatement); } @@ -21773,7 +25438,7 @@ var ts; function emitDoStatement(node) { write("do"); emitEmbeddedStatement(node.statement); - if (node.statement.kind === 179) { + if (node.statement.kind === 179 /* Block */) { write(" "); } else { @@ -21790,13 +25455,13 @@ var ts; emitEmbeddedStatement(node.statement); } function emitStartOfVariableDeclarationList(decl, startPos) { - var tokenKind = 98; - if (decl && languageVersion >= 2) { + var tokenKind = 98 /* VarKeyword */; + if (decl && languageVersion >= 2 /* ES6 */) { if (ts.isLet(decl)) { - tokenKind = 105; + tokenKind = 105 /* LetKeyword */; } else if (ts.isConst(decl)) { - tokenKind = 70; + tokenKind = 70 /* ConstKeyword */; } } if (startPos !== undefined) { @@ -21804,20 +25469,20 @@ var ts; } else { switch (tokenKind) { - case 98: + case 98 /* VarKeyword */: return write("var "); - case 105: + case 105 /* LetKeyword */: return write("let "); - case 70: + case 70 /* ConstKeyword */: return write("const "); } } } function emitForStatement(node) { - var endPos = emitToken(82, node.pos); + var endPos = emitToken(82 /* ForKeyword */, node.pos); write(" "); - endPos = emitToken(16, endPos); - if (node.initializer && node.initializer.kind === 199) { + endPos = emitToken(16 /* OpenParenToken */, endPos); + if (node.initializer && node.initializer.kind === 199 /* VariableDeclarationList */) { var variableDeclarationList = node.initializer; var declarations = variableDeclarationList.declarations; emitStartOfVariableDeclarationList(declarations[0], endPos); @@ -21835,13 +25500,13 @@ var ts; emitEmbeddedStatement(node.statement); } function emitForInOrForOfStatement(node) { - if (languageVersion < 2 && node.kind === 188) { + if (languageVersion < 2 /* ES6 */ && node.kind === 188 /* ForOfStatement */) { return emitDownLevelForOfStatement(node); } - var endPos = emitToken(82, node.pos); + var endPos = emitToken(82 /* ForKeyword */, node.pos); write(" "); - endPos = emitToken(16, endPos); - if (node.initializer.kind === 199) { + endPos = emitToken(16 /* OpenParenToken */, endPos); + if (node.initializer.kind === 199 /* VariableDeclarationList */) { var variableDeclarationList = node.initializer; if (variableDeclarationList.declarations.length >= 1) { var decl = variableDeclarationList.declarations[0]; @@ -21853,14 +25518,14 @@ var ts; else { emit(node.initializer); } - if (node.kind === 187) { + if (node.kind === 187 /* ForInStatement */) { write(" in "); } else { write(" of "); } emit(node.expression); - emitToken(17, node.expression.end); + emitToken(17 /* CloseParenToken */, node.expression.end); emitEmbeddedStatement(node.statement); } function emitDownLevelForOfStatement(node) { @@ -21884,18 +25549,30 @@ var ts; // all destructuring. // Note also that because an extra statement is needed to assign to the LHS, // for-of bodies are always emitted as blocks. - var endPos = emitToken(82, node.pos); + var endPos = emitToken(82 /* ForKeyword */, node.pos); write(" "); - endPos = emitToken(16, endPos); - var rhsIsIdentifier = node.expression.kind === 65; - var counter = createTempVariable(268435456); - var rhsReference = rhsIsIdentifier ? node.expression : createTempVariable(0); + endPos = emitToken(16 /* OpenParenToken */, endPos); + // Do not emit the LHS let declaration yet, because it might contain destructuring. + // Do not call recordTempDeclaration because we are declaring the temps + // right here. Recording means they will be declared later. + // In the case where the user wrote an identifier as the RHS, like this: + // + // for (let v of arr) { } + // + // we don't want to emit a temporary variable for the RHS, just use it directly. + var rhsIsIdentifier = node.expression.kind === 65 /* Identifier */; + var counter = createTempVariable(268435456 /* _i */); + var rhsReference = rhsIsIdentifier ? node.expression : createTempVariable(0 /* Auto */); + // This is the let keyword for the counter and rhsReference. The let keyword for + // the LHS will be emitted inside the body. emitStart(node.expression); write("var "); + // _i = 0 emitNodeWithoutSourceMap(counter); write(" = 0"); emitEnd(node.expression); if (!rhsIsIdentifier) { + // , _a = expr write(", "); emitStart(node.expression); emitNodeWithoutSourceMap(rhsReference); @@ -21904,6 +25581,7 @@ var ts; emitEnd(node.expression); } write("; "); + // _i < _a.length; emitStart(node.initializer); emitNodeWithoutSourceMap(counter); write(" < "); @@ -21911,39 +25589,53 @@ var ts; write(".length"); emitEnd(node.initializer); write("; "); + // _i++) emitStart(node.initializer); emitNodeWithoutSourceMap(counter); write("++"); emitEnd(node.initializer); - emitToken(17, node.expression.end); + emitToken(17 /* CloseParenToken */, node.expression.end); + // Body write(" {"); writeLine(); increaseIndent(); + // Initialize LHS + // let v = _a[_i]; var rhsIterationValue = createElementAccessExpression(rhsReference, counter); emitStart(node.initializer); - if (node.initializer.kind === 199) { + if (node.initializer.kind === 199 /* VariableDeclarationList */) { write("var "); var variableDeclarationList = node.initializer; if (variableDeclarationList.declarations.length > 0) { var declaration = variableDeclarationList.declarations[0]; if (ts.isBindingPattern(declaration.name)) { + // This works whether the declaration is a var, let, or const. + // It will use rhsIterationValue _a[_i] as the initializer. emitDestructuring(declaration, false, rhsIterationValue); } else { + // The following call does not include the initializer, so we have + // to emit it separately. emitNodeWithoutSourceMap(declaration); write(" = "); emitNodeWithoutSourceMap(rhsIterationValue); } } else { - emitNodeWithoutSourceMap(createTempVariable(0)); + // It's an empty declaration list. This can only happen in an error case, if the user wrote + // for (let of []) {} + emitNodeWithoutSourceMap(createTempVariable(0 /* Auto */)); write(" = "); emitNodeWithoutSourceMap(rhsIterationValue); } } else { - var assignmentExpression = createBinaryExpression(node.initializer, 53, rhsIterationValue, false); - if (node.initializer.kind === 153 || node.initializer.kind === 154) { + // Initializer is an expression. Emit the expression in the body, so that it's + // evaluated on every iteration. + var assignmentExpression = createBinaryExpression(node.initializer, 53 /* EqualsToken */, rhsIterationValue, false); + if (node.initializer.kind === 153 /* ArrayLiteralExpression */ || node.initializer.kind === 154 /* ObjectLiteralExpression */) { + // This is a destructuring pattern, so call emitDestructuring instead of emit. Calling emit will not work, because it will cause + // the BinaryExpression to be passed in instead of the expression statement, which will cause emitDestructuring to crash. emitDestructuring(assignmentExpression, true, undefined, node); } else { @@ -21952,7 +25644,7 @@ var ts; } emitEnd(node.initializer); write(";"); - if (node.statement.kind === 179) { + if (node.statement.kind === 179 /* Block */) { emitLines(node.statement.statements); } else { @@ -21964,12 +25656,12 @@ var ts; write("}"); } function emitBreakOrContinueStatement(node) { - emitToken(node.kind === 190 ? 66 : 71, node.pos); + emitToken(node.kind === 190 /* BreakStatement */ ? 66 /* BreakKeyword */ : 71 /* ContinueKeyword */, node.pos); emitOptional(" ", node.label); write(";"); } function emitReturnStatement(node) { - emitToken(90, node.pos); + emitToken(90 /* ReturnKeyword */, node.pos); emitOptional(" ", node.expression); write(";"); } @@ -21980,21 +25672,21 @@ var ts; emitEmbeddedStatement(node.statement); } function emitSwitchStatement(node) { - var endPos = emitToken(92, node.pos); + var endPos = emitToken(92 /* SwitchKeyword */, node.pos); write(" "); - emitToken(16, endPos); + emitToken(16 /* OpenParenToken */, endPos); emit(node.expression); - endPos = emitToken(17, node.expression.end); + endPos = emitToken(17 /* CloseParenToken */, node.expression.end); write(" "); emitCaseBlock(node.caseBlock, endPos); } function emitCaseBlock(node, startPos) { - emitToken(14, startPos); + emitToken(14 /* OpenBraceToken */, startPos); increaseIndent(); emitLines(node.clauses); decreaseIndent(); writeLine(); - emitToken(15, node.clauses.end); + emitToken(15 /* CloseBraceToken */, node.clauses.end); } function nodeStartPositionsAreOnSameLine(node1, node2) { return ts.getLineOfLocalPosition(currentSourceFile, ts.skipTrivia(currentSourceFile.text, node1.pos)) === @@ -22009,7 +25701,7 @@ var ts; ts.getLineOfLocalPosition(currentSourceFile, ts.skipTrivia(currentSourceFile.text, node2.pos)); } function emitCaseOrDefaultClause(node) { - if (node.kind === 220) { + if (node.kind === 220 /* CaseClause */) { write("case "); emit(node.expression); write(":"); @@ -22044,16 +25736,16 @@ var ts; } function emitCatchClause(node) { writeLine(); - var endPos = emitToken(68, node.pos); + var endPos = emitToken(68 /* CatchKeyword */, node.pos); write(" "); - emitToken(16, endPos); + emitToken(16 /* OpenParenToken */, endPos); emit(node.variableDeclaration); - emitToken(17, node.variableDeclaration ? node.variableDeclaration.end : endPos); + emitToken(17 /* CloseParenToken */, node.variableDeclaration ? node.variableDeclaration.end : endPos); write(" "); emitBlock(node.block); } function emitDebuggerStatement(node) { - emitToken(72, node.pos); + emitToken(72 /* DebuggerKeyword */, node.pos); write(";"); } function emitLabelledStatement(node) { @@ -22064,7 +25756,7 @@ var ts; function getContainingModule(node) { do { node = node.parent; - } while (node && node.kind !== 205); + } while (node && node.kind !== 205 /* ModuleDeclaration */); return node; } function emitContainingModuleName(node) { @@ -22073,13 +25765,13 @@ var ts; } function emitModuleMemberName(node) { emitStart(node.name); - if (ts.getCombinedNodeFlags(node) & 1) { + if (ts.getCombinedNodeFlags(node) & 1 /* Export */) { var container = getContainingModule(node); if (container) { write(getGeneratedNameForNode(container)); write("."); } - else if (languageVersion < 2) { + else if (languageVersion < 2 /* ES6 */) { write("exports."); } } @@ -22087,17 +25779,17 @@ var ts; emitEnd(node.name); } function createVoidZero() { - var zero = ts.createSynthesizedNode(7); + var zero = ts.createSynthesizedNode(7 /* NumericLiteral */); zero.text = "0"; - var result = ts.createSynthesizedNode(166); + var result = ts.createSynthesizedNode(166 /* VoidExpression */); result.expression = zero; return result; } function emitExportMemberAssignment(node) { - if (node.flags & 1) { + if (node.flags & 1 /* Export */) { writeLine(); emitStart(node); - if (node.flags & 256) { + if (node.flags & 256 /* Default */) { write("exports.default"); } else { @@ -22125,10 +25817,18 @@ var ts; } } } + /** + * If the root has a chance of being a synthesized node, callers should also pass a value for + * lowestNonSynthesizedAncestor. This should be an ancestor of root, it should not be synthesized, + * and there should not be a lower ancestor that introduces a scope. This node will be used as the + * location for ensuring that temporary names are unique. + */ function emitDestructuring(root, isAssignmentExpressionStatement, value, lowestNonSynthesizedAncestor) { var emitCount = 0; - var isDeclaration = (root.kind === 198 && !(ts.getCombinedNodeFlags(root) & 1)) || root.kind === 129; - if (root.kind === 169) { + // An exported declaration is actually emitted as an assignment (to a property on the module object), so + // temporary variables in an exported declaration need to have real declarations elsewhere + var isDeclaration = (root.kind === 198 /* VariableDeclaration */ && !(ts.getCombinedNodeFlags(root) & 1 /* Export */)) || root.kind === 129 /* Parameter */; + if (root.kind === 169 /* BinaryExpression */) { emitAssignmentExpression(root); } else { @@ -22140,7 +25840,7 @@ var ts; write(", "); } renameNonTopLevelLetAndConst(name); - if (name.parent && (name.parent.kind === 198 || name.parent.kind === 152)) { + if (name.parent && (name.parent.kind === 198 /* VariableDeclaration */ || name.parent.kind === 152 /* BindingElement */)) { emitModuleMemberName(name.parent); } else { @@ -22150,8 +25850,11 @@ var ts; emit(value); } function ensureIdentifier(expr) { - if (expr.kind !== 65) { - var identifier = createTempVariable(0); + if (expr.kind !== 65 /* Identifier */) { + // In case the root is a synthesized node, we need to pass lowestNonSynthesizedAncestor + // as the location for determining uniqueness of the variable we are about to + // generate. + var identifier = createTempVariable(0 /* Auto */); if (!isDeclaration) { recordTempDeclaration(identifier); } @@ -22161,43 +25864,46 @@ var ts; return expr; } function createDefaultValueCheck(value, defaultValue) { + // The value expression will be evaluated twice, so for anything but a simple identifier + // we need to generate a temporary variable value = ensureIdentifier(value); - var equals = ts.createSynthesizedNode(169); + // Return the expression 'value === void 0 ? defaultValue : value' + var equals = ts.createSynthesizedNode(169 /* BinaryExpression */); equals.left = value; - equals.operatorToken = ts.createSynthesizedNode(30); + equals.operatorToken = ts.createSynthesizedNode(30 /* EqualsEqualsEqualsToken */); equals.right = createVoidZero(); return createConditionalExpression(equals, defaultValue, value); } function createConditionalExpression(condition, whenTrue, whenFalse) { - var cond = ts.createSynthesizedNode(170); + var cond = ts.createSynthesizedNode(170 /* ConditionalExpression */); cond.condition = condition; - cond.questionToken = ts.createSynthesizedNode(50); + cond.questionToken = ts.createSynthesizedNode(50 /* QuestionToken */); cond.whenTrue = whenTrue; - cond.colonToken = ts.createSynthesizedNode(51); + cond.colonToken = ts.createSynthesizedNode(51 /* ColonToken */); cond.whenFalse = whenFalse; return cond; } function createNumericLiteral(value) { - var node = ts.createSynthesizedNode(7); + var node = ts.createSynthesizedNode(7 /* NumericLiteral */); node.text = "" + value; return node; } function parenthesizeForAccess(expr) { - if (expr.kind === 65 || expr.kind === 155 || expr.kind === 156) { + if (expr.kind === 65 /* Identifier */ || expr.kind === 155 /* PropertyAccessExpression */ || expr.kind === 156 /* ElementAccessExpression */) { return expr; } - var node = ts.createSynthesizedNode(161); + var node = ts.createSynthesizedNode(161 /* ParenthesizedExpression */); node.expression = expr; return node; } function createPropertyAccess(object, propName) { - if (propName.kind !== 65) { + if (propName.kind !== 65 /* Identifier */) { return createElementAccess(object, propName); } return createPropertyAccessExpression(parenthesizeForAccess(object), propName); } function createElementAccess(object, index) { - var node = ts.createSynthesizedNode(156); + var node = ts.createSynthesizedNode(156 /* ElementAccessExpression */); node.expression = parenthesizeForAccess(object); node.argumentExpression = index; return node; @@ -22205,11 +25911,14 @@ var ts; function emitObjectLiteralAssignment(target, value) { var properties = target.properties; if (properties.length !== 1) { + // For anything but a single element destructuring we need to generate a temporary + // to ensure value is evaluated exactly once. value = ensureIdentifier(value); } for (var _a = 0; _a < properties.length; _a++) { var p = properties[_a]; - if (p.kind === 224 || p.kind === 225) { + if (p.kind === 224 /* PropertyAssignment */ || p.kind === 225 /* ShorthandPropertyAssignment */) { + // TODO(andersh): Computed property support var propName = (p.name); emitDestructuringAssignment(p.initializer || propName, createPropertyAccess(value, propName)); } @@ -22218,12 +25927,14 @@ var ts; function emitArrayLiteralAssignment(target, value) { var elements = target.elements; if (elements.length !== 1) { + // For anything but a single element destructuring we need to generate a temporary + // to ensure value is evaluated exactly once. value = ensureIdentifier(value); } for (var i = 0; i < elements.length; i++) { var e = elements[i]; - if (e.kind !== 175) { - if (e.kind !== 173) { + if (e.kind !== 175 /* OmittedExpression */) { + if (e.kind !== 173 /* SpreadElementExpression */) { emitDestructuringAssignment(e, createElementAccess(value, createNumericLiteral(i))); } else { @@ -22237,14 +25948,14 @@ var ts; } } function emitDestructuringAssignment(target, value) { - if (target.kind === 169 && target.operatorToken.kind === 53) { + if (target.kind === 169 /* BinaryExpression */ && target.operatorToken.kind === 53 /* EqualsToken */) { value = createDefaultValueCheck(value, target.right); target = target.left; } - if (target.kind === 154) { + if (target.kind === 154 /* ObjectLiteralExpression */) { emitObjectLiteralAssignment(target, value); } - else if (target.kind === 153) { + else if (target.kind === 153 /* ArrayLiteralExpression */) { emitArrayLiteralAssignment(target, value); } else { @@ -22258,39 +25969,45 @@ var ts; emitDestructuringAssignment(target, value); } else { - if (root.parent.kind !== 161) { + if (root.parent.kind !== 161 /* ParenthesizedExpression */) { write("("); } value = ensureIdentifier(value); emitDestructuringAssignment(target, value); write(", "); emit(value); - if (root.parent.kind !== 161) { + if (root.parent.kind !== 161 /* ParenthesizedExpression */) { write(")"); } } } function emitBindingElement(target, value) { if (target.initializer) { + // Combine value and initializer value = value ? createDefaultValueCheck(value, target.initializer) : target.initializer; } else if (!value) { + // Use 'void 0' in absence of value and initializer value = createVoidZero(); } if (ts.isBindingPattern(target.name)) { var pattern = target.name; var elements = pattern.elements; if (elements.length !== 1) { + // For anything but a single element destructuring we need to generate a temporary + // to ensure value is evaluated exactly once. value = ensureIdentifier(value); } for (var i = 0; i < elements.length; i++) { var element = elements[i]; - if (pattern.kind === 150) { + if (pattern.kind === 150 /* ObjectBindingPattern */) { + // Rewrite element to a declaration with an initializer that fetches property var propName = element.propertyName || element.name; emitBindingElement(element, createPropertyAccess(value, propName)); } - else if (element.kind !== 175) { + else if (element.kind !== 175 /* OmittedExpression */) { if (!element.dotDotDotToken) { + // Rewrite element to a declaration that accesses array element at index i emitBindingElement(element, createElementAccess(value, createNumericLiteral(i))); } else { @@ -22310,7 +26027,7 @@ var ts; } function emitVariableDeclaration(node) { if (ts.isBindingPattern(node.name)) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { emitDestructuring(node, false); } else { @@ -22322,12 +26039,19 @@ var ts; renameNonTopLevelLetAndConst(node.name); emitModuleMemberName(node); var initializer = node.initializer; - if (!initializer && languageVersion < 2) { - var isUninitializedLet = (resolver.getNodeCheckFlags(node) & 256) && - (getCombinedFlagsForIdentifier(node.name) & 4096); + if (!initializer && languageVersion < 2 /* ES6 */) { + // downlevel emit for non-initialized let bindings defined in loops + // for (...) { let x; } + // should be + // for (...) { var = void 0; } + // this is necessary to preserve ES6 semantic in scenarios like + // for (...) { let x; console.log(x); x = 1 } // assignment on one iteration should not affect other iterations + var isUninitializedLet = (resolver.getNodeCheckFlags(node) & 256 /* BlockScopedBindingInLoop */) && + (getCombinedFlagsForIdentifier(node.name) & 4096 /* Let */); + // NOTE: default initialization should not be added to let bindings in for-in\for-of statements if (isUninitializedLet && - node.parent.parent.kind !== 187 && - node.parent.parent.kind !== 188) { + node.parent.parent.kind !== 187 /* ForInStatement */ && + node.parent.parent.kind !== 188 /* ForOfStatement */) { initializer = createVoidZero(); } } @@ -22335,11 +26059,11 @@ var ts; } } function emitExportVariableAssignments(node) { - if (node.kind === 175) { + if (node.kind === 175 /* OmittedExpression */) { return; } var name = node.name; - if (name.kind === 65) { + if (name.kind === 65 /* Identifier */) { emitExportMemberAssignments(name); } else if (ts.isBindingPattern(name)) { @@ -22347,33 +26071,41 @@ var ts; } } function getCombinedFlagsForIdentifier(node) { - if (!node.parent || (node.parent.kind !== 198 && node.parent.kind !== 152)) { + if (!node.parent || (node.parent.kind !== 198 /* VariableDeclaration */ && node.parent.kind !== 152 /* BindingElement */)) { return 0; } return ts.getCombinedNodeFlags(node.parent); } function renameNonTopLevelLetAndConst(node) { - if (languageVersion >= 2 || + // do not rename if + // - language version is ES6+ + // - node is synthesized + // - node is not identifier (can happen when tree is malformed) + // - node is definitely not name of variable declaration. + // it still can be part of parameter declaration, this check will be done next + if (languageVersion >= 2 /* ES6 */ || ts.nodeIsSynthesized(node) || - node.kind !== 65 || - (node.parent.kind !== 198 && node.parent.kind !== 152)) { + node.kind !== 65 /* Identifier */ || + (node.parent.kind !== 198 /* VariableDeclaration */ && node.parent.kind !== 152 /* BindingElement */)) { return; } var combinedFlags = getCombinedFlagsForIdentifier(node); - if (((combinedFlags & 12288) === 0) || combinedFlags & 1) { + if (((combinedFlags & 12288 /* BlockScoped */) === 0) || combinedFlags & 1 /* Export */) { + // do not rename exported or non-block scoped variables return; } - var list = ts.getAncestor(node, 199); - if (list.parent.kind === 180) { - var isSourceFileLevelBinding = list.parent.parent.kind === 227; - var isModuleLevelBinding = list.parent.parent.kind === 206; - var isFunctionLevelBinding = list.parent.parent.kind === 179 && ts.isFunctionLike(list.parent.parent.parent); + // here it is known that node is a block scoped variable + var list = ts.getAncestor(node, 199 /* VariableDeclarationList */); + if (list.parent.kind === 180 /* VariableStatement */) { + var isSourceFileLevelBinding = list.parent.parent.kind === 227 /* SourceFile */; + var isModuleLevelBinding = list.parent.parent.kind === 206 /* ModuleBlock */; + var isFunctionLevelBinding = list.parent.parent.kind === 179 /* Block */ && ts.isFunctionLike(list.parent.parent.parent); if (isSourceFileLevelBinding || isModuleLevelBinding || isFunctionLevelBinding) { return; } } var blockScopeContainer = ts.getEnclosingBlockScopeContainer(node); - var parent = blockScopeContainer.kind === 227 + var parent = blockScopeContainer.kind === 227 /* SourceFile */ ? blockScopeContainer : blockScopeContainer.parent; if (resolver.resolvesToSomeValue(parent, node.text)) { @@ -22386,33 +26118,34 @@ var ts; } } function isES6ExportedDeclaration(node) { - return !!(node.flags & 1) && - languageVersion >= 2 && - node.parent.kind === 227; + return !!(node.flags & 1 /* Export */) && + languageVersion >= 2 /* ES6 */ && + node.parent.kind === 227 /* SourceFile */; } function emitVariableStatement(node) { - if (!(node.flags & 1)) { + if (!(node.flags & 1 /* Export */)) { emitStartOfVariableDeclarationList(node.declarationList); } else if (isES6ExportedDeclaration(node)) { + // Exported ES6 module member write("export "); emitStartOfVariableDeclarationList(node.declarationList); } emitCommaList(node.declarationList.declarations); write(";"); - if (languageVersion < 2 && node.parent === currentSourceFile) { + if (languageVersion < 2 /* ES6 */ && node.parent === currentSourceFile) { ts.forEach(node.declarationList.declarations, emitExportVariableAssignments); } } function emitParameter(node) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { if (ts.isBindingPattern(node.name)) { - var name_16 = createTempVariable(0); + var name_17 = createTempVariable(0 /* Auto */); if (!tempParameters) { tempParameters = []; } - tempParameters.push(name_16); - emit(name_16); + tempParameters.push(name_17); + emit(name_17); } else { emit(node.name); @@ -22427,7 +26160,7 @@ var ts; } } function emitDefaultValueAssignments(node) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { var tempIndex = 0; ts.forEach(node.parameters, function (p) { if (ts.isBindingPattern(p.name)) { @@ -22456,10 +26189,10 @@ var ts; } } function emitRestParameter(node) { - if (languageVersion < 2 && ts.hasRestParameters(node)) { + if (languageVersion < 2 /* ES6 */ && ts.hasRestParameters(node)) { var restIndex = node.parameters.length - 1; var restParam = node.parameters[restIndex]; - var tempName = createTempVariable(268435456).text; + var tempName = createTempVariable(268435456 /* _i */).text; writeLine(); emitLeadingComments(restParam); emitStart(restParam); @@ -22494,12 +26227,12 @@ var ts; } } function emitAccessor(node) { - write(node.kind === 136 ? "get " : "set "); + write(node.kind === 136 /* GetAccessor */ ? "get " : "set "); emit(node.name, false); emitSignatureAndBody(node); } function shouldEmitAsArrowFunction(node) { - return node.kind === 163 && languageVersion >= 2; + return node.kind === 163 /* ArrowFunction */ && languageVersion >= 2 /* ES6 */; } function emitDeclarationName(node) { if (node.name) { @@ -22510,24 +26243,29 @@ var ts; } } function shouldEmitFunctionName(node) { - if (node.kind === 162) { + if (node.kind === 162 /* FunctionExpression */) { + // Emit name if one is present return !!node.name; } - if (node.kind === 200) { - return !!node.name || languageVersion < 2; + if (node.kind === 200 /* FunctionDeclaration */) { + // Emit name if one is present, or emit generated name in down-level case (for export default case) + return !!node.name || languageVersion < 2 /* ES6 */; } } function emitFunctionDeclaration(node) { if (ts.nodeIsMissing(node.body)) { return emitOnlyPinnedOrTripleSlashComments(node); } - if (node.kind !== 134 && node.kind !== 133) { + if (node.kind !== 134 /* MethodDeclaration */ && node.kind !== 133 /* MethodSignature */) { + // Methods will emit the comments as part of emitting method declaration emitLeadingComments(node); } + // For targeting below es6, emit functions-like declaration including arrow function using function keyword. + // When targeting ES6, emit arrow function natively in ES6 by omitting function keyword and using fat arrow instead if (!shouldEmitAsArrowFunction(node)) { if (isES6ExportedDeclaration(node)) { write("export "); - if (node.flags & 256) { + if (node.flags & 256 /* Default */) { write("default "); } } @@ -22537,15 +26275,15 @@ var ts; emitDeclarationName(node); } emitSignatureAndBody(node); - if (languageVersion < 2 && node.kind === 200 && node.parent === currentSourceFile && node.name) { + if (languageVersion < 2 /* ES6 */ && node.kind === 200 /* FunctionDeclaration */ && node.parent === currentSourceFile && node.name) { emitExportMemberAssignments(node.name); } - if (node.kind !== 134 && node.kind !== 133) { + if (node.kind !== 134 /* MethodDeclaration */ && node.kind !== 133 /* MethodSignature */) { emitTrailingComments(node); } } function emitCaptureThisForNodeIfNecessary(node) { - if (resolver.getNodeCheckFlags(node) & 4) { + if (resolver.getNodeCheckFlags(node) & 4 /* CaptureThis */) { writeLine(); emitStart(node); write("var _this = this;"); @@ -22557,13 +26295,14 @@ var ts; write("("); if (node) { var parameters = node.parameters; - var omitCount = languageVersion < 2 && ts.hasRestParameters(node) ? 1 : 0; + var omitCount = languageVersion < 2 /* ES6 */ && ts.hasRestParameters(node) ? 1 : 0; emitList(parameters, 0, parameters.length - omitCount, false, false); } write(")"); decreaseIndent(); } function emitSignatureParametersForArrow(node) { + // Check whether the parameter list needs parentheses and preserve no-parenthesis if (node.parameters.length === 1 && node.pos === node.parameters[0].pos) { emit(node.parameters[0]); return; @@ -22577,6 +26316,7 @@ var ts; tempFlags = 0; tempVariables = undefined; tempParameters = undefined; + // When targeting ES6, emit arrow function natively in ES6 if (shouldEmitAsArrowFunction(node)) { emitSignatureParametersForArrow(node); write(" =>"); @@ -22585,9 +26325,11 @@ var ts; emitSignatureParameters(node); } if (!node.body) { + // There can be no body when there are parse errors. Just emit an empty block + // in that case. write(" { }"); } - else if (node.body.kind === 179) { + else if (node.body.kind === 179 /* Block */) { emitBlockFunctionBody(node, node.body); } else { @@ -22600,22 +26342,28 @@ var ts; tempVariables = saveTempVariables; tempParameters = saveTempParameters; } + // Returns true if any preamble code was emitted. function emitFunctionBodyPreamble(node) { emitCaptureThisForNodeIfNecessary(node); emitDefaultValueAssignments(node); emitRestParameter(node); } function emitExpressionFunctionBody(node, body) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { emitDownLevelExpressionFunctionBody(node, body); return; } + // For es6 and higher we can emit the expression as is. However, in the case + // where the expression might end up looking like a block when emitted, we'll + // also wrap it in parentheses first. For example if you have: a => {} + // then we need to generate: a => ({}) write(" "); + // Unwrap all type assertions. var current = body; - while (current.kind === 160) { + while (current.kind === 160 /* TypeAssertionExpression */) { current = current.expression; } - emitParenthesizedIf(body, current.kind === 154); + emitParenthesizedIf(body, current.kind === 154 /* ObjectLiteralExpression */); } function emitDownLevelExpressionFunctionBody(node, body) { write(" {"); @@ -22626,6 +26374,8 @@ var ts; emitFunctionBodyPreamble(node); var preambleEmitted = writer.getTextPos() !== outPos; decreaseIndent(); + // If we didn't have to emit any preamble code, then attempt to keep the arrow + // function on one line. if (!preambleEmitted && nodeStartPositionsAreOnSameLine(node, body)) { write(" "); emitStart(body); @@ -22659,6 +26409,8 @@ var ts; var initialTextPos = writer.getTextPos(); increaseIndent(); emitDetachedComments(body.statements); + // Emit all the directive prologues (like "use strict"). These have to come before + // any other preamble code we write (like parameter initializers). var startIndex = emitDirectivePrologues(body.statements, true); emitFunctionBodyPreamble(node); decreaseIndent(); @@ -22681,17 +26433,17 @@ var ts; emitLeadingCommentsOfPosition(body.statements.end); decreaseIndent(); } - emitToken(15, body.statements.end); + emitToken(15 /* CloseBraceToken */, body.statements.end); scopeEmitEnd(); } function findInitialSuperCall(ctor) { if (ctor.body) { var statement = ctor.body.statements[0]; - if (statement && statement.kind === 182) { + if (statement && statement.kind === 182 /* ExpressionStatement */) { var expr = statement.expression; - if (expr && expr.kind === 157) { + if (expr && expr.kind === 157 /* CallExpression */) { var func = expr.expression; - if (func && func.kind === 91) { + if (func && func.kind === 91 /* SuperKeyword */) { return statement; } } @@ -22700,7 +26452,7 @@ var ts; } function emitParameterPropertyAssignments(node) { ts.forEach(node.parameters, function (param) { - if (param.flags & 112) { + if (param.flags & 112 /* AccessibilityModifier */) { writeLine(); emitStart(param); emitStart(param.name); @@ -22715,12 +26467,13 @@ var ts; }); } function emitMemberAccessForPropertyName(memberName) { - if (memberName.kind === 8 || memberName.kind === 7) { + // TODO: (jfreeman,drosen): comment on why this is emitNodeWithoutSourceMap instead of emit here. + if (memberName.kind === 8 /* StringLiteral */ || memberName.kind === 7 /* NumericLiteral */) { write("["); emitNodeWithoutSourceMap(memberName); write("]"); } - else if (memberName.kind === 127) { + else if (memberName.kind === 127 /* ComputedPropertyName */) { emitComputedPropertyName(memberName); } else { @@ -22728,36 +26481,55 @@ var ts; emitNodeWithoutSourceMap(memberName); } } - function emitMemberAssignments(node, staticFlag) { - ts.forEach(node.members, function (member) { - if (member.kind === 132 && (member.flags & 128) === staticFlag && member.initializer) { - writeLine(); - emitLeadingComments(member); - emitStart(member); - emitStart(member.name); - if (staticFlag) { - emitDeclarationName(node); - } - else { - write("this"); - } - emitMemberAccessForPropertyName(member.name); - emitEnd(member.name); - write(" = "); - emit(member.initializer); - write(";"); - emitEnd(member); - emitTrailingComments(member); + function getInitializedProperties(node, static) { + var properties = []; + for (var _a = 0, _b = node.members; _a < _b.length; _a++) { + var member = _b[_a]; + if (member.kind === 132 /* PropertyDeclaration */ && static === ((member.flags & 128 /* Static */) !== 0) && member.initializer) { + properties.push(member); } - }); + } + return properties; + } + function emitPropertyDeclarations(node, properties) { + for (var _a = 0; _a < properties.length; _a++) { + var property = properties[_a]; + emitPropertyDeclaration(node, property); + } + } + function emitPropertyDeclaration(node, property, receiver, isExpression) { + writeLine(); + emitLeadingComments(property); + emitStart(property); + emitStart(property.name); + if (receiver) { + emit(receiver); + } + else { + if (property.flags & 128 /* Static */) { + emitDeclarationName(node); + } + else { + write("this"); + } + } + emitMemberAccessForPropertyName(property.name); + emitEnd(property.name); + write(" = "); + emit(property.initializer); + if (!isExpression) { + write(";"); + } + emitEnd(property); + emitTrailingComments(property); } function emitMemberFunctionsForES5AndLower(node) { ts.forEach(node.members, function (member) { - if (member.kind === 178) { + if (member.kind === 178 /* SemicolonClassElement */) { writeLine(); write(";"); } - else if (member.kind === 134 || node.kind === 133) { + else if (member.kind === 134 /* MethodDeclaration */ || node.kind === 133 /* MethodSignature */) { if (!member.body) { return emitOnlyPinnedOrTripleSlashComments(member); } @@ -22776,7 +26548,7 @@ var ts; write(";"); emitTrailingComments(member); } - else if (member.kind === 136 || member.kind === 137) { + else if (member.kind === 136 /* GetAccessor */ || member.kind === 137 /* SetAccessor */) { var accessors = ts.getAllAccessorDeclarations(node.members, member); if (member === accessors.firstAccessor) { writeLine(); @@ -22826,22 +26598,22 @@ var ts; function emitMemberFunctionsForES6AndHigher(node) { for (var _a = 0, _b = node.members; _a < _b.length; _a++) { var member = _b[_a]; - if ((member.kind === 134 || node.kind === 133) && !member.body) { + if ((member.kind === 134 /* MethodDeclaration */ || node.kind === 133 /* MethodSignature */) && !member.body) { emitOnlyPinnedOrTripleSlashComments(member); } - else if (member.kind === 134 || - member.kind === 136 || - member.kind === 137) { + else if (member.kind === 134 /* MethodDeclaration */ || + member.kind === 136 /* GetAccessor */ || + member.kind === 137 /* SetAccessor */) { writeLine(); emitLeadingComments(member); emitStart(member); - if (member.flags & 128) { + if (member.flags & 128 /* Static */) { write("static "); } - if (member.kind === 136) { + if (member.kind === 136 /* GetAccessor */) { write("get "); } - else if (member.kind === 137) { + else if (member.kind === 137 /* SetAccessor */) { write("set "); } emit(member.name); @@ -22849,7 +26621,7 @@ var ts; emitEnd(member); emitTrailingComments(member); } - else if (member.kind === 178) { + else if (member.kind === 178 /* SemicolonClassElement */) { writeLine(); write(";"); } @@ -22862,24 +26634,37 @@ var ts; tempFlags = 0; tempVariables = undefined; tempParameters = undefined; + emitConstructorWorker(node, baseTypeElement); + tempFlags = saveTempFlags; + tempVariables = saveTempVariables; + tempParameters = saveTempParameters; + } + function emitConstructorWorker(node, baseTypeElement) { + // Check if we have property assignment inside class declaration. + // If there is property assignment, we need to emit constructor whether users define it or not + // If there is no property assignment, we can omit constructor if users do not define it var hasInstancePropertyWithInitializer = false; + // Emit the constructor overload pinned comments ts.forEach(node.members, function (member) { - if (member.kind === 135 && !member.body) { + if (member.kind === 135 /* Constructor */ && !member.body) { emitOnlyPinnedOrTripleSlashComments(member); } - if (member.kind === 132 && member.initializer && (member.flags & 128) === 0) { + // Check if there is any non-static property assignment + if (member.kind === 132 /* PropertyDeclaration */ && member.initializer && (member.flags & 128 /* Static */) === 0) { hasInstancePropertyWithInitializer = true; } }); var ctor = ts.getFirstConstructorWithBody(node); - if (languageVersion >= 2 && !ctor && !hasInstancePropertyWithInitializer) { + // For target ES6 and above, if there is no user-defined constructor and there is no property assignment + // do not emit constructor in class declaration. + if (languageVersion >= 2 /* ES6 */ && !ctor && !hasInstancePropertyWithInitializer) { return; } if (ctor) { emitLeadingComments(ctor); } emitStart(ctor || node); - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { write("function "); emitDeclarationName(node); emitSignatureParameters(ctor); @@ -22890,6 +26675,12 @@ var ts; emitSignatureParameters(ctor); } else { + // Based on EcmaScript6 section 14.5.14: Runtime Semantics: ClassDefinitionEvaluation. + // If constructor is empty, then, + // If ClassHeritageopt is present, then + // Let constructor be the result of parsing the String "constructor(... args){ super (...args);}" using the syntactic grammar with the goal symbol MethodDefinition. + // Else, + // Let constructor be the result of parsing the String "constructor( ){ }" using the syntactic grammar with the goal symbol MethodDefinition if (baseTypeElement) { write("(...args)"); } @@ -22921,7 +26712,7 @@ var ts; if (baseTypeElement) { writeLine(); emitStart(baseTypeElement); - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { write("_super.apply(this, arguments);"); } else { @@ -22930,7 +26721,7 @@ var ts; emitEnd(baseTypeElement); } } - emitMemberAssignments(node, 0); + emitPropertyDeclarations(node, getInitializedProperties(node, false)); if (ctor) { var statements = ctor.body.statements; if (superCall) { @@ -22944,15 +26735,12 @@ var ts; emitLeadingCommentsOfPosition(ctor.body.statements.end); } decreaseIndent(); - emitToken(15, ctor ? ctor.body.statements.end : node.members.end); + emitToken(15 /* CloseBraceToken */, ctor ? ctor.body.statements.end : node.members.end); scopeEmitEnd(); emitEnd(ctor || node); if (ctor) { emitTrailingComments(ctor); } - tempFlags = saveTempFlags; - tempVariables = saveTempVariables; - tempParameters = saveTempParameters; } function emitClassExpression(node) { return emitClassLikeDeclaration(node); @@ -22961,7 +26749,7 @@ var ts; return emitClassLikeDeclaration(node); } function emitClassLikeDeclaration(node) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { emitClassLikeDeclarationBelowES6(node); } else { @@ -22970,9 +26758,61 @@ var ts; } function emitClassLikeDeclarationForES6AndHigher(node) { var thisNodeIsDecorated = ts.nodeIsDecorated(node); - if (node.kind === 201) { + if (node.kind === 201 /* ClassDeclaration */) { if (thisNodeIsDecorated) { - if (isES6ExportedDeclaration(node) && !(node.flags & 256)) { + // To preserve the correct runtime semantics when decorators are applied to the class, + // the emit needs to follow one of the following rules: + // + // * For a local class declaration: + // + // @dec class C { + // } + // + // The emit should be: + // + // let C = class { + // }; + // Object.defineProperty(C, "name", { value: "C", configurable: true }); + // C = __decorate([dec], C); + // + // * For an exported class declaration: + // + // @dec export class C { + // } + // + // The emit should be: + // + // export let C = class { + // }; + // Object.defineProperty(C, "name", { value: "C", configurable: true }); + // C = __decorate([dec], C); + // + // * For a default export of a class declaration with a name: + // + // @dec default export class C { + // } + // + // The emit should be: + // + // let C = class { + // } + // Object.defineProperty(C, "name", { value: "C", configurable: true }); + // C = __decorate([dec], C); + // export default C; + // + // * For a default export of a class declaration without a name: + // + // @dec default export class { + // } + // + // The emit should be: + // + // let _default = class { + // } + // _default = __decorate([dec], _default); + // export default _default; + // + if (isES6ExportedDeclaration(node) && !(node.flags & 256 /* Default */)) { write("export "); } write("let "); @@ -22981,13 +26821,35 @@ var ts; } else if (isES6ExportedDeclaration(node)) { write("export "); - if (node.flags & 256) { + if (node.flags & 256 /* Default */) { write("default "); } } } + // If the class has static properties, and it's a class expression, then we'll need + // to specialize the emit a bit. for a class expression of the form: + // + // class C { static a = 1; static b = 2; ... } + // + // We'll emit: + // + // (_temp = class C { ... }, _temp.a = 1, _temp.b = 2, _temp) + // + // This keeps the expression as an expression, while ensuring that the static parts + // of it have been initialized by the time it is used. + var staticProperties = getInitializedProperties(node, true); + var isClassExpressionWithStaticProperties = staticProperties.length > 0 && node.kind === 174 /* ClassExpression */; + var tempVariable; + if (isClassExpressionWithStaticProperties) { + tempVariable = createAndRecordTempVariable(0 /* Auto */); + write("("); + increaseIndent(); + emit(tempVariable); + write(" = "); + } write("class"); - if ((node.name || !(node.flags & 256)) && !thisNodeIsDecorated) { + // check if this is an "export default class" as it may not have a name. Do not emit the name if the class is decorated. + if ((node.name || !(node.flags & 256 /* Default */)) && !thisNodeIsDecorated) { write(" "); emitDeclarationName(node); } @@ -23004,8 +26866,15 @@ var ts; emitMemberFunctionsForES6AndHigher(node); decreaseIndent(); writeLine(); - emitToken(15, node.members.end); + emitToken(15 /* CloseBraceToken */, node.members.end); scopeEmitEnd(); + // For a decorated class, we need to assign its name (if it has one). This is because we emit + // the class as a class expression to avoid the double-binding of the identifier: + // + // let C = class { + // } + // Object.defineProperty(C, "name", { value: "C", configurable: true }); + // if (thisNodeIsDecorated) { write(";"); if (node.name) { @@ -23018,10 +26887,32 @@ var ts; writeLine(); } } - writeLine(); - emitMemberAssignments(node, 128); - emitDecoratorsOfClass(node); - if (!isES6ExportedDeclaration(node) && (node.flags & 1)) { + // Emit static property assignment. Because classDeclaration is lexically evaluated, + // it is safe to emit static property assignment after classDeclaration + // From ES6 specification: + // HasLexicalDeclaration (N) : Determines if the argument identifier has a binding in this environment record that was created using + // a lexical declaration such as a LexicalDeclaration or a ClassDeclaration. + if (isClassExpressionWithStaticProperties) { + for (var _a = 0; _a < staticProperties.length; _a++) { + var property = staticProperties[_a]; + write(","); + writeLine(); + emitPropertyDeclaration(node, property, tempVariable, true); + } + write(","); + writeLine(); + emit(tempVariable); + decreaseIndent(); + write(")"); + } + else { + writeLine(); + emitPropertyDeclarations(node, staticProperties); + emitDecoratorsOfClass(node); + } + // If this is an exported class, but not on the top level (i.e. on an internal + // module), export it + if (!isES6ExportedDeclaration(node) && (node.flags & 1 /* Export */)) { writeLine(); emitStart(node); emitModuleMemberName(node); @@ -23030,7 +26921,8 @@ var ts; emitEnd(node); write(";"); } - else if (isES6ExportedDeclaration(node) && (node.flags & 256) && thisNodeIsDecorated) { + else if (isES6ExportedDeclaration(node) && (node.flags & 256 /* Default */) && thisNodeIsDecorated) { + // if this is a top level default export of decorated class, write the export after the declaration. writeLine(); write("export default "); emitDeclarationName(node); @@ -23038,7 +26930,7 @@ var ts; } } function emitClassLikeDeclarationBelowES6(node) { - if (node.kind === 201) { + if (node.kind === 201 /* ClassDeclaration */) { write("var "); emitDeclarationName(node); write(" = "); @@ -23070,11 +26962,11 @@ var ts; writeLine(); emitConstructor(node, baseTypeNode); emitMemberFunctionsForES5AndLower(node); - emitMemberAssignments(node, 128); + emitPropertyDeclarations(node, getInitializedProperties(node, true)); writeLine(); emitDecoratorsOfClass(node); writeLine(); - emitToken(15, node.members.end, function () { + emitToken(15 /* CloseBraceToken */, node.members.end, function () { write("return "); emitDeclarationName(node); }); @@ -23086,7 +26978,7 @@ var ts; computedPropertyNamesToGeneratedNames = saveComputedPropertyNamesToGeneratedNames; decreaseIndent(); writeLine(); - emitToken(15, node.members.end); + emitToken(15 /* CloseBraceToken */, node.members.end); scopeEmitEnd(); emitStart(node); write(")("); @@ -23094,98 +26986,171 @@ var ts; emit(baseTypeNode.expression); } write(")"); - if (node.kind === 201) { + if (node.kind === 201 /* ClassDeclaration */) { write(";"); } emitEnd(node); - if (node.kind === 201) { + if (node.kind === 201 /* ClassDeclaration */) { emitExportMemberAssignment(node); } - if (languageVersion < 2 && node.parent === currentSourceFile && node.name) { + if (languageVersion < 2 /* ES6 */ && node.parent === currentSourceFile && node.name) { emitExportMemberAssignments(node.name); } } function emitClassMemberPrefix(node, member) { emitDeclarationName(node); - if (!(member.flags & 128)) { + if (!(member.flags & 128 /* Static */)) { write(".prototype"); } } function emitDecoratorsOfClass(node) { emitDecoratorsOfMembers(node, 0); - emitDecoratorsOfMembers(node, 128); + emitDecoratorsOfMembers(node, 128 /* Static */); emitDecoratorsOfConstructor(node); } function emitDecoratorsOfConstructor(node) { + var decorators = node.decorators; var constructor = ts.getFirstConstructorWithBody(node); - if (constructor) { - emitDecoratorsOfParameters(node, constructor); - } - if (!ts.nodeIsDecorated(node)) { + var hasDecoratedParameters = constructor && ts.forEach(constructor.parameters, ts.nodeIsDecorated); + // skip decoration of the constructor if neither it nor its parameters are decorated + if (!decorators && !hasDecoratedParameters) { return; } + // Emit the call to __decorate. Given the class: + // + // @dec + // class C { + // } + // + // The emit for the class is: + // + // C = __decorate([dec], C); + // writeLine(); emitStart(node); emitDeclarationName(node); - write(" = "); - emitDecorateStart(node.decorators); + write(" = __decorate(["); + increaseIndent(); + writeLine(); + var decoratorCount = decorators ? decorators.length : 0; + var argumentsWritten = emitList(decorators, 0, decoratorCount, true, false, false, true, function (decorator) { + emitStart(decorator); + emit(decorator.expression); + emitEnd(decorator); + }); + argumentsWritten += emitDecoratorsOfParameters(constructor, argumentsWritten > 0); + emitSerializedTypeMetadata(node, argumentsWritten >= 0); + decreaseIndent(); + writeLine(); + write("], "); emitDeclarationName(node); write(");"); emitEnd(node); writeLine(); } function emitDecoratorsOfMembers(node, staticFlag) { - ts.forEach(node.members, function (member) { - if ((member.flags & 128) !== staticFlag) { - return; + for (var _a = 0, _b = node.members; _a < _b.length; _a++) { + var member = _b[_a]; + // only emit members in the correct group + if ((member.flags & 128 /* Static */) !== staticFlag) { + continue; } - var decorators; - switch (member.kind) { - case 134: - emitDecoratorsOfParameters(node, member); - decorators = member.decorators; - break; - case 136: - case 137: - var accessors = ts.getAllAccessorDeclarations(node.members, member); - if (member !== accessors.firstAccessor) { - return; - } - if (accessors.setAccessor) { - emitDecoratorsOfParameters(node, accessors.setAccessor); - } - decorators = accessors.firstAccessor.decorators; - if (!decorators && accessors.secondAccessor) { - decorators = accessors.secondAccessor.decorators; - } - break; - case 132: - decorators = member.decorators; - break; - default: - return; + // skip members that cannot be decorated (such as the constructor) + if (!ts.nodeCanBeDecorated(member)) { + continue; } - if (!decorators) { - return; + // skip a member if it or any of its parameters are not decorated + if (!ts.nodeOrChildIsDecorated(member)) { + continue; } + // skip an accessor declaration if it is not the first accessor + var decorators = void 0; + var functionLikeMember = void 0; + if (ts.isAccessor(member)) { + var accessors = ts.getAllAccessorDeclarations(node.members, member); + if (member !== accessors.firstAccessor) { + continue; + } + // get the decorators from the first accessor with decorators + decorators = accessors.firstAccessor.decorators; + if (!decorators && accessors.secondAccessor) { + decorators = accessors.secondAccessor.decorators; + } + // we only decorate parameters of the set accessor + functionLikeMember = accessors.setAccessor; + } + else { + decorators = member.decorators; + // we only decorate the parameters here if this is a method + if (member.kind === 134 /* MethodDeclaration */) { + functionLikeMember = member; + } + } + // Emit the call to __decorate. Given the following: + // + // class C { + // @dec method(@dec2 x) {} + // @dec get accessor() {} + // @dec prop; + // } + // + // The emit for a method is: + // + // Object.defineProperty(C.prototype, "method", + // __decorate([ + // dec, + // __param(0, dec2), + // __metadata("design:type", Function), + // __metadata("design:paramtypes", [Object]), + // __metadata("design:returntype", void 0) + // ], C.prototype, "method", Object.getOwnPropertyDescriptor(C.prototype, "method"))); + // + // The emit for an accessor is: + // + // Object.defineProperty(C.prototype, "accessor", + // __decorate([ + // dec + // ], C.prototype, "accessor", Object.getOwnPropertyDescriptor(C.prototype, "accessor"))); + // + // The emit for a property is: + // + // __decorate([ + // dec + // ], C.prototype, "prop"); + // writeLine(); emitStart(member); - if (member.kind !== 132) { + if (member.kind !== 132 /* PropertyDeclaration */) { write("Object.defineProperty("); emitStart(member.name); emitClassMemberPrefix(node, member); write(", "); emitExpressionForPropertyName(member.name); emitEnd(member.name); - write(", "); + write(","); + increaseIndent(); + writeLine(); } - emitDecorateStart(decorators); + write("__decorate(["); + increaseIndent(); + writeLine(); + var decoratorCount = decorators ? decorators.length : 0; + var argumentsWritten = emitList(decorators, 0, decoratorCount, true, false, false, true, function (decorator) { + emitStart(decorator); + emit(decorator.expression); + emitEnd(decorator); + }); + argumentsWritten += emitDecoratorsOfParameters(functionLikeMember, argumentsWritten > 0); + emitSerializedTypeMetadata(member, argumentsWritten > 0); + decreaseIndent(); + writeLine(); + write("], "); emitStart(member.name); emitClassMemberPrefix(node, member); write(", "); emitExpressionForPropertyName(member.name); emitEnd(member.name); - if (member.kind !== 132) { + if (member.kind !== 132 /* PropertyDeclaration */) { write(", Object.getOwnPropertyDescriptor("); emitStart(member.name); emitClassMemberPrefix(node, member); @@ -23193,51 +27158,142 @@ var ts; emitExpressionForPropertyName(member.name); emitEnd(member.name); write("))"); + decreaseIndent(); } write(");"); emitEnd(member); writeLine(); - }); - } - function emitDecoratorsOfParameters(node, member) { - ts.forEach(member.parameters, function (parameter, parameterIndex) { - if (!ts.nodeIsDecorated(parameter)) { - return; - } - writeLine(); - emitStart(parameter); - emitDecorateStart(parameter.decorators); - emitStart(parameter.name); - if (member.kind === 135) { - emitDeclarationName(node); - write(", void 0"); - } - else { - emitClassMemberPrefix(node, member); - write(", "); - emitExpressionForPropertyName(member.name); - } - write(", "); - write(String(parameterIndex)); - emitEnd(parameter.name); - write(");"); - emitEnd(parameter); - writeLine(); - }); - } - function emitDecorateStart(decorators) { - write("__decorate(["); - var decoratorCount = decorators.length; - for (var i = 0; i < decoratorCount; i++) { - if (i > 0) { - write(", "); - } - var decorator = decorators[i]; - emitStart(decorator); - emit(decorator.expression); - emitEnd(decorator); } - write("], "); + } + function emitDecoratorsOfParameters(node, leadingComma) { + var argumentsWritten = 0; + if (node) { + var parameterIndex = 0; + for (var _a = 0, _b = node.parameters; _a < _b.length; _a++) { + var parameter = _b[_a]; + if (ts.nodeIsDecorated(parameter)) { + var decorators = parameter.decorators; + argumentsWritten += emitList(decorators, 0, decorators.length, true, false, leadingComma, true, function (decorator) { + emitStart(decorator); + write("__param(" + parameterIndex + ", "); + emit(decorator.expression); + write(")"); + emitEnd(decorator); + }); + leadingComma = true; + } + ++parameterIndex; + } + } + return argumentsWritten; + } + function shouldEmitTypeMetadata(node) { + // This method determines whether to emit the "design:type" metadata based on the node's kind. + // The caller should have already tested whether the node has decorators and whether the emitDecoratorMetadata + // compiler option is set. + switch (node.kind) { + case 134 /* MethodDeclaration */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 132 /* PropertyDeclaration */: + return true; + } + return false; + } + function shouldEmitReturnTypeMetadata(node) { + // This method determines whether to emit the "design:returntype" metadata based on the node's kind. + // The caller should have already tested whether the node has decorators and whether the emitDecoratorMetadata + // compiler option is set. + switch (node.kind) { + case 134 /* MethodDeclaration */: + return true; + } + return false; + } + function shouldEmitParamTypesMetadata(node) { + // This method determines whether to emit the "design:paramtypes" metadata based on the node's kind. + // The caller should have already tested whether the node has decorators and whether the emitDecoratorMetadata + // compiler option is set. + switch (node.kind) { + case 201 /* ClassDeclaration */: + case 134 /* MethodDeclaration */: + case 137 /* SetAccessor */: + return true; + } + return false; + } + function emitSerializedTypeMetadata(node, writeComma) { + // This method emits the serialized type metadata for a decorator target. + // The caller should have already tested whether the node has decorators. + var argumentsWritten = 0; + if (compilerOptions.emitDecoratorMetadata) { + if (shouldEmitTypeMetadata(node)) { + var serializedType = resolver.serializeTypeOfNode(node, getGeneratedNameForNode); + if (serializedType) { + if (writeComma) { + write(", "); + } + writeLine(); + write("__metadata('design:type', "); + emitSerializedType(node, serializedType); + write(")"); + argumentsWritten++; + } + } + if (shouldEmitParamTypesMetadata(node)) { + var serializedTypes = resolver.serializeParameterTypesOfNode(node, getGeneratedNameForNode); + if (serializedTypes) { + if (writeComma || argumentsWritten) { + write(", "); + } + writeLine(); + write("__metadata('design:paramtypes', ["); + for (var i = 0; i < serializedTypes.length; ++i) { + if (i > 0) { + write(", "); + } + emitSerializedType(node, serializedTypes[i]); + } + write("])"); + argumentsWritten++; + } + } + if (shouldEmitReturnTypeMetadata(node)) { + var serializedType = resolver.serializeReturnTypeOfNode(node, getGeneratedNameForNode); + if (serializedType) { + if (writeComma || argumentsWritten) { + write(", "); + } + writeLine(); + write("__metadata('design:returntype', "); + emitSerializedType(node, serializedType); + write(")"); + argumentsWritten++; + } + } + } + return argumentsWritten; + } + function serializeTypeNameSegment(location, path, index) { + switch (index) { + case 0: + return "typeof " + path[index] + " !== 'undefined' && " + path[index]; + case 1: + return serializeTypeNameSegment(location, path, index - 1) + "." + path[index]; + default: + var temp = createAndRecordTempVariable(0 /* Auto */).text; + return "(" + temp + " = " + serializeTypeNameSegment(location, path, index - 1) + ") && " + temp + "." + path[index]; + } + } + function emitSerializedType(location, name) { + if (typeof name === "string") { + write(name); + return; + } + else { + ts.Debug.assert(name.length > 0, "Invalid serialized type name"); + write("(" + serializeTypeNameSegment(location, name, name.length - 1) + ") || Object"); + } } function emitInterfaceDeclaration(node) { emitOnlyPinnedOrTripleSlashComments(node); @@ -23247,10 +27303,11 @@ var ts; return !isConstEnum || compilerOptions.preserveConstEnums || compilerOptions.separateCompilation; } function emitEnumDeclaration(node) { + // const enums are completely erased during compilation. if (!shouldEmitEnumDeclaration(node)) { return; } - if (!(node.flags & 1) || isES6ExportedDeclaration(node)) { + if (!(node.flags & 1 /* Export */) || isES6ExportedDeclaration(node)) { emitStart(node); if (isES6ExportedDeclaration(node)) { write("export "); @@ -23272,7 +27329,7 @@ var ts; emitLines(node.members); decreaseIndent(); writeLine(); - emitToken(15, node.members.end); + emitToken(15 /* CloseBraceToken */, node.members.end); scopeEmitEnd(); write(")("); emitModuleMemberName(node); @@ -23280,7 +27337,7 @@ var ts; emitModuleMemberName(node); write(" = {}));"); emitEnd(node); - if (!isES6ExportedDeclaration(node) && node.flags & 1) { + if (!isES6ExportedDeclaration(node) && node.flags & 1 /* Export */) { writeLine(); emitStart(node); write("var "); @@ -23290,7 +27347,7 @@ var ts; emitEnd(node); write(";"); } - if (languageVersion < 2 && node.parent === currentSourceFile) { + if (languageVersion < 2 /* ES6 */ && node.parent === currentSourceFile) { emitExportMemberAssignments(node.name); } } @@ -23323,7 +27380,7 @@ var ts; } } function getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration) { - if (moduleDeclaration.body.kind === 205) { + if (moduleDeclaration.body.kind === 205 /* ModuleDeclaration */) { var recursiveInnerModule = getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration.body); return recursiveInnerModule || moduleDeclaration.body; } @@ -23332,6 +27389,7 @@ var ts; return ts.isInstantiatedModule(node, compilerOptions.preserveConstEnums || compilerOptions.separateCompilation); } function emitModuleDeclaration(node) { + // Emit only if this module is non-ambient. var shouldEmit = shouldEmitModuleDeclaration(node); if (!shouldEmit) { return emitOnlyPinnedOrTripleSlashComments(node); @@ -23351,7 +27409,7 @@ var ts; write(getGeneratedNameForNode(node)); emitEnd(node.name); write(") "); - if (node.body.kind === 206) { + if (node.body.kind === 206 /* ModuleBlock */) { var saveTempFlags = tempFlags; var saveTempVariables = tempVariables; tempFlags = 0; @@ -23370,11 +27428,12 @@ var ts; decreaseIndent(); writeLine(); var moduleBlock = getInnerMostModuleDeclarationFromDottedModule(node).body; - emitToken(15, moduleBlock.statements.end); + emitToken(15 /* CloseBraceToken */, moduleBlock.statements.end); scopeEmitEnd(); } write(")("); - if ((node.flags & 1) && !isES6ExportedDeclaration(node)) { + // write moduleDecl = containingModule.m only if it is not exported es6 module member + if ((node.flags & 1 /* Export */) && !isES6ExportedDeclaration(node)) { emit(node.name); write(" = "); } @@ -23383,33 +27442,33 @@ var ts; emitModuleMemberName(node); write(" = {}));"); emitEnd(node); - if (!isES6ExportedDeclaration(node) && node.name.kind === 65 && node.parent === currentSourceFile) { + if (!isES6ExportedDeclaration(node) && node.name.kind === 65 /* Identifier */ && node.parent === currentSourceFile) { emitExportMemberAssignments(node.name); } } function emitRequire(moduleName) { - if (moduleName.kind === 8) { + if (moduleName.kind === 8 /* StringLiteral */) { write("require("); emitStart(moduleName); emitLiteral(moduleName); emitEnd(moduleName); - emitToken(17, moduleName.end); + emitToken(17 /* CloseParenToken */, moduleName.end); } else { write("require()"); } } function getNamespaceDeclarationNode(node) { - if (node.kind === 208) { + if (node.kind === 208 /* ImportEqualsDeclaration */) { return node; } var importClause = node.importClause; - if (importClause && importClause.namedBindings && importClause.namedBindings.kind === 211) { + if (importClause && importClause.namedBindings && importClause.namedBindings.kind === 211 /* NamespaceImport */) { return importClause.namedBindings; } } function isDefaultImport(node) { - return node.kind === 209 && node.importClause && !!node.importClause.name; + return node.kind === 209 /* ImportDeclaration */ && node.importClause && !!node.importClause.name; } function emitExportImportAssignments(node) { if (ts.isAliasSymbolDeclaration(node) && resolver.isValueAliasDeclaration(node)) { @@ -23418,9 +27477,10 @@ var ts; ts.forEachChild(node, emitExportImportAssignments); } function emitImportDeclaration(node) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { return emitExternalImportDeclaration(node); } + // ES6 import if (node.importClause) { var shouldEmitDefaultBindings = resolver.isReferencedAliasDeclaration(node.importClause); var shouldEmitNamedBindings = node.importClause.namedBindings && resolver.isReferencedAliasDeclaration(node.importClause.namedBindings, true); @@ -23436,7 +27496,7 @@ var ts; if (shouldEmitNamedBindings) { emitLeadingComments(node.importClause.namedBindings); emitStart(node.importClause.namedBindings); - if (node.importClause.namedBindings.kind === 211) { + if (node.importClause.namedBindings.kind === 211 /* NamespaceImport */) { write("* as "); emit(node.importClause.namedBindings.name); } @@ -23462,19 +27522,26 @@ var ts; } function emitExternalImportDeclaration(node) { if (ts.contains(externalImports, node)) { - var isExportedImport = node.kind === 208 && (node.flags & 1) !== 0; + var isExportedImport = node.kind === 208 /* ImportEqualsDeclaration */ && (node.flags & 1 /* Export */) !== 0; var namespaceDeclaration = getNamespaceDeclarationNode(node); - if (compilerOptions.module !== 2) { + if (compilerOptions.module !== 2 /* AMD */) { emitLeadingComments(node); emitStart(node); if (namespaceDeclaration && !isDefaultImport(node)) { + // import x = require("foo") + // import * as x from "foo" if (!isExportedImport) write("var "); emitModuleMemberName(namespaceDeclaration); write(" = "); } else { - var isNakedImport = 209 && !node.importClause; + // import "foo" + // import x from "foo" + // import { x, y } from "foo" + // import d, * as x from "foo" + // import d, { x, y } from "foo" + var isNakedImport = 209 /* ImportDeclaration */ && !node.importClause; if (!isNakedImport) { write("var "); write(getGeneratedNameForNode(node)); @@ -23483,6 +27550,7 @@ var ts; } emitRequire(ts.getExternalModuleName(node)); if (namespaceDeclaration && isDefaultImport(node)) { + // import d, * as x from "foo" write(", "); emitModuleMemberName(namespaceDeclaration); write(" = "); @@ -23501,6 +27569,7 @@ var ts; write(";"); } else if (namespaceDeclaration && isDefaultImport(node)) { + // import d, * as x from "foo" write("var "); emitModuleMemberName(namespaceDeclaration); write(" = "); @@ -23516,6 +27585,9 @@ var ts; emitExternalImportDeclaration(node); return; } + // preserve old compiler's behavior: emit 'var' for import declaration (even if we do not consider them referenced) when + // - current file is not external module + // - import declaration is top level and target is value imported by entity name if (resolver.isReferencedAliasDeclaration(node) || (!ts.isExternalModule(currentSourceFile) && resolver.isTopLevelValueImportEqualsWithEntityName(node))) { emitLeadingComments(node); @@ -23524,7 +27596,7 @@ var ts; write("export "); write("var "); } - else if (!(node.flags & 1)) { + else if (!(node.flags & 1 /* Export */)) { write("var "); } emitModuleMemberName(node); @@ -23537,12 +27609,13 @@ var ts; } } function emitExportDeclaration(node) { - if (languageVersion < 2) { + if (languageVersion < 2 /* ES6 */) { if (node.moduleSpecifier && (!node.exportClause || resolver.isValueAliasDeclaration(node))) { emitStart(node); var generatedName = getGeneratedNameForNode(node); if (node.exportClause) { - if (compilerOptions.module !== 2) { + // export { x, y, ... } from "foo" + if (compilerOptions.module !== 2 /* AMD */) { write("var "); write(generatedName); write(" = "); @@ -23567,9 +27640,10 @@ var ts; } } else { + // export * from "foo" writeLine(); write("__export("); - if (compilerOptions.module !== 2) { + if (compilerOptions.module !== 2 /* AMD */) { emitRequire(ts.getExternalModuleName(node)); } else { @@ -23585,6 +27659,7 @@ var ts; emitStart(node); write("export "); if (node.exportClause) { + // export { x, y, ... } write("{ "); emitExportOrImportSpecifierList(node.exportClause.elements, resolver.isValueAliasDeclaration); write(" }"); @@ -23602,7 +27677,7 @@ var ts; } } function emitExportOrImportSpecifierList(specifiers, shouldEmit) { - ts.Debug.assert(languageVersion >= 2); + ts.Debug.assert(languageVersion >= 2 /* ES6 */); var needsComma = false; for (var _a = 0; _a < specifiers.length; _a++) { var specifier = specifiers[_a]; @@ -23623,14 +27698,14 @@ var ts; } function emitExportAssignment(node) { if (!node.isExportEquals && resolver.isValueAliasDeclaration(node)) { - if (languageVersion >= 2) { + if (languageVersion >= 2 /* ES6 */) { writeLine(); emitStart(node); write("export default "); var expression = node.expression; emit(expression); - if (expression.kind !== 200 && - expression.kind !== 201) { + if (expression.kind !== 200 /* FunctionDeclaration */ && + expression.kind !== 201 /* ClassDeclaration */) { write(";"); } emitEnd(node); @@ -23654,37 +27729,46 @@ var ts; for (var _a = 0, _b = sourceFile.statements; _a < _b.length; _a++) { var node = _b[_a]; switch (node.kind) { - case 209: + case 209 /* ImportDeclaration */: if (!node.importClause || resolver.isReferencedAliasDeclaration(node.importClause, true)) { + // import "mod" + // import x from "mod" where x is referenced + // import * as x from "mod" where x is referenced + // import { x, y } from "mod" where at least one import is referenced externalImports.push(node); } break; - case 208: - if (node.moduleReference.kind === 219 && resolver.isReferencedAliasDeclaration(node)) { + case 208 /* ImportEqualsDeclaration */: + if (node.moduleReference.kind === 219 /* ExternalModuleReference */ && resolver.isReferencedAliasDeclaration(node)) { + // import x = require("mod") where x is referenced externalImports.push(node); } break; - case 215: + case 215 /* ExportDeclaration */: if (node.moduleSpecifier) { if (!node.exportClause) { + // export * from "mod" externalImports.push(node); hasExportStars = true; } else if (resolver.isValueAliasDeclaration(node)) { + // export { x, y } from "mod" where at least one export is a value symbol externalImports.push(node); } } else { + // export { x, y } for (var _c = 0, _d = node.exportClause.elements; _c < _d.length; _c++) { var specifier = _d[_c]; - var name_17 = (specifier.propertyName || specifier.name).text; - (exportSpecifiers[name_17] || (exportSpecifiers[name_17] = [])).push(specifier); + var name_18 = (specifier.propertyName || specifier.name).text; + (exportSpecifiers[name_18] || (exportSpecifiers[name_18] = [])).push(specifier); } } break; - case 214: + case 214 /* ExportAssignment */: if (node.isExportEquals && !exportEquals) { + // export = x exportEquals = node; } break; @@ -23692,6 +27776,7 @@ var ts; } } function sortAMDModules(amdModules) { + // AMD modules with declared variable names go first return amdModules.sort(function (moduleA, moduleB) { if (moduleA.name === moduleB.name) { return 0; @@ -23729,7 +27814,7 @@ var ts; var importNode = externalImports[_a]; write(", "); var moduleName = ts.getExternalModuleName(importNode); - if (moduleName.kind === 8) { + if (moduleName.kind === 8 /* StringLiteral */) { emitLiteral(moduleName); } else { @@ -23788,6 +27873,8 @@ var ts; emitCaptureThisForNodeIfNecessary(node); emitLinesStartingAt(node.statements, startIndex); emitTempDeclarations(true); + // Emit exportDefault if it exists will happen as part + // or normal statement emit. } function emitExportEquals(emitAsReturn) { if (exportEquals && resolver.isValueAliasDeclaration(exportEquals)) { @@ -23808,12 +27895,13 @@ var ts; emit(statements[i]); } else { + // return index of the first non prologue directive return i; } } return statements.length; } - function writeHelper(text) { + function writeLines(text) { var lines = text.split(/\r\n|\r|\n/g); for (var i = 0; i < lines.length; ++i) { var line = lines[i]; @@ -23824,35 +27912,33 @@ var ts; } } function emitSourceFileNode(node) { + // Start new file on new line writeLine(); emitDetachedComments(node); + // emit prologue directives prior to __extends var startIndex = emitDirectivePrologues(node.statements, false); - if ((languageVersion < 2) && (!extendsEmitted && resolver.getNodeCheckFlags(node) & 8)) { - writeLine(); - write("var __extends = this.__extends || function (d, b) {"); - increaseIndent(); - writeLine(); - write("for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];"); - writeLine(); - write("function __() { this.constructor = d; }"); - writeLine(); - write("__.prototype = b.prototype;"); - writeLine(); - write("d.prototype = new __();"); - decreaseIndent(); - writeLine(); - write("};"); + // Only Emit __extends function when target ES5. + // For target ES6 and above, we can emit classDeclaration as is. + if ((languageVersion < 2 /* ES6 */) && (!extendsEmitted && resolver.getNodeCheckFlags(node) & 8 /* EmitExtends */)) { + writeLines(extendsHelper); extendsEmitted = true; } - if (!decorateEmitted && resolver.getNodeCheckFlags(node) & 512) { - writeHelper("\nvar __decorate = this.__decorate || function (decorators, target, key, value) {\n var kind = typeof (arguments.length == 2 ? value = target : value);\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n switch (kind) {\n case \"function\": value = decorator(value) || value; break;\n case \"number\": decorator(target, key, value); break;\n case \"undefined\": decorator(target, key); break;\n case \"object\": value = decorator(target, key, value) || value; break;\n }\n }\n return value;\n};"); + if (!decorateEmitted && resolver.getNodeCheckFlags(node) & 512 /* EmitDecorate */) { + writeLines(decorateHelper); + if (compilerOptions.emitDecoratorMetadata) { + writeLines(metadataHelper); + } decorateEmitted = true; } + if (!paramEmitted && resolver.getNodeCheckFlags(node) & 1024 /* EmitParam */) { + writeLines(paramHelper); + paramEmitted = true; + } if (ts.isExternalModule(node)) { - if (languageVersion >= 2) { + if (languageVersion >= 2 /* ES6 */) { emitES6Module(node, startIndex); } - else if (compilerOptions.module === 2) { + else if (compilerOptions.module === 2 /* AMD */) { emitAMDModule(node, startIndex); } else { @@ -23874,7 +27960,7 @@ var ts; if (!node) { return; } - if (node.flags & 2) { + if (node.flags & 2 /* Ambient */) { return emitOnlyPinnedOrTripleSlashComments(node); } var emitComments = shouldEmitLeadingAndTrailingComments(node); @@ -23888,181 +27974,193 @@ var ts; } function shouldEmitLeadingAndTrailingComments(node) { switch (node.kind) { - case 202: - case 200: - case 209: - case 208: - case 203: - case 214: + // All of these entities are emitted in a specialized fashion. As such, we allow + // the specialized methods for each to handle the comments on the nodes. + case 202 /* InterfaceDeclaration */: + case 200 /* FunctionDeclaration */: + case 209 /* ImportDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 214 /* ExportAssignment */: return false; - case 205: + case 205 /* ModuleDeclaration */: + // Only emit the leading/trailing comments for a module if we're actually + // emitting the module as well. return shouldEmitModuleDeclaration(node); - case 204: + case 204 /* EnumDeclaration */: + // Only emit the leading/trailing comments for an enum if we're actually + // emitting the module as well. return shouldEmitEnumDeclaration(node); } - if (node.kind !== 179 && + // If this is the expression body of an arrow function that we're down-leveling, + // then we don't want to emit comments when we emit the body. It will have already + // been taken care of when we emitted the 'return' statement for the function + // expression body. + if (node.kind !== 179 /* Block */ && node.parent && - node.parent.kind === 163 && + node.parent.kind === 163 /* ArrowFunction */ && node.parent.body === node && - compilerOptions.target <= 1) { + compilerOptions.target <= 1 /* ES5 */) { return false; } + // Emit comments for everything else. return true; } function emitJavaScriptWorker(node, allowGeneratedIdentifiers) { if (allowGeneratedIdentifiers === void 0) { allowGeneratedIdentifiers = true; } + // Check if the node can be emitted regardless of the ScriptTarget switch (node.kind) { - case 65: + case 65 /* Identifier */: return emitIdentifier(node, allowGeneratedIdentifiers); - case 129: + case 129 /* Parameter */: return emitParameter(node); - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return emitMethod(node); - case 136: - case 137: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: return emitAccessor(node); - case 93: + case 93 /* ThisKeyword */: return emitThis(node); - case 91: + case 91 /* SuperKeyword */: return emitSuper(node); - case 89: + case 89 /* NullKeyword */: return write("null"); - case 95: + case 95 /* TrueKeyword */: return write("true"); - case 80: + case 80 /* FalseKeyword */: return write("false"); - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: + case 7 /* NumericLiteral */: + case 8 /* StringLiteral */: + case 9 /* RegularExpressionLiteral */: + case 10 /* NoSubstitutionTemplateLiteral */: + case 11 /* TemplateHead */: + case 12 /* TemplateMiddle */: + case 13 /* TemplateTail */: return emitLiteral(node); - case 171: + case 171 /* TemplateExpression */: return emitTemplateExpression(node); - case 176: + case 176 /* TemplateSpan */: return emitTemplateSpan(node); - case 126: + case 126 /* QualifiedName */: return emitQualifiedName(node); - case 150: + case 150 /* ObjectBindingPattern */: return emitObjectBindingPattern(node); - case 151: + case 151 /* ArrayBindingPattern */: return emitArrayBindingPattern(node); - case 152: + case 152 /* BindingElement */: return emitBindingElement(node); - case 153: + case 153 /* ArrayLiteralExpression */: return emitArrayLiteral(node); - case 154: + case 154 /* ObjectLiteralExpression */: return emitObjectLiteral(node); - case 224: + case 224 /* PropertyAssignment */: return emitPropertyAssignment(node); - case 225: + case 225 /* ShorthandPropertyAssignment */: return emitShorthandPropertyAssignment(node); - case 127: + case 127 /* ComputedPropertyName */: return emitComputedPropertyName(node); - case 155: + case 155 /* PropertyAccessExpression */: return emitPropertyAccess(node); - case 156: + case 156 /* ElementAccessExpression */: return emitIndexedAccess(node); - case 157: + case 157 /* CallExpression */: return emitCallExpression(node); - case 158: + case 158 /* NewExpression */: return emitNewExpression(node); - case 159: + case 159 /* TaggedTemplateExpression */: return emitTaggedTemplateExpression(node); - case 160: + case 160 /* TypeAssertionExpression */: return emit(node.expression); - case 161: + case 161 /* ParenthesizedExpression */: return emitParenExpression(node); - case 200: - case 162: - case 163: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: return emitFunctionDeclaration(node); - case 164: + case 164 /* DeleteExpression */: return emitDeleteExpression(node); - case 165: + case 165 /* TypeOfExpression */: return emitTypeOfExpression(node); - case 166: + case 166 /* VoidExpression */: return emitVoidExpression(node); - case 167: + case 167 /* PrefixUnaryExpression */: return emitPrefixUnaryExpression(node); - case 168: + case 168 /* PostfixUnaryExpression */: return emitPostfixUnaryExpression(node); - case 169: + case 169 /* BinaryExpression */: return emitBinaryExpression(node); - case 170: + case 170 /* ConditionalExpression */: return emitConditionalExpression(node); - case 173: + case 173 /* SpreadElementExpression */: return emitSpreadElementExpression(node); - case 175: + case 175 /* OmittedExpression */: return; - case 179: - case 206: + case 179 /* Block */: + case 206 /* ModuleBlock */: return emitBlock(node); - case 180: + case 180 /* VariableStatement */: return emitVariableStatement(node); - case 181: + case 181 /* EmptyStatement */: return write(";"); - case 182: + case 182 /* ExpressionStatement */: return emitExpressionStatement(node); - case 183: + case 183 /* IfStatement */: return emitIfStatement(node); - case 184: + case 184 /* DoStatement */: return emitDoStatement(node); - case 185: + case 185 /* WhileStatement */: return emitWhileStatement(node); - case 186: + case 186 /* ForStatement */: return emitForStatement(node); - case 188: - case 187: + case 188 /* ForOfStatement */: + case 187 /* ForInStatement */: return emitForInOrForOfStatement(node); - case 189: - case 190: + case 189 /* ContinueStatement */: + case 190 /* BreakStatement */: return emitBreakOrContinueStatement(node); - case 191: + case 191 /* ReturnStatement */: return emitReturnStatement(node); - case 192: + case 192 /* WithStatement */: return emitWithStatement(node); - case 193: + case 193 /* SwitchStatement */: return emitSwitchStatement(node); - case 220: - case 221: + case 220 /* CaseClause */: + case 221 /* DefaultClause */: return emitCaseOrDefaultClause(node); - case 194: + case 194 /* LabeledStatement */: return emitLabelledStatement(node); - case 195: + case 195 /* ThrowStatement */: return emitThrowStatement(node); - case 196: + case 196 /* TryStatement */: return emitTryStatement(node); - case 223: + case 223 /* CatchClause */: return emitCatchClause(node); - case 197: + case 197 /* DebuggerStatement */: return emitDebuggerStatement(node); - case 198: + case 198 /* VariableDeclaration */: return emitVariableDeclaration(node); - case 174: + case 174 /* ClassExpression */: return emitClassExpression(node); - case 201: + case 201 /* ClassDeclaration */: return emitClassDeclaration(node); - case 202: + case 202 /* InterfaceDeclaration */: return emitInterfaceDeclaration(node); - case 204: + case 204 /* EnumDeclaration */: return emitEnumDeclaration(node); - case 226: + case 226 /* EnumMember */: return emitEnumMember(node); - case 205: + case 205 /* ModuleDeclaration */: return emitModuleDeclaration(node); - case 209: + case 209 /* ImportDeclaration */: return emitImportDeclaration(node); - case 208: + case 208 /* ImportEqualsDeclaration */: return emitImportEqualsDeclaration(node); - case 215: + case 215 /* ExportDeclaration */: return emitExportDeclaration(node); - case 214: + case 214 /* ExportAssignment */: return emitExportAssignment(node); - case 227: + case 227 /* SourceFile */: return emitSourceFileNode(node); } } @@ -24070,6 +28168,7 @@ var ts; return detachedCommentsInfo !== undefined && detachedCommentsInfo[detachedCommentsInfo.length - 1].nodePos === pos; } function getLeadingCommentsWithoutDetachedComments() { + // get the leading comments from detachedPos var leadingComments = ts.getLeadingCommentRanges(currentSourceFile.text, detachedCommentsInfo[detachedCommentsInfo.length - 1].detachedCommentEndPos); if (detachedCommentsInfo.length - 1) { detachedCommentsInfo.pop(); @@ -24080,6 +28179,8 @@ var ts; return leadingComments; } function filterComments(ranges, onlyPinnedOrTripleSlashComments) { + // If we're removing comments, then we want to strip out all but the pinned or + // triple slash comments. if (ranges && onlyPinnedOrTripleSlashComments) { ranges = ts.filter(ranges, isPinnedOrTripleSlashComment); if (ranges.length === 0) { @@ -24089,20 +28190,24 @@ var ts; return ranges; } function getLeadingCommentsToEmit(node) { + // Emit the leading comments only if the parent's pos doesn't match because parent should take care of emitting these comments if (node.parent) { - if (node.parent.kind === 227 || node.pos !== node.parent.pos) { + if (node.parent.kind === 227 /* SourceFile */ || node.pos !== node.parent.pos) { if (hasDetachedComments(node.pos)) { + // get comments without detached comments return getLeadingCommentsWithoutDetachedComments(); } else { + // get the leading comments from the node return ts.getLeadingCommentRangesOfNode(node, currentSourceFile); } } } } function getTrailingCommentsToEmit(node) { + // Emit the trailing comments only if the parent's pos doesn't match because parent should take care of emitting these comments if (node.parent) { - if (node.parent.kind === 227 || node.end !== node.parent.end) { + if (node.parent.kind === 227 /* SourceFile */ || node.end !== node.parent.end) { return ts.getTrailingCommentRanges(currentSourceFile.text, node.end); } } @@ -24114,24 +28219,32 @@ var ts; return emitLeadingCommentsWorker(node, compilerOptions.removeComments); } function emitLeadingCommentsWorker(node, onlyPinnedOrTripleSlashComments) { + // If the caller only wants pinned or triple slash comments, then always filter + // down to that set. Otherwise, filter based on the current compiler options. var leadingComments = filterComments(getLeadingCommentsToEmit(node), onlyPinnedOrTripleSlashComments); ts.emitNewLineBeforeLeadingComments(currentSourceFile, writer, node, leadingComments); + // Leading comments are emitted at /*leading comment1 */space/*leading comment*/space ts.emitComments(currentSourceFile, writer, leadingComments, true, newLine, writeComment); } function emitTrailingComments(node) { + // Emit the trailing comments only if the parent's end doesn't match var trailingComments = filterComments(getTrailingCommentsToEmit(node), compilerOptions.removeComments); + // trailing comments are emitted at space/*trailing comment1 */space/*trailing comment*/ ts.emitComments(currentSourceFile, writer, trailingComments, false, newLine, writeComment); } function emitLeadingCommentsOfPosition(pos) { var leadingComments; if (hasDetachedComments(pos)) { + // get comments without detached comments leadingComments = getLeadingCommentsWithoutDetachedComments(); } else { + // get the leading comments from the node leadingComments = ts.getLeadingCommentRanges(currentSourceFile.text, pos); } leadingComments = filterComments(leadingComments, compilerOptions.removeComments); ts.emitNewLineBeforeLeadingComments(currentSourceFile, writer, { pos: pos, end: pos }, leadingComments); + // Leading comments are emitted at /*leading comment1 */space/*leading comment*/space ts.emitComments(currentSourceFile, writer, leadingComments, true, newLine, writeComment); } function emitDetachedComments(node) { @@ -24144,6 +28257,9 @@ var ts; var lastCommentLine = ts.getLineOfLocalPosition(currentSourceFile, lastComment.end); var commentLine = ts.getLineOfLocalPosition(currentSourceFile, comment.pos); if (commentLine >= lastCommentLine + 2) { + // There was a blank line between the last comment and this comment. This + // comment is not part of the copyright comments. Return what we have so + // far. return detachedComments; } } @@ -24151,9 +28267,13 @@ var ts; lastComment = comment; }); if (detachedComments.length) { + // All comments look like they could have been part of the copyright header. Make + // sure there is at least one blank line between it and the node. If not, it's not + // a copyright header. var lastCommentLine = ts.getLineOfLocalPosition(currentSourceFile, detachedComments[detachedComments.length - 1].end); var nodeLine = ts.getLineOfLocalPosition(currentSourceFile, ts.skipTrivia(currentSourceFile.text, node.pos)); if (nodeLine >= lastCommentLine + 2) { + // Valid detachedComments ts.emitNewLineBeforeLeadingComments(currentSourceFile, writer, node, leadingComments); ts.emitComments(currentSourceFile, writer, detachedComments, true, newLine, writeComment); var currentDetachedCommentInfo = { nodePos: node.pos, detachedCommentEndPos: detachedComments[detachedComments.length - 1].end }; @@ -24168,12 +28288,12 @@ var ts; } } function isPinnedOrTripleSlashComment(comment) { - if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 42) { - return currentSourceFile.text.charCodeAt(comment.pos + 2) === 33; + if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 42 /* asterisk */) { + return currentSourceFile.text.charCodeAt(comment.pos + 2) === 33 /* exclamation */; } - else if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 47 && + else if (currentSourceFile.text.charCodeAt(comment.pos + 1) === 47 /* slash */ && comment.pos + 2 < comment.end && - currentSourceFile.text.charCodeAt(comment.pos + 2) === 47 && + currentSourceFile.text.charCodeAt(comment.pos + 2) === 47 /* slash */ && currentSourceFile.text.substring(comment.pos, comment.end).match(ts.fullTripleSlashReferencePathRegEx)) { return true; } @@ -24192,10 +28312,11 @@ var ts; /// var ts; (function (ts) { - ts.programTime = 0; - ts.emitTime = 0; - ts.ioReadTime = 0; - ts.ioWriteTime = 0; + /* @internal */ ts.programTime = 0; + /* @internal */ ts.emitTime = 0; + /* @internal */ ts.ioReadTime = 0; + /* @internal */ ts.ioWriteTime = 0; + /** The version of the TypeScript compiler release */ ts.version = "1.5.0"; function findConfigFile(searchPath) { var fileName = "tsconfig.json"; @@ -24217,8 +28338,11 @@ var ts; var currentDirectory; var existingDirectories = {}; function getCanonicalFileName(fileName) { + // if underlying system can distinguish between two files whose names differs only in cases then file name already in canonical form. + // otherwise use toLowerCase as a canonical form. return ts.sys.useCaseSensitiveFileNames ? fileName : fileName.toLowerCase(); } + // returned by CScript sys environment var unsupportedFileEncodingErrorCode = -2147024809; function getSourceFile(fileName, languageVersion, onError) { var text; @@ -24364,9 +28488,14 @@ var ts; return noDiagnosticsTypeChecker || (noDiagnosticsTypeChecker = ts.createTypeChecker(program, false)); } function emit(sourceFile, writeFileCallback) { + // If the noEmitOnError flag is set, then check if we have any errors so far. If so, + // immediately bail out. if (options.noEmitOnError && getPreEmitDiagnostics(this).length > 0) { return { diagnostics: [], sourceMaps: undefined, emitSkipped: true }; } + // Create the emit resolver outside of the "emitTime" tracking code below. That way + // any cost associated with it (like type checking) are appropriate associated with + // the type-checking counter. var emitResolver = getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile); var start = new Date().getTime(); var emitResult = ts.emitFiles(emitResolver, getEmitHost(writeFileCallback), sourceFile); @@ -24410,6 +28539,7 @@ var ts; function getDeclarationDiagnosticsForFile(sourceFile) { if (!ts.isDeclarationFile(sourceFile)) { var resolver = getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile); + // Don't actually write any files since we're just getting diagnostics. var writeFile = function () { }; return ts.getDeclarationDiagnostics(getEmitHost(writeFile), resolver, sourceFile); } @@ -24464,9 +28594,11 @@ var ts; } } } + // Get source file from normalized fileName function findSourceFile(fileName, isDefaultLib, refFile, refStart, refLength) { var canonicalName = host.getCanonicalFileName(fileName); if (ts.hasProperty(filesByName, canonicalName)) { + // We've already looked for this file, use cached result return getSourceFileFromCache(fileName, canonicalName, false); } else { @@ -24475,6 +28607,7 @@ var ts; if (ts.hasProperty(filesByName, canonicalAbsolutePath)) { return getSourceFileFromCache(normalizedAbsolutePath, canonicalAbsolutePath, true); } + // We haven't looked for this file, do so now and cache result var file = filesByName[canonicalName] = host.getSourceFile(fileName, options.target, function (hostErrorMessage) { if (refFile) { diagnostics.add(ts.createFileDiagnostic(refFile, refStart, refLength, ts.Diagnostics.Cannot_read_file_0_Colon_1, fileName, hostErrorMessage)); @@ -24485,6 +28618,7 @@ var ts; }); if (file) { seenNoDefaultLib = seenNoDefaultLib || file.hasNoDefaultLib; + // Set the source file for normalized absolute path filesByName[canonicalAbsolutePath] = file; if (!options.noResolve) { var basePath = ts.getDirectoryPath(fileName); @@ -24519,9 +28653,9 @@ var ts; } function processImportedModules(file, basePath) { ts.forEach(file.statements, function (node) { - if (node.kind === 209 || node.kind === 208 || node.kind === 215) { + if (node.kind === 209 /* ImportDeclaration */ || node.kind === 208 /* ImportEqualsDeclaration */ || node.kind === 215 /* ExportDeclaration */) { var moduleNameExpr = ts.getExternalModuleName(node); - if (moduleNameExpr && moduleNameExpr.kind === 8) { + if (moduleNameExpr && moduleNameExpr.kind === 8 /* StringLiteral */) { var moduleNameText = moduleNameExpr.text; if (moduleNameText) { var searchPath = basePath; @@ -24539,13 +28673,21 @@ var ts; } } } - else if (node.kind === 205 && node.name.kind === 8 && (node.flags & 2 || ts.isDeclarationFile(file))) { + else if (node.kind === 205 /* ModuleDeclaration */ && node.name.kind === 8 /* StringLiteral */ && (node.flags & 2 /* Ambient */ || ts.isDeclarationFile(file))) { + // TypeScript 1.0 spec (April 2014): 12.1.6 + // An AmbientExternalModuleDeclaration declares an external module. + // This type of declaration is permitted only in the global module. + // The StringLiteral must specify a top - level external module name. + // Relative external module names are not permitted ts.forEachChild(node.body, function (node) { if (ts.isExternalModuleImportEqualsDeclaration(node) && - ts.getExternalModuleImportEqualsDeclarationExpression(node).kind === 8) { + ts.getExternalModuleImportEqualsDeclarationExpression(node).kind === 8 /* StringLiteral */) { var nameLiteral = ts.getExternalModuleImportEqualsDeclarationExpression(node); var moduleName = nameLiteral.text; if (moduleName) { + // TypeScript 1.0 spec (April 2014): 12.1.6 + // An ExternalImportDeclaration in anAmbientExternalModuleDeclaration may reference other external modules + // only through top - level external module names. Relative external module names are not permitted. var searchName = ts.normalizePath(ts.combinePaths(basePath, moduleName)); var tsFile = findModuleSourceFile(searchName + ".ts", nameLiteral); if (!tsFile) { @@ -24576,6 +28718,7 @@ var ts; } } if (!options.sourceMap && (options.mapRoot || options.sourceRoot)) { + // Error to specify --mapRoot or --sourceRoot without mapSourceFiles if (options.mapRoot) { diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_mapRoot_cannot_be_specified_without_specifying_sourcemap_option)); } @@ -24584,10 +28727,10 @@ var ts; } return; } - var languageVersion = options.target || 0; + var languageVersion = options.target || 0 /* ES3 */; var firstExternalModuleSourceFile = ts.forEach(files, function (f) { return ts.isExternalModule(f) ? f : undefined; }); if (options.separateCompilation) { - if (!options.module && languageVersion < 2) { + if (!options.module && languageVersion < 2 /* ES6 */) { diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_separateCompilation_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES6_or_higher)); } var firstNonExternalModuleSourceFile = ts.forEach(files, function (f) { return !ts.isExternalModule(f) && !ts.isDeclarationFile(f) ? f : undefined; }); @@ -24596,23 +28739,28 @@ var ts; diagnostics.add(ts.createFileDiagnostic(firstNonExternalModuleSourceFile, span.start, span.length, ts.Diagnostics.Cannot_compile_non_external_modules_when_the_separateCompilation_flag_is_provided)); } } - else if (firstExternalModuleSourceFile && languageVersion < 2 && !options.module) { + else if (firstExternalModuleSourceFile && languageVersion < 2 /* ES6 */ && !options.module) { + // We cannot use createDiagnosticFromNode because nodes do not have parents yet var span = ts.getErrorSpanForNode(firstExternalModuleSourceFile, firstExternalModuleSourceFile.externalModuleIndicator); diagnostics.add(ts.createFileDiagnostic(firstExternalModuleSourceFile, span.start, span.length, ts.Diagnostics.Cannot_compile_external_modules_unless_the_module_flag_is_provided)); } - if (options.module && languageVersion >= 2) { + // Cannot specify module gen target when in es6 or above + if (options.module && languageVersion >= 2 /* ES6 */) { diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Cannot_compile_external_modules_into_amd_or_commonjs_when_targeting_es6_or_higher)); } + // there has to be common source directory if user specified --outdir || --sourceRoot + // if user specified --mapRoot, there needs to be common source directory if there would be multiple files being emitted if (options.outDir || options.sourceRoot || (options.mapRoot && (!options.out || firstExternalModuleSourceFile !== undefined))) { var commonPathComponents; ts.forEach(files, function (sourceFile) { - if (!(sourceFile.flags & 2048) + // Each file contributes into common source file path + if (!(sourceFile.flags & 2048 /* DeclarationFile */) && !ts.fileExtensionIs(sourceFile.fileName, ".js")) { var sourcePathComponents = ts.getNormalizedPathComponents(sourceFile.fileName, host.getCurrentDirectory()); - sourcePathComponents.pop(); + sourcePathComponents.pop(); // FileName is not part of directory if (commonPathComponents) { for (var i = 0; i < Math.min(commonPathComponents.length, sourcePathComponents.length); i++) { if (commonPathComponents[i] !== sourcePathComponents[i]) { @@ -24620,21 +28768,27 @@ var ts; diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files)); return; } + // New common path found that is 0 -> i-1 commonPathComponents.length = i; break; } } + // If the fileComponent path completely matched and less than already found update the length if (sourcePathComponents.length < commonPathComponents.length) { commonPathComponents.length = sourcePathComponents.length; } } else { + // first file commonPathComponents = sourcePathComponents; } } }); commonSourceDirectory = ts.getNormalizedPathFromPathComponents(commonPathComponents); if (commonSourceDirectory) { + // Make sure directory path ends with directory separator so this string can directly + // used to replace with "" to get the relative path of the source file and the relative path doesn't + // start with / making it rooted path commonSourceDirectory += ts.directorySeparator; } } @@ -24656,6 +28810,7 @@ var ts; /// var ts; (function (ts) { + /* @internal */ ts.optionDeclarations = [ { name: "charset", @@ -24700,8 +28855,8 @@ var ts; name: "module", shortName: "m", type: { - "commonjs": 1, - "amd": 2 + "commonjs": 1 /* CommonJS */, + "amd": 2 /* AMD */ }, description: ts.Diagnostics.Specify_module_code_generation_Colon_commonjs_or_amd, paramType: ts.Diagnostics.KIND, @@ -24791,7 +28946,7 @@ var ts; { name: "target", shortName: "t", - type: { "es3": 0, "es5": 1, "es6": 2 }, + type: { "es3": 0 /* ES3 */, "es5": 1 /* ES5 */, "es6": 2 /* ES6 */ }, description: ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES6_experimental, paramType: ts.Diagnostics.VERSION, error: ts.Diagnostics.Argument_for_target_option_must_be_es3_es5_or_es6 @@ -24807,6 +28962,11 @@ var ts; shortName: "w", type: "boolean", description: ts.Diagnostics.Watch_input_files + }, + { + name: "emitDecoratorMetadata", + type: "boolean", + experimental: true } ]; function parseCommandLine(commandLine) { @@ -24831,16 +28991,18 @@ var ts; var i = 0; while (i < args.length) { var s = args[i++]; - if (s.charCodeAt(0) === 64) { + if (s.charCodeAt(0) === 64 /* at */) { parseResponseFile(s.slice(1)); } - else if (s.charCodeAt(0) === 45) { - s = s.slice(s.charCodeAt(1) === 45 ? 2 : 1).toLowerCase(); + else if (s.charCodeAt(0) === 45 /* minus */) { + s = s.slice(s.charCodeAt(1) === 45 /* minus */ ? 2 : 1).toLowerCase(); + // Try to translate short option names to their full equivalents. if (ts.hasProperty(shortOptionNames, s)) { s = shortOptionNames[s]; } if (ts.hasProperty(optionNameMap, s)) { var opt = optionNameMap[s]; + // Check to see if no argument was provided (e.g. "--locale" is the last command-line argument). if (!args[i] && opt.type !== "boolean") { errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Compiler_option_0_expects_an_argument, opt.name)); } @@ -24854,6 +29016,7 @@ var ts; case "string": options[opt.name] = args[i++] || ""; break; + // If not a primitive, the possible types are specified in what is effectively a map of options. default: var map = opt.type; var key = (args[i++] || "").toLowerCase(); @@ -24883,14 +29046,14 @@ var ts; var args = []; var pos = 0; while (true) { - while (pos < text.length && text.charCodeAt(pos) <= 32) + while (pos < text.length && text.charCodeAt(pos) <= 32 /* space */) pos++; if (pos >= text.length) break; var start = pos; - if (text.charCodeAt(start) === 34) { + if (text.charCodeAt(start) === 34 /* doubleQuote */) { pos++; - while (pos < text.length && text.charCodeAt(pos) !== 34) + while (pos < text.length && text.charCodeAt(pos) !== 34 /* doubleQuote */) pos++; if (pos < text.length) { args.push(text.substring(start + 1, pos)); @@ -24901,7 +29064,7 @@ var ts; } } else { - while (text.charCodeAt(pos) > 32) + while (text.charCodeAt(pos) > 32 /* space */) pos++; args.push(text.substring(start, pos)); } @@ -24910,6 +29073,10 @@ var ts; } } ts.parseCommandLine = parseCommandLine; + /** + * Read tsconfig.json file + * @param fileName The path to the config file + */ function readConfigFile(fileName) { try { var text = ts.sys.readFile(fileName); @@ -24919,6 +29086,12 @@ var ts; } } ts.readConfigFile = readConfigFile; + /** + * Parse the contents of a config file (tsconfig.json). + * @param json The contents of the config file to parse + * @param basePath A root directory to resolve relative path entries in the config + * file to. e.g. outDir + */ function parseConfigFile(json, basePath) { var errors = []; return { @@ -24988,20 +29161,7 @@ var ts; } ts.parseConfigFile = parseConfigFile; })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* @internal */ var ts; (function (ts) { var OutliningElementsCollector; @@ -25020,8 +29180,60 @@ var ts; elements.push(span); } } + function addOutliningSpanComments(commentSpan, autoCollapse) { + if (commentSpan) { + var span = { + textSpan: ts.createTextSpanFromBounds(commentSpan.pos, commentSpan.end), + hintSpan: ts.createTextSpanFromBounds(commentSpan.pos, commentSpan.end), + bannerText: collapseText, + autoCollapse: autoCollapse + }; + elements.push(span); + } + } + function addOutliningForLeadingCommentsForNode(n) { + var comments = ts.getLeadingCommentRangesOfNode(n, sourceFile); + if (comments) { + var firstSingleLineCommentStart = -1; + var lastSingleLineCommentEnd = -1; + var isFirstSingleLineComment = true; + var singleLineCommentCount = 0; + for (var _i = 0; _i < comments.length; _i++) { + var currentComment = comments[_i]; + // For single line comments, combine consecutive ones (2 or more) into + // a single span from the start of the first till the end of the last + if (currentComment.kind === 2 /* SingleLineCommentTrivia */) { + if (isFirstSingleLineComment) { + firstSingleLineCommentStart = currentComment.pos; + } + isFirstSingleLineComment = false; + lastSingleLineCommentEnd = currentComment.end; + singleLineCommentCount++; + } + else if (currentComment.kind === 3 /* MultiLineCommentTrivia */) { + combineAndAddMultipleSingleLineComments(singleLineCommentCount, firstSingleLineCommentStart, lastSingleLineCommentEnd); + addOutliningSpanComments(currentComment, false); + singleLineCommentCount = 0; + lastSingleLineCommentEnd = -1; + isFirstSingleLineComment = true; + } + } + combineAndAddMultipleSingleLineComments(singleLineCommentCount, firstSingleLineCommentStart, lastSingleLineCommentEnd); + } + } + function combineAndAddMultipleSingleLineComments(count, start, end) { + // Only outline spans of two or more consecutive single line comments + if (count > 1) { + var multipleSingleLineComments = { + pos: start, + end: end, + kind: 2 /* SingleLineCommentTrivia */ + }; + addOutliningSpanComments(multipleSingleLineComments, false); + } + } function autoCollapse(node) { - return ts.isFunctionBlock(node) && node.parent.kind !== 163; + return ts.isFunctionBlock(node) && node.parent.kind !== 163 /* ArrowFunction */; } var depth = 0; var maxDepth = 20; @@ -25029,37 +29241,46 @@ var ts; if (depth > maxDepth) { return; } + if (ts.isDeclaration(n)) { + addOutliningForLeadingCommentsForNode(n); + } switch (n.kind) { - case 179: + case 179 /* Block */: if (!ts.isFunctionBlock(n)) { - var parent_6 = n.parent; - var openBrace = ts.findChildOfKind(n, 14, sourceFile); - var closeBrace = ts.findChildOfKind(n, 15, sourceFile); - if (parent_6.kind === 184 || - parent_6.kind === 187 || - parent_6.kind === 188 || - parent_6.kind === 186 || - parent_6.kind === 183 || - parent_6.kind === 185 || - parent_6.kind === 192 || - parent_6.kind === 223) { - addOutliningSpan(parent_6, openBrace, closeBrace, autoCollapse(n)); + var parent_7 = n.parent; + var openBrace = ts.findChildOfKind(n, 14 /* OpenBraceToken */, sourceFile); + var closeBrace = ts.findChildOfKind(n, 15 /* CloseBraceToken */, sourceFile); + // Check if the block is standalone, or 'attached' to some parent statement. + // If the latter, we want to collaps the block, but consider its hint span + // to be the entire span of the parent. + if (parent_7.kind === 184 /* DoStatement */ || + parent_7.kind === 187 /* ForInStatement */ || + parent_7.kind === 188 /* ForOfStatement */ || + parent_7.kind === 186 /* ForStatement */ || + parent_7.kind === 183 /* IfStatement */ || + parent_7.kind === 185 /* WhileStatement */ || + parent_7.kind === 192 /* WithStatement */ || + parent_7.kind === 223 /* CatchClause */) { + addOutliningSpan(parent_7, openBrace, closeBrace, autoCollapse(n)); break; } - if (parent_6.kind === 196) { - var tryStatement = parent_6; + if (parent_7.kind === 196 /* TryStatement */) { + // Could be the try-block, or the finally-block. + var tryStatement = parent_7; if (tryStatement.tryBlock === n) { - addOutliningSpan(parent_6, openBrace, closeBrace, autoCollapse(n)); + addOutliningSpan(parent_7, openBrace, closeBrace, autoCollapse(n)); break; } else if (tryStatement.finallyBlock === n) { - var finallyKeyword = ts.findChildOfKind(tryStatement, 81, sourceFile); + var finallyKeyword = ts.findChildOfKind(tryStatement, 81 /* FinallyKeyword */, sourceFile); if (finallyKeyword) { addOutliningSpan(finallyKeyword, openBrace, closeBrace, autoCollapse(n)); break; } } } + // Block was a standalone block. In this case we want to only collapse + // the span of the block, independent of any parent span. var span = ts.createTextSpanFromBounds(n.getStart(), n.end); elements.push({ textSpan: span, @@ -25069,25 +29290,26 @@ var ts; }); break; } - case 206: { - var openBrace = ts.findChildOfKind(n, 14, sourceFile); - var closeBrace = ts.findChildOfKind(n, 15, sourceFile); + // Fallthrough. + case 206 /* ModuleBlock */: { + var openBrace = ts.findChildOfKind(n, 14 /* OpenBraceToken */, sourceFile); + var closeBrace = ts.findChildOfKind(n, 15 /* CloseBraceToken */, sourceFile); addOutliningSpan(n.parent, openBrace, closeBrace, autoCollapse(n)); break; } - case 201: - case 202: - case 204: - case 154: - case 207: { - var openBrace = ts.findChildOfKind(n, 14, sourceFile); - var closeBrace = ts.findChildOfKind(n, 15, sourceFile); + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: + case 154 /* ObjectLiteralExpression */: + case 207 /* CaseBlock */: { + var openBrace = ts.findChildOfKind(n, 14 /* OpenBraceToken */, sourceFile); + var closeBrace = ts.findChildOfKind(n, 15 /* CloseBraceToken */, sourceFile); addOutliningSpan(n, openBrace, closeBrace, autoCollapse(n)); break; } - case 153: - var openBracket = ts.findChildOfKind(n, 18, sourceFile); - var closeBracket = ts.findChildOfKind(n, 19, sourceFile); + case 153 /* ArrayLiteralExpression */: + var openBracket = ts.findChildOfKind(n, 18 /* OpenBracketToken */, sourceFile); + var closeBracket = ts.findChildOfKind(n, 19 /* CloseBracketToken */, sourceFile); addOutliningSpan(n, openBracket, closeBracket, autoCollapse(n)); break; } @@ -25101,6 +29323,7 @@ var ts; OutliningElementsCollector.collectElements = collectElements; })(OutliningElementsCollector = ts.OutliningElementsCollector || (ts.OutliningElementsCollector = {})); })(ts || (ts = {})); +/* @internal */ var ts; (function (ts) { var NavigateTo; @@ -25108,6 +29331,7 @@ var ts; function getNavigateToItems(program, cancellationToken, searchValue, maxResultCount) { var patternMatcher = ts.createPatternMatcher(searchValue); var rawItems = []; + // Search the declarations in all files and output matched NavigateToItem into array of NavigateToItem[] ts.forEach(program.getSourceFiles(), function (sourceFile) { cancellationToken.throwIfCancellationRequested(); var declarations = sourceFile.getNamedDeclarations(); @@ -25115,10 +29339,14 @@ var ts; var declaration = declarations[_i]; var name = getDeclarationName(declaration); if (name !== undefined) { + // First do a quick check to see if the name of the declaration matches the + // last portion of the (possibly) dotted name they're searching for. var matches = patternMatcher.getMatchesForLastSegmentOfPattern(name); if (!matches) { continue; } + // It was a match! If the pattern has dots in it, then also see if the + // declaration container matches as well. if (patternMatcher.patternContainsDots) { var containers = getContainers(declaration); if (!containers) { @@ -25143,6 +29371,7 @@ var ts; return items; function allMatchesAreCaseSensitive(matches) { ts.Debug.assert(matches.length > 0); + // This is a case sensitive match, only if all the submatches were case sensitive. for (var _i = 0; _i < matches.length; _i++) { var match = matches[_i]; if (!match.isCaseSensitive) { @@ -25156,9 +29385,9 @@ var ts; if (result !== undefined) { return result; } - if (declaration.name.kind === 127) { + if (declaration.name.kind === 127 /* ComputedPropertyName */) { var expr = declaration.name.expression; - if (expr.kind === 155) { + if (expr.kind === 155 /* PropertyAccessExpression */) { return expr.name.text; } return getTextOfIdentifierOrLiteral(expr); @@ -25166,9 +29395,9 @@ var ts; return undefined; } function getTextOfIdentifierOrLiteral(node) { - if (node.kind === 65 || - node.kind === 8 || - node.kind === 7) { + if (node.kind === 65 /* Identifier */ || + node.kind === 8 /* StringLiteral */ || + node.kind === 7 /* NumericLiteral */) { return node.text; } return undefined; @@ -25179,15 +29408,19 @@ var ts; if (text !== undefined) { containers.unshift(text); } - else if (declaration.name.kind === 127) { + else if (declaration.name.kind === 127 /* ComputedPropertyName */) { return tryAddComputedPropertyName(declaration.name.expression, containers, true); } else { + // Don't know how to add this. return false; } } return true; } + // Only added the names of computed properties if they're simple dotted expressions, like: + // + // [X.Y.Z]() { } function tryAddComputedPropertyName(expression, containers, includeLastPortion) { var text = getTextOfIdentifierOrLiteral(expression); if (text !== undefined) { @@ -25196,7 +29429,7 @@ var ts; } return true; } - if (expression.kind === 155) { + if (expression.kind === 155 /* PropertyAccessExpression */) { var propertyAccess = expression; if (includeLastPortion) { containers.unshift(propertyAccess.name.text); @@ -25207,11 +29440,14 @@ var ts; } function getContainers(declaration) { var containers = []; - if (declaration.name.kind === 127) { + // First, if we started with a computed property name, then add all but the last + // portion into the container array. + if (declaration.name.kind === 127 /* ComputedPropertyName */) { if (!tryAddComputedPropertyName(declaration.name.expression, containers, false)) { return undefined; } } + // Now, walk up our containers, adding all their names to the container array. declaration = ts.getContainerNode(declaration); while (declaration) { if (!tryAddSingleDeclarationName(declaration, containers)) { @@ -25233,8 +29469,13 @@ var ts; } return bestMatchKind; } + // This means "compare in a case insensitive manner." var baseSensitivity = { sensitivity: "base" }; function compareNavigateToItems(i1, i2) { + // TODO(cyrusn): get the gamut of comparisons that VS already uses here. + // Right now we just sort by kind first, and then by name of the item. + // We first sort case insensitively. So "Aaa" will come before "bar". + // Then we sort case sensitively, so "aaa" will come before "Aaa". return i1.matchKind - i2.matchKind || i1.name.localeCompare(i2.name, undefined, baseSensitivity) || i1.name.localeCompare(i2.name); @@ -25250,6 +29491,7 @@ var ts; isCaseSensitive: rawItem.isCaseSensitive, fileName: rawItem.fileName, textSpan: ts.createTextSpanFromBounds(declaration.getStart(), declaration.getEnd()), + // TODO(jfreeman): What should be the containerName when the container has a computed name? containerName: container && container.name ? container.name.text : "", containerKind: container && container.name ? ts.getNodeKind(container) : "" }; @@ -25259,26 +29501,34 @@ var ts; })(NavigateTo = ts.NavigateTo || (ts.NavigateTo = {})); })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { var NavigationBar; (function (NavigationBar) { function getNavigationBarItems(sourceFile) { + // If the source file has any child items, then it included in the tree + // and takes lexical ownership of all other top-level items. var hasGlobalNode = false; return getItemsWorker(getTopLevelNodes(sourceFile), createTopLevelItem); function getIndent(node) { + // If we have a global node in the tree, + // then it adds an extra layer of depth to all subnodes. var indent = hasGlobalNode ? 1 : 0; var current = node.parent; while (current) { switch (current.kind) { - case 205: + case 205 /* ModuleDeclaration */: + // If we have a module declared as A.B.C, it is more "intuitive" + // to say it only has a single layer of depth do { current = current.parent; - } while (current.kind === 205); - case 201: - case 204: - case 202: - case 200: + } while (current.kind === 205 /* ModuleDeclaration */); + // fall through + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + case 202 /* InterfaceDeclaration */: + case 200 /* FunctionDeclaration */: indent++; } current = current.parent; @@ -25289,26 +29539,33 @@ var ts; var childNodes = []; function visit(node) { switch (node.kind) { - case 180: + case 180 /* VariableStatement */: ts.forEach(node.declarationList.declarations, visit); break; - case 150: - case 151: + case 150 /* ObjectBindingPattern */: + case 151 /* ArrayBindingPattern */: ts.forEach(node.elements, visit); break; - case 215: + case 215 /* ExportDeclaration */: + // Handle named exports case e.g.: + // export {a, b as B} from "mod"; if (node.exportClause) { ts.forEach(node.exportClause.elements, visit); } break; - case 209: + case 209 /* ImportDeclaration */: var importClause = node.importClause; if (importClause) { + // Handle default import case e.g.: + // import d from "mod"; if (importClause.name) { childNodes.push(importClause); } + // Handle named bindings in imports e.g.: + // import * as NS from "mod"; + // import {a, b as B} from "mod"; if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 211) { + if (importClause.namedBindings.kind === 211 /* NamespaceImport */) { childNodes.push(importClause.namedBindings); } else { @@ -25317,24 +29574,38 @@ var ts; } } break; - case 152: - case 198: + case 152 /* BindingElement */: + case 198 /* VariableDeclaration */: if (ts.isBindingPattern(node.name)) { visit(node.name); break; } - case 201: - case 204: - case 202: - case 205: - case 200: - case 208: - case 213: - case 217: + // Fall through + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + case 202 /* InterfaceDeclaration */: + case 205 /* ModuleDeclaration */: + case 200 /* FunctionDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 213 /* ImportSpecifier */: + case 217 /* ExportSpecifier */: childNodes.push(node); break; } } + //for (let i = 0, n = nodes.length; i < n; i++) { + // let node = nodes[i]; + // if (node.kind === SyntaxKind.ClassDeclaration || + // node.kind === SyntaxKind.EnumDeclaration || + // node.kind === SyntaxKind.InterfaceDeclaration || + // node.kind === SyntaxKind.ModuleDeclaration || + // node.kind === SyntaxKind.FunctionDeclaration) { + // childNodes.push(node); + // } + // else if (node.kind === SyntaxKind.VariableStatement) { + // childNodes.push.apply(childNodes, (node).declarations); + // } + //} ts.forEach(nodes, visit); return sortNodes(childNodes); } @@ -25365,17 +29636,17 @@ var ts; for (var _i = 0; _i < nodes.length; _i++) { var node = nodes[_i]; switch (node.kind) { - case 201: - case 204: - case 202: + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + case 202 /* InterfaceDeclaration */: topLevelNodes.push(node); break; - case 205: + case 205 /* ModuleDeclaration */: var moduleDeclaration = node; topLevelNodes.push(node); addTopLevelNodes(getInnermostModule(moduleDeclaration).body.statements, topLevelNodes); break; - case 200: + case 200 /* FunctionDeclaration */: var functionDeclaration = node; if (isTopLevelFunctionDeclaration(functionDeclaration)) { topLevelNodes.push(node); @@ -25386,11 +29657,16 @@ var ts; } } function isTopLevelFunctionDeclaration(functionDeclaration) { - if (functionDeclaration.kind === 200) { - if (functionDeclaration.body && functionDeclaration.body.kind === 179) { - if (ts.forEach(functionDeclaration.body.statements, function (s) { return s.kind === 200 && !isEmpty(s.name.text); })) { + if (functionDeclaration.kind === 200 /* FunctionDeclaration */) { + // A function declaration is 'top level' if it contains any function declarations + // within it. + if (functionDeclaration.body && functionDeclaration.body.kind === 179 /* Block */) { + // Proper function declarations can only have identifier names + if (ts.forEach(functionDeclaration.body.statements, function (s) { return s.kind === 200 /* FunctionDeclaration */ && !isEmpty(s.name.text); })) { return true; } + // Or if it is not parented by another function. i.e all functions + // at module scope are 'top level'. if (!ts.isFunctionBlock(functionDeclaration.parent)) { return true; } @@ -25409,6 +29685,7 @@ var ts; var key = item_3.text + "-" + item_3.kind + "-" + item_3.indent; var itemWithSameName = keyToItem[key]; if (itemWithSameName) { + // We had an item with the same name. Merge these items together. merge(itemWithSameName, item_3); } else { @@ -25421,62 +29698,68 @@ var ts; return items; } function merge(target, source) { + // First, add any spans in the source to the target. target.spans.push.apply(target.spans, source.spans); if (source.childItems) { if (!target.childItems) { target.childItems = []; } + // Next, recursively merge or add any children in the source as appropriate. outer: for (var _i = 0, _a = source.childItems; _i < _a.length; _i++) { var sourceChild = _a[_i]; for (var _b = 0, _c = target.childItems; _b < _c.length; _b++) { var targetChild = _c[_b]; if (targetChild.text === sourceChild.text && targetChild.kind === sourceChild.kind) { + // Found a match. merge them. merge(targetChild, sourceChild); continue outer; } } + // Didn't find a match, just add this child to the list. target.childItems.push(sourceChild); } } } function createChildItem(node) { switch (node.kind) { - case 129: + case 129 /* Parameter */: if (ts.isBindingPattern(node.name)) { break; } - if ((node.flags & 499) === 0) { + if ((node.flags & 499 /* Modifier */) === 0) { return undefined; } return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.memberVariableElement); - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.memberFunctionElement); - case 136: + case 136 /* GetAccessor */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.memberGetAccessorElement); - case 137: + case 137 /* SetAccessor */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.memberSetAccessorElement); - case 140: + case 140 /* IndexSignature */: return createItem(node, "[]", ts.ScriptElementKind.indexSignatureElement); - case 226: + case 226 /* EnumMember */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.memberVariableElement); - case 138: + case 138 /* CallSignature */: return createItem(node, "()", ts.ScriptElementKind.callSignatureElement); - case 139: + case 139 /* ConstructSignature */: return createItem(node, "new()", ts.ScriptElementKind.constructSignatureElement); - case 132: - case 131: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.memberVariableElement); - case 200: + case 200 /* FunctionDeclaration */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.functionElement); - case 198: - case 152: + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: var variableDeclarationNode; - var name_18; - if (node.kind === 152) { - name_18 = node.name; + var name_19; + if (node.kind === 152 /* BindingElement */) { + name_19 = node.name; variableDeclarationNode = node; - while (variableDeclarationNode && variableDeclarationNode.kind !== 198) { + // binding elements are added only for variable declarations + // bubble up to the containing variable declaration + while (variableDeclarationNode && variableDeclarationNode.kind !== 198 /* VariableDeclaration */) { variableDeclarationNode = variableDeclarationNode.parent; } ts.Debug.assert(variableDeclarationNode !== undefined); @@ -25484,24 +29767,24 @@ var ts; else { ts.Debug.assert(!ts.isBindingPattern(node.name)); variableDeclarationNode = node; - name_18 = node.name; + name_19 = node.name; } if (ts.isConst(variableDeclarationNode)) { - return createItem(node, getTextOfNode(name_18), ts.ScriptElementKind.constElement); + return createItem(node, getTextOfNode(name_19), ts.ScriptElementKind.constElement); } else if (ts.isLet(variableDeclarationNode)) { - return createItem(node, getTextOfNode(name_18), ts.ScriptElementKind.letElement); + return createItem(node, getTextOfNode(name_19), ts.ScriptElementKind.letElement); } else { - return createItem(node, getTextOfNode(name_18), ts.ScriptElementKind.variableElement); + return createItem(node, getTextOfNode(name_19), ts.ScriptElementKind.variableElement); } - case 135: + case 135 /* Constructor */: return createItem(node, "constructor", ts.ScriptElementKind.constructorImplementationElement); - case 217: - case 213: - case 208: - case 210: - case 211: + case 217 /* ExportSpecifier */: + case 213 /* ImportSpecifier */: + case 208 /* ImportEqualsDeclaration */: + case 210 /* ImportClause */: + case 211 /* NamespaceImport */: return createItem(node, getTextOfNode(node.name), ts.ScriptElementKind.alias); } return undefined; @@ -25531,27 +29814,29 @@ var ts; } function createTopLevelItem(node) { switch (node.kind) { - case 227: + case 227 /* SourceFile */: return createSourceFileItem(node); - case 201: + case 201 /* ClassDeclaration */: return createClassItem(node); - case 204: + case 204 /* EnumDeclaration */: return createEnumItem(node); - case 202: + case 202 /* InterfaceDeclaration */: return createIterfaceItem(node); - case 205: + case 205 /* ModuleDeclaration */: return createModuleItem(node); - case 200: + case 200 /* FunctionDeclaration */: return createFunctionItem(node); } return undefined; function getModuleName(moduleDeclaration) { - if (moduleDeclaration.name.kind === 8) { + // We want to maintain quotation marks. + if (moduleDeclaration.name.kind === 8 /* StringLiteral */) { return getTextOfNode(moduleDeclaration.name); } + // Otherwise, we need to aggregate each identifier to build up the qualified name. var result = []; result.push(moduleDeclaration.name.text); - while (moduleDeclaration.body && moduleDeclaration.body.kind === 205) { + while (moduleDeclaration.body && moduleDeclaration.body.kind === 205 /* ModuleDeclaration */) { moduleDeclaration = moduleDeclaration.body; result.push(moduleDeclaration.name.text); } @@ -25563,9 +29848,9 @@ var ts; return getNavigationBarItem(moduleName, ts.ScriptElementKind.moduleElement, ts.getNodeModifiers(node), [getNodeSpan(node)], childItems, getIndent(node)); } function createFunctionItem(node) { - if ((node.name || node.flags & 256) && node.body && node.body.kind === 179) { + if (node.body && node.body.kind === 179 /* Block */) { var childItems = getItemsWorker(sortNodes(node.body.statements), createChildItem); - return getNavigationBarItem((!node.name && node.flags & 256) ? "default" : node.name.text, ts.ScriptElementKind.functionElement, ts.getNodeModifiers(node), [getNodeSpan(node)], childItems, getIndent(node)); + return getNavigationBarItem(!node.name ? "default" : node.name.text, ts.ScriptElementKind.functionElement, ts.getNodeModifiers(node), [getNodeSpan(node)], childItems, getIndent(node)); } return undefined; } @@ -25584,15 +29869,18 @@ var ts; var childItems; if (node.members) { var constructor = ts.forEach(node.members, function (member) { - return member.kind === 135 && member; + return member.kind === 135 /* Constructor */ && member; }); + // Add the constructor parameters in as children of the class (for property parameters). + // Note that *all non-binding pattern named* parameters will be added to the nodes array, but parameters that + // are not properties will be filtered out later by createChildItem. var nodes = removeDynamicallyNamedProperties(node); if (constructor) { nodes.push.apply(nodes, ts.filter(constructor.parameters, function (p) { return !ts.isBindingPattern(p.name); })); } childItems = getItemsWorker(sortNodes(nodes), createChildItem); } - var nodeName = !node.name && (node.flags & 256) ? "default" : node.name.text; + var nodeName = !node.name ? "default" : node.name.text; return getNavigationBarItem(nodeName, ts.ScriptElementKind.classElement, ts.getNodeModifiers(node), [getNodeSpan(node)], childItems, getIndent(node)); } function createEnumItem(node) { @@ -25605,19 +29893,22 @@ var ts; } } function removeComputedProperties(node) { - return ts.filter(node.members, function (member) { return member.name === undefined || member.name.kind !== 127; }); + return ts.filter(node.members, function (member) { return member.name === undefined || member.name.kind !== 127 /* ComputedPropertyName */; }); } + /** + * Like removeComputedProperties, but retains the properties with well known symbol names + */ function removeDynamicallyNamedProperties(node) { return ts.filter(node.members, function (member) { return !ts.hasDynamicName(member); }); } function getInnermostModule(node) { - while (node.body.kind === 205) { + while (node.body.kind === 205 /* ModuleDeclaration */) { node = node.body; } return node; } function getNodeSpan(node) { - return node.kind === 227 + return node.kind === 227 /* SourceFile */ ? ts.createTextSpanFromBounds(node.getFullStart(), node.getEnd()) : ts.createTextSpanFromBounds(node.getStart(), node.getEnd()); } @@ -25628,8 +29919,10 @@ var ts; NavigationBar.getNavigationBarItems = getNavigationBarItems; })(NavigationBar = ts.NavigationBar || (ts.NavigationBar = {})); })(ts || (ts = {})); +/* @internal */ var ts; (function (ts) { + // Note(cyrusn): this enum is ordered from strongest match type to weakest match type. (function (PatternMatchKind) { PatternMatchKind[PatternMatchKind["exact"] = 0] = "exact"; PatternMatchKind[PatternMatchKind["prefix"] = 1] = "prefix"; @@ -25646,6 +29939,10 @@ var ts; }; } function createPatternMatcher(pattern) { + // We'll often see the same candidate string many times when searching (For example, when + // we see the name of a module that is used everywhere, or the name of an overload). As + // such, we cache the information we compute about the candidate for the life of this + // pattern matcher so we don't have to compute it multiple times. var stringToWordSpans = {}; pattern = pattern.trim(); var fullPatternSegment = createSegment(pattern); @@ -25656,6 +29953,7 @@ var ts; getMatchesForLastSegmentOfPattern: getMatchesForLastSegmentOfPattern, patternContainsDots: dotSeparatedSegments.length > 1 }; + // Quick checks so we can bail out when asked to match a candidate. function skipMatch(candidate) { return invalidPattern || !candidate; } @@ -25669,24 +29967,36 @@ var ts; if (skipMatch(candidate)) { return undefined; } + // First, check that the last part of the dot separated pattern matches the name of the + // candidate. If not, then there's no point in proceeding and doing the more + // expensive work. var candidateMatch = matchSegment(candidate, ts.lastOrUndefined(dotSeparatedSegments)); if (!candidateMatch) { return undefined; } candidateContainers = candidateContainers || []; + // -1 because the last part was checked against the name, and only the rest + // of the parts are checked against the container. if (dotSeparatedSegments.length - 1 > candidateContainers.length) { + // There weren't enough container parts to match against the pattern parts. + // So this definitely doesn't match. return undefined; } + // So far so good. Now break up the container for the candidate and check if all + // the dotted parts match up correctly. var totalMatch = candidateMatch; for (var i = dotSeparatedSegments.length - 2, j = candidateContainers.length - 1; i >= 0; i--, j--) { var segment = dotSeparatedSegments[i]; var containerName = candidateContainers[j]; var containerMatch = matchSegment(containerName, segment); if (!containerMatch) { + // This container didn't match the pattern piece. So there's no match at all. return undefined; } ts.addRange(totalMatch, containerMatch); } + // Success, this symbol's full name matched against the dotted name the user was asking + // about. return totalMatch; } function getWordSpans(word) { @@ -25699,30 +30009,46 @@ var ts; var index = indexOfIgnoringCase(candidate, chunk.textLowerCase); if (index === 0) { if (chunk.text.length === candidate.length) { + // a) Check if the part matches the candidate entirely, in an case insensitive or + // sensitive manner. If it does, return that there was an exact match. return createPatternMatch(PatternMatchKind.exact, punctuationStripped, candidate === chunk.text); } else { + // b) Check if the part is a prefix of the candidate, in a case insensitive or sensitive + // manner. If it does, return that there was a prefix match. return createPatternMatch(PatternMatchKind.prefix, punctuationStripped, startsWith(candidate, chunk.text)); } } var isLowercase = chunk.isLowerCase; if (isLowercase) { if (index > 0) { + // c) If the part is entirely lowercase, then check if it is contained anywhere in the + // candidate in a case insensitive manner. If so, return that there was a substring + // match. + // + // Note: We only have a substring match if the lowercase part is prefix match of some + // word part. That way we don't match something like 'Class' when the user types 'a'. + // But we would match 'FooAttribute' (since 'Attribute' starts with 'a'). var wordSpans = getWordSpans(candidate); for (var _i = 0; _i < wordSpans.length; _i++) { var span = wordSpans[_i]; if (partStartsWith(candidate, span, chunk.text, true)) { - return createPatternMatch(PatternMatchKind.substring, punctuationStripped, partStartsWith(candidate, span, chunk.text, false)); + return createPatternMatch(PatternMatchKind.substring, punctuationStripped, + /*isCaseSensitive:*/ partStartsWith(candidate, span, chunk.text, false)); } } } } else { + // d) If the part was not entirely lowercase, then check if it is contained in the + // candidate in a case *sensitive* manner. If so, return that there was a substring + // match. if (candidate.indexOf(chunk.text) > 0) { return createPatternMatch(PatternMatchKind.substring, punctuationStripped, true); } } if (!isLowercase) { + // e) If the part was not entirely lowercase, then attempt a camel cased match as well. if (chunk.characterSpans.length > 0) { var candidateParts = getWordSpans(candidate); var camelCaseWeight = tryCamelCaseMatch(candidate, candidateParts, chunk, false); @@ -25736,6 +30062,12 @@ var ts; } } if (isLowercase) { + // f) Is the pattern a substring of the candidate starting on one of the candidate's word boundaries? + // We could check every character boundary start of the candidate for the pattern. However, that's + // an m * n operation in the wost case. Instead, find the first instance of the pattern + // substring, and see if it starts on a capital letter. It seems unlikely that the user will try to + // filter the list based on a substring that starts on a capital letter and also with a lowercase one. + // (Pattern: fogbar, Candidate: quuxfogbarFogBar). if (chunk.text.length < candidate.length) { if (index > 0 && isUpperCaseLetter(candidate.charCodeAt(index))) { return createPatternMatch(PatternMatchKind.substring, punctuationStripped, false); @@ -25747,23 +30079,67 @@ var ts; function containsSpaceOrAsterisk(text) { for (var i = 0; i < text.length; i++) { var ch = text.charCodeAt(i); - if (ch === 32 || ch === 42) { + if (ch === 32 /* space */ || ch === 42 /* asterisk */) { return true; } } return false; } function matchSegment(candidate, segment) { + // First check if the segment matches as is. This is also useful if the segment contains + // characters we would normally strip when splitting into parts that we also may want to + // match in the candidate. For example if the segment is "@int" and the candidate is + // "@int", then that will show up as an exact match here. + // + // Note: if the segment contains a space or an asterisk then we must assume that it's a + // multi-word segment. if (!containsSpaceOrAsterisk(segment.totalTextChunk.text)) { var match = matchTextChunk(candidate, segment.totalTextChunk, false); if (match) { return [match]; } } + // The logic for pattern matching is now as follows: + // + // 1) Break the segment passed in into words. Breaking is rather simple and a + // good way to think about it that if gives you all the individual alphanumeric words + // of the pattern. + // + // 2) For each word try to match the word against the candidate value. + // + // 3) Matching is as follows: + // + // a) Check if the word matches the candidate entirely, in an case insensitive or + // sensitive manner. If it does, return that there was an exact match. + // + // b) Check if the word is a prefix of the candidate, in a case insensitive or + // sensitive manner. If it does, return that there was a prefix match. + // + // c) If the word is entirely lowercase, then check if it is contained anywhere in the + // candidate in a case insensitive manner. If so, return that there was a substring + // match. + // + // Note: We only have a substring match if the lowercase part is prefix match of + // some word part. That way we don't match something like 'Class' when the user + // types 'a'. But we would match 'FooAttribute' (since 'Attribute' starts with + // 'a'). + // + // d) If the word was not entirely lowercase, then check if it is contained in the + // candidate in a case *sensitive* manner. If so, return that there was a substring + // match. + // + // e) If the word was not entirely lowercase, then attempt a camel cased match as + // well. + // + // f) The word is all lower case. Is it a case insensitive substring of the candidate starting + // on a part boundary of the candidate? + // + // Only if all words have some sort of match is the pattern considered matched. var subWordTextChunks = segment.subWordTextChunks; var matches = undefined; for (var _i = 0; _i < subWordTextChunks.length; _i++) { var subWordTextChunk = subWordTextChunks[_i]; + // Try to match the candidate with this word var result = matchTextChunk(candidate, subWordTextChunk, true); if (!result) { return undefined; @@ -25777,6 +30153,7 @@ var ts; var patternPartStart = patternSpan ? patternSpan.start : 0; var patternPartLength = patternSpan ? patternSpan.length : pattern.length; if (patternPartLength > candidateSpan.length) { + // Pattern part is longer than the candidate part. There can never be a match. return false; } if (ignoreCase) { @@ -25801,29 +30178,45 @@ var ts; } function tryCamelCaseMatch(candidate, candidateParts, chunk, ignoreCase) { var chunkCharacterSpans = chunk.characterSpans; + // Note: we may have more pattern parts than candidate parts. This is because multiple + // pattern parts may match a candidate part. For example "SiUI" against "SimpleUI". + // We'll have 3 pattern parts Si/U/I against two candidate parts Simple/UI. However, U + // and I will both match in UI. var currentCandidate = 0; var currentChunkSpan = 0; var firstMatch = undefined; var contiguous = undefined; while (true) { + // Let's consider our termination cases if (currentChunkSpan === chunkCharacterSpans.length) { + // We did match! We shall assign a weight to this var weight = 0; + // Was this contiguous? if (contiguous) { weight += 1; } + // Did we start at the beginning of the candidate? if (firstMatch === 0) { weight += 2; } return weight; } else if (currentCandidate === candidateParts.length) { + // No match, since we still have more of the pattern to hit return undefined; } var candidatePart = candidateParts[currentCandidate]; var gotOneMatchThisCandidate = false; + // Consider the case of matching SiUI against SimpleUIElement. The candidate parts + // will be Simple/UI/Element, and the pattern parts will be Si/U/I. We'll match 'Si' + // against 'Simple' first. Then we'll match 'U' against 'UI'. However, we want to + // still keep matching pattern parts against that candidate part. for (; currentChunkSpan < chunkCharacterSpans.length; currentChunkSpan++) { var chunkCharacterSpan = chunkCharacterSpans[currentChunkSpan]; if (gotOneMatchThisCandidate) { + // We've already gotten one pattern part match in this candidate. We will + // only continue trying to consumer pattern parts if the last part and this + // part are both upper case. if (!isUpperCaseLetter(chunk.text.charCodeAt(chunkCharacterSpans[currentChunkSpan - 1].start)) || !isUpperCaseLetter(chunk.text.charCodeAt(chunkCharacterSpans[currentChunkSpan].start))) { break; @@ -25834,17 +30227,30 @@ var ts; } gotOneMatchThisCandidate = true; firstMatch = firstMatch === undefined ? currentCandidate : firstMatch; + // If we were contiguous, then keep that value. If we weren't, then keep that + // value. If we don't know, then set the value to 'true' as an initial match is + // obviously contiguous. contiguous = contiguous === undefined ? true : contiguous; candidatePart = ts.createTextSpan(candidatePart.start + chunkCharacterSpan.length, candidatePart.length - chunkCharacterSpan.length); } + // Check if we matched anything at all. If we didn't, then we need to unset the + // contiguous bit if we currently had it set. + // If we haven't set the bit yet, then that means we haven't matched anything so + // far, and we don't want to change that. if (!gotOneMatchThisCandidate && contiguous !== undefined) { contiguous = false; } + // Move onto the next candidate. currentCandidate++; } } } ts.createPatternMatcher = createPatternMatcher; + // Helper function to compare two matches to determine which is better. Matches are first + // ordered by kind (so all prefix matches always beat all substring matches). Then, if the + // match is a camel case match, the relative weights of the match are used to determine + // which is better (with a greater weight being better). Then if the match is of the same + // type, then a case sensitive match is considered better than an insensitive one. function patternMatchCompareTo(match1, match2) { return compareType(match1, match2) || compareCamelCase(match1, match2) || @@ -25852,6 +30258,8 @@ var ts; comparePunctuation(match1, match2); } function comparePunctuation(result1, result2) { + // Consider a match to be better if it was successful without stripping punctuation + // versus a match that had to strip punctuation to succeed. if (result1.punctuationStripped !== result2.punctuationStripped) { return result1.punctuationStripped ? 1 : -1; } @@ -25868,6 +30276,8 @@ var ts; } function compareCamelCase(result1, result2) { if (result1.kind === PatternMatchKind.camelCase && result2.kind === PatternMatchKind.camelCase) { + // Swap the values here. If result1 has a higher weight, then we want it to come + // first. return result2.camelCaseWeight - result1.camelCaseWeight; } return 0; @@ -25878,26 +30288,33 @@ var ts; subWordTextChunks: breakPatternIntoTextChunks(text) }; } + // A segment is considered invalid if we couldn't find any words in it. function segmentIsInvalid(segment) { return segment.subWordTextChunks.length === 0; } function isUpperCaseLetter(ch) { - if (ch >= 65 && ch <= 90) { + // Fast check for the ascii range. + if (ch >= 65 /* A */ && ch <= 90 /* Z */) { return true; } - if (ch < 127 || !ts.isUnicodeIdentifierStart(ch, 2)) { + if (ch < 127 /* maxAsciiCharacter */ || !ts.isUnicodeIdentifierStart(ch, 2 /* Latest */)) { return false; } + // TODO: find a way to determine this for any unicode characters in a + // non-allocating manner. var str = String.fromCharCode(ch); return str === str.toUpperCase(); } function isLowerCaseLetter(ch) { - if (ch >= 97 && ch <= 122) { + // Fast check for the ascii range. + if (ch >= 97 /* a */ && ch <= 122 /* z */) { return true; } - if (ch < 127 || !ts.isUnicodeIdentifierStart(ch, 2)) { + if (ch < 127 /* maxAsciiCharacter */ || !ts.isUnicodeIdentifierStart(ch, 2 /* Latest */)) { return false; } + // TODO: find a way to determine this for any unicode characters in a + // non-allocating manner. var str = String.fromCharCode(ch); return str === str.toLowerCase(); } @@ -25917,6 +30334,7 @@ var ts; } return true; } + // Assumes 'value' is already lowercase. function indexOfIgnoringCase(string, value) { for (var i = 0, n = string.length - value.length; i <= n; i++) { if (startsWithIgnoringCase(string, value, i)) { @@ -25925,6 +30343,7 @@ var ts; } return -1; } + // Assumes 'value' is already lowercase. function startsWithIgnoringCase(string, value, start) { for (var i = 0, n = value.length; i < n; i++) { var ch1 = toLowerCase(string.charCodeAt(i + start)); @@ -25936,19 +30355,23 @@ var ts; return true; } function toLowerCase(ch) { - if (ch >= 65 && ch <= 90) { - return 97 + (ch - 65); + // Fast convert for the ascii range. + if (ch >= 65 /* A */ && ch <= 90 /* Z */) { + return 97 /* a */ + (ch - 65 /* A */); } - if (ch < 127) { + if (ch < 127 /* maxAsciiCharacter */) { return ch; } + // TODO: find a way to compute this for any unicode characters in a + // non-allocating manner. return String.fromCharCode(ch).toLowerCase().charCodeAt(0); } function isDigit(ch) { - return ch >= 48 && ch <= 57; + // TODO(cyrusn): Find a way to support this for unicode digits. + return ch >= 48 /* _0 */ && ch <= 57 /* _9 */; } function isWordChar(ch) { - return isUpperCaseLetter(ch) || isLowerCaseLetter(ch) || isDigit(ch) || ch === 95 || ch === 36; + return isUpperCaseLetter(ch) || isLowerCaseLetter(ch) || isDigit(ch) || ch === 95 /* _ */ || ch === 36 /* $ */; } function breakPatternIntoTextChunks(pattern) { var result = []; @@ -25982,11 +30405,11 @@ var ts; characterSpans: breakIntoCharacterSpans(text) }; } - function breakIntoCharacterSpans(identifier) { + /* @internal */ function breakIntoCharacterSpans(identifier) { return breakIntoSpans(identifier, false); } ts.breakIntoCharacterSpans = breakIntoCharacterSpans; - function breakIntoWordSpans(identifier) { + /* @internal */ function breakIntoWordSpans(identifier) { return breakIntoSpans(identifier, true); } ts.breakIntoWordSpans = breakIntoWordSpans; @@ -26016,29 +30439,29 @@ var ts; } function charIsPunctuation(ch) { switch (ch) { - case 33: - case 34: - case 35: - case 37: - case 38: - case 39: - case 40: - case 41: - case 42: - case 44: - case 45: - case 46: - case 47: - case 58: - case 59: - case 63: - case 64: - case 91: - case 92: - case 93: - case 95: - case 123: - case 125: + case 33 /* exclamation */: + case 34 /* doubleQuote */: + case 35 /* hash */: + case 37 /* percent */: + case 38 /* ampersand */: + case 39 /* singleQuote */: + case 40 /* openParen */: + case 41 /* closeParen */: + case 42 /* asterisk */: + case 44 /* comma */: + case 45 /* minus */: + case 46 /* dot */: + case 47 /* slash */: + case 58 /* colon */: + case 59 /* semicolon */: + case 63 /* question */: + case 64 /* at */: + case 91 /* openBracket */: + case 92 /* backslash */: + case 93 /* closeBracket */: + case 95 /* _ */: + case 123 /* openBrace */: + case 125 /* closeBrace */: return true; } return false; @@ -26046,7 +30469,8 @@ var ts; function isAllPunctuation(identifier, start, end) { for (var i = start; i < end; i++) { var ch = identifier.charCodeAt(i); - if (!charIsPunctuation(ch) || ch === 95 || ch === 36) { + // We don't consider _ or $ as punctuation as there may be things with that name. + if (!charIsPunctuation(ch) || ch === 95 /* _ */ || ch === 36 /* $ */) { return false; } } @@ -26054,11 +30478,25 @@ var ts; } function transitionFromUpperToLower(identifier, word, index, wordStart) { if (word) { + // Cases this supports: + // 1) IDisposable -> I, Disposable + // 2) UIElement -> UI, Element + // 3) HTMLDocument -> HTML, Document + // + // etc. if (index != wordStart && index + 1 < identifier.length) { var currentIsUpper = isUpperCaseLetter(identifier.charCodeAt(index)); var nextIsLower = isLowerCaseLetter(identifier.charCodeAt(index + 1)); if (currentIsUpper && nextIsLower) { + // We have a transition from an upper to a lower letter here. But we only + // want to break if all the letters that preceded are uppercase. i.e. if we + // have "Foo" we don't want to break that into "F, oo". But if we have + // "IFoo" or "UIFoo", then we want to break that into "I, Foo" and "UI, + // Foo". i.e. the last uppercase letter belongs to the lowercase letters + // that follows. Note: this will make the following not split properly: + // "HELLOthere". However, these sorts of names do not show up in .Net + // programs. for (var i = wordStart; i < index; i++) { if (!isUpperCaseLetter(identifier.charCodeAt(i))) { return false; @@ -26073,6 +30511,19 @@ var ts; function transitionFromLowerToUpper(identifier, word, index) { var lastIsUpper = isUpperCaseLetter(identifier.charCodeAt(index - 1)); var currentIsUpper = isUpperCaseLetter(identifier.charCodeAt(index)); + // See if the casing indicates we're starting a new word. Note: if we're breaking on + // words, then just seeing an upper case character isn't enough. Instead, it has to + // be uppercase and the previous character can't be uppercase. + // + // For example, breaking "AddMetadata" on words would make: Add Metadata + // + // on characters would be: A dd M etadata + // + // Break "AM" on words would be: AM + // + // on characters would be: A M + // + // We break the search string on characters. But we break the symbol name on words. var transition = word ? (currentIsUpper && !lastIsUpper) : currentIsUpper; @@ -26080,10 +30531,143 @@ var ts; } })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { var SignatureHelp; (function (SignatureHelp) { + // A partially written generic type expression is not guaranteed to have the correct syntax tree. the expression could be parsed as less than/greater than expression or a comma expression + // or some other combination depending on what the user has typed so far. For the purposes of signature help we need to consider any location after "<" as a possible generic type reference. + // To do this, the method will back parse the expression starting at the position required. it will try to parse the current expression as a generic type expression, if it did succeed it + // will return the generic identifier that started the expression (e.g. "foo" in "foo(#a, b) -> The token introduces a list, and should begin a sig help session + // Case 2: + // fo#o#(a, b)# -> The token is either not associated with a list, or ends a list, so the session should end + // Case 3: + // foo(a#, #b#) -> The token is buried inside a list, and should give sig help + // Find out if 'node' is an argument, a type argument, or neither + if (node.kind === 24 /* LessThanToken */ || + node.kind === 16 /* OpenParenToken */) { + // Find the list that starts right *after* the < or ( token. + // If the user has just opened a list, consider this item 0. var list = getChildListThatStartsWithOpenerToken(callExpression, node, sourceFile); var isTypeArgList = callExpression.typeArguments && callExpression.typeArguments.pos === list.pos; ts.Debug.assert(list !== undefined); return { - kind: isTypeArgList ? 0 : 1, + kind: isTypeArgList ? 0 /* TypeArguments */ : 1 /* CallArguments */, invocation: callExpression, argumentsSpan: getApplicableSpanForArguments(list), argumentIndex: 0, argumentCount: getArgumentCount(list) }; } + // findListItemInfo can return undefined if we are not in parent's argument list + // or type argument list. This includes cases where the cursor is: + // - To the right of the closing paren, non-substitution template, or template tail. + // - Between the type arguments and the arguments (greater than token) + // - On the target of the call (parent.func) + // - On the 'new' keyword in a 'new' expression var listItemInfo = ts.findListItemInfo(node); if (listItemInfo) { var list = listItemInfo.list; @@ -26133,7 +30746,7 @@ var ts; var argumentCount = getArgumentCount(list); ts.Debug.assert(argumentIndex === 0 || argumentIndex < argumentCount, "argumentCount < argumentIndex, " + argumentCount + " < " + argumentIndex); return { - kind: isTypeArgList ? 0 : 1, + kind: isTypeArgList ? 0 /* TypeArguments */ : 1 /* CallArguments */, invocation: callExpression, argumentsSpan: getApplicableSpanForArguments(list), argumentIndex: argumentIndex, @@ -26141,24 +30754,27 @@ var ts; }; } } - else if (node.kind === 10 && node.parent.kind === 159) { + else if (node.kind === 10 /* NoSubstitutionTemplateLiteral */ && node.parent.kind === 159 /* TaggedTemplateExpression */) { + // Check if we're actually inside the template; + // otherwise we'll fall out and return undefined. if (ts.isInsideTemplateLiteral(node, position)) { return getArgumentListInfoForTemplate(node.parent, 0); } } - else if (node.kind === 11 && node.parent.parent.kind === 159) { + else if (node.kind === 11 /* TemplateHead */ && node.parent.parent.kind === 159 /* TaggedTemplateExpression */) { var templateExpression = node.parent; var tagExpression = templateExpression.parent; - ts.Debug.assert(templateExpression.kind === 171); + ts.Debug.assert(templateExpression.kind === 171 /* TemplateExpression */); var argumentIndex = ts.isInsideTemplateLiteral(node, position) ? 0 : 1; return getArgumentListInfoForTemplate(tagExpression, argumentIndex); } - else if (node.parent.kind === 176 && node.parent.parent.parent.kind === 159) { + else if (node.parent.kind === 176 /* TemplateSpan */ && node.parent.parent.parent.kind === 159 /* TaggedTemplateExpression */) { var templateSpan = node.parent; var templateExpression = templateSpan.parent; var tagExpression = templateExpression.parent; - ts.Debug.assert(templateExpression.kind === 171); - if (node.kind === 13 && !ts.isInsideTemplateLiteral(node, position)) { + ts.Debug.assert(templateExpression.kind === 171 /* TemplateExpression */); + // If we're just after a template tail, don't show signature help. + if (node.kind === 13 /* TemplateTail */ && !ts.isInsideTemplateLiteral(node, position)) { return undefined; } var spanIndex = templateExpression.templateSpans.indexOf(templateSpan); @@ -26168,6 +30784,17 @@ var ts; return undefined; } function getArgumentIndex(argumentsList, node) { + // The list we got back can include commas. In the presence of errors it may + // also just have nodes without commas. For example "Foo(a b c)" will have 3 + // args without commas. We want to find what index we're at. So we count + // forward until we hit ourselves, only incrementing the index if it isn't a + // comma. + // + // Note: the subtlety around trailing commas (in getArgumentCount) does not apply + // here. That's because we're only walking forward until we hit the node we're + // on. In that case, even if we're after the trailing comma, we'll still see + // that trailing comma in the list, and we'll have generated the appropriate + // arg index. var argumentIndex = 0; var listChildren = argumentsList.getChildren(); for (var _i = 0; _i < listChildren.length; _i++) { @@ -26175,21 +30802,45 @@ var ts; if (child === node) { break; } - if (child.kind !== 23) { + if (child.kind !== 23 /* CommaToken */) { argumentIndex++; } } return argumentIndex; } function getArgumentCount(argumentsList) { + // The argument count for a list is normally the number of non-comma children it has. + // For example, if you have "Foo(a,b)" then there will be three children of the arg + // list 'a' '' 'b'. So, in this case the arg count will be 2. However, there + // is a small subtlety. If you have "Foo(a,)", then the child list will just have + // 'a' ''. So, in the case where the last child is a comma, we increase the + // arg count by one to compensate. + // + // Note: this subtlety only applies to the last comma. If you had "Foo(a,," then + // we'll have: 'a' '' '' + // That will give us 2 non-commas. We then add one for the last comma, givin us an + // arg count of 3. var listChildren = argumentsList.getChildren(); - var argumentCount = ts.countWhere(listChildren, function (arg) { return arg.kind !== 23; }); - if (listChildren.length > 0 && ts.lastOrUndefined(listChildren).kind === 23) { + var argumentCount = ts.countWhere(listChildren, function (arg) { return arg.kind !== 23 /* CommaToken */; }); + if (listChildren.length > 0 && ts.lastOrUndefined(listChildren).kind === 23 /* CommaToken */) { argumentCount++; } return argumentCount; } + // spanIndex is either the index for a given template span. + // This does not give appropriate results for a NoSubstitutionTemplateLiteral function getArgumentIndexForTemplatePiece(spanIndex, node) { + // Because the TemplateStringsArray is the first argument, we have to offset each substitution expression by 1. + // There are three cases we can encounter: + // 1. We are precisely in the template literal (argIndex = 0). + // 2. We are in or to the right of the substitution expression (argIndex = spanIndex + 1). + // 3. We are directly to the right of the template literal, but because we look for the token on the left, + // not enough to put us in the substitution expression; we should consider ourselves part of + // the *next* span's expression by offsetting the index (argIndex = (spanIndex + 1) + 1). + // + // Example: f `# abcd $#{# 1 + 1# }# efghi ${ #"#hello"# } # ` + // ^ ^ ^ ^ ^ ^ ^ ^ ^ + // Case: 1 1 3 2 1 3 2 2 1 ts.Debug.assert(position >= node.getStart(), "Assumed 'position' could not occur before node."); if (ts.isTemplateLiteralKind(node.kind)) { if (ts.isInsideTemplateLiteral(node, position)) { @@ -26200,12 +30851,13 @@ var ts; return spanIndex + 1; } function getArgumentListInfoForTemplate(tagExpression, argumentIndex) { - var argumentCount = tagExpression.template.kind === 10 + // argumentCount is either 1 or (numSpans + 1) to account for the template strings array argument. + var argumentCount = tagExpression.template.kind === 10 /* NoSubstitutionTemplateLiteral */ ? 1 : tagExpression.template.templateSpans.length + 1; ts.Debug.assert(argumentIndex === 0 || argumentIndex < argumentCount, "argumentCount < argumentIndex, " + argumentCount + " < " + argumentIndex); return { - kind: 2, + kind: 2 /* TaggedTemplateArguments */, invocation: tagExpression, argumentsSpan: getApplicableSpanForTaggedTemplate(tagExpression), argumentIndex: argumentIndex, @@ -26213,6 +30865,14 @@ var ts; }; } function getApplicableSpanForArguments(argumentsList) { + // We use full start and skip trivia on the end because we want to include trivia on + // both sides. For example, + // + // foo( /*comment */ a, b, c /*comment*/ ) + // | | + // + // The applicable span is from the first bar to the second bar (inclusive, + // but not including parentheses) var applicableSpanStart = argumentsList.getFullStart(); var applicableSpanEnd = ts.skipTrivia(sourceFile.text, argumentsList.getEnd(), false); return ts.createTextSpan(applicableSpanStart, applicableSpanEnd - applicableSpanStart); @@ -26221,7 +30881,16 @@ var ts; var template = taggedTemplate.template; var applicableSpanStart = template.getStart(); var applicableSpanEnd = template.getEnd(); - if (template.kind === 171) { + // We need to adjust the end position for the case where the template does not have a tail. + // Otherwise, we will not show signature help past the expression. + // For example, + // + // ` ${ 1 + 1 foo(10) + // | | + // + // This is because a Missing node has no width. However, what we actually want is to include trivia + // leading up to the next token in case the user is about to type in a TemplateMiddle or TemplateTail. + if (template.kind === 171 /* TemplateExpression */) { var lastSpan = ts.lastOrUndefined(template.templateSpans); if (lastSpan.literal.getFullWidth() === 0) { applicableSpanEnd = ts.skipTrivia(sourceFile.text, applicableSpanEnd, false); @@ -26230,10 +30899,12 @@ var ts; return ts.createTextSpan(applicableSpanStart, applicableSpanEnd - applicableSpanStart); } function getContainingArgumentInfo(node) { - for (var n = node; n.kind !== 227; n = n.parent) { + for (var n = node; n.kind !== 227 /* SourceFile */; n = n.parent) { if (ts.isFunctionBlock(n)) { return undefined; } + // If the node is not a subspan of its parent, this is a big problem. + // There have been crashes that might be caused by this violation. if (n.pos < n.parent.pos || n.end > n.parent.end) { ts.Debug.fail("Node of kind " + n.kind + " is not a subspan of its parent of kind " + n.parent.kind); } @@ -26250,6 +30921,14 @@ var ts; ts.Debug.assert(indexOfOpenerToken >= 0 && children.length > indexOfOpenerToken + 1); return children[indexOfOpenerToken + 1]; } + /** + * The selectedItemIndex could be negative for several reasons. + * 1. There are too many arguments for all of the overloads + * 2. None of the overloads were type compatible + * The solution here is to try to pick the best overload by picking + * either the first one that has an appropriate number of parameters, + * or the one with the most parameters. + */ function selectBestInvalidOverloadIndex(candidates, argumentCount) { var maxParamsSignatureIndex = -1; var maxParams = -1; @@ -26267,7 +30946,7 @@ var ts; } function createSignatureHelpItems(candidates, bestSignature, argumentListInfo) { var applicableSpan = argumentListInfo.argumentsSpan; - var isTypeParameterList = argumentListInfo.kind === 0; + var isTypeParameterList = argumentListInfo.kind === 0 /* TypeArguments */; var invocation = argumentListInfo.invocation; var callTarget = ts.getInvokedExpression(invocation); var callTargetSymbol = typeInfoResolver.getSymbolAtLocation(callTarget); @@ -26280,10 +30959,10 @@ var ts; prefixDisplayParts.push.apply(prefixDisplayParts, callTargetDisplayParts); } if (isTypeParameterList) { - prefixDisplayParts.push(ts.punctuationPart(24)); + prefixDisplayParts.push(ts.punctuationPart(24 /* LessThanToken */)); var typeParameters = candidateSignature.typeParameters; signatureHelpParameters = typeParameters && typeParameters.length > 0 ? ts.map(typeParameters, createSignatureHelpParameterForTypeParameter) : emptyArray; - suffixDisplayParts.push(ts.punctuationPart(25)); + suffixDisplayParts.push(ts.punctuationPart(25 /* GreaterThanToken */)); var parameterParts = ts.mapToDisplayParts(function (writer) { return typeInfoResolver.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(candidateSignature.parameters, writer, invocation); }); @@ -26294,10 +30973,10 @@ var ts; return typeInfoResolver.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(candidateSignature.typeParameters, writer, invocation); }); prefixDisplayParts.push.apply(prefixDisplayParts, typeParameterParts); - prefixDisplayParts.push(ts.punctuationPart(16)); + prefixDisplayParts.push(ts.punctuationPart(16 /* OpenParenToken */)); var parameters = candidateSignature.parameters; signatureHelpParameters = parameters.length > 0 ? ts.map(parameters, createSignatureHelpParameterForParameter) : emptyArray; - suffixDisplayParts.push(ts.punctuationPart(17)); + suffixDisplayParts.push(ts.punctuationPart(17 /* CloseParenToken */)); } var returnTypeParts = ts.mapToDisplayParts(function (writer) { return typeInfoResolver.getSymbolDisplayBuilder().buildReturnTypeDisplay(candidateSignature, writer, invocation); @@ -26307,12 +30986,13 @@ var ts; isVariadic: candidateSignature.hasRestParameter, prefixDisplayParts: prefixDisplayParts, suffixDisplayParts: suffixDisplayParts, - separatorDisplayParts: [ts.punctuationPart(23), ts.spacePart()], + separatorDisplayParts: [ts.punctuationPart(23 /* CommaToken */), ts.spacePart()], parameters: signatureHelpParameters, documentation: candidateSignature.getDocumentationComment() }; }); var argumentIndex = argumentListInfo.argumentIndex; + // argumentCount is the *apparent* number of arguments. var argumentCount = argumentListInfo.argumentCount; var selectedItemIndex = candidates.indexOf(bestSignature); if (selectedItemIndex < 0) { @@ -26354,6 +31034,8 @@ var ts; SignatureHelp.getSignatureHelpItems = getSignatureHelpItems; })(SignatureHelp = ts.SignatureHelp || (ts.SignatureHelp = {})); })(ts || (ts = {})); +// These utilities are common to multiple language service features. +/* @internal */ var ts; (function (ts) { function getEndLinePosition(line, sourceFile) { @@ -26361,12 +31043,19 @@ var ts; var lineStarts = sourceFile.getLineStarts(); var lineIndex = line; if (lineIndex + 1 === lineStarts.length) { + // last line - return EOF return sourceFile.text.length - 1; } else { + // current line start var start = lineStarts[lineIndex]; + // take the start position of the next line -1 = it should be some line break var pos = lineStarts[lineIndex + 1] - 1; ts.Debug.assert(ts.isLineBreak(sourceFile.text.charCodeAt(pos))); + // walk backwards skipping line breaks, stop the the beginning of current line. + // i.e: + // + // $ <- end of line for this position should match the start position while (start <= pos && ts.isLineBreak(sourceFile.text.charCodeAt(pos))) { pos--; } @@ -26411,107 +31100,116 @@ var ts; return false; } switch (n.kind) { - case 201: - case 202: - case 204: - case 154: - case 150: - case 145: - case 179: - case 206: - case 207: - return nodeEndsWith(n, 15, sourceFile); - case 223: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: + case 154 /* ObjectLiteralExpression */: + case 150 /* ObjectBindingPattern */: + case 145 /* TypeLiteral */: + case 179 /* Block */: + case 206 /* ModuleBlock */: + case 207 /* CaseBlock */: + return nodeEndsWith(n, 15 /* CloseBraceToken */, sourceFile); + case 223 /* CatchClause */: return isCompletedNode(n.block, sourceFile); - case 158: + case 158 /* NewExpression */: if (!n.arguments) { return true; } - case 157: - case 161: - case 149: - return nodeEndsWith(n, 17, sourceFile); - case 142: - case 143: + // fall through + case 157 /* CallExpression */: + case 161 /* ParenthesizedExpression */: + case 149 /* ParenthesizedType */: + return nodeEndsWith(n, 17 /* CloseParenToken */, sourceFile); + case 142 /* FunctionType */: + case 143 /* ConstructorType */: return isCompletedNode(n.type, sourceFile); - case 135: - case 136: - case 137: - case 200: - case 162: - case 134: - case 133: - case 139: - case 138: - case 163: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 139 /* ConstructSignature */: + case 138 /* CallSignature */: + case 163 /* ArrowFunction */: if (n.body) { return isCompletedNode(n.body, sourceFile); } if (n.type) { return isCompletedNode(n.type, sourceFile); } - return hasChildOfKind(n, 17, sourceFile); - case 205: + // Even though type parameters can be unclosed, we can get away with + // having at least a closing paren. + return hasChildOfKind(n, 17 /* CloseParenToken */, sourceFile); + case 205 /* ModuleDeclaration */: return n.body && isCompletedNode(n.body, sourceFile); - case 183: + case 183 /* IfStatement */: if (n.elseStatement) { return isCompletedNode(n.elseStatement, sourceFile); } return isCompletedNode(n.thenStatement, sourceFile); - case 182: + case 182 /* ExpressionStatement */: return isCompletedNode(n.expression, sourceFile); - case 153: - case 151: - case 156: - case 127: - case 147: - return nodeEndsWith(n, 19, sourceFile); - case 140: + case 153 /* ArrayLiteralExpression */: + case 151 /* ArrayBindingPattern */: + case 156 /* ElementAccessExpression */: + case 127 /* ComputedPropertyName */: + case 147 /* TupleType */: + return nodeEndsWith(n, 19 /* CloseBracketToken */, sourceFile); + case 140 /* IndexSignature */: if (n.type) { return isCompletedNode(n.type, sourceFile); } - return hasChildOfKind(n, 19, sourceFile); - case 220: - case 221: + return hasChildOfKind(n, 19 /* CloseBracketToken */, sourceFile); + case 220 /* CaseClause */: + case 221 /* DefaultClause */: + // there is no such thing as terminator token for CaseClause/DefaultClause so for simplicitly always consider them non-completed return false; - case 186: - case 187: - case 188: - case 185: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 185 /* WhileStatement */: return isCompletedNode(n.statement, sourceFile); - case 184: - var hasWhileKeyword = findChildOfKind(n, 100, sourceFile); + case 184 /* DoStatement */: + // rough approximation: if DoStatement has While keyword - then if node is completed is checking the presence of ')'; + var hasWhileKeyword = findChildOfKind(n, 100 /* WhileKeyword */, sourceFile); if (hasWhileKeyword) { - return nodeEndsWith(n, 17, sourceFile); + return nodeEndsWith(n, 17 /* CloseParenToken */, sourceFile); } return isCompletedNode(n.statement, sourceFile); - case 144: + case 144 /* TypeQuery */: return isCompletedNode(n.exprName, sourceFile); - case 165: - case 164: - case 166: - case 172: - case 173: + case 165 /* TypeOfExpression */: + case 164 /* DeleteExpression */: + case 166 /* VoidExpression */: + case 172 /* YieldExpression */: + case 173 /* SpreadElementExpression */: var unaryWordExpression = n; return isCompletedNode(unaryWordExpression.expression, sourceFile); - case 159: + case 159 /* TaggedTemplateExpression */: return isCompletedNode(n.template, sourceFile); - case 171: + case 171 /* TemplateExpression */: var lastSpan = ts.lastOrUndefined(n.templateSpans); return isCompletedNode(lastSpan, sourceFile); - case 176: + case 176 /* TemplateSpan */: return ts.nodeIsPresent(n.literal); - case 167: + case 167 /* PrefixUnaryExpression */: return isCompletedNode(n.operand, sourceFile); - case 169: + case 169 /* BinaryExpression */: return isCompletedNode(n.right, sourceFile); - case 170: + case 170 /* ConditionalExpression */: return isCompletedNode(n.whenFalse, sourceFile); default: return true; } } ts.isCompletedNode = isCompletedNode; + /* + * Checks if node ends with 'expectedLastToken'. + * If child at position 'length - 1' is 'SemicolonToken' it is skipped and 'expectedLastToken' is compared with child at position 'length - 2'. + */ function nodeEndsWith(n, expectedLastToken, sourceFile) { var children = n.getChildren(sourceFile); if (children.length) { @@ -26519,7 +31217,7 @@ var ts; if (last.kind === expectedLastToken) { return true; } - else if (last.kind === 22 && children.length !== 1) { + else if (last.kind === 22 /* SemicolonToken */ && children.length !== 1) { return children[children.length - 2].kind === expectedLastToken; } } @@ -26527,6 +31225,10 @@ var ts; } function findListItemInfo(node) { var list = findContainingList(node); + // It is possible at this point for syntaxList to be undefined, either if + // node.parent had no list child, or if none of its list children contained + // the span of node. If this happens, return undefined. The caller should + // handle this case. if (!list) { return undefined; } @@ -26547,43 +31249,60 @@ var ts; } ts.findChildOfKind = findChildOfKind; function findContainingList(node) { + // The node might be a list element (nonsynthetic) or a comma (synthetic). Either way, it will + // be parented by the container of the SyntaxList, not the SyntaxList itself. + // In order to find the list item index, we first need to locate SyntaxList itself and then search + // for the position of the relevant node (or comma). var syntaxList = ts.forEach(node.parent.getChildren(), function (c) { - if (c.kind === 228 && c.pos <= node.pos && c.end >= node.end) { + // find syntax list that covers the span of the node + if (c.kind === 228 /* SyntaxList */ && c.pos <= node.pos && c.end >= node.end) { return c; } }); + // Either we didn't find an appropriate list, or the list must contain us. ts.Debug.assert(!syntaxList || ts.contains(syntaxList.getChildren(), node)); return syntaxList; } ts.findContainingList = findContainingList; + /* Gets the token whose text has range [start, end) and + * position >= start and (position < end or (position === end && token is keyword or identifier)) + */ function getTouchingWord(sourceFile, position) { return getTouchingToken(sourceFile, position, function (n) { return isWord(n.kind); }); } ts.getTouchingWord = getTouchingWord; + /* Gets the token whose text has range [start, end) and position >= start + * and (position < end or (position === end && token is keyword or identifier or numeric\string litera)) + */ function getTouchingPropertyName(sourceFile, position) { return getTouchingToken(sourceFile, position, function (n) { return isPropertyName(n.kind); }); } ts.getTouchingPropertyName = getTouchingPropertyName; + /** Returns the token if position is in [start, end) or if position === end and includeItemAtEndPosition(token) === true */ function getTouchingToken(sourceFile, position, includeItemAtEndPosition) { return getTokenAtPositionWorker(sourceFile, position, false, includeItemAtEndPosition); } ts.getTouchingToken = getTouchingToken; + /** Returns a token if position is in [start-of-leading-trivia, end) */ function getTokenAtPosition(sourceFile, position) { return getTokenAtPositionWorker(sourceFile, position, true, undefined); } ts.getTokenAtPosition = getTokenAtPosition; + /** Get the token whose text contains the position */ function getTokenAtPositionWorker(sourceFile, position, allowPositionInLeadingTrivia, includeItemAtEndPosition) { var current = sourceFile; outer: while (true) { if (isToken(current)) { + // exit early return current; } + // find the child that contains 'position' for (var i = 0, n = current.getChildCount(sourceFile); i < n; i++) { var child = current.getChildAt(i); var start = allowPositionInLeadingTrivia ? child.getFullStart() : child.getStart(sourceFile); if (start <= position) { var end = child.getEnd(); - if (position < end || (position === end && child.kind === 1)) { + if (position < end || (position === end && child.kind === 1 /* EndOfFileToken */)) { current = child; continue outer; } @@ -26598,7 +31317,17 @@ var ts; return current; } } + /** + * The token on the left of the position is the token that strictly includes the position + * or sits to the left of the cursor if it is on a boundary. For example + * + * fo|o -> will return foo + * foo |bar -> will return foo + * + */ function findTokenOnLeftOfPosition(file, position) { + // Ideally, getTokenAtPosition should return a token. However, it is currently + // broken, so we do a check to make sure the result was indeed a token. var tokenAtPosition = getTokenAtPosition(file, position); if (isToken(tokenAtPosition) && position > tokenAtPosition.getStart(file) && position < tokenAtPosition.getEnd()) { return tokenAtPosition; @@ -26610,12 +31339,16 @@ var ts; return find(parent); function find(n) { if (isToken(n) && n.pos === previousToken.end) { + // this is token that starts at the end of previous token - return it return n; } var children = n.getChildren(); for (var _i = 0; _i < children.length; _i++) { var child = children[_i]; - var shouldDiveInChildNode = (child.pos <= previousToken.pos && child.end > previousToken.end) || + var shouldDiveInChildNode = + // previous token is enclosed somewhere in the child + (child.pos <= previousToken.pos && child.end > previousToken.end) || + // previous token ends exactly at the beginning of child (child.pos === previousToken.end); if (shouldDiveInChildNode && nodeHasTokens(child)) { return find(child); @@ -26645,21 +31378,28 @@ var ts; if (nodeHasTokens(child)) { if (position <= child.end) { if (child.getStart(sourceFile) >= position) { + // actual start of the node is past the position - previous token should be at the end of previous child var candidate = findRightmostChildNodeWithTokens(children, i); return candidate && findRightmostToken(candidate); } else { + // candidate should be in this node return find(child); } } } } - ts.Debug.assert(startNode !== undefined || n.kind === 227); + ts.Debug.assert(startNode !== undefined || n.kind === 227 /* SourceFile */); + // Here we know that none of child token nodes embrace the position, + // the only known case is when position is at the end of the file. + // Try to find the rightmost token in the file without filtering. + // Namely we are skipping the check: 'position < node.end' if (children.length) { var candidate = findRightmostChildNodeWithTokens(children, children.length); return candidate && findRightmostToken(candidate); } } + /// finds last node that is considered as candidate for search (isCandidate(node) === true) starting from 'exclusiveStartPosition' function findRightmostChildNodeWithTokens(children, exclusiveStartPosition) { for (var i = exclusiveStartPosition - 1; i >= 0; --i) { if (nodeHasTokens(children[i])) { @@ -26670,20 +31410,22 @@ var ts; } ts.findPrecedingToken = findPrecedingToken; function nodeHasTokens(n) { + // If we have a token or node that has a non-zero width, it must have tokens. + // Note, that getWidth() does not take trivia into account. return n.getWidth() !== 0; } function getNodeModifiers(node) { var flags = ts.getCombinedNodeFlags(node); var result = []; - if (flags & 32) + if (flags & 32 /* Private */) result.push(ts.ScriptElementKindModifier.privateMemberModifier); - if (flags & 64) + if (flags & 64 /* Protected */) result.push(ts.ScriptElementKindModifier.protectedMemberModifier); - if (flags & 16) + if (flags & 16 /* Public */) result.push(ts.ScriptElementKindModifier.publicMemberModifier); - if (flags & 128) + if (flags & 128 /* Static */) result.push(ts.ScriptElementKindModifier.staticModifier); - if (flags & 1) + if (flags & 1 /* Export */) result.push(ts.ScriptElementKindModifier.exportedModifier); if (ts.isInAmbientContext(node)) result.push(ts.ScriptElementKindModifier.ambientModifier); @@ -26691,32 +31433,32 @@ var ts; } ts.getNodeModifiers = getNodeModifiers; function getTypeArgumentOrTypeParameterList(node) { - if (node.kind === 141 || node.kind === 157) { + if (node.kind === 141 /* TypeReference */ || node.kind === 157 /* CallExpression */) { return node.typeArguments; } - if (ts.isFunctionLike(node) || node.kind === 201 || node.kind === 202) { + if (ts.isFunctionLike(node) || node.kind === 201 /* ClassDeclaration */ || node.kind === 202 /* InterfaceDeclaration */) { return node.typeParameters; } return undefined; } ts.getTypeArgumentOrTypeParameterList = getTypeArgumentOrTypeParameterList; function isToken(n) { - return n.kind >= 0 && n.kind <= 125; + return n.kind >= 0 /* FirstToken */ && n.kind <= 125 /* LastToken */; } ts.isToken = isToken; function isWord(kind) { - return kind === 65 || ts.isKeyword(kind); + return kind === 65 /* Identifier */ || ts.isKeyword(kind); } ts.isWord = isWord; function isPropertyName(kind) { - return kind === 8 || kind === 7 || isWord(kind); + return kind === 8 /* StringLiteral */ || kind === 7 /* NumericLiteral */ || isWord(kind); } function isComment(kind) { - return kind === 2 || kind === 3; + return kind === 2 /* SingleLineCommentTrivia */ || kind === 3 /* MultiLineCommentTrivia */; } ts.isComment = isComment; function isPunctuation(kind) { - return 14 <= kind && kind <= 64; + return 14 /* FirstPunctuation */ <= kind && kind <= 64 /* LastPunctuation */; } ts.isPunctuation = isPunctuation; function isInsideTemplateLiteral(node, position) { @@ -26726,9 +31468,9 @@ var ts; ts.isInsideTemplateLiteral = isInsideTemplateLiteral; function isAccessibilityModifier(kind) { switch (kind) { - case 109: - case 107: - case 108: + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: return true; } return false; @@ -26751,10 +31493,12 @@ var ts; } ts.compareDataObjects = compareDataObjects; })(ts || (ts = {})); +// Display-part writer helpers +/* @internal */ var ts; (function (ts) { function isFirstDeclarationOfSymbolParameter(symbol) { - return symbol.declarations && symbol.declarations.length > 0 && symbol.declarations[0].kind === 129; + return symbol.declarations && symbol.declarations.length > 0 && symbol.declarations[0].kind === 129 /* Parameter */; } ts.isFirstDeclarationOfSymbolParameter = isFirstDeclarationOfSymbolParameter; var displayPartWriter = getDisplayPartWriter(); @@ -26809,46 +31553,46 @@ var ts; return displayPart(text, displayPartKind(symbol), symbol); function displayPartKind(symbol) { var flags = symbol.flags; - if (flags & 3) { + if (flags & 3 /* Variable */) { return isFirstDeclarationOfSymbolParameter(symbol) ? ts.SymbolDisplayPartKind.parameterName : ts.SymbolDisplayPartKind.localName; } - else if (flags & 4) { + else if (flags & 4 /* Property */) { return ts.SymbolDisplayPartKind.propertyName; } - else if (flags & 32768) { + else if (flags & 32768 /* GetAccessor */) { return ts.SymbolDisplayPartKind.propertyName; } - else if (flags & 65536) { + else if (flags & 65536 /* SetAccessor */) { return ts.SymbolDisplayPartKind.propertyName; } - else if (flags & 8) { + else if (flags & 8 /* EnumMember */) { return ts.SymbolDisplayPartKind.enumMemberName; } - else if (flags & 16) { + else if (flags & 16 /* Function */) { return ts.SymbolDisplayPartKind.functionName; } - else if (flags & 32) { + else if (flags & 32 /* Class */) { return ts.SymbolDisplayPartKind.className; } - else if (flags & 64) { + else if (flags & 64 /* Interface */) { return ts.SymbolDisplayPartKind.interfaceName; } - else if (flags & 384) { + else if (flags & 384 /* Enum */) { return ts.SymbolDisplayPartKind.enumName; } - else if (flags & 1536) { + else if (flags & 1536 /* Module */) { return ts.SymbolDisplayPartKind.moduleName; } - else if (flags & 8192) { + else if (flags & 8192 /* Method */) { return ts.SymbolDisplayPartKind.methodName; } - else if (flags & 262144) { + else if (flags & 262144 /* TypeParameter */) { return ts.SymbolDisplayPartKind.typeParameterName; } - else if (flags & 524288) { + else if (flags & 524288 /* TypeAlias */) { return ts.SymbolDisplayPartKind.aliasName; } - else if (flags & 8388608) { + else if (flags & 8388608 /* Alias */) { return ts.SymbolDisplayPartKind.aliasName; } return ts.SymbolDisplayPartKind.text; @@ -26921,11 +31665,12 @@ var ts; })(ts || (ts = {})); /// /// +/* @internal */ var ts; (function (ts) { var formatting; (function (formatting) { - var scanner = ts.createScanner(2, false); + var scanner = ts.createScanner(2 /* Latest */, false); var ScanAction; (function (ScanAction) { ScanAction[ScanAction["Scan"] = 0] = "Scan"; @@ -26958,7 +31703,7 @@ var ts; if (isStarted) { if (trailingTrivia) { ts.Debug.assert(trailingTrivia.length !== 0); - wasNewLine = trailingTrivia[trailingTrivia.length - 1].kind === 4; + wasNewLine = trailingTrivia[trailingTrivia.length - 1].kind === 4 /* NewLineTrivia */; } else { wasNewLine = false; @@ -26971,11 +31716,13 @@ var ts; } var t; var pos = scanner.getStartPos(); + // Read leading trivia and token while (pos < endPos) { var t_2 = scanner.getToken(); if (!ts.isTrivia(t_2)) { break; } + // consume leading trivia scanner.scan(); var item_4 = { pos: pos, @@ -26993,72 +31740,83 @@ var ts; function shouldRescanGreaterThanToken(node) { if (node) { switch (node.kind) { - case 27: - case 60: - case 61: - case 42: - case 41: + case 27 /* GreaterThanEqualsToken */: + case 60 /* GreaterThanGreaterThanEqualsToken */: + case 61 /* GreaterThanGreaterThanGreaterThanEqualsToken */: + case 42 /* GreaterThanGreaterThanGreaterThanToken */: + case 41 /* GreaterThanGreaterThanToken */: return true; } } return false; } function shouldRescanSlashToken(container) { - return container.kind === 9; + return container.kind === 9 /* RegularExpressionLiteral */; } function shouldRescanTemplateToken(container) { - return container.kind === 12 || - container.kind === 13; + return container.kind === 12 /* TemplateMiddle */ || + container.kind === 13 /* TemplateTail */; } function startsWithSlashToken(t) { - return t === 36 || t === 57; + return t === 36 /* SlashToken */ || t === 57 /* SlashEqualsToken */; } function readTokenInfo(n) { if (!isOnToken()) { + // scanner is not on the token (either advance was not called yet or scanner is already past the end position) return { leadingTrivia: leadingTrivia, trailingTrivia: undefined, token: undefined }; } + // normally scanner returns the smallest available token + // check the kind of context node to determine if scanner should have more greedy behavior and consume more text. var expectedScanAction = shouldRescanGreaterThanToken(n) - ? 1 + ? 1 /* RescanGreaterThanToken */ : shouldRescanSlashToken(n) - ? 2 + ? 2 /* RescanSlashToken */ : shouldRescanTemplateToken(n) - ? 3 - : 0; + ? 3 /* RescanTemplateToken */ + : 0 /* Scan */; if (lastTokenInfo && expectedScanAction === lastScanAction) { + // readTokenInfo was called before with the same expected scan action. + // No need to re-scan text, return existing 'lastTokenInfo' + // it is ok to call fixTokenKind here since it does not affect + // what portion of text is consumed. In opposize rescanning can change it, + // i.e. for '>=' when originally scanner eats just one character + // and rescanning forces it to consume more. return fixTokenKind(lastTokenInfo, n); } if (scanner.getStartPos() !== savedPos) { ts.Debug.assert(lastTokenInfo !== undefined); + // readTokenInfo was called before but scan action differs - rescan text scanner.setTextPos(savedPos); scanner.scan(); } var currentToken = scanner.getToken(); - if (expectedScanAction === 1 && currentToken === 25) { + if (expectedScanAction === 1 /* RescanGreaterThanToken */ && currentToken === 25 /* GreaterThanToken */) { currentToken = scanner.reScanGreaterToken(); ts.Debug.assert(n.kind === currentToken); - lastScanAction = 1; + lastScanAction = 1 /* RescanGreaterThanToken */; } - else if (expectedScanAction === 2 && startsWithSlashToken(currentToken)) { + else if (expectedScanAction === 2 /* RescanSlashToken */ && startsWithSlashToken(currentToken)) { currentToken = scanner.reScanSlashToken(); ts.Debug.assert(n.kind === currentToken); - lastScanAction = 2; + lastScanAction = 2 /* RescanSlashToken */; } - else if (expectedScanAction === 3 && currentToken === 15) { + else if (expectedScanAction === 3 /* RescanTemplateToken */ && currentToken === 15 /* CloseBraceToken */) { currentToken = scanner.reScanTemplateToken(); - lastScanAction = 3; + lastScanAction = 3 /* RescanTemplateToken */; } else { - lastScanAction = 0; + lastScanAction = 0 /* Scan */; } var token = { pos: scanner.getStartPos(), end: scanner.getTextPos(), kind: currentToken }; + // consume trailing trivia if (trailingTrivia) { trailingTrivia = undefined; } @@ -27076,7 +31834,8 @@ var ts; trailingTrivia = []; } trailingTrivia.push(trivia); - if (currentToken === 4) { + if (currentToken === 4 /* NewLineTrivia */) { + // move past new line scanner.scan(); break; } @@ -27091,8 +31850,12 @@ var ts; function isOnToken() { var current = (lastTokenInfo && lastTokenInfo.token.kind) || scanner.getToken(); var startPos = (lastTokenInfo && lastTokenInfo.token.pos) || scanner.getStartPos(); - return startPos < endPos && current !== 1 && !ts.isTrivia(current); + return startPos < endPos && current !== 1 /* EndOfFileToken */ && !ts.isTrivia(current); } + // when containing node in the tree is token + // but its kind differs from the kind that was returned by the scanner, + // then kind needs to be fixed. This might happen in cases + // when parser interprets token differently, i.e keyword treated as identifier function fixTokenKind(tokenInfo, container) { if (ts.isToken(container) && tokenInfo.token.kind !== container.kind) { tokenInfo.token.kind = container.kind; @@ -27103,21 +31866,8 @@ var ts; formatting.getFormattingScanner = getFormattingScanner; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27138,6 +31888,7 @@ var ts; this.nextTokenSpan = nextRange; this.nextTokenParent = nextTokenParent; this.contextNode = commonParent; + // drop cached results this.contextNodeAllOnSameLine = undefined; this.nextNodeAllOnSameLine = undefined; this.tokensAreOnSameLine = undefined; @@ -27182,8 +31933,8 @@ var ts; return startLine == endLine; }; FormattingContext.prototype.BlockIsOnOneLine = function (node) { - var openBrace = ts.findChildOfKind(node, 14, this.sourceFile); - var closeBrace = ts.findChildOfKind(node, 15, this.sourceFile); + var openBrace = ts.findChildOfKind(node, 14 /* OpenBraceToken */, this.sourceFile); + var closeBrace = ts.findChildOfKind(node, 15 /* CloseBraceToken */, this.sourceFile); if (openBrace && closeBrace) { var startLine = this.sourceFile.getLineAndCharacterOfPosition(openBrace.getEnd()).line; var endLine = this.sourceFile.getLineAndCharacterOfPosition(closeBrace.getStart(this.sourceFile)).line; @@ -27196,21 +31947,8 @@ var ts; formatting.FormattingContext = FormattingContext; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27225,28 +31963,15 @@ var ts; var FormattingRequestKind = formatting.FormattingRequestKind; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; (function (formatting) { var Rule = (function () { function Rule(Descriptor, Operation, Flag) { - if (Flag === void 0) { Flag = 0; } + if (Flag === void 0) { Flag = 0 /* None */; } this.Descriptor = Descriptor; this.Operation = Operation; this.Flag = Flag; @@ -27261,21 +31986,8 @@ var ts; formatting.Rule = Rule; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27289,21 +32001,8 @@ var ts; var RuleAction = formatting.RuleAction; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27334,21 +32033,8 @@ var ts; formatting.RuleDescriptor = RuleDescriptor; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27360,21 +32046,8 @@ var ts; var RuleFlags = formatting.RuleFlags; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27402,21 +32075,8 @@ var ts; formatting.RuleOperation = RuleOperation; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27450,21 +32110,8 @@ var ts; formatting.RuleOperationContext = RuleOperationContext; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27474,74 +32121,113 @@ var ts; /// /// Common Rules /// - this.IgnoreBeforeComment = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.Comments), formatting.RuleOperation.create1(1)); - this.IgnoreAfterLineComment = new formatting.Rule(formatting.RuleDescriptor.create3(2, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create1(1)); - this.NoSpaceBeforeSemicolon = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 22), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeColon = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 51), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8)); - this.NoSpaceBeforeQuestionMark = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 50), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8)); - this.SpaceAfterColon = new formatting.Rule(formatting.RuleDescriptor.create3(51, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 2)); - this.SpaceAfterQuestionMarkInConditionalOperator = new formatting.Rule(formatting.RuleDescriptor.create3(50, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsConditionalOperatorContext), 2)); - this.NoSpaceAfterQuestionMark = new formatting.Rule(formatting.RuleDescriptor.create3(50, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceAfterSemicolon = new formatting.Rule(formatting.RuleDescriptor.create3(22, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceAfterCloseBrace = new formatting.Rule(formatting.RuleDescriptor.create3(15, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsAfterCodeBlockContext), 2)); - this.SpaceBetweenCloseBraceAndElse = new formatting.Rule(formatting.RuleDescriptor.create1(15, 76), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceBetweenCloseBraceAndWhile = new formatting.Rule(formatting.RuleDescriptor.create1(15, 100), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.NoSpaceAfterCloseBrace = new formatting.Rule(formatting.RuleDescriptor.create3(15, formatting.Shared.TokenRange.FromTokens([17, 19, 23, 22])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeDot = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 20), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterDot = new formatting.Rule(formatting.RuleDescriptor.create3(20, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeOpenBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 18), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterOpenBracket = new formatting.Rule(formatting.RuleDescriptor.create3(18, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeCloseBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 19), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterCloseBracket = new formatting.Rule(formatting.RuleDescriptor.create3(19, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); + // Leave comments alone + this.IgnoreBeforeComment = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.Comments), formatting.RuleOperation.create1(1 /* Ignore */)); + this.IgnoreAfterLineComment = new formatting.Rule(formatting.RuleDescriptor.create3(2 /* SingleLineCommentTrivia */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create1(1 /* Ignore */)); + // Space after keyword but not before ; or : or ? + this.NoSpaceBeforeSemicolon = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 22 /* SemicolonToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceBeforeColon = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 51 /* ColonToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8 /* Delete */)); + this.NoSpaceBeforeQuestionMark = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 50 /* QuestionToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8 /* Delete */)); + this.SpaceAfterColon = new formatting.Rule(formatting.RuleDescriptor.create3(51 /* ColonToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 2 /* Space */)); + this.SpaceAfterQuestionMarkInConditionalOperator = new formatting.Rule(formatting.RuleDescriptor.create3(50 /* QuestionToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsConditionalOperatorContext), 2 /* Space */)); + this.NoSpaceAfterQuestionMark = new formatting.Rule(formatting.RuleDescriptor.create3(50 /* QuestionToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.SpaceAfterSemicolon = new formatting.Rule(formatting.RuleDescriptor.create3(22 /* SemicolonToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + // Space after }. + this.SpaceAfterCloseBrace = new formatting.Rule(formatting.RuleDescriptor.create3(15 /* CloseBraceToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsAfterCodeBlockContext), 2 /* Space */)); + // Special case for (}, else) and (}, while) since else & while tokens are not part of the tree which makes SpaceAfterCloseBrace rule not applied + this.SpaceBetweenCloseBraceAndElse = new formatting.Rule(formatting.RuleDescriptor.create1(15 /* CloseBraceToken */, 76 /* ElseKeyword */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.SpaceBetweenCloseBraceAndWhile = new formatting.Rule(formatting.RuleDescriptor.create1(15 /* CloseBraceToken */, 100 /* WhileKeyword */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.NoSpaceAfterCloseBrace = new formatting.Rule(formatting.RuleDescriptor.create3(15 /* CloseBraceToken */, formatting.Shared.TokenRange.FromTokens([17 /* CloseParenToken */, 19 /* CloseBracketToken */, 23 /* CommaToken */, 22 /* SemicolonToken */])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // No space for indexer and dot + this.NoSpaceBeforeDot = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 20 /* DotToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceAfterDot = new formatting.Rule(formatting.RuleDescriptor.create3(20 /* DotToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceBeforeOpenBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 18 /* OpenBracketToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceAfterOpenBracket = new formatting.Rule(formatting.RuleDescriptor.create3(18 /* OpenBracketToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceBeforeCloseBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 19 /* CloseBracketToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceAfterCloseBracket = new formatting.Rule(formatting.RuleDescriptor.create3(19 /* CloseBracketToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // Place a space before open brace in a function declaration this.FunctionOpenBraceLeftTokenRange = formatting.Shared.TokenRange.AnyIncludingMultilineComments; - this.SpaceBeforeOpenBraceInFunction = new formatting.Rule(formatting.RuleDescriptor.create2(this.FunctionOpenBraceLeftTokenRange, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext, Rules.IsBeforeBlockContext, Rules.IsNotFormatOnEnter, Rules.IsSameLineTokenOrBeforeMultilineBlockContext), 2), 1); - this.TypeScriptOpenBraceLeftTokenRange = formatting.Shared.TokenRange.FromTokens([65, 3]); - this.SpaceBeforeOpenBraceInTypeScriptDeclWithBlock = new formatting.Rule(formatting.RuleDescriptor.create2(this.TypeScriptOpenBraceLeftTokenRange, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsTypeScriptDeclWithBlockContext, Rules.IsNotFormatOnEnter, Rules.IsSameLineTokenOrBeforeMultilineBlockContext), 2), 1); - this.ControlOpenBraceLeftTokenRange = formatting.Shared.TokenRange.FromTokens([17, 3, 75, 96, 81, 76]); - this.SpaceBeforeOpenBraceInControl = new formatting.Rule(formatting.RuleDescriptor.create2(this.ControlOpenBraceLeftTokenRange, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext, Rules.IsNotFormatOnEnter, Rules.IsSameLineTokenOrBeforeMultilineBlockContext), 2), 1); - this.SpaceAfterOpenBrace = new formatting.Rule(formatting.RuleDescriptor.create3(14, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSingleLineBlockContext), 2)); - this.SpaceBeforeCloseBrace = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 15), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSingleLineBlockContext), 2)); - this.NoSpaceBetweenEmptyBraceBrackets = new formatting.Rule(formatting.RuleDescriptor.create1(14, 15), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsObjectContext), 8)); - this.NewLineAfterOpenBraceInBlockContext = new formatting.Rule(formatting.RuleDescriptor.create3(14, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsMultilineBlockContext), 4)); - this.NewLineBeforeCloseBraceInBlockContext = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.AnyIncludingMultilineComments, 15), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsMultilineBlockContext), 4)); - this.NoSpaceAfterUnaryPrefixOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.UnaryPrefixOperators, formatting.Shared.TokenRange.UnaryPrefixExpressions), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8)); - this.NoSpaceAfterUnaryPreincrementOperator = new formatting.Rule(formatting.RuleDescriptor.create3(38, formatting.Shared.TokenRange.UnaryPreincrementExpressions), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterUnaryPredecrementOperator = new formatting.Rule(formatting.RuleDescriptor.create3(39, formatting.Shared.TokenRange.UnaryPredecrementExpressions), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeUnaryPostincrementOperator = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.UnaryPostincrementExpressions, 38), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeUnaryPostdecrementOperator = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.UnaryPostdecrementExpressions, 39), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceAfterPostincrementWhenFollowedByAdd = new formatting.Rule(formatting.RuleDescriptor.create1(38, 33), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterAddWhenFollowedByUnaryPlus = new formatting.Rule(formatting.RuleDescriptor.create1(33, 33), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterAddWhenFollowedByPreincrement = new formatting.Rule(formatting.RuleDescriptor.create1(33, 38), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterPostdecrementWhenFollowedBySubtract = new formatting.Rule(formatting.RuleDescriptor.create1(39, 34), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterSubtractWhenFollowedByUnaryMinus = new formatting.Rule(formatting.RuleDescriptor.create1(34, 34), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterSubtractWhenFollowedByPredecrement = new formatting.Rule(formatting.RuleDescriptor.create1(34, 39), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.NoSpaceBeforeComma = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 23), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceAfterCertainKeywords = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([98, 94, 88, 74, 90, 97]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceAfterLetConstInVariableDeclaration = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([105, 70]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsStartOfVariableDeclarationList), 2)); - this.NoSpaceBeforeOpenParenInFuncCall = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsFunctionCallOrNewContext, Rules.IsPreviousTokenNotComma), 8)); - this.SpaceAfterFunctionInFuncDecl = new formatting.Rule(formatting.RuleDescriptor.create3(83, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2)); - this.NoSpaceBeforeOpenParenInFuncDecl = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsFunctionDeclContext), 8)); - this.SpaceAfterVoidOperator = new formatting.Rule(formatting.RuleDescriptor.create3(99, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsVoidOpContext), 2)); - this.NoSpaceBetweenReturnAndSemicolon = new formatting.Rule(formatting.RuleDescriptor.create1(90, 22), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceBetweenStatements = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([17, 75, 76, 67]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotForContext), 2)); - this.SpaceAfterTryFinally = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([96, 81]), 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceAfterGetSetInMember = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([116, 120]), 65), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2)); - this.SpaceBeforeBinaryKeywordOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.BinaryKeywordOperators), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterBinaryKeywordOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryKeywordOperators, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.NoSpaceAfterConstructor = new formatting.Rule(formatting.RuleDescriptor.create1(114, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterModuleImport = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([117, 118]), 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceAfterCertainTypeScriptKeywords = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([69, 115, 77, 78, 79, 116, 103, 85, 104, 117, 107, 109, 120, 110]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceBeforeCertainTypeScriptKeywords = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.FromTokens([79, 103])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceAfterModuleName = new formatting.Rule(formatting.RuleDescriptor.create1(8, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsModuleDeclContext), 2)); - this.SpaceAfterArrow = new formatting.Rule(formatting.RuleDescriptor.create3(32, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.NoSpaceAfterEllipsis = new formatting.Rule(formatting.RuleDescriptor.create1(21, 65), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterOptionalParameters = new formatting.Rule(formatting.RuleDescriptor.create3(50, formatting.Shared.TokenRange.FromTokens([17, 23])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8)); - this.NoSpaceBeforeOpenAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.TypeNames, 24), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8)); - this.NoSpaceBetweenCloseParenAndAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create1(17, 24), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8)); - this.NoSpaceAfterOpenAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create3(24, formatting.Shared.TokenRange.TypeNames), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8)); - this.NoSpaceBeforeCloseAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 25), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8)); - this.NoSpaceAfterCloseAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create3(25, formatting.Shared.TokenRange.FromTokens([16, 18, 25, 23])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8)); - this.NoSpaceBetweenEmptyInterfaceBraceBrackets = new formatting.Rule(formatting.RuleDescriptor.create1(14, 15), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsObjectTypeContext), 8)); + this.SpaceBeforeOpenBraceInFunction = new formatting.Rule(formatting.RuleDescriptor.create2(this.FunctionOpenBraceLeftTokenRange, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext, Rules.IsBeforeBlockContext, Rules.IsNotFormatOnEnter, Rules.IsSameLineTokenOrBeforeMultilineBlockContext), 2 /* Space */), 1 /* CanDeleteNewLines */); + // Place a space before open brace in a TypeScript declaration that has braces as children (class, module, enum, etc) + this.TypeScriptOpenBraceLeftTokenRange = formatting.Shared.TokenRange.FromTokens([65 /* Identifier */, 3 /* MultiLineCommentTrivia */]); + this.SpaceBeforeOpenBraceInTypeScriptDeclWithBlock = new formatting.Rule(formatting.RuleDescriptor.create2(this.TypeScriptOpenBraceLeftTokenRange, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsTypeScriptDeclWithBlockContext, Rules.IsNotFormatOnEnter, Rules.IsSameLineTokenOrBeforeMultilineBlockContext), 2 /* Space */), 1 /* CanDeleteNewLines */); + // Place a space before open brace in a control flow construct + this.ControlOpenBraceLeftTokenRange = formatting.Shared.TokenRange.FromTokens([17 /* CloseParenToken */, 3 /* MultiLineCommentTrivia */, 75 /* DoKeyword */, 96 /* TryKeyword */, 81 /* FinallyKeyword */, 76 /* ElseKeyword */]); + this.SpaceBeforeOpenBraceInControl = new formatting.Rule(formatting.RuleDescriptor.create2(this.ControlOpenBraceLeftTokenRange, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext, Rules.IsNotFormatOnEnter, Rules.IsSameLineTokenOrBeforeMultilineBlockContext), 2 /* Space */), 1 /* CanDeleteNewLines */); + // Insert a space after { and before } in single-line contexts, but remove space from empty object literals {}. + this.SpaceAfterOpenBrace = new formatting.Rule(formatting.RuleDescriptor.create3(14 /* OpenBraceToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSingleLineBlockContext), 2 /* Space */)); + this.SpaceBeforeCloseBrace = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 15 /* CloseBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSingleLineBlockContext), 2 /* Space */)); + this.NoSpaceBetweenEmptyBraceBrackets = new formatting.Rule(formatting.RuleDescriptor.create1(14 /* OpenBraceToken */, 15 /* CloseBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsObjectContext), 8 /* Delete */)); + // Insert new line after { and before } in multi-line contexts. + this.NewLineAfterOpenBraceInBlockContext = new formatting.Rule(formatting.RuleDescriptor.create3(14 /* OpenBraceToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsMultilineBlockContext), 4 /* NewLine */)); + // For functions and control block place } on a new line [multi-line rule] + this.NewLineBeforeCloseBraceInBlockContext = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.AnyIncludingMultilineComments, 15 /* CloseBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsMultilineBlockContext), 4 /* NewLine */)); + // Special handling of unary operators. + // Prefix operators generally shouldn't have a space between + // them and their target unary expression. + this.NoSpaceAfterUnaryPrefixOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.UnaryPrefixOperators, formatting.Shared.TokenRange.UnaryPrefixExpressions), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8 /* Delete */)); + this.NoSpaceAfterUnaryPreincrementOperator = new formatting.Rule(formatting.RuleDescriptor.create3(38 /* PlusPlusToken */, formatting.Shared.TokenRange.UnaryPreincrementExpressions), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceAfterUnaryPredecrementOperator = new formatting.Rule(formatting.RuleDescriptor.create3(39 /* MinusMinusToken */, formatting.Shared.TokenRange.UnaryPredecrementExpressions), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceBeforeUnaryPostincrementOperator = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.UnaryPostincrementExpressions, 38 /* PlusPlusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceBeforeUnaryPostdecrementOperator = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.UnaryPostdecrementExpressions, 39 /* MinusMinusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // More unary operator special-casing. + // DevDiv 181814: Be careful when removing leading whitespace + // around unary operators. Examples: + // 1 - -2 --X--> 1--2 + // a + ++b --X--> a+++b + this.SpaceAfterPostincrementWhenFollowedByAdd = new formatting.Rule(formatting.RuleDescriptor.create1(38 /* PlusPlusToken */, 33 /* PlusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterAddWhenFollowedByUnaryPlus = new formatting.Rule(formatting.RuleDescriptor.create1(33 /* PlusToken */, 33 /* PlusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterAddWhenFollowedByPreincrement = new formatting.Rule(formatting.RuleDescriptor.create1(33 /* PlusToken */, 38 /* PlusPlusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterPostdecrementWhenFollowedBySubtract = new formatting.Rule(formatting.RuleDescriptor.create1(39 /* MinusMinusToken */, 34 /* MinusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterSubtractWhenFollowedByUnaryMinus = new formatting.Rule(formatting.RuleDescriptor.create1(34 /* MinusToken */, 34 /* MinusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterSubtractWhenFollowedByPredecrement = new formatting.Rule(formatting.RuleDescriptor.create1(34 /* MinusToken */, 39 /* MinusMinusToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.NoSpaceBeforeComma = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 23 /* CommaToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.SpaceAfterCertainKeywords = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([98 /* VarKeyword */, 94 /* ThrowKeyword */, 88 /* NewKeyword */, 74 /* DeleteKeyword */, 90 /* ReturnKeyword */, 97 /* TypeOfKeyword */]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.SpaceAfterLetConstInVariableDeclaration = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([105 /* LetKeyword */, 70 /* ConstKeyword */]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsStartOfVariableDeclarationList), 2 /* Space */)); + this.NoSpaceBeforeOpenParenInFuncCall = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsFunctionCallOrNewContext, Rules.IsPreviousTokenNotComma), 8 /* Delete */)); + this.SpaceAfterFunctionInFuncDecl = new formatting.Rule(formatting.RuleDescriptor.create3(83 /* FunctionKeyword */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2 /* Space */)); + this.NoSpaceBeforeOpenParenInFuncDecl = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsFunctionDeclContext), 8 /* Delete */)); + this.SpaceAfterVoidOperator = new formatting.Rule(formatting.RuleDescriptor.create3(99 /* VoidKeyword */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsVoidOpContext), 2 /* Space */)); + this.NoSpaceBetweenReturnAndSemicolon = new formatting.Rule(formatting.RuleDescriptor.create1(90 /* ReturnKeyword */, 22 /* SemicolonToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // Add a space between statements. All keywords except (do,else,case) has open/close parens after them. + // So, we have a rule to add a space for [),Any], [do,Any], [else,Any], and [case,Any] + this.SpaceBetweenStatements = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([17 /* CloseParenToken */, 75 /* DoKeyword */, 76 /* ElseKeyword */, 67 /* CaseKeyword */]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotForContext), 2 /* Space */)); + // This low-pri rule takes care of "try {" and "finally {" in case the rule SpaceBeforeOpenBraceInControl didn't execute on FormatOnEnter. + this.SpaceAfterTryFinally = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([96 /* TryKeyword */, 81 /* FinallyKeyword */]), 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + // get x() {} + // set x(val) {} + this.SpaceAfterGetSetInMember = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([116 /* GetKeyword */, 120 /* SetKeyword */]), 65 /* Identifier */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2 /* Space */)); + // Special case for binary operators (that are keywords). For these we have to add a space and shouldn't follow any user options. + this.SpaceBeforeBinaryKeywordOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.BinaryKeywordOperators), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterBinaryKeywordOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryKeywordOperators, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + // TypeScript-specific higher priority rules + // Treat constructor as an identifier in a function declaration, and remove spaces between constructor and following left parentheses + this.NoSpaceAfterConstructor = new formatting.Rule(formatting.RuleDescriptor.create1(114 /* ConstructorKeyword */, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // Use of module as a function call. e.g.: import m2 = module("m2"); + this.NoSpaceAfterModuleImport = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.FromTokens([117 /* ModuleKeyword */, 118 /* RequireKeyword */]), 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // Add a space around certain TypeScript keywords + this.SpaceAfterCertainTypeScriptKeywords = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.FromTokens([69 /* ClassKeyword */, 115 /* DeclareKeyword */, 77 /* EnumKeyword */, 78 /* ExportKeyword */, 79 /* ExtendsKeyword */, 116 /* GetKeyword */, 103 /* ImplementsKeyword */, 85 /* ImportKeyword */, 104 /* InterfaceKeyword */, 117 /* ModuleKeyword */, 107 /* PrivateKeyword */, 109 /* PublicKeyword */, 120 /* SetKeyword */, 110 /* StaticKeyword */]), formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.SpaceBeforeCertainTypeScriptKeywords = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.FromTokens([79 /* ExtendsKeyword */, 103 /* ImplementsKeyword */])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + // Treat string literals in module names as identifiers, and add a space between the literal and the opening Brace braces, e.g.: module "m2" { + this.SpaceAfterModuleName = new formatting.Rule(formatting.RuleDescriptor.create1(8 /* StringLiteral */, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsModuleDeclContext), 2 /* Space */)); + // Lambda expressions + this.SpaceAfterArrow = new formatting.Rule(formatting.RuleDescriptor.create3(32 /* EqualsGreaterThanToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + // Optional parameters and let args + this.NoSpaceAfterEllipsis = new formatting.Rule(formatting.RuleDescriptor.create1(21 /* DotDotDotToken */, 65 /* Identifier */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceAfterOptionalParameters = new formatting.Rule(formatting.RuleDescriptor.create3(50 /* QuestionToken */, formatting.Shared.TokenRange.FromTokens([17 /* CloseParenToken */, 23 /* CommaToken */])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsNotBinaryOpContext), 8 /* Delete */)); + // generics + this.NoSpaceBeforeOpenAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.TypeNames, 24 /* LessThanToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8 /* Delete */)); + this.NoSpaceBetweenCloseParenAndAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create1(17 /* CloseParenToken */, 24 /* LessThanToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8 /* Delete */)); + this.NoSpaceAfterOpenAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create3(24 /* LessThanToken */, formatting.Shared.TokenRange.TypeNames), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8 /* Delete */)); + this.NoSpaceBeforeCloseAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 25 /* GreaterThanToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8 /* Delete */)); + this.NoSpaceAfterCloseAngularBracket = new formatting.Rule(formatting.RuleDescriptor.create3(25 /* GreaterThanToken */, formatting.Shared.TokenRange.FromTokens([16 /* OpenParenToken */, 18 /* OpenBracketToken */, 25 /* GreaterThanToken */, 23 /* CommaToken */])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsTypeArgumentOrParameterContext), 8 /* Delete */)); + // Remove spaces in empty interface literals. e.g.: x: {} + this.NoSpaceBetweenEmptyInterfaceBraceBrackets = new formatting.Rule(formatting.RuleDescriptor.create1(14 /* OpenBraceToken */, 15 /* CloseBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsObjectTypeContext), 8 /* Delete */)); + // decorators + this.SpaceBeforeAt = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 52 /* AtToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.NoSpaceAfterAt = new formatting.Rule(formatting.RuleDescriptor.create3(52 /* AtToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.SpaceAfterDecorator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.FromTokens([65 /* Identifier */, 78 /* ExportKeyword */, 73 /* DefaultKeyword */, 69 /* ClassKeyword */, 110 /* StaticKeyword */, 109 /* PublicKeyword */, 107 /* PrivateKeyword */, 108 /* ProtectedKeyword */, 116 /* GetKeyword */, 120 /* SetKeyword */, 18 /* OpenBracketToken */, 35 /* AsteriskToken */])), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsEndOfDecoratorContextOnSameLine), 2 /* Space */)); + // These rules are higher in priority than user-configurable rules. this.HighPriorityCommonRules = [ this.IgnoreBeforeComment, this.IgnoreAfterLineComment, @@ -27565,6 +32251,7 @@ var ts; this.NoSpaceBeforeOpenParenInFuncCall, this.SpaceBeforeBinaryKeywordOperator, this.SpaceAfterBinaryKeywordOperator, this.SpaceAfterVoidOperator, + // TypeScript-specific rules this.NoSpaceAfterConstructor, this.NoSpaceAfterModuleImport, this.SpaceAfterCertainTypeScriptKeywords, this.SpaceBeforeCertainTypeScriptKeywords, this.SpaceAfterModuleName, @@ -27576,8 +32263,12 @@ var ts; this.NoSpaceBetweenCloseParenAndAngularBracket, this.NoSpaceAfterOpenAngularBracket, this.NoSpaceBeforeCloseAngularBracket, - this.NoSpaceAfterCloseAngularBracket + this.NoSpaceAfterCloseAngularBracket, + this.SpaceBeforeAt, + this.NoSpaceAfterAt, + this.SpaceAfterDecorator, ]; + // These rules are lower in priority than user-configurable rules. this.LowPriorityCommonRules = [ this.NoSpaceBeforeSemicolon, @@ -27589,60 +32280,81 @@ var ts; this.NoSpaceBeforeOpenParenInFuncDecl, this.SpaceBetweenStatements, this.SpaceAfterTryFinally ]; - this.SpaceAfterComma = new formatting.Rule(formatting.RuleDescriptor.create3(23, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.NoSpaceAfterComma = new formatting.Rule(formatting.RuleDescriptor.create3(23, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceBeforeBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.BinaryOperators), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.SpaceAfterBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryOperators, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2)); - this.NoSpaceBeforeBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.BinaryOperators), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 8)); - this.NoSpaceAfterBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryOperators, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 8)); - this.SpaceAfterKeywordInControl = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Keywords, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext), 2)); - this.NoSpaceAfterKeywordInControl = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Keywords, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext), 8)); - this.NewLineBeforeOpenBraceInFunction = new formatting.Rule(formatting.RuleDescriptor.create2(this.FunctionOpenBraceLeftTokenRange, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext, Rules.IsBeforeMultilineBlockContext), 4), 1); - this.NewLineBeforeOpenBraceInTypeScriptDeclWithBlock = new formatting.Rule(formatting.RuleDescriptor.create2(this.TypeScriptOpenBraceLeftTokenRange, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsTypeScriptDeclWithBlockContext, Rules.IsBeforeMultilineBlockContext), 4), 1); - this.NewLineBeforeOpenBraceInControl = new formatting.Rule(formatting.RuleDescriptor.create2(this.ControlOpenBraceLeftTokenRange, 14), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext, Rules.IsBeforeMultilineBlockContext), 4), 1); - this.SpaceAfterSemicolonInFor = new formatting.Rule(formatting.RuleDescriptor.create3(22, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsForContext), 2)); - this.NoSpaceAfterSemicolonInFor = new formatting.Rule(formatting.RuleDescriptor.create3(22, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsForContext), 8)); - this.SpaceAfterOpenParen = new formatting.Rule(formatting.RuleDescriptor.create3(16, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.SpaceBeforeCloseParen = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 17), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2)); - this.NoSpaceBetweenParens = new formatting.Rule(formatting.RuleDescriptor.create1(16, 17), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceAfterOpenParen = new formatting.Rule(formatting.RuleDescriptor.create3(16, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.NoSpaceBeforeCloseParen = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 17), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8)); - this.SpaceAfterAnonymousFunctionKeyword = new formatting.Rule(formatting.RuleDescriptor.create1(83, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2)); - this.NoSpaceAfterAnonymousFunctionKeyword = new formatting.Rule(formatting.RuleDescriptor.create1(83, 16), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 8)); + /// + /// Rules controlled by user options + /// + // Insert space after comma delimiter + this.SpaceAfterComma = new formatting.Rule(formatting.RuleDescriptor.create3(23 /* CommaToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.NoSpaceAfterComma = new formatting.Rule(formatting.RuleDescriptor.create3(23 /* CommaToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // Insert space before and after binary operators + this.SpaceBeforeBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.BinaryOperators), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.SpaceAfterBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryOperators, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 2 /* Space */)); + this.NoSpaceBeforeBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.Any, formatting.Shared.TokenRange.BinaryOperators), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 8 /* Delete */)); + this.NoSpaceAfterBinaryOperator = new formatting.Rule(formatting.RuleDescriptor.create4(formatting.Shared.TokenRange.BinaryOperators, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsBinaryOpContext), 8 /* Delete */)); + // Insert space after keywords in control flow statements + this.SpaceAfterKeywordInControl = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Keywords, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext), 2 /* Space */)); + this.NoSpaceAfterKeywordInControl = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Keywords, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext), 8 /* Delete */)); + // Open Brace braces after function + //TypeScript: Function can have return types, which can be made of tons of different token kinds + this.NewLineBeforeOpenBraceInFunction = new formatting.Rule(formatting.RuleDescriptor.create2(this.FunctionOpenBraceLeftTokenRange, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext, Rules.IsBeforeMultilineBlockContext), 4 /* NewLine */), 1 /* CanDeleteNewLines */); + // Open Brace braces after TypeScript module/class/interface + this.NewLineBeforeOpenBraceInTypeScriptDeclWithBlock = new formatting.Rule(formatting.RuleDescriptor.create2(this.TypeScriptOpenBraceLeftTokenRange, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsTypeScriptDeclWithBlockContext, Rules.IsBeforeMultilineBlockContext), 4 /* NewLine */), 1 /* CanDeleteNewLines */); + // Open Brace braces after control block + this.NewLineBeforeOpenBraceInControl = new formatting.Rule(formatting.RuleDescriptor.create2(this.ControlOpenBraceLeftTokenRange, 14 /* OpenBraceToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsControlDeclContext, Rules.IsBeforeMultilineBlockContext), 4 /* NewLine */), 1 /* CanDeleteNewLines */); + // Insert space after semicolon in for statement + this.SpaceAfterSemicolonInFor = new formatting.Rule(formatting.RuleDescriptor.create3(22 /* SemicolonToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsForContext), 2 /* Space */)); + this.NoSpaceAfterSemicolonInFor = new formatting.Rule(formatting.RuleDescriptor.create3(22 /* SemicolonToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsForContext), 8 /* Delete */)); + // Insert space after opening and before closing nonempty parenthesis + this.SpaceAfterOpenParen = new formatting.Rule(formatting.RuleDescriptor.create3(16 /* OpenParenToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.SpaceBeforeCloseParen = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 17 /* CloseParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 2 /* Space */)); + this.NoSpaceBetweenParens = new formatting.Rule(formatting.RuleDescriptor.create1(16 /* OpenParenToken */, 17 /* CloseParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceAfterOpenParen = new formatting.Rule(formatting.RuleDescriptor.create3(16 /* OpenParenToken */, formatting.Shared.TokenRange.Any), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + this.NoSpaceBeforeCloseParen = new formatting.Rule(formatting.RuleDescriptor.create2(formatting.Shared.TokenRange.Any, 17 /* CloseParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsSameLineTokenContext), 8 /* Delete */)); + // Insert space after function keyword for anonymous functions + this.SpaceAfterAnonymousFunctionKeyword = new formatting.Rule(formatting.RuleDescriptor.create1(83 /* FunctionKeyword */, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 2 /* Space */)); + this.NoSpaceAfterAnonymousFunctionKeyword = new formatting.Rule(formatting.RuleDescriptor.create1(83 /* FunctionKeyword */, 16 /* OpenParenToken */), formatting.RuleOperation.create2(new formatting.RuleOperationContext(Rules.IsFunctionDeclContext), 8 /* Delete */)); } Rules.prototype.getRuleName = function (rule) { var o = this; - for (var name_19 in o) { - if (o[name_19] === rule) { - return name_19; + for (var name_20 in o) { + if (o[name_20] === rule) { + return name_20; } } throw new Error("Unknown rule"); }; + /// + /// Contexts + /// Rules.IsForContext = function (context) { - return context.contextNode.kind === 186; + return context.contextNode.kind === 186 /* ForStatement */; }; Rules.IsNotForContext = function (context) { return !Rules.IsForContext(context); }; Rules.IsBinaryOpContext = function (context) { switch (context.contextNode.kind) { - case 169: - case 170: + case 169 /* BinaryExpression */: + case 170 /* ConditionalExpression */: return true; - case 208: - case 198: - case 129: - case 226: - case 132: - case 131: - return context.currentTokenSpan.kind === 53 || context.nextTokenSpan.kind === 53; - case 187: - return context.currentTokenSpan.kind === 86 || context.nextTokenSpan.kind === 86; - case 188: - return context.currentTokenSpan.kind === 125 || context.nextTokenSpan.kind === 125; - case 152: - return context.currentTokenSpan.kind === 53 || context.nextTokenSpan.kind === 53; + // equal in import a = module('a'); + case 208 /* ImportEqualsDeclaration */: + // equal in let a = 0; + case 198 /* VariableDeclaration */: + // equal in p = 0; + case 129 /* Parameter */: + case 226 /* EnumMember */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + return context.currentTokenSpan.kind === 53 /* EqualsToken */ || context.nextTokenSpan.kind === 53 /* EqualsToken */; + // "in" keyword in for (let x in []) { } + case 187 /* ForInStatement */: + return context.currentTokenSpan.kind === 86 /* InKeyword */ || context.nextTokenSpan.kind === 86 /* InKeyword */; + // Technically, "of" is not a binary operator, but format it the same way as "in" + case 188 /* ForOfStatement */: + return context.currentTokenSpan.kind === 125 /* OfKeyword */ || context.nextTokenSpan.kind === 125 /* OfKeyword */; + case 152 /* BindingElement */: + return context.currentTokenSpan.kind === 53 /* EqualsToken */ || context.nextTokenSpan.kind === 53 /* EqualsToken */; } return false; }; @@ -27650,7 +32362,7 @@ var ts; return !Rules.IsBinaryOpContext(context); }; Rules.IsConditionalOperatorContext = function (context) { - return context.contextNode.kind === 170; + return context.contextNode.kind === 170 /* ConditionalExpression */; }; Rules.IsSameLineTokenOrBeforeMultilineBlockContext = function (context) { //// This check is mainly used inside SpaceBeforeOpenBraceInControl and SpaceBeforeOpenBraceInFunction. @@ -27671,6 +32383,7 @@ var ts; //// * ) and { are on differnet lines. We only need to format if the block is multiline context. So in this case we format. return context.TokensAreOnSameLine() || Rules.IsBeforeMultilineBlockContext(context); }; + // This check is done before an open brace in a control construct, a function, or a typescript block declaration Rules.IsBeforeMultilineBlockContext = function (context) { return Rules.IsBeforeBlockContext(context) && !(context.NextNodeAllOnSameLine() || context.NextNodeBlockIsOnOneLine()); }; @@ -27686,31 +32399,38 @@ var ts; Rules.IsBeforeBlockContext = function (context) { return Rules.NodeIsBlockContext(context.nextTokenParent); }; + // IMPORTANT!!! This method must return true ONLY for nodes with open and close braces as immediate children Rules.NodeIsBlockContext = function (node) { if (Rules.NodeIsTypeScriptDeclWithBlockContext(node)) { + // This means we are in a context that looks like a block to the user, but in the grammar is actually not a node (it's a class, module, enum, object type literal, etc). return true; } switch (node.kind) { - case 179: - case 207: - case 154: - case 206: + case 179 /* Block */: + case 207 /* CaseBlock */: + case 154 /* ObjectLiteralExpression */: + case 206 /* ModuleBlock */: return true; } return false; }; Rules.IsFunctionDeclContext = function (context) { switch (context.contextNode.kind) { - case 200: - case 134: - case 133: - case 136: - case 137: - case 138: - case 162: - case 135: - case 163: - case 202: + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + //case SyntaxKind.MemberFunctionDeclaration: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + ///case SyntaxKind.MethodSignature: + case 138 /* CallSignature */: + case 162 /* FunctionExpression */: + case 135 /* Constructor */: + case 163 /* ArrowFunction */: + //case SyntaxKind.ConstructorDeclaration: + //case SyntaxKind.SimpleArrowFunctionExpression: + //case SyntaxKind.ParenthesizedArrowFunctionExpression: + case 202 /* InterfaceDeclaration */: return true; } return false; @@ -27720,93 +32440,107 @@ var ts; }; Rules.NodeIsTypeScriptDeclWithBlockContext = function (node) { switch (node.kind) { - case 201: - case 202: - case 204: - case 145: - case 205: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: + case 145 /* TypeLiteral */: + case 205 /* ModuleDeclaration */: return true; } return false; }; Rules.IsAfterCodeBlockContext = function (context) { switch (context.currentTokenParent.kind) { - case 201: - case 205: - case 204: - case 179: - case 223: - case 206: - case 193: + case 201 /* ClassDeclaration */: + case 205 /* ModuleDeclaration */: + case 204 /* EnumDeclaration */: + case 179 /* Block */: + case 223 /* CatchClause */: + case 206 /* ModuleBlock */: + case 193 /* SwitchStatement */: return true; } return false; }; Rules.IsControlDeclContext = function (context) { switch (context.contextNode.kind) { - case 183: - case 193: - case 186: - case 187: - case 188: - case 185: - case 196: - case 184: - case 192: - case 223: + case 183 /* IfStatement */: + case 193 /* SwitchStatement */: + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 185 /* WhileStatement */: + case 196 /* TryStatement */: + case 184 /* DoStatement */: + case 192 /* WithStatement */: + // TODO + // case SyntaxKind.ElseClause: + case 223 /* CatchClause */: return true; default: return false; } }; Rules.IsObjectContext = function (context) { - return context.contextNode.kind === 154; + return context.contextNode.kind === 154 /* ObjectLiteralExpression */; }; Rules.IsFunctionCallContext = function (context) { - return context.contextNode.kind === 157; + return context.contextNode.kind === 157 /* CallExpression */; }; Rules.IsNewContext = function (context) { - return context.contextNode.kind === 158; + return context.contextNode.kind === 158 /* NewExpression */; }; Rules.IsFunctionCallOrNewContext = function (context) { return Rules.IsFunctionCallContext(context) || Rules.IsNewContext(context); }; Rules.IsPreviousTokenNotComma = function (context) { - return context.currentTokenSpan.kind !== 23; + return context.currentTokenSpan.kind !== 23 /* CommaToken */; }; Rules.IsSameLineTokenContext = function (context) { return context.TokensAreOnSameLine(); }; + Rules.IsEndOfDecoratorContextOnSameLine = function (context) { + return context.TokensAreOnSameLine() && + context.contextNode.decorators && + Rules.NodeIsInDecoratorContext(context.currentTokenParent) && + !Rules.NodeIsInDecoratorContext(context.nextTokenParent); + }; + Rules.NodeIsInDecoratorContext = function (node) { + while (ts.isExpression(node)) { + node = node.parent; + } + return node.kind === 130 /* Decorator */; + }; Rules.IsStartOfVariableDeclarationList = function (context) { - return context.currentTokenParent.kind === 199 && + return context.currentTokenParent.kind === 199 /* VariableDeclarationList */ && context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos; }; Rules.IsNotFormatOnEnter = function (context) { - return context.formattingRequestKind != 2; + return context.formattingRequestKind != 2 /* FormatOnEnter */; }; Rules.IsModuleDeclContext = function (context) { - return context.contextNode.kind === 205; + return context.contextNode.kind === 205 /* ModuleDeclaration */; }; Rules.IsObjectTypeContext = function (context) { - return context.contextNode.kind === 145; + return context.contextNode.kind === 145 /* TypeLiteral */; // && context.contextNode.parent.kind !== SyntaxKind.InterfaceDeclaration; }; Rules.IsTypeArgumentOrParameter = function (token, parent) { - if (token.kind !== 24 && token.kind !== 25) { + if (token.kind !== 24 /* LessThanToken */ && token.kind !== 25 /* GreaterThanToken */) { return false; } switch (parent.kind) { - case 141: - case 201: - case 202: - case 200: - case 162: - case 163: - case 134: - case 133: - case 138: - case 139: - case 157: - case 158: + case 141 /* TypeReference */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 157 /* CallExpression */: + case 158 /* NewExpression */: return true; default: return false; @@ -27817,28 +32551,15 @@ var ts; Rules.IsTypeArgumentOrParameter(context.nextTokenSpan, context.nextTokenParent); }; Rules.IsVoidOpContext = function (context) { - return context.currentTokenSpan.kind === 99 && context.currentTokenParent.kind === 166; + return context.currentTokenSpan.kind === 99 /* VoidKeyword */ && context.currentTokenParent.kind === 166 /* VoidExpression */; }; return Rules; })(); formatting.Rules = Rules; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -27854,9 +32575,10 @@ var ts; return result; }; RulesMap.prototype.Initialize = function (rules) { - this.mapRowLength = 125 + 1; - this.map = new Array(this.mapRowLength * this.mapRowLength); - var rulesBucketConstructionStateList = new Array(this.map.length); + this.mapRowLength = 125 /* LastToken */ + 1; + this.map = new Array(this.mapRowLength * this.mapRowLength); //new Array(this.mapRowLength * this.mapRowLength); + // This array is used only during construction of the rulesbucket in the map + var rulesBucketConstructionStateList = new Array(this.map.length); //new Array(this.map.length); this.FillRules(rules, rulesBucketConstructionStateList); return this.map; }; @@ -27868,6 +32590,7 @@ var ts; }; RulesMap.prototype.GetRuleBucketIndex = function (row, column) { var rulesBucketIndex = (row * this.mapRowLength) + column; + //Debug.Assert(rulesBucketIndex < this.map.Length, "Trying to access an index outside the array."); return rulesBucketIndex; }; RulesMap.prototype.FillRule = function (rule, rulesBucketConstructionStateList) { @@ -27914,6 +32637,21 @@ var ts; var RulesPosition = formatting.RulesPosition; var RulesBucketConstructionState = (function () { function RulesBucketConstructionState() { + //// The Rules list contains all the inserted rules into a rulebucket in the following order: + //// 1- Ignore rules with specific token combination + //// 2- Ignore rules with any token combination + //// 3- Context rules with specific token combination + //// 4- Context rules with any token combination + //// 5- Non-context rules with specific token combination + //// 6- Non-context rules with any token combination + //// + //// The member rulesInsertionIndexBitmap is used to describe the number of rules + //// in each sub-bucket (above) hence can be used to know the index of where to insert + //// the next rule. It's a bitmap which contains 6 different sections each is given 5 bits. + //// + //// Example: + //// In order to insert a rule to the end of sub-bucket (3), we get the index by adding + //// the values in the bitmap segments 3rd, 2nd, and 1st. this.rulesInsertionIndexBitmap = 0; } RulesBucketConstructionState.prototype.GetInsertionIndex = function (maskPosition) { @@ -27947,7 +32685,7 @@ var ts; }; RulesBucket.prototype.AddRule = function (rule, specificTokens, constructionState, rulesBucketIndex) { var position; - if (rule.Operation.Action == 1) { + if (rule.Operation.Action == 1 /* Ignore */) { position = specificTokens ? RulesPosition.IgnoreRulesSpecific : RulesPosition.IgnoreRulesAny; @@ -27975,21 +32713,8 @@ var ts; formatting.RulesBucket = RulesBucket; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -28045,7 +32770,7 @@ var ts; } TokenAllAccess.prototype.GetTokens = function () { var result = []; - for (var token = 0; token <= 125; token++) { + for (var token = 0 /* FirstToken */; token <= 125 /* LastToken */; token++) { result.push(token); } return result; @@ -28086,38 +32811,24 @@ var ts; return this.tokenAccess.toString(); }; TokenRange.Any = TokenRange.AllTokens(); - TokenRange.AnyIncludingMultilineComments = TokenRange.FromTokens(TokenRange.Any.GetTokens().concat([3])); - TokenRange.Keywords = TokenRange.FromRange(66, 125); - TokenRange.BinaryOperators = TokenRange.FromRange(24, 64); - TokenRange.BinaryKeywordOperators = TokenRange.FromTokens([86, 87, 125]); - TokenRange.UnaryPrefixOperators = TokenRange.FromTokens([38, 39, 47, 46]); - TokenRange.UnaryPrefixExpressions = TokenRange.FromTokens([7, 65, 16, 18, 14, 93, 88]); - TokenRange.UnaryPreincrementExpressions = TokenRange.FromTokens([65, 16, 93, 88]); - TokenRange.UnaryPostincrementExpressions = TokenRange.FromTokens([65, 17, 19, 88]); - TokenRange.UnaryPredecrementExpressions = TokenRange.FromTokens([65, 16, 93, 88]); - TokenRange.UnaryPostdecrementExpressions = TokenRange.FromTokens([65, 17, 19, 88]); - TokenRange.Comments = TokenRange.FromTokens([2, 3]); - TokenRange.TypeNames = TokenRange.FromTokens([65, 119, 121, 113, 122, 99, 112]); + TokenRange.AnyIncludingMultilineComments = TokenRange.FromTokens(TokenRange.Any.GetTokens().concat([3 /* MultiLineCommentTrivia */])); + TokenRange.Keywords = TokenRange.FromRange(66 /* FirstKeyword */, 125 /* LastKeyword */); + TokenRange.BinaryOperators = TokenRange.FromRange(24 /* FirstBinaryOperator */, 64 /* LastBinaryOperator */); + TokenRange.BinaryKeywordOperators = TokenRange.FromTokens([86 /* InKeyword */, 87 /* InstanceOfKeyword */, 125 /* OfKeyword */]); + TokenRange.UnaryPrefixOperators = TokenRange.FromTokens([38 /* PlusPlusToken */, 39 /* MinusMinusToken */, 47 /* TildeToken */, 46 /* ExclamationToken */]); + TokenRange.UnaryPrefixExpressions = TokenRange.FromTokens([7 /* NumericLiteral */, 65 /* Identifier */, 16 /* OpenParenToken */, 18 /* OpenBracketToken */, 14 /* OpenBraceToken */, 93 /* ThisKeyword */, 88 /* NewKeyword */]); + TokenRange.UnaryPreincrementExpressions = TokenRange.FromTokens([65 /* Identifier */, 16 /* OpenParenToken */, 93 /* ThisKeyword */, 88 /* NewKeyword */]); + TokenRange.UnaryPostincrementExpressions = TokenRange.FromTokens([65 /* Identifier */, 17 /* CloseParenToken */, 19 /* CloseBracketToken */, 88 /* NewKeyword */]); + TokenRange.UnaryPredecrementExpressions = TokenRange.FromTokens([65 /* Identifier */, 16 /* OpenParenToken */, 93 /* ThisKeyword */, 88 /* NewKeyword */]); + TokenRange.UnaryPostdecrementExpressions = TokenRange.FromTokens([65 /* Identifier */, 17 /* CloseParenToken */, 19 /* CloseBracketToken */, 88 /* NewKeyword */]); + TokenRange.Comments = TokenRange.FromTokens([2 /* SingleLineCommentTrivia */, 3 /* MultiLineCommentTrivia */]); + TokenRange.TypeNames = TokenRange.FromTokens([65 /* Identifier */, 119 /* NumberKeyword */, 121 /* StringKeyword */, 113 /* BooleanKeyword */, 122 /* SymbolKeyword */, 99 /* VoidKeyword */, 112 /* AnyKeyword */]); return TokenRange; })(); Shared.TokenRange = TokenRange; })(Shared = formatting.Shared || (formatting.Shared = {})); })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// /// /// @@ -28130,21 +32841,8 @@ var ts; /// /// /// -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -28234,6 +32932,7 @@ var ts; /// /// /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -28247,19 +32946,22 @@ var ts; if (line === 0) { return []; } + // get the span for the previous\current line var span = { + // get start position for the previous line pos: ts.getStartPositionOfLine(line - 1, sourceFile), + // get end position for the current line (end value is exclusive so add 1 to the result) end: ts.getEndLinePosition(line, sourceFile) + 1 }; - return formatSpan(span, sourceFile, options, rulesProvider, 2); + return formatSpan(span, sourceFile, options, rulesProvider, 2 /* FormatOnEnter */); } formatting.formatOnEnter = formatOnEnter; function formatOnSemicolon(position, sourceFile, rulesProvider, options) { - return formatOutermostParent(position, 22, sourceFile, options, rulesProvider, 3); + return formatOutermostParent(position, 22 /* SemicolonToken */, sourceFile, options, rulesProvider, 3 /* FormatOnSemicolon */); } formatting.formatOnSemicolon = formatOnSemicolon; function formatOnClosingCurly(position, sourceFile, rulesProvider, options) { - return formatOutermostParent(position, 15, sourceFile, options, rulesProvider, 4); + return formatOutermostParent(position, 15 /* CloseBraceToken */, sourceFile, options, rulesProvider, 4 /* FormatOnClosingCurlyBrace */); } formatting.formatOnClosingCurly = formatOnClosingCurly; function formatDocument(sourceFile, rulesProvider, options) { @@ -28267,15 +32969,16 @@ var ts; pos: 0, end: sourceFile.text.length }; - return formatSpan(span, sourceFile, options, rulesProvider, 0); + return formatSpan(span, sourceFile, options, rulesProvider, 0 /* FormatDocument */); } formatting.formatDocument = formatDocument; function formatSelection(start, end, sourceFile, rulesProvider, options) { + // format from the beginning of the line var span = { pos: ts.getLineStartPositionForPosition(start, sourceFile), end: end }; - return formatSpan(span, sourceFile, options, rulesProvider, 1); + return formatSpan(span, sourceFile, options, rulesProvider, 1 /* FormatSelection */); } formatting.formatSelection = formatSelection; function formatOutermostParent(position, expectedLastToken, sourceFile, options, rulesProvider, requestKind) { @@ -28291,11 +32994,24 @@ var ts; } function findOutermostParent(position, expectedTokenKind, sourceFile) { var precedingToken = ts.findPrecedingToken(position, sourceFile); + // when it is claimed that trigger character was typed at given position + // we verify that there is a token with a matching kind whose end is equal to position (because the character was just typed). + // If this condition is not hold - then trigger character was typed in some other context, + // i.e.in comment and thus should not trigger autoformatting if (!precedingToken || precedingToken.kind !== expectedTokenKind || position !== precedingToken.getEnd()) { return undefined; } + // walk up and search for the parent node that ends at the same position with precedingToken. + // for cases like this + // + // let x = 1; + // while (true) { + // } + // after typing close curly in while statement we want to reformat just the while statement. + // However if we just walk upwards searching for the parent that has the same end value - + // we'll end up with the whole source file. isListElement allows to stop on the list element level var current = precedingToken; while (current && current.parent && @@ -28305,23 +33021,26 @@ var ts; } return current; } + // Returns true if node is a element in some list in parent + // i.e. parent is class declaration with the list of members and node is one of members. function isListElement(parent, node) { switch (parent.kind) { - case 201: - case 202: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: return ts.rangeContainsRange(parent.members, node); - case 205: + case 205 /* ModuleDeclaration */: var body = parent.body; - return body && body.kind === 179 && ts.rangeContainsRange(body.statements, node); - case 227: - case 179: - case 206: + return body && body.kind === 179 /* Block */ && ts.rangeContainsRange(body.statements, node); + case 227 /* SourceFile */: + case 179 /* Block */: + case 206 /* ModuleBlock */: return ts.rangeContainsRange(parent.statements, node); - case 223: + case 223 /* CatchClause */: return ts.rangeContainsRange(parent.block.statements, node); } return false; } + /** find node that fully contains given text range */ function findEnclosingNode(range, sourceFile) { return find(sourceFile); function find(n) { @@ -28335,10 +33054,15 @@ var ts; return n; } } + /** formatting is not applied to ranges that contain parse errors. + * This function will return a predicate that for a given text range will tell + * if there are any parse errors that overlap with the range. + */ function prepareRangeContainsErrorFunction(errors, originalRange) { if (!errors.length) { return rangeHasNoErrors; } + // pick only errors that fall in range var sorted = errors .filter(function (d) { return ts.rangeOverlapsWithStartEnd(originalRange, d.start, d.start + d.length); }) .sort(function (e1, e2) { return e1.start - e2.start; }); @@ -28347,15 +33071,20 @@ var ts; } var index = 0; return function (r) { + // in current implementation sequence of arguments [r1, r2...] is monotonically increasing. + // 'index' tracks the index of the most recent error that was checked. while (true) { if (index >= sorted.length) { + // all errors in the range were already checked -> no error in specified range return false; } var error = sorted[index]; if (r.end <= error.start) { + // specified range ends before the error refered by 'index' - no error in range return false; } if (ts.startEndOverlapsWithStartEnd(r.pos, r.end, error.start, error.start + error.length)) { + // specified range overlaps with error range return true; } index++; @@ -28365,6 +33094,11 @@ var ts; return false; } } + /** + * Start of the original range might fall inside the comment - scanner will not yield appropriate results + * This function will look for token that is located before the start of target range + * and return its end as start position for the scanner. + */ function getScanStartPosition(enclosingNode, originalRange, sourceFile) { var start = enclosingNode.getStart(sourceFile); if (start === originalRange.pos && enclosingNode.end === originalRange.end) { @@ -28372,19 +33106,37 @@ var ts; } var precedingToken = ts.findPrecedingToken(originalRange.pos, sourceFile); if (!precedingToken) { + // no preceding token found - start from the beginning of enclosing node return enclosingNode.pos; } + // preceding token ends after the start of original range (i.e when originaRange.pos falls in the middle of literal) + // start from the beginning of enclosingNode to handle the entire 'originalRange' if (precedingToken.end >= originalRange.pos) { return enclosingNode.pos; } return precedingToken.end; } + /* + * For cases like + * if (a || + * b ||$ + * c) {...} + * If we hit Enter at $ we want line ' b ||' to be indented. + * Formatting will be applied to the last two lines. + * Node that fully encloses these lines is binary expression 'a ||...'. + * Initial indentation for this node will be 0. + * Binary expressions don't introduce new indentation scopes, however it is possible + * that some parent node on the same line does - like if statement in this case. + * Note that we are considering parents only from the same line with initial node - + * if parent is on the different line - its delta was already contributed + * to the initial indentation. + */ function getOwnOrInheritedDelta(n, options, sourceFile) { - var previousLine = -1; - var childKind = 0; + var previousLine = -1 /* Unknown */; + var childKind = 0 /* Unknown */; while (n) { var line = sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)).line; - if (previousLine !== -1 && line !== previousLine) { + if (previousLine !== -1 /* Unknown */ && line !== previousLine) { break; } if (formatting.SmartIndenter.shouldIndentChildNode(n.kind, childKind)) { @@ -28398,7 +33150,9 @@ var ts; } function formatSpan(originalRange, sourceFile, options, rulesProvider, requestKind) { var rangeContainsError = prepareRangeContainsErrorFunction(sourceFile.parseDiagnostics, originalRange); + // formatting context is used by rules provider var formattingContext = new formatting.FormattingContext(sourceFile, requestKind); + // find the smallest node that fully wraps the range and compute the initial indentation for the node var enclosingNode = findEnclosingNode(originalRange, sourceFile); var formattingScanner = formatting.getFormattingScanner(sourceFile, getScanStartPosition(enclosingNode, originalRange, sourceFile), originalRange.end); var initialIndentation = formatting.SmartIndenter.getIndentationForNode(enclosingNode, originalRange, sourceFile, options); @@ -28410,14 +33164,26 @@ var ts; formattingScanner.advance(); if (formattingScanner.isOnToken()) { var startLine = sourceFile.getLineAndCharacterOfPosition(enclosingNode.getStart(sourceFile)).line; + var undecoratedStartLine = startLine; + if (enclosingNode.decorators) { + undecoratedStartLine = sourceFile.getLineAndCharacterOfPosition(ts.getNonDecoratorTokenPosOfNode(enclosingNode, sourceFile)).line; + } var delta = getOwnOrInheritedDelta(enclosingNode, options, sourceFile); - processNode(enclosingNode, enclosingNode, startLine, initialIndentation, delta); + processNode(enclosingNode, enclosingNode, startLine, undecoratedStartLine, initialIndentation, delta); } formattingScanner.close(); return edits; + // local functions + /** Tries to compute the indentation for a list element. + * If list element is not in range then + * function will pick its actual indentation + * so it can be pushed downstream as inherited indentation. + * If list element is in the range - its indentation will be equal + * to inherited indentation from its predecessors. + */ function tryComputeIndentationForListItem(startPos, endPos, parentStartLine, range, inheritedIndentation) { if (ts.rangeOverlapsWithStartEnd(range, startPos, endPos)) { - if (inheritedIndentation !== -1) { + if (inheritedIndentation !== -1 /* Unknown */) { return inheritedIndentation; } } @@ -28429,16 +33195,20 @@ var ts; return column; } } - return -1; + return -1 /* Unknown */; } function computeIndentation(node, startLine, inheritedIndentation, parent, parentDynamicIndentation, effectiveParentStartLine) { var indentation = inheritedIndentation; - if (indentation === -1) { + if (indentation === -1 /* Unknown */) { if (isSomeBlock(node.kind)) { + // blocks should be indented in + // - other blocks + // - source file + // - switch\default clauses if (isSomeBlock(parent.kind) || - parent.kind === 227 || - parent.kind === 220 || - parent.kind === 221) { + parent.kind === 227 /* SourceFile */ || + parent.kind === 220 /* CaseClause */ || + parent.kind === 221 /* DefaultClause */) { indentation = parentDynamicIndentation.getIndentation() + parentDynamicIndentation.getDelta(); } else { @@ -28454,8 +33224,11 @@ var ts; } } } - var delta = formatting.SmartIndenter.shouldIndentChildNode(node.kind, 0) ? options.IndentSize : 0; + var delta = formatting.SmartIndenter.shouldIndentChildNode(node.kind, 0 /* Unknown */) ? options.IndentSize : 0; if (effectiveParentStartLine === startLine) { + // if node is located on the same line with the parent + // - inherit indentation from the parent + // - push children if either parent of node itself has non-zero delta indentation = parentDynamicIndentation.getIndentation(); delta = Math.min(options.IndentSize, parentDynamicIndentation.getDelta() + delta); } @@ -28469,18 +33242,19 @@ var ts; return node.modifiers[0].kind; } switch (node.kind) { - case 201: return 69; - case 202: return 104; - case 200: return 83; - case 204: return 204; - case 136: return 116; - case 137: return 120; - case 134: + case 201 /* ClassDeclaration */: return 69 /* ClassKeyword */; + case 202 /* InterfaceDeclaration */: return 104 /* InterfaceKeyword */; + case 200 /* FunctionDeclaration */: return 83 /* FunctionKeyword */; + case 204 /* EnumDeclaration */: return 204 /* EnumDeclaration */; + case 136 /* GetAccessor */: return 116 /* GetKeyword */; + case 137 /* SetAccessor */: return 120 /* SetKeyword */; + case 134 /* MethodDeclaration */: if (node.asteriskToken) { - return 35; + return 35 /* AsteriskToken */; } - case 132: - case 129: + // fall-through + case 132 /* PropertyDeclaration */: + case 129 /* Parameter */: return node.name.kind; } } @@ -28488,8 +33262,12 @@ var ts; return { getIndentationForComment: function (kind) { switch (kind) { - case 15: - case 19: + // preceding comment to the token that closes the indentation scope inherits the indentation from the scope + // .. { + // // comment + // } + case 15 /* CloseBraceToken */: + case 19 /* CloseBracketToken */: return indentation + delta; } return indentation; @@ -28497,19 +33275,22 @@ var ts; getIndentationForToken: function (line, kind) { if (nodeStartLine !== line && node.decorators) { if (kind === getFirstNonDecoratorTokenOfNode(node)) { + // if this token is the first token following the list of decorators, we do not need to indent return indentation; } } switch (kind) { - case 14: - case 15: - case 18: - case 19: - case 76: - case 100: - case 52: + // open and close brace, 'else' and 'while' (in do statement) tokens has indentation of the parent + case 14 /* OpenBraceToken */: + case 15 /* CloseBraceToken */: + case 18 /* OpenBracketToken */: + case 19 /* CloseBracketToken */: + case 76 /* ElseKeyword */: + case 100 /* WhileKeyword */: + case 52 /* AtToken */: return indentation; default: + // if token line equals to the line of containing node (this is a first token in the node) - use node indentation return nodeStartLine !== line ? indentation + delta : indentation; } }, @@ -28523,7 +33304,7 @@ var ts; else { indentation -= options.IndentSize; } - if (formatting.SmartIndenter.shouldIndentChildNode(node.kind, 0)) { + if (formatting.SmartIndenter.shouldIndentChildNode(node.kind, 0 /* Unknown */)) { delta = options.IndentSize; } else { @@ -28533,17 +33314,31 @@ var ts; } }; } - function processNode(node, contextNode, nodeStartLine, indentation, delta) { + function processNode(node, contextNode, nodeStartLine, undecoratedNodeStartLine, indentation, delta) { if (!ts.rangeOverlapsWithStartEnd(originalRange, node.getStart(sourceFile), node.getEnd())) { return; } var nodeDynamicIndentation = getDynamicIndentation(node, nodeStartLine, indentation, delta); + // a useful observations when tracking context node + // / + // [a] + // / | \ + // [b] [c] [d] + // node 'a' is a context node for nodes 'b', 'c', 'd' + // except for the leftmost leaf token in [b] - in this case context node ('e') is located somewhere above 'a' + // this rule can be applied recursively to child nodes of 'a'. + // + // context node is set to parent node value after processing every child node + // context node is set to parent of the token after processing every token var childContextNode = contextNode; + // if there are any tokens that logically belong to node and interleave child nodes + // such tokens will be consumed in processChildNode for for the child that follows them ts.forEachChild(node, function (child) { - processChildNode(child, -1, node, nodeDynamicIndentation, nodeStartLine, false); + processChildNode(child, -1 /* Unknown */, node, nodeDynamicIndentation, nodeStartLine, undecoratedNodeStartLine, false); }, function (nodes) { processChildNodes(nodes, node, nodeStartLine, nodeDynamicIndentation); }); + // proceed any tokens in the node that are located after child nodes while (formattingScanner.isOnToken()) { var tokenInfo = formattingScanner.readTokenInfo(node); if (tokenInfo.token.end > node.end) { @@ -28551,16 +33346,22 @@ var ts; } consumeTokenAndAdvanceScanner(tokenInfo, node, nodeDynamicIndentation); } - function processChildNode(child, inheritedIndentation, parent, parentDynamicIndentation, parentStartLine, isListItem) { + function processChildNode(child, inheritedIndentation, parent, parentDynamicIndentation, parentStartLine, undecoratedParentStartLine, isListItem) { var childStartPos = child.getStart(sourceFile); - var childStart = sourceFile.getLineAndCharacterOfPosition(childStartPos); - var childIndentationAmount = -1; + var childStartLine = sourceFile.getLineAndCharacterOfPosition(childStartPos).line; + var undecoratedChildStartLine = childStartLine; + if (child.decorators) { + undecoratedChildStartLine = sourceFile.getLineAndCharacterOfPosition(ts.getNonDecoratorTokenPosOfNode(child, sourceFile)).line; + } + // if child is a list item - try to get its indentation + var childIndentationAmount = -1 /* Unknown */; if (isListItem) { childIndentationAmount = tryComputeIndentationForListItem(childStartPos, child.end, parentStartLine, originalRange, inheritedIndentation); - if (childIndentationAmount !== -1) { + if (childIndentationAmount !== -1 /* Unknown */) { inheritedIndentation = childIndentationAmount; } } + // child node is outside the target range - do not dive inside if (!ts.rangeOverlapsWithStartEnd(originalRange, child.pos, child.end)) { return inheritedIndentation; } @@ -28568,8 +33369,10 @@ var ts; return inheritedIndentation; } while (formattingScanner.isOnToken()) { + // proceed any parent tokens that are located prior to child.getStart() var tokenInfo = formattingScanner.readTokenInfo(node); if (tokenInfo.token.end > childStartPos) { + // stop when formatting scanner advances past the beginning of the child break; } consumeTokenAndAdvanceScanner(tokenInfo, node, parentDynamicIndentation); @@ -28578,13 +33381,15 @@ var ts; return inheritedIndentation; } if (ts.isToken(child)) { + // if child node is a token, it does not impact indentation, proceed it using parent indentation scope rules var tokenInfo = formattingScanner.readTokenInfo(child); ts.Debug.assert(tokenInfo.token.end === child.end); consumeTokenAndAdvanceScanner(tokenInfo, node, parentDynamicIndentation); return inheritedIndentation; } - var childIndentation = computeIndentation(child, childStart.line, childIndentationAmount, node, parentDynamicIndentation, parentStartLine); - processNode(child, childContextNode, childStart.line, childIndentation.indentation, childIndentation.delta); + var effectiveParentStartLine = child.kind === 130 /* Decorator */ ? childStartLine : undecoratedParentStartLine; + var childIndentation = computeIndentation(child, childStartLine, childIndentationAmount, node, parentDynamicIndentation, effectiveParentStartLine); + processNode(child, childContextNode, childStartLine, undecoratedChildStartLine, childIndentation.indentation, childIndentation.delta); childContextNode = node; return inheritedIndentation; } @@ -28593,32 +33398,41 @@ var ts; var listEndToken = getCloseTokenForOpenToken(listStartToken); var listDynamicIndentation = parentDynamicIndentation; var startLine = parentStartLine; - if (listStartToken !== 0) { + if (listStartToken !== 0 /* Unknown */) { + // introduce a new indentation scope for lists (including list start and end tokens) while (formattingScanner.isOnToken()) { var tokenInfo = formattingScanner.readTokenInfo(parent); if (tokenInfo.token.end > nodes.pos) { + // stop when formatting scanner moves past the beginning of node list break; } else if (tokenInfo.token.kind === listStartToken) { + // consume list start token startLine = sourceFile.getLineAndCharacterOfPosition(tokenInfo.token.pos).line; - var indentation_1 = computeIndentation(tokenInfo.token, startLine, -1, parent, parentDynamicIndentation, startLine); + var indentation_1 = computeIndentation(tokenInfo.token, startLine, -1 /* Unknown */, parent, parentDynamicIndentation, startLine); listDynamicIndentation = getDynamicIndentation(parent, parentStartLine, indentation_1.indentation, indentation_1.delta); consumeTokenAndAdvanceScanner(tokenInfo, parent, listDynamicIndentation); } else { + // consume any tokens that precede the list as child elements of 'node' using its indentation scope consumeTokenAndAdvanceScanner(tokenInfo, parent, parentDynamicIndentation); } } } - var inheritedIndentation = -1; + var inheritedIndentation = -1 /* Unknown */; for (var _i = 0; _i < nodes.length; _i++) { var child = nodes[_i]; - inheritedIndentation = processChildNode(child, inheritedIndentation, node, listDynamicIndentation, startLine, true); + inheritedIndentation = processChildNode(child, inheritedIndentation, node, listDynamicIndentation, startLine, startLine, true); } - if (listEndToken !== 0) { + if (listEndToken !== 0 /* Unknown */) { if (formattingScanner.isOnToken()) { var tokenInfo = formattingScanner.readTokenInfo(parent); + // consume the list end token only if it is still belong to the parent + // there might be the case when current token matches end token but does not considered as one + // function (x: function) <-- + // without this check close paren will be interpreted as list end token for function expression which is wrong if (tokenInfo.token.kind === listEndToken && ts.rangeContainsRange(parent, tokenInfo.token)) { + // consume list end token consumeTokenAndAdvanceScanner(tokenInfo, parent, listDynamicIndentation); } } @@ -28636,9 +33450,11 @@ var ts; var tokenStart = sourceFile.getLineAndCharacterOfPosition(currentTokenInfo.token.pos); if (isTokenInRange) { var rangeHasError = rangeContainsError(currentTokenInfo.token); + // save prevStartLine since processRange will overwrite this value with current ones var prevStartLine = previousRangeStartLine; lineAdded = processRange(currentTokenInfo.token, tokenStart, parent, childContextNode, dynamicIndentation); if (rangeHasError) { + // do not indent comments\token if token range overlaps with some error indentToken = false; } else { @@ -28663,24 +33479,25 @@ var ts; } var triviaStartLine = sourceFile.getLineAndCharacterOfPosition(triviaItem.pos).line; switch (triviaItem.kind) { - case 3: + case 3 /* MultiLineCommentTrivia */: var commentIndentation = dynamicIndentation.getIndentationForComment(currentTokenInfo.token.kind); indentMultilineComment(triviaItem, commentIndentation, !indentNextTokenOrTrivia); indentNextTokenOrTrivia = false; break; - case 2: + case 2 /* SingleLineCommentTrivia */: if (indentNextTokenOrTrivia) { var commentIndentation_1 = dynamicIndentation.getIndentationForComment(currentTokenInfo.token.kind); insertIndentation(triviaItem.pos, commentIndentation_1, false); indentNextTokenOrTrivia = false; } break; - case 4: + case 4 /* NewLineTrivia */: indentNextTokenOrTrivia = true; break; } } } + // indent token only if is it is in target range and does not overlap with any error ranges if (isTokenInRange && !rangeContainsError(currentTokenInfo.token)) { var tokenIndentation = dynamicIndentation.getIndentationForToken(tokenStart.line, currentTokenInfo.token.kind); insertIndentation(currentTokenInfo.token.pos, tokenIndentation, lineAdded); @@ -28704,6 +33521,7 @@ var ts; var lineAdded; if (!rangeHasError && !previousRangeHasError) { if (!previousRange) { + // trim whitespaces starting from the beginning of the span up to the current line var originalStart = sourceFile.getLineAndCharacterOfPosition(originalRange.pos); trimTrailingWhitespacesForLines(originalStart.line, rangeStart.line); } @@ -28725,26 +33543,33 @@ var ts; var lineAdded; if (rule) { applyRuleEdits(rule, previousItem, previousStartLine, currentItem, currentStartLine); - if (rule.Operation.Action & (2 | 8) && currentStartLine !== previousStartLine) { + if (rule.Operation.Action & (2 /* Space */ | 8 /* Delete */) && currentStartLine !== previousStartLine) { lineAdded = false; + // Handle the case where the next line is moved to be the end of this line. + // In this case we don't indent the next line in the next pass. if (currentParent.getStart(sourceFile) === currentItem.pos) { dynamicIndentation.recomputeIndentation(false); } } - else if (rule.Operation.Action & 4 && currentStartLine === previousStartLine) { + else if (rule.Operation.Action & 4 /* NewLine */ && currentStartLine === previousStartLine) { lineAdded = true; + // Handle the case where token2 is moved to the new line. + // In this case we indent token2 in the next pass but we set + // sameLineIndent flag to notify the indenter that the indentation is within the line. if (currentParent.getStart(sourceFile) === currentItem.pos) { dynamicIndentation.recomputeIndentation(true); } } + // We need to trim trailing whitespace between the tokens if they were on different lines, and no rule was applied to put them on the same line trimTrailingWhitespaces = - (rule.Operation.Action & (4 | 2)) && - rule.Flag !== 1; + (rule.Operation.Action & (4 /* NewLine */ | 2 /* Space */)) && + rule.Flag !== 1 /* CanDeleteNewLines */; } else { trimTrailingWhitespaces = true; } if (currentStartLine !== previousStartLine && trimTrailingWhitespaces) { + // We need to trim trailing whitespace between the tokens if they were on different lines, and no rule was applied to put them on the same line trimTrailingWhitespacesForLines(previousStartLine, currentStartLine, previousItem); } return lineAdded; @@ -28752,6 +33577,8 @@ var ts; function insertIndentation(pos, indentation, lineAdded) { var indentationString = getIndentationString(indentation, options); if (lineAdded) { + // new line is added before the token by the formatting rules + // insert indentation string at the very beginning of the token recordReplace(pos, 0, indentationString); } else { @@ -28763,11 +33590,13 @@ var ts; } } function indentMultilineComment(commentRange, indentation, firstLineIsIndented) { + // split comment in lines var startLine = sourceFile.getLineAndCharacterOfPosition(commentRange.pos).line; var endLine = sourceFile.getLineAndCharacterOfPosition(commentRange.end).line; var parts; if (startLine === endLine) { if (!firstLineIsIndented) { + // treat as single line comment insertIndentation(commentRange.pos, indentation, false); } return; @@ -28792,6 +33621,7 @@ var ts; startIndex = 1; startLine++; } + // shift all parts on the delta size var delta = indentation - nonWhitespaceColumnInFirstPart.column; for (var i = startIndex, len = parts.length; i < len; ++i, ++startLine) { var startLinePos_1 = ts.getStartPositionOfLine(startLine, sourceFile); @@ -28812,6 +33642,7 @@ var ts; for (var line = line1; line < line2; ++line) { var lineStartPosition = ts.getStartPositionOfLine(line, sourceFile); var lineEndPosition = ts.getEndLinePosition(line, sourceFile); + // do not trim whitespaces in comments if (range && ts.isComment(range.kind) && range.pos <= lineEndPosition && range.end > lineEndPosition) { continue; } @@ -28841,28 +33672,35 @@ var ts; function applyRuleEdits(rule, previousRange, previousStartLine, currentRange, currentStartLine) { var between; switch (rule.Operation.Action) { - case 1: + case 1 /* Ignore */: + // no action required return; - case 8: + case 8 /* Delete */: if (previousRange.end !== currentRange.pos) { + // delete characters starting from t1.end up to t2.pos exclusive recordDelete(previousRange.end, currentRange.pos - previousRange.end); } break; - case 4: - if (rule.Flag !== 1 && previousStartLine !== currentStartLine) { + case 4 /* NewLine */: + // exit early if we on different lines and rule cannot change number of newlines + // if line1 and line2 are on subsequent lines then no edits are required - ok to exit + // if line1 and line2 are separated with more than one newline - ok to exit since we cannot delete extra new lines + if (rule.Flag !== 1 /* CanDeleteNewLines */ && previousStartLine !== currentStartLine) { return; } + // edit should not be applied only if we have one line feed between elements var lineDelta = currentStartLine - previousStartLine; if (lineDelta !== 1) { recordReplace(previousRange.end, currentRange.pos - previousRange.end, options.NewLineCharacter); } break; - case 2: - if (rule.Flag !== 1 && previousStartLine !== currentStartLine) { + case 2 /* Space */: + // exit early if we on different lines and rule cannot change number of newlines + if (rule.Flag !== 1 /* CanDeleteNewLines */ && previousStartLine !== currentStartLine) { return; } var posDelta = currentRange.pos - previousRange.end; - if (posDelta !== 1 || sourceFile.text.charCodeAt(previousRange.end) !== 32) { + if (posDelta !== 1 || sourceFile.text.charCodeAt(previousRange.end) !== 32 /* space */) { recordReplace(previousRange.end, currentRange.pos - previousRange.end, " "); } break; @@ -28871,56 +33709,57 @@ var ts; } function isSomeBlock(kind) { switch (kind) { - case 179: - case 206: + case 179 /* Block */: + case 206 /* ModuleBlock */: return true; } return false; } function getOpenTokenForList(node, list) { switch (node.kind) { - case 135: - case 200: - case 162: - case 134: - case 133: - case 163: + case 135 /* Constructor */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 163 /* ArrowFunction */: if (node.typeParameters === list) { - return 24; + return 24 /* LessThanToken */; } else if (node.parameters === list) { - return 16; + return 16 /* OpenParenToken */; } break; - case 157: - case 158: + case 157 /* CallExpression */: + case 158 /* NewExpression */: if (node.typeArguments === list) { - return 24; + return 24 /* LessThanToken */; } else if (node.arguments === list) { - return 16; + return 16 /* OpenParenToken */; } break; - case 141: + case 141 /* TypeReference */: if (node.typeArguments === list) { - return 24; + return 24 /* LessThanToken */; } } - return 0; + return 0 /* Unknown */; } function getCloseTokenForOpenToken(kind) { switch (kind) { - case 16: - return 17; - case 24: - return 25; + case 16 /* OpenParenToken */: + return 17 /* CloseParenToken */; + case 24 /* LessThanToken */: + return 25 /* GreaterThanToken */; } - return 0; + return 0 /* Unknown */; } var internedSizes; var internedTabsIndentation; var internedSpacesIndentation; function getIndentationString(indentation, options) { + // reset interned strings if FormatCodeOptions were changed var resetInternedStrings = !internedSizes || (internedSizes.tabSize !== options.TabSize || internedSizes.indentSize !== options.IndentSize); if (resetInternedStrings) { internedSizes = { tabSize: options.TabSize, indentSize: options.IndentSize }; @@ -28969,6 +33808,7 @@ var ts; })(formatting = ts.formatting || (ts.formatting = {})); })(ts || (ts = {})); /// +/* @internal */ var ts; (function (ts) { var formatting; @@ -28981,34 +33821,38 @@ var ts; })(Value || (Value = {})); function getIndentation(position, sourceFile, options) { if (position > sourceFile.text.length) { - return 0; + return 0; // past EOF } var precedingToken = ts.findPrecedingToken(position, sourceFile); if (!precedingToken) { return 0; } - var precedingTokenIsLiteral = precedingToken.kind === 8 || - precedingToken.kind === 9 || - precedingToken.kind === 10 || - precedingToken.kind === 11 || - precedingToken.kind === 12 || - precedingToken.kind === 13; + // no indentation in string \regex\template literals + var precedingTokenIsLiteral = precedingToken.kind === 8 /* StringLiteral */ || + precedingToken.kind === 9 /* RegularExpressionLiteral */ || + precedingToken.kind === 10 /* NoSubstitutionTemplateLiteral */ || + precedingToken.kind === 11 /* TemplateHead */ || + precedingToken.kind === 12 /* TemplateMiddle */ || + precedingToken.kind === 13 /* TemplateTail */; if (precedingTokenIsLiteral && precedingToken.getStart(sourceFile) <= position && precedingToken.end > position) { return 0; } var lineAtPosition = sourceFile.getLineAndCharacterOfPosition(position).line; - if (precedingToken.kind === 23 && precedingToken.parent.kind !== 169) { + if (precedingToken.kind === 23 /* CommaToken */ && precedingToken.parent.kind !== 169 /* BinaryExpression */) { + // previous token is comma that separates items in list - find the previous item and try to derive indentation from it var actualIndentation = getActualIndentationForListItemBeforeComma(precedingToken, sourceFile, options); - if (actualIndentation !== -1) { + if (actualIndentation !== -1 /* Unknown */) { return actualIndentation; } } + // try to find node that can contribute to indentation and includes 'position' starting from 'precedingToken' + // if such node is found - compute initial indentation for 'position' inside this node var previous; var current = precedingToken; var currentStart; var indentationDelta; while (current) { - if (ts.positionBelongsToNode(current, position, sourceFile) && shouldIndentChildNode(current.kind, previous ? previous.kind : 0)) { + if (ts.positionBelongsToNode(current, position, sourceFile) && shouldIndentChildNode(current.kind, previous ? previous.kind : 0 /* Unknown */)) { currentStart = getStartLineAndCharacterForNode(current, sourceFile); if (nextTokenIsCurlyBraceOnSameLineAsCursor(precedingToken, current, lineAtPosition, sourceFile)) { indentationDelta = 0; @@ -29018,14 +33862,16 @@ var ts; } break; } + // check if current node is a list item - if yes, take indentation from it var actualIndentation = getActualIndentationForListItem(current, sourceFile, options); - if (actualIndentation !== -1) { + if (actualIndentation !== -1 /* Unknown */) { return actualIndentation; } previous = current; current = current.parent; } if (!current) { + // no parent was found - return 0 to be indented on the level of SourceFile return 0; } return getIndentationForNodeWorker(current, currentStart, undefined, indentationDelta, sourceFile, options); @@ -29039,6 +33885,8 @@ var ts; function getIndentationForNodeWorker(current, currentStart, ignoreActualIndentationRange, indentationDelta, sourceFile, options) { var parent = current.parent; var parentStart; + // walk upwards and collect indentations for pairs of parent-child nodes + // indentation is not added if parent and child nodes start on the same line or if parent is IfStatement and child starts on the same line with 'else clause' while (parent) { var useActualIndentation = true; if (ignoreActualIndentationRange) { @@ -29046,8 +33894,9 @@ var ts; useActualIndentation = start < ignoreActualIndentationRange.pos || start > ignoreActualIndentationRange.end; } if (useActualIndentation) { + // check if current node is a list item - if yes, take indentation from it var actualIndentation = getActualIndentationForListItem(current, sourceFile, options); - if (actualIndentation !== -1) { + if (actualIndentation !== -1 /* Unknown */) { return actualIndentation + indentationDelta; } } @@ -29055,11 +33904,13 @@ var ts; var parentAndChildShareLine = parentStart.line === currentStart.line || childStartsOnTheSameLineWithElseInIfStatement(parent, current, currentStart.line, sourceFile); if (useActualIndentation) { + // try to fetch actual indentation for current node from source text var actualIndentation = getActualIndentationForNode(current, parent, currentStart, parentAndChildShareLine, sourceFile, options); - if (actualIndentation !== -1) { + if (actualIndentation !== -1 /* Unknown */) { return actualIndentation + indentationDelta; } } + // increase indentation if parent node wants its content to be indented and parent and child nodes don't start on the same line if (shouldIndentChildNode(parent.kind, current.kind) && !parentAndChildShareLine) { indentationDelta += options.IndentSize; } @@ -29076,20 +33927,31 @@ var ts; } return sourceFile.getLineAndCharacterOfPosition(parent.getStart(sourceFile)); } + /* + * Function returns Value.Unknown if indentation cannot be determined + */ function getActualIndentationForListItemBeforeComma(commaToken, sourceFile, options) { + // previous token is comma that separates items in list - find the previous item and try to derive indentation from it var commaItemInfo = ts.findListItemInfo(commaToken); if (commaItemInfo && commaItemInfo.listItemIndex > 0) { return deriveActualIndentationFromList(commaItemInfo.list.getChildren(), commaItemInfo.listItemIndex - 1, sourceFile, options); } else { - return -1; + // handle broken code gracefully + return -1 /* Unknown */; } } + /* + * Function returns Value.Unknown if actual indentation for node should not be used (i.e because node is nested expression) + */ function getActualIndentationForNode(current, parent, currentLineAndChar, parentAndChildShareLine, sourceFile, options) { + // actual indentation is used for statements\declarations if one of cases below is true: + // - parent is SourceFile - by default immediate children of SourceFile are not indented except when user indents them manually + // - parent and child are not on the same line var useActualIndentation = (ts.isDeclaration(current) || ts.isStatement(current)) && - (parent.kind === 227 || !parentAndChildShareLine); + (parent.kind === 227 /* SourceFile */ || !parentAndChildShareLine); if (!useActualIndentation) { - return -1; + return -1 /* Unknown */; } return findColumnForFirstNonWhitespaceCharacterInLine(currentLineAndChar, sourceFile, options); } @@ -29098,10 +33960,19 @@ var ts; if (!nextToken) { return false; } - if (nextToken.kind === 14) { + if (nextToken.kind === 14 /* OpenBraceToken */) { + // open braces are always indented at the parent level return true; } - else if (nextToken.kind === 15) { + else if (nextToken.kind === 15 /* CloseBraceToken */) { + // close braces are indented at the parent level if they are located on the same line with cursor + // this means that if new line will be added at $ position, this case will be indented + // class A { + // $ + // } + /// and this one - not + // class A { + // $} var nextTokenStartLine = getStartLineAndCharacterForNode(nextToken, sourceFile).line; return lineAtPosition === nextTokenStartLine; } @@ -29111,8 +33982,8 @@ var ts; return sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)); } function childStartsOnTheSameLineWithElseInIfStatement(parent, child, childStartLine, sourceFile) { - if (parent.kind === 183 && parent.elseStatement === child) { - var elseKeyword = ts.findChildOfKind(parent, 76, sourceFile); + if (parent.kind === 183 /* IfStatement */ && parent.elseStatement === child) { + var elseKeyword = ts.findChildOfKind(parent, 76 /* ElseKeyword */, sourceFile); ts.Debug.assert(elseKeyword !== undefined); var elseKeywordStartLine = getStartLineAndCharacterForNode(elseKeyword, sourceFile).line; return elseKeywordStartLine === childStartLine; @@ -29123,23 +33994,23 @@ var ts; function getContainingList(node, sourceFile) { if (node.parent) { switch (node.parent.kind) { - case 141: + case 141 /* TypeReference */: if (node.parent.typeArguments && ts.rangeContainsStartEnd(node.parent.typeArguments, node.getStart(sourceFile), node.getEnd())) { return node.parent.typeArguments; } break; - case 154: + case 154 /* ObjectLiteralExpression */: return node.parent.properties; - case 153: + case 153 /* ArrayLiteralExpression */: return node.parent.elements; - case 200: - case 162: - case 163: - case 134: - case 133: - case 138: - case 139: { + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: { var start = node.getStart(sourceFile); if (node.parent.typeParameters && ts.rangeContainsStartEnd(node.parent.typeParameters, start, node.getEnd())) { @@ -29150,8 +34021,8 @@ var ts; } break; } - case 158: - case 157: { + case 158 /* NewExpression */: + case 157 /* CallExpression */: { var start = node.getStart(sourceFile); if (node.parent.typeArguments && ts.rangeContainsStartEnd(node.parent.typeArguments, start, node.getEnd())) { @@ -29169,32 +34040,42 @@ var ts; } function getActualIndentationForListItem(node, sourceFile, options) { var containingList = getContainingList(node, sourceFile); - return containingList ? getActualIndentationFromList(containingList) : -1; + return containingList ? getActualIndentationFromList(containingList) : -1 /* Unknown */; function getActualIndentationFromList(list) { var index = ts.indexOf(list, node); - return index !== -1 ? deriveActualIndentationFromList(list, index, sourceFile, options) : -1; + return index !== -1 ? deriveActualIndentationFromList(list, index, sourceFile, options) : -1 /* Unknown */; } } function deriveActualIndentationFromList(list, index, sourceFile, options) { ts.Debug.assert(index >= 0 && index < list.length); var node = list[index]; + // walk toward the start of the list starting from current node and check if the line is the same for all items. + // if end line for item [i - 1] differs from the start line for item [i] - find column of the first non-whitespace character on the line of item [i] var lineAndCharacter = getStartLineAndCharacterForNode(node, sourceFile); for (var i = index - 1; i >= 0; --i) { - if (list[i].kind === 23) { + if (list[i].kind === 23 /* CommaToken */) { continue; } + // skip list items that ends on the same line with the current list element var prevEndLine = sourceFile.getLineAndCharacterOfPosition(list[i].end).line; if (prevEndLine !== lineAndCharacter.line) { return findColumnForFirstNonWhitespaceCharacterInLine(lineAndCharacter, sourceFile, options); } lineAndCharacter = getStartLineAndCharacterForNode(list[i], sourceFile); } - return -1; + return -1 /* Unknown */; } function findColumnForFirstNonWhitespaceCharacterInLine(lineAndCharacter, sourceFile, options) { var lineStart = sourceFile.getPositionOfLineAndCharacter(lineAndCharacter.line, 0); return findFirstNonWhitespaceColumn(lineStart, lineStart + lineAndCharacter.character, sourceFile, options); } + /* + Character is the actual index of the character since the beginning of the line. + Column - position of the character after expanding tabs to spaces + "0\t2$" + value of 'character' for '$' is 3 + value of 'column' for '$' is 6 (assuming that tab size is 4) + */ function findFirstNonWhitespaceCharacterAndColumn(startPos, endPos, sourceFile, options) { var character = 0; var column = 0; @@ -29203,7 +34084,7 @@ var ts; if (!ts.isWhiteSpace(ch)) { break; } - if (ch === 9) { + if (ch === 9 /* tab */) { column += options.TabSize + (column % options.TabSize); } else { @@ -29220,28 +34101,28 @@ var ts; SmartIndenter.findFirstNonWhitespaceColumn = findFirstNonWhitespaceColumn; function nodeContentIsAlwaysIndented(kind) { switch (kind) { - case 201: - case 202: - case 204: - case 153: - case 179: - case 206: - case 154: - case 145: - case 147: - case 207: - case 221: - case 220: - case 161: - case 157: - case 158: - case 180: - case 198: - case 214: - case 191: - case 170: - case 151: - case 150: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: + case 153 /* ArrayLiteralExpression */: + case 179 /* Block */: + case 206 /* ModuleBlock */: + case 154 /* ObjectLiteralExpression */: + case 145 /* TypeLiteral */: + case 147 /* TupleType */: + case 207 /* CaseBlock */: + case 221 /* DefaultClause */: + case 220 /* CaseClause */: + case 161 /* ParenthesizedExpression */: + case 157 /* CallExpression */: + case 158 /* NewExpression */: + case 180 /* VariableStatement */: + case 198 /* VariableDeclaration */: + case 214 /* ExportAssignment */: + case 191 /* ReturnStatement */: + case 170 /* ConditionalExpression */: + case 151 /* ArrayBindingPattern */: + case 150 /* ObjectBindingPattern */: return true; } return false; @@ -29251,22 +34132,22 @@ var ts; return true; } switch (parent) { - case 184: - case 185: - case 187: - case 188: - case 186: - case 183: - case 200: - case 162: - case 134: - case 133: - case 138: - case 163: - case 135: - case 136: - case 137: - return child !== 179; + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 186 /* ForStatement */: + case 183 /* IfStatement */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 138 /* CallSignature */: + case 163 /* ArrowFunction */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + return child !== 179 /* Block */; default: return false; } @@ -29293,6 +34174,7 @@ var __extends = this.__extends || function (d, b) { /// var ts; (function (ts) { + /** The version of the language service API */ ts.servicesVersion = "0.4"; var ScriptSnapshot; (function (ScriptSnapshot) { @@ -29308,6 +34190,8 @@ var ts; return this.text.length; }; StringScriptSnapshot.prototype.getChangeRange = function (oldSnapshot) { + // Text-based snapshots do not support incremental parsing. Return undefined + // to signal that to the caller. return undefined; }; return StringScriptSnapshot; @@ -29317,7 +34201,7 @@ var ts; } ScriptSnapshot.fromString = fromString; })(ScriptSnapshot = ts.ScriptSnapshot || (ts.ScriptSnapshot = {})); - var scanner = ts.createScanner(2, true); + var scanner = ts.createScanner(2 /* Latest */, true); var emptyArray = []; function createNode(kind, pos, end, flags, parent) { var node = new (ts.getNodeConstructor(kind))(); @@ -29362,13 +34246,13 @@ var ts; while (pos < end) { var token = scanner.scan(); var textPos = scanner.getTextPos(); - nodes.push(createNode(token, pos, textPos, 1024, this)); + nodes.push(createNode(token, pos, textPos, 1024 /* Synthetic */, this)); pos = textPos; } return pos; }; NodeObject.prototype.createSyntaxList = function (nodes) { - var list = createNode(228, nodes.pos, nodes.end, 1024, this); + var list = createNode(228 /* SyntaxList */, nodes.pos, nodes.end, 1024 /* Synthetic */, this); list._children = []; var pos = nodes.pos; for (var _i = 0; _i < nodes.length; _i++) { @@ -29387,7 +34271,7 @@ var ts; NodeObject.prototype.createChildren = function (sourceFile) { var _this = this; var children; - if (this.kind >= 126) { + if (this.kind >= 126 /* FirstNode */) { scanner.setText((sourceFile || this.getSourceFile()).text); children = []; var pos = this.pos; @@ -29432,7 +34316,7 @@ var ts; var children = this.getChildren(); for (var _i = 0; _i < children.length; _i++) { var child = children[_i]; - if (child.kind < 126) { + if (child.kind < 126 /* FirstNode */) { return child; } return child.getFirstToken(sourceFile); @@ -29442,7 +34326,7 @@ var ts; var children = this.getChildren(sourceFile); for (var i = children.length - 1; i >= 0; i--) { var child = children[i]; - if (child.kind < 126) { + if (child.kind < 126 /* FirstNode */) { return child; } return child.getLastToken(sourceFile); @@ -29466,7 +34350,7 @@ var ts; }; SymbolObject.prototype.getDocumentationComment = function () { if (this.documentationComment === undefined) { - this.documentationComment = getJsDocCommentsFromDeclarations(this.declarations, this.name, !(this.flags & 4)); + this.documentationComment = getJsDocCommentsFromDeclarations(this.declarations, this.name, !(this.flags & 4 /* Property */)); } return this.documentationComment; }; @@ -29486,9 +34370,16 @@ var ts; var paramTag = "@param"; var jsDocCommentParts = []; ts.forEach(declarations, function (declaration, indexOfDeclaration) { + // Make sure we are collecting doc comment from declaration once, + // In case of union property there might be same declaration multiple times + // which only varies in type parameter + // Eg. let a: Array | Array; a.length + // The property length will have two declarations of property length coming + // from Array - Array and Array if (ts.indexOf(declarations, declaration) === indexOfDeclaration) { var sourceFileOfDeclaration = ts.getSourceFileOfNode(declaration); - if (canUseParsedParamTagComments && declaration.kind === 129) { + // If it is parameter - try and get the jsDoc comment with @param tag from function declaration's jsDoc comments + if (canUseParsedParamTagComments && declaration.kind === 129 /* Parameter */) { ts.forEach(getJsDocCommentTextRange(declaration.parent, sourceFileOfDeclaration), function (jsDocCommentTextRange) { var cleanedParamJsDocComment = getCleanedParamJsDocComment(jsDocCommentTextRange.pos, jsDocCommentTextRange.end, sourceFileOfDeclaration); if (cleanedParamJsDocComment) { @@ -29496,13 +34387,16 @@ var ts; } }); } - if (declaration.kind === 205 && declaration.body.kind === 205) { + // If this is left side of dotted module declaration, there is no doc comments associated with this node + if (declaration.kind === 205 /* ModuleDeclaration */ && declaration.body.kind === 205 /* ModuleDeclaration */) { return; } - while (declaration.kind === 205 && declaration.parent.kind === 205) { + // If this is dotted module name, get the doc comments from the parent + while (declaration.kind === 205 /* ModuleDeclaration */ && declaration.parent.kind === 205 /* ModuleDeclaration */) { declaration = declaration.parent; } - ts.forEach(getJsDocCommentTextRange(declaration.kind === 198 ? declaration.parent.parent : declaration, sourceFileOfDeclaration), function (jsDocCommentTextRange) { + // Get the cleaned js doc comment text from the declaration + ts.forEach(getJsDocCommentTextRange(declaration.kind === 198 /* VariableDeclaration */ ? declaration.parent.parent : declaration, sourceFileOfDeclaration), function (jsDocCommentTextRange) { var cleanedJsDocComment = getCleanedJsDocComment(jsDocCommentTextRange.pos, jsDocCommentTextRange.end, sourceFileOfDeclaration); if (cleanedJsDocComment) { jsDocCommentParts.push.apply(jsDocCommentParts, cleanedJsDocComment); @@ -29515,7 +34409,7 @@ var ts; return ts.map(ts.getJsDocComments(node, sourceFile), function (jsDocComment) { return { pos: jsDocComment.pos + "/*".length, - end: jsDocComment.end - "*/".length + end: jsDocComment.end - "*/".length // Trim off comment end indicator }; }); } @@ -29526,6 +34420,7 @@ var ts; for (; pos < end; pos++) { var ch = sourceFile.text.charCodeAt(pos); if (!ts.isWhiteSpace(ch) || ts.isLineBreak(ch)) { + // Either found lineBreak or non whiteSpace return pos; } } @@ -29544,9 +34439,11 @@ var ts; ts.isLineBreak(sourceFile.text.charCodeAt(pos + name.length))); } function isParamTag(pos, end, sourceFile) { + // If it is @param tag return isName(pos, end, sourceFile, paramTag); } function pushDocCommentLineText(docComments, text, blankLineCount) { + // Add the empty lines in between texts while (blankLineCount--) { docComments.push(ts.textPart("")); } @@ -29559,10 +34456,13 @@ var ts; var isInParamTag = false; while (pos < end) { var docCommentTextOfLine = ""; + // First consume leading white space pos = consumeWhiteSpacesOnTheLine(pos, end, sourceFile); - if (pos < end && sourceFile.text.charCodeAt(pos) === 42) { + // If the comment starts with '*' consume the spaces on this line + if (pos < end && sourceFile.text.charCodeAt(pos) === 42 /* asterisk */) { var lineStartPos = pos + 1; pos = consumeWhiteSpacesOnTheLine(pos + 1, end, sourceFile, spacesToRemoveAfterAsterisk); + // Set the spaces to remove after asterisk as margin if not already set if (spacesToRemoveAfterAsterisk === undefined && pos < end && !ts.isLineBreak(sourceFile.text.charCodeAt(pos))) { spacesToRemoveAfterAsterisk = pos - lineStartPos; } @@ -29570,9 +34470,11 @@ var ts; else if (spacesToRemoveAfterAsterisk === undefined) { spacesToRemoveAfterAsterisk = 0; } + // Analyse text on this line while (pos < end && !ts.isLineBreak(sourceFile.text.charCodeAt(pos))) { var ch = sourceFile.text.charAt(pos); if (ch === "@") { + // If it is @param tag if (isParamTag(pos, end, sourceFile)) { isInParamTag = true; pos += paramTag.length; @@ -29582,17 +34484,21 @@ var ts; isInParamTag = false; } } + // Add the ch to doc text if we arent in param tag if (!isInParamTag) { docCommentTextOfLine += ch; } + // Scan next character pos++; } + // Continue with next line pos = consumeLineBreaks(pos, end, sourceFile); if (docCommentTextOfLine) { pushDocCommentLineText(docComments, docCommentTextOfLine, blankLineCount); blankLineCount = 0; } else if (!isInParamTag && docComments.length) { + // This is blank line when there is text already parsed blankLineCount++; } } @@ -29605,38 +34511,48 @@ var ts; if (isParamTag(pos, end, sourceFile)) { var blankLineCount = 0; var recordedParamTag = false; + // Consume leading spaces pos = consumeWhiteSpaces(pos + paramTag.length); if (pos >= end) { break; } - if (sourceFile.text.charCodeAt(pos) === 123) { + // Ignore type expression + if (sourceFile.text.charCodeAt(pos) === 123 /* openBrace */) { pos++; for (var curlies = 1; pos < end; pos++) { var charCode = sourceFile.text.charCodeAt(pos); - if (charCode === 123) { + // { character means we need to find another } to match the found one + if (charCode === 123 /* openBrace */) { curlies++; continue; } - if (charCode === 125) { + // } char + if (charCode === 125 /* closeBrace */) { curlies--; if (curlies === 0) { + // We do not have any more } to match the type expression is ignored completely pos++; break; } else { + // there are more { to be matched with } continue; } } - if (charCode === 64) { + // Found start of another tag + if (charCode === 64 /* at */) { break; } } + // Consume white spaces pos = consumeWhiteSpaces(pos); if (pos >= end) { break; } } + // Parameter name if (isName(pos, end, sourceFile, name)) { + // Found the parameter we are looking for consume white spaces pos = consumeWhiteSpaces(pos + name.length); if (pos >= end) { break; @@ -29645,6 +34561,7 @@ var ts; var firstLineParamHelpStringPos = pos; while (pos < end) { var ch = sourceFile.text.charCodeAt(pos); + // at line break, set this comment line text and go to next line if (ts.isLineBreak(ch)) { if (paramHelpString) { pushDocCommentLineText(paramDocComments, paramHelpString, blankLineCount); @@ -29655,24 +34572,30 @@ var ts; else if (recordedParamTag) { blankLineCount++; } + // Get the pos after cleaning start of the line setPosForParamHelpStringOnNextLine(firstLineParamHelpStringPos); continue; } - if (ch === 64) { + // Done scanning param help string - next tag found + if (ch === 64 /* at */) { break; } paramHelpString += sourceFile.text.charAt(pos); + // Go to next character pos++; } + // If there is param help text, add it top the doc comments if (paramHelpString) { pushDocCommentLineText(paramDocComments, paramHelpString, blankLineCount); } paramHelpStringMargin = undefined; } - if (sourceFile.text.charCodeAt(pos) === 64) { + // If this is the start of another tag, continue with the loop in seach of param tag with symbol name + if (sourceFile.text.charCodeAt(pos) === 64 /* at */) { continue; } } + // Next character pos++; } return paramDocComments; @@ -29683,6 +34606,7 @@ var ts; return pos; } function setPosForParamHelpStringOnNextLine(firstLineParamHelpStringPos) { + // Get the pos after consuming line breaks pos = consumeLineBreaks(pos, end, sourceFile); if (pos >= end) { return; @@ -29690,6 +34614,7 @@ var ts; if (paramHelpStringMargin === undefined) { paramHelpStringMargin = sourceFile.getLineAndCharacterOfPosition(firstLineParamHelpStringPos).character; } + // Now consume white spaces max var startOfLinePos = pos; pos = consumeWhiteSpacesOnTheLine(pos, end, sourceFile, paramHelpStringMargin); if (pos >= end) { @@ -29698,7 +34623,8 @@ var ts; var consumedSpaces = pos - startOfLinePos; if (consumedSpaces < paramHelpStringMargin) { var ch = sourceFile.text.charCodeAt(pos); - if (ch === 42) { + if (ch === 42 /* asterisk */) { + // Consume more spaces after asterisk pos = consumeWhiteSpacesOnTheLine(pos + 1, end, sourceFile, paramHelpStringMargin - consumedSpaces - 1); } } @@ -29727,16 +34653,16 @@ var ts; return this.checker.getAugmentedPropertiesOfType(this); }; TypeObject.prototype.getCallSignatures = function () { - return this.checker.getSignaturesOfType(this, 0); + return this.checker.getSignaturesOfType(this, 0 /* Call */); }; TypeObject.prototype.getConstructSignatures = function () { - return this.checker.getSignaturesOfType(this, 1); + return this.checker.getSignaturesOfType(this, 1 /* Construct */); }; TypeObject.prototype.getStringIndexType = function () { - return this.checker.getIndexTypeOfType(this, 0); + return this.checker.getIndexTypeOfType(this, 0 /* String */); }; TypeObject.prototype.getNumberIndexType = function () { - return this.checker.getIndexTypeOfType(this, 1); + return this.checker.getIndexTypeOfType(this, 1 /* Number */); }; return TypeObject; })(); @@ -29758,7 +34684,9 @@ var ts; }; SignatureObject.prototype.getDocumentationComment = function () { if (this.documentationComment === undefined) { - this.documentationComment = this.declaration ? getJsDocCommentsFromDeclarations([this.declaration], undefined, false) : []; + this.documentationComment = this.declaration ? getJsDocCommentsFromDeclarations([this.declaration], + /*name*/ undefined, + /*canUseParsedParamTagComments*/ false) : []; } return this.documentationComment; }; @@ -29783,101 +34711,117 @@ var ts; }; SourceFileObject.prototype.getNamedDeclarations = function () { if (!this.namedDeclarations) { - var sourceFile = this; - var namedDeclarations = []; - ts.forEachChild(sourceFile, function visit(node) { - switch (node.kind) { - case 200: - case 134: - case 133: - var functionDeclaration = node; - if (functionDeclaration.name && functionDeclaration.name.getFullWidth() > 0) { - var lastDeclaration = namedDeclarations.length > 0 ? - namedDeclarations[namedDeclarations.length - 1] : - undefined; - if (lastDeclaration && functionDeclaration.symbol === lastDeclaration.symbol) { - if (functionDeclaration.body && !lastDeclaration.body) { - namedDeclarations[namedDeclarations.length - 1] = functionDeclaration; - } - } - else { - namedDeclarations.push(functionDeclaration); - } - ts.forEachChild(node, visit); - } - break; - case 201: - case 202: - case 203: - case 204: - case 205: - case 208: - case 217: - case 213: - case 208: - case 210: - case 211: - case 136: - case 137: - case 145: - if (node.name) { - namedDeclarations.push(node); - } - case 135: - case 180: - case 199: - case 150: - case 151: - case 206: - ts.forEachChild(node, visit); - break; - case 179: - if (ts.isFunctionBlock(node)) { - ts.forEachChild(node, visit); - } - break; - case 129: - if (!(node.flags & 112)) { - break; - } - case 198: - case 152: - if (ts.isBindingPattern(node.name)) { - ts.forEachChild(node.name, visit); - break; - } - case 226: - case 132: - case 131: - namedDeclarations.push(node); - break; - case 215: - if (node.exportClause) { - ts.forEach(node.exportClause.elements, visit); - } - break; - case 209: - var importClause = node.importClause; - if (importClause) { - if (importClause.name) { - namedDeclarations.push(importClause); - } - if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 211) { - namedDeclarations.push(importClause.namedBindings); - } - else { - ts.forEach(importClause.namedBindings.elements, visit); - } - } - } - break; - } - }); - this.namedDeclarations = namedDeclarations; + this.namedDeclarations = this.computeNamedDeclarations(); } return this.namedDeclarations; }; + SourceFileObject.prototype.computeNamedDeclarations = function () { + var namedDeclarations = []; + ts.forEachChild(this, visit); + return namedDeclarations; + function visit(node) { + switch (node.kind) { + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + var functionDeclaration = node; + if (functionDeclaration.name && functionDeclaration.name.getFullWidth() > 0) { + var lastDeclaration = namedDeclarations.length > 0 ? + namedDeclarations[namedDeclarations.length - 1] : + undefined; + // Check whether this declaration belongs to an "overload group". + if (lastDeclaration && functionDeclaration.symbol === lastDeclaration.symbol) { + // Overwrite the last declaration if it was an overload + // and this one is an implementation. + if (functionDeclaration.body && !lastDeclaration.body) { + namedDeclarations[namedDeclarations.length - 1] = functionDeclaration; + } + } + else { + namedDeclarations.push(functionDeclaration); + } + ts.forEachChild(node, visit); + } + break; + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 204 /* EnumDeclaration */: + case 205 /* ModuleDeclaration */: + case 208 /* ImportEqualsDeclaration */: + case 217 /* ExportSpecifier */: + case 213 /* ImportSpecifier */: + case 208 /* ImportEqualsDeclaration */: + case 210 /* ImportClause */: + case 211 /* NamespaceImport */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 145 /* TypeLiteral */: + if (node.name) { + namedDeclarations.push(node); + } + // fall through + case 135 /* Constructor */: + case 180 /* VariableStatement */: + case 199 /* VariableDeclarationList */: + case 150 /* ObjectBindingPattern */: + case 151 /* ArrayBindingPattern */: + case 206 /* ModuleBlock */: + ts.forEachChild(node, visit); + break; + case 179 /* Block */: + if (ts.isFunctionBlock(node)) { + ts.forEachChild(node, visit); + } + break; + case 129 /* Parameter */: + // Only consider properties defined as constructor parameters + if (!(node.flags & 112 /* AccessibilityModifier */)) { + break; + } + // fall through + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: + if (ts.isBindingPattern(node.name)) { + ts.forEachChild(node.name, visit); + break; + } + case 226 /* EnumMember */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + namedDeclarations.push(node); + break; + case 215 /* ExportDeclaration */: + // Handle named exports case e.g.: + // export {a, b as B} from "mod"; + if (node.exportClause) { + ts.forEach(node.exportClause.elements, visit); + } + break; + case 209 /* ImportDeclaration */: + var importClause = node.importClause; + if (importClause) { + // Handle default import case e.g.: + // import d from "mod"; + if (importClause.name) { + namedDeclarations.push(importClause); + } + // Handle named bindings in imports e.g.: + // import * as NS from "mod"; + // import {a, b as B} from "mod"; + if (importClause.namedBindings) { + if (importClause.namedBindings.kind === 211 /* NamespaceImport */) { + namedDeclarations.push(importClause.namedBindings); + } + else { + ts.forEach(importClause.namedBindings.elements, visit); + } + } + } + break; + } + } + }; return SourceFileObject; })(NodeObject); var TextChange = (function () { @@ -29886,6 +34830,13 @@ var ts; return TextChange; })(); ts.TextChange = TextChange; + var HighlightSpanKind; + (function (HighlightSpanKind) { + HighlightSpanKind.none = "none"; + HighlightSpanKind.definition = "definition"; + HighlightSpanKind.reference = "reference"; + HighlightSpanKind.writtenReference = "writtenReference"; + })(HighlightSpanKind = ts.HighlightSpanKind || (ts.HighlightSpanKind = {})); (function (SymbolDisplayPartKind) { SymbolDisplayPartKind[SymbolDisplayPartKind["aliasName"] = 0] = "aliasName"; SymbolDisplayPartKind[SymbolDisplayPartKind["className"] = 1] = "className"; @@ -29939,29 +34890,52 @@ var ts; TokenClass[TokenClass["RegExpLiteral"] = 8] = "RegExpLiteral"; })(ts.TokenClass || (ts.TokenClass = {})); var TokenClass = ts.TokenClass; - var ScriptElementKind = (function () { - function ScriptElementKind() { - } + // TODO: move these to enums + var ScriptElementKind; + (function (ScriptElementKind) { ScriptElementKind.unknown = ""; + ScriptElementKind.warning = "warning"; + // predefined type (void) or keyword (class) ScriptElementKind.keyword = "keyword"; + // top level script node ScriptElementKind.scriptElement = "script"; + // module foo {} ScriptElementKind.moduleElement = "module"; + // class X {} ScriptElementKind.classElement = "class"; + // interface Y {} ScriptElementKind.interfaceElement = "interface"; + // type T = ... ScriptElementKind.typeElement = "type"; + // enum E ScriptElementKind.enumElement = "enum"; + // Inside module and script only + // let v = .. ScriptElementKind.variableElement = "var"; + // Inside function ScriptElementKind.localVariableElement = "local var"; + // Inside module and script only + // function f() { } ScriptElementKind.functionElement = "function"; + // Inside function ScriptElementKind.localFunctionElement = "local function"; + // class X { [public|private]* foo() {} } ScriptElementKind.memberFunctionElement = "method"; + // class X { [public|private]* [get|set] foo:number; } ScriptElementKind.memberGetAccessorElement = "getter"; ScriptElementKind.memberSetAccessorElement = "setter"; + // class X { [public|private]* foo:number; } + // interface Y { foo:number; } ScriptElementKind.memberVariableElement = "property"; + // class X { constructor() { } } ScriptElementKind.constructorImplementationElement = "constructor"; + // interface Y { ():number; } ScriptElementKind.callSignatureElement = "call"; + // interface Y { []:number; } ScriptElementKind.indexSignatureElement = "index"; + // interface Y { new():Y; } ScriptElementKind.constructSignatureElement = "construct"; + // function foo(*Y*: string) ScriptElementKind.parameterElement = "parameter"; ScriptElementKind.typeParameterElement = "type parameter"; ScriptElementKind.primitiveType = "primitive type"; @@ -29969,12 +34943,9 @@ var ts; ScriptElementKind.alias = "alias"; ScriptElementKind.constElement = "const"; ScriptElementKind.letElement = "let"; - return ScriptElementKind; - })(); - ts.ScriptElementKind = ScriptElementKind; - var ScriptElementKindModifier = (function () { - function ScriptElementKindModifier() { - } + })(ScriptElementKind = ts.ScriptElementKind || (ts.ScriptElementKind = {})); + var ScriptElementKindModifier; + (function (ScriptElementKindModifier) { ScriptElementKindModifier.none = ""; ScriptElementKindModifier.publicMemberModifier = "public"; ScriptElementKindModifier.privateMemberModifier = "private"; @@ -29982,9 +34953,7 @@ var ts; ScriptElementKindModifier.exportedModifier = "export"; ScriptElementKindModifier.ambientModifier = "declare"; ScriptElementKindModifier.staticModifier = "static"; - return ScriptElementKindModifier; - })(); - ts.ScriptElementKindModifier = ScriptElementKindModifier; + })(ScriptElementKindModifier = ts.ScriptElementKindModifier || (ts.ScriptElementKindModifier = {})); var ClassificationTypeNames = (function () { function ClassificationTypeNames() { } @@ -30015,27 +34984,32 @@ var ts; ts.displayPartsToString = displayPartsToString; function isLocalVariableOrFunction(symbol) { if (symbol.parent) { - return false; + return false; // This is exported symbol } return ts.forEach(symbol.declarations, function (declaration) { - if (declaration.kind === 162) { + // Function expressions are local + if (declaration.kind === 162 /* FunctionExpression */) { return true; } - if (declaration.kind !== 198 && declaration.kind !== 200) { + if (declaration.kind !== 198 /* VariableDeclaration */ && declaration.kind !== 200 /* FunctionDeclaration */) { return false; } - for (var parent_7 = declaration.parent; !ts.isFunctionBlock(parent_7); parent_7 = parent_7.parent) { - if (parent_7.kind === 227 || parent_7.kind === 206) { + // If the parent is not sourceFile or module block it is local variable + for (var parent_8 = declaration.parent; !ts.isFunctionBlock(parent_8); parent_8 = parent_8.parent) { + // Reached source file or module block + if (parent_8.kind === 227 /* SourceFile */ || parent_8.kind === 206 /* ModuleBlock */) { return false; } } + // parent is in function block return true; }); } function getDefaultCompilerOptions() { + // Always default to "ScriptTarget.ES5" for the language service return { - target: 1, - module: 0 + target: 1 /* ES5 */, + module: 0 /* None */ }; } ts.getDefaultCompilerOptions = getDefaultCompilerOptions; @@ -30061,15 +35035,21 @@ var ts; return CancellationTokenObject; })(); ts.CancellationTokenObject = CancellationTokenObject; + // Cache host information about scrip Should be refreshed + // 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) { this.host = host; + // script id => script index this.fileNameToEntry = {}; + // Initialize the list with the root file names var rootFileNames = host.getScriptFileNames(); for (var _i = 0; _i < rootFileNames.length; _i++) { var fileName = rootFileNames[_i]; this.createEntry(fileName); } + // store the compilation settings this._compilationSettings = host.getCompilationSettings() || getDefaultCompilerOptions(); } HostCache.prototype.compilationSettings = function () { @@ -30125,18 +35105,22 @@ var ts; SyntaxTreeCache.prototype.getCurrentSourceFile = function (fileName) { var scriptSnapshot = this.host.getScriptSnapshot(fileName); if (!scriptSnapshot) { + // The host does not know about this file. throw new Error("Could not find file: '" + fileName + "'."); } var version = this.host.getScriptVersion(fileName); var sourceFile; if (this.currentFileName !== fileName) { - sourceFile = createLanguageServiceSourceFile(fileName, scriptSnapshot, 2, version, true); + // This is a new file, just parse it + sourceFile = createLanguageServiceSourceFile(fileName, scriptSnapshot, 2 /* Latest */, version, true); } else if (this.currentFileVersion !== version) { + // This is the same file, just a newer version. Incrementally parse the file. var editRange = scriptSnapshot.getChangeRange(this.currentFileScriptSnapshot); sourceFile = updateLanguageServiceSourceFile(this.currentSourceFile, scriptSnapshot, version, editRange); } if (sourceFile) { + // All done, ensure state is up to date this.currentFileVersion = version; this.currentFileName = fileName; this.currentFileScriptSnapshot = scriptSnapshot; @@ -30150,16 +35134,28 @@ var ts; sourceFile.version = version; sourceFile.scriptSnapshot = scriptSnapshot; } + /* + * This function will compile source text from 'input' argument using specified compiler options. + * If not options are provided - it will use a set of default compiler options. + * Extra compiler options that will unconditionally be used bu this function are: + * - separateCompilation = true + * - allowNonTsExtensions = true + */ function transpile(input, compilerOptions, fileName, diagnostics) { var options = compilerOptions ? ts.clone(compilerOptions) : getDefaultCompilerOptions(); options.separateCompilation = true; + // Filename can be non-ts file. options.allowNonTsExtensions = true; + // Parse var inputFileName = fileName || "module.ts"; var sourceFile = ts.createSourceFile(inputFileName, input, options.target); + // Store syntactic diagnostics if (diagnostics && sourceFile.parseDiagnostics) { diagnostics.push.apply(diagnostics, sourceFile.parseDiagnostics); } + // Output var outputText; + // Create a compilerHost object to allow the compiler to read and write files var compilerHost = { getSourceFile: function (fileName, target) { return fileName === inputFileName ? sourceFile : undefined; }, writeFile: function (name, text, writeByteOrderMark) { @@ -30170,12 +35166,13 @@ var ts; useCaseSensitiveFileNames: function () { return false; }, getCanonicalFileName: function (fileName) { return fileName; }, getCurrentDirectory: function () { return ""; }, - getNewLine: function () { return "\r\n"; } + getNewLine: function () { return (ts.sys && ts.sys.newLine) || "\r\n"; } }; var program = ts.createProgram([inputFileName], options, compilerHost); if (diagnostics) { diagnostics.push.apply(diagnostics, program.getGlobalDiagnostics()); } + // Emit program.emit(); ts.Debug.assert(outputText !== undefined, "Output generation failed"); return outputText; @@ -30184,29 +35181,38 @@ var ts; function createLanguageServiceSourceFile(fileName, scriptSnapshot, scriptTarget, version, setNodeParents) { var sourceFile = ts.createSourceFile(fileName, scriptSnapshot.getText(0, scriptSnapshot.getLength()), scriptTarget, setNodeParents); setSourceFileFields(sourceFile, scriptSnapshot, version); + // after full parsing we can use table with interned strings as name table sourceFile.nameTable = sourceFile.identifiers; return sourceFile; } ts.createLanguageServiceSourceFile = createLanguageServiceSourceFile; ts.disableIncrementalParsing = false; function updateLanguageServiceSourceFile(sourceFile, scriptSnapshot, version, textChangeRange, aggressiveChecks) { + // If we were given a text change range, and our version or open-ness changed, then + // incrementally parse this file. if (textChangeRange) { if (version !== sourceFile.version) { + // Once incremental parsing is ready, then just call into this function. if (!ts.disableIncrementalParsing) { var newSourceFile = ts.updateSourceFile(sourceFile, scriptSnapshot.getText(0, scriptSnapshot.getLength()), textChangeRange, aggressiveChecks); setSourceFileFields(newSourceFile, scriptSnapshot, version); + // after incremental parsing nameTable might not be up-to-date + // drop it so it can be lazily recreated later newSourceFile.nameTable = undefined; return newSourceFile; } } } + // Otherwise, just create a new source file. return createLanguageServiceSourceFile(sourceFile.fileName, scriptSnapshot, sourceFile.languageVersion, version, true); } ts.updateLanguageServiceSourceFile = updateLanguageServiceSourceFile; function createDocumentRegistry() { + // Maps from compiler setting target (ES3, ES5, etc.) to all the cached documents we have + // for those settings. var buckets = {}; function getKeyFromCompilationSettings(settings) { - return "_" + settings.target; + return "_" + settings.target; // + "|" + settings.propagateEnumConstantoString() } function getBucketForCompilationSettings(settings, createIfMissing) { var key = getKeyFromCompilationSettings(settings); @@ -30247,6 +35253,7 @@ var ts; var entry = ts.lookUp(bucket, fileName); if (!entry) { ts.Debug.assert(acquiring, "How could we be trying to update a document that the registry doesn't have?"); + // Have never seen this file with these settings. Create a new source file for it. var sourceFile = createLanguageServiceSourceFile(fileName, scriptSnapshot, compilationSettings.target, version, false); bucket[fileName] = entry = { sourceFile: sourceFile, @@ -30255,10 +35262,18 @@ var ts; }; } else { + // We have an entry for this file. However, it may be for a different version of + // the script snapshot. If so, update it appropriately. Otherwise, we can just + // return it as is. if (entry.sourceFile.version !== version) { entry.sourceFile = updateLanguageServiceSourceFile(entry.sourceFile, scriptSnapshot, version, scriptSnapshot.getChangeRange(entry.sourceFile.scriptSnapshot)); } } + // If we're acquiring, then this is the first time this LS is asking for this document. + // Increase our ref count so we know there's another LS using the document. If we're + // not acquiring, then that means the LS is 'updating' the file instead, and that means + // it has already acquired the document previously. As such, we do not need to increase + // the ref count. if (acquiring) { entry.languageServiceRefCount++; } @@ -30313,67 +35328,87 @@ var ts; function processImport() { scanner.setText(sourceText); var token = scanner.scan(); - while (token !== 1) { - if (token === 85) { + // Look for: + // import "mod"; + // import d from "mod" + // import {a as A } from "mod"; + // import * as NS from "mod" + // import d, {a, b as B} from "mod" + // import i = require("mod"); + // + // export * from "mod" + // export {a as b} from "mod" + while (token !== 1 /* EndOfFileToken */) { + if (token === 85 /* ImportKeyword */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // import "mod"; recordModuleName(); continue; } else { - if (token === 65) { + if (token === 65 /* Identifier */) { token = scanner.scan(); - if (token === 124) { + if (token === 124 /* FromKeyword */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // import d from "mod"; recordModuleName(); continue; } } - else if (token === 53) { + else if (token === 53 /* EqualsToken */) { token = scanner.scan(); - if (token === 118) { + if (token === 118 /* RequireKeyword */) { token = scanner.scan(); - if (token === 16) { + if (token === 16 /* OpenParenToken */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // import i = require("mod"); recordModuleName(); continue; } } } } - else if (token === 23) { + else if (token === 23 /* CommaToken */) { + // consume comma and keep going token = scanner.scan(); } else { + // unknown syntax continue; } } - if (token === 14) { + if (token === 14 /* OpenBraceToken */) { token = scanner.scan(); - while (token !== 15) { + // consume "{ a as B, c, d as D}" clauses + while (token !== 15 /* CloseBraceToken */) { token = scanner.scan(); } - if (token === 15) { + if (token === 15 /* CloseBraceToken */) { token = scanner.scan(); - if (token === 124) { + if (token === 124 /* FromKeyword */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // import {a as A} from "mod"; + // import d, {a, b as B} from "mod" recordModuleName(); } } } } - else if (token === 35) { + else if (token === 35 /* AsteriskToken */) { token = scanner.scan(); - if (token === 102) { + if (token === 102 /* AsKeyword */) { token = scanner.scan(); - if (token === 65) { + if (token === 65 /* Identifier */) { token = scanner.scan(); - if (token === 124) { + if (token === 124 /* FromKeyword */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // import * as NS from "mod" + // import d, * as NS from "mod" recordModuleName(); } } @@ -30382,28 +35417,32 @@ var ts; } } } - else if (token === 78) { + else if (token === 78 /* ExportKeyword */) { token = scanner.scan(); - if (token === 14) { + if (token === 14 /* OpenBraceToken */) { token = scanner.scan(); - while (token !== 15) { + // consume "{ a as B, c, d as D}" clauses + while (token !== 15 /* CloseBraceToken */) { token = scanner.scan(); } - if (token === 15) { + if (token === 15 /* CloseBraceToken */) { token = scanner.scan(); - if (token === 124) { + if (token === 124 /* FromKeyword */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // export {a as A} from "mod"; + // export {a, b as B} from "mod" recordModuleName(); } } } } - else if (token === 35) { + else if (token === 35 /* AsteriskToken */) { token = scanner.scan(); - if (token === 124) { + if (token === 124 /* FromKeyword */) { token = scanner.scan(); - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // export * from "mod" recordModuleName(); } } @@ -30420,9 +35459,10 @@ var ts; return { referencedFiles: referencedFiles, importedFiles: importedFiles, isLibFile: isNoDefaultLib }; } ts.preProcessFile = preProcessFile; + /// Helpers function getTargetLabel(referenceNode, labelName) { while (referenceNode) { - if (referenceNode.kind === 194 && referenceNode.label.text === labelName) { + if (referenceNode.kind === 194 /* LabeledStatement */ && referenceNode.label.text === labelName) { return referenceNode.label; } referenceNode = referenceNode.parent; @@ -30430,17 +35470,21 @@ var ts; return undefined; } function isJumpStatementTarget(node) { - return node.kind === 65 && - (node.parent.kind === 190 || node.parent.kind === 189) && + return node.kind === 65 /* Identifier */ && + (node.parent.kind === 190 /* BreakStatement */ || node.parent.kind === 189 /* ContinueStatement */) && node.parent.label === node; } function isLabelOfLabeledStatement(node) { - return node.kind === 65 && - node.parent.kind === 194 && + return node.kind === 65 /* Identifier */ && + node.parent.kind === 194 /* LabeledStatement */ && node.parent.label === node; } + /** + * Whether or not a 'node' is preceded by a label of the given string. + * Note: 'node' cannot be a SourceFile. + */ function isLabeledBy(node, labelName) { - for (var owner = node.parent; owner.kind === 194; owner = owner.parent) { + for (var owner = node.parent; owner.kind === 194 /* LabeledStatement */; owner = owner.parent) { if (owner.label.text === labelName) { return true; } @@ -30451,78 +35495,84 @@ var ts; return isLabelOfLabeledStatement(node) || isJumpStatementTarget(node); } function isRightSideOfQualifiedName(node) { - return node.parent.kind === 126 && node.parent.right === node; + return node.parent.kind === 126 /* QualifiedName */ && node.parent.right === node; } function isRightSideOfPropertyAccess(node) { - return node && node.parent && node.parent.kind === 155 && node.parent.name === node; + return node && node.parent && node.parent.kind === 155 /* PropertyAccessExpression */ && node.parent.name === node; } function isCallExpressionTarget(node) { if (isRightSideOfPropertyAccess(node)) { node = node.parent; } - return node && node.parent && node.parent.kind === 157 && node.parent.expression === node; + return node && node.parent && node.parent.kind === 157 /* CallExpression */ && node.parent.expression === node; } function isNewExpressionTarget(node) { if (isRightSideOfPropertyAccess(node)) { node = node.parent; } - return node && node.parent && node.parent.kind === 158 && node.parent.expression === node; + return node && node.parent && node.parent.kind === 158 /* NewExpression */ && node.parent.expression === node; } function isNameOfModuleDeclaration(node) { - return node.parent.kind === 205 && node.parent.name === node; + return node.parent.kind === 205 /* ModuleDeclaration */ && node.parent.name === node; } function isNameOfFunctionDeclaration(node) { - return node.kind === 65 && + return node.kind === 65 /* Identifier */ && ts.isFunctionLike(node.parent) && node.parent.name === node; } + /** Returns true if node is a name of an object literal property, e.g. "a" in x = { "a": 1 } */ function isNameOfPropertyAssignment(node) { - return (node.kind === 65 || node.kind === 8 || node.kind === 7) && - (node.parent.kind === 224 || node.parent.kind === 225) && node.parent.name === node; + return (node.kind === 65 /* Identifier */ || node.kind === 8 /* StringLiteral */ || node.kind === 7 /* NumericLiteral */) && + (node.parent.kind === 224 /* PropertyAssignment */ || node.parent.kind === 225 /* ShorthandPropertyAssignment */) && node.parent.name === node; } function isLiteralNameOfPropertyDeclarationOrIndexAccess(node) { - if (node.kind === 8 || node.kind === 7) { + if (node.kind === 8 /* StringLiteral */ || node.kind === 7 /* NumericLiteral */) { switch (node.parent.kind) { - case 132: - case 131: - case 224: - case 226: - case 134: - case 133: - case 136: - case 137: - case 205: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 224 /* PropertyAssignment */: + case 226 /* EnumMember */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 205 /* ModuleDeclaration */: return node.parent.name === node; - case 156: + case 156 /* ElementAccessExpression */: return node.parent.argumentExpression === node; } } return false; } function isNameOfExternalModuleImportOrDeclaration(node) { - if (node.kind === 8) { + if (node.kind === 8 /* StringLiteral */) { return isNameOfModuleDeclaration(node) || (ts.isExternalModuleImportEqualsDeclaration(node.parent.parent) && ts.getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node); } return false; } + /** Returns true if the position is within a comment */ function isInsideComment(sourceFile, token, position) { + // The position has to be: 1. in the leading trivia (before token.getStart()), and 2. within a comment return position <= token.getStart(sourceFile) && (isInsideCommentRange(ts.getTrailingCommentRanges(sourceFile.text, token.getFullStart())) || isInsideCommentRange(ts.getLeadingCommentRanges(sourceFile.text, token.getFullStart()))); function isInsideCommentRange(comments) { return ts.forEach(comments, function (comment) { + // either we are 1. completely inside the comment, or 2. at the end of the comment if (comment.pos < position && position < comment.end) { return true; } else if (position === comment.end) { var text = sourceFile.text; var width = comment.end - comment.pos; - if (width <= 2 || text.charCodeAt(comment.pos + 1) === 47) { + // is single line comment or just /* + if (width <= 2 || text.charCodeAt(comment.pos + 1) === 47 /* slash */) { return true; } else { - return !(text.charCodeAt(comment.end - 1) === 47 && - text.charCodeAt(comment.end - 2) === 42); + // is unterminated multi-line comment + return !(text.charCodeAt(comment.end - 1) === 47 /* slash */ && + text.charCodeAt(comment.end - 2) === 42 /* asterisk */); } } return false; @@ -30544,71 +35594,73 @@ var ts; BreakContinueSearchType[BreakContinueSearchType["Labeled"] = 2] = "Labeled"; BreakContinueSearchType[BreakContinueSearchType["All"] = 3] = "All"; })(BreakContinueSearchType || (BreakContinueSearchType = {})); + // A cache of completion entries for keywords, these do not change between sessions var keywordCompletions = []; - for (var i = 66; i <= 125; i++) { + for (var i = 66 /* FirstKeyword */; i <= 125 /* LastKeyword */; i++) { keywordCompletions.push({ name: ts.tokenToString(i), kind: ScriptElementKind.keyword, - kindModifiers: ScriptElementKindModifier.none + kindModifiers: ScriptElementKindModifier.none, + sortText: "0" }); } - function getContainerNode(node) { + /* @internal */ function getContainerNode(node) { while (true) { node = node.parent; if (!node) { return undefined; } switch (node.kind) { - case 227: - case 134: - case 133: - case 200: - case 162: - case 136: - case 137: - case 201: - case 202: - case 204: - case 205: + case 227 /* SourceFile */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 201 /* ClassDeclaration */: + case 202 /* InterfaceDeclaration */: + case 204 /* EnumDeclaration */: + case 205 /* ModuleDeclaration */: return node; } } } ts.getContainerNode = getContainerNode; - function getNodeKind(node) { + /* @internal */ function getNodeKind(node) { switch (node.kind) { - case 205: return ScriptElementKind.moduleElement; - case 201: return ScriptElementKind.classElement; - case 202: return ScriptElementKind.interfaceElement; - case 203: return ScriptElementKind.typeElement; - case 204: return ScriptElementKind.enumElement; - case 198: + case 205 /* ModuleDeclaration */: return ScriptElementKind.moduleElement; + case 201 /* ClassDeclaration */: return ScriptElementKind.classElement; + case 202 /* InterfaceDeclaration */: return ScriptElementKind.interfaceElement; + case 203 /* TypeAliasDeclaration */: return ScriptElementKind.typeElement; + case 204 /* EnumDeclaration */: return ScriptElementKind.enumElement; + case 198 /* VariableDeclaration */: return ts.isConst(node) ? ScriptElementKind.constElement : ts.isLet(node) ? ScriptElementKind.letElement : ScriptElementKind.variableElement; - case 200: return ScriptElementKind.functionElement; - case 136: return ScriptElementKind.memberGetAccessorElement; - case 137: return ScriptElementKind.memberSetAccessorElement; - case 134: - case 133: + case 200 /* FunctionDeclaration */: return ScriptElementKind.functionElement; + case 136 /* GetAccessor */: return ScriptElementKind.memberGetAccessorElement; + case 137 /* SetAccessor */: return ScriptElementKind.memberSetAccessorElement; + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: return ScriptElementKind.memberFunctionElement; - case 132: - case 131: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: return ScriptElementKind.memberVariableElement; - case 140: return ScriptElementKind.indexSignatureElement; - case 139: return ScriptElementKind.constructSignatureElement; - case 138: return ScriptElementKind.callSignatureElement; - case 135: return ScriptElementKind.constructorImplementationElement; - case 128: return ScriptElementKind.typeParameterElement; - case 226: return ScriptElementKind.variableElement; - case 129: return (node.flags & 112) ? ScriptElementKind.memberVariableElement : ScriptElementKind.parameterElement; - case 208: - case 213: - case 210: - case 217: - case 211: + case 140 /* IndexSignature */: return ScriptElementKind.indexSignatureElement; + case 139 /* ConstructSignature */: return ScriptElementKind.constructSignatureElement; + case 138 /* CallSignature */: return ScriptElementKind.callSignatureElement; + case 135 /* Constructor */: return ScriptElementKind.constructorImplementationElement; + case 128 /* TypeParameter */: return ScriptElementKind.typeParameterElement; + case 226 /* EnumMember */: return ScriptElementKind.variableElement; + case 129 /* Parameter */: return (node.flags & 112 /* AccessibilityModifier */) ? ScriptElementKind.memberVariableElement : ScriptElementKind.parameterElement; + case 208 /* ImportEqualsDeclaration */: + case 213 /* ImportSpecifier */: + case 210 /* ImportClause */: + case 217 /* ExportSpecifier */: + case 211 /* NamespaceImport */: return ScriptElementKind.alias; } return ScriptElementKind.unknown; @@ -30619,9 +35671,11 @@ var ts; var syntaxTreeCache = new SyntaxTreeCache(host); var ruleProvider; var program; + // this checker is used to answer all LS questions except errors var typeInfoResolver; var useCaseSensitivefileNames = false; var cancellationToken = new CancellationTokenObject(host.getCancellationToken && host.getCancellationToken()); + // Check if the localized messages json is set, otherwise query the host for it if (!ts.localizedDiagnosticMessages && host.getLocalizedDiagnosticMessages) { ts.localizedDiagnosticMessages = host.getLocalizedDiagnosticMessages(); } @@ -30642,6 +35696,7 @@ var ts; return sourceFile; } function getRuleProvider(options) { + // Ensure rules are initialized and up to date wrt to formatting options if (!ruleProvider) { ruleProvider = new ts.formatting.RulesProvider(); } @@ -30649,13 +35704,21 @@ var ts; return ruleProvider; } function synchronizeHostData() { + // Get a fresh cache of the host information var hostCache = new HostCache(host); + // If the program is already up-to-date, we can reuse it if (programUpToDate()) { return; } + // IMPORTANT - It is critical from this moment onward that we do not check + // cancellation tokens. We are about to mutate source files from a previous program + // instance. If we cancel midway through, we may end up in an inconsistent state where + // the program points to old source files that have been invalidated because of + // incremental parsing. var oldSettings = program && program.getCompilerOptions(); var newSettings = hostCache.compilationSettings(); var changesInCompilationSettingsAffectSyntax = oldSettings && oldSettings.target !== newSettings.target; + // Now create a new compiler var newProgram = ts.createProgram(hostCache.getRootFileNames(), newSettings, { getSourceFile: getOrCreateSourceFile, getCancellationToken: function () { return cancellationToken; }, @@ -30666,6 +35729,8 @@ var ts; writeFile: function (fileName, data, writeByteOrderMark) { }, getCurrentDirectory: function () { return host.getCurrentDirectory(); } }); + // Release any files we have acquired in the old program but are + // not part of the new program. if (program) { var oldSourceFiles = program.getSourceFiles(); for (var _i = 0; _i < oldSourceFiles.length; _i++) { @@ -30680,35 +35745,68 @@ var ts; typeInfoResolver = program.getTypeChecker(); return; function getOrCreateSourceFile(fileName) { + // The program is asking for this file, check first if the host can locate it. + // If the host can not locate the file, then it does not exist. return undefined + // to the program to allow reporting of errors for missing files. var hostFileInformation = hostCache.getOrCreateEntry(fileName); if (!hostFileInformation) { return undefined; } + // Check if the language version has changed since we last created a program; if they are the same, + // it is safe to reuse the souceFiles; if not, then the shape of the AST can change, and the oldSourceFile + // can not be reused. we have to dump all syntax trees and create new ones. if (!changesInCompilationSettingsAffectSyntax) { + // Check if the old program had this file already var oldSourceFile = program && program.getSourceFile(fileName); if (oldSourceFile) { + // We already had a source file for this file name. Go to the registry to + // ensure that we get the right up to date version of it. We need this to + // address the following 'race'. Specifically, say we have the following: + // + // LS1 + // \ + // DocumentRegistry + // / + // LS2 + // + // Each LS has a reference to file 'foo.ts' at version 1. LS2 then updates + // it's version of 'foo.ts' to version 2. This will cause LS2 and the + // DocumentRegistry to have version 2 of the document. HOwever, LS1 will + // have version 1. And *importantly* this source file will be *corrupt*. + // The act of creating version 2 of the file irrevocably damages the version + // 1 file. + // + // So, later when we call into LS1, we need to make sure that it doesn't use + // it's source file any more, and instead defers to DocumentRegistry to get + // either version 1, version 2 (or some other version) depending on what the + // host says should be used. return documentRegistry.updateDocument(fileName, newSettings, hostFileInformation.scriptSnapshot, hostFileInformation.version); } } + // Could not find this file in the old program, create a new SourceFile for it. return documentRegistry.acquireDocument(fileName, newSettings, hostFileInformation.scriptSnapshot, hostFileInformation.version); } function sourceFileUpToDate(sourceFile) { return sourceFile && sourceFile.version === hostCache.getVersion(sourceFile.fileName); } function programUpToDate() { + // If we haven't create a program yet, then it is not up-to-date if (!program) { return false; } + // If number of files in the program do not match, it is not up-to-date var rootFileNames = hostCache.getRootFileNames(); if (program.getSourceFiles().length !== rootFileNames.length) { return false; } + // If any file is not up-to-date, then the whole program is not up-to-date for (var _i = 0; _i < rootFileNames.length; _i++) { var fileName = rootFileNames[_i]; if (!sourceFileUpToDate(program.getSourceFile(fileName))) { return false; } } + // If the compilation settings do no match, then the program is not up-to-date return ts.compareDataObjects(program.getCompilerOptions(), hostCache.compilationSettings()); } } @@ -30716,6 +35814,11 @@ var ts; synchronizeHostData(); return program; } + /** + * Clean up any semantic caches that are not needed. + * The host can call this method if it wants to jettison unused memory. + * We will just dump the typeChecker and recreate a new one. this should have the effect of destroying all the semantic caches. + */ function cleanupSemanticCache() { if (program) { typeInfoResolver = program.getTypeChecker(); @@ -30728,41 +35831,216 @@ var ts; }); } } + /// Diagnostics function getSyntacticDiagnostics(fileName) { synchronizeHostData(); return program.getSyntacticDiagnostics(getValidSourceFile(fileName)); } + function isJavaScript(fileName) { + return ts.fileExtensionIs(fileName, ".js"); + } + /** + * getSemanticDiagnostiscs return array of Diagnostics. If '-d' is not enabled, only report semantic errors + * If '-d' enabled, report both semantic and emitter errors + */ function getSemanticDiagnostics(fileName) { synchronizeHostData(); var targetSourceFile = getValidSourceFile(fileName); + // For JavaScript files, we don't want to report the normal typescript semantic errors. + // Instead, we just report errors for using TypeScript-only constructs from within a + // JavaScript file. + if (isJavaScript(fileName)) { + return getJavaScriptSemanticDiagnostics(targetSourceFile); + } + // Only perform the action per file regardless of '-out' flag as LanguageServiceHost is expected to call this function per file. + // Therefore only get diagnostics for given file. var semanticDiagnostics = program.getSemanticDiagnostics(targetSourceFile); if (!program.getCompilerOptions().declaration) { return semanticDiagnostics; } + // If '-d' is enabled, check for emitter error. One example of emitter error is export class implements non-export interface var declarationDiagnostics = program.getDeclarationDiagnostics(targetSourceFile); return ts.concatenate(semanticDiagnostics, declarationDiagnostics); } + function getJavaScriptSemanticDiagnostics(sourceFile) { + var diagnostics = []; + walk(sourceFile); + return diagnostics; + function walk(node) { + if (!node) { + return false; + } + switch (node.kind) { + case 208 /* ImportEqualsDeclaration */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.import_can_only_be_used_in_a_ts_file)); + return true; + case 214 /* ExportAssignment */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.export_can_only_be_used_in_a_ts_file)); + return true; + case 201 /* ClassDeclaration */: + var classDeclaration = node; + if (checkModifiers(classDeclaration.modifiers) || + checkTypeParameters(classDeclaration.typeParameters)) { + return true; + } + break; + case 222 /* HeritageClause */: + var heritageClause = node; + if (heritageClause.token === 103 /* ImplementsKeyword */) { + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file)); + return true; + } + break; + case 202 /* InterfaceDeclaration */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file)); + return true; + case 205 /* ModuleDeclaration */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file)); + return true; + case 203 /* TypeAliasDeclaration */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file)); + return true; + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 162 /* FunctionExpression */: + case 200 /* FunctionDeclaration */: + case 163 /* ArrowFunction */: + case 200 /* FunctionDeclaration */: + var functionDeclaration = node; + if (checkModifiers(functionDeclaration.modifiers) || + checkTypeParameters(functionDeclaration.typeParameters) || + checkTypeAnnotation(functionDeclaration.type)) { + return true; + } + break; + case 180 /* VariableStatement */: + var variableStatement = node; + if (checkModifiers(variableStatement.modifiers)) { + return true; + } + break; + case 198 /* VariableDeclaration */: + var variableDeclaration = node; + if (checkTypeAnnotation(variableDeclaration.type)) { + return true; + } + break; + case 157 /* CallExpression */: + case 158 /* NewExpression */: + var expression = node; + if (expression.typeArguments && expression.typeArguments.length > 0) { + var start = expression.typeArguments.pos; + diagnostics.push(ts.createFileDiagnostic(sourceFile, start, expression.typeArguments.end - start, ts.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file)); + return true; + } + break; + case 129 /* Parameter */: + var parameter = node; + if (parameter.modifiers) { + var start = parameter.modifiers.pos; + diagnostics.push(ts.createFileDiagnostic(sourceFile, start, parameter.modifiers.end - start, ts.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file)); + return true; + } + if (parameter.questionToken) { + diagnostics.push(ts.createDiagnosticForNode(parameter.questionToken, ts.Diagnostics.can_only_be_used_in_a_ts_file)); + return true; + } + if (parameter.type) { + diagnostics.push(ts.createDiagnosticForNode(parameter.type, ts.Diagnostics.types_can_only_be_used_in_a_ts_file)); + return true; + } + break; + case 132 /* PropertyDeclaration */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.property_declarations_can_only_be_used_in_a_ts_file)); + return true; + case 204 /* EnumDeclaration */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file)); + return true; + case 160 /* TypeAssertionExpression */: + var typeAssertionExpression = node; + diagnostics.push(ts.createDiagnosticForNode(typeAssertionExpression.type, ts.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file)); + return true; + case 130 /* Decorator */: + diagnostics.push(ts.createDiagnosticForNode(node, ts.Diagnostics.decorators_can_only_be_used_in_a_ts_file)); + return true; + } + return ts.forEachChild(node, walk); + } + function checkTypeParameters(typeParameters) { + if (typeParameters) { + var start = typeParameters.pos; + diagnostics.push(ts.createFileDiagnostic(sourceFile, start, typeParameters.end - start, ts.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file)); + return true; + } + return false; + } + function checkTypeAnnotation(type) { + if (type) { + diagnostics.push(ts.createDiagnosticForNode(type, ts.Diagnostics.types_can_only_be_used_in_a_ts_file)); + return true; + } + return false; + } + function checkModifiers(modifiers) { + if (modifiers) { + for (var _i = 0; _i < modifiers.length; _i++) { + var modifier = modifiers[_i]; + switch (modifier.kind) { + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: + case 115 /* DeclareKeyword */: + diagnostics.push(ts.createDiagnosticForNode(modifier, ts.Diagnostics._0_can_only_be_used_in_a_ts_file, ts.tokenToString(modifier.kind))); + return true; + // These are all legal modifiers. + case 110 /* StaticKeyword */: + case 78 /* ExportKeyword */: + case 70 /* ConstKeyword */: + case 73 /* DefaultKeyword */: + } + } + } + return false; + } + } function getCompilerOptionsDiagnostics() { synchronizeHostData(); return program.getGlobalDiagnostics(); } - function getCompletionEntryDisplayName(symbol, target, performCharacterChecks) { + /// Completion + function getCompletionEntryDisplayNameForSymbol(symbol, target, performCharacterChecks) { var displayName = symbol.getName(); + if (displayName) { + // If this is the default export, get the name of the declaration if it exists + if (displayName === "default") { + var localSymbol = ts.getLocalSymbolForExportDefault(symbol); + if (localSymbol && localSymbol.name) { + displayName = symbol.valueDeclaration.localSymbol.name; + } + } + var firstCharCode = displayName.charCodeAt(0); + // First check of the displayName is not external module; if it is an external module, it is not valid entry + if ((symbol.flags & 1536 /* Namespace */) && (firstCharCode === 39 /* singleQuote */ || firstCharCode === 34 /* doubleQuote */)) { + // If the symbol is external module, don't show it in the completion list + // (i.e declare module "http" { let x; } | // <= request completion here, "http" should not be there) + return undefined; + } + } + return getCompletionEntryDisplayName(displayName, target, performCharacterChecks); + } + function getCompletionEntryDisplayName(displayName, target, performCharacterChecks) { if (!displayName) { return undefined; } - if (displayName === "default") { - var localSymbol = ts.getLocalSymbolForExportDefault(symbol); - if (localSymbol && localSymbol.name) { - displayName = symbol.valueDeclaration.localSymbol.name; - } - } var firstCharCode = displayName.charCodeAt(0); - if ((symbol.flags & 1536) && (firstCharCode === 39 || firstCharCode === 34)) { - return undefined; - } - if (displayName && displayName.length >= 2 && firstCharCode === displayName.charCodeAt(displayName.length - 1) && - (firstCharCode === 39 || firstCharCode === 34)) { + if (displayName.length >= 2 && + firstCharCode === displayName.charCodeAt(displayName.length - 1) && + (firstCharCode === 39 /* singleQuote */ || firstCharCode === 34 /* doubleQuote */)) { + // If the user entered name for the symbol was quoted, removing the quotes is not enough, as the name could be an + // invalid identifier name. We need to check if whatever was inside the quotes is actually a valid identifier name. displayName = displayName.substring(1, displayName.length - 1); } if (!displayName) { @@ -30781,14 +36059,25 @@ var ts; return ts.unescapeIdentifier(displayName); } function createCompletionEntry(symbol, typeChecker, location) { - var displayName = getCompletionEntryDisplayName(symbol, program.getCompilerOptions().target, true); + // Try to get a valid display name for this symbol, if we could not find one, then ignore it. + // We would like to only show things that can be added after a dot, so for instance numeric properties can + // not be accessed with a dot (a.1 <- invalid) + var displayName = getCompletionEntryDisplayNameForSymbol(symbol, program.getCompilerOptions().target, true); if (!displayName) { return undefined; } + // TODO(drosen): Right now we just permit *all* semantic meanings when calling + // 'getSymbolKind' which is permissible given that it is backwards compatible; but + // really we should consider passing the meaning for the node so that we don't report + // that a suggestion for a value is an interface. We COULD also just do what + // 'getSymbolModifiers' does, which is to use the first declaration. + // Use a 'sortText' of 0' so that all symbol completion entries come before any other + // entries (like JavaScript identifier entries). return { name: displayName, kind: getSymbolKind(symbol, typeChecker, location), - kindModifiers: getSymbolModifiers(symbol) + kindModifiers: getSymbolModifiers(symbol), + sortText: "0" }; } function getCompletionData(fileName, position) { @@ -30798,6 +36087,7 @@ var ts; var currentToken = ts.getTokenAtPosition(sourceFile, position); log("getCompletionData: Get current token: " + (new Date().getTime() - start)); start = new Date().getTime(); + // Completion not allowed inside comments, bail out if this is the case var insideComment = isInsideComment(sourceFile, currentToken, position); log("getCompletionData: Is inside comment: " + (new Date().getTime() - start)); if (insideComment) { @@ -30807,23 +36097,31 @@ var ts; start = new Date().getTime(); var previousToken = ts.findPrecedingToken(position, sourceFile); log("getCompletionData: Get previous token 1: " + (new Date().getTime() - start)); + // The decision to provide completion depends on the contextToken, which is determined through the previousToken. + // Note: 'previousToken' (and thus 'contextToken') can be undefined if we are the beginning of the file var contextToken = previousToken; + // Check if the caret is at the end of an identifier; this is a partial identifier that we want to complete: e.g. a.toS| + // Skip this partial identifier and adjust the contextToken to the token that precedes it. if (contextToken && position <= contextToken.end && ts.isWord(contextToken.kind)) { var start_1 = new Date().getTime(); contextToken = ts.findPrecedingToken(contextToken.getFullStart(), sourceFile); log("getCompletionData: Get previous token 2: " + (new Date().getTime() - start_1)); } + // Check if this is a valid completion location if (contextToken && isCompletionListBlocker(contextToken)) { log("Returning an empty list because completion was requested in an invalid position."); return undefined; } + // Find the node where completion is requested on, in the case of a completion after + // a dot, it is the member access expression other wise, it is a request for all + // visible symbols in the scope, and the node is the current location. var node = currentToken; var isRightOfDot = false; - if (contextToken && contextToken.kind === 20 && contextToken.parent.kind === 155) { + if (contextToken && contextToken.kind === 20 /* DotToken */ && contextToken.parent.kind === 155 /* PropertyAccessExpression */) { node = contextToken.parent.expression; isRightOfDot = true; } - else if (contextToken && contextToken.kind === 20 && contextToken.parent.kind === 126) { + else if (contextToken && contextToken.kind === 20 /* DotToken */ && contextToken.parent.kind === 126 /* QualifiedName */) { node = contextToken.parent.left; isRightOfDot = true; } @@ -30832,18 +36130,34 @@ var ts; var semanticStart = new Date().getTime(); var isMemberCompletion; var isNewIdentifierLocation; - var symbols; + var symbols = []; if (isRightOfDot) { - symbols = []; + getTypeScriptMemberSymbols(); + } + else { + // For JavaScript or TypeScript, if we're not after a dot, then just try to get the + // global symbols in scope. These results should be valid for either language as + // the set of symbols that can be referenced from this location. + if (!tryGetGlobalSymbols()) { + return undefined; + } + } + log("getCompletionData: Semantic work: " + (new Date().getTime() - semanticStart)); + return { symbols: symbols, isMemberCompletion: isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation, location: location, isRightOfDot: isRightOfDot }; + function getTypeScriptMemberSymbols() { + // Right of dot member completion list isMemberCompletion = true; isNewIdentifierLocation = false; - if (node.kind === 65 || node.kind === 126 || node.kind === 155) { + if (node.kind === 65 /* Identifier */ || node.kind === 126 /* QualifiedName */ || node.kind === 155 /* PropertyAccessExpression */) { var symbol = typeInfoResolver.getSymbolAtLocation(node); - if (symbol && symbol.flags & 8388608) { + // This is an alias, follow what it aliases + if (symbol && symbol.flags & 8388608 /* Alias */) { symbol = typeInfoResolver.getAliasedSymbol(symbol); } - if (symbol && symbol.flags & 1952) { - ts.forEachValue(symbol.exports, function (symbol) { + if (symbol && symbol.flags & 1952 /* HasExports */) { + // Extract module or enum members + var exportedSymbols = typeInfoResolver.getExportsOfModule(symbol); + ts.forEach(exportedSymbols, function (symbol) { if (typeInfoResolver.isValidPropertyAccess((node.parent), symbol.name)) { symbols.push(symbol); } @@ -30852,6 +36166,7 @@ var ts; } var type = typeInfoResolver.getTypeAtLocation(node); if (type) { + // Filter private properties ts.forEach(type.getApparentProperties(), function (symbol) { if (typeInfoResolver.isValidPropertyAccess((node.parent), symbol.name)) { symbols.push(symbol); @@ -30859,46 +36174,87 @@ var ts; }); } } - else { + function tryGetGlobalSymbols() { var containingObjectLiteral = getContainingObjectLiteralApplicableForCompletion(contextToken); if (containingObjectLiteral) { + // Object literal expression, look up possible property names from contextual type isMemberCompletion = true; isNewIdentifierLocation = true; var contextualType = typeInfoResolver.getContextualType(containingObjectLiteral); if (!contextualType) { - return undefined; + return false; } var contextualTypeMembers = typeInfoResolver.getPropertiesOfType(contextualType); if (contextualTypeMembers && contextualTypeMembers.length > 0) { + // Add filtered items to the completion list symbols = filterContextualMembersList(contextualTypeMembers, containingObjectLiteral.properties); } } - else if (ts.getAncestor(contextToken, 210)) { + else if (ts.getAncestor(contextToken, 210 /* ImportClause */)) { + // cursor is in import clause + // try to show exported member for imported module isMemberCompletion = true; isNewIdentifierLocation = true; if (showCompletionsInImportsClause(contextToken)) { - var importDeclaration = ts.getAncestor(contextToken, 209); + var importDeclaration = ts.getAncestor(contextToken, 209 /* ImportDeclaration */); ts.Debug.assert(importDeclaration !== undefined); - var exports = typeInfoResolver.getExportsOfExternalModule(importDeclaration); - symbols = filterModuleExports(exports, importDeclaration); + var exports; + if (importDeclaration.moduleSpecifier) { + var moduleSpecifierSymbol = typeInfoResolver.getSymbolAtLocation(importDeclaration.moduleSpecifier); + if (moduleSpecifierSymbol) { + exports = typeInfoResolver.getExportsOfModule(moduleSpecifierSymbol); + } + } + //let exports = typeInfoResolver.getExportsOfImportDeclaration(importDeclaration); + symbols = exports ? filterModuleExports(exports, importDeclaration) : emptyArray; } } else { + // Get all entities in the current scope. isMemberCompletion = false; isNewIdentifierLocation = isNewIdentifierDefinitionLocation(contextToken); if (previousToken !== contextToken) { ts.Debug.assert(!!previousToken, "Expected 'contextToken' to be defined when different from 'previousToken'."); } + // We need to find the node that will give us an appropriate scope to begin + // aggregating completion candidates. This is achieved in 'getScopeNode' + // by finding the first node that encompasses a position, accounting for whether a node + // is "complete" to decide whether a position belongs to the node. + // + // However, at the end of an identifier, we are interested in the scope of the identifier + // itself, but fall outside of the identifier. For instance: + // + // xyz => x$ + // + // the cursor is outside of both the 'x' and the arrow function 'xyz => x', + // so 'xyz' is not returned in our results. + // + // We define 'adjustedPosition' so that we may appropriately account for + // being at the end of an identifier. The intention is that if requesting completion + // at the end of an identifier, it should be effectively equivalent to requesting completion + // anywhere inside/at the beginning of the identifier. So in the previous case, the + // 'adjustedPosition' will work as if requesting completion in the following: + // + // xyz => $x + // + // If previousToken !== contextToken, then + // - 'contextToken' was adjusted to the token prior to 'previousToken' + // because we were at the end of an identifier. + // - 'previousToken' is defined. var adjustedPosition = previousToken !== contextToken ? previousToken.getStart() : position; var scopeNode = getScopeNode(contextToken, adjustedPosition, sourceFile) || sourceFile; - var symbolMeanings = 793056 | 107455 | 1536 | 8388608; + /// TODO filter meaning based on the current context + var symbolMeanings = 793056 /* Type */ | 107455 /* Value */ | 1536 /* Namespace */ | 8388608 /* Alias */; symbols = typeInfoResolver.getSymbolsInScope(scopeNode, symbolMeanings); } + return true; } - log("getCompletionData: Semantic work: " + (new Date().getTime() - semanticStart)); - return { symbols: symbols, isMemberCompletion: isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation, location: location }; + /** + * Finds the first node that "embraces" the position, so that one may + * accurately aggregate locals from the closest containing scope. + */ function getScopeNode(initialToken, position, sourceFile) { var scope = initialToken; while (scope && !ts.positionBelongsToNode(scope, position, sourceFile)) { @@ -30916,8 +36272,10 @@ var ts; } function showCompletionsInImportsClause(node) { if (node) { - if (node.kind === 14 || node.kind === 23) { - return node.parent.kind === 212; + // import {| + // import {a,| + if (node.kind === 14 /* OpenBraceToken */ || node.kind === 23 /* CommaToken */) { + return node.parent.kind === 212 /* NamedImports */; } } return false; @@ -30926,37 +36284,38 @@ var ts; if (previousToken) { var containingNodeKind = previousToken.parent.kind; switch (previousToken.kind) { - case 23: - return containingNodeKind === 157 - || containingNodeKind === 135 - || containingNodeKind === 158 - || containingNodeKind === 153 - || containingNodeKind === 169; - case 16: - return containingNodeKind === 157 - || containingNodeKind === 135 - || containingNodeKind === 158 - || containingNodeKind === 161; - case 18: - return containingNodeKind === 153; - case 117: + case 23 /* CommaToken */: + return containingNodeKind === 157 /* CallExpression */ // func( a, | + || containingNodeKind === 135 /* Constructor */ // constructor( a, | public, protected, private keywords are allowed here, so show completion + || containingNodeKind === 158 /* NewExpression */ // new C(a, | + || containingNodeKind === 153 /* ArrayLiteralExpression */ // [a, | + || containingNodeKind === 169 /* BinaryExpression */; // let x = (a, | + case 16 /* OpenParenToken */: + return containingNodeKind === 157 /* CallExpression */ // func( | + || containingNodeKind === 135 /* Constructor */ // constructor( | + || containingNodeKind === 158 /* NewExpression */ // new C(a| + || containingNodeKind === 161 /* ParenthesizedExpression */; // let x = (a| + case 18 /* OpenBracketToken */: + return containingNodeKind === 153 /* ArrayLiteralExpression */; // [ | + case 117 /* ModuleKeyword */: return true; - case 20: - return containingNodeKind === 205; - case 14: - return containingNodeKind === 201; - case 53: - return containingNodeKind === 198 - || containingNodeKind === 169; - case 11: - return containingNodeKind === 171; - case 12: - return containingNodeKind === 176; - case 109: - case 107: - case 108: - return containingNodeKind === 132; + case 20 /* DotToken */: + return containingNodeKind === 205 /* ModuleDeclaration */; // module A.| + case 14 /* OpenBraceToken */: + return containingNodeKind === 201 /* ClassDeclaration */; // class A{ | + case 53 /* EqualsToken */: + return containingNodeKind === 198 /* VariableDeclaration */ // let x = a| + || containingNodeKind === 169 /* BinaryExpression */; // x = a| + case 11 /* TemplateHead */: + return containingNodeKind === 171 /* TemplateExpression */; // `aa ${| + case 12 /* TemplateMiddle */: + return containingNodeKind === 176 /* TemplateSpan */; // `aa ${10} dd ${| + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: + return containingNodeKind === 132 /* PropertyDeclaration */; // class A{ public | } + // Previous token may have been a keyword that was converted to an identifier. switch (previousToken.getText()) { case "public": case "protected": @@ -30967,9 +36326,11 @@ var ts; return false; } function isInStringOrRegularExpressionOrTemplateLiteral(previousToken) { - if (previousToken.kind === 8 - || previousToken.kind === 9 + if (previousToken.kind === 8 /* StringLiteral */ + || previousToken.kind === 9 /* RegularExpressionLiteral */ || ts.isTemplateLiteralKind(previousToken.kind)) { + // The position has to be either: 1. entirely within the token text, or + // 2. at the end position of an unterminated token. var start_2 = previousToken.getStart(); var end = previousToken.getEnd(); if (start_2 < position && position < end) { @@ -30984,12 +36345,12 @@ var ts; function getContainingObjectLiteralApplicableForCompletion(previousToken) { // The locations in an object literal expression that are applicable for completion are property name definition locations. if (previousToken) { - var parent_8 = previousToken.parent; + var parent_9 = previousToken.parent; switch (previousToken.kind) { - case 14: - case 23: - if (parent_8 && parent_8.kind === 154) { - return parent_8; + case 14 /* OpenBraceToken */: // let x = { | + case 23 /* CommaToken */: + if (parent_9 && parent_9.kind === 154 /* ObjectLiteralExpression */) { + return parent_9; } break; } @@ -30998,16 +36359,16 @@ var ts; } function isFunction(kind) { switch (kind) { - case 162: - case 163: - case 200: - case 134: - case 133: - case 136: - case 137: - case 138: - case 139: - case 140: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 138 /* CallSignature */: + case 139 /* ConstructSignature */: + case 140 /* IndexSignature */: return true; } return false; @@ -31016,61 +36377,62 @@ var ts; if (previousToken) { var containingNodeKind = previousToken.parent.kind; switch (previousToken.kind) { - case 23: - return containingNodeKind === 198 || - containingNodeKind === 199 || - containingNodeKind === 180 || - containingNodeKind === 204 || + case 23 /* CommaToken */: + return containingNodeKind === 198 /* VariableDeclaration */ || + containingNodeKind === 199 /* VariableDeclarationList */ || + containingNodeKind === 180 /* VariableStatement */ || + containingNodeKind === 204 /* EnumDeclaration */ || isFunction(containingNodeKind) || - containingNodeKind === 201 || - containingNodeKind === 200 || - containingNodeKind === 202 || - containingNodeKind === 151 || - containingNodeKind === 150; - case 20: - return containingNodeKind === 151; - case 18: - return containingNodeKind === 151; - case 16: - return containingNodeKind === 223 || + containingNodeKind === 201 /* ClassDeclaration */ || + containingNodeKind === 200 /* FunctionDeclaration */ || + containingNodeKind === 202 /* InterfaceDeclaration */ || + containingNodeKind === 151 /* ArrayBindingPattern */ || + containingNodeKind === 150 /* ObjectBindingPattern */; // function func({ x, y| + case 20 /* DotToken */: + return containingNodeKind === 151 /* ArrayBindingPattern */; // var [.| + case 18 /* OpenBracketToken */: + return containingNodeKind === 151 /* ArrayBindingPattern */; // var [x| + case 16 /* OpenParenToken */: + return containingNodeKind === 223 /* CatchClause */ || isFunction(containingNodeKind); - case 14: - return containingNodeKind === 204 || - containingNodeKind === 202 || - containingNodeKind === 145 || - containingNodeKind === 150; - case 22: - return containingNodeKind === 131 && - (previousToken.parent.parent.kind === 202 || - previousToken.parent.parent.kind === 145); - case 24: - return containingNodeKind === 201 || - containingNodeKind === 200 || - containingNodeKind === 202 || + case 14 /* OpenBraceToken */: + return containingNodeKind === 204 /* EnumDeclaration */ || + containingNodeKind === 202 /* InterfaceDeclaration */ || + containingNodeKind === 145 /* TypeLiteral */ || + containingNodeKind === 150 /* ObjectBindingPattern */; // function func({ x| + case 22 /* SemicolonToken */: + return containingNodeKind === 131 /* PropertySignature */ && + (previousToken.parent.parent.kind === 202 /* InterfaceDeclaration */ || + previousToken.parent.parent.kind === 145 /* TypeLiteral */); // let x : { a; | + case 24 /* LessThanToken */: + return containingNodeKind === 201 /* ClassDeclaration */ || + containingNodeKind === 200 /* FunctionDeclaration */ || + containingNodeKind === 202 /* InterfaceDeclaration */ || isFunction(containingNodeKind); - case 110: - return containingNodeKind === 132; - case 21: - return containingNodeKind === 129 || - containingNodeKind === 135 || - (previousToken.parent.parent.kind === 151); - case 109: - case 107: - case 108: - return containingNodeKind === 129; - case 69: - case 77: - case 104: - case 83: - case 98: - case 116: - case 120: - case 85: - case 105: - case 70: - case 111: + case 110 /* StaticKeyword */: + return containingNodeKind === 132 /* PropertyDeclaration */; + case 21 /* DotDotDotToken */: + return containingNodeKind === 129 /* Parameter */ || + containingNodeKind === 135 /* Constructor */ || + (previousToken.parent.parent.kind === 151 /* ArrayBindingPattern */); // var [ ...z| + case 109 /* PublicKeyword */: + case 107 /* PrivateKeyword */: + case 108 /* ProtectedKeyword */: + return containingNodeKind === 129 /* Parameter */; + case 69 /* ClassKeyword */: + case 77 /* EnumKeyword */: + case 104 /* InterfaceKeyword */: + case 83 /* FunctionKeyword */: + case 98 /* VarKeyword */: + case 116 /* GetKeyword */: + case 120 /* SetKeyword */: + case 85 /* ImportKeyword */: + case 105 /* LetKeyword */: + case 70 /* ConstKeyword */: + case 111 /* YieldKeyword */: return true; } + // Previous token may have been a keyword that was converted to an identifier. switch (previousToken.getText()) { case "class": case "interface": @@ -31087,7 +36449,7 @@ var ts; return false; } function isRightOfIllegalDot(previousToken) { - if (previousToken && previousToken.kind === 7) { + if (previousToken && previousToken.kind === 7 /* NumericLiteral */) { var text = previousToken.getFullText(); return text.charAt(text.length - 1) === "."; } @@ -31099,7 +36461,7 @@ var ts; return exports; } if (importDeclaration.importClause.namedBindings && - importDeclaration.importClause.namedBindings.kind === 212) { + importDeclaration.importClause.namedBindings.kind === 212 /* NamedImports */) { ts.forEach(importDeclaration.importClause.namedBindings.elements, function (el) { var name = el.propertyName || el.name; exisingImports[name.text] = true; @@ -31116,12 +36478,15 @@ var ts; } var existingMemberNames = {}; ts.forEach(existingMembers, function (m) { - if (m.kind !== 224 && m.kind !== 225) { + if (m.kind !== 224 /* PropertyAssignment */ && m.kind !== 225 /* ShorthandPropertyAssignment */) { + // Ignore omitted expressions for missing members in the object literal return; } if (m.getStart() <= position && position <= m.getEnd()) { + // If this is the current item we are editing right now, do not filter it out return; } + // TODO(jfreeman): Account for computed property name existingMemberNames[m.name.text] = true; }); var filteredMembers = []; @@ -31139,27 +36504,62 @@ var ts; if (!completionData) { return undefined; } - var symbols = completionData.symbols, isMemberCompletion = completionData.isMemberCompletion, isNewIdentifierLocation = completionData.isNewIdentifierLocation, location = completionData.location; - if (!symbols || symbols.length === 0) { - return undefined; + var symbols = completionData.symbols, isMemberCompletion = completionData.isMemberCompletion, isNewIdentifierLocation = completionData.isNewIdentifierLocation, location = completionData.location, isRightOfDot = completionData.isRightOfDot; + var entries; + if (isRightOfDot && isJavaScript(fileName)) { + entries = getCompletionEntriesFromSymbols(symbols); + ts.addRange(entries, getJavaScriptCompletionEntries()); } - var entries = getCompletionEntriesFromSymbols(symbols); + else { + if (!symbols || symbols.length === 0) { + return undefined; + } + entries = getCompletionEntriesFromSymbols(symbols); + } + // Add keywords if this is not a member completion list if (!isMemberCompletion) { ts.addRange(entries, keywordCompletions); } return { isMemberCompletion: isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation, entries: entries }; + function getJavaScriptCompletionEntries() { + var entries = []; + var allNames = {}; + var target = program.getCompilerOptions().target; + for (var _i = 0, _a = program.getSourceFiles(); _i < _a.length; _i++) { + var sourceFile = _a[_i]; + var nameTable = getNameTable(sourceFile); + for (var name_21 in nameTable) { + if (!allNames[name_21]) { + allNames[name_21] = name_21; + var displayName = getCompletionEntryDisplayName(name_21, target, true); + if (displayName) { + var entry = { + name: displayName, + kind: ScriptElementKind.warning, + kindModifiers: "", + sortText: "1" + }; + entries.push(entry); + } + } + } + } + return entries; + } function getCompletionEntriesFromSymbols(symbols) { var start = new Date().getTime(); var entries = []; - var nameToSymbol = {}; - for (var _i = 0; _i < symbols.length; _i++) { - var symbol = symbols[_i]; - var entry = createCompletionEntry(symbol, typeInfoResolver, location); - if (entry) { - var id = ts.escapeIdentifier(entry.name); - if (!ts.lookUp(nameToSymbol, id)) { - entries.push(entry); - nameToSymbol[id] = symbol; + if (symbols) { + var nameToSymbol = {}; + for (var _i = 0; _i < symbols.length; _i++) { + var symbol = symbols[_i]; + var entry = createCompletionEntry(symbol, typeInfoResolver, location); + if (entry) { + var id = ts.escapeIdentifier(entry.name); + if (!ts.lookUp(nameToSymbol, id)) { + entries.push(entry); + nameToSymbol[id] = symbol; + } } } } @@ -31169,13 +36569,18 @@ var ts; } function getCompletionEntryDetails(fileName, position, entryName) { synchronizeHostData(); + // Compute all the completion symbols again. var completionData = getCompletionData(fileName, position); if (completionData) { var symbols = completionData.symbols, location_2 = completionData.location; + // Find the symbol with the matching entry name. var target = program.getCompilerOptions().target; - var symbol = ts.forEach(symbols, function (s) { return getCompletionEntryDisplayName(s, target, false) === entryName ? s : undefined; }); + // We don't need to perform character checks here because we're only comparing the + // name against 'entryName' (which is known to be good), not building a new + // completion entry. + var symbol = ts.forEach(symbols, function (s) { return getCompletionEntryDisplayNameForSymbol(s, target, false) === entryName ? s : undefined; }); if (symbol) { - var displayPartsDocumentationsAndSymbolKind = getSymbolDisplayPartsDocumentationAndSymbolKind(symbol, getValidSourceFile(fileName), location_2, typeInfoResolver, location_2, 7); + var displayPartsDocumentationsAndSymbolKind = getSymbolDisplayPartsDocumentationAndSymbolKind(symbol, getValidSourceFile(fileName), location_2, typeInfoResolver, location_2, 7 /* All */); return { name: entryName, kind: displayPartsDocumentationsAndSymbolKind.symbolKind, @@ -31185,6 +36590,7 @@ var ts; }; } } + // Didn't find a symbol with this name. See if we can find a keyword instead. var keywordCompletion = ts.forEach(keywordCompletions, function (c) { return c.name === entryName; }); if (keywordCompletion) { return { @@ -31197,27 +36603,28 @@ var ts; } return undefined; } + // TODO(drosen): use contextual SemanticMeaning. function getSymbolKind(symbol, typeResolver, location) { var flags = symbol.getFlags(); - if (flags & 32) + if (flags & 32 /* Class */) return ScriptElementKind.classElement; - if (flags & 384) + if (flags & 384 /* Enum */) return ScriptElementKind.enumElement; - if (flags & 524288) + if (flags & 524288 /* TypeAlias */) return ScriptElementKind.typeElement; - if (flags & 64) + if (flags & 64 /* Interface */) return ScriptElementKind.interfaceElement; - if (flags & 262144) + if (flags & 262144 /* TypeParameter */) return ScriptElementKind.typeParameterElement; var result = getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(symbol, flags, typeResolver, location); if (result === ScriptElementKind.unknown) { - if (flags & 262144) + if (flags & 262144 /* TypeParameter */) return ScriptElementKind.typeParameterElement; - if (flags & 8) + if (flags & 8 /* EnumMember */) return ScriptElementKind.variableElement; - if (flags & 8388608) + if (flags & 8388608 /* Alias */) return ScriptElementKind.alias; - if (flags & 1536) + if (flags & 1536 /* Module */) return ScriptElementKind.moduleElement; } return result; @@ -31229,7 +36636,7 @@ var ts; if (typeResolver.isArgumentsSymbol(symbol)) { return ScriptElementKind.localVariableElement; } - if (flags & 3) { + if (flags & 3 /* Variable */) { if (ts.isFirstDeclarationOfSymbolParameter(symbol)) { return ScriptElementKind.parameterElement; } @@ -31241,26 +36648,29 @@ var ts; } return isLocalVariableOrFunction(symbol) ? ScriptElementKind.localVariableElement : ScriptElementKind.variableElement; } - if (flags & 16) + if (flags & 16 /* Function */) return isLocalVariableOrFunction(symbol) ? ScriptElementKind.localFunctionElement : ScriptElementKind.functionElement; - if (flags & 32768) + if (flags & 32768 /* GetAccessor */) return ScriptElementKind.memberGetAccessorElement; - if (flags & 65536) + if (flags & 65536 /* SetAccessor */) return ScriptElementKind.memberSetAccessorElement; - if (flags & 8192) + if (flags & 8192 /* Method */) return ScriptElementKind.memberFunctionElement; - if (flags & 16384) + if (flags & 16384 /* Constructor */) return ScriptElementKind.constructorImplementationElement; - if (flags & 4) { - if (flags & 268435456) { + if (flags & 4 /* Property */) { + if (flags & 268435456 /* UnionProperty */) { + // If union property is result of union of non method (property/accessors/variables), it is labeled as property var unionPropertyKind = ts.forEach(typeInfoResolver.getRootSymbols(symbol), function (rootSymbol) { var rootSymbolFlags = rootSymbol.getFlags(); - if (rootSymbolFlags & (98308 | 3)) { + if (rootSymbolFlags & (98308 /* PropertyOrAccessor */ | 3 /* Variable */)) { return ScriptElementKind.memberVariableElement; } - ts.Debug.assert(!!(rootSymbolFlags & 8192)); + ts.Debug.assert(!!(rootSymbolFlags & 8192 /* Method */)); }); if (!unionPropertyKind) { + // If this was union of all methods, + //make sure it has call signatures before we can label it as method var typeOfUnionProperty = typeInfoResolver.getTypeOfSymbolAtLocation(symbol, location); if (typeOfUnionProperty.getCallSignatures().length) { return ScriptElementKind.memberFunctionElement; @@ -31275,17 +36685,17 @@ var ts; } function getTypeKind(type) { var flags = type.getFlags(); - if (flags & 128) + if (flags & 128 /* Enum */) return ScriptElementKind.enumElement; - if (flags & 1024) + if (flags & 1024 /* Class */) return ScriptElementKind.classElement; - if (flags & 2048) + if (flags & 2048 /* Interface */) return ScriptElementKind.interfaceElement; - if (flags & 512) + if (flags & 512 /* TypeParameter */) return ScriptElementKind.typeParameterElement; - if (flags & 1048703) + if (flags & 1048703 /* Intrinsic */) return ScriptElementKind.primitiveType; - if (flags & 256) + if (flags & 256 /* StringLiteral */) return ScriptElementKind.primitiveType; return ScriptElementKind.unknown; } @@ -31294,7 +36704,9 @@ var ts; ? ts.getNodeModifiers(symbol.declarations[0]) : ScriptElementKindModifier.none; } - function getSymbolDisplayPartsDocumentationAndSymbolKind(symbol, sourceFile, enclosingDeclaration, typeResolver, location, semanticMeaning) { + function getSymbolDisplayPartsDocumentationAndSymbolKind(symbol, sourceFile, enclosingDeclaration, typeResolver, location, + // TODO(drosen): Currently completion entry details passes the SemanticMeaning.All instead of using semanticMeaning of location + semanticMeaning) { if (semanticMeaning === void 0) { semanticMeaning = getMeaningFromLocation(location); } var displayParts = []; var documentation; @@ -31302,21 +36714,25 @@ var ts; var symbolKind = getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(symbol, symbolFlags, typeResolver, location); var hasAddedSymbolInfo; var type; - if (symbolKind !== ScriptElementKind.unknown || symbolFlags & 32 || symbolFlags & 8388608) { + // Class at constructor site need to be shown as constructor apart from property,method, vars + if (symbolKind !== ScriptElementKind.unknown || symbolFlags & 32 /* Class */ || symbolFlags & 8388608 /* Alias */) { + // If it is accessor they are allowed only if location is at name of the accessor if (symbolKind === ScriptElementKind.memberGetAccessorElement || symbolKind === ScriptElementKind.memberSetAccessorElement) { symbolKind = ScriptElementKind.memberVariableElement; } var signature; type = typeResolver.getTypeOfSymbolAtLocation(symbol, location); if (type) { - if (location.parent && location.parent.kind === 155) { + if (location.parent && location.parent.kind === 155 /* PropertyAccessExpression */) { var right = location.parent.name; + // Either the location is on the right of a property access, or on the left and the right is missing if (right === location || (right && right.getFullWidth() === 0)) { location = location.parent; } } + // try get the call/construct signature from the type if it matches var callExpression; - if (location.kind === 157 || location.kind === 158) { + if (location.kind === 157 /* CallExpression */ || location.kind === 158 /* NewExpression */) { callExpression = location; } else if (isCallExpressionTarget(location) || isNewExpressionTarget(location)) { @@ -31326,24 +36742,27 @@ var ts; var candidateSignatures = []; signature = typeResolver.getResolvedSignature(callExpression, candidateSignatures); if (!signature && candidateSignatures.length) { + // Use the first candidate: signature = candidateSignatures[0]; } - var useConstructSignatures = callExpression.kind === 158 || callExpression.expression.kind === 91; + var useConstructSignatures = callExpression.kind === 158 /* NewExpression */ || callExpression.expression.kind === 91 /* SuperKeyword */; var allSignatures = useConstructSignatures ? type.getConstructSignatures() : type.getCallSignatures(); if (!ts.contains(allSignatures, signature.target || signature)) { + // Get the first signature if there signature = allSignatures.length ? allSignatures[0] : undefined; } if (signature) { - if (useConstructSignatures && (symbolFlags & 32)) { + if (useConstructSignatures && (symbolFlags & 32 /* Class */)) { + // Constructor symbolKind = ScriptElementKind.constructorImplementationElement; addPrefixForAnyFunctionOrVar(type.symbol, symbolKind); } - else if (symbolFlags & 8388608) { + else if (symbolFlags & 8388608 /* Alias */) { symbolKind = ScriptElementKind.alias; pushTypePart(symbolKind); displayParts.push(ts.spacePart()); if (useConstructSignatures) { - displayParts.push(ts.keywordPart(88)); + displayParts.push(ts.keywordPart(88 /* NewKeyword */)); displayParts.push(ts.spacePart()); } addFullSymbolName(symbol); @@ -31358,147 +36777,154 @@ var ts; case ScriptElementKind.letElement: case ScriptElementKind.parameterElement: case ScriptElementKind.localVariableElement: - displayParts.push(ts.punctuationPart(51)); + // If it is call or construct signature of lambda's write type name + displayParts.push(ts.punctuationPart(51 /* ColonToken */)); displayParts.push(ts.spacePart()); if (useConstructSignatures) { - displayParts.push(ts.keywordPart(88)); + displayParts.push(ts.keywordPart(88 /* NewKeyword */)); displayParts.push(ts.spacePart()); } - if (!(type.flags & 32768)) { - displayParts.push.apply(displayParts, ts.symbolToDisplayParts(typeResolver, type.symbol, enclosingDeclaration, undefined, 1)); + if (!(type.flags & 32768 /* Anonymous */)) { + displayParts.push.apply(displayParts, ts.symbolToDisplayParts(typeResolver, type.symbol, enclosingDeclaration, undefined, 1 /* WriteTypeParametersOrArguments */)); } - addSignatureDisplayParts(signature, allSignatures, 8); + addSignatureDisplayParts(signature, allSignatures, 8 /* WriteArrowStyleSignature */); break; default: + // Just signature addSignatureDisplayParts(signature, allSignatures); } hasAddedSymbolInfo = true; } } - else if ((isNameOfFunctionDeclaration(location) && !(symbol.flags & 98304)) || - (location.kind === 114 && location.parent.kind === 135)) { + else if ((isNameOfFunctionDeclaration(location) && !(symbol.flags & 98304 /* Accessor */)) || + (location.kind === 114 /* ConstructorKeyword */ && location.parent.kind === 135 /* Constructor */)) { + // get the signature from the declaration and write it var functionDeclaration = location.parent; - var allSignatures = functionDeclaration.kind === 135 ? type.getConstructSignatures() : type.getCallSignatures(); + var allSignatures = functionDeclaration.kind === 135 /* Constructor */ ? type.getConstructSignatures() : type.getCallSignatures(); if (!typeResolver.isImplementationOfOverload(functionDeclaration)) { signature = typeResolver.getSignatureFromDeclaration(functionDeclaration); } else { signature = allSignatures[0]; } - if (functionDeclaration.kind === 135) { + if (functionDeclaration.kind === 135 /* Constructor */) { + // show (constructor) Type(...) signature symbolKind = ScriptElementKind.constructorImplementationElement; addPrefixForAnyFunctionOrVar(type.symbol, symbolKind); } else { - addPrefixForAnyFunctionOrVar(functionDeclaration.kind === 138 && - !(type.symbol.flags & 2048 || type.symbol.flags & 4096) ? type.symbol : symbol, symbolKind); + // (function/method) symbol(..signature) + addPrefixForAnyFunctionOrVar(functionDeclaration.kind === 138 /* CallSignature */ && + !(type.symbol.flags & 2048 /* TypeLiteral */ || type.symbol.flags & 4096 /* ObjectLiteral */) ? type.symbol : symbol, symbolKind); } addSignatureDisplayParts(signature, allSignatures); hasAddedSymbolInfo = true; } } } - if (symbolFlags & 32 && !hasAddedSymbolInfo) { - displayParts.push(ts.keywordPart(69)); + if (symbolFlags & 32 /* Class */ && !hasAddedSymbolInfo) { + displayParts.push(ts.keywordPart(69 /* ClassKeyword */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); writeTypeParametersOfSymbol(symbol, sourceFile); } - if ((symbolFlags & 64) && (semanticMeaning & 2)) { + if ((symbolFlags & 64 /* Interface */) && (semanticMeaning & 2 /* Type */)) { addNewLineIfDisplayPartsExist(); - displayParts.push(ts.keywordPart(104)); + displayParts.push(ts.keywordPart(104 /* InterfaceKeyword */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); writeTypeParametersOfSymbol(symbol, sourceFile); } - if (symbolFlags & 524288) { + if (symbolFlags & 524288 /* TypeAlias */) { addNewLineIfDisplayPartsExist(); - displayParts.push(ts.keywordPart(123)); + displayParts.push(ts.keywordPart(123 /* TypeKeyword */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); displayParts.push(ts.spacePart()); - displayParts.push(ts.operatorPart(53)); + displayParts.push(ts.operatorPart(53 /* EqualsToken */)); displayParts.push(ts.spacePart()); displayParts.push.apply(displayParts, ts.typeToDisplayParts(typeResolver, typeResolver.getDeclaredTypeOfSymbol(symbol), enclosingDeclaration)); } - if (symbolFlags & 384) { + if (symbolFlags & 384 /* Enum */) { addNewLineIfDisplayPartsExist(); if (ts.forEach(symbol.declarations, ts.isConstEnumDeclaration)) { - displayParts.push(ts.keywordPart(70)); + displayParts.push(ts.keywordPart(70 /* ConstKeyword */)); displayParts.push(ts.spacePart()); } - displayParts.push(ts.keywordPart(77)); + displayParts.push(ts.keywordPart(77 /* EnumKeyword */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); } - if (symbolFlags & 1536) { + if (symbolFlags & 1536 /* Module */) { addNewLineIfDisplayPartsExist(); - displayParts.push(ts.keywordPart(117)); + displayParts.push(ts.keywordPart(117 /* ModuleKeyword */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); } - if ((symbolFlags & 262144) && (semanticMeaning & 2)) { + if ((symbolFlags & 262144 /* TypeParameter */) && (semanticMeaning & 2 /* Type */)) { addNewLineIfDisplayPartsExist(); - displayParts.push(ts.punctuationPart(16)); + displayParts.push(ts.punctuationPart(16 /* OpenParenToken */)); displayParts.push(ts.textPart("type parameter")); - displayParts.push(ts.punctuationPart(17)); + displayParts.push(ts.punctuationPart(17 /* CloseParenToken */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); displayParts.push(ts.spacePart()); - displayParts.push(ts.keywordPart(86)); + displayParts.push(ts.keywordPart(86 /* InKeyword */)); displayParts.push(ts.spacePart()); if (symbol.parent) { + // Class/Interface type parameter addFullSymbolName(symbol.parent, enclosingDeclaration); writeTypeParametersOfSymbol(symbol.parent, enclosingDeclaration); } else { - var signatureDeclaration = ts.getDeclarationOfKind(symbol, 128).parent; + // Method/function type parameter + var signatureDeclaration = ts.getDeclarationOfKind(symbol, 128 /* TypeParameter */).parent; var signature = typeResolver.getSignatureFromDeclaration(signatureDeclaration); - if (signatureDeclaration.kind === 139) { - displayParts.push(ts.keywordPart(88)); + if (signatureDeclaration.kind === 139 /* ConstructSignature */) { + displayParts.push(ts.keywordPart(88 /* NewKeyword */)); displayParts.push(ts.spacePart()); } - else if (signatureDeclaration.kind !== 138 && signatureDeclaration.name) { + else if (signatureDeclaration.kind !== 138 /* CallSignature */ && signatureDeclaration.name) { addFullSymbolName(signatureDeclaration.symbol); } - displayParts.push.apply(displayParts, ts.signatureToDisplayParts(typeResolver, signature, sourceFile, 32)); + displayParts.push.apply(displayParts, ts.signatureToDisplayParts(typeResolver, signature, sourceFile, 32 /* WriteTypeArgumentsOfSignature */)); } } - if (symbolFlags & 8) { + if (symbolFlags & 8 /* EnumMember */) { addPrefixForAnyFunctionOrVar(symbol, "enum member"); var declaration = symbol.declarations[0]; - if (declaration.kind === 226) { + if (declaration.kind === 226 /* EnumMember */) { var constantValue = typeResolver.getConstantValue(declaration); if (constantValue !== undefined) { displayParts.push(ts.spacePart()); - displayParts.push(ts.operatorPart(53)); + displayParts.push(ts.operatorPart(53 /* EqualsToken */)); displayParts.push(ts.spacePart()); displayParts.push(ts.displayPart(constantValue.toString(), SymbolDisplayPartKind.numericLiteral)); } } } - if (symbolFlags & 8388608) { + if (symbolFlags & 8388608 /* Alias */) { addNewLineIfDisplayPartsExist(); - displayParts.push(ts.keywordPart(85)); + displayParts.push(ts.keywordPart(85 /* ImportKeyword */)); displayParts.push(ts.spacePart()); addFullSymbolName(symbol); ts.forEach(symbol.declarations, function (declaration) { - if (declaration.kind === 208) { + if (declaration.kind === 208 /* ImportEqualsDeclaration */) { var importEqualsDeclaration = declaration; if (ts.isExternalModuleImportEqualsDeclaration(importEqualsDeclaration)) { displayParts.push(ts.spacePart()); - displayParts.push(ts.operatorPart(53)); + displayParts.push(ts.operatorPart(53 /* EqualsToken */)); displayParts.push(ts.spacePart()); - displayParts.push(ts.keywordPart(118)); - displayParts.push(ts.punctuationPart(16)); + displayParts.push(ts.keywordPart(118 /* RequireKeyword */)); + displayParts.push(ts.punctuationPart(16 /* OpenParenToken */)); displayParts.push(ts.displayPart(ts.getTextOfNode(ts.getExternalModuleImportEqualsDeclarationExpression(importEqualsDeclaration)), SymbolDisplayPartKind.stringLiteral)); - displayParts.push(ts.punctuationPart(17)); + displayParts.push(ts.punctuationPart(17 /* CloseParenToken */)); } else { var internalAliasSymbol = typeResolver.getSymbolAtLocation(importEqualsDeclaration.moduleReference); if (internalAliasSymbol) { displayParts.push(ts.spacePart()); - displayParts.push(ts.operatorPart(53)); + displayParts.push(ts.operatorPart(53 /* EqualsToken */)); displayParts.push(ts.spacePart()); addFullSymbolName(internalAliasSymbol, enclosingDeclaration); } @@ -31511,12 +36937,14 @@ var ts; if (symbolKind !== ScriptElementKind.unknown) { if (type) { addPrefixForAnyFunctionOrVar(symbol, symbolKind); + // For properties, variables and local vars: show the type if (symbolKind === ScriptElementKind.memberVariableElement || - symbolFlags & 3 || + symbolFlags & 3 /* Variable */ || symbolKind === ScriptElementKind.localVariableElement) { - displayParts.push(ts.punctuationPart(51)); + displayParts.push(ts.punctuationPart(51 /* ColonToken */)); displayParts.push(ts.spacePart()); - if (type.symbol && type.symbol.flags & 262144) { + // If the type is type parameter, format it specially + if (type.symbol && type.symbol.flags & 262144 /* TypeParameter */) { var typeParameterParts = ts.mapToDisplayParts(function (writer) { typeResolver.getSymbolDisplayBuilder().buildTypeParameterDisplay(type, writer, enclosingDeclaration); }); @@ -31526,11 +36954,11 @@ var ts; displayParts.push.apply(displayParts, ts.typeToDisplayParts(typeResolver, type, enclosingDeclaration)); } } - else if (symbolFlags & 16 || - symbolFlags & 8192 || - symbolFlags & 16384 || - symbolFlags & 131072 || - symbolFlags & 98304 || + else if (symbolFlags & 16 /* Function */ || + symbolFlags & 8192 /* Method */ || + symbolFlags & 16384 /* Constructor */ || + symbolFlags & 131072 /* Signature */ || + symbolFlags & 98304 /* Accessor */ || symbolKind === ScriptElementKind.memberFunctionElement) { var allSignatures = type.getCallSignatures(); addSignatureDisplayParts(allSignatures[0], allSignatures); @@ -31551,7 +36979,7 @@ var ts; } } function addFullSymbolName(symbol, enclosingDeclaration) { - var fullSymbolDisplayParts = ts.symbolToDisplayParts(typeResolver, symbol, enclosingDeclaration || sourceFile, undefined, 1 | 2); + var fullSymbolDisplayParts = ts.symbolToDisplayParts(typeResolver, symbol, enclosingDeclaration || sourceFile, undefined, 1 /* WriteTypeParametersOrArguments */ | 2 /* UseOnlyExternalAliasing */); displayParts.push.apply(displayParts, fullSymbolDisplayParts); } function addPrefixForAnyFunctionOrVar(symbol, symbolKind) { @@ -31572,22 +37000,22 @@ var ts; displayParts.push(ts.textOrKeywordPart(symbolKind)); return; default: - displayParts.push(ts.punctuationPart(16)); + displayParts.push(ts.punctuationPart(16 /* OpenParenToken */)); displayParts.push(ts.textOrKeywordPart(symbolKind)); - displayParts.push(ts.punctuationPart(17)); + displayParts.push(ts.punctuationPart(17 /* CloseParenToken */)); return; } } function addSignatureDisplayParts(signature, allSignatures, flags) { - displayParts.push.apply(displayParts, ts.signatureToDisplayParts(typeResolver, signature, enclosingDeclaration, flags | 32)); + displayParts.push.apply(displayParts, ts.signatureToDisplayParts(typeResolver, signature, enclosingDeclaration, flags | 32 /* WriteTypeArgumentsOfSignature */)); if (allSignatures.length > 1) { displayParts.push(ts.spacePart()); - displayParts.push(ts.punctuationPart(16)); - displayParts.push(ts.operatorPart(33)); + displayParts.push(ts.punctuationPart(16 /* OpenParenToken */)); + displayParts.push(ts.operatorPart(33 /* PlusToken */)); displayParts.push(ts.displayPart((allSignatures.length - 1).toString(), SymbolDisplayPartKind.numericLiteral)); displayParts.push(ts.spacePart()); displayParts.push(ts.textPart(allSignatures.length === 2 ? "overload" : "overloads")); - displayParts.push(ts.punctuationPart(17)); + displayParts.push(ts.punctuationPart(17 /* CloseParenToken */)); } documentation = signature.getDocumentationComment(); } @@ -31607,12 +37035,14 @@ var ts; } var symbol = typeInfoResolver.getSymbolAtLocation(node); if (!symbol) { + // Try getting just type at this position and show switch (node.kind) { - case 65: - case 155: - case 126: - case 93: - case 91: + case 65 /* Identifier */: + case 155 /* PropertyAccessExpression */: + case 126 /* QualifiedName */: + case 93 /* ThisKeyword */: + case 91 /* SuperKeyword */: + // For the identifiers/this/super etc get the type at position var type = typeInfoResolver.getTypeAtLocation(node); if (type) { return { @@ -31645,6 +37075,7 @@ var ts; containerName: containerName }; } + /// Goto definition function getDefinitionAtPosition(fileName, position) { synchronizeHostData(); var sourceFile = getValidSourceFile(fileName); @@ -31652,11 +37083,13 @@ var ts; if (!node) { return undefined; } + // Labels if (isJumpStatementTarget(node)) { var labelName = node.text; var label = getTargetLabel(node.parent, node.text); return label ? [createDefinitionInfo(label, ScriptElementKind.label, labelName, undefined)] : undefined; } + /// Triple slash reference comments var comment = ts.forEach(sourceFile.referencedFiles, function (r) { return (r.pos <= position && position < r.end) ? r : undefined; }); if (comment) { var referenceFile = ts.tryResolveScriptReference(program, sourceFile, comment); @@ -31673,16 +37106,27 @@ var ts; return undefined; } var symbol = typeInfoResolver.getSymbolAtLocation(node); + // Could not find a symbol e.g. node is string or number keyword, + // or the symbol was an internal symbol and does not have a declaration e.g. undefined symbol if (!symbol) { return undefined; } - if (symbol.flags & 8388608) { + // If this is an alias, and the request came at the declaration location + // get the aliased symbol instead. This allows for goto def on an import e.g. + // import {A, B} from "mod"; + // to jump to the implementation directly. + if (symbol.flags & 8388608 /* Alias */) { var declaration = symbol.declarations[0]; - if (node.kind === 65 && node.parent === declaration) { + if (node.kind === 65 /* Identifier */ && node.parent === declaration) { symbol = typeInfoResolver.getAliasedSymbol(symbol); } } - if (node.parent.kind === 225) { + // Because name in short-hand property assignment has two different meanings: property name and property value, + // using go-to-definition at such position should go to the variable declaration of the property value rather than + // go to the declaration of the property name (in this case stay at the same position). However, if go-to-definition + // is performed at the location of property access, we would like to go to definition of the property in the short-hand + // assignment. This case and others are handled by the following code. + if (node.parent.kind === 225 /* ShorthandPropertyAssignment */) { var shorthandSymbol = typeInfoResolver.getShorthandAssignmentValueSymbol(symbol.valueDeclaration); if (!shorthandSymbol) { return []; @@ -31695,22 +37139,25 @@ var ts; } var result = []; var declarations = symbol.getDeclarations(); - var symbolName = typeInfoResolver.symbolToString(symbol); + var symbolName = typeInfoResolver.symbolToString(symbol); // Do not get scoped name, just the name of the symbol var symbolKind = getSymbolKind(symbol, typeInfoResolver, node); var containerSymbol = symbol.parent; var containerName = containerSymbol ? typeInfoResolver.symbolToString(containerSymbol, node) : ""; if (!tryAddConstructSignature(symbol, node, symbolKind, symbolName, containerName, result) && !tryAddCallSignature(symbol, node, symbolKind, symbolName, containerName, result)) { + // Just add all the declarations. ts.forEach(declarations, function (declaration) { result.push(createDefinitionInfo(declaration, symbolKind, symbolName, containerName)); }); } return result; function tryAddConstructSignature(symbol, location, symbolKind, symbolName, containerName, result) { - if (isNewExpressionTarget(location) || location.kind === 114) { - if (symbol.flags & 32) { + // Applicable only if we are in a new expression, or we are on a constructor declaration + // and in either case the symbol has a construct signature definition, i.e. class + if (isNewExpressionTarget(location) || location.kind === 114 /* ConstructorKeyword */) { + if (symbol.flags & 32 /* Class */) { var classDeclaration = symbol.getDeclarations()[0]; - ts.Debug.assert(classDeclaration && classDeclaration.kind === 201); + ts.Debug.assert(classDeclaration && classDeclaration.kind === 201 /* ClassDeclaration */); return tryAddSignature(classDeclaration.members, true, symbolKind, symbolName, containerName, result); } } @@ -31726,8 +37173,8 @@ var ts; var declarations = []; var definition; ts.forEach(signatureDeclarations, function (d) { - if ((selectConstructors && d.kind === 135) || - (!selectConstructors && (d.kind === 200 || d.kind === 134 || d.kind === 133))) { + if ((selectConstructors && d.kind === 135 /* Constructor */) || + (!selectConstructors && (d.kind === 200 /* FunctionDeclaration */ || d.kind === 134 /* MethodDeclaration */ || d.kind === 133 /* MethodSignature */))) { declarations.push(d); if (d.body) definition = d; @@ -31748,430 +37195,542 @@ var ts; var results = getOccurrencesAtPositionCore(fileName, position); if (results) { var sourceFile = getCanonicalFileName(ts.normalizeSlashes(fileName)); - results.forEach(function (value) { - var targetFile = getCanonicalFileName(ts.normalizeSlashes(value.fileName)); - ts.Debug.assert(sourceFile == targetFile, "Unexpected file in results. Found results in " + targetFile + " expected only results in " + sourceFile + "."); - }); + // Get occurrences only supports reporting occurrences for the file queried. So + // filter down to that list. + results = ts.filter(results, function (r) { return r.fileName === fileName; }); } return results; } - function getOccurrencesAtPositionCore(fileName, position) { + function getDocumentHighlights(fileName, position, filesToSearch) { synchronizeHostData(); + filesToSearch = ts.map(filesToSearch, ts.normalizeSlashes); + var sourceFilesToSearch = ts.filter(program.getSourceFiles(), function (f) { return ts.contains(filesToSearch, f.fileName); }); var sourceFile = getValidSourceFile(fileName); var node = ts.getTouchingWord(sourceFile, position); if (!node) { return undefined; } - if (node.kind === 65 || node.kind === 93 || node.kind === 91 || - isLiteralNameOfPropertyDeclarationOrIndexAccess(node) || isNameOfExternalModuleImportOrDeclaration(node)) { - return convertReferences(getReferencesForNode(node, [sourceFile], true, false, false)); + return getSemanticDocumentHighlights(node) || getSyntacticDocumentHighlights(node); + function getHighlightSpanForNode(node) { + var start = node.getStart(); + var end = node.getEnd(); + return { + fileName: sourceFile.fileName, + textSpan: ts.createTextSpanFromBounds(start, end), + kind: HighlightSpanKind.none + }; } - switch (node.kind) { - case 84: - case 76: - if (hasKind(node.parent, 183)) { - return getIfElseOccurrences(node.parent); - } - break; - case 90: - if (hasKind(node.parent, 191)) { - return getReturnOccurrences(node.parent); - } - break; - case 94: - if (hasKind(node.parent, 195)) { - return getThrowOccurrences(node.parent); - } - break; - case 68: - if (hasKind(parent(parent(node)), 196)) { - return getTryCatchFinallyOccurrences(node.parent.parent); - } - break; - case 96: - case 81: - if (hasKind(parent(node), 196)) { - return getTryCatchFinallyOccurrences(node.parent); - } - break; - case 92: - if (hasKind(node.parent, 193)) { - return getSwitchCaseDefaultOccurrences(node.parent); - } - break; - case 67: - case 73: - if (hasKind(parent(parent(parent(node))), 193)) { - return getSwitchCaseDefaultOccurrences(node.parent.parent.parent); - } - break; - case 66: - case 71: - if (hasKind(node.parent, 190) || hasKind(node.parent, 189)) { - return getBreakOrContinueStatementOccurences(node.parent); - } - break; - case 82: - if (hasKind(node.parent, 186) || - hasKind(node.parent, 187) || - hasKind(node.parent, 188)) { - return getLoopBreakContinueOccurrences(node.parent); - } - break; - case 100: - case 75: - if (hasKind(node.parent, 185) || hasKind(node.parent, 184)) { - return getLoopBreakContinueOccurrences(node.parent); - } - break; - case 114: - if (hasKind(node.parent, 135)) { - return getConstructorOccurrences(node.parent); - } - break; - case 116: - case 120: - if (hasKind(node.parent, 136) || hasKind(node.parent, 137)) { - return getGetAndSetOccurrences(node.parent); - } - default: - if (ts.isModifier(node.kind) && node.parent && - (ts.isDeclaration(node.parent) || node.parent.kind === 180)) { - return getModifierOccurrences(node.kind, node.parent); - } - } - return undefined; - function getIfElseOccurrences(ifStatement) { - var keywords = []; - while (hasKind(ifStatement.parent, 183) && ifStatement.parent.elseStatement === ifStatement) { - ifStatement = ifStatement.parent; + function getSemanticDocumentHighlights(node) { + if (node.kind === 65 /* Identifier */ || + node.kind === 93 /* ThisKeyword */ || + node.kind === 91 /* SuperKeyword */ || + isLiteralNameOfPropertyDeclarationOrIndexAccess(node) || + isNameOfExternalModuleImportOrDeclaration(node)) { + var referencedSymbols = getReferencedSymbolsForNodes(node, sourceFilesToSearch, false, false); + return convertReferencedSymbols(referencedSymbols); } - while (ifStatement) { - var children = ifStatement.getChildren(); - pushKeywordIf(keywords, children[0], 84); - for (var i = children.length - 1; i >= 0; i--) { - if (pushKeywordIf(keywords, children[i], 76)) { + return undefined; + function convertReferencedSymbols(referencedSymbols) { + if (!referencedSymbols) { + return undefined; + } + var fileNameToDocumentHighlights = {}; + var result = []; + for (var _i = 0; _i < referencedSymbols.length; _i++) { + var referencedSymbol = referencedSymbols[_i]; + for (var _a = 0, _b = referencedSymbol.references; _a < _b.length; _a++) { + var referenceEntry = _b[_a]; + var fileName_1 = referenceEntry.fileName; + var documentHighlights = ts.getProperty(fileNameToDocumentHighlights, fileName_1); + if (!documentHighlights) { + documentHighlights = { fileName: fileName_1, highlightSpans: [] }; + fileNameToDocumentHighlights[fileName_1] = documentHighlights; + result.push(documentHighlights); + } + documentHighlights.highlightSpans.push({ + textSpan: referenceEntry.textSpan, + kind: referenceEntry.isWriteAccess ? HighlightSpanKind.writtenReference : HighlightSpanKind.reference + }); + } + } + return result; + } + } + function getSyntacticDocumentHighlights(node) { + var fileName = sourceFile.fileName; + var highlightSpans = getHighlightSpans(node); + if (!highlightSpans || highlightSpans.length === 0) { + return undefined; + } + return [{ fileName: fileName, highlightSpans: highlightSpans }]; + // returns true if 'node' is defined and has a matching 'kind'. + function hasKind(node, kind) { + return node !== undefined && node.kind === kind; + } + // Null-propagating 'parent' function. + function parent(node) { + return node && node.parent; + } + function getHighlightSpans(node) { + if (node) { + switch (node.kind) { + case 84 /* IfKeyword */: + case 76 /* ElseKeyword */: + if (hasKind(node.parent, 183 /* IfStatement */)) { + return getIfElseOccurrences(node.parent); + } + break; + case 90 /* ReturnKeyword */: + if (hasKind(node.parent, 191 /* ReturnStatement */)) { + return getReturnOccurrences(node.parent); + } + break; + case 94 /* ThrowKeyword */: + if (hasKind(node.parent, 195 /* ThrowStatement */)) { + return getThrowOccurrences(node.parent); + } + break; + case 68 /* CatchKeyword */: + if (hasKind(parent(parent(node)), 196 /* TryStatement */)) { + return getTryCatchFinallyOccurrences(node.parent.parent); + } + break; + case 96 /* TryKeyword */: + case 81 /* FinallyKeyword */: + if (hasKind(parent(node), 196 /* TryStatement */)) { + return getTryCatchFinallyOccurrences(node.parent); + } + break; + case 92 /* SwitchKeyword */: + if (hasKind(node.parent, 193 /* SwitchStatement */)) { + return getSwitchCaseDefaultOccurrences(node.parent); + } + break; + case 67 /* CaseKeyword */: + case 73 /* DefaultKeyword */: + if (hasKind(parent(parent(parent(node))), 193 /* SwitchStatement */)) { + return getSwitchCaseDefaultOccurrences(node.parent.parent.parent); + } + break; + case 66 /* BreakKeyword */: + case 71 /* ContinueKeyword */: + if (hasKind(node.parent, 190 /* BreakStatement */) || hasKind(node.parent, 189 /* ContinueStatement */)) { + return getBreakOrContinueStatementOccurences(node.parent); + } + break; + case 82 /* ForKeyword */: + if (hasKind(node.parent, 186 /* ForStatement */) || + hasKind(node.parent, 187 /* ForInStatement */) || + hasKind(node.parent, 188 /* ForOfStatement */)) { + return getLoopBreakContinueOccurrences(node.parent); + } + break; + case 100 /* WhileKeyword */: + case 75 /* DoKeyword */: + if (hasKind(node.parent, 185 /* WhileStatement */) || hasKind(node.parent, 184 /* DoStatement */)) { + return getLoopBreakContinueOccurrences(node.parent); + } + break; + case 114 /* ConstructorKeyword */: + if (hasKind(node.parent, 135 /* Constructor */)) { + return getConstructorOccurrences(node.parent); + } + break; + case 116 /* GetKeyword */: + case 120 /* SetKeyword */: + if (hasKind(node.parent, 136 /* GetAccessor */) || hasKind(node.parent, 137 /* SetAccessor */)) { + return getGetAndSetOccurrences(node.parent); + } + default: + if (ts.isModifier(node.kind) && node.parent && + (ts.isDeclaration(node.parent) || node.parent.kind === 180 /* VariableStatement */)) { + return getModifierOccurrences(node.kind, node.parent); + } + } + } + return undefined; + } + /** + * Aggregates all throw-statements within this node *without* crossing + * into function boundaries and try-blocks with catch-clauses. + */ + function aggregateOwnedThrowStatements(node) { + var statementAccumulator = []; + aggregate(node); + return statementAccumulator; + function aggregate(node) { + if (node.kind === 195 /* ThrowStatement */) { + statementAccumulator.push(node); + } + else if (node.kind === 196 /* TryStatement */) { + var tryStatement = node; + if (tryStatement.catchClause) { + aggregate(tryStatement.catchClause); + } + else { + // Exceptions thrown within a try block lacking a catch clause + // are "owned" in the current context. + aggregate(tryStatement.tryBlock); + } + if (tryStatement.finallyBlock) { + aggregate(tryStatement.finallyBlock); + } + } + else if (!ts.isFunctionLike(node)) { + ts.forEachChild(node, aggregate); + } + } + ; + } + /** + * For lack of a better name, this function takes a throw statement and returns the + * nearest ancestor that is a try-block (whose try statement has a catch clause), + * function-block, or source file. + */ + function getThrowStatementOwner(throwStatement) { + var child = throwStatement; + while (child.parent) { + var parent_10 = child.parent; + if (ts.isFunctionBlock(parent_10) || parent_10.kind === 227 /* SourceFile */) { + return parent_10; + } + // A throw-statement is only owned by a try-statement if the try-statement has + // a catch clause, and if the throw-statement occurs within the try block. + if (parent_10.kind === 196 /* TryStatement */) { + var tryStatement = parent_10; + if (tryStatement.tryBlock === child && tryStatement.catchClause) { + return child; + } + } + child = parent_10; + } + return undefined; + } + function aggregateAllBreakAndContinueStatements(node) { + var statementAccumulator = []; + aggregate(node); + return statementAccumulator; + function aggregate(node) { + if (node.kind === 190 /* BreakStatement */ || node.kind === 189 /* ContinueStatement */) { + statementAccumulator.push(node); + } + else if (!ts.isFunctionLike(node)) { + ts.forEachChild(node, aggregate); + } + } + ; + } + function ownsBreakOrContinueStatement(owner, statement) { + var actualOwner = getBreakOrContinueOwner(statement); + return actualOwner && actualOwner === owner; + } + function getBreakOrContinueOwner(statement) { + for (var node_1 = statement.parent; node_1; node_1 = node_1.parent) { + switch (node_1.kind) { + case 193 /* SwitchStatement */: + if (statement.kind === 189 /* ContinueStatement */) { + continue; + } + // Fall through. + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 185 /* WhileStatement */: + case 184 /* DoStatement */: + if (!statement.label || isLabeledBy(node_1, statement.label.text)) { + return node_1; + } + break; + default: + // Don't cross function boundaries. + if (ts.isFunctionLike(node_1)) { + return undefined; + } + break; + } + } + return undefined; + } + function getModifierOccurrences(modifier, declaration) { + var container = declaration.parent; + // Make sure we only highlight the keyword when it makes sense to do so. + if (ts.isAccessibilityModifier(modifier)) { + if (!(container.kind === 201 /* ClassDeclaration */ || + (declaration.kind === 129 /* Parameter */ && hasKind(container, 135 /* Constructor */)))) { + return undefined; + } + } + else if (modifier === 110 /* StaticKeyword */) { + if (container.kind !== 201 /* ClassDeclaration */) { + return undefined; + } + } + else if (modifier === 78 /* ExportKeyword */ || modifier === 115 /* DeclareKeyword */) { + if (!(container.kind === 206 /* ModuleBlock */ || container.kind === 227 /* SourceFile */)) { + return undefined; + } + } + else { + // unsupported modifier + return undefined; + } + var keywords = []; + var modifierFlag = getFlagFromModifier(modifier); + var nodes; + switch (container.kind) { + case 206 /* ModuleBlock */: + case 227 /* SourceFile */: + nodes = container.statements; + break; + case 135 /* Constructor */: + nodes = container.parameters.concat(container.parent.members); + break; + case 201 /* ClassDeclaration */: + nodes = container.members; + // If we're an accessibility modifier, we're in an instance member and should search + // the constructor's parameter list for instance members as well. + if (modifierFlag & 112 /* AccessibilityModifier */) { + var constructor = ts.forEach(container.members, function (member) { + return member.kind === 135 /* Constructor */ && member; + }); + if (constructor) { + nodes = nodes.concat(constructor.parameters); + } + } + break; + default: + ts.Debug.fail("Invalid container kind."); + } + ts.forEach(nodes, function (node) { + if (node.modifiers && node.flags & modifierFlag) { + ts.forEach(node.modifiers, function (child) { return pushKeywordIf(keywords, child, modifier); }); + } + }); + return ts.map(keywords, getHighlightSpanForNode); + function getFlagFromModifier(modifier) { + switch (modifier) { + case 109 /* PublicKeyword */: + return 16 /* Public */; + case 107 /* PrivateKeyword */: + return 32 /* Private */; + case 108 /* ProtectedKeyword */: + return 64 /* Protected */; + case 110 /* StaticKeyword */: + return 128 /* Static */; + case 78 /* ExportKeyword */: + return 1 /* Export */; + case 115 /* DeclareKeyword */: + return 2 /* Ambient */; + default: + ts.Debug.fail(); + } + } + } + function pushKeywordIf(keywordList, token) { + var expected = []; + for (var _i = 2; _i < arguments.length; _i++) { + expected[_i - 2] = arguments[_i]; + } + if (token && ts.contains(expected, token.kind)) { + keywordList.push(token); + return true; + } + return false; + } + function getGetAndSetOccurrences(accessorDeclaration) { + var keywords = []; + tryPushAccessorKeyword(accessorDeclaration.symbol, 136 /* GetAccessor */); + tryPushAccessorKeyword(accessorDeclaration.symbol, 137 /* SetAccessor */); + return ts.map(keywords, getHighlightSpanForNode); + function tryPushAccessorKeyword(accessorSymbol, accessorKind) { + var accessor = ts.getDeclarationOfKind(accessorSymbol, accessorKind); + if (accessor) { + ts.forEach(accessor.getChildren(), function (child) { return pushKeywordIf(keywords, child, 116 /* GetKeyword */, 120 /* SetKeyword */); }); + } + } + } + function getConstructorOccurrences(constructorDeclaration) { + var declarations = constructorDeclaration.symbol.getDeclarations(); + var keywords = []; + ts.forEach(declarations, function (declaration) { + ts.forEach(declaration.getChildren(), function (token) { + return pushKeywordIf(keywords, token, 114 /* ConstructorKeyword */); + }); + }); + return ts.map(keywords, getHighlightSpanForNode); + } + function getLoopBreakContinueOccurrences(loopNode) { + var keywords = []; + if (pushKeywordIf(keywords, loopNode.getFirstToken(), 82 /* ForKeyword */, 100 /* WhileKeyword */, 75 /* DoKeyword */)) { + // If we succeeded and got a do-while loop, then start looking for a 'while' keyword. + if (loopNode.kind === 184 /* DoStatement */) { + var loopTokens = loopNode.getChildren(); + for (var i = loopTokens.length - 1; i >= 0; i--) { + if (pushKeywordIf(keywords, loopTokens[i], 100 /* WhileKeyword */)) { + break; + } + } + } + } + var breaksAndContinues = aggregateAllBreakAndContinueStatements(loopNode.statement); + ts.forEach(breaksAndContinues, function (statement) { + if (ownsBreakOrContinueStatement(loopNode, statement)) { + pushKeywordIf(keywords, statement.getFirstToken(), 66 /* BreakKeyword */, 71 /* ContinueKeyword */); + } + }); + return ts.map(keywords, getHighlightSpanForNode); + } + function getBreakOrContinueStatementOccurences(breakOrContinueStatement) { + var owner = getBreakOrContinueOwner(breakOrContinueStatement); + if (owner) { + switch (owner.kind) { + case 186 /* ForStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + case 184 /* DoStatement */: + case 185 /* WhileStatement */: + return getLoopBreakContinueOccurrences(owner); + case 193 /* SwitchStatement */: + return getSwitchCaseDefaultOccurrences(owner); + } + } + return undefined; + } + function getSwitchCaseDefaultOccurrences(switchStatement) { + var keywords = []; + pushKeywordIf(keywords, switchStatement.getFirstToken(), 92 /* SwitchKeyword */); + // Go through each clause in the switch statement, collecting the 'case'/'default' keywords. + ts.forEach(switchStatement.caseBlock.clauses, function (clause) { + pushKeywordIf(keywords, clause.getFirstToken(), 67 /* CaseKeyword */, 73 /* DefaultKeyword */); + var breaksAndContinues = aggregateAllBreakAndContinueStatements(clause); + ts.forEach(breaksAndContinues, function (statement) { + if (ownsBreakOrContinueStatement(switchStatement, statement)) { + pushKeywordIf(keywords, statement.getFirstToken(), 66 /* BreakKeyword */); + } + }); + }); + return ts.map(keywords, getHighlightSpanForNode); + } + function getTryCatchFinallyOccurrences(tryStatement) { + var keywords = []; + pushKeywordIf(keywords, tryStatement.getFirstToken(), 96 /* TryKeyword */); + if (tryStatement.catchClause) { + pushKeywordIf(keywords, tryStatement.catchClause.getFirstToken(), 68 /* CatchKeyword */); + } + if (tryStatement.finallyBlock) { + var finallyKeyword = ts.findChildOfKind(tryStatement, 81 /* FinallyKeyword */, sourceFile); + pushKeywordIf(keywords, finallyKeyword, 81 /* FinallyKeyword */); + } + return ts.map(keywords, getHighlightSpanForNode); + } + function getThrowOccurrences(throwStatement) { + var owner = getThrowStatementOwner(throwStatement); + if (!owner) { + return undefined; + } + var keywords = []; + ts.forEach(aggregateOwnedThrowStatements(owner), function (throwStatement) { + pushKeywordIf(keywords, throwStatement.getFirstToken(), 94 /* ThrowKeyword */); + }); + // If the "owner" is a function, then we equate 'return' and 'throw' statements in their + // ability to "jump out" of the function, and include occurrences for both. + if (ts.isFunctionBlock(owner)) { + ts.forEachReturnStatement(owner, function (returnStatement) { + pushKeywordIf(keywords, returnStatement.getFirstToken(), 90 /* ReturnKeyword */); + }); + } + return ts.map(keywords, getHighlightSpanForNode); + } + function getReturnOccurrences(returnStatement) { + var func = ts.getContainingFunction(returnStatement); + // If we didn't find a containing function with a block body, bail out. + if (!(func && hasKind(func.body, 179 /* Block */))) { + return undefined; + } + var keywords = []; + ts.forEachReturnStatement(func.body, function (returnStatement) { + pushKeywordIf(keywords, returnStatement.getFirstToken(), 90 /* ReturnKeyword */); + }); + // Include 'throw' statements that do not occur within a try block. + ts.forEach(aggregateOwnedThrowStatements(func.body), function (throwStatement) { + pushKeywordIf(keywords, throwStatement.getFirstToken(), 94 /* ThrowKeyword */); + }); + return ts.map(keywords, getHighlightSpanForNode); + } + function getIfElseOccurrences(ifStatement) { + var keywords = []; + // Traverse upwards through all parent if-statements linked by their else-branches. + while (hasKind(ifStatement.parent, 183 /* IfStatement */) && ifStatement.parent.elseStatement === ifStatement) { + ifStatement = ifStatement.parent; + } + // Now traverse back down through the else branches, aggregating if/else keywords of if-statements. + while (ifStatement) { + var children = ifStatement.getChildren(); + pushKeywordIf(keywords, children[0], 84 /* IfKeyword */); + // Generally the 'else' keyword is second-to-last, so we traverse backwards. + for (var i = children.length - 1; i >= 0; i--) { + if (pushKeywordIf(keywords, children[i], 76 /* ElseKeyword */)) { + break; + } + } + if (!hasKind(ifStatement.elseStatement, 183 /* IfStatement */)) { break; } + ifStatement = ifStatement.elseStatement; } - if (!hasKind(ifStatement.elseStatement, 183)) { - break; - } - ifStatement = ifStatement.elseStatement; - } - var result = []; - for (var i = 0; i < keywords.length; i++) { - if (keywords[i].kind === 76 && i < keywords.length - 1) { - var elseKeyword = keywords[i]; - var ifKeyword = keywords[i + 1]; - var shouldHighlightNextKeyword = true; - for (var j = ifKeyword.getStart() - 1; j >= elseKeyword.end; j--) { - if (!ts.isWhiteSpace(sourceFile.text.charCodeAt(j))) { - shouldHighlightNextKeyword = false; - break; + var result = []; + // We'd like to highlight else/ifs together if they are only separated by whitespace + // (i.e. the keywords are separated by no comments, no newlines). + for (var i = 0; i < keywords.length; i++) { + if (keywords[i].kind === 76 /* ElseKeyword */ && i < keywords.length - 1) { + var elseKeyword = keywords[i]; + var ifKeyword = keywords[i + 1]; // this *should* always be an 'if' keyword. + var shouldCombindElseAndIf = true; + // Avoid recalculating getStart() by iterating backwards. + for (var j = ifKeyword.getStart() - 1; j >= elseKeyword.end; j--) { + if (!ts.isWhiteSpace(sourceFile.text.charCodeAt(j))) { + shouldCombindElseAndIf = false; + break; + } } - } - if (shouldHighlightNextKeyword) { - result.push({ - fileName: fileName, - textSpan: ts.createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end), - isWriteAccess: false - }); - i++; - continue; - } - } - result.push(getReferenceEntryFromNode(keywords[i])); - } - return result; - } - function getReturnOccurrences(returnStatement) { - var func = ts.getContainingFunction(returnStatement); - if (!(func && hasKind(func.body, 179))) { - return undefined; - } - var keywords = []; - ts.forEachReturnStatement(func.body, function (returnStatement) { - pushKeywordIf(keywords, returnStatement.getFirstToken(), 90); - }); - ts.forEach(aggregateOwnedThrowStatements(func.body), function (throwStatement) { - pushKeywordIf(keywords, throwStatement.getFirstToken(), 94); - }); - return ts.map(keywords, getReferenceEntryFromNode); - } - function getThrowOccurrences(throwStatement) { - var owner = getThrowStatementOwner(throwStatement); - if (!owner) { - return undefined; - } - var keywords = []; - ts.forEach(aggregateOwnedThrowStatements(owner), function (throwStatement) { - pushKeywordIf(keywords, throwStatement.getFirstToken(), 94); - }); - if (ts.isFunctionBlock(owner)) { - ts.forEachReturnStatement(owner, function (returnStatement) { - pushKeywordIf(keywords, returnStatement.getFirstToken(), 90); - }); - } - return ts.map(keywords, getReferenceEntryFromNode); - } - function aggregateOwnedThrowStatements(node) { - var statementAccumulator = []; - aggregate(node); - return statementAccumulator; - function aggregate(node) { - if (node.kind === 195) { - statementAccumulator.push(node); - } - else if (node.kind === 196) { - var tryStatement = node; - if (tryStatement.catchClause) { - aggregate(tryStatement.catchClause); - } - else { - aggregate(tryStatement.tryBlock); - } - if (tryStatement.finallyBlock) { - aggregate(tryStatement.finallyBlock); - } - } - else if (!ts.isFunctionLike(node)) { - ts.forEachChild(node, aggregate); - } - } - ; - } - function getThrowStatementOwner(throwStatement) { - var child = throwStatement; - while (child.parent) { - var parent_9 = child.parent; - if (ts.isFunctionBlock(parent_9) || parent_9.kind === 227) { - return parent_9; - } - if (parent_9.kind === 196) { - var tryStatement = parent_9; - if (tryStatement.tryBlock === child && tryStatement.catchClause) { - return child; - } - } - child = parent_9; - } - return undefined; - } - function getTryCatchFinallyOccurrences(tryStatement) { - var keywords = []; - pushKeywordIf(keywords, tryStatement.getFirstToken(), 96); - if (tryStatement.catchClause) { - pushKeywordIf(keywords, tryStatement.catchClause.getFirstToken(), 68); - } - if (tryStatement.finallyBlock) { - var finallyKeyword = ts.findChildOfKind(tryStatement, 81, sourceFile); - pushKeywordIf(keywords, finallyKeyword, 81); - } - return ts.map(keywords, getReferenceEntryFromNode); - } - function getLoopBreakContinueOccurrences(loopNode) { - var keywords = []; - if (pushKeywordIf(keywords, loopNode.getFirstToken(), 82, 100, 75)) { - if (loopNode.kind === 184) { - var loopTokens = loopNode.getChildren(); - for (var i = loopTokens.length - 1; i >= 0; i--) { - if (pushKeywordIf(keywords, loopTokens[i], 100)) { - break; - } - } - } - } - var breaksAndContinues = aggregateAllBreakAndContinueStatements(loopNode.statement); - ts.forEach(breaksAndContinues, function (statement) { - if (ownsBreakOrContinueStatement(loopNode, statement)) { - pushKeywordIf(keywords, statement.getFirstToken(), 66, 71); - } - }); - return ts.map(keywords, getReferenceEntryFromNode); - } - function getSwitchCaseDefaultOccurrences(switchStatement) { - var keywords = []; - pushKeywordIf(keywords, switchStatement.getFirstToken(), 92); - ts.forEach(switchStatement.caseBlock.clauses, function (clause) { - pushKeywordIf(keywords, clause.getFirstToken(), 67, 73); - var breaksAndContinues = aggregateAllBreakAndContinueStatements(clause); - ts.forEach(breaksAndContinues, function (statement) { - if (ownsBreakOrContinueStatement(switchStatement, statement)) { - pushKeywordIf(keywords, statement.getFirstToken(), 66); - } - }); - }); - return ts.map(keywords, getReferenceEntryFromNode); - } - function getBreakOrContinueStatementOccurences(breakOrContinueStatement) { - var owner = getBreakOrContinueOwner(breakOrContinueStatement); - if (owner) { - switch (owner.kind) { - case 186: - case 187: - case 188: - case 184: - case 185: - return getLoopBreakContinueOccurrences(owner); - case 193: - return getSwitchCaseDefaultOccurrences(owner); - } - } - return undefined; - } - function aggregateAllBreakAndContinueStatements(node) { - var statementAccumulator = []; - aggregate(node); - return statementAccumulator; - function aggregate(node) { - if (node.kind === 190 || node.kind === 189) { - statementAccumulator.push(node); - } - else if (!ts.isFunctionLike(node)) { - ts.forEachChild(node, aggregate); - } - } - ; - } - function ownsBreakOrContinueStatement(owner, statement) { - var actualOwner = getBreakOrContinueOwner(statement); - return actualOwner && actualOwner === owner; - } - function getBreakOrContinueOwner(statement) { - for (var node_1 = statement.parent; node_1; node_1 = node_1.parent) { - switch (node_1.kind) { - case 193: - if (statement.kind === 189) { + if (shouldCombindElseAndIf) { + result.push({ + fileName: fileName, + textSpan: ts.createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end), + kind: HighlightSpanKind.reference + }); + i++; // skip the next keyword continue; } - case 186: - case 187: - case 188: - case 185: - case 184: - if (!statement.label || isLabeledBy(node_1, statement.label.text)) { - return node_1; - } - break; - default: - if (ts.isFunctionLike(node_1)) { - return undefined; - } - break; - } - } - return undefined; - } - function getConstructorOccurrences(constructorDeclaration) { - var declarations = constructorDeclaration.symbol.getDeclarations(); - var keywords = []; - ts.forEach(declarations, function (declaration) { - ts.forEach(declaration.getChildren(), function (token) { - return pushKeywordIf(keywords, token, 114); - }); - }); - return ts.map(keywords, getReferenceEntryFromNode); - } - function getGetAndSetOccurrences(accessorDeclaration) { - var keywords = []; - tryPushAccessorKeyword(accessorDeclaration.symbol, 136); - tryPushAccessorKeyword(accessorDeclaration.symbol, 137); - return ts.map(keywords, getReferenceEntryFromNode); - function tryPushAccessorKeyword(accessorSymbol, accessorKind) { - var accessor = ts.getDeclarationOfKind(accessorSymbol, accessorKind); - if (accessor) { - ts.forEach(accessor.getChildren(), function (child) { return pushKeywordIf(keywords, child, 116, 120); }); + } + // Ordinary case: just highlight the keyword. + result.push(getHighlightSpanForNode(keywords[i])); } + return result; } } - function getModifierOccurrences(modifier, declaration) { - var container = declaration.parent; - if (ts.isAccessibilityModifier(modifier)) { - if (!(container.kind === 201 || - (declaration.kind === 129 && hasKind(container, 135)))) { - return undefined; - } - } - else if (modifier === 110) { - if (container.kind !== 201) { - return undefined; - } - } - else if (modifier === 78 || modifier === 115) { - if (!(container.kind === 206 || container.kind === 227)) { - return undefined; - } - } - else { + } + /// References and Occurrences + function getOccurrencesAtPositionCore(fileName, position) { + synchronizeHostData(); + return convertDocumentHighlights(getDocumentHighlights(fileName, position, [fileName])); + function convertDocumentHighlights(documentHighlights) { + if (!documentHighlights) { return undefined; } - var keywords = []; - var modifierFlag = getFlagFromModifier(modifier); - var nodes; - switch (container.kind) { - case 206: - case 227: - nodes = container.statements; - break; - case 135: - nodes = container.parameters.concat(container.parent.members); - break; - case 201: - nodes = container.members; - if (modifierFlag & 112) { - var constructor = ts.forEach(container.members, function (member) { - return member.kind === 135 && member; - }); - if (constructor) { - nodes = nodes.concat(constructor.parameters); - } - } - break; - default: - ts.Debug.fail("Invalid container kind."); - } - ts.forEach(nodes, function (node) { - if (node.modifiers && node.flags & modifierFlag) { - ts.forEach(node.modifiers, function (child) { return pushKeywordIf(keywords, child, modifier); }); - } - }); - return ts.map(keywords, getReferenceEntryFromNode); - function getFlagFromModifier(modifier) { - switch (modifier) { - case 109: - return 16; - case 107: - return 32; - case 108: - return 64; - case 110: - return 128; - case 78: - return 1; - case 115: - return 2; - default: - ts.Debug.fail(); + var result = []; + for (var _i = 0; _i < documentHighlights.length; _i++) { + var entry = documentHighlights[_i]; + for (var _a = 0, _b = entry.highlightSpans; _a < _b.length; _a++) { + var highlightSpan = _b[_a]; + result.push({ + fileName: entry.fileName, + textSpan: highlightSpan.textSpan, + isWriteAccess: highlightSpan.kind === HighlightSpanKind.writtenReference + }); } } - } - function hasKind(node, kind) { - return node !== undefined && node.kind === kind; - } - function parent(node) { - return node && node.parent; - } - function pushKeywordIf(keywordList, token) { - var expected = []; - for (var _i = 2; _i < arguments.length; _i++) { - expected[_i - 2] = arguments[_i]; - } - if (token && ts.contains(expected, token.kind)) { - keywordList.push(token); - return true; - } - return false; + return result; } } function convertReferences(referenceSymbols) { @@ -32195,6 +37754,7 @@ var ts; } function findReferences(fileName, position) { var referencedSymbols = findReferencedSymbols(fileName, position, false, false); + // Only include referenced symbols that have a valid definition. return ts.filter(referencedSymbols, function (rs) { return !!rs.definition; }); } function findReferencedSymbols(fileName, position, findInStrings, findInComments) { @@ -32204,63 +37764,72 @@ var ts; if (!node) { return undefined; } - if (node.kind !== 65 && + if (node.kind !== 65 /* Identifier */ && + // TODO (drosen): This should be enabled in a later release - currently breaks rename. + //node.kind !== SyntaxKind.ThisKeyword && + //node.kind !== SyntaxKind.SuperKeyword && !isLiteralNameOfPropertyDeclarationOrIndexAccess(node) && !isNameOfExternalModuleImportOrDeclaration(node)) { return undefined; } - ts.Debug.assert(node.kind === 65 || node.kind === 7 || node.kind === 8); - return getReferencesForNode(node, program.getSourceFiles(), false, findInStrings, findInComments); + ts.Debug.assert(node.kind === 65 /* Identifier */ || node.kind === 7 /* NumericLiteral */ || node.kind === 8 /* StringLiteral */); + return getReferencedSymbolsForNodes(node, program.getSourceFiles(), findInStrings, findInComments); } - function getReferencesForNode(node, sourceFiles, searchOnlyInCurrentFile, findInStrings, findInComments) { + function getReferencedSymbolsForNodes(node, sourceFiles, findInStrings, findInComments) { + // Labels if (isLabelName(node)) { if (isJumpStatementTarget(node)) { var labelDefinition = getTargetLabel(node.parent, node.text); + // if we have a label definition, look within its statement for references, if not, then + // the label is undefined and we have no results.. return labelDefinition ? getLabelReferencesInNode(labelDefinition.parent, labelDefinition) : undefined; } else { + // it is a label definition and not a target, search within the parent labeledStatement return getLabelReferencesInNode(node.parent, node); } } - if (node.kind === 93) { + if (node.kind === 93 /* ThisKeyword */) { return getReferencesForThisKeyword(node, sourceFiles); } - if (node.kind === 91) { + if (node.kind === 91 /* SuperKeyword */) { return getReferencesForSuperKeyword(node); } var symbol = typeInfoResolver.getSymbolAtLocation(node); + // Could not find a symbol e.g. unknown identifier if (!symbol) { + // Can't have references to something that we have no symbol for. return undefined; } var declarations = symbol.declarations; + // The symbol was an internal symbol and does not have a declaration e.g.undefined symbol if (!declarations || !declarations.length) { return undefined; } var result; + // Compute the meaning from the location and the symbol it references var searchMeaning = getIntersectingMeaningFromDeclarations(getMeaningFromLocation(node), declarations); + // Get the text to search for, we need to normalize it as external module names will have quote var declaredName = getDeclaredName(symbol, node); + // Try to get the smallest valid scope that we can limit our search to; + // otherwise we'll need to search globally (i.e. include each file). var scope = getSymbolScope(symbol); + // Maps from a symbol ID to the ReferencedSymbol entry in 'result'. var symbolToIndex = []; if (scope) { result = []; getReferencesInNode(scope, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); } else { - if (searchOnlyInCurrentFile) { - ts.Debug.assert(sourceFiles.length === 1); - result = []; - getReferencesInNode(sourceFiles[0], symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); - } - else { - var internedName = getInternedName(symbol, node, declarations); - ts.forEach(sourceFiles, function (sourceFile) { - cancellationToken.throwIfCancellationRequested(); - var nameTable = getNameTable(sourceFile); - if (ts.lookUp(nameTable, internedName)) { - result = result || []; - getReferencesInNode(sourceFile, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); - } - }); + var internedName = getInternedName(symbol, node, declarations); + for (var _i = 0; _i < sourceFiles.length; _i++) { + var sourceFile = sourceFiles[_i]; + cancellationToken.throwIfCancellationRequested(); + var nameTable = getNameTable(sourceFile); + if (ts.lookUp(nameTable, internedName)) { + result = result || []; + getReferencesInNode(sourceFile, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); + } } } return result; @@ -32282,20 +37851,29 @@ var ts; } function isImportOrExportSpecifierName(location) { return location.parent && - (location.parent.kind === 213 || location.parent.kind === 217) && + (location.parent.kind === 213 /* ImportSpecifier */ || location.parent.kind === 217 /* ExportSpecifier */) && location.parent.propertyName === location; } function isImportOrExportSpecifierImportSymbol(symbol) { - return (symbol.flags & 8388608) && ts.forEach(symbol.declarations, function (declaration) { - return declaration.kind === 213 || declaration.kind === 217; + return (symbol.flags & 8388608 /* Alias */) && ts.forEach(symbol.declarations, function (declaration) { + return declaration.kind === 213 /* ImportSpecifier */ || declaration.kind === 217 /* ExportSpecifier */; }); } function getDeclaredName(symbol, location) { - var functionExpression = ts.forEach(symbol.declarations, function (d) { return d.kind === 162 ? d : undefined; }); + // Special case for function expressions, whose names are solely local to their bodies. + var functionExpression = ts.forEach(symbol.declarations, function (d) { return d.kind === 162 /* FunctionExpression */ ? d : undefined; }); + // When a name gets interned into a SourceFile's 'identifiers' Map, + // its name is escaped and stored in the same way its symbol name/identifier + // name should be stored. Function expressions, however, are a special case, + // because despite sometimes having a name, the binder unconditionally binds them + // to a symbol with the name "__function". var name; if (functionExpression && functionExpression.name) { name = functionExpression.name.text; } + // If this is an export or import specifier it could have been renamed using the as syntax. + // if so we want to search for whatever under the cursor, the symbol is pointing to the alias (name) + // so check for the propertyName. if (isImportOrExportSpecifierName(location)) { return location.getText(); } @@ -32303,10 +37881,19 @@ var ts; return stripQuotes(name); } function getInternedName(symbol, location, declarations) { + // If this is an export or import specifier it could have been renamed using the as syntax. + // if so we want to search for whatever under the cursor, the symbol is pointing to the alias (name) + // so check for the propertyName. if (isImportOrExportSpecifierName(location)) { return location.getText(); } - var functionExpression = ts.forEach(declarations, function (d) { return d.kind === 162 ? d : undefined; }); + // Special case for function expressions, whose names are solely local to their bodies. + var functionExpression = ts.forEach(declarations, function (d) { return d.kind === 162 /* FunctionExpression */ ? d : undefined; }); + // When a name gets interned into a SourceFile's 'identifiers' Map, + // its name is escaped and stored in the same way its symbol name/identifier + // name should be stored. Function expressions, however, are a special case, + // because despite sometimes having a name, the binder unconditionally binds them + // to a symbol with the name "__function". var name = functionExpression && functionExpression.name ? functionExpression.name.text : symbol.name; @@ -32314,23 +37901,28 @@ var ts; } function stripQuotes(name) { var length = name.length; - if (length >= 2 && name.charCodeAt(0) === 34 && name.charCodeAt(length - 1) === 34) { + if (length >= 2 && name.charCodeAt(0) === 34 /* doubleQuote */ && name.charCodeAt(length - 1) === 34 /* doubleQuote */) { return name.substring(1, length - 1); } ; return name; } function getSymbolScope(symbol) { - if (symbol.flags & (4 | 8192)) { - var privateDeclaration = ts.forEach(symbol.getDeclarations(), function (d) { return (d.flags & 32) ? d : undefined; }); + // If this is private property or method, the scope is the containing class + if (symbol.flags & (4 /* Property */ | 8192 /* Method */)) { + var privateDeclaration = ts.forEach(symbol.getDeclarations(), function (d) { return (d.flags & 32 /* Private */) ? d : undefined; }); if (privateDeclaration) { - return ts.getAncestor(privateDeclaration, 201); + return ts.getAncestor(privateDeclaration, 201 /* ClassDeclaration */); } } - if (symbol.flags & 8388608) { + // If the symbol is an import we would like to find it if we are looking for what it imports. + // So consider it visibile outside its declaration scope. + if (symbol.flags & 8388608 /* Alias */) { return undefined; } - if (symbol.parent || (symbol.flags & 268435456)) { + // if this symbol is visible from its parent container, e.g. exported, then bail out + // if symbol correspond to the union property - bail out + if (symbol.parent || (symbol.flags & 268435456 /* UnionProperty */)) { return undefined; } var scope = undefined; @@ -32343,11 +37935,15 @@ var ts; return undefined; } if (scope && scope !== container) { + // Different declarations have different containers, bail out return undefined; } - if (container.kind === 227 && !ts.isExternalModule(container)) { + if (container.kind === 227 /* SourceFile */ && !ts.isExternalModule(container)) { + // This is a global variable and not an external module, any declaration defined + // within this scope is visible outside the file return undefined; } + // The search scope is the container node scope = container; } } @@ -32355,6 +37951,9 @@ var ts; } function getPossibleSymbolReferencePositions(sourceFile, symbolName, start, end) { var positions = []; + /// TODO: Cache symbol existence for files to save text search + // Also, need to make this work for unicode escapes. + // Be resilient in the face of a symbol with no name or zero length name if (!symbolName || !symbolName.length) { return positions; } @@ -32364,11 +37963,15 @@ var ts; var position = text.indexOf(symbolName, start); while (position >= 0) { cancellationToken.throwIfCancellationRequested(); + // If we are past the end, stop looking if (position > end) break; + // We found a match. Make sure it's not part of a larger word (i.e. the char + // before and after it have to be a non-identifier char). var endPosition = position + symbolNameLength; - if ((position === 0 || !ts.isIdentifierPart(text.charCodeAt(position - 1), 2)) && - (endPosition === sourceLength || !ts.isIdentifierPart(text.charCodeAt(endPosition), 2))) { + if ((position === 0 || !ts.isIdentifierPart(text.charCodeAt(position - 1), 2 /* Latest */)) && + (endPosition === sourceLength || !ts.isIdentifierPart(text.charCodeAt(endPosition), 2 /* Latest */))) { + // Found a real match. Keep searching. positions.push(position); } position = text.indexOf(symbolName, position + symbolNameLength + 1); @@ -32386,6 +37989,7 @@ var ts; if (!node || node.getWidth() !== labelName.length) { return; } + // Only pick labels that are either the target label, or have a target that is the target label if (node === targetLabel || (isJumpStatementTarget(node) && getTargetLabel(node, labelName) === targetLabel)) { references.push(getReferenceEntryFromNode(node)); @@ -32403,16 +38007,18 @@ var ts; } function isValidReferencePosition(node, searchSymbolName) { if (node) { + // Compare the length so we filter out strict superstrings of the symbol we are looking for switch (node.kind) { - case 65: + case 65 /* Identifier */: return node.getWidth() === searchSymbolName.length; - case 8: + case 8 /* StringLiteral */: if (isLiteralNameOfPropertyDeclarationOrIndexAccess(node) || isNameOfExternalModuleImportOrDeclaration(node)) { + // For string literals we have two additional chars for the quotes return node.getWidth() === searchSymbolName.length + 2; } break; - case 7: + case 7 /* NumericLiteral */: if (isLiteralNameOfPropertyDeclarationOrIndexAccess(node)) { return node.getWidth() === searchSymbolName.length; } @@ -32421,18 +38027,30 @@ var ts; } return false; } + /** Search within node "container" for references for a search value, where the search value is defined as a + * tuple of(searchSymbol, searchText, searchLocation, and searchMeaning). + * searchLocation: a node where the search value + */ function getReferencesInNode(container, searchSymbol, searchText, searchLocation, searchMeaning, findInStrings, findInComments, result, symbolToIndex) { var sourceFile = container.getSourceFile(); var tripleSlashDirectivePrefixRegex = /^\/\/\/\s*= 0) { + else if (!(referenceSymbol.flags & 67108864 /* Transient */) && searchSymbols.indexOf(shorthandValueSymbol) >= 0) { var referencedSymbol = getReferencedSymbol(shorthandValueSymbol); referencedSymbol.references.push(getReferenceEntryFromNode(referenceSymbolDeclaration.name)); } @@ -32479,12 +38097,15 @@ var ts; } function isInString(position) { var token = ts.getTokenAtPosition(sourceFile, position); - return token && token.kind === 8 && position > token.getStart(); + return token && token.kind === 8 /* StringLiteral */ && position > token.getStart(); } function isInComment(position) { var token = ts.getTokenAtPosition(sourceFile, position); if (token && position < token.getStart()) { + // First, we have to see if this position actually landed in a comment. var commentRanges = ts.getLeadingCommentRanges(sourceFile.text, token.pos); + // Then we want to make sure that it wasn't in a "///<" directive comment + // We don't want to unintentionally update a file name. return ts.forEach(commentRanges, function (c) { if (c.pos < position && position < c.end) { var commentText = sourceFile.text.substring(c.pos, c.end); @@ -32502,17 +38123,18 @@ var ts; if (!searchSpaceNode) { return undefined; } - var staticFlag = 128; + // Whether 'super' occurs in a static context within a class. + var staticFlag = 128 /* Static */; switch (searchSpaceNode.kind) { - case 132: - case 131: - case 134: - case 133: - case 135: - case 136: - case 137: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: staticFlag &= searchSpaceNode.flags; - searchSpaceNode = searchSpaceNode.parent; + searchSpaceNode = searchSpaceNode.parent; // re-assign to be the owning class break; default: return undefined; @@ -32523,11 +38145,14 @@ var ts; ts.forEach(possiblePositions, function (position) { cancellationToken.throwIfCancellationRequested(); var node = ts.getTouchingWord(sourceFile, position); - if (!node || node.kind !== 91) { + if (!node || node.kind !== 91 /* SuperKeyword */) { return; } var container = ts.getSuperContainer(node, false); - if (container && (128 & container.flags) === staticFlag && container.parent.symbol === searchSpaceNode.symbol) { + // If we have a 'super' container, we must have an enclosing class. + // Now make sure the owning class is the same as the search-space + // and has the same static qualifier as the original 'super's owner. + if (container && (128 /* Static */ & container.flags) === staticFlag && container.parent.symbol === searchSpaceNode.symbol) { references.push(getReferenceEntryFromNode(node)); } }); @@ -32536,34 +38161,39 @@ var ts; } function getReferencesForThisKeyword(thisOrSuperKeyword, sourceFiles) { var searchSpaceNode = ts.getThisContainer(thisOrSuperKeyword, false); - var staticFlag = 128; + // Whether 'this' occurs in a static context within a class. + var staticFlag = 128 /* Static */; switch (searchSpaceNode.kind) { - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: if (ts.isObjectLiteralMethod(searchSpaceNode)) { break; } - case 132: - case 131: - case 135: - case 136: - case 137: + // fall through + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: staticFlag &= searchSpaceNode.flags; - searchSpaceNode = searchSpaceNode.parent; + searchSpaceNode = searchSpaceNode.parent; // re-assign to be the owning class break; - case 227: + case 227 /* SourceFile */: if (ts.isExternalModule(searchSpaceNode)) { return undefined; } - case 200: - case 162: + // Fall through + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: break; + // Computed properties in classes are not handled here because references to this are illegal, + // so there is no point finding references to them. default: return undefined; } var references = []; var possiblePositions; - if (searchSpaceNode.kind === 227) { + if (searchSpaceNode.kind === 227 /* SourceFile */) { ts.forEach(sourceFiles, function (sourceFile) { possiblePositions = getPossibleSymbolReferencePositions(sourceFile, "this", sourceFile.getStart(), sourceFile.getEnd()); getThisReferencesInFile(sourceFile, sourceFile, possiblePositions, references); @@ -32589,30 +38219,32 @@ var ts; ts.forEach(possiblePositions, function (position) { cancellationToken.throwIfCancellationRequested(); var node = ts.getTouchingWord(sourceFile, position); - if (!node || node.kind !== 93) { + if (!node || node.kind !== 93 /* ThisKeyword */) { return; } var container = ts.getThisContainer(node, false); switch (searchSpaceNode.kind) { - case 162: - case 200: + case 162 /* FunctionExpression */: + case 200 /* FunctionDeclaration */: if (searchSpaceNode.symbol === container.symbol) { result.push(getReferenceEntryFromNode(node)); } break; - case 134: - case 133: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: if (ts.isObjectLiteralMethod(searchSpaceNode) && searchSpaceNode.symbol === container.symbol) { result.push(getReferenceEntryFromNode(node)); } break; - case 201: - if (container.parent && searchSpaceNode.symbol === container.parent.symbol && (container.flags & 128) === staticFlag) { + case 201 /* ClassDeclaration */: + // Make sure the container belongs to the same class + // and has the appropriate static modifier from the original container. + if (container.parent && searchSpaceNode.symbol === container.parent.symbol && (container.flags & 128 /* Static */) === staticFlag) { result.push(getReferenceEntryFromNode(node)); } break; - case 227: - if (container.kind === 227 && !ts.isExternalModule(container)) { + case 227 /* SourceFile */: + if (container.kind === 227 /* SourceFile */ && !ts.isExternalModule(container)) { result.push(getReferenceEntryFromNode(node)); } break; @@ -32621,37 +38253,56 @@ var ts; } } function populateSearchSymbolSet(symbol, location) { + // The search set contains at least the current symbol var result = [symbol]; + // If the symbol is an alias, add what it alaises to the list if (isImportOrExportSpecifierImportSymbol(symbol)) { result.push(typeInfoResolver.getAliasedSymbol(symbol)); } + // If the location is in a context sensitive location (i.e. in an object literal) try + // to get a contextual type for it, and add the property symbol from the contextual + // type to the search set if (isNameOfPropertyAssignment(location)) { ts.forEach(getPropertySymbolsFromContextualType(location), function (contextualSymbol) { result.push.apply(result, typeInfoResolver.getRootSymbols(contextualSymbol)); }); + /* Because in short-hand property assignment, location has two meaning : property name and as value of the property + * When we do findAllReference at the position of the short-hand property assignment, we would want to have references to position of + * property name and variable declaration of the identifier. + * Like in below example, when querying for all references for an identifier 'name', of the property assignment, the language service + * should show both 'name' in 'obj' and 'name' in variable declaration + * let name = "Foo"; + * let obj = { name }; + * In order to do that, we will populate the search set with the value symbol of the identifier as a value of the property assignment + * so that when matching with potential reference symbol, both symbols from property declaration and variable declaration + * will be included correctly. + */ var shorthandValueSymbol = typeInfoResolver.getShorthandAssignmentValueSymbol(location.parent); if (shorthandValueSymbol) { result.push(shorthandValueSymbol); } } + // If this is a union property, add all the symbols from all its source symbols in all unioned types. + // If the symbol is an instantiation from a another symbol (e.g. widened symbol) , add the root the list ts.forEach(typeInfoResolver.getRootSymbols(symbol), function (rootSymbol) { if (rootSymbol !== symbol) { result.push(rootSymbol); } - if (rootSymbol.parent && rootSymbol.parent.flags & (32 | 64)) { + // Add symbol of properties/methods of the same name in base classes and implemented interfaces definitions + if (rootSymbol.parent && rootSymbol.parent.flags & (32 /* Class */ | 64 /* Interface */)) { getPropertySymbolsFromBaseTypes(rootSymbol.parent, rootSymbol.getName(), result); } }); return result; } function getPropertySymbolsFromBaseTypes(symbol, propertyName, result) { - if (symbol && symbol.flags & (32 | 64)) { + if (symbol && symbol.flags & (32 /* Class */ | 64 /* Interface */)) { ts.forEach(symbol.getDeclarations(), function (declaration) { - if (declaration.kind === 201) { + if (declaration.kind === 201 /* ClassDeclaration */) { getPropertySymbolFromTypeReference(ts.getClassExtendsHeritageClauseElement(declaration)); ts.forEach(ts.getClassImplementsHeritageClauseElements(declaration), getPropertySymbolFromTypeReference); } - else if (declaration.kind === 202) { + else if (declaration.kind === 202 /* InterfaceDeclaration */) { ts.forEach(ts.getInterfaceBaseTypeNodes(declaration), getPropertySymbolFromTypeReference); } }); @@ -32665,6 +38316,7 @@ var ts; if (propertySymbol) { result.push(propertySymbol); } + // Visit the typeReference as well to see if it directly or indirectly use that property getPropertySymbolsFromBaseTypes(type.symbol, propertyName, result); } } @@ -32674,22 +38326,32 @@ var ts; if (searchSymbols.indexOf(referenceSymbol) >= 0) { return referenceSymbol; } + // If the reference symbol is an alias, check if what it is aliasing is one of the search + // symbols. if (isImportOrExportSpecifierImportSymbol(referenceSymbol)) { var aliasedSymbol = typeInfoResolver.getAliasedSymbol(referenceSymbol); if (searchSymbols.indexOf(aliasedSymbol) >= 0) { return aliasedSymbol; } } + // If the reference location is in an object literal, try to get the contextual type for the + // object literal, lookup the property symbol in the contextual type, and use this symbol to + // compare to our searchSymbol if (isNameOfPropertyAssignment(referenceLocation)) { return ts.forEach(getPropertySymbolsFromContextualType(referenceLocation), function (contextualSymbol) { return ts.forEach(typeInfoResolver.getRootSymbols(contextualSymbol), function (s) { return searchSymbols.indexOf(s) >= 0 ? s : undefined; }); }); } + // Unwrap symbols to get to the root (e.g. transient symbols as a result of widening) + // Or a union property, use its underlying unioned symbols return ts.forEach(typeInfoResolver.getRootSymbols(referenceSymbol), function (rootSymbol) { + // if it is in the list, then we are done if (searchSymbols.indexOf(rootSymbol) >= 0) { return rootSymbol; } - if (rootSymbol.parent && rootSymbol.parent.flags & (32 | 64)) { + // Finally, try all properties with the same name in any type the containing type extended or implemented, and + // see if any is in the list + if (rootSymbol.parent && rootSymbol.parent.flags & (32 /* Class */ | 64 /* Interface */)) { var result_2 = []; getPropertySymbolsFromBaseTypes(rootSymbol.parent, rootSymbol.getName(), result_2); return ts.forEach(result_2, function (s) { return searchSymbols.indexOf(s) >= 0 ? s : undefined; }); @@ -32701,17 +38363,19 @@ var ts; if (isNameOfPropertyAssignment(node)) { var objectLiteral = node.parent.parent; var contextualType = typeInfoResolver.getContextualType(objectLiteral); - var name_20 = node.text; + var name_22 = node.text; if (contextualType) { - if (contextualType.flags & 16384) { - var unionProperty = contextualType.getProperty(name_20); + if (contextualType.flags & 16384 /* Union */) { + // This is a union type, first see if the property we are looking for is a union property (i.e. exists in all types) + // if not, search the constituent types for the property + var unionProperty = contextualType.getProperty(name_22); if (unionProperty) { return [unionProperty]; } else { var result_3 = []; ts.forEach(contextualType.types, function (t) { - var symbol = t.getProperty(name_20); + var symbol = t.getProperty(name_22); if (symbol) { result_3.push(symbol); } @@ -32720,7 +38384,7 @@ var ts; } } else { - var symbol_1 = contextualType.getProperty(name_20); + var symbol_1 = contextualType.getProperty(name_22); if (symbol_1) { return [symbol_1]; } @@ -32729,10 +38393,22 @@ var ts; } return undefined; } + /** Given an initial searchMeaning, extracted from a location, widen the search scope based on the declarations + * of the corresponding symbol. e.g. if we are searching for "Foo" in value position, but "Foo" references a class + * then we need to widen the search to include type positions as well. + * On the contrary, if we are searching for "Bar" in type position and we trace bar to an interface, and an uninstantiated + * module, we want to keep the search limited to only types, as the two declarations (interface and uninstantiated module) + * do not intersect in any of the three spaces. + */ function getIntersectingMeaningFromDeclarations(meaning, declarations) { if (declarations) { var lastIterationMeaning; do { + // The result is order-sensitive, for instance if initialMeaning === Namespace, and declarations = [class, instantiated module] + // we need to consider both as they initialMeaning intersects with the module in the namespace space, and the module + // intersects with the class in the value space. + // To achieve that we will keep iterating until the result stabilizes. + // Remember the last meaning lastIterationMeaning = meaning; for (var _i = 0; _i < declarations.length; _i++) { var declaration = declarations[_i]; @@ -32749,7 +38425,7 @@ var ts; function getReferenceEntryFromNode(node) { var start = node.getStart(); var end = node.getEnd(); - if (node.kind === 8) { + if (node.kind === 8 /* StringLiteral */) { start += 1; end -= 1; } @@ -32759,22 +38435,24 @@ var ts; isWriteAccess: isWriteAccess(node) }; } + /** A node is considered a writeAccess iff it is a name of a declaration or a target of an assignment */ function isWriteAccess(node) { - if (node.kind === 65 && ts.isDeclarationName(node)) { + if (node.kind === 65 /* Identifier */ && ts.isDeclarationName(node)) { return true; } var parent = node.parent; if (parent) { - if (parent.kind === 168 || parent.kind === 167) { + if (parent.kind === 168 /* PostfixUnaryExpression */ || parent.kind === 167 /* PrefixUnaryExpression */) { return true; } - else if (parent.kind === 169 && parent.left === node) { + else if (parent.kind === 169 /* BinaryExpression */ && parent.left === node) { var operator = parent.operatorToken.kind; - return 53 <= operator && operator <= 64; + return 53 /* FirstAssignment */ <= operator && operator <= 64 /* LastAssignment */; } } return false; } + /// NavigateTo function getNavigateToItems(searchValue, maxResultCount) { synchronizeHostData(); return ts.NavigateTo.getNavigateToItems(program, cancellationToken, searchValue, maxResultCount); @@ -32801,60 +38479,61 @@ var ts; } function getMeaningFromDeclaration(node) { switch (node.kind) { - case 129: - case 198: - case 152: - case 132: - case 131: - case 224: - case 225: - case 226: - case 134: - case 133: - case 135: - case 136: - case 137: - case 200: - case 162: - case 163: - case 223: - return 1; - case 128: - case 202: - case 203: - case 145: - return 2; - case 201: - case 204: - return 1 | 2; - case 205: - if (node.name.kind === 8) { - return 4 | 1; + case 129 /* Parameter */: + case 198 /* VariableDeclaration */: + case 152 /* BindingElement */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: + case 224 /* PropertyAssignment */: + case 225 /* ShorthandPropertyAssignment */: + case 226 /* EnumMember */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 135 /* Constructor */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 200 /* FunctionDeclaration */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: + case 223 /* CatchClause */: + return 1 /* Value */; + case 128 /* TypeParameter */: + case 202 /* InterfaceDeclaration */: + case 203 /* TypeAliasDeclaration */: + case 145 /* TypeLiteral */: + return 2 /* Type */; + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + return 1 /* Value */ | 2 /* Type */; + case 205 /* ModuleDeclaration */: + if (node.name.kind === 8 /* StringLiteral */) { + return 4 /* Namespace */ | 1 /* Value */; } - else if (ts.getModuleInstanceState(node) === 1) { - return 4 | 1; + else if (ts.getModuleInstanceState(node) === 1 /* Instantiated */) { + return 4 /* Namespace */ | 1 /* Value */; } else { - return 4; + return 4 /* Namespace */; } - case 212: - case 213: - case 208: - case 209: - case 214: - case 215: - return 1 | 2 | 4; - case 227: - return 4 | 1; + case 212 /* NamedImports */: + case 213 /* ImportSpecifier */: + case 208 /* ImportEqualsDeclaration */: + case 209 /* ImportDeclaration */: + case 214 /* ExportAssignment */: + case 215 /* ExportDeclaration */: + return 1 /* Value */ | 2 /* Type */ | 4 /* Namespace */; + // An external module can be a Value + case 227 /* SourceFile */: + return 4 /* Namespace */ | 1 /* Value */; } - return 1 | 2 | 4; + return 1 /* Value */ | 2 /* Type */ | 4 /* Namespace */; ts.Debug.fail("Unknown declaration type"); } function isTypeReference(node) { if (ts.isRightSideOfQualifiedNameOrPropertyAccess(node)) { node = node.parent; } - return node.parent.kind === 141 || node.parent.kind === 177; + return node.parent.kind === 141 /* TypeReference */ || node.parent.kind === 177 /* HeritageClauseElement */; } function isNamespaceReference(node) { return isQualifiedNameNamespaceReference(node) || isPropertyAccessNamespaceReference(node); @@ -32862,48 +38541,51 @@ var ts; function isPropertyAccessNamespaceReference(node) { var root = node; var isLastClause = true; - if (root.parent.kind === 155) { - while (root.parent && root.parent.kind === 155) { + if (root.parent.kind === 155 /* PropertyAccessExpression */) { + while (root.parent && root.parent.kind === 155 /* PropertyAccessExpression */) { root = root.parent; } isLastClause = root.name === node; } - if (!isLastClause && root.parent.kind === 177 && root.parent.parent.kind === 222) { + if (!isLastClause && root.parent.kind === 177 /* HeritageClauseElement */ && root.parent.parent.kind === 222 /* HeritageClause */) { var decl = root.parent.parent.parent; - return (decl.kind === 201 && root.parent.parent.token === 103) || - (decl.kind === 202 && root.parent.parent.token === 79); + return (decl.kind === 201 /* ClassDeclaration */ && root.parent.parent.token === 103 /* ImplementsKeyword */) || + (decl.kind === 202 /* InterfaceDeclaration */ && root.parent.parent.token === 79 /* ExtendsKeyword */); } return false; } function isQualifiedNameNamespaceReference(node) { var root = node; var isLastClause = true; - if (root.parent.kind === 126) { - while (root.parent && root.parent.kind === 126) { + if (root.parent.kind === 126 /* QualifiedName */) { + while (root.parent && root.parent.kind === 126 /* QualifiedName */) { root = root.parent; } isLastClause = root.right === node; } - return root.parent.kind === 141 && !isLastClause; + return root.parent.kind === 141 /* TypeReference */ && !isLastClause; } function isInRightSideOfImport(node) { - while (node.parent.kind === 126) { + while (node.parent.kind === 126 /* QualifiedName */) { node = node.parent; } return ts.isInternalModuleImportEqualsDeclaration(node.parent) && node.parent.moduleReference === node; } function getMeaningFromRightHandSideOfImportEquals(node) { - ts.Debug.assert(node.kind === 65); - if (node.parent.kind === 126 && + ts.Debug.assert(node.kind === 65 /* Identifier */); + // import a = |b|; // Namespace + // import a = |b.c|; // Value, type, namespace + // import a = |b.c|.d; // Namespace + if (node.parent.kind === 126 /* QualifiedName */ && node.parent.right === node && - node.parent.parent.kind === 208) { - return 1 | 2 | 4; + node.parent.parent.kind === 208 /* ImportEqualsDeclaration */) { + return 1 /* Value */ | 2 /* Type */ | 4 /* Namespace */; } - return 4; + return 4 /* Namespace */; } function getMeaningFromLocation(node) { - if (node.parent.kind === 214) { - return 1 | 2 | 4; + if (node.parent.kind === 214 /* ExportAssignment */) { + return 1 /* Value */ | 2 /* Type */ | 4 /* Namespace */; } else if (isInRightSideOfImport(node)) { return getMeaningFromRightHandSideOfImportEquals(node); @@ -32912,64 +38594,79 @@ var ts; return getMeaningFromDeclaration(node.parent); } else if (isTypeReference(node)) { - return 2; + return 2 /* Type */; } else if (isNamespaceReference(node)) { - return 4; + return 4 /* Namespace */; } else { - return 1; + return 1 /* Value */; } } + // Signature help + /** + * This is a semantic operation. + */ function getSignatureHelpItems(fileName, position) { synchronizeHostData(); var sourceFile = getValidSourceFile(fileName); return ts.SignatureHelp.getSignatureHelpItems(sourceFile, position, typeInfoResolver, cancellationToken); } + /// Syntactic features function getSourceFile(fileName) { return syntaxTreeCache.getCurrentSourceFile(fileName); } function getNameOrDottedNameSpan(fileName, startPos, endPos) { var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); + // Get node at the location var node = ts.getTouchingPropertyName(sourceFile, startPos); if (!node) { return; } switch (node.kind) { - case 155: - case 126: - case 8: - case 80: - case 95: - case 89: - case 91: - case 93: - case 65: + case 155 /* PropertyAccessExpression */: + case 126 /* QualifiedName */: + case 8 /* StringLiteral */: + case 80 /* FalseKeyword */: + case 95 /* TrueKeyword */: + case 89 /* NullKeyword */: + case 91 /* SuperKeyword */: + case 93 /* ThisKeyword */: + case 65 /* Identifier */: break; + // Cant create the text span default: return; } var nodeForStartPos = node; while (true) { if (isRightSideOfPropertyAccess(nodeForStartPos) || isRightSideOfQualifiedName(nodeForStartPos)) { + // If on the span is in right side of the the property or qualified name, return the span from the qualified name pos to end of this node nodeForStartPos = nodeForStartPos.parent; } else if (isNameOfModuleDeclaration(nodeForStartPos)) { - if (nodeForStartPos.parent.parent.kind === 205 && + // If this is name of a module declarations, check if this is right side of dotted module name + // If parent of the module declaration which is parent of this node is module declaration and its body is the module declaration that this node is name of + // Then this name is name from dotted module + if (nodeForStartPos.parent.parent.kind === 205 /* ModuleDeclaration */ && nodeForStartPos.parent.parent.body === nodeForStartPos.parent) { + // Use parent module declarations name for start pos nodeForStartPos = nodeForStartPos.parent.parent.name; } else { + // We have to use this name for start pos break; } } else { + // Is not a member expression so we have found the node for start pos break; } } return ts.createTextSpanFromBounds(nodeForStartPos.getStart(), node.getEnd()); } function getBreakpointStatementAtPosition(fileName, position) { + // doesn't use compiler - no need to synchronize with host var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); return ts.BreakpointResolver.spanInSourceFileAtLocation(sourceFile, position); } @@ -32985,39 +38682,46 @@ var ts; return result; function classifySymbol(symbol, meaningAtPosition) { var flags = symbol.getFlags(); - if (flags & 32) { + if (flags & 32 /* Class */) { return ClassificationTypeNames.className; } - else if (flags & 384) { + else if (flags & 384 /* Enum */) { return ClassificationTypeNames.enumName; } - else if (flags & 524288) { + else if (flags & 524288 /* TypeAlias */) { return ClassificationTypeNames.typeAlias; } - else if (meaningAtPosition & 2) { - if (flags & 64) { + else if (meaningAtPosition & 2 /* Type */) { + if (flags & 64 /* Interface */) { return ClassificationTypeNames.interfaceName; } - else if (flags & 262144) { + else if (flags & 262144 /* TypeParameter */) { return ClassificationTypeNames.typeParameterName; } } - else if (flags & 1536) { - if (meaningAtPosition & 4 || - (meaningAtPosition & 1 && hasValueSideModule(symbol))) { + else if (flags & 1536 /* Module */) { + // Only classify a module as such if + // - It appears in a namespace context. + // - There exists a module declaration which actually impacts the value side. + if (meaningAtPosition & 4 /* Namespace */ || + (meaningAtPosition & 1 /* Value */ && hasValueSideModule(symbol))) { return ClassificationTypeNames.moduleName; } } return undefined; + /** + * Returns true if there exists a module that introduces entities on the value side. + */ function hasValueSideModule(symbol) { return ts.forEach(symbol.declarations, function (declaration) { - return declaration.kind === 205 && ts.getModuleInstanceState(declaration) == 1; + return declaration.kind === 205 /* ModuleDeclaration */ && ts.getModuleInstanceState(declaration) == 1 /* Instantiated */; }); } } function processNode(node) { + // Only walk into nodes that intersect the requested span. if (node && ts.textSpanIntersectsWith(span, node.getStart(), node.getWidth())) { - if (node.kind === 65 && node.getWidth() > 0) { + if (node.kind === 65 /* Identifier */ && node.getWidth() > 0) { var symbol = typeInfoResolver.getSymbolAtLocation(node); if (symbol) { var type = classifySymbol(symbol, getMeaningFromLocation(node)); @@ -33034,9 +38738,11 @@ var ts; } } function getSyntacticClassifications(fileName, span) { + // doesn't use compiler - no need to synchronize with host var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); - var triviaScanner = ts.createScanner(2, false, sourceFile.text); - var mergeConflictScanner = ts.createScanner(2, false, sourceFile.text); + // Make a scanner we can get trivia from. + var triviaScanner = ts.createScanner(2 /* Latest */, false, sourceFile.text); + var mergeConflictScanner = ts.createScanner(2 /* Latest */, false, sourceFile.text); var result = []; processElement(sourceFile); return result; @@ -33045,6 +38751,7 @@ var ts; if (tokenStart === token.pos) { return; } + // token has trivia. Classify them appropriately. triviaScanner.setTextPos(token.pos); while (true) { var start = triviaScanner.getTextPos(); @@ -33056,29 +38763,36 @@ var ts; return; } if (ts.isComment(kind)) { + // Simple comment. Just add as is. result.push({ textSpan: ts.createTextSpan(start, width), classificationType: ClassificationTypeNames.comment }); continue; } - if (kind === 6) { + if (kind === 6 /* ConflictMarkerTrivia */) { var text = sourceFile.text; var ch = text.charCodeAt(start); - if (ch === 60 || ch === 62) { + // for the <<<<<<< and >>>>>>> markers, we just add them in as comments + // in the classification stream. + if (ch === 60 /* lessThan */ || ch === 62 /* greaterThan */) { result.push({ textSpan: ts.createTextSpan(start, width), classificationType: ClassificationTypeNames.comment }); continue; } - ts.Debug.assert(ch === 61); + // for the ======== add a comment for the first line, and then lex all + // subsequent lines up until the end of the conflict marker. + ts.Debug.assert(ch === 61 /* equals */); classifyDisabledMergeCode(text, start, end); } } } } function classifyDisabledMergeCode(text, start, end) { + // Classify the line that the ======= marker is on as a comment. Then just lex + // all further tokens and add them to the result. for (var i = start; i < end; i++) { if (ts.isLineBreak(text.charCodeAt(i))) { break; @@ -33117,69 +38831,79 @@ var ts; } } } + // for accurate classification, the actual token should be passed in. however, for + // cases like 'disabled merge code' classification, we just get the token kind and + // classify based on that instead. function classifyTokenType(tokenKind, token) { if (ts.isKeyword(tokenKind)) { return ClassificationTypeNames.keyword; } - if (tokenKind === 24 || tokenKind === 25) { + // Special case < and > If they appear in a generic context they are punctuation, + // not operators. + if (tokenKind === 24 /* LessThanToken */ || tokenKind === 25 /* GreaterThanToken */) { + // If the node owning the token has a type argument list or type parameter list, then + // we can effectively assume that a '<' and '>' belong to those lists. if (token && ts.getTypeArgumentOrTypeParameterList(token.parent)) { return ClassificationTypeNames.punctuation; } } if (ts.isPunctuation(tokenKind)) { if (token) { - if (tokenKind === 53) { - if (token.parent.kind === 198 || - token.parent.kind === 132 || - token.parent.kind === 129) { + if (tokenKind === 53 /* EqualsToken */) { + // the '=' in a variable declaration is special cased here. + if (token.parent.kind === 198 /* VariableDeclaration */ || + token.parent.kind === 132 /* PropertyDeclaration */ || + token.parent.kind === 129 /* Parameter */) { return ClassificationTypeNames.operator; } } - if (token.parent.kind === 169 || - token.parent.kind === 167 || - token.parent.kind === 168 || - token.parent.kind === 170) { + if (token.parent.kind === 169 /* BinaryExpression */ || + token.parent.kind === 167 /* PrefixUnaryExpression */ || + token.parent.kind === 168 /* PostfixUnaryExpression */ || + token.parent.kind === 170 /* ConditionalExpression */) { return ClassificationTypeNames.operator; } } return ClassificationTypeNames.punctuation; } - else if (tokenKind === 7) { + else if (tokenKind === 7 /* NumericLiteral */) { return ClassificationTypeNames.numericLiteral; } - else if (tokenKind === 8) { + else if (tokenKind === 8 /* StringLiteral */) { return ClassificationTypeNames.stringLiteral; } - else if (tokenKind === 9) { + else if (tokenKind === 9 /* RegularExpressionLiteral */) { + // TODO: we should get another classification type for these literals. return ClassificationTypeNames.stringLiteral; } else if (ts.isTemplateLiteralKind(tokenKind)) { + // TODO (drosen): we should *also* get another classification type for these literals. return ClassificationTypeNames.stringLiteral; } - else if (tokenKind === 65) { + else if (tokenKind === 65 /* Identifier */) { if (token) { switch (token.parent.kind) { - case 201: + case 201 /* ClassDeclaration */: if (token.parent.name === token) { return ClassificationTypeNames.className; } return; - case 128: + case 128 /* TypeParameter */: if (token.parent.name === token) { return ClassificationTypeNames.typeParameterName; } return; - case 202: + case 202 /* InterfaceDeclaration */: if (token.parent.name === token) { return ClassificationTypeNames.interfaceName; } return; - case 204: + case 204 /* EnumDeclaration */: if (token.parent.name === token) { return ClassificationTypeNames.enumName; } return; - case 205: + case 205 /* ModuleDeclaration */: if (token.parent.name === token) { return ClassificationTypeNames.moduleName; } @@ -33190,6 +38914,7 @@ var ts; } } function processElement(element) { + // Ignore nodes that don't intersect the original span to classify. if (ts.textSpanIntersectsWith(span, element.getFullStart(), element.getFullWidth())) { var children = element.getChildren(); for (var _i = 0; _i < children.length; _i++) { @@ -33198,6 +38923,7 @@ var ts; classifyToken(child); } else { + // Recurse into our child nodes. processElement(child); } } @@ -33205,6 +38931,7 @@ var ts; } } function getOutliningSpans(fileName) { + // doesn't use compiler - no need to synchronize with host var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); return ts.OutliningElementsCollector.collectElements(sourceFile); } @@ -33214,6 +38941,7 @@ var ts; var token = ts.getTouchingToken(sourceFile, position); if (token.getStart(sourceFile) === position) { var matchKind = getMatchingTokenKind(token); + // Ensure that there is a corresponding token to match ours. if (matchKind) { var parentElement = token.parent; var childNodes = parentElement.getChildren(sourceFile); @@ -33222,6 +38950,7 @@ var ts; if (current.kind === matchKind) { var range1 = ts.createTextSpan(token.getStart(sourceFile), token.getWidth(sourceFile)); var range2 = ts.createTextSpan(current.getStart(sourceFile), current.getWidth(sourceFile)); + // We want to order the braces when we return the result. if (range1.start < range2.start) { result.push(range1, range2); } @@ -33236,14 +38965,14 @@ var ts; return result; function getMatchingTokenKind(token) { switch (token.kind) { - case 14: return 15; - case 16: return 17; - case 18: return 19; - case 24: return 25; - case 15: return 14; - case 17: return 16; - case 19: return 18; - case 25: return 24; + case 14 /* OpenBraceToken */: return 15 /* CloseBraceToken */; + case 16 /* OpenParenToken */: return 17 /* CloseParenToken */; + case 18 /* OpenBracketToken */: return 19 /* CloseBracketToken */; + case 24 /* LessThanToken */: return 25 /* GreaterThanToken */; + case 15 /* CloseBraceToken */: return 14 /* OpenBraceToken */; + case 17 /* CloseParenToken */: return 16 /* OpenParenToken */; + case 19 /* CloseBracketToken */: return 18 /* OpenBracketToken */; + case 25 /* GreaterThanToken */: return 24 /* LessThanToken */; } return undefined; } @@ -33279,6 +39008,12 @@ var ts; return []; } function getTodoComments(fileName, descriptors) { + // Note: while getting todo comments seems like a syntactic operation, we actually + // treat it as a semantic operation here. This is because we expect our host to call + // this on every single file. If we treat this syntactically, then that will cause + // us to populate and throw away the tree in our syntax tree cache for each file. By + // treating this as a semantic operation, we can access any tree without throwing + // anything away. synchronizeHostData(); var sourceFile = getValidSourceFile(fileName); cancellationToken.throwIfCancellationRequested(); @@ -33289,10 +39024,29 @@ var ts; var matchArray; while (matchArray = regExp.exec(fileContents)) { cancellationToken.throwIfCancellationRequested(); + // If we got a match, here is what the match array will look like. Say the source text is: + // + // " // hack 1" + // + // The result array with the regexp: will be: + // + // ["// hack 1", "// ", "hack 1", undefined, "hack"] + // + // Here are the relevant capture groups: + // 0) The full match for the entire regexp. + // 1) The preamble to the message portion. + // 2) The message portion. + // 3...N) The descriptor that was matched - by index. 'undefined' for each + // descriptor that didn't match. an actual value if it did match. + // + // i.e. 'undefined' in position 3 above means TODO(jason) didn't match. + // "hack" in position 4 means HACK did match. var firstDescriptorCaptureIndex = 3; ts.Debug.assert(matchArray.length === descriptors.length + firstDescriptorCaptureIndex); var preamble = matchArray[1]; var matchPosition = matchArray.index + preamble.length; + // OK, we have found a match in the file. This is only an acceptable match if + // it is contained within a comment. var token = ts.getTokenAtPosition(sourceFile, matchPosition); if (!isInsideComment(sourceFile, token, matchPosition)) { continue; @@ -33304,6 +39058,8 @@ var ts; } } ts.Debug.assert(descriptor !== undefined); + // We don't want to match something like 'TODOBY', so we make sure a non + // letter/digit follows the match. if (isLetterOrDigit(fileContents.charCodeAt(matchPosition + descriptor.text.length))) { continue; } @@ -33322,32 +39078,71 @@ var ts; function getTodoCommentsRegExp() { // NOTE: ?: means 'non-capture group'. It allows us to have groups without having to // filter them out later in the final result array. + // TODO comments can appear in one of the following forms: + // + // 1) // TODO or /////////// TODO + // + // 2) /* TODO or /********** TODO + // + // 3) /* + // * TODO + // */ + // + // The following three regexps are used to match the start of the text up to the TODO + // comment portion. var singleLineCommentStart = /(?:\/\/+\s*)/.source; var multiLineCommentStart = /(?:\/\*+\s*)/.source; var anyNumberOfSpacesAndAsterixesAtStartOfLine = /(?:^(?:\s|\*)*)/.source; + // Match any of the above three TODO comment start regexps. + // Note that the outermost group *is* a capture group. We want to capture the preamble + // so that we can determine the starting position of the TODO comment match. var preamble = "(" + anyNumberOfSpacesAndAsterixesAtStartOfLine + "|" + singleLineCommentStart + "|" + multiLineCommentStart + ")"; + // Takes the descriptors and forms a regexp that matches them as if they were literals. + // For example, if the descriptors are "TODO(jason)" and "HACK", then this will be: + // + // (?:(TODO\(jason\))|(HACK)) + // + // Note that the outermost group is *not* a capture group, but the innermost groups + // *are* capture groups. By capturing the inner literals we can determine after + // matching which descriptor we are dealing with. var literals = "(?:" + ts.map(descriptors, function (d) { return "(" + escapeRegExp(d.text) + ")"; }).join("|") + ")"; + // After matching a descriptor literal, the following regexp matches the rest of the + // text up to the end of the line (or */). var endOfLineOrEndOfComment = /(?:$|\*\/)/.source; var messageRemainder = /(?:.*?)/.source; + // This is the portion of the match we'll return as part of the TODO comment result. We + // match the literal portion up to the end of the line or end of comment. var messagePortion = "(" + literals + messageRemainder + ")"; var regExpString = preamble + messagePortion + endOfLineOrEndOfComment; + // The final regexp will look like this: + // /((?:\/\/+\s*)|(?:\/\*+\s*)|(?:^(?:\s|\*)*))((?:(TODO\(jason\))|(HACK))(?:.*?))(?:$|\*\/)/gim + // The flags of the regexp are important here. + // 'g' is so that we are doing a global search and can find matches several times + // in the input. + // + // 'i' is for case insensitivity (We do this to match C# TODO comment code). + // + // 'm' is so we can find matches in a multi-line input. return new RegExp(regExpString, "gim"); } function isLetterOrDigit(char) { - return (char >= 97 && char <= 122) || - (char >= 65 && char <= 90) || - (char >= 48 && char <= 57); + return (char >= 97 /* a */ && char <= 122 /* z */) || + (char >= 65 /* A */ && char <= 90 /* Z */) || + (char >= 48 /* _0 */ && char <= 57 /* _9 */); } } function getRenameInfo(fileName, position) { synchronizeHostData(); var sourceFile = getValidSourceFile(fileName); var node = ts.getTouchingWord(sourceFile, position); - if (node && node.kind === 65) { + // Can only rename an identifier. + if (node && node.kind === 65 /* Identifier */) { var symbol = typeInfoResolver.getSymbolAtLocation(node); + // Only allow a symbol to be renamed if it actually has at least one declaration. if (symbol) { var declarations = symbol.getDeclarations(); if (declarations && declarations.length > 0) { + // Disallow rename for elements that are defined in the standard TypeScript library. var defaultLibFileName = host.getDefaultLibFileName(host.getCompilationSettings()); if (defaultLibFileName) { for (var _i = 0; _i < declarations.length; _i++) { @@ -33402,6 +39197,7 @@ var ts; getReferencesAtPosition: getReferencesAtPosition, findReferences: findReferences, getOccurrencesAtPosition: getOccurrencesAtPosition, + getDocumentHighlights: getDocumentHighlights, getNameOrDottedNameSpan: getNameOrDottedNameSpan, getBreakpointStatementAtPosition: getBreakpointStatementAtPosition, getNavigateToItems: getNavigateToItems, @@ -33421,6 +39217,7 @@ var ts; }; } ts.createLanguageService = createLanguageService; + /* @internal */ function getNameTable(sourceFile) { if (!sourceFile.nameTable) { initializeNameTable(sourceFile); @@ -33434,13 +39231,17 @@ var ts; sourceFile.nameTable = nameTable; function walk(node) { switch (node.kind) { - case 65: + case 65 /* Identifier */: nameTable[node.text] = node.text; break; - case 8: - case 7: + case 8 /* StringLiteral */: + case 7 /* NumericLiteral */: + // We want to store any numbers/strings if they were a name that could be + // related to a declaration. So, if we have 'import x = require("something")' + // then we want 'something' to be in the name table. Similarly, if we have + // "a['propname']" then we want to store "propname" in the name table. if (ts.isDeclarationName(node) || - node.parent.kind === 219 || + node.parent.kind === 219 /* ExternalModuleReference */ || isArgumentOfElementAccessExpression(node)) { nameTable[node.text] = node.text; } @@ -33453,126 +39254,202 @@ var ts; function isArgumentOfElementAccessExpression(node) { return node && node.parent && - node.parent.kind === 156 && + node.parent.kind === 156 /* ElementAccessExpression */ && node.parent.argumentExpression === node; } + /// Classifier function createClassifier() { - var scanner = ts.createScanner(2, false); + var scanner = ts.createScanner(2 /* Latest */, false); + /// We do not have a full parser support to know when we should parse a regex or not + /// If we consider every slash token to be a regex, we could be missing cases like "1/2/3", where + /// we have a series of divide operator. this list allows us to be more accurate by ruling out + /// locations where a regexp cannot exist. var noRegexTable = []; - noRegexTable[65] = true; - noRegexTable[8] = true; - noRegexTable[7] = true; - noRegexTable[9] = true; - noRegexTable[93] = true; - noRegexTable[38] = true; - noRegexTable[39] = true; - noRegexTable[17] = true; - noRegexTable[19] = true; - noRegexTable[15] = true; - noRegexTable[95] = true; - noRegexTable[80] = true; + noRegexTable[65 /* Identifier */] = true; + noRegexTable[8 /* StringLiteral */] = true; + noRegexTable[7 /* NumericLiteral */] = true; + noRegexTable[9 /* RegularExpressionLiteral */] = true; + noRegexTable[93 /* ThisKeyword */] = true; + noRegexTable[38 /* PlusPlusToken */] = true; + noRegexTable[39 /* MinusMinusToken */] = true; + noRegexTable[17 /* CloseParenToken */] = true; + noRegexTable[19 /* CloseBracketToken */] = true; + noRegexTable[15 /* CloseBraceToken */] = true; + noRegexTable[95 /* TrueKeyword */] = true; + noRegexTable[80 /* FalseKeyword */] = true; + // Just a stack of TemplateHeads and OpenCurlyBraces, used to perform rudimentary (inexact) + // classification on template strings. Because of the context free nature of templates, + // the only precise way to classify a template portion would be by propagating the stack across + // lines, just as we do with the end-of-line state. However, this is a burden for implementers, + // and the behavior is entirely subsumed by the syntactic classifier anyway, so we instead + // flatten any nesting when the template stack is non-empty and encode it in the end-of-line state. + // Situations in which this fails are + // 1) When template strings are nested across different lines: + // `hello ${ `world + // ` }` + // + // Where on the second line, you will get the closing of a template, + // a closing curly, and a new template. + // + // 2) When substitution expressions have curly braces and the curly brace falls on the next line: + // `hello ${ () => { + // return "world" } } ` + // + // Where on the second line, you will get the 'return' keyword, + // a string literal, and a template end consisting of '} } `'. var templateStack = []; + /** Returns true if 'keyword2' can legally follow 'keyword1' in any language construct. */ function canFollow(keyword1, keyword2) { if (ts.isAccessibilityModifier(keyword1)) { - if (keyword2 === 116 || - keyword2 === 120 || - keyword2 === 114 || - keyword2 === 110) { + if (keyword2 === 116 /* GetKeyword */ || + keyword2 === 120 /* SetKeyword */ || + keyword2 === 114 /* ConstructorKeyword */ || + keyword2 === 110 /* StaticKeyword */) { + // Allow things like "public get", "public constructor" and "public static". + // These are all legal. return true; } + // Any other keyword following "public" is actually an identifier an not a real + // keyword. return false; } + // Assume any other keyword combination is legal. This can be refined in the future + // if there are more cases we want the classifier to be better at. return true; } + // If there is a syntactic classifier ('syntacticClassifierAbsent' is false), + // we will be more conservative in order to avoid conflicting with the syntactic classifier. function getClassificationsForLine(text, lexState, syntacticClassifierAbsent) { var offset = 0; - var token = 0; - var lastNonTriviaToken = 0; + var token = 0 /* Unknown */; + var lastNonTriviaToken = 0 /* Unknown */; + // Empty out the template stack for reuse. while (templateStack.length > 0) { templateStack.pop(); } + // If we're in a string literal, then prepend: "\ + // (and a newline). That way when we lex we'll think we're still in a string literal. + // + // If we're in a multiline comment, then prepend: /* + // (and a newline). That way when we lex we'll think we're still in a multiline comment. switch (lexState) { - case 3: + case 3 /* InDoubleQuoteStringLiteral */: text = '"\\\n' + text; offset = 3; break; - case 2: + case 2 /* InSingleQuoteStringLiteral */: text = "'\\\n" + text; offset = 3; break; - case 1: + case 1 /* InMultiLineCommentTrivia */: text = "/*\n" + text; offset = 3; break; - case 4: + case 4 /* InTemplateHeadOrNoSubstitutionTemplate */: text = "`\n" + text; offset = 2; break; - case 5: + case 5 /* InTemplateMiddleOrTail */: text = "}\n" + text; offset = 2; - case 6: - templateStack.push(11); + // fallthrough + case 6 /* InTemplateSubstitutionPosition */: + templateStack.push(11 /* TemplateHead */); break; } scanner.setText(text); var result = { - finalLexState: 0, + finalLexState: 0 /* Start */, entries: [] }; + // We can run into an unfortunate interaction between the lexical and syntactic classifier + // when the user is typing something generic. Consider the case where the user types: + // + // Foo tokens. It's a weak heuristic, but should + // work well enough in practice. var angleBracketStack = 0; do { token = scanner.scan(); if (!ts.isTrivia(token)) { - if ((token === 36 || token === 57) && !noRegexTable[lastNonTriviaToken]) { - if (scanner.reScanSlashToken() === 9) { - token = 9; + if ((token === 36 /* SlashToken */ || token === 57 /* SlashEqualsToken */) && !noRegexTable[lastNonTriviaToken]) { + if (scanner.reScanSlashToken() === 9 /* RegularExpressionLiteral */) { + token = 9 /* RegularExpressionLiteral */; } } - else if (lastNonTriviaToken === 20 && isKeyword(token)) { - token = 65; + else if (lastNonTriviaToken === 20 /* DotToken */ && isKeyword(token)) { + token = 65 /* Identifier */; } else if (isKeyword(lastNonTriviaToken) && isKeyword(token) && !canFollow(lastNonTriviaToken, token)) { - token = 65; + // We have two keywords in a row. Only treat the second as a keyword if + // it's a sequence that could legally occur in the language. Otherwise + // treat it as an identifier. This way, if someone writes "private var" + // we recognize that 'var' is actually an identifier here. + token = 65 /* Identifier */; } - else if (lastNonTriviaToken === 65 && - token === 24) { + else if (lastNonTriviaToken === 65 /* Identifier */ && + token === 24 /* LessThanToken */) { + // Could be the start of something generic. Keep track of that by bumping + // up the current count of generic contexts we may be in. angleBracketStack++; } - else if (token === 25 && angleBracketStack > 0) { + else if (token === 25 /* GreaterThanToken */ && angleBracketStack > 0) { + // If we think we're currently in something generic, then mark that that + // generic entity is complete. angleBracketStack--; } - else if (token === 112 || - token === 121 || - token === 119 || - token === 113 || - token === 122) { + else if (token === 112 /* AnyKeyword */ || + token === 121 /* StringKeyword */ || + token === 119 /* NumberKeyword */ || + token === 113 /* BooleanKeyword */ || + token === 122 /* SymbolKeyword */) { if (angleBracketStack > 0 && !syntacticClassifierAbsent) { - token = 65; + // If it looks like we're could be in something generic, don't classify this + // as a keyword. We may just get overwritten by the syntactic classifier, + // causing a noisy experience for the user. + token = 65 /* Identifier */; } } - else if (token === 11) { + else if (token === 11 /* TemplateHead */) { templateStack.push(token); } - else if (token === 14) { + else if (token === 14 /* OpenBraceToken */) { + // If we don't have anything on the template stack, + // then we aren't trying to keep track of a previously scanned template head. if (templateStack.length > 0) { templateStack.push(token); } } - else if (token === 15) { + else if (token === 15 /* CloseBraceToken */) { + // If we don't have anything on the template stack, + // then we aren't trying to keep track of a previously scanned template head. if (templateStack.length > 0) { var lastTemplateStackToken = ts.lastOrUndefined(templateStack); - if (lastTemplateStackToken === 11) { + if (lastTemplateStackToken === 11 /* TemplateHead */) { token = scanner.reScanTemplateToken(); - if (token === 13) { + // Only pop on a TemplateTail; a TemplateMiddle indicates there is more for us. + if (token === 13 /* TemplateTail */) { templateStack.pop(); } else { - ts.Debug.assert(token === 12, "Should have been a template middle. Was " + token); + ts.Debug.assert(token === 12 /* TemplateMiddle */, "Should have been a template middle. Was " + token); } } else { - ts.Debug.assert(lastTemplateStackToken === 14, "Should have been an open brace. Was: " + token); + ts.Debug.assert(lastTemplateStackToken === 14 /* OpenBraceToken */, "Should have been an open brace. Was: " + token); templateStack.pop(); } } @@ -33580,54 +39457,59 @@ var ts; lastNonTriviaToken = token; } processToken(); - } while (token !== 1); + } while (token !== 1 /* EndOfFileToken */); return result; function processToken() { var start = scanner.getTokenPos(); var end = scanner.getTextPos(); addResult(end - start, classFromKind(token)); if (end >= text.length) { - if (token === 8) { + if (token === 8 /* StringLiteral */) { + // Check to see if we finished up on a multiline string literal. var tokenText = scanner.getTokenText(); if (scanner.isUnterminated()) { var lastCharIndex = tokenText.length - 1; var numBackslashes = 0; - while (tokenText.charCodeAt(lastCharIndex - numBackslashes) === 92) { + while (tokenText.charCodeAt(lastCharIndex - numBackslashes) === 92 /* backslash */) { numBackslashes++; } + // If we have an odd number of backslashes, then the multiline string is unclosed if (numBackslashes & 1) { var quoteChar = tokenText.charCodeAt(0); - result.finalLexState = quoteChar === 34 - ? 3 - : 2; + result.finalLexState = quoteChar === 34 /* doubleQuote */ + ? 3 /* InDoubleQuoteStringLiteral */ + : 2 /* InSingleQuoteStringLiteral */; } } } - else if (token === 3) { + else if (token === 3 /* MultiLineCommentTrivia */) { + // Check to see if the multiline comment was unclosed. if (scanner.isUnterminated()) { - result.finalLexState = 1; + result.finalLexState = 1 /* InMultiLineCommentTrivia */; } } else if (ts.isTemplateLiteralKind(token)) { if (scanner.isUnterminated()) { - if (token === 13) { - result.finalLexState = 5; + if (token === 13 /* TemplateTail */) { + result.finalLexState = 5 /* InTemplateMiddleOrTail */; } - else if (token === 10) { - result.finalLexState = 4; + else if (token === 10 /* NoSubstitutionTemplateLiteral */) { + result.finalLexState = 4 /* InTemplateHeadOrNoSubstitutionTemplate */; } else { ts.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #" + token); } } } - else if (templateStack.length > 0 && ts.lastOrUndefined(templateStack) === 11) { - result.finalLexState = 6; + else if (templateStack.length > 0 && ts.lastOrUndefined(templateStack) === 11 /* TemplateHead */) { + result.finalLexState = 6 /* InTemplateSubstitutionPosition */; } } } function addResult(length, classification) { if (length > 0) { + // If this is the first classification we're adding to the list, then remove any + // offset we have if we were continuing a construct from the previous line. if (result.entries.length === 0) { length -= offset; } @@ -33637,42 +39519,42 @@ var ts; } function isBinaryExpressionOperatorToken(token) { switch (token) { - case 35: - case 36: - case 37: - case 33: - case 34: - case 40: - case 41: - case 42: - case 24: - case 25: - case 26: - case 27: - case 87: - case 86: - case 28: - case 29: - case 30: - case 31: - case 43: - case 45: - case 44: - case 48: - case 49: - case 63: - case 62: - case 64: - case 59: - case 60: - case 61: - case 54: - case 55: - case 56: - case 57: - case 58: - case 53: - case 23: + case 35 /* AsteriskToken */: + case 36 /* SlashToken */: + case 37 /* PercentToken */: + case 33 /* PlusToken */: + case 34 /* MinusToken */: + case 40 /* LessThanLessThanToken */: + case 41 /* GreaterThanGreaterThanToken */: + case 42 /* GreaterThanGreaterThanGreaterThanToken */: + case 24 /* LessThanToken */: + case 25 /* GreaterThanToken */: + case 26 /* LessThanEqualsToken */: + case 27 /* GreaterThanEqualsToken */: + case 87 /* InstanceOfKeyword */: + case 86 /* InKeyword */: + case 28 /* EqualsEqualsToken */: + case 29 /* ExclamationEqualsToken */: + case 30 /* EqualsEqualsEqualsToken */: + case 31 /* ExclamationEqualsEqualsToken */: + case 43 /* AmpersandToken */: + case 45 /* CaretToken */: + case 44 /* BarToken */: + case 48 /* AmpersandAmpersandToken */: + case 49 /* BarBarToken */: + case 63 /* BarEqualsToken */: + case 62 /* AmpersandEqualsToken */: + case 64 /* CaretEqualsToken */: + case 59 /* LessThanLessThanEqualsToken */: + case 60 /* GreaterThanGreaterThanEqualsToken */: + case 61 /* GreaterThanGreaterThanGreaterThanEqualsToken */: + case 54 /* PlusEqualsToken */: + case 55 /* MinusEqualsToken */: + case 56 /* AsteriskEqualsToken */: + case 57 /* SlashEqualsToken */: + case 58 /* PercentEqualsToken */: + case 53 /* EqualsToken */: + case 23 /* CommaToken */: return true; default: return false; @@ -33680,19 +39562,19 @@ var ts; } function isPrefixUnaryExpressionOperatorToken(token) { switch (token) { - case 33: - case 34: - case 47: - case 46: - case 38: - case 39: + case 33 /* PlusToken */: + case 34 /* MinusToken */: + case 47 /* TildeToken */: + case 46 /* ExclamationToken */: + case 38 /* PlusPlusToken */: + case 39 /* MinusMinusToken */: return true; default: return false; } } function isKeyword(token) { - return token >= 66 && token <= 125; + return token >= 66 /* FirstKeyword */ && token <= 125 /* LastKeyword */; } function classFromKind(token) { if (isKeyword(token)) { @@ -33701,24 +39583,24 @@ var ts; else if (isBinaryExpressionOperatorToken(token) || isPrefixUnaryExpressionOperatorToken(token)) { return TokenClass.Operator; } - else if (token >= 14 && token <= 64) { + else if (token >= 14 /* FirstPunctuation */ && token <= 64 /* LastPunctuation */) { return TokenClass.Punctuation; } switch (token) { - case 7: + case 7 /* NumericLiteral */: return TokenClass.NumberLiteral; - case 8: + case 8 /* StringLiteral */: return TokenClass.StringLiteral; - case 9: + case 9 /* RegularExpressionLiteral */: return TokenClass.RegExpLiteral; - case 6: - case 3: - case 2: + case 6 /* ConflictMarkerTrivia */: + case 3 /* MultiLineCommentTrivia */: + case 2 /* SingleLineCommentTrivia */: return TokenClass.Comment; - case 5: - case 4: + case 5 /* WhitespaceTrivia */: + case 4 /* NewLineTrivia */: return TokenClass.Whitespace; - case 65: + case 65 /* Identifier */: default: if (ts.isTemplateLiteralKind(token)) { return TokenClass.StringLiteral; @@ -33729,7 +39611,13 @@ var ts; return { getClassificationsForLine: getClassificationsForLine }; } ts.createClassifier = createClassifier; + /** + * Get the path of the default library file (lib.d.ts) as distributed with the typescript + * node package. + * The functionality is not supported if the ts module is consumed outside of a node module. + */ function getDefaultLibFilePath(options) { + // Check __dirname is defined and that we are on a node.js system. if (typeof __dirname !== "undefined") { return __dirname + ts.directorySeparator + ts.getDefaultLibFileName(options); } @@ -33741,7 +39629,7 @@ var ts; getNodeConstructor: function (kind) { function Node() { } - var proto = kind === 227 ? new SourceFileObject() : new NodeObject(); + var proto = kind === 227 /* SourceFile */ ? new SourceFileObject() : new NodeObject(); proto.kind = kind; proto.pos = 0; proto.end = 0; @@ -33760,25 +39648,38 @@ var ts; // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. /// +/* @internal */ var ts; (function (ts) { var BreakpointResolver; (function (BreakpointResolver) { + /** + * Get the breakpoint span in given sourceFile + */ function spanInSourceFileAtLocation(sourceFile, position) { - if (sourceFile.flags & 2048) { + // Cannot set breakpoint in dts file + if (sourceFile.flags & 2048 /* DeclarationFile */) { return undefined; } var tokenAtLocation = ts.getTokenAtPosition(sourceFile, position); var lineOfPosition = sourceFile.getLineAndCharacterOfPosition(position).line; if (sourceFile.getLineAndCharacterOfPosition(tokenAtLocation.getStart()).line > lineOfPosition) { + // Get previous token if the token is returned starts on new line + // eg: let x =10; |--- cursor is here + // let y = 10; + // token at position will return let keyword on second line as the token but we would like to use + // token on same line if trailing trivia (comments or white spaces on same line) part of the last token on that line tokenAtLocation = ts.findPrecedingToken(tokenAtLocation.pos, sourceFile); + // Its a blank line if (!tokenAtLocation || sourceFile.getLineAndCharacterOfPosition(tokenAtLocation.getEnd()).line !== lineOfPosition) { return undefined; } } + // Cannot set breakpoint in ambient declarations if (ts.isInAmbientContext(tokenAtLocation)) { return undefined; } + // Get the span in the node based on its syntax return spanInNode(tokenAtLocation); function textSpan(startNode, endNode) { return ts.createTextSpanFromBounds(startNode.getStart(), (endNode || startNode).getEnd()); @@ -33798,173 +39699,210 @@ var ts; function spanInNode(node) { if (node) { if (ts.isExpression(node)) { - if (node.parent.kind === 184) { + if (node.parent.kind === 184 /* DoStatement */) { + // Set span as if on while keyword return spanInPreviousNode(node); } - if (node.parent.kind === 186) { + if (node.parent.kind === 186 /* ForStatement */) { + // For now lets set the span on this expression, fix it later return textSpan(node); } - if (node.parent.kind === 169 && node.parent.operatorToken.kind === 23) { + if (node.parent.kind === 169 /* BinaryExpression */ && node.parent.operatorToken.kind === 23 /* CommaToken */) { + // if this is comma expression, the breakpoint is possible in this expression return textSpan(node); } - if (node.parent.kind == 163 && node.parent.body == node) { + if (node.parent.kind == 163 /* ArrowFunction */ && node.parent.body == node) { + // If this is body of arrow function, it is allowed to have the breakpoint return textSpan(node); } } switch (node.kind) { - case 180: + case 180 /* VariableStatement */: + // Span on first variable declaration return spanInVariableDeclaration(node.declarationList.declarations[0]); - case 198: - case 132: - case 131: + case 198 /* VariableDeclaration */: + case 132 /* PropertyDeclaration */: + case 131 /* PropertySignature */: return spanInVariableDeclaration(node); - case 129: + case 129 /* Parameter */: return spanInParameterDeclaration(node); - case 200: - case 134: - case 133: - case 136: - case 137: - case 135: - case 162: - case 163: + case 200 /* FunctionDeclaration */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 135 /* Constructor */: + case 162 /* FunctionExpression */: + case 163 /* ArrowFunction */: return spanInFunctionDeclaration(node); - case 179: + case 179 /* Block */: if (ts.isFunctionBlock(node)) { return spanInFunctionBlock(node); } - case 206: + // Fall through + case 206 /* ModuleBlock */: return spanInBlock(node); - case 223: + case 223 /* CatchClause */: return spanInBlock(node.block); - case 182: + case 182 /* ExpressionStatement */: + // span on the expression return textSpan(node.expression); - case 191: + case 191 /* ReturnStatement */: + // span on return keyword and expression if present return textSpan(node.getChildAt(0), node.expression); - case 185: + case 185 /* WhileStatement */: + // Span on while(...) return textSpan(node, ts.findNextToken(node.expression, node)); - case 184: + case 184 /* DoStatement */: + // span in statement of the do statement return spanInNode(node.statement); - case 197: + case 197 /* DebuggerStatement */: + // span on debugger keyword return textSpan(node.getChildAt(0)); - case 183: + case 183 /* IfStatement */: + // set on if(..) span return textSpan(node, ts.findNextToken(node.expression, node)); - case 194: + case 194 /* LabeledStatement */: + // span in statement return spanInNode(node.statement); - case 190: - case 189: + case 190 /* BreakStatement */: + case 189 /* ContinueStatement */: + // On break or continue keyword and label if present return textSpan(node.getChildAt(0), node.label); - case 186: + case 186 /* ForStatement */: return spanInForStatement(node); - case 187: - case 188: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: + // span on for (a in ...) return textSpan(node, ts.findNextToken(node.expression, node)); - case 193: + case 193 /* SwitchStatement */: + // span on switch(...) return textSpan(node, ts.findNextToken(node.expression, node)); - case 220: - case 221: + case 220 /* CaseClause */: + case 221 /* DefaultClause */: + // span in first statement of the clause return spanInNode(node.statements[0]); - case 196: + case 196 /* TryStatement */: + // span in try block return spanInBlock(node.tryBlock); - case 195: + case 195 /* ThrowStatement */: + // span in throw ... return textSpan(node, node.expression); - case 214: - if (!node.expression) { - return undefined; - } + case 214 /* ExportAssignment */: + // span on export = id return textSpan(node, node.expression); - case 208: + case 208 /* ImportEqualsDeclaration */: + // import statement without including semicolon return textSpan(node, node.moduleReference); - case 209: + case 209 /* ImportDeclaration */: + // import statement without including semicolon return textSpan(node, node.moduleSpecifier); - case 215: + case 215 /* ExportDeclaration */: + // import statement without including semicolon return textSpan(node, node.moduleSpecifier); - case 205: - if (ts.getModuleInstanceState(node) !== 1) { + case 205 /* ModuleDeclaration */: + // span on complete module if it is instantiated + if (ts.getModuleInstanceState(node) !== 1 /* Instantiated */) { return undefined; } - case 201: - case 204: - case 226: - case 157: - case 158: + case 201 /* ClassDeclaration */: + case 204 /* EnumDeclaration */: + case 226 /* EnumMember */: + case 157 /* CallExpression */: + case 158 /* NewExpression */: + // span on complete node return textSpan(node); - case 192: + case 192 /* WithStatement */: + // span in statement return spanInNode(node.statement); - case 202: - case 203: + // No breakpoint in interface, type alias + case 202 /* InterfaceDeclaration */: + case 203 /* TypeAliasDeclaration */: return undefined; - case 22: - case 1: + // Tokens: + case 22 /* SemicolonToken */: + case 1 /* EndOfFileToken */: return spanInNodeIfStartsOnSameLine(ts.findPrecedingToken(node.pos, sourceFile)); - case 23: + case 23 /* CommaToken */: return spanInPreviousNode(node); - case 14: + case 14 /* OpenBraceToken */: return spanInOpenBraceToken(node); - case 15: + case 15 /* CloseBraceToken */: return spanInCloseBraceToken(node); - case 16: + case 16 /* OpenParenToken */: return spanInOpenParenToken(node); - case 17: + case 17 /* CloseParenToken */: return spanInCloseParenToken(node); - case 51: + case 51 /* ColonToken */: return spanInColonToken(node); - case 25: - case 24: + case 25 /* GreaterThanToken */: + case 24 /* LessThanToken */: return spanInGreaterThanOrLessThanToken(node); - case 100: + // Keywords: + case 100 /* WhileKeyword */: return spanInWhileKeyword(node); - case 76: - case 68: - case 81: + case 76 /* ElseKeyword */: + case 68 /* CatchKeyword */: + case 81 /* FinallyKeyword */: return spanInNextNode(node); default: - if (node.parent.kind === 224 && node.parent.name === node) { + // If this is name of property assignment, set breakpoint in the initializer + if (node.parent.kind === 224 /* PropertyAssignment */ && node.parent.name === node) { return spanInNode(node.parent.initializer); } - if (node.parent.kind === 160 && node.parent.type === node) { + // Breakpoint in type assertion goes to its operand + if (node.parent.kind === 160 /* TypeAssertionExpression */ && node.parent.type === node) { return spanInNode(node.parent.expression); } + // return type of function go to previous token if (ts.isFunctionLike(node.parent) && node.parent.type === node) { return spanInPreviousNode(node); } + // Default go to parent to set the breakpoint return spanInNode(node.parent); } } function spanInVariableDeclaration(variableDeclaration) { - if (variableDeclaration.parent.parent.kind === 187 || - variableDeclaration.parent.parent.kind === 188) { + // If declaration of for in statement, just set the span in parent + if (variableDeclaration.parent.parent.kind === 187 /* ForInStatement */ || + variableDeclaration.parent.parent.kind === 188 /* ForOfStatement */) { return spanInNode(variableDeclaration.parent.parent); } - var isParentVariableStatement = variableDeclaration.parent.parent.kind === 180; - var isDeclarationOfForStatement = variableDeclaration.parent.parent.kind === 186 && ts.contains(variableDeclaration.parent.parent.initializer.declarations, variableDeclaration); + var isParentVariableStatement = variableDeclaration.parent.parent.kind === 180 /* VariableStatement */; + var isDeclarationOfForStatement = variableDeclaration.parent.parent.kind === 186 /* ForStatement */ && ts.contains(variableDeclaration.parent.parent.initializer.declarations, variableDeclaration); var declarations = isParentVariableStatement ? variableDeclaration.parent.parent.declarationList.declarations : isDeclarationOfForStatement ? variableDeclaration.parent.parent.initializer.declarations : undefined; - if (variableDeclaration.initializer || (variableDeclaration.flags & 1)) { + // Breakpoint is possible in variableDeclaration only if there is initialization + if (variableDeclaration.initializer || (variableDeclaration.flags & 1 /* Export */)) { if (declarations && declarations[0] === variableDeclaration) { if (isParentVariableStatement) { + // First declaration - include let keyword return textSpan(variableDeclaration.parent, variableDeclaration); } else { ts.Debug.assert(isDeclarationOfForStatement); + // Include let keyword from for statement declarations in the span return textSpan(ts.findPrecedingToken(variableDeclaration.pos, sourceFile, variableDeclaration.parent), variableDeclaration); } } else { + // Span only on this declaration return textSpan(variableDeclaration); } } else if (declarations && declarations[0] !== variableDeclaration) { + // If we cant set breakpoint on this declaration, set it on previous one var indexOfCurrentDeclaration = ts.indexOf(declarations, variableDeclaration); return spanInVariableDeclaration(declarations[indexOfCurrentDeclaration - 1]); } } function canHaveSpanInParameterDeclaration(parameter) { + // Breakpoint is possible on parameter only if it has initializer, is a rest parameter, or has public or private modifier return !!parameter.initializer || parameter.dotDotDotToken !== undefined || - !!(parameter.flags & 16) || !!(parameter.flags & 32); + !!(parameter.flags & 16 /* Public */) || !!(parameter.flags & 32 /* Private */); } function spanInParameterDeclaration(parameter) { if (canHaveSpanInParameterDeclaration(parameter)) { @@ -33974,24 +39912,29 @@ var ts; var functionDeclaration = parameter.parent; var indexOfParameter = ts.indexOf(functionDeclaration.parameters, parameter); if (indexOfParameter) { + // Not a first parameter, go to previous parameter return spanInParameterDeclaration(functionDeclaration.parameters[indexOfParameter - 1]); } else { + // Set breakpoint in the function declaration body return spanInNode(functionDeclaration.body); } } } function canFunctionHaveSpanInWholeDeclaration(functionDeclaration) { - return !!(functionDeclaration.flags & 1) || - (functionDeclaration.parent.kind === 201 && functionDeclaration.kind !== 135); + return !!(functionDeclaration.flags & 1 /* Export */) || + (functionDeclaration.parent.kind === 201 /* ClassDeclaration */ && functionDeclaration.kind !== 135 /* Constructor */); } function spanInFunctionDeclaration(functionDeclaration) { + // No breakpoints in the function signature if (!functionDeclaration.body) { return undefined; } if (canFunctionHaveSpanInWholeDeclaration(functionDeclaration)) { + // Set the span on whole function declaration return textSpan(functionDeclaration); } + // Set span in function body return spanInNode(functionDeclaration.body); } function spanInFunctionBlock(block) { @@ -34003,23 +39946,26 @@ var ts; } function spanInBlock(block) { switch (block.parent.kind) { - case 205: - if (ts.getModuleInstanceState(block.parent) !== 1) { + case 205 /* ModuleDeclaration */: + if (ts.getModuleInstanceState(block.parent) !== 1 /* Instantiated */) { return undefined; } - case 185: - case 183: - case 187: - case 188: + // Set on parent if on same line otherwise on first statement + case 185 /* WhileStatement */: + case 183 /* IfStatement */: + case 187 /* ForInStatement */: + case 188 /* ForOfStatement */: return spanInNodeIfStartsOnSameLine(block.parent, block.statements[0]); - case 186: + // Set span on previous token if it starts on same line otherwise on the first statement of the block + case 186 /* ForStatement */: return spanInNodeIfStartsOnSameLine(ts.findPrecedingToken(block.pos, sourceFile, block.parent), block.statements[0]); } + // Default action is to set on first statement return spanInNode(block.statements[0]); } function spanInForStatement(forStatement) { if (forStatement.initializer) { - if (forStatement.initializer.kind === 199) { + if (forStatement.initializer.kind === 199 /* VariableDeclarationList */) { var variableDeclarationList = forStatement.initializer; if (variableDeclarationList.declarations.length > 0) { return spanInNode(variableDeclarationList.declarations[0]); @@ -34036,87 +39982,103 @@ var ts; return textSpan(forStatement.iterator); } } + // Tokens: function spanInOpenBraceToken(node) { switch (node.parent.kind) { - case 204: + case 204 /* EnumDeclaration */: var enumDeclaration = node.parent; return spanInNodeIfStartsOnSameLine(ts.findPrecedingToken(node.pos, sourceFile, node.parent), enumDeclaration.members.length ? enumDeclaration.members[0] : enumDeclaration.getLastToken(sourceFile)); - case 201: + case 201 /* ClassDeclaration */: var classDeclaration = node.parent; return spanInNodeIfStartsOnSameLine(ts.findPrecedingToken(node.pos, sourceFile, node.parent), classDeclaration.members.length ? classDeclaration.members[0] : classDeclaration.getLastToken(sourceFile)); - case 207: + case 207 /* CaseBlock */: return spanInNodeIfStartsOnSameLine(node.parent.parent, node.parent.clauses[0]); } + // Default to parent node return spanInNode(node.parent); } function spanInCloseBraceToken(node) { switch (node.parent.kind) { - case 206: - if (ts.getModuleInstanceState(node.parent.parent) !== 1) { + case 206 /* ModuleBlock */: + // If this is not instantiated module block no bp span + if (ts.getModuleInstanceState(node.parent.parent) !== 1 /* Instantiated */) { return undefined; } - case 204: - case 201: + case 204 /* EnumDeclaration */: + case 201 /* ClassDeclaration */: + // Span on close brace token return textSpan(node); - case 179: + case 179 /* Block */: if (ts.isFunctionBlock(node.parent)) { + // Span on close brace token return textSpan(node); } - case 223: + // fall through. + case 223 /* CatchClause */: return spanInNode(node.parent.statements[node.parent.statements.length - 1]); ; - case 207: + case 207 /* CaseBlock */: + // breakpoint in last statement of the last clause var caseBlock = node.parent; var lastClause = caseBlock.clauses[caseBlock.clauses.length - 1]; if (lastClause) { return spanInNode(lastClause.statements[lastClause.statements.length - 1]); } return undefined; + // Default to parent node default: return spanInNode(node.parent); } } function spanInOpenParenToken(node) { - if (node.parent.kind === 184) { + if (node.parent.kind === 184 /* DoStatement */) { + // Go to while keyword and do action instead return spanInPreviousNode(node); } + // Default to parent node return spanInNode(node.parent); } function spanInCloseParenToken(node) { + // Is this close paren token of parameter list, set span in previous token switch (node.parent.kind) { - case 162: - case 200: - case 163: - case 134: - case 133: - case 136: - case 137: - case 135: - case 185: - case 184: - case 186: + case 162 /* FunctionExpression */: + case 200 /* FunctionDeclaration */: + case 163 /* ArrowFunction */: + case 134 /* MethodDeclaration */: + case 133 /* MethodSignature */: + case 136 /* GetAccessor */: + case 137 /* SetAccessor */: + case 135 /* Constructor */: + case 185 /* WhileStatement */: + case 184 /* DoStatement */: + case 186 /* ForStatement */: return spanInPreviousNode(node); + // Default to parent node default: return spanInNode(node.parent); } + // Default to parent node return spanInNode(node.parent); } function spanInColonToken(node) { - if (ts.isFunctionLike(node.parent) || node.parent.kind === 224) { + // Is this : specifying return annotation of the function declaration + if (ts.isFunctionLike(node.parent) || node.parent.kind === 224 /* PropertyAssignment */) { return spanInPreviousNode(node); } return spanInNode(node.parent); } function spanInGreaterThanOrLessThanToken(node) { - if (node.parent.kind === 160) { + if (node.parent.kind === 160 /* TypeAssertionExpression */) { return spanInNode(node.parent.expression); } return spanInNode(node.parent); } function spanInWhileKeyword(node) { - if (node.parent.kind === 184) { + if (node.parent.kind === 184 /* DoStatement */) { + // Set span on while expression return textSpan(node, ts.findNextToken(node.parent.expression, node.parent)); } + // Default to parent node return spanInNode(node.parent); } } @@ -34139,7 +40101,9 @@ var ts; // limitations under the License. // /// +/* @internal */ var debugObjectHost = this; +/* @internal */ var ts; (function (ts) { function logInternalError(logger, err) { @@ -34193,6 +40157,8 @@ var ts; return this.files = JSON.parse(encoded); }; LanguageServiceShimHostAdapter.prototype.getScriptSnapshot = function (fileName) { + // Shim the API changes for 1.5 release. This should be removed once + // TypeScript 1.5 has shipped. if (this.files && this.files.indexOf(fileName) < 0) { return undefined; } @@ -34222,6 +40188,8 @@ var ts; return this.shimHost.getCurrentDirectory(); }; LanguageServiceShimHostAdapter.prototype.getDefaultLibFileName = function (options) { + // Wrap the API changes for 1.5 release. This try/catch + // should be removed once TypeScript 1.5 has shipped. try { return this.shimHost.getDefaultLibFileName(JSON.stringify(options)); } @@ -34271,6 +40239,20 @@ var ts; }; return ShimBase; })(); + function realizeDiagnostics(diagnostics, newLine) { + return diagnostics.map(function (d) { return realizeDiagnostic(d, newLine); }); + } + ts.realizeDiagnostics = realizeDiagnostics; + function realizeDiagnostic(diagnostic, newLine) { + return { + message: ts.flattenDiagnosticMessageText(diagnostic.messageText, newLine), + start: diagnostic.start, + length: diagnostic.length, + /// TODO: no need for the tolowerCase call + category: ts.DiagnosticCategory[diagnostic.category].toLowerCase(), + code: diagnostic.code + }; + } var LanguageServiceShimObject = (function (_super) { __extends(LanguageServiceShimObject, _super); function LanguageServiceShimObject(factory, host, languageService) { @@ -34282,10 +40264,16 @@ var ts; LanguageServiceShimObject.prototype.forwardJSONCall = function (actionDescription, action) { return forwardJSONCall(this.logger, actionDescription, action); }; + /// DISPOSE + /** + * Ensure (almost) deterministic release of internal Javascript resources when + * some external native objects holds onto us (e.g. Com/Interop). + */ LanguageServiceShimObject.prototype.dispose = function (dummy) { this.logger.log("dispose()"); this.languageService.dispose(); this.languageService = null; + // force a GC if (debugObjectHost && debugObjectHost.CollectGarbage) { debugObjectHost.CollectGarbage(); this.logger.log("CollectGarbage()"); @@ -34293,6 +40281,10 @@ var ts; this.logger = null; _super.prototype.dispose.call(this, dummy); }; + /// REFRESH + /** + * Update the list of scripts known to the compiler + */ LanguageServiceShimObject.prototype.refresh = function (throwOnError) { this.forwardJSONCall("refresh(" + throwOnError + ")", function () { return null; @@ -34306,18 +40298,8 @@ var ts; }); }; LanguageServiceShimObject.prototype.realizeDiagnostics = function (diagnostics) { - var _this = this; var newLine = this.getNewLine(); - return diagnostics.map(function (d) { return _this.realizeDiagnostic(d, newLine); }); - }; - LanguageServiceShimObject.prototype.realizeDiagnostic = function (diagnostic, newLine) { - return { - message: ts.flattenDiagnosticMessageText(diagnostic.messageText, newLine), - start: diagnostic.start, - length: diagnostic.length, - category: ts.DiagnosticCategory[diagnostic.category].toLowerCase(), - code: diagnostic.code - }; + return ts.realizeDiagnostics(diagnostics, newLine); }; LanguageServiceShimObject.prototype.getSyntacticClassifications = function (fileName, start, length) { var _this = this; @@ -34357,6 +40339,11 @@ var ts; return _this.realizeDiagnostics(diagnostics); }); }; + /// QUICKINFO + /** + * Computes a string representation of the type at the requested position + * in the active file. + */ LanguageServiceShimObject.prototype.getQuickInfoAtPosition = function (fileName, position) { var _this = this; return this.forwardJSONCall("getQuickInfoAtPosition('" + fileName + "', " + position + ")", function () { @@ -34364,6 +40351,11 @@ var ts; return quickInfo; }); }; + /// NAMEORDOTTEDNAMESPAN + /** + * Computes span information of the name or dotted name at the requested position + * in the active file. + */ LanguageServiceShimObject.prototype.getNameOrDottedNameSpan = function (fileName, startPos, endPos) { var _this = this; return this.forwardJSONCall("getNameOrDottedNameSpan('" + fileName + "', " + startPos + ", " + endPos + ")", function () { @@ -34371,6 +40363,10 @@ var ts; return spanInfo; }); }; + /** + * STATEMENTSPAN + * Computes span information of statement at the requested position in the active file. + */ LanguageServiceShimObject.prototype.getBreakpointStatementAtPosition = function (fileName, position) { var _this = this; return this.forwardJSONCall("getBreakpointStatementAtPosition('" + fileName + "', " + position + ")", function () { @@ -34378,6 +40374,7 @@ var ts; return spanInfo; }); }; + /// SIGNATUREHELP LanguageServiceShimObject.prototype.getSignatureHelpItems = function (fileName, position) { var _this = this; return this.forwardJSONCall("getSignatureHelpItems('" + fileName + "', " + position + ")", function () { @@ -34385,6 +40382,11 @@ var ts; return signatureInfo; }); }; + /// GOTO DEFINITION + /** + * Computes the definition location and file for the symbol + * at the requested position. + */ LanguageServiceShimObject.prototype.getDefinitionAtPosition = function (fileName, position) { var _this = this; return this.forwardJSONCall("getDefinitionAtPosition('" + fileName + "', " + position + ")", function () { @@ -34403,6 +40405,7 @@ var ts; return _this.languageService.findRenameLocations(fileName, position, findInStrings, findInComments); }); }; + /// GET BRACE MATCHING LanguageServiceShimObject.prototype.getBraceMatchingAtPosition = function (fileName, position) { var _this = this; return this.forwardJSONCall("getBraceMatchingAtPosition('" + fileName + "', " + position + ")", function () { @@ -34410,13 +40413,15 @@ var ts; return textRanges; }); }; - LanguageServiceShimObject.prototype.getIndentationAtPosition = function (fileName, position, options) { + /// GET SMART INDENT + LanguageServiceShimObject.prototype.getIndentationAtPosition = function (fileName, position, options /*Services.EditorOptions*/) { var _this = this; return this.forwardJSONCall("getIndentationAtPosition('" + fileName + "', " + position + ")", function () { var localOptions = JSON.parse(options); return _this.languageService.getIndentationAtPosition(fileName, position, localOptions); }); }; + /// GET REFERENCES LanguageServiceShimObject.prototype.getReferencesAtPosition = function (fileName, position) { var _this = this; return this.forwardJSONCall("getReferencesAtPosition('" + fileName + "', " + position + ")", function () { @@ -34435,6 +40440,18 @@ var ts; return _this.languageService.getOccurrencesAtPosition(fileName, position); }); }; + LanguageServiceShimObject.prototype.getDocumentHighlights = function (fileName, position, filesToSearch) { + var _this = this; + return this.forwardJSONCall("getDocumentHighlights('" + fileName + "', " + position + ")", function () { + return _this.languageService.getDocumentHighlights(fileName, position, JSON.parse(filesToSearch)); + }); + }; + /// COMPLETION LISTS + /** + * Get a string based representation of the completions + * to provide at the given source position and providing a member completion + * list if requested. + */ LanguageServiceShimObject.prototype.getCompletionsAtPosition = function (fileName, position) { var _this = this; return this.forwardJSONCall("getCompletionsAtPosition('" + fileName + "', " + position + ")", function () { @@ -34442,6 +40459,7 @@ var ts; return completion; }); }; + /** Get a string based representation of a completion list entry details */ LanguageServiceShimObject.prototype.getCompletionEntryDetails = function (fileName, position, entryName) { var _this = this; return this.forwardJSONCall("getCompletionEntryDetails('" + fileName + "', " + position + ", " + entryName + ")", function () { @@ -34449,7 +40467,7 @@ var ts; return details; }); }; - LanguageServiceShimObject.prototype.getFormattingEditsForRange = function (fileName, start, end, options) { + LanguageServiceShimObject.prototype.getFormattingEditsForRange = function (fileName, start, end, options /*Services.FormatCodeOptions*/) { var _this = this; return this.forwardJSONCall("getFormattingEditsForRange('" + fileName + "', " + start + ", " + end + ")", function () { var localOptions = JSON.parse(options); @@ -34457,7 +40475,7 @@ var ts; return edits; }); }; - LanguageServiceShimObject.prototype.getFormattingEditsForDocument = function (fileName, options) { + LanguageServiceShimObject.prototype.getFormattingEditsForDocument = function (fileName, options /*Services.FormatCodeOptions*/) { var _this = this; return this.forwardJSONCall("getFormattingEditsForDocument('" + fileName + "')", function () { var localOptions = JSON.parse(options); @@ -34465,7 +40483,7 @@ var ts; return edits; }); }; - LanguageServiceShimObject.prototype.getFormattingEditsAfterKeystroke = function (fileName, position, key, options) { + LanguageServiceShimObject.prototype.getFormattingEditsAfterKeystroke = function (fileName, position, key, options /*Services.FormatCodeOptions*/) { var _this = this; return this.forwardJSONCall("getFormattingEditsAfterKeystroke('" + fileName + "', " + position + ", '" + key + "')", function () { var localOptions = JSON.parse(options); @@ -34473,6 +40491,8 @@ var ts; return edits; }); }; + /// NAVIGATE TO + /** Return a list of symbols that are interesting to navigate to */ LanguageServiceShimObject.prototype.getNavigateToItems = function (searchValue, maxResultCount) { var _this = this; return this.forwardJSONCall("getNavigateToItems('" + searchValue + "', " + maxResultCount + ")", function () { @@ -34501,10 +40521,13 @@ var ts; return items; }); }; + /// Emit LanguageServiceShimObject.prototype.getEmitOutput = function (fileName) { var _this = this; return this.forwardJSONCall("getEmitOutput('" + fileName + "')", function () { var output = _this.languageService.getEmitOutput(fileName); + // Shim the API changes for 1.5 release. This should be removed once + // TypeScript 1.5 has shipped. output.emitOutputStatus = output.emitSkipped ? 1 : 0; return output; }); @@ -34517,6 +40540,7 @@ var ts; _super.call(this, factory); this.classifier = ts.createClassifier(); } + /// COLORIZATION ClassifierShimObject.prototype.getClassificationsForLine = function (text, lexState, classifyKeywordsInGenerics) { var classification = this.classifier.getClassificationsForLine(text, lexState, classifyKeywordsInGenerics); var items = classification.entries; @@ -34576,6 +40600,9 @@ var ts; this._shims = []; this.documentRegistry = ts.createDocumentRegistry(); } + /* + * Returns script API version. + */ TypeScriptServicesFactory.prototype.getServicesVersion = function () { return ts.servicesVersion; }; @@ -34609,6 +40636,7 @@ var ts; } }; TypeScriptServicesFactory.prototype.close = function () { + // Forget all the registered shims this._shims = []; this.documentRegistry = ts.createDocumentRegistry(); }; @@ -34631,6 +40659,8 @@ var ts; module.exports = ts; } })(ts || (ts = {})); +/// TODO: this is used by VS, clean this up on both sides of the interface +/* @internal */ var TypeScript; (function (TypeScript) { var Services; @@ -34638,4 +40668,5 @@ var TypeScript; Services.TypeScriptServicesFactory = ts.TypeScriptServicesFactory; })(Services = TypeScript.Services || (TypeScript.Services = {})); })(TypeScript || (TypeScript = {})); +/* @internal */ var toolsVersion = "1.4"; diff --git a/bin/typescriptServices_internal.d.ts b/bin/typescriptServices_internal.d.ts deleted file mode 100644 index f0f86ebfe02..00000000000 --- a/bin/typescriptServices_internal.d.ts +++ /dev/null @@ -1,399 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - -declare module ts { - const enum Ternary { - False = 0, - Maybe = 1, - True = -1, - } - const enum Comparison { - LessThan = -1, - EqualTo = 0, - GreaterThan = 1, - } - interface StringSet extends Map { - } - function forEach(array: T[], callback: (element: T, index: number) => U): U; - function contains(array: T[], value: T): boolean; - function indexOf(array: T[], value: T): number; - function countWhere(array: T[], predicate: (x: T) => boolean): number; - function filter(array: T[], f: (x: T) => boolean): T[]; - function map(array: T[], f: (x: T) => U): U[]; - function concatenate(array1: T[], array2: T[]): T[]; - function deduplicate(array: T[]): T[]; - function sum(array: any[], prop: string): number; - function addRange(to: T[], from: T[]): void; - /** - * Returns the last element of an array if non-empty, undefined otherwise. - */ - function lastOrUndefined(array: T[]): T; - function binarySearch(array: number[], value: number): number; - function reduceLeft(array: T[], f: (a: T, x: T) => T): T; - function reduceLeft(array: T[], f: (a: U, x: T) => U, initial: U): U; - function reduceRight(array: T[], f: (a: T, x: T) => T): T; - function reduceRight(array: T[], f: (a: U, x: T) => U, initial: U): U; - function hasProperty(map: Map, key: string): boolean; - function getProperty(map: Map, key: string): T; - function isEmpty(map: Map): boolean; - function clone(object: T): T; - function extend(first: Map, second: Map): Map; - function forEachValue(map: Map, callback: (value: T) => U): U; - function forEachKey(map: Map, callback: (key: string) => U): U; - function lookUp(map: Map, key: string): T; - function copyMap(source: Map, target: Map): void; - /** - * Creates a map from the elements of an array. - * - * @param array the array of input elements. - * @param makeKey a function that produces a key for a given element. - * - * This function makes no effort to avoid collisions; if any two elements produce - * the same key with the given 'makeKey' function, then the element with the higher - * index in the array will be the one associated with the produced key. - */ - function arrayToMap(array: T[], makeKey: (value: T) => string): Map; - let localizedDiagnosticMessages: Map; - function getLocaleSpecificMessage(message: string): string; - function createFileDiagnostic(file: SourceFile, start: number, length: number, message: DiagnosticMessage, ...args: any[]): Diagnostic; - function createCompilerDiagnostic(message: DiagnosticMessage, ...args: any[]): Diagnostic; - function chainDiagnosticMessages(details: DiagnosticMessageChain, message: DiagnosticMessage, ...args: any[]): DiagnosticMessageChain; - function concatenateDiagnosticMessageChains(headChain: DiagnosticMessageChain, tailChain: DiagnosticMessageChain): DiagnosticMessageChain; - function compareValues(a: T, b: T): Comparison; - function compareDiagnostics(d1: Diagnostic, d2: Diagnostic): Comparison; - function sortAndDeduplicateDiagnostics(diagnostics: Diagnostic[]): Diagnostic[]; - function deduplicateSortedDiagnostics(diagnostics: Diagnostic[]): Diagnostic[]; - function normalizeSlashes(path: string): string; - function getRootLength(path: string): number; - let directorySeparator: string; - function normalizePath(path: string): string; - function getDirectoryPath(path: string): string; - function isUrl(path: string): boolean; - function isRootedDiskPath(path: string): boolean; - function getNormalizedPathComponents(path: string, currentDirectory: string): string[]; - function getNormalizedAbsolutePath(fileName: string, currentDirectory: string): string; - function getNormalizedPathFromPathComponents(pathComponents: string[]): string; - function getRelativePathToDirectoryOrUrl(directoryPathOrUrl: string, relativeOrAbsolutePath: string, currentDirectory: string, getCanonicalFileName: (fileName: string) => string, isAbsolutePathAnUrl: boolean): string; - function getBaseFileName(path: string): string; - function combinePaths(path1: string, path2: string): string; - function fileExtensionIs(path: string, extension: string): boolean; - function removeFileExtension(path: string): string; - function getDefaultLibFileName(options: CompilerOptions): string; - interface ObjectAllocator { - getNodeConstructor(kind: SyntaxKind): new () => Node; - getSymbolConstructor(): new (flags: SymbolFlags, name: string) => Symbol; - getTypeConstructor(): new (checker: TypeChecker, flags: TypeFlags) => Type; - getSignatureConstructor(): new (checker: TypeChecker) => Signature; - } - let objectAllocator: ObjectAllocator; - const enum AssertionLevel { - None = 0, - Normal = 1, - Aggressive = 2, - VeryAggressive = 3, - } - module Debug { - function shouldAssert(level: AssertionLevel): boolean; - function assert(expression: boolean, message?: string, verboseDebugInfo?: () => string): void; - function fail(message?: string): void; - } -} -declare module ts { - interface System { - args: string[]; - newLine: string; - useCaseSensitiveFileNames: boolean; - write(s: string): void; - readFile(fileName: string, encoding?: string): string; - writeFile(fileName: string, data: string, writeByteOrderMark?: boolean): void; - watchFile?(fileName: string, callback: (fileName: string) => void): FileWatcher; - resolvePath(path: string): string; - fileExists(path: string): boolean; - directoryExists(path: string): boolean; - createDirectory(directoryName: string): void; - getExecutingFilePath(): string; - getCurrentDirectory(): string; - readDirectory(path: string, extension?: string): string[]; - getMemoryUsage?(): number; - exit(exitCode?: number): void; - } - interface FileWatcher { - close(): void; - } - var sys: System; -} -declare module ts { - interface ReferencePathMatchResult { - fileReference?: FileReference; - diagnosticMessage?: DiagnosticMessage; - isNoDefaultLib?: boolean; - } - interface SynthesizedNode extends Node { - leadingCommentRanges?: CommentRange[]; - trailingCommentRanges?: CommentRange[]; - startsOnNewLine: boolean; - } - function getDeclarationOfKind(symbol: Symbol, kind: SyntaxKind): Declaration; - interface StringSymbolWriter extends SymbolWriter { - string(): string; - } - interface EmitHost extends ScriptReferenceHost { - getSourceFiles(): SourceFile[]; - getCommonSourceDirectory(): string; - getCanonicalFileName(fileName: string): string; - getNewLine(): string; - writeFile: WriteFileCallback; - } - function getSingleLineStringWriter(): StringSymbolWriter; - function releaseStringWriter(writer: StringSymbolWriter): void; - function getFullWidth(node: Node): number; - function containsParseError(node: Node): boolean; - function getSourceFileOfNode(node: Node): SourceFile; - function getStartPositionOfLine(line: number, sourceFile: SourceFile): number; - function nodePosToString(node: Node): string; - function getStartPosOfNode(node: Node): number; - function nodeIsMissing(node: Node): boolean; - function nodeIsPresent(node: Node): boolean; - function getTokenPosOfNode(node: Node, sourceFile?: SourceFile): number; - function getSourceTextOfNodeFromSourceFile(sourceFile: SourceFile, node: Node): string; - function getTextOfNodeFromSourceText(sourceText: string, node: Node): string; - function getTextOfNode(node: Node): string; - function escapeIdentifier(identifier: string): string; - function unescapeIdentifier(identifier: string): string; - function makeIdentifierFromModuleName(moduleName: string): string; - function isBlockOrCatchScoped(declaration: Declaration): boolean; - function getEnclosingBlockScopeContainer(node: Node): Node; - function isCatchClauseVariableDeclaration(declaration: Declaration): boolean; - function declarationNameToString(name: DeclarationName): string; - function createDiagnosticForNode(node: Node, message: DiagnosticMessage, arg0?: any, arg1?: any, arg2?: any): Diagnostic; - function createDiagnosticForNodeFromMessageChain(node: Node, messageChain: DiagnosticMessageChain): Diagnostic; - function getErrorSpanForNode(sourceFile: SourceFile, node: Node): TextSpan; - function isExternalModule(file: SourceFile): boolean; - function isDeclarationFile(file: SourceFile): boolean; - function isConstEnumDeclaration(node: Node): boolean; - function getCombinedNodeFlags(node: Node): NodeFlags; - function isConst(node: Node): boolean; - function isLet(node: Node): boolean; - function isPrologueDirective(node: Node): boolean; - function getLeadingCommentRangesOfNode(node: Node, sourceFileOfNode: SourceFile): CommentRange[]; - function getJsDocComments(node: Node, sourceFileOfNode: SourceFile): CommentRange[]; - let fullTripleSlashReferencePathRegEx: RegExp; - function forEachReturnStatement(body: Block, visitor: (stmt: ReturnStatement) => T): T; - function isFunctionLike(node: Node): boolean; - function isFunctionBlock(node: Node): boolean; - function isObjectLiteralMethod(node: Node): boolean; - function getContainingFunction(node: Node): FunctionLikeDeclaration; - function getThisContainer(node: Node, includeArrowFunctions: boolean): Node; - function getSuperContainer(node: Node, includeFunctions: boolean): Node; - function getInvokedExpression(node: CallLikeExpression): Expression; - function nodeCanBeDecorated(node: Node): boolean; - function nodeIsDecorated(node: Node): boolean; - function childIsDecorated(node: Node): boolean; - function nodeOrChildIsDecorated(node: Node): boolean; - function isExpression(node: Node): boolean; - function isInstantiatedModule(node: ModuleDeclaration, preserveConstEnums: boolean): boolean; - function isExternalModuleImportEqualsDeclaration(node: Node): boolean; - function getExternalModuleImportEqualsDeclarationExpression(node: Node): Expression; - function isInternalModuleImportEqualsDeclaration(node: Node): boolean; - function getExternalModuleName(node: Node): Expression; - function hasDotDotDotToken(node: Node): boolean; - function hasQuestionToken(node: Node): boolean; - function hasRestParameters(s: SignatureDeclaration): boolean; - function isLiteralKind(kind: SyntaxKind): boolean; - function isTextualLiteralKind(kind: SyntaxKind): boolean; - function isTemplateLiteralKind(kind: SyntaxKind): boolean; - function isBindingPattern(node: Node): boolean; - function isInAmbientContext(node: Node): boolean; - function isDeclaration(node: Node): boolean; - function isStatement(n: Node): boolean; - function isClassElement(n: Node): boolean; - function isDeclarationName(name: Node): boolean; - function isAliasSymbolDeclaration(node: Node): boolean; - function getClassExtendsHeritageClauseElement(node: ClassLikeDeclaration): HeritageClauseElement; - function getClassImplementsHeritageClauseElements(node: ClassDeclaration): NodeArray; - function getInterfaceBaseTypeNodes(node: InterfaceDeclaration): NodeArray; - function getHeritageClause(clauses: NodeArray, kind: SyntaxKind): HeritageClause; - function tryResolveScriptReference(host: ScriptReferenceHost, sourceFile: SourceFile, reference: FileReference): SourceFile; - function getAncestor(node: Node, kind: SyntaxKind): Node; - function getFileReferenceFromReferencePath(comment: string, commentRange: CommentRange): ReferencePathMatchResult; - function isKeyword(token: SyntaxKind): boolean; - function isTrivia(token: SyntaxKind): boolean; - /** - * A declaration has a dynamic name if both of the following are true: - * 1. The declaration has a computed property name - * 2. The computed name is *not* expressed as Symbol., where name - * is a property of the Symbol constructor that denotes a built in - * Symbol. - */ - function hasDynamicName(declaration: Declaration): boolean; - /** - * Checks if the expression is of the form: - * Symbol.name - * where Symbol is literally the word "Symbol", and name is any identifierName - */ - function isWellKnownSymbolSyntactically(node: Expression): boolean; - function getPropertyNameForPropertyNameNode(name: DeclarationName): string; - function getPropertyNameForKnownSymbolName(symbolName: string): string; - /** - * Includes the word "Symbol" with unicode escapes - */ - function isESSymbolIdentifier(node: Node): boolean; - function isModifier(token: SyntaxKind): boolean; - function textSpanEnd(span: TextSpan): number; - function textSpanIsEmpty(span: TextSpan): boolean; - function textSpanContainsPosition(span: TextSpan, position: number): boolean; - function textSpanContainsTextSpan(span: TextSpan, other: TextSpan): boolean; - function textSpanOverlapsWith(span: TextSpan, other: TextSpan): boolean; - function textSpanOverlap(span1: TextSpan, span2: TextSpan): TextSpan; - function textSpanIntersectsWithTextSpan(span: TextSpan, other: TextSpan): boolean; - function textSpanIntersectsWith(span: TextSpan, start: number, length: number): boolean; - function textSpanIntersectsWithPosition(span: TextSpan, position: number): boolean; - function textSpanIntersection(span1: TextSpan, span2: TextSpan): TextSpan; - function createTextSpan(start: number, length: number): TextSpan; - function createTextSpanFromBounds(start: number, end: number): TextSpan; - function textChangeRangeNewSpan(range: TextChangeRange): TextSpan; - function textChangeRangeIsUnchanged(range: TextChangeRange): boolean; - function createTextChangeRange(span: TextSpan, newLength: number): TextChangeRange; - let unchangedTextChangeRange: TextChangeRange; - /** - * Called to merge all the changes that occurred across several versions of a script snapshot - * into a single change. i.e. if a user keeps making successive edits to a script we will - * have a text change from V1 to V2, V2 to V3, ..., Vn. - * - * This function will then merge those changes into a single change range valid between V1 and - * Vn. - */ - function collapseTextChangeRangesAcrossMultipleVersions(changes: TextChangeRange[]): TextChangeRange; - function nodeStartsNewLexicalEnvironment(n: Node): boolean; - function nodeIsSynthesized(node: Node): boolean; - function createSynthesizedNode(kind: SyntaxKind, startsOnNewLine?: boolean): Node; - /** - * Based heavily on the abstract 'Quote'/'QuoteJSONString' operation from ECMA-262 (24.3.2.2), - * but augmented for a few select characters (e.g. lineSeparator, paragraphSeparator, nextLine) - * Note that this doesn't actually wrap the input in double quotes. - */ - function escapeString(s: string): string; - function escapeNonAsciiCharacters(s: string): string; - interface EmitTextWriter { - write(s: string): void; - writeTextOfNode(sourceFile: SourceFile, node: Node): void; - writeLine(): void; - increaseIndent(): void; - decreaseIndent(): void; - getText(): string; - rawWrite(s: string): void; - writeLiteral(s: string): void; - getTextPos(): number; - getLine(): number; - getColumn(): number; - getIndent(): number; - } - function getIndentString(level: number): string; - function getIndentSize(): number; - function createTextWriter(newLine: String): EmitTextWriter; - function getOwnEmitOutputFilePath(sourceFile: SourceFile, host: EmitHost, extension: string): string; - function getSourceFilePathInNewDir(sourceFile: SourceFile, host: EmitHost, newDirPath: string): string; - function writeFile(host: EmitHost, diagnostics: Diagnostic[], fileName: string, data: string, writeByteOrderMark: boolean): void; - function getLineOfLocalPosition(currentSourceFile: SourceFile, pos: number): number; - function getFirstConstructorWithBody(node: ClassLikeDeclaration): ConstructorDeclaration; - function shouldEmitToOwnFile(sourceFile: SourceFile, compilerOptions: CompilerOptions): boolean; - function getAllAccessorDeclarations(declarations: NodeArray, accessor: AccessorDeclaration): { - firstAccessor: AccessorDeclaration; - secondAccessor: AccessorDeclaration; - getAccessor: AccessorDeclaration; - setAccessor: AccessorDeclaration; - }; - function emitNewLineBeforeLeadingComments(currentSourceFile: SourceFile, writer: EmitTextWriter, node: TextRange, leadingComments: CommentRange[]): void; - function emitComments(currentSourceFile: SourceFile, writer: EmitTextWriter, comments: CommentRange[], trailingSeparator: boolean, newLine: string, writeComment: (currentSourceFile: SourceFile, writer: EmitTextWriter, comment: CommentRange, newLine: string) => void): void; - function writeCommentRange(currentSourceFile: SourceFile, writer: EmitTextWriter, comment: CommentRange, newLine: string): void; - function isSupportedHeritageClauseElement(node: HeritageClauseElement): boolean; - function isRightSideOfQualifiedNameOrPropertyAccess(node: Node): boolean; - function getLocalSymbolForExportDefault(symbol: Symbol): Symbol; -} -declare module ts { - /** - * Read tsconfig.json file - * @param fileName The path to the config file - */ - function readConfigFile(fileName: string): any; - /** - * Parse the contents of a config file (tsconfig.json). - * @param json The contents of the config file to parse - * @param basePath A root directory to resolve relative path entries in the config - * file to. e.g. outDir - */ - function parseConfigFile(json: any, basePath?: string): ParsedCommandLine; -} -declare module ts { - interface ListItemInfo { - listItemIndex: number; - list: Node; - } - function getEndLinePosition(line: number, sourceFile: SourceFile): number; - function getLineStartPositionForPosition(position: number, sourceFile: SourceFile): number; - function rangeContainsRange(r1: TextRange, r2: TextRange): boolean; - function startEndContainsRange(start: number, end: number, range: TextRange): boolean; - function rangeContainsStartEnd(range: TextRange, start: number, end: number): boolean; - function rangeOverlapsWithStartEnd(r1: TextRange, start: number, end: number): boolean; - function startEndOverlapsWithStartEnd(start1: number, end1: number, start2: number, end2: number): boolean; - function positionBelongsToNode(candidate: Node, position: number, sourceFile: SourceFile): boolean; - function isCompletedNode(n: Node, sourceFile: SourceFile): boolean; - function findListItemInfo(node: Node): ListItemInfo; - function hasChildOfKind(n: Node, kind: SyntaxKind, sourceFile?: SourceFile): boolean; - function findChildOfKind(n: Node, kind: SyntaxKind, sourceFile?: SourceFile): Node; - function findContainingList(node: Node): Node; - function getTouchingWord(sourceFile: SourceFile, position: number): Node; - function getTouchingPropertyName(sourceFile: SourceFile, position: number): Node; - /** Returns the token if position is in [start, end) or if position === end and includeItemAtEndPosition(token) === true */ - function getTouchingToken(sourceFile: SourceFile, position: number, includeItemAtEndPosition?: (n: Node) => boolean): Node; - /** Returns a token if position is in [start-of-leading-trivia, end) */ - function getTokenAtPosition(sourceFile: SourceFile, position: number): Node; - /** - * The token on the left of the position is the token that strictly includes the position - * or sits to the left of the cursor if it is on a boundary. For example - * - * fo|o -> will return foo - * foo |bar -> will return foo - * - */ - function findTokenOnLeftOfPosition(file: SourceFile, position: number): Node; - function findNextToken(previousToken: Node, parent: Node): Node; - function findPrecedingToken(position: number, sourceFile: SourceFile, startNode?: Node): Node; - function getNodeModifiers(node: Node): string; - function getTypeArgumentOrTypeParameterList(node: Node): NodeArray; - function isToken(n: Node): boolean; - function isWord(kind: SyntaxKind): boolean; - function isComment(kind: SyntaxKind): boolean; - function isPunctuation(kind: SyntaxKind): boolean; - function isInsideTemplateLiteral(node: LiteralExpression, position: number): boolean; - function isAccessibilityModifier(kind: SyntaxKind): boolean; - function compareDataObjects(dst: any, src: any): boolean; -} -declare module ts { - function isFirstDeclarationOfSymbolParameter(symbol: Symbol): boolean; - function symbolPart(text: string, symbol: Symbol): SymbolDisplayPart; - function displayPart(text: string, kind: SymbolDisplayPartKind, symbol?: Symbol): SymbolDisplayPart; - function spacePart(): SymbolDisplayPart; - function keywordPart(kind: SyntaxKind): SymbolDisplayPart; - function punctuationPart(kind: SyntaxKind): SymbolDisplayPart; - function operatorPart(kind: SyntaxKind): SymbolDisplayPart; - function textOrKeywordPart(text: string): SymbolDisplayPart; - function textPart(text: string): SymbolDisplayPart; - function lineBreakPart(): SymbolDisplayPart; - function mapToDisplayParts(writeDisplayParts: (writer: DisplayPartsSymbolWriter) => void): SymbolDisplayPart[]; - function typeToDisplayParts(typechecker: TypeChecker, type: Type, enclosingDeclaration?: Node, flags?: TypeFormatFlags): SymbolDisplayPart[]; - function symbolToDisplayParts(typeChecker: TypeChecker, symbol: Symbol, enclosingDeclaration?: Node, meaning?: SymbolFlags, flags?: SymbolFormatFlags): SymbolDisplayPart[]; - function signatureToDisplayParts(typechecker: TypeChecker, signature: Signature, enclosingDeclaration?: Node, flags?: TypeFormatFlags): SymbolDisplayPart[]; -} diff --git a/bin/typescript_internal.d.ts b/bin/typescript_internal.d.ts deleted file mode 100644 index 6fc997c62d5..00000000000 --- a/bin/typescript_internal.d.ts +++ /dev/null @@ -1,399 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - -declare module "typescript" { - const enum Ternary { - False = 0, - Maybe = 1, - True = -1, - } - const enum Comparison { - LessThan = -1, - EqualTo = 0, - GreaterThan = 1, - } - interface StringSet extends Map { - } - function forEach(array: T[], callback: (element: T, index: number) => U): U; - function contains(array: T[], value: T): boolean; - function indexOf(array: T[], value: T): number; - function countWhere(array: T[], predicate: (x: T) => boolean): number; - function filter(array: T[], f: (x: T) => boolean): T[]; - function map(array: T[], f: (x: T) => U): U[]; - function concatenate(array1: T[], array2: T[]): T[]; - function deduplicate(array: T[]): T[]; - function sum(array: any[], prop: string): number; - function addRange(to: T[], from: T[]): void; - /** - * Returns the last element of an array if non-empty, undefined otherwise. - */ - function lastOrUndefined(array: T[]): T; - function binarySearch(array: number[], value: number): number; - function reduceLeft(array: T[], f: (a: T, x: T) => T): T; - function reduceLeft(array: T[], f: (a: U, x: T) => U, initial: U): U; - function reduceRight(array: T[], f: (a: T, x: T) => T): T; - function reduceRight(array: T[], f: (a: U, x: T) => U, initial: U): U; - function hasProperty(map: Map, key: string): boolean; - function getProperty(map: Map, key: string): T; - function isEmpty(map: Map): boolean; - function clone(object: T): T; - function extend(first: Map, second: Map): Map; - function forEachValue(map: Map, callback: (value: T) => U): U; - function forEachKey(map: Map, callback: (key: string) => U): U; - function lookUp(map: Map, key: string): T; - function copyMap(source: Map, target: Map): void; - /** - * Creates a map from the elements of an array. - * - * @param array the array of input elements. - * @param makeKey a function that produces a key for a given element. - * - * This function makes no effort to avoid collisions; if any two elements produce - * the same key with the given 'makeKey' function, then the element with the higher - * index in the array will be the one associated with the produced key. - */ - function arrayToMap(array: T[], makeKey: (value: T) => string): Map; - let localizedDiagnosticMessages: Map; - function getLocaleSpecificMessage(message: string): string; - function createFileDiagnostic(file: SourceFile, start: number, length: number, message: DiagnosticMessage, ...args: any[]): Diagnostic; - function createCompilerDiagnostic(message: DiagnosticMessage, ...args: any[]): Diagnostic; - function chainDiagnosticMessages(details: DiagnosticMessageChain, message: DiagnosticMessage, ...args: any[]): DiagnosticMessageChain; - function concatenateDiagnosticMessageChains(headChain: DiagnosticMessageChain, tailChain: DiagnosticMessageChain): DiagnosticMessageChain; - function compareValues(a: T, b: T): Comparison; - function compareDiagnostics(d1: Diagnostic, d2: Diagnostic): Comparison; - function sortAndDeduplicateDiagnostics(diagnostics: Diagnostic[]): Diagnostic[]; - function deduplicateSortedDiagnostics(diagnostics: Diagnostic[]): Diagnostic[]; - function normalizeSlashes(path: string): string; - function getRootLength(path: string): number; - let directorySeparator: string; - function normalizePath(path: string): string; - function getDirectoryPath(path: string): string; - function isUrl(path: string): boolean; - function isRootedDiskPath(path: string): boolean; - function getNormalizedPathComponents(path: string, currentDirectory: string): string[]; - function getNormalizedAbsolutePath(fileName: string, currentDirectory: string): string; - function getNormalizedPathFromPathComponents(pathComponents: string[]): string; - function getRelativePathToDirectoryOrUrl(directoryPathOrUrl: string, relativeOrAbsolutePath: string, currentDirectory: string, getCanonicalFileName: (fileName: string) => string, isAbsolutePathAnUrl: boolean): string; - function getBaseFileName(path: string): string; - function combinePaths(path1: string, path2: string): string; - function fileExtensionIs(path: string, extension: string): boolean; - function removeFileExtension(path: string): string; - function getDefaultLibFileName(options: CompilerOptions): string; - interface ObjectAllocator { - getNodeConstructor(kind: SyntaxKind): new () => Node; - getSymbolConstructor(): new (flags: SymbolFlags, name: string) => Symbol; - getTypeConstructor(): new (checker: TypeChecker, flags: TypeFlags) => Type; - getSignatureConstructor(): new (checker: TypeChecker) => Signature; - } - let objectAllocator: ObjectAllocator; - const enum AssertionLevel { - None = 0, - Normal = 1, - Aggressive = 2, - VeryAggressive = 3, - } - module Debug { - function shouldAssert(level: AssertionLevel): boolean; - function assert(expression: boolean, message?: string, verboseDebugInfo?: () => string): void; - function fail(message?: string): void; - } -} -declare module "typescript" { - interface System { - args: string[]; - newLine: string; - useCaseSensitiveFileNames: boolean; - write(s: string): void; - readFile(fileName: string, encoding?: string): string; - writeFile(fileName: string, data: string, writeByteOrderMark?: boolean): void; - watchFile?(fileName: string, callback: (fileName: string) => void): FileWatcher; - resolvePath(path: string): string; - fileExists(path: string): boolean; - directoryExists(path: string): boolean; - createDirectory(directoryName: string): void; - getExecutingFilePath(): string; - getCurrentDirectory(): string; - readDirectory(path: string, extension?: string): string[]; - getMemoryUsage?(): number; - exit(exitCode?: number): void; - } - interface FileWatcher { - close(): void; - } - var sys: System; -} -declare module "typescript" { - interface ReferencePathMatchResult { - fileReference?: FileReference; - diagnosticMessage?: DiagnosticMessage; - isNoDefaultLib?: boolean; - } - interface SynthesizedNode extends Node { - leadingCommentRanges?: CommentRange[]; - trailingCommentRanges?: CommentRange[]; - startsOnNewLine: boolean; - } - function getDeclarationOfKind(symbol: Symbol, kind: SyntaxKind): Declaration; - interface StringSymbolWriter extends SymbolWriter { - string(): string; - } - interface EmitHost extends ScriptReferenceHost { - getSourceFiles(): SourceFile[]; - getCommonSourceDirectory(): string; - getCanonicalFileName(fileName: string): string; - getNewLine(): string; - writeFile: WriteFileCallback; - } - function getSingleLineStringWriter(): StringSymbolWriter; - function releaseStringWriter(writer: StringSymbolWriter): void; - function getFullWidth(node: Node): number; - function containsParseError(node: Node): boolean; - function getSourceFileOfNode(node: Node): SourceFile; - function getStartPositionOfLine(line: number, sourceFile: SourceFile): number; - function nodePosToString(node: Node): string; - function getStartPosOfNode(node: Node): number; - function nodeIsMissing(node: Node): boolean; - function nodeIsPresent(node: Node): boolean; - function getTokenPosOfNode(node: Node, sourceFile?: SourceFile): number; - function getSourceTextOfNodeFromSourceFile(sourceFile: SourceFile, node: Node): string; - function getTextOfNodeFromSourceText(sourceText: string, node: Node): string; - function getTextOfNode(node: Node): string; - function escapeIdentifier(identifier: string): string; - function unescapeIdentifier(identifier: string): string; - function makeIdentifierFromModuleName(moduleName: string): string; - function isBlockOrCatchScoped(declaration: Declaration): boolean; - function getEnclosingBlockScopeContainer(node: Node): Node; - function isCatchClauseVariableDeclaration(declaration: Declaration): boolean; - function declarationNameToString(name: DeclarationName): string; - function createDiagnosticForNode(node: Node, message: DiagnosticMessage, arg0?: any, arg1?: any, arg2?: any): Diagnostic; - function createDiagnosticForNodeFromMessageChain(node: Node, messageChain: DiagnosticMessageChain): Diagnostic; - function getErrorSpanForNode(sourceFile: SourceFile, node: Node): TextSpan; - function isExternalModule(file: SourceFile): boolean; - function isDeclarationFile(file: SourceFile): boolean; - function isConstEnumDeclaration(node: Node): boolean; - function getCombinedNodeFlags(node: Node): NodeFlags; - function isConst(node: Node): boolean; - function isLet(node: Node): boolean; - function isPrologueDirective(node: Node): boolean; - function getLeadingCommentRangesOfNode(node: Node, sourceFileOfNode: SourceFile): CommentRange[]; - function getJsDocComments(node: Node, sourceFileOfNode: SourceFile): CommentRange[]; - let fullTripleSlashReferencePathRegEx: RegExp; - function forEachReturnStatement(body: Block, visitor: (stmt: ReturnStatement) => T): T; - function isFunctionLike(node: Node): boolean; - function isFunctionBlock(node: Node): boolean; - function isObjectLiteralMethod(node: Node): boolean; - function getContainingFunction(node: Node): FunctionLikeDeclaration; - function getThisContainer(node: Node, includeArrowFunctions: boolean): Node; - function getSuperContainer(node: Node, includeFunctions: boolean): Node; - function getInvokedExpression(node: CallLikeExpression): Expression; - function nodeCanBeDecorated(node: Node): boolean; - function nodeIsDecorated(node: Node): boolean; - function childIsDecorated(node: Node): boolean; - function nodeOrChildIsDecorated(node: Node): boolean; - function isExpression(node: Node): boolean; - function isInstantiatedModule(node: ModuleDeclaration, preserveConstEnums: boolean): boolean; - function isExternalModuleImportEqualsDeclaration(node: Node): boolean; - function getExternalModuleImportEqualsDeclarationExpression(node: Node): Expression; - function isInternalModuleImportEqualsDeclaration(node: Node): boolean; - function getExternalModuleName(node: Node): Expression; - function hasDotDotDotToken(node: Node): boolean; - function hasQuestionToken(node: Node): boolean; - function hasRestParameters(s: SignatureDeclaration): boolean; - function isLiteralKind(kind: SyntaxKind): boolean; - function isTextualLiteralKind(kind: SyntaxKind): boolean; - function isTemplateLiteralKind(kind: SyntaxKind): boolean; - function isBindingPattern(node: Node): boolean; - function isInAmbientContext(node: Node): boolean; - function isDeclaration(node: Node): boolean; - function isStatement(n: Node): boolean; - function isClassElement(n: Node): boolean; - function isDeclarationName(name: Node): boolean; - function isAliasSymbolDeclaration(node: Node): boolean; - function getClassExtendsHeritageClauseElement(node: ClassLikeDeclaration): HeritageClauseElement; - function getClassImplementsHeritageClauseElements(node: ClassDeclaration): NodeArray; - function getInterfaceBaseTypeNodes(node: InterfaceDeclaration): NodeArray; - function getHeritageClause(clauses: NodeArray, kind: SyntaxKind): HeritageClause; - function tryResolveScriptReference(host: ScriptReferenceHost, sourceFile: SourceFile, reference: FileReference): SourceFile; - function getAncestor(node: Node, kind: SyntaxKind): Node; - function getFileReferenceFromReferencePath(comment: string, commentRange: CommentRange): ReferencePathMatchResult; - function isKeyword(token: SyntaxKind): boolean; - function isTrivia(token: SyntaxKind): boolean; - /** - * A declaration has a dynamic name if both of the following are true: - * 1. The declaration has a computed property name - * 2. The computed name is *not* expressed as Symbol., where name - * is a property of the Symbol constructor that denotes a built in - * Symbol. - */ - function hasDynamicName(declaration: Declaration): boolean; - /** - * Checks if the expression is of the form: - * Symbol.name - * where Symbol is literally the word "Symbol", and name is any identifierName - */ - function isWellKnownSymbolSyntactically(node: Expression): boolean; - function getPropertyNameForPropertyNameNode(name: DeclarationName): string; - function getPropertyNameForKnownSymbolName(symbolName: string): string; - /** - * Includes the word "Symbol" with unicode escapes - */ - function isESSymbolIdentifier(node: Node): boolean; - function isModifier(token: SyntaxKind): boolean; - function textSpanEnd(span: TextSpan): number; - function textSpanIsEmpty(span: TextSpan): boolean; - function textSpanContainsPosition(span: TextSpan, position: number): boolean; - function textSpanContainsTextSpan(span: TextSpan, other: TextSpan): boolean; - function textSpanOverlapsWith(span: TextSpan, other: TextSpan): boolean; - function textSpanOverlap(span1: TextSpan, span2: TextSpan): TextSpan; - function textSpanIntersectsWithTextSpan(span: TextSpan, other: TextSpan): boolean; - function textSpanIntersectsWith(span: TextSpan, start: number, length: number): boolean; - function textSpanIntersectsWithPosition(span: TextSpan, position: number): boolean; - function textSpanIntersection(span1: TextSpan, span2: TextSpan): TextSpan; - function createTextSpan(start: number, length: number): TextSpan; - function createTextSpanFromBounds(start: number, end: number): TextSpan; - function textChangeRangeNewSpan(range: TextChangeRange): TextSpan; - function textChangeRangeIsUnchanged(range: TextChangeRange): boolean; - function createTextChangeRange(span: TextSpan, newLength: number): TextChangeRange; - let unchangedTextChangeRange: TextChangeRange; - /** - * Called to merge all the changes that occurred across several versions of a script snapshot - * into a single change. i.e. if a user keeps making successive edits to a script we will - * have a text change from V1 to V2, V2 to V3, ..., Vn. - * - * This function will then merge those changes into a single change range valid between V1 and - * Vn. - */ - function collapseTextChangeRangesAcrossMultipleVersions(changes: TextChangeRange[]): TextChangeRange; - function nodeStartsNewLexicalEnvironment(n: Node): boolean; - function nodeIsSynthesized(node: Node): boolean; - function createSynthesizedNode(kind: SyntaxKind, startsOnNewLine?: boolean): Node; - /** - * Based heavily on the abstract 'Quote'/'QuoteJSONString' operation from ECMA-262 (24.3.2.2), - * but augmented for a few select characters (e.g. lineSeparator, paragraphSeparator, nextLine) - * Note that this doesn't actually wrap the input in double quotes. - */ - function escapeString(s: string): string; - function escapeNonAsciiCharacters(s: string): string; - interface EmitTextWriter { - write(s: string): void; - writeTextOfNode(sourceFile: SourceFile, node: Node): void; - writeLine(): void; - increaseIndent(): void; - decreaseIndent(): void; - getText(): string; - rawWrite(s: string): void; - writeLiteral(s: string): void; - getTextPos(): number; - getLine(): number; - getColumn(): number; - getIndent(): number; - } - function getIndentString(level: number): string; - function getIndentSize(): number; - function createTextWriter(newLine: String): EmitTextWriter; - function getOwnEmitOutputFilePath(sourceFile: SourceFile, host: EmitHost, extension: string): string; - function getSourceFilePathInNewDir(sourceFile: SourceFile, host: EmitHost, newDirPath: string): string; - function writeFile(host: EmitHost, diagnostics: Diagnostic[], fileName: string, data: string, writeByteOrderMark: boolean): void; - function getLineOfLocalPosition(currentSourceFile: SourceFile, pos: number): number; - function getFirstConstructorWithBody(node: ClassLikeDeclaration): ConstructorDeclaration; - function shouldEmitToOwnFile(sourceFile: SourceFile, compilerOptions: CompilerOptions): boolean; - function getAllAccessorDeclarations(declarations: NodeArray, accessor: AccessorDeclaration): { - firstAccessor: AccessorDeclaration; - secondAccessor: AccessorDeclaration; - getAccessor: AccessorDeclaration; - setAccessor: AccessorDeclaration; - }; - function emitNewLineBeforeLeadingComments(currentSourceFile: SourceFile, writer: EmitTextWriter, node: TextRange, leadingComments: CommentRange[]): void; - function emitComments(currentSourceFile: SourceFile, writer: EmitTextWriter, comments: CommentRange[], trailingSeparator: boolean, newLine: string, writeComment: (currentSourceFile: SourceFile, writer: EmitTextWriter, comment: CommentRange, newLine: string) => void): void; - function writeCommentRange(currentSourceFile: SourceFile, writer: EmitTextWriter, comment: CommentRange, newLine: string): void; - function isSupportedHeritageClauseElement(node: HeritageClauseElement): boolean; - function isRightSideOfQualifiedNameOrPropertyAccess(node: Node): boolean; - function getLocalSymbolForExportDefault(symbol: Symbol): Symbol; -} -declare module "typescript" { - /** - * Read tsconfig.json file - * @param fileName The path to the config file - */ - function readConfigFile(fileName: string): any; - /** - * Parse the contents of a config file (tsconfig.json). - * @param json The contents of the config file to parse - * @param basePath A root directory to resolve relative path entries in the config - * file to. e.g. outDir - */ - function parseConfigFile(json: any, basePath?: string): ParsedCommandLine; -} -declare module "typescript" { - interface ListItemInfo { - listItemIndex: number; - list: Node; - } - function getEndLinePosition(line: number, sourceFile: SourceFile): number; - function getLineStartPositionForPosition(position: number, sourceFile: SourceFile): number; - function rangeContainsRange(r1: TextRange, r2: TextRange): boolean; - function startEndContainsRange(start: number, end: number, range: TextRange): boolean; - function rangeContainsStartEnd(range: TextRange, start: number, end: number): boolean; - function rangeOverlapsWithStartEnd(r1: TextRange, start: number, end: number): boolean; - function startEndOverlapsWithStartEnd(start1: number, end1: number, start2: number, end2: number): boolean; - function positionBelongsToNode(candidate: Node, position: number, sourceFile: SourceFile): boolean; - function isCompletedNode(n: Node, sourceFile: SourceFile): boolean; - function findListItemInfo(node: Node): ListItemInfo; - function hasChildOfKind(n: Node, kind: SyntaxKind, sourceFile?: SourceFile): boolean; - function findChildOfKind(n: Node, kind: SyntaxKind, sourceFile?: SourceFile): Node; - function findContainingList(node: Node): Node; - function getTouchingWord(sourceFile: SourceFile, position: number): Node; - function getTouchingPropertyName(sourceFile: SourceFile, position: number): Node; - /** Returns the token if position is in [start, end) or if position === end and includeItemAtEndPosition(token) === true */ - function getTouchingToken(sourceFile: SourceFile, position: number, includeItemAtEndPosition?: (n: Node) => boolean): Node; - /** Returns a token if position is in [start-of-leading-trivia, end) */ - function getTokenAtPosition(sourceFile: SourceFile, position: number): Node; - /** - * The token on the left of the position is the token that strictly includes the position - * or sits to the left of the cursor if it is on a boundary. For example - * - * fo|o -> will return foo - * foo |bar -> will return foo - * - */ - function findTokenOnLeftOfPosition(file: SourceFile, position: number): Node; - function findNextToken(previousToken: Node, parent: Node): Node; - function findPrecedingToken(position: number, sourceFile: SourceFile, startNode?: Node): Node; - function getNodeModifiers(node: Node): string; - function getTypeArgumentOrTypeParameterList(node: Node): NodeArray; - function isToken(n: Node): boolean; - function isWord(kind: SyntaxKind): boolean; - function isComment(kind: SyntaxKind): boolean; - function isPunctuation(kind: SyntaxKind): boolean; - function isInsideTemplateLiteral(node: LiteralExpression, position: number): boolean; - function isAccessibilityModifier(kind: SyntaxKind): boolean; - function compareDataObjects(dst: any, src: any): boolean; -} -declare module "typescript" { - function isFirstDeclarationOfSymbolParameter(symbol: Symbol): boolean; - function symbolPart(text: string, symbol: Symbol): SymbolDisplayPart; - function displayPart(text: string, kind: SymbolDisplayPartKind, symbol?: Symbol): SymbolDisplayPart; - function spacePart(): SymbolDisplayPart; - function keywordPart(kind: SyntaxKind): SymbolDisplayPart; - function punctuationPart(kind: SyntaxKind): SymbolDisplayPart; - function operatorPart(kind: SyntaxKind): SymbolDisplayPart; - function textOrKeywordPart(text: string): SymbolDisplayPart; - function textPart(text: string): SymbolDisplayPart; - function lineBreakPart(): SymbolDisplayPart; - function mapToDisplayParts(writeDisplayParts: (writer: DisplayPartsSymbolWriter) => void): SymbolDisplayPart[]; - function typeToDisplayParts(typechecker: TypeChecker, type: Type, enclosingDeclaration?: Node, flags?: TypeFormatFlags): SymbolDisplayPart[]; - function symbolToDisplayParts(typeChecker: TypeChecker, symbol: Symbol, enclosingDeclaration?: Node, meaning?: SymbolFlags, flags?: SymbolFormatFlags): SymbolDisplayPart[]; - function signatureToDisplayParts(typechecker: TypeChecker, signature: Signature, enclosingDeclaration?: Node, flags?: TypeFormatFlags): SymbolDisplayPart[]; -} diff --git a/scripts/processDiagnosticMessages.ts b/scripts/processDiagnosticMessages.ts index b97e4a2ea54..9cfde5b2964 100644 --- a/scripts/processDiagnosticMessages.ts +++ b/scripts/processDiagnosticMessages.ts @@ -54,6 +54,7 @@ function buildInfoFileOutput(messageTable: InputDiagnosticMessageTable, nameMap: var result = '// \r\n' + '/// \r\n' + + '/* @internal */\r\n' + 'module ts {\r\n' + ' export var Diagnostics = {\r\n'; var names = Utilities.getObjectKeys(messageTable); diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 494570c85c1..9d6d9fab35b 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -1,7 +1,8 @@ /// +/* @internal */ module ts { - /* @internal */ export let bindTime = 0; + export let bindTime = 0; export const enum ModuleInstanceState { NonInstantiated = 0, @@ -539,7 +540,7 @@ module ts { bindChildren(node, 0, /*isBlockScopeContainer*/ false); break; case SyntaxKind.ExportAssignment: - if ((node).expression && (node).expression.kind === SyntaxKind.Identifier) { + if ((node).expression.kind === SyntaxKind.Identifier) { // An export default clause with an identifier exports all meanings of that identifier declareSymbol(container.symbol.exports, container.symbol, node, SymbolFlags.Alias, SymbolFlags.PropertyExcludes | SymbolFlags.AliasExcludes); } diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 178a8d79880..bff0c137e24 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -1,19 +1,18 @@ /// +/* @internal */ module ts { let nextSymbolId = 1; let nextNodeId = 1; let nextMergeId = 1; - // @internal export function getNodeId(node: Node): number { if (!node.id) node.id = nextNodeId++; return node.id; } - /* @internal */ export let checkTime = 0; + export let checkTime = 0; - /* @internal */ export function getSymbolId(symbol: Symbol): number { if (!symbol.id) { symbol.id = nextSymbolId++; @@ -682,7 +681,7 @@ module ts { } function getTargetOfExportAssignment(node: ExportAssignment): Symbol { - return node.expression && resolveEntityName(node.expression, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace); + return resolveEntityName(node.expression, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace); } function getTargetOfAliasDeclaration(node: Declaration): Symbol { @@ -748,7 +747,7 @@ module ts { if (!links.referenced) { links.referenced = true; let node = getDeclarationOfAliasSymbol(symbol); - if (node.kind === SyntaxKind.ExportAssignment && (node).expression) { + if (node.kind === SyntaxKind.ExportAssignment) { // export default checkExpressionCached((node).expression); } @@ -2078,15 +2077,20 @@ module ts { } } else { - // For an array binding element the specified or inferred type of the parent must be an array-like type - if (!isArrayLikeType(parentType)) { - error(pattern, Diagnostics.Type_0_is_not_an_array_type, typeToString(parentType)); - return unknownType; - } + // This elementType will be used if the specific property corresponding to this index is not + // present (aka the tuple element property). This call also checks that the parentType is in + // fact an iterable or array (depending on target language). + let elementType = checkIteratedTypeOrElementType(parentType, pattern, /*allowStringInput*/ false); if (!declaration.dotDotDotToken) { + if (elementType.flags & TypeFlags.Any) { + return elementType; + } + // Use specific property type when parent is a tuple or numeric index type when parent is an array let propName = "" + indexOf(pattern.elements, declaration); - type = isTupleLikeType(parentType) ? getTypeOfPropertyOfType(parentType, propName) : getIndexTypeOfType(parentType, IndexKind.Number); + type = isTupleLikeType(parentType) + ? getTypeOfPropertyOfType(parentType, propName) + : elementType; if (!type) { if (isTupleType(parentType)) { error(declaration, Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2, typeToString(parentType), (parentType).elementTypes.length, pattern.elements.length); @@ -2099,7 +2103,7 @@ module ts { } else { // Rest element has an array type with the same element type as the parent type - type = createArrayType(getIndexTypeOfType(parentType, IndexKind.Number)); + type = createArrayType(elementType); } } return type; @@ -2188,7 +2192,34 @@ module ts { hasSpreadElement = true; } }); - return !elementTypes.length ? anyArrayType : hasSpreadElement ? createArrayType(getUnionType(elementTypes)) : createTupleType(elementTypes); + if (!elementTypes.length) { + return languageVersion >= ScriptTarget.ES6 ? createIterableType(anyType) : anyArrayType; + } + else if (hasSpreadElement) { + let unionOfElements = getUnionType(elementTypes); + if (languageVersion >= ScriptTarget.ES6) { + // If the user has something like: + // + // function fun(...[a, ...b]) { } + // + // Normally, in ES6, the implied type of an array binding pattern with a rest element is + // an iterable. However, there is a requirement in our type system that all rest + // parameters be array types. To satisfy this, we have an exception to the rule that + // says the type of an array binding pattern with a rest element is an array type + // if it is *itself* in a rest parameter. It will still be compatible with a spreaded + // iterable argument, but within the function it will be an array. + let parent = pattern.parent; + let isRestParameter = parent.kind === SyntaxKind.Parameter && + pattern === (parent).name && + (parent).dotDotDotToken !== undefined; + return isRestParameter ? createArrayType(unionOfElements) : createIterableType(unionOfElements); + } + + return createArrayType(unionOfElements); + } + + // If the pattern has at least one element, and no rest element, then it should imply a tuple type. + return createTupleType(elementTypes); } // Return the type implied by a binding pattern. This is the type implied purely by the binding pattern itself @@ -2255,16 +2286,7 @@ module ts { } // Handle export default expressions if (declaration.kind === SyntaxKind.ExportAssignment) { - var exportAssignment = declaration; - if (exportAssignment.expression) { - return links.type = checkExpression(exportAssignment.expression); - } - else if (exportAssignment.type) { - return links.type = getTypeFromTypeNodeOrHeritageClauseElement(exportAssignment.type); - } - else { - return links.type = anyType; - } + return links.type = checkExpression((declaration).expression); } // Handle variable, parameter or property links.type = resolvingType; @@ -3461,6 +3483,10 @@ module ts { return globalESSymbolConstructorSymbol || (globalESSymbolConstructorSymbol = getGlobalValueSymbol("Symbol")); } + function createIterableType(elementType: Type): Type { + return globalIterableType !== emptyObjectType ? createTypeReference(globalIterableType, [elementType]) : emptyObjectType; + } + function createArrayType(elementType: Type): Type { // globalArrayType will be undefined if we get here during creation of the Array type. This for example happens if // user code augments the Array type with call or construct signatures that have an array type as the return type. @@ -5546,7 +5572,7 @@ module ts { needToCaptureLexicalThis = false; while (container && container.kind === SyntaxKind.ArrowFunction) { container = getSuperContainer(container, /*includeFunctions*/ true); - needToCaptureLexicalThis = true; + needToCaptureLexicalThis = languageVersion < ScriptTarget.ES6; } // topmost container must be something that is directly nested in the class declaration @@ -5968,12 +5994,14 @@ module ts { } function checkSpreadElementExpression(node: SpreadElementExpression, contextualMapper?: TypeMapper): Type { - let type = checkExpressionCached(node.expression, contextualMapper); - if (!isArrayLikeType(type)) { - error(node.expression, Diagnostics.Type_0_is_not_an_array_type, typeToString(type)); - return unknownType; - } - return type; + // It is usually not safe to call checkExpressionCached if we can be contextually typing. + // You can tell that we are contextually typing because of the contextualMapper parameter. + // While it is true that a spread element can have a contextual type, it does not do anything + // with this type. It is neither affected by it, nor does it propagate it to its operand. + // So the fact that contextualMapper is passed is not important, because the operand of a spread + // element is not contextually typed. + let arrayOrIterableType = checkExpressionCached(node.expression, contextualMapper); + return checkIteratedTypeOrElementType(arrayOrIterableType, node.expression, /*allowStringInput*/ false); } function checkArrayLiteral(node: ArrayLiteralExpression, contextualMapper?: TypeMapper): Type { @@ -5981,18 +6009,13 @@ module ts { if (!elements.length) { return createArrayType(undefinedType); } - let hasSpreadElement: boolean = false; + let hasSpreadElement = false; let elementTypes: Type[] = []; - forEach(elements, e => { + for (let e of elements) { let type = checkExpression(e, contextualMapper); - if (e.kind === SyntaxKind.SpreadElementExpression) { - elementTypes.push(getIndexTypeOfType(type, IndexKind.Number) || anyType); - hasSpreadElement = true; - } - else { - elementTypes.push(type); - } - }); + elementTypes.push(type); + hasSpreadElement = hasSpreadElement || e.kind === SyntaxKind.SpreadElementExpression; + } if (!hasSpreadElement) { let contextualType = getContextualType(node); if (contextualType && contextualTypeIsTupleLikeType(contextualType) || isAssignmentTarget(node)) { @@ -6615,7 +6638,7 @@ module ts { for (let i = 0; i < args.length; i++) { let arg = args[i]; if (arg.kind !== SyntaxKind.OmittedExpression) { - let paramType = getTypeAtPosition(signature, arg.kind === SyntaxKind.SpreadElementExpression ? -1 : i); + let paramType = getTypeAtPosition(signature, i); let argType: Type; if (i === 0 && args[i].parent.kind === SyntaxKind.TaggedTemplateExpression) { argType = globalTemplateStringsArrayType; @@ -6638,7 +6661,7 @@ module ts { // No need to check for omitted args and template expressions, their exlusion value is always undefined if (excludeArgument[i] === false) { let arg = args[i]; - let paramType = getTypeAtPosition(signature, arg.kind === SyntaxKind.SpreadElementExpression ? -1 : i); + let paramType = getTypeAtPosition(signature, i); inferTypes(context, checkExpressionWithContextualType(arg, paramType, inferenceMapper), paramType); } } @@ -6671,7 +6694,7 @@ module ts { let arg = args[i]; if (arg.kind !== SyntaxKind.OmittedExpression) { // Check spread elements against rest type (from arity check we know spread argument corresponds to a rest parameter) - let paramType = getTypeAtPosition(signature, arg.kind === SyntaxKind.SpreadElementExpression ? -1 : i); + let paramType = getTypeAtPosition(signature, i); // A tagged template expression provides a special first argument, and string literals get string literal types // unless we're reporting errors let argType = i === 0 && node.kind === SyntaxKind.TaggedTemplateExpression ? globalTemplateStringsArrayType : @@ -7145,14 +7168,9 @@ module ts { } function getTypeAtPosition(signature: Signature, pos: number): Type { - if (pos >= 0) { - return signature.hasRestParameter ? - pos < signature.parameters.length - 1 ? getTypeOfSymbol(signature.parameters[pos]) : getRestTypeOfSignature(signature) : - pos < signature.parameters.length ? getTypeOfSymbol(signature.parameters[pos]) : anyType; - } return signature.hasRestParameter ? - getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]) : - anyArrayType; + pos < signature.parameters.length - 1 ? getTypeOfSymbol(signature.parameters[pos]) : getRestTypeOfSignature(signature) : + pos < signature.parameters.length ? getTypeOfSymbol(signature.parameters[pos]) : anyType; } function assignContextualParameterTypes(signature: Signature, context: Signature, mapper: TypeMapper) { @@ -7266,7 +7284,7 @@ module ts { Debug.assert(node.kind !== SyntaxKind.MethodDeclaration || isObjectLiteralMethod(node)); // Grammar checking - let hasGrammarError = checkGrammarFunctionLikeDeclaration(node); + let hasGrammarError = checkGrammarDeclarationNameInStrictMode(node) || checkGrammarFunctionLikeDeclaration(node); if (!hasGrammarError && node.kind === SyntaxKind.FunctionExpression) { checkGrammarFunctionName(node.name) || checkGrammarForGenerator(node); } @@ -7312,7 +7330,7 @@ module ts { function checkFunctionExpressionOrObjectLiteralMethodBody(node: FunctionExpression | MethodDeclaration) { Debug.assert(node.kind !== SyntaxKind.MethodDeclaration || isObjectLiteralMethod(node)); - if (node.type) { + if (node.type && !node.asteriskToken) { checkIfNonVoidFunctionHasReturnExpressionsOrSingleThrowStatment(node, getTypeFromTypeNodeOrHeritageClauseElement(node.type)); } @@ -7588,11 +7606,10 @@ module ts { } function checkArrayLiteralAssignment(node: ArrayLiteralExpression, sourceType: Type, contextualMapper?: TypeMapper): Type { - // TODOO(andersh): Allow iterable source type in ES6 - if (!isArrayLikeType(sourceType)) { - error(node, Diagnostics.Type_0_is_not_an_array_type, typeToString(sourceType)); - return sourceType; - } + // This elementType will be used if the specific property corresponding to this index is not + // present (aka the tuple element property). This call also checks that the parentType is in + // fact an iterable or array (depending on target language). + let elementType = checkIteratedTypeOrElementType(sourceType, node, /*allowStringInput*/ false); let elements = node.elements; for (let i = 0; i < elements.length; i++) { let e = elements[i]; @@ -7600,8 +7617,9 @@ module ts { if (e.kind !== SyntaxKind.SpreadElementExpression) { let propName = "" + i; let type = sourceType.flags & TypeFlags.Any ? sourceType : - isTupleLikeType(sourceType) ? getTypeOfPropertyOfType(sourceType, propName) : - getIndexTypeOfType(sourceType, IndexKind.Number); + isTupleLikeType(sourceType) + ? getTypeOfPropertyOfType(sourceType, propName) + : elementType; if (type) { checkDestructuringAssignment(e, type, contextualMapper); } @@ -7616,7 +7634,7 @@ module ts { } else { if (i === elements.length - 1) { - checkReferenceAssignment((e).expression, sourceType, contextualMapper); + checkReferenceAssignment((e).expression, createArrayType(elementType), contextualMapper); } else { error(e, Diagnostics.A_rest_element_must_be_last_in_an_array_destructuring_pattern); @@ -7926,6 +7944,7 @@ module ts { } function checkExpression(node: Expression, contextualMapper?: TypeMapper): Type { + checkGrammarIdentifierInStrictMode(node); return checkExpressionOrQualifiedName(node, contextualMapper); } @@ -8041,6 +8060,8 @@ module ts { // DECLARATION AND STATEMENT TYPE CHECKING function checkTypeParameter(node: TypeParameterDeclaration) { + checkGrammarDeclarationNameInStrictMode(node); + // Grammar Checking if (node.expression) { grammarErrorOnFirstToken(node.expression, Diagnostics.Type_expected); @@ -8309,10 +8330,13 @@ module ts { } function checkTypeReferenceNode(node: TypeReferenceNode) { + checkGrammarTypeReferenceInStrictMode(node.typeName); return checkTypeReferenceOrHeritageClauseElement(node); } function checkHeritageClauseElement(node: HeritageClauseElement) { + checkGrammarHeritageClauseElementInStrictMode(node.expression); + return checkTypeReferenceOrHeritageClauseElement(node); } @@ -8843,6 +8867,7 @@ module ts { } function checkFunctionLikeDeclaration(node: FunctionLikeDeclaration): void { + checkGrammarDeclarationNameInStrictMode(node); checkDecorators(node); checkSignatureDeclaration(node); @@ -8878,7 +8903,7 @@ module ts { } checkSourceElement(node.body); - if (node.type && !isAccessor(node.kind)) { + if (node.type && !isAccessor(node.kind) && !node.asteriskToken) { checkIfNonVoidFunctionHasReturnExpressionsOrSingleThrowStatment(node, getTypeFromTypeNodeOrHeritageClauseElement(node.type)); } @@ -9126,6 +9151,7 @@ module ts { // Check variable, parameter, or property declaration function checkVariableLikeDeclaration(node: VariableLikeDeclaration) { + checkGrammarDeclarationNameInStrictMode(node); checkDecorators(node); checkSourceElement(node.type); // For a computed property, just check the initializer and exit @@ -9373,29 +9399,44 @@ module ts { function checkRightHandSideOfForOf(rhsExpression: Expression): Type { let expressionType = getTypeOfExpression(rhsExpression); - return languageVersion >= ScriptTarget.ES6 - ? checkIteratedType(expressionType, rhsExpression) - : checkElementTypeOfArrayOrString(expressionType, rhsExpression); + return checkIteratedTypeOrElementType(expressionType, rhsExpression, /*allowStringInput*/ true); + } + + function checkIteratedTypeOrElementType(inputType: Type, errorNode: Node, allowStringInput: boolean): Type { + if (languageVersion >= ScriptTarget.ES6) { + return checkIteratedType(inputType, errorNode) || anyType; + } + + if (allowStringInput) { + return checkElementTypeOfArrayOrString(inputType, errorNode); + } + + if (isArrayLikeType(inputType)) { + let indexType = getIndexTypeOfType(inputType, IndexKind.Number); + if (indexType) { + return indexType; + } + } + + error(errorNode, Diagnostics.Type_0_is_not_an_array_type, typeToString(inputType)); + return unknownType; } /** - * When expressionForError is undefined, it means we should not report any errors. + * When errorNode is undefined, it means we should not report any errors. */ - function checkIteratedType(iterable: Type, expressionForError: Expression): Type { + function checkIteratedType(iterable: Type, errorNode: Node): Type { Debug.assert(languageVersion >= ScriptTarget.ES6); - let iteratedType = getIteratedType(iterable, expressionForError); + let iteratedType = getIteratedType(iterable, errorNode); // Now even though we have extracted the iteratedType, we will have to validate that the type // passed in is actually an Iterable. - if (expressionForError && iteratedType) { - let completeIterableType = globalIterableType !== emptyObjectType - ? createTypeReference(globalIterableType, [iteratedType]) - : emptyObjectType; - checkTypeAssignableTo(iterable, completeIterableType, expressionForError); + if (errorNode && iteratedType) { + checkTypeAssignableTo(iterable, createIterableType(iteratedType), errorNode); } return iteratedType; - function getIteratedType(iterable: Type, expressionForError: Expression) { + function getIteratedType(iterable: Type, errorNode: Node) { // We want to treat type as an iterable, and get the type it is an iterable of. The iterable // must have the following structure (annotated with the names of the variables below): // @@ -9426,6 +9467,12 @@ module ts { return undefined; } + // As an optimization, if the type is instantiated directly using the globalIterableType (Iterable), + // then just grab its type argument. + if ((iterable.flags & TypeFlags.Reference) && (iterable).target === globalIterableType) { + return (iterable).typeArguments[0]; + } + let iteratorFunction = getTypeOfPropertyOfType(iterable, getPropertyNameForKnownSymbolName("iterator")); if (iteratorFunction && allConstituentTypesHaveKind(iteratorFunction, TypeFlags.Any)) { return undefined; @@ -9433,8 +9480,8 @@ module ts { let iteratorFunctionSignatures = iteratorFunction ? getSignaturesOfType(iteratorFunction, SignatureKind.Call) : emptyArray; if (iteratorFunctionSignatures.length === 0) { - if (expressionForError) { - error(expressionForError, Diagnostics.The_right_hand_side_of_a_for_of_statement_must_have_a_Symbol_iterator_method_that_returns_an_iterator); + if (errorNode) { + error(errorNode, Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator); } return undefined; } @@ -9451,8 +9498,8 @@ module ts { let iteratorNextFunctionSignatures = iteratorNextFunction ? getSignaturesOfType(iteratorNextFunction, SignatureKind.Call) : emptyArray; if (iteratorNextFunctionSignatures.length === 0) { - if (expressionForError) { - error(expressionForError, Diagnostics.The_iterator_returned_by_the_right_hand_side_of_a_for_of_statement_must_have_a_next_method); + if (errorNode) { + error(errorNode, Diagnostics.An_iterator_must_have_a_next_method); } return undefined; } @@ -9464,8 +9511,8 @@ module ts { let iteratorNextValue = getTypeOfPropertyOfType(iteratorNextResult, "value"); if (!iteratorNextValue) { - if (expressionForError) { - error(expressionForError, Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property); + if (errorNode) { + error(errorNode, Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property); } return undefined; } @@ -9491,7 +9538,7 @@ module ts { * 1. Some constituent is neither a string nor an array. * 2. Some constituent is a string and target is less than ES5 (because in ES3 string is not indexable). */ - function checkElementTypeOfArrayOrString(arrayOrStringType: Type, expressionForError: Expression): Type { + function checkElementTypeOfArrayOrString(arrayOrStringType: Type, errorNode: Node): Type { Debug.assert(languageVersion < ScriptTarget.ES6); // After we remove all types that are StringLike, we will know if there was a string constituent @@ -9502,7 +9549,7 @@ module ts { let reportedError = false; if (hasStringConstituent) { if (languageVersion < ScriptTarget.ES5) { - error(expressionForError, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); + error(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher); reportedError = true; } @@ -9522,7 +9569,7 @@ module ts { let diagnostic = hasStringConstituent ? Diagnostics.Type_0_is_not_an_array_type : Diagnostics.Type_0_is_not_an_array_type_or_a_string_type; - error(expressionForError, diagnostic, typeToString(arrayType)); + error(errorNode, diagnostic, typeToString(arrayType)); } return hasStringConstituent ? stringType : unknownType; } @@ -9834,6 +9881,7 @@ module ts { } function checkClassDeclaration(node: ClassDeclaration) { + checkGrammarDeclarationNameInStrictMode(node); // Grammar checking if (node.parent.kind !== SyntaxKind.ModuleBlock && node.parent.kind !== SyntaxKind.SourceFile) { grammarErrorOnNode(node, Diagnostics.class_declarations_are_only_supported_directly_inside_a_module_or_as_a_top_level_declaration); @@ -10060,7 +10108,7 @@ module ts { function checkInterfaceDeclaration(node: InterfaceDeclaration) { // Grammar checking - checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarInterfaceDeclaration(node); + checkGrammarDeclarationNameInStrictMode(node) || checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarInterfaceDeclaration(node); checkTypeParameters(node.typeParameters); if (produceDiagnostics) { @@ -10285,7 +10333,7 @@ module ts { } // Grammar checking - checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarEnumDeclaration(node); + checkGrammarDeclarationNameInStrictMode(node) || checkGrammarDecorators(node) || checkGrammarModifiers(node) || checkGrammarEnumDeclaration(node); checkTypeNameIsReserved(node.name, Diagnostics.Enum_name_cannot_be_0); checkCollisionWithCapturedThisVariable(node, node.name); @@ -10355,7 +10403,7 @@ module ts { function checkModuleDeclaration(node: ModuleDeclaration) { if (produceDiagnostics) { // Grammar checking - if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node)) { + if (!checkGrammarDeclarationNameInStrictMode(node) && !checkGrammarDecorators(node) && !checkGrammarModifiers(node)) { if (!isInAmbientContext(node) && node.name.kind === SyntaxKind.StringLiteral) { grammarErrorOnNode(node.name, Diagnostics.Only_ambient_modules_can_use_quoted_names); } @@ -10459,7 +10507,7 @@ module ts { } function checkImportDeclaration(node: ImportDeclaration) { - if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & NodeFlags.Modifier)) { + if (!checkGrammarImportDeclarationNameInStrictMode(node) && !checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & NodeFlags.Modifier)) { grammarErrorOnFirstToken(node, Diagnostics.An_import_declaration_cannot_have_modifiers); } if (checkExternalImportOrExportDeclaration(node)) { @@ -10481,7 +10529,7 @@ module ts { } function checkImportEqualsDeclaration(node: ImportEqualsDeclaration) { - checkGrammarDecorators(node) || checkGrammarModifiers(node); + checkGrammarDeclarationNameInStrictMode(node) || checkGrammarDecorators(node) || checkGrammarModifiers(node); if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) { checkImportBinding(node); if (node.flags & NodeFlags.Export) { @@ -10553,21 +10601,12 @@ module ts { if (!checkGrammarDecorators(node) && !checkGrammarModifiers(node) && (node.flags & NodeFlags.Modifier)) { grammarErrorOnFirstToken(node, Diagnostics.An_export_assignment_cannot_have_modifiers); } - if (node.expression) { - if (node.expression.kind === SyntaxKind.Identifier) { - markExportAsReferenced(node); - } - else { - checkExpressionCached(node.expression); - } + if (node.expression.kind === SyntaxKind.Identifier) { + markExportAsReferenced(node); } - if (node.type) { - checkSourceElement(node.type); - if (!isInAmbientContext(node)) { - grammarErrorOnFirstToken(node.type, Diagnostics.A_type_annotation_on_an_export_statement_is_only_allowed_in_an_ambient_external_module_declaration); - } + else { + checkExpressionCached(node.expression); } - checkExternalModuleExports(container); if (node.isExportEquals && languageVersion >= ScriptTarget.ES6) { @@ -10821,6 +10860,8 @@ module ts { checkGrammarSourceFile(node); emitExtends = false; + emitDecorate = false; + emitParam = false; potentialThisCollisions.length = 0; forEach(node.statements, checkSourceElement); @@ -11867,8 +11908,155 @@ module ts { anyArrayType = createArrayType(anyType); } - // GRAMMAR CHECKING + function isReservedwordInStrictMode(node: Identifier): boolean { + // Check that originalKeywordKind is less than LastFurtureReservedWord to see if an Identifier is a strict-mode reserved word + return (node.parserContextFlags & ParserContextFlags.StrictMode) && + (node.originalKeywordKind >= SyntaxKind.FirstFutureReservedWord && node.originalKeywordKind <= SyntaxKind.LastFutureReservedWord); + } + + function reportStrictModeGrammarErrorInClassDeclaration(identifier: Identifier, message: DiagnosticMessage, arg0?: any, arg1?: any, arg2?: any): boolean { + // We are checking if this name is inside class declaration or class expression (which are under class definitions inside ES6 spec.) + // if so, we would like to give more explicit invalid usage error. + if (getAncestor(identifier, SyntaxKind.ClassDeclaration) || getAncestor(identifier, SyntaxKind.ClassExpression)) { + return grammarErrorOnNode(identifier, message, arg0); + } + return false; + } + + function checkGrammarImportDeclarationNameInStrictMode(node: ImportDeclaration): boolean { + // Check if the import declaration used strict-mode reserved word in its names bindings + if (node.importClause) { + let impotClause = node.importClause; + if (impotClause.namedBindings) { + let nameBindings = impotClause.namedBindings; + if (nameBindings.kind === SyntaxKind.NamespaceImport) { + let name = (nameBindings).name; + if (name.originalKeywordKind) { + let nameText = declarationNameToString(name); + return grammarErrorOnNode(name, Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode, nameText); + } + } + else if (nameBindings.kind === SyntaxKind.NamedImports) { + let reportError = false; + for (let element of (nameBindings).elements) { + let name = element.name; + if (name.originalKeywordKind) { + let nameText = declarationNameToString(name); + reportError = reportError || grammarErrorOnNode(name, Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode, nameText); + } + } + return reportError; + } + } + } + return false; + } + + function checkGrammarDeclarationNameInStrictMode(node: Declaration): boolean { + let name = node.name; + if (name && name.kind === SyntaxKind.Identifier && isReservedwordInStrictMode(name)) { + let nameText = declarationNameToString(name); + switch (node.kind) { + case SyntaxKind.Parameter: + case SyntaxKind.VariableDeclaration: + case SyntaxKind.FunctionDeclaration: + case SyntaxKind.TypeParameter: + case SyntaxKind.BindingElement: + case SyntaxKind.InterfaceDeclaration: + case SyntaxKind.TypeAliasDeclaration: + case SyntaxKind.EnumDeclaration: + return checkGrammarIdentifierInStrictMode(name); + + case SyntaxKind.ClassDeclaration: + // Report an error if the class declaration uses strict-mode reserved word. + return grammarErrorOnNode(name, Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode, nameText); + + case SyntaxKind.ModuleDeclaration: + // Report an error if the module declaration uses strict-mode reserved word. + // TODO(yuisu): fix this when having external module in strict mode + return grammarErrorOnNode(name, Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode, nameText); + + case SyntaxKind.ImportEqualsDeclaration: + // TODO(yuisu): fix this when having external module in strict mode + return grammarErrorOnNode(name, Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode, nameText); + } + } + return false; + } + + function checkGrammarTypeReferenceInStrictMode(typeName: Identifier | QualifiedName) { + // Check if the type reference is using strict mode keyword + // Example: + // class C { + // foo(x: public){} // Error. + // } + if (typeName.kind === SyntaxKind.Identifier) { + checkGrammarTypeNameInStrictMode(typeName); + } + // Report an error for each identifier in QualifiedName + // Example: + // foo (x: B.private.bar) // error at private + // foo (x: public.private.package) // error at public, private, and package + else if (typeName.kind === SyntaxKind.QualifiedName) { + // Walk from right to left and report a possible error at each Identifier in QualifiedName + // Example: + // x1: public.private.package // error at public and private + checkGrammarTypeNameInStrictMode((typeName).right); + checkGrammarTypeReferenceInStrictMode((typeName).left); + } + } + + // This function will report an error for every identifier in property access expression + // whether it violates strict mode reserved words. + // Example: + // public // error at public + // public.private.package // error at public + // B.private.B // no error + function checkGrammarHeritageClauseElementInStrictMode(expression: Expression) { + // Example: + // class C extends public // error at public + if (expression && expression.kind === SyntaxKind.Identifier) { + return checkGrammarIdentifierInStrictMode(expression); + } + else if (expression && expression.kind === SyntaxKind.PropertyAccessExpression) { + // Walk from left to right in PropertyAccessExpression until we are at the left most expression + // in PropertyAccessExpression. According to grammar production of MemberExpression, + // the left component expression is a PrimaryExpression (i.e. Identifier) while the other + // component after dots can be IdentifierName. + checkGrammarHeritageClauseElementInStrictMode((expression).expression); + } + + } + + // The function takes an identifier itself or an expression which has SyntaxKind.Identifier. + function checkGrammarIdentifierInStrictMode(node: Expression | Identifier, nameText?: string): boolean { + if (node && node.kind === SyntaxKind.Identifier && isReservedwordInStrictMode(node)) { + if (!nameText) { + nameText = declarationNameToString(node); + } + + // TODO (yuisu): Fix when module is a strict mode + let errorReport = reportStrictModeGrammarErrorInClassDeclaration(node, Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode, nameText)|| + grammarErrorOnNode(node, Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode, nameText); + return errorReport; + } + return false; + } + + // The function takes an identifier when uses as a typeName in TypeReferenceNode + function checkGrammarTypeNameInStrictMode(node: Identifier): boolean { + if (node && node.kind === SyntaxKind.Identifier && isReservedwordInStrictMode(node)) { + let nameText = declarationNameToString(node); + + // TODO (yuisu): Fix when module is a strict mode + let errorReport = reportStrictModeGrammarErrorInClassDeclaration(node, Diagnostics.Type_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode, nameText) || + grammarErrorOnNode(node, Diagnostics.Type_expected_0_is_a_reserved_word_in_strict_mode, nameText); + return errorReport; + } + return false; + } + function checkGrammarDecorators(node: Node): boolean { if (!node.decorators) { return false; @@ -12729,15 +12917,14 @@ module ts { if (contextNode && (contextNode.parserContextFlags & ParserContextFlags.StrictMode) && isEvalOrArgumentsIdentifier(identifier)) { let nameText = declarationNameToString(identifier); - // We are checking if this name is inside class declaration or class expression (which are under class definitions inside ES6 spec.) - // if so, we would like to give more explicit invalid usage error. - // This will be particularly helpful in the case of "arguments" as such case is very common mistake. - if (getAncestor(name, SyntaxKind.ClassDeclaration) || getAncestor(name, SyntaxKind.ClassExpression)) { - return grammarErrorOnNode(identifier, Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode, nameText); - } - else { + // We check first if the name is inside class declaration or class expression; if so give explicit message + // otherwise report generic error message. + // reportGrammarErrorInClassDeclaration only return true if grammar error is successfully reported and false otherwise + let reportErrorInClassDeclaration = reportStrictModeGrammarErrorInClassDeclaration(identifier, Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode, nameText); + if (!reportErrorInClassDeclaration){ return grammarErrorOnNode(identifier, Diagnostics.Invalid_use_of_0_in_strict_mode, nameText); } + return reportErrorInClassDeclaration; } } } diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 48817798d81..8169421ca17 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -164,7 +164,6 @@ module ts { } ]; - /* @internal */ export function parseCommandLine(commandLine: string[]): ParsedCommandLine { var options: CompilerOptions = {}; var fileNames: string[] = []; diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 4b93081dc31..61fe2c7209a 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -1,7 +1,7 @@ /// +/* @internal */ module ts { - // Ternary values are defined such that // x & y is False if either x or y is False. // x & y is Maybe if either x or y is Maybe, but neither x or y is False. @@ -434,7 +434,7 @@ module ts { return path.replace(/\\/g, "/"); } - // Returns length of path root (i.e. length of "/", "x:/", "//server/share/") + // Returns length of path root (i.e. length of "/", "x:/", "//server/share/, file:///user/files") export function getRootLength(path: string): number { if (path.charCodeAt(0) === CharacterCodes.slash) { if (path.charCodeAt(1) !== CharacterCodes.slash) return 1; @@ -448,6 +448,8 @@ module ts { if (path.charCodeAt(2) === CharacterCodes.slash) return 3; return 2; } + let idx = path.indexOf('://'); + if (idx !== -1) return idx + 3 return 0; } diff --git a/src/compiler/declarationEmitter.ts b/src/compiler/declarationEmitter.ts index 7d41a72435f..30f50faf562 100644 --- a/src/compiler/declarationEmitter.ts +++ b/src/compiler/declarationEmitter.ts @@ -1,7 +1,7 @@ /// +/* @internal */ module ts { - interface ModuleElementDeclarationEmitInfo { node: Node; outputPos: number; @@ -442,20 +442,41 @@ module ts { emitLines(node.statements); } + // Return a temp variable name to be used in `export default` statements. + // The temp name will be of the form _default_counter. + // Note that export default is only allowed at most once in a module, so we + // do not need to keep track of created temp names. + function getExportDefaultTempVariableName(): string { + let baseName = "_default"; + if (!hasProperty(currentSourceFile.identifiers, baseName)) { + return baseName; + } + let count = 0; + while (true) { + let name = baseName + "_" + (++count); + if (!hasProperty(currentSourceFile.identifiers, name)) { + return name; + } + } + } + function emitExportAssignment(node: ExportAssignment) { - write(node.isExportEquals ? "export = " : "export default "); if (node.expression.kind === SyntaxKind.Identifier) { + write(node.isExportEquals ? "export = " : "export default "); writeTextOfNode(currentSourceFile, node.expression); } else { + // Expression + let tempVarName = getExportDefaultTempVariableName(); + write("declare var "); + write(tempVarName); write(": "); - if (node.type) { - emitType(node.type); - } - else { - writer.getSymbolAccessibilityDiagnostic = getDefaultExportAccessibilityDiagnostic; - resolver.writeTypeOfExpression(node.expression, enclosingDeclaration, TypeFormatFlags.UseTypeOfFunction, writer); - } + writer.getSymbolAccessibilityDiagnostic = getDefaultExportAccessibilityDiagnostic; + resolver.writeTypeOfExpression(node.expression, enclosingDeclaration, TypeFormatFlags.UseTypeOfFunction, writer); + write(";"); + writeLine(); + write(node.isExportEquals ? "export = " : "export default "); + write(tempVarName); } write(";"); writeLine(); @@ -1540,7 +1561,7 @@ module ts { } } - // @internal + /* @internal */ export function writeDeclarationFile(jsFilePath: string, sourceFile: SourceFile, host: EmitHost, resolver: EmitResolver, diagnostics: Diagnostic[]) { let emitDeclarationResult = emitDeclarations(host, resolver, diagnostics, jsFilePath, sourceFile); // TODO(shkamat): Should we not write any declaration file if any of them can produce error, diff --git a/src/compiler/diagnosticInformationMap.generated.ts b/src/compiler/diagnosticInformationMap.generated.ts index b4380f4d2de..0271ac73105 100644 --- a/src/compiler/diagnosticInformationMap.generated.ts +++ b/src/compiler/diagnosticInformationMap.generated.ts @@ -1,5 +1,6 @@ // /// +/* @internal */ module ts { export var Diagnostics = { Unterminated_string_literal: { code: 1002, category: DiagnosticCategory.Error, key: "Unterminated string literal." }, @@ -158,7 +159,6 @@ module ts { An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: { code: 1198, category: DiagnosticCategory.Error, key: "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive." }, Unterminated_Unicode_escape_sequence: { code: 1199, category: DiagnosticCategory.Error, key: "Unterminated Unicode escape sequence." }, Line_terminator_not_permitted_before_arrow: { code: 1200, category: DiagnosticCategory.Error, key: "Line terminator not permitted before arrow." }, - A_type_annotation_on_an_export_statement_is_only_allowed_in_an_ambient_external_module_declaration: { code: 1201, category: DiagnosticCategory.Error, key: "A type annotation on an export statement is only allowed in an ambient external module declaration." }, Import_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_or_import_d_from_mod_instead: { code: 1202, category: DiagnosticCategory.Error, key: "Import assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"' or 'import d from \"mod\"' instead." }, Export_assignment_cannot_be_used_when_targeting_ECMAScript_6_or_higher_Consider_using_export_default_instead: { code: 1203, category: DiagnosticCategory.Error, key: "Export assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'export default' instead." }, Cannot_compile_external_modules_into_amd_or_commonjs_when_targeting_es6_or_higher: { code: 1204, category: DiagnosticCategory.Error, key: "Cannot compile external modules into amd or commonjs when targeting es6 or higher." }, @@ -169,6 +169,12 @@ module ts { Ambient_const_enums_are_not_allowed_when_the_separateCompilation_flag_is_provided: { code: 1209, category: DiagnosticCategory.Error, key: "Ambient const enums are not allowed when the '--separateCompilation' flag is provided." }, Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode: { code: 1210, category: DiagnosticCategory.Error, key: "Invalid use of '{0}'. Class definitions are automatically in strict mode." }, A_class_declaration_without_the_default_modifier_must_have_a_name: { code: 1211, category: DiagnosticCategory.Error, key: "A class declaration without the 'default' modifier must have a name" }, + Identifier_expected_0_is_a_reserved_word_in_strict_mode: { code: 1212, category: DiagnosticCategory.Error, key: "Identifier expected. '{0}' is a reserved word in strict mode" }, + Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: { code: 1213, category: DiagnosticCategory.Error, key: "Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode." }, + Identifier_expected_0_is_a_reserved_word_in_strict_mode_External_Module_is_automatically_in_strict_mode: { code: 1214, category: DiagnosticCategory.Error, key: "Identifier expected. '{0}' is a reserved word in strict mode. External Module is automatically in strict mode." }, + Type_expected_0_is_a_reserved_word_in_strict_mode: { code: 1215, category: DiagnosticCategory.Error, key: "Type expected. '{0}' is a reserved word in strict mode" }, + Type_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: { code: 1216, category: DiagnosticCategory.Error, key: "Type expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode." }, + Type_expected_0_is_a_reserved_word_in_strict_mode_Module_is_automatically_in_strict_mode: { code: 1217, category: DiagnosticCategory.Error, key: "Type expected. '{0}' is a reserved word in strict mode. Module is automatically in strict mode." }, Duplicate_identifier_0: { code: 2300, category: DiagnosticCategory.Error, key: "Duplicate identifier '{0}'." }, Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: { code: 2301, category: DiagnosticCategory.Error, key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor." }, Static_members_cannot_reference_class_type_parameters: { code: 2302, category: DiagnosticCategory.Error, key: "Static members cannot reference class type parameters." }, @@ -344,8 +350,8 @@ module ts { The_left_hand_side_of_a_for_of_statement_cannot_be_a_previously_defined_constant: { code: 2485, category: DiagnosticCategory.Error, key: "The left-hand side of a 'for...of' statement cannot be a previously defined constant." }, The_left_hand_side_of_a_for_in_statement_cannot_be_a_previously_defined_constant: { code: 2486, category: DiagnosticCategory.Error, key: "The left-hand side of a 'for...in' statement cannot be a previously defined constant." }, Invalid_left_hand_side_in_for_of_statement: { code: 2487, category: DiagnosticCategory.Error, key: "Invalid left-hand side in 'for...of' statement." }, - The_right_hand_side_of_a_for_of_statement_must_have_a_Symbol_iterator_method_that_returns_an_iterator: { code: 2488, category: DiagnosticCategory.Error, key: "The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator." }, - The_iterator_returned_by_the_right_hand_side_of_a_for_of_statement_must_have_a_next_method: { code: 2489, category: DiagnosticCategory.Error, key: "The iterator returned by the right-hand side of a 'for...of' statement must have a 'next()' method." }, + Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator: { code: 2488, category: DiagnosticCategory.Error, key: "Type must have a '[Symbol.iterator]()' method that returns an iterator." }, + An_iterator_must_have_a_next_method: { code: 2489, category: DiagnosticCategory.Error, key: "An iterator must have a 'next()' method." }, The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property: { code: 2490, category: DiagnosticCategory.Error, key: "The type returned by the 'next()' method of an iterator must have a 'value' property." }, The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: { code: 2491, category: DiagnosticCategory.Error, key: "The left-hand side of a 'for...in' statement cannot be a destructuring pattern." }, Cannot_redeclare_identifier_0_in_catch_clause: { code: 2492, category: DiagnosticCategory.Error, key: "Cannot redeclare identifier '{0}' in catch clause" }, diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index fe349b78343..063a0d50ef5 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -623,10 +623,6 @@ "category": "Error", "code": 1200 }, - "A type annotation on an export statement is only allowed in an ambient external module declaration.": { - "category": "Error", - "code": 1201 - }, "Import assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"' or 'import d from \"mod\"' instead.": { "category": "Error", "code": 1202 @@ -661,12 +657,36 @@ }, "Invalid use of '{0}'. Class definitions are automatically in strict mode.": { "category": "Error", - "code": 1210 + "code": 1210 }, "A class declaration without the 'default' modifier must have a name": { "category": "Error", "code": 1211 }, + "Identifier expected. '{0}' is a reserved word in strict mode": { + "category": "Error", + "code": 1212 + }, + "Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode.": { + "category": "Error", + "code": 1213 + }, + "Identifier expected. '{0}' is a reserved word in strict mode. External Module is automatically in strict mode.": { + "category": "Error", + "code": 1214 + }, + "Type expected. '{0}' is a reserved word in strict mode": { + "category": "Error", + "code": 1215 + }, + "Type expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode.": { + "category": "Error", + "code": 1216 + }, + "Type expected. '{0}' is a reserved word in strict mode. Module is automatically in strict mode.": { + "category": "Error", + "code": 1217 + }, "Duplicate identifier '{0}'.": { "category": "Error", "code": 2300 @@ -1367,11 +1387,11 @@ "category": "Error", "code": 2487 }, - "The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator.": { + "Type must have a '[Symbol.iterator]()' method that returns an iterator.": { "category": "Error", "code": 2488 }, - "The iterator returned by the right-hand side of a 'for...of' statement must have a 'next()' method.": { + "An iterator must have a 'next()' method.": { "category": "Error", "code": 2489 }, @@ -2023,19 +2043,19 @@ }, "'import ... =' can only be used in a .ts file.": { "category": "Error", - "code": 8002 + "code": 8002 }, "'export=' can only be used in a .ts file.": { "category": "Error", - "code": 8003 + "code": 8003 }, "'type parameter declarations' can only be used in a .ts file.": { "category": "Error", - "code": 8004 + "code": 8004 }, "'implements clauses' can only be used in a .ts file.": { "category": "Error", - "code": 8005 + "code": 8005 }, "'interface declarations' can only be used in a .ts file.": { "category": "Error", diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 43db3e69cd7..82916c3c9ae 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -1,6 +1,7 @@ /// /// +/* @internal */ module ts { // represents one LexicalEnvironment frame to store unique generated names interface ScopeFrame { @@ -20,7 +21,6 @@ module ts { _n = 0x20000000, // Use/preference flag for '_n' } - // @internal // targetSourceFile is when users only want one file in entire project to be emitted. This is used in compileOnSave feature export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFile: SourceFile): EmitResult { // emit output for the __extends helper function @@ -1097,6 +1097,7 @@ var __param = this.__param || function(index, decorator) { return function (targ default: return Comparison.LessThan; } + case SyntaxKind.YieldExpression: case SyntaxKind.ConditionalExpression: return Comparison.LessThan; default: @@ -1136,8 +1137,8 @@ var __param = this.__param || function(index, decorator) { return function (targ if (!computedPropertyNamesToGeneratedNames) { computedPropertyNamesToGeneratedNames = []; } - - let generatedName = computedPropertyNamesToGeneratedNames[node.id]; + + let generatedName = computedPropertyNamesToGeneratedNames[getNodeId(node)]; if (generatedName) { // we have already generated a variable for this node, write that value instead. write(generatedName); @@ -1145,7 +1146,7 @@ var __param = this.__param || function(index, decorator) { return function (targ } generatedName = createAndRecordTempVariable(TempFlags.Auto).text; - computedPropertyNamesToGeneratedNames[node.id] = generatedName; + computedPropertyNamesToGeneratedNames[getNodeId(node)] = generatedName; write(generatedName); write(" = "); } @@ -1305,6 +1306,17 @@ var __param = this.__param || function(index, decorator) { return function (targ emit((node).expression); } + function emitYieldExpression(node: YieldExpression) { + write(tokenToString(SyntaxKind.YieldKeyword)); + if (node.asteriskToken) { + write("*"); + } + if (node.expression) { + write(" "); + emit(node.expression); + } + } + function needsParenthesisForPropertyAccessOrInvocation(node: Expression) { switch (node.kind) { case SyntaxKind.Identifier: @@ -1381,211 +1393,163 @@ var __param = this.__param || function(index, decorator) { return function (targ } } - function emitDownlevelObjectLiteralWithComputedProperties(node: ObjectLiteralExpression, firstComputedPropertyIndex: number): void { - let parenthesizedObjectLiteral = createDownlevelObjectLiteralWithComputedProperties(node, firstComputedPropertyIndex); - return emit(parenthesizedObjectLiteral); + function emitObjectLiteralBody(node: ObjectLiteralExpression, numElements: number): void { + if (numElements === 0) { + write("{}"); + return; + } + + write("{"); + + if (numElements > 0) { + var properties = node.properties; + + // If we are not doing a downlevel transformation for object literals, + // then try to preserve the original shape of the object literal. + // Otherwise just try to preserve the formatting. + if (numElements === properties.length) { + emitLinePreservingList(node, properties, /* allowTrailingComma */ languageVersion >= ScriptTarget.ES5, /* spacesBetweenBraces */ true); + } + else { + let multiLine = (node.flags & NodeFlags.MultiLine) !== 0; + if (!multiLine) { + write(" "); + } + else { + increaseIndent(); + } + + emitList(properties, 0, numElements, /*multiLine*/ multiLine, /*trailingComma*/ false); + + if (!multiLine) { + write(" "); + } + else { + decreaseIndent(); + } + } + } + + write("}"); } - function createDownlevelObjectLiteralWithComputedProperties(originalObjectLiteral: ObjectLiteralExpression, firstComputedPropertyIndex: number): ParenthesizedExpression { + function emitDownlevelObjectLiteralWithComputedProperties(node: ObjectLiteralExpression, firstComputedPropertyIndex: number) { + let multiLine = (node.flags & NodeFlags.MultiLine) !== 0; + let properties = node.properties; + + write("("); + + if (multiLine) { + increaseIndent(); + } + // For computed properties, we need to create a unique handle to the object // literal so we can modify it without risking internal assignments tainting the object. let tempVar = createAndRecordTempVariable(TempFlags.Auto); - // Hold onto the initial non-computed properties in a new object literal, - // then create the rest through property accesses on the temp variable. - let initialObjectLiteral = createSynthesizedNode(SyntaxKind.ObjectLiteralExpression); - initialObjectLiteral.properties = >originalObjectLiteral.properties.slice(0, firstComputedPropertyIndex); - initialObjectLiteral.flags |= NodeFlags.MultiLine; + // Write out the first non-computed properties + // (or all properties if none of them are computed), + // then emit the rest through indexing on the temp variable. + emit(tempVar) + write(" = "); + emitObjectLiteralBody(node, firstComputedPropertyIndex); - // The comma expressions that will patch the object literal. - // This will end up being something like '_a = { ... }, _a.x = 10, _a.y = 20, _a'. - let propertyPatches = createBinaryExpression(tempVar, SyntaxKind.EqualsToken, initialObjectLiteral); + for (let i = firstComputedPropertyIndex, n = properties.length; i < n; i++) { + writeComma(); - ts.forEach(originalObjectLiteral.properties, property => { - let patchedProperty = tryCreatePatchingPropertyAssignment(originalObjectLiteral, tempVar, property); - if (patchedProperty) { - // TODO(drosen): Preserve comments - //let leadingComments = getLeadingCommentRanges(currentSourceFile.text, property.pos); - //let trailingComments = getTrailingCommentRanges(currentSourceFile.text, property.end); - //addCommentsToSynthesizedNode(patchedProperty, leadingComments, trailingComments); + let property = properties[i]; - propertyPatches = createBinaryExpression(propertyPatches, SyntaxKind.CommaToken, patchedProperty); + emitStart(property) + if (property.kind === SyntaxKind.GetAccessor || property.kind === SyntaxKind.SetAccessor) { + // TODO (drosen): Reconcile with 'emitMemberFunctions'. + let accessors = getAllAccessorDeclarations(node.properties, property); + if (property !== accessors.firstAccessor) { + continue; + } + write("Object.defineProperty("); + emit(tempVar); + write(", "); + emitStart(node.name); + emitExpressionForPropertyName(property.name); + emitEnd(property.name); + write(", {"); + increaseIndent(); + if (accessors.getAccessor) { + writeLine() + emitLeadingComments(accessors.getAccessor); + write("get: "); + emitStart(accessors.getAccessor); + write("function "); + emitSignatureAndBody(accessors.getAccessor); + emitEnd(accessors.getAccessor); + emitTrailingComments(accessors.getAccessor); + write(","); + } + if (accessors.setAccessor) { + writeLine(); + emitLeadingComments(accessors.setAccessor); + write("set: "); + emitStart(accessors.setAccessor); + write("function "); + emitSignatureAndBody(accessors.setAccessor); + emitEnd(accessors.setAccessor); + emitTrailingComments(accessors.setAccessor); + write(","); + } + writeLine(); + write("enumerable: true,"); + writeLine(); + write("configurable: true"); + decreaseIndent(); + writeLine(); + write("})"); + emitEnd(property); } - }); + else { + emitLeadingComments(property); + emitStart(property.name); + emit(tempVar); + emitMemberAccessForPropertyName(property.name); + emitEnd(property.name); - // Finally, return the temp variable. - propertyPatches = createBinaryExpression(propertyPatches, SyntaxKind.CommaToken, createIdentifier(tempVar.text, /*startsOnNewLine:*/ true)); + write(" = "); - let result = createParenthesizedExpression(propertyPatches); - - // TODO(drosen): Preserve comments - // let leadingComments = getLeadingCommentRanges(currentSourceFile.text, originalObjectLiteral.pos); - // let trailingComments = getTrailingCommentRanges(currentSourceFile.text, originalObjectLiteral.end); - //addCommentsToSynthesizedNode(result, leadingComments, trailingComments); - - return result; - } - - function addCommentsToSynthesizedNode(node: SynthesizedNode, leadingCommentRanges: CommentRange[], trailingCommentRanges: CommentRange[]): void { - node.leadingCommentRanges = leadingCommentRanges; - node.trailingCommentRanges = trailingCommentRanges; - } - - // Returns 'undefined' if a property has already been accounted for - // (e.g. a 'get' accessor which has already been emitted along with its 'set' accessor). - function tryCreatePatchingPropertyAssignment(objectLiteral: ObjectLiteralExpression, tempVar: Identifier, property: ObjectLiteralElement): Expression { - let leftHandSide = createMemberAccessForPropertyName(tempVar, property.name); - let maybeRightHandSide = tryGetRightHandSideOfPatchingPropertyAssignment(objectLiteral, property); - - return maybeRightHandSide && createBinaryExpression(leftHandSide, SyntaxKind.EqualsToken, maybeRightHandSide, /*startsOnNewLine:*/ true); - } - - function tryGetRightHandSideOfPatchingPropertyAssignment(objectLiteral: ObjectLiteralExpression, property: ObjectLiteralElement) { - switch (property.kind) { - case SyntaxKind.PropertyAssignment: - return (property).initializer; - - case SyntaxKind.ShorthandPropertyAssignment: - // TODO: (andersh) Technically it isn't correct to make an identifier here since getExpressionNamePrefix returns - // a string containing a dotted name. In general I'm not a fan of mini tree rewriters as this one, elsewhere we - // manage by just emitting strings (which is a lot more performant). - //let prefix = createIdentifier(resolver.getExpressionNamePrefix((property).name)); - //return createPropertyAccessExpression(prefix, (property).name); - return createIdentifier(resolver.getExpressionNameSubstitution((property).name, getGeneratedNameForNode)); - - case SyntaxKind.MethodDeclaration: - return createFunctionExpression((property).parameters, (property).body); - - case SyntaxKind.GetAccessor: - case SyntaxKind.SetAccessor: - let { firstAccessor, getAccessor, setAccessor } = getAllAccessorDeclarations(objectLiteral.properties, property); - - // Only emit the first accessor. - if (firstAccessor !== property) { - return undefined; + if (property.kind === SyntaxKind.PropertyAssignment) { + emit((property).initializer); } - - let propertyDescriptor = createSynthesizedNode(SyntaxKind.ObjectLiteralExpression); - - let descriptorProperties = >[]; - if (getAccessor) { - let getProperty = createPropertyAssignment(createIdentifier("get"), createFunctionExpression(getAccessor.parameters, getAccessor.body)); - descriptorProperties.push(getProperty); + else if (property.kind === SyntaxKind.ShorthandPropertyAssignment) { + emitExpressionIdentifier((property).name); } - if (setAccessor) { - let setProperty = createPropertyAssignment(createIdentifier("set"), createFunctionExpression(setAccessor.parameters, setAccessor.body)); - descriptorProperties.push(setProperty); + else if (property.kind === SyntaxKind.MethodDeclaration) { + emitFunctionDeclaration(property); } + else { + Debug.fail("ObjectLiteralElement type not accounted for: " + property.kind); + } + } - let trueExpr = createSynthesizedNode(SyntaxKind.TrueKeyword); - - let enumerableTrue = createPropertyAssignment(createIdentifier("enumerable"), trueExpr); - descriptorProperties.push(enumerableTrue); - - let configurableTrue = createPropertyAssignment(createIdentifier("configurable"), trueExpr); - descriptorProperties.push(configurableTrue); - - propertyDescriptor.properties = descriptorProperties; - - let objectDotDefineProperty = createPropertyAccessExpression(createIdentifier("Object"), createIdentifier("defineProperty")); - return createCallExpression(objectDotDefineProperty, createNodeArray(propertyDescriptor)); - - default: - Debug.fail(`ObjectLiteralElement kind ${property.kind} not accounted for.`); + emitEnd(property); } - } - function createParenthesizedExpression(expression: Expression) { - let result = createSynthesizedNode(SyntaxKind.ParenthesizedExpression); - result.expression = expression; + writeComma(); + emit(tempVar); - return result; - } - - function createNodeArray(...elements: T[]): NodeArray { - let result = >elements; - result.pos = -1; - result.end = -1; - - return result; - } - - function createBinaryExpression(left: Expression, operator: SyntaxKind, right: Expression, startsOnNewLine?: boolean): BinaryExpression { - let result = createSynthesizedNode(SyntaxKind.BinaryExpression, startsOnNewLine); - result.operatorToken = createSynthesizedNode(operator); - result.left = left; - result.right = right; - - return result; - } - - function createExpressionStatement(expression: Expression): ExpressionStatement { - let result = createSynthesizedNode(SyntaxKind.ExpressionStatement); - result.expression = expression; - return result; - } - - function createMemberAccessForPropertyName(expression: LeftHandSideExpression, memberName: DeclarationName): PropertyAccessExpression | ElementAccessExpression { - if (memberName.kind === SyntaxKind.Identifier) { - return createPropertyAccessExpression(expression, memberName); + if (multiLine) { + decreaseIndent(); + writeLine(); } - else if (memberName.kind === SyntaxKind.StringLiteral || memberName.kind === SyntaxKind.NumericLiteral) { - return createElementAccessExpression(expression, memberName); + + write(")"); + + function writeComma() { + if (multiLine) { + write(","); + writeLine(); + } + else { + write(", "); + } } - else if (memberName.kind === SyntaxKind.ComputedPropertyName) { - return createElementAccessExpression(expression, (memberName).expression); - } - else { - Debug.fail(`Kind '${memberName.kind}' not accounted for.`); - } - } - - function createPropertyAssignment(name: LiteralExpression | Identifier, initializer: Expression) { - let result = createSynthesizedNode(SyntaxKind.PropertyAssignment); - result.name = name; - result.initializer = initializer; - - return result; - } - - function createFunctionExpression(parameters: NodeArray, body: Block): FunctionExpression { - let result = createSynthesizedNode(SyntaxKind.FunctionExpression); - result.parameters = parameters; - result.body = body; - - return result; - } - - function createPropertyAccessExpression(expression: LeftHandSideExpression, name: Identifier): PropertyAccessExpression { - let result = createSynthesizedNode(SyntaxKind.PropertyAccessExpression); - result.expression = expression; - result.dotToken = createSynthesizedNode(SyntaxKind.DotToken); - result.name = name; - - return result; - } - - function createElementAccessExpression(expression: LeftHandSideExpression, argumentExpression: Expression): ElementAccessExpression { - let result = createSynthesizedNode(SyntaxKind.ElementAccessExpression); - result.expression = expression; - result.argumentExpression = argumentExpression; - - return result; - } - - function createIdentifier(name: string, startsOnNewLine?: boolean) { - let result = createSynthesizedNode(SyntaxKind.Identifier, startsOnNewLine); - result.text = name; - - return result; - } - - function createCallExpression(invokedExpression: MemberExpression, arguments: NodeArray) { - let result = createSynthesizedNode(SyntaxKind.CallExpression); - result.expression = invokedExpression; - result.arguments = arguments; - - return result; } function emitObjectLiteral(node: ObjectLiteralExpression): void { @@ -1613,13 +1577,33 @@ var __param = this.__param || function(index, decorator) { return function (targ // Ordinary case: either the object has no computed properties // or we're compiling with an ES6+ target. - write("{"); + emitObjectLiteralBody(node, properties.length); + } - if (properties.length) { - emitLinePreservingList(node, properties, /*allowTrailingComma:*/ languageVersion >= ScriptTarget.ES5, /*spacesBetweenBraces:*/ true) - } + function createBinaryExpression(left: Expression, operator: SyntaxKind, right: Expression, startsOnNewLine?: boolean): BinaryExpression { + let result = createSynthesizedNode(SyntaxKind.BinaryExpression, startsOnNewLine); + result.operatorToken = createSynthesizedNode(operator); + result.left = left; + result.right = right; - write("}"); + return result; + } + + function createPropertyAccessExpression(expression: LeftHandSideExpression, name: Identifier): PropertyAccessExpression { + let result = createSynthesizedNode(SyntaxKind.PropertyAccessExpression); + result.expression = expression; + result.dotToken = createSynthesizedNode(SyntaxKind.DotToken); + result.name = name; + + return result; + } + + function createElementAccessExpression(expression: LeftHandSideExpression, argumentExpression: Expression): ElementAccessExpression { + let result = createSynthesizedNode(SyntaxKind.ElementAccessExpression); + result.expression = expression; + result.argumentExpression = argumentExpression; + + return result; } function emitComputedPropertyName(node: ComputedPropertyName) { @@ -1629,6 +1613,10 @@ var __param = this.__param || function(index, decorator) { return function (targ } function emitMethod(node: MethodDeclaration) { + if (languageVersion >= ScriptTarget.ES6 && node.asteriskToken) { + write("*"); + } + emit(node.name, /*allowGeneratedIdentifiers*/ false); if (languageVersion < ScriptTarget.ES6) { write(": function "); @@ -2988,7 +2976,12 @@ var __param = this.__param || function(index, decorator) { return function (targ write("default "); } } - write("function "); + + write("function"); + if (languageVersion >= ScriptTarget.ES6 && node.asteriskToken) { + write("*"); + } + write(" "); } if (shouldEmitFunctionName(node)) { @@ -3372,6 +3365,9 @@ var __param = this.__param || function(index, decorator) { return function (targ else if (member.kind === SyntaxKind.SetAccessor) { write("set "); } + if ((member).asteriskToken) { + write("*"); + } emit((member).name); emitSignatureAndBody(member); emitEnd(member); @@ -4950,6 +4946,8 @@ var __param = this.__param || function(index, decorator) { return function (targ return emitConditionalExpression(node); case SyntaxKind.SpreadElementExpression: return emitSpreadElementExpression(node); + case SyntaxKind.YieldExpression: + return emitYieldExpression(node); case SyntaxKind.OmittedExpression: return; case SyntaxKind.Block: diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index bde4cec3f3f..93f8404d881 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -299,8 +299,7 @@ module ts { case SyntaxKind.ExportAssignment: return visitNodes(cbNodes, node.decorators) || visitNodes(cbNodes, node.modifiers) || - visitNode(cbNode, (node).expression) || - visitNode(cbNode, (node).type); + visitNode(cbNode, (node).expression); case SyntaxKind.TemplateExpression: return visitNode(cbNode, (node).head) || visitNodes(cbNodes, (node).templateSpans); case SyntaxKind.TemplateSpan: @@ -1350,6 +1349,7 @@ module ts { return speculationHelper(callback, /*isLookAhead:*/ false); } + // Ignore strict mode flag because we will report an error in type checker instead. function isIdentifier(): boolean { if (token === SyntaxKind.Identifier) { return true; @@ -1361,7 +1361,7 @@ module ts { return false; } - return inStrictModeContext() ? token > SyntaxKind.LastFutureReservedWord : token > SyntaxKind.LastReservedWord; + return token > SyntaxKind.LastReservedWord; } function parseExpected(kind: SyntaxKind, diagnosticMessage?: DiagnosticMessage): boolean { @@ -1485,6 +1485,11 @@ module ts { identifierCount++; if (isIdentifier) { let node = createNode(SyntaxKind.Identifier); + + // Store original token kind if it is not just an Identifier so we can report appropriate error later in type checker + if (token !== SyntaxKind.Identifier) { + node.originalKeywordKind = token; + } node.text = internIdentifier(scanner.getTokenValue()); nextToken(); return finishNode(node); @@ -3221,6 +3226,16 @@ module ts { } } + // If encounter "([" or "({", this could be the start of a binding pattern. + // Examples: + // ([ x ]) => { } + // ({ x }) => { } + // ([ x ]) + // ({ x }) + if (second === SyntaxKind.OpenBracketToken || second === SyntaxKind.OpenBraceToken) { + return Tristate.Unknown; + } + // Simple case: "(..." // This is an arrow function with a rest parameter. if (second === SyntaxKind.DotDotDotToken) { @@ -4590,6 +4605,18 @@ module ts { return finishNode(node); } + function isClassMemberModifier(idToken: SyntaxKind) { + switch (idToken) { + case SyntaxKind.PublicKeyword: + case SyntaxKind.PrivateKeyword: + case SyntaxKind.ProtectedKeyword: + case SyntaxKind.StaticKeyword: + return true; + default: + return false; + } + } + function isClassMemberStart(): boolean { let idToken: SyntaxKind; @@ -4600,6 +4627,16 @@ module ts { // Eat up all modifiers, but hold on to the last one in case it is actually an identifier. while (isModifier(token)) { idToken = token; + // If the idToken is a class modifier (protected, private, public, and static), it is + // certain that we are starting to parse class member. This allows better error recovery + // Example: + // public foo() ... // true + // public @dec blah ... // true; we will then report an error later + // export public ... // true; we will then report an error later + if (isClassMemberModifier(idToken)) { + return true; + } + nextToken(); } @@ -5123,17 +5160,11 @@ module ts { setModifiers(node, modifiers); if (parseOptional(SyntaxKind.EqualsToken)) { node.isExportEquals = true; - node.expression = parseAssignmentExpressionOrHigher(); } else { parseExpected(SyntaxKind.DefaultKeyword); - if (parseOptional(SyntaxKind.ColonToken)) { - node.type = parseType(); - } - else { - node.expression = parseAssignmentExpressionOrHigher(); - } } + node.expression = parseAssignmentExpressionOrHigher(); parseSemicolon(); return finishNode(node); } @@ -5299,7 +5330,7 @@ module ts { break; } - let range = { pos: triviaScanner.getTokenPos(), end: triviaScanner.getTextPos() }; + let range = { pos: triviaScanner.getTokenPos(), end: triviaScanner.getTextPos(), kind: triviaScanner.getToken() }; let comment = sourceText.substring(range.pos, range.end); let referencePathMatchResult = getFileReferenceFromReferencePath(comment, range); diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 69faeda2db0..46466478029 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 let version = "1.5.0"; + export const version = "1.5.0"; export function findConfigFile(searchPath: string): string { var fileName = "tsconfig.json"; diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 3a208698c25..327fb5261a0 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -2,11 +2,12 @@ /// module ts { - + /* @internal */ export interface ErrorCallback { (message: DiagnosticMessage, length: number): void; } + /* @internal */ export interface Scanner { getStartPos(): number; getToken(): SyntaxKind; @@ -262,6 +263,7 @@ module ts { return textToToken[s]; } + /* @internal */ export function computeLineStarts(text: string): number[] { let result: number[] = new Array(); let pos = 0; @@ -293,15 +295,18 @@ module ts { return computePositionOfLineAndCharacter(getLineStarts(sourceFile), line, character); } + /* @internal */ export function computePositionOfLineAndCharacter(lineStarts: number[], line: number, character: number): number { Debug.assert(line >= 0 && line < lineStarts.length); return lineStarts[line] + character; } + /* @internal */ export function getLineStarts(sourceFile: SourceFile): number[] { return sourceFile.lineMap || (sourceFile.lineMap = computeLineStarts(sourceFile.text)); } + /* @internal */ export function computeLineAndCharacterOfPosition(lineStarts: number[], position: number) { let lineNumber = binarySearch(lineStarts, position); if (lineNumber < 0) { @@ -362,10 +367,12 @@ module ts { return ch >= CharacterCodes._0 && ch <= CharacterCodes._9; } + /* @internal */ export function isOctalDigit(ch: number): boolean { return ch >= CharacterCodes._0 && ch <= CharacterCodes._7; } + /* @internal */ export function skipTrivia(text: string, pos: number, stopAfterLineBreak?: boolean): number { while (true) { let ch = text.charCodeAt(pos); @@ -523,6 +530,7 @@ module ts { let nextChar = text.charCodeAt(pos + 1); let hasTrailingNewLine = false; if (nextChar === CharacterCodes.slash || nextChar === CharacterCodes.asterisk) { + let kind = nextChar === CharacterCodes.slash ? SyntaxKind.SingleLineCommentTrivia : SyntaxKind.MultiLineCommentTrivia; let startPos = pos; pos += 2; if (nextChar === CharacterCodes.slash) { @@ -548,7 +556,7 @@ module ts { result = []; } - result.push({ pos: startPos, end: pos, hasTrailingNewLine: hasTrailingNewLine }); + result.push({ pos: startPos, end: pos, hasTrailingNewLine, kind }); } continue; } @@ -587,6 +595,7 @@ module ts { ch > CharacterCodes.maxAsciiCharacter && isUnicodeIdentifierPart(ch, languageVersion); } + /* @internal */ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, text?: string, onError?: ErrorCallback): Scanner { let pos: number; // Current position (end position of text of current token) let len: number; // Length of text diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index f89c474ce7f..f9daf52c5f2 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -6,17 +6,17 @@ module ts { newLine: string; useCaseSensitiveFileNames: boolean; write(s: string): void; - readFile(fileName: string, encoding?: string): string; - writeFile(fileName: string, data: string, writeByteOrderMark?: boolean): void; - watchFile? (fileName: string, callback: (fileName: string) => void): FileWatcher; + readFile(path: string, encoding?: string): string; + writeFile(path: string, data: string, writeByteOrderMark?: boolean): void; + watchFile?(path: string, callback: (path: string) => void): FileWatcher; resolvePath(path: string): string; fileExists(path: string): boolean; directoryExists(path: string): boolean; - createDirectory(directoryName: string): void; + createDirectory(path: string): void; getExecutingFilePath(): string; getCurrentDirectory(): string; readDirectory(path: string, extension?: string): string[]; - getMemoryUsage? (): number; + getMemoryUsage?(): number; exit(exitCode?: number): void; } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 74777057963..43c210331a5 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -320,6 +320,7 @@ module ts { BlockScoped = Let | Const } + /* @internal */ export const enum ParserContextFlags { // Set if this node was parsed in strict mode. Used for grammar error checks, as well as // checking if the node can be reused in incremental settings. @@ -355,6 +356,7 @@ module ts { HasAggregatedChildData = 1 << 7 } + /* @internal */ export const enum RelationComparisonResult { Succeeded = 1, // Should be truthy Failed = 2, @@ -366,15 +368,15 @@ module ts { flags: NodeFlags; // Specific context the parser was in when this node was created. Normally undefined. // Only set when the parser was in some interesting context (like async/yield). - parserContextFlags?: ParserContextFlags; - decorators?: NodeArray; // Array of decorators (in document order) - modifiers?: ModifiersArray; // Array of modifiers - id?: number; // Unique id (used to look up NodeLinks) - parent?: Node; // Parent node (initialized by binding) - symbol?: Symbol; // Symbol declared by node (initialized by binding) - locals?: SymbolTable; // Locals associated with node (initialized by binding) - nextContainer?: Node; // Next container in declaration order (initialized by binding) - localSymbol?: Symbol; // Local symbol declared by node (initialized by binding only for exported nodes) + /* @internal */ parserContextFlags?: ParserContextFlags; + decorators?: NodeArray; // Array of decorators (in document order) + modifiers?: ModifiersArray; // Array of modifiers + /* @internal */ id?: number; // Unique id (used to look up NodeLinks) + parent?: Node; // Parent node (initialized by binding) + /* @internal */ symbol?: Symbol; // Symbol declared by node (initialized by binding) + /* @internal */ locals?: SymbolTable; // Locals associated with node (initialized by binding) + /* @internal */ nextContainer?: Node; // Next container in declaration order (initialized by binding) + /* @internal */ localSymbol?: Symbol; // Local symbol declared by node (initialized by binding only for exported nodes) } export interface NodeArray extends Array, TextRange { @@ -386,7 +388,8 @@ module ts { } export interface Identifier extends PrimaryExpression { - text: string; // Text of identifier (with escapes converted to characters) + text: string; // Text of identifier (with escapes converted to characters) + originalKeywordKind?: SyntaxKind; // Original syntaxKind which get set so that we can report an error later } export interface QualifiedName extends Node { @@ -975,8 +978,7 @@ module ts { export interface ExportAssignment extends Declaration, ModuleElement { isExportEquals?: boolean; - expression?: Expression; - type?: TypeNode; + expression: Expression; } export interface FileReference extends TextRange { @@ -985,6 +987,7 @@ module ts { export interface CommentRange extends TextRange { hasTrailingNewLine?: boolean; + kind: SyntaxKind; } // Source files are declarations when they are external modules. @@ -1001,11 +1004,12 @@ module ts { hasNoDefaultLib: boolean; - // The first node that causes this file to be an external module - externalModuleIndicator: Node; languageVersion: ScriptTarget; - identifiers: Map; + // The first node that causes this file to be an external module + /* @internal */ externalModuleIndicator: Node; + + /* @internal */ identifiers: Map; /* @internal */ nodeCount: number; /* @internal */ identifierCount: number; /* @internal */ symbolCount: number; @@ -1033,6 +1037,9 @@ module ts { } export interface Program extends ScriptReferenceHost { + /** + * Get a list of files in the program + */ getSourceFiles(): SourceFile[]; /** @@ -1052,10 +1059,12 @@ module ts { getSemanticDiagnostics(sourceFile?: SourceFile): Diagnostic[]; getDeclarationDiagnostics(sourceFile?: SourceFile): Diagnostic[]; - // Gets a type checker that can be used to semantically analyze source fils in the program. + /** + * Gets a type checker that can be used to semantically analyze source fils in the program. + */ getTypeChecker(): TypeChecker; - getCommonSourceDirectory(): string; + /* @internal */ getCommonSourceDirectory(): string; // For testing purposes only. Should not be used by any other consumers (including the // language service). @@ -1068,12 +1077,18 @@ module ts { } export interface SourceMapSpan { - emittedLine: number; // Line number in the .js file - emittedColumn: number; // Column number in the .js file - sourceLine: number; // Line number in the .ts file - sourceColumn: number; // Column number in the .ts file - nameIndex?: number; // Optional name (index into names array) associated with this span - sourceIndex: number; // .ts file (index into sources array) associated with this span*/ + /** Line number in the .js file. */ + emittedLine: number; + /** Column number in the .js file. */ + emittedColumn: number; + /** Line number in the .ts file. */ + sourceLine: number; + /** Column number in the .ts file. */ + sourceColumn: number; + /** Optional name (index into names array) associated with this span. */ + nameIndex?: number; + /** .ts file (index into sources array) associated with this span */ + sourceIndex: number; } export interface SourceMapData { @@ -1088,7 +1103,7 @@ module ts { sourceMapDecodedMappings: SourceMapSpan[]; // Raw source map spans that were encoded into the sourceMapMappings } - // Return code used by getEmitOutput function to indicate status of the function + /** Return code used by getEmitOutput function to indicate status of the function */ export enum ExitStatus { // Compiler ran successfully. Either this was a simple do-nothing compilation (for example, // when -version or -help was provided, or this was a normal compilation, no diagnostics @@ -1105,7 +1120,7 @@ module ts { export interface EmitResult { emitSkipped: boolean; diagnostics: Diagnostic[]; - sourceMaps: SourceMapData[]; // Array of sourceMapData if compiler emitted sourcemaps + /* @internal */ sourceMaps: SourceMapData[]; // Array of sourceMapData if compiler emitted sourcemaps } export interface TypeCheckerHost { @@ -1124,8 +1139,6 @@ module ts { getIndexTypeOfType(type: Type, kind: IndexKind): Type; getReturnTypeOfSignature(signature: Signature): Type; - // If 'predicate' is supplied, then only the first symbol in scope matching the predicate - // will be returned. Otherwise, all symbols in scope will be returned. getSymbolsInScope(location: Node, meaning: SymbolFlags): Symbol[]; getSymbolAtLocation(node: Node): Symbol; getShorthandAssignmentValueSymbol(location: Node): Symbol; @@ -1217,14 +1230,17 @@ module ts { UseOnlyExternalAliasing = 0x00000002, } + /* @internal */ export const enum SymbolAccessibility { Accessible, NotAccessible, CannotBeNamed } + /* @internal */ export type AnyImportSyntax = ImportDeclaration | ImportEqualsDeclaration; + /* @internal */ export interface SymbolVisibilityResult { accessibility: SymbolAccessibility; aliasesToMakeVisible?: AnyImportSyntax[]; // aliases that need to have this symbol visible @@ -1232,10 +1248,12 @@ module ts { errorNode?: Node; // optional node that results in error } + /* @internal */ export interface SymbolAccessiblityResult extends SymbolVisibilityResult { errorModuleName?: string // If the symbol is not visible from module, module's name } + /* @internal */ export interface EmitResolver { hasGlobalName(name: string): boolean; getExpressionNameSubstitution(node: Identifier, getGeneratedNameForNode: (node: Node) => string): string; @@ -1340,19 +1358,20 @@ module ts { } export interface Symbol { - flags: SymbolFlags; // Symbol flags - name: string; // Name of symbol - id?: number; // Unique id (used to look up SymbolLinks) - mergeId?: number; // Merge id (used to look up merged symbol) - declarations?: Declaration[]; // Declarations associated with this symbol - parent?: Symbol; // Parent symbol - members?: SymbolTable; // Class, interface or literal instance members - exports?: SymbolTable; // Module exports - exportSymbol?: Symbol; // Exported symbol associated with this symbol - valueDeclaration?: Declaration // First value declaration of the symbol - constEnumOnlyModule?: boolean // True if module contains only const enums or other modules with only const enums + flags: SymbolFlags; // Symbol flags + name: string; // Name of symbol + /* @internal */ id?: number; // Unique id (used to look up SymbolLinks) + /* @internal */ mergeId?: number; // Merge id (used to look up merged symbol) + declarations?: Declaration[]; // Declarations associated with this symbol + /* @internal */ parent?: Symbol; // Parent symbol + members?: SymbolTable; // Class, interface or literal instance members + exports?: SymbolTable; // Module exports + /* @internal */ exportSymbol?: Symbol; // Exported symbol associated with this symbol + valueDeclaration?: Declaration; // First value declaration of the symbol + /* @internal */ constEnumOnlyModule?: boolean; // True if module contains only const enums or other modules with only const enums } + /* @internal */ export interface SymbolLinks { target?: Symbol; // Resolved (non-alias) target of an alias type?: Type; // Type of value symbol @@ -1364,12 +1383,14 @@ module ts { exportsChecked?: boolean; // True if exports of external module have been checked } + /* @internal */ export interface TransientSymbol extends Symbol, SymbolLinks { } export interface SymbolTable { [index: string]: Symbol; } + /* @internal */ export const enum NodeCheckFlags { TypeChecked = 0x00000001, // Node has been type checked LexicalThis = 0x00000002, // Lexical 'this' reference @@ -1386,6 +1407,7 @@ module ts { EmitParam = 0x00000400, // Emit __param helper for decorators } + /* @internal */ export interface NodeLinks { resolvedType?: Type; // Cached type of type node resolvedSignature?: Signature; // Cached signature of signature node or call expression @@ -1418,27 +1440,34 @@ module ts { Tuple = 0x00002000, // Tuple Union = 0x00004000, // Union Anonymous = 0x00008000, // Anonymous + /* @internal */ FromSignature = 0x00010000, // Created for signature assignment check ObjectLiteral = 0x00020000, // Originates in an object literal + /* @internal */ ContainsUndefinedOrNull = 0x00040000, // Type is or contains Undefined or Null type - ContainsObjectLiteral = 0x00080000, // Type is or contains object literal type + /* @internal */ + ContainsObjectLiteral = 0x00080000, // Type is or contains object literal type ESSymbol = 0x00100000, // Type of symbol primitive introduced in ES6 + /* @internal */ Intrinsic = Any | String | Number | Boolean | ESSymbol | Void | Undefined | Null, + /* @internal */ Primitive = String | Number | Boolean | ESSymbol | Void | Undefined | Null | StringLiteral | Enum, StringLike = String | StringLiteral, NumberLike = Number | Enum, ObjectType = Class | Interface | Reference | Tuple | Anonymous, + /* @internal */ RequiresWidening = ContainsUndefinedOrNull | ContainsObjectLiteral } // Properties common to all types export interface Type { - flags: TypeFlags; // Flags - id: number; // Unique ID - symbol?: Symbol; // Symbol associated with type (if any) + flags: TypeFlags; // Flags + /* @internal */ id: number; // Unique ID + symbol?: Symbol; // Symbol associated with type (if any) } + /* @internal */ // Intrinsic types (TypeFlags.Intrinsic) export interface IntrinsicType extends Type { intrinsicName: string; // Name of intrinsic type @@ -1471,6 +1500,7 @@ module ts { // Generic class and interface types export interface GenericType extends InterfaceType, TypeReference { + /* @internal */ instantiations: Map; // Generic instantiation cache } @@ -1481,9 +1511,11 @@ module ts { export interface UnionType extends Type { types: Type[]; // Constituent types + /* @internal */ resolvedProperties: SymbolTable; // Cache of resolved properties } + /* @internal */ // Resolved object or union type export interface ResolvedType extends ObjectType, UnionType { members: SymbolTable; // Properties by name @@ -1497,7 +1529,9 @@ module ts { // Type parameters (TypeFlags.TypeParameter) export interface TypeParameter extends Type { constraint: Type; // Constraint + /* @internal */ target?: TypeParameter; // Instantiation target + /* @internal */ mapper?: TypeMapper; // Instantiation mapper } @@ -1510,14 +1544,23 @@ module ts { declaration: SignatureDeclaration; // Originating declaration typeParameters: TypeParameter[]; // Type parameters (undefined if non-generic) parameters: Symbol[]; // Parameters + /* @internal */ resolvedReturnType: Type; // Resolved return type + /* @internal */ minArgumentCount: number; // Number of non-optional parameters + /* @internal */ hasRestParameter: boolean; // True if last parameter is rest parameter + /* @internal */ hasStringLiterals: boolean; // True if specialized + /* @internal */ target?: Signature; // Instantiation target + /* @internal */ mapper?: TypeMapper; // Instantiation mapper + /* @internal */ unionSignatures?: Signature[]; // Underlying signatures of a union signature + /* @internal */ erasedSignatureCache?: Signature; // Erased version of signature (deferred) + /* @internal */ isolatedSignatureType?: ObjectType; // A manufactured type that just contains the signature for purposes of signature comparison } @@ -1526,11 +1569,12 @@ module ts { Number, } + /* @internal */ export interface TypeMapper { (t: Type): Type; } - // @internal + /* @internal */ export interface TypeInferences { primary: Type[]; // Inferences made directly to a type parameter secondary: Type[]; // Inferences made to a type parameter in a union type @@ -1538,7 +1582,7 @@ module ts { // If a type parameter is fixed, no more inferences can be made for the type parameter } - // @internal + /* @internal */ export interface InferenceContext { typeParameters: TypeParameter[]; // Type parameters for which inferences are made inferUnionTypes: boolean; // Infer union types for disjoint candidates (otherwise undefinedType) @@ -1554,10 +1598,12 @@ module ts { code: number; } - // A linked list of formatted diagnostic messages to be used as part of a multiline message. - // It is built from the bottom up, leaving the head to be the "main" diagnostic. - // While it seems that DiagnosticMessageChain is structurally similar to DiagnosticMessage, - // the difference is that messages are all preformatted in DMC. + /** + * A linked list of formatted diagnostic messages to be used as part of a multiline message. + * It is built from the bottom up, leaving the head to be the "main" diagnostic. + * While it seems that DiagnosticMessageChain is structurally similar to DiagnosticMessage, + * the difference is that messages are all preformatted in DMC. + */ export interface DiagnosticMessageChain { messageText: string; category: DiagnosticCategory; @@ -1641,6 +1687,7 @@ module ts { errors: Diagnostic[]; } + /* @internal */ export interface CommandLineOption { name: string; type: string | Map; // "string", "number", "boolean", or an object literal mapping named values to actual values @@ -1652,6 +1699,7 @@ module ts { experimental?: boolean; } + /* @internal */ export const enum CharacterCodes { nullCharacter = 0, maxAsciiCharacter = 0x7F, @@ -1813,7 +1861,7 @@ module ts { newLength: number; } - // @internal + /* @internal */ export interface DiagnosticCollection { // Adds a diagnostic to this diagnostic collection. add(diagnostic: Diagnostic): void; diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 4df840c3241..b0c50fc7f66 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -1,5 +1,6 @@ /// +/* @internal */ module ts { export interface ReferencePathMatchResult { fileReference?: FileReference @@ -160,6 +161,14 @@ module ts { return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.pos); } + export function getNonDecoratorTokenPosOfNode(node: Node, sourceFile?: SourceFile): number { + if (nodeIsMissing(node) || !node.decorators) { + return getTokenPosOfNode(node, sourceFile); + } + + return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.decorators.end); + } + export function getSourceTextOfNodeFromSourceFile(sourceFile: SourceFile, node: Node): string { if (nodeIsMissing(node)) { return ""; @@ -780,6 +789,8 @@ module ts { return node === (parent).expression; case SyntaxKind.ComputedPropertyName: return node === (parent).expression; + case SyntaxKind.Decorator: + return true; default: if (isExpression(parent)) { return true; @@ -1368,7 +1379,7 @@ module ts { return node; } - // @internal + /* @internal */ export function createDiagnosticCollection(): DiagnosticCollection { let nonFileDiagnostics: Diagnostic[] = []; let fileDiagnostics: Map = {}; diff --git a/src/harness/harnessLanguageService.ts b/src/harness/harnessLanguageService.ts index 299ba52bdeb..bce4c9828fa 100644 --- a/src/harness/harnessLanguageService.ts +++ b/src/harness/harnessLanguageService.ts @@ -336,6 +336,9 @@ module Harness.LanguageService { getOccurrencesAtPosition(fileName: string, position: number): ts.ReferenceEntry[] { return unwrapJSONCallResult(this.shim.getOccurrencesAtPosition(fileName, position)); } + getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): ts.DocumentHighlights[] { + return unwrapJSONCallResult(this.shim.getDocumentHighlights(fileName, position, JSON.stringify(filesToSearch))); + } getNavigateToItems(searchValue: string): ts.NavigateToItem[] { return unwrapJSONCallResult(this.shim.getNavigateToItems(searchValue)); } diff --git a/src/harness/typeWriter.ts b/src/harness/typeWriter.ts index a83c04e6e86..736974c49a1 100644 --- a/src/harness/typeWriter.ts +++ b/src/harness/typeWriter.ts @@ -1,6 +1,5 @@ interface TypeWriterResult { line: number; - column: number; syntaxKind: number; sourceText: string; type: string; @@ -29,89 +28,43 @@ class TypeWriterWalker { } private visitNode(node: ts.Node): void { - switch (node.kind) { - // Should always log expressions that are not tokens - // Also, always log the "this" keyword - // TODO: Ideally we should log all expressions, but to compare to the - // old typeWriter baselines, suppress tokens - case ts.SyntaxKind.ThisKeyword: - case ts.SyntaxKind.SuperKeyword: - case ts.SyntaxKind.ArrayLiteralExpression: - case ts.SyntaxKind.ObjectLiteralExpression: - case ts.SyntaxKind.ElementAccessExpression: - case ts.SyntaxKind.CallExpression: - case ts.SyntaxKind.NewExpression: - case ts.SyntaxKind.TypeAssertionExpression: - case ts.SyntaxKind.ParenthesizedExpression: - case ts.SyntaxKind.FunctionExpression: - case ts.SyntaxKind.ArrowFunction: - case ts.SyntaxKind.TypeOfExpression: - case ts.SyntaxKind.VoidExpression: - case ts.SyntaxKind.DeleteExpression: - case ts.SyntaxKind.PrefixUnaryExpression: - case ts.SyntaxKind.PostfixUnaryExpression: - case ts.SyntaxKind.BinaryExpression: - case ts.SyntaxKind.ConditionalExpression: - this.log(node, this.getTypeOfNode(node)); - break; - - case ts.SyntaxKind.PropertyAccessExpression: - for (var current = node; current.kind === ts.SyntaxKind.PropertyAccessExpression; current = current.parent) { - } - if (current.kind !== ts.SyntaxKind.HeritageClauseElement) { - this.log(node, this.getTypeOfNode(node)); - } - break; - - // Should not change expression status (maybe expressions) - // TODO: Again, ideally should log number and string literals too, - // but to be consistent with the old typeWriter, just log identifiers - case ts.SyntaxKind.Identifier: - var identifier = node; - if (!this.isLabel(identifier)) { - var type = this.getTypeOfNode(identifier); - this.log(node, type); - } - break; + if (ts.isExpression(node) || node.kind === ts.SyntaxKind.Identifier) { + this.logTypeAndSymbol(node); } ts.forEachChild(node, child => this.visitNode(child)); } - private isLabel(identifier: ts.Identifier): boolean { - var parent = identifier.parent; - switch (parent.kind) { - case ts.SyntaxKind.ContinueStatement: - case ts.SyntaxKind.BreakStatement: - return (parent).label === identifier; - case ts.SyntaxKind.LabeledStatement: - return (parent).label === identifier; - } - return false; - } - - private log(node: ts.Node, type: ts.Type): void { + private logTypeAndSymbol(node: ts.Node): void { var actualPos = ts.skipTrivia(this.currentSourceFile.text, node.pos); var lineAndCharacter = this.currentSourceFile.getLineAndCharacterOfPosition(actualPos); var sourceText = ts.getTextOfNodeFromSourceText(this.currentSourceFile.text, node); - - // If we got an unknown type, we temporarily want to fall back to just pretending the name - // (source text) of the node is the type. This is to align with the old typeWriter to make - // baseline comparisons easier. In the long term, we will want to just call typeToString - this.results.push({ - line: lineAndCharacter.line, - // todo(cyrusn): Not sure why column is one-based for type-writer. But I'm preserving - // that behavior to prevent having a lot of baselines to fix up. - column: lineAndCharacter.character + 1, - syntaxKind: node.kind, - sourceText: sourceText, - type: this.checker.typeToString(type, node.parent, ts.TypeFormatFlags.NoTruncation | ts.TypeFormatFlags.WriteOwnNameForAnyLike) - }); - } - private getTypeOfNode(node: ts.Node): ts.Type { var type = this.checker.getTypeAtLocation(node); ts.Debug.assert(type !== undefined, "type doesn't exist"); - return type; + var symbol = this.checker.getSymbolAtLocation(node); + + var typeString = this.checker.typeToString(type, node.parent, ts.TypeFormatFlags.NoTruncation); + if (symbol) { + var symbolString = "Symbol(" + this.checker.symbolToString(symbol, node.parent); + if (symbol.declarations) { + for (let declaration of symbol.declarations) { + symbolString += ", "; + let declSourceFile = declaration.getSourceFile(); + let declLineAndCharacter = declSourceFile.getLineAndCharacterOfPosition(declaration.pos); + symbolString += `Decl(${ ts.getBaseFileName(declSourceFile.fileName) }, ${ declLineAndCharacter.line }, ${ declLineAndCharacter.character })` + } + } + symbolString += ")"; + + typeString += ", " + symbolString; + } + + this.results.push({ + line: lineAndCharacter.line, + syntaxKind: node.kind, + sourceText: sourceText, + type: typeString + }); } } diff --git a/src/lib/core.d.ts b/src/lib/core.d.ts index 3d830ae5203..822b7ca5202 100644 --- a/src/lib/core.d.ts +++ b/src/lib/core.d.ts @@ -823,7 +823,7 @@ interface RegExp { */ test(string: string): boolean; - /** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */ + /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */ source: string; /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */ diff --git a/src/lib/es6.d.ts b/src/lib/es6.d.ts index 8590e2273e0..b81a3341a6c 100644 --- a/src/lib/es6.d.ts +++ b/src/lib/es6.d.ts @@ -50,26 +50,21 @@ interface SymbolConstructor { */ isConcatSpreadable: symbol; - /** - * A Boolean value that if true indicates that an object may be used as a regular expression. - */ - isRegExp: symbol; - /** * A method that returns the default iterator for an object.Called by the semantics of the - * for-of statement. + * for-of statement. */ iterator: symbol; /** * A method that converts an object to a corresponding primitive value.Called by the ToPrimitive - * abstract operation. + * abstract operation. */ toPrimitive: symbol; /** - * A String value that is used in the creation of the default string description of an object. - * Called by the built- in method Object.prototype.toString. + * A String value that is used in the creation of the default string description of an object. + * Called by the built-in method Object.prototype.toString. */ toStringTag: symbol; @@ -111,7 +106,7 @@ interface ObjectConstructor { getOwnPropertySymbols(o: any): symbol[]; /** - * Returns true if the values are the same value, false otherwise. + * Returns true if the values are the same value, false otherwise. * @param value1 The first value. * @param value2 The second value. */ @@ -598,8 +593,6 @@ interface Math { } interface RegExp { - [Symbol.isRegExp]: boolean; - /** * Matches a string with a regular expression, and returns an array containing the results of * that search. @@ -631,6 +624,20 @@ interface RegExp { */ split(string: string, limit?: number): string[]; + /** + * Returns a string indicating the flags of the regular expression in question. This field is read-only. + * The characters in this string are sequenced and concatenated in the following order: + * + * - "g" for global + * - "i" for ignoreCase + * - "m" for multiline + * - "u" for unicode + * - "y" for sticky + * + * If no flags are set, the value is the empty string. + */ + flags: string; + /** * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular * expression. Default is false. Read-only. diff --git a/src/server/client.ts b/src/server/client.ts index d395d2a832c..9d71f627005 100644 --- a/src/server/client.ts +++ b/src/server/client.ts @@ -104,7 +104,7 @@ module ts.server { var response: T = JSON.parse(responseBody); } catch (e) { - throw new Error("Malformed response: Failed to parse server response: " + lastMessage + ". \r\n Error detailes: " + e.message); + throw new Error("Malformed response: Failed to parse server response: " + lastMessage + ". \r\n Error details: " + e.message); } // verify the sequence numbers @@ -446,6 +446,7 @@ module ts.server { if (!response.body) { return undefined; } + var helpItems: protocol.SignatureHelpItems = response.body; var span = helpItems.applicableSpan; var start = this.lineOffsetToPosition(fileName, span.start); @@ -465,6 +466,29 @@ module ts.server { } getOccurrencesAtPosition(fileName: string, position: number): ReferenceEntry[] { + var lineOffset = this.positionToOneBasedLineOffset(fileName, position); + var args: protocol.FileLocationRequestArgs = { + file: fileName, + line: lineOffset.line, + offset: lineOffset.offset, + }; + + var request = this.processRequest(CommandNames.Occurrences, args); + var response = this.processResponse(request); + + return response.body.map(entry => { + var fileName = entry.file; + var start = this.lineOffsetToPosition(fileName, entry.start); + var end = this.lineOffsetToPosition(fileName, entry.end); + return { + fileName, + textSpan: ts.createTextSpanFromBounds(start, end), + isWriteAccess: entry.isWriteAccess, + }; + }); + } + + getDocumentHighlights(fileName: string, position: number): DocumentHighlights[] { throw new Error("Not Implemented Yet."); } diff --git a/src/server/protocol.d.ts b/src/server/protocol.d.ts index 1d685be5d3a..5bc1ffbe4dc 100644 --- a/src/server/protocol.d.ts +++ b/src/server/protocol.d.ts @@ -165,6 +165,25 @@ declare module ts.server.protocol { body?: FileSpan[]; } + /** + * Get occurrences request; value of command field is + * "occurrences". Return response giving spans that are relevant + * in the file at a given line and column. + */ + export interface OccurrencesRequest extends FileLocationRequest { + } + + export interface OccurrencesResponseItem extends FileSpan { + /** + * True if the occurrence is a write location, false otherwise. + */ + isWriteAccess: boolean; + } + + export interface OccurrencesResponse extends Response { + body?: OccurrencesResponseItem[]; + } + /** * Find references request; value of command field is * "references". Return response giving the file locations that diff --git a/src/server/session.ts b/src/server/session.ts index 560f5869c08..faedce0e1af 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -89,6 +89,7 @@ module ts.server { export var Geterr = "geterr"; export var NavBar = "navbar"; export var Navto = "navto"; + export var Occurrences = "occurrences"; export var Open = "open"; export var Quickinfo = "quickinfo"; export var References = "references"; @@ -284,6 +285,36 @@ module ts.server { })); } + getOccurrences(line: number, offset: number, fileName: string): protocol.OccurrencesResponseItem[] { + fileName = ts.normalizePath(fileName); + let project = this.projectService.getProjectForFile(fileName); + + if (!project) { + throw Errors.NoProject; + } + + let { compilerService } = project; + let position = compilerService.host.lineOffsetToPosition(fileName, line, offset); + + let occurrences = compilerService.languageService.getOccurrencesAtPosition(fileName, position); + + if (!occurrences) { + return undefined; + } + + return occurrences.map(occurrence => { + let { fileName, isWriteAccess, textSpan } = occurrence; + let start = compilerService.host.positionToLineOffset(fileName, textSpan.start); + let end = compilerService.host.positionToLineOffset(fileName, ts.textSpanEnd(textSpan)); + return { + start, + end, + file: fileName, + isWriteAccess + } + }); + } + getRenameLocations(line: number, offset: number, fileName: string,findInComments: boolean, findInStrings: boolean): protocol.RenameResponseBody { var file = ts.normalizePath(fileName); var project = this.projectService.getProjectForFile(file); @@ -378,7 +409,7 @@ module ts.server { var nameSpan = nameInfo.textSpan; var nameColStart = compilerService.host.positionToLineOffset(file, nameSpan.start).offset; var nameText = compilerService.host.getScriptSnapshot(file).getText(nameSpan.start, ts.textSpanEnd(nameSpan)); - var bakedRefs: protocol.ReferencesResponseItem[] = references.map((ref) => { + var bakedRefs: protocol.ReferencesResponseItem[] = references.map(ref => { var start = compilerService.host.positionToLineOffset(ref.fileName, ref.textSpan.start); var refLineSpan = compilerService.host.lineToTextSpan(ref.fileName, start.line - 1); var snap = compilerService.host.getScriptSnapshot(ref.fileName); @@ -884,6 +915,11 @@ module ts.server { response = this.getNavigationBarItems(navBarArgs.file); break; } + case CommandNames.Occurrences: { + var { line, offset, file: fileName } = request.arguments; + response = this.getOccurrences(line, offset, fileName); + break; + } default: { this.projectService.log("Unrecognized JSON command: " + message); this.output(undefined, CommandNames.Unknown, request.seq, "Unrecognized JSON command: " + request.command); diff --git a/src/services/breakpoints.ts b/src/services/breakpoints.ts index 395141cc4cc..caed0582c33 100644 --- a/src/services/breakpoints.ts +++ b/src/services/breakpoints.ts @@ -3,6 +3,7 @@ /// +/* @internal */ module ts.BreakpointResolver { /** * Get the breakpoint span in given sourceFile @@ -173,10 +174,6 @@ module ts.BreakpointResolver { return textSpan(node, (node).expression); case SyntaxKind.ExportAssignment: - if (!(node).expression) { - return undefined; - } - // span on export = id return textSpan(node, (node).expression); diff --git a/src/services/formatting/formatting.ts b/src/services/formatting/formatting.ts index 6a5ed25459e..751f1a94027 100644 --- a/src/services/formatting/formatting.ts +++ b/src/services/formatting/formatting.ts @@ -3,6 +3,7 @@ /// /// +/* @internal */ module ts.formatting { export interface TextRangeWithKind extends TextRange { @@ -328,8 +329,13 @@ module ts.formatting { if (formattingScanner.isOnToken()) { let startLine = sourceFile.getLineAndCharacterOfPosition(enclosingNode.getStart(sourceFile)).line; + let undecoratedStartLine = startLine; + if (enclosingNode.decorators) { + undecoratedStartLine = sourceFile.getLineAndCharacterOfPosition(getNonDecoratorTokenPosOfNode(enclosingNode, sourceFile)).line; + } + let delta = getOwnOrInheritedDelta(enclosingNode, options, sourceFile); - processNode(enclosingNode, enclosingNode, startLine, initialIndentation, delta); + processNode(enclosingNode, enclosingNode, startLine, undecoratedStartLine, initialIndentation, delta); } formattingScanner.close(); @@ -500,7 +506,7 @@ module ts.formatting { } } - function processNode(node: Node, contextNode: Node, nodeStartLine: number, indentation: number, delta: number) { + function processNode(node: Node, contextNode: Node, nodeStartLine: number, undecoratedNodeStartLine: number, indentation: number, delta: number) { if (!rangeOverlapsWithStartEnd(originalRange, node.getStart(sourceFile), node.getEnd())) { return; } @@ -526,7 +532,7 @@ module ts.formatting { forEachChild( node, child => { - processChildNode(child, /*inheritedIndentation*/ Constants.Unknown, node, nodeDynamicIndentation, nodeStartLine, /*isListElement*/ false) + processChildNode(child, /*inheritedIndentation*/ Constants.Unknown, node, nodeDynamicIndentation, nodeStartLine, undecoratedNodeStartLine, /*isListElement*/ false) }, (nodes: NodeArray) => { processChildNodes(nodes, node, nodeStartLine, nodeDynamicIndentation); @@ -547,11 +553,17 @@ module ts.formatting { parent: Node, parentDynamicIndentation: DynamicIndentation, parentStartLine: number, + undecoratedParentStartLine: number, isListItem: boolean): number { let childStartPos = child.getStart(sourceFile); - let childStart = sourceFile.getLineAndCharacterOfPosition(childStartPos); + let childStartLine = sourceFile.getLineAndCharacterOfPosition(childStartPos).line; + + let undecoratedChildStartLine = childStartLine; + if (child.decorators) { + undecoratedChildStartLine = sourceFile.getLineAndCharacterOfPosition(getNonDecoratorTokenPosOfNode(child, sourceFile)).line; + } // if child is a list item - try to get its indentation let childIndentationAmount = Constants.Unknown; @@ -594,9 +606,10 @@ module ts.formatting { return inheritedIndentation; } - let childIndentation = computeIndentation(child, childStart.line, childIndentationAmount, node, parentDynamicIndentation, parentStartLine); + let effectiveParentStartLine = child.kind === SyntaxKind.Decorator ? childStartLine : undecoratedParentStartLine; + let childIndentation = computeIndentation(child, childStartLine, childIndentationAmount, node, parentDynamicIndentation, effectiveParentStartLine); - processNode(child, childContextNode, childStart.line, childIndentation.indentation, childIndentation.delta); + processNode(child, childContextNode, childStartLine, undecoratedChildStartLine, childIndentation.indentation, childIndentation.delta); childContextNode = node; @@ -640,7 +653,7 @@ module ts.formatting { let inheritedIndentation = Constants.Unknown; for (let child of nodes) { - inheritedIndentation = processChildNode(child, inheritedIndentation, node, listDynamicIndentation, startLine, /*isListElement*/ true) + inheritedIndentation = processChildNode(child, inheritedIndentation, node, listDynamicIndentation, startLine, startLine, /*isListElement*/ true) } if (listEndToken !== SyntaxKind.Unknown) { diff --git a/src/services/formatting/formattingContext.ts b/src/services/formatting/formattingContext.ts index 8683a975777..84c09b86bb9 100644 --- a/src/services/formatting/formattingContext.ts +++ b/src/services/formatting/formattingContext.ts @@ -1,20 +1,6 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// +/* @internal */ module ts.formatting { export class FormattingContext { public currentTokenSpan: TextRangeWithKind; diff --git a/src/services/formatting/formattingRequestKind.ts b/src/services/formatting/formattingRequestKind.ts index a66169c1e7c..4bdc83ffd45 100644 --- a/src/services/formatting/formattingRequestKind.ts +++ b/src/services/formatting/formattingRequestKind.ts @@ -1,20 +1,6 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// +/* @internal */ module ts.formatting { export const enum FormattingRequestKind { FormatDocument, diff --git a/src/services/formatting/formattingScanner.ts b/src/services/formatting/formattingScanner.ts index f93739d6fb5..388d9428ffc 100644 --- a/src/services/formatting/formattingScanner.ts +++ b/src/services/formatting/formattingScanner.ts @@ -1,6 +1,7 @@ /// /// +/* @internal */ module ts.formatting { let scanner = createScanner(ScriptTarget.Latest, /*skipTrivia*/ false); diff --git a/src/services/formatting/references.ts b/src/services/formatting/references.ts index b421424a61b..318f10c664e 100644 --- a/src/services/formatting/references.ts +++ b/src/services/formatting/references.ts @@ -1,18 +1,3 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// /// /// diff --git a/src/services/formatting/rule.ts b/src/services/formatting/rule.ts index 356720d2330..f1bb39e69c2 100644 --- a/src/services/formatting/rule.ts +++ b/src/services/formatting/rule.ts @@ -1,20 +1,6 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// +/* @internal */ module ts.formatting { export class Rule { constructor( diff --git a/src/services/formatting/ruleAction.ts b/src/services/formatting/ruleAction.ts index d2890d8e080..e5734b1a03c 100644 --- a/src/services/formatting/ruleAction.ts +++ b/src/services/formatting/ruleAction.ts @@ -1,20 +1,6 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// +/* @internal */ module ts.formatting { export const enum RuleAction { Ignore = 0x00000001, diff --git a/src/services/formatting/ruleDescriptor.ts b/src/services/formatting/ruleDescriptor.ts index 031f88be00e..f3492715f3a 100644 --- a/src/services/formatting/ruleDescriptor.ts +++ b/src/services/formatting/ruleDescriptor.ts @@ -1,20 +1,6 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// +/* @internal */ module ts.formatting { export class RuleDescriptor { constructor(public LeftTokenRange: Shared.TokenRange, public RightTokenRange: Shared.TokenRange) { diff --git a/src/services/formatting/ruleFlag.ts b/src/services/formatting/ruleFlag.ts index aaf70639e01..4e6e002c184 100644 --- a/src/services/formatting/ruleFlag.ts +++ b/src/services/formatting/ruleFlag.ts @@ -1,20 +1,7 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// + +/* @internal */ module ts.formatting { export const enum RuleFlags { None, diff --git a/src/services/formatting/ruleOperation.ts b/src/services/formatting/ruleOperation.ts index 7bd092e9584..1cca437e491 100644 --- a/src/services/formatting/ruleOperation.ts +++ b/src/services/formatting/ruleOperation.ts @@ -1,20 +1,6 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// +/* @internal */ module ts.formatting { export class RuleOperation { public Context: RuleOperationContext; diff --git a/src/services/formatting/ruleOperationContext.ts b/src/services/formatting/ruleOperationContext.ts index dc4e5d4f105..69ed3453a75 100644 --- a/src/services/formatting/ruleOperationContext.ts +++ b/src/services/formatting/ruleOperationContext.ts @@ -1,20 +1,6 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// +/* @internal */ module ts.formatting { export class RuleOperationContext { diff --git a/src/services/formatting/rules.ts b/src/services/formatting/rules.ts index 7d3509ef495..73b586e3706 100644 --- a/src/services/formatting/rules.ts +++ b/src/services/formatting/rules.ts @@ -1,20 +1,6 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// +/* @internal */ module ts.formatting { export class Rules { public getRuleName(rule: Rule) { @@ -208,6 +194,11 @@ module ts.formatting { public SpaceAfterAnonymousFunctionKeyword: Rule; public NoSpaceAfterAnonymousFunctionKeyword: Rule; + // Insert space after @ in decorator + public SpaceBeforeAt: Rule; + public NoSpaceAfterAt: Rule; + public SpaceAfterDecorator: Rule; + constructor() { /// /// Common Rules @@ -344,6 +335,11 @@ module ts.formatting { // Remove spaces in empty interface literals. e.g.: x: {} this.NoSpaceBetweenEmptyInterfaceBraceBrackets = new Rule(RuleDescriptor.create1(SyntaxKind.OpenBraceToken, SyntaxKind.CloseBraceToken), RuleOperation.create2(new RuleOperationContext(Rules.IsSameLineTokenContext, Rules.IsObjectTypeContext), RuleAction.Delete)); + // decorators + this.SpaceBeforeAt = new Rule(RuleDescriptor.create2(Shared.TokenRange.Any, SyntaxKind.AtToken), RuleOperation.create2(new RuleOperationContext(Rules.IsSameLineTokenContext), RuleAction.Space)); + this.NoSpaceAfterAt = new Rule(RuleDescriptor.create3(SyntaxKind.AtToken, Shared.TokenRange.Any), RuleOperation.create2(new RuleOperationContext(Rules.IsSameLineTokenContext), RuleAction.Delete)); + this.SpaceAfterDecorator = new Rule(RuleDescriptor.create4(Shared.TokenRange.Any, Shared.TokenRange.FromTokens([SyntaxKind.Identifier, SyntaxKind.ExportKeyword, SyntaxKind.DefaultKeyword, SyntaxKind.ClassKeyword, SyntaxKind.StaticKeyword, SyntaxKind.PublicKeyword, SyntaxKind.PrivateKeyword, SyntaxKind.ProtectedKeyword, SyntaxKind.GetKeyword, SyntaxKind.SetKeyword, SyntaxKind.OpenBracketToken, SyntaxKind.AsteriskToken])), RuleOperation.create2(new RuleOperationContext(Rules.IsEndOfDecoratorContextOnSameLine), RuleAction.Space)); + // These rules are higher in priority than user-configurable rules. this.HighPriorityCommonRules = [ @@ -381,7 +377,10 @@ module ts.formatting { this.NoSpaceBetweenCloseParenAndAngularBracket, this.NoSpaceAfterOpenAngularBracket, this.NoSpaceBeforeCloseAngularBracket, - this.NoSpaceAfterCloseAngularBracket + this.NoSpaceAfterCloseAngularBracket, + this.SpaceBeforeAt, + this.NoSpaceAfterAt, + this.SpaceAfterDecorator, ]; // These rules are lower in priority than user-configurable rules. @@ -649,6 +648,20 @@ module ts.formatting { return context.TokensAreOnSameLine(); } + static IsEndOfDecoratorContextOnSameLine(context: FormattingContext): boolean { + return context.TokensAreOnSameLine() && + context.contextNode.decorators && + Rules.NodeIsInDecoratorContext(context.currentTokenParent) && + !Rules.NodeIsInDecoratorContext(context.nextTokenParent); + } + + static NodeIsInDecoratorContext(node: Node): boolean { + while (isExpression(node)) { + node = node.parent; + } + return node.kind === SyntaxKind.Decorator; + } + static IsStartOfVariableDeclarationList(context: FormattingContext): boolean { return context.currentTokenParent.kind === SyntaxKind.VariableDeclarationList && context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos; diff --git a/src/services/formatting/rulesMap.ts b/src/services/formatting/rulesMap.ts index b43e91424f8..5aae6f40fcd 100644 --- a/src/services/formatting/rulesMap.ts +++ b/src/services/formatting/rulesMap.ts @@ -1,20 +1,6 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// +/* @internal */ module ts.formatting { export class RulesMap { public map: RulesBucket[]; diff --git a/src/services/formatting/rulesProvider.ts b/src/services/formatting/rulesProvider.ts index 5f63db8630b..0867bcf31c0 100644 --- a/src/services/formatting/rulesProvider.ts +++ b/src/services/formatting/rulesProvider.ts @@ -1,20 +1,6 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// +/* @internal */ module ts.formatting { export class RulesProvider { private globalRules: Rules; diff --git a/src/services/formatting/smartIndenter.ts b/src/services/formatting/smartIndenter.ts index 8508e3b932d..9cd28a40a54 100644 --- a/src/services/formatting/smartIndenter.ts +++ b/src/services/formatting/smartIndenter.ts @@ -1,5 +1,6 @@ /// +/* @internal */ module ts.formatting { export module SmartIndenter { diff --git a/src/services/formatting/tokenRange.ts b/src/services/formatting/tokenRange.ts index f1cdfebc978..712d6f3792e 100644 --- a/src/services/formatting/tokenRange.ts +++ b/src/services/formatting/tokenRange.ts @@ -1,20 +1,6 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - /// +/* @internal */ module ts.formatting { export module Shared { export interface ITokenAccess { diff --git a/src/services/navigateTo.ts b/src/services/navigateTo.ts index cc81031fc04..aec3bdf765f 100644 --- a/src/services/navigateTo.ts +++ b/src/services/navigateTo.ts @@ -1,3 +1,4 @@ +/* @internal */ module ts.NavigateTo { type RawNavigateToItem = { name: string; fileName: string; matchKind: PatternMatchKind; isCaseSensitive: boolean; declaration: Declaration }; diff --git a/src/services/navigationBar.ts b/src/services/navigationBar.ts index e475827837c..8acdbac20c5 100644 --- a/src/services/navigationBar.ts +++ b/src/services/navigationBar.ts @@ -1,5 +1,6 @@ /// +/* @internal */ module ts.NavigationBar { export function getNavigationBarItems(sourceFile: SourceFile): ts.NavigationBarItem[] { // If the source file has any child items, then it included in the tree diff --git a/src/services/outliningElementsCollector.ts b/src/services/outliningElementsCollector.ts index 25e7671bbe4..d413f611209 100644 --- a/src/services/outliningElementsCollector.ts +++ b/src/services/outliningElementsCollector.ts @@ -1,18 +1,4 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - +/* @internal */ module ts { export module OutliningElementsCollector { export function collectElements(sourceFile: SourceFile): OutliningSpan[] { @@ -31,17 +17,81 @@ module ts { } } + function addOutliningSpanComments(commentSpan: CommentRange, autoCollapse: boolean) { + if (commentSpan) { + let span: OutliningSpan = { + textSpan: createTextSpanFromBounds(commentSpan.pos, commentSpan.end), + hintSpan: createTextSpanFromBounds(commentSpan.pos, commentSpan.end), + bannerText: collapseText, + autoCollapse: autoCollapse + }; + elements.push(span); + } + } + + function addOutliningForLeadingCommentsForNode(n: Node) { + let comments = ts.getLeadingCommentRangesOfNode(n, sourceFile); + + if (comments) { + let firstSingleLineCommentStart = -1; + let lastSingleLineCommentEnd = -1; + let isFirstSingleLineComment = true; + let singleLineCommentCount = 0; + + for (let currentComment of comments) { + + // For single line comments, combine consecutive ones (2 or more) into + // a single span from the start of the first till the end of the last + if (currentComment.kind === SyntaxKind.SingleLineCommentTrivia) { + if (isFirstSingleLineComment) { + firstSingleLineCommentStart = currentComment.pos; + } + isFirstSingleLineComment = false; + lastSingleLineCommentEnd = currentComment.end; + singleLineCommentCount++; + } + else if (currentComment.kind === SyntaxKind.MultiLineCommentTrivia) { + combineAndAddMultipleSingleLineComments(singleLineCommentCount, firstSingleLineCommentStart, lastSingleLineCommentEnd); + addOutliningSpanComments(currentComment, /*autoCollapse*/ false); + + singleLineCommentCount = 0; + lastSingleLineCommentEnd = -1; + isFirstSingleLineComment = true; + } + } + + combineAndAddMultipleSingleLineComments(singleLineCommentCount, firstSingleLineCommentStart, lastSingleLineCommentEnd); + } + } + + function combineAndAddMultipleSingleLineComments(count: number, start: number, end: number) { + // Only outline spans of two or more consecutive single line comments + if (count > 1) { + let multipleSingleLineComments = { + pos: start, + end: end, + kind: SyntaxKind.SingleLineCommentTrivia + } + + addOutliningSpanComments(multipleSingleLineComments, /*autoCollapse*/ false); + } + } + function autoCollapse(node: Node) { return isFunctionBlock(node) && node.parent.kind !== SyntaxKind.ArrowFunction; } - let depth = 0; let maxDepth = 20; function walk(n: Node): void { if (depth > maxDepth) { return; } + + if (isDeclaration(n)) { + addOutliningForLeadingCommentsForNode(n); + } + switch (n.kind) { case SyntaxKind.Block: if (!isFunctionBlock(n)) { @@ -94,7 +144,7 @@ module ts { }); break; } - // Fallthrough. + // Fallthrough. case SyntaxKind.ModuleBlock: { let openBrace = findChildOfKind(n, SyntaxKind.OpenBraceToken, sourceFile); diff --git a/src/services/patternMatcher.ts b/src/services/patternMatcher.ts index 646782b2cf0..88cd9fdbb0f 100644 --- a/src/services/patternMatcher.ts +++ b/src/services/patternMatcher.ts @@ -1,3 +1,4 @@ +/* @internal */ module ts { // Note(cyrusn): this enum is ordered from strongest match type to weakest match type. export enum PatternMatchKind { diff --git a/src/services/services.ts b/src/services/services.ts index 8ae2e75fb55..98a7fe0499f 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -988,8 +988,11 @@ module ts { getDefinitionAtPosition(fileName: string, position: number): DefinitionInfo[]; getReferencesAtPosition(fileName: string, position: number): ReferenceEntry[]; - getOccurrencesAtPosition(fileName: string, position: number): ReferenceEntry[]; findReferences(fileName: string, position: number): ReferencedSymbol[]; + getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[]; + + /** @deprecated */ + getOccurrencesAtPosition(fileName: string, position: number): ReferenceEntry[]; getNavigateToItems(searchValue: string, maxResultCount?: number): NavigateToItem[]; getNavigationBarItems(fileName: string): NavigationBarItem[]; @@ -1055,6 +1058,23 @@ module ts { isWriteAccess: boolean; } + export interface DocumentHighlights { + fileName: string; + highlightSpans: HighlightSpan[]; + } + + export module HighlightSpanKind { + export const none = "none"; + export const definition = "definition"; + export const reference = "reference"; + export const writtenReference = "writtenReference"; + } + + export interface HighlightSpan { + textSpan: TextSpan; + kind: string; + } + export interface NavigateToItem { name: string; kind: string; @@ -1359,92 +1379,92 @@ module ts { } // TODO: move these to enums - export class ScriptElementKind { - static unknown = ""; - static warning = "warning"; + export module ScriptElementKind { + export const unknown = ""; + export const warning = "warning"; // predefined type (void) or keyword (class) - static keyword = "keyword"; + export const keyword = "keyword"; // top level script node - static scriptElement = "script"; + export const scriptElement = "script"; // module foo {} - static moduleElement = "module"; + export const moduleElement = "module"; // class X {} - static classElement = "class"; + export const classElement = "class"; // interface Y {} - static interfaceElement = "interface"; + export const interfaceElement = "interface"; // type T = ... - static typeElement = "type"; + export const typeElement = "type"; // enum E - static enumElement = "enum"; + export const enumElement = "enum"; // Inside module and script only // let v = .. - static variableElement = "var"; + export const variableElement = "var"; // Inside function - static localVariableElement = "local var"; + export const localVariableElement = "local var"; // Inside module and script only // function f() { } - static functionElement = "function"; + export const functionElement = "function"; // Inside function - static localFunctionElement = "local function"; + export const localFunctionElement = "local function"; // class X { [public|private]* foo() {} } - static memberFunctionElement = "method"; + export const memberFunctionElement = "method"; // class X { [public|private]* [get|set] foo:number; } - static memberGetAccessorElement = "getter"; - static memberSetAccessorElement = "setter"; + export const memberGetAccessorElement = "getter"; + export const memberSetAccessorElement = "setter"; // class X { [public|private]* foo:number; } // interface Y { foo:number; } - static memberVariableElement = "property"; + export const memberVariableElement = "property"; // class X { constructor() { } } - static constructorImplementationElement = "constructor"; + export const constructorImplementationElement = "constructor"; // interface Y { ():number; } - static callSignatureElement = "call"; + export const callSignatureElement = "call"; // interface Y { []:number; } - static indexSignatureElement = "index"; + export const indexSignatureElement = "index"; // interface Y { new():Y; } - static constructSignatureElement = "construct"; + export const constructSignatureElement = "construct"; // function foo(*Y*: string) - static parameterElement = "parameter"; + export const parameterElement = "parameter"; - static typeParameterElement = "type parameter"; + export const typeParameterElement = "type parameter"; - static primitiveType = "primitive type"; + export const primitiveType = "primitive type"; - static label = "label"; + export const label = "label"; - static alias = "alias"; + export const alias = "alias"; - static constElement = "const"; + export const constElement = "const"; - static letElement = "let"; + export const letElement = "let"; } - export class ScriptElementKindModifier { - static none = ""; - static publicMemberModifier = "public"; - static privateMemberModifier = "private"; - static protectedMemberModifier = "protected"; - static exportedModifier = "export"; - static ambientModifier = "declare"; - static staticModifier = "static"; + export module ScriptElementKindModifier { + export const none = ""; + export const publicMemberModifier = "public"; + export const privateMemberModifier = "private"; + export const protectedMemberModifier = "protected"; + export const exportedModifier = "export"; + export const ambientModifier = "declare"; + export const staticModifier = "static"; } export class ClassificationTypeNames { @@ -3098,6 +3118,7 @@ module ts { case SyntaxKind.SemicolonToken: return containingNodeKind === SyntaxKind.PropertySignature && + previousToken.parent && previousToken.parent.parent && (previousToken.parent.parent.kind === SyntaxKind.InterfaceDeclaration || // interface a { f; | previousToken.parent.parent.kind === SyntaxKind.TypeLiteral); // let x : { a; | @@ -3113,7 +3134,8 @@ module ts { case SyntaxKind.DotDotDotToken: return containingNodeKind === SyntaxKind.Parameter || containingNodeKind === SyntaxKind.Constructor || - (previousToken.parent.parent.kind === SyntaxKind.ArrayBindingPattern); // var [ ...z| + (previousToken.parent && previousToken.parent.parent && + previousToken.parent.parent.kind === SyntaxKind.ArrayBindingPattern); // var [ ...z| case SyntaxKind.PublicKeyword: case SyntaxKind.PrivateKeyword: @@ -3810,8 +3832,13 @@ module ts { return undefined; } + if (isLabelName(node)) { + return undefined; + } + let typeChecker = program.getTypeChecker(); let symbol = typeChecker.getSymbolAtLocation(node); + if (!symbol) { // Try getting just type at this position and show switch (node.kind) { @@ -4000,20 +4027,19 @@ module ts { if (results) { let sourceFile = getCanonicalFileName(normalizeSlashes(fileName)); - // ensure the results are in the file we're interested in - results.forEach((value) => { - let targetFile = getCanonicalFileName(normalizeSlashes(value.fileName)); - Debug.assert(sourceFile == targetFile, `Unexpected file in results. Found results in ${targetFile} expected only results in ${sourceFile}.`); - }); + // Get occurrences only supports reporting occurrences for the file queried. So + // filter down to that list. + results = filter(results, r => getCanonicalFileName(ts.normalizeSlashes(r.fileName)) === sourceFile); } return results; } - /// References and Occurrences - function getOccurrencesAtPositionCore(fileName: string, position: number): ReferenceEntry[] { + function getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] { synchronizeHostData(); + filesToSearch = map(filesToSearch, normalizeSlashes); + let sourceFilesToSearch = filter(program.getSourceFiles(), f => contains(filesToSearch, f.fileName)); let sourceFile = getValidSourceFile(fileName); let node = getTouchingWord(sourceFile, position); @@ -4021,549 +4047,642 @@ module ts { return undefined; } - if (node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.ThisKeyword || node.kind === SyntaxKind.SuperKeyword || - isLiteralNameOfPropertyDeclarationOrIndexAccess(node) || isNameOfExternalModuleImportOrDeclaration(node)) { - return convertReferences(getReferencesForNode(node, [sourceFile], /*searchOnlyInCurrentFile*/ true, /*findInStrings:*/ false, /*findInComments:*/ false)); + return getSemanticDocumentHighlights(node) || getSyntacticDocumentHighlights(node); + + function getHighlightSpanForNode(node: Node): HighlightSpan { + let start = node.getStart(); + let end = node.getEnd(); + + return { + fileName: sourceFile.fileName, + textSpan: createTextSpanFromBounds(start, end), + kind: HighlightSpanKind.none + }; } - switch (node.kind) { - case SyntaxKind.IfKeyword: - case SyntaxKind.ElseKeyword: - if (hasKind(node.parent, SyntaxKind.IfStatement)) { - return getIfElseOccurrences(node.parent); - } - break; - case SyntaxKind.ReturnKeyword: - if (hasKind(node.parent, SyntaxKind.ReturnStatement)) { - return getReturnOccurrences(node.parent); - } - break; - case SyntaxKind.ThrowKeyword: - if (hasKind(node.parent, SyntaxKind.ThrowStatement)) { - return getThrowOccurrences(node.parent); - } - break; - case SyntaxKind.CatchKeyword: - if (hasKind(parent(parent(node)), SyntaxKind.TryStatement)) { - return getTryCatchFinallyOccurrences(node.parent.parent); - } - break; - case SyntaxKind.TryKeyword: - case SyntaxKind.FinallyKeyword: - if (hasKind(parent(node), SyntaxKind.TryStatement)) { - return getTryCatchFinallyOccurrences(node.parent); - } - break; - case SyntaxKind.SwitchKeyword: - if (hasKind(node.parent, SyntaxKind.SwitchStatement)) { - return getSwitchCaseDefaultOccurrences(node.parent); - } - break; - case SyntaxKind.CaseKeyword: - case SyntaxKind.DefaultKeyword: - if (hasKind(parent(parent(parent(node))), SyntaxKind.SwitchStatement)) { - return getSwitchCaseDefaultOccurrences(node.parent.parent.parent); - } - break; - case SyntaxKind.BreakKeyword: - case SyntaxKind.ContinueKeyword: - if (hasKind(node.parent, SyntaxKind.BreakStatement) || hasKind(node.parent, SyntaxKind.ContinueStatement)) { - return getBreakOrContinueStatementOccurences(node.parent); - } - break; - case SyntaxKind.ForKeyword: - if (hasKind(node.parent, SyntaxKind.ForStatement) || - hasKind(node.parent, SyntaxKind.ForInStatement) || - hasKind(node.parent, SyntaxKind.ForOfStatement)) { - return getLoopBreakContinueOccurrences(node.parent); - } - break; - case SyntaxKind.WhileKeyword: - case SyntaxKind.DoKeyword: - if (hasKind(node.parent, SyntaxKind.WhileStatement) || hasKind(node.parent, SyntaxKind.DoStatement)) { - return getLoopBreakContinueOccurrences(node.parent); - } - break; - case SyntaxKind.ConstructorKeyword: - if (hasKind(node.parent, SyntaxKind.Constructor)) { - return getConstructorOccurrences(node.parent); - } - break; - case SyntaxKind.GetKeyword: - case SyntaxKind.SetKeyword: - if (hasKind(node.parent, SyntaxKind.GetAccessor) || hasKind(node.parent, SyntaxKind.SetAccessor)) { - return getGetAndSetOccurrences(node.parent); - } - default: - if (isModifier(node.kind) && node.parent && - (isDeclaration(node.parent) || node.parent.kind === SyntaxKind.VariableStatement)) { - return getModifierOccurrences(node.kind, node.parent); - } - } + function getSemanticDocumentHighlights(node: Node): DocumentHighlights[] { + if (node.kind === SyntaxKind.Identifier || + node.kind === SyntaxKind.ThisKeyword || + node.kind === SyntaxKind.SuperKeyword || + isLiteralNameOfPropertyDeclarationOrIndexAccess(node) || + isNameOfExternalModuleImportOrDeclaration(node)) { - return undefined; - - function getIfElseOccurrences(ifStatement: IfStatement): ReferenceEntry[] { - let keywords: Node[] = []; - - // Traverse upwards through all parent if-statements linked by their else-branches. - while (hasKind(ifStatement.parent, SyntaxKind.IfStatement) && (ifStatement.parent).elseStatement === ifStatement) { - ifStatement = ifStatement.parent; + let referencedSymbols = getReferencedSymbolsForNodes(node, sourceFilesToSearch, /*findInStrings:*/ false, /*findInComments:*/ false); + return convertReferencedSymbols(referencedSymbols); } - // Now traverse back down through the else branches, aggregating if/else keywords of if-statements. - while (ifStatement) { - let children = ifStatement.getChildren(); - pushKeywordIf(keywords, children[0], SyntaxKind.IfKeyword); + return undefined; - // Generally the 'else' keyword is second-to-last, so we traverse backwards. - for (let i = children.length - 1; i >= 0; i--) { - if (pushKeywordIf(keywords, children[i], SyntaxKind.ElseKeyword)) { - break; + function convertReferencedSymbols(referencedSymbols: ReferencedSymbol[]): DocumentHighlights[] { + if (!referencedSymbols) { + return undefined; + } + + let fileNameToDocumentHighlights: Map = {}; + let result: DocumentHighlights[] = []; + for (let referencedSymbol of referencedSymbols) { + for (let referenceEntry of referencedSymbol.references) { + let fileName = referenceEntry.fileName; + let documentHighlights = getProperty(fileNameToDocumentHighlights, fileName); + if (!documentHighlights) { + documentHighlights = { fileName, highlightSpans: [] }; + + fileNameToDocumentHighlights[fileName] = documentHighlights; + result.push(documentHighlights); + } + + documentHighlights.highlightSpans.push({ + textSpan: referenceEntry.textSpan, + kind: referenceEntry.isWriteAccess ? HighlightSpanKind.writtenReference : HighlightSpanKind.reference + }); } } - if (!hasKind(ifStatement.elseStatement, SyntaxKind.IfStatement)) { - break - } + return result; + } + } - ifStatement = ifStatement.elseStatement; + function getSyntacticDocumentHighlights(node: Node): DocumentHighlights[] { + let fileName = sourceFile.fileName; + + var highlightSpans = getHighlightSpans(node); + if (!highlightSpans || highlightSpans.length === 0) { + return undefined; } - let result: ReferenceEntry[] = []; + return [{ fileName, highlightSpans }]; - // We'd like to highlight else/ifs together if they are only separated by whitespace - // (i.e. the keywords are separated by no comments, no newlines). - for (let i = 0; i < keywords.length; i++) { - if (keywords[i].kind === SyntaxKind.ElseKeyword && i < keywords.length - 1) { - let elseKeyword = keywords[i]; - let ifKeyword = keywords[i + 1]; // this *should* always be an 'if' keyword. + // returns true if 'node' is defined and has a matching 'kind'. + function hasKind(node: Node, kind: SyntaxKind) { + return node !== undefined && node.kind === kind; + } - let shouldHighlightNextKeyword = true; + // Null-propagating 'parent' function. + function parent(node: Node): Node { + return node && node.parent; + } - // Avoid recalculating getStart() by iterating backwards. - for (let j = ifKeyword.getStart() - 1; j >= elseKeyword.end; j--) { - if (!isWhiteSpace(sourceFile.text.charCodeAt(j))) { - shouldHighlightNextKeyword = false; + function getHighlightSpans(node: Node): HighlightSpan[] { + if (node) { + switch (node.kind) { + case SyntaxKind.IfKeyword: + case SyntaxKind.ElseKeyword: + if (hasKind(node.parent, SyntaxKind.IfStatement)) { + return getIfElseOccurrences(node.parent); + } + break; + case SyntaxKind.ReturnKeyword: + if (hasKind(node.parent, SyntaxKind.ReturnStatement)) { + return getReturnOccurrences(node.parent); + } + break; + case SyntaxKind.ThrowKeyword: + if (hasKind(node.parent, SyntaxKind.ThrowStatement)) { + return getThrowOccurrences(node.parent); + } + break; + case SyntaxKind.CatchKeyword: + if (hasKind(parent(parent(node)), SyntaxKind.TryStatement)) { + return getTryCatchFinallyOccurrences(node.parent.parent); + } + break; + case SyntaxKind.TryKeyword: + case SyntaxKind.FinallyKeyword: + if (hasKind(parent(node), SyntaxKind.TryStatement)) { + return getTryCatchFinallyOccurrences(node.parent); + } + break; + case SyntaxKind.SwitchKeyword: + if (hasKind(node.parent, SyntaxKind.SwitchStatement)) { + return getSwitchCaseDefaultOccurrences(node.parent); + } + break; + case SyntaxKind.CaseKeyword: + case SyntaxKind.DefaultKeyword: + if (hasKind(parent(parent(parent(node))), SyntaxKind.SwitchStatement)) { + return getSwitchCaseDefaultOccurrences(node.parent.parent.parent); + } + break; + case SyntaxKind.BreakKeyword: + case SyntaxKind.ContinueKeyword: + if (hasKind(node.parent, SyntaxKind.BreakStatement) || hasKind(node.parent, SyntaxKind.ContinueStatement)) { + return getBreakOrContinueStatementOccurences(node.parent); + } + break; + case SyntaxKind.ForKeyword: + if (hasKind(node.parent, SyntaxKind.ForStatement) || + hasKind(node.parent, SyntaxKind.ForInStatement) || + hasKind(node.parent, SyntaxKind.ForOfStatement)) { + return getLoopBreakContinueOccurrences(node.parent); + } + break; + case SyntaxKind.WhileKeyword: + case SyntaxKind.DoKeyword: + if (hasKind(node.parent, SyntaxKind.WhileStatement) || hasKind(node.parent, SyntaxKind.DoStatement)) { + return getLoopBreakContinueOccurrences(node.parent); + } + break; + case SyntaxKind.ConstructorKeyword: + if (hasKind(node.parent, SyntaxKind.Constructor)) { + return getConstructorOccurrences(node.parent); + } + break; + case SyntaxKind.GetKeyword: + case SyntaxKind.SetKeyword: + if (hasKind(node.parent, SyntaxKind.GetAccessor) || hasKind(node.parent, SyntaxKind.SetAccessor)) { + return getGetAndSetOccurrences(node.parent); + } + default: + if (isModifier(node.kind) && node.parent && + (isDeclaration(node.parent) || node.parent.kind === SyntaxKind.VariableStatement)) { + return getModifierOccurrences(node.kind, node.parent); + } + } + } + + return undefined; + } + + /** + * Aggregates all throw-statements within this node *without* crossing + * into function boundaries and try-blocks with catch-clauses. + */ + function aggregateOwnedThrowStatements(node: Node): ThrowStatement[] { + let statementAccumulator: ThrowStatement[] = [] + aggregate(node); + return statementAccumulator; + + function aggregate(node: Node): void { + if (node.kind === SyntaxKind.ThrowStatement) { + statementAccumulator.push(node); + } + else if (node.kind === SyntaxKind.TryStatement) { + let tryStatement = node; + + if (tryStatement.catchClause) { + aggregate(tryStatement.catchClause); + } + else { + // Exceptions thrown within a try block lacking a catch clause + // are "owned" in the current context. + aggregate(tryStatement.tryBlock); + } + + if (tryStatement.finallyBlock) { + aggregate(tryStatement.finallyBlock); + } + } + // Do not cross function boundaries. + else if (!isFunctionLike(node)) { + forEachChild(node, aggregate); + } + }; + } + + /** + * For lack of a better name, this function takes a throw statement and returns the + * nearest ancestor that is a try-block (whose try statement has a catch clause), + * function-block, or source file. + */ + function getThrowStatementOwner(throwStatement: ThrowStatement): Node { + let child: Node = throwStatement; + + while (child.parent) { + let parent = child.parent; + + if (isFunctionBlock(parent) || parent.kind === SyntaxKind.SourceFile) { + return parent; + } + + // A throw-statement is only owned by a try-statement if the try-statement has + // a catch clause, and if the throw-statement occurs within the try block. + if (parent.kind === SyntaxKind.TryStatement) { + let tryStatement = parent; + + if (tryStatement.tryBlock === child && tryStatement.catchClause) { + return child; + } + } + + child = parent; + } + + return undefined; + } + + function aggregateAllBreakAndContinueStatements(node: Node): BreakOrContinueStatement[] { + let statementAccumulator: BreakOrContinueStatement[] = [] + aggregate(node); + return statementAccumulator; + + function aggregate(node: Node): void { + if (node.kind === SyntaxKind.BreakStatement || node.kind === SyntaxKind.ContinueStatement) { + statementAccumulator.push(node); + } + // Do not cross function boundaries. + else if (!isFunctionLike(node)) { + forEachChild(node, aggregate); + } + }; + } + + function ownsBreakOrContinueStatement(owner: Node, statement: BreakOrContinueStatement): boolean { + let actualOwner = getBreakOrContinueOwner(statement); + + return actualOwner && actualOwner === owner; + } + + function getBreakOrContinueOwner(statement: BreakOrContinueStatement): Node { + for (let node = statement.parent; node; node = node.parent) { + switch (node.kind) { + case SyntaxKind.SwitchStatement: + if (statement.kind === SyntaxKind.ContinueStatement) { + continue; + } + // Fall through. + case SyntaxKind.ForStatement: + case SyntaxKind.ForInStatement: + case SyntaxKind.ForOfStatement: + case SyntaxKind.WhileStatement: + case SyntaxKind.DoStatement: + if (!statement.label || isLabeledBy(node, statement.label.text)) { + return node; + } + break; + default: + // Don't cross function boundaries. + if (isFunctionLike(node)) { + return undefined; + } + break; + } + } + + return undefined; + } + + function getModifierOccurrences(modifier: SyntaxKind, declaration: Node): HighlightSpan[] { + let container = declaration.parent; + + // Make sure we only highlight the keyword when it makes sense to do so. + if (isAccessibilityModifier(modifier)) { + if (!(container.kind === SyntaxKind.ClassDeclaration || + (declaration.kind === SyntaxKind.Parameter && hasKind(container, SyntaxKind.Constructor)))) { + return undefined; + } + } + else if (modifier === SyntaxKind.StaticKeyword) { + if (container.kind !== SyntaxKind.ClassDeclaration) { + return undefined; + } + } + else if (modifier === SyntaxKind.ExportKeyword || modifier === SyntaxKind.DeclareKeyword) { + if (!(container.kind === SyntaxKind.ModuleBlock || container.kind === SyntaxKind.SourceFile)) { + return undefined; + } + } + else { + // unsupported modifier + return undefined; + } + + let keywords: Node[] = []; + let modifierFlag: NodeFlags = getFlagFromModifier(modifier); + + let nodes: Node[]; + switch (container.kind) { + case SyntaxKind.ModuleBlock: + case SyntaxKind.SourceFile: + nodes = (container).statements; + break; + case SyntaxKind.Constructor: + nodes = ((container).parameters).concat( + (container.parent).members); + break; + case SyntaxKind.ClassDeclaration: + nodes = (container).members; + + // If we're an accessibility modifier, we're in an instance member and should search + // the constructor's parameter list for instance members as well. + if (modifierFlag & NodeFlags.AccessibilityModifier) { + let constructor = forEach((container).members, member => { + return member.kind === SyntaxKind.Constructor && member; + }); + + if (constructor) { + nodes = nodes.concat(constructor.parameters); + } + } + break; + default: + Debug.fail("Invalid container kind.") + } + + forEach(nodes, node => { + if (node.modifiers && node.flags & modifierFlag) { + forEach(node.modifiers, child => pushKeywordIf(keywords, child, modifier)); + } + }); + + return map(keywords, getHighlightSpanForNode); + + function getFlagFromModifier(modifier: SyntaxKind) { + switch (modifier) { + case SyntaxKind.PublicKeyword: + return NodeFlags.Public; + case SyntaxKind.PrivateKeyword: + return NodeFlags.Private; + case SyntaxKind.ProtectedKeyword: + return NodeFlags.Protected; + case SyntaxKind.StaticKeyword: + return NodeFlags.Static; + case SyntaxKind.ExportKeyword: + return NodeFlags.Export; + case SyntaxKind.DeclareKeyword: + return NodeFlags.Ambient; + default: + Debug.fail(); + } + } + } + + function pushKeywordIf(keywordList: Node[], token: Node, ...expected: SyntaxKind[]): boolean { + if (token && contains(expected, token.kind)) { + keywordList.push(token); + return true; + } + + return false; + } + + function getGetAndSetOccurrences(accessorDeclaration: AccessorDeclaration): HighlightSpan[] { + let keywords: Node[] = []; + + tryPushAccessorKeyword(accessorDeclaration.symbol, SyntaxKind.GetAccessor); + tryPushAccessorKeyword(accessorDeclaration.symbol, SyntaxKind.SetAccessor); + + return map(keywords, getHighlightSpanForNode); + + function tryPushAccessorKeyword(accessorSymbol: Symbol, accessorKind: SyntaxKind): void { + let accessor = getDeclarationOfKind(accessorSymbol, accessorKind); + + if (accessor) { + forEach(accessor.getChildren(), child => pushKeywordIf(keywords, child, SyntaxKind.GetKeyword, SyntaxKind.SetKeyword)); + } + } + } + + function getConstructorOccurrences(constructorDeclaration: ConstructorDeclaration): HighlightSpan[] { + let declarations = constructorDeclaration.symbol.getDeclarations() + + let keywords: Node[] = []; + + forEach(declarations, declaration => { + forEach(declaration.getChildren(), token => { + return pushKeywordIf(keywords, token, SyntaxKind.ConstructorKeyword); + }); + }); + + return map(keywords, getHighlightSpanForNode); + } + + function getLoopBreakContinueOccurrences(loopNode: IterationStatement): HighlightSpan[] { + let keywords: Node[] = []; + + if (pushKeywordIf(keywords, loopNode.getFirstToken(), SyntaxKind.ForKeyword, SyntaxKind.WhileKeyword, SyntaxKind.DoKeyword)) { + // If we succeeded and got a do-while loop, then start looking for a 'while' keyword. + if (loopNode.kind === SyntaxKind.DoStatement) { + let loopTokens = loopNode.getChildren(); + + for (let i = loopTokens.length - 1; i >= 0; i--) { + if (pushKeywordIf(keywords, loopTokens[i], SyntaxKind.WhileKeyword)) { + break; + } + } + } + } + + let breaksAndContinues = aggregateAllBreakAndContinueStatements(loopNode.statement); + + forEach(breaksAndContinues, statement => { + if (ownsBreakOrContinueStatement(loopNode, statement)) { + pushKeywordIf(keywords, statement.getFirstToken(), SyntaxKind.BreakKeyword, SyntaxKind.ContinueKeyword); + } + }); + + return map(keywords, getHighlightSpanForNode); + } + + function getBreakOrContinueStatementOccurences(breakOrContinueStatement: BreakOrContinueStatement): HighlightSpan[] { + let owner = getBreakOrContinueOwner(breakOrContinueStatement); + + if (owner) { + switch (owner.kind) { + case SyntaxKind.ForStatement: + case SyntaxKind.ForInStatement: + case SyntaxKind.ForOfStatement: + case SyntaxKind.DoStatement: + case SyntaxKind.WhileStatement: + return getLoopBreakContinueOccurrences(owner) + case SyntaxKind.SwitchStatement: + return getSwitchCaseDefaultOccurrences(owner); + + } + } + + return undefined; + } + + function getSwitchCaseDefaultOccurrences(switchStatement: SwitchStatement): HighlightSpan[] { + let keywords: Node[] = []; + + pushKeywordIf(keywords, switchStatement.getFirstToken(), SyntaxKind.SwitchKeyword); + + // Go through each clause in the switch statement, collecting the 'case'/'default' keywords. + forEach(switchStatement.caseBlock.clauses, clause => { + pushKeywordIf(keywords, clause.getFirstToken(), SyntaxKind.CaseKeyword, SyntaxKind.DefaultKeyword); + + let breaksAndContinues = aggregateAllBreakAndContinueStatements(clause); + + forEach(breaksAndContinues, statement => { + if (ownsBreakOrContinueStatement(switchStatement, statement)) { + pushKeywordIf(keywords, statement.getFirstToken(), SyntaxKind.BreakKeyword); + } + }); + }); + + return map(keywords, getHighlightSpanForNode); + } + + function getTryCatchFinallyOccurrences(tryStatement: TryStatement): HighlightSpan[] { + let keywords: Node[] = []; + + pushKeywordIf(keywords, tryStatement.getFirstToken(), SyntaxKind.TryKeyword); + + if (tryStatement.catchClause) { + pushKeywordIf(keywords, tryStatement.catchClause.getFirstToken(), SyntaxKind.CatchKeyword); + } + + if (tryStatement.finallyBlock) { + let finallyKeyword = findChildOfKind(tryStatement, SyntaxKind.FinallyKeyword, sourceFile); + pushKeywordIf(keywords, finallyKeyword, SyntaxKind.FinallyKeyword); + } + + return map(keywords, getHighlightSpanForNode); + } + + function getThrowOccurrences(throwStatement: ThrowStatement): HighlightSpan[] { + let owner = getThrowStatementOwner(throwStatement); + + if (!owner) { + return undefined; + } + + let keywords: Node[] = []; + + forEach(aggregateOwnedThrowStatements(owner), throwStatement => { + pushKeywordIf(keywords, throwStatement.getFirstToken(), SyntaxKind.ThrowKeyword); + }); + + // If the "owner" is a function, then we equate 'return' and 'throw' statements in their + // ability to "jump out" of the function, and include occurrences for both. + if (isFunctionBlock(owner)) { + forEachReturnStatement(owner, returnStatement => { + pushKeywordIf(keywords, returnStatement.getFirstToken(), SyntaxKind.ReturnKeyword); + }); + } + + return map(keywords, getHighlightSpanForNode); + } + + function getReturnOccurrences(returnStatement: ReturnStatement): HighlightSpan[] { + let func = getContainingFunction(returnStatement); + + // If we didn't find a containing function with a block body, bail out. + if (!(func && hasKind(func.body, SyntaxKind.Block))) { + return undefined; + } + + let keywords: Node[] = [] + forEachReturnStatement(func.body, returnStatement => { + pushKeywordIf(keywords, returnStatement.getFirstToken(), SyntaxKind.ReturnKeyword); + }); + + // Include 'throw' statements that do not occur within a try block. + forEach(aggregateOwnedThrowStatements(func.body), throwStatement => { + pushKeywordIf(keywords, throwStatement.getFirstToken(), SyntaxKind.ThrowKeyword); + }); + + return map(keywords, getHighlightSpanForNode); + } + + function getIfElseOccurrences(ifStatement: IfStatement): HighlightSpan[] { + let keywords: Node[] = []; + + // Traverse upwards through all parent if-statements linked by their else-branches. + while (hasKind(ifStatement.parent, SyntaxKind.IfStatement) && (ifStatement.parent).elseStatement === ifStatement) { + ifStatement = ifStatement.parent; + } + + // Now traverse back down through the else branches, aggregating if/else keywords of if-statements. + while (ifStatement) { + let children = ifStatement.getChildren(); + pushKeywordIf(keywords, children[0], SyntaxKind.IfKeyword); + + // Generally the 'else' keyword is second-to-last, so we traverse backwards. + for (let i = children.length - 1; i >= 0; i--) { + if (pushKeywordIf(keywords, children[i], SyntaxKind.ElseKeyword)) { break; } } - if (shouldHighlightNextKeyword) { - result.push({ - fileName: fileName, - textSpan: createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end), - isWriteAccess: false - }); - i++; // skip the next keyword - continue; + if (!hasKind(ifStatement.elseStatement, SyntaxKind.IfStatement)) { + break } + + ifStatement = ifStatement.elseStatement; } - // Ordinary case: just highlight the keyword. - result.push(getReferenceEntryFromNode(keywords[i])); + let result: HighlightSpan[] = []; + + // We'd like to highlight else/ifs together if they are only separated by whitespace + // (i.e. the keywords are separated by no comments, no newlines). + for (let i = 0; i < keywords.length; i++) { + if (keywords[i].kind === SyntaxKind.ElseKeyword && i < keywords.length - 1) { + let elseKeyword = keywords[i]; + let ifKeyword = keywords[i + 1]; // this *should* always be an 'if' keyword. + + let shouldCombindElseAndIf = true; + + // Avoid recalculating getStart() by iterating backwards. + for (let j = ifKeyword.getStart() - 1; j >= elseKeyword.end; j--) { + if (!isWhiteSpace(sourceFile.text.charCodeAt(j))) { + shouldCombindElseAndIf = false; + break; + } + } + + if (shouldCombindElseAndIf) { + result.push({ + fileName: fileName, + textSpan: createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end), + kind: HighlightSpanKind.reference + }); + i++; // skip the next keyword + continue; + } + } + + // Ordinary case: just highlight the keyword. + result.push(getHighlightSpanForNode(keywords[i])); + } + + return result; + } + } + } + + /// References and Occurrences + function getOccurrencesAtPositionCore(fileName: string, position: number): ReferenceEntry[] { + synchronizeHostData(); + + return convertDocumentHighlights(getDocumentHighlights(fileName, position, [fileName])); + + function convertDocumentHighlights(documentHighlights: DocumentHighlights[]): ReferenceEntry[] { + if (!documentHighlights) { + return undefined; + } + + let result: ReferenceEntry[] = []; + for (let entry of documentHighlights) { + for (let highlightSpan of entry.highlightSpans) { + result.push({ + fileName: entry.fileName, + textSpan: highlightSpan.textSpan, + isWriteAccess: highlightSpan.kind === HighlightSpanKind.writtenReference + }); + } } return result; } - - function getReturnOccurrences(returnStatement: ReturnStatement): ReferenceEntry[] { - let func = getContainingFunction(returnStatement); - - // If we didn't find a containing function with a block body, bail out. - if (!(func && hasKind(func.body, SyntaxKind.Block))) { - return undefined; - } - - let keywords: Node[] = [] - forEachReturnStatement(func.body, returnStatement => { - pushKeywordIf(keywords, returnStatement.getFirstToken(), SyntaxKind.ReturnKeyword); - }); - - // Include 'throw' statements that do not occur within a try block. - forEach(aggregateOwnedThrowStatements(func.body), throwStatement => { - pushKeywordIf(keywords, throwStatement.getFirstToken(), SyntaxKind.ThrowKeyword); - }); - - return map(keywords, getReferenceEntryFromNode); - } - - function getThrowOccurrences(throwStatement: ThrowStatement) { - let owner = getThrowStatementOwner(throwStatement); - - if (!owner) { - return undefined; - } - - let keywords: Node[] = []; - - forEach(aggregateOwnedThrowStatements(owner), throwStatement => { - pushKeywordIf(keywords, throwStatement.getFirstToken(), SyntaxKind.ThrowKeyword); - }); - - // If the "owner" is a function, then we equate 'return' and 'throw' statements in their - // ability to "jump out" of the function, and include occurrences for both. - if (isFunctionBlock(owner)) { - forEachReturnStatement(owner, returnStatement => { - pushKeywordIf(keywords, returnStatement.getFirstToken(), SyntaxKind.ReturnKeyword); - }); - } - - return map(keywords, getReferenceEntryFromNode); - } - - /** - * Aggregates all throw-statements within this node *without* crossing - * into function boundaries and try-blocks with catch-clauses. - */ - function aggregateOwnedThrowStatements(node: Node): ThrowStatement[] { - let statementAccumulator: ThrowStatement[] = [] - aggregate(node); - return statementAccumulator; - - function aggregate(node: Node): void { - if (node.kind === SyntaxKind.ThrowStatement) { - statementAccumulator.push(node); - } - else if (node.kind === SyntaxKind.TryStatement) { - let tryStatement = node; - - if (tryStatement.catchClause) { - aggregate(tryStatement.catchClause); - } - else { - // Exceptions thrown within a try block lacking a catch clause - // are "owned" in the current context. - aggregate(tryStatement.tryBlock); - } - - if (tryStatement.finallyBlock) { - aggregate(tryStatement.finallyBlock); - } - } - // Do not cross function boundaries. - else if (!isFunctionLike(node)) { - forEachChild(node, aggregate); - } - }; - } - - /** - * For lack of a better name, this function takes a throw statement and returns the - * nearest ancestor that is a try-block (whose try statement has a catch clause), - * function-block, or source file. - */ - function getThrowStatementOwner(throwStatement: ThrowStatement): Node { - let child: Node = throwStatement; - - while (child.parent) { - let parent = child.parent; - - if (isFunctionBlock(parent) || parent.kind === SyntaxKind.SourceFile) { - return parent; - } - - // A throw-statement is only owned by a try-statement if the try-statement has - // a catch clause, and if the throw-statement occurs within the try block. - if (parent.kind === SyntaxKind.TryStatement) { - let tryStatement = parent; - - if (tryStatement.tryBlock === child && tryStatement.catchClause) { - return child; - } - } - - child = parent; - } - - return undefined; - } - - function getTryCatchFinallyOccurrences(tryStatement: TryStatement): ReferenceEntry[] { - let keywords: Node[] = []; - - pushKeywordIf(keywords, tryStatement.getFirstToken(), SyntaxKind.TryKeyword); - - if (tryStatement.catchClause) { - pushKeywordIf(keywords, tryStatement.catchClause.getFirstToken(), SyntaxKind.CatchKeyword); - } - - if (tryStatement.finallyBlock) { - let finallyKeyword = findChildOfKind(tryStatement, SyntaxKind.FinallyKeyword, sourceFile); - pushKeywordIf(keywords, finallyKeyword, SyntaxKind.FinallyKeyword); - } - - return map(keywords, getReferenceEntryFromNode); - } - - function getLoopBreakContinueOccurrences(loopNode: IterationStatement): ReferenceEntry[] { - let keywords: Node[] = []; - - if (pushKeywordIf(keywords, loopNode.getFirstToken(), SyntaxKind.ForKeyword, SyntaxKind.WhileKeyword, SyntaxKind.DoKeyword)) { - // If we succeeded and got a do-while loop, then start looking for a 'while' keyword. - if (loopNode.kind === SyntaxKind.DoStatement) { - let loopTokens = loopNode.getChildren(); - - for (let i = loopTokens.length - 1; i >= 0; i--) { - if (pushKeywordIf(keywords, loopTokens[i], SyntaxKind.WhileKeyword)) { - break; - } - } - } - } - - let breaksAndContinues = aggregateAllBreakAndContinueStatements(loopNode.statement); - - forEach(breaksAndContinues, statement => { - if (ownsBreakOrContinueStatement(loopNode, statement)) { - pushKeywordIf(keywords, statement.getFirstToken(), SyntaxKind.BreakKeyword, SyntaxKind.ContinueKeyword); - } - }); - - return map(keywords, getReferenceEntryFromNode); - } - - function getSwitchCaseDefaultOccurrences(switchStatement: SwitchStatement): ReferenceEntry[] { - let keywords: Node[] = []; - - pushKeywordIf(keywords, switchStatement.getFirstToken(), SyntaxKind.SwitchKeyword); - - // Go through each clause in the switch statement, collecting the 'case'/'default' keywords. - forEach(switchStatement.caseBlock.clauses, clause => { - pushKeywordIf(keywords, clause.getFirstToken(), SyntaxKind.CaseKeyword, SyntaxKind.DefaultKeyword); - - let breaksAndContinues = aggregateAllBreakAndContinueStatements(clause); - - forEach(breaksAndContinues, statement => { - if (ownsBreakOrContinueStatement(switchStatement, statement)) { - pushKeywordIf(keywords, statement.getFirstToken(), SyntaxKind.BreakKeyword); - } - }); - }); - - return map(keywords, getReferenceEntryFromNode); - } - - function getBreakOrContinueStatementOccurences(breakOrContinueStatement: BreakOrContinueStatement): ReferenceEntry[] { - let owner = getBreakOrContinueOwner(breakOrContinueStatement); - - if (owner) { - switch (owner.kind) { - case SyntaxKind.ForStatement: - case SyntaxKind.ForInStatement: - case SyntaxKind.ForOfStatement: - case SyntaxKind.DoStatement: - case SyntaxKind.WhileStatement: - return getLoopBreakContinueOccurrences(owner) - case SyntaxKind.SwitchStatement: - return getSwitchCaseDefaultOccurrences(owner); - - } - } - - return undefined; - } - - function aggregateAllBreakAndContinueStatements(node: Node): BreakOrContinueStatement[] { - let statementAccumulator: BreakOrContinueStatement[] = [] - aggregate(node); - return statementAccumulator; - - function aggregate(node: Node): void { - if (node.kind === SyntaxKind.BreakStatement || node.kind === SyntaxKind.ContinueStatement) { - statementAccumulator.push(node); - } - // Do not cross function boundaries. - else if (!isFunctionLike(node)) { - forEachChild(node, aggregate); - } - }; - } - - function ownsBreakOrContinueStatement(owner: Node, statement: BreakOrContinueStatement): boolean { - let actualOwner = getBreakOrContinueOwner(statement); - - return actualOwner && actualOwner === owner; - } - - function getBreakOrContinueOwner(statement: BreakOrContinueStatement): Node { - for (let node = statement.parent; node; node = node.parent) { - switch (node.kind) { - case SyntaxKind.SwitchStatement: - if (statement.kind === SyntaxKind.ContinueStatement) { - continue; - } - // Fall through. - case SyntaxKind.ForStatement: - case SyntaxKind.ForInStatement: - case SyntaxKind.ForOfStatement: - case SyntaxKind.WhileStatement: - case SyntaxKind.DoStatement: - if (!statement.label || isLabeledBy(node, statement.label.text)) { - return node; - } - break; - default: - // Don't cross function boundaries. - if (isFunctionLike(node)) { - return undefined; - } - break; - } - } - - return undefined; - } - - function getConstructorOccurrences(constructorDeclaration: ConstructorDeclaration): ReferenceEntry[] { - let declarations = constructorDeclaration.symbol.getDeclarations() - - let keywords: Node[] = []; - - forEach(declarations, declaration => { - forEach(declaration.getChildren(), token => { - return pushKeywordIf(keywords, token, SyntaxKind.ConstructorKeyword); - }); - }); - - return map(keywords, getReferenceEntryFromNode); - } - - function getGetAndSetOccurrences(accessorDeclaration: AccessorDeclaration): ReferenceEntry[] { - let keywords: Node[] = []; - - tryPushAccessorKeyword(accessorDeclaration.symbol, SyntaxKind.GetAccessor); - tryPushAccessorKeyword(accessorDeclaration.symbol, SyntaxKind.SetAccessor); - - return map(keywords, getReferenceEntryFromNode); - - function tryPushAccessorKeyword(accessorSymbol: Symbol, accessorKind: SyntaxKind): void { - let accessor = getDeclarationOfKind(accessorSymbol, accessorKind); - - if (accessor) { - forEach(accessor.getChildren(), child => pushKeywordIf(keywords, child, SyntaxKind.GetKeyword, SyntaxKind.SetKeyword)); - } - } - } - - function getModifierOccurrences(modifier: SyntaxKind, declaration: Node): ReferenceEntry[] { - let container = declaration.parent; - - // Make sure we only highlight the keyword when it makes sense to do so. - if (isAccessibilityModifier(modifier)) { - if (!(container.kind === SyntaxKind.ClassDeclaration || - (declaration.kind === SyntaxKind.Parameter && hasKind(container, SyntaxKind.Constructor)))) { - return undefined; - } - } - else if (modifier === SyntaxKind.StaticKeyword) { - if (container.kind !== SyntaxKind.ClassDeclaration) { - return undefined; - } - } - else if (modifier === SyntaxKind.ExportKeyword || modifier === SyntaxKind.DeclareKeyword) { - if (!(container.kind === SyntaxKind.ModuleBlock || container.kind === SyntaxKind.SourceFile)) { - return undefined; - } - } - else { - // unsupported modifier - return undefined; - } - - let keywords: Node[] = []; - let modifierFlag: NodeFlags = getFlagFromModifier(modifier); - - let nodes: Node[]; - switch (container.kind) { - case SyntaxKind.ModuleBlock: - case SyntaxKind.SourceFile: - nodes = (container).statements; - break; - case SyntaxKind.Constructor: - nodes = ((container).parameters).concat( - (container.parent).members); - break; - case SyntaxKind.ClassDeclaration: - nodes = (container).members; - - // If we're an accessibility modifier, we're in an instance member and should search - // the constructor's parameter list for instance members as well. - if (modifierFlag & NodeFlags.AccessibilityModifier) { - let constructor = forEach((container).members, member => { - return member.kind === SyntaxKind.Constructor && member; - }); - - if (constructor) { - nodes = nodes.concat(constructor.parameters); - } - } - break; - default: - Debug.fail("Invalid container kind.") - } - - forEach(nodes, node => { - if (node.modifiers && node.flags & modifierFlag) { - forEach(node.modifiers, child => pushKeywordIf(keywords, child, modifier)); - } - }); - - return map(keywords, getReferenceEntryFromNode); - - function getFlagFromModifier(modifier: SyntaxKind) { - switch (modifier) { - case SyntaxKind.PublicKeyword: - return NodeFlags.Public; - case SyntaxKind.PrivateKeyword: - return NodeFlags.Private; - case SyntaxKind.ProtectedKeyword: - return NodeFlags.Protected; - case SyntaxKind.StaticKeyword: - return NodeFlags.Static; - case SyntaxKind.ExportKeyword: - return NodeFlags.Export; - case SyntaxKind.DeclareKeyword: - return NodeFlags.Ambient; - default: - Debug.fail(); - } - } - } - - // returns true if 'node' is defined and has a matching 'kind'. - function hasKind(node: Node, kind: SyntaxKind) { - return node !== undefined && node.kind === kind; - } - - // Null-propagating 'parent' function. - function parent(node: Node): Node { - return node && node.parent; - } - - function pushKeywordIf(keywordList: Node[], token: Node, ...expected: SyntaxKind[]): boolean { - if (token && contains(expected, token.kind)) { - keywordList.push(token); - return true; - } - - return false; - } } - function convertReferences(referenceSymbols: ReferencedSymbol[]): ReferenceEntry[]{ + function convertReferences(referenceSymbols: ReferencedSymbol[]): ReferenceEntry[] { if (!referenceSymbols) { return undefined; } let referenceEntries: ReferenceEntry[] = []; + for (let referenceSymbol of referenceSymbols) { addRange(referenceEntries, referenceSymbol.references); } + return referenceEntries; } - function findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean): RenameLocation[]{ + function findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean): RenameLocation[] { var referencedSymbols = findReferencedSymbols(fileName, position, findInStrings, findInComments); return convertReferences(referencedSymbols); } @@ -4600,10 +4719,10 @@ module ts { } Debug.assert(node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.NumericLiteral || node.kind === SyntaxKind.StringLiteral); - return getReferencesForNode(node, program.getSourceFiles(), /*searchOnlyInCurrentFile*/ false, findInStrings, findInComments); + return getReferencedSymbolsForNodes(node, program.getSourceFiles(), findInStrings, findInComments); } - function getReferencesForNode(node: Node, sourceFiles: SourceFile[], searchOnlyInCurrentFile: boolean, findInStrings: boolean, findInComments: boolean): ReferencedSymbol[]{ + function getReferencedSymbolsForNodes(node: Node, sourceFiles: SourceFile[], findInStrings: boolean, findInComments: boolean): ReferencedSymbol[] { let typeChecker = program.getTypeChecker(); // Labels @@ -4663,23 +4782,16 @@ module ts { getReferencesInNode(scope, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); } else { - if (searchOnlyInCurrentFile) { - Debug.assert(sourceFiles.length === 1); - result = []; - getReferencesInNode(sourceFiles[0], symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); - } - else { - let internedName = getInternedName(symbol, node, declarations) - forEach(sourceFiles, sourceFile => { - cancellationToken.throwIfCancellationRequested(); + let internedName = getInternedName(symbol, node, declarations) + for (let sourceFile of sourceFiles) { + cancellationToken.throwIfCancellationRequested(); - let nameTable = getNameTable(sourceFile); + let nameTable = getNameTable(sourceFile); - if (lookUp(nameTable, internedName)) { - result = result || []; - getReferencesInNode(sourceFile, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); - } - }); + if (lookUp(nameTable, internedName)) { + result = result || []; + getReferencesInNode(sourceFile, symbol, declaredName, node, searchMeaning, findInStrings, findInComments, result, symbolToIndex); + } } } @@ -6298,6 +6410,7 @@ module ts { getReferencesAtPosition, findReferences, getOccurrencesAtPosition, + getDocumentHighlights, getNameOrDottedNameSpan, getBreakpointStatementAtPosition, getNavigateToItems, diff --git a/src/services/shims.ts b/src/services/shims.ts index 7b5eeaf94d2..110090daf5c 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -15,8 +15,10 @@ /// +/* @internal */ var debugObjectHost = (this); +/* @internal */ module ts { export interface ScriptSnapshotShim { /** Gets a portion of the script snapshot specified by [start, end). */ @@ -135,11 +137,21 @@ module ts { findReferences(fileName: string, position: number): string; /** + * @deprecated * Returns a JSON-encoded value of the type: * { fileName: string; textSpan: { start: number; length: number}; isWriteAccess: boolean }[] */ getOccurrencesAtPosition(fileName: string, position: number): string; + /** + * Returns a JSON-encoded value of the type: + * { fileName: string; highlights: { start: number; length: number, isDefinition: boolean }[] }[] + * + * @param fileToSearch A JSON encoded string[] containing the file names that should be + * considered when searching. + */ + getDocumentHighlights(fileName: string, position: number, filesToSearch: string): string; + /** * Returns a JSON-encoded value of the type: * { name: string; kind: string; kindModifiers: string; containerName: string; containerKind: string; matchKind: string; fileName: string; textSpan: { start: number; length: number}; } [] = []; @@ -331,7 +343,6 @@ module ts { } } - /* @internal */ export function realizeDiagnostics(diagnostics: Diagnostic[], newLine: string): { message: string; start: number; length: number; category: string; } []{ return diagnostics.map(d => realizeDiagnostic(d, newLine)); } @@ -590,6 +601,14 @@ module ts { }); } + public getDocumentHighlights(fileName: string, position: number, filesToSearch: string): string { + return this.forwardJSONCall( + "getDocumentHighlights('" + fileName + "', " + position + ")", + () => { + return this.languageService.getDocumentHighlights(fileName, position, JSON.parse(filesToSearch)); + }); + } + /// COMPLETION LISTS /** @@ -844,8 +863,10 @@ module ts { /// TODO: this is used by VS, clean this up on both sides of the interface +/* @internal */ module TypeScript.Services { export var TypeScriptServicesFactory = ts.TypeScriptServicesFactory; } +/* @internal */ let toolsVersion = "1.4"; diff --git a/src/services/signatureHelp.ts b/src/services/signatureHelp.ts index 07b963d2461..77aba4c85c1 100644 --- a/src/services/signatureHelp.ts +++ b/src/services/signatureHelp.ts @@ -1,5 +1,5 @@ /// - +/* @internal */ module ts.SignatureHelp { // A partially written generic type expression is not guaranteed to have the correct syntax tree. the expression could be parsed as less than/greater than expression or a comma expression diff --git a/src/services/utilities.ts b/src/services/utilities.ts index 5ad392c5a6c..5e1460bbdcd 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -1,4 +1,5 @@ // These utilities are common to multiple language service features. +/* @internal */ module ts { export interface ListItemInfo { listItemIndex: number; @@ -500,6 +501,7 @@ module ts { } // Display-part writer helpers +/* @internal */ module ts { export function isFirstDeclarationOfSymbolParameter(symbol: Symbol) { return symbol.declarations && symbol.declarations.length > 0 && symbol.declarations[0].kind === SyntaxKind.Parameter; diff --git a/tests/baselines/reference/2dArrays.types b/tests/baselines/reference/2dArrays.types index b113ccdce7b..cb6c2a3a723 100644 --- a/tests/baselines/reference/2dArrays.types +++ b/tests/baselines/reference/2dArrays.types @@ -1,40 +1,40 @@ === tests/cases/compiler/2dArrays.ts === class Cell { ->Cell : Cell +>Cell : Cell, Symbol(Cell, Decl(2dArrays.ts, 0, 0)) } class Ship { ->Ship : Ship +>Ship : Ship, Symbol(Ship, Decl(2dArrays.ts, 1, 1)) isSunk: boolean; ->isSunk : boolean +>isSunk : boolean, Symbol(isSunk, Decl(2dArrays.ts, 3, 12)) } class Board { ->Board : Board +>Board : Board, Symbol(Board, Decl(2dArrays.ts, 5, 1)) ships: Ship[]; ->ships : Ship[] ->Ship : Ship +>ships : Ship[], Symbol(ships, Decl(2dArrays.ts, 7, 13)) +>Ship : Ship, Symbol(Ship, Decl(2dArrays.ts, 1, 1)) cells: Cell[]; ->cells : Cell[] ->Cell : Cell +>cells : Cell[], Symbol(cells, Decl(2dArrays.ts, 8, 18)) +>Cell : Cell, Symbol(Cell, Decl(2dArrays.ts, 0, 0)) private allShipsSunk() { ->allShipsSunk : () => boolean +>allShipsSunk : () => boolean, Symbol(allShipsSunk, Decl(2dArrays.ts, 9, 18)) return this.ships.every(function (val) { return val.isSunk; }); >this.ships.every(function (val) { return val.isSunk; }) : boolean ->this.ships.every : (callbackfn: (value: Ship, index: number, array: Ship[]) => boolean, thisArg?: any) => boolean ->this.ships : Ship[] ->this : Board ->ships : Ship[] ->every : (callbackfn: (value: Ship, index: number, array: Ship[]) => boolean, thisArg?: any) => boolean +>this.ships.every : (callbackfn: (value: Ship, index: number, array: Ship[]) => boolean, thisArg?: any) => boolean, Symbol(Array.every, Decl(lib.d.ts, 1094, 62)) +>this.ships : Ship[], Symbol(ships, Decl(2dArrays.ts, 7, 13)) +>this : Board, Symbol(Board, Decl(2dArrays.ts, 5, 1)) +>ships : Ship[], Symbol(ships, Decl(2dArrays.ts, 7, 13)) +>every : (callbackfn: (value: Ship, index: number, array: Ship[]) => boolean, thisArg?: any) => boolean, Symbol(Array.every, Decl(lib.d.ts, 1094, 62)) >function (val) { return val.isSunk; } : (val: Ship) => boolean ->val : Ship ->val.isSunk : boolean ->val : Ship ->isSunk : boolean +>val : Ship, Symbol(val, Decl(2dArrays.ts, 12, 42)) +>val.isSunk : boolean, Symbol(Ship.isSunk, Decl(2dArrays.ts, 3, 12)) +>val : Ship, Symbol(val, Decl(2dArrays.ts, 12, 42)) +>isSunk : boolean, Symbol(Ship.isSunk, Decl(2dArrays.ts, 3, 12)) } } diff --git a/tests/baselines/reference/APISample_compile.types b/tests/baselines/reference/APISample_compile.types index 7ccbae38212..dba54c8e1e5 100644 --- a/tests/baselines/reference/APISample_compile.types +++ b/tests/baselines/reference/APISample_compile.types @@ -7,152 +7,162 @@ */ declare var process: any; ->process : any +>process : any, Symbol(process, Decl(APISample_compile.ts, 7, 11)) declare var console: any; ->console : any +>console : any, Symbol(console, Decl(APISample_compile.ts, 8, 11)) declare var os: any; ->os : any +>os : any, Symbol(os, Decl(APISample_compile.ts, 9, 11)) import ts = require("typescript"); ->ts : typeof ts +>ts : typeof ts, Symbol(ts, Decl(APISample_compile.ts, 9, 20)) export function compile(fileNames: string[], options: ts.CompilerOptions): void { ->compile : (fileNames: string[], options: ts.CompilerOptions) => void ->fileNames : string[] ->options : ts.CompilerOptions ->ts : unknown ->CompilerOptions : ts.CompilerOptions +>compile : (fileNames: string[], options: ts.CompilerOptions) => void, Symbol(compile, Decl(APISample_compile.ts, 11, 34)) +>fileNames : string[], Symbol(fileNames, Decl(APISample_compile.ts, 13, 24)) +>options : ts.CompilerOptions, Symbol(options, Decl(APISample_compile.ts, 13, 44)) +>ts : any, Symbol(ts, Decl(APISample_compile.ts, 9, 20)) +>CompilerOptions : ts.CompilerOptions, Symbol(ts.CompilerOptions, Decl(typescript.d.ts, 1074, 5)) var program = ts.createProgram(fileNames, options); ->program : ts.Program +>program : ts.Program, Symbol(program, Decl(APISample_compile.ts, 14, 7)) >ts.createProgram(fileNames, options) : ts.Program ->ts.createProgram : (rootNames: string[], options: ts.CompilerOptions, host?: ts.CompilerHost) => ts.Program ->ts : typeof ts ->createProgram : (rootNames: string[], options: ts.CompilerOptions, host?: ts.CompilerHost) => ts.Program ->fileNames : string[] ->options : ts.CompilerOptions +>ts.createProgram : (rootNames: string[], options: ts.CompilerOptions, host?: ts.CompilerHost) => ts.Program, Symbol(ts.createProgram, Decl(typescript.d.ts, 1201, 113)) +>ts : typeof ts, Symbol(ts, Decl(APISample_compile.ts, 9, 20)) +>createProgram : (rootNames: string[], options: ts.CompilerOptions, host?: ts.CompilerHost) => ts.Program, Symbol(ts.createProgram, Decl(typescript.d.ts, 1201, 113)) +>fileNames : string[], Symbol(fileNames, Decl(APISample_compile.ts, 13, 24)) +>options : ts.CompilerOptions, Symbol(options, Decl(APISample_compile.ts, 13, 44)) var emitResult = program.emit(); ->emitResult : ts.EmitResult +>emitResult : ts.EmitResult, Symbol(emitResult, Decl(APISample_compile.ts, 15, 7)) >program.emit() : ts.EmitResult ->program.emit : (targetSourceFile?: ts.SourceFile, writeFile?: ts.WriteFileCallback) => ts.EmitResult ->program : ts.Program ->emit : (targetSourceFile?: ts.SourceFile, writeFile?: ts.WriteFileCallback) => ts.EmitResult +>program.emit : (targetSourceFile?: ts.SourceFile, writeFile?: ts.WriteFileCallback) => ts.EmitResult, Symbol(ts.Program.emit, Decl(typescript.d.ts, 767, 39)) +>program : ts.Program, Symbol(program, Decl(APISample_compile.ts, 14, 7)) +>emit : (targetSourceFile?: ts.SourceFile, writeFile?: ts.WriteFileCallback) => ts.EmitResult, Symbol(ts.Program.emit, Decl(typescript.d.ts, 767, 39)) var allDiagnostics = ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics); ->allDiagnostics : ts.Diagnostic[] +>allDiagnostics : ts.Diagnostic[], Symbol(allDiagnostics, Decl(APISample_compile.ts, 17, 7)) >ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics) : ts.Diagnostic[] ->ts.getPreEmitDiagnostics(program).concat : { (...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; } +>ts.getPreEmitDiagnostics(program).concat : { (...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) >ts.getPreEmitDiagnostics(program) : ts.Diagnostic[] ->ts.getPreEmitDiagnostics : (program: ts.Program) => ts.Diagnostic[] ->ts : typeof ts ->getPreEmitDiagnostics : (program: ts.Program) => ts.Diagnostic[] ->program : ts.Program ->concat : { (...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; } ->emitResult.diagnostics : ts.Diagnostic[] ->emitResult : ts.EmitResult ->diagnostics : ts.Diagnostic[] +>ts.getPreEmitDiagnostics : (program: ts.Program) => ts.Diagnostic[], Symbol(ts.getPreEmitDiagnostics, Decl(typescript.d.ts, 1199, 98)) +>ts : typeof ts, Symbol(ts, Decl(APISample_compile.ts, 9, 20)) +>getPreEmitDiagnostics : (program: ts.Program) => ts.Diagnostic[], Symbol(ts.getPreEmitDiagnostics, Decl(typescript.d.ts, 1199, 98)) +>program : ts.Program, Symbol(program, Decl(APISample_compile.ts, 14, 7)) +>concat : { (...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) +>emitResult.diagnostics : ts.Diagnostic[], Symbol(ts.EmitResult.diagnostics, Decl(typescript.d.ts, 820, 29)) +>emitResult : ts.EmitResult, Symbol(emitResult, Decl(APISample_compile.ts, 15, 7)) +>diagnostics : ts.Diagnostic[], Symbol(ts.EmitResult.diagnostics, Decl(typescript.d.ts, 820, 29)) allDiagnostics.forEach(diagnostic => { >allDiagnostics.forEach(diagnostic => { var { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`); }) : void ->allDiagnostics.forEach : (callbackfn: (value: ts.Diagnostic, index: number, array: ts.Diagnostic[]) => void, thisArg?: any) => void ->allDiagnostics : ts.Diagnostic[] ->forEach : (callbackfn: (value: ts.Diagnostic, index: number, array: ts.Diagnostic[]) => void, thisArg?: any) => void +>allDiagnostics.forEach : (callbackfn: (value: ts.Diagnostic, index: number, array: ts.Diagnostic[]) => void, thisArg?: any) => void, Symbol(Array.forEach, Decl(lib.d.ts, 1108, 95)) +>allDiagnostics : ts.Diagnostic[], Symbol(allDiagnostics, Decl(APISample_compile.ts, 17, 7)) +>forEach : (callbackfn: (value: ts.Diagnostic, index: number, array: ts.Diagnostic[]) => void, thisArg?: any) => void, Symbol(Array.forEach, Decl(lib.d.ts, 1108, 95)) >diagnostic => { var { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`); } : (diagnostic: ts.Diagnostic) => void ->diagnostic : ts.Diagnostic +>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_compile.ts, 19, 27)) var { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); ->line : number ->character : number +>line : number, Symbol(line, Decl(APISample_compile.ts, 20, 13)) +>character : number, Symbol(character, Decl(APISample_compile.ts, 20, 19)) >diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start) : ts.LineAndCharacter ->diagnostic.file.getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter ->diagnostic.file : ts.SourceFile ->diagnostic : ts.Diagnostic ->file : ts.SourceFile ->getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter ->diagnostic.start : number ->diagnostic : ts.Diagnostic ->start : number +>diagnostic.file.getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1262, 26)) +>diagnostic.file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26)) +>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_compile.ts, 19, 27)) +>file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26)) +>getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1262, 26)) +>diagnostic.start : number, Symbol(ts.Diagnostic.start, Decl(typescript.d.ts, 1063, 25)) +>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_compile.ts, 19, 27)) +>start : number, Symbol(ts.Diagnostic.start, Decl(typescript.d.ts, 1063, 25)) var message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); ->message : string +>message : string, Symbol(message, Decl(APISample_compile.ts, 21, 11)) >ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n') : string ->ts.flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string ->ts : typeof ts ->flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string ->diagnostic.messageText : string | ts.DiagnosticMessageChain ->diagnostic : ts.Diagnostic ->messageText : string | ts.DiagnosticMessageChain +>ts.flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string, Symbol(ts.flattenDiagnosticMessageText, Decl(typescript.d.ts, 1200, 67)) +>ts : typeof ts, Symbol(ts, Decl(APISample_compile.ts, 9, 20)) +>flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string, Symbol(ts.flattenDiagnosticMessageText, Decl(typescript.d.ts, 1200, 67)) +>diagnostic.messageText : string | ts.DiagnosticMessageChain, Symbol(ts.Diagnostic.messageText, Decl(typescript.d.ts, 1065, 23)) +>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_compile.ts, 19, 27)) +>messageText : string | ts.DiagnosticMessageChain, Symbol(ts.Diagnostic.messageText, Decl(typescript.d.ts, 1065, 23)) +>'\n' : string console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`); >console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`) : any >console.log : any ->console : any +>console : any, Symbol(console, Decl(APISample_compile.ts, 8, 11)) >log : any ->diagnostic.file.fileName : string ->diagnostic.file : ts.SourceFile ->diagnostic : ts.Diagnostic ->file : ts.SourceFile ->fileName : string +>`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}` : string +>diagnostic.file.fileName : string, Symbol(ts.SourceFile.fileName, Decl(typescript.d.ts, 743, 29)) +>diagnostic.file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26)) +>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_compile.ts, 19, 27)) +>file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26)) +>fileName : string, Symbol(ts.SourceFile.fileName, Decl(typescript.d.ts, 743, 29)) >line + 1 : number ->line : number +>line : number, Symbol(line, Decl(APISample_compile.ts, 20, 13)) +>1 : number >character + 1 : number ->character : number ->message : string +>character : number, Symbol(character, Decl(APISample_compile.ts, 20, 19)) +>1 : number +>message : string, Symbol(message, Decl(APISample_compile.ts, 21, 11)) }); var exitCode = emitResult.emitSkipped ? 1 : 0; ->exitCode : number +>exitCode : number, Symbol(exitCode, Decl(APISample_compile.ts, 25, 7)) >emitResult.emitSkipped ? 1 : 0 : number ->emitResult.emitSkipped : boolean ->emitResult : ts.EmitResult ->emitSkipped : boolean +>emitResult.emitSkipped : boolean, Symbol(ts.EmitResult.emitSkipped, Decl(typescript.d.ts, 819, 26)) +>emitResult : ts.EmitResult, Symbol(emitResult, Decl(APISample_compile.ts, 15, 7)) +>emitSkipped : boolean, Symbol(ts.EmitResult.emitSkipped, Decl(typescript.d.ts, 819, 26)) +>1 : number +>0 : number console.log(`Process exiting with code '${exitCode}'.`); >console.log(`Process exiting with code '${exitCode}'.`) : any >console.log : any ->console : any +>console : any, Symbol(console, Decl(APISample_compile.ts, 8, 11)) >log : any ->exitCode : number +>`Process exiting with code '${exitCode}'.` : string +>exitCode : number, Symbol(exitCode, Decl(APISample_compile.ts, 25, 7)) process.exit(exitCode); >process.exit(exitCode) : any >process.exit : any ->process : any +>process : any, Symbol(process, Decl(APISample_compile.ts, 7, 11)) >exit : any ->exitCode : number +>exitCode : number, Symbol(exitCode, Decl(APISample_compile.ts, 25, 7)) } compile(process.argv.slice(2), { >compile(process.argv.slice(2), { noEmitOnError: true, noImplicitAny: true, target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS}) : void ->compile : (fileNames: string[], options: ts.CompilerOptions) => void +>compile : (fileNames: string[], options: ts.CompilerOptions) => void, Symbol(compile, Decl(APISample_compile.ts, 11, 34)) >process.argv.slice(2) : any >process.argv.slice : any >process.argv : any ->process : any +>process : any, Symbol(process, Decl(APISample_compile.ts, 7, 11)) >argv : any >slice : any +>2 : number >{ noEmitOnError: true, noImplicitAny: true, target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS} : { [x: string]: boolean | ts.ScriptTarget | ts.ModuleKind; noEmitOnError: boolean; noImplicitAny: boolean; target: ts.ScriptTarget; module: ts.ModuleKind; } noEmitOnError: true, noImplicitAny: true, ->noEmitOnError : boolean ->noImplicitAny : boolean +>noEmitOnError : boolean, Symbol(noEmitOnError, Decl(APISample_compile.ts, 30, 32)) +>true : boolean +>noImplicitAny : boolean, Symbol(noImplicitAny, Decl(APISample_compile.ts, 31, 24)) +>true : boolean target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS ->target : ts.ScriptTarget ->ts.ScriptTarget.ES5 : ts.ScriptTarget ->ts.ScriptTarget : typeof ts.ScriptTarget ->ts : typeof ts ->ScriptTarget : typeof ts.ScriptTarget ->ES5 : ts.ScriptTarget ->module : ts.ModuleKind ->ts.ModuleKind.CommonJS : ts.ModuleKind ->ts.ModuleKind : typeof ts.ModuleKind ->ts : typeof ts ->ModuleKind : typeof ts.ModuleKind ->CommonJS : ts.ModuleKind +>target : ts.ScriptTarget, Symbol(target, Decl(APISample_compile.ts, 31, 45)) +>ts.ScriptTarget.ES5 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES5, Decl(typescript.d.ts, 1117, 16)) +>ts.ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget, Decl(typescript.d.ts, 1115, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_compile.ts, 9, 20)) +>ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget, Decl(typescript.d.ts, 1115, 5)) +>ES5 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES5, Decl(typescript.d.ts, 1117, 16)) +>module : ts.ModuleKind, Symbol(module, Decl(APISample_compile.ts, 32, 32)) +>ts.ModuleKind.CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1108, 17)) +>ts.ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1106, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_compile.ts, 9, 20)) +>ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1106, 5)) +>CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1108, 17)) }); diff --git a/tests/baselines/reference/APISample_linter.types b/tests/baselines/reference/APISample_linter.types index 609f08f3a76..220b5c1c6fa 100644 --- a/tests/baselines/reference/APISample_linter.types +++ b/tests/baselines/reference/APISample_linter.types @@ -7,297 +7,306 @@ */ declare var process: any; ->process : any +>process : any, Symbol(process, Decl(APISample_linter.ts, 7, 11)) declare var console: any; ->console : any +>console : any, Symbol(console, Decl(APISample_linter.ts, 8, 11)) declare var readFileSync: any; ->readFileSync : any +>readFileSync : any, Symbol(readFileSync, Decl(APISample_linter.ts, 9, 11)) import * as ts from "typescript"; ->ts : typeof ts +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) export function delint(sourceFile: ts.SourceFile) { ->delint : (sourceFile: ts.SourceFile) => void ->sourceFile : ts.SourceFile ->ts : unknown ->SourceFile : ts.SourceFile +>delint : (sourceFile: ts.SourceFile) => void, Symbol(delint, Decl(APISample_linter.ts, 11, 33)) +>sourceFile : ts.SourceFile, Symbol(sourceFile, Decl(APISample_linter.ts, 13, 23)) +>ts : any, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SourceFile : ts.SourceFile, Symbol(ts.SourceFile, Decl(typescript.d.ts, 740, 5), Decl(typescript.d.ts, 1261, 5)) delintNode(sourceFile); >delintNode(sourceFile) : void ->delintNode : (node: ts.Node) => void ->sourceFile : ts.SourceFile +>delintNode : (node: ts.Node) => void, Symbol(delintNode, Decl(APISample_linter.ts, 14, 27)) +>sourceFile : ts.SourceFile, Symbol(sourceFile, Decl(APISample_linter.ts, 13, 23)) function delintNode(node: ts.Node) { ->delintNode : (node: ts.Node) => void ->node : ts.Node ->ts : unknown ->Node : ts.Node +>delintNode : (node: ts.Node) => void, Symbol(delintNode, Decl(APISample_linter.ts, 14, 27)) +>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 16, 24)) +>ts : any, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>Node : ts.Node, Symbol(ts.Node, Decl(typescript.d.ts, 296, 5), Decl(typescript.d.ts, 1221, 32)) switch (node.kind) { ->node.kind : ts.SyntaxKind ->node : ts.Node ->kind : ts.SyntaxKind +>node.kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38)) +>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 16, 24)) +>kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38)) case ts.SyntaxKind.ForStatement: ->ts.SyntaxKind.ForStatement : ts.SyntaxKind ->ts.SyntaxKind : typeof ts.SyntaxKind ->ts : typeof ts ->SyntaxKind : typeof ts.SyntaxKind ->ForStatement : ts.SyntaxKind +>ts.SyntaxKind.ForStatement : ts.SyntaxKind, Symbol(ts.SyntaxKind.ForStatement, Decl(typescript.d.ts, 209, 29)) +>ts.SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ForStatement : ts.SyntaxKind, Symbol(ts.SyntaxKind.ForStatement, Decl(typescript.d.ts, 209, 29)) case ts.SyntaxKind.ForInStatement: ->ts.SyntaxKind.ForInStatement : ts.SyntaxKind ->ts.SyntaxKind : typeof ts.SyntaxKind ->ts : typeof ts ->SyntaxKind : typeof ts.SyntaxKind ->ForInStatement : ts.SyntaxKind +>ts.SyntaxKind.ForInStatement : ts.SyntaxKind, Symbol(ts.SyntaxKind.ForInStatement, Decl(typescript.d.ts, 210, 27)) +>ts.SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ForInStatement : ts.SyntaxKind, Symbol(ts.SyntaxKind.ForInStatement, Decl(typescript.d.ts, 210, 27)) case ts.SyntaxKind.WhileStatement: ->ts.SyntaxKind.WhileStatement : ts.SyntaxKind ->ts.SyntaxKind : typeof ts.SyntaxKind ->ts : typeof ts ->SyntaxKind : typeof ts.SyntaxKind ->WhileStatement : ts.SyntaxKind +>ts.SyntaxKind.WhileStatement : ts.SyntaxKind, Symbol(ts.SyntaxKind.WhileStatement, Decl(typescript.d.ts, 208, 26)) +>ts.SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>WhileStatement : ts.SyntaxKind, Symbol(ts.SyntaxKind.WhileStatement, Decl(typescript.d.ts, 208, 26)) case ts.SyntaxKind.DoStatement: ->ts.SyntaxKind.DoStatement : ts.SyntaxKind ->ts.SyntaxKind : typeof ts.SyntaxKind ->ts : typeof ts ->SyntaxKind : typeof ts.SyntaxKind ->DoStatement : ts.SyntaxKind +>ts.SyntaxKind.DoStatement : ts.SyntaxKind, Symbol(ts.SyntaxKind.DoStatement, Decl(typescript.d.ts, 207, 26)) +>ts.SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>DoStatement : ts.SyntaxKind, Symbol(ts.SyntaxKind.DoStatement, Decl(typescript.d.ts, 207, 26)) if ((node).statement.kind !== ts.SyntaxKind.Block) { >(node).statement.kind !== ts.SyntaxKind.Block : boolean ->(node).statement.kind : ts.SyntaxKind ->(node).statement : ts.Statement +>(node).statement.kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38)) +>(node).statement : ts.Statement, Symbol(ts.IterationStatement.statement, Decl(typescript.d.ts, 589, 52)) >(node) : ts.IterationStatement >node : ts.IterationStatement ->ts : unknown ->IterationStatement : ts.IterationStatement ->node : ts.Node ->statement : ts.Statement ->kind : ts.SyntaxKind ->ts.SyntaxKind.Block : ts.SyntaxKind ->ts.SyntaxKind : typeof ts.SyntaxKind ->ts : typeof ts ->SyntaxKind : typeof ts.SyntaxKind ->Block : ts.SyntaxKind +>ts : any, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>IterationStatement : ts.IterationStatement, Symbol(ts.IterationStatement, Decl(typescript.d.ts, 588, 5)) +>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 16, 24)) +>statement : ts.Statement, Symbol(ts.IterationStatement.statement, Decl(typescript.d.ts, 589, 52)) +>kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38)) +>ts.SyntaxKind.Block : ts.SyntaxKind, Symbol(ts.SyntaxKind.Block, Decl(typescript.d.ts, 202, 36)) +>ts.SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>Block : ts.SyntaxKind, Symbol(ts.SyntaxKind.Block, Decl(typescript.d.ts, 202, 36)) report(node, "A looping statement's contents should be wrapped in a block body."); >report(node, "A looping statement's contents should be wrapped in a block body.") : void ->report : (node: ts.Node, message: string) => void ->node : ts.Node +>report : (node: ts.Node, message: string) => void, Symbol(report, Decl(APISample_linter.ts, 48, 5)) +>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 16, 24)) +>"A looping statement's contents should be wrapped in a block body." : string } break; case ts.SyntaxKind.IfStatement: ->ts.SyntaxKind.IfStatement : ts.SyntaxKind ->ts.SyntaxKind : typeof ts.SyntaxKind ->ts : typeof ts ->SyntaxKind : typeof ts.SyntaxKind ->IfStatement : ts.SyntaxKind +>ts.SyntaxKind.IfStatement : ts.SyntaxKind, Symbol(ts.SyntaxKind.IfStatement, Decl(typescript.d.ts, 206, 34)) +>ts.SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>IfStatement : ts.SyntaxKind, Symbol(ts.SyntaxKind.IfStatement, Decl(typescript.d.ts, 206, 34)) let ifStatement = (node); ->ifStatement : ts.IfStatement +>ifStatement : ts.IfStatement, Symbol(ifStatement, Decl(APISample_linter.ts, 28, 19)) >(node) : ts.IfStatement >node : ts.IfStatement ->ts : unknown ->IfStatement : ts.IfStatement ->node : ts.Node +>ts : any, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>IfStatement : ts.IfStatement, Symbol(ts.IfStatement, Decl(typescript.d.ts, 583, 5)) +>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 16, 24)) if (ifStatement.thenStatement.kind !== ts.SyntaxKind.Block) { >ifStatement.thenStatement.kind !== ts.SyntaxKind.Block : boolean ->ifStatement.thenStatement.kind : ts.SyntaxKind ->ifStatement.thenStatement : ts.Statement ->ifStatement : ts.IfStatement ->thenStatement : ts.Statement ->kind : ts.SyntaxKind ->ts.SyntaxKind.Block : ts.SyntaxKind ->ts.SyntaxKind : typeof ts.SyntaxKind ->ts : typeof ts ->SyntaxKind : typeof ts.SyntaxKind ->Block : ts.SyntaxKind +>ifStatement.thenStatement.kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38)) +>ifStatement.thenStatement : ts.Statement, Symbol(ts.IfStatement.thenStatement, Decl(typescript.d.ts, 585, 31)) +>ifStatement : ts.IfStatement, Symbol(ifStatement, Decl(APISample_linter.ts, 28, 19)) +>thenStatement : ts.Statement, Symbol(ts.IfStatement.thenStatement, Decl(typescript.d.ts, 585, 31)) +>kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38)) +>ts.SyntaxKind.Block : ts.SyntaxKind, Symbol(ts.SyntaxKind.Block, Decl(typescript.d.ts, 202, 36)) +>ts.SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>Block : ts.SyntaxKind, Symbol(ts.SyntaxKind.Block, Decl(typescript.d.ts, 202, 36)) report(ifStatement.thenStatement, "An if statement's contents should be wrapped in a block body."); >report(ifStatement.thenStatement, "An if statement's contents should be wrapped in a block body.") : void ->report : (node: ts.Node, message: string) => void ->ifStatement.thenStatement : ts.Statement ->ifStatement : ts.IfStatement ->thenStatement : ts.Statement +>report : (node: ts.Node, message: string) => void, Symbol(report, Decl(APISample_linter.ts, 48, 5)) +>ifStatement.thenStatement : ts.Statement, Symbol(ts.IfStatement.thenStatement, Decl(typescript.d.ts, 585, 31)) +>ifStatement : ts.IfStatement, Symbol(ifStatement, Decl(APISample_linter.ts, 28, 19)) +>thenStatement : ts.Statement, Symbol(ts.IfStatement.thenStatement, Decl(typescript.d.ts, 585, 31)) +>"An if statement's contents should be wrapped in a block body." : string } if (ifStatement.elseStatement && >ifStatement.elseStatement && ifStatement.elseStatement.kind !== ts.SyntaxKind.Block && ifStatement.elseStatement.kind !== ts.SyntaxKind.IfStatement : boolean >ifStatement.elseStatement && ifStatement.elseStatement.kind !== ts.SyntaxKind.Block : boolean ->ifStatement.elseStatement : ts.Statement ->ifStatement : ts.IfStatement ->elseStatement : ts.Statement +>ifStatement.elseStatement : ts.Statement, Symbol(ts.IfStatement.elseStatement, Decl(typescript.d.ts, 586, 33)) +>ifStatement : ts.IfStatement, Symbol(ifStatement, Decl(APISample_linter.ts, 28, 19)) +>elseStatement : ts.Statement, Symbol(ts.IfStatement.elseStatement, Decl(typescript.d.ts, 586, 33)) ifStatement.elseStatement.kind !== ts.SyntaxKind.Block && >ifStatement.elseStatement.kind !== ts.SyntaxKind.Block : boolean ->ifStatement.elseStatement.kind : ts.SyntaxKind ->ifStatement.elseStatement : ts.Statement ->ifStatement : ts.IfStatement ->elseStatement : ts.Statement ->kind : ts.SyntaxKind ->ts.SyntaxKind.Block : ts.SyntaxKind ->ts.SyntaxKind : typeof ts.SyntaxKind ->ts : typeof ts ->SyntaxKind : typeof ts.SyntaxKind ->Block : ts.SyntaxKind +>ifStatement.elseStatement.kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38)) +>ifStatement.elseStatement : ts.Statement, Symbol(ts.IfStatement.elseStatement, Decl(typescript.d.ts, 586, 33)) +>ifStatement : ts.IfStatement, Symbol(ifStatement, Decl(APISample_linter.ts, 28, 19)) +>elseStatement : ts.Statement, Symbol(ts.IfStatement.elseStatement, Decl(typescript.d.ts, 586, 33)) +>kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38)) +>ts.SyntaxKind.Block : ts.SyntaxKind, Symbol(ts.SyntaxKind.Block, Decl(typescript.d.ts, 202, 36)) +>ts.SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>Block : ts.SyntaxKind, Symbol(ts.SyntaxKind.Block, Decl(typescript.d.ts, 202, 36)) ifStatement.elseStatement.kind !== ts.SyntaxKind.IfStatement) { >ifStatement.elseStatement.kind !== ts.SyntaxKind.IfStatement : boolean ->ifStatement.elseStatement.kind : ts.SyntaxKind ->ifStatement.elseStatement : ts.Statement ->ifStatement : ts.IfStatement ->elseStatement : ts.Statement ->kind : ts.SyntaxKind ->ts.SyntaxKind.IfStatement : ts.SyntaxKind ->ts.SyntaxKind : typeof ts.SyntaxKind ->ts : typeof ts ->SyntaxKind : typeof ts.SyntaxKind ->IfStatement : ts.SyntaxKind +>ifStatement.elseStatement.kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38)) +>ifStatement.elseStatement : ts.Statement, Symbol(ts.IfStatement.elseStatement, Decl(typescript.d.ts, 586, 33)) +>ifStatement : ts.IfStatement, Symbol(ifStatement, Decl(APISample_linter.ts, 28, 19)) +>elseStatement : ts.Statement, Symbol(ts.IfStatement.elseStatement, Decl(typescript.d.ts, 586, 33)) +>kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38)) +>ts.SyntaxKind.IfStatement : ts.SyntaxKind, Symbol(ts.SyntaxKind.IfStatement, Decl(typescript.d.ts, 206, 34)) +>ts.SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>IfStatement : ts.SyntaxKind, Symbol(ts.SyntaxKind.IfStatement, Decl(typescript.d.ts, 206, 34)) report(ifStatement.elseStatement, "An else statement's contents should be wrapped in a block body."); >report(ifStatement.elseStatement, "An else statement's contents should be wrapped in a block body.") : void ->report : (node: ts.Node, message: string) => void ->ifStatement.elseStatement : ts.Statement ->ifStatement : ts.IfStatement ->elseStatement : ts.Statement +>report : (node: ts.Node, message: string) => void, Symbol(report, Decl(APISample_linter.ts, 48, 5)) +>ifStatement.elseStatement : ts.Statement, Symbol(ts.IfStatement.elseStatement, Decl(typescript.d.ts, 586, 33)) +>ifStatement : ts.IfStatement, Symbol(ifStatement, Decl(APISample_linter.ts, 28, 19)) +>elseStatement : ts.Statement, Symbol(ts.IfStatement.elseStatement, Decl(typescript.d.ts, 586, 33)) +>"An else statement's contents should be wrapped in a block body." : string } break; case ts.SyntaxKind.BinaryExpression: ->ts.SyntaxKind.BinaryExpression : ts.SyntaxKind ->ts.SyntaxKind : typeof ts.SyntaxKind ->ts : typeof ts ->SyntaxKind : typeof ts.SyntaxKind ->BinaryExpression : ts.SyntaxKind +>ts.SyntaxKind.BinaryExpression : ts.SyntaxKind, Symbol(ts.SyntaxKind.BinaryExpression, Decl(typescript.d.ts, 192, 37)) +>ts.SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>BinaryExpression : ts.SyntaxKind, Symbol(ts.SyntaxKind.BinaryExpression, Decl(typescript.d.ts, 192, 37)) let op = (node).operatorToken.kind; ->op : ts.SyntaxKind ->(node).operatorToken.kind : ts.SyntaxKind ->(node).operatorToken : ts.Node +>op : ts.SyntaxKind, Symbol(op, Decl(APISample_linter.ts, 40, 19)) +>(node).operatorToken.kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38)) +>(node).operatorToken : ts.Node, Symbol(ts.BinaryExpression.operatorToken, Decl(typescript.d.ts, 497, 25)) >(node) : ts.BinaryExpression >node : ts.BinaryExpression ->ts : unknown ->BinaryExpression : ts.BinaryExpression ->node : ts.Node ->operatorToken : ts.Node ->kind : ts.SyntaxKind +>ts : any, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>BinaryExpression : ts.BinaryExpression, Symbol(ts.BinaryExpression, Decl(typescript.d.ts, 495, 5)) +>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 16, 24)) +>operatorToken : ts.Node, Symbol(ts.BinaryExpression.operatorToken, Decl(typescript.d.ts, 497, 25)) +>kind : ts.SyntaxKind, Symbol(ts.Node.kind, Decl(typescript.d.ts, 297, 38)) if (op === ts.SyntaxKind.EqualsEqualsToken || op == ts.SyntaxKind.ExclamationEqualsToken) { >op === ts.SyntaxKind.EqualsEqualsToken || op == ts.SyntaxKind.ExclamationEqualsToken : boolean >op === ts.SyntaxKind.EqualsEqualsToken : boolean ->op : ts.SyntaxKind ->ts.SyntaxKind.EqualsEqualsToken : ts.SyntaxKind ->ts.SyntaxKind : typeof ts.SyntaxKind ->ts : typeof ts ->SyntaxKind : typeof ts.SyntaxKind ->EqualsEqualsToken : ts.SyntaxKind +>op : ts.SyntaxKind, Symbol(op, Decl(APISample_linter.ts, 40, 19)) +>ts.SyntaxKind.EqualsEqualsToken : ts.SyntaxKind, Symbol(ts.SyntaxKind.EqualsEqualsToken, Decl(typescript.d.ts, 51, 36)) +>ts.SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>EqualsEqualsToken : ts.SyntaxKind, Symbol(ts.SyntaxKind.EqualsEqualsToken, Decl(typescript.d.ts, 51, 36)) >op == ts.SyntaxKind.ExclamationEqualsToken : boolean ->op : ts.SyntaxKind ->ts.SyntaxKind.ExclamationEqualsToken : ts.SyntaxKind ->ts.SyntaxKind : typeof ts.SyntaxKind ->ts : typeof ts ->SyntaxKind : typeof ts.SyntaxKind ->ExclamationEqualsToken : ts.SyntaxKind +>op : ts.SyntaxKind, Symbol(op, Decl(APISample_linter.ts, 40, 19)) +>ts.SyntaxKind.ExclamationEqualsToken : ts.SyntaxKind, Symbol(ts.SyntaxKind.ExclamationEqualsToken, Decl(typescript.d.ts, 52, 31)) +>ts.SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>SyntaxKind : typeof ts.SyntaxKind, Symbol(ts.SyntaxKind, Decl(typescript.d.ts, 22, 5)) +>ExclamationEqualsToken : ts.SyntaxKind, Symbol(ts.SyntaxKind.ExclamationEqualsToken, Decl(typescript.d.ts, 52, 31)) report(node, "Use '===' and '!=='.") >report(node, "Use '===' and '!=='.") : void ->report : (node: ts.Node, message: string) => void ->node : ts.Node +>report : (node: ts.Node, message: string) => void, Symbol(report, Decl(APISample_linter.ts, 48, 5)) +>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 16, 24)) +>"Use '===' and '!=='." : string } break; } ts.forEachChild(node, delintNode); >ts.forEachChild(node, delintNode) : void ->ts.forEachChild : (node: ts.Node, cbNode: (node: ts.Node) => T, cbNodeArray?: (nodes: ts.Node[]) => T) => T ->ts : typeof ts ->forEachChild : (node: ts.Node, cbNode: (node: ts.Node) => T, cbNodeArray?: (nodes: ts.Node[]) => T) => T ->node : ts.Node ->delintNode : (node: ts.Node) => void +>ts.forEachChild : (node: ts.Node, cbNode: (node: ts.Node) => T, cbNodeArray?: (nodes: ts.Node[]) => T) => T, Symbol(ts.forEachChild, Decl(typescript.d.ts, 1186, 48)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>forEachChild : (node: ts.Node, cbNode: (node: ts.Node) => T, cbNodeArray?: (nodes: ts.Node[]) => T) => T, Symbol(ts.forEachChild, Decl(typescript.d.ts, 1186, 48)) +>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 16, 24)) +>delintNode : (node: ts.Node) => void, Symbol(delintNode, Decl(APISample_linter.ts, 14, 27)) } function report(node: ts.Node, message: string) { ->report : (node: ts.Node, message: string) => void ->node : ts.Node ->ts : unknown ->Node : ts.Node ->message : string +>report : (node: ts.Node, message: string) => void, Symbol(report, Decl(APISample_linter.ts, 48, 5)) +>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 50, 20)) +>ts : any, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>Node : ts.Node, Symbol(ts.Node, Decl(typescript.d.ts, 296, 5), Decl(typescript.d.ts, 1221, 32)) +>message : string, Symbol(message, Decl(APISample_linter.ts, 50, 34)) let { line, character } = sourceFile.getLineAndCharacterOfPosition(node.getStart()); ->line : number ->character : number +>line : number, Symbol(line, Decl(APISample_linter.ts, 51, 13)) +>character : number, Symbol(character, Decl(APISample_linter.ts, 51, 19)) >sourceFile.getLineAndCharacterOfPosition(node.getStart()) : ts.LineAndCharacter ->sourceFile.getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter ->sourceFile : ts.SourceFile ->getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter +>sourceFile.getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1262, 26)) +>sourceFile : ts.SourceFile, Symbol(sourceFile, Decl(APISample_linter.ts, 13, 23)) +>getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1262, 26)) >node.getStart() : number ->node.getStart : (sourceFile?: ts.SourceFile) => number ->node : ts.Node ->getStart : (sourceFile?: ts.SourceFile) => number +>node.getStart : (sourceFile?: ts.SourceFile) => number, Symbol(ts.Node.getStart, Decl(typescript.d.ts, 1226, 53)) +>node : ts.Node, Symbol(node, Decl(APISample_linter.ts, 50, 20)) +>getStart : (sourceFile?: ts.SourceFile) => number, Symbol(ts.Node.getStart, Decl(typescript.d.ts, 1226, 53)) console.log(`${sourceFile.fileName} (${line + 1},${character + 1}): ${message}`); >console.log(`${sourceFile.fileName} (${line + 1},${character + 1}): ${message}`) : any >console.log : any ->console : any +>console : any, Symbol(console, Decl(APISample_linter.ts, 8, 11)) >log : any ->sourceFile.fileName : string ->sourceFile : ts.SourceFile ->fileName : string +>`${sourceFile.fileName} (${line + 1},${character + 1}): ${message}` : string +>sourceFile.fileName : string, Symbol(ts.SourceFile.fileName, Decl(typescript.d.ts, 743, 29)) +>sourceFile : ts.SourceFile, Symbol(sourceFile, Decl(APISample_linter.ts, 13, 23)) +>fileName : string, Symbol(ts.SourceFile.fileName, Decl(typescript.d.ts, 743, 29)) >line + 1 : number ->line : number +>line : number, Symbol(line, Decl(APISample_linter.ts, 51, 13)) +>1 : number >character + 1 : number ->character : number ->message : string +>character : number, Symbol(character, Decl(APISample_linter.ts, 51, 19)) +>1 : number +>message : string, Symbol(message, Decl(APISample_linter.ts, 50, 34)) } } const fileNames = process.argv.slice(2); ->fileNames : any +>fileNames : any, Symbol(fileNames, Decl(APISample_linter.ts, 56, 5)) >process.argv.slice(2) : any >process.argv.slice : any >process.argv : any ->process : any +>process : any, Symbol(process, Decl(APISample_linter.ts, 7, 11)) >argv : any >slice : any +>2 : number fileNames.forEach(fileName => { >fileNames.forEach(fileName => { // Parse a file let sourceFile = ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES6, /*setParentNodes */ true); // delint it delint(sourceFile);}) : any >fileNames.forEach : any ->fileNames : any +>fileNames : any, Symbol(fileNames, Decl(APISample_linter.ts, 56, 5)) >forEach : any >fileName => { // Parse a file let sourceFile = ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES6, /*setParentNodes */ true); // delint it delint(sourceFile);} : (fileName: any) => void ->fileName : any +>fileName : any, Symbol(fileName, Decl(APISample_linter.ts, 57, 18)) // Parse a file let sourceFile = ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES6, /*setParentNodes */ true); ->sourceFile : ts.SourceFile +>sourceFile : ts.SourceFile, Symbol(sourceFile, Decl(APISample_linter.ts, 59, 7)) >ts.createSourceFile(fileName, readFileSync(fileName).toString(), ts.ScriptTarget.ES6, /*setParentNodes */ true) : ts.SourceFile ->ts.createSourceFile : (fileName: string, sourceText: string, languageVersion: ts.ScriptTarget, setParentNodes?: boolean) => ts.SourceFile ->ts : typeof ts ->createSourceFile : (fileName: string, sourceText: string, languageVersion: ts.ScriptTarget, setParentNodes?: boolean) => ts.SourceFile ->fileName : any +>ts.createSourceFile : (fileName: string, sourceText: string, languageVersion: ts.ScriptTarget, setParentNodes?: boolean) => ts.SourceFile, Symbol(ts.createSourceFile, Decl(typescript.d.ts, 1190, 62)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>createSourceFile : (fileName: string, sourceText: string, languageVersion: ts.ScriptTarget, setParentNodes?: boolean) => ts.SourceFile, Symbol(ts.createSourceFile, Decl(typescript.d.ts, 1190, 62)) +>fileName : any, Symbol(fileName, Decl(APISample_linter.ts, 57, 18)) >readFileSync(fileName).toString() : any >readFileSync(fileName).toString : any >readFileSync(fileName) : any ->readFileSync : any ->fileName : any +>readFileSync : any, Symbol(readFileSync, Decl(APISample_linter.ts, 9, 11)) +>fileName : any, Symbol(fileName, Decl(APISample_linter.ts, 57, 18)) >toString : any ->ts.ScriptTarget.ES6 : ts.ScriptTarget ->ts.ScriptTarget : typeof ts.ScriptTarget ->ts : typeof ts ->ScriptTarget : typeof ts.ScriptTarget ->ES6 : ts.ScriptTarget +>ts.ScriptTarget.ES6 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES6, Decl(typescript.d.ts, 1118, 16)) +>ts.ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget, Decl(typescript.d.ts, 1115, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_linter.ts, 11, 6)) +>ScriptTarget : typeof ts.ScriptTarget, Symbol(ts.ScriptTarget, Decl(typescript.d.ts, 1115, 5)) +>ES6 : ts.ScriptTarget, Symbol(ts.ScriptTarget.ES6, Decl(typescript.d.ts, 1118, 16)) +>true : boolean // delint it delint(sourceFile); >delint(sourceFile) : void ->delint : (sourceFile: ts.SourceFile) => void ->sourceFile : ts.SourceFile +>delint : (sourceFile: ts.SourceFile) => void, Symbol(delint, Decl(APISample_linter.ts, 11, 33)) +>sourceFile : ts.SourceFile, Symbol(sourceFile, Decl(APISample_linter.ts, 59, 7)) }); diff --git a/tests/baselines/reference/APISample_transform.types b/tests/baselines/reference/APISample_transform.types index d98d2cfad00..594b1b5f7f4 100644 --- a/tests/baselines/reference/APISample_transform.types +++ b/tests/baselines/reference/APISample_transform.types @@ -7,37 +7,38 @@ */ declare var console: any; ->console : any +>console : any, Symbol(console, Decl(APISample_transform.ts, 7, 11)) import * as ts from "typescript"; ->ts : typeof ts +>ts : typeof ts, Symbol(ts, Decl(APISample_transform.ts, 9, 6)) const source = "let x: string = 'string'"; ->source : string +>source : string, Symbol(source, Decl(APISample_transform.ts, 11, 5)) +>"let x: string = 'string'" : string let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS }); ->result : string +>result : string, Symbol(result, Decl(APISample_transform.ts, 13, 3)) >ts.transpile(source, { module: ts.ModuleKind.CommonJS }) : string ->ts.transpile : (input: string, compilerOptions?: ts.CompilerOptions, fileName?: string, diagnostics?: ts.Diagnostic[]) => string ->ts : typeof ts ->transpile : (input: string, compilerOptions?: ts.CompilerOptions, fileName?: string, diagnostics?: ts.Diagnostic[]) => string ->source : string +>ts.transpile : (input: string, compilerOptions?: ts.CompilerOptions, fileName?: string, diagnostics?: ts.Diagnostic[]) => string, Symbol(ts.transpile, Decl(typescript.d.ts, 1728, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_transform.ts, 9, 6)) +>transpile : (input: string, compilerOptions?: ts.CompilerOptions, fileName?: string, diagnostics?: ts.Diagnostic[]) => string, Symbol(ts.transpile, Decl(typescript.d.ts, 1728, 5)) +>source : string, Symbol(source, Decl(APISample_transform.ts, 11, 5)) >{ module: ts.ModuleKind.CommonJS } : { [x: string]: ts.ModuleKind; module: ts.ModuleKind; } ->module : ts.ModuleKind ->ts.ModuleKind.CommonJS : ts.ModuleKind ->ts.ModuleKind : typeof ts.ModuleKind ->ts : typeof ts ->ModuleKind : typeof ts.ModuleKind ->CommonJS : ts.ModuleKind +>module : ts.ModuleKind, Symbol(module, Decl(APISample_transform.ts, 13, 35)) +>ts.ModuleKind.CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1108, 17)) +>ts.ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1106, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_transform.ts, 9, 6)) +>ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1106, 5)) +>CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1108, 17)) console.log(JSON.stringify(result)); >console.log(JSON.stringify(result)) : any >console.log : any ->console : any +>console : any, Symbol(console, Decl(APISample_transform.ts, 7, 11)) >log : any >JSON.stringify(result) : string ->JSON.stringify : { (value: any): string; (value: any, replacer: (key: string, value: any) => any): string; (value: any, replacer: any[]): string; (value: any, replacer: (key: string, value: any) => any, space: any): string; (value: any, replacer: any[], space: any): string; } ->JSON : JSON ->stringify : { (value: any): string; (value: any, replacer: (key: string, value: any) => any): string; (value: any, replacer: any[]): string; (value: any, replacer: (key: string, value: any) => any, space: any): string; (value: any, replacer: any[], space: any): string; } ->result : string +>JSON.stringify : { (value: any): string; (value: any, replacer: (key: string, value: any) => any): string; (value: any, replacer: any[]): string; (value: any, replacer: (key: string, value: any) => any, space: any): string; (value: any, replacer: any[], space: any): string; }, Symbol(JSON.stringify, Decl(lib.d.ts, 964, 70), Decl(lib.d.ts, 969, 34), Decl(lib.d.ts, 975, 78), Decl(lib.d.ts, 981, 51), Decl(lib.d.ts, 988, 90)) +>JSON : JSON, Symbol(JSON, Decl(lib.d.ts, 955, 42), Decl(lib.d.ts, 1000, 11)) +>stringify : { (value: any): string; (value: any, replacer: (key: string, value: any) => any): string; (value: any, replacer: any[]): string; (value: any, replacer: (key: string, value: any) => any, space: any): string; (value: any, replacer: any[], space: any): string; }, Symbol(JSON.stringify, Decl(lib.d.ts, 964, 70), Decl(lib.d.ts, 969, 34), Decl(lib.d.ts, 975, 78), Decl(lib.d.ts, 981, 51), Decl(lib.d.ts, 988, 90)) +>result : string, Symbol(result, Decl(APISample_transform.ts, 13, 3)) diff --git a/tests/baselines/reference/APISample_watcher.types b/tests/baselines/reference/APISample_watcher.types index 5f123ea839b..a8683302d9a 100644 --- a/tests/baselines/reference/APISample_watcher.types +++ b/tests/baselines/reference/APISample_watcher.types @@ -7,197 +7,200 @@ */ declare var process: any; ->process : any +>process : any, Symbol(process, Decl(APISample_watcher.ts, 7, 11)) declare var console: any; ->console : any +>console : any, Symbol(console, Decl(APISample_watcher.ts, 8, 11)) declare var fs: any; ->fs : any +>fs : any, Symbol(fs, Decl(APISample_watcher.ts, 9, 11)) declare var path: any; ->path : any +>path : any, Symbol(path, Decl(APISample_watcher.ts, 10, 11)) import * as ts from "typescript"; ->ts : typeof ts +>ts : typeof ts, Symbol(ts, Decl(APISample_watcher.ts, 12, 6)) function watch(rootFileNames: string[], options: ts.CompilerOptions) { ->watch : (rootFileNames: string[], options: ts.CompilerOptions) => void ->rootFileNames : string[] ->options : ts.CompilerOptions ->ts : unknown ->CompilerOptions : ts.CompilerOptions +>watch : (rootFileNames: string[], options: ts.CompilerOptions) => void, Symbol(watch, Decl(APISample_watcher.ts, 12, 33)) +>rootFileNames : string[], Symbol(rootFileNames, Decl(APISample_watcher.ts, 14, 15)) +>options : ts.CompilerOptions, Symbol(options, Decl(APISample_watcher.ts, 14, 39)) +>ts : any, Symbol(ts, Decl(APISample_watcher.ts, 12, 6)) +>CompilerOptions : ts.CompilerOptions, Symbol(ts.CompilerOptions, Decl(typescript.d.ts, 1074, 5)) const files: ts.Map<{ version: number }> = {}; ->files : ts.Map<{ version: number; }> ->ts : unknown ->Map : ts.Map ->version : number +>files : ts.Map<{ version: number; }>, Symbol(files, Decl(APISample_watcher.ts, 15, 9)) +>ts : any, Symbol(ts, Decl(APISample_watcher.ts, 12, 6)) +>Map : ts.Map, Symbol(ts.Map, Decl(typescript.d.ts, 15, 29)) +>version : number, Symbol(version, Decl(APISample_watcher.ts, 15, 25)) >{} : { [x: string]: undefined; } // initialize the list of files rootFileNames.forEach(fileName => { >rootFileNames.forEach(fileName => { files[fileName] = { version: 0 }; }) : void ->rootFileNames.forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void ->rootFileNames : string[] ->forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void +>rootFileNames.forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void, Symbol(Array.forEach, Decl(lib.d.ts, 1108, 95)) +>rootFileNames : string[], Symbol(rootFileNames, Decl(APISample_watcher.ts, 14, 15)) +>forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void, Symbol(Array.forEach, Decl(lib.d.ts, 1108, 95)) >fileName => { files[fileName] = { version: 0 }; } : (fileName: string) => void ->fileName : string +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 18, 26)) files[fileName] = { version: 0 }; >files[fileName] = { version: 0 } : { version: number; } >files[fileName] : { version: number; } ->files : ts.Map<{ version: number; }> ->fileName : string +>files : ts.Map<{ version: number; }>, Symbol(files, Decl(APISample_watcher.ts, 15, 9)) +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 18, 26)) >{ version: 0 } : { version: number; } ->version : number +>version : number, Symbol(version, Decl(APISample_watcher.ts, 19, 27)) +>0 : number }); // Create the language service host to allow the LS to communicate with the host const servicesHost: ts.LanguageServiceHost = { ->servicesHost : ts.LanguageServiceHost ->ts : unknown ->LanguageServiceHost : ts.LanguageServiceHost +>servicesHost : ts.LanguageServiceHost, Symbol(servicesHost, Decl(APISample_watcher.ts, 23, 9)) +>ts : any, Symbol(ts, Decl(APISample_watcher.ts, 12, 6)) +>LanguageServiceHost : ts.LanguageServiceHost, Symbol(ts.LanguageServiceHost, Decl(typescript.d.ts, 1294, 5)) >{ getScriptFileNames: () => rootFileNames, getScriptVersion: (fileName) => files[fileName] && files[fileName].version.toString(), getScriptSnapshot: (fileName) => { if (!fs.existsSync(fileName)) { return undefined; } return ts.ScriptSnapshot.fromString(fs.readFileSync(fileName).toString()); }, getCurrentDirectory: () => process.cwd(), getCompilationSettings: () => options, getDefaultLibFileName: (options) => ts.getDefaultLibFilePath(options), } : { getScriptFileNames: () => string[]; getScriptVersion: (fileName: string) => string; getScriptSnapshot: (fileName: string) => ts.IScriptSnapshot; getCurrentDirectory: () => any; getCompilationSettings: () => ts.CompilerOptions; getDefaultLibFileName: (options: ts.CompilerOptions) => string; } getScriptFileNames: () => rootFileNames, ->getScriptFileNames : () => string[] +>getScriptFileNames : () => string[], Symbol(getScriptFileNames, Decl(APISample_watcher.ts, 23, 50)) >() => rootFileNames : () => string[] ->rootFileNames : string[] +>rootFileNames : string[], Symbol(rootFileNames, Decl(APISample_watcher.ts, 14, 15)) getScriptVersion: (fileName) => files[fileName] && files[fileName].version.toString(), ->getScriptVersion : (fileName: string) => string +>getScriptVersion : (fileName: string) => string, Symbol(getScriptVersion, Decl(APISample_watcher.ts, 24, 48)) >(fileName) => files[fileName] && files[fileName].version.toString() : (fileName: string) => string ->fileName : string +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 25, 27)) >files[fileName] && files[fileName].version.toString() : string >files[fileName] : { version: number; } ->files : ts.Map<{ version: number; }> ->fileName : string +>files : ts.Map<{ version: number; }>, Symbol(files, Decl(APISample_watcher.ts, 15, 9)) +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 25, 27)) >files[fileName].version.toString() : string ->files[fileName].version.toString : (radix?: number) => string ->files[fileName].version : number +>files[fileName].version.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>files[fileName].version : number, Symbol(version, Decl(APISample_watcher.ts, 15, 25)) >files[fileName] : { version: number; } ->files : ts.Map<{ version: number; }> ->fileName : string ->version : number ->toString : (radix?: number) => string +>files : ts.Map<{ version: number; }>, Symbol(files, Decl(APISample_watcher.ts, 15, 9)) +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 25, 27)) +>version : number, Symbol(version, Decl(APISample_watcher.ts, 15, 25)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) getScriptSnapshot: (fileName) => { ->getScriptSnapshot : (fileName: string) => ts.IScriptSnapshot +>getScriptSnapshot : (fileName: string) => ts.IScriptSnapshot, Symbol(getScriptSnapshot, Decl(APISample_watcher.ts, 25, 94)) >(fileName) => { if (!fs.existsSync(fileName)) { return undefined; } return ts.ScriptSnapshot.fromString(fs.readFileSync(fileName).toString()); } : (fileName: string) => ts.IScriptSnapshot ->fileName : string +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 26, 28)) if (!fs.existsSync(fileName)) { >!fs.existsSync(fileName) : boolean >fs.existsSync(fileName) : any >fs.existsSync : any ->fs : any +>fs : any, Symbol(fs, Decl(APISample_watcher.ts, 9, 11)) >existsSync : any ->fileName : string +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 26, 28)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } return ts.ScriptSnapshot.fromString(fs.readFileSync(fileName).toString()); >ts.ScriptSnapshot.fromString(fs.readFileSync(fileName).toString()) : ts.IScriptSnapshot ->ts.ScriptSnapshot.fromString : (text: string) => ts.IScriptSnapshot ->ts.ScriptSnapshot : typeof ts.ScriptSnapshot ->ts : typeof ts ->ScriptSnapshot : typeof ts.ScriptSnapshot ->fromString : (text: string) => ts.IScriptSnapshot +>ts.ScriptSnapshot.fromString : (text: string) => ts.IScriptSnapshot, Symbol(ts.ScriptSnapshot.fromString, Decl(typescript.d.ts, 1287, 27)) +>ts.ScriptSnapshot : typeof ts.ScriptSnapshot, Symbol(ts.ScriptSnapshot, Decl(typescript.d.ts, 1286, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_watcher.ts, 12, 6)) +>ScriptSnapshot : typeof ts.ScriptSnapshot, Symbol(ts.ScriptSnapshot, Decl(typescript.d.ts, 1286, 5)) +>fromString : (text: string) => ts.IScriptSnapshot, Symbol(ts.ScriptSnapshot.fromString, Decl(typescript.d.ts, 1287, 27)) >fs.readFileSync(fileName).toString() : any >fs.readFileSync(fileName).toString : any >fs.readFileSync(fileName) : any >fs.readFileSync : any ->fs : any +>fs : any, Symbol(fs, Decl(APISample_watcher.ts, 9, 11)) >readFileSync : any ->fileName : string +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 26, 28)) >toString : any }, getCurrentDirectory: () => process.cwd(), ->getCurrentDirectory : () => any +>getCurrentDirectory : () => any, Symbol(getCurrentDirectory, Decl(APISample_watcher.ts, 32, 10)) >() => process.cwd() : () => any >process.cwd() : any >process.cwd : any ->process : any +>process : any, Symbol(process, Decl(APISample_watcher.ts, 7, 11)) >cwd : any getCompilationSettings: () => options, ->getCompilationSettings : () => ts.CompilerOptions +>getCompilationSettings : () => ts.CompilerOptions, Symbol(getCompilationSettings, Decl(APISample_watcher.ts, 33, 49)) >() => options : () => ts.CompilerOptions ->options : ts.CompilerOptions +>options : ts.CompilerOptions, Symbol(options, Decl(APISample_watcher.ts, 14, 39)) getDefaultLibFileName: (options) => ts.getDefaultLibFilePath(options), ->getDefaultLibFileName : (options: ts.CompilerOptions) => string +>getDefaultLibFileName : (options: ts.CompilerOptions) => string, Symbol(getDefaultLibFileName, Decl(APISample_watcher.ts, 34, 46)) >(options) => ts.getDefaultLibFilePath(options) : (options: ts.CompilerOptions) => string ->options : ts.CompilerOptions +>options : ts.CompilerOptions, Symbol(options, Decl(APISample_watcher.ts, 35, 32)) >ts.getDefaultLibFilePath(options) : string ->ts.getDefaultLibFilePath : (options: ts.CompilerOptions) => string ->ts : typeof ts ->getDefaultLibFilePath : (options: ts.CompilerOptions) => string ->options : ts.CompilerOptions +>ts.getDefaultLibFilePath : (options: ts.CompilerOptions) => string, Symbol(ts.getDefaultLibFilePath, Decl(typescript.d.ts, 1736, 44)) +>ts : typeof ts, Symbol(ts, Decl(APISample_watcher.ts, 12, 6)) +>getDefaultLibFilePath : (options: ts.CompilerOptions) => string, Symbol(ts.getDefaultLibFilePath, Decl(typescript.d.ts, 1736, 44)) +>options : ts.CompilerOptions, Symbol(options, Decl(APISample_watcher.ts, 35, 32)) }; // Create the language service files const services = ts.createLanguageService(servicesHost, ts.createDocumentRegistry()) ->services : ts.LanguageService +>services : ts.LanguageService, Symbol(services, Decl(APISample_watcher.ts, 39, 9)) >ts.createLanguageService(servicesHost, ts.createDocumentRegistry()) : ts.LanguageService ->ts.createLanguageService : (host: ts.LanguageServiceHost, documentRegistry?: ts.DocumentRegistry) => ts.LanguageService ->ts : typeof ts ->createLanguageService : (host: ts.LanguageServiceHost, documentRegistry?: ts.DocumentRegistry) => ts.LanguageService ->servicesHost : ts.LanguageServiceHost +>ts.createLanguageService : (host: ts.LanguageServiceHost, documentRegistry?: ts.DocumentRegistry) => ts.LanguageService, Symbol(ts.createLanguageService, Decl(typescript.d.ts, 1734, 97)) +>ts : typeof ts, Symbol(ts, Decl(APISample_watcher.ts, 12, 6)) +>createLanguageService : (host: ts.LanguageServiceHost, documentRegistry?: ts.DocumentRegistry) => ts.LanguageService, Symbol(ts.createLanguageService, Decl(typescript.d.ts, 1734, 97)) +>servicesHost : ts.LanguageServiceHost, Symbol(servicesHost, Decl(APISample_watcher.ts, 23, 9)) >ts.createDocumentRegistry() : ts.DocumentRegistry ->ts.createDocumentRegistry : () => ts.DocumentRegistry ->ts : typeof ts ->createDocumentRegistry : () => ts.DocumentRegistry +>ts.createDocumentRegistry : () => ts.DocumentRegistry, Symbol(ts.createDocumentRegistry, Decl(typescript.d.ts, 1732, 193)) +>ts : typeof ts, Symbol(ts, Decl(APISample_watcher.ts, 12, 6)) +>createDocumentRegistry : () => ts.DocumentRegistry, Symbol(ts.createDocumentRegistry, Decl(typescript.d.ts, 1732, 193)) // Now let's watch the files rootFileNames.forEach(fileName => { >rootFileNames.forEach(fileName => { // First time around, emit all files emitFile(fileName); // Add a watch on the file to handle next change fs.watchFile(fileName, { persistent: true, interval: 250 }, (curr, prev) => { // Check timestamp if (+curr.mtime <= +prev.mtime) { return; } // Update the version to signal a change in the file files[fileName].version++; // write the changes to disk emitFile(fileName); }); }) : void ->rootFileNames.forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void ->rootFileNames : string[] ->forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void +>rootFileNames.forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void, Symbol(Array.forEach, Decl(lib.d.ts, 1108, 95)) +>rootFileNames : string[], Symbol(rootFileNames, Decl(APISample_watcher.ts, 14, 15)) +>forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void, Symbol(Array.forEach, Decl(lib.d.ts, 1108, 95)) >fileName => { // First time around, emit all files emitFile(fileName); // Add a watch on the file to handle next change fs.watchFile(fileName, { persistent: true, interval: 250 }, (curr, prev) => { // Check timestamp if (+curr.mtime <= +prev.mtime) { return; } // Update the version to signal a change in the file files[fileName].version++; // write the changes to disk emitFile(fileName); }); } : (fileName: string) => void ->fileName : string +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 42, 26)) // First time around, emit all files emitFile(fileName); >emitFile(fileName) : void ->emitFile : (fileName: string) => void ->fileName : string +>emitFile : (fileName: string) => void, Symbol(emitFile, Decl(APISample_watcher.ts, 61, 7)) +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 42, 26)) // Add a watch on the file to handle next change fs.watchFile(fileName, >fs.watchFile(fileName, { persistent: true, interval: 250 }, (curr, prev) => { // Check timestamp if (+curr.mtime <= +prev.mtime) { return; } // Update the version to signal a change in the file files[fileName].version++; // write the changes to disk emitFile(fileName); }) : any >fs.watchFile : any ->fs : any +>fs : any, Symbol(fs, Decl(APISample_watcher.ts, 9, 11)) >watchFile : any ->fileName : string +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 42, 26)) { persistent: true, interval: 250 }, >{ persistent: true, interval: 250 } : { persistent: boolean; interval: number; } ->persistent : boolean ->interval : number +>persistent : boolean, Symbol(persistent, Decl(APISample_watcher.ts, 48, 13)) +>true : boolean +>interval : number, Symbol(interval, Decl(APISample_watcher.ts, 48, 31)) +>250 : number (curr, prev) => { >(curr, prev) => { // Check timestamp if (+curr.mtime <= +prev.mtime) { return; } // Update the version to signal a change in the file files[fileName].version++; // write the changes to disk emitFile(fileName); } : (curr: any, prev: any) => void ->curr : any ->prev : any +>curr : any, Symbol(curr, Decl(APISample_watcher.ts, 49, 13)) +>prev : any, Symbol(prev, Decl(APISample_watcher.ts, 49, 18)) // Check timestamp if (+curr.mtime <= +prev.mtime) { >+curr.mtime <= +prev.mtime : boolean >+curr.mtime : number >curr.mtime : any ->curr : any +>curr : any, Symbol(curr, Decl(APISample_watcher.ts, 49, 13)) >mtime : any >+prev.mtime : number >prev.mtime : any ->prev : any +>prev : any, Symbol(prev, Decl(APISample_watcher.ts, 49, 18)) >mtime : any return; @@ -206,175 +209,183 @@ function watch(rootFileNames: string[], options: ts.CompilerOptions) { // Update the version to signal a change in the file files[fileName].version++; >files[fileName].version++ : number ->files[fileName].version : number +>files[fileName].version : number, Symbol(version, Decl(APISample_watcher.ts, 15, 25)) >files[fileName] : { version: number; } ->files : ts.Map<{ version: number; }> ->fileName : string ->version : number +>files : ts.Map<{ version: number; }>, Symbol(files, Decl(APISample_watcher.ts, 15, 9)) +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 42, 26)) +>version : number, Symbol(version, Decl(APISample_watcher.ts, 15, 25)) // write the changes to disk emitFile(fileName); >emitFile(fileName) : void ->emitFile : (fileName: string) => void ->fileName : string +>emitFile : (fileName: string) => void, Symbol(emitFile, Decl(APISample_watcher.ts, 61, 7)) +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 42, 26)) }); }); function emitFile(fileName: string) { ->emitFile : (fileName: string) => void ->fileName : string +>emitFile : (fileName: string) => void, Symbol(emitFile, Decl(APISample_watcher.ts, 61, 7)) +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 63, 22)) let output = services.getEmitOutput(fileName); ->output : ts.EmitOutput +>output : ts.EmitOutput, Symbol(output, Decl(APISample_watcher.ts, 64, 11)) >services.getEmitOutput(fileName) : ts.EmitOutput ->services.getEmitOutput : (fileName: string) => ts.EmitOutput ->services : ts.LanguageService ->getEmitOutput : (fileName: string) => ts.EmitOutput ->fileName : string +>services.getEmitOutput : (fileName: string) => ts.EmitOutput, Symbol(ts.LanguageService.getEmitOutput, Decl(typescript.d.ts, 1338, 132)) +>services : ts.LanguageService, Symbol(services, Decl(APISample_watcher.ts, 39, 9)) +>getEmitOutput : (fileName: string) => ts.EmitOutput, Symbol(ts.LanguageService.getEmitOutput, Decl(typescript.d.ts, 1338, 132)) +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 63, 22)) if (!output.emitSkipped) { >!output.emitSkipped : boolean ->output.emitSkipped : boolean ->output : ts.EmitOutput ->emitSkipped : boolean +>output.emitSkipped : boolean, Symbol(ts.EmitOutput.emitSkipped, Decl(typescript.d.ts, 1541, 34)) +>output : ts.EmitOutput, Symbol(output, Decl(APISample_watcher.ts, 64, 11)) +>emitSkipped : boolean, Symbol(ts.EmitOutput.emitSkipped, Decl(typescript.d.ts, 1541, 34)) console.log(`Emitting ${fileName}`); >console.log(`Emitting ${fileName}`) : any >console.log : any ->console : any +>console : any, Symbol(console, Decl(APISample_watcher.ts, 8, 11)) >log : any ->fileName : string +>`Emitting ${fileName}` : string +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 63, 22)) } else { console.log(`Emitting ${fileName} failed`); >console.log(`Emitting ${fileName} failed`) : any >console.log : any ->console : any +>console : any, Symbol(console, Decl(APISample_watcher.ts, 8, 11)) >log : any ->fileName : string +>`Emitting ${fileName} failed` : string +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 63, 22)) logErrors(fileName); >logErrors(fileName) : void ->logErrors : (fileName: string) => void ->fileName : string +>logErrors : (fileName: string) => void, Symbol(logErrors, Decl(APISample_watcher.ts, 77, 5)) +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 63, 22)) } output.outputFiles.forEach(o => { >output.outputFiles.forEach(o => { fs.writeFileSync(o.name, o.text, "utf8"); }) : void ->output.outputFiles.forEach : (callbackfn: (value: ts.OutputFile, index: number, array: ts.OutputFile[]) => void, thisArg?: any) => void ->output.outputFiles : ts.OutputFile[] ->output : ts.EmitOutput ->outputFiles : ts.OutputFile[] ->forEach : (callbackfn: (value: ts.OutputFile, index: number, array: ts.OutputFile[]) => void, thisArg?: any) => void +>output.outputFiles.forEach : (callbackfn: (value: ts.OutputFile, index: number, array: ts.OutputFile[]) => void, thisArg?: any) => void, Symbol(Array.forEach, Decl(lib.d.ts, 1108, 95)) +>output.outputFiles : ts.OutputFile[], Symbol(ts.EmitOutput.outputFiles, Decl(typescript.d.ts, 1540, 26)) +>output : ts.EmitOutput, Symbol(output, Decl(APISample_watcher.ts, 64, 11)) +>outputFiles : ts.OutputFile[], Symbol(ts.EmitOutput.outputFiles, Decl(typescript.d.ts, 1540, 26)) +>forEach : (callbackfn: (value: ts.OutputFile, index: number, array: ts.OutputFile[]) => void, thisArg?: any) => void, Symbol(Array.forEach, Decl(lib.d.ts, 1108, 95)) >o => { fs.writeFileSync(o.name, o.text, "utf8"); } : (o: ts.OutputFile) => void ->o : ts.OutputFile +>o : ts.OutputFile, Symbol(o, Decl(APISample_watcher.ts, 74, 35)) fs.writeFileSync(o.name, o.text, "utf8"); >fs.writeFileSync(o.name, o.text, "utf8") : any >fs.writeFileSync : any ->fs : any +>fs : any, Symbol(fs, Decl(APISample_watcher.ts, 9, 11)) >writeFileSync : any ->o.name : string ->o : ts.OutputFile ->name : string ->o.text : string ->o : ts.OutputFile ->text : string +>o.name : string, Symbol(ts.OutputFile.name, Decl(typescript.d.ts, 1549, 26)) +>o : ts.OutputFile, Symbol(o, Decl(APISample_watcher.ts, 74, 35)) +>name : string, Symbol(ts.OutputFile.name, Decl(typescript.d.ts, 1549, 26)) +>o.text : string, Symbol(ts.OutputFile.text, Decl(typescript.d.ts, 1551, 36)) +>o : ts.OutputFile, Symbol(o, Decl(APISample_watcher.ts, 74, 35)) +>text : string, Symbol(ts.OutputFile.text, Decl(typescript.d.ts, 1551, 36)) +>"utf8" : string }); } function logErrors(fileName: string) { ->logErrors : (fileName: string) => void ->fileName : string +>logErrors : (fileName: string) => void, Symbol(logErrors, Decl(APISample_watcher.ts, 77, 5)) +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 79, 23)) let allDiagnostics = services.getCompilerOptionsDiagnostics() ->allDiagnostics : ts.Diagnostic[] +>allDiagnostics : ts.Diagnostic[], Symbol(allDiagnostics, Decl(APISample_watcher.ts, 80, 11)) >services.getCompilerOptionsDiagnostics() .concat(services.getSyntacticDiagnostics(fileName)) .concat(services.getSemanticDiagnostics(fileName)) : ts.Diagnostic[] ->services.getCompilerOptionsDiagnostics() .concat(services.getSyntacticDiagnostics(fileName)) .concat : { (...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; } +>services.getCompilerOptionsDiagnostics() .concat(services.getSyntacticDiagnostics(fileName)) .concat : { (...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) >services.getCompilerOptionsDiagnostics() .concat(services.getSyntacticDiagnostics(fileName)) : ts.Diagnostic[] ->services.getCompilerOptionsDiagnostics() .concat : { (...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; } +>services.getCompilerOptionsDiagnostics() .concat : { (...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) >services.getCompilerOptionsDiagnostics() : ts.Diagnostic[] ->services.getCompilerOptionsDiagnostics : () => ts.Diagnostic[] ->services : ts.LanguageService ->getCompilerOptionsDiagnostics : () => ts.Diagnostic[] +>services.getCompilerOptionsDiagnostics : () => ts.Diagnostic[], Symbol(ts.LanguageService.getCompilerOptionsDiagnostics, Decl(typescript.d.ts, 1312, 63)) +>services : ts.LanguageService, Symbol(services, Decl(APISample_watcher.ts, 39, 9)) +>getCompilerOptionsDiagnostics : () => ts.Diagnostic[], Symbol(ts.LanguageService.getCompilerOptionsDiagnostics, Decl(typescript.d.ts, 1312, 63)) .concat(services.getSyntacticDiagnostics(fileName)) ->concat : { (...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; } +>concat : { (...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) >services.getSyntacticDiagnostics(fileName) : ts.Diagnostic[] ->services.getSyntacticDiagnostics : (fileName: string) => ts.Diagnostic[] ->services : ts.LanguageService ->getSyntacticDiagnostics : (fileName: string) => ts.Diagnostic[] ->fileName : string +>services.getSyntacticDiagnostics : (fileName: string) => ts.Diagnostic[], Symbol(ts.LanguageService.getSyntacticDiagnostics, Decl(typescript.d.ts, 1310, 37)) +>services : ts.LanguageService, Symbol(services, Decl(APISample_watcher.ts, 39, 9)) +>getSyntacticDiagnostics : (fileName: string) => ts.Diagnostic[], Symbol(ts.LanguageService.getSyntacticDiagnostics, Decl(typescript.d.ts, 1310, 37)) +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 79, 23)) .concat(services.getSemanticDiagnostics(fileName)); ->concat : { (...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; } +>concat : { (...items: U[]): ts.Diagnostic[]; (...items: ts.Diagnostic[]): ts.Diagnostic[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) >services.getSemanticDiagnostics(fileName) : ts.Diagnostic[] ->services.getSemanticDiagnostics : (fileName: string) => ts.Diagnostic[] ->services : ts.LanguageService ->getSemanticDiagnostics : (fileName: string) => ts.Diagnostic[] ->fileName : string +>services.getSemanticDiagnostics : (fileName: string) => ts.Diagnostic[], Symbol(ts.LanguageService.getSemanticDiagnostics, Decl(typescript.d.ts, 1311, 64)) +>services : ts.LanguageService, Symbol(services, Decl(APISample_watcher.ts, 39, 9)) +>getSemanticDiagnostics : (fileName: string) => ts.Diagnostic[], Symbol(ts.LanguageService.getSemanticDiagnostics, Decl(typescript.d.ts, 1311, 64)) +>fileName : string, Symbol(fileName, Decl(APISample_watcher.ts, 79, 23)) allDiagnostics.forEach(diagnostic => { >allDiagnostics.forEach(diagnostic => { let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n"); if (diagnostic.file) { let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); console.log(` Error ${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`); } else { console.log(` Error: ${message}`); } }) : void ->allDiagnostics.forEach : (callbackfn: (value: ts.Diagnostic, index: number, array: ts.Diagnostic[]) => void, thisArg?: any) => void ->allDiagnostics : ts.Diagnostic[] ->forEach : (callbackfn: (value: ts.Diagnostic, index: number, array: ts.Diagnostic[]) => void, thisArg?: any) => void +>allDiagnostics.forEach : (callbackfn: (value: ts.Diagnostic, index: number, array: ts.Diagnostic[]) => void, thisArg?: any) => void, Symbol(Array.forEach, Decl(lib.d.ts, 1108, 95)) +>allDiagnostics : ts.Diagnostic[], Symbol(allDiagnostics, Decl(APISample_watcher.ts, 80, 11)) +>forEach : (callbackfn: (value: ts.Diagnostic, index: number, array: ts.Diagnostic[]) => void, thisArg?: any) => void, Symbol(Array.forEach, Decl(lib.d.ts, 1108, 95)) >diagnostic => { let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n"); if (diagnostic.file) { let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); console.log(` Error ${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`); } else { console.log(` Error: ${message}`); } } : (diagnostic: ts.Diagnostic) => void ->diagnostic : ts.Diagnostic +>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_watcher.ts, 84, 31)) let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n"); ->message : string +>message : string, Symbol(message, Decl(APISample_watcher.ts, 85, 15)) >ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n") : string ->ts.flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string ->ts : typeof ts ->flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string ->diagnostic.messageText : string | ts.DiagnosticMessageChain ->diagnostic : ts.Diagnostic ->messageText : string | ts.DiagnosticMessageChain +>ts.flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string, Symbol(ts.flattenDiagnosticMessageText, Decl(typescript.d.ts, 1200, 67)) +>ts : typeof ts, Symbol(ts, Decl(APISample_watcher.ts, 12, 6)) +>flattenDiagnosticMessageText : (messageText: string | ts.DiagnosticMessageChain, newLine: string) => string, Symbol(ts.flattenDiagnosticMessageText, Decl(typescript.d.ts, 1200, 67)) +>diagnostic.messageText : string | ts.DiagnosticMessageChain, Symbol(ts.Diagnostic.messageText, Decl(typescript.d.ts, 1065, 23)) +>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_watcher.ts, 84, 31)) +>messageText : string | ts.DiagnosticMessageChain, Symbol(ts.Diagnostic.messageText, Decl(typescript.d.ts, 1065, 23)) +>"\n" : string if (diagnostic.file) { ->diagnostic.file : ts.SourceFile ->diagnostic : ts.Diagnostic ->file : ts.SourceFile +>diagnostic.file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26)) +>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_watcher.ts, 84, 31)) +>file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26)) let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start); ->line : number ->character : number +>line : number, Symbol(line, Decl(APISample_watcher.ts, 87, 21)) +>character : number, Symbol(character, Decl(APISample_watcher.ts, 87, 27)) >diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start) : ts.LineAndCharacter ->diagnostic.file.getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter ->diagnostic.file : ts.SourceFile ->diagnostic : ts.Diagnostic ->file : ts.SourceFile ->getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter ->diagnostic.start : number ->diagnostic : ts.Diagnostic ->start : number +>diagnostic.file.getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1262, 26)) +>diagnostic.file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26)) +>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_watcher.ts, 84, 31)) +>file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26)) +>getLineAndCharacterOfPosition : (pos: number) => ts.LineAndCharacter, Symbol(ts.SourceFile.getLineAndCharacterOfPosition, Decl(typescript.d.ts, 1262, 26)) +>diagnostic.start : number, Symbol(ts.Diagnostic.start, Decl(typescript.d.ts, 1063, 25)) +>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_watcher.ts, 84, 31)) +>start : number, Symbol(ts.Diagnostic.start, Decl(typescript.d.ts, 1063, 25)) console.log(` Error ${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`); >console.log(` Error ${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`) : any >console.log : any ->console : any +>console : any, Symbol(console, Decl(APISample_watcher.ts, 8, 11)) >log : any ->diagnostic.file.fileName : string ->diagnostic.file : ts.SourceFile ->diagnostic : ts.Diagnostic ->file : ts.SourceFile ->fileName : string +>` Error ${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}` : string +>diagnostic.file.fileName : string, Symbol(ts.SourceFile.fileName, Decl(typescript.d.ts, 743, 29)) +>diagnostic.file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26)) +>diagnostic : ts.Diagnostic, Symbol(diagnostic, Decl(APISample_watcher.ts, 84, 31)) +>file : ts.SourceFile, Symbol(ts.Diagnostic.file, Decl(typescript.d.ts, 1062, 26)) +>fileName : string, Symbol(ts.SourceFile.fileName, Decl(typescript.d.ts, 743, 29)) >line + 1 : number ->line : number +>line : number, Symbol(line, Decl(APISample_watcher.ts, 87, 21)) +>1 : number >character + 1 : number ->character : number ->message : string +>character : number, Symbol(character, Decl(APISample_watcher.ts, 87, 27)) +>1 : number +>message : string, Symbol(message, Decl(APISample_watcher.ts, 85, 15)) } else { console.log(` Error: ${message}`); >console.log(` Error: ${message}`) : any >console.log : any ->console : any +>console : any, Symbol(console, Decl(APISample_watcher.ts, 8, 11)) >log : any ->message : string +>` Error: ${message}` : string +>message : string, Symbol(message, Decl(APISample_watcher.ts, 85, 15)) } }); } @@ -382,47 +393,51 @@ function watch(rootFileNames: string[], options: ts.CompilerOptions) { // Initialize files constituting the program as all .ts files in the current directory const currentDirectoryFiles = fs.readdirSync(process.cwd()). ->currentDirectoryFiles : any +>currentDirectoryFiles : any, Symbol(currentDirectoryFiles, Decl(APISample_watcher.ts, 98, 5)) >fs.readdirSync(process.cwd()). filter(fileName=> fileName.length >= 3 && fileName.substr(fileName.length - 3, 3) === ".ts") : any >fs.readdirSync(process.cwd()). filter : any >fs.readdirSync(process.cwd()) : any >fs.readdirSync : any ->fs : any +>fs : any, Symbol(fs, Decl(APISample_watcher.ts, 9, 11)) >readdirSync : any >process.cwd() : any >process.cwd : any ->process : any +>process : any, Symbol(process, Decl(APISample_watcher.ts, 7, 11)) >cwd : any filter(fileName=> fileName.length >= 3 && fileName.substr(fileName.length - 3, 3) === ".ts"); >filter : any >fileName=> fileName.length >= 3 && fileName.substr(fileName.length - 3, 3) === ".ts" : (fileName: any) => boolean ->fileName : any +>fileName : any, Symbol(fileName, Decl(APISample_watcher.ts, 99, 11)) >fileName.length >= 3 && fileName.substr(fileName.length - 3, 3) === ".ts" : boolean >fileName.length >= 3 : boolean >fileName.length : any ->fileName : any +>fileName : any, Symbol(fileName, Decl(APISample_watcher.ts, 99, 11)) >length : any +>3 : number >fileName.substr(fileName.length - 3, 3) === ".ts" : boolean >fileName.substr(fileName.length - 3, 3) : any >fileName.substr : any ->fileName : any +>fileName : any, Symbol(fileName, Decl(APISample_watcher.ts, 99, 11)) >substr : any >fileName.length - 3 : number >fileName.length : any ->fileName : any +>fileName : any, Symbol(fileName, Decl(APISample_watcher.ts, 99, 11)) >length : any +>3 : number +>3 : number +>".ts" : string // Start the watcher watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS }); >watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS }) : void ->watch : (rootFileNames: string[], options: ts.CompilerOptions) => void ->currentDirectoryFiles : any +>watch : (rootFileNames: string[], options: ts.CompilerOptions) => void, Symbol(watch, Decl(APISample_watcher.ts, 12, 33)) +>currentDirectoryFiles : any, Symbol(currentDirectoryFiles, Decl(APISample_watcher.ts, 98, 5)) >{ module: ts.ModuleKind.CommonJS } : { [x: string]: ts.ModuleKind; module: ts.ModuleKind; } ->module : ts.ModuleKind ->ts.ModuleKind.CommonJS : ts.ModuleKind ->ts.ModuleKind : typeof ts.ModuleKind ->ts : typeof ts ->ModuleKind : typeof ts.ModuleKind ->CommonJS : ts.ModuleKind +>module : ts.ModuleKind, Symbol(module, Decl(APISample_watcher.ts, 102, 30)) +>ts.ModuleKind.CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1108, 17)) +>ts.ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1106, 5)) +>ts : typeof ts, Symbol(ts, Decl(APISample_watcher.ts, 12, 6)) +>ModuleKind : typeof ts.ModuleKind, Symbol(ts.ModuleKind, Decl(typescript.d.ts, 1106, 5)) +>CommonJS : ts.ModuleKind, Symbol(ts.ModuleKind.CommonJS, Decl(typescript.d.ts, 1108, 17)) diff --git a/tests/baselines/reference/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.types b/tests/baselines/reference/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.types index da82a2ff662..974e500d341 100644 --- a/tests/baselines/reference/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.types +++ b/tests/baselines/reference/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.types @@ -1,33 +1,33 @@ === tests/cases/conformance/internalModules/DeclarationMerging/module.d.ts === declare module Point { ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.d.ts, 0, 0)) export var Origin: { x: number; y: number; } ->Origin : { x: number; y: number; } ->x : number ->y : number +>Origin : { x: number; y: number; }, Symbol(Origin, Decl(module.d.ts, 1, 14)) +>x : number, Symbol(x, Decl(module.d.ts, 1, 24)) +>y : number, Symbol(y, Decl(module.d.ts, 1, 35)) } === tests/cases/conformance/internalModules/DeclarationMerging/function.d.ts === declare function Point(): { x: number; y: number; } ->Point : typeof Point ->x : number ->y : number +>Point : typeof Point, Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.d.ts, 0, 0)) +>x : number, Symbol(x, Decl(function.d.ts, 0, 27)) +>y : number, Symbol(y, Decl(function.d.ts, 0, 38)) === tests/cases/conformance/internalModules/DeclarationMerging/test.ts === var cl: { x: number; y: number; } ->cl : { x: number; y: number; } ->x : number ->y : number +>cl : { x: number; y: number; }, Symbol(cl, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3)) +>x : number, Symbol(x, Decl(test.ts, 0, 9)) +>y : number, Symbol(y, Decl(test.ts, 0, 20)) var cl = Point(); ->cl : { x: number; y: number; } +>cl : { x: number; y: number; }, Symbol(cl, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3)) >Point() : { x: number; y: number; } ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.d.ts, 0, 0)) var cl = Point.Origin; ->cl : { x: number; y: number; } ->Point.Origin : { x: number; y: number; } ->Point : typeof Point ->Origin : { x: number; y: number; } +>cl : { x: number; y: number; }, Symbol(cl, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3)) +>Point.Origin : { x: number; y: number; }, Symbol(Point.Origin, Decl(module.d.ts, 1, 14)) +>Point : typeof Point, Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.d.ts, 0, 0)) +>Origin : { x: number; y: number; }, Symbol(Point.Origin, Decl(module.d.ts, 1, 14)) diff --git a/tests/baselines/reference/AmbientModuleAndAmbientWithSameNameAndCommonRoot.types b/tests/baselines/reference/AmbientModuleAndAmbientWithSameNameAndCommonRoot.types index 8846d2c3a37..1bdabc46ee8 100644 --- a/tests/baselines/reference/AmbientModuleAndAmbientWithSameNameAndCommonRoot.types +++ b/tests/baselines/reference/AmbientModuleAndAmbientWithSameNameAndCommonRoot.types @@ -1,59 +1,61 @@ === tests/cases/conformance/internalModules/DeclarationMerging/module.d.ts === declare module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(module.d.ts, 0, 0), Decl(class.d.ts, 0, 0)) export module Point { ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18)) export var Origin: { ->Origin : { x: number; y: number; } +>Origin : { x: number; y: number; }, Symbol(Origin, Decl(module.d.ts, 2, 18)) x: number; ->x : number +>x : number, Symbol(x, Decl(module.d.ts, 2, 28)) y: number; ->y : number +>y : number, Symbol(y, Decl(module.d.ts, 3, 22)) } } } === tests/cases/conformance/internalModules/DeclarationMerging/class.d.ts === declare module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(module.d.ts, 0, 0), Decl(class.d.ts, 0, 0)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18)) constructor(x: number, y: number); ->x : number ->y : number +>x : number, Symbol(x, Decl(class.d.ts, 2, 20)) +>y : number, Symbol(y, Decl(class.d.ts, 2, 30)) x: number; ->x : number +>x : number, Symbol(x, Decl(class.d.ts, 2, 42)) y: number; ->y : number +>y : number, Symbol(y, Decl(class.d.ts, 3, 18)) } } === tests/cases/conformance/internalModules/DeclarationMerging/test.ts === var p: { x: number; y: number; } ->p : { x: number; y: number; } ->x : number ->y : number +>p : { x: number; y: number; }, Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3)) +>x : number, Symbol(x, Decl(test.ts, 0, 8)) +>y : number, Symbol(y, Decl(test.ts, 0, 19)) var p = A.Point.Origin; ->p : { x: number; y: number; } ->A.Point.Origin : { x: number; y: number; } ->A.Point : typeof A.Point ->A : typeof A ->Point : typeof A.Point ->Origin : { x: number; y: number; } +>p : { x: number; y: number; }, Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3)) +>A.Point.Origin : { x: number; y: number; }, Symbol(A.Point.Origin, Decl(module.d.ts, 2, 18)) +>A.Point : typeof A.Point, Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18)) +>A : typeof A, Symbol(A, Decl(module.d.ts, 0, 0), Decl(class.d.ts, 0, 0)) +>Point : typeof A.Point, Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18)) +>Origin : { x: number; y: number; }, Symbol(A.Point.Origin, Decl(module.d.ts, 2, 18)) var p = new A.Point(0, 0); // unexpected error here, bug 840000 ->p : { x: number; y: number; } +>p : { x: number; y: number; }, Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3)) >new A.Point(0, 0) : A.Point ->A.Point : typeof A.Point ->A : typeof A ->Point : typeof A.Point +>A.Point : typeof A.Point, Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18)) +>A : typeof A, Symbol(A, Decl(module.d.ts, 0, 0), Decl(class.d.ts, 0, 0)) +>Point : typeof A.Point, Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(class.d.ts, 0, 18)) +>0 : number +>0 : number diff --git a/tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.types b/tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.types index 975f0f65a68..9d90bf94449 100644 --- a/tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.types +++ b/tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.types @@ -1,53 +1,55 @@ === tests/cases/conformance/internalModules/DeclarationMerging/module.d.ts === declare module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(module.d.ts, 0, 0), Decl(classPoint.ts, 0, 0)) export module Point { ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(module.d.ts, 0, 18), Decl(classPoint.ts, 0, 10)) export var Origin: { ->Origin : { x: number; y: number; } +>Origin : { x: number; y: number; }, Symbol(Origin, Decl(module.d.ts, 2, 18)) x: number; ->x : number +>x : number, Symbol(x, Decl(module.d.ts, 2, 28)) y: number; ->y : number +>y : number, Symbol(y, Decl(module.d.ts, 3, 22)) } } } === tests/cases/conformance/internalModules/DeclarationMerging/classPoint.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(module.d.ts, 0, 0), Decl(classPoint.ts, 0, 0)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(module.d.ts, 0, 18), Decl(classPoint.ts, 0, 10)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(classPoint.ts, 2, 20)) +>y : number, Symbol(y, Decl(classPoint.ts, 2, 37)) } } === tests/cases/conformance/internalModules/DeclarationMerging/test.ts === var p: { x: number; y: number; } ->p : { x: number; y: number; } ->x : number ->y : number +>p : { x: number; y: number; }, Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3)) +>x : number, Symbol(x, Decl(test.ts, 0, 8)) +>y : number, Symbol(y, Decl(test.ts, 0, 19)) var p = A.Point.Origin; ->p : { x: number; y: number; } ->A.Point.Origin : { x: number; y: number; } ->A.Point : typeof A.Point ->A : typeof A ->Point : typeof A.Point ->Origin : { x: number; y: number; } +>p : { x: number; y: number; }, Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3)) +>A.Point.Origin : { x: number; y: number; }, Symbol(A.Point.Origin, Decl(module.d.ts, 2, 18)) +>A.Point : typeof A.Point, Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(classPoint.ts, 0, 10)) +>A : typeof A, Symbol(A, Decl(module.d.ts, 0, 0), Decl(classPoint.ts, 0, 0)) +>Point : typeof A.Point, Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(classPoint.ts, 0, 10)) +>Origin : { x: number; y: number; }, Symbol(A.Point.Origin, Decl(module.d.ts, 2, 18)) var p = new A.Point(0, 0); // unexpected error here, bug 840000 ->p : { x: number; y: number; } +>p : { x: number; y: number; }, Symbol(p, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3)) >new A.Point(0, 0) : A.Point ->A.Point : typeof A.Point ->A : typeof A ->Point : typeof A.Point +>A.Point : typeof A.Point, Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(classPoint.ts, 0, 10)) +>A : typeof A, Symbol(A, Decl(module.d.ts, 0, 0), Decl(classPoint.ts, 0, 0)) +>Point : typeof A.Point, Symbol(A.Point, Decl(module.d.ts, 0, 18), Decl(classPoint.ts, 0, 10)) +>0 : number +>0 : number diff --git a/tests/baselines/reference/AmbientModuleAndNonAmbientFunctionWithTheSameNameAndCommonRoot.types b/tests/baselines/reference/AmbientModuleAndNonAmbientFunctionWithTheSameNameAndCommonRoot.types index cf4aeb6bcc0..1384b65b029 100644 --- a/tests/baselines/reference/AmbientModuleAndNonAmbientFunctionWithTheSameNameAndCommonRoot.types +++ b/tests/baselines/reference/AmbientModuleAndNonAmbientFunctionWithTheSameNameAndCommonRoot.types @@ -1,37 +1,39 @@ === tests/cases/conformance/internalModules/DeclarationMerging/module.d.ts === declare module Point { ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.ts, 0, 0)) export var Origin: { x: number; y: number; } ->Origin : { x: number; y: number; } ->x : number ->y : number +>Origin : { x: number; y: number; }, Symbol(Origin, Decl(module.d.ts, 1, 14)) +>x : number, Symbol(x, Decl(module.d.ts, 1, 24)) +>y : number, Symbol(y, Decl(module.d.ts, 1, 35)) } === tests/cases/conformance/internalModules/DeclarationMerging/function.ts === function Point() { ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.ts, 0, 0)) return { x: 0, y: 0 }; >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(function.ts, 1, 12)) +>0 : number +>y : number, Symbol(y, Decl(function.ts, 1, 18)) +>0 : number } === tests/cases/conformance/internalModules/DeclarationMerging/test.ts === var cl: { x: number; y: number; } ->cl : { x: number; y: number; } ->x : number ->y : number +>cl : { x: number; y: number; }, Symbol(cl, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3)) +>x : number, Symbol(x, Decl(test.ts, 0, 9)) +>y : number, Symbol(y, Decl(test.ts, 0, 20)) var cl = Point(); ->cl : { x: number; y: number; } +>cl : { x: number; y: number; }, Symbol(cl, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3)) >Point() : { x: number; y: number; } ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.ts, 0, 0)) var cl = Point.Origin; ->cl : { x: number; y: number; } ->Point.Origin : { x: number; y: number; } ->Point : typeof Point ->Origin : { x: number; y: number; } +>cl : { x: number; y: number; }, Symbol(cl, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3)) +>Point.Origin : { x: number; y: number; }, Symbol(Point.Origin, Decl(module.d.ts, 1, 14)) +>Point : typeof Point, Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.ts, 0, 0)) +>Origin : { x: number; y: number; }, Symbol(Point.Origin, Decl(module.d.ts, 1, 14)) diff --git a/tests/baselines/reference/ArrowFunction4.types b/tests/baselines/reference/ArrowFunction4.types index 1d049f193e6..0472aba3d6c 100644 --- a/tests/baselines/reference/ArrowFunction4.types +++ b/tests/baselines/reference/ArrowFunction4.types @@ -1,8 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction4.ts === var v = (a, b) => { ->v : (a: any, b: any) => void +>v : (a: any, b: any) => void, Symbol(v, Decl(ArrowFunction4.ts, 0, 3)) >(a, b) => { } : (a: any, b: any) => void ->a : any ->b : any +>a : any, Symbol(a, Decl(ArrowFunction4.ts, 0, 9)) +>b : any, Symbol(b, Decl(ArrowFunction4.ts, 0, 11)) }; diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.types b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.types index 3ea1919ecae..e3b806d38d5 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.types +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.types @@ -1,49 +1,55 @@ === tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts === class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 0, 0), Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 4, 1)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 1, 16)) +>y : number, Symbol(y, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 1, 33)) static Origin(): Point { return { x: 0, y: 0 }; } ->Origin : () => Point ->Point : Point +>Origin : () => Point, Symbol(Point.Origin, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 1, 55)) +>Point : Point, Symbol(Point, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 0, 0), Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 4, 1)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 3, 37)) +>0 : number +>y : number, Symbol(y, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 3, 43)) +>0 : number } module Point { ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 0, 0), Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 4, 1)) function Origin() { return ""; }// not an error, since not exported ->Origin : () => string +>Origin : () => string, Symbol(Origin, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 6, 14)) +>"" : string } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 8, 1)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 11, 10), Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 16, 5)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 13, 20)) +>y : number, Symbol(y, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 13, 37)) static Origin(): Point { return { x: 0, y: 0 }; } ->Origin : () => Point ->Point : Point +>Origin : () => Point, Symbol(Point.Origin, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 13, 59)) +>Point : Point, Symbol(Point, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 11, 10), Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 16, 5)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 15, 41)) +>0 : number +>y : number, Symbol(y, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 15, 47)) +>0 : number } export module Point { ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 11, 10), Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 16, 5)) function Origin() { return ""; }// not an error since not exported ->Origin : () => string +>Origin : () => string, Symbol(Origin, Decl(ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts, 18, 25)) +>"" : string } } diff --git a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.types b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.types index 827089847e2..961e8c1bfd2 100644 --- a/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.types +++ b/tests/baselines/reference/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.types @@ -1,49 +1,55 @@ === tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts === class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 0, 0), Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 4, 1)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 1, 16)) +>y : number, Symbol(y, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 1, 33)) static Origin: Point = { x: 0, y: 0 }; ->Origin : Point ->Point : Point +>Origin : Point, Symbol(Point.Origin, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 1, 55)) +>Point : Point, Symbol(Point, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 0, 0), Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 4, 1)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 3, 28)) +>0 : number +>y : number, Symbol(y, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 3, 34)) +>0 : number } module Point { ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 0, 0), Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 4, 1)) var Origin = ""; // not an error, since not exported ->Origin : string +>Origin : string, Symbol(Origin, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 7, 7)) +>"" : string } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 8, 1)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 11, 10), Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 16, 5)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 13, 20)) +>y : number, Symbol(y, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 13, 37)) static Origin: Point = { x: 0, y: 0 }; ->Origin : Point ->Point : Point +>Origin : Point, Symbol(Point.Origin, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 13, 59)) +>Point : Point, Symbol(Point, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 11, 10), Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 16, 5)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 15, 32)) +>0 : number +>y : number, Symbol(y, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 15, 38)) +>0 : number } export module Point { ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 11, 10), Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 16, 5)) var Origin = ""; // not an error since not exported ->Origin : string +>Origin : string, Symbol(Origin, Decl(ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.ts, 19, 11)) +>"" : string } } diff --git a/tests/baselines/reference/ES3For-ofTypeCheck2.types b/tests/baselines/reference/ES3For-ofTypeCheck2.types index f5ca0ab17e8..34e73689215 100644 --- a/tests/baselines/reference/ES3For-ofTypeCheck2.types +++ b/tests/baselines/reference/ES3For-ofTypeCheck2.types @@ -1,5 +1,6 @@ === tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck2.ts === for (var v of [true]) { } ->v : boolean +>v : boolean, Symbol(v, Decl(ES3For-ofTypeCheck2.ts, 0, 8)) >[true] : boolean[] +>true : boolean diff --git a/tests/baselines/reference/ES3For-ofTypeCheck6.types b/tests/baselines/reference/ES3For-ofTypeCheck6.types index d7e6045b029..0945c7b0795 100644 --- a/tests/baselines/reference/ES3For-ofTypeCheck6.types +++ b/tests/baselines/reference/ES3For-ofTypeCheck6.types @@ -1,8 +1,8 @@ === tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts === var union: string[] | number[]; ->union : string[] | number[] +>union : string[] | number[], Symbol(union, Decl(ES3For-ofTypeCheck6.ts, 0, 3)) for (var v of union) { } ->v : string | number ->union : string[] | number[] +>v : string | number, Symbol(v, Decl(ES3For-ofTypeCheck6.ts, 1, 8)) +>union : string[] | number[], Symbol(union, Decl(ES3For-ofTypeCheck6.ts, 0, 3)) diff --git a/tests/baselines/reference/ES5For-of10.types b/tests/baselines/reference/ES5For-of10.types index 32a2adcf3da..1f84648a76e 100644 --- a/tests/baselines/reference/ES5For-of10.types +++ b/tests/baselines/reference/ES5For-of10.types @@ -1,29 +1,30 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of10.ts === function foo() { ->foo : () => { x: number; } +>foo : () => { x: number; }, Symbol(foo, Decl(ES5For-of10.ts, 0, 0)) return { x: 0 }; >{ x: 0 } : { x: number; } ->x : number +>x : number, Symbol(x, Decl(ES5For-of10.ts, 1, 12)) +>0 : number } for (foo().x of []) { ->foo().x : number +>foo().x : number, Symbol(x, Decl(ES5For-of10.ts, 1, 12)) >foo() : { x: number; } ->foo : () => { x: number; } ->x : number +>foo : () => { x: number; }, Symbol(foo, Decl(ES5For-of10.ts, 0, 0)) +>x : number, Symbol(x, Decl(ES5For-of10.ts, 1, 12)) >[] : undefined[] for (foo().x of []) ->foo().x : number +>foo().x : number, Symbol(x, Decl(ES5For-of10.ts, 1, 12)) >foo() : { x: number; } ->foo : () => { x: number; } ->x : number +>foo : () => { x: number; }, Symbol(foo, Decl(ES5For-of10.ts, 0, 0)) +>x : number, Symbol(x, Decl(ES5For-of10.ts, 1, 12)) >[] : undefined[] var p = foo().x; ->p : number ->foo().x : number +>p : number, Symbol(p, Decl(ES5For-of10.ts, 5, 11)) +>foo().x : number, Symbol(x, Decl(ES5For-of10.ts, 1, 12)) >foo() : { x: number; } ->foo : () => { x: number; } ->x : number +>foo : () => { x: number; }, Symbol(foo, Decl(ES5For-of10.ts, 0, 0)) +>x : number, Symbol(x, Decl(ES5For-of10.ts, 1, 12)) } diff --git a/tests/baselines/reference/ES5For-of11.types b/tests/baselines/reference/ES5For-of11.types index e51bc46f157..b609424fb75 100644 --- a/tests/baselines/reference/ES5For-of11.types +++ b/tests/baselines/reference/ES5For-of11.types @@ -1,8 +1,8 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of11.ts === var v; ->v : any +>v : any, Symbol(v, Decl(ES5For-of11.ts, 0, 3)) for (v of []) { } ->v : any +>v : any, Symbol(v, Decl(ES5For-of11.ts, 0, 3)) >[] : undefined[] diff --git a/tests/baselines/reference/ES5For-of13.types b/tests/baselines/reference/ES5For-of13.types index 64aac2ae4b2..7f131241081 100644 --- a/tests/baselines/reference/ES5For-of13.types +++ b/tests/baselines/reference/ES5For-of13.types @@ -1,9 +1,12 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of13.ts === for (let v of ['a', 'b', 'c']) { ->v : string +>v : string, Symbol(v, Decl(ES5For-of13.ts, 0, 8)) >['a', 'b', 'c'] : string[] +>'a' : string +>'b' : string +>'c' : string var x = v; ->x : string ->v : string +>x : string, Symbol(x, Decl(ES5For-of13.ts, 1, 7)) +>v : string, Symbol(v, Decl(ES5For-of13.ts, 0, 8)) } diff --git a/tests/baselines/reference/ES5For-of14.types b/tests/baselines/reference/ES5For-of14.types index 0a4f9a78453..3ca30c7f3dc 100644 --- a/tests/baselines/reference/ES5For-of14.types +++ b/tests/baselines/reference/ES5For-of14.types @@ -1,9 +1,9 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of14.ts === for (const v of []) { ->v : any +>v : any, Symbol(v, Decl(ES5For-of14.ts, 0, 10)) >[] : undefined[] var x = v; ->x : any ->v : any +>x : any, Symbol(x, Decl(ES5For-of14.ts, 1, 7)) +>v : any, Symbol(v, Decl(ES5For-of14.ts, 0, 10)) } diff --git a/tests/baselines/reference/ES5For-of15.types b/tests/baselines/reference/ES5For-of15.types index 90409b8b167..a587ad7dcd1 100644 --- a/tests/baselines/reference/ES5For-of15.types +++ b/tests/baselines/reference/ES5For-of15.types @@ -1,17 +1,17 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of15.ts === for (let v of []) { ->v : any +>v : any, Symbol(v, Decl(ES5For-of15.ts, 0, 8)) >[] : undefined[] v; ->v : any +>v : any, Symbol(v, Decl(ES5For-of15.ts, 0, 8)) for (const v of []) { ->v : any +>v : any, Symbol(v, Decl(ES5For-of15.ts, 2, 14)) >[] : undefined[] var x = v; ->x : any ->v : any +>x : any, Symbol(x, Decl(ES5For-of15.ts, 3, 11)) +>v : any, Symbol(v, Decl(ES5For-of15.ts, 2, 14)) } } diff --git a/tests/baselines/reference/ES5For-of16.types b/tests/baselines/reference/ES5For-of16.types index 94f01509711..03b110edcf3 100644 --- a/tests/baselines/reference/ES5For-of16.types +++ b/tests/baselines/reference/ES5For-of16.types @@ -1,21 +1,21 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of16.ts === for (let v of []) { ->v : any +>v : any, Symbol(v, Decl(ES5For-of16.ts, 0, 8)) >[] : undefined[] v; ->v : any +>v : any, Symbol(v, Decl(ES5For-of16.ts, 0, 8)) for (let v of []) { ->v : any +>v : any, Symbol(v, Decl(ES5For-of16.ts, 2, 12)) >[] : undefined[] var x = v; ->x : any ->v : any +>x : any, Symbol(x, Decl(ES5For-of16.ts, 3, 11)) +>v : any, Symbol(v, Decl(ES5For-of16.ts, 2, 12)) v++; >v++ : number ->v : any +>v : any, Symbol(v, Decl(ES5For-of16.ts, 2, 12)) } } diff --git a/tests/baselines/reference/ES5For-of18.types b/tests/baselines/reference/ES5For-of18.types index e78bc846df6..8c659e20286 100644 --- a/tests/baselines/reference/ES5For-of18.types +++ b/tests/baselines/reference/ES5For-of18.types @@ -1,16 +1,16 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of18.ts === for (let v of []) { ->v : any +>v : any, Symbol(v, Decl(ES5For-of18.ts, 0, 8)) >[] : undefined[] v; ->v : any +>v : any, Symbol(v, Decl(ES5For-of18.ts, 0, 8)) } for (let v of []) { ->v : any +>v : any, Symbol(v, Decl(ES5For-of18.ts, 3, 8)) >[] : undefined[] v; ->v : any +>v : any, Symbol(v, Decl(ES5For-of18.ts, 3, 8)) } diff --git a/tests/baselines/reference/ES5For-of19.types b/tests/baselines/reference/ES5For-of19.types index d95dc63d262..ba55400c858 100644 --- a/tests/baselines/reference/ES5For-of19.types +++ b/tests/baselines/reference/ES5For-of19.types @@ -1,20 +1,20 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of19.ts === for (let v of []) { ->v : any +>v : any, Symbol(v, Decl(ES5For-of19.ts, 0, 8)) >[] : undefined[] v; ->v : any +>v : any, Symbol(v, Decl(ES5For-of19.ts, 0, 8)) function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(ES5For-of19.ts, 1, 6)) for (const v of []) { ->v : any +>v : any, Symbol(v, Decl(ES5For-of19.ts, 3, 18)) >[] : undefined[] v; ->v : any +>v : any, Symbol(v, Decl(ES5For-of19.ts, 3, 18)) } } } diff --git a/tests/baselines/reference/ES5For-of2.types b/tests/baselines/reference/ES5For-of2.types index 3e680c44bc8..7e3f096d9f6 100644 --- a/tests/baselines/reference/ES5For-of2.types +++ b/tests/baselines/reference/ES5For-of2.types @@ -1,9 +1,9 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of2.ts === for (var v of []) { ->v : any +>v : any, Symbol(v, Decl(ES5For-of2.ts, 0, 8)) >[] : undefined[] var x = v; ->x : any ->v : any +>x : any, Symbol(x, Decl(ES5For-of2.ts, 1, 7)) +>v : any, Symbol(v, Decl(ES5For-of2.ts, 0, 8)) } diff --git a/tests/baselines/reference/ES5For-of21.types b/tests/baselines/reference/ES5For-of21.types index a15942fd013..67280f1ae33 100644 --- a/tests/baselines/reference/ES5For-of21.types +++ b/tests/baselines/reference/ES5For-of21.types @@ -1,9 +1,9 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of21.ts === for (let v of []) { ->v : any +>v : any, Symbol(v, Decl(ES5For-of21.ts, 0, 8)) >[] : undefined[] for (let _i of []) { } ->_i : any +>_i : any, Symbol(_i, Decl(ES5For-of21.ts, 1, 12)) >[] : undefined[] } diff --git a/tests/baselines/reference/ES5For-of24.types b/tests/baselines/reference/ES5For-of24.types index 7170073b5d9..948a02d2111 100644 --- a/tests/baselines/reference/ES5For-of24.types +++ b/tests/baselines/reference/ES5For-of24.types @@ -1,12 +1,16 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of24.ts === var a = [1, 2, 3]; ->a : number[] +>a : number[], Symbol(a, Decl(ES5For-of24.ts, 0, 3)) >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number for (var v of a) { ->v : number ->a : number[] +>v : number, Symbol(v, Decl(ES5For-of24.ts, 1, 8)) +>a : number[], Symbol(a, Decl(ES5For-of24.ts, 0, 3)) let a = 0; ->a : number +>a : number, Symbol(a, Decl(ES5For-of24.ts, 2, 7)) +>0 : number } diff --git a/tests/baselines/reference/ES5For-of25.types b/tests/baselines/reference/ES5For-of25.types index 7b306ee9a26..ffecb93363a 100644 --- a/tests/baselines/reference/ES5For-of25.types +++ b/tests/baselines/reference/ES5For-of25.types @@ -1,15 +1,18 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of25.ts === var a = [1, 2, 3]; ->a : number[] +>a : number[], Symbol(a, Decl(ES5For-of25.ts, 0, 3)) >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number for (var v of a) { ->v : number ->a : number[] +>v : number, Symbol(v, Decl(ES5For-of25.ts, 1, 8)) +>a : number[], Symbol(a, Decl(ES5For-of25.ts, 0, 3)) v; ->v : number +>v : number, Symbol(v, Decl(ES5For-of25.ts, 1, 8)) a; ->a : number[] +>a : number[], Symbol(a, Decl(ES5For-of25.ts, 0, 3)) } diff --git a/tests/baselines/reference/ES5For-of3.types b/tests/baselines/reference/ES5For-of3.types index c47328816e8..fd01faa3e12 100644 --- a/tests/baselines/reference/ES5For-of3.types +++ b/tests/baselines/reference/ES5For-of3.types @@ -1,9 +1,12 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of3.ts === for (var v of ['a', 'b', 'c']) ->v : string +>v : string, Symbol(v, Decl(ES5For-of3.ts, 0, 8)) >['a', 'b', 'c'] : string[] +>'a' : string +>'b' : string +>'c' : string var x = v; ->x : string ->v : string +>x : string, Symbol(x, Decl(ES5For-of3.ts, 1, 7)) +>v : string, Symbol(v, Decl(ES5For-of3.ts, 0, 8)) diff --git a/tests/baselines/reference/ES5For-of30.errors.txt b/tests/baselines/reference/ES5For-of30.errors.txt index 0b02a55ba3f..e99b8284bf3 100644 --- a/tests/baselines/reference/ES5For-of30.errors.txt +++ b/tests/baselines/reference/ES5For-of30.errors.txt @@ -1,12 +1,18 @@ tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts(3,6): error TS2461: Type 'string | number' is not an array type. +tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts(3,7): error TS2322: Type 'number' is not assignable to type 'string'. +tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts(3,14): error TS2322: Type 'string' is not assignable to type 'number'. -==== tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts (1 errors) ==== +==== tests/cases/conformance/statements/for-ofStatements/ES5For-of30.ts (3 errors) ==== var a: string, b: number; var tuple: [number, string] = [2, "3"]; for ([a = 1, b = ""] of tuple) { ~~~~~~~~~~~~~~~ !!! error TS2461: Type 'string | number' is not an array type. + ~ +!!! error TS2322: Type 'number' is not assignable to type 'string'. + ~ +!!! error TS2322: Type 'string' is not assignable to type 'number'. a; b; } \ No newline at end of file diff --git a/tests/baselines/reference/ES5For-of4.types b/tests/baselines/reference/ES5For-of4.types index 9396096746c..ee756b0e60f 100644 --- a/tests/baselines/reference/ES5For-of4.types +++ b/tests/baselines/reference/ES5For-of4.types @@ -1,13 +1,13 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of4.ts === for (var v of []) ->v : any +>v : any, Symbol(v, Decl(ES5For-of4.ts, 0, 8)) >[] : undefined[] var x = v; ->x : any ->v : any +>x : any, Symbol(x, Decl(ES5For-of4.ts, 1, 7)) +>v : any, Symbol(v, Decl(ES5For-of4.ts, 0, 8)) var y = v; ->y : any ->v : any +>y : any, Symbol(y, Decl(ES5For-of4.ts, 2, 3)) +>v : any, Symbol(v, Decl(ES5For-of4.ts, 0, 8)) diff --git a/tests/baselines/reference/ES5For-of5.types b/tests/baselines/reference/ES5For-of5.types index dd9aa285edb..23bd15a88f4 100644 --- a/tests/baselines/reference/ES5For-of5.types +++ b/tests/baselines/reference/ES5For-of5.types @@ -1,9 +1,9 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of5.ts === for (var _a of []) { ->_a : any +>_a : any, Symbol(_a, Decl(ES5For-of5.ts, 0, 8)) >[] : undefined[] var x = _a; ->x : any ->_a : any +>x : any, Symbol(x, Decl(ES5For-of5.ts, 1, 7)) +>_a : any, Symbol(_a, Decl(ES5For-of5.ts, 0, 8)) } diff --git a/tests/baselines/reference/ES5For-of6.types b/tests/baselines/reference/ES5For-of6.types index e2d2f872809..2381b519bd7 100644 --- a/tests/baselines/reference/ES5For-of6.types +++ b/tests/baselines/reference/ES5For-of6.types @@ -1,16 +1,16 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of6.ts === for (var w of []) { ->w : any +>w : any, Symbol(w, Decl(ES5For-of6.ts, 0, 8)) >[] : undefined[] for (var v of []) { ->v : any +>v : any, Symbol(v, Decl(ES5For-of6.ts, 1, 12)) >[] : undefined[] var x = [w, v]; ->x : any[] +>x : any[], Symbol(x, Decl(ES5For-of6.ts, 2, 11)) >[w, v] : any[] ->w : any ->v : any +>w : any, Symbol(w, Decl(ES5For-of6.ts, 0, 8)) +>v : any, Symbol(v, Decl(ES5For-of6.ts, 1, 12)) } } diff --git a/tests/baselines/reference/ES5For-of9.types b/tests/baselines/reference/ES5For-of9.types index 60870c2d642..c8af0053413 100644 --- a/tests/baselines/reference/ES5For-of9.types +++ b/tests/baselines/reference/ES5For-of9.types @@ -1,30 +1,31 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-of9.ts === function foo() { ->foo : () => { x: number; } +>foo : () => { x: number; }, Symbol(foo, Decl(ES5For-of9.ts, 0, 0)) return { x: 0 }; >{ x: 0 } : { x: number; } ->x : number +>x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12)) +>0 : number } for (foo().x of []) { ->foo().x : number +>foo().x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12)) >foo() : { x: number; } ->foo : () => { x: number; } ->x : number +>foo : () => { x: number; }, Symbol(foo, Decl(ES5For-of9.ts, 0, 0)) +>x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12)) >[] : undefined[] for (foo().x of []) { ->foo().x : number +>foo().x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12)) >foo() : { x: number; } ->foo : () => { x: number; } ->x : number +>foo : () => { x: number; }, Symbol(foo, Decl(ES5For-of9.ts, 0, 0)) +>x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12)) >[] : undefined[] var p = foo().x; ->p : number ->foo().x : number +>p : number, Symbol(p, Decl(ES5For-of9.ts, 5, 11)) +>foo().x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12)) >foo() : { x: number; } ->foo : () => { x: number; } ->x : number +>foo : () => { x: number; }, Symbol(foo, Decl(ES5For-of9.ts, 0, 0)) +>x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12)) } } diff --git a/tests/baselines/reference/ES5For-ofTypeCheck1.types b/tests/baselines/reference/ES5For-ofTypeCheck1.types index 4da0ecc0e36..001cd343edd 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck1.types +++ b/tests/baselines/reference/ES5For-ofTypeCheck1.types @@ -1,4 +1,5 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck1.ts === for (var v of "") { } ->v : string +>v : string, Symbol(v, Decl(ES5For-ofTypeCheck1.ts, 0, 8)) +>"" : string diff --git a/tests/baselines/reference/ES5For-ofTypeCheck2.types b/tests/baselines/reference/ES5For-ofTypeCheck2.types index e6b86ce1d81..5dd5c58bf50 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck2.types +++ b/tests/baselines/reference/ES5For-ofTypeCheck2.types @@ -1,5 +1,6 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck2.ts === for (var v of [true]) { } ->v : boolean +>v : boolean, Symbol(v, Decl(ES5For-ofTypeCheck2.ts, 0, 8)) >[true] : boolean[] +>true : boolean diff --git a/tests/baselines/reference/ES5For-ofTypeCheck3.types b/tests/baselines/reference/ES5For-ofTypeCheck3.types index 5293634c6c5..9c5e81a4a3e 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck3.types +++ b/tests/baselines/reference/ES5For-ofTypeCheck3.types @@ -1,9 +1,11 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck3.ts === var tuple: [string, number] = ["", 0]; ->tuple : [string, number] +>tuple : [string, number], Symbol(tuple, Decl(ES5For-ofTypeCheck3.ts, 0, 3)) >["", 0] : [string, number] +>"" : string +>0 : number for (var v of tuple) { } ->v : string | number ->tuple : [string, number] +>v : string | number, Symbol(v, Decl(ES5For-ofTypeCheck3.ts, 1, 8)) +>tuple : [string, number], Symbol(tuple, Decl(ES5For-ofTypeCheck3.ts, 0, 3)) diff --git a/tests/baselines/reference/ES5For-ofTypeCheck4.types b/tests/baselines/reference/ES5For-ofTypeCheck4.types index 4f5721a0604..37d75b8865e 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck4.types +++ b/tests/baselines/reference/ES5For-ofTypeCheck4.types @@ -1,8 +1,8 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck4.ts === var union: string | string[]; ->union : string | string[] +>union : string | string[], Symbol(union, Decl(ES5For-ofTypeCheck4.ts, 0, 3)) for (const v of union) { } ->v : string ->union : string | string[] +>v : string, Symbol(v, Decl(ES5For-ofTypeCheck4.ts, 1, 10)) +>union : string | string[], Symbol(union, Decl(ES5For-ofTypeCheck4.ts, 0, 3)) diff --git a/tests/baselines/reference/ES5For-ofTypeCheck5.types b/tests/baselines/reference/ES5For-ofTypeCheck5.types index ed3d13f3918..35487b4927d 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck5.types +++ b/tests/baselines/reference/ES5For-ofTypeCheck5.types @@ -1,8 +1,8 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck5.ts === var union: string | number[]; ->union : string | number[] +>union : string | number[], Symbol(union, Decl(ES5For-ofTypeCheck5.ts, 0, 3)) for (var v of union) { } ->v : string | number ->union : string | number[] +>v : string | number, Symbol(v, Decl(ES5For-ofTypeCheck5.ts, 1, 8)) +>union : string | number[], Symbol(union, Decl(ES5For-ofTypeCheck5.ts, 0, 3)) diff --git a/tests/baselines/reference/ES5For-ofTypeCheck6.types b/tests/baselines/reference/ES5For-ofTypeCheck6.types index 87999d9b0ca..74752ea7114 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck6.types +++ b/tests/baselines/reference/ES5For-ofTypeCheck6.types @@ -1,8 +1,8 @@ === tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck6.ts === var union: string[] | number[]; ->union : string[] | number[] +>union : string[] | number[], Symbol(union, Decl(ES5For-ofTypeCheck6.ts, 0, 3)) for (var v of union) { } ->v : string | number ->union : string[] | number[] +>v : string | number, Symbol(v, Decl(ES5For-ofTypeCheck6.ts, 1, 8)) +>union : string[] | number[], Symbol(union, Decl(ES5For-ofTypeCheck6.ts, 0, 3)) diff --git a/tests/baselines/reference/ES5SymbolProperty1.js b/tests/baselines/reference/ES5SymbolProperty1.js index ab3f420c95c..1073a33163d 100644 --- a/tests/baselines/reference/ES5SymbolProperty1.js +++ b/tests/baselines/reference/ES5SymbolProperty1.js @@ -14,6 +14,7 @@ obj[Symbol.foo]; var Symbol; var obj = (_a = {}, _a[Symbol.foo] = 0, - _a); + _a +); obj[Symbol.foo]; var _a; diff --git a/tests/baselines/reference/ES5SymbolType1.types b/tests/baselines/reference/ES5SymbolType1.types index 79d93902fd6..8b88bbf4da5 100644 --- a/tests/baselines/reference/ES5SymbolType1.types +++ b/tests/baselines/reference/ES5SymbolType1.types @@ -1,10 +1,10 @@ === tests/cases/conformance/Symbols/ES5SymbolType1.ts === var s: symbol; ->s : symbol +>s : symbol, Symbol(s, Decl(ES5SymbolType1.ts, 0, 3)) s.toString(); >s.toString() : string ->s.toString : () => string ->s : symbol ->toString : () => string +>s.toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) +>s : symbol, Symbol(s, Decl(ES5SymbolType1.ts, 0, 3)) +>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) diff --git a/tests/baselines/reference/EnumAndModuleWithSameNameAndCommonRoot.types b/tests/baselines/reference/EnumAndModuleWithSameNameAndCommonRoot.types index 3cbd14c78bb..b2e11aa63ae 100644 --- a/tests/baselines/reference/EnumAndModuleWithSameNameAndCommonRoot.types +++ b/tests/baselines/reference/EnumAndModuleWithSameNameAndCommonRoot.types @@ -1,43 +1,45 @@ === tests/cases/conformance/internalModules/DeclarationMerging/EnumAndModuleWithSameNameAndCommonRoot.ts === enum enumdule { ->enumdule : enumdule +>enumdule : enumdule, Symbol(enumdule, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 0, 0), Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 2, 1)) Red, Blue ->Red : enumdule ->Blue : enumdule +>Red : enumdule, Symbol(enumdule.Red, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 0, 15)) +>Blue : enumdule, Symbol(enumdule.Blue, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 1, 8)) } module enumdule { ->enumdule : typeof enumdule +>enumdule : typeof enumdule, Symbol(enumdule, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 0, 0), Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 2, 1)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 4, 17)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 7, 20)) +>y : number, Symbol(y, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 7, 37)) } } var x: enumdule; ->x : enumdule ->enumdule : enumdule +>x : enumdule, Symbol(x, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 11, 3), Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 12, 3)) +>enumdule : enumdule, Symbol(enumdule, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 0, 0), Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 2, 1)) var x = enumdule.Red; ->x : enumdule ->enumdule.Red : enumdule ->enumdule : typeof enumdule ->Red : enumdule +>x : enumdule, Symbol(x, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 11, 3), Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 12, 3)) +>enumdule.Red : enumdule, Symbol(enumdule.Red, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 0, 15)) +>enumdule : typeof enumdule, Symbol(enumdule, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 0, 0), Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 2, 1)) +>Red : enumdule, Symbol(enumdule.Red, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 0, 15)) var y: { x: number; y: number }; ->y : { x: number; y: number; } ->x : number ->y : number +>y : { x: number; y: number; }, Symbol(y, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 14, 3), Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 15, 3)) +>x : number, Symbol(x, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 14, 8)) +>y : number, Symbol(y, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 14, 19)) var y = new enumdule.Point(0, 0); ->y : { x: number; y: number; } +>y : { x: number; y: number; }, Symbol(y, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 14, 3), Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 15, 3)) >new enumdule.Point(0, 0) : enumdule.Point ->enumdule.Point : typeof enumdule.Point ->enumdule : typeof enumdule ->Point : typeof enumdule.Point +>enumdule.Point : typeof enumdule.Point, Symbol(enumdule.Point, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 4, 17)) +>enumdule : typeof enumdule, Symbol(enumdule, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 0, 0), Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 2, 1)) +>Point : typeof enumdule.Point, Symbol(enumdule.Point, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 4, 17)) +>0 : number +>0 : number diff --git a/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.types b/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.types index 6d69109e542..90d8bf5fbe7 100644 --- a/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.types +++ b/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.types @@ -1,36 +1,37 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportClassWhichExtendsInterfaceWithInaccessibleType.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 0, 0)) interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 2, 21)) y: number; ->y : number +>y : number, Symbol(y, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 3, 18)) fromOrigin(p: Point): number; ->fromOrigin : (p: Point) => number ->p : Point ->Point : Point +>fromOrigin : (p: Point) => number, Symbol(fromOrigin, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 4, 18)) +>p : Point, Symbol(p, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 6, 19)) +>Point : Point, Symbol(Point, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 0, 10)) } export class Point2d implements Point { ->Point2d : Point2d ->Point : Point +>Point2d : Point2d, Symbol(Point2d, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 7, 5)) +>Point : Point, Symbol(Point, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 0, 10)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 10, 20)) +>y : number, Symbol(y, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 10, 37)) fromOrigin(p: Point) { ->fromOrigin : (p: Point) => number ->p : Point ->Point : Point +>fromOrigin : (p: Point) => number, Symbol(fromOrigin, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 10, 59)) +>p : Point, Symbol(p, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 12, 19)) +>Point : Point, Symbol(Point, Decl(ExportClassWhichExtendsInterfaceWithInaccessibleType.ts, 0, 10)) return 1; +>1 : number } } } diff --git a/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.types b/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.types index 17b4a25cde3..71ddde1965c 100644 --- a/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.types +++ b/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.types @@ -1,50 +1,55 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 0, 0)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 2, 24)) y: number; ->y : number +>y : number, Symbol(y, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 3, 18)) } export var Origin: Point = { x: 0, y: 0 }; ->Origin : Point ->Point : Point +>Origin : Point, Symbol(Origin, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 7, 14)) +>Point : Point, Symbol(Point, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 0, 10)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 7, 32)) +>0 : number +>y : number, Symbol(y, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 7, 38)) +>0 : number export class Point3d extends Point { ->Point3d : Point3d ->Point : Point +>Point3d : Point3d, Symbol(Point3d, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 7, 46)) +>Point : Point, Symbol(Point, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 0, 10)) z: number; ->z : number +>z : number, Symbol(z, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 9, 40)) } export var Origin3d: Point3d = { x: 0, y: 0, z: 0 }; ->Origin3d : Point3d ->Point3d : Point3d +>Origin3d : Point3d, Symbol(Origin3d, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 13, 14)) +>Point3d : Point3d, Symbol(Point3d, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 7, 46)) >{ x: 0, y: 0, z: 0 } : { x: number; y: number; z: number; } ->x : number ->y : number ->z : number +>x : number, Symbol(x, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 13, 36)) +>0 : number +>y : number, Symbol(y, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 13, 42)) +>0 : number +>z : number, Symbol(z, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 13, 48)) +>0 : number export class Line{ ->Line : Line ->TPoint : TPoint ->Point : Point +>Line : Line, Symbol(Line, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 13, 56)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 15, 22)) +>Point : Point, Symbol(Point, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 0, 10)) constructor(public start: TPoint, public end: TPoint) { } ->start : TPoint ->TPoint : TPoint ->end : TPoint ->TPoint : TPoint +>start : TPoint, Symbol(start, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 16, 20)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 15, 22)) +>end : TPoint, Symbol(end, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 16, 41)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 15, 22)) } } diff --git a/tests/baselines/reference/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.types b/tests/baselines/reference/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.types index 451db7f92a8..cf6bcd1316c 100644 --- a/tests/baselines/reference/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.types +++ b/tests/baselines/reference/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.types @@ -1,27 +1,27 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts, 0, 0)) class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts, 2, 17)) y: number; ->y : number +>y : number, Symbol(y, Decl(ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts, 3, 18)) } export class points { ->points : points +>points : points, Symbol(points, Decl(ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts, 5, 5)) [idx: number]: Point; ->idx : number ->Point : Point +>idx : number, Symbol(idx, Decl(ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts, 9, 9)) +>Point : Point, Symbol(Point, Decl(ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts, 0, 10)) [idx: string]: Point; ->idx : string ->Point : Point +>idx : string, Symbol(idx, Decl(ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts, 10, 9)) +>Point : Point, Symbol(Point, Decl(ExportClassWithInaccessibleTypeInIndexerTypeAnnotations.ts, 0, 10)) } } diff --git a/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.types b/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.types index 6f4452fce4c..1f3b2e17305 100644 --- a/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.types +++ b/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.types @@ -1,59 +1,65 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 0, 0)) class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 2, 17)) y: number; ->y : number +>y : number, Symbol(y, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 3, 18)) } export var Origin: Point = { x: 0, y: 0 }; ->Origin : Point ->Point : Point +>Origin : Point, Symbol(Origin, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 7, 14)) +>Point : Point, Symbol(Point, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 0, 10)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 7, 32)) +>0 : number +>y : number, Symbol(y, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 7, 38)) +>0 : number export class Point3d extends Point { ->Point3d : Point3d ->Point : Point +>Point3d : Point3d, Symbol(Point3d, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 7, 46)) +>Point : Point, Symbol(Point, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 0, 10)) z: number; ->z : number +>z : number, Symbol(z, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 9, 40)) } export var Origin3d: Point3d = { x: 0, y: 0, z: 0 }; ->Origin3d : Point3d ->Point3d : Point3d +>Origin3d : Point3d, Symbol(Origin3d, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 13, 14)) +>Point3d : Point3d, Symbol(Point3d, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 7, 46)) >{ x: 0, y: 0, z: 0 } : { x: number; y: number; z: number; } ->x : number ->y : number ->z : number +>x : number, Symbol(x, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 13, 36)) +>0 : number +>y : number, Symbol(y, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 13, 42)) +>0 : number +>z : number, Symbol(z, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 13, 48)) +>0 : number export class Line{ ->Line : Line ->TPoint : TPoint ->Point : Point +>Line : Line, Symbol(Line, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 13, 56)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 15, 22)) +>Point : Point, Symbol(Point, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 0, 10)) constructor(public start: TPoint, public end: TPoint) { } ->start : TPoint ->TPoint : TPoint ->end : TPoint ->TPoint : TPoint +>start : TPoint, Symbol(start, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 16, 20)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 15, 22)) +>end : TPoint, Symbol(end, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 16, 41)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 15, 22)) static fromorigin2d(p: Point): Line{ ->fromorigin2d : (p: Point) => Line ->p : Point ->Point : Point ->Line : Line ->Point : Point +>fromorigin2d : (p: Point) => Line, Symbol(Line.fromorigin2d, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 16, 65)) +>p : Point, Symbol(p, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 18, 28)) +>Point : Point, Symbol(Point, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 0, 10)) +>Line : Line, Symbol(Line, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 13, 56)) +>Point : Point, Symbol(Point, Decl(ExportClassWithInaccessibleTypeInTypeParameterConstraint.ts, 0, 10)) return null; +>null : null } } } diff --git a/tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.types b/tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.types index ac1845a533c..e9817cb6e5c 100644 --- a/tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.types +++ b/tests/baselines/reference/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.types @@ -1,39 +1,41 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 0, 0)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 2, 24)) y: number; ->y : number +>y : number, Symbol(y, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 3, 18)) } export class Line { ->Line : Line +>Line : Line, Symbol(Line, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 5, 5)) constructor(public start: Point, public end: Point) { } ->start : Point ->Point : Point ->end : Point ->Point : Point +>start : Point, Symbol(start, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 8, 20)) +>Point : Point, Symbol(Point, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 0, 10)) +>end : Point, Symbol(end, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 8, 40)) +>Point : Point, Symbol(Point, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 0, 10)) } export function fromOrigin(p: Point): Line { ->fromOrigin : (p: Point) => Line ->p : Point ->Point : Point ->Line : Line +>fromOrigin : (p: Point) => Line, Symbol(fromOrigin, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 9, 5)) +>p : Point, Symbol(p, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 11, 31)) +>Point : Point, Symbol(Point, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 0, 10)) +>Line : Line, Symbol(Line, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 5, 5)) return new Line({ x: 0, y: 0 }, p); >new Line({ x: 0, y: 0 }, p) : Line ->Line : typeof Line +>Line : typeof Line, Symbol(Line, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 5, 5)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number ->p : Point +>x : number, Symbol(x, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 12, 25)) +>0 : number +>y : number, Symbol(y, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 12, 31)) +>0 : number +>p : Point, Symbol(p, Decl(ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation.ts, 11, 31)) } } diff --git a/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.types b/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.types index 3f3a670ee8e..bec6d3816bf 100644 --- a/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.types +++ b/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.types @@ -1,39 +1,41 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 0, 0)) class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 2, 17)) y: number; ->y : number +>y : number, Symbol(y, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 3, 18)) } export class Line { ->Line : Line +>Line : Line, Symbol(Line, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 5, 5)) constructor(public start: Point, public end: Point) { } ->start : Point ->Point : Point ->end : Point ->Point : Point +>start : Point, Symbol(start, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 8, 20)) +>Point : Point, Symbol(Point, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 0, 10)) +>end : Point, Symbol(end, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 8, 40)) +>Point : Point, Symbol(Point, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 0, 10)) } export function fromOrigin(p: Point): Line { ->fromOrigin : (p: Point) => Line ->p : Point ->Point : Point ->Line : Line +>fromOrigin : (p: Point) => Line, Symbol(fromOrigin, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 9, 5)) +>p : Point, Symbol(p, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 11, 31)) +>Point : Point, Symbol(Point, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 0, 10)) +>Line : Line, Symbol(Line, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 5, 5)) return new Line({ x: 0, y: 0 }, p); >new Line({ x: 0, y: 0 }, p) : Line ->Line : typeof Line +>Line : typeof Line, Symbol(Line, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 5, 5)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number ->p : Point +>x : number, Symbol(x, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 12, 25)) +>0 : number +>y : number, Symbol(y, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 12, 31)) +>0 : number +>p : Point, Symbol(p, Decl(ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation.ts, 11, 31)) } } diff --git a/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.types b/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.types index 7634e2cde3e..09e28159ee6 100644 --- a/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.types +++ b/tests/baselines/reference/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.types @@ -1,39 +1,41 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 0, 0)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 2, 24)) y: number; ->y : number +>y : number, Symbol(y, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 3, 18)) } class Line { ->Line : Line +>Line : Line, Symbol(Line, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 5, 5)) constructor(public start: Point, public end: Point) { } ->start : Point ->Point : Point ->end : Point ->Point : Point +>start : Point, Symbol(start, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 8, 20)) +>Point : Point, Symbol(Point, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 0, 10)) +>end : Point, Symbol(end, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 8, 40)) +>Point : Point, Symbol(Point, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 0, 10)) } export function fromOrigin(p: Point): Line { ->fromOrigin : (p: Point) => Line ->p : Point ->Point : Point ->Line : Line +>fromOrigin : (p: Point) => Line, Symbol(fromOrigin, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 9, 5)) +>p : Point, Symbol(p, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 11, 31)) +>Point : Point, Symbol(Point, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 0, 10)) +>Line : Line, Symbol(Line, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 5, 5)) return new Line({ x: 0, y: 0 }, p); >new Line({ x: 0, y: 0 }, p) : Line ->Line : typeof Line +>Line : typeof Line, Symbol(Line, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 5, 5)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number ->p : Point +>x : number, Symbol(x, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 12, 25)) +>0 : number +>y : number, Symbol(y, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 12, 31)) +>0 : number +>p : Point, Symbol(p, Decl(ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation.ts, 11, 31)) } } diff --git a/tests/baselines/reference/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.types b/tests/baselines/reference/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.types index f6f4e6a441a..4c4866609c4 100644 --- a/tests/baselines/reference/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.types +++ b/tests/baselines/reference/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.types @@ -1,58 +1,63 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 0, 0)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 2, 28)) y: number; ->y : number +>y : number, Symbol(y, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 3, 18)) } export var Origin: Point = { x: 0, y: 0 }; ->Origin : Point ->Point : Point +>Origin : Point, Symbol(Origin, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 7, 14)) +>Point : Point, Symbol(Point, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 0, 10)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 7, 32)) +>0 : number +>y : number, Symbol(y, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 7, 38)) +>0 : number export interface Point3d extends Point { ->Point3d : Point3d ->Point : Point +>Point3d : Point3d, Symbol(Point3d, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 7, 46)) +>Point : Point, Symbol(Point, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 0, 10)) z: number; ->z : number +>z : number, Symbol(z, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 9, 44)) } export var Origin3d: Point3d = { x: 0, y: 0, z: 0 }; ->Origin3d : Point3d ->Point3d : Point3d +>Origin3d : Point3d, Symbol(Origin3d, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 13, 14)) +>Point3d : Point3d, Symbol(Point3d, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 7, 46)) >{ x: 0, y: 0, z: 0 } : { x: number; y: number; z: number; } ->x : number ->y : number ->z : number +>x : number, Symbol(x, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 13, 36)) +>0 : number +>y : number, Symbol(y, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 13, 42)) +>0 : number +>z : number, Symbol(z, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 13, 48)) +>0 : number export interface Line{ ->Line : Line ->TPoint : TPoint ->Point : Point +>Line : Line, Symbol(Line, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 13, 56)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 15, 26)) +>Point : Point, Symbol(Point, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 0, 10)) new (start: TPoint, end: TPoint); ->start : TPoint ->TPoint : TPoint ->end : TPoint ->TPoint : TPoint +>start : TPoint, Symbol(start, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 16, 13)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 15, 26)) +>end : TPoint, Symbol(end, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 16, 27)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 15, 26)) start: TPoint; ->start : TPoint ->TPoint : TPoint +>start : TPoint, Symbol(start, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 16, 41)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 15, 26)) end: TPoint; ->end : TPoint ->TPoint : TPoint +>end : TPoint, Symbol(end, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 17, 22)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts, 15, 26)) } } diff --git a/tests/baselines/reference/ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.types b/tests/baselines/reference/ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.types index 6caed8a138a..28d3b5f463c 100644 --- a/tests/baselines/reference/ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.types +++ b/tests/baselines/reference/ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.types @@ -1,27 +1,27 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.ts === module A { ->A : unknown +>A : any, Symbol(A, Decl(ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.ts, 0, 0)) interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.ts, 2, 21)) y: number; ->y : number +>y : number, Symbol(y, Decl(ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.ts, 3, 18)) } export interface points { ->points : points +>points : points, Symbol(points, Decl(ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.ts, 5, 5)) [idx: number]: Point; ->idx : number ->Point : Point +>idx : number, Symbol(idx, Decl(ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.ts, 9, 9)) +>Point : Point, Symbol(Point, Decl(ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.ts, 0, 10)) [idx: string]: Point; ->idx : string ->Point : Point +>idx : string, Symbol(idx, Decl(ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.ts, 10, 9)) +>Point : Point, Symbol(Point, Decl(ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.ts, 0, 10)) } } diff --git a/tests/baselines/reference/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.types b/tests/baselines/reference/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.types index 53484780474..ca5a98c713d 100644 --- a/tests/baselines/reference/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.types +++ b/tests/baselines/reference/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.types @@ -1,58 +1,63 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 0, 0)) interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 2, 21)) y: number; ->y : number +>y : number, Symbol(y, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 3, 18)) } export var Origin: Point = { x: 0, y: 0 }; ->Origin : Point ->Point : Point +>Origin : Point, Symbol(Origin, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 7, 14)) +>Point : Point, Symbol(Point, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 0, 10)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 7, 32)) +>0 : number +>y : number, Symbol(y, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 7, 38)) +>0 : number export interface Point3d extends Point { ->Point3d : Point3d ->Point : Point +>Point3d : Point3d, Symbol(Point3d, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 7, 46)) +>Point : Point, Symbol(Point, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 0, 10)) z: number; ->z : number +>z : number, Symbol(z, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 9, 44)) } export var Origin3d: Point3d = { x: 0, y: 0, z: 0 }; ->Origin3d : Point3d ->Point3d : Point3d +>Origin3d : Point3d, Symbol(Origin3d, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 13, 14)) +>Point3d : Point3d, Symbol(Point3d, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 7, 46)) >{ x: 0, y: 0, z: 0 } : { x: number; y: number; z: number; } ->x : number ->y : number ->z : number +>x : number, Symbol(x, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 13, 36)) +>0 : number +>y : number, Symbol(y, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 13, 42)) +>0 : number +>z : number, Symbol(z, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 13, 48)) +>0 : number export interface Line{ ->Line : Line ->TPoint : TPoint ->Point : Point +>Line : Line, Symbol(Line, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 13, 56)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 15, 26)) +>Point : Point, Symbol(Point, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 0, 10)) new (start: TPoint, end: TPoint); ->start : TPoint ->TPoint : TPoint ->end : TPoint ->TPoint : TPoint +>start : TPoint, Symbol(start, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 16, 13)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 15, 26)) +>end : TPoint, Symbol(end, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 16, 27)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 15, 26)) start: TPoint; ->start : TPoint ->TPoint : TPoint +>start : TPoint, Symbol(start, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 16, 41)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 15, 26)) end: TPoint; ->end : TPoint ->TPoint : TPoint +>end : TPoint, Symbol(end, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 18, 22)) +>TPoint : TPoint, Symbol(TPoint, Decl(ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts, 15, 26)) } } diff --git a/tests/baselines/reference/ExportModuleWithAccessibleTypesOnItsExportedMembers.types b/tests/baselines/reference/ExportModuleWithAccessibleTypesOnItsExportedMembers.types index a3a80cb06ad..14c97fb0920 100644 --- a/tests/baselines/reference/ExportModuleWithAccessibleTypesOnItsExportedMembers.types +++ b/tests/baselines/reference/ExportModuleWithAccessibleTypesOnItsExportedMembers.types @@ -1,47 +1,51 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportModuleWithAccessibleTypesOnItsExportedMembers.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 0, 0)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 0, 10)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 3, 20)) +>y : number, Symbol(y, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 3, 37)) } export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 4, 5)) export var Origin: Point = new Point(0, 0); ->Origin : Point ->Point : Point +>Origin : Point, Symbol(Origin, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 7, 18)) +>Point : Point, Symbol(Point, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 0, 10)) >new Point(0, 0) : Point ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 0, 10)) +>0 : number +>0 : number export class Line { ->Line : Line +>Line : Line, Symbol(Line, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 7, 51)) constructor(start: Point, end: Point) { ->start : Point ->Point : Point ->end : Point ->Point : Point +>start : Point, Symbol(start, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 10, 24)) +>Point : Point, Symbol(Point, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 0, 10)) +>end : Point, Symbol(end, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 10, 37)) +>Point : Point, Symbol(Point, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 0, 10)) } static fromOrigin(p: Point) { ->fromOrigin : (p: Point) => Line ->p : Point ->Point : Point +>fromOrigin : (p: Point) => Line, Symbol(Line.fromOrigin, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 12, 13)) +>p : Point, Symbol(p, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 14, 30)) +>Point : Point, Symbol(Point, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 0, 10)) return new Line({ x: 0, y: 0 }, p); >new Line({ x: 0, y: 0 }, p) : Line ->Line : typeof Line +>Line : typeof Line, Symbol(Line, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 7, 51)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number ->p : Point +>x : number, Symbol(x, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 15, 33)) +>0 : number +>y : number, Symbol(y, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 15, 39)) +>0 : number +>p : Point, Symbol(p, Decl(ExportModuleWithAccessibleTypesOnItsExportedMembers.ts, 14, 30)) } } } diff --git a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.types b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.types index 82bdf732173..7ae575da27b 100644 --- a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.types +++ b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.types @@ -1,30 +1,36 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 0, 0)) class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 0, 10)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 3, 20)) +>y : number, Symbol(y, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 3, 37)) } export var Origin: Point = { x: 0, y: 0 }; ->Origin : Point ->Point : Point +>Origin : Point, Symbol(Origin, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 6, 14)) +>Point : Point, Symbol(Point, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 0, 10)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 6, 32)) +>0 : number +>y : number, Symbol(y, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 6, 38)) +>0 : number export var Unity = { start: new Point(0, 0), end: new Point(1, 0) }; ->Unity : { start: Point; end: Point; } +>Unity : { start: Point; end: Point; }, Symbol(Unity, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 8, 14)) >{ start: new Point(0, 0), end: new Point(1, 0) } : { start: Point; end: Point; } ->start : Point +>start : Point, Symbol(start, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 8, 24)) >new Point(0, 0) : Point ->Point : typeof Point ->end : Point +>Point : typeof Point, Symbol(Point, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 0, 10)) +>0 : number +>0 : number +>end : Point, Symbol(end, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 8, 48)) >new Point(1, 0) : Point ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations.ts, 0, 10)) +>1 : number +>0 : number } diff --git a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.types b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.types index a4284a8f410..9cc12dc057d 100644 --- a/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.types +++ b/tests/baselines/reference/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.types @@ -1,31 +1,32 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 0, 0)) class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 0, 10)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 3, 20)) +>y : number, Symbol(y, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 3, 37)) } export var UnitSquare : { ->UnitSquare : { top: { left: Point; right: Point; }; bottom: { left: Point; right: Point; }; } +>UnitSquare : { top: { left: Point; right: Point; }; bottom: { left: Point; right: Point; }; }, Symbol(UnitSquare, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 6, 14)) top: { left: Point, right: Point }, ->top : { left: Point; right: Point; } ->left : Point ->Point : Point ->right : Point ->Point : Point +>top : { left: Point; right: Point; }, Symbol(top, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 6, 29)) +>left : Point, Symbol(left, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 7, 14)) +>Point : Point, Symbol(Point, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 0, 10)) +>right : Point, Symbol(right, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 7, 27)) +>Point : Point, Symbol(Point, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 0, 10)) bottom: { left: Point, right: Point } ->bottom : { left: Point; right: Point; } ->left : Point ->Point : Point ->right : Point ->Point : Point +>bottom : { left: Point; right: Point; }, Symbol(bottom, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 7, 43)) +>left : Point, Symbol(left, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 8, 17)) +>Point : Point, Symbol(Point, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 0, 10)) +>right : Point, Symbol(right, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 8, 30)) +>Point : Point, Symbol(Point, Decl(ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations.ts, 0, 10)) } = null; +>null : null } diff --git a/tests/baselines/reference/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.types b/tests/baselines/reference/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.types index ba24bf93442..961adc893d5 100644 --- a/tests/baselines/reference/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.types +++ b/tests/baselines/reference/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.types @@ -1,22 +1,22 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.ts, 0, 0)) class B { ->B : B +>B : B, Symbol(B, Decl(ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.ts, 0, 10)) id: number; ->id : number +>id : number, Symbol(id, Decl(ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.ts, 1, 13)) } export var beez: Array; ->beez : B[] ->Array : T[] ->B : B +>beez : B[], Symbol(beez, Decl(ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.ts, 5, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>B : B, Symbol(B, Decl(ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.ts, 0, 10)) export var beez2 = new Array(); ->beez2 : B[] +>beez2 : B[], Symbol(beez2, Decl(ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.ts, 6, 14)) >new Array() : B[] ->Array : ArrayConstructor ->B : B +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>B : B, Symbol(B, Decl(ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument.ts, 0, 10)) } diff --git a/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.types b/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.types index 945a4be6fe5..a0836493e33 100644 --- a/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.types +++ b/tests/baselines/reference/ExportVariableWithAccessibleTypeInTypeAnnotation.types @@ -1,23 +1,25 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportVariableWithAccessibleTypeInTypeAnnotation.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportVariableWithAccessibleTypeInTypeAnnotation.ts, 0, 0)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportVariableWithAccessibleTypeInTypeAnnotation.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(ExportVariableWithAccessibleTypeInTypeAnnotation.ts, 2, 28)) y: number; ->y : number +>y : number, Symbol(y, Decl(ExportVariableWithAccessibleTypeInTypeAnnotation.ts, 3, 18)) } // valid since Point is exported export var Origin: Point = { x: 0, y: 0 }; ->Origin : Point ->Point : Point +>Origin : Point, Symbol(Origin, Decl(ExportVariableWithAccessibleTypeInTypeAnnotation.ts, 8, 14)) +>Point : Point, Symbol(Point, Decl(ExportVariableWithAccessibleTypeInTypeAnnotation.ts, 0, 10)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(ExportVariableWithAccessibleTypeInTypeAnnotation.ts, 8, 32)) +>0 : number +>y : number, Symbol(y, Decl(ExportVariableWithAccessibleTypeInTypeAnnotation.ts, 8, 38)) +>0 : number } diff --git a/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.types b/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.types index 9ae05f87416..aa245e4e578 100644 --- a/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.types +++ b/tests/baselines/reference/ExportVariableWithInaccessibleTypeInTypeAnnotation.types @@ -1,40 +1,45 @@ === tests/cases/conformance/internalModules/exportDeclarations/ExportVariableWithInaccessibleTypeInTypeAnnotation.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 0, 0)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 2, 28)) y: number; ->y : number +>y : number, Symbol(y, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 3, 18)) } // valid since Point is exported export var Origin: Point = { x: 0, y: 0 }; ->Origin : Point ->Point : Point +>Origin : Point, Symbol(Origin, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 8, 14)) +>Point : Point, Symbol(Point, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 0, 10)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 8, 32)) +>0 : number +>y : number, Symbol(y, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 8, 38)) +>0 : number interface Point3d extends Point { ->Point3d : Point3d ->Point : Point +>Point3d : Point3d, Symbol(Point3d, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 8, 46)) +>Point : Point, Symbol(Point, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 0, 10)) z: number; ->z : number +>z : number, Symbol(z, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 10, 37)) } // invalid Point3d is not exported export var Origin3d: Point3d = { x: 0, y: 0, z: 0 }; ->Origin3d : Point3d ->Point3d : Point3d +>Origin3d : Point3d, Symbol(Origin3d, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 15, 14)) +>Point3d : Point3d, Symbol(Point3d, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 8, 46)) >{ x: 0, y: 0, z: 0 } : { x: number; y: number; z: number; } ->x : number ->y : number ->z : number +>x : number, Symbol(x, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 15, 36)) +>0 : number +>y : number, Symbol(y, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 15, 42)) +>0 : number +>z : number, Symbol(z, Decl(ExportVariableWithInaccessibleTypeInTypeAnnotation.ts, 15, 48)) +>0 : number } diff --git a/tests/baselines/reference/FunctionAndModuleWithSameNameAndDifferentCommonRoot.types b/tests/baselines/reference/FunctionAndModuleWithSameNameAndDifferentCommonRoot.types index 879088f93df..e63275fe58f 100644 --- a/tests/baselines/reference/FunctionAndModuleWithSameNameAndDifferentCommonRoot.types +++ b/tests/baselines/reference/FunctionAndModuleWithSameNameAndDifferentCommonRoot.types @@ -1,54 +1,58 @@ === tests/cases/conformance/internalModules/DeclarationMerging/function.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(function.ts, 0, 0)) export function Point() { ->Point : () => { x: number; y: number; } +>Point : () => { x: number; y: number; }, Symbol(Point, Decl(function.ts, 0, 10)) return { x: 0, y: 0 }; >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(function.ts, 2, 16)) +>0 : number +>y : number, Symbol(y, Decl(function.ts, 2, 22)) +>0 : number } } === tests/cases/conformance/internalModules/DeclarationMerging/module.ts === module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(module.ts, 0, 0)) export module Point { ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(module.ts, 0, 10)) export var Origin = { x: 0, y: 0 }; ->Origin : { x: number; y: number; } +>Origin : { x: number; y: number; }, Symbol(Origin, Decl(module.ts, 2, 18)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(module.ts, 2, 29)) +>0 : number +>y : number, Symbol(y, Decl(module.ts, 2, 35)) +>0 : number } } === tests/cases/conformance/internalModules/DeclarationMerging/test.ts === var fn: () => { x: number; y: number }; ->fn : () => { x: number; y: number; } ->x : number ->y : number +>fn : () => { x: number; y: number; }, Symbol(fn, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3)) +>x : number, Symbol(x, Decl(test.ts, 0, 15)) +>y : number, Symbol(y, Decl(test.ts, 0, 26)) var fn = A.Point; ->fn : () => { x: number; y: number; } ->A.Point : () => { x: number; y: number; } ->A : typeof A ->Point : () => { x: number; y: number; } +>fn : () => { x: number; y: number; }, Symbol(fn, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3)) +>A.Point : () => { x: number; y: number; }, Symbol(A.Point, Decl(function.ts, 0, 10)) +>A : typeof A, Symbol(A, Decl(function.ts, 0, 0)) +>Point : () => { x: number; y: number; }, Symbol(A.Point, Decl(function.ts, 0, 10)) var cl: { x: number; y: number; } ->cl : { x: number; y: number; } ->x : number ->y : number +>cl : { x: number; y: number; }, Symbol(cl, Decl(test.ts, 3, 3), Decl(test.ts, 4, 3)) +>x : number, Symbol(x, Decl(test.ts, 3, 9)) +>y : number, Symbol(y, Decl(test.ts, 3, 20)) var cl = B.Point.Origin; ->cl : { x: number; y: number; } ->B.Point.Origin : { x: number; y: number; } ->B.Point : typeof B.Point ->B : typeof B ->Point : typeof B.Point ->Origin : { x: number; y: number; } +>cl : { x: number; y: number; }, Symbol(cl, Decl(test.ts, 3, 3), Decl(test.ts, 4, 3)) +>B.Point.Origin : { x: number; y: number; }, Symbol(B.Point.Origin, Decl(module.ts, 2, 18)) +>B.Point : typeof B.Point, Symbol(B.Point, Decl(module.ts, 0, 10)) +>B : typeof B, Symbol(B, Decl(module.ts, 0, 0)) +>Point : typeof B.Point, Symbol(B.Point, Decl(module.ts, 0, 10)) +>Origin : { x: number; y: number; }, Symbol(B.Point.Origin, Decl(module.ts, 2, 18)) diff --git a/tests/baselines/reference/FunctionDeclaration2_es6.types b/tests/baselines/reference/FunctionDeclaration2_es6.types index f23d9cf6840..eefe4de1464 100644 --- a/tests/baselines/reference/FunctionDeclaration2_es6.types +++ b/tests/baselines/reference/FunctionDeclaration2_es6.types @@ -1,5 +1,5 @@ === tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration2_es6.ts === function f(yield) { ->f : (yield: any) => void ->yield : any +>f : (yield: any) => void, Symbol(f, Decl(FunctionDeclaration2_es6.ts, 0, 0)) +>yield : any, Symbol(yield, Decl(FunctionDeclaration2_es6.ts, 0, 11)) } diff --git a/tests/baselines/reference/FunctionDeclaration4_es6.types b/tests/baselines/reference/FunctionDeclaration4_es6.types index e4f102a8f70..9cf71703bc8 100644 --- a/tests/baselines/reference/FunctionDeclaration4_es6.types +++ b/tests/baselines/reference/FunctionDeclaration4_es6.types @@ -1,4 +1,4 @@ === tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration4_es6.ts === function yield() { ->yield : () => void +>yield : () => void, Symbol(yield, Decl(FunctionDeclaration4_es6.ts, 0, 0)) } diff --git a/tests/baselines/reference/FunctionDeclaration8_es6.js b/tests/baselines/reference/FunctionDeclaration8_es6.js index 62692997a91..64f6bff50c0 100644 --- a/tests/baselines/reference/FunctionDeclaration8_es6.js +++ b/tests/baselines/reference/FunctionDeclaration8_es6.js @@ -2,7 +2,5 @@ var v = { [yield]: foo } //// [FunctionDeclaration8_es6.js] -var v = (_a = {}, - _a[yield] = foo, - _a); +var v = (_a = {}, _a[yield] = foo, _a); var _a; diff --git a/tests/baselines/reference/FunctionDeclaration9_es6.js b/tests/baselines/reference/FunctionDeclaration9_es6.js index c63cf5bb458..e19d862f21b 100644 --- a/tests/baselines/reference/FunctionDeclaration9_es6.js +++ b/tests/baselines/reference/FunctionDeclaration9_es6.js @@ -5,8 +5,6 @@ function * foo() { //// [FunctionDeclaration9_es6.js] function foo() { - var v = (_a = {}, - _a[] = foo, - _a); + var v = (_a = {}, _a[yield] = foo, _a); var _a; } diff --git a/tests/baselines/reference/FunctionPropertyAssignments5_es6.js b/tests/baselines/reference/FunctionPropertyAssignments5_es6.js index 51e5d0000e4..188a843f751 100644 --- a/tests/baselines/reference/FunctionPropertyAssignments5_es6.js +++ b/tests/baselines/reference/FunctionPropertyAssignments5_es6.js @@ -2,7 +2,5 @@ var v = { *[foo()]() { } } //// [FunctionPropertyAssignments5_es6.js] -var v = (_a = {}, - _a[foo()] = function () { }, - _a); +var v = (_a = {}, _a[foo()] = function () { }, _a); var _a; diff --git a/tests/baselines/reference/ModuleAndEnumWithSameNameAndCommonRoot.types b/tests/baselines/reference/ModuleAndEnumWithSameNameAndCommonRoot.types index 023511c8c4d..4c5d815dfcf 100644 --- a/tests/baselines/reference/ModuleAndEnumWithSameNameAndCommonRoot.types +++ b/tests/baselines/reference/ModuleAndEnumWithSameNameAndCommonRoot.types @@ -1,43 +1,45 @@ === tests/cases/conformance/internalModules/DeclarationMerging/ModuleAndEnumWithSameNameAndCommonRoot.ts === module enumdule { ->enumdule : typeof enumdule +>enumdule : typeof enumdule, Symbol(enumdule, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 0, 0), Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 5, 1)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 0, 17)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 3, 20)) +>y : number, Symbol(y, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 3, 37)) } } enum enumdule { ->enumdule : enumdule +>enumdule : enumdule, Symbol(enumdule, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 0, 0), Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 5, 1)) Red, Blue ->Red : enumdule ->Blue : enumdule +>Red : enumdule, Symbol(enumdule.Red, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 7, 15)) +>Blue : enumdule, Symbol(enumdule.Blue, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 8, 8)) } var x: enumdule; ->x : enumdule ->enumdule : enumdule +>x : enumdule, Symbol(x, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 11, 3), Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 12, 3)) +>enumdule : enumdule, Symbol(enumdule, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 0, 0), Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 5, 1)) var x = enumdule.Red; ->x : enumdule ->enumdule.Red : enumdule ->enumdule : typeof enumdule ->Red : enumdule +>x : enumdule, Symbol(x, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 11, 3), Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 12, 3)) +>enumdule.Red : enumdule, Symbol(enumdule.Red, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 7, 15)) +>enumdule : typeof enumdule, Symbol(enumdule, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 0, 0), Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 5, 1)) +>Red : enumdule, Symbol(enumdule.Red, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 7, 15)) var y: { x: number; y: number }; ->y : { x: number; y: number; } ->x : number ->y : number +>y : { x: number; y: number; }, Symbol(y, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 14, 3), Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 15, 3)) +>x : number, Symbol(x, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 14, 8)) +>y : number, Symbol(y, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 14, 19)) var y = new enumdule.Point(0, 0); ->y : { x: number; y: number; } +>y : { x: number; y: number; }, Symbol(y, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 14, 3), Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 15, 3)) >new enumdule.Point(0, 0) : enumdule.Point ->enumdule.Point : typeof enumdule.Point ->enumdule : typeof enumdule ->Point : typeof enumdule.Point +>enumdule.Point : typeof enumdule.Point, Symbol(enumdule.Point, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 0, 17)) +>enumdule : typeof enumdule, Symbol(enumdule, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 0, 0), Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 5, 1)) +>Point : typeof enumdule.Point, Symbol(enumdule.Point, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 0, 17)) +>0 : number +>0 : number diff --git a/tests/baselines/reference/Protected5.types b/tests/baselines/reference/Protected5.types index 7ef0be949a7..f6586a5b81c 100644 --- a/tests/baselines/reference/Protected5.types +++ b/tests/baselines/reference/Protected5.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/Protected/Protected5.ts === class C { ->C : C +>C : C, Symbol(C, Decl(Protected5.ts, 0, 0)) protected static m() { } ->m : () => void +>m : () => void, Symbol(C.m, Decl(Protected5.ts, 0, 9)) } diff --git a/tests/baselines/reference/Protected8.types b/tests/baselines/reference/Protected8.types index f29be486eec..25b9ee44b8b 100644 --- a/tests/baselines/reference/Protected8.types +++ b/tests/baselines/reference/Protected8.types @@ -1,10 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/Protected/Protected8.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(Protected8.ts, 0, 0)) protected ->protected : any +>protected : any, Symbol(protected, Decl(Protected8.ts, 0, 13)) p ->p : any +>p : any, Symbol(p, Decl(Protected8.ts, 1, 12)) } diff --git a/tests/baselines/reference/Protected9.types b/tests/baselines/reference/Protected9.types index d4b6e2fff82..d3dd2f46e65 100644 --- a/tests/baselines/reference/Protected9.types +++ b/tests/baselines/reference/Protected9.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/Protected/Protected9.ts === class C { ->C : C +>C : C, Symbol(C, Decl(Protected9.ts, 0, 0)) constructor(protected p) { } ->p : any +>p : any, Symbol(p, Decl(Protected9.ts, 1, 15)) } diff --git a/tests/baselines/reference/TupleType1.types b/tests/baselines/reference/TupleType1.types index 39fa32d5dca..83e6711e2e5 100644 --- a/tests/baselines/reference/TupleType1.types +++ b/tests/baselines/reference/TupleType1.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/TupleTypes/TupleType1.ts === var v: [number] ->v : [number] +>v : [number], Symbol(v, Decl(TupleType1.ts, 0, 3)) diff --git a/tests/baselines/reference/TupleType2.types b/tests/baselines/reference/TupleType2.types index 0f35f60786c..5691baadd06 100644 --- a/tests/baselines/reference/TupleType2.types +++ b/tests/baselines/reference/TupleType2.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/TupleTypes/TupleType2.ts === var v: [number, string] ->v : [number, string] +>v : [number, string], Symbol(v, Decl(TupleType2.ts, 0, 3)) diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.types b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.types index a856b699dd5..f253f897382 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.types +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.types @@ -1,82 +1,82 @@ === tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 5, 1)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 1, 24)) y: number; ->y : number +>y : number, Symbol(y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 2, 18)) } } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 5, 1)) class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 7, 10)) fromCarthesian(p: A.Point) { ->fromCarthesian : (p: A.Point) => { x: number; y: number; } ->p : A.Point ->A : unknown ->Point : A.Point +>fromCarthesian : (p: A.Point) => { x: number; y: number; }, Symbol(fromCarthesian, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 8, 17)) +>p : A.Point, Symbol(p, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 9, 23)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 5, 1)) +>Point : A.Point, Symbol(Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 0, 10)) return { x: p.x, y: p.y }; >{ x: p.x, y: p.y } : { x: number; y: number; } ->x : number ->p.x : number ->p : A.Point ->x : number ->y : number ->p.y : number ->p : A.Point ->y : number +>x : number, Symbol(x, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 10, 20)) +>p.x : number, Symbol(Point.x, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 1, 24)) +>p : A.Point, Symbol(p, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 9, 23)) +>x : number, Symbol(Point.x, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 1, 24)) +>y : number, Symbol(y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 10, 28)) +>p.y : number, Symbol(Point.y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 2, 18)) +>p : A.Point, Symbol(p, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 9, 23)) +>y : number, Symbol(Point.y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 2, 18)) } } } // ensure merges as expected var p: { x: number; y: number; }; ->p : { x: number; y: number; } ->x : number ->y : number +>p : { x: number; y: number; }, Symbol(p, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 16, 3), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 17, 3)) +>x : number, Symbol(x, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 16, 8)) +>y : number, Symbol(y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 16, 19)) var p: A.Point; ->p : { x: number; y: number; } ->A : unknown ->Point : A.Point +>p : { x: number; y: number; }, Symbol(p, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 16, 3), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 17, 3)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 5, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 0, 10)) module X.Y.Z { ->X : typeof X ->Y : typeof Y ->Z : typeof Z +>X : typeof X, Symbol(X, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 17, 15), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 23, 1)) +>Y : typeof Y, Symbol(Y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 19, 9), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 25, 10)) +>Z : typeof Z, Symbol(Z, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 19, 11), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 26, 21)) export class Line { ->Line : Line +>Line : Line, Symbol(Line, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 19, 14)) length: number; ->length : number +>length : number, Symbol(length, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 20, 23)) } } module X { ->X : typeof X +>X : typeof X, Symbol(X, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 17, 15), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 23, 1)) export module Y { ->Y : typeof Y +>Y : typeof Y, Symbol(Y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 19, 9), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 25, 10)) export module Z { ->Z : typeof Z +>Z : typeof Z, Symbol(Z, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 19, 11), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 26, 21)) class Line { ->Line : Line +>Line : Line, Symbol(Line, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 27, 25)) name: string; ->name : string +>name : string, Symbol(name, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 28, 24)) } } } @@ -84,14 +84,14 @@ module X { // ensure merges as expected var l: { length: number; } ->l : { length: number; } ->length : number +>l : { length: number; }, Symbol(l, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 36, 3), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 37, 3)) +>length : number, Symbol(length, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 36, 8)) var l: X.Y.Z.Line; ->l : { length: number; } ->X : unknown ->Y : unknown ->Z : unknown ->Line : X.Y.Z.Line +>l : { length: number; }, Symbol(l, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 36, 3), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 37, 3)) +>X : any, Symbol(X, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 17, 15), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 23, 1)) +>Y : any, Symbol(X.Y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 19, 9), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 25, 10)) +>Z : any, Symbol(X.Y.Z, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 19, 11), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 26, 21)) +>Line : X.Y.Z.Line, Symbol(X.Y.Z.Line, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts, 19, 14)) diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.types b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.types index a8fc56495dd..d16e446a082 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.types +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.types @@ -1,103 +1,103 @@ === tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts === module A { ->A : unknown +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 6, 1)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 1, 28)) y: number; ->y : number +>y : number, Symbol(y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 2, 18)) toCarth(): Point; ->toCarth : () => Point ->Point : Point +>toCarth : () => Point, Symbol(toCarth, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 3, 18)) +>Point : Point, Symbol(Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 10)) } } module A { ->A : unknown +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 6, 1)) interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 8, 10)) fromCarth(): Point; ->fromCarth : () => Point ->Point : Point +>fromCarth : () => Point, Symbol(fromCarth, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 9, 21)) +>Point : Point, Symbol(Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 8, 10)) } } // ensure merges as expected var p: { x: number; y: number; toCarth(): A.Point; }; ->p : { x: number; y: number; toCarth(): A.Point; } ->x : number ->y : number ->toCarth : () => A.Point ->A : unknown ->Point : A.Point +>p : { x: number; y: number; toCarth(): A.Point; }, Symbol(p, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 15, 3), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 16, 3)) +>x : number, Symbol(x, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 15, 8)) +>y : number, Symbol(y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 15, 19)) +>toCarth : () => A.Point, Symbol(toCarth, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 15, 30)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 10)) var p: A.Point; ->p : { x: number; y: number; toCarth(): A.Point; } ->A : unknown ->Point : A.Point +>p : { x: number; y: number; toCarth(): A.Point; }, Symbol(p, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 15, 3), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 16, 3)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 10)) module X.Y.Z { ->X : unknown ->Y : unknown ->Z : unknown +>X : any, Symbol(X, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 16, 15), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 22, 1)) +>Y : any, Symbol(Y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 18, 9), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 24, 10)) +>Z : any, Symbol(Z, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 18, 11), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 25, 20)) export interface Line { ->Line : Line +>Line : Line, Symbol(Line, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 18, 14)) new (start: A.Point, end: A.Point); ->start : A.Point ->A : unknown ->Point : A.Point ->end : A.Point ->A : unknown ->Point : A.Point +>start : A.Point, Symbol(start, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 20, 13)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 10)) +>end : A.Point, Symbol(end, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 20, 28)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 10)) } } module X { ->X : unknown +>X : any, Symbol(X, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 16, 15), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 22, 1)) export module Y.Z { ->Y : unknown ->Z : unknown +>Y : any, Symbol(Y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 18, 9), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 24, 10)) +>Z : any, Symbol(Z, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 18, 11), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 25, 20)) interface Line { ->Line : Line +>Line : Line, Symbol(Line, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 25, 23)) start: A.Point; ->start : A.Point ->A : unknown ->Point : A.Point +>start : A.Point, Symbol(start, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 26, 24)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 10)) end: A.Point; ->end : A.Point ->A : unknown ->Point : A.Point +>end : A.Point, Symbol(end, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 27, 27)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 10)) } } } // ensure merges as expected var l: { new (s: A.Point, e: A.Point); } ->l : new (s: A.Point, e: A.Point) => any ->s : A.Point ->A : unknown ->Point : A.Point ->e : A.Point ->A : unknown ->Point : A.Point +>l : new (s: A.Point, e: A.Point) => any, Symbol(l, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 34, 3), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 35, 3)) +>s : A.Point, Symbol(s, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 34, 14)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 10)) +>e : A.Point, Symbol(e, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 34, 25)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 0, 10)) var l: X.Y.Z.Line; ->l : new (s: A.Point, e: A.Point) => any ->X : unknown ->Y : unknown ->Z : unknown ->Line : X.Y.Z.Line +>l : new (s: A.Point, e: A.Point) => any, Symbol(l, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 34, 3), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 35, 3)) +>X : any, Symbol(X, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 16, 15), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 22, 1)) +>Y : any, Symbol(X.Y, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 18, 9), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 24, 10)) +>Z : any, Symbol(X.Y.Z, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 18, 11), Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 25, 20)) +>Line : X.Y.Z.Line, Symbol(X.Y.Z.Line, Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts, 18, 14)) diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.types b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.types index 003fb5fa15a..e09d6fd52b2 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.types +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.types @@ -1,66 +1,69 @@ === tests/cases/conformance/internalModules/DeclarationMerging/part1.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(part1.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(part1.ts, 1, 28)) y: number; ->y : number +>y : number, Symbol(y, Decl(part1.ts, 2, 18)) } export module Utils { ->Utils : typeof Utils +>Utils : typeof Utils, Symbol(Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 2, 31)) export function mirror(p: T) { ->mirror : (p: T) => { x: number; y: number; } ->T : T ->Point : Point ->p : T ->T : T +>mirror : (p: T) => { x: number; y: number; }, Symbol(mirror, Decl(part1.ts, 6, 25)) +>T : T, Symbol(T, Decl(part1.ts, 7, 31)) +>Point : Point, Symbol(Point, Decl(part1.ts, 0, 10)) +>p : T, Symbol(p, Decl(part1.ts, 7, 48)) +>T : T, Symbol(T, Decl(part1.ts, 7, 31)) return { x: p.y, y: p.x }; >{ x: p.y, y: p.x } : { x: number; y: number; } ->x : number ->p.y : number ->p : T ->y : number ->y : number ->p.x : number ->p : T ->x : number +>x : number, Symbol(x, Decl(part1.ts, 8, 20)) +>p.y : number, Symbol(Point.y, Decl(part1.ts, 2, 18)) +>p : T, Symbol(p, Decl(part1.ts, 7, 48)) +>y : number, Symbol(Point.y, Decl(part1.ts, 2, 18)) +>y : number, Symbol(y, Decl(part1.ts, 8, 28)) +>p.x : number, Symbol(Point.x, Decl(part1.ts, 1, 28)) +>p : T, Symbol(p, Decl(part1.ts, 7, 48)) +>x : number, Symbol(Point.x, Decl(part1.ts, 1, 28)) } } export var Origin: Point = { x: 0, y: 0 }; ->Origin : Point ->Point : Point +>Origin : Point, Symbol(Origin, Decl(part1.ts, 11, 14)) +>Point : Point, Symbol(Point, Decl(part1.ts, 0, 10)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(part1.ts, 11, 32)) +>0 : number +>y : number, Symbol(y, Decl(part1.ts, 11, 38)) +>0 : number } === tests/cases/conformance/internalModules/DeclarationMerging/part2.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) // not a collision, since we don't export var Origin: string = "0,0"; ->Origin : string +>Origin : string, Symbol(Origin, Decl(part2.ts, 2, 7)) +>"0,0" : string export module Utils { ->Utils : typeof Utils +>Utils : typeof Utils, Symbol(Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 2, 31)) export class Plane { ->Plane : Plane +>Plane : Plane, Symbol(Plane, Decl(part2.ts, 4, 25)) constructor(public tl: Point, public br: Point) { } ->tl : Point ->Point : Point ->br : Point ->Point : Point +>tl : Point, Symbol(tl, Decl(part2.ts, 6, 24)) +>Point : Point, Symbol(Point, Decl(part1.ts, 0, 10)) +>br : Point, Symbol(br, Decl(part2.ts, 6, 41)) +>Point : Point, Symbol(Point, Decl(part1.ts, 0, 10)) } } } @@ -69,57 +72,59 @@ module A { // test the merging actually worked var o: { x: number; y: number }; ->o : { x: number; y: number; } ->x : number ->y : number +>o : { x: number; y: number; }, Symbol(o, Decl(part3.ts, 2, 3), Decl(part3.ts, 3, 3), Decl(part3.ts, 4, 3), Decl(part3.ts, 5, 3)) +>x : number, Symbol(x, Decl(part3.ts, 2, 8)) +>y : number, Symbol(y, Decl(part3.ts, 2, 19)) var o: A.Point; ->o : { x: number; y: number; } ->A : unknown ->Point : A.Point +>o : { x: number; y: number; }, Symbol(o, Decl(part3.ts, 2, 3), Decl(part3.ts, 3, 3), Decl(part3.ts, 4, 3), Decl(part3.ts, 5, 3)) +>A : any, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Point : A.Point, Symbol(A.Point, Decl(part1.ts, 0, 10)) var o = A.Origin; ->o : { x: number; y: number; } ->A.Origin : A.Point ->A : typeof A ->Origin : A.Point +>o : { x: number; y: number; }, Symbol(o, Decl(part3.ts, 2, 3), Decl(part3.ts, 3, 3), Decl(part3.ts, 4, 3), Decl(part3.ts, 5, 3)) +>A.Origin : A.Point, Symbol(A.Origin, Decl(part1.ts, 11, 14)) +>A : typeof A, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Origin : A.Point, Symbol(A.Origin, Decl(part1.ts, 11, 14)) var o = A.Utils.mirror(o); ->o : { x: number; y: number; } +>o : { x: number; y: number; }, Symbol(o, Decl(part3.ts, 2, 3), Decl(part3.ts, 3, 3), Decl(part3.ts, 4, 3), Decl(part3.ts, 5, 3)) >A.Utils.mirror(o) : { x: number; y: number; } ->A.Utils.mirror : (p: T) => { x: number; y: number; } ->A.Utils : typeof A.Utils ->A : typeof A ->Utils : typeof A.Utils ->mirror : (p: T) => { x: number; y: number; } ->o : { x: number; y: number; } +>A.Utils.mirror : (p: T) => { x: number; y: number; }, Symbol(A.Utils.mirror, Decl(part1.ts, 6, 25)) +>A.Utils : typeof A.Utils, Symbol(A.Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 2, 31)) +>A : typeof A, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Utils : typeof A.Utils, Symbol(A.Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 2, 31)) +>mirror : (p: T) => { x: number; y: number; }, Symbol(A.Utils.mirror, Decl(part1.ts, 6, 25)) +>o : { x: number; y: number; }, Symbol(o, Decl(part3.ts, 2, 3), Decl(part3.ts, 3, 3), Decl(part3.ts, 4, 3), Decl(part3.ts, 5, 3)) var p: { tl: A.Point; br: A.Point }; ->p : { tl: A.Point; br: A.Point; } ->tl : A.Point ->A : unknown ->Point : A.Point ->br : A.Point ->A : unknown ->Point : A.Point +>p : { tl: A.Point; br: A.Point; }, Symbol(p, Decl(part3.ts, 7, 3), Decl(part3.ts, 8, 3), Decl(part3.ts, 9, 3)) +>tl : A.Point, Symbol(tl, Decl(part3.ts, 7, 8)) +>A : any, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Point : A.Point, Symbol(A.Point, Decl(part1.ts, 0, 10)) +>br : A.Point, Symbol(br, Decl(part3.ts, 7, 21)) +>A : any, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Point : A.Point, Symbol(A.Point, Decl(part1.ts, 0, 10)) var p: A.Utils.Plane; ->p : { tl: A.Point; br: A.Point; } ->A : unknown ->Utils : unknown ->Plane : A.Utils.Plane +>p : { tl: A.Point; br: A.Point; }, Symbol(p, Decl(part3.ts, 7, 3), Decl(part3.ts, 8, 3), Decl(part3.ts, 9, 3)) +>A : any, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Utils : any, Symbol(A.Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 2, 31)) +>Plane : A.Utils.Plane, Symbol(A.Utils.Plane, Decl(part2.ts, 4, 25)) var p = new A.Utils.Plane(o, { x: 1, y: 1 }); ->p : { tl: A.Point; br: A.Point; } +>p : { tl: A.Point; br: A.Point; }, Symbol(p, Decl(part3.ts, 7, 3), Decl(part3.ts, 8, 3), Decl(part3.ts, 9, 3)) >new A.Utils.Plane(o, { x: 1, y: 1 }) : A.Utils.Plane ->A.Utils.Plane : typeof A.Utils.Plane ->A.Utils : typeof A.Utils ->A : typeof A ->Utils : typeof A.Utils ->Plane : typeof A.Utils.Plane ->o : { x: number; y: number; } +>A.Utils.Plane : typeof A.Utils.Plane, Symbol(A.Utils.Plane, Decl(part2.ts, 4, 25)) +>A.Utils : typeof A.Utils, Symbol(A.Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 2, 31)) +>A : typeof A, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Utils : typeof A.Utils, Symbol(A.Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 2, 31)) +>Plane : typeof A.Utils.Plane, Symbol(A.Utils.Plane, Decl(part2.ts, 4, 25)) +>o : { x: number; y: number; }, Symbol(o, Decl(part3.ts, 2, 3), Decl(part3.ts, 3, 3), Decl(part3.ts, 4, 3), Decl(part3.ts, 5, 3)) >{ x: 1, y: 1 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(part3.ts, 9, 30)) +>1 : number +>y : number, Symbol(y, Decl(part3.ts, 9, 36)) +>1 : number diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.types b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.types index c54ad5f3ad9..d75f723068f 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.types +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.types @@ -1,112 +1,112 @@ === tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts === module A { ->A : unknown +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 1, 28)) y: number; ->y : number +>y : number, Symbol(y, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 2, 18)) toCarth(): Point; ->toCarth : () => Point ->Point : Point +>toCarth : () => Point, Symbol(toCarth, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 3, 18)) +>Point : Point, Symbol(Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) } } module A { ->A : unknown +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) fromCarth(): Point; ->fromCarth : () => Point ->Point : Point +>fromCarth : () => Point, Symbol(fromCarth, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 9, 28)) +>Point : Point, Symbol(Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) } } // ensure merges as expected var p: { x: number; y: number; toCarth(): A.Point; fromCarth(): A.Point; }; ->p : { x: number; y: number; toCarth(): A.Point; fromCarth(): A.Point; } ->x : number ->y : number ->toCarth : () => A.Point ->A : unknown ->Point : A.Point ->fromCarth : () => A.Point ->A : unknown ->Point : A.Point +>p : { x: number; y: number; toCarth(): A.Point; fromCarth(): A.Point; }, Symbol(p, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 15, 3), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 16, 3)) +>x : number, Symbol(x, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 15, 8)) +>y : number, Symbol(y, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 15, 19)) +>toCarth : () => A.Point, Symbol(toCarth, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 15, 30)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) +>fromCarth : () => A.Point, Symbol(fromCarth, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 15, 50)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) var p: A.Point; ->p : { x: number; y: number; toCarth(): A.Point; fromCarth(): A.Point; } ->A : unknown ->Point : A.Point +>p : { x: number; y: number; toCarth(): A.Point; fromCarth(): A.Point; }, Symbol(p, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 15, 3), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 16, 3)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) module X.Y.Z { ->X : unknown ->Y : unknown ->Z : unknown +>X : any, Symbol(X, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 16, 15), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 22, 1)) +>Y : any, Symbol(Y, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 18, 9), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 24, 10)) +>Z : any, Symbol(Z, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 18, 11), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 25, 20)) export interface Line { ->Line : Line +>Line : Line, Symbol(Line, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 18, 14), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 25, 23)) new (start: A.Point, end: A.Point); ->start : A.Point ->A : unknown ->Point : A.Point ->end : A.Point ->A : unknown ->Point : A.Point +>start : A.Point, Symbol(start, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 20, 13)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) +>end : A.Point, Symbol(end, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 20, 28)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) } } module X { ->X : unknown +>X : any, Symbol(X, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 16, 15), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 22, 1)) export module Y.Z { ->Y : unknown ->Z : unknown +>Y : any, Symbol(Y, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 18, 9), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 24, 10)) +>Z : any, Symbol(Z, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 18, 11), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 25, 20)) export interface Line { ->Line : Line +>Line : Line, Symbol(Line, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 18, 14), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 25, 23)) start: A.Point; ->start : A.Point ->A : unknown ->Point : A.Point +>start : A.Point, Symbol(start, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 26, 31)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) end: A.Point; ->end : A.Point ->A : unknown ->Point : A.Point +>end : A.Point, Symbol(end, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 27, 27)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) } } } // ensure merges as expected var l: { start: A.Point; end: A.Point; new (s: A.Point, e: A.Point); } ->l : { new (s: A.Point, e: A.Point): any; start: A.Point; end: A.Point; } ->start : A.Point ->A : unknown ->Point : A.Point ->end : A.Point ->A : unknown ->Point : A.Point ->s : A.Point ->A : unknown ->Point : A.Point ->e : A.Point ->A : unknown ->Point : A.Point +>l : { new (s: A.Point, e: A.Point): any; start: A.Point; end: A.Point; }, Symbol(l, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 34, 3), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 35, 3)) +>start : A.Point, Symbol(start, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 34, 8)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) +>end : A.Point, Symbol(end, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 34, 24)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) +>s : A.Point, Symbol(s, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 34, 44)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) +>e : A.Point, Symbol(e, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 34, 55)) +>A : any, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 6, 1)) +>Point : A.Point, Symbol(A.Point, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 0, 10), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 8, 10)) var l: X.Y.Z.Line; ->l : { new (s: A.Point, e: A.Point): any; start: A.Point; end: A.Point; } ->X : unknown ->Y : unknown ->Z : unknown ->Line : X.Y.Z.Line +>l : { new (s: A.Point, e: A.Point): any; start: A.Point; end: A.Point; }, Symbol(l, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 34, 3), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 35, 3)) +>X : any, Symbol(X, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 16, 15), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 22, 1)) +>Y : any, Symbol(X.Y, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 18, 9), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 24, 10)) +>Z : any, Symbol(X.Y.Z, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 18, 11), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 25, 20)) +>Line : X.Y.Z.Line, Symbol(X.Y.Z.Line, Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 18, 14), Decl(TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts, 25, 23)) diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.types b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.types index 9232af469ac..33b28ffbacd 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.types +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.types @@ -1,62 +1,62 @@ === tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts === module A.B { ->A : typeof A ->B : typeof B +>A : typeof A, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 2, 1)) +>B : typeof B, Symbol(B, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 0, 9)) export var x: number; ->x : number +>x : number, Symbol(x, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 1, 14)) } module A{ ->A : typeof A +>A : typeof A, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 2, 1)) module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 4, 9)) export var x: string; ->x : string +>x : string, Symbol(x, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 6, 18)) } } // ensure the right var decl is exported var x: number; ->x : number +>x : number, Symbol(x, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 11, 3), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 12, 3)) var x = A.B.x; ->x : number ->A.B.x : number ->A.B : typeof A.B ->A : typeof A ->B : typeof A.B ->x : number +>x : number, Symbol(x, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 11, 3), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 12, 3)) +>A.B.x : number, Symbol(A.B.x, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 1, 14)) +>A.B : typeof A.B, Symbol(A.B, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 0, 9)) +>A : typeof A, Symbol(A, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 0, 0), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 2, 1)) +>B : typeof A.B, Symbol(A.B, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 0, 9)) +>x : number, Symbol(A.B.x, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 1, 14)) module X.Y.Z { ->X : typeof X ->Y : typeof Y ->Z : typeof Z +>X : typeof X, Symbol(X, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 12, 14), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 18, 1)) +>Y : typeof Y, Symbol(Y, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 14, 9), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 20, 10)) +>Z : typeof Z, Symbol(Z, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 14, 11)) export class Line { ->Line : Line +>Line : Line, Symbol(Line, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 14, 14)) length: number; ->length : number +>length : number, Symbol(length, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 15, 23)) } } module X { ->X : typeof X +>X : typeof X, Symbol(X, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 12, 14), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 18, 1)) export module Y { ->Y : typeof Y +>Y : typeof Y, Symbol(Y, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 14, 9), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 20, 10)) module Z { ->Z : typeof Z +>Z : typeof Z, Symbol(Z, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 21, 21)) export class Line { ->Line : Line +>Line : Line, Symbol(Line, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 22, 18)) name: string; ->name : string +>name : string, Symbol(name, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 23, 31)) } } } @@ -64,13 +64,13 @@ module X { // make sure merging works as expected var l: { length: number }; ->l : { length: number; } ->length : number +>l : { length: number; }, Symbol(l, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 31, 3), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 32, 3)) +>length : number, Symbol(length, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 31, 8)) var l: X.Y.Z.Line; ->l : { length: number; } ->X : unknown ->Y : unknown ->Z : unknown ->Line : X.Y.Z.Line +>l : { length: number; }, Symbol(l, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 31, 3), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 32, 3)) +>X : any, Symbol(X, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 12, 14), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 18, 1)) +>Y : any, Symbol(X.Y, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 14, 9), Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 20, 10)) +>Z : any, Symbol(X.Y.Z, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 14, 11)) +>Line : X.Y.Z.Line, Symbol(X.Y.Z.Line, Decl(TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName.ts, 14, 14)) diff --git a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.types b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.types index b31bb4b22ac..53f0982a91c 100644 --- a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.types +++ b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot.types @@ -1,40 +1,40 @@ === tests/cases/conformance/internalModules/DeclarationMerging/part1.ts === module Root { ->Root : typeof Root +>Root : typeof Root, Symbol(Root, Decl(part1.ts, 0, 0)) export module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(part1.ts, 0, 13)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(part1.ts, 1, 21)) x: number; ->x : number +>x : number, Symbol(x, Decl(part1.ts, 2, 32)) y: number; ->y : number +>y : number, Symbol(y, Decl(part1.ts, 3, 22)) } export module Utils { ->Utils : typeof Utils +>Utils : typeof Utils, Symbol(Utils, Decl(part1.ts, 5, 9)) export function mirror(p: T) { ->mirror : (p: T) => { x: number; y: number; } ->T : T ->Point : Point ->p : T ->T : T +>mirror : (p: T) => { x: number; y: number; }, Symbol(mirror, Decl(part1.ts, 7, 29)) +>T : T, Symbol(T, Decl(part1.ts, 8, 35)) +>Point : Point, Symbol(Point, Decl(part1.ts, 1, 21)) +>p : T, Symbol(p, Decl(part1.ts, 8, 52)) +>T : T, Symbol(T, Decl(part1.ts, 8, 35)) return { x: p.y, y: p.x }; >{ x: p.y, y: p.x } : { x: number; y: number; } ->x : number ->p.y : number ->p : T ->y : number ->y : number ->p.x : number ->p : T ->x : number +>x : number, Symbol(x, Decl(part1.ts, 9, 24)) +>p.y : number, Symbol(Point.y, Decl(part1.ts, 3, 22)) +>p : T, Symbol(p, Decl(part1.ts, 8, 52)) +>y : number, Symbol(Point.y, Decl(part1.ts, 3, 22)) +>y : number, Symbol(y, Decl(part1.ts, 9, 32)) +>p.x : number, Symbol(Point.x, Decl(part1.ts, 2, 32)) +>p : T, Symbol(p, Decl(part1.ts, 8, 52)) +>x : number, Symbol(Point.x, Decl(part1.ts, 2, 32)) } } } @@ -42,36 +42,38 @@ module Root { === tests/cases/conformance/internalModules/DeclarationMerging/part2.ts === module otherRoot { ->otherRoot : typeof otherRoot +>otherRoot : typeof otherRoot, Symbol(otherRoot, Decl(part2.ts, 0, 0)) export module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(part2.ts, 0, 18)) // have to be fully qualified since in different root export var Origin: Root.A.Point = { x: 0, y: 0 }; ->Origin : Root.A.Point ->Root : unknown ->A : unknown ->Point : Root.A.Point +>Origin : Root.A.Point, Symbol(Origin, Decl(part2.ts, 3, 18)) +>Root : any, Symbol(Root, Decl(part1.ts, 0, 0)) +>A : any, Symbol(Root.A, Decl(part1.ts, 0, 13)) +>Point : Root.A.Point, Symbol(Root.A.Point, Decl(part1.ts, 1, 21)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(part2.ts, 3, 43)) +>0 : number +>y : number, Symbol(y, Decl(part2.ts, 3, 49)) +>0 : number export module Utils { ->Utils : typeof Utils +>Utils : typeof Utils, Symbol(Utils, Decl(part2.ts, 3, 57)) export class Plane { ->Plane : Plane +>Plane : Plane, Symbol(Plane, Decl(part2.ts, 5, 29)) constructor(public tl: Root.A.Point, public br: Root.A.Point) { } ->tl : Root.A.Point ->Root : unknown ->A : unknown ->Point : Root.A.Point ->br : Root.A.Point ->Root : unknown ->A : unknown ->Point : Root.A.Point +>tl : Root.A.Point, Symbol(tl, Decl(part2.ts, 7, 28)) +>Root : any, Symbol(Root, Decl(part1.ts, 0, 0)) +>A : any, Symbol(Root.A, Decl(part1.ts, 0, 13)) +>Point : Root.A.Point, Symbol(Root.A.Point, Decl(part1.ts, 1, 21)) +>br : Root.A.Point, Symbol(br, Decl(part2.ts, 7, 52)) +>Root : any, Symbol(Root, Decl(part1.ts, 0, 0)) +>A : any, Symbol(Root.A, Decl(part1.ts, 0, 13)) +>Point : Root.A.Point, Symbol(Root.A.Point, Decl(part1.ts, 1, 21)) } } } diff --git a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.types b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.types index b13cbde5522..09092db9829 100644 --- a/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.types +++ b/tests/baselines/reference/TwoInternalModulesWithTheSameNameAndSameCommonRoot.types @@ -1,63 +1,65 @@ === tests/cases/conformance/internalModules/DeclarationMerging/part1.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(part1.ts, 0, 10)) x: number; ->x : number +>x : number, Symbol(x, Decl(part1.ts, 1, 28)) y: number; ->y : number +>y : number, Symbol(y, Decl(part1.ts, 2, 18)) } export module Utils { ->Utils : typeof Utils +>Utils : typeof Utils, Symbol(Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 1, 46)) export function mirror(p: T) { ->mirror : (p: T) => { x: number; y: number; } ->T : T ->Point : Point ->p : T ->T : T +>mirror : (p: T) => { x: number; y: number; }, Symbol(mirror, Decl(part1.ts, 6, 25)) +>T : T, Symbol(T, Decl(part1.ts, 7, 31)) +>Point : Point, Symbol(Point, Decl(part1.ts, 0, 10)) +>p : T, Symbol(p, Decl(part1.ts, 7, 48)) +>T : T, Symbol(T, Decl(part1.ts, 7, 31)) return { x: p.y, y: p.x }; >{ x: p.y, y: p.x } : { x: number; y: number; } ->x : number ->p.y : number ->p : T ->y : number ->y : number ->p.x : number ->p : T ->x : number +>x : number, Symbol(x, Decl(part1.ts, 8, 20)) +>p.y : number, Symbol(Point.y, Decl(part1.ts, 2, 18)) +>p : T, Symbol(p, Decl(part1.ts, 7, 48)) +>y : number, Symbol(Point.y, Decl(part1.ts, 2, 18)) +>y : number, Symbol(y, Decl(part1.ts, 8, 28)) +>p.x : number, Symbol(Point.x, Decl(part1.ts, 1, 28)) +>p : T, Symbol(p, Decl(part1.ts, 7, 48)) +>x : number, Symbol(Point.x, Decl(part1.ts, 1, 28)) } } } === tests/cases/conformance/internalModules/DeclarationMerging/part2.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) export var Origin: Point = { x: 0, y: 0 }; ->Origin : Point ->Point : Point +>Origin : Point, Symbol(Origin, Decl(part2.ts, 1, 14)) +>Point : Point, Symbol(Point, Decl(part1.ts, 0, 10)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(part2.ts, 1, 32)) +>0 : number +>y : number, Symbol(y, Decl(part2.ts, 1, 38)) +>0 : number export module Utils { ->Utils : typeof Utils +>Utils : typeof Utils, Symbol(Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 1, 46)) export class Plane { ->Plane : Plane +>Plane : Plane, Symbol(Plane, Decl(part2.ts, 3, 25)) constructor(public tl: Point, public br: Point) { } ->tl : Point ->Point : Point ->br : Point ->Point : Point +>tl : Point, Symbol(tl, Decl(part2.ts, 5, 24)) +>Point : Point, Symbol(Point, Decl(part1.ts, 0, 10)) +>br : Point, Symbol(br, Decl(part2.ts, 5, 41)) +>Point : Point, Symbol(Point, Decl(part1.ts, 0, 10)) } } } @@ -66,57 +68,59 @@ module A { // test the merging actually worked var o: { x: number; y: number }; ->o : { x: number; y: number; } ->x : number ->y : number +>o : { x: number; y: number; }, Symbol(o, Decl(part3.ts, 2, 3), Decl(part3.ts, 3, 3), Decl(part3.ts, 4, 3), Decl(part3.ts, 5, 3)) +>x : number, Symbol(x, Decl(part3.ts, 2, 8)) +>y : number, Symbol(y, Decl(part3.ts, 2, 19)) var o: A.Point; ->o : { x: number; y: number; } ->A : unknown ->Point : A.Point +>o : { x: number; y: number; }, Symbol(o, Decl(part3.ts, 2, 3), Decl(part3.ts, 3, 3), Decl(part3.ts, 4, 3), Decl(part3.ts, 5, 3)) +>A : any, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Point : A.Point, Symbol(A.Point, Decl(part1.ts, 0, 10)) var o = A.Origin; ->o : { x: number; y: number; } ->A.Origin : A.Point ->A : typeof A ->Origin : A.Point +>o : { x: number; y: number; }, Symbol(o, Decl(part3.ts, 2, 3), Decl(part3.ts, 3, 3), Decl(part3.ts, 4, 3), Decl(part3.ts, 5, 3)) +>A.Origin : A.Point, Symbol(A.Origin, Decl(part2.ts, 1, 14)) +>A : typeof A, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Origin : A.Point, Symbol(A.Origin, Decl(part2.ts, 1, 14)) var o = A.Utils.mirror(o); ->o : { x: number; y: number; } +>o : { x: number; y: number; }, Symbol(o, Decl(part3.ts, 2, 3), Decl(part3.ts, 3, 3), Decl(part3.ts, 4, 3), Decl(part3.ts, 5, 3)) >A.Utils.mirror(o) : { x: number; y: number; } ->A.Utils.mirror : (p: T) => { x: number; y: number; } ->A.Utils : typeof A.Utils ->A : typeof A ->Utils : typeof A.Utils ->mirror : (p: T) => { x: number; y: number; } ->o : { x: number; y: number; } +>A.Utils.mirror : (p: T) => { x: number; y: number; }, Symbol(A.Utils.mirror, Decl(part1.ts, 6, 25)) +>A.Utils : typeof A.Utils, Symbol(A.Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 1, 46)) +>A : typeof A, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Utils : typeof A.Utils, Symbol(A.Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 1, 46)) +>mirror : (p: T) => { x: number; y: number; }, Symbol(A.Utils.mirror, Decl(part1.ts, 6, 25)) +>o : { x: number; y: number; }, Symbol(o, Decl(part3.ts, 2, 3), Decl(part3.ts, 3, 3), Decl(part3.ts, 4, 3), Decl(part3.ts, 5, 3)) var p: { tl: A.Point; br: A.Point }; ->p : { tl: A.Point; br: A.Point; } ->tl : A.Point ->A : unknown ->Point : A.Point ->br : A.Point ->A : unknown ->Point : A.Point +>p : { tl: A.Point; br: A.Point; }, Symbol(p, Decl(part3.ts, 7, 3), Decl(part3.ts, 8, 3), Decl(part3.ts, 9, 3)) +>tl : A.Point, Symbol(tl, Decl(part3.ts, 7, 8)) +>A : any, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Point : A.Point, Symbol(A.Point, Decl(part1.ts, 0, 10)) +>br : A.Point, Symbol(br, Decl(part3.ts, 7, 21)) +>A : any, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Point : A.Point, Symbol(A.Point, Decl(part1.ts, 0, 10)) var p: A.Utils.Plane; ->p : { tl: A.Point; br: A.Point; } ->A : unknown ->Utils : unknown ->Plane : A.Utils.Plane +>p : { tl: A.Point; br: A.Point; }, Symbol(p, Decl(part3.ts, 7, 3), Decl(part3.ts, 8, 3), Decl(part3.ts, 9, 3)) +>A : any, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Utils : any, Symbol(A.Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 1, 46)) +>Plane : A.Utils.Plane, Symbol(A.Utils.Plane, Decl(part2.ts, 3, 25)) var p = new A.Utils.Plane(o, { x: 1, y: 1 }); ->p : { tl: A.Point; br: A.Point; } +>p : { tl: A.Point; br: A.Point; }, Symbol(p, Decl(part3.ts, 7, 3), Decl(part3.ts, 8, 3), Decl(part3.ts, 9, 3)) >new A.Utils.Plane(o, { x: 1, y: 1 }) : A.Utils.Plane ->A.Utils.Plane : typeof A.Utils.Plane ->A.Utils : typeof A.Utils ->A : typeof A ->Utils : typeof A.Utils ->Plane : typeof A.Utils.Plane ->o : { x: number; y: number; } +>A.Utils.Plane : typeof A.Utils.Plane, Symbol(A.Utils.Plane, Decl(part2.ts, 3, 25)) +>A.Utils : typeof A.Utils, Symbol(A.Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 1, 46)) +>A : typeof A, Symbol(A, Decl(part1.ts, 0, 0), Decl(part2.ts, 0, 0)) +>Utils : typeof A.Utils, Symbol(A.Utils, Decl(part1.ts, 4, 5), Decl(part2.ts, 1, 46)) +>Plane : typeof A.Utils.Plane, Symbol(A.Utils.Plane, Decl(part2.ts, 3, 25)) +>o : { x: number; y: number; }, Symbol(o, Decl(part3.ts, 2, 3), Decl(part3.ts, 3, 3), Decl(part3.ts, 4, 3), Decl(part3.ts, 5, 3)) >{ x: 1, y: 1 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(part3.ts, 9, 30)) +>1 : number +>y : number, Symbol(y, Decl(part3.ts, 9, 36)) +>1 : number diff --git a/tests/baselines/reference/TypeGuardWithArrayUnion.types b/tests/baselines/reference/TypeGuardWithArrayUnion.types index 557e305ef74..8a81a762fd7 100644 --- a/tests/baselines/reference/TypeGuardWithArrayUnion.types +++ b/tests/baselines/reference/TypeGuardWithArrayUnion.types @@ -1,26 +1,26 @@ === tests/cases/conformance/expressions/typeGuards/TypeGuardWithArrayUnion.ts === class Message { ->Message : Message +>Message : Message, Symbol(Message, Decl(TypeGuardWithArrayUnion.ts, 0, 0)) value: string; ->value : string +>value : string, Symbol(value, Decl(TypeGuardWithArrayUnion.ts, 0, 15)) } function saySize(message: Message | Message[]) { ->saySize : (message: Message | Message[]) => number ->message : Message | Message[] ->Message : Message ->Message : Message +>saySize : (message: Message | Message[]) => number, Symbol(saySize, Decl(TypeGuardWithArrayUnion.ts, 2, 1)) +>message : Message | Message[], Symbol(message, Decl(TypeGuardWithArrayUnion.ts, 4, 17)) +>Message : Message, Symbol(Message, Decl(TypeGuardWithArrayUnion.ts, 0, 0)) +>Message : Message, Symbol(Message, Decl(TypeGuardWithArrayUnion.ts, 0, 0)) if (message instanceof Array) { >message instanceof Array : boolean ->message : Message | Message[] ->Array : ArrayConstructor +>message : Message | Message[], Symbol(message, Decl(TypeGuardWithArrayUnion.ts, 4, 17)) +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) return message.length; // Should have type Message[] here ->message.length : number ->message : Message[] ->length : number +>message.length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) +>message : Message[], Symbol(message, Decl(TypeGuardWithArrayUnion.ts, 4, 17)) +>length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) } } diff --git a/tests/baselines/reference/TypeGuardWithEnumUnion.types b/tests/baselines/reference/TypeGuardWithEnumUnion.types index 9296e0ad04e..293b4c431c7 100644 --- a/tests/baselines/reference/TypeGuardWithEnumUnion.types +++ b/tests/baselines/reference/TypeGuardWithEnumUnion.types @@ -1,96 +1,100 @@ === tests/cases/conformance/expressions/typeGuards/TypeGuardWithEnumUnion.ts === enum Color { R, G, B } ->Color : Color ->R : Color ->G : Color ->B : Color +>Color : Color, Symbol(Color, Decl(TypeGuardWithEnumUnion.ts, 0, 0)) +>R : Color, Symbol(Color.R, Decl(TypeGuardWithEnumUnion.ts, 0, 12)) +>G : Color, Symbol(Color.G, Decl(TypeGuardWithEnumUnion.ts, 0, 15)) +>B : Color, Symbol(Color.B, Decl(TypeGuardWithEnumUnion.ts, 0, 18)) function f1(x: Color | string) { ->f1 : (x: string | Color) => void ->x : string | Color ->Color : Color +>f1 : (x: string | Color) => void, Symbol(f1, Decl(TypeGuardWithEnumUnion.ts, 0, 22)) +>x : string | Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 2, 12)) +>Color : Color, Symbol(Color, Decl(TypeGuardWithEnumUnion.ts, 0, 0)) if (typeof x === "number") { >typeof x === "number" : boolean >typeof x : string ->x : string | Color +>x : string | Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 2, 12)) +>"number" : string var y = x; ->y : Color ->x : Color +>y : Color, Symbol(y, Decl(TypeGuardWithEnumUnion.ts, 4, 11), Decl(TypeGuardWithEnumUnion.ts, 5, 11)) +>x : Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 2, 12)) var y: Color; ->y : Color ->Color : Color +>y : Color, Symbol(y, Decl(TypeGuardWithEnumUnion.ts, 4, 11), Decl(TypeGuardWithEnumUnion.ts, 5, 11)) +>Color : Color, Symbol(Color, Decl(TypeGuardWithEnumUnion.ts, 0, 0)) } else { var z = x; ->z : string ->x : string +>z : string, Symbol(z, Decl(TypeGuardWithEnumUnion.ts, 8, 11), Decl(TypeGuardWithEnumUnion.ts, 9, 11)) +>x : string, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 2, 12)) var z: string; ->z : string +>z : string, Symbol(z, Decl(TypeGuardWithEnumUnion.ts, 8, 11), Decl(TypeGuardWithEnumUnion.ts, 9, 11)) } } function f2(x: Color | string | string[]) { ->f2 : (x: string | string[] | Color) => void ->x : string | string[] | Color ->Color : Color +>f2 : (x: string | string[] | Color) => void, Symbol(f2, Decl(TypeGuardWithEnumUnion.ts, 11, 1)) +>x : string | string[] | Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) +>Color : Color, Symbol(Color, Decl(TypeGuardWithEnumUnion.ts, 0, 0)) if (typeof x === "object") { >typeof x === "object" : boolean >typeof x : string ->x : string | string[] | Color +>x : string | string[] | Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) +>"object" : string var y = x; ->y : string[] ->x : string[] +>y : string[], Symbol(y, Decl(TypeGuardWithEnumUnion.ts, 15, 11), Decl(TypeGuardWithEnumUnion.ts, 16, 11)) +>x : string[], Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) var y: string[]; ->y : string[] +>y : string[], Symbol(y, Decl(TypeGuardWithEnumUnion.ts, 15, 11), Decl(TypeGuardWithEnumUnion.ts, 16, 11)) } if (typeof x === "number") { >typeof x === "number" : boolean >typeof x : string ->x : string | string[] | Color +>x : string | string[] | Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) +>"number" : string var z = x; ->z : Color ->x : Color +>z : Color, Symbol(z, Decl(TypeGuardWithEnumUnion.ts, 19, 11), Decl(TypeGuardWithEnumUnion.ts, 20, 11)) +>x : Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) var z: Color; ->z : Color ->Color : Color +>z : Color, Symbol(z, Decl(TypeGuardWithEnumUnion.ts, 19, 11), Decl(TypeGuardWithEnumUnion.ts, 20, 11)) +>Color : Color, Symbol(Color, Decl(TypeGuardWithEnumUnion.ts, 0, 0)) } else { var w = x; ->w : string | string[] ->x : string | string[] +>w : string | string[], Symbol(w, Decl(TypeGuardWithEnumUnion.ts, 23, 11), Decl(TypeGuardWithEnumUnion.ts, 24, 11)) +>x : string | string[], Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) var w: string | string[]; ->w : string | string[] +>w : string | string[], Symbol(w, Decl(TypeGuardWithEnumUnion.ts, 23, 11), Decl(TypeGuardWithEnumUnion.ts, 24, 11)) } if (typeof x === "string") { >typeof x === "string" : boolean >typeof x : string ->x : string | string[] | Color +>x : string | string[] | Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) +>"string" : string var a = x; ->a : string ->x : string +>a : string, Symbol(a, Decl(TypeGuardWithEnumUnion.ts, 27, 11), Decl(TypeGuardWithEnumUnion.ts, 28, 11)) +>x : string, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) var a: string; ->a : string +>a : string, Symbol(a, Decl(TypeGuardWithEnumUnion.ts, 27, 11), Decl(TypeGuardWithEnumUnion.ts, 28, 11)) } else { var b = x; ->b : string[] | Color ->x : string[] | Color +>b : string[] | Color, Symbol(b, Decl(TypeGuardWithEnumUnion.ts, 31, 11), Decl(TypeGuardWithEnumUnion.ts, 32, 11)) +>x : string[] | Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) var b: Color | string[]; ->b : string[] | Color ->Color : Color +>b : string[] | Color, Symbol(b, Decl(TypeGuardWithEnumUnion.ts, 31, 11), Decl(TypeGuardWithEnumUnion.ts, 32, 11)) +>Color : Color, Symbol(Color, Decl(TypeGuardWithEnumUnion.ts, 0, 0)) } } diff --git a/tests/baselines/reference/TypeGuardWithEnumUnion.types.pull b/tests/baselines/reference/TypeGuardWithEnumUnion.types.pull index 33a40762445..d98eaa13192 100644 --- a/tests/baselines/reference/TypeGuardWithEnumUnion.types.pull +++ b/tests/baselines/reference/TypeGuardWithEnumUnion.types.pull @@ -1,96 +1,100 @@ === tests/cases/conformance/expressions/typeGuards/TypeGuardWithEnumUnion.ts === enum Color { R, G, B } ->Color : Color ->R : Color ->G : Color ->B : Color +>Color : Color, Symbol(Color, Decl(TypeGuardWithEnumUnion.ts, 0, 0)) +>R : Color, Symbol(Color.R, Decl(TypeGuardWithEnumUnion.ts, 0, 12)) +>G : Color, Symbol(Color.G, Decl(TypeGuardWithEnumUnion.ts, 0, 15)) +>B : Color, Symbol(Color.B, Decl(TypeGuardWithEnumUnion.ts, 0, 18)) function f1(x: Color | string) { ->f1 : (x: string | Color) => void ->x : string | Color ->Color : Color +>f1 : (x: string | Color) => void, Symbol(f1, Decl(TypeGuardWithEnumUnion.ts, 0, 22)) +>x : string | Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 2, 12)) +>Color : Color, Symbol(Color, Decl(TypeGuardWithEnumUnion.ts, 0, 0)) if (typeof x === "number") { >typeof x === "number" : boolean >typeof x : string ->x : string | Color +>x : string | Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 2, 12)) +>"number" : string var y = x; ->y : Color ->x : Color +>y : Color, Symbol(y, Decl(TypeGuardWithEnumUnion.ts, 4, 11), Decl(TypeGuardWithEnumUnion.ts, 5, 11)) +>x : Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 2, 12)) var y: Color; ->y : Color ->Color : Color +>y : Color, Symbol(y, Decl(TypeGuardWithEnumUnion.ts, 4, 11), Decl(TypeGuardWithEnumUnion.ts, 5, 11)) +>Color : Color, Symbol(Color, Decl(TypeGuardWithEnumUnion.ts, 0, 0)) } else { var z = x; ->z : string ->x : string +>z : string, Symbol(z, Decl(TypeGuardWithEnumUnion.ts, 8, 11), Decl(TypeGuardWithEnumUnion.ts, 9, 11)) +>x : string, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 2, 12)) var z: string; ->z : string +>z : string, Symbol(z, Decl(TypeGuardWithEnumUnion.ts, 8, 11), Decl(TypeGuardWithEnumUnion.ts, 9, 11)) } } function f2(x: Color | string | string[]) { ->f2 : (x: string | Color | string[]) => void ->x : string | Color | string[] ->Color : Color +>f2 : (x: string | Color | string[]) => void, Symbol(f2, Decl(TypeGuardWithEnumUnion.ts, 11, 1)) +>x : string | Color | string[], Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) +>Color : Color, Symbol(Color, Decl(TypeGuardWithEnumUnion.ts, 0, 0)) if (typeof x === "object") { >typeof x === "object" : boolean >typeof x : string ->x : string | Color | string[] +>x : string | Color | string[], Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) +>"object" : string var y = x; ->y : string[] ->x : string[] +>y : string[], Symbol(y, Decl(TypeGuardWithEnumUnion.ts, 15, 11), Decl(TypeGuardWithEnumUnion.ts, 16, 11)) +>x : string[], Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) var y: string[]; ->y : string[] +>y : string[], Symbol(y, Decl(TypeGuardWithEnumUnion.ts, 15, 11), Decl(TypeGuardWithEnumUnion.ts, 16, 11)) } if (typeof x === "number") { >typeof x === "number" : boolean >typeof x : string ->x : string | Color | string[] +>x : string | Color | string[], Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) +>"number" : string var z = x; ->z : Color ->x : Color +>z : Color, Symbol(z, Decl(TypeGuardWithEnumUnion.ts, 19, 11), Decl(TypeGuardWithEnumUnion.ts, 20, 11)) +>x : Color, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) var z: Color; ->z : Color ->Color : Color +>z : Color, Symbol(z, Decl(TypeGuardWithEnumUnion.ts, 19, 11), Decl(TypeGuardWithEnumUnion.ts, 20, 11)) +>Color : Color, Symbol(Color, Decl(TypeGuardWithEnumUnion.ts, 0, 0)) } else { var w = x; ->w : string | string[] ->x : string | string[] +>w : string | string[], Symbol(w, Decl(TypeGuardWithEnumUnion.ts, 23, 11), Decl(TypeGuardWithEnumUnion.ts, 24, 11)) +>x : string | string[], Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) var w: string | string[]; ->w : string | string[] +>w : string | string[], Symbol(w, Decl(TypeGuardWithEnumUnion.ts, 23, 11), Decl(TypeGuardWithEnumUnion.ts, 24, 11)) } if (typeof x === "string") { >typeof x === "string" : boolean >typeof x : string ->x : string | Color | string[] +>x : string | Color | string[], Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) +>"string" : string var a = x; ->a : string ->x : string +>a : string, Symbol(a, Decl(TypeGuardWithEnumUnion.ts, 27, 11), Decl(TypeGuardWithEnumUnion.ts, 28, 11)) +>x : string, Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) var a: string; ->a : string +>a : string, Symbol(a, Decl(TypeGuardWithEnumUnion.ts, 27, 11), Decl(TypeGuardWithEnumUnion.ts, 28, 11)) } else { var b = x; ->b : Color | string[] ->x : Color | string[] +>b : Color | string[], Symbol(b, Decl(TypeGuardWithEnumUnion.ts, 31, 11), Decl(TypeGuardWithEnumUnion.ts, 32, 11)) +>x : Color | string[], Symbol(x, Decl(TypeGuardWithEnumUnion.ts, 13, 12)) var b: Color | string[]; ->b : Color | string[] ->Color : Color +>b : Color | string[], Symbol(b, Decl(TypeGuardWithEnumUnion.ts, 31, 11), Decl(TypeGuardWithEnumUnion.ts, 32, 11)) +>Color : Color, Symbol(Color, Decl(TypeGuardWithEnumUnion.ts, 0, 0)) } } diff --git a/tests/baselines/reference/VariableDeclaration10_es6.types b/tests/baselines/reference/VariableDeclaration10_es6.types index 47238fdd5a8..dc61a2a5431 100644 --- a/tests/baselines/reference/VariableDeclaration10_es6.types +++ b/tests/baselines/reference/VariableDeclaration10_es6.types @@ -1,4 +1,5 @@ === tests/cases/conformance/es6/variableDeclarations/VariableDeclaration10_es6.ts === let a: number = 1 ->a : number +>a : number, Symbol(a, Decl(VariableDeclaration10_es6.ts, 0, 3)) +>1 : number diff --git a/tests/baselines/reference/VariableDeclaration3_es6.types b/tests/baselines/reference/VariableDeclaration3_es6.types index a172c8114cb..dd0bdfc8cc2 100644 --- a/tests/baselines/reference/VariableDeclaration3_es6.types +++ b/tests/baselines/reference/VariableDeclaration3_es6.types @@ -1,4 +1,5 @@ === tests/cases/conformance/es6/variableDeclarations/VariableDeclaration3_es6.ts === const a = 1 ->a : number +>a : number, Symbol(a, Decl(VariableDeclaration3_es6.ts, 0, 5)) +>1 : number diff --git a/tests/baselines/reference/VariableDeclaration5_es6.types b/tests/baselines/reference/VariableDeclaration5_es6.types index a07894d533d..d063fc53a12 100644 --- a/tests/baselines/reference/VariableDeclaration5_es6.types +++ b/tests/baselines/reference/VariableDeclaration5_es6.types @@ -1,4 +1,5 @@ === tests/cases/conformance/es6/variableDeclarations/VariableDeclaration5_es6.ts === const a: number = 1 ->a : number +>a : number, Symbol(a, Decl(VariableDeclaration5_es6.ts, 0, 5)) +>1 : number diff --git a/tests/baselines/reference/VariableDeclaration7_es6.types b/tests/baselines/reference/VariableDeclaration7_es6.types index 321c1b07bbc..00aabe32e65 100644 --- a/tests/baselines/reference/VariableDeclaration7_es6.types +++ b/tests/baselines/reference/VariableDeclaration7_es6.types @@ -1,4 +1,4 @@ === tests/cases/conformance/es6/variableDeclarations/VariableDeclaration7_es6.ts === let a ->a : any +>a : any, Symbol(a, Decl(VariableDeclaration7_es6.ts, 0, 3)) diff --git a/tests/baselines/reference/VariableDeclaration8_es6.types b/tests/baselines/reference/VariableDeclaration8_es6.types index 530b147136d..ce6bb6f9bb7 100644 --- a/tests/baselines/reference/VariableDeclaration8_es6.types +++ b/tests/baselines/reference/VariableDeclaration8_es6.types @@ -1,4 +1,5 @@ === tests/cases/conformance/es6/variableDeclarations/VariableDeclaration8_es6.ts === let a = 1 ->a : number +>a : number, Symbol(a, Decl(VariableDeclaration8_es6.ts, 0, 3)) +>1 : number diff --git a/tests/baselines/reference/VariableDeclaration9_es6.types b/tests/baselines/reference/VariableDeclaration9_es6.types index 6b29a04281b..e51fc72eece 100644 --- a/tests/baselines/reference/VariableDeclaration9_es6.types +++ b/tests/baselines/reference/VariableDeclaration9_es6.types @@ -1,4 +1,4 @@ === tests/cases/conformance/es6/variableDeclarations/VariableDeclaration9_es6.ts === let a: number ->a : number +>a : number, Symbol(a, Decl(VariableDeclaration9_es6.ts, 0, 3)) diff --git a/tests/baselines/reference/YieldExpression10_es6.js b/tests/baselines/reference/YieldExpression10_es6.js index 3bae1b645fe..1400e8c277e 100644 --- a/tests/baselines/reference/YieldExpression10_es6.js +++ b/tests/baselines/reference/YieldExpression10_es6.js @@ -7,6 +7,6 @@ var v = { * foo() { //// [YieldExpression10_es6.js] var v = { foo: function () { - ; + yield (foo); } }; diff --git a/tests/baselines/reference/YieldExpression11_es6.js b/tests/baselines/reference/YieldExpression11_es6.js index 306cef3051e..07af8462a85 100644 --- a/tests/baselines/reference/YieldExpression11_es6.js +++ b/tests/baselines/reference/YieldExpression11_es6.js @@ -10,7 +10,7 @@ var C = (function () { function C() { } C.prototype.foo = function () { - ; + yield (foo); }; return C; })(); diff --git a/tests/baselines/reference/YieldExpression12_es6.js b/tests/baselines/reference/YieldExpression12_es6.js index 020340fc4a3..ed9f8130bb3 100644 --- a/tests/baselines/reference/YieldExpression12_es6.js +++ b/tests/baselines/reference/YieldExpression12_es6.js @@ -8,7 +8,7 @@ class C { //// [YieldExpression12_es6.js] var C = (function () { function C() { - ; + yield foo; } return C; })(); diff --git a/tests/baselines/reference/YieldExpression13_es6.js b/tests/baselines/reference/YieldExpression13_es6.js index 093759e6bd9..4923f124707 100644 --- a/tests/baselines/reference/YieldExpression13_es6.js +++ b/tests/baselines/reference/YieldExpression13_es6.js @@ -2,4 +2,4 @@ function* foo() { yield } //// [YieldExpression13_es6.js] -function foo() { ; } +function foo() { yield; } diff --git a/tests/baselines/reference/YieldExpression14_es6.js b/tests/baselines/reference/YieldExpression14_es6.js index 132890b1b6a..a03d31998ff 100644 --- a/tests/baselines/reference/YieldExpression14_es6.js +++ b/tests/baselines/reference/YieldExpression14_es6.js @@ -10,7 +10,7 @@ var C = (function () { function C() { } C.prototype.foo = function () { - ; + yield foo; }; return C; })(); diff --git a/tests/baselines/reference/YieldExpression15_es6.js b/tests/baselines/reference/YieldExpression15_es6.js index 13e6b92a577..1e4431d6168 100644 --- a/tests/baselines/reference/YieldExpression15_es6.js +++ b/tests/baselines/reference/YieldExpression15_es6.js @@ -5,5 +5,5 @@ var v = () => { //// [YieldExpression15_es6.js] var v = function () { - ; + yield foo; }; diff --git a/tests/baselines/reference/YieldExpression16_es6.js b/tests/baselines/reference/YieldExpression16_es6.js index ee73439a2d5..4bb019c8dbe 100644 --- a/tests/baselines/reference/YieldExpression16_es6.js +++ b/tests/baselines/reference/YieldExpression16_es6.js @@ -8,6 +8,6 @@ function* foo() { //// [YieldExpression16_es6.js] function foo() { function bar() { - ; + yield foo; } } diff --git a/tests/baselines/reference/YieldExpression17_es6.js b/tests/baselines/reference/YieldExpression17_es6.js index cefe4ca28df..8aed4a9d571 100644 --- a/tests/baselines/reference/YieldExpression17_es6.js +++ b/tests/baselines/reference/YieldExpression17_es6.js @@ -2,4 +2,4 @@ var v = { get foo() { yield foo; } } //// [YieldExpression17_es6.js] -var v = { get foo() { ; } }; +var v = { get foo() { yield foo; } }; diff --git a/tests/baselines/reference/YieldExpression18_es6.js b/tests/baselines/reference/YieldExpression18_es6.js index 7fb630b9c08..b4ba37d3ac4 100644 --- a/tests/baselines/reference/YieldExpression18_es6.js +++ b/tests/baselines/reference/YieldExpression18_es6.js @@ -4,4 +4,4 @@ yield(foo); //// [YieldExpression18_es6.js] "use strict"; -; +yield (foo); diff --git a/tests/baselines/reference/YieldExpression19_es6.js b/tests/baselines/reference/YieldExpression19_es6.js index 91643e09b0e..d40b6e89a9d 100644 --- a/tests/baselines/reference/YieldExpression19_es6.js +++ b/tests/baselines/reference/YieldExpression19_es6.js @@ -11,7 +11,7 @@ function*foo() { function foo() { function bar() { function quux() { - ; + yield (foo); } } } diff --git a/tests/baselines/reference/YieldExpression2_es6.js b/tests/baselines/reference/YieldExpression2_es6.js index 0207b8afca0..7d9b1efb76b 100644 --- a/tests/baselines/reference/YieldExpression2_es6.js +++ b/tests/baselines/reference/YieldExpression2_es6.js @@ -2,4 +2,4 @@ yield foo; //// [YieldExpression2_es6.js] -; +yield foo; diff --git a/tests/baselines/reference/YieldExpression3_es6.js b/tests/baselines/reference/YieldExpression3_es6.js index cc3716587ea..c69e8b29700 100644 --- a/tests/baselines/reference/YieldExpression3_es6.js +++ b/tests/baselines/reference/YieldExpression3_es6.js @@ -6,6 +6,6 @@ function* foo() { //// [YieldExpression3_es6.js] function foo() { - ; - ; + yield; + yield; } diff --git a/tests/baselines/reference/YieldExpression4_es6.js b/tests/baselines/reference/YieldExpression4_es6.js index 84b11a03a2c..5f50b721bc8 100644 --- a/tests/baselines/reference/YieldExpression4_es6.js +++ b/tests/baselines/reference/YieldExpression4_es6.js @@ -6,6 +6,6 @@ function* foo() { //// [YieldExpression4_es6.js] function foo() { - ; - ; + yield; + yield; } diff --git a/tests/baselines/reference/YieldExpression5_es6.js b/tests/baselines/reference/YieldExpression5_es6.js index 5e0e9f811fa..82b405a4cda 100644 --- a/tests/baselines/reference/YieldExpression5_es6.js +++ b/tests/baselines/reference/YieldExpression5_es6.js @@ -5,5 +5,5 @@ function* foo() { //// [YieldExpression5_es6.js] function foo() { - ; + yield* ; } diff --git a/tests/baselines/reference/YieldExpression6_es6.js b/tests/baselines/reference/YieldExpression6_es6.js index 5024e9bbd40..67d5a745e72 100644 --- a/tests/baselines/reference/YieldExpression6_es6.js +++ b/tests/baselines/reference/YieldExpression6_es6.js @@ -5,5 +5,5 @@ function* foo() { //// [YieldExpression6_es6.js] function foo() { - ; + yield* foo; } diff --git a/tests/baselines/reference/YieldExpression7_es6.js b/tests/baselines/reference/YieldExpression7_es6.js index 96ef5af107e..226555dd6ef 100644 --- a/tests/baselines/reference/YieldExpression7_es6.js +++ b/tests/baselines/reference/YieldExpression7_es6.js @@ -5,5 +5,5 @@ function* foo() { //// [YieldExpression7_es6.js] function foo() { - ; + yield foo; } diff --git a/tests/baselines/reference/YieldExpression8_es6.js b/tests/baselines/reference/YieldExpression8_es6.js index 190c2cc3da5..990164af20d 100644 --- a/tests/baselines/reference/YieldExpression8_es6.js +++ b/tests/baselines/reference/YieldExpression8_es6.js @@ -7,5 +7,5 @@ function* foo() { //// [YieldExpression8_es6.js] yield(foo); function foo() { - ; + yield (foo); } diff --git a/tests/baselines/reference/YieldExpression9_es6.js b/tests/baselines/reference/YieldExpression9_es6.js index 978e0d455bd..f38aa811fec 100644 --- a/tests/baselines/reference/YieldExpression9_es6.js +++ b/tests/baselines/reference/YieldExpression9_es6.js @@ -5,5 +5,5 @@ var v = function*() { //// [YieldExpression9_es6.js] var v = function () { - ; + yield (foo); }; diff --git a/tests/baselines/reference/acceptableAlias1.types b/tests/baselines/reference/acceptableAlias1.types index 213e5ad5bc3..7aae99a57b2 100644 --- a/tests/baselines/reference/acceptableAlias1.types +++ b/tests/baselines/reference/acceptableAlias1.types @@ -1,17 +1,17 @@ === tests/cases/compiler/acceptableAlias1.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(acceptableAlias1.ts, 0, 0)) export module N { ->N : unknown +>N : any, Symbol(N, Decl(acceptableAlias1.ts, 0, 10)) } export import X = N; ->X : unknown ->N : unknown +>X : any, Symbol(X, Decl(acceptableAlias1.ts, 2, 5)) +>N : any, Symbol(N, Decl(acceptableAlias1.ts, 0, 10)) } import r = M.X; ->r : unknown ->M : typeof M ->X : unknown +>r : any, Symbol(r, Decl(acceptableAlias1.ts, 4, 1)) +>M : typeof M, Symbol(M, Decl(acceptableAlias1.ts, 0, 0)) +>X : any, Symbol(r, Decl(acceptableAlias1.ts, 0, 10)) diff --git a/tests/baselines/reference/accessOverriddenBaseClassMember1.types b/tests/baselines/reference/accessOverriddenBaseClassMember1.types index 15007cebf4c..4ba32e3ff65 100644 --- a/tests/baselines/reference/accessOverriddenBaseClassMember1.types +++ b/tests/baselines/reference/accessOverriddenBaseClassMember1.types @@ -1,54 +1,57 @@ === tests/cases/compiler/accessOverriddenBaseClassMember1.ts === class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(accessOverriddenBaseClassMember1.ts, 0, 0)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(accessOverriddenBaseClassMember1.ts, 1, 16)) +>y : number, Symbol(y, Decl(accessOverriddenBaseClassMember1.ts, 1, 33)) public toString() { ->toString : () => string +>toString : () => string, Symbol(toString, Decl(accessOverriddenBaseClassMember1.ts, 1, 55)) return "x=" + this.x + " y=" + this.y; >"x=" + this.x + " y=" + this.y : string >"x=" + this.x + " y=" : string >"x=" + this.x : string ->this.x : number ->this : Point ->x : number ->this.y : number ->this : Point ->y : number +>"x=" : string +>this.x : number, Symbol(x, Decl(accessOverriddenBaseClassMember1.ts, 1, 16)) +>this : Point, Symbol(Point, Decl(accessOverriddenBaseClassMember1.ts, 0, 0)) +>x : number, Symbol(x, Decl(accessOverriddenBaseClassMember1.ts, 1, 16)) +>" y=" : string +>this.y : number, Symbol(y, Decl(accessOverriddenBaseClassMember1.ts, 1, 33)) +>this : Point, Symbol(Point, Decl(accessOverriddenBaseClassMember1.ts, 0, 0)) +>y : number, Symbol(y, Decl(accessOverriddenBaseClassMember1.ts, 1, 33)) } } class ColoredPoint extends Point { ->ColoredPoint : ColoredPoint ->Point : Point +>ColoredPoint : ColoredPoint, Symbol(ColoredPoint, Decl(accessOverriddenBaseClassMember1.ts, 5, 1)) +>Point : Point, Symbol(Point, Decl(accessOverriddenBaseClassMember1.ts, 0, 0)) constructor(x: number, y: number, public color: string) { ->x : number ->y : number ->color : string +>x : number, Symbol(x, Decl(accessOverriddenBaseClassMember1.ts, 7, 16)) +>y : number, Symbol(y, Decl(accessOverriddenBaseClassMember1.ts, 7, 26)) +>color : string, Symbol(color, Decl(accessOverriddenBaseClassMember1.ts, 7, 37)) super(x, y); >super(x, y) : void ->super : typeof Point ->x : number ->y : number +>super : typeof Point, Symbol(Point, Decl(accessOverriddenBaseClassMember1.ts, 0, 0)) +>x : number, Symbol(x, Decl(accessOverriddenBaseClassMember1.ts, 7, 16)) +>y : number, Symbol(y, Decl(accessOverriddenBaseClassMember1.ts, 7, 26)) } public toString() { ->toString : () => string +>toString : () => string, Symbol(toString, Decl(accessOverriddenBaseClassMember1.ts, 9, 5)) return super.toString() + " color=" + this.color; >super.toString() + " color=" + this.color : string >super.toString() + " color=" : string >super.toString() : string ->super.toString : () => string ->super : Point ->toString : () => string ->this.color : string ->this : ColoredPoint ->color : string +>super.toString : () => string, Symbol(Point.toString, Decl(accessOverriddenBaseClassMember1.ts, 1, 55)) +>super : Point, Symbol(Point, Decl(accessOverriddenBaseClassMember1.ts, 0, 0)) +>toString : () => string, Symbol(Point.toString, Decl(accessOverriddenBaseClassMember1.ts, 1, 55)) +>" color=" : string +>this.color : string, Symbol(color, Decl(accessOverriddenBaseClassMember1.ts, 7, 37)) +>this : ColoredPoint, Symbol(ColoredPoint, Decl(accessOverriddenBaseClassMember1.ts, 5, 1)) +>color : string, Symbol(color, Decl(accessOverriddenBaseClassMember1.ts, 7, 37)) } } diff --git a/tests/baselines/reference/accessorWithES5.types b/tests/baselines/reference/accessorWithES5.types index 9d4976dd91a..9bbfadce48c 100644 --- a/tests/baselines/reference/accessorWithES5.types +++ b/tests/baselines/reference/accessorWithES5.types @@ -1,37 +1,39 @@ === tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts === class C { ->C : C +>C : C, Symbol(C, Decl(accessorWithES5.ts, 0, 0)) get x() { ->x : number +>x : number, Symbol(x, Decl(accessorWithES5.ts, 1, 9)) return 1; +>1 : number } } class D { ->D : D +>D : D, Symbol(D, Decl(accessorWithES5.ts, 5, 1)) set x(v) { ->x : any ->v : any +>x : any, Symbol(x, Decl(accessorWithES5.ts, 7, 9)) +>v : any, Symbol(v, Decl(accessorWithES5.ts, 8, 10)) } } var x = { ->x : { a: number; } +>x : { a: number; }, Symbol(x, Decl(accessorWithES5.ts, 12, 3)) >{ get a() { return 1 }} : { a: number; } get a() { return 1 } ->a : number +>a : number, Symbol(a, Decl(accessorWithES5.ts, 12, 9)) +>1 : number } var y = { ->y : { b: any; } +>y : { b: any; }, Symbol(y, Decl(accessorWithES5.ts, 16, 3)) >{ set b(v) { }} : { b: any; } set b(v) { } ->b : any ->v : any +>b : any, Symbol(b, Decl(accessorWithES5.ts, 16, 9)) +>v : any, Symbol(v, Decl(accessorWithES5.ts, 17, 10)) } diff --git a/tests/baselines/reference/addMoreCallSignaturesToBaseSignature.types b/tests/baselines/reference/addMoreCallSignaturesToBaseSignature.types index 212186ace77..da8dcb4d0be 100644 --- a/tests/baselines/reference/addMoreCallSignaturesToBaseSignature.types +++ b/tests/baselines/reference/addMoreCallSignaturesToBaseSignature.types @@ -1,24 +1,24 @@ === tests/cases/compiler/addMoreCallSignaturesToBaseSignature.ts === interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(addMoreCallSignaturesToBaseSignature.ts, 0, 0)) (): string; } interface Bar extends Foo { ->Bar : Bar ->Foo : Foo +>Bar : Bar, Symbol(Bar, Decl(addMoreCallSignaturesToBaseSignature.ts, 2, 1)) +>Foo : Foo, Symbol(Foo, Decl(addMoreCallSignaturesToBaseSignature.ts, 0, 0)) (key: string): string; ->key : string +>key : string, Symbol(key, Decl(addMoreCallSignaturesToBaseSignature.ts, 5, 5)) } var a: Bar; ->a : Bar ->Bar : Bar +>a : Bar, Symbol(a, Decl(addMoreCallSignaturesToBaseSignature.ts, 8, 3)) +>Bar : Bar, Symbol(Bar, Decl(addMoreCallSignaturesToBaseSignature.ts, 2, 1)) var kitty = a(); ->kitty : string +>kitty : string, Symbol(kitty, Decl(addMoreCallSignaturesToBaseSignature.ts, 9, 3)) >a() : string ->a : Bar +>a : Bar, Symbol(a, Decl(addMoreCallSignaturesToBaseSignature.ts, 8, 3)) diff --git a/tests/baselines/reference/addMoreCallSignaturesToBaseSignature2.types b/tests/baselines/reference/addMoreCallSignaturesToBaseSignature2.types index a80986c8cd1..ed187a820cc 100644 --- a/tests/baselines/reference/addMoreCallSignaturesToBaseSignature2.types +++ b/tests/baselines/reference/addMoreCallSignaturesToBaseSignature2.types @@ -1,25 +1,26 @@ === tests/cases/compiler/addMoreCallSignaturesToBaseSignature2.ts === interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(addMoreCallSignaturesToBaseSignature2.ts, 0, 0)) (bar:number): string; ->bar : number +>bar : number, Symbol(bar, Decl(addMoreCallSignaturesToBaseSignature2.ts, 1, 5)) } interface Bar extends Foo { ->Bar : Bar ->Foo : Foo +>Bar : Bar, Symbol(Bar, Decl(addMoreCallSignaturesToBaseSignature2.ts, 2, 1)) +>Foo : Foo, Symbol(Foo, Decl(addMoreCallSignaturesToBaseSignature2.ts, 0, 0)) (key: string): string; ->key : string +>key : string, Symbol(key, Decl(addMoreCallSignaturesToBaseSignature2.ts, 5, 5)) } var a: Bar; ->a : Bar ->Bar : Bar +>a : Bar, Symbol(a, Decl(addMoreCallSignaturesToBaseSignature2.ts, 8, 3)) +>Bar : Bar, Symbol(Bar, Decl(addMoreCallSignaturesToBaseSignature2.ts, 2, 1)) var kitty = a(1); ->kitty : string +>kitty : string, Symbol(kitty, Decl(addMoreCallSignaturesToBaseSignature2.ts, 9, 3)) >a(1) : string ->a : Bar +>a : Bar, Symbol(a, Decl(addMoreCallSignaturesToBaseSignature2.ts, 8, 3)) +>1 : number diff --git a/tests/baselines/reference/additionOperatorWithAnyAndEveryType.types b/tests/baselines/reference/additionOperatorWithAnyAndEveryType.types index da534c68ad6..e4571680a9b 100644 --- a/tests/baselines/reference/additionOperatorWithAnyAndEveryType.types +++ b/tests/baselines/reference/additionOperatorWithAnyAndEveryType.types @@ -1,168 +1,171 @@ === tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithAnyAndEveryType.ts === function foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(additionOperatorWithAnyAndEveryType.ts, 0, 0)) class C { ->C : C +>C : C, Symbol(C, Decl(additionOperatorWithAnyAndEveryType.ts, 0, 18)) public a: string; ->a : string +>a : string, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 1, 9)) static foo() { } ->foo : () => void +>foo : () => void, Symbol(C.foo, Decl(additionOperatorWithAnyAndEveryType.ts, 2, 21)) } enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(additionOperatorWithAnyAndEveryType.ts, 4, 1)) +>a : E, Symbol(E.a, Decl(additionOperatorWithAnyAndEveryType.ts, 5, 8)) +>b : E, Symbol(E.b, Decl(additionOperatorWithAnyAndEveryType.ts, 5, 11)) +>c : E, Symbol(E.c, Decl(additionOperatorWithAnyAndEveryType.ts, 5, 14)) module M { export var a } ->M : typeof M ->a : any +>M : typeof M, Symbol(M, Decl(additionOperatorWithAnyAndEveryType.ts, 5, 18)) +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 6, 21)) var a: any; ->a : any +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) var b: boolean; ->b : boolean +>b : boolean, Symbol(b, Decl(additionOperatorWithAnyAndEveryType.ts, 9, 3)) var c: number; ->c : number +>c : number, Symbol(c, Decl(additionOperatorWithAnyAndEveryType.ts, 10, 3)) var d: string; ->d : string +>d : string, Symbol(d, Decl(additionOperatorWithAnyAndEveryType.ts, 11, 3)) var e: Object; ->e : Object ->Object : Object +>e : Object, Symbol(e, Decl(additionOperatorWithAnyAndEveryType.ts, 12, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) // any as left operand, result is type Any except plusing string var r1 = a + a; ->r1 : any +>r1 : any, Symbol(r1, Decl(additionOperatorWithAnyAndEveryType.ts, 15, 3)) >a + a : any ->a : any ->a : any +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) var r2 = a + b; ->r2 : any +>r2 : any, Symbol(r2, Decl(additionOperatorWithAnyAndEveryType.ts, 16, 3)) >a + b : any ->a : any ->b : boolean +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) +>b : boolean, Symbol(b, Decl(additionOperatorWithAnyAndEveryType.ts, 9, 3)) var r3 = a + c; ->r3 : any +>r3 : any, Symbol(r3, Decl(additionOperatorWithAnyAndEveryType.ts, 17, 3)) >a + c : any ->a : any ->c : number +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) +>c : number, Symbol(c, Decl(additionOperatorWithAnyAndEveryType.ts, 10, 3)) var r4 = a + d; ->r4 : string +>r4 : string, Symbol(r4, Decl(additionOperatorWithAnyAndEveryType.ts, 18, 3)) >a + d : string ->a : any ->d : string +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) +>d : string, Symbol(d, Decl(additionOperatorWithAnyAndEveryType.ts, 11, 3)) var r5 = a + e; ->r5 : any +>r5 : any, Symbol(r5, Decl(additionOperatorWithAnyAndEveryType.ts, 19, 3)) >a + e : any ->a : any ->e : Object +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) +>e : Object, Symbol(e, Decl(additionOperatorWithAnyAndEveryType.ts, 12, 3)) // any as right operand, result is type Any except plusing string var r6 = b + a; ->r6 : any +>r6 : any, Symbol(r6, Decl(additionOperatorWithAnyAndEveryType.ts, 22, 3)) >b + a : any ->b : boolean ->a : any +>b : boolean, Symbol(b, Decl(additionOperatorWithAnyAndEveryType.ts, 9, 3)) +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) var r7 = c + a; ->r7 : any +>r7 : any, Symbol(r7, Decl(additionOperatorWithAnyAndEveryType.ts, 23, 3)) >c + a : any ->c : number ->a : any +>c : number, Symbol(c, Decl(additionOperatorWithAnyAndEveryType.ts, 10, 3)) +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) var r8 = d + a; ->r8 : string +>r8 : string, Symbol(r8, Decl(additionOperatorWithAnyAndEveryType.ts, 24, 3)) >d + a : string ->d : string ->a : any +>d : string, Symbol(d, Decl(additionOperatorWithAnyAndEveryType.ts, 11, 3)) +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) var r9 = e + a; ->r9 : any +>r9 : any, Symbol(r9, Decl(additionOperatorWithAnyAndEveryType.ts, 25, 3)) >e + a : any ->e : Object ->a : any +>e : Object, Symbol(e, Decl(additionOperatorWithAnyAndEveryType.ts, 12, 3)) +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) // other cases var r10 = a + foo; ->r10 : any +>r10 : any, Symbol(r10, Decl(additionOperatorWithAnyAndEveryType.ts, 28, 3)) >a + foo : any ->a : any ->foo : () => void +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) +>foo : () => void, Symbol(foo, Decl(additionOperatorWithAnyAndEveryType.ts, 0, 0)) var r11 = a + foo(); ->r11 : any +>r11 : any, Symbol(r11, Decl(additionOperatorWithAnyAndEveryType.ts, 29, 3)) >a + foo() : any ->a : any +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) >foo() : void ->foo : () => void +>foo : () => void, Symbol(foo, Decl(additionOperatorWithAnyAndEveryType.ts, 0, 0)) var r12 = a + C; ->r12 : any +>r12 : any, Symbol(r12, Decl(additionOperatorWithAnyAndEveryType.ts, 30, 3)) >a + C : any ->a : any ->C : typeof C +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) +>C : typeof C, Symbol(C, Decl(additionOperatorWithAnyAndEveryType.ts, 0, 18)) var r13 = a + new C(); ->r13 : any +>r13 : any, Symbol(r13, Decl(additionOperatorWithAnyAndEveryType.ts, 31, 3)) >a + new C() : any ->a : any +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(additionOperatorWithAnyAndEveryType.ts, 0, 18)) var r14 = a + E; ->r14 : any +>r14 : any, Symbol(r14, Decl(additionOperatorWithAnyAndEveryType.ts, 32, 3)) >a + E : any ->a : any ->E : typeof E +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) +>E : typeof E, Symbol(E, Decl(additionOperatorWithAnyAndEveryType.ts, 4, 1)) var r15 = a + E.a; ->r15 : any +>r15 : any, Symbol(r15, Decl(additionOperatorWithAnyAndEveryType.ts, 33, 3)) >a + E.a : any ->a : any ->E.a : E ->E : typeof E ->a : E +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) +>E.a : E, Symbol(E.a, Decl(additionOperatorWithAnyAndEveryType.ts, 5, 8)) +>E : typeof E, Symbol(E, Decl(additionOperatorWithAnyAndEveryType.ts, 4, 1)) +>a : E, Symbol(E.a, Decl(additionOperatorWithAnyAndEveryType.ts, 5, 8)) var r16 = a + M; ->r16 : any +>r16 : any, Symbol(r16, Decl(additionOperatorWithAnyAndEveryType.ts, 34, 3)) >a + M : any ->a : any ->M : typeof M +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) +>M : typeof M, Symbol(M, Decl(additionOperatorWithAnyAndEveryType.ts, 5, 18)) var r17 = a + ''; ->r17 : string +>r17 : string, Symbol(r17, Decl(additionOperatorWithAnyAndEveryType.ts, 35, 3)) >a + '' : string ->a : any +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) +>'' : string var r18 = a + 123; ->r18 : any +>r18 : any, Symbol(r18, Decl(additionOperatorWithAnyAndEveryType.ts, 36, 3)) >a + 123 : any ->a : any +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) +>123 : number var r19 = a + { a: '' }; ->r19 : any +>r19 : any, Symbol(r19, Decl(additionOperatorWithAnyAndEveryType.ts, 37, 3)) >a + { a: '' } : any ->a : any +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) >{ a: '' } : { a: string; } ->a : string +>a : string, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 37, 15)) +>'' : string var r20 = a + ((a: string) => { return a }); ->r20 : any +>r20 : any, Symbol(r20, Decl(additionOperatorWithAnyAndEveryType.ts, 38, 3)) >a + ((a: string) => { return a }) : any ->a : any +>a : any, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 8, 3)) >((a: string) => { return a }) : (a: string) => string >(a: string) => { return a } : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 38, 16)) +>a : string, Symbol(a, Decl(additionOperatorWithAnyAndEveryType.ts, 38, 16)) diff --git a/tests/baselines/reference/additionOperatorWithNullValueAndValidOperator.types b/tests/baselines/reference/additionOperatorWithNullValueAndValidOperator.types index 4dade89f5e4..62db775555a 100644 --- a/tests/baselines/reference/additionOperatorWithNullValueAndValidOperator.types +++ b/tests/baselines/reference/additionOperatorWithNullValueAndValidOperator.types @@ -2,106 +2,128 @@ // If one operand is the null or undefined value, it is treated as having the type of the other operand. enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(additionOperatorWithNullValueAndValidOperator.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(additionOperatorWithNullValueAndValidOperator.ts, 2, 8)) +>b : E, Symbol(E.b, Decl(additionOperatorWithNullValueAndValidOperator.ts, 2, 11)) +>c : E, Symbol(E.c, Decl(additionOperatorWithNullValueAndValidOperator.ts, 2, 14)) var a: any; ->a : any +>a : any, Symbol(a, Decl(additionOperatorWithNullValueAndValidOperator.ts, 4, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(additionOperatorWithNullValueAndValidOperator.ts, 5, 3)) var c: E; ->c : E ->E : E +>c : E, Symbol(c, Decl(additionOperatorWithNullValueAndValidOperator.ts, 6, 3)) +>E : E, Symbol(E, Decl(additionOperatorWithNullValueAndValidOperator.ts, 0, 0)) var d: string; ->d : string +>d : string, Symbol(d, Decl(additionOperatorWithNullValueAndValidOperator.ts, 7, 3)) // null + any var r1: any = null + a; ->r1 : any +>r1 : any, Symbol(r1, Decl(additionOperatorWithNullValueAndValidOperator.ts, 10, 3)) >null + a : any ->a : any +>null : null +>a : any, Symbol(a, Decl(additionOperatorWithNullValueAndValidOperator.ts, 4, 3)) var r2: any = a + null; ->r2 : any +>r2 : any, Symbol(r2, Decl(additionOperatorWithNullValueAndValidOperator.ts, 11, 3)) >a + null : any ->a : any +>a : any, Symbol(a, Decl(additionOperatorWithNullValueAndValidOperator.ts, 4, 3)) +>null : null // null + number/enum var r3 = null + b; ->r3 : number +>r3 : number, Symbol(r3, Decl(additionOperatorWithNullValueAndValidOperator.ts, 14, 3)) >null + b : number ->b : number +>null : null +>b : number, Symbol(b, Decl(additionOperatorWithNullValueAndValidOperator.ts, 5, 3)) var r4 = null + 1; ->r4 : number +>r4 : number, Symbol(r4, Decl(additionOperatorWithNullValueAndValidOperator.ts, 15, 3)) >null + 1 : number +>null : null +>1 : number var r5 = null + c; ->r5 : number +>r5 : number, Symbol(r5, Decl(additionOperatorWithNullValueAndValidOperator.ts, 16, 3)) >null + c : number ->c : E +>null : null +>c : E, Symbol(c, Decl(additionOperatorWithNullValueAndValidOperator.ts, 6, 3)) var r6 = null + E.a; ->r6 : number +>r6 : number, Symbol(r6, Decl(additionOperatorWithNullValueAndValidOperator.ts, 17, 3)) >null + E.a : number ->E.a : E ->E : typeof E ->a : E +>null : null +>E.a : E, Symbol(E.a, Decl(additionOperatorWithNullValueAndValidOperator.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(additionOperatorWithNullValueAndValidOperator.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(additionOperatorWithNullValueAndValidOperator.ts, 2, 8)) var r7 = null + E['a']; ->r7 : number +>r7 : number, Symbol(r7, Decl(additionOperatorWithNullValueAndValidOperator.ts, 18, 3)) >null + E['a'] : number +>null : null >E['a'] : E ->E : typeof E +>E : typeof E, Symbol(E, Decl(additionOperatorWithNullValueAndValidOperator.ts, 0, 0)) +>'a' : string, Symbol(E.a, Decl(additionOperatorWithNullValueAndValidOperator.ts, 2, 8)) var r8 = b + null; ->r8 : number +>r8 : number, Symbol(r8, Decl(additionOperatorWithNullValueAndValidOperator.ts, 19, 3)) >b + null : number ->b : number +>b : number, Symbol(b, Decl(additionOperatorWithNullValueAndValidOperator.ts, 5, 3)) +>null : null var r9 = 1 + null; ->r9 : number +>r9 : number, Symbol(r9, Decl(additionOperatorWithNullValueAndValidOperator.ts, 20, 3)) >1 + null : number +>1 : number +>null : null var r10 = c + null ->r10 : number +>r10 : number, Symbol(r10, Decl(additionOperatorWithNullValueAndValidOperator.ts, 21, 3)) >c + null : number ->c : E +>c : E, Symbol(c, Decl(additionOperatorWithNullValueAndValidOperator.ts, 6, 3)) +>null : null var r11 = E.a + null; ->r11 : number +>r11 : number, Symbol(r11, Decl(additionOperatorWithNullValueAndValidOperator.ts, 22, 3)) >E.a + null : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(additionOperatorWithNullValueAndValidOperator.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(additionOperatorWithNullValueAndValidOperator.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(additionOperatorWithNullValueAndValidOperator.ts, 2, 8)) +>null : null var r12 = E['a'] + null; ->r12 : number +>r12 : number, Symbol(r12, Decl(additionOperatorWithNullValueAndValidOperator.ts, 23, 3)) >E['a'] + null : number >E['a'] : E ->E : typeof E +>E : typeof E, Symbol(E, Decl(additionOperatorWithNullValueAndValidOperator.ts, 0, 0)) +>'a' : string, Symbol(E.a, Decl(additionOperatorWithNullValueAndValidOperator.ts, 2, 8)) +>null : null // null + string var r13 = null + d; ->r13 : string +>r13 : string, Symbol(r13, Decl(additionOperatorWithNullValueAndValidOperator.ts, 26, 3)) >null + d : string ->d : string +>null : null +>d : string, Symbol(d, Decl(additionOperatorWithNullValueAndValidOperator.ts, 7, 3)) var r14 = null + ''; ->r14 : string +>r14 : string, Symbol(r14, Decl(additionOperatorWithNullValueAndValidOperator.ts, 27, 3)) >null + '' : string +>null : null +>'' : string var r15 = d + null; ->r15 : string +>r15 : string, Symbol(r15, Decl(additionOperatorWithNullValueAndValidOperator.ts, 28, 3)) >d + null : string ->d : string +>d : string, Symbol(d, Decl(additionOperatorWithNullValueAndValidOperator.ts, 7, 3)) +>null : null var r16 = '' + null; ->r16 : string +>r16 : string, Symbol(r16, Decl(additionOperatorWithNullValueAndValidOperator.ts, 29, 3)) >'' + null : string +>'' : string +>null : null diff --git a/tests/baselines/reference/additionOperatorWithNumberAndEnum.types b/tests/baselines/reference/additionOperatorWithNumberAndEnum.types index c22939ffd98..ffca2d5d5cd 100644 --- a/tests/baselines/reference/additionOperatorWithNumberAndEnum.types +++ b/tests/baselines/reference/additionOperatorWithNumberAndEnum.types @@ -1,115 +1,121 @@ === tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithNumberAndEnum.ts === enum E { a, b } ->E : E ->a : E ->b : E +>E : E, Symbol(E, Decl(additionOperatorWithNumberAndEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(additionOperatorWithNumberAndEnum.ts, 0, 8)) +>b : E, Symbol(E.b, Decl(additionOperatorWithNumberAndEnum.ts, 0, 11)) enum F { c, d } ->F : F ->c : F ->d : F +>F : F, Symbol(F, Decl(additionOperatorWithNumberAndEnum.ts, 0, 15)) +>c : F, Symbol(F.c, Decl(additionOperatorWithNumberAndEnum.ts, 1, 8)) +>d : F, Symbol(F.d, Decl(additionOperatorWithNumberAndEnum.ts, 1, 11)) var a: number; ->a : number +>a : number, Symbol(a, Decl(additionOperatorWithNumberAndEnum.ts, 3, 3)) var b: E; ->b : E ->E : E +>b : E, Symbol(b, Decl(additionOperatorWithNumberAndEnum.ts, 4, 3)) +>E : E, Symbol(E, Decl(additionOperatorWithNumberAndEnum.ts, 0, 0)) var c: E | F; ->c : E | F ->E : E ->F : F +>c : E | F, Symbol(c, Decl(additionOperatorWithNumberAndEnum.ts, 5, 3)) +>E : E, Symbol(E, Decl(additionOperatorWithNumberAndEnum.ts, 0, 0)) +>F : F, Symbol(F, Decl(additionOperatorWithNumberAndEnum.ts, 0, 15)) var r1 = a + a; ->r1 : number +>r1 : number, Symbol(r1, Decl(additionOperatorWithNumberAndEnum.ts, 7, 3)) >a + a : number ->a : number ->a : number +>a : number, Symbol(a, Decl(additionOperatorWithNumberAndEnum.ts, 3, 3)) +>a : number, Symbol(a, Decl(additionOperatorWithNumberAndEnum.ts, 3, 3)) var r2 = a + b; ->r2 : number +>r2 : number, Symbol(r2, Decl(additionOperatorWithNumberAndEnum.ts, 8, 3)) >a + b : number ->a : number ->b : E +>a : number, Symbol(a, Decl(additionOperatorWithNumberAndEnum.ts, 3, 3)) +>b : E, Symbol(b, Decl(additionOperatorWithNumberAndEnum.ts, 4, 3)) var r3 = b + a; ->r3 : number +>r3 : number, Symbol(r3, Decl(additionOperatorWithNumberAndEnum.ts, 9, 3)) >b + a : number ->b : E ->a : number +>b : E, Symbol(b, Decl(additionOperatorWithNumberAndEnum.ts, 4, 3)) +>a : number, Symbol(a, Decl(additionOperatorWithNumberAndEnum.ts, 3, 3)) var r4 = b + b; ->r4 : number +>r4 : number, Symbol(r4, Decl(additionOperatorWithNumberAndEnum.ts, 10, 3)) >b + b : number ->b : E ->b : E +>b : E, Symbol(b, Decl(additionOperatorWithNumberAndEnum.ts, 4, 3)) +>b : E, Symbol(b, Decl(additionOperatorWithNumberAndEnum.ts, 4, 3)) var r5 = 0 + a; ->r5 : number +>r5 : number, Symbol(r5, Decl(additionOperatorWithNumberAndEnum.ts, 12, 3)) >0 + a : number ->a : number +>0 : number +>a : number, Symbol(a, Decl(additionOperatorWithNumberAndEnum.ts, 3, 3)) var r6 = E.a + 0; ->r6 : number +>r6 : number, Symbol(r6, Decl(additionOperatorWithNumberAndEnum.ts, 13, 3)) >E.a + 0 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(additionOperatorWithNumberAndEnum.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(additionOperatorWithNumberAndEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(additionOperatorWithNumberAndEnum.ts, 0, 8)) +>0 : number var r7 = E.a + E.b; ->r7 : number +>r7 : number, Symbol(r7, Decl(additionOperatorWithNumberAndEnum.ts, 14, 3)) >E.a + E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(additionOperatorWithNumberAndEnum.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(additionOperatorWithNumberAndEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(additionOperatorWithNumberAndEnum.ts, 0, 8)) +>E.b : E, Symbol(E.b, Decl(additionOperatorWithNumberAndEnum.ts, 0, 11)) +>E : typeof E, Symbol(E, Decl(additionOperatorWithNumberAndEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(additionOperatorWithNumberAndEnum.ts, 0, 11)) var r8 = E['a'] + E['b']; ->r8 : number +>r8 : number, Symbol(r8, Decl(additionOperatorWithNumberAndEnum.ts, 15, 3)) >E['a'] + E['b'] : number >E['a'] : E ->E : typeof E +>E : typeof E, Symbol(E, Decl(additionOperatorWithNumberAndEnum.ts, 0, 0)) +>'a' : string, Symbol(E.a, Decl(additionOperatorWithNumberAndEnum.ts, 0, 8)) >E['b'] : E ->E : typeof E +>E : typeof E, Symbol(E, Decl(additionOperatorWithNumberAndEnum.ts, 0, 0)) +>'b' : string, Symbol(E.b, Decl(additionOperatorWithNumberAndEnum.ts, 0, 11)) var r9 = E['a'] + F['c']; ->r9 : number +>r9 : number, Symbol(r9, Decl(additionOperatorWithNumberAndEnum.ts, 16, 3)) >E['a'] + F['c'] : number >E['a'] : E ->E : typeof E +>E : typeof E, Symbol(E, Decl(additionOperatorWithNumberAndEnum.ts, 0, 0)) +>'a' : string, Symbol(E.a, Decl(additionOperatorWithNumberAndEnum.ts, 0, 8)) >F['c'] : F ->F : typeof F +>F : typeof F, Symbol(F, Decl(additionOperatorWithNumberAndEnum.ts, 0, 15)) +>'c' : string, Symbol(F.c, Decl(additionOperatorWithNumberAndEnum.ts, 1, 8)) var r10 = a + c; ->r10 : number +>r10 : number, Symbol(r10, Decl(additionOperatorWithNumberAndEnum.ts, 18, 3)) >a + c : number ->a : number ->c : E | F +>a : number, Symbol(a, Decl(additionOperatorWithNumberAndEnum.ts, 3, 3)) +>c : E | F, Symbol(c, Decl(additionOperatorWithNumberAndEnum.ts, 5, 3)) var r11 = c + a; ->r11 : number +>r11 : number, Symbol(r11, Decl(additionOperatorWithNumberAndEnum.ts, 19, 3)) >c + a : number ->c : E | F ->a : number +>c : E | F, Symbol(c, Decl(additionOperatorWithNumberAndEnum.ts, 5, 3)) +>a : number, Symbol(a, Decl(additionOperatorWithNumberAndEnum.ts, 3, 3)) var r12 = b + c; ->r12 : number +>r12 : number, Symbol(r12, Decl(additionOperatorWithNumberAndEnum.ts, 20, 3)) >b + c : number ->b : E ->c : E | F +>b : E, Symbol(b, Decl(additionOperatorWithNumberAndEnum.ts, 4, 3)) +>c : E | F, Symbol(c, Decl(additionOperatorWithNumberAndEnum.ts, 5, 3)) var r13 = c + b; ->r13 : number +>r13 : number, Symbol(r13, Decl(additionOperatorWithNumberAndEnum.ts, 21, 3)) >c + b : number ->c : E | F ->b : E +>c : E | F, Symbol(c, Decl(additionOperatorWithNumberAndEnum.ts, 5, 3)) +>b : E, Symbol(b, Decl(additionOperatorWithNumberAndEnum.ts, 4, 3)) var r14 = c + c; ->r14 : number +>r14 : number, Symbol(r14, Decl(additionOperatorWithNumberAndEnum.ts, 22, 3)) >c + c : number ->c : E | F ->c : E | F +>c : E | F, Symbol(c, Decl(additionOperatorWithNumberAndEnum.ts, 5, 3)) +>c : E | F, Symbol(c, Decl(additionOperatorWithNumberAndEnum.ts, 5, 3)) diff --git a/tests/baselines/reference/additionOperatorWithStringAndEveryType.types b/tests/baselines/reference/additionOperatorWithStringAndEveryType.types index 9d5a926c427..31fa60a2562 100644 --- a/tests/baselines/reference/additionOperatorWithStringAndEveryType.types +++ b/tests/baselines/reference/additionOperatorWithStringAndEveryType.types @@ -1,158 +1,161 @@ === tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithStringAndEveryType.ts === enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(additionOperatorWithStringAndEveryType.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(additionOperatorWithStringAndEveryType.ts, 0, 8)) +>b : E, Symbol(E.b, Decl(additionOperatorWithStringAndEveryType.ts, 0, 11)) +>c : E, Symbol(E.c, Decl(additionOperatorWithStringAndEveryType.ts, 0, 14)) var a: any; ->a : any +>a : any, Symbol(a, Decl(additionOperatorWithStringAndEveryType.ts, 2, 3)) var b: boolean; ->b : boolean +>b : boolean, Symbol(b, Decl(additionOperatorWithStringAndEveryType.ts, 3, 3)) var c: number; ->c : number +>c : number, Symbol(c, Decl(additionOperatorWithStringAndEveryType.ts, 4, 3)) var d: string; ->d : string +>d : string, Symbol(d, Decl(additionOperatorWithStringAndEveryType.ts, 5, 3)) var e: Object; ->e : Object ->Object : Object +>e : Object, Symbol(e, Decl(additionOperatorWithStringAndEveryType.ts, 6, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var f: void; ->f : void +>f : void, Symbol(f, Decl(additionOperatorWithStringAndEveryType.ts, 7, 3)) var g: E; ->g : E ->E : E +>g : E, Symbol(g, Decl(additionOperatorWithStringAndEveryType.ts, 8, 3)) +>E : E, Symbol(E, Decl(additionOperatorWithStringAndEveryType.ts, 0, 0)) var x: string; ->x : string +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) // string could plus every type, and the result is always string // string as left operand var r1 = x + a; ->r1 : string +>r1 : string, Symbol(r1, Decl(additionOperatorWithStringAndEveryType.ts, 14, 3)) >x + a : string ->x : string ->a : any +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) +>a : any, Symbol(a, Decl(additionOperatorWithStringAndEveryType.ts, 2, 3)) var r2 = x + b; ->r2 : string +>r2 : string, Symbol(r2, Decl(additionOperatorWithStringAndEveryType.ts, 15, 3)) >x + b : string ->x : string ->b : boolean +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) +>b : boolean, Symbol(b, Decl(additionOperatorWithStringAndEveryType.ts, 3, 3)) var r3 = x + c; ->r3 : string +>r3 : string, Symbol(r3, Decl(additionOperatorWithStringAndEveryType.ts, 16, 3)) >x + c : string ->x : string ->c : number +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) +>c : number, Symbol(c, Decl(additionOperatorWithStringAndEveryType.ts, 4, 3)) var r4 = x + d; ->r4 : string +>r4 : string, Symbol(r4, Decl(additionOperatorWithStringAndEveryType.ts, 17, 3)) >x + d : string ->x : string ->d : string +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) +>d : string, Symbol(d, Decl(additionOperatorWithStringAndEveryType.ts, 5, 3)) var r5 = x + e; ->r5 : string +>r5 : string, Symbol(r5, Decl(additionOperatorWithStringAndEveryType.ts, 18, 3)) >x + e : string ->x : string ->e : Object +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) +>e : Object, Symbol(e, Decl(additionOperatorWithStringAndEveryType.ts, 6, 3)) var r6 = x + f; ->r6 : string +>r6 : string, Symbol(r6, Decl(additionOperatorWithStringAndEveryType.ts, 19, 3)) >x + f : string ->x : string ->f : void +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) +>f : void, Symbol(f, Decl(additionOperatorWithStringAndEveryType.ts, 7, 3)) var r7 = x + g; ->r7 : string +>r7 : string, Symbol(r7, Decl(additionOperatorWithStringAndEveryType.ts, 20, 3)) >x + g : string ->x : string ->g : E +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) +>g : E, Symbol(g, Decl(additionOperatorWithStringAndEveryType.ts, 8, 3)) // string as right operand var r8 = a + x; ->r8 : string +>r8 : string, Symbol(r8, Decl(additionOperatorWithStringAndEveryType.ts, 23, 3)) >a + x : string ->a : any ->x : string +>a : any, Symbol(a, Decl(additionOperatorWithStringAndEveryType.ts, 2, 3)) +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) var r9 = b + x; ->r9 : string +>r9 : string, Symbol(r9, Decl(additionOperatorWithStringAndEveryType.ts, 24, 3)) >b + x : string ->b : boolean ->x : string +>b : boolean, Symbol(b, Decl(additionOperatorWithStringAndEveryType.ts, 3, 3)) +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) var r10 = c + x; ->r10 : string +>r10 : string, Symbol(r10, Decl(additionOperatorWithStringAndEveryType.ts, 25, 3)) >c + x : string ->c : number ->x : string +>c : number, Symbol(c, Decl(additionOperatorWithStringAndEveryType.ts, 4, 3)) +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) var r11 = d + x; ->r11 : string +>r11 : string, Symbol(r11, Decl(additionOperatorWithStringAndEveryType.ts, 26, 3)) >d + x : string ->d : string ->x : string +>d : string, Symbol(d, Decl(additionOperatorWithStringAndEveryType.ts, 5, 3)) +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) var r12 = e + x; ->r12 : string +>r12 : string, Symbol(r12, Decl(additionOperatorWithStringAndEveryType.ts, 27, 3)) >e + x : string ->e : Object ->x : string +>e : Object, Symbol(e, Decl(additionOperatorWithStringAndEveryType.ts, 6, 3)) +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) var r13 = f + x; ->r13 : string +>r13 : string, Symbol(r13, Decl(additionOperatorWithStringAndEveryType.ts, 28, 3)) >f + x : string ->f : void ->x : string +>f : void, Symbol(f, Decl(additionOperatorWithStringAndEveryType.ts, 7, 3)) +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) var r14 = g + x; ->r14 : string +>r14 : string, Symbol(r14, Decl(additionOperatorWithStringAndEveryType.ts, 29, 3)) >g + x : string ->g : E ->x : string +>g : E, Symbol(g, Decl(additionOperatorWithStringAndEveryType.ts, 8, 3)) +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) // other cases var r15 = x + E; ->r15 : string +>r15 : string, Symbol(r15, Decl(additionOperatorWithStringAndEveryType.ts, 32, 3)) >x + E : string ->x : string ->E : typeof E +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) +>E : typeof E, Symbol(E, Decl(additionOperatorWithStringAndEveryType.ts, 0, 0)) var r16 = x + E.a; ->r16 : string +>r16 : string, Symbol(r16, Decl(additionOperatorWithStringAndEveryType.ts, 33, 3)) >x + E.a : string ->x : string ->E.a : E ->E : typeof E ->a : E +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) +>E.a : E, Symbol(E.a, Decl(additionOperatorWithStringAndEveryType.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(additionOperatorWithStringAndEveryType.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(additionOperatorWithStringAndEveryType.ts, 0, 8)) var r17 = x + ''; ->r17 : string +>r17 : string, Symbol(r17, Decl(additionOperatorWithStringAndEveryType.ts, 34, 3)) >x + '' : string ->x : string +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) +>'' : string var r18 = x + 0; ->r18 : string +>r18 : string, Symbol(r18, Decl(additionOperatorWithStringAndEveryType.ts, 35, 3)) >x + 0 : string ->x : string +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) +>0 : number var r19 = x + { a: '' }; ->r19 : string +>r19 : string, Symbol(r19, Decl(additionOperatorWithStringAndEveryType.ts, 36, 3)) >x + { a: '' } : string ->x : string +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) >{ a: '' } : { a: string; } ->a : string +>a : string, Symbol(a, Decl(additionOperatorWithStringAndEveryType.ts, 36, 15)) +>'' : string var r20 = x + []; ->r20 : string +>r20 : string, Symbol(r20, Decl(additionOperatorWithStringAndEveryType.ts, 37, 3)) >x + [] : string ->x : string +>x : string, Symbol(x, Decl(additionOperatorWithStringAndEveryType.ts, 10, 3)) >[] : undefined[] diff --git a/tests/baselines/reference/additionOperatorWithUndefinedValueAndValidOperator.types b/tests/baselines/reference/additionOperatorWithUndefinedValueAndValidOperator.types index 9a67b25024c..966c19aa8c4 100644 --- a/tests/baselines/reference/additionOperatorWithUndefinedValueAndValidOperator.types +++ b/tests/baselines/reference/additionOperatorWithUndefinedValueAndValidOperator.types @@ -2,122 +2,128 @@ // If one operand is the null or undefined value, it is treated as having the type of the other operand. enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 2, 8)) +>b : E, Symbol(E.b, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 2, 11)) +>c : E, Symbol(E.c, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 2, 14)) var a: any; ->a : any +>a : any, Symbol(a, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 4, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 5, 3)) var c: E; ->c : E ->E : E +>c : E, Symbol(c, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 6, 3)) +>E : E, Symbol(E, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 0, 0)) var d: string; ->d : string +>d : string, Symbol(d, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 7, 3)) // undefined + any var r1: any = undefined + a; ->r1 : any +>r1 : any, Symbol(r1, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 10, 3)) >undefined + a : any ->undefined : undefined ->a : any +>undefined : undefined, Symbol(undefined) +>a : any, Symbol(a, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 4, 3)) var r2: any = a + undefined; ->r2 : any +>r2 : any, Symbol(r2, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 11, 3)) >a + undefined : any ->a : any ->undefined : undefined +>a : any, Symbol(a, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 4, 3)) +>undefined : undefined, Symbol(undefined) // undefined + number/enum var r3 = undefined + b; ->r3 : number +>r3 : number, Symbol(r3, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 14, 3)) >undefined + b : number ->undefined : undefined ->b : number +>undefined : undefined, Symbol(undefined) +>b : number, Symbol(b, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 5, 3)) var r4 = undefined + 1; ->r4 : number +>r4 : number, Symbol(r4, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 15, 3)) >undefined + 1 : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>1 : number var r5 = undefined + c; ->r5 : number +>r5 : number, Symbol(r5, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 16, 3)) >undefined + c : number ->undefined : undefined ->c : E +>undefined : undefined, Symbol(undefined) +>c : E, Symbol(c, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 6, 3)) var r6 = undefined + E.a; ->r6 : number +>r6 : number, Symbol(r6, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 17, 3)) >undefined + E.a : number ->undefined : undefined ->E.a : E ->E : typeof E ->a : E +>undefined : undefined, Symbol(undefined) +>E.a : E, Symbol(E.a, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 2, 8)) var r7 = undefined + E['a']; ->r7 : number +>r7 : number, Symbol(r7, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 18, 3)) >undefined + E['a'] : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) >E['a'] : E ->E : typeof E +>E : typeof E, Symbol(E, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 0, 0)) +>'a' : string, Symbol(E.a, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 2, 8)) var r8 = b + undefined; ->r8 : number +>r8 : number, Symbol(r8, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 19, 3)) >b + undefined : number ->b : number ->undefined : undefined +>b : number, Symbol(b, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 5, 3)) +>undefined : undefined, Symbol(undefined) var r9 = 1 + undefined; ->r9 : number +>r9 : number, Symbol(r9, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 20, 3)) >1 + undefined : number ->undefined : undefined +>1 : number +>undefined : undefined, Symbol(undefined) var r10 = c + undefined ->r10 : number +>r10 : number, Symbol(r10, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 21, 3)) >c + undefined : number ->c : E ->undefined : undefined +>c : E, Symbol(c, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 6, 3)) +>undefined : undefined, Symbol(undefined) var r11 = E.a + undefined; ->r11 : number +>r11 : number, Symbol(r11, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 22, 3)) >E.a + undefined : number ->E.a : E ->E : typeof E ->a : E ->undefined : undefined +>E.a : E, Symbol(E.a, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 2, 8)) +>undefined : undefined, Symbol(undefined) var r12 = E['a'] + undefined; ->r12 : number +>r12 : number, Symbol(r12, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 23, 3)) >E['a'] + undefined : number >E['a'] : E ->E : typeof E ->undefined : undefined +>E : typeof E, Symbol(E, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 0, 0)) +>'a' : string, Symbol(E.a, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 2, 8)) +>undefined : undefined, Symbol(undefined) // undefined + string var r13 = undefined + d; ->r13 : string +>r13 : string, Symbol(r13, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 26, 3)) >undefined + d : string ->undefined : undefined ->d : string +>undefined : undefined, Symbol(undefined) +>d : string, Symbol(d, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 7, 3)) var r14 = undefined + ''; ->r14 : string +>r14 : string, Symbol(r14, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 27, 3)) >undefined + '' : string ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>'' : string var r15 = d + undefined; ->r15 : string +>r15 : string, Symbol(r15, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 28, 3)) >d + undefined : string ->d : string ->undefined : undefined +>d : string, Symbol(d, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 7, 3)) +>undefined : undefined, Symbol(undefined) var r16 = '' + undefined; ->r16 : string +>r16 : string, Symbol(r16, Decl(additionOperatorWithUndefinedValueAndValidOperator.ts, 29, 3)) >'' + undefined : string ->undefined : undefined +>'' : string +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/aliasUsageInAccessorsOfClass.types b/tests/baselines/reference/aliasUsageInAccessorsOfClass.types index a666d2cee98..0a580a47b16 100644 --- a/tests/baselines/reference/aliasUsageInAccessorsOfClass.types +++ b/tests/baselines/reference/aliasUsageInAccessorsOfClass.types @@ -1,59 +1,61 @@ === tests/cases/compiler/aliasUsage1_main.ts === import Backbone = require("aliasUsage1_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsage1_main.ts, 0, 0)) import moduleA = require("aliasUsage1_moduleA"); ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsage1_main.ts, 0, 50)) interface IHasVisualizationModel { ->IHasVisualizationModel : IHasVisualizationModel +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsage1_main.ts, 1, 48)) VisualizationModel: typeof Backbone.Model; ->VisualizationModel : typeof Backbone.Model ->Backbone : typeof Backbone ->Model : typeof Backbone.Model +>VisualizationModel : typeof Backbone.Model, Symbol(VisualizationModel, Decl(aliasUsage1_main.ts, 2, 34)) +>Backbone.Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsage1_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsage1_main.ts, 0, 0)) +>Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsage1_backbone.ts, 0, 0)) } class C2 { ->C2 : C2 +>C2 : C2, Symbol(C2, Decl(aliasUsage1_main.ts, 4, 1)) x: IHasVisualizationModel; ->x : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsage1_main.ts, 5, 10)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsage1_main.ts, 1, 48)) get A() { ->A : IHasVisualizationModel +>A : IHasVisualizationModel, Symbol(A, Decl(aliasUsage1_main.ts, 6, 30), Decl(aliasUsage1_main.ts, 9, 5)) return this.x; ->this.x : IHasVisualizationModel ->this : C2 ->x : IHasVisualizationModel +>this.x : IHasVisualizationModel, Symbol(x, Decl(aliasUsage1_main.ts, 5, 10)) +>this : C2, Symbol(C2, Decl(aliasUsage1_main.ts, 4, 1)) +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsage1_main.ts, 5, 10)) } set A(x) { ->A : IHasVisualizationModel ->x : IHasVisualizationModel +>A : IHasVisualizationModel, Symbol(A, Decl(aliasUsage1_main.ts, 6, 30), Decl(aliasUsage1_main.ts, 9, 5)) +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsage1_main.ts, 10, 10)) x = moduleA; >x = moduleA : typeof moduleA ->x : IHasVisualizationModel ->moduleA : typeof moduleA +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsage1_main.ts, 10, 10)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsage1_main.ts, 0, 50)) } } === tests/cases/compiler/aliasUsage1_backbone.ts === export class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(aliasUsage1_backbone.ts, 0, 0)) public someData: string; ->someData : string +>someData : string, Symbol(someData, Decl(aliasUsage1_backbone.ts, 0, 20)) } === tests/cases/compiler/aliasUsage1_moduleA.ts === import Backbone = require("aliasUsage1_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsage1_moduleA.ts, 0, 0)) export class VisualizationModel extends Backbone.Model { ->VisualizationModel : VisualizationModel ->Backbone : typeof Backbone ->Model : Backbone.Model +>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(aliasUsage1_moduleA.ts, 0, 50)) +>Backbone.Model : any, Symbol(Backbone.Model, Decl(aliasUsage1_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsage1_moduleA.ts, 0, 0)) +>Model : Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsage1_backbone.ts, 0, 0)) // interesting stuff here } diff --git a/tests/baselines/reference/aliasUsageInArray.types b/tests/baselines/reference/aliasUsageInArray.types index f7e2beb49dd..b7ff2670cd2 100644 --- a/tests/baselines/reference/aliasUsageInArray.types +++ b/tests/baselines/reference/aliasUsageInArray.types @@ -1,47 +1,49 @@ === tests/cases/compiler/aliasUsageInArray_main.ts === import Backbone = require("aliasUsageInArray_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInArray_main.ts, 0, 0)) import moduleA = require("aliasUsageInArray_moduleA"); ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInArray_main.ts, 0, 56)) interface IHasVisualizationModel { ->IHasVisualizationModel : IHasVisualizationModel +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInArray_main.ts, 1, 54)) VisualizationModel: typeof Backbone.Model; ->VisualizationModel : typeof Backbone.Model ->Backbone : typeof Backbone ->Model : typeof Backbone.Model +>VisualizationModel : typeof Backbone.Model, Symbol(VisualizationModel, Decl(aliasUsageInArray_main.ts, 2, 34)) +>Backbone.Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInArray_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInArray_main.ts, 0, 0)) +>Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInArray_backbone.ts, 0, 0)) } var xs: IHasVisualizationModel[] = [moduleA]; ->xs : IHasVisualizationModel[] ->IHasVisualizationModel : IHasVisualizationModel +>xs : IHasVisualizationModel[], Symbol(xs, Decl(aliasUsageInArray_main.ts, 6, 3)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInArray_main.ts, 1, 54)) >[moduleA] : typeof moduleA[] ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInArray_main.ts, 0, 56)) var xs2: typeof moduleA[] = [moduleA]; ->xs2 : typeof moduleA[] ->moduleA : typeof moduleA +>xs2 : typeof moduleA[], Symbol(xs2, Decl(aliasUsageInArray_main.ts, 7, 3)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInArray_main.ts, 0, 56)) >[moduleA] : typeof moduleA[] ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInArray_main.ts, 0, 56)) === tests/cases/compiler/aliasUsageInArray_backbone.ts === export class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(aliasUsageInArray_backbone.ts, 0, 0)) public someData: string; ->someData : string +>someData : string, Symbol(someData, Decl(aliasUsageInArray_backbone.ts, 0, 20)) } === tests/cases/compiler/aliasUsageInArray_moduleA.ts === import Backbone = require("aliasUsageInArray_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInArray_moduleA.ts, 0, 0)) export class VisualizationModel extends Backbone.Model { ->VisualizationModel : VisualizationModel ->Backbone : typeof Backbone ->Model : Backbone.Model +>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(aliasUsageInArray_moduleA.ts, 0, 56)) +>Backbone.Model : any, Symbol(Backbone.Model, Decl(aliasUsageInArray_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInArray_moduleA.ts, 0, 0)) +>Model : Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInArray_backbone.ts, 0, 0)) // interesting stuff here } diff --git a/tests/baselines/reference/aliasUsageInFunctionExpression.types b/tests/baselines/reference/aliasUsageInFunctionExpression.types index 392481d2d02..46ca7a9a76c 100644 --- a/tests/baselines/reference/aliasUsageInFunctionExpression.types +++ b/tests/baselines/reference/aliasUsageInFunctionExpression.types @@ -1,48 +1,50 @@ === tests/cases/compiler/aliasUsageInFunctionExpression_main.ts === import Backbone = require("aliasUsageInFunctionExpression_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInFunctionExpression_main.ts, 0, 0)) import moduleA = require("aliasUsageInFunctionExpression_moduleA"); ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInFunctionExpression_main.ts, 0, 69)) interface IHasVisualizationModel { ->IHasVisualizationModel : IHasVisualizationModel +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 1, 67)) VisualizationModel: typeof Backbone.Model; ->VisualizationModel : typeof Backbone.Model ->Backbone : typeof Backbone ->Model : typeof Backbone.Model +>VisualizationModel : typeof Backbone.Model, Symbol(VisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 2, 34)) +>Backbone.Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInFunctionExpression_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInFunctionExpression_main.ts, 0, 0)) +>Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInFunctionExpression_backbone.ts, 0, 0)) } var f = (x: IHasVisualizationModel) => x; ->f : (x: IHasVisualizationModel) => IHasVisualizationModel +>f : (x: IHasVisualizationModel) => IHasVisualizationModel, Symbol(f, Decl(aliasUsageInFunctionExpression_main.ts, 5, 3)) >(x: IHasVisualizationModel) => x : (x: IHasVisualizationModel) => IHasVisualizationModel ->x : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel ->x : IHasVisualizationModel +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInFunctionExpression_main.ts, 5, 9)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 1, 67)) +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInFunctionExpression_main.ts, 5, 9)) f = (x) => moduleA; >f = (x) => moduleA : (x: IHasVisualizationModel) => typeof moduleA ->f : (x: IHasVisualizationModel) => IHasVisualizationModel +>f : (x: IHasVisualizationModel) => IHasVisualizationModel, Symbol(f, Decl(aliasUsageInFunctionExpression_main.ts, 5, 3)) >(x) => moduleA : (x: IHasVisualizationModel) => typeof moduleA ->x : IHasVisualizationModel ->moduleA : typeof moduleA +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInFunctionExpression_main.ts, 6, 5)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInFunctionExpression_main.ts, 0, 69)) === tests/cases/compiler/aliasUsageInFunctionExpression_backbone.ts === export class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(aliasUsageInFunctionExpression_backbone.ts, 0, 0)) public someData: string; ->someData : string +>someData : string, Symbol(someData, Decl(aliasUsageInFunctionExpression_backbone.ts, 0, 20)) } === tests/cases/compiler/aliasUsageInFunctionExpression_moduleA.ts === import Backbone = require("aliasUsageInFunctionExpression_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInFunctionExpression_moduleA.ts, 0, 0)) export class VisualizationModel extends Backbone.Model { ->VisualizationModel : VisualizationModel ->Backbone : typeof Backbone ->Model : Backbone.Model +>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(aliasUsageInFunctionExpression_moduleA.ts, 0, 69)) +>Backbone.Model : any, Symbol(Backbone.Model, Decl(aliasUsageInFunctionExpression_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInFunctionExpression_moduleA.ts, 0, 0)) +>Model : Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInFunctionExpression_backbone.ts, 0, 0)) // interesting stuff here } diff --git a/tests/baselines/reference/aliasUsageInGenericFunction.types b/tests/baselines/reference/aliasUsageInGenericFunction.types index 568e885f51f..b32eb87fb19 100644 --- a/tests/baselines/reference/aliasUsageInGenericFunction.types +++ b/tests/baselines/reference/aliasUsageInGenericFunction.types @@ -1,62 +1,65 @@ === tests/cases/compiler/aliasUsageInGenericFunction_main.ts === import Backbone = require("aliasUsageInGenericFunction_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInGenericFunction_main.ts, 0, 0)) import moduleA = require("aliasUsageInGenericFunction_moduleA"); ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInGenericFunction_main.ts, 0, 66)) interface IHasVisualizationModel { ->IHasVisualizationModel : IHasVisualizationModel +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 64)) VisualizationModel: typeof Backbone.Model; ->VisualizationModel : typeof Backbone.Model ->Backbone : typeof Backbone ->Model : typeof Backbone.Model +>VisualizationModel : typeof Backbone.Model, Symbol(VisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 2, 34)) +>Backbone.Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInGenericFunction_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInGenericFunction_main.ts, 0, 0)) +>Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInGenericFunction_backbone.ts, 0, 0)) } function foo(x: T) { ->foo : (x: T) => T ->T : T ->a : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel ->x : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(aliasUsageInGenericFunction_main.ts, 4, 1)) +>T : T, Symbol(T, Decl(aliasUsageInGenericFunction_main.ts, 5, 13)) +>a : IHasVisualizationModel, Symbol(a, Decl(aliasUsageInGenericFunction_main.ts, 5, 24)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 64)) +>x : T, Symbol(x, Decl(aliasUsageInGenericFunction_main.ts, 5, 54)) +>T : T, Symbol(T, Decl(aliasUsageInGenericFunction_main.ts, 5, 13)) return x; ->x : T +>x : T, Symbol(x, Decl(aliasUsageInGenericFunction_main.ts, 5, 54)) } var r = foo({ a: moduleA }); ->r : { a: typeof moduleA; } +>r : { a: typeof moduleA; }, Symbol(r, Decl(aliasUsageInGenericFunction_main.ts, 8, 3)) >foo({ a: moduleA }) : { a: typeof moduleA; } ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(aliasUsageInGenericFunction_main.ts, 4, 1)) >{ a: moduleA } : { a: typeof moduleA; } ->a : typeof moduleA ->moduleA : typeof moduleA +>a : typeof moduleA, Symbol(a, Decl(aliasUsageInGenericFunction_main.ts, 8, 13)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInGenericFunction_main.ts, 0, 66)) var r2 = foo({ a: null }); ->r2 : { a: IHasVisualizationModel; } +>r2 : { a: IHasVisualizationModel; }, Symbol(r2, Decl(aliasUsageInGenericFunction_main.ts, 9, 3)) >foo({ a: null }) : { a: IHasVisualizationModel; } ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(aliasUsageInGenericFunction_main.ts, 4, 1)) >{ a: null } : { a: IHasVisualizationModel; } ->a : IHasVisualizationModel +>a : IHasVisualizationModel, Symbol(a, Decl(aliasUsageInGenericFunction_main.ts, 9, 14)) >null : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 64)) +>null : null === tests/cases/compiler/aliasUsageInGenericFunction_backbone.ts === export class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(aliasUsageInGenericFunction_backbone.ts, 0, 0)) public someData: string; ->someData : string +>someData : string, Symbol(someData, Decl(aliasUsageInGenericFunction_backbone.ts, 0, 20)) } === tests/cases/compiler/aliasUsageInGenericFunction_moduleA.ts === import Backbone = require("aliasUsageInGenericFunction_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInGenericFunction_moduleA.ts, 0, 0)) export class VisualizationModel extends Backbone.Model { ->VisualizationModel : VisualizationModel ->Backbone : typeof Backbone ->Model : Backbone.Model +>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(aliasUsageInGenericFunction_moduleA.ts, 0, 66)) +>Backbone.Model : any, Symbol(Backbone.Model, Decl(aliasUsageInGenericFunction_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInGenericFunction_moduleA.ts, 0, 0)) +>Model : Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInGenericFunction_backbone.ts, 0, 0)) // interesting stuff here } diff --git a/tests/baselines/reference/aliasUsageInIndexerOfClass.types b/tests/baselines/reference/aliasUsageInIndexerOfClass.types index e968abe597f..af3a88e9762 100644 --- a/tests/baselines/reference/aliasUsageInIndexerOfClass.types +++ b/tests/baselines/reference/aliasUsageInIndexerOfClass.types @@ -1,56 +1,58 @@ === tests/cases/compiler/aliasUsageInIndexerOfClass_main.ts === import Backbone = require("aliasUsageInIndexerOfClass_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 0)) import moduleA = require("aliasUsageInIndexerOfClass_moduleA"); ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 65)) interface IHasVisualizationModel { ->IHasVisualizationModel : IHasVisualizationModel +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 63)) VisualizationModel: typeof Backbone.Model; ->VisualizationModel : typeof Backbone.Model ->Backbone : typeof Backbone ->Model : typeof Backbone.Model +>VisualizationModel : typeof Backbone.Model, Symbol(VisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 2, 34)) +>Backbone.Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInIndexerOfClass_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 0)) +>Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInIndexerOfClass_backbone.ts, 0, 0)) } class N { ->N : N +>N : N, Symbol(N, Decl(aliasUsageInIndexerOfClass_main.ts, 4, 1)) [idx: string]: IHasVisualizationModel ->idx : string ->IHasVisualizationModel : IHasVisualizationModel +>idx : string, Symbol(idx, Decl(aliasUsageInIndexerOfClass_main.ts, 6, 5)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 63)) x = moduleA; ->x : typeof moduleA ->moduleA : typeof moduleA +>x : typeof moduleA, Symbol(x, Decl(aliasUsageInIndexerOfClass_main.ts, 6, 41)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 65)) } class N2 { ->N2 : N2 +>N2 : N2, Symbol(N2, Decl(aliasUsageInIndexerOfClass_main.ts, 8, 1)) [idx: string]: typeof moduleA ->idx : string ->moduleA : typeof moduleA +>idx : string, Symbol(idx, Decl(aliasUsageInIndexerOfClass_main.ts, 10, 5)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 65)) x: IHasVisualizationModel; ->x : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInIndexerOfClass_main.ts, 10, 33)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 63)) } === tests/cases/compiler/aliasUsageInIndexerOfClass_backbone.ts === export class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(aliasUsageInIndexerOfClass_backbone.ts, 0, 0)) public someData: string; ->someData : string +>someData : string, Symbol(someData, Decl(aliasUsageInIndexerOfClass_backbone.ts, 0, 20)) } === tests/cases/compiler/aliasUsageInIndexerOfClass_moduleA.ts === import Backbone = require("aliasUsageInIndexerOfClass_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInIndexerOfClass_moduleA.ts, 0, 0)) export class VisualizationModel extends Backbone.Model { ->VisualizationModel : VisualizationModel ->Backbone : typeof Backbone ->Model : Backbone.Model +>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(aliasUsageInIndexerOfClass_moduleA.ts, 0, 65)) +>Backbone.Model : any, Symbol(Backbone.Model, Decl(aliasUsageInIndexerOfClass_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInIndexerOfClass_moduleA.ts, 0, 0)) +>Model : Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInIndexerOfClass_backbone.ts, 0, 0)) // interesting stuff here } diff --git a/tests/baselines/reference/aliasUsageInObjectLiteral.types b/tests/baselines/reference/aliasUsageInObjectLiteral.types index 2e631a41cdf..8d5eed3ca7b 100644 --- a/tests/baselines/reference/aliasUsageInObjectLiteral.types +++ b/tests/baselines/reference/aliasUsageInObjectLiteral.types @@ -1,61 +1,63 @@ === tests/cases/compiler/aliasUsageInObjectLiteral_main.ts === import Backbone = require("aliasUsageInObjectLiteral_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInObjectLiteral_main.ts, 0, 0)) import moduleA = require("aliasUsageInObjectLiteral_moduleA"); ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64)) interface IHasVisualizationModel { ->IHasVisualizationModel : IHasVisualizationModel +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 62)) VisualizationModel: typeof Backbone.Model; ->VisualizationModel : typeof Backbone.Model ->Backbone : typeof Backbone ->Model : typeof Backbone.Model +>VisualizationModel : typeof Backbone.Model, Symbol(VisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 2, 34)) +>Backbone.Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInObjectLiteral_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInObjectLiteral_main.ts, 0, 0)) +>Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInObjectLiteral_backbone.ts, 0, 0)) } var a: { x: typeof moduleA } = { x: moduleA }; ->a : { x: typeof moduleA; } ->x : typeof moduleA ->moduleA : typeof moduleA +>a : { x: typeof moduleA; }, Symbol(a, Decl(aliasUsageInObjectLiteral_main.ts, 5, 3)) +>x : typeof moduleA, Symbol(x, Decl(aliasUsageInObjectLiteral_main.ts, 5, 8)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64)) >{ x: moduleA } : { x: typeof moduleA; } ->x : typeof moduleA ->moduleA : typeof moduleA +>x : typeof moduleA, Symbol(x, Decl(aliasUsageInObjectLiteral_main.ts, 5, 32)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64)) var b: { x: IHasVisualizationModel } = { x: moduleA }; ->b : { x: IHasVisualizationModel; } ->x : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>b : { x: IHasVisualizationModel; }, Symbol(b, Decl(aliasUsageInObjectLiteral_main.ts, 6, 3)) +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInObjectLiteral_main.ts, 6, 8)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 62)) >{ x: moduleA } : { x: typeof moduleA; } ->x : typeof moduleA ->moduleA : typeof moduleA +>x : typeof moduleA, Symbol(x, Decl(aliasUsageInObjectLiteral_main.ts, 6, 40)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64)) var c: { y: { z: IHasVisualizationModel } } = { y: { z: moduleA } }; ->c : { y: { z: IHasVisualizationModel; }; } ->y : { z: IHasVisualizationModel; } ->z : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>c : { y: { z: IHasVisualizationModel; }; }, Symbol(c, Decl(aliasUsageInObjectLiteral_main.ts, 7, 3)) +>y : { z: IHasVisualizationModel; }, Symbol(y, Decl(aliasUsageInObjectLiteral_main.ts, 7, 8)) +>z : IHasVisualizationModel, Symbol(z, Decl(aliasUsageInObjectLiteral_main.ts, 7, 13)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 62)) >{ y: { z: moduleA } } : { y: { z: typeof moduleA; }; } ->y : { z: typeof moduleA; } +>y : { z: typeof moduleA; }, Symbol(y, Decl(aliasUsageInObjectLiteral_main.ts, 7, 47)) >{ z: moduleA } : { z: typeof moduleA; } ->z : typeof moduleA ->moduleA : typeof moduleA +>z : typeof moduleA, Symbol(z, Decl(aliasUsageInObjectLiteral_main.ts, 7, 52)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64)) === tests/cases/compiler/aliasUsageInObjectLiteral_backbone.ts === export class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(aliasUsageInObjectLiteral_backbone.ts, 0, 0)) public someData: string; ->someData : string +>someData : string, Symbol(someData, Decl(aliasUsageInObjectLiteral_backbone.ts, 0, 20)) } === tests/cases/compiler/aliasUsageInObjectLiteral_moduleA.ts === import Backbone = require("aliasUsageInObjectLiteral_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInObjectLiteral_moduleA.ts, 0, 0)) export class VisualizationModel extends Backbone.Model { ->VisualizationModel : VisualizationModel ->Backbone : typeof Backbone ->Model : Backbone.Model +>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(aliasUsageInObjectLiteral_moduleA.ts, 0, 64)) +>Backbone.Model : any, Symbol(Backbone.Model, Decl(aliasUsageInObjectLiteral_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInObjectLiteral_moduleA.ts, 0, 0)) +>Model : Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInObjectLiteral_backbone.ts, 0, 0)) // interesting stuff here } diff --git a/tests/baselines/reference/aliasUsageInOrExpression.types b/tests/baselines/reference/aliasUsageInOrExpression.types index 1a4dae90356..dace1e1f7fa 100644 --- a/tests/baselines/reference/aliasUsageInOrExpression.types +++ b/tests/baselines/reference/aliasUsageInOrExpression.types @@ -1,82 +1,87 @@ === tests/cases/compiler/aliasUsageInOrExpression_main.ts === import Backbone = require("aliasUsageInOrExpression_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInOrExpression_main.ts, 0, 0)) import moduleA = require("aliasUsageInOrExpression_moduleA"); ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63)) interface IHasVisualizationModel { ->IHasVisualizationModel : IHasVisualizationModel +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) VisualizationModel: typeof Backbone.Model; ->VisualizationModel : typeof Backbone.Model ->Backbone : typeof Backbone ->Model : typeof Backbone.Model +>VisualizationModel : typeof Backbone.Model, Symbol(VisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 2, 34)) +>Backbone.Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInOrExpression_main.ts, 0, 0)) +>Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0)) } var i: IHasVisualizationModel; ->i : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>i : IHasVisualizationModel, Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) var d1 = i || moduleA; ->d1 : IHasVisualizationModel +>d1 : IHasVisualizationModel, Symbol(d1, Decl(aliasUsageInOrExpression_main.ts, 6, 3)) >i || moduleA : IHasVisualizationModel ->i : IHasVisualizationModel ->moduleA : typeof moduleA +>i : IHasVisualizationModel, Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63)) var d2: IHasVisualizationModel = i || moduleA; ->d2 : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>d2 : IHasVisualizationModel, Symbol(d2, Decl(aliasUsageInOrExpression_main.ts, 7, 3), Decl(aliasUsageInOrExpression_main.ts, 8, 3)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) >i || moduleA : IHasVisualizationModel ->i : IHasVisualizationModel ->moduleA : typeof moduleA +>i : IHasVisualizationModel, Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63)) var d2: IHasVisualizationModel = moduleA || i; ->d2 : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>d2 : IHasVisualizationModel, Symbol(d2, Decl(aliasUsageInOrExpression_main.ts, 7, 3), Decl(aliasUsageInOrExpression_main.ts, 8, 3)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) >moduleA || i : IHasVisualizationModel ->moduleA : typeof moduleA ->i : IHasVisualizationModel +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63)) +>i : IHasVisualizationModel, Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3)) var e: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null || { x: moduleA }; ->e : { x: IHasVisualizationModel; } ->x : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>e : { x: IHasVisualizationModel; }, Symbol(e, Decl(aliasUsageInOrExpression_main.ts, 9, 3)) +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 9, 8)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) ><{ x: IHasVisualizationModel }>null || { x: moduleA } : { x: IHasVisualizationModel; } ><{ x: IHasVisualizationModel }>null : { x: IHasVisualizationModel; } ->x : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 9, 41)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) +>null : null >{ x: moduleA } : { x: typeof moduleA; } ->x : typeof moduleA ->moduleA : typeof moduleA +>x : typeof moduleA, Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 9, 79)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63)) var f: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null ? { x: moduleA } : null; ->f : { x: IHasVisualizationModel; } ->x : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>f : { x: IHasVisualizationModel; }, Symbol(f, Decl(aliasUsageInOrExpression_main.ts, 10, 3)) +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 10, 8)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) ><{ x: IHasVisualizationModel }>null ? { x: moduleA } : null : { x: typeof moduleA; } ><{ x: IHasVisualizationModel }>null : { x: IHasVisualizationModel; } ->x : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 10, 41)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) +>null : null >{ x: moduleA } : { x: typeof moduleA; } ->x : typeof moduleA ->moduleA : typeof moduleA +>x : typeof moduleA, Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 10, 78)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63)) +>null : null === tests/cases/compiler/aliasUsageInOrExpression_backbone.ts === export class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0)) public someData: string; ->someData : string +>someData : string, Symbol(someData, Decl(aliasUsageInOrExpression_backbone.ts, 0, 20)) } === tests/cases/compiler/aliasUsageInOrExpression_moduleA.ts === import Backbone = require("aliasUsageInOrExpression_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 0)) export class VisualizationModel extends Backbone.Model { ->VisualizationModel : VisualizationModel ->Backbone : typeof Backbone ->Model : Backbone.Model +>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 63)) +>Backbone.Model : any, Symbol(Backbone.Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 0)) +>Model : Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0)) // interesting stuff here } diff --git a/tests/baselines/reference/aliasUsageInOrExpression.types.pull b/tests/baselines/reference/aliasUsageInOrExpression.types.pull index 3b138d1404a..37fc6d54f33 100644 --- a/tests/baselines/reference/aliasUsageInOrExpression.types.pull +++ b/tests/baselines/reference/aliasUsageInOrExpression.types.pull @@ -1,82 +1,87 @@ === tests/cases/compiler/aliasUsageInOrExpression_main.ts === import Backbone = require("aliasUsageInOrExpression_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInOrExpression_main.ts, 0, 0)) import moduleA = require("aliasUsageInOrExpression_moduleA"); ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63)) interface IHasVisualizationModel { ->IHasVisualizationModel : IHasVisualizationModel +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) VisualizationModel: typeof Backbone.Model; ->VisualizationModel : typeof Backbone.Model ->Backbone : typeof Backbone ->Model : typeof Backbone.Model +>VisualizationModel : typeof Backbone.Model, Symbol(VisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 2, 34)) +>Backbone.Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInOrExpression_main.ts, 0, 0)) +>Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0)) } var i: IHasVisualizationModel; ->i : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>i : IHasVisualizationModel, Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) var d1 = i || moduleA; ->d1 : typeof moduleA +>d1 : typeof moduleA, Symbol(d1, Decl(aliasUsageInOrExpression_main.ts, 6, 3)) >i || moduleA : typeof moduleA ->i : IHasVisualizationModel ->moduleA : typeof moduleA +>i : IHasVisualizationModel, Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63)) var d2: IHasVisualizationModel = i || moduleA; ->d2 : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>d2 : IHasVisualizationModel, Symbol(d2, Decl(aliasUsageInOrExpression_main.ts, 7, 3), Decl(aliasUsageInOrExpression_main.ts, 8, 3)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) >i || moduleA : typeof moduleA ->i : IHasVisualizationModel ->moduleA : typeof moduleA +>i : IHasVisualizationModel, Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63)) var d2: IHasVisualizationModel = moduleA || i; ->d2 : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>d2 : IHasVisualizationModel, Symbol(d2, Decl(aliasUsageInOrExpression_main.ts, 7, 3), Decl(aliasUsageInOrExpression_main.ts, 8, 3)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) >moduleA || i : typeof moduleA ->moduleA : typeof moduleA ->i : IHasVisualizationModel +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63)) +>i : IHasVisualizationModel, Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3)) var e: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null || { x: moduleA }; ->e : { x: IHasVisualizationModel; } ->x : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>e : { x: IHasVisualizationModel; }, Symbol(e, Decl(aliasUsageInOrExpression_main.ts, 9, 3)) +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 9, 8)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) ><{ x: IHasVisualizationModel }>null || { x: moduleA } : { x: IHasVisualizationModel; } ><{ x: IHasVisualizationModel }>null : { x: IHasVisualizationModel; } ->x : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 9, 41)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) +>null : null >{ x: moduleA } : { x: typeof moduleA; } ->x : typeof moduleA ->moduleA : typeof moduleA +>x : typeof moduleA, Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 9, 79)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63)) var f: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null ? { x: moduleA } : null; ->f : { x: IHasVisualizationModel; } ->x : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>f : { x: IHasVisualizationModel; }, Symbol(f, Decl(aliasUsageInOrExpression_main.ts, 10, 3)) +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 10, 8)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) ><{ x: IHasVisualizationModel }>null ? { x: moduleA } : null : { x: typeof moduleA; } ><{ x: IHasVisualizationModel }>null : { x: IHasVisualizationModel; } ->x : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>x : IHasVisualizationModel, Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 10, 41)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61)) +>null : null >{ x: moduleA } : { x: typeof moduleA; } ->x : typeof moduleA ->moduleA : typeof moduleA +>x : typeof moduleA, Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 10, 78)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63)) +>null : null === tests/cases/compiler/aliasUsageInOrExpression_backbone.ts === export class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0)) public someData: string; ->someData : string +>someData : string, Symbol(someData, Decl(aliasUsageInOrExpression_backbone.ts, 0, 20)) } === tests/cases/compiler/aliasUsageInOrExpression_moduleA.ts === import Backbone = require("aliasUsageInOrExpression_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 0)) export class VisualizationModel extends Backbone.Model { ->VisualizationModel : VisualizationModel ->Backbone : typeof Backbone ->Model : Backbone.Model +>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 63)) +>Backbone.Model : any, Symbol(Backbone.Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 0)) +>Model : Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0)) // interesting stuff here } diff --git a/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.types b/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.types index 72f0aaf9e20..aef12f4fb23 100644 --- a/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.types +++ b/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.types @@ -1,52 +1,54 @@ === tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_main.ts === import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 0)) import moduleA = require("aliasUsageInTypeArgumentOfExtendsClause_moduleA"); ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 78)) interface IHasVisualizationModel { ->IHasVisualizationModel : IHasVisualizationModel +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 76)) VisualizationModel: typeof Backbone.Model; ->VisualizationModel : typeof Backbone.Model ->Backbone : typeof Backbone ->Model : typeof Backbone.Model +>VisualizationModel : typeof Backbone.Model, Symbol(VisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 2, 34)) +>Backbone.Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInTypeArgumentOfExtendsClause_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 0)) +>Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInTypeArgumentOfExtendsClause_backbone.ts, 0, 0)) } class C { ->C : C ->T : T ->IHasVisualizationModel : IHasVisualizationModel +>C : C, Symbol(C, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 4, 1)) +>T : T, Symbol(T, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 5, 8)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 76)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 5, 43)) +>T : T, Symbol(T, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 5, 8)) } class D extends C { ->D : D ->C : C ->IHasVisualizationModel : IHasVisualizationModel +>D : D, Symbol(D, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 7, 1)) +>C : C, Symbol(C, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 4, 1)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 76)) x = moduleA; ->x : typeof moduleA ->moduleA : typeof moduleA +>x : typeof moduleA, Symbol(x, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 8, 43)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 78)) } === tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_backbone.ts === export class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(aliasUsageInTypeArgumentOfExtendsClause_backbone.ts, 0, 0)) public someData: string; ->someData : string +>someData : string, Symbol(someData, Decl(aliasUsageInTypeArgumentOfExtendsClause_backbone.ts, 0, 20)) } === tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts === import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts, 0, 0)) export class VisualizationModel extends Backbone.Model { ->VisualizationModel : VisualizationModel ->Backbone : typeof Backbone ->Model : Backbone.Model +>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts, 0, 78)) +>Backbone.Model : any, Symbol(Backbone.Model, Decl(aliasUsageInTypeArgumentOfExtendsClause_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts, 0, 0)) +>Model : Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInTypeArgumentOfExtendsClause_backbone.ts, 0, 0)) // interesting stuff here } diff --git a/tests/baselines/reference/aliasUsageInVarAssignment.types b/tests/baselines/reference/aliasUsageInVarAssignment.types index 6b1c097ad97..b31cd522978 100644 --- a/tests/baselines/reference/aliasUsageInVarAssignment.types +++ b/tests/baselines/reference/aliasUsageInVarAssignment.types @@ -1,43 +1,45 @@ === tests/cases/compiler/aliasUsageInVarAssignment_main.ts === import Backbone = require("aliasUsageInVarAssignment_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInVarAssignment_main.ts, 0, 0)) import moduleA = require("aliasUsageInVarAssignment_moduleA"); ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInVarAssignment_main.ts, 0, 64)) interface IHasVisualizationModel { ->IHasVisualizationModel : IHasVisualizationModel +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 1, 62)) VisualizationModel: typeof Backbone.Model; ->VisualizationModel : typeof Backbone.Model ->Backbone : typeof Backbone ->Model : typeof Backbone.Model +>VisualizationModel : typeof Backbone.Model, Symbol(VisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 2, 34)) +>Backbone.Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInVarAssignment_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInVarAssignment_main.ts, 0, 0)) +>Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInVarAssignment_backbone.ts, 0, 0)) } var i: IHasVisualizationModel; ->i : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel +>i : IHasVisualizationModel, Symbol(i, Decl(aliasUsageInVarAssignment_main.ts, 5, 3)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 1, 62)) var m: typeof moduleA = i; ->m : typeof moduleA ->moduleA : typeof moduleA ->i : IHasVisualizationModel +>m : typeof moduleA, Symbol(m, Decl(aliasUsageInVarAssignment_main.ts, 6, 3)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(aliasUsageInVarAssignment_main.ts, 0, 64)) +>i : IHasVisualizationModel, Symbol(i, Decl(aliasUsageInVarAssignment_main.ts, 5, 3)) === tests/cases/compiler/aliasUsageInVarAssignment_backbone.ts === export class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(aliasUsageInVarAssignment_backbone.ts, 0, 0)) public someData: string; ->someData : string +>someData : string, Symbol(someData, Decl(aliasUsageInVarAssignment_backbone.ts, 0, 20)) } === tests/cases/compiler/aliasUsageInVarAssignment_moduleA.ts === import Backbone = require("aliasUsageInVarAssignment_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInVarAssignment_moduleA.ts, 0, 0)) export class VisualizationModel extends Backbone.Model { ->VisualizationModel : VisualizationModel ->Backbone : typeof Backbone ->Model : Backbone.Model +>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(aliasUsageInVarAssignment_moduleA.ts, 0, 64)) +>Backbone.Model : any, Symbol(Backbone.Model, Decl(aliasUsageInVarAssignment_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(aliasUsageInVarAssignment_moduleA.ts, 0, 0)) +>Model : Backbone.Model, Symbol(Backbone.Model, Decl(aliasUsageInVarAssignment_backbone.ts, 0, 0)) // interesting stuff here } diff --git a/tests/baselines/reference/aliasUsedAsNameValue.types b/tests/baselines/reference/aliasUsedAsNameValue.types index b8d92f28496..fc006f03a1b 100644 --- a/tests/baselines/reference/aliasUsedAsNameValue.types +++ b/tests/baselines/reference/aliasUsedAsNameValue.types @@ -2,30 +2,31 @@ /// /// import mod = require("aliasUsedAsNameValue_0"); ->mod : typeof mod +>mod : typeof mod, Symbol(mod, Decl(aliasUsedAsNameValue_2.ts, 0, 0)) import b = require("aliasUsedAsNameValue_1"); ->b : typeof b +>b : typeof b, Symbol(b, Decl(aliasUsedAsNameValue_2.ts, 2, 47)) export var a = function () { ->a : () => void +>a : () => void, Symbol(a, Decl(aliasUsedAsNameValue_2.ts, 5, 10)) >function () { //var x = mod.id; // TODO needed hack that mod is loaded b.b(mod);} : () => void //var x = mod.id; // TODO needed hack that mod is loaded b.b(mod); >b.b(mod) : any ->b.b : (a: any) => any ->b : typeof b ->b : (a: any) => any ->mod : typeof mod +>b.b : (a: any) => any, Symbol(b.b, Decl(aliasUsedAsNameValue_1.ts, 0, 0)) +>b : typeof b, Symbol(b, Decl(aliasUsedAsNameValue_2.ts, 2, 47)) +>b : (a: any) => any, Symbol(b.b, Decl(aliasUsedAsNameValue_1.ts, 0, 0)) +>mod : typeof mod, Symbol(mod, Decl(aliasUsedAsNameValue_2.ts, 0, 0)) } === tests/cases/compiler/aliasUsedAsNameValue_0.ts === export var id: number; ->id : number +>id : number, Symbol(id, Decl(aliasUsedAsNameValue_0.ts, 0, 10)) === tests/cases/compiler/aliasUsedAsNameValue_1.ts === export function b(a: any): any { return null; } ->b : (a: any) => any ->a : any +>b : (a: any) => any, Symbol(b, Decl(aliasUsedAsNameValue_1.ts, 0, 0)) +>a : any, Symbol(a, Decl(aliasUsedAsNameValue_1.ts, 0, 18)) +>null : null diff --git a/tests/baselines/reference/ambientClassDeclarationWithExtends.types b/tests/baselines/reference/ambientClassDeclarationWithExtends.types index 7609856882b..b8d3df42f2b 100644 --- a/tests/baselines/reference/ambientClassDeclarationWithExtends.types +++ b/tests/baselines/reference/ambientClassDeclarationWithExtends.types @@ -1,8 +1,8 @@ === tests/cases/compiler/ambientClassDeclarationWithExtends.ts === declare class A { } ->A : A +>A : A, Symbol(A, Decl(ambientClassDeclarationWithExtends.ts, 0, 0)) declare class B extends A { } ->B : B ->A : A +>B : B, Symbol(B, Decl(ambientClassDeclarationWithExtends.ts, 0, 19)) +>A : A, Symbol(A, Decl(ambientClassDeclarationWithExtends.ts, 0, 0)) diff --git a/tests/baselines/reference/ambientDeclarations.types b/tests/baselines/reference/ambientDeclarations.types index 38814405521..0bc407c7ef4 100644 --- a/tests/baselines/reference/ambientDeclarations.types +++ b/tests/baselines/reference/ambientDeclarations.types @@ -1,168 +1,170 @@ === tests/cases/conformance/ambient/ambientDeclarations.ts === // Ambient variable without type annotation declare var n; ->n : any +>n : any, Symbol(n, Decl(ambientDeclarations.ts, 1, 11)) // Ambient variable with type annotation declare var m: string; ->m : string +>m : string, Symbol(m, Decl(ambientDeclarations.ts, 4, 11)) // Ambient function with no type annotations declare function fn1(); ->fn1 : () => any +>fn1 : () => any, Symbol(fn1, Decl(ambientDeclarations.ts, 4, 22)) // Ambient function with type annotations declare function fn2(n: string): number; ->fn2 : (n: string) => number ->n : string +>fn2 : (n: string) => number, Symbol(fn2, Decl(ambientDeclarations.ts, 7, 23)) +>n : string, Symbol(n, Decl(ambientDeclarations.ts, 10, 21)) // Ambient function with valid overloads declare function fn3(n: string): number; ->fn3 : (n: string) => number ->n : string +>fn3 : (n: string) => number, Symbol(fn3, Decl(ambientDeclarations.ts, 10, 40)) +>n : string, Symbol(n, Decl(ambientDeclarations.ts, 13, 21)) declare function fn4(n: number, y: number): string; ->fn4 : (n: number, y: number) => string ->n : number ->y : number +>fn4 : (n: number, y: number) => string, Symbol(fn4, Decl(ambientDeclarations.ts, 13, 40)) +>n : number, Symbol(n, Decl(ambientDeclarations.ts, 14, 21)) +>y : number, Symbol(y, Decl(ambientDeclarations.ts, 14, 31)) // Ambient function with optional parameters declare function fn5(x, y?); ->fn5 : (x: any, y?: any) => any ->x : any ->y : any +>fn5 : (x: any, y?: any) => any, Symbol(fn5, Decl(ambientDeclarations.ts, 14, 51)) +>x : any, Symbol(x, Decl(ambientDeclarations.ts, 17, 21)) +>y : any, Symbol(y, Decl(ambientDeclarations.ts, 17, 23)) declare function fn6(e?); ->fn6 : (e?: any) => any ->e : any +>fn6 : (e?: any) => any, Symbol(fn6, Decl(ambientDeclarations.ts, 17, 28)) +>e : any, Symbol(e, Decl(ambientDeclarations.ts, 18, 21)) declare function fn7(x, y?, ...z); ->fn7 : (x: any, y?: any, ...z: any[]) => any ->x : any ->y : any ->z : any[] +>fn7 : (x: any, y?: any, ...z: any[]) => any, Symbol(fn7, Decl(ambientDeclarations.ts, 18, 25)) +>x : any, Symbol(x, Decl(ambientDeclarations.ts, 19, 21)) +>y : any, Symbol(y, Decl(ambientDeclarations.ts, 19, 23)) +>z : any[], Symbol(z, Decl(ambientDeclarations.ts, 19, 27)) declare function fn8(y?, ...z: number[]); ->fn8 : (y?: any, ...z: number[]) => any ->y : any ->z : number[] +>fn8 : (y?: any, ...z: number[]) => any, Symbol(fn8, Decl(ambientDeclarations.ts, 19, 34)) +>y : any, Symbol(y, Decl(ambientDeclarations.ts, 20, 21)) +>z : number[], Symbol(z, Decl(ambientDeclarations.ts, 20, 24)) declare function fn9(...q: {}[]); ->fn9 : (...q: {}[]) => any ->q : {}[] +>fn9 : (...q: {}[]) => any, Symbol(fn9, Decl(ambientDeclarations.ts, 20, 41)) +>q : {}[], Symbol(q, Decl(ambientDeclarations.ts, 21, 21)) declare function fn10(...q: T[]); ->fn10 : (...q: T[]) => any ->T : T ->q : T[] ->T : T +>fn10 : (...q: T[]) => any, Symbol(fn10, Decl(ambientDeclarations.ts, 21, 33)) +>T : T, Symbol(T, Decl(ambientDeclarations.ts, 22, 22)) +>q : T[], Symbol(q, Decl(ambientDeclarations.ts, 22, 25)) +>T : T, Symbol(T, Decl(ambientDeclarations.ts, 22, 22)) // Ambient class declare class cls { ->cls : cls +>cls : cls, Symbol(cls, Decl(ambientDeclarations.ts, 22, 36)) constructor(); method(): cls; ->method : () => cls ->cls : cls +>method : () => cls, Symbol(method, Decl(ambientDeclarations.ts, 26, 18)) +>cls : cls, Symbol(cls, Decl(ambientDeclarations.ts, 22, 36)) static static(p): number; ->static : (p: any) => number ->p : any +>static : (p: any) => number, Symbol(cls.static, Decl(ambientDeclarations.ts, 27, 18)) +>p : any, Symbol(p, Decl(ambientDeclarations.ts, 28, 18)) static q; ->q : any +>q : any, Symbol(cls.q, Decl(ambientDeclarations.ts, 28, 29)) private fn(); ->fn : () => any +>fn : () => any, Symbol(fn, Decl(ambientDeclarations.ts, 29, 13)) private static fns(); ->fns : () => any +>fns : () => any, Symbol(cls.fns, Decl(ambientDeclarations.ts, 30, 17)) } // Ambient enum declare enum E1 { ->E1 : E1 +>E1 : E1, Symbol(E1, Decl(ambientDeclarations.ts, 32, 1)) x, ->x : E1 +>x : E1, Symbol(E1.x, Decl(ambientDeclarations.ts, 35, 17)) y, ->y : E1 +>y : E1, Symbol(E1.y, Decl(ambientDeclarations.ts, 36, 6)) z ->z : E1 +>z : E1, Symbol(E1.z, Decl(ambientDeclarations.ts, 37, 6)) } // Ambient enum with integer literal initializer declare enum E2 { ->E2 : E2 +>E2 : E2, Symbol(E2, Decl(ambientDeclarations.ts, 39, 1)) q, ->q : E2 +>q : E2, Symbol(E2.q, Decl(ambientDeclarations.ts, 42, 17)) a = 1, ->a : E2 +>a : E2, Symbol(E2.a, Decl(ambientDeclarations.ts, 43, 6)) +>1 : number b, ->b : E2 +>b : E2, Symbol(E2.b, Decl(ambientDeclarations.ts, 44, 10)) c = 2, ->c : E2 +>c : E2, Symbol(E2.c, Decl(ambientDeclarations.ts, 45, 6)) +>2 : number d ->d : E2 +>d : E2, Symbol(E2.d, Decl(ambientDeclarations.ts, 46, 10)) } // Ambient enum members are always exported with or without export keyword declare enum E3 { ->E3 : E3 +>E3 : E3, Symbol(E3, Decl(ambientDeclarations.ts, 48, 1), Decl(ambientDeclarations.ts, 53, 1)) A ->A : E3 +>A : E3, Symbol(E3.A, Decl(ambientDeclarations.ts, 51, 17)) } declare module E3 { ->E3 : typeof E3 +>E3 : typeof E3, Symbol(E3, Decl(ambientDeclarations.ts, 48, 1), Decl(ambientDeclarations.ts, 53, 1)) var B; ->B : any +>B : any, Symbol(B, Decl(ambientDeclarations.ts, 55, 7)) } var x = E3.B; ->x : any ->E3.B : any ->E3 : typeof E3 ->B : any +>x : any, Symbol(x, Decl(ambientDeclarations.ts, 57, 3)) +>E3.B : any, Symbol(E3.B, Decl(ambientDeclarations.ts, 55, 7)) +>E3 : typeof E3, Symbol(E3, Decl(ambientDeclarations.ts, 48, 1), Decl(ambientDeclarations.ts, 53, 1)) +>B : any, Symbol(E3.B, Decl(ambientDeclarations.ts, 55, 7)) // Ambient module declare module M1 { ->M1 : typeof M1 +>M1 : typeof M1, Symbol(M1, Decl(ambientDeclarations.ts, 57, 13)) var x; ->x : any +>x : any, Symbol(x, Decl(ambientDeclarations.ts, 61, 7)) function fn(): number; ->fn : () => number +>fn : () => number, Symbol(fn, Decl(ambientDeclarations.ts, 61, 10)) } // Ambient module members are always exported with or without export keyword var p = M1.x; ->p : any ->M1.x : any ->M1 : typeof M1 ->x : any +>p : any, Symbol(p, Decl(ambientDeclarations.ts, 66, 3)) +>M1.x : any, Symbol(M1.x, Decl(ambientDeclarations.ts, 61, 7)) +>M1 : typeof M1, Symbol(M1, Decl(ambientDeclarations.ts, 57, 13)) +>x : any, Symbol(M1.x, Decl(ambientDeclarations.ts, 61, 7)) var q = M1.fn(); ->q : number +>q : number, Symbol(q, Decl(ambientDeclarations.ts, 67, 3)) >M1.fn() : number ->M1.fn : () => number ->M1 : typeof M1 ->fn : () => number +>M1.fn : () => number, Symbol(M1.fn, Decl(ambientDeclarations.ts, 61, 10)) +>M1 : typeof M1, Symbol(M1, Decl(ambientDeclarations.ts, 57, 13)) +>fn : () => number, Symbol(M1.fn, Decl(ambientDeclarations.ts, 61, 10)) // Ambient external module in the global module // Ambient external module with a string literal name that is a top level external module name declare module 'external1' { var q; ->q : any +>q : any, Symbol(q, Decl(ambientDeclarations.ts, 72, 7)) } diff --git a/tests/baselines/reference/ambientEnumElementInitializer1.types b/tests/baselines/reference/ambientEnumElementInitializer1.types index da80015cbd5..7239ccac246 100644 --- a/tests/baselines/reference/ambientEnumElementInitializer1.types +++ b/tests/baselines/reference/ambientEnumElementInitializer1.types @@ -1,7 +1,8 @@ === tests/cases/compiler/ambientEnumElementInitializer1.ts === declare enum E { ->E : E +>E : E, Symbol(E, Decl(ambientEnumElementInitializer1.ts, 0, 0)) e = 3 ->e : E +>e : E, Symbol(E.e, Decl(ambientEnumElementInitializer1.ts, 0, 16)) +>3 : number } diff --git a/tests/baselines/reference/ambientEnumElementInitializer2.types b/tests/baselines/reference/ambientEnumElementInitializer2.types index cb1414630b9..61ef74cb6bf 100644 --- a/tests/baselines/reference/ambientEnumElementInitializer2.types +++ b/tests/baselines/reference/ambientEnumElementInitializer2.types @@ -1,8 +1,9 @@ === tests/cases/compiler/ambientEnumElementInitializer2.ts === declare enum E { ->E : E +>E : E, Symbol(E, Decl(ambientEnumElementInitializer2.ts, 0, 0)) e = -3 // Negative ->e : E +>e : E, Symbol(E.e, Decl(ambientEnumElementInitializer2.ts, 0, 16)) >-3 : number +>3 : number } diff --git a/tests/baselines/reference/ambientEnumElementInitializer4.types b/tests/baselines/reference/ambientEnumElementInitializer4.types index 566c03103a1..ea7664ae6c6 100644 --- a/tests/baselines/reference/ambientEnumElementInitializer4.types +++ b/tests/baselines/reference/ambientEnumElementInitializer4.types @@ -1,7 +1,8 @@ === tests/cases/compiler/ambientEnumElementInitializer4.ts === declare enum E { ->E : E +>E : E, Symbol(E, Decl(ambientEnumElementInitializer4.ts, 0, 0)) e = 0xA ->e : E +>e : E, Symbol(E.e, Decl(ambientEnumElementInitializer4.ts, 0, 16)) +>0xA : number } diff --git a/tests/baselines/reference/ambientEnumElementInitializer5.types b/tests/baselines/reference/ambientEnumElementInitializer5.types index 3b6198f0e24..cb6fdc29fc1 100644 --- a/tests/baselines/reference/ambientEnumElementInitializer5.types +++ b/tests/baselines/reference/ambientEnumElementInitializer5.types @@ -1,8 +1,9 @@ === tests/cases/compiler/ambientEnumElementInitializer5.ts === declare enum E { ->E : E +>E : E, Symbol(E, Decl(ambientEnumElementInitializer5.ts, 0, 0)) e = -0xA ->e : E +>e : E, Symbol(E.e, Decl(ambientEnumElementInitializer5.ts, 0, 16)) >-0xA : number +>0xA : number } diff --git a/tests/baselines/reference/ambientEnumElementInitializer6.types b/tests/baselines/reference/ambientEnumElementInitializer6.types index 3a38fd6912d..1756629e4f2 100644 --- a/tests/baselines/reference/ambientEnumElementInitializer6.types +++ b/tests/baselines/reference/ambientEnumElementInitializer6.types @@ -1,11 +1,12 @@ === tests/cases/compiler/ambientEnumElementInitializer6.ts === declare module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(ambientEnumElementInitializer6.ts, 0, 0)) enum E { ->E : E +>E : E, Symbol(E, Decl(ambientEnumElementInitializer6.ts, 0, 18)) e = 3 ->e : E +>e : E, Symbol(E.e, Decl(ambientEnumElementInitializer6.ts, 1, 12)) +>3 : number } } diff --git a/tests/baselines/reference/ambientExternalModuleMerging.types b/tests/baselines/reference/ambientExternalModuleMerging.types index 1c1be0fd256..716cc64f248 100644 --- a/tests/baselines/reference/ambientExternalModuleMerging.types +++ b/tests/baselines/reference/ambientExternalModuleMerging.types @@ -1,28 +1,28 @@ === tests/cases/conformance/ambient/ambientExternalModuleMerging_use.ts === import M = require("M"); ->M : typeof M +>M : typeof M, Symbol(M, Decl(ambientExternalModuleMerging_use.ts, 0, 0)) // Should be strings var x = M.x; ->x : string ->M.x : string ->M : typeof M ->x : string +>x : string, Symbol(x, Decl(ambientExternalModuleMerging_use.ts, 2, 3)) +>M.x : string, Symbol(M.x, Decl(ambientExternalModuleMerging_declare.ts, 1, 14)) +>M : typeof M, Symbol(M, Decl(ambientExternalModuleMerging_use.ts, 0, 0)) +>x : string, Symbol(M.x, Decl(ambientExternalModuleMerging_declare.ts, 1, 14)) var y = M.y; ->y : string ->M.y : string ->M : typeof M ->y : string +>y : string, Symbol(y, Decl(ambientExternalModuleMerging_use.ts, 3, 3)) +>M.y : string, Symbol(M.y, Decl(ambientExternalModuleMerging_declare.ts, 6, 14)) +>M : typeof M, Symbol(M, Decl(ambientExternalModuleMerging_use.ts, 0, 0)) +>y : string, Symbol(M.y, Decl(ambientExternalModuleMerging_declare.ts, 6, 14)) === tests/cases/conformance/ambient/ambientExternalModuleMerging_declare.ts === declare module "M" { export var x: string; ->x : string +>x : string, Symbol(x, Decl(ambientExternalModuleMerging_declare.ts, 1, 14)) } // Merge declare module "M" { export var y: string; ->y : string +>y : string, Symbol(y, Decl(ambientExternalModuleMerging_declare.ts, 6, 14)) } diff --git a/tests/baselines/reference/ambientExternalModuleReopen.types b/tests/baselines/reference/ambientExternalModuleReopen.types index 842d634344c..fdc40f4cd4b 100644 --- a/tests/baselines/reference/ambientExternalModuleReopen.types +++ b/tests/baselines/reference/ambientExternalModuleReopen.types @@ -1,9 +1,9 @@ === tests/cases/compiler/ambientExternalModuleReopen.ts === declare module "fs" { var x: string; ->x : string +>x : string, Symbol(x, Decl(ambientExternalModuleReopen.ts, 1, 7)) } declare module 'fs' { var y: number; ->y : number +>y : number, Symbol(y, Decl(ambientExternalModuleReopen.ts, 4, 7)) } diff --git a/tests/baselines/reference/ambientExternalModuleWithInternalImportDeclaration.types b/tests/baselines/reference/ambientExternalModuleWithInternalImportDeclaration.types index 4e9043d1b75..2bd3929e286 100644 --- a/tests/baselines/reference/ambientExternalModuleWithInternalImportDeclaration.types +++ b/tests/baselines/reference/ambientExternalModuleWithInternalImportDeclaration.types @@ -1,33 +1,33 @@ === tests/cases/compiler/ambientExternalModuleWithInternalImportDeclaration_1.ts === /// import A = require('M'); ->A : typeof A +>A : typeof A, Symbol(A, Decl(ambientExternalModuleWithInternalImportDeclaration_1.ts, 0, 0)) var c = new A(); ->c : A +>c : A, Symbol(c, Decl(ambientExternalModuleWithInternalImportDeclaration_1.ts, 2, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(ambientExternalModuleWithInternalImportDeclaration_1.ts, 0, 0)) === tests/cases/compiler/ambientExternalModuleWithInternalImportDeclaration_0.ts === declare module 'M' { module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 0, 20), Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 3, 5)) export var f: number; ->f : number +>f : number, Symbol(f, Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 2, 18)) } class C { ->C : C +>C : C, Symbol(C, Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 0, 20), Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 3, 5)) foo(): void; ->foo : () => void +>foo : () => void, Symbol(foo, Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 4, 13)) } import X = C; ->X : typeof C ->C : C +>X : typeof C, Symbol(X, Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 6, 5)) +>C : C, Symbol(C, Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 0, 20), Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 3, 5)) export = X; ->X : C +>X : C, Symbol(X, Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 6, 5)) } diff --git a/tests/baselines/reference/ambientExternalModuleWithoutInternalImportDeclaration.types b/tests/baselines/reference/ambientExternalModuleWithoutInternalImportDeclaration.types index 0029817400b..7131f7bbe8b 100644 --- a/tests/baselines/reference/ambientExternalModuleWithoutInternalImportDeclaration.types +++ b/tests/baselines/reference/ambientExternalModuleWithoutInternalImportDeclaration.types @@ -1,29 +1,29 @@ === tests/cases/compiler/ambientExternalModuleWithoutInternalImportDeclaration_1.ts === /// import A = require('M'); ->A : typeof A +>A : typeof A, Symbol(A, Decl(ambientExternalModuleWithoutInternalImportDeclaration_1.ts, 0, 0)) var c = new A(); ->c : A +>c : A, Symbol(c, Decl(ambientExternalModuleWithoutInternalImportDeclaration_1.ts, 2, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(ambientExternalModuleWithoutInternalImportDeclaration_1.ts, 0, 0)) === tests/cases/compiler/ambientExternalModuleWithoutInternalImportDeclaration_0.ts === declare module 'M' { module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 0, 20), Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 3, 5)) export var f: number; ->f : number +>f : number, Symbol(f, Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 2, 18)) } class C { ->C : C +>C : C, Symbol(C, Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 0, 20), Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 3, 5)) foo(): void; ->foo : () => void +>foo : () => void, Symbol(foo, Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 4, 13)) } export = C; ->C : C +>C : C, Symbol(C, Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 0, 20), Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 3, 5)) } diff --git a/tests/baselines/reference/ambientFundule.types b/tests/baselines/reference/ambientFundule.types index edd2290859c..686c7c6fb85 100644 --- a/tests/baselines/reference/ambientFundule.types +++ b/tests/baselines/reference/ambientFundule.types @@ -1,12 +1,12 @@ === tests/cases/compiler/ambientFundule.ts === declare function f(); ->f : typeof f +>f : typeof f, Symbol(f, Decl(ambientFundule.ts, 0, 0), Decl(ambientFundule.ts, 0, 21), Decl(ambientFundule.ts, 1, 26)) declare module f { var x } ->f : typeof f ->x : any +>f : typeof f, Symbol(f, Decl(ambientFundule.ts, 0, 0), Decl(ambientFundule.ts, 0, 21), Decl(ambientFundule.ts, 1, 26)) +>x : any, Symbol(x, Decl(ambientFundule.ts, 1, 22)) declare function f(x); ->f : typeof f ->x : any +>f : typeof f, Symbol(f, Decl(ambientFundule.ts, 0, 0), Decl(ambientFundule.ts, 0, 21), Decl(ambientFundule.ts, 1, 26)) +>x : any, Symbol(x, Decl(ambientFundule.ts, 2, 19)) diff --git a/tests/baselines/reference/ambientInsideNonAmbient.types b/tests/baselines/reference/ambientInsideNonAmbient.types index ee654aee333..6ccc20aba93 100644 --- a/tests/baselines/reference/ambientInsideNonAmbient.types +++ b/tests/baselines/reference/ambientInsideNonAmbient.types @@ -1,38 +1,38 @@ === tests/cases/conformance/ambient/ambientInsideNonAmbient.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(ambientInsideNonAmbient.ts, 0, 0)) export declare var x; ->x : any +>x : any, Symbol(x, Decl(ambientInsideNonAmbient.ts, 1, 22)) export declare function f(); ->f : () => any +>f : () => any, Symbol(f, Decl(ambientInsideNonAmbient.ts, 1, 25)) export declare class C { } ->C : C +>C : C, Symbol(C, Decl(ambientInsideNonAmbient.ts, 2, 32)) export declare enum E { } ->E : E +>E : E, Symbol(E, Decl(ambientInsideNonAmbient.ts, 3, 30)) export declare module M { } ->M : unknown +>M : any, Symbol(M, Decl(ambientInsideNonAmbient.ts, 4, 29)) } module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(ambientInsideNonAmbient.ts, 6, 1)) declare var x; ->x : any +>x : any, Symbol(x, Decl(ambientInsideNonAmbient.ts, 9, 15)) declare function f(); ->f : () => any +>f : () => any, Symbol(f, Decl(ambientInsideNonAmbient.ts, 9, 18)) declare class C { } ->C : C +>C : C, Symbol(C, Decl(ambientInsideNonAmbient.ts, 10, 25)) declare enum E { } ->E : E +>E : E, Symbol(E, Decl(ambientInsideNonAmbient.ts, 11, 23)) declare module M { } ->M : unknown +>M : any, Symbol(M, Decl(ambientInsideNonAmbient.ts, 12, 22)) } diff --git a/tests/baselines/reference/ambientInsideNonAmbientExternalModule.types b/tests/baselines/reference/ambientInsideNonAmbientExternalModule.types index bda7a61a7f3..698b963c78d 100644 --- a/tests/baselines/reference/ambientInsideNonAmbientExternalModule.types +++ b/tests/baselines/reference/ambientInsideNonAmbientExternalModule.types @@ -1,16 +1,16 @@ === tests/cases/conformance/ambient/ambientInsideNonAmbientExternalModule.ts === export declare var x; ->x : any +>x : any, Symbol(x, Decl(ambientInsideNonAmbientExternalModule.ts, 0, 18)) export declare function f(); ->f : () => any +>f : () => any, Symbol(f, Decl(ambientInsideNonAmbientExternalModule.ts, 0, 21)) export declare class C { } ->C : C +>C : C, Symbol(C, Decl(ambientInsideNonAmbientExternalModule.ts, 1, 28)) export declare enum E { } ->E : E +>E : E, Symbol(E, Decl(ambientInsideNonAmbientExternalModule.ts, 2, 26)) export declare module M { } ->M : unknown +>M : any, Symbol(M, Decl(ambientInsideNonAmbientExternalModule.ts, 3, 25)) diff --git a/tests/baselines/reference/ambientModuleExports.types b/tests/baselines/reference/ambientModuleExports.types index 3f096afa838..8149ab0c5f9 100644 --- a/tests/baselines/reference/ambientModuleExports.types +++ b/tests/baselines/reference/ambientModuleExports.types @@ -1,63 +1,63 @@ === tests/cases/compiler/ambientModuleExports.ts === declare module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(ambientModuleExports.ts, 0, 0)) function a():void; ->a : () => void +>a : () => void, Symbol(a, Decl(ambientModuleExports.ts, 0, 20)) var b:number; ->b : number +>b : number, Symbol(b, Decl(ambientModuleExports.ts, 2, 4)) class C {} ->C : C +>C : C, Symbol(C, Decl(ambientModuleExports.ts, 2, 14)) } Foo.a(); >Foo.a() : void ->Foo.a : () => void ->Foo : typeof Foo ->a : () => void +>Foo.a : () => void, Symbol(Foo.a, Decl(ambientModuleExports.ts, 0, 20)) +>Foo : typeof Foo, Symbol(Foo, Decl(ambientModuleExports.ts, 0, 0)) +>a : () => void, Symbol(Foo.a, Decl(ambientModuleExports.ts, 0, 20)) Foo.b; ->Foo.b : number ->Foo : typeof Foo ->b : number +>Foo.b : number, Symbol(Foo.b, Decl(ambientModuleExports.ts, 2, 4)) +>Foo : typeof Foo, Symbol(Foo, Decl(ambientModuleExports.ts, 0, 0)) +>b : number, Symbol(Foo.b, Decl(ambientModuleExports.ts, 2, 4)) var c = new Foo.C(); ->c : Foo.C +>c : Foo.C, Symbol(c, Decl(ambientModuleExports.ts, 8, 3)) >new Foo.C() : Foo.C ->Foo.C : typeof Foo.C ->Foo : typeof Foo ->C : typeof Foo.C +>Foo.C : typeof Foo.C, Symbol(Foo.C, Decl(ambientModuleExports.ts, 2, 14)) +>Foo : typeof Foo, Symbol(Foo, Decl(ambientModuleExports.ts, 0, 0)) +>C : typeof Foo.C, Symbol(Foo.C, Decl(ambientModuleExports.ts, 2, 14)) declare module Foo2 { ->Foo2 : typeof Foo2 +>Foo2 : typeof Foo2, Symbol(Foo2, Decl(ambientModuleExports.ts, 8, 20)) export function a(): void; ->a : () => void +>a : () => void, Symbol(a, Decl(ambientModuleExports.ts, 10, 21)) export var b: number; ->b : number +>b : number, Symbol(b, Decl(ambientModuleExports.ts, 12, 14)) export class C { } ->C : C +>C : C, Symbol(C, Decl(ambientModuleExports.ts, 12, 25)) } Foo2.a(); >Foo2.a() : void ->Foo2.a : () => void ->Foo2 : typeof Foo2 ->a : () => void +>Foo2.a : () => void, Symbol(Foo2.a, Decl(ambientModuleExports.ts, 10, 21)) +>Foo2 : typeof Foo2, Symbol(Foo2, Decl(ambientModuleExports.ts, 8, 20)) +>a : () => void, Symbol(Foo2.a, Decl(ambientModuleExports.ts, 10, 21)) Foo2.b; ->Foo2.b : number ->Foo2 : typeof Foo2 ->b : number +>Foo2.b : number, Symbol(Foo2.b, Decl(ambientModuleExports.ts, 12, 14)) +>Foo2 : typeof Foo2, Symbol(Foo2, Decl(ambientModuleExports.ts, 8, 20)) +>b : number, Symbol(Foo2.b, Decl(ambientModuleExports.ts, 12, 14)) var c2 = new Foo2.C(); ->c2 : Foo2.C +>c2 : Foo2.C, Symbol(c2, Decl(ambientModuleExports.ts, 18, 3)) >new Foo2.C() : Foo2.C ->Foo2.C : typeof Foo2.C ->Foo2 : typeof Foo2 ->C : typeof Foo2.C +>Foo2.C : typeof Foo2.C, Symbol(Foo2.C, Decl(ambientModuleExports.ts, 12, 25)) +>Foo2 : typeof Foo2, Symbol(Foo2, Decl(ambientModuleExports.ts, 8, 20)) +>C : typeof Foo2.C, Symbol(Foo2.C, Decl(ambientModuleExports.ts, 12, 25)) diff --git a/tests/baselines/reference/ambientModuleWithClassDeclarationWithExtends.types b/tests/baselines/reference/ambientModuleWithClassDeclarationWithExtends.types index 2708946518f..c2036fd70ae 100644 --- a/tests/baselines/reference/ambientModuleWithClassDeclarationWithExtends.types +++ b/tests/baselines/reference/ambientModuleWithClassDeclarationWithExtends.types @@ -1,11 +1,11 @@ === tests/cases/compiler/ambientModuleWithClassDeclarationWithExtends.ts === declare module foo { ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(ambientModuleWithClassDeclarationWithExtends.ts, 0, 0)) class A { } ->A : A +>A : A, Symbol(A, Decl(ambientModuleWithClassDeclarationWithExtends.ts, 0, 20)) class B extends A { } ->B : B ->A : A +>B : B, Symbol(B, Decl(ambientModuleWithClassDeclarationWithExtends.ts, 1, 15)) +>A : A, Symbol(A, Decl(ambientModuleWithClassDeclarationWithExtends.ts, 0, 20)) } diff --git a/tests/baselines/reference/ambientModules.types b/tests/baselines/reference/ambientModules.types index fe0aceef810..1484888e14e 100644 --- a/tests/baselines/reference/ambientModules.types +++ b/tests/baselines/reference/ambientModules.types @@ -1,14 +1,15 @@ === tests/cases/compiler/ambientModules.ts === declare module Foo.Bar { export var foo; }; ->Foo : typeof Foo ->Bar : typeof Bar ->foo : any +>Foo : typeof Foo, Symbol(Foo, Decl(ambientModules.ts, 0, 0)) +>Bar : typeof Bar, Symbol(Bar, Decl(ambientModules.ts, 0, 19)) +>foo : any, Symbol(foo, Decl(ambientModules.ts, 0, 35)) Foo.Bar.foo = 5; >Foo.Bar.foo = 5 : number ->Foo.Bar.foo : any ->Foo.Bar : typeof Foo.Bar ->Foo : typeof Foo ->Bar : typeof Foo.Bar ->foo : any +>Foo.Bar.foo : any, Symbol(Foo.Bar.foo, Decl(ambientModules.ts, 0, 35)) +>Foo.Bar : typeof Foo.Bar, Symbol(Foo.Bar, Decl(ambientModules.ts, 0, 19)) +>Foo : typeof Foo, Symbol(Foo, Decl(ambientModules.ts, 0, 0)) +>Bar : typeof Foo.Bar, Symbol(Foo.Bar, Decl(ambientModules.ts, 0, 19)) +>foo : any, Symbol(Foo.Bar.foo, Decl(ambientModules.ts, 0, 35)) +>5 : number diff --git a/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.types b/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.types index 4e508ba2df5..16d4d6f7d40 100644 --- a/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.types +++ b/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.types @@ -1,78 +1,79 @@ === tests/cases/compiler/ambiguousCallsWhereReturnTypesAgree.ts === class TestClass { ->TestClass : TestClass +>TestClass : TestClass, Symbol(TestClass, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 0, 0)) public bar(x: string): void; ->bar : { (x: string): void; (x: string[]): void; } ->x : string +>bar : { (x: string): void; (x: string[]): void; }, Symbol(bar, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 0, 17), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 1, 32), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 2, 34)) +>x : string, Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 1, 15)) public bar(x: string[]): void; ->bar : { (x: string): void; (x: string[]): void; } ->x : string[] +>bar : { (x: string): void; (x: string[]): void; }, Symbol(bar, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 0, 17), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 1, 32), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 2, 34)) +>x : string[], Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 2, 15)) public bar(x: any): void { ->bar : { (x: string): void; (x: string[]): void; } ->x : any +>bar : { (x: string): void; (x: string[]): void; }, Symbol(bar, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 0, 17), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 1, 32), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 2, 34)) +>x : any, Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 3, 15)) } public foo(x: string): void; ->foo : { (x: string): void; (x: string[]): void; } ->x : string +>foo : { (x: string): void; (x: string[]): void; }, Symbol(foo, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 5, 5), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 7, 32), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 8, 34)) +>x : string, Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 7, 15)) public foo(x: string[]): void; ->foo : { (x: string): void; (x: string[]): void; } ->x : string[] +>foo : { (x: string): void; (x: string[]): void; }, Symbol(foo, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 5, 5), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 7, 32), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 8, 34)) +>x : string[], Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 8, 15)) public foo(x: any): void { ->foo : { (x: string): void; (x: string[]): void; } ->x : any +>foo : { (x: string): void; (x: string[]): void; }, Symbol(foo, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 5, 5), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 7, 32), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 8, 34)) +>x : any, Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 9, 15)) this.bar(x); // should not error >this.bar(x) : void ->this.bar : { (x: string): void; (x: string[]): void; } ->this : TestClass ->bar : { (x: string): void; (x: string[]): void; } ->x : any +>this.bar : { (x: string): void; (x: string[]): void; }, Symbol(bar, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 0, 17), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 1, 32), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 2, 34)) +>this : TestClass, Symbol(TestClass, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 0, 0)) +>bar : { (x: string): void; (x: string[]): void; }, Symbol(bar, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 0, 17), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 1, 32), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 2, 34)) +>x : any, Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 9, 15)) } } class TestClass2 { ->TestClass2 : TestClass2 +>TestClass2 : TestClass2, Symbol(TestClass2, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 12, 1)) public bar(x: string): number; ->bar : { (x: string): number; (x: string[]): number; } ->x : string +>bar : { (x: string): number; (x: string[]): number; }, Symbol(bar, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 14, 18), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 15, 34), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 16, 36)) +>x : string, Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 15, 15)) public bar(x: string[]): number; ->bar : { (x: string): number; (x: string[]): number; } ->x : string[] +>bar : { (x: string): number; (x: string[]): number; }, Symbol(bar, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 14, 18), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 15, 34), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 16, 36)) +>x : string[], Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 16, 15)) public bar(x: any): number { ->bar : { (x: string): number; (x: string[]): number; } ->x : any +>bar : { (x: string): number; (x: string[]): number; }, Symbol(bar, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 14, 18), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 15, 34), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 16, 36)) +>x : any, Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 17, 15)) return 0; +>0 : number } public foo(x: string): number; ->foo : { (x: string): number; (x: string[]): number; } ->x : string +>foo : { (x: string): number; (x: string[]): number; }, Symbol(foo, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 19, 5), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 21, 34), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 22, 36)) +>x : string, Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 21, 15)) public foo(x: string[]): number; ->foo : { (x: string): number; (x: string[]): number; } ->x : string[] +>foo : { (x: string): number; (x: string[]): number; }, Symbol(foo, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 19, 5), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 21, 34), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 22, 36)) +>x : string[], Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 22, 15)) public foo(x: any): number { ->foo : { (x: string): number; (x: string[]): number; } ->x : any +>foo : { (x: string): number; (x: string[]): number; }, Symbol(foo, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 19, 5), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 21, 34), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 22, 36)) +>x : any, Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 23, 15)) return this.bar(x); // should not error >this.bar(x) : number ->this.bar : { (x: string): number; (x: string[]): number; } ->this : TestClass2 ->bar : { (x: string): number; (x: string[]): number; } ->x : any +>this.bar : { (x: string): number; (x: string[]): number; }, Symbol(bar, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 14, 18), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 15, 34), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 16, 36)) +>this : TestClass2, Symbol(TestClass2, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 12, 1)) +>bar : { (x: string): number; (x: string[]): number; }, Symbol(bar, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 14, 18), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 15, 34), Decl(ambiguousCallsWhereReturnTypesAgree.ts, 16, 36)) +>x : any, Symbol(x, Decl(ambiguousCallsWhereReturnTypesAgree.ts, 23, 15)) } } diff --git a/tests/baselines/reference/ambiguousOverloadResolution.types b/tests/baselines/reference/ambiguousOverloadResolution.types index dd42b44d7c3..94d8a590155 100644 --- a/tests/baselines/reference/ambiguousOverloadResolution.types +++ b/tests/baselines/reference/ambiguousOverloadResolution.types @@ -1,34 +1,34 @@ === tests/cases/compiler/ambiguousOverloadResolution.ts === class A { } ->A : A +>A : A, Symbol(A, Decl(ambiguousOverloadResolution.ts, 0, 0)) class B extends A { x: number; } ->B : B ->A : A ->x : number +>B : B, Symbol(B, Decl(ambiguousOverloadResolution.ts, 0, 11)) +>A : A, Symbol(A, Decl(ambiguousOverloadResolution.ts, 0, 0)) +>x : number, Symbol(x, Decl(ambiguousOverloadResolution.ts, 1, 19)) declare function f(p: A, q: B): number; ->f : { (p: A, q: B): number; (p: B, q: A): string; } ->p : A ->A : A ->q : B ->B : B +>f : { (p: A, q: B): number; (p: B, q: A): string; }, Symbol(f, Decl(ambiguousOverloadResolution.ts, 1, 32), Decl(ambiguousOverloadResolution.ts, 3, 39)) +>p : A, Symbol(p, Decl(ambiguousOverloadResolution.ts, 3, 19)) +>A : A, Symbol(A, Decl(ambiguousOverloadResolution.ts, 0, 0)) +>q : B, Symbol(q, Decl(ambiguousOverloadResolution.ts, 3, 24)) +>B : B, Symbol(B, Decl(ambiguousOverloadResolution.ts, 0, 11)) declare function f(p: B, q: A): string; ->f : { (p: A, q: B): number; (p: B, q: A): string; } ->p : B ->B : B ->q : A ->A : A +>f : { (p: A, q: B): number; (p: B, q: A): string; }, Symbol(f, Decl(ambiguousOverloadResolution.ts, 1, 32), Decl(ambiguousOverloadResolution.ts, 3, 39)) +>p : B, Symbol(p, Decl(ambiguousOverloadResolution.ts, 4, 19)) +>B : B, Symbol(B, Decl(ambiguousOverloadResolution.ts, 0, 11)) +>q : A, Symbol(q, Decl(ambiguousOverloadResolution.ts, 4, 24)) +>A : A, Symbol(A, Decl(ambiguousOverloadResolution.ts, 0, 0)) var x: B; ->x : B ->B : B +>x : B, Symbol(x, Decl(ambiguousOverloadResolution.ts, 6, 3)) +>B : B, Symbol(B, Decl(ambiguousOverloadResolution.ts, 0, 11)) var t: number = f(x, x); // Not an error ->t : number +>t : number, Symbol(t, Decl(ambiguousOverloadResolution.ts, 7, 3)) >f(x, x) : number ->f : { (p: A, q: B): number; (p: B, q: A): string; } ->x : B ->x : B +>f : { (p: A, q: B): number; (p: B, q: A): string; }, Symbol(f, Decl(ambiguousOverloadResolution.ts, 1, 32), Decl(ambiguousOverloadResolution.ts, 3, 39)) +>x : B, Symbol(x, Decl(ambiguousOverloadResolution.ts, 6, 3)) +>x : B, Symbol(x, Decl(ambiguousOverloadResolution.ts, 6, 3)) diff --git a/tests/baselines/reference/amdImportAsPrimaryExpression.types b/tests/baselines/reference/amdImportAsPrimaryExpression.types index f88bc9a1ffe..f055c162d09 100644 --- a/tests/baselines/reference/amdImportAsPrimaryExpression.types +++ b/tests/baselines/reference/amdImportAsPrimaryExpression.types @@ -1,25 +1,26 @@ === tests/cases/conformance/externalModules/foo_1.ts === import foo = require("./foo_0"); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) if(foo.E1.A === 0){ >foo.E1.A === 0 : boolean ->foo.E1.A : foo.E1 ->foo.E1 : typeof foo.E1 ->foo : typeof foo ->E1 : typeof foo.E1 ->A : foo.E1 +>foo.E1.A : foo.E1, Symbol(foo.E1.A, Decl(foo_0.ts, 0, 16)) +>foo.E1 : typeof foo.E1, Symbol(foo.E1, Decl(foo_0.ts, 0, 0)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>E1 : typeof foo.E1, Symbol(foo.E1, Decl(foo_0.ts, 0, 0)) +>A : foo.E1, Symbol(foo.E1.A, Decl(foo_0.ts, 0, 16)) +>0 : number // Should cause runtime import - interesting optimization possibility, as gets inlined to 0. } === tests/cases/conformance/externalModules/foo_0.ts === export enum E1 { ->E1 : E1 +>E1 : E1, Symbol(E1, Decl(foo_0.ts, 0, 0)) A,B,C ->A : E1 ->B : E1 ->C : E1 +>A : E1, Symbol(E1.A, Decl(foo_0.ts, 0, 16)) +>B : E1, Symbol(E1.B, Decl(foo_0.ts, 1, 3)) +>C : E1, Symbol(E1.C, Decl(foo_0.ts, 1, 5)) } diff --git a/tests/baselines/reference/amdImportNotAsPrimaryExpression.types b/tests/baselines/reference/amdImportNotAsPrimaryExpression.types index bde0cb02b1e..61a55d73b0c 100644 --- a/tests/baselines/reference/amdImportNotAsPrimaryExpression.types +++ b/tests/baselines/reference/amdImportNotAsPrimaryExpression.types @@ -1,82 +1,88 @@ === tests/cases/conformance/externalModules/foo_1.ts === import foo = require("./foo_0"); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) // None of the below should cause a runtime dependency on foo_0 import f = foo.M1; ->f : unknown ->foo : typeof foo ->M1 : unknown +>f : any, Symbol(f, Decl(foo_1.ts, 0, 32)) +>foo : typeof foo, Symbol(foo, Decl(foo_0.ts, 0, 0)) +>M1 : any, Symbol(foo.M1, Decl(foo_0.ts, 8, 1)) var i: f.I2; ->i : f.I2 ->f : unknown ->I2 : f.I2 +>i : f.I2, Symbol(i, Decl(foo_1.ts, 3, 3)) +>f : any, Symbol(f, Decl(foo_1.ts, 0, 32)) +>I2 : f.I2, Symbol(f.I2, Decl(foo_0.ts, 10, 18)) var x: foo.C1 = <{m1: number}>{}; ->x : foo.C1 ->foo : unknown ->C1 : foo.C1 +>x : foo.C1, Symbol(x, Decl(foo_1.ts, 4, 3)) +>foo : any, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>C1 : foo.C1, Symbol(foo.C1, Decl(foo_0.ts, 0, 0)) ><{m1: number}>{} : { m1: number; } ->m1 : number +>m1 : number, Symbol(m1, Decl(foo_1.ts, 4, 18)) >{} : {} var y: typeof foo.C1.s1 = false; ->y : boolean ->foo : typeof foo ->C1 : typeof foo.C1 ->s1 : boolean +>y : boolean, Symbol(y, Decl(foo_1.ts, 5, 3)) +>foo.C1.s1 : boolean, Symbol(foo.C1.s1, Decl(foo_0.ts, 1, 9)) +>foo.C1 : typeof foo.C1, Symbol(foo.C1, Decl(foo_0.ts, 0, 0)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>C1 : typeof foo.C1, Symbol(foo.C1, Decl(foo_0.ts, 0, 0)) +>s1 : boolean, Symbol(foo.C1.s1, Decl(foo_0.ts, 1, 9)) +>false : boolean var z: foo.M1.I2; ->z : f.I2 ->foo : unknown ->M1 : unknown ->I2 : f.I2 +>z : f.I2, Symbol(z, Decl(foo_1.ts, 6, 3)) +>foo : any, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>M1 : any, Symbol(foo.M1, Decl(foo_0.ts, 8, 1)) +>I2 : f.I2, Symbol(f.I2, Decl(foo_0.ts, 10, 18)) var e: number = 0; ->e : number +>e : number, Symbol(e, Decl(foo_1.ts, 7, 3)) >0 : foo.E1 ->foo : unknown ->E1 : foo.E1 +>foo : any, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>E1 : foo.E1, Symbol(foo.E1, Decl(foo_0.ts, 14, 1)) +>0 : number === tests/cases/conformance/externalModules/foo_0.ts === export class C1 { ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(foo_0.ts, 0, 0)) m1 = 42; ->m1 : number +>m1 : number, Symbol(m1, Decl(foo_0.ts, 0, 17)) +>42 : number static s1 = true; ->s1 : boolean +>s1 : boolean, Symbol(C1.s1, Decl(foo_0.ts, 1, 9)) +>true : boolean } export interface I1 { ->I1 : I1 +>I1 : I1, Symbol(I1, Decl(foo_0.ts, 3, 1)) name: string; ->name : string +>name : string, Symbol(name, Decl(foo_0.ts, 5, 21)) age: number; ->age : number +>age : number, Symbol(age, Decl(foo_0.ts, 6, 14)) } export module M1 { ->M1 : unknown +>M1 : any, Symbol(M1, Decl(foo_0.ts, 8, 1)) export interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(foo_0.ts, 10, 18)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(foo_0.ts, 11, 22)) } } export enum E1 { ->E1 : E1 +>E1 : E1, Symbol(E1, Decl(foo_0.ts, 14, 1)) A,B,C ->A : E1 ->B : E1 ->C : E1 +>A : E1, Symbol(E1.A, Decl(foo_0.ts, 16, 16)) +>B : E1, Symbol(E1.B, Decl(foo_0.ts, 17, 3)) +>C : E1, Symbol(E1.C, Decl(foo_0.ts, 17, 5)) } diff --git a/tests/baselines/reference/amdModuleName1.types b/tests/baselines/reference/amdModuleName1.types index 02ad9472354..90fdfcc9aa8 100644 --- a/tests/baselines/reference/amdModuleName1.types +++ b/tests/baselines/reference/amdModuleName1.types @@ -1,19 +1,20 @@ === tests/cases/compiler/amdModuleName1.ts === /// class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(amdModuleName1.ts, 0, 0)) x: number; ->x : number +>x : number, Symbol(x, Decl(amdModuleName1.ts, 1, 11)) constructor() { this.x = 5; >this.x = 5 : number ->this.x : number ->this : Foo ->x : number +>this.x : number, Symbol(x, Decl(amdModuleName1.ts, 1, 11)) +>this : Foo, Symbol(Foo, Decl(amdModuleName1.ts, 0, 0)) +>x : number, Symbol(x, Decl(amdModuleName1.ts, 1, 11)) +>5 : number } } export = Foo; ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(amdModuleName1.ts, 0, 0)) diff --git a/tests/baselines/reference/anonterface.types b/tests/baselines/reference/anonterface.types index 7b5b1401cac..1d84fe8f8e0 100644 --- a/tests/baselines/reference/anonterface.types +++ b/tests/baselines/reference/anonterface.types @@ -1,40 +1,42 @@ === tests/cases/compiler/anonterface.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(anonterface.ts, 0, 0)) export class C { ->C : C +>C : C, Symbol(C, Decl(anonterface.ts, 0, 10)) m(fn:{ (n:number):string; },n2:number):string { ->m : (fn: (n: number) => string, n2: number) => string ->fn : (n: number) => string ->n : number ->n2 : number +>m : (fn: (n: number) => string, n2: number) => string, Symbol(m, Decl(anonterface.ts, 1, 20)) +>fn : (n: number) => string, Symbol(fn, Decl(anonterface.ts, 2, 10)) +>n : number, Symbol(n, Decl(anonterface.ts, 2, 16)) +>n2 : number, Symbol(n2, Decl(anonterface.ts, 2, 36)) return fn(n2); >fn(n2) : string ->fn : (n: number) => string ->n2 : number +>fn : (n: number) => string, Symbol(fn, Decl(anonterface.ts, 2, 10)) +>n2 : number, Symbol(n2, Decl(anonterface.ts, 2, 36)) } } } var c=new M.C(); ->c : M.C +>c : M.C, Symbol(c, Decl(anonterface.ts, 8, 3)) >new M.C() : M.C ->M.C : typeof M.C ->M : typeof M ->C : typeof M.C +>M.C : typeof M.C, Symbol(M.C, Decl(anonterface.ts, 0, 10)) +>M : typeof M, Symbol(M, Decl(anonterface.ts, 0, 0)) +>C : typeof M.C, Symbol(M.C, Decl(anonterface.ts, 0, 10)) c.m(function(n) { return "hello: "+n; },18); >c.m(function(n) { return "hello: "+n; },18) : string ->c.m : (fn: (n: number) => string, n2: number) => string ->c : M.C ->m : (fn: (n: number) => string, n2: number) => string +>c.m : (fn: (n: number) => string, n2: number) => string, Symbol(M.C.m, Decl(anonterface.ts, 1, 20)) +>c : M.C, Symbol(c, Decl(anonterface.ts, 8, 3)) +>m : (fn: (n: number) => string, n2: number) => string, Symbol(M.C.m, Decl(anonterface.ts, 1, 20)) >function(n) { return "hello: "+n; } : (n: number) => string ->n : number +>n : number, Symbol(n, Decl(anonterface.ts, 9, 13)) >"hello: "+n : string ->n : number +>"hello: " : string +>n : number, Symbol(n, Decl(anonterface.ts, 9, 13)) +>18 : number diff --git a/tests/baselines/reference/anyAsFunctionCall.types b/tests/baselines/reference/anyAsFunctionCall.types index 6492dce37d2..80e039f76dd 100644 --- a/tests/baselines/reference/anyAsFunctionCall.types +++ b/tests/baselines/reference/anyAsFunctionCall.types @@ -3,21 +3,22 @@ // can be called except with type arguments which is an error var x: any; ->x : any +>x : any, Symbol(x, Decl(anyAsFunctionCall.ts, 3, 3)) var a = x(); ->a : any +>a : any, Symbol(a, Decl(anyAsFunctionCall.ts, 4, 3)) >x() : any ->x : any +>x : any, Symbol(x, Decl(anyAsFunctionCall.ts, 3, 3)) var b = x('hello'); ->b : any +>b : any, Symbol(b, Decl(anyAsFunctionCall.ts, 5, 3)) >x('hello') : any ->x : any +>x : any, Symbol(x, Decl(anyAsFunctionCall.ts, 3, 3)) +>'hello' : string var c = x(x); ->c : any +>c : any, Symbol(c, Decl(anyAsFunctionCall.ts, 6, 3)) >x(x) : any ->x : any ->x : any +>x : any, Symbol(x, Decl(anyAsFunctionCall.ts, 3, 3)) +>x : any, Symbol(x, Decl(anyAsFunctionCall.ts, 3, 3)) diff --git a/tests/baselines/reference/anyAsReturnTypeForNewOnCall.types b/tests/baselines/reference/anyAsReturnTypeForNewOnCall.types index f25cd57831b..2abdb1cbeda 100644 --- a/tests/baselines/reference/anyAsReturnTypeForNewOnCall.types +++ b/tests/baselines/reference/anyAsReturnTypeForNewOnCall.types @@ -1,34 +1,36 @@ === tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts === function Point(x, y) { ->Point : (x: any, y: any) => void ->x : any ->y : any +>Point : (x: any, y: any) => void, Symbol(Point, Decl(anyAsReturnTypeForNewOnCall.ts, 0, 0)) +>x : any, Symbol(x, Decl(anyAsReturnTypeForNewOnCall.ts, 0, 15)) +>y : any, Symbol(y, Decl(anyAsReturnTypeForNewOnCall.ts, 0, 17)) this.x = x; >this.x = x : any >this.x : any >this : any >x : any ->x : any +>x : any, Symbol(x, Decl(anyAsReturnTypeForNewOnCall.ts, 0, 15)) this.y = y; >this.y = y : any >this.y : any >this : any >y : any ->y : any +>y : any, Symbol(y, Decl(anyAsReturnTypeForNewOnCall.ts, 0, 17)) } var o = new Point(3, 4); ->o : any +>o : any, Symbol(o, Decl(anyAsReturnTypeForNewOnCall.ts, 8, 3)) >new Point(3, 4) : any ->Point : (x: any, y: any) => void +>Point : (x: any, y: any) => void, Symbol(Point, Decl(anyAsReturnTypeForNewOnCall.ts, 0, 0)) +>3 : number +>4 : number var xx = o.x; ->xx : any +>xx : any, Symbol(xx, Decl(anyAsReturnTypeForNewOnCall.ts, 10, 3)) >o.x : any ->o : any +>o : any, Symbol(o, Decl(anyAsReturnTypeForNewOnCall.ts, 8, 3)) >x : any diff --git a/tests/baselines/reference/anyAssignabilityInInheritance.types b/tests/baselines/reference/anyAssignabilityInInheritance.types index f5a4f22ef3f..8f54b6761c8 100644 --- a/tests/baselines/reference/anyAssignabilityInInheritance.types +++ b/tests/baselines/reference/anyAssignabilityInInheritance.types @@ -2,320 +2,322 @@ // any is not a subtype of any other types, errors expected on all the below derived classes unless otherwise noted interface I { ->I : I +>I : I, Symbol(I, Decl(anyAssignabilityInInheritance.ts, 0, 0)) [x: string]: any; ->x : string +>x : string, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 3, 5)) foo: any; // ok, any identical to itself ->foo : any +>foo : any, Symbol(foo, Decl(anyAssignabilityInInheritance.ts, 3, 21)) } var a: any; ->a : any +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) declare function foo2(x: number): number; ->foo2 : { (x: number): number; (x: any): any; } ->x : number +>foo2 : { (x: number): number; (x: any): any; }, Symbol(foo2, Decl(anyAssignabilityInInheritance.ts, 7, 11), Decl(anyAssignabilityInInheritance.ts, 9, 41)) +>x : number, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 9, 22)) declare function foo2(x: any): any; ->foo2 : { (x: number): number; (x: any): any; } ->x : any +>foo2 : { (x: number): number; (x: any): any; }, Symbol(foo2, Decl(anyAssignabilityInInheritance.ts, 7, 11), Decl(anyAssignabilityInInheritance.ts, 9, 41)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 10, 22)) var r3 = foo2(a); // any, not a subtype of number so it skips that overload, is a subtype of itself so it picks second (if truly ambiguous it would pick first overload) ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo2(a) : any ->foo2 : { (x: number): number; (x: any): any; } ->a : any +>foo2 : { (x: number): number; (x: any): any; }, Symbol(foo2, Decl(anyAssignabilityInInheritance.ts, 7, 11), Decl(anyAssignabilityInInheritance.ts, 9, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) declare function foo3(x: string): string; ->foo3 : { (x: string): string; (x: any): any; } ->x : string +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>x : string, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 13, 22)) declare function foo3(x: any): any; ->foo3 : { (x: string): string; (x: any): any; } ->x : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 14, 22)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) declare function foo4(x: boolean): boolean; ->foo4 : { (x: boolean): boolean; (x: any): any; } ->x : boolean +>foo4 : { (x: boolean): boolean; (x: any): any; }, Symbol(foo4, Decl(anyAssignabilityInInheritance.ts, 15, 17), Decl(anyAssignabilityInInheritance.ts, 17, 43)) +>x : boolean, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 17, 22)) declare function foo4(x: any): any; ->foo4 : { (x: boolean): boolean; (x: any): any; } ->x : any +>foo4 : { (x: boolean): boolean; (x: any): any; }, Symbol(foo4, Decl(anyAssignabilityInInheritance.ts, 15, 17), Decl(anyAssignabilityInInheritance.ts, 17, 43)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 18, 22)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) declare function foo5(x: Date): Date; ->foo5 : { (x: Date): Date; (x: any): any; } ->x : Date ->Date : Date ->Date : Date +>foo5 : { (x: Date): Date; (x: any): any; }, Symbol(foo5, Decl(anyAssignabilityInInheritance.ts, 19, 17), Decl(anyAssignabilityInInheritance.ts, 21, 37)) +>x : Date, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 21, 22)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) declare function foo5(x: any): any; ->foo5 : { (x: Date): Date; (x: any): any; } ->x : any +>foo5 : { (x: Date): Date; (x: any): any; }, Symbol(foo5, Decl(anyAssignabilityInInheritance.ts, 19, 17), Decl(anyAssignabilityInInheritance.ts, 21, 37)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 22, 22)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) declare function foo6(x: RegExp): RegExp; ->foo6 : { (x: RegExp): RegExp; (x: any): any; } ->x : RegExp ->RegExp : RegExp ->RegExp : RegExp +>foo6 : { (x: RegExp): RegExp; (x: any): any; }, Symbol(foo6, Decl(anyAssignabilityInInheritance.ts, 23, 17), Decl(anyAssignabilityInInheritance.ts, 25, 41)) +>x : RegExp, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 25, 22)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) declare function foo6(x: any): any; ->foo6 : { (x: RegExp): RegExp; (x: any): any; } ->x : any +>foo6 : { (x: RegExp): RegExp; (x: any): any; }, Symbol(foo6, Decl(anyAssignabilityInInheritance.ts, 23, 17), Decl(anyAssignabilityInInheritance.ts, 25, 41)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 26, 22)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) declare function foo7(x: { bar: number }): { bar: number }; ->foo7 : { (x: { bar: number; }): { bar: number; }; (x: any): any; } ->x : { bar: number; } ->bar : number ->bar : number +>foo7 : { (x: { bar: number; }): { bar: number; }; (x: any): any; }, Symbol(foo7, Decl(anyAssignabilityInInheritance.ts, 27, 17), Decl(anyAssignabilityInInheritance.ts, 29, 59)) +>x : { bar: number; }, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 29, 22)) +>bar : number, Symbol(bar, Decl(anyAssignabilityInInheritance.ts, 29, 26)) +>bar : number, Symbol(bar, Decl(anyAssignabilityInInheritance.ts, 29, 44)) declare function foo7(x: any): any; ->foo7 : { (x: { bar: number; }): { bar: number; }; (x: any): any; } ->x : any +>foo7 : { (x: { bar: number; }): { bar: number; }; (x: any): any; }, Symbol(foo7, Decl(anyAssignabilityInInheritance.ts, 27, 17), Decl(anyAssignabilityInInheritance.ts, 29, 59)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 30, 22)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) declare function foo8(x: number[]): number[]; ->foo8 : { (x: number[]): number[]; (x: any): any; } ->x : number[] +>foo8 : { (x: number[]): number[]; (x: any): any; }, Symbol(foo8, Decl(anyAssignabilityInInheritance.ts, 31, 17), Decl(anyAssignabilityInInheritance.ts, 33, 45)) +>x : number[], Symbol(x, Decl(anyAssignabilityInInheritance.ts, 33, 22)) declare function foo8(x: any): any; ->foo8 : { (x: number[]): number[]; (x: any): any; } ->x : any +>foo8 : { (x: number[]): number[]; (x: any): any; }, Symbol(foo8, Decl(anyAssignabilityInInheritance.ts, 31, 17), Decl(anyAssignabilityInInheritance.ts, 33, 45)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 34, 22)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) interface I8 { foo: string } ->I8 : I8 ->foo : string +>I8 : I8, Symbol(I8, Decl(anyAssignabilityInInheritance.ts, 35, 17)) +>foo : string, Symbol(foo, Decl(anyAssignabilityInInheritance.ts, 37, 14)) declare function foo9(x: I8): I8; ->foo9 : { (x: I8): I8; (x: any): any; } ->x : I8 ->I8 : I8 ->I8 : I8 +>foo9 : { (x: I8): I8; (x: any): any; }, Symbol(foo9, Decl(anyAssignabilityInInheritance.ts, 37, 28), Decl(anyAssignabilityInInheritance.ts, 38, 33)) +>x : I8, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 38, 22)) +>I8 : I8, Symbol(I8, Decl(anyAssignabilityInInheritance.ts, 35, 17)) +>I8 : I8, Symbol(I8, Decl(anyAssignabilityInInheritance.ts, 35, 17)) declare function foo9(x: any): any; ->foo9 : { (x: I8): I8; (x: any): any; } ->x : any +>foo9 : { (x: I8): I8; (x: any): any; }, Symbol(foo9, Decl(anyAssignabilityInInheritance.ts, 37, 28), Decl(anyAssignabilityInInheritance.ts, 38, 33)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 39, 22)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) class A { foo: number; } ->A : A ->foo : number +>A : A, Symbol(A, Decl(anyAssignabilityInInheritance.ts, 40, 17)) +>foo : number, Symbol(foo, Decl(anyAssignabilityInInheritance.ts, 42, 9)) declare function foo10(x: A): A; ->foo10 : { (x: A): A; (x: any): any; } ->x : A ->A : A ->A : A +>foo10 : { (x: A): A; (x: any): any; }, Symbol(foo10, Decl(anyAssignabilityInInheritance.ts, 42, 24), Decl(anyAssignabilityInInheritance.ts, 43, 32)) +>x : A, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 43, 23)) +>A : A, Symbol(A, Decl(anyAssignabilityInInheritance.ts, 40, 17)) +>A : A, Symbol(A, Decl(anyAssignabilityInInheritance.ts, 40, 17)) declare function foo10(x: any): any; ->foo10 : { (x: A): A; (x: any): any; } ->x : any +>foo10 : { (x: A): A; (x: any): any; }, Symbol(foo10, Decl(anyAssignabilityInInheritance.ts, 42, 24), Decl(anyAssignabilityInInheritance.ts, 43, 32)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 44, 23)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) class A2 { foo: T; } ->A2 : A2 ->T : T ->foo : T ->T : T +>A2 : A2, Symbol(A2, Decl(anyAssignabilityInInheritance.ts, 45, 17)) +>T : T, Symbol(T, Decl(anyAssignabilityInInheritance.ts, 47, 9)) +>foo : T, Symbol(foo, Decl(anyAssignabilityInInheritance.ts, 47, 13)) +>T : T, Symbol(T, Decl(anyAssignabilityInInheritance.ts, 47, 9)) declare function foo11(x: A2): A2; ->foo11 : { (x: A2): A2; (x: any): any; } ->x : A2 ->A2 : A2 ->A2 : A2 +>foo11 : { (x: A2): A2; (x: any): any; }, Symbol(foo11, Decl(anyAssignabilityInInheritance.ts, 47, 23), Decl(anyAssignabilityInInheritance.ts, 48, 50)) +>x : A2, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 48, 23)) +>A2 : A2, Symbol(A2, Decl(anyAssignabilityInInheritance.ts, 45, 17)) +>A2 : A2, Symbol(A2, Decl(anyAssignabilityInInheritance.ts, 45, 17)) declare function foo11(x: any): any; ->foo11 : { (x: A2): A2; (x: any): any; } ->x : any +>foo11 : { (x: A2): A2; (x: any): any; }, Symbol(foo11, Decl(anyAssignabilityInInheritance.ts, 47, 23), Decl(anyAssignabilityInInheritance.ts, 48, 50)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 49, 23)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) declare function foo12(x: (x) => number): (x) => number; ->foo12 : { (x: (x: any) => number): (x: any) => number; (x: any): any; } ->x : (x: any) => number ->x : any ->x : any +>foo12 : { (x: (x: any) => number): (x: any) => number; (x: any): any; }, Symbol(foo12, Decl(anyAssignabilityInInheritance.ts, 50, 17), Decl(anyAssignabilityInInheritance.ts, 52, 56)) +>x : (x: any) => number, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 52, 23)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 52, 27)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 52, 43)) declare function foo12(x: any): any; ->foo12 : { (x: (x: any) => number): (x: any) => number; (x: any): any; } ->x : any +>foo12 : { (x: (x: any) => number): (x: any) => number; (x: any): any; }, Symbol(foo12, Decl(anyAssignabilityInInheritance.ts, 50, 17), Decl(anyAssignabilityInInheritance.ts, 52, 56)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 53, 23)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) declare function foo13(x: (x: T) => T): (x: T) => T; ->foo13 : { (x: (x: T) => T): (x: T) => T; (x: any): any; } ->x : (x: T) => T ->T : T ->x : T ->T : T ->T : T ->T : T ->x : T ->T : T ->T : T +>foo13 : { (x: (x: T) => T): (x: T) => T; (x: any): any; }, Symbol(foo13, Decl(anyAssignabilityInInheritance.ts, 54, 17), Decl(anyAssignabilityInInheritance.ts, 56, 58)) +>x : (x: T) => T, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 56, 23)) +>T : T, Symbol(T, Decl(anyAssignabilityInInheritance.ts, 56, 27)) +>x : T, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 56, 30)) +>T : T, Symbol(T, Decl(anyAssignabilityInInheritance.ts, 56, 27)) +>T : T, Symbol(T, Decl(anyAssignabilityInInheritance.ts, 56, 27)) +>T : T, Symbol(T, Decl(anyAssignabilityInInheritance.ts, 56, 44)) +>x : T, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 56, 47)) +>T : T, Symbol(T, Decl(anyAssignabilityInInheritance.ts, 56, 44)) +>T : T, Symbol(T, Decl(anyAssignabilityInInheritance.ts, 56, 44)) declare function foo13(x: any): any; ->foo13 : { (x: (x: T) => T): (x: T) => T; (x: any): any; } ->x : any +>foo13 : { (x: (x: T) => T): (x: T) => T; (x: any): any; }, Symbol(foo13, Decl(anyAssignabilityInInheritance.ts, 54, 17), Decl(anyAssignabilityInInheritance.ts, 56, 58)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 57, 23)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) enum E { A } ->E : E ->A : E +>E : E, Symbol(E, Decl(anyAssignabilityInInheritance.ts, 58, 17)) +>A : E, Symbol(E.A, Decl(anyAssignabilityInInheritance.ts, 60, 8)) declare function foo14(x: E): E; ->foo14 : { (x: E): E; (x: any): any; } ->x : E ->E : E ->E : E +>foo14 : { (x: E): E; (x: any): any; }, Symbol(foo14, Decl(anyAssignabilityInInheritance.ts, 60, 12), Decl(anyAssignabilityInInheritance.ts, 61, 32)) +>x : E, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 61, 23)) +>E : E, Symbol(E, Decl(anyAssignabilityInInheritance.ts, 58, 17)) +>E : E, Symbol(E, Decl(anyAssignabilityInInheritance.ts, 58, 17)) declare function foo14(x: any): any; ->foo14 : { (x: E): E; (x: any): any; } ->x : any +>foo14 : { (x: E): E; (x: any): any; }, Symbol(foo14, Decl(anyAssignabilityInInheritance.ts, 60, 12), Decl(anyAssignabilityInInheritance.ts, 61, 32)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 62, 23)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) function f() { } ->f : typeof f +>f : typeof f, Symbol(f, Decl(anyAssignabilityInInheritance.ts, 63, 17), Decl(anyAssignabilityInInheritance.ts, 65, 16)) module f { ->f : typeof f +>f : typeof f, Symbol(f, Decl(anyAssignabilityInInheritance.ts, 63, 17), Decl(anyAssignabilityInInheritance.ts, 65, 16)) export var bar = 1; ->bar : number +>bar : number, Symbol(bar, Decl(anyAssignabilityInInheritance.ts, 67, 14)) +>1 : number } declare function foo15(x: typeof f): typeof f; ->foo15 : { (x: typeof f): typeof f; (x: any): any; } ->x : typeof f ->f : typeof f ->f : typeof f +>foo15 : { (x: typeof f): typeof f; (x: any): any; }, Symbol(foo15, Decl(anyAssignabilityInInheritance.ts, 68, 1), Decl(anyAssignabilityInInheritance.ts, 69, 46)) +>x : typeof f, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 69, 23)) +>f : typeof f, Symbol(f, Decl(anyAssignabilityInInheritance.ts, 63, 17), Decl(anyAssignabilityInInheritance.ts, 65, 16)) +>f : typeof f, Symbol(f, Decl(anyAssignabilityInInheritance.ts, 63, 17), Decl(anyAssignabilityInInheritance.ts, 65, 16)) declare function foo15(x: any): any; ->foo15 : { (x: typeof f): typeof f; (x: any): any; } ->x : any +>foo15 : { (x: typeof f): typeof f; (x: any): any; }, Symbol(foo15, Decl(anyAssignabilityInInheritance.ts, 68, 1), Decl(anyAssignabilityInInheritance.ts, 69, 46)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 70, 23)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) class CC { baz: string } ->CC : CC ->baz : string +>CC : CC, Symbol(CC, Decl(anyAssignabilityInInheritance.ts, 71, 17), Decl(anyAssignabilityInInheritance.ts, 73, 24)) +>baz : string, Symbol(baz, Decl(anyAssignabilityInInheritance.ts, 73, 10)) module CC { ->CC : typeof CC +>CC : typeof CC, Symbol(CC, Decl(anyAssignabilityInInheritance.ts, 71, 17), Decl(anyAssignabilityInInheritance.ts, 73, 24)) export var bar = 1; ->bar : number +>bar : number, Symbol(bar, Decl(anyAssignabilityInInheritance.ts, 75, 14)) +>1 : number } declare function foo16(x: CC): CC; ->foo16 : { (x: CC): CC; (x: any): any; } ->x : CC ->CC : CC ->CC : CC +>foo16 : { (x: CC): CC; (x: any): any; }, Symbol(foo16, Decl(anyAssignabilityInInheritance.ts, 76, 1), Decl(anyAssignabilityInInheritance.ts, 77, 34)) +>x : CC, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 77, 23)) +>CC : CC, Symbol(CC, Decl(anyAssignabilityInInheritance.ts, 71, 17), Decl(anyAssignabilityInInheritance.ts, 73, 24)) +>CC : CC, Symbol(CC, Decl(anyAssignabilityInInheritance.ts, 71, 17), Decl(anyAssignabilityInInheritance.ts, 73, 24)) declare function foo16(x: any): any; ->foo16 : { (x: CC): CC; (x: any): any; } ->x : any +>foo16 : { (x: CC): CC; (x: any): any; }, Symbol(foo16, Decl(anyAssignabilityInInheritance.ts, 76, 1), Decl(anyAssignabilityInInheritance.ts, 77, 34)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 78, 23)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) declare function foo17(x: Object): Object; ->foo17 : { (x: Object): Object; (x: any): any; } ->x : Object ->Object : Object ->Object : Object +>foo17 : { (x: Object): Object; (x: any): any; }, Symbol(foo17, Decl(anyAssignabilityInInheritance.ts, 79, 17), Decl(anyAssignabilityInInheritance.ts, 81, 42)) +>x : Object, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 81, 23)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) declare function foo17(x: any): any; ->foo17 : { (x: Object): Object; (x: any): any; } ->x : any +>foo17 : { (x: Object): Object; (x: any): any; }, Symbol(foo17, Decl(anyAssignabilityInInheritance.ts, 79, 17), Decl(anyAssignabilityInInheritance.ts, 81, 42)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 82, 23)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) declare function foo18(x: {}): {}; ->foo18 : { (x: {}): {}; (x: any): any; } ->x : {} +>foo18 : { (x: {}): {}; (x: any): any; }, Symbol(foo18, Decl(anyAssignabilityInInheritance.ts, 83, 17), Decl(anyAssignabilityInInheritance.ts, 85, 34)) +>x : {}, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 85, 23)) declare function foo18(x: any): any; ->foo18 : { (x: {}): {}; (x: any): any; } ->x : any +>foo18 : { (x: {}): {}; (x: any): any; }, Symbol(foo18, Decl(anyAssignabilityInInheritance.ts, 83, 17), Decl(anyAssignabilityInInheritance.ts, 85, 34)) +>x : any, Symbol(x, Decl(anyAssignabilityInInheritance.ts, 86, 23)) var r3 = foo3(a); // any ->r3 : any +>r3 : any, Symbol(r3, Decl(anyAssignabilityInInheritance.ts, 11, 3), Decl(anyAssignabilityInInheritance.ts, 15, 3), Decl(anyAssignabilityInInheritance.ts, 19, 3), Decl(anyAssignabilityInInheritance.ts, 23, 3), Decl(anyAssignabilityInInheritance.ts, 27, 3), Decl(anyAssignabilityInInheritance.ts, 31, 3), Decl(anyAssignabilityInInheritance.ts, 35, 3), Decl(anyAssignabilityInInheritance.ts, 40, 3), Decl(anyAssignabilityInInheritance.ts, 45, 3), Decl(anyAssignabilityInInheritance.ts, 50, 3), Decl(anyAssignabilityInInheritance.ts, 54, 3), Decl(anyAssignabilityInInheritance.ts, 58, 3), Decl(anyAssignabilityInInheritance.ts, 63, 3), Decl(anyAssignabilityInInheritance.ts, 71, 3), Decl(anyAssignabilityInInheritance.ts, 79, 3), Decl(anyAssignabilityInInheritance.ts, 83, 3), Decl(anyAssignabilityInInheritance.ts, 87, 3)) >foo3(a) : any ->foo3 : { (x: string): string; (x: any): any; } ->a : any +>foo3 : { (x: string): string; (x: any): any; }, Symbol(foo3, Decl(anyAssignabilityInInheritance.ts, 11, 17), Decl(anyAssignabilityInInheritance.ts, 13, 41)) +>a : any, Symbol(a, Decl(anyAssignabilityInInheritance.ts, 7, 3)) diff --git a/tests/baselines/reference/anyAssignableToEveryType.types b/tests/baselines/reference/anyAssignableToEveryType.types index c2a9b324d96..b6e420facb2 100644 --- a/tests/baselines/reference/anyAssignableToEveryType.types +++ b/tests/baselines/reference/anyAssignableToEveryType.types @@ -1,152 +1,152 @@ === tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignableToEveryType.ts === var a: any; ->a : any +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) class C { ->C : C +>C : C, Symbol(C, Decl(anyAssignableToEveryType.ts, 0, 11)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(anyAssignableToEveryType.ts, 2, 9)) } var ac: C; ->ac : C ->C : C +>ac : C, Symbol(ac, Decl(anyAssignableToEveryType.ts, 5, 3)) +>C : C, Symbol(C, Decl(anyAssignableToEveryType.ts, 0, 11)) interface I { ->I : I +>I : I, Symbol(I, Decl(anyAssignableToEveryType.ts, 5, 10)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(anyAssignableToEveryType.ts, 6, 13)) } var ai: I; ->ai : I ->I : I +>ai : I, Symbol(ai, Decl(anyAssignableToEveryType.ts, 9, 3)) +>I : I, Symbol(I, Decl(anyAssignableToEveryType.ts, 5, 10)) enum E { A } ->E : E ->A : E +>E : E, Symbol(E, Decl(anyAssignableToEveryType.ts, 9, 10)) +>A : E, Symbol(E.A, Decl(anyAssignableToEveryType.ts, 11, 8)) var ae: E; ->ae : E ->E : E +>ae : E, Symbol(ae, Decl(anyAssignableToEveryType.ts, 12, 3)) +>E : E, Symbol(E, Decl(anyAssignableToEveryType.ts, 9, 10)) var b: number = a; ->b : number ->a : any +>b : number, Symbol(b, Decl(anyAssignableToEveryType.ts, 14, 3)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var c: string = a; ->c : string ->a : any +>c : string, Symbol(c, Decl(anyAssignableToEveryType.ts, 15, 3)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var d: boolean = a; ->d : boolean ->a : any +>d : boolean, Symbol(d, Decl(anyAssignableToEveryType.ts, 16, 3)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var e: Date = a; ->e : Date ->Date : Date ->a : any +>e : Date, Symbol(e, Decl(anyAssignableToEveryType.ts, 17, 3)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var f: any = a; ->f : any ->a : any +>f : any, Symbol(f, Decl(anyAssignableToEveryType.ts, 18, 3)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var g: void = a; ->g : void ->a : any +>g : void, Symbol(g, Decl(anyAssignableToEveryType.ts, 19, 3)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var h: Object = a; ->h : Object ->Object : Object ->a : any +>h : Object, Symbol(h, Decl(anyAssignableToEveryType.ts, 20, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var i: {} = a; ->i : {} ->a : any +>i : {}, Symbol(i, Decl(anyAssignableToEveryType.ts, 21, 3)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var j: () => {} = a; ->j : () => {} ->a : any +>j : () => {}, Symbol(j, Decl(anyAssignableToEveryType.ts, 22, 3)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var k: Function = a; ->k : Function ->Function : Function ->a : any +>k : Function, Symbol(k, Decl(anyAssignableToEveryType.ts, 23, 3)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var l: (x: number) => string = a; ->l : (x: number) => string ->x : number ->a : any +>l : (x: number) => string, Symbol(l, Decl(anyAssignableToEveryType.ts, 24, 3)) +>x : number, Symbol(x, Decl(anyAssignableToEveryType.ts, 24, 8)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) ac = a; >ac = a : any ->ac : C ->a : any +>ac : C, Symbol(ac, Decl(anyAssignableToEveryType.ts, 5, 3)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) ai = a; >ai = a : any ->ai : I ->a : any +>ai : I, Symbol(ai, Decl(anyAssignableToEveryType.ts, 9, 3)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) ae = a; >ae = a : any ->ae : E ->a : any +>ae : E, Symbol(ae, Decl(anyAssignableToEveryType.ts, 12, 3)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var m: number[] = a; ->m : number[] ->a : any +>m : number[], Symbol(m, Decl(anyAssignableToEveryType.ts, 28, 3)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var n: { foo: string } = a; ->n : { foo: string; } ->foo : string ->a : any +>n : { foo: string; }, Symbol(n, Decl(anyAssignableToEveryType.ts, 29, 3)) +>foo : string, Symbol(foo, Decl(anyAssignableToEveryType.ts, 29, 8)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var o: (x: T) => T = a; ->o : (x: T) => T ->T : T ->x : T ->T : T ->T : T ->a : any +>o : (x: T) => T, Symbol(o, Decl(anyAssignableToEveryType.ts, 30, 3)) +>T : T, Symbol(T, Decl(anyAssignableToEveryType.ts, 30, 8)) +>x : T, Symbol(x, Decl(anyAssignableToEveryType.ts, 30, 11)) +>T : T, Symbol(T, Decl(anyAssignableToEveryType.ts, 30, 8)) +>T : T, Symbol(T, Decl(anyAssignableToEveryType.ts, 30, 8)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var p: Number = a; ->p : Number ->Number : Number ->a : any +>p : Number, Symbol(p, Decl(anyAssignableToEveryType.ts, 31, 3)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) var q: String = a; ->q : String ->String : String ->a : any +>q : String, Symbol(q, Decl(anyAssignableToEveryType.ts, 32, 3)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) function foo(x: T, y: U, z: V) { ->foo : (x: T, y: U, z: V) => void ->T : T ->U : U ->V : V ->Date : Date ->x : T ->T : T ->y : U ->U : U ->z : V ->V : V +>foo : (x: T, y: U, z: V) => void, Symbol(foo, Decl(anyAssignableToEveryType.ts, 32, 18)) +>T : T, Symbol(T, Decl(anyAssignableToEveryType.ts, 34, 13)) +>U : U, Symbol(U, Decl(anyAssignableToEveryType.ts, 34, 15)) +>V : V, Symbol(V, Decl(anyAssignableToEveryType.ts, 34, 32)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : T, Symbol(x, Decl(anyAssignableToEveryType.ts, 34, 49)) +>T : T, Symbol(T, Decl(anyAssignableToEveryType.ts, 34, 13)) +>y : U, Symbol(y, Decl(anyAssignableToEveryType.ts, 34, 54)) +>U : U, Symbol(U, Decl(anyAssignableToEveryType.ts, 34, 15)) +>z : V, Symbol(z, Decl(anyAssignableToEveryType.ts, 34, 60)) +>V : V, Symbol(V, Decl(anyAssignableToEveryType.ts, 34, 32)) x = a; >x = a : any ->x : T ->a : any +>x : T, Symbol(x, Decl(anyAssignableToEveryType.ts, 34, 49)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) y = a; >y = a : any ->y : U ->a : any +>y : U, Symbol(y, Decl(anyAssignableToEveryType.ts, 34, 54)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) z = a; >z = a : any ->z : V ->a : any +>z : V, Symbol(z, Decl(anyAssignableToEveryType.ts, 34, 60)) +>a : any, Symbol(a, Decl(anyAssignableToEveryType.ts, 0, 3)) } //function foo(x: T, y: U, z: V) { diff --git a/tests/baselines/reference/anyInferenceAnonymousFunctions.types b/tests/baselines/reference/anyInferenceAnonymousFunctions.types index 8dc7fdcb90f..f434d147990 100644 --- a/tests/baselines/reference/anyInferenceAnonymousFunctions.types +++ b/tests/baselines/reference/anyInferenceAnonymousFunctions.types @@ -1,20 +1,20 @@ === tests/cases/compiler/anyInferenceAnonymousFunctions.ts === var paired: any[]; ->paired : any[] +>paired : any[], Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3)) paired.reduce(function (a1, a2) { >paired.reduce(function (a1, a2) { return a1.concat({});} , []) : any ->paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; } ->paired : any[] ->reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; } +>paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }, Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120)) +>paired : any[], Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3)) +>reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }, Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120)) >function (a1, a2) { return a1.concat({});} : (a1: any, a2: any) => any ->a1 : any ->a2 : any +>a1 : any, Symbol(a1, Decl(anyInferenceAnonymousFunctions.ts, 2, 24)) +>a2 : any, Symbol(a2, Decl(anyInferenceAnonymousFunctions.ts, 2, 27)) return a1.concat({}); >a1.concat({}) : any >a1.concat : any ->a1 : any +>a1 : any, Symbol(a1, Decl(anyInferenceAnonymousFunctions.ts, 2, 24)) >concat : any >{} : {} @@ -23,17 +23,17 @@ paired.reduce(function (a1, a2) { paired.reduce((b1, b2) => { >paired.reduce((b1, b2) => { return b1.concat({});} , []) : any ->paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; } ->paired : any[] ->reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; } +>paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }, Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120)) +>paired : any[], Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3)) +>reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }, Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120)) >(b1, b2) => { return b1.concat({});} : (b1: any, b2: any) => any ->b1 : any ->b2 : any +>b1 : any, Symbol(b1, Decl(anyInferenceAnonymousFunctions.ts, 8, 15)) +>b2 : any, Symbol(b2, Decl(anyInferenceAnonymousFunctions.ts, 8, 18)) return b1.concat({}); >b1.concat({}) : any >b1.concat : any ->b1 : any +>b1 : any, Symbol(b1, Decl(anyInferenceAnonymousFunctions.ts, 8, 15)) >concat : any >{} : {} @@ -42,38 +42,38 @@ paired.reduce((b1, b2) => { paired.reduce((b3, b4) => b3.concat({}), []); >paired.reduce((b3, b4) => b3.concat({}), []) : any ->paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; } ->paired : any[] ->reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; } +>paired.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }, Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120)) +>paired : any[], Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3)) +>reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }, Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120)) >(b3, b4) => b3.concat({}) : (b3: any, b4: any) => any ->b3 : any ->b4 : any +>b3 : any, Symbol(b3, Decl(anyInferenceAnonymousFunctions.ts, 13, 15)) +>b4 : any, Symbol(b4, Decl(anyInferenceAnonymousFunctions.ts, 13, 18)) >b3.concat({}) : any >b3.concat : any ->b3 : any +>b3 : any, Symbol(b3, Decl(anyInferenceAnonymousFunctions.ts, 13, 15)) >concat : any >{} : {} >[] : undefined[] paired.map((c1) => c1.count); >paired.map((c1) => c1.count) : any[] ->paired.map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[] ->paired : any[] ->map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[] +>paired.map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>paired : any[], Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3)) +>map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >(c1) => c1.count : (c1: any) => any ->c1 : any +>c1 : any, Symbol(c1, Decl(anyInferenceAnonymousFunctions.ts, 15, 12)) >c1.count : any ->c1 : any +>c1 : any, Symbol(c1, Decl(anyInferenceAnonymousFunctions.ts, 15, 12)) >count : any paired.map(function (c2) { return c2.count; }); >paired.map(function (c2) { return c2.count; }) : any[] ->paired.map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[] ->paired : any[] ->map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[] +>paired.map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>paired : any[], Symbol(paired, Decl(anyInferenceAnonymousFunctions.ts, 0, 3)) +>map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >function (c2) { return c2.count; } : (c2: any) => any ->c2 : any +>c2 : any, Symbol(c2, Decl(anyInferenceAnonymousFunctions.ts, 16, 21)) >c2.count : any ->c2 : any +>c2 : any, Symbol(c2, Decl(anyInferenceAnonymousFunctions.ts, 16, 21)) >count : any diff --git a/tests/baselines/reference/anyIsAssignableToObject.types b/tests/baselines/reference/anyIsAssignableToObject.types index 5df5d3b345f..73e1ef8b8dc 100644 --- a/tests/baselines/reference/anyIsAssignableToObject.types +++ b/tests/baselines/reference/anyIsAssignableToObject.types @@ -1,15 +1,15 @@ === tests/cases/compiler/anyIsAssignableToObject.ts === interface P { ->P : P +>P : P, Symbol(P, Decl(anyIsAssignableToObject.ts, 0, 0)) p: {}; ->p : {} +>p : {}, Symbol(p, Decl(anyIsAssignableToObject.ts, 0, 13)) } interface Q extends P { // Check assignability here. Any is assignable to {} ->Q : Q ->P : P +>Q : Q, Symbol(Q, Decl(anyIsAssignableToObject.ts, 2, 1)) +>P : P, Symbol(P, Decl(anyIsAssignableToObject.ts, 0, 0)) p: any; ->p : any +>p : any, Symbol(p, Decl(anyIsAssignableToObject.ts, 4, 23)) } diff --git a/tests/baselines/reference/anyIsAssignableToVoid.types b/tests/baselines/reference/anyIsAssignableToVoid.types index 0e1af90971f..33d2b35bef2 100644 --- a/tests/baselines/reference/anyIsAssignableToVoid.types +++ b/tests/baselines/reference/anyIsAssignableToVoid.types @@ -1,15 +1,15 @@ === tests/cases/compiler/anyIsAssignableToVoid.ts === interface P { ->P : P +>P : P, Symbol(P, Decl(anyIsAssignableToVoid.ts, 0, 0)) p: void; ->p : void +>p : void, Symbol(p, Decl(anyIsAssignableToVoid.ts, 0, 13)) } interface Q extends P { // check assignability here. any is assignable to void. ->Q : Q ->P : P +>Q : Q, Symbol(Q, Decl(anyIsAssignableToVoid.ts, 2, 1)) +>P : P, Symbol(P, Decl(anyIsAssignableToVoid.ts, 0, 0)) p: any; ->p : any +>p : any, Symbol(p, Decl(anyIsAssignableToVoid.ts, 4, 23)) } diff --git a/tests/baselines/reference/anyPlusAny1.types b/tests/baselines/reference/anyPlusAny1.types index aeda001eeaa..003781fb0f4 100644 --- a/tests/baselines/reference/anyPlusAny1.types +++ b/tests/baselines/reference/anyPlusAny1.types @@ -1,16 +1,17 @@ === tests/cases/compiler/anyPlusAny1.ts === var x; ->x : any +>x : any, Symbol(x, Decl(anyPlusAny1.ts, 0, 3)) x.name = "hello"; >x.name = "hello" : string >x.name : any ->x : any +>x : any, Symbol(x, Decl(anyPlusAny1.ts, 0, 3)) >name : any +>"hello" : string var z = x + x; ->z : any +>z : any, Symbol(z, Decl(anyPlusAny1.ts, 2, 3)) >x + x : any ->x : any ->x : any +>x : any, Symbol(x, Decl(anyPlusAny1.ts, 0, 3)) +>x : any, Symbol(x, Decl(anyPlusAny1.ts, 0, 3)) diff --git a/tests/baselines/reference/anyPropertyAccess.types b/tests/baselines/reference/anyPropertyAccess.types index 5ea20cefdd6..20ceabe687b 100644 --- a/tests/baselines/reference/anyPropertyAccess.types +++ b/tests/baselines/reference/anyPropertyAccess.types @@ -1,43 +1,47 @@ === tests/cases/conformance/types/any/anyPropertyAccess.ts === var x: any; ->x : any +>x : any, Symbol(x, Decl(anyPropertyAccess.ts, 0, 3)) var a = x.foo; ->a : any +>a : any, Symbol(a, Decl(anyPropertyAccess.ts, 1, 3)) >x.foo : any ->x : any +>x : any, Symbol(x, Decl(anyPropertyAccess.ts, 0, 3)) >foo : any var b = x['foo']; ->b : any +>b : any, Symbol(b, Decl(anyPropertyAccess.ts, 2, 3)) >x['foo'] : any ->x : any +>x : any, Symbol(x, Decl(anyPropertyAccess.ts, 0, 3)) +>'foo' : string var c = x['fn'](); ->c : any +>c : any, Symbol(c, Decl(anyPropertyAccess.ts, 3, 3)) >x['fn']() : any >x['fn'] : any ->x : any +>x : any, Symbol(x, Decl(anyPropertyAccess.ts, 0, 3)) +>'fn' : string var d = x.bar.baz; ->d : any +>d : any, Symbol(d, Decl(anyPropertyAccess.ts, 4, 3)) >x.bar.baz : any >x.bar : any ->x : any +>x : any, Symbol(x, Decl(anyPropertyAccess.ts, 0, 3)) >bar : any >baz : any var e = x[0].foo; ->e : any +>e : any, Symbol(e, Decl(anyPropertyAccess.ts, 5, 3)) >x[0].foo : any >x[0] : any ->x : any +>x : any, Symbol(x, Decl(anyPropertyAccess.ts, 0, 3)) +>0 : number >foo : any var f = x['0'].bar; ->f : any +>f : any, Symbol(f, Decl(anyPropertyAccess.ts, 6, 3)) >x['0'].bar : any >x['0'] : any ->x : any +>x : any, Symbol(x, Decl(anyPropertyAccess.ts, 0, 3)) +>'0' : string >bar : any diff --git a/tests/baselines/reference/argsInScope.types b/tests/baselines/reference/argsInScope.types index 010e5624039..52f474c11c9 100644 --- a/tests/baselines/reference/argsInScope.types +++ b/tests/baselines/reference/argsInScope.types @@ -1,22 +1,23 @@ === tests/cases/compiler/argsInScope.ts === class C { ->C : C +>C : C, Symbol(C, Decl(argsInScope.ts, 0, 0)) P(ii:number, j:number, k:number) { ->P : (ii: number, j: number, k: number) => void ->ii : number ->j : number ->k : number +>P : (ii: number, j: number, k: number) => void, Symbol(P, Decl(argsInScope.ts, 0, 9)) +>ii : number, Symbol(ii, Decl(argsInScope.ts, 1, 6)) +>j : number, Symbol(j, Decl(argsInScope.ts, 1, 16)) +>k : number, Symbol(k, Decl(argsInScope.ts, 1, 26)) for (var i = 0; i < arguments.length; i++) { ->i : number +>i : number, Symbol(i, Decl(argsInScope.ts, 2, 15)) +>0 : number >i < arguments.length : boolean ->i : number ->arguments.length : number ->arguments : IArguments ->length : number +>i : number, Symbol(i, Decl(argsInScope.ts, 2, 15)) +>arguments.length : number, Symbol(IArguments.length, Decl(lib.d.ts, 272, 25)) +>arguments : IArguments, Symbol(arguments) +>length : number, Symbol(IArguments.length, Decl(lib.d.ts, 272, 25)) >i++ : number ->i : number +>i : number, Symbol(i, Decl(argsInScope.ts, 2, 15)) // WScript.Echo("param: " + arguments[i]); } @@ -24,13 +25,16 @@ class C { } var c = new C(); ->c : C +>c : C, Symbol(c, Decl(argsInScope.ts, 8, 3)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(argsInScope.ts, 0, 0)) c.P(1,2,3); >c.P(1,2,3) : void ->c.P : (ii: number, j: number, k: number) => void ->c : C ->P : (ii: number, j: number, k: number) => void +>c.P : (ii: number, j: number, k: number) => void, Symbol(C.P, Decl(argsInScope.ts, 0, 9)) +>c : C, Symbol(c, Decl(argsInScope.ts, 8, 3)) +>P : (ii: number, j: number, k: number) => void, Symbol(C.P, Decl(argsInScope.ts, 0, 9)) +>1 : number +>2 : number +>3 : number diff --git a/tests/baselines/reference/arguments.types b/tests/baselines/reference/arguments.types index 1902e459316..c1d618e99b3 100644 --- a/tests/baselines/reference/arguments.types +++ b/tests/baselines/reference/arguments.types @@ -1,9 +1,10 @@ === tests/cases/compiler/arguments.ts === function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(arguments.ts, 0, 0)) var x=arguments[12]; ->x : any +>x : any, Symbol(x, Decl(arguments.ts, 1, 7)) >arguments[12] : any ->arguments : IArguments +>arguments : IArguments, Symbol(arguments) +>12 : number } diff --git a/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.types b/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.types index 697858534db..a2f20b8c2fd 100644 --- a/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.types +++ b/tests/baselines/reference/argumentsUsedInObjectLiteralProperty.types @@ -1,20 +1,20 @@ === tests/cases/compiler/argumentsUsedInObjectLiteralProperty.ts === class A { ->A : A +>A : A, Symbol(A, Decl(argumentsUsedInObjectLiteralProperty.ts, 0, 0)) public static createSelectableViewModel(initialState?: any, selectedValue?: any) { ->createSelectableViewModel : (initialState?: any, selectedValue?: any) => { selectedValue: number; } ->initialState : any ->selectedValue : any +>createSelectableViewModel : (initialState?: any, selectedValue?: any) => { selectedValue: number; }, Symbol(A.createSelectableViewModel, Decl(argumentsUsedInObjectLiteralProperty.ts, 0, 9)) +>initialState : any, Symbol(initialState, Decl(argumentsUsedInObjectLiteralProperty.ts, 1, 44)) +>selectedValue : any, Symbol(selectedValue, Decl(argumentsUsedInObjectLiteralProperty.ts, 1, 63)) return { >{ selectedValue: arguments.length } : { selectedValue: number; } selectedValue: arguments.length ->selectedValue : number ->arguments.length : number ->arguments : IArguments ->length : number +>selectedValue : number, Symbol(selectedValue, Decl(argumentsUsedInObjectLiteralProperty.ts, 2, 16)) +>arguments.length : number, Symbol(IArguments.length, Decl(lib.d.ts, 272, 25)) +>arguments : IArguments, Symbol(arguments) +>length : number, Symbol(IArguments.length, Decl(lib.d.ts, 272, 25)) }; } diff --git a/tests/baselines/reference/arithmeticOperatorWithAnyAndNumber.types b/tests/baselines/reference/arithmeticOperatorWithAnyAndNumber.types index f0120f328c4..2eea0222969 100644 --- a/tests/baselines/reference/arithmeticOperatorWithAnyAndNumber.types +++ b/tests/baselines/reference/arithmeticOperatorWithAnyAndNumber.types @@ -1,437 +1,497 @@ === tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithAnyAndNumber.ts === var a: any; ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) // operator * var ra1 = a * a; ->ra1 : number +>ra1 : number, Symbol(ra1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 4, 3)) >a * a : number ->a : any ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var ra2 = a * b; ->ra2 : number +>ra2 : number, Symbol(ra2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 5, 3)) >a * b : number ->a : any ->b : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var ra3 = a * 0; ->ra3 : number +>ra3 : number, Symbol(ra3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 6, 3)) >a * 0 : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>0 : number var ra4 = 0 * a; ->ra4 : number +>ra4 : number, Symbol(ra4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 7, 3)) >0 * a : number ->a : any +>0 : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var ra5 = 0 * 0; ->ra5 : number +>ra5 : number, Symbol(ra5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 8, 3)) >0 * 0 : number +>0 : number +>0 : number var ra6 = b * 0; ->ra6 : number +>ra6 : number, Symbol(ra6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 9, 3)) >b * 0 : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>0 : number var ra7 = 0 * b; ->ra7 : number +>ra7 : number, Symbol(ra7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 10, 3)) >0 * b : number ->b : number +>0 : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var ra8 = b * b; ->ra8 : number +>ra8 : number, Symbol(ra8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 11, 3)) >b * b : number ->b : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) // operator / var rb1 = a / a; ->rb1 : number +>rb1 : number, Symbol(rb1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 14, 3)) >a / a : number ->a : any ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rb2 = a / b; ->rb2 : number +>rb2 : number, Symbol(rb2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 15, 3)) >a / b : number ->a : any ->b : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rb3 = a / 0; ->rb3 : number +>rb3 : number, Symbol(rb3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 16, 3)) >a / 0 : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>0 : number var rb4 = 0 / a; ->rb4 : number +>rb4 : number, Symbol(rb4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 17, 3)) >0 / a : number ->a : any +>0 : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rb5 = 0 / 0; ->rb5 : number +>rb5 : number, Symbol(rb5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 18, 3)) >0 / 0 : number +>0 : number +>0 : number var rb6 = b / 0; ->rb6 : number +>rb6 : number, Symbol(rb6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 19, 3)) >b / 0 : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>0 : number var rb7 = 0 / b; ->rb7 : number +>rb7 : number, Symbol(rb7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 20, 3)) >0 / b : number ->b : number +>0 : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rb8 = b / b; ->rb8 : number +>rb8 : number, Symbol(rb8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 21, 3)) >b / b : number ->b : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) // operator % var rc1 = a % a; ->rc1 : number +>rc1 : number, Symbol(rc1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 24, 3)) >a % a : number ->a : any ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rc2 = a % b; ->rc2 : number +>rc2 : number, Symbol(rc2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 25, 3)) >a % b : number ->a : any ->b : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rc3 = a % 0; ->rc3 : number +>rc3 : number, Symbol(rc3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 26, 3)) >a % 0 : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>0 : number var rc4 = 0 % a; ->rc4 : number +>rc4 : number, Symbol(rc4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 27, 3)) >0 % a : number ->a : any +>0 : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rc5 = 0 % 0; ->rc5 : number +>rc5 : number, Symbol(rc5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 28, 3)) >0 % 0 : number +>0 : number +>0 : number var rc6 = b % 0; ->rc6 : number +>rc6 : number, Symbol(rc6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 29, 3)) >b % 0 : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>0 : number var rc7 = 0 % b; ->rc7 : number +>rc7 : number, Symbol(rc7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 30, 3)) >0 % b : number ->b : number +>0 : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rc8 = b % b; ->rc8 : number +>rc8 : number, Symbol(rc8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 31, 3)) >b % b : number ->b : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) // operator - var rd1 = a - a; ->rd1 : number +>rd1 : number, Symbol(rd1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 34, 3)) >a - a : number ->a : any ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rd2 = a - b; ->rd2 : number +>rd2 : number, Symbol(rd2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 35, 3)) >a - b : number ->a : any ->b : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rd3 = a - 0; ->rd3 : number +>rd3 : number, Symbol(rd3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 36, 3)) >a - 0 : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>0 : number var rd4 = 0 - a; ->rd4 : number +>rd4 : number, Symbol(rd4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 37, 3)) >0 - a : number ->a : any +>0 : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rd5 = 0 - 0; ->rd5 : number +>rd5 : number, Symbol(rd5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 38, 3)) >0 - 0 : number +>0 : number +>0 : number var rd6 = b - 0; ->rd6 : number +>rd6 : number, Symbol(rd6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 39, 3)) >b - 0 : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>0 : number var rd7 = 0 - b; ->rd7 : number +>rd7 : number, Symbol(rd7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 40, 3)) >0 - b : number ->b : number +>0 : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rd8 = b - b; ->rd8 : number +>rd8 : number, Symbol(rd8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 41, 3)) >b - b : number ->b : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) // operator << var re1 = a << a; ->re1 : number +>re1 : number, Symbol(re1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 44, 3)) >a << a : number ->a : any ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var re2 = a << b; ->re2 : number +>re2 : number, Symbol(re2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 45, 3)) >a << b : number ->a : any ->b : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var re3 = a << 0; ->re3 : number +>re3 : number, Symbol(re3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 46, 3)) >a << 0 : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>0 : number var re4 = 0 << a; ->re4 : number +>re4 : number, Symbol(re4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 47, 3)) >0 << a : number ->a : any +>0 : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var re5 = 0 << 0; ->re5 : number +>re5 : number, Symbol(re5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 48, 3)) >0 << 0 : number +>0 : number +>0 : number var re6 = b << 0; ->re6 : number +>re6 : number, Symbol(re6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 49, 3)) >b << 0 : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>0 : number var re7 = 0 << b; ->re7 : number +>re7 : number, Symbol(re7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 50, 3)) >0 << b : number ->b : number +>0 : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var re8 = b << b; ->re8 : number +>re8 : number, Symbol(re8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 51, 3)) >b << b : number ->b : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) // operator >> var rf1 = a >> a; ->rf1 : number +>rf1 : number, Symbol(rf1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 54, 3)) >a >> a : number ->a : any ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rf2 = a >> b; ->rf2 : number +>rf2 : number, Symbol(rf2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 55, 3)) >a >> b : number ->a : any ->b : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rf3 = a >> 0; ->rf3 : number +>rf3 : number, Symbol(rf3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 56, 3)) >a >> 0 : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>0 : number var rf4 = 0 >> a; ->rf4 : number +>rf4 : number, Symbol(rf4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 57, 3)) >0 >> a : number ->a : any +>0 : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rf5 = 0 >> 0; ->rf5 : number +>rf5 : number, Symbol(rf5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 58, 3)) >0 >> 0 : number +>0 : number +>0 : number var rf6 = b >> 0; ->rf6 : number +>rf6 : number, Symbol(rf6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 59, 3)) >b >> 0 : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>0 : number var rf7 = 0 >> b; ->rf7 : number +>rf7 : number, Symbol(rf7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 60, 3)) >0 >> b : number ->b : number +>0 : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rf8 = b >> b; ->rf8 : number +>rf8 : number, Symbol(rf8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 61, 3)) >b >> b : number ->b : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) // operator >>> var rg1 = a >>> a; ->rg1 : number +>rg1 : number, Symbol(rg1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 64, 3)) >a >>> a : number ->a : any ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rg2 = a >>> b; ->rg2 : number +>rg2 : number, Symbol(rg2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 65, 3)) >a >>> b : number ->a : any ->b : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rg3 = a >>> 0; ->rg3 : number +>rg3 : number, Symbol(rg3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 66, 3)) >a >>> 0 : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>0 : number var rg4 = 0 >>> a; ->rg4 : number +>rg4 : number, Symbol(rg4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 67, 3)) >0 >>> a : number ->a : any +>0 : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rg5 = 0 >>> 0; ->rg5 : number +>rg5 : number, Symbol(rg5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 68, 3)) >0 >>> 0 : number +>0 : number +>0 : number var rg6 = b >>> 0; ->rg6 : number +>rg6 : number, Symbol(rg6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 69, 3)) >b >>> 0 : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>0 : number var rg7 = 0 >>> b; ->rg7 : number +>rg7 : number, Symbol(rg7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 70, 3)) >0 >>> b : number ->b : number +>0 : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rg8 = b >>> b; ->rg8 : number +>rg8 : number, Symbol(rg8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 71, 3)) >b >>> b : number ->b : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) // operator & var rh1 = a & a; ->rh1 : number +>rh1 : number, Symbol(rh1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 74, 3)) >a & a : number ->a : any ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rh2 = a & b; ->rh2 : number +>rh2 : number, Symbol(rh2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 75, 3)) >a & b : number ->a : any ->b : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rh3 = a & 0; ->rh3 : number +>rh3 : number, Symbol(rh3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 76, 3)) >a & 0 : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>0 : number var rh4 = 0 & a; ->rh4 : number +>rh4 : number, Symbol(rh4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 77, 3)) >0 & a : number ->a : any +>0 : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rh5 = 0 & 0; ->rh5 : number +>rh5 : number, Symbol(rh5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 78, 3)) >0 & 0 : number +>0 : number +>0 : number var rh6 = b & 0; ->rh6 : number +>rh6 : number, Symbol(rh6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 79, 3)) >b & 0 : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>0 : number var rh7 = 0 & b; ->rh7 : number +>rh7 : number, Symbol(rh7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 80, 3)) >0 & b : number ->b : number +>0 : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rh8 = b & b; ->rh8 : number +>rh8 : number, Symbol(rh8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 81, 3)) >b & b : number ->b : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) // operator ^ var ri1 = a ^ a; ->ri1 : number +>ri1 : number, Symbol(ri1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 84, 3)) >a ^ a : number ->a : any ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var ri2 = a ^ b; ->ri2 : number +>ri2 : number, Symbol(ri2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 85, 3)) >a ^ b : number ->a : any ->b : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var ri3 = a ^ 0; ->ri3 : number +>ri3 : number, Symbol(ri3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 86, 3)) >a ^ 0 : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>0 : number var ri4 = 0 ^ a; ->ri4 : number +>ri4 : number, Symbol(ri4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 87, 3)) >0 ^ a : number ->a : any +>0 : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var ri5 = 0 ^ 0; ->ri5 : number +>ri5 : number, Symbol(ri5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 88, 3)) >0 ^ 0 : number +>0 : number +>0 : number var ri6 = b ^ 0; ->ri6 : number +>ri6 : number, Symbol(ri6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 89, 3)) >b ^ 0 : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>0 : number var ri7 = 0 ^ b; ->ri7 : number +>ri7 : number, Symbol(ri7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 90, 3)) >0 ^ b : number ->b : number +>0 : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var ri8 = b ^ b; ->ri8 : number +>ri8 : number, Symbol(ri8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 91, 3)) >b ^ b : number ->b : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) // operator | var rj1 = a | a; ->rj1 : number +>rj1 : number, Symbol(rj1, Decl(arithmeticOperatorWithAnyAndNumber.ts, 94, 3)) >a | a : number ->a : any ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rj2 = a | b; ->rj2 : number +>rj2 : number, Symbol(rj2, Decl(arithmeticOperatorWithAnyAndNumber.ts, 95, 3)) >a | b : number ->a : any ->b : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rj3 = a | 0; ->rj3 : number +>rj3 : number, Symbol(rj3, Decl(arithmeticOperatorWithAnyAndNumber.ts, 96, 3)) >a | 0 : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) +>0 : number var rj4 = 0 | a; ->rj4 : number +>rj4 : number, Symbol(rj4, Decl(arithmeticOperatorWithAnyAndNumber.ts, 97, 3)) >0 | a : number ->a : any +>0 : number +>a : any, Symbol(a, Decl(arithmeticOperatorWithAnyAndNumber.ts, 0, 3)) var rj5 = 0 | 0; ->rj5 : number +>rj5 : number, Symbol(rj5, Decl(arithmeticOperatorWithAnyAndNumber.ts, 98, 3)) >0 | 0 : number +>0 : number +>0 : number var rj6 = b | 0; ->rj6 : number +>rj6 : number, Symbol(rj6, Decl(arithmeticOperatorWithAnyAndNumber.ts, 99, 3)) >b | 0 : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>0 : number var rj7 = 0 | b; ->rj7 : number +>rj7 : number, Symbol(rj7, Decl(arithmeticOperatorWithAnyAndNumber.ts, 100, 3)) >0 | b : number ->b : number +>0 : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) var rj8 = b | b; ->rj8 : number +>rj8 : number, Symbol(rj8, Decl(arithmeticOperatorWithAnyAndNumber.ts, 101, 3)) >b | b : number ->b : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithAnyAndNumber.ts, 1, 3)) diff --git a/tests/baselines/reference/arithmeticOperatorWithEnum.types b/tests/baselines/reference/arithmeticOperatorWithEnum.types index 2f4ebce8f32..923163200d5 100644 --- a/tests/baselines/reference/arithmeticOperatorWithEnum.types +++ b/tests/baselines/reference/arithmeticOperatorWithEnum.types @@ -2,892 +2,912 @@ // operands of an enum type are treated as having the primitive type Number. enum E { ->E : E +>E : E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) a, ->a : E +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) b ->b : E +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) } var a: any; ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var c: E; ->c : E ->E : E +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>E : E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) // operator * var ra1 = c * a; ->ra1 : number +>ra1 : number, Symbol(ra1, Decl(arithmeticOperatorWithEnum.ts, 12, 3)) >c * a : number ->c : E ->a : any +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var ra2 = c * b; ->ra2 : number +>ra2 : number, Symbol(ra2, Decl(arithmeticOperatorWithEnum.ts, 13, 3)) >c * b : number ->c : E ->b : number +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var ra3 = c * c; ->ra3 : number +>ra3 : number, Symbol(ra3, Decl(arithmeticOperatorWithEnum.ts, 14, 3)) >c * c : number ->c : E ->c : E +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var ra4 = a * c; ->ra4 : number +>ra4 : number, Symbol(ra4, Decl(arithmeticOperatorWithEnum.ts, 15, 3)) >a * c : number ->a : any ->c : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var ra5 = b * c; ->ra5 : number +>ra5 : number, Symbol(ra5, Decl(arithmeticOperatorWithEnum.ts, 16, 3)) >b * c : number ->b : number ->c : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var ra6 = E.a * a; ->ra6 : number +>ra6 : number, Symbol(ra6, Decl(arithmeticOperatorWithEnum.ts, 17, 3)) >E.a * a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var ra7 = E.a * b; ->ra7 : number +>ra7 : number, Symbol(ra7, Decl(arithmeticOperatorWithEnum.ts, 18, 3)) >E.a * b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var ra8 = E.a * E.b; ->ra8 : number +>ra8 : number, Symbol(ra8, Decl(arithmeticOperatorWithEnum.ts, 19, 3)) >E.a * E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var ra9 = E.a * 1; ->ra9 : number +>ra9 : number, Symbol(ra9, Decl(arithmeticOperatorWithEnum.ts, 20, 3)) >E.a * 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>1 : number var ra10 = a * E.b; ->ra10 : number +>ra10 : number, Symbol(ra10, Decl(arithmeticOperatorWithEnum.ts, 21, 3)) >a * E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var ra11 = b * E.b; ->ra11 : number +>ra11 : number, Symbol(ra11, Decl(arithmeticOperatorWithEnum.ts, 22, 3)) >b * E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var ra12 = 1 * E.b; ->ra12 : number +>ra12 : number, Symbol(ra12, Decl(arithmeticOperatorWithEnum.ts, 23, 3)) >1 * E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) // operator / var rb1 = c / a; ->rb1 : number +>rb1 : number, Symbol(rb1, Decl(arithmeticOperatorWithEnum.ts, 26, 3)) >c / a : number ->c : E ->a : any +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rb2 = c / b; ->rb2 : number +>rb2 : number, Symbol(rb2, Decl(arithmeticOperatorWithEnum.ts, 27, 3)) >c / b : number ->c : E ->b : number +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rb3 = c / c; ->rb3 : number +>rb3 : number, Symbol(rb3, Decl(arithmeticOperatorWithEnum.ts, 28, 3)) >c / c : number ->c : E ->c : E +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rb4 = a / c; ->rb4 : number +>rb4 : number, Symbol(rb4, Decl(arithmeticOperatorWithEnum.ts, 29, 3)) >a / c : number ->a : any ->c : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rb5 = b / c; ->rb5 : number +>rb5 : number, Symbol(rb5, Decl(arithmeticOperatorWithEnum.ts, 30, 3)) >b / c : number ->b : number ->c : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rb6 = E.a / a; ->rb6 : number +>rb6 : number, Symbol(rb6, Decl(arithmeticOperatorWithEnum.ts, 31, 3)) >E.a / a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rb7 = E.a / b; ->rb7 : number +>rb7 : number, Symbol(rb7, Decl(arithmeticOperatorWithEnum.ts, 32, 3)) >E.a / b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rb8 = E.a / E.b; ->rb8 : number +>rb8 : number, Symbol(rb8, Decl(arithmeticOperatorWithEnum.ts, 33, 3)) >E.a / E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rb9 = E.a / 1; ->rb9 : number +>rb9 : number, Symbol(rb9, Decl(arithmeticOperatorWithEnum.ts, 34, 3)) >E.a / 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>1 : number var rb10 = a / E.b; ->rb10 : number +>rb10 : number, Symbol(rb10, Decl(arithmeticOperatorWithEnum.ts, 35, 3)) >a / E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rb11 = b / E.b; ->rb11 : number +>rb11 : number, Symbol(rb11, Decl(arithmeticOperatorWithEnum.ts, 36, 3)) >b / E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rb12 = 1 / E.b; ->rb12 : number +>rb12 : number, Symbol(rb12, Decl(arithmeticOperatorWithEnum.ts, 37, 3)) >1 / E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) // operator % var rc1 = c % a; ->rc1 : number +>rc1 : number, Symbol(rc1, Decl(arithmeticOperatorWithEnum.ts, 40, 3)) >c % a : number ->c : E ->a : any +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rc2 = c % b; ->rc2 : number +>rc2 : number, Symbol(rc2, Decl(arithmeticOperatorWithEnum.ts, 41, 3)) >c % b : number ->c : E ->b : number +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rc3 = c % c; ->rc3 : number +>rc3 : number, Symbol(rc3, Decl(arithmeticOperatorWithEnum.ts, 42, 3)) >c % c : number ->c : E ->c : E +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rc4 = a % c; ->rc4 : number +>rc4 : number, Symbol(rc4, Decl(arithmeticOperatorWithEnum.ts, 43, 3)) >a % c : number ->a : any ->c : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rc5 = b % c; ->rc5 : number +>rc5 : number, Symbol(rc5, Decl(arithmeticOperatorWithEnum.ts, 44, 3)) >b % c : number ->b : number ->c : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rc6 = E.a % a; ->rc6 : number +>rc6 : number, Symbol(rc6, Decl(arithmeticOperatorWithEnum.ts, 45, 3)) >E.a % a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rc7 = E.a % b; ->rc7 : number +>rc7 : number, Symbol(rc7, Decl(arithmeticOperatorWithEnum.ts, 46, 3)) >E.a % b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rc8 = E.a % E.b; ->rc8 : number +>rc8 : number, Symbol(rc8, Decl(arithmeticOperatorWithEnum.ts, 47, 3)) >E.a % E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rc9 = E.a % 1; ->rc9 : number +>rc9 : number, Symbol(rc9, Decl(arithmeticOperatorWithEnum.ts, 48, 3)) >E.a % 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>1 : number var rc10 = a % E.b; ->rc10 : number +>rc10 : number, Symbol(rc10, Decl(arithmeticOperatorWithEnum.ts, 49, 3)) >a % E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rc11 = b % E.b; ->rc11 : number +>rc11 : number, Symbol(rc11, Decl(arithmeticOperatorWithEnum.ts, 50, 3)) >b % E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rc12 = 1 % E.b; ->rc12 : number +>rc12 : number, Symbol(rc12, Decl(arithmeticOperatorWithEnum.ts, 51, 3)) >1 % E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) // operator - var rd1 = c - a; ->rd1 : number +>rd1 : number, Symbol(rd1, Decl(arithmeticOperatorWithEnum.ts, 54, 3)) >c - a : number ->c : E ->a : any +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rd2 = c - b; ->rd2 : number +>rd2 : number, Symbol(rd2, Decl(arithmeticOperatorWithEnum.ts, 55, 3)) >c - b : number ->c : E ->b : number +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rd3 = c - c; ->rd3 : number +>rd3 : number, Symbol(rd3, Decl(arithmeticOperatorWithEnum.ts, 56, 3)) >c - c : number ->c : E ->c : E +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rd4 = a - c; ->rd4 : number +>rd4 : number, Symbol(rd4, Decl(arithmeticOperatorWithEnum.ts, 57, 3)) >a - c : number ->a : any ->c : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rd5 = b - c; ->rd5 : number +>rd5 : number, Symbol(rd5, Decl(arithmeticOperatorWithEnum.ts, 58, 3)) >b - c : number ->b : number ->c : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rd6 = E.a - a; ->rd6 : number +>rd6 : number, Symbol(rd6, Decl(arithmeticOperatorWithEnum.ts, 59, 3)) >E.a - a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rd7 = E.a - b; ->rd7 : number +>rd7 : number, Symbol(rd7, Decl(arithmeticOperatorWithEnum.ts, 60, 3)) >E.a - b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rd8 = E.a - E.b; ->rd8 : number +>rd8 : number, Symbol(rd8, Decl(arithmeticOperatorWithEnum.ts, 61, 3)) >E.a - E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rd9 = E.a - 1; ->rd9 : number +>rd9 : number, Symbol(rd9, Decl(arithmeticOperatorWithEnum.ts, 62, 3)) >E.a - 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>1 : number var rd10 = a - E.b; ->rd10 : number +>rd10 : number, Symbol(rd10, Decl(arithmeticOperatorWithEnum.ts, 63, 3)) >a - E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rd11 = b - E.b; ->rd11 : number +>rd11 : number, Symbol(rd11, Decl(arithmeticOperatorWithEnum.ts, 64, 3)) >b - E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rd12 = 1 - E.b; ->rd12 : number +>rd12 : number, Symbol(rd12, Decl(arithmeticOperatorWithEnum.ts, 65, 3)) >1 - E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) // operator << var re1 = c << a; ->re1 : number +>re1 : number, Symbol(re1, Decl(arithmeticOperatorWithEnum.ts, 68, 3)) >c << a : number ->c : E ->a : any +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var re2 = c << b; ->re2 : number +>re2 : number, Symbol(re2, Decl(arithmeticOperatorWithEnum.ts, 69, 3)) >c << b : number ->c : E ->b : number +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var re3 = c << c; ->re3 : number +>re3 : number, Symbol(re3, Decl(arithmeticOperatorWithEnum.ts, 70, 3)) >c << c : number ->c : E ->c : E +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var re4 = a << c; ->re4 : number +>re4 : number, Symbol(re4, Decl(arithmeticOperatorWithEnum.ts, 71, 3)) >a << c : number ->a : any ->c : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var re5 = b << c; ->re5 : number +>re5 : number, Symbol(re5, Decl(arithmeticOperatorWithEnum.ts, 72, 3)) >b << c : number ->b : number ->c : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var re6 = E.a << a; ->re6 : number +>re6 : number, Symbol(re6, Decl(arithmeticOperatorWithEnum.ts, 73, 3)) >E.a << a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var re7 = E.a << b; ->re7 : number +>re7 : number, Symbol(re7, Decl(arithmeticOperatorWithEnum.ts, 74, 3)) >E.a << b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var re8 = E.a << E.b; ->re8 : number +>re8 : number, Symbol(re8, Decl(arithmeticOperatorWithEnum.ts, 75, 3)) >E.a << E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var re9 = E.a << 1; ->re9 : number +>re9 : number, Symbol(re9, Decl(arithmeticOperatorWithEnum.ts, 76, 3)) >E.a << 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>1 : number var re10 = a << E.b; ->re10 : number +>re10 : number, Symbol(re10, Decl(arithmeticOperatorWithEnum.ts, 77, 3)) >a << E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var re11 = b << E.b; ->re11 : number +>re11 : number, Symbol(re11, Decl(arithmeticOperatorWithEnum.ts, 78, 3)) >b << E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var re12 = 1 << E.b; ->re12 : number +>re12 : number, Symbol(re12, Decl(arithmeticOperatorWithEnum.ts, 79, 3)) >1 << E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) // operator >> var rf1 = c >> a; ->rf1 : number +>rf1 : number, Symbol(rf1, Decl(arithmeticOperatorWithEnum.ts, 82, 3)) >c >> a : number ->c : E ->a : any +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rf2 = c >> b; ->rf2 : number +>rf2 : number, Symbol(rf2, Decl(arithmeticOperatorWithEnum.ts, 83, 3)) >c >> b : number ->c : E ->b : number +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rf3 = c >> c; ->rf3 : number +>rf3 : number, Symbol(rf3, Decl(arithmeticOperatorWithEnum.ts, 84, 3)) >c >> c : number ->c : E ->c : E +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rf4 = a >> c; ->rf4 : number +>rf4 : number, Symbol(rf4, Decl(arithmeticOperatorWithEnum.ts, 85, 3)) >a >> c : number ->a : any ->c : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rf5 = b >> c; ->rf5 : number +>rf5 : number, Symbol(rf5, Decl(arithmeticOperatorWithEnum.ts, 86, 3)) >b >> c : number ->b : number ->c : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rf6 = E.a >> a; ->rf6 : number +>rf6 : number, Symbol(rf6, Decl(arithmeticOperatorWithEnum.ts, 87, 3)) >E.a >> a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rf7 = E.a >> b; ->rf7 : number +>rf7 : number, Symbol(rf7, Decl(arithmeticOperatorWithEnum.ts, 88, 3)) >E.a >> b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rf8 = E.a >> E.b; ->rf8 : number +>rf8 : number, Symbol(rf8, Decl(arithmeticOperatorWithEnum.ts, 89, 3)) >E.a >> E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rf9 = E.a >> 1; ->rf9 : number +>rf9 : number, Symbol(rf9, Decl(arithmeticOperatorWithEnum.ts, 90, 3)) >E.a >> 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>1 : number var rf10 = a >> E.b; ->rf10 : number +>rf10 : number, Symbol(rf10, Decl(arithmeticOperatorWithEnum.ts, 91, 3)) >a >> E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rf11 = b >> E.b; ->rf11 : number +>rf11 : number, Symbol(rf11, Decl(arithmeticOperatorWithEnum.ts, 92, 3)) >b >> E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rf12 = 1 >> E.b; ->rf12 : number +>rf12 : number, Symbol(rf12, Decl(arithmeticOperatorWithEnum.ts, 93, 3)) >1 >> E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) // operator >>> var rg1 = c >>> a; ->rg1 : number +>rg1 : number, Symbol(rg1, Decl(arithmeticOperatorWithEnum.ts, 96, 3)) >c >>> a : number ->c : E ->a : any +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rg2 = c >>> b; ->rg2 : number +>rg2 : number, Symbol(rg2, Decl(arithmeticOperatorWithEnum.ts, 97, 3)) >c >>> b : number ->c : E ->b : number +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rg3 = c >>> c; ->rg3 : number +>rg3 : number, Symbol(rg3, Decl(arithmeticOperatorWithEnum.ts, 98, 3)) >c >>> c : number ->c : E ->c : E +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rg4 = a >>> c; ->rg4 : number +>rg4 : number, Symbol(rg4, Decl(arithmeticOperatorWithEnum.ts, 99, 3)) >a >>> c : number ->a : any ->c : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rg5 = b >>> c; ->rg5 : number +>rg5 : number, Symbol(rg5, Decl(arithmeticOperatorWithEnum.ts, 100, 3)) >b >>> c : number ->b : number ->c : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rg6 = E.a >>> a; ->rg6 : number +>rg6 : number, Symbol(rg6, Decl(arithmeticOperatorWithEnum.ts, 101, 3)) >E.a >>> a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rg7 = E.a >>> b; ->rg7 : number +>rg7 : number, Symbol(rg7, Decl(arithmeticOperatorWithEnum.ts, 102, 3)) >E.a >>> b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rg8 = E.a >>> E.b; ->rg8 : number +>rg8 : number, Symbol(rg8, Decl(arithmeticOperatorWithEnum.ts, 103, 3)) >E.a >>> E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rg9 = E.a >>> 1; ->rg9 : number +>rg9 : number, Symbol(rg9, Decl(arithmeticOperatorWithEnum.ts, 104, 3)) >E.a >>> 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>1 : number var rg10 = a >>> E.b; ->rg10 : number +>rg10 : number, Symbol(rg10, Decl(arithmeticOperatorWithEnum.ts, 105, 3)) >a >>> E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rg11 = b >>> E.b; ->rg11 : number +>rg11 : number, Symbol(rg11, Decl(arithmeticOperatorWithEnum.ts, 106, 3)) >b >>> E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rg12 = 1 >>> E.b; ->rg12 : number +>rg12 : number, Symbol(rg12, Decl(arithmeticOperatorWithEnum.ts, 107, 3)) >1 >>> E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) // operator & var rh1 = c & a; ->rh1 : number +>rh1 : number, Symbol(rh1, Decl(arithmeticOperatorWithEnum.ts, 110, 3)) >c & a : number ->c : E ->a : any +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rh2 = c & b; ->rh2 : number +>rh2 : number, Symbol(rh2, Decl(arithmeticOperatorWithEnum.ts, 111, 3)) >c & b : number ->c : E ->b : number +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rh3 = c & c; ->rh3 : number +>rh3 : number, Symbol(rh3, Decl(arithmeticOperatorWithEnum.ts, 112, 3)) >c & c : number ->c : E ->c : E +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rh4 = a & c; ->rh4 : number +>rh4 : number, Symbol(rh4, Decl(arithmeticOperatorWithEnum.ts, 113, 3)) >a & c : number ->a : any ->c : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rh5 = b & c; ->rh5 : number +>rh5 : number, Symbol(rh5, Decl(arithmeticOperatorWithEnum.ts, 114, 3)) >b & c : number ->b : number ->c : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rh6 = E.a & a; ->rh6 : number +>rh6 : number, Symbol(rh6, Decl(arithmeticOperatorWithEnum.ts, 115, 3)) >E.a & a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rh7 = E.a & b; ->rh7 : number +>rh7 : number, Symbol(rh7, Decl(arithmeticOperatorWithEnum.ts, 116, 3)) >E.a & b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rh8 = E.a & E.b; ->rh8 : number +>rh8 : number, Symbol(rh8, Decl(arithmeticOperatorWithEnum.ts, 117, 3)) >E.a & E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rh9 = E.a & 1; ->rh9 : number +>rh9 : number, Symbol(rh9, Decl(arithmeticOperatorWithEnum.ts, 118, 3)) >E.a & 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>1 : number var rh10 = a & E.b; ->rh10 : number +>rh10 : number, Symbol(rh10, Decl(arithmeticOperatorWithEnum.ts, 119, 3)) >a & E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rh11 = b & E.b; ->rh11 : number +>rh11 : number, Symbol(rh11, Decl(arithmeticOperatorWithEnum.ts, 120, 3)) >b & E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rh12 = 1 & E.b; ->rh12 : number +>rh12 : number, Symbol(rh12, Decl(arithmeticOperatorWithEnum.ts, 121, 3)) >1 & E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) // operator ^ var ri1 = c ^ a; ->ri1 : number +>ri1 : number, Symbol(ri1, Decl(arithmeticOperatorWithEnum.ts, 124, 3)) >c ^ a : number ->c : E ->a : any +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var ri2 = c ^ b; ->ri2 : number +>ri2 : number, Symbol(ri2, Decl(arithmeticOperatorWithEnum.ts, 125, 3)) >c ^ b : number ->c : E ->b : number +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var ri3 = c ^ c; ->ri3 : number +>ri3 : number, Symbol(ri3, Decl(arithmeticOperatorWithEnum.ts, 126, 3)) >c ^ c : number ->c : E ->c : E +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var ri4 = a ^ c; ->ri4 : number +>ri4 : number, Symbol(ri4, Decl(arithmeticOperatorWithEnum.ts, 127, 3)) >a ^ c : number ->a : any ->c : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var ri5 = b ^ c; ->ri5 : number +>ri5 : number, Symbol(ri5, Decl(arithmeticOperatorWithEnum.ts, 128, 3)) >b ^ c : number ->b : number ->c : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var ri6 = E.a ^ a; ->ri6 : number +>ri6 : number, Symbol(ri6, Decl(arithmeticOperatorWithEnum.ts, 129, 3)) >E.a ^ a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var ri7 = E.a ^ b; ->ri7 : number +>ri7 : number, Symbol(ri7, Decl(arithmeticOperatorWithEnum.ts, 130, 3)) >E.a ^ b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var ri8 = E.a ^ E.b; ->ri8 : number +>ri8 : number, Symbol(ri8, Decl(arithmeticOperatorWithEnum.ts, 131, 3)) >E.a ^ E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var ri9 = E.a ^ 1; ->ri9 : number +>ri9 : number, Symbol(ri9, Decl(arithmeticOperatorWithEnum.ts, 132, 3)) >E.a ^ 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>1 : number var ri10 = a ^ E.b; ->ri10 : number +>ri10 : number, Symbol(ri10, Decl(arithmeticOperatorWithEnum.ts, 133, 3)) >a ^ E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var ri11 = b ^ E.b; ->ri11 : number +>ri11 : number, Symbol(ri11, Decl(arithmeticOperatorWithEnum.ts, 134, 3)) >b ^ E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var ri12 = 1 ^ E.b; ->ri12 : number +>ri12 : number, Symbol(ri12, Decl(arithmeticOperatorWithEnum.ts, 135, 3)) >1 ^ E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) // operator | var rj1 = c | a; ->rj1 : number +>rj1 : number, Symbol(rj1, Decl(arithmeticOperatorWithEnum.ts, 138, 3)) >c | a : number ->c : E ->a : any +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rj2 = c | b; ->rj2 : number +>rj2 : number, Symbol(rj2, Decl(arithmeticOperatorWithEnum.ts, 139, 3)) >c | b : number ->c : E ->b : number +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rj3 = c | c; ->rj3 : number +>rj3 : number, Symbol(rj3, Decl(arithmeticOperatorWithEnum.ts, 140, 3)) >c | c : number ->c : E ->c : E +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rj4 = a | c; ->rj4 : number +>rj4 : number, Symbol(rj4, Decl(arithmeticOperatorWithEnum.ts, 141, 3)) >a | c : number ->a : any ->c : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rj5 = b | c; ->rj5 : number +>rj5 : number, Symbol(rj5, Decl(arithmeticOperatorWithEnum.ts, 142, 3)) >b | c : number ->b : number ->c : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>c : E, Symbol(c, Decl(arithmeticOperatorWithEnum.ts, 9, 3)) var rj6 = E.a | a; ->rj6 : number +>rj6 : number, Symbol(rj6, Decl(arithmeticOperatorWithEnum.ts, 143, 3)) >E.a | a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) var rj7 = E.a | b; ->rj7 : number +>rj7 : number, Symbol(rj7, Decl(arithmeticOperatorWithEnum.ts, 144, 3)) >E.a | b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) var rj8 = E.a | E.b; ->rj8 : number +>rj8 : number, Symbol(rj8, Decl(arithmeticOperatorWithEnum.ts, 145, 3)) >E.a | E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rj9 = E.a | 1; ->rj9 : number +>rj9 : number, Symbol(rj9, Decl(arithmeticOperatorWithEnum.ts, 146, 3)) >E.a | 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnum.ts, 2, 8)) +>1 : number var rj10 = a | E.b; ->rj10 : number +>rj10 : number, Symbol(rj10, Decl(arithmeticOperatorWithEnum.ts, 147, 3)) >a | E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnum.ts, 7, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rj11 = b | E.b; ->rj11 : number +>rj11 : number, Symbol(rj11, Decl(arithmeticOperatorWithEnum.ts, 148, 3)) >b | E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnum.ts, 8, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) var rj12 = 1 | E.b; ->rj12 : number +>rj12 : number, Symbol(rj12, Decl(arithmeticOperatorWithEnum.ts, 149, 3)) >1 | E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnum.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnum.ts, 3, 6)) diff --git a/tests/baselines/reference/arithmeticOperatorWithEnumUnion.types b/tests/baselines/reference/arithmeticOperatorWithEnumUnion.types index 7b65ddf7f00..698be4feb7f 100644 --- a/tests/baselines/reference/arithmeticOperatorWithEnumUnion.types +++ b/tests/baselines/reference/arithmeticOperatorWithEnumUnion.types @@ -2,902 +2,922 @@ // operands of an enum type are treated as having the primitive type Number. enum E { ->E : E +>E : E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) a, ->a : E +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) b ->b : E +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) } enum F { ->F : F +>F : F, Symbol(F, Decl(arithmeticOperatorWithEnumUnion.ts, 5, 1)) c, ->c : F +>c : F, Symbol(F.c, Decl(arithmeticOperatorWithEnumUnion.ts, 6, 8)) d ->d : F +>d : F, Symbol(F.d, Decl(arithmeticOperatorWithEnumUnion.ts, 7, 6)) } var a: any; ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var c: E | F; ->c : E | F ->E : E ->F : F +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>E : E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>F : F, Symbol(F, Decl(arithmeticOperatorWithEnumUnion.ts, 5, 1)) // operator * var ra1 = c * a; ->ra1 : number +>ra1 : number, Symbol(ra1, Decl(arithmeticOperatorWithEnumUnion.ts, 16, 3)) >c * a : number ->c : E | F ->a : any +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var ra2 = c * b; ->ra2 : number +>ra2 : number, Symbol(ra2, Decl(arithmeticOperatorWithEnumUnion.ts, 17, 3)) >c * b : number ->c : E | F ->b : number +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var ra3 = c * c; ->ra3 : number +>ra3 : number, Symbol(ra3, Decl(arithmeticOperatorWithEnumUnion.ts, 18, 3)) >c * c : number ->c : E | F ->c : E | F +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var ra4 = a * c; ->ra4 : number +>ra4 : number, Symbol(ra4, Decl(arithmeticOperatorWithEnumUnion.ts, 19, 3)) >a * c : number ->a : any ->c : E | F +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var ra5 = b * c; ->ra5 : number +>ra5 : number, Symbol(ra5, Decl(arithmeticOperatorWithEnumUnion.ts, 20, 3)) >b * c : number ->b : number ->c : E | F +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var ra6 = E.a * a; ->ra6 : number +>ra6 : number, Symbol(ra6, Decl(arithmeticOperatorWithEnumUnion.ts, 21, 3)) >E.a * a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var ra7 = E.a * b; ->ra7 : number +>ra7 : number, Symbol(ra7, Decl(arithmeticOperatorWithEnumUnion.ts, 22, 3)) >E.a * b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var ra8 = E.a * E.b; ->ra8 : number +>ra8 : number, Symbol(ra8, Decl(arithmeticOperatorWithEnumUnion.ts, 23, 3)) >E.a * E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var ra9 = E.a * 1; ->ra9 : number +>ra9 : number, Symbol(ra9, Decl(arithmeticOperatorWithEnumUnion.ts, 24, 3)) >E.a * 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>1 : number var ra10 = a * E.b; ->ra10 : number +>ra10 : number, Symbol(ra10, Decl(arithmeticOperatorWithEnumUnion.ts, 25, 3)) >a * E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var ra11 = b * E.b; ->ra11 : number +>ra11 : number, Symbol(ra11, Decl(arithmeticOperatorWithEnumUnion.ts, 26, 3)) >b * E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var ra12 = 1 * E.b; ->ra12 : number +>ra12 : number, Symbol(ra12, Decl(arithmeticOperatorWithEnumUnion.ts, 27, 3)) >1 * E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) // operator / var rb1 = c / a; ->rb1 : number +>rb1 : number, Symbol(rb1, Decl(arithmeticOperatorWithEnumUnion.ts, 30, 3)) >c / a : number ->c : E | F ->a : any +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rb2 = c / b; ->rb2 : number +>rb2 : number, Symbol(rb2, Decl(arithmeticOperatorWithEnumUnion.ts, 31, 3)) >c / b : number ->c : E | F ->b : number +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rb3 = c / c; ->rb3 : number +>rb3 : number, Symbol(rb3, Decl(arithmeticOperatorWithEnumUnion.ts, 32, 3)) >c / c : number ->c : E | F ->c : E | F +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rb4 = a / c; ->rb4 : number +>rb4 : number, Symbol(rb4, Decl(arithmeticOperatorWithEnumUnion.ts, 33, 3)) >a / c : number ->a : any ->c : E | F +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rb5 = b / c; ->rb5 : number +>rb5 : number, Symbol(rb5, Decl(arithmeticOperatorWithEnumUnion.ts, 34, 3)) >b / c : number ->b : number ->c : E | F +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rb6 = E.a / a; ->rb6 : number +>rb6 : number, Symbol(rb6, Decl(arithmeticOperatorWithEnumUnion.ts, 35, 3)) >E.a / a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rb7 = E.a / b; ->rb7 : number +>rb7 : number, Symbol(rb7, Decl(arithmeticOperatorWithEnumUnion.ts, 36, 3)) >E.a / b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rb8 = E.a / E.b; ->rb8 : number +>rb8 : number, Symbol(rb8, Decl(arithmeticOperatorWithEnumUnion.ts, 37, 3)) >E.a / E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rb9 = E.a / 1; ->rb9 : number +>rb9 : number, Symbol(rb9, Decl(arithmeticOperatorWithEnumUnion.ts, 38, 3)) >E.a / 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>1 : number var rb10 = a / E.b; ->rb10 : number +>rb10 : number, Symbol(rb10, Decl(arithmeticOperatorWithEnumUnion.ts, 39, 3)) >a / E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rb11 = b / E.b; ->rb11 : number +>rb11 : number, Symbol(rb11, Decl(arithmeticOperatorWithEnumUnion.ts, 40, 3)) >b / E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rb12 = 1 / E.b; ->rb12 : number +>rb12 : number, Symbol(rb12, Decl(arithmeticOperatorWithEnumUnion.ts, 41, 3)) >1 / E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) // operator % var rc1 = c % a; ->rc1 : number +>rc1 : number, Symbol(rc1, Decl(arithmeticOperatorWithEnumUnion.ts, 44, 3)) >c % a : number ->c : E | F ->a : any +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rc2 = c % b; ->rc2 : number +>rc2 : number, Symbol(rc2, Decl(arithmeticOperatorWithEnumUnion.ts, 45, 3)) >c % b : number ->c : E | F ->b : number +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rc3 = c % c; ->rc3 : number +>rc3 : number, Symbol(rc3, Decl(arithmeticOperatorWithEnumUnion.ts, 46, 3)) >c % c : number ->c : E | F ->c : E | F +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rc4 = a % c; ->rc4 : number +>rc4 : number, Symbol(rc4, Decl(arithmeticOperatorWithEnumUnion.ts, 47, 3)) >a % c : number ->a : any ->c : E | F +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rc5 = b % c; ->rc5 : number +>rc5 : number, Symbol(rc5, Decl(arithmeticOperatorWithEnumUnion.ts, 48, 3)) >b % c : number ->b : number ->c : E | F +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rc6 = E.a % a; ->rc6 : number +>rc6 : number, Symbol(rc6, Decl(arithmeticOperatorWithEnumUnion.ts, 49, 3)) >E.a % a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rc7 = E.a % b; ->rc7 : number +>rc7 : number, Symbol(rc7, Decl(arithmeticOperatorWithEnumUnion.ts, 50, 3)) >E.a % b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rc8 = E.a % E.b; ->rc8 : number +>rc8 : number, Symbol(rc8, Decl(arithmeticOperatorWithEnumUnion.ts, 51, 3)) >E.a % E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rc9 = E.a % 1; ->rc9 : number +>rc9 : number, Symbol(rc9, Decl(arithmeticOperatorWithEnumUnion.ts, 52, 3)) >E.a % 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>1 : number var rc10 = a % E.b; ->rc10 : number +>rc10 : number, Symbol(rc10, Decl(arithmeticOperatorWithEnumUnion.ts, 53, 3)) >a % E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rc11 = b % E.b; ->rc11 : number +>rc11 : number, Symbol(rc11, Decl(arithmeticOperatorWithEnumUnion.ts, 54, 3)) >b % E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rc12 = 1 % E.b; ->rc12 : number +>rc12 : number, Symbol(rc12, Decl(arithmeticOperatorWithEnumUnion.ts, 55, 3)) >1 % E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) // operator - var rd1 = c - a; ->rd1 : number +>rd1 : number, Symbol(rd1, Decl(arithmeticOperatorWithEnumUnion.ts, 58, 3)) >c - a : number ->c : E | F ->a : any +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rd2 = c - b; ->rd2 : number +>rd2 : number, Symbol(rd2, Decl(arithmeticOperatorWithEnumUnion.ts, 59, 3)) >c - b : number ->c : E | F ->b : number +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rd3 = c - c; ->rd3 : number +>rd3 : number, Symbol(rd3, Decl(arithmeticOperatorWithEnumUnion.ts, 60, 3)) >c - c : number ->c : E | F ->c : E | F +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rd4 = a - c; ->rd4 : number +>rd4 : number, Symbol(rd4, Decl(arithmeticOperatorWithEnumUnion.ts, 61, 3)) >a - c : number ->a : any ->c : E | F +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rd5 = b - c; ->rd5 : number +>rd5 : number, Symbol(rd5, Decl(arithmeticOperatorWithEnumUnion.ts, 62, 3)) >b - c : number ->b : number ->c : E | F +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rd6 = E.a - a; ->rd6 : number +>rd6 : number, Symbol(rd6, Decl(arithmeticOperatorWithEnumUnion.ts, 63, 3)) >E.a - a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rd7 = E.a - b; ->rd7 : number +>rd7 : number, Symbol(rd7, Decl(arithmeticOperatorWithEnumUnion.ts, 64, 3)) >E.a - b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rd8 = E.a - E.b; ->rd8 : number +>rd8 : number, Symbol(rd8, Decl(arithmeticOperatorWithEnumUnion.ts, 65, 3)) >E.a - E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rd9 = E.a - 1; ->rd9 : number +>rd9 : number, Symbol(rd9, Decl(arithmeticOperatorWithEnumUnion.ts, 66, 3)) >E.a - 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>1 : number var rd10 = a - E.b; ->rd10 : number +>rd10 : number, Symbol(rd10, Decl(arithmeticOperatorWithEnumUnion.ts, 67, 3)) >a - E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rd11 = b - E.b; ->rd11 : number +>rd11 : number, Symbol(rd11, Decl(arithmeticOperatorWithEnumUnion.ts, 68, 3)) >b - E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rd12 = 1 - E.b; ->rd12 : number +>rd12 : number, Symbol(rd12, Decl(arithmeticOperatorWithEnumUnion.ts, 69, 3)) >1 - E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) // operator << var re1 = c << a; ->re1 : number +>re1 : number, Symbol(re1, Decl(arithmeticOperatorWithEnumUnion.ts, 72, 3)) >c << a : number ->c : E | F ->a : any +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var re2 = c << b; ->re2 : number +>re2 : number, Symbol(re2, Decl(arithmeticOperatorWithEnumUnion.ts, 73, 3)) >c << b : number ->c : E | F ->b : number +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var re3 = c << c; ->re3 : number +>re3 : number, Symbol(re3, Decl(arithmeticOperatorWithEnumUnion.ts, 74, 3)) >c << c : number ->c : E | F ->c : E | F +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var re4 = a << c; ->re4 : number +>re4 : number, Symbol(re4, Decl(arithmeticOperatorWithEnumUnion.ts, 75, 3)) >a << c : number ->a : any ->c : E | F +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var re5 = b << c; ->re5 : number +>re5 : number, Symbol(re5, Decl(arithmeticOperatorWithEnumUnion.ts, 76, 3)) >b << c : number ->b : number ->c : E | F +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var re6 = E.a << a; ->re6 : number +>re6 : number, Symbol(re6, Decl(arithmeticOperatorWithEnumUnion.ts, 77, 3)) >E.a << a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var re7 = E.a << b; ->re7 : number +>re7 : number, Symbol(re7, Decl(arithmeticOperatorWithEnumUnion.ts, 78, 3)) >E.a << b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var re8 = E.a << E.b; ->re8 : number +>re8 : number, Symbol(re8, Decl(arithmeticOperatorWithEnumUnion.ts, 79, 3)) >E.a << E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var re9 = E.a << 1; ->re9 : number +>re9 : number, Symbol(re9, Decl(arithmeticOperatorWithEnumUnion.ts, 80, 3)) >E.a << 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>1 : number var re10 = a << E.b; ->re10 : number +>re10 : number, Symbol(re10, Decl(arithmeticOperatorWithEnumUnion.ts, 81, 3)) >a << E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var re11 = b << E.b; ->re11 : number +>re11 : number, Symbol(re11, Decl(arithmeticOperatorWithEnumUnion.ts, 82, 3)) >b << E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var re12 = 1 << E.b; ->re12 : number +>re12 : number, Symbol(re12, Decl(arithmeticOperatorWithEnumUnion.ts, 83, 3)) >1 << E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) // operator >> var rf1 = c >> a; ->rf1 : number +>rf1 : number, Symbol(rf1, Decl(arithmeticOperatorWithEnumUnion.ts, 86, 3)) >c >> a : number ->c : E | F ->a : any +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rf2 = c >> b; ->rf2 : number +>rf2 : number, Symbol(rf2, Decl(arithmeticOperatorWithEnumUnion.ts, 87, 3)) >c >> b : number ->c : E | F ->b : number +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rf3 = c >> c; ->rf3 : number +>rf3 : number, Symbol(rf3, Decl(arithmeticOperatorWithEnumUnion.ts, 88, 3)) >c >> c : number ->c : E | F ->c : E | F +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rf4 = a >> c; ->rf4 : number +>rf4 : number, Symbol(rf4, Decl(arithmeticOperatorWithEnumUnion.ts, 89, 3)) >a >> c : number ->a : any ->c : E | F +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rf5 = b >> c; ->rf5 : number +>rf5 : number, Symbol(rf5, Decl(arithmeticOperatorWithEnumUnion.ts, 90, 3)) >b >> c : number ->b : number ->c : E | F +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rf6 = E.a >> a; ->rf6 : number +>rf6 : number, Symbol(rf6, Decl(arithmeticOperatorWithEnumUnion.ts, 91, 3)) >E.a >> a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rf7 = E.a >> b; ->rf7 : number +>rf7 : number, Symbol(rf7, Decl(arithmeticOperatorWithEnumUnion.ts, 92, 3)) >E.a >> b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rf8 = E.a >> E.b; ->rf8 : number +>rf8 : number, Symbol(rf8, Decl(arithmeticOperatorWithEnumUnion.ts, 93, 3)) >E.a >> E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rf9 = E.a >> 1; ->rf9 : number +>rf9 : number, Symbol(rf9, Decl(arithmeticOperatorWithEnumUnion.ts, 94, 3)) >E.a >> 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>1 : number var rf10 = a >> E.b; ->rf10 : number +>rf10 : number, Symbol(rf10, Decl(arithmeticOperatorWithEnumUnion.ts, 95, 3)) >a >> E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rf11 = b >> E.b; ->rf11 : number +>rf11 : number, Symbol(rf11, Decl(arithmeticOperatorWithEnumUnion.ts, 96, 3)) >b >> E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rf12 = 1 >> E.b; ->rf12 : number +>rf12 : number, Symbol(rf12, Decl(arithmeticOperatorWithEnumUnion.ts, 97, 3)) >1 >> E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) // operator >>> var rg1 = c >>> a; ->rg1 : number +>rg1 : number, Symbol(rg1, Decl(arithmeticOperatorWithEnumUnion.ts, 100, 3)) >c >>> a : number ->c : E | F ->a : any +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rg2 = c >>> b; ->rg2 : number +>rg2 : number, Symbol(rg2, Decl(arithmeticOperatorWithEnumUnion.ts, 101, 3)) >c >>> b : number ->c : E | F ->b : number +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rg3 = c >>> c; ->rg3 : number +>rg3 : number, Symbol(rg3, Decl(arithmeticOperatorWithEnumUnion.ts, 102, 3)) >c >>> c : number ->c : E | F ->c : E | F +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rg4 = a >>> c; ->rg4 : number +>rg4 : number, Symbol(rg4, Decl(arithmeticOperatorWithEnumUnion.ts, 103, 3)) >a >>> c : number ->a : any ->c : E | F +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rg5 = b >>> c; ->rg5 : number +>rg5 : number, Symbol(rg5, Decl(arithmeticOperatorWithEnumUnion.ts, 104, 3)) >b >>> c : number ->b : number ->c : E | F +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rg6 = E.a >>> a; ->rg6 : number +>rg6 : number, Symbol(rg6, Decl(arithmeticOperatorWithEnumUnion.ts, 105, 3)) >E.a >>> a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rg7 = E.a >>> b; ->rg7 : number +>rg7 : number, Symbol(rg7, Decl(arithmeticOperatorWithEnumUnion.ts, 106, 3)) >E.a >>> b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rg8 = E.a >>> E.b; ->rg8 : number +>rg8 : number, Symbol(rg8, Decl(arithmeticOperatorWithEnumUnion.ts, 107, 3)) >E.a >>> E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rg9 = E.a >>> 1; ->rg9 : number +>rg9 : number, Symbol(rg9, Decl(arithmeticOperatorWithEnumUnion.ts, 108, 3)) >E.a >>> 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>1 : number var rg10 = a >>> E.b; ->rg10 : number +>rg10 : number, Symbol(rg10, Decl(arithmeticOperatorWithEnumUnion.ts, 109, 3)) >a >>> E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rg11 = b >>> E.b; ->rg11 : number +>rg11 : number, Symbol(rg11, Decl(arithmeticOperatorWithEnumUnion.ts, 110, 3)) >b >>> E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rg12 = 1 >>> E.b; ->rg12 : number +>rg12 : number, Symbol(rg12, Decl(arithmeticOperatorWithEnumUnion.ts, 111, 3)) >1 >>> E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) // operator & var rh1 = c & a; ->rh1 : number +>rh1 : number, Symbol(rh1, Decl(arithmeticOperatorWithEnumUnion.ts, 114, 3)) >c & a : number ->c : E | F ->a : any +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rh2 = c & b; ->rh2 : number +>rh2 : number, Symbol(rh2, Decl(arithmeticOperatorWithEnumUnion.ts, 115, 3)) >c & b : number ->c : E | F ->b : number +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rh3 = c & c; ->rh3 : number +>rh3 : number, Symbol(rh3, Decl(arithmeticOperatorWithEnumUnion.ts, 116, 3)) >c & c : number ->c : E | F ->c : E | F +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rh4 = a & c; ->rh4 : number +>rh4 : number, Symbol(rh4, Decl(arithmeticOperatorWithEnumUnion.ts, 117, 3)) >a & c : number ->a : any ->c : E | F +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rh5 = b & c; ->rh5 : number +>rh5 : number, Symbol(rh5, Decl(arithmeticOperatorWithEnumUnion.ts, 118, 3)) >b & c : number ->b : number ->c : E | F +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rh6 = E.a & a; ->rh6 : number +>rh6 : number, Symbol(rh6, Decl(arithmeticOperatorWithEnumUnion.ts, 119, 3)) >E.a & a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rh7 = E.a & b; ->rh7 : number +>rh7 : number, Symbol(rh7, Decl(arithmeticOperatorWithEnumUnion.ts, 120, 3)) >E.a & b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rh8 = E.a & E.b; ->rh8 : number +>rh8 : number, Symbol(rh8, Decl(arithmeticOperatorWithEnumUnion.ts, 121, 3)) >E.a & E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rh9 = E.a & 1; ->rh9 : number +>rh9 : number, Symbol(rh9, Decl(arithmeticOperatorWithEnumUnion.ts, 122, 3)) >E.a & 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>1 : number var rh10 = a & E.b; ->rh10 : number +>rh10 : number, Symbol(rh10, Decl(arithmeticOperatorWithEnumUnion.ts, 123, 3)) >a & E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rh11 = b & E.b; ->rh11 : number +>rh11 : number, Symbol(rh11, Decl(arithmeticOperatorWithEnumUnion.ts, 124, 3)) >b & E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rh12 = 1 & E.b; ->rh12 : number +>rh12 : number, Symbol(rh12, Decl(arithmeticOperatorWithEnumUnion.ts, 125, 3)) >1 & E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) // operator ^ var ri1 = c ^ a; ->ri1 : number +>ri1 : number, Symbol(ri1, Decl(arithmeticOperatorWithEnumUnion.ts, 128, 3)) >c ^ a : number ->c : E | F ->a : any +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var ri2 = c ^ b; ->ri2 : number +>ri2 : number, Symbol(ri2, Decl(arithmeticOperatorWithEnumUnion.ts, 129, 3)) >c ^ b : number ->c : E | F ->b : number +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var ri3 = c ^ c; ->ri3 : number +>ri3 : number, Symbol(ri3, Decl(arithmeticOperatorWithEnumUnion.ts, 130, 3)) >c ^ c : number ->c : E | F ->c : E | F +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var ri4 = a ^ c; ->ri4 : number +>ri4 : number, Symbol(ri4, Decl(arithmeticOperatorWithEnumUnion.ts, 131, 3)) >a ^ c : number ->a : any ->c : E | F +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var ri5 = b ^ c; ->ri5 : number +>ri5 : number, Symbol(ri5, Decl(arithmeticOperatorWithEnumUnion.ts, 132, 3)) >b ^ c : number ->b : number ->c : E | F +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var ri6 = E.a ^ a; ->ri6 : number +>ri6 : number, Symbol(ri6, Decl(arithmeticOperatorWithEnumUnion.ts, 133, 3)) >E.a ^ a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var ri7 = E.a ^ b; ->ri7 : number +>ri7 : number, Symbol(ri7, Decl(arithmeticOperatorWithEnumUnion.ts, 134, 3)) >E.a ^ b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var ri8 = E.a ^ E.b; ->ri8 : number +>ri8 : number, Symbol(ri8, Decl(arithmeticOperatorWithEnumUnion.ts, 135, 3)) >E.a ^ E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var ri9 = E.a ^ 1; ->ri9 : number +>ri9 : number, Symbol(ri9, Decl(arithmeticOperatorWithEnumUnion.ts, 136, 3)) >E.a ^ 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>1 : number var ri10 = a ^ E.b; ->ri10 : number +>ri10 : number, Symbol(ri10, Decl(arithmeticOperatorWithEnumUnion.ts, 137, 3)) >a ^ E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var ri11 = b ^ E.b; ->ri11 : number +>ri11 : number, Symbol(ri11, Decl(arithmeticOperatorWithEnumUnion.ts, 138, 3)) >b ^ E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var ri12 = 1 ^ E.b; ->ri12 : number +>ri12 : number, Symbol(ri12, Decl(arithmeticOperatorWithEnumUnion.ts, 139, 3)) >1 ^ E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) // operator | var rj1 = c | a; ->rj1 : number +>rj1 : number, Symbol(rj1, Decl(arithmeticOperatorWithEnumUnion.ts, 142, 3)) >c | a : number ->c : E | F ->a : any +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rj2 = c | b; ->rj2 : number +>rj2 : number, Symbol(rj2, Decl(arithmeticOperatorWithEnumUnion.ts, 143, 3)) >c | b : number ->c : E | F ->b : number +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rj3 = c | c; ->rj3 : number +>rj3 : number, Symbol(rj3, Decl(arithmeticOperatorWithEnumUnion.ts, 144, 3)) >c | c : number ->c : E | F ->c : E | F +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rj4 = a | c; ->rj4 : number +>rj4 : number, Symbol(rj4, Decl(arithmeticOperatorWithEnumUnion.ts, 145, 3)) >a | c : number ->a : any ->c : E | F +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rj5 = b | c; ->rj5 : number +>rj5 : number, Symbol(rj5, Decl(arithmeticOperatorWithEnumUnion.ts, 146, 3)) >b | c : number ->b : number ->c : E | F +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>c : E | F, Symbol(c, Decl(arithmeticOperatorWithEnumUnion.ts, 13, 3)) var rj6 = E.a | a; ->rj6 : number +>rj6 : number, Symbol(rj6, Decl(arithmeticOperatorWithEnumUnion.ts, 147, 3)) >E.a | a : number ->E.a : E ->E : typeof E ->a : E ->a : any +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) var rj7 = E.a | b; ->rj7 : number +>rj7 : number, Symbol(rj7, Decl(arithmeticOperatorWithEnumUnion.ts, 148, 3)) >E.a | b : number ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) var rj8 = E.a | E.b; ->rj8 : number +>rj8 : number, Symbol(rj8, Decl(arithmeticOperatorWithEnumUnion.ts, 149, 3)) >E.a | E.b : number ->E.a : E ->E : typeof E ->a : E ->E.b : E ->E : typeof E ->b : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rj9 = E.a | 1; ->rj9 : number +>rj9 : number, Symbol(rj9, Decl(arithmeticOperatorWithEnumUnion.ts, 150, 3)) >E.a | 1 : number ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithEnumUnion.ts, 2, 8)) +>1 : number var rj10 = a | E.b; ->rj10 : number +>rj10 : number, Symbol(rj10, Decl(arithmeticOperatorWithEnumUnion.ts, 151, 3)) >a | E.b : number ->a : any ->E.b : E ->E : typeof E ->b : E +>a : any, Symbol(a, Decl(arithmeticOperatorWithEnumUnion.ts, 11, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rj11 = b | E.b; ->rj11 : number +>rj11 : number, Symbol(rj11, Decl(arithmeticOperatorWithEnumUnion.ts, 152, 3)) >b | E.b : number ->b : number ->E.b : E ->E : typeof E ->b : E +>b : number, Symbol(b, Decl(arithmeticOperatorWithEnumUnion.ts, 12, 3)) +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) var rj12 = 1 | E.b; ->rj12 : number +>rj12 : number, Symbol(rj12, Decl(arithmeticOperatorWithEnumUnion.ts, 153, 3)) >1 | E.b : number ->E.b : E ->E : typeof E ->b : E +>1 : number +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithEnumUnion.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithEnumUnion.ts, 3, 6)) diff --git a/tests/baselines/reference/arithmeticOperatorWithNullValueAndValidOperands.types b/tests/baselines/reference/arithmeticOperatorWithNullValueAndValidOperands.types index 711ccd0c66c..120b7427453 100644 --- a/tests/baselines/reference/arithmeticOperatorWithNullValueAndValidOperands.types +++ b/tests/baselines/reference/arithmeticOperatorWithNullValueAndValidOperands.types @@ -3,448 +3,548 @@ // other operand. enum E { ->E : E +>E : E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) a, ->a : E +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) b ->b : E +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) } var a: any; ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) // operator * var ra1 = null * a; ->ra1 : number +>ra1 : number, Symbol(ra1, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 12, 3)) >null * a : number ->a : any +>null : null +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) var ra2 = null * b; ->ra2 : number +>ra2 : number, Symbol(ra2, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 13, 3)) >null * b : number ->b : number +>null : null +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) var ra3 = null * 1; ->ra3 : number +>ra3 : number, Symbol(ra3, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 14, 3)) >null * 1 : number +>null : null +>1 : number var ra4 = null * E.a; ->ra4 : number +>ra4 : number, Symbol(ra4, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 15, 3)) >null * E.a : number ->E.a : E ->E : typeof E ->a : E +>null : null +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) var ra5 = a * null; ->ra5 : number +>ra5 : number, Symbol(ra5, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 16, 3)) >a * null : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) +>null : null var ra6 = b * null; ->ra6 : number +>ra6 : number, Symbol(ra6, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 17, 3)) >b * null : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) +>null : null var ra7 = 0 * null; ->ra7 : number +>ra7 : number, Symbol(ra7, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 18, 3)) >0 * null : number +>0 : number +>null : null var ra8 = E.b * null; ->ra8 : number +>ra8 : number, Symbol(ra8, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 19, 3)) >E.b * null : number ->E.b : E ->E : typeof E ->b : E +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>null : null // operator / var rb1 = null / a; ->rb1 : number +>rb1 : number, Symbol(rb1, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 22, 3)) >null / a : number ->a : any +>null : null +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) var rb2 = null / b; ->rb2 : number +>rb2 : number, Symbol(rb2, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 23, 3)) >null / b : number ->b : number +>null : null +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) var rb3 = null / 1; ->rb3 : number +>rb3 : number, Symbol(rb3, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 24, 3)) >null / 1 : number +>null : null +>1 : number var rb4 = null / E.a; ->rb4 : number +>rb4 : number, Symbol(rb4, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 25, 3)) >null / E.a : number ->E.a : E ->E : typeof E ->a : E +>null : null +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) var rb5 = a / null; ->rb5 : number +>rb5 : number, Symbol(rb5, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 26, 3)) >a / null : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) +>null : null var rb6 = b / null; ->rb6 : number +>rb6 : number, Symbol(rb6, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 27, 3)) >b / null : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) +>null : null var rb7 = 0 / null; ->rb7 : number +>rb7 : number, Symbol(rb7, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 28, 3)) >0 / null : number +>0 : number +>null : null var rb8 = E.b / null; ->rb8 : number +>rb8 : number, Symbol(rb8, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 29, 3)) >E.b / null : number ->E.b : E ->E : typeof E ->b : E +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>null : null // operator % var rc1 = null % a; ->rc1 : number +>rc1 : number, Symbol(rc1, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 32, 3)) >null % a : number ->a : any +>null : null +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) var rc2 = null % b; ->rc2 : number +>rc2 : number, Symbol(rc2, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 33, 3)) >null % b : number ->b : number +>null : null +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) var rc3 = null % 1; ->rc3 : number +>rc3 : number, Symbol(rc3, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 34, 3)) >null % 1 : number +>null : null +>1 : number var rc4 = null % E.a; ->rc4 : number +>rc4 : number, Symbol(rc4, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 35, 3)) >null % E.a : number ->E.a : E ->E : typeof E ->a : E +>null : null +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) var rc5 = a % null; ->rc5 : number +>rc5 : number, Symbol(rc5, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 36, 3)) >a % null : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) +>null : null var rc6 = b % null; ->rc6 : number +>rc6 : number, Symbol(rc6, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 37, 3)) >b % null : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) +>null : null var rc7 = 0 % null; ->rc7 : number +>rc7 : number, Symbol(rc7, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 38, 3)) >0 % null : number +>0 : number +>null : null var rc8 = E.b % null; ->rc8 : number +>rc8 : number, Symbol(rc8, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 39, 3)) >E.b % null : number ->E.b : E ->E : typeof E ->b : E +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>null : null // operator - var rd1 = null - a; ->rd1 : number +>rd1 : number, Symbol(rd1, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 42, 3)) >null - a : number ->a : any +>null : null +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) var rd2 = null - b; ->rd2 : number +>rd2 : number, Symbol(rd2, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 43, 3)) >null - b : number ->b : number +>null : null +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) var rd3 = null - 1; ->rd3 : number +>rd3 : number, Symbol(rd3, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 44, 3)) >null - 1 : number +>null : null +>1 : number var rd4 = null - E.a; ->rd4 : number +>rd4 : number, Symbol(rd4, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 45, 3)) >null - E.a : number ->E.a : E ->E : typeof E ->a : E +>null : null +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) var rd5 = a - null; ->rd5 : number +>rd5 : number, Symbol(rd5, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 46, 3)) >a - null : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) +>null : null var rd6 = b - null; ->rd6 : number +>rd6 : number, Symbol(rd6, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 47, 3)) >b - null : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) +>null : null var rd7 = 0 - null; ->rd7 : number +>rd7 : number, Symbol(rd7, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 48, 3)) >0 - null : number +>0 : number +>null : null var rd8 = E.b - null; ->rd8 : number +>rd8 : number, Symbol(rd8, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 49, 3)) >E.b - null : number ->E.b : E ->E : typeof E ->b : E +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>null : null // operator << var re1 = null << a; ->re1 : number +>re1 : number, Symbol(re1, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 52, 3)) >null << a : number ->a : any +>null : null +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) var re2 = null << b; ->re2 : number +>re2 : number, Symbol(re2, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 53, 3)) >null << b : number ->b : number +>null : null +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) var re3 = null << 1; ->re3 : number +>re3 : number, Symbol(re3, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 54, 3)) >null << 1 : number +>null : null +>1 : number var re4 = null << E.a; ->re4 : number +>re4 : number, Symbol(re4, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 55, 3)) >null << E.a : number ->E.a : E ->E : typeof E ->a : E +>null : null +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) var re5 = a << null; ->re5 : number +>re5 : number, Symbol(re5, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 56, 3)) >a << null : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) +>null : null var re6 = b << null; ->re6 : number +>re6 : number, Symbol(re6, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 57, 3)) >b << null : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) +>null : null var re7 = 0 << null; ->re7 : number +>re7 : number, Symbol(re7, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 58, 3)) >0 << null : number +>0 : number +>null : null var re8 = E.b << null; ->re8 : number +>re8 : number, Symbol(re8, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 59, 3)) >E.b << null : number ->E.b : E ->E : typeof E ->b : E +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>null : null // operator >> var rf1 = null >> a; ->rf1 : number +>rf1 : number, Symbol(rf1, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 62, 3)) >null >> a : number ->a : any +>null : null +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) var rf2 = null >> b; ->rf2 : number +>rf2 : number, Symbol(rf2, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 63, 3)) >null >> b : number ->b : number +>null : null +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) var rf3 = null >> 1; ->rf3 : number +>rf3 : number, Symbol(rf3, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 64, 3)) >null >> 1 : number +>null : null +>1 : number var rf4 = null >> E.a; ->rf4 : number +>rf4 : number, Symbol(rf4, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 65, 3)) >null >> E.a : number ->E.a : E ->E : typeof E ->a : E +>null : null +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) var rf5 = a >> null; ->rf5 : number +>rf5 : number, Symbol(rf5, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 66, 3)) >a >> null : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) +>null : null var rf6 = b >> null; ->rf6 : number +>rf6 : number, Symbol(rf6, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 67, 3)) >b >> null : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) +>null : null var rf7 = 0 >> null; ->rf7 : number +>rf7 : number, Symbol(rf7, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 68, 3)) >0 >> null : number +>0 : number +>null : null var rf8 = E.b >> null; ->rf8 : number +>rf8 : number, Symbol(rf8, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 69, 3)) >E.b >> null : number ->E.b : E ->E : typeof E ->b : E +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>null : null // operator >>> var rg1 = null >>> a; ->rg1 : number +>rg1 : number, Symbol(rg1, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 72, 3)) >null >>> a : number ->a : any +>null : null +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) var rg2 = null >>> b; ->rg2 : number +>rg2 : number, Symbol(rg2, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 73, 3)) >null >>> b : number ->b : number +>null : null +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) var rg3 = null >>> 1; ->rg3 : number +>rg3 : number, Symbol(rg3, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 74, 3)) >null >>> 1 : number +>null : null +>1 : number var rg4 = null >>> E.a; ->rg4 : number +>rg4 : number, Symbol(rg4, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 75, 3)) >null >>> E.a : number ->E.a : E ->E : typeof E ->a : E +>null : null +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) var rg5 = a >>> null; ->rg5 : number +>rg5 : number, Symbol(rg5, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 76, 3)) >a >>> null : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) +>null : null var rg6 = b >>> null; ->rg6 : number +>rg6 : number, Symbol(rg6, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 77, 3)) >b >>> null : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) +>null : null var rg7 = 0 >>> null; ->rg7 : number +>rg7 : number, Symbol(rg7, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 78, 3)) >0 >>> null : number +>0 : number +>null : null var rg8 = E.b >>> null; ->rg8 : number +>rg8 : number, Symbol(rg8, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 79, 3)) >E.b >>> null : number ->E.b : E ->E : typeof E ->b : E +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>null : null // operator & var rh1 = null & a; ->rh1 : number +>rh1 : number, Symbol(rh1, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 82, 3)) >null & a : number ->a : any +>null : null +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) var rh2 = null & b; ->rh2 : number +>rh2 : number, Symbol(rh2, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 83, 3)) >null & b : number ->b : number +>null : null +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) var rh3 = null & 1; ->rh3 : number +>rh3 : number, Symbol(rh3, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 84, 3)) >null & 1 : number +>null : null +>1 : number var rh4 = null & E.a; ->rh4 : number +>rh4 : number, Symbol(rh4, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 85, 3)) >null & E.a : number ->E.a : E ->E : typeof E ->a : E +>null : null +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) var rh5 = a & null; ->rh5 : number +>rh5 : number, Symbol(rh5, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 86, 3)) >a & null : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) +>null : null var rh6 = b & null; ->rh6 : number +>rh6 : number, Symbol(rh6, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 87, 3)) >b & null : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) +>null : null var rh7 = 0 & null; ->rh7 : number +>rh7 : number, Symbol(rh7, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 88, 3)) >0 & null : number +>0 : number +>null : null var rh8 = E.b & null; ->rh8 : number +>rh8 : number, Symbol(rh8, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 89, 3)) >E.b & null : number ->E.b : E ->E : typeof E ->b : E +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>null : null // operator ^ var ri1 = null ^ a; ->ri1 : number +>ri1 : number, Symbol(ri1, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 92, 3)) >null ^ a : number ->a : any +>null : null +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) var ri2 = null ^ b; ->ri2 : number +>ri2 : number, Symbol(ri2, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 93, 3)) >null ^ b : number ->b : number +>null : null +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) var ri3 = null ^ 1; ->ri3 : number +>ri3 : number, Symbol(ri3, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 94, 3)) >null ^ 1 : number +>null : null +>1 : number var ri4 = null ^ E.a; ->ri4 : number +>ri4 : number, Symbol(ri4, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 95, 3)) >null ^ E.a : number ->E.a : E ->E : typeof E ->a : E +>null : null +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) var ri5 = a ^ null; ->ri5 : number +>ri5 : number, Symbol(ri5, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 96, 3)) >a ^ null : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) +>null : null var ri6 = b ^ null; ->ri6 : number +>ri6 : number, Symbol(ri6, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 97, 3)) >b ^ null : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) +>null : null var ri7 = 0 ^ null; ->ri7 : number +>ri7 : number, Symbol(ri7, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 98, 3)) >0 ^ null : number +>0 : number +>null : null var ri8 = E.b ^ null; ->ri8 : number +>ri8 : number, Symbol(ri8, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 99, 3)) >E.b ^ null : number ->E.b : E ->E : typeof E ->b : E +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>null : null // operator | var rj1 = null | a; ->rj1 : number +>rj1 : number, Symbol(rj1, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 102, 3)) >null | a : number ->a : any +>null : null +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) var rj2 = null | b; ->rj2 : number +>rj2 : number, Symbol(rj2, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 103, 3)) >null | b : number ->b : number +>null : null +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) var rj3 = null | 1; ->rj3 : number +>rj3 : number, Symbol(rj3, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 104, 3)) >null | 1 : number +>null : null +>1 : number var rj4 = null | E.a; ->rj4 : number +>rj4 : number, Symbol(rj4, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 105, 3)) >null | E.a : number ->E.a : E ->E : typeof E ->a : E +>null : null +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 3, 8)) var rj5 = a | null; ->rj5 : number +>rj5 : number, Symbol(rj5, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 106, 3)) >a | null : number ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 8, 3)) +>null : null var rj6 = b | null; ->rj6 : number +>rj6 : number, Symbol(rj6, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 107, 3)) >b | null : number ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 9, 3)) +>null : null var rj7 = 0 | null; ->rj7 : number +>rj7 : number, Symbol(rj7, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 108, 3)) >0 | null : number +>0 : number +>null : null var rj8 = E.b | null; ->rj8 : number +>rj8 : number, Symbol(rj8, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 109, 3)) >E.b | null : number ->E.b : E ->E : typeof E ->b : E +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithNullValueAndValidOperands.ts, 4, 6)) +>null : null diff --git a/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndValidOperands.types b/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndValidOperands.types index 7db074df8bb..9dc36bd1d9b 100644 --- a/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndValidOperands.types +++ b/tests/baselines/reference/arithmeticOperatorWithUndefinedValueAndValidOperands.types @@ -3,528 +3,548 @@ // other operand. enum E { ->E : E +>E : E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) a, ->a : E +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) b ->b : E +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) } var a: any; ->a : any +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) // operator * var ra1 = undefined * a; ->ra1 : number +>ra1 : number, Symbol(ra1, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 12, 3)) >undefined * a : number ->undefined : undefined ->a : any +>undefined : undefined, Symbol(undefined) +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) var ra2 = undefined * b; ->ra2 : number +>ra2 : number, Symbol(ra2, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 13, 3)) >undefined * b : number ->undefined : undefined ->b : number +>undefined : undefined, Symbol(undefined) +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) var ra3 = undefined * 1; ->ra3 : number +>ra3 : number, Symbol(ra3, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 14, 3)) >undefined * 1 : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>1 : number var ra4 = undefined * E.a; ->ra4 : number +>ra4 : number, Symbol(ra4, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 15, 3)) >undefined * E.a : number ->undefined : undefined ->E.a : E ->E : typeof E ->a : E +>undefined : undefined, Symbol(undefined) +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) var ra5 = a * undefined; ->ra5 : number +>ra5 : number, Symbol(ra5, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 16, 3)) >a * undefined : number ->a : any ->undefined : undefined +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var ra6 = b * undefined; ->ra6 : number +>ra6 : number, Symbol(ra6, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 17, 3)) >b * undefined : number ->b : number ->undefined : undefined +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var ra7 = 0 * undefined; ->ra7 : number +>ra7 : number, Symbol(ra7, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 18, 3)) >0 * undefined : number ->undefined : undefined +>0 : number +>undefined : undefined, Symbol(undefined) var ra8 = E.b * undefined; ->ra8 : number +>ra8 : number, Symbol(ra8, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 19, 3)) >E.b * undefined : number ->E.b : E ->E : typeof E ->b : E ->undefined : undefined +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>undefined : undefined, Symbol(undefined) // operator / var rb1 = undefined / a; ->rb1 : number +>rb1 : number, Symbol(rb1, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 22, 3)) >undefined / a : number ->undefined : undefined ->a : any +>undefined : undefined, Symbol(undefined) +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) var rb2 = undefined / b; ->rb2 : number +>rb2 : number, Symbol(rb2, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 23, 3)) >undefined / b : number ->undefined : undefined ->b : number +>undefined : undefined, Symbol(undefined) +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) var rb3 = undefined / 1; ->rb3 : number +>rb3 : number, Symbol(rb3, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 24, 3)) >undefined / 1 : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>1 : number var rb4 = undefined / E.a; ->rb4 : number +>rb4 : number, Symbol(rb4, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 25, 3)) >undefined / E.a : number ->undefined : undefined ->E.a : E ->E : typeof E ->a : E +>undefined : undefined, Symbol(undefined) +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) var rb5 = a / undefined; ->rb5 : number +>rb5 : number, Symbol(rb5, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 26, 3)) >a / undefined : number ->a : any ->undefined : undefined +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var rb6 = b / undefined; ->rb6 : number +>rb6 : number, Symbol(rb6, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 27, 3)) >b / undefined : number ->b : number ->undefined : undefined +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var rb7 = 0 / undefined; ->rb7 : number +>rb7 : number, Symbol(rb7, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 28, 3)) >0 / undefined : number ->undefined : undefined +>0 : number +>undefined : undefined, Symbol(undefined) var rb8 = E.b / undefined; ->rb8 : number +>rb8 : number, Symbol(rb8, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 29, 3)) >E.b / undefined : number ->E.b : E ->E : typeof E ->b : E ->undefined : undefined +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>undefined : undefined, Symbol(undefined) // operator % var rc1 = undefined % a; ->rc1 : number +>rc1 : number, Symbol(rc1, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 32, 3)) >undefined % a : number ->undefined : undefined ->a : any +>undefined : undefined, Symbol(undefined) +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) var rc2 = undefined % b; ->rc2 : number +>rc2 : number, Symbol(rc2, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 33, 3)) >undefined % b : number ->undefined : undefined ->b : number +>undefined : undefined, Symbol(undefined) +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) var rc3 = undefined % 1; ->rc3 : number +>rc3 : number, Symbol(rc3, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 34, 3)) >undefined % 1 : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>1 : number var rc4 = undefined % E.a; ->rc4 : number +>rc4 : number, Symbol(rc4, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 35, 3)) >undefined % E.a : number ->undefined : undefined ->E.a : E ->E : typeof E ->a : E +>undefined : undefined, Symbol(undefined) +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) var rc5 = a % undefined; ->rc5 : number +>rc5 : number, Symbol(rc5, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 36, 3)) >a % undefined : number ->a : any ->undefined : undefined +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var rc6 = b % undefined; ->rc6 : number +>rc6 : number, Symbol(rc6, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 37, 3)) >b % undefined : number ->b : number ->undefined : undefined +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var rc7 = 0 % undefined; ->rc7 : number +>rc7 : number, Symbol(rc7, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 38, 3)) >0 % undefined : number ->undefined : undefined +>0 : number +>undefined : undefined, Symbol(undefined) var rc8 = E.b % undefined; ->rc8 : number +>rc8 : number, Symbol(rc8, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 39, 3)) >E.b % undefined : number ->E.b : E ->E : typeof E ->b : E ->undefined : undefined +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>undefined : undefined, Symbol(undefined) // operator - var rd1 = undefined - a; ->rd1 : number +>rd1 : number, Symbol(rd1, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 42, 3)) >undefined - a : number ->undefined : undefined ->a : any +>undefined : undefined, Symbol(undefined) +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) var rd2 = undefined - b; ->rd2 : number +>rd2 : number, Symbol(rd2, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 43, 3)) >undefined - b : number ->undefined : undefined ->b : number +>undefined : undefined, Symbol(undefined) +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) var rd3 = undefined - 1; ->rd3 : number +>rd3 : number, Symbol(rd3, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 44, 3)) >undefined - 1 : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>1 : number var rd4 = undefined - E.a; ->rd4 : number +>rd4 : number, Symbol(rd4, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 45, 3)) >undefined - E.a : number ->undefined : undefined ->E.a : E ->E : typeof E ->a : E +>undefined : undefined, Symbol(undefined) +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) var rd5 = a - undefined; ->rd5 : number +>rd5 : number, Symbol(rd5, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 46, 3)) >a - undefined : number ->a : any ->undefined : undefined +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var rd6 = b - undefined; ->rd6 : number +>rd6 : number, Symbol(rd6, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 47, 3)) >b - undefined : number ->b : number ->undefined : undefined +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var rd7 = 0 - undefined; ->rd7 : number +>rd7 : number, Symbol(rd7, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 48, 3)) >0 - undefined : number ->undefined : undefined +>0 : number +>undefined : undefined, Symbol(undefined) var rd8 = E.b - undefined; ->rd8 : number +>rd8 : number, Symbol(rd8, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 49, 3)) >E.b - undefined : number ->E.b : E ->E : typeof E ->b : E ->undefined : undefined +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>undefined : undefined, Symbol(undefined) // operator << var re1 = undefined << a; ->re1 : number +>re1 : number, Symbol(re1, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 52, 3)) >undefined << a : number ->undefined : undefined ->a : any +>undefined : undefined, Symbol(undefined) +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) var re2 = undefined << b; ->re2 : number +>re2 : number, Symbol(re2, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 53, 3)) >undefined << b : number ->undefined : undefined ->b : number +>undefined : undefined, Symbol(undefined) +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) var re3 = undefined << 1; ->re3 : number +>re3 : number, Symbol(re3, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 54, 3)) >undefined << 1 : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>1 : number var re4 = undefined << E.a; ->re4 : number +>re4 : number, Symbol(re4, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 55, 3)) >undefined << E.a : number ->undefined : undefined ->E.a : E ->E : typeof E ->a : E +>undefined : undefined, Symbol(undefined) +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) var re5 = a << undefined; ->re5 : number +>re5 : number, Symbol(re5, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 56, 3)) >a << undefined : number ->a : any ->undefined : undefined +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var re6 = b << undefined; ->re6 : number +>re6 : number, Symbol(re6, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 57, 3)) >b << undefined : number ->b : number ->undefined : undefined +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var re7 = 0 << undefined; ->re7 : number +>re7 : number, Symbol(re7, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 58, 3)) >0 << undefined : number ->undefined : undefined +>0 : number +>undefined : undefined, Symbol(undefined) var re8 = E.b << undefined; ->re8 : number +>re8 : number, Symbol(re8, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 59, 3)) >E.b << undefined : number ->E.b : E ->E : typeof E ->b : E ->undefined : undefined +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>undefined : undefined, Symbol(undefined) // operator >> var rf1 = undefined >> a; ->rf1 : number +>rf1 : number, Symbol(rf1, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 62, 3)) >undefined >> a : number ->undefined : undefined ->a : any +>undefined : undefined, Symbol(undefined) +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) var rf2 = undefined >> b; ->rf2 : number +>rf2 : number, Symbol(rf2, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 63, 3)) >undefined >> b : number ->undefined : undefined ->b : number +>undefined : undefined, Symbol(undefined) +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) var rf3 = undefined >> 1; ->rf3 : number +>rf3 : number, Symbol(rf3, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 64, 3)) >undefined >> 1 : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>1 : number var rf4 = undefined >> E.a; ->rf4 : number +>rf4 : number, Symbol(rf4, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 65, 3)) >undefined >> E.a : number ->undefined : undefined ->E.a : E ->E : typeof E ->a : E +>undefined : undefined, Symbol(undefined) +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) var rf5 = a >> undefined; ->rf5 : number +>rf5 : number, Symbol(rf5, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 66, 3)) >a >> undefined : number ->a : any ->undefined : undefined +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var rf6 = b >> undefined; ->rf6 : number +>rf6 : number, Symbol(rf6, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 67, 3)) >b >> undefined : number ->b : number ->undefined : undefined +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var rf7 = 0 >> undefined; ->rf7 : number +>rf7 : number, Symbol(rf7, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 68, 3)) >0 >> undefined : number ->undefined : undefined +>0 : number +>undefined : undefined, Symbol(undefined) var rf8 = E.b >> undefined; ->rf8 : number +>rf8 : number, Symbol(rf8, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 69, 3)) >E.b >> undefined : number ->E.b : E ->E : typeof E ->b : E ->undefined : undefined +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>undefined : undefined, Symbol(undefined) // operator >>> var rg1 = undefined >>> a; ->rg1 : number +>rg1 : number, Symbol(rg1, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 72, 3)) >undefined >>> a : number ->undefined : undefined ->a : any +>undefined : undefined, Symbol(undefined) +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) var rg2 = undefined >>> b; ->rg2 : number +>rg2 : number, Symbol(rg2, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 73, 3)) >undefined >>> b : number ->undefined : undefined ->b : number +>undefined : undefined, Symbol(undefined) +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) var rg3 = undefined >>> 1; ->rg3 : number +>rg3 : number, Symbol(rg3, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 74, 3)) >undefined >>> 1 : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>1 : number var rg4 = undefined >>> E.a; ->rg4 : number +>rg4 : number, Symbol(rg4, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 75, 3)) >undefined >>> E.a : number ->undefined : undefined ->E.a : E ->E : typeof E ->a : E +>undefined : undefined, Symbol(undefined) +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) var rg5 = a >>> undefined; ->rg5 : number +>rg5 : number, Symbol(rg5, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 76, 3)) >a >>> undefined : number ->a : any ->undefined : undefined +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var rg6 = b >>> undefined; ->rg6 : number +>rg6 : number, Symbol(rg6, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 77, 3)) >b >>> undefined : number ->b : number ->undefined : undefined +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var rg7 = 0 >>> undefined; ->rg7 : number +>rg7 : number, Symbol(rg7, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 78, 3)) >0 >>> undefined : number ->undefined : undefined +>0 : number +>undefined : undefined, Symbol(undefined) var rg8 = E.b >>> undefined; ->rg8 : number +>rg8 : number, Symbol(rg8, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 79, 3)) >E.b >>> undefined : number ->E.b : E ->E : typeof E ->b : E ->undefined : undefined +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>undefined : undefined, Symbol(undefined) // operator & var rh1 = undefined & a; ->rh1 : number +>rh1 : number, Symbol(rh1, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 82, 3)) >undefined & a : number ->undefined : undefined ->a : any +>undefined : undefined, Symbol(undefined) +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) var rh2 = undefined & b; ->rh2 : number +>rh2 : number, Symbol(rh2, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 83, 3)) >undefined & b : number ->undefined : undefined ->b : number +>undefined : undefined, Symbol(undefined) +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) var rh3 = undefined & 1; ->rh3 : number +>rh3 : number, Symbol(rh3, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 84, 3)) >undefined & 1 : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>1 : number var rh4 = undefined & E.a; ->rh4 : number +>rh4 : number, Symbol(rh4, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 85, 3)) >undefined & E.a : number ->undefined : undefined ->E.a : E ->E : typeof E ->a : E +>undefined : undefined, Symbol(undefined) +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) var rh5 = a & undefined; ->rh5 : number +>rh5 : number, Symbol(rh5, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 86, 3)) >a & undefined : number ->a : any ->undefined : undefined +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var rh6 = b & undefined; ->rh6 : number +>rh6 : number, Symbol(rh6, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 87, 3)) >b & undefined : number ->b : number ->undefined : undefined +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var rh7 = 0 & undefined; ->rh7 : number +>rh7 : number, Symbol(rh7, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 88, 3)) >0 & undefined : number ->undefined : undefined +>0 : number +>undefined : undefined, Symbol(undefined) var rh8 = E.b & undefined; ->rh8 : number +>rh8 : number, Symbol(rh8, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 89, 3)) >E.b & undefined : number ->E.b : E ->E : typeof E ->b : E ->undefined : undefined +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>undefined : undefined, Symbol(undefined) // operator ^ var ri1 = undefined ^ a; ->ri1 : number +>ri1 : number, Symbol(ri1, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 92, 3)) >undefined ^ a : number ->undefined : undefined ->a : any +>undefined : undefined, Symbol(undefined) +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) var ri2 = undefined ^ b; ->ri2 : number +>ri2 : number, Symbol(ri2, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 93, 3)) >undefined ^ b : number ->undefined : undefined ->b : number +>undefined : undefined, Symbol(undefined) +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) var ri3 = undefined ^ 1; ->ri3 : number +>ri3 : number, Symbol(ri3, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 94, 3)) >undefined ^ 1 : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>1 : number var ri4 = undefined ^ E.a; ->ri4 : number +>ri4 : number, Symbol(ri4, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 95, 3)) >undefined ^ E.a : number ->undefined : undefined ->E.a : E ->E : typeof E ->a : E +>undefined : undefined, Symbol(undefined) +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) var ri5 = a ^ undefined; ->ri5 : number +>ri5 : number, Symbol(ri5, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 96, 3)) >a ^ undefined : number ->a : any ->undefined : undefined +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var ri6 = b ^ undefined; ->ri6 : number +>ri6 : number, Symbol(ri6, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 97, 3)) >b ^ undefined : number ->b : number ->undefined : undefined +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var ri7 = 0 ^ undefined; ->ri7 : number +>ri7 : number, Symbol(ri7, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 98, 3)) >0 ^ undefined : number ->undefined : undefined +>0 : number +>undefined : undefined, Symbol(undefined) var ri8 = E.b ^ undefined; ->ri8 : number +>ri8 : number, Symbol(ri8, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 99, 3)) >E.b ^ undefined : number ->E.b : E ->E : typeof E ->b : E ->undefined : undefined +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>undefined : undefined, Symbol(undefined) // operator | var rj1 = undefined | a; ->rj1 : number +>rj1 : number, Symbol(rj1, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 102, 3)) >undefined | a : number ->undefined : undefined ->a : any +>undefined : undefined, Symbol(undefined) +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) var rj2 = undefined | b; ->rj2 : number +>rj2 : number, Symbol(rj2, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 103, 3)) >undefined | b : number ->undefined : undefined ->b : number +>undefined : undefined, Symbol(undefined) +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) var rj3 = undefined | 1; ->rj3 : number +>rj3 : number, Symbol(rj3, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 104, 3)) >undefined | 1 : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>1 : number var rj4 = undefined | E.a; ->rj4 : number +>rj4 : number, Symbol(rj4, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 105, 3)) >undefined | E.a : number ->undefined : undefined ->E.a : E ->E : typeof E ->a : E +>undefined : undefined, Symbol(undefined) +>E.a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 3, 8)) var rj5 = a | undefined; ->rj5 : number +>rj5 : number, Symbol(rj5, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 106, 3)) >a | undefined : number ->a : any ->undefined : undefined +>a : any, Symbol(a, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var rj6 = b | undefined; ->rj6 : number +>rj6 : number, Symbol(rj6, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 107, 3)) >b | undefined : number ->b : number ->undefined : undefined +>b : number, Symbol(b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var rj7 = 0 | undefined; ->rj7 : number +>rj7 : number, Symbol(rj7, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 108, 3)) >0 | undefined : number ->undefined : undefined +>0 : number +>undefined : undefined, Symbol(undefined) var rj8 = E.b | undefined; ->rj8 : number +>rj8 : number, Symbol(rj8, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 109, 3)) >E.b | undefined : number ->E.b : E ->E : typeof E ->b : E ->undefined : undefined +>E.b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>E : typeof E, Symbol(E, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 0, 0)) +>b : E, Symbol(E.b, Decl(arithmeticOperatorWithUndefinedValueAndValidOperands.ts, 4, 6)) +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/arrayAssignmentTest6.types b/tests/baselines/reference/arrayAssignmentTest6.types index 0c932cb7556..b9a486f103b 100644 --- a/tests/baselines/reference/arrayAssignmentTest6.types +++ b/tests/baselines/reference/arrayAssignmentTest6.types @@ -1,51 +1,52 @@ === tests/cases/compiler/arrayAssignmentTest6.ts === module Test { ->Test : typeof Test +>Test : typeof Test, Symbol(Test, Decl(arrayAssignmentTest6.ts, 0, 0)) interface IState { ->IState : IState +>IState : IState, Symbol(IState, Decl(arrayAssignmentTest6.ts, 0, 13)) } interface IToken { ->IToken : IToken +>IToken : IToken, Symbol(IToken, Decl(arrayAssignmentTest6.ts, 2, 5)) startIndex: number; ->startIndex : number +>startIndex : number, Symbol(startIndex, Decl(arrayAssignmentTest6.ts, 3, 22)) } interface ILineTokens { ->ILineTokens : ILineTokens +>ILineTokens : ILineTokens, Symbol(ILineTokens, Decl(arrayAssignmentTest6.ts, 5, 5)) tokens: IToken[]; ->tokens : IToken[] ->IToken : IToken +>tokens : IToken[], Symbol(tokens, Decl(arrayAssignmentTest6.ts, 6, 27)) +>IToken : IToken, Symbol(IToken, Decl(arrayAssignmentTest6.ts, 2, 5)) endState: IState; ->endState : IState ->IState : IState +>endState : IState, Symbol(endState, Decl(arrayAssignmentTest6.ts, 7, 25)) +>IState : IState, Symbol(IState, Decl(arrayAssignmentTest6.ts, 0, 13)) } interface IMode { ->IMode : IMode +>IMode : IMode, Symbol(IMode, Decl(arrayAssignmentTest6.ts, 9, 5)) tokenize(line:string, state:IState, includeStates:boolean):ILineTokens; ->tokenize : (line: string, state: IState, includeStates: boolean) => ILineTokens ->line : string ->state : IState ->IState : IState ->includeStates : boolean ->ILineTokens : ILineTokens +>tokenize : (line: string, state: IState, includeStates: boolean) => ILineTokens, Symbol(tokenize, Decl(arrayAssignmentTest6.ts, 10, 21)) +>line : string, Symbol(line, Decl(arrayAssignmentTest6.ts, 11, 17)) +>state : IState, Symbol(state, Decl(arrayAssignmentTest6.ts, 11, 29)) +>IState : IState, Symbol(IState, Decl(arrayAssignmentTest6.ts, 0, 13)) +>includeStates : boolean, Symbol(includeStates, Decl(arrayAssignmentTest6.ts, 11, 43)) +>ILineTokens : ILineTokens, Symbol(ILineTokens, Decl(arrayAssignmentTest6.ts, 5, 5)) } export class Bug implements IMode { ->Bug : Bug ->IMode : IMode +>Bug : Bug, Symbol(Bug, Decl(arrayAssignmentTest6.ts, 12, 5)) +>IMode : IMode, Symbol(IMode, Decl(arrayAssignmentTest6.ts, 9, 5)) public tokenize(line:string, tokens:IToken[], includeStates:boolean):ILineTokens { ->tokenize : (line: string, tokens: IToken[], includeStates: boolean) => ILineTokens ->line : string ->tokens : IToken[] ->IToken : IToken ->includeStates : boolean ->ILineTokens : ILineTokens +>tokenize : (line: string, tokens: IToken[], includeStates: boolean) => ILineTokens, Symbol(tokenize, Decl(arrayAssignmentTest6.ts, 13, 39)) +>line : string, Symbol(line, Decl(arrayAssignmentTest6.ts, 14, 24)) +>tokens : IToken[], Symbol(tokens, Decl(arrayAssignmentTest6.ts, 14, 36)) +>IToken : IToken, Symbol(IToken, Decl(arrayAssignmentTest6.ts, 2, 5)) +>includeStates : boolean, Symbol(includeStates, Decl(arrayAssignmentTest6.ts, 14, 53)) +>ILineTokens : ILineTokens, Symbol(ILineTokens, Decl(arrayAssignmentTest6.ts, 5, 5)) return null; +>null : null } } } diff --git a/tests/baselines/reference/arrayAugment.types b/tests/baselines/reference/arrayAugment.types index b338d7f5c5f..e784d9cbb52 100644 --- a/tests/baselines/reference/arrayAugment.types +++ b/tests/baselines/reference/arrayAugment.types @@ -1,25 +1,27 @@ === tests/cases/compiler/arrayAugment.ts === interface Array { ->Array : T[] ->T : T +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(arrayAugment.ts, 0, 0)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(arrayAugment.ts, 0, 16)) split: (parts: number) => T[][]; ->split : (parts: number) => T[][] ->parts : number ->T : T +>split : (parts: number) => T[][], Symbol(split, Decl(arrayAugment.ts, 0, 20)) +>parts : number, Symbol(parts, Decl(arrayAugment.ts, 1, 12)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(arrayAugment.ts, 0, 16)) } var x = ['']; ->x : string[] +>x : string[], Symbol(x, Decl(arrayAugment.ts, 4, 3)) >[''] : string[] +>'' : string var y = x.split(4); ->y : string[][] +>y : string[][], Symbol(y, Decl(arrayAugment.ts, 5, 3), Decl(arrayAugment.ts, 6, 3)) >x.split(4) : string[][] ->x.split : (parts: number) => string[][] ->x : string[] ->split : (parts: number) => string[][] +>x.split : (parts: number) => string[][], Symbol(Array.split, Decl(arrayAugment.ts, 0, 20)) +>x : string[], Symbol(x, Decl(arrayAugment.ts, 4, 3)) +>split : (parts: number) => string[][], Symbol(Array.split, Decl(arrayAugment.ts, 0, 20)) +>4 : number var y: string[][]; // Expect no error here ->y : string[][] +>y : string[][], Symbol(y, Decl(arrayAugment.ts, 5, 3), Decl(arrayAugment.ts, 6, 3)) diff --git a/tests/baselines/reference/arrayBestCommonTypes.types b/tests/baselines/reference/arrayBestCommonTypes.types index 5e34380673d..66cf874850e 100644 --- a/tests/baselines/reference/arrayBestCommonTypes.types +++ b/tests/baselines/reference/arrayBestCommonTypes.types @@ -1,662 +1,800 @@ === tests/cases/compiler/arrayBestCommonTypes.ts === module EmptyTypes { ->EmptyTypes : typeof EmptyTypes +>EmptyTypes : typeof EmptyTypes, Symbol(EmptyTypes, Decl(arrayBestCommonTypes.ts, 0, 0)) interface iface { } ->iface : iface +>iface : iface, Symbol(iface, Decl(arrayBestCommonTypes.ts, 0, 19)) class base implements iface { } ->base : base ->iface : iface +>base : base, Symbol(base, Decl(arrayBestCommonTypes.ts, 1, 23)) +>iface : iface, Symbol(iface, Decl(arrayBestCommonTypes.ts, 0, 19)) class base2 implements iface { } ->base2 : base2 ->iface : iface +>base2 : base2, Symbol(base2, Decl(arrayBestCommonTypes.ts, 2, 35)) +>iface : iface, Symbol(iface, Decl(arrayBestCommonTypes.ts, 0, 19)) class derived extends base { } ->derived : derived ->base : base +>derived : derived, Symbol(derived, Decl(arrayBestCommonTypes.ts, 3, 36)) +>base : base, Symbol(base, Decl(arrayBestCommonTypes.ts, 1, 23)) class f { ->f : f +>f : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) public voidIfAny(x: boolean, y?: boolean): number; ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->x : boolean ->y : boolean +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>x : boolean, Symbol(x, Decl(arrayBestCommonTypes.ts, 8, 25)) +>y : boolean, Symbol(y, Decl(arrayBestCommonTypes.ts, 8, 36)) public voidIfAny(x: string, y?: boolean): number; ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->x : string ->y : boolean +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 9, 25)) +>y : boolean, Symbol(y, Decl(arrayBestCommonTypes.ts, 9, 35)) public voidIfAny(x: number, y?: boolean): number; ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->x : number ->y : boolean +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 10, 25)) +>y : boolean, Symbol(y, Decl(arrayBestCommonTypes.ts, 10, 35)) public voidIfAny(x: any, y = false): any { return null; } ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->x : any ->y : boolean +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>x : any, Symbol(x, Decl(arrayBestCommonTypes.ts, 11, 25)) +>y : boolean, Symbol(y, Decl(arrayBestCommonTypes.ts, 11, 32)) +>false : boolean +>null : null public x() { ->x : () => void +>x : () => void, Symbol(x, Decl(arrayBestCommonTypes.ts, 11, 65)) (this.voidIfAny([4, 2][0])); >(this.voidIfAny([4, 2][0])) : number >(this.voidIfAny([4, 2][0])) : number >this.voidIfAny([4, 2][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >[4, 2][0] : number >[4, 2] : number[] +>4 : number +>2 : number +>0 : number (this.voidIfAny([4, 2, undefined][0])); >(this.voidIfAny([4, 2, undefined][0])) : number >(this.voidIfAny([4, 2, undefined][0])) : number >this.voidIfAny([4, 2, undefined][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >[4, 2, undefined][0] : number >[4, 2, undefined] : number[] ->undefined : undefined +>4 : number +>2 : number +>undefined : undefined, Symbol(undefined) +>0 : number (this.voidIfAny([undefined, 2, 4][0])); >(this.voidIfAny([undefined, 2, 4][0])) : number >(this.voidIfAny([undefined, 2, 4][0])) : number >this.voidIfAny([undefined, 2, 4][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >[undefined, 2, 4][0] : number >[undefined, 2, 4] : number[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>2 : number +>4 : number +>0 : number (this.voidIfAny([null, 2, 4][0])); >(this.voidIfAny([null, 2, 4][0])) : number >(this.voidIfAny([null, 2, 4][0])) : number >this.voidIfAny([null, 2, 4][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >[null, 2, 4][0] : number >[null, 2, 4] : number[] +>null : null +>2 : number +>4 : number +>0 : number (this.voidIfAny([2, 4, null][0])); >(this.voidIfAny([2, 4, null][0])) : number >(this.voidIfAny([2, 4, null][0])) : number >this.voidIfAny([2, 4, null][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >[2, 4, null][0] : number >[2, 4, null] : number[] +>2 : number +>4 : number +>null : null +>0 : number (this.voidIfAny([undefined, 4, null][0])); >(this.voidIfAny([undefined, 4, null][0])) : number >(this.voidIfAny([undefined, 4, null][0])) : number >this.voidIfAny([undefined, 4, null][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >[undefined, 4, null][0] : number >[undefined, 4, null] : number[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>4 : number +>null : null +>0 : number (this.voidIfAny(['', "q"][0])); >(this.voidIfAny(['', "q"][0])) : number >(this.voidIfAny(['', "q"][0])) : number >this.voidIfAny(['', "q"][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >['', "q"][0] : string >['', "q"] : string[] +>'' : string +>"q" : string +>0 : number (this.voidIfAny(['', "q", undefined][0])); >(this.voidIfAny(['', "q", undefined][0])) : number >(this.voidIfAny(['', "q", undefined][0])) : number >this.voidIfAny(['', "q", undefined][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >['', "q", undefined][0] : string >['', "q", undefined] : string[] ->undefined : undefined +>'' : string +>"q" : string +>undefined : undefined, Symbol(undefined) +>0 : number (this.voidIfAny([undefined, "q", ''][0])); >(this.voidIfAny([undefined, "q", ''][0])) : number >(this.voidIfAny([undefined, "q", ''][0])) : number >this.voidIfAny([undefined, "q", ''][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >[undefined, "q", ''][0] : string >[undefined, "q", ''] : string[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>"q" : string +>'' : string +>0 : number (this.voidIfAny([null, "q", ''][0])); >(this.voidIfAny([null, "q", ''][0])) : number >(this.voidIfAny([null, "q", ''][0])) : number >this.voidIfAny([null, "q", ''][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >[null, "q", ''][0] : string >[null, "q", ''] : string[] +>null : null +>"q" : string +>'' : string +>0 : number (this.voidIfAny(["q", '', null][0])); >(this.voidIfAny(["q", '', null][0])) : number >(this.voidIfAny(["q", '', null][0])) : number >this.voidIfAny(["q", '', null][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >["q", '', null][0] : string >["q", '', null] : string[] +>"q" : string +>'' : string +>null : null +>0 : number (this.voidIfAny([undefined, '', null][0])); >(this.voidIfAny([undefined, '', null][0])) : number >(this.voidIfAny([undefined, '', null][0])) : number >this.voidIfAny([undefined, '', null][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >[undefined, '', null][0] : string >[undefined, '', null] : string[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>'' : string +>null : null +>0 : number (this.voidIfAny([[3, 4], [null]][0][0])); >(this.voidIfAny([[3, 4], [null]][0][0])) : number >(this.voidIfAny([[3, 4], [null]][0][0])) : number >this.voidIfAny([[3, 4], [null]][0][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 4, 34)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 7, 13), Decl(arrayBestCommonTypes.ts, 8, 58), Decl(arrayBestCommonTypes.ts, 9, 57), Decl(arrayBestCommonTypes.ts, 10, 57)) >[[3, 4], [null]][0][0] : number >[[3, 4], [null]][0] : number[] >[[3, 4], [null]] : number[][] >[3, 4] : number[] +>3 : number +>4 : number >[null] : null[] +>null : null +>0 : number +>0 : number var t1: { x: number; y: base; }[] = [{ x: 7, y: new derived() }, { x: 5, y: new base() }]; ->t1 : { x: number; y: base; }[] ->x : number ->y : base ->base : base +>t1 : { x: number; y: base; }[], Symbol(t1, Decl(arrayBestCommonTypes.ts, 31, 15)) +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 31, 21)) +>y : base, Symbol(y, Decl(arrayBestCommonTypes.ts, 31, 32)) +>base : base, Symbol(base, Decl(arrayBestCommonTypes.ts, 1, 23)) >[{ x: 7, y: new derived() }, { x: 5, y: new base() }] : { x: number; y: derived; }[] >{ x: 7, y: new derived() } : { x: number; y: derived; } ->x : number ->y : derived +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 31, 50)) +>7 : number +>y : derived, Symbol(y, Decl(arrayBestCommonTypes.ts, 31, 56)) >new derived() : derived ->derived : typeof derived +>derived : typeof derived, Symbol(derived, Decl(arrayBestCommonTypes.ts, 3, 36)) >{ x: 5, y: new base() } : { x: number; y: base; } ->x : number ->y : base +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 31, 78)) +>5 : number +>y : base, Symbol(y, Decl(arrayBestCommonTypes.ts, 31, 84)) >new base() : base ->base : typeof base +>base : typeof base, Symbol(base, Decl(arrayBestCommonTypes.ts, 1, 23)) var t2: { x: boolean; y: base; }[] = [{ x: true, y: new derived() }, { x: false, y: new base() }]; ->t2 : { x: boolean; y: base; }[] ->x : boolean ->y : base ->base : base +>t2 : { x: boolean; y: base; }[], Symbol(t2, Decl(arrayBestCommonTypes.ts, 32, 15)) +>x : boolean, Symbol(x, Decl(arrayBestCommonTypes.ts, 32, 21)) +>y : base, Symbol(y, Decl(arrayBestCommonTypes.ts, 32, 33)) +>base : base, Symbol(base, Decl(arrayBestCommonTypes.ts, 1, 23)) >[{ x: true, y: new derived() }, { x: false, y: new base() }] : { x: boolean; y: derived; }[] >{ x: true, y: new derived() } : { x: boolean; y: derived; } ->x : boolean ->y : derived +>x : boolean, Symbol(x, Decl(arrayBestCommonTypes.ts, 32, 51)) +>true : boolean +>y : derived, Symbol(y, Decl(arrayBestCommonTypes.ts, 32, 60)) >new derived() : derived ->derived : typeof derived +>derived : typeof derived, Symbol(derived, Decl(arrayBestCommonTypes.ts, 3, 36)) >{ x: false, y: new base() } : { x: boolean; y: base; } ->x : boolean ->y : base +>x : boolean, Symbol(x, Decl(arrayBestCommonTypes.ts, 32, 82)) +>false : boolean +>y : base, Symbol(y, Decl(arrayBestCommonTypes.ts, 32, 92)) >new base() : base ->base : typeof base +>base : typeof base, Symbol(base, Decl(arrayBestCommonTypes.ts, 1, 23)) var t3: { x: string; y: base; }[] = [{ x: undefined, y: new base() }, { x: '', y: new derived() }]; ->t3 : { x: string; y: base; }[] ->x : string ->y : base ->base : base +>t3 : { x: string; y: base; }[], Symbol(t3, Decl(arrayBestCommonTypes.ts, 33, 15)) +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 33, 21)) +>y : base, Symbol(y, Decl(arrayBestCommonTypes.ts, 33, 32)) +>base : base, Symbol(base, Decl(arrayBestCommonTypes.ts, 1, 23)) >[{ x: undefined, y: new base() }, { x: '', y: new derived() }] : { x: string; y: derived; }[] >{ x: undefined, y: new base() } : { x: undefined; y: base; } ->x : undefined ->undefined : undefined ->y : base +>x : undefined, Symbol(x, Decl(arrayBestCommonTypes.ts, 33, 50)) +>undefined : undefined, Symbol(undefined) +>y : base, Symbol(y, Decl(arrayBestCommonTypes.ts, 33, 64)) >new base() : base ->base : typeof base +>base : typeof base, Symbol(base, Decl(arrayBestCommonTypes.ts, 1, 23)) >{ x: '', y: new derived() } : { x: string; y: derived; } ->x : string ->y : derived +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 33, 83)) +>'' : string +>y : derived, Symbol(y, Decl(arrayBestCommonTypes.ts, 33, 90)) >new derived() : derived ->derived : typeof derived +>derived : typeof derived, Symbol(derived, Decl(arrayBestCommonTypes.ts, 3, 36)) var anyObj: any = null; ->anyObj : any +>anyObj : any, Symbol(anyObj, Decl(arrayBestCommonTypes.ts, 35, 15)) +>null : null // Order matters here so test all the variants var a1 = [{ x: 0, y: 'a' }, { x: 'a', y: 'a' }, { x: anyObj, y: 'a' }]; ->a1 : { x: any; y: string; }[] +>a1 : { x: any; y: string; }[], Symbol(a1, Decl(arrayBestCommonTypes.ts, 37, 15)) >[{ x: 0, y: 'a' }, { x: 'a', y: 'a' }, { x: anyObj, y: 'a' }] : { x: any; y: string; }[] >{ x: 0, y: 'a' } : { x: number; y: string; } ->x : number ->y : string +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 37, 23)) +>0 : number +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 37, 29)) +>'a' : string >{ x: 'a', y: 'a' } : { x: string; y: string; } ->x : string ->y : string +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 37, 41)) +>'a' : string +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 37, 49)) +>'a' : string >{ x: anyObj, y: 'a' } : { x: any; y: string; } ->x : any ->anyObj : any ->y : string +>x : any, Symbol(x, Decl(arrayBestCommonTypes.ts, 37, 61)) +>anyObj : any, Symbol(anyObj, Decl(arrayBestCommonTypes.ts, 35, 15)) +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 37, 72)) +>'a' : string var a2 = [{ x: anyObj, y: 'a' }, { x: 0, y: 'a' }, { x: 'a', y: 'a' }]; ->a2 : { x: any; y: string; }[] +>a2 : { x: any; y: string; }[], Symbol(a2, Decl(arrayBestCommonTypes.ts, 38, 15)) >[{ x: anyObj, y: 'a' }, { x: 0, y: 'a' }, { x: 'a', y: 'a' }] : { x: any; y: string; }[] >{ x: anyObj, y: 'a' } : { x: any; y: string; } ->x : any ->anyObj : any ->y : string +>x : any, Symbol(x, Decl(arrayBestCommonTypes.ts, 38, 23)) +>anyObj : any, Symbol(anyObj, Decl(arrayBestCommonTypes.ts, 35, 15)) +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 38, 34)) +>'a' : string >{ x: 0, y: 'a' } : { x: number; y: string; } ->x : number ->y : string +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 38, 46)) +>0 : number +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 38, 52)) +>'a' : string >{ x: 'a', y: 'a' } : { x: string; y: string; } ->x : string ->y : string +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 38, 64)) +>'a' : string +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 38, 72)) +>'a' : string var a3 = [{ x: 0, y: 'a' }, { x: anyObj, y: 'a' }, { x: 'a', y: 'a' }]; ->a3 : { x: any; y: string; }[] +>a3 : { x: any; y: string; }[], Symbol(a3, Decl(arrayBestCommonTypes.ts, 39, 15)) >[{ x: 0, y: 'a' }, { x: anyObj, y: 'a' }, { x: 'a', y: 'a' }] : { x: any; y: string; }[] >{ x: 0, y: 'a' } : { x: number; y: string; } ->x : number ->y : string +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 39, 23)) +>0 : number +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 39, 29)) +>'a' : string >{ x: anyObj, y: 'a' } : { x: any; y: string; } ->x : any ->anyObj : any ->y : string +>x : any, Symbol(x, Decl(arrayBestCommonTypes.ts, 39, 41)) +>anyObj : any, Symbol(anyObj, Decl(arrayBestCommonTypes.ts, 35, 15)) +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 39, 52)) +>'a' : string >{ x: 'a', y: 'a' } : { x: string; y: string; } ->x : string ->y : string +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 39, 64)) +>'a' : string +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 39, 72)) +>'a' : string var ifaceObj: iface = null; ->ifaceObj : iface ->iface : iface +>ifaceObj : iface, Symbol(ifaceObj, Decl(arrayBestCommonTypes.ts, 41, 15)) +>iface : iface, Symbol(iface, Decl(arrayBestCommonTypes.ts, 0, 19)) +>null : null var baseObj = new base(); ->baseObj : base +>baseObj : base, Symbol(baseObj, Decl(arrayBestCommonTypes.ts, 42, 15)) >new base() : base ->base : typeof base +>base : typeof base, Symbol(base, Decl(arrayBestCommonTypes.ts, 1, 23)) var base2Obj = new base2(); ->base2Obj : base2 +>base2Obj : base2, Symbol(base2Obj, Decl(arrayBestCommonTypes.ts, 43, 15)) >new base2() : base2 ->base2 : typeof base2 +>base2 : typeof base2, Symbol(base2, Decl(arrayBestCommonTypes.ts, 2, 35)) var b1 = [baseObj, base2Obj, ifaceObj]; ->b1 : iface[] +>b1 : iface[], Symbol(b1, Decl(arrayBestCommonTypes.ts, 45, 15)) >[baseObj, base2Obj, ifaceObj] : iface[] ->baseObj : base ->base2Obj : base2 ->ifaceObj : iface +>baseObj : base, Symbol(baseObj, Decl(arrayBestCommonTypes.ts, 42, 15)) +>base2Obj : base2, Symbol(base2Obj, Decl(arrayBestCommonTypes.ts, 43, 15)) +>ifaceObj : iface, Symbol(ifaceObj, Decl(arrayBestCommonTypes.ts, 41, 15)) var b2 = [base2Obj, baseObj, ifaceObj]; ->b2 : iface[] +>b2 : iface[], Symbol(b2, Decl(arrayBestCommonTypes.ts, 46, 15)) >[base2Obj, baseObj, ifaceObj] : iface[] ->base2Obj : base2 ->baseObj : base ->ifaceObj : iface +>base2Obj : base2, Symbol(base2Obj, Decl(arrayBestCommonTypes.ts, 43, 15)) +>baseObj : base, Symbol(baseObj, Decl(arrayBestCommonTypes.ts, 42, 15)) +>ifaceObj : iface, Symbol(ifaceObj, Decl(arrayBestCommonTypes.ts, 41, 15)) var b3 = [baseObj, ifaceObj, base2Obj]; ->b3 : iface[] +>b3 : iface[], Symbol(b3, Decl(arrayBestCommonTypes.ts, 47, 15)) >[baseObj, ifaceObj, base2Obj] : iface[] ->baseObj : base ->ifaceObj : iface ->base2Obj : base2 +>baseObj : base, Symbol(baseObj, Decl(arrayBestCommonTypes.ts, 42, 15)) +>ifaceObj : iface, Symbol(ifaceObj, Decl(arrayBestCommonTypes.ts, 41, 15)) +>base2Obj : base2, Symbol(base2Obj, Decl(arrayBestCommonTypes.ts, 43, 15)) var b4 = [ifaceObj, baseObj, base2Obj]; ->b4 : iface[] +>b4 : iface[], Symbol(b4, Decl(arrayBestCommonTypes.ts, 48, 15)) >[ifaceObj, baseObj, base2Obj] : iface[] ->ifaceObj : iface ->baseObj : base ->base2Obj : base2 +>ifaceObj : iface, Symbol(ifaceObj, Decl(arrayBestCommonTypes.ts, 41, 15)) +>baseObj : base, Symbol(baseObj, Decl(arrayBestCommonTypes.ts, 42, 15)) +>base2Obj : base2, Symbol(base2Obj, Decl(arrayBestCommonTypes.ts, 43, 15)) } } } module NonEmptyTypes { ->NonEmptyTypes : typeof NonEmptyTypes +>NonEmptyTypes : typeof NonEmptyTypes, Symbol(NonEmptyTypes, Decl(arrayBestCommonTypes.ts, 51, 1)) interface iface { x: string; } ->iface : iface ->x : string +>iface : iface, Symbol(iface, Decl(arrayBestCommonTypes.ts, 53, 22)) +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 54, 21)) class base implements iface { x: string; y: string; } ->base : base ->iface : iface ->x : string ->y : string +>base : base, Symbol(base, Decl(arrayBestCommonTypes.ts, 54, 34)) +>iface : iface, Symbol(iface, Decl(arrayBestCommonTypes.ts, 53, 22)) +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 55, 33)) +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 55, 44)) class base2 implements iface { x: string; z: string; } ->base2 : base2 ->iface : iface ->x : string ->z : string +>base2 : base2, Symbol(base2, Decl(arrayBestCommonTypes.ts, 55, 57)) +>iface : iface, Symbol(iface, Decl(arrayBestCommonTypes.ts, 53, 22)) +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 56, 34)) +>z : string, Symbol(z, Decl(arrayBestCommonTypes.ts, 56, 45)) class derived extends base { a: string; } ->derived : derived ->base : base ->a : string +>derived : derived, Symbol(derived, Decl(arrayBestCommonTypes.ts, 56, 58)) +>base : base, Symbol(base, Decl(arrayBestCommonTypes.ts, 54, 34)) +>a : string, Symbol(a, Decl(arrayBestCommonTypes.ts, 57, 32)) class f { ->f : f +>f : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) public voidIfAny(x: boolean, y?: boolean): number; ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->x : boolean ->y : boolean +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>x : boolean, Symbol(x, Decl(arrayBestCommonTypes.ts, 61, 25)) +>y : boolean, Symbol(y, Decl(arrayBestCommonTypes.ts, 61, 36)) public voidIfAny(x: string, y?: boolean): number; ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->x : string ->y : boolean +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 62, 25)) +>y : boolean, Symbol(y, Decl(arrayBestCommonTypes.ts, 62, 35)) public voidIfAny(x: number, y?: boolean): number; ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->x : number ->y : boolean +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 63, 25)) +>y : boolean, Symbol(y, Decl(arrayBestCommonTypes.ts, 63, 35)) public voidIfAny(x: any, y = false): any { return null; } ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->x : any ->y : boolean +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>x : any, Symbol(x, Decl(arrayBestCommonTypes.ts, 64, 25)) +>y : boolean, Symbol(y, Decl(arrayBestCommonTypes.ts, 64, 32)) +>false : boolean +>null : null public x() { ->x : () => void +>x : () => void, Symbol(x, Decl(arrayBestCommonTypes.ts, 64, 65)) (this.voidIfAny([4, 2][0])); >(this.voidIfAny([4, 2][0])) : number >(this.voidIfAny([4, 2][0])) : number >this.voidIfAny([4, 2][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >[4, 2][0] : number >[4, 2] : number[] +>4 : number +>2 : number +>0 : number (this.voidIfAny([4, 2, undefined][0])); >(this.voidIfAny([4, 2, undefined][0])) : number >(this.voidIfAny([4, 2, undefined][0])) : number >this.voidIfAny([4, 2, undefined][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >[4, 2, undefined][0] : number >[4, 2, undefined] : number[] ->undefined : undefined +>4 : number +>2 : number +>undefined : undefined, Symbol(undefined) +>0 : number (this.voidIfAny([undefined, 2, 4][0])); >(this.voidIfAny([undefined, 2, 4][0])) : number >(this.voidIfAny([undefined, 2, 4][0])) : number >this.voidIfAny([undefined, 2, 4][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >[undefined, 2, 4][0] : number >[undefined, 2, 4] : number[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>2 : number +>4 : number +>0 : number (this.voidIfAny([null, 2, 4][0])); >(this.voidIfAny([null, 2, 4][0])) : number >(this.voidIfAny([null, 2, 4][0])) : number >this.voidIfAny([null, 2, 4][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >[null, 2, 4][0] : number >[null, 2, 4] : number[] +>null : null +>2 : number +>4 : number +>0 : number (this.voidIfAny([2, 4, null][0])); >(this.voidIfAny([2, 4, null][0])) : number >(this.voidIfAny([2, 4, null][0])) : number >this.voidIfAny([2, 4, null][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >[2, 4, null][0] : number >[2, 4, null] : number[] +>2 : number +>4 : number +>null : null +>0 : number (this.voidIfAny([undefined, 4, null][0])); >(this.voidIfAny([undefined, 4, null][0])) : number >(this.voidIfAny([undefined, 4, null][0])) : number >this.voidIfAny([undefined, 4, null][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >[undefined, 4, null][0] : number >[undefined, 4, null] : number[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>4 : number +>null : null +>0 : number (this.voidIfAny(['', "q"][0])); >(this.voidIfAny(['', "q"][0])) : number >(this.voidIfAny(['', "q"][0])) : number >this.voidIfAny(['', "q"][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >['', "q"][0] : string >['', "q"] : string[] +>'' : string +>"q" : string +>0 : number (this.voidIfAny(['', "q", undefined][0])); >(this.voidIfAny(['', "q", undefined][0])) : number >(this.voidIfAny(['', "q", undefined][0])) : number >this.voidIfAny(['', "q", undefined][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >['', "q", undefined][0] : string >['', "q", undefined] : string[] ->undefined : undefined +>'' : string +>"q" : string +>undefined : undefined, Symbol(undefined) +>0 : number (this.voidIfAny([undefined, "q", ''][0])); >(this.voidIfAny([undefined, "q", ''][0])) : number >(this.voidIfAny([undefined, "q", ''][0])) : number >this.voidIfAny([undefined, "q", ''][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >[undefined, "q", ''][0] : string >[undefined, "q", ''] : string[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>"q" : string +>'' : string +>0 : number (this.voidIfAny([null, "q", ''][0])); >(this.voidIfAny([null, "q", ''][0])) : number >(this.voidIfAny([null, "q", ''][0])) : number >this.voidIfAny([null, "q", ''][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >[null, "q", ''][0] : string >[null, "q", ''] : string[] +>null : null +>"q" : string +>'' : string +>0 : number (this.voidIfAny(["q", '', null][0])); >(this.voidIfAny(["q", '', null][0])) : number >(this.voidIfAny(["q", '', null][0])) : number >this.voidIfAny(["q", '', null][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >["q", '', null][0] : string >["q", '', null] : string[] +>"q" : string +>'' : string +>null : null +>0 : number (this.voidIfAny([undefined, '', null][0])); >(this.voidIfAny([undefined, '', null][0])) : number >(this.voidIfAny([undefined, '', null][0])) : number >this.voidIfAny([undefined, '', null][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >[undefined, '', null][0] : string >[undefined, '', null] : string[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>'' : string +>null : null +>0 : number (this.voidIfAny([[3, 4], [null]][0][0])); >(this.voidIfAny([[3, 4], [null]][0][0])) : number >(this.voidIfAny([[3, 4], [null]][0][0])) : number >this.voidIfAny([[3, 4], [null]][0][0]) : number ->this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } ->this : f ->voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; } +>this.voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) +>this : f, Symbol(f, Decl(arrayBestCommonTypes.ts, 57, 45)) +>voidIfAny : { (x: boolean, y?: boolean): number; (x: string, y?: boolean): number; (x: number, y?: boolean): number; }, Symbol(voidIfAny, Decl(arrayBestCommonTypes.ts, 60, 13), Decl(arrayBestCommonTypes.ts, 61, 58), Decl(arrayBestCommonTypes.ts, 62, 57), Decl(arrayBestCommonTypes.ts, 63, 57)) >[[3, 4], [null]][0][0] : number >[[3, 4], [null]][0] : number[] >[[3, 4], [null]] : number[][] >[3, 4] : number[] +>3 : number +>4 : number >[null] : null[] +>null : null +>0 : number +>0 : number var t1: { x: number; y: base; }[] = [{ x: 7, y: new derived() }, { x: 5, y: new base() }]; ->t1 : { x: number; y: base; }[] ->x : number ->y : base ->base : base +>t1 : { x: number; y: base; }[], Symbol(t1, Decl(arrayBestCommonTypes.ts, 84, 15)) +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 84, 21)) +>y : base, Symbol(y, Decl(arrayBestCommonTypes.ts, 84, 32)) +>base : base, Symbol(base, Decl(arrayBestCommonTypes.ts, 54, 34)) >[{ x: 7, y: new derived() }, { x: 5, y: new base() }] : { x: number; y: base; }[] >{ x: 7, y: new derived() } : { x: number; y: derived; } ->x : number ->y : derived +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 84, 50)) +>7 : number +>y : derived, Symbol(y, Decl(arrayBestCommonTypes.ts, 84, 56)) >new derived() : derived ->derived : typeof derived +>derived : typeof derived, Symbol(derived, Decl(arrayBestCommonTypes.ts, 56, 58)) >{ x: 5, y: new base() } : { x: number; y: base; } ->x : number ->y : base +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 84, 78)) +>5 : number +>y : base, Symbol(y, Decl(arrayBestCommonTypes.ts, 84, 84)) >new base() : base ->base : typeof base +>base : typeof base, Symbol(base, Decl(arrayBestCommonTypes.ts, 54, 34)) var t2: { x: boolean; y: base; }[] = [{ x: true, y: new derived() }, { x: false, y: new base() }]; ->t2 : { x: boolean; y: base; }[] ->x : boolean ->y : base ->base : base +>t2 : { x: boolean; y: base; }[], Symbol(t2, Decl(arrayBestCommonTypes.ts, 85, 15)) +>x : boolean, Symbol(x, Decl(arrayBestCommonTypes.ts, 85, 21)) +>y : base, Symbol(y, Decl(arrayBestCommonTypes.ts, 85, 33)) +>base : base, Symbol(base, Decl(arrayBestCommonTypes.ts, 54, 34)) >[{ x: true, y: new derived() }, { x: false, y: new base() }] : { x: boolean; y: base; }[] >{ x: true, y: new derived() } : { x: boolean; y: derived; } ->x : boolean ->y : derived +>x : boolean, Symbol(x, Decl(arrayBestCommonTypes.ts, 85, 51)) +>true : boolean +>y : derived, Symbol(y, Decl(arrayBestCommonTypes.ts, 85, 60)) >new derived() : derived ->derived : typeof derived +>derived : typeof derived, Symbol(derived, Decl(arrayBestCommonTypes.ts, 56, 58)) >{ x: false, y: new base() } : { x: boolean; y: base; } ->x : boolean ->y : base +>x : boolean, Symbol(x, Decl(arrayBestCommonTypes.ts, 85, 82)) +>false : boolean +>y : base, Symbol(y, Decl(arrayBestCommonTypes.ts, 85, 92)) >new base() : base ->base : typeof base +>base : typeof base, Symbol(base, Decl(arrayBestCommonTypes.ts, 54, 34)) var t3: { x: string; y: base; }[] = [{ x: undefined, y: new base() }, { x: '', y: new derived() }]; ->t3 : { x: string; y: base; }[] ->x : string ->y : base ->base : base +>t3 : { x: string; y: base; }[], Symbol(t3, Decl(arrayBestCommonTypes.ts, 86, 15)) +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 86, 21)) +>y : base, Symbol(y, Decl(arrayBestCommonTypes.ts, 86, 32)) +>base : base, Symbol(base, Decl(arrayBestCommonTypes.ts, 54, 34)) >[{ x: undefined, y: new base() }, { x: '', y: new derived() }] : ({ x: undefined; y: base; } | { x: string; y: derived; })[] >{ x: undefined, y: new base() } : { x: undefined; y: base; } ->x : undefined ->undefined : undefined ->y : base +>x : undefined, Symbol(x, Decl(arrayBestCommonTypes.ts, 86, 50)) +>undefined : undefined, Symbol(undefined) +>y : base, Symbol(y, Decl(arrayBestCommonTypes.ts, 86, 64)) >new base() : base ->base : typeof base +>base : typeof base, Symbol(base, Decl(arrayBestCommonTypes.ts, 54, 34)) >{ x: '', y: new derived() } : { x: string; y: derived; } ->x : string ->y : derived +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 86, 83)) +>'' : string +>y : derived, Symbol(y, Decl(arrayBestCommonTypes.ts, 86, 90)) >new derived() : derived ->derived : typeof derived +>derived : typeof derived, Symbol(derived, Decl(arrayBestCommonTypes.ts, 56, 58)) var anyObj: any = null; ->anyObj : any +>anyObj : any, Symbol(anyObj, Decl(arrayBestCommonTypes.ts, 88, 15)) +>null : null // Order matters here so test all the variants var a1 = [{ x: 0, y: 'a' }, { x: 'a', y: 'a' }, { x: anyObj, y: 'a' }]; ->a1 : { x: any; y: string; }[] +>a1 : { x: any; y: string; }[], Symbol(a1, Decl(arrayBestCommonTypes.ts, 90, 15)) >[{ x: 0, y: 'a' }, { x: 'a', y: 'a' }, { x: anyObj, y: 'a' }] : { x: any; y: string; }[] >{ x: 0, y: 'a' } : { x: number; y: string; } ->x : number ->y : string +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 90, 23)) +>0 : number +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 90, 29)) +>'a' : string >{ x: 'a', y: 'a' } : { x: string; y: string; } ->x : string ->y : string +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 90, 41)) +>'a' : string +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 90, 49)) +>'a' : string >{ x: anyObj, y: 'a' } : { x: any; y: string; } ->x : any ->anyObj : any ->y : string +>x : any, Symbol(x, Decl(arrayBestCommonTypes.ts, 90, 61)) +>anyObj : any, Symbol(anyObj, Decl(arrayBestCommonTypes.ts, 88, 15)) +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 90, 72)) +>'a' : string var a2 = [{ x: anyObj, y: 'a' }, { x: 0, y: 'a' }, { x: 'a', y: 'a' }]; ->a2 : { x: any; y: string; }[] +>a2 : { x: any; y: string; }[], Symbol(a2, Decl(arrayBestCommonTypes.ts, 91, 15)) >[{ x: anyObj, y: 'a' }, { x: 0, y: 'a' }, { x: 'a', y: 'a' }] : { x: any; y: string; }[] >{ x: anyObj, y: 'a' } : { x: any; y: string; } ->x : any ->anyObj : any ->y : string +>x : any, Symbol(x, Decl(arrayBestCommonTypes.ts, 91, 23)) +>anyObj : any, Symbol(anyObj, Decl(arrayBestCommonTypes.ts, 88, 15)) +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 91, 34)) +>'a' : string >{ x: 0, y: 'a' } : { x: number; y: string; } ->x : number ->y : string +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 91, 46)) +>0 : number +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 91, 52)) +>'a' : string >{ x: 'a', y: 'a' } : { x: string; y: string; } ->x : string ->y : string +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 91, 64)) +>'a' : string +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 91, 72)) +>'a' : string var a3 = [{ x: 0, y: 'a' }, { x: anyObj, y: 'a' }, { x: 'a', y: 'a' }]; ->a3 : { x: any; y: string; }[] +>a3 : { x: any; y: string; }[], Symbol(a3, Decl(arrayBestCommonTypes.ts, 92, 15)) >[{ x: 0, y: 'a' }, { x: anyObj, y: 'a' }, { x: 'a', y: 'a' }] : { x: any; y: string; }[] >{ x: 0, y: 'a' } : { x: number; y: string; } ->x : number ->y : string +>x : number, Symbol(x, Decl(arrayBestCommonTypes.ts, 92, 23)) +>0 : number +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 92, 29)) +>'a' : string >{ x: anyObj, y: 'a' } : { x: any; y: string; } ->x : any ->anyObj : any ->y : string +>x : any, Symbol(x, Decl(arrayBestCommonTypes.ts, 92, 41)) +>anyObj : any, Symbol(anyObj, Decl(arrayBestCommonTypes.ts, 88, 15)) +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 92, 52)) +>'a' : string >{ x: 'a', y: 'a' } : { x: string; y: string; } ->x : string ->y : string +>x : string, Symbol(x, Decl(arrayBestCommonTypes.ts, 92, 64)) +>'a' : string +>y : string, Symbol(y, Decl(arrayBestCommonTypes.ts, 92, 72)) +>'a' : string var ifaceObj: iface = null; ->ifaceObj : iface ->iface : iface +>ifaceObj : iface, Symbol(ifaceObj, Decl(arrayBestCommonTypes.ts, 94, 15)) +>iface : iface, Symbol(iface, Decl(arrayBestCommonTypes.ts, 53, 22)) +>null : null var baseObj = new base(); ->baseObj : base +>baseObj : base, Symbol(baseObj, Decl(arrayBestCommonTypes.ts, 95, 15)) >new base() : base ->base : typeof base +>base : typeof base, Symbol(base, Decl(arrayBestCommonTypes.ts, 54, 34)) var base2Obj = new base2(); ->base2Obj : base2 +>base2Obj : base2, Symbol(base2Obj, Decl(arrayBestCommonTypes.ts, 96, 15)) >new base2() : base2 ->base2 : typeof base2 +>base2 : typeof base2, Symbol(base2, Decl(arrayBestCommonTypes.ts, 55, 57)) var b1 = [baseObj, base2Obj, ifaceObj]; ->b1 : iface[] +>b1 : iface[], Symbol(b1, Decl(arrayBestCommonTypes.ts, 98, 15)) >[baseObj, base2Obj, ifaceObj] : iface[] ->baseObj : base ->base2Obj : base2 ->ifaceObj : iface +>baseObj : base, Symbol(baseObj, Decl(arrayBestCommonTypes.ts, 95, 15)) +>base2Obj : base2, Symbol(base2Obj, Decl(arrayBestCommonTypes.ts, 96, 15)) +>ifaceObj : iface, Symbol(ifaceObj, Decl(arrayBestCommonTypes.ts, 94, 15)) var b2 = [base2Obj, baseObj, ifaceObj]; ->b2 : iface[] +>b2 : iface[], Symbol(b2, Decl(arrayBestCommonTypes.ts, 99, 15)) >[base2Obj, baseObj, ifaceObj] : iface[] ->base2Obj : base2 ->baseObj : base ->ifaceObj : iface +>base2Obj : base2, Symbol(base2Obj, Decl(arrayBestCommonTypes.ts, 96, 15)) +>baseObj : base, Symbol(baseObj, Decl(arrayBestCommonTypes.ts, 95, 15)) +>ifaceObj : iface, Symbol(ifaceObj, Decl(arrayBestCommonTypes.ts, 94, 15)) var b3 = [baseObj, ifaceObj, base2Obj]; ->b3 : iface[] +>b3 : iface[], Symbol(b3, Decl(arrayBestCommonTypes.ts, 100, 15)) >[baseObj, ifaceObj, base2Obj] : iface[] ->baseObj : base ->ifaceObj : iface ->base2Obj : base2 +>baseObj : base, Symbol(baseObj, Decl(arrayBestCommonTypes.ts, 95, 15)) +>ifaceObj : iface, Symbol(ifaceObj, Decl(arrayBestCommonTypes.ts, 94, 15)) +>base2Obj : base2, Symbol(base2Obj, Decl(arrayBestCommonTypes.ts, 96, 15)) var b4 = [ifaceObj, baseObj, base2Obj]; ->b4 : iface[] +>b4 : iface[], Symbol(b4, Decl(arrayBestCommonTypes.ts, 101, 15)) >[ifaceObj, baseObj, base2Obj] : iface[] ->ifaceObj : iface ->baseObj : base ->base2Obj : base2 +>ifaceObj : iface, Symbol(ifaceObj, Decl(arrayBestCommonTypes.ts, 94, 15)) +>baseObj : base, Symbol(baseObj, Decl(arrayBestCommonTypes.ts, 95, 15)) +>base2Obj : base2, Symbol(base2Obj, Decl(arrayBestCommonTypes.ts, 96, 15)) } } } diff --git a/tests/baselines/reference/arrayBindingPatternOmittedExpressions.types b/tests/baselines/reference/arrayBindingPatternOmittedExpressions.types index ba1ac955b85..7acae10cffd 100644 --- a/tests/baselines/reference/arrayBindingPatternOmittedExpressions.types +++ b/tests/baselines/reference/arrayBindingPatternOmittedExpressions.types @@ -1,43 +1,54 @@ === tests/cases/compiler/arrayBindingPatternOmittedExpressions.ts === var results: string[]; ->results : string[] +>results : string[], Symbol(results, Decl(arrayBindingPatternOmittedExpressions.ts, 1, 3)) { let [, b, , a] = results; ->b : string ->a : string ->results : string[] +> : undefined +>b : string, Symbol(b, Decl(arrayBindingPatternOmittedExpressions.ts, 4, 10)) +> : undefined +>a : string, Symbol(a, Decl(arrayBindingPatternOmittedExpressions.ts, 4, 15)) +>results : string[], Symbol(results, Decl(arrayBindingPatternOmittedExpressions.ts, 1, 3)) let x = { ->x : { a: string; b: string; } +>x : { a: string; b: string; }, Symbol(x, Decl(arrayBindingPatternOmittedExpressions.ts, 5, 7)) >{ a, b } : { a: string; b: string; } a, ->a : string +>a : string, Symbol(a, Decl(arrayBindingPatternOmittedExpressions.ts, 5, 13)) b ->b : string +>b : string, Symbol(b, Decl(arrayBindingPatternOmittedExpressions.ts, 6, 10)) } } function f([, a, , b, , , , s, , , ] = results) { ->f : ([, a, , b, , , , s, , , ]?: string[]) => void ->a : string ->b : string ->s : string ->results : string[] +>f : ([, a, , b, , , , s, , , ]?: string[]) => void, Symbol(f, Decl(arrayBindingPatternOmittedExpressions.ts, 9, 1)) +> : undefined +>a : string, Symbol(a, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 13)) +> : undefined +>b : string, Symbol(b, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 18)) +> : undefined +> : undefined +> : undefined +>s : string, Symbol(s, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 27)) +> : undefined +> : undefined +>results : string[], Symbol(results, Decl(arrayBindingPatternOmittedExpressions.ts, 1, 3)) a = s[1]; >a = s[1] : string ->a : string +>a : string, Symbol(a, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 13)) >s[1] : string ->s : string +>s : string, Symbol(s, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 27)) +>1 : number b = s[2]; >b = s[2] : string ->b : string +>b : string, Symbol(b, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 18)) >s[2] : string ->s : string +>s : string, Symbol(s, Decl(arrayBindingPatternOmittedExpressions.ts, 12, 27)) +>2 : number } diff --git a/tests/baselines/reference/arrayConcat2.types b/tests/baselines/reference/arrayConcat2.types index aa0e0478033..873d286f784 100644 --- a/tests/baselines/reference/arrayConcat2.types +++ b/tests/baselines/reference/arrayConcat2.types @@ -1,28 +1,32 @@ === tests/cases/compiler/arrayConcat2.ts === var a: string[] = []; ->a : string[] +>a : string[], Symbol(a, Decl(arrayConcat2.ts, 0, 3)) >[] : undefined[] a.concat("hello", 'world'); >a.concat("hello", 'world') : string[] ->a.concat : { (...items: U[]): string[]; (...items: string[]): string[]; } ->a : string[] ->concat : { (...items: U[]): string[]; (...items: string[]): string[]; } +>a.concat : { (...items: U[]): string[]; (...items: string[]): string[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) +>a : string[], Symbol(a, Decl(arrayConcat2.ts, 0, 3)) +>concat : { (...items: U[]): string[]; (...items: string[]): string[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) +>"hello" : string +>'world' : string a.concat('Hello'); >a.concat('Hello') : string[] ->a.concat : { (...items: U[]): string[]; (...items: string[]): string[]; } ->a : string[] ->concat : { (...items: U[]): string[]; (...items: string[]): string[]; } +>a.concat : { (...items: U[]): string[]; (...items: string[]): string[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) +>a : string[], Symbol(a, Decl(arrayConcat2.ts, 0, 3)) +>concat : { (...items: U[]): string[]; (...items: string[]): string[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) +>'Hello' : string var b = new Array(); ->b : string[] +>b : string[], Symbol(b, Decl(arrayConcat2.ts, 5, 3)) >new Array() : string[] ->Array : ArrayConstructor +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) b.concat('hello'); >b.concat('hello') : string[] ->b.concat : { (...items: U[]): string[]; (...items: string[]): string[]; } ->b : string[] ->concat : { (...items: U[]): string[]; (...items: string[]): string[]; } +>b.concat : { (...items: U[]): string[]; (...items: string[]): string[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) +>b : string[], Symbol(b, Decl(arrayConcat2.ts, 5, 3)) +>concat : { (...items: U[]): string[]; (...items: string[]): string[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) +>'hello' : string diff --git a/tests/baselines/reference/arrayConcatMap.types b/tests/baselines/reference/arrayConcatMap.types index 92da3edf93f..dc4aa178a61 100644 --- a/tests/baselines/reference/arrayConcatMap.types +++ b/tests/baselines/reference/arrayConcatMap.types @@ -1,24 +1,26 @@ === tests/cases/compiler/arrayConcatMap.ts === var x = [].concat([{ a: 1 }], [{ a: 2 }]) ->x : any[] +>x : any[], Symbol(x, Decl(arrayConcatMap.ts, 0, 3)) >[].concat([{ a: 1 }], [{ a: 2 }]) .map(b => b.a) : any[] ->[].concat([{ a: 1 }], [{ a: 2 }]) .map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[] +>[].concat([{ a: 1 }], [{ a: 2 }]) .map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >[].concat([{ a: 1 }], [{ a: 2 }]) : any[] ->[].concat : { (...items: U[]): any[]; (...items: any[]): any[]; } +>[].concat : { (...items: U[]): any[]; (...items: any[]): any[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) >[] : undefined[] ->concat : { (...items: U[]): any[]; (...items: any[]): any[]; } +>concat : { (...items: U[]): any[]; (...items: any[]): any[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) >[{ a: 1 }] : { a: number; }[] >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(arrayConcatMap.ts, 0, 20)) +>1 : number >[{ a: 2 }] : { a: number; }[] >{ a: 2 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(arrayConcatMap.ts, 0, 32)) +>2 : number .map(b => b.a); ->map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[] +>map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >b => b.a : (b: any) => any ->b : any +>b : any, Symbol(b, Decl(arrayConcatMap.ts, 1, 15)) >b.a : any ->b : any +>b : any, Symbol(b, Decl(arrayConcatMap.ts, 1, 15)) >a : any diff --git a/tests/baselines/reference/arrayConstructors1.types b/tests/baselines/reference/arrayConstructors1.types index 6dbdc0cd8f2..f231cd627a4 100644 --- a/tests/baselines/reference/arrayConstructors1.types +++ b/tests/baselines/reference/arrayConstructors1.types @@ -1,43 +1,53 @@ === tests/cases/compiler/arrayConstructors1.ts === var x: string[]; ->x : string[] +>x : string[], Symbol(x, Decl(arrayConstructors1.ts, 0, 3)) x = new Array(1); >x = new Array(1) : any[] ->x : string[] +>x : string[], Symbol(x, Decl(arrayConstructors1.ts, 0, 3)) >new Array(1) : any[] ->Array : ArrayConstructor +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>1 : number x = new Array('hi', 'bye'); >x = new Array('hi', 'bye') : string[] ->x : string[] +>x : string[], Symbol(x, Decl(arrayConstructors1.ts, 0, 3)) >new Array('hi', 'bye') : string[] ->Array : ArrayConstructor +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>'hi' : string +>'bye' : string x = new Array('hi', 'bye'); >x = new Array('hi', 'bye') : string[] ->x : string[] +>x : string[], Symbol(x, Decl(arrayConstructors1.ts, 0, 3)) >new Array('hi', 'bye') : string[] ->Array : ArrayConstructor +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>'hi' : string +>'bye' : string var y: number[]; ->y : number[] +>y : number[], Symbol(y, Decl(arrayConstructors1.ts, 5, 3)) y = new Array(1); >y = new Array(1) : any[] ->y : number[] +>y : number[], Symbol(y, Decl(arrayConstructors1.ts, 5, 3)) >new Array(1) : any[] ->Array : ArrayConstructor +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>1 : number y = new Array(1,2); >y = new Array(1,2) : number[] ->y : number[] +>y : number[], Symbol(y, Decl(arrayConstructors1.ts, 5, 3)) >new Array(1,2) : number[] ->Array : ArrayConstructor +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>1 : number +>2 : number y = new Array(1, 2); >y = new Array(1, 2) : number[] ->y : number[] +>y : number[], Symbol(y, Decl(arrayConstructors1.ts, 5, 3)) >new Array(1, 2) : number[] ->Array : ArrayConstructor +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>1 : number +>2 : number diff --git a/tests/baselines/reference/arrayLiteral.types b/tests/baselines/reference/arrayLiteral.types index a5ab7368937..406ecad0e72 100644 --- a/tests/baselines/reference/arrayLiteral.types +++ b/tests/baselines/reference/arrayLiteral.types @@ -2,46 +2,54 @@ // valid uses of array literals var x = []; ->x : any[] +>x : any[], Symbol(x, Decl(arrayLiteral.ts, 2, 3), Decl(arrayLiteral.ts, 3, 3)) >[] : undefined[] var x = new Array(1); ->x : any[] +>x : any[], Symbol(x, Decl(arrayLiteral.ts, 2, 3), Decl(arrayLiteral.ts, 3, 3)) >new Array(1) : any[] ->Array : ArrayConstructor +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>1 : number var y = [1]; ->y : number[] +>y : number[], Symbol(y, Decl(arrayLiteral.ts, 5, 3), Decl(arrayLiteral.ts, 6, 3), Decl(arrayLiteral.ts, 7, 3)) >[1] : number[] +>1 : number var y = [1, 2]; ->y : number[] +>y : number[], Symbol(y, Decl(arrayLiteral.ts, 5, 3), Decl(arrayLiteral.ts, 6, 3), Decl(arrayLiteral.ts, 7, 3)) >[1, 2] : number[] +>1 : number +>2 : number var y = new Array(); ->y : number[] +>y : number[], Symbol(y, Decl(arrayLiteral.ts, 5, 3), Decl(arrayLiteral.ts, 6, 3), Decl(arrayLiteral.ts, 7, 3)) >new Array() : number[] ->Array : ArrayConstructor +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) var x2: number[] = []; ->x2 : number[] +>x2 : number[], Symbol(x2, Decl(arrayLiteral.ts, 9, 3), Decl(arrayLiteral.ts, 10, 3)) >[] : undefined[] var x2: number[] = new Array(1); ->x2 : number[] +>x2 : number[], Symbol(x2, Decl(arrayLiteral.ts, 9, 3), Decl(arrayLiteral.ts, 10, 3)) >new Array(1) : any[] ->Array : ArrayConstructor +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>1 : number var y2: number[] = [1]; ->y2 : number[] +>y2 : number[], Symbol(y2, Decl(arrayLiteral.ts, 12, 3), Decl(arrayLiteral.ts, 13, 3), Decl(arrayLiteral.ts, 14, 3)) >[1] : number[] +>1 : number var y2: number[] = [1, 2]; ->y2 : number[] +>y2 : number[], Symbol(y2, Decl(arrayLiteral.ts, 12, 3), Decl(arrayLiteral.ts, 13, 3), Decl(arrayLiteral.ts, 14, 3)) >[1, 2] : number[] +>1 : number +>2 : number var y2: number[] = new Array(); ->y2 : number[] +>y2 : number[], Symbol(y2, Decl(arrayLiteral.ts, 12, 3), Decl(arrayLiteral.ts, 13, 3), Decl(arrayLiteral.ts, 14, 3)) >new Array() : number[] ->Array : ArrayConstructor +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) diff --git a/tests/baselines/reference/arrayLiteral1.types b/tests/baselines/reference/arrayLiteral1.types index 79d00f5f46f..dda1375d66d 100644 --- a/tests/baselines/reference/arrayLiteral1.types +++ b/tests/baselines/reference/arrayLiteral1.types @@ -1,5 +1,7 @@ === tests/cases/compiler/arrayLiteral1.ts === var v30 = [1, 2]; ->v30 : number[] +>v30 : number[], Symbol(v30, Decl(arrayLiteral1.ts, 0, 3)) >[1, 2] : number[] +>1 : number +>2 : number diff --git a/tests/baselines/reference/arrayLiteral2.types b/tests/baselines/reference/arrayLiteral2.types index cd370c0f1a9..e4b8bda8794 100644 --- a/tests/baselines/reference/arrayLiteral2.types +++ b/tests/baselines/reference/arrayLiteral2.types @@ -1,6 +1,8 @@ === tests/cases/compiler/arrayLiteral2.ts === var v30 = [1, 2], v31; ->v30 : number[] +>v30 : number[], Symbol(v30, Decl(arrayLiteral2.ts, 0, 3)) >[1, 2] : number[] ->v31 : any +>1 : number +>2 : number +>v31 : any, Symbol(v31, Decl(arrayLiteral2.ts, 0, 17)) diff --git a/tests/baselines/reference/arrayLiteralContextualType.types b/tests/baselines/reference/arrayLiteralContextualType.types index b6d8377d012..fe000a760d8 100644 --- a/tests/baselines/reference/arrayLiteralContextualType.types +++ b/tests/baselines/reference/arrayLiteralContextualType.types @@ -1,86 +1,90 @@ === tests/cases/compiler/arrayLiteralContextualType.ts === interface IAnimal { ->IAnimal : IAnimal +>IAnimal : IAnimal, Symbol(IAnimal, Decl(arrayLiteralContextualType.ts, 0, 0)) name: string; ->name : string +>name : string, Symbol(name, Decl(arrayLiteralContextualType.ts, 0, 19)) } class Giraffe { ->Giraffe : Giraffe +>Giraffe : Giraffe, Symbol(Giraffe, Decl(arrayLiteralContextualType.ts, 2, 1)) name = "Giraffe"; ->name : string +>name : string, Symbol(name, Decl(arrayLiteralContextualType.ts, 4, 15)) +>"Giraffe" : string neckLength = "3m"; ->neckLength : string +>neckLength : string, Symbol(neckLength, Decl(arrayLiteralContextualType.ts, 5, 21)) +>"3m" : string } class Elephant { ->Elephant : Elephant +>Elephant : Elephant, Symbol(Elephant, Decl(arrayLiteralContextualType.ts, 7, 1)) name = "Elephant"; ->name : string +>name : string, Symbol(name, Decl(arrayLiteralContextualType.ts, 9, 16)) +>"Elephant" : string trunkDiameter = "20cm"; ->trunkDiameter : string +>trunkDiameter : string, Symbol(trunkDiameter, Decl(arrayLiteralContextualType.ts, 10, 22)) +>"20cm" : string } function foo(animals: IAnimal[]) { } ->foo : (animals: IAnimal[]) => void ->animals : IAnimal[] ->IAnimal : IAnimal +>foo : (animals: IAnimal[]) => void, Symbol(foo, Decl(arrayLiteralContextualType.ts, 12, 1)) +>animals : IAnimal[], Symbol(animals, Decl(arrayLiteralContextualType.ts, 14, 13)) +>IAnimal : IAnimal, Symbol(IAnimal, Decl(arrayLiteralContextualType.ts, 0, 0)) function bar(animals: { [n: number]: IAnimal }) { } ->bar : (animals: { [n: number]: IAnimal; }) => void ->animals : { [n: number]: IAnimal; } ->n : number ->IAnimal : IAnimal +>bar : (animals: { [n: number]: IAnimal; }) => void, Symbol(bar, Decl(arrayLiteralContextualType.ts, 14, 36)) +>animals : { [n: number]: IAnimal; }, Symbol(animals, Decl(arrayLiteralContextualType.ts, 15, 13)) +>n : number, Symbol(n, Decl(arrayLiteralContextualType.ts, 15, 25)) +>IAnimal : IAnimal, Symbol(IAnimal, Decl(arrayLiteralContextualType.ts, 0, 0)) foo([ >foo([ new Giraffe(), new Elephant()]) : void ->foo : (animals: IAnimal[]) => void +>foo : (animals: IAnimal[]) => void, Symbol(foo, Decl(arrayLiteralContextualType.ts, 12, 1)) >[ new Giraffe(), new Elephant()] : (Giraffe | Elephant)[] new Giraffe(), >new Giraffe() : Giraffe ->Giraffe : typeof Giraffe +>Giraffe : typeof Giraffe, Symbol(Giraffe, Decl(arrayLiteralContextualType.ts, 2, 1)) new Elephant() >new Elephant() : Elephant ->Elephant : typeof Elephant +>Elephant : typeof Elephant, Symbol(Elephant, Decl(arrayLiteralContextualType.ts, 7, 1)) ]); // Legal because of the contextual type IAnimal provided by the parameter bar([ >bar([ new Giraffe(), new Elephant()]) : void ->bar : (animals: { [n: number]: IAnimal; }) => void +>bar : (animals: { [n: number]: IAnimal; }) => void, Symbol(bar, Decl(arrayLiteralContextualType.ts, 14, 36)) >[ new Giraffe(), new Elephant()] : (Giraffe | Elephant)[] new Giraffe(), >new Giraffe() : Giraffe ->Giraffe : typeof Giraffe +>Giraffe : typeof Giraffe, Symbol(Giraffe, Decl(arrayLiteralContextualType.ts, 2, 1)) new Elephant() >new Elephant() : Elephant ->Elephant : typeof Elephant +>Elephant : typeof Elephant, Symbol(Elephant, Decl(arrayLiteralContextualType.ts, 7, 1)) ]); // Legal because of the contextual type IAnimal provided by the parameter var arr = [new Giraffe(), new Elephant()]; ->arr : (Giraffe | Elephant)[] +>arr : (Giraffe | Elephant)[], Symbol(arr, Decl(arrayLiteralContextualType.ts, 26, 3)) >[new Giraffe(), new Elephant()] : (Giraffe | Elephant)[] >new Giraffe() : Giraffe ->Giraffe : typeof Giraffe +>Giraffe : typeof Giraffe, Symbol(Giraffe, Decl(arrayLiteralContextualType.ts, 2, 1)) >new Elephant() : Elephant ->Elephant : typeof Elephant +>Elephant : typeof Elephant, Symbol(Elephant, Decl(arrayLiteralContextualType.ts, 7, 1)) foo(arr); // ok because arr is Array not {}[] >foo(arr) : void ->foo : (animals: IAnimal[]) => void ->arr : (Giraffe | Elephant)[] +>foo : (animals: IAnimal[]) => void, Symbol(foo, Decl(arrayLiteralContextualType.ts, 12, 1)) +>arr : (Giraffe | Elephant)[], Symbol(arr, Decl(arrayLiteralContextualType.ts, 26, 3)) bar(arr); // ok because arr is Array not {}[] >bar(arr) : void ->bar : (animals: { [n: number]: IAnimal; }) => void ->arr : (Giraffe | Elephant)[] +>bar : (animals: { [n: number]: IAnimal; }) => void, Symbol(bar, Decl(arrayLiteralContextualType.ts, 14, 36)) +>arr : (Giraffe | Elephant)[], Symbol(arr, Decl(arrayLiteralContextualType.ts, 26, 3)) diff --git a/tests/baselines/reference/arrayLiteralInNonVarArgParameter.types b/tests/baselines/reference/arrayLiteralInNonVarArgParameter.types index 4743504c33e..8b2d56bb24a 100644 --- a/tests/baselines/reference/arrayLiteralInNonVarArgParameter.types +++ b/tests/baselines/reference/arrayLiteralInNonVarArgParameter.types @@ -1,11 +1,13 @@ === tests/cases/compiler/arrayLiteralInNonVarArgParameter.ts === function panic(val: string[], ...opt: string[]) { } ->panic : (val: string[], ...opt: string[]) => void ->val : string[] ->opt : string[] +>panic : (val: string[], ...opt: string[]) => void, Symbol(panic, Decl(arrayLiteralInNonVarArgParameter.ts, 0, 0)) +>val : string[], Symbol(val, Decl(arrayLiteralInNonVarArgParameter.ts, 0, 15)) +>opt : string[], Symbol(opt, Decl(arrayLiteralInNonVarArgParameter.ts, 0, 29)) panic([], 'one', 'two'); >panic([], 'one', 'two') : void ->panic : (val: string[], ...opt: string[]) => void +>panic : (val: string[], ...opt: string[]) => void, Symbol(panic, Decl(arrayLiteralInNonVarArgParameter.ts, 0, 0)) >[] : undefined[] +>'one' : string +>'two' : string diff --git a/tests/baselines/reference/arrayLiteralSpread.types b/tests/baselines/reference/arrayLiteralSpread.types index 0dae59521bf..c26e432ef55 100644 --- a/tests/baselines/reference/arrayLiteralSpread.types +++ b/tests/baselines/reference/arrayLiteralSpread.types @@ -1,90 +1,133 @@ === tests/cases/conformance/es6/spread/arrayLiteralSpread.ts === function f0() { ->f0 : () => void +>f0 : () => void, Symbol(f0, Decl(arrayLiteralSpread.ts, 0, 0)) var a = [1, 2, 3]; ->a : number[] +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 1, 7)) >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number var a1 = [...a]; ->a1 : number[] +>a1 : number[], Symbol(a1, Decl(arrayLiteralSpread.ts, 2, 7)) >[...a] : number[] ->a : number[] +>...a : number +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 1, 7)) var a2 = [1, ...a]; ->a2 : number[] +>a2 : number[], Symbol(a2, Decl(arrayLiteralSpread.ts, 3, 7)) >[1, ...a] : number[] ->a : number[] +>1 : number +>...a : number +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 1, 7)) var a3 = [1, 2, ...a]; ->a3 : number[] +>a3 : number[], Symbol(a3, Decl(arrayLiteralSpread.ts, 4, 7)) >[1, 2, ...a] : number[] ->a : number[] +>1 : number +>2 : number +>...a : number +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 1, 7)) var a4 = [...a, 1]; ->a4 : number[] +>a4 : number[], Symbol(a4, Decl(arrayLiteralSpread.ts, 5, 7)) >[...a, 1] : number[] ->a : number[] +>...a : number +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 1, 7)) +>1 : number var a5 = [...a, 1, 2]; ->a5 : number[] +>a5 : number[], Symbol(a5, Decl(arrayLiteralSpread.ts, 6, 7)) >[...a, 1, 2] : number[] ->a : number[] +>...a : number +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 1, 7)) +>1 : number +>2 : number var a6 = [1, 2, ...a, 1, 2]; ->a6 : number[] +>a6 : number[], Symbol(a6, Decl(arrayLiteralSpread.ts, 7, 7)) >[1, 2, ...a, 1, 2] : number[] ->a : number[] +>1 : number +>2 : number +>...a : number +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 1, 7)) +>1 : number +>2 : number var a7 = [1, ...a, 2, ...a]; ->a7 : number[] +>a7 : number[], Symbol(a7, Decl(arrayLiteralSpread.ts, 8, 7)) >[1, ...a, 2, ...a] : number[] ->a : number[] ->a : number[] +>1 : number +>...a : number +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 1, 7)) +>2 : number +>...a : number +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 1, 7)) var a8 = [...a, ...a, ...a]; ->a8 : number[] +>a8 : number[], Symbol(a8, Decl(arrayLiteralSpread.ts, 9, 7)) >[...a, ...a, ...a] : number[] ->a : number[] ->a : number[] ->a : number[] +>...a : number +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 1, 7)) +>...a : number +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 1, 7)) +>...a : number +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 1, 7)) } function f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(arrayLiteralSpread.ts, 10, 1)) var a = [1, 2, 3]; ->a : number[] +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 13, 7)) >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number var b = ["hello", ...a, true]; ->b : (string | number | boolean)[] +>b : (string | number | boolean)[], Symbol(b, Decl(arrayLiteralSpread.ts, 14, 7), Decl(arrayLiteralSpread.ts, 15, 7)) >["hello", ...a, true] : (string | number | boolean)[] ->a : number[] +>"hello" : string +>...a : number +>a : number[], Symbol(a, Decl(arrayLiteralSpread.ts, 13, 7)) +>true : boolean var b: (string | number | boolean)[]; ->b : (string | number | boolean)[] +>b : (string | number | boolean)[], Symbol(b, Decl(arrayLiteralSpread.ts, 14, 7), Decl(arrayLiteralSpread.ts, 15, 7)) } function f2() { ->f2 : () => void +>f2 : () => void, Symbol(f2, Decl(arrayLiteralSpread.ts, 16, 1)) var a = [...[...[...[...[...[]]]]]]; ->a : any[] +>a : any[], Symbol(a, Decl(arrayLiteralSpread.ts, 19, 7)) >[...[...[...[...[...[]]]]]] : undefined[] +>...[...[...[...[...[]]]]] : undefined >[...[...[...[...[]]]]] : undefined[] +>...[...[...[...[]]]] : undefined >[...[...[...[]]]] : undefined[] +>...[...[...[]]] : undefined >[...[...[]]] : undefined[] +>...[...[]] : undefined >[...[]] : undefined[] +>...[] : undefined >[] : undefined[] var b = [...[...[...[...[...[5]]]]]]; ->b : number[] +>b : number[], Symbol(b, Decl(arrayLiteralSpread.ts, 20, 7)) >[...[...[...[...[...[5]]]]]] : number[] +>...[...[...[...[...[5]]]]] : number >[...[...[...[...[5]]]]] : number[] +>...[...[...[...[5]]]] : number >[...[...[...[5]]]] : number[] +>...[...[...[5]]] : number >[...[...[5]]] : number[] +>...[...[5]] : number >[...[5]] : number[] +>...[5] : number >[5] : number[] +>5 : number } diff --git a/tests/baselines/reference/arrayLiteralTypeInference.types b/tests/baselines/reference/arrayLiteralTypeInference.types index adcc28c7440..7ad2c649e4d 100644 --- a/tests/baselines/reference/arrayLiteralTypeInference.types +++ b/tests/baselines/reference/arrayLiteralTypeInference.types @@ -1,132 +1,140 @@ === tests/cases/compiler/arrayLiteralTypeInference.ts === class Action { ->Action : Action +>Action : Action, Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0)) id: number; ->id : number +>id : number, Symbol(id, Decl(arrayLiteralTypeInference.ts, 0, 14)) } class ActionA extends Action { ->ActionA : ActionA ->Action : Action +>ActionA : ActionA, Symbol(ActionA, Decl(arrayLiteralTypeInference.ts, 2, 1)) +>Action : Action, Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0)) value: string; ->value : string +>value : string, Symbol(value, Decl(arrayLiteralTypeInference.ts, 4, 30)) } class ActionB extends Action { ->ActionB : ActionB ->Action : Action +>ActionB : ActionB, Symbol(ActionB, Decl(arrayLiteralTypeInference.ts, 6, 1)) +>Action : Action, Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0)) trueNess: boolean; ->trueNess : boolean +>trueNess : boolean, Symbol(trueNess, Decl(arrayLiteralTypeInference.ts, 8, 30)) } var x1: Action[] = [ ->x1 : Action[] ->Action : Action +>x1 : Action[], Symbol(x1, Decl(arrayLiteralTypeInference.ts, 12, 3)) +>Action : Action, Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0)) >[ { id: 2, trueness: false }, { id: 3, name: "three" }] : ({ id: number; trueness: boolean; } | { id: number; name: string; })[] { id: 2, trueness: false }, >{ id: 2, trueness: false } : { id: number; trueness: boolean; } ->id : number ->trueness : boolean +>id : number, Symbol(id, Decl(arrayLiteralTypeInference.ts, 13, 5)) +>2 : number +>trueness : boolean, Symbol(trueness, Decl(arrayLiteralTypeInference.ts, 13, 12)) +>false : boolean { id: 3, name: "three" } >{ id: 3, name: "three" } : { id: number; name: string; } ->id : number ->name : string +>id : number, Symbol(id, Decl(arrayLiteralTypeInference.ts, 14, 5)) +>3 : number +>name : string, Symbol(name, Decl(arrayLiteralTypeInference.ts, 14, 12)) +>"three" : string ] var x2: Action[] = [ ->x2 : Action[] ->Action : Action +>x2 : Action[], Symbol(x2, Decl(arrayLiteralTypeInference.ts, 17, 3)) +>Action : Action, Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0)) >[ new ActionA(), new ActionB()] : (ActionA | ActionB)[] new ActionA(), >new ActionA() : ActionA ->ActionA : typeof ActionA +>ActionA : typeof ActionA, Symbol(ActionA, Decl(arrayLiteralTypeInference.ts, 2, 1)) new ActionB() >new ActionB() : ActionB ->ActionB : typeof ActionB +>ActionB : typeof ActionB, Symbol(ActionB, Decl(arrayLiteralTypeInference.ts, 6, 1)) ] var x3: Action[] = [ ->x3 : Action[] ->Action : Action +>x3 : Action[], Symbol(x3, Decl(arrayLiteralTypeInference.ts, 22, 3)) +>Action : Action, Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0)) >[ new Action(), new ActionA(), new ActionB()] : Action[] new Action(), >new Action() : Action ->Action : typeof Action +>Action : typeof Action, Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0)) new ActionA(), >new ActionA() : ActionA ->ActionA : typeof ActionA +>ActionA : typeof ActionA, Symbol(ActionA, Decl(arrayLiteralTypeInference.ts, 2, 1)) new ActionB() >new ActionB() : ActionB ->ActionB : typeof ActionB +>ActionB : typeof ActionB, Symbol(ActionB, Decl(arrayLiteralTypeInference.ts, 6, 1)) ] var z1: { id: number }[] = ->z1 : { id: number; }[] ->id : number +>z1 : { id: number; }[], Symbol(z1, Decl(arrayLiteralTypeInference.ts, 28, 3)) +>id : number, Symbol(id, Decl(arrayLiteralTypeInference.ts, 28, 9)) [ >[ { id: 2, trueness: false }, { id: 3, name: "three" } ] : ({ id: number; trueness: boolean; } | { id: number; name: string; })[] { id: 2, trueness: false }, >{ id: 2, trueness: false } : { id: number; trueness: boolean; } ->id : number ->trueness : boolean +>id : number, Symbol(id, Decl(arrayLiteralTypeInference.ts, 30, 9)) +>2 : number +>trueness : boolean, Symbol(trueness, Decl(arrayLiteralTypeInference.ts, 30, 16)) +>false : boolean { id: 3, name: "three" } >{ id: 3, name: "three" } : { id: number; name: string; } ->id : number ->name : string +>id : number, Symbol(id, Decl(arrayLiteralTypeInference.ts, 31, 9)) +>3 : number +>name : string, Symbol(name, Decl(arrayLiteralTypeInference.ts, 31, 16)) +>"three" : string ] var z2: { id: number }[] = ->z2 : { id: number; }[] ->id : number +>z2 : { id: number; }[], Symbol(z2, Decl(arrayLiteralTypeInference.ts, 34, 3)) +>id : number, Symbol(id, Decl(arrayLiteralTypeInference.ts, 34, 9)) [ >[ new ActionA(), new ActionB() ] : (ActionA | ActionB)[] new ActionA(), >new ActionA() : ActionA ->ActionA : typeof ActionA +>ActionA : typeof ActionA, Symbol(ActionA, Decl(arrayLiteralTypeInference.ts, 2, 1)) new ActionB() >new ActionB() : ActionB ->ActionB : typeof ActionB +>ActionB : typeof ActionB, Symbol(ActionB, Decl(arrayLiteralTypeInference.ts, 6, 1)) ] var z3: { id: number }[] = ->z3 : { id: number; }[] ->id : number +>z3 : { id: number; }[], Symbol(z3, Decl(arrayLiteralTypeInference.ts, 40, 3)) +>id : number, Symbol(id, Decl(arrayLiteralTypeInference.ts, 40, 9)) [ >[ new Action(), new ActionA(), new ActionB() ] : Action[] new Action(), >new Action() : Action ->Action : typeof Action +>Action : typeof Action, Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0)) new ActionA(), >new ActionA() : ActionA ->ActionA : typeof ActionA +>ActionA : typeof ActionA, Symbol(ActionA, Decl(arrayLiteralTypeInference.ts, 2, 1)) new ActionB() >new ActionB() : ActionB ->ActionB : typeof ActionB +>ActionB : typeof ActionB, Symbol(ActionB, Decl(arrayLiteralTypeInference.ts, 6, 1)) ] diff --git a/tests/baselines/reference/arrayLiteralWidened.types b/tests/baselines/reference/arrayLiteralWidened.types index 6e89bc50892..b95f3d538f4 100644 --- a/tests/baselines/reference/arrayLiteralWidened.types +++ b/tests/baselines/reference/arrayLiteralWidened.types @@ -2,49 +2,54 @@ // array literals are widened upon assignment according to their element type var a = []; // any[] ->a : any[] +>a : any[], Symbol(a, Decl(arrayLiteralWidened.ts, 2, 3), Decl(arrayLiteralWidened.ts, 4, 3), Decl(arrayLiteralWidened.ts, 5, 3)) >[] : undefined[] var a = [null, null]; ->a : any[] +>a : any[], Symbol(a, Decl(arrayLiteralWidened.ts, 2, 3), Decl(arrayLiteralWidened.ts, 4, 3), Decl(arrayLiteralWidened.ts, 5, 3)) >[null, null] : null[] +>null : null +>null : null var a = [undefined, undefined]; ->a : any[] +>a : any[], Symbol(a, Decl(arrayLiteralWidened.ts, 2, 3), Decl(arrayLiteralWidened.ts, 4, 3), Decl(arrayLiteralWidened.ts, 5, 3)) >[undefined, undefined] : undefined[] ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) var b = [[], [null, null]]; // any[][] ->b : any[][] +>b : any[][], Symbol(b, Decl(arrayLiteralWidened.ts, 7, 3), Decl(arrayLiteralWidened.ts, 8, 3), Decl(arrayLiteralWidened.ts, 9, 3)) >[[], [null, null]] : null[][] >[] : undefined[] >[null, null] : null[] +>null : null +>null : null var b = [[], []]; ->b : any[][] +>b : any[][], Symbol(b, Decl(arrayLiteralWidened.ts, 7, 3), Decl(arrayLiteralWidened.ts, 8, 3), Decl(arrayLiteralWidened.ts, 9, 3)) >[[], []] : undefined[][] >[] : undefined[] >[] : undefined[] var b = [[undefined, undefined]]; ->b : any[][] +>b : any[][], Symbol(b, Decl(arrayLiteralWidened.ts, 7, 3), Decl(arrayLiteralWidened.ts, 8, 3), Decl(arrayLiteralWidened.ts, 9, 3)) >[[undefined, undefined]] : undefined[][] >[undefined, undefined] : undefined[] ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) var c = [[[]]]; // any[][][] ->c : any[][][] +>c : any[][][], Symbol(c, Decl(arrayLiteralWidened.ts, 11, 3), Decl(arrayLiteralWidened.ts, 12, 3)) >[[[]]] : undefined[][][] >[[]] : undefined[][] >[] : undefined[] var c = [[[null]],[undefined]] ->c : any[][][] +>c : any[][][], Symbol(c, Decl(arrayLiteralWidened.ts, 11, 3), Decl(arrayLiteralWidened.ts, 12, 3)) >[[[null]],[undefined]] : null[][][] >[[null]] : null[][] >[null] : null[] +>null : null >[undefined] : undefined[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.types b/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.types index bc21ec39073..5e34c3a60ab 100644 --- a/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.types +++ b/tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.types @@ -2,78 +2,86 @@ // when multiple best common types exist we will choose the first candidate var a: { x: number; y?: number }; ->a : { x: number; y?: number; } ->x : number ->y : number +>a : { x: number; y?: number; }, Symbol(a, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 2, 3)) +>x : number, Symbol(x, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 2, 8)) +>y : number, Symbol(y, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 2, 19)) var b: { x: number; z?: number }; ->b : { x: number; z?: number; } ->x : number ->z : number +>b : { x: number; z?: number; }, Symbol(b, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 3, 3)) +>x : number, Symbol(x, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 3, 8)) +>z : number, Symbol(z, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 3, 19)) var c: { x: number; a?: number }; ->c : { x: number; a?: number; } ->x : number ->a : number +>c : { x: number; a?: number; }, Symbol(c, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 4, 3)) +>x : number, Symbol(x, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 4, 8)) +>a : number, Symbol(a, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 4, 19)) var as = [a, b]; // { x: number; y?: number };[] ->as : ({ x: number; y?: number; } | { x: number; z?: number; })[] +>as : ({ x: number; y?: number; } | { x: number; z?: number; })[], Symbol(as, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 6, 3)) >[a, b] : ({ x: number; y?: number; } | { x: number; z?: number; })[] ->a : { x: number; y?: number; } ->b : { x: number; z?: number; } +>a : { x: number; y?: number; }, Symbol(a, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 2, 3)) +>b : { x: number; z?: number; }, Symbol(b, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 3, 3)) var bs = [b, a]; // { x: number; z?: number };[] ->bs : ({ x: number; y?: number; } | { x: number; z?: number; })[] +>bs : ({ x: number; y?: number; } | { x: number; z?: number; })[], Symbol(bs, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 7, 3)) >[b, a] : ({ x: number; y?: number; } | { x: number; z?: number; })[] ->b : { x: number; z?: number; } ->a : { x: number; y?: number; } +>b : { x: number; z?: number; }, Symbol(b, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 3, 3)) +>a : { x: number; y?: number; }, Symbol(a, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 2, 3)) var cs = [a, b, c]; // { x: number; y?: number };[] ->cs : ({ x: number; y?: number; } | { x: number; z?: number; } | { x: number; a?: number; })[] +>cs : ({ x: number; y?: number; } | { x: number; z?: number; } | { x: number; a?: number; })[], Symbol(cs, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 8, 3)) >[a, b, c] : ({ x: number; y?: number; } | { x: number; z?: number; } | { x: number; a?: number; })[] ->a : { x: number; y?: number; } ->b : { x: number; z?: number; } ->c : { x: number; a?: number; } +>a : { x: number; y?: number; }, Symbol(a, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 2, 3)) +>b : { x: number; z?: number; }, Symbol(b, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 3, 3)) +>c : { x: number; a?: number; }, Symbol(c, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 4, 3)) var ds = [(x: Object) => 1, (x: string) => 2]; // { (x:Object) => number }[] ->ds : ((x: Object) => number)[] +>ds : ((x: Object) => number)[], Symbol(ds, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 10, 3)) >[(x: Object) => 1, (x: string) => 2] : ((x: Object) => number)[] >(x: Object) => 1 : (x: Object) => number ->x : Object ->Object : Object +>x : Object, Symbol(x, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 10, 11)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>1 : number >(x: string) => 2 : (x: string) => number ->x : string +>x : string, Symbol(x, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 10, 29)) +>2 : number var es = [(x: string) => 2, (x: Object) => 1]; // { (x:string) => number }[] ->es : ((x: string) => number)[] +>es : ((x: string) => number)[], Symbol(es, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 11, 3)) >[(x: string) => 2, (x: Object) => 1] : ((x: string) => number)[] >(x: string) => 2 : (x: string) => number ->x : string +>x : string, Symbol(x, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 11, 11)) +>2 : number >(x: Object) => 1 : (x: Object) => number ->x : Object ->Object : Object +>x : Object, Symbol(x, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 11, 29)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>1 : number var fs = [(a: { x: number; y?: number }) => 1, (b: { x: number; z?: number }) => 2]; // (a: { x: number; y?: number }) => number[] ->fs : (((a: { x: number; y?: number; }) => number) | ((b: { x: number; z?: number; }) => number))[] +>fs : (((a: { x: number; y?: number; }) => number) | ((b: { x: number; z?: number; }) => number))[], Symbol(fs, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 12, 3)) >[(a: { x: number; y?: number }) => 1, (b: { x: number; z?: number }) => 2] : (((a: { x: number; y?: number; }) => number) | ((b: { x: number; z?: number; }) => number))[] >(a: { x: number; y?: number }) => 1 : (a: { x: number; y?: number; }) => number ->a : { x: number; y?: number; } ->x : number ->y : number +>a : { x: number; y?: number; }, Symbol(a, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 12, 11)) +>x : number, Symbol(x, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 12, 15)) +>y : number, Symbol(y, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 12, 26)) +>1 : number >(b: { x: number; z?: number }) => 2 : (b: { x: number; z?: number; }) => number ->b : { x: number; z?: number; } ->x : number ->z : number +>b : { x: number; z?: number; }, Symbol(b, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 12, 48)) +>x : number, Symbol(x, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 12, 52)) +>z : number, Symbol(z, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 12, 63)) +>2 : number var gs = [(b: { x: number; z?: number }) => 2, (a: { x: number; y?: number }) => 1]; // (b: { x: number; z?: number }) => number[] ->gs : (((b: { x: number; z?: number; }) => number) | ((a: { x: number; y?: number; }) => number))[] +>gs : (((b: { x: number; z?: number; }) => number) | ((a: { x: number; y?: number; }) => number))[], Symbol(gs, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 13, 3)) >[(b: { x: number; z?: number }) => 2, (a: { x: number; y?: number }) => 1] : (((b: { x: number; z?: number; }) => number) | ((a: { x: number; y?: number; }) => number))[] >(b: { x: number; z?: number }) => 2 : (b: { x: number; z?: number; }) => number ->b : { x: number; z?: number; } ->x : number ->z : number +>b : { x: number; z?: number; }, Symbol(b, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 13, 11)) +>x : number, Symbol(x, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 13, 15)) +>z : number, Symbol(z, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 13, 26)) +>2 : number >(a: { x: number; y?: number }) => 1 : (a: { x: number; y?: number; }) => number ->a : { x: number; y?: number; } ->x : number ->y : number +>a : { x: number; y?: number; }, Symbol(a, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 13, 48)) +>x : number, Symbol(x, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 13, 52)) +>y : number, Symbol(y, Decl(arrayLiteralWithMultipleBestCommonTypes.ts, 13, 63)) +>1 : number diff --git a/tests/baselines/reference/arrayLiterals.types b/tests/baselines/reference/arrayLiterals.types index b22543d3edf..071ce5b155d 100644 --- a/tests/baselines/reference/arrayLiterals.types +++ b/tests/baselines/reference/arrayLiterals.types @@ -2,123 +2,152 @@ // Empty array literal with no contextual type has type Undefined[] var arr1= [[], [1], ['']]; ->arr1 : (string[] | number[])[] +>arr1 : (string[] | number[])[], Symbol(arr1, Decl(arrayLiterals.ts, 2, 3)) >[[], [1], ['']] : (string[] | number[])[] >[] : undefined[] >[1] : number[] +>1 : number >[''] : string[] +>'' : string var arr2 = [[null], [1], ['']]; ->arr2 : (string[] | number[])[] +>arr2 : (string[] | number[])[], Symbol(arr2, Decl(arrayLiterals.ts, 4, 3)) >[[null], [1], ['']] : (string[] | number[])[] >[null] : null[] +>null : null >[1] : number[] +>1 : number >[''] : string[] +>'' : string // Array literal with elements of only EveryType E has type E[] var stringArrArr = [[''], [""]]; ->stringArrArr : string[][] +>stringArrArr : string[][], Symbol(stringArrArr, Decl(arrayLiterals.ts, 8, 3)) >[[''], [""]] : string[][] >[''] : string[] +>'' : string >[""] : string[] +>"" : string var stringArr = ['', ""]; ->stringArr : string[] +>stringArr : string[], Symbol(stringArr, Decl(arrayLiterals.ts, 10, 3)) >['', ""] : string[] +>'' : string +>"" : string var numberArr = [0, 0.0, 0x00, 1e1]; ->numberArr : number[] +>numberArr : number[], Symbol(numberArr, Decl(arrayLiterals.ts, 12, 3)) >[0, 0.0, 0x00, 1e1] : number[] +>0 : number +>0.0 : number +>0x00 : number +>1e1 : number var boolArr = [false, true, false, true]; ->boolArr : boolean[] +>boolArr : boolean[], Symbol(boolArr, Decl(arrayLiterals.ts, 14, 3)) >[false, true, false, true] : boolean[] +>false : boolean +>true : boolean +>false : boolean +>true : boolean class C { private p; } ->C : C ->p : any +>C : C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) +>p : any, Symbol(p, Decl(arrayLiterals.ts, 16, 9)) var classArr = [new C(), new C()]; ->classArr : C[] +>classArr : C[], Symbol(classArr, Decl(arrayLiterals.ts, 17, 3)) >[new C(), new C()] : C[] >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) var classTypeArray = [C, C, C]; ->classTypeArray : typeof C[] +>classTypeArray : typeof C[], Symbol(classTypeArray, Decl(arrayLiterals.ts, 19, 3), Decl(arrayLiterals.ts, 20, 3)) >[C, C, C] : typeof C[] ->C : typeof C ->C : typeof C ->C : typeof C +>C : typeof C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) +>C : typeof C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) +>C : typeof C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) var classTypeArray: Array; // Should OK, not be a parse error ->classTypeArray : typeof C[] ->Array : T[] ->C : typeof C +>classTypeArray : typeof C[], Symbol(classTypeArray, Decl(arrayLiterals.ts, 19, 3), Decl(arrayLiterals.ts, 20, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>C : typeof C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) // Contextual type C with numeric index signature makes array literal of EveryType E of type BCT(E,C)[] var context1: { [n: number]: { a: string; b: number; }; } = [{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }]; ->context1 : { [n: number]: { a: string; b: number; }; } ->n : number ->a : string ->b : number +>context1 : { [n: number]: { a: string; b: number; }; }, Symbol(context1, Decl(arrayLiterals.ts, 23, 3)) +>n : number, Symbol(n, Decl(arrayLiterals.ts, 23, 17)) +>a : string, Symbol(a, Decl(arrayLiterals.ts, 23, 30)) +>b : number, Symbol(b, Decl(arrayLiterals.ts, 23, 41)) >[{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }] : ({ a: string; b: number; c: string; } | { a: string; b: number; c: number; })[] >{ a: '', b: 0, c: '' } : { a: string; b: number; c: string; } ->a : string ->b : number ->c : string +>a : string, Symbol(a, Decl(arrayLiterals.ts, 23, 62)) +>'' : string +>b : number, Symbol(b, Decl(arrayLiterals.ts, 23, 69)) +>0 : number +>c : string, Symbol(c, Decl(arrayLiterals.ts, 23, 75)) +>'' : string >{ a: "", b: 3, c: 0 } : { a: string; b: number; c: number; } ->a : string ->b : number ->c : number +>a : string, Symbol(a, Decl(arrayLiterals.ts, 23, 86)) +>"" : string +>b : number, Symbol(b, Decl(arrayLiterals.ts, 23, 93)) +>3 : number +>c : number, Symbol(c, Decl(arrayLiterals.ts, 23, 99)) +>0 : number var context2 = [{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }]; ->context2 : ({ a: string; b: number; c: string; } | { a: string; b: number; c: number; })[] +>context2 : ({ a: string; b: number; c: string; } | { a: string; b: number; c: number; })[], Symbol(context2, Decl(arrayLiterals.ts, 24, 3)) >[{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }] : ({ a: string; b: number; c: string; } | { a: string; b: number; c: number; })[] >{ a: '', b: 0, c: '' } : { a: string; b: number; c: string; } ->a : string ->b : number ->c : string +>a : string, Symbol(a, Decl(arrayLiterals.ts, 24, 17)) +>'' : string +>b : number, Symbol(b, Decl(arrayLiterals.ts, 24, 24)) +>0 : number +>c : string, Symbol(c, Decl(arrayLiterals.ts, 24, 30)) +>'' : string >{ a: "", b: 3, c: 0 } : { a: string; b: number; c: number; } ->a : string ->b : number ->c : number +>a : string, Symbol(a, Decl(arrayLiterals.ts, 24, 41)) +>"" : string +>b : number, Symbol(b, Decl(arrayLiterals.ts, 24, 48)) +>3 : number +>c : number, Symbol(c, Decl(arrayLiterals.ts, 24, 54)) +>0 : number // Contextual type C with numeric index signature of type Base makes array literal of Derived have type Base[] class Base { private p; } ->Base : Base ->p : any +>Base : Base, Symbol(Base, Decl(arrayLiterals.ts, 24, 63)) +>p : any, Symbol(p, Decl(arrayLiterals.ts, 27, 12)) class Derived1 extends Base { private m }; ->Derived1 : Derived1 ->Base : Base ->m : any +>Derived1 : Derived1, Symbol(Derived1, Decl(arrayLiterals.ts, 27, 25)) +>Base : Base, Symbol(Base, Decl(arrayLiterals.ts, 24, 63)) +>m : any, Symbol(m, Decl(arrayLiterals.ts, 28, 29)) class Derived2 extends Base { private n }; ->Derived2 : Derived2 ->Base : Base ->n : any +>Derived2 : Derived2, Symbol(Derived2, Decl(arrayLiterals.ts, 28, 42)) +>Base : Base, Symbol(Base, Decl(arrayLiterals.ts, 24, 63)) +>n : any, Symbol(n, Decl(arrayLiterals.ts, 29, 29)) var context3: Base[] = [new Derived1(), new Derived2()]; ->context3 : Base[] ->Base : Base +>context3 : Base[], Symbol(context3, Decl(arrayLiterals.ts, 30, 3)) +>Base : Base, Symbol(Base, Decl(arrayLiterals.ts, 24, 63)) >[new Derived1(), new Derived2()] : (Derived1 | Derived2)[] >new Derived1() : Derived1 ->Derived1 : typeof Derived1 +>Derived1 : typeof Derived1, Symbol(Derived1, Decl(arrayLiterals.ts, 27, 25)) >new Derived2() : Derived2 ->Derived2 : typeof Derived2 +>Derived2 : typeof Derived2, Symbol(Derived2, Decl(arrayLiterals.ts, 28, 42)) // Contextual type C with numeric index signature of type Base makes array literal of Derived1 and Derived2 have type Base[] var context4: Base[] = [new Derived1(), new Derived1()]; ->context4 : Base[] ->Base : Base +>context4 : Base[], Symbol(context4, Decl(arrayLiterals.ts, 33, 3)) +>Base : Base, Symbol(Base, Decl(arrayLiterals.ts, 24, 63)) >[new Derived1(), new Derived1()] : Derived1[] >new Derived1() : Derived1 ->Derived1 : typeof Derived1 +>Derived1 : typeof Derived1, Symbol(Derived1, Decl(arrayLiterals.ts, 27, 25)) >new Derived1() : Derived1 ->Derived1 : typeof Derived1 +>Derived1 : typeof Derived1, Symbol(Derived1, Decl(arrayLiterals.ts, 27, 25)) diff --git a/tests/baselines/reference/arrayLiterals.types.pull b/tests/baselines/reference/arrayLiterals.types.pull index bd06540aca3..e878382e6ff 100644 --- a/tests/baselines/reference/arrayLiterals.types.pull +++ b/tests/baselines/reference/arrayLiterals.types.pull @@ -2,123 +2,152 @@ // Empty array literal with no contextual type has type Undefined[] var arr1= [[], [1], ['']]; ->arr1 : (number[] | string[])[] +>arr1 : (number[] | string[])[], Symbol(arr1, Decl(arrayLiterals.ts, 2, 3)) >[[], [1], ['']] : (number[] | string[])[] >[] : undefined[] >[1] : number[] +>1 : number >[''] : string[] +>'' : string var arr2 = [[null], [1], ['']]; ->arr2 : (number[] | string[])[] +>arr2 : (number[] | string[])[], Symbol(arr2, Decl(arrayLiterals.ts, 4, 3)) >[[null], [1], ['']] : (number[] | string[])[] >[null] : null[] +>null : null >[1] : number[] +>1 : number >[''] : string[] +>'' : string // Array literal with elements of only EveryType E has type E[] var stringArrArr = [[''], [""]]; ->stringArrArr : string[][] +>stringArrArr : string[][], Symbol(stringArrArr, Decl(arrayLiterals.ts, 8, 3)) >[[''], [""]] : string[][] >[''] : string[] +>'' : string >[""] : string[] +>"" : string var stringArr = ['', ""]; ->stringArr : string[] +>stringArr : string[], Symbol(stringArr, Decl(arrayLiterals.ts, 10, 3)) >['', ""] : string[] +>'' : string +>"" : string var numberArr = [0, 0.0, 0x00, 1e1]; ->numberArr : number[] +>numberArr : number[], Symbol(numberArr, Decl(arrayLiterals.ts, 12, 3)) >[0, 0.0, 0x00, 1e1] : number[] +>0 : number +>0.0 : number +>0x00 : number +>1e1 : number var boolArr = [false, true, false, true]; ->boolArr : boolean[] +>boolArr : boolean[], Symbol(boolArr, Decl(arrayLiterals.ts, 14, 3)) >[false, true, false, true] : boolean[] +>false : boolean +>true : boolean +>false : boolean +>true : boolean class C { private p; } ->C : C ->p : any +>C : C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) +>p : any, Symbol(p, Decl(arrayLiterals.ts, 16, 9)) var classArr = [new C(), new C()]; ->classArr : C[] +>classArr : C[], Symbol(classArr, Decl(arrayLiterals.ts, 17, 3)) >[new C(), new C()] : C[] >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) var classTypeArray = [C, C, C]; ->classTypeArray : typeof C[] +>classTypeArray : typeof C[], Symbol(classTypeArray, Decl(arrayLiterals.ts, 19, 3), Decl(arrayLiterals.ts, 20, 3)) >[C, C, C] : typeof C[] ->C : typeof C ->C : typeof C ->C : typeof C +>C : typeof C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) +>C : typeof C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) +>C : typeof C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) var classTypeArray: Array; // Should OK, not be a parse error ->classTypeArray : typeof C[] ->Array : T[] ->C : typeof C +>classTypeArray : typeof C[], Symbol(classTypeArray, Decl(arrayLiterals.ts, 19, 3), Decl(arrayLiterals.ts, 20, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>C : typeof C, Symbol(C, Decl(arrayLiterals.ts, 14, 41)) // Contextual type C with numeric index signature makes array literal of EveryType E of type BCT(E,C)[] var context1: { [n: number]: { a: string; b: number; }; } = [{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }]; ->context1 : { [n: number]: { a: string; b: number; }; } ->n : number ->a : string ->b : number +>context1 : { [n: number]: { a: string; b: number; }; }, Symbol(context1, Decl(arrayLiterals.ts, 23, 3)) +>n : number, Symbol(n, Decl(arrayLiterals.ts, 23, 17)) +>a : string, Symbol(a, Decl(arrayLiterals.ts, 23, 30)) +>b : number, Symbol(b, Decl(arrayLiterals.ts, 23, 41)) >[{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }] : ({ a: string; b: number; c: string; } | { a: string; b: number; c: number; })[] >{ a: '', b: 0, c: '' } : { a: string; b: number; c: string; } ->a : string ->b : number ->c : string +>a : string, Symbol(a, Decl(arrayLiterals.ts, 23, 62)) +>'' : string +>b : number, Symbol(b, Decl(arrayLiterals.ts, 23, 69)) +>0 : number +>c : string, Symbol(c, Decl(arrayLiterals.ts, 23, 75)) +>'' : string >{ a: "", b: 3, c: 0 } : { a: string; b: number; c: number; } ->a : string ->b : number ->c : number +>a : string, Symbol(a, Decl(arrayLiterals.ts, 23, 86)) +>"" : string +>b : number, Symbol(b, Decl(arrayLiterals.ts, 23, 93)) +>3 : number +>c : number, Symbol(c, Decl(arrayLiterals.ts, 23, 99)) +>0 : number var context2 = [{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }]; ->context2 : ({ a: string; b: number; c: string; } | { a: string; b: number; c: number; })[] +>context2 : ({ a: string; b: number; c: string; } | { a: string; b: number; c: number; })[], Symbol(context2, Decl(arrayLiterals.ts, 24, 3)) >[{ a: '', b: 0, c: '' }, { a: "", b: 3, c: 0 }] : ({ a: string; b: number; c: string; } | { a: string; b: number; c: number; })[] >{ a: '', b: 0, c: '' } : { a: string; b: number; c: string; } ->a : string ->b : number ->c : string +>a : string, Symbol(a, Decl(arrayLiterals.ts, 24, 17)) +>'' : string +>b : number, Symbol(b, Decl(arrayLiterals.ts, 24, 24)) +>0 : number +>c : string, Symbol(c, Decl(arrayLiterals.ts, 24, 30)) +>'' : string >{ a: "", b: 3, c: 0 } : { a: string; b: number; c: number; } ->a : string ->b : number ->c : number +>a : string, Symbol(a, Decl(arrayLiterals.ts, 24, 41)) +>"" : string +>b : number, Symbol(b, Decl(arrayLiterals.ts, 24, 48)) +>3 : number +>c : number, Symbol(c, Decl(arrayLiterals.ts, 24, 54)) +>0 : number // Contextual type C with numeric index signature of type Base makes array literal of Derived have type Base[] class Base { private p; } ->Base : Base ->p : any +>Base : Base, Symbol(Base, Decl(arrayLiterals.ts, 24, 63)) +>p : any, Symbol(p, Decl(arrayLiterals.ts, 27, 12)) class Derived1 extends Base { private m }; ->Derived1 : Derived1 ->Base : Base ->m : any +>Derived1 : Derived1, Symbol(Derived1, Decl(arrayLiterals.ts, 27, 25)) +>Base : Base, Symbol(Base, Decl(arrayLiterals.ts, 24, 63)) +>m : any, Symbol(m, Decl(arrayLiterals.ts, 28, 29)) class Derived2 extends Base { private n }; ->Derived2 : Derived2 ->Base : Base ->n : any +>Derived2 : Derived2, Symbol(Derived2, Decl(arrayLiterals.ts, 28, 42)) +>Base : Base, Symbol(Base, Decl(arrayLiterals.ts, 24, 63)) +>n : any, Symbol(n, Decl(arrayLiterals.ts, 29, 29)) var context3: Base[] = [new Derived1(), new Derived2()]; ->context3 : Base[] ->Base : Base +>context3 : Base[], Symbol(context3, Decl(arrayLiterals.ts, 30, 3)) +>Base : Base, Symbol(Base, Decl(arrayLiterals.ts, 24, 63)) >[new Derived1(), new Derived2()] : (Derived1 | Derived2)[] >new Derived1() : Derived1 ->Derived1 : typeof Derived1 +>Derived1 : typeof Derived1, Symbol(Derived1, Decl(arrayLiterals.ts, 27, 25)) >new Derived2() : Derived2 ->Derived2 : typeof Derived2 +>Derived2 : typeof Derived2, Symbol(Derived2, Decl(arrayLiterals.ts, 28, 42)) // Contextual type C with numeric index signature of type Base makes array literal of Derived1 and Derived2 have type Base[] var context4: Base[] = [new Derived1(), new Derived1()]; ->context4 : Base[] ->Base : Base +>context4 : Base[], Symbol(context4, Decl(arrayLiterals.ts, 33, 3)) +>Base : Base, Symbol(Base, Decl(arrayLiterals.ts, 24, 63)) >[new Derived1(), new Derived1()] : Derived1[] >new Derived1() : Derived1 ->Derived1 : typeof Derived1 +>Derived1 : typeof Derived1, Symbol(Derived1, Decl(arrayLiterals.ts, 27, 25)) >new Derived1() : Derived1 ->Derived1 : typeof Derived1 +>Derived1 : typeof Derived1, Symbol(Derived1, Decl(arrayLiterals.ts, 27, 25)) diff --git a/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.types b/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.types index 1496e99adca..1161dab2b55 100644 --- a/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.types +++ b/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.types @@ -1,83 +1,84 @@ === tests/cases/conformance/types/typeRelationships/recursiveTypes/arrayLiteralsWithRecursiveGenerics.ts === class List { ->List : List ->T : T +>List : List, Symbol(List, Decl(arrayLiteralsWithRecursiveGenerics.ts, 0, 0)) +>T : T, Symbol(T, Decl(arrayLiteralsWithRecursiveGenerics.ts, 0, 11)) data: T; ->data : T ->T : T +>data : T, Symbol(data, Decl(arrayLiteralsWithRecursiveGenerics.ts, 0, 15)) +>T : T, Symbol(T, Decl(arrayLiteralsWithRecursiveGenerics.ts, 0, 11)) next: List>; ->next : List> ->List : List ->List : List ->T : T +>next : List>, Symbol(next, Decl(arrayLiteralsWithRecursiveGenerics.ts, 1, 12)) +>List : List, Symbol(List, Decl(arrayLiteralsWithRecursiveGenerics.ts, 0, 0)) +>List : List, Symbol(List, Decl(arrayLiteralsWithRecursiveGenerics.ts, 0, 0)) +>T : T, Symbol(T, Decl(arrayLiteralsWithRecursiveGenerics.ts, 0, 11)) } class DerivedList extends List { ->DerivedList : DerivedList ->U : U ->List : List ->U : U +>DerivedList : DerivedList, Symbol(DerivedList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 3, 1)) +>U : U, Symbol(U, Decl(arrayLiteralsWithRecursiveGenerics.ts, 5, 18)) +>List : List, Symbol(List, Decl(arrayLiteralsWithRecursiveGenerics.ts, 0, 0)) +>U : U, Symbol(U, Decl(arrayLiteralsWithRecursiveGenerics.ts, 5, 18)) foo: U; ->foo : U ->U : U +>foo : U, Symbol(foo, Decl(arrayLiteralsWithRecursiveGenerics.ts, 5, 38)) +>U : U, Symbol(U, Decl(arrayLiteralsWithRecursiveGenerics.ts, 5, 18)) // next: List> } class MyList { ->MyList : MyList ->T : T +>MyList : MyList, Symbol(MyList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 8, 1)) +>T : T, Symbol(T, Decl(arrayLiteralsWithRecursiveGenerics.ts, 10, 13)) data: T; ->data : T ->T : T +>data : T, Symbol(data, Decl(arrayLiteralsWithRecursiveGenerics.ts, 10, 17)) +>T : T, Symbol(T, Decl(arrayLiteralsWithRecursiveGenerics.ts, 10, 13)) next: MyList>; ->next : MyList> ->MyList : MyList ->MyList : MyList ->T : T +>next : MyList>, Symbol(next, Decl(arrayLiteralsWithRecursiveGenerics.ts, 11, 12)) +>MyList : MyList, Symbol(MyList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 8, 1)) +>MyList : MyList, Symbol(MyList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 8, 1)) +>T : T, Symbol(T, Decl(arrayLiteralsWithRecursiveGenerics.ts, 10, 13)) } var list: List; ->list : List ->List : List +>list : List, Symbol(list, Decl(arrayLiteralsWithRecursiveGenerics.ts, 15, 3)) +>List : List, Symbol(List, Decl(arrayLiteralsWithRecursiveGenerics.ts, 0, 0)) var list2: List; ->list2 : List ->List : List +>list2 : List, Symbol(list2, Decl(arrayLiteralsWithRecursiveGenerics.ts, 16, 3)) +>List : List, Symbol(List, Decl(arrayLiteralsWithRecursiveGenerics.ts, 0, 0)) var myList: MyList; ->myList : MyList ->MyList : MyList +>myList : MyList, Symbol(myList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 17, 3)) +>MyList : MyList, Symbol(MyList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 8, 1)) var xs = [list, myList]; // {}[] ->xs : List[] +>xs : List[], Symbol(xs, Decl(arrayLiteralsWithRecursiveGenerics.ts, 19, 3)) >[list, myList] : List[] ->list : List ->myList : MyList +>list : List, Symbol(list, Decl(arrayLiteralsWithRecursiveGenerics.ts, 15, 3)) +>myList : MyList, Symbol(myList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 17, 3)) var ys = [list, list2]; // {}[] ->ys : (List | List)[] +>ys : (List | List)[], Symbol(ys, Decl(arrayLiteralsWithRecursiveGenerics.ts, 20, 3)) >[list, list2] : (List | List)[] ->list : List ->list2 : List +>list : List, Symbol(list, Decl(arrayLiteralsWithRecursiveGenerics.ts, 15, 3)) +>list2 : List, Symbol(list2, Decl(arrayLiteralsWithRecursiveGenerics.ts, 16, 3)) var zs = [list, null]; // List[] ->zs : List[] +>zs : List[], Symbol(zs, Decl(arrayLiteralsWithRecursiveGenerics.ts, 21, 3)) >[list, null] : List[] ->list : List +>list : List, Symbol(list, Decl(arrayLiteralsWithRecursiveGenerics.ts, 15, 3)) +>null : null var myDerivedList: DerivedList; ->myDerivedList : DerivedList ->DerivedList : DerivedList +>myDerivedList : DerivedList, Symbol(myDerivedList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 23, 3)) +>DerivedList : DerivedList, Symbol(DerivedList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 3, 1)) var as = [list, myDerivedList]; // List[] ->as : List[] +>as : List[], Symbol(as, Decl(arrayLiteralsWithRecursiveGenerics.ts, 24, 3)) >[list, myDerivedList] : List[] ->list : List ->myDerivedList : DerivedList +>list : List, Symbol(list, Decl(arrayLiteralsWithRecursiveGenerics.ts, 15, 3)) +>myDerivedList : DerivedList, Symbol(myDerivedList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 23, 3)) diff --git a/tests/baselines/reference/arrayOfExportedClass.types b/tests/baselines/reference/arrayOfExportedClass.types index 3d542b88d80..4428b37f2ed 100644 --- a/tests/baselines/reference/arrayOfExportedClass.types +++ b/tests/baselines/reference/arrayOfExportedClass.types @@ -1,40 +1,40 @@ === tests/cases/compiler/arrayOfExportedClass_1.ts === /// import Car = require('arrayOfExportedClass_0'); ->Car : typeof Car +>Car : typeof Car, Symbol(Car, Decl(arrayOfExportedClass_1.ts, 0, 0)) class Road { ->Road : Road +>Road : Road, Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 47)) public cars: Car[]; ->cars : Car[] ->Car : Car +>cars : Car[], Symbol(cars, Decl(arrayOfExportedClass_1.ts, 3, 12)) +>Car : Car, Symbol(Car, Decl(arrayOfExportedClass_1.ts, 0, 0)) public AddCars(cars: Car[]) { ->AddCars : (cars: Car[]) => void ->cars : Car[] ->Car : Car +>AddCars : (cars: Car[]) => void, Symbol(AddCars, Decl(arrayOfExportedClass_1.ts, 5, 23)) +>cars : Car[], Symbol(cars, Decl(arrayOfExportedClass_1.ts, 7, 19)) +>Car : Car, Symbol(Car, Decl(arrayOfExportedClass_1.ts, 0, 0)) this.cars = cars; >this.cars = cars : Car[] ->this.cars : Car[] ->this : Road ->cars : Car[] ->cars : Car[] +>this.cars : Car[], Symbol(cars, Decl(arrayOfExportedClass_1.ts, 3, 12)) +>this : Road, Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 47)) +>cars : Car[], Symbol(cars, Decl(arrayOfExportedClass_1.ts, 3, 12)) +>cars : Car[], Symbol(cars, Decl(arrayOfExportedClass_1.ts, 7, 19)) } } export = Road; ->Road : Road +>Road : Road, Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 47)) === tests/cases/compiler/arrayOfExportedClass_0.ts === class Car { ->Car : Car +>Car : Car, Symbol(Car, Decl(arrayOfExportedClass_0.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(arrayOfExportedClass_0.ts, 0, 11)) } export = Car; ->Car : Car +>Car : Car, Symbol(Car, Decl(arrayOfExportedClass_0.ts, 0, 0)) diff --git a/tests/baselines/reference/arrayOfFunctionTypes3.types b/tests/baselines/reference/arrayOfFunctionTypes3.types index 3ef5334382c..048d65eeaa7 100644 --- a/tests/baselines/reference/arrayOfFunctionTypes3.types +++ b/tests/baselines/reference/arrayOfFunctionTypes3.types @@ -2,107 +2,115 @@ // valid uses of arrays of function types var x = [() => 1, () => { }]; ->x : (() => void)[] +>x : (() => void)[], Symbol(x, Decl(arrayOfFunctionTypes3.ts, 2, 3)) >[() => 1, () => { }] : (() => void)[] >() => 1 : () => number +>1 : number >() => { } : () => void var r2 = x[0](); ->r2 : void +>r2 : void, Symbol(r2, Decl(arrayOfFunctionTypes3.ts, 3, 3)) >x[0]() : void >x[0] : () => void ->x : (() => void)[] +>x : (() => void)[], Symbol(x, Decl(arrayOfFunctionTypes3.ts, 2, 3)) +>0 : number class C { ->C : C +>C : C, Symbol(C, Decl(arrayOfFunctionTypes3.ts, 3, 16)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(arrayOfFunctionTypes3.ts, 5, 9)) } var y = [C, C]; ->y : typeof C[] +>y : typeof C[], Symbol(y, Decl(arrayOfFunctionTypes3.ts, 8, 3)) >[C, C] : typeof C[] ->C : typeof C ->C : typeof C +>C : typeof C, Symbol(C, Decl(arrayOfFunctionTypes3.ts, 3, 16)) +>C : typeof C, Symbol(C, Decl(arrayOfFunctionTypes3.ts, 3, 16)) var r3 = new y[0](); ->r3 : C +>r3 : C, Symbol(r3, Decl(arrayOfFunctionTypes3.ts, 9, 3)) >new y[0]() : C >y[0] : typeof C ->y : typeof C[] +>y : typeof C[], Symbol(y, Decl(arrayOfFunctionTypes3.ts, 8, 3)) +>0 : number var a: { (x: number): number; (x: string): string; }; ->a : { (x: number): number; (x: string): string; } ->x : number ->x : string +>a : { (x: number): number; (x: string): string; }, Symbol(a, Decl(arrayOfFunctionTypes3.ts, 11, 3)) +>x : number, Symbol(x, Decl(arrayOfFunctionTypes3.ts, 11, 10)) +>x : string, Symbol(x, Decl(arrayOfFunctionTypes3.ts, 11, 31)) var b: { (x: number): number; (x: string): string; }; ->b : { (x: number): number; (x: string): string; } ->x : number ->x : string +>b : { (x: number): number; (x: string): string; }, Symbol(b, Decl(arrayOfFunctionTypes3.ts, 12, 3)) +>x : number, Symbol(x, Decl(arrayOfFunctionTypes3.ts, 12, 10)) +>x : string, Symbol(x, Decl(arrayOfFunctionTypes3.ts, 12, 31)) var c: { (x: number): number; (x: any): any; }; ->c : { (x: number): number; (x: any): any; } ->x : number ->x : any +>c : { (x: number): number; (x: any): any; }, Symbol(c, Decl(arrayOfFunctionTypes3.ts, 13, 3)) +>x : number, Symbol(x, Decl(arrayOfFunctionTypes3.ts, 13, 10)) +>x : any, Symbol(x, Decl(arrayOfFunctionTypes3.ts, 13, 31)) var z = [a, b, c]; ->z : { (x: number): number; (x: any): any; }[] +>z : { (x: number): number; (x: any): any; }[], Symbol(z, Decl(arrayOfFunctionTypes3.ts, 14, 3)) >[a, b, c] : { (x: number): number; (x: any): any; }[] ->a : { (x: number): number; (x: string): string; } ->b : { (x: number): number; (x: string): string; } ->c : { (x: number): number; (x: any): any; } +>a : { (x: number): number; (x: string): string; }, Symbol(a, Decl(arrayOfFunctionTypes3.ts, 11, 3)) +>b : { (x: number): number; (x: string): string; }, Symbol(b, Decl(arrayOfFunctionTypes3.ts, 12, 3)) +>c : { (x: number): number; (x: any): any; }, Symbol(c, Decl(arrayOfFunctionTypes3.ts, 13, 3)) var r4 = z[0]; ->r4 : { (x: number): number; (x: any): any; } +>r4 : { (x: number): number; (x: any): any; }, Symbol(r4, Decl(arrayOfFunctionTypes3.ts, 15, 3)) >z[0] : { (x: number): number; (x: any): any; } ->z : { (x: number): number; (x: any): any; }[] +>z : { (x: number): number; (x: any): any; }[], Symbol(z, Decl(arrayOfFunctionTypes3.ts, 14, 3)) +>0 : number var r5 = r4(''); // any not string ->r5 : any +>r5 : any, Symbol(r5, Decl(arrayOfFunctionTypes3.ts, 16, 3)) >r4('') : any ->r4 : { (x: number): number; (x: any): any; } +>r4 : { (x: number): number; (x: any): any; }, Symbol(r4, Decl(arrayOfFunctionTypes3.ts, 15, 3)) +>'' : string var r5b = r4(1); ->r5b : number +>r5b : number, Symbol(r5b, Decl(arrayOfFunctionTypes3.ts, 17, 3)) >r4(1) : number ->r4 : { (x: number): number; (x: any): any; } +>r4 : { (x: number): number; (x: any): any; }, Symbol(r4, Decl(arrayOfFunctionTypes3.ts, 15, 3)) +>1 : number var a2: { (x: T): number; (x: string): string;}; ->a2 : { (x: T): number; (x: string): string; } ->T : T ->x : T ->T : T ->x : string +>a2 : { (x: T): number; (x: string): string; }, Symbol(a2, Decl(arrayOfFunctionTypes3.ts, 19, 3)) +>T : T, Symbol(T, Decl(arrayOfFunctionTypes3.ts, 19, 11)) +>x : T, Symbol(x, Decl(arrayOfFunctionTypes3.ts, 19, 14)) +>T : T, Symbol(T, Decl(arrayOfFunctionTypes3.ts, 19, 11)) +>x : string, Symbol(x, Decl(arrayOfFunctionTypes3.ts, 19, 30)) var b2: { (x: T): number; (x: string): string; }; ->b2 : { (x: T): number; (x: string): string; } ->T : T ->x : T ->T : T ->x : string +>b2 : { (x: T): number; (x: string): string; }, Symbol(b2, Decl(arrayOfFunctionTypes3.ts, 20, 3)) +>T : T, Symbol(T, Decl(arrayOfFunctionTypes3.ts, 20, 11)) +>x : T, Symbol(x, Decl(arrayOfFunctionTypes3.ts, 20, 14)) +>T : T, Symbol(T, Decl(arrayOfFunctionTypes3.ts, 20, 11)) +>x : string, Symbol(x, Decl(arrayOfFunctionTypes3.ts, 20, 30)) var c2: { (x: number): number; (x: T): any; }; ->c2 : { (x: number): number; (x: T): any; } ->x : number ->T : T ->x : T ->T : T +>c2 : { (x: number): number; (x: T): any; }, Symbol(c2, Decl(arrayOfFunctionTypes3.ts, 21, 3)) +>x : number, Symbol(x, Decl(arrayOfFunctionTypes3.ts, 21, 11)) +>T : T, Symbol(T, Decl(arrayOfFunctionTypes3.ts, 21, 32)) +>x : T, Symbol(x, Decl(arrayOfFunctionTypes3.ts, 21, 35)) +>T : T, Symbol(T, Decl(arrayOfFunctionTypes3.ts, 21, 32)) var z2 = [a2, b2, c2]; ->z2 : { (x: number): number; (x: T): any; }[] +>z2 : { (x: number): number; (x: T): any; }[], Symbol(z2, Decl(arrayOfFunctionTypes3.ts, 23, 3)) >[a2, b2, c2] : { (x: number): number; (x: T): any; }[] ->a2 : { (x: T): number; (x: string): string; } ->b2 : { (x: T): number; (x: string): string; } ->c2 : { (x: number): number; (x: T): any; } +>a2 : { (x: T): number; (x: string): string; }, Symbol(a2, Decl(arrayOfFunctionTypes3.ts, 19, 3)) +>b2 : { (x: T): number; (x: string): string; }, Symbol(b2, Decl(arrayOfFunctionTypes3.ts, 20, 3)) +>c2 : { (x: number): number; (x: T): any; }, Symbol(c2, Decl(arrayOfFunctionTypes3.ts, 21, 3)) var r6 = z2[0]; ->r6 : { (x: number): number; (x: T): any; } +>r6 : { (x: number): number; (x: T): any; }, Symbol(r6, Decl(arrayOfFunctionTypes3.ts, 24, 3)) >z2[0] : { (x: number): number; (x: T): any; } ->z2 : { (x: number): number; (x: T): any; }[] +>z2 : { (x: number): number; (x: T): any; }[], Symbol(z2, Decl(arrayOfFunctionTypes3.ts, 23, 3)) +>0 : number var r7 = r6(''); // any not string ->r7 : any +>r7 : any, Symbol(r7, Decl(arrayOfFunctionTypes3.ts, 25, 3)) >r6('') : any ->r6 : { (x: number): number; (x: T): any; } +>r6 : { (x: number): number; (x: T): any; }, Symbol(r6, Decl(arrayOfFunctionTypes3.ts, 24, 3)) +>'' : string diff --git a/tests/baselines/reference/arrayTypeInSignatureOfInterfaceAndClass.types b/tests/baselines/reference/arrayTypeInSignatureOfInterfaceAndClass.types index 419db571c05..26c938a3c5d 100644 --- a/tests/baselines/reference/arrayTypeInSignatureOfInterfaceAndClass.types +++ b/tests/baselines/reference/arrayTypeInSignatureOfInterfaceAndClass.types @@ -1,89 +1,89 @@ === tests/cases/compiler/arrayTypeInSignatureOfInterfaceAndClass.ts === declare module WinJS { ->WinJS : typeof WinJS +>WinJS : typeof WinJS, Symbol(WinJS, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 0, 0)) class Promise { ->Promise : Promise ->T : T +>Promise : Promise, Symbol(Promise, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 0, 22)) +>T : T, Symbol(T, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 1, 18)) then(success?: (value: T) => Promise, error?: (error: any) => Promise, progress?: (progress: any) => void): Promise; ->then : (success?: (value: T) => Promise, error?: (error: any) => Promise, progress?: (progress: any) => void) => Promise ->U : U ->success : (value: T) => Promise ->value : T ->T : T ->Promise : Promise ->U : U ->error : (error: any) => Promise ->error : any ->Promise : Promise ->U : U ->progress : (progress: any) => void ->progress : any ->Promise : Promise ->U : U +>then : (success?: (value: T) => Promise, error?: (error: any) => Promise, progress?: (progress: any) => void) => Promise, Symbol(then, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 1, 22)) +>U : U, Symbol(U, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 2, 13)) +>success : (value: T) => Promise, Symbol(success, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 2, 16)) +>value : T, Symbol(value, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 2, 27)) +>T : T, Symbol(T, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 1, 18)) +>Promise : Promise, Symbol(Promise, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 0, 22)) +>U : U, Symbol(U, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 2, 13)) +>error : (error: any) => Promise, Symbol(error, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 2, 51)) +>error : any, Symbol(error, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 2, 61)) +>Promise : Promise, Symbol(Promise, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 0, 22)) +>U : U, Symbol(U, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 2, 13)) +>progress : (progress: any) => void, Symbol(progress, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 2, 87)) +>progress : any, Symbol(progress, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 2, 100)) +>Promise : Promise, Symbol(Promise, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 0, 22)) +>U : U, Symbol(U, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 2, 13)) } } declare module Data { ->Data : typeof Data +>Data : typeof Data, Symbol(Data, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 4, 1)) export interface IListItem { ->IListItem : IListItem ->T : T +>IListItem : IListItem, Symbol(IListItem, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 5, 21)) +>T : T, Symbol(T, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 6, 31)) itemIndex: number; ->itemIndex : number +>itemIndex : number, Symbol(itemIndex, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 6, 35)) key: any; ->key : any +>key : any, Symbol(key, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 7, 26)) data: T; ->data : T ->T : T +>data : T, Symbol(data, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 8, 17)) +>T : T, Symbol(T, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 6, 31)) group: any; ->group : any +>group : any, Symbol(group, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 9, 16)) isHeader: boolean; ->isHeader : boolean +>isHeader : boolean, Symbol(isHeader, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 10, 19)) cached: boolean; ->cached : boolean +>cached : boolean, Symbol(cached, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 11, 26)) isNonSourceData: boolean; ->isNonSourceData : boolean +>isNonSourceData : boolean, Symbol(isNonSourceData, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 12, 24)) preventAugmentation: boolean; ->preventAugmentation : boolean +>preventAugmentation : boolean, Symbol(preventAugmentation, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 13, 33)) } export interface IVirtualList { ->IVirtualList : IVirtualList ->T : T +>IVirtualList : IVirtualList, Symbol(IVirtualList, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 15, 5)) +>T : T, Symbol(T, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 16, 34)) //removeIndices: WinJS.Promise[]>; removeIndices(indices: number[], options?: any): WinJS.Promise[]>; ->removeIndices : (indices: number[], options?: any) => WinJS.Promise[]> ->indices : number[] ->options : any ->WinJS : unknown ->Promise : WinJS.Promise ->IListItem : IListItem ->T : T +>removeIndices : (indices: number[], options?: any) => WinJS.Promise[]>, Symbol(removeIndices, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 16, 38)) +>indices : number[], Symbol(indices, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 18, 22)) +>options : any, Symbol(options, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 18, 40)) +>WinJS : any, Symbol(WinJS, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 0, 0)) +>Promise : WinJS.Promise, Symbol(WinJS.Promise, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 0, 22)) +>IListItem : IListItem, Symbol(IListItem, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 5, 21)) +>T : T, Symbol(T, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 16, 34)) } export class VirtualList implements IVirtualList { ->VirtualList : VirtualList ->T : T ->IVirtualList : IVirtualList ->T : T +>VirtualList : VirtualList, Symbol(VirtualList, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 19, 5)) +>T : T, Symbol(T, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 20, 29)) +>IVirtualList : IVirtualList, Symbol(IVirtualList, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 15, 5)) +>T : T, Symbol(T, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 20, 29)) //removeIndices: WinJS.Promise[]>; public removeIndices(indices: number[], options?: any): WinJS.Promise[]>; ->removeIndices : (indices: number[], options?: any) => WinJS.Promise[]> ->indices : number[] ->options : any ->WinJS : unknown ->Promise : WinJS.Promise ->IListItem : IListItem ->T : T +>removeIndices : (indices: number[], options?: any) => WinJS.Promise[]>, Symbol(removeIndices, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 20, 60)) +>indices : number[], Symbol(indices, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 22, 29)) +>options : any, Symbol(options, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 22, 47)) +>WinJS : any, Symbol(WinJS, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 0, 0)) +>Promise : WinJS.Promise, Symbol(WinJS.Promise, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 0, 22)) +>IListItem : IListItem, Symbol(IListItem, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 5, 21)) +>T : T, Symbol(T, Decl(arrayTypeInSignatureOfInterfaceAndClass.ts, 20, 29)) } } diff --git a/tests/baselines/reference/arrayconcat.types b/tests/baselines/reference/arrayconcat.types index 37e7308aad9..03cf9a71776 100644 --- a/tests/baselines/reference/arrayconcat.types +++ b/tests/baselines/reference/arrayconcat.types @@ -1,89 +1,93 @@ === tests/cases/compiler/arrayconcat.ts === interface IOptions { ->IOptions : IOptions +>IOptions : IOptions, Symbol(IOptions, Decl(arrayconcat.ts, 0, 0)) name?: string; ->name : string +>name : string, Symbol(name, Decl(arrayconcat.ts, 0, 20)) flag?: boolean; ->flag : boolean +>flag : boolean, Symbol(flag, Decl(arrayconcat.ts, 1, 18)) short?: string; ->short : string +>short : string, Symbol(short, Decl(arrayconcat.ts, 2, 19)) usage?: string; ->usage : string +>usage : string, Symbol(usage, Decl(arrayconcat.ts, 3, 19)) set?: (s: string) => void; ->set : (s: string) => void ->s : string +>set : (s: string) => void, Symbol(set, Decl(arrayconcat.ts, 4, 19)) +>s : string, Symbol(s, Decl(arrayconcat.ts, 5, 11)) type?: string; ->type : string +>type : string, Symbol(type, Decl(arrayconcat.ts, 5, 30)) experimental?: boolean; ->experimental : boolean +>experimental : boolean, Symbol(experimental, Decl(arrayconcat.ts, 6, 18)) } class parser { ->parser : parser +>parser : parser, Symbol(parser, Decl(arrayconcat.ts, 8, 1)) public options: IOptions[]; ->options : IOptions[] ->IOptions : IOptions +>options : IOptions[], Symbol(options, Decl(arrayconcat.ts, 10, 14)) +>IOptions : IOptions, Symbol(IOptions, Decl(arrayconcat.ts, 0, 0)) public m() { ->m : () => void +>m : () => void, Symbol(m, Decl(arrayconcat.ts, 11, 28)) this.options = this.options.sort(function(a, b) { >this.options = this.options.sort(function(a, b) { var aName = a.name.toLowerCase(); var bName = b.name.toLowerCase(); if (aName > bName) { return 1; } else if (aName < bName) { return -1; } else { return 0; } }) : IOptions[] ->this.options : IOptions[] ->this : parser ->options : IOptions[] +>this.options : IOptions[], Symbol(options, Decl(arrayconcat.ts, 10, 14)) +>this : parser, Symbol(parser, Decl(arrayconcat.ts, 8, 1)) +>options : IOptions[], Symbol(options, Decl(arrayconcat.ts, 10, 14)) >this.options.sort(function(a, b) { var aName = a.name.toLowerCase(); var bName = b.name.toLowerCase(); if (aName > bName) { return 1; } else if (aName < bName) { return -1; } else { return 0; } }) : IOptions[] ->this.options.sort : (compareFn?: (a: IOptions, b: IOptions) => number) => IOptions[] ->this.options : IOptions[] ->this : parser ->options : IOptions[] ->sort : (compareFn?: (a: IOptions, b: IOptions) => number) => IOptions[] +>this.options.sort : (compareFn?: (a: IOptions, b: IOptions) => number) => IOptions[], Symbol(Array.sort, Decl(lib.d.ts, 1054, 45)) +>this.options : IOptions[], Symbol(options, Decl(arrayconcat.ts, 10, 14)) +>this : parser, Symbol(parser, Decl(arrayconcat.ts, 8, 1)) +>options : IOptions[], Symbol(options, Decl(arrayconcat.ts, 10, 14)) +>sort : (compareFn?: (a: IOptions, b: IOptions) => number) => IOptions[], Symbol(Array.sort, Decl(lib.d.ts, 1054, 45)) >function(a, b) { var aName = a.name.toLowerCase(); var bName = b.name.toLowerCase(); if (aName > bName) { return 1; } else if (aName < bName) { return -1; } else { return 0; } } : (a: IOptions, b: IOptions) => number ->a : IOptions ->b : IOptions +>a : IOptions, Symbol(a, Decl(arrayconcat.ts, 14, 44)) +>b : IOptions, Symbol(b, Decl(arrayconcat.ts, 14, 46)) var aName = a.name.toLowerCase(); ->aName : string +>aName : string, Symbol(aName, Decl(arrayconcat.ts, 15, 15)) >a.name.toLowerCase() : string ->a.name.toLowerCase : () => string ->a.name : string ->a : IOptions ->name : string ->toLowerCase : () => string +>a.name.toLowerCase : () => string, Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51)) +>a.name : string, Symbol(IOptions.name, Decl(arrayconcat.ts, 0, 20)) +>a : IOptions, Symbol(a, Decl(arrayconcat.ts, 14, 44)) +>name : string, Symbol(IOptions.name, Decl(arrayconcat.ts, 0, 20)) +>toLowerCase : () => string, Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51)) var bName = b.name.toLowerCase(); ->bName : string +>bName : string, Symbol(bName, Decl(arrayconcat.ts, 16, 15)) >b.name.toLowerCase() : string ->b.name.toLowerCase : () => string ->b.name : string ->b : IOptions ->name : string ->toLowerCase : () => string +>b.name.toLowerCase : () => string, Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51)) +>b.name : string, Symbol(IOptions.name, Decl(arrayconcat.ts, 0, 20)) +>b : IOptions, Symbol(b, Decl(arrayconcat.ts, 14, 46)) +>name : string, Symbol(IOptions.name, Decl(arrayconcat.ts, 0, 20)) +>toLowerCase : () => string, Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51)) if (aName > bName) { >aName > bName : boolean ->aName : string ->bName : string +>aName : string, Symbol(aName, Decl(arrayconcat.ts, 15, 15)) +>bName : string, Symbol(bName, Decl(arrayconcat.ts, 16, 15)) return 1; +>1 : number + } else if (aName < bName) { >aName < bName : boolean ->aName : string ->bName : string +>aName : string, Symbol(aName, Decl(arrayconcat.ts, 15, 15)) +>bName : string, Symbol(bName, Decl(arrayconcat.ts, 16, 15)) return -1; >-1 : number +>1 : number } else { return 0; +>0 : number } }); } diff --git a/tests/baselines/reference/arrowFunctionExpressions.js b/tests/baselines/reference/arrowFunctionExpressions.js index 68516b52cb2..5e365291da7 100644 --- a/tests/baselines/reference/arrowFunctionExpressions.js +++ b/tests/baselines/reference/arrowFunctionExpressions.js @@ -13,6 +13,17 @@ var d = n => c = n; var d = (n) => c = n; var d: (n: any) => any; +// Binding patterns in arrow functions +var p1 = ([a]) => { }; +var p2 = ([...a]) => { }; +var p3 = ([, a]) => { }; +var p4 = ([, ...a]) => { }; +var p5 = ([a = 1]) => { }; +var p6 = ({ a }) => { }; +var p7 = ({ a: { b } }) => { }; +var p8 = ({ a = 1 }) => { }; +var p9 = ({ a: { b = 1 } = { b: 1 } }) => { }; +var p10 = ([{ value, done }]) => { }; // Arrow function used in class member initializer // Arrow function used in class member function @@ -100,6 +111,37 @@ var c; var d = function (n) { return c = n; }; var d = function (n) { return c = n; }; var d; +// Binding patterns in arrow functions +var p1 = function (_a) { + var a = _a[0]; +}; +var p2 = function (_a) { + var a = _a.slice(0); +}; +var p3 = function (_a) { + var a = _a[1]; +}; +var p4 = function (_a) { + var a = _a.slice(1); +}; +var p5 = function (_a) { + var _b = _a[0], a = _b === void 0 ? 1 : _b; +}; +var p6 = function (_a) { + var a = _a.a; +}; +var p7 = function (_a) { + var b = _a.a.b; +}; +var p8 = function (_a) { + var _b = _a.a, a = _b === void 0 ? 1 : _b; +}; +var p9 = function (_a) { + var _b = _a.a, _c = (_b === void 0 ? { b: 1 } : _b).b, b = _c === void 0 ? 1 : _c; +}; +var p10 = function (_a) { + var _b = _a[0], value = _b.value, done = _b.done; +}; // Arrow function used in class member initializer // Arrow function used in class member function var MyClass = (function () { diff --git a/tests/baselines/reference/arrowFunctionExpressions.types b/tests/baselines/reference/arrowFunctionExpressions.types index 5807f6d6a7d..4dd68d35f38 100644 --- a/tests/baselines/reference/arrowFunctionExpressions.types +++ b/tests/baselines/reference/arrowFunctionExpressions.types @@ -1,278 +1,354 @@ === tests/cases/conformance/expressions/functions/arrowFunctionExpressions.ts === // ArrowFormalParameters => AssignmentExpression is equivalent to ArrowFormalParameters => { return AssignmentExpression; } var a = (p: string) => p.length; ->a : (p: string) => number +>a : (p: string) => number, Symbol(a, Decl(arrowFunctionExpressions.ts, 1, 3), Decl(arrowFunctionExpressions.ts, 2, 3)) >(p: string) => p.length : (p: string) => number ->p : string ->p.length : number ->p : string ->length : number +>p : string, Symbol(p, Decl(arrowFunctionExpressions.ts, 1, 9)) +>p.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>p : string, Symbol(p, Decl(arrowFunctionExpressions.ts, 1, 9)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) var a = (p: string) => { return p.length; } ->a : (p: string) => number +>a : (p: string) => number, Symbol(a, Decl(arrowFunctionExpressions.ts, 1, 3), Decl(arrowFunctionExpressions.ts, 2, 3)) >(p: string) => { return p.length; } : (p: string) => number ->p : string ->p.length : number ->p : string ->length : number +>p : string, Symbol(p, Decl(arrowFunctionExpressions.ts, 2, 9)) +>p.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>p : string, Symbol(p, Decl(arrowFunctionExpressions.ts, 2, 9)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) // Identifier => Block is equivalent to(Identifier) => Block var b = j => { return 0; } ->b : (j: any) => number +>b : (j: any) => number, Symbol(b, Decl(arrowFunctionExpressions.ts, 5, 3), Decl(arrowFunctionExpressions.ts, 6, 3)) >j => { return 0; } : (j: any) => number ->j : any +>j : any, Symbol(j, Decl(arrowFunctionExpressions.ts, 5, 7)) +>0 : number var b = (j) => { return 0; } ->b : (j: any) => number +>b : (j: any) => number, Symbol(b, Decl(arrowFunctionExpressions.ts, 5, 3), Decl(arrowFunctionExpressions.ts, 6, 3)) >(j) => { return 0; } : (j: any) => number ->j : any +>j : any, Symbol(j, Decl(arrowFunctionExpressions.ts, 6, 9)) +>0 : number // Identifier => AssignmentExpression is equivalent to(Identifier) => AssignmentExpression var c: number; ->c : number +>c : number, Symbol(c, Decl(arrowFunctionExpressions.ts, 9, 3)) var d = n => c = n; ->d : (n: any) => any +>d : (n: any) => any, Symbol(d, Decl(arrowFunctionExpressions.ts, 10, 3), Decl(arrowFunctionExpressions.ts, 11, 3), Decl(arrowFunctionExpressions.ts, 12, 3)) >n => c = n : (n: any) => any ->n : any +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 10, 7)) >c = n : any ->c : number ->n : any +>c : number, Symbol(c, Decl(arrowFunctionExpressions.ts, 9, 3)) +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 10, 7)) var d = (n) => c = n; ->d : (n: any) => any +>d : (n: any) => any, Symbol(d, Decl(arrowFunctionExpressions.ts, 10, 3), Decl(arrowFunctionExpressions.ts, 11, 3), Decl(arrowFunctionExpressions.ts, 12, 3)) >(n) => c = n : (n: any) => any ->n : any +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 11, 9)) >c = n : any ->c : number ->n : any +>c : number, Symbol(c, Decl(arrowFunctionExpressions.ts, 9, 3)) +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 11, 9)) var d: (n: any) => any; ->d : (n: any) => any ->n : any +>d : (n: any) => any, Symbol(d, Decl(arrowFunctionExpressions.ts, 10, 3), Decl(arrowFunctionExpressions.ts, 11, 3), Decl(arrowFunctionExpressions.ts, 12, 3)) +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 12, 8)) +// Binding patterns in arrow functions +var p1 = ([a]) => { }; +>p1 : ([a]: [any]) => void, Symbol(p1, Decl(arrowFunctionExpressions.ts, 15, 3)) +>([a]) => { } : ([a]: [any]) => void +>a : any, Symbol(a, Decl(arrowFunctionExpressions.ts, 15, 11)) + +var p2 = ([...a]) => { }; +>p2 : ([...a]: any[]) => void, Symbol(p2, Decl(arrowFunctionExpressions.ts, 16, 3)) +>([...a]) => { } : ([...a]: any[]) => void +>a : any[], Symbol(a, Decl(arrowFunctionExpressions.ts, 16, 11)) + +var p3 = ([, a]) => { }; +>p3 : ([, a]: [any, any]) => void, Symbol(p3, Decl(arrowFunctionExpressions.ts, 17, 3)) +>([, a]) => { } : ([, a]: [any, any]) => void +> : undefined +>a : any, Symbol(a, Decl(arrowFunctionExpressions.ts, 17, 12)) + +var p4 = ([, ...a]) => { }; +>p4 : ([, ...a]: any[]) => void, Symbol(p4, Decl(arrowFunctionExpressions.ts, 18, 3)) +>([, ...a]) => { } : ([, ...a]: any[]) => void +> : undefined +>a : any[], Symbol(a, Decl(arrowFunctionExpressions.ts, 18, 12)) + +var p5 = ([a = 1]) => { }; +>p5 : ([a = 1]: [number]) => void, Symbol(p5, Decl(arrowFunctionExpressions.ts, 19, 3)) +>([a = 1]) => { } : ([a = 1]: [number]) => void +>a : number, Symbol(a, Decl(arrowFunctionExpressions.ts, 19, 11)) +>1 : number + +var p6 = ({ a }) => { }; +>p6 : ({ a }: { a: any; }) => void, Symbol(p6, Decl(arrowFunctionExpressions.ts, 20, 3)) +>({ a }) => { } : ({ a }: { a: any; }) => void +>a : any, Symbol(a, Decl(arrowFunctionExpressions.ts, 20, 11)) + +var p7 = ({ a: { b } }) => { }; +>p7 : ({ a: { b } }: { a: { b: any; }; }) => void, Symbol(p7, Decl(arrowFunctionExpressions.ts, 21, 3)) +>({ a: { b } }) => { } : ({ a: { b } }: { a: { b: any; }; }) => void +>a : any +>b : any, Symbol(b, Decl(arrowFunctionExpressions.ts, 21, 16)) + +var p8 = ({ a = 1 }) => { }; +>p8 : ({ a = 1 }: { a?: number; }) => void, Symbol(p8, Decl(arrowFunctionExpressions.ts, 22, 3)) +>({ a = 1 }) => { } : ({ a = 1 }: { a?: number; }) => void +>a : number, Symbol(a, Decl(arrowFunctionExpressions.ts, 22, 11)) +>1 : number + +var p9 = ({ a: { b = 1 } = { b: 1 } }) => { }; +>p9 : ({ a: { b = 1 } = { b: 1 } }: { a?: { b: number; }; }) => void, Symbol(p9, Decl(arrowFunctionExpressions.ts, 23, 3)) +>({ a: { b = 1 } = { b: 1 } }) => { } : ({ a: { b = 1 } = { b: 1 } }: { a?: { b: number; }; }) => void +>a : any +>b : number, Symbol(b, Decl(arrowFunctionExpressions.ts, 23, 16)) +>1 : number +>{ b: 1 } : { b: number; } +>b : number, Symbol(b, Decl(arrowFunctionExpressions.ts, 23, 28)) +>1 : number + +var p10 = ([{ value, done }]) => { }; +>p10 : ([{ value, done }]: [{ value: any; done: any; }]) => void, Symbol(p10, Decl(arrowFunctionExpressions.ts, 24, 3)) +>([{ value, done }]) => { } : ([{ value, done }]: [{ value: any; done: any; }]) => void +>value : any, Symbol(value, Decl(arrowFunctionExpressions.ts, 24, 13)) +>done : any, Symbol(done, Decl(arrowFunctionExpressions.ts, 24, 20)) // Arrow function used in class member initializer // Arrow function used in class member function class MyClass { ->MyClass : MyClass +>MyClass : MyClass, Symbol(MyClass, Decl(arrowFunctionExpressions.ts, 24, 37)) m = (n) => n + 1; ->m : (n: any) => any +>m : (n: any) => any, Symbol(m, Decl(arrowFunctionExpressions.ts, 28, 15)) >(n) => n + 1 : (n: any) => any ->n : any +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 29, 9)) >n + 1 : any ->n : any +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 29, 9)) +>1 : number p = (n) => n && this; ->p : (n: any) => MyClass +>p : (n: any) => MyClass, Symbol(p, Decl(arrowFunctionExpressions.ts, 29, 21)) >(n) => n && this : (n: any) => MyClass ->n : any +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 30, 9)) >n && this : MyClass ->n : any ->this : MyClass +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 30, 9)) +>this : MyClass, Symbol(MyClass, Decl(arrowFunctionExpressions.ts, 24, 37)) fn() { ->fn : () => void +>fn : () => void, Symbol(fn, Decl(arrowFunctionExpressions.ts, 30, 25)) var m = (n) => n + 1; ->m : (n: any) => any +>m : (n: any) => any, Symbol(m, Decl(arrowFunctionExpressions.ts, 33, 11)) >(n) => n + 1 : (n: any) => any ->n : any +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 33, 17)) >n + 1 : any ->n : any +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 33, 17)) +>1 : number var p = (n) => n && this; ->p : (n: any) => MyClass +>p : (n: any) => MyClass, Symbol(p, Decl(arrowFunctionExpressions.ts, 34, 11)) >(n) => n && this : (n: any) => MyClass ->n : any +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 34, 17)) >n && this : MyClass ->n : any ->this : MyClass +>n : any, Symbol(n, Decl(arrowFunctionExpressions.ts, 34, 17)) +>this : MyClass, Symbol(MyClass, Decl(arrowFunctionExpressions.ts, 24, 37)) } } // Arrow function used in arrow function var arrrr = () => (m: number) => () => (n: number) => m + n; ->arrrr : () => (m: number) => () => (n: number) => number +>arrrr : () => (m: number) => () => (n: number) => number, Symbol(arrrr, Decl(arrowFunctionExpressions.ts, 39, 3)) >() => (m: number) => () => (n: number) => m + n : () => (m: number) => () => (n: number) => number >(m: number) => () => (n: number) => m + n : (m: number) => () => (n: number) => number ->m : number +>m : number, Symbol(m, Decl(arrowFunctionExpressions.ts, 39, 19)) >() => (n: number) => m + n : () => (n: number) => number >(n: number) => m + n : (n: number) => number ->n : number +>n : number, Symbol(n, Decl(arrowFunctionExpressions.ts, 39, 40)) >m + n : number ->m : number ->n : number +>m : number, Symbol(m, Decl(arrowFunctionExpressions.ts, 39, 19)) +>n : number, Symbol(n, Decl(arrowFunctionExpressions.ts, 39, 40)) var e = arrrr()(3)()(4); ->e : number +>e : number, Symbol(e, Decl(arrowFunctionExpressions.ts, 40, 3), Decl(arrowFunctionExpressions.ts, 41, 3)) >arrrr()(3)()(4) : number >arrrr()(3)() : (n: number) => number >arrrr()(3) : () => (n: number) => number >arrrr() : (m: number) => () => (n: number) => number ->arrrr : () => (m: number) => () => (n: number) => number +>arrrr : () => (m: number) => () => (n: number) => number, Symbol(arrrr, Decl(arrowFunctionExpressions.ts, 39, 3)) +>3 : number +>4 : number var e: number; ->e : number +>e : number, Symbol(e, Decl(arrowFunctionExpressions.ts, 40, 3), Decl(arrowFunctionExpressions.ts, 41, 3)) // Arrow function used in arrow function used in function function someFn() { ->someFn : () => void +>someFn : () => void, Symbol(someFn, Decl(arrowFunctionExpressions.ts, 41, 14)) var arr = (n: number) => (p: number) => p * n; ->arr : (n: number) => (p: number) => number +>arr : (n: number) => (p: number) => number, Symbol(arr, Decl(arrowFunctionExpressions.ts, 45, 7)) >(n: number) => (p: number) => p * n : (n: number) => (p: number) => number ->n : number +>n : number, Symbol(n, Decl(arrowFunctionExpressions.ts, 45, 15)) >(p: number) => p * n : (p: number) => number ->p : number +>p : number, Symbol(p, Decl(arrowFunctionExpressions.ts, 45, 30)) >p * n : number ->p : number ->n : number +>p : number, Symbol(p, Decl(arrowFunctionExpressions.ts, 45, 30)) +>n : number, Symbol(n, Decl(arrowFunctionExpressions.ts, 45, 15)) arr(3)(4).toExponential(); >arr(3)(4).toExponential() : string ->arr(3)(4).toExponential : (fractionDigits?: number) => string +>arr(3)(4).toExponential : (fractionDigits?: number) => string, Symbol(Number.toExponential, Decl(lib.d.ts, 469, 45)) >arr(3)(4) : number >arr(3) : (p: number) => number ->arr : (n: number) => (p: number) => number ->toExponential : (fractionDigits?: number) => string +>arr : (n: number) => (p: number) => number, Symbol(arr, Decl(arrowFunctionExpressions.ts, 45, 7)) +>3 : number +>4 : number +>toExponential : (fractionDigits?: number) => string, Symbol(Number.toExponential, Decl(lib.d.ts, 469, 45)) } // Arrow function used in function function someOtherFn() { ->someOtherFn : () => void +>someOtherFn : () => void, Symbol(someOtherFn, Decl(arrowFunctionExpressions.ts, 47, 1)) var arr = (n: number) => '' + n; ->arr : (n: number) => string +>arr : (n: number) => string, Symbol(arr, Decl(arrowFunctionExpressions.ts, 51, 7)) >(n: number) => '' + n : (n: number) => string ->n : number +>n : number, Symbol(n, Decl(arrowFunctionExpressions.ts, 51, 15)) >'' + n : string ->n : number +>'' : string +>n : number, Symbol(n, Decl(arrowFunctionExpressions.ts, 51, 15)) arr(4).charAt(0); >arr(4).charAt(0) : string ->arr(4).charAt : (pos: number) => string +>arr(4).charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) >arr(4) : string ->arr : (n: number) => string ->charAt : (pos: number) => string +>arr : (n: number) => string, Symbol(arr, Decl(arrowFunctionExpressions.ts, 51, 7)) +>4 : number +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number } // Arrow function used in nested function in function function outerFn() { ->outerFn : () => void +>outerFn : () => void, Symbol(outerFn, Decl(arrowFunctionExpressions.ts, 53, 1)) function innerFn() { ->innerFn : () => void +>innerFn : () => void, Symbol(innerFn, Decl(arrowFunctionExpressions.ts, 56, 20)) var arrowFn = () => { }; ->arrowFn : () => void +>arrowFn : () => void, Symbol(arrowFn, Decl(arrowFunctionExpressions.ts, 58, 11)) >() => { } : () => void var p = arrowFn(); ->p : void +>p : void, Symbol(p, Decl(arrowFunctionExpressions.ts, 59, 11), Decl(arrowFunctionExpressions.ts, 60, 11)) >arrowFn() : void ->arrowFn : () => void +>arrowFn : () => void, Symbol(arrowFn, Decl(arrowFunctionExpressions.ts, 58, 11)) var p: void; ->p : void +>p : void, Symbol(p, Decl(arrowFunctionExpressions.ts, 59, 11), Decl(arrowFunctionExpressions.ts, 60, 11)) } } // Arrow function used in nested function in arrow function var f = (n: string) => { ->f : (n: string) => () => string +>f : (n: string) => () => string, Symbol(f, Decl(arrowFunctionExpressions.ts, 65, 3)) >(n: string) => { function fn(x: number) { return () => n + x; } return fn(4);} : (n: string) => () => string ->n : string +>n : string, Symbol(n, Decl(arrowFunctionExpressions.ts, 65, 9)) function fn(x: number) { ->fn : (x: number) => () => string ->x : number +>fn : (x: number) => () => string, Symbol(fn, Decl(arrowFunctionExpressions.ts, 65, 24)) +>x : number, Symbol(x, Decl(arrowFunctionExpressions.ts, 66, 16)) return () => n + x; >() => n + x : () => string >n + x : string ->n : string ->x : number +>n : string, Symbol(n, Decl(arrowFunctionExpressions.ts, 65, 9)) +>x : number, Symbol(x, Decl(arrowFunctionExpressions.ts, 66, 16)) } return fn(4); >fn(4) : () => string ->fn : (x: number) => () => string +>fn : (x: number) => () => string, Symbol(fn, Decl(arrowFunctionExpressions.ts, 65, 24)) +>4 : number } var g = f('')(); ->g : string +>g : string, Symbol(g, Decl(arrowFunctionExpressions.ts, 71, 3), Decl(arrowFunctionExpressions.ts, 72, 3)) >f('')() : string >f('') : () => string ->f : (n: string) => () => string +>f : (n: string) => () => string, Symbol(f, Decl(arrowFunctionExpressions.ts, 65, 3)) +>'' : string var g: string; ->g : string +>g : string, Symbol(g, Decl(arrowFunctionExpressions.ts, 71, 3), Decl(arrowFunctionExpressions.ts, 72, 3)) // Arrow function used in nested function in arrow function in nested function function someOuterFn() { ->someOuterFn : () => (n: string) => () => () => number +>someOuterFn : () => (n: string) => () => () => number, Symbol(someOuterFn, Decl(arrowFunctionExpressions.ts, 72, 14)) var arr = (n: string) => { ->arr : (n: string) => () => () => number +>arr : (n: string) => () => () => number, Symbol(arr, Decl(arrowFunctionExpressions.ts, 77, 7)) >(n: string) => { function innerFn() { return () => n.length; } return innerFn; } : (n: string) => () => () => number ->n : string +>n : string, Symbol(n, Decl(arrowFunctionExpressions.ts, 77, 15)) function innerFn() { ->innerFn : () => () => number +>innerFn : () => () => number, Symbol(innerFn, Decl(arrowFunctionExpressions.ts, 77, 30)) return () => n.length; >() => n.length : () => number ->n.length : number ->n : string ->length : number +>n.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>n : string, Symbol(n, Decl(arrowFunctionExpressions.ts, 77, 15)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) } return innerFn; ->innerFn : () => () => number +>innerFn : () => () => number, Symbol(innerFn, Decl(arrowFunctionExpressions.ts, 77, 30)) } return arr; ->arr : (n: string) => () => () => number +>arr : (n: string) => () => () => number, Symbol(arr, Decl(arrowFunctionExpressions.ts, 77, 7)) } var h = someOuterFn()('')()(); ->h : number +>h : number, Symbol(h, Decl(arrowFunctionExpressions.ts, 85, 3)) >someOuterFn()('')()() : number >someOuterFn()('')() : () => number >someOuterFn()('') : () => () => number >someOuterFn() : (n: string) => () => () => number ->someOuterFn : () => (n: string) => () => () => number +>someOuterFn : () => (n: string) => () => () => number, Symbol(someOuterFn, Decl(arrowFunctionExpressions.ts, 72, 14)) +>'' : string h.toExponential(); >h.toExponential() : string ->h.toExponential : (fractionDigits?: number) => string ->h : number ->toExponential : (fractionDigits?: number) => string +>h.toExponential : (fractionDigits?: number) => string, Symbol(Number.toExponential, Decl(lib.d.ts, 469, 45)) +>h : number, Symbol(h, Decl(arrowFunctionExpressions.ts, 85, 3)) +>toExponential : (fractionDigits?: number) => string, Symbol(Number.toExponential, Decl(lib.d.ts, 469, 45)) // Arrow function used in try/catch/finally in function function tryCatchFn() { ->tryCatchFn : () => void +>tryCatchFn : () => void, Symbol(tryCatchFn, Decl(arrowFunctionExpressions.ts, 86, 18)) try { var x = () => this; ->x : () => any +>x : () => any, Symbol(x, Decl(arrowFunctionExpressions.ts, 91, 11)) >() => this : () => any >this : any } catch (e) { ->e : any +>e : any, Symbol(e, Decl(arrowFunctionExpressions.ts, 92, 13)) var t = () => e + this; ->t : () => any +>t : () => any, Symbol(t, Decl(arrowFunctionExpressions.ts, 93, 11)) >() => e + this : () => any >e + this : any ->e : any +>e : any, Symbol(e, Decl(arrowFunctionExpressions.ts, 92, 13)) >this : any } finally { var m = () => this + ''; ->m : () => string +>m : () => string, Symbol(m, Decl(arrowFunctionExpressions.ts, 95, 11)) >() => this + '' : () => string >this + '' : string >this : any +>'' : string } } diff --git a/tests/baselines/reference/arrowFunctionInExpressionStatement1.types b/tests/baselines/reference/arrowFunctionInExpressionStatement1.types index a5360a18fc0..a38a868f85b 100644 --- a/tests/baselines/reference/arrowFunctionInExpressionStatement1.types +++ b/tests/baselines/reference/arrowFunctionInExpressionStatement1.types @@ -1,4 +1,5 @@ === tests/cases/compiler/arrowFunctionInExpressionStatement1.ts === () => 0; >() => 0 : () => number +>0 : number diff --git a/tests/baselines/reference/arrowFunctionInExpressionStatement2.types b/tests/baselines/reference/arrowFunctionInExpressionStatement2.types index d4bb431fa8d..1d49b822852 100644 --- a/tests/baselines/reference/arrowFunctionInExpressionStatement2.types +++ b/tests/baselines/reference/arrowFunctionInExpressionStatement2.types @@ -1,7 +1,8 @@ === tests/cases/compiler/arrowFunctionInExpressionStatement2.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(arrowFunctionInExpressionStatement2.ts, 0, 0)) () => 0; >() => 0 : () => number +>0 : number } diff --git a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody1.types b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody1.types index 2446c97d4ce..8a9656dbeb0 100644 --- a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody1.types +++ b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody1.types @@ -1,8 +1,8 @@ === tests/cases/compiler/arrowFunctionWithObjectLiteralBody1.ts === var v = a => {} ->v : (a: any) => any +>v : (a: any) => any, Symbol(v, Decl(arrowFunctionWithObjectLiteralBody1.ts, 0, 3)) >a => {} : (a: any) => any ->a : any +>a : any, Symbol(a, Decl(arrowFunctionWithObjectLiteralBody1.ts, 0, 7)) >{} : any >{} : {} diff --git a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody2.types b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody2.types index df8e87e82ea..2094b1e7e4e 100644 --- a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody2.types +++ b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody2.types @@ -1,8 +1,8 @@ === tests/cases/compiler/arrowFunctionWithObjectLiteralBody2.ts === var v = a => {} ->v : (a: any) => any +>v : (a: any) => any, Symbol(v, Decl(arrowFunctionWithObjectLiteralBody2.ts, 0, 3)) >a => {} : (a: any) => any ->a : any +>a : any, Symbol(a, Decl(arrowFunctionWithObjectLiteralBody2.ts, 0, 7)) >{} : any >{} : any >{} : {} diff --git a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody3.types b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody3.types index 91e11ab9104..43e95f973b6 100644 --- a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody3.types +++ b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody3.types @@ -1,8 +1,8 @@ === tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts === var v = a => {} ->v : (a: any) => any +>v : (a: any) => any, Symbol(v, Decl(arrowFunctionWithObjectLiteralBody3.ts, 0, 3)) >a => {} : (a: any) => any ->a : any +>a : any, Symbol(a, Decl(arrowFunctionWithObjectLiteralBody3.ts, 0, 7)) >{} : any >{} : {} diff --git a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody4.types b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody4.types index 400a91b459d..d4ef4671fe1 100644 --- a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody4.types +++ b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody4.types @@ -1,8 +1,8 @@ === tests/cases/compiler/arrowFunctionWithObjectLiteralBody4.ts === var v = a => {} ->v : (a: any) => any +>v : (a: any) => any, Symbol(v, Decl(arrowFunctionWithObjectLiteralBody4.ts, 0, 3)) >a => {} : (a: any) => any ->a : any +>a : any, Symbol(a, Decl(arrowFunctionWithObjectLiteralBody4.ts, 0, 7)) >{} : any >{} : any >{} : {} diff --git a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody5.types b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody5.types index 15b3697732a..e005804cc9a 100644 --- a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody5.types +++ b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody5.types @@ -1,40 +1,48 @@ === tests/cases/compiler/arrowFunctionWithObjectLiteralBody5.ts === var a = () => { name: "foo", message: "bar" }; ->a : () => Error +>a : () => Error, Symbol(a, Decl(arrowFunctionWithObjectLiteralBody5.ts, 0, 3)) >() => { name: "foo", message: "bar" } : () => Error >{ name: "foo", message: "bar" } : Error ->Error : Error +>Error : Error, Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11)) >{ name: "foo", message: "bar" } : { name: string; message: string; } ->name : string ->message : string +>name : string, Symbol(name, Decl(arrowFunctionWithObjectLiteralBody5.ts, 0, 22)) +>"foo" : string +>message : string, Symbol(message, Decl(arrowFunctionWithObjectLiteralBody5.ts, 0, 35)) +>"bar" : string var b = () => ({ name: "foo", message: "bar" }); ->b : () => Error +>b : () => Error, Symbol(b, Decl(arrowFunctionWithObjectLiteralBody5.ts, 2, 3)) >() => ({ name: "foo", message: "bar" }) : () => Error >({ name: "foo", message: "bar" }) : Error >{ name: "foo", message: "bar" } : Error ->Error : Error +>Error : Error, Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11)) >{ name: "foo", message: "bar" } : { name: string; message: string; } ->name : string ->message : string +>name : string, Symbol(name, Decl(arrowFunctionWithObjectLiteralBody5.ts, 2, 23)) +>"foo" : string +>message : string, Symbol(message, Decl(arrowFunctionWithObjectLiteralBody5.ts, 2, 36)) +>"bar" : string var c = () => ({ name: "foo", message: "bar" }); ->c : () => { name: string; message: string; } +>c : () => { name: string; message: string; }, Symbol(c, Decl(arrowFunctionWithObjectLiteralBody5.ts, 4, 3)) >() => ({ name: "foo", message: "bar" }) : () => { name: string; message: string; } >({ name: "foo", message: "bar" }) : { name: string; message: string; } >{ name: "foo", message: "bar" } : { name: string; message: string; } ->name : string ->message : string +>name : string, Symbol(name, Decl(arrowFunctionWithObjectLiteralBody5.ts, 4, 16)) +>"foo" : string +>message : string, Symbol(message, Decl(arrowFunctionWithObjectLiteralBody5.ts, 4, 29)) +>"bar" : string var d = () => ((({ name: "foo", message: "bar" }))); ->d : () => Error +>d : () => Error, Symbol(d, Decl(arrowFunctionWithObjectLiteralBody5.ts, 6, 3)) >() => ((({ name: "foo", message: "bar" }))) : () => Error >((({ name: "foo", message: "bar" }))) : Error >(({ name: "foo", message: "bar" })) : Error >({ name: "foo", message: "bar" }) : Error ->Error : Error +>Error : Error, Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11)) >({ name: "foo", message: "bar" }) : { name: string; message: string; } >{ name: "foo", message: "bar" } : { name: string; message: string; } ->name : string ->message : string +>name : string, Symbol(name, Decl(arrowFunctionWithObjectLiteralBody5.ts, 6, 25)) +>"foo" : string +>message : string, Symbol(message, Decl(arrowFunctionWithObjectLiteralBody5.ts, 6, 38)) +>"bar" : string diff --git a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody6.types b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody6.types index 14a45dca213..51b314aefbc 100644 --- a/tests/baselines/reference/arrowFunctionWithObjectLiteralBody6.types +++ b/tests/baselines/reference/arrowFunctionWithObjectLiteralBody6.types @@ -1,40 +1,48 @@ === tests/cases/compiler/arrowFunctionWithObjectLiteralBody6.ts === var a = () => { name: "foo", message: "bar" }; ->a : () => Error +>a : () => Error, Symbol(a, Decl(arrowFunctionWithObjectLiteralBody6.ts, 0, 3)) >() => { name: "foo", message: "bar" } : () => Error >{ name: "foo", message: "bar" } : Error ->Error : Error +>Error : Error, Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11)) >{ name: "foo", message: "bar" } : { name: string; message: string; } ->name : string ->message : string +>name : string, Symbol(name, Decl(arrowFunctionWithObjectLiteralBody6.ts, 0, 22)) +>"foo" : string +>message : string, Symbol(message, Decl(arrowFunctionWithObjectLiteralBody6.ts, 0, 35)) +>"bar" : string var b = () => ({ name: "foo", message: "bar" }); ->b : () => Error +>b : () => Error, Symbol(b, Decl(arrowFunctionWithObjectLiteralBody6.ts, 2, 3)) >() => ({ name: "foo", message: "bar" }) : () => Error >({ name: "foo", message: "bar" }) : Error >{ name: "foo", message: "bar" } : Error ->Error : Error +>Error : Error, Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11)) >{ name: "foo", message: "bar" } : { name: string; message: string; } ->name : string ->message : string +>name : string, Symbol(name, Decl(arrowFunctionWithObjectLiteralBody6.ts, 2, 23)) +>"foo" : string +>message : string, Symbol(message, Decl(arrowFunctionWithObjectLiteralBody6.ts, 2, 36)) +>"bar" : string var c = () => ({ name: "foo", message: "bar" }); ->c : () => { name: string; message: string; } +>c : () => { name: string; message: string; }, Symbol(c, Decl(arrowFunctionWithObjectLiteralBody6.ts, 4, 3)) >() => ({ name: "foo", message: "bar" }) : () => { name: string; message: string; } >({ name: "foo", message: "bar" }) : { name: string; message: string; } >{ name: "foo", message: "bar" } : { name: string; message: string; } ->name : string ->message : string +>name : string, Symbol(name, Decl(arrowFunctionWithObjectLiteralBody6.ts, 4, 16)) +>"foo" : string +>message : string, Symbol(message, Decl(arrowFunctionWithObjectLiteralBody6.ts, 4, 29)) +>"bar" : string var d = () => ((({ name: "foo", message: "bar" }))); ->d : () => Error +>d : () => Error, Symbol(d, Decl(arrowFunctionWithObjectLiteralBody6.ts, 6, 3)) >() => ((({ name: "foo", message: "bar" }))) : () => Error >((({ name: "foo", message: "bar" }))) : Error >(({ name: "foo", message: "bar" })) : Error >({ name: "foo", message: "bar" }) : Error ->Error : Error +>Error : Error, Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11)) >({ name: "foo", message: "bar" }) : { name: string; message: string; } >{ name: "foo", message: "bar" } : { name: string; message: string; } ->name : string ->message : string +>name : string, Symbol(name, Decl(arrowFunctionWithObjectLiteralBody6.ts, 6, 25)) +>"foo" : string +>message : string, Symbol(message, Decl(arrowFunctionWithObjectLiteralBody6.ts, 6, 38)) +>"bar" : string diff --git a/tests/baselines/reference/asiAmbientFunctionDeclaration.types b/tests/baselines/reference/asiAmbientFunctionDeclaration.types index 40ad7f2ba94..1a651bdb9c7 100644 --- a/tests/baselines/reference/asiAmbientFunctionDeclaration.types +++ b/tests/baselines/reference/asiAmbientFunctionDeclaration.types @@ -1,4 +1,4 @@ === tests/cases/compiler/asiAmbientFunctionDeclaration.ts === declare function foo() ->foo : () => any +>foo : () => any, Symbol(foo, Decl(asiAmbientFunctionDeclaration.ts, 0, 0)) diff --git a/tests/baselines/reference/asiArith.types b/tests/baselines/reference/asiArith.types index d6c0c7abd71..fc39fe3926e 100644 --- a/tests/baselines/reference/asiArith.types +++ b/tests/baselines/reference/asiArith.types @@ -1,16 +1,18 @@ === tests/cases/compiler/asiArith.ts === var x = 1; ->x : number +>x : number, Symbol(x, Decl(asiArith.ts, 0, 3)) +>1 : number var y = 1; ->y : number +>y : number, Symbol(y, Decl(asiArith.ts, 2, 3)) +>1 : number var z = ->z : number +>z : number, Symbol(z, Decl(asiArith.ts, 4, 3)) x >x+++y : number ->x : number +>x : number, Symbol(x, Decl(asiArith.ts, 0, 3)) + @@ -21,21 +23,23 @@ x >+y : number y ->y : number +>y : number, Symbol(y, Decl(asiArith.ts, 2, 3)) var a = 1; ->a : number +>a : number, Symbol(a, Decl(asiArith.ts, 17, 3)) +>1 : number var b = 1; ->b : number +>b : number, Symbol(b, Decl(asiArith.ts, 19, 3)) +>1 : number var c = ->c : number +>c : number, Symbol(c, Decl(asiArith.ts, 21, 3)) x >x---y : number ->x : number +>x : number, Symbol(x, Decl(asiArith.ts, 0, 3)) - @@ -46,6 +50,6 @@ x >-y : number y ->y : number +>y : number, Symbol(y, Decl(asiArith.ts, 2, 3)) diff --git a/tests/baselines/reference/asiBreak.types b/tests/baselines/reference/asiBreak.types index 355d27f2a43..af3d6a040d5 100644 --- a/tests/baselines/reference/asiBreak.types +++ b/tests/baselines/reference/asiBreak.types @@ -1,3 +1,4 @@ === tests/cases/compiler/asiBreak.ts === while (true) break -No type information for this code. \ No newline at end of file +>true : boolean + diff --git a/tests/baselines/reference/asiContinue.types b/tests/baselines/reference/asiContinue.types index 5b3f0145377..e2eb5ba107d 100644 --- a/tests/baselines/reference/asiContinue.types +++ b/tests/baselines/reference/asiContinue.types @@ -1,3 +1,4 @@ === tests/cases/compiler/asiContinue.ts === while (true) continue -No type information for this code. \ No newline at end of file +>true : boolean + diff --git a/tests/baselines/reference/asiInES6Classes.types b/tests/baselines/reference/asiInES6Classes.types index 90c7f71aba6..9dcff154717 100644 --- a/tests/baselines/reference/asiInES6Classes.types +++ b/tests/baselines/reference/asiInES6Classes.types @@ -1,24 +1,26 @@ === tests/cases/compiler/asiInES6Classes.ts === class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(asiInES6Classes.ts, 0, 0)) defaults = { ->defaults : { done: boolean; } +>defaults : { done: boolean; }, Symbol(defaults, Decl(asiInES6Classes.ts, 0, 11)) >{ done: false } : { done: boolean; } done: false ->done : boolean +>done : boolean, Symbol(done, Decl(asiInES6Classes.ts, 4, 16)) +>false : boolean } bar() { ->bar : () => number +>bar : () => number, Symbol(bar, Decl(asiInES6Classes.ts, 8, 5)) return 3; +>3 : number } diff --git a/tests/baselines/reference/assign1.types b/tests/baselines/reference/assign1.types index 32b93af647d..d5d734c93ce 100644 --- a/tests/baselines/reference/assign1.types +++ b/tests/baselines/reference/assign1.types @@ -1,22 +1,24 @@ === tests/cases/compiler/assign1.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(assign1.ts, 0, 0)) interface I { ->I : I +>I : I, Symbol(I, Decl(assign1.ts, 0, 10)) salt:number; ->salt : number +>salt : number, Symbol(salt, Decl(assign1.ts, 1, 17)) pepper:number; ->pepper : number +>pepper : number, Symbol(pepper, Decl(assign1.ts, 2, 20)) } var x:I={salt:2,pepper:0}; ->x : I ->I : I +>x : I, Symbol(x, Decl(assign1.ts, 6, 7)) +>I : I, Symbol(I, Decl(assign1.ts, 0, 10)) >{salt:2,pepper:0} : { salt: number; pepper: number; } ->salt : number ->pepper : number +>salt : number, Symbol(salt, Decl(assign1.ts, 6, 13)) +>2 : number +>pepper : number, Symbol(pepper, Decl(assign1.ts, 6, 20)) +>0 : number } diff --git a/tests/baselines/reference/assignEveryTypeToAny.types b/tests/baselines/reference/assignEveryTypeToAny.types index 129440fa463..2bab3111f93 100644 --- a/tests/baselines/reference/assignEveryTypeToAny.types +++ b/tests/baselines/reference/assignEveryTypeToAny.types @@ -2,159 +2,166 @@ // all of these are valid var x: any; ->x : any +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) x = 1; >x = 1 : number ->x : any +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>1 : number var a = 2; ->a : number +>a : number, Symbol(a, Decl(assignEveryTypeToAny.ts, 5, 3)) +>2 : number x = a; >x = a : number ->x : any ->a : number +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>a : number, Symbol(a, Decl(assignEveryTypeToAny.ts, 5, 3)) x = true; >x = true : boolean ->x : any +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>true : boolean var b = true; ->b : boolean +>b : boolean, Symbol(b, Decl(assignEveryTypeToAny.ts, 9, 3)) +>true : boolean x = b; >x = b : boolean ->x : any ->b : boolean +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>b : boolean, Symbol(b, Decl(assignEveryTypeToAny.ts, 9, 3)) x = ""; >x = "" : string ->x : any +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>"" : string var c = ""; ->c : string +>c : string, Symbol(c, Decl(assignEveryTypeToAny.ts, 13, 3)) +>"" : string x = c; >x = c : string ->x : any ->c : string +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>c : string, Symbol(c, Decl(assignEveryTypeToAny.ts, 13, 3)) var d: void; ->d : void +>d : void, Symbol(d, Decl(assignEveryTypeToAny.ts, 16, 3)) x = d; >x = d : void ->x : any ->d : void +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>d : void, Symbol(d, Decl(assignEveryTypeToAny.ts, 16, 3)) var e = undefined; ->e : any ->undefined : undefined +>e : any, Symbol(e, Decl(assignEveryTypeToAny.ts, 19, 3)) +>undefined : undefined, Symbol(undefined) x = e; >x = e : any ->x : any ->e : any +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>e : any, Symbol(e, Decl(assignEveryTypeToAny.ts, 19, 3)) var e2: typeof undefined; ->e2 : any ->undefined : undefined +>e2 : any, Symbol(e2, Decl(assignEveryTypeToAny.ts, 22, 3)) +>undefined : undefined, Symbol(undefined) x = e2; >x = e2 : any ->x : any ->e2 : any +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>e2 : any, Symbol(e2, Decl(assignEveryTypeToAny.ts, 22, 3)) enum E { ->E : E +>E : E, Symbol(E, Decl(assignEveryTypeToAny.ts, 23, 7)) A ->A : E +>A : E, Symbol(E.A, Decl(assignEveryTypeToAny.ts, 25, 8)) } x = E.A; >x = E.A : E ->x : any ->E.A : E ->E : typeof E ->A : E +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>E.A : E, Symbol(E.A, Decl(assignEveryTypeToAny.ts, 25, 8)) +>E : typeof E, Symbol(E, Decl(assignEveryTypeToAny.ts, 23, 7)) +>A : E, Symbol(E.A, Decl(assignEveryTypeToAny.ts, 25, 8)) var f = E.A; ->f : E ->E.A : E ->E : typeof E ->A : E +>f : E, Symbol(f, Decl(assignEveryTypeToAny.ts, 30, 3)) +>E.A : E, Symbol(E.A, Decl(assignEveryTypeToAny.ts, 25, 8)) +>E : typeof E, Symbol(E, Decl(assignEveryTypeToAny.ts, 23, 7)) +>A : E, Symbol(E.A, Decl(assignEveryTypeToAny.ts, 25, 8)) x = f; >x = f : E ->x : any ->f : E +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>f : E, Symbol(f, Decl(assignEveryTypeToAny.ts, 30, 3)) interface I { ->I : I +>I : I, Symbol(I, Decl(assignEveryTypeToAny.ts, 31, 6)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(assignEveryTypeToAny.ts, 33, 13)) } var g: I; ->g : I ->I : I +>g : I, Symbol(g, Decl(assignEveryTypeToAny.ts, 37, 3)) +>I : I, Symbol(I, Decl(assignEveryTypeToAny.ts, 31, 6)) x = g; >x = g : I ->x : any ->g : I +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>g : I, Symbol(g, Decl(assignEveryTypeToAny.ts, 37, 3)) class C { ->C : C +>C : C, Symbol(C, Decl(assignEveryTypeToAny.ts, 38, 6)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(assignEveryTypeToAny.ts, 40, 9)) } var h: C; ->h : C ->C : C +>h : C, Symbol(h, Decl(assignEveryTypeToAny.ts, 44, 3)) +>C : C, Symbol(C, Decl(assignEveryTypeToAny.ts, 38, 6)) x = h; >x = h : C ->x : any ->h : C +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>h : C, Symbol(h, Decl(assignEveryTypeToAny.ts, 44, 3)) var i: { (): string }; ->i : () => string +>i : () => string, Symbol(i, Decl(assignEveryTypeToAny.ts, 47, 3)) x = i; >x = i : () => string ->x : any ->i : () => string +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>i : () => string, Symbol(i, Decl(assignEveryTypeToAny.ts, 47, 3)) x = { f() { return 1; } } >x = { f() { return 1; } } : { f(): number; } ->x : any +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) >{ f() { return 1; } } : { f(): number; } ->f : () => number +>f : () => number, Symbol(f, Decl(assignEveryTypeToAny.ts, 49, 5)) +>1 : number x = { f(x: T) { return x; } } >x = { f(x: T) { return x; } } : { f(x: T): T; } ->x : any +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) >{ f(x: T) { return x; } } : { f(x: T): T; } ->f : (x: T) => T ->T : T ->x : T ->T : T ->x : T +>f : (x: T) => T, Symbol(f, Decl(assignEveryTypeToAny.ts, 50, 5)) +>T : T, Symbol(T, Decl(assignEveryTypeToAny.ts, 50, 8)) +>x : T, Symbol(x, Decl(assignEveryTypeToAny.ts, 50, 11)) +>T : T, Symbol(T, Decl(assignEveryTypeToAny.ts, 50, 8)) +>x : T, Symbol(x, Decl(assignEveryTypeToAny.ts, 50, 11)) function j(a: T) { ->j : (a: T) => void ->T : T ->a : T ->T : T +>j : (a: T) => void, Symbol(j, Decl(assignEveryTypeToAny.ts, 50, 32)) +>T : T, Symbol(T, Decl(assignEveryTypeToAny.ts, 52, 11)) +>a : T, Symbol(a, Decl(assignEveryTypeToAny.ts, 52, 14)) +>T : T, Symbol(T, Decl(assignEveryTypeToAny.ts, 52, 11)) x = a; >x = a : T ->x : any ->a : T +>x : any, Symbol(x, Decl(assignEveryTypeToAny.ts, 2, 3)) +>a : T, Symbol(a, Decl(assignEveryTypeToAny.ts, 52, 14)) } diff --git a/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.types b/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.types index 7ea260f8c15..a73cad61ae3 100644 --- a/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.types +++ b/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.types @@ -1,17 +1,17 @@ === tests/cases/compiler/assignToObjectTypeWithPrototypeProperty.ts === class XEvent {} ->XEvent : XEvent +>XEvent : XEvent, Symbol(XEvent, Decl(assignToObjectTypeWithPrototypeProperty.ts, 0, 0)) var p: XEvent = XEvent.prototype; ->p : XEvent ->XEvent : XEvent ->XEvent.prototype : XEvent ->XEvent : typeof XEvent ->prototype : XEvent +>p : XEvent, Symbol(p, Decl(assignToObjectTypeWithPrototypeProperty.ts, 1, 3)) +>XEvent : XEvent, Symbol(XEvent, Decl(assignToObjectTypeWithPrototypeProperty.ts, 0, 0)) +>XEvent.prototype : XEvent, Symbol(XEvent.prototype) +>XEvent : typeof XEvent, Symbol(XEvent, Decl(assignToObjectTypeWithPrototypeProperty.ts, 0, 0)) +>prototype : XEvent, Symbol(XEvent.prototype) var x: {prototype: XEvent} = XEvent; ->x : { prototype: XEvent; } ->prototype : XEvent ->XEvent : XEvent ->XEvent : typeof XEvent +>x : { prototype: XEvent; }, Symbol(x, Decl(assignToObjectTypeWithPrototypeProperty.ts, 2, 3)) +>prototype : XEvent, Symbol(prototype, Decl(assignToObjectTypeWithPrototypeProperty.ts, 2, 8)) +>XEvent : XEvent, Symbol(XEvent, Decl(assignToObjectTypeWithPrototypeProperty.ts, 0, 0)) +>XEvent : typeof XEvent, Symbol(XEvent, Decl(assignToObjectTypeWithPrototypeProperty.ts, 0, 0)) diff --git a/tests/baselines/reference/assignToPrototype1.types b/tests/baselines/reference/assignToPrototype1.types index f4631c89e0b..eb1d29aad65 100644 --- a/tests/baselines/reference/assignToPrototype1.types +++ b/tests/baselines/reference/assignToPrototype1.types @@ -1,22 +1,22 @@ === tests/cases/compiler/assignToPrototype1.ts === declare class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(assignToPrototype1.ts, 0, 0)) add(dx: number, dy: number): void; ->add : (dx: number, dy: number) => void ->dx : number ->dy : number +>add : (dx: number, dy: number) => void, Symbol(add, Decl(assignToPrototype1.ts, 0, 21)) +>dx : number, Symbol(dx, Decl(assignToPrototype1.ts, 1, 6)) +>dy : number, Symbol(dy, Decl(assignToPrototype1.ts, 1, 17)) } Point.prototype.add = function(dx, dy) { >Point.prototype.add = function(dx, dy) {} : (dx: number, dy: number) => void ->Point.prototype.add : (dx: number, dy: number) => void ->Point.prototype : Point ->Point : typeof Point ->prototype : Point ->add : (dx: number, dy: number) => void +>Point.prototype.add : (dx: number, dy: number) => void, Symbol(Point.add, Decl(assignToPrototype1.ts, 0, 21)) +>Point.prototype : Point, Symbol(Point.prototype) +>Point : typeof Point, Symbol(Point, Decl(assignToPrototype1.ts, 0, 0)) +>prototype : Point, Symbol(Point.prototype) +>add : (dx: number, dy: number) => void, Symbol(Point.add, Decl(assignToPrototype1.ts, 0, 21)) >function(dx, dy) {} : (dx: number, dy: number) => void ->dx : number ->dy : number +>dx : number, Symbol(dx, Decl(assignToPrototype1.ts, 4, 31)) +>dy : number, Symbol(dy, Decl(assignToPrototype1.ts, 4, 34)) }; diff --git a/tests/baselines/reference/assignmentCompatForEnums.types b/tests/baselines/reference/assignmentCompatForEnums.types index 53e8caab638..41ad3cea734 100644 --- a/tests/baselines/reference/assignmentCompatForEnums.types +++ b/tests/baselines/reference/assignmentCompatForEnums.types @@ -1,31 +1,33 @@ === tests/cases/compiler/assignmentCompatForEnums.ts === enum TokenType { One, Two }; ->TokenType : TokenType ->One : TokenType ->Two : TokenType +>TokenType : TokenType, Symbol(TokenType, Decl(assignmentCompatForEnums.ts, 0, 0)) +>One : TokenType, Symbol(TokenType.One, Decl(assignmentCompatForEnums.ts, 0, 16)) +>Two : TokenType, Symbol(TokenType.Two, Decl(assignmentCompatForEnums.ts, 0, 21)) var list = {}; ->list : {} +>list : {}, Symbol(list, Decl(assignmentCompatForEnums.ts, 2, 3)) >{} : {} function returnType(): TokenType { return null; } ->returnType : () => TokenType ->TokenType : TokenType +>returnType : () => TokenType, Symbol(returnType, Decl(assignmentCompatForEnums.ts, 2, 14)) +>TokenType : TokenType, Symbol(TokenType, Decl(assignmentCompatForEnums.ts, 0, 0)) +>null : null function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(assignmentCompatForEnums.ts, 5, 49)) var x = returnType(); ->x : TokenType +>x : TokenType, Symbol(x, Decl(assignmentCompatForEnums.ts, 8, 7), Decl(assignmentCompatForEnums.ts, 10, 7)) >returnType() : TokenType ->returnType : () => TokenType +>returnType : () => TokenType, Symbol(returnType, Decl(assignmentCompatForEnums.ts, 2, 14)) var x: TokenType = list['one']; ->x : TokenType ->TokenType : TokenType +>x : TokenType, Symbol(x, Decl(assignmentCompatForEnums.ts, 8, 7), Decl(assignmentCompatForEnums.ts, 10, 7)) +>TokenType : TokenType, Symbol(TokenType, Decl(assignmentCompatForEnums.ts, 0, 0)) >list['one'] : any ->list : {} +>list : {}, Symbol(list, Decl(assignmentCompatForEnums.ts, 2, 3)) +>'one' : string } diff --git a/tests/baselines/reference/assignmentCompatOnNew.types b/tests/baselines/reference/assignmentCompatOnNew.types index 19994e61df8..ea56af98b7b 100644 --- a/tests/baselines/reference/assignmentCompatOnNew.types +++ b/tests/baselines/reference/assignmentCompatOnNew.types @@ -1,14 +1,14 @@ === tests/cases/compiler/assignmentCompatOnNew.ts === class Foo{}; ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(assignmentCompatOnNew.ts, 0, 0)) function bar(x: {new(): Foo;}){} ->bar : (x: new () => Foo) => void ->x : new () => Foo ->Foo : Foo +>bar : (x: new () => Foo) => void, Symbol(bar, Decl(assignmentCompatOnNew.ts, 0, 12)) +>x : new () => Foo, Symbol(x, Decl(assignmentCompatOnNew.ts, 2, 13)) +>Foo : Foo, Symbol(Foo, Decl(assignmentCompatOnNew.ts, 0, 0)) bar(Foo); // Error, but should be allowed >bar(Foo) : void ->bar : (x: new () => Foo) => void ->Foo : typeof Foo +>bar : (x: new () => Foo) => void, Symbol(bar, Decl(assignmentCompatOnNew.ts, 0, 12)) +>Foo : typeof Foo, Symbol(Foo, Decl(assignmentCompatOnNew.ts, 0, 0)) diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures3.types b/tests/baselines/reference/assignmentCompatWithCallSignatures3.types index 72cceae84ff..2d571ea599d 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures3.types +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures3.types @@ -2,564 +2,564 @@ // these are all permitted with the current rules, since we do not do contextual signature instantiation class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithCallSignatures3.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithCallSignatures3.ts, 3, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(assignmentCompatWithCallSignatures3.ts, 3, 43)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>baz : string, Symbol(baz, Decl(assignmentCompatWithCallSignatures3.ts, 4, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(assignmentCompatWithCallSignatures3.ts, 4, 47)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(assignmentCompatWithCallSignatures3.ts, 5, 33)) var a: (x: number) => number[]; ->a : (x: number) => number[] ->x : number +>a : (x: number) => number[], Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 7, 3)) +>x : number, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 7, 8)) var a2: (x: number) => string[]; ->a2 : (x: number) => string[] ->x : number +>a2 : (x: number) => string[], Symbol(a2, Decl(assignmentCompatWithCallSignatures3.ts, 8, 3)) +>x : number, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 8, 9)) var a3: (x: number) => void; ->a3 : (x: number) => void ->x : number +>a3 : (x: number) => void, Symbol(a3, Decl(assignmentCompatWithCallSignatures3.ts, 9, 3)) +>x : number, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 9, 9)) var a4: (x: string, y: number) => string; ->a4 : (x: string, y: number) => string ->x : string ->y : number +>a4 : (x: string, y: number) => string, Symbol(a4, Decl(assignmentCompatWithCallSignatures3.ts, 10, 3)) +>x : string, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 10, 9)) +>y : number, Symbol(y, Decl(assignmentCompatWithCallSignatures3.ts, 10, 19)) var a5: (x: (arg: string) => number) => string; ->a5 : (x: (arg: string) => number) => string ->x : (arg: string) => number ->arg : string +>a5 : (x: (arg: string) => number) => string, Symbol(a5, Decl(assignmentCompatWithCallSignatures3.ts, 11, 3)) +>x : (arg: string) => number, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 11, 9)) +>arg : string, Symbol(arg, Decl(assignmentCompatWithCallSignatures3.ts, 11, 13)) var a6: (x: (arg: Base) => Derived) => Base; ->a6 : (x: (arg: Base) => Derived) => Base ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->Base : Base +>a6 : (x: (arg: Base) => Derived) => Base, Symbol(a6, Decl(assignmentCompatWithCallSignatures3.ts, 12, 3)) +>x : (arg: Base) => Derived, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 12, 9)) +>arg : Base, Symbol(arg, Decl(assignmentCompatWithCallSignatures3.ts, 12, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) var a7: (x: (arg: Base) => Derived) => (r: Base) => Derived; ->a7 : (x: (arg: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a7 : (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(a7, Decl(assignmentCompatWithCallSignatures3.ts, 13, 3)) +>x : (arg: Base) => Derived, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 13, 9)) +>arg : Base, Symbol(arg, Decl(assignmentCompatWithCallSignatures3.ts, 13, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>r : Base, Symbol(r, Decl(assignmentCompatWithCallSignatures3.ts, 13, 40)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) var a8: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; ->a8 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->y : (arg2: Base) => Derived ->arg2 : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a8 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a8, Decl(assignmentCompatWithCallSignatures3.ts, 14, 3)) +>x : (arg: Base) => Derived, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 14, 9)) +>arg : Base, Symbol(arg, Decl(assignmentCompatWithCallSignatures3.ts, 14, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>y : (arg2: Base) => Derived, Symbol(y, Decl(assignmentCompatWithCallSignatures3.ts, 14, 35)) +>arg2 : Base, Symbol(arg2, Decl(assignmentCompatWithCallSignatures3.ts, 14, 40)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>r : Base, Symbol(r, Decl(assignmentCompatWithCallSignatures3.ts, 14, 68)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) var a9: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; ->a9 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->y : (arg2: Base) => Derived ->arg2 : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a9 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a9, Decl(assignmentCompatWithCallSignatures3.ts, 15, 3)) +>x : (arg: Base) => Derived, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 15, 9)) +>arg : Base, Symbol(arg, Decl(assignmentCompatWithCallSignatures3.ts, 15, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>y : (arg2: Base) => Derived, Symbol(y, Decl(assignmentCompatWithCallSignatures3.ts, 15, 35)) +>arg2 : Base, Symbol(arg2, Decl(assignmentCompatWithCallSignatures3.ts, 15, 40)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>r : Base, Symbol(r, Decl(assignmentCompatWithCallSignatures3.ts, 15, 68)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) var a10: (...x: Derived[]) => Derived; ->a10 : (...x: Derived[]) => Derived ->x : Derived[] ->Derived : Derived ->Derived : Derived +>a10 : (...x: Derived[]) => Derived, Symbol(a10, Decl(assignmentCompatWithCallSignatures3.ts, 16, 3)) +>x : Derived[], Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 16, 10)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) var a11: (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base ->x : { foo: string; } ->foo : string ->y : { foo: string; bar: string; } ->foo : string ->bar : string ->Base : Base +>a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(a11, Decl(assignmentCompatWithCallSignatures3.ts, 17, 3)) +>x : { foo: string; }, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 17, 10)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithCallSignatures3.ts, 17, 14)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(assignmentCompatWithCallSignatures3.ts, 17, 29)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithCallSignatures3.ts, 17, 34)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithCallSignatures3.ts, 17, 47)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) var a12: (x: Array, y: Array) => Array; ->a12 : (x: Base[], y: Derived2[]) => Derived[] ->x : Base[] ->Array : T[] ->Base : Base ->y : Derived2[] ->Array : T[] ->Derived2 : Derived2 ->Array : T[] ->Derived : Derived +>a12 : (x: Base[], y: Derived2[]) => Derived[], Symbol(a12, Decl(assignmentCompatWithCallSignatures3.ts, 18, 3)) +>x : Base[], Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 18, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>y : Derived2[], Symbol(y, Decl(assignmentCompatWithCallSignatures3.ts, 18, 25)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived2 : Derived2, Symbol(Derived2, Decl(assignmentCompatWithCallSignatures3.ts, 3, 43)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) var a13: (x: Array, y: Array) => Array; ->a13 : (x: Base[], y: Derived[]) => Derived[] ->x : Base[] ->Array : T[] ->Base : Base ->y : Derived[] ->Array : T[] ->Derived : Derived ->Array : T[] ->Derived : Derived +>a13 : (x: Base[], y: Derived[]) => Derived[], Symbol(a13, Decl(assignmentCompatWithCallSignatures3.ts, 19, 3)) +>x : Base[], Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 19, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>y : Derived[], Symbol(y, Decl(assignmentCompatWithCallSignatures3.ts, 19, 25)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) var a14: (x: { a: string; b: number }) => Object; ->a14 : (x: { a: string; b: number; }) => Object ->x : { a: string; b: number; } ->a : string ->b : number ->Object : Object +>a14 : (x: { a: string; b: number; }) => Object, Symbol(a14, Decl(assignmentCompatWithCallSignatures3.ts, 20, 3)) +>x : { a: string; b: number; }, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 20, 10)) +>a : string, Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 20, 14)) +>b : number, Symbol(b, Decl(assignmentCompatWithCallSignatures3.ts, 20, 25)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var a15: { ->a15 : { (x: number): number[]; (x: string): string[]; } +>a15 : { (x: number): number[]; (x: string): string[]; }, Symbol(a15, Decl(assignmentCompatWithCallSignatures3.ts, 21, 3)) (x: number): number[]; ->x : number +>x : number, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 22, 5)) (x: string): string[]; ->x : string +>x : string, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 23, 5)) } var a16: { ->a16 : { (x: T): number[]; (x: U): number[]; } +>a16 : { (x: T): number[]; (x: U): number[]; }, Symbol(a16, Decl(assignmentCompatWithCallSignatures3.ts, 25, 3)) (x: T): number[]; ->T : T ->Derived : Derived ->x : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 26, 5)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 26, 24)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 26, 5)) (x: U): number[]; ->U : U ->Base : Base ->x : U ->U : U +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 27, 5)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>x : U, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 27, 21)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 27, 5)) } var a17: { ->a17 : { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; } +>a17 : { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; }, Symbol(a17, Decl(assignmentCompatWithCallSignatures3.ts, 29, 3)) (x: (a: number) => number): number[]; ->x : (a: number) => number ->a : number +>x : (a: number) => number, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 30, 5)) +>a : number, Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 30, 9)) (x: (a: string) => string): string[]; ->x : (a: string) => string ->a : string +>x : (a: string) => string, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 31, 5)) +>a : string, Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 31, 9)) }; var a18: { ->a18 : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; } +>a18 : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }, Symbol(a18, Decl(assignmentCompatWithCallSignatures3.ts, 33, 3)) (x: { ->x : { (a: number): number; (a: string): string; } +>x : { (a: number): number; (a: string): string; }, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 34, 5)) (a: number): number; ->a : number +>a : number, Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 35, 9)) (a: string): string; ->a : string +>a : string, Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 36, 9)) }): any[]; (x: { ->x : { (a: boolean): boolean; (a: Date): Date; } +>x : { (a: boolean): boolean; (a: Date): Date; }, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 38, 5)) (a: boolean): boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 39, 9)) (a: Date): Date; ->a : Date ->Date : Date ->Date : Date +>a : Date, Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 40, 9)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) }): any[]; } var b: (x: T) => T[]; ->b : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>b : (x: T) => T[], Symbol(b, Decl(assignmentCompatWithCallSignatures3.ts, 44, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 44, 8)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 44, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 44, 8)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 44, 8)) a = b; // ok >a = b : (x: T) => T[] ->a : (x: number) => number[] ->b : (x: T) => T[] +>a : (x: number) => number[], Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 7, 3)) +>b : (x: T) => T[], Symbol(b, Decl(assignmentCompatWithCallSignatures3.ts, 44, 3)) b = a; // ok >b = a : (x: number) => number[] ->b : (x: T) => T[] ->a : (x: number) => number[] +>b : (x: T) => T[], Symbol(b, Decl(assignmentCompatWithCallSignatures3.ts, 44, 3)) +>a : (x: number) => number[], Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 7, 3)) var b2: (x: T) => string[]; ->b2 : (x: T) => string[] ->T : T ->x : T ->T : T +>b2 : (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithCallSignatures3.ts, 47, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 47, 9)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 47, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 47, 9)) a2 = b2; // ok >a2 = b2 : (x: T) => string[] ->a2 : (x: number) => string[] ->b2 : (x: T) => string[] +>a2 : (x: number) => string[], Symbol(a2, Decl(assignmentCompatWithCallSignatures3.ts, 8, 3)) +>b2 : (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithCallSignatures3.ts, 47, 3)) b2 = a2; // ok >b2 = a2 : (x: number) => string[] ->b2 : (x: T) => string[] ->a2 : (x: number) => string[] +>b2 : (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithCallSignatures3.ts, 47, 3)) +>a2 : (x: number) => string[], Symbol(a2, Decl(assignmentCompatWithCallSignatures3.ts, 8, 3)) var b3: (x: T) => T; ->b3 : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>b3 : (x: T) => T, Symbol(b3, Decl(assignmentCompatWithCallSignatures3.ts, 50, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 50, 9)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 50, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 50, 9)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 50, 9)) a3 = b3; // ok >a3 = b3 : (x: T) => T ->a3 : (x: number) => void ->b3 : (x: T) => T +>a3 : (x: number) => void, Symbol(a3, Decl(assignmentCompatWithCallSignatures3.ts, 9, 3)) +>b3 : (x: T) => T, Symbol(b3, Decl(assignmentCompatWithCallSignatures3.ts, 50, 3)) b3 = a3; // ok >b3 = a3 : (x: number) => void ->b3 : (x: T) => T ->a3 : (x: number) => void +>b3 : (x: T) => T, Symbol(b3, Decl(assignmentCompatWithCallSignatures3.ts, 50, 3)) +>a3 : (x: number) => void, Symbol(a3, Decl(assignmentCompatWithCallSignatures3.ts, 9, 3)) var b4: (x: T, y: U) => T; ->b4 : (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>b4 : (x: T, y: U) => T, Symbol(b4, Decl(assignmentCompatWithCallSignatures3.ts, 53, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 53, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 53, 11)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 53, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 53, 9)) +>y : U, Symbol(y, Decl(assignmentCompatWithCallSignatures3.ts, 53, 20)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 53, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 53, 9)) a4 = b4; // ok >a4 = b4 : (x: T, y: U) => T ->a4 : (x: string, y: number) => string ->b4 : (x: T, y: U) => T +>a4 : (x: string, y: number) => string, Symbol(a4, Decl(assignmentCompatWithCallSignatures3.ts, 10, 3)) +>b4 : (x: T, y: U) => T, Symbol(b4, Decl(assignmentCompatWithCallSignatures3.ts, 53, 3)) b4 = a4; // ok >b4 = a4 : (x: string, y: number) => string ->b4 : (x: T, y: U) => T ->a4 : (x: string, y: number) => string +>b4 : (x: T, y: U) => T, Symbol(b4, Decl(assignmentCompatWithCallSignatures3.ts, 53, 3)) +>a4 : (x: string, y: number) => string, Symbol(a4, Decl(assignmentCompatWithCallSignatures3.ts, 10, 3)) var b5: (x: (arg: T) => U) => T; ->b5 : (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>b5 : (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithCallSignatures3.ts, 56, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 56, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 56, 11)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 56, 15)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures3.ts, 56, 19)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 56, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 56, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 56, 9)) a5 = b5; // ok >a5 = b5 : (x: (arg: T) => U) => T ->a5 : (x: (arg: string) => number) => string ->b5 : (x: (arg: T) => U) => T +>a5 : (x: (arg: string) => number) => string, Symbol(a5, Decl(assignmentCompatWithCallSignatures3.ts, 11, 3)) +>b5 : (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithCallSignatures3.ts, 56, 3)) b5 = a5; // ok >b5 = a5 : (x: (arg: string) => number) => string ->b5 : (x: (arg: T) => U) => T ->a5 : (x: (arg: string) => number) => string +>b5 : (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithCallSignatures3.ts, 56, 3)) +>a5 : (x: (arg: string) => number) => string, Symbol(a5, Decl(assignmentCompatWithCallSignatures3.ts, 11, 3)) var b6: (x: (arg: T) => U) => T; ->b6 : (x: (arg: T) => U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>b6 : (x: (arg: T) => U) => T, Symbol(b6, Decl(assignmentCompatWithCallSignatures3.ts, 59, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 59, 9)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 59, 24)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 59, 44)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures3.ts, 59, 48)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 59, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 59, 24)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 59, 9)) a6 = b6; // ok >a6 = b6 : (x: (arg: T) => U) => T ->a6 : (x: (arg: Base) => Derived) => Base ->b6 : (x: (arg: T) => U) => T +>a6 : (x: (arg: Base) => Derived) => Base, Symbol(a6, Decl(assignmentCompatWithCallSignatures3.ts, 12, 3)) +>b6 : (x: (arg: T) => U) => T, Symbol(b6, Decl(assignmentCompatWithCallSignatures3.ts, 59, 3)) b6 = a6; // ok >b6 = a6 : (x: (arg: Base) => Derived) => Base ->b6 : (x: (arg: T) => U) => T ->a6 : (x: (arg: Base) => Derived) => Base +>b6 : (x: (arg: T) => U) => T, Symbol(b6, Decl(assignmentCompatWithCallSignatures3.ts, 59, 3)) +>a6 : (x: (arg: Base) => Derived) => Base, Symbol(a6, Decl(assignmentCompatWithCallSignatures3.ts, 12, 3)) var b7: (x: (arg: T) => U) => (r: T) => U; ->b7 : (x: (arg: T) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->r : T ->T : T ->U : U +>b7 : (x: (arg: T) => U) => (r: T) => U, Symbol(b7, Decl(assignmentCompatWithCallSignatures3.ts, 62, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 62, 9)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 62, 24)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 62, 44)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures3.ts, 62, 48)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 62, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 62, 24)) +>r : T, Symbol(r, Decl(assignmentCompatWithCallSignatures3.ts, 62, 66)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 62, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 62, 24)) a7 = b7; // ok >a7 = b7 : (x: (arg: T) => U) => (r: T) => U ->a7 : (x: (arg: Base) => Derived) => (r: Base) => Derived ->b7 : (x: (arg: T) => U) => (r: T) => U +>a7 : (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(a7, Decl(assignmentCompatWithCallSignatures3.ts, 13, 3)) +>b7 : (x: (arg: T) => U) => (r: T) => U, Symbol(b7, Decl(assignmentCompatWithCallSignatures3.ts, 62, 3)) b7 = a7; // ok >b7 = a7 : (x: (arg: Base) => Derived) => (r: Base) => Derived ->b7 : (x: (arg: T) => U) => (r: T) => U ->a7 : (x: (arg: Base) => Derived) => (r: Base) => Derived +>b7 : (x: (arg: T) => U) => (r: T) => U, Symbol(b7, Decl(assignmentCompatWithCallSignatures3.ts, 62, 3)) +>a7 : (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(a7, Decl(assignmentCompatWithCallSignatures3.ts, 13, 3)) var b8: (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U; ->b8 : (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->y : (arg2: T) => U ->arg2 : T ->T : T ->U : U ->r : T ->T : T ->U : U +>b8 : (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(b8, Decl(assignmentCompatWithCallSignatures3.ts, 65, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 65, 9)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 65, 24)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 65, 44)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures3.ts, 65, 48)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 65, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 65, 24)) +>y : (arg2: T) => U, Symbol(y, Decl(assignmentCompatWithCallSignatures3.ts, 65, 61)) +>arg2 : T, Symbol(arg2, Decl(assignmentCompatWithCallSignatures3.ts, 65, 66)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 65, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 65, 24)) +>r : T, Symbol(r, Decl(assignmentCompatWithCallSignatures3.ts, 65, 85)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 65, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 65, 24)) a8 = b8; // ok >a8 = b8 : (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U ->a8 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->b8 : (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U +>a8 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a8, Decl(assignmentCompatWithCallSignatures3.ts, 14, 3)) +>b8 : (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(b8, Decl(assignmentCompatWithCallSignatures3.ts, 65, 3)) b8 = a8; // ok >b8 = a8 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->b8 : (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U ->a8 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived +>b8 : (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(b8, Decl(assignmentCompatWithCallSignatures3.ts, 65, 3)) +>a8 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a8, Decl(assignmentCompatWithCallSignatures3.ts, 14, 3)) var b9: (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; ->b9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->y : (arg2: { foo: string; bing: number; }) => U ->arg2 : { foo: string; bing: number; } ->foo : string ->bing : number ->U : U ->r : T ->T : T ->U : U +>b9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(b9, Decl(assignmentCompatWithCallSignatures3.ts, 68, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 68, 9)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 68, 24)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 68, 44)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures3.ts, 68, 48)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 68, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 68, 24)) +>y : (arg2: { foo: string; bing: number; }) => U, Symbol(y, Decl(assignmentCompatWithCallSignatures3.ts, 68, 61)) +>arg2 : { foo: string; bing: number; }, Symbol(arg2, Decl(assignmentCompatWithCallSignatures3.ts, 68, 66)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithCallSignatures3.ts, 68, 73)) +>bing : number, Symbol(bing, Decl(assignmentCompatWithCallSignatures3.ts, 68, 86)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 68, 24)) +>r : T, Symbol(r, Decl(assignmentCompatWithCallSignatures3.ts, 68, 113)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 68, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures3.ts, 68, 24)) a9 = b9; // ok >a9 = b9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U ->a9 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->b9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U +>a9 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a9, Decl(assignmentCompatWithCallSignatures3.ts, 15, 3)) +>b9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(b9, Decl(assignmentCompatWithCallSignatures3.ts, 68, 3)) b9 = a9; // ok >b9 = a9 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->b9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U ->a9 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived +>b9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(b9, Decl(assignmentCompatWithCallSignatures3.ts, 68, 3)) +>a9 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a9, Decl(assignmentCompatWithCallSignatures3.ts, 15, 3)) var b10: (...x: T[]) => T; ->b10 : (...x: T[]) => T ->T : T ->Derived : Derived ->x : T[] ->T : T ->T : T +>b10 : (...x: T[]) => T, Symbol(b10, Decl(assignmentCompatWithCallSignatures3.ts, 71, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 71, 10)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>x : T[], Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 71, 29)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 71, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 71, 10)) a10 = b10; // ok >a10 = b10 : (...x: T[]) => T ->a10 : (...x: Derived[]) => Derived ->b10 : (...x: T[]) => T +>a10 : (...x: Derived[]) => Derived, Symbol(a10, Decl(assignmentCompatWithCallSignatures3.ts, 16, 3)) +>b10 : (...x: T[]) => T, Symbol(b10, Decl(assignmentCompatWithCallSignatures3.ts, 71, 3)) b10 = a10; // ok >b10 = a10 : (...x: Derived[]) => Derived ->b10 : (...x: T[]) => T ->a10 : (...x: Derived[]) => Derived +>b10 : (...x: T[]) => T, Symbol(b10, Decl(assignmentCompatWithCallSignatures3.ts, 71, 3)) +>a10 : (...x: Derived[]) => Derived, Symbol(a10, Decl(assignmentCompatWithCallSignatures3.ts, 16, 3)) var b11: (x: T, y: T) => T; ->b11 : (x: T, y: T) => T ->T : T ->Base : Base ->x : T ->T : T ->y : T ->T : T ->T : T +>b11 : (x: T, y: T) => T, Symbol(b11, Decl(assignmentCompatWithCallSignatures3.ts, 74, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 74, 10)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 74, 26)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 74, 10)) +>y : T, Symbol(y, Decl(assignmentCompatWithCallSignatures3.ts, 74, 31)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 74, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 74, 10)) a11 = b11; // ok >a11 = b11 : (x: T, y: T) => T ->a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base ->b11 : (x: T, y: T) => T +>a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(a11, Decl(assignmentCompatWithCallSignatures3.ts, 17, 3)) +>b11 : (x: T, y: T) => T, Symbol(b11, Decl(assignmentCompatWithCallSignatures3.ts, 74, 3)) b11 = a11; // ok >b11 = a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base ->b11 : (x: T, y: T) => T ->a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base +>b11 : (x: T, y: T) => T, Symbol(b11, Decl(assignmentCompatWithCallSignatures3.ts, 74, 3)) +>a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(a11, Decl(assignmentCompatWithCallSignatures3.ts, 17, 3)) var b12: >(x: Array, y: T) => Array; ->b12 : (x: Base[], y: T) => Derived[] ->T : T ->Array : T[] ->Base : Base ->x : Base[] ->Array : T[] ->Base : Base ->y : T ->T : T ->Array : T[] ->Derived : Derived +>b12 : (x: Base[], y: T) => Derived[], Symbol(b12, Decl(assignmentCompatWithCallSignatures3.ts, 77, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 77, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>x : Base[], Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 77, 33)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>y : T, Symbol(y, Decl(assignmentCompatWithCallSignatures3.ts, 77, 48)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 77, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) a12 = b12; // ok >a12 = b12 : (x: Base[], y: T) => Derived[] ->a12 : (x: Base[], y: Derived2[]) => Derived[] ->b12 : (x: Base[], y: T) => Derived[] +>a12 : (x: Base[], y: Derived2[]) => Derived[], Symbol(a12, Decl(assignmentCompatWithCallSignatures3.ts, 18, 3)) +>b12 : (x: Base[], y: T) => Derived[], Symbol(b12, Decl(assignmentCompatWithCallSignatures3.ts, 77, 3)) b12 = a12; // ok >b12 = a12 : (x: Base[], y: Derived2[]) => Derived[] ->b12 : (x: Base[], y: T) => Derived[] ->a12 : (x: Base[], y: Derived2[]) => Derived[] +>b12 : (x: Base[], y: T) => Derived[], Symbol(b12, Decl(assignmentCompatWithCallSignatures3.ts, 77, 3)) +>a12 : (x: Base[], y: Derived2[]) => Derived[], Symbol(a12, Decl(assignmentCompatWithCallSignatures3.ts, 18, 3)) var b13: >(x: Array, y: T) => T; ->b13 : (x: Base[], y: T) => T ->T : T ->Array : T[] ->Derived : Derived ->x : Base[] ->Array : T[] ->Base : Base ->y : T ->T : T ->T : T +>b13 : (x: Base[], y: T) => T, Symbol(b13, Decl(assignmentCompatWithCallSignatures3.ts, 80, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 80, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures3.ts, 2, 27)) +>x : Base[], Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 80, 36)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>y : T, Symbol(y, Decl(assignmentCompatWithCallSignatures3.ts, 80, 51)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 80, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 80, 10)) a13 = b13; // ok >a13 = b13 : (x: Base[], y: T) => T ->a13 : (x: Base[], y: Derived[]) => Derived[] ->b13 : (x: Base[], y: T) => T +>a13 : (x: Base[], y: Derived[]) => Derived[], Symbol(a13, Decl(assignmentCompatWithCallSignatures3.ts, 19, 3)) +>b13 : (x: Base[], y: T) => T, Symbol(b13, Decl(assignmentCompatWithCallSignatures3.ts, 80, 3)) b13 = a13; // ok >b13 = a13 : (x: Base[], y: Derived[]) => Derived[] ->b13 : (x: Base[], y: T) => T ->a13 : (x: Base[], y: Derived[]) => Derived[] +>b13 : (x: Base[], y: T) => T, Symbol(b13, Decl(assignmentCompatWithCallSignatures3.ts, 80, 3)) +>a13 : (x: Base[], y: Derived[]) => Derived[], Symbol(a13, Decl(assignmentCompatWithCallSignatures3.ts, 19, 3)) var b14: (x: { a: T; b: T }) => T; ->b14 : (x: { a: T; b: T; }) => T ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>b14 : (x: { a: T; b: T; }) => T, Symbol(b14, Decl(assignmentCompatWithCallSignatures3.ts, 83, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 83, 10)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 83, 13)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 83, 17)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 83, 10)) +>b : T, Symbol(b, Decl(assignmentCompatWithCallSignatures3.ts, 83, 23)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 83, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 83, 10)) a14 = b14; // ok >a14 = b14 : (x: { a: T; b: T; }) => T ->a14 : (x: { a: string; b: number; }) => Object ->b14 : (x: { a: T; b: T; }) => T +>a14 : (x: { a: string; b: number; }) => Object, Symbol(a14, Decl(assignmentCompatWithCallSignatures3.ts, 20, 3)) +>b14 : (x: { a: T; b: T; }) => T, Symbol(b14, Decl(assignmentCompatWithCallSignatures3.ts, 83, 3)) b14 = a14; // ok >b14 = a14 : (x: { a: string; b: number; }) => Object ->b14 : (x: { a: T; b: T; }) => T ->a14 : (x: { a: string; b: number; }) => Object +>b14 : (x: { a: T; b: T; }) => T, Symbol(b14, Decl(assignmentCompatWithCallSignatures3.ts, 83, 3)) +>a14 : (x: { a: string; b: number; }) => Object, Symbol(a14, Decl(assignmentCompatWithCallSignatures3.ts, 20, 3)) var b15: (x: T) => T[]; ->b15 : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>b15 : (x: T) => T[], Symbol(b15, Decl(assignmentCompatWithCallSignatures3.ts, 86, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 86, 10)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 86, 13)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 86, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 86, 10)) a15 = b15; // ok >a15 = b15 : (x: T) => T[] ->a15 : { (x: number): number[]; (x: string): string[]; } ->b15 : (x: T) => T[] +>a15 : { (x: number): number[]; (x: string): string[]; }, Symbol(a15, Decl(assignmentCompatWithCallSignatures3.ts, 21, 3)) +>b15 : (x: T) => T[], Symbol(b15, Decl(assignmentCompatWithCallSignatures3.ts, 86, 3)) b15 = a15; // ok >b15 = a15 : { (x: number): number[]; (x: string): string[]; } ->b15 : (x: T) => T[] ->a15 : { (x: number): number[]; (x: string): string[]; } +>b15 : (x: T) => T[], Symbol(b15, Decl(assignmentCompatWithCallSignatures3.ts, 86, 3)) +>a15 : { (x: number): number[]; (x: string): string[]; }, Symbol(a15, Decl(assignmentCompatWithCallSignatures3.ts, 21, 3)) var b16: (x: T) => number[]; ->b16 : (x: T) => number[] ->T : T ->Base : Base ->x : T ->T : T +>b16 : (x: T) => number[], Symbol(b16, Decl(assignmentCompatWithCallSignatures3.ts, 89, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 89, 10)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures3.ts, 0, 0)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 89, 26)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 89, 10)) a16 = b16; // ok >a16 = b16 : (x: T) => number[] ->a16 : { (x: T): number[]; (x: U): number[]; } ->b16 : (x: T) => number[] +>a16 : { (x: T): number[]; (x: U): number[]; }, Symbol(a16, Decl(assignmentCompatWithCallSignatures3.ts, 25, 3)) +>b16 : (x: T) => number[], Symbol(b16, Decl(assignmentCompatWithCallSignatures3.ts, 89, 3)) b16 = a16; // ok >b16 = a16 : { (x: T): number[]; (x: U): number[]; } ->b16 : (x: T) => number[] ->a16 : { (x: T): number[]; (x: U): number[]; } +>b16 : (x: T) => number[], Symbol(b16, Decl(assignmentCompatWithCallSignatures3.ts, 89, 3)) +>a16 : { (x: T): number[]; (x: U): number[]; }, Symbol(a16, Decl(assignmentCompatWithCallSignatures3.ts, 25, 3)) var b17: (x: (a: T) => T) => T[]; // ok ->b17 : (x: (a: T) => T) => T[] ->T : T ->x : (a: T) => T ->a : T ->T : T ->T : T ->T : T +>b17 : (x: (a: T) => T) => T[], Symbol(b17, Decl(assignmentCompatWithCallSignatures3.ts, 92, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 92, 10)) +>x : (a: T) => T, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 92, 13)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 92, 17)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 92, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 92, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 92, 10)) a17 = b17; // ok >a17 = b17 : (x: (a: T) => T) => T[] ->a17 : { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; } ->b17 : (x: (a: T) => T) => T[] +>a17 : { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; }, Symbol(a17, Decl(assignmentCompatWithCallSignatures3.ts, 29, 3)) +>b17 : (x: (a: T) => T) => T[], Symbol(b17, Decl(assignmentCompatWithCallSignatures3.ts, 92, 3)) b17 = a17; // ok >b17 = a17 : { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; } ->b17 : (x: (a: T) => T) => T[] ->a17 : { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; } +>b17 : (x: (a: T) => T) => T[], Symbol(b17, Decl(assignmentCompatWithCallSignatures3.ts, 92, 3)) +>a17 : { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; }, Symbol(a17, Decl(assignmentCompatWithCallSignatures3.ts, 29, 3)) var b18: (x: (a: T) => T) => T[]; ->b18 : (x: (a: T) => T) => T[] ->T : T ->x : (a: T) => T ->a : T ->T : T ->T : T ->T : T +>b18 : (x: (a: T) => T) => T[], Symbol(b18, Decl(assignmentCompatWithCallSignatures3.ts, 95, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 95, 10)) +>x : (a: T) => T, Symbol(x, Decl(assignmentCompatWithCallSignatures3.ts, 95, 13)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures3.ts, 95, 17)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 95, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 95, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures3.ts, 95, 10)) a18 = b18; // ok >a18 = b18 : (x: (a: T) => T) => T[] ->a18 : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; } ->b18 : (x: (a: T) => T) => T[] +>a18 : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }, Symbol(a18, Decl(assignmentCompatWithCallSignatures3.ts, 33, 3)) +>b18 : (x: (a: T) => T) => T[], Symbol(b18, Decl(assignmentCompatWithCallSignatures3.ts, 95, 3)) b18 = a18; // ok >b18 = a18 : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; } ->b18 : (x: (a: T) => T) => T[] ->a18 : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; } +>b18 : (x: (a: T) => T) => T[], Symbol(b18, Decl(assignmentCompatWithCallSignatures3.ts, 95, 3)) +>a18 : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }, Symbol(a18, Decl(assignmentCompatWithCallSignatures3.ts, 33, 3)) diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures5.types b/tests/baselines/reference/assignmentCompatWithCallSignatures5.types index 2652a2a4e68..0888e2b37e8 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures5.types +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures5.types @@ -2,379 +2,379 @@ // checking assignment compat for function types. No errors in this file class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures5.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithCallSignatures5.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures5.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures5.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithCallSignatures5.ts, 3, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(assignmentCompatWithCallSignatures5.ts, 3, 43)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures5.ts, 2, 27)) +>baz : string, Symbol(baz, Decl(assignmentCompatWithCallSignatures5.ts, 4, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(assignmentCompatWithCallSignatures5.ts, 4, 47)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures5.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(assignmentCompatWithCallSignatures5.ts, 5, 33)) var a: (x: T) => T[]; ->a : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : (x: T) => T[], Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 7, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 7, 8)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 7, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 7, 8)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 7, 8)) var a2: (x: T) => string[]; ->a2 : (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : (x: T) => string[], Symbol(a2, Decl(assignmentCompatWithCallSignatures5.ts, 8, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 8, 9)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 8, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 8, 9)) var a3: (x: T) => void; ->a3 : (x: T) => void ->T : T ->x : T ->T : T +>a3 : (x: T) => void, Symbol(a3, Decl(assignmentCompatWithCallSignatures5.ts, 9, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 9, 9)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 9, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 9, 9)) var a4: (x: T, y: U) => string; ->a4 : (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>a4 : (x: T, y: U) => string, Symbol(a4, Decl(assignmentCompatWithCallSignatures5.ts, 10, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 10, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 10, 11)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 10, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 10, 9)) +>y : U, Symbol(y, Decl(assignmentCompatWithCallSignatures5.ts, 10, 19)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 10, 11)) var a5: (x: (arg: T) => U) => T; ->a5 : (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : (x: (arg: T) => U) => T, Symbol(a5, Decl(assignmentCompatWithCallSignatures5.ts, 11, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 11, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 11, 11)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 11, 14)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures5.ts, 11, 18)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 11, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 11, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 11, 9)) var a6: (x: (arg: T) => Derived) => T; ->a6 : (x: (arg: T) => Derived) => T ->T : T ->Base : Base ->x : (arg: T) => Derived ->arg : T ->T : T ->Derived : Derived ->T : T +>a6 : (x: (arg: T) => Derived) => T, Symbol(a6, Decl(assignmentCompatWithCallSignatures5.ts, 12, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 12, 9)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures5.ts, 0, 0)) +>x : (arg: T) => Derived, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 12, 25)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures5.ts, 12, 29)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 12, 9)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures5.ts, 2, 27)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 12, 9)) var a11: (x: { foo: T }, y: { foo: T; bar: T }) => Base; ->a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->T : T ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: T; bar: T; } ->foo : T ->T : T ->bar : T ->T : T ->Base : Base +>a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(assignmentCompatWithCallSignatures5.ts, 13, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 13, 10)) +>x : { foo: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 13, 13)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithCallSignatures5.ts, 13, 17)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 13, 10)) +>y : { foo: T; bar: T; }, Symbol(y, Decl(assignmentCompatWithCallSignatures5.ts, 13, 27)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithCallSignatures5.ts, 13, 32)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 13, 10)) +>bar : T, Symbol(bar, Decl(assignmentCompatWithCallSignatures5.ts, 13, 40)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 13, 10)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures5.ts, 0, 0)) var a15: (x: { a: T; b: T }) => T[]; ->a15 : (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a15 : (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(assignmentCompatWithCallSignatures5.ts, 14, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 14, 10)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 14, 13)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 14, 17)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 14, 10)) +>b : T, Symbol(b, Decl(assignmentCompatWithCallSignatures5.ts, 14, 23)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 14, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 14, 10)) var a16: (x: { a: T; b: T }) => T[]; ->a16 : (x: { a: T; b: T; }) => T[] ->T : T ->Base : Base ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a16 : (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(assignmentCompatWithCallSignatures5.ts, 15, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 15, 10)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures5.ts, 0, 0)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 15, 26)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 15, 30)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 15, 10)) +>b : T, Symbol(b, Decl(assignmentCompatWithCallSignatures5.ts, 15, 36)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 15, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 15, 10)) var a17: { ->a17 : { (x: (a: T) => T): T[]; (x: (a: T) => T): T[]; } +>a17 : { (x: (a: T) => T): T[]; (x: (a: T) => T): T[]; }, Symbol(a17, Decl(assignmentCompatWithCallSignatures5.ts, 16, 3)) (x: (a: T) => T): T[]; ->T : T ->Derived : Derived ->x : (a: T) => T ->a : T ->T : T ->T : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 17, 5)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures5.ts, 2, 27)) +>x : (a: T) => T, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 17, 24)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 17, 28)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 17, 5)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 17, 5)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 17, 5)) (x: (a: T) => T): T[]; ->T : T ->Base : Base ->x : (a: T) => T ->a : T ->T : T ->T : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 18, 5)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures5.ts, 0, 0)) +>x : (a: T) => T, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 18, 21)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 18, 25)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 18, 5)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 18, 5)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 18, 5)) }; var a18: { ->a18 : { (x: { (a: T): T; (a: T): T; }): any[]; (x: { (a: T): T; (a: T): T; }): any[]; } +>a18 : { (x: { (a: T): T; (a: T): T; }): any[]; (x: { (a: T): T; (a: T): T; }): any[]; }, Symbol(a18, Decl(assignmentCompatWithCallSignatures5.ts, 20, 3)) (x: { ->x : { (a: T): T; (a: T): T; } +>x : { (a: T): T; (a: T): T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 21, 5)) (a: T): T; ->T : T ->Derived : Derived ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 22, 9)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures5.ts, 2, 27)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 22, 28)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 22, 9)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 22, 9)) (a: T): T; ->T : T ->Base : Base ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 23, 9)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures5.ts, 0, 0)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 23, 25)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 23, 9)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 23, 9)) }): any[]; (x: { ->x : { (a: T): T; (a: T): T; } +>x : { (a: T): T; (a: T): T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 25, 5)) (a: T): T; ->T : T ->Derived2 : Derived2 ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 26, 9)) +>Derived2 : Derived2, Symbol(Derived2, Decl(assignmentCompatWithCallSignatures5.ts, 3, 43)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 26, 29)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 26, 9)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 26, 9)) (a: T): T; ->T : T ->Base : Base ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 27, 9)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures5.ts, 0, 0)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 27, 25)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 27, 9)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 27, 9)) }): any[]; }; var b: (x: T) => T[]; ->b : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>b : (x: T) => T[], Symbol(b, Decl(assignmentCompatWithCallSignatures5.ts, 31, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 31, 8)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 31, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 31, 8)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 31, 8)) a = b; // ok >a = b : (x: T) => T[] ->a : (x: T) => T[] ->b : (x: T) => T[] +>a : (x: T) => T[], Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 7, 3)) +>b : (x: T) => T[], Symbol(b, Decl(assignmentCompatWithCallSignatures5.ts, 31, 3)) b = a; // ok >b = a : (x: T) => T[] ->b : (x: T) => T[] ->a : (x: T) => T[] +>b : (x: T) => T[], Symbol(b, Decl(assignmentCompatWithCallSignatures5.ts, 31, 3)) +>a : (x: T) => T[], Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 7, 3)) var b2: (x: T) => string[]; ->b2 : (x: T) => string[] ->T : T ->x : T ->T : T +>b2 : (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithCallSignatures5.ts, 34, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 34, 9)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 34, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 34, 9)) a2 = b2; // ok >a2 = b2 : (x: T) => string[] ->a2 : (x: T) => string[] ->b2 : (x: T) => string[] +>a2 : (x: T) => string[], Symbol(a2, Decl(assignmentCompatWithCallSignatures5.ts, 8, 3)) +>b2 : (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithCallSignatures5.ts, 34, 3)) b2 = a2; // ok >b2 = a2 : (x: T) => string[] ->b2 : (x: T) => string[] ->a2 : (x: T) => string[] +>b2 : (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithCallSignatures5.ts, 34, 3)) +>a2 : (x: T) => string[], Symbol(a2, Decl(assignmentCompatWithCallSignatures5.ts, 8, 3)) var b3: (x: T) => T; ->b3 : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>b3 : (x: T) => T, Symbol(b3, Decl(assignmentCompatWithCallSignatures5.ts, 37, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 37, 9)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 37, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 37, 9)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 37, 9)) a3 = b3; // ok >a3 = b3 : (x: T) => T ->a3 : (x: T) => void ->b3 : (x: T) => T +>a3 : (x: T) => void, Symbol(a3, Decl(assignmentCompatWithCallSignatures5.ts, 9, 3)) +>b3 : (x: T) => T, Symbol(b3, Decl(assignmentCompatWithCallSignatures5.ts, 37, 3)) b3 = a3; // ok >b3 = a3 : (x: T) => void ->b3 : (x: T) => T ->a3 : (x: T) => void +>b3 : (x: T) => T, Symbol(b3, Decl(assignmentCompatWithCallSignatures5.ts, 37, 3)) +>a3 : (x: T) => void, Symbol(a3, Decl(assignmentCompatWithCallSignatures5.ts, 9, 3)) var b4: (x: T, y: U) => string; ->b4 : (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>b4 : (x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithCallSignatures5.ts, 40, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 40, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 40, 11)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 40, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 40, 9)) +>y : U, Symbol(y, Decl(assignmentCompatWithCallSignatures5.ts, 40, 20)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 40, 11)) a4 = b4; // ok >a4 = b4 : (x: T, y: U) => string ->a4 : (x: T, y: U) => string ->b4 : (x: T, y: U) => string +>a4 : (x: T, y: U) => string, Symbol(a4, Decl(assignmentCompatWithCallSignatures5.ts, 10, 3)) +>b4 : (x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithCallSignatures5.ts, 40, 3)) b4 = a4; // ok >b4 = a4 : (x: T, y: U) => string ->b4 : (x: T, y: U) => string ->a4 : (x: T, y: U) => string +>b4 : (x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithCallSignatures5.ts, 40, 3)) +>a4 : (x: T, y: U) => string, Symbol(a4, Decl(assignmentCompatWithCallSignatures5.ts, 10, 3)) var b5: (x: (arg: T) => U) => T; ->b5 : (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>b5 : (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithCallSignatures5.ts, 43, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 43, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 43, 11)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 43, 15)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures5.ts, 43, 19)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 43, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 43, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 43, 9)) a5 = b5; // ok >a5 = b5 : (x: (arg: T) => U) => T ->a5 : (x: (arg: T) => U) => T ->b5 : (x: (arg: T) => U) => T +>a5 : (x: (arg: T) => U) => T, Symbol(a5, Decl(assignmentCompatWithCallSignatures5.ts, 11, 3)) +>b5 : (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithCallSignatures5.ts, 43, 3)) b5 = a5; // ok >b5 = a5 : (x: (arg: T) => U) => T ->b5 : (x: (arg: T) => U) => T ->a5 : (x: (arg: T) => U) => T +>b5 : (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithCallSignatures5.ts, 43, 3)) +>a5 : (x: (arg: T) => U) => T, Symbol(a5, Decl(assignmentCompatWithCallSignatures5.ts, 11, 3)) var b6: (x: (arg: T) => U) => T; ->b6 : (x: (arg: T) => U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>b6 : (x: (arg: T) => U) => T, Symbol(b6, Decl(assignmentCompatWithCallSignatures5.ts, 46, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 46, 9)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures5.ts, 0, 0)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 46, 24)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures5.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 46, 44)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures5.ts, 46, 48)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 46, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 46, 24)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 46, 9)) a6 = b6; // ok >a6 = b6 : (x: (arg: T) => U) => T ->a6 : (x: (arg: T) => Derived) => T ->b6 : (x: (arg: T) => U) => T +>a6 : (x: (arg: T) => Derived) => T, Symbol(a6, Decl(assignmentCompatWithCallSignatures5.ts, 12, 3)) +>b6 : (x: (arg: T) => U) => T, Symbol(b6, Decl(assignmentCompatWithCallSignatures5.ts, 46, 3)) b6 = a6; // ok >b6 = a6 : (x: (arg: T) => Derived) => T ->b6 : (x: (arg: T) => U) => T ->a6 : (x: (arg: T) => Derived) => T +>b6 : (x: (arg: T) => U) => T, Symbol(b6, Decl(assignmentCompatWithCallSignatures5.ts, 46, 3)) +>a6 : (x: (arg: T) => Derived) => T, Symbol(a6, Decl(assignmentCompatWithCallSignatures5.ts, 12, 3)) var b11: (x: { foo: T }, y: { foo: U; bar: U }) => Base; ->b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->T : T ->U : U ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: U; bar: U; } ->foo : U ->U : U ->bar : U ->U : U ->Base : Base +>b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithCallSignatures5.ts, 49, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 49, 10)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 49, 12)) +>x : { foo: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 49, 16)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithCallSignatures5.ts, 49, 20)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 49, 10)) +>y : { foo: U; bar: U; }, Symbol(y, Decl(assignmentCompatWithCallSignatures5.ts, 49, 30)) +>foo : U, Symbol(foo, Decl(assignmentCompatWithCallSignatures5.ts, 49, 35)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 49, 12)) +>bar : U, Symbol(bar, Decl(assignmentCompatWithCallSignatures5.ts, 49, 43)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 49, 12)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures5.ts, 0, 0)) a11 = b11; // ok >a11 = b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base +>a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(assignmentCompatWithCallSignatures5.ts, 13, 3)) +>b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithCallSignatures5.ts, 49, 3)) b11 = a11; // ok >b11 = a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base +>b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithCallSignatures5.ts, 49, 3)) +>a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(assignmentCompatWithCallSignatures5.ts, 13, 3)) var b15: (x: { a: U; b: V; }) => U[]; ->b15 : (x: { a: U; b: V; }) => U[] ->U : U ->V : V ->x : { a: U; b: V; } ->a : U ->U : U ->b : V ->V : V ->U : U +>b15 : (x: { a: U; b: V; }) => U[], Symbol(b15, Decl(assignmentCompatWithCallSignatures5.ts, 52, 3)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 52, 10)) +>V : V, Symbol(V, Decl(assignmentCompatWithCallSignatures5.ts, 52, 12)) +>x : { a: U; b: V; }, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 52, 16)) +>a : U, Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 52, 20)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 52, 10)) +>b : V, Symbol(b, Decl(assignmentCompatWithCallSignatures5.ts, 52, 26)) +>V : V, Symbol(V, Decl(assignmentCompatWithCallSignatures5.ts, 52, 12)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures5.ts, 52, 10)) a15 = b15; // ok, T = U, T = V >a15 = b15 : (x: { a: U; b: V; }) => U[] ->a15 : (x: { a: T; b: T; }) => T[] ->b15 : (x: { a: U; b: V; }) => U[] +>a15 : (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(assignmentCompatWithCallSignatures5.ts, 14, 3)) +>b15 : (x: { a: U; b: V; }) => U[], Symbol(b15, Decl(assignmentCompatWithCallSignatures5.ts, 52, 3)) b15 = a15; // ok >b15 = a15 : (x: { a: T; b: T; }) => T[] ->b15 : (x: { a: U; b: V; }) => U[] ->a15 : (x: { a: T; b: T; }) => T[] +>b15 : (x: { a: U; b: V; }) => U[], Symbol(b15, Decl(assignmentCompatWithCallSignatures5.ts, 52, 3)) +>a15 : (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(assignmentCompatWithCallSignatures5.ts, 14, 3)) var b16: (x: { a: T; b: T }) => T[]; ->b16 : (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>b16 : (x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithCallSignatures5.ts, 55, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 55, 10)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 55, 13)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 55, 17)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 55, 10)) +>b : T, Symbol(b, Decl(assignmentCompatWithCallSignatures5.ts, 55, 23)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 55, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 55, 10)) a15 = b16; // ok >a15 = b16 : (x: { a: T; b: T; }) => T[] ->a15 : (x: { a: T; b: T; }) => T[] ->b16 : (x: { a: T; b: T; }) => T[] +>a15 : (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(assignmentCompatWithCallSignatures5.ts, 14, 3)) +>b16 : (x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithCallSignatures5.ts, 55, 3)) b15 = a16; // ok >b15 = a16 : (x: { a: T; b: T; }) => T[] ->b15 : (x: { a: U; b: V; }) => U[] ->a16 : (x: { a: T; b: T; }) => T[] +>b15 : (x: { a: U; b: V; }) => U[], Symbol(b15, Decl(assignmentCompatWithCallSignatures5.ts, 52, 3)) +>a16 : (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(assignmentCompatWithCallSignatures5.ts, 15, 3)) var b17: (x: (a: T) => T) => T[]; ->b17 : (x: (a: T) => T) => T[] ->T : T ->x : (a: T) => T ->a : T ->T : T ->T : T ->T : T +>b17 : (x: (a: T) => T) => T[], Symbol(b17, Decl(assignmentCompatWithCallSignatures5.ts, 58, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 58, 10)) +>x : (a: T) => T, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 58, 13)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 58, 17)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 58, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 58, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 58, 10)) a17 = b17; // ok >a17 = b17 : (x: (a: T) => T) => T[] ->a17 : { (x: (a: T) => T): T[]; (x: (a: T) => T): T[]; } ->b17 : (x: (a: T) => T) => T[] +>a17 : { (x: (a: T) => T): T[]; (x: (a: T) => T): T[]; }, Symbol(a17, Decl(assignmentCompatWithCallSignatures5.ts, 16, 3)) +>b17 : (x: (a: T) => T) => T[], Symbol(b17, Decl(assignmentCompatWithCallSignatures5.ts, 58, 3)) b17 = a17; // ok >b17 = a17 : { (x: (a: T) => T): T[]; (x: (a: T) => T): T[]; } ->b17 : (x: (a: T) => T) => T[] ->a17 : { (x: (a: T) => T): T[]; (x: (a: T) => T): T[]; } +>b17 : (x: (a: T) => T) => T[], Symbol(b17, Decl(assignmentCompatWithCallSignatures5.ts, 58, 3)) +>a17 : { (x: (a: T) => T): T[]; (x: (a: T) => T): T[]; }, Symbol(a17, Decl(assignmentCompatWithCallSignatures5.ts, 16, 3)) var b18: (x: (a: T) => T) => any[]; ->b18 : (x: (a: T) => T) => any[] ->x : (a: T) => T ->T : T ->a : T ->T : T ->T : T +>b18 : (x: (a: T) => T) => any[], Symbol(b18, Decl(assignmentCompatWithCallSignatures5.ts, 61, 3)) +>x : (a: T) => T, Symbol(x, Decl(assignmentCompatWithCallSignatures5.ts, 61, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 61, 14)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures5.ts, 61, 17)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 61, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures5.ts, 61, 14)) a18 = b18; // ok >a18 = b18 : (x: (a: T) => T) => any[] ->a18 : { (x: { (a: T): T; (a: T): T; }): any[]; (x: { (a: T): T; (a: T): T; }): any[]; } ->b18 : (x: (a: T) => T) => any[] +>a18 : { (x: { (a: T): T; (a: T): T; }): any[]; (x: { (a: T): T; (a: T): T; }): any[]; }, Symbol(a18, Decl(assignmentCompatWithCallSignatures5.ts, 20, 3)) +>b18 : (x: (a: T) => T) => any[], Symbol(b18, Decl(assignmentCompatWithCallSignatures5.ts, 61, 3)) b18 = a18; // ok >b18 = a18 : { (x: { (a: T): T; (a: T): T; }): any[]; (x: { (a: T): T; (a: T): T; }): any[]; } ->b18 : (x: (a: T) => T) => any[] ->a18 : { (x: { (a: T): T; (a: T): T; }): any[]; (x: { (a: T): T; (a: T): T; }): any[]; } +>b18 : (x: (a: T) => T) => any[], Symbol(b18, Decl(assignmentCompatWithCallSignatures5.ts, 61, 3)) +>a18 : { (x: { (a: T): T; (a: T): T; }): any[]; (x: { (a: T): T; (a: T): T; }): any[]; }, Symbol(a18, Decl(assignmentCompatWithCallSignatures5.ts, 20, 3)) diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures6.types b/tests/baselines/reference/assignmentCompatWithCallSignatures6.types index b45f3357942..fcfe10039dd 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures6.types +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures6.types @@ -2,272 +2,272 @@ // checking assignment compatibility relations for function types. All valid class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithCallSignatures6.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures6.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithCallSignatures6.ts, 3, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(assignmentCompatWithCallSignatures6.ts, 3, 43)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures6.ts, 2, 27)) +>baz : string, Symbol(baz, Decl(assignmentCompatWithCallSignatures6.ts, 4, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(assignmentCompatWithCallSignatures6.ts, 4, 47)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(assignmentCompatWithCallSignatures6.ts, 5, 33)) interface A { ->A : A +>A : A, Symbol(A, Decl(assignmentCompatWithCallSignatures6.ts, 5, 49)) a: (x: T) => T[]; ->a : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : (x: T) => T[], Symbol(a, Decl(assignmentCompatWithCallSignatures6.ts, 7, 13)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 8, 8)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 8, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 8, 8)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 8, 8)) a2: (x: T) => string[]; ->a2 : (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : (x: T) => string[], Symbol(a2, Decl(assignmentCompatWithCallSignatures6.ts, 8, 24)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 9, 9)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 9, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 9, 9)) a3: (x: T) => void; ->a3 : (x: T) => void ->T : T ->x : T ->T : T +>a3 : (x: T) => void, Symbol(a3, Decl(assignmentCompatWithCallSignatures6.ts, 9, 30)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 10, 9)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 10, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 10, 9)) a4: (x: T, y: U) => string; ->a4 : (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>a4 : (x: T, y: U) => string, Symbol(a4, Decl(assignmentCompatWithCallSignatures6.ts, 10, 26)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 11, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 11, 11)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 11, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 11, 9)) +>y : U, Symbol(y, Decl(assignmentCompatWithCallSignatures6.ts, 11, 19)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 11, 11)) a5: (x: (arg: T) => U) => T; ->a5 : (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : (x: (arg: T) => U) => T, Symbol(a5, Decl(assignmentCompatWithCallSignatures6.ts, 11, 36)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 12, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 12, 11)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 12, 14)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures6.ts, 12, 18)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 12, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 12, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 12, 9)) a6: (x: (arg: T) => Derived) => T; ->a6 : (x: (arg: T) => Derived) => T ->T : T ->Base : Base ->x : (arg: T) => Derived ->arg : T ->T : T ->Derived : Derived ->T : T +>a6 : (x: (arg: T) => Derived) => T, Symbol(a6, Decl(assignmentCompatWithCallSignatures6.ts, 12, 37)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 13, 9)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0)) +>x : (arg: T) => Derived, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 13, 25)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures6.ts, 13, 29)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 13, 9)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures6.ts, 2, 27)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 13, 9)) a11: (x: { foo: T }, y: { foo: T; bar: T }) => Base; ->a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->T : T ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: T; bar: T; } ->foo : T ->T : T ->bar : T ->T : T ->Base : Base +>a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(assignmentCompatWithCallSignatures6.ts, 13, 54)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 14, 10)) +>x : { foo: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 14, 13)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithCallSignatures6.ts, 14, 17)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 14, 10)) +>y : { foo: T; bar: T; }, Symbol(y, Decl(assignmentCompatWithCallSignatures6.ts, 14, 27)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithCallSignatures6.ts, 14, 32)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 14, 10)) +>bar : T, Symbol(bar, Decl(assignmentCompatWithCallSignatures6.ts, 14, 40)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 14, 10)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0)) a15: (x: { a: T; b: T }) => T[]; ->a15 : (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a15 : (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(assignmentCompatWithCallSignatures6.ts, 14, 59)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 15, 10)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 15, 13)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures6.ts, 15, 17)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 15, 10)) +>b : T, Symbol(b, Decl(assignmentCompatWithCallSignatures6.ts, 15, 23)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 15, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 15, 10)) a16: (x: { a: T; b: T }) => T[]; ->a16 : (x: { a: T; b: T; }) => T[] ->T : T ->Base : Base ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a16 : (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(assignmentCompatWithCallSignatures6.ts, 15, 39)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 16, 10)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 16, 26)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures6.ts, 16, 30)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 16, 10)) +>b : T, Symbol(b, Decl(assignmentCompatWithCallSignatures6.ts, 16, 36)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 16, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 16, 10)) } var x: A; ->x : A ->A : A +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>A : A, Symbol(A, Decl(assignmentCompatWithCallSignatures6.ts, 5, 49)) var b: (x: T) => T[]; ->b : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>b : (x: T) => T[], Symbol(b, Decl(assignmentCompatWithCallSignatures6.ts, 21, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 21, 8)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 21, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 21, 8)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 21, 8)) x.a = b; >x.a = b : (x: T) => T[] ->x.a : (x: T) => T[] ->x : A ->a : (x: T) => T[] ->b : (x: T) => T[] +>x.a : (x: T) => T[], Symbol(A.a, Decl(assignmentCompatWithCallSignatures6.ts, 7, 13)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a : (x: T) => T[], Symbol(A.a, Decl(assignmentCompatWithCallSignatures6.ts, 7, 13)) +>b : (x: T) => T[], Symbol(b, Decl(assignmentCompatWithCallSignatures6.ts, 21, 3)) b = x.a; >b = x.a : (x: T) => T[] ->b : (x: T) => T[] ->x.a : (x: T) => T[] ->x : A ->a : (x: T) => T[] +>b : (x: T) => T[], Symbol(b, Decl(assignmentCompatWithCallSignatures6.ts, 21, 3)) +>x.a : (x: T) => T[], Symbol(A.a, Decl(assignmentCompatWithCallSignatures6.ts, 7, 13)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a : (x: T) => T[], Symbol(A.a, Decl(assignmentCompatWithCallSignatures6.ts, 7, 13)) var b2: (x: T) => string[]; ->b2 : (x: T) => string[] ->T : T ->x : T ->T : T +>b2 : (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithCallSignatures6.ts, 24, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 24, 9)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 24, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 24, 9)) x.a2 = b2; >x.a2 = b2 : (x: T) => string[] ->x.a2 : (x: T) => string[] ->x : A ->a2 : (x: T) => string[] ->b2 : (x: T) => string[] +>x.a2 : (x: T) => string[], Symbol(A.a2, Decl(assignmentCompatWithCallSignatures6.ts, 8, 24)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a2 : (x: T) => string[], Symbol(A.a2, Decl(assignmentCompatWithCallSignatures6.ts, 8, 24)) +>b2 : (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithCallSignatures6.ts, 24, 3)) b2 = x.a2; >b2 = x.a2 : (x: T) => string[] ->b2 : (x: T) => string[] ->x.a2 : (x: T) => string[] ->x : A ->a2 : (x: T) => string[] +>b2 : (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithCallSignatures6.ts, 24, 3)) +>x.a2 : (x: T) => string[], Symbol(A.a2, Decl(assignmentCompatWithCallSignatures6.ts, 8, 24)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a2 : (x: T) => string[], Symbol(A.a2, Decl(assignmentCompatWithCallSignatures6.ts, 8, 24)) var b3: (x: T) => T; ->b3 : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>b3 : (x: T) => T, Symbol(b3, Decl(assignmentCompatWithCallSignatures6.ts, 27, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 27, 9)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 27, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 27, 9)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 27, 9)) x.a3 = b3; >x.a3 = b3 : (x: T) => T ->x.a3 : (x: T) => void ->x : A ->a3 : (x: T) => void ->b3 : (x: T) => T +>x.a3 : (x: T) => void, Symbol(A.a3, Decl(assignmentCompatWithCallSignatures6.ts, 9, 30)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a3 : (x: T) => void, Symbol(A.a3, Decl(assignmentCompatWithCallSignatures6.ts, 9, 30)) +>b3 : (x: T) => T, Symbol(b3, Decl(assignmentCompatWithCallSignatures6.ts, 27, 3)) b3 = x.a3; >b3 = x.a3 : (x: T) => void ->b3 : (x: T) => T ->x.a3 : (x: T) => void ->x : A ->a3 : (x: T) => void +>b3 : (x: T) => T, Symbol(b3, Decl(assignmentCompatWithCallSignatures6.ts, 27, 3)) +>x.a3 : (x: T) => void, Symbol(A.a3, Decl(assignmentCompatWithCallSignatures6.ts, 9, 30)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a3 : (x: T) => void, Symbol(A.a3, Decl(assignmentCompatWithCallSignatures6.ts, 9, 30)) var b4: (x: T, y: U) => string; ->b4 : (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>b4 : (x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithCallSignatures6.ts, 30, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 30, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 30, 11)) +>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 30, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 30, 9)) +>y : U, Symbol(y, Decl(assignmentCompatWithCallSignatures6.ts, 30, 20)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 30, 11)) x.a4 = b4; >x.a4 = b4 : (x: T, y: U) => string ->x.a4 : (x: T, y: U) => string ->x : A ->a4 : (x: T, y: U) => string ->b4 : (x: T, y: U) => string +>x.a4 : (x: T, y: U) => string, Symbol(A.a4, Decl(assignmentCompatWithCallSignatures6.ts, 10, 26)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a4 : (x: T, y: U) => string, Symbol(A.a4, Decl(assignmentCompatWithCallSignatures6.ts, 10, 26)) +>b4 : (x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithCallSignatures6.ts, 30, 3)) b4 = x.a4; >b4 = x.a4 : (x: T, y: U) => string ->b4 : (x: T, y: U) => string ->x.a4 : (x: T, y: U) => string ->x : A ->a4 : (x: T, y: U) => string +>b4 : (x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithCallSignatures6.ts, 30, 3)) +>x.a4 : (x: T, y: U) => string, Symbol(A.a4, Decl(assignmentCompatWithCallSignatures6.ts, 10, 26)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a4 : (x: T, y: U) => string, Symbol(A.a4, Decl(assignmentCompatWithCallSignatures6.ts, 10, 26)) var b5: (x: (arg: T) => U) => T; ->b5 : (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>b5 : (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithCallSignatures6.ts, 33, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 33, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 33, 11)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 33, 15)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures6.ts, 33, 19)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 33, 9)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 33, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 33, 9)) x.a5 = b5; >x.a5 = b5 : (x: (arg: T) => U) => T ->x.a5 : (x: (arg: T) => U) => T ->x : A ->a5 : (x: (arg: T) => U) => T ->b5 : (x: (arg: T) => U) => T +>x.a5 : (x: (arg: T) => U) => T, Symbol(A.a5, Decl(assignmentCompatWithCallSignatures6.ts, 11, 36)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a5 : (x: (arg: T) => U) => T, Symbol(A.a5, Decl(assignmentCompatWithCallSignatures6.ts, 11, 36)) +>b5 : (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithCallSignatures6.ts, 33, 3)) b5 = x.a5; >b5 = x.a5 : (x: (arg: T) => U) => T ->b5 : (x: (arg: T) => U) => T ->x.a5 : (x: (arg: T) => U) => T ->x : A ->a5 : (x: (arg: T) => U) => T +>b5 : (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithCallSignatures6.ts, 33, 3)) +>x.a5 : (x: (arg: T) => U) => T, Symbol(A.a5, Decl(assignmentCompatWithCallSignatures6.ts, 11, 36)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a5 : (x: (arg: T) => U) => T, Symbol(A.a5, Decl(assignmentCompatWithCallSignatures6.ts, 11, 36)) var b11: (x: { foo: T }, y: { foo: U; bar: U }) => Base; ->b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->T : T ->U : U ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: U; bar: U; } ->foo : U ->U : U ->bar : U ->U : U ->Base : Base +>b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithCallSignatures6.ts, 36, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 36, 10)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 36, 12)) +>x : { foo: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 36, 16)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithCallSignatures6.ts, 36, 20)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 36, 10)) +>y : { foo: U; bar: U; }, Symbol(y, Decl(assignmentCompatWithCallSignatures6.ts, 36, 30)) +>foo : U, Symbol(foo, Decl(assignmentCompatWithCallSignatures6.ts, 36, 35)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 36, 12)) +>bar : U, Symbol(bar, Decl(assignmentCompatWithCallSignatures6.ts, 36, 43)) +>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 36, 12)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0)) x.a11 = b11; >x.a11 = b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->x.a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->x : A ->a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base +>x.a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(A.a11, Decl(assignmentCompatWithCallSignatures6.ts, 13, 54)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(A.a11, Decl(assignmentCompatWithCallSignatures6.ts, 13, 54)) +>b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithCallSignatures6.ts, 36, 3)) b11 = x.a11; >b11 = x.a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->x.a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->x : A ->a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base +>b11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithCallSignatures6.ts, 36, 3)) +>x.a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(A.a11, Decl(assignmentCompatWithCallSignatures6.ts, 13, 54)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(A.a11, Decl(assignmentCompatWithCallSignatures6.ts, 13, 54)) var b16: (x: { a: T; b: T }) => T[]; ->b16 : (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>b16 : (x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithCallSignatures6.ts, 39, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 39, 10)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 39, 13)) +>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures6.ts, 39, 17)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 39, 10)) +>b : T, Symbol(b, Decl(assignmentCompatWithCallSignatures6.ts, 39, 23)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 39, 10)) +>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 39, 10)) x.a16 = b16; >x.a16 = b16 : (x: { a: T; b: T; }) => T[] ->x.a16 : (x: { a: T; b: T; }) => T[] ->x : A ->a16 : (x: { a: T; b: T; }) => T[] ->b16 : (x: { a: T; b: T; }) => T[] +>x.a16 : (x: { a: T; b: T; }) => T[], Symbol(A.a16, Decl(assignmentCompatWithCallSignatures6.ts, 15, 39)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a16 : (x: { a: T; b: T; }) => T[], Symbol(A.a16, Decl(assignmentCompatWithCallSignatures6.ts, 15, 39)) +>b16 : (x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithCallSignatures6.ts, 39, 3)) b16 = x.a16; >b16 = x.a16 : (x: { a: T; b: T; }) => T[] ->b16 : (x: { a: T; b: T; }) => T[] ->x.a16 : (x: { a: T; b: T; }) => T[] ->x : A ->a16 : (x: { a: T; b: T; }) => T[] +>b16 : (x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithCallSignatures6.ts, 39, 3)) +>x.a16 : (x: { a: T; b: T; }) => T[], Symbol(A.a16, Decl(assignmentCompatWithCallSignatures6.ts, 15, 39)) +>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3)) +>a16 : (x: { a: T; b: T; }) => T[], Symbol(A.a16, Decl(assignmentCompatWithCallSignatures6.ts, 15, 39)) diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures3.types b/tests/baselines/reference/assignmentCompatWithConstructSignatures3.types index 807f31b0e6e..3ae4e4889a0 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures3.types +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures3.types @@ -2,564 +2,564 @@ // checking assignment compatibility relations for function types. All of these are valid. class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithConstructSignatures3.ts, 3, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(assignmentCompatWithConstructSignatures3.ts, 3, 43)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>baz : string, Symbol(baz, Decl(assignmentCompatWithConstructSignatures3.ts, 4, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(assignmentCompatWithConstructSignatures3.ts, 4, 47)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(assignmentCompatWithConstructSignatures3.ts, 5, 33)) var a: new (x: number) => number[]; ->a : new (x: number) => number[] ->x : number +>a : new (x: number) => number[], Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 7, 3)) +>x : number, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 7, 12)) var a2: new (x: number) => string[]; ->a2 : new (x: number) => string[] ->x : number +>a2 : new (x: number) => string[], Symbol(a2, Decl(assignmentCompatWithConstructSignatures3.ts, 8, 3)) +>x : number, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 8, 13)) var a3: new (x: number) => void; ->a3 : new (x: number) => void ->x : number +>a3 : new (x: number) => void, Symbol(a3, Decl(assignmentCompatWithConstructSignatures3.ts, 9, 3)) +>x : number, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 9, 13)) var a4: new (x: string, y: number) => string; ->a4 : new (x: string, y: number) => string ->x : string ->y : number +>a4 : new (x: string, y: number) => string, Symbol(a4, Decl(assignmentCompatWithConstructSignatures3.ts, 10, 3)) +>x : string, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 10, 13)) +>y : number, Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 10, 23)) var a5: new (x: (arg: string) => number) => string; ->a5 : new (x: (arg: string) => number) => string ->x : (arg: string) => number ->arg : string +>a5 : new (x: (arg: string) => number) => string, Symbol(a5, Decl(assignmentCompatWithConstructSignatures3.ts, 11, 3)) +>x : (arg: string) => number, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 11, 13)) +>arg : string, Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 11, 17)) var a6: new (x: (arg: Base) => Derived) => Base; ->a6 : new (x: (arg: Base) => Derived) => Base ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->Base : Base +>a6 : new (x: (arg: Base) => Derived) => Base, Symbol(a6, Decl(assignmentCompatWithConstructSignatures3.ts, 12, 3)) +>x : (arg: Base) => Derived, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 12, 13)) +>arg : Base, Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 12, 17)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) var a7: new (x: (arg: Base) => Derived) => (r: Base) => Derived; ->a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(a7, Decl(assignmentCompatWithConstructSignatures3.ts, 13, 3)) +>x : (arg: Base) => Derived, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 13, 13)) +>arg : Base, Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 13, 17)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>r : Base, Symbol(r, Decl(assignmentCompatWithConstructSignatures3.ts, 13, 44)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) var a8: new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; ->a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->y : (arg2: Base) => Derived ->arg2 : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a8, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 3)) +>x : (arg: Base) => Derived, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 13)) +>arg : Base, Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 17)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>y : (arg2: Base) => Derived, Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 39)) +>arg2 : Base, Symbol(arg2, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 44)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>r : Base, Symbol(r, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 72)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) var a9: new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; ->a9 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->y : (arg2: Base) => Derived ->arg2 : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a9 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a9, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 3)) +>x : (arg: Base) => Derived, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 13)) +>arg : Base, Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 17)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>y : (arg2: Base) => Derived, Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 39)) +>arg2 : Base, Symbol(arg2, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 44)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>r : Base, Symbol(r, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 72)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) var a10: new (...x: Derived[]) => Derived; ->a10 : new (...x: Derived[]) => Derived ->x : Derived[] ->Derived : Derived ->Derived : Derived +>a10 : new (...x: Derived[]) => Derived, Symbol(a10, Decl(assignmentCompatWithConstructSignatures3.ts, 16, 3)) +>x : Derived[], Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 16, 14)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) var a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base ->x : { foo: string; } ->foo : string ->y : { foo: string; bar: string; } ->foo : string ->bar : string ->Base : Base +>a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(a11, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 3)) +>x : { foo: string; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 14)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 18)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 33)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 38)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 51)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) var a12: new (x: Array, y: Array) => Array; ->a12 : new (x: Base[], y: Derived2[]) => Derived[] ->x : Base[] ->Array : T[] ->Base : Base ->y : Derived2[] ->Array : T[] ->Derived2 : Derived2 ->Array : T[] ->Derived : Derived +>a12 : new (x: Base[], y: Derived2[]) => Derived[], Symbol(a12, Decl(assignmentCompatWithConstructSignatures3.ts, 18, 3)) +>x : Base[], Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 18, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>y : Derived2[], Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 18, 29)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived2 : Derived2, Symbol(Derived2, Decl(assignmentCompatWithConstructSignatures3.ts, 3, 43)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) var a13: new (x: Array, y: Array) => Array; ->a13 : new (x: Base[], y: Derived[]) => Derived[] ->x : Base[] ->Array : T[] ->Base : Base ->y : Derived[] ->Array : T[] ->Derived : Derived ->Array : T[] ->Derived : Derived +>a13 : new (x: Base[], y: Derived[]) => Derived[], Symbol(a13, Decl(assignmentCompatWithConstructSignatures3.ts, 19, 3)) +>x : Base[], Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 19, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>y : Derived[], Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 19, 29)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) var a14: new (x: { a: string; b: number }) => Object; ->a14 : new (x: { a: string; b: number; }) => Object ->x : { a: string; b: number; } ->a : string ->b : number ->Object : Object +>a14 : new (x: { a: string; b: number; }) => Object, Symbol(a14, Decl(assignmentCompatWithConstructSignatures3.ts, 20, 3)) +>x : { a: string; b: number; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 20, 14)) +>a : string, Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 20, 18)) +>b : number, Symbol(b, Decl(assignmentCompatWithConstructSignatures3.ts, 20, 29)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var a15: { ->a15 : { new (x: number): number[]; new (x: string): string[]; } +>a15 : { new (x: number): number[]; new (x: string): string[]; }, Symbol(a15, Decl(assignmentCompatWithConstructSignatures3.ts, 21, 3)) new (x: number): number[]; ->x : number +>x : number, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 22, 9)) new (x: string): string[]; ->x : string +>x : string, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 23, 9)) } var a16: { ->a16 : { new (x: T): number[]; new (x: U): number[]; } +>a16 : { new (x: T): number[]; new (x: U): number[]; }, Symbol(a16, Decl(assignmentCompatWithConstructSignatures3.ts, 25, 3)) new (x: T): number[]; ->T : T ->Derived : Derived ->x : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 26, 9)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 26, 28)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 26, 9)) new (x: U): number[]; ->U : U ->Base : Base ->x : U ->U : U +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 27, 9)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>x : U, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 27, 25)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 27, 9)) } var a17: { ->a17 : { new (x: new (a: number) => number): number[]; new (x: new (a: string) => string): string[]; } +>a17 : { new (x: new (a: number) => number): number[]; new (x: new (a: string) => string): string[]; }, Symbol(a17, Decl(assignmentCompatWithConstructSignatures3.ts, 29, 3)) new (x: new (a: number) => number): number[]; ->x : new (a: number) => number ->a : number +>x : new (a: number) => number, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 30, 9)) +>a : number, Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 30, 17)) new (x: new (a: string) => string): string[]; ->x : new (a: string) => string ->a : string +>x : new (a: string) => string, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 31, 9)) +>a : string, Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 31, 17)) }; var a18: { ->a18 : { new (x: { new (a: number): number; new (a: string): string; }): any[]; new (x: { new (a: boolean): boolean; new (a: Date): Date; }): any[]; } +>a18 : { new (x: { new (a: number): number; new (a: string): string; }): any[]; new (x: { new (a: boolean): boolean; new (a: Date): Date; }): any[]; }, Symbol(a18, Decl(assignmentCompatWithConstructSignatures3.ts, 33, 3)) new (x: { ->x : { new (a: number): number; new (a: string): string; } +>x : { new (a: number): number; new (a: string): string; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 34, 9)) new (a: number): number; ->a : number +>a : number, Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 35, 13)) new (a: string): string; ->a : string +>a : string, Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 36, 13)) }): any[]; new (x: { ->x : { new (a: boolean): boolean; new (a: Date): Date; } +>x : { new (a: boolean): boolean; new (a: Date): Date; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 38, 9)) new (a: boolean): boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 39, 13)) new (a: Date): Date; ->a : Date ->Date : Date ->Date : Date +>a : Date, Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 40, 13)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) }): any[]; } var b: new (x: T) => T[]; ->b : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>b : new (x: T) => T[], Symbol(b, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 12)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 12)) a = b; // ok >a = b : new (x: T) => T[] ->a : new (x: number) => number[] ->b : new (x: T) => T[] +>a : new (x: number) => number[], Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 7, 3)) +>b : new (x: T) => T[], Symbol(b, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 3)) b = a; // ok >b = a : new (x: number) => number[] ->b : new (x: T) => T[] ->a : new (x: number) => number[] +>b : new (x: T) => T[], Symbol(b, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 3)) +>a : new (x: number) => number[], Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 7, 3)) var b2: new (x: T) => string[]; ->b2 : new (x: T) => string[] ->T : T ->x : T ->T : T +>b2 : new (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithConstructSignatures3.ts, 47, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 47, 13)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 47, 16)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 47, 13)) a2 = b2; // ok >a2 = b2 : new (x: T) => string[] ->a2 : new (x: number) => string[] ->b2 : new (x: T) => string[] +>a2 : new (x: number) => string[], Symbol(a2, Decl(assignmentCompatWithConstructSignatures3.ts, 8, 3)) +>b2 : new (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithConstructSignatures3.ts, 47, 3)) b2 = a2; // ok >b2 = a2 : new (x: number) => string[] ->b2 : new (x: T) => string[] ->a2 : new (x: number) => string[] +>b2 : new (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithConstructSignatures3.ts, 47, 3)) +>a2 : new (x: number) => string[], Symbol(a2, Decl(assignmentCompatWithConstructSignatures3.ts, 8, 3)) var b3: new (x: T) => T; ->b3 : new (x: T) => T ->T : T ->x : T ->T : T ->T : T +>b3 : new (x: T) => T, Symbol(b3, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 13)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 16)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 13)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 13)) a3 = b3; // ok >a3 = b3 : new (x: T) => T ->a3 : new (x: number) => void ->b3 : new (x: T) => T +>a3 : new (x: number) => void, Symbol(a3, Decl(assignmentCompatWithConstructSignatures3.ts, 9, 3)) +>b3 : new (x: T) => T, Symbol(b3, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 3)) b3 = a3; // ok >b3 = a3 : new (x: number) => void ->b3 : new (x: T) => T ->a3 : new (x: number) => void +>b3 : new (x: T) => T, Symbol(b3, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 3)) +>a3 : new (x: number) => void, Symbol(a3, Decl(assignmentCompatWithConstructSignatures3.ts, 9, 3)) var b4: new (x: T, y: U) => T; ->b4 : new (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>b4 : new (x: T, y: U) => T, Symbol(b4, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 15)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 19)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 13)) +>y : U, Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 24)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 13)) a4 = b4; // ok >a4 = b4 : new (x: T, y: U) => T ->a4 : new (x: string, y: number) => string ->b4 : new (x: T, y: U) => T +>a4 : new (x: string, y: number) => string, Symbol(a4, Decl(assignmentCompatWithConstructSignatures3.ts, 10, 3)) +>b4 : new (x: T, y: U) => T, Symbol(b4, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 3)) b4 = a4; // ok >b4 = a4 : new (x: string, y: number) => string ->b4 : new (x: T, y: U) => T ->a4 : new (x: string, y: number) => string +>b4 : new (x: T, y: U) => T, Symbol(b4, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 3)) +>a4 : new (x: string, y: number) => string, Symbol(a4, Decl(assignmentCompatWithConstructSignatures3.ts, 10, 3)) var b5: new (x: (arg: T) => U) => T; ->b5 : new (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>b5 : new (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 15)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 19)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 23)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 13)) a5 = b5; // ok >a5 = b5 : new (x: (arg: T) => U) => T ->a5 : new (x: (arg: string) => number) => string ->b5 : new (x: (arg: T) => U) => T +>a5 : new (x: (arg: string) => number) => string, Symbol(a5, Decl(assignmentCompatWithConstructSignatures3.ts, 11, 3)) +>b5 : new (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 3)) b5 = a5; // ok >b5 = a5 : new (x: (arg: string) => number) => string ->b5 : new (x: (arg: T) => U) => T ->a5 : new (x: (arg: string) => number) => string +>b5 : new (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 3)) +>a5 : new (x: (arg: string) => number) => string, Symbol(a5, Decl(assignmentCompatWithConstructSignatures3.ts, 11, 3)) var b6: new (x: (arg: T) => U) => T; ->b6 : new (x: (arg: T) => U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>b6 : new (x: (arg: T) => U) => T, Symbol(b6, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 28)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 48)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 52)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 28)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 13)) a6 = b6; // ok >a6 = b6 : new (x: (arg: T) => U) => T ->a6 : new (x: (arg: Base) => Derived) => Base ->b6 : new (x: (arg: T) => U) => T +>a6 : new (x: (arg: Base) => Derived) => Base, Symbol(a6, Decl(assignmentCompatWithConstructSignatures3.ts, 12, 3)) +>b6 : new (x: (arg: T) => U) => T, Symbol(b6, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 3)) b6 = a6; // ok >b6 = a6 : new (x: (arg: Base) => Derived) => Base ->b6 : new (x: (arg: T) => U) => T ->a6 : new (x: (arg: Base) => Derived) => Base +>b6 : new (x: (arg: T) => U) => T, Symbol(b6, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 3)) +>a6 : new (x: (arg: Base) => Derived) => Base, Symbol(a6, Decl(assignmentCompatWithConstructSignatures3.ts, 12, 3)) var b7: new (x: (arg: T) => U) => (r: T) => U; ->b7 : new (x: (arg: T) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->r : T ->T : T ->U : U +>b7 : new (x: (arg: T) => U) => (r: T) => U, Symbol(b7, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 28)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 48)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 52)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 28)) +>r : T, Symbol(r, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 70)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 28)) a7 = b7; // ok >a7 = b7 : new (x: (arg: T) => U) => (r: T) => U ->a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived ->b7 : new (x: (arg: T) => U) => (r: T) => U +>a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(a7, Decl(assignmentCompatWithConstructSignatures3.ts, 13, 3)) +>b7 : new (x: (arg: T) => U) => (r: T) => U, Symbol(b7, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 3)) b7 = a7; // ok >b7 = a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived ->b7 : new (x: (arg: T) => U) => (r: T) => U ->a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived +>b7 : new (x: (arg: T) => U) => (r: T) => U, Symbol(b7, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 3)) +>a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(a7, Decl(assignmentCompatWithConstructSignatures3.ts, 13, 3)) var b8: new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U; ->b8 : new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->y : (arg2: T) => U ->arg2 : T ->T : T ->U : U ->r : T ->T : T ->U : U +>b8 : new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(b8, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 28)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 48)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 52)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 28)) +>y : (arg2: T) => U, Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 65)) +>arg2 : T, Symbol(arg2, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 70)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 28)) +>r : T, Symbol(r, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 89)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 28)) a8 = b8; // ok >a8 = b8 : new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U ->a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->b8 : new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U +>a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a8, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 3)) +>b8 : new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(b8, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 3)) b8 = a8; // ok >b8 = a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->b8 : new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U ->a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived +>b8 : new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(b8, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 3)) +>a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a8, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 3)) var b9: new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; ->b9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->y : (arg2: { foo: string; bing: number; }) => U ->arg2 : { foo: string; bing: number; } ->foo : string ->bing : number ->U : U ->r : T ->T : T ->U : U +>b9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(b9, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 28)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 48)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 52)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 28)) +>y : (arg2: { foo: string; bing: number; }) => U, Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 65)) +>arg2 : { foo: string; bing: number; }, Symbol(arg2, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 70)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 77)) +>bing : number, Symbol(bing, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 90)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 28)) +>r : T, Symbol(r, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 117)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 28)) a9 = b9; // ok >a9 = b9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U ->a9 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->b9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U +>a9 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a9, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 3)) +>b9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(b9, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 3)) b9 = a9; // ok >b9 = a9 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->b9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U ->a9 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived +>b9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(b9, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 3)) +>a9 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a9, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 3)) var b10: new (...x: T[]) => T; ->b10 : new (...x: T[]) => T ->T : T ->Derived : Derived ->x : T[] ->T : T ->T : T +>b10 : new (...x: T[]) => T, Symbol(b10, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 14)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>x : T[], Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 33)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 14)) a10 = b10; // ok >a10 = b10 : new (...x: T[]) => T ->a10 : new (...x: Derived[]) => Derived ->b10 : new (...x: T[]) => T +>a10 : new (...x: Derived[]) => Derived, Symbol(a10, Decl(assignmentCompatWithConstructSignatures3.ts, 16, 3)) +>b10 : new (...x: T[]) => T, Symbol(b10, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 3)) b10 = a10; // ok >b10 = a10 : new (...x: Derived[]) => Derived ->b10 : new (...x: T[]) => T ->a10 : new (...x: Derived[]) => Derived +>b10 : new (...x: T[]) => T, Symbol(b10, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 3)) +>a10 : new (...x: Derived[]) => Derived, Symbol(a10, Decl(assignmentCompatWithConstructSignatures3.ts, 16, 3)) var b11: new (x: T, y: T) => T; ->b11 : new (x: T, y: T) => T ->T : T ->Base : Base ->x : T ->T : T ->y : T ->T : T ->T : T +>b11 : new (x: T, y: T) => T, Symbol(b11, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 14)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 30)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 14)) +>y : T, Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 35)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 14)) a11 = b11; // ok >a11 = b11 : new (x: T, y: T) => T ->a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base ->b11 : new (x: T, y: T) => T +>a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(a11, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 3)) +>b11 : new (x: T, y: T) => T, Symbol(b11, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 3)) b11 = a11; // ok >b11 = a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base ->b11 : new (x: T, y: T) => T ->a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base +>b11 : new (x: T, y: T) => T, Symbol(b11, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 3)) +>a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(a11, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 3)) var b12: new >(x: Array, y: T) => Array; ->b12 : new (x: Base[], y: T) => Derived[] ->T : T ->Array : T[] ->Base : Base ->x : Base[] ->Array : T[] ->Base : Base ->y : T ->T : T ->Array : T[] ->Derived : Derived +>b12 : new (x: Base[], y: T) => Derived[], Symbol(b12, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>x : Base[], Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 37)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>y : T, Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 52)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) a12 = b12; // ok >a12 = b12 : new (x: Base[], y: T) => Derived[] ->a12 : new (x: Base[], y: Derived2[]) => Derived[] ->b12 : new (x: Base[], y: T) => Derived[] +>a12 : new (x: Base[], y: Derived2[]) => Derived[], Symbol(a12, Decl(assignmentCompatWithConstructSignatures3.ts, 18, 3)) +>b12 : new (x: Base[], y: T) => Derived[], Symbol(b12, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 3)) b12 = a12; // ok >b12 = a12 : new (x: Base[], y: Derived2[]) => Derived[] ->b12 : new (x: Base[], y: T) => Derived[] ->a12 : new (x: Base[], y: Derived2[]) => Derived[] +>b12 : new (x: Base[], y: T) => Derived[], Symbol(b12, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 3)) +>a12 : new (x: Base[], y: Derived2[]) => Derived[], Symbol(a12, Decl(assignmentCompatWithConstructSignatures3.ts, 18, 3)) var b13: new >(x: Array, y: T) => T; ->b13 : new (x: Base[], y: T) => T ->T : T ->Array : T[] ->Derived : Derived ->x : Base[] ->Array : T[] ->Base : Base ->y : T ->T : T ->T : T +>b13 : new (x: Base[], y: T) => T, Symbol(b13, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27)) +>x : Base[], Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 40)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>y : T, Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 55)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 14)) a13 = b13; // ok >a13 = b13 : new (x: Base[], y: T) => T ->a13 : new (x: Base[], y: Derived[]) => Derived[] ->b13 : new (x: Base[], y: T) => T +>a13 : new (x: Base[], y: Derived[]) => Derived[], Symbol(a13, Decl(assignmentCompatWithConstructSignatures3.ts, 19, 3)) +>b13 : new (x: Base[], y: T) => T, Symbol(b13, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 3)) b13 = a13; // ok >b13 = a13 : new (x: Base[], y: Derived[]) => Derived[] ->b13 : new (x: Base[], y: T) => T ->a13 : new (x: Base[], y: Derived[]) => Derived[] +>b13 : new (x: Base[], y: T) => T, Symbol(b13, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 3)) +>a13 : new (x: Base[], y: Derived[]) => Derived[], Symbol(a13, Decl(assignmentCompatWithConstructSignatures3.ts, 19, 3)) var b14: new (x: { a: T; b: T }) => T; ->b14 : new (x: { a: T; b: T; }) => T ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>b14 : new (x: { a: T; b: T; }) => T, Symbol(b14, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 14)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 17)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 21)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 14)) +>b : T, Symbol(b, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 27)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 14)) a14 = b14; // ok >a14 = b14 : new (x: { a: T; b: T; }) => T ->a14 : new (x: { a: string; b: number; }) => Object ->b14 : new (x: { a: T; b: T; }) => T +>a14 : new (x: { a: string; b: number; }) => Object, Symbol(a14, Decl(assignmentCompatWithConstructSignatures3.ts, 20, 3)) +>b14 : new (x: { a: T; b: T; }) => T, Symbol(b14, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 3)) b14 = a14; // ok >b14 = a14 : new (x: { a: string; b: number; }) => Object ->b14 : new (x: { a: T; b: T; }) => T ->a14 : new (x: { a: string; b: number; }) => Object +>b14 : new (x: { a: T; b: T; }) => T, Symbol(b14, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 3)) +>a14 : new (x: { a: string; b: number; }) => Object, Symbol(a14, Decl(assignmentCompatWithConstructSignatures3.ts, 20, 3)) var b15: new (x: T) => T[]; ->b15 : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>b15 : new (x: T) => T[], Symbol(b15, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 14)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 17)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 14)) a15 = b15; // ok >a15 = b15 : new (x: T) => T[] ->a15 : { new (x: number): number[]; new (x: string): string[]; } ->b15 : new (x: T) => T[] +>a15 : { new (x: number): number[]; new (x: string): string[]; }, Symbol(a15, Decl(assignmentCompatWithConstructSignatures3.ts, 21, 3)) +>b15 : new (x: T) => T[], Symbol(b15, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 3)) b15 = a15; // ok >b15 = a15 : { new (x: number): number[]; new (x: string): string[]; } ->b15 : new (x: T) => T[] ->a15 : { new (x: number): number[]; new (x: string): string[]; } +>b15 : new (x: T) => T[], Symbol(b15, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 3)) +>a15 : { new (x: number): number[]; new (x: string): string[]; }, Symbol(a15, Decl(assignmentCompatWithConstructSignatures3.ts, 21, 3)) var b16: new (x: T) => number[]; ->b16 : new (x: T) => number[] ->T : T ->Base : Base ->x : T ->T : T +>b16 : new (x: T) => number[], Symbol(b16, Decl(assignmentCompatWithConstructSignatures3.ts, 89, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 89, 14)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 89, 30)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 89, 14)) a16 = b16; // ok >a16 = b16 : new (x: T) => number[] ->a16 : { new (x: T): number[]; new (x: U): number[]; } ->b16 : new (x: T) => number[] +>a16 : { new (x: T): number[]; new (x: U): number[]; }, Symbol(a16, Decl(assignmentCompatWithConstructSignatures3.ts, 25, 3)) +>b16 : new (x: T) => number[], Symbol(b16, Decl(assignmentCompatWithConstructSignatures3.ts, 89, 3)) b16 = a16; // ok >b16 = a16 : { new (x: T): number[]; new (x: U): number[]; } ->b16 : new (x: T) => number[] ->a16 : { new (x: T): number[]; new (x: U): number[]; } +>b16 : new (x: T) => number[], Symbol(b16, Decl(assignmentCompatWithConstructSignatures3.ts, 89, 3)) +>a16 : { new (x: T): number[]; new (x: U): number[]; }, Symbol(a16, Decl(assignmentCompatWithConstructSignatures3.ts, 25, 3)) var b17: new (x: new (a: T) => T) => T[]; // ok ->b17 : new (x: new (a: T) => T) => T[] ->T : T ->x : new (a: T) => T ->a : T ->T : T ->T : T ->T : T +>b17 : new (x: new (a: T) => T) => T[], Symbol(b17, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 14)) +>x : new (a: T) => T, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 17)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 25)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 14)) a17 = b17; // ok >a17 = b17 : new (x: new (a: T) => T) => T[] ->a17 : { new (x: new (a: number) => number): number[]; new (x: new (a: string) => string): string[]; } ->b17 : new (x: new (a: T) => T) => T[] +>a17 : { new (x: new (a: number) => number): number[]; new (x: new (a: string) => string): string[]; }, Symbol(a17, Decl(assignmentCompatWithConstructSignatures3.ts, 29, 3)) +>b17 : new (x: new (a: T) => T) => T[], Symbol(b17, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 3)) b17 = a17; // ok >b17 = a17 : { new (x: new (a: number) => number): number[]; new (x: new (a: string) => string): string[]; } ->b17 : new (x: new (a: T) => T) => T[] ->a17 : { new (x: new (a: number) => number): number[]; new (x: new (a: string) => string): string[]; } +>b17 : new (x: new (a: T) => T) => T[], Symbol(b17, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 3)) +>a17 : { new (x: new (a: number) => number): number[]; new (x: new (a: string) => string): string[]; }, Symbol(a17, Decl(assignmentCompatWithConstructSignatures3.ts, 29, 3)) var b18: new (x: new (a: T) => T) => T[]; ->b18 : new (x: new (a: T) => T) => T[] ->T : T ->x : new (a: T) => T ->a : T ->T : T ->T : T ->T : T +>b18 : new (x: new (a: T) => T) => T[], Symbol(b18, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 14)) +>x : new (a: T) => T, Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 17)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 25)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 14)) a18 = b18; // ok >a18 = b18 : new (x: new (a: T) => T) => T[] ->a18 : { new (x: { new (a: number): number; new (a: string): string; }): any[]; new (x: { new (a: boolean): boolean; new (a: Date): Date; }): any[]; } ->b18 : new (x: new (a: T) => T) => T[] +>a18 : { new (x: { new (a: number): number; new (a: string): string; }): any[]; new (x: { new (a: boolean): boolean; new (a: Date): Date; }): any[]; }, Symbol(a18, Decl(assignmentCompatWithConstructSignatures3.ts, 33, 3)) +>b18 : new (x: new (a: T) => T) => T[], Symbol(b18, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 3)) b18 = a18; // ok >b18 = a18 : { new (x: { new (a: number): number; new (a: string): string; }): any[]; new (x: { new (a: boolean): boolean; new (a: Date): Date; }): any[]; } ->b18 : new (x: new (a: T) => T) => T[] ->a18 : { new (x: { new (a: number): number; new (a: string): string; }): any[]; new (x: { new (a: boolean): boolean; new (a: Date): Date; }): any[]; } +>b18 : new (x: new (a: T) => T) => T[], Symbol(b18, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 3)) +>a18 : { new (x: { new (a: number): number; new (a: string): string; }): any[]; new (x: { new (a: boolean): boolean; new (a: Date): Date; }): any[]; }, Symbol(a18, Decl(assignmentCompatWithConstructSignatures3.ts, 33, 3)) diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures5.types b/tests/baselines/reference/assignmentCompatWithConstructSignatures5.types index 6e6a1457a76..f9321435746 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures5.types +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures5.types @@ -2,379 +2,379 @@ // checking assignment compat for function types. All valid class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures5.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithConstructSignatures5.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures5.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures5.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithConstructSignatures5.ts, 3, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(assignmentCompatWithConstructSignatures5.ts, 3, 43)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures5.ts, 2, 27)) +>baz : string, Symbol(baz, Decl(assignmentCompatWithConstructSignatures5.ts, 4, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(assignmentCompatWithConstructSignatures5.ts, 4, 47)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures5.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(assignmentCompatWithConstructSignatures5.ts, 5, 33)) var a: new (x: T) => T[]; ->a : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : new (x: T) => T[], Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 7, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 7, 12)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 7, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 7, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 7, 12)) var a2: new (x: T) => string[]; ->a2 : new (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : new (x: T) => string[], Symbol(a2, Decl(assignmentCompatWithConstructSignatures5.ts, 8, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 8, 13)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 8, 16)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 8, 13)) var a3: new (x: T) => void; ->a3 : new (x: T) => void ->T : T ->x : T ->T : T +>a3 : new (x: T) => void, Symbol(a3, Decl(assignmentCompatWithConstructSignatures5.ts, 9, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 9, 13)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 9, 16)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 9, 13)) var a4: new (x: T, y: U) => string; ->a4 : new (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>a4 : new (x: T, y: U) => string, Symbol(a4, Decl(assignmentCompatWithConstructSignatures5.ts, 10, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 10, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 10, 15)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 10, 19)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 10, 13)) +>y : U, Symbol(y, Decl(assignmentCompatWithConstructSignatures5.ts, 10, 24)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 10, 15)) var a5: new (x: new (arg: T) => U) => T; ->a5 : new (x: new (arg: T) => U) => T ->T : T ->U : U ->x : new (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : new (x: new (arg: T) => U) => T, Symbol(a5, Decl(assignmentCompatWithConstructSignatures5.ts, 11, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 11, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 11, 15)) +>x : new (arg: T) => U, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 11, 19)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithConstructSignatures5.ts, 11, 27)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 11, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 11, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 11, 13)) var a6: new (x: new (arg: T) => Derived) => T; ->a6 : new (x: new (arg: T) => Derived) => T ->T : T ->Base : Base ->x : new (arg: T) => Derived ->arg : T ->T : T ->Derived : Derived ->T : T +>a6 : new (x: new (arg: T) => Derived) => T, Symbol(a6, Decl(assignmentCompatWithConstructSignatures5.ts, 12, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 12, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures5.ts, 0, 0)) +>x : new (arg: T) => Derived, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 12, 29)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithConstructSignatures5.ts, 12, 37)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 12, 13)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures5.ts, 2, 27)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 12, 13)) var a11: new (x: { foo: T }, y: { foo: T; bar: T }) => Base; ->a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->T : T ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: T; bar: T; } ->foo : T ->T : T ->bar : T ->T : T ->Base : Base +>a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(assignmentCompatWithConstructSignatures5.ts, 13, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 13, 14)) +>x : { foo: T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 13, 17)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithConstructSignatures5.ts, 13, 21)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 13, 14)) +>y : { foo: T; bar: T; }, Symbol(y, Decl(assignmentCompatWithConstructSignatures5.ts, 13, 31)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithConstructSignatures5.ts, 13, 36)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 13, 14)) +>bar : T, Symbol(bar, Decl(assignmentCompatWithConstructSignatures5.ts, 13, 44)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 13, 14)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures5.ts, 0, 0)) var a15: new (x: { a: T; b: T }) => T[]; ->a15 : new (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a15 : new (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(assignmentCompatWithConstructSignatures5.ts, 14, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 14, 14)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 14, 17)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 14, 21)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 14, 14)) +>b : T, Symbol(b, Decl(assignmentCompatWithConstructSignatures5.ts, 14, 27)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 14, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 14, 14)) var a16: new (x: { a: T; b: T }) => T[]; ->a16 : new (x: { a: T; b: T; }) => T[] ->T : T ->Base : Base ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a16 : new (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(assignmentCompatWithConstructSignatures5.ts, 15, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 15, 14)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures5.ts, 0, 0)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 15, 30)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 15, 34)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 15, 14)) +>b : T, Symbol(b, Decl(assignmentCompatWithConstructSignatures5.ts, 15, 40)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 15, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 15, 14)) var a17: { ->a17 : { new (x: new (a: T) => T): T[]; new (x: new (a: T) => T): T[]; } +>a17 : { new (x: new (a: T) => T): T[]; new (x: new (a: T) => T): T[]; }, Symbol(a17, Decl(assignmentCompatWithConstructSignatures5.ts, 16, 3)) new (x: new (a: T) => T): T[]; ->T : T ->Derived : Derived ->x : new (a: T) => T ->a : T ->T : T ->T : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 17, 9)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures5.ts, 2, 27)) +>x : new (a: T) => T, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 17, 28)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 17, 36)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 17, 9)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 17, 9)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 17, 9)) new (x: new (a: T) => T): T[]; ->T : T ->Base : Base ->x : new (a: T) => T ->a : T ->T : T ->T : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 18, 9)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures5.ts, 0, 0)) +>x : new (a: T) => T, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 18, 25)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 18, 33)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 18, 9)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 18, 9)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 18, 9)) }; var a18: { ->a18 : { new (x: { new (a: T): T; new (a: T): T; }): any[]; new (x: { new (a: T): T; new (a: T): T; }): any[]; } +>a18 : { new (x: { new (a: T): T; new (a: T): T; }): any[]; new (x: { new (a: T): T; new (a: T): T; }): any[]; }, Symbol(a18, Decl(assignmentCompatWithConstructSignatures5.ts, 20, 3)) new (x: { ->x : { new (a: T): T; new (a: T): T; } +>x : { new (a: T): T; new (a: T): T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 21, 9)) new (a: T): T; ->T : T ->Derived : Derived ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 22, 13)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures5.ts, 2, 27)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 22, 32)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 22, 13)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 22, 13)) new (a: T): T; ->T : T ->Base : Base ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 23, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures5.ts, 0, 0)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 23, 29)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 23, 13)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 23, 13)) }): any[]; new (x: { ->x : { new (a: T): T; new (a: T): T; } +>x : { new (a: T): T; new (a: T): T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 25, 9)) new (a: T): T; ->T : T ->Derived2 : Derived2 ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 26, 13)) +>Derived2 : Derived2, Symbol(Derived2, Decl(assignmentCompatWithConstructSignatures5.ts, 3, 43)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 26, 33)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 26, 13)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 26, 13)) new (a: T): T; ->T : T ->Base : Base ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 27, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures5.ts, 0, 0)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 27, 29)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 27, 13)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 27, 13)) }): any[]; }; var b: new (x: T) => T[]; ->b : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>b : new (x: T) => T[], Symbol(b, Decl(assignmentCompatWithConstructSignatures5.ts, 31, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 31, 12)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 31, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 31, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 31, 12)) a = b; // ok >a = b : new (x: T) => T[] ->a : new (x: T) => T[] ->b : new (x: T) => T[] +>a : new (x: T) => T[], Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 7, 3)) +>b : new (x: T) => T[], Symbol(b, Decl(assignmentCompatWithConstructSignatures5.ts, 31, 3)) b = a; // ok >b = a : new (x: T) => T[] ->b : new (x: T) => T[] ->a : new (x: T) => T[] +>b : new (x: T) => T[], Symbol(b, Decl(assignmentCompatWithConstructSignatures5.ts, 31, 3)) +>a : new (x: T) => T[], Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 7, 3)) var b2: new (x: T) => string[]; ->b2 : new (x: T) => string[] ->T : T ->x : T ->T : T +>b2 : new (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithConstructSignatures5.ts, 34, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 34, 13)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 34, 16)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 34, 13)) a2 = b2; // ok >a2 = b2 : new (x: T) => string[] ->a2 : new (x: T) => string[] ->b2 : new (x: T) => string[] +>a2 : new (x: T) => string[], Symbol(a2, Decl(assignmentCompatWithConstructSignatures5.ts, 8, 3)) +>b2 : new (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithConstructSignatures5.ts, 34, 3)) b2 = a2; // ok >b2 = a2 : new (x: T) => string[] ->b2 : new (x: T) => string[] ->a2 : new (x: T) => string[] +>b2 : new (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithConstructSignatures5.ts, 34, 3)) +>a2 : new (x: T) => string[], Symbol(a2, Decl(assignmentCompatWithConstructSignatures5.ts, 8, 3)) var b3: new (x: T) => T; ->b3 : new (x: T) => T ->T : T ->x : T ->T : T ->T : T +>b3 : new (x: T) => T, Symbol(b3, Decl(assignmentCompatWithConstructSignatures5.ts, 37, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 37, 13)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 37, 16)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 37, 13)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 37, 13)) a3 = b3; // ok >a3 = b3 : new (x: T) => T ->a3 : new (x: T) => void ->b3 : new (x: T) => T +>a3 : new (x: T) => void, Symbol(a3, Decl(assignmentCompatWithConstructSignatures5.ts, 9, 3)) +>b3 : new (x: T) => T, Symbol(b3, Decl(assignmentCompatWithConstructSignatures5.ts, 37, 3)) b3 = a3; // ok >b3 = a3 : new (x: T) => void ->b3 : new (x: T) => T ->a3 : new (x: T) => void +>b3 : new (x: T) => T, Symbol(b3, Decl(assignmentCompatWithConstructSignatures5.ts, 37, 3)) +>a3 : new (x: T) => void, Symbol(a3, Decl(assignmentCompatWithConstructSignatures5.ts, 9, 3)) var b4: new (x: T, y: U) => string; ->b4 : new (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>b4 : new (x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithConstructSignatures5.ts, 40, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 40, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 40, 15)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 40, 19)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 40, 13)) +>y : U, Symbol(y, Decl(assignmentCompatWithConstructSignatures5.ts, 40, 24)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 40, 15)) a4 = b4; // ok >a4 = b4 : new (x: T, y: U) => string ->a4 : new (x: T, y: U) => string ->b4 : new (x: T, y: U) => string +>a4 : new (x: T, y: U) => string, Symbol(a4, Decl(assignmentCompatWithConstructSignatures5.ts, 10, 3)) +>b4 : new (x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithConstructSignatures5.ts, 40, 3)) b4 = a4; // ok >b4 = a4 : new (x: T, y: U) => string ->b4 : new (x: T, y: U) => string ->a4 : new (x: T, y: U) => string +>b4 : new (x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithConstructSignatures5.ts, 40, 3)) +>a4 : new (x: T, y: U) => string, Symbol(a4, Decl(assignmentCompatWithConstructSignatures5.ts, 10, 3)) var b5: new (x: new (arg: T) => U) => T; ->b5 : new (x: new (arg: T) => U) => T ->T : T ->U : U ->x : new (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>b5 : new (x: new (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithConstructSignatures5.ts, 43, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 43, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 43, 15)) +>x : new (arg: T) => U, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 43, 19)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithConstructSignatures5.ts, 43, 27)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 43, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 43, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 43, 13)) a5 = b5; // ok >a5 = b5 : new (x: new (arg: T) => U) => T ->a5 : new (x: new (arg: T) => U) => T ->b5 : new (x: new (arg: T) => U) => T +>a5 : new (x: new (arg: T) => U) => T, Symbol(a5, Decl(assignmentCompatWithConstructSignatures5.ts, 11, 3)) +>b5 : new (x: new (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithConstructSignatures5.ts, 43, 3)) b5 = a5; // ok >b5 = a5 : new (x: new (arg: T) => U) => T ->b5 : new (x: new (arg: T) => U) => T ->a5 : new (x: new (arg: T) => U) => T +>b5 : new (x: new (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithConstructSignatures5.ts, 43, 3)) +>a5 : new (x: new (arg: T) => U) => T, Symbol(a5, Decl(assignmentCompatWithConstructSignatures5.ts, 11, 3)) var b6: new (x: new (arg: T) => U) => T; ->b6 : new (x: new (arg: T) => U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : new (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>b6 : new (x: new (arg: T) => U) => T, Symbol(b6, Decl(assignmentCompatWithConstructSignatures5.ts, 46, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 46, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures5.ts, 0, 0)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 46, 28)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures5.ts, 2, 27)) +>x : new (arg: T) => U, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 46, 48)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithConstructSignatures5.ts, 46, 56)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 46, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 46, 28)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 46, 13)) a6 = b6; // ok >a6 = b6 : new (x: new (arg: T) => U) => T ->a6 : new (x: new (arg: T) => Derived) => T ->b6 : new (x: new (arg: T) => U) => T +>a6 : new (x: new (arg: T) => Derived) => T, Symbol(a6, Decl(assignmentCompatWithConstructSignatures5.ts, 12, 3)) +>b6 : new (x: new (arg: T) => U) => T, Symbol(b6, Decl(assignmentCompatWithConstructSignatures5.ts, 46, 3)) b6 = a6; // ok >b6 = a6 : new (x: new (arg: T) => Derived) => T ->b6 : new (x: new (arg: T) => U) => T ->a6 : new (x: new (arg: T) => Derived) => T +>b6 : new (x: new (arg: T) => U) => T, Symbol(b6, Decl(assignmentCompatWithConstructSignatures5.ts, 46, 3)) +>a6 : new (x: new (arg: T) => Derived) => T, Symbol(a6, Decl(assignmentCompatWithConstructSignatures5.ts, 12, 3)) var b11: new (x: { foo: T }, y: { foo: U; bar: U }) => Base; ->b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->T : T ->U : U ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: U; bar: U; } ->foo : U ->U : U ->bar : U ->U : U ->Base : Base +>b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 14)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 16)) +>x : { foo: T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 20)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 24)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 14)) +>y : { foo: U; bar: U; }, Symbol(y, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 34)) +>foo : U, Symbol(foo, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 39)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 16)) +>bar : U, Symbol(bar, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 47)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 16)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures5.ts, 0, 0)) a11 = b11; // ok >a11 = b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base +>a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(assignmentCompatWithConstructSignatures5.ts, 13, 3)) +>b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 3)) b11 = a11; // ok >b11 = a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base +>b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithConstructSignatures5.ts, 49, 3)) +>a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(assignmentCompatWithConstructSignatures5.ts, 13, 3)) var b15: new (x: { a: U; b: V; }) => U[]; ->b15 : new (x: { a: U; b: V; }) => U[] ->U : U ->V : V ->x : { a: U; b: V; } ->a : U ->U : U ->b : V ->V : V ->U : U +>b15 : new (x: { a: U; b: V; }) => U[], Symbol(b15, Decl(assignmentCompatWithConstructSignatures5.ts, 52, 3)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 52, 14)) +>V : V, Symbol(V, Decl(assignmentCompatWithConstructSignatures5.ts, 52, 16)) +>x : { a: U; b: V; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 52, 20)) +>a : U, Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 52, 24)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 52, 14)) +>b : V, Symbol(b, Decl(assignmentCompatWithConstructSignatures5.ts, 52, 30)) +>V : V, Symbol(V, Decl(assignmentCompatWithConstructSignatures5.ts, 52, 16)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures5.ts, 52, 14)) a15 = b15; // ok >a15 = b15 : new (x: { a: U; b: V; }) => U[] ->a15 : new (x: { a: T; b: T; }) => T[] ->b15 : new (x: { a: U; b: V; }) => U[] +>a15 : new (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(assignmentCompatWithConstructSignatures5.ts, 14, 3)) +>b15 : new (x: { a: U; b: V; }) => U[], Symbol(b15, Decl(assignmentCompatWithConstructSignatures5.ts, 52, 3)) b15 = a15; // ok >b15 = a15 : new (x: { a: T; b: T; }) => T[] ->b15 : new (x: { a: U; b: V; }) => U[] ->a15 : new (x: { a: T; b: T; }) => T[] +>b15 : new (x: { a: U; b: V; }) => U[], Symbol(b15, Decl(assignmentCompatWithConstructSignatures5.ts, 52, 3)) +>a15 : new (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(assignmentCompatWithConstructSignatures5.ts, 14, 3)) var b16: new (x: { a: T; b: T }) => T[]; ->b16 : new (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>b16 : new (x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithConstructSignatures5.ts, 55, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 55, 14)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 55, 17)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 55, 21)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 55, 14)) +>b : T, Symbol(b, Decl(assignmentCompatWithConstructSignatures5.ts, 55, 27)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 55, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 55, 14)) a15 = b16; // ok >a15 = b16 : new (x: { a: T; b: T; }) => T[] ->a15 : new (x: { a: T; b: T; }) => T[] ->b16 : new (x: { a: T; b: T; }) => T[] +>a15 : new (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(assignmentCompatWithConstructSignatures5.ts, 14, 3)) +>b16 : new (x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithConstructSignatures5.ts, 55, 3)) b15 = a16; // ok >b15 = a16 : new (x: { a: T; b: T; }) => T[] ->b15 : new (x: { a: U; b: V; }) => U[] ->a16 : new (x: { a: T; b: T; }) => T[] +>b15 : new (x: { a: U; b: V; }) => U[], Symbol(b15, Decl(assignmentCompatWithConstructSignatures5.ts, 52, 3)) +>a16 : new (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(assignmentCompatWithConstructSignatures5.ts, 15, 3)) var b17: new (x: new (a: T) => T) => T[]; ->b17 : new (x: new (a: T) => T) => T[] ->T : T ->x : new (a: T) => T ->a : T ->T : T ->T : T ->T : T +>b17 : new (x: new (a: T) => T) => T[], Symbol(b17, Decl(assignmentCompatWithConstructSignatures5.ts, 58, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 58, 14)) +>x : new (a: T) => T, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 58, 17)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 58, 25)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 58, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 58, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 58, 14)) a17 = b17; // ok >a17 = b17 : new (x: new (a: T) => T) => T[] ->a17 : { new (x: new (a: T) => T): T[]; new (x: new (a: T) => T): T[]; } ->b17 : new (x: new (a: T) => T) => T[] +>a17 : { new (x: new (a: T) => T): T[]; new (x: new (a: T) => T): T[]; }, Symbol(a17, Decl(assignmentCompatWithConstructSignatures5.ts, 16, 3)) +>b17 : new (x: new (a: T) => T) => T[], Symbol(b17, Decl(assignmentCompatWithConstructSignatures5.ts, 58, 3)) b17 = a17; // ok >b17 = a17 : { new (x: new (a: T) => T): T[]; new (x: new (a: T) => T): T[]; } ->b17 : new (x: new (a: T) => T) => T[] ->a17 : { new (x: new (a: T) => T): T[]; new (x: new (a: T) => T): T[]; } +>b17 : new (x: new (a: T) => T) => T[], Symbol(b17, Decl(assignmentCompatWithConstructSignatures5.ts, 58, 3)) +>a17 : { new (x: new (a: T) => T): T[]; new (x: new (a: T) => T): T[]; }, Symbol(a17, Decl(assignmentCompatWithConstructSignatures5.ts, 16, 3)) var b18: new (x: new (a: T) => T) => any[]; ->b18 : new (x: new (a: T) => T) => any[] ->x : new (a: T) => T ->T : T ->a : T ->T : T ->T : T +>b18 : new (x: new (a: T) => T) => any[], Symbol(b18, Decl(assignmentCompatWithConstructSignatures5.ts, 61, 3)) +>x : new (a: T) => T, Symbol(x, Decl(assignmentCompatWithConstructSignatures5.ts, 61, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 61, 22)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures5.ts, 61, 25)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 61, 22)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures5.ts, 61, 22)) a18 = b18; // ok >a18 = b18 : new (x: new (a: T) => T) => any[] ->a18 : { new (x: { new (a: T): T; new (a: T): T; }): any[]; new (x: { new (a: T): T; new (a: T): T; }): any[]; } ->b18 : new (x: new (a: T) => T) => any[] +>a18 : { new (x: { new (a: T): T; new (a: T): T; }): any[]; new (x: { new (a: T): T; new (a: T): T; }): any[]; }, Symbol(a18, Decl(assignmentCompatWithConstructSignatures5.ts, 20, 3)) +>b18 : new (x: new (a: T) => T) => any[], Symbol(b18, Decl(assignmentCompatWithConstructSignatures5.ts, 61, 3)) b18 = a18; // ok >b18 = a18 : { new (x: { new (a: T): T; new (a: T): T; }): any[]; new (x: { new (a: T): T; new (a: T): T; }): any[]; } ->b18 : new (x: new (a: T) => T) => any[] ->a18 : { new (x: { new (a: T): T; new (a: T): T; }): any[]; new (x: { new (a: T): T; new (a: T): T; }): any[]; } +>b18 : new (x: new (a: T) => T) => any[], Symbol(b18, Decl(assignmentCompatWithConstructSignatures5.ts, 61, 3)) +>a18 : { new (x: { new (a: T): T; new (a: T): T; }): any[]; new (x: { new (a: T): T; new (a: T): T; }): any[]; }, Symbol(a18, Decl(assignmentCompatWithConstructSignatures5.ts, 20, 3)) diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures6.types b/tests/baselines/reference/assignmentCompatWithConstructSignatures6.types index 74a20b9b21e..e37bc7f0ed4 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures6.types +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures6.types @@ -2,272 +2,272 @@ // checking assignment compatibility relations for function types. All valid. class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures6.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithConstructSignatures6.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures6.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures6.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithConstructSignatures6.ts, 3, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(assignmentCompatWithConstructSignatures6.ts, 3, 43)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures6.ts, 2, 27)) +>baz : string, Symbol(baz, Decl(assignmentCompatWithConstructSignatures6.ts, 4, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(assignmentCompatWithConstructSignatures6.ts, 4, 47)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures6.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(assignmentCompatWithConstructSignatures6.ts, 5, 33)) interface A { ->A : A +>A : A, Symbol(A, Decl(assignmentCompatWithConstructSignatures6.ts, 5, 49)) a: new (x: T) => T[]; ->a : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : new (x: T) => T[], Symbol(a, Decl(assignmentCompatWithConstructSignatures6.ts, 7, 13)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 8, 12)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 8, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 8, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 8, 12)) a2: new (x: T) => string[]; ->a2 : new (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : new (x: T) => string[], Symbol(a2, Decl(assignmentCompatWithConstructSignatures6.ts, 8, 28)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 9, 13)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 9, 16)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 9, 13)) a3: new (x: T) => void; ->a3 : new (x: T) => void ->T : T ->x : T ->T : T +>a3 : new (x: T) => void, Symbol(a3, Decl(assignmentCompatWithConstructSignatures6.ts, 9, 34)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 10, 13)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 10, 16)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 10, 13)) a4: new (x: T, y: U) => string; ->a4 : new (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>a4 : new (x: T, y: U) => string, Symbol(a4, Decl(assignmentCompatWithConstructSignatures6.ts, 10, 30)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 11, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures6.ts, 11, 15)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 11, 19)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 11, 13)) +>y : U, Symbol(y, Decl(assignmentCompatWithConstructSignatures6.ts, 11, 24)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures6.ts, 11, 15)) a5: new (x: (arg: T) => U) => T; ->a5 : new (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : new (x: (arg: T) => U) => T, Symbol(a5, Decl(assignmentCompatWithConstructSignatures6.ts, 11, 41)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 12, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures6.ts, 12, 15)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 12, 19)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithConstructSignatures6.ts, 12, 23)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 12, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures6.ts, 12, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 12, 13)) a6: new (x: (arg: T) => Derived) => T; ->a6 : new (x: (arg: T) => Derived) => T ->T : T ->Base : Base ->x : (arg: T) => Derived ->arg : T ->T : T ->Derived : Derived ->T : T +>a6 : new (x: (arg: T) => Derived) => T, Symbol(a6, Decl(assignmentCompatWithConstructSignatures6.ts, 12, 42)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 13, 13)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures6.ts, 0, 0)) +>x : (arg: T) => Derived, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 13, 29)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithConstructSignatures6.ts, 13, 33)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 13, 13)) +>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithConstructSignatures6.ts, 2, 27)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 13, 13)) a11: new (x: { foo: T }, y: { foo: T; bar: T }) => Base; ->a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->T : T ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: T; bar: T; } ->foo : T ->T : T ->bar : T ->T : T ->Base : Base +>a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(assignmentCompatWithConstructSignatures6.ts, 13, 58)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 14, 14)) +>x : { foo: T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 14, 17)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithConstructSignatures6.ts, 14, 21)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 14, 14)) +>y : { foo: T; bar: T; }, Symbol(y, Decl(assignmentCompatWithConstructSignatures6.ts, 14, 31)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithConstructSignatures6.ts, 14, 36)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 14, 14)) +>bar : T, Symbol(bar, Decl(assignmentCompatWithConstructSignatures6.ts, 14, 44)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 14, 14)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures6.ts, 0, 0)) a15: new (x: { a: T; b: T }) => T[]; ->a15 : new (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a15 : new (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(assignmentCompatWithConstructSignatures6.ts, 14, 63)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 15, 14)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 15, 17)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures6.ts, 15, 21)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 15, 14)) +>b : T, Symbol(b, Decl(assignmentCompatWithConstructSignatures6.ts, 15, 27)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 15, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 15, 14)) a16: new (x: { a: T; b: T }) => T[]; ->a16 : new (x: { a: T; b: T; }) => T[] ->T : T ->Base : Base ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a16 : new (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(assignmentCompatWithConstructSignatures6.ts, 15, 43)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 16, 14)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures6.ts, 0, 0)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 16, 30)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures6.ts, 16, 34)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 16, 14)) +>b : T, Symbol(b, Decl(assignmentCompatWithConstructSignatures6.ts, 16, 40)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 16, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 16, 14)) } var x: A; ->x : A ->A : A +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>A : A, Symbol(A, Decl(assignmentCompatWithConstructSignatures6.ts, 5, 49)) var b: new (x: T) => T[]; ->b : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>b : new (x: T) => T[], Symbol(b, Decl(assignmentCompatWithConstructSignatures6.ts, 21, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 21, 12)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 21, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 21, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 21, 12)) x.a = b; >x.a = b : new (x: T) => T[] ->x.a : new (x: T) => T[] ->x : A ->a : new (x: T) => T[] ->b : new (x: T) => T[] +>x.a : new (x: T) => T[], Symbol(A.a, Decl(assignmentCompatWithConstructSignatures6.ts, 7, 13)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a : new (x: T) => T[], Symbol(A.a, Decl(assignmentCompatWithConstructSignatures6.ts, 7, 13)) +>b : new (x: T) => T[], Symbol(b, Decl(assignmentCompatWithConstructSignatures6.ts, 21, 3)) b = x.a; >b = x.a : new (x: T) => T[] ->b : new (x: T) => T[] ->x.a : new (x: T) => T[] ->x : A ->a : new (x: T) => T[] +>b : new (x: T) => T[], Symbol(b, Decl(assignmentCompatWithConstructSignatures6.ts, 21, 3)) +>x.a : new (x: T) => T[], Symbol(A.a, Decl(assignmentCompatWithConstructSignatures6.ts, 7, 13)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a : new (x: T) => T[], Symbol(A.a, Decl(assignmentCompatWithConstructSignatures6.ts, 7, 13)) var b2: new (x: T) => string[]; ->b2 : new (x: T) => string[] ->T : T ->x : T ->T : T +>b2 : new (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithConstructSignatures6.ts, 24, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 24, 13)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 24, 16)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 24, 13)) x.a2 = b2; >x.a2 = b2 : new (x: T) => string[] ->x.a2 : new (x: T) => string[] ->x : A ->a2 : new (x: T) => string[] ->b2 : new (x: T) => string[] +>x.a2 : new (x: T) => string[], Symbol(A.a2, Decl(assignmentCompatWithConstructSignatures6.ts, 8, 28)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a2 : new (x: T) => string[], Symbol(A.a2, Decl(assignmentCompatWithConstructSignatures6.ts, 8, 28)) +>b2 : new (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithConstructSignatures6.ts, 24, 3)) b2 = x.a2; >b2 = x.a2 : new (x: T) => string[] ->b2 : new (x: T) => string[] ->x.a2 : new (x: T) => string[] ->x : A ->a2 : new (x: T) => string[] +>b2 : new (x: T) => string[], Symbol(b2, Decl(assignmentCompatWithConstructSignatures6.ts, 24, 3)) +>x.a2 : new (x: T) => string[], Symbol(A.a2, Decl(assignmentCompatWithConstructSignatures6.ts, 8, 28)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a2 : new (x: T) => string[], Symbol(A.a2, Decl(assignmentCompatWithConstructSignatures6.ts, 8, 28)) var b3: new (x: T) => T; ->b3 : new (x: T) => T ->T : T ->x : T ->T : T ->T : T +>b3 : new (x: T) => T, Symbol(b3, Decl(assignmentCompatWithConstructSignatures6.ts, 27, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 27, 13)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 27, 16)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 27, 13)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 27, 13)) x.a3 = b3; >x.a3 = b3 : new (x: T) => T ->x.a3 : new (x: T) => void ->x : A ->a3 : new (x: T) => void ->b3 : new (x: T) => T +>x.a3 : new (x: T) => void, Symbol(A.a3, Decl(assignmentCompatWithConstructSignatures6.ts, 9, 34)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a3 : new (x: T) => void, Symbol(A.a3, Decl(assignmentCompatWithConstructSignatures6.ts, 9, 34)) +>b3 : new (x: T) => T, Symbol(b3, Decl(assignmentCompatWithConstructSignatures6.ts, 27, 3)) b3 = x.a3; >b3 = x.a3 : new (x: T) => void ->b3 : new (x: T) => T ->x.a3 : new (x: T) => void ->x : A ->a3 : new (x: T) => void +>b3 : new (x: T) => T, Symbol(b3, Decl(assignmentCompatWithConstructSignatures6.ts, 27, 3)) +>x.a3 : new (x: T) => void, Symbol(A.a3, Decl(assignmentCompatWithConstructSignatures6.ts, 9, 34)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a3 : new (x: T) => void, Symbol(A.a3, Decl(assignmentCompatWithConstructSignatures6.ts, 9, 34)) var b4: new (x: T, y: U) => string; ->b4 : new (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>b4 : new (x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithConstructSignatures6.ts, 30, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 30, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures6.ts, 30, 15)) +>x : T, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 30, 19)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 30, 13)) +>y : U, Symbol(y, Decl(assignmentCompatWithConstructSignatures6.ts, 30, 24)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures6.ts, 30, 15)) x.a4 = b4; >x.a4 = b4 : new (x: T, y: U) => string ->x.a4 : new (x: T, y: U) => string ->x : A ->a4 : new (x: T, y: U) => string ->b4 : new (x: T, y: U) => string +>x.a4 : new (x: T, y: U) => string, Symbol(A.a4, Decl(assignmentCompatWithConstructSignatures6.ts, 10, 30)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a4 : new (x: T, y: U) => string, Symbol(A.a4, Decl(assignmentCompatWithConstructSignatures6.ts, 10, 30)) +>b4 : new (x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithConstructSignatures6.ts, 30, 3)) b4 = x.a4; >b4 = x.a4 : new (x: T, y: U) => string ->b4 : new (x: T, y: U) => string ->x.a4 : new (x: T, y: U) => string ->x : A ->a4 : new (x: T, y: U) => string +>b4 : new (x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithConstructSignatures6.ts, 30, 3)) +>x.a4 : new (x: T, y: U) => string, Symbol(A.a4, Decl(assignmentCompatWithConstructSignatures6.ts, 10, 30)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a4 : new (x: T, y: U) => string, Symbol(A.a4, Decl(assignmentCompatWithConstructSignatures6.ts, 10, 30)) var b5: new (x: (arg: T) => U) => T; ->b5 : new (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>b5 : new (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithConstructSignatures6.ts, 33, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 33, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures6.ts, 33, 15)) +>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 33, 19)) +>arg : T, Symbol(arg, Decl(assignmentCompatWithConstructSignatures6.ts, 33, 23)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 33, 13)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures6.ts, 33, 15)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 33, 13)) x.a5 = b5; >x.a5 = b5 : new (x: (arg: T) => U) => T ->x.a5 : new (x: (arg: T) => U) => T ->x : A ->a5 : new (x: (arg: T) => U) => T ->b5 : new (x: (arg: T) => U) => T +>x.a5 : new (x: (arg: T) => U) => T, Symbol(A.a5, Decl(assignmentCompatWithConstructSignatures6.ts, 11, 41)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a5 : new (x: (arg: T) => U) => T, Symbol(A.a5, Decl(assignmentCompatWithConstructSignatures6.ts, 11, 41)) +>b5 : new (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithConstructSignatures6.ts, 33, 3)) b5 = x.a5; >b5 = x.a5 : new (x: (arg: T) => U) => T ->b5 : new (x: (arg: T) => U) => T ->x.a5 : new (x: (arg: T) => U) => T ->x : A ->a5 : new (x: (arg: T) => U) => T +>b5 : new (x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithConstructSignatures6.ts, 33, 3)) +>x.a5 : new (x: (arg: T) => U) => T, Symbol(A.a5, Decl(assignmentCompatWithConstructSignatures6.ts, 11, 41)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a5 : new (x: (arg: T) => U) => T, Symbol(A.a5, Decl(assignmentCompatWithConstructSignatures6.ts, 11, 41)) var b11: new (x: { foo: T }, y: { foo: U; bar: U }) => Base; ->b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->T : T ->U : U ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: U; bar: U; } ->foo : U ->U : U ->bar : U ->U : U ->Base : Base +>b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 14)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 16)) +>x : { foo: T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 20)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 24)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 14)) +>y : { foo: U; bar: U; }, Symbol(y, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 34)) +>foo : U, Symbol(foo, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 39)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 16)) +>bar : U, Symbol(bar, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 47)) +>U : U, Symbol(U, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 16)) +>Base : Base, Symbol(Base, Decl(assignmentCompatWithConstructSignatures6.ts, 0, 0)) x.a11 = b11; >x.a11 = b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->x.a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->x : A ->a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base +>x.a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(A.a11, Decl(assignmentCompatWithConstructSignatures6.ts, 13, 58)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(A.a11, Decl(assignmentCompatWithConstructSignatures6.ts, 13, 58)) +>b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 3)) b11 = x.a11; >b11 = x.a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->x.a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->x : A ->a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base +>b11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithConstructSignatures6.ts, 36, 3)) +>x.a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(A.a11, Decl(assignmentCompatWithConstructSignatures6.ts, 13, 58)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(A.a11, Decl(assignmentCompatWithConstructSignatures6.ts, 13, 58)) var b16: new (x: { a: T; b: T }) => T[]; ->b16 : new (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>b16 : new (x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithConstructSignatures6.ts, 39, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 39, 14)) +>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 39, 17)) +>a : T, Symbol(a, Decl(assignmentCompatWithConstructSignatures6.ts, 39, 21)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 39, 14)) +>b : T, Symbol(b, Decl(assignmentCompatWithConstructSignatures6.ts, 39, 27)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 39, 14)) +>T : T, Symbol(T, Decl(assignmentCompatWithConstructSignatures6.ts, 39, 14)) x.a16 = b16; >x.a16 = b16 : new (x: { a: T; b: T; }) => T[] ->x.a16 : new (x: { a: T; b: T; }) => T[] ->x : A ->a16 : new (x: { a: T; b: T; }) => T[] ->b16 : new (x: { a: T; b: T; }) => T[] +>x.a16 : new (x: { a: T; b: T; }) => T[], Symbol(A.a16, Decl(assignmentCompatWithConstructSignatures6.ts, 15, 43)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a16 : new (x: { a: T; b: T; }) => T[], Symbol(A.a16, Decl(assignmentCompatWithConstructSignatures6.ts, 15, 43)) +>b16 : new (x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithConstructSignatures6.ts, 39, 3)) b16 = x.a16; >b16 = x.a16 : new (x: { a: T; b: T; }) => T[] ->b16 : new (x: { a: T; b: T; }) => T[] ->x.a16 : new (x: { a: T; b: T; }) => T[] ->x : A ->a16 : new (x: { a: T; b: T; }) => T[] +>b16 : new (x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithConstructSignatures6.ts, 39, 3)) +>x.a16 : new (x: { a: T; b: T; }) => T[], Symbol(A.a16, Decl(assignmentCompatWithConstructSignatures6.ts, 15, 43)) +>x : A, Symbol(x, Decl(assignmentCompatWithConstructSignatures6.ts, 19, 3)) +>a16 : new (x: { a: T; b: T; }) => T[], Symbol(A.a16, Decl(assignmentCompatWithConstructSignatures6.ts, 15, 43)) diff --git a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.types b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.types index ac503fb1873..0656fe1310d 100644 --- a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.types +++ b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.types @@ -2,26 +2,26 @@ // some complex cases of assignment compat of generic signatures that stress contextual signature instantiation var f: (x: S) => void ->f : (x: S) => void ->S : S ->p : string ->x : S ->S : S +>f : (x: S) => void, Symbol(f, Decl(assignmentCompatWithGenericCallSignatures.ts, 2, 3)) +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures.ts, 2, 8)) +>p : string, Symbol(p, Decl(assignmentCompatWithGenericCallSignatures.ts, 2, 19)) +>x : S, Symbol(x, Decl(assignmentCompatWithGenericCallSignatures.ts, 2, 35)) +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures.ts, 2, 8)) var g: (x: T[]) => void ->g : (x: T[]) => void ->T : T ->p : string ->x : T[] ->T : T +>g : (x: T[]) => void, Symbol(g, Decl(assignmentCompatWithGenericCallSignatures.ts, 3, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures.ts, 3, 8)) +>p : string, Symbol(p, Decl(assignmentCompatWithGenericCallSignatures.ts, 3, 19)) +>x : T[], Symbol(x, Decl(assignmentCompatWithGenericCallSignatures.ts, 3, 33)) +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures.ts, 3, 8)) f = g; // ok >f = g : (x: T[]) => void ->f : (x: S) => void ->g : (x: T[]) => void +>f : (x: S) => void, Symbol(f, Decl(assignmentCompatWithGenericCallSignatures.ts, 2, 3)) +>g : (x: T[]) => void, Symbol(g, Decl(assignmentCompatWithGenericCallSignatures.ts, 3, 3)) g = f; // ok >g = f : (x: S) => void ->g : (x: T[]) => void ->f : (x: S) => void +>g : (x: T[]) => void, Symbol(g, Decl(assignmentCompatWithGenericCallSignatures.ts, 3, 3)) +>f : (x: S) => void, Symbol(f, Decl(assignmentCompatWithGenericCallSignatures.ts, 2, 3)) diff --git a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures2.types b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures2.types index a5f3f06b9c8..196e69f9aab 100644 --- a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures2.types +++ b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures2.types @@ -2,43 +2,43 @@ // some complex cases of assignment compat of generic signatures. No contextual signature instantiation interface A { ->A : A +>A : A, Symbol(A, Decl(assignmentCompatWithGenericCallSignatures2.ts, 0, 0)) (x: T, ...y: T[][]): void ->T : T ->x : T ->T : T ->y : T[][] ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures2.ts, 3, 5)) +>x : T, Symbol(x, Decl(assignmentCompatWithGenericCallSignatures2.ts, 3, 8)) +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures2.ts, 3, 5)) +>y : T[][], Symbol(y, Decl(assignmentCompatWithGenericCallSignatures2.ts, 3, 13)) +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures2.ts, 3, 5)) } interface B { ->B : B +>B : B, Symbol(B, Decl(assignmentCompatWithGenericCallSignatures2.ts, 4, 1)) (x: S, ...y: S[]): void ->S : S ->x : S ->S : S ->y : S[] ->S : S +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures2.ts, 7, 5)) +>x : S, Symbol(x, Decl(assignmentCompatWithGenericCallSignatures2.ts, 7, 8)) +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures2.ts, 7, 5)) +>y : S[], Symbol(y, Decl(assignmentCompatWithGenericCallSignatures2.ts, 7, 13)) +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures2.ts, 7, 5)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(assignmentCompatWithGenericCallSignatures2.ts, 10, 3)) +>A : A, Symbol(A, Decl(assignmentCompatWithGenericCallSignatures2.ts, 0, 0)) var b: B; ->b : B ->B : B +>b : B, Symbol(b, Decl(assignmentCompatWithGenericCallSignatures2.ts, 11, 3)) +>B : B, Symbol(B, Decl(assignmentCompatWithGenericCallSignatures2.ts, 4, 1)) // Both ok a = b; >a = b : B ->a : A ->b : B +>a : A, Symbol(a, Decl(assignmentCompatWithGenericCallSignatures2.ts, 10, 3)) +>b : B, Symbol(b, Decl(assignmentCompatWithGenericCallSignatures2.ts, 11, 3)) b = a; >b = a : A ->b : B ->a : A +>b : B, Symbol(b, Decl(assignmentCompatWithGenericCallSignatures2.ts, 11, 3)) +>a : A, Symbol(a, Decl(assignmentCompatWithGenericCallSignatures2.ts, 10, 3)) diff --git a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures3.types b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures3.types index 0e2eec9c02d..e00e62ab37e 100644 --- a/tests/baselines/reference/assignmentCompatWithGenericCallSignatures3.types +++ b/tests/baselines/reference/assignmentCompatWithGenericCallSignatures3.types @@ -2,52 +2,52 @@ // some complex cases of assignment compat of generic signatures that stress contextual signature instantiation interface I { ->I : I ->T : T ->S : S +>I : I, Symbol(I, Decl(assignmentCompatWithGenericCallSignatures3.ts, 0, 0)) +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 2, 12)) +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 2, 14)) (f: (x: T) => (y: S) => U): U ->U : U ->f : (x: T) => (y: S) => U ->x : T ->T : T ->y : S ->S : S ->U : U ->U : U +>U : U, Symbol(U, Decl(assignmentCompatWithGenericCallSignatures3.ts, 3, 5)) +>f : (x: T) => (y: S) => U, Symbol(f, Decl(assignmentCompatWithGenericCallSignatures3.ts, 3, 8)) +>x : T, Symbol(x, Decl(assignmentCompatWithGenericCallSignatures3.ts, 3, 12)) +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 2, 12)) +>y : S, Symbol(y, Decl(assignmentCompatWithGenericCallSignatures3.ts, 3, 22)) +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 2, 14)) +>U : U, Symbol(U, Decl(assignmentCompatWithGenericCallSignatures3.ts, 3, 5)) +>U : U, Symbol(U, Decl(assignmentCompatWithGenericCallSignatures3.ts, 3, 5)) } var g: (x: T) => (y: S) => I ->g : (x: T) => (y: S) => I ->T : T ->x : T ->T : T ->S : S ->y : S ->S : S ->I : I ->T : T ->S : S +>g : (x: T) => (y: S) => I, Symbol(g, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 8)) +>x : T, Symbol(x, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 8)) +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 21)) +>y : S, Symbol(y, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 24)) +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 21)) +>I : I, Symbol(I, Decl(assignmentCompatWithGenericCallSignatures3.ts, 0, 0)) +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 8)) +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 21)) var h: (x: T) => (y: S) => { (f: (x: T) => (y: S) => U): U } ->h : (x: T) => (y: S) => (f: (x: T) => (y: S) => U) => U ->T : T ->x : T ->T : T ->S : S ->y : S ->S : S ->U : U ->f : (x: T) => (y: S) => U ->x : T ->T : T ->y : S ->S : S ->U : U ->U : U +>h : (x: T) => (y: S) => (f: (x: T) => (y: S) => U) => U, Symbol(h, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 8)) +>x : T, Symbol(x, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 11)) +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 8)) +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 21)) +>y : S, Symbol(y, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 24)) +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 21)) +>U : U, Symbol(U, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 36)) +>f : (x: T) => (y: S) => U, Symbol(f, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 39)) +>x : T, Symbol(x, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 43)) +>T : T, Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 8)) +>y : S, Symbol(y, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 53)) +>S : S, Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 21)) +>U : U, Symbol(U, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 36)) +>U : U, Symbol(U, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 36)) g = h // ok >g = h : (x: T) => (y: S) => (f: (x: T) => (y: S) => U) => U ->g : (x: T) => (y: S) => I ->h : (x: T) => (y: S) => (f: (x: T) => (y: S) => U) => U +>g : (x: T) => (y: S) => I, Symbol(g, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 3)) +>h : (x: T) => (y: S) => (f: (x: T) => (y: S) => U) => U, Symbol(h, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 3)) diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers.types b/tests/baselines/reference/assignmentCompatWithObjectMembers.types index 940b1d7071d..2c5fa6d3dbd 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers.types +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers.types @@ -3,308 +3,310 @@ // no errors expected module SimpleTypes { ->SimpleTypes : typeof SimpleTypes +>SimpleTypes : typeof SimpleTypes, Symbol(SimpleTypes, Decl(assignmentCompatWithObjectMembers.ts, 0, 0)) class S { foo: string; } ->S : S ->foo : string +>S : S, Symbol(S, Decl(assignmentCompatWithObjectMembers.ts, 3, 20)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 4, 13)) class T { foo: string; } ->T : T ->foo : string +>T : T, Symbol(T, Decl(assignmentCompatWithObjectMembers.ts, 4, 28)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 5, 13)) var s: S; ->s : S ->S : S +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers.ts, 6, 7)) +>S : S, Symbol(S, Decl(assignmentCompatWithObjectMembers.ts, 3, 20)) var t: T; ->t : T ->T : T +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers.ts, 7, 7)) +>T : T, Symbol(T, Decl(assignmentCompatWithObjectMembers.ts, 4, 28)) interface S2 { foo: string; } ->S2 : S2 ->foo : string +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembers.ts, 7, 13)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 9, 18)) interface T2 { foo: string; } ->T2 : T2 ->foo : string +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembers.ts, 9, 33)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 10, 18)) var s2: S2; ->s2 : S2 ->S2 : S2 +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 11, 7)) +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembers.ts, 7, 13)) var t2: T2; ->t2 : T2 ->T2 : T2 +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers.ts, 12, 7)) +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembers.ts, 9, 33)) var a: { foo: string; } ->a : { foo: string; } ->foo : string +>a : { foo: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 14, 7)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 14, 12)) var b: { foo: string; } ->b : { foo: string; } ->foo : string +>b : { foo: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers.ts, 15, 7)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 15, 12)) var a2 = { foo: '' }; ->a2 : { foo: string; } +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 17, 7)) >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 17, 14)) +>'' : string var b2 = { foo: '' }; ->b2 : { foo: string; } +>b2 : { foo: string; }, Symbol(b2, Decl(assignmentCompatWithObjectMembers.ts, 18, 7)) >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 18, 14)) +>'' : string s = t; >s = t : T ->s : S ->t : T +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers.ts, 6, 7)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers.ts, 7, 7)) t = s; >t = s : S ->t : T ->s : S +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers.ts, 7, 7)) +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers.ts, 6, 7)) s = s2; >s = s2 : S2 ->s : S ->s2 : S2 +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers.ts, 6, 7)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 11, 7)) s = a2; >s = a2 : { foo: string; } ->s : S ->a2 : { foo: string; } +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers.ts, 6, 7)) +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 17, 7)) s2 = t2; >s2 = t2 : T2 ->s2 : S2 ->t2 : T2 +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 11, 7)) +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers.ts, 12, 7)) t2 = s2; >t2 = s2 : S2 ->t2 : T2 ->s2 : S2 +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers.ts, 12, 7)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 11, 7)) s2 = t; >s2 = t : T ->s2 : S2 ->t : T +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 11, 7)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers.ts, 7, 7)) s2 = b; >s2 = b : { foo: string; } ->s2 : S2 ->b : { foo: string; } +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 11, 7)) +>b : { foo: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers.ts, 15, 7)) s2 = a2; >s2 = a2 : { foo: string; } ->s2 : S2 ->a2 : { foo: string; } +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 11, 7)) +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 17, 7)) a = b; >a = b : { foo: string; } ->a : { foo: string; } ->b : { foo: string; } +>a : { foo: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 14, 7)) +>b : { foo: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers.ts, 15, 7)) b = a; >b = a : { foo: string; } ->b : { foo: string; } ->a : { foo: string; } +>b : { foo: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers.ts, 15, 7)) +>a : { foo: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 14, 7)) a = s; >a = s : S ->a : { foo: string; } ->s : S +>a : { foo: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 14, 7)) +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers.ts, 6, 7)) a = s2; >a = s2 : S2 ->a : { foo: string; } ->s2 : S2 +>a : { foo: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 14, 7)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 11, 7)) a = a2; >a = a2 : { foo: string; } ->a : { foo: string; } ->a2 : { foo: string; } +>a : { foo: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 14, 7)) +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 17, 7)) a2 = b2; >a2 = b2 : { foo: string; } ->a2 : { foo: string; } ->b2 : { foo: string; } +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 17, 7)) +>b2 : { foo: string; }, Symbol(b2, Decl(assignmentCompatWithObjectMembers.ts, 18, 7)) b2 = a2; >b2 = a2 : { foo: string; } ->b2 : { foo: string; } ->a2 : { foo: string; } +>b2 : { foo: string; }, Symbol(b2, Decl(assignmentCompatWithObjectMembers.ts, 18, 7)) +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 17, 7)) a2 = b; >a2 = b : { foo: string; } ->a2 : { foo: string; } ->b : { foo: string; } +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 17, 7)) +>b : { foo: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers.ts, 15, 7)) a2 = t2; >a2 = t2 : T2 ->a2 : { foo: string; } ->t2 : T2 +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 17, 7)) +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers.ts, 12, 7)) a2 = t; >a2 = t : T ->a2 : { foo: string; } ->t : T +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 17, 7)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers.ts, 7, 7)) } module ObjectTypes { ->ObjectTypes : typeof ObjectTypes +>ObjectTypes : typeof ObjectTypes, Symbol(ObjectTypes, Decl(assignmentCompatWithObjectMembers.ts, 42, 1)) class S { foo: S; } ->S : S ->foo : S ->S : S +>S : S, Symbol(S, Decl(assignmentCompatWithObjectMembers.ts, 44, 20)) +>foo : S, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 45, 13)) +>S : S, Symbol(S, Decl(assignmentCompatWithObjectMembers.ts, 44, 20)) class T { foo: T; } ->T : T ->foo : T ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithObjectMembers.ts, 45, 23)) +>foo : T, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 46, 13)) +>T : T, Symbol(T, Decl(assignmentCompatWithObjectMembers.ts, 45, 23)) var s: S; ->s : S ->S : S +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers.ts, 47, 7)) +>S : S, Symbol(S, Decl(assignmentCompatWithObjectMembers.ts, 44, 20)) var t: T; ->t : T ->T : T +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers.ts, 48, 7)) +>T : T, Symbol(T, Decl(assignmentCompatWithObjectMembers.ts, 45, 23)) interface S2 { foo: S2; } ->S2 : S2 ->foo : S2 ->S2 : S2 +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembers.ts, 48, 13)) +>foo : S2, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 50, 18)) +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembers.ts, 48, 13)) interface T2 { foo: T2; } ->T2 : T2 ->foo : T2 ->T2 : T2 +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembers.ts, 50, 29)) +>foo : T2, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 51, 18)) +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembers.ts, 50, 29)) var s2: S2; ->s2 : S2 ->S2 : S2 +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 52, 7)) +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembers.ts, 48, 13)) var t2: T2; ->t2 : T2 ->T2 : T2 +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers.ts, 53, 7)) +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembers.ts, 50, 29)) var a: { foo: typeof a; } ->a : { foo: any; } ->foo : { foo: any; } ->a : { foo: any; } +>a : { foo: any; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 55, 7)) +>foo : { foo: any; }, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 55, 12)) +>a : { foo: any; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 55, 7)) var b: { foo: typeof b; } ->b : { foo: any; } ->foo : { foo: any; } ->b : { foo: any; } +>b : { foo: any; }, Symbol(b, Decl(assignmentCompatWithObjectMembers.ts, 56, 7)) +>foo : { foo: any; }, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 56, 12)) +>b : { foo: any; }, Symbol(b, Decl(assignmentCompatWithObjectMembers.ts, 56, 7)) var a2 = { foo: a2 }; ->a2 : any +>a2 : any, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 58, 7)) >{ foo: a2 } : { foo: any; } ->foo : any ->a2 : any +>foo : any, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 58, 14)) +>a2 : any, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 58, 7)) var b2 = { foo: b2 }; ->b2 : any +>b2 : any, Symbol(b2, Decl(assignmentCompatWithObjectMembers.ts, 59, 7)) >{ foo: b2 } : { foo: any; } ->foo : any ->b2 : any +>foo : any, Symbol(foo, Decl(assignmentCompatWithObjectMembers.ts, 59, 14)) +>b2 : any, Symbol(b2, Decl(assignmentCompatWithObjectMembers.ts, 59, 7)) s = t; >s = t : T ->s : S ->t : T +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers.ts, 47, 7)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers.ts, 48, 7)) t = s; >t = s : S ->t : T ->s : S +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers.ts, 48, 7)) +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers.ts, 47, 7)) s = s2; >s = s2 : S2 ->s : S ->s2 : S2 +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers.ts, 47, 7)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 52, 7)) s = a2; >s = a2 : any ->s : S ->a2 : any +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers.ts, 47, 7)) +>a2 : any, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 58, 7)) s2 = t2; >s2 = t2 : T2 ->s2 : S2 ->t2 : T2 +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 52, 7)) +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers.ts, 53, 7)) t2 = s2; >t2 = s2 : S2 ->t2 : T2 ->s2 : S2 +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers.ts, 53, 7)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 52, 7)) s2 = t; >s2 = t : T ->s2 : S2 ->t : T +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 52, 7)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers.ts, 48, 7)) s2 = b; >s2 = b : { foo: any; } ->s2 : S2 ->b : { foo: any; } +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 52, 7)) +>b : { foo: any; }, Symbol(b, Decl(assignmentCompatWithObjectMembers.ts, 56, 7)) s2 = a2; >s2 = a2 : any ->s2 : S2 ->a2 : any +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 52, 7)) +>a2 : any, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 58, 7)) a = b; >a = b : { foo: any; } ->a : { foo: any; } ->b : { foo: any; } +>a : { foo: any; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 55, 7)) +>b : { foo: any; }, Symbol(b, Decl(assignmentCompatWithObjectMembers.ts, 56, 7)) b = a; >b = a : { foo: any; } ->b : { foo: any; } ->a : { foo: any; } +>b : { foo: any; }, Symbol(b, Decl(assignmentCompatWithObjectMembers.ts, 56, 7)) +>a : { foo: any; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 55, 7)) a = s; >a = s : S ->a : { foo: any; } ->s : S +>a : { foo: any; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 55, 7)) +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers.ts, 47, 7)) a = s2; >a = s2 : S2 ->a : { foo: any; } ->s2 : S2 +>a : { foo: any; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 55, 7)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers.ts, 52, 7)) a = a2; >a = a2 : any ->a : { foo: any; } ->a2 : any +>a : { foo: any; }, Symbol(a, Decl(assignmentCompatWithObjectMembers.ts, 55, 7)) +>a2 : any, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 58, 7)) a2 = b2; >a2 = b2 : any ->a2 : any ->b2 : any +>a2 : any, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 58, 7)) +>b2 : any, Symbol(b2, Decl(assignmentCompatWithObjectMembers.ts, 59, 7)) b2 = a2; >b2 = a2 : any ->b2 : any ->a2 : any +>b2 : any, Symbol(b2, Decl(assignmentCompatWithObjectMembers.ts, 59, 7)) +>a2 : any, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 58, 7)) a2 = b; >a2 = b : { foo: any; } ->a2 : any ->b : { foo: any; } +>a2 : any, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 58, 7)) +>b : { foo: any; }, Symbol(b, Decl(assignmentCompatWithObjectMembers.ts, 56, 7)) a2 = t2; >a2 = t2 : T2 ->a2 : any ->t2 : T2 +>a2 : any, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 58, 7)) +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers.ts, 53, 7)) a2 = t; >a2 = t : T ->a2 : any ->t : T +>a2 : any, Symbol(a2, Decl(assignmentCompatWithObjectMembers.ts, 58, 7)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers.ts, 48, 7)) } diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers2.types b/tests/baselines/reference/assignmentCompatWithObjectMembers2.types index 962b29732a5..435b7eff7ee 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers2.types +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers2.types @@ -3,151 +3,153 @@ // additional optional properties do not cause errors class S { foo: string; } ->S : S ->foo : string +>S : S, Symbol(S, Decl(assignmentCompatWithObjectMembers2.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers2.ts, 3, 9)) class T { foo: string; } ->T : T ->foo : string +>T : T, Symbol(T, Decl(assignmentCompatWithObjectMembers2.ts, 3, 24)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers2.ts, 4, 9)) var s: S; ->s : S ->S : S +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers2.ts, 5, 3)) +>S : S, Symbol(S, Decl(assignmentCompatWithObjectMembers2.ts, 0, 0)) var t: T; ->t : T ->T : T +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers2.ts, 6, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithObjectMembers2.ts, 3, 24)) interface S2 { foo: string; bar?: string } ->S2 : S2 ->foo : string ->bar : string +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembers2.ts, 6, 9)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers2.ts, 8, 14)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithObjectMembers2.ts, 8, 27)) interface T2 { foo: string; baz?: string } ->T2 : T2 ->foo : string ->baz : string +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembers2.ts, 8, 42)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers2.ts, 9, 14)) +>baz : string, Symbol(baz, Decl(assignmentCompatWithObjectMembers2.ts, 9, 27)) var s2: S2; ->s2 : S2 ->S2 : S2 +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers2.ts, 10, 3)) +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembers2.ts, 6, 9)) var t2: T2; ->t2 : T2 ->T2 : T2 +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers2.ts, 11, 3)) +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembers2.ts, 8, 42)) var a: { foo: string; bar?: string } ->a : { foo: string; bar?: string; } ->foo : string ->bar : string +>a : { foo: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers2.ts, 13, 3)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers2.ts, 13, 8)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithObjectMembers2.ts, 13, 21)) var b: { foo: string; baz?: string } ->b : { foo: string; baz?: string; } ->foo : string ->baz : string +>b : { foo: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers2.ts, 14, 3)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers2.ts, 14, 8)) +>baz : string, Symbol(baz, Decl(assignmentCompatWithObjectMembers2.ts, 14, 21)) var a2 = { foo: '' }; ->a2 : { foo: string; } +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers2.ts, 16, 3)) >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers2.ts, 16, 10)) +>'' : string var b2 = { foo: '' }; ->b2 : { foo: string; } +>b2 : { foo: string; }, Symbol(b2, Decl(assignmentCompatWithObjectMembers2.ts, 17, 3)) >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers2.ts, 17, 10)) +>'' : string s = t; >s = t : T ->s : S ->t : T +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers2.ts, 5, 3)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers2.ts, 6, 3)) t = s; >t = s : S ->t : T ->s : S +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers2.ts, 6, 3)) +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers2.ts, 5, 3)) s = s2; >s = s2 : S2 ->s : S ->s2 : S2 +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers2.ts, 5, 3)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers2.ts, 10, 3)) s = a2; >s = a2 : { foo: string; } ->s : S ->a2 : { foo: string; } +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers2.ts, 5, 3)) +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers2.ts, 16, 3)) s2 = t2; >s2 = t2 : T2 ->s2 : S2 ->t2 : T2 +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers2.ts, 10, 3)) +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers2.ts, 11, 3)) t2 = s2; >t2 = s2 : S2 ->t2 : T2 ->s2 : S2 +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers2.ts, 11, 3)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers2.ts, 10, 3)) s2 = t; >s2 = t : T ->s2 : S2 ->t : T +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers2.ts, 10, 3)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers2.ts, 6, 3)) s2 = b; >s2 = b : { foo: string; baz?: string; } ->s2 : S2 ->b : { foo: string; baz?: string; } +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers2.ts, 10, 3)) +>b : { foo: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers2.ts, 14, 3)) s2 = a2; >s2 = a2 : { foo: string; } ->s2 : S2 ->a2 : { foo: string; } +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers2.ts, 10, 3)) +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers2.ts, 16, 3)) a = b; >a = b : { foo: string; baz?: string; } ->a : { foo: string; bar?: string; } ->b : { foo: string; baz?: string; } +>a : { foo: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers2.ts, 13, 3)) +>b : { foo: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers2.ts, 14, 3)) b = a; >b = a : { foo: string; bar?: string; } ->b : { foo: string; baz?: string; } ->a : { foo: string; bar?: string; } +>b : { foo: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers2.ts, 14, 3)) +>a : { foo: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers2.ts, 13, 3)) a = s; >a = s : S ->a : { foo: string; bar?: string; } ->s : S +>a : { foo: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers2.ts, 13, 3)) +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers2.ts, 5, 3)) a = s2; >a = s2 : S2 ->a : { foo: string; bar?: string; } ->s2 : S2 +>a : { foo: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers2.ts, 13, 3)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers2.ts, 10, 3)) a = a2; >a = a2 : { foo: string; } ->a : { foo: string; bar?: string; } ->a2 : { foo: string; } +>a : { foo: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers2.ts, 13, 3)) +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers2.ts, 16, 3)) a2 = b2; >a2 = b2 : { foo: string; } ->a2 : { foo: string; } ->b2 : { foo: string; } +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers2.ts, 16, 3)) +>b2 : { foo: string; }, Symbol(b2, Decl(assignmentCompatWithObjectMembers2.ts, 17, 3)) b2 = a2; >b2 = a2 : { foo: string; } ->b2 : { foo: string; } ->a2 : { foo: string; } +>b2 : { foo: string; }, Symbol(b2, Decl(assignmentCompatWithObjectMembers2.ts, 17, 3)) +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers2.ts, 16, 3)) a2 = b; >a2 = b : { foo: string; baz?: string; } ->a2 : { foo: string; } ->b : { foo: string; baz?: string; } +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers2.ts, 16, 3)) +>b : { foo: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers2.ts, 14, 3)) a2 = t2; >a2 = t2 : T2 ->a2 : { foo: string; } ->t2 : T2 +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers2.ts, 16, 3)) +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers2.ts, 11, 3)) a2 = t; >a2 = t : T ->a2 : { foo: string; } ->t : T +>a2 : { foo: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembers2.ts, 16, 3)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers2.ts, 6, 3)) diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers3.types b/tests/baselines/reference/assignmentCompatWithObjectMembers3.types index 85a7e59ffbc..e608bd0ddd4 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers3.types +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers3.types @@ -3,155 +3,157 @@ // additional optional properties do not cause errors class S implements S2 { foo: string; } ->S : S ->S2 : S2 ->foo : string +>S : S, Symbol(S, Decl(assignmentCompatWithObjectMembers3.ts, 0, 0)) +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembers3.ts, 6, 9)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers3.ts, 3, 23)) class T implements T2 { foo: string; } ->T : T ->T2 : T2 ->foo : string +>T : T, Symbol(T, Decl(assignmentCompatWithObjectMembers3.ts, 3, 38)) +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembers3.ts, 8, 42)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers3.ts, 4, 23)) var s: S; ->s : S ->S : S +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers3.ts, 5, 3)) +>S : S, Symbol(S, Decl(assignmentCompatWithObjectMembers3.ts, 0, 0)) var t: T; ->t : T ->T : T +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers3.ts, 6, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithObjectMembers3.ts, 3, 38)) interface S2 { foo: string; bar?: string } ->S2 : S2 ->foo : string ->bar : string +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembers3.ts, 6, 9)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers3.ts, 8, 14)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithObjectMembers3.ts, 8, 27)) interface T2 { foo: string; baz?: string } ->T2 : T2 ->foo : string ->baz : string +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembers3.ts, 8, 42)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers3.ts, 9, 14)) +>baz : string, Symbol(baz, Decl(assignmentCompatWithObjectMembers3.ts, 9, 27)) var s2: S2; ->s2 : S2 ->S2 : S2 +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers3.ts, 10, 3)) +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembers3.ts, 6, 9)) var t2: T2; ->t2 : T2 ->T2 : T2 +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers3.ts, 11, 3)) +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembers3.ts, 8, 42)) var a: { foo: string; bar?: string } ->a : { foo: string; bar?: string; } ->foo : string ->bar : string +>a : { foo: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers3.ts, 13, 3)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers3.ts, 13, 8)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithObjectMembers3.ts, 13, 21)) var b: { foo: string; baz?: string } ->b : { foo: string; baz?: string; } ->foo : string ->baz : string +>b : { foo: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers3.ts, 14, 3)) +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers3.ts, 14, 8)) +>baz : string, Symbol(baz, Decl(assignmentCompatWithObjectMembers3.ts, 14, 21)) var a2: S2 = { foo: '' }; ->a2 : S2 ->S2 : S2 +>a2 : S2, Symbol(a2, Decl(assignmentCompatWithObjectMembers3.ts, 16, 3)) +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembers3.ts, 6, 9)) >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers3.ts, 16, 14)) +>'' : string var b2: T2 = { foo: '' }; ->b2 : T2 ->T2 : T2 +>b2 : T2, Symbol(b2, Decl(assignmentCompatWithObjectMembers3.ts, 17, 3)) +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembers3.ts, 8, 42)) >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(assignmentCompatWithObjectMembers3.ts, 17, 14)) +>'' : string s = t; >s = t : T ->s : S ->t : T +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers3.ts, 5, 3)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers3.ts, 6, 3)) t = s; >t = s : S ->t : T ->s : S +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers3.ts, 6, 3)) +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers3.ts, 5, 3)) s = s2; >s = s2 : S2 ->s : S ->s2 : S2 +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers3.ts, 5, 3)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers3.ts, 10, 3)) s = a2; >s = a2 : S2 ->s : S ->a2 : S2 +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers3.ts, 5, 3)) +>a2 : S2, Symbol(a2, Decl(assignmentCompatWithObjectMembers3.ts, 16, 3)) s2 = t2; >s2 = t2 : T2 ->s2 : S2 ->t2 : T2 +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers3.ts, 10, 3)) +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers3.ts, 11, 3)) t2 = s2; >t2 = s2 : S2 ->t2 : T2 ->s2 : S2 +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers3.ts, 11, 3)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers3.ts, 10, 3)) s2 = t; >s2 = t : T ->s2 : S2 ->t : T +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers3.ts, 10, 3)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers3.ts, 6, 3)) s2 = b; >s2 = b : { foo: string; baz?: string; } ->s2 : S2 ->b : { foo: string; baz?: string; } +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers3.ts, 10, 3)) +>b : { foo: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers3.ts, 14, 3)) s2 = a2; >s2 = a2 : S2 ->s2 : S2 ->a2 : S2 +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers3.ts, 10, 3)) +>a2 : S2, Symbol(a2, Decl(assignmentCompatWithObjectMembers3.ts, 16, 3)) a = b; >a = b : { foo: string; baz?: string; } ->a : { foo: string; bar?: string; } ->b : { foo: string; baz?: string; } +>a : { foo: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers3.ts, 13, 3)) +>b : { foo: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers3.ts, 14, 3)) b = a; >b = a : { foo: string; bar?: string; } ->b : { foo: string; baz?: string; } ->a : { foo: string; bar?: string; } +>b : { foo: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers3.ts, 14, 3)) +>a : { foo: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers3.ts, 13, 3)) a = s; >a = s : S ->a : { foo: string; bar?: string; } ->s : S +>a : { foo: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers3.ts, 13, 3)) +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembers3.ts, 5, 3)) a = s2; >a = s2 : S2 ->a : { foo: string; bar?: string; } ->s2 : S2 +>a : { foo: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers3.ts, 13, 3)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembers3.ts, 10, 3)) a = a2; >a = a2 : S2 ->a : { foo: string; bar?: string; } ->a2 : S2 +>a : { foo: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembers3.ts, 13, 3)) +>a2 : S2, Symbol(a2, Decl(assignmentCompatWithObjectMembers3.ts, 16, 3)) a2 = b2; >a2 = b2 : T2 ->a2 : S2 ->b2 : T2 +>a2 : S2, Symbol(a2, Decl(assignmentCompatWithObjectMembers3.ts, 16, 3)) +>b2 : T2, Symbol(b2, Decl(assignmentCompatWithObjectMembers3.ts, 17, 3)) b2 = a2; >b2 = a2 : S2 ->b2 : T2 ->a2 : S2 +>b2 : T2, Symbol(b2, Decl(assignmentCompatWithObjectMembers3.ts, 17, 3)) +>a2 : S2, Symbol(a2, Decl(assignmentCompatWithObjectMembers3.ts, 16, 3)) a2 = b; >a2 = b : { foo: string; baz?: string; } ->a2 : S2 ->b : { foo: string; baz?: string; } +>a2 : S2, Symbol(a2, Decl(assignmentCompatWithObjectMembers3.ts, 16, 3)) +>b : { foo: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembers3.ts, 14, 3)) a2 = t2; >a2 = t2 : T2 ->a2 : S2 ->t2 : T2 +>a2 : S2, Symbol(a2, Decl(assignmentCompatWithObjectMembers3.ts, 16, 3)) +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembers3.ts, 11, 3)) a2 = t; >a2 = t : T ->a2 : S2 ->t : T +>a2 : S2, Symbol(a2, Decl(assignmentCompatWithObjectMembers3.ts, 16, 3)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembers3.ts, 6, 3)) diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersNumericNames.types b/tests/baselines/reference/assignmentCompatWithObjectMembersNumericNames.types index 4c76ce1e88a..36419b60b37 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersNumericNames.types +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersNumericNames.types @@ -3,143 +3,145 @@ // numeric named properties work correctly, no errors expected class S { 1: string; } ->S : S +>S : S, Symbol(S, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 0, 0)) class T { 1.: string; } ->T : T +>T : T, Symbol(T, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 3, 22)) var s: S; ->s : S ->S : S +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 5, 3)) +>S : S, Symbol(S, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 0, 0)) var t: T; ->t : T ->T : T +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 6, 3)) +>T : T, Symbol(T, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 3, 22)) interface S2 { 1: string; bar?: string } ->S2 : S2 ->bar : string +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 6, 9)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 8, 25)) interface T2 { 1.0: string; baz?: string } ->T2 : T2 ->baz : string +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 8, 40)) +>baz : string, Symbol(baz, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 9, 27)) var s2: S2; ->s2 : S2 ->S2 : S2 +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 10, 3)) +>S2 : S2, Symbol(S2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 6, 9)) var t2: T2; ->t2 : T2 ->T2 : T2 +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 11, 3)) +>T2 : T2, Symbol(T2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 8, 40)) var a: { 1.: string; bar?: string } ->a : { 1.: string; bar?: string; } ->bar : string +>a : { 1.: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 13, 3)) +>bar : string, Symbol(bar, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 13, 20)) var b: { 1.0: string; baz?: string } ->b : { 1.0: string; baz?: string; } ->baz : string +>b : { 1.0: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 14, 3)) +>baz : string, Symbol(baz, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 14, 21)) var a2 = { 1.0: '' }; ->a2 : { 1.0: string; } +>a2 : { 1.0: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 16, 3)) >{ 1.0: '' } : { 1.0: string; } +>'' : string var b2 = { 1: '' }; ->b2 : { 1: string; } +>b2 : { 1: string; }, Symbol(b2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 17, 3)) >{ 1: '' } : { 1: string; } +>'' : string s = t; >s = t : T ->s : S ->t : T +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 5, 3)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 6, 3)) t = s; >t = s : S ->t : T ->s : S +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 6, 3)) +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 5, 3)) s = s2; >s = s2 : S2 ->s : S ->s2 : S2 +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 5, 3)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 10, 3)) s = a2; >s = a2 : { 1.0: string; } ->s : S ->a2 : { 1.0: string; } +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 5, 3)) +>a2 : { 1.0: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 16, 3)) s2 = t2; >s2 = t2 : T2 ->s2 : S2 ->t2 : T2 +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 10, 3)) +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 11, 3)) t2 = s2; >t2 = s2 : S2 ->t2 : T2 ->s2 : S2 +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 11, 3)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 10, 3)) s2 = t; >s2 = t : T ->s2 : S2 ->t : T +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 10, 3)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 6, 3)) s2 = b; >s2 = b : { 1.0: string; baz?: string; } ->s2 : S2 ->b : { 1.0: string; baz?: string; } +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 10, 3)) +>b : { 1.0: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 14, 3)) s2 = a2; >s2 = a2 : { 1.0: string; } ->s2 : S2 ->a2 : { 1.0: string; } +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 10, 3)) +>a2 : { 1.0: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 16, 3)) a = b; >a = b : { 1.0: string; baz?: string; } ->a : { 1.: string; bar?: string; } ->b : { 1.0: string; baz?: string; } +>a : { 1.: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 13, 3)) +>b : { 1.0: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 14, 3)) b = a; >b = a : { 1.: string; bar?: string; } ->b : { 1.0: string; baz?: string; } ->a : { 1.: string; bar?: string; } +>b : { 1.0: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 14, 3)) +>a : { 1.: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 13, 3)) a = s; >a = s : S ->a : { 1.: string; bar?: string; } ->s : S +>a : { 1.: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 13, 3)) +>s : S, Symbol(s, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 5, 3)) a = s2; >a = s2 : S2 ->a : { 1.: string; bar?: string; } ->s2 : S2 +>a : { 1.: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 13, 3)) +>s2 : S2, Symbol(s2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 10, 3)) a = a2; >a = a2 : { 1.0: string; } ->a : { 1.: string; bar?: string; } ->a2 : { 1.0: string; } +>a : { 1.: string; bar?: string; }, Symbol(a, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 13, 3)) +>a2 : { 1.0: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 16, 3)) a2 = b2; >a2 = b2 : { 1: string; } ->a2 : { 1.0: string; } ->b2 : { 1: string; } +>a2 : { 1.0: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 16, 3)) +>b2 : { 1: string; }, Symbol(b2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 17, 3)) b2 = a2; >b2 = a2 : { 1.0: string; } ->b2 : { 1: string; } ->a2 : { 1.0: string; } +>b2 : { 1: string; }, Symbol(b2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 17, 3)) +>a2 : { 1.0: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 16, 3)) a2 = b; >a2 = b : { 1.0: string; baz?: string; } ->a2 : { 1.0: string; } ->b : { 1.0: string; baz?: string; } +>a2 : { 1.0: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 16, 3)) +>b : { 1.0: string; baz?: string; }, Symbol(b, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 14, 3)) a2 = t2; >a2 = t2 : T2 ->a2 : { 1.0: string; } ->t2 : T2 +>a2 : { 1.0: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 16, 3)) +>t2 : T2, Symbol(t2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 11, 3)) a2 = t; >a2 = t : T ->a2 : { 1.0: string; } ->t : T +>a2 : { 1.0: string; }, Symbol(a2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 16, 3)) +>t : T, Symbol(t, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 6, 3)) diff --git a/tests/baselines/reference/assignmentCompatability1.types b/tests/baselines/reference/assignmentCompatability1.types index 9949fc14bf5..77534e4f011 100644 --- a/tests/baselines/reference/assignmentCompatability1.types +++ b/tests/baselines/reference/assignmentCompatability1.types @@ -1,41 +1,42 @@ === tests/cases/compiler/assignmentCompatability1.ts === module __test1__ { ->__test1__ : typeof __test1__ +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability1.ts, 0, 0)) export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional ->T : T ->U : U ->one : T ->T : T ->two : U ->U : U ->obj4 : interfaceWithPublicAndOptional ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability1.ts, 0, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability1.ts, 1, 52)) +>U : U, Symbol(U, Decl(assignmentCompatability1.ts, 1, 54)) +>one : T, Symbol(one, Decl(assignmentCompatability1.ts, 1, 58)) +>T : T, Symbol(T, Decl(assignmentCompatability1.ts, 1, 52)) +>two : U, Symbol(two, Decl(assignmentCompatability1.ts, 1, 66)) +>U : U, Symbol(U, Decl(assignmentCompatability1.ts, 1, 54)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability1.ts, 1, 83)) +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability1.ts, 0, 18)) >{ one: 1 } : { one: number; } ->one : number +>one : number, Symbol(one, Decl(assignmentCompatability1.ts, 1, 139)) +>1 : number export var __val__obj4 = obj4; ->__val__obj4 : interfaceWithPublicAndOptional ->obj4 : interfaceWithPublicAndOptional +>__val__obj4 : interfaceWithPublicAndOptional, Symbol(__val__obj4, Decl(assignmentCompatability1.ts, 2, 14)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability1.ts, 1, 83)) } module __test2__ { ->__test2__ : typeof __test2__ +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability1.ts, 3, 1)) export var aa = {};; ->aa : {} +>aa : {}, Symbol(aa, Decl(assignmentCompatability1.ts, 5, 14)) >{} : {} export var __val__aa = aa; ->__val__aa : {} ->aa : {} +>__val__aa : {}, Symbol(__val__aa, Decl(assignmentCompatability1.ts, 6, 14)) +>aa : {}, Symbol(aa, Decl(assignmentCompatability1.ts, 5, 14)) } __test2__.__val__aa = __test1__.__val__obj4 >__test2__.__val__aa = __test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test2__.__val__aa : {} ->__test2__ : typeof __test2__ ->__val__aa : {} ->__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test1__ : typeof __test1__ ->__val__obj4 : __test1__.interfaceWithPublicAndOptional +>__test2__.__val__aa : {}, Symbol(__test2__.__val__aa, Decl(assignmentCompatability1.ts, 6, 14)) +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability1.ts, 3, 1)) +>__val__aa : {}, Symbol(__test2__.__val__aa, Decl(assignmentCompatability1.ts, 6, 14)) +>__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability1.ts, 2, 14)) +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability1.ts, 0, 0)) +>__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability1.ts, 2, 14)) diff --git a/tests/baselines/reference/assignmentCompatability2.types b/tests/baselines/reference/assignmentCompatability2.types index 16da45c7e35..1e69d5da524 100644 --- a/tests/baselines/reference/assignmentCompatability2.types +++ b/tests/baselines/reference/assignmentCompatability2.types @@ -1,40 +1,41 @@ === tests/cases/compiler/assignmentCompatability2.ts === module __test1__ { ->__test1__ : typeof __test1__ +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability2.ts, 0, 0)) export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional ->T : T ->U : U ->one : T ->T : T ->two : U ->U : U ->obj4 : interfaceWithPublicAndOptional ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability2.ts, 0, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability2.ts, 1, 52)) +>U : U, Symbol(U, Decl(assignmentCompatability2.ts, 1, 54)) +>one : T, Symbol(one, Decl(assignmentCompatability2.ts, 1, 58)) +>T : T, Symbol(T, Decl(assignmentCompatability2.ts, 1, 52)) +>two : U, Symbol(two, Decl(assignmentCompatability2.ts, 1, 66)) +>U : U, Symbol(U, Decl(assignmentCompatability2.ts, 1, 54)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability2.ts, 1, 83)) +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability2.ts, 0, 18)) >{ one: 1 } : { one: number; } ->one : number +>one : number, Symbol(one, Decl(assignmentCompatability2.ts, 1, 139)) +>1 : number export var __val__obj4 = obj4; ->__val__obj4 : interfaceWithPublicAndOptional ->obj4 : interfaceWithPublicAndOptional +>__val__obj4 : interfaceWithPublicAndOptional, Symbol(__val__obj4, Decl(assignmentCompatability2.ts, 2, 14)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability2.ts, 1, 83)) } module __test2__ { ->__test2__ : typeof __test2__ +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability2.ts, 3, 1)) export var aa:{};; ->aa : {} +>aa : {}, Symbol(aa, Decl(assignmentCompatability2.ts, 5, 14)) export var __val__aa = aa; ->__val__aa : {} ->aa : {} +>__val__aa : {}, Symbol(__val__aa, Decl(assignmentCompatability2.ts, 6, 14)) +>aa : {}, Symbol(aa, Decl(assignmentCompatability2.ts, 5, 14)) } __test2__.__val__aa = __test1__.__val__obj4 >__test2__.__val__aa = __test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test2__.__val__aa : {} ->__test2__ : typeof __test2__ ->__val__aa : {} ->__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test1__ : typeof __test1__ ->__val__obj4 : __test1__.interfaceWithPublicAndOptional +>__test2__.__val__aa : {}, Symbol(__test2__.__val__aa, Decl(assignmentCompatability2.ts, 6, 14)) +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability2.ts, 3, 1)) +>__val__aa : {}, Symbol(__test2__.__val__aa, Decl(assignmentCompatability2.ts, 6, 14)) +>__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability2.ts, 2, 14)) +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability2.ts, 0, 0)) +>__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability2.ts, 2, 14)) diff --git a/tests/baselines/reference/assignmentCompatability3.types b/tests/baselines/reference/assignmentCompatability3.types index 61279b9c7fa..50dea2b4411 100644 --- a/tests/baselines/reference/assignmentCompatability3.types +++ b/tests/baselines/reference/assignmentCompatability3.types @@ -1,42 +1,44 @@ === tests/cases/compiler/assignmentCompatability3.ts === module __test1__ { ->__test1__ : typeof __test1__ +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability3.ts, 0, 0)) export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional ->T : T ->U : U ->one : T ->T : T ->two : U ->U : U ->obj4 : interfaceWithPublicAndOptional ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability3.ts, 0, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability3.ts, 1, 52)) +>U : U, Symbol(U, Decl(assignmentCompatability3.ts, 1, 54)) +>one : T, Symbol(one, Decl(assignmentCompatability3.ts, 1, 58)) +>T : T, Symbol(T, Decl(assignmentCompatability3.ts, 1, 52)) +>two : U, Symbol(two, Decl(assignmentCompatability3.ts, 1, 66)) +>U : U, Symbol(U, Decl(assignmentCompatability3.ts, 1, 54)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability3.ts, 1, 83)) +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability3.ts, 0, 18)) >{ one: 1 } : { one: number; } ->one : number +>one : number, Symbol(one, Decl(assignmentCompatability3.ts, 1, 139)) +>1 : number export var __val__obj4 = obj4; ->__val__obj4 : interfaceWithPublicAndOptional ->obj4 : interfaceWithPublicAndOptional +>__val__obj4 : interfaceWithPublicAndOptional, Symbol(__val__obj4, Decl(assignmentCompatability3.ts, 2, 14)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability3.ts, 1, 83)) } module __test2__ { ->__test2__ : typeof __test2__ +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability3.ts, 3, 1)) export var obj = {one: 1}; ->obj : { one: number; } +>obj : { one: number; }, Symbol(obj, Decl(assignmentCompatability3.ts, 5, 14)) >{one: 1} : { one: number; } ->one : number +>one : number, Symbol(one, Decl(assignmentCompatability3.ts, 5, 22)) +>1 : number export var __val__obj = obj; ->__val__obj : { one: number; } ->obj : { one: number; } +>__val__obj : { one: number; }, Symbol(__val__obj, Decl(assignmentCompatability3.ts, 6, 14)) +>obj : { one: number; }, Symbol(obj, Decl(assignmentCompatability3.ts, 5, 14)) } __test2__.__val__obj = __test1__.__val__obj4 >__test2__.__val__obj = __test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test2__.__val__obj : { one: number; } ->__test2__ : typeof __test2__ ->__val__obj : { one: number; } ->__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test1__ : typeof __test1__ ->__val__obj4 : __test1__.interfaceWithPublicAndOptional +>__test2__.__val__obj : { one: number; }, Symbol(__test2__.__val__obj, Decl(assignmentCompatability3.ts, 6, 14)) +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability3.ts, 3, 1)) +>__val__obj : { one: number; }, Symbol(__test2__.__val__obj, Decl(assignmentCompatability3.ts, 6, 14)) +>__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability3.ts, 2, 14)) +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability3.ts, 0, 0)) +>__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability3.ts, 2, 14)) diff --git a/tests/baselines/reference/assignmentCompatability4.types b/tests/baselines/reference/assignmentCompatability4.types index f7e5801e9b3..e81d6d75011 100644 --- a/tests/baselines/reference/assignmentCompatability4.types +++ b/tests/baselines/reference/assignmentCompatability4.types @@ -1,41 +1,42 @@ === tests/cases/compiler/assignmentCompatability4.ts === module __test1__ { ->__test1__ : typeof __test1__ +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability4.ts, 0, 0)) export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional ->T : T ->U : U ->one : T ->T : T ->two : U ->U : U ->obj4 : interfaceWithPublicAndOptional ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability4.ts, 0, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability4.ts, 1, 52)) +>U : U, Symbol(U, Decl(assignmentCompatability4.ts, 1, 54)) +>one : T, Symbol(one, Decl(assignmentCompatability4.ts, 1, 58)) +>T : T, Symbol(T, Decl(assignmentCompatability4.ts, 1, 52)) +>two : U, Symbol(two, Decl(assignmentCompatability4.ts, 1, 66)) +>U : U, Symbol(U, Decl(assignmentCompatability4.ts, 1, 54)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability4.ts, 1, 83)) +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability4.ts, 0, 18)) >{ one: 1 } : { one: number; } ->one : number +>one : number, Symbol(one, Decl(assignmentCompatability4.ts, 1, 139)) +>1 : number export var __val__obj4 = obj4; ->__val__obj4 : interfaceWithPublicAndOptional ->obj4 : interfaceWithPublicAndOptional +>__val__obj4 : interfaceWithPublicAndOptional, Symbol(__val__obj4, Decl(assignmentCompatability4.ts, 2, 14)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability4.ts, 1, 83)) } module __test2__ { ->__test2__ : typeof __test2__ +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability4.ts, 3, 1)) export var aa:{one:number;};; ->aa : { one: number; } ->one : number +>aa : { one: number; }, Symbol(aa, Decl(assignmentCompatability4.ts, 5, 14)) +>one : number, Symbol(one, Decl(assignmentCompatability4.ts, 5, 19)) export var __val__aa = aa; ->__val__aa : { one: number; } ->aa : { one: number; } +>__val__aa : { one: number; }, Symbol(__val__aa, Decl(assignmentCompatability4.ts, 6, 14)) +>aa : { one: number; }, Symbol(aa, Decl(assignmentCompatability4.ts, 5, 14)) } __test2__.__val__aa = __test1__.__val__obj4 >__test2__.__val__aa = __test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test2__.__val__aa : { one: number; } ->__test2__ : typeof __test2__ ->__val__aa : { one: number; } ->__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test1__ : typeof __test1__ ->__val__obj4 : __test1__.interfaceWithPublicAndOptional +>__test2__.__val__aa : { one: number; }, Symbol(__test2__.__val__aa, Decl(assignmentCompatability4.ts, 6, 14)) +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability4.ts, 3, 1)) +>__val__aa : { one: number; }, Symbol(__test2__.__val__aa, Decl(assignmentCompatability4.ts, 6, 14)) +>__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability4.ts, 2, 14)) +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability4.ts, 0, 0)) +>__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability4.ts, 2, 14)) diff --git a/tests/baselines/reference/assignmentCompatability5.types b/tests/baselines/reference/assignmentCompatability5.types index 80eda3e510b..d94f0d51dc6 100644 --- a/tests/baselines/reference/assignmentCompatability5.types +++ b/tests/baselines/reference/assignmentCompatability5.types @@ -1,47 +1,49 @@ === tests/cases/compiler/assignmentCompatability5.ts === module __test1__ { ->__test1__ : typeof __test1__ +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability5.ts, 0, 0)) export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional ->T : T ->U : U ->one : T ->T : T ->two : U ->U : U ->obj4 : interfaceWithPublicAndOptional ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability5.ts, 0, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability5.ts, 1, 52)) +>U : U, Symbol(U, Decl(assignmentCompatability5.ts, 1, 54)) +>one : T, Symbol(one, Decl(assignmentCompatability5.ts, 1, 58)) +>T : T, Symbol(T, Decl(assignmentCompatability5.ts, 1, 52)) +>two : U, Symbol(two, Decl(assignmentCompatability5.ts, 1, 66)) +>U : U, Symbol(U, Decl(assignmentCompatability5.ts, 1, 54)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability5.ts, 1, 83)) +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability5.ts, 0, 18)) >{ one: 1 } : { one: number; } ->one : number +>one : number, Symbol(one, Decl(assignmentCompatability5.ts, 1, 139)) +>1 : number export var __val__obj4 = obj4; ->__val__obj4 : interfaceWithPublicAndOptional ->obj4 : interfaceWithPublicAndOptional +>__val__obj4 : interfaceWithPublicAndOptional, Symbol(__val__obj4, Decl(assignmentCompatability5.ts, 2, 14)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability5.ts, 1, 83)) } module __test2__ { ->__test2__ : typeof __test2__ +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability5.ts, 3, 1)) export interface interfaceOne { one: T; }; var obj1: interfaceOne = { one: 1 };; ->interfaceOne : interfaceOne ->T : T ->one : T ->T : T ->obj1 : interfaceOne ->interfaceOne : interfaceOne +>interfaceOne : interfaceOne, Symbol(interfaceOne, Decl(assignmentCompatability5.ts, 4, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability5.ts, 5, 52)) +>one : T, Symbol(one, Decl(assignmentCompatability5.ts, 5, 56)) +>T : T, Symbol(T, Decl(assignmentCompatability5.ts, 5, 52)) +>obj1 : interfaceOne, Symbol(obj1, Decl(assignmentCompatability5.ts, 5, 86)) +>interfaceOne : interfaceOne, Symbol(interfaceOne, Decl(assignmentCompatability5.ts, 4, 18)) >{ one: 1 } : { one: number; } ->one : number +>one : number, Symbol(one, Decl(assignmentCompatability5.ts, 5, 117)) +>1 : number export var __val__obj1 = obj1; ->__val__obj1 : interfaceOne ->obj1 : interfaceOne +>__val__obj1 : interfaceOne, Symbol(__val__obj1, Decl(assignmentCompatability5.ts, 6, 14)) +>obj1 : interfaceOne, Symbol(obj1, Decl(assignmentCompatability5.ts, 5, 86)) } __test2__.__val__obj1 = __test1__.__val__obj4 >__test2__.__val__obj1 = __test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test2__.__val__obj1 : __test2__.interfaceOne ->__test2__ : typeof __test2__ ->__val__obj1 : __test2__.interfaceOne ->__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test1__ : typeof __test1__ ->__val__obj4 : __test1__.interfaceWithPublicAndOptional +>__test2__.__val__obj1 : __test2__.interfaceOne, Symbol(__test2__.__val__obj1, Decl(assignmentCompatability5.ts, 6, 14)) +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability5.ts, 3, 1)) +>__val__obj1 : __test2__.interfaceOne, Symbol(__test2__.__val__obj1, Decl(assignmentCompatability5.ts, 6, 14)) +>__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability5.ts, 2, 14)) +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability5.ts, 0, 0)) +>__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability5.ts, 2, 14)) diff --git a/tests/baselines/reference/assignmentCompatability6.types b/tests/baselines/reference/assignmentCompatability6.types index 5e9ae8c6a2f..26d0d801452 100644 --- a/tests/baselines/reference/assignmentCompatability6.types +++ b/tests/baselines/reference/assignmentCompatability6.types @@ -1,46 +1,47 @@ === tests/cases/compiler/assignmentCompatability6.ts === module __test1__ { ->__test1__ : typeof __test1__ +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability6.ts, 0, 0)) export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional ->T : T ->U : U ->one : T ->T : T ->two : U ->U : U ->obj4 : interfaceWithPublicAndOptional ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability6.ts, 0, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability6.ts, 1, 52)) +>U : U, Symbol(U, Decl(assignmentCompatability6.ts, 1, 54)) +>one : T, Symbol(one, Decl(assignmentCompatability6.ts, 1, 58)) +>T : T, Symbol(T, Decl(assignmentCompatability6.ts, 1, 52)) +>two : U, Symbol(two, Decl(assignmentCompatability6.ts, 1, 66)) +>U : U, Symbol(U, Decl(assignmentCompatability6.ts, 1, 54)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability6.ts, 1, 83)) +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability6.ts, 0, 18)) >{ one: 1 } : { one: number; } ->one : number +>one : number, Symbol(one, Decl(assignmentCompatability6.ts, 1, 139)) +>1 : number export var __val__obj4 = obj4; ->__val__obj4 : interfaceWithPublicAndOptional ->obj4 : interfaceWithPublicAndOptional +>__val__obj4 : interfaceWithPublicAndOptional, Symbol(__val__obj4, Decl(assignmentCompatability6.ts, 2, 14)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability6.ts, 1, 83)) } module __test2__ { ->__test2__ : typeof __test2__ +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability6.ts, 3, 1)) export interface interfaceWithOptional { one?: T; }; var obj3: interfaceWithOptional = { };; ->interfaceWithOptional : interfaceWithOptional ->T : T ->one : T ->T : T ->obj3 : interfaceWithOptional ->interfaceWithOptional : interfaceWithOptional +>interfaceWithOptional : interfaceWithOptional, Symbol(interfaceWithOptional, Decl(assignmentCompatability6.ts, 4, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability6.ts, 5, 52)) +>one : T, Symbol(one, Decl(assignmentCompatability6.ts, 5, 56)) +>T : T, Symbol(T, Decl(assignmentCompatability6.ts, 5, 52)) +>obj3 : interfaceWithOptional, Symbol(obj3, Decl(assignmentCompatability6.ts, 5, 86)) +>interfaceWithOptional : interfaceWithOptional, Symbol(interfaceWithOptional, Decl(assignmentCompatability6.ts, 4, 18)) >{ } : {} export var __val__obj3 = obj3; ->__val__obj3 : interfaceWithOptional ->obj3 : interfaceWithOptional +>__val__obj3 : interfaceWithOptional, Symbol(__val__obj3, Decl(assignmentCompatability6.ts, 6, 14)) +>obj3 : interfaceWithOptional, Symbol(obj3, Decl(assignmentCompatability6.ts, 5, 86)) } __test2__.__val__obj3 = __test1__.__val__obj4 >__test2__.__val__obj3 = __test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test2__.__val__obj3 : __test2__.interfaceWithOptional ->__test2__ : typeof __test2__ ->__val__obj3 : __test2__.interfaceWithOptional ->__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test1__ : typeof __test1__ ->__val__obj4 : __test1__.interfaceWithPublicAndOptional +>__test2__.__val__obj3 : __test2__.interfaceWithOptional, Symbol(__test2__.__val__obj3, Decl(assignmentCompatability6.ts, 6, 14)) +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability6.ts, 3, 1)) +>__val__obj3 : __test2__.interfaceWithOptional, Symbol(__test2__.__val__obj3, Decl(assignmentCompatability6.ts, 6, 14)) +>__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability6.ts, 2, 14)) +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability6.ts, 0, 0)) +>__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability6.ts, 2, 14)) diff --git a/tests/baselines/reference/assignmentCompatability7.types b/tests/baselines/reference/assignmentCompatability7.types index b7b2ab70566..1850305efb6 100644 --- a/tests/baselines/reference/assignmentCompatability7.types +++ b/tests/baselines/reference/assignmentCompatability7.types @@ -1,50 +1,52 @@ === tests/cases/compiler/assignmentCompatability7.ts === module __test1__ { ->__test1__ : typeof __test1__ +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability7.ts, 0, 0)) export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional ->T : T ->U : U ->one : T ->T : T ->two : U ->U : U ->obj4 : interfaceWithPublicAndOptional ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability7.ts, 0, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability7.ts, 1, 52)) +>U : U, Symbol(U, Decl(assignmentCompatability7.ts, 1, 54)) +>one : T, Symbol(one, Decl(assignmentCompatability7.ts, 1, 58)) +>T : T, Symbol(T, Decl(assignmentCompatability7.ts, 1, 52)) +>two : U, Symbol(two, Decl(assignmentCompatability7.ts, 1, 66)) +>U : U, Symbol(U, Decl(assignmentCompatability7.ts, 1, 54)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability7.ts, 1, 83)) +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability7.ts, 0, 18)) >{ one: 1 } : { one: number; } ->one : number +>one : number, Symbol(one, Decl(assignmentCompatability7.ts, 1, 139)) +>1 : number export var __val__obj4 = obj4; ->__val__obj4 : interfaceWithPublicAndOptional ->obj4 : interfaceWithPublicAndOptional +>__val__obj4 : interfaceWithPublicAndOptional, Symbol(__val__obj4, Decl(assignmentCompatability7.ts, 2, 14)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability7.ts, 1, 83)) } module __test2__ { ->__test2__ : typeof __test2__ +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability7.ts, 3, 1)) export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional ->T : T ->U : U ->one : T ->T : T ->two : U ->U : U ->obj4 : interfaceWithPublicAndOptional ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability7.ts, 4, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability7.ts, 5, 52)) +>U : U, Symbol(U, Decl(assignmentCompatability7.ts, 5, 54)) +>one : T, Symbol(one, Decl(assignmentCompatability7.ts, 5, 58)) +>T : T, Symbol(T, Decl(assignmentCompatability7.ts, 5, 52)) +>two : U, Symbol(two, Decl(assignmentCompatability7.ts, 5, 66)) +>U : U, Symbol(U, Decl(assignmentCompatability7.ts, 5, 54)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability7.ts, 5, 83)) +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability7.ts, 4, 18)) >{ one: 1 } : { one: number; } ->one : number +>one : number, Symbol(one, Decl(assignmentCompatability7.ts, 5, 139)) +>1 : number export var __val__obj4 = obj4; ->__val__obj4 : interfaceWithPublicAndOptional ->obj4 : interfaceWithPublicAndOptional +>__val__obj4 : interfaceWithPublicAndOptional, Symbol(__val__obj4, Decl(assignmentCompatability7.ts, 6, 14)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability7.ts, 5, 83)) } __test2__.__val__obj4 = __test1__.__val__obj4 >__test2__.__val__obj4 = __test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test2__.__val__obj4 : __test2__.interfaceWithPublicAndOptional ->__test2__ : typeof __test2__ ->__val__obj4 : __test2__.interfaceWithPublicAndOptional ->__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test1__ : typeof __test1__ ->__val__obj4 : __test1__.interfaceWithPublicAndOptional +>__test2__.__val__obj4 : __test2__.interfaceWithPublicAndOptional, Symbol(__test2__.__val__obj4, Decl(assignmentCompatability7.ts, 6, 14)) +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability7.ts, 3, 1)) +>__val__obj4 : __test2__.interfaceWithPublicAndOptional, Symbol(__test2__.__val__obj4, Decl(assignmentCompatability7.ts, 6, 14)) +>__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability7.ts, 2, 14)) +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability7.ts, 0, 0)) +>__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability7.ts, 2, 14)) diff --git a/tests/baselines/reference/assignmentCompatability8.types b/tests/baselines/reference/assignmentCompatability8.types index 1c009eea482..bffaf69d2f1 100644 --- a/tests/baselines/reference/assignmentCompatability8.types +++ b/tests/baselines/reference/assignmentCompatability8.types @@ -1,46 +1,48 @@ === tests/cases/compiler/assignmentCompatability8.ts === module __test1__ { ->__test1__ : typeof __test1__ +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability8.ts, 0, 0)) export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional ->T : T ->U : U ->one : T ->T : T ->two : U ->U : U ->obj4 : interfaceWithPublicAndOptional ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability8.ts, 0, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability8.ts, 1, 52)) +>U : U, Symbol(U, Decl(assignmentCompatability8.ts, 1, 54)) +>one : T, Symbol(one, Decl(assignmentCompatability8.ts, 1, 58)) +>T : T, Symbol(T, Decl(assignmentCompatability8.ts, 1, 52)) +>two : U, Symbol(two, Decl(assignmentCompatability8.ts, 1, 66)) +>U : U, Symbol(U, Decl(assignmentCompatability8.ts, 1, 54)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability8.ts, 1, 83)) +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability8.ts, 0, 18)) >{ one: 1 } : { one: number; } ->one : number +>one : number, Symbol(one, Decl(assignmentCompatability8.ts, 1, 139)) +>1 : number export var __val__obj4 = obj4; ->__val__obj4 : interfaceWithPublicAndOptional ->obj4 : interfaceWithPublicAndOptional +>__val__obj4 : interfaceWithPublicAndOptional, Symbol(__val__obj4, Decl(assignmentCompatability8.ts, 2, 14)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability8.ts, 1, 83)) } module __test2__ { ->__test2__ : typeof __test2__ +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability8.ts, 3, 1)) export class classWithPublic { constructor(public one: T) {} } var x1 = new classWithPublic(1);; ->classWithPublic : classWithPublic ->T : T ->one : T ->T : T ->x1 : classWithPublic +>classWithPublic : classWithPublic, Symbol(classWithPublic, Decl(assignmentCompatability8.ts, 4, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability8.ts, 5, 44)) +>one : T, Symbol(one, Decl(assignmentCompatability8.ts, 5, 61)) +>T : T, Symbol(T, Decl(assignmentCompatability8.ts, 5, 44)) +>x1 : classWithPublic, Symbol(x1, Decl(assignmentCompatability8.ts, 5, 107)) >new classWithPublic(1) : classWithPublic ->classWithPublic : typeof classWithPublic +>classWithPublic : typeof classWithPublic, Symbol(classWithPublic, Decl(assignmentCompatability8.ts, 4, 18)) +>1 : number export var __val__x1 = x1; ->__val__x1 : classWithPublic ->x1 : classWithPublic +>__val__x1 : classWithPublic, Symbol(__val__x1, Decl(assignmentCompatability8.ts, 6, 14)) +>x1 : classWithPublic, Symbol(x1, Decl(assignmentCompatability8.ts, 5, 107)) } __test2__.__val__x1 = __test1__.__val__obj4 >__test2__.__val__x1 = __test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test2__.__val__x1 : __test2__.classWithPublic ->__test2__ : typeof __test2__ ->__val__x1 : __test2__.classWithPublic ->__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test1__ : typeof __test1__ ->__val__obj4 : __test1__.interfaceWithPublicAndOptional +>__test2__.__val__x1 : __test2__.classWithPublic, Symbol(__test2__.__val__x1, Decl(assignmentCompatability8.ts, 6, 14)) +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability8.ts, 3, 1)) +>__val__x1 : __test2__.classWithPublic, Symbol(__test2__.__val__x1, Decl(assignmentCompatability8.ts, 6, 14)) +>__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability8.ts, 2, 14)) +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability8.ts, 0, 0)) +>__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability8.ts, 2, 14)) diff --git a/tests/baselines/reference/assignmentCompatability9.types b/tests/baselines/reference/assignmentCompatability9.types index a8235220bec..508e058acce 100644 --- a/tests/baselines/reference/assignmentCompatability9.types +++ b/tests/baselines/reference/assignmentCompatability9.types @@ -1,46 +1,47 @@ === tests/cases/compiler/assignmentCompatability9.ts === module __test1__ { ->__test1__ : typeof __test1__ +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability9.ts, 0, 0)) export interface interfaceWithPublicAndOptional { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional = { one: 1 };; ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional ->T : T ->U : U ->one : T ->T : T ->two : U ->U : U ->obj4 : interfaceWithPublicAndOptional ->interfaceWithPublicAndOptional : interfaceWithPublicAndOptional +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability9.ts, 0, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability9.ts, 1, 52)) +>U : U, Symbol(U, Decl(assignmentCompatability9.ts, 1, 54)) +>one : T, Symbol(one, Decl(assignmentCompatability9.ts, 1, 58)) +>T : T, Symbol(T, Decl(assignmentCompatability9.ts, 1, 52)) +>two : U, Symbol(two, Decl(assignmentCompatability9.ts, 1, 66)) +>U : U, Symbol(U, Decl(assignmentCompatability9.ts, 1, 54)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability9.ts, 1, 83)) +>interfaceWithPublicAndOptional : interfaceWithPublicAndOptional, Symbol(interfaceWithPublicAndOptional, Decl(assignmentCompatability9.ts, 0, 18)) >{ one: 1 } : { one: number; } ->one : number +>one : number, Symbol(one, Decl(assignmentCompatability9.ts, 1, 139)) +>1 : number export var __val__obj4 = obj4; ->__val__obj4 : interfaceWithPublicAndOptional ->obj4 : interfaceWithPublicAndOptional +>__val__obj4 : interfaceWithPublicAndOptional, Symbol(__val__obj4, Decl(assignmentCompatability9.ts, 2, 14)) +>obj4 : interfaceWithPublicAndOptional, Symbol(obj4, Decl(assignmentCompatability9.ts, 1, 83)) } module __test2__ { ->__test2__ : typeof __test2__ +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability9.ts, 3, 1)) export class classWithOptional { constructor(public one?: T) {} } var x3 = new classWithOptional();; ->classWithOptional : classWithOptional ->T : T ->one : T ->T : T ->x3 : classWithOptional +>classWithOptional : classWithOptional, Symbol(classWithOptional, Decl(assignmentCompatability9.ts, 4, 18)) +>T : T, Symbol(T, Decl(assignmentCompatability9.ts, 5, 44)) +>one : T, Symbol(one, Decl(assignmentCompatability9.ts, 5, 61)) +>T : T, Symbol(T, Decl(assignmentCompatability9.ts, 5, 44)) +>x3 : classWithOptional, Symbol(x3, Decl(assignmentCompatability9.ts, 5, 107)) >new classWithOptional() : classWithOptional ->classWithOptional : typeof classWithOptional +>classWithOptional : typeof classWithOptional, Symbol(classWithOptional, Decl(assignmentCompatability9.ts, 4, 18)) export var __val__x3 = x3; ->__val__x3 : classWithOptional ->x3 : classWithOptional +>__val__x3 : classWithOptional, Symbol(__val__x3, Decl(assignmentCompatability9.ts, 6, 14)) +>x3 : classWithOptional, Symbol(x3, Decl(assignmentCompatability9.ts, 5, 107)) } __test2__.__val__x3 = __test1__.__val__obj4 >__test2__.__val__x3 = __test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test2__.__val__x3 : __test2__.classWithOptional ->__test2__ : typeof __test2__ ->__val__x3 : __test2__.classWithOptional ->__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional ->__test1__ : typeof __test1__ ->__val__obj4 : __test1__.interfaceWithPublicAndOptional +>__test2__.__val__x3 : __test2__.classWithOptional, Symbol(__test2__.__val__x3, Decl(assignmentCompatability9.ts, 6, 14)) +>__test2__ : typeof __test2__, Symbol(__test2__, Decl(assignmentCompatability9.ts, 3, 1)) +>__val__x3 : __test2__.classWithOptional, Symbol(__test2__.__val__x3, Decl(assignmentCompatability9.ts, 6, 14)) +>__test1__.__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability9.ts, 2, 14)) +>__test1__ : typeof __test1__, Symbol(__test1__, Decl(assignmentCompatability9.ts, 0, 0)) +>__val__obj4 : __test1__.interfaceWithPublicAndOptional, Symbol(__test1__.__val__obj4, Decl(assignmentCompatability9.ts, 2, 14)) diff --git a/tests/baselines/reference/assignmentCompatibilityForConstrainedTypeParameters.types b/tests/baselines/reference/assignmentCompatibilityForConstrainedTypeParameters.types index fab8e2baae6..885d7a35fdd 100644 --- a/tests/baselines/reference/assignmentCompatibilityForConstrainedTypeParameters.types +++ b/tests/baselines/reference/assignmentCompatibilityForConstrainedTypeParameters.types @@ -1,25 +1,25 @@ === tests/cases/compiler/assignmentCompatibilityForConstrainedTypeParameters.ts === function foo() { ->foo : () => void ->T : T ->bar : string +>foo : () => void, Symbol(foo, Decl(assignmentCompatibilityForConstrainedTypeParameters.ts, 0, 0)) +>T : T, Symbol(T, Decl(assignmentCompatibilityForConstrainedTypeParameters.ts, 0, 13)) +>bar : string, Symbol(bar, Decl(assignmentCompatibilityForConstrainedTypeParameters.ts, 0, 24)) function bar() { ->bar : () => void ->S : S ->T : T +>bar : () => void, Symbol(bar, Decl(assignmentCompatibilityForConstrainedTypeParameters.ts, 0, 43)) +>S : S, Symbol(S, Decl(assignmentCompatibilityForConstrainedTypeParameters.ts, 1, 15)) +>T : T, Symbol(T, Decl(assignmentCompatibilityForConstrainedTypeParameters.ts, 0, 13)) var x: S; ->x : S ->S : S +>x : S, Symbol(x, Decl(assignmentCompatibilityForConstrainedTypeParameters.ts, 2, 7)) +>S : S, Symbol(S, Decl(assignmentCompatibilityForConstrainedTypeParameters.ts, 1, 15)) var y: T; ->y : T ->T : T +>y : T, Symbol(y, Decl(assignmentCompatibilityForConstrainedTypeParameters.ts, 3, 7)) +>T : T, Symbol(T, Decl(assignmentCompatibilityForConstrainedTypeParameters.ts, 0, 13)) y = x; >y = x : S ->y : T ->x : S +>y : T, Symbol(y, Decl(assignmentCompatibilityForConstrainedTypeParameters.ts, 3, 7)) +>x : S, Symbol(x, Decl(assignmentCompatibilityForConstrainedTypeParameters.ts, 2, 7)) } } diff --git a/tests/baselines/reference/assignmentLHSIsReference.types b/tests/baselines/reference/assignmentLHSIsReference.types index 0d7bfad3f06..f575392e850 100644 --- a/tests/baselines/reference/assignmentLHSIsReference.types +++ b/tests/baselines/reference/assignmentLHSIsReference.types @@ -1,74 +1,76 @@ === tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsReference.ts === var value; ->value : any +>value : any, Symbol(value, Decl(assignmentLHSIsReference.ts, 0, 3)) // identifiers: variable and parameter var x1: number; ->x1 : number +>x1 : number, Symbol(x1, Decl(assignmentLHSIsReference.ts, 3, 3)) x1 = value; >x1 = value : any ->x1 : number ->value : any +>x1 : number, Symbol(x1, Decl(assignmentLHSIsReference.ts, 3, 3)) +>value : any, Symbol(value, Decl(assignmentLHSIsReference.ts, 0, 3)) function fn1(x2: number) { ->fn1 : (x2: number) => void ->x2 : number +>fn1 : (x2: number) => void, Symbol(fn1, Decl(assignmentLHSIsReference.ts, 4, 11)) +>x2 : number, Symbol(x2, Decl(assignmentLHSIsReference.ts, 6, 13)) x2 = value; >x2 = value : any ->x2 : number ->value : any +>x2 : number, Symbol(x2, Decl(assignmentLHSIsReference.ts, 6, 13)) +>value : any, Symbol(value, Decl(assignmentLHSIsReference.ts, 0, 3)) } // property accesses var x3: { a: string }; ->x3 : { a: string; } ->a : string +>x3 : { a: string; }, Symbol(x3, Decl(assignmentLHSIsReference.ts, 11, 3)) +>a : string, Symbol(a, Decl(assignmentLHSIsReference.ts, 11, 9)) x3.a = value; >x3.a = value : any ->x3.a : string ->x3 : { a: string; } ->a : string ->value : any +>x3.a : string, Symbol(a, Decl(assignmentLHSIsReference.ts, 11, 9)) +>x3 : { a: string; }, Symbol(x3, Decl(assignmentLHSIsReference.ts, 11, 3)) +>a : string, Symbol(a, Decl(assignmentLHSIsReference.ts, 11, 9)) +>value : any, Symbol(value, Decl(assignmentLHSIsReference.ts, 0, 3)) x3['a'] = value; >x3['a'] = value : any >x3['a'] : string ->x3 : { a: string; } ->value : any +>x3 : { a: string; }, Symbol(x3, Decl(assignmentLHSIsReference.ts, 11, 3)) +>'a' : string, Symbol(a, Decl(assignmentLHSIsReference.ts, 11, 9)) +>value : any, Symbol(value, Decl(assignmentLHSIsReference.ts, 0, 3)) // parentheses, the contained expression is reference (x1) = value; >(x1) = value : any >(x1) : number ->x1 : number ->value : any +>x1 : number, Symbol(x1, Decl(assignmentLHSIsReference.ts, 3, 3)) +>value : any, Symbol(value, Decl(assignmentLHSIsReference.ts, 0, 3)) function fn2(x4: number) { ->fn2 : (x4: number) => void ->x4 : number +>fn2 : (x4: number) => void, Symbol(fn2, Decl(assignmentLHSIsReference.ts, 16, 13)) +>x4 : number, Symbol(x4, Decl(assignmentLHSIsReference.ts, 18, 13)) (x4) = value; >(x4) = value : any >(x4) : number ->x4 : number ->value : any +>x4 : number, Symbol(x4, Decl(assignmentLHSIsReference.ts, 18, 13)) +>value : any, Symbol(value, Decl(assignmentLHSIsReference.ts, 0, 3)) } (x3.a) = value; >(x3.a) = value : any >(x3.a) : string ->x3.a : string ->x3 : { a: string; } ->a : string ->value : any +>x3.a : string, Symbol(a, Decl(assignmentLHSIsReference.ts, 11, 9)) +>x3 : { a: string; }, Symbol(x3, Decl(assignmentLHSIsReference.ts, 11, 3)) +>a : string, Symbol(a, Decl(assignmentLHSIsReference.ts, 11, 9)) +>value : any, Symbol(value, Decl(assignmentLHSIsReference.ts, 0, 3)) (x3['a']) = value; >(x3['a']) = value : any >(x3['a']) : string >x3['a'] : string ->x3 : { a: string; } ->value : any +>x3 : { a: string; }, Symbol(x3, Decl(assignmentLHSIsReference.ts, 11, 3)) +>'a' : string, Symbol(a, Decl(assignmentLHSIsReference.ts, 11, 9)) +>value : any, Symbol(value, Decl(assignmentLHSIsReference.ts, 0, 3)) diff --git a/tests/baselines/reference/assignmentLHSIsValue.errors.txt b/tests/baselines/reference/assignmentLHSIsValue.errors.txt index cf747b44b3e..a8a57090fb8 100644 --- a/tests/baselines/reference/assignmentLHSIsValue.errors.txt +++ b/tests/baselines/reference/assignmentLHSIsValue.errors.txt @@ -14,6 +14,7 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(3 tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(31,1): error TS2364: Invalid left-hand side of assignment expression. tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(32,1): error TS2364: Invalid left-hand side of assignment expression. tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(35,9): error TS1128: Declaration or statement expected. +tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(38,1): error TS2461: Type 'any' is not an array type. tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(38,2): error TS2364: Invalid left-hand side of assignment expression. tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(38,6): error TS2364: Invalid left-hand side of assignment expression. tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(42,36): error TS1034: 'super' must be followed by an argument list or member access. @@ -38,7 +39,7 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(6 tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(70,1): error TS2364: Invalid left-hand side of assignment expression. -==== tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts (38 errors) ==== +==== tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts (39 errors) ==== // expected error for all the LHS of assignments var value; @@ -109,6 +110,8 @@ tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts(7 // array literals ['', ''] = value; + ~~~~~~~~ +!!! error TS2461: Type 'any' is not an array type. ~~ !!! error TS2364: Invalid left-hand side of assignment expression. ~~ diff --git a/tests/baselines/reference/augmentArray.types b/tests/baselines/reference/augmentArray.types index 31f7e11edca..c4e98927370 100644 --- a/tests/baselines/reference/augmentArray.types +++ b/tests/baselines/reference/augmentArray.types @@ -1,7 +1,7 @@ === tests/cases/compiler/augmentArray.ts === interface Array { ->Array : T[] ->T : T +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(augmentArray.ts, 0, 0)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(augmentArray.ts, 0, 16)) (): any[]; } diff --git a/tests/baselines/reference/augmentedTypeBracketAccessIndexSignature.types b/tests/baselines/reference/augmentedTypeBracketAccessIndexSignature.types index 4e6b51730da..0cc304eedb1 100644 --- a/tests/baselines/reference/augmentedTypeBracketAccessIndexSignature.types +++ b/tests/baselines/reference/augmentedTypeBracketAccessIndexSignature.types @@ -1,36 +1,38 @@ === tests/cases/conformance/types/members/augmentedTypeBracketAccessIndexSignature.ts === interface Foo { a } ->Foo : Foo ->a : any +>Foo : Foo, Symbol(Foo, Decl(augmentedTypeBracketAccessIndexSignature.ts, 0, 0)) +>a : any, Symbol(a, Decl(augmentedTypeBracketAccessIndexSignature.ts, 0, 15)) interface Bar { b } ->Bar : Bar ->b : any +>Bar : Bar, Symbol(Bar, Decl(augmentedTypeBracketAccessIndexSignature.ts, 0, 19)) +>b : any, Symbol(b, Decl(augmentedTypeBracketAccessIndexSignature.ts, 1, 15)) interface Object { ->Object : Object +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11), Decl(augmentedTypeBracketAccessIndexSignature.ts, 1, 19)) [n: number]: Foo; ->n : number ->Foo : Foo +>n : number, Symbol(n, Decl(augmentedTypeBracketAccessIndexSignature.ts, 4, 5)) +>Foo : Foo, Symbol(Foo, Decl(augmentedTypeBracketAccessIndexSignature.ts, 0, 0)) } interface Function { ->Function : Function +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11), Decl(augmentedTypeBracketAccessIndexSignature.ts, 5, 1)) [n: number]: Bar; ->n : number ->Bar : Bar +>n : number, Symbol(n, Decl(augmentedTypeBracketAccessIndexSignature.ts, 8, 5)) +>Bar : Bar, Symbol(Bar, Decl(augmentedTypeBracketAccessIndexSignature.ts, 0, 19)) } var a = {}[0]; // Should be Foo ->a : any +>a : any, Symbol(a, Decl(augmentedTypeBracketAccessIndexSignature.ts, 11, 3)) >{}[0] : any >{} : {} +>0 : number var b = (() => { })[0]; // Should be Bar ->b : any +>b : any, Symbol(b, Decl(augmentedTypeBracketAccessIndexSignature.ts, 12, 3)) >(() => { })[0] : any >(() => { }) : () => void >() => { } : () => void +>0 : number diff --git a/tests/baselines/reference/augmentedTypeBracketNamedPropertyAccess.types b/tests/baselines/reference/augmentedTypeBracketNamedPropertyAccess.types index 142b08928e3..24416f6691c 100644 --- a/tests/baselines/reference/augmentedTypeBracketNamedPropertyAccess.types +++ b/tests/baselines/reference/augmentedTypeBracketNamedPropertyAccess.types @@ -1,41 +1,45 @@ === tests/cases/compiler/augmentedTypeBracketNamedPropertyAccess.ts === interface Object { ->Object : Object +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11), Decl(augmentedTypeBracketNamedPropertyAccess.ts, 0, 0)) data: number; ->data : number +>data : number, Symbol(data, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 0, 18)) } interface Function { ->Function : Function +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11), Decl(augmentedTypeBracketNamedPropertyAccess.ts, 2, 1)) functionData: string; ->functionData : string +>functionData : string, Symbol(functionData, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 3, 20)) } var o = {}; ->o : {} +>o : {}, Symbol(o, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 6, 3)) >{} : {} var f = function () { }; ->f : () => void +>f : () => void, Symbol(f, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 7, 3)) >function () { } : () => void var r1 = o['data']; // Should be number ->r1 : number +>r1 : number, Symbol(r1, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 9, 3)) >o['data'] : number ->o : {} +>o : {}, Symbol(o, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 6, 3)) +>'data' : string, Symbol(Object.data, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 0, 18)) var r2 = o['functionData']; // Should be any (no property found) ->r2 : any +>r2 : any, Symbol(r2, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 10, 3)) >o['functionData'] : any ->o : {} +>o : {}, Symbol(o, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 6, 3)) +>'functionData' : string var r3 = f['functionData']; // Should be string ->r3 : string +>r3 : string, Symbol(r3, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 11, 3)) >f['functionData'] : string ->f : () => void +>f : () => void, Symbol(f, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 7, 3)) +>'functionData' : string, Symbol(Function.functionData, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 3, 20)) var r4 = f['data']; // Should be number ->r4 : number +>r4 : number, Symbol(r4, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 12, 3)) >f['data'] : number ->f : () => void +>f : () => void, Symbol(f, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 7, 3)) +>'data' : string, Symbol(Object.data, Decl(augmentedTypeBracketNamedPropertyAccess.ts, 0, 18)) diff --git a/tests/baselines/reference/augmentedTypesClass3.types b/tests/baselines/reference/augmentedTypesClass3.types index b22899b03cf..709ea5dc0f9 100644 --- a/tests/baselines/reference/augmentedTypesClass3.types +++ b/tests/baselines/reference/augmentedTypesClass3.types @@ -1,31 +1,33 @@ === tests/cases/compiler/augmentedTypesClass3.ts === // class then module class c5 { public foo() { } } ->c5 : c5 ->foo : () => void +>c5 : c5, Symbol(c5, Decl(augmentedTypesClass3.ts, 0, 0), Decl(augmentedTypesClass3.ts, 1, 29)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesClass3.ts, 1, 10)) module c5 { } // should be ok ->c5 : typeof c5 +>c5 : typeof c5, Symbol(c5, Decl(augmentedTypesClass3.ts, 0, 0), Decl(augmentedTypesClass3.ts, 1, 29)) class c5a { public foo() { } } ->c5a : c5a ->foo : () => void +>c5a : c5a, Symbol(c5a, Decl(augmentedTypesClass3.ts, 2, 13), Decl(augmentedTypesClass3.ts, 4, 30)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesClass3.ts, 4, 11)) module c5a { var y = 2; } // should be ok ->c5a : typeof c5a ->y : number +>c5a : typeof c5a, Symbol(c5a, Decl(augmentedTypesClass3.ts, 2, 13), Decl(augmentedTypesClass3.ts, 4, 30)) +>y : number, Symbol(y, Decl(augmentedTypesClass3.ts, 5, 16)) +>2 : number class c5b { public foo() { } } ->c5b : c5b ->foo : () => void +>c5b : c5b, Symbol(c5b, Decl(augmentedTypesClass3.ts, 5, 25), Decl(augmentedTypesClass3.ts, 7, 30)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesClass3.ts, 7, 11)) module c5b { export var y = 2; } // should be ok ->c5b : typeof c5b ->y : number +>c5b : typeof c5b, Symbol(c5b, Decl(augmentedTypesClass3.ts, 5, 25), Decl(augmentedTypesClass3.ts, 7, 30)) +>y : number, Symbol(y, Decl(augmentedTypesClass3.ts, 8, 23)) +>2 : number //// class then import class c5c { public foo() { } } ->c5c : c5c ->foo : () => void +>c5c : c5c, Symbol(c5c, Decl(augmentedTypesClass3.ts, 8, 32)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesClass3.ts, 11, 11)) //import c5c = require(''); diff --git a/tests/baselines/reference/augmentedTypesExternalModule1.types b/tests/baselines/reference/augmentedTypesExternalModule1.types index ec7e9194df6..4b928e9238e 100644 --- a/tests/baselines/reference/augmentedTypesExternalModule1.types +++ b/tests/baselines/reference/augmentedTypesExternalModule1.types @@ -1,11 +1,12 @@ === tests/cases/compiler/augmentedTypesExternalModule1.ts === export var a = 1; ->a : number +>a : number, Symbol(a, Decl(augmentedTypesExternalModule1.ts, 0, 10)) +>1 : number class c5 { public foo() { } } ->c5 : c5 ->foo : () => void +>c5 : c5, Symbol(c5, Decl(augmentedTypesExternalModule1.ts, 0, 17), Decl(augmentedTypesExternalModule1.ts, 1, 29)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesExternalModule1.ts, 1, 10)) module c5 { } // should be ok everywhere ->c5 : typeof c5 +>c5 : typeof c5, Symbol(c5, Decl(augmentedTypesExternalModule1.ts, 0, 17), Decl(augmentedTypesExternalModule1.ts, 1, 29)) diff --git a/tests/baselines/reference/augmentedTypesModules3b.types b/tests/baselines/reference/augmentedTypesModules3b.types index af2c33c65da..24a9fc0634a 100644 --- a/tests/baselines/reference/augmentedTypesModules3b.types +++ b/tests/baselines/reference/augmentedTypesModules3b.types @@ -1,51 +1,55 @@ === tests/cases/compiler/augmentedTypesModules3b.ts === class m3b { foo() { } } ->m3b : m3b ->foo : () => void +>m3b : m3b, Symbol(m3b, Decl(augmentedTypesModules3b.ts, 0, 0), Decl(augmentedTypesModules3b.ts, 0, 23)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesModules3b.ts, 0, 11)) module m3b { var y = 2; } ->m3b : typeof m3b ->y : number +>m3b : typeof m3b, Symbol(m3b, Decl(augmentedTypesModules3b.ts, 0, 0), Decl(augmentedTypesModules3b.ts, 0, 23)) +>y : number, Symbol(y, Decl(augmentedTypesModules3b.ts, 1, 16)) +>2 : number class m3c { foo() { } } ->m3c : m3c ->foo : () => void +>m3c : m3c, Symbol(m3c, Decl(augmentedTypesModules3b.ts, 1, 25), Decl(augmentedTypesModules3b.ts, 3, 23)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesModules3b.ts, 3, 11)) module m3c { export var y = 2; } ->m3c : typeof m3c ->y : number +>m3c : typeof m3c, Symbol(m3c, Decl(augmentedTypesModules3b.ts, 1, 25), Decl(augmentedTypesModules3b.ts, 3, 23)) +>y : number, Symbol(y, Decl(augmentedTypesModules3b.ts, 4, 23)) +>2 : number declare class m3d { foo(): void } ->m3d : m3d ->foo : () => void +>m3d : m3d, Symbol(m3d, Decl(augmentedTypesModules3b.ts, 4, 32), Decl(augmentedTypesModules3b.ts, 6, 33)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesModules3b.ts, 6, 19)) module m3d { export var y = 2; } ->m3d : typeof m3d ->y : number +>m3d : typeof m3d, Symbol(m3d, Decl(augmentedTypesModules3b.ts, 4, 32), Decl(augmentedTypesModules3b.ts, 6, 33)) +>y : number, Symbol(y, Decl(augmentedTypesModules3b.ts, 7, 23)) +>2 : number module m3e { export var y = 2; } ->m3e : typeof m3e ->y : number +>m3e : typeof m3e, Symbol(m3e, Decl(augmentedTypesModules3b.ts, 7, 32), Decl(augmentedTypesModules3b.ts, 9, 32)) +>y : number, Symbol(y, Decl(augmentedTypesModules3b.ts, 9, 23)) +>2 : number declare class m3e { foo(): void } ->m3e : m3e ->foo : () => void +>m3e : m3e, Symbol(m3e, Decl(augmentedTypesModules3b.ts, 7, 32), Decl(augmentedTypesModules3b.ts, 9, 32)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesModules3b.ts, 10, 19)) declare class m3f { foo(): void } ->m3f : m3f ->foo : () => void +>m3f : m3f, Symbol(m3f, Decl(augmentedTypesModules3b.ts, 10, 33), Decl(augmentedTypesModules3b.ts, 12, 33)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesModules3b.ts, 12, 19)) module m3f { export interface I { foo(): void } } ->m3f : typeof m3f ->I : I ->foo : () => void +>m3f : typeof m3f, Symbol(m3f, Decl(augmentedTypesModules3b.ts, 10, 33), Decl(augmentedTypesModules3b.ts, 12, 33)) +>I : I, Symbol(I, Decl(augmentedTypesModules3b.ts, 13, 12)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesModules3b.ts, 13, 33)) declare class m3g { foo(): void } ->m3g : m3g ->foo : () => void +>m3g : m3g, Symbol(m3g, Decl(augmentedTypesModules3b.ts, 13, 49), Decl(augmentedTypesModules3b.ts, 15, 33)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesModules3b.ts, 15, 19)) module m3g { export class C { foo() { } } } ->m3g : typeof m3g ->C : C ->foo : () => void +>m3g : typeof m3g, Symbol(m3g, Decl(augmentedTypesModules3b.ts, 13, 49), Decl(augmentedTypesModules3b.ts, 15, 33)) +>C : C, Symbol(C, Decl(augmentedTypesModules3b.ts, 16, 12)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesModules3b.ts, 16, 29)) diff --git a/tests/baselines/reference/augmentedTypesModules4.types b/tests/baselines/reference/augmentedTypesModules4.types index bf8922a5761..13180f98688 100644 --- a/tests/baselines/reference/augmentedTypesModules4.types +++ b/tests/baselines/reference/augmentedTypesModules4.types @@ -2,53 +2,56 @@ // module then enum // should be errors module m4 { } ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(augmentedTypesModules4.ts, 0, 0), Decl(augmentedTypesModules4.ts, 2, 13)) enum m4 { } ->m4 : m4 +>m4 : m4, Symbol(m4, Decl(augmentedTypesModules4.ts, 0, 0), Decl(augmentedTypesModules4.ts, 2, 13)) module m4a { var y = 2; } ->m4a : typeof m4a ->y : number +>m4a : typeof m4a, Symbol(m4a, Decl(augmentedTypesModules4.ts, 3, 11), Decl(augmentedTypesModules4.ts, 5, 25)) +>y : number, Symbol(y, Decl(augmentedTypesModules4.ts, 5, 16)) +>2 : number enum m4a { One } ->m4a : m4a ->One : m4a +>m4a : m4a, Symbol(m4a, Decl(augmentedTypesModules4.ts, 3, 11), Decl(augmentedTypesModules4.ts, 5, 25)) +>One : m4a, Symbol(m4a.One, Decl(augmentedTypesModules4.ts, 6, 10)) module m4b { export var y = 2; } ->m4b : typeof m4b ->y : number +>m4b : typeof m4b, Symbol(m4b, Decl(augmentedTypesModules4.ts, 6, 16), Decl(augmentedTypesModules4.ts, 8, 32)) +>y : number, Symbol(y, Decl(augmentedTypesModules4.ts, 8, 23)) +>2 : number enum m4b { One } ->m4b : m4b ->One : m4b +>m4b : m4b, Symbol(m4b, Decl(augmentedTypesModules4.ts, 6, 16), Decl(augmentedTypesModules4.ts, 8, 32)) +>One : m4b, Symbol(m4b.One, Decl(augmentedTypesModules4.ts, 9, 10)) module m4c { interface I { foo(): void } } ->m4c : typeof m4c ->I : I ->foo : () => void +>m4c : typeof m4c, Symbol(m4c, Decl(augmentedTypesModules4.ts, 9, 16), Decl(augmentedTypesModules4.ts, 11, 42)) +>I : I, Symbol(I, Decl(augmentedTypesModules4.ts, 11, 12)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesModules4.ts, 11, 26)) enum m4c { One } ->m4c : m4c ->One : m4c +>m4c : m4c, Symbol(m4c, Decl(augmentedTypesModules4.ts, 9, 16), Decl(augmentedTypesModules4.ts, 11, 42)) +>One : m4c, Symbol(m4c.One, Decl(augmentedTypesModules4.ts, 12, 10)) module m4d { class C { foo() { } } } ->m4d : typeof m4d ->C : C ->foo : () => void +>m4d : typeof m4d, Symbol(m4d, Decl(augmentedTypesModules4.ts, 12, 16), Decl(augmentedTypesModules4.ts, 14, 36)) +>C : C, Symbol(C, Decl(augmentedTypesModules4.ts, 14, 12)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesModules4.ts, 14, 22)) enum m4d { One } ->m4d : m4d ->One : m4d +>m4d : m4d, Symbol(m4d, Decl(augmentedTypesModules4.ts, 12, 16), Decl(augmentedTypesModules4.ts, 14, 36)) +>One : m4d, Symbol(m4d.One, Decl(augmentedTypesModules4.ts, 15, 10)) //// module then module module m5 { export var y = 2; } ->m5 : typeof m5 ->y : number +>m5 : typeof m5, Symbol(m5, Decl(augmentedTypesModules4.ts, 15, 16), Decl(augmentedTypesModules4.ts, 19, 31)) +>y : number, Symbol(y, Decl(augmentedTypesModules4.ts, 19, 22)) +>2 : number module m5 { export interface I { foo(): void } } // should already be reasonably well covered ->m5 : typeof m5 ->I : I ->foo : () => void +>m5 : typeof m5, Symbol(m5, Decl(augmentedTypesModules4.ts, 15, 16), Decl(augmentedTypesModules4.ts, 19, 31)) +>I : I, Symbol(I, Decl(augmentedTypesModules4.ts, 20, 11)) +>foo : () => void, Symbol(foo, Decl(augmentedTypesModules4.ts, 20, 32)) diff --git a/tests/baselines/reference/autoAsiForStaticsInClassDeclaration.types b/tests/baselines/reference/autoAsiForStaticsInClassDeclaration.types index d902f0b3eaa..ac5315bbc6e 100644 --- a/tests/baselines/reference/autoAsiForStaticsInClassDeclaration.types +++ b/tests/baselines/reference/autoAsiForStaticsInClassDeclaration.types @@ -1,10 +1,10 @@ === tests/cases/compiler/autoAsiForStaticsInClassDeclaration.ts === class C { ->C : C +>C : C, Symbol(C, Decl(autoAsiForStaticsInClassDeclaration.ts, 0, 0)) static x ->x : any +>x : any, Symbol(C.x, Decl(autoAsiForStaticsInClassDeclaration.ts, 0, 9)) static y ->y : any +>y : any, Symbol(C.y, Decl(autoAsiForStaticsInClassDeclaration.ts, 1, 12)) } diff --git a/tests/baselines/reference/autonumberingInEnums.types b/tests/baselines/reference/autonumberingInEnums.types index ce3366390e8..43d1a332f44 100644 --- a/tests/baselines/reference/autonumberingInEnums.types +++ b/tests/baselines/reference/autonumberingInEnums.types @@ -1,14 +1,15 @@ === tests/cases/compiler/autonumberingInEnums.ts === enum Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(autonumberingInEnums.ts, 0, 0), Decl(autonumberingInEnums.ts, 2, 1)) a = 1 ->a : Foo +>a : Foo, Symbol(Foo.a, Decl(autonumberingInEnums.ts, 0, 10)) +>1 : number } enum Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(autonumberingInEnums.ts, 0, 0), Decl(autonumberingInEnums.ts, 2, 1)) b // should work fine ->b : Foo +>b : Foo, Symbol(Foo.b, Decl(autonumberingInEnums.ts, 4, 10)) } diff --git a/tests/baselines/reference/avoid.types b/tests/baselines/reference/avoid.types index 853d93bdd79..043829878e4 100644 --- a/tests/baselines/reference/avoid.types +++ b/tests/baselines/reference/avoid.types @@ -1,50 +1,51 @@ === tests/cases/compiler/avoid.ts === function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(avoid.ts, 0, 0)) var x=1; ->x : number +>x : number, Symbol(x, Decl(avoid.ts, 1, 7)) +>1 : number } var y=f(); // error void fn ->y : void +>y : void, Symbol(y, Decl(avoid.ts, 4, 3)) >f() : void ->f : () => void +>f : () => void, Symbol(f, Decl(avoid.ts, 0, 0)) var why:any=f(); // error void fn ->why : any +>why : any, Symbol(why, Decl(avoid.ts, 5, 3)) >f() : void ->f : () => void +>f : () => void, Symbol(f, Decl(avoid.ts, 0, 0)) var w:any; ->w : any +>w : any, Symbol(w, Decl(avoid.ts, 6, 3)) w=f(); // error void fn >w=f() : void ->w : any +>w : any, Symbol(w, Decl(avoid.ts, 6, 3)) >f() : void ->f : () => void +>f : () => void, Symbol(f, Decl(avoid.ts, 0, 0)) class C { ->C : C +>C : C, Symbol(C, Decl(avoid.ts, 7, 6)) g() { ->g : () => void +>g : () => void, Symbol(g, Decl(avoid.ts, 9, 9)) } } var z=new C().g(); // error void fn ->z : void +>z : void, Symbol(z, Decl(avoid.ts, 15, 3)) >new C().g() : void ->new C().g : () => void +>new C().g : () => void, Symbol(C.g, Decl(avoid.ts, 9, 9)) >new C() : C ->C : typeof C ->g : () => void +>C : typeof C, Symbol(C, Decl(avoid.ts, 7, 6)) +>g : () => void, Symbol(C.g, Decl(avoid.ts, 9, 9)) var N=new f(); // ok with void fn ->N : any +>N : any, Symbol(N, Decl(avoid.ts, 16, 3)) >new f() : any ->f : () => void +>f : () => void, Symbol(f, Decl(avoid.ts, 0, 0)) diff --git a/tests/baselines/reference/badOverloadError.types b/tests/baselines/reference/badOverloadError.types index b8ae583a73c..8226707f395 100644 --- a/tests/baselines/reference/badOverloadError.types +++ b/tests/baselines/reference/badOverloadError.types @@ -1,11 +1,11 @@ === tests/cases/compiler/badOverloadError.ts === function method() { ->method : () => void +>method : () => void, Symbol(method, Decl(badOverloadError.ts, 0, 0)) var dictionary = <{ [index: string]: string; }>{}; ->dictionary : { [index: string]: string; } +>dictionary : { [index: string]: string; }, Symbol(dictionary, Decl(badOverloadError.ts, 1, 7)) ><{ [index: string]: string; }>{} : { [index: string]: string; } ->index : string +>index : string, Symbol(index, Decl(badOverloadError.ts, 1, 25)) >{} : { [x: string]: undefined; } } diff --git a/tests/baselines/reference/badThisBinding.types b/tests/baselines/reference/badThisBinding.types index a6b1c478d53..c4b65c281eb 100644 --- a/tests/baselines/reference/badThisBinding.types +++ b/tests/baselines/reference/badThisBinding.types @@ -1,29 +1,29 @@ === tests/cases/compiler/badThisBinding.ts === declare function foo(a:any): any; ->foo : (a: any) => any ->a : any +>foo : (a: any) => any, Symbol(foo, Decl(badThisBinding.ts, 0, 0)) +>a : any, Symbol(a, Decl(badThisBinding.ts, 0, 21)) declare function bar(a:any): any; ->bar : (a: any) => any ->a : any +>bar : (a: any) => any, Symbol(bar, Decl(badThisBinding.ts, 0, 33)) +>a : any, Symbol(a, Decl(badThisBinding.ts, 1, 21)) class Greeter { ->Greeter : Greeter +>Greeter : Greeter, Symbol(Greeter, Decl(badThisBinding.ts, 1, 33)) constructor() { foo(() => { >foo(() => { bar(() => { var x = this; }); }) : any ->foo : (a: any) => any +>foo : (a: any) => any, Symbol(foo, Decl(badThisBinding.ts, 0, 0)) >() => { bar(() => { var x = this; }); } : () => void bar(() => { >bar(() => { var x = this; }) : any ->bar : (a: any) => any +>bar : (a: any) => any, Symbol(bar, Decl(badThisBinding.ts, 0, 33)) >() => { var x = this; } : () => void var x = this; ->x : Greeter ->this : Greeter +>x : Greeter, Symbol(x, Decl(badThisBinding.ts, 7, 19)) +>this : Greeter, Symbol(Greeter, Decl(badThisBinding.ts, 1, 33)) }); }); diff --git a/tests/baselines/reference/baseIndexSignatureResolution.types b/tests/baselines/reference/baseIndexSignatureResolution.types index 5a7ad14d2fa..39c66d236a2 100644 --- a/tests/baselines/reference/baseIndexSignatureResolution.types +++ b/tests/baselines/reference/baseIndexSignatureResolution.types @@ -1,41 +1,43 @@ === tests/cases/compiler/baseIndexSignatureResolution.ts === class Base { private a: string; } ->Base : Base ->a : string +>Base : Base, Symbol(Base, Decl(baseIndexSignatureResolution.ts, 0, 0)) +>a : string, Symbol(a, Decl(baseIndexSignatureResolution.ts, 0, 12)) class Derived extends Base { private b: string; } ->Derived : Derived ->Base : Base ->b : string +>Derived : Derived, Symbol(Derived, Decl(baseIndexSignatureResolution.ts, 0, 33)) +>Base : Base, Symbol(Base, Decl(baseIndexSignatureResolution.ts, 0, 0)) +>b : string, Symbol(b, Decl(baseIndexSignatureResolution.ts, 1, 28)) // Note - commmenting "extends Foo" prevents the error interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(baseIndexSignatureResolution.ts, 1, 49)) [i: number]: Base; ->i : number ->Base : Base +>i : number, Symbol(i, Decl(baseIndexSignatureResolution.ts, 5, 5)) +>Base : Base, Symbol(Base, Decl(baseIndexSignatureResolution.ts, 0, 0)) } interface FooOf extends Foo { ->FooOf : FooOf ->TBase : TBase ->Base : Base ->Foo : Foo +>FooOf : FooOf, Symbol(FooOf, Decl(baseIndexSignatureResolution.ts, 6, 1)) +>TBase : TBase, Symbol(TBase, Decl(baseIndexSignatureResolution.ts, 7, 16)) +>Base : Base, Symbol(Base, Decl(baseIndexSignatureResolution.ts, 0, 0)) +>Foo : Foo, Symbol(Foo, Decl(baseIndexSignatureResolution.ts, 1, 49)) [i: number]: TBase; ->i : number ->TBase : TBase +>i : number, Symbol(i, Decl(baseIndexSignatureResolution.ts, 8, 5)) +>TBase : TBase, Symbol(TBase, Decl(baseIndexSignatureResolution.ts, 7, 16)) } var x: FooOf = null; ->x : FooOf ->FooOf : FooOf ->Derived : Derived +>x : FooOf, Symbol(x, Decl(baseIndexSignatureResolution.ts, 10, 3)) +>FooOf : FooOf, Symbol(FooOf, Decl(baseIndexSignatureResolution.ts, 6, 1)) +>Derived : Derived, Symbol(Derived, Decl(baseIndexSignatureResolution.ts, 0, 33)) +>null : null var y: Derived = x[0]; ->y : Derived ->Derived : Derived +>y : Derived, Symbol(y, Decl(baseIndexSignatureResolution.ts, 11, 3)) +>Derived : Derived, Symbol(Derived, Decl(baseIndexSignatureResolution.ts, 0, 33)) >x[0] : Derived ->x : FooOf +>x : FooOf, Symbol(x, Decl(baseIndexSignatureResolution.ts, 10, 3)) +>0 : number /* // Note - the equivalent for normal interface methods works fine: diff --git a/tests/baselines/reference/baseTypeAfterDerivedType.types b/tests/baselines/reference/baseTypeAfterDerivedType.types index 2ac50aa019a..63bd7c09595 100644 --- a/tests/baselines/reference/baseTypeAfterDerivedType.types +++ b/tests/baselines/reference/baseTypeAfterDerivedType.types @@ -1,35 +1,35 @@ === tests/cases/compiler/baseTypeAfterDerivedType.ts === interface Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(baseTypeAfterDerivedType.ts, 0, 0)) +>Base : Base, Symbol(Base, Decl(baseTypeAfterDerivedType.ts, 2, 1)) method(...args: any[]): void; ->method : (...args: any[]) => void ->args : any[] +>method : (...args: any[]) => void, Symbol(method, Decl(baseTypeAfterDerivedType.ts, 0, 32)) +>args : any[], Symbol(args, Decl(baseTypeAfterDerivedType.ts, 1, 11)) } interface Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(baseTypeAfterDerivedType.ts, 2, 1)) method(...args: any[]): void; ->method : (...args: any[]) => void ->args : any[] +>method : (...args: any[]) => void, Symbol(method, Decl(baseTypeAfterDerivedType.ts, 4, 16)) +>args : any[], Symbol(args, Decl(baseTypeAfterDerivedType.ts, 5, 11)) } class Derived2 implements Base2 { ->Derived2 : Derived2 ->Base2 : Base2 +>Derived2 : Derived2, Symbol(Derived2, Decl(baseTypeAfterDerivedType.ts, 6, 1)) +>Base2 : Base2, Symbol(Base2, Decl(baseTypeAfterDerivedType.ts, 10, 1)) method(...args: any[]): void { } ->method : (...args: any[]) => void ->args : any[] +>method : (...args: any[]) => void, Symbol(method, Decl(baseTypeAfterDerivedType.ts, 8, 33)) +>args : any[], Symbol(args, Decl(baseTypeAfterDerivedType.ts, 9, 11)) } interface Base2 { ->Base2 : Base2 +>Base2 : Base2, Symbol(Base2, Decl(baseTypeAfterDerivedType.ts, 10, 1)) method(...args: any[]): void; ->method : (...args: any[]) => void ->args : any[] +>method : (...args: any[]) => void, Symbol(method, Decl(baseTypeAfterDerivedType.ts, 12, 17)) +>args : any[], Symbol(args, Decl(baseTypeAfterDerivedType.ts, 13, 11)) } diff --git a/tests/baselines/reference/baseTypeOrderChecking.types b/tests/baselines/reference/baseTypeOrderChecking.types index 4193f255f36..65805dd4b6a 100644 --- a/tests/baselines/reference/baseTypeOrderChecking.types +++ b/tests/baselines/reference/baseTypeOrderChecking.types @@ -1,13 +1,13 @@ === tests/cases/compiler/baseTypeOrderChecking.ts === var someVariable: Class4; ->someVariable : Class4 ->Class4 : Class4 ->Class2 : Class2 +>someVariable : Class4, Symbol(someVariable, Decl(baseTypeOrderChecking.ts, 0, 3)) +>Class4 : Class4, Symbol(Class4, Decl(baseTypeOrderChecking.ts, 26, 1)) +>Class2 : Class2, Symbol(Class2, Decl(baseTypeOrderChecking.ts, 8, 1)) class Class1 ->Class1 : Class1 +>Class1 : Class1, Symbol(Class1, Decl(baseTypeOrderChecking.ts, 0, 33)) { @@ -16,8 +16,8 @@ class Class1 class Class2 extends Class1 ->Class2 : Class2 ->Class1 : Class1 +>Class2 : Class2, Symbol(Class2, Decl(baseTypeOrderChecking.ts, 8, 1)) +>Class1 : Class1, Symbol(Class1, Decl(baseTypeOrderChecking.ts, 0, 33)) { @@ -26,24 +26,24 @@ class Class2 extends Class1 class Class3 ->Class3 : Class3 ->T : T +>Class3 : Class3, Symbol(Class3, Decl(baseTypeOrderChecking.ts, 16, 1)) +>T : T, Symbol(T, Decl(baseTypeOrderChecking.ts, 20, 13)) { public memberVariable: Class2; ->memberVariable : Class2 ->Class2 : Class2 +>memberVariable : Class2, Symbol(memberVariable, Decl(baseTypeOrderChecking.ts, 22, 1)) +>Class2 : Class2, Symbol(Class2, Decl(baseTypeOrderChecking.ts, 8, 1)) } class Class4 extends Class3 ->Class4 : Class4 ->T : T ->Class3 : Class3 ->T : T +>Class4 : Class4, Symbol(Class4, Decl(baseTypeOrderChecking.ts, 26, 1)) +>T : T, Symbol(T, Decl(baseTypeOrderChecking.ts, 30, 13)) +>Class3 : Class3, Symbol(Class3, Decl(baseTypeOrderChecking.ts, 16, 1)) +>T : T, Symbol(T, Decl(baseTypeOrderChecking.ts, 30, 13)) { diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.types b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.types index eb94c140883..cce1eec6f89 100644 --- a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.types +++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.types @@ -3,116 +3,129 @@ // no errors expected here var a: { x: number; y?: number }; ->a : { x: number; y?: number; } ->x : number ->y : number +>a : { x: number; y?: number; }, Symbol(a, Decl(bestCommonTypeOfConditionalExpressions.ts, 3, 3)) +>x : number, Symbol(x, Decl(bestCommonTypeOfConditionalExpressions.ts, 3, 8)) +>y : number, Symbol(y, Decl(bestCommonTypeOfConditionalExpressions.ts, 3, 19)) var b: { x: number; z?: number }; ->b : { x: number; z?: number; } ->x : number ->z : number +>b : { x: number; z?: number; }, Symbol(b, Decl(bestCommonTypeOfConditionalExpressions.ts, 4, 3)) +>x : number, Symbol(x, Decl(bestCommonTypeOfConditionalExpressions.ts, 4, 8)) +>z : number, Symbol(z, Decl(bestCommonTypeOfConditionalExpressions.ts, 4, 19)) class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(bestCommonTypeOfConditionalExpressions.ts, 4, 33)) +>foo : string, Symbol(foo, Decl(bestCommonTypeOfConditionalExpressions.ts, 6, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(bestCommonTypeOfConditionalExpressions.ts, 6, 27)) +>Base : Base, Symbol(Base, Decl(bestCommonTypeOfConditionalExpressions.ts, 4, 33)) +>bar : string, Symbol(bar, Decl(bestCommonTypeOfConditionalExpressions.ts, 7, 28)) class Derived2 extends Base { baz: string; } ->Derived2 : Derived2 ->Base : Base ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(bestCommonTypeOfConditionalExpressions.ts, 7, 43)) +>Base : Base, Symbol(Base, Decl(bestCommonTypeOfConditionalExpressions.ts, 4, 33)) +>baz : string, Symbol(baz, Decl(bestCommonTypeOfConditionalExpressions.ts, 8, 29)) var base: Base; ->base : Base ->Base : Base +>base : Base, Symbol(base, Decl(bestCommonTypeOfConditionalExpressions.ts, 9, 3)) +>Base : Base, Symbol(Base, Decl(bestCommonTypeOfConditionalExpressions.ts, 4, 33)) var derived: Derived; ->derived : Derived ->Derived : Derived +>derived : Derived, Symbol(derived, Decl(bestCommonTypeOfConditionalExpressions.ts, 10, 3)) +>Derived : Derived, Symbol(Derived, Decl(bestCommonTypeOfConditionalExpressions.ts, 6, 27)) var derived2: Derived2; ->derived2 : Derived2 ->Derived2 : Derived2 +>derived2 : Derived2, Symbol(derived2, Decl(bestCommonTypeOfConditionalExpressions.ts, 11, 3)) +>Derived2 : Derived2, Symbol(Derived2, Decl(bestCommonTypeOfConditionalExpressions.ts, 7, 43)) var r = true ? 1 : 2; ->r : number +>r : number, Symbol(r, Decl(bestCommonTypeOfConditionalExpressions.ts, 13, 3)) >true ? 1 : 2 : number +>true : boolean +>1 : number +>2 : number var r3 = true ? 1 : {}; ->r3 : {} +>r3 : {}, Symbol(r3, Decl(bestCommonTypeOfConditionalExpressions.ts, 14, 3)) >true ? 1 : {} : {} +>true : boolean +>1 : number >{} : {} var r4 = true ? a : b; // typeof a ->r4 : { x: number; y?: number; } | { x: number; z?: number; } +>r4 : { x: number; y?: number; } | { x: number; z?: number; }, Symbol(r4, Decl(bestCommonTypeOfConditionalExpressions.ts, 15, 3)) >true ? a : b : { x: number; y?: number; } | { x: number; z?: number; } ->a : { x: number; y?: number; } ->b : { x: number; z?: number; } +>true : boolean +>a : { x: number; y?: number; }, Symbol(a, Decl(bestCommonTypeOfConditionalExpressions.ts, 3, 3)) +>b : { x: number; z?: number; }, Symbol(b, Decl(bestCommonTypeOfConditionalExpressions.ts, 4, 3)) var r5 = true ? b : a; // typeof b ->r5 : { x: number; y?: number; } | { x: number; z?: number; } +>r5 : { x: number; y?: number; } | { x: number; z?: number; }, Symbol(r5, Decl(bestCommonTypeOfConditionalExpressions.ts, 16, 3)) >true ? b : a : { x: number; y?: number; } | { x: number; z?: number; } ->b : { x: number; z?: number; } ->a : { x: number; y?: number; } +>true : boolean +>b : { x: number; z?: number; }, Symbol(b, Decl(bestCommonTypeOfConditionalExpressions.ts, 4, 3)) +>a : { x: number; y?: number; }, Symbol(a, Decl(bestCommonTypeOfConditionalExpressions.ts, 3, 3)) var r6 = true ? (x: number) => { } : (x: Object) => { }; // returns number => void ->r6 : (x: number) => void +>r6 : (x: number) => void, Symbol(r6, Decl(bestCommonTypeOfConditionalExpressions.ts, 17, 3)) >true ? (x: number) => { } : (x: Object) => { } : (x: number) => void +>true : boolean >(x: number) => { } : (x: number) => void ->x : number +>x : number, Symbol(x, Decl(bestCommonTypeOfConditionalExpressions.ts, 17, 17)) >(x: Object) => { } : (x: Object) => void ->x : Object ->Object : Object +>x : Object, Symbol(x, Decl(bestCommonTypeOfConditionalExpressions.ts, 17, 38)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var r7: (x: Object) => void = true ? (x: number) => { } : (x: Object) => { }; ->r7 : (x: Object) => void ->x : Object ->Object : Object +>r7 : (x: Object) => void, Symbol(r7, Decl(bestCommonTypeOfConditionalExpressions.ts, 18, 3)) +>x : Object, Symbol(x, Decl(bestCommonTypeOfConditionalExpressions.ts, 18, 9)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) >true ? (x: number) => { } : (x: Object) => { } : (x: number) => void +>true : boolean >(x: number) => { } : (x: number) => void ->x : number +>x : number, Symbol(x, Decl(bestCommonTypeOfConditionalExpressions.ts, 18, 38)) >(x: Object) => { } : (x: Object) => void ->x : Object ->Object : Object +>x : Object, Symbol(x, Decl(bestCommonTypeOfConditionalExpressions.ts, 18, 59)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var r8 = true ? (x: Object) => { } : (x: number) => { }; // returns Object => void ->r8 : (x: Object) => void +>r8 : (x: Object) => void, Symbol(r8, Decl(bestCommonTypeOfConditionalExpressions.ts, 19, 3)) >true ? (x: Object) => { } : (x: number) => { } : (x: Object) => void +>true : boolean >(x: Object) => { } : (x: Object) => void ->x : Object ->Object : Object +>x : Object, Symbol(x, Decl(bestCommonTypeOfConditionalExpressions.ts, 19, 17)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) >(x: number) => { } : (x: number) => void ->x : number +>x : number, Symbol(x, Decl(bestCommonTypeOfConditionalExpressions.ts, 19, 38)) var r10: Base = true ? derived : derived2; // no error since we use the contextual type in BCT ->r10 : Base ->Base : Base +>r10 : Base, Symbol(r10, Decl(bestCommonTypeOfConditionalExpressions.ts, 20, 3)) +>Base : Base, Symbol(Base, Decl(bestCommonTypeOfConditionalExpressions.ts, 4, 33)) >true ? derived : derived2 : Derived | Derived2 ->derived : Derived ->derived2 : Derived2 +>true : boolean +>derived : Derived, Symbol(derived, Decl(bestCommonTypeOfConditionalExpressions.ts, 10, 3)) +>derived2 : Derived2, Symbol(derived2, Decl(bestCommonTypeOfConditionalExpressions.ts, 11, 3)) var r11 = true ? base : derived2; ->r11 : Base +>r11 : Base, Symbol(r11, Decl(bestCommonTypeOfConditionalExpressions.ts, 21, 3)) >true ? base : derived2 : Base ->base : Base ->derived2 : Derived2 +>true : boolean +>base : Base, Symbol(base, Decl(bestCommonTypeOfConditionalExpressions.ts, 9, 3)) +>derived2 : Derived2, Symbol(derived2, Decl(bestCommonTypeOfConditionalExpressions.ts, 11, 3)) function foo5(t: T, u: U): Object { ->foo5 : (t: T, u: U) => Object ->T : T ->U : U ->t : T ->T : T ->u : U ->U : U ->Object : Object +>foo5 : (t: T, u: U) => Object, Symbol(foo5, Decl(bestCommonTypeOfConditionalExpressions.ts, 21, 33)) +>T : T, Symbol(T, Decl(bestCommonTypeOfConditionalExpressions.ts, 23, 14)) +>U : U, Symbol(U, Decl(bestCommonTypeOfConditionalExpressions.ts, 23, 16)) +>t : T, Symbol(t, Decl(bestCommonTypeOfConditionalExpressions.ts, 23, 20)) +>T : T, Symbol(T, Decl(bestCommonTypeOfConditionalExpressions.ts, 23, 14)) +>u : U, Symbol(u, Decl(bestCommonTypeOfConditionalExpressions.ts, 23, 25)) +>U : U, Symbol(U, Decl(bestCommonTypeOfConditionalExpressions.ts, 23, 16)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) return true ? t : u; // BCT is Object >true ? t : u : T | U ->t : T ->u : U +>true : boolean +>t : T, Symbol(t, Decl(bestCommonTypeOfConditionalExpressions.ts, 23, 20)) +>u : U, Symbol(u, Decl(bestCommonTypeOfConditionalExpressions.ts, 23, 25)) } diff --git a/tests/baselines/reference/bestCommonTypeOfTuple.types b/tests/baselines/reference/bestCommonTypeOfTuple.types index 0516fc4af2b..318995d5aa4 100644 --- a/tests/baselines/reference/bestCommonTypeOfTuple.types +++ b/tests/baselines/reference/bestCommonTypeOfTuple.types @@ -1,96 +1,105 @@ === tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple.ts === function f1(x: number): string { return "foo"; } ->f1 : (x: number) => string ->x : number +>f1 : (x: number) => string, Symbol(f1, Decl(bestCommonTypeOfTuple.ts, 0, 0)) +>x : number, Symbol(x, Decl(bestCommonTypeOfTuple.ts, 0, 12)) +>"foo" : string function f2(x: number): number { return 10; } ->f2 : (x: number) => number ->x : number +>f2 : (x: number) => number, Symbol(f2, Decl(bestCommonTypeOfTuple.ts, 0, 48)) +>x : number, Symbol(x, Decl(bestCommonTypeOfTuple.ts, 2, 12)) +>10 : number function f3(x: number): boolean { return true; } ->f3 : (x: number) => boolean ->x : number +>f3 : (x: number) => boolean, Symbol(f3, Decl(bestCommonTypeOfTuple.ts, 2, 45)) +>x : number, Symbol(x, Decl(bestCommonTypeOfTuple.ts, 4, 12)) +>true : boolean enum E1 { one } ->E1 : E1 ->one : E1 +>E1 : E1, Symbol(E1, Decl(bestCommonTypeOfTuple.ts, 4, 48)) +>one : E1, Symbol(E1.one, Decl(bestCommonTypeOfTuple.ts, 6, 9)) enum E2 { two } ->E2 : E2 ->two : E2 +>E2 : E2, Symbol(E2, Decl(bestCommonTypeOfTuple.ts, 6, 15)) +>two : E2, Symbol(E2.two, Decl(bestCommonTypeOfTuple.ts, 8, 9)) var t1: [(x: number) => string, (x: number) => number]; ->t1 : [(x: number) => string, (x: number) => number] ->x : number ->x : number +>t1 : [(x: number) => string, (x: number) => number], Symbol(t1, Decl(bestCommonTypeOfTuple.ts, 11, 3)) +>x : number, Symbol(x, Decl(bestCommonTypeOfTuple.ts, 11, 10)) +>x : number, Symbol(x, Decl(bestCommonTypeOfTuple.ts, 11, 33)) var t2: [E1, E2]; ->t2 : [E1, E2] ->E1 : E1 ->E2 : E2 +>t2 : [E1, E2], Symbol(t2, Decl(bestCommonTypeOfTuple.ts, 12, 3)) +>E1 : E1, Symbol(E1, Decl(bestCommonTypeOfTuple.ts, 4, 48)) +>E2 : E2, Symbol(E2, Decl(bestCommonTypeOfTuple.ts, 6, 15)) var t3: [number, any]; ->t3 : [number, any] +>t3 : [number, any], Symbol(t3, Decl(bestCommonTypeOfTuple.ts, 13, 3)) var t4: [E1, E2, number]; ->t4 : [E1, E2, number] ->E1 : E1 ->E2 : E2 +>t4 : [E1, E2, number], Symbol(t4, Decl(bestCommonTypeOfTuple.ts, 14, 3)) +>E1 : E1, Symbol(E1, Decl(bestCommonTypeOfTuple.ts, 4, 48)) +>E2 : E2, Symbol(E2, Decl(bestCommonTypeOfTuple.ts, 6, 15)) // no error t1 = [f1, f2]; >t1 = [f1, f2] : [(x: number) => string, (x: number) => number] ->t1 : [(x: number) => string, (x: number) => number] +>t1 : [(x: number) => string, (x: number) => number], Symbol(t1, Decl(bestCommonTypeOfTuple.ts, 11, 3)) >[f1, f2] : [(x: number) => string, (x: number) => number] ->f1 : (x: number) => string ->f2 : (x: number) => number +>f1 : (x: number) => string, Symbol(f1, Decl(bestCommonTypeOfTuple.ts, 0, 0)) +>f2 : (x: number) => number, Symbol(f2, Decl(bestCommonTypeOfTuple.ts, 0, 48)) t2 = [E1.one, E2.two]; >t2 = [E1.one, E2.two] : [E1, E2] ->t2 : [E1, E2] +>t2 : [E1, E2], Symbol(t2, Decl(bestCommonTypeOfTuple.ts, 12, 3)) >[E1.one, E2.two] : [E1, E2] ->E1.one : E1 ->E1 : typeof E1 ->one : E1 ->E2.two : E2 ->E2 : typeof E2 ->two : E2 +>E1.one : E1, Symbol(E1.one, Decl(bestCommonTypeOfTuple.ts, 6, 9)) +>E1 : typeof E1, Symbol(E1, Decl(bestCommonTypeOfTuple.ts, 4, 48)) +>one : E1, Symbol(E1.one, Decl(bestCommonTypeOfTuple.ts, 6, 9)) +>E2.two : E2, Symbol(E2.two, Decl(bestCommonTypeOfTuple.ts, 8, 9)) +>E2 : typeof E2, Symbol(E2, Decl(bestCommonTypeOfTuple.ts, 6, 15)) +>two : E2, Symbol(E2.two, Decl(bestCommonTypeOfTuple.ts, 8, 9)) t3 = [5, undefined]; >t3 = [5, undefined] : [number, undefined] ->t3 : [number, any] +>t3 : [number, any], Symbol(t3, Decl(bestCommonTypeOfTuple.ts, 13, 3)) >[5, undefined] : [number, undefined] ->undefined : undefined +>5 : number +>undefined : undefined, Symbol(undefined) t4 = [E1.one, E2.two, 20]; >t4 = [E1.one, E2.two, 20] : [E1, E2, number] ->t4 : [E1, E2, number] +>t4 : [E1, E2, number], Symbol(t4, Decl(bestCommonTypeOfTuple.ts, 14, 3)) >[E1.one, E2.two, 20] : [E1, E2, number] ->E1.one : E1 ->E1 : typeof E1 ->one : E1 ->E2.two : E2 ->E2 : typeof E2 ->two : E2 +>E1.one : E1, Symbol(E1.one, Decl(bestCommonTypeOfTuple.ts, 6, 9)) +>E1 : typeof E1, Symbol(E1, Decl(bestCommonTypeOfTuple.ts, 4, 48)) +>one : E1, Symbol(E1.one, Decl(bestCommonTypeOfTuple.ts, 6, 9)) +>E2.two : E2, Symbol(E2.two, Decl(bestCommonTypeOfTuple.ts, 8, 9)) +>E2 : typeof E2, Symbol(E2, Decl(bestCommonTypeOfTuple.ts, 6, 15)) +>two : E2, Symbol(E2.two, Decl(bestCommonTypeOfTuple.ts, 8, 9)) +>20 : number var e1 = t1[2]; // {} ->e1 : ((x: number) => string) | ((x: number) => number) +>e1 : ((x: number) => string) | ((x: number) => number), Symbol(e1, Decl(bestCommonTypeOfTuple.ts, 21, 3)) >t1[2] : ((x: number) => string) | ((x: number) => number) ->t1 : [(x: number) => string, (x: number) => number] +>t1 : [(x: number) => string, (x: number) => number], Symbol(t1, Decl(bestCommonTypeOfTuple.ts, 11, 3)) +>2 : number var e2 = t2[2]; // {} ->e2 : E1 | E2 +>e2 : E1 | E2, Symbol(e2, Decl(bestCommonTypeOfTuple.ts, 22, 3)) >t2[2] : E1 | E2 ->t2 : [E1, E2] +>t2 : [E1, E2], Symbol(t2, Decl(bestCommonTypeOfTuple.ts, 12, 3)) +>2 : number var e3 = t3[2]; // any ->e3 : any +>e3 : any, Symbol(e3, Decl(bestCommonTypeOfTuple.ts, 23, 3)) >t3[2] : any ->t3 : [number, any] +>t3 : [number, any], Symbol(t3, Decl(bestCommonTypeOfTuple.ts, 13, 3)) +>2 : number var e4 = t4[3]; // number ->e4 : number +>e4 : number, Symbol(e4, Decl(bestCommonTypeOfTuple.ts, 24, 3)) >t4[3] : number ->t4 : [E1, E2, number] +>t4 : [E1, E2, number], Symbol(t4, Decl(bestCommonTypeOfTuple.ts, 14, 3)) +>3 : number diff --git a/tests/baselines/reference/bestCommonTypeOfTuple2.types b/tests/baselines/reference/bestCommonTypeOfTuple2.types index a87407e98fc..9f7667816c9 100644 --- a/tests/baselines/reference/bestCommonTypeOfTuple2.types +++ b/tests/baselines/reference/bestCommonTypeOfTuple2.types @@ -1,90 +1,97 @@ === tests/cases/conformance/types/typeRelationships/bestCommonType/bestCommonTypeOfTuple2.ts === interface base { } ->base : base +>base : base, Symbol(base, Decl(bestCommonTypeOfTuple2.ts, 0, 0)) interface base1 { i } ->base1 : base1 ->i : any +>base1 : base1, Symbol(base1, Decl(bestCommonTypeOfTuple2.ts, 0, 18)) +>i : any, Symbol(i, Decl(bestCommonTypeOfTuple2.ts, 1, 17)) class C implements base { c } ->C : C ->base : base ->c : any +>C : C, Symbol(C, Decl(bestCommonTypeOfTuple2.ts, 1, 21)) +>base : base, Symbol(base, Decl(bestCommonTypeOfTuple2.ts, 0, 0)) +>c : any, Symbol(c, Decl(bestCommonTypeOfTuple2.ts, 2, 25)) class D implements base { d } ->D : D ->base : base ->d : any +>D : D, Symbol(D, Decl(bestCommonTypeOfTuple2.ts, 2, 29)) +>base : base, Symbol(base, Decl(bestCommonTypeOfTuple2.ts, 0, 0)) +>d : any, Symbol(d, Decl(bestCommonTypeOfTuple2.ts, 3, 25)) class E implements base { e } ->E : E ->base : base ->e : any +>E : E, Symbol(E, Decl(bestCommonTypeOfTuple2.ts, 3, 29)) +>base : base, Symbol(base, Decl(bestCommonTypeOfTuple2.ts, 0, 0)) +>e : any, Symbol(e, Decl(bestCommonTypeOfTuple2.ts, 4, 25)) class F extends C { f } ->F : F ->C : C ->f : any +>F : F, Symbol(F, Decl(bestCommonTypeOfTuple2.ts, 4, 29)) +>C : C, Symbol(C, Decl(bestCommonTypeOfTuple2.ts, 1, 21)) +>f : any, Symbol(f, Decl(bestCommonTypeOfTuple2.ts, 5, 19)) class C1 implements base1 { i = "foo"; c } ->C1 : C1 ->base1 : base1 ->i : string ->c : any +>C1 : C1, Symbol(C1, Decl(bestCommonTypeOfTuple2.ts, 5, 23)) +>base1 : base1, Symbol(base1, Decl(bestCommonTypeOfTuple2.ts, 0, 18)) +>i : string, Symbol(i, Decl(bestCommonTypeOfTuple2.ts, 7, 27)) +>"foo" : string +>c : any, Symbol(c, Decl(bestCommonTypeOfTuple2.ts, 7, 38)) class D1 extends C1 { i = "bar"; d } ->D1 : D1 ->C1 : C1 ->i : string ->d : any +>D1 : D1, Symbol(D1, Decl(bestCommonTypeOfTuple2.ts, 7, 42)) +>C1 : C1, Symbol(C1, Decl(bestCommonTypeOfTuple2.ts, 5, 23)) +>i : string, Symbol(i, Decl(bestCommonTypeOfTuple2.ts, 8, 21)) +>"bar" : string +>d : any, Symbol(d, Decl(bestCommonTypeOfTuple2.ts, 8, 32)) var t1: [C, base]; ->t1 : [C, base] ->C : C ->base : base +>t1 : [C, base], Symbol(t1, Decl(bestCommonTypeOfTuple2.ts, 10, 3)) +>C : C, Symbol(C, Decl(bestCommonTypeOfTuple2.ts, 1, 21)) +>base : base, Symbol(base, Decl(bestCommonTypeOfTuple2.ts, 0, 0)) var t2: [C, D]; ->t2 : [C, D] ->C : C ->D : D +>t2 : [C, D], Symbol(t2, Decl(bestCommonTypeOfTuple2.ts, 11, 3)) +>C : C, Symbol(C, Decl(bestCommonTypeOfTuple2.ts, 1, 21)) +>D : D, Symbol(D, Decl(bestCommonTypeOfTuple2.ts, 2, 29)) var t3: [C1, D1]; ->t3 : [C1, D1] ->C1 : C1 ->D1 : D1 +>t3 : [C1, D1], Symbol(t3, Decl(bestCommonTypeOfTuple2.ts, 12, 3)) +>C1 : C1, Symbol(C1, Decl(bestCommonTypeOfTuple2.ts, 5, 23)) +>D1 : D1, Symbol(D1, Decl(bestCommonTypeOfTuple2.ts, 7, 42)) var t4: [base1, C1]; ->t4 : [base1, C1] ->base1 : base1 ->C1 : C1 +>t4 : [base1, C1], Symbol(t4, Decl(bestCommonTypeOfTuple2.ts, 13, 3)) +>base1 : base1, Symbol(base1, Decl(bestCommonTypeOfTuple2.ts, 0, 18)) +>C1 : C1, Symbol(C1, Decl(bestCommonTypeOfTuple2.ts, 5, 23)) var t5: [C1, F] ->t5 : [C1, F] ->C1 : C1 ->F : F +>t5 : [C1, F], Symbol(t5, Decl(bestCommonTypeOfTuple2.ts, 14, 3)) +>C1 : C1, Symbol(C1, Decl(bestCommonTypeOfTuple2.ts, 5, 23)) +>F : F, Symbol(F, Decl(bestCommonTypeOfTuple2.ts, 4, 29)) var e11 = t1[4]; // base ->e11 : base +>e11 : base, Symbol(e11, Decl(bestCommonTypeOfTuple2.ts, 16, 3)) >t1[4] : base ->t1 : [C, base] +>t1 : [C, base], Symbol(t1, Decl(bestCommonTypeOfTuple2.ts, 10, 3)) +>4 : number var e21 = t2[4]; // {} ->e21 : C | D +>e21 : C | D, Symbol(e21, Decl(bestCommonTypeOfTuple2.ts, 17, 3)) >t2[4] : C | D ->t2 : [C, D] +>t2 : [C, D], Symbol(t2, Decl(bestCommonTypeOfTuple2.ts, 11, 3)) +>4 : number var e31 = t3[4]; // C1 ->e31 : C1 +>e31 : C1, Symbol(e31, Decl(bestCommonTypeOfTuple2.ts, 18, 3)) >t3[4] : C1 ->t3 : [C1, D1] +>t3 : [C1, D1], Symbol(t3, Decl(bestCommonTypeOfTuple2.ts, 12, 3)) +>4 : number var e41 = t4[2]; // base1 ->e41 : base1 +>e41 : base1, Symbol(e41, Decl(bestCommonTypeOfTuple2.ts, 19, 3)) >t4[2] : base1 ->t4 : [base1, C1] +>t4 : [base1, C1], Symbol(t4, Decl(bestCommonTypeOfTuple2.ts, 13, 3)) +>2 : number var e51 = t5[2]; // {} ->e51 : F | C1 +>e51 : F | C1, Symbol(e51, Decl(bestCommonTypeOfTuple2.ts, 20, 3)) >t5[2] : F | C1 ->t5 : [C1, F] +>t5 : [C1, F], Symbol(t5, Decl(bestCommonTypeOfTuple2.ts, 14, 3)) +>2 : number diff --git a/tests/baselines/reference/bestCommonTypeReturnStatement.types b/tests/baselines/reference/bestCommonTypeReturnStatement.types index 3c260ea709b..2f54897fee0 100644 --- a/tests/baselines/reference/bestCommonTypeReturnStatement.types +++ b/tests/baselines/reference/bestCommonTypeReturnStatement.types @@ -1,36 +1,39 @@ === tests/cases/compiler/bestCommonTypeReturnStatement.ts === interface IPromise { ->IPromise : IPromise ->T : T +>IPromise : IPromise, Symbol(IPromise, Decl(bestCommonTypeReturnStatement.ts, 0, 0)) +>T : T, Symbol(T, Decl(bestCommonTypeReturnStatement.ts, 0, 19)) then(successCallback: (promiseValue: T) => any, errorCallback?: (reason: any) => any): IPromise; ->then : (successCallback: (promiseValue: T) => any, errorCallback?: (reason: any) => any) => IPromise ->successCallback : (promiseValue: T) => any ->promiseValue : T ->T : T ->errorCallback : (reason: any) => any ->reason : any ->IPromise : IPromise +>then : (successCallback: (promiseValue: T) => any, errorCallback?: (reason: any) => any) => IPromise, Symbol(then, Decl(bestCommonTypeReturnStatement.ts, 0, 23)) +>successCallback : (promiseValue: T) => any, Symbol(successCallback, Decl(bestCommonTypeReturnStatement.ts, 1, 9)) +>promiseValue : T, Symbol(promiseValue, Decl(bestCommonTypeReturnStatement.ts, 1, 27)) +>T : T, Symbol(T, Decl(bestCommonTypeReturnStatement.ts, 0, 19)) +>errorCallback : (reason: any) => any, Symbol(errorCallback, Decl(bestCommonTypeReturnStatement.ts, 1, 51)) +>reason : any, Symbol(reason, Decl(bestCommonTypeReturnStatement.ts, 1, 69)) +>IPromise : IPromise, Symbol(IPromise, Decl(bestCommonTypeReturnStatement.ts, 0, 0)) } function f() { ->f : () => IPromise +>f : () => IPromise, Symbol(f, Decl(bestCommonTypeReturnStatement.ts, 2, 1)) if (true) return b(); +>true : boolean >b() : IPromise ->b : () => IPromise +>b : () => IPromise, Symbol(b, Decl(bestCommonTypeReturnStatement.ts, 7, 1)) return d(); >d() : IPromise ->d : () => IPromise +>d : () => IPromise, Symbol(d, Decl(bestCommonTypeReturnStatement.ts, 10, 45)) } function b(): IPromise { return null; } ->b : () => IPromise ->IPromise : IPromise +>b : () => IPromise, Symbol(b, Decl(bestCommonTypeReturnStatement.ts, 7, 1)) +>IPromise : IPromise, Symbol(IPromise, Decl(bestCommonTypeReturnStatement.ts, 0, 0)) +>null : null function d(): IPromise { return null; } ->d : () => IPromise ->IPromise : IPromise +>d : () => IPromise, Symbol(d, Decl(bestCommonTypeReturnStatement.ts, 10, 45)) +>IPromise : IPromise, Symbol(IPromise, Decl(bestCommonTypeReturnStatement.ts, 0, 0)) +>null : null diff --git a/tests/baselines/reference/bestCommonTypeWithContextualTyping.types b/tests/baselines/reference/bestCommonTypeWithContextualTyping.types index 606cbae9231..924a8fa7a53 100644 --- a/tests/baselines/reference/bestCommonTypeWithContextualTyping.types +++ b/tests/baselines/reference/bestCommonTypeWithContextualTyping.types @@ -1,56 +1,57 @@ === tests/cases/compiler/bestCommonTypeWithContextualTyping.ts === interface Contextual { ->Contextual : Contextual +>Contextual : Contextual, Symbol(Contextual, Decl(bestCommonTypeWithContextualTyping.ts, 0, 0)) dummy; ->dummy : any +>dummy : any, Symbol(dummy, Decl(bestCommonTypeWithContextualTyping.ts, 0, 22)) p?: number; ->p : number +>p : number, Symbol(p, Decl(bestCommonTypeWithContextualTyping.ts, 1, 10)) } interface Ellement { ->Ellement : Ellement +>Ellement : Ellement, Symbol(Ellement, Decl(bestCommonTypeWithContextualTyping.ts, 3, 1)) dummy; ->dummy : any +>dummy : any, Symbol(dummy, Decl(bestCommonTypeWithContextualTyping.ts, 5, 20)) p: any; ->p : any +>p : any, Symbol(p, Decl(bestCommonTypeWithContextualTyping.ts, 6, 10)) } var e: Ellement; ->e : Ellement ->Ellement : Ellement +>e : Ellement, Symbol(e, Decl(bestCommonTypeWithContextualTyping.ts, 10, 3)) +>Ellement : Ellement, Symbol(Ellement, Decl(bestCommonTypeWithContextualTyping.ts, 3, 1)) // All of these should pass. Neither type is a supertype of the other, but the RHS should // always use Ellement in these examples (not Contextual). Because Ellement is assignable // to Contextual, no errors. var arr: Contextual[] = [e]; // Ellement[] ->arr : Contextual[] ->Contextual : Contextual +>arr : Contextual[], Symbol(arr, Decl(bestCommonTypeWithContextualTyping.ts, 15, 3)) +>Contextual : Contextual, Symbol(Contextual, Decl(bestCommonTypeWithContextualTyping.ts, 0, 0)) >[e] : Ellement[] ->e : Ellement +>e : Ellement, Symbol(e, Decl(bestCommonTypeWithContextualTyping.ts, 10, 3)) var obj: { [s: string]: Contextual } = { s: e }; // { s: Ellement; [s: string]: Ellement } ->obj : { [s: string]: Contextual; } ->s : string ->Contextual : Contextual +>obj : { [s: string]: Contextual; }, Symbol(obj, Decl(bestCommonTypeWithContextualTyping.ts, 16, 3)) +>s : string, Symbol(s, Decl(bestCommonTypeWithContextualTyping.ts, 16, 12)) +>Contextual : Contextual, Symbol(Contextual, Decl(bestCommonTypeWithContextualTyping.ts, 0, 0)) >{ s: e } : { [x: string]: Ellement; s: Ellement; } ->s : Ellement ->e : Ellement +>s : Ellement, Symbol(s, Decl(bestCommonTypeWithContextualTyping.ts, 16, 40)) +>e : Ellement, Symbol(e, Decl(bestCommonTypeWithContextualTyping.ts, 10, 3)) var conditional: Contextual = null ? e : e; // Ellement ->conditional : Contextual ->Contextual : Contextual +>conditional : Contextual, Symbol(conditional, Decl(bestCommonTypeWithContextualTyping.ts, 18, 3)) +>Contextual : Contextual, Symbol(Contextual, Decl(bestCommonTypeWithContextualTyping.ts, 0, 0)) >null ? e : e : Ellement ->e : Ellement ->e : Ellement +>null : null +>e : Ellement, Symbol(e, Decl(bestCommonTypeWithContextualTyping.ts, 10, 3)) +>e : Ellement, Symbol(e, Decl(bestCommonTypeWithContextualTyping.ts, 10, 3)) var contextualOr: Contextual = e || e; // Ellement ->contextualOr : Contextual ->Contextual : Contextual +>contextualOr : Contextual, Symbol(contextualOr, Decl(bestCommonTypeWithContextualTyping.ts, 19, 3)) +>Contextual : Contextual, Symbol(Contextual, Decl(bestCommonTypeWithContextualTyping.ts, 0, 0)) >e || e : Ellement ->e : Ellement ->e : Ellement +>e : Ellement, Symbol(e, Decl(bestCommonTypeWithContextualTyping.ts, 10, 3)) +>e : Ellement, Symbol(e, Decl(bestCommonTypeWithContextualTyping.ts, 10, 3)) diff --git a/tests/baselines/reference/bestCommonTypeWithOptionalProperties.types b/tests/baselines/reference/bestCommonTypeWithOptionalProperties.types index df40291b0e5..84a46ee9e50 100644 --- a/tests/baselines/reference/bestCommonTypeWithOptionalProperties.types +++ b/tests/baselines/reference/bestCommonTypeWithOptionalProperties.types @@ -1,70 +1,70 @@ === tests/cases/compiler/bestCommonTypeWithOptionalProperties.ts === interface X { foo: string } ->X : X ->foo : string +>X : X, Symbol(X, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 13)) interface Y extends X { bar?: number } ->Y : Y ->X : X ->bar : number +>Y : Y, Symbol(Y, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 27)) +>X : X, Symbol(X, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 0)) +>bar : number, Symbol(bar, Decl(bestCommonTypeWithOptionalProperties.ts, 1, 23)) interface Z extends X { bar: string } ->Z : Z ->X : X ->bar : string +>Z : Z, Symbol(Z, Decl(bestCommonTypeWithOptionalProperties.ts, 1, 38)) +>X : X, Symbol(X, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(bestCommonTypeWithOptionalProperties.ts, 2, 23)) var x: X; ->x : X ->X : X +>x : X, Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3)) +>X : X, Symbol(X, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 0)) var y: Y; ->y : Y ->Y : Y +>y : Y, Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3)) +>Y : Y, Symbol(Y, Decl(bestCommonTypeWithOptionalProperties.ts, 0, 27)) var z: Z; ->z : Z ->Z : Z +>z : Z, Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3)) +>Z : Z, Symbol(Z, Decl(bestCommonTypeWithOptionalProperties.ts, 1, 38)) // All these arrays should be X[] var b1 = [x, y, z]; ->b1 : X[] +>b1 : X[], Symbol(b1, Decl(bestCommonTypeWithOptionalProperties.ts, 9, 3)) >[x, y, z] : X[] ->x : X ->y : Y ->z : Z +>x : X, Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3)) +>y : Y, Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3)) +>z : Z, Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3)) var b2 = [x, z, y]; ->b2 : X[] +>b2 : X[], Symbol(b2, Decl(bestCommonTypeWithOptionalProperties.ts, 10, 3)) >[x, z, y] : X[] ->x : X ->z : Z ->y : Y +>x : X, Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3)) +>z : Z, Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3)) +>y : Y, Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3)) var b3 = [y, x, z]; ->b3 : X[] +>b3 : X[], Symbol(b3, Decl(bestCommonTypeWithOptionalProperties.ts, 11, 3)) >[y, x, z] : X[] ->y : Y ->x : X ->z : Z +>y : Y, Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3)) +>x : X, Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3)) +>z : Z, Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3)) var b4 = [y, z, x]; ->b4 : X[] +>b4 : X[], Symbol(b4, Decl(bestCommonTypeWithOptionalProperties.ts, 12, 3)) >[y, z, x] : X[] ->y : Y ->z : Z ->x : X +>y : Y, Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3)) +>z : Z, Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3)) +>x : X, Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3)) var b5 = [z, x, y]; ->b5 : X[] +>b5 : X[], Symbol(b5, Decl(bestCommonTypeWithOptionalProperties.ts, 13, 3)) >[z, x, y] : X[] ->z : Z ->x : X ->y : Y +>z : Z, Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3)) +>x : X, Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3)) +>y : Y, Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3)) var b6 = [z, y, x]; ->b6 : X[] +>b6 : X[], Symbol(b6, Decl(bestCommonTypeWithOptionalProperties.ts, 14, 3)) >[z, y, x] : X[] ->z : Z ->y : Y ->x : X +>z : Z, Symbol(z, Decl(bestCommonTypeWithOptionalProperties.ts, 6, 3)) +>y : Y, Symbol(y, Decl(bestCommonTypeWithOptionalProperties.ts, 5, 3)) +>x : X, Symbol(x, Decl(bestCommonTypeWithOptionalProperties.ts, 4, 3)) diff --git a/tests/baselines/reference/binaryArithmatic1.types b/tests/baselines/reference/binaryArithmatic1.types index 2aec9528116..413a6b43042 100644 --- a/tests/baselines/reference/binaryArithmatic1.types +++ b/tests/baselines/reference/binaryArithmatic1.types @@ -1,5 +1,7 @@ === tests/cases/compiler/binaryArithmatic1.ts === var v = 4 | null; ->v : number +>v : number, Symbol(v, Decl(binaryArithmatic1.ts, 0, 3)) >4 | null : number +>4 : number +>null : null diff --git a/tests/baselines/reference/binaryArithmatic2.types b/tests/baselines/reference/binaryArithmatic2.types index 9fe3350fc24..a8a2e01b7ca 100644 --- a/tests/baselines/reference/binaryArithmatic2.types +++ b/tests/baselines/reference/binaryArithmatic2.types @@ -1,6 +1,7 @@ === tests/cases/compiler/binaryArithmatic2.ts === var v = 4 | undefined; ->v : number +>v : number, Symbol(v, Decl(binaryArithmatic2.ts, 0, 3)) >4 | undefined : number ->undefined : undefined +>4 : number +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/binaryIntegerLiteral.types b/tests/baselines/reference/binaryIntegerLiteral.types index f884ecc3a73..a2c4a515153 100644 --- a/tests/baselines/reference/binaryIntegerLiteral.types +++ b/tests/baselines/reference/binaryIntegerLiteral.types @@ -1,122 +1,152 @@ === tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteral.ts === var bin1 = 0b11010; ->bin1 : number +>bin1 : number, Symbol(bin1, Decl(binaryIntegerLiteral.ts, 0, 3)) +>0b11010 : number var bin2 = 0B11010; ->bin2 : number +>bin2 : number, Symbol(bin2, Decl(binaryIntegerLiteral.ts, 1, 3)) +>0B11010 : number var bin3 = 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111; ->bin3 : number +>bin3 : number, Symbol(bin3, Decl(binaryIntegerLiteral.ts, 2, 3)) +>0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111 : number var bin4 = 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111; ->bin4 : number +>bin4 : number, Symbol(bin4, Decl(binaryIntegerLiteral.ts, 3, 3)) +>0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111 : number var obj1 = { ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) >{ 0b11010: "Hello", a: bin1, bin1, b: 0b11010, 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true,} : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } 0b11010: "Hello", +>"Hello" : string + a: bin1, ->a : number ->bin1 : number +>a : number, Symbol(a, Decl(binaryIntegerLiteral.ts, 6, 21)) +>bin1 : number, Symbol(bin1, Decl(binaryIntegerLiteral.ts, 0, 3)) bin1, ->bin1 : number +>bin1 : number, Symbol(bin1, Decl(binaryIntegerLiteral.ts, 7, 12)) b: 0b11010, ->b : number +>b : number, Symbol(b, Decl(binaryIntegerLiteral.ts, 8, 9)) +>0b11010 : number 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true, +>true : boolean } var obj2 = { ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) >{ 0B11010: "World", a: bin2, bin2, b: 0B11010, 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false,} : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } 0B11010: "World", +>"World" : string + a: bin2, ->a : number ->bin2 : number +>a : number, Symbol(a, Decl(binaryIntegerLiteral.ts, 14, 21)) +>bin2 : number, Symbol(bin2, Decl(binaryIntegerLiteral.ts, 1, 3)) bin2, ->bin2 : number +>bin2 : number, Symbol(bin2, Decl(binaryIntegerLiteral.ts, 15, 12)) b: 0B11010, ->b : number +>b : number, Symbol(b, Decl(binaryIntegerLiteral.ts, 16, 9)) +>0B11010 : number 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false, +>false : boolean } obj1[0b11010]; // string >obj1[0b11010] : string ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>0b11010 : number, Symbol(0b11010, Decl(binaryIntegerLiteral.ts, 5, 12)) obj1[26]; // string >obj1[26] : string ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>26 : number, Symbol(0b11010, Decl(binaryIntegerLiteral.ts, 5, 12)) obj1["26"]; // string >obj1["26"] : string ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>"26" : string, Symbol(0b11010, Decl(binaryIntegerLiteral.ts, 5, 12)) obj1["0b11010"]; // any >obj1["0b11010"] : any ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>"0b11010" : string obj1["a"]; // number >obj1["a"] : number ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>"a" : string, Symbol(a, Decl(binaryIntegerLiteral.ts, 6, 21)) obj1["b"]; // number >obj1["b"] : number ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>"b" : string, Symbol(b, Decl(binaryIntegerLiteral.ts, 8, 9)) obj1["bin1"]; // number >obj1["bin1"] : number ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>"bin1" : string, Symbol(bin1, Decl(binaryIntegerLiteral.ts, 7, 12)) obj1["Infinity"]; // boolean >obj1["Infinity"] : boolean ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3)) +>"Infinity" : string, Symbol(0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteral.ts, 9, 15)) obj2[0B11010]; // string >obj2[0B11010] : string ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>0B11010 : number, Symbol(0B11010, Decl(binaryIntegerLiteral.ts, 13, 12)) obj2[26]; // string >obj2[26] : string ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>26 : number, Symbol(0B11010, Decl(binaryIntegerLiteral.ts, 13, 12)) obj2["26"]; // string >obj2["26"] : string ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>"26" : string, Symbol(0B11010, Decl(binaryIntegerLiteral.ts, 13, 12)) obj2["0B11010"]; // any >obj2["0B11010"] : any ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>"0B11010" : string obj2["a"]; // number >obj2["a"] : number ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>"a" : string, Symbol(a, Decl(binaryIntegerLiteral.ts, 14, 21)) obj2["b"]; // number >obj2["b"] : number ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>"b" : string, Symbol(b, Decl(binaryIntegerLiteral.ts, 16, 9)) obj2["bin2"]; // number >obj2["bin2"] : number ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>"bin2" : string, Symbol(bin2, Decl(binaryIntegerLiteral.ts, 15, 12)) obj2[9.671406556917009e+24]; // boolean >obj2[9.671406556917009e+24] : boolean ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>9.671406556917009e+24 : number, Symbol(0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteral.ts, 17, 15)) obj2["9.671406556917009e+24"]; // boolean >obj2["9.671406556917009e+24"] : boolean ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>"9.671406556917009e+24" : string, Symbol(0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteral.ts, 17, 15)) obj2["Infinity"]; // any >obj2["Infinity"] : any ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3)) +>"Infinity" : string diff --git a/tests/baselines/reference/binaryIntegerLiteralES6.types b/tests/baselines/reference/binaryIntegerLiteralES6.types index 86036ecc42f..4362f781f50 100644 --- a/tests/baselines/reference/binaryIntegerLiteralES6.types +++ b/tests/baselines/reference/binaryIntegerLiteralES6.types @@ -1,123 +1,153 @@ === tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteralES6.ts === var bin1 = 0b11010; ->bin1 : number +>bin1 : number, Symbol(bin1, Decl(binaryIntegerLiteralES6.ts, 0, 3)) +>0b11010 : number var bin2 = 0B11010; ->bin2 : number +>bin2 : number, Symbol(bin2, Decl(binaryIntegerLiteralES6.ts, 1, 3)) +>0B11010 : number var bin3 = 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111; ->bin3 : number +>bin3 : number, Symbol(bin3, Decl(binaryIntegerLiteralES6.ts, 2, 3)) +>0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111 : number var bin4 = 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111; ->bin4 : number +>bin4 : number, Symbol(bin4, Decl(binaryIntegerLiteralES6.ts, 3, 3)) +>0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111 : number var obj1 = { ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteralES6.ts, 5, 3)) >{ 0b11010: "Hello", a: bin1, bin1, b: 0b11010, 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true,} : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } 0b11010: "Hello", +>"Hello" : string + a: bin1, ->a : number ->bin1 : number +>a : number, Symbol(a, Decl(binaryIntegerLiteralES6.ts, 6, 21)) +>bin1 : number, Symbol(bin1, Decl(binaryIntegerLiteralES6.ts, 0, 3)) bin1, ->bin1 : number +>bin1 : number, Symbol(bin1, Decl(binaryIntegerLiteralES6.ts, 7, 12)) b: 0b11010, ->b : number +>b : number, Symbol(b, Decl(binaryIntegerLiteralES6.ts, 8, 9)) +>0b11010 : number 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true, +>true : boolean } var obj2 = { ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3)) >{ 0B11010: "World", a: bin2, bin2, b: 0B11010, 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false,} : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } 0B11010: "World", +>"World" : string + a: bin2, ->a : number ->bin2 : number +>a : number, Symbol(a, Decl(binaryIntegerLiteralES6.ts, 14, 21)) +>bin2 : number, Symbol(bin2, Decl(binaryIntegerLiteralES6.ts, 1, 3)) bin2, ->bin2 : number +>bin2 : number, Symbol(bin2, Decl(binaryIntegerLiteralES6.ts, 15, 12)) b: 0B11010, ->b : number +>b : number, Symbol(b, Decl(binaryIntegerLiteralES6.ts, 16, 9)) +>0B11010 : number 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false, +>false : boolean } obj1[0b11010]; // string >obj1[0b11010] : string ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteralES6.ts, 5, 3)) +>0b11010 : number, Symbol(0b11010, Decl(binaryIntegerLiteralES6.ts, 5, 12)) obj1[26]; // string >obj1[26] : string ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteralES6.ts, 5, 3)) +>26 : number, Symbol(0b11010, Decl(binaryIntegerLiteralES6.ts, 5, 12)) obj1["26"]; // string >obj1["26"] : string ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteralES6.ts, 5, 3)) +>"26" : string, Symbol(0b11010, Decl(binaryIntegerLiteralES6.ts, 5, 12)) obj1["0b11010"]; // any >obj1["0b11010"] : any ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteralES6.ts, 5, 3)) +>"0b11010" : string obj1["a"]; // number >obj1["a"] : number ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteralES6.ts, 5, 3)) +>"a" : string, Symbol(a, Decl(binaryIntegerLiteralES6.ts, 6, 21)) obj1["b"]; // number >obj1["b"] : number ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteralES6.ts, 5, 3)) +>"b" : string, Symbol(b, Decl(binaryIntegerLiteralES6.ts, 8, 9)) obj1["bin1"]; // number >obj1["bin1"] : number ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteralES6.ts, 5, 3)) +>"bin1" : string, Symbol(bin1, Decl(binaryIntegerLiteralES6.ts, 7, 12)) obj1["Infinity"]; // boolean >obj1["Infinity"] : boolean ->obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj1 : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj1, Decl(binaryIntegerLiteralES6.ts, 5, 3)) +>"Infinity" : string, Symbol(0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteralES6.ts, 9, 15)) obj2[0B11010]; // string >obj2[0B11010] : string ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3)) +>0B11010 : number, Symbol(0B11010, Decl(binaryIntegerLiteralES6.ts, 13, 12)) obj2[26]; // string >obj2[26] : string ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3)) +>26 : number, Symbol(0B11010, Decl(binaryIntegerLiteralES6.ts, 13, 12)) obj2["26"]; // string >obj2["26"] : string ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3)) +>"26" : string, Symbol(0B11010, Decl(binaryIntegerLiteralES6.ts, 13, 12)) obj2["0B11010"]; // any >obj2["0B11010"] : any ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3)) +>"0B11010" : string obj2["a"]; // number >obj2["a"] : number ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3)) +>"a" : string, Symbol(a, Decl(binaryIntegerLiteralES6.ts, 14, 21)) obj2["b"]; // number >obj2["b"] : number ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3)) +>"b" : string, Symbol(b, Decl(binaryIntegerLiteralES6.ts, 16, 9)) obj2["bin2"]; // number >obj2["bin2"] : number ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3)) +>"bin2" : string, Symbol(bin2, Decl(binaryIntegerLiteralES6.ts, 15, 12)) obj2[9.671406556917009e+24]; // boolean >obj2[9.671406556917009e+24] : boolean ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3)) +>9.671406556917009e+24 : number, Symbol(0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteralES6.ts, 17, 15)) obj2["9.671406556917009e+24"]; // boolean >obj2["9.671406556917009e+24"] : boolean ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3)) +>"9.671406556917009e+24" : string, Symbol(0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteralES6.ts, 17, 15)) obj2["Infinity"]; // any >obj2["Infinity"] : any ->obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; } +>obj2 : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }, Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3)) +>"Infinity" : string diff --git a/tests/baselines/reference/binopAssignmentShouldHaveType.types b/tests/baselines/reference/binopAssignmentShouldHaveType.types index cf6966147bc..0031ebfb9cf 100644 --- a/tests/baselines/reference/binopAssignmentShouldHaveType.types +++ b/tests/baselines/reference/binopAssignmentShouldHaveType.types @@ -1,43 +1,48 @@ === tests/cases/compiler/binopAssignmentShouldHaveType.ts === declare var console; ->console : any +>console : any, Symbol(console, Decl(binopAssignmentShouldHaveType.ts, 0, 11)) "use strict"; +>"use strict" : string + module Test { ->Test : typeof Test +>Test : typeof Test, Symbol(Test, Decl(binopAssignmentShouldHaveType.ts, 1, 13)) export class Bug { ->Bug : Bug +>Bug : Bug, Symbol(Bug, Decl(binopAssignmentShouldHaveType.ts, 2, 13)) getName():string { ->getName : () => string +>getName : () => string, Symbol(getName, Decl(binopAssignmentShouldHaveType.ts, 3, 19)) return "name"; +>"name" : string } bug() { ->bug : () => void +>bug : () => void, Symbol(bug, Decl(binopAssignmentShouldHaveType.ts, 6, 3)) var name:string= null; ->name : string +>name : string, Symbol(name, Decl(binopAssignmentShouldHaveType.ts, 8, 6)) +>null : null if ((name= this.getName()).length > 0) { >(name= this.getName()).length > 0 : boolean ->(name= this.getName()).length : number +>(name= this.getName()).length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) >(name= this.getName()) : string >name= this.getName() : string ->name : string +>name : string, Symbol(name, Decl(binopAssignmentShouldHaveType.ts, 8, 6)) >this.getName() : string ->this.getName : () => string ->this : Bug ->getName : () => string ->length : number +>this.getName : () => string, Symbol(getName, Decl(binopAssignmentShouldHaveType.ts, 3, 19)) +>this : Bug, Symbol(Bug, Decl(binopAssignmentShouldHaveType.ts, 2, 13)) +>getName : () => string, Symbol(getName, Decl(binopAssignmentShouldHaveType.ts, 3, 19)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>0 : number console.log(name); >console.log(name) : any >console.log : any ->console : any +>console : any, Symbol(console, Decl(binopAssignmentShouldHaveType.ts, 0, 11)) >log : any ->name : string +>name : string, Symbol(name, Decl(binopAssignmentShouldHaveType.ts, 8, 6)) } } } diff --git a/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.types b/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.types index ce870dbc818..7749b91beac 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.types +++ b/tests/baselines/reference/bitwiseNotOperatorWithBooleanType.types @@ -1,112 +1,120 @@ === tests/cases/conformance/expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorWithBooleanType.ts === // ~ operator on boolean type var BOOLEAN: boolean; ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(bitwiseNotOperatorWithBooleanType.ts, 1, 3)) function foo(): boolean { return true; } ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(bitwiseNotOperatorWithBooleanType.ts, 1, 21)) +>true : boolean class A { ->A : A +>A : A, Symbol(A, Decl(bitwiseNotOperatorWithBooleanType.ts, 3, 40)) public a: boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(bitwiseNotOperatorWithBooleanType.ts, 5, 9)) static foo() { return false; } ->foo : () => boolean +>foo : () => boolean, Symbol(A.foo, Decl(bitwiseNotOperatorWithBooleanType.ts, 6, 22)) +>false : boolean } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(bitwiseNotOperatorWithBooleanType.ts, 8, 1)) export var n: boolean; ->n : boolean +>n : boolean, Symbol(n, Decl(bitwiseNotOperatorWithBooleanType.ts, 10, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(bitwiseNotOperatorWithBooleanType.ts, 13, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(bitwiseNotOperatorWithBooleanType.ts, 3, 40)) // boolean type var var ResultIsNumber1 = ~BOOLEAN; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(bitwiseNotOperatorWithBooleanType.ts, 16, 3)) >~BOOLEAN : number ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(bitwiseNotOperatorWithBooleanType.ts, 1, 3)) // boolean type literal var ResultIsNumber2 = ~true; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(bitwiseNotOperatorWithBooleanType.ts, 19, 3)) >~true : number +>true : boolean var ResultIsNumber3 = ~{ x: true, y: false }; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(bitwiseNotOperatorWithBooleanType.ts, 20, 3)) >~{ x: true, y: false } : number >{ x: true, y: false } : { x: boolean; y: boolean; } ->x : boolean ->y : boolean +>x : boolean, Symbol(x, Decl(bitwiseNotOperatorWithBooleanType.ts, 20, 24)) +>true : boolean +>y : boolean, Symbol(y, Decl(bitwiseNotOperatorWithBooleanType.ts, 20, 33)) +>false : boolean // boolean type expressions var ResultIsNumber4 = ~objA.a; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(bitwiseNotOperatorWithBooleanType.ts, 23, 3)) >~objA.a : number ->objA.a : boolean ->objA : A ->a : boolean +>objA.a : boolean, Symbol(A.a, Decl(bitwiseNotOperatorWithBooleanType.ts, 5, 9)) +>objA : A, Symbol(objA, Decl(bitwiseNotOperatorWithBooleanType.ts, 13, 3)) +>a : boolean, Symbol(A.a, Decl(bitwiseNotOperatorWithBooleanType.ts, 5, 9)) var ResultIsNumber5 = ~M.n; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(bitwiseNotOperatorWithBooleanType.ts, 24, 3)) >~M.n : number ->M.n : boolean ->M : typeof M ->n : boolean +>M.n : boolean, Symbol(M.n, Decl(bitwiseNotOperatorWithBooleanType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(bitwiseNotOperatorWithBooleanType.ts, 8, 1)) +>n : boolean, Symbol(M.n, Decl(bitwiseNotOperatorWithBooleanType.ts, 10, 14)) var ResultIsNumber6 = ~foo(); ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(bitwiseNotOperatorWithBooleanType.ts, 25, 3)) >~foo() : number >foo() : boolean ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(bitwiseNotOperatorWithBooleanType.ts, 1, 21)) var ResultIsNumber7 = ~A.foo(); ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(bitwiseNotOperatorWithBooleanType.ts, 26, 3)) >~A.foo() : number >A.foo() : boolean ->A.foo : () => boolean ->A : typeof A ->foo : () => boolean +>A.foo : () => boolean, Symbol(A.foo, Decl(bitwiseNotOperatorWithBooleanType.ts, 6, 22)) +>A : typeof A, Symbol(A, Decl(bitwiseNotOperatorWithBooleanType.ts, 3, 40)) +>foo : () => boolean, Symbol(A.foo, Decl(bitwiseNotOperatorWithBooleanType.ts, 6, 22)) // multiple ~ operators var ResultIsNumber8 = ~~BOOLEAN; ->ResultIsNumber8 : number +>ResultIsNumber8 : number, Symbol(ResultIsNumber8, Decl(bitwiseNotOperatorWithBooleanType.ts, 29, 3)) >~~BOOLEAN : number >~BOOLEAN : number ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(bitwiseNotOperatorWithBooleanType.ts, 1, 3)) // miss assignment operators ~true; >~true : number +>true : boolean ~BOOLEAN; >~BOOLEAN : number ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(bitwiseNotOperatorWithBooleanType.ts, 1, 3)) ~foo(); >~foo() : number >foo() : boolean ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(bitwiseNotOperatorWithBooleanType.ts, 1, 21)) ~true, false; >~true, false : boolean >~true : number +>true : boolean +>false : boolean ~objA.a; >~objA.a : number ->objA.a : boolean ->objA : A ->a : boolean +>objA.a : boolean, Symbol(A.a, Decl(bitwiseNotOperatorWithBooleanType.ts, 5, 9)) +>objA : A, Symbol(objA, Decl(bitwiseNotOperatorWithBooleanType.ts, 13, 3)) +>a : boolean, Symbol(A.a, Decl(bitwiseNotOperatorWithBooleanType.ts, 5, 9)) ~M.n; >~M.n : number ->M.n : boolean ->M : typeof M ->n : boolean +>M.n : boolean, Symbol(M.n, Decl(bitwiseNotOperatorWithBooleanType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(bitwiseNotOperatorWithBooleanType.ts, 8, 1)) +>n : boolean, Symbol(M.n, Decl(bitwiseNotOperatorWithBooleanType.ts, 10, 14)) diff --git a/tests/baselines/reference/bitwiseNotOperatorWithEnumType.types b/tests/baselines/reference/bitwiseNotOperatorWithEnumType.types index 71598c6f693..ec3ca825ee9 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithEnumType.types +++ b/tests/baselines/reference/bitwiseNotOperatorWithEnumType.types @@ -2,65 +2,70 @@ // ~ operator on enum type enum ENUM1 { A, B, "" }; ->ENUM1 : ENUM1 ->A : ENUM1 ->B : ENUM1 +>ENUM1 : ENUM1, Symbol(ENUM1, Decl(bitwiseNotOperatorWithEnumType.ts, 0, 0)) +>A : ENUM1, Symbol(ENUM1.A, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 12)) +>B : ENUM1, Symbol(ENUM1.B, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 15)) // enum type var var ResultIsNumber1 = ~ENUM1; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(bitwiseNotOperatorWithEnumType.ts, 5, 3)) >~ENUM1 : number ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(bitwiseNotOperatorWithEnumType.ts, 0, 0)) // enum type expressions var ResultIsNumber2 = ~ENUM1["A"]; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(bitwiseNotOperatorWithEnumType.ts, 8, 3)) >~ENUM1["A"] : number >ENUM1["A"] : ENUM1 ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(bitwiseNotOperatorWithEnumType.ts, 0, 0)) +>"A" : string, Symbol(ENUM1.A, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 12)) var ResultIsNumber3 = ~(ENUM1.A + ENUM1["B"]); ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(bitwiseNotOperatorWithEnumType.ts, 9, 3)) >~(ENUM1.A + ENUM1["B"]) : number >(ENUM1.A + ENUM1["B"]) : number >ENUM1.A + ENUM1["B"] : number ->ENUM1.A : ENUM1 ->ENUM1 : typeof ENUM1 ->A : ENUM1 +>ENUM1.A : ENUM1, Symbol(ENUM1.A, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 12)) +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(bitwiseNotOperatorWithEnumType.ts, 0, 0)) +>A : ENUM1, Symbol(ENUM1.A, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 12)) >ENUM1["B"] : ENUM1 ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(bitwiseNotOperatorWithEnumType.ts, 0, 0)) +>"B" : string, Symbol(ENUM1.B, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 15)) // multiple ~ operators var ResultIsNumber4 = ~~~(ENUM1["A"] + ENUM1.B); ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(bitwiseNotOperatorWithEnumType.ts, 12, 3)) >~~~(ENUM1["A"] + ENUM1.B) : number >~~(ENUM1["A"] + ENUM1.B) : number >~(ENUM1["A"] + ENUM1.B) : number >(ENUM1["A"] + ENUM1.B) : number >ENUM1["A"] + ENUM1.B : number >ENUM1["A"] : ENUM1 ->ENUM1 : typeof ENUM1 ->ENUM1.B : ENUM1 ->ENUM1 : typeof ENUM1 ->B : ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(bitwiseNotOperatorWithEnumType.ts, 0, 0)) +>"A" : string, Symbol(ENUM1.A, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 12)) +>ENUM1.B : ENUM1, Symbol(ENUM1.B, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 15)) +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(bitwiseNotOperatorWithEnumType.ts, 0, 0)) +>B : ENUM1, Symbol(ENUM1.B, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 15)) // miss assignment operators ~ENUM1; >~ENUM1 : number ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(bitwiseNotOperatorWithEnumType.ts, 0, 0)) ~ENUM1["A"]; >~ENUM1["A"] : number >ENUM1["A"] : ENUM1 ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(bitwiseNotOperatorWithEnumType.ts, 0, 0)) +>"A" : string, Symbol(ENUM1.A, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 12)) ~ENUM1.A, ~ENUM1["B"]; >~ENUM1.A, ~ENUM1["B"] : number >~ENUM1.A : number ->ENUM1.A : ENUM1 ->ENUM1 : typeof ENUM1 ->A : ENUM1 +>ENUM1.A : ENUM1, Symbol(ENUM1.A, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 12)) +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(bitwiseNotOperatorWithEnumType.ts, 0, 0)) +>A : ENUM1, Symbol(ENUM1.A, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 12)) >~ENUM1["B"] : number >ENUM1["B"] : ENUM1 ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(bitwiseNotOperatorWithEnumType.ts, 0, 0)) +>"B" : string, Symbol(ENUM1.B, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 15)) diff --git a/tests/baselines/reference/bitwiseNotOperatorWithNumberType.types b/tests/baselines/reference/bitwiseNotOperatorWithNumberType.types index 94207a56343..6426809aecc 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithNumberType.types +++ b/tests/baselines/reference/bitwiseNotOperatorWithNumberType.types @@ -1,162 +1,171 @@ === tests/cases/conformance/expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorWithNumberType.ts === // ~ operator on number type var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(bitwiseNotOperatorWithNumberType.ts, 1, 3)) var NUMBER1: number[] = [1, 2]; ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(bitwiseNotOperatorWithNumberType.ts, 2, 3)) >[1, 2] : number[] +>1 : number +>2 : number function foo(): number { return 1; } ->foo : () => number +>foo : () => number, Symbol(foo, Decl(bitwiseNotOperatorWithNumberType.ts, 2, 31)) +>1 : number class A { ->A : A +>A : A, Symbol(A, Decl(bitwiseNotOperatorWithNumberType.ts, 4, 36)) public a: number; ->a : number +>a : number, Symbol(a, Decl(bitwiseNotOperatorWithNumberType.ts, 6, 9)) static foo() { return 1; } ->foo : () => number +>foo : () => number, Symbol(A.foo, Decl(bitwiseNotOperatorWithNumberType.ts, 7, 21)) +>1 : number } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(bitwiseNotOperatorWithNumberType.ts, 9, 1)) export var n: number; ->n : number +>n : number, Symbol(n, Decl(bitwiseNotOperatorWithNumberType.ts, 11, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(bitwiseNotOperatorWithNumberType.ts, 14, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(bitwiseNotOperatorWithNumberType.ts, 4, 36)) // number type var var ResultIsNumber1 = ~NUMBER; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(bitwiseNotOperatorWithNumberType.ts, 17, 3)) >~NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(bitwiseNotOperatorWithNumberType.ts, 1, 3)) var ResultIsNumber2 = ~NUMBER1; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(bitwiseNotOperatorWithNumberType.ts, 18, 3)) >~NUMBER1 : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(bitwiseNotOperatorWithNumberType.ts, 2, 3)) // number type literal var ResultIsNumber3 = ~1; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(bitwiseNotOperatorWithNumberType.ts, 21, 3)) >~1 : number +>1 : number var ResultIsNumber4 = ~{ x: 1, y: 2}; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(bitwiseNotOperatorWithNumberType.ts, 22, 3)) >~{ x: 1, y: 2} : number >{ x: 1, y: 2} : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(bitwiseNotOperatorWithNumberType.ts, 22, 24)) +>1 : number +>y : number, Symbol(y, Decl(bitwiseNotOperatorWithNumberType.ts, 22, 30)) +>2 : number var ResultIsNumber5 = ~{ x: 1, y: (n: number) => { return n; } }; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(bitwiseNotOperatorWithNumberType.ts, 23, 3)) >~{ x: 1, y: (n: number) => { return n; } } : number >{ x: 1, y: (n: number) => { return n; } } : { x: number; y: (n: number) => number; } ->x : number ->y : (n: number) => number +>x : number, Symbol(x, Decl(bitwiseNotOperatorWithNumberType.ts, 23, 24)) +>1 : number +>y : (n: number) => number, Symbol(y, Decl(bitwiseNotOperatorWithNumberType.ts, 23, 30)) >(n: number) => { return n; } : (n: number) => number ->n : number ->n : number +>n : number, Symbol(n, Decl(bitwiseNotOperatorWithNumberType.ts, 23, 35)) +>n : number, Symbol(n, Decl(bitwiseNotOperatorWithNumberType.ts, 23, 35)) // number type expressions var ResultIsNumber6 = ~objA.a; ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(bitwiseNotOperatorWithNumberType.ts, 26, 3)) >~objA.a : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(bitwiseNotOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(bitwiseNotOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(bitwiseNotOperatorWithNumberType.ts, 6, 9)) var ResultIsNumber7 = ~M.n; ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(bitwiseNotOperatorWithNumberType.ts, 27, 3)) >~M.n : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(bitwiseNotOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(bitwiseNotOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(bitwiseNotOperatorWithNumberType.ts, 11, 14)) var ResultIsNumber8 = ~NUMBER1[0]; ->ResultIsNumber8 : number +>ResultIsNumber8 : number, Symbol(ResultIsNumber8, Decl(bitwiseNotOperatorWithNumberType.ts, 28, 3)) >~NUMBER1[0] : number >NUMBER1[0] : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(bitwiseNotOperatorWithNumberType.ts, 2, 3)) +>0 : number var ResultIsNumber9 = ~foo(); ->ResultIsNumber9 : number +>ResultIsNumber9 : number, Symbol(ResultIsNumber9, Decl(bitwiseNotOperatorWithNumberType.ts, 29, 3)) >~foo() : number >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(bitwiseNotOperatorWithNumberType.ts, 2, 31)) var ResultIsNumber10 = ~A.foo(); ->ResultIsNumber10 : number +>ResultIsNumber10 : number, Symbol(ResultIsNumber10, Decl(bitwiseNotOperatorWithNumberType.ts, 30, 3)) >~A.foo() : number >A.foo() : number ->A.foo : () => number ->A : typeof A ->foo : () => number +>A.foo : () => number, Symbol(A.foo, Decl(bitwiseNotOperatorWithNumberType.ts, 7, 21)) +>A : typeof A, Symbol(A, Decl(bitwiseNotOperatorWithNumberType.ts, 4, 36)) +>foo : () => number, Symbol(A.foo, Decl(bitwiseNotOperatorWithNumberType.ts, 7, 21)) var ResultIsNumber11 = ~(NUMBER + NUMBER); ->ResultIsNumber11 : number +>ResultIsNumber11 : number, Symbol(ResultIsNumber11, Decl(bitwiseNotOperatorWithNumberType.ts, 31, 3)) >~(NUMBER + NUMBER) : number >(NUMBER + NUMBER) : number >NUMBER + NUMBER : number ->NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(bitwiseNotOperatorWithNumberType.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(bitwiseNotOperatorWithNumberType.ts, 1, 3)) // multiple ~ operators var ResultIsNumber12 = ~~NUMBER; ->ResultIsNumber12 : number +>ResultIsNumber12 : number, Symbol(ResultIsNumber12, Decl(bitwiseNotOperatorWithNumberType.ts, 34, 3)) >~~NUMBER : number >~NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(bitwiseNotOperatorWithNumberType.ts, 1, 3)) var ResultIsNumber13 = ~~~(NUMBER + NUMBER); ->ResultIsNumber13 : number +>ResultIsNumber13 : number, Symbol(ResultIsNumber13, Decl(bitwiseNotOperatorWithNumberType.ts, 35, 3)) >~~~(NUMBER + NUMBER) : number >~~(NUMBER + NUMBER) : number >~(NUMBER + NUMBER) : number >(NUMBER + NUMBER) : number >NUMBER + NUMBER : number ->NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(bitwiseNotOperatorWithNumberType.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(bitwiseNotOperatorWithNumberType.ts, 1, 3)) // miss assignment operators ~NUMBER; >~NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(bitwiseNotOperatorWithNumberType.ts, 1, 3)) ~NUMBER1; >~NUMBER1 : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(bitwiseNotOperatorWithNumberType.ts, 2, 3)) ~foo(); >~foo() : number >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(bitwiseNotOperatorWithNumberType.ts, 2, 31)) ~objA.a; >~objA.a : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(bitwiseNotOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(bitwiseNotOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(bitwiseNotOperatorWithNumberType.ts, 6, 9)) ~M.n; >~M.n : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(bitwiseNotOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(bitwiseNotOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(bitwiseNotOperatorWithNumberType.ts, 11, 14)) ~objA.a, M.n; >~objA.a, M.n : number >~objA.a : number ->objA.a : number ->objA : A ->a : number ->M.n : number ->M : typeof M ->n : number +>objA.a : number, Symbol(A.a, Decl(bitwiseNotOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(bitwiseNotOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(bitwiseNotOperatorWithNumberType.ts, 6, 9)) +>M.n : number, Symbol(M.n, Decl(bitwiseNotOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(bitwiseNotOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(bitwiseNotOperatorWithNumberType.ts, 11, 14)) diff --git a/tests/baselines/reference/bitwiseNotOperatorWithStringType.types b/tests/baselines/reference/bitwiseNotOperatorWithStringType.types index dbe2f29631e..5f2a2876127 100644 --- a/tests/baselines/reference/bitwiseNotOperatorWithStringType.types +++ b/tests/baselines/reference/bitwiseNotOperatorWithStringType.types @@ -1,158 +1,168 @@ === tests/cases/conformance/expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorWithStringType.ts === // ~ operator on string type var STRING: string; ->STRING : string +>STRING : string, Symbol(STRING, Decl(bitwiseNotOperatorWithStringType.ts, 1, 3)) var STRING1: string[] = ["", "abc"]; ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(bitwiseNotOperatorWithStringType.ts, 2, 3)) >["", "abc"] : string[] +>"" : string +>"abc" : string function foo(): string { return "abc"; } ->foo : () => string +>foo : () => string, Symbol(foo, Decl(bitwiseNotOperatorWithStringType.ts, 2, 36)) +>"abc" : string class A { ->A : A +>A : A, Symbol(A, Decl(bitwiseNotOperatorWithStringType.ts, 4, 40)) public a: string; ->a : string +>a : string, Symbol(a, Decl(bitwiseNotOperatorWithStringType.ts, 6, 9)) static foo() { return ""; } ->foo : () => string +>foo : () => string, Symbol(A.foo, Decl(bitwiseNotOperatorWithStringType.ts, 7, 21)) +>"" : string } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(bitwiseNotOperatorWithStringType.ts, 9, 1)) export var n: string; ->n : string +>n : string, Symbol(n, Decl(bitwiseNotOperatorWithStringType.ts, 11, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(bitwiseNotOperatorWithStringType.ts, 14, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(bitwiseNotOperatorWithStringType.ts, 4, 40)) // string type var var ResultIsNumber1 = ~STRING; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(bitwiseNotOperatorWithStringType.ts, 17, 3)) >~STRING : number ->STRING : string +>STRING : string, Symbol(STRING, Decl(bitwiseNotOperatorWithStringType.ts, 1, 3)) var ResultIsNumber2 = ~STRING1; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(bitwiseNotOperatorWithStringType.ts, 18, 3)) >~STRING1 : number ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(bitwiseNotOperatorWithStringType.ts, 2, 3)) // string type literal var ResultIsNumber3 = ~""; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(bitwiseNotOperatorWithStringType.ts, 21, 3)) >~"" : number +>"" : string var ResultIsNumber4 = ~{ x: "", y: "" }; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(bitwiseNotOperatorWithStringType.ts, 22, 3)) >~{ x: "", y: "" } : number >{ x: "", y: "" } : { x: string; y: string; } ->x : string ->y : string +>x : string, Symbol(x, Decl(bitwiseNotOperatorWithStringType.ts, 22, 24)) +>"" : string +>y : string, Symbol(y, Decl(bitwiseNotOperatorWithStringType.ts, 22, 31)) +>"" : string var ResultIsNumber5 = ~{ x: "", y: (s: string) => { return s; } }; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(bitwiseNotOperatorWithStringType.ts, 23, 3)) >~{ x: "", y: (s: string) => { return s; } } : number >{ x: "", y: (s: string) => { return s; } } : { x: string; y: (s: string) => string; } ->x : string ->y : (s: string) => string +>x : string, Symbol(x, Decl(bitwiseNotOperatorWithStringType.ts, 23, 24)) +>"" : string +>y : (s: string) => string, Symbol(y, Decl(bitwiseNotOperatorWithStringType.ts, 23, 31)) >(s: string) => { return s; } : (s: string) => string ->s : string ->s : string +>s : string, Symbol(s, Decl(bitwiseNotOperatorWithStringType.ts, 23, 36)) +>s : string, Symbol(s, Decl(bitwiseNotOperatorWithStringType.ts, 23, 36)) // string type expressions var ResultIsNumber6 = ~objA.a; ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(bitwiseNotOperatorWithStringType.ts, 26, 3)) >~objA.a : number ->objA.a : string ->objA : A ->a : string +>objA.a : string, Symbol(A.a, Decl(bitwiseNotOperatorWithStringType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(bitwiseNotOperatorWithStringType.ts, 14, 3)) +>a : string, Symbol(A.a, Decl(bitwiseNotOperatorWithStringType.ts, 6, 9)) var ResultIsNumber7 = ~M.n; ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(bitwiseNotOperatorWithStringType.ts, 27, 3)) >~M.n : number ->M.n : string ->M : typeof M ->n : string +>M.n : string, Symbol(M.n, Decl(bitwiseNotOperatorWithStringType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(bitwiseNotOperatorWithStringType.ts, 9, 1)) +>n : string, Symbol(M.n, Decl(bitwiseNotOperatorWithStringType.ts, 11, 14)) var ResultIsNumber8 = ~STRING1[0]; ->ResultIsNumber8 : number +>ResultIsNumber8 : number, Symbol(ResultIsNumber8, Decl(bitwiseNotOperatorWithStringType.ts, 28, 3)) >~STRING1[0] : number >STRING1[0] : string ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(bitwiseNotOperatorWithStringType.ts, 2, 3)) +>0 : number var ResultIsNumber9 = ~foo(); ->ResultIsNumber9 : number +>ResultIsNumber9 : number, Symbol(ResultIsNumber9, Decl(bitwiseNotOperatorWithStringType.ts, 29, 3)) >~foo() : number >foo() : string ->foo : () => string +>foo : () => string, Symbol(foo, Decl(bitwiseNotOperatorWithStringType.ts, 2, 36)) var ResultIsNumber10 = ~A.foo(); ->ResultIsNumber10 : number +>ResultIsNumber10 : number, Symbol(ResultIsNumber10, Decl(bitwiseNotOperatorWithStringType.ts, 30, 3)) >~A.foo() : number >A.foo() : string ->A.foo : () => string ->A : typeof A ->foo : () => string +>A.foo : () => string, Symbol(A.foo, Decl(bitwiseNotOperatorWithStringType.ts, 7, 21)) +>A : typeof A, Symbol(A, Decl(bitwiseNotOperatorWithStringType.ts, 4, 40)) +>foo : () => string, Symbol(A.foo, Decl(bitwiseNotOperatorWithStringType.ts, 7, 21)) var ResultIsNumber11 = ~(STRING + STRING); ->ResultIsNumber11 : number +>ResultIsNumber11 : number, Symbol(ResultIsNumber11, Decl(bitwiseNotOperatorWithStringType.ts, 31, 3)) >~(STRING + STRING) : number >(STRING + STRING) : string >STRING + STRING : string ->STRING : string ->STRING : string +>STRING : string, Symbol(STRING, Decl(bitwiseNotOperatorWithStringType.ts, 1, 3)) +>STRING : string, Symbol(STRING, Decl(bitwiseNotOperatorWithStringType.ts, 1, 3)) var ResultIsNumber12 = ~STRING.charAt(0); ->ResultIsNumber12 : number +>ResultIsNumber12 : number, Symbol(ResultIsNumber12, Decl(bitwiseNotOperatorWithStringType.ts, 32, 3)) >~STRING.charAt(0) : number >STRING.charAt(0) : string ->STRING.charAt : (pos: number) => string ->STRING : string ->charAt : (pos: number) => string +>STRING.charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>STRING : string, Symbol(STRING, Decl(bitwiseNotOperatorWithStringType.ts, 1, 3)) +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number // multiple ~ operators var ResultIsNumber13 = ~~STRING; ->ResultIsNumber13 : number +>ResultIsNumber13 : number, Symbol(ResultIsNumber13, Decl(bitwiseNotOperatorWithStringType.ts, 35, 3)) >~~STRING : number >~STRING : number ->STRING : string +>STRING : string, Symbol(STRING, Decl(bitwiseNotOperatorWithStringType.ts, 1, 3)) var ResultIsNumber14 = ~~~(STRING + STRING); ->ResultIsNumber14 : number +>ResultIsNumber14 : number, Symbol(ResultIsNumber14, Decl(bitwiseNotOperatorWithStringType.ts, 36, 3)) >~~~(STRING + STRING) : number >~~(STRING + STRING) : number >~(STRING + STRING) : number >(STRING + STRING) : string >STRING + STRING : string ->STRING : string ->STRING : string +>STRING : string, Symbol(STRING, Decl(bitwiseNotOperatorWithStringType.ts, 1, 3)) +>STRING : string, Symbol(STRING, Decl(bitwiseNotOperatorWithStringType.ts, 1, 3)) //miss assignment operators ~STRING; >~STRING : number ->STRING : string +>STRING : string, Symbol(STRING, Decl(bitwiseNotOperatorWithStringType.ts, 1, 3)) ~STRING1; >~STRING1 : number ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(bitwiseNotOperatorWithStringType.ts, 2, 3)) ~foo(); >~foo() : number >foo() : string ->foo : () => string +>foo : () => string, Symbol(foo, Decl(bitwiseNotOperatorWithStringType.ts, 2, 36)) ~objA.a,M.n; >~objA.a,M.n : string >~objA.a : number ->objA.a : string ->objA : A ->a : string ->M.n : string ->M : typeof M ->n : string +>objA.a : string, Symbol(A.a, Decl(bitwiseNotOperatorWithStringType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(bitwiseNotOperatorWithStringType.ts, 14, 3)) +>a : string, Symbol(A.a, Decl(bitwiseNotOperatorWithStringType.ts, 6, 9)) +>M.n : string, Symbol(M.n, Decl(bitwiseNotOperatorWithStringType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(bitwiseNotOperatorWithStringType.ts, 9, 1)) +>n : string, Symbol(M.n, Decl(bitwiseNotOperatorWithStringType.ts, 11, 14)) diff --git a/tests/baselines/reference/bom-utf16be.types b/tests/baselines/reference/bom-utf16be.types index 04c6a5a61bb..42db28d9ccd 100644 --- a/tests/baselines/reference/bom-utf16be.types +++ b/tests/baselines/reference/bom-utf16be.types @@ -1,4 +1,5 @@ === tests/cases/compiler/bom-utf16be.ts === var x=10; ->x : number +>x : number, Symbol(x, Decl(bom-utf16be.ts, 0, 3)) +>10 : number diff --git a/tests/baselines/reference/bom-utf16le.types b/tests/baselines/reference/bom-utf16le.types index 15970945942..f5cdeb9cd8a 100644 --- a/tests/baselines/reference/bom-utf16le.types +++ b/tests/baselines/reference/bom-utf16le.types @@ -1,4 +1,5 @@ === tests/cases/compiler/bom-utf16le.ts === var x=10; ->x : number +>x : number, Symbol(x, Decl(bom-utf16le.ts, 0, 3)) +>10 : number diff --git a/tests/baselines/reference/bom-utf8.types b/tests/baselines/reference/bom-utf8.types index b8398f7b6b6..bf545665547 100644 --- a/tests/baselines/reference/bom-utf8.types +++ b/tests/baselines/reference/bom-utf8.types @@ -1,4 +1,5 @@ === tests/cases/compiler/bom-utf8.ts === var x=10; ->x : number +>x : number, Symbol(x, Decl(bom-utf8.ts, 0, 3)) +>10 : number diff --git a/tests/baselines/reference/booleanPropertyAccess.types b/tests/baselines/reference/booleanPropertyAccess.types index d273e3b8852..42295c76e86 100644 --- a/tests/baselines/reference/booleanPropertyAccess.types +++ b/tests/baselines/reference/booleanPropertyAccess.types @@ -1,17 +1,19 @@ === tests/cases/conformance/types/primitives/boolean/booleanPropertyAccess.ts === var x = true; ->x : boolean +>x : boolean, Symbol(x, Decl(booleanPropertyAccess.ts, 0, 3)) +>true : boolean var a = x.toString(); ->a : string +>a : string, Symbol(a, Decl(booleanPropertyAccess.ts, 2, 3)) >x.toString() : string ->x.toString : () => string ->x : boolean ->toString : () => string +>x.toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) +>x : boolean, Symbol(x, Decl(booleanPropertyAccess.ts, 0, 3)) +>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) var b = x['toString'](); ->b : string +>b : string, Symbol(b, Decl(booleanPropertyAccess.ts, 3, 3)) >x['toString']() : string >x['toString'] : () => string ->x : boolean +>x : boolean, Symbol(x, Decl(booleanPropertyAccess.ts, 0, 3)) +>'toString' : string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) diff --git a/tests/baselines/reference/breakInIterationOrSwitchStatement1.types b/tests/baselines/reference/breakInIterationOrSwitchStatement1.types index 6a2bae2c2c4..545a20ecc55 100644 --- a/tests/baselines/reference/breakInIterationOrSwitchStatement1.types +++ b/tests/baselines/reference/breakInIterationOrSwitchStatement1.types @@ -1,5 +1,6 @@ === tests/cases/compiler/breakInIterationOrSwitchStatement1.ts === while (true) { -No type information for this code. break; -No type information for this code.} -No type information for this code. \ No newline at end of file +>true : boolean + + break; +} diff --git a/tests/baselines/reference/breakInIterationOrSwitchStatement2.types b/tests/baselines/reference/breakInIterationOrSwitchStatement2.types index 0f8928a664d..5736be6c923 100644 --- a/tests/baselines/reference/breakInIterationOrSwitchStatement2.types +++ b/tests/baselines/reference/breakInIterationOrSwitchStatement2.types @@ -1,6 +1,7 @@ === tests/cases/compiler/breakInIterationOrSwitchStatement2.ts === do { -No type information for this code. break; -No type information for this code.} -No type information for this code.while (true); -No type information for this code. \ No newline at end of file + break; +} +while (true); +>true : boolean + diff --git a/tests/baselines/reference/breakTarget1.types b/tests/baselines/reference/breakTarget1.types index eda3b1cac35..85efb331e10 100644 --- a/tests/baselines/reference/breakTarget1.types +++ b/tests/baselines/reference/breakTarget1.types @@ -1,4 +1,7 @@ === tests/cases/compiler/breakTarget1.ts === target: -No type information for this code. break target; -No type information for this code. \ No newline at end of file +>target : any + + break target; +>target : any + diff --git a/tests/baselines/reference/breakTarget2.types b/tests/baselines/reference/breakTarget2.types index 6357695785b..412203accd1 100644 --- a/tests/baselines/reference/breakTarget2.types +++ b/tests/baselines/reference/breakTarget2.types @@ -1,6 +1,10 @@ === tests/cases/compiler/breakTarget2.ts === target: -No type information for this code.while (true) { -No type information for this code. break target; -No type information for this code.} -No type information for this code. \ No newline at end of file +>target : any + +while (true) { +>true : boolean + + break target; +>target : any +} diff --git a/tests/baselines/reference/breakTarget3.types b/tests/baselines/reference/breakTarget3.types index 580706bbd4a..785bf00ef6e 100644 --- a/tests/baselines/reference/breakTarget3.types +++ b/tests/baselines/reference/breakTarget3.types @@ -1,7 +1,13 @@ === tests/cases/compiler/breakTarget3.ts === target1: -No type information for this code.target2: -No type information for this code.while (true) { -No type information for this code. break target1; -No type information for this code.} -No type information for this code. \ No newline at end of file +>target1 : any + +target2: +>target2 : any + +while (true) { +>true : boolean + + break target1; +>target1 : any +} diff --git a/tests/baselines/reference/breakTarget4.types b/tests/baselines/reference/breakTarget4.types index aba35ddcfdf..eb4c14f6386 100644 --- a/tests/baselines/reference/breakTarget4.types +++ b/tests/baselines/reference/breakTarget4.types @@ -1,7 +1,13 @@ === tests/cases/compiler/breakTarget4.ts === target1: -No type information for this code.target2: -No type information for this code.while (true) { -No type information for this code. break target2; -No type information for this code.} -No type information for this code. \ No newline at end of file +>target1 : any + +target2: +>target2 : any + +while (true) { +>true : boolean + + break target2; +>target2 : any +} diff --git a/tests/baselines/reference/callExpressionWithTypeParameterConstrainedToOuterTypeParameter.types b/tests/baselines/reference/callExpressionWithTypeParameterConstrainedToOuterTypeParameter.types index 6349114bffe..5156a469901 100644 --- a/tests/baselines/reference/callExpressionWithTypeParameterConstrainedToOuterTypeParameter.types +++ b/tests/baselines/reference/callExpressionWithTypeParameterConstrainedToOuterTypeParameter.types @@ -1,21 +1,22 @@ === tests/cases/compiler/callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts === interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 0)) +>T : T, Symbol(T, Decl(callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 12)) (u: U): U; ->U : U ->T : T ->u : U ->U : U ->U : U +>U : U, Symbol(U, Decl(callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 1, 5)) +>T : T, Symbol(T, Decl(callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 12)) +>u : U, Symbol(u, Decl(callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 1, 18)) +>U : U, Symbol(U, Decl(callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 1, 5)) +>U : U, Symbol(U, Decl(callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 1, 5)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 3, 3)) +>I : I, Symbol(I, Decl(callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 0)) var y = i(""); // y should be string ->y : string +>y : string, Symbol(y, Decl(callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 3)) >i("") : string ->i : I +>i : I, Symbol(i, Decl(callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 3, 3)) +>"" : string diff --git a/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.types b/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.types index 34de901e3c0..e2af348f4a0 100644 --- a/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.types +++ b/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.types @@ -2,125 +2,136 @@ // valid invocations of generic functions with no explicit type arguments provided function f(x: T): T { return null; } ->f : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>f : (x: T) => T, Symbol(f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 0, 0)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 2, 11)) +>x : T, Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 2, 14)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 2, 11)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 2, 11)) +>null : null var r = f(1); ->r : number +>r : number, Symbol(r, Decl(callGenericFunctionWithZeroTypeArguments.ts, 3, 3)) >f(1) : number ->f : (x: T) => T +>f : (x: T) => T, Symbol(f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 0, 0)) +>1 : number var f2 = (x: T): T => { return null; } ->f2 : (x: T) => T +>f2 : (x: T) => T, Symbol(f2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 5, 3)) >(x: T): T => { return null; } : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 5, 10)) +>x : T, Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 5, 13)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 5, 10)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 5, 10)) +>null : null var r2 = f2(1); ->r2 : number +>r2 : number, Symbol(r2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 6, 3)) >f2(1) : number ->f2 : (x: T) => T +>f2 : (x: T) => T, Symbol(f2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 5, 3)) +>1 : number var f3: { (x: T): T; } ->f3 : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>f3 : (x: T) => T, Symbol(f3, Decl(callGenericFunctionWithZeroTypeArguments.ts, 8, 3)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 8, 11)) +>x : T, Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 8, 14)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 8, 11)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 8, 11)) var r3 = f3(1); ->r3 : number +>r3 : number, Symbol(r3, Decl(callGenericFunctionWithZeroTypeArguments.ts, 9, 3)) >f3(1) : number ->f3 : (x: T) => T +>f3 : (x: T) => T, Symbol(f3, Decl(callGenericFunctionWithZeroTypeArguments.ts, 8, 3)) +>1 : number class C { ->C : C +>C : C, Symbol(C, Decl(callGenericFunctionWithZeroTypeArguments.ts, 9, 15)) f(x: T): T { ->f : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>f : (x: T) => T, Symbol(f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 11, 9)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 12, 6)) +>x : T, Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 12, 9)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 12, 6)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 12, 6)) return null; +>null : null } } var r4 = (new C()).f(1); ->r4 : number +>r4 : number, Symbol(r4, Decl(callGenericFunctionWithZeroTypeArguments.ts, 16, 3)) >(new C()).f(1) : number ->(new C()).f : (x: T) => T +>(new C()).f : (x: T) => T, Symbol(C.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 11, 9)) >(new C()) : C >new C() : C ->C : typeof C ->f : (x: T) => T +>C : typeof C, Symbol(C, Decl(callGenericFunctionWithZeroTypeArguments.ts, 9, 15)) +>f : (x: T) => T, Symbol(C.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 11, 9)) +>1 : number interface I { ->I : I +>I : I, Symbol(I, Decl(callGenericFunctionWithZeroTypeArguments.ts, 16, 24)) f(x: T): T; ->f : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>f : (x: T) => T, Symbol(f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 18, 13)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 19, 6)) +>x : T, Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 19, 9)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 19, 6)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 19, 6)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(callGenericFunctionWithZeroTypeArguments.ts, 21, 3)) +>I : I, Symbol(I, Decl(callGenericFunctionWithZeroTypeArguments.ts, 16, 24)) var r5 = i.f(1); ->r5 : number +>r5 : number, Symbol(r5, Decl(callGenericFunctionWithZeroTypeArguments.ts, 22, 3)) >i.f(1) : number ->i.f : (x: T) => T ->i : I ->f : (x: T) => T +>i.f : (x: T) => T, Symbol(I.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 18, 13)) +>i : I, Symbol(i, Decl(callGenericFunctionWithZeroTypeArguments.ts, 21, 3)) +>f : (x: T) => T, Symbol(I.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 18, 13)) +>1 : number class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 22, 16)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 24, 9)) f(x: T): T { ->f : (x: T) => T ->x : T ->T : T ->T : T +>f : (x: T) => T, Symbol(f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 24, 13)) +>x : T, Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 25, 6)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 24, 9)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 24, 9)) return null; +>null : null } } var r6 = (new C2()).f(1); ->r6 : {} +>r6 : {}, Symbol(r6, Decl(callGenericFunctionWithZeroTypeArguments.ts, 29, 3)) >(new C2()).f(1) : {} ->(new C2()).f : (x: {}) => {} +>(new C2()).f : (x: {}) => {}, Symbol(C2.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 24, 13)) >(new C2()) : C2<{}> >new C2() : C2<{}> ->C2 : typeof C2 ->f : (x: {}) => {} +>C2 : typeof C2, Symbol(C2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 22, 16)) +>f : (x: {}) => {}, Symbol(C2.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 24, 13)) +>1 : number interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 29, 25)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 31, 13)) f(x: T): T; ->f : (x: T) => T ->x : T ->T : T ->T : T +>f : (x: T) => T, Symbol(f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 31, 17)) +>x : T, Symbol(x, Decl(callGenericFunctionWithZeroTypeArguments.ts, 32, 6)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 31, 13)) +>T : T, Symbol(T, Decl(callGenericFunctionWithZeroTypeArguments.ts, 31, 13)) } var i2: I2; ->i2 : I2 ->I2 : I2 +>i2 : I2, Symbol(i2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 34, 3)) +>I2 : I2, Symbol(I2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 29, 25)) var r7 = i2.f(1); ->r7 : number +>r7 : number, Symbol(r7, Decl(callGenericFunctionWithZeroTypeArguments.ts, 35, 3)) >i2.f(1) : number ->i2.f : (x: number) => number ->i2 : I2 ->f : (x: number) => number +>i2.f : (x: number) => number, Symbol(I2.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 31, 17)) +>i2 : I2, Symbol(i2, Decl(callGenericFunctionWithZeroTypeArguments.ts, 34, 3)) +>f : (x: number) => number, Symbol(I2.f, Decl(callGenericFunctionWithZeroTypeArguments.ts, 31, 17)) +>1 : number diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance2.types b/tests/baselines/reference/callSignatureAssignabilityInInheritance2.types index 335413cd73e..7870e4e7607 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance2.types +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance2.types @@ -2,201 +2,201 @@ // checking subtype relations for function types as it relates to contextual signature instantiation class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(callSignatureAssignabilityInInheritance2.ts, 3, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(callSignatureAssignabilityInInheritance2.ts, 3, 43)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>baz : string, Symbol(baz, Decl(callSignatureAssignabilityInInheritance2.ts, 4, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(callSignatureAssignabilityInInheritance2.ts, 4, 47)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(callSignatureAssignabilityInInheritance2.ts, 5, 33)) interface A { // T ->A : A +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance2.ts, 5, 49)) // M's a: (x: number) => number[]; ->a : (x: number) => number[] ->x : number +>a : (x: number) => number[], Symbol(a, Decl(callSignatureAssignabilityInInheritance2.ts, 7, 13)) +>x : number, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 9, 8)) a2: (x: number) => string[]; ->a2 : (x: number) => string[] ->x : number +>a2 : (x: number) => string[], Symbol(a2, Decl(callSignatureAssignabilityInInheritance2.ts, 9, 31)) +>x : number, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 10, 9)) a3: (x: number) => void; ->a3 : (x: number) => void ->x : number +>a3 : (x: number) => void, Symbol(a3, Decl(callSignatureAssignabilityInInheritance2.ts, 10, 32)) +>x : number, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 11, 9)) a4: (x: string, y: number) => string; ->a4 : (x: string, y: number) => string ->x : string ->y : number +>a4 : (x: string, y: number) => string, Symbol(a4, Decl(callSignatureAssignabilityInInheritance2.ts, 11, 28)) +>x : string, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 12, 9)) +>y : number, Symbol(y, Decl(callSignatureAssignabilityInInheritance2.ts, 12, 19)) a5: (x: (arg: string) => number) => string; ->a5 : (x: (arg: string) => number) => string ->x : (arg: string) => number ->arg : string +>a5 : (x: (arg: string) => number) => string, Symbol(a5, Decl(callSignatureAssignabilityInInheritance2.ts, 12, 41)) +>x : (arg: string) => number, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 13, 9)) +>arg : string, Symbol(arg, Decl(callSignatureAssignabilityInInheritance2.ts, 13, 13)) a6: (x: (arg: Base) => Derived) => Base; ->a6 : (x: (arg: Base) => Derived) => Base ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->Base : Base +>a6 : (x: (arg: Base) => Derived) => Base, Symbol(a6, Decl(callSignatureAssignabilityInInheritance2.ts, 13, 47)) +>x : (arg: Base) => Derived, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 14, 9)) +>arg : Base, Symbol(arg, Decl(callSignatureAssignabilityInInheritance2.ts, 14, 13)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) a7: (x: (arg: Base) => Derived) => (r: Base) => Derived; ->a7 : (x: (arg: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a7 : (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(a7, Decl(callSignatureAssignabilityInInheritance2.ts, 14, 44)) +>x : (arg: Base) => Derived, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 15, 9)) +>arg : Base, Symbol(arg, Decl(callSignatureAssignabilityInInheritance2.ts, 15, 13)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>r : Base, Symbol(r, Decl(callSignatureAssignabilityInInheritance2.ts, 15, 40)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) a8: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; ->a8 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->y : (arg2: Base) => Derived ->arg2 : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a8 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a8, Decl(callSignatureAssignabilityInInheritance2.ts, 15, 60)) +>x : (arg: Base) => Derived, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 16, 9)) +>arg : Base, Symbol(arg, Decl(callSignatureAssignabilityInInheritance2.ts, 16, 13)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>y : (arg2: Base) => Derived, Symbol(y, Decl(callSignatureAssignabilityInInheritance2.ts, 16, 35)) +>arg2 : Base, Symbol(arg2, Decl(callSignatureAssignabilityInInheritance2.ts, 16, 40)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>r : Base, Symbol(r, Decl(callSignatureAssignabilityInInheritance2.ts, 16, 68)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) a9: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; ->a9 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->y : (arg2: Base) => Derived ->arg2 : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a9 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a9, Decl(callSignatureAssignabilityInInheritance2.ts, 16, 88)) +>x : (arg: Base) => Derived, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 17, 9)) +>arg : Base, Symbol(arg, Decl(callSignatureAssignabilityInInheritance2.ts, 17, 13)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>y : (arg2: Base) => Derived, Symbol(y, Decl(callSignatureAssignabilityInInheritance2.ts, 17, 35)) +>arg2 : Base, Symbol(arg2, Decl(callSignatureAssignabilityInInheritance2.ts, 17, 40)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>r : Base, Symbol(r, Decl(callSignatureAssignabilityInInheritance2.ts, 17, 68)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) a10: (...x: Derived[]) => Derived; ->a10 : (...x: Derived[]) => Derived ->x : Derived[] ->Derived : Derived ->Derived : Derived +>a10 : (...x: Derived[]) => Derived, Symbol(a10, Decl(callSignatureAssignabilityInInheritance2.ts, 17, 88)) +>x : Derived[], Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 18, 10)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) a11: (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base ->x : { foo: string; } ->foo : string ->y : { foo: string; bar: string; } ->foo : string ->bar : string ->Base : Base +>a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(a11, Decl(callSignatureAssignabilityInInheritance2.ts, 18, 38)) +>x : { foo: string; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 19, 10)) +>foo : string, Symbol(foo, Decl(callSignatureAssignabilityInInheritance2.ts, 19, 14)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(callSignatureAssignabilityInInheritance2.ts, 19, 29)) +>foo : string, Symbol(foo, Decl(callSignatureAssignabilityInInheritance2.ts, 19, 34)) +>bar : string, Symbol(bar, Decl(callSignatureAssignabilityInInheritance2.ts, 19, 47)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) a12: (x: Array, y: Array) => Array; ->a12 : (x: Base[], y: Derived2[]) => Derived[] ->x : Base[] ->Array : T[] ->Base : Base ->y : Derived2[] ->Array : T[] ->Derived2 : Derived2 ->Array : T[] ->Derived : Derived +>a12 : (x: Base[], y: Derived2[]) => Derived[], Symbol(a12, Decl(callSignatureAssignabilityInInheritance2.ts, 19, 71)) +>x : Base[], Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 20, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>y : Derived2[], Symbol(y, Decl(callSignatureAssignabilityInInheritance2.ts, 20, 25)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived2 : Derived2, Symbol(Derived2, Decl(callSignatureAssignabilityInInheritance2.ts, 3, 43)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) a13: (x: Array, y: Array) => Array; ->a13 : (x: Base[], y: Derived[]) => Derived[] ->x : Base[] ->Array : T[] ->Base : Base ->y : Derived[] ->Array : T[] ->Derived : Derived ->Array : T[] ->Derived : Derived +>a13 : (x: Base[], y: Derived[]) => Derived[], Symbol(a13, Decl(callSignatureAssignabilityInInheritance2.ts, 20, 64)) +>x : Base[], Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 21, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>y : Derived[], Symbol(y, Decl(callSignatureAssignabilityInInheritance2.ts, 21, 25)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) a14: (x: { a: string; b: number }) => Object; ->a14 : (x: { a: string; b: number; }) => Object ->x : { a: string; b: number; } ->a : string ->b : number ->Object : Object +>a14 : (x: { a: string; b: number; }) => Object, Symbol(a14, Decl(callSignatureAssignabilityInInheritance2.ts, 21, 63)) +>x : { a: string; b: number; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 22, 10)) +>a : string, Symbol(a, Decl(callSignatureAssignabilityInInheritance2.ts, 22, 14)) +>b : number, Symbol(b, Decl(callSignatureAssignabilityInInheritance2.ts, 22, 25)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) a15: { ->a15 : { (x: number): number[]; (x: string): string[]; } +>a15 : { (x: number): number[]; (x: string): string[]; }, Symbol(a15, Decl(callSignatureAssignabilityInInheritance2.ts, 22, 49)) (x: number): number[]; ->x : number +>x : number, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 24, 9)) (x: string): string[]; ->x : string +>x : string, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 25, 9)) }; a16: { ->a16 : { (x: T): number[]; (x: U): number[]; } +>a16 : { (x: T): number[]; (x: U): number[]; }, Symbol(a16, Decl(callSignatureAssignabilityInInheritance2.ts, 26, 6)) (x: T): number[]; ->T : T ->Derived : Derived ->x : T ->T : T +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 28, 9)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 28, 28)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 28, 9)) (x: U): number[]; ->U : U ->Base : Base ->x : U ->U : U +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 29, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>x : U, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 29, 25)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 29, 9)) }; a17: { ->a17 : { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; } +>a17 : { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; }, Symbol(a17, Decl(callSignatureAssignabilityInInheritance2.ts, 30, 6)) (x: (a: number) => number): number[]; ->x : (a: number) => number ->a : number +>x : (a: number) => number, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 32, 9)) +>a : number, Symbol(a, Decl(callSignatureAssignabilityInInheritance2.ts, 32, 13)) (x: (a: string) => string): string[]; ->x : (a: string) => string ->a : string +>x : (a: string) => string, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 33, 9)) +>a : string, Symbol(a, Decl(callSignatureAssignabilityInInheritance2.ts, 33, 13)) }; a18: { ->a18 : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; } +>a18 : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }, Symbol(a18, Decl(callSignatureAssignabilityInInheritance2.ts, 34, 6)) (x: { ->x : { (a: number): number; (a: string): string; } +>x : { (a: number): number; (a: string): string; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 36, 9)) (a: number): number; ->a : number +>a : number, Symbol(a, Decl(callSignatureAssignabilityInInheritance2.ts, 37, 13)) (a: string): string; ->a : string +>a : string, Symbol(a, Decl(callSignatureAssignabilityInInheritance2.ts, 38, 13)) }): any[]; (x: { ->x : { (a: boolean): boolean; (a: Date): Date; } +>x : { (a: boolean): boolean; (a: Date): Date; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 40, 9)) (a: boolean): boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(callSignatureAssignabilityInInheritance2.ts, 41, 13)) (a: Date): Date; ->a : Date ->Date : Date ->Date : Date +>a : Date, Symbol(a, Decl(callSignatureAssignabilityInInheritance2.ts, 42, 13)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) }): any[]; }; @@ -204,195 +204,195 @@ interface A { // T // S's interface I extends A { ->I : I ->A : A +>I : I, Symbol(I, Decl(callSignatureAssignabilityInInheritance2.ts, 45, 1)) +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance2.ts, 5, 49)) // N's a: (x: T) => T[]; // ok, instantiation of N is a subtype of M, T is number ->a : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : (x: T) => T[], Symbol(a, Decl(callSignatureAssignabilityInInheritance2.ts, 48, 23)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 50, 8)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 50, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 50, 8)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 50, 8)) a2: (x: T) => string[]; // ok ->a2 : (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : (x: T) => string[], Symbol(a2, Decl(callSignatureAssignabilityInInheritance2.ts, 50, 24)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 51, 9)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 51, 12)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 51, 9)) a3: (x: T) => T; // ok since Base returns void ->a3 : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a3 : (x: T) => T, Symbol(a3, Decl(callSignatureAssignabilityInInheritance2.ts, 51, 30)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 52, 9)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 52, 12)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 52, 9)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 52, 9)) a4: (x: T, y: U) => T; // ok, instantiation of N is a subtype of M, T is string, U is number ->a4 : (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>a4 : (x: T, y: U) => T, Symbol(a4, Decl(callSignatureAssignabilityInInheritance2.ts, 52, 23)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 53, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 53, 11)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 53, 15)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 53, 9)) +>y : U, Symbol(y, Decl(callSignatureAssignabilityInInheritance2.ts, 53, 20)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 53, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 53, 9)) a5: (x: (arg: T) => U) => T; // ok, U is in a parameter position so inferences can be made ->a5 : (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : (x: (arg: T) => U) => T, Symbol(a5, Decl(callSignatureAssignabilityInInheritance2.ts, 53, 32)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 54, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 54, 11)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 54, 15)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance2.ts, 54, 19)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 54, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 54, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 54, 9)) a6: (x: (arg: T) => U) => T; // ok, same as a5 but with object type hierarchy ->a6 : (x: (arg: T) => U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a6 : (x: (arg: T) => U) => T, Symbol(a6, Decl(callSignatureAssignabilityInInheritance2.ts, 54, 38)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 55, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 55, 24)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 55, 44)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance2.ts, 55, 48)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 55, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 55, 24)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 55, 9)) a7: (x: (arg: T) => U) => (r: T) => U; // ok ->a7 : (x: (arg: T) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->r : T ->T : T ->U : U +>a7 : (x: (arg: T) => U) => (r: T) => U, Symbol(a7, Decl(callSignatureAssignabilityInInheritance2.ts, 55, 67)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 56, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 56, 24)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 56, 44)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance2.ts, 56, 48)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 56, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 56, 24)) +>r : T, Symbol(r, Decl(callSignatureAssignabilityInInheritance2.ts, 56, 66)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 56, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 56, 24)) a8: (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U; // ok ->a8 : (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->y : (arg2: T) => U ->arg2 : T ->T : T ->U : U ->r : T ->T : T ->U : U +>a8 : (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(a8, Decl(callSignatureAssignabilityInInheritance2.ts, 56, 77)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 24)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 44)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 48)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 24)) +>y : (arg2: T) => U, Symbol(y, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 61)) +>arg2 : T, Symbol(arg2, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 66)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 24)) +>r : T, Symbol(r, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 85)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 24)) a9: (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; // ok, same as a8 with compatible object literal ->a9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->y : (arg2: { foo: string; bing: number; }) => U ->arg2 : { foo: string; bing: number; } ->foo : string ->bing : number ->U : U ->r : T ->T : T ->U : U +>a9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(a9, Decl(callSignatureAssignabilityInInheritance2.ts, 57, 96)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 24)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 44)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 48)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 24)) +>y : (arg2: { foo: string; bing: number; }) => U, Symbol(y, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 61)) +>arg2 : { foo: string; bing: number; }, Symbol(arg2, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 66)) +>foo : string, Symbol(foo, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 73)) +>bing : number, Symbol(bing, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 86)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 24)) +>r : T, Symbol(r, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 113)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 24)) a10: (...x: T[]) => T; // ok ->a10 : (...x: T[]) => T ->T : T ->Derived : Derived ->x : T[] ->T : T ->T : T +>a10 : (...x: T[]) => T, Symbol(a10, Decl(callSignatureAssignabilityInInheritance2.ts, 58, 124)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 59, 10)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : T[], Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 59, 29)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 59, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 59, 10)) a11: (x: T, y: T) => T; // ok ->a11 : (x: T, y: T) => T ->T : T ->Base : Base ->x : T ->T : T ->y : T ->T : T ->T : T +>a11 : (x: T, y: T) => T, Symbol(a11, Decl(callSignatureAssignabilityInInheritance2.ts, 59, 45)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 60, 10)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 60, 26)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 60, 10)) +>y : T, Symbol(y, Decl(callSignatureAssignabilityInInheritance2.ts, 60, 31)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 60, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 60, 10)) a12: >(x: Array, y: T) => Array; // ok, less specific parameter type ->a12 : (x: Base[], y: T) => Derived[] ->T : T ->Array : T[] ->Base : Base ->x : Base[] ->Array : T[] ->Base : Base ->y : T ->T : T ->Array : T[] ->Derived : Derived +>a12 : (x: Base[], y: T) => Derived[], Symbol(a12, Decl(callSignatureAssignabilityInInheritance2.ts, 60, 43)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 61, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>x : Base[], Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 61, 33)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>y : T, Symbol(y, Decl(callSignatureAssignabilityInInheritance2.ts, 61, 48)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 61, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) a13: >(x: Array, y: T) => T; // ok, T = Array, satisfies constraint, contextual signature instantiation succeeds ->a13 : (x: Base[], y: T) => T ->T : T ->Array : T[] ->Derived : Derived ->x : Base[] ->Array : T[] ->Base : Base ->y : T ->T : T ->T : T +>a13 : (x: Base[], y: T) => T, Symbol(a13, Decl(callSignatureAssignabilityInInheritance2.ts, 61, 73)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 62, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : Base[], Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 62, 36)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>y : T, Symbol(y, Decl(callSignatureAssignabilityInInheritance2.ts, 62, 51)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 62, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 62, 10)) a14: (x: { a: T; b: T }) => T; // ok, best common type yields T = {} but that's satisfactory for this signature ->a14 : (x: { a: T; b: T; }) => T ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a14 : (x: { a: T; b: T; }) => T, Symbol(a14, Decl(callSignatureAssignabilityInInheritance2.ts, 62, 63)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 63, 10)) +>x : { a: T; b: T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 63, 13)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance2.ts, 63, 17)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 63, 10)) +>b : T, Symbol(b, Decl(callSignatureAssignabilityInInheritance2.ts, 63, 23)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 63, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 63, 10)) a15: (x: T) => T[]; // ok ->a15 : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a15 : (x: T) => T[], Symbol(a15, Decl(callSignatureAssignabilityInInheritance2.ts, 63, 37)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 64, 10)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 64, 13)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 64, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 64, 10)) a16: (x: T) => number[]; // ok ->a16 : (x: T) => number[] ->T : T ->Base : Base ->x : T ->T : T +>a16 : (x: T) => number[], Symbol(a16, Decl(callSignatureAssignabilityInInheritance2.ts, 64, 26)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 65, 10)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance2.ts, 0, 0)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 65, 26)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 65, 10)) a17: (x: (a: T) => T) => T[]; // ok ->a17 : (x: (a: T) => T) => T[] ->T : T ->x : (a: T) => T ->a : T ->T : T ->T : T ->T : T +>a17 : (x: (a: T) => T) => T[], Symbol(a17, Decl(callSignatureAssignabilityInInheritance2.ts, 65, 44)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 66, 10)) +>x : (a: T) => T, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 66, 13)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance2.ts, 66, 17)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 66, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 66, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 66, 10)) a18: (x: (a: T) => T) => T[]; // ok, no inferences for T but assignable to any ->a18 : (x: (a: T) => T) => T[] ->T : T ->x : (a: T) => T ->a : T ->T : T ->T : T ->T : T +>a18 : (x: (a: T) => T) => T[], Symbol(a18, Decl(callSignatureAssignabilityInInheritance2.ts, 66, 36)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 67, 10)) +>x : (a: T) => T, Symbol(x, Decl(callSignatureAssignabilityInInheritance2.ts, 67, 13)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance2.ts, 67, 17)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 67, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 67, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance2.ts, 67, 10)) } diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance4.types b/tests/baselines/reference/callSignatureAssignabilityInInheritance4.types index 0575d1332ce..d21ad142c83 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance4.types +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance4.types @@ -2,169 +2,169 @@ // checking subtype relations for function types as it relates to contextual signature instantiation class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance4.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(callSignatureAssignabilityInInheritance4.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance4.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance4.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(callSignatureAssignabilityInInheritance4.ts, 3, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(callSignatureAssignabilityInInheritance4.ts, 3, 43)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance4.ts, 2, 27)) +>baz : string, Symbol(baz, Decl(callSignatureAssignabilityInInheritance4.ts, 4, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(callSignatureAssignabilityInInheritance4.ts, 4, 47)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance4.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(callSignatureAssignabilityInInheritance4.ts, 5, 33)) interface A { // T ->A : A +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance4.ts, 5, 49)) // M's a: (x: T) => T[]; ->a : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : (x: T) => T[], Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 7, 13)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 9, 8)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 9, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 9, 8)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 9, 8)) a2: (x: T) => string[]; ->a2 : (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : (x: T) => string[], Symbol(a2, Decl(callSignatureAssignabilityInInheritance4.ts, 9, 24)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 10, 9)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 10, 12)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 10, 9)) a3: (x: T) => void; ->a3 : (x: T) => void ->T : T ->x : T ->T : T +>a3 : (x: T) => void, Symbol(a3, Decl(callSignatureAssignabilityInInheritance4.ts, 10, 30)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 11, 9)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 11, 12)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 11, 9)) a4: (x: T, y: U) => string; ->a4 : (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>a4 : (x: T, y: U) => string, Symbol(a4, Decl(callSignatureAssignabilityInInheritance4.ts, 11, 26)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 12, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 12, 11)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 12, 14)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 12, 9)) +>y : U, Symbol(y, Decl(callSignatureAssignabilityInInheritance4.ts, 12, 19)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 12, 11)) a5: (x: (arg: T) => U) => T; ->a5 : (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : (x: (arg: T) => U) => T, Symbol(a5, Decl(callSignatureAssignabilityInInheritance4.ts, 12, 36)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 13, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 13, 11)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 13, 14)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance4.ts, 13, 18)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 13, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 13, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 13, 9)) a6: (x: (arg: T) => Derived) => T; ->a6 : (x: (arg: T) => Derived) => T ->T : T ->Base : Base ->x : (arg: T) => Derived ->arg : T ->T : T ->Derived : Derived ->T : T +>a6 : (x: (arg: T) => Derived) => T, Symbol(a6, Decl(callSignatureAssignabilityInInheritance4.ts, 13, 37)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 14, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance4.ts, 0, 0)) +>x : (arg: T) => Derived, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 14, 25)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance4.ts, 14, 29)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 14, 9)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance4.ts, 2, 27)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 14, 9)) a11: (x: { foo: T }, y: { foo: T; bar: T }) => Base; ->a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->T : T ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: T; bar: T; } ->foo : T ->T : T ->bar : T ->T : T ->Base : Base +>a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(callSignatureAssignabilityInInheritance4.ts, 14, 54)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 15, 10)) +>x : { foo: T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 15, 13)) +>foo : T, Symbol(foo, Decl(callSignatureAssignabilityInInheritance4.ts, 15, 17)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 15, 10)) +>y : { foo: T; bar: T; }, Symbol(y, Decl(callSignatureAssignabilityInInheritance4.ts, 15, 27)) +>foo : T, Symbol(foo, Decl(callSignatureAssignabilityInInheritance4.ts, 15, 32)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 15, 10)) +>bar : T, Symbol(bar, Decl(callSignatureAssignabilityInInheritance4.ts, 15, 40)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 15, 10)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance4.ts, 0, 0)) a15: (x: { a: T; b: T }) => T[]; ->a15 : (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a15 : (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(callSignatureAssignabilityInInheritance4.ts, 15, 59)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 16, 10)) +>x : { a: T; b: T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 16, 13)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 16, 17)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 16, 10)) +>b : T, Symbol(b, Decl(callSignatureAssignabilityInInheritance4.ts, 16, 23)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 16, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 16, 10)) a16: (x: { a: T; b: T }) => T[]; ->a16 : (x: { a: T; b: T; }) => T[] ->T : T ->Base : Base ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a16 : (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(callSignatureAssignabilityInInheritance4.ts, 16, 39)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 17, 10)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance4.ts, 0, 0)) +>x : { a: T; b: T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 17, 26)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 17, 30)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 17, 10)) +>b : T, Symbol(b, Decl(callSignatureAssignabilityInInheritance4.ts, 17, 36)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 17, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 17, 10)) a17: { ->a17 : { (x: (a: T) => T): T[]; (x: (a: T) => T): T[]; } +>a17 : { (x: (a: T) => T): T[]; (x: (a: T) => T): T[]; }, Symbol(a17, Decl(callSignatureAssignabilityInInheritance4.ts, 17, 52)) (x: (a: T) => T): T[]; ->T : T ->Derived : Derived ->x : (a: T) => T ->a : T ->T : T ->T : T ->T : T +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 19, 9)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance4.ts, 2, 27)) +>x : (a: T) => T, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 19, 28)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 19, 32)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 19, 9)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 19, 9)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 19, 9)) (x: (a: T) => T): T[]; ->T : T ->Base : Base ->x : (a: T) => T ->a : T ->T : T ->T : T ->T : T +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 20, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance4.ts, 0, 0)) +>x : (a: T) => T, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 20, 25)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 20, 29)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 20, 9)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 20, 9)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 20, 9)) }; a18: { ->a18 : { (x: { (a: T): T; (a: T): T; }): any[]; (x: { (a: T): T; (a: T): T; }): any[]; } +>a18 : { (x: { (a: T): T; (a: T): T; }): any[]; (x: { (a: T): T; (a: T): T; }): any[]; }, Symbol(a18, Decl(callSignatureAssignabilityInInheritance4.ts, 21, 6)) (x: { ->x : { (a: T): T; (a: T): T; } +>x : { (a: T): T; (a: T): T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 23, 9)) (a: T): T; ->T : T ->Derived : Derived ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 24, 13)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance4.ts, 2, 27)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 24, 32)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 24, 13)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 24, 13)) (a: T): T; ->T : T ->Base : Base ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 25, 13)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance4.ts, 0, 0)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 25, 29)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 25, 13)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 25, 13)) }): any[]; (x: { ->x : { (a: T): T; (a: T): T; } +>x : { (a: T): T; (a: T): T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 27, 9)) (a: T): T; ->T : T ->Derived2 : Derived2 ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 28, 13)) +>Derived2 : Derived2, Symbol(Derived2, Decl(callSignatureAssignabilityInInheritance4.ts, 3, 43)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 28, 33)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 28, 13)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 28, 13)) (a: T): T; ->T : T ->Base : Base ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 29, 13)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance4.ts, 0, 0)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 29, 29)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 29, 13)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 29, 13)) }): any[]; }; @@ -172,110 +172,110 @@ interface A { // T // S's interface I extends A { ->I : I ->A : A +>I : I, Symbol(I, Decl(callSignatureAssignabilityInInheritance4.ts, 32, 1)) +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance4.ts, 5, 49)) // N's a: (x: T) => T[]; // ok, instantiation of N is a subtype of M, T is number ->a : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : (x: T) => T[], Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 35, 23)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 37, 8)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 37, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 37, 8)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 37, 8)) a2: (x: T) => string[]; // ok ->a2 : (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : (x: T) => string[], Symbol(a2, Decl(callSignatureAssignabilityInInheritance4.ts, 37, 24)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 38, 9)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 38, 12)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 38, 9)) a3: (x: T) => T; // ok since Base returns void ->a3 : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a3 : (x: T) => T, Symbol(a3, Decl(callSignatureAssignabilityInInheritance4.ts, 38, 30)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 39, 9)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 39, 12)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 39, 9)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 39, 9)) a4: (x: T, y: U) => string; // ok, instantiation of N is a subtype of M, T is string, U is number ->a4 : (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>a4 : (x: T, y: U) => string, Symbol(a4, Decl(callSignatureAssignabilityInInheritance4.ts, 39, 23)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 40, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 40, 11)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 40, 15)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 40, 9)) +>y : U, Symbol(y, Decl(callSignatureAssignabilityInInheritance4.ts, 40, 20)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 40, 11)) a5: (x: (arg: T) => U) => T; // ok, U is in a parameter position so inferences can be made ->a5 : (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : (x: (arg: T) => U) => T, Symbol(a5, Decl(callSignatureAssignabilityInInheritance4.ts, 40, 37)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 41, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 41, 11)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 41, 15)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance4.ts, 41, 19)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 41, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 41, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 41, 9)) a6: (x: (arg: T) => U) => T; // ok, same as a5 but with object type hierarchy ->a6 : (x: (arg: T) => U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a6 : (x: (arg: T) => U) => T, Symbol(a6, Decl(callSignatureAssignabilityInInheritance4.ts, 41, 38)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 42, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance4.ts, 0, 0)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 42, 24)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance4.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 42, 44)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance4.ts, 42, 48)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 42, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 42, 24)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 42, 9)) a11: (x: { foo: T }, y: { foo: U; bar: U }) => Base; // ok ->a11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->T : T ->U : U ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: U; bar: U; } ->foo : U ->U : U ->bar : U ->U : U ->Base : Base +>a11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(a11, Decl(callSignatureAssignabilityInInheritance4.ts, 42, 67)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 43, 10)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 43, 12)) +>x : { foo: T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 43, 16)) +>foo : T, Symbol(foo, Decl(callSignatureAssignabilityInInheritance4.ts, 43, 20)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 43, 10)) +>y : { foo: U; bar: U; }, Symbol(y, Decl(callSignatureAssignabilityInInheritance4.ts, 43, 30)) +>foo : U, Symbol(foo, Decl(callSignatureAssignabilityInInheritance4.ts, 43, 35)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 43, 12)) +>bar : U, Symbol(bar, Decl(callSignatureAssignabilityInInheritance4.ts, 43, 43)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 43, 12)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance4.ts, 0, 0)) a15: (x: { a: U; b: V; }) => U[]; // ok, T = U, T = V ->a15 : (x: { a: U; b: V; }) => U[] ->U : U ->V : V ->x : { a: U; b: V; } ->a : U ->U : U ->b : V ->V : V ->U : U +>a15 : (x: { a: U; b: V; }) => U[], Symbol(a15, Decl(callSignatureAssignabilityInInheritance4.ts, 43, 62)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 44, 10)) +>V : V, Symbol(V, Decl(callSignatureAssignabilityInInheritance4.ts, 44, 12)) +>x : { a: U; b: V; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 44, 16)) +>a : U, Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 44, 20)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 44, 10)) +>b : V, Symbol(b, Decl(callSignatureAssignabilityInInheritance4.ts, 44, 26)) +>V : V, Symbol(V, Decl(callSignatureAssignabilityInInheritance4.ts, 44, 12)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance4.ts, 44, 10)) a16: (x: { a: T; b: T }) => T[]; // ok, more general parameter type ->a16 : (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a16 : (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(callSignatureAssignabilityInInheritance4.ts, 44, 43)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 45, 10)) +>x : { a: T; b: T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 45, 13)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 45, 17)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 45, 10)) +>b : T, Symbol(b, Decl(callSignatureAssignabilityInInheritance4.ts, 45, 23)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 45, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 45, 10)) a17: (x: (a: T) => T) => T[]; // ok ->a17 : (x: (a: T) => T) => T[] ->T : T ->x : (a: T) => T ->a : T ->T : T ->T : T ->T : T +>a17 : (x: (a: T) => T) => T[], Symbol(a17, Decl(callSignatureAssignabilityInInheritance4.ts, 45, 39)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 46, 10)) +>x : (a: T) => T, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 46, 13)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 46, 17)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 46, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 46, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 46, 10)) a18: (x: (a: T) => T) => any[]; // ok ->a18 : (x: (a: T) => T) => any[] ->x : (a: T) => T ->T : T ->a : T ->T : T ->T : T +>a18 : (x: (a: T) => T) => any[], Symbol(a18, Decl(callSignatureAssignabilityInInheritance4.ts, 46, 36)) +>x : (a: T) => T, Symbol(x, Decl(callSignatureAssignabilityInInheritance4.ts, 47, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 47, 14)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance4.ts, 47, 17)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 47, 14)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance4.ts, 47, 14)) } diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance5.types b/tests/baselines/reference/callSignatureAssignabilityInInheritance5.types index 0ffc8257a56..74c8ddc6bd3 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance5.types +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance5.types @@ -3,312 +3,312 @@ // same as subtypingWithCallSignatures2 just with an extra level of indirection in the inheritance chain class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(callSignatureAssignabilityInInheritance5.ts, 4, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(callSignatureAssignabilityInInheritance5.ts, 4, 43)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>baz : string, Symbol(baz, Decl(callSignatureAssignabilityInInheritance5.ts, 5, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(callSignatureAssignabilityInInheritance5.ts, 5, 47)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(callSignatureAssignabilityInInheritance5.ts, 6, 33)) interface A { // T ->A : A +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance5.ts, 6, 49)) // M's a: (x: number) => number[]; ->a : (x: number) => number[] ->x : number +>a : (x: number) => number[], Symbol(a, Decl(callSignatureAssignabilityInInheritance5.ts, 8, 13)) +>x : number, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 10, 8)) a2: (x: number) => string[]; ->a2 : (x: number) => string[] ->x : number +>a2 : (x: number) => string[], Symbol(a2, Decl(callSignatureAssignabilityInInheritance5.ts, 10, 31)) +>x : number, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 11, 9)) a3: (x: number) => void; ->a3 : (x: number) => void ->x : number +>a3 : (x: number) => void, Symbol(a3, Decl(callSignatureAssignabilityInInheritance5.ts, 11, 32)) +>x : number, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 12, 9)) a4: (x: string, y: number) => string; ->a4 : (x: string, y: number) => string ->x : string ->y : number +>a4 : (x: string, y: number) => string, Symbol(a4, Decl(callSignatureAssignabilityInInheritance5.ts, 12, 28)) +>x : string, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 13, 9)) +>y : number, Symbol(y, Decl(callSignatureAssignabilityInInheritance5.ts, 13, 19)) a5: (x: (arg: string) => number) => string; ->a5 : (x: (arg: string) => number) => string ->x : (arg: string) => number ->arg : string +>a5 : (x: (arg: string) => number) => string, Symbol(a5, Decl(callSignatureAssignabilityInInheritance5.ts, 13, 41)) +>x : (arg: string) => number, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 14, 9)) +>arg : string, Symbol(arg, Decl(callSignatureAssignabilityInInheritance5.ts, 14, 13)) a6: (x: (arg: Base) => Derived) => Base; ->a6 : (x: (arg: Base) => Derived) => Base ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->Base : Base +>a6 : (x: (arg: Base) => Derived) => Base, Symbol(a6, Decl(callSignatureAssignabilityInInheritance5.ts, 14, 47)) +>x : (arg: Base) => Derived, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 15, 9)) +>arg : Base, Symbol(arg, Decl(callSignatureAssignabilityInInheritance5.ts, 15, 13)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) a7: (x: (arg: Base) => Derived) => (r: Base) => Derived; ->a7 : (x: (arg: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a7 : (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(a7, Decl(callSignatureAssignabilityInInheritance5.ts, 15, 44)) +>x : (arg: Base) => Derived, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 16, 9)) +>arg : Base, Symbol(arg, Decl(callSignatureAssignabilityInInheritance5.ts, 16, 13)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>r : Base, Symbol(r, Decl(callSignatureAssignabilityInInheritance5.ts, 16, 40)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) a8: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; ->a8 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->y : (arg2: Base) => Derived ->arg2 : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a8 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a8, Decl(callSignatureAssignabilityInInheritance5.ts, 16, 60)) +>x : (arg: Base) => Derived, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 17, 9)) +>arg : Base, Symbol(arg, Decl(callSignatureAssignabilityInInheritance5.ts, 17, 13)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>y : (arg2: Base) => Derived, Symbol(y, Decl(callSignatureAssignabilityInInheritance5.ts, 17, 35)) +>arg2 : Base, Symbol(arg2, Decl(callSignatureAssignabilityInInheritance5.ts, 17, 40)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>r : Base, Symbol(r, Decl(callSignatureAssignabilityInInheritance5.ts, 17, 68)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) a9: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; ->a9 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->y : (arg2: Base) => Derived ->arg2 : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a9 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a9, Decl(callSignatureAssignabilityInInheritance5.ts, 17, 88)) +>x : (arg: Base) => Derived, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 18, 9)) +>arg : Base, Symbol(arg, Decl(callSignatureAssignabilityInInheritance5.ts, 18, 13)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>y : (arg2: Base) => Derived, Symbol(y, Decl(callSignatureAssignabilityInInheritance5.ts, 18, 35)) +>arg2 : Base, Symbol(arg2, Decl(callSignatureAssignabilityInInheritance5.ts, 18, 40)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>r : Base, Symbol(r, Decl(callSignatureAssignabilityInInheritance5.ts, 18, 68)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) a10: (...x: Derived[]) => Derived; ->a10 : (...x: Derived[]) => Derived ->x : Derived[] ->Derived : Derived ->Derived : Derived +>a10 : (...x: Derived[]) => Derived, Symbol(a10, Decl(callSignatureAssignabilityInInheritance5.ts, 18, 88)) +>x : Derived[], Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 19, 10)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) a11: (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base ->x : { foo: string; } ->foo : string ->y : { foo: string; bar: string; } ->foo : string ->bar : string ->Base : Base +>a11 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(a11, Decl(callSignatureAssignabilityInInheritance5.ts, 19, 38)) +>x : { foo: string; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 20, 10)) +>foo : string, Symbol(foo, Decl(callSignatureAssignabilityInInheritance5.ts, 20, 14)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(callSignatureAssignabilityInInheritance5.ts, 20, 29)) +>foo : string, Symbol(foo, Decl(callSignatureAssignabilityInInheritance5.ts, 20, 34)) +>bar : string, Symbol(bar, Decl(callSignatureAssignabilityInInheritance5.ts, 20, 47)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) a12: (x: Array, y: Array) => Array; ->a12 : (x: Base[], y: Derived2[]) => Derived[] ->x : Base[] ->Array : T[] ->Base : Base ->y : Derived2[] ->Array : T[] ->Derived2 : Derived2 ->Array : T[] ->Derived : Derived +>a12 : (x: Base[], y: Derived2[]) => Derived[], Symbol(a12, Decl(callSignatureAssignabilityInInheritance5.ts, 20, 71)) +>x : Base[], Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 21, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>y : Derived2[], Symbol(y, Decl(callSignatureAssignabilityInInheritance5.ts, 21, 25)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived2 : Derived2, Symbol(Derived2, Decl(callSignatureAssignabilityInInheritance5.ts, 4, 43)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) a13: (x: Array, y: Array) => Array; ->a13 : (x: Base[], y: Derived[]) => Derived[] ->x : Base[] ->Array : T[] ->Base : Base ->y : Derived[] ->Array : T[] ->Derived : Derived ->Array : T[] ->Derived : Derived +>a13 : (x: Base[], y: Derived[]) => Derived[], Symbol(a13, Decl(callSignatureAssignabilityInInheritance5.ts, 21, 64)) +>x : Base[], Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 22, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>y : Derived[], Symbol(y, Decl(callSignatureAssignabilityInInheritance5.ts, 22, 25)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) a14: (x: { a: string; b: number }) => Object; ->a14 : (x: { a: string; b: number; }) => Object ->x : { a: string; b: number; } ->a : string ->b : number ->Object : Object +>a14 : (x: { a: string; b: number; }) => Object, Symbol(a14, Decl(callSignatureAssignabilityInInheritance5.ts, 22, 63)) +>x : { a: string; b: number; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 23, 10)) +>a : string, Symbol(a, Decl(callSignatureAssignabilityInInheritance5.ts, 23, 14)) +>b : number, Symbol(b, Decl(callSignatureAssignabilityInInheritance5.ts, 23, 25)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) } interface B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(callSignatureAssignabilityInInheritance5.ts, 24, 1)) +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance5.ts, 6, 49)) a: (x: T) => T[]; ->a : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : (x: T) => T[], Symbol(a, Decl(callSignatureAssignabilityInInheritance5.ts, 26, 23)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 27, 8)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 27, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 27, 8)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 27, 8)) } // S's interface I extends B { ->I : I ->B : B +>I : I, Symbol(I, Decl(callSignatureAssignabilityInInheritance5.ts, 28, 1)) +>B : B, Symbol(B, Decl(callSignatureAssignabilityInInheritance5.ts, 24, 1)) // N's a: (x: T) => T[]; // ok, instantiation of N is a subtype of M, T is number ->a : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : (x: T) => T[], Symbol(a, Decl(callSignatureAssignabilityInInheritance5.ts, 31, 23)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 33, 8)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 33, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 33, 8)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 33, 8)) a2: (x: T) => string[]; // ok ->a2 : (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : (x: T) => string[], Symbol(a2, Decl(callSignatureAssignabilityInInheritance5.ts, 33, 24)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 34, 9)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 34, 12)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 34, 9)) a3: (x: T) => T; // ok since Base returns void ->a3 : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a3 : (x: T) => T, Symbol(a3, Decl(callSignatureAssignabilityInInheritance5.ts, 34, 30)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 35, 9)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 35, 12)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 35, 9)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 35, 9)) a4: (x: T, y: U) => T; // ok, instantiation of N is a subtype of M, T is string, U is number ->a4 : (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>a4 : (x: T, y: U) => T, Symbol(a4, Decl(callSignatureAssignabilityInInheritance5.ts, 35, 23)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 36, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 36, 11)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 36, 15)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 36, 9)) +>y : U, Symbol(y, Decl(callSignatureAssignabilityInInheritance5.ts, 36, 20)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 36, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 36, 9)) a5: (x: (arg: T) => U) => T; // ok, U is in a parameter position so inferences can be made ->a5 : (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : (x: (arg: T) => U) => T, Symbol(a5, Decl(callSignatureAssignabilityInInheritance5.ts, 36, 32)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 37, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 37, 11)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 37, 15)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance5.ts, 37, 19)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 37, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 37, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 37, 9)) a6: (x: (arg: T) => U) => T; // ok, same as a5 but with object type hierarchy ->a6 : (x: (arg: T) => U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a6 : (x: (arg: T) => U) => T, Symbol(a6, Decl(callSignatureAssignabilityInInheritance5.ts, 37, 38)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 38, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 38, 24)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 38, 44)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance5.ts, 38, 48)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 38, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 38, 24)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 38, 9)) a7: (x: (arg: T) => U) => (r: T) => U; // ok ->a7 : (x: (arg: T) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->r : T ->T : T ->U : U +>a7 : (x: (arg: T) => U) => (r: T) => U, Symbol(a7, Decl(callSignatureAssignabilityInInheritance5.ts, 38, 67)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 39, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 39, 24)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 39, 44)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance5.ts, 39, 48)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 39, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 39, 24)) +>r : T, Symbol(r, Decl(callSignatureAssignabilityInInheritance5.ts, 39, 66)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 39, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 39, 24)) a8: (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U; // ok ->a8 : (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->y : (arg2: T) => U ->arg2 : T ->T : T ->U : U ->r : T ->T : T ->U : U +>a8 : (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(a8, Decl(callSignatureAssignabilityInInheritance5.ts, 39, 77)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 24)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 44)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 48)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 24)) +>y : (arg2: T) => U, Symbol(y, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 61)) +>arg2 : T, Symbol(arg2, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 66)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 24)) +>r : T, Symbol(r, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 85)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 24)) a9: (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; // ok, same as a8 with compatible object literal ->a9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->y : (arg2: { foo: string; bing: number; }) => U ->arg2 : { foo: string; bing: number; } ->foo : string ->bing : number ->U : U ->r : T ->T : T ->U : U +>a9 : (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(a9, Decl(callSignatureAssignabilityInInheritance5.ts, 40, 96)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 24)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 44)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 48)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 24)) +>y : (arg2: { foo: string; bing: number; }) => U, Symbol(y, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 61)) +>arg2 : { foo: string; bing: number; }, Symbol(arg2, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 66)) +>foo : string, Symbol(foo, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 73)) +>bing : number, Symbol(bing, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 86)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 24)) +>r : T, Symbol(r, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 113)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 24)) a10: (...x: T[]) => T; // ok ->a10 : (...x: T[]) => T ->T : T ->Derived : Derived ->x : T[] ->T : T ->T : T +>a10 : (...x: T[]) => T, Symbol(a10, Decl(callSignatureAssignabilityInInheritance5.ts, 41, 124)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 42, 10)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>x : T[], Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 42, 29)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 42, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 42, 10)) a11: (x: T, y: T) => T; // ok ->a11 : (x: T, y: T) => T ->T : T ->Base : Base ->x : T ->T : T ->y : T ->T : T ->T : T +>a11 : (x: T, y: T) => T, Symbol(a11, Decl(callSignatureAssignabilityInInheritance5.ts, 42, 45)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 43, 10)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 43, 26)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 43, 10)) +>y : T, Symbol(y, Decl(callSignatureAssignabilityInInheritance5.ts, 43, 31)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 43, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 43, 10)) a12: >(x: Array, y: T) => Array; // ok, less specific parameter type ->a12 : (x: Base[], y: T) => Derived[] ->T : T ->Array : T[] ->Base : Base ->x : Base[] ->Array : T[] ->Base : Base ->y : T ->T : T ->Array : T[] ->Derived : Derived +>a12 : (x: Base[], y: T) => Derived[], Symbol(a12, Decl(callSignatureAssignabilityInInheritance5.ts, 43, 43)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 44, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>x : Base[], Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 44, 33)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>y : T, Symbol(y, Decl(callSignatureAssignabilityInInheritance5.ts, 44, 48)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 44, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) a13: >(x: Array, y: T) => T; // ok, T = Array, satisfies constraint, contextual signature instantiation succeeds ->a13 : (x: Base[], y: T) => T ->T : T ->Array : T[] ->Derived : Derived ->x : Base[] ->Array : T[] ->Base : Base ->y : T ->T : T ->T : T +>a13 : (x: Base[], y: T) => T, Symbol(a13, Decl(callSignatureAssignabilityInInheritance5.ts, 44, 73)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 45, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance5.ts, 3, 27)) +>x : Base[], Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 45, 36)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance5.ts, 0, 0)) +>y : T, Symbol(y, Decl(callSignatureAssignabilityInInheritance5.ts, 45, 51)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 45, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 45, 10)) a14: (x: { a: T; b: T }) => T; // ok, best common type yields T = {} but that's satisfactory for this signature ->a14 : (x: { a: T; b: T; }) => T ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a14 : (x: { a: T; b: T; }) => T, Symbol(a14, Decl(callSignatureAssignabilityInInheritance5.ts, 45, 63)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 46, 10)) +>x : { a: T; b: T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance5.ts, 46, 13)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance5.ts, 46, 17)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 46, 10)) +>b : T, Symbol(b, Decl(callSignatureAssignabilityInInheritance5.ts, 46, 23)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 46, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance5.ts, 46, 10)) } diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance6.types b/tests/baselines/reference/callSignatureAssignabilityInInheritance6.types index 721b691be70..de77cd5b838 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance6.types +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance6.types @@ -4,206 +4,206 @@ // all are errors class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance6.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(callSignatureAssignabilityInInheritance6.ts, 4, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance6.ts, 4, 27)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance6.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(callSignatureAssignabilityInInheritance6.ts, 5, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(callSignatureAssignabilityInInheritance6.ts, 5, 43)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance6.ts, 4, 27)) +>baz : string, Symbol(baz, Decl(callSignatureAssignabilityInInheritance6.ts, 6, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(callSignatureAssignabilityInInheritance6.ts, 6, 47)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance6.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(callSignatureAssignabilityInInheritance6.ts, 7, 33)) interface A { // T ->A : A +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance6.ts, 7, 49)) // M's a: (x: T) => T[]; ->a : (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : (x: T) => T[], Symbol(a, Decl(callSignatureAssignabilityInInheritance6.ts, 9, 13)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 11, 8)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 11, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 11, 8)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 11, 8)) a2: (x: T) => string[]; ->a2 : (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : (x: T) => string[], Symbol(a2, Decl(callSignatureAssignabilityInInheritance6.ts, 11, 24)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 12, 9)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 12, 12)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 12, 9)) a3: (x: T) => void; ->a3 : (x: T) => void ->T : T ->x : T ->T : T +>a3 : (x: T) => void, Symbol(a3, Decl(callSignatureAssignabilityInInheritance6.ts, 12, 30)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 13, 9)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 13, 12)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 13, 9)) a4: (x: T, y: U) => string; ->a4 : (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>a4 : (x: T, y: U) => string, Symbol(a4, Decl(callSignatureAssignabilityInInheritance6.ts, 13, 26)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 14, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance6.ts, 14, 11)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 14, 14)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 14, 9)) +>y : U, Symbol(y, Decl(callSignatureAssignabilityInInheritance6.ts, 14, 19)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance6.ts, 14, 11)) a5: (x: (arg: T) => U) => T; ->a5 : (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : (x: (arg: T) => U) => T, Symbol(a5, Decl(callSignatureAssignabilityInInheritance6.ts, 14, 36)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 15, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance6.ts, 15, 11)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 15, 14)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance6.ts, 15, 18)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 15, 9)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance6.ts, 15, 11)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 15, 9)) a6: (x: (arg: T) => Derived) => T; ->a6 : (x: (arg: T) => Derived) => T ->T : T ->Base : Base ->x : (arg: T) => Derived ->arg : T ->T : T ->Derived : Derived ->T : T +>a6 : (x: (arg: T) => Derived) => T, Symbol(a6, Decl(callSignatureAssignabilityInInheritance6.ts, 15, 37)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 16, 9)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance6.ts, 0, 0)) +>x : (arg: T) => Derived, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 16, 25)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance6.ts, 16, 29)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 16, 9)) +>Derived : Derived, Symbol(Derived, Decl(callSignatureAssignabilityInInheritance6.ts, 4, 27)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 16, 9)) a11: (x: { foo: T }, y: { foo: T; bar: T }) => Base; ->a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->T : T ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: T; bar: T; } ->foo : T ->T : T ->bar : T ->T : T ->Base : Base +>a11 : (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(callSignatureAssignabilityInInheritance6.ts, 16, 54)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 17, 10)) +>x : { foo: T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 17, 13)) +>foo : T, Symbol(foo, Decl(callSignatureAssignabilityInInheritance6.ts, 17, 17)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 17, 10)) +>y : { foo: T; bar: T; }, Symbol(y, Decl(callSignatureAssignabilityInInheritance6.ts, 17, 27)) +>foo : T, Symbol(foo, Decl(callSignatureAssignabilityInInheritance6.ts, 17, 32)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 17, 10)) +>bar : T, Symbol(bar, Decl(callSignatureAssignabilityInInheritance6.ts, 17, 40)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 17, 10)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance6.ts, 0, 0)) a15: (x: { a: T; b: T }) => T[]; ->a15 : (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a15 : (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(callSignatureAssignabilityInInheritance6.ts, 17, 59)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 18, 10)) +>x : { a: T; b: T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 18, 13)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance6.ts, 18, 17)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 18, 10)) +>b : T, Symbol(b, Decl(callSignatureAssignabilityInInheritance6.ts, 18, 23)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 18, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 18, 10)) a16: (x: { a: T; b: T }) => T[]; ->a16 : (x: { a: T; b: T; }) => T[] ->T : T ->Base : Base ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a16 : (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(callSignatureAssignabilityInInheritance6.ts, 18, 39)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 19, 10)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance6.ts, 0, 0)) +>x : { a: T; b: T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 19, 26)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance6.ts, 19, 30)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 19, 10)) +>b : T, Symbol(b, Decl(callSignatureAssignabilityInInheritance6.ts, 19, 36)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 19, 10)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 19, 10)) } // S's interface I extends A { ->I : I ->T : T ->A : A +>I : I, Symbol(I, Decl(callSignatureAssignabilityInInheritance6.ts, 20, 1)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 23, 12)) +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance6.ts, 7, 49)) a: (x: T) => T[]; ->a : (x: T) => T[] ->x : T ->T : T ->T : T +>a : (x: T) => T[], Symbol(a, Decl(callSignatureAssignabilityInInheritance6.ts, 23, 26)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 24, 8)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 23, 12)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 23, 12)) } interface I2 extends A { ->I2 : I2 ->T : T ->A : A +>I2 : I2, Symbol(I2, Decl(callSignatureAssignabilityInInheritance6.ts, 25, 1)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 27, 13)) +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance6.ts, 7, 49)) a2: (x: T) => string[]; ->a2 : (x: T) => string[] ->x : T ->T : T +>a2 : (x: T) => string[], Symbol(a2, Decl(callSignatureAssignabilityInInheritance6.ts, 27, 27)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 28, 9)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 27, 13)) } interface I3 extends A { ->I3 : I3 ->T : T ->A : A +>I3 : I3, Symbol(I3, Decl(callSignatureAssignabilityInInheritance6.ts, 29, 1)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 31, 13)) +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance6.ts, 7, 49)) a3: (x: T) => T; ->a3 : (x: T) => T ->x : T ->T : T ->T : T +>a3 : (x: T) => T, Symbol(a3, Decl(callSignatureAssignabilityInInheritance6.ts, 31, 27)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 32, 9)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 31, 13)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 31, 13)) } interface I4 extends A { ->I4 : I4 ->T : T ->A : A +>I4 : I4, Symbol(I4, Decl(callSignatureAssignabilityInInheritance6.ts, 33, 1)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 35, 13)) +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance6.ts, 7, 49)) a4: (x: T, y: U) => string; ->a4 : (x: T, y: U) => string ->U : U ->x : T ->T : T ->y : U ->U : U +>a4 : (x: T, y: U) => string, Symbol(a4, Decl(callSignatureAssignabilityInInheritance6.ts, 35, 27)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance6.ts, 36, 9)) +>x : T, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 36, 12)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 35, 13)) +>y : U, Symbol(y, Decl(callSignatureAssignabilityInInheritance6.ts, 36, 17)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance6.ts, 36, 9)) } interface I5 extends A { ->I5 : I5 ->T : T ->A : A +>I5 : I5, Symbol(I5, Decl(callSignatureAssignabilityInInheritance6.ts, 37, 1)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 39, 13)) +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance6.ts, 7, 49)) a5: (x: (arg: T) => U) => T; ->a5 : (x: (arg: T) => U) => T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : (x: (arg: T) => U) => T, Symbol(a5, Decl(callSignatureAssignabilityInInheritance6.ts, 39, 27)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance6.ts, 40, 9)) +>x : (arg: T) => U, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 40, 12)) +>arg : T, Symbol(arg, Decl(callSignatureAssignabilityInInheritance6.ts, 40, 16)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 39, 13)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance6.ts, 40, 9)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 39, 13)) } interface I7 extends A { ->I7 : I7 ->T : T ->A : A +>I7 : I7, Symbol(I7, Decl(callSignatureAssignabilityInInheritance6.ts, 41, 1)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 43, 13)) +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance6.ts, 7, 49)) a11: (x: { foo: T }, y: { foo: U; bar: U }) => Base; ->a11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->U : U ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: U; bar: U; } ->foo : U ->U : U ->bar : U ->U : U ->Base : Base +>a11 : (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(a11, Decl(callSignatureAssignabilityInInheritance6.ts, 43, 27)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance6.ts, 44, 10)) +>x : { foo: T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 44, 13)) +>foo : T, Symbol(foo, Decl(callSignatureAssignabilityInInheritance6.ts, 44, 17)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 43, 13)) +>y : { foo: U; bar: U; }, Symbol(y, Decl(callSignatureAssignabilityInInheritance6.ts, 44, 27)) +>foo : U, Symbol(foo, Decl(callSignatureAssignabilityInInheritance6.ts, 44, 32)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance6.ts, 44, 10)) +>bar : U, Symbol(bar, Decl(callSignatureAssignabilityInInheritance6.ts, 44, 40)) +>U : U, Symbol(U, Decl(callSignatureAssignabilityInInheritance6.ts, 44, 10)) +>Base : Base, Symbol(Base, Decl(callSignatureAssignabilityInInheritance6.ts, 0, 0)) } interface I9 extends A { ->I9 : I9 ->T : T ->A : A +>I9 : I9, Symbol(I9, Decl(callSignatureAssignabilityInInheritance6.ts, 45, 1)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 47, 13)) +>A : A, Symbol(A, Decl(callSignatureAssignabilityInInheritance6.ts, 7, 49)) a16: (x: { a: T; b: T }) => T[]; ->a16 : (x: { a: T; b: T; }) => T[] ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a16 : (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(callSignatureAssignabilityInInheritance6.ts, 47, 27)) +>x : { a: T; b: T; }, Symbol(x, Decl(callSignatureAssignabilityInInheritance6.ts, 48, 10)) +>a : T, Symbol(a, Decl(callSignatureAssignabilityInInheritance6.ts, 48, 14)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 47, 13)) +>b : T, Symbol(b, Decl(callSignatureAssignabilityInInheritance6.ts, 48, 20)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 47, 13)) +>T : T, Symbol(T, Decl(callSignatureAssignabilityInInheritance6.ts, 47, 13)) } diff --git a/tests/baselines/reference/callSignatureFunctionOverload.types b/tests/baselines/reference/callSignatureFunctionOverload.types index b9788e5b143..885e0887057 100644 --- a/tests/baselines/reference/callSignatureFunctionOverload.types +++ b/tests/baselines/reference/callSignatureFunctionOverload.types @@ -1,33 +1,33 @@ === tests/cases/compiler/callSignatureFunctionOverload.ts === var foo: { ->foo : { (name: string): string; (name: 'order'): string; (name: 'content'): string; (name: 'done'): string; } +>foo : { (name: string): string; (name: 'order'): string; (name: 'content'): string; (name: 'done'): string; }, Symbol(foo, Decl(callSignatureFunctionOverload.ts, 0, 3)) (name: string): string; ->name : string +>name : string, Symbol(name, Decl(callSignatureFunctionOverload.ts, 1, 5)) (name: 'order'): string; ->name : 'order' +>name : 'order', Symbol(name, Decl(callSignatureFunctionOverload.ts, 2, 5)) (name: 'content'): string; ->name : 'content' +>name : 'content', Symbol(name, Decl(callSignatureFunctionOverload.ts, 3, 5)) (name: 'done'): string; ->name : 'done' +>name : 'done', Symbol(name, Decl(callSignatureFunctionOverload.ts, 4, 5)) } var foo2: { ->foo2 : { (name: string): string; (name: 'order'): string; (name: 'order'): string; (name: 'done'): string; } +>foo2 : { (name: string): string; (name: 'order'): string; (name: 'order'): string; (name: 'done'): string; }, Symbol(foo2, Decl(callSignatureFunctionOverload.ts, 7, 3)) (name: string): string; ->name : string +>name : string, Symbol(name, Decl(callSignatureFunctionOverload.ts, 8, 5)) (name: 'order'): string; ->name : 'order' +>name : 'order', Symbol(name, Decl(callSignatureFunctionOverload.ts, 9, 5)) (name: 'order'): string; ->name : 'order' +>name : 'order', Symbol(name, Decl(callSignatureFunctionOverload.ts, 10, 5)) (name: 'done'): string; ->name : 'done' +>name : 'done', Symbol(name, Decl(callSignatureFunctionOverload.ts, 11, 5)) } diff --git a/tests/baselines/reference/callSignatureWithoutAnnotationsOrBody.types b/tests/baselines/reference/callSignatureWithoutAnnotationsOrBody.types index b8b608762f5..7054a0c535e 100644 --- a/tests/baselines/reference/callSignatureWithoutAnnotationsOrBody.types +++ b/tests/baselines/reference/callSignatureWithoutAnnotationsOrBody.types @@ -2,54 +2,55 @@ // Call signatures without a return type annotation and function body return 'any' function foo(x) { } ->foo : (x: any) => void ->x : any +>foo : (x: any) => void, Symbol(foo, Decl(callSignatureWithoutAnnotationsOrBody.ts, 0, 0)) +>x : any, Symbol(x, Decl(callSignatureWithoutAnnotationsOrBody.ts, 2, 13)) var r = foo(1); // void since there's a body ->r : void +>r : void, Symbol(r, Decl(callSignatureWithoutAnnotationsOrBody.ts, 3, 3)) >foo(1) : void ->foo : (x: any) => void +>foo : (x: any) => void, Symbol(foo, Decl(callSignatureWithoutAnnotationsOrBody.ts, 0, 0)) +>1 : number interface I { ->I : I +>I : I, Symbol(I, Decl(callSignatureWithoutAnnotationsOrBody.ts, 3, 15)) (); f(); ->f : () => any +>f : () => any, Symbol(f, Decl(callSignatureWithoutAnnotationsOrBody.ts, 6, 7)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(callSignatureWithoutAnnotationsOrBody.ts, 9, 3)) +>I : I, Symbol(I, Decl(callSignatureWithoutAnnotationsOrBody.ts, 3, 15)) var r2 = i(); ->r2 : any +>r2 : any, Symbol(r2, Decl(callSignatureWithoutAnnotationsOrBody.ts, 10, 3)) >i() : any ->i : I +>i : I, Symbol(i, Decl(callSignatureWithoutAnnotationsOrBody.ts, 9, 3)) var r3 = i.f(); ->r3 : any +>r3 : any, Symbol(r3, Decl(callSignatureWithoutAnnotationsOrBody.ts, 11, 3)) >i.f() : any ->i.f : () => any ->i : I ->f : () => any +>i.f : () => any, Symbol(I.f, Decl(callSignatureWithoutAnnotationsOrBody.ts, 6, 7)) +>i : I, Symbol(i, Decl(callSignatureWithoutAnnotationsOrBody.ts, 9, 3)) +>f : () => any, Symbol(I.f, Decl(callSignatureWithoutAnnotationsOrBody.ts, 6, 7)) var a: { ->a : { (): any; f(): any; } +>a : { (): any; f(): any; }, Symbol(a, Decl(callSignatureWithoutAnnotationsOrBody.ts, 13, 3)) (); f(); ->f : () => any +>f : () => any, Symbol(f, Decl(callSignatureWithoutAnnotationsOrBody.ts, 14, 7)) }; var r4 = a(); ->r4 : any +>r4 : any, Symbol(r4, Decl(callSignatureWithoutAnnotationsOrBody.ts, 17, 3)) >a() : any ->a : { (): any; f(): any; } +>a : { (): any; f(): any; }, Symbol(a, Decl(callSignatureWithoutAnnotationsOrBody.ts, 13, 3)) var r5 = a.f(); ->r5 : any +>r5 : any, Symbol(r5, Decl(callSignatureWithoutAnnotationsOrBody.ts, 18, 3)) >a.f() : any ->a.f : () => any ->a : { (): any; f(): any; } ->f : () => any +>a.f : () => any, Symbol(f, Decl(callSignatureWithoutAnnotationsOrBody.ts, 14, 7)) +>a : { (): any; f(): any; }, Symbol(a, Decl(callSignatureWithoutAnnotationsOrBody.ts, 13, 3)) +>f : () => any, Symbol(f, Decl(callSignatureWithoutAnnotationsOrBody.ts, 14, 7)) diff --git a/tests/baselines/reference/callSignatureWithoutReturnTypeAnnotationInference.types b/tests/baselines/reference/callSignatureWithoutReturnTypeAnnotationInference.types index dc6a72cf897..456ce650f3c 100644 --- a/tests/baselines/reference/callSignatureWithoutReturnTypeAnnotationInference.types +++ b/tests/baselines/reference/callSignatureWithoutReturnTypeAnnotationInference.types @@ -3,79 +3,89 @@ // Simple types function foo(x) { ->foo : (x: any) => number ->x : any +>foo : (x: any) => number, Symbol(foo, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 0, 0)) +>x : any, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 3, 13)) return 1; +>1 : number } var r = foo(1); ->r : number +>r : number, Symbol(r, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 6, 3)) >foo(1) : number ->foo : (x: any) => number +>foo : (x: any) => number, Symbol(foo, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 0, 0)) +>1 : number function foo2(x) { ->foo2 : (x: any) => number ->x : any +>foo2 : (x: any) => number, Symbol(foo2, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 6, 15)) +>x : any, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 8, 14)) return foo(x); >foo(x) : number ->foo : (x: any) => number ->x : any +>foo : (x: any) => number, Symbol(foo, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 0, 0)) +>x : any, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 8, 14)) } var r2 = foo2(1); ->r2 : number +>r2 : number, Symbol(r2, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 11, 3)) >foo2(1) : number ->foo2 : (x: any) => number +>foo2 : (x: any) => number, Symbol(foo2, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 6, 15)) +>1 : number function foo3() { ->foo3 : () => any +>foo3 : () => any, Symbol(foo3, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 11, 17)) return foo3(); >foo3() : any ->foo3 : () => any +>foo3 : () => any, Symbol(foo3, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 11, 17)) } var r3 = foo3(); ->r3 : any +>r3 : any, Symbol(r3, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 16, 3)) >foo3() : any ->foo3 : () => any +>foo3 : () => any, Symbol(foo3, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 11, 17)) function foo4(x: T) { ->foo4 : (x: T) => T ->T : T ->x : T ->T : T +>foo4 : (x: T) => T, Symbol(foo4, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 16, 16)) +>T : T, Symbol(T, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 18, 14)) +>x : T, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 18, 17)) +>T : T, Symbol(T, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 18, 14)) return x; ->x : T +>x : T, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 18, 17)) } var r4 = foo4(1); ->r4 : number +>r4 : number, Symbol(r4, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 21, 3)) >foo4(1) : number ->foo4 : (x: T) => T +>foo4 : (x: T) => T, Symbol(foo4, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 16, 16)) +>1 : number function foo5(x) { ->foo5 : (x: any) => number ->x : any +>foo5 : (x: any) => number, Symbol(foo5, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 21, 17)) +>x : any, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 23, 14)) if (true) { +>true : boolean + return 1; +>1 : number + } else { return 2; +>2 : number } } var r5 = foo5(1); ->r5 : number +>r5 : number, Symbol(r5, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 30, 3)) >foo5(1) : number ->foo5 : (x: any) => number +>foo5 : (x: any) => number, Symbol(foo5, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 21, 17)) +>1 : number function foo6(x) { ->foo6 : (x: any) => any[] ->x : any +>foo6 : (x: any) => any[], Symbol(foo6, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 30, 17)) +>x : any, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 32, 14)) try { } catch (e) { ->e : any +>e : any, Symbol(e, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 35, 11)) return []; >[] : undefined[] @@ -86,191 +96,201 @@ function foo6(x) { } } var r6 = foo6(1); ->r6 : any[] +>r6 : any[], Symbol(r6, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 42, 3)) >foo6(1) : any[] ->foo6 : (x: any) => any[] +>foo6 : (x: any) => any[], Symbol(foo6, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 30, 17)) +>1 : number function foo7(x) { ->foo7 : (x: any) => string ->x : any +>foo7 : (x: any) => string, Symbol(foo7, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 42, 17)) +>x : any, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 44, 14)) return typeof x; >typeof x : string ->x : any +>x : any, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 44, 14)) } var r7 = foo7(1); ->r7 : string +>r7 : string, Symbol(r7, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 47, 3)) >foo7(1) : string ->foo7 : (x: any) => string +>foo7 : (x: any) => string, Symbol(foo7, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 42, 17)) +>1 : number // object types function foo8(x: number) { ->foo8 : (x: number) => { x: number; } ->x : number +>foo8 : (x: number) => { x: number; }, Symbol(foo8, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 47, 17)) +>x : number, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 50, 14)) return { x: x }; >{ x: x } : { x: number; } ->x : number ->x : number +>x : number, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 51, 12)) +>x : number, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 50, 14)) } var r8 = foo8(1); ->r8 : { x: number; } +>r8 : { x: number; }, Symbol(r8, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 53, 3)) >foo8(1) : { x: number; } ->foo8 : (x: number) => { x: number; } +>foo8 : (x: number) => { x: number; }, Symbol(foo8, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 47, 17)) +>1 : number interface I { ->I : I +>I : I, Symbol(I, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 53, 17)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 55, 13)) } function foo9(x: number) { ->foo9 : (x: number) => I ->x : number +>foo9 : (x: number) => I, Symbol(foo9, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 57, 1)) +>x : number, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 58, 14)) var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 59, 7)) +>I : I, Symbol(I, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 53, 17)) return i; ->i : I +>i : I, Symbol(i, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 59, 7)) } var r9 = foo9(1); ->r9 : I +>r9 : I, Symbol(r9, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 62, 3)) >foo9(1) : I ->foo9 : (x: number) => I +>foo9 : (x: number) => I, Symbol(foo9, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 57, 1)) +>1 : number class C { ->C : C +>C : C, Symbol(C, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 62, 17)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 64, 9)) } function foo10(x: number) { ->foo10 : (x: number) => C ->x : number +>foo10 : (x: number) => C, Symbol(foo10, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 66, 1)) +>x : number, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 67, 15)) var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 68, 7)) +>C : C, Symbol(C, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 62, 17)) return c; ->c : C +>c : C, Symbol(c, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 68, 7)) } var r10 = foo10(1); ->r10 : C +>r10 : C, Symbol(r10, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 71, 3)) >foo10(1) : C ->foo10 : (x: number) => C +>foo10 : (x: number) => C, Symbol(foo10, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 66, 1)) +>1 : number module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 71, 19)) export var x = 1; ->x : number +>x : number, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 74, 14)) +>1 : number export class C { foo: string } ->C : C ->foo : string +>C : C, Symbol(C, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 74, 21)) +>foo : string, Symbol(foo, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 75, 20)) } function foo11() { ->foo11 : () => typeof M +>foo11 : () => typeof M, Symbol(foo11, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 76, 1)) return M; ->M : typeof M +>M : typeof M, Symbol(M, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 71, 19)) } var r11 = foo11(); ->r11 : typeof M +>r11 : typeof M, Symbol(r11, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 80, 3)) >foo11() : typeof M ->foo11 : () => typeof M +>foo11 : () => typeof M, Symbol(foo11, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 76, 1)) // merged declarations interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 80, 18), Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 85, 1)) x: number; ->x : number +>x : number, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 83, 14)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 80, 18), Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 85, 1)) y: number; ->y : number +>y : number, Symbol(y, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 86, 14)) } function foo12() { ->foo12 : () => I2 +>foo12 : () => I2, Symbol(foo12, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 88, 1)) var i2: I2; ->i2 : I2 ->I2 : I2 +>i2 : I2, Symbol(i2, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 90, 7)) +>I2 : I2, Symbol(I2, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 80, 18), Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 85, 1)) return i2; ->i2 : I2 +>i2 : I2, Symbol(i2, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 90, 7)) } var r12 = foo12(); ->r12 : I2 +>r12 : I2, Symbol(r12, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 93, 3)) >foo12() : I2 ->foo12 : () => I2 +>foo12 : () => I2, Symbol(foo12, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 88, 1)) function m1() { return 1; } ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 93, 18), Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 95, 27)) +>1 : number module m1 { export var y = 2; } ->m1 : typeof m1 ->y : number +>m1 : typeof m1, Symbol(m1, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 93, 18), Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 95, 27)) +>y : number, Symbol(y, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 96, 22)) +>2 : number function foo13() { ->foo13 : () => typeof m1 +>foo13 : () => typeof m1, Symbol(foo13, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 96, 31)) return m1; ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 93, 18), Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 95, 27)) } var r13 = foo13(); ->r13 : typeof m1 +>r13 : typeof m1, Symbol(r13, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 100, 3)) >foo13() : typeof m1 ->foo13 : () => typeof m1 +>foo13 : () => typeof m1, Symbol(foo13, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 96, 31)) class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 100, 18), Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 105, 1)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 102, 10)) constructor(x) { } ->x : any +>x : any, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 104, 16)) } module c1 { ->c1 : typeof c1 +>c1 : typeof c1, Symbol(c1, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 100, 18), Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 105, 1)) export var x = 1; ->x : number +>x : number, Symbol(x, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 107, 14)) +>1 : number } function foo14() { ->foo14 : () => typeof c1 +>foo14 : () => typeof c1, Symbol(foo14, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 108, 1)) return c1; ->c1 : typeof c1 +>c1 : typeof c1, Symbol(c1, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 100, 18), Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 105, 1)) } var r14 = foo14(); ->r14 : typeof c1 +>r14 : typeof c1, Symbol(r14, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 112, 3)) >foo14() : typeof c1 ->foo14 : () => typeof c1 +>foo14 : () => typeof c1, Symbol(foo14, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 108, 1)) enum e1 { A } ->e1 : e1 ->A : e1 +>e1 : e1, Symbol(e1, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 112, 18), Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 114, 13)) +>A : e1, Symbol(e1.A, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 114, 9)) module e1 { export var y = 1; } ->e1 : typeof e1 ->y : number +>e1 : typeof e1, Symbol(e1, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 112, 18), Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 114, 13)) +>y : number, Symbol(y, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 115, 22)) +>1 : number function foo15() { ->foo15 : () => typeof e1 +>foo15 : () => typeof e1, Symbol(foo15, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 115, 31)) return e1; ->e1 : typeof e1 +>e1 : typeof e1, Symbol(e1, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 112, 18), Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 114, 13)) } var r15 = foo15(); ->r15 : typeof e1 +>r15 : typeof e1, Symbol(r15, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 119, 3)) >foo15() : typeof e1 ->foo15 : () => typeof e1 +>foo15 : () => typeof e1, Symbol(foo15, Decl(callSignatureWithoutReturnTypeAnnotationInference.ts, 115, 31)) diff --git a/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType.types b/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType.types index ff51a6fc60a..6f17f68f6cc 100644 --- a/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType.types +++ b/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType.types @@ -2,75 +2,75 @@ // Each pair of signatures in these types has a signature that should cause an error. // Overloads, generic or not, that differ only by return type are an error. interface I { ->I : I +>I : I, Symbol(I, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 0, 0)) (x): number; ->x : any +>x : any, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 3, 5)) (x): void; // error ->x : any +>x : any, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 4, 5)) (x: T): number; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 5, 5)) +>x : T, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 5, 8)) +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 5, 5)) (x: T): string; // error ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 6, 5)) +>x : T, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 6, 8)) +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 6, 5)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 7, 1)) (x: T): number; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 10, 5)) +>x : T, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 10, 8)) +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 10, 5)) (x: T): string; // error ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 11, 5)) +>x : T, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 11, 8)) +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 11, 5)) } interface I3 { ->I3 : I3 ->T : T +>I3 : I3, Symbol(I3, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 12, 1)) +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 14, 13)) (x: T): number; ->x : T ->T : T +>x : T, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 15, 5)) +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 14, 13)) (x: T): string; // error ->x : T ->T : T +>x : T, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 16, 5)) +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 14, 13)) } var a: { ->a : { (x: any, y: any): Object; (x: any, y: any): any; } +>a : { (x: any, y: any): Object; (x: any, y: any): any; }, Symbol(a, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 19, 3)) (x, y): Object; ->x : any ->y : any ->Object : Object +>x : any, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 20, 5)) +>y : any, Symbol(y, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 20, 7)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) (x, y): any; // error ->x : any ->y : any +>x : any, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 21, 5)) +>y : any, Symbol(y, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 21, 7)) } var a2: { ->a2 : { (x: T): number; (x: T): string; } +>a2 : { (x: T): number; (x: T): string; }, Symbol(a2, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 24, 3)) (x: T): number; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 25, 5)) +>x : T, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 25, 8)) +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 25, 5)) (x: T): string; // error ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 26, 5)) +>x : T, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 26, 8)) +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType.ts, 26, 5)) } diff --git a/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType3.types b/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType3.types index 3b1f2c5ca1a..9250fe8ed1d 100644 --- a/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType3.types +++ b/tests/baselines/reference/callSignaturesThatDifferOnlyByReturnType3.types @@ -3,31 +3,31 @@ // Here the multiple overloads come from multiple merged declarations. interface I { ->I : I +>I : I, Symbol(I, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 0, 0), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 5, 1)) (x: string): string; ->x : string +>x : string, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 4, 5)) } interface I { ->I : I +>I : I, Symbol(I, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 0, 0), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 5, 1)) (x: string): number; ->x : string +>x : string, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 8, 5)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 9, 1), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 13, 1)) +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 11, 13), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 15, 13)) (x: string): string; ->x : string +>x : string, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 12, 5)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 9, 1), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 13, 1)) +>T : T, Symbol(T, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 11, 13), Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 15, 13)) (x: string): number; ->x : string +>x : string, Symbol(x, Decl(callSignaturesThatDifferOnlyByReturnType3.ts, 16, 5)) } diff --git a/tests/baselines/reference/callSignaturesWithOptionalParameters.types b/tests/baselines/reference/callSignaturesWithOptionalParameters.types index 818c52f79d0..87e6fca5db5 100644 --- a/tests/baselines/reference/callSignaturesWithOptionalParameters.types +++ b/tests/baselines/reference/callSignaturesWithOptionalParameters.types @@ -2,190 +2,207 @@ // Optional parameters should be valid in all the below casts function foo(x?: number) { } ->foo : (x?: number) => void ->x : number +>foo : (x?: number) => void, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 0, 0)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters.ts, 2, 13)) var f = function foo(x?: number) { } ->f : (x?: number) => void +>f : (x?: number) => void, Symbol(f, Decl(callSignaturesWithOptionalParameters.ts, 3, 3)) >function foo(x?: number) { } : (x?: number) => void ->foo : (x?: number) => void ->x : number +>foo : (x?: number) => void, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 3, 7)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters.ts, 3, 21)) var f2 = (x: number, y?: number) => { } ->f2 : (x: number, y?: number) => void +>f2 : (x: number, y?: number) => void, Symbol(f2, Decl(callSignaturesWithOptionalParameters.ts, 4, 3)) >(x: number, y?: number) => { } : (x: number, y?: number) => void ->x : number ->y : number +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters.ts, 4, 10)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters.ts, 4, 20)) foo(1); >foo(1) : void ->foo : (x?: number) => void +>foo : (x?: number) => void, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 0, 0)) +>1 : number foo(); >foo() : void ->foo : (x?: number) => void +>foo : (x?: number) => void, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 0, 0)) f(1); >f(1) : void ->f : (x?: number) => void +>f : (x?: number) => void, Symbol(f, Decl(callSignaturesWithOptionalParameters.ts, 3, 3)) +>1 : number f(); >f() : void ->f : (x?: number) => void +>f : (x?: number) => void, Symbol(f, Decl(callSignaturesWithOptionalParameters.ts, 3, 3)) f2(1); >f2(1) : void ->f2 : (x: number, y?: number) => void +>f2 : (x: number, y?: number) => void, Symbol(f2, Decl(callSignaturesWithOptionalParameters.ts, 4, 3)) +>1 : number f2(1, 2); >f2(1, 2) : void ->f2 : (x: number, y?: number) => void +>f2 : (x: number, y?: number) => void, Symbol(f2, Decl(callSignaturesWithOptionalParameters.ts, 4, 3)) +>1 : number +>2 : number class C { ->C : C +>C : C, Symbol(C, Decl(callSignaturesWithOptionalParameters.ts, 11, 9)) foo(x?: number) { } ->foo : (x?: number) => void ->x : number +>foo : (x?: number) => void, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 13, 9)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters.ts, 14, 8)) } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(callSignaturesWithOptionalParameters.ts, 17, 3)) +>C : C, Symbol(C, Decl(callSignaturesWithOptionalParameters.ts, 11, 9)) c.foo(); >c.foo() : void ->c.foo : (x?: number) => void ->c : C ->foo : (x?: number) => void +>c.foo : (x?: number) => void, Symbol(C.foo, Decl(callSignaturesWithOptionalParameters.ts, 13, 9)) +>c : C, Symbol(c, Decl(callSignaturesWithOptionalParameters.ts, 17, 3)) +>foo : (x?: number) => void, Symbol(C.foo, Decl(callSignaturesWithOptionalParameters.ts, 13, 9)) c.foo(1); >c.foo(1) : void ->c.foo : (x?: number) => void ->c : C ->foo : (x?: number) => void +>c.foo : (x?: number) => void, Symbol(C.foo, Decl(callSignaturesWithOptionalParameters.ts, 13, 9)) +>c : C, Symbol(c, Decl(callSignaturesWithOptionalParameters.ts, 17, 3)) +>foo : (x?: number) => void, Symbol(C.foo, Decl(callSignaturesWithOptionalParameters.ts, 13, 9)) +>1 : number interface I { ->I : I +>I : I, Symbol(I, Decl(callSignaturesWithOptionalParameters.ts, 19, 9)) (x?: number); ->x : number +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters.ts, 22, 5)) foo(x: number, y?: number); ->foo : (x: number, y?: number) => any ->x : number ->y : number +>foo : (x: number, y?: number) => any, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 22, 17)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters.ts, 23, 8)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters.ts, 23, 18)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(callSignaturesWithOptionalParameters.ts, 26, 3)) +>I : I, Symbol(I, Decl(callSignaturesWithOptionalParameters.ts, 19, 9)) i(); >i() : any ->i : I +>i : I, Symbol(i, Decl(callSignaturesWithOptionalParameters.ts, 26, 3)) i(1); >i(1) : any ->i : I +>i : I, Symbol(i, Decl(callSignaturesWithOptionalParameters.ts, 26, 3)) +>1 : number i.foo(1); >i.foo(1) : any ->i.foo : (x: number, y?: number) => any ->i : I ->foo : (x: number, y?: number) => any +>i.foo : (x: number, y?: number) => any, Symbol(I.foo, Decl(callSignaturesWithOptionalParameters.ts, 22, 17)) +>i : I, Symbol(i, Decl(callSignaturesWithOptionalParameters.ts, 26, 3)) +>foo : (x: number, y?: number) => any, Symbol(I.foo, Decl(callSignaturesWithOptionalParameters.ts, 22, 17)) +>1 : number i.foo(1, 2); >i.foo(1, 2) : any ->i.foo : (x: number, y?: number) => any ->i : I ->foo : (x: number, y?: number) => any +>i.foo : (x: number, y?: number) => any, Symbol(I.foo, Decl(callSignaturesWithOptionalParameters.ts, 22, 17)) +>i : I, Symbol(i, Decl(callSignaturesWithOptionalParameters.ts, 26, 3)) +>foo : (x: number, y?: number) => any, Symbol(I.foo, Decl(callSignaturesWithOptionalParameters.ts, 22, 17)) +>1 : number +>2 : number var a: { ->a : { (x?: number): any; foo(x?: number): any; } +>a : { (x?: number): any; foo(x?: number): any; }, Symbol(a, Decl(callSignaturesWithOptionalParameters.ts, 32, 3)) (x?: number); ->x : number +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters.ts, 33, 5)) foo(x?: number); ->foo : (x?: number) => any ->x : number +>foo : (x?: number) => any, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 33, 17)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters.ts, 34, 8)) } a(); >a() : any ->a : { (x?: number): any; foo(x?: number): any; } +>a : { (x?: number): any; foo(x?: number): any; }, Symbol(a, Decl(callSignaturesWithOptionalParameters.ts, 32, 3)) a(1); >a(1) : any ->a : { (x?: number): any; foo(x?: number): any; } +>a : { (x?: number): any; foo(x?: number): any; }, Symbol(a, Decl(callSignaturesWithOptionalParameters.ts, 32, 3)) +>1 : number a.foo(); >a.foo() : any ->a.foo : (x?: number) => any ->a : { (x?: number): any; foo(x?: number): any; } ->foo : (x?: number) => any +>a.foo : (x?: number) => any, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 33, 17)) +>a : { (x?: number): any; foo(x?: number): any; }, Symbol(a, Decl(callSignaturesWithOptionalParameters.ts, 32, 3)) +>foo : (x?: number) => any, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 33, 17)) a.foo(1); >a.foo(1) : any ->a.foo : (x?: number) => any ->a : { (x?: number): any; foo(x?: number): any; } ->foo : (x?: number) => any +>a.foo : (x?: number) => any, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 33, 17)) +>a : { (x?: number): any; foo(x?: number): any; }, Symbol(a, Decl(callSignaturesWithOptionalParameters.ts, 32, 3)) +>foo : (x?: number) => any, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 33, 17)) +>1 : number var b = { ->b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; } +>b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; }, Symbol(b, Decl(callSignaturesWithOptionalParameters.ts, 42, 3)) >{ foo(x?: number) { }, a: function foo(x: number, y?: number) { }, b: (x?: number) => { }} : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; } foo(x?: number) { }, ->foo : (x?: number) => void ->x : number +>foo : (x?: number) => void, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 42, 9)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters.ts, 43, 8)) a: function foo(x: number, y?: number) { }, ->a : (x: number, y?: number) => void +>a : (x: number, y?: number) => void, Symbol(a, Decl(callSignaturesWithOptionalParameters.ts, 43, 24)) >function foo(x: number, y?: number) { } : (x: number, y?: number) => void ->foo : (x: number, y?: number) => void ->x : number ->y : number +>foo : (x: number, y?: number) => void, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 44, 6)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters.ts, 44, 20)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters.ts, 44, 30)) b: (x?: number) => { } ->b : (x?: number) => void +>b : (x?: number) => void, Symbol(b, Decl(callSignaturesWithOptionalParameters.ts, 44, 47)) >(x?: number) => { } : (x?: number) => void ->x : number +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters.ts, 45, 8)) } b.foo(); >b.foo() : void ->b.foo : (x?: number) => void ->b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; } ->foo : (x?: number) => void +>b.foo : (x?: number) => void, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 42, 9)) +>b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; }, Symbol(b, Decl(callSignaturesWithOptionalParameters.ts, 42, 3)) +>foo : (x?: number) => void, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 42, 9)) b.foo(1); >b.foo(1) : void ->b.foo : (x?: number) => void ->b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; } ->foo : (x?: number) => void +>b.foo : (x?: number) => void, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 42, 9)) +>b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; }, Symbol(b, Decl(callSignaturesWithOptionalParameters.ts, 42, 3)) +>foo : (x?: number) => void, Symbol(foo, Decl(callSignaturesWithOptionalParameters.ts, 42, 9)) +>1 : number b.a(1); >b.a(1) : void ->b.a : (x: number, y?: number) => void ->b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; } ->a : (x: number, y?: number) => void +>b.a : (x: number, y?: number) => void, Symbol(a, Decl(callSignaturesWithOptionalParameters.ts, 43, 24)) +>b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; }, Symbol(b, Decl(callSignaturesWithOptionalParameters.ts, 42, 3)) +>a : (x: number, y?: number) => void, Symbol(a, Decl(callSignaturesWithOptionalParameters.ts, 43, 24)) +>1 : number b.a(1, 2); >b.a(1, 2) : void ->b.a : (x: number, y?: number) => void ->b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; } ->a : (x: number, y?: number) => void +>b.a : (x: number, y?: number) => void, Symbol(a, Decl(callSignaturesWithOptionalParameters.ts, 43, 24)) +>b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; }, Symbol(b, Decl(callSignaturesWithOptionalParameters.ts, 42, 3)) +>a : (x: number, y?: number) => void, Symbol(a, Decl(callSignaturesWithOptionalParameters.ts, 43, 24)) +>1 : number +>2 : number b.b(); >b.b() : void ->b.b : (x?: number) => void ->b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; } ->b : (x?: number) => void +>b.b : (x?: number) => void, Symbol(b, Decl(callSignaturesWithOptionalParameters.ts, 44, 47)) +>b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; }, Symbol(b, Decl(callSignaturesWithOptionalParameters.ts, 42, 3)) +>b : (x?: number) => void, Symbol(b, Decl(callSignaturesWithOptionalParameters.ts, 44, 47)) b.b(1); >b.b(1) : void ->b.b : (x?: number) => void ->b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; } ->b : (x?: number) => void +>b.b : (x?: number) => void, Symbol(b, Decl(callSignaturesWithOptionalParameters.ts, 44, 47)) +>b : { foo(x?: number): void; a: (x: number, y?: number) => void; b: (x?: number) => void; }, Symbol(b, Decl(callSignaturesWithOptionalParameters.ts, 42, 3)) +>b : (x?: number) => void, Symbol(b, Decl(callSignaturesWithOptionalParameters.ts, 44, 47)) +>1 : number diff --git a/tests/baselines/reference/callSignaturesWithOptionalParameters2.types b/tests/baselines/reference/callSignaturesWithOptionalParameters2.types index 602edd911fe..0f1ff933f1a 100644 --- a/tests/baselines/reference/callSignaturesWithOptionalParameters2.types +++ b/tests/baselines/reference/callSignaturesWithOptionalParameters2.types @@ -2,202 +2,228 @@ // Optional parameters should be valid in all the below casts function foo(x?: number); ->foo : (x?: number) => any ->x : number +>foo : (x?: number) => any, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 0, 0), Decl(callSignaturesWithOptionalParameters2.ts, 2, 25)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 2, 13)) function foo(x?: number) { } ->foo : (x?: number) => any ->x : number +>foo : (x?: number) => any, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 0, 0), Decl(callSignaturesWithOptionalParameters2.ts, 2, 25)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 3, 13)) foo(1); >foo(1) : any ->foo : (x?: number) => any +>foo : (x?: number) => any, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 0, 0), Decl(callSignaturesWithOptionalParameters2.ts, 2, 25)) +>1 : number foo(); >foo() : any ->foo : (x?: number) => any +>foo : (x?: number) => any, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 0, 0), Decl(callSignaturesWithOptionalParameters2.ts, 2, 25)) function foo2(x: number); ->foo2 : { (x: number): any; (x: number, y?: number): any; } ->x : number +>foo2 : { (x: number): any; (x: number, y?: number): any; }, Symbol(foo2, Decl(callSignaturesWithOptionalParameters2.ts, 6, 6), Decl(callSignaturesWithOptionalParameters2.ts, 8, 25), Decl(callSignaturesWithOptionalParameters2.ts, 9, 37)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 8, 14)) function foo2(x: number, y?: number); ->foo2 : { (x: number): any; (x: number, y?: number): any; } ->x : number ->y : number +>foo2 : { (x: number): any; (x: number, y?: number): any; }, Symbol(foo2, Decl(callSignaturesWithOptionalParameters2.ts, 6, 6), Decl(callSignaturesWithOptionalParameters2.ts, 8, 25), Decl(callSignaturesWithOptionalParameters2.ts, 9, 37)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 9, 14)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters2.ts, 9, 24)) function foo2(x: number, y?: number) { } ->foo2 : { (x: number): any; (x: number, y?: number): any; } ->x : number ->y : number +>foo2 : { (x: number): any; (x: number, y?: number): any; }, Symbol(foo2, Decl(callSignaturesWithOptionalParameters2.ts, 6, 6), Decl(callSignaturesWithOptionalParameters2.ts, 8, 25), Decl(callSignaturesWithOptionalParameters2.ts, 9, 37)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 10, 14)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters2.ts, 10, 24)) foo2(1); >foo2(1) : any ->foo2 : { (x: number): any; (x: number, y?: number): any; } +>foo2 : { (x: number): any; (x: number, y?: number): any; }, Symbol(foo2, Decl(callSignaturesWithOptionalParameters2.ts, 6, 6), Decl(callSignaturesWithOptionalParameters2.ts, 8, 25), Decl(callSignaturesWithOptionalParameters2.ts, 9, 37)) +>1 : number foo2(1, 2); >foo2(1, 2) : any ->foo2 : { (x: number): any; (x: number, y?: number): any; } +>foo2 : { (x: number): any; (x: number, y?: number): any; }, Symbol(foo2, Decl(callSignaturesWithOptionalParameters2.ts, 6, 6), Decl(callSignaturesWithOptionalParameters2.ts, 8, 25), Decl(callSignaturesWithOptionalParameters2.ts, 9, 37)) +>1 : number +>2 : number class C { ->C : C +>C : C, Symbol(C, Decl(callSignaturesWithOptionalParameters2.ts, 13, 11)) foo(x?: number); ->foo : (x?: number) => any ->x : number +>foo : (x?: number) => any, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 15, 9), Decl(callSignaturesWithOptionalParameters2.ts, 16, 20)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 16, 8)) foo(x?: number) { } ->foo : (x?: number) => any ->x : number +>foo : (x?: number) => any, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 15, 9), Decl(callSignaturesWithOptionalParameters2.ts, 16, 20)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 17, 8)) foo2(x: number); ->foo2 : { (x: number): any; (x: number, y?: number): any; } ->x : number +>foo2 : { (x: number): any; (x: number, y?: number): any; }, Symbol(foo2, Decl(callSignaturesWithOptionalParameters2.ts, 17, 23), Decl(callSignaturesWithOptionalParameters2.ts, 19, 20), Decl(callSignaturesWithOptionalParameters2.ts, 20, 32)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 19, 9)) foo2(x: number, y?: number); ->foo2 : { (x: number): any; (x: number, y?: number): any; } ->x : number ->y : number +>foo2 : { (x: number): any; (x: number, y?: number): any; }, Symbol(foo2, Decl(callSignaturesWithOptionalParameters2.ts, 17, 23), Decl(callSignaturesWithOptionalParameters2.ts, 19, 20), Decl(callSignaturesWithOptionalParameters2.ts, 20, 32)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 20, 9)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters2.ts, 20, 19)) foo2(x: number, y?: number) { } ->foo2 : { (x: number): any; (x: number, y?: number): any; } ->x : number ->y : number +>foo2 : { (x: number): any; (x: number, y?: number): any; }, Symbol(foo2, Decl(callSignaturesWithOptionalParameters2.ts, 17, 23), Decl(callSignaturesWithOptionalParameters2.ts, 19, 20), Decl(callSignaturesWithOptionalParameters2.ts, 20, 32)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 21, 9)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters2.ts, 21, 19)) } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(callSignaturesWithOptionalParameters2.ts, 24, 3)) +>C : C, Symbol(C, Decl(callSignaturesWithOptionalParameters2.ts, 13, 11)) c.foo(); >c.foo() : any ->c.foo : (x?: number) => any ->c : C ->foo : (x?: number) => any +>c.foo : (x?: number) => any, Symbol(C.foo, Decl(callSignaturesWithOptionalParameters2.ts, 15, 9), Decl(callSignaturesWithOptionalParameters2.ts, 16, 20)) +>c : C, Symbol(c, Decl(callSignaturesWithOptionalParameters2.ts, 24, 3)) +>foo : (x?: number) => any, Symbol(C.foo, Decl(callSignaturesWithOptionalParameters2.ts, 15, 9), Decl(callSignaturesWithOptionalParameters2.ts, 16, 20)) c.foo(1); >c.foo(1) : any ->c.foo : (x?: number) => any ->c : C ->foo : (x?: number) => any +>c.foo : (x?: number) => any, Symbol(C.foo, Decl(callSignaturesWithOptionalParameters2.ts, 15, 9), Decl(callSignaturesWithOptionalParameters2.ts, 16, 20)) +>c : C, Symbol(c, Decl(callSignaturesWithOptionalParameters2.ts, 24, 3)) +>foo : (x?: number) => any, Symbol(C.foo, Decl(callSignaturesWithOptionalParameters2.ts, 15, 9), Decl(callSignaturesWithOptionalParameters2.ts, 16, 20)) +>1 : number c.foo2(1); >c.foo2(1) : any ->c.foo2 : { (x: number): any; (x: number, y?: number): any; } ->c : C ->foo2 : { (x: number): any; (x: number, y?: number): any; } +>c.foo2 : { (x: number): any; (x: number, y?: number): any; }, Symbol(C.foo2, Decl(callSignaturesWithOptionalParameters2.ts, 17, 23), Decl(callSignaturesWithOptionalParameters2.ts, 19, 20), Decl(callSignaturesWithOptionalParameters2.ts, 20, 32)) +>c : C, Symbol(c, Decl(callSignaturesWithOptionalParameters2.ts, 24, 3)) +>foo2 : { (x: number): any; (x: number, y?: number): any; }, Symbol(C.foo2, Decl(callSignaturesWithOptionalParameters2.ts, 17, 23), Decl(callSignaturesWithOptionalParameters2.ts, 19, 20), Decl(callSignaturesWithOptionalParameters2.ts, 20, 32)) +>1 : number c.foo2(1, 2); >c.foo2(1, 2) : any ->c.foo2 : { (x: number): any; (x: number, y?: number): any; } ->c : C ->foo2 : { (x: number): any; (x: number, y?: number): any; } +>c.foo2 : { (x: number): any; (x: number, y?: number): any; }, Symbol(C.foo2, Decl(callSignaturesWithOptionalParameters2.ts, 17, 23), Decl(callSignaturesWithOptionalParameters2.ts, 19, 20), Decl(callSignaturesWithOptionalParameters2.ts, 20, 32)) +>c : C, Symbol(c, Decl(callSignaturesWithOptionalParameters2.ts, 24, 3)) +>foo2 : { (x: number): any; (x: number, y?: number): any; }, Symbol(C.foo2, Decl(callSignaturesWithOptionalParameters2.ts, 17, 23), Decl(callSignaturesWithOptionalParameters2.ts, 19, 20), Decl(callSignaturesWithOptionalParameters2.ts, 20, 32)) +>1 : number +>2 : number interface I { ->I : I +>I : I, Symbol(I, Decl(callSignaturesWithOptionalParameters2.ts, 29, 13)) (x?: number); ->x : number +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 32, 5)) (x?: number, y?: number); ->x : number ->y : number +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 33, 5)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters2.ts, 33, 16)) foo(x: number, y?: number); ->foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } ->x : number ->y : number +>foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 33, 29), Decl(callSignaturesWithOptionalParameters2.ts, 34, 31)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 34, 8)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters2.ts, 34, 18)) foo(x: number, y?: number, z?: number); ->foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } ->x : number ->y : number ->z : number +>foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 33, 29), Decl(callSignaturesWithOptionalParameters2.ts, 34, 31)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 35, 8)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters2.ts, 35, 18)) +>z : number, Symbol(z, Decl(callSignaturesWithOptionalParameters2.ts, 35, 30)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(callSignaturesWithOptionalParameters2.ts, 38, 3)) +>I : I, Symbol(I, Decl(callSignaturesWithOptionalParameters2.ts, 29, 13)) i(); >i() : any ->i : I +>i : I, Symbol(i, Decl(callSignaturesWithOptionalParameters2.ts, 38, 3)) i(1); >i(1) : any ->i : I +>i : I, Symbol(i, Decl(callSignaturesWithOptionalParameters2.ts, 38, 3)) +>1 : number i(1, 2); >i(1, 2) : any ->i : I +>i : I, Symbol(i, Decl(callSignaturesWithOptionalParameters2.ts, 38, 3)) +>1 : number +>2 : number i.foo(1); >i.foo(1) : any ->i.foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } ->i : I ->foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } +>i.foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(I.foo, Decl(callSignaturesWithOptionalParameters2.ts, 33, 29), Decl(callSignaturesWithOptionalParameters2.ts, 34, 31)) +>i : I, Symbol(i, Decl(callSignaturesWithOptionalParameters2.ts, 38, 3)) +>foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(I.foo, Decl(callSignaturesWithOptionalParameters2.ts, 33, 29), Decl(callSignaturesWithOptionalParameters2.ts, 34, 31)) +>1 : number i.foo(1, 2); >i.foo(1, 2) : any ->i.foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } ->i : I ->foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } +>i.foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(I.foo, Decl(callSignaturesWithOptionalParameters2.ts, 33, 29), Decl(callSignaturesWithOptionalParameters2.ts, 34, 31)) +>i : I, Symbol(i, Decl(callSignaturesWithOptionalParameters2.ts, 38, 3)) +>foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(I.foo, Decl(callSignaturesWithOptionalParameters2.ts, 33, 29), Decl(callSignaturesWithOptionalParameters2.ts, 34, 31)) +>1 : number +>2 : number i.foo(1, 2, 3); >i.foo(1, 2, 3) : any ->i.foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } ->i : I ->foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } +>i.foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(I.foo, Decl(callSignaturesWithOptionalParameters2.ts, 33, 29), Decl(callSignaturesWithOptionalParameters2.ts, 34, 31)) +>i : I, Symbol(i, Decl(callSignaturesWithOptionalParameters2.ts, 38, 3)) +>foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(I.foo, Decl(callSignaturesWithOptionalParameters2.ts, 33, 29), Decl(callSignaturesWithOptionalParameters2.ts, 34, 31)) +>1 : number +>2 : number +>3 : number var a: { ->a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; } +>a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; }, Symbol(a, Decl(callSignaturesWithOptionalParameters2.ts, 46, 3)) (x?: number); ->x : number +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 47, 5)) (x?: number, y?: number); ->x : number ->y : number +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 48, 5)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters2.ts, 48, 16)) foo(x: number, y?: number); ->foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } ->x : number ->y : number +>foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 48, 29), Decl(callSignaturesWithOptionalParameters2.ts, 49, 31)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 49, 8)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters2.ts, 49, 18)) foo(x: number, y?: number, z?: number); ->foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } ->x : number ->y : number ->z : number +>foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 48, 29), Decl(callSignaturesWithOptionalParameters2.ts, 49, 31)) +>x : number, Symbol(x, Decl(callSignaturesWithOptionalParameters2.ts, 50, 8)) +>y : number, Symbol(y, Decl(callSignaturesWithOptionalParameters2.ts, 50, 18)) +>z : number, Symbol(z, Decl(callSignaturesWithOptionalParameters2.ts, 50, 30)) } a(); >a() : any ->a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; } +>a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; }, Symbol(a, Decl(callSignaturesWithOptionalParameters2.ts, 46, 3)) a(1); >a(1) : any ->a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; } +>a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; }, Symbol(a, Decl(callSignaturesWithOptionalParameters2.ts, 46, 3)) +>1 : number a(1, 2); >a(1, 2) : any ->a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; } +>a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; }, Symbol(a, Decl(callSignaturesWithOptionalParameters2.ts, 46, 3)) +>1 : number +>2 : number a.foo(1); >a.foo(1) : any ->a.foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } ->a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; } ->foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } +>a.foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 48, 29), Decl(callSignaturesWithOptionalParameters2.ts, 49, 31)) +>a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; }, Symbol(a, Decl(callSignaturesWithOptionalParameters2.ts, 46, 3)) +>foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 48, 29), Decl(callSignaturesWithOptionalParameters2.ts, 49, 31)) +>1 : number a.foo(1, 2); >a.foo(1, 2) : any ->a.foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } ->a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; } ->foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } +>a.foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 48, 29), Decl(callSignaturesWithOptionalParameters2.ts, 49, 31)) +>a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; }, Symbol(a, Decl(callSignaturesWithOptionalParameters2.ts, 46, 3)) +>foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 48, 29), Decl(callSignaturesWithOptionalParameters2.ts, 49, 31)) +>1 : number +>2 : number a.foo(1, 2, 3); >a.foo(1, 2, 3) : any ->a.foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } ->a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; } ->foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; } +>a.foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 48, 29), Decl(callSignaturesWithOptionalParameters2.ts, 49, 31)) +>a : { (x?: number): any; (x?: number, y?: number): any; foo(x: number, y?: number): any; foo(x: number, y?: number, z?: number): any; }, Symbol(a, Decl(callSignaturesWithOptionalParameters2.ts, 46, 3)) +>foo : { (x: number, y?: number): any; (x: number, y?: number, z?: number): any; }, Symbol(foo, Decl(callSignaturesWithOptionalParameters2.ts, 48, 29), Decl(callSignaturesWithOptionalParameters2.ts, 49, 31)) +>1 : number +>2 : number +>3 : number diff --git a/tests/baselines/reference/callWithSpreadES6.types b/tests/baselines/reference/callWithSpreadES6.types index 8a75d21e4ef..98e1cefe546 100644 --- a/tests/baselines/reference/callWithSpreadES6.types +++ b/tests/baselines/reference/callWithSpreadES6.types @@ -1,196 +1,258 @@ === tests/cases/conformance/expressions/functionCalls/callWithSpreadES6.ts === interface X { ->X : X +>X : X, Symbol(X, Decl(callWithSpreadES6.ts, 0, 0)) foo(x: number, y: number, ...z: string[]); ->foo : (x: number, y: number, ...z: string[]) => any ->x : number ->y : number ->z : string[] +>foo : (x: number, y: number, ...z: string[]) => any, Symbol(foo, Decl(callWithSpreadES6.ts, 1, 13)) +>x : number, Symbol(x, Decl(callWithSpreadES6.ts, 2, 8)) +>y : number, Symbol(y, Decl(callWithSpreadES6.ts, 2, 18)) +>z : string[], Symbol(z, Decl(callWithSpreadES6.ts, 2, 29)) } function foo(x: number, y: number, ...z: string[]) { ->foo : (x: number, y: number, ...z: string[]) => void ->x : number ->y : number ->z : string[] +>foo : (x: number, y: number, ...z: string[]) => void, Symbol(foo, Decl(callWithSpreadES6.ts, 3, 1)) +>x : number, Symbol(x, Decl(callWithSpreadES6.ts, 5, 13)) +>y : number, Symbol(y, Decl(callWithSpreadES6.ts, 5, 23)) +>z : string[], Symbol(z, Decl(callWithSpreadES6.ts, 5, 34)) } var a: string[]; ->a : string[] +>a : string[], Symbol(a, Decl(callWithSpreadES6.ts, 8, 3)) var z: number[]; ->z : number[] +>z : number[], Symbol(z, Decl(callWithSpreadES6.ts, 9, 3)) var obj: X; ->obj : X ->X : X +>obj : X, Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3)) +>X : X, Symbol(X, Decl(callWithSpreadES6.ts, 0, 0)) var xa: X[]; ->xa : X[] ->X : X +>xa : X[], Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3)) +>X : X, Symbol(X, Decl(callWithSpreadES6.ts, 0, 0)) foo(1, 2, "abc"); >foo(1, 2, "abc") : void ->foo : (x: number, y: number, ...z: string[]) => void +>foo : (x: number, y: number, ...z: string[]) => void, Symbol(foo, Decl(callWithSpreadES6.ts, 3, 1)) +>1 : number +>2 : number +>"abc" : string foo(1, 2, ...a); >foo(1, 2, ...a) : void ->foo : (x: number, y: number, ...z: string[]) => void ->a : string[] +>foo : (x: number, y: number, ...z: string[]) => void, Symbol(foo, Decl(callWithSpreadES6.ts, 3, 1)) +>1 : number +>2 : number +>...a : string +>a : string[], Symbol(a, Decl(callWithSpreadES6.ts, 8, 3)) foo(1, 2, ...a, "abc"); >foo(1, 2, ...a, "abc") : void ->foo : (x: number, y: number, ...z: string[]) => void ->a : string[] +>foo : (x: number, y: number, ...z: string[]) => void, Symbol(foo, Decl(callWithSpreadES6.ts, 3, 1)) +>1 : number +>2 : number +>...a : string +>a : string[], Symbol(a, Decl(callWithSpreadES6.ts, 8, 3)) +>"abc" : string obj.foo(1, 2, "abc"); >obj.foo(1, 2, "abc") : any ->obj.foo : (x: number, y: number, ...z: string[]) => any ->obj : X ->foo : (x: number, y: number, ...z: string[]) => any +>obj.foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>obj : X, Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3)) +>foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>1 : number +>2 : number +>"abc" : string obj.foo(1, 2, ...a); >obj.foo(1, 2, ...a) : any ->obj.foo : (x: number, y: number, ...z: string[]) => any ->obj : X ->foo : (x: number, y: number, ...z: string[]) => any ->a : string[] +>obj.foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>obj : X, Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3)) +>foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>1 : number +>2 : number +>...a : string +>a : string[], Symbol(a, Decl(callWithSpreadES6.ts, 8, 3)) obj.foo(1, 2, ...a, "abc"); >obj.foo(1, 2, ...a, "abc") : any ->obj.foo : (x: number, y: number, ...z: string[]) => any ->obj : X ->foo : (x: number, y: number, ...z: string[]) => any ->a : string[] +>obj.foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>obj : X, Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3)) +>foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>1 : number +>2 : number +>...a : string +>a : string[], Symbol(a, Decl(callWithSpreadES6.ts, 8, 3)) +>"abc" : string (obj.foo)(1, 2, "abc"); >(obj.foo)(1, 2, "abc") : any >(obj.foo) : (x: number, y: number, ...z: string[]) => any ->obj.foo : (x: number, y: number, ...z: string[]) => any ->obj : X ->foo : (x: number, y: number, ...z: string[]) => any +>obj.foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>obj : X, Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3)) +>foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>1 : number +>2 : number +>"abc" : string (obj.foo)(1, 2, ...a); >(obj.foo)(1, 2, ...a) : any >(obj.foo) : (x: number, y: number, ...z: string[]) => any ->obj.foo : (x: number, y: number, ...z: string[]) => any ->obj : X ->foo : (x: number, y: number, ...z: string[]) => any ->a : string[] +>obj.foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>obj : X, Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3)) +>foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>1 : number +>2 : number +>...a : string +>a : string[], Symbol(a, Decl(callWithSpreadES6.ts, 8, 3)) (obj.foo)(1, 2, ...a, "abc"); >(obj.foo)(1, 2, ...a, "abc") : any >(obj.foo) : (x: number, y: number, ...z: string[]) => any ->obj.foo : (x: number, y: number, ...z: string[]) => any ->obj : X ->foo : (x: number, y: number, ...z: string[]) => any ->a : string[] +>obj.foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>obj : X, Symbol(obj, Decl(callWithSpreadES6.ts, 10, 3)) +>foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>1 : number +>2 : number +>...a : string +>a : string[], Symbol(a, Decl(callWithSpreadES6.ts, 8, 3)) +>"abc" : string xa[1].foo(1, 2, "abc"); >xa[1].foo(1, 2, "abc") : any ->xa[1].foo : (x: number, y: number, ...z: string[]) => any +>xa[1].foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) >xa[1] : X ->xa : X[] ->foo : (x: number, y: number, ...z: string[]) => any +>xa : X[], Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3)) +>1 : number +>foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>1 : number +>2 : number +>"abc" : string xa[1].foo(1, 2, ...a); >xa[1].foo(1, 2, ...a) : any ->xa[1].foo : (x: number, y: number, ...z: string[]) => any +>xa[1].foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) >xa[1] : X ->xa : X[] ->foo : (x: number, y: number, ...z: string[]) => any ->a : string[] +>xa : X[], Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3)) +>1 : number +>foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>1 : number +>2 : number +>...a : string +>a : string[], Symbol(a, Decl(callWithSpreadES6.ts, 8, 3)) xa[1].foo(1, 2, ...a, "abc"); >xa[1].foo(1, 2, ...a, "abc") : any ->xa[1].foo : (x: number, y: number, ...z: string[]) => any +>xa[1].foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) >xa[1] : X ->xa : X[] ->foo : (x: number, y: number, ...z: string[]) => any ->a : string[] +>xa : X[], Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3)) +>1 : number +>foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>1 : number +>2 : number +>...a : string +>a : string[], Symbol(a, Decl(callWithSpreadES6.ts, 8, 3)) +>"abc" : string (xa[1].foo)(...[1, 2, "abc"]); >(xa[1].foo)(...[1, 2, "abc"]) : any >(xa[1].foo) : Function >xa[1].foo : Function ->Function : Function ->xa[1].foo : (x: number, y: number, ...z: string[]) => any +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11), Decl(lib.d.ts, 1325, 1)) +>xa[1].foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) >xa[1] : X ->xa : X[] ->foo : (x: number, y: number, ...z: string[]) => any +>xa : X[], Symbol(xa, Decl(callWithSpreadES6.ts, 11, 3)) +>1 : number +>foo : (x: number, y: number, ...z: string[]) => any, Symbol(X.foo, Decl(callWithSpreadES6.ts, 1, 13)) +>...[1, 2, "abc"] : string | number >[1, 2, "abc"] : (string | number)[] +>1 : number +>2 : number +>"abc" : string class C { ->C : C +>C : C, Symbol(C, Decl(callWithSpreadES6.ts, 29, 40)) constructor(x: number, y: number, ...z: string[]) { ->x : number ->y : number ->z : string[] +>x : number, Symbol(x, Decl(callWithSpreadES6.ts, 32, 16)) +>y : number, Symbol(y, Decl(callWithSpreadES6.ts, 32, 26)) +>z : string[], Symbol(z, Decl(callWithSpreadES6.ts, 32, 37)) this.foo(x, y); >this.foo(x, y) : void ->this.foo : (x: number, y: number, ...z: string[]) => void ->this : C ->foo : (x: number, y: number, ...z: string[]) => void ->x : number ->y : number +>this.foo : (x: number, y: number, ...z: string[]) => void, Symbol(foo, Decl(callWithSpreadES6.ts, 35, 5)) +>this : C, Symbol(C, Decl(callWithSpreadES6.ts, 29, 40)) +>foo : (x: number, y: number, ...z: string[]) => void, Symbol(foo, Decl(callWithSpreadES6.ts, 35, 5)) +>x : number, Symbol(x, Decl(callWithSpreadES6.ts, 32, 16)) +>y : number, Symbol(y, Decl(callWithSpreadES6.ts, 32, 26)) this.foo(x, y, ...z); >this.foo(x, y, ...z) : void ->this.foo : (x: number, y: number, ...z: string[]) => void ->this : C ->foo : (x: number, y: number, ...z: string[]) => void ->x : number ->y : number ->z : string[] +>this.foo : (x: number, y: number, ...z: string[]) => void, Symbol(foo, Decl(callWithSpreadES6.ts, 35, 5)) +>this : C, Symbol(C, Decl(callWithSpreadES6.ts, 29, 40)) +>foo : (x: number, y: number, ...z: string[]) => void, Symbol(foo, Decl(callWithSpreadES6.ts, 35, 5)) +>x : number, Symbol(x, Decl(callWithSpreadES6.ts, 32, 16)) +>y : number, Symbol(y, Decl(callWithSpreadES6.ts, 32, 26)) +>...z : string +>z : string[], Symbol(z, Decl(callWithSpreadES6.ts, 32, 37)) } foo(x: number, y: number, ...z: string[]) { ->foo : (x: number, y: number, ...z: string[]) => void ->x : number ->y : number ->z : string[] +>foo : (x: number, y: number, ...z: string[]) => void, Symbol(foo, Decl(callWithSpreadES6.ts, 35, 5)) +>x : number, Symbol(x, Decl(callWithSpreadES6.ts, 36, 8)) +>y : number, Symbol(y, Decl(callWithSpreadES6.ts, 36, 18)) +>z : string[], Symbol(z, Decl(callWithSpreadES6.ts, 36, 29)) } } class D extends C { ->D : D ->C : C +>D : D, Symbol(D, Decl(callWithSpreadES6.ts, 38, 1)) +>C : C, Symbol(C, Decl(callWithSpreadES6.ts, 29, 40)) constructor() { super(1, 2); >super(1, 2) : void ->super : typeof C +>super : typeof C, Symbol(C, Decl(callWithSpreadES6.ts, 29, 40)) +>1 : number +>2 : number super(1, 2, ...a); >super(1, 2, ...a) : void ->super : typeof C ->a : string[] +>super : typeof C, Symbol(C, Decl(callWithSpreadES6.ts, 29, 40)) +>1 : number +>2 : number +>...a : string +>a : string[], Symbol(a, Decl(callWithSpreadES6.ts, 8, 3)) } foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(callWithSpreadES6.ts, 44, 5)) super.foo(1, 2); >super.foo(1, 2) : void ->super.foo : (x: number, y: number, ...z: string[]) => void ->super : C ->foo : (x: number, y: number, ...z: string[]) => void +>super.foo : (x: number, y: number, ...z: string[]) => void, Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5)) +>super : C, Symbol(C, Decl(callWithSpreadES6.ts, 29, 40)) +>foo : (x: number, y: number, ...z: string[]) => void, Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5)) +>1 : number +>2 : number super.foo(1, 2, ...a); >super.foo(1, 2, ...a) : void ->super.foo : (x: number, y: number, ...z: string[]) => void ->super : C ->foo : (x: number, y: number, ...z: string[]) => void ->a : string[] +>super.foo : (x: number, y: number, ...z: string[]) => void, Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5)) +>super : C, Symbol(C, Decl(callWithSpreadES6.ts, 29, 40)) +>foo : (x: number, y: number, ...z: string[]) => void, Symbol(C.foo, Decl(callWithSpreadES6.ts, 35, 5)) +>1 : number +>2 : number +>...a : string +>a : string[], Symbol(a, Decl(callWithSpreadES6.ts, 8, 3)) } } // Only supported in when target is ES6 var c = new C(1, 2, ...a); ->c : C +>c : C, Symbol(c, Decl(callWithSpreadES6.ts, 52, 3)) >new C(1, 2, ...a) : C ->C : typeof C ->a : string[] +>C : typeof C, Symbol(C, Decl(callWithSpreadES6.ts, 29, 40)) +>1 : number +>2 : number +>...a : string +>a : string[], Symbol(a, Decl(callWithSpreadES6.ts, 8, 3)) diff --git a/tests/baselines/reference/callbacksDontShareTypes.types b/tests/baselines/reference/callbacksDontShareTypes.types index 39ff5d8e306..a013812e4b9 100644 --- a/tests/baselines/reference/callbacksDontShareTypes.types +++ b/tests/baselines/reference/callbacksDontShareTypes.types @@ -1,110 +1,110 @@ === tests/cases/compiler/callbacksDontShareTypes.ts === interface Collection { ->Collection : Collection ->T : T +>Collection : Collection, Symbol(Collection, Decl(callbacksDontShareTypes.ts, 0, 0)) +>T : T, Symbol(T, Decl(callbacksDontShareTypes.ts, 0, 21)) length: number; ->length : number +>length : number, Symbol(length, Decl(callbacksDontShareTypes.ts, 0, 25)) add(x: T): void; ->add : (x: T) => void ->x : T ->T : T +>add : (x: T) => void, Symbol(add, Decl(callbacksDontShareTypes.ts, 1, 19)) +>x : T, Symbol(x, Decl(callbacksDontShareTypes.ts, 2, 8)) +>T : T, Symbol(T, Decl(callbacksDontShareTypes.ts, 0, 21)) remove(x: T): boolean; ->remove : (x: T) => boolean ->x : T ->T : T +>remove : (x: T) => boolean, Symbol(remove, Decl(callbacksDontShareTypes.ts, 2, 20)) +>x : T, Symbol(x, Decl(callbacksDontShareTypes.ts, 3, 11)) +>T : T, Symbol(T, Decl(callbacksDontShareTypes.ts, 0, 21)) } interface Combinators { ->Combinators : Combinators +>Combinators : Combinators, Symbol(Combinators, Decl(callbacksDontShareTypes.ts, 4, 1)) map(c: Collection, f: (x: T) => U): Collection; ->map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; } ->T : T ->U : U ->c : Collection ->Collection : Collection ->T : T ->f : (x: T) => U ->x : T ->T : T ->U : U ->Collection : Collection ->U : U +>map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; }, Symbol(map, Decl(callbacksDontShareTypes.ts, 5, 23), Decl(callbacksDontShareTypes.ts, 6, 63)) +>T : T, Symbol(T, Decl(callbacksDontShareTypes.ts, 6, 8)) +>U : U, Symbol(U, Decl(callbacksDontShareTypes.ts, 6, 10)) +>c : Collection, Symbol(c, Decl(callbacksDontShareTypes.ts, 6, 14)) +>Collection : Collection, Symbol(Collection, Decl(callbacksDontShareTypes.ts, 0, 0)) +>T : T, Symbol(T, Decl(callbacksDontShareTypes.ts, 6, 8)) +>f : (x: T) => U, Symbol(f, Decl(callbacksDontShareTypes.ts, 6, 31)) +>x : T, Symbol(x, Decl(callbacksDontShareTypes.ts, 6, 36)) +>T : T, Symbol(T, Decl(callbacksDontShareTypes.ts, 6, 8)) +>U : U, Symbol(U, Decl(callbacksDontShareTypes.ts, 6, 10)) +>Collection : Collection, Symbol(Collection, Decl(callbacksDontShareTypes.ts, 0, 0)) +>U : U, Symbol(U, Decl(callbacksDontShareTypes.ts, 6, 10)) map(c: Collection, f: (x: T) => any): Collection; ->map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; } ->T : T ->c : Collection ->Collection : Collection ->T : T ->f : (x: T) => any ->x : T ->T : T ->Collection : Collection +>map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; }, Symbol(map, Decl(callbacksDontShareTypes.ts, 5, 23), Decl(callbacksDontShareTypes.ts, 6, 63)) +>T : T, Symbol(T, Decl(callbacksDontShareTypes.ts, 7, 8)) +>c : Collection, Symbol(c, Decl(callbacksDontShareTypes.ts, 7, 11)) +>Collection : Collection, Symbol(Collection, Decl(callbacksDontShareTypes.ts, 0, 0)) +>T : T, Symbol(T, Decl(callbacksDontShareTypes.ts, 7, 8)) +>f : (x: T) => any, Symbol(f, Decl(callbacksDontShareTypes.ts, 7, 28)) +>x : T, Symbol(x, Decl(callbacksDontShareTypes.ts, 7, 33)) +>T : T, Symbol(T, Decl(callbacksDontShareTypes.ts, 7, 8)) +>Collection : Collection, Symbol(Collection, Decl(callbacksDontShareTypes.ts, 0, 0)) } var _: Combinators; ->_ : Combinators ->Combinators : Combinators +>_ : Combinators, Symbol(_, Decl(callbacksDontShareTypes.ts, 10, 3)) +>Combinators : Combinators, Symbol(Combinators, Decl(callbacksDontShareTypes.ts, 4, 1)) var c2: Collection; ->c2 : Collection ->Collection : Collection +>c2 : Collection, Symbol(c2, Decl(callbacksDontShareTypes.ts, 11, 3)) +>Collection : Collection, Symbol(Collection, Decl(callbacksDontShareTypes.ts, 0, 0)) var rf1 = (x: number) => { return x.toFixed() }; ->rf1 : (x: number) => string +>rf1 : (x: number) => string, Symbol(rf1, Decl(callbacksDontShareTypes.ts, 13, 3)) >(x: number) => { return x.toFixed() } : (x: number) => string ->x : number +>x : number, Symbol(x, Decl(callbacksDontShareTypes.ts, 13, 11)) >x.toFixed() : string ->x.toFixed : (fractionDigits?: number) => string ->x : number ->toFixed : (fractionDigits?: number) => string +>x.toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) +>x : number, Symbol(x, Decl(callbacksDontShareTypes.ts, 13, 11)) +>toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) var r1a = _.map(c2, (x) => { return x.toFixed() }); ->r1a : Collection +>r1a : Collection, Symbol(r1a, Decl(callbacksDontShareTypes.ts, 14, 3)) >_.map(c2, (x) => { return x.toFixed() }) : Collection ->_.map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; } ->_ : Combinators ->map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; } ->c2 : Collection +>_.map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; }, Symbol(Combinators.map, Decl(callbacksDontShareTypes.ts, 5, 23), Decl(callbacksDontShareTypes.ts, 6, 63)) +>_ : Combinators, Symbol(_, Decl(callbacksDontShareTypes.ts, 10, 3)) +>map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; }, Symbol(Combinators.map, Decl(callbacksDontShareTypes.ts, 5, 23), Decl(callbacksDontShareTypes.ts, 6, 63)) +>c2 : Collection, Symbol(c2, Decl(callbacksDontShareTypes.ts, 11, 3)) >(x) => { return x.toFixed() } : (x: number) => string ->x : number +>x : number, Symbol(x, Decl(callbacksDontShareTypes.ts, 14, 21)) >x.toFixed() : string ->x.toFixed : (fractionDigits?: number) => string ->x : number ->toFixed : (fractionDigits?: number) => string +>x.toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) +>x : number, Symbol(x, Decl(callbacksDontShareTypes.ts, 14, 21)) +>toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) var r1b = _.map(c2, rf1); // this line should not cause the following 2 to have errors ->r1b : Collection +>r1b : Collection, Symbol(r1b, Decl(callbacksDontShareTypes.ts, 15, 3)) >_.map(c2, rf1) : Collection ->_.map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; } ->_ : Combinators ->map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; } ->c2 : Collection ->rf1 : (x: number) => string +>_.map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; }, Symbol(Combinators.map, Decl(callbacksDontShareTypes.ts, 5, 23), Decl(callbacksDontShareTypes.ts, 6, 63)) +>_ : Combinators, Symbol(_, Decl(callbacksDontShareTypes.ts, 10, 3)) +>map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; }, Symbol(Combinators.map, Decl(callbacksDontShareTypes.ts, 5, 23), Decl(callbacksDontShareTypes.ts, 6, 63)) +>c2 : Collection, Symbol(c2, Decl(callbacksDontShareTypes.ts, 11, 3)) +>rf1 : (x: number) => string, Symbol(rf1, Decl(callbacksDontShareTypes.ts, 13, 3)) var r5a = _.map(c2, (x) => { return x.toFixed() }); ->r5a : Collection +>r5a : Collection, Symbol(r5a, Decl(callbacksDontShareTypes.ts, 16, 3)) >_.map(c2, (x) => { return x.toFixed() }) : Collection ->_.map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; } ->_ : Combinators ->map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; } ->c2 : Collection +>_.map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; }, Symbol(Combinators.map, Decl(callbacksDontShareTypes.ts, 5, 23), Decl(callbacksDontShareTypes.ts, 6, 63)) +>_ : Combinators, Symbol(_, Decl(callbacksDontShareTypes.ts, 10, 3)) +>map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; }, Symbol(Combinators.map, Decl(callbacksDontShareTypes.ts, 5, 23), Decl(callbacksDontShareTypes.ts, 6, 63)) +>c2 : Collection, Symbol(c2, Decl(callbacksDontShareTypes.ts, 11, 3)) >(x) => { return x.toFixed() } : (x: number) => string ->x : number +>x : number, Symbol(x, Decl(callbacksDontShareTypes.ts, 16, 37)) >x.toFixed() : string ->x.toFixed : (fractionDigits?: number) => string ->x : number ->toFixed : (fractionDigits?: number) => string +>x.toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) +>x : number, Symbol(x, Decl(callbacksDontShareTypes.ts, 16, 37)) +>toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) var r5b = _.map(c2, rf1); ->r5b : Collection +>r5b : Collection, Symbol(r5b, Decl(callbacksDontShareTypes.ts, 17, 3)) >_.map(c2, rf1) : Collection ->_.map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; } ->_ : Combinators ->map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; } ->c2 : Collection ->rf1 : (x: number) => string +>_.map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; }, Symbol(Combinators.map, Decl(callbacksDontShareTypes.ts, 5, 23), Decl(callbacksDontShareTypes.ts, 6, 63)) +>_ : Combinators, Symbol(_, Decl(callbacksDontShareTypes.ts, 10, 3)) +>map : { (c: Collection, f: (x: T) => U): Collection; (c: Collection, f: (x: T) => any): Collection; }, Symbol(Combinators.map, Decl(callbacksDontShareTypes.ts, 5, 23), Decl(callbacksDontShareTypes.ts, 6, 63)) +>c2 : Collection, Symbol(c2, Decl(callbacksDontShareTypes.ts, 11, 3)) +>rf1 : (x: number) => string, Symbol(rf1, Decl(callbacksDontShareTypes.ts, 13, 3)) diff --git a/tests/baselines/reference/captureThisInSuperCall.types b/tests/baselines/reference/captureThisInSuperCall.types index faa7d2ad97e..ee31ed8aa7c 100644 --- a/tests/baselines/reference/captureThisInSuperCall.types +++ b/tests/baselines/reference/captureThisInSuperCall.types @@ -1,26 +1,26 @@ === tests/cases/compiler/captureThisInSuperCall.ts === class A { ->A : A +>A : A, Symbol(A, Decl(captureThisInSuperCall.ts, 0, 0)) constructor(p:any) {} ->p : any +>p : any, Symbol(p, Decl(captureThisInSuperCall.ts, 1, 16)) } class B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(captureThisInSuperCall.ts, 2, 1)) +>A : A, Symbol(A, Decl(captureThisInSuperCall.ts, 0, 0)) constructor() { super({ test: () => this.someMethod()}); } >super({ test: () => this.someMethod()}) : void ->super : typeof A +>super : typeof A, Symbol(A, Decl(captureThisInSuperCall.ts, 0, 0)) >{ test: () => this.someMethod()} : { test: () => void; } ->test : () => void +>test : () => void, Symbol(test, Decl(captureThisInSuperCall.ts, 5, 27)) >() => this.someMethod() : () => void >this.someMethod() : void ->this.someMethod : () => void ->this : B ->someMethod : () => void +>this.someMethod : () => void, Symbol(someMethod, Decl(captureThisInSuperCall.ts, 5, 62)) +>this : B, Symbol(B, Decl(captureThisInSuperCall.ts, 2, 1)) +>someMethod : () => void, Symbol(someMethod, Decl(captureThisInSuperCall.ts, 5, 62)) someMethod() {} ->someMethod : () => void +>someMethod : () => void, Symbol(someMethod, Decl(captureThisInSuperCall.ts, 5, 62)) } diff --git a/tests/baselines/reference/castExpressionParentheses.types b/tests/baselines/reference/castExpressionParentheses.types index 7004aef9c95..16f8b93aeec 100644 --- a/tests/baselines/reference/castExpressionParentheses.types +++ b/tests/baselines/reference/castExpressionParentheses.types @@ -1,6 +1,6 @@ === tests/cases/compiler/castExpressionParentheses.ts === declare var a; ->a : any +>a : any, Symbol(a, Decl(castExpressionParentheses.ts, 0, 11)) // parentheses should be omitted // literals @@ -8,36 +8,45 @@ declare var a; >({a:0}) : any >{a:0} : any >{a:0} : { a: number; } ->a : number +>a : number, Symbol(a, Decl(castExpressionParentheses.ts, 4, 7)) +>0 : number ([1,3,]); >([1,3,]) : any >[1,3,] : any >[1,3,] : number[] +>1 : number +>3 : number ("string"); >("string") : any >"string" : any +>"string" : string (23.0); >(23.0) : any >23.0 : any +>23.0 : number (/regexp/g); >(/regexp/g) : any >/regexp/g : any +>/regexp/g : RegExp (false); >(false) : any >false : any +>false : boolean (true); >(true) : any >true : any +>true : boolean (null); >(null) : any >null : any +>null : null // names and dotted names (this); @@ -58,39 +67,41 @@ declare var a; >(a).x : any >(a) : any >a : any ->a : any +>a : any, Symbol(a, Decl(castExpressionParentheses.ts, 0, 11)) >x : any (a); >(a) : any >a : any >a : any ->a : any +>a : any, Symbol(a, Decl(castExpressionParentheses.ts, 0, 11)) (a[0]); >(a[0]) : any >a[0] : any >a[0] : any ->a : any +>a : any, Symbol(a, Decl(castExpressionParentheses.ts, 0, 11)) +>0 : number (a.b["0"]); >(a.b["0"]) : any >a.b["0"] : any >a.b["0"] : any >a.b : any ->a : any +>a : any, Symbol(a, Decl(castExpressionParentheses.ts, 0, 11)) >b : any +>"0" : string (a()).x; >(a()).x : any >(a()) : any >a() : any >a() : any ->a : any +>a : any, Symbol(a, Decl(castExpressionParentheses.ts, 0, 11)) >x : any declare var A; ->A : any +>A : any, Symbol(A, Decl(castExpressionParentheses.ts, 21, 11)) // should keep the parentheses in emit (new A).foo; @@ -98,7 +109,7 @@ declare var A; >(new A) : any >new A : any >new A : any ->A : any +>A : any, Symbol(A, Decl(castExpressionParentheses.ts, 21, 11)) >foo : any (typeof A).x; @@ -106,7 +117,7 @@ declare var A; >(typeof A) : any >typeof A : any >typeof A : string ->A : any +>A : any, Symbol(A, Decl(castExpressionParentheses.ts, 21, 11)) >x : any (-A).x; @@ -114,7 +125,7 @@ declare var A; >(-A) : any >-A : any >-A : number ->A : any +>A : any, Symbol(A, Decl(castExpressionParentheses.ts, 21, 11)) >x : any new (A()); @@ -122,20 +133,20 @@ new (A()); >(A()) : any >A() : any >A() : any ->A : any +>A : any, Symbol(A, Decl(castExpressionParentheses.ts, 21, 11)) (()=> {})(); >(()=> {})() : void >(()=> {}) : () => void >()=> {} : () => void ->Tany : Tany +>Tany : Tany, Symbol(Tany, Decl(castExpressionParentheses.ts, 28, 2)) (function foo() { })(); >(function foo() { })() : any >(function foo() { }) : any >function foo() { } : any >function foo() { } : () => void ->foo : () => void +>foo : () => void, Symbol(foo, Decl(castExpressionParentheses.ts, 29, 6)) (-A).x; >(-A).x : any @@ -144,7 +155,7 @@ new (A()); >-A : number >-A : any >-A : number ->A : any +>A : any, Symbol(A, Decl(castExpressionParentheses.ts, 21, 11)) >x : any // nested cast, should keep one pair of parenthese @@ -156,7 +167,7 @@ new (A()); >(-A) : any >-A : any >-A : number ->A : any +>A : any, Symbol(A, Decl(castExpressionParentheses.ts, 21, 11)) >x : any // nested parenthesized expression, should keep one pair of parenthese @@ -164,6 +175,6 @@ new (A()); >((A)) : any >(A) : any >(A) : any ->A : any +>A : any, Symbol(A, Decl(castExpressionParentheses.ts, 21, 11)) diff --git a/tests/baselines/reference/castNewObjectBug.types b/tests/baselines/reference/castNewObjectBug.types index b98b1576061..011da5a6b4e 100644 --- a/tests/baselines/reference/castNewObjectBug.types +++ b/tests/baselines/reference/castNewObjectBug.types @@ -1,11 +1,11 @@ === tests/cases/compiler/castNewObjectBug.ts === interface Foo { } ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(castNewObjectBug.ts, 0, 0)) var xx = new Object(); ->xx : Foo +>xx : Foo, Symbol(xx, Decl(castNewObjectBug.ts, 1, 3)) > new Object() : Foo ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(castNewObjectBug.ts, 0, 0)) >new Object() : Object ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) diff --git a/tests/baselines/reference/castParentheses.types b/tests/baselines/reference/castParentheses.types index f65a1d8f748..76e05c4cc88 100644 --- a/tests/baselines/reference/castParentheses.types +++ b/tests/baselines/reference/castParentheses.types @@ -1,68 +1,68 @@ === tests/cases/compiler/castParentheses.ts === class a { ->a : a +>a : a, Symbol(a, Decl(castParentheses.ts, 0, 0)) static b: any; ->b : any +>b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9)) } var b = (a); ->b : any +>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3)) >(a) : any >a : any ->a : typeof a +>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0)) var b = (a).b; ->b : any +>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3)) >(a).b : any >(a) : any >a : any ->a : typeof a +>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0)) >b : any var b = (a.b).c; ->b : any +>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3)) >(a.b).c : any >(a.b) : any >a.b : any ->a.b : any ->a : typeof a ->b : any +>a.b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9)) +>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0)) +>b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9)) >c : any var b = (a.b()).c; ->b : any +>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3)) >(a.b()).c : any >(a.b()) : any >a.b() : any >a.b() : any ->a.b : any ->a : typeof a ->b : any +>a.b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9)) +>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0)) +>b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9)) >c : any var b = (new a); ->b : any +>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3)) >(new a) : any >new a : any >new a : a ->a : typeof a +>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0)) var b = (new a.b); ->b : any +>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3)) >(new a.b) : any >new a.b : any >new a.b : any ->a.b : any ->a : typeof a ->b : any +>a.b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9)) +>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0)) +>b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9)) var b = (new a).b ->b : any +>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3)) >(new a).b : any >(new a) : any >new a : any >new a : a ->a : typeof a +>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0)) >b : any diff --git a/tests/baselines/reference/castTest.types b/tests/baselines/reference/castTest.types index 8250bec362d..b52e41d4c77 100644 --- a/tests/baselines/reference/castTest.types +++ b/tests/baselines/reference/castTest.types @@ -1,105 +1,113 @@ === tests/cases/compiler/castTest.ts === var x : any = 0; ->x : any +>x : any, Symbol(x, Decl(castTest.ts, 1, 3)) +>0 : number var z = x; ->z : number +>z : number, Symbol(z, Decl(castTest.ts, 2, 3)) > x : number ->x : any +>x : any, Symbol(x, Decl(castTest.ts, 1, 3)) var y = x + z; ->y : any +>y : any, Symbol(y, Decl(castTest.ts, 3, 3)) >x + z : any ->x : any ->z : number +>x : any, Symbol(x, Decl(castTest.ts, 1, 3)) +>z : number, Symbol(z, Decl(castTest.ts, 2, 3)) var a = 0; ->a : any +>a : any, Symbol(a, Decl(castTest.ts, 5, 3)) >0 : any +>0 : number var b = true; ->b : boolean +>b : boolean, Symbol(b, Decl(castTest.ts, 6, 3)) >true : boolean +>true : boolean var s = ""; ->s : string +>s : string, Symbol(s, Decl(castTest.ts, 7, 3)) >"" : string +>"" : string var ar = null; ->ar : any[] +>ar : any[], Symbol(ar, Decl(castTest.ts, 9, 3)) >null : any[] +>null : null var f = <(res : number) => void>null; ->f : (res: number) => void +>f : (res: number) => void, Symbol(f, Decl(castTest.ts, 11, 3)) ><(res : number) => void>null : (res: number) => void ->res : number +>res : number, Symbol(res, Decl(castTest.ts, 11, 10)) +>null : null declare class Point ->Point : Point +>Point : Point, Symbol(Point, Decl(castTest.ts, 11, 37)) { x: number; ->x : number +>x : number, Symbol(x, Decl(castTest.ts, 14, 1)) y: number; ->y : number +>y : number, Symbol(y, Decl(castTest.ts, 15, 14)) add(dx: number, dy: number): Point; ->add : (dx: number, dy: number) => Point ->dx : number ->dy : number ->Point : Point +>add : (dx: number, dy: number) => Point, Symbol(add, Decl(castTest.ts, 16, 14)) +>dx : number, Symbol(dx, Decl(castTest.ts, 17, 8)) +>dy : number, Symbol(dy, Decl(castTest.ts, 17, 19)) +>Point : Point, Symbol(Point, Decl(castTest.ts, 11, 37)) mult(p: Point): Point; ->mult : (p: Point) => Point ->p : Point ->Point : Point ->Point : Point +>mult : (p: Point) => Point, Symbol(mult, Decl(castTest.ts, 17, 39)) +>p : Point, Symbol(p, Decl(castTest.ts, 18, 9)) +>Point : Point, Symbol(Point, Decl(castTest.ts, 11, 37)) +>Point : Point, Symbol(Point, Decl(castTest.ts, 11, 37)) constructor(x: number, y: number); ->x : number ->y : number +>x : number, Symbol(x, Decl(castTest.ts, 19, 16)) +>y : number, Symbol(y, Decl(castTest.ts, 19, 26)) } var p_cast = ({ ->p_cast : Point +>p_cast : Point, Symbol(p_cast, Decl(castTest.ts, 22, 3)) > ({ x: 0, y: 0, add: function(dx, dy) { return new Point(this.x + dx, this.y + dy); }, mult: function(p) { return p; }}) : Point ->Point : Point +>Point : Point, Symbol(Point, Decl(castTest.ts, 11, 37)) >({ x: 0, y: 0, add: function(dx, dy) { return new Point(this.x + dx, this.y + dy); }, mult: function(p) { return p; }}) : { x: number; y: number; add: (dx: number, dy: number) => Point; mult: (p: Point) => Point; } >{ x: 0, y: 0, add: function(dx, dy) { return new Point(this.x + dx, this.y + dy); }, mult: function(p) { return p; }} : { x: number; y: number; add: (dx: number, dy: number) => Point; mult: (p: Point) => Point; } x: 0, ->x : number +>x : number, Symbol(x, Decl(castTest.ts, 22, 23)) +>0 : number y: 0, ->y : number +>y : number, Symbol(y, Decl(castTest.ts, 23, 9)) +>0 : number add: function(dx, dy) { ->add : (dx: number, dy: number) => Point +>add : (dx: number, dy: number) => Point, Symbol(add, Decl(castTest.ts, 24, 9)) >function(dx, dy) { return new Point(this.x + dx, this.y + dy); } : (dx: number, dy: number) => Point ->dx : number ->dy : number +>dx : number, Symbol(dx, Decl(castTest.ts, 25, 18)) +>dy : number, Symbol(dy, Decl(castTest.ts, 25, 21)) return new Point(this.x + dx, this.y + dy); >new Point(this.x + dx, this.y + dy) : Point ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(castTest.ts, 11, 37)) >this.x + dx : any >this.x : any >this : any >x : any ->dx : number +>dx : number, Symbol(dx, Decl(castTest.ts, 25, 18)) >this.y + dy : any >this.y : any >this : any >y : any ->dy : number +>dy : number, Symbol(dy, Decl(castTest.ts, 25, 21)) }, mult: function(p) { return p; } ->mult : (p: Point) => Point +>mult : (p: Point) => Point, Symbol(mult, Decl(castTest.ts, 27, 6)) >function(p) { return p; } : (p: Point) => Point ->p : Point ->p : Point +>p : Point, Symbol(p, Decl(castTest.ts, 28, 19)) +>p : Point, Symbol(p, Decl(castTest.ts, 28, 19)) }) diff --git a/tests/baselines/reference/catch.types b/tests/baselines/reference/catch.types index bb0b2adbefe..6f9cb03eabd 100644 --- a/tests/baselines/reference/catch.types +++ b/tests/baselines/reference/catch.types @@ -1,11 +1,11 @@ === tests/cases/compiler/catch.ts === function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(catch.ts, 0, 0)) try {} catch(e) { } ->e : any +>e : any, Symbol(e, Decl(catch.ts, 1, 17)) try {} catch(e) { } ->e : any +>e : any, Symbol(e, Decl(catch.ts, 2, 17)) } diff --git a/tests/baselines/reference/cf.types b/tests/baselines/reference/cf.types index 62dcba0ba9a..9c5efed3861 100644 --- a/tests/baselines/reference/cf.types +++ b/tests/baselines/reference/cf.types @@ -1,134 +1,165 @@ === tests/cases/compiler/cf.ts === function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(cf.ts, 0, 0)) var z; ->z : any +>z : any, Symbol(z, Decl(cf.ts, 1, 7)) var x=10; ->x : number +>x : number, Symbol(x, Decl(cf.ts, 2, 7)) +>10 : number var y=3; ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) +>3 : number L1: for (var i=0;i<19;i++) { ->i : number +>L1 : any +>i : number, Symbol(i, Decl(cf.ts, 5, 16)) +>0 : number >i<19 : boolean ->i : number +>i : number, Symbol(i, Decl(cf.ts, 5, 16)) +>19 : number >i++ : number ->i : number +>i : number, Symbol(i, Decl(cf.ts, 5, 16)) if (y==7) { >y==7 : boolean ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) +>7 : number continue L1; +>L1 : any + x=11; >x=11 : number ->x : number +>x : number, Symbol(x, Decl(cf.ts, 2, 7)) +>11 : number } if (y==3) { >y==3 : boolean ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) +>3 : number y++; >y++ : number ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) } else { y--; >y-- : number ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) } do { y+=2; >y+=2 : number ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) +>2 : number if (y==20) { >y==20 : boolean ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) +>20 : number break; x=12; >x=12 : number ->x : number +>x : number, Symbol(x, Decl(cf.ts, 2, 7)) +>12 : number } } while (y<41); >y<41 : boolean ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) +>41 : number y++; >y++ : number ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) } while (y>2) { >y>2 : boolean ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) +>2 : number y=y>>1; >y=y>>1 : number ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) >y>>1 : number ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) +>1 : number } L2: try { +>L2 : any + L3: if (xL3 : any >xx : number ->y : number +>x : number, Symbol(x, Decl(cf.ts, 2, 7)) +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) break L2; +>L2 : any + x=13; >x=13 : number ->x : number +>x : number, Symbol(x, Decl(cf.ts, 2, 7)) +>13 : number } else { break L3; +>L3 : any + x=14; >x=14 : number ->x : number +>x : number, Symbol(x, Decl(cf.ts, 2, 7)) +>14 : number } } catch (e) { ->e : any +>e : any, Symbol(e, Decl(cf.ts, 38, 11)) x++; >x++ : number ->x : number +>x : number, Symbol(x, Decl(cf.ts, 2, 7)) } finally { x+=3; >x+=3 : number ->x : number +>x : number, Symbol(x, Decl(cf.ts, 2, 7)) +>3 : number } y++; >y++ : number ->y : number +>y : number, Symbol(y, Decl(cf.ts, 3, 7)) for (var k=0;k<10;k++) { ->k : number +>k : number, Symbol(k, Decl(cf.ts, 45, 12)) +>0 : number >k<10 : boolean ->k : number +>k : number, Symbol(k, Decl(cf.ts, 45, 12)) +>10 : number >k++ : number ->k : number +>k : number, Symbol(k, Decl(cf.ts, 45, 12)) z; ->z : any +>z : any, Symbol(z, Decl(cf.ts, 1, 7)) break; } for (k=0;k<10;k++) { >k=0 : number ->k : number +>k : number, Symbol(k, Decl(cf.ts, 45, 12)) +>0 : number >k<10 : boolean ->k : number +>k : number, Symbol(k, Decl(cf.ts, 45, 12)) +>10 : number >k++ : number ->k : number +>k : number, Symbol(k, Decl(cf.ts, 45, 12)) if (k==6) { >k==6 : boolean ->k : number +>k : number, Symbol(k, Decl(cf.ts, 45, 12)) +>6 : number continue; } diff --git a/tests/baselines/reference/chainedAssignment2.types b/tests/baselines/reference/chainedAssignment2.types index 3ddd7412b9c..e1bfdd9f97d 100644 --- a/tests/baselines/reference/chainedAssignment2.types +++ b/tests/baselines/reference/chainedAssignment2.types @@ -1,31 +1,32 @@ === tests/cases/compiler/chainedAssignment2.ts === var a: string; ->a : string +>a : string, Symbol(a, Decl(chainedAssignment2.ts, 0, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(chainedAssignment2.ts, 1, 3)) var c: boolean; ->c : boolean +>c : boolean, Symbol(c, Decl(chainedAssignment2.ts, 2, 3)) var d: Date; ->d : Date ->Date : Date +>d : Date, Symbol(d, Decl(chainedAssignment2.ts, 3, 3)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var e: RegExp; ->e : RegExp ->RegExp : RegExp +>e : RegExp, Symbol(e, Decl(chainedAssignment2.ts, 4, 3)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) a = b = c = d = e = null; >a = b = c = d = e = null : null ->a : string +>a : string, Symbol(a, Decl(chainedAssignment2.ts, 0, 3)) >b = c = d = e = null : null ->b : number +>b : number, Symbol(b, Decl(chainedAssignment2.ts, 1, 3)) >c = d = e = null : null ->c : boolean +>c : boolean, Symbol(c, Decl(chainedAssignment2.ts, 2, 3)) >d = e = null : null ->d : Date +>d : Date, Symbol(d, Decl(chainedAssignment2.ts, 3, 3)) >e = null : null ->e : RegExp +>e : RegExp, Symbol(e, Decl(chainedAssignment2.ts, 4, 3)) +>null : null diff --git a/tests/baselines/reference/chainedImportAlias.types b/tests/baselines/reference/chainedImportAlias.types index 1435776fff2..93b505c4033 100644 --- a/tests/baselines/reference/chainedImportAlias.types +++ b/tests/baselines/reference/chainedImportAlias.types @@ -1,24 +1,24 @@ === tests/cases/compiler/chainedImportAlias_file1.ts === import x = require('chainedImportAlias_file0'); ->x : typeof x +>x : typeof x, Symbol(x, Decl(chainedImportAlias_file1.ts, 0, 0)) import y = x; ->y : typeof x ->x : typeof x +>y : typeof x, Symbol(y, Decl(chainedImportAlias_file1.ts, 0, 47)) +>x : typeof x, Symbol(x, Decl(chainedImportAlias_file0.ts, 0, 0)) y.m.foo(); >y.m.foo() : void ->y.m.foo : () => void ->y.m : typeof x.m ->y : typeof x ->m : typeof x.m ->foo : () => void +>y.m.foo : () => void, Symbol(x.m.foo, Decl(chainedImportAlias_file0.ts, 0, 17)) +>y.m : typeof x.m, Symbol(x.m, Decl(chainedImportAlias_file0.ts, 0, 0)) +>y : typeof x, Symbol(y, Decl(chainedImportAlias_file1.ts, 0, 47)) +>m : typeof x.m, Symbol(x.m, Decl(chainedImportAlias_file0.ts, 0, 0)) +>foo : () => void, Symbol(x.m.foo, Decl(chainedImportAlias_file0.ts, 0, 17)) === tests/cases/compiler/chainedImportAlias_file0.ts === export module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(chainedImportAlias_file0.ts, 0, 0)) export function foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(chainedImportAlias_file0.ts, 0, 17)) } diff --git a/tests/baselines/reference/chainedSpecializationToObjectTypeLiteral.types b/tests/baselines/reference/chainedSpecializationToObjectTypeLiteral.types index b76b19a724d..249e79d19fc 100644 --- a/tests/baselines/reference/chainedSpecializationToObjectTypeLiteral.types +++ b/tests/baselines/reference/chainedSpecializationToObjectTypeLiteral.types @@ -1,71 +1,71 @@ === tests/cases/compiler/chainedSpecializationToObjectTypeLiteral.ts === interface Sequence { ->Sequence : Sequence ->T : T +>Sequence : Sequence, Symbol(Sequence, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 0)) +>T : T, Symbol(T, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 19)) each(iterator: (value: T) => void): void; ->each : (iterator: (value: T) => void) => void ->iterator : (value: T) => void ->value : T ->T : T +>each : (iterator: (value: T) => void) => void, Symbol(each, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 23)) +>iterator : (value: T) => void, Symbol(iterator, Decl(chainedSpecializationToObjectTypeLiteral.ts, 1, 9)) +>value : T, Symbol(value, Decl(chainedSpecializationToObjectTypeLiteral.ts, 1, 20)) +>T : T, Symbol(T, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 19)) map(iterator: (value: T) => U): Sequence; ->map : (iterator: (value: T) => U) => Sequence ->U : U ->iterator : (value: T) => U ->value : T ->T : T ->U : U ->Sequence : Sequence ->U : U +>map : (iterator: (value: T) => U) => Sequence, Symbol(map, Decl(chainedSpecializationToObjectTypeLiteral.ts, 1, 45)) +>U : U, Symbol(U, Decl(chainedSpecializationToObjectTypeLiteral.ts, 2, 8)) +>iterator : (value: T) => U, Symbol(iterator, Decl(chainedSpecializationToObjectTypeLiteral.ts, 2, 11)) +>value : T, Symbol(value, Decl(chainedSpecializationToObjectTypeLiteral.ts, 2, 22)) +>T : T, Symbol(T, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 19)) +>U : U, Symbol(U, Decl(chainedSpecializationToObjectTypeLiteral.ts, 2, 8)) +>Sequence : Sequence, Symbol(Sequence, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 0)) +>U : U, Symbol(U, Decl(chainedSpecializationToObjectTypeLiteral.ts, 2, 8)) filter(iterator: (value: T) => boolean): Sequence; ->filter : (iterator: (value: T) => boolean) => Sequence ->iterator : (value: T) => boolean ->value : T ->T : T ->Sequence : Sequence ->T : T +>filter : (iterator: (value: T) => boolean) => Sequence, Symbol(filter, Decl(chainedSpecializationToObjectTypeLiteral.ts, 2, 51)) +>iterator : (value: T) => boolean, Symbol(iterator, Decl(chainedSpecializationToObjectTypeLiteral.ts, 3, 11)) +>value : T, Symbol(value, Decl(chainedSpecializationToObjectTypeLiteral.ts, 3, 22)) +>T : T, Symbol(T, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 19)) +>Sequence : Sequence, Symbol(Sequence, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 0)) +>T : T, Symbol(T, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 19)) groupBy(keySelector: (value: T) => K): Sequence<{ key: K; items: T[]; }>; ->groupBy : (keySelector: (value: T) => K) => Sequence<{ key: K; items: T[]; }> ->K : K ->keySelector : (value: T) => K ->value : T ->T : T ->K : K ->Sequence : Sequence ->key : K ->K : K ->items : T[] ->T : T +>groupBy : (keySelector: (value: T) => K) => Sequence<{ key: K; items: T[]; }>, Symbol(groupBy, Decl(chainedSpecializationToObjectTypeLiteral.ts, 3, 57)) +>K : K, Symbol(K, Decl(chainedSpecializationToObjectTypeLiteral.ts, 4, 12)) +>keySelector : (value: T) => K, Symbol(keySelector, Decl(chainedSpecializationToObjectTypeLiteral.ts, 4, 15)) +>value : T, Symbol(value, Decl(chainedSpecializationToObjectTypeLiteral.ts, 4, 29)) +>T : T, Symbol(T, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 19)) +>K : K, Symbol(K, Decl(chainedSpecializationToObjectTypeLiteral.ts, 4, 12)) +>Sequence : Sequence, Symbol(Sequence, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 0)) +>key : K, Symbol(key, Decl(chainedSpecializationToObjectTypeLiteral.ts, 4, 56)) +>K : K, Symbol(K, Decl(chainedSpecializationToObjectTypeLiteral.ts, 4, 12)) +>items : T[], Symbol(items, Decl(chainedSpecializationToObjectTypeLiteral.ts, 4, 64)) +>T : T, Symbol(T, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 19)) } var s: Sequence; ->s : Sequence ->Sequence : Sequence +>s : Sequence, Symbol(s, Decl(chainedSpecializationToObjectTypeLiteral.ts, 7, 3)) +>Sequence : Sequence, Symbol(Sequence, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 0)) var s2 = s.groupBy(s => s.length); ->s2 : Sequence<{ key: number; items: string[]; }> +>s2 : Sequence<{ key: number; items: string[]; }>, Symbol(s2, Decl(chainedSpecializationToObjectTypeLiteral.ts, 8, 3)) >s.groupBy(s => s.length) : Sequence<{ key: number; items: string[]; }> ->s.groupBy : (keySelector: (value: string) => K) => Sequence<{ key: K; items: string[]; }> ->s : Sequence ->groupBy : (keySelector: (value: string) => K) => Sequence<{ key: K; items: string[]; }> +>s.groupBy : (keySelector: (value: string) => K) => Sequence<{ key: K; items: string[]; }>, Symbol(Sequence.groupBy, Decl(chainedSpecializationToObjectTypeLiteral.ts, 3, 57)) +>s : Sequence, Symbol(s, Decl(chainedSpecializationToObjectTypeLiteral.ts, 7, 3)) +>groupBy : (keySelector: (value: string) => K) => Sequence<{ key: K; items: string[]; }>, Symbol(Sequence.groupBy, Decl(chainedSpecializationToObjectTypeLiteral.ts, 3, 57)) >s => s.length : (s: string) => number ->s : string ->s.length : number ->s : string ->length : number +>s : string, Symbol(s, Decl(chainedSpecializationToObjectTypeLiteral.ts, 8, 19)) +>s.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>s : string, Symbol(s, Decl(chainedSpecializationToObjectTypeLiteral.ts, 8, 19)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) var s3 = s2.each(x => { x.key /* Type is K, should be number */ }); ->s3 : void +>s3 : void, Symbol(s3, Decl(chainedSpecializationToObjectTypeLiteral.ts, 9, 3)) >s2.each(x => { x.key /* Type is K, should be number */ }) : void ->s2.each : (iterator: (value: { key: number; items: string[]; }) => void) => void ->s2 : Sequence<{ key: number; items: string[]; }> ->each : (iterator: (value: { key: number; items: string[]; }) => void) => void +>s2.each : (iterator: (value: { key: number; items: string[]; }) => void) => void, Symbol(Sequence.each, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 23)) +>s2 : Sequence<{ key: number; items: string[]; }>, Symbol(s2, Decl(chainedSpecializationToObjectTypeLiteral.ts, 8, 3)) +>each : (iterator: (value: { key: number; items: string[]; }) => void) => void, Symbol(Sequence.each, Decl(chainedSpecializationToObjectTypeLiteral.ts, 0, 23)) >x => { x.key /* Type is K, should be number */ } : (x: { key: number; items: string[]; }) => void ->x : { key: number; items: string[]; } ->x.key : number ->x : { key: number; items: string[]; } ->key : number +>x : { key: number; items: string[]; }, Symbol(x, Decl(chainedSpecializationToObjectTypeLiteral.ts, 9, 17)) +>x.key : number, Symbol(key, Decl(chainedSpecializationToObjectTypeLiteral.ts, 4, 56)) +>x : { key: number; items: string[]; }, Symbol(x, Decl(chainedSpecializationToObjectTypeLiteral.ts, 9, 17)) +>key : number, Symbol(key, Decl(chainedSpecializationToObjectTypeLiteral.ts, 4, 56)) diff --git a/tests/baselines/reference/checkInfiniteExpansionTermination.types b/tests/baselines/reference/checkInfiniteExpansionTermination.types index bd4858126dd..d575bb37d77 100644 --- a/tests/baselines/reference/checkInfiniteExpansionTermination.types +++ b/tests/baselines/reference/checkInfiniteExpansionTermination.types @@ -3,42 +3,42 @@ // Before fix this code would cause infinite loop interface IObservable { ->IObservable : IObservable ->T : T +>IObservable : IObservable, Symbol(IObservable, Decl(checkInfiniteExpansionTermination.ts, 0, 0)) +>T : T, Symbol(T, Decl(checkInfiniteExpansionTermination.ts, 3, 22)) n: IObservable; // Needed, must be T[] ->n : IObservable ->IObservable : IObservable ->T : T +>n : IObservable, Symbol(n, Decl(checkInfiniteExpansionTermination.ts, 3, 26)) +>IObservable : IObservable, Symbol(IObservable, Decl(checkInfiniteExpansionTermination.ts, 0, 0)) +>T : T, Symbol(T, Decl(checkInfiniteExpansionTermination.ts, 3, 22)) } // Needed interface ISubject extends IObservable { } ->ISubject : ISubject ->T : T ->IObservable : IObservable ->T : T +>ISubject : ISubject, Symbol(ISubject, Decl(checkInfiniteExpansionTermination.ts, 5, 1)) +>T : T, Symbol(T, Decl(checkInfiniteExpansionTermination.ts, 8, 19)) +>IObservable : IObservable, Symbol(IObservable, Decl(checkInfiniteExpansionTermination.ts, 0, 0)) +>T : T, Symbol(T, Decl(checkInfiniteExpansionTermination.ts, 8, 19)) interface Foo { x } ->Foo : Foo ->x : any +>Foo : Foo, Symbol(Foo, Decl(checkInfiniteExpansionTermination.ts, 8, 48)) +>x : any, Symbol(x, Decl(checkInfiniteExpansionTermination.ts, 10, 15)) interface Bar { y } ->Bar : Bar ->y : any +>Bar : Bar, Symbol(Bar, Decl(checkInfiniteExpansionTermination.ts, 10, 19)) +>y : any, Symbol(y, Decl(checkInfiniteExpansionTermination.ts, 11, 15)) var values: IObservable; ->values : IObservable ->IObservable : IObservable ->Foo : Foo +>values : IObservable, Symbol(values, Decl(checkInfiniteExpansionTermination.ts, 13, 3)) +>IObservable : IObservable, Symbol(IObservable, Decl(checkInfiniteExpansionTermination.ts, 0, 0)) +>Foo : Foo, Symbol(Foo, Decl(checkInfiniteExpansionTermination.ts, 8, 48)) var values2: ISubject; ->values2 : ISubject ->ISubject : ISubject ->Bar : Bar +>values2 : ISubject, Symbol(values2, Decl(checkInfiniteExpansionTermination.ts, 14, 3)) +>ISubject : ISubject, Symbol(ISubject, Decl(checkInfiniteExpansionTermination.ts, 5, 1)) +>Bar : Bar, Symbol(Bar, Decl(checkInfiniteExpansionTermination.ts, 10, 19)) values = values2; >values = values2 : ISubject ->values : IObservable ->values2 : ISubject +>values : IObservable, Symbol(values, Decl(checkInfiniteExpansionTermination.ts, 13, 3)) +>values2 : ISubject, Symbol(values2, Decl(checkInfiniteExpansionTermination.ts, 14, 3)) diff --git a/tests/baselines/reference/checkInfiniteExpansionTermination2.types b/tests/baselines/reference/checkInfiniteExpansionTermination2.types index fc81e1c9304..ff96b8c7851 100644 --- a/tests/baselines/reference/checkInfiniteExpansionTermination2.types +++ b/tests/baselines/reference/checkInfiniteExpansionTermination2.types @@ -3,44 +3,44 @@ // Before fix this code would cause infinite loop interface IObservable { ->IObservable : IObservable ->T : T +>IObservable : IObservable, Symbol(IObservable, Decl(checkInfiniteExpansionTermination2.ts, 0, 0)) +>T : T, Symbol(T, Decl(checkInfiniteExpansionTermination2.ts, 3, 22)) n: IObservable; ->n : IObservable ->IObservable : IObservable ->T : T +>n : IObservable, Symbol(n, Decl(checkInfiniteExpansionTermination2.ts, 3, 26)) +>IObservable : IObservable, Symbol(IObservable, Decl(checkInfiniteExpansionTermination2.ts, 0, 0)) +>T : T, Symbol(T, Decl(checkInfiniteExpansionTermination2.ts, 3, 22)) } interface ISubject extends IObservable { } ->ISubject : ISubject ->T : T ->IObservable : IObservable ->T : T +>ISubject : ISubject, Symbol(ISubject, Decl(checkInfiniteExpansionTermination2.ts, 5, 1)) +>T : T, Symbol(T, Decl(checkInfiniteExpansionTermination2.ts, 6, 19)) +>IObservable : IObservable, Symbol(IObservable, Decl(checkInfiniteExpansionTermination2.ts, 0, 0)) +>T : T, Symbol(T, Decl(checkInfiniteExpansionTermination2.ts, 6, 19)) declare function combineLatest(x: IObservable[]): void; ->combineLatest : { (x: IObservable[]): void; (): void; } ->TOther : TOther ->x : IObservable[] ->IObservable : IObservable ->TOther : TOther +>combineLatest : { (x: IObservable[]): void; (): void; }, Symbol(combineLatest, Decl(checkInfiniteExpansionTermination2.ts, 6, 48), Decl(checkInfiniteExpansionTermination2.ts, 8, 71)) +>TOther : TOther, Symbol(TOther, Decl(checkInfiniteExpansionTermination2.ts, 8, 31)) +>x : IObservable[], Symbol(x, Decl(checkInfiniteExpansionTermination2.ts, 8, 39)) +>IObservable : IObservable, Symbol(IObservable, Decl(checkInfiniteExpansionTermination2.ts, 0, 0)) +>TOther : TOther, Symbol(TOther, Decl(checkInfiniteExpansionTermination2.ts, 8, 31)) declare function combineLatest(): void; ->combineLatest : { (x: IObservable[]): void; (): void; } +>combineLatest : { (x: IObservable[]): void; (): void; }, Symbol(combineLatest, Decl(checkInfiniteExpansionTermination2.ts, 6, 48), Decl(checkInfiniteExpansionTermination2.ts, 8, 71)) function fn() { ->fn : () => void ->T : T +>fn : () => void, Symbol(fn, Decl(checkInfiniteExpansionTermination2.ts, 9, 39)) +>T : T, Symbol(T, Decl(checkInfiniteExpansionTermination2.ts, 11, 12)) var values: ISubject[] = []; ->values : ISubject[] ->ISubject : ISubject +>values : ISubject[], Symbol(values, Decl(checkInfiniteExpansionTermination2.ts, 12, 7)) +>ISubject : ISubject, Symbol(ISubject, Decl(checkInfiniteExpansionTermination2.ts, 5, 1)) >[] : undefined[] // Hang when using , but not combineLatest(values); >combineLatest(values) : void ->combineLatest : { (x: IObservable[]): void; (): void; } ->T : T ->values : ISubject[] +>combineLatest : { (x: IObservable[]): void; (): void; }, Symbol(combineLatest, Decl(checkInfiniteExpansionTermination2.ts, 6, 48), Decl(checkInfiniteExpansionTermination2.ts, 8, 71)) +>T : T, Symbol(T, Decl(checkInfiniteExpansionTermination2.ts, 11, 12)) +>values : ISubject[], Symbol(values, Decl(checkInfiniteExpansionTermination2.ts, 12, 7)) } diff --git a/tests/baselines/reference/checkInterfaceBases.types b/tests/baselines/reference/checkInterfaceBases.types index 3e9107bbd6e..46509dd2066 100644 --- a/tests/baselines/reference/checkInterfaceBases.types +++ b/tests/baselines/reference/checkInterfaceBases.types @@ -1,27 +1,27 @@ === tests/cases/compiler/app.ts === /// interface SecondEvent { ->SecondEvent : SecondEvent +>SecondEvent : SecondEvent, Symbol(SecondEvent, Decl(app.ts, 0, 0)) data: any; ->data : any +>data : any, Symbol(data, Decl(app.ts, 1, 23)) } interface Third extends JQueryEventObjectTest, SecondEvent {} ->Third : Third ->JQueryEventObjectTest : JQueryEventObjectTest ->SecondEvent : SecondEvent +>Third : Third, Symbol(Third, Decl(app.ts, 3, 1)) +>JQueryEventObjectTest : JQueryEventObjectTest, Symbol(JQueryEventObjectTest, Decl(jquery.d.ts, 0, 0)) +>SecondEvent : SecondEvent, Symbol(SecondEvent, Decl(app.ts, 0, 0)) === tests/cases/compiler/jquery.d.ts === interface JQueryEventObjectTest { ->JQueryEventObjectTest : JQueryEventObjectTest +>JQueryEventObjectTest : JQueryEventObjectTest, Symbol(JQueryEventObjectTest, Decl(jquery.d.ts, 0, 0)) data: any; ->data : any +>data : any, Symbol(data, Decl(jquery.d.ts, 0, 33)) which: number; ->which : number +>which : number, Symbol(which, Decl(jquery.d.ts, 1, 14)) metaKey: any; ->metaKey : any +>metaKey : any, Symbol(metaKey, Decl(jquery.d.ts, 2, 18)) } diff --git a/tests/baselines/reference/circularImportAlias.types b/tests/baselines/reference/circularImportAlias.types index b61f91d460e..6725d1dc603 100644 --- a/tests/baselines/reference/circularImportAlias.types +++ b/tests/baselines/reference/circularImportAlias.types @@ -2,46 +2,47 @@ // expected no error module B { ->B : typeof a.b +>B : typeof a.b, Symbol(a.b, Decl(circularImportAlias.ts, 0, 0)) export import a = A; ->a : typeof a ->A : typeof a +>a : typeof a, Symbol(a, Decl(circularImportAlias.ts, 2, 10)) +>A : typeof a, Symbol(a, Decl(circularImportAlias.ts, 7, 1)) export class D extends a.C { ->D : D ->a : typeof a ->C : a.C +>D : D, Symbol(D, Decl(circularImportAlias.ts, 3, 24)) +>a.C : any, Symbol(a.C, Decl(circularImportAlias.ts, 9, 10)) +>a : typeof a, Symbol(a, Decl(circularImportAlias.ts, 2, 10)) +>C : a.C, Symbol(a.C, Decl(circularImportAlias.ts, 9, 10)) id: number; ->id : number +>id : number, Symbol(id, Decl(circularImportAlias.ts, 4, 32)) } } module A { ->A : typeof b.a +>A : typeof b.a, Symbol(b.a, Decl(circularImportAlias.ts, 7, 1)) export class C { name: string } ->C : C ->name : string +>C : C, Symbol(C, Decl(circularImportAlias.ts, 9, 10)) +>name : string, Symbol(name, Decl(circularImportAlias.ts, 10, 20)) export import b = B; ->b : typeof b ->B : typeof b +>b : typeof b, Symbol(b, Decl(circularImportAlias.ts, 10, 35)) +>B : typeof b, Symbol(b, Decl(circularImportAlias.ts, 0, 0)) } var c: { name: string }; ->c : { name: string; } ->name : string +>c : { name: string; }, Symbol(c, Decl(circularImportAlias.ts, 14, 3), Decl(circularImportAlias.ts, 15, 3)) +>name : string, Symbol(name, Decl(circularImportAlias.ts, 14, 8)) var c = new B.a.C(); ->c : { name: string; } +>c : { name: string; }, Symbol(c, Decl(circularImportAlias.ts, 14, 3), Decl(circularImportAlias.ts, 15, 3)) >new B.a.C() : A.C ->B.a.C : typeof A.C ->B.a : typeof A ->B : typeof B ->a : typeof A ->C : typeof A.C +>B.a.C : typeof A.C, Symbol(A.C, Decl(circularImportAlias.ts, 9, 10)) +>B.a : typeof A, Symbol(B.a, Decl(circularImportAlias.ts, 2, 10)) +>B : typeof B, Symbol(B, Decl(circularImportAlias.ts, 0, 0)) +>a : typeof A, Symbol(B.a, Decl(circularImportAlias.ts, 2, 10)) +>C : typeof A.C, Symbol(A.C, Decl(circularImportAlias.ts, 9, 10)) diff --git a/tests/baselines/reference/classAppearsToHaveMembersOfObject.types b/tests/baselines/reference/classAppearsToHaveMembersOfObject.types index fe4079bbfcf..38db87360b6 100644 --- a/tests/baselines/reference/classAppearsToHaveMembersOfObject.types +++ b/tests/baselines/reference/classAppearsToHaveMembersOfObject.types @@ -1,32 +1,33 @@ === tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classAppearsToHaveMembersOfObject.ts === class C { foo: string; } ->C : C ->foo : string +>C : C, Symbol(C, Decl(classAppearsToHaveMembersOfObject.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(classAppearsToHaveMembersOfObject.ts, 0, 9)) var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(classAppearsToHaveMembersOfObject.ts, 2, 3)) +>C : C, Symbol(C, Decl(classAppearsToHaveMembersOfObject.ts, 0, 0)) var r = c.toString(); ->r : string +>r : string, Symbol(r, Decl(classAppearsToHaveMembersOfObject.ts, 3, 3)) >c.toString() : string ->c.toString : () => string ->c : C ->toString : () => string +>c.toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) +>c : C, Symbol(c, Decl(classAppearsToHaveMembersOfObject.ts, 2, 3)) +>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) var r2 = c.hasOwnProperty(''); ->r2 : boolean +>r2 : boolean, Symbol(r2, Decl(classAppearsToHaveMembersOfObject.ts, 4, 3)) >c.hasOwnProperty('') : boolean ->c.hasOwnProperty : (v: string) => boolean ->c : C ->hasOwnProperty : (v: string) => boolean +>c.hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>c : C, Symbol(c, Decl(classAppearsToHaveMembersOfObject.ts, 2, 3)) +>hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>'' : string var o: Object = c; ->o : Object ->Object : Object ->c : C +>o : Object, Symbol(o, Decl(classAppearsToHaveMembersOfObject.ts, 5, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>c : C, Symbol(c, Decl(classAppearsToHaveMembersOfObject.ts, 2, 3)) var o2: {} = c; ->o2 : {} ->c : C +>o2 : {}, Symbol(o2, Decl(classAppearsToHaveMembersOfObject.ts, 6, 3)) +>c : C, Symbol(c, Decl(classAppearsToHaveMembersOfObject.ts, 2, 3)) diff --git a/tests/baselines/reference/classConstructorParametersAccessibility3.types b/tests/baselines/reference/classConstructorParametersAccessibility3.types index 3372044569c..c0d94febc74 100644 --- a/tests/baselines/reference/classConstructorParametersAccessibility3.types +++ b/tests/baselines/reference/classConstructorParametersAccessibility3.types @@ -1,36 +1,36 @@ === tests/cases/conformance/classes/constructorDeclarations/classConstructorParametersAccessibility3.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(classConstructorParametersAccessibility3.ts, 0, 0)) constructor(protected p: number) { } ->p : number +>p : number, Symbol(p, Decl(classConstructorParametersAccessibility3.ts, 1, 16)) } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(classConstructorParametersAccessibility3.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(classConstructorParametersAccessibility3.ts, 0, 0)) constructor(public p: number) { ->p : number +>p : number, Symbol(p, Decl(classConstructorParametersAccessibility3.ts, 5, 16)) super(p); >super(p) : void ->super : typeof Base ->p : number +>super : typeof Base, Symbol(Base, Decl(classConstructorParametersAccessibility3.ts, 0, 0)) +>p : number, Symbol(p, Decl(classConstructorParametersAccessibility3.ts, 5, 16)) this.p; // OK ->this.p : number ->this : Derived ->p : number +>this.p : number, Symbol(p, Decl(classConstructorParametersAccessibility3.ts, 5, 16)) +>this : Derived, Symbol(Derived, Decl(classConstructorParametersAccessibility3.ts, 2, 1)) +>p : number, Symbol(p, Decl(classConstructorParametersAccessibility3.ts, 5, 16)) } } var d: Derived; ->d : Derived ->Derived : Derived +>d : Derived, Symbol(d, Decl(classConstructorParametersAccessibility3.ts, 11, 3)) +>Derived : Derived, Symbol(Derived, Decl(classConstructorParametersAccessibility3.ts, 2, 1)) d.p; // public, OK ->d.p : number ->d : Derived ->p : number +>d.p : number, Symbol(Derived.p, Decl(classConstructorParametersAccessibility3.ts, 5, 16)) +>d : Derived, Symbol(d, Decl(classConstructorParametersAccessibility3.ts, 11, 3)) +>p : number, Symbol(Derived.p, Decl(classConstructorParametersAccessibility3.ts, 5, 16)) diff --git a/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.types b/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.types index 623515a7ec0..126f60a8b4d 100644 --- a/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.types +++ b/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.types @@ -1,24 +1,26 @@ === tests/cases/compiler/classDeclarationMergedInModuleWithContinuation.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(classDeclarationMergedInModuleWithContinuation.ts, 0, 0), Decl(classDeclarationMergedInModuleWithContinuation.ts, 5, 1)) export class N { } ->N : N +>N : N, Symbol(N, Decl(classDeclarationMergedInModuleWithContinuation.ts, 0, 10), Decl(classDeclarationMergedInModuleWithContinuation.ts, 1, 22)) export module N { ->N : typeof N +>N : typeof N, Symbol(N, Decl(classDeclarationMergedInModuleWithContinuation.ts, 0, 10), Decl(classDeclarationMergedInModuleWithContinuation.ts, 1, 22)) export var v = 0; ->v : number +>v : number, Symbol(v, Decl(classDeclarationMergedInModuleWithContinuation.ts, 3, 18)) +>0 : number } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(classDeclarationMergedInModuleWithContinuation.ts, 0, 0), Decl(classDeclarationMergedInModuleWithContinuation.ts, 5, 1)) export class O extends M.N { ->O : O ->M : typeof M ->N : N +>O : O, Symbol(O, Decl(classDeclarationMergedInModuleWithContinuation.ts, 7, 10)) +>M.N : any, Symbol(N, Decl(classDeclarationMergedInModuleWithContinuation.ts, 0, 10), Decl(classDeclarationMergedInModuleWithContinuation.ts, 1, 22)) +>M : typeof M, Symbol(M, Decl(classDeclarationMergedInModuleWithContinuation.ts, 0, 0), Decl(classDeclarationMergedInModuleWithContinuation.ts, 5, 1)) +>N : N, Symbol(N, Decl(classDeclarationMergedInModuleWithContinuation.ts, 0, 10), Decl(classDeclarationMergedInModuleWithContinuation.ts, 1, 22)) } } diff --git a/tests/baselines/reference/classDoesNotDependOnPrivateMember.types b/tests/baselines/reference/classDoesNotDependOnPrivateMember.types index 213c46ca1d5..2da01d7d969 100644 --- a/tests/baselines/reference/classDoesNotDependOnPrivateMember.types +++ b/tests/baselines/reference/classDoesNotDependOnPrivateMember.types @@ -1,15 +1,15 @@ === tests/cases/conformance/declarationEmit/classDoesNotDependOnPrivateMember.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(classDoesNotDependOnPrivateMember.ts, 0, 0)) interface I { } ->I : I +>I : I, Symbol(I, Decl(classDoesNotDependOnPrivateMember.ts, 0, 10)) export class C { ->C : C +>C : C, Symbol(C, Decl(classDoesNotDependOnPrivateMember.ts, 1, 19)) private x: I; ->x : I ->I : I +>x : I, Symbol(x, Decl(classDoesNotDependOnPrivateMember.ts, 2, 20)) +>I : I, Symbol(I, Decl(classDoesNotDependOnPrivateMember.ts, 0, 10)) } } diff --git a/tests/baselines/reference/classExtendingClass.types b/tests/baselines/reference/classExtendingClass.types index 7eaaaecf17f..25b4695c241 100644 --- a/tests/baselines/reference/classExtendingClass.types +++ b/tests/baselines/reference/classExtendingClass.types @@ -1,112 +1,114 @@ === tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingClass.ts === class C { ->C : C +>C : C, Symbol(C, Decl(classExtendingClass.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(classExtendingClass.ts, 0, 9)) thing() { } ->thing : () => void +>thing : () => void, Symbol(thing, Decl(classExtendingClass.ts, 1, 16)) static other() { } ->other : () => void +>other : () => void, Symbol(C.other, Decl(classExtendingClass.ts, 2, 15)) } class D extends C { ->D : D ->C : C +>D : D, Symbol(D, Decl(classExtendingClass.ts, 4, 1)) +>C : C, Symbol(C, Decl(classExtendingClass.ts, 0, 0)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(classExtendingClass.ts, 6, 19)) } var d: D; ->d : D ->D : D +>d : D, Symbol(d, Decl(classExtendingClass.ts, 10, 3)) +>D : D, Symbol(D, Decl(classExtendingClass.ts, 4, 1)) var r = d.foo; ->r : string ->d.foo : string ->d : D ->foo : string +>r : string, Symbol(r, Decl(classExtendingClass.ts, 11, 3)) +>d.foo : string, Symbol(C.foo, Decl(classExtendingClass.ts, 0, 9)) +>d : D, Symbol(d, Decl(classExtendingClass.ts, 10, 3)) +>foo : string, Symbol(C.foo, Decl(classExtendingClass.ts, 0, 9)) var r2 = d.bar; ->r2 : string ->d.bar : string ->d : D ->bar : string +>r2 : string, Symbol(r2, Decl(classExtendingClass.ts, 12, 3)) +>d.bar : string, Symbol(D.bar, Decl(classExtendingClass.ts, 6, 19)) +>d : D, Symbol(d, Decl(classExtendingClass.ts, 10, 3)) +>bar : string, Symbol(D.bar, Decl(classExtendingClass.ts, 6, 19)) var r3 = d.thing(); ->r3 : void +>r3 : void, Symbol(r3, Decl(classExtendingClass.ts, 13, 3)) >d.thing() : void ->d.thing : () => void ->d : D ->thing : () => void +>d.thing : () => void, Symbol(C.thing, Decl(classExtendingClass.ts, 1, 16)) +>d : D, Symbol(d, Decl(classExtendingClass.ts, 10, 3)) +>thing : () => void, Symbol(C.thing, Decl(classExtendingClass.ts, 1, 16)) var r4 = D.other(); ->r4 : void +>r4 : void, Symbol(r4, Decl(classExtendingClass.ts, 14, 3)) >D.other() : void ->D.other : () => void ->D : typeof D ->other : () => void +>D.other : () => void, Symbol(C.other, Decl(classExtendingClass.ts, 2, 15)) +>D : typeof D, Symbol(D, Decl(classExtendingClass.ts, 4, 1)) +>other : () => void, Symbol(C.other, Decl(classExtendingClass.ts, 2, 15)) class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(classExtendingClass.ts, 14, 19)) +>T : T, Symbol(T, Decl(classExtendingClass.ts, 16, 9)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(classExtendingClass.ts, 16, 13)) +>T : T, Symbol(T, Decl(classExtendingClass.ts, 16, 9)) thing(x: T) { } ->thing : (x: T) => void ->x : T ->T : T +>thing : (x: T) => void, Symbol(thing, Decl(classExtendingClass.ts, 17, 11)) +>x : T, Symbol(x, Decl(classExtendingClass.ts, 18, 10)) +>T : T, Symbol(T, Decl(classExtendingClass.ts, 16, 9)) static other(x: T) { } ->other : (x: T) => void ->T : T ->x : T ->T : T +>other : (x: T) => void, Symbol(C2.other, Decl(classExtendingClass.ts, 18, 19)) +>T : T, Symbol(T, Decl(classExtendingClass.ts, 19, 17)) +>x : T, Symbol(x, Decl(classExtendingClass.ts, 19, 20)) +>T : T, Symbol(T, Decl(classExtendingClass.ts, 19, 17)) } class D2 extends C2 { ->D2 : D2 ->T : T ->C2 : C2 ->T : T +>D2 : D2, Symbol(D2, Decl(classExtendingClass.ts, 20, 1)) +>T : T, Symbol(T, Decl(classExtendingClass.ts, 22, 9)) +>C2 : C2, Symbol(C2, Decl(classExtendingClass.ts, 14, 19)) +>T : T, Symbol(T, Decl(classExtendingClass.ts, 22, 9)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(classExtendingClass.ts, 22, 27)) } var d2: D2; ->d2 : D2 ->D2 : D2 +>d2 : D2, Symbol(d2, Decl(classExtendingClass.ts, 26, 3)) +>D2 : D2, Symbol(D2, Decl(classExtendingClass.ts, 20, 1)) var r5 = d2.foo; ->r5 : string ->d2.foo : string ->d2 : D2 ->foo : string +>r5 : string, Symbol(r5, Decl(classExtendingClass.ts, 27, 3)) +>d2.foo : string, Symbol(C2.foo, Decl(classExtendingClass.ts, 16, 13)) +>d2 : D2, Symbol(d2, Decl(classExtendingClass.ts, 26, 3)) +>foo : string, Symbol(C2.foo, Decl(classExtendingClass.ts, 16, 13)) var r6 = d2.bar; ->r6 : string ->d2.bar : string ->d2 : D2 ->bar : string +>r6 : string, Symbol(r6, Decl(classExtendingClass.ts, 28, 3)) +>d2.bar : string, Symbol(D2.bar, Decl(classExtendingClass.ts, 22, 27)) +>d2 : D2, Symbol(d2, Decl(classExtendingClass.ts, 26, 3)) +>bar : string, Symbol(D2.bar, Decl(classExtendingClass.ts, 22, 27)) var r7 = d2.thing(''); ->r7 : void +>r7 : void, Symbol(r7, Decl(classExtendingClass.ts, 29, 3)) >d2.thing('') : void ->d2.thing : (x: string) => void ->d2 : D2 ->thing : (x: string) => void +>d2.thing : (x: string) => void, Symbol(C2.thing, Decl(classExtendingClass.ts, 17, 11)) +>d2 : D2, Symbol(d2, Decl(classExtendingClass.ts, 26, 3)) +>thing : (x: string) => void, Symbol(C2.thing, Decl(classExtendingClass.ts, 17, 11)) +>'' : string var r8 = D2.other(1); ->r8 : void +>r8 : void, Symbol(r8, Decl(classExtendingClass.ts, 30, 3)) >D2.other(1) : void ->D2.other : (x: T) => void ->D2 : typeof D2 ->other : (x: T) => void +>D2.other : (x: T) => void, Symbol(C2.other, Decl(classExtendingClass.ts, 18, 19)) +>D2 : typeof D2, Symbol(D2, Decl(classExtendingClass.ts, 20, 1)) +>other : (x: T) => void, Symbol(C2.other, Decl(classExtendingClass.ts, 18, 19)) +>1 : number diff --git a/tests/baselines/reference/classExtendingQualifiedName2.types b/tests/baselines/reference/classExtendingQualifiedName2.types index ba96058d9b2..e030aa1c5da 100644 --- a/tests/baselines/reference/classExtendingQualifiedName2.types +++ b/tests/baselines/reference/classExtendingQualifiedName2.types @@ -1,14 +1,15 @@ === tests/cases/compiler/classExtendingQualifiedName2.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(classExtendingQualifiedName2.ts, 0, 0)) export class C { ->C : C +>C : C, Symbol(C, Decl(classExtendingQualifiedName2.ts, 0, 10)) } class D extends M.C { ->D : D ->M : typeof M ->C : C +>D : D, Symbol(D, Decl(classExtendingQualifiedName2.ts, 2, 5)) +>M.C : any, Symbol(C, Decl(classExtendingQualifiedName2.ts, 0, 10)) +>M : typeof M, Symbol(M, Decl(classExtendingQualifiedName2.ts, 0, 0)) +>C : C, Symbol(C, Decl(classExtendingQualifiedName2.ts, 0, 10)) } } diff --git a/tests/baselines/reference/classImplementingInterfaceIndexer.types b/tests/baselines/reference/classImplementingInterfaceIndexer.types index 58e2eb29091..ace7e67d2e6 100644 --- a/tests/baselines/reference/classImplementingInterfaceIndexer.types +++ b/tests/baselines/reference/classImplementingInterfaceIndexer.types @@ -1,16 +1,16 @@ === tests/cases/compiler/classImplementingInterfaceIndexer.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(classImplementingInterfaceIndexer.ts, 0, 0)) [index: string]: { prop } ->index : string ->prop : any +>index : string, Symbol(index, Decl(classImplementingInterfaceIndexer.ts, 1, 5)) +>prop : any, Symbol(prop, Decl(classImplementingInterfaceIndexer.ts, 1, 22)) } class A implements I { ->A : A ->I : I +>A : A, Symbol(A, Decl(classImplementingInterfaceIndexer.ts, 2, 1)) +>I : I, Symbol(I, Decl(classImplementingInterfaceIndexer.ts, 0, 0)) [index: string]: { prop } ->index : string ->prop : any +>index : string, Symbol(index, Decl(classImplementingInterfaceIndexer.ts, 4, 5)) +>prop : any, Symbol(prop, Decl(classImplementingInterfaceIndexer.ts, 4, 22)) } diff --git a/tests/baselines/reference/classImplementsClass1.types b/tests/baselines/reference/classImplementsClass1.types index c9485a6b904..f806cd899c1 100644 --- a/tests/baselines/reference/classImplementsClass1.types +++ b/tests/baselines/reference/classImplementsClass1.types @@ -1,8 +1,8 @@ === tests/cases/compiler/classImplementsClass1.ts === class A { } ->A : A +>A : A, Symbol(A, Decl(classImplementsClass1.ts, 0, 0)) class C implements A { } ->C : C ->A : A +>C : C, Symbol(C, Decl(classImplementsClass1.ts, 0, 11)) +>A : A, Symbol(A, Decl(classImplementsClass1.ts, 0, 0)) diff --git a/tests/baselines/reference/classImplementsClass3.types b/tests/baselines/reference/classImplementsClass3.types index 182ac535966..9115f49d44b 100644 --- a/tests/baselines/reference/classImplementsClass3.types +++ b/tests/baselines/reference/classImplementsClass3.types @@ -1,39 +1,41 @@ === tests/cases/compiler/classImplementsClass3.ts === class A { foo(): number { return 1; } } ->A : A ->foo : () => number +>A : A, Symbol(A, Decl(classImplementsClass3.ts, 0, 0)) +>foo : () => number, Symbol(foo, Decl(classImplementsClass3.ts, 0, 9)) +>1 : number class C implements A { ->C : C ->A : A +>C : C, Symbol(C, Decl(classImplementsClass3.ts, 0, 39)) +>A : A, Symbol(A, Decl(classImplementsClass3.ts, 0, 0)) foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(classImplementsClass3.ts, 1, 22)) return 1; +>1 : number } } class C2 extends A {} ->C2 : C2 ->A : A +>C2 : C2, Symbol(C2, Decl(classImplementsClass3.ts, 5, 1)) +>A : A, Symbol(A, Decl(classImplementsClass3.ts, 0, 0)) // no errors var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(classImplementsClass3.ts, 10, 3)) +>C : C, Symbol(C, Decl(classImplementsClass3.ts, 0, 39)) var c2: C2; ->c2 : C2 ->C2 : C2 +>c2 : C2, Symbol(c2, Decl(classImplementsClass3.ts, 11, 3)) +>C2 : C2, Symbol(C2, Decl(classImplementsClass3.ts, 5, 1)) c = c2; >c = c2 : C2 ->c : C ->c2 : C2 +>c : C, Symbol(c, Decl(classImplementsClass3.ts, 10, 3)) +>c2 : C2, Symbol(c2, Decl(classImplementsClass3.ts, 11, 3)) c2 = c; >c2 = c : C ->c2 : C2 ->c : C +>c2 : C2, Symbol(c2, Decl(classImplementsClass3.ts, 11, 3)) +>c : C, Symbol(c, Decl(classImplementsClass3.ts, 10, 3)) diff --git a/tests/baselines/reference/classImplementsImportedInterface.types b/tests/baselines/reference/classImplementsImportedInterface.types index 74b0e81eb60..5c4a9833b63 100644 --- a/tests/baselines/reference/classImplementsImportedInterface.types +++ b/tests/baselines/reference/classImplementsImportedInterface.types @@ -1,28 +1,28 @@ === tests/cases/compiler/classImplementsImportedInterface.ts === module M1 { ->M1 : unknown +>M1 : any, Symbol(M1, Decl(classImplementsImportedInterface.ts, 0, 0)) export interface I { ->I : I +>I : I, Symbol(I, Decl(classImplementsImportedInterface.ts, 0, 11)) foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(classImplementsImportedInterface.ts, 1, 24)) } } module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(classImplementsImportedInterface.ts, 4, 1)) import T = M1.I; ->T : unknown ->M1 : unknown ->I : T +>T : any, Symbol(T, Decl(classImplementsImportedInterface.ts, 6, 11)) +>M1 : any, Symbol(M1, Decl(classImplementsImportedInterface.ts, 0, 0)) +>I : T, Symbol(T, Decl(classImplementsImportedInterface.ts, 0, 11)) class C implements T { ->C : C ->T : T +>C : C, Symbol(C, Decl(classImplementsImportedInterface.ts, 7, 20)) +>T : T, Symbol(T, Decl(classImplementsImportedInterface.ts, 6, 11)) foo() {} ->foo : () => void +>foo : () => void, Symbol(foo, Decl(classImplementsImportedInterface.ts, 8, 26)) } } diff --git a/tests/baselines/reference/classIndexer.types b/tests/baselines/reference/classIndexer.types index 01eda961112..2804f729c5c 100644 --- a/tests/baselines/reference/classIndexer.types +++ b/tests/baselines/reference/classIndexer.types @@ -1,9 +1,9 @@ === tests/cases/compiler/classIndexer.ts === class C123 { ->C123 : C123 +>C123 : C123, Symbol(C123, Decl(classIndexer.ts, 0, 0)) [s: string]: number; ->s : string +>s : string, Symbol(s, Decl(classIndexer.ts, 1, 5)) constructor() { } diff --git a/tests/baselines/reference/classMemberInitializerWithLamdaScoping5.types b/tests/baselines/reference/classMemberInitializerWithLamdaScoping5.types index bff966e605f..96826e8c0cc 100644 --- a/tests/baselines/reference/classMemberInitializerWithLamdaScoping5.types +++ b/tests/baselines/reference/classMemberInitializerWithLamdaScoping5.types @@ -1,30 +1,30 @@ === tests/cases/compiler/classMemberInitializerWithLamdaScoping5.ts === declare var console: { ->console : { log(message?: any, ...optionalParams: any[]): void; } +>console : { log(message?: any, ...optionalParams: any[]): void; }, Symbol(console, Decl(classMemberInitializerWithLamdaScoping5.ts, 0, 11)) log(message?: any, ...optionalParams: any[]): void; ->log : (message?: any, ...optionalParams: any[]) => void ->message : any ->optionalParams : any[] +>log : (message?: any, ...optionalParams: any[]) => void, Symbol(log, Decl(classMemberInitializerWithLamdaScoping5.ts, 0, 22)) +>message : any, Symbol(message, Decl(classMemberInitializerWithLamdaScoping5.ts, 1, 8)) +>optionalParams : any[], Symbol(optionalParams, Decl(classMemberInitializerWithLamdaScoping5.ts, 1, 22)) }; class Greeter { ->Greeter : Greeter +>Greeter : Greeter, Symbol(Greeter, Decl(classMemberInitializerWithLamdaScoping5.ts, 2, 2)) constructor(message: string) { ->message : string +>message : string, Symbol(message, Decl(classMemberInitializerWithLamdaScoping5.ts, 4, 16)) } messageHandler = (message: string) => { ->messageHandler : (message: string) => void +>messageHandler : (message: string) => void, Symbol(messageHandler, Decl(classMemberInitializerWithLamdaScoping5.ts, 5, 5)) >(message: string) => { console.log(message); // This shouldnt be error } : (message: string) => void ->message : string +>message : string, Symbol(message, Decl(classMemberInitializerWithLamdaScoping5.ts, 7, 22)) console.log(message); // This shouldnt be error >console.log(message) : void ->console.log : (message?: any, ...optionalParams: any[]) => void ->console : { log(message?: any, ...optionalParams: any[]): void; } ->log : (message?: any, ...optionalParams: any[]) => void ->message : string +>console.log : (message?: any, ...optionalParams: any[]) => void, Symbol(log, Decl(classMemberInitializerWithLamdaScoping5.ts, 0, 22)) +>console : { log(message?: any, ...optionalParams: any[]): void; }, Symbol(console, Decl(classMemberInitializerWithLamdaScoping5.ts, 0, 11)) +>log : (message?: any, ...optionalParams: any[]) => void, Symbol(log, Decl(classMemberInitializerWithLamdaScoping5.ts, 0, 22)) +>message : string, Symbol(message, Decl(classMemberInitializerWithLamdaScoping5.ts, 7, 22)) } } diff --git a/tests/baselines/reference/classMethodWithKeywordName1.types b/tests/baselines/reference/classMethodWithKeywordName1.types index 8ad128bdb00..dadd62c4552 100644 --- a/tests/baselines/reference/classMethodWithKeywordName1.types +++ b/tests/baselines/reference/classMethodWithKeywordName1.types @@ -1,7 +1,7 @@ === tests/cases/compiler/classMethodWithKeywordName1.ts === class C { ->C : C +>C : C, Symbol(C, Decl(classMethodWithKeywordName1.ts, 0, 0)) static try() {} ->try : () => void +>try : () => void, Symbol(C.try, Decl(classMethodWithKeywordName1.ts, 0, 9)) } diff --git a/tests/baselines/reference/classOrder1.types b/tests/baselines/reference/classOrder1.types index 7019e53cbb7..c5997c36891 100644 --- a/tests/baselines/reference/classOrder1.types +++ b/tests/baselines/reference/classOrder1.types @@ -1,24 +1,24 @@ === tests/cases/compiler/classOrder1.ts === class A { ->A : A +>A : A, Symbol(A, Decl(classOrder1.ts, 0, 0)) public foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(classOrder1.ts, 0, 9)) /*WScript.Echo("Here!");*/ } } var a = new A(); ->a : A +>a : A, Symbol(a, Decl(classOrder1.ts, 6, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(classOrder1.ts, 0, 0)) a.foo(); >a.foo() : void ->a.foo : () => void ->a : A ->foo : () => void +>a.foo : () => void, Symbol(A.foo, Decl(classOrder1.ts, 0, 9)) +>a : A, Symbol(a, Decl(classOrder1.ts, 6, 3)) +>foo : () => void, Symbol(A.foo, Decl(classOrder1.ts, 0, 9)) diff --git a/tests/baselines/reference/classOrder2.types b/tests/baselines/reference/classOrder2.types index 07bd6ba45a5..8b17e63467f 100644 --- a/tests/baselines/reference/classOrder2.types +++ b/tests/baselines/reference/classOrder2.types @@ -1,36 +1,36 @@ === tests/cases/compiler/classOrder2.ts === class A extends B { ->A : A ->B : B +>A : A, Symbol(A, Decl(classOrder2.ts, 0, 0)) +>B : B, Symbol(B, Decl(classOrder2.ts, 5, 1)) foo() { this.bar(); } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(classOrder2.ts, 1, 19)) >this.bar() : void ->this.bar : () => void ->this : A ->bar : () => void +>this.bar : () => void, Symbol(B.bar, Decl(classOrder2.ts, 7, 9)) +>this : A, Symbol(A, Decl(classOrder2.ts, 0, 0)) +>bar : () => void, Symbol(B.bar, Decl(classOrder2.ts, 7, 9)) } class B { ->B : B +>B : B, Symbol(B, Decl(classOrder2.ts, 5, 1)) bar() { } ->bar : () => void +>bar : () => void, Symbol(bar, Decl(classOrder2.ts, 7, 9)) } var a = new A(); ->a : A +>a : A, Symbol(a, Decl(classOrder2.ts, 14, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(classOrder2.ts, 0, 0)) a.foo(); >a.foo() : void ->a.foo : () => void ->a : A ->foo : () => void +>a.foo : () => void, Symbol(A.foo, Decl(classOrder2.ts, 1, 19)) +>a : A, Symbol(a, Decl(classOrder2.ts, 14, 3)) +>foo : () => void, Symbol(A.foo, Decl(classOrder2.ts, 1, 19)) diff --git a/tests/baselines/reference/classOrderBug.types b/tests/baselines/reference/classOrderBug.types index 979b65b8008..f82534cde79 100644 --- a/tests/baselines/reference/classOrderBug.types +++ b/tests/baselines/reference/classOrderBug.types @@ -1,31 +1,31 @@ === tests/cases/compiler/classOrderBug.ts === class bar { ->bar : bar +>bar : bar, Symbol(bar, Decl(classOrderBug.ts, 0, 0)) public baz: foo; ->baz : foo ->foo : foo +>baz : foo, Symbol(baz, Decl(classOrderBug.ts, 0, 11)) +>foo : foo, Symbol(foo, Decl(classOrderBug.ts, 10, 12)) constructor() { this.baz = new foo(); >this.baz = new foo() : foo ->this.baz : foo ->this : bar ->baz : foo +>this.baz : foo, Symbol(baz, Decl(classOrderBug.ts, 0, 11)) +>this : bar, Symbol(bar, Decl(classOrderBug.ts, 0, 0)) +>baz : foo, Symbol(baz, Decl(classOrderBug.ts, 0, 11)) >new foo() : foo ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(classOrderBug.ts, 10, 12)) } } class baz {} ->baz : baz +>baz : baz, Symbol(baz, Decl(classOrderBug.ts, 8, 1)) class foo extends baz {} ->foo : foo ->baz : baz +>foo : foo, Symbol(foo, Decl(classOrderBug.ts, 10, 12)) +>baz : baz, Symbol(baz, Decl(classOrderBug.ts, 8, 1)) diff --git a/tests/baselines/reference/classSideInheritance2.types b/tests/baselines/reference/classSideInheritance2.types index 9c2d632ebbb..f0557c0b6eb 100644 --- a/tests/baselines/reference/classSideInheritance2.types +++ b/tests/baselines/reference/classSideInheritance2.types @@ -1,47 +1,47 @@ === tests/cases/compiler/classSideInheritance2.ts === interface IText { ->IText : IText +>IText : IText, Symbol(IText, Decl(classSideInheritance2.ts, 0, 0)) foo: number; ->foo : number +>foo : number, Symbol(foo, Decl(classSideInheritance2.ts, 0, 17)) } interface TextSpan {} ->TextSpan : TextSpan +>TextSpan : TextSpan, Symbol(TextSpan, Decl(classSideInheritance2.ts, 2, 1)) class SubText extends TextBase { ->SubText : SubText ->TextBase : TextBase +>SubText : SubText, Symbol(SubText, Decl(classSideInheritance2.ts, 4, 21)) +>TextBase : TextBase, Symbol(TextBase, Decl(classSideInheritance2.ts, 11, 1)) constructor(text: IText, span: TextSpan) { ->text : IText ->IText : IText ->span : TextSpan ->TextSpan : TextSpan +>text : IText, Symbol(text, Decl(classSideInheritance2.ts, 8, 20)) +>IText : IText, Symbol(IText, Decl(classSideInheritance2.ts, 0, 0)) +>span : TextSpan, Symbol(span, Decl(classSideInheritance2.ts, 8, 32)) +>TextSpan : TextSpan, Symbol(TextSpan, Decl(classSideInheritance2.ts, 2, 1)) super(); >super() : void ->super : typeof TextBase +>super : typeof TextBase, Symbol(TextBase, Decl(classSideInheritance2.ts, 11, 1)) } } class TextBase implements IText { ->TextBase : TextBase ->IText : IText +>TextBase : TextBase, Symbol(TextBase, Decl(classSideInheritance2.ts, 11, 1)) +>IText : IText, Symbol(IText, Decl(classSideInheritance2.ts, 0, 0)) public foo: number; ->foo : number +>foo : number, Symbol(foo, Decl(classSideInheritance2.ts, 13, 33)) public subText(span: TextSpan): IText { ->subText : (span: TextSpan) => IText ->span : TextSpan ->TextSpan : TextSpan ->IText : IText +>subText : (span: TextSpan) => IText, Symbol(subText, Decl(classSideInheritance2.ts, 14, 27)) +>span : TextSpan, Symbol(span, Decl(classSideInheritance2.ts, 15, 23)) +>TextSpan : TextSpan, Symbol(TextSpan, Decl(classSideInheritance2.ts, 2, 1)) +>IText : IText, Symbol(IText, Decl(classSideInheritance2.ts, 0, 0)) return new SubText(this, span); >new SubText(this, span) : SubText ->SubText : typeof SubText ->this : TextBase ->span : TextSpan +>SubText : typeof SubText, Symbol(SubText, Decl(classSideInheritance2.ts, 4, 21)) +>this : TextBase, Symbol(TextBase, Decl(classSideInheritance2.ts, 11, 1)) +>span : TextSpan, Symbol(span, Decl(classSideInheritance2.ts, 15, 23)) } } diff --git a/tests/baselines/reference/classUpdateTests.errors.txt b/tests/baselines/reference/classUpdateTests.errors.txt index 5d5c4a36ab3..e7f34fec546 100644 --- a/tests/baselines/reference/classUpdateTests.errors.txt +++ b/tests/baselines/reference/classUpdateTests.errors.txt @@ -13,12 +13,14 @@ tests/cases/compiler/classUpdateTests.ts(95,1): error TS1128: Declaration or sta tests/cases/compiler/classUpdateTests.ts(99,3): error TS1129: Statement expected. tests/cases/compiler/classUpdateTests.ts(101,1): error TS1128: Declaration or statement expected. tests/cases/compiler/classUpdateTests.ts(105,3): error TS1129: Statement expected. -tests/cases/compiler/classUpdateTests.ts(105,15): error TS2339: Property 'p1' does not exist on type 'Q'. +tests/cases/compiler/classUpdateTests.ts(105,14): error TS1005: ';' expected. +tests/cases/compiler/classUpdateTests.ts(107,1): error TS1128: Declaration or statement expected. tests/cases/compiler/classUpdateTests.ts(111,3): error TS1129: Statement expected. -tests/cases/compiler/classUpdateTests.ts(111,16): error TS2339: Property 'p1' does not exist on type 'R'. +tests/cases/compiler/classUpdateTests.ts(111,15): error TS1005: ';' expected. +tests/cases/compiler/classUpdateTests.ts(113,1): error TS1128: Declaration or statement expected. -==== tests/cases/compiler/classUpdateTests.ts (16 errors) ==== +==== tests/cases/compiler/classUpdateTests.ts (18 errors) ==== // // test codegen for instance properties // @@ -158,17 +160,21 @@ tests/cases/compiler/classUpdateTests.ts(111,16): error TS2339: Property 'p1' do public this.p1 = 0; // ERROR ~~~~~~ !!! error TS1129: Statement expected. - ~~ -!!! error TS2339: Property 'p1' does not exist on type 'Q'. + ~ +!!! error TS1005: ';' expected. } } + ~ +!!! error TS1128: Declaration or statement expected. class R { constructor() { private this.p1 = 0; // ERROR ~~~~~~~ !!! error TS1129: Statement expected. - ~~ -!!! error TS2339: Property 'p1' does not exist on type 'R'. + ~ +!!! error TS1005: ';' expected. } - } \ No newline at end of file + } + ~ +!!! error TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/tests/baselines/reference/classWithEmptyBody.types b/tests/baselines/reference/classWithEmptyBody.types index ccf3c8556e0..6fe8ed08585 100644 --- a/tests/baselines/reference/classWithEmptyBody.types +++ b/tests/baselines/reference/classWithEmptyBody.types @@ -1,59 +1,64 @@ === tests/cases/conformance/classes/classDeclarations/classBody/classWithEmptyBody.ts === class C { ->C : C +>C : C, Symbol(C, Decl(classWithEmptyBody.ts, 0, 0)) } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(classWithEmptyBody.ts, 3, 3)) +>C : C, Symbol(C, Decl(classWithEmptyBody.ts, 0, 0)) var o: {} = c; ->o : {} ->c : C +>o : {}, Symbol(o, Decl(classWithEmptyBody.ts, 4, 3), Decl(classWithEmptyBody.ts, 16, 3)) +>c : C, Symbol(c, Decl(classWithEmptyBody.ts, 3, 3)) c = 1; >c = 1 : number ->c : C +>c : C, Symbol(c, Decl(classWithEmptyBody.ts, 3, 3)) +>1 : number c = { foo: '' } >c = { foo: '' } : { foo: string; } ->c : C +>c : C, Symbol(c, Decl(classWithEmptyBody.ts, 3, 3)) >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(classWithEmptyBody.ts, 6, 5)) +>'' : string c = () => { } >c = () => { } : () => void ->c : C +>c : C, Symbol(c, Decl(classWithEmptyBody.ts, 3, 3)) >() => { } : () => void class D { ->D : D +>D : D, Symbol(D, Decl(classWithEmptyBody.ts, 7, 13)) constructor() { return 1; +>1 : number } } var d: D; ->d : D ->D : D +>d : D, Symbol(d, Decl(classWithEmptyBody.ts, 15, 3)) +>D : D, Symbol(D, Decl(classWithEmptyBody.ts, 7, 13)) var o: {} = d; ->o : {} ->d : D +>o : {}, Symbol(o, Decl(classWithEmptyBody.ts, 4, 3), Decl(classWithEmptyBody.ts, 16, 3)) +>d : D, Symbol(d, Decl(classWithEmptyBody.ts, 15, 3)) d = 1; >d = 1 : number ->d : D +>d : D, Symbol(d, Decl(classWithEmptyBody.ts, 15, 3)) +>1 : number d = { foo: '' } >d = { foo: '' } : { foo: string; } ->d : D +>d : D, Symbol(d, Decl(classWithEmptyBody.ts, 15, 3)) >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(classWithEmptyBody.ts, 18, 5)) +>'' : string d = () => { } >d = () => { } : () => void ->d : D +>d : D, Symbol(d, Decl(classWithEmptyBody.ts, 15, 3)) >() => { } : () => void diff --git a/tests/baselines/reference/classWithNoConstructorOrBaseClass.types b/tests/baselines/reference/classWithNoConstructorOrBaseClass.types index 9df56f81bb1..3b94db240e1 100644 --- a/tests/baselines/reference/classWithNoConstructorOrBaseClass.types +++ b/tests/baselines/reference/classWithNoConstructorOrBaseClass.types @@ -1,45 +1,45 @@ === tests/cases/conformance/classes/members/constructorFunctionTypes/classWithNoConstructorOrBaseClass.ts === class C { ->C : C +>C : C, Symbol(C, Decl(classWithNoConstructorOrBaseClass.ts, 0, 0)) x: string; ->x : string +>x : string, Symbol(x, Decl(classWithNoConstructorOrBaseClass.ts, 0, 9)) } var c = new C(); ->c : C +>c : C, Symbol(c, Decl(classWithNoConstructorOrBaseClass.ts, 4, 3)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(classWithNoConstructorOrBaseClass.ts, 0, 0)) var r = C; ->r : typeof C ->C : typeof C +>r : typeof C, Symbol(r, Decl(classWithNoConstructorOrBaseClass.ts, 5, 3)) +>C : typeof C, Symbol(C, Decl(classWithNoConstructorOrBaseClass.ts, 0, 0)) class D { ->D : D ->T : T ->U : U +>D : D, Symbol(D, Decl(classWithNoConstructorOrBaseClass.ts, 5, 10)) +>T : T, Symbol(T, Decl(classWithNoConstructorOrBaseClass.ts, 7, 8)) +>U : U, Symbol(U, Decl(classWithNoConstructorOrBaseClass.ts, 7, 10)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(classWithNoConstructorOrBaseClass.ts, 7, 14)) +>T : T, Symbol(T, Decl(classWithNoConstructorOrBaseClass.ts, 7, 8)) y: U; ->y : U ->U : U +>y : U, Symbol(y, Decl(classWithNoConstructorOrBaseClass.ts, 8, 9)) +>U : U, Symbol(U, Decl(classWithNoConstructorOrBaseClass.ts, 7, 10)) } var d = new D(); ->d : D<{}, {}> +>d : D<{}, {}>, Symbol(d, Decl(classWithNoConstructorOrBaseClass.ts, 12, 3)) >new D() : D<{}, {}> ->D : typeof D +>D : typeof D, Symbol(D, Decl(classWithNoConstructorOrBaseClass.ts, 5, 10)) var d2 = new D(); ->d2 : D +>d2 : D, Symbol(d2, Decl(classWithNoConstructorOrBaseClass.ts, 13, 3)) >new D() : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(classWithNoConstructorOrBaseClass.ts, 5, 10)) var r2 = D; ->r2 : typeof D ->D : typeof D +>r2 : typeof D, Symbol(r2, Decl(classWithNoConstructorOrBaseClass.ts, 14, 3)) +>D : typeof D, Symbol(D, Decl(classWithNoConstructorOrBaseClass.ts, 5, 10)) diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.types b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.types index 9f6d031bf20..841def4120c 100644 --- a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.types +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.types @@ -2,72 +2,74 @@ // no errors expected class C { ->C : C +>C : C, Symbol(C, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 0, 0)) public x: string; ->x : string +>x : string, Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 2, 9)) public y(a: number): number { return null; } ->y : (a: number) => number ->a : number +>y : (a: number) => number, Symbol(y, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 3, 21)) +>a : number, Symbol(a, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 4, 13)) +>null : null public get z() { return 1; } ->z : number +>z : number, Symbol(z, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 4, 48), Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 5, 32)) +>1 : number public set z(v) { } ->z : number ->v : number +>z : number, Symbol(z, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 4, 48), Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 5, 32)) +>v : number, Symbol(v, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 6, 17)) [x: string]: Object; ->x : string ->Object : Object +>x : string, Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 7, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) [x: number]: Object; ->x : number ->Object : Object +>x : number, Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 8, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) 0: number; } interface I { ->I : I +>I : I, Symbol(I, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 10, 1)) x: string; ->x : string +>x : string, Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 12, 13)) y(b: number): number; ->y : (b: number) => number ->b : number +>y : (b: number) => number, Symbol(y, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 13, 14)) +>b : number, Symbol(b, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 14, 6)) z: number; ->z : number +>z : number, Symbol(z, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 14, 25)) [x: string]: Object; ->x : string ->Object : Object +>x : string, Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 16, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) [x: number]: Object; ->x : number ->Object : Object +>x : number, Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 17, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) 0: number; } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 21, 3)) +>C : C, Symbol(C, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 0, 0)) var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 22, 3)) +>I : I, Symbol(I, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 10, 1)) c = i; >c = i : I ->c : C ->i : I +>c : C, Symbol(c, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 21, 3)) +>i : I, Symbol(i, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 22, 3)) i = c; >i = c : C ->i : I ->c : C +>i : I, Symbol(i, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 22, 3)) +>c : C, Symbol(c, Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 21, 3)) diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.types b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.types index be504f895fd..7de512b3549 100644 --- a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.types +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.types @@ -2,75 +2,77 @@ // no errors expected class C { ->C : C +>C : C, Symbol(C, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 0, 0)) public x: string; ->x : string +>x : string, Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 2, 9)) public y(a: number): number { return null; } ->y : (a: number) => number ->a : number +>y : (a: number) => number, Symbol(y, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 3, 21)) +>a : number, Symbol(a, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 4, 13)) +>null : null public get z() { return 1; } ->z : number +>z : number, Symbol(z, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 4, 48), Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 5, 32)) +>1 : number public set z(v) { } ->z : number ->v : number +>z : number, Symbol(z, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 4, 48), Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 5, 32)) +>v : number, Symbol(v, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 6, 17)) [x: string]: Object; ->x : string ->Object : Object +>x : string, Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 7, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) [x: number]: Object; ->x : number ->Object : Object +>x : number, Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 8, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) 0: number; public static foo: string; // doesn't effect equivalence ->foo : string +>foo : string, Symbol(C.foo, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 9, 14)) } interface I { ->I : I +>I : I, Symbol(I, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 12, 1)) x: string; ->x : string +>x : string, Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 14, 13)) y(b: number): number; ->y : (b: number) => number ->b : number +>y : (b: number) => number, Symbol(y, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 15, 14)) +>b : number, Symbol(b, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 16, 6)) z: number; ->z : number +>z : number, Symbol(z, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 16, 25)) [x: string]: Object; ->x : string ->Object : Object +>x : string, Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 18, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) [x: number]: Object; ->x : number ->Object : Object +>x : number, Symbol(x, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 19, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) 0: number; } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 23, 3)) +>C : C, Symbol(C, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 0, 0)) var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 24, 3)) +>I : I, Symbol(I, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 12, 1)) c = i; >c = i : I ->c : C ->i : I +>c : C, Symbol(c, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 23, 3)) +>i : I, Symbol(i, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 24, 3)) i = c; >i = c : C ->i : I ->c : C +>i : I, Symbol(i, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 24, 3)) +>c : C, Symbol(c, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 23, 3)) diff --git a/tests/baselines/reference/classWithProtectedProperty.types b/tests/baselines/reference/classWithProtectedProperty.types index a091206cde0..d2c469dfa2b 100644 --- a/tests/baselines/reference/classWithProtectedProperty.types +++ b/tests/baselines/reference/classWithProtectedProperty.types @@ -2,98 +2,104 @@ // accessing any protected outside the class is an error class C { ->C : C +>C : C, Symbol(C, Decl(classWithProtectedProperty.ts, 0, 0)) protected x; ->x : any +>x : any, Symbol(x, Decl(classWithProtectedProperty.ts, 2, 9)) protected a = ''; ->a : string +>a : string, Symbol(a, Decl(classWithProtectedProperty.ts, 3, 16)) +>'' : string protected b: string = ''; ->b : string +>b : string, Symbol(b, Decl(classWithProtectedProperty.ts, 4, 21)) +>'' : string protected c() { return '' } ->c : () => string +>c : () => string, Symbol(c, Decl(classWithProtectedProperty.ts, 5, 29)) +>'' : string protected d = () => ''; ->d : () => string +>d : () => string, Symbol(d, Decl(classWithProtectedProperty.ts, 6, 31)) >() => '' : () => string +>'' : string protected static e; ->e : any +>e : any, Symbol(C.e, Decl(classWithProtectedProperty.ts, 7, 27)) protected static f() { return '' } ->f : () => string +>f : () => string, Symbol(C.f, Decl(classWithProtectedProperty.ts, 8, 23)) +>'' : string protected static g = () => ''; ->g : () => string +>g : () => string, Symbol(C.g, Decl(classWithProtectedProperty.ts, 9, 38)) >() => '' : () => string +>'' : string } class D extends C { ->D : D ->C : C +>D : D, Symbol(D, Decl(classWithProtectedProperty.ts, 11, 1)) +>C : C, Symbol(C, Decl(classWithProtectedProperty.ts, 0, 0)) method() { ->method : () => void +>method : () => void, Symbol(method, Decl(classWithProtectedProperty.ts, 13, 19)) // No errors var d = new D(); ->d : D +>d : D, Symbol(d, Decl(classWithProtectedProperty.ts, 16, 11)) >new D() : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(classWithProtectedProperty.ts, 11, 1)) var r1: string = d.x; ->r1 : string ->d.x : any ->d : D ->x : any +>r1 : string, Symbol(r1, Decl(classWithProtectedProperty.ts, 17, 11)) +>d.x : any, Symbol(C.x, Decl(classWithProtectedProperty.ts, 2, 9)) +>d : D, Symbol(d, Decl(classWithProtectedProperty.ts, 16, 11)) +>x : any, Symbol(C.x, Decl(classWithProtectedProperty.ts, 2, 9)) var r2: string = d.a; ->r2 : string ->d.a : string ->d : D ->a : string +>r2 : string, Symbol(r2, Decl(classWithProtectedProperty.ts, 18, 11)) +>d.a : string, Symbol(C.a, Decl(classWithProtectedProperty.ts, 3, 16)) +>d : D, Symbol(d, Decl(classWithProtectedProperty.ts, 16, 11)) +>a : string, Symbol(C.a, Decl(classWithProtectedProperty.ts, 3, 16)) var r3: string = d.b; ->r3 : string ->d.b : string ->d : D ->b : string +>r3 : string, Symbol(r3, Decl(classWithProtectedProperty.ts, 19, 11)) +>d.b : string, Symbol(C.b, Decl(classWithProtectedProperty.ts, 4, 21)) +>d : D, Symbol(d, Decl(classWithProtectedProperty.ts, 16, 11)) +>b : string, Symbol(C.b, Decl(classWithProtectedProperty.ts, 4, 21)) var r4: string = d.c(); ->r4 : string +>r4 : string, Symbol(r4, Decl(classWithProtectedProperty.ts, 20, 11)) >d.c() : string ->d.c : () => string ->d : D ->c : () => string +>d.c : () => string, Symbol(C.c, Decl(classWithProtectedProperty.ts, 5, 29)) +>d : D, Symbol(d, Decl(classWithProtectedProperty.ts, 16, 11)) +>c : () => string, Symbol(C.c, Decl(classWithProtectedProperty.ts, 5, 29)) var r5: string = d.d(); ->r5 : string +>r5 : string, Symbol(r5, Decl(classWithProtectedProperty.ts, 21, 11)) >d.d() : string ->d.d : () => string ->d : D ->d : () => string +>d.d : () => string, Symbol(C.d, Decl(classWithProtectedProperty.ts, 6, 31)) +>d : D, Symbol(d, Decl(classWithProtectedProperty.ts, 16, 11)) +>d : () => string, Symbol(C.d, Decl(classWithProtectedProperty.ts, 6, 31)) var r6: string = C.e; ->r6 : string ->C.e : any ->C : typeof C ->e : any +>r6 : string, Symbol(r6, Decl(classWithProtectedProperty.ts, 22, 11)) +>C.e : any, Symbol(C.e, Decl(classWithProtectedProperty.ts, 7, 27)) +>C : typeof C, Symbol(C, Decl(classWithProtectedProperty.ts, 0, 0)) +>e : any, Symbol(C.e, Decl(classWithProtectedProperty.ts, 7, 27)) var r7: string = C.f(); ->r7 : string +>r7 : string, Symbol(r7, Decl(classWithProtectedProperty.ts, 23, 11)) >C.f() : string ->C.f : () => string ->C : typeof C ->f : () => string +>C.f : () => string, Symbol(C.f, Decl(classWithProtectedProperty.ts, 8, 23)) +>C : typeof C, Symbol(C, Decl(classWithProtectedProperty.ts, 0, 0)) +>f : () => string, Symbol(C.f, Decl(classWithProtectedProperty.ts, 8, 23)) var r8: string = C.g(); ->r8 : string +>r8 : string, Symbol(r8, Decl(classWithProtectedProperty.ts, 24, 11)) >C.g() : string ->C.g : () => string ->C : typeof C ->g : () => string +>C.g : () => string, Symbol(C.g, Decl(classWithProtectedProperty.ts, 9, 38)) +>C : typeof C, Symbol(C, Decl(classWithProtectedProperty.ts, 0, 0)) +>g : () => string, Symbol(C.g, Decl(classWithProtectedProperty.ts, 9, 38)) } } diff --git a/tests/baselines/reference/classWithPublicProperty.types b/tests/baselines/reference/classWithPublicProperty.types index a5bdeb95f1a..5a033a3a81c 100644 --- a/tests/baselines/reference/classWithPublicProperty.types +++ b/tests/baselines/reference/classWithPublicProperty.types @@ -1,89 +1,95 @@ === tests/cases/conformance/types/members/classWithPublicProperty.ts === class C { ->C : C +>C : C, Symbol(C, Decl(classWithPublicProperty.ts, 0, 0)) public x; ->x : any +>x : any, Symbol(x, Decl(classWithPublicProperty.ts, 0, 9)) public a = ''; ->a : string +>a : string, Symbol(a, Decl(classWithPublicProperty.ts, 1, 13)) +>'' : string public b: string = ''; ->b : string +>b : string, Symbol(b, Decl(classWithPublicProperty.ts, 2, 18)) +>'' : string public c() { return '' } ->c : () => string +>c : () => string, Symbol(c, Decl(classWithPublicProperty.ts, 3, 26)) +>'' : string public d = () => ''; ->d : () => string +>d : () => string, Symbol(d, Decl(classWithPublicProperty.ts, 4, 28)) >() => '' : () => string +>'' : string public static e; ->e : any +>e : any, Symbol(C.e, Decl(classWithPublicProperty.ts, 5, 24)) public static f() { return '' } ->f : () => string +>f : () => string, Symbol(C.f, Decl(classWithPublicProperty.ts, 6, 20)) +>'' : string public static g = () => ''; ->g : () => string +>g : () => string, Symbol(C.g, Decl(classWithPublicProperty.ts, 7, 35)) >() => '' : () => string +>'' : string } // all of these are valid var c = new C(); ->c : C +>c : C, Symbol(c, Decl(classWithPublicProperty.ts, 12, 3)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(classWithPublicProperty.ts, 0, 0)) var r1: string = c.x; ->r1 : string ->c.x : any ->c : C ->x : any +>r1 : string, Symbol(r1, Decl(classWithPublicProperty.ts, 13, 3)) +>c.x : any, Symbol(C.x, Decl(classWithPublicProperty.ts, 0, 9)) +>c : C, Symbol(c, Decl(classWithPublicProperty.ts, 12, 3)) +>x : any, Symbol(C.x, Decl(classWithPublicProperty.ts, 0, 9)) var r2: string = c.a; ->r2 : string ->c.a : string ->c : C ->a : string +>r2 : string, Symbol(r2, Decl(classWithPublicProperty.ts, 14, 3)) +>c.a : string, Symbol(C.a, Decl(classWithPublicProperty.ts, 1, 13)) +>c : C, Symbol(c, Decl(classWithPublicProperty.ts, 12, 3)) +>a : string, Symbol(C.a, Decl(classWithPublicProperty.ts, 1, 13)) var r3: string = c.b; ->r3 : string ->c.b : string ->c : C ->b : string +>r3 : string, Symbol(r3, Decl(classWithPublicProperty.ts, 15, 3)) +>c.b : string, Symbol(C.b, Decl(classWithPublicProperty.ts, 2, 18)) +>c : C, Symbol(c, Decl(classWithPublicProperty.ts, 12, 3)) +>b : string, Symbol(C.b, Decl(classWithPublicProperty.ts, 2, 18)) var r4: string = c.c(); ->r4 : string +>r4 : string, Symbol(r4, Decl(classWithPublicProperty.ts, 16, 3)) >c.c() : string ->c.c : () => string ->c : C ->c : () => string +>c.c : () => string, Symbol(C.c, Decl(classWithPublicProperty.ts, 3, 26)) +>c : C, Symbol(c, Decl(classWithPublicProperty.ts, 12, 3)) +>c : () => string, Symbol(C.c, Decl(classWithPublicProperty.ts, 3, 26)) var r5: string = c.d(); ->r5 : string +>r5 : string, Symbol(r5, Decl(classWithPublicProperty.ts, 17, 3)) >c.d() : string ->c.d : () => string ->c : C ->d : () => string +>c.d : () => string, Symbol(C.d, Decl(classWithPublicProperty.ts, 4, 28)) +>c : C, Symbol(c, Decl(classWithPublicProperty.ts, 12, 3)) +>d : () => string, Symbol(C.d, Decl(classWithPublicProperty.ts, 4, 28)) var r6: string = C.e; ->r6 : string ->C.e : any ->C : typeof C ->e : any +>r6 : string, Symbol(r6, Decl(classWithPublicProperty.ts, 18, 3)) +>C.e : any, Symbol(C.e, Decl(classWithPublicProperty.ts, 5, 24)) +>C : typeof C, Symbol(C, Decl(classWithPublicProperty.ts, 0, 0)) +>e : any, Symbol(C.e, Decl(classWithPublicProperty.ts, 5, 24)) var r7: string = C.f(); ->r7 : string +>r7 : string, Symbol(r7, Decl(classWithPublicProperty.ts, 19, 3)) >C.f() : string ->C.f : () => string ->C : typeof C ->f : () => string +>C.f : () => string, Symbol(C.f, Decl(classWithPublicProperty.ts, 6, 20)) +>C : typeof C, Symbol(C, Decl(classWithPublicProperty.ts, 0, 0)) +>f : () => string, Symbol(C.f, Decl(classWithPublicProperty.ts, 6, 20)) var r8: string = C.g(); ->r8 : string +>r8 : string, Symbol(r8, Decl(classWithPublicProperty.ts, 20, 3)) >C.g() : string ->C.g : () => string ->C : typeof C ->g : () => string +>C.g : () => string, Symbol(C.g, Decl(classWithPublicProperty.ts, 7, 35)) +>C : typeof C, Symbol(C, Decl(classWithPublicProperty.ts, 0, 0)) +>g : () => string, Symbol(C.g, Decl(classWithPublicProperty.ts, 7, 35)) diff --git a/tests/baselines/reference/classWithSemicolonClassElement1.types b/tests/baselines/reference/classWithSemicolonClassElement1.types index d3315c4cd03..36e6e6eedaf 100644 --- a/tests/baselines/reference/classWithSemicolonClassElement1.types +++ b/tests/baselines/reference/classWithSemicolonClassElement1.types @@ -1,6 +1,6 @@ === tests/cases/conformance/classes/classDeclarations/classWithSemicolonClassElement1.ts === class C { ->C : C +>C : C, Symbol(C, Decl(classWithSemicolonClassElement1.ts, 0, 0)) ; } diff --git a/tests/baselines/reference/classWithSemicolonClassElement2.types b/tests/baselines/reference/classWithSemicolonClassElement2.types index ce638e79fc0..9e27c668c05 100644 --- a/tests/baselines/reference/classWithSemicolonClassElement2.types +++ b/tests/baselines/reference/classWithSemicolonClassElement2.types @@ -1,6 +1,6 @@ === tests/cases/conformance/classes/classDeclarations/classWithSemicolonClassElement2.ts === class C { ->C : C +>C : C, Symbol(C, Decl(classWithSemicolonClassElement2.ts, 0, 0)) ; ; diff --git a/tests/baselines/reference/classWithSemicolonClassElementES61.types b/tests/baselines/reference/classWithSemicolonClassElementES61.types index 974f269d33c..c9c6db8e57a 100644 --- a/tests/baselines/reference/classWithSemicolonClassElementES61.types +++ b/tests/baselines/reference/classWithSemicolonClassElementES61.types @@ -1,6 +1,6 @@ === tests/cases/conformance/es6/classDeclaration/classWithSemicolonClassElementES61.ts === class C { ->C : C +>C : C, Symbol(C, Decl(classWithSemicolonClassElementES61.ts, 0, 0)) ; } diff --git a/tests/baselines/reference/classWithSemicolonClassElementES62.types b/tests/baselines/reference/classWithSemicolonClassElementES62.types index 9f96fbb5ebd..53f9cae9975 100644 --- a/tests/baselines/reference/classWithSemicolonClassElementES62.types +++ b/tests/baselines/reference/classWithSemicolonClassElementES62.types @@ -1,6 +1,6 @@ === tests/cases/conformance/es6/classDeclaration/classWithSemicolonClassElementES62.ts === class C { ->C : C +>C : C, Symbol(C, Decl(classWithSemicolonClassElementES62.ts, 0, 0)) ; ; diff --git a/tests/baselines/reference/cloduleAcrossModuleDefinitions.types b/tests/baselines/reference/cloduleAcrossModuleDefinitions.types index cda79f73734..6693788051a 100644 --- a/tests/baselines/reference/cloduleAcrossModuleDefinitions.types +++ b/tests/baselines/reference/cloduleAcrossModuleDefinitions.types @@ -1,31 +1,32 @@ === tests/cases/compiler/cloduleAcrossModuleDefinitions.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(cloduleAcrossModuleDefinitions.ts, 0, 0), Decl(cloduleAcrossModuleDefinitions.ts, 5, 1)) export class B { ->B : B +>B : B, Symbol(B, Decl(cloduleAcrossModuleDefinitions.ts, 0, 10), Decl(cloduleAcrossModuleDefinitions.ts, 7, 10)) foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(cloduleAcrossModuleDefinitions.ts, 1, 20)) static bar() { } ->bar : () => void +>bar : () => void, Symbol(B.bar, Decl(cloduleAcrossModuleDefinitions.ts, 2, 17)) } } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(cloduleAcrossModuleDefinitions.ts, 0, 0), Decl(cloduleAcrossModuleDefinitions.ts, 5, 1)) export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(cloduleAcrossModuleDefinitions.ts, 0, 10), Decl(cloduleAcrossModuleDefinitions.ts, 7, 10)) export var x = 1; ->x : number +>x : number, Symbol(x, Decl(cloduleAcrossModuleDefinitions.ts, 9, 18)) +>1 : number } } var b: A.B; // ok ->b : A.B ->A : unknown ->B : A.B +>b : A.B, Symbol(b, Decl(cloduleAcrossModuleDefinitions.ts, 13, 3)) +>A : any, Symbol(A, Decl(cloduleAcrossModuleDefinitions.ts, 0, 0), Decl(cloduleAcrossModuleDefinitions.ts, 5, 1)) +>B : A.B, Symbol(A.B, Decl(cloduleAcrossModuleDefinitions.ts, 0, 10), Decl(cloduleAcrossModuleDefinitions.ts, 7, 10)) diff --git a/tests/baselines/reference/cloduleAndTypeParameters.types b/tests/baselines/reference/cloduleAndTypeParameters.types index ad43bc90f2f..85d31b895ce 100644 --- a/tests/baselines/reference/cloduleAndTypeParameters.types +++ b/tests/baselines/reference/cloduleAndTypeParameters.types @@ -1,25 +1,25 @@ === tests/cases/compiler/cloduleAndTypeParameters.ts === class Foo { ->Foo : Foo ->T : T ->Foo : unknown ->Bar : Foo.Bar +>Foo : Foo, Symbol(Foo, Decl(cloduleAndTypeParameters.ts, 0, 0), Decl(cloduleAndTypeParameters.ts, 3, 1)) +>T : T, Symbol(T, Decl(cloduleAndTypeParameters.ts, 0, 10)) +>Foo : any, Symbol(Foo, Decl(cloduleAndTypeParameters.ts, 0, 0), Decl(cloduleAndTypeParameters.ts, 3, 1)) +>Bar : Foo.Bar, Symbol(Foo.Bar, Decl(cloduleAndTypeParameters.ts, 5, 12)) constructor() { } } module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(cloduleAndTypeParameters.ts, 0, 0), Decl(cloduleAndTypeParameters.ts, 3, 1)) export interface Bar { ->Bar : Bar +>Bar : Bar, Symbol(Bar, Decl(cloduleAndTypeParameters.ts, 5, 12)) bar(): void; ->bar : () => void +>bar : () => void, Symbol(bar, Decl(cloduleAndTypeParameters.ts, 6, 24)) } export class Baz { ->Baz : Baz +>Baz : Baz, Symbol(Baz, Decl(cloduleAndTypeParameters.ts, 8, 3)) } } diff --git a/tests/baselines/reference/cloduleTest1.types b/tests/baselines/reference/cloduleTest1.types index a92355b483a..33c4d0f7b23 100644 --- a/tests/baselines/reference/cloduleTest1.types +++ b/tests/baselines/reference/cloduleTest1.types @@ -1,34 +1,36 @@ === tests/cases/compiler/cloduleTest1.ts === declare function $(selector: string): $; ->$ : typeof $ ->selector : string ->$ : $ +>$ : typeof $, Symbol($, Decl(cloduleTest1.ts, 0, 0), Decl(cloduleTest1.ts, 0, 42), Decl(cloduleTest1.ts, 3, 3)) +>selector : string, Symbol(selector, Decl(cloduleTest1.ts, 0, 21)) +>$ : $, Symbol($, Decl(cloduleTest1.ts, 0, 0), Decl(cloduleTest1.ts, 0, 42), Decl(cloduleTest1.ts, 3, 3)) interface $ { ->$ : $ +>$ : $, Symbol($, Decl(cloduleTest1.ts, 0, 0), Decl(cloduleTest1.ts, 0, 42), Decl(cloduleTest1.ts, 3, 3)) addClass(className: string): $; ->addClass : (className: string) => $ ->className : string ->$ : $ +>addClass : (className: string) => $, Symbol(addClass, Decl(cloduleTest1.ts, 1, 15)) +>className : string, Symbol(className, Decl(cloduleTest1.ts, 2, 15)) +>$ : $, Symbol($, Decl(cloduleTest1.ts, 0, 0), Decl(cloduleTest1.ts, 0, 42), Decl(cloduleTest1.ts, 3, 3)) } module $ { ->$ : typeof $ +>$ : typeof $, Symbol($, Decl(cloduleTest1.ts, 0, 0), Decl(cloduleTest1.ts, 0, 42), Decl(cloduleTest1.ts, 3, 3)) export interface AjaxSettings { ->AjaxSettings : AjaxSettings +>AjaxSettings : AjaxSettings, Symbol(AjaxSettings, Decl(cloduleTest1.ts, 4, 12)) } export function ajax(options: AjaxSettings) { } ->ajax : (options: AjaxSettings) => void ->options : AjaxSettings ->AjaxSettings : AjaxSettings +>ajax : (options: AjaxSettings) => void, Symbol(ajax, Decl(cloduleTest1.ts, 6, 5)) +>options : AjaxSettings, Symbol(options, Decl(cloduleTest1.ts, 7, 25)) +>AjaxSettings : AjaxSettings, Symbol(AjaxSettings, Decl(cloduleTest1.ts, 4, 12)) } var it: $ = $('.foo').addClass('bar'); ->it : $ ->$ : $ +>it : $, Symbol(it, Decl(cloduleTest1.ts, 9, 5)) +>$ : $, Symbol($, Decl(cloduleTest1.ts, 0, 0), Decl(cloduleTest1.ts, 0, 42), Decl(cloduleTest1.ts, 3, 3)) >$('.foo').addClass('bar') : $ ->$('.foo').addClass : (className: string) => $ +>$('.foo').addClass : (className: string) => $, Symbol($.addClass, Decl(cloduleTest1.ts, 1, 15)) >$('.foo') : $ ->$ : typeof $ ->addClass : (className: string) => $ +>$ : typeof $, Symbol($, Decl(cloduleTest1.ts, 0, 0), Decl(cloduleTest1.ts, 0, 42), Decl(cloduleTest1.ts, 3, 3)) +>'.foo' : string +>addClass : (className: string) => $, Symbol($.addClass, Decl(cloduleTest1.ts, 1, 15)) +>'bar' : string diff --git a/tests/baselines/reference/cloduleWithPriorUninstantiatedModule.types b/tests/baselines/reference/cloduleWithPriorUninstantiatedModule.types index 8dc14646a6b..a14cc0f9f5c 100644 --- a/tests/baselines/reference/cloduleWithPriorUninstantiatedModule.types +++ b/tests/baselines/reference/cloduleWithPriorUninstantiatedModule.types @@ -1,25 +1,25 @@ === tests/cases/compiler/cloduleWithPriorUninstantiatedModule.ts === // Non-ambient & uninstantiated module. module Moclodule { ->Moclodule : typeof Moclodule +>Moclodule : typeof Moclodule, Symbol(Moclodule, Decl(cloduleWithPriorUninstantiatedModule.ts, 0, 0), Decl(cloduleWithPriorUninstantiatedModule.ts, 5, 1), Decl(cloduleWithPriorUninstantiatedModule.ts, 8, 1)) export interface Someinterface { ->Someinterface : Someinterface +>Someinterface : Someinterface, Symbol(Someinterface, Decl(cloduleWithPriorUninstantiatedModule.ts, 1, 18)) foo(): void; ->foo : () => void +>foo : () => void, Symbol(foo, Decl(cloduleWithPriorUninstantiatedModule.ts, 2, 36)) } } class Moclodule { ->Moclodule : Moclodule +>Moclodule : Moclodule, Symbol(Moclodule, Decl(cloduleWithPriorUninstantiatedModule.ts, 0, 0), Decl(cloduleWithPriorUninstantiatedModule.ts, 5, 1), Decl(cloduleWithPriorUninstantiatedModule.ts, 8, 1)) } // Instantiated module. module Moclodule { ->Moclodule : typeof Moclodule +>Moclodule : typeof Moclodule, Symbol(Moclodule, Decl(cloduleWithPriorUninstantiatedModule.ts, 0, 0), Decl(cloduleWithPriorUninstantiatedModule.ts, 5, 1), Decl(cloduleWithPriorUninstantiatedModule.ts, 8, 1)) export class Manager { ->Manager : Manager +>Manager : Manager, Symbol(Manager, Decl(cloduleWithPriorUninstantiatedModule.ts, 11, 18)) } } diff --git a/tests/baselines/reference/cloduleWithRecursiveReference.types b/tests/baselines/reference/cloduleWithRecursiveReference.types index 8a5df1c5a9f..bd3e3e10e6b 100644 --- a/tests/baselines/reference/cloduleWithRecursiveReference.types +++ b/tests/baselines/reference/cloduleWithRecursiveReference.types @@ -1,17 +1,17 @@ === tests/cases/compiler/cloduleWithRecursiveReference.ts === module M ->M : typeof M +>M : typeof M, Symbol(M, Decl(cloduleWithRecursiveReference.ts, 0, 0)) { export class C { } ->C : C +>C : C, Symbol(C, Decl(cloduleWithRecursiveReference.ts, 1, 1), Decl(cloduleWithRecursiveReference.ts, 2, 21)) export module C { ->C : typeof M.C +>C : typeof M.C, Symbol(C, Decl(cloduleWithRecursiveReference.ts, 1, 1), Decl(cloduleWithRecursiveReference.ts, 2, 21)) export var C = M.C ->C : typeof M.C ->M.C : typeof M.C ->M : typeof M ->C : typeof M.C +>C : typeof M.C, Symbol(C, Decl(cloduleWithRecursiveReference.ts, 4, 14)) +>M.C : typeof M.C, Symbol(C, Decl(cloduleWithRecursiveReference.ts, 1, 1), Decl(cloduleWithRecursiveReference.ts, 2, 21)) +>M : typeof M, Symbol(M, Decl(cloduleWithRecursiveReference.ts, 0, 0)) +>C : typeof M.C, Symbol(C, Decl(cloduleWithRecursiveReference.ts, 1, 1), Decl(cloduleWithRecursiveReference.ts, 2, 21)) } } diff --git a/tests/baselines/reference/collisionArgumentsInType.types b/tests/baselines/reference/collisionArgumentsInType.types index a8096e2e7f5..1aa2a07785e 100644 --- a/tests/baselines/reference/collisionArgumentsInType.types +++ b/tests/baselines/reference/collisionArgumentsInType.types @@ -1,53 +1,53 @@ === tests/cases/compiler/collisionArgumentsInType.ts === var v1: (i: number, ...arguments) => void; // no error - no code gen ->v1 : (i: number, ...arguments: any[]) => void ->i : number ->arguments : any[] +>v1 : (i: number, ...arguments: any[]) => void, Symbol(v1, Decl(collisionArgumentsInType.ts, 0, 3)) +>i : number, Symbol(i, Decl(collisionArgumentsInType.ts, 0, 9)) +>arguments : any[], Symbol(arguments, Decl(collisionArgumentsInType.ts, 0, 19)) var v12: (arguments: number, ...restParameters) => void; // no error - no code gen ->v12 : (arguments: number, ...restParameters: any[]) => void ->arguments : number ->restParameters : any[] +>v12 : (arguments: number, ...restParameters: any[]) => void, Symbol(v12, Decl(collisionArgumentsInType.ts, 1, 3)) +>arguments : number, Symbol(arguments, Decl(collisionArgumentsInType.ts, 1, 10)) +>restParameters : any[], Symbol(restParameters, Decl(collisionArgumentsInType.ts, 1, 28)) var v2: { ->v2 : { (arguments: number, ...restParameters: any[]): any; new (arguments: number, ...restParameters: any[]): any; foo(arguments: number, ...restParameters: any[]): any; prop: (arguments: number, ...restParameters: any[]) => void; } +>v2 : { (arguments: number, ...restParameters: any[]): any; new (arguments: number, ...restParameters: any[]): any; foo(arguments: number, ...restParameters: any[]): any; prop: (arguments: number, ...restParameters: any[]) => void; }, Symbol(v2, Decl(collisionArgumentsInType.ts, 2, 3)) (arguments: number, ...restParameters); // no error - no code gen ->arguments : number ->restParameters : any[] +>arguments : number, Symbol(arguments, Decl(collisionArgumentsInType.ts, 3, 5)) +>restParameters : any[], Symbol(restParameters, Decl(collisionArgumentsInType.ts, 3, 23)) new (arguments: number, ...restParameters); // no error - no code gen ->arguments : number ->restParameters : any[] +>arguments : number, Symbol(arguments, Decl(collisionArgumentsInType.ts, 4, 9)) +>restParameters : any[], Symbol(restParameters, Decl(collisionArgumentsInType.ts, 4, 27)) foo(arguments: number, ...restParameters); // no error - no code gen ->foo : (arguments: number, ...restParameters: any[]) => any ->arguments : number ->restParameters : any[] +>foo : (arguments: number, ...restParameters: any[]) => any, Symbol(foo, Decl(collisionArgumentsInType.ts, 4, 47)) +>arguments : number, Symbol(arguments, Decl(collisionArgumentsInType.ts, 5, 8)) +>restParameters : any[], Symbol(restParameters, Decl(collisionArgumentsInType.ts, 5, 26)) prop: (arguments: number, ...restParameters) => void; // no error - no code gen ->prop : (arguments: number, ...restParameters: any[]) => void ->arguments : number ->restParameters : any[] +>prop : (arguments: number, ...restParameters: any[]) => void, Symbol(prop, Decl(collisionArgumentsInType.ts, 5, 46)) +>arguments : number, Symbol(arguments, Decl(collisionArgumentsInType.ts, 6, 11)) +>restParameters : any[], Symbol(restParameters, Decl(collisionArgumentsInType.ts, 6, 29)) } var v21: { ->v21 : { (i: number, ...arguments: any[]): any; new (i: number, ...arguments: any[]): any; foo(i: number, ...arguments: any[]): any; prop: (i: number, ...arguments: any[]) => void; } +>v21 : { (i: number, ...arguments: any[]): any; new (i: number, ...arguments: any[]): any; foo(i: number, ...arguments: any[]): any; prop: (i: number, ...arguments: any[]) => void; }, Symbol(v21, Decl(collisionArgumentsInType.ts, 8, 3)) (i: number, ...arguments); // no error - no code gen ->i : number ->arguments : any[] +>i : number, Symbol(i, Decl(collisionArgumentsInType.ts, 9, 5)) +>arguments : any[], Symbol(arguments, Decl(collisionArgumentsInType.ts, 9, 15)) new (i: number, ...arguments); // no error - no code gen ->i : number ->arguments : any[] +>i : number, Symbol(i, Decl(collisionArgumentsInType.ts, 10, 9)) +>arguments : any[], Symbol(arguments, Decl(collisionArgumentsInType.ts, 10, 19)) foo(i: number, ...arguments); // no error - no code gen ->foo : (i: number, ...arguments: any[]) => any ->i : number ->arguments : any[] +>foo : (i: number, ...arguments: any[]) => any, Symbol(foo, Decl(collisionArgumentsInType.ts, 10, 34)) +>i : number, Symbol(i, Decl(collisionArgumentsInType.ts, 11, 8)) +>arguments : any[], Symbol(arguments, Decl(collisionArgumentsInType.ts, 11, 18)) prop: (i: number, ...arguments) => void; // no error - no code gen ->prop : (i: number, ...arguments: any[]) => void ->i : number ->arguments : any[] +>prop : (i: number, ...arguments: any[]) => void, Symbol(prop, Decl(collisionArgumentsInType.ts, 11, 33)) +>i : number, Symbol(i, Decl(collisionArgumentsInType.ts, 12, 11)) +>arguments : any[], Symbol(arguments, Decl(collisionArgumentsInType.ts, 12, 21)) } diff --git a/tests/baselines/reference/collisionArgumentsInterfaceMembers.types b/tests/baselines/reference/collisionArgumentsInterfaceMembers.types index 6edb0a7ebed..ceca0c21abd 100644 --- a/tests/baselines/reference/collisionArgumentsInterfaceMembers.types +++ b/tests/baselines/reference/collisionArgumentsInterfaceMembers.types @@ -1,63 +1,63 @@ === tests/cases/compiler/collisionArgumentsInterfaceMembers.ts === // call interface i1 { ->i1 : i1 +>i1 : i1, Symbol(i1, Decl(collisionArgumentsInterfaceMembers.ts, 0, 0)) (i: number, ...arguments); // no error - no code gen ->i : number ->arguments : any[] +>i : number, Symbol(i, Decl(collisionArgumentsInterfaceMembers.ts, 2, 5)) +>arguments : any[], Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 2, 15)) } interface i12 { ->i12 : i12 +>i12 : i12, Symbol(i12, Decl(collisionArgumentsInterfaceMembers.ts, 3, 1)) (arguments: number, ...rest); // no error - no code gen ->arguments : number ->rest : any[] +>arguments : number, Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 5, 5)) +>rest : any[], Symbol(rest, Decl(collisionArgumentsInterfaceMembers.ts, 5, 23)) } interface i1NoError { ->i1NoError : i1NoError +>i1NoError : i1NoError, Symbol(i1NoError, Decl(collisionArgumentsInterfaceMembers.ts, 6, 1)) (arguments: number); // no error ->arguments : number +>arguments : number, Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 8, 5)) } // new interface i2 { ->i2 : i2 +>i2 : i2, Symbol(i2, Decl(collisionArgumentsInterfaceMembers.ts, 9, 1)) new (i: number, ...arguments); // no error - no code gen ->i : number ->arguments : any[] +>i : number, Symbol(i, Decl(collisionArgumentsInterfaceMembers.ts, 13, 9)) +>arguments : any[], Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 13, 19)) } interface i21 { ->i21 : i21 +>i21 : i21, Symbol(i21, Decl(collisionArgumentsInterfaceMembers.ts, 14, 1)) new (arguments: number, ...rest); // no error - no code gen ->arguments : number ->rest : any[] +>arguments : number, Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 16, 9)) +>rest : any[], Symbol(rest, Decl(collisionArgumentsInterfaceMembers.ts, 16, 27)) } interface i2NoError { ->i2NoError : i2NoError +>i2NoError : i2NoError, Symbol(i2NoError, Decl(collisionArgumentsInterfaceMembers.ts, 17, 1)) new (arguments: number); // no error ->arguments : number +>arguments : number, Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 19, 9)) } // method interface i3 { ->i3 : i3 +>i3 : i3, Symbol(i3, Decl(collisionArgumentsInterfaceMembers.ts, 20, 1)) foo(i: number, ...arguments); // no error - no code gen ->foo : (i: number, ...arguments: any[]) => any ->i : number ->arguments : any[] +>foo : (i: number, ...arguments: any[]) => any, Symbol(foo, Decl(collisionArgumentsInterfaceMembers.ts, 23, 14)) +>i : number, Symbol(i, Decl(collisionArgumentsInterfaceMembers.ts, 24, 8)) +>arguments : any[], Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 24, 18)) foo1(arguments: number, ...rest); // no error - no code gen ->foo1 : (arguments: number, ...rest: any[]) => any ->arguments : number ->rest : any[] +>foo1 : (arguments: number, ...rest: any[]) => any, Symbol(foo1, Decl(collisionArgumentsInterfaceMembers.ts, 24, 33)) +>arguments : number, Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 25, 9)) +>rest : any[], Symbol(rest, Decl(collisionArgumentsInterfaceMembers.ts, 25, 27)) fooNoError(arguments: number); // no error ->fooNoError : (arguments: number) => any ->arguments : number +>fooNoError : (arguments: number) => any, Symbol(fooNoError, Decl(collisionArgumentsInterfaceMembers.ts, 25, 37)) +>arguments : number, Symbol(arguments, Decl(collisionArgumentsInterfaceMembers.ts, 26, 15)) } diff --git a/tests/baselines/reference/collisionCodeGenEnumWithEnumMemberConflict.types b/tests/baselines/reference/collisionCodeGenEnumWithEnumMemberConflict.types index 398179b5cdc..536910818c5 100644 --- a/tests/baselines/reference/collisionCodeGenEnumWithEnumMemberConflict.types +++ b/tests/baselines/reference/collisionCodeGenEnumWithEnumMemberConflict.types @@ -1,11 +1,11 @@ === tests/cases/compiler/collisionCodeGenEnumWithEnumMemberConflict.ts === enum Color { ->Color : Color +>Color : Color, Symbol(Color, Decl(collisionCodeGenEnumWithEnumMemberConflict.ts, 0, 0)) Color, ->Color : Color +>Color : Color, Symbol(Color.Color, Decl(collisionCodeGenEnumWithEnumMemberConflict.ts, 0, 12)) Thing = Color ->Thing : Color ->Color : Color +>Thing : Color, Symbol(Color.Thing, Decl(collisionCodeGenEnumWithEnumMemberConflict.ts, 1, 10)) +>Color : Color, Symbol(Color.Color, Decl(collisionCodeGenEnumWithEnumMemberConflict.ts, 0, 12)) } diff --git a/tests/baselines/reference/collisionCodeGenModuleWithConstructorChildren.types b/tests/baselines/reference/collisionCodeGenModuleWithConstructorChildren.types index f63f7eeb4f2..3280204d4d6 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithConstructorChildren.types +++ b/tests/baselines/reference/collisionCodeGenModuleWithConstructorChildren.types @@ -1,48 +1,50 @@ === tests/cases/compiler/collisionCodeGenModuleWithConstructorChildren.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithConstructorChildren.ts, 6, 1), Decl(collisionCodeGenModuleWithConstructorChildren.ts, 13, 1)) export var x = 3; ->x : number +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 1, 14)) +>3 : number class c { ->c : c +>c : c, Symbol(c, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 1, 21)) constructor(M, p = x) { ->M : any ->p : number ->x : number +>M : any, Symbol(M, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 3, 20)) +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 3, 22)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 1, 14)) } } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithConstructorChildren.ts, 6, 1), Decl(collisionCodeGenModuleWithConstructorChildren.ts, 13, 1)) class d { ->d : d +>d : d, Symbol(d, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 8, 10)) constructor(private M, p = x) { ->M : any ->p : number ->x : number +>M : any, Symbol(M, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 10, 20)) +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 10, 30)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 1, 14)) } } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithConstructorChildren.ts, 6, 1), Decl(collisionCodeGenModuleWithConstructorChildren.ts, 13, 1)) class d2 { ->d2 : d2 +>d2 : d2, Symbol(d2, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 15, 10)) constructor() { var M = 10; ->M : number +>M : number, Symbol(M, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 18, 15)) +>10 : number var p = x; ->p : number ->x : number +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 19, 15)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithConstructorChildren.ts, 1, 14)) } } } diff --git a/tests/baselines/reference/collisionCodeGenModuleWithEnumMemberConflict.types b/tests/baselines/reference/collisionCodeGenModuleWithEnumMemberConflict.types index 527c8930fcb..add5b032198 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithEnumMemberConflict.types +++ b/tests/baselines/reference/collisionCodeGenModuleWithEnumMemberConflict.types @@ -1,15 +1,15 @@ === tests/cases/compiler/collisionCodeGenModuleWithEnumMemberConflict.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithEnumMemberConflict.ts, 0, 0)) enum e { ->e : e +>e : e, Symbol(e, Decl(collisionCodeGenModuleWithEnumMemberConflict.ts, 0, 11)) m1, ->m1 : e +>m1 : e, Symbol(e.m1, Decl(collisionCodeGenModuleWithEnumMemberConflict.ts, 1, 12)) m2 = m1 ->m2 : e ->m1 : e +>m2 : e, Symbol(e.m2, Decl(collisionCodeGenModuleWithEnumMemberConflict.ts, 2, 11)) +>m1 : e, Symbol(e.m1, Decl(collisionCodeGenModuleWithEnumMemberConflict.ts, 1, 12)) } } diff --git a/tests/baselines/reference/collisionCodeGenModuleWithFunctionChildren.types b/tests/baselines/reference/collisionCodeGenModuleWithFunctionChildren.types index 07ef123f642..7145739d366 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithFunctionChildren.types +++ b/tests/baselines/reference/collisionCodeGenModuleWithFunctionChildren.types @@ -1,44 +1,45 @@ === tests/cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithFunctionChildren.ts, 3, 1), Decl(collisionCodeGenModuleWithFunctionChildren.ts, 10, 1)) export var x = 3; ->x : number +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 1, 14)) +>3 : number function fn(M, p = x) { } ->fn : (M: any, p?: number) => void ->M : any ->p : number ->x : number +>fn : (M: any, p?: number) => void, Symbol(fn, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 1, 21)) +>M : any, Symbol(M, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 2, 16)) +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 2, 18)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 1, 14)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithFunctionChildren.ts, 3, 1), Decl(collisionCodeGenModuleWithFunctionChildren.ts, 10, 1)) function fn2() { ->fn2 : () => void +>fn2 : () => void, Symbol(fn2, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 5, 10)) var M; ->M : any +>M : any, Symbol(M, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 7, 11)) var p = x; ->p : number ->x : number +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 8, 11)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 1, 14)) } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithFunctionChildren.ts, 3, 1), Decl(collisionCodeGenModuleWithFunctionChildren.ts, 10, 1)) function fn3() { ->fn3 : () => void +>fn3 : () => void, Symbol(fn3, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 12, 10)) function M() { ->M : () => void +>M : () => void, Symbol(M, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 13, 20)) var p = x; ->p : number ->x : number +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 15, 15)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithFunctionChildren.ts, 1, 14)) } } } diff --git a/tests/baselines/reference/collisionCodeGenModuleWithMemberClassConflict.types b/tests/baselines/reference/collisionCodeGenModuleWithMemberClassConflict.types index edbe25b7a7d..bc272354d6b 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithMemberClassConflict.types +++ b/tests/baselines/reference/collisionCodeGenModuleWithMemberClassConflict.types @@ -1,40 +1,40 @@ === tests/cases/compiler/collisionCodeGenModuleWithMemberClassConflict.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 0, 0)) export class m1 { ->m1 : m1 +>m1 : m1, Symbol(m1, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 0, 11)) } } var foo = new m1.m1(); ->foo : m1.m1 +>foo : m1.m1, Symbol(foo, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 4, 3), Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 13, 3), Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 14, 3)) >new m1.m1() : m1.m1 ->m1.m1 : typeof m1.m1 ->m1 : typeof m1 ->m1 : typeof m1.m1 +>m1.m1 : typeof m1.m1, Symbol(m1.m1, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 0, 11)) +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 0, 0)) +>m1 : typeof m1.m1, Symbol(m1.m1, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 0, 11)) module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 4, 22)) export class m2 { ->m2 : m2 +>m2 : m2, Symbol(m2, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 6, 11)) } export class _m2 { ->_m2 : _m2 +>_m2 : _m2, Symbol(_m2, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 8, 5)) } } var foo = new m2.m2(); ->foo : m1.m1 +>foo : m1.m1, Symbol(foo, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 4, 3), Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 13, 3), Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 14, 3)) >new m2.m2() : m2.m2 ->m2.m2 : typeof m2.m2 ->m2 : typeof m2 ->m2 : typeof m2.m2 +>m2.m2 : typeof m2.m2, Symbol(m2.m2, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 6, 11)) +>m2 : typeof m2, Symbol(m2, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 4, 22)) +>m2 : typeof m2.m2, Symbol(m2.m2, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 6, 11)) var foo = new m2._m2(); ->foo : m1.m1 +>foo : m1.m1, Symbol(foo, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 4, 3), Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 13, 3), Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 14, 3)) >new m2._m2() : m2._m2 ->m2._m2 : typeof m2._m2 ->m2 : typeof m2 ->_m2 : typeof m2._m2 +>m2._m2 : typeof m2._m2, Symbol(m2._m2, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 8, 5)) +>m2 : typeof m2, Symbol(m2, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 4, 22)) +>_m2 : typeof m2._m2, Symbol(m2._m2, Decl(collisionCodeGenModuleWithMemberClassConflict.ts, 8, 5)) diff --git a/tests/baselines/reference/collisionCodeGenModuleWithMemberInterfaceConflict.types b/tests/baselines/reference/collisionCodeGenModuleWithMemberInterfaceConflict.types index e2f36aeaa8f..2fb33b67f8c 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithMemberInterfaceConflict.types +++ b/tests/baselines/reference/collisionCodeGenModuleWithMemberInterfaceConflict.types @@ -1,19 +1,19 @@ === tests/cases/compiler/collisionCodeGenModuleWithMemberInterfaceConflict.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithMemberInterfaceConflict.ts, 0, 0)) export interface m1 { ->m1 : m1 +>m1 : m1, Symbol(m1, Decl(collisionCodeGenModuleWithMemberInterfaceConflict.ts, 0, 11)) } export class m2 implements m1 { ->m2 : m2 ->m1 : m1 +>m2 : m2, Symbol(m2, Decl(collisionCodeGenModuleWithMemberInterfaceConflict.ts, 2, 5)) +>m1 : m1, Symbol(m1, Decl(collisionCodeGenModuleWithMemberInterfaceConflict.ts, 0, 11)) } } var foo = new m1.m2(); ->foo : m1.m2 +>foo : m1.m2, Symbol(foo, Decl(collisionCodeGenModuleWithMemberInterfaceConflict.ts, 6, 3)) >new m1.m2() : m1.m2 ->m1.m2 : typeof m1.m2 ->m1 : typeof m1 ->m2 : typeof m1.m2 +>m1.m2 : typeof m1.m2, Symbol(m1.m2, Decl(collisionCodeGenModuleWithMemberInterfaceConflict.ts, 2, 5)) +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithMemberInterfaceConflict.ts, 0, 0)) +>m2 : typeof m1.m2, Symbol(m1.m2, Decl(collisionCodeGenModuleWithMemberInterfaceConflict.ts, 2, 5)) diff --git a/tests/baselines/reference/collisionCodeGenModuleWithMemberVariable.types b/tests/baselines/reference/collisionCodeGenModuleWithMemberVariable.types index 86f0767959d..452b889b62e 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithMemberVariable.types +++ b/tests/baselines/reference/collisionCodeGenModuleWithMemberVariable.types @@ -1,17 +1,18 @@ === tests/cases/compiler/collisionCodeGenModuleWithMemberVariable.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithMemberVariable.ts, 0, 0)) export var m1 = 10; ->m1 : number +>m1 : number, Symbol(m1, Decl(collisionCodeGenModuleWithMemberVariable.ts, 1, 14)) +>10 : number var b = m1; ->b : number ->m1 : number +>b : number, Symbol(b, Decl(collisionCodeGenModuleWithMemberVariable.ts, 2, 7)) +>m1 : number, Symbol(m1, Decl(collisionCodeGenModuleWithMemberVariable.ts, 1, 14)) } var foo = m1.m1; ->foo : number ->m1.m1 : number ->m1 : typeof m1 ->m1 : number +>foo : number, Symbol(foo, Decl(collisionCodeGenModuleWithMemberVariable.ts, 4, 3)) +>m1.m1 : number, Symbol(m1.m1, Decl(collisionCodeGenModuleWithMemberVariable.ts, 1, 14)) +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithMemberVariable.ts, 0, 0)) +>m1 : number, Symbol(m1.m1, Decl(collisionCodeGenModuleWithMemberVariable.ts, 1, 14)) diff --git a/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.types b/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.types index 3632806e9b3..5c1172a62b3 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.types +++ b/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.types @@ -1,68 +1,69 @@ === tests/cases/compiler/collisionCodeGenModuleWithMethodChildren.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithMethodChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithMethodChildren.ts, 5, 1), Decl(collisionCodeGenModuleWithMethodChildren.ts, 14, 1), Decl(collisionCodeGenModuleWithMethodChildren.ts, 24, 1)) export var x = 3; ->x : number +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithMethodChildren.ts, 1, 14)) +>3 : number class c { ->c : c +>c : c, Symbol(c, Decl(collisionCodeGenModuleWithMethodChildren.ts, 1, 21)) fn(M, p = x) { } ->fn : (M: any, p?: number) => void ->M : any ->p : number ->x : number +>fn : (M: any, p?: number) => void, Symbol(fn, Decl(collisionCodeGenModuleWithMethodChildren.ts, 2, 13)) +>M : any, Symbol(M, Decl(collisionCodeGenModuleWithMethodChildren.ts, 3, 11)) +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithMethodChildren.ts, 3, 13)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithMethodChildren.ts, 1, 14)) } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithMethodChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithMethodChildren.ts, 5, 1), Decl(collisionCodeGenModuleWithMethodChildren.ts, 14, 1), Decl(collisionCodeGenModuleWithMethodChildren.ts, 24, 1)) class d { ->d : d +>d : d, Symbol(d, Decl(collisionCodeGenModuleWithMethodChildren.ts, 7, 10)) fn2() { ->fn2 : () => void +>fn2 : () => void, Symbol(fn2, Decl(collisionCodeGenModuleWithMethodChildren.ts, 8, 13)) var M; ->M : any +>M : any, Symbol(M, Decl(collisionCodeGenModuleWithMethodChildren.ts, 10, 15)) var p = x; ->p : number ->x : number +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithMethodChildren.ts, 11, 15)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithMethodChildren.ts, 1, 14)) } } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithMethodChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithMethodChildren.ts, 5, 1), Decl(collisionCodeGenModuleWithMethodChildren.ts, 14, 1), Decl(collisionCodeGenModuleWithMethodChildren.ts, 24, 1)) class e { ->e : e +>e : e, Symbol(e, Decl(collisionCodeGenModuleWithMethodChildren.ts, 16, 10)) fn3() { ->fn3 : () => void +>fn3 : () => void, Symbol(fn3, Decl(collisionCodeGenModuleWithMethodChildren.ts, 17, 13)) function M() { ->M : () => void +>M : () => void, Symbol(M, Decl(collisionCodeGenModuleWithMethodChildren.ts, 18, 15)) var p = x; ->p : number ->x : number +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithMethodChildren.ts, 20, 19)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithMethodChildren.ts, 1, 14)) } } } } module M { // Shouldnt bn _M ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithMethodChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithMethodChildren.ts, 5, 1), Decl(collisionCodeGenModuleWithMethodChildren.ts, 14, 1), Decl(collisionCodeGenModuleWithMethodChildren.ts, 24, 1)) class f { ->f : f +>f : f, Symbol(f, Decl(collisionCodeGenModuleWithMethodChildren.ts, 26, 10)) M() { ->M : () => void +>M : () => void, Symbol(M, Decl(collisionCodeGenModuleWithMethodChildren.ts, 27, 13)) } } } diff --git a/tests/baselines/reference/collisionCodeGenModuleWithModuleChildren.types b/tests/baselines/reference/collisionCodeGenModuleWithModuleChildren.types index 7853bcbdb32..53b85b4475e 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithModuleChildren.types +++ b/tests/baselines/reference/collisionCodeGenModuleWithModuleChildren.types @@ -1,93 +1,95 @@ === tests/cases/compiler/collisionCodeGenModuleWithModuleChildren.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithModuleChildren.ts, 6, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 15, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 24, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 33, 1)) export var x = 3; ->x : number +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithModuleChildren.ts, 1, 14)) +>3 : number module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithModuleChildren.ts, 1, 21)) var M = 10; ->M : number +>M : number, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 3, 11)) +>10 : number var p = x; ->p : number ->x : number +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithModuleChildren.ts, 4, 11)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithModuleChildren.ts, 1, 14)) } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithModuleChildren.ts, 6, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 15, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 24, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 33, 1)) module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(collisionCodeGenModuleWithModuleChildren.ts, 8, 10)) class M { ->M : M +>M : M, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 9, 15)) } var p = x; ->p : number ->x : number +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithModuleChildren.ts, 12, 11)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithModuleChildren.ts, 1, 14)) var p2 = new M(); ->p2 : M +>p2 : M, Symbol(p2, Decl(collisionCodeGenModuleWithModuleChildren.ts, 13, 11)) >new M() : M ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 9, 15)) } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithModuleChildren.ts, 6, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 15, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 24, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 33, 1)) module m3 { ->m3 : typeof m3 +>m3 : typeof m3, Symbol(m3, Decl(collisionCodeGenModuleWithModuleChildren.ts, 17, 10)) function M() { ->M : () => void +>M : () => void, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 18, 15)) } var p = x; ->p : number ->x : number +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithModuleChildren.ts, 21, 11)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithModuleChildren.ts, 1, 14)) var p2 = M(); ->p2 : void +>p2 : void, Symbol(p2, Decl(collisionCodeGenModuleWithModuleChildren.ts, 22, 11)) >M() : void ->M : () => void +>M : () => void, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 18, 15)) } } module M { // shouldnt be _M ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithModuleChildren.ts, 6, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 15, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 24, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 33, 1)) module m3 { ->m3 : typeof m3 +>m3 : typeof m3, Symbol(m3, Decl(collisionCodeGenModuleWithModuleChildren.ts, 26, 10)) interface M { ->M : M +>M : M, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 27, 15)) } var p = x; ->p : number ->x : number +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithModuleChildren.ts, 30, 11)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithModuleChildren.ts, 1, 14)) var p2: M; ->p2 : M ->M : M +>p2 : M, Symbol(p2, Decl(collisionCodeGenModuleWithModuleChildren.ts, 31, 11)) +>M : M, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 27, 15)) } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 0, 0), Decl(collisionCodeGenModuleWithModuleChildren.ts, 6, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 15, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 24, 1), Decl(collisionCodeGenModuleWithModuleChildren.ts, 33, 1)) module m4 { ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(collisionCodeGenModuleWithModuleChildren.ts, 35, 10)) module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(collisionCodeGenModuleWithModuleChildren.ts, 36, 15)) var p = x; ->p : number ->x : number +>p : number, Symbol(p, Decl(collisionCodeGenModuleWithModuleChildren.ts, 38, 15)) +>x : number, Symbol(x, Decl(collisionCodeGenModuleWithModuleChildren.ts, 1, 14)) } } } diff --git a/tests/baselines/reference/collisionCodeGenModuleWithModuleReopening.types b/tests/baselines/reference/collisionCodeGenModuleWithModuleReopening.types index 27520618366..559062f7071 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithModuleReopening.types +++ b/tests/baselines/reference/collisionCodeGenModuleWithModuleReopening.types @@ -1,93 +1,94 @@ === tests/cases/compiler/collisionCodeGenModuleWithModuleReopening.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 0, 0), Decl(collisionCodeGenModuleWithModuleReopening.ts, 4, 22)) export class m1 { ->m1 : m1 +>m1 : m1, Symbol(m1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 0, 11)) } } var foo = new m1.m1(); ->foo : m1.m1 +>foo : m1.m1, Symbol(foo, Decl(collisionCodeGenModuleWithModuleReopening.ts, 4, 3)) >new m1.m1() : m1.m1 ->m1.m1 : typeof m1.m1 ->m1 : typeof m1 ->m1 : typeof m1.m1 +>m1.m1 : typeof m1.m1, Symbol(m1.m1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 0, 11)) +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 0, 0), Decl(collisionCodeGenModuleWithModuleReopening.ts, 4, 22)) +>m1 : typeof m1.m1, Symbol(m1.m1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 0, 11)) module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 0, 0), Decl(collisionCodeGenModuleWithModuleReopening.ts, 4, 22)) export class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 5, 11)) } var b = new c1(); ->b : c1 +>b : c1, Symbol(b, Decl(collisionCodeGenModuleWithModuleReopening.ts, 8, 7)) >new c1() : c1 ->c1 : typeof c1 +>c1 : typeof c1, Symbol(c1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 5, 11)) var c = new m1(); ->c : m1 +>c : m1, Symbol(c, Decl(collisionCodeGenModuleWithModuleReopening.ts, 9, 7)) >new m1() : m1 ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 0, 11)) } var foo2 = new m1.c1(); ->foo2 : m1.c1 +>foo2 : m1.c1, Symbol(foo2, Decl(collisionCodeGenModuleWithModuleReopening.ts, 11, 3), Decl(collisionCodeGenModuleWithModuleReopening.ts, 28, 3)) >new m1.c1() : m1.c1 ->m1.c1 : typeof m1.c1 ->m1 : typeof m1 ->c1 : typeof m1.c1 +>m1.c1 : typeof m1.c1, Symbol(m1.c1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 5, 11)) +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 0, 0), Decl(collisionCodeGenModuleWithModuleReopening.ts, 4, 22)) +>c1 : typeof m1.c1, Symbol(m1.c1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 5, 11)) module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(collisionCodeGenModuleWithModuleReopening.ts, 11, 23), Decl(collisionCodeGenModuleWithModuleReopening.ts, 19, 23)) export class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 13, 11)) } export var b10 = 10; ->b10 : number +>b10 : number, Symbol(b10, Decl(collisionCodeGenModuleWithModuleReopening.ts, 16, 14)) +>10 : number var x = new c1(); ->x : c1 +>x : c1, Symbol(x, Decl(collisionCodeGenModuleWithModuleReopening.ts, 17, 7)) >new c1() : c1 ->c1 : typeof c1 +>c1 : typeof c1, Symbol(c1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 13, 11)) } var foo3 = new m2.c1(); ->foo3 : m2.c1 +>foo3 : m2.c1, Symbol(foo3, Decl(collisionCodeGenModuleWithModuleReopening.ts, 19, 3), Decl(collisionCodeGenModuleWithModuleReopening.ts, 27, 3)) >new m2.c1() : m2.c1 ->m2.c1 : typeof m2.c1 ->m2 : typeof m2 ->c1 : typeof m2.c1 +>m2.c1 : typeof m2.c1, Symbol(m2.c1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 13, 11)) +>m2 : typeof m2, Symbol(m2, Decl(collisionCodeGenModuleWithModuleReopening.ts, 11, 23), Decl(collisionCodeGenModuleWithModuleReopening.ts, 19, 23)) +>c1 : typeof m2.c1, Symbol(m2.c1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 13, 11)) module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(collisionCodeGenModuleWithModuleReopening.ts, 11, 23), Decl(collisionCodeGenModuleWithModuleReopening.ts, 19, 23)) export class m2 { ->m2 : m2 +>m2 : m2, Symbol(m2, Decl(collisionCodeGenModuleWithModuleReopening.ts, 20, 11)) } var b = new m2(); ->b : m2 +>b : m2, Symbol(b, Decl(collisionCodeGenModuleWithModuleReopening.ts, 23, 7)) >new m2() : m2 ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(collisionCodeGenModuleWithModuleReopening.ts, 20, 11)) var d = b10; ->d : number ->b10 : number +>d : number, Symbol(d, Decl(collisionCodeGenModuleWithModuleReopening.ts, 24, 7)) +>b10 : number, Symbol(b10, Decl(collisionCodeGenModuleWithModuleReopening.ts, 16, 14)) var c = new c1(); ->c : c1 +>c : c1, Symbol(c, Decl(collisionCodeGenModuleWithModuleReopening.ts, 25, 7)) >new c1() : c1 ->c1 : typeof c1 +>c1 : typeof c1, Symbol(c1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 13, 11)) } var foo3 = new m2.c1(); ->foo3 : m2.c1 +>foo3 : m2.c1, Symbol(foo3, Decl(collisionCodeGenModuleWithModuleReopening.ts, 19, 3), Decl(collisionCodeGenModuleWithModuleReopening.ts, 27, 3)) >new m2.c1() : m2.c1 ->m2.c1 : typeof m2.c1 ->m2 : typeof m2 ->c1 : typeof m2.c1 +>m2.c1 : typeof m2.c1, Symbol(m2.c1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 13, 11)) +>m2 : typeof m2, Symbol(m2, Decl(collisionCodeGenModuleWithModuleReopening.ts, 11, 23), Decl(collisionCodeGenModuleWithModuleReopening.ts, 19, 23)) +>c1 : typeof m2.c1, Symbol(m2.c1, Decl(collisionCodeGenModuleWithModuleReopening.ts, 13, 11)) var foo2 = new m2.m2(); ->foo2 : m1.c1 +>foo2 : m1.c1, Symbol(foo2, Decl(collisionCodeGenModuleWithModuleReopening.ts, 11, 3), Decl(collisionCodeGenModuleWithModuleReopening.ts, 28, 3)) >new m2.m2() : m2.m2 ->m2.m2 : typeof m2.m2 ->m2 : typeof m2 ->m2 : typeof m2.m2 +>m2.m2 : typeof m2.m2, Symbol(m2.m2, Decl(collisionCodeGenModuleWithModuleReopening.ts, 20, 11)) +>m2 : typeof m2, Symbol(m2, Decl(collisionCodeGenModuleWithModuleReopening.ts, 11, 23), Decl(collisionCodeGenModuleWithModuleReopening.ts, 19, 23)) +>m2 : typeof m2.m2, Symbol(m2.m2, Decl(collisionCodeGenModuleWithModuleReopening.ts, 20, 11)) diff --git a/tests/baselines/reference/collisionCodeGenModuleWithPrivateMember.types b/tests/baselines/reference/collisionCodeGenModuleWithPrivateMember.types index a4af255dcf3..69cb059269f 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithPrivateMember.types +++ b/tests/baselines/reference/collisionCodeGenModuleWithPrivateMember.types @@ -1,23 +1,23 @@ === tests/cases/compiler/collisionCodeGenModuleWithPrivateMember.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithPrivateMember.ts, 0, 0)) class m1 { ->m1 : m1 +>m1 : m1, Symbol(m1, Decl(collisionCodeGenModuleWithPrivateMember.ts, 0, 11)) } var x = new m1(); ->x : m1 +>x : m1, Symbol(x, Decl(collisionCodeGenModuleWithPrivateMember.ts, 3, 7)) >new m1() : m1 ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithPrivateMember.ts, 0, 11)) export class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(collisionCodeGenModuleWithPrivateMember.ts, 3, 21)) } } var foo = new m1.c1(); ->foo : m1.c1 +>foo : m1.c1, Symbol(foo, Decl(collisionCodeGenModuleWithPrivateMember.ts, 7, 3)) >new m1.c1() : m1.c1 ->m1.c1 : typeof m1.c1 ->m1 : typeof m1 ->c1 : typeof m1.c1 +>m1.c1 : typeof m1.c1, Symbol(m1.c1, Decl(collisionCodeGenModuleWithPrivateMember.ts, 3, 21)) +>m1 : typeof m1, Symbol(m1, Decl(collisionCodeGenModuleWithPrivateMember.ts, 0, 0)) +>c1 : typeof m1.c1, Symbol(m1.c1, Decl(collisionCodeGenModuleWithPrivateMember.ts, 3, 21)) diff --git a/tests/baselines/reference/collisionCodeGenModuleWithUnicodeNames.types b/tests/baselines/reference/collisionCodeGenModuleWithUnicodeNames.types index 5d7ca71b1be..3bf3f50996e 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithUnicodeNames.types +++ b/tests/baselines/reference/collisionCodeGenModuleWithUnicodeNames.types @@ -1,18 +1,18 @@ === tests/cases/compiler/collisionCodeGenModuleWithUnicodeNames.ts === module 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 { ->才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 : typeof 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 +>才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 : typeof 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123, Symbol(才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123, Decl(collisionCodeGenModuleWithUnicodeNames.ts, 0, 0)) export class 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 { ->才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 : 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 +>才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 : 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123, Symbol(才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123, Decl(collisionCodeGenModuleWithUnicodeNames.ts, 0, 82)) } } var x = new 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123(); ->x : 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 +>x : 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123, Symbol(x, Decl(collisionCodeGenModuleWithUnicodeNames.ts, 5, 3)) >new 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123() : 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 ->才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 : typeof 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 ->才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 : typeof 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 ->才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 : typeof 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 +>才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 : typeof 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123, Symbol(才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123, Decl(collisionCodeGenModuleWithUnicodeNames.ts, 0, 82)) +>才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 : typeof 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123, Symbol(才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123, Decl(collisionCodeGenModuleWithUnicodeNames.ts, 0, 0)) +>才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 : typeof 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123, Symbol(才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123.才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123, Decl(collisionCodeGenModuleWithUnicodeNames.ts, 0, 82)) diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientClass.types b/tests/baselines/reference/collisionExportsRequireAndAmbientClass.types index 8212c6ffc61..084020925fc 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientClass.types +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientClass.types @@ -1,57 +1,58 @@ === tests/cases/compiler/collisionExportsRequireAndAmbientClass_externalmodule.ts === export declare class require { ->require : require +>require : require, Symbol(require, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 0, 0)) } export declare class exports { ->exports : exports +>exports : exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 1, 1)) } declare module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 3, 1)) class require { ->require : require +>require : require, Symbol(require, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 4, 19)) } class exports { ->exports : exports +>exports : exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 6, 5)) } } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 9, 1)) export declare class require { ->require : require +>require : require, Symbol(require, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 10, 11)) } export declare class exports { ->exports : exports +>exports : exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientClass_externalmodule.ts, 12, 5)) } } === tests/cases/compiler/collisionExportsRequireAndAmbientClass_globalFile.ts === declare class require { ->require : require +>require : require, Symbol(require, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 0, 0)) } declare class exports { ->exports : exports +>exports : exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 1, 1)) } declare module m3 { ->m3 : typeof m3 +>m3 : typeof m3, Symbol(m3, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 3, 1)) class require { ->require : require +>require : require, Symbol(require, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 4, 19)) } class exports { ->exports : exports +>exports : exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 6, 5)) } } module m4 { ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 9, 1)) export declare class require { ->require : require +>require : require, Symbol(require, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 10, 11)) } export declare class exports { ->exports : exports +>exports : exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 12, 5)) } var a = 10; ->a : number +>a : number, Symbol(a, Decl(collisionExportsRequireAndAmbientClass_globalFile.ts, 15, 7)) +>10 : number } diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.types b/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.types index 3bc7a00063b..bce26b9245d 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.types +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientEnum.types @@ -1,127 +1,127 @@ === tests/cases/compiler/collisionExportsRequireAndAmbientEnum_externalmodule.ts === export declare enum require { ->require : require +>require : require, Symbol(require, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 0, 0)) _thisVal1, ->_thisVal1 : require +>_thisVal1 : require, Symbol(require._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 0, 29)) _thisVal2, ->_thisVal2 : require +>_thisVal2 : require, Symbol(require._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 1, 14)) } export declare enum exports { ->exports : exports +>exports : exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 3, 1)) _thisVal1, ->_thisVal1 : exports +>_thisVal1 : exports, Symbol(exports._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 4, 29)) _thisVal2, ->_thisVal2 : exports +>_thisVal2 : exports, Symbol(exports._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 5, 14)) } declare module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 7, 1)) enum require { ->require : require +>require : require, Symbol(require, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 8, 19)) _thisVal1, ->_thisVal1 : require +>_thisVal1 : require, Symbol(require._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 9, 18)) _thisVal2, ->_thisVal2 : require +>_thisVal2 : require, Symbol(require._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 10, 18)) } enum exports { ->exports : exports +>exports : exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 12, 5)) _thisVal1, ->_thisVal1 : exports +>_thisVal1 : exports, Symbol(exports._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 13, 18)) _thisVal2, ->_thisVal2 : exports +>_thisVal2 : exports, Symbol(exports._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 14, 18)) } } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 17, 1)) export declare enum require { ->require : require +>require : require, Symbol(require, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 18, 11)) _thisVal1, ->_thisVal1 : require +>_thisVal1 : require, Symbol(require._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 19, 33)) _thisVal2, ->_thisVal2 : require +>_thisVal2 : require, Symbol(require._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 20, 18)) } export declare enum exports { ->exports : exports +>exports : exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 22, 5)) _thisVal1, ->_thisVal1 : exports +>_thisVal1 : exports, Symbol(exports._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 23, 33)) _thisVal2, ->_thisVal2 : exports +>_thisVal2 : exports, Symbol(exports._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_externalmodule.ts, 24, 18)) } } === tests/cases/compiler/collisionExportsRequireAndAmbientEnum_globalFile.ts === declare enum require { ->require : require +>require : require, Symbol(require, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 0, 0)) _thisVal1, ->_thisVal1 : require +>_thisVal1 : require, Symbol(require._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 0, 22)) _thisVal2, ->_thisVal2 : require +>_thisVal2 : require, Symbol(require._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 1, 14)) } declare enum exports { ->exports : exports +>exports : exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 3, 1)) _thisVal1, ->_thisVal1 : exports +>_thisVal1 : exports, Symbol(exports._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 4, 22)) _thisVal2, ->_thisVal2 : exports +>_thisVal2 : exports, Symbol(exports._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 5, 14)) } declare module m3 { ->m3 : typeof m3 +>m3 : typeof m3, Symbol(m3, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 7, 1)) enum require { ->require : require +>require : require, Symbol(require, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 8, 19)) _thisVal1, ->_thisVal1 : require +>_thisVal1 : require, Symbol(require._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 9, 18)) _thisVal2, ->_thisVal2 : require +>_thisVal2 : require, Symbol(require._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 10, 18)) } enum exports { ->exports : exports +>exports : exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 12, 5)) _thisVal1, ->_thisVal1 : exports +>_thisVal1 : exports, Symbol(exports._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 13, 18)) _thisVal2, ->_thisVal2 : exports +>_thisVal2 : exports, Symbol(exports._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 14, 18)) } } module m4 { ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 17, 1)) export declare enum require { ->require : require +>require : require, Symbol(require, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 18, 11)) _thisVal1, ->_thisVal1 : require +>_thisVal1 : require, Symbol(require._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 19, 33)) _thisVal2, ->_thisVal2 : require +>_thisVal2 : require, Symbol(require._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 20, 18)) } export declare enum exports { ->exports : exports +>exports : exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 22, 5)) _thisVal1, ->_thisVal1 : exports +>_thisVal1 : exports, Symbol(exports._thisVal1, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 23, 33)) _thisVal2, ->_thisVal2 : exports +>_thisVal2 : exports, Symbol(exports._thisVal2, Decl(collisionExportsRequireAndAmbientEnum_globalFile.ts, 24, 18)) } } diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.types b/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.types index 024bdff8ea3..07bc77ca404 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.types +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientFunction.types @@ -1,28 +1,29 @@ === tests/cases/compiler/collisionExportsRequireAndAmbientFunction.ts === export declare function exports(): number; ->exports : () => number +>exports : () => number, Symbol(exports, Decl(collisionExportsRequireAndAmbientFunction.ts, 0, 0)) export declare function require(): string[]; ->require : () => string[] +>require : () => string[], Symbol(require, Decl(collisionExportsRequireAndAmbientFunction.ts, 0, 42)) declare module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionExportsRequireAndAmbientFunction.ts, 2, 44)) function exports(): string; ->exports : () => string +>exports : () => string, Symbol(exports, Decl(collisionExportsRequireAndAmbientFunction.ts, 4, 19)) function require(): number; ->require : () => number +>require : () => number, Symbol(require, Decl(collisionExportsRequireAndAmbientFunction.ts, 5, 31)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(collisionExportsRequireAndAmbientFunction.ts, 7, 1)) export declare function exports(): string; ->exports : () => string +>exports : () => string, Symbol(exports, Decl(collisionExportsRequireAndAmbientFunction.ts, 8, 11)) export declare function require(): string[]; ->require : () => string[] +>require : () => string[], Symbol(require, Decl(collisionExportsRequireAndAmbientFunction.ts, 9, 46)) var a = 10; ->a : number +>a : number, Symbol(a, Decl(collisionExportsRequireAndAmbientFunction.ts, 11, 7)) +>10 : number } diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientFunctionInGlobalFile.types b/tests/baselines/reference/collisionExportsRequireAndAmbientFunctionInGlobalFile.types index 0ecde7f429f..dab5078d061 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientFunctionInGlobalFile.types +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientFunctionInGlobalFile.types @@ -1,28 +1,29 @@ === tests/cases/compiler/collisionExportsRequireAndAmbientFunctionInGlobalFile.ts === declare function exports(): number; ->exports : () => number +>exports : () => number, Symbol(exports, Decl(collisionExportsRequireAndAmbientFunctionInGlobalFile.ts, 0, 0)) declare function require(): string; ->require : () => string +>require : () => string, Symbol(require, Decl(collisionExportsRequireAndAmbientFunctionInGlobalFile.ts, 0, 35)) declare module m3 { ->m3 : typeof m3 +>m3 : typeof m3, Symbol(m3, Decl(collisionExportsRequireAndAmbientFunctionInGlobalFile.ts, 1, 35)) function exports(): string[]; ->exports : () => string[] +>exports : () => string[], Symbol(exports, Decl(collisionExportsRequireAndAmbientFunctionInGlobalFile.ts, 2, 19)) function require(): number[]; ->require : () => number[] +>require : () => number[], Symbol(require, Decl(collisionExportsRequireAndAmbientFunctionInGlobalFile.ts, 3, 33)) } module m4 { ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(collisionExportsRequireAndAmbientFunctionInGlobalFile.ts, 5, 1)) export declare function exports(): string; ->exports : () => string +>exports : () => string, Symbol(exports, Decl(collisionExportsRequireAndAmbientFunctionInGlobalFile.ts, 6, 11)) export declare function require(): string; ->require : () => string +>require : () => string, Symbol(require, Decl(collisionExportsRequireAndAmbientFunctionInGlobalFile.ts, 7, 46)) var a = 10; ->a : number +>a : number, Symbol(a, Decl(collisionExportsRequireAndAmbientFunctionInGlobalFile.ts, 9, 7)) +>10 : number } diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientModule.types b/tests/baselines/reference/collisionExportsRequireAndAmbientModule.types index 7e41093daaa..6952f43f617 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientModule.types +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientModule.types @@ -1,159 +1,163 @@ === tests/cases/compiler/collisionExportsRequireAndAmbientModule_externalmodule.ts === export declare module require { ->require : typeof require +>require : typeof require, Symbol(require, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 0, 0)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 0, 31)) } export class C { ->C : C +>C : C, Symbol(C, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 2, 5)) } } export function foo(): require.I { ->foo : () => require.I ->require : unknown ->I : require.I +>foo : () => require.I, Symbol(foo, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 5, 1)) +>require : any, Symbol(require, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 0, 0)) +>I : require.I, Symbol(require.I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 0, 31)) return null; +>null : null } export declare module exports { ->exports : typeof exports +>exports : typeof exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 8, 1)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 9, 31)) } export class C { ->C : C +>C : C, Symbol(C, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 11, 5)) } } export function foo2(): exports.I { ->foo2 : () => exports.I ->exports : unknown ->I : exports.I +>foo2 : () => exports.I, Symbol(foo2, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 14, 1)) +>exports : any, Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 8, 1)) +>I : exports.I, Symbol(exports.I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 9, 31)) return null; +>null : null } declare module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 17, 1)) module require { ->require : typeof require +>require : typeof require, Symbol(require, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 18, 19)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 19, 20)) } export class C { ->C : C +>C : C, Symbol(C, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 21, 9)) } } module exports { ->exports : typeof exports +>exports : typeof exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 24, 5)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 25, 20)) } export class C { ->C : C +>C : C, Symbol(C, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 27, 9)) } } } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 31, 1)) export declare module require { ->require : typeof require +>require : typeof require, Symbol(require, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 32, 11)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 33, 35)) } export class C { ->C : C +>C : C, Symbol(C, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 35, 9)) } } export declare module exports { ->exports : typeof exports +>exports : typeof exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 38, 5)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 39, 35)) } export class C { ->C : C +>C : C, Symbol(C, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 41, 9)) } } var a = 10; ->a : number +>a : number, Symbol(a, Decl(collisionExportsRequireAndAmbientModule_externalmodule.ts, 45, 7)) +>10 : number } === tests/cases/compiler/collisionExportsRequireAndAmbientModule_globalFile.ts === declare module require { ->require : typeof require +>require : typeof require, Symbol(require, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 0, 0)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 0, 24)) } export class C { ->C : C +>C : C, Symbol(C, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 2, 5)) } } declare module exports { ->exports : typeof exports +>exports : typeof exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 5, 1)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 6, 24)) } export class C { ->C : C +>C : C, Symbol(C, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 8, 5)) } } declare module m3 { ->m3 : typeof m3 +>m3 : typeof m3, Symbol(m3, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 11, 1)) module require { ->require : typeof require +>require : typeof require, Symbol(require, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 12, 19)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 13, 20)) } export class C { ->C : C +>C : C, Symbol(C, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 15, 9)) } } module exports { ->exports : typeof exports +>exports : typeof exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 18, 5)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 19, 20)) } export class C { ->C : C +>C : C, Symbol(C, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 21, 9)) } } } module m4 { ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 25, 1)) export declare module require { ->require : typeof require +>require : typeof require, Symbol(require, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 26, 11)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 27, 35)) } export class C { ->C : C +>C : C, Symbol(C, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 29, 9)) } } export declare module exports { ->exports : typeof exports +>exports : typeof exports, Symbol(exports, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 32, 5)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 33, 35)) } export class C { ->C : C +>C : C, Symbol(C, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 35, 9)) } } var a = 10; ->a : number +>a : number, Symbol(a, Decl(collisionExportsRequireAndAmbientModule_globalFile.ts, 40, 7)) +>10 : number } diff --git a/tests/baselines/reference/collisionExportsRequireAndAmbientVar.types b/tests/baselines/reference/collisionExportsRequireAndAmbientVar.types index 1419df3504b..10161984cd8 100644 --- a/tests/baselines/reference/collisionExportsRequireAndAmbientVar.types +++ b/tests/baselines/reference/collisionExportsRequireAndAmbientVar.types @@ -1,57 +1,59 @@ === tests/cases/compiler/collisionExportsRequireAndAmbientVar_externalmodule.ts === export declare var exports: number; ->exports : number +>exports : number, Symbol(exports, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 0, 18)) export declare var require: string; ->require : string +>require : string, Symbol(require, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 1, 18)) declare module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 1, 35)) var exports: string; ->exports : string +>exports : string, Symbol(exports, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 3, 7)) var require: number; ->require : number +>require : number, Symbol(require, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 4, 7)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 5, 1)) export declare var exports: number; ->exports : number +>exports : number, Symbol(exports, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 7, 22)) export declare var require: string; ->require : string +>require : string, Symbol(require, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 8, 22)) var a = 10; ->a : number +>a : number, Symbol(a, Decl(collisionExportsRequireAndAmbientVar_externalmodule.ts, 9, 7)) +>10 : number } === tests/cases/compiler/collisionExportsRequireAndAmbientVar_globalFile.ts === declare var exports: number; ->exports : number +>exports : number, Symbol(exports, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 0, 11)) declare var require: string; ->require : string +>require : string, Symbol(require, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 1, 11)) declare module m3 { ->m3 : typeof m3 +>m3 : typeof m3, Symbol(m3, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 1, 28)) var exports: string; ->exports : string +>exports : string, Symbol(exports, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 3, 7)) var require: number; ->require : number +>require : number, Symbol(require, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 4, 7)) } module m4 { ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 5, 1)) export declare var exports: string; ->exports : string +>exports : string, Symbol(exports, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 7, 22)) export declare var require: number; ->require : number +>require : number, Symbol(require, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 8, 22)) var a = 10; ->a : number +>a : number, Symbol(a, Decl(collisionExportsRequireAndAmbientVar_globalFile.ts, 9, 7)) +>10 : number } diff --git a/tests/baselines/reference/collisionExportsRequireAndFunctionInGlobalFile.types b/tests/baselines/reference/collisionExportsRequireAndFunctionInGlobalFile.types index ba804feb91a..9f69cdf775e 100644 --- a/tests/baselines/reference/collisionExportsRequireAndFunctionInGlobalFile.types +++ b/tests/baselines/reference/collisionExportsRequireAndFunctionInGlobalFile.types @@ -1,39 +1,45 @@ === tests/cases/compiler/collisionExportsRequireAndFunctionInGlobalFile.ts === function exports() { ->exports : () => number +>exports : () => number, Symbol(exports, Decl(collisionExportsRequireAndFunctionInGlobalFile.ts, 0, 0)) return 1; +>1 : number } function require() { ->require : () => string +>require : () => string, Symbol(require, Decl(collisionExportsRequireAndFunctionInGlobalFile.ts, 2, 1)) return "require"; +>"require" : string } module m3 { ->m3 : typeof m3 +>m3 : typeof m3, Symbol(m3, Decl(collisionExportsRequireAndFunctionInGlobalFile.ts, 5, 1)) function exports() { ->exports : () => number +>exports : () => number, Symbol(exports, Decl(collisionExportsRequireAndFunctionInGlobalFile.ts, 6, 11)) return 1; +>1 : number } function require() { ->require : () => string +>require : () => string, Symbol(require, Decl(collisionExportsRequireAndFunctionInGlobalFile.ts, 9, 5)) return "require"; +>"require" : string } } module m4 { ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(collisionExportsRequireAndFunctionInGlobalFile.ts, 13, 1)) export function exports() { ->exports : () => number +>exports : () => number, Symbol(exports, Decl(collisionExportsRequireAndFunctionInGlobalFile.ts, 14, 11)) return 1; +>1 : number } export function require() { ->require : () => string +>require : () => string, Symbol(require, Decl(collisionExportsRequireAndFunctionInGlobalFile.ts, 17, 5)) return "require"; +>"require" : string } } diff --git a/tests/baselines/reference/collisionExportsRequireAndInternalModuleAliasInGlobalFile.types b/tests/baselines/reference/collisionExportsRequireAndInternalModuleAliasInGlobalFile.types index 11001fe115f..4fe3845c113 100644 --- a/tests/baselines/reference/collisionExportsRequireAndInternalModuleAliasInGlobalFile.types +++ b/tests/baselines/reference/collisionExportsRequireAndInternalModuleAliasInGlobalFile.types @@ -1,69 +1,69 @@ === tests/cases/compiler/collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts === module mOfGloalFile { ->mOfGloalFile : typeof mOfGloalFile +>mOfGloalFile : typeof mOfGloalFile, Symbol(mOfGloalFile, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 0)) export class c { ->c : c +>c : c, Symbol(c, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 21)) } } import exports = mOfGloalFile.c; ->exports : typeof exports ->mOfGloalFile : typeof mOfGloalFile ->c : exports +>exports : typeof exports, Symbol(exports, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 3, 1)) +>mOfGloalFile : typeof mOfGloalFile, Symbol(mOfGloalFile, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 0)) +>c : exports, Symbol(exports, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 21)) import require = mOfGloalFile.c; ->require : typeof exports ->mOfGloalFile : typeof mOfGloalFile ->c : exports +>require : typeof exports, Symbol(require, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 4, 32)) +>mOfGloalFile : typeof mOfGloalFile, Symbol(mOfGloalFile, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 0)) +>c : exports, Symbol(exports, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 21)) new exports(); >new exports() : exports ->exports : typeof exports +>exports : typeof exports, Symbol(exports, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 3, 1)) new require(); >new require() : exports ->require : typeof exports +>require : typeof exports, Symbol(require, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 4, 32)) module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 7, 14)) import exports = mOfGloalFile.c; ->exports : typeof exports ->mOfGloalFile : typeof mOfGloalFile ->c : exports +>exports : typeof exports, Symbol(exports, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 9, 11)) +>mOfGloalFile : typeof mOfGloalFile, Symbol(mOfGloalFile, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 0)) +>c : exports, Symbol(exports, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 21)) import require = mOfGloalFile.c; ->require : typeof exports ->mOfGloalFile : typeof mOfGloalFile ->c : exports +>require : typeof exports, Symbol(require, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 10, 36)) +>mOfGloalFile : typeof mOfGloalFile, Symbol(mOfGloalFile, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 0)) +>c : exports, Symbol(exports, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 21)) new exports(); >new exports() : exports ->exports : typeof exports +>exports : typeof exports, Symbol(exports, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 9, 11)) new require(); >new require() : exports ->require : typeof exports +>require : typeof exports, Symbol(require, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 10, 36)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 14, 1)) export import exports = mOfGloalFile.c; ->exports : typeof exports ->mOfGloalFile : typeof mOfGloalFile ->c : exports +>exports : typeof exports, Symbol(exports, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 16, 11)) +>mOfGloalFile : typeof mOfGloalFile, Symbol(mOfGloalFile, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 0)) +>c : exports, Symbol(exports, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 21)) export import require = mOfGloalFile.c; ->require : typeof exports ->mOfGloalFile : typeof mOfGloalFile ->c : exports +>require : typeof exports, Symbol(require, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 17, 43)) +>mOfGloalFile : typeof mOfGloalFile, Symbol(mOfGloalFile, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 0)) +>c : exports, Symbol(exports, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 0, 21)) new exports(); >new exports() : exports ->exports : typeof exports +>exports : typeof exports, Symbol(exports, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 16, 11)) new require(); >new require() : exports ->require : typeof exports +>require : typeof exports, Symbol(require, Decl(collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts, 17, 43)) } diff --git a/tests/baselines/reference/collisionExportsRequireAndUninstantiatedModule.types b/tests/baselines/reference/collisionExportsRequireAndUninstantiatedModule.types index 59d90feda46..b3a035acaf8 100644 --- a/tests/baselines/reference/collisionExportsRequireAndUninstantiatedModule.types +++ b/tests/baselines/reference/collisionExportsRequireAndUninstantiatedModule.types @@ -1,29 +1,31 @@ === tests/cases/compiler/collisionExportsRequireAndUninstantiatedModule.ts === export module require { // no error ->require : unknown +>require : any, Symbol(require, Decl(collisionExportsRequireAndUninstantiatedModule.ts, 0, 0)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndUninstantiatedModule.ts, 0, 23)) } } export function foo(): require.I { ->foo : () => require.I ->require : unknown ->I : require.I +>foo : () => require.I, Symbol(foo, Decl(collisionExportsRequireAndUninstantiatedModule.ts, 3, 1)) +>require : any, Symbol(require, Decl(collisionExportsRequireAndUninstantiatedModule.ts, 0, 0)) +>I : require.I, Symbol(require.I, Decl(collisionExportsRequireAndUninstantiatedModule.ts, 0, 23)) return null; +>null : null } export module exports { // no error ->exports : unknown +>exports : any, Symbol(exports, Decl(collisionExportsRequireAndUninstantiatedModule.ts, 6, 1)) export interface I { ->I : I +>I : I, Symbol(I, Decl(collisionExportsRequireAndUninstantiatedModule.ts, 7, 23)) } } export function foo2(): exports.I { ->foo2 : () => exports.I ->exports : unknown ->I : exports.I +>foo2 : () => exports.I, Symbol(foo2, Decl(collisionExportsRequireAndUninstantiatedModule.ts, 10, 1)) +>exports : any, Symbol(exports, Decl(collisionExportsRequireAndUninstantiatedModule.ts, 6, 1)) +>I : exports.I, Symbol(exports.I, Decl(collisionExportsRequireAndUninstantiatedModule.ts, 7, 23)) return null; +>null : null } diff --git a/tests/baselines/reference/collisionRestParameterArrowFunctions.types b/tests/baselines/reference/collisionRestParameterArrowFunctions.types index f2316c99583..65fe7555cb7 100644 --- a/tests/baselines/reference/collisionRestParameterArrowFunctions.types +++ b/tests/baselines/reference/collisionRestParameterArrowFunctions.types @@ -1,34 +1,38 @@ === tests/cases/compiler/collisionRestParameterArrowFunctions.ts === var f1 = (_i: number, ...restParameters) => { //_i is error ->f1 : (_i: number, ...restParameters: any[]) => void +>f1 : (_i: number, ...restParameters: any[]) => void, Symbol(f1, Decl(collisionRestParameterArrowFunctions.ts, 0, 3)) >(_i: number, ...restParameters) => { //_i is error var _i = 10; // no error} : (_i: number, ...restParameters: any[]) => void ->_i : number ->restParameters : any[] +>_i : number, Symbol(_i, Decl(collisionRestParameterArrowFunctions.ts, 0, 10), Decl(collisionRestParameterArrowFunctions.ts, 1, 7)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterArrowFunctions.ts, 0, 21)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterArrowFunctions.ts, 0, 10), Decl(collisionRestParameterArrowFunctions.ts, 1, 7)) +>10 : number } var f1NoError = (_i: number) => { // no error ->f1NoError : (_i: number) => void +>f1NoError : (_i: number) => void, Symbol(f1NoError, Decl(collisionRestParameterArrowFunctions.ts, 3, 3)) >(_i: number) => { // no error var _i = 10; // no error} : (_i: number) => void ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterArrowFunctions.ts, 3, 17), Decl(collisionRestParameterArrowFunctions.ts, 4, 7)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterArrowFunctions.ts, 3, 17), Decl(collisionRestParameterArrowFunctions.ts, 4, 7)) +>10 : number } var f2 = (...restParameters) => { ->f2 : (...restParameters: any[]) => void +>f2 : (...restParameters: any[]) => void, Symbol(f2, Decl(collisionRestParameterArrowFunctions.ts, 7, 3)) >(...restParameters) => { var _i = 10; // No Error} : (...restParameters: any[]) => void ->restParameters : any[] +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterArrowFunctions.ts, 7, 10)) var _i = 10; // No Error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterArrowFunctions.ts, 8, 7)) +>10 : number } var f2NoError = () => { ->f2NoError : () => void +>f2NoError : () => void, Symbol(f2NoError, Decl(collisionRestParameterArrowFunctions.ts, 10, 3)) >() => { var _i = 10; // no error} : () => void var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterArrowFunctions.ts, 11, 7)) +>10 : number } diff --git a/tests/baselines/reference/collisionRestParameterClassConstructor.types b/tests/baselines/reference/collisionRestParameterClassConstructor.types index d0ceb9e0749..6f43471fac2 100644 --- a/tests/baselines/reference/collisionRestParameterClassConstructor.types +++ b/tests/baselines/reference/collisionRestParameterClassConstructor.types @@ -1,137 +1,143 @@ === tests/cases/compiler/collisionRestParameterClassConstructor.ts === // Constructors class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(collisionRestParameterClassConstructor.ts, 0, 0)) constructor(_i: number, ...restParameters) { //_i is error ->_i : number ->restParameters : any[] +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 2, 16), Decl(collisionRestParameterClassConstructor.ts, 3, 11)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterClassConstructor.ts, 2, 27)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 2, 16), Decl(collisionRestParameterClassConstructor.ts, 3, 11)) +>10 : number } } class c1NoError { ->c1NoError : c1NoError +>c1NoError : c1NoError, Symbol(c1NoError, Decl(collisionRestParameterClassConstructor.ts, 5, 1)) constructor(_i: number) { // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 7, 16), Decl(collisionRestParameterClassConstructor.ts, 8, 11)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 7, 16), Decl(collisionRestParameterClassConstructor.ts, 8, 11)) +>10 : number } } class c2 { ->c2 : c2 +>c2 : c2, Symbol(c2, Decl(collisionRestParameterClassConstructor.ts, 10, 1)) constructor(...restParameters) { ->restParameters : any[] +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterClassConstructor.ts, 13, 16)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 14, 11)) +>10 : number } } class c2NoError { ->c2NoError : c2NoError +>c2NoError : c2NoError, Symbol(c2NoError, Decl(collisionRestParameterClassConstructor.ts, 16, 1)) constructor() { var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 19, 11)) +>10 : number } } class c3 { ->c3 : c3 +>c3 : c3, Symbol(c3, Decl(collisionRestParameterClassConstructor.ts, 21, 1)) constructor(public _i: number, ...restParameters) { //_i is error ->_i : number ->restParameters : any[] +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 24, 16)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterClassConstructor.ts, 24, 34)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 24, 16), Decl(collisionRestParameterClassConstructor.ts, 25, 11)) +>10 : number } } class c3NoError { ->c3NoError : c3NoError +>c3NoError : c3NoError, Symbol(c3NoError, Decl(collisionRestParameterClassConstructor.ts, 27, 1)) constructor(public _i: number) { // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 29, 16)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 29, 16), Decl(collisionRestParameterClassConstructor.ts, 30, 11)) +>10 : number } } declare class c4 { ->c4 : c4 +>c4 : c4, Symbol(c4, Decl(collisionRestParameterClassConstructor.ts, 32, 1)) constructor(_i: number, ...restParameters); // No error - no code gen ->_i : number ->restParameters : any[] +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 35, 16)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterClassConstructor.ts, 35, 27)) } declare class c4NoError { ->c4NoError : c4NoError +>c4NoError : c4NoError, Symbol(c4NoError, Decl(collisionRestParameterClassConstructor.ts, 36, 1)) constructor(_i: number); // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 38, 16)) } class c5 { ->c5 : c5 +>c5 : c5, Symbol(c5, Decl(collisionRestParameterClassConstructor.ts, 39, 1)) constructor(_i: number, ...rest); // no codegen no error ->_i : number ->rest : any[] +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 42, 16)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterClassConstructor.ts, 42, 27)) constructor(_i: string, ...rest); // no codegen no error ->_i : string ->rest : any[] +>_i : string, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 43, 16)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterClassConstructor.ts, 43, 27)) constructor(_i: any, ...rest) { // error ->_i : any ->rest : any[] +>_i : any, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 44, 16), Decl(collisionRestParameterClassConstructor.ts, 45, 11)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterClassConstructor.ts, 44, 24)) var _i: any; // no error ->_i : any +>_i : any, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 44, 16), Decl(collisionRestParameterClassConstructor.ts, 45, 11)) } } class c5NoError { ->c5NoError : c5NoError +>c5NoError : c5NoError, Symbol(c5NoError, Decl(collisionRestParameterClassConstructor.ts, 47, 1)) constructor(_i: number); // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 50, 16)) constructor(_i: string); // no error ->_i : string +>_i : string, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 51, 16)) constructor(_i: any) { // no error ->_i : any +>_i : any, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 52, 16), Decl(collisionRestParameterClassConstructor.ts, 53, 11)) var _i: any; // no error ->_i : any +>_i : any, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 52, 16), Decl(collisionRestParameterClassConstructor.ts, 53, 11)) } } declare class c6 { ->c6 : c6 +>c6 : c6, Symbol(c6, Decl(collisionRestParameterClassConstructor.ts, 55, 1)) constructor(_i: number, ...rest); // no codegen no error ->_i : number ->rest : any[] +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 58, 16)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterClassConstructor.ts, 58, 27)) constructor(_i: string, ...rest); // no codegen no error ->_i : string ->rest : any[] +>_i : string, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 59, 16)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterClassConstructor.ts, 59, 27)) } declare class c6NoError { ->c6NoError : c6NoError +>c6NoError : c6NoError, Symbol(c6NoError, Decl(collisionRestParameterClassConstructor.ts, 60, 1)) constructor(_i: number); // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 63, 16)) constructor(_i: string); // no error ->_i : string +>_i : string, Symbol(_i, Decl(collisionRestParameterClassConstructor.ts, 64, 16)) } diff --git a/tests/baselines/reference/collisionRestParameterClassMethod.types b/tests/baselines/reference/collisionRestParameterClassMethod.types index 2a4c23ae5a9..550d451b247 100644 --- a/tests/baselines/reference/collisionRestParameterClassMethod.types +++ b/tests/baselines/reference/collisionRestParameterClassMethod.types @@ -1,103 +1,107 @@ === tests/cases/compiler/collisionRestParameterClassMethod.ts === class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(collisionRestParameterClassMethod.ts, 0, 0)) public foo(_i: number, ...restParameters) { //_i is error ->foo : (_i: number, ...restParameters: any[]) => void ->_i : number ->restParameters : any[] +>foo : (_i: number, ...restParameters: any[]) => void, Symbol(foo, Decl(collisionRestParameterClassMethod.ts, 0, 10)) +>_i : number, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 1, 15), Decl(collisionRestParameterClassMethod.ts, 2, 11)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterClassMethod.ts, 1, 26)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 1, 15), Decl(collisionRestParameterClassMethod.ts, 2, 11)) +>10 : number } public fooNoError(_i: number) { // no error ->fooNoError : (_i: number) => void ->_i : number +>fooNoError : (_i: number) => void, Symbol(fooNoError, Decl(collisionRestParameterClassMethod.ts, 3, 5)) +>_i : number, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 4, 22), Decl(collisionRestParameterClassMethod.ts, 5, 11)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 4, 22), Decl(collisionRestParameterClassMethod.ts, 5, 11)) +>10 : number } public f4(_i: number, ...rest); // no codegen no error ->f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : number ->rest : any[] +>f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f4, Decl(collisionRestParameterClassMethod.ts, 6, 5), Decl(collisionRestParameterClassMethod.ts, 7, 35), Decl(collisionRestParameterClassMethod.ts, 8, 35)) +>_i : number, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 7, 14)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterClassMethod.ts, 7, 25)) public f4(_i: string, ...rest); // no codegen no error ->f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : string ->rest : any[] +>f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f4, Decl(collisionRestParameterClassMethod.ts, 6, 5), Decl(collisionRestParameterClassMethod.ts, 7, 35), Decl(collisionRestParameterClassMethod.ts, 8, 35)) +>_i : string, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 8, 14)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterClassMethod.ts, 8, 25)) public f4(_i: any, ...rest) { // error ->f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : any ->rest : any[] +>f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f4, Decl(collisionRestParameterClassMethod.ts, 6, 5), Decl(collisionRestParameterClassMethod.ts, 7, 35), Decl(collisionRestParameterClassMethod.ts, 8, 35)) +>_i : any, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 9, 14), Decl(collisionRestParameterClassMethod.ts, 10, 11)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterClassMethod.ts, 9, 22)) var _i: any; // no error ->_i : any +>_i : any, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 9, 14), Decl(collisionRestParameterClassMethod.ts, 10, 11)) } public f4NoError(_i: number); // no error ->f4NoError : { (_i: number): any; (_i: string): any; } ->_i : number +>f4NoError : { (_i: number): any; (_i: string): any; }, Symbol(f4NoError, Decl(collisionRestParameterClassMethod.ts, 11, 5), Decl(collisionRestParameterClassMethod.ts, 13, 33), Decl(collisionRestParameterClassMethod.ts, 14, 33)) +>_i : number, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 13, 21)) public f4NoError(_i: string); // no error ->f4NoError : { (_i: number): any; (_i: string): any; } ->_i : string +>f4NoError : { (_i: number): any; (_i: string): any; }, Symbol(f4NoError, Decl(collisionRestParameterClassMethod.ts, 11, 5), Decl(collisionRestParameterClassMethod.ts, 13, 33), Decl(collisionRestParameterClassMethod.ts, 14, 33)) +>_i : string, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 14, 21)) public f4NoError(_i: any) { // no error ->f4NoError : { (_i: number): any; (_i: string): any; } ->_i : any +>f4NoError : { (_i: number): any; (_i: string): any; }, Symbol(f4NoError, Decl(collisionRestParameterClassMethod.ts, 11, 5), Decl(collisionRestParameterClassMethod.ts, 13, 33), Decl(collisionRestParameterClassMethod.ts, 14, 33)) +>_i : any, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 15, 21), Decl(collisionRestParameterClassMethod.ts, 16, 11)) var _i: any; // no error ->_i : any +>_i : any, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 15, 21), Decl(collisionRestParameterClassMethod.ts, 16, 11)) } } declare class c2 { ->c2 : c2 +>c2 : c2, Symbol(c2, Decl(collisionRestParameterClassMethod.ts, 18, 1)) public foo(_i: number, ...restParameters); // No error - no code gen ->foo : (_i: number, ...restParameters: any[]) => any ->_i : number ->restParameters : any[] +>foo : (_i: number, ...restParameters: any[]) => any, Symbol(foo, Decl(collisionRestParameterClassMethod.ts, 20, 18)) +>_i : number, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 21, 15)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterClassMethod.ts, 21, 26)) public fooNoError(_i: number); // no error ->fooNoError : (_i: number) => any ->_i : number +>fooNoError : (_i: number) => any, Symbol(fooNoError, Decl(collisionRestParameterClassMethod.ts, 21, 46)) +>_i : number, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 22, 22)) public f4(_i: number, ...rest); // no codegen no error ->f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : number ->rest : any[] +>f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f4, Decl(collisionRestParameterClassMethod.ts, 22, 34), Decl(collisionRestParameterClassMethod.ts, 24, 35)) +>_i : number, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 24, 14)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterClassMethod.ts, 24, 25)) public f4(_i: string, ...rest); // no codegen no error ->f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : string ->rest : any[] +>f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f4, Decl(collisionRestParameterClassMethod.ts, 22, 34), Decl(collisionRestParameterClassMethod.ts, 24, 35)) +>_i : string, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 25, 14)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterClassMethod.ts, 25, 25)) public f4NoError(_i: number); // no error ->f4NoError : { (_i: number): any; (_i: string): any; } ->_i : number +>f4NoError : { (_i: number): any; (_i: string): any; }, Symbol(f4NoError, Decl(collisionRestParameterClassMethod.ts, 25, 35), Decl(collisionRestParameterClassMethod.ts, 26, 33)) +>_i : number, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 26, 21)) public f4NoError(_i: string); // no error ->f4NoError : { (_i: number): any; (_i: string): any; } ->_i : string +>f4NoError : { (_i: number): any; (_i: string): any; }, Symbol(f4NoError, Decl(collisionRestParameterClassMethod.ts, 25, 35), Decl(collisionRestParameterClassMethod.ts, 26, 33)) +>_i : string, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 27, 21)) } class c3 { ->c3 : c3 +>c3 : c3, Symbol(c3, Decl(collisionRestParameterClassMethod.ts, 28, 1)) public foo(...restParameters) { ->foo : (...restParameters: any[]) => void ->restParameters : any[] +>foo : (...restParameters: any[]) => void, Symbol(foo, Decl(collisionRestParameterClassMethod.ts, 30, 10)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterClassMethod.ts, 31, 15)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 32, 11)) +>10 : number } public fooNoError() { ->fooNoError : () => void +>fooNoError : () => void, Symbol(fooNoError, Decl(collisionRestParameterClassMethod.ts, 33, 5)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterClassMethod.ts, 35, 11)) +>10 : number } } diff --git a/tests/baselines/reference/collisionRestParameterFunction.types b/tests/baselines/reference/collisionRestParameterFunction.types index f0d8abeac9d..6aab454e734 100644 --- a/tests/baselines/reference/collisionRestParameterFunction.types +++ b/tests/baselines/reference/collisionRestParameterFunction.types @@ -1,88 +1,92 @@ === tests/cases/compiler/collisionRestParameterFunction.ts === // Functions function f1(_i: number, ...restParameters) { //_i is error ->f1 : (_i: number, ...restParameters: any[]) => void ->_i : number ->restParameters : any[] +>f1 : (_i: number, ...restParameters: any[]) => void, Symbol(f1, Decl(collisionRestParameterFunction.ts, 0, 0)) +>_i : number, Symbol(_i, Decl(collisionRestParameterFunction.ts, 1, 12), Decl(collisionRestParameterFunction.ts, 2, 7)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterFunction.ts, 1, 23)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterFunction.ts, 1, 12), Decl(collisionRestParameterFunction.ts, 2, 7)) +>10 : number } function f1NoError(_i: number) { // no error ->f1NoError : (_i: number) => void ->_i : number +>f1NoError : (_i: number) => void, Symbol(f1NoError, Decl(collisionRestParameterFunction.ts, 3, 1)) +>_i : number, Symbol(_i, Decl(collisionRestParameterFunction.ts, 4, 19), Decl(collisionRestParameterFunction.ts, 5, 7)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterFunction.ts, 4, 19), Decl(collisionRestParameterFunction.ts, 5, 7)) +>10 : number } declare function f2(_i: number, ...restParameters); // no error - no code gen ->f2 : (_i: number, ...restParameters: any[]) => any ->_i : number ->restParameters : any[] +>f2 : (_i: number, ...restParameters: any[]) => any, Symbol(f2, Decl(collisionRestParameterFunction.ts, 6, 1)) +>_i : number, Symbol(_i, Decl(collisionRestParameterFunction.ts, 8, 20)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterFunction.ts, 8, 31)) declare function f2NoError(_i: number); // no error ->f2NoError : (_i: number) => any ->_i : number +>f2NoError : (_i: number) => any, Symbol(f2NoError, Decl(collisionRestParameterFunction.ts, 8, 51)) +>_i : number, Symbol(_i, Decl(collisionRestParameterFunction.ts, 9, 27)) function f3(...restParameters) { ->f3 : (...restParameters: any[]) => void ->restParameters : any[] +>f3 : (...restParameters: any[]) => void, Symbol(f3, Decl(collisionRestParameterFunction.ts, 9, 39)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterFunction.ts, 11, 12)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterFunction.ts, 12, 7)) +>10 : number } function f3NoError() { ->f3NoError : () => void +>f3NoError : () => void, Symbol(f3NoError, Decl(collisionRestParameterFunction.ts, 13, 1)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterFunction.ts, 15, 7)) +>10 : number } function f4(_i: number, ...rest); // no codegen no error ->f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : number ->rest : any[] +>f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f4, Decl(collisionRestParameterFunction.ts, 16, 1), Decl(collisionRestParameterFunction.ts, 18, 33), Decl(collisionRestParameterFunction.ts, 19, 33)) +>_i : number, Symbol(_i, Decl(collisionRestParameterFunction.ts, 18, 12)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterFunction.ts, 18, 23)) function f4(_i: string, ...rest); // no codegen no error ->f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : string ->rest : any[] +>f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f4, Decl(collisionRestParameterFunction.ts, 16, 1), Decl(collisionRestParameterFunction.ts, 18, 33), Decl(collisionRestParameterFunction.ts, 19, 33)) +>_i : string, Symbol(_i, Decl(collisionRestParameterFunction.ts, 19, 12)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterFunction.ts, 19, 23)) function f4(_i: any, ...rest) { // error ->f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : any ->rest : any[] +>f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f4, Decl(collisionRestParameterFunction.ts, 16, 1), Decl(collisionRestParameterFunction.ts, 18, 33), Decl(collisionRestParameterFunction.ts, 19, 33)) +>_i : any, Symbol(_i, Decl(collisionRestParameterFunction.ts, 20, 12)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterFunction.ts, 20, 20)) } function f4NoError(_i: number); // no error ->f4NoError : { (_i: number): any; (_i: string): any; } ->_i : number +>f4NoError : { (_i: number): any; (_i: string): any; }, Symbol(f4NoError, Decl(collisionRestParameterFunction.ts, 21, 1), Decl(collisionRestParameterFunction.ts, 23, 31), Decl(collisionRestParameterFunction.ts, 24, 31)) +>_i : number, Symbol(_i, Decl(collisionRestParameterFunction.ts, 23, 19)) function f4NoError(_i: string); // no error ->f4NoError : { (_i: number): any; (_i: string): any; } ->_i : string +>f4NoError : { (_i: number): any; (_i: string): any; }, Symbol(f4NoError, Decl(collisionRestParameterFunction.ts, 21, 1), Decl(collisionRestParameterFunction.ts, 23, 31), Decl(collisionRestParameterFunction.ts, 24, 31)) +>_i : string, Symbol(_i, Decl(collisionRestParameterFunction.ts, 24, 19)) function f4NoError(_i: any) { // no error ->f4NoError : { (_i: number): any; (_i: string): any; } ->_i : any +>f4NoError : { (_i: number): any; (_i: string): any; }, Symbol(f4NoError, Decl(collisionRestParameterFunction.ts, 21, 1), Decl(collisionRestParameterFunction.ts, 23, 31), Decl(collisionRestParameterFunction.ts, 24, 31)) +>_i : any, Symbol(_i, Decl(collisionRestParameterFunction.ts, 25, 19)) } declare function f5(_i: number, ...rest); // no codegen no error ->f5 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : number ->rest : any[] +>f5 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f5, Decl(collisionRestParameterFunction.ts, 26, 1), Decl(collisionRestParameterFunction.ts, 28, 41)) +>_i : number, Symbol(_i, Decl(collisionRestParameterFunction.ts, 28, 20)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterFunction.ts, 28, 31)) declare function f5(_i: string, ...rest); // no codegen no error ->f5 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : string ->rest : any[] +>f5 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f5, Decl(collisionRestParameterFunction.ts, 26, 1), Decl(collisionRestParameterFunction.ts, 28, 41)) +>_i : string, Symbol(_i, Decl(collisionRestParameterFunction.ts, 29, 20)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterFunction.ts, 29, 31)) declare function f6(_i: number); // no codegen no error ->f6 : { (_i: number): any; (_i: string): any; } ->_i : number +>f6 : { (_i: number): any; (_i: string): any; }, Symbol(f6, Decl(collisionRestParameterFunction.ts, 29, 41), Decl(collisionRestParameterFunction.ts, 31, 32)) +>_i : number, Symbol(_i, Decl(collisionRestParameterFunction.ts, 31, 20)) declare function f6(_i: string); // no codegen no error ->f6 : { (_i: number): any; (_i: string): any; } ->_i : string +>f6 : { (_i: number): any; (_i: string): any; }, Symbol(f6, Decl(collisionRestParameterFunction.ts, 29, 41), Decl(collisionRestParameterFunction.ts, 31, 32)) +>_i : string, Symbol(_i, Decl(collisionRestParameterFunction.ts, 32, 20)) diff --git a/tests/baselines/reference/collisionRestParameterFunctionExpressions.types b/tests/baselines/reference/collisionRestParameterFunctionExpressions.types index c6c52390894..d20a9265b55 100644 --- a/tests/baselines/reference/collisionRestParameterFunctionExpressions.types +++ b/tests/baselines/reference/collisionRestParameterFunctionExpressions.types @@ -1,62 +1,66 @@ === tests/cases/compiler/collisionRestParameterFunctionExpressions.ts === function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(collisionRestParameterFunctionExpressions.ts, 0, 0)) function f1(_i: number, ...restParameters) { //_i is error ->f1 : (_i: number, ...restParameters: any[]) => void ->_i : number ->restParameters : any[] +>f1 : (_i: number, ...restParameters: any[]) => void, Symbol(f1, Decl(collisionRestParameterFunctionExpressions.ts, 0, 16)) +>_i : number, Symbol(_i, Decl(collisionRestParameterFunctionExpressions.ts, 1, 16), Decl(collisionRestParameterFunctionExpressions.ts, 2, 11)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterFunctionExpressions.ts, 1, 27)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterFunctionExpressions.ts, 1, 16), Decl(collisionRestParameterFunctionExpressions.ts, 2, 11)) +>10 : number } function f1NoError(_i: number) { // no error ->f1NoError : (_i: number) => void ->_i : number +>f1NoError : (_i: number) => void, Symbol(f1NoError, Decl(collisionRestParameterFunctionExpressions.ts, 3, 5)) +>_i : number, Symbol(_i, Decl(collisionRestParameterFunctionExpressions.ts, 4, 23), Decl(collisionRestParameterFunctionExpressions.ts, 5, 11)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterFunctionExpressions.ts, 4, 23), Decl(collisionRestParameterFunctionExpressions.ts, 5, 11)) +>10 : number } function f3(...restParameters) { ->f3 : (...restParameters: any[]) => void ->restParameters : any[] +>f3 : (...restParameters: any[]) => void, Symbol(f3, Decl(collisionRestParameterFunctionExpressions.ts, 6, 5)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterFunctionExpressions.ts, 7, 16)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterFunctionExpressions.ts, 8, 11)) +>10 : number } function f3NoError() { ->f3NoError : () => void +>f3NoError : () => void, Symbol(f3NoError, Decl(collisionRestParameterFunctionExpressions.ts, 9, 5)) var _i = 10; // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterFunctionExpressions.ts, 11, 11)) +>10 : number } function f4(_i: number, ...rest); // no codegen no error ->f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : number ->rest : any[] +>f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f4, Decl(collisionRestParameterFunctionExpressions.ts, 12, 5), Decl(collisionRestParameterFunctionExpressions.ts, 14, 37), Decl(collisionRestParameterFunctionExpressions.ts, 15, 37)) +>_i : number, Symbol(_i, Decl(collisionRestParameterFunctionExpressions.ts, 14, 16)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterFunctionExpressions.ts, 14, 27)) function f4(_i: string, ...rest); // no codegen no error ->f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : string ->rest : any[] +>f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f4, Decl(collisionRestParameterFunctionExpressions.ts, 12, 5), Decl(collisionRestParameterFunctionExpressions.ts, 14, 37), Decl(collisionRestParameterFunctionExpressions.ts, 15, 37)) +>_i : string, Symbol(_i, Decl(collisionRestParameterFunctionExpressions.ts, 15, 16)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterFunctionExpressions.ts, 15, 27)) function f4(_i: any, ...rest) { // error ->f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } ->_i : any ->rest : any[] +>f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; }, Symbol(f4, Decl(collisionRestParameterFunctionExpressions.ts, 12, 5), Decl(collisionRestParameterFunctionExpressions.ts, 14, 37), Decl(collisionRestParameterFunctionExpressions.ts, 15, 37)) +>_i : any, Symbol(_i, Decl(collisionRestParameterFunctionExpressions.ts, 16, 16)) +>rest : any[], Symbol(rest, Decl(collisionRestParameterFunctionExpressions.ts, 16, 24)) } function f4NoError(_i: number); // no error ->f4NoError : { (_i: number): any; (_i: string): any; } ->_i : number +>f4NoError : { (_i: number): any; (_i: string): any; }, Symbol(f4NoError, Decl(collisionRestParameterFunctionExpressions.ts, 17, 5), Decl(collisionRestParameterFunctionExpressions.ts, 19, 35), Decl(collisionRestParameterFunctionExpressions.ts, 20, 35)) +>_i : number, Symbol(_i, Decl(collisionRestParameterFunctionExpressions.ts, 19, 23)) function f4NoError(_i: string); // no error ->f4NoError : { (_i: number): any; (_i: string): any; } ->_i : string +>f4NoError : { (_i: number): any; (_i: string): any; }, Symbol(f4NoError, Decl(collisionRestParameterFunctionExpressions.ts, 17, 5), Decl(collisionRestParameterFunctionExpressions.ts, 19, 35), Decl(collisionRestParameterFunctionExpressions.ts, 20, 35)) +>_i : string, Symbol(_i, Decl(collisionRestParameterFunctionExpressions.ts, 20, 23)) function f4NoError(_i: any) { // no error ->f4NoError : { (_i: number): any; (_i: string): any; } ->_i : any +>f4NoError : { (_i: number): any; (_i: string): any; }, Symbol(f4NoError, Decl(collisionRestParameterFunctionExpressions.ts, 17, 5), Decl(collisionRestParameterFunctionExpressions.ts, 19, 35), Decl(collisionRestParameterFunctionExpressions.ts, 20, 35)) +>_i : any, Symbol(_i, Decl(collisionRestParameterFunctionExpressions.ts, 21, 23)) } } diff --git a/tests/baselines/reference/collisionRestParameterInType.types b/tests/baselines/reference/collisionRestParameterInType.types index 5987409407d..7c4342fdc2c 100644 --- a/tests/baselines/reference/collisionRestParameterInType.types +++ b/tests/baselines/reference/collisionRestParameterInType.types @@ -1,27 +1,27 @@ === tests/cases/compiler/collisionRestParameterInType.ts === var v1: (_i: number, ...restParameters) => void; // no error - no code gen ->v1 : (_i: number, ...restParameters: any[]) => void ->_i : number ->restParameters : any[] +>v1 : (_i: number, ...restParameters: any[]) => void, Symbol(v1, Decl(collisionRestParameterInType.ts, 0, 3)) +>_i : number, Symbol(_i, Decl(collisionRestParameterInType.ts, 0, 9)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterInType.ts, 0, 20)) var v2: { ->v2 : { (_i: number, ...restParameters: any[]): any; new (_i: number, ...restParameters: any[]): any; foo(_i: number, ...restParameters: any[]): any; prop: (_i: number, ...restParameters: any[]) => void; } +>v2 : { (_i: number, ...restParameters: any[]): any; new (_i: number, ...restParameters: any[]): any; foo(_i: number, ...restParameters: any[]): any; prop: (_i: number, ...restParameters: any[]) => void; }, Symbol(v2, Decl(collisionRestParameterInType.ts, 1, 3)) (_i: number, ...restParameters); // no error - no code gen ->_i : number ->restParameters : any[] +>_i : number, Symbol(_i, Decl(collisionRestParameterInType.ts, 2, 5)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterInType.ts, 2, 16)) new (_i: number, ...restParameters); // no error - no code gen ->_i : number ->restParameters : any[] +>_i : number, Symbol(_i, Decl(collisionRestParameterInType.ts, 3, 9)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterInType.ts, 3, 20)) foo(_i: number, ...restParameters); // no error - no code gen ->foo : (_i: number, ...restParameters: any[]) => any ->_i : number ->restParameters : any[] +>foo : (_i: number, ...restParameters: any[]) => any, Symbol(foo, Decl(collisionRestParameterInType.ts, 3, 40)) +>_i : number, Symbol(_i, Decl(collisionRestParameterInType.ts, 4, 8)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterInType.ts, 4, 19)) prop: (_i: number, ...restParameters) => void; // no error - no code gen ->prop : (_i: number, ...restParameters: any[]) => void ->_i : number ->restParameters : any[] +>prop : (_i: number, ...restParameters: any[]) => void, Symbol(prop, Decl(collisionRestParameterInType.ts, 4, 39)) +>_i : number, Symbol(_i, Decl(collisionRestParameterInType.ts, 5, 11)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterInType.ts, 5, 22)) } diff --git a/tests/baselines/reference/collisionRestParameterInterfaceMembers.types b/tests/baselines/reference/collisionRestParameterInterfaceMembers.types index f060857f2d0..4244e411a06 100644 --- a/tests/baselines/reference/collisionRestParameterInterfaceMembers.types +++ b/tests/baselines/reference/collisionRestParameterInterfaceMembers.types @@ -1,44 +1,44 @@ === tests/cases/compiler/collisionRestParameterInterfaceMembers.ts === // call interface i1 { ->i1 : i1 +>i1 : i1, Symbol(i1, Decl(collisionRestParameterInterfaceMembers.ts, 0, 0)) (_i: number, ...restParameters); // no error - no code gen ->_i : number ->restParameters : any[] +>_i : number, Symbol(_i, Decl(collisionRestParameterInterfaceMembers.ts, 2, 5)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterInterfaceMembers.ts, 2, 16)) } interface i1NoError { ->i1NoError : i1NoError +>i1NoError : i1NoError, Symbol(i1NoError, Decl(collisionRestParameterInterfaceMembers.ts, 3, 1)) (_i: number); // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterInterfaceMembers.ts, 5, 5)) } // new interface i2 { ->i2 : i2 +>i2 : i2, Symbol(i2, Decl(collisionRestParameterInterfaceMembers.ts, 6, 1)) new (_i: number, ...restParameters); // no error - no code gen ->_i : number ->restParameters : any[] +>_i : number, Symbol(_i, Decl(collisionRestParameterInterfaceMembers.ts, 10, 9)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterInterfaceMembers.ts, 10, 20)) } interface i2NoError { ->i2NoError : i2NoError +>i2NoError : i2NoError, Symbol(i2NoError, Decl(collisionRestParameterInterfaceMembers.ts, 11, 1)) new (_i: number); // no error ->_i : number +>_i : number, Symbol(_i, Decl(collisionRestParameterInterfaceMembers.ts, 13, 9)) } // method interface i3 { ->i3 : i3 +>i3 : i3, Symbol(i3, Decl(collisionRestParameterInterfaceMembers.ts, 14, 1)) foo (_i: number, ...restParameters); // no error - no code gen ->foo : (_i: number, ...restParameters: any[]) => any ->_i : number ->restParameters : any[] +>foo : (_i: number, ...restParameters: any[]) => any, Symbol(foo, Decl(collisionRestParameterInterfaceMembers.ts, 17, 14)) +>_i : number, Symbol(_i, Decl(collisionRestParameterInterfaceMembers.ts, 18, 9)) +>restParameters : any[], Symbol(restParameters, Decl(collisionRestParameterInterfaceMembers.ts, 18, 20)) fooNoError (_i: number); // no error ->fooNoError : (_i: number) => any ->_i : number +>fooNoError : (_i: number) => any, Symbol(fooNoError, Decl(collisionRestParameterInterfaceMembers.ts, 18, 40)) +>_i : number, Symbol(_i, Decl(collisionRestParameterInterfaceMembers.ts, 19, 16)) } diff --git a/tests/baselines/reference/collisionRestParameterUnderscoreIUsage.types b/tests/baselines/reference/collisionRestParameterUnderscoreIUsage.types index c700f50aca4..28b74dc1e2d 100644 --- a/tests/baselines/reference/collisionRestParameterUnderscoreIUsage.types +++ b/tests/baselines/reference/collisionRestParameterUnderscoreIUsage.types @@ -1,27 +1,28 @@ === tests/cases/compiler/collisionRestParameterUnderscoreIUsage.ts === declare var console: { log(msg?: string): void; }; ->console : { log(msg?: string): void; } ->log : (msg?: string) => void ->msg : string +>console : { log(msg?: string): void; }, Symbol(console, Decl(collisionRestParameterUnderscoreIUsage.ts, 0, 11)) +>log : (msg?: string) => void, Symbol(log, Decl(collisionRestParameterUnderscoreIUsage.ts, 0, 22)) +>msg : string, Symbol(msg, Decl(collisionRestParameterUnderscoreIUsage.ts, 0, 27)) var _i = "This is what I'd expect to see"; ->_i : string +>_i : string, Symbol(_i, Decl(collisionRestParameterUnderscoreIUsage.ts, 1, 3)) +>"This is what I'd expect to see" : string class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(collisionRestParameterUnderscoreIUsage.ts, 1, 42)) constructor(...args: any[]) { ->args : any[] +>args : any[], Symbol(args, Decl(collisionRestParameterUnderscoreIUsage.ts, 3, 16)) console.log(_i); // This should result in error >console.log(_i) : void ->console.log : (msg?: string) => void ->console : { log(msg?: string): void; } ->log : (msg?: string) => void ->_i : string +>console.log : (msg?: string) => void, Symbol(log, Decl(collisionRestParameterUnderscoreIUsage.ts, 0, 22)) +>console : { log(msg?: string): void; }, Symbol(console, Decl(collisionRestParameterUnderscoreIUsage.ts, 0, 11)) +>log : (msg?: string) => void, Symbol(log, Decl(collisionRestParameterUnderscoreIUsage.ts, 0, 22)) +>_i : string, Symbol(_i, Decl(collisionRestParameterUnderscoreIUsage.ts, 1, 3)) } } new Foo(); >new Foo() : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(collisionRestParameterUnderscoreIUsage.ts, 1, 42)) diff --git a/tests/baselines/reference/commaOperator1.types b/tests/baselines/reference/commaOperator1.types index 52a36e33024..7e1d290d26e 100644 --- a/tests/baselines/reference/commaOperator1.types +++ b/tests/baselines/reference/commaOperator1.types @@ -1,6 +1,6 @@ === tests/cases/compiler/commaOperator1.ts === var v1 = ((1, 2, 3), 4, 5, (6, 7)); ->v1 : number +>v1 : number, Symbol(v1, Decl(commaOperator1.ts, 0, 3)) >((1, 2, 3), 4, 5, (6, 7)) : number >(1, 2, 3), 4, 5, (6, 7) : number >(1, 2, 3), 4, 5 : number @@ -8,20 +8,28 @@ var v1 = ((1, 2, 3), 4, 5, (6, 7)); >(1, 2, 3) : number >1, 2, 3 : number >1, 2 : number +>1 : number +>2 : number +>3 : number +>4 : number +>5 : number >(6, 7) : number >6, 7 : number +>6 : number +>7 : number function f1() { ->f1 : () => number +>f1 : () => number, Symbol(f1, Decl(commaOperator1.ts, 0, 35)) var a = 1; ->a : number +>a : number, Symbol(a, Decl(commaOperator1.ts, 2, 7)) +>1 : number return a, v1, a; >a, v1, a : number >a, v1 : number ->a : number ->v1 : number ->a : number +>a : number, Symbol(a, Decl(commaOperator1.ts, 2, 7)) +>v1 : number, Symbol(v1, Decl(commaOperator1.ts, 0, 3)) +>a : number, Symbol(a, Decl(commaOperator1.ts, 2, 7)) } diff --git a/tests/baselines/reference/commaOperatorOtherValidOperation.types b/tests/baselines/reference/commaOperatorOtherValidOperation.types index e42991e7b5a..4770c41788e 100644 --- a/tests/baselines/reference/commaOperatorOtherValidOperation.types +++ b/tests/baselines/reference/commaOperatorOtherValidOperation.types @@ -1,59 +1,63 @@ === tests/cases/conformance/expressions/commaOperator/commaOperatorOtherValidOperation.ts === //Comma operator in for loop for (var i = 0, j = 10; i < j; i++, j--) ->i : number ->j : number +>i : number, Symbol(i, Decl(commaOperatorOtherValidOperation.ts, 1, 8)) +>0 : number +>j : number, Symbol(j, Decl(commaOperatorOtherValidOperation.ts, 1, 15)) +>10 : number >i < j : boolean ->i : number ->j : number +>i : number, Symbol(i, Decl(commaOperatorOtherValidOperation.ts, 1, 8)) +>j : number, Symbol(j, Decl(commaOperatorOtherValidOperation.ts, 1, 15)) >i++, j-- : number >i++ : number ->i : number +>i : number, Symbol(i, Decl(commaOperatorOtherValidOperation.ts, 1, 8)) >j-- : number ->j : number +>j : number, Symbol(j, Decl(commaOperatorOtherValidOperation.ts, 1, 15)) { } //Comma operator in fuction arguments and return function foo(x: number, y: string) ->foo : (x: number, y: string) => string ->x : number ->y : string +>foo : (x: number, y: string) => string, Symbol(foo, Decl(commaOperatorOtherValidOperation.ts, 3, 1)) +>x : number, Symbol(x, Decl(commaOperatorOtherValidOperation.ts, 6, 13)) +>y : string, Symbol(y, Decl(commaOperatorOtherValidOperation.ts, 6, 23)) { return x, y; >x, y : string ->x : number ->y : string +>x : number, Symbol(x, Decl(commaOperatorOtherValidOperation.ts, 6, 13)) +>y : string, Symbol(y, Decl(commaOperatorOtherValidOperation.ts, 6, 23)) } var resultIsString = foo(1, "123"); ->resultIsString : string +>resultIsString : string, Symbol(resultIsString, Decl(commaOperatorOtherValidOperation.ts, 10, 3)) >foo(1, "123") : string ->foo : (x: number, y: string) => string +>foo : (x: number, y: string) => string, Symbol(foo, Decl(commaOperatorOtherValidOperation.ts, 3, 1)) +>1 : number +>"123" : string //TypeParameters function foo1() ->foo1 : () => void ->T1 : T1 ->T2 : T2 +>foo1 : () => void, Symbol(foo1, Decl(commaOperatorOtherValidOperation.ts, 10, 35)) +>T1 : T1, Symbol(T1, Decl(commaOperatorOtherValidOperation.ts, 13, 14)) +>T2 : T2, Symbol(T2, Decl(commaOperatorOtherValidOperation.ts, 13, 17)) { var x: T1; ->x : T1 ->T1 : T1 +>x : T1, Symbol(x, Decl(commaOperatorOtherValidOperation.ts, 15, 7)) +>T1 : T1, Symbol(T1, Decl(commaOperatorOtherValidOperation.ts, 13, 14)) var y: T2; ->y : T2 ->T2 : T2 +>y : T2, Symbol(y, Decl(commaOperatorOtherValidOperation.ts, 16, 7)) +>T2 : T2, Symbol(T2, Decl(commaOperatorOtherValidOperation.ts, 13, 17)) x, y; >x, y : T2 ->x : T1 ->y : T2 +>x : T1, Symbol(x, Decl(commaOperatorOtherValidOperation.ts, 15, 7)) +>y : T2, Symbol(y, Decl(commaOperatorOtherValidOperation.ts, 16, 7)) var resultIsT1 = (y, x); ->resultIsT1 : T1 +>resultIsT1 : T1, Symbol(resultIsT1, Decl(commaOperatorOtherValidOperation.ts, 18, 7)) >(y, x) : T1 >y, x : T1 ->y : T2 ->x : T1 +>y : T2, Symbol(y, Decl(commaOperatorOtherValidOperation.ts, 16, 7)) +>x : T1, Symbol(x, Decl(commaOperatorOtherValidOperation.ts, 15, 7)) } diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandAnyType.types b/tests/baselines/reference/commaOperatorWithSecondOperandAnyType.types index a63e20cf673..a57c3840984 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandAnyType.types +++ b/tests/baselines/reference/commaOperatorWithSecondOperandAnyType.types @@ -1,164 +1,181 @@ === tests/cases/conformance/expressions/commaOperator/commaOperatorWithSecondOperandAnyType.ts === var ANY: any; ->ANY : any +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) var BOOLEAN: boolean; ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandAnyType.ts, 1, 3)) var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandAnyType.ts, 2, 3)) var STRING: string; ->STRING : string +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandAnyType.ts, 3, 3)) var OBJECT: Object; ->OBJECT : Object ->Object : Object +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandAnyType.ts, 4, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) //The second operand type is any ANY, ANY; >ANY, ANY : any ->ANY : any ->ANY : any +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) BOOLEAN, ANY; >BOOLEAN, ANY : any ->BOOLEAN : boolean ->ANY : any +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandAnyType.ts, 1, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) NUMBER, ANY; >NUMBER, ANY : any ->NUMBER : number ->ANY : any +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandAnyType.ts, 2, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) STRING, ANY; >STRING, ANY : any ->STRING : string ->ANY : any +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandAnyType.ts, 3, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) OBJECT, ANY; >OBJECT, ANY : any ->OBJECT : Object ->ANY : any +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandAnyType.ts, 4, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) //Return type is any var resultIsAny1 = (ANY, ANY); ->resultIsAny1 : any +>resultIsAny1 : any, Symbol(resultIsAny1, Decl(commaOperatorWithSecondOperandAnyType.ts, 14, 3)) >(ANY, ANY) : any >ANY, ANY : any ->ANY : any ->ANY : any +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) var resultIsAny2 = (BOOLEAN, ANY); ->resultIsAny2 : any +>resultIsAny2 : any, Symbol(resultIsAny2, Decl(commaOperatorWithSecondOperandAnyType.ts, 15, 3)) >(BOOLEAN, ANY) : any >BOOLEAN, ANY : any ->BOOLEAN : boolean ->ANY : any +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandAnyType.ts, 1, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) var resultIsAny3 = (NUMBER, ANY); ->resultIsAny3 : any +>resultIsAny3 : any, Symbol(resultIsAny3, Decl(commaOperatorWithSecondOperandAnyType.ts, 16, 3)) >(NUMBER, ANY) : any >NUMBER, ANY : any ->NUMBER : number ->ANY : any +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandAnyType.ts, 2, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) var resultIsAny4 = (STRING, ANY); ->resultIsAny4 : any +>resultIsAny4 : any, Symbol(resultIsAny4, Decl(commaOperatorWithSecondOperandAnyType.ts, 17, 3)) >(STRING, ANY) : any >STRING, ANY : any ->STRING : string ->ANY : any +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandAnyType.ts, 3, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) var resultIsAny5 = (OBJECT, ANY); ->resultIsAny5 : any +>resultIsAny5 : any, Symbol(resultIsAny5, Decl(commaOperatorWithSecondOperandAnyType.ts, 18, 3)) >(OBJECT, ANY) : any >OBJECT, ANY : any ->OBJECT : Object ->ANY : any +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandAnyType.ts, 4, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) //Literal and expression var x: any; ->x : any +>x : any, Symbol(x, Decl(commaOperatorWithSecondOperandAnyType.ts, 21, 3)) 1, ANY; >1, ANY : any ->ANY : any +>1 : number +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) ++NUMBER, ANY; >++NUMBER, ANY : any >++NUMBER : number ->NUMBER : number ->ANY : any +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandAnyType.ts, 2, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) "string", [null, 1]; >"string", [null, 1] : number[] +>"string" : string >[null, 1] : number[] +>null : null +>1 : number "string".charAt(0), [null, 1]; >"string".charAt(0), [null, 1] : number[] >"string".charAt(0) : string ->"string".charAt : (pos: number) => string ->charAt : (pos: number) => string +>"string".charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>"string" : string +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number >[null, 1] : number[] +>null : null +>1 : number true, x("any"); >true, x("any") : any +>true : boolean >x("any") : any ->x : any +>x : any, Symbol(x, Decl(commaOperatorWithSecondOperandAnyType.ts, 21, 3)) +>"any" : string !BOOLEAN, x.doSomeThing(); >!BOOLEAN, x.doSomeThing() : any >!BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandAnyType.ts, 1, 3)) >x.doSomeThing() : any >x.doSomeThing : any ->x : any +>x : any, Symbol(x, Decl(commaOperatorWithSecondOperandAnyType.ts, 21, 3)) >doSomeThing : any var resultIsAny6 = (1, ANY); ->resultIsAny6 : any +>resultIsAny6 : any, Symbol(resultIsAny6, Decl(commaOperatorWithSecondOperandAnyType.ts, 30, 3)) >(1, ANY) : any >1, ANY : any ->ANY : any +>1 : number +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) var resultIsAny7 = (++NUMBER, ANY); ->resultIsAny7 : any +>resultIsAny7 : any, Symbol(resultIsAny7, Decl(commaOperatorWithSecondOperandAnyType.ts, 31, 3)) >(++NUMBER, ANY) : any >++NUMBER, ANY : any >++NUMBER : number ->NUMBER : number ->ANY : any +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandAnyType.ts, 2, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandAnyType.ts, 0, 3)) var resultIsAny8 = ("string", null); ->resultIsAny8 : any +>resultIsAny8 : any, Symbol(resultIsAny8, Decl(commaOperatorWithSecondOperandAnyType.ts, 32, 3)) >("string", null) : null >"string", null : null +>"string" : string +>null : null var resultIsAny9 = ("string".charAt(0), undefined); ->resultIsAny9 : any +>resultIsAny9 : any, Symbol(resultIsAny9, Decl(commaOperatorWithSecondOperandAnyType.ts, 33, 3)) >("string".charAt(0), undefined) : undefined >"string".charAt(0), undefined : undefined >"string".charAt(0) : string ->"string".charAt : (pos: number) => string ->charAt : (pos: number) => string ->undefined : undefined +>"string".charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>"string" : string +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number +>undefined : undefined, Symbol(undefined) var resultIsAny10 = (true, x("any")); ->resultIsAny10 : any +>resultIsAny10 : any, Symbol(resultIsAny10, Decl(commaOperatorWithSecondOperandAnyType.ts, 34, 3)) >(true, x("any")) : any >true, x("any") : any +>true : boolean >x("any") : any ->x : any +>x : any, Symbol(x, Decl(commaOperatorWithSecondOperandAnyType.ts, 21, 3)) +>"any" : string var resultIsAny11 = (!BOOLEAN, x.doSomeThing()); ->resultIsAny11 : any +>resultIsAny11 : any, Symbol(resultIsAny11, Decl(commaOperatorWithSecondOperandAnyType.ts, 35, 3)) >(!BOOLEAN, x.doSomeThing()) : any >!BOOLEAN, x.doSomeThing() : any >!BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandAnyType.ts, 1, 3)) >x.doSomeThing() : any >x.doSomeThing : any ->x : any +>x : any, Symbol(x, Decl(commaOperatorWithSecondOperandAnyType.ts, 21, 3)) >doSomeThing : any diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandBooleanType.types b/tests/baselines/reference/commaOperatorWithSecondOperandBooleanType.types index 49a3fdc4cc5..820c61d94b3 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandBooleanType.types +++ b/tests/baselines/reference/commaOperatorWithSecondOperandBooleanType.types @@ -1,158 +1,180 @@ === tests/cases/conformance/expressions/commaOperator/commaOperatorWithSecondOperandBooleanType.ts === var ANY: any; ->ANY : any +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandBooleanType.ts, 0, 3)) var BOOLEAN: boolean; ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandBooleanType.ts, 2, 3)) var STRING: string; ->STRING : string +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandBooleanType.ts, 3, 3)) var OBJECT: Object; ->OBJECT : Object ->Object : Object +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandBooleanType.ts, 4, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) //The second operand type is boolean ANY, BOOLEAN; >ANY, BOOLEAN : boolean ->ANY : any ->BOOLEAN : boolean +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandBooleanType.ts, 0, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) BOOLEAN, BOOLEAN; >BOOLEAN, BOOLEAN : boolean ->BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) NUMBER, BOOLEAN; >NUMBER, BOOLEAN : boolean ->NUMBER : number ->BOOLEAN : boolean +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandBooleanType.ts, 2, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) STRING, BOOLEAN; >STRING, BOOLEAN : boolean ->STRING : string ->BOOLEAN : boolean +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandBooleanType.ts, 3, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) OBJECT, BOOLEAN; >OBJECT, BOOLEAN : boolean ->OBJECT : Object ->BOOLEAN : boolean +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandBooleanType.ts, 4, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) //Return type is boolean var resultIsBoolean1 = (ANY, BOOLEAN); ->resultIsBoolean1 : boolean +>resultIsBoolean1 : boolean, Symbol(resultIsBoolean1, Decl(commaOperatorWithSecondOperandBooleanType.ts, 14, 3)) >(ANY, BOOLEAN) : boolean >ANY, BOOLEAN : boolean ->ANY : any ->BOOLEAN : boolean +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandBooleanType.ts, 0, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) var resultIsBoolean2 = (BOOLEAN, BOOLEAN); ->resultIsBoolean2 : boolean +>resultIsBoolean2 : boolean, Symbol(resultIsBoolean2, Decl(commaOperatorWithSecondOperandBooleanType.ts, 15, 3)) >(BOOLEAN, BOOLEAN) : boolean >BOOLEAN, BOOLEAN : boolean ->BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) var resultIsBoolean3 = (NUMBER, BOOLEAN); ->resultIsBoolean3 : boolean +>resultIsBoolean3 : boolean, Symbol(resultIsBoolean3, Decl(commaOperatorWithSecondOperandBooleanType.ts, 16, 3)) >(NUMBER, BOOLEAN) : boolean >NUMBER, BOOLEAN : boolean ->NUMBER : number ->BOOLEAN : boolean +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandBooleanType.ts, 2, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) var resultIsBoolean4 = (STRING, BOOLEAN); ->resultIsBoolean4 : boolean +>resultIsBoolean4 : boolean, Symbol(resultIsBoolean4, Decl(commaOperatorWithSecondOperandBooleanType.ts, 17, 3)) >(STRING, BOOLEAN) : boolean >STRING, BOOLEAN : boolean ->STRING : string ->BOOLEAN : boolean +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandBooleanType.ts, 3, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) var resultIsBoolean5 = (OBJECT, BOOLEAN); ->resultIsBoolean5 : boolean +>resultIsBoolean5 : boolean, Symbol(resultIsBoolean5, Decl(commaOperatorWithSecondOperandBooleanType.ts, 18, 3)) >(OBJECT, BOOLEAN) : boolean >OBJECT, BOOLEAN : boolean ->OBJECT : Object ->BOOLEAN : boolean +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandBooleanType.ts, 4, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) //Literal and expression null, BOOLEAN; >null, BOOLEAN : boolean ->BOOLEAN : boolean +>null : null +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) ANY = undefined, BOOLEAN; >ANY = undefined, BOOLEAN : boolean >ANY = undefined : undefined ->ANY : any ->undefined : undefined ->BOOLEAN : boolean +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandBooleanType.ts, 0, 3)) +>undefined : undefined, Symbol(undefined) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) 1, true; >1, true : boolean +>1 : number +>true : boolean ++NUMBER, true; >++NUMBER, true : boolean >++NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandBooleanType.ts, 2, 3)) +>true : boolean [1, 2, 3], !BOOLEAN; >[1, 2, 3], !BOOLEAN : boolean >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number >!BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) OBJECT = [1, 2, 3], BOOLEAN = false; >OBJECT = [1, 2, 3], BOOLEAN = false : boolean >OBJECT = [1, 2, 3] : number[] ->OBJECT : Object +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandBooleanType.ts, 4, 3)) >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number >BOOLEAN = false : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) +>false : boolean var resultIsBoolean6 = (null, BOOLEAN); ->resultIsBoolean6 : boolean +>resultIsBoolean6 : boolean, Symbol(resultIsBoolean6, Decl(commaOperatorWithSecondOperandBooleanType.ts, 28, 3)) >(null, BOOLEAN) : boolean >null, BOOLEAN : boolean ->BOOLEAN : boolean +>null : null +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) var resultIsBoolean7 = (ANY = undefined, BOOLEAN); ->resultIsBoolean7 : boolean +>resultIsBoolean7 : boolean, Symbol(resultIsBoolean7, Decl(commaOperatorWithSecondOperandBooleanType.ts, 29, 3)) >(ANY = undefined, BOOLEAN) : boolean >ANY = undefined, BOOLEAN : boolean >ANY = undefined : undefined ->ANY : any ->undefined : undefined ->BOOLEAN : boolean +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandBooleanType.ts, 0, 3)) +>undefined : undefined, Symbol(undefined) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) var resultIsBoolean8 = (1, true); ->resultIsBoolean8 : boolean +>resultIsBoolean8 : boolean, Symbol(resultIsBoolean8, Decl(commaOperatorWithSecondOperandBooleanType.ts, 30, 3)) >(1, true) : boolean >1, true : boolean +>1 : number +>true : boolean var resultIsBoolean9 = (++NUMBER, true); ->resultIsBoolean9 : boolean +>resultIsBoolean9 : boolean, Symbol(resultIsBoolean9, Decl(commaOperatorWithSecondOperandBooleanType.ts, 31, 3)) >(++NUMBER, true) : boolean >++NUMBER, true : boolean >++NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandBooleanType.ts, 2, 3)) +>true : boolean var resultIsBoolean10 = ([1, 2, 3], !BOOLEAN); ->resultIsBoolean10 : boolean +>resultIsBoolean10 : boolean, Symbol(resultIsBoolean10, Decl(commaOperatorWithSecondOperandBooleanType.ts, 32, 3)) >([1, 2, 3], !BOOLEAN) : boolean >[1, 2, 3], !BOOLEAN : boolean >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number >!BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) var resultIsBoolean11 = (OBJECT = [1, 2, 3], BOOLEAN = false); ->resultIsBoolean11 : boolean +>resultIsBoolean11 : boolean, Symbol(resultIsBoolean11, Decl(commaOperatorWithSecondOperandBooleanType.ts, 33, 3)) >(OBJECT = [1, 2, 3], BOOLEAN = false) : boolean >OBJECT = [1, 2, 3], BOOLEAN = false : boolean >OBJECT = [1, 2, 3] : number[] ->OBJECT : Object +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandBooleanType.ts, 4, 3)) >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number >BOOLEAN = false : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandBooleanType.ts, 1, 3)) +>false : boolean diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandNumberType.types b/tests/baselines/reference/commaOperatorWithSecondOperandNumberType.types index a144466d4c8..d9c98ea7f29 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandNumberType.types +++ b/tests/baselines/reference/commaOperatorWithSecondOperandNumberType.types @@ -1,158 +1,174 @@ === tests/cases/conformance/expressions/commaOperator/commaOperatorWithSecondOperandNumberType.ts === var ANY: any; ->ANY : any +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandNumberType.ts, 0, 3)) var BOOLEAN: boolean; ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandNumberType.ts, 1, 3)) var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) var STRING: string; ->STRING : string +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandNumberType.ts, 3, 3)) var OBJECT: Object; ->OBJECT : Object ->Object : Object +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandNumberType.ts, 4, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) //The second operand type is number ANY, NUMBER; >ANY, NUMBER : number ->ANY : any ->NUMBER : number +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandNumberType.ts, 0, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) BOOLEAN, NUMBER; >BOOLEAN, NUMBER : number ->BOOLEAN : boolean ->NUMBER : number +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandNumberType.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) NUMBER, NUMBER; >NUMBER, NUMBER : number ->NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) STRING, NUMBER; >STRING, NUMBER : number ->STRING : string ->NUMBER : number +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandNumberType.ts, 3, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) OBJECT, NUMBER; >OBJECT, NUMBER : number ->OBJECT : Object ->NUMBER : number +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandNumberType.ts, 4, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) //Return type is number var resultIsNumber1 = (ANY, NUMBER); ->resultIsNumber1 : number +>resultIsNumber1 : number, Symbol(resultIsNumber1, Decl(commaOperatorWithSecondOperandNumberType.ts, 14, 3)) >(ANY, NUMBER) : number >ANY, NUMBER : number ->ANY : any ->NUMBER : number +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandNumberType.ts, 0, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) var resultIsNumber2 = (BOOLEAN, NUMBER); ->resultIsNumber2 : number +>resultIsNumber2 : number, Symbol(resultIsNumber2, Decl(commaOperatorWithSecondOperandNumberType.ts, 15, 3)) >(BOOLEAN, NUMBER) : number >BOOLEAN, NUMBER : number ->BOOLEAN : boolean ->NUMBER : number +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandNumberType.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) var resultIsNumber3 = (NUMBER, NUMBER); ->resultIsNumber3 : number +>resultIsNumber3 : number, Symbol(resultIsNumber3, Decl(commaOperatorWithSecondOperandNumberType.ts, 16, 3)) >(NUMBER, NUMBER) : number >NUMBER, NUMBER : number ->NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) var resultIsNumber4 = (STRING, NUMBER); ->resultIsNumber4 : number +>resultIsNumber4 : number, Symbol(resultIsNumber4, Decl(commaOperatorWithSecondOperandNumberType.ts, 17, 3)) >(STRING, NUMBER) : number >STRING, NUMBER : number ->STRING : string ->NUMBER : number +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandNumberType.ts, 3, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) var resultIsNumber5 = (OBJECT, NUMBER); ->resultIsNumber5 : number +>resultIsNumber5 : number, Symbol(resultIsNumber5, Decl(commaOperatorWithSecondOperandNumberType.ts, 18, 3)) >(OBJECT, NUMBER) : number >OBJECT, NUMBER : number ->OBJECT : Object ->NUMBER : number +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandNumberType.ts, 4, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) //Literal and expression null, NUMBER; >null, NUMBER : number ->NUMBER : number +>null : null +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) ANY = undefined, NUMBER; >ANY = undefined, NUMBER : number >ANY = undefined : undefined ->ANY : any ->undefined : undefined ->NUMBER : number +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandNumberType.ts, 0, 3)) +>undefined : undefined, Symbol(undefined) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) true, 1; >true, 1 : number +>true : boolean +>1 : number BOOLEAN = false, 1; >BOOLEAN = false, 1 : number >BOOLEAN = false : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandNumberType.ts, 1, 3)) +>false : boolean +>1 : number "", NUMBER = 1; >"", NUMBER = 1 : number +>"" : string >NUMBER = 1 : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) +>1 : number STRING.trim(), NUMBER = 1; >STRING.trim(), NUMBER = 1 : number >STRING.trim() : string ->STRING.trim : () => string ->STRING : string ->trim : () => string +>STRING.trim : () => string, Symbol(String.trim, Decl(lib.d.ts, 411, 32)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandNumberType.ts, 3, 3)) +>trim : () => string, Symbol(String.trim, Decl(lib.d.ts, 411, 32)) >NUMBER = 1 : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) +>1 : number var resultIsNumber6 = (null, NUMBER); ->resultIsNumber6 : number +>resultIsNumber6 : number, Symbol(resultIsNumber6, Decl(commaOperatorWithSecondOperandNumberType.ts, 28, 3)) >(null, NUMBER) : number >null, NUMBER : number ->NUMBER : number +>null : null +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) var resultIsNumber7 = (ANY = undefined, NUMBER); ->resultIsNumber7 : number +>resultIsNumber7 : number, Symbol(resultIsNumber7, Decl(commaOperatorWithSecondOperandNumberType.ts, 29, 3)) >(ANY = undefined, NUMBER) : number >ANY = undefined, NUMBER : number >ANY = undefined : undefined ->ANY : any ->undefined : undefined ->NUMBER : number +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandNumberType.ts, 0, 3)) +>undefined : undefined, Symbol(undefined) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) var resultIsNumber8 = (true, 1); ->resultIsNumber8 : number +>resultIsNumber8 : number, Symbol(resultIsNumber8, Decl(commaOperatorWithSecondOperandNumberType.ts, 30, 3)) >(true, 1) : number >true, 1 : number +>true : boolean +>1 : number var resultIsNumber9 = (BOOLEAN = false, 1); ->resultIsNumber9 : number +>resultIsNumber9 : number, Symbol(resultIsNumber9, Decl(commaOperatorWithSecondOperandNumberType.ts, 31, 3)) >(BOOLEAN = false, 1) : number >BOOLEAN = false, 1 : number >BOOLEAN = false : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandNumberType.ts, 1, 3)) +>false : boolean +>1 : number var resultIsNumber10 = ("", NUMBER = 1); ->resultIsNumber10 : number +>resultIsNumber10 : number, Symbol(resultIsNumber10, Decl(commaOperatorWithSecondOperandNumberType.ts, 32, 3)) >("", NUMBER = 1) : number >"", NUMBER = 1 : number +>"" : string >NUMBER = 1 : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) +>1 : number var resultIsNumber11 = (STRING.trim(), NUMBER = 1); ->resultIsNumber11 : number +>resultIsNumber11 : number, Symbol(resultIsNumber11, Decl(commaOperatorWithSecondOperandNumberType.ts, 33, 3)) >(STRING.trim(), NUMBER = 1) : number >STRING.trim(), NUMBER = 1 : number >STRING.trim() : string ->STRING.trim : () => string ->STRING : string ->trim : () => string +>STRING.trim : () => string, Symbol(String.trim, Decl(lib.d.ts, 411, 32)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandNumberType.ts, 3, 3)) +>trim : () => string, Symbol(String.trim, Decl(lib.d.ts, 411, 32)) >NUMBER = 1 : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandNumberType.ts, 2, 3)) +>1 : number diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.types b/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.types index ba2663dd271..d0724ba0615 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.types +++ b/tests/baselines/reference/commaOperatorWithSecondOperandObjectType.types @@ -1,169 +1,179 @@ === tests/cases/conformance/expressions/commaOperator/commaOperatorWithSecondOperandObjectType.ts === var ANY: any; ->ANY : any +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandObjectType.ts, 0, 3)) var BOOLEAN: boolean; ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandObjectType.ts, 1, 3)) var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandObjectType.ts, 2, 3)) var STRING: string; ->STRING : string +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandObjectType.ts, 3, 3)) var OBJECT: Object; ->OBJECT : Object ->Object : Object +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) class CLASS { ->CLASS : CLASS +>CLASS : CLASS, Symbol(CLASS, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 19)) num: number; ->num : number +>num : number, Symbol(num, Decl(commaOperatorWithSecondOperandObjectType.ts, 6, 13)) } //The second operand type is Object ANY, OBJECT; >ANY, OBJECT : Object ->ANY : any ->OBJECT : Object +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandObjectType.ts, 0, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) BOOLEAN, OBJECT; >BOOLEAN, OBJECT : Object ->BOOLEAN : boolean ->OBJECT : Object +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandObjectType.ts, 1, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) NUMBER, OBJECT; >NUMBER, OBJECT : Object ->NUMBER : number ->OBJECT : Object +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandObjectType.ts, 2, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) STRING, OBJECT; >STRING, OBJECT : Object ->STRING : string ->OBJECT : Object +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandObjectType.ts, 3, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) OBJECT, OBJECT; >OBJECT, OBJECT : Object ->OBJECT : Object ->OBJECT : Object +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) //Return type is Object var resultIsObject1 = (ANY, OBJECT); ->resultIsObject1 : Object +>resultIsObject1 : Object, Symbol(resultIsObject1, Decl(commaOperatorWithSecondOperandObjectType.ts, 18, 3)) >(ANY, OBJECT) : Object >ANY, OBJECT : Object ->ANY : any ->OBJECT : Object +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandObjectType.ts, 0, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) var resultIsObject2 = (BOOLEAN, OBJECT); ->resultIsObject2 : Object +>resultIsObject2 : Object, Symbol(resultIsObject2, Decl(commaOperatorWithSecondOperandObjectType.ts, 19, 3)) >(BOOLEAN, OBJECT) : Object >BOOLEAN, OBJECT : Object ->BOOLEAN : boolean ->OBJECT : Object +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandObjectType.ts, 1, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) var resultIsObject3 = (NUMBER, OBJECT); ->resultIsObject3 : Object +>resultIsObject3 : Object, Symbol(resultIsObject3, Decl(commaOperatorWithSecondOperandObjectType.ts, 20, 3)) >(NUMBER, OBJECT) : Object >NUMBER, OBJECT : Object ->NUMBER : number ->OBJECT : Object +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandObjectType.ts, 2, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) var resultIsObject4 = (STRING, OBJECT); ->resultIsObject4 : Object +>resultIsObject4 : Object, Symbol(resultIsObject4, Decl(commaOperatorWithSecondOperandObjectType.ts, 21, 3)) >(STRING, OBJECT) : Object >STRING, OBJECT : Object ->STRING : string ->OBJECT : Object +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandObjectType.ts, 3, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) var resultIsObject5 = (OBJECT, OBJECT); ->resultIsObject5 : Object +>resultIsObject5 : Object, Symbol(resultIsObject5, Decl(commaOperatorWithSecondOperandObjectType.ts, 22, 3)) >(OBJECT, OBJECT) : Object >OBJECT, OBJECT : Object ->OBJECT : Object ->OBJECT : Object +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) //Literal and expression null, OBJECT >null, OBJECT : Object ->OBJECT : Object +>null : null +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) ANY = null, OBJECT >ANY = null, OBJECT : Object >ANY = null : null ->ANY : any ->OBJECT : Object +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandObjectType.ts, 0, 3)) +>null : null +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) true, {} >true, {} : {} +>true : boolean >{} : {} !BOOLEAN, [] >!BOOLEAN, [] : undefined[] >!BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandObjectType.ts, 1, 3)) >[] : undefined[] "string", new Date() >"string", new Date() : Date +>"string" : string >new Date() : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) STRING.toLowerCase(), new CLASS() >STRING.toLowerCase(), new CLASS() : CLASS >STRING.toLowerCase() : string ->STRING.toLowerCase : () => string ->STRING : string ->toLowerCase : () => string +>STRING.toLowerCase : () => string, Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandObjectType.ts, 3, 3)) +>toLowerCase : () => string, Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51)) >new CLASS() : CLASS ->CLASS : typeof CLASS +>CLASS : typeof CLASS, Symbol(CLASS, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 19)) var resultIsObject6 = (null, OBJECT); ->resultIsObject6 : Object +>resultIsObject6 : Object, Symbol(resultIsObject6, Decl(commaOperatorWithSecondOperandObjectType.ts, 32, 3)) >(null, OBJECT) : Object >null, OBJECT : Object ->OBJECT : Object +>null : null +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) var resultIsObject7 = (ANY = null, OBJECT); ->resultIsObject7 : Object +>resultIsObject7 : Object, Symbol(resultIsObject7, Decl(commaOperatorWithSecondOperandObjectType.ts, 33, 3)) >(ANY = null, OBJECT) : Object >ANY = null, OBJECT : Object >ANY = null : null ->ANY : any ->OBJECT : Object +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandObjectType.ts, 0, 3)) +>null : null +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 3)) var resultIsObject8 = (true, {}); ->resultIsObject8 : {} +>resultIsObject8 : {}, Symbol(resultIsObject8, Decl(commaOperatorWithSecondOperandObjectType.ts, 34, 3)) >(true, {}) : {} >true, {} : {} +>true : boolean >{} : {} var resultIsObject9 = (!BOOLEAN, { a: 1, b: "s" }); ->resultIsObject9 : { a: number; b: string; } +>resultIsObject9 : { a: number; b: string; }, Symbol(resultIsObject9, Decl(commaOperatorWithSecondOperandObjectType.ts, 35, 3)) >(!BOOLEAN, { a: 1, b: "s" }) : { a: number; b: string; } >!BOOLEAN, { a: 1, b: "s" } : { a: number; b: string; } >!BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandObjectType.ts, 1, 3)) >{ a: 1, b: "s" } : { a: number; b: string; } ->a : number ->b : string +>a : number, Symbol(a, Decl(commaOperatorWithSecondOperandObjectType.ts, 35, 34)) +>1 : number +>b : string, Symbol(b, Decl(commaOperatorWithSecondOperandObjectType.ts, 35, 40)) +>"s" : string var resultIsObject10 = ("string", new Date()); ->resultIsObject10 : Date +>resultIsObject10 : Date, Symbol(resultIsObject10, Decl(commaOperatorWithSecondOperandObjectType.ts, 36, 3)) >("string", new Date()) : Date >"string", new Date() : Date +>"string" : string >new Date() : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var resultIsObject11 = (STRING.toLowerCase(), new CLASS()); ->resultIsObject11 : CLASS +>resultIsObject11 : CLASS, Symbol(resultIsObject11, Decl(commaOperatorWithSecondOperandObjectType.ts, 37, 3)) >(STRING.toLowerCase(), new CLASS()) : CLASS >STRING.toLowerCase(), new CLASS() : CLASS >STRING.toLowerCase() : string ->STRING.toLowerCase : () => string ->STRING : string ->toLowerCase : () => string +>STRING.toLowerCase : () => string, Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandObjectType.ts, 3, 3)) +>toLowerCase : () => string, Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51)) >new CLASS() : CLASS ->CLASS : typeof CLASS +>CLASS : typeof CLASS, Symbol(CLASS, Decl(commaOperatorWithSecondOperandObjectType.ts, 4, 19)) diff --git a/tests/baselines/reference/commaOperatorWithSecondOperandStringType.types b/tests/baselines/reference/commaOperatorWithSecondOperandStringType.types index d5b2f50ca33..8170a66746b 100644 --- a/tests/baselines/reference/commaOperatorWithSecondOperandStringType.types +++ b/tests/baselines/reference/commaOperatorWithSecondOperandStringType.types @@ -1,169 +1,183 @@ === tests/cases/conformance/expressions/commaOperator/commaOperatorWithSecondOperandStringType.ts === var ANY: any; ->ANY : any +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandStringType.ts, 0, 3)) var BOOLEAN: boolean; ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandStringType.ts, 1, 3)) var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandStringType.ts, 2, 3)) var STRING: string; ->STRING : string +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) var OBJECT: Object; ->OBJECT : Object ->Object : Object +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandStringType.ts, 4, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var resultIsString: string; ->resultIsString : string +>resultIsString : string, Symbol(resultIsString, Decl(commaOperatorWithSecondOperandStringType.ts, 6, 3)) //The second operand is string ANY, STRING; >ANY, STRING : string ->ANY : any ->STRING : string +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandStringType.ts, 0, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) BOOLEAN, STRING; >BOOLEAN, STRING : string ->BOOLEAN : boolean ->STRING : string +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandStringType.ts, 1, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) NUMBER, STRING; >NUMBER, STRING : string ->NUMBER : number ->STRING : string +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandStringType.ts, 2, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) STRING, STRING; >STRING, STRING : string ->STRING : string ->STRING : string +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) OBJECT, STRING; >OBJECT, STRING : string ->OBJECT : Object ->STRING : string +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandStringType.ts, 4, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) //Return type is string var resultIsString1 = (ANY, STRING); ->resultIsString1 : string +>resultIsString1 : string, Symbol(resultIsString1, Decl(commaOperatorWithSecondOperandStringType.ts, 16, 3)) >(ANY, STRING) : string >ANY, STRING : string ->ANY : any ->STRING : string +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandStringType.ts, 0, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) var resultIsString2 = (BOOLEAN, STRING); ->resultIsString2 : string +>resultIsString2 : string, Symbol(resultIsString2, Decl(commaOperatorWithSecondOperandStringType.ts, 17, 3)) >(BOOLEAN, STRING) : string >BOOLEAN, STRING : string ->BOOLEAN : boolean ->STRING : string +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandStringType.ts, 1, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) var resultIsString3 = (NUMBER, STRING); ->resultIsString3 : string +>resultIsString3 : string, Symbol(resultIsString3, Decl(commaOperatorWithSecondOperandStringType.ts, 18, 3)) >(NUMBER, STRING) : string >NUMBER, STRING : string ->NUMBER : number ->STRING : string +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandStringType.ts, 2, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) var resultIsString4 = (STRING, STRING); ->resultIsString4 : string +>resultIsString4 : string, Symbol(resultIsString4, Decl(commaOperatorWithSecondOperandStringType.ts, 19, 3)) >(STRING, STRING) : string >STRING, STRING : string ->STRING : string ->STRING : string +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) var resultIsString5 = (OBJECT, STRING); ->resultIsString5 : string +>resultIsString5 : string, Symbol(resultIsString5, Decl(commaOperatorWithSecondOperandStringType.ts, 20, 3)) >(OBJECT, STRING) : string >OBJECT, STRING : string ->OBJECT : Object ->STRING : string +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandStringType.ts, 4, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) //Literal and expression null, STRING; >null, STRING : string ->STRING : string +>null : null +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) ANY = new Date(), STRING; >ANY = new Date(), STRING : string >ANY = new Date() : Date ->ANY : any +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandStringType.ts, 0, 3)) >new Date() : Date ->Date : DateConstructor ->STRING : string +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) true, ""; >true, "" : string +>true : boolean +>"" : string BOOLEAN == undefined, ""; >BOOLEAN == undefined, "" : string >BOOLEAN == undefined : boolean ->BOOLEAN : boolean ->undefined : undefined +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandStringType.ts, 1, 3)) +>undefined : undefined, Symbol(undefined) +>"" : string ["a", "b"], NUMBER.toString(); >["a", "b"], NUMBER.toString() : string >["a", "b"] : string[] +>"a" : string +>"b" : string >NUMBER.toString() : string ->NUMBER.toString : (radix?: number) => string ->NUMBER : number ->toString : (radix?: number) => string +>NUMBER.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandStringType.ts, 2, 3)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) OBJECT = new Object, STRING + "string"; >OBJECT = new Object, STRING + "string" : string >OBJECT = new Object : Object ->OBJECT : Object +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorWithSecondOperandStringType.ts, 4, 3)) >new Object : Object ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) >STRING + "string" : string ->STRING : string +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) +>"string" : string var resultIsString6 = (null, STRING); ->resultIsString6 : string +>resultIsString6 : string, Symbol(resultIsString6, Decl(commaOperatorWithSecondOperandStringType.ts, 30, 3)) >(null, STRING) : string >null, STRING : string ->STRING : string +>null : null +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) var resultIsString7 = (ANY = new Date(), STRING); ->resultIsString7 : string +>resultIsString7 : string, Symbol(resultIsString7, Decl(commaOperatorWithSecondOperandStringType.ts, 31, 3)) >(ANY = new Date(), STRING) : string >ANY = new Date(), STRING : string >ANY = new Date() : Date ->ANY : any +>ANY : any, Symbol(ANY, Decl(commaOperatorWithSecondOperandStringType.ts, 0, 3)) >new Date() : Date ->Date : DateConstructor ->STRING : string +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) var resultIsString8 = (true, ""); ->resultIsString8 : string +>resultIsString8 : string, Symbol(resultIsString8, Decl(commaOperatorWithSecondOperandStringType.ts, 32, 3)) >(true, "") : string >true, "" : string +>true : boolean +>"" : string var resultIsString9 = (BOOLEAN == undefined, ""); ->resultIsString9 : string +>resultIsString9 : string, Symbol(resultIsString9, Decl(commaOperatorWithSecondOperandStringType.ts, 33, 3)) >(BOOLEAN == undefined, "") : string >BOOLEAN == undefined, "" : string >BOOLEAN == undefined : boolean ->BOOLEAN : boolean ->undefined : undefined +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorWithSecondOperandStringType.ts, 1, 3)) +>undefined : undefined, Symbol(undefined) +>"" : string var resultIsString10 = (["a", "b"], NUMBER.toString()); ->resultIsString10 : string +>resultIsString10 : string, Symbol(resultIsString10, Decl(commaOperatorWithSecondOperandStringType.ts, 34, 3)) >(["a", "b"], NUMBER.toString()) : string >["a", "b"], NUMBER.toString() : string >["a", "b"] : string[] +>"a" : string +>"b" : string >NUMBER.toString() : string ->NUMBER.toString : (radix?: number) => string ->NUMBER : number ->toString : (radix?: number) => string +>NUMBER.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorWithSecondOperandStringType.ts, 2, 3)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) var resultIsString11 = (new Object, STRING + "string"); ->resultIsString11 : string +>resultIsString11 : string, Symbol(resultIsString11, Decl(commaOperatorWithSecondOperandStringType.ts, 35, 3)) >(new Object, STRING + "string") : string >new Object, STRING + "string" : string >new Object : Object ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) >STRING + "string" : string ->STRING : string +>STRING : string, Symbol(STRING, Decl(commaOperatorWithSecondOperandStringType.ts, 3, 3)) +>"string" : string diff --git a/tests/baselines/reference/commaOperatorsMultipleOperators.types b/tests/baselines/reference/commaOperatorsMultipleOperators.types index 12b90e8ec77..25b7d63459d 100644 --- a/tests/baselines/reference/commaOperatorsMultipleOperators.types +++ b/tests/baselines/reference/commaOperatorsMultipleOperators.types @@ -1,136 +1,144 @@ === tests/cases/conformance/expressions/commaOperator/commaOperatorsMultipleOperators.ts === var ANY: any; ->ANY : any +>ANY : any, Symbol(ANY, Decl(commaOperatorsMultipleOperators.ts, 0, 3)) var BOOLEAN: boolean; ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorsMultipleOperators.ts, 1, 3)) var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorsMultipleOperators.ts, 2, 3)) var STRING: string; ->STRING : string +>STRING : string, Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) var OBJECT: Object; ->OBJECT : Object ->Object : Object +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorsMultipleOperators.ts, 4, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) //Expected: work well ANY, BOOLEAN, NUMBER; >ANY, BOOLEAN, NUMBER : number >ANY, BOOLEAN : boolean ->ANY : any ->BOOLEAN : boolean ->NUMBER : number +>ANY : any, Symbol(ANY, Decl(commaOperatorsMultipleOperators.ts, 0, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorsMultipleOperators.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorsMultipleOperators.ts, 2, 3)) BOOLEAN, NUMBER, STRING; >BOOLEAN, NUMBER, STRING : string >BOOLEAN, NUMBER : number ->BOOLEAN : boolean ->NUMBER : number ->STRING : string +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorsMultipleOperators.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorsMultipleOperators.ts, 2, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) NUMBER, STRING, OBJECT; >NUMBER, STRING, OBJECT : Object >NUMBER, STRING : string ->NUMBER : number ->STRING : string ->OBJECT : Object +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorsMultipleOperators.ts, 2, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorsMultipleOperators.ts, 4, 3)) STRING, OBJECT, ANY; >STRING, OBJECT, ANY : any >STRING, OBJECT : Object ->STRING : string ->OBJECT : Object ->ANY : any +>STRING : string, Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorsMultipleOperators.ts, 4, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorsMultipleOperators.ts, 0, 3)) OBJECT, ANY, BOOLEAN; >OBJECT, ANY, BOOLEAN : boolean >OBJECT, ANY : any ->OBJECT : Object ->ANY : any ->BOOLEAN : boolean +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorsMultipleOperators.ts, 4, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorsMultipleOperators.ts, 0, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorsMultipleOperators.ts, 1, 3)) //Results should have the same type as the third operand var resultIsAny1 = (STRING, OBJECT, ANY); ->resultIsAny1 : any +>resultIsAny1 : any, Symbol(resultIsAny1, Decl(commaOperatorsMultipleOperators.ts, 14, 3)) >(STRING, OBJECT, ANY) : any >STRING, OBJECT, ANY : any >STRING, OBJECT : Object ->STRING : string ->OBJECT : Object ->ANY : any +>STRING : string, Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorsMultipleOperators.ts, 4, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorsMultipleOperators.ts, 0, 3)) var resultIsBoolean1 = (OBJECT, ANY, BOOLEAN); ->resultIsBoolean1 : boolean +>resultIsBoolean1 : boolean, Symbol(resultIsBoolean1, Decl(commaOperatorsMultipleOperators.ts, 15, 3)) >(OBJECT, ANY, BOOLEAN) : boolean >OBJECT, ANY, BOOLEAN : boolean >OBJECT, ANY : any ->OBJECT : Object ->ANY : any ->BOOLEAN : boolean +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorsMultipleOperators.ts, 4, 3)) +>ANY : any, Symbol(ANY, Decl(commaOperatorsMultipleOperators.ts, 0, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorsMultipleOperators.ts, 1, 3)) var resultIsNumber1 = (ANY, BOOLEAN, NUMBER); ->resultIsNumber1 : number +>resultIsNumber1 : number, Symbol(resultIsNumber1, Decl(commaOperatorsMultipleOperators.ts, 16, 3)) >(ANY, BOOLEAN, NUMBER) : number >ANY, BOOLEAN, NUMBER : number >ANY, BOOLEAN : boolean ->ANY : any ->BOOLEAN : boolean ->NUMBER : number +>ANY : any, Symbol(ANY, Decl(commaOperatorsMultipleOperators.ts, 0, 3)) +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorsMultipleOperators.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorsMultipleOperators.ts, 2, 3)) var resultIsString1 = (BOOLEAN, NUMBER, STRING); ->resultIsString1 : string +>resultIsString1 : string, Symbol(resultIsString1, Decl(commaOperatorsMultipleOperators.ts, 17, 3)) >(BOOLEAN, NUMBER, STRING) : string >BOOLEAN, NUMBER, STRING : string >BOOLEAN, NUMBER : number ->BOOLEAN : boolean ->NUMBER : number ->STRING : string +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(commaOperatorsMultipleOperators.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorsMultipleOperators.ts, 2, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) var resultIsObject1 = (NUMBER, STRING, OBJECT); ->resultIsObject1 : Object +>resultIsObject1 : Object, Symbol(resultIsObject1, Decl(commaOperatorsMultipleOperators.ts, 18, 3)) >(NUMBER, STRING, OBJECT) : Object >NUMBER, STRING, OBJECT : Object >NUMBER, STRING : string ->NUMBER : number ->STRING : string ->OBJECT : Object +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorsMultipleOperators.ts, 2, 3)) +>STRING : string, Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) +>OBJECT : Object, Symbol(OBJECT, Decl(commaOperatorsMultipleOperators.ts, 4, 3)) //Literal and expression null, true, 1; >null, true, 1 : number >null, true : boolean +>null : null +>true : boolean +>1 : number ++NUMBER, STRING.charAt(0), new Object(); >++NUMBER, STRING.charAt(0), new Object() : Object >++NUMBER, STRING.charAt(0) : string >++NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorsMultipleOperators.ts, 2, 3)) >STRING.charAt(0) : string ->STRING.charAt : (pos: number) => string ->STRING : string ->charAt : (pos: number) => string +>STRING.charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>STRING : string, Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number >new Object() : Object ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var resultIsNumber2 = (null, true, 1); ->resultIsNumber2 : number +>resultIsNumber2 : number, Symbol(resultIsNumber2, Decl(commaOperatorsMultipleOperators.ts, 24, 3)) >(null, true, 1) : number >null, true, 1 : number >null, true : boolean +>null : null +>true : boolean +>1 : number var resultIsObject2 = (++NUMBER, STRING.charAt(0), new Object()); ->resultIsObject2 : Object +>resultIsObject2 : Object, Symbol(resultIsObject2, Decl(commaOperatorsMultipleOperators.ts, 25, 3)) >(++NUMBER, STRING.charAt(0), new Object()) : Object >++NUMBER, STRING.charAt(0), new Object() : Object >++NUMBER, STRING.charAt(0) : string >++NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(commaOperatorsMultipleOperators.ts, 2, 3)) >STRING.charAt(0) : string ->STRING.charAt : (pos: number) => string ->STRING : string ->charAt : (pos: number) => string +>STRING.charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>STRING : string, Symbol(STRING, Decl(commaOperatorsMultipleOperators.ts, 3, 3)) +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number >new Object() : Object ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) diff --git a/tests/baselines/reference/commentBeforeStaticMethod1.types b/tests/baselines/reference/commentBeforeStaticMethod1.types index db674324306..b23e5fee1cf 100644 --- a/tests/baselines/reference/commentBeforeStaticMethod1.types +++ b/tests/baselines/reference/commentBeforeStaticMethod1.types @@ -1,13 +1,14 @@ === tests/cases/compiler/commentBeforeStaticMethod1.ts === class C { ->C : C +>C : C, Symbol(C, Decl(commentBeforeStaticMethod1.ts, 0, 0)) /** * Returns bar */ public static foo(): string { ->foo : () => string +>foo : () => string, Symbol(C.foo, Decl(commentBeforeStaticMethod1.ts, 0, 9)) return "bar"; +>"bar" : string } } diff --git a/tests/baselines/reference/commentEmitAtEndOfFile1.types b/tests/baselines/reference/commentEmitAtEndOfFile1.types index 76b5c868cb6..f772592985c 100644 --- a/tests/baselines/reference/commentEmitAtEndOfFile1.types +++ b/tests/baselines/reference/commentEmitAtEndOfFile1.types @@ -1,17 +1,18 @@ === tests/cases/compiler/commentEmitAtEndOfFile1.ts === // test var f = '' ->f : string +>f : string, Symbol(f, Decl(commentEmitAtEndOfFile1.ts, 1, 3)) +>'' : string // test #2 module foo { ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(commentEmitAtEndOfFile1.ts, 1, 10)) function bar() { } ->bar : () => void +>bar : () => void, Symbol(bar, Decl(commentEmitAtEndOfFile1.ts, 3, 12)) } // test #3 module empty { ->empty : unknown +>empty : any, Symbol(empty, Decl(commentEmitAtEndOfFile1.ts, 5, 1)) } // test #4 diff --git a/tests/baselines/reference/commentEmitWithCommentOnLastLine.types b/tests/baselines/reference/commentEmitWithCommentOnLastLine.types index d59c42d3795..7e4348804f1 100644 --- a/tests/baselines/reference/commentEmitWithCommentOnLastLine.types +++ b/tests/baselines/reference/commentEmitWithCommentOnLastLine.types @@ -1,6 +1,6 @@ === tests/cases/compiler/commentEmitWithCommentOnLastLine.ts === var x: any; ->x : any +>x : any, Symbol(x, Decl(commentEmitWithCommentOnLastLine.ts, 0, 3)) /* var bar; diff --git a/tests/baselines/reference/commentInEmptyParameterList1.types b/tests/baselines/reference/commentInEmptyParameterList1.types index dd708e8c9ac..c5b79a3405e 100644 --- a/tests/baselines/reference/commentInEmptyParameterList1.types +++ b/tests/baselines/reference/commentInEmptyParameterList1.types @@ -1,4 +1,4 @@ === tests/cases/compiler/commentInEmptyParameterList1.ts === function foo(/** nothing */) { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(commentInEmptyParameterList1.ts, 0, 0)) } diff --git a/tests/baselines/reference/commentInMethodCall.types b/tests/baselines/reference/commentInMethodCall.types index e9543a8c6f2..e7fbffa6d80 100644 --- a/tests/baselines/reference/commentInMethodCall.types +++ b/tests/baselines/reference/commentInMethodCall.types @@ -1,13 +1,13 @@ === tests/cases/compiler/commentInMethodCall.ts === //commment here var s: string[]; ->s : string[] +>s : string[], Symbol(s, Decl(commentInMethodCall.ts, 1, 3)) s.map(// do something >s.map(// do something function () { }) : void[] ->s.map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] ->s : string[] ->map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>s.map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>s : string[], Symbol(s, Decl(commentInMethodCall.ts, 1, 3)) +>map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) function () { }); >function () { } : () => void diff --git a/tests/baselines/reference/commentOnAmbientClass1.types b/tests/baselines/reference/commentOnAmbientClass1.types index 44c0334ef6c..b7f3e2891f1 100644 --- a/tests/baselines/reference/commentOnAmbientClass1.types +++ b/tests/baselines/reference/commentOnAmbientClass1.types @@ -1,17 +1,17 @@ === tests/cases/compiler/b.ts === /// declare class E extends C { ->E : E ->C : C +>E : E, Symbol(E, Decl(b.ts, 0, 0)) +>C : C, Symbol(C, Decl(a.ts, 0, 0)) } === tests/cases/compiler/a.ts === /*! Keep this pinned comment */ declare class C { ->C : C +>C : C, Symbol(C, Decl(a.ts, 0, 0)) } // Don't keep this comment. declare class D { ->D : D +>D : D, Symbol(D, Decl(a.ts, 2, 1)) } diff --git a/tests/baselines/reference/commentOnAmbientEnum.types b/tests/baselines/reference/commentOnAmbientEnum.types index 4a0193b7937..4d47639d308 100644 --- a/tests/baselines/reference/commentOnAmbientEnum.types +++ b/tests/baselines/reference/commentOnAmbientEnum.types @@ -1,25 +1,25 @@ === tests/cases/compiler/b.ts === /// declare enum E { ->E : E +>E : E, Symbol(E, Decl(b.ts, 0, 0)) } === tests/cases/compiler/a.ts === /*! Keep this pinned comment */ declare enum C { ->C : C +>C : C, Symbol(C, Decl(a.ts, 0, 0)) a, ->a : C +>a : C, Symbol(C.a, Decl(a.ts, 1, 16)) b, ->b : C +>b : C, Symbol(C.b, Decl(a.ts, 2, 6)) c ->c : C +>c : C, Symbol(C.c, Decl(a.ts, 3, 6)) } // Don't keep this comment. declare enum D { ->D : D +>D : D, Symbol(D, Decl(a.ts, 5, 1)) } diff --git a/tests/baselines/reference/commentOnAmbientModule.types b/tests/baselines/reference/commentOnAmbientModule.types index f0056decc29..9eb0f369367 100644 --- a/tests/baselines/reference/commentOnAmbientModule.types +++ b/tests/baselines/reference/commentOnAmbientModule.types @@ -1,31 +1,32 @@ === tests/cases/compiler/b.ts === /// declare module E { ->E : typeof E +>E : typeof E, Symbol(E, Decl(b.ts, 0, 0)) class foobar extends D.bar { ->foobar : foobar ->D : typeof D ->bar : D.bar +>foobar : foobar, Symbol(foobar, Decl(b.ts, 1, 18)) +>D.bar : any, Symbol(D.bar, Decl(a.ts, 6, 18)) +>D : typeof D, Symbol(D, Decl(a.ts, 3, 1)) +>bar : D.bar, Symbol(D.bar, Decl(a.ts, 6, 18)) foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(b.ts, 2, 32)) } } === tests/cases/compiler/a.ts === /*! Keep this pinned comment */ declare module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(a.ts, 0, 0)) function foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(a.ts, 1, 18)) } // Don't keep this comment. declare module D { ->D : typeof D +>D : typeof D, Symbol(D, Decl(a.ts, 3, 1)) class bar { } ->bar : bar +>bar : bar, Symbol(bar, Decl(a.ts, 6, 18)) } diff --git a/tests/baselines/reference/commentOnAmbientVariable1.types b/tests/baselines/reference/commentOnAmbientVariable1.types index feff50f4293..6b7681e6603 100644 --- a/tests/baselines/reference/commentOnAmbientVariable1.types +++ b/tests/baselines/reference/commentOnAmbientVariable1.types @@ -1,9 +1,9 @@ === tests/cases/compiler/commentOnAmbientVariable1.ts === /*! Keep this pinned comment */ declare var v: number; ->v : number +>v : number, Symbol(v, Decl(commentOnAmbientVariable1.ts, 1, 11)) // Don't keep this comment. declare var y: number; ->y : number +>y : number, Symbol(y, Decl(commentOnAmbientVariable1.ts, 4, 11)) diff --git a/tests/baselines/reference/commentOnAmbientVariable2.types b/tests/baselines/reference/commentOnAmbientVariable2.types index 68ca1459575..9e9b34fa3ce 100644 --- a/tests/baselines/reference/commentOnAmbientVariable2.types +++ b/tests/baselines/reference/commentOnAmbientVariable2.types @@ -1,13 +1,15 @@ === tests/cases/compiler/commentOnAmbientVariable2_2.ts === /// declare var x: number; ->x : number +>x : number, Symbol(x, Decl(commentOnAmbientVariable2_2.ts, 1, 11)) x = 2; >x = 2 : number ->x : number +>x : number, Symbol(x, Decl(commentOnAmbientVariable2_2.ts, 1, 11)) +>2 : number === tests/cases/compiler/commentOnAmbientVariable2_1.ts === var y = 1; ->y : number +>y : number, Symbol(y, Decl(commentOnAmbientVariable2_1.ts, 0, 3)) +>1 : number diff --git a/tests/baselines/reference/commentOnAmbientfunction.types b/tests/baselines/reference/commentOnAmbientfunction.types index f75f7b377fb..f06872f34ae 100644 --- a/tests/baselines/reference/commentOnAmbientfunction.types +++ b/tests/baselines/reference/commentOnAmbientfunction.types @@ -1,17 +1,17 @@ === tests/cases/compiler/b.ts === /// declare function foobar(a: typeof foo): typeof bar; ->foobar : (a: () => any) => () => any ->a : () => any ->foo : () => any ->bar : () => any +>foobar : (a: () => any) => () => any, Symbol(foobar, Decl(b.ts, 0, 0)) +>a : () => any, Symbol(a, Decl(b.ts, 1, 24)) +>foo : () => any, Symbol(foo, Decl(a.ts, 0, 0)) +>bar : () => any, Symbol(bar, Decl(a.ts, 1, 23)) === tests/cases/compiler/a.ts === /*! Keep this pinned comment */ declare function foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(a.ts, 0, 0)) // Don't keep this comment. declare function bar(); ->bar : () => any +>bar : () => any, Symbol(bar, Decl(a.ts, 1, 23)) diff --git a/tests/baselines/reference/commentOnBlock1.types b/tests/baselines/reference/commentOnBlock1.types index cc01efddb1c..217fbde5a08 100644 --- a/tests/baselines/reference/commentOnBlock1.types +++ b/tests/baselines/reference/commentOnBlock1.types @@ -1,7 +1,7 @@ === tests/cases/compiler/commentOnBlock1.ts === // asdf function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(commentOnBlock1.ts, 0, 0)) /*asdf*/{} } diff --git a/tests/baselines/reference/commentOnClassMethod1.types b/tests/baselines/reference/commentOnClassMethod1.types index 1ad8182b9c9..d3def73f8d4 100644 --- a/tests/baselines/reference/commentOnClassMethod1.types +++ b/tests/baselines/reference/commentOnClassMethod1.types @@ -1,11 +1,11 @@ === tests/cases/compiler/commentOnClassMethod1.ts === class WebControls { ->WebControls : WebControls +>WebControls : WebControls, Symbol(WebControls, Decl(commentOnClassMethod1.ts, 0, 0)) /** * Render a control */ createControl(): any { ->createControl : () => any +>createControl : () => any, Symbol(createControl, Decl(commentOnClassMethod1.ts, 0, 19)) } } diff --git a/tests/baselines/reference/commentOnElidedModule1.types b/tests/baselines/reference/commentOnElidedModule1.types index 785336dff3d..23fe4171cc0 100644 --- a/tests/baselines/reference/commentOnElidedModule1.types +++ b/tests/baselines/reference/commentOnElidedModule1.types @@ -1,16 +1,16 @@ === tests/cases/compiler/b.ts === /// module ElidedModule3 { ->ElidedModule3 : unknown +>ElidedModule3 : any, Symbol(ElidedModule3, Decl(b.ts, 0, 0)) } === tests/cases/compiler/a.ts === /*! Keep this pinned comment */ module ElidedModule { ->ElidedModule : unknown +>ElidedModule : any, Symbol(ElidedModule, Decl(a.ts, 0, 0)) } // Don't keep this comment. module ElidedModule2 { ->ElidedModule2 : unknown +>ElidedModule2 : any, Symbol(ElidedModule2, Decl(a.ts, 2, 1)) } diff --git a/tests/baselines/reference/commentOnExpressionStatement1.types b/tests/baselines/reference/commentOnExpressionStatement1.types index c39689ed381..11d5fe1c6b5 100644 --- a/tests/baselines/reference/commentOnExpressionStatement1.types +++ b/tests/baselines/reference/commentOnExpressionStatement1.types @@ -2,4 +2,6 @@ 1 + 1; // Comment. >1 + 1 : number +>1 : number +>1 : number diff --git a/tests/baselines/reference/commentOnIfStatement1.types b/tests/baselines/reference/commentOnIfStatement1.types index 03f357c8ccf..7b983156f4d 100644 --- a/tests/baselines/reference/commentOnIfStatement1.types +++ b/tests/baselines/reference/commentOnIfStatement1.types @@ -1,6 +1,6 @@ === tests/cases/compiler/commentOnIfStatement1.ts === -No type information for this code.// Test -No type information for this code.if (true) { -No type information for this code.} -No type information for this code. \ No newline at end of file +// Test +if (true) { +>true : boolean +} diff --git a/tests/baselines/reference/commentOnInterface1.types b/tests/baselines/reference/commentOnInterface1.types index d03b1939026..d2ad140798c 100644 --- a/tests/baselines/reference/commentOnInterface1.types +++ b/tests/baselines/reference/commentOnInterface1.types @@ -1,16 +1,16 @@ === tests/cases/compiler/b.ts === /// interface I3 { ->I3 : I3 +>I3 : I3, Symbol(I3, Decl(b.ts, 0, 0)) } === tests/cases/compiler/a.ts === /*! Keep this pinned comment */ interface I { ->I : I +>I : I, Symbol(I, Decl(a.ts, 0, 0)) } // Don't keep this comment. interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(a.ts, 2, 1)) } diff --git a/tests/baselines/reference/commentOnParenthesizedExpressionOpenParen1.types b/tests/baselines/reference/commentOnParenthesizedExpressionOpenParen1.types index 94a2930d314..38fe7a4f08d 100644 --- a/tests/baselines/reference/commentOnParenthesizedExpressionOpenParen1.types +++ b/tests/baselines/reference/commentOnParenthesizedExpressionOpenParen1.types @@ -1,15 +1,15 @@ === tests/cases/compiler/commentOnParenthesizedExpressionOpenParen1.ts === var j; ->j : any +>j : any, Symbol(j, Decl(commentOnParenthesizedExpressionOpenParen1.ts, 0, 3)) var f: () => any; ->f : () => any +>f : () => any, Symbol(f, Decl(commentOnParenthesizedExpressionOpenParen1.ts, 1, 3)) ( /* Preserve */ j = f()); >( /* Preserve */ j = f()) : any >( /* Preserve */ j = f()) : any >j = f() : any ->j : any +>j : any, Symbol(j, Decl(commentOnParenthesizedExpressionOpenParen1.ts, 0, 3)) >f() : any ->f : () => any +>f : () => any, Symbol(f, Decl(commentOnParenthesizedExpressionOpenParen1.ts, 1, 3)) diff --git a/tests/baselines/reference/commentOnSignature1.types b/tests/baselines/reference/commentOnSignature1.types index 790aaaf7523..cc36ee96a12 100644 --- a/tests/baselines/reference/commentOnSignature1.types +++ b/tests/baselines/reference/commentOnSignature1.types @@ -1,62 +1,62 @@ === tests/cases/compiler/b.ts === /// function foo2(n: number): void; ->foo2 : { (n: number): void; (s: string): void; } ->n : number +>foo2 : { (n: number): void; (s: string): void; }, Symbol(foo2, Decl(b.ts, 0, 0), Decl(b.ts, 1, 31), Decl(b.ts, 3, 31)) +>n : number, Symbol(n, Decl(b.ts, 1, 14)) // Don't keep this comment. function foo2(s: string): void; ->foo2 : { (n: number): void; (s: string): void; } ->s : string +>foo2 : { (n: number): void; (s: string): void; }, Symbol(foo2, Decl(b.ts, 0, 0), Decl(b.ts, 1, 31), Decl(b.ts, 3, 31)) +>s : string, Symbol(s, Decl(b.ts, 3, 14)) function foo2(a: any): void { ->foo2 : { (n: number): void; (s: string): void; } ->a : any +>foo2 : { (n: number): void; (s: string): void; }, Symbol(foo2, Decl(b.ts, 0, 0), Decl(b.ts, 1, 31), Decl(b.ts, 3, 31)) +>a : any, Symbol(a, Decl(b.ts, 4, 14)) } === tests/cases/compiler/a.ts === /*! Keep this pinned comment */ function foo(n: number): void; ->foo : { (n: number): void; (s: string): void; } ->n : number +>foo : { (n: number): void; (s: string): void; }, Symbol(foo, Decl(a.ts, 0, 0), Decl(a.ts, 1, 30), Decl(a.ts, 3, 30)) +>n : number, Symbol(n, Decl(a.ts, 1, 13)) // Don't keep this comment. function foo(s: string): void; ->foo : { (n: number): void; (s: string): void; } ->s : string +>foo : { (n: number): void; (s: string): void; }, Symbol(foo, Decl(a.ts, 0, 0), Decl(a.ts, 1, 30), Decl(a.ts, 3, 30)) +>s : string, Symbol(s, Decl(a.ts, 3, 13)) function foo(a: any): void { ->foo : { (n: number): void; (s: string): void; } ->a : any +>foo : { (n: number): void; (s: string): void; }, Symbol(foo, Decl(a.ts, 0, 0), Decl(a.ts, 1, 30), Decl(a.ts, 3, 30)) +>a : any, Symbol(a, Decl(a.ts, 4, 13)) } class c { ->c : c +>c : c, Symbol(c, Decl(a.ts, 5, 1)) // dont keep this comment constructor(a: string); ->a : string +>a : string, Symbol(a, Decl(a.ts, 9, 16)) /*! keep this pinned comment */ constructor(a: number); ->a : number +>a : number, Symbol(a, Decl(a.ts, 11, 16)) constructor(a: any) { ->a : any +>a : any, Symbol(a, Decl(a.ts, 12, 16)) } // dont keep this comment foo(a: string); ->foo : { (a: string): any; (a: number): any; } ->a : string +>foo : { (a: string): any; (a: number): any; }, Symbol(foo, Decl(a.ts, 13, 5), Decl(a.ts, 16, 19), Decl(a.ts, 18, 19)) +>a : string, Symbol(a, Decl(a.ts, 16, 8)) /*! keep this pinned comment */ foo(a: number); ->foo : { (a: string): any; (a: number): any; } ->a : number +>foo : { (a: string): any; (a: number): any; }, Symbol(foo, Decl(a.ts, 13, 5), Decl(a.ts, 16, 19), Decl(a.ts, 18, 19)) +>a : number, Symbol(a, Decl(a.ts, 18, 8)) foo(a: any) { ->foo : { (a: string): any; (a: number): any; } ->a : any +>foo : { (a: string): any; (a: number): any; }, Symbol(foo, Decl(a.ts, 13, 5), Decl(a.ts, 16, 19), Decl(a.ts, 18, 19)) +>a : any, Symbol(a, Decl(a.ts, 19, 8)) } } diff --git a/tests/baselines/reference/commentOnSimpleArrowFunctionBody1.types b/tests/baselines/reference/commentOnSimpleArrowFunctionBody1.types index 916a03eb65e..63996d3f199 100644 --- a/tests/baselines/reference/commentOnSimpleArrowFunctionBody1.types +++ b/tests/baselines/reference/commentOnSimpleArrowFunctionBody1.types @@ -1,15 +1,16 @@ === tests/cases/compiler/commentOnSimpleArrowFunctionBody1.ts === function Foo(x: any) ->Foo : (x: any) => void ->x : any +>Foo : (x: any) => void, Symbol(Foo, Decl(commentOnSimpleArrowFunctionBody1.ts, 0, 0)) +>x : any, Symbol(x, Decl(commentOnSimpleArrowFunctionBody1.ts, 0, 13)) { } Foo(() => >Foo(() => // do something 127) : void ->Foo : (x: any) => void +>Foo : (x: any) => void, Symbol(Foo, Decl(commentOnSimpleArrowFunctionBody1.ts, 0, 0)) >() => // do something 127 : () => number // do something 127); +>127 : number diff --git a/tests/baselines/reference/commentOnStaticMember1.types b/tests/baselines/reference/commentOnStaticMember1.types index 4b54b07570a..eea5255f518 100644 --- a/tests/baselines/reference/commentOnStaticMember1.types +++ b/tests/baselines/reference/commentOnStaticMember1.types @@ -1,9 +1,9 @@ === tests/cases/compiler/commentOnStaticMember1.ts === class Greeter { ->Greeter : Greeter +>Greeter : Greeter, Symbol(Greeter, Decl(commentOnStaticMember1.ts, 0, 0)) //Hello World static foo(){ ->foo : () => void +>foo : () => void, Symbol(Greeter.foo, Decl(commentOnStaticMember1.ts, 0, 15)) } } diff --git a/tests/baselines/reference/commentsAtEndOfFile1.types b/tests/baselines/reference/commentsAtEndOfFile1.types index c09a435f1a7..6bac6757061 100644 --- a/tests/baselines/reference/commentsAtEndOfFile1.types +++ b/tests/baselines/reference/commentsAtEndOfFile1.types @@ -1,6 +1,7 @@ === tests/cases/compiler/commentsAtEndOfFile1.ts === Input: -No type information for this code.; -No type information for this code.//Testing two -No type information for this code. -No type information for this code. \ No newline at end of file +>Input : any + +; +//Testing two + diff --git a/tests/baselines/reference/commentsBeforeFunctionExpression1.types b/tests/baselines/reference/commentsBeforeFunctionExpression1.types index 4580ca9ceeb..3f1ae953d1e 100644 --- a/tests/baselines/reference/commentsBeforeFunctionExpression1.types +++ b/tests/baselines/reference/commentsBeforeFunctionExpression1.types @@ -1,11 +1,12 @@ === tests/cases/compiler/commentsBeforeFunctionExpression1.ts === var v = { ->v : { f: (a: any) => number; } +>v : { f: (a: any) => number; }, Symbol(v, Decl(commentsBeforeFunctionExpression1.ts, 0, 3)) >{ f: /**own f*/ (a) => 0} : { f: (a: any) => number; } f: /**own f*/ (a) => 0 ->f : (a: any) => number +>f : (a: any) => number, Symbol(f, Decl(commentsBeforeFunctionExpression1.ts, 0, 9)) >(a) => 0 : (a: any) => number ->a : any +>a : any, Symbol(a, Decl(commentsBeforeFunctionExpression1.ts, 1, 19)) +>0 : number } diff --git a/tests/baselines/reference/commentsBeforeVariableStatement1.types b/tests/baselines/reference/commentsBeforeVariableStatement1.types index ec5a599e75c..dffdc116be5 100644 --- a/tests/baselines/reference/commentsBeforeVariableStatement1.types +++ b/tests/baselines/reference/commentsBeforeVariableStatement1.types @@ -1,5 +1,5 @@ === tests/cases/compiler/commentsBeforeVariableStatement1.ts === /** b's comment*/ export var b: number; ->b : number +>b : number, Symbol(b, Decl(commentsBeforeVariableStatement1.ts, 1, 10)) diff --git a/tests/baselines/reference/commentsClass.types b/tests/baselines/reference/commentsClass.types index a4aca2ba15b..f45f25cd3d4 100644 --- a/tests/baselines/reference/commentsClass.types +++ b/tests/baselines/reference/commentsClass.types @@ -2,117 +2,117 @@ /** This is class c2 without constuctor*/ class c2 { ->c2 : c2 +>c2 : c2, Symbol(c2, Decl(commentsClass.ts, 0, 0)) } // trailing comment1 var i2 = new c2(); ->i2 : c2 +>i2 : c2, Symbol(i2, Decl(commentsClass.ts, 4, 3)) >new c2() : c2 ->c2 : typeof c2 +>c2 : typeof c2, Symbol(c2, Decl(commentsClass.ts, 0, 0)) var i2_c = c2; ->i2_c : typeof c2 ->c2 : typeof c2 +>i2_c : typeof c2, Symbol(i2_c, Decl(commentsClass.ts, 5, 3)) +>c2 : typeof c2, Symbol(c2, Decl(commentsClass.ts, 0, 0)) class c3 { ->c3 : c3 +>c3 : c3, Symbol(c3, Decl(commentsClass.ts, 5, 14)) /** Constructor comment*/ constructor() { } // trailing comment of constructor } /* trailing comment 2 */ var i3 = new c3(); ->i3 : c3 +>i3 : c3, Symbol(i3, Decl(commentsClass.ts, 11, 3)) >new c3() : c3 ->c3 : typeof c3 +>c3 : typeof c3, Symbol(c3, Decl(commentsClass.ts, 5, 14)) var i3_c = c3; ->i3_c : typeof c3 ->c3 : typeof c3 +>i3_c : typeof c3, Symbol(i3_c, Decl(commentsClass.ts, 12, 3)) +>c3 : typeof c3, Symbol(c3, Decl(commentsClass.ts, 5, 14)) /** Class comment*/ class c4 { ->c4 : c4 +>c4 : c4, Symbol(c4, Decl(commentsClass.ts, 12, 14)) /** Constructor comment*/ constructor() { } /* trailing comment of constructor 2*/ } var i4 = new c4(); ->i4 : c4 +>i4 : c4, Symbol(i4, Decl(commentsClass.ts, 19, 3)) >new c4() : c4 ->c4 : typeof c4 +>c4 : typeof c4, Symbol(c4, Decl(commentsClass.ts, 12, 14)) var i4_c = c4; ->i4_c : typeof c4 ->c4 : typeof c4 +>i4_c : typeof c4, Symbol(i4_c, Decl(commentsClass.ts, 20, 3)) +>c4 : typeof c4, Symbol(c4, Decl(commentsClass.ts, 12, 14)) /** Class with statics*/ class c5 { ->c5 : c5 +>c5 : c5, Symbol(c5, Decl(commentsClass.ts, 20, 14)) static s1: number; ->s1 : number +>s1 : number, Symbol(c5.s1, Decl(commentsClass.ts, 22, 10)) } var i5 = new c5(); ->i5 : c5 +>i5 : c5, Symbol(i5, Decl(commentsClass.ts, 25, 3)) >new c5() : c5 ->c5 : typeof c5 +>c5 : typeof c5, Symbol(c5, Decl(commentsClass.ts, 20, 14)) var i5_c = c5; ->i5_c : typeof c5 ->c5 : typeof c5 +>i5_c : typeof c5, Symbol(i5_c, Decl(commentsClass.ts, 26, 3)) +>c5 : typeof c5, Symbol(c5, Decl(commentsClass.ts, 20, 14)) /// class with statics and constructor class c6 { /// class with statics and constructor2 ->c6 : c6 +>c6 : c6, Symbol(c6, Decl(commentsClass.ts, 26, 14)) /// s1 comment static s1: number; /// s1 comment2 ->s1 : number +>s1 : number, Symbol(c6.s1, Decl(commentsClass.ts, 29, 10)) /// constructor comment constructor() { /// constructor comment2 } } var i6 = new c6(); ->i6 : c6 +>i6 : c6, Symbol(i6, Decl(commentsClass.ts, 36, 3)) >new c6() : c6 ->c6 : typeof c6 +>c6 : typeof c6, Symbol(c6, Decl(commentsClass.ts, 26, 14)) var i6_c = c6; ->i6_c : typeof c6 ->c6 : typeof c6 +>i6_c : typeof c6, Symbol(i6_c, Decl(commentsClass.ts, 37, 3)) +>c6 : typeof c6, Symbol(c6, Decl(commentsClass.ts, 26, 14)) // class with statics and constructor class c7 { ->c7 : c7 +>c7 : c7, Symbol(c7, Decl(commentsClass.ts, 37, 14)) // s1 comment static s1: number; ->s1 : number +>s1 : number, Symbol(c7.s1, Decl(commentsClass.ts, 40, 10)) // constructor comment constructor() { } } var i7 = new c7(); ->i7 : c7 +>i7 : c7, Symbol(i7, Decl(commentsClass.ts, 47, 3)) >new c7() : c7 ->c7 : typeof c7 +>c7 : typeof c7, Symbol(c7, Decl(commentsClass.ts, 37, 14)) var i7_c = c7; ->i7_c : typeof c7 ->c7 : typeof c7 +>i7_c : typeof c7, Symbol(i7_c, Decl(commentsClass.ts, 48, 3)) +>c7 : typeof c7, Symbol(c7, Decl(commentsClass.ts, 37, 14)) /** class with statics and constructor */ class c8 { ->c8 : c8 +>c8 : c8, Symbol(c8, Decl(commentsClass.ts, 48, 14)) /** s1 comment */ static s1: number; /** s1 comment2 */ ->s1 : number +>s1 : number, Symbol(c8.s1, Decl(commentsClass.ts, 52, 10)) /** constructor comment */ @@ -122,16 +122,16 @@ class c8 { } } var i8 = new c8(); ->i8 : c8 +>i8 : c8, Symbol(i8, Decl(commentsClass.ts, 62, 3)) >new c8() : c8 ->c8 : typeof c8 +>c8 : typeof c8, Symbol(c8, Decl(commentsClass.ts, 48, 14)) var i8_c = c8; ->i8_c : typeof c8 ->c8 : typeof c8 +>i8_c : typeof c8, Symbol(i8_c, Decl(commentsClass.ts, 63, 3)) +>c8 : typeof c8, Symbol(c8, Decl(commentsClass.ts, 48, 14)) class c9 { ->c9 : c9 +>c9 : c9, Symbol(c9, Decl(commentsClass.ts, 63, 14)) constructor() { /// This is some detached comment diff --git a/tests/baselines/reference/commentsClassMembers.types b/tests/baselines/reference/commentsClassMembers.types index d71ccd2e1e8..b4331f16f61 100644 --- a/tests/baselines/reference/commentsClassMembers.types +++ b/tests/baselines/reference/commentsClassMembers.types @@ -2,767 +2,773 @@ /** This is comment for c1*/ class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) /** p1 is property of c1*/ public p1: number; ->p1 : number +>p1 : number, Symbol(p1, Decl(commentsClassMembers.ts, 2, 10)) /** sum with property*/ public p2(/** number to add*/b: number) { ->p2 : (b: number) => number ->b : number +>p2 : (b: number) => number, Symbol(p2, Decl(commentsClassMembers.ts, 4, 22)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 6, 14)) return this.p1 + b; >this.p1 + b : number ->this.p1 : number ->this : c1 ->p1 : number ->b : number +>this.p1 : number, Symbol(p1, Decl(commentsClassMembers.ts, 2, 10)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>p1 : number, Symbol(p1, Decl(commentsClassMembers.ts, 2, 10)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 6, 14)) } /* trailing comment of method*/ /** getter property*/ public get p3() { ->p3 : number +>p3 : number, Symbol(p3, Decl(commentsClassMembers.ts, 8, 5), Decl(commentsClassMembers.ts, 12, 5)) return this.p2(this.p1); >this.p2(this.p1) : number ->this.p2 : (b: number) => number ->this : c1 ->p2 : (b: number) => number ->this.p1 : number ->this : c1 ->p1 : number +>this.p2 : (b: number) => number, Symbol(p2, Decl(commentsClassMembers.ts, 4, 22)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>p2 : (b: number) => number, Symbol(p2, Decl(commentsClassMembers.ts, 4, 22)) +>this.p1 : number, Symbol(p1, Decl(commentsClassMembers.ts, 2, 10)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>p1 : number, Symbol(p1, Decl(commentsClassMembers.ts, 2, 10)) }// trailing comment Getter /** setter property*/ public set p3(/** this is value*/value: number) { ->p3 : number ->value : number +>p3 : number, Symbol(p3, Decl(commentsClassMembers.ts, 8, 5), Decl(commentsClassMembers.ts, 12, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 14, 18)) this.p1 = this.p2(value); >this.p1 = this.p2(value) : number ->this.p1 : number ->this : c1 ->p1 : number +>this.p1 : number, Symbol(p1, Decl(commentsClassMembers.ts, 2, 10)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>p1 : number, Symbol(p1, Decl(commentsClassMembers.ts, 2, 10)) >this.p2(value) : number ->this.p2 : (b: number) => number ->this : c1 ->p2 : (b: number) => number ->value : number +>this.p2 : (b: number) => number, Symbol(p2, Decl(commentsClassMembers.ts, 4, 22)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>p2 : (b: number) => number, Symbol(p2, Decl(commentsClassMembers.ts, 4, 22)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 14, 18)) }// trailing comment Setter /** pp1 is property of c1*/ private pp1: number; ->pp1 : number +>pp1 : number, Symbol(pp1, Decl(commentsClassMembers.ts, 16, 5)) /** sum with property*/ private pp2(/** number to add*/b: number) { ->pp2 : (b: number) => number ->b : number +>pp2 : (b: number) => number, Symbol(pp2, Decl(commentsClassMembers.ts, 18, 24)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 20, 16)) return this.p1 + b; >this.p1 + b : number ->this.p1 : number ->this : c1 ->p1 : number ->b : number +>this.p1 : number, Symbol(p1, Decl(commentsClassMembers.ts, 2, 10)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>p1 : number, Symbol(p1, Decl(commentsClassMembers.ts, 2, 10)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 20, 16)) } // trailing comment of method /** getter property*/ private get pp3() { ->pp3 : number +>pp3 : number, Symbol(pp3, Decl(commentsClassMembers.ts, 22, 5), Decl(commentsClassMembers.ts, 26, 5)) return this.pp2(this.pp1); >this.pp2(this.pp1) : number ->this.pp2 : (b: number) => number ->this : c1 ->pp2 : (b: number) => number ->this.pp1 : number ->this : c1 ->pp1 : number +>this.pp2 : (b: number) => number, Symbol(pp2, Decl(commentsClassMembers.ts, 18, 24)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>pp2 : (b: number) => number, Symbol(pp2, Decl(commentsClassMembers.ts, 18, 24)) +>this.pp1 : number, Symbol(pp1, Decl(commentsClassMembers.ts, 16, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>pp1 : number, Symbol(pp1, Decl(commentsClassMembers.ts, 16, 5)) } /** setter property*/ private set pp3( /** this is value*/value: number) { ->pp3 : number ->value : number +>pp3 : number, Symbol(pp3, Decl(commentsClassMembers.ts, 22, 5), Decl(commentsClassMembers.ts, 26, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 28, 20)) this.pp1 = this.pp2(value); >this.pp1 = this.pp2(value) : number ->this.pp1 : number ->this : c1 ->pp1 : number +>this.pp1 : number, Symbol(pp1, Decl(commentsClassMembers.ts, 16, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>pp1 : number, Symbol(pp1, Decl(commentsClassMembers.ts, 16, 5)) >this.pp2(value) : number ->this.pp2 : (b: number) => number ->this : c1 ->pp2 : (b: number) => number ->value : number +>this.pp2 : (b: number) => number, Symbol(pp2, Decl(commentsClassMembers.ts, 18, 24)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>pp2 : (b: number) => number, Symbol(pp2, Decl(commentsClassMembers.ts, 18, 24)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 28, 20)) } /** Constructor method*/ constructor() { } /** s1 is static property of c1*/ static s1: number; ->s1 : number +>s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) /** static sum with property*/ static s2(/** number to add*/b: number) { ->s2 : (b: number) => number ->b : number +>s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 37, 14)) return c1.s1 + b; >c1.s1 + b : number ->c1.s1 : number ->c1 : typeof c1 ->s1 : number ->b : number +>c1.s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 37, 14)) } /** static getter property*/ static get s3() { ->s3 : number +>s3 : number, Symbol(c1.s3, Decl(commentsClassMembers.ts, 39, 5), Decl(commentsClassMembers.ts, 43, 5)) return c1.s2(c1.s1); >c1.s2(c1.s1) : number ->c1.s2 : (b: number) => number ->c1 : typeof c1 ->s2 : (b: number) => number ->c1.s1 : number ->c1 : typeof c1 ->s1 : number +>c1.s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) +>c1.s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) } /*trailing comment 1 getter*/ /** setter property*/ static set s3( /** this is value*/value: number) { ->s3 : number ->value : number +>s3 : number, Symbol(c1.s3, Decl(commentsClassMembers.ts, 39, 5), Decl(commentsClassMembers.ts, 43, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 45, 18)) c1.s1 = c1.s2(value); >c1.s1 = c1.s2(value) : number ->c1.s1 : number ->c1 : typeof c1 ->s1 : number +>c1.s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) >c1.s2(value) : number ->c1.s2 : (b: number) => number ->c1 : typeof c1 ->s2 : (b: number) => number ->value : number +>c1.s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 45, 18)) }/*trailing comment 2 */ /*setter*/ public nc_p1: number; ->nc_p1 : number +>nc_p1 : number, Symbol(nc_p1, Decl(commentsClassMembers.ts, 47, 5)) public nc_p2(b: number) { ->nc_p2 : (b: number) => number ->b : number +>nc_p2 : (b: number) => number, Symbol(nc_p2, Decl(commentsClassMembers.ts, 48, 25)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 49, 17)) return this.nc_p1 + b; >this.nc_p1 + b : number ->this.nc_p1 : number ->this : c1 ->nc_p1 : number ->b : number +>this.nc_p1 : number, Symbol(nc_p1, Decl(commentsClassMembers.ts, 47, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_p1 : number, Symbol(nc_p1, Decl(commentsClassMembers.ts, 47, 5)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 49, 17)) } public get nc_p3() { ->nc_p3 : number +>nc_p3 : number, Symbol(nc_p3, Decl(commentsClassMembers.ts, 51, 5), Decl(commentsClassMembers.ts, 54, 5)) return this.nc_p2(this.nc_p1); >this.nc_p2(this.nc_p1) : number ->this.nc_p2 : (b: number) => number ->this : c1 ->nc_p2 : (b: number) => number ->this.nc_p1 : number ->this : c1 ->nc_p1 : number +>this.nc_p2 : (b: number) => number, Symbol(nc_p2, Decl(commentsClassMembers.ts, 48, 25)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_p2 : (b: number) => number, Symbol(nc_p2, Decl(commentsClassMembers.ts, 48, 25)) +>this.nc_p1 : number, Symbol(nc_p1, Decl(commentsClassMembers.ts, 47, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_p1 : number, Symbol(nc_p1, Decl(commentsClassMembers.ts, 47, 5)) } public set nc_p3(value: number) { ->nc_p3 : number ->value : number +>nc_p3 : number, Symbol(nc_p3, Decl(commentsClassMembers.ts, 51, 5), Decl(commentsClassMembers.ts, 54, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 55, 21)) this.nc_p1 = this.nc_p2(value); >this.nc_p1 = this.nc_p2(value) : number ->this.nc_p1 : number ->this : c1 ->nc_p1 : number +>this.nc_p1 : number, Symbol(nc_p1, Decl(commentsClassMembers.ts, 47, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_p1 : number, Symbol(nc_p1, Decl(commentsClassMembers.ts, 47, 5)) >this.nc_p2(value) : number ->this.nc_p2 : (b: number) => number ->this : c1 ->nc_p2 : (b: number) => number ->value : number +>this.nc_p2 : (b: number) => number, Symbol(nc_p2, Decl(commentsClassMembers.ts, 48, 25)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_p2 : (b: number) => number, Symbol(nc_p2, Decl(commentsClassMembers.ts, 48, 25)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 55, 21)) } private nc_pp1: number; ->nc_pp1 : number +>nc_pp1 : number, Symbol(nc_pp1, Decl(commentsClassMembers.ts, 57, 5)) private nc_pp2(b: number) { ->nc_pp2 : (b: number) => number ->b : number +>nc_pp2 : (b: number) => number, Symbol(nc_pp2, Decl(commentsClassMembers.ts, 58, 27)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 59, 19)) return this.nc_pp1 + b; >this.nc_pp1 + b : number ->this.nc_pp1 : number ->this : c1 ->nc_pp1 : number ->b : number +>this.nc_pp1 : number, Symbol(nc_pp1, Decl(commentsClassMembers.ts, 57, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_pp1 : number, Symbol(nc_pp1, Decl(commentsClassMembers.ts, 57, 5)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 59, 19)) } private get nc_pp3() { ->nc_pp3 : number +>nc_pp3 : number, Symbol(nc_pp3, Decl(commentsClassMembers.ts, 61, 5), Decl(commentsClassMembers.ts, 64, 5)) return this.nc_pp2(this.nc_pp1); >this.nc_pp2(this.nc_pp1) : number ->this.nc_pp2 : (b: number) => number ->this : c1 ->nc_pp2 : (b: number) => number ->this.nc_pp1 : number ->this : c1 ->nc_pp1 : number +>this.nc_pp2 : (b: number) => number, Symbol(nc_pp2, Decl(commentsClassMembers.ts, 58, 27)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_pp2 : (b: number) => number, Symbol(nc_pp2, Decl(commentsClassMembers.ts, 58, 27)) +>this.nc_pp1 : number, Symbol(nc_pp1, Decl(commentsClassMembers.ts, 57, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_pp1 : number, Symbol(nc_pp1, Decl(commentsClassMembers.ts, 57, 5)) } private set nc_pp3(value: number) { ->nc_pp3 : number ->value : number +>nc_pp3 : number, Symbol(nc_pp3, Decl(commentsClassMembers.ts, 61, 5), Decl(commentsClassMembers.ts, 64, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 65, 23)) this.nc_pp1 = this.nc_pp2(value); >this.nc_pp1 = this.nc_pp2(value) : number ->this.nc_pp1 : number ->this : c1 ->nc_pp1 : number +>this.nc_pp1 : number, Symbol(nc_pp1, Decl(commentsClassMembers.ts, 57, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_pp1 : number, Symbol(nc_pp1, Decl(commentsClassMembers.ts, 57, 5)) >this.nc_pp2(value) : number ->this.nc_pp2 : (b: number) => number ->this : c1 ->nc_pp2 : (b: number) => number ->value : number +>this.nc_pp2 : (b: number) => number, Symbol(nc_pp2, Decl(commentsClassMembers.ts, 58, 27)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_pp2 : (b: number) => number, Symbol(nc_pp2, Decl(commentsClassMembers.ts, 58, 27)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 65, 23)) } static nc_s1: number; ->nc_s1 : number +>nc_s1 : number, Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 67, 5)) static nc_s2(b: number) { ->nc_s2 : (b: number) => number ->b : number +>nc_s2 : (b: number) => number, Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 68, 25)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 69, 17)) return c1.nc_s1 + b; >c1.nc_s1 + b : number ->c1.nc_s1 : number ->c1 : typeof c1 ->nc_s1 : number ->b : number +>c1.nc_s1 : number, Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 67, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s1 : number, Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 67, 5)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 69, 17)) } static get nc_s3() { ->nc_s3 : number +>nc_s3 : number, Symbol(c1.nc_s3, Decl(commentsClassMembers.ts, 71, 5), Decl(commentsClassMembers.ts, 74, 5)) return c1.nc_s2(c1.nc_s1); >c1.nc_s2(c1.nc_s1) : number ->c1.nc_s2 : (b: number) => number ->c1 : typeof c1 ->nc_s2 : (b: number) => number ->c1.nc_s1 : number ->c1 : typeof c1 ->nc_s1 : number +>c1.nc_s2 : (b: number) => number, Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 68, 25)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s2 : (b: number) => number, Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 68, 25)) +>c1.nc_s1 : number, Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 67, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s1 : number, Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 67, 5)) } static set nc_s3(value: number) { ->nc_s3 : number ->value : number +>nc_s3 : number, Symbol(c1.nc_s3, Decl(commentsClassMembers.ts, 71, 5), Decl(commentsClassMembers.ts, 74, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 75, 21)) c1.nc_s1 = c1.nc_s2(value); >c1.nc_s1 = c1.nc_s2(value) : number ->c1.nc_s1 : number ->c1 : typeof c1 ->nc_s1 : number +>c1.nc_s1 : number, Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 67, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s1 : number, Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 67, 5)) >c1.nc_s2(value) : number ->c1.nc_s2 : (b: number) => number ->c1 : typeof c1 ->nc_s2 : (b: number) => number ->value : number +>c1.nc_s2 : (b: number) => number, Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 68, 25)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s2 : (b: number) => number, Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 68, 25)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 75, 21)) } // p1 is property of c1 public a_p1: number; ->a_p1 : number +>a_p1 : number, Symbol(a_p1, Decl(commentsClassMembers.ts, 77, 5)) // sum with property public a_p2(b: number) { ->a_p2 : (b: number) => number ->b : number +>a_p2 : (b: number) => number, Symbol(a_p2, Decl(commentsClassMembers.ts, 80, 24)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 82, 16)) return this.a_p1 + b; >this.a_p1 + b : number ->this.a_p1 : number ->this : c1 ->a_p1 : number ->b : number +>this.a_p1 : number, Symbol(a_p1, Decl(commentsClassMembers.ts, 77, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_p1 : number, Symbol(a_p1, Decl(commentsClassMembers.ts, 77, 5)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 82, 16)) } // getter property public get a_p3() { ->a_p3 : number +>a_p3 : number, Symbol(a_p3, Decl(commentsClassMembers.ts, 84, 5), Decl(commentsClassMembers.ts, 88, 5)) return this.a_p2(this.a_p1); >this.a_p2(this.a_p1) : number ->this.a_p2 : (b: number) => number ->this : c1 ->a_p2 : (b: number) => number ->this.a_p1 : number ->this : c1 ->a_p1 : number +>this.a_p2 : (b: number) => number, Symbol(a_p2, Decl(commentsClassMembers.ts, 80, 24)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_p2 : (b: number) => number, Symbol(a_p2, Decl(commentsClassMembers.ts, 80, 24)) +>this.a_p1 : number, Symbol(a_p1, Decl(commentsClassMembers.ts, 77, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_p1 : number, Symbol(a_p1, Decl(commentsClassMembers.ts, 77, 5)) } // setter property public set a_p3(value: number) { ->a_p3 : number ->value : number +>a_p3 : number, Symbol(a_p3, Decl(commentsClassMembers.ts, 84, 5), Decl(commentsClassMembers.ts, 88, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 90, 20)) this.a_p1 = this.a_p2(value); >this.a_p1 = this.a_p2(value) : number ->this.a_p1 : number ->this : c1 ->a_p1 : number +>this.a_p1 : number, Symbol(a_p1, Decl(commentsClassMembers.ts, 77, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_p1 : number, Symbol(a_p1, Decl(commentsClassMembers.ts, 77, 5)) >this.a_p2(value) : number ->this.a_p2 : (b: number) => number ->this : c1 ->a_p2 : (b: number) => number ->value : number +>this.a_p2 : (b: number) => number, Symbol(a_p2, Decl(commentsClassMembers.ts, 80, 24)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_p2 : (b: number) => number, Symbol(a_p2, Decl(commentsClassMembers.ts, 80, 24)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 90, 20)) } // pp1 is property of c1 private a_pp1: number; ->a_pp1 : number +>a_pp1 : number, Symbol(a_pp1, Decl(commentsClassMembers.ts, 92, 5)) // sum with property private a_pp2(b: number) { ->a_pp2 : (b: number) => number ->b : number +>a_pp2 : (b: number) => number, Symbol(a_pp2, Decl(commentsClassMembers.ts, 94, 26)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 96, 18)) return this.a_p1 + b; >this.a_p1 + b : number ->this.a_p1 : number ->this : c1 ->a_p1 : number ->b : number +>this.a_p1 : number, Symbol(a_p1, Decl(commentsClassMembers.ts, 77, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_p1 : number, Symbol(a_p1, Decl(commentsClassMembers.ts, 77, 5)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 96, 18)) } // getter property private get a_pp3() { ->a_pp3 : number +>a_pp3 : number, Symbol(a_pp3, Decl(commentsClassMembers.ts, 98, 5), Decl(commentsClassMembers.ts, 102, 5)) return this.a_pp2(this.a_pp1); >this.a_pp2(this.a_pp1) : number ->this.a_pp2 : (b: number) => number ->this : c1 ->a_pp2 : (b: number) => number ->this.a_pp1 : number ->this : c1 ->a_pp1 : number +>this.a_pp2 : (b: number) => number, Symbol(a_pp2, Decl(commentsClassMembers.ts, 94, 26)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_pp2 : (b: number) => number, Symbol(a_pp2, Decl(commentsClassMembers.ts, 94, 26)) +>this.a_pp1 : number, Symbol(a_pp1, Decl(commentsClassMembers.ts, 92, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_pp1 : number, Symbol(a_pp1, Decl(commentsClassMembers.ts, 92, 5)) } // setter property private set a_pp3(value: number) { ->a_pp3 : number ->value : number +>a_pp3 : number, Symbol(a_pp3, Decl(commentsClassMembers.ts, 98, 5), Decl(commentsClassMembers.ts, 102, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 104, 22)) this.a_pp1 = this.a_pp2(value); >this.a_pp1 = this.a_pp2(value) : number ->this.a_pp1 : number ->this : c1 ->a_pp1 : number +>this.a_pp1 : number, Symbol(a_pp1, Decl(commentsClassMembers.ts, 92, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_pp1 : number, Symbol(a_pp1, Decl(commentsClassMembers.ts, 92, 5)) >this.a_pp2(value) : number ->this.a_pp2 : (b: number) => number ->this : c1 ->a_pp2 : (b: number) => number ->value : number +>this.a_pp2 : (b: number) => number, Symbol(a_pp2, Decl(commentsClassMembers.ts, 94, 26)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_pp2 : (b: number) => number, Symbol(a_pp2, Decl(commentsClassMembers.ts, 94, 26)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 104, 22)) } // s1 is static property of c1 static a_s1: number; ->a_s1 : number +>a_s1 : number, Symbol(c1.a_s1, Decl(commentsClassMembers.ts, 106, 5)) // static sum with property static a_s2(b: number) { ->a_s2 : (b: number) => number ->b : number +>a_s2 : (b: number) => number, Symbol(c1.a_s2, Decl(commentsClassMembers.ts, 109, 24)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 111, 16)) return c1.a_s1 + b; >c1.a_s1 + b : number ->c1.a_s1 : number ->c1 : typeof c1 ->a_s1 : number ->b : number +>c1.a_s1 : number, Symbol(c1.a_s1, Decl(commentsClassMembers.ts, 106, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_s1 : number, Symbol(c1.a_s1, Decl(commentsClassMembers.ts, 106, 5)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 111, 16)) } // static getter property static get a_s3() { ->a_s3 : number +>a_s3 : number, Symbol(c1.a_s3, Decl(commentsClassMembers.ts, 113, 5), Decl(commentsClassMembers.ts, 117, 5)) return c1.s2(c1.s1); >c1.s2(c1.s1) : number ->c1.s2 : (b: number) => number ->c1 : typeof c1 ->s2 : (b: number) => number ->c1.s1 : number ->c1 : typeof c1 ->s1 : number +>c1.s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) +>c1.s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) } // setter property static set a_s3(value: number) { ->a_s3 : number ->value : number +>a_s3 : number, Symbol(c1.a_s3, Decl(commentsClassMembers.ts, 113, 5), Decl(commentsClassMembers.ts, 117, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 120, 20)) c1.a_s1 = c1.a_s2(value); >c1.a_s1 = c1.a_s2(value) : number ->c1.a_s1 : number ->c1 : typeof c1 ->a_s1 : number +>c1.a_s1 : number, Symbol(c1.a_s1, Decl(commentsClassMembers.ts, 106, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_s1 : number, Symbol(c1.a_s1, Decl(commentsClassMembers.ts, 106, 5)) >c1.a_s2(value) : number ->c1.a_s2 : (b: number) => number ->c1 : typeof c1 ->a_s2 : (b: number) => number ->value : number +>c1.a_s2 : (b: number) => number, Symbol(c1.a_s2, Decl(commentsClassMembers.ts, 109, 24)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>a_s2 : (b: number) => number, Symbol(c1.a_s2, Decl(commentsClassMembers.ts, 109, 24)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 120, 20)) } /** p1 is property of c1 */ public b_p1: number; ->b_p1 : number +>b_p1 : number, Symbol(b_p1, Decl(commentsClassMembers.ts, 122, 5)) /** sum with property */ public b_p2(b: number) { ->b_p2 : (b: number) => number ->b : number +>b_p2 : (b: number) => number, Symbol(b_p2, Decl(commentsClassMembers.ts, 125, 24)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 127, 16)) return this.b_p1 + b; >this.b_p1 + b : number ->this.b_p1 : number ->this : c1 ->b_p1 : number ->b : number +>this.b_p1 : number, Symbol(b_p1, Decl(commentsClassMembers.ts, 122, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_p1 : number, Symbol(b_p1, Decl(commentsClassMembers.ts, 122, 5)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 127, 16)) } /** getter property */ public get b_p3() { ->b_p3 : number +>b_p3 : number, Symbol(b_p3, Decl(commentsClassMembers.ts, 129, 5), Decl(commentsClassMembers.ts, 133, 5)) return this.b_p2(this.b_p1); >this.b_p2(this.b_p1) : number ->this.b_p2 : (b: number) => number ->this : c1 ->b_p2 : (b: number) => number ->this.b_p1 : number ->this : c1 ->b_p1 : number +>this.b_p2 : (b: number) => number, Symbol(b_p2, Decl(commentsClassMembers.ts, 125, 24)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_p2 : (b: number) => number, Symbol(b_p2, Decl(commentsClassMembers.ts, 125, 24)) +>this.b_p1 : number, Symbol(b_p1, Decl(commentsClassMembers.ts, 122, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_p1 : number, Symbol(b_p1, Decl(commentsClassMembers.ts, 122, 5)) } /** setter property */ public set b_p3(value: number) { ->b_p3 : number ->value : number +>b_p3 : number, Symbol(b_p3, Decl(commentsClassMembers.ts, 129, 5), Decl(commentsClassMembers.ts, 133, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 135, 20)) this.b_p1 = this.b_p2(value); >this.b_p1 = this.b_p2(value) : number ->this.b_p1 : number ->this : c1 ->b_p1 : number +>this.b_p1 : number, Symbol(b_p1, Decl(commentsClassMembers.ts, 122, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_p1 : number, Symbol(b_p1, Decl(commentsClassMembers.ts, 122, 5)) >this.b_p2(value) : number ->this.b_p2 : (b: number) => number ->this : c1 ->b_p2 : (b: number) => number ->value : number +>this.b_p2 : (b: number) => number, Symbol(b_p2, Decl(commentsClassMembers.ts, 125, 24)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_p2 : (b: number) => number, Symbol(b_p2, Decl(commentsClassMembers.ts, 125, 24)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 135, 20)) } /** pp1 is property of c1 */ private b_pp1: number; ->b_pp1 : number +>b_pp1 : number, Symbol(b_pp1, Decl(commentsClassMembers.ts, 137, 5)) /** sum with property */ private b_pp2(b: number) { ->b_pp2 : (b: number) => number ->b : number +>b_pp2 : (b: number) => number, Symbol(b_pp2, Decl(commentsClassMembers.ts, 139, 26)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 141, 18)) return this.b_p1 + b; >this.b_p1 + b : number ->this.b_p1 : number ->this : c1 ->b_p1 : number ->b : number +>this.b_p1 : number, Symbol(b_p1, Decl(commentsClassMembers.ts, 122, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_p1 : number, Symbol(b_p1, Decl(commentsClassMembers.ts, 122, 5)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 141, 18)) } /** getter property */ private get b_pp3() { ->b_pp3 : number +>b_pp3 : number, Symbol(b_pp3, Decl(commentsClassMembers.ts, 143, 5), Decl(commentsClassMembers.ts, 147, 5)) return this.b_pp2(this.b_pp1); >this.b_pp2(this.b_pp1) : number ->this.b_pp2 : (b: number) => number ->this : c1 ->b_pp2 : (b: number) => number ->this.b_pp1 : number ->this : c1 ->b_pp1 : number +>this.b_pp2 : (b: number) => number, Symbol(b_pp2, Decl(commentsClassMembers.ts, 139, 26)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_pp2 : (b: number) => number, Symbol(b_pp2, Decl(commentsClassMembers.ts, 139, 26)) +>this.b_pp1 : number, Symbol(b_pp1, Decl(commentsClassMembers.ts, 137, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_pp1 : number, Symbol(b_pp1, Decl(commentsClassMembers.ts, 137, 5)) } /** setter property */ private set b_pp3(value: number) { ->b_pp3 : number ->value : number +>b_pp3 : number, Symbol(b_pp3, Decl(commentsClassMembers.ts, 143, 5), Decl(commentsClassMembers.ts, 147, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 149, 22)) this.b_pp1 = this.b_pp2(value); >this.b_pp1 = this.b_pp2(value) : number ->this.b_pp1 : number ->this : c1 ->b_pp1 : number +>this.b_pp1 : number, Symbol(b_pp1, Decl(commentsClassMembers.ts, 137, 5)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_pp1 : number, Symbol(b_pp1, Decl(commentsClassMembers.ts, 137, 5)) >this.b_pp2(value) : number ->this.b_pp2 : (b: number) => number ->this : c1 ->b_pp2 : (b: number) => number ->value : number +>this.b_pp2 : (b: number) => number, Symbol(b_pp2, Decl(commentsClassMembers.ts, 139, 26)) +>this : c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_pp2 : (b: number) => number, Symbol(b_pp2, Decl(commentsClassMembers.ts, 139, 26)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 149, 22)) } /** s1 is static property of c1 */ static b_s1: number; ->b_s1 : number +>b_s1 : number, Symbol(c1.b_s1, Decl(commentsClassMembers.ts, 151, 5)) /** static sum with property */ static b_s2(b: number) { ->b_s2 : (b: number) => number ->b : number +>b_s2 : (b: number) => number, Symbol(c1.b_s2, Decl(commentsClassMembers.ts, 154, 24)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 156, 16)) return c1.b_s1 + b; >c1.b_s1 + b : number ->c1.b_s1 : number ->c1 : typeof c1 ->b_s1 : number ->b : number +>c1.b_s1 : number, Symbol(c1.b_s1, Decl(commentsClassMembers.ts, 151, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_s1 : number, Symbol(c1.b_s1, Decl(commentsClassMembers.ts, 151, 5)) +>b : number, Symbol(b, Decl(commentsClassMembers.ts, 156, 16)) } /** static getter property */ static get b_s3() { ->b_s3 : number +>b_s3 : number, Symbol(c1.b_s3, Decl(commentsClassMembers.ts, 158, 5), Decl(commentsClassMembers.ts, 163, 5)) return c1.s2(c1.s1); >c1.s2(c1.s1) : number ->c1.s2 : (b: number) => number ->c1 : typeof c1 ->s2 : (b: number) => number ->c1.s1 : number ->c1 : typeof c1 ->s1 : number +>c1.s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) +>c1.s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) } /** setter property */ static set b_s3(value: number) { ->b_s3 : number ->value : number +>b_s3 : number, Symbol(c1.b_s3, Decl(commentsClassMembers.ts, 158, 5), Decl(commentsClassMembers.ts, 163, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 167, 20)) /** setter */ c1.b_s1 = c1.b_s2(value); >c1.b_s1 = c1.b_s2(value) : number ->c1.b_s1 : number ->c1 : typeof c1 ->b_s1 : number +>c1.b_s1 : number, Symbol(c1.b_s1, Decl(commentsClassMembers.ts, 151, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_s1 : number, Symbol(c1.b_s1, Decl(commentsClassMembers.ts, 151, 5)) >c1.b_s2(value) : number ->c1.b_s2 : (b: number) => number ->c1 : typeof c1 ->b_s2 : (b: number) => number ->value : number +>c1.b_s2 : (b: number) => number, Symbol(c1.b_s2, Decl(commentsClassMembers.ts, 154, 24)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>b_s2 : (b: number) => number, Symbol(c1.b_s2, Decl(commentsClassMembers.ts, 154, 24)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 167, 20)) } } var i1 = new c1(); ->i1 : c1 +>i1 : c1, Symbol(i1, Decl(commentsClassMembers.ts, 172, 3)) >new c1() : c1 ->c1 : typeof c1 +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) var i1_p = i1.p1; ->i1_p : number ->i1.p1 : number ->i1 : c1 ->p1 : number +>i1_p : number, Symbol(i1_p, Decl(commentsClassMembers.ts, 173, 3)) +>i1.p1 : number, Symbol(c1.p1, Decl(commentsClassMembers.ts, 2, 10)) +>i1 : c1, Symbol(i1, Decl(commentsClassMembers.ts, 172, 3)) +>p1 : number, Symbol(c1.p1, Decl(commentsClassMembers.ts, 2, 10)) var i1_f = i1.p2; ->i1_f : (b: number) => number ->i1.p2 : (b: number) => number ->i1 : c1 ->p2 : (b: number) => number +>i1_f : (b: number) => number, Symbol(i1_f, Decl(commentsClassMembers.ts, 174, 3)) +>i1.p2 : (b: number) => number, Symbol(c1.p2, Decl(commentsClassMembers.ts, 4, 22)) +>i1 : c1, Symbol(i1, Decl(commentsClassMembers.ts, 172, 3)) +>p2 : (b: number) => number, Symbol(c1.p2, Decl(commentsClassMembers.ts, 4, 22)) var i1_r = i1.p2(20); ->i1_r : number +>i1_r : number, Symbol(i1_r, Decl(commentsClassMembers.ts, 175, 3)) >i1.p2(20) : number ->i1.p2 : (b: number) => number ->i1 : c1 ->p2 : (b: number) => number +>i1.p2 : (b: number) => number, Symbol(c1.p2, Decl(commentsClassMembers.ts, 4, 22)) +>i1 : c1, Symbol(i1, Decl(commentsClassMembers.ts, 172, 3)) +>p2 : (b: number) => number, Symbol(c1.p2, Decl(commentsClassMembers.ts, 4, 22)) +>20 : number var i1_prop = i1.p3; ->i1_prop : number ->i1.p3 : number ->i1 : c1 ->p3 : number +>i1_prop : number, Symbol(i1_prop, Decl(commentsClassMembers.ts, 176, 3)) +>i1.p3 : number, Symbol(c1.p3, Decl(commentsClassMembers.ts, 8, 5), Decl(commentsClassMembers.ts, 12, 5)) +>i1 : c1, Symbol(i1, Decl(commentsClassMembers.ts, 172, 3)) +>p3 : number, Symbol(c1.p3, Decl(commentsClassMembers.ts, 8, 5), Decl(commentsClassMembers.ts, 12, 5)) i1.p3 = i1_prop; >i1.p3 = i1_prop : number ->i1.p3 : number ->i1 : c1 ->p3 : number ->i1_prop : number +>i1.p3 : number, Symbol(c1.p3, Decl(commentsClassMembers.ts, 8, 5), Decl(commentsClassMembers.ts, 12, 5)) +>i1 : c1, Symbol(i1, Decl(commentsClassMembers.ts, 172, 3)) +>p3 : number, Symbol(c1.p3, Decl(commentsClassMembers.ts, 8, 5), Decl(commentsClassMembers.ts, 12, 5)) +>i1_prop : number, Symbol(i1_prop, Decl(commentsClassMembers.ts, 176, 3)) var i1_nc_p = i1.nc_p1; ->i1_nc_p : number ->i1.nc_p1 : number ->i1 : c1 ->nc_p1 : number +>i1_nc_p : number, Symbol(i1_nc_p, Decl(commentsClassMembers.ts, 178, 3)) +>i1.nc_p1 : number, Symbol(c1.nc_p1, Decl(commentsClassMembers.ts, 47, 5)) +>i1 : c1, Symbol(i1, Decl(commentsClassMembers.ts, 172, 3)) +>nc_p1 : number, Symbol(c1.nc_p1, Decl(commentsClassMembers.ts, 47, 5)) var i1_ncf = i1.nc_p2; ->i1_ncf : (b: number) => number ->i1.nc_p2 : (b: number) => number ->i1 : c1 ->nc_p2 : (b: number) => number +>i1_ncf : (b: number) => number, Symbol(i1_ncf, Decl(commentsClassMembers.ts, 179, 3)) +>i1.nc_p2 : (b: number) => number, Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 48, 25)) +>i1 : c1, Symbol(i1, Decl(commentsClassMembers.ts, 172, 3)) +>nc_p2 : (b: number) => number, Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 48, 25)) var i1_ncr = i1.nc_p2(20); ->i1_ncr : number +>i1_ncr : number, Symbol(i1_ncr, Decl(commentsClassMembers.ts, 180, 3)) >i1.nc_p2(20) : number ->i1.nc_p2 : (b: number) => number ->i1 : c1 ->nc_p2 : (b: number) => number +>i1.nc_p2 : (b: number) => number, Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 48, 25)) +>i1 : c1, Symbol(i1, Decl(commentsClassMembers.ts, 172, 3)) +>nc_p2 : (b: number) => number, Symbol(c1.nc_p2, Decl(commentsClassMembers.ts, 48, 25)) +>20 : number var i1_ncprop = i1.nc_p3; ->i1_ncprop : number ->i1.nc_p3 : number ->i1 : c1 ->nc_p3 : number +>i1_ncprop : number, Symbol(i1_ncprop, Decl(commentsClassMembers.ts, 181, 3)) +>i1.nc_p3 : number, Symbol(c1.nc_p3, Decl(commentsClassMembers.ts, 51, 5), Decl(commentsClassMembers.ts, 54, 5)) +>i1 : c1, Symbol(i1, Decl(commentsClassMembers.ts, 172, 3)) +>nc_p3 : number, Symbol(c1.nc_p3, Decl(commentsClassMembers.ts, 51, 5), Decl(commentsClassMembers.ts, 54, 5)) i1.nc_p3 = i1_ncprop; >i1.nc_p3 = i1_ncprop : number ->i1.nc_p3 : number ->i1 : c1 ->nc_p3 : number ->i1_ncprop : number +>i1.nc_p3 : number, Symbol(c1.nc_p3, Decl(commentsClassMembers.ts, 51, 5), Decl(commentsClassMembers.ts, 54, 5)) +>i1 : c1, Symbol(i1, Decl(commentsClassMembers.ts, 172, 3)) +>nc_p3 : number, Symbol(c1.nc_p3, Decl(commentsClassMembers.ts, 51, 5), Decl(commentsClassMembers.ts, 54, 5)) +>i1_ncprop : number, Symbol(i1_ncprop, Decl(commentsClassMembers.ts, 181, 3)) var i1_s_p = c1.s1; ->i1_s_p : number ->c1.s1 : number ->c1 : typeof c1 ->s1 : number +>i1_s_p : number, Symbol(i1_s_p, Decl(commentsClassMembers.ts, 183, 3)) +>c1.s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s1 : number, Symbol(c1.s1, Decl(commentsClassMembers.ts, 33, 5)) var i1_s_f = c1.s2; ->i1_s_f : (b: number) => number ->c1.s2 : (b: number) => number ->c1 : typeof c1 ->s2 : (b: number) => number +>i1_s_f : (b: number) => number, Symbol(i1_s_f, Decl(commentsClassMembers.ts, 184, 3)) +>c1.s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) var i1_s_r = c1.s2(20); ->i1_s_r : number +>i1_s_r : number, Symbol(i1_s_r, Decl(commentsClassMembers.ts, 185, 3)) >c1.s2(20) : number ->c1.s2 : (b: number) => number ->c1 : typeof c1 ->s2 : (b: number) => number +>c1.s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s2 : (b: number) => number, Symbol(c1.s2, Decl(commentsClassMembers.ts, 35, 22)) +>20 : number var i1_s_prop = c1.s3; ->i1_s_prop : number ->c1.s3 : number ->c1 : typeof c1 ->s3 : number +>i1_s_prop : number, Symbol(i1_s_prop, Decl(commentsClassMembers.ts, 186, 3)) +>c1.s3 : number, Symbol(c1.s3, Decl(commentsClassMembers.ts, 39, 5), Decl(commentsClassMembers.ts, 43, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s3 : number, Symbol(c1.s3, Decl(commentsClassMembers.ts, 39, 5), Decl(commentsClassMembers.ts, 43, 5)) c1.s3 = i1_s_prop; >c1.s3 = i1_s_prop : number ->c1.s3 : number ->c1 : typeof c1 ->s3 : number ->i1_s_prop : number +>c1.s3 : number, Symbol(c1.s3, Decl(commentsClassMembers.ts, 39, 5), Decl(commentsClassMembers.ts, 43, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>s3 : number, Symbol(c1.s3, Decl(commentsClassMembers.ts, 39, 5), Decl(commentsClassMembers.ts, 43, 5)) +>i1_s_prop : number, Symbol(i1_s_prop, Decl(commentsClassMembers.ts, 186, 3)) var i1_s_nc_p = c1.nc_s1; ->i1_s_nc_p : number ->c1.nc_s1 : number ->c1 : typeof c1 ->nc_s1 : number +>i1_s_nc_p : number, Symbol(i1_s_nc_p, Decl(commentsClassMembers.ts, 188, 3)) +>c1.nc_s1 : number, Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 67, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s1 : number, Symbol(c1.nc_s1, Decl(commentsClassMembers.ts, 67, 5)) var i1_s_ncf = c1.nc_s2; ->i1_s_ncf : (b: number) => number ->c1.nc_s2 : (b: number) => number ->c1 : typeof c1 ->nc_s2 : (b: number) => number +>i1_s_ncf : (b: number) => number, Symbol(i1_s_ncf, Decl(commentsClassMembers.ts, 189, 3)) +>c1.nc_s2 : (b: number) => number, Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 68, 25)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s2 : (b: number) => number, Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 68, 25)) var i1_s_ncr = c1.nc_s2(20); ->i1_s_ncr : number +>i1_s_ncr : number, Symbol(i1_s_ncr, Decl(commentsClassMembers.ts, 190, 3)) >c1.nc_s2(20) : number ->c1.nc_s2 : (b: number) => number ->c1 : typeof c1 ->nc_s2 : (b: number) => number +>c1.nc_s2 : (b: number) => number, Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 68, 25)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s2 : (b: number) => number, Symbol(c1.nc_s2, Decl(commentsClassMembers.ts, 68, 25)) +>20 : number var i1_s_ncprop = c1.nc_s3; ->i1_s_ncprop : number ->c1.nc_s3 : number ->c1 : typeof c1 ->nc_s3 : number +>i1_s_ncprop : number, Symbol(i1_s_ncprop, Decl(commentsClassMembers.ts, 191, 3)) +>c1.nc_s3 : number, Symbol(c1.nc_s3, Decl(commentsClassMembers.ts, 71, 5), Decl(commentsClassMembers.ts, 74, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s3 : number, Symbol(c1.nc_s3, Decl(commentsClassMembers.ts, 71, 5), Decl(commentsClassMembers.ts, 74, 5)) c1.nc_s3 = i1_s_ncprop; >c1.nc_s3 = i1_s_ncprop : number ->c1.nc_s3 : number ->c1 : typeof c1 ->nc_s3 : number ->i1_s_ncprop : number +>c1.nc_s3 : number, Symbol(c1.nc_s3, Decl(commentsClassMembers.ts, 71, 5), Decl(commentsClassMembers.ts, 74, 5)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) +>nc_s3 : number, Symbol(c1.nc_s3, Decl(commentsClassMembers.ts, 71, 5), Decl(commentsClassMembers.ts, 74, 5)) +>i1_s_ncprop : number, Symbol(i1_s_ncprop, Decl(commentsClassMembers.ts, 191, 3)) var i1_c = c1; ->i1_c : typeof c1 ->c1 : typeof c1 +>i1_c : typeof c1, Symbol(i1_c, Decl(commentsClassMembers.ts, 193, 3)) +>c1 : typeof c1, Symbol(c1, Decl(commentsClassMembers.ts, 0, 0)) class cProperties { ->cProperties : cProperties +>cProperties : cProperties, Symbol(cProperties, Decl(commentsClassMembers.ts, 193, 14)) private val: number; ->val : number +>val : number, Symbol(val, Decl(commentsClassMembers.ts, 194, 19)) /** getter only property*/ public get p1() { ->p1 : number +>p1 : number, Symbol(p1, Decl(commentsClassMembers.ts, 195, 24)) return this.val; ->this.val : number ->this : cProperties ->val : number +>this.val : number, Symbol(val, Decl(commentsClassMembers.ts, 194, 19)) +>this : cProperties, Symbol(cProperties, Decl(commentsClassMembers.ts, 193, 14)) +>val : number, Symbol(val, Decl(commentsClassMembers.ts, 194, 19)) } // trailing comment of only getter public get nc_p1() { ->nc_p1 : number +>nc_p1 : number, Symbol(nc_p1, Decl(commentsClassMembers.ts, 199, 5)) return this.val; ->this.val : number ->this : cProperties ->val : number +>this.val : number, Symbol(val, Decl(commentsClassMembers.ts, 194, 19)) +>this : cProperties, Symbol(cProperties, Decl(commentsClassMembers.ts, 193, 14)) +>val : number, Symbol(val, Decl(commentsClassMembers.ts, 194, 19)) } /**setter only property*/ public set p2(value: number) { ->p2 : number ->value : number +>p2 : number, Symbol(p2, Decl(commentsClassMembers.ts, 202, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 204, 18)) this.val = value; >this.val = value : number ->this.val : number ->this : cProperties ->val : number ->value : number +>this.val : number, Symbol(val, Decl(commentsClassMembers.ts, 194, 19)) +>this : cProperties, Symbol(cProperties, Decl(commentsClassMembers.ts, 193, 14)) +>val : number, Symbol(val, Decl(commentsClassMembers.ts, 194, 19)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 204, 18)) } public set nc_p2(value: number) { ->nc_p2 : number ->value : number +>nc_p2 : number, Symbol(nc_p2, Decl(commentsClassMembers.ts, 206, 5)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 207, 21)) this.val = value; >this.val = value : number ->this.val : number ->this : cProperties ->val : number ->value : number +>this.val : number, Symbol(val, Decl(commentsClassMembers.ts, 194, 19)) +>this : cProperties, Symbol(cProperties, Decl(commentsClassMembers.ts, 193, 14)) +>val : number, Symbol(val, Decl(commentsClassMembers.ts, 194, 19)) +>value : number, Symbol(value, Decl(commentsClassMembers.ts, 207, 21)) } /* trailing comment of setter only*/ public x = 10; /*trailing comment for property*/ ->x : number +>x : number, Symbol(x, Decl(commentsClassMembers.ts, 209, 5)) +>10 : number private y = 10; // trailing comment of // style ->y : number +>y : number, Symbol(y, Decl(commentsClassMembers.ts, 211, 18)) +>10 : number } var cProperties_i = new cProperties(); ->cProperties_i : cProperties +>cProperties_i : cProperties, Symbol(cProperties_i, Decl(commentsClassMembers.ts, 214, 3)) >new cProperties() : cProperties ->cProperties : typeof cProperties +>cProperties : typeof cProperties, Symbol(cProperties, Decl(commentsClassMembers.ts, 193, 14)) cProperties_i.p2 = cProperties_i.p1; >cProperties_i.p2 = cProperties_i.p1 : number ->cProperties_i.p2 : number ->cProperties_i : cProperties ->p2 : number ->cProperties_i.p1 : number ->cProperties_i : cProperties ->p1 : number +>cProperties_i.p2 : number, Symbol(cProperties.p2, Decl(commentsClassMembers.ts, 202, 5)) +>cProperties_i : cProperties, Symbol(cProperties_i, Decl(commentsClassMembers.ts, 214, 3)) +>p2 : number, Symbol(cProperties.p2, Decl(commentsClassMembers.ts, 202, 5)) +>cProperties_i.p1 : number, Symbol(cProperties.p1, Decl(commentsClassMembers.ts, 195, 24)) +>cProperties_i : cProperties, Symbol(cProperties_i, Decl(commentsClassMembers.ts, 214, 3)) +>p1 : number, Symbol(cProperties.p1, Decl(commentsClassMembers.ts, 195, 24)) cProperties_i.nc_p2 = cProperties_i.nc_p1; >cProperties_i.nc_p2 = cProperties_i.nc_p1 : number ->cProperties_i.nc_p2 : number ->cProperties_i : cProperties ->nc_p2 : number ->cProperties_i.nc_p1 : number ->cProperties_i : cProperties ->nc_p1 : number +>cProperties_i.nc_p2 : number, Symbol(cProperties.nc_p2, Decl(commentsClassMembers.ts, 206, 5)) +>cProperties_i : cProperties, Symbol(cProperties_i, Decl(commentsClassMembers.ts, 214, 3)) +>nc_p2 : number, Symbol(cProperties.nc_p2, Decl(commentsClassMembers.ts, 206, 5)) +>cProperties_i.nc_p1 : number, Symbol(cProperties.nc_p1, Decl(commentsClassMembers.ts, 199, 5)) +>cProperties_i : cProperties, Symbol(cProperties_i, Decl(commentsClassMembers.ts, 214, 3)) +>nc_p1 : number, Symbol(cProperties.nc_p1, Decl(commentsClassMembers.ts, 199, 5)) diff --git a/tests/baselines/reference/commentsCommentParsing.types b/tests/baselines/reference/commentsCommentParsing.types index a9194f9a63a..9fc3f363a61 100644 --- a/tests/baselines/reference/commentsCommentParsing.types +++ b/tests/baselines/reference/commentsCommentParsing.types @@ -2,41 +2,41 @@ /// This is simple /// comments function simple() { ->simple : () => void +>simple : () => void, Symbol(simple, Decl(commentsCommentParsing.ts, 0, 0)) } simple(); >simple() : void ->simple : () => void +>simple : () => void, Symbol(simple, Decl(commentsCommentParsing.ts, 0, 0)) /// multiLine /// Comments /// This is example of multiline /// comments /// Another multiLine function multiLine() { ->multiLine : () => void +>multiLine : () => void, Symbol(multiLine, Decl(commentsCommentParsing.ts, 5, 9)) } multiLine(); >multiLine() : void ->multiLine : () => void +>multiLine : () => void, Symbol(multiLine, Decl(commentsCommentParsing.ts, 5, 9)) /** this is eg of single line jsdoc style comment */ function jsDocSingleLine() { ->jsDocSingleLine : () => void +>jsDocSingleLine : () => void, Symbol(jsDocSingleLine, Decl(commentsCommentParsing.ts, 12, 12)) } jsDocSingleLine(); >jsDocSingleLine() : void ->jsDocSingleLine : () => void +>jsDocSingleLine : () => void, Symbol(jsDocSingleLine, Decl(commentsCommentParsing.ts, 12, 12)) /** this is multiple line jsdoc stule comment *New line1 *New Line2*/ function jsDocMultiLine() { ->jsDocMultiLine : () => void +>jsDocMultiLine : () => void, Symbol(jsDocMultiLine, Decl(commentsCommentParsing.ts, 17, 18)) } jsDocMultiLine(); >jsDocMultiLine() : void ->jsDocMultiLine : () => void +>jsDocMultiLine : () => void, Symbol(jsDocMultiLine, Decl(commentsCommentParsing.ts, 17, 18)) /** this is multiple line jsdoc stule comment *New line1 @@ -44,60 +44,60 @@ jsDocMultiLine(); /** Shoul mege this line as well * and this too*/ /** Another this one too*/ function jsDocMultiLineMerge() { ->jsDocMultiLineMerge : () => void +>jsDocMultiLineMerge : () => void, Symbol(jsDocMultiLineMerge, Decl(commentsCommentParsing.ts, 25, 17)) } jsDocMultiLineMerge(); >jsDocMultiLineMerge() : void ->jsDocMultiLineMerge : () => void +>jsDocMultiLineMerge : () => void, Symbol(jsDocMultiLineMerge, Decl(commentsCommentParsing.ts, 25, 17)) /// Triple slash comment /** jsdoc comment */ function jsDocMixedComments1() { ->jsDocMixedComments1 : () => void +>jsDocMixedComments1 : () => void, Symbol(jsDocMixedComments1, Decl(commentsCommentParsing.ts, 34, 22)) } jsDocMixedComments1(); >jsDocMixedComments1() : void ->jsDocMixedComments1 : () => void +>jsDocMixedComments1 : () => void, Symbol(jsDocMixedComments1, Decl(commentsCommentParsing.ts, 34, 22)) /// Triple slash comment /** jsdoc comment */ /*** another jsDocComment*/ function jsDocMixedComments2() { ->jsDocMixedComments2 : () => void +>jsDocMixedComments2 : () => void, Symbol(jsDocMixedComments2, Decl(commentsCommentParsing.ts, 41, 22)) } jsDocMixedComments2(); >jsDocMixedComments2() : void ->jsDocMixedComments2 : () => void +>jsDocMixedComments2 : () => void, Symbol(jsDocMixedComments2, Decl(commentsCommentParsing.ts, 41, 22)) /** jsdoc comment */ /*** another jsDocComment*/ /// Triple slash comment function jsDocMixedComments3() { ->jsDocMixedComments3 : () => void +>jsDocMixedComments3 : () => void, Symbol(jsDocMixedComments3, Decl(commentsCommentParsing.ts, 47, 22)) } jsDocMixedComments3(); >jsDocMixedComments3() : void ->jsDocMixedComments3 : () => void +>jsDocMixedComments3 : () => void, Symbol(jsDocMixedComments3, Decl(commentsCommentParsing.ts, 47, 22)) /** jsdoc comment */ /*** another jsDocComment*/ /// Triple slash comment /// Triple slash comment 2 function jsDocMixedComments4() { ->jsDocMixedComments4 : () => void +>jsDocMixedComments4 : () => void, Symbol(jsDocMixedComments4, Decl(commentsCommentParsing.ts, 53, 22)) } jsDocMixedComments4(); >jsDocMixedComments4() : void ->jsDocMixedComments4 : () => void +>jsDocMixedComments4 : () => void, Symbol(jsDocMixedComments4, Decl(commentsCommentParsing.ts, 53, 22)) /// Triple slash comment 1 /** jsdoc comment */ /*** another jsDocComment*/ /// Triple slash comment /// Triple slash comment 2 function jsDocMixedComments5() { ->jsDocMixedComments5 : () => void +>jsDocMixedComments5 : () => void, Symbol(jsDocMixedComments5, Decl(commentsCommentParsing.ts, 60, 22)) } jsDocMixedComments5(); >jsDocMixedComments5() : void ->jsDocMixedComments5 : () => void +>jsDocMixedComments5 : () => void, Symbol(jsDocMixedComments5, Decl(commentsCommentParsing.ts, 60, 22)) /*** another jsDocComment*/ /// Triple slash comment 1 @@ -105,52 +105,54 @@ jsDocMixedComments5(); /// Triple slash comment 2 /** jsdoc comment */ function jsDocMixedComments6() { ->jsDocMixedComments6 : () => void +>jsDocMixedComments6 : () => void, Symbol(jsDocMixedComments6, Decl(commentsCommentParsing.ts, 68, 22)) } jsDocMixedComments6(); >jsDocMixedComments6() : void ->jsDocMixedComments6 : () => void +>jsDocMixedComments6 : () => void, Symbol(jsDocMixedComments6, Decl(commentsCommentParsing.ts, 68, 22)) // This shoulnot be help comment function noHelpComment1() { ->noHelpComment1 : () => void +>noHelpComment1 : () => void, Symbol(noHelpComment1, Decl(commentsCommentParsing.ts, 77, 22)) } noHelpComment1(); >noHelpComment1() : void ->noHelpComment1 : () => void +>noHelpComment1 : () => void, Symbol(noHelpComment1, Decl(commentsCommentParsing.ts, 77, 22)) /* This shoulnot be help comment */ function noHelpComment2() { ->noHelpComment2 : () => void +>noHelpComment2 : () => void, Symbol(noHelpComment2, Decl(commentsCommentParsing.ts, 82, 17)) } noHelpComment2(); >noHelpComment2() : void ->noHelpComment2 : () => void +>noHelpComment2 : () => void, Symbol(noHelpComment2, Decl(commentsCommentParsing.ts, 82, 17)) function noHelpComment3() { ->noHelpComment3 : () => void +>noHelpComment3 : () => void, Symbol(noHelpComment3, Decl(commentsCommentParsing.ts, 87, 17)) } noHelpComment3(); >noHelpComment3() : void ->noHelpComment3 : () => void +>noHelpComment3 : () => void, Symbol(noHelpComment3, Decl(commentsCommentParsing.ts, 87, 17)) /** Adds two integers and returns the result * @param {number} a first number * @param b second number */ function sum(a: number, b: number) { ->sum : (a: number, b: number) => number ->a : number ->b : number +>sum : (a: number, b: number) => number, Symbol(sum, Decl(commentsCommentParsing.ts, 91, 17)) +>a : number, Symbol(a, Decl(commentsCommentParsing.ts, 96, 13)) +>b : number, Symbol(b, Decl(commentsCommentParsing.ts, 96, 23)) return a + b; >a + b : number ->a : number ->b : number +>a : number, Symbol(a, Decl(commentsCommentParsing.ts, 96, 13)) +>b : number, Symbol(b, Decl(commentsCommentParsing.ts, 96, 23)) } sum(10, 20); >sum(10, 20) : number ->sum : (a: number, b: number) => number +>sum : (a: number, b: number) => number, Symbol(sum, Decl(commentsCommentParsing.ts, 91, 17)) +>10 : number +>20 : number /** This is multiplication function*/ /** @param */ @@ -160,32 +162,32 @@ sum(10, 20); @param d @anotherTag*/ /** @param e LastParam @anotherTag*/ function multiply(a: number, b: number, c?: number, d?, e?) { ->multiply : (a: number, b: number, c?: number, d?: any, e?: any) => void ->a : number ->b : number ->c : number ->d : any ->e : any +>multiply : (a: number, b: number, c?: number, d?: any, e?: any) => void, Symbol(multiply, Decl(commentsCommentParsing.ts, 99, 12)) +>a : number, Symbol(a, Decl(commentsCommentParsing.ts, 107, 18)) +>b : number, Symbol(b, Decl(commentsCommentParsing.ts, 107, 28)) +>c : number, Symbol(c, Decl(commentsCommentParsing.ts, 107, 39)) +>d : any, Symbol(d, Decl(commentsCommentParsing.ts, 107, 51)) +>e : any, Symbol(e, Decl(commentsCommentParsing.ts, 107, 55)) } /** fn f1 with number * @param { string} b about b */ function f1(a: number); ->f1 : { (a: number): any; (b: string): any; } ->a : number +>f1 : { (a: number): any; (b: string): any; }, Symbol(f1, Decl(commentsCommentParsing.ts, 108, 1), Decl(commentsCommentParsing.ts, 112, 23), Decl(commentsCommentParsing.ts, 113, 23)) +>a : number, Symbol(a, Decl(commentsCommentParsing.ts, 112, 12)) function f1(b: string); ->f1 : { (a: number): any; (b: string): any; } ->b : string +>f1 : { (a: number): any; (b: string): any; }, Symbol(f1, Decl(commentsCommentParsing.ts, 108, 1), Decl(commentsCommentParsing.ts, 112, 23), Decl(commentsCommentParsing.ts, 113, 23)) +>b : string, Symbol(b, Decl(commentsCommentParsing.ts, 113, 12)) /**@param opt optional parameter*/ function f1(aOrb, opt?) { ->f1 : { (a: number): any; (b: string): any; } ->aOrb : any ->opt : any +>f1 : { (a: number): any; (b: string): any; }, Symbol(f1, Decl(commentsCommentParsing.ts, 108, 1), Decl(commentsCommentParsing.ts, 112, 23), Decl(commentsCommentParsing.ts, 113, 23)) +>aOrb : any, Symbol(aOrb, Decl(commentsCommentParsing.ts, 115, 12)) +>opt : any, Symbol(opt, Decl(commentsCommentParsing.ts, 115, 17)) return aOrb; ->aOrb : any +>aOrb : any, Symbol(aOrb, Decl(commentsCommentParsing.ts, 115, 12)) } /** This is subtract function @param { a @@ -196,13 +198,13 @@ function f1(aOrb, opt?) { @param { { { () => string; } } f this is optional param f */ function subtract(a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string) { ->subtract : (a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string) => void ->a : number ->b : number ->c : () => string ->d : () => string ->e : () => string ->f : () => string +>subtract : (a: number, b: number, c?: () => string, d?: () => string, e?: () => string, f?: () => string) => void, Symbol(subtract, Decl(commentsCommentParsing.ts, 117, 1)) +>a : number, Symbol(a, Decl(commentsCommentParsing.ts, 126, 18)) +>b : number, Symbol(b, Decl(commentsCommentParsing.ts, 126, 28)) +>c : () => string, Symbol(c, Decl(commentsCommentParsing.ts, 126, 39)) +>d : () => string, Symbol(d, Decl(commentsCommentParsing.ts, 126, 57)) +>e : () => string, Symbol(e, Decl(commentsCommentParsing.ts, 126, 75)) +>f : () => string, Symbol(f, Decl(commentsCommentParsing.ts, 126, 93)) } /** this is square function @paramTag { number } a this is input number of paramTag @@ -210,13 +212,13 @@ function subtract(a: number, b: number, c?: () => string, d?: () => string, e?: @returnType { number } it is return type */ function square(a: number) { ->square : (a: number) => number ->a : number +>square : (a: number) => number, Symbol(square, Decl(commentsCommentParsing.ts, 127, 1)) +>a : number, Symbol(a, Decl(commentsCommentParsing.ts, 133, 16)) return a * a; >a * a : number ->a : number ->a : number +>a : number, Symbol(a, Decl(commentsCommentParsing.ts, 133, 16)) +>a : number, Symbol(a, Decl(commentsCommentParsing.ts, 133, 16)) } /** this is divide function @param { number} a this is a @@ -224,32 +226,32 @@ function square(a: number) { @param { number} b this is b */ function divide(a: number, b: number) { ->divide : (a: number, b: number) => void ->a : number ->b : number +>divide : (a: number, b: number) => void, Symbol(divide, Decl(commentsCommentParsing.ts, 135, 1)) +>a : number, Symbol(a, Decl(commentsCommentParsing.ts, 141, 16)) +>b : number, Symbol(b, Decl(commentsCommentParsing.ts, 141, 26)) } /** this is jsdoc style function with param tag as well as inline parameter help *@param a it is first parameter *@param c it is third parameter */ function jsDocParamTest(/** this is inline comment for a */a: number, /** this is inline comment for b*/ b: number, c: number, d: number) { ->jsDocParamTest : (a: number, b: number, c: number, d: number) => number ->a : number ->b : number ->c : number ->d : number +>jsDocParamTest : (a: number, b: number, c: number, d: number) => number, Symbol(jsDocParamTest, Decl(commentsCommentParsing.ts, 142, 1)) +>a : number, Symbol(a, Decl(commentsCommentParsing.ts, 147, 24)) +>b : number, Symbol(b, Decl(commentsCommentParsing.ts, 147, 69)) +>c : number, Symbol(c, Decl(commentsCommentParsing.ts, 147, 115)) +>d : number, Symbol(d, Decl(commentsCommentParsing.ts, 147, 126)) return a + b + c + d; >a + b + c + d : number >a + b + c : number >a + b : number ->a : number ->b : number ->c : number ->d : number +>a : number, Symbol(a, Decl(commentsCommentParsing.ts, 147, 24)) +>b : number, Symbol(b, Decl(commentsCommentParsing.ts, 147, 69)) +>c : number, Symbol(c, Decl(commentsCommentParsing.ts, 147, 115)) +>d : number, Symbol(d, Decl(commentsCommentParsing.ts, 147, 126)) } /**/ class NoQuickInfoClass { ->NoQuickInfoClass : NoQuickInfoClass +>NoQuickInfoClass : NoQuickInfoClass, Symbol(NoQuickInfoClass, Decl(commentsCommentParsing.ts, 149, 1)) } diff --git a/tests/baselines/reference/commentsDottedModuleName.types b/tests/baselines/reference/commentsDottedModuleName.types index 53195bfccfa..e2d6713e8d5 100644 --- a/tests/baselines/reference/commentsDottedModuleName.types +++ b/tests/baselines/reference/commentsDottedModuleName.types @@ -2,11 +2,11 @@ /** this is multi declare module*/ export module outerModule.InnerModule { ->outerModule : typeof outerModule ->InnerModule : typeof InnerModule +>outerModule : typeof outerModule, Symbol(outerModule, Decl(commentsDottedModuleName.ts, 0, 0)) +>InnerModule : typeof InnerModule, Symbol(InnerModule, Decl(commentsDottedModuleName.ts, 2, 26)) /// class b comment export class b { ->b : b +>b : b, Symbol(b, Decl(commentsDottedModuleName.ts, 2, 39)) } } diff --git a/tests/baselines/reference/commentsEnums.types b/tests/baselines/reference/commentsEnums.types index 64404bff2e5..d1f4c8d795d 100644 --- a/tests/baselines/reference/commentsEnums.types +++ b/tests/baselines/reference/commentsEnums.types @@ -2,28 +2,28 @@ /** Enum of colors*/ enum Colors { ->Colors : Colors +>Colors : Colors, Symbol(Colors, Decl(commentsEnums.ts, 0, 0)) /** Fancy name for 'blue'*/ Cornflower /* blue */, ->Cornflower : Colors +>Cornflower : Colors, Symbol(Colors.Cornflower, Decl(commentsEnums.ts, 2, 13)) /** Fancy name for 'pink'*/ FancyPink ->FancyPink : Colors +>FancyPink : Colors, Symbol(Colors.FancyPink, Decl(commentsEnums.ts, 4, 26)) } // trailing comment var x = Colors.Cornflower; ->x : Colors ->Colors.Cornflower : Colors ->Colors : typeof Colors ->Cornflower : Colors +>x : Colors, Symbol(x, Decl(commentsEnums.ts, 8, 3)) +>Colors.Cornflower : Colors, Symbol(Colors.Cornflower, Decl(commentsEnums.ts, 2, 13)) +>Colors : typeof Colors, Symbol(Colors, Decl(commentsEnums.ts, 0, 0)) +>Cornflower : Colors, Symbol(Colors.Cornflower, Decl(commentsEnums.ts, 2, 13)) x = Colors.FancyPink; >x = Colors.FancyPink : Colors ->x : Colors ->Colors.FancyPink : Colors ->Colors : typeof Colors ->FancyPink : Colors +>x : Colors, Symbol(x, Decl(commentsEnums.ts, 8, 3)) +>Colors.FancyPink : Colors, Symbol(Colors.FancyPink, Decl(commentsEnums.ts, 4, 26)) +>Colors : typeof Colors, Symbol(Colors, Decl(commentsEnums.ts, 0, 0)) +>FancyPink : Colors, Symbol(Colors.FancyPink, Decl(commentsEnums.ts, 4, 26)) diff --git a/tests/baselines/reference/commentsExternalModules.types b/tests/baselines/reference/commentsExternalModules.types index 56b6b338f4d..f5b55de0003 100644 --- a/tests/baselines/reference/commentsExternalModules.types +++ b/tests/baselines/reference/commentsExternalModules.types @@ -1,155 +1,155 @@ === tests/cases/compiler/commentsExternalModules_1.ts === /**This is on import declaration*/ import extMod = require("commentsExternalModules_0"); // trailing comment1 ->extMod : typeof extMod +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) extMod.m1.fooExport(); >extMod.m1.fooExport() : number ->extMod.m1.fooExport : () => number ->extMod.m1 : typeof extMod.m1 ->extMod : typeof extMod ->m1 : typeof extMod.m1 ->fooExport : () => number +>extMod.m1.fooExport : () => number, Symbol(extMod.m1.fooExport, Decl(commentsExternalModules_0.ts, 16, 5)) +>extMod.m1 : typeof extMod.m1, Symbol(extMod.m1, Decl(commentsExternalModules_0.ts, 0, 0)) +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m1 : typeof extMod.m1, Symbol(extMod.m1, Decl(commentsExternalModules_0.ts, 0, 0)) +>fooExport : () => number, Symbol(extMod.m1.fooExport, Decl(commentsExternalModules_0.ts, 16, 5)) var newVar = new extMod.m1.m2.c(); ->newVar : extMod.m1.m2.c +>newVar : extMod.m1.m2.c, Symbol(newVar, Decl(commentsExternalModules_1.ts, 3, 3)) >new extMod.m1.m2.c() : extMod.m1.m2.c ->extMod.m1.m2.c : typeof extMod.m1.m2.c ->extMod.m1.m2 : typeof extMod.m1.m2 ->extMod.m1 : typeof extMod.m1 ->extMod : typeof extMod ->m1 : typeof extMod.m1 ->m2 : typeof extMod.m1.m2 ->c : typeof extMod.m1.m2.c +>extMod.m1.m2.c : typeof extMod.m1.m2.c, Symbol(extMod.m1.m2.c, Decl(commentsExternalModules_0.ts, 10, 22)) +>extMod.m1.m2 : typeof extMod.m1.m2, Symbol(extMod.m1.m2, Decl(commentsExternalModules_0.ts, 8, 5)) +>extMod.m1 : typeof extMod.m1, Symbol(extMod.m1, Decl(commentsExternalModules_0.ts, 0, 0)) +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m1 : typeof extMod.m1, Symbol(extMod.m1, Decl(commentsExternalModules_0.ts, 0, 0)) +>m2 : typeof extMod.m1.m2, Symbol(extMod.m1.m2, Decl(commentsExternalModules_0.ts, 8, 5)) +>c : typeof extMod.m1.m2.c, Symbol(extMod.m1.m2.c, Decl(commentsExternalModules_0.ts, 10, 22)) extMod.m4.fooExport(); >extMod.m4.fooExport() : number ->extMod.m4.fooExport : () => number ->extMod.m4 : typeof extMod.m4 ->extMod : typeof extMod ->m4 : typeof extMod.m4 ->fooExport : () => number +>extMod.m4.fooExport : () => number, Symbol(extMod.m4.fooExport, Decl(commentsExternalModules_0.ts, 42, 5)) +>extMod.m4 : typeof extMod.m4, Symbol(extMod.m4, Decl(commentsExternalModules_0.ts, 23, 26)) +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m4 : typeof extMod.m4, Symbol(extMod.m4, Decl(commentsExternalModules_0.ts, 23, 26)) +>fooExport : () => number, Symbol(extMod.m4.fooExport, Decl(commentsExternalModules_0.ts, 42, 5)) var newVar2 = new extMod.m4.m2.c(); ->newVar2 : extMod.m4.m2.c +>newVar2 : extMod.m4.m2.c, Symbol(newVar2, Decl(commentsExternalModules_1.ts, 5, 3)) >new extMod.m4.m2.c() : extMod.m4.m2.c ->extMod.m4.m2.c : typeof extMod.m4.m2.c ->extMod.m4.m2 : typeof extMod.m4.m2 ->extMod.m4 : typeof extMod.m4 ->extMod : typeof extMod ->m4 : typeof extMod.m4 ->m2 : typeof extMod.m4.m2 ->c : typeof extMod.m4.m2.c +>extMod.m4.m2.c : typeof extMod.m4.m2.c, Symbol(extMod.m4.m2.c, Decl(commentsExternalModules_0.ts, 36, 22)) +>extMod.m4.m2 : typeof extMod.m4.m2, Symbol(extMod.m4.m2, Decl(commentsExternalModules_0.ts, 33, 5)) +>extMod.m4 : typeof extMod.m4, Symbol(extMod.m4, Decl(commentsExternalModules_0.ts, 23, 26)) +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m4 : typeof extMod.m4, Symbol(extMod.m4, Decl(commentsExternalModules_0.ts, 23, 26)) +>m2 : typeof extMod.m4.m2, Symbol(extMod.m4.m2, Decl(commentsExternalModules_0.ts, 33, 5)) +>c : typeof extMod.m4.m2.c, Symbol(extMod.m4.m2.c, Decl(commentsExternalModules_0.ts, 36, 22)) === tests/cases/compiler/commentsExternalModules_0.ts === /** Module comment*/ export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(commentsExternalModules_0.ts, 0, 0)) /** b's comment*/ export var b: number; ->b : number +>b : number, Symbol(b, Decl(commentsExternalModules_0.ts, 4, 14)) /** foo's comment*/ function foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsExternalModules_0.ts, 4, 25)) return b; ->b : number +>b : number, Symbol(b, Decl(commentsExternalModules_0.ts, 4, 14)) } /** m2 comments*/ export module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(commentsExternalModules_0.ts, 8, 5)) /** class comment;*/ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsExternalModules_0.ts, 10, 22)) }; /** i*/ export var i = new c(); ->i : c +>i : c, Symbol(i, Decl(commentsExternalModules_0.ts, 15, 18)) >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(commentsExternalModules_0.ts, 10, 22)) } /** exported function*/ export function fooExport() { ->fooExport : () => number +>fooExport : () => number, Symbol(fooExport, Decl(commentsExternalModules_0.ts, 16, 5)) return foo(); >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsExternalModules_0.ts, 4, 25)) } } m1.fooExport(); >m1.fooExport() : number ->m1.fooExport : () => number ->m1 : typeof m1 ->fooExport : () => number +>m1.fooExport : () => number, Symbol(m1.fooExport, Decl(commentsExternalModules_0.ts, 16, 5)) +>m1 : typeof m1, Symbol(m1, Decl(commentsExternalModules_0.ts, 0, 0)) +>fooExport : () => number, Symbol(m1.fooExport, Decl(commentsExternalModules_0.ts, 16, 5)) var myvar = new m1.m2.c(); ->myvar : m1.m2.c +>myvar : m1.m2.c, Symbol(myvar, Decl(commentsExternalModules_0.ts, 23, 3)) >new m1.m2.c() : m1.m2.c ->m1.m2.c : typeof m1.m2.c ->m1.m2 : typeof m1.m2 ->m1 : typeof m1 ->m2 : typeof m1.m2 ->c : typeof m1.m2.c +>m1.m2.c : typeof m1.m2.c, Symbol(m1.m2.c, Decl(commentsExternalModules_0.ts, 10, 22)) +>m1.m2 : typeof m1.m2, Symbol(m1.m2, Decl(commentsExternalModules_0.ts, 8, 5)) +>m1 : typeof m1, Symbol(m1, Decl(commentsExternalModules_0.ts, 0, 0)) +>m2 : typeof m1.m2, Symbol(m1.m2, Decl(commentsExternalModules_0.ts, 8, 5)) +>c : typeof m1.m2.c, Symbol(m1.m2.c, Decl(commentsExternalModules_0.ts, 10, 22)) /** Module comment */ export module m4 { ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(commentsExternalModules_0.ts, 23, 26)) /** b's comment */ export var b: number; ->b : number +>b : number, Symbol(b, Decl(commentsExternalModules_0.ts, 28, 14)) /** foo's comment */ function foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsExternalModules_0.ts, 28, 25)) return b; ->b : number +>b : number, Symbol(b, Decl(commentsExternalModules_0.ts, 28, 14)) } /** m2 comments */ export module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(commentsExternalModules_0.ts, 33, 5)) /** class comment; */ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsExternalModules_0.ts, 36, 22)) }; /** i */ export var i = new c(); ->i : c +>i : c, Symbol(i, Decl(commentsExternalModules_0.ts, 41, 18)) >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(commentsExternalModules_0.ts, 36, 22)) } /** exported function */ export function fooExport() { ->fooExport : () => number +>fooExport : () => number, Symbol(fooExport, Decl(commentsExternalModules_0.ts, 42, 5)) return foo(); >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsExternalModules_0.ts, 28, 25)) } } m4.fooExport(); >m4.fooExport() : number ->m4.fooExport : () => number ->m4 : typeof m4 ->fooExport : () => number +>m4.fooExport : () => number, Symbol(m4.fooExport, Decl(commentsExternalModules_0.ts, 42, 5)) +>m4 : typeof m4, Symbol(m4, Decl(commentsExternalModules_0.ts, 23, 26)) +>fooExport : () => number, Symbol(m4.fooExport, Decl(commentsExternalModules_0.ts, 42, 5)) var myvar2 = new m4.m2.c(); ->myvar2 : m4.m2.c +>myvar2 : m4.m2.c, Symbol(myvar2, Decl(commentsExternalModules_0.ts, 49, 3)) >new m4.m2.c() : m4.m2.c ->m4.m2.c : typeof m4.m2.c ->m4.m2 : typeof m4.m2 ->m4 : typeof m4 ->m2 : typeof m4.m2 ->c : typeof m4.m2.c +>m4.m2.c : typeof m4.m2.c, Symbol(m4.m2.c, Decl(commentsExternalModules_0.ts, 36, 22)) +>m4.m2 : typeof m4.m2, Symbol(m4.m2, Decl(commentsExternalModules_0.ts, 33, 5)) +>m4 : typeof m4, Symbol(m4, Decl(commentsExternalModules_0.ts, 23, 26)) +>m2 : typeof m4.m2, Symbol(m4.m2, Decl(commentsExternalModules_0.ts, 33, 5)) +>c : typeof m4.m2.c, Symbol(m4.m2.c, Decl(commentsExternalModules_0.ts, 36, 22)) diff --git a/tests/baselines/reference/commentsExternalModules2.types b/tests/baselines/reference/commentsExternalModules2.types index 556b5d11d35..37a6f2a8b91 100644 --- a/tests/baselines/reference/commentsExternalModules2.types +++ b/tests/baselines/reference/commentsExternalModules2.types @@ -1,155 +1,155 @@ === tests/cases/compiler/commentsExternalModules_1.ts === /**This is on import declaration*/ import extMod = require("commentsExternalModules2_0"); // trailing comment 1 ->extMod : typeof extMod +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) extMod.m1.fooExport(); >extMod.m1.fooExport() : number ->extMod.m1.fooExport : () => number ->extMod.m1 : typeof extMod.m1 ->extMod : typeof extMod ->m1 : typeof extMod.m1 ->fooExport : () => number +>extMod.m1.fooExport : () => number, Symbol(extMod.m1.fooExport, Decl(commentsExternalModules2_0.ts, 16, 5)) +>extMod.m1 : typeof extMod.m1, Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m1 : typeof extMod.m1, Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>fooExport : () => number, Symbol(extMod.m1.fooExport, Decl(commentsExternalModules2_0.ts, 16, 5)) export var newVar = new extMod.m1.m2.c(); ->newVar : extMod.m1.m2.c +>newVar : extMod.m1.m2.c, Symbol(newVar, Decl(commentsExternalModules_1.ts, 3, 10)) >new extMod.m1.m2.c() : extMod.m1.m2.c ->extMod.m1.m2.c : typeof extMod.m1.m2.c ->extMod.m1.m2 : typeof extMod.m1.m2 ->extMod.m1 : typeof extMod.m1 ->extMod : typeof extMod ->m1 : typeof extMod.m1 ->m2 : typeof extMod.m1.m2 ->c : typeof extMod.m1.m2.c +>extMod.m1.m2.c : typeof extMod.m1.m2.c, Symbol(extMod.m1.m2.c, Decl(commentsExternalModules2_0.ts, 10, 22)) +>extMod.m1.m2 : typeof extMod.m1.m2, Symbol(extMod.m1.m2, Decl(commentsExternalModules2_0.ts, 8, 5)) +>extMod.m1 : typeof extMod.m1, Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m1 : typeof extMod.m1, Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>m2 : typeof extMod.m1.m2, Symbol(extMod.m1.m2, Decl(commentsExternalModules2_0.ts, 8, 5)) +>c : typeof extMod.m1.m2.c, Symbol(extMod.m1.m2.c, Decl(commentsExternalModules2_0.ts, 10, 22)) extMod.m4.fooExport(); >extMod.m4.fooExport() : number ->extMod.m4.fooExport : () => number ->extMod.m4 : typeof extMod.m4 ->extMod : typeof extMod ->m4 : typeof extMod.m4 ->fooExport : () => number +>extMod.m4.fooExport : () => number, Symbol(extMod.m4.fooExport, Decl(commentsExternalModules2_0.ts, 42, 5)) +>extMod.m4 : typeof extMod.m4, Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 23, 26)) +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m4 : typeof extMod.m4, Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 23, 26)) +>fooExport : () => number, Symbol(extMod.m4.fooExport, Decl(commentsExternalModules2_0.ts, 42, 5)) export var newVar2 = new extMod.m4.m2.c(); ->newVar2 : extMod.m4.m2.c +>newVar2 : extMod.m4.m2.c, Symbol(newVar2, Decl(commentsExternalModules_1.ts, 5, 10)) >new extMod.m4.m2.c() : extMod.m4.m2.c ->extMod.m4.m2.c : typeof extMod.m4.m2.c ->extMod.m4.m2 : typeof extMod.m4.m2 ->extMod.m4 : typeof extMod.m4 ->extMod : typeof extMod ->m4 : typeof extMod.m4 ->m2 : typeof extMod.m4.m2 ->c : typeof extMod.m4.m2.c +>extMod.m4.m2.c : typeof extMod.m4.m2.c, Symbol(extMod.m4.m2.c, Decl(commentsExternalModules2_0.ts, 36, 22)) +>extMod.m4.m2 : typeof extMod.m4.m2, Symbol(extMod.m4.m2, Decl(commentsExternalModules2_0.ts, 33, 5)) +>extMod.m4 : typeof extMod.m4, Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 23, 26)) +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m4 : typeof extMod.m4, Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 23, 26)) +>m2 : typeof extMod.m4.m2, Symbol(extMod.m4.m2, Decl(commentsExternalModules2_0.ts, 33, 5)) +>c : typeof extMod.m4.m2.c, Symbol(extMod.m4.m2.c, Decl(commentsExternalModules2_0.ts, 36, 22)) === tests/cases/compiler/commentsExternalModules2_0.ts === /** Module comment*/ export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0)) /** b's comment*/ export var b: number; ->b : number +>b : number, Symbol(b, Decl(commentsExternalModules2_0.ts, 4, 14)) /** foo's comment*/ function foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsExternalModules2_0.ts, 4, 25)) return b; ->b : number +>b : number, Symbol(b, Decl(commentsExternalModules2_0.ts, 4, 14)) } /** m2 comments*/ export module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(commentsExternalModules2_0.ts, 8, 5)) /** class comment;*/ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsExternalModules2_0.ts, 10, 22)) }; /** i*/ export var i = new c(); ->i : c +>i : c, Symbol(i, Decl(commentsExternalModules2_0.ts, 15, 18)) >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(commentsExternalModules2_0.ts, 10, 22)) } /** exported function*/ export function fooExport() { ->fooExport : () => number +>fooExport : () => number, Symbol(fooExport, Decl(commentsExternalModules2_0.ts, 16, 5)) return foo(); >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsExternalModules2_0.ts, 4, 25)) } } m1.fooExport(); >m1.fooExport() : number ->m1.fooExport : () => number ->m1 : typeof m1 ->fooExport : () => number +>m1.fooExport : () => number, Symbol(m1.fooExport, Decl(commentsExternalModules2_0.ts, 16, 5)) +>m1 : typeof m1, Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>fooExport : () => number, Symbol(m1.fooExport, Decl(commentsExternalModules2_0.ts, 16, 5)) var myvar = new m1.m2.c(); ->myvar : m1.m2.c +>myvar : m1.m2.c, Symbol(myvar, Decl(commentsExternalModules2_0.ts, 23, 3)) >new m1.m2.c() : m1.m2.c ->m1.m2.c : typeof m1.m2.c ->m1.m2 : typeof m1.m2 ->m1 : typeof m1 ->m2 : typeof m1.m2 ->c : typeof m1.m2.c +>m1.m2.c : typeof m1.m2.c, Symbol(m1.m2.c, Decl(commentsExternalModules2_0.ts, 10, 22)) +>m1.m2 : typeof m1.m2, Symbol(m1.m2, Decl(commentsExternalModules2_0.ts, 8, 5)) +>m1 : typeof m1, Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>m2 : typeof m1.m2, Symbol(m1.m2, Decl(commentsExternalModules2_0.ts, 8, 5)) +>c : typeof m1.m2.c, Symbol(m1.m2.c, Decl(commentsExternalModules2_0.ts, 10, 22)) /** Module comment */ export module m4 { ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(commentsExternalModules2_0.ts, 23, 26)) /** b's comment */ export var b: number; ->b : number +>b : number, Symbol(b, Decl(commentsExternalModules2_0.ts, 28, 14)) /** foo's comment */ function foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsExternalModules2_0.ts, 28, 25)) return b; ->b : number +>b : number, Symbol(b, Decl(commentsExternalModules2_0.ts, 28, 14)) } /** m2 comments */ export module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(commentsExternalModules2_0.ts, 33, 5)) /** class comment; */ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsExternalModules2_0.ts, 36, 22)) }; /** i */ export var i = new c(); ->i : c +>i : c, Symbol(i, Decl(commentsExternalModules2_0.ts, 41, 18)) >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(commentsExternalModules2_0.ts, 36, 22)) } /** exported function */ export function fooExport() { ->fooExport : () => number +>fooExport : () => number, Symbol(fooExport, Decl(commentsExternalModules2_0.ts, 42, 5)) return foo(); >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsExternalModules2_0.ts, 28, 25)) } } m4.fooExport(); >m4.fooExport() : number ->m4.fooExport : () => number ->m4 : typeof m4 ->fooExport : () => number +>m4.fooExport : () => number, Symbol(m4.fooExport, Decl(commentsExternalModules2_0.ts, 42, 5)) +>m4 : typeof m4, Symbol(m4, Decl(commentsExternalModules2_0.ts, 23, 26)) +>fooExport : () => number, Symbol(m4.fooExport, Decl(commentsExternalModules2_0.ts, 42, 5)) var myvar2 = new m4.m2.c(); ->myvar2 : m4.m2.c +>myvar2 : m4.m2.c, Symbol(myvar2, Decl(commentsExternalModules2_0.ts, 49, 3)) >new m4.m2.c() : m4.m2.c ->m4.m2.c : typeof m4.m2.c ->m4.m2 : typeof m4.m2 ->m4 : typeof m4 ->m2 : typeof m4.m2 ->c : typeof m4.m2.c +>m4.m2.c : typeof m4.m2.c, Symbol(m4.m2.c, Decl(commentsExternalModules2_0.ts, 36, 22)) +>m4.m2 : typeof m4.m2, Symbol(m4.m2, Decl(commentsExternalModules2_0.ts, 33, 5)) +>m4 : typeof m4, Symbol(m4, Decl(commentsExternalModules2_0.ts, 23, 26)) +>m2 : typeof m4.m2, Symbol(m4.m2, Decl(commentsExternalModules2_0.ts, 33, 5)) +>c : typeof m4.m2.c, Symbol(m4.m2.c, Decl(commentsExternalModules2_0.ts, 36, 22)) diff --git a/tests/baselines/reference/commentsExternalModules3.types b/tests/baselines/reference/commentsExternalModules3.types index 556b5d11d35..37a6f2a8b91 100644 --- a/tests/baselines/reference/commentsExternalModules3.types +++ b/tests/baselines/reference/commentsExternalModules3.types @@ -1,155 +1,155 @@ === tests/cases/compiler/commentsExternalModules_1.ts === /**This is on import declaration*/ import extMod = require("commentsExternalModules2_0"); // trailing comment 1 ->extMod : typeof extMod +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) extMod.m1.fooExport(); >extMod.m1.fooExport() : number ->extMod.m1.fooExport : () => number ->extMod.m1 : typeof extMod.m1 ->extMod : typeof extMod ->m1 : typeof extMod.m1 ->fooExport : () => number +>extMod.m1.fooExport : () => number, Symbol(extMod.m1.fooExport, Decl(commentsExternalModules2_0.ts, 16, 5)) +>extMod.m1 : typeof extMod.m1, Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m1 : typeof extMod.m1, Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>fooExport : () => number, Symbol(extMod.m1.fooExport, Decl(commentsExternalModules2_0.ts, 16, 5)) export var newVar = new extMod.m1.m2.c(); ->newVar : extMod.m1.m2.c +>newVar : extMod.m1.m2.c, Symbol(newVar, Decl(commentsExternalModules_1.ts, 3, 10)) >new extMod.m1.m2.c() : extMod.m1.m2.c ->extMod.m1.m2.c : typeof extMod.m1.m2.c ->extMod.m1.m2 : typeof extMod.m1.m2 ->extMod.m1 : typeof extMod.m1 ->extMod : typeof extMod ->m1 : typeof extMod.m1 ->m2 : typeof extMod.m1.m2 ->c : typeof extMod.m1.m2.c +>extMod.m1.m2.c : typeof extMod.m1.m2.c, Symbol(extMod.m1.m2.c, Decl(commentsExternalModules2_0.ts, 10, 22)) +>extMod.m1.m2 : typeof extMod.m1.m2, Symbol(extMod.m1.m2, Decl(commentsExternalModules2_0.ts, 8, 5)) +>extMod.m1 : typeof extMod.m1, Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m1 : typeof extMod.m1, Symbol(extMod.m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>m2 : typeof extMod.m1.m2, Symbol(extMod.m1.m2, Decl(commentsExternalModules2_0.ts, 8, 5)) +>c : typeof extMod.m1.m2.c, Symbol(extMod.m1.m2.c, Decl(commentsExternalModules2_0.ts, 10, 22)) extMod.m4.fooExport(); >extMod.m4.fooExport() : number ->extMod.m4.fooExport : () => number ->extMod.m4 : typeof extMod.m4 ->extMod : typeof extMod ->m4 : typeof extMod.m4 ->fooExport : () => number +>extMod.m4.fooExport : () => number, Symbol(extMod.m4.fooExport, Decl(commentsExternalModules2_0.ts, 42, 5)) +>extMod.m4 : typeof extMod.m4, Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 23, 26)) +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m4 : typeof extMod.m4, Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 23, 26)) +>fooExport : () => number, Symbol(extMod.m4.fooExport, Decl(commentsExternalModules2_0.ts, 42, 5)) export var newVar2 = new extMod.m4.m2.c(); ->newVar2 : extMod.m4.m2.c +>newVar2 : extMod.m4.m2.c, Symbol(newVar2, Decl(commentsExternalModules_1.ts, 5, 10)) >new extMod.m4.m2.c() : extMod.m4.m2.c ->extMod.m4.m2.c : typeof extMod.m4.m2.c ->extMod.m4.m2 : typeof extMod.m4.m2 ->extMod.m4 : typeof extMod.m4 ->extMod : typeof extMod ->m4 : typeof extMod.m4 ->m2 : typeof extMod.m4.m2 ->c : typeof extMod.m4.m2.c +>extMod.m4.m2.c : typeof extMod.m4.m2.c, Symbol(extMod.m4.m2.c, Decl(commentsExternalModules2_0.ts, 36, 22)) +>extMod.m4.m2 : typeof extMod.m4.m2, Symbol(extMod.m4.m2, Decl(commentsExternalModules2_0.ts, 33, 5)) +>extMod.m4 : typeof extMod.m4, Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 23, 26)) +>extMod : typeof extMod, Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0)) +>m4 : typeof extMod.m4, Symbol(extMod.m4, Decl(commentsExternalModules2_0.ts, 23, 26)) +>m2 : typeof extMod.m4.m2, Symbol(extMod.m4.m2, Decl(commentsExternalModules2_0.ts, 33, 5)) +>c : typeof extMod.m4.m2.c, Symbol(extMod.m4.m2.c, Decl(commentsExternalModules2_0.ts, 36, 22)) === tests/cases/compiler/commentsExternalModules2_0.ts === /** Module comment*/ export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0)) /** b's comment*/ export var b: number; ->b : number +>b : number, Symbol(b, Decl(commentsExternalModules2_0.ts, 4, 14)) /** foo's comment*/ function foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsExternalModules2_0.ts, 4, 25)) return b; ->b : number +>b : number, Symbol(b, Decl(commentsExternalModules2_0.ts, 4, 14)) } /** m2 comments*/ export module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(commentsExternalModules2_0.ts, 8, 5)) /** class comment;*/ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsExternalModules2_0.ts, 10, 22)) }; /** i*/ export var i = new c(); ->i : c +>i : c, Symbol(i, Decl(commentsExternalModules2_0.ts, 15, 18)) >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(commentsExternalModules2_0.ts, 10, 22)) } /** exported function*/ export function fooExport() { ->fooExport : () => number +>fooExport : () => number, Symbol(fooExport, Decl(commentsExternalModules2_0.ts, 16, 5)) return foo(); >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsExternalModules2_0.ts, 4, 25)) } } m1.fooExport(); >m1.fooExport() : number ->m1.fooExport : () => number ->m1 : typeof m1 ->fooExport : () => number +>m1.fooExport : () => number, Symbol(m1.fooExport, Decl(commentsExternalModules2_0.ts, 16, 5)) +>m1 : typeof m1, Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>fooExport : () => number, Symbol(m1.fooExport, Decl(commentsExternalModules2_0.ts, 16, 5)) var myvar = new m1.m2.c(); ->myvar : m1.m2.c +>myvar : m1.m2.c, Symbol(myvar, Decl(commentsExternalModules2_0.ts, 23, 3)) >new m1.m2.c() : m1.m2.c ->m1.m2.c : typeof m1.m2.c ->m1.m2 : typeof m1.m2 ->m1 : typeof m1 ->m2 : typeof m1.m2 ->c : typeof m1.m2.c +>m1.m2.c : typeof m1.m2.c, Symbol(m1.m2.c, Decl(commentsExternalModules2_0.ts, 10, 22)) +>m1.m2 : typeof m1.m2, Symbol(m1.m2, Decl(commentsExternalModules2_0.ts, 8, 5)) +>m1 : typeof m1, Symbol(m1, Decl(commentsExternalModules2_0.ts, 0, 0)) +>m2 : typeof m1.m2, Symbol(m1.m2, Decl(commentsExternalModules2_0.ts, 8, 5)) +>c : typeof m1.m2.c, Symbol(m1.m2.c, Decl(commentsExternalModules2_0.ts, 10, 22)) /** Module comment */ export module m4 { ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(commentsExternalModules2_0.ts, 23, 26)) /** b's comment */ export var b: number; ->b : number +>b : number, Symbol(b, Decl(commentsExternalModules2_0.ts, 28, 14)) /** foo's comment */ function foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsExternalModules2_0.ts, 28, 25)) return b; ->b : number +>b : number, Symbol(b, Decl(commentsExternalModules2_0.ts, 28, 14)) } /** m2 comments */ export module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(commentsExternalModules2_0.ts, 33, 5)) /** class comment; */ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsExternalModules2_0.ts, 36, 22)) }; /** i */ export var i = new c(); ->i : c +>i : c, Symbol(i, Decl(commentsExternalModules2_0.ts, 41, 18)) >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(commentsExternalModules2_0.ts, 36, 22)) } /** exported function */ export function fooExport() { ->fooExport : () => number +>fooExport : () => number, Symbol(fooExport, Decl(commentsExternalModules2_0.ts, 42, 5)) return foo(); >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsExternalModules2_0.ts, 28, 25)) } } m4.fooExport(); >m4.fooExport() : number ->m4.fooExport : () => number ->m4 : typeof m4 ->fooExport : () => number +>m4.fooExport : () => number, Symbol(m4.fooExport, Decl(commentsExternalModules2_0.ts, 42, 5)) +>m4 : typeof m4, Symbol(m4, Decl(commentsExternalModules2_0.ts, 23, 26)) +>fooExport : () => number, Symbol(m4.fooExport, Decl(commentsExternalModules2_0.ts, 42, 5)) var myvar2 = new m4.m2.c(); ->myvar2 : m4.m2.c +>myvar2 : m4.m2.c, Symbol(myvar2, Decl(commentsExternalModules2_0.ts, 49, 3)) >new m4.m2.c() : m4.m2.c ->m4.m2.c : typeof m4.m2.c ->m4.m2 : typeof m4.m2 ->m4 : typeof m4 ->m2 : typeof m4.m2 ->c : typeof m4.m2.c +>m4.m2.c : typeof m4.m2.c, Symbol(m4.m2.c, Decl(commentsExternalModules2_0.ts, 36, 22)) +>m4.m2 : typeof m4.m2, Symbol(m4.m2, Decl(commentsExternalModules2_0.ts, 33, 5)) +>m4 : typeof m4, Symbol(m4, Decl(commentsExternalModules2_0.ts, 23, 26)) +>m2 : typeof m4.m2, Symbol(m4.m2, Decl(commentsExternalModules2_0.ts, 33, 5)) +>c : typeof m4.m2.c, Symbol(m4.m2.c, Decl(commentsExternalModules2_0.ts, 36, 22)) diff --git a/tests/baselines/reference/commentsFormatting.types b/tests/baselines/reference/commentsFormatting.types index 2de53654f9e..9b89d19b254 100644 --- a/tests/baselines/reference/commentsFormatting.types +++ b/tests/baselines/reference/commentsFormatting.types @@ -1,7 +1,7 @@ === tests/cases/compiler/commentsFormatting.ts === module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(commentsFormatting.ts, 0, 0)) /** this is first line - aligned to class declaration * this is 4 spaces left aligned @@ -18,7 +18,7 @@ module m { * this is 7 spaces right aligned * this is 8 spaces right aligned */ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsFormatting.ts, 1, 10)) } /** this is first line - 4 spaces right aligned to class but in js file should be aligned to class declaration @@ -40,7 +40,7 @@ module m { * this is 7 spaces right aligned * this is 8 spaces right aligned */ export class c2 { ->c2 : c2 +>c2 : c2, Symbol(c2, Decl(commentsFormatting.ts, 17, 5)) } /** this is comment with new lines in between @@ -70,7 +70,7 @@ this is 4 spaces left aligned but above line is empty above 3 lines are empty*/ export class c3 { ->c3 : c3 +>c3 : c3, Symbol(c3, Decl(commentsFormatting.ts, 38, 5)) } /** this is first line - aligned to class declaration @@ -88,6 +88,6 @@ this is 4 spaces left aligned but above line is empty * this is 11 spaces + tab * this is 12 spaces + tab */ export class c4 { ->c4 : c4 +>c4 : c4, Symbol(c4, Decl(commentsFormatting.ts, 67, 5)) } } diff --git a/tests/baselines/reference/commentsFunction.types b/tests/baselines/reference/commentsFunction.types index 6d37e1732e0..09f3ade20a2 100644 --- a/tests/baselines/reference/commentsFunction.types +++ b/tests/baselines/reference/commentsFunction.types @@ -2,121 +2,129 @@ /** This comment should appear for foo*/ function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(commentsFunction.ts, 0, 0)) } /* trailing comment of function */ foo(); >foo() : void ->foo : () => void +>foo : () => void, Symbol(foo, Decl(commentsFunction.ts, 0, 0)) /** This is comment for function signature*/ function fooWithParameters(/** this is comment about a*/a: string, ->fooWithParameters : (a: string, b: number) => void ->a : string +>fooWithParameters : (a: string, b: number) => void, Symbol(fooWithParameters, Decl(commentsFunction.ts, 4, 6)) +>a : string, Symbol(a, Decl(commentsFunction.ts, 6, 27)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(commentsFunction.ts, 6, 66)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(commentsFunction.ts, 9, 7)) +>a : string, Symbol(a, Decl(commentsFunction.ts, 6, 27)) } // trailing comment of function fooWithParameters("a", 10); >fooWithParameters("a", 10) : void ->fooWithParameters : (a: string, b: number) => void +>fooWithParameters : (a: string, b: number) => void, Symbol(fooWithParameters, Decl(commentsFunction.ts, 4, 6)) +>"a" : string +>10 : number /** fooFunc * comment */ var fooFunc = function FooFunctionValue(/** fooFunctionValue param */ b: string) { ->fooFunc : (b: string) => string +>fooFunc : (b: string) => string, Symbol(fooFunc, Decl(commentsFunction.ts, 15, 3)) >function FooFunctionValue(/** fooFunctionValue param */ b: string) { return b;} : (b: string) => string ->FooFunctionValue : (b: string) => string ->b : string +>FooFunctionValue : (b: string) => string, Symbol(FooFunctionValue, Decl(commentsFunction.ts, 15, 13)) +>b : string, Symbol(b, Decl(commentsFunction.ts, 15, 40)) return b; ->b : string +>b : string, Symbol(b, Decl(commentsFunction.ts, 15, 40)) } /// lamdaFoo var comment var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; ->lambdaFoo : (a: number, b: number) => number +>lambdaFoo : (a: number, b: number) => number, Symbol(lambdaFoo, Decl(commentsFunction.ts, 20, 3)) >(/**param a*/a: number, /**param b*/b: number) => a + b : (a: number, b: number) => number ->a : number ->b : number +>a : number, Symbol(a, Decl(commentsFunction.ts, 20, 46)) +>b : number, Symbol(b, Decl(commentsFunction.ts, 20, 68)) >a + b : number ->a : number ->b : number +>a : number, Symbol(a, Decl(commentsFunction.ts, 20, 46)) +>b : number, Symbol(b, Decl(commentsFunction.ts, 20, 68)) var lambddaNoVarComment = /** this is lambda multiplication*/ (/**param a*/a: number, /**param b*/b: number) => a * b; ->lambddaNoVarComment : (a: number, b: number) => number +>lambddaNoVarComment : (a: number, b: number) => number, Symbol(lambddaNoVarComment, Decl(commentsFunction.ts, 21, 3)) >(/**param a*/a: number, /**param b*/b: number) => a * b : (a: number, b: number) => number ->a : number ->b : number +>a : number, Symbol(a, Decl(commentsFunction.ts, 21, 63)) +>b : number, Symbol(b, Decl(commentsFunction.ts, 21, 85)) >a * b : number ->a : number ->b : number +>a : number, Symbol(a, Decl(commentsFunction.ts, 21, 63)) +>b : number, Symbol(b, Decl(commentsFunction.ts, 21, 85)) lambdaFoo(10, 20); >lambdaFoo(10, 20) : number ->lambdaFoo : (a: number, b: number) => number +>lambdaFoo : (a: number, b: number) => number, Symbol(lambdaFoo, Decl(commentsFunction.ts, 20, 3)) +>10 : number +>20 : number lambddaNoVarComment(10, 20); >lambddaNoVarComment(10, 20) : number ->lambddaNoVarComment : (a: number, b: number) => number +>lambddaNoVarComment : (a: number, b: number) => number, Symbol(lambddaNoVarComment, Decl(commentsFunction.ts, 21, 3)) +>10 : number +>20 : number function blah(a: string /* multiline trailing comment ->blah : (a: string) => void ->a : string +>blah : (a: string) => void, Symbol(blah, Decl(commentsFunction.ts, 23, 28)) +>a : string, Symbol(a, Decl(commentsFunction.ts, 25, 14)) multiline */) { } function blah2(a: string /* single line multiple trailing comments */ /* second */) { ->blah2 : (a: string) => void ->a : string +>blah2 : (a: string) => void, Symbol(blah2, Decl(commentsFunction.ts, 27, 1)) +>a : string, Symbol(a, Decl(commentsFunction.ts, 29, 15)) } function blah3(a: string // trailing commen single line ->blah3 : (a: string) => void ->a : string +>blah3 : (a: string) => void, Symbol(blah3, Decl(commentsFunction.ts, 30, 1)) +>a : string, Symbol(a, Decl(commentsFunction.ts, 32, 15)) ) { } lambdaFoo = (a, b) => a * b; // This is trailing comment >lambdaFoo = (a, b) => a * b : (a: number, b: number) => number ->lambdaFoo : (a: number, b: number) => number +>lambdaFoo : (a: number, b: number) => number, Symbol(lambdaFoo, Decl(commentsFunction.ts, 20, 3)) >(a, b) => a * b : (a: number, b: number) => number ->a : number ->b : number +>a : number, Symbol(a, Decl(commentsFunction.ts, 36, 13)) +>b : number, Symbol(b, Decl(commentsFunction.ts, 36, 15)) >a * b : number ->a : number ->b : number +>a : number, Symbol(a, Decl(commentsFunction.ts, 36, 13)) +>b : number, Symbol(b, Decl(commentsFunction.ts, 36, 15)) /*leading comment*/() => 0; // Needs to be wrapped in parens to be a valid expression (not declaration) >() => 0 : () => number +>0 : number /*leading comment*/(() => 0); //trailing comment >(() => 0) : () => number >() => 0 : () => number +>0 : number function blah4(/*1*/a: string/*2*/,/*3*/b: string/*4*/) { ->blah4 : (a: string, b: string) => void ->a : string ->b : string +>blah4 : (a: string, b: string) => void, Symbol(blah4, Decl(commentsFunction.ts, 39, 29)) +>a : string, Symbol(a, Decl(commentsFunction.ts, 41, 15)) +>b : string, Symbol(b, Decl(commentsFunction.ts, 41, 35)) } function foo1() { ->foo1 : () => void +>foo1 : () => void, Symbol(foo1, Decl(commentsFunction.ts, 42, 1)) // should emit this } function foo2() { ->foo2 : () => void +>foo2 : () => void, Symbol(foo2, Decl(commentsFunction.ts, 47, 1)) /// This is some detached comment diff --git a/tests/baselines/reference/commentsInheritance.types b/tests/baselines/reference/commentsInheritance.types index b4db5767107..3c45605b7fe 100644 --- a/tests/baselines/reference/commentsInheritance.types +++ b/tests/baselines/reference/commentsInheritance.types @@ -2,319 +2,328 @@ /** i1 is interface with properties*/ interface i1 { ->i1 : i1 +>i1 : i1, Symbol(i1, Decl(commentsInheritance.ts, 0, 0)) /** i1_p1*/ i1_p1: number; ->i1_p1 : number +>i1_p1 : number, Symbol(i1_p1, Decl(commentsInheritance.ts, 2, 14)) /** i1_f1*/ i1_f1(): void; ->i1_f1 : () => void +>i1_f1 : () => void, Symbol(i1_f1, Decl(commentsInheritance.ts, 4, 18)) /** i1_l1*/ i1_l1: () => void; ->i1_l1 : () => void +>i1_l1 : () => void, Symbol(i1_l1, Decl(commentsInheritance.ts, 6, 18)) // il_nc_p1 i1_nc_p1: number; ->i1_nc_p1 : number +>i1_nc_p1 : number, Symbol(i1_nc_p1, Decl(commentsInheritance.ts, 8, 22)) i1_nc_f1(): void; ->i1_nc_f1 : () => void +>i1_nc_f1 : () => void, Symbol(i1_nc_f1, Decl(commentsInheritance.ts, 10, 21)) i1_nc_l1: () => void; ->i1_nc_l1 : () => void +>i1_nc_l1 : () => void, Symbol(i1_nc_l1, Decl(commentsInheritance.ts, 11, 21)) p1: number; ->p1 : number +>p1 : number, Symbol(p1, Decl(commentsInheritance.ts, 12, 25)) f1(): void; ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(commentsInheritance.ts, 13, 15)) l1: () => void; ->l1 : () => void +>l1 : () => void, Symbol(l1, Decl(commentsInheritance.ts, 14, 15)) nc_p1: number; ->nc_p1 : number +>nc_p1 : number, Symbol(nc_p1, Decl(commentsInheritance.ts, 15, 19)) nc_f1(): void; ->nc_f1 : () => void +>nc_f1 : () => void, Symbol(nc_f1, Decl(commentsInheritance.ts, 16, 18)) nc_l1: () => void; ->nc_l1 : () => void +>nc_l1 : () => void, Symbol(nc_l1, Decl(commentsInheritance.ts, 17, 18)) } class c1 implements i1 { ->c1 : c1 ->i1 : i1 +>c1 : c1, Symbol(c1, Decl(commentsInheritance.ts, 19, 1)) +>i1 : i1, Symbol(i1, Decl(commentsInheritance.ts, 0, 0)) public i1_p1: number; ->i1_p1 : number +>i1_p1 : number, Symbol(i1_p1, Decl(commentsInheritance.ts, 20, 24)) // i1_f1 public i1_f1() { ->i1_f1 : () => void +>i1_f1 : () => void, Symbol(i1_f1, Decl(commentsInheritance.ts, 21, 25)) } public i1_l1: () => void; ->i1_l1 : () => void +>i1_l1 : () => void, Symbol(i1_l1, Decl(commentsInheritance.ts, 24, 5)) public i1_nc_p1: number; ->i1_nc_p1 : number +>i1_nc_p1 : number, Symbol(i1_nc_p1, Decl(commentsInheritance.ts, 25, 29)) public i1_nc_f1() { ->i1_nc_f1 : () => void +>i1_nc_f1 : () => void, Symbol(i1_nc_f1, Decl(commentsInheritance.ts, 26, 28)) } public i1_nc_l1: () => void; ->i1_nc_l1 : () => void +>i1_nc_l1 : () => void, Symbol(i1_nc_l1, Decl(commentsInheritance.ts, 28, 5)) /** c1_p1*/ public p1: number; ->p1 : number +>p1 : number, Symbol(p1, Decl(commentsInheritance.ts, 29, 32)) /** c1_f1*/ public f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(commentsInheritance.ts, 31, 22)) } /** c1_l1*/ public l1: () => void; ->l1 : () => void +>l1 : () => void, Symbol(l1, Decl(commentsInheritance.ts, 34, 5)) /** c1_nc_p1*/ public nc_p1: number; ->nc_p1 : number +>nc_p1 : number, Symbol(nc_p1, Decl(commentsInheritance.ts, 36, 26)) /** c1_nc_f1*/ public nc_f1() { ->nc_f1 : () => void +>nc_f1 : () => void, Symbol(nc_f1, Decl(commentsInheritance.ts, 38, 25)) } /** c1_nc_l1*/ public nc_l1: () => void; ->nc_l1 : () => void +>nc_l1 : () => void, Symbol(nc_l1, Decl(commentsInheritance.ts, 41, 5)) } var i1_i: i1; ->i1_i : i1 ->i1 : i1 +>i1_i : i1, Symbol(i1_i, Decl(commentsInheritance.ts, 45, 3)) +>i1 : i1, Symbol(i1, Decl(commentsInheritance.ts, 0, 0)) var c1_i = new c1(); ->c1_i : c1 +>c1_i : c1, Symbol(c1_i, Decl(commentsInheritance.ts, 46, 3)) >new c1() : c1 ->c1 : typeof c1 +>c1 : typeof c1, Symbol(c1, Decl(commentsInheritance.ts, 19, 1)) // assign to interface i1_i = c1_i; >i1_i = c1_i : c1 ->i1_i : i1 ->c1_i : c1 +>i1_i : i1, Symbol(i1_i, Decl(commentsInheritance.ts, 45, 3)) +>c1_i : c1, Symbol(c1_i, Decl(commentsInheritance.ts, 46, 3)) class c2 { ->c2 : c2 +>c2 : c2, Symbol(c2, Decl(commentsInheritance.ts, 48, 12)) /** c2 c2_p1*/ public c2_p1: number; ->c2_p1 : number +>c2_p1 : number, Symbol(c2_p1, Decl(commentsInheritance.ts, 49, 10)) /** c2 c2_f1*/ public c2_f1() { ->c2_f1 : () => void +>c2_f1 : () => void, Symbol(c2_f1, Decl(commentsInheritance.ts, 51, 25)) } /** c2 c2_prop*/ public get c2_prop() { ->c2_prop : number +>c2_prop : number, Symbol(c2_prop, Decl(commentsInheritance.ts, 54, 5)) return 10; +>10 : number } public c2_nc_p1: number; ->c2_nc_p1 : number +>c2_nc_p1 : number, Symbol(c2_nc_p1, Decl(commentsInheritance.ts, 58, 5)) public c2_nc_f1() { ->c2_nc_f1 : () => void +>c2_nc_f1 : () => void, Symbol(c2_nc_f1, Decl(commentsInheritance.ts, 59, 28)) } public get c2_nc_prop() { ->c2_nc_prop : number +>c2_nc_prop : number, Symbol(c2_nc_prop, Decl(commentsInheritance.ts, 61, 5)) return 10; +>10 : number } /** c2 p1*/ public p1: number; ->p1 : number +>p1 : number, Symbol(p1, Decl(commentsInheritance.ts, 64, 5)) /** c2 f1*/ public f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(commentsInheritance.ts, 66, 22)) } /** c2 prop*/ public get prop() { ->prop : number +>prop : number, Symbol(prop, Decl(commentsInheritance.ts, 69, 5)) return 10; +>10 : number } public nc_p1: number; ->nc_p1 : number +>nc_p1 : number, Symbol(nc_p1, Decl(commentsInheritance.ts, 73, 5)) public nc_f1() { ->nc_f1 : () => void +>nc_f1 : () => void, Symbol(nc_f1, Decl(commentsInheritance.ts, 74, 25)) } public get nc_prop() { ->nc_prop : number +>nc_prop : number, Symbol(nc_prop, Decl(commentsInheritance.ts, 76, 5)) return 10; +>10 : number } /** c2 constructor*/ constructor(a: number) { ->a : number +>a : number, Symbol(a, Decl(commentsInheritance.ts, 81, 16)) this.c2_p1 = a; >this.c2_p1 = a : number ->this.c2_p1 : number ->this : c2 ->c2_p1 : number ->a : number +>this.c2_p1 : number, Symbol(c2_p1, Decl(commentsInheritance.ts, 49, 10)) +>this : c2, Symbol(c2, Decl(commentsInheritance.ts, 48, 12)) +>c2_p1 : number, Symbol(c2_p1, Decl(commentsInheritance.ts, 49, 10)) +>a : number, Symbol(a, Decl(commentsInheritance.ts, 81, 16)) } } class c3 extends c2 { ->c3 : c3 ->c2 : c2 +>c3 : c3, Symbol(c3, Decl(commentsInheritance.ts, 84, 1)) +>c2 : c2, Symbol(c2, Decl(commentsInheritance.ts, 48, 12)) constructor() { super(10); >super(10) : void ->super : typeof c2 +>super : typeof c2, Symbol(c2, Decl(commentsInheritance.ts, 48, 12)) +>10 : number } /** c3 p1*/ public p1: number; ->p1 : number +>p1 : number, Symbol(p1, Decl(commentsInheritance.ts, 88, 5)) /** c3 f1*/ public f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(commentsInheritance.ts, 90, 22)) } /** c3 prop*/ public get prop() { ->prop : number +>prop : number, Symbol(prop, Decl(commentsInheritance.ts, 93, 5)) return 10; +>10 : number } public nc_p1: number; ->nc_p1 : number +>nc_p1 : number, Symbol(nc_p1, Decl(commentsInheritance.ts, 97, 5)) public nc_f1() { ->nc_f1 : () => void +>nc_f1 : () => void, Symbol(nc_f1, Decl(commentsInheritance.ts, 98, 25)) } public get nc_prop() { ->nc_prop : number +>nc_prop : number, Symbol(nc_prop, Decl(commentsInheritance.ts, 100, 5)) return 10; +>10 : number } } var c2_i = new c2(10); ->c2_i : c2 +>c2_i : c2, Symbol(c2_i, Decl(commentsInheritance.ts, 105, 3)) >new c2(10) : c2 ->c2 : typeof c2 +>c2 : typeof c2, Symbol(c2, Decl(commentsInheritance.ts, 48, 12)) +>10 : number var c3_i = new c3(); ->c3_i : c3 +>c3_i : c3, Symbol(c3_i, Decl(commentsInheritance.ts, 106, 3)) >new c3() : c3 ->c3 : typeof c3 +>c3 : typeof c3, Symbol(c3, Decl(commentsInheritance.ts, 84, 1)) // assign c2_i = c3_i; >c2_i = c3_i : c3 ->c2_i : c2 ->c3_i : c3 +>c2_i : c2, Symbol(c2_i, Decl(commentsInheritance.ts, 105, 3)) +>c3_i : c3, Symbol(c3_i, Decl(commentsInheritance.ts, 106, 3)) class c4 extends c2 { ->c4 : c4 ->c2 : c2 +>c4 : c4, Symbol(c4, Decl(commentsInheritance.ts, 108, 12)) +>c2 : c2, Symbol(c2, Decl(commentsInheritance.ts, 48, 12)) } var c4_i = new c4(10); ->c4_i : c4 +>c4_i : c4, Symbol(c4_i, Decl(commentsInheritance.ts, 111, 3)) >new c4(10) : c4 ->c4 : typeof c4 +>c4 : typeof c4, Symbol(c4, Decl(commentsInheritance.ts, 108, 12)) +>10 : number interface i2 { ->i2 : i2 +>i2 : i2, Symbol(i2, Decl(commentsInheritance.ts, 111, 22)) /** i2_p1*/ i2_p1: number; ->i2_p1 : number +>i2_p1 : number, Symbol(i2_p1, Decl(commentsInheritance.ts, 112, 14)) /** i2_f1*/ i2_f1(): void; ->i2_f1 : () => void +>i2_f1 : () => void, Symbol(i2_f1, Decl(commentsInheritance.ts, 114, 18)) /** i2_l1*/ i2_l1: () => void; ->i2_l1 : () => void +>i2_l1 : () => void, Symbol(i2_l1, Decl(commentsInheritance.ts, 116, 18)) // i2_nc_p1 i2_nc_p1: number; ->i2_nc_p1 : number +>i2_nc_p1 : number, Symbol(i2_nc_p1, Decl(commentsInheritance.ts, 118, 22)) i2_nc_f1(): void; ->i2_nc_f1 : () => void +>i2_nc_f1 : () => void, Symbol(i2_nc_f1, Decl(commentsInheritance.ts, 120, 21)) i2_nc_l1: () => void; ->i2_nc_l1 : () => void +>i2_nc_l1 : () => void, Symbol(i2_nc_l1, Decl(commentsInheritance.ts, 121, 21)) /** i2 p1*/ p1: number; ->p1 : number +>p1 : number, Symbol(p1, Decl(commentsInheritance.ts, 122, 25)) /** i2 f1*/ f1(): void; ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(commentsInheritance.ts, 124, 15)) /** i2 l1*/ l1: () => void; ->l1 : () => void +>l1 : () => void, Symbol(l1, Decl(commentsInheritance.ts, 126, 15)) nc_p1: number; ->nc_p1 : number +>nc_p1 : number, Symbol(nc_p1, Decl(commentsInheritance.ts, 128, 19)) nc_f1(): void; ->nc_f1 : () => void +>nc_f1 : () => void, Symbol(nc_f1, Decl(commentsInheritance.ts, 129, 18)) nc_l1: () => void; ->nc_l1 : () => void +>nc_l1 : () => void, Symbol(nc_l1, Decl(commentsInheritance.ts, 130, 18)) } interface i3 extends i2 { ->i3 : i3 ->i2 : i2 +>i3 : i3, Symbol(i3, Decl(commentsInheritance.ts, 132, 1)) +>i2 : i2, Symbol(i2, Decl(commentsInheritance.ts, 111, 22)) /** i3 p1 */ p1: number; ->p1 : number +>p1 : number, Symbol(p1, Decl(commentsInheritance.ts, 133, 25)) /** * i3 f1 */ f1(): void; ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(commentsInheritance.ts, 135, 15)) /** i3 l1*/ l1: () => void; ->l1 : () => void +>l1 : () => void, Symbol(l1, Decl(commentsInheritance.ts, 139, 15)) nc_p1: number; ->nc_p1 : number +>nc_p1 : number, Symbol(nc_p1, Decl(commentsInheritance.ts, 141, 19)) nc_f1(): void; ->nc_f1 : () => void +>nc_f1 : () => void, Symbol(nc_f1, Decl(commentsInheritance.ts, 142, 18)) nc_l1: () => void; ->nc_l1 : () => void +>nc_l1 : () => void, Symbol(nc_l1, Decl(commentsInheritance.ts, 143, 18)) } var i2_i: i2; ->i2_i : i2 ->i2 : i2 +>i2_i : i2, Symbol(i2_i, Decl(commentsInheritance.ts, 146, 3)) +>i2 : i2, Symbol(i2, Decl(commentsInheritance.ts, 111, 22)) var i3_i: i3; ->i3_i : i3 ->i3 : i3 +>i3_i : i3, Symbol(i3_i, Decl(commentsInheritance.ts, 147, 3)) +>i3 : i3, Symbol(i3, Decl(commentsInheritance.ts, 132, 1)) // assign to interface i2_i = i3_i; >i2_i = i3_i : i3 ->i2_i : i2 ->i3_i : i3 +>i2_i : i2, Symbol(i2_i, Decl(commentsInheritance.ts, 146, 3)) +>i3_i : i3, Symbol(i3_i, Decl(commentsInheritance.ts, 147, 3)) diff --git a/tests/baselines/reference/commentsInterface.types b/tests/baselines/reference/commentsInterface.types index 68d552882e2..b3dae21bdfe 100644 --- a/tests/baselines/reference/commentsInterface.types +++ b/tests/baselines/reference/commentsInterface.types @@ -1,218 +1,228 @@ === tests/cases/compiler/commentsInterface.ts === /** this is interface 1*/ interface i1 { ->i1 : i1 +>i1 : i1, Symbol(i1, Decl(commentsInterface.ts, 0, 0)) } var i1_i: i1; ->i1_i : i1 ->i1 : i1 +>i1_i : i1, Symbol(i1_i, Decl(commentsInterface.ts, 3, 3)) +>i1 : i1, Symbol(i1, Decl(commentsInterface.ts, 0, 0)) interface nc_i1 { ->nc_i1 : nc_i1 +>nc_i1 : nc_i1, Symbol(nc_i1, Decl(commentsInterface.ts, 3, 13)) } var nc_i1_i: nc_i1; ->nc_i1_i : nc_i1 ->nc_i1 : nc_i1 +>nc_i1_i : nc_i1, Symbol(nc_i1_i, Decl(commentsInterface.ts, 6, 3)) +>nc_i1 : nc_i1, Symbol(nc_i1, Decl(commentsInterface.ts, 3, 13)) /** this is interface 2 with memebers*/ interface i2 { ->i2 : i2 +>i2 : i2, Symbol(i2, Decl(commentsInterface.ts, 6, 19)) /** this is x*/ x: number; ->x : number +>x : number, Symbol(x, Decl(commentsInterface.ts, 8, 14)) /** this is foo*/ foo: (/**param help*/b: number) => string; ->foo : (b: number) => string ->b : number +>foo : (b: number) => string, Symbol(foo, Decl(commentsInterface.ts, 10, 14)) +>b : number, Symbol(b, Decl(commentsInterface.ts, 12, 10)) /** this is indexer*/ [/**string param*/i: string]: any; ->i : string +>i : string, Symbol(i, Decl(commentsInterface.ts, 14, 5)) /**new method*/ new (/** param*/i: i1); ->i : i1 ->i1 : i1 +>i : i1, Symbol(i, Decl(commentsInterface.ts, 16, 9)) +>i1 : i1, Symbol(i1, Decl(commentsInterface.ts, 0, 0)) nc_x: number; ->nc_x : number +>nc_x : number, Symbol(nc_x, Decl(commentsInterface.ts, 16, 27)) nc_foo: (b: number) => string; ->nc_foo : (b: number) => string ->b : number +>nc_foo : (b: number) => string, Symbol(nc_foo, Decl(commentsInterface.ts, 17, 17)) +>b : number, Symbol(b, Decl(commentsInterface.ts, 18, 13)) [i: number]: number; ->i : number +>i : number, Symbol(i, Decl(commentsInterface.ts, 19, 5)) /** this is call signature*/ (/**paramhelp a*/a: number,/**paramhelp b*/ b: number) : number; ->a : number ->b : number +>a : number, Symbol(a, Decl(commentsInterface.ts, 21, 5)) +>b : number, Symbol(b, Decl(commentsInterface.ts, 21, 31)) /** this is fnfoo*/ fnfoo(/**param help*/b: number): string; ->fnfoo : (b: number) => string ->b : number +>fnfoo : (b: number) => string, Symbol(fnfoo, Decl(commentsInterface.ts, 21, 68)) +>b : number, Symbol(b, Decl(commentsInterface.ts, 23, 10)) nc_fnfoo(b: number): string; ->nc_fnfoo : (b: number) => string ->b : number +>nc_fnfoo : (b: number) => string, Symbol(nc_fnfoo, Decl(commentsInterface.ts, 23, 44)) +>b : number, Symbol(b, Decl(commentsInterface.ts, 24, 13)) // nc_y nc_y: number; ->nc_y : number +>nc_y : number, Symbol(nc_y, Decl(commentsInterface.ts, 24, 32)) } var i2_i: i2; ->i2_i : i2 ->i2 : i2 +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>i2 : i2, Symbol(i2, Decl(commentsInterface.ts, 6, 19)) var i2_i_x = i2_i.x; ->i2_i_x : number ->i2_i.x : number ->i2_i : i2 ->x : number +>i2_i_x : number, Symbol(i2_i_x, Decl(commentsInterface.ts, 29, 3)) +>i2_i.x : number, Symbol(i2.x, Decl(commentsInterface.ts, 8, 14)) +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>x : number, Symbol(i2.x, Decl(commentsInterface.ts, 8, 14)) var i2_i_foo = i2_i.foo; ->i2_i_foo : (b: number) => string ->i2_i.foo : (b: number) => string ->i2_i : i2 ->foo : (b: number) => string +>i2_i_foo : (b: number) => string, Symbol(i2_i_foo, Decl(commentsInterface.ts, 30, 3)) +>i2_i.foo : (b: number) => string, Symbol(i2.foo, Decl(commentsInterface.ts, 10, 14)) +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>foo : (b: number) => string, Symbol(i2.foo, Decl(commentsInterface.ts, 10, 14)) var i2_i_foo_r = i2_i.foo(30); ->i2_i_foo_r : string +>i2_i_foo_r : string, Symbol(i2_i_foo_r, Decl(commentsInterface.ts, 31, 3)) >i2_i.foo(30) : string ->i2_i.foo : (b: number) => string ->i2_i : i2 ->foo : (b: number) => string +>i2_i.foo : (b: number) => string, Symbol(i2.foo, Decl(commentsInterface.ts, 10, 14)) +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>foo : (b: number) => string, Symbol(i2.foo, Decl(commentsInterface.ts, 10, 14)) +>30 : number var i2_i_i2_si = i2_i["hello"]; ->i2_i_i2_si : any +>i2_i_i2_si : any, Symbol(i2_i_i2_si, Decl(commentsInterface.ts, 32, 3)) >i2_i["hello"] : any ->i2_i : i2 +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>"hello" : string var i2_i_i2_ii = i2_i[30]; ->i2_i_i2_ii : number +>i2_i_i2_ii : number, Symbol(i2_i_i2_ii, Decl(commentsInterface.ts, 33, 3)) >i2_i[30] : number ->i2_i : i2 +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>30 : number var i2_i_n = new i2_i(i1_i); ->i2_i_n : any +>i2_i_n : any, Symbol(i2_i_n, Decl(commentsInterface.ts, 34, 3)) >new i2_i(i1_i) : any ->i2_i : i2 ->i1_i : i1 +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>i1_i : i1, Symbol(i1_i, Decl(commentsInterface.ts, 3, 3)) var i2_i_nc_x = i2_i.nc_x; ->i2_i_nc_x : number ->i2_i.nc_x : number ->i2_i : i2 ->nc_x : number +>i2_i_nc_x : number, Symbol(i2_i_nc_x, Decl(commentsInterface.ts, 35, 3)) +>i2_i.nc_x : number, Symbol(i2.nc_x, Decl(commentsInterface.ts, 16, 27)) +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>nc_x : number, Symbol(i2.nc_x, Decl(commentsInterface.ts, 16, 27)) var i2_i_nc_foo = i2_i.nc_foo; ->i2_i_nc_foo : (b: number) => string ->i2_i.nc_foo : (b: number) => string ->i2_i : i2 ->nc_foo : (b: number) => string +>i2_i_nc_foo : (b: number) => string, Symbol(i2_i_nc_foo, Decl(commentsInterface.ts, 36, 3)) +>i2_i.nc_foo : (b: number) => string, Symbol(i2.nc_foo, Decl(commentsInterface.ts, 17, 17)) +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>nc_foo : (b: number) => string, Symbol(i2.nc_foo, Decl(commentsInterface.ts, 17, 17)) var i2_i_nc_foo_r = i2_i.nc_foo(30); ->i2_i_nc_foo_r : string +>i2_i_nc_foo_r : string, Symbol(i2_i_nc_foo_r, Decl(commentsInterface.ts, 37, 3)) >i2_i.nc_foo(30) : string ->i2_i.nc_foo : (b: number) => string ->i2_i : i2 ->nc_foo : (b: number) => string +>i2_i.nc_foo : (b: number) => string, Symbol(i2.nc_foo, Decl(commentsInterface.ts, 17, 17)) +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>nc_foo : (b: number) => string, Symbol(i2.nc_foo, Decl(commentsInterface.ts, 17, 17)) +>30 : number var i2_i_r = i2_i(10, 20); ->i2_i_r : number +>i2_i_r : number, Symbol(i2_i_r, Decl(commentsInterface.ts, 38, 3)) >i2_i(10, 20) : number ->i2_i : i2 +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>10 : number +>20 : number var i2_i_fnfoo = i2_i.fnfoo; ->i2_i_fnfoo : (b: number) => string ->i2_i.fnfoo : (b: number) => string ->i2_i : i2 ->fnfoo : (b: number) => string +>i2_i_fnfoo : (b: number) => string, Symbol(i2_i_fnfoo, Decl(commentsInterface.ts, 39, 3)) +>i2_i.fnfoo : (b: number) => string, Symbol(i2.fnfoo, Decl(commentsInterface.ts, 21, 68)) +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>fnfoo : (b: number) => string, Symbol(i2.fnfoo, Decl(commentsInterface.ts, 21, 68)) var i2_i_fnfoo_r = i2_i.fnfoo(10); ->i2_i_fnfoo_r : string +>i2_i_fnfoo_r : string, Symbol(i2_i_fnfoo_r, Decl(commentsInterface.ts, 40, 3)) >i2_i.fnfoo(10) : string ->i2_i.fnfoo : (b: number) => string ->i2_i : i2 ->fnfoo : (b: number) => string +>i2_i.fnfoo : (b: number) => string, Symbol(i2.fnfoo, Decl(commentsInterface.ts, 21, 68)) +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>fnfoo : (b: number) => string, Symbol(i2.fnfoo, Decl(commentsInterface.ts, 21, 68)) +>10 : number var i2_i_nc_fnfoo = i2_i.nc_fnfoo; ->i2_i_nc_fnfoo : (b: number) => string ->i2_i.nc_fnfoo : (b: number) => string ->i2_i : i2 ->nc_fnfoo : (b: number) => string +>i2_i_nc_fnfoo : (b: number) => string, Symbol(i2_i_nc_fnfoo, Decl(commentsInterface.ts, 41, 3)) +>i2_i.nc_fnfoo : (b: number) => string, Symbol(i2.nc_fnfoo, Decl(commentsInterface.ts, 23, 44)) +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>nc_fnfoo : (b: number) => string, Symbol(i2.nc_fnfoo, Decl(commentsInterface.ts, 23, 44)) var i2_i_nc_fnfoo_r = i2_i.nc_fnfoo(10); ->i2_i_nc_fnfoo_r : string +>i2_i_nc_fnfoo_r : string, Symbol(i2_i_nc_fnfoo_r, Decl(commentsInterface.ts, 42, 3)) >i2_i.nc_fnfoo(10) : string ->i2_i.nc_fnfoo : (b: number) => string ->i2_i : i2 ->nc_fnfoo : (b: number) => string +>i2_i.nc_fnfoo : (b: number) => string, Symbol(i2.nc_fnfoo, Decl(commentsInterface.ts, 23, 44)) +>i2_i : i2, Symbol(i2_i, Decl(commentsInterface.ts, 28, 3)) +>nc_fnfoo : (b: number) => string, Symbol(i2.nc_fnfoo, Decl(commentsInterface.ts, 23, 44)) +>10 : number interface i3 { ->i3 : i3 +>i3 : i3, Symbol(i3, Decl(commentsInterface.ts, 42, 40)) /** Comment i3 x*/ x: number; ->x : number +>x : number, Symbol(x, Decl(commentsInterface.ts, 43, 14)) /** Function i3 f*/ f(/**number parameter*/a: number): string; ->f : (a: number) => string ->a : number +>f : (a: number) => string, Symbol(f, Decl(commentsInterface.ts, 45, 14)) +>a : number, Symbol(a, Decl(commentsInterface.ts, 47, 6)) /** i3 l*/ l: (/**comment i3 l b*/b: number) => string; ->l : (b: number) => string ->b : number +>l : (b: number) => string, Symbol(l, Decl(commentsInterface.ts, 47, 46)) +>b : number, Symbol(b, Decl(commentsInterface.ts, 49, 8)) nc_x: number; ->nc_x : number +>nc_x : number, Symbol(nc_x, Decl(commentsInterface.ts, 49, 48)) nc_f(a: number): string; ->nc_f : (a: number) => string ->a : number +>nc_f : (a: number) => string, Symbol(nc_f, Decl(commentsInterface.ts, 50, 17)) +>a : number, Symbol(a, Decl(commentsInterface.ts, 51, 9)) nc_l: (b: number) => string; ->nc_l : (b: number) => string ->b : number +>nc_l : (b: number) => string, Symbol(nc_l, Decl(commentsInterface.ts, 51, 28)) +>b : number, Symbol(b, Decl(commentsInterface.ts, 52, 11)) } var i3_i: i3; ->i3_i : i3 ->i3 : i3 +>i3_i : i3, Symbol(i3_i, Decl(commentsInterface.ts, 54, 3)) +>i3 : i3, Symbol(i3, Decl(commentsInterface.ts, 42, 40)) i3_i = { >i3_i = { f: /**own f*/ (/**i3_i a*/a: number) => "Hello" + a, l: this.f, /** own x*/ x: this.f(10), nc_x: this.l(this.x), nc_f: this.f, nc_l: this.l} : { f: (a: number) => string; l: any; x: any; nc_x: any; nc_f: any; nc_l: any; } ->i3_i : i3 +>i3_i : i3, Symbol(i3_i, Decl(commentsInterface.ts, 54, 3)) >{ f: /**own f*/ (/**i3_i a*/a: number) => "Hello" + a, l: this.f, /** own x*/ x: this.f(10), nc_x: this.l(this.x), nc_f: this.f, nc_l: this.l} : { f: (a: number) => string; l: any; x: any; nc_x: any; nc_f: any; nc_l: any; } f: /**own f*/ (/**i3_i a*/a: number) => "Hello" + a, ->f : (a: number) => string +>f : (a: number) => string, Symbol(f, Decl(commentsInterface.ts, 55, 8)) >(/**i3_i a*/a: number) => "Hello" + a : (a: number) => string ->a : number +>a : number, Symbol(a, Decl(commentsInterface.ts, 56, 19)) >"Hello" + a : string ->a : number +>"Hello" : string +>a : number, Symbol(a, Decl(commentsInterface.ts, 56, 19)) l: this.f, ->l : any +>l : any, Symbol(l, Decl(commentsInterface.ts, 56, 56)) >this.f : any >this : any >f : any /** own x*/ x: this.f(10), ->x : any +>x : any, Symbol(x, Decl(commentsInterface.ts, 57, 14)) >this.f(10) : any >this.f : any >this : any >f : any +>10 : number nc_x: this.l(this.x), ->nc_x : any +>nc_x : any, Symbol(nc_x, Decl(commentsInterface.ts, 59, 18)) >this.l(this.x) : any >this.l : any >this : any @@ -222,13 +232,13 @@ i3_i = { >x : any nc_f: this.f, ->nc_f : any +>nc_f : any, Symbol(nc_f, Decl(commentsInterface.ts, 60, 25)) >this.f : any >this : any >f : any nc_l: this.l ->nc_l : any +>nc_l : any, Symbol(nc_l, Decl(commentsInterface.ts, 61, 17)) >this.l : any >this : any >l : any @@ -236,25 +246,29 @@ i3_i = { }; i3_i.f(10); >i3_i.f(10) : string ->i3_i.f : (a: number) => string ->i3_i : i3 ->f : (a: number) => string +>i3_i.f : (a: number) => string, Symbol(i3.f, Decl(commentsInterface.ts, 45, 14)) +>i3_i : i3, Symbol(i3_i, Decl(commentsInterface.ts, 54, 3)) +>f : (a: number) => string, Symbol(i3.f, Decl(commentsInterface.ts, 45, 14)) +>10 : number i3_i.l(10); >i3_i.l(10) : string ->i3_i.l : (b: number) => string ->i3_i : i3 ->l : (b: number) => string +>i3_i.l : (b: number) => string, Symbol(i3.l, Decl(commentsInterface.ts, 47, 46)) +>i3_i : i3, Symbol(i3_i, Decl(commentsInterface.ts, 54, 3)) +>l : (b: number) => string, Symbol(i3.l, Decl(commentsInterface.ts, 47, 46)) +>10 : number i3_i.nc_f(10); >i3_i.nc_f(10) : string ->i3_i.nc_f : (a: number) => string ->i3_i : i3 ->nc_f : (a: number) => string +>i3_i.nc_f : (a: number) => string, Symbol(i3.nc_f, Decl(commentsInterface.ts, 50, 17)) +>i3_i : i3, Symbol(i3_i, Decl(commentsInterface.ts, 54, 3)) +>nc_f : (a: number) => string, Symbol(i3.nc_f, Decl(commentsInterface.ts, 50, 17)) +>10 : number i3_i.nc_l(10); >i3_i.nc_l(10) : string ->i3_i.nc_l : (b: number) => string ->i3_i : i3 ->nc_l : (b: number) => string +>i3_i.nc_l : (b: number) => string, Symbol(i3.nc_l, Decl(commentsInterface.ts, 51, 28)) +>i3_i : i3, Symbol(i3_i, Decl(commentsInterface.ts, 54, 3)) +>nc_l : (b: number) => string, Symbol(i3.nc_l, Decl(commentsInterface.ts, 51, 28)) +>10 : number diff --git a/tests/baselines/reference/commentsModules.types b/tests/baselines/reference/commentsModules.types index 1027f1ce308..b9d439cb08d 100644 --- a/tests/baselines/reference/commentsModules.types +++ b/tests/baselines/reference/commentsModules.types @@ -1,226 +1,226 @@ === tests/cases/compiler/commentsModules.ts === /** Module comment*/ module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(commentsModules.ts, 0, 0)) /** b's comment*/ export var b: number; ->b : number +>b : number, Symbol(b, Decl(commentsModules.ts, 3, 14)) /** foo's comment*/ function foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsModules.ts, 3, 25)) return b; ->b : number +>b : number, Symbol(b, Decl(commentsModules.ts, 3, 14)) } /** m2 comments*/ export module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(commentsModules.ts, 7, 5)) /** class comment;*/ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsModules.ts, 9, 22)) }; /** i*/ export var i = new c(); ->i : c +>i : c, Symbol(i, Decl(commentsModules.ts, 14, 18)) >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(commentsModules.ts, 9, 22)) } /** exported function*/ export function fooExport() { ->fooExport : () => number +>fooExport : () => number, Symbol(fooExport, Decl(commentsModules.ts, 15, 5)) return foo(); >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(commentsModules.ts, 3, 25)) } // shouldn't appear export function foo2Export(/**hm*/ a: string) { ->foo2Export : (a: string) => void ->a : string +>foo2Export : (a: string) => void, Symbol(foo2Export, Decl(commentsModules.ts, 19, 5)) +>a : string, Symbol(a, Decl(commentsModules.ts, 22, 31)) } /** foo3Export * comment */ export function foo3Export() { ->foo3Export : () => void +>foo3Export : () => void, Symbol(foo3Export, Decl(commentsModules.ts, 23, 5)) } /** foo4Export * comment */ function foo4Export() { ->foo4Export : () => void +>foo4Export : () => void, Symbol(foo4Export, Decl(commentsModules.ts, 29, 5)) } } // trailing comment module m1.fooExport(); >m1.fooExport() : number ->m1.fooExport : () => number ->m1 : typeof m1 ->fooExport : () => number +>m1.fooExport : () => number, Symbol(m1.fooExport, Decl(commentsModules.ts, 15, 5)) +>m1 : typeof m1, Symbol(m1, Decl(commentsModules.ts, 0, 0)) +>fooExport : () => number, Symbol(m1.fooExport, Decl(commentsModules.ts, 15, 5)) var myvar = new m1.m2.c(); ->myvar : m1.m2.c +>myvar : m1.m2.c, Symbol(myvar, Decl(commentsModules.ts, 38, 3)) >new m1.m2.c() : m1.m2.c ->m1.m2.c : typeof m1.m2.c ->m1.m2 : typeof m1.m2 ->m1 : typeof m1 ->m2 : typeof m1.m2 ->c : typeof m1.m2.c +>m1.m2.c : typeof m1.m2.c, Symbol(m1.m2.c, Decl(commentsModules.ts, 9, 22)) +>m1.m2 : typeof m1.m2, Symbol(m1.m2, Decl(commentsModules.ts, 7, 5)) +>m1 : typeof m1, Symbol(m1, Decl(commentsModules.ts, 0, 0)) +>m2 : typeof m1.m2, Symbol(m1.m2, Decl(commentsModules.ts, 7, 5)) +>c : typeof m1.m2.c, Symbol(m1.m2.c, Decl(commentsModules.ts, 9, 22)) /** module comment of m2.m3*/ module m2.m3 { ->m2 : typeof m2 ->m3 : typeof m3 +>m2 : typeof m2, Symbol(m2, Decl(commentsModules.ts, 38, 26)) +>m3 : typeof m3, Symbol(m3, Decl(commentsModules.ts, 40, 10)) /** Exported class comment*/ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsModules.ts, 40, 14)) } } /* trailing dotted module comment*/ new m2.m3.c(); >new m2.m3.c() : m2.m3.c ->m2.m3.c : typeof m2.m3.c ->m2.m3 : typeof m2.m3 ->m2 : typeof m2 ->m3 : typeof m2.m3 ->c : typeof m2.m3.c +>m2.m3.c : typeof m2.m3.c, Symbol(m2.m3.c, Decl(commentsModules.ts, 40, 14)) +>m2.m3 : typeof m2.m3, Symbol(m2.m3, Decl(commentsModules.ts, 40, 10)) +>m2 : typeof m2, Symbol(m2, Decl(commentsModules.ts, 38, 26)) +>m3 : typeof m2.m3, Symbol(m2.m3, Decl(commentsModules.ts, 40, 10)) +>c : typeof m2.m3.c, Symbol(m2.m3.c, Decl(commentsModules.ts, 40, 14)) /** module comment of m3.m4.m5*/ module m3.m4.m5 { ->m3 : typeof m3 ->m4 : typeof m4 ->m5 : typeof m5 +>m3 : typeof m3, Symbol(m3, Decl(commentsModules.ts, 45, 14)) +>m4 : typeof m4, Symbol(m4, Decl(commentsModules.ts, 47, 10)) +>m5 : typeof m5, Symbol(m5, Decl(commentsModules.ts, 47, 13)) /** Exported class comment*/ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsModules.ts, 47, 17)) } } // trailing dotted module 2 new m3.m4.m5.c(); >new m3.m4.m5.c() : m3.m4.m5.c ->m3.m4.m5.c : typeof m3.m4.m5.c ->m3.m4.m5 : typeof m3.m4.m5 ->m3.m4 : typeof m3.m4 ->m3 : typeof m3 ->m4 : typeof m3.m4 ->m5 : typeof m3.m4.m5 ->c : typeof m3.m4.m5.c +>m3.m4.m5.c : typeof m3.m4.m5.c, Symbol(m3.m4.m5.c, Decl(commentsModules.ts, 47, 17)) +>m3.m4.m5 : typeof m3.m4.m5, Symbol(m3.m4.m5, Decl(commentsModules.ts, 47, 13)) +>m3.m4 : typeof m3.m4, Symbol(m3.m4, Decl(commentsModules.ts, 47, 10)) +>m3 : typeof m3, Symbol(m3, Decl(commentsModules.ts, 45, 14)) +>m4 : typeof m3.m4, Symbol(m3.m4, Decl(commentsModules.ts, 47, 10)) +>m5 : typeof m3.m4.m5, Symbol(m3.m4.m5, Decl(commentsModules.ts, 47, 13)) +>c : typeof m3.m4.m5.c, Symbol(m3.m4.m5.c, Decl(commentsModules.ts, 47, 17)) /** module comment of m4.m5.m6*/ module m4.m5.m6 { ->m4 : typeof m4 ->m5 : typeof m5 ->m6 : typeof m6 +>m4 : typeof m4, Symbol(m4, Decl(commentsModules.ts, 52, 17)) +>m5 : typeof m5, Symbol(m5, Decl(commentsModules.ts, 54, 10)) +>m6 : typeof m6, Symbol(m6, Decl(commentsModules.ts, 54, 13)) export module m7 { ->m7 : typeof m7 +>m7 : typeof m7, Symbol(m7, Decl(commentsModules.ts, 54, 17)) /** Exported class comment*/ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsModules.ts, 55, 22)) } } /* trailing inner module */ /* multiple comments*/ } new m4.m5.m6.m7.c(); >new m4.m5.m6.m7.c() : m4.m5.m6.m7.c ->m4.m5.m6.m7.c : typeof m4.m5.m6.m7.c ->m4.m5.m6.m7 : typeof m4.m5.m6.m7 ->m4.m5.m6 : typeof m4.m5.m6 ->m4.m5 : typeof m4.m5 ->m4 : typeof m4 ->m5 : typeof m4.m5 ->m6 : typeof m4.m5.m6 ->m7 : typeof m4.m5.m6.m7 ->c : typeof m4.m5.m6.m7.c +>m4.m5.m6.m7.c : typeof m4.m5.m6.m7.c, Symbol(m4.m5.m6.m7.c, Decl(commentsModules.ts, 55, 22)) +>m4.m5.m6.m7 : typeof m4.m5.m6.m7, Symbol(m4.m5.m6.m7, Decl(commentsModules.ts, 54, 17)) +>m4.m5.m6 : typeof m4.m5.m6, Symbol(m4.m5.m6, Decl(commentsModules.ts, 54, 13)) +>m4.m5 : typeof m4.m5, Symbol(m4.m5, Decl(commentsModules.ts, 54, 10)) +>m4 : typeof m4, Symbol(m4, Decl(commentsModules.ts, 52, 17)) +>m5 : typeof m4.m5, Symbol(m4.m5, Decl(commentsModules.ts, 54, 10)) +>m6 : typeof m4.m5.m6, Symbol(m4.m5.m6, Decl(commentsModules.ts, 54, 13)) +>m7 : typeof m4.m5.m6.m7, Symbol(m4.m5.m6.m7, Decl(commentsModules.ts, 54, 17)) +>c : typeof m4.m5.m6.m7.c, Symbol(m4.m5.m6.m7.c, Decl(commentsModules.ts, 55, 22)) /** module comment of m5.m6.m7*/ module m5.m6.m7 { ->m5 : typeof m5 ->m6 : typeof m6 ->m7 : typeof m7 +>m5 : typeof m5, Symbol(m5, Decl(commentsModules.ts, 61, 20)) +>m6 : typeof m6, Symbol(m6, Decl(commentsModules.ts, 63, 10)) +>m7 : typeof m7, Symbol(m7, Decl(commentsModules.ts, 63, 13)) /** module m8 comment*/ export module m8 { ->m8 : typeof m8 +>m8 : typeof m8, Symbol(m8, Decl(commentsModules.ts, 63, 17)) /** Exported class comment*/ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsModules.ts, 65, 22)) } } } new m5.m6.m7.m8.c(); >new m5.m6.m7.m8.c() : m5.m6.m7.m8.c ->m5.m6.m7.m8.c : typeof m5.m6.m7.m8.c ->m5.m6.m7.m8 : typeof m5.m6.m7.m8 ->m5.m6.m7 : typeof m5.m6.m7 ->m5.m6 : typeof m5.m6 ->m5 : typeof m5 ->m6 : typeof m5.m6 ->m7 : typeof m5.m6.m7 ->m8 : typeof m5.m6.m7.m8 ->c : typeof m5.m6.m7.m8.c +>m5.m6.m7.m8.c : typeof m5.m6.m7.m8.c, Symbol(m5.m6.m7.m8.c, Decl(commentsModules.ts, 65, 22)) +>m5.m6.m7.m8 : typeof m5.m6.m7.m8, Symbol(m5.m6.m7.m8, Decl(commentsModules.ts, 63, 17)) +>m5.m6.m7 : typeof m5.m6.m7, Symbol(m5.m6.m7, Decl(commentsModules.ts, 63, 13)) +>m5.m6 : typeof m5.m6, Symbol(m5.m6, Decl(commentsModules.ts, 63, 10)) +>m5 : typeof m5, Symbol(m5, Decl(commentsModules.ts, 61, 20)) +>m6 : typeof m5.m6, Symbol(m5.m6, Decl(commentsModules.ts, 63, 10)) +>m7 : typeof m5.m6.m7, Symbol(m5.m6.m7, Decl(commentsModules.ts, 63, 13)) +>m8 : typeof m5.m6.m7.m8, Symbol(m5.m6.m7.m8, Decl(commentsModules.ts, 63, 17)) +>c : typeof m5.m6.m7.m8.c, Symbol(m5.m6.m7.m8.c, Decl(commentsModules.ts, 65, 22)) module m6.m7 { ->m6 : typeof m6 ->m7 : typeof m7 +>m6 : typeof m6, Symbol(m6, Decl(commentsModules.ts, 71, 20)) +>m7 : typeof m7, Symbol(m7, Decl(commentsModules.ts, 72, 10)) export module m8 { ->m8 : typeof m8 +>m8 : typeof m8, Symbol(m8, Decl(commentsModules.ts, 72, 14)) /** Exported class comment*/ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsModules.ts, 73, 22)) } } } new m6.m7.m8.c(); >new m6.m7.m8.c() : m6.m7.m8.c ->m6.m7.m8.c : typeof m6.m7.m8.c ->m6.m7.m8 : typeof m6.m7.m8 ->m6.m7 : typeof m6.m7 ->m6 : typeof m6 ->m7 : typeof m6.m7 ->m8 : typeof m6.m7.m8 ->c : typeof m6.m7.m8.c +>m6.m7.m8.c : typeof m6.m7.m8.c, Symbol(m6.m7.m8.c, Decl(commentsModules.ts, 73, 22)) +>m6.m7.m8 : typeof m6.m7.m8, Symbol(m6.m7.m8, Decl(commentsModules.ts, 72, 14)) +>m6.m7 : typeof m6.m7, Symbol(m6.m7, Decl(commentsModules.ts, 72, 10)) +>m6 : typeof m6, Symbol(m6, Decl(commentsModules.ts, 71, 20)) +>m7 : typeof m6.m7, Symbol(m6.m7, Decl(commentsModules.ts, 72, 10)) +>m8 : typeof m6.m7.m8, Symbol(m6.m7.m8, Decl(commentsModules.ts, 72, 14)) +>c : typeof m6.m7.m8.c, Symbol(m6.m7.m8.c, Decl(commentsModules.ts, 73, 22)) module m7.m8 { ->m7 : typeof m7 ->m8 : typeof m8 +>m7 : typeof m7, Symbol(m7, Decl(commentsModules.ts, 79, 17)) +>m8 : typeof m8, Symbol(m8, Decl(commentsModules.ts, 80, 10)) /** module m9 comment*/ export module m9 { ->m9 : typeof m9 +>m9 : typeof m9, Symbol(m9, Decl(commentsModules.ts, 80, 14)) /** Exported class comment*/ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsModules.ts, 82, 22)) } /** class d */ class d { ->d : d +>d : d, Symbol(d, Decl(commentsModules.ts, 85, 9)) } // class e export class e { ->e : e +>e : e, Symbol(e, Decl(commentsModules.ts, 89, 9)) } } } new m7.m8.m9.c(); >new m7.m8.m9.c() : m7.m8.m9.c ->m7.m8.m9.c : typeof m7.m8.m9.c ->m7.m8.m9 : typeof m7.m8.m9 ->m7.m8 : typeof m7.m8 ->m7 : typeof m7 ->m8 : typeof m7.m8 ->m9 : typeof m7.m8.m9 ->c : typeof m7.m8.m9.c +>m7.m8.m9.c : typeof m7.m8.m9.c, Symbol(m7.m8.m9.c, Decl(commentsModules.ts, 82, 22)) +>m7.m8.m9 : typeof m7.m8.m9, Symbol(m7.m8.m9, Decl(commentsModules.ts, 80, 14)) +>m7.m8 : typeof m7.m8, Symbol(m7.m8, Decl(commentsModules.ts, 80, 10)) +>m7 : typeof m7, Symbol(m7, Decl(commentsModules.ts, 79, 17)) +>m8 : typeof m7.m8, Symbol(m7.m8, Decl(commentsModules.ts, 80, 10)) +>m9 : typeof m7.m8.m9, Symbol(m7.m8.m9, Decl(commentsModules.ts, 80, 14)) +>c : typeof m7.m8.m9.c, Symbol(m7.m8.m9.c, Decl(commentsModules.ts, 82, 22)) diff --git a/tests/baselines/reference/commentsMultiModuleMultiFile.types b/tests/baselines/reference/commentsMultiModuleMultiFile.types index c0f3fb1b875..e8514efac0c 100644 --- a/tests/baselines/reference/commentsMultiModuleMultiFile.types +++ b/tests/baselines/reference/commentsMultiModuleMultiFile.types @@ -1,62 +1,62 @@ === tests/cases/compiler/commentsMultiModuleMultiFile_1.ts === import m = require('commentsMultiModuleMultiFile_0'); ->m : typeof m +>m : typeof m, Symbol(m, Decl(commentsMultiModuleMultiFile_1.ts, 0, 0)) /** this is multi module 3 comment*/ export module multiM { ->multiM : typeof multiM +>multiM : typeof multiM, Symbol(multiM, Decl(commentsMultiModuleMultiFile_1.ts, 0, 53)) /** class d comment*/ export class d { ->d : d +>d : d, Symbol(d, Decl(commentsMultiModuleMultiFile_1.ts, 2, 22)) } /// class f comment export class f { ->f : f +>f : f, Symbol(f, Decl(commentsMultiModuleMultiFile_1.ts, 5, 5)) } } new multiM.d(); >new multiM.d() : multiM.d ->multiM.d : typeof multiM.d ->multiM : typeof multiM ->d : typeof multiM.d +>multiM.d : typeof multiM.d, Symbol(multiM.d, Decl(commentsMultiModuleMultiFile_1.ts, 2, 22)) +>multiM : typeof multiM, Symbol(multiM, Decl(commentsMultiModuleMultiFile_1.ts, 0, 53)) +>d : typeof multiM.d, Symbol(multiM.d, Decl(commentsMultiModuleMultiFile_1.ts, 2, 22)) === tests/cases/compiler/commentsMultiModuleMultiFile_0.ts === /** this is multi declare module*/ export module multiM { ->multiM : typeof multiM +>multiM : typeof multiM, Symbol(multiM, Decl(commentsMultiModuleMultiFile_0.ts, 0, 0), Decl(commentsMultiModuleMultiFile_0.ts, 6, 1)) /// class b comment export class b { ->b : b +>b : b, Symbol(b, Decl(commentsMultiModuleMultiFile_0.ts, 2, 22)) } } /** thi is multi module 2*/ export module multiM { ->multiM : typeof multiM +>multiM : typeof multiM, Symbol(multiM, Decl(commentsMultiModuleMultiFile_0.ts, 0, 0), Decl(commentsMultiModuleMultiFile_0.ts, 6, 1)) /** class c comment*/ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsMultiModuleMultiFile_0.ts, 8, 22)) } // class e comment export class e { ->e : e +>e : e, Symbol(e, Decl(commentsMultiModuleMultiFile_0.ts, 11, 5)) } } new multiM.b(); >new multiM.b() : multiM.b ->multiM.b : typeof multiM.b ->multiM : typeof multiM ->b : typeof multiM.b +>multiM.b : typeof multiM.b, Symbol(multiM.b, Decl(commentsMultiModuleMultiFile_0.ts, 2, 22)) +>multiM : typeof multiM, Symbol(multiM, Decl(commentsMultiModuleMultiFile_0.ts, 0, 0), Decl(commentsMultiModuleMultiFile_0.ts, 6, 1)) +>b : typeof multiM.b, Symbol(multiM.b, Decl(commentsMultiModuleMultiFile_0.ts, 2, 22)) new multiM.c(); >new multiM.c() : multiM.c ->multiM.c : typeof multiM.c ->multiM : typeof multiM ->c : typeof multiM.c +>multiM.c : typeof multiM.c, Symbol(multiM.c, Decl(commentsMultiModuleMultiFile_0.ts, 8, 22)) +>multiM : typeof multiM, Symbol(multiM, Decl(commentsMultiModuleMultiFile_0.ts, 0, 0), Decl(commentsMultiModuleMultiFile_0.ts, 6, 1)) +>c : typeof multiM.c, Symbol(multiM.c, Decl(commentsMultiModuleMultiFile_0.ts, 8, 22)) diff --git a/tests/baselines/reference/commentsMultiModuleSingleFile.types b/tests/baselines/reference/commentsMultiModuleSingleFile.types index 29c18639c21..b455140126b 100644 --- a/tests/baselines/reference/commentsMultiModuleSingleFile.types +++ b/tests/baselines/reference/commentsMultiModuleSingleFile.types @@ -2,42 +2,42 @@ /** this is multi declare module*/ module multiM { ->multiM : typeof multiM +>multiM : typeof multiM, Symbol(multiM, Decl(commentsMultiModuleSingleFile.ts, 0, 0), Decl(commentsMultiModuleSingleFile.ts, 10, 1)) /** class b*/ export class b { ->b : b +>b : b, Symbol(b, Decl(commentsMultiModuleSingleFile.ts, 2, 15)) } // class d export class d { ->d : d +>d : d, Symbol(d, Decl(commentsMultiModuleSingleFile.ts, 5, 5)) } } /// this is multi module 2 module multiM { ->multiM : typeof multiM +>multiM : typeof multiM, Symbol(multiM, Decl(commentsMultiModuleSingleFile.ts, 0, 0), Decl(commentsMultiModuleSingleFile.ts, 10, 1)) /** class c comment*/ export class c { ->c : c +>c : c, Symbol(c, Decl(commentsMultiModuleSingleFile.ts, 13, 15)) } /// class e export class e { ->e : e +>e : e, Symbol(e, Decl(commentsMultiModuleSingleFile.ts, 16, 5)) } } new multiM.b(); >new multiM.b() : multiM.b ->multiM.b : typeof multiM.b ->multiM : typeof multiM ->b : typeof multiM.b +>multiM.b : typeof multiM.b, Symbol(multiM.b, Decl(commentsMultiModuleSingleFile.ts, 2, 15)) +>multiM : typeof multiM, Symbol(multiM, Decl(commentsMultiModuleSingleFile.ts, 0, 0), Decl(commentsMultiModuleSingleFile.ts, 10, 1)) +>b : typeof multiM.b, Symbol(multiM.b, Decl(commentsMultiModuleSingleFile.ts, 2, 15)) new multiM.c(); >new multiM.c() : multiM.c ->multiM.c : typeof multiM.c ->multiM : typeof multiM ->c : typeof multiM.c +>multiM.c : typeof multiM.c, Symbol(multiM.c, Decl(commentsMultiModuleSingleFile.ts, 13, 15)) +>multiM : typeof multiM, Symbol(multiM, Decl(commentsMultiModuleSingleFile.ts, 0, 0), Decl(commentsMultiModuleSingleFile.ts, 10, 1)) +>c : typeof multiM.c, Symbol(multiM.c, Decl(commentsMultiModuleSingleFile.ts, 13, 15)) diff --git a/tests/baselines/reference/commentsOnObjectLiteral3.types b/tests/baselines/reference/commentsOnObjectLiteral3.types index e81bd646b5a..a97ae388c02 100644 --- a/tests/baselines/reference/commentsOnObjectLiteral3.types +++ b/tests/baselines/reference/commentsOnObjectLiteral3.types @@ -1,26 +1,27 @@ === tests/cases/compiler/commentsOnObjectLiteral3.ts === var v = { ->v : { prop: number; func: () => void; func1(): void; a: any; } +>v : { prop: number; func: () => void; func1(): void; a: any; }, Symbol(v, Decl(commentsOnObjectLiteral3.ts, 1, 3)) >{ //property prop: 1 /* multiple trailing comments */ /*trailing comments*/, //property func: function () { }, //PropertyName + CallSignature func1() { }, //getter get a() { return this.prop; } /*trailing 1*/, //setter set a(value) { this.prop = value; } // trailing 2} : { prop: number; func: () => void; func1(): void; a: any; } //property prop: 1 /* multiple trailing comments */ /*trailing comments*/, ->prop : number +>prop : number, Symbol(prop, Decl(commentsOnObjectLiteral3.ts, 1, 9)) +>1 : number //property func: function () { ->func : () => void +>func : () => void, Symbol(func, Decl(commentsOnObjectLiteral3.ts, 3, 64)) >function () { } : () => void }, //PropertyName + CallSignature func1() { }, ->func1 : () => void +>func1 : () => void, Symbol(func1, Decl(commentsOnObjectLiteral3.ts, 6, 3)) //getter get a() { ->a : any +>a : any, Symbol(a, Decl(commentsOnObjectLiteral3.ts, 8, 13), Decl(commentsOnObjectLiteral3.ts, 12, 18)) return this.prop; >this.prop : any @@ -30,15 +31,15 @@ var v = { } /*trailing 1*/, //setter set a(value) { ->a : any ->value : any +>a : any, Symbol(a, Decl(commentsOnObjectLiteral3.ts, 8, 13), Decl(commentsOnObjectLiteral3.ts, 12, 18)) +>value : any, Symbol(value, Decl(commentsOnObjectLiteral3.ts, 14, 7)) this.prop = value; >this.prop = value : any >this.prop : any >this : any >prop : any ->value : any +>value : any, Symbol(value, Decl(commentsOnObjectLiteral3.ts, 14, 7)) } // trailing 2 }; diff --git a/tests/baselines/reference/commentsOnObjectLiteral4.types b/tests/baselines/reference/commentsOnObjectLiteral4.types index 364df6e5ea1..8e707865cfa 100644 --- a/tests/baselines/reference/commentsOnObjectLiteral4.types +++ b/tests/baselines/reference/commentsOnObjectLiteral4.types @@ -1,14 +1,14 @@ === tests/cases/compiler/commentsOnObjectLiteral4.ts === var v = { ->v : { bar: number; } +>v : { bar: number; }, Symbol(v, Decl(commentsOnObjectLiteral4.ts, 1, 3)) >{ /** * @type {number} */ get bar(): number { return this._bar; }} : { bar: number; } /** * @type {number} */ get bar(): number { ->bar : number +>bar : number, Symbol(bar, Decl(commentsOnObjectLiteral4.ts, 1, 9)) return this._bar; >this._bar : any diff --git a/tests/baselines/reference/commentsOnReturnStatement1.types b/tests/baselines/reference/commentsOnReturnStatement1.types index 0d447b6536f..b4831d61ef1 100644 --- a/tests/baselines/reference/commentsOnReturnStatement1.types +++ b/tests/baselines/reference/commentsOnReturnStatement1.types @@ -1,15 +1,17 @@ === tests/cases/compiler/commentsOnReturnStatement1.ts === class DebugClass { ->DebugClass : DebugClass +>DebugClass : DebugClass, Symbol(DebugClass, Decl(commentsOnReturnStatement1.ts, 0, 0)) public static debugFunc() { ->debugFunc : () => boolean +>debugFunc : () => boolean, Symbol(DebugClass.debugFunc, Decl(commentsOnReturnStatement1.ts, 0, 18)) // Start Debugger Test Code var i = 0; ->i : number +>i : number, Symbol(i, Decl(commentsOnReturnStatement1.ts, 3, 11)) +>0 : number // End Debugger Test Code return true; +>true : boolean } } diff --git a/tests/baselines/reference/commentsOnStaticMembers.types b/tests/baselines/reference/commentsOnStaticMembers.types index 5c201c7709a..b841952daea 100644 --- a/tests/baselines/reference/commentsOnStaticMembers.types +++ b/tests/baselines/reference/commentsOnStaticMembers.types @@ -1,29 +1,31 @@ === tests/cases/compiler/commentsOnStaticMembers.ts === class test { ->test : test +>test : test, Symbol(test, Decl(commentsOnStaticMembers.ts, 0, 0)) /** * p1 comment appears in output */ public static p1: string = ""; ->p1 : string +>p1 : string, Symbol(test.p1, Decl(commentsOnStaticMembers.ts, 1, 12)) +>"" : string /** * p2 comment does not appear in output */ public static p2: string; ->p2 : string +>p2 : string, Symbol(test.p2, Decl(commentsOnStaticMembers.ts, 5, 34)) /** * p3 comment appears in output */ private static p3: string = ""; ->p3 : string +>p3 : string, Symbol(test.p3, Decl(commentsOnStaticMembers.ts, 9, 29)) +>"" : string /** * p4 comment does not appear in output */ private static p4: string; ->p4 : string +>p4 : string, Symbol(test.p4, Decl(commentsOnStaticMembers.ts, 14, 35)) } diff --git a/tests/baselines/reference/commentsOverloads.types b/tests/baselines/reference/commentsOverloads.types index 9984c1b5b26..b01d3b10bc1 100644 --- a/tests/baselines/reference/commentsOverloads.types +++ b/tests/baselines/reference/commentsOverloads.types @@ -1,436 +1,463 @@ === tests/cases/compiler/commentsOverloads.ts === /** this is signature 1*/ function f1(/**param a*/a: number): number; ->f1 : { (a: number): number; (b: string): number; } ->a : number +>f1 : { (a: number): number; (b: string): number; }, Symbol(f1, Decl(commentsOverloads.ts, 0, 0), Decl(commentsOverloads.ts, 1, 43), Decl(commentsOverloads.ts, 2, 31)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 1, 12)) function f1(b: string): number; ->f1 : { (a: number): number; (b: string): number; } ->b : string +>f1 : { (a: number): number; (b: string): number; }, Symbol(f1, Decl(commentsOverloads.ts, 0, 0), Decl(commentsOverloads.ts, 1, 43), Decl(commentsOverloads.ts, 2, 31)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 2, 12)) function f1(aOrb: any) { ->f1 : { (a: number): number; (b: string): number; } ->aOrb : any +>f1 : { (a: number): number; (b: string): number; }, Symbol(f1, Decl(commentsOverloads.ts, 0, 0), Decl(commentsOverloads.ts, 1, 43), Decl(commentsOverloads.ts, 2, 31)) +>aOrb : any, Symbol(aOrb, Decl(commentsOverloads.ts, 3, 12)) return 10; +>10 : number } f1("hello"); >f1("hello") : number ->f1 : { (a: number): number; (b: string): number; } +>f1 : { (a: number): number; (b: string): number; }, Symbol(f1, Decl(commentsOverloads.ts, 0, 0), Decl(commentsOverloads.ts, 1, 43), Decl(commentsOverloads.ts, 2, 31)) +>"hello" : string f1(10); >f1(10) : number ->f1 : { (a: number): number; (b: string): number; } +>f1 : { (a: number): number; (b: string): number; }, Symbol(f1, Decl(commentsOverloads.ts, 0, 0), Decl(commentsOverloads.ts, 1, 43), Decl(commentsOverloads.ts, 2, 31)) +>10 : number function f2(a: number): number; ->f2 : { (a: number): number; (b: string): number; } ->a : number +>f2 : { (a: number): number; (b: string): number; }, Symbol(f2, Decl(commentsOverloads.ts, 7, 7), Decl(commentsOverloads.ts, 8, 31), Decl(commentsOverloads.ts, 10, 31)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 8, 12)) /** this is signature 2*/ function f2(b: string): number; ->f2 : { (a: number): number; (b: string): number; } ->b : string +>f2 : { (a: number): number; (b: string): number; }, Symbol(f2, Decl(commentsOverloads.ts, 7, 7), Decl(commentsOverloads.ts, 8, 31), Decl(commentsOverloads.ts, 10, 31)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 10, 12)) /** this is f2 var comment*/ function f2(aOrb: any) { ->f2 : { (a: number): number; (b: string): number; } ->aOrb : any +>f2 : { (a: number): number; (b: string): number; }, Symbol(f2, Decl(commentsOverloads.ts, 7, 7), Decl(commentsOverloads.ts, 8, 31), Decl(commentsOverloads.ts, 10, 31)) +>aOrb : any, Symbol(aOrb, Decl(commentsOverloads.ts, 12, 12)) return 10; +>10 : number } f2("hello"); >f2("hello") : number ->f2 : { (a: number): number; (b: string): number; } +>f2 : { (a: number): number; (b: string): number; }, Symbol(f2, Decl(commentsOverloads.ts, 7, 7), Decl(commentsOverloads.ts, 8, 31), Decl(commentsOverloads.ts, 10, 31)) +>"hello" : string f2(10); >f2(10) : number ->f2 : { (a: number): number; (b: string): number; } +>f2 : { (a: number): number; (b: string): number; }, Symbol(f2, Decl(commentsOverloads.ts, 7, 7), Decl(commentsOverloads.ts, 8, 31), Decl(commentsOverloads.ts, 10, 31)) +>10 : number function f3(a: number): number; ->f3 : { (a: number): number; (b: string): number; } ->a : number +>f3 : { (a: number): number; (b: string): number; }, Symbol(f3, Decl(commentsOverloads.ts, 16, 7), Decl(commentsOverloads.ts, 17, 31), Decl(commentsOverloads.ts, 18, 31)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 17, 12)) function f3(b: string): number; ->f3 : { (a: number): number; (b: string): number; } ->b : string +>f3 : { (a: number): number; (b: string): number; }, Symbol(f3, Decl(commentsOverloads.ts, 16, 7), Decl(commentsOverloads.ts, 17, 31), Decl(commentsOverloads.ts, 18, 31)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 18, 12)) function f3(aOrb: any) { ->f3 : { (a: number): number; (b: string): number; } ->aOrb : any +>f3 : { (a: number): number; (b: string): number; }, Symbol(f3, Decl(commentsOverloads.ts, 16, 7), Decl(commentsOverloads.ts, 17, 31), Decl(commentsOverloads.ts, 18, 31)) +>aOrb : any, Symbol(aOrb, Decl(commentsOverloads.ts, 19, 12)) return 10; +>10 : number } f3("hello"); >f3("hello") : number ->f3 : { (a: number): number; (b: string): number; } +>f3 : { (a: number): number; (b: string): number; }, Symbol(f3, Decl(commentsOverloads.ts, 16, 7), Decl(commentsOverloads.ts, 17, 31), Decl(commentsOverloads.ts, 18, 31)) +>"hello" : string f3(10); >f3(10) : number ->f3 : { (a: number): number; (b: string): number; } +>f3 : { (a: number): number; (b: string): number; }, Symbol(f3, Decl(commentsOverloads.ts, 16, 7), Decl(commentsOverloads.ts, 17, 31), Decl(commentsOverloads.ts, 18, 31)) +>10 : number /** this is signature 4 - with number parameter*/ function f4(/**param a*/a: number): number; ->f4 : { (a: number): number; (b: string): number; } ->a : number +>f4 : { (a: number): number; (b: string): number; }, Symbol(f4, Decl(commentsOverloads.ts, 23, 7), Decl(commentsOverloads.ts, 25, 43), Decl(commentsOverloads.ts, 27, 31)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 25, 12)) /** this is signature 4 - with string parameter*/ function f4(b: string): number; ->f4 : { (a: number): number; (b: string): number; } ->b : string +>f4 : { (a: number): number; (b: string): number; }, Symbol(f4, Decl(commentsOverloads.ts, 23, 7), Decl(commentsOverloads.ts, 25, 43), Decl(commentsOverloads.ts, 27, 31)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 27, 12)) function f4(aOrb: any) { ->f4 : { (a: number): number; (b: string): number; } ->aOrb : any +>f4 : { (a: number): number; (b: string): number; }, Symbol(f4, Decl(commentsOverloads.ts, 23, 7), Decl(commentsOverloads.ts, 25, 43), Decl(commentsOverloads.ts, 27, 31)) +>aOrb : any, Symbol(aOrb, Decl(commentsOverloads.ts, 28, 12)) return 10; +>10 : number } f4("hello"); >f4("hello") : number ->f4 : { (a: number): number; (b: string): number; } +>f4 : { (a: number): number; (b: string): number; }, Symbol(f4, Decl(commentsOverloads.ts, 23, 7), Decl(commentsOverloads.ts, 25, 43), Decl(commentsOverloads.ts, 27, 31)) +>"hello" : string f4(10); >f4(10) : number ->f4 : { (a: number): number; (b: string): number; } +>f4 : { (a: number): number; (b: string): number; }, Symbol(f4, Decl(commentsOverloads.ts, 23, 7), Decl(commentsOverloads.ts, 25, 43), Decl(commentsOverloads.ts, 27, 31)) +>10 : number interface i1 { ->i1 : i1 +>i1 : i1, Symbol(i1, Decl(commentsOverloads.ts, 32, 7)) /**this signature 1*/ (/**param a*/ a: number): number; ->a : number +>a : number, Symbol(a, Decl(commentsOverloads.ts, 35, 5)) /**this is signature 2*/ (b: string): number; ->b : string +>b : string, Symbol(b, Decl(commentsOverloads.ts, 37, 5)) /** foo 1*/ foo(a: number): number; ->foo : { (a: number): number; (b: string): number; (arr: number[]): number; (arr: string[]): number; } ->a : number +>foo : { (a: number): number; (b: string): number; (arr: number[]): number; (arr: string[]): number; }, Symbol(foo, Decl(commentsOverloads.ts, 37, 24), Decl(commentsOverloads.ts, 39, 27), Decl(commentsOverloads.ts, 41, 27), Decl(commentsOverloads.ts, 43, 31)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 39, 8)) /** foo 2*/ foo(b: string): number; ->foo : { (a: number): number; (b: string): number; (arr: number[]): number; (arr: string[]): number; } ->b : string +>foo : { (a: number): number; (b: string): number; (arr: number[]): number; (arr: string[]): number; }, Symbol(foo, Decl(commentsOverloads.ts, 37, 24), Decl(commentsOverloads.ts, 39, 27), Decl(commentsOverloads.ts, 41, 27), Decl(commentsOverloads.ts, 43, 31)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 41, 8)) // foo 3 foo(arr: number[]): number; ->foo : { (a: number): number; (b: string): number; (arr: number[]): number; (arr: string[]): number; } ->arr : number[] +>foo : { (a: number): number; (b: string): number; (arr: number[]): number; (arr: string[]): number; }, Symbol(foo, Decl(commentsOverloads.ts, 37, 24), Decl(commentsOverloads.ts, 39, 27), Decl(commentsOverloads.ts, 41, 27), Decl(commentsOverloads.ts, 43, 31)) +>arr : number[], Symbol(arr, Decl(commentsOverloads.ts, 43, 8)) /** foo 4 */ foo(arr: string[]): number; ->foo : { (a: number): number; (b: string): number; (arr: number[]): number; (arr: string[]): number; } ->arr : string[] +>foo : { (a: number): number; (b: string): number; (arr: number[]): number; (arr: string[]): number; }, Symbol(foo, Decl(commentsOverloads.ts, 37, 24), Decl(commentsOverloads.ts, 39, 27), Decl(commentsOverloads.ts, 41, 27), Decl(commentsOverloads.ts, 43, 31)) +>arr : string[], Symbol(arr, Decl(commentsOverloads.ts, 45, 8)) foo2(a: number): number; ->foo2 : { (a: number): number; (b: string): number; } ->a : number +>foo2 : { (a: number): number; (b: string): number; }, Symbol(foo2, Decl(commentsOverloads.ts, 45, 31), Decl(commentsOverloads.ts, 47, 28)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 47, 9)) /** foo2 2*/ foo2(b: string): number; ->foo2 : { (a: number): number; (b: string): number; } ->b : string +>foo2 : { (a: number): number; (b: string): number; }, Symbol(foo2, Decl(commentsOverloads.ts, 45, 31), Decl(commentsOverloads.ts, 47, 28)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 49, 9)) foo3(a: number): number; ->foo3 : { (a: number): number; (b: string): number; } ->a : number +>foo3 : { (a: number): number; (b: string): number; }, Symbol(foo3, Decl(commentsOverloads.ts, 49, 28), Decl(commentsOverloads.ts, 50, 28)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 50, 9)) foo3(b: string): number; ->foo3 : { (a: number): number; (b: string): number; } ->b : string +>foo3 : { (a: number): number; (b: string): number; }, Symbol(foo3, Decl(commentsOverloads.ts, 49, 28), Decl(commentsOverloads.ts, 50, 28)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 51, 9)) /** foo4 1*/ foo4(a: number): number; ->foo4 : { (a: number): number; (b: string): number; (c: any): any; } ->a : number +>foo4 : { (a: number): number; (b: string): number; (c: any): any; }, Symbol(foo4, Decl(commentsOverloads.ts, 51, 28), Decl(commentsOverloads.ts, 53, 28), Decl(commentsOverloads.ts, 54, 28)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 53, 9)) foo4(b: string): number; ->foo4 : { (a: number): number; (b: string): number; (c: any): any; } ->b : string +>foo4 : { (a: number): number; (b: string): number; (c: any): any; }, Symbol(foo4, Decl(commentsOverloads.ts, 51, 28), Decl(commentsOverloads.ts, 53, 28), Decl(commentsOverloads.ts, 54, 28)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 54, 9)) /** foo4 any */ foo4(c: any): any; ->foo4 : { (a: number): number; (b: string): number; (c: any): any; } ->c : any +>foo4 : { (a: number): number; (b: string): number; (c: any): any; }, Symbol(foo4, Decl(commentsOverloads.ts, 51, 28), Decl(commentsOverloads.ts, 53, 28), Decl(commentsOverloads.ts, 54, 28)) +>c : any, Symbol(c, Decl(commentsOverloads.ts, 56, 9)) /// new 1 new (a: string); ->a : string +>a : string, Symbol(a, Decl(commentsOverloads.ts, 58, 9)) /** new 1*/ new (b: number); ->b : number +>b : number, Symbol(b, Decl(commentsOverloads.ts, 60, 9)) } var i1_i: i1; ->i1_i : i1 ->i1 : i1 +>i1_i : i1, Symbol(i1_i, Decl(commentsOverloads.ts, 62, 3)) +>i1 : i1, Symbol(i1, Decl(commentsOverloads.ts, 32, 7)) interface i2 { ->i2 : i2 +>i2 : i2, Symbol(i2, Decl(commentsOverloads.ts, 62, 13)) new (a: string); ->a : string +>a : string, Symbol(a, Decl(commentsOverloads.ts, 64, 9)) /** new 2*/ new (b: number); ->b : number +>b : number, Symbol(b, Decl(commentsOverloads.ts, 66, 9)) (a: number): number; ->a : number +>a : number, Symbol(a, Decl(commentsOverloads.ts, 67, 5)) /**this is signature 2*/ (b: string): number; ->b : string +>b : string, Symbol(b, Decl(commentsOverloads.ts, 69, 5)) } var i2_i: i2; ->i2_i : i2 ->i2 : i2 +>i2_i : i2, Symbol(i2_i, Decl(commentsOverloads.ts, 71, 3)) +>i2 : i2, Symbol(i2, Decl(commentsOverloads.ts, 62, 13)) interface i3 { ->i3 : i3 +>i3 : i3, Symbol(i3, Decl(commentsOverloads.ts, 71, 13)) /** new 1*/ new (a: string); ->a : string +>a : string, Symbol(a, Decl(commentsOverloads.ts, 74, 9)) /** new 2*/ new (b: number); ->b : number +>b : number, Symbol(b, Decl(commentsOverloads.ts, 76, 9)) /**this is signature 1*/ (a: number): number; ->a : number +>a : number, Symbol(a, Decl(commentsOverloads.ts, 78, 5)) (b: string): number; ->b : string +>b : string, Symbol(b, Decl(commentsOverloads.ts, 79, 5)) } var i3_i: i3; ->i3_i : i3 ->i3 : i3 +>i3_i : i3, Symbol(i3_i, Decl(commentsOverloads.ts, 81, 3)) +>i3 : i3, Symbol(i3, Decl(commentsOverloads.ts, 71, 13)) interface i4 { ->i4 : i4 +>i4 : i4, Symbol(i4, Decl(commentsOverloads.ts, 81, 13)) new (a: string); ->a : string +>a : string, Symbol(a, Decl(commentsOverloads.ts, 83, 9)) new (b: number); ->b : number +>b : number, Symbol(b, Decl(commentsOverloads.ts, 84, 9)) (a: number): number; ->a : number +>a : number, Symbol(a, Decl(commentsOverloads.ts, 85, 5)) (b: string): number; ->b : string +>b : string, Symbol(b, Decl(commentsOverloads.ts, 86, 5)) } class c { ->c : c +>c : c, Symbol(c, Decl(commentsOverloads.ts, 87, 1)) public prop1(a: number): number; ->prop1 : { (a: number): number; (b: string): number; } ->a : number +>prop1 : { (a: number): number; (b: string): number; }, Symbol(prop1, Decl(commentsOverloads.ts, 88, 9), Decl(commentsOverloads.ts, 89, 36), Decl(commentsOverloads.ts, 90, 36)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 89, 17)) public prop1(b: string): number; ->prop1 : { (a: number): number; (b: string): number; } ->b : string +>prop1 : { (a: number): number; (b: string): number; }, Symbol(prop1, Decl(commentsOverloads.ts, 88, 9), Decl(commentsOverloads.ts, 89, 36), Decl(commentsOverloads.ts, 90, 36)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 90, 17)) public prop1(aorb: any) { ->prop1 : { (a: number): number; (b: string): number; } ->aorb : any +>prop1 : { (a: number): number; (b: string): number; }, Symbol(prop1, Decl(commentsOverloads.ts, 88, 9), Decl(commentsOverloads.ts, 89, 36), Decl(commentsOverloads.ts, 90, 36)) +>aorb : any, Symbol(aorb, Decl(commentsOverloads.ts, 91, 17)) return 10; +>10 : number } /** prop2 1*/ public prop2(a: number): number; ->prop2 : { (a: number): number; (b: string): number; } ->a : number +>prop2 : { (a: number): number; (b: string): number; }, Symbol(prop2, Decl(commentsOverloads.ts, 93, 5), Decl(commentsOverloads.ts, 95, 36), Decl(commentsOverloads.ts, 96, 36)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 95, 17)) public prop2(b: string): number; ->prop2 : { (a: number): number; (b: string): number; } ->b : string +>prop2 : { (a: number): number; (b: string): number; }, Symbol(prop2, Decl(commentsOverloads.ts, 93, 5), Decl(commentsOverloads.ts, 95, 36), Decl(commentsOverloads.ts, 96, 36)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 96, 17)) public prop2(aorb: any) { ->prop2 : { (a: number): number; (b: string): number; } ->aorb : any +>prop2 : { (a: number): number; (b: string): number; }, Symbol(prop2, Decl(commentsOverloads.ts, 93, 5), Decl(commentsOverloads.ts, 95, 36), Decl(commentsOverloads.ts, 96, 36)) +>aorb : any, Symbol(aorb, Decl(commentsOverloads.ts, 97, 17)) return 10; +>10 : number } public prop3(a: number): number; ->prop3 : { (a: number): number; (b: string): number; } ->a : number +>prop3 : { (a: number): number; (b: string): number; }, Symbol(prop3, Decl(commentsOverloads.ts, 99, 5), Decl(commentsOverloads.ts, 100, 36), Decl(commentsOverloads.ts, 102, 36)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 100, 17)) /** prop3 2*/ public prop3(b: string): number; ->prop3 : { (a: number): number; (b: string): number; } ->b : string +>prop3 : { (a: number): number; (b: string): number; }, Symbol(prop3, Decl(commentsOverloads.ts, 99, 5), Decl(commentsOverloads.ts, 100, 36), Decl(commentsOverloads.ts, 102, 36)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 102, 17)) public prop3(aorb: any) { ->prop3 : { (a: number): number; (b: string): number; } ->aorb : any +>prop3 : { (a: number): number; (b: string): number; }, Symbol(prop3, Decl(commentsOverloads.ts, 99, 5), Decl(commentsOverloads.ts, 100, 36), Decl(commentsOverloads.ts, 102, 36)) +>aorb : any, Symbol(aorb, Decl(commentsOverloads.ts, 103, 17)) return 10; +>10 : number } /** prop4 1*/ public prop4(a: number): number; ->prop4 : { (a: number): number; (b: string): number; } ->a : number +>prop4 : { (a: number): number; (b: string): number; }, Symbol(prop4, Decl(commentsOverloads.ts, 105, 5), Decl(commentsOverloads.ts, 107, 36), Decl(commentsOverloads.ts, 109, 36)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 107, 17)) /** prop4 2*/ public prop4(b: string): number; ->prop4 : { (a: number): number; (b: string): number; } ->b : string +>prop4 : { (a: number): number; (b: string): number; }, Symbol(prop4, Decl(commentsOverloads.ts, 105, 5), Decl(commentsOverloads.ts, 107, 36), Decl(commentsOverloads.ts, 109, 36)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 109, 17)) public prop4(aorb: any) { ->prop4 : { (a: number): number; (b: string): number; } ->aorb : any +>prop4 : { (a: number): number; (b: string): number; }, Symbol(prop4, Decl(commentsOverloads.ts, 105, 5), Decl(commentsOverloads.ts, 107, 36), Decl(commentsOverloads.ts, 109, 36)) +>aorb : any, Symbol(aorb, Decl(commentsOverloads.ts, 110, 17)) return 10; +>10 : number } /** prop5 1*/ public prop5(a: number): number; ->prop5 : { (a: number): number; (b: string): number; } ->a : number +>prop5 : { (a: number): number; (b: string): number; }, Symbol(prop5, Decl(commentsOverloads.ts, 112, 5), Decl(commentsOverloads.ts, 114, 36), Decl(commentsOverloads.ts, 116, 36)) +>a : number, Symbol(a, Decl(commentsOverloads.ts, 114, 17)) /** prop5 2*/ public prop5(b: string): number; ->prop5 : { (a: number): number; (b: string): number; } ->b : string +>prop5 : { (a: number): number; (b: string): number; }, Symbol(prop5, Decl(commentsOverloads.ts, 112, 5), Decl(commentsOverloads.ts, 114, 36), Decl(commentsOverloads.ts, 116, 36)) +>b : string, Symbol(b, Decl(commentsOverloads.ts, 116, 17)) /** Prop5 implementaion*/ public prop5(aorb: any) { ->prop5 : { (a: number): number; (b: string): number; } ->aorb : any +>prop5 : { (a: number): number; (b: string): number; }, Symbol(prop5, Decl(commentsOverloads.ts, 112, 5), Decl(commentsOverloads.ts, 114, 36), Decl(commentsOverloads.ts, 116, 36)) +>aorb : any, Symbol(aorb, Decl(commentsOverloads.ts, 118, 17)) return 10; +>10 : number } } class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(commentsOverloads.ts, 121, 1)) constructor(a: number); ->a : number +>a : number, Symbol(a, Decl(commentsOverloads.ts, 123, 16)) constructor(b: string); ->b : string +>b : string, Symbol(b, Decl(commentsOverloads.ts, 124, 16)) constructor(aorb: any) { ->aorb : any +>aorb : any, Symbol(aorb, Decl(commentsOverloads.ts, 125, 16)) } } class c2 { ->c2 : c2 +>c2 : c2, Symbol(c2, Decl(commentsOverloads.ts, 127, 1)) /** c2 1*/ constructor(a: number); ->a : number +>a : number, Symbol(a, Decl(commentsOverloads.ts, 130, 16)) // c2 2 constructor(b: string); ->b : string +>b : string, Symbol(b, Decl(commentsOverloads.ts, 132, 16)) constructor(aorb: any) { ->aorb : any +>aorb : any, Symbol(aorb, Decl(commentsOverloads.ts, 133, 16)) } } class c3 { ->c3 : c3 +>c3 : c3, Symbol(c3, Decl(commentsOverloads.ts, 135, 1)) constructor(a: number); ->a : number +>a : number, Symbol(a, Decl(commentsOverloads.ts, 137, 16)) /** c3 2*/ constructor(b: string); ->b : string +>b : string, Symbol(b, Decl(commentsOverloads.ts, 139, 16)) constructor(aorb: any) { ->aorb : any +>aorb : any, Symbol(aorb, Decl(commentsOverloads.ts, 140, 16)) } } class c4 { ->c4 : c4 +>c4 : c4, Symbol(c4, Decl(commentsOverloads.ts, 142, 1)) /** c4 1*/ constructor(a: number); ->a : number +>a : number, Symbol(a, Decl(commentsOverloads.ts, 145, 16)) /** c4 2*/ constructor(b: string); ->b : string +>b : string, Symbol(b, Decl(commentsOverloads.ts, 147, 16)) /** c4 3 */ constructor(aorb: any) { ->aorb : any +>aorb : any, Symbol(aorb, Decl(commentsOverloads.ts, 149, 16)) } } class c5 { ->c5 : c5 +>c5 : c5, Symbol(c5, Decl(commentsOverloads.ts, 151, 1)) /** c5 1*/ constructor(a: number); ->a : number +>a : number, Symbol(a, Decl(commentsOverloads.ts, 154, 16)) /** c5 2*/ constructor(b: string); ->b : string +>b : string, Symbol(b, Decl(commentsOverloads.ts, 156, 16)) /** c5 implementation*/ constructor(aorb: any) { ->aorb : any +>aorb : any, Symbol(aorb, Decl(commentsOverloads.ts, 158, 16)) } } var c_i = new c(); ->c_i : c +>c_i : c, Symbol(c_i, Decl(commentsOverloads.ts, 161, 3)) >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(commentsOverloads.ts, 87, 1)) var c1_i_1 = new c1(10); ->c1_i_1 : c1 +>c1_i_1 : c1, Symbol(c1_i_1, Decl(commentsOverloads.ts, 163, 3)) >new c1(10) : c1 ->c1 : typeof c1 +>c1 : typeof c1, Symbol(c1, Decl(commentsOverloads.ts, 121, 1)) +>10 : number var c1_i_2 = new c1("hello"); ->c1_i_2 : c1 +>c1_i_2 : c1, Symbol(c1_i_2, Decl(commentsOverloads.ts, 164, 3)) >new c1("hello") : c1 ->c1 : typeof c1 +>c1 : typeof c1, Symbol(c1, Decl(commentsOverloads.ts, 121, 1)) +>"hello" : string var c2_i_1 = new c2(10); ->c2_i_1 : c2 +>c2_i_1 : c2, Symbol(c2_i_1, Decl(commentsOverloads.ts, 165, 3)) >new c2(10) : c2 ->c2 : typeof c2 +>c2 : typeof c2, Symbol(c2, Decl(commentsOverloads.ts, 127, 1)) +>10 : number var c2_i_2 = new c2("hello"); ->c2_i_2 : c2 +>c2_i_2 : c2, Symbol(c2_i_2, Decl(commentsOverloads.ts, 166, 3)) >new c2("hello") : c2 ->c2 : typeof c2 +>c2 : typeof c2, Symbol(c2, Decl(commentsOverloads.ts, 127, 1)) +>"hello" : string var c3_i_1 = new c3(10); ->c3_i_1 : c3 +>c3_i_1 : c3, Symbol(c3_i_1, Decl(commentsOverloads.ts, 167, 3)) >new c3(10) : c3 ->c3 : typeof c3 +>c3 : typeof c3, Symbol(c3, Decl(commentsOverloads.ts, 135, 1)) +>10 : number var c3_i_2 = new c3("hello"); ->c3_i_2 : c3 +>c3_i_2 : c3, Symbol(c3_i_2, Decl(commentsOverloads.ts, 168, 3)) >new c3("hello") : c3 ->c3 : typeof c3 +>c3 : typeof c3, Symbol(c3, Decl(commentsOverloads.ts, 135, 1)) +>"hello" : string var c4_i_1 = new c4(10); ->c4_i_1 : c4 +>c4_i_1 : c4, Symbol(c4_i_1, Decl(commentsOverloads.ts, 169, 3)) >new c4(10) : c4 ->c4 : typeof c4 +>c4 : typeof c4, Symbol(c4, Decl(commentsOverloads.ts, 142, 1)) +>10 : number var c4_i_2 = new c4("hello"); ->c4_i_2 : c4 +>c4_i_2 : c4, Symbol(c4_i_2, Decl(commentsOverloads.ts, 170, 3)) >new c4("hello") : c4 ->c4 : typeof c4 +>c4 : typeof c4, Symbol(c4, Decl(commentsOverloads.ts, 142, 1)) +>"hello" : string var c5_i_1 = new c5(10); ->c5_i_1 : c5 +>c5_i_1 : c5, Symbol(c5_i_1, Decl(commentsOverloads.ts, 171, 3)) >new c5(10) : c5 ->c5 : typeof c5 +>c5 : typeof c5, Symbol(c5, Decl(commentsOverloads.ts, 151, 1)) +>10 : number var c5_i_2 = new c5("hello"); ->c5_i_2 : c5 +>c5_i_2 : c5, Symbol(c5_i_2, Decl(commentsOverloads.ts, 172, 3)) >new c5("hello") : c5 ->c5 : typeof c5 +>c5 : typeof c5, Symbol(c5, Decl(commentsOverloads.ts, 151, 1)) +>"hello" : string diff --git a/tests/baselines/reference/commentsPropertySignature1.types b/tests/baselines/reference/commentsPropertySignature1.types index 857b0c98ee5..15cade46fd2 100644 --- a/tests/baselines/reference/commentsPropertySignature1.types +++ b/tests/baselines/reference/commentsPropertySignature1.types @@ -1,11 +1,12 @@ === tests/cases/compiler/commentsPropertySignature1.ts === var a = { ->a : { x: number; } +>a : { x: number; }, Symbol(a, Decl(commentsPropertySignature1.ts, 0, 3)) >{ /** own x*/ x: 0} : { x: number; } /** own x*/ x: 0 ->x : number +>x : number, Symbol(x, Decl(commentsPropertySignature1.ts, 0, 9)) +>0 : number }; diff --git a/tests/baselines/reference/commentsTypeParameters.types b/tests/baselines/reference/commentsTypeParameters.types index 573dabed7da..b75735120e0 100644 --- a/tests/baselines/reference/commentsTypeParameters.types +++ b/tests/baselines/reference/commentsTypeParameters.types @@ -1,47 +1,47 @@ === tests/cases/compiler/commentsTypeParameters.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(commentsTypeParameters.ts, 0, 0)) +>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 0, 8)) method(a: U) { ->method : (a: U) => void ->U : U ->T : T ->a : U ->U : U +>method : (a: U) => void, Symbol(method, Decl(commentsTypeParameters.ts, 0, 47)) +>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 1, 11)) +>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 0, 8)) +>a : U, Symbol(a, Decl(commentsTypeParameters.ts, 1, 66)) +>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 1, 11)) } static staticmethod(a: U) { ->staticmethod : (a: U) => void ->U : U ->a : U ->U : U +>staticmethod : (a: U) => void, Symbol(C.staticmethod, Decl(commentsTypeParameters.ts, 2, 5)) +>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 3, 24)) +>a : U, Symbol(a, Decl(commentsTypeParameters.ts, 3, 69)) +>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 3, 24)) } private privatemethod(a: U) { ->privatemethod : (a: U) => void ->U : U ->T : T ->a : U ->U : U +>privatemethod : (a: U) => void, Symbol(privatemethod, Decl(commentsTypeParameters.ts, 4, 5)) +>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 6, 26)) +>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 0, 8)) +>a : U, Symbol(a, Decl(commentsTypeParameters.ts, 6, 81)) +>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 6, 26)) } private static privatestaticmethod(a: U) { ->privatestaticmethod : (a: U) => void ->U : U ->a : U ->U : U +>privatestaticmethod : (a: U) => void, Symbol(C.privatestaticmethod, Decl(commentsTypeParameters.ts, 7, 5)) +>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 8, 39)) +>a : U, Symbol(a, Decl(commentsTypeParameters.ts, 8, 84)) +>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 8, 39)) } } function compare(a: T, b: T) { ->compare : (a: T, b: T) => boolean ->T : T ->a : T ->T : T ->b : T ->T : T +>compare : (a: T, b: T) => boolean, Symbol(compare, Decl(commentsTypeParameters.ts, 10, 1)) +>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 12, 17)) +>a : T, Symbol(a, Decl(commentsTypeParameters.ts, 12, 29)) +>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 12, 17)) +>b : T, Symbol(b, Decl(commentsTypeParameters.ts, 12, 34)) +>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 12, 17)) return a === b; >a === b : boolean ->a : T ->b : T +>a : T, Symbol(a, Decl(commentsTypeParameters.ts, 12, 29)) +>b : T, Symbol(b, Decl(commentsTypeParameters.ts, 12, 34)) } diff --git a/tests/baselines/reference/commentsVarDecl.types b/tests/baselines/reference/commentsVarDecl.types index 50db8984b1b..6ebb61d59b2 100644 --- a/tests/baselines/reference/commentsVarDecl.types +++ b/tests/baselines/reference/commentsVarDecl.types @@ -2,74 +2,82 @@ /** Variable comments*/ var myVariable = 10; // This trailing Comment1 ->myVariable : number +>myVariable : number, Symbol(myVariable, Decl(commentsVarDecl.ts, 2, 3)) +>10 : number /** This is another variable comment*/ var anotherVariable = 30; ->anotherVariable : number +>anotherVariable : number, Symbol(anotherVariable, Decl(commentsVarDecl.ts, 5, 3)) +>30 : number // shouldn't appear var aVar = ""; ->aVar : string +>aVar : string, Symbol(aVar, Decl(commentsVarDecl.ts, 8, 3)) +>"" : string /** this is multiline comment * All these variables are of number type */ var anotherAnotherVariable = 70; /* these are multiple trailing comments */ /* multiple trailing comments */ ->anotherAnotherVariable : number +>anotherAnotherVariable : number, Symbol(anotherAnotherVariable, Decl(commentsVarDecl.ts, 12, 3)) +>70 : number /** Triple slash multiline comment*/ /** another line in the comment*/ /** comment line 2*/ var x = 70; /* multiline trailing comment ->x : number +>x : number, Symbol(x, Decl(commentsVarDecl.ts, 17, 3)) +>70 : number this is multiline trailing comment */ /** Triple slash comment on the assignement shouldnt be in .d.ts file*/ x = myVariable; >x = myVariable : number ->x : number ->myVariable : number +>x : number, Symbol(x, Decl(commentsVarDecl.ts, 17, 3)) +>myVariable : number, Symbol(myVariable, Decl(commentsVarDecl.ts, 2, 3)) /** triple slash comment1*/ /** jsdocstyle comment - only this comment should be in .d.ts file*/ var n = 30; ->n : number +>n : number, Symbol(n, Decl(commentsVarDecl.ts, 24, 3)) +>30 : number /** var deckaration with comment on type as well*/ var y = /** value comment */ 20; ->y : number +>y : number, Symbol(y, Decl(commentsVarDecl.ts, 27, 3)) +>20 : number /// var deckaration with comment on type as well var yy = ->yy : number +>yy : number, Symbol(yy, Decl(commentsVarDecl.ts, 30, 3)) /// value comment 20; +>20 : number /** comment2 */ var z = /** lambda comment */ (x: number, y: number) => x + y; ->z : (x: number, y: number) => number +>z : (x: number, y: number) => number, Symbol(z, Decl(commentsVarDecl.ts, 35, 3)) >(x: number, y: number) => x + y : (x: number, y: number) => number ->x : number ->y : number +>x : number, Symbol(x, Decl(commentsVarDecl.ts, 35, 31)) +>y : number, Symbol(y, Decl(commentsVarDecl.ts, 35, 41)) >x + y : number ->x : number ->y : number +>x : number, Symbol(x, Decl(commentsVarDecl.ts, 35, 31)) +>y : number, Symbol(y, Decl(commentsVarDecl.ts, 35, 41)) var z2: /** type comment*/ (x: number) => string; ->z2 : (x: number) => string ->x : number +>z2 : (x: number) => string, Symbol(z2, Decl(commentsVarDecl.ts, 37, 3)) +>x : number, Symbol(x, Decl(commentsVarDecl.ts, 37, 28)) var x2 = z2; ->x2 : (x: number) => string ->z2 : (x: number) => string +>x2 : (x: number) => string, Symbol(x2, Decl(commentsVarDecl.ts, 39, 3)) +>z2 : (x: number) => string, Symbol(z2, Decl(commentsVarDecl.ts, 37, 3)) var n4: (x: number) => string; ->n4 : (x: number) => string ->x : number +>n4 : (x: number) => string, Symbol(n4, Decl(commentsVarDecl.ts, 41, 3)) +>x : number, Symbol(x, Decl(commentsVarDecl.ts, 41, 9)) n4 = z2; >n4 = z2 : (x: number) => string ->n4 : (x: number) => string ->z2 : (x: number) => string +>n4 : (x: number) => string, Symbol(n4, Decl(commentsVarDecl.ts, 41, 3)) +>z2 : (x: number) => string, Symbol(z2, Decl(commentsVarDecl.ts, 37, 3)) diff --git a/tests/baselines/reference/commentsVariableStatement1.types b/tests/baselines/reference/commentsVariableStatement1.types index 7717be4a2a1..16cf06d0ea2 100644 --- a/tests/baselines/reference/commentsVariableStatement1.types +++ b/tests/baselines/reference/commentsVariableStatement1.types @@ -2,5 +2,6 @@ /** Comment */ var v = 1; ->v : number +>v : number, Symbol(v, Decl(commentsVariableStatement1.ts, 2, 3)) +>1 : number diff --git a/tests/baselines/reference/commentsdoNotEmitComments.types b/tests/baselines/reference/commentsdoNotEmitComments.types index bbe3a685ca1..f26075214a3 100644 --- a/tests/baselines/reference/commentsdoNotEmitComments.types +++ b/tests/baselines/reference/commentsdoNotEmitComments.types @@ -2,29 +2,31 @@ /** Variable comments*/ var myVariable = 10; ->myVariable : number +>myVariable : number, Symbol(myVariable, Decl(commentsdoNotEmitComments.ts, 2, 3)) +>10 : number /** function comments*/ function foo(/** parameter comment*/p: number) { ->foo : (p: number) => void ->p : number +>foo : (p: number) => void, Symbol(foo, Decl(commentsdoNotEmitComments.ts, 2, 20)) +>p : number, Symbol(p, Decl(commentsdoNotEmitComments.ts, 5, 13)) } /** variable with function type comment*/ var fooVar: () => void; ->fooVar : () => void +>fooVar : () => void, Symbol(fooVar, Decl(commentsdoNotEmitComments.ts, 9, 3)) foo(50); >foo(50) : void ->foo : (p: number) => void +>foo : (p: number) => void, Symbol(foo, Decl(commentsdoNotEmitComments.ts, 2, 20)) +>50 : number fooVar(); >fooVar() : void ->fooVar : () => void +>fooVar : () => void, Symbol(fooVar, Decl(commentsdoNotEmitComments.ts, 9, 3)) /**class comment*/ class c { ->c : c +>c : c, Symbol(c, Decl(commentsdoNotEmitComments.ts, 11, 9)) /** constructor comment*/ constructor() { @@ -32,137 +34,138 @@ class c { /** property comment */ public b = 10; ->b : number +>b : number, Symbol(b, Decl(commentsdoNotEmitComments.ts, 17, 5)) +>10 : number /** function comment */ public myFoo() { ->myFoo : () => number +>myFoo : () => number, Symbol(myFoo, Decl(commentsdoNotEmitComments.ts, 20, 18)) return this.b; ->this.b : number ->this : c ->b : number +>this.b : number, Symbol(b, Decl(commentsdoNotEmitComments.ts, 17, 5)) +>this : c, Symbol(c, Decl(commentsdoNotEmitComments.ts, 11, 9)) +>b : number, Symbol(b, Decl(commentsdoNotEmitComments.ts, 17, 5)) } /** getter comment*/ public get prop1() { ->prop1 : number +>prop1 : number, Symbol(prop1, Decl(commentsdoNotEmitComments.ts, 25, 5), Decl(commentsdoNotEmitComments.ts, 30, 5)) return this.b; ->this.b : number ->this : c ->b : number +>this.b : number, Symbol(b, Decl(commentsdoNotEmitComments.ts, 17, 5)) +>this : c, Symbol(c, Decl(commentsdoNotEmitComments.ts, 11, 9)) +>b : number, Symbol(b, Decl(commentsdoNotEmitComments.ts, 17, 5)) } /** setter comment*/ public set prop1(val: number) { ->prop1 : number ->val : number +>prop1 : number, Symbol(prop1, Decl(commentsdoNotEmitComments.ts, 25, 5), Decl(commentsdoNotEmitComments.ts, 30, 5)) +>val : number, Symbol(val, Decl(commentsdoNotEmitComments.ts, 33, 21)) this.b = val; >this.b = val : number ->this.b : number ->this : c ->b : number ->val : number +>this.b : number, Symbol(b, Decl(commentsdoNotEmitComments.ts, 17, 5)) +>this : c, Symbol(c, Decl(commentsdoNotEmitComments.ts, 11, 9)) +>b : number, Symbol(b, Decl(commentsdoNotEmitComments.ts, 17, 5)) +>val : number, Symbol(val, Decl(commentsdoNotEmitComments.ts, 33, 21)) } /** overload signature1*/ public foo1(a: number): string; ->foo1 : { (a: number): string; (b: string): string; } ->a : number +>foo1 : { (a: number): string; (b: string): string; }, Symbol(foo1, Decl(commentsdoNotEmitComments.ts, 35, 5), Decl(commentsdoNotEmitComments.ts, 38, 35), Decl(commentsdoNotEmitComments.ts, 40, 35)) +>a : number, Symbol(a, Decl(commentsdoNotEmitComments.ts, 38, 16)) /** Overload signature 2*/ public foo1(b: string): string; ->foo1 : { (a: number): string; (b: string): string; } ->b : string +>foo1 : { (a: number): string; (b: string): string; }, Symbol(foo1, Decl(commentsdoNotEmitComments.ts, 35, 5), Decl(commentsdoNotEmitComments.ts, 38, 35), Decl(commentsdoNotEmitComments.ts, 40, 35)) +>b : string, Symbol(b, Decl(commentsdoNotEmitComments.ts, 40, 16)) /** overload implementation signature*/ public foo1(aOrb) { ->foo1 : { (a: number): string; (b: string): string; } ->aOrb : any +>foo1 : { (a: number): string; (b: string): string; }, Symbol(foo1, Decl(commentsdoNotEmitComments.ts, 35, 5), Decl(commentsdoNotEmitComments.ts, 38, 35), Decl(commentsdoNotEmitComments.ts, 40, 35)) +>aOrb : any, Symbol(aOrb, Decl(commentsdoNotEmitComments.ts, 42, 16)) return aOrb.toString(); >aOrb.toString() : any >aOrb.toString : any ->aOrb : any +>aOrb : any, Symbol(aOrb, Decl(commentsdoNotEmitComments.ts, 42, 16)) >toString : any } } /**instance comment*/ var i = new c(); ->i : c +>i : c, Symbol(i, Decl(commentsdoNotEmitComments.ts, 48, 3)) >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(commentsdoNotEmitComments.ts, 11, 9)) /** interface comments*/ interface i1 { ->i1 : i1 +>i1 : i1, Symbol(i1, Decl(commentsdoNotEmitComments.ts, 48, 16)) /** caller comments*/ (a: number): number; ->a : number +>a : number, Symbol(a, Decl(commentsdoNotEmitComments.ts, 53, 5)) /** new comments*/ new (b: string); ->b : string +>b : string, Symbol(b, Decl(commentsdoNotEmitComments.ts, 56, 9)) /**indexer property*/ [a: number]: string; ->a : number +>a : number, Symbol(a, Decl(commentsdoNotEmitComments.ts, 59, 5)) /** function property;*/ myFoo(/*param prop*/a: number): string; ->myFoo : (a: number) => string ->a : number +>myFoo : (a: number) => string, Symbol(myFoo, Decl(commentsdoNotEmitComments.ts, 59, 24)) +>a : number, Symbol(a, Decl(commentsdoNotEmitComments.ts, 62, 10)) /** prop*/ prop: string; ->prop : string +>prop : string, Symbol(prop, Decl(commentsdoNotEmitComments.ts, 62, 43)) } /**interface instance comments*/ var i1_i: i1; ->i1_i : i1 ->i1 : i1 +>i1_i : i1, Symbol(i1_i, Decl(commentsdoNotEmitComments.ts, 69, 3)) +>i1 : i1, Symbol(i1, Decl(commentsdoNotEmitComments.ts, 48, 16)) /** this is module comment*/ module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(commentsdoNotEmitComments.ts, 69, 13)) /** class b */ export class b { ->b : b +>b : b, Symbol(b, Decl(commentsdoNotEmitComments.ts, 72, 11)) constructor(public x: number) { ->x : number +>x : number, Symbol(x, Decl(commentsdoNotEmitComments.ts, 75, 20)) } } /// module m2 export module m2 { ->m2 : unknown +>m2 : any, Symbol(m2, Decl(commentsdoNotEmitComments.ts, 78, 5)) } } /// this is x declare var x; ->x : any +>x : any, Symbol(x, Decl(commentsdoNotEmitComments.ts, 86, 11)) /** const enum member value comment (generated by TS) */ const enum color { red, green, blue } ->color : color ->red : color ->green : color ->blue : color +>color : color, Symbol(color, Decl(commentsdoNotEmitComments.ts, 86, 14)) +>red : color, Symbol(color.red, Decl(commentsdoNotEmitComments.ts, 90, 18)) +>green : color, Symbol(color.green, Decl(commentsdoNotEmitComments.ts, 90, 23)) +>blue : color, Symbol(color.blue, Decl(commentsdoNotEmitComments.ts, 90, 30)) var shade: color = color.green; ->shade : color ->color : color ->color.green : color ->color : typeof color ->green : color +>shade : color, Symbol(shade, Decl(commentsdoNotEmitComments.ts, 91, 3)) +>color : color, Symbol(color, Decl(commentsdoNotEmitComments.ts, 86, 14)) +>color.green : color, Symbol(color.green, Decl(commentsdoNotEmitComments.ts, 90, 23)) +>color : typeof color, Symbol(color, Decl(commentsdoNotEmitComments.ts, 86, 14)) +>green : color, Symbol(color.green, Decl(commentsdoNotEmitComments.ts, 90, 23)) diff --git a/tests/baselines/reference/commentsemitComments.types b/tests/baselines/reference/commentsemitComments.types index b87ef5ad6fd..63bce467872 100644 --- a/tests/baselines/reference/commentsemitComments.types +++ b/tests/baselines/reference/commentsemitComments.types @@ -2,29 +2,31 @@ /** Variable comments*/ var myVariable = 10; ->myVariable : number +>myVariable : number, Symbol(myVariable, Decl(commentsemitComments.ts, 2, 3)) +>10 : number /** function comments*/ function foo(/** parameter comment*/p: number) { ->foo : (p: number) => void ->p : number +>foo : (p: number) => void, Symbol(foo, Decl(commentsemitComments.ts, 2, 20)) +>p : number, Symbol(p, Decl(commentsemitComments.ts, 5, 13)) } /** variable with function type comment*/ var fooVar: () => void; ->fooVar : () => void +>fooVar : () => void, Symbol(fooVar, Decl(commentsemitComments.ts, 9, 3)) foo(50); >foo(50) : void ->foo : (p: number) => void +>foo : (p: number) => void, Symbol(foo, Decl(commentsemitComments.ts, 2, 20)) +>50 : number fooVar(); >fooVar() : void ->fooVar : () => void +>fooVar : () => void, Symbol(fooVar, Decl(commentsemitComments.ts, 9, 3)) /**class comment*/ class c { ->c : c +>c : c, Symbol(c, Decl(commentsemitComments.ts, 11, 9)) /** constructor comment*/ constructor() { @@ -32,122 +34,123 @@ class c { /** property comment */ public b = 10; ->b : number +>b : number, Symbol(b, Decl(commentsemitComments.ts, 17, 5)) +>10 : number /** function comment */ public myFoo() { ->myFoo : () => number +>myFoo : () => number, Symbol(myFoo, Decl(commentsemitComments.ts, 20, 18)) return this.b; ->this.b : number ->this : c ->b : number +>this.b : number, Symbol(b, Decl(commentsemitComments.ts, 17, 5)) +>this : c, Symbol(c, Decl(commentsemitComments.ts, 11, 9)) +>b : number, Symbol(b, Decl(commentsemitComments.ts, 17, 5)) } /** getter comment*/ public get prop1() { ->prop1 : number +>prop1 : number, Symbol(prop1, Decl(commentsemitComments.ts, 25, 5), Decl(commentsemitComments.ts, 30, 5)) return this.b; ->this.b : number ->this : c ->b : number +>this.b : number, Symbol(b, Decl(commentsemitComments.ts, 17, 5)) +>this : c, Symbol(c, Decl(commentsemitComments.ts, 11, 9)) +>b : number, Symbol(b, Decl(commentsemitComments.ts, 17, 5)) } /** setter comment*/ public set prop1(val: number) { ->prop1 : number ->val : number +>prop1 : number, Symbol(prop1, Decl(commentsemitComments.ts, 25, 5), Decl(commentsemitComments.ts, 30, 5)) +>val : number, Symbol(val, Decl(commentsemitComments.ts, 33, 21)) this.b = val; >this.b = val : number ->this.b : number ->this : c ->b : number ->val : number +>this.b : number, Symbol(b, Decl(commentsemitComments.ts, 17, 5)) +>this : c, Symbol(c, Decl(commentsemitComments.ts, 11, 9)) +>b : number, Symbol(b, Decl(commentsemitComments.ts, 17, 5)) +>val : number, Symbol(val, Decl(commentsemitComments.ts, 33, 21)) } /** overload signature1*/ public foo1(a: number): string; ->foo1 : { (a: number): string; (b: string): string; } ->a : number +>foo1 : { (a: number): string; (b: string): string; }, Symbol(foo1, Decl(commentsemitComments.ts, 35, 5), Decl(commentsemitComments.ts, 38, 35), Decl(commentsemitComments.ts, 40, 35)) +>a : number, Symbol(a, Decl(commentsemitComments.ts, 38, 16)) /** Overload signature 2*/ public foo1(b: string): string; ->foo1 : { (a: number): string; (b: string): string; } ->b : string +>foo1 : { (a: number): string; (b: string): string; }, Symbol(foo1, Decl(commentsemitComments.ts, 35, 5), Decl(commentsemitComments.ts, 38, 35), Decl(commentsemitComments.ts, 40, 35)) +>b : string, Symbol(b, Decl(commentsemitComments.ts, 40, 16)) /** overload implementation signature*/ public foo1(aOrb) { ->foo1 : { (a: number): string; (b: string): string; } ->aOrb : any +>foo1 : { (a: number): string; (b: string): string; }, Symbol(foo1, Decl(commentsemitComments.ts, 35, 5), Decl(commentsemitComments.ts, 38, 35), Decl(commentsemitComments.ts, 40, 35)) +>aOrb : any, Symbol(aOrb, Decl(commentsemitComments.ts, 42, 16)) return aOrb.toString(); >aOrb.toString() : any >aOrb.toString : any ->aOrb : any +>aOrb : any, Symbol(aOrb, Decl(commentsemitComments.ts, 42, 16)) >toString : any } } /**instance comment*/ var i = new c(); ->i : c +>i : c, Symbol(i, Decl(commentsemitComments.ts, 48, 3)) >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(commentsemitComments.ts, 11, 9)) /** interface comments*/ interface i1 { ->i1 : i1 +>i1 : i1, Symbol(i1, Decl(commentsemitComments.ts, 48, 16)) /** caller comments*/ (a: number): number; ->a : number +>a : number, Symbol(a, Decl(commentsemitComments.ts, 53, 5)) /** new comments*/ new (b: string); ->b : string +>b : string, Symbol(b, Decl(commentsemitComments.ts, 56, 9)) /**indexer property*/ [a: number]: string; ->a : number +>a : number, Symbol(a, Decl(commentsemitComments.ts, 59, 5)) /** function property;*/ myFoo(/*param prop*/a: number): string; ->myFoo : (a: number) => string ->a : number +>myFoo : (a: number) => string, Symbol(myFoo, Decl(commentsemitComments.ts, 59, 24)) +>a : number, Symbol(a, Decl(commentsemitComments.ts, 62, 10)) /** prop*/ prop: string; ->prop : string +>prop : string, Symbol(prop, Decl(commentsemitComments.ts, 62, 43)) } /**interface instance comments*/ var i1_i: i1; ->i1_i : i1 ->i1 : i1 +>i1_i : i1, Symbol(i1_i, Decl(commentsemitComments.ts, 69, 3)) +>i1 : i1, Symbol(i1, Decl(commentsemitComments.ts, 48, 16)) /** this is module comment*/ module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(commentsemitComments.ts, 69, 13)) /** class b */ export class b { ->b : b +>b : b, Symbol(b, Decl(commentsemitComments.ts, 72, 11)) constructor(public x: number) { ->x : number +>x : number, Symbol(x, Decl(commentsemitComments.ts, 75, 20)) } } /// module m2 export module m2 { ->m2 : unknown +>m2 : any, Symbol(m2, Decl(commentsemitComments.ts, 78, 5)) } } /// this is x declare var x; ->x : any +>x : any, Symbol(x, Decl(commentsemitComments.ts, 86, 11)) diff --git a/tests/baselines/reference/commonJSImportAsPrimaryExpression.types b/tests/baselines/reference/commonJSImportAsPrimaryExpression.types index 0d2e96afaa2..cff02e46b6b 100644 --- a/tests/baselines/reference/commonJSImportAsPrimaryExpression.types +++ b/tests/baselines/reference/commonJSImportAsPrimaryExpression.types @@ -1,25 +1,27 @@ === tests/cases/conformance/externalModules/foo_1.ts === import foo = require("./foo_0"); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) if(foo.C1.s1){ ->foo.C1.s1 : boolean ->foo.C1 : typeof foo.C1 ->foo : typeof foo ->C1 : typeof foo.C1 ->s1 : boolean +>foo.C1.s1 : boolean, Symbol(foo.C1.s1, Decl(foo_0.ts, 1, 9)) +>foo.C1 : typeof foo.C1, Symbol(foo.C1, Decl(foo_0.ts, 0, 0)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>C1 : typeof foo.C1, Symbol(foo.C1, Decl(foo_0.ts, 0, 0)) +>s1 : boolean, Symbol(foo.C1.s1, Decl(foo_0.ts, 1, 9)) // Should cause runtime import } === tests/cases/conformance/externalModules/foo_0.ts === export class C1 { ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(foo_0.ts, 0, 0)) m1 = 42; ->m1 : number +>m1 : number, Symbol(m1, Decl(foo_0.ts, 0, 17)) +>42 : number static s1 = true; ->s1 : boolean +>s1 : boolean, Symbol(C1.s1, Decl(foo_0.ts, 1, 9)) +>true : boolean } diff --git a/tests/baselines/reference/commonJSImportNotAsPrimaryExpression.types b/tests/baselines/reference/commonJSImportNotAsPrimaryExpression.types index bde0cb02b1e..61a55d73b0c 100644 --- a/tests/baselines/reference/commonJSImportNotAsPrimaryExpression.types +++ b/tests/baselines/reference/commonJSImportNotAsPrimaryExpression.types @@ -1,82 +1,88 @@ === tests/cases/conformance/externalModules/foo_1.ts === import foo = require("./foo_0"); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) // None of the below should cause a runtime dependency on foo_0 import f = foo.M1; ->f : unknown ->foo : typeof foo ->M1 : unknown +>f : any, Symbol(f, Decl(foo_1.ts, 0, 32)) +>foo : typeof foo, Symbol(foo, Decl(foo_0.ts, 0, 0)) +>M1 : any, Symbol(foo.M1, Decl(foo_0.ts, 8, 1)) var i: f.I2; ->i : f.I2 ->f : unknown ->I2 : f.I2 +>i : f.I2, Symbol(i, Decl(foo_1.ts, 3, 3)) +>f : any, Symbol(f, Decl(foo_1.ts, 0, 32)) +>I2 : f.I2, Symbol(f.I2, Decl(foo_0.ts, 10, 18)) var x: foo.C1 = <{m1: number}>{}; ->x : foo.C1 ->foo : unknown ->C1 : foo.C1 +>x : foo.C1, Symbol(x, Decl(foo_1.ts, 4, 3)) +>foo : any, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>C1 : foo.C1, Symbol(foo.C1, Decl(foo_0.ts, 0, 0)) ><{m1: number}>{} : { m1: number; } ->m1 : number +>m1 : number, Symbol(m1, Decl(foo_1.ts, 4, 18)) >{} : {} var y: typeof foo.C1.s1 = false; ->y : boolean ->foo : typeof foo ->C1 : typeof foo.C1 ->s1 : boolean +>y : boolean, Symbol(y, Decl(foo_1.ts, 5, 3)) +>foo.C1.s1 : boolean, Symbol(foo.C1.s1, Decl(foo_0.ts, 1, 9)) +>foo.C1 : typeof foo.C1, Symbol(foo.C1, Decl(foo_0.ts, 0, 0)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>C1 : typeof foo.C1, Symbol(foo.C1, Decl(foo_0.ts, 0, 0)) +>s1 : boolean, Symbol(foo.C1.s1, Decl(foo_0.ts, 1, 9)) +>false : boolean var z: foo.M1.I2; ->z : f.I2 ->foo : unknown ->M1 : unknown ->I2 : f.I2 +>z : f.I2, Symbol(z, Decl(foo_1.ts, 6, 3)) +>foo : any, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>M1 : any, Symbol(foo.M1, Decl(foo_0.ts, 8, 1)) +>I2 : f.I2, Symbol(f.I2, Decl(foo_0.ts, 10, 18)) var e: number = 0; ->e : number +>e : number, Symbol(e, Decl(foo_1.ts, 7, 3)) >0 : foo.E1 ->foo : unknown ->E1 : foo.E1 +>foo : any, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>E1 : foo.E1, Symbol(foo.E1, Decl(foo_0.ts, 14, 1)) +>0 : number === tests/cases/conformance/externalModules/foo_0.ts === export class C1 { ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(foo_0.ts, 0, 0)) m1 = 42; ->m1 : number +>m1 : number, Symbol(m1, Decl(foo_0.ts, 0, 17)) +>42 : number static s1 = true; ->s1 : boolean +>s1 : boolean, Symbol(C1.s1, Decl(foo_0.ts, 1, 9)) +>true : boolean } export interface I1 { ->I1 : I1 +>I1 : I1, Symbol(I1, Decl(foo_0.ts, 3, 1)) name: string; ->name : string +>name : string, Symbol(name, Decl(foo_0.ts, 5, 21)) age: number; ->age : number +>age : number, Symbol(age, Decl(foo_0.ts, 6, 14)) } export module M1 { ->M1 : unknown +>M1 : any, Symbol(M1, Decl(foo_0.ts, 8, 1)) export interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(foo_0.ts, 10, 18)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(foo_0.ts, 11, 22)) } } export enum E1 { ->E1 : E1 +>E1 : E1, Symbol(E1, Decl(foo_0.ts, 14, 1)) A,B,C ->A : E1 ->B : E1 ->C : E1 +>A : E1, Symbol(E1.A, Decl(foo_0.ts, 16, 16)) +>B : E1, Symbol(E1.B, Decl(foo_0.ts, 17, 3)) +>C : E1, Symbol(E1.C, Decl(foo_0.ts, 17, 5)) } diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.types b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.types index 02316f94e54..ff7310cc7bf 100644 --- a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.types +++ b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.types @@ -1,847 +1,850 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalObjects.ts === class A1 { ->A1 : A1 +>A1 : A1, Symbol(A1, Decl(comparisonOperatorWithIdenticalObjects.ts, 0, 0)) public a: string; ->a : string +>a : string, Symbol(a, Decl(comparisonOperatorWithIdenticalObjects.ts, 0, 10)) public b: number; ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithIdenticalObjects.ts, 1, 21)) public c: boolean; ->c : boolean +>c : boolean, Symbol(c, Decl(comparisonOperatorWithIdenticalObjects.ts, 2, 21)) public d: any; ->d : any +>d : any, Symbol(d, Decl(comparisonOperatorWithIdenticalObjects.ts, 3, 22)) public e: Object; ->e : Object ->Object : Object +>e : Object, Symbol(e, Decl(comparisonOperatorWithIdenticalObjects.ts, 4, 18)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) public fn(a: string): string { ->fn : (a: string) => string ->a : string +>fn : (a: string) => string, Symbol(fn, Decl(comparisonOperatorWithIdenticalObjects.ts, 5, 21)) +>a : string, Symbol(a, Decl(comparisonOperatorWithIdenticalObjects.ts, 6, 14)) return null; +>null : null } } class B1 { ->B1 : B1 +>B1 : B1, Symbol(B1, Decl(comparisonOperatorWithIdenticalObjects.ts, 9, 1)) public a: string; ->a : string +>a : string, Symbol(a, Decl(comparisonOperatorWithIdenticalObjects.ts, 10, 10)) public b: number; ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithIdenticalObjects.ts, 11, 21)) public c: boolean; ->c : boolean +>c : boolean, Symbol(c, Decl(comparisonOperatorWithIdenticalObjects.ts, 12, 21)) public d: any; ->d : any +>d : any, Symbol(d, Decl(comparisonOperatorWithIdenticalObjects.ts, 13, 22)) public e: Object; ->e : Object ->Object : Object +>e : Object, Symbol(e, Decl(comparisonOperatorWithIdenticalObjects.ts, 14, 18)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) public fn(b: string): string { ->fn : (b: string) => string ->b : string +>fn : (b: string) => string, Symbol(fn, Decl(comparisonOperatorWithIdenticalObjects.ts, 15, 21)) +>b : string, Symbol(b, Decl(comparisonOperatorWithIdenticalObjects.ts, 16, 14)) return null; +>null : null } } class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithIdenticalObjects.ts, 19, 1)) private a: string; ->a : string +>a : string, Symbol(a, Decl(comparisonOperatorWithIdenticalObjects.ts, 21, 12)) private fn(b: string): string { ->fn : (b: string) => string ->b : string +>fn : (b: string) => string, Symbol(fn, Decl(comparisonOperatorWithIdenticalObjects.ts, 22, 22)) +>b : string, Symbol(b, Decl(comparisonOperatorWithIdenticalObjects.ts, 23, 15)) return null; +>null : null } } class A2 extends Base { } ->A2 : A2 ->Base : Base +>A2 : A2, Symbol(A2, Decl(comparisonOperatorWithIdenticalObjects.ts, 26, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithIdenticalObjects.ts, 19, 1)) class B2 extends Base { } ->B2 : B2 ->Base : Base +>B2 : B2, Symbol(B2, Decl(comparisonOperatorWithIdenticalObjects.ts, 27, 25)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithIdenticalObjects.ts, 19, 1)) interface A3 { f(a: number): string; } ->A3 : A3 ->f : (a: number) => string ->a : number +>A3 : A3, Symbol(A3, Decl(comparisonOperatorWithIdenticalObjects.ts, 28, 25)) +>f : (a: number) => string, Symbol(f, Decl(comparisonOperatorWithIdenticalObjects.ts, 30, 14)) +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalObjects.ts, 30, 17)) interface B3 { f(a: number): string; } ->B3 : B3 ->f : (a: number) => string ->a : number +>B3 : B3, Symbol(B3, Decl(comparisonOperatorWithIdenticalObjects.ts, 30, 38)) +>f : (a: number) => string, Symbol(f, Decl(comparisonOperatorWithIdenticalObjects.ts, 31, 14)) +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalObjects.ts, 31, 17)) interface A4 { new (a: string): A1; } ->A4 : A4 ->a : string ->A1 : A1 +>A4 : A4, Symbol(A4, Decl(comparisonOperatorWithIdenticalObjects.ts, 31, 38)) +>a : string, Symbol(a, Decl(comparisonOperatorWithIdenticalObjects.ts, 33, 20)) +>A1 : A1, Symbol(A1, Decl(comparisonOperatorWithIdenticalObjects.ts, 0, 0)) interface B4 { new (a: string): B1; } ->B4 : B4 ->a : string ->B1 : B1 +>B4 : B4, Symbol(B4, Decl(comparisonOperatorWithIdenticalObjects.ts, 33, 37)) +>a : string, Symbol(a, Decl(comparisonOperatorWithIdenticalObjects.ts, 34, 20)) +>B1 : B1, Symbol(B1, Decl(comparisonOperatorWithIdenticalObjects.ts, 9, 1)) interface A5 { [x: number]: number; } ->A5 : A5 ->x : number +>A5 : A5, Symbol(A5, Decl(comparisonOperatorWithIdenticalObjects.ts, 34, 37)) +>x : number, Symbol(x, Decl(comparisonOperatorWithIdenticalObjects.ts, 36, 16)) interface B5 { [x: number]: number; } ->B5 : B5 ->x : number +>B5 : B5, Symbol(B5, Decl(comparisonOperatorWithIdenticalObjects.ts, 36, 37)) +>x : number, Symbol(x, Decl(comparisonOperatorWithIdenticalObjects.ts, 37, 16)) interface A6 { [x: string]: string; } ->A6 : A6 ->x : string +>A6 : A6, Symbol(A6, Decl(comparisonOperatorWithIdenticalObjects.ts, 37, 37)) +>x : string, Symbol(x, Decl(comparisonOperatorWithIdenticalObjects.ts, 39, 16)) interface B6 { [x: string]: string; } ->B6 : B6 ->x : string +>B6 : B6, Symbol(B6, Decl(comparisonOperatorWithIdenticalObjects.ts, 39, 37)) +>x : string, Symbol(x, Decl(comparisonOperatorWithIdenticalObjects.ts, 40, 16)) var a1: A1; ->a1 : A1 ->A1 : A1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) +>A1 : A1, Symbol(A1, Decl(comparisonOperatorWithIdenticalObjects.ts, 0, 0)) var a2: A2; ->a2 : A2 ->A2 : A2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) +>A2 : A2, Symbol(A2, Decl(comparisonOperatorWithIdenticalObjects.ts, 26, 1)) var a3: A3; ->a3 : A3 ->A3 : A3 +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) +>A3 : A3, Symbol(A3, Decl(comparisonOperatorWithIdenticalObjects.ts, 28, 25)) var a4: A4; ->a4 : A4 ->A4 : A4 +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) +>A4 : A4, Symbol(A4, Decl(comparisonOperatorWithIdenticalObjects.ts, 31, 38)) var a5: A5; ->a5 : A5 ->A5 : A5 +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) +>A5 : A5, Symbol(A5, Decl(comparisonOperatorWithIdenticalObjects.ts, 34, 37)) var a6: A6; ->a6 : A6 ->A6 : A6 +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) +>A6 : A6, Symbol(A6, Decl(comparisonOperatorWithIdenticalObjects.ts, 37, 37)) var b1: B1; ->b1 : B1 ->B1 : B1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) +>B1 : B1, Symbol(B1, Decl(comparisonOperatorWithIdenticalObjects.ts, 9, 1)) var b2: B2; ->b2 : B2 ->B2 : B2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) +>B2 : B2, Symbol(B2, Decl(comparisonOperatorWithIdenticalObjects.ts, 27, 25)) var b3: B3; ->b3 : B3 ->B3 : B3 +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) +>B3 : B3, Symbol(B3, Decl(comparisonOperatorWithIdenticalObjects.ts, 30, 38)) var b4: B4; ->b4 : B4 ->B4 : B4 +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) +>B4 : B4, Symbol(B4, Decl(comparisonOperatorWithIdenticalObjects.ts, 33, 37)) var b5: B5; ->b5 : B5 ->B5 : B5 +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) +>B5 : B5, Symbol(B5, Decl(comparisonOperatorWithIdenticalObjects.ts, 36, 37)) var b6: B6; ->b6 : B6 ->B6 : B6 +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) +>B6 : B6, Symbol(B6, Decl(comparisonOperatorWithIdenticalObjects.ts, 39, 37)) var base1: Base; ->base1 : Base ->Base : Base +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithIdenticalObjects.ts, 19, 1)) var base2: Base; ->base2 : Base ->Base : Base +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithIdenticalObjects.ts, 19, 1)) // operator < var r1a1 = a1 < b1; ->r1a1 : boolean +>r1a1 : boolean, Symbol(r1a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 60, 3)) >a1 < b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) var r1a2 = base1 < base2; ->r1a2 : boolean +>r1a2 : boolean, Symbol(r1a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 61, 3)) >base1 < base2 : boolean ->base1 : Base ->base2 : Base +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) var r1a3 = a2 < b2; ->r1a3 : boolean +>r1a3 : boolean, Symbol(r1a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 62, 3)) >a2 < b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) var r1a4 = a3 < b3; ->r1a4 : boolean +>r1a4 : boolean, Symbol(r1a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 63, 3)) >a3 < b3 : boolean ->a3 : A3 ->b3 : B3 +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) var r1a5 = a4 < b4; ->r1a5 : boolean +>r1a5 : boolean, Symbol(r1a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 64, 3)) >a4 < b4 : boolean ->a4 : A4 ->b4 : B4 +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) var r1a6 = a5 < b5; ->r1a6 : boolean +>r1a6 : boolean, Symbol(r1a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 65, 3)) >a5 < b5 : boolean ->a5 : A5 ->b5 : B5 +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) var r1a7 = a6 < b6; ->r1a7 : boolean +>r1a7 : boolean, Symbol(r1a7, Decl(comparisonOperatorWithIdenticalObjects.ts, 66, 3)) >a6 < b6 : boolean ->a6 : A6 ->b6 : B6 +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) var r1b1 = b1 < a1; ->r1b1 : boolean +>r1b1 : boolean, Symbol(r1b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 68, 3)) >b1 < a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) var r1b2 = base2 < base1; ->r1b2 : boolean +>r1b2 : boolean, Symbol(r1b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 69, 3)) >base2 < base1 : boolean ->base2 : Base ->base1 : Base +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) var r1b3 = b2 < a2; ->r1b3 : boolean +>r1b3 : boolean, Symbol(r1b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 70, 3)) >b2 < a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) var r1b4 = b3 < a3; ->r1b4 : boolean +>r1b4 : boolean, Symbol(r1b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 71, 3)) >b3 < a3 : boolean ->b3 : B3 ->a3 : A3 +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) var r1b5 = b4 < a4; ->r1b5 : boolean +>r1b5 : boolean, Symbol(r1b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 72, 3)) >b4 < a4 : boolean ->b4 : B4 ->a4 : A4 +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) var r1b6 = b5 < a5; ->r1b6 : boolean +>r1b6 : boolean, Symbol(r1b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 73, 3)) >b5 < a5 : boolean ->b5 : B5 ->a5 : A5 +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) var r1b7 = b6 < a6; ->r1b7 : boolean +>r1b7 : boolean, Symbol(r1b7, Decl(comparisonOperatorWithIdenticalObjects.ts, 74, 3)) >b6 < a6 : boolean ->b6 : B6 ->a6 : A6 +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) // operator > var r2a1 = a1 > b1; ->r2a1 : boolean +>r2a1 : boolean, Symbol(r2a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 77, 3)) >a1 > b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) var r2a2 = base1 > base2; ->r2a2 : boolean +>r2a2 : boolean, Symbol(r2a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 78, 3)) >base1 > base2 : boolean ->base1 : Base ->base2 : Base +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) var r2a3 = a2 > b2; ->r2a3 : boolean +>r2a3 : boolean, Symbol(r2a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 79, 3)) >a2 > b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) var r2a4 = a3 > b3; ->r2a4 : boolean +>r2a4 : boolean, Symbol(r2a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 80, 3)) >a3 > b3 : boolean ->a3 : A3 ->b3 : B3 +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) var r2a5 = a4 > b4; ->r2a5 : boolean +>r2a5 : boolean, Symbol(r2a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 81, 3)) >a4 > b4 : boolean ->a4 : A4 ->b4 : B4 +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) var r2a6 = a5 > b5; ->r2a6 : boolean +>r2a6 : boolean, Symbol(r2a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 82, 3)) >a5 > b5 : boolean ->a5 : A5 ->b5 : B5 +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) var r2a7 = a6 > b6; ->r2a7 : boolean +>r2a7 : boolean, Symbol(r2a7, Decl(comparisonOperatorWithIdenticalObjects.ts, 83, 3)) >a6 > b6 : boolean ->a6 : A6 ->b6 : B6 +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) var r2b1 = b1 > a1; ->r2b1 : boolean +>r2b1 : boolean, Symbol(r2b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 85, 3)) >b1 > a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) var r2b2 = base2 > base1; ->r2b2 : boolean +>r2b2 : boolean, Symbol(r2b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 86, 3)) >base2 > base1 : boolean ->base2 : Base ->base1 : Base +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) var r2b3 = b2 > a2; ->r2b3 : boolean +>r2b3 : boolean, Symbol(r2b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 87, 3)) >b2 > a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) var r2b4 = b3 > a3; ->r2b4 : boolean +>r2b4 : boolean, Symbol(r2b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 88, 3)) >b3 > a3 : boolean ->b3 : B3 ->a3 : A3 +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) var r2b5 = b4 > a4; ->r2b5 : boolean +>r2b5 : boolean, Symbol(r2b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 89, 3)) >b4 > a4 : boolean ->b4 : B4 ->a4 : A4 +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) var r2b6 = b5 > a5; ->r2b6 : boolean +>r2b6 : boolean, Symbol(r2b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 90, 3)) >b5 > a5 : boolean ->b5 : B5 ->a5 : A5 +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) var r2b7 = b6 > a6; ->r2b7 : boolean +>r2b7 : boolean, Symbol(r2b7, Decl(comparisonOperatorWithIdenticalObjects.ts, 91, 3)) >b6 > a6 : boolean ->b6 : B6 ->a6 : A6 +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) // operator <= var r3a1 = a1 <= b1; ->r3a1 : boolean +>r3a1 : boolean, Symbol(r3a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 94, 3)) >a1 <= b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) var r3a2 = base1 <= base2; ->r3a2 : boolean +>r3a2 : boolean, Symbol(r3a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 95, 3)) >base1 <= base2 : boolean ->base1 : Base ->base2 : Base +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) var r3a3 = a2 <= b2; ->r3a3 : boolean +>r3a3 : boolean, Symbol(r3a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 96, 3)) >a2 <= b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) var r3a4 = a3 <= b3; ->r3a4 : boolean +>r3a4 : boolean, Symbol(r3a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 97, 3)) >a3 <= b3 : boolean ->a3 : A3 ->b3 : B3 +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) var r3a5 = a4 <= b4; ->r3a5 : boolean +>r3a5 : boolean, Symbol(r3a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 98, 3)) >a4 <= b4 : boolean ->a4 : A4 ->b4 : B4 +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) var r3a6 = a5 <= b5; ->r3a6 : boolean +>r3a6 : boolean, Symbol(r3a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 99, 3)) >a5 <= b5 : boolean ->a5 : A5 ->b5 : B5 +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) var r3a7 = a6 <= b6; ->r3a7 : boolean +>r3a7 : boolean, Symbol(r3a7, Decl(comparisonOperatorWithIdenticalObjects.ts, 100, 3)) >a6 <= b6 : boolean ->a6 : A6 ->b6 : B6 +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) var r3b1 = b1 <= a1; ->r3b1 : boolean +>r3b1 : boolean, Symbol(r3b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 102, 3)) >b1 <= a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) var r3b2 = base2 <= base1; ->r3b2 : boolean +>r3b2 : boolean, Symbol(r3b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 103, 3)) >base2 <= base1 : boolean ->base2 : Base ->base1 : Base +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) var r3b3 = b2 <= a2; ->r3b3 : boolean +>r3b3 : boolean, Symbol(r3b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 104, 3)) >b2 <= a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) var r3b4 = b3 <= a3; ->r3b4 : boolean +>r3b4 : boolean, Symbol(r3b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 105, 3)) >b3 <= a3 : boolean ->b3 : B3 ->a3 : A3 +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) var r3b5 = b4 <= a4; ->r3b5 : boolean +>r3b5 : boolean, Symbol(r3b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 106, 3)) >b4 <= a4 : boolean ->b4 : B4 ->a4 : A4 +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) var r3b6 = b5 <= a5; ->r3b6 : boolean +>r3b6 : boolean, Symbol(r3b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 107, 3)) >b5 <= a5 : boolean ->b5 : B5 ->a5 : A5 +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) var r3b7 = b6 <= a6; ->r3b7 : boolean +>r3b7 : boolean, Symbol(r3b7, Decl(comparisonOperatorWithIdenticalObjects.ts, 108, 3)) >b6 <= a6 : boolean ->b6 : B6 ->a6 : A6 +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) // operator >= var r4a1 = a1 >= b1; ->r4a1 : boolean +>r4a1 : boolean, Symbol(r4a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 111, 3)) >a1 >= b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) var r4a2 = base1 >= base2; ->r4a2 : boolean +>r4a2 : boolean, Symbol(r4a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 112, 3)) >base1 >= base2 : boolean ->base1 : Base ->base2 : Base +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) var r4a3 = a2 >= b2; ->r4a3 : boolean +>r4a3 : boolean, Symbol(r4a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 113, 3)) >a2 >= b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) var r4a4 = a3 >= b3; ->r4a4 : boolean +>r4a4 : boolean, Symbol(r4a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 114, 3)) >a3 >= b3 : boolean ->a3 : A3 ->b3 : B3 +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) var r4a5 = a4 >= b4; ->r4a5 : boolean +>r4a5 : boolean, Symbol(r4a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 115, 3)) >a4 >= b4 : boolean ->a4 : A4 ->b4 : B4 +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) var r4a6 = a5 >= b5; ->r4a6 : boolean +>r4a6 : boolean, Symbol(r4a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 116, 3)) >a5 >= b5 : boolean ->a5 : A5 ->b5 : B5 +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) var r4a7 = a6 >= b6; ->r4a7 : boolean +>r4a7 : boolean, Symbol(r4a7, Decl(comparisonOperatorWithIdenticalObjects.ts, 117, 3)) >a6 >= b6 : boolean ->a6 : A6 ->b6 : B6 +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) var r4b1 = b1 >= a1; ->r4b1 : boolean +>r4b1 : boolean, Symbol(r4b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 119, 3)) >b1 >= a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) var r4b2 = base2 >= base1; ->r4b2 : boolean +>r4b2 : boolean, Symbol(r4b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 120, 3)) >base2 >= base1 : boolean ->base2 : Base ->base1 : Base +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) var r4b3 = b2 >= a2; ->r4b3 : boolean +>r4b3 : boolean, Symbol(r4b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 121, 3)) >b2 >= a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) var r4b4 = b3 >= a3; ->r4b4 : boolean +>r4b4 : boolean, Symbol(r4b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 122, 3)) >b3 >= a3 : boolean ->b3 : B3 ->a3 : A3 +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) var r4b5 = b4 >= a4; ->r4b5 : boolean +>r4b5 : boolean, Symbol(r4b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 123, 3)) >b4 >= a4 : boolean ->b4 : B4 ->a4 : A4 +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) var r4b6 = b5 >= a5; ->r4b6 : boolean +>r4b6 : boolean, Symbol(r4b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 124, 3)) >b5 >= a5 : boolean ->b5 : B5 ->a5 : A5 +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) var r4b7 = b6 >= a6; ->r4b7 : boolean +>r4b7 : boolean, Symbol(r4b7, Decl(comparisonOperatorWithIdenticalObjects.ts, 125, 3)) >b6 >= a6 : boolean ->b6 : B6 ->a6 : A6 +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) // operator == var r5a1 = a1 == b1; ->r5a1 : boolean +>r5a1 : boolean, Symbol(r5a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 128, 3)) >a1 == b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) var r5a2 = base1 == base2; ->r5a2 : boolean +>r5a2 : boolean, Symbol(r5a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 129, 3)) >base1 == base2 : boolean ->base1 : Base ->base2 : Base +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) var r5a3 = a2 == b2; ->r5a3 : boolean +>r5a3 : boolean, Symbol(r5a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 130, 3)) >a2 == b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) var r5a4 = a3 == b3; ->r5a4 : boolean +>r5a4 : boolean, Symbol(r5a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 131, 3)) >a3 == b3 : boolean ->a3 : A3 ->b3 : B3 +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) var r5a5 = a4 == b4; ->r5a5 : boolean +>r5a5 : boolean, Symbol(r5a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 132, 3)) >a4 == b4 : boolean ->a4 : A4 ->b4 : B4 +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) var r5a6 = a5 == b5; ->r5a6 : boolean +>r5a6 : boolean, Symbol(r5a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 133, 3)) >a5 == b5 : boolean ->a5 : A5 ->b5 : B5 +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) var r5a7 = a6 == b6; ->r5a7 : boolean +>r5a7 : boolean, Symbol(r5a7, Decl(comparisonOperatorWithIdenticalObjects.ts, 134, 3)) >a6 == b6 : boolean ->a6 : A6 ->b6 : B6 +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) var r5b1 = b1 == a1; ->r5b1 : boolean +>r5b1 : boolean, Symbol(r5b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 136, 3)) >b1 == a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) var r5b2 = base2 == base1; ->r5b2 : boolean +>r5b2 : boolean, Symbol(r5b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 137, 3)) >base2 == base1 : boolean ->base2 : Base ->base1 : Base +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) var r5b3 = b2 == a2; ->r5b3 : boolean +>r5b3 : boolean, Symbol(r5b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 138, 3)) >b2 == a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) var r5b4 = b3 == a3; ->r5b4 : boolean +>r5b4 : boolean, Symbol(r5b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 139, 3)) >b3 == a3 : boolean ->b3 : B3 ->a3 : A3 +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) var r5b5 = b4 == a4; ->r5b5 : boolean +>r5b5 : boolean, Symbol(r5b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 140, 3)) >b4 == a4 : boolean ->b4 : B4 ->a4 : A4 +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) var r5b6 = b5 == a5; ->r5b6 : boolean +>r5b6 : boolean, Symbol(r5b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 141, 3)) >b5 == a5 : boolean ->b5 : B5 ->a5 : A5 +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) var r5b7 = b6 == a6; ->r5b7 : boolean +>r5b7 : boolean, Symbol(r5b7, Decl(comparisonOperatorWithIdenticalObjects.ts, 142, 3)) >b6 == a6 : boolean ->b6 : B6 ->a6 : A6 +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) // operator != var r6a1 = a1 != b1; ->r6a1 : boolean +>r6a1 : boolean, Symbol(r6a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 145, 3)) >a1 != b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) var r6a2 = base1 != base2; ->r6a2 : boolean +>r6a2 : boolean, Symbol(r6a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 146, 3)) >base1 != base2 : boolean ->base1 : Base ->base2 : Base +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) var r6a3 = a2 != b2; ->r6a3 : boolean +>r6a3 : boolean, Symbol(r6a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 147, 3)) >a2 != b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) var r6a4 = a3 != b3; ->r6a4 : boolean +>r6a4 : boolean, Symbol(r6a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 148, 3)) >a3 != b3 : boolean ->a3 : A3 ->b3 : B3 +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) var r6a5 = a4 != b4; ->r6a5 : boolean +>r6a5 : boolean, Symbol(r6a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 149, 3)) >a4 != b4 : boolean ->a4 : A4 ->b4 : B4 +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) var r6a6 = a5 != b5; ->r6a6 : boolean +>r6a6 : boolean, Symbol(r6a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 150, 3)) >a5 != b5 : boolean ->a5 : A5 ->b5 : B5 +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) var r6a7 = a6 != b6; ->r6a7 : boolean +>r6a7 : boolean, Symbol(r6a7, Decl(comparisonOperatorWithIdenticalObjects.ts, 151, 3)) >a6 != b6 : boolean ->a6 : A6 ->b6 : B6 +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) var r6b1 = b1 != a1; ->r6b1 : boolean +>r6b1 : boolean, Symbol(r6b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 153, 3)) >b1 != a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) var r6b2 = base2 != base1; ->r6b2 : boolean +>r6b2 : boolean, Symbol(r6b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 154, 3)) >base2 != base1 : boolean ->base2 : Base ->base1 : Base +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) var r6b3 = b2 != a2; ->r6b3 : boolean +>r6b3 : boolean, Symbol(r6b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 155, 3)) >b2 != a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) var r6b4 = b3 != a3; ->r6b4 : boolean +>r6b4 : boolean, Symbol(r6b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 156, 3)) >b3 != a3 : boolean ->b3 : B3 ->a3 : A3 +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) var r6b5 = b4 != a4; ->r6b5 : boolean +>r6b5 : boolean, Symbol(r6b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 157, 3)) >b4 != a4 : boolean ->b4 : B4 ->a4 : A4 +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) var r6b6 = b5 != a5; ->r6b6 : boolean +>r6b6 : boolean, Symbol(r6b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 158, 3)) >b5 != a5 : boolean ->b5 : B5 ->a5 : A5 +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) var r6b7 = b6 != a6; ->r6b7 : boolean +>r6b7 : boolean, Symbol(r6b7, Decl(comparisonOperatorWithIdenticalObjects.ts, 159, 3)) >b6 != a6 : boolean ->b6 : B6 ->a6 : A6 +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) // operator === var r7a1 = a1 === b1; ->r7a1 : boolean +>r7a1 : boolean, Symbol(r7a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 162, 3)) >a1 === b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) var r7a2 = base1 === base2; ->r7a2 : boolean +>r7a2 : boolean, Symbol(r7a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 163, 3)) >base1 === base2 : boolean ->base1 : Base ->base2 : Base +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) var r7a3 = a2 === b2; ->r7a3 : boolean +>r7a3 : boolean, Symbol(r7a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 164, 3)) >a2 === b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) var r7a4 = a3 === b3; ->r7a4 : boolean +>r7a4 : boolean, Symbol(r7a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 165, 3)) >a3 === b3 : boolean ->a3 : A3 ->b3 : B3 +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) var r7a5 = a4 === b4; ->r7a5 : boolean +>r7a5 : boolean, Symbol(r7a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 166, 3)) >a4 === b4 : boolean ->a4 : A4 ->b4 : B4 +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) var r7a6 = a5 === b5; ->r7a6 : boolean +>r7a6 : boolean, Symbol(r7a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 167, 3)) >a5 === b5 : boolean ->a5 : A5 ->b5 : B5 +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) var r7a7 = a6 === b6; ->r7a7 : boolean +>r7a7 : boolean, Symbol(r7a7, Decl(comparisonOperatorWithIdenticalObjects.ts, 168, 3)) >a6 === b6 : boolean ->a6 : A6 ->b6 : B6 +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) var r7b1 = b1 === a1; ->r7b1 : boolean +>r7b1 : boolean, Symbol(r7b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 170, 3)) >b1 === a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) var r7b2 = base2 === base1; ->r7b2 : boolean +>r7b2 : boolean, Symbol(r7b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 171, 3)) >base2 === base1 : boolean ->base2 : Base ->base1 : Base +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) var r7b3 = b2 === a2; ->r7b3 : boolean +>r7b3 : boolean, Symbol(r7b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 172, 3)) >b2 === a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) var r7b4 = b3 === a3; ->r7b4 : boolean +>r7b4 : boolean, Symbol(r7b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 173, 3)) >b3 === a3 : boolean ->b3 : B3 ->a3 : A3 +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) var r7b5 = b4 === a4; ->r7b5 : boolean +>r7b5 : boolean, Symbol(r7b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 174, 3)) >b4 === a4 : boolean ->b4 : B4 ->a4 : A4 +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) var r7b6 = b5 === a5; ->r7b6 : boolean +>r7b6 : boolean, Symbol(r7b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 175, 3)) >b5 === a5 : boolean ->b5 : B5 ->a5 : A5 +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) var r7b7 = b6 === a6; ->r7b7 : boolean +>r7b7 : boolean, Symbol(r7b7, Decl(comparisonOperatorWithIdenticalObjects.ts, 176, 3)) >b6 === a6 : boolean ->b6 : B6 ->a6 : A6 +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) // operator !== var r8a1 = a1 !== b1; ->r8a1 : boolean +>r8a1 : boolean, Symbol(r8a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 179, 3)) >a1 !== b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) var r8a2 = base1 !== base2; ->r8a2 : boolean +>r8a2 : boolean, Symbol(r8a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 180, 3)) >base1 !== base2 : boolean ->base1 : Base ->base2 : Base +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) var r8a3 = a2 !== b2; ->r8a3 : boolean +>r8a3 : boolean, Symbol(r8a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 181, 3)) >a2 !== b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) var r8a4 = a3 !== b3; ->r8a4 : boolean +>r8a4 : boolean, Symbol(r8a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 182, 3)) >a3 !== b3 : boolean ->a3 : A3 ->b3 : B3 +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) var r8a5 = a4 !== b4; ->r8a5 : boolean +>r8a5 : boolean, Symbol(r8a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 183, 3)) >a4 !== b4 : boolean ->a4 : A4 ->b4 : B4 +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) var r8a6 = a5 !== b5; ->r8a6 : boolean +>r8a6 : boolean, Symbol(r8a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 184, 3)) >a5 !== b5 : boolean ->a5 : A5 ->b5 : B5 +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) var r8a7 = a6 !== b6; ->r8a7 : boolean +>r8a7 : boolean, Symbol(r8a7, Decl(comparisonOperatorWithIdenticalObjects.ts, 185, 3)) >a6 !== b6 : boolean ->a6 : A6 ->b6 : B6 +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) var r8b1 = b1 !== a1; ->r8b1 : boolean +>r8b1 : boolean, Symbol(r8b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 187, 3)) >b1 !== a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithIdenticalObjects.ts, 49, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithIdenticalObjects.ts, 42, 3)) var r8b2 = base2 !== base1; ->r8b2 : boolean +>r8b2 : boolean, Symbol(r8b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 188, 3)) >base2 !== base1 : boolean ->base2 : Base ->base1 : Base +>base2 : Base, Symbol(base2, Decl(comparisonOperatorWithIdenticalObjects.ts, 57, 3)) +>base1 : Base, Symbol(base1, Decl(comparisonOperatorWithIdenticalObjects.ts, 56, 3)) var r8b3 = b2 !== a2; ->r8b3 : boolean +>r8b3 : boolean, Symbol(r8b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 189, 3)) >b2 !== a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithIdenticalObjects.ts, 50, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithIdenticalObjects.ts, 43, 3)) var r8b4 = b3 !== a3; ->r8b4 : boolean +>r8b4 : boolean, Symbol(r8b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 190, 3)) >b3 !== a3 : boolean ->b3 : B3 ->a3 : A3 +>b3 : B3, Symbol(b3, Decl(comparisonOperatorWithIdenticalObjects.ts, 51, 3)) +>a3 : A3, Symbol(a3, Decl(comparisonOperatorWithIdenticalObjects.ts, 44, 3)) var r8b5 = b4 !== a4; ->r8b5 : boolean +>r8b5 : boolean, Symbol(r8b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 191, 3)) >b4 !== a4 : boolean ->b4 : B4 ->a4 : A4 +>b4 : B4, Symbol(b4, Decl(comparisonOperatorWithIdenticalObjects.ts, 52, 3)) +>a4 : A4, Symbol(a4, Decl(comparisonOperatorWithIdenticalObjects.ts, 45, 3)) var r8b6 = b5 !== a5; ->r8b6 : boolean +>r8b6 : boolean, Symbol(r8b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 192, 3)) >b5 !== a5 : boolean ->b5 : B5 ->a5 : A5 +>b5 : B5, Symbol(b5, Decl(comparisonOperatorWithIdenticalObjects.ts, 53, 3)) +>a5 : A5, Symbol(a5, Decl(comparisonOperatorWithIdenticalObjects.ts, 46, 3)) var r8b7 = b6 !== a6; ->r8b7 : boolean +>r8b7 : boolean, Symbol(r8b7, Decl(comparisonOperatorWithIdenticalObjects.ts, 193, 3)) >b6 !== a6 : boolean ->b6 : B6 ->a6 : A6 +>b6 : B6, Symbol(b6, Decl(comparisonOperatorWithIdenticalObjects.ts, 54, 3)) +>a6 : A6, Symbol(a6, Decl(comparisonOperatorWithIdenticalObjects.ts, 47, 3)) diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.types b/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.types index 8c823072ac3..8be7c02f1ec 100644 --- a/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.types +++ b/tests/baselines/reference/comparisonOperatorWithIdenticalPrimitiveType.types @@ -1,351 +1,367 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts === enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 0, 8)) +>b : E, Symbol(E.b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 0, 11)) +>c : E, Symbol(E.c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 0, 14)) var a: number; ->a : number +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) var b: boolean; ->b : boolean +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) var c: string; ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) var d: void; ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) var e: E; ->e : E ->E : E +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) +>E : E, Symbol(E, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 0, 0)) // operator < var ra1 = a < a; ->ra1 : boolean +>ra1 : boolean, Symbol(ra1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 9, 3)) >a < a : boolean ->a : number ->a : number +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) var ra2 = b < b; ->ra2 : boolean +>ra2 : boolean, Symbol(ra2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 10, 3)) >b < b : boolean ->b : boolean ->b : boolean +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) var ra3 = c < c; ->ra3 : boolean +>ra3 : boolean, Symbol(ra3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 11, 3)) >c < c : boolean ->c : string ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) var ra4 = d < d; ->ra4 : boolean +>ra4 : boolean, Symbol(ra4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 12, 3)) >d < d : boolean ->d : void ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) var ra5 = e < e; ->ra5 : boolean +>ra5 : boolean, Symbol(ra5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 13, 3)) >e < e : boolean ->e : E ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) var ra6 = null < null; ->ra6 : boolean +>ra6 : boolean, Symbol(ra6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 14, 3)) >null < null : boolean +>null : null +>null : null var ra7 = undefined < undefined; ->ra7 : boolean +>ra7 : boolean, Symbol(ra7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 15, 3)) >undefined < undefined : boolean ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) // operator > var rb1 = a > a; ->rb1 : boolean +>rb1 : boolean, Symbol(rb1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 18, 3)) >a > a : boolean ->a : number ->a : number +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) var rb2 = b > b; ->rb2 : boolean +>rb2 : boolean, Symbol(rb2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 19, 3)) >b > b : boolean ->b : boolean ->b : boolean +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) var rb3 = c > c; ->rb3 : boolean +>rb3 : boolean, Symbol(rb3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 20, 3)) >c > c : boolean ->c : string ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) var rb4 = d > d; ->rb4 : boolean +>rb4 : boolean, Symbol(rb4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 21, 3)) >d > d : boolean ->d : void ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) var rb5 = e > e; ->rb5 : boolean +>rb5 : boolean, Symbol(rb5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 22, 3)) >e > e : boolean ->e : E ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) var rb6 = null > null; ->rb6 : boolean +>rb6 : boolean, Symbol(rb6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 23, 3)) >null > null : boolean +>null : null +>null : null var rb7 = undefined > undefined; ->rb7 : boolean +>rb7 : boolean, Symbol(rb7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 24, 3)) >undefined > undefined : boolean ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) // operator <= var rc1 = a <= a; ->rc1 : boolean +>rc1 : boolean, Symbol(rc1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 27, 3)) >a <= a : boolean ->a : number ->a : number +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) var rc2 = b <= b; ->rc2 : boolean +>rc2 : boolean, Symbol(rc2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 28, 3)) >b <= b : boolean ->b : boolean ->b : boolean +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) var rc3 = c <= c; ->rc3 : boolean +>rc3 : boolean, Symbol(rc3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 29, 3)) >c <= c : boolean ->c : string ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) var rc4 = d <= d; ->rc4 : boolean +>rc4 : boolean, Symbol(rc4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 30, 3)) >d <= d : boolean ->d : void ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) var rc5 = e <= e; ->rc5 : boolean +>rc5 : boolean, Symbol(rc5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 31, 3)) >e <= e : boolean ->e : E ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) var rc6 = null <= null; ->rc6 : boolean +>rc6 : boolean, Symbol(rc6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 32, 3)) >null <= null : boolean +>null : null +>null : null var rc7 = undefined <= undefined; ->rc7 : boolean +>rc7 : boolean, Symbol(rc7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 33, 3)) >undefined <= undefined : boolean ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) // operator >= var rd1 = a >= a; ->rd1 : boolean +>rd1 : boolean, Symbol(rd1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 36, 3)) >a >= a : boolean ->a : number ->a : number +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) var rd2 = b >= b; ->rd2 : boolean +>rd2 : boolean, Symbol(rd2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 37, 3)) >b >= b : boolean ->b : boolean ->b : boolean +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) var rd3 = c >= c; ->rd3 : boolean +>rd3 : boolean, Symbol(rd3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 38, 3)) >c >= c : boolean ->c : string ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) var rd4 = d >= d; ->rd4 : boolean +>rd4 : boolean, Symbol(rd4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 39, 3)) >d >= d : boolean ->d : void ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) var rd5 = e >= e; ->rd5 : boolean +>rd5 : boolean, Symbol(rd5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 40, 3)) >e >= e : boolean ->e : E ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) var rd6 = null >= null; ->rd6 : boolean +>rd6 : boolean, Symbol(rd6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 41, 3)) >null >= null : boolean +>null : null +>null : null var rd7 = undefined >= undefined; ->rd7 : boolean +>rd7 : boolean, Symbol(rd7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 42, 3)) >undefined >= undefined : boolean ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) // operator == var re1 = a == a; ->re1 : boolean +>re1 : boolean, Symbol(re1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 45, 3)) >a == a : boolean ->a : number ->a : number +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) var re2 = b == b; ->re2 : boolean +>re2 : boolean, Symbol(re2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 46, 3)) >b == b : boolean ->b : boolean ->b : boolean +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) var re3 = c == c; ->re3 : boolean +>re3 : boolean, Symbol(re3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 47, 3)) >c == c : boolean ->c : string ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) var re4 = d == d; ->re4 : boolean +>re4 : boolean, Symbol(re4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 48, 3)) >d == d : boolean ->d : void ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) var re5 = e == e; ->re5 : boolean +>re5 : boolean, Symbol(re5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 49, 3)) >e == e : boolean ->e : E ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) var re6 = null == null; ->re6 : boolean +>re6 : boolean, Symbol(re6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 50, 3)) >null == null : boolean +>null : null +>null : null var re7 = undefined == undefined; ->re7 : boolean +>re7 : boolean, Symbol(re7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 51, 3)) >undefined == undefined : boolean ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) // operator != var rf1 = a != a; ->rf1 : boolean +>rf1 : boolean, Symbol(rf1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 54, 3)) >a != a : boolean ->a : number ->a : number +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) var rf2 = b != b; ->rf2 : boolean +>rf2 : boolean, Symbol(rf2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 55, 3)) >b != b : boolean ->b : boolean ->b : boolean +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) var rf3 = c != c; ->rf3 : boolean +>rf3 : boolean, Symbol(rf3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 56, 3)) >c != c : boolean ->c : string ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) var rf4 = d != d; ->rf4 : boolean +>rf4 : boolean, Symbol(rf4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 57, 3)) >d != d : boolean ->d : void ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) var rf5 = e != e; ->rf5 : boolean +>rf5 : boolean, Symbol(rf5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 58, 3)) >e != e : boolean ->e : E ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) var rf6 = null != null; ->rf6 : boolean +>rf6 : boolean, Symbol(rf6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 59, 3)) >null != null : boolean +>null : null +>null : null var rf7 = undefined != undefined; ->rf7 : boolean +>rf7 : boolean, Symbol(rf7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 60, 3)) >undefined != undefined : boolean ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) // operator === var rg1 = a === a; ->rg1 : boolean +>rg1 : boolean, Symbol(rg1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 63, 3)) >a === a : boolean ->a : number ->a : number +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) var rg2 = b === b; ->rg2 : boolean +>rg2 : boolean, Symbol(rg2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 64, 3)) >b === b : boolean ->b : boolean ->b : boolean +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) var rg3 = c === c; ->rg3 : boolean +>rg3 : boolean, Symbol(rg3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 65, 3)) >c === c : boolean ->c : string ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) var rg4 = d === d; ->rg4 : boolean +>rg4 : boolean, Symbol(rg4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 66, 3)) >d === d : boolean ->d : void ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) var rg5 = e === e; ->rg5 : boolean +>rg5 : boolean, Symbol(rg5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 67, 3)) >e === e : boolean ->e : E ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) var rg6 = null === null; ->rg6 : boolean +>rg6 : boolean, Symbol(rg6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 68, 3)) >null === null : boolean +>null : null +>null : null var rg7 = undefined === undefined; ->rg7 : boolean +>rg7 : boolean, Symbol(rg7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 69, 3)) >undefined === undefined : boolean ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) // operator !== var rh1 = a !== a; ->rh1 : boolean +>rh1 : boolean, Symbol(rh1, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 72, 3)) >a !== a : boolean ->a : number ->a : number +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 2, 3)) var rh2 = b !== b; ->rh2 : boolean +>rh2 : boolean, Symbol(rh2, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 73, 3)) >b !== b : boolean ->b : boolean ->b : boolean +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) +>b : boolean, Symbol(b, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 3, 3)) var rh3 = c !== c; ->rh3 : boolean +>rh3 : boolean, Symbol(rh3, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 74, 3)) >c !== c : boolean ->c : string ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 4, 3)) var rh4 = d !== d; ->rh4 : boolean +>rh4 : boolean, Symbol(rh4, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 75, 3)) >d !== d : boolean ->d : void ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 5, 3)) var rh5 = e !== e; ->rh5 : boolean +>rh5 : boolean, Symbol(rh5, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 76, 3)) >e !== e : boolean ->e : E ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 6, 3)) var rh6 = null !== null; ->rh6 : boolean +>rh6 : boolean, Symbol(rh6, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 77, 3)) >null !== null : boolean +>null : null +>null : null var rh7 = undefined !== undefined; ->rh7 : boolean +>rh7 : boolean, Symbol(rh7, Decl(comparisonOperatorWithIdenticalPrimitiveType.ts, 78, 3)) >undefined !== undefined : boolean ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalTypeParameter.types b/tests/baselines/reference/comparisonOperatorWithIdenticalTypeParameter.types index b545fdc9f1a..0b47eff3437 100644 --- a/tests/baselines/reference/comparisonOperatorWithIdenticalTypeParameter.types +++ b/tests/baselines/reference/comparisonOperatorWithIdenticalTypeParameter.types @@ -1,55 +1,55 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalTypeParameter.ts === function foo(t: T) { ->foo : (t: T) => void ->T : T ->t : T ->T : T +>foo : (t: T) => void, Symbol(foo, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 0)) +>T : T, Symbol(T, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 13)) +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) +>T : T, Symbol(T, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 13)) var r1 = t < t; ->r1 : boolean +>r1 : boolean, Symbol(r1, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 1, 7)) >t < t : boolean ->t : T ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) var r2 = t > t; ->r2 : boolean +>r2 : boolean, Symbol(r2, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 2, 7)) >t > t : boolean ->t : T ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) var r3 = t <= t; ->r3 : boolean +>r3 : boolean, Symbol(r3, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 3, 7)) >t <= t : boolean ->t : T ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) var r4 = t >= t; ->r4 : boolean +>r4 : boolean, Symbol(r4, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 4, 7)) >t >= t : boolean ->t : T ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) var r5 = t == t; ->r5 : boolean +>r5 : boolean, Symbol(r5, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 5, 7)) >t == t : boolean ->t : T ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) var r6 = t != t; ->r6 : boolean +>r6 : boolean, Symbol(r6, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 6, 7)) >t != t : boolean ->t : T ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) var r7 = t === t; ->r7 : boolean +>r7 : boolean, Symbol(r7, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 7, 7)) >t === t : boolean ->t : T ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) var r8 = t !== t; ->r8 : boolean +>r8 : boolean, Symbol(r8, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 8, 7)) >t !== t : boolean ->t : T ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) +>t : T, Symbol(t, Decl(comparisonOperatorWithIdenticalTypeParameter.ts, 0, 16)) } diff --git a/tests/baselines/reference/comparisonOperatorWithOneOperandIsAny.types b/tests/baselines/reference/comparisonOperatorWithOneOperandIsAny.types index e132f03cfa3..b552c64ca8d 100644 --- a/tests/baselines/reference/comparisonOperatorWithOneOperandIsAny.types +++ b/tests/baselines/reference/comparisonOperatorWithOneOperandIsAny.types @@ -1,815 +1,815 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithOneOperandIsAny.ts === var x: any; ->x : any +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 11)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 2, 8)) +>b : E, Symbol(E.b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 2, 11)) +>c : E, Symbol(E.c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 2, 14)) function foo(t: T) { ->foo : (t: T) => void ->T : T ->t : T ->T : T +>foo : (t: T) => void, Symbol(foo, Decl(comparisonOperatorWithOneOperandIsAny.ts, 2, 18)) +>T : T, Symbol(T, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 13)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) +>T : T, Symbol(T, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 13)) var foo_r1 = t < x; ->foo_r1 : boolean +>foo_r1 : boolean, Symbol(foo_r1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 5, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 14, 7)) >t < x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var foo_r2 = t > x; ->foo_r2 : boolean +>foo_r2 : boolean, Symbol(foo_r2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 6, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 15, 7)) >t > x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var foo_r3 = t <= x; ->foo_r3 : boolean +>foo_r3 : boolean, Symbol(foo_r3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 7, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 16, 7)) >t <= x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var foo_r4 = t >= x; ->foo_r4 : boolean +>foo_r4 : boolean, Symbol(foo_r4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 8, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 17, 7)) >t >= x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var foo_r5 = t == x; ->foo_r5 : boolean +>foo_r5 : boolean, Symbol(foo_r5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 9, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 18, 7)) >t == x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var foo_r6 = t != x; ->foo_r6 : boolean +>foo_r6 : boolean, Symbol(foo_r6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 10, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 19, 7)) >t != x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var foo_r7 = t === x; ->foo_r7 : boolean +>foo_r7 : boolean, Symbol(foo_r7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 11, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 20, 7)) >t === x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var foo_r8 = t !== x; ->foo_r8 : boolean +>foo_r8 : boolean, Symbol(foo_r8, Decl(comparisonOperatorWithOneOperandIsAny.ts, 12, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 21, 7)) >t !== x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var foo_r1 = x < t; ->foo_r1 : boolean +>foo_r1 : boolean, Symbol(foo_r1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 5, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 14, 7)) >x < t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) var foo_r2 = x > t; ->foo_r2 : boolean +>foo_r2 : boolean, Symbol(foo_r2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 6, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 15, 7)) >x > t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) var foo_r3 = x <= t; ->foo_r3 : boolean +>foo_r3 : boolean, Symbol(foo_r3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 7, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 16, 7)) >x <= t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) var foo_r4 = x >= t; ->foo_r4 : boolean +>foo_r4 : boolean, Symbol(foo_r4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 8, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 17, 7)) >x >= t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) var foo_r5 = x == t; ->foo_r5 : boolean +>foo_r5 : boolean, Symbol(foo_r5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 9, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 18, 7)) >x == t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) var foo_r6 = x != t; ->foo_r6 : boolean +>foo_r6 : boolean, Symbol(foo_r6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 10, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 19, 7)) >x != t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) var foo_r7 = x === t; ->foo_r7 : boolean +>foo_r7 : boolean, Symbol(foo_r7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 11, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 20, 7)) >x === t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) var foo_r8 = x !== t; ->foo_r8 : boolean +>foo_r8 : boolean, Symbol(foo_r8, Decl(comparisonOperatorWithOneOperandIsAny.ts, 12, 7), Decl(comparisonOperatorWithOneOperandIsAny.ts, 21, 7)) >x !== t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsAny.ts, 4, 16)) } var a: boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) var c: string; ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) var d: void; ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) var e: E; ->e : E ->E : E +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) +>E : E, Symbol(E, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 11)) var f: {}; ->f : {} +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) var g: string[]; ->g : string[] +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) // operator < var r1a1 = x < a; ->r1a1 : boolean +>r1a1 : boolean, Symbol(r1a1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 33, 3)) >x < a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) var r1a2 = x < b; ->r1a2 : boolean +>r1a2 : boolean, Symbol(r1a2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 34, 3)) >x < b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) var r1a3 = x < c; ->r1a3 : boolean +>r1a3 : boolean, Symbol(r1a3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 35, 3)) >x < c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) var r1a4 = x < d; ->r1a4 : boolean +>r1a4 : boolean, Symbol(r1a4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 36, 3)) >x < d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) var r1a5 = x < e; ->r1a5 : boolean +>r1a5 : boolean, Symbol(r1a5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 37, 3)) >x < e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) var r1a6 = x < f; ->r1a6 : boolean +>r1a6 : boolean, Symbol(r1a6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 38, 3)) >x < f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) var r1a7 = x < g; ->r1a7 : boolean +>r1a7 : boolean, Symbol(r1a7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 39, 3)) >x < g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) var r1b1 = a < x; ->r1b1 : boolean +>r1b1 : boolean, Symbol(r1b1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 41, 3)) >a < x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r1b2 = b < x; ->r1b2 : boolean +>r1b2 : boolean, Symbol(r1b2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 42, 3)) >b < x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r1b3 = c < x; ->r1b3 : boolean +>r1b3 : boolean, Symbol(r1b3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 43, 3)) >c < x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r1b4 = d < x; ->r1b4 : boolean +>r1b4 : boolean, Symbol(r1b4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 44, 3)) >d < x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r1b5 = e < x; ->r1b5 : boolean +>r1b5 : boolean, Symbol(r1b5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 45, 3)) >e < x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r1b6 = f < x; ->r1b6 : boolean +>r1b6 : boolean, Symbol(r1b6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 46, 3)) >f < x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r1b7 = g < x; ->r1b7 : boolean +>r1b7 : boolean, Symbol(r1b7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 47, 3)) >g < x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) // operator > var r2a1 = x > a; ->r2a1 : boolean +>r2a1 : boolean, Symbol(r2a1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 50, 3)) >x > a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) var r2a2 = x > b; ->r2a2 : boolean +>r2a2 : boolean, Symbol(r2a2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 51, 3)) >x > b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) var r2a3 = x > c; ->r2a3 : boolean +>r2a3 : boolean, Symbol(r2a3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 52, 3)) >x > c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) var r2a4 = x > d; ->r2a4 : boolean +>r2a4 : boolean, Symbol(r2a4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 53, 3)) >x > d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) var r2a5 = x > e; ->r2a5 : boolean +>r2a5 : boolean, Symbol(r2a5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 54, 3)) >x > e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) var r2a6 = x > f; ->r2a6 : boolean +>r2a6 : boolean, Symbol(r2a6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 55, 3)) >x > f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) var r2a7 = x > g; ->r2a7 : boolean +>r2a7 : boolean, Symbol(r2a7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 56, 3)) >x > g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) var r2b1 = a > x; ->r2b1 : boolean +>r2b1 : boolean, Symbol(r2b1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 58, 3)) >a > x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r2b2 = b > x; ->r2b2 : boolean +>r2b2 : boolean, Symbol(r2b2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 59, 3)) >b > x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r2b3 = c > x; ->r2b3 : boolean +>r2b3 : boolean, Symbol(r2b3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 60, 3)) >c > x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r2b4 = d > x; ->r2b4 : boolean +>r2b4 : boolean, Symbol(r2b4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 61, 3)) >d > x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r2b5 = e > x; ->r2b5 : boolean +>r2b5 : boolean, Symbol(r2b5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 62, 3)) >e > x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r2b6 = f > x; ->r2b6 : boolean +>r2b6 : boolean, Symbol(r2b6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 63, 3)) >f > x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r2b7 = g > x; ->r2b7 : boolean +>r2b7 : boolean, Symbol(r2b7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 64, 3)) >g > x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) // operator <= var r3a1 = x <= a; ->r3a1 : boolean +>r3a1 : boolean, Symbol(r3a1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 67, 3)) >x <= a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) var r3a2 = x <= b; ->r3a2 : boolean +>r3a2 : boolean, Symbol(r3a2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 68, 3)) >x <= b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) var r3a3 = x <= c; ->r3a3 : boolean +>r3a3 : boolean, Symbol(r3a3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 69, 3)) >x <= c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) var r3a4 = x <= d; ->r3a4 : boolean +>r3a4 : boolean, Symbol(r3a4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 70, 3)) >x <= d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) var r3a5 = x <= e; ->r3a5 : boolean +>r3a5 : boolean, Symbol(r3a5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 71, 3)) >x <= e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) var r3a6 = x <= f; ->r3a6 : boolean +>r3a6 : boolean, Symbol(r3a6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 72, 3)) >x <= f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) var r3a7 = x <= g; ->r3a7 : boolean +>r3a7 : boolean, Symbol(r3a7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 73, 3)) >x <= g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) var r3b1 = a <= x; ->r3b1 : boolean +>r3b1 : boolean, Symbol(r3b1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 75, 3)) >a <= x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r3b2 = b <= x; ->r3b2 : boolean +>r3b2 : boolean, Symbol(r3b2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 76, 3)) >b <= x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r3b3 = c <= x; ->r3b3 : boolean +>r3b3 : boolean, Symbol(r3b3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 77, 3)) >c <= x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r3b4 = d <= x; ->r3b4 : boolean +>r3b4 : boolean, Symbol(r3b4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 78, 3)) >d <= x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r3b5 = e <= x; ->r3b5 : boolean +>r3b5 : boolean, Symbol(r3b5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 79, 3)) >e <= x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r3b6 = f <= x; ->r3b6 : boolean +>r3b6 : boolean, Symbol(r3b6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 80, 3)) >f <= x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r3b7 = g <= x; ->r3b7 : boolean +>r3b7 : boolean, Symbol(r3b7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 81, 3)) >g <= x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) // operator >= var r4a1 = x >= a; ->r4a1 : boolean +>r4a1 : boolean, Symbol(r4a1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 84, 3)) >x >= a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) var r4a2 = x >= b; ->r4a2 : boolean +>r4a2 : boolean, Symbol(r4a2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 85, 3)) >x >= b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) var r4a3 = x >= c; ->r4a3 : boolean +>r4a3 : boolean, Symbol(r4a3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 86, 3)) >x >= c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) var r4a4 = x >= d; ->r4a4 : boolean +>r4a4 : boolean, Symbol(r4a4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 87, 3)) >x >= d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) var r4a5 = x >= e; ->r4a5 : boolean +>r4a5 : boolean, Symbol(r4a5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 88, 3)) >x >= e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) var r4a6 = x >= f; ->r4a6 : boolean +>r4a6 : boolean, Symbol(r4a6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 89, 3)) >x >= f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) var r4a7 = x >= g; ->r4a7 : boolean +>r4a7 : boolean, Symbol(r4a7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 90, 3)) >x >= g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) var r4b1 = a >= x; ->r4b1 : boolean +>r4b1 : boolean, Symbol(r4b1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 92, 3)) >a >= x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r4b2 = b >= x; ->r4b2 : boolean +>r4b2 : boolean, Symbol(r4b2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 93, 3)) >b >= x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r4b3 = c >= x; ->r4b3 : boolean +>r4b3 : boolean, Symbol(r4b3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 94, 3)) >c >= x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r4b4 = d >= x; ->r4b4 : boolean +>r4b4 : boolean, Symbol(r4b4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 95, 3)) >d >= x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r4b5 = e >= x; ->r4b5 : boolean +>r4b5 : boolean, Symbol(r4b5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 96, 3)) >e >= x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r4b6 = f >= x; ->r4b6 : boolean +>r4b6 : boolean, Symbol(r4b6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 97, 3)) >f >= x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r4b7 = g >= x; ->r4b7 : boolean +>r4b7 : boolean, Symbol(r4b7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 98, 3)) >g >= x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) // operator == var r5a1 = x == a; ->r5a1 : boolean +>r5a1 : boolean, Symbol(r5a1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 101, 3)) >x == a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) var r5a2 = x == b; ->r5a2 : boolean +>r5a2 : boolean, Symbol(r5a2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 102, 3)) >x == b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) var r5a3 = x == c; ->r5a3 : boolean +>r5a3 : boolean, Symbol(r5a3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 103, 3)) >x == c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) var r5a4 = x == d; ->r5a4 : boolean +>r5a4 : boolean, Symbol(r5a4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 104, 3)) >x == d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) var r5a5 = x == e; ->r5a5 : boolean +>r5a5 : boolean, Symbol(r5a5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 105, 3)) >x == e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) var r5a6 = x == f; ->r5a6 : boolean +>r5a6 : boolean, Symbol(r5a6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 106, 3)) >x == f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) var r5a7 = x == g; ->r5a7 : boolean +>r5a7 : boolean, Symbol(r5a7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 107, 3)) >x == g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) var r5b1 = a == x; ->r5b1 : boolean +>r5b1 : boolean, Symbol(r5b1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 109, 3)) >a == x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r5b2 = b == x; ->r5b2 : boolean +>r5b2 : boolean, Symbol(r5b2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 110, 3)) >b == x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r5b3 = c == x; ->r5b3 : boolean +>r5b3 : boolean, Symbol(r5b3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 111, 3)) >c == x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r5b4 = d == x; ->r5b4 : boolean +>r5b4 : boolean, Symbol(r5b4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 112, 3)) >d == x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r5b5 = e == x; ->r5b5 : boolean +>r5b5 : boolean, Symbol(r5b5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 113, 3)) >e == x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r5b6 = f == x; ->r5b6 : boolean +>r5b6 : boolean, Symbol(r5b6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 114, 3)) >f == x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r5b7 = g == x; ->r5b7 : boolean +>r5b7 : boolean, Symbol(r5b7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 115, 3)) >g == x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) // operator != var r6a1 = x != a; ->r6a1 : boolean +>r6a1 : boolean, Symbol(r6a1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 118, 3)) >x != a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) var r6a2 = x != b; ->r6a2 : boolean +>r6a2 : boolean, Symbol(r6a2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 119, 3)) >x != b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) var r6a3 = x != c; ->r6a3 : boolean +>r6a3 : boolean, Symbol(r6a3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 120, 3)) >x != c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) var r6a4 = x != d; ->r6a4 : boolean +>r6a4 : boolean, Symbol(r6a4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 121, 3)) >x != d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) var r6a5 = x != e; ->r6a5 : boolean +>r6a5 : boolean, Symbol(r6a5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 122, 3)) >x != e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) var r6a6 = x != f; ->r6a6 : boolean +>r6a6 : boolean, Symbol(r6a6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 123, 3)) >x != f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) var r6a7 = x != g; ->r6a7 : boolean +>r6a7 : boolean, Symbol(r6a7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 124, 3)) >x != g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) var r6b1 = a != x; ->r6b1 : boolean +>r6b1 : boolean, Symbol(r6b1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 126, 3)) >a != x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r6b2 = b != x; ->r6b2 : boolean +>r6b2 : boolean, Symbol(r6b2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 127, 3)) >b != x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r6b3 = c != x; ->r6b3 : boolean +>r6b3 : boolean, Symbol(r6b3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 128, 3)) >c != x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r6b4 = d != x; ->r6b4 : boolean +>r6b4 : boolean, Symbol(r6b4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 129, 3)) >d != x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r6b5 = e != x; ->r6b5 : boolean +>r6b5 : boolean, Symbol(r6b5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 130, 3)) >e != x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r6b6 = f != x; ->r6b6 : boolean +>r6b6 : boolean, Symbol(r6b6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 131, 3)) >f != x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r6b7 = g != x; ->r6b7 : boolean +>r6b7 : boolean, Symbol(r6b7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 132, 3)) >g != x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) // operator === var r7a1 = x === a; ->r7a1 : boolean +>r7a1 : boolean, Symbol(r7a1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 135, 3)) >x === a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) var r7a2 = x === b; ->r7a2 : boolean +>r7a2 : boolean, Symbol(r7a2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 136, 3)) >x === b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) var r7a3 = x === c; ->r7a3 : boolean +>r7a3 : boolean, Symbol(r7a3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 137, 3)) >x === c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) var r7a4 = x === d; ->r7a4 : boolean +>r7a4 : boolean, Symbol(r7a4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 138, 3)) >x === d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) var r7a5 = x === e; ->r7a5 : boolean +>r7a5 : boolean, Symbol(r7a5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 139, 3)) >x === e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) var r7a6 = x === f; ->r7a6 : boolean +>r7a6 : boolean, Symbol(r7a6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 140, 3)) >x === f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) var r7a7 = x === g; ->r7a7 : boolean +>r7a7 : boolean, Symbol(r7a7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 141, 3)) >x === g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) var r7b1 = a === x; ->r7b1 : boolean +>r7b1 : boolean, Symbol(r7b1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 143, 3)) >a === x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r7b2 = b === x; ->r7b2 : boolean +>r7b2 : boolean, Symbol(r7b2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 144, 3)) >b === x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r7b3 = c === x; ->r7b3 : boolean +>r7b3 : boolean, Symbol(r7b3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 145, 3)) >c === x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r7b4 = d === x; ->r7b4 : boolean +>r7b4 : boolean, Symbol(r7b4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 146, 3)) >d === x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r7b5 = e === x; ->r7b5 : boolean +>r7b5 : boolean, Symbol(r7b5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 147, 3)) >e === x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r7b6 = f === x; ->r7b6 : boolean +>r7b6 : boolean, Symbol(r7b6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 148, 3)) >f === x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r7b7 = g === x; ->r7b7 : boolean +>r7b7 : boolean, Symbol(r7b7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 149, 3)) >g === x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) // operator !== var r8a1 = x !== a; ->r8a1 : boolean +>r8a1 : boolean, Symbol(r8a1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 152, 3)) >x !== a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) var r8a2 = x !== b; ->r8a2 : boolean +>r8a2 : boolean, Symbol(r8a2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 153, 3)) >x !== b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) var r8a3 = x !== c; ->r8a3 : boolean +>r8a3 : boolean, Symbol(r8a3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 154, 3)) >x !== c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) var r8a4 = x !== d; ->r8a4 : boolean +>r8a4 : boolean, Symbol(r8a4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 155, 3)) >x !== d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) var r8a5 = x !== e; ->r8a5 : boolean +>r8a5 : boolean, Symbol(r8a5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 156, 3)) >x !== e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) var r8a6 = x !== f; ->r8a6 : boolean +>r8a6 : boolean, Symbol(r8a6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 157, 3)) >x !== f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) var r8a7 = x !== g; ->r8a7 : boolean +>r8a7 : boolean, Symbol(r8a7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 158, 3)) >x !== g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) var r8b1 = a !== x; ->r8b1 : boolean +>r8b1 : boolean, Symbol(r8b1, Decl(comparisonOperatorWithOneOperandIsAny.ts, 160, 3)) >a !== x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsAny.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r8b2 = b !== x; ->r8b2 : boolean +>r8b2 : boolean, Symbol(r8b2, Decl(comparisonOperatorWithOneOperandIsAny.ts, 161, 3)) >b !== x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsAny.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r8b3 = c !== x; ->r8b3 : boolean +>r8b3 : boolean, Symbol(r8b3, Decl(comparisonOperatorWithOneOperandIsAny.ts, 162, 3)) >c !== x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsAny.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r8b4 = d !== x; ->r8b4 : boolean +>r8b4 : boolean, Symbol(r8b4, Decl(comparisonOperatorWithOneOperandIsAny.ts, 163, 3)) >d !== x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsAny.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r8b5 = e !== x; ->r8b5 : boolean +>r8b5 : boolean, Symbol(r8b5, Decl(comparisonOperatorWithOneOperandIsAny.ts, 164, 3)) >e !== x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsAny.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r8b6 = f !== x; ->r8b6 : boolean +>r8b6 : boolean, Symbol(r8b6, Decl(comparisonOperatorWithOneOperandIsAny.ts, 165, 3)) >f !== x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsAny.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) var r8b7 = g !== x; ->r8b7 : boolean +>r8b7 : boolean, Symbol(r8b7, Decl(comparisonOperatorWithOneOperandIsAny.ts, 166, 3)) >g !== x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsAny.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsAny.ts, 0, 3)) diff --git a/tests/baselines/reference/comparisonOperatorWithOneOperandIsNull.types b/tests/baselines/reference/comparisonOperatorWithOneOperandIsNull.types index d1b30eb7f6a..ed2d5534c85 100644 --- a/tests/baselines/reference/comparisonOperatorWithOneOperandIsNull.types +++ b/tests/baselines/reference/comparisonOperatorWithOneOperandIsNull.types @@ -1,684 +1,812 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithOneOperandIsNull.ts === enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(comparisonOperatorWithOneOperandIsNull.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 0, 8)) +>b : E, Symbol(E.b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 0, 11)) +>c : E, Symbol(E.c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 0, 14)) function foo(t: T) { ->foo : (t: T) => void ->T : T ->t : T ->T : T +>foo : (t: T) => void, Symbol(foo, Decl(comparisonOperatorWithOneOperandIsNull.ts, 0, 18)) +>T : T, Symbol(T, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 13)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) +>T : T, Symbol(T, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 13)) var foo_r1 = t < null; ->foo_r1 : boolean +>foo_r1 : boolean, Symbol(foo_r1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 3, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 12, 7)) >t < null : boolean ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) +>null : null var foo_r2 = t > null; ->foo_r2 : boolean +>foo_r2 : boolean, Symbol(foo_r2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 4, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 13, 7)) >t > null : boolean ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) +>null : null var foo_r3 = t <= null; ->foo_r3 : boolean +>foo_r3 : boolean, Symbol(foo_r3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 5, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 14, 7)) >t <= null : boolean ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) +>null : null var foo_r4 = t >= null; ->foo_r4 : boolean +>foo_r4 : boolean, Symbol(foo_r4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 6, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 15, 7)) >t >= null : boolean ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) +>null : null var foo_r5 = t == null; ->foo_r5 : boolean +>foo_r5 : boolean, Symbol(foo_r5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 7, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 16, 7)) >t == null : boolean ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) +>null : null var foo_r6 = t != null; ->foo_r6 : boolean +>foo_r6 : boolean, Symbol(foo_r6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 8, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 17, 7)) >t != null : boolean ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) +>null : null var foo_r7 = t === null; ->foo_r7 : boolean +>foo_r7 : boolean, Symbol(foo_r7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 9, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 18, 7)) >t === null : boolean ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) +>null : null var foo_r8 = t !== null; ->foo_r8 : boolean +>foo_r8 : boolean, Symbol(foo_r8, Decl(comparisonOperatorWithOneOperandIsNull.ts, 10, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 19, 7)) >t !== null : boolean ->t : T +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) +>null : null var foo_r1 = null < t; ->foo_r1 : boolean +>foo_r1 : boolean, Symbol(foo_r1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 3, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 12, 7)) >null < t : boolean ->t : T +>null : null +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) var foo_r2 = null > t; ->foo_r2 : boolean +>foo_r2 : boolean, Symbol(foo_r2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 4, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 13, 7)) >null > t : boolean ->t : T +>null : null +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) var foo_r3 = null <= t; ->foo_r3 : boolean +>foo_r3 : boolean, Symbol(foo_r3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 5, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 14, 7)) >null <= t : boolean ->t : T +>null : null +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) var foo_r4 = null >= t; ->foo_r4 : boolean +>foo_r4 : boolean, Symbol(foo_r4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 6, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 15, 7)) >null >= t : boolean ->t : T +>null : null +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) var foo_r5 = null == t; ->foo_r5 : boolean +>foo_r5 : boolean, Symbol(foo_r5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 7, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 16, 7)) >null == t : boolean ->t : T +>null : null +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) var foo_r6 = null != t; ->foo_r6 : boolean +>foo_r6 : boolean, Symbol(foo_r6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 8, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 17, 7)) >null != t : boolean ->t : T +>null : null +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) var foo_r7 = null === t; ->foo_r7 : boolean +>foo_r7 : boolean, Symbol(foo_r7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 9, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 18, 7)) >null === t : boolean ->t : T +>null : null +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) var foo_r8 = null !== t; ->foo_r8 : boolean +>foo_r8 : boolean, Symbol(foo_r8, Decl(comparisonOperatorWithOneOperandIsNull.ts, 10, 7), Decl(comparisonOperatorWithOneOperandIsNull.ts, 19, 7)) >null !== t : boolean ->t : T +>null : null +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsNull.ts, 2, 16)) } var a: boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) var c: string; ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) var d: void; ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) var e: E; ->e : E ->E : E +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) +>E : E, Symbol(E, Decl(comparisonOperatorWithOneOperandIsNull.ts, 0, 0)) var f: {}; ->f : {} +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) var g: string[]; ->g : string[] +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) // operator < var r1a1 = null < a; ->r1a1 : boolean +>r1a1 : boolean, Symbol(r1a1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 31, 3)) >null < a : boolean ->a : boolean +>null : null +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) var r1a2 = null < b; ->r1a2 : boolean +>r1a2 : boolean, Symbol(r1a2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 32, 3)) >null < b : boolean ->b : number +>null : null +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) var r1a3 = null < c; ->r1a3 : boolean +>r1a3 : boolean, Symbol(r1a3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 33, 3)) >null < c : boolean ->c : string +>null : null +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) var r1a4 = null < d; ->r1a4 : boolean +>r1a4 : boolean, Symbol(r1a4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 34, 3)) >null < d : boolean ->d : void +>null : null +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) var r1a5 = null < e; ->r1a5 : boolean +>r1a5 : boolean, Symbol(r1a5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 35, 3)) >null < e : boolean ->e : E +>null : null +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) var r1a6 = null < f; ->r1a6 : boolean +>r1a6 : boolean, Symbol(r1a6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 36, 3)) >null < f : boolean ->f : {} +>null : null +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) var r1a7 = null < g; ->r1a7 : boolean +>r1a7 : boolean, Symbol(r1a7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 37, 3)) >null < g : boolean ->g : string[] +>null : null +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) var r1b1 = a < null; ->r1b1 : boolean +>r1b1 : boolean, Symbol(r1b1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 39, 3)) >a < null : boolean ->a : boolean +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) +>null : null var r1b2 = b < null; ->r1b2 : boolean +>r1b2 : boolean, Symbol(r1b2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 40, 3)) >b < null : boolean ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) +>null : null var r1b3 = c < null; ->r1b3 : boolean +>r1b3 : boolean, Symbol(r1b3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 41, 3)) >c < null : boolean ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) +>null : null var r1b4 = d < null; ->r1b4 : boolean +>r1b4 : boolean, Symbol(r1b4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 42, 3)) >d < null : boolean ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) +>null : null var r1b5 = e < null; ->r1b5 : boolean +>r1b5 : boolean, Symbol(r1b5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 43, 3)) >e < null : boolean ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) +>null : null var r1b6 = f < null; ->r1b6 : boolean +>r1b6 : boolean, Symbol(r1b6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 44, 3)) >f < null : boolean ->f : {} +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) +>null : null var r1b7 = g < null; ->r1b7 : boolean +>r1b7 : boolean, Symbol(r1b7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 45, 3)) >g < null : boolean ->g : string[] +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) +>null : null // operator > var r2a1 = null > a; ->r2a1 : boolean +>r2a1 : boolean, Symbol(r2a1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 48, 3)) >null > a : boolean ->a : boolean +>null : null +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) var r2a2 = null > b; ->r2a2 : boolean +>r2a2 : boolean, Symbol(r2a2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 49, 3)) >null > b : boolean ->b : number +>null : null +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) var r2a3 = null > c; ->r2a3 : boolean +>r2a3 : boolean, Symbol(r2a3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 50, 3)) >null > c : boolean ->c : string +>null : null +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) var r2a4 = null > d; ->r2a4 : boolean +>r2a4 : boolean, Symbol(r2a4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 51, 3)) >null > d : boolean ->d : void +>null : null +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) var r2a5 = null > e; ->r2a5 : boolean +>r2a5 : boolean, Symbol(r2a5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 52, 3)) >null > e : boolean ->e : E +>null : null +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) var r2a6 = null > f; ->r2a6 : boolean +>r2a6 : boolean, Symbol(r2a6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 53, 3)) >null > f : boolean ->f : {} +>null : null +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) var r2a7 = null > g; ->r2a7 : boolean +>r2a7 : boolean, Symbol(r2a7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 54, 3)) >null > g : boolean ->g : string[] +>null : null +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) var r2b1 = a > null; ->r2b1 : boolean +>r2b1 : boolean, Symbol(r2b1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 56, 3)) >a > null : boolean ->a : boolean +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) +>null : null var r2b2 = b > null; ->r2b2 : boolean +>r2b2 : boolean, Symbol(r2b2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 57, 3)) >b > null : boolean ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) +>null : null var r2b3 = c > null; ->r2b3 : boolean +>r2b3 : boolean, Symbol(r2b3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 58, 3)) >c > null : boolean ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) +>null : null var r2b4 = d > null; ->r2b4 : boolean +>r2b4 : boolean, Symbol(r2b4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 59, 3)) >d > null : boolean ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) +>null : null var r2b5 = e > null; ->r2b5 : boolean +>r2b5 : boolean, Symbol(r2b5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 60, 3)) >e > null : boolean ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) +>null : null var r2b6 = f > null; ->r2b6 : boolean +>r2b6 : boolean, Symbol(r2b6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 61, 3)) >f > null : boolean ->f : {} +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) +>null : null var r2b7 = g > null; ->r2b7 : boolean +>r2b7 : boolean, Symbol(r2b7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 62, 3)) >g > null : boolean ->g : string[] +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) +>null : null // operator <= var r3a1 = null <= a; ->r3a1 : boolean +>r3a1 : boolean, Symbol(r3a1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 65, 3)) >null <= a : boolean ->a : boolean +>null : null +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) var r3a2 = null <= b; ->r3a2 : boolean +>r3a2 : boolean, Symbol(r3a2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 66, 3)) >null <= b : boolean ->b : number +>null : null +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) var r3a3 = null <= c; ->r3a3 : boolean +>r3a3 : boolean, Symbol(r3a3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 67, 3)) >null <= c : boolean ->c : string +>null : null +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) var r3a4 = null <= d; ->r3a4 : boolean +>r3a4 : boolean, Symbol(r3a4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 68, 3)) >null <= d : boolean ->d : void +>null : null +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) var r3a5 = null <= e; ->r3a5 : boolean +>r3a5 : boolean, Symbol(r3a5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 69, 3)) >null <= e : boolean ->e : E +>null : null +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) var r3a6 = null <= f; ->r3a6 : boolean +>r3a6 : boolean, Symbol(r3a6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 70, 3)) >null <= f : boolean ->f : {} +>null : null +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) var r3a7 = null <= g; ->r3a7 : boolean +>r3a7 : boolean, Symbol(r3a7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 71, 3)) >null <= g : boolean ->g : string[] +>null : null +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) var r3b1 = a <= null; ->r3b1 : boolean +>r3b1 : boolean, Symbol(r3b1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 73, 3)) >a <= null : boolean ->a : boolean +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) +>null : null var r3b2 = b <= null; ->r3b2 : boolean +>r3b2 : boolean, Symbol(r3b2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 74, 3)) >b <= null : boolean ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) +>null : null var r3b3 = c <= null; ->r3b3 : boolean +>r3b3 : boolean, Symbol(r3b3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 75, 3)) >c <= null : boolean ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) +>null : null var r3b4 = d <= null; ->r3b4 : boolean +>r3b4 : boolean, Symbol(r3b4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 76, 3)) >d <= null : boolean ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) +>null : null var r3b5 = e <= null; ->r3b5 : boolean +>r3b5 : boolean, Symbol(r3b5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 77, 3)) >e <= null : boolean ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) +>null : null var r3b6 = f <= null; ->r3b6 : boolean +>r3b6 : boolean, Symbol(r3b6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 78, 3)) >f <= null : boolean ->f : {} +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) +>null : null var r3b7 = g <= null; ->r3b7 : boolean +>r3b7 : boolean, Symbol(r3b7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 79, 3)) >g <= null : boolean ->g : string[] +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) +>null : null // operator >= var r4a1 = null >= a; ->r4a1 : boolean +>r4a1 : boolean, Symbol(r4a1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 82, 3)) >null >= a : boolean ->a : boolean +>null : null +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) var r4a2 = null >= b; ->r4a2 : boolean +>r4a2 : boolean, Symbol(r4a2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 83, 3)) >null >= b : boolean ->b : number +>null : null +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) var r4a3 = null >= c; ->r4a3 : boolean +>r4a3 : boolean, Symbol(r4a3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 84, 3)) >null >= c : boolean ->c : string +>null : null +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) var r4a4 = null >= d; ->r4a4 : boolean +>r4a4 : boolean, Symbol(r4a4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 85, 3)) >null >= d : boolean ->d : void +>null : null +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) var r4a5 = null >= e; ->r4a5 : boolean +>r4a5 : boolean, Symbol(r4a5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 86, 3)) >null >= e : boolean ->e : E +>null : null +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) var r4a6 = null >= f; ->r4a6 : boolean +>r4a6 : boolean, Symbol(r4a6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 87, 3)) >null >= f : boolean ->f : {} +>null : null +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) var r4a7 = null >= g; ->r4a7 : boolean +>r4a7 : boolean, Symbol(r4a7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 88, 3)) >null >= g : boolean ->g : string[] +>null : null +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) var r4b1 = a >= null; ->r4b1 : boolean +>r4b1 : boolean, Symbol(r4b1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 90, 3)) >a >= null : boolean ->a : boolean +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) +>null : null var r4b2 = b >= null; ->r4b2 : boolean +>r4b2 : boolean, Symbol(r4b2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 91, 3)) >b >= null : boolean ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) +>null : null var r4b3 = c >= null; ->r4b3 : boolean +>r4b3 : boolean, Symbol(r4b3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 92, 3)) >c >= null : boolean ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) +>null : null var r4b4 = d >= null; ->r4b4 : boolean +>r4b4 : boolean, Symbol(r4b4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 93, 3)) >d >= null : boolean ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) +>null : null var r4b5 = e >= null; ->r4b5 : boolean +>r4b5 : boolean, Symbol(r4b5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 94, 3)) >e >= null : boolean ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) +>null : null var r4b6 = f >= null; ->r4b6 : boolean +>r4b6 : boolean, Symbol(r4b6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 95, 3)) >f >= null : boolean ->f : {} +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) +>null : null var r4b7 = g >= null; ->r4b7 : boolean +>r4b7 : boolean, Symbol(r4b7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 96, 3)) >g >= null : boolean ->g : string[] +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) +>null : null // operator == var r5a1 = null == a; ->r5a1 : boolean +>r5a1 : boolean, Symbol(r5a1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 99, 3)) >null == a : boolean ->a : boolean +>null : null +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) var r5a2 = null == b; ->r5a2 : boolean +>r5a2 : boolean, Symbol(r5a2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 100, 3)) >null == b : boolean ->b : number +>null : null +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) var r5a3 = null == c; ->r5a3 : boolean +>r5a3 : boolean, Symbol(r5a3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 101, 3)) >null == c : boolean ->c : string +>null : null +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) var r5a4 = null == d; ->r5a4 : boolean +>r5a4 : boolean, Symbol(r5a4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 102, 3)) >null == d : boolean ->d : void +>null : null +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) var r5a5 = null == e; ->r5a5 : boolean +>r5a5 : boolean, Symbol(r5a5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 103, 3)) >null == e : boolean ->e : E +>null : null +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) var r5a6 = null == f; ->r5a6 : boolean +>r5a6 : boolean, Symbol(r5a6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 104, 3)) >null == f : boolean ->f : {} +>null : null +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) var r5a7 = null == g; ->r5a7 : boolean +>r5a7 : boolean, Symbol(r5a7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 105, 3)) >null == g : boolean ->g : string[] +>null : null +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) var r5b1 = a == null; ->r5b1 : boolean +>r5b1 : boolean, Symbol(r5b1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 107, 3)) >a == null : boolean ->a : boolean +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) +>null : null var r5b2 = b == null; ->r5b2 : boolean +>r5b2 : boolean, Symbol(r5b2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 108, 3)) >b == null : boolean ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) +>null : null var r5b3 = c == null; ->r5b3 : boolean +>r5b3 : boolean, Symbol(r5b3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 109, 3)) >c == null : boolean ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) +>null : null var r5b4 = d == null; ->r5b4 : boolean +>r5b4 : boolean, Symbol(r5b4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 110, 3)) >d == null : boolean ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) +>null : null var r5b5 = e == null; ->r5b5 : boolean +>r5b5 : boolean, Symbol(r5b5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 111, 3)) >e == null : boolean ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) +>null : null var r5b6 = f == null; ->r5b6 : boolean +>r5b6 : boolean, Symbol(r5b6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 112, 3)) >f == null : boolean ->f : {} +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) +>null : null var r5b7 = g == null; ->r5b7 : boolean +>r5b7 : boolean, Symbol(r5b7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 113, 3)) >g == null : boolean ->g : string[] +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) +>null : null // operator != var r6a1 = null != a; ->r6a1 : boolean +>r6a1 : boolean, Symbol(r6a1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 116, 3)) >null != a : boolean ->a : boolean +>null : null +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) var r6a2 = null != b; ->r6a2 : boolean +>r6a2 : boolean, Symbol(r6a2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 117, 3)) >null != b : boolean ->b : number +>null : null +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) var r6a3 = null != c; ->r6a3 : boolean +>r6a3 : boolean, Symbol(r6a3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 118, 3)) >null != c : boolean ->c : string +>null : null +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) var r6a4 = null != d; ->r6a4 : boolean +>r6a4 : boolean, Symbol(r6a4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 119, 3)) >null != d : boolean ->d : void +>null : null +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) var r6a5 = null != e; ->r6a5 : boolean +>r6a5 : boolean, Symbol(r6a5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 120, 3)) >null != e : boolean ->e : E +>null : null +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) var r6a6 = null != f; ->r6a6 : boolean +>r6a6 : boolean, Symbol(r6a6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 121, 3)) >null != f : boolean ->f : {} +>null : null +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) var r6a7 = null != g; ->r6a7 : boolean +>r6a7 : boolean, Symbol(r6a7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 122, 3)) >null != g : boolean ->g : string[] +>null : null +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) var r6b1 = a != null; ->r6b1 : boolean +>r6b1 : boolean, Symbol(r6b1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 124, 3)) >a != null : boolean ->a : boolean +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) +>null : null var r6b2 = b != null; ->r6b2 : boolean +>r6b2 : boolean, Symbol(r6b2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 125, 3)) >b != null : boolean ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) +>null : null var r6b3 = c != null; ->r6b3 : boolean +>r6b3 : boolean, Symbol(r6b3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 126, 3)) >c != null : boolean ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) +>null : null var r6b4 = d != null; ->r6b4 : boolean +>r6b4 : boolean, Symbol(r6b4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 127, 3)) >d != null : boolean ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) +>null : null var r6b5 = e != null; ->r6b5 : boolean +>r6b5 : boolean, Symbol(r6b5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 128, 3)) >e != null : boolean ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) +>null : null var r6b6 = f != null; ->r6b6 : boolean +>r6b6 : boolean, Symbol(r6b6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 129, 3)) >f != null : boolean ->f : {} +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) +>null : null var r6b7 = g != null; ->r6b7 : boolean +>r6b7 : boolean, Symbol(r6b7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 130, 3)) >g != null : boolean ->g : string[] +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) +>null : null // operator === var r7a1 = null === a; ->r7a1 : boolean +>r7a1 : boolean, Symbol(r7a1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 133, 3)) >null === a : boolean ->a : boolean +>null : null +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) var r7a2 = null === b; ->r7a2 : boolean +>r7a2 : boolean, Symbol(r7a2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 134, 3)) >null === b : boolean ->b : number +>null : null +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) var r7a3 = null === c; ->r7a3 : boolean +>r7a3 : boolean, Symbol(r7a3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 135, 3)) >null === c : boolean ->c : string +>null : null +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) var r7a4 = null === d; ->r7a4 : boolean +>r7a4 : boolean, Symbol(r7a4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 136, 3)) >null === d : boolean ->d : void +>null : null +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) var r7a5 = null === e; ->r7a5 : boolean +>r7a5 : boolean, Symbol(r7a5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 137, 3)) >null === e : boolean ->e : E +>null : null +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) var r7a6 = null === f; ->r7a6 : boolean +>r7a6 : boolean, Symbol(r7a6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 138, 3)) >null === f : boolean ->f : {} +>null : null +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) var r7a7 = null === g; ->r7a7 : boolean +>r7a7 : boolean, Symbol(r7a7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 139, 3)) >null === g : boolean ->g : string[] +>null : null +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) var r7b1 = a === null; ->r7b1 : boolean +>r7b1 : boolean, Symbol(r7b1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 141, 3)) >a === null : boolean ->a : boolean +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) +>null : null var r7b2 = b === null; ->r7b2 : boolean +>r7b2 : boolean, Symbol(r7b2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 142, 3)) >b === null : boolean ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) +>null : null var r7b3 = c === null; ->r7b3 : boolean +>r7b3 : boolean, Symbol(r7b3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 143, 3)) >c === null : boolean ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) +>null : null var r7b4 = d === null; ->r7b4 : boolean +>r7b4 : boolean, Symbol(r7b4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 144, 3)) >d === null : boolean ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) +>null : null var r7b5 = e === null; ->r7b5 : boolean +>r7b5 : boolean, Symbol(r7b5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 145, 3)) >e === null : boolean ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) +>null : null var r7b6 = f === null; ->r7b6 : boolean +>r7b6 : boolean, Symbol(r7b6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 146, 3)) >f === null : boolean ->f : {} +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) +>null : null var r7b7 = g === null; ->r7b7 : boolean +>r7b7 : boolean, Symbol(r7b7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 147, 3)) >g === null : boolean ->g : string[] +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) +>null : null // operator !== var r8a1 = null !== a; ->r8a1 : boolean +>r8a1 : boolean, Symbol(r8a1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 150, 3)) >null !== a : boolean ->a : boolean +>null : null +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) var r8a2 = null !== b; ->r8a2 : boolean +>r8a2 : boolean, Symbol(r8a2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 151, 3)) >null !== b : boolean ->b : number +>null : null +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) var r8a3 = null !== c; ->r8a3 : boolean +>r8a3 : boolean, Symbol(r8a3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 152, 3)) >null !== c : boolean ->c : string +>null : null +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) var r8a4 = null !== d; ->r8a4 : boolean +>r8a4 : boolean, Symbol(r8a4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 153, 3)) >null !== d : boolean ->d : void +>null : null +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) var r8a5 = null !== e; ->r8a5 : boolean +>r8a5 : boolean, Symbol(r8a5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 154, 3)) >null !== e : boolean ->e : E +>null : null +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) var r8a6 = null !== f; ->r8a6 : boolean +>r8a6 : boolean, Symbol(r8a6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 155, 3)) >null !== f : boolean ->f : {} +>null : null +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) var r8a7 = null !== g; ->r8a7 : boolean +>r8a7 : boolean, Symbol(r8a7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 156, 3)) >null !== g : boolean ->g : string[] +>null : null +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) var r8b1 = a !== null; ->r8b1 : boolean +>r8b1 : boolean, Symbol(r8b1, Decl(comparisonOperatorWithOneOperandIsNull.ts, 158, 3)) >a !== null : boolean ->a : boolean +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsNull.ts, 22, 3)) +>null : null var r8b2 = b !== null; ->r8b2 : boolean +>r8b2 : boolean, Symbol(r8b2, Decl(comparisonOperatorWithOneOperandIsNull.ts, 159, 3)) >b !== null : boolean ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsNull.ts, 23, 3)) +>null : null var r8b3 = c !== null; ->r8b3 : boolean +>r8b3 : boolean, Symbol(r8b3, Decl(comparisonOperatorWithOneOperandIsNull.ts, 160, 3)) >c !== null : boolean ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsNull.ts, 24, 3)) +>null : null var r8b4 = d !== null; ->r8b4 : boolean +>r8b4 : boolean, Symbol(r8b4, Decl(comparisonOperatorWithOneOperandIsNull.ts, 161, 3)) >d !== null : boolean ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsNull.ts, 25, 3)) +>null : null var r8b5 = e !== null; ->r8b5 : boolean +>r8b5 : boolean, Symbol(r8b5, Decl(comparisonOperatorWithOneOperandIsNull.ts, 162, 3)) >e !== null : boolean ->e : E +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsNull.ts, 26, 3)) +>null : null var r8b6 = f !== null; ->r8b6 : boolean +>r8b6 : boolean, Symbol(r8b6, Decl(comparisonOperatorWithOneOperandIsNull.ts, 163, 3)) >f !== null : boolean ->f : {} +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsNull.ts, 27, 3)) +>null : null var r8b7 = g !== null; ->r8b7 : boolean +>r8b7 : boolean, Symbol(r8b7, Decl(comparisonOperatorWithOneOperandIsNull.ts, 164, 3)) >g !== null : boolean ->g : string[] +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsNull.ts, 28, 3)) +>null : null diff --git a/tests/baselines/reference/comparisonOperatorWithOneOperandIsUndefined.types b/tests/baselines/reference/comparisonOperatorWithOneOperandIsUndefined.types index b4a70c3e3d6..ddceb854835 100644 --- a/tests/baselines/reference/comparisonOperatorWithOneOperandIsUndefined.types +++ b/tests/baselines/reference/comparisonOperatorWithOneOperandIsUndefined.types @@ -1,816 +1,816 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithOneOperandIsUndefined.ts === var x: typeof undefined; ->x : any ->undefined : undefined +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>undefined : undefined, Symbol(undefined) enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 24)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 2, 8)) +>b : E, Symbol(E.b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 2, 11)) +>c : E, Symbol(E.c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 2, 14)) function foo(t: T) { ->foo : (t: T) => void ->T : T ->t : T ->T : T +>foo : (t: T) => void, Symbol(foo, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 2, 18)) +>T : T, Symbol(T, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 13)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) +>T : T, Symbol(T, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 13)) var foo_r1 = t < x; ->foo_r1 : boolean +>foo_r1 : boolean, Symbol(foo_r1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 5, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 14, 7)) >t < x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var foo_r2 = t > x; ->foo_r2 : boolean +>foo_r2 : boolean, Symbol(foo_r2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 6, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 15, 7)) >t > x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var foo_r3 = t <= x; ->foo_r3 : boolean +>foo_r3 : boolean, Symbol(foo_r3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 7, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 16, 7)) >t <= x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var foo_r4 = t >= x; ->foo_r4 : boolean +>foo_r4 : boolean, Symbol(foo_r4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 8, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 17, 7)) >t >= x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var foo_r5 = t == x; ->foo_r5 : boolean +>foo_r5 : boolean, Symbol(foo_r5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 9, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 18, 7)) >t == x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var foo_r6 = t != x; ->foo_r6 : boolean +>foo_r6 : boolean, Symbol(foo_r6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 10, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 19, 7)) >t != x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var foo_r7 = t === x; ->foo_r7 : boolean +>foo_r7 : boolean, Symbol(foo_r7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 11, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 20, 7)) >t === x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var foo_r8 = t !== x; ->foo_r8 : boolean +>foo_r8 : boolean, Symbol(foo_r8, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 12, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 21, 7)) >t !== x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var foo_r1 = x < t; ->foo_r1 : boolean +>foo_r1 : boolean, Symbol(foo_r1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 5, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 14, 7)) >x < t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) var foo_r2 = x > t; ->foo_r2 : boolean +>foo_r2 : boolean, Symbol(foo_r2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 6, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 15, 7)) >x > t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) var foo_r3 = x <= t; ->foo_r3 : boolean +>foo_r3 : boolean, Symbol(foo_r3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 7, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 16, 7)) >x <= t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) var foo_r4 = x >= t; ->foo_r4 : boolean +>foo_r4 : boolean, Symbol(foo_r4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 8, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 17, 7)) >x >= t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) var foo_r5 = x == t; ->foo_r5 : boolean +>foo_r5 : boolean, Symbol(foo_r5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 9, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 18, 7)) >x == t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) var foo_r6 = x != t; ->foo_r6 : boolean +>foo_r6 : boolean, Symbol(foo_r6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 10, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 19, 7)) >x != t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) var foo_r7 = x === t; ->foo_r7 : boolean +>foo_r7 : boolean, Symbol(foo_r7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 11, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 20, 7)) >x === t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) var foo_r8 = x !== t; ->foo_r8 : boolean +>foo_r8 : boolean, Symbol(foo_r8, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 12, 7), Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 21, 7)) >x !== t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>t : T, Symbol(t, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 4, 16)) } var a: boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) var c: string; ->c : string +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) var d: void; ->d : void +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) var e: E; ->e : E ->E : E +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) +>E : E, Symbol(E, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 24)) var f: {}; ->f : {} +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) var g: string[]; ->g : string[] +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) // operator < var r1a1 = x < a; ->r1a1 : boolean +>r1a1 : boolean, Symbol(r1a1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 33, 3)) >x < a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) var r1a2 = x < b; ->r1a2 : boolean +>r1a2 : boolean, Symbol(r1a2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 34, 3)) >x < b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) var r1a3 = x < c; ->r1a3 : boolean +>r1a3 : boolean, Symbol(r1a3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 35, 3)) >x < c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) var r1a4 = x < d; ->r1a4 : boolean +>r1a4 : boolean, Symbol(r1a4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 36, 3)) >x < d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) var r1a5 = x < e; ->r1a5 : boolean +>r1a5 : boolean, Symbol(r1a5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 37, 3)) >x < e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) var r1a6 = x < f; ->r1a6 : boolean +>r1a6 : boolean, Symbol(r1a6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 38, 3)) >x < f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) var r1a7 = x < g; ->r1a7 : boolean +>r1a7 : boolean, Symbol(r1a7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 39, 3)) >x < g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) var r1b1 = a < x; ->r1b1 : boolean +>r1b1 : boolean, Symbol(r1b1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 41, 3)) >a < x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r1b2 = b < x; ->r1b2 : boolean +>r1b2 : boolean, Symbol(r1b2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 42, 3)) >b < x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r1b3 = c < x; ->r1b3 : boolean +>r1b3 : boolean, Symbol(r1b3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 43, 3)) >c < x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r1b4 = d < x; ->r1b4 : boolean +>r1b4 : boolean, Symbol(r1b4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 44, 3)) >d < x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r1b5 = e < x; ->r1b5 : boolean +>r1b5 : boolean, Symbol(r1b5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 45, 3)) >e < x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r1b6 = f < x; ->r1b6 : boolean +>r1b6 : boolean, Symbol(r1b6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 46, 3)) >f < x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r1b7 = g < x; ->r1b7 : boolean +>r1b7 : boolean, Symbol(r1b7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 47, 3)) >g < x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) // operator > var r2a1 = x > a; ->r2a1 : boolean +>r2a1 : boolean, Symbol(r2a1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 50, 3)) >x > a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) var r2a2 = x > b; ->r2a2 : boolean +>r2a2 : boolean, Symbol(r2a2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 51, 3)) >x > b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) var r2a3 = x > c; ->r2a3 : boolean +>r2a3 : boolean, Symbol(r2a3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 52, 3)) >x > c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) var r2a4 = x > d; ->r2a4 : boolean +>r2a4 : boolean, Symbol(r2a4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 53, 3)) >x > d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) var r2a5 = x > e; ->r2a5 : boolean +>r2a5 : boolean, Symbol(r2a5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 54, 3)) >x > e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) var r2a6 = x > f; ->r2a6 : boolean +>r2a6 : boolean, Symbol(r2a6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 55, 3)) >x > f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) var r2a7 = x > g; ->r2a7 : boolean +>r2a7 : boolean, Symbol(r2a7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 56, 3)) >x > g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) var r2b1 = a > x; ->r2b1 : boolean +>r2b1 : boolean, Symbol(r2b1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 58, 3)) >a > x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r2b2 = b > x; ->r2b2 : boolean +>r2b2 : boolean, Symbol(r2b2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 59, 3)) >b > x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r2b3 = c > x; ->r2b3 : boolean +>r2b3 : boolean, Symbol(r2b3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 60, 3)) >c > x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r2b4 = d > x; ->r2b4 : boolean +>r2b4 : boolean, Symbol(r2b4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 61, 3)) >d > x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r2b5 = e > x; ->r2b5 : boolean +>r2b5 : boolean, Symbol(r2b5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 62, 3)) >e > x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r2b6 = f > x; ->r2b6 : boolean +>r2b6 : boolean, Symbol(r2b6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 63, 3)) >f > x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r2b7 = g > x; ->r2b7 : boolean +>r2b7 : boolean, Symbol(r2b7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 64, 3)) >g > x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) // operator <= var r3a1 = x <= a; ->r3a1 : boolean +>r3a1 : boolean, Symbol(r3a1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 67, 3)) >x <= a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) var r3a2 = x <= b; ->r3a2 : boolean +>r3a2 : boolean, Symbol(r3a2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 68, 3)) >x <= b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) var r3a3 = x <= c; ->r3a3 : boolean +>r3a3 : boolean, Symbol(r3a3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 69, 3)) >x <= c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) var r3a4 = x <= d; ->r3a4 : boolean +>r3a4 : boolean, Symbol(r3a4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 70, 3)) >x <= d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) var r3a5 = x <= e; ->r3a5 : boolean +>r3a5 : boolean, Symbol(r3a5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 71, 3)) >x <= e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) var r3a6 = x <= f; ->r3a6 : boolean +>r3a6 : boolean, Symbol(r3a6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 72, 3)) >x <= f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) var r3a7 = x <= g; ->r3a7 : boolean +>r3a7 : boolean, Symbol(r3a7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 73, 3)) >x <= g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) var r3b1 = a <= x; ->r3b1 : boolean +>r3b1 : boolean, Symbol(r3b1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 75, 3)) >a <= x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r3b2 = b <= x; ->r3b2 : boolean +>r3b2 : boolean, Symbol(r3b2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 76, 3)) >b <= x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r3b3 = c <= x; ->r3b3 : boolean +>r3b3 : boolean, Symbol(r3b3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 77, 3)) >c <= x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r3b4 = d <= x; ->r3b4 : boolean +>r3b4 : boolean, Symbol(r3b4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 78, 3)) >d <= x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r3b5 = e <= x; ->r3b5 : boolean +>r3b5 : boolean, Symbol(r3b5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 79, 3)) >e <= x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r3b6 = f <= x; ->r3b6 : boolean +>r3b6 : boolean, Symbol(r3b6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 80, 3)) >f <= x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r3b7 = g <= x; ->r3b7 : boolean +>r3b7 : boolean, Symbol(r3b7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 81, 3)) >g <= x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) // operator >= var r4a1 = x >= a; ->r4a1 : boolean +>r4a1 : boolean, Symbol(r4a1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 84, 3)) >x >= a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) var r4a2 = x >= b; ->r4a2 : boolean +>r4a2 : boolean, Symbol(r4a2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 85, 3)) >x >= b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) var r4a3 = x >= c; ->r4a3 : boolean +>r4a3 : boolean, Symbol(r4a3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 86, 3)) >x >= c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) var r4a4 = x >= d; ->r4a4 : boolean +>r4a4 : boolean, Symbol(r4a4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 87, 3)) >x >= d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) var r4a5 = x >= e; ->r4a5 : boolean +>r4a5 : boolean, Symbol(r4a5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 88, 3)) >x >= e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) var r4a6 = x >= f; ->r4a6 : boolean +>r4a6 : boolean, Symbol(r4a6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 89, 3)) >x >= f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) var r4a7 = x >= g; ->r4a7 : boolean +>r4a7 : boolean, Symbol(r4a7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 90, 3)) >x >= g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) var r4b1 = a >= x; ->r4b1 : boolean +>r4b1 : boolean, Symbol(r4b1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 92, 3)) >a >= x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r4b2 = b >= x; ->r4b2 : boolean +>r4b2 : boolean, Symbol(r4b2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 93, 3)) >b >= x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r4b3 = c >= x; ->r4b3 : boolean +>r4b3 : boolean, Symbol(r4b3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 94, 3)) >c >= x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r4b4 = d >= x; ->r4b4 : boolean +>r4b4 : boolean, Symbol(r4b4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 95, 3)) >d >= x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r4b5 = e >= x; ->r4b5 : boolean +>r4b5 : boolean, Symbol(r4b5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 96, 3)) >e >= x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r4b6 = f >= x; ->r4b6 : boolean +>r4b6 : boolean, Symbol(r4b6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 97, 3)) >f >= x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r4b7 = g >= x; ->r4b7 : boolean +>r4b7 : boolean, Symbol(r4b7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 98, 3)) >g >= x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) // operator == var r5a1 = x == a; ->r5a1 : boolean +>r5a1 : boolean, Symbol(r5a1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 101, 3)) >x == a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) var r5a2 = x == b; ->r5a2 : boolean +>r5a2 : boolean, Symbol(r5a2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 102, 3)) >x == b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) var r5a3 = x == c; ->r5a3 : boolean +>r5a3 : boolean, Symbol(r5a3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 103, 3)) >x == c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) var r5a4 = x == d; ->r5a4 : boolean +>r5a4 : boolean, Symbol(r5a4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 104, 3)) >x == d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) var r5a5 = x == e; ->r5a5 : boolean +>r5a5 : boolean, Symbol(r5a5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 105, 3)) >x == e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) var r5a6 = x == f; ->r5a6 : boolean +>r5a6 : boolean, Symbol(r5a6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 106, 3)) >x == f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) var r5a7 = x == g; ->r5a7 : boolean +>r5a7 : boolean, Symbol(r5a7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 107, 3)) >x == g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) var r5b1 = a == x; ->r5b1 : boolean +>r5b1 : boolean, Symbol(r5b1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 109, 3)) >a == x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r5b2 = b == x; ->r5b2 : boolean +>r5b2 : boolean, Symbol(r5b2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 110, 3)) >b == x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r5b3 = c == x; ->r5b3 : boolean +>r5b3 : boolean, Symbol(r5b3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 111, 3)) >c == x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r5b4 = d == x; ->r5b4 : boolean +>r5b4 : boolean, Symbol(r5b4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 112, 3)) >d == x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r5b5 = e == x; ->r5b5 : boolean +>r5b5 : boolean, Symbol(r5b5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 113, 3)) >e == x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r5b6 = f == x; ->r5b6 : boolean +>r5b6 : boolean, Symbol(r5b6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 114, 3)) >f == x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r5b7 = g == x; ->r5b7 : boolean +>r5b7 : boolean, Symbol(r5b7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 115, 3)) >g == x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) // operator != var r6a1 = x != a; ->r6a1 : boolean +>r6a1 : boolean, Symbol(r6a1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 118, 3)) >x != a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) var r6a2 = x != b; ->r6a2 : boolean +>r6a2 : boolean, Symbol(r6a2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 119, 3)) >x != b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) var r6a3 = x != c; ->r6a3 : boolean +>r6a3 : boolean, Symbol(r6a3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 120, 3)) >x != c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) var r6a4 = x != d; ->r6a4 : boolean +>r6a4 : boolean, Symbol(r6a4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 121, 3)) >x != d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) var r6a5 = x != e; ->r6a5 : boolean +>r6a5 : boolean, Symbol(r6a5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 122, 3)) >x != e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) var r6a6 = x != f; ->r6a6 : boolean +>r6a6 : boolean, Symbol(r6a6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 123, 3)) >x != f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) var r6a7 = x != g; ->r6a7 : boolean +>r6a7 : boolean, Symbol(r6a7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 124, 3)) >x != g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) var r6b1 = a != x; ->r6b1 : boolean +>r6b1 : boolean, Symbol(r6b1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 126, 3)) >a != x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r6b2 = b != x; ->r6b2 : boolean +>r6b2 : boolean, Symbol(r6b2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 127, 3)) >b != x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r6b3 = c != x; ->r6b3 : boolean +>r6b3 : boolean, Symbol(r6b3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 128, 3)) >c != x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r6b4 = d != x; ->r6b4 : boolean +>r6b4 : boolean, Symbol(r6b4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 129, 3)) >d != x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r6b5 = e != x; ->r6b5 : boolean +>r6b5 : boolean, Symbol(r6b5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 130, 3)) >e != x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r6b6 = f != x; ->r6b6 : boolean +>r6b6 : boolean, Symbol(r6b6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 131, 3)) >f != x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r6b7 = g != x; ->r6b7 : boolean +>r6b7 : boolean, Symbol(r6b7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 132, 3)) >g != x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) // operator === var r7a1 = x === a; ->r7a1 : boolean +>r7a1 : boolean, Symbol(r7a1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 135, 3)) >x === a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) var r7a2 = x === b; ->r7a2 : boolean +>r7a2 : boolean, Symbol(r7a2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 136, 3)) >x === b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) var r7a3 = x === c; ->r7a3 : boolean +>r7a3 : boolean, Symbol(r7a3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 137, 3)) >x === c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) var r7a4 = x === d; ->r7a4 : boolean +>r7a4 : boolean, Symbol(r7a4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 138, 3)) >x === d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) var r7a5 = x === e; ->r7a5 : boolean +>r7a5 : boolean, Symbol(r7a5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 139, 3)) >x === e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) var r7a6 = x === f; ->r7a6 : boolean +>r7a6 : boolean, Symbol(r7a6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 140, 3)) >x === f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) var r7a7 = x === g; ->r7a7 : boolean +>r7a7 : boolean, Symbol(r7a7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 141, 3)) >x === g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) var r7b1 = a === x; ->r7b1 : boolean +>r7b1 : boolean, Symbol(r7b1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 143, 3)) >a === x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r7b2 = b === x; ->r7b2 : boolean +>r7b2 : boolean, Symbol(r7b2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 144, 3)) >b === x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r7b3 = c === x; ->r7b3 : boolean +>r7b3 : boolean, Symbol(r7b3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 145, 3)) >c === x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r7b4 = d === x; ->r7b4 : boolean +>r7b4 : boolean, Symbol(r7b4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 146, 3)) >d === x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r7b5 = e === x; ->r7b5 : boolean +>r7b5 : boolean, Symbol(r7b5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 147, 3)) >e === x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r7b6 = f === x; ->r7b6 : boolean +>r7b6 : boolean, Symbol(r7b6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 148, 3)) >f === x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r7b7 = g === x; ->r7b7 : boolean +>r7b7 : boolean, Symbol(r7b7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 149, 3)) >g === x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) // operator !== var r8a1 = x !== a; ->r8a1 : boolean +>r8a1 : boolean, Symbol(r8a1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 152, 3)) >x !== a : boolean ->x : any ->a : boolean +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) var r8a2 = x !== b; ->r8a2 : boolean +>r8a2 : boolean, Symbol(r8a2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 153, 3)) >x !== b : boolean ->x : any ->b : number +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) var r8a3 = x !== c; ->r8a3 : boolean +>r8a3 : boolean, Symbol(r8a3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 154, 3)) >x !== c : boolean ->x : any ->c : string +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) var r8a4 = x !== d; ->r8a4 : boolean +>r8a4 : boolean, Symbol(r8a4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 155, 3)) >x !== d : boolean ->x : any ->d : void +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) var r8a5 = x !== e; ->r8a5 : boolean +>r8a5 : boolean, Symbol(r8a5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 156, 3)) >x !== e : boolean ->x : any ->e : E +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) var r8a6 = x !== f; ->r8a6 : boolean +>r8a6 : boolean, Symbol(r8a6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 157, 3)) >x !== f : boolean ->x : any ->f : {} +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) var r8a7 = x !== g; ->r8a7 : boolean +>r8a7 : boolean, Symbol(r8a7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 158, 3)) >x !== g : boolean ->x : any ->g : string[] +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) var r8b1 = a !== x; ->r8b1 : boolean +>r8b1 : boolean, Symbol(r8b1, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 160, 3)) >a !== x : boolean ->a : boolean ->x : any +>a : boolean, Symbol(a, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 24, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r8b2 = b !== x; ->r8b2 : boolean +>r8b2 : boolean, Symbol(r8b2, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 161, 3)) >b !== x : boolean ->b : number ->x : any +>b : number, Symbol(b, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 25, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r8b3 = c !== x; ->r8b3 : boolean +>r8b3 : boolean, Symbol(r8b3, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 162, 3)) >c !== x : boolean ->c : string ->x : any +>c : string, Symbol(c, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 26, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r8b4 = d !== x; ->r8b4 : boolean +>r8b4 : boolean, Symbol(r8b4, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 163, 3)) >d !== x : boolean ->d : void ->x : any +>d : void, Symbol(d, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 27, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r8b5 = e !== x; ->r8b5 : boolean +>r8b5 : boolean, Symbol(r8b5, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 164, 3)) >e !== x : boolean ->e : E ->x : any +>e : E, Symbol(e, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 28, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r8b6 = f !== x; ->r8b6 : boolean +>r8b6 : boolean, Symbol(r8b6, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 165, 3)) >f !== x : boolean ->f : {} ->x : any +>f : {}, Symbol(f, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 29, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) var r8b7 = g !== x; ->r8b7 : boolean +>r8b7 : boolean, Symbol(r8b7, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 166, 3)) >g !== x : boolean ->g : string[] ->x : any +>g : string[], Symbol(g, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 30, 3)) +>x : any, Symbol(x, Decl(comparisonOperatorWithOneOperandIsUndefined.ts, 0, 3)) diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeEnumAndNumber.types b/tests/baselines/reference/comparisonOperatorWithSubtypeEnumAndNumber.types index 2dfe5913a24..7ce401a422d 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeEnumAndNumber.types +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeEnumAndNumber.types @@ -1,358 +1,374 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeEnumAndNumber.ts === enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>b : E, Symbol(E.b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 11)) +>c : E, Symbol(E.c, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 14)) var a: E; ->a : E ->E : E +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) +>E : E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) var b: number; ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) // operator < var ra1 = a < b; ->ra1 : boolean +>ra1 : boolean, Symbol(ra1, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 6, 3)) >a < b : boolean ->a : E ->b : number +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var ra2 = b < a; ->ra2 : boolean +>ra2 : boolean, Symbol(ra2, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 7, 3)) >b < a : boolean ->b : number ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) var ra3 = E.a < b; ->ra3 : boolean +>ra3 : boolean, Symbol(ra3, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 8, 3)) >E.a < b : boolean ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var ra4 = b < E.a; ->ra4 : boolean +>ra4 : boolean, Symbol(ra4, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 9, 3)) >b < E.a : boolean ->b : number ->E.a : E ->E : typeof E ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) var ra5 = E.a < 0; ->ra5 : boolean +>ra5 : boolean, Symbol(ra5, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 10, 3)) >E.a < 0 : boolean ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>0 : number var ra6 = 0 < E.a; ->ra6 : boolean +>ra6 : boolean, Symbol(ra6, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 11, 3)) >0 < E.a : boolean ->E.a : E ->E : typeof E ->a : E +>0 : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) // operator > var rb1 = a > b; ->rb1 : boolean +>rb1 : boolean, Symbol(rb1, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 14, 3)) >a > b : boolean ->a : E ->b : number +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var rb2 = b > a; ->rb2 : boolean +>rb2 : boolean, Symbol(rb2, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 15, 3)) >b > a : boolean ->b : number ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) var rb3 = E.a > b; ->rb3 : boolean +>rb3 : boolean, Symbol(rb3, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 16, 3)) >E.a > b : boolean ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var rb4 = b > E.a; ->rb4 : boolean +>rb4 : boolean, Symbol(rb4, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 17, 3)) >b > E.a : boolean ->b : number ->E.a : E ->E : typeof E ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) var rb5 = E.a > 0; ->rb5 : boolean +>rb5 : boolean, Symbol(rb5, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 18, 3)) >E.a > 0 : boolean ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>0 : number var rb6 = 0 > E.a; ->rb6 : boolean +>rb6 : boolean, Symbol(rb6, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 19, 3)) >0 > E.a : boolean ->E.a : E ->E : typeof E ->a : E +>0 : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) // operator <= var rc1 = a <= b; ->rc1 : boolean +>rc1 : boolean, Symbol(rc1, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 22, 3)) >a <= b : boolean ->a : E ->b : number +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var rc2 = b <= a; ->rc2 : boolean +>rc2 : boolean, Symbol(rc2, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 23, 3)) >b <= a : boolean ->b : number ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) var rc3 = E.a <= b; ->rc3 : boolean +>rc3 : boolean, Symbol(rc3, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 24, 3)) >E.a <= b : boolean ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var rc4 = b <= E.a; ->rc4 : boolean +>rc4 : boolean, Symbol(rc4, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 25, 3)) >b <= E.a : boolean ->b : number ->E.a : E ->E : typeof E ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) var rc5 = E.a <= 0; ->rc5 : boolean +>rc5 : boolean, Symbol(rc5, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 26, 3)) >E.a <= 0 : boolean ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>0 : number var rc6 = 0 <= E.a; ->rc6 : boolean +>rc6 : boolean, Symbol(rc6, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 27, 3)) >0 <= E.a : boolean ->E.a : E ->E : typeof E ->a : E +>0 : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) // operator >= var rd1 = a >= b; ->rd1 : boolean +>rd1 : boolean, Symbol(rd1, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 30, 3)) >a >= b : boolean ->a : E ->b : number +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var rd2 = b >= a; ->rd2 : boolean +>rd2 : boolean, Symbol(rd2, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 31, 3)) >b >= a : boolean ->b : number ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) var rd3 = E.a >= b; ->rd3 : boolean +>rd3 : boolean, Symbol(rd3, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 32, 3)) >E.a >= b : boolean ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var rd4 = b >= E.a; ->rd4 : boolean +>rd4 : boolean, Symbol(rd4, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 33, 3)) >b >= E.a : boolean ->b : number ->E.a : E ->E : typeof E ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) var rd5 = E.a >= 0; ->rd5 : boolean +>rd5 : boolean, Symbol(rd5, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 34, 3)) >E.a >= 0 : boolean ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>0 : number var rd6 = 0 >= E.a; ->rd6 : boolean +>rd6 : boolean, Symbol(rd6, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 35, 3)) >0 >= E.a : boolean ->E.a : E ->E : typeof E ->a : E +>0 : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) // operator == var re1 = a == b; ->re1 : boolean +>re1 : boolean, Symbol(re1, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 38, 3)) >a == b : boolean ->a : E ->b : number +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var re2 = b == a; ->re2 : boolean +>re2 : boolean, Symbol(re2, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 39, 3)) >b == a : boolean ->b : number ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) var re3 = E.a == b; ->re3 : boolean +>re3 : boolean, Symbol(re3, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 40, 3)) >E.a == b : boolean ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var re4 = b == E.a; ->re4 : boolean +>re4 : boolean, Symbol(re4, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 41, 3)) >b == E.a : boolean ->b : number ->E.a : E ->E : typeof E ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) var re5 = E.a == 0; ->re5 : boolean +>re5 : boolean, Symbol(re5, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 42, 3)) >E.a == 0 : boolean ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>0 : number var re6 = 0 == E.a; ->re6 : boolean +>re6 : boolean, Symbol(re6, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 43, 3)) >0 == E.a : boolean ->E.a : E ->E : typeof E ->a : E +>0 : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) // operator != var rf1 = a != b; ->rf1 : boolean +>rf1 : boolean, Symbol(rf1, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 46, 3)) >a != b : boolean ->a : E ->b : number +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var rf2 = b != a; ->rf2 : boolean +>rf2 : boolean, Symbol(rf2, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 47, 3)) >b != a : boolean ->b : number ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) var rf3 = E.a != b; ->rf3 : boolean +>rf3 : boolean, Symbol(rf3, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 48, 3)) >E.a != b : boolean ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var rf4 = b != E.a; ->rf4 : boolean +>rf4 : boolean, Symbol(rf4, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 49, 3)) >b != E.a : boolean ->b : number ->E.a : E ->E : typeof E ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) var rf5 = E.a != 0; ->rf5 : boolean +>rf5 : boolean, Symbol(rf5, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 50, 3)) >E.a != 0 : boolean ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>0 : number var rf6 = 0 != E.a; ->rf6 : boolean +>rf6 : boolean, Symbol(rf6, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 51, 3)) >0 != E.a : boolean ->E.a : E ->E : typeof E ->a : E +>0 : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) // operator === var rg1 = a === b; ->rg1 : boolean +>rg1 : boolean, Symbol(rg1, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 54, 3)) >a === b : boolean ->a : E ->b : number +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var rg2 = b === a; ->rg2 : boolean +>rg2 : boolean, Symbol(rg2, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 55, 3)) >b === a : boolean ->b : number ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) var rg3 = E.a === b; ->rg3 : boolean +>rg3 : boolean, Symbol(rg3, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 56, 3)) >E.a === b : boolean ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var rg4 = b === E.a; ->rg4 : boolean +>rg4 : boolean, Symbol(rg4, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 57, 3)) >b === E.a : boolean ->b : number ->E.a : E ->E : typeof E ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) var rg5 = E.a === 0; ->rg5 : boolean +>rg5 : boolean, Symbol(rg5, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 58, 3)) >E.a === 0 : boolean ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>0 : number var rg6 = 0 === E.a; ->rg6 : boolean +>rg6 : boolean, Symbol(rg6, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 59, 3)) >0 === E.a : boolean ->E.a : E ->E : typeof E ->a : E +>0 : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) // operator !== var rh1 = a !== b; ->rh1 : boolean +>rh1 : boolean, Symbol(rh1, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 62, 3)) >a !== b : boolean ->a : E ->b : number +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var rh2 = b !== a; ->rh2 : boolean +>rh2 : boolean, Symbol(rh2, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 63, 3)) >b !== a : boolean ->b : number ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>a : E, Symbol(a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 2, 3)) var rh3 = E.a !== b; ->rh3 : boolean +>rh3 : boolean, Symbol(rh3, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 64, 3)) >E.a !== b : boolean ->E.a : E ->E : typeof E ->a : E ->b : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) var rh4 = b !== E.a; ->rh4 : boolean +>rh4 : boolean, Symbol(rh4, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 65, 3)) >b !== E.a : boolean ->b : number ->E.a : E ->E : typeof E ->a : E +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 3, 3)) +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) var rh5 = E.a !== 0; ->rh5 : boolean +>rh5 : boolean, Symbol(rh5, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 66, 3)) >E.a !== 0 : boolean ->E.a : E ->E : typeof E ->a : E +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>0 : number var rh6 = 0 !== E.a; ->rh6 : boolean +>rh6 : boolean, Symbol(rh6, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 67, 3)) >0 !== E.a : boolean ->E.a : E ->E : typeof E ->a : E +>0 : number +>E.a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(comparisonOperatorWithSubtypeEnumAndNumber.ts, 0, 8)) diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.types b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.types index b3a972958b3..6a2fc5c2a98 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.types +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.types @@ -1,1236 +1,1236 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnCallSignature.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 0, 0)) public a: string; ->a : string +>a : string, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 0, 12)) } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 0, 0)) public b: string; ->b : string +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 4, 28)) } var a1: { fn(): void }; ->a1 : { fn(): void; } ->fn : () => void +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) +>fn : () => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 9)) var b1: { fn(): void }; ->b1 : { fn(): void; } ->fn : () => void +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) +>fn : () => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 9)) var a2: { fn(a: number, b: string): void }; ->a2 : { fn(a: number, b: string): void; } ->fn : (a: number, b: string) => void ->a : number ->b : string +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) +>fn : (a: number, b: string) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 9)) +>a : number, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 13)) +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 23)) var b2: { fn(a: number, b: string): void }; ->b2 : { fn(a: number, b: string): void; } ->fn : (a: number, b: string) => void ->a : number ->b : string +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) +>fn : (a: number, b: string) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 9)) +>a : number, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 13)) +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 23)) var a3: { fn(a: number, b: string): void }; ->a3 : { fn(a: number, b: string): void; } ->fn : (a: number, b: string) => void ->a : number ->b : string +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) +>fn : (a: number, b: string) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 9)) +>a : number, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 13)) +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 23)) var b3: { fn(a: number): void }; ->b3 : { fn(a: number): void; } ->fn : (a: number) => void ->a : number +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) +>fn : (a: number) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 9)) +>a : number, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 13)) var a4: { fn(a: number, b: string): void }; ->a4 : { fn(a: number, b: string): void; } ->fn : (a: number, b: string) => void ->a : number ->b : string +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) +>fn : (a: number, b: string) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 9)) +>a : number, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 13)) +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 23)) var b4: { fn(): void }; ->b4 : { fn(): void; } ->fn : () => void +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) +>fn : () => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 9)) var a5: { fn(a: Base): void }; ->a5 : { fn(a: Base): void; } ->fn : (a: Base) => void ->a : Base ->Base : Base +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) +>fn : (a: Base) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 9)) +>a : Base, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 13)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 0, 0)) var b5: { fn(a: Derived): void }; ->b5 : { fn(a: Derived): void; } ->fn : (a: Derived) => void ->a : Derived ->Derived : Derived +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) +>fn : (a: Derived) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 9)) +>a : Derived, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 13)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 2, 1)) var a6: { fn(a: Derived, b: Base): void }; ->a6 : { fn(a: Derived, b: Base): void; } ->fn : (a: Derived, b: Base) => void ->a : Derived ->Derived : Derived ->b : Base ->Base : Base +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) +>fn : (a: Derived, b: Base) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 9)) +>a : Derived, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 13)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 2, 1)) +>b : Base, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 24)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 0, 0)) var b6: { fn(a: Base, b: Derived): void }; ->b6 : { fn(a: Base, b: Derived): void; } ->fn : (a: Base, b: Derived) => void ->a : Base ->Base : Base ->b : Derived ->Derived : Derived +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) +>fn : (a: Base, b: Derived) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 9)) +>a : Base, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 13)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 0, 0)) +>b : Derived, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 21)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 2, 1)) var a7: { fn(): void }; ->a7 : { fn(): void; } ->fn : () => void +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) +>fn : () => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 9)) var b7: { fn(): Base }; ->b7 : { fn(): Base; } ->fn : () => Base ->Base : Base +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) +>fn : () => Base, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 9)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 0, 0)) var a8: { fn(): Base }; ->a8 : { fn(): Base; } ->fn : () => Base ->Base : Base +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) +>fn : () => Base, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 9)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 0, 0)) var b8: { fn(): Base }; ->b8 : { fn(): Base; } ->fn : () => Base ->Base : Base +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) +>fn : () => Base, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 9)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 0, 0)) var a9: { fn(): Base }; ->a9 : { fn(): Base; } ->fn : () => Base ->Base : Base +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) +>fn : () => Base, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 9)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 0, 0)) var b9: { fn(): Derived }; ->b9 : { fn(): Derived; } ->fn : () => Derived ->Derived : Derived +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) +>fn : () => Derived, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 9)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 2, 1)) var a10: { fn(a?: Base): void }; ->a10 : { fn(a?: Base): void; } ->fn : (a?: Base) => void ->a : Base ->Base : Base +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) +>fn : (a?: Base) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 10)) +>a : Base, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 14)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 0, 0)) var b10: { fn(a?: Derived): void }; ->b10 : { fn(a?: Derived): void; } ->fn : (a?: Derived) => void ->a : Derived ->Derived : Derived +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) +>fn : (a?: Derived) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 10)) +>a : Derived, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 14)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 2, 1)) var a11: { fn(...a: Base[]): void }; ->a11 : { fn(...a: Base[]): void; } ->fn : (...a: Base[]) => void ->a : Base[] ->Base : Base +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) +>fn : (...a: Base[]) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 10)) +>a : Base[], Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 14)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 0, 0)) var b11: { fn(...a: Derived[]): void }; ->b11 : { fn(...a: Derived[]): void; } ->fn : (...a: Derived[]) => void ->a : Derived[] ->Derived : Derived +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) +>fn : (...a: Derived[]) => void, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 10)) +>a : Derived[], Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 14)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 2, 1)) //var a12: { fn(t: T, u: U): T[] }; //var b12: { fn(a: A, b: B): A[] }; // operator < var r1a1 = a1 < b1; ->r1a1 : boolean +>r1a1 : boolean, Symbol(r1a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 45, 3)) >a1 < b1 : boolean ->a1 : { fn(): void; } ->b1 : { fn(): void; } +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) var r1a2 = a2 < b2; ->r1a2 : boolean +>r1a2 : boolean, Symbol(r1a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 46, 3)) >a2 < b2 : boolean ->a2 : { fn(a: number, b: string): void; } ->b2 : { fn(a: number, b: string): void; } +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) var r1a3 = a3 < b3; ->r1a3 : boolean +>r1a3 : boolean, Symbol(r1a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 47, 3)) >a3 < b3 : boolean ->a3 : { fn(a: number, b: string): void; } ->b3 : { fn(a: number): void; } +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) var r1a4 = a4 < b4; ->r1a4 : boolean +>r1a4 : boolean, Symbol(r1a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 48, 3)) >a4 < b4 : boolean ->a4 : { fn(a: number, b: string): void; } ->b4 : { fn(): void; } +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) var r1a5 = a5 < b5; ->r1a5 : boolean +>r1a5 : boolean, Symbol(r1a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 49, 3)) >a5 < b5 : boolean ->a5 : { fn(a: Base): void; } ->b5 : { fn(a: Derived): void; } +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) var r1a6 = a6 < b6; ->r1a6 : boolean +>r1a6 : boolean, Symbol(r1a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 50, 3)) >a6 < b6 : boolean ->a6 : { fn(a: Derived, b: Base): void; } ->b6 : { fn(a: Base, b: Derived): void; } +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) var r1a7 = a7 < b7; ->r1a7 : boolean +>r1a7 : boolean, Symbol(r1a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 51, 3)) >a7 < b7 : boolean ->a7 : { fn(): void; } ->b7 : { fn(): Base; } +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) var r1a8 = a8 < b8; ->r1a8 : boolean +>r1a8 : boolean, Symbol(r1a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 52, 3)) >a8 < b8 : boolean ->a8 : { fn(): Base; } ->b8 : { fn(): Base; } +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) var r1a9 = a9 < b9; ->r1a9 : boolean +>r1a9 : boolean, Symbol(r1a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 53, 3)) >a9 < b9 : boolean ->a9 : { fn(): Base; } ->b9 : { fn(): Derived; } +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) var r1a10 = a10 < b10; ->r1a10 : boolean +>r1a10 : boolean, Symbol(r1a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 54, 3)) >a10 < b10 : boolean ->a10 : { fn(a?: Base): void; } ->b10 : { fn(a?: Derived): void; } +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) var r1a11 = a11 < b11; ->r1a11 : boolean +>r1a11 : boolean, Symbol(r1a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 55, 3)) >a11 < b11 : boolean ->a11 : { fn(...a: Base[]): void; } ->b11 : { fn(...a: Derived[]): void; } +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) //var r1a12 = a12 < b12; var r1b1 = b1 < a1; ->r1b1 : boolean +>r1b1 : boolean, Symbol(r1b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 58, 3)) >b1 < a1 : boolean ->b1 : { fn(): void; } ->a1 : { fn(): void; } +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) var r1b2 = b2 < a2; ->r1b2 : boolean +>r1b2 : boolean, Symbol(r1b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 59, 3)) >b2 < a2 : boolean ->b2 : { fn(a: number, b: string): void; } ->a2 : { fn(a: number, b: string): void; } +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) var r1b3 = b3 < a3; ->r1b3 : boolean +>r1b3 : boolean, Symbol(r1b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 60, 3)) >b3 < a3 : boolean ->b3 : { fn(a: number): void; } ->a3 : { fn(a: number, b: string): void; } +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) var r1b4 = b4 < a4; ->r1b4 : boolean +>r1b4 : boolean, Symbol(r1b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 61, 3)) >b4 < a4 : boolean ->b4 : { fn(): void; } ->a4 : { fn(a: number, b: string): void; } +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) var r1b5 = b5 < a5; ->r1b5 : boolean +>r1b5 : boolean, Symbol(r1b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 62, 3)) >b5 < a5 : boolean ->b5 : { fn(a: Derived): void; } ->a5 : { fn(a: Base): void; } +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) var r1b6 = b6 < a6; ->r1b6 : boolean +>r1b6 : boolean, Symbol(r1b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 63, 3)) >b6 < a6 : boolean ->b6 : { fn(a: Base, b: Derived): void; } ->a6 : { fn(a: Derived, b: Base): void; } +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) var r1b7 = b7 < a7; ->r1b7 : boolean +>r1b7 : boolean, Symbol(r1b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 64, 3)) >b7 < a7 : boolean ->b7 : { fn(): Base; } ->a7 : { fn(): void; } +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) var r1b8 = b8 < a8; ->r1b8 : boolean +>r1b8 : boolean, Symbol(r1b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 65, 3)) >b8 < a8 : boolean ->b8 : { fn(): Base; } ->a8 : { fn(): Base; } +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) var r1b9 = b9 < a9; ->r1b9 : boolean +>r1b9 : boolean, Symbol(r1b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 66, 3)) >b9 < a9 : boolean ->b9 : { fn(): Derived; } ->a9 : { fn(): Base; } +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) var r1b10 = b10 < a10; ->r1b10 : boolean +>r1b10 : boolean, Symbol(r1b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 67, 3)) >b10 < a10 : boolean ->b10 : { fn(a?: Derived): void; } ->a10 : { fn(a?: Base): void; } +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) var r1b11 = b11 < a11; ->r1b11 : boolean +>r1b11 : boolean, Symbol(r1b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 68, 3)) >b11 < a11 : boolean ->b11 : { fn(...a: Derived[]): void; } ->a11 : { fn(...a: Base[]): void; } +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) //var r1b12 = b12 < a12; // operator > var r2a1 = a1 > b1; ->r2a1 : boolean +>r2a1 : boolean, Symbol(r2a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 72, 3)) >a1 > b1 : boolean ->a1 : { fn(): void; } ->b1 : { fn(): void; } +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) var r2a2 = a2 > b2; ->r2a2 : boolean +>r2a2 : boolean, Symbol(r2a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 73, 3)) >a2 > b2 : boolean ->a2 : { fn(a: number, b: string): void; } ->b2 : { fn(a: number, b: string): void; } +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) var r2a3 = a3 > b3; ->r2a3 : boolean +>r2a3 : boolean, Symbol(r2a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 74, 3)) >a3 > b3 : boolean ->a3 : { fn(a: number, b: string): void; } ->b3 : { fn(a: number): void; } +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) var r2a4 = a4 > b4; ->r2a4 : boolean +>r2a4 : boolean, Symbol(r2a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 75, 3)) >a4 > b4 : boolean ->a4 : { fn(a: number, b: string): void; } ->b4 : { fn(): void; } +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) var r2a5 = a5 > b5; ->r2a5 : boolean +>r2a5 : boolean, Symbol(r2a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 76, 3)) >a5 > b5 : boolean ->a5 : { fn(a: Base): void; } ->b5 : { fn(a: Derived): void; } +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) var r2a6 = a6 > b6; ->r2a6 : boolean +>r2a6 : boolean, Symbol(r2a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 77, 3)) >a6 > b6 : boolean ->a6 : { fn(a: Derived, b: Base): void; } ->b6 : { fn(a: Base, b: Derived): void; } +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) var r2a7 = a7 > b7; ->r2a7 : boolean +>r2a7 : boolean, Symbol(r2a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 78, 3)) >a7 > b7 : boolean ->a7 : { fn(): void; } ->b7 : { fn(): Base; } +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) var r2a8 = a8 > b8; ->r2a8 : boolean +>r2a8 : boolean, Symbol(r2a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 79, 3)) >a8 > b8 : boolean ->a8 : { fn(): Base; } ->b8 : { fn(): Base; } +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) var r2a9 = a9 > b9; ->r2a9 : boolean +>r2a9 : boolean, Symbol(r2a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 80, 3)) >a9 > b9 : boolean ->a9 : { fn(): Base; } ->b9 : { fn(): Derived; } +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) var r2a10 = a10 > b10; ->r2a10 : boolean +>r2a10 : boolean, Symbol(r2a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 81, 3)) >a10 > b10 : boolean ->a10 : { fn(a?: Base): void; } ->b10 : { fn(a?: Derived): void; } +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) var r2a11 = a11 > b11; ->r2a11 : boolean +>r2a11 : boolean, Symbol(r2a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 82, 3)) >a11 > b11 : boolean ->a11 : { fn(...a: Base[]): void; } ->b11 : { fn(...a: Derived[]): void; } +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) //var r2a12 = a12 > b12; var r2b1 = b1 > a1; ->r2b1 : boolean +>r2b1 : boolean, Symbol(r2b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 85, 3)) >b1 > a1 : boolean ->b1 : { fn(): void; } ->a1 : { fn(): void; } +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) var r2b2 = b2 > a2; ->r2b2 : boolean +>r2b2 : boolean, Symbol(r2b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 86, 3)) >b2 > a2 : boolean ->b2 : { fn(a: number, b: string): void; } ->a2 : { fn(a: number, b: string): void; } +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) var r2b3 = b3 > a3; ->r2b3 : boolean +>r2b3 : boolean, Symbol(r2b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 87, 3)) >b3 > a3 : boolean ->b3 : { fn(a: number): void; } ->a3 : { fn(a: number, b: string): void; } +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) var r2b4 = b4 > a4; ->r2b4 : boolean +>r2b4 : boolean, Symbol(r2b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 88, 3)) >b4 > a4 : boolean ->b4 : { fn(): void; } ->a4 : { fn(a: number, b: string): void; } +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) var r2b5 = b5 > a5; ->r2b5 : boolean +>r2b5 : boolean, Symbol(r2b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 89, 3)) >b5 > a5 : boolean ->b5 : { fn(a: Derived): void; } ->a5 : { fn(a: Base): void; } +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) var r2b6 = b6 > a6; ->r2b6 : boolean +>r2b6 : boolean, Symbol(r2b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 90, 3)) >b6 > a6 : boolean ->b6 : { fn(a: Base, b: Derived): void; } ->a6 : { fn(a: Derived, b: Base): void; } +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) var r2b7 = b7 > a7; ->r2b7 : boolean +>r2b7 : boolean, Symbol(r2b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 91, 3)) >b7 > a7 : boolean ->b7 : { fn(): Base; } ->a7 : { fn(): void; } +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) var r2b8 = b8 > a8; ->r2b8 : boolean +>r2b8 : boolean, Symbol(r2b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 92, 3)) >b8 > a8 : boolean ->b8 : { fn(): Base; } ->a8 : { fn(): Base; } +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) var r2b9 = b9 > a9; ->r2b9 : boolean +>r2b9 : boolean, Symbol(r2b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 93, 3)) >b9 > a9 : boolean ->b9 : { fn(): Derived; } ->a9 : { fn(): Base; } +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) var r2b10 = b10 > a10; ->r2b10 : boolean +>r2b10 : boolean, Symbol(r2b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 94, 3)) >b10 > a10 : boolean ->b10 : { fn(a?: Derived): void; } ->a10 : { fn(a?: Base): void; } +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) var r2b11 = b11 > a11; ->r2b11 : boolean +>r2b11 : boolean, Symbol(r2b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 95, 3)) >b11 > a11 : boolean ->b11 : { fn(...a: Derived[]): void; } ->a11 : { fn(...a: Base[]): void; } +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) //var r2b12 = b12 > a12; // operator <= var r3a1 = a1 <= b1; ->r3a1 : boolean +>r3a1 : boolean, Symbol(r3a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 99, 3)) >a1 <= b1 : boolean ->a1 : { fn(): void; } ->b1 : { fn(): void; } +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) var r3a2 = a2 <= b2; ->r3a2 : boolean +>r3a2 : boolean, Symbol(r3a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 100, 3)) >a2 <= b2 : boolean ->a2 : { fn(a: number, b: string): void; } ->b2 : { fn(a: number, b: string): void; } +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) var r3a3 = a3 <= b3; ->r3a3 : boolean +>r3a3 : boolean, Symbol(r3a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 101, 3)) >a3 <= b3 : boolean ->a3 : { fn(a: number, b: string): void; } ->b3 : { fn(a: number): void; } +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) var r3a4 = a4 <= b4; ->r3a4 : boolean +>r3a4 : boolean, Symbol(r3a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 102, 3)) >a4 <= b4 : boolean ->a4 : { fn(a: number, b: string): void; } ->b4 : { fn(): void; } +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) var r3a5 = a5 <= b5; ->r3a5 : boolean +>r3a5 : boolean, Symbol(r3a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 103, 3)) >a5 <= b5 : boolean ->a5 : { fn(a: Base): void; } ->b5 : { fn(a: Derived): void; } +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) var r3a6 = a6 <= b6; ->r3a6 : boolean +>r3a6 : boolean, Symbol(r3a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 104, 3)) >a6 <= b6 : boolean ->a6 : { fn(a: Derived, b: Base): void; } ->b6 : { fn(a: Base, b: Derived): void; } +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) var r3a7 = a7 <= b7; ->r3a7 : boolean +>r3a7 : boolean, Symbol(r3a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 105, 3)) >a7 <= b7 : boolean ->a7 : { fn(): void; } ->b7 : { fn(): Base; } +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) var r3a8 = a8 <= b8; ->r3a8 : boolean +>r3a8 : boolean, Symbol(r3a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 106, 3)) >a8 <= b8 : boolean ->a8 : { fn(): Base; } ->b8 : { fn(): Base; } +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) var r3a9 = a9 <= b9; ->r3a9 : boolean +>r3a9 : boolean, Symbol(r3a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 107, 3)) >a9 <= b9 : boolean ->a9 : { fn(): Base; } ->b9 : { fn(): Derived; } +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) var r3a10 = a10 <= b10; ->r3a10 : boolean +>r3a10 : boolean, Symbol(r3a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 108, 3)) >a10 <= b10 : boolean ->a10 : { fn(a?: Base): void; } ->b10 : { fn(a?: Derived): void; } +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) var r3a11 = a11 <= b11; ->r3a11 : boolean +>r3a11 : boolean, Symbol(r3a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 109, 3)) >a11 <= b11 : boolean ->a11 : { fn(...a: Base[]): void; } ->b11 : { fn(...a: Derived[]): void; } +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) //var r3a12 = a12 <= b12; var r3b1 = b1 <= a1; ->r3b1 : boolean +>r3b1 : boolean, Symbol(r3b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 112, 3)) >b1 <= a1 : boolean ->b1 : { fn(): void; } ->a1 : { fn(): void; } +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) var r3b2 = b2 <= a2; ->r3b2 : boolean +>r3b2 : boolean, Symbol(r3b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 113, 3)) >b2 <= a2 : boolean ->b2 : { fn(a: number, b: string): void; } ->a2 : { fn(a: number, b: string): void; } +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) var r3b3 = b3 <= a3; ->r3b3 : boolean +>r3b3 : boolean, Symbol(r3b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 114, 3)) >b3 <= a3 : boolean ->b3 : { fn(a: number): void; } ->a3 : { fn(a: number, b: string): void; } +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) var r3b4 = b4 <= a4; ->r3b4 : boolean +>r3b4 : boolean, Symbol(r3b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 115, 3)) >b4 <= a4 : boolean ->b4 : { fn(): void; } ->a4 : { fn(a: number, b: string): void; } +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) var r3b5 = b5 <= a5; ->r3b5 : boolean +>r3b5 : boolean, Symbol(r3b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 116, 3)) >b5 <= a5 : boolean ->b5 : { fn(a: Derived): void; } ->a5 : { fn(a: Base): void; } +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) var r3b6 = b6 <= a6; ->r3b6 : boolean +>r3b6 : boolean, Symbol(r3b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 117, 3)) >b6 <= a6 : boolean ->b6 : { fn(a: Base, b: Derived): void; } ->a6 : { fn(a: Derived, b: Base): void; } +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) var r3b7 = b7 <= a7; ->r3b7 : boolean +>r3b7 : boolean, Symbol(r3b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 118, 3)) >b7 <= a7 : boolean ->b7 : { fn(): Base; } ->a7 : { fn(): void; } +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) var r3b8 = b8 <= a8; ->r3b8 : boolean +>r3b8 : boolean, Symbol(r3b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 119, 3)) >b8 <= a8 : boolean ->b8 : { fn(): Base; } ->a8 : { fn(): Base; } +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) var r3b9 = b9 <= a9; ->r3b9 : boolean +>r3b9 : boolean, Symbol(r3b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 120, 3)) >b9 <= a9 : boolean ->b9 : { fn(): Derived; } ->a9 : { fn(): Base; } +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) var r3b10 = b10 <= a10; ->r3b10 : boolean +>r3b10 : boolean, Symbol(r3b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 121, 3)) >b10 <= a10 : boolean ->b10 : { fn(a?: Derived): void; } ->a10 : { fn(a?: Base): void; } +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) var r3b11 = b11 <= a11; ->r3b11 : boolean +>r3b11 : boolean, Symbol(r3b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 122, 3)) >b11 <= a11 : boolean ->b11 : { fn(...a: Derived[]): void; } ->a11 : { fn(...a: Base[]): void; } +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) //var r3b12 = b12 <= a12; // operator >= var r4a1 = a1 >= b1; ->r4a1 : boolean +>r4a1 : boolean, Symbol(r4a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 126, 3)) >a1 >= b1 : boolean ->a1 : { fn(): void; } ->b1 : { fn(): void; } +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) var r4a2 = a2 >= b2; ->r4a2 : boolean +>r4a2 : boolean, Symbol(r4a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 127, 3)) >a2 >= b2 : boolean ->a2 : { fn(a: number, b: string): void; } ->b2 : { fn(a: number, b: string): void; } +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) var r4a3 = a3 >= b3; ->r4a3 : boolean +>r4a3 : boolean, Symbol(r4a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 128, 3)) >a3 >= b3 : boolean ->a3 : { fn(a: number, b: string): void; } ->b3 : { fn(a: number): void; } +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) var r4a4 = a4 >= b4; ->r4a4 : boolean +>r4a4 : boolean, Symbol(r4a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 129, 3)) >a4 >= b4 : boolean ->a4 : { fn(a: number, b: string): void; } ->b4 : { fn(): void; } +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) var r4a5 = a5 >= b5; ->r4a5 : boolean +>r4a5 : boolean, Symbol(r4a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 130, 3)) >a5 >= b5 : boolean ->a5 : { fn(a: Base): void; } ->b5 : { fn(a: Derived): void; } +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) var r4a6 = a6 >= b6; ->r4a6 : boolean +>r4a6 : boolean, Symbol(r4a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 131, 3)) >a6 >= b6 : boolean ->a6 : { fn(a: Derived, b: Base): void; } ->b6 : { fn(a: Base, b: Derived): void; } +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) var r4a7 = a7 >= b7; ->r4a7 : boolean +>r4a7 : boolean, Symbol(r4a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 132, 3)) >a7 >= b7 : boolean ->a7 : { fn(): void; } ->b7 : { fn(): Base; } +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) var r4a8 = a8 >= b8; ->r4a8 : boolean +>r4a8 : boolean, Symbol(r4a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 133, 3)) >a8 >= b8 : boolean ->a8 : { fn(): Base; } ->b8 : { fn(): Base; } +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) var r4a9 = a9 >= b9; ->r4a9 : boolean +>r4a9 : boolean, Symbol(r4a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 134, 3)) >a9 >= b9 : boolean ->a9 : { fn(): Base; } ->b9 : { fn(): Derived; } +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) var r4a10 = a10 >= b10; ->r4a10 : boolean +>r4a10 : boolean, Symbol(r4a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 135, 3)) >a10 >= b10 : boolean ->a10 : { fn(a?: Base): void; } ->b10 : { fn(a?: Derived): void; } +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) var r4a11 = a11 >= b11; ->r4a11 : boolean +>r4a11 : boolean, Symbol(r4a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 136, 3)) >a11 >= b11 : boolean ->a11 : { fn(...a: Base[]): void; } ->b11 : { fn(...a: Derived[]): void; } +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) //var r4a12 = a12 >= b12; var r4b1 = b1 >= a1; ->r4b1 : boolean +>r4b1 : boolean, Symbol(r4b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 139, 3)) >b1 >= a1 : boolean ->b1 : { fn(): void; } ->a1 : { fn(): void; } +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) var r4b2 = b2 >= a2; ->r4b2 : boolean +>r4b2 : boolean, Symbol(r4b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 140, 3)) >b2 >= a2 : boolean ->b2 : { fn(a: number, b: string): void; } ->a2 : { fn(a: number, b: string): void; } +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) var r4b3 = b3 >= a3; ->r4b3 : boolean +>r4b3 : boolean, Symbol(r4b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 141, 3)) >b3 >= a3 : boolean ->b3 : { fn(a: number): void; } ->a3 : { fn(a: number, b: string): void; } +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) var r4b4 = b4 >= a4; ->r4b4 : boolean +>r4b4 : boolean, Symbol(r4b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 142, 3)) >b4 >= a4 : boolean ->b4 : { fn(): void; } ->a4 : { fn(a: number, b: string): void; } +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) var r4b5 = b5 >= a5; ->r4b5 : boolean +>r4b5 : boolean, Symbol(r4b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 143, 3)) >b5 >= a5 : boolean ->b5 : { fn(a: Derived): void; } ->a5 : { fn(a: Base): void; } +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) var r4b6 = b6 >= a6; ->r4b6 : boolean +>r4b6 : boolean, Symbol(r4b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 144, 3)) >b6 >= a6 : boolean ->b6 : { fn(a: Base, b: Derived): void; } ->a6 : { fn(a: Derived, b: Base): void; } +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) var r4b7 = b7 >= a7; ->r4b7 : boolean +>r4b7 : boolean, Symbol(r4b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 145, 3)) >b7 >= a7 : boolean ->b7 : { fn(): Base; } ->a7 : { fn(): void; } +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) var r4b8 = b8 >= a8; ->r4b8 : boolean +>r4b8 : boolean, Symbol(r4b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 146, 3)) >b8 >= a8 : boolean ->b8 : { fn(): Base; } ->a8 : { fn(): Base; } +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) var r4b9 = b9 >= a9; ->r4b9 : boolean +>r4b9 : boolean, Symbol(r4b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 147, 3)) >b9 >= a9 : boolean ->b9 : { fn(): Derived; } ->a9 : { fn(): Base; } +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) var r4b10 = b10 >= a10; ->r4b10 : boolean +>r4b10 : boolean, Symbol(r4b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 148, 3)) >b10 >= a10 : boolean ->b10 : { fn(a?: Derived): void; } ->a10 : { fn(a?: Base): void; } +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) var r4b11 = b11 >= a11; ->r4b11 : boolean +>r4b11 : boolean, Symbol(r4b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 149, 3)) >b11 >= a11 : boolean ->b11 : { fn(...a: Derived[]): void; } ->a11 : { fn(...a: Base[]): void; } +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) //var r4b12 = b12 >= a12; // operator == var r5a1 = a1 == b1; ->r5a1 : boolean +>r5a1 : boolean, Symbol(r5a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 153, 3)) >a1 == b1 : boolean ->a1 : { fn(): void; } ->b1 : { fn(): void; } +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) var r5a2 = a2 == b2; ->r5a2 : boolean +>r5a2 : boolean, Symbol(r5a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 154, 3)) >a2 == b2 : boolean ->a2 : { fn(a: number, b: string): void; } ->b2 : { fn(a: number, b: string): void; } +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) var r5a3 = a3 == b3; ->r5a3 : boolean +>r5a3 : boolean, Symbol(r5a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 155, 3)) >a3 == b3 : boolean ->a3 : { fn(a: number, b: string): void; } ->b3 : { fn(a: number): void; } +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) var r5a4 = a4 == b4; ->r5a4 : boolean +>r5a4 : boolean, Symbol(r5a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 156, 3)) >a4 == b4 : boolean ->a4 : { fn(a: number, b: string): void; } ->b4 : { fn(): void; } +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) var r5a5 = a5 == b5; ->r5a5 : boolean +>r5a5 : boolean, Symbol(r5a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 157, 3)) >a5 == b5 : boolean ->a5 : { fn(a: Base): void; } ->b5 : { fn(a: Derived): void; } +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) var r5a6 = a6 == b6; ->r5a6 : boolean +>r5a6 : boolean, Symbol(r5a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 158, 3)) >a6 == b6 : boolean ->a6 : { fn(a: Derived, b: Base): void; } ->b6 : { fn(a: Base, b: Derived): void; } +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) var r5a7 = a7 == b7; ->r5a7 : boolean +>r5a7 : boolean, Symbol(r5a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 159, 3)) >a7 == b7 : boolean ->a7 : { fn(): void; } ->b7 : { fn(): Base; } +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) var r5a8 = a8 == b8; ->r5a8 : boolean +>r5a8 : boolean, Symbol(r5a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 160, 3)) >a8 == b8 : boolean ->a8 : { fn(): Base; } ->b8 : { fn(): Base; } +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) var r5a9 = a9 == b9; ->r5a9 : boolean +>r5a9 : boolean, Symbol(r5a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 161, 3)) >a9 == b9 : boolean ->a9 : { fn(): Base; } ->b9 : { fn(): Derived; } +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) var r5a10 = a10 == b10; ->r5a10 : boolean +>r5a10 : boolean, Symbol(r5a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 162, 3)) >a10 == b10 : boolean ->a10 : { fn(a?: Base): void; } ->b10 : { fn(a?: Derived): void; } +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) var r5a11 = a11 == b11; ->r5a11 : boolean +>r5a11 : boolean, Symbol(r5a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 163, 3)) >a11 == b11 : boolean ->a11 : { fn(...a: Base[]): void; } ->b11 : { fn(...a: Derived[]): void; } +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) //var r5a12 = a12 == b12; var r5b1 = b1 == a1; ->r5b1 : boolean +>r5b1 : boolean, Symbol(r5b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 166, 3)) >b1 == a1 : boolean ->b1 : { fn(): void; } ->a1 : { fn(): void; } +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) var r5b2 = b2 == a2; ->r5b2 : boolean +>r5b2 : boolean, Symbol(r5b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 167, 3)) >b2 == a2 : boolean ->b2 : { fn(a: number, b: string): void; } ->a2 : { fn(a: number, b: string): void; } +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) var r5b3 = b3 == a3; ->r5b3 : boolean +>r5b3 : boolean, Symbol(r5b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 168, 3)) >b3 == a3 : boolean ->b3 : { fn(a: number): void; } ->a3 : { fn(a: number, b: string): void; } +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) var r5b4 = b4 == a4; ->r5b4 : boolean +>r5b4 : boolean, Symbol(r5b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 169, 3)) >b4 == a4 : boolean ->b4 : { fn(): void; } ->a4 : { fn(a: number, b: string): void; } +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) var r5b5 = b5 == a5; ->r5b5 : boolean +>r5b5 : boolean, Symbol(r5b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 170, 3)) >b5 == a5 : boolean ->b5 : { fn(a: Derived): void; } ->a5 : { fn(a: Base): void; } +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) var r5b6 = b6 == a6; ->r5b6 : boolean +>r5b6 : boolean, Symbol(r5b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 171, 3)) >b6 == a6 : boolean ->b6 : { fn(a: Base, b: Derived): void; } ->a6 : { fn(a: Derived, b: Base): void; } +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) var r5b7 = b7 == a7; ->r5b7 : boolean +>r5b7 : boolean, Symbol(r5b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 172, 3)) >b7 == a7 : boolean ->b7 : { fn(): Base; } ->a7 : { fn(): void; } +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) var r5b8 = b8 == a8; ->r5b8 : boolean +>r5b8 : boolean, Symbol(r5b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 173, 3)) >b8 == a8 : boolean ->b8 : { fn(): Base; } ->a8 : { fn(): Base; } +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) var r5b9 = b9 == a9; ->r5b9 : boolean +>r5b9 : boolean, Symbol(r5b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 174, 3)) >b9 == a9 : boolean ->b9 : { fn(): Derived; } ->a9 : { fn(): Base; } +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) var r5b10 = b10 == a10; ->r5b10 : boolean +>r5b10 : boolean, Symbol(r5b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 175, 3)) >b10 == a10 : boolean ->b10 : { fn(a?: Derived): void; } ->a10 : { fn(a?: Base): void; } +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) var r5b11 = b11 == a11; ->r5b11 : boolean +>r5b11 : boolean, Symbol(r5b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 176, 3)) >b11 == a11 : boolean ->b11 : { fn(...a: Derived[]): void; } ->a11 : { fn(...a: Base[]): void; } +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) //var r5b12 = b12 == a12; // operator != var r6a1 = a1 != b1; ->r6a1 : boolean +>r6a1 : boolean, Symbol(r6a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 180, 3)) >a1 != b1 : boolean ->a1 : { fn(): void; } ->b1 : { fn(): void; } +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) var r6a2 = a2 != b2; ->r6a2 : boolean +>r6a2 : boolean, Symbol(r6a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 181, 3)) >a2 != b2 : boolean ->a2 : { fn(a: number, b: string): void; } ->b2 : { fn(a: number, b: string): void; } +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) var r6a3 = a3 != b3; ->r6a3 : boolean +>r6a3 : boolean, Symbol(r6a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 182, 3)) >a3 != b3 : boolean ->a3 : { fn(a: number, b: string): void; } ->b3 : { fn(a: number): void; } +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) var r6a4 = a4 != b4; ->r6a4 : boolean +>r6a4 : boolean, Symbol(r6a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 183, 3)) >a4 != b4 : boolean ->a4 : { fn(a: number, b: string): void; } ->b4 : { fn(): void; } +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) var r6a5 = a5 != b5; ->r6a5 : boolean +>r6a5 : boolean, Symbol(r6a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 184, 3)) >a5 != b5 : boolean ->a5 : { fn(a: Base): void; } ->b5 : { fn(a: Derived): void; } +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) var r6a6 = a6 != b6; ->r6a6 : boolean +>r6a6 : boolean, Symbol(r6a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 185, 3)) >a6 != b6 : boolean ->a6 : { fn(a: Derived, b: Base): void; } ->b6 : { fn(a: Base, b: Derived): void; } +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) var r6a7 = a7 != b7; ->r6a7 : boolean +>r6a7 : boolean, Symbol(r6a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 186, 3)) >a7 != b7 : boolean ->a7 : { fn(): void; } ->b7 : { fn(): Base; } +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) var r6a8 = a8 != b8; ->r6a8 : boolean +>r6a8 : boolean, Symbol(r6a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 187, 3)) >a8 != b8 : boolean ->a8 : { fn(): Base; } ->b8 : { fn(): Base; } +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) var r6a9 = a9 != b9; ->r6a9 : boolean +>r6a9 : boolean, Symbol(r6a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 188, 3)) >a9 != b9 : boolean ->a9 : { fn(): Base; } ->b9 : { fn(): Derived; } +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) var r6a10 = a10 != b10; ->r6a10 : boolean +>r6a10 : boolean, Symbol(r6a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 189, 3)) >a10 != b10 : boolean ->a10 : { fn(a?: Base): void; } ->b10 : { fn(a?: Derived): void; } +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) var r6a11 = a11 != b11; ->r6a11 : boolean +>r6a11 : boolean, Symbol(r6a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 190, 3)) >a11 != b11 : boolean ->a11 : { fn(...a: Base[]): void; } ->b11 : { fn(...a: Derived[]): void; } +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) //var r6a12 = a12 != b12; var r6b1 = b1 != a1; ->r6b1 : boolean +>r6b1 : boolean, Symbol(r6b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 193, 3)) >b1 != a1 : boolean ->b1 : { fn(): void; } ->a1 : { fn(): void; } +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) var r6b2 = b2 != a2; ->r6b2 : boolean +>r6b2 : boolean, Symbol(r6b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 194, 3)) >b2 != a2 : boolean ->b2 : { fn(a: number, b: string): void; } ->a2 : { fn(a: number, b: string): void; } +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) var r6b3 = b3 != a3; ->r6b3 : boolean +>r6b3 : boolean, Symbol(r6b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 195, 3)) >b3 != a3 : boolean ->b3 : { fn(a: number): void; } ->a3 : { fn(a: number, b: string): void; } +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) var r6b4 = b4 != a4; ->r6b4 : boolean +>r6b4 : boolean, Symbol(r6b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 196, 3)) >b4 != a4 : boolean ->b4 : { fn(): void; } ->a4 : { fn(a: number, b: string): void; } +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) var r6b5 = b5 != a5; ->r6b5 : boolean +>r6b5 : boolean, Symbol(r6b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 197, 3)) >b5 != a5 : boolean ->b5 : { fn(a: Derived): void; } ->a5 : { fn(a: Base): void; } +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) var r6b6 = b6 != a6; ->r6b6 : boolean +>r6b6 : boolean, Symbol(r6b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 198, 3)) >b6 != a6 : boolean ->b6 : { fn(a: Base, b: Derived): void; } ->a6 : { fn(a: Derived, b: Base): void; } +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) var r6b7 = b7 != a7; ->r6b7 : boolean +>r6b7 : boolean, Symbol(r6b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 199, 3)) >b7 != a7 : boolean ->b7 : { fn(): Base; } ->a7 : { fn(): void; } +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) var r6b8 = b8 != a8; ->r6b8 : boolean +>r6b8 : boolean, Symbol(r6b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 200, 3)) >b8 != a8 : boolean ->b8 : { fn(): Base; } ->a8 : { fn(): Base; } +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) var r6b9 = b9 != a9; ->r6b9 : boolean +>r6b9 : boolean, Symbol(r6b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 201, 3)) >b9 != a9 : boolean ->b9 : { fn(): Derived; } ->a9 : { fn(): Base; } +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) var r6b10 = b10 != a10; ->r6b10 : boolean +>r6b10 : boolean, Symbol(r6b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 202, 3)) >b10 != a10 : boolean ->b10 : { fn(a?: Derived): void; } ->a10 : { fn(a?: Base): void; } +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) var r6b11 = b11 != a11; ->r6b11 : boolean +>r6b11 : boolean, Symbol(r6b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 203, 3)) >b11 != a11 : boolean ->b11 : { fn(...a: Derived[]): void; } ->a11 : { fn(...a: Base[]): void; } +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) //var r6b12 = b12 != a12; // operator === var r7a1 = a1 === b1; ->r7a1 : boolean +>r7a1 : boolean, Symbol(r7a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 207, 3)) >a1 === b1 : boolean ->a1 : { fn(): void; } ->b1 : { fn(): void; } +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) var r7a2 = a2 === b2; ->r7a2 : boolean +>r7a2 : boolean, Symbol(r7a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 208, 3)) >a2 === b2 : boolean ->a2 : { fn(a: number, b: string): void; } ->b2 : { fn(a: number, b: string): void; } +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) var r7a3 = a3 === b3; ->r7a3 : boolean +>r7a3 : boolean, Symbol(r7a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 209, 3)) >a3 === b3 : boolean ->a3 : { fn(a: number, b: string): void; } ->b3 : { fn(a: number): void; } +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) var r7a4 = a4 === b4; ->r7a4 : boolean +>r7a4 : boolean, Symbol(r7a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 210, 3)) >a4 === b4 : boolean ->a4 : { fn(a: number, b: string): void; } ->b4 : { fn(): void; } +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) var r7a5 = a5 === b5; ->r7a5 : boolean +>r7a5 : boolean, Symbol(r7a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 211, 3)) >a5 === b5 : boolean ->a5 : { fn(a: Base): void; } ->b5 : { fn(a: Derived): void; } +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) var r7a6 = a6 === b6; ->r7a6 : boolean +>r7a6 : boolean, Symbol(r7a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 212, 3)) >a6 === b6 : boolean ->a6 : { fn(a: Derived, b: Base): void; } ->b6 : { fn(a: Base, b: Derived): void; } +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) var r7a7 = a7 === b7; ->r7a7 : boolean +>r7a7 : boolean, Symbol(r7a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 213, 3)) >a7 === b7 : boolean ->a7 : { fn(): void; } ->b7 : { fn(): Base; } +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) var r7a8 = a8 === b8; ->r7a8 : boolean +>r7a8 : boolean, Symbol(r7a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 214, 3)) >a8 === b8 : boolean ->a8 : { fn(): Base; } ->b8 : { fn(): Base; } +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) var r7a9 = a9 === b9; ->r7a9 : boolean +>r7a9 : boolean, Symbol(r7a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 215, 3)) >a9 === b9 : boolean ->a9 : { fn(): Base; } ->b9 : { fn(): Derived; } +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) var r7a10 = a10 === b10; ->r7a10 : boolean +>r7a10 : boolean, Symbol(r7a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 216, 3)) >a10 === b10 : boolean ->a10 : { fn(a?: Base): void; } ->b10 : { fn(a?: Derived): void; } +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) var r7a11 = a11 === b11; ->r7a11 : boolean +>r7a11 : boolean, Symbol(r7a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 217, 3)) >a11 === b11 : boolean ->a11 : { fn(...a: Base[]): void; } ->b11 : { fn(...a: Derived[]): void; } +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) //var r7a12 = a12 === b12; var r7b1 = b1 === a1; ->r7b1 : boolean +>r7b1 : boolean, Symbol(r7b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 220, 3)) >b1 === a1 : boolean ->b1 : { fn(): void; } ->a1 : { fn(): void; } +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) var r7b2 = b2 === a2; ->r7b2 : boolean +>r7b2 : boolean, Symbol(r7b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 221, 3)) >b2 === a2 : boolean ->b2 : { fn(a: number, b: string): void; } ->a2 : { fn(a: number, b: string): void; } +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) var r7b3 = b3 === a3; ->r7b3 : boolean +>r7b3 : boolean, Symbol(r7b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 222, 3)) >b3 === a3 : boolean ->b3 : { fn(a: number): void; } ->a3 : { fn(a: number, b: string): void; } +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) var r7b4 = b4 === a4; ->r7b4 : boolean +>r7b4 : boolean, Symbol(r7b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 223, 3)) >b4 === a4 : boolean ->b4 : { fn(): void; } ->a4 : { fn(a: number, b: string): void; } +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) var r7b5 = b5 === a5; ->r7b5 : boolean +>r7b5 : boolean, Symbol(r7b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 224, 3)) >b5 === a5 : boolean ->b5 : { fn(a: Derived): void; } ->a5 : { fn(a: Base): void; } +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) var r7b6 = b6 === a6; ->r7b6 : boolean +>r7b6 : boolean, Symbol(r7b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 225, 3)) >b6 === a6 : boolean ->b6 : { fn(a: Base, b: Derived): void; } ->a6 : { fn(a: Derived, b: Base): void; } +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) var r7b7 = b7 === a7; ->r7b7 : boolean +>r7b7 : boolean, Symbol(r7b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 226, 3)) >b7 === a7 : boolean ->b7 : { fn(): Base; } ->a7 : { fn(): void; } +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) var r7b8 = b8 === a8; ->r7b8 : boolean +>r7b8 : boolean, Symbol(r7b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 227, 3)) >b8 === a8 : boolean ->b8 : { fn(): Base; } ->a8 : { fn(): Base; } +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) var r7b9 = b9 === a9; ->r7b9 : boolean +>r7b9 : boolean, Symbol(r7b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 228, 3)) >b9 === a9 : boolean ->b9 : { fn(): Derived; } ->a9 : { fn(): Base; } +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) var r7b10 = b10 === a10; ->r7b10 : boolean +>r7b10 : boolean, Symbol(r7b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 229, 3)) >b10 === a10 : boolean ->b10 : { fn(a?: Derived): void; } ->a10 : { fn(a?: Base): void; } +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) var r7b11 = b11 === a11; ->r7b11 : boolean +>r7b11 : boolean, Symbol(r7b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 230, 3)) >b11 === a11 : boolean ->b11 : { fn(...a: Derived[]): void; } ->a11 : { fn(...a: Base[]): void; } +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) //var r7b12 = b12 === a12; // operator !== var r8a1 = a1 !== b1; ->r8a1 : boolean +>r8a1 : boolean, Symbol(r8a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 234, 3)) >a1 !== b1 : boolean ->a1 : { fn(): void; } ->b1 : { fn(): void; } +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) var r8a2 = a2 !== b2; ->r8a2 : boolean +>r8a2 : boolean, Symbol(r8a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 235, 3)) >a2 !== b2 : boolean ->a2 : { fn(a: number, b: string): void; } ->b2 : { fn(a: number, b: string): void; } +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) var r8a3 = a3 !== b3; ->r8a3 : boolean +>r8a3 : boolean, Symbol(r8a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 236, 3)) >a3 !== b3 : boolean ->a3 : { fn(a: number, b: string): void; } ->b3 : { fn(a: number): void; } +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) var r8a4 = a4 !== b4; ->r8a4 : boolean +>r8a4 : boolean, Symbol(r8a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 237, 3)) >a4 !== b4 : boolean ->a4 : { fn(a: number, b: string): void; } ->b4 : { fn(): void; } +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) var r8a5 = a5 !== b5; ->r8a5 : boolean +>r8a5 : boolean, Symbol(r8a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 238, 3)) >a5 !== b5 : boolean ->a5 : { fn(a: Base): void; } ->b5 : { fn(a: Derived): void; } +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) var r8a6 = a6 !== b6; ->r8a6 : boolean +>r8a6 : boolean, Symbol(r8a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 239, 3)) >a6 !== b6 : boolean ->a6 : { fn(a: Derived, b: Base): void; } ->b6 : { fn(a: Base, b: Derived): void; } +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) var r8a7 = a7 !== b7; ->r8a7 : boolean +>r8a7 : boolean, Symbol(r8a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 240, 3)) >a7 !== b7 : boolean ->a7 : { fn(): void; } ->b7 : { fn(): Base; } +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) var r8a8 = a8 !== b8; ->r8a8 : boolean +>r8a8 : boolean, Symbol(r8a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 241, 3)) >a8 !== b8 : boolean ->a8 : { fn(): Base; } ->b8 : { fn(): Base; } +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) var r8a9 = a9 !== b9; ->r8a9 : boolean +>r8a9 : boolean, Symbol(r8a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 242, 3)) >a9 !== b9 : boolean ->a9 : { fn(): Base; } ->b9 : { fn(): Derived; } +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) var r8a10 = a10 !== b10; ->r8a10 : boolean +>r8a10 : boolean, Symbol(r8a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 243, 3)) >a10 !== b10 : boolean ->a10 : { fn(a?: Base): void; } ->b10 : { fn(a?: Derived): void; } +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) var r8a11 = a11 !== b11; ->r8a11 : boolean +>r8a11 : boolean, Symbol(r8a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 244, 3)) >a11 !== b11 : boolean ->a11 : { fn(...a: Base[]): void; } ->b11 : { fn(...a: Derived[]): void; } +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) //var r8a12 = a12 !== b12; var r8b1 = b1 !== a1; ->r8b1 : boolean +>r8b1 : boolean, Symbol(r8b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 247, 3)) >b1 !== a1 : boolean ->b1 : { fn(): void; } ->a1 : { fn(): void; } +>b1 : { fn(): void; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 9, 3)) +>a1 : { fn(): void; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 8, 3)) var r8b2 = b2 !== a2; ->r8b2 : boolean +>r8b2 : boolean, Symbol(r8b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 248, 3)) >b2 !== a2 : boolean ->b2 : { fn(a: number, b: string): void; } ->a2 : { fn(a: number, b: string): void; } +>b2 : { fn(a: number, b: string): void; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 12, 3)) +>a2 : { fn(a: number, b: string): void; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 11, 3)) var r8b3 = b3 !== a3; ->r8b3 : boolean +>r8b3 : boolean, Symbol(r8b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 249, 3)) >b3 !== a3 : boolean ->b3 : { fn(a: number): void; } ->a3 : { fn(a: number, b: string): void; } +>b3 : { fn(a: number): void; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 15, 3)) +>a3 : { fn(a: number, b: string): void; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 14, 3)) var r8b4 = b4 !== a4; ->r8b4 : boolean +>r8b4 : boolean, Symbol(r8b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 250, 3)) >b4 !== a4 : boolean ->b4 : { fn(): void; } ->a4 : { fn(a: number, b: string): void; } +>b4 : { fn(): void; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 18, 3)) +>a4 : { fn(a: number, b: string): void; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 17, 3)) var r8b5 = b5 !== a5; ->r8b5 : boolean +>r8b5 : boolean, Symbol(r8b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 251, 3)) >b5 !== a5 : boolean ->b5 : { fn(a: Derived): void; } ->a5 : { fn(a: Base): void; } +>b5 : { fn(a: Derived): void; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 21, 3)) +>a5 : { fn(a: Base): void; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 20, 3)) var r8b6 = b6 !== a6; ->r8b6 : boolean +>r8b6 : boolean, Symbol(r8b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 252, 3)) >b6 !== a6 : boolean ->b6 : { fn(a: Base, b: Derived): void; } ->a6 : { fn(a: Derived, b: Base): void; } +>b6 : { fn(a: Base, b: Derived): void; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 24, 3)) +>a6 : { fn(a: Derived, b: Base): void; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 23, 3)) var r8b7 = b7 !== a7; ->r8b7 : boolean +>r8b7 : boolean, Symbol(r8b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 253, 3)) >b7 !== a7 : boolean ->b7 : { fn(): Base; } ->a7 : { fn(): void; } +>b7 : { fn(): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 27, 3)) +>a7 : { fn(): void; }, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 26, 3)) var r8b8 = b8 !== a8; ->r8b8 : boolean +>r8b8 : boolean, Symbol(r8b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 254, 3)) >b8 !== a8 : boolean ->b8 : { fn(): Base; } ->a8 : { fn(): Base; } +>b8 : { fn(): Base; }, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 30, 3)) +>a8 : { fn(): Base; }, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 29, 3)) var r8b9 = b9 !== a9; ->r8b9 : boolean +>r8b9 : boolean, Symbol(r8b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 255, 3)) >b9 !== a9 : boolean ->b9 : { fn(): Derived; } ->a9 : { fn(): Base; } +>b9 : { fn(): Derived; }, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 33, 3)) +>a9 : { fn(): Base; }, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 32, 3)) var r8b10 = b10 !== a10; ->r8b10 : boolean +>r8b10 : boolean, Symbol(r8b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 256, 3)) >b10 !== a10 : boolean ->b10 : { fn(a?: Derived): void; } ->a10 : { fn(a?: Base): void; } +>b10 : { fn(a?: Derived): void; }, Symbol(b10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 36, 3)) +>a10 : { fn(a?: Base): void; }, Symbol(a10, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 35, 3)) var r8b11 = b11 !== a11; ->r8b11 : boolean +>r8b11 : boolean, Symbol(r8b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 257, 3)) >b11 !== a11 : boolean ->b11 : { fn(...a: Derived[]): void; } ->a11 : { fn(...a: Base[]): void; } +>b11 : { fn(...a: Derived[]): void; }, Symbol(b11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 39, 3)) +>a11 : { fn(...a: Base[]): void; }, Symbol(a11, Decl(comparisonOperatorWithSubtypeObjectOnCallSignature.ts, 38, 3)) //var r8b12 = b12 !== a12; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.types b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.types index 737c13f183c..b9632a5807a 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.types +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.types @@ -1,1023 +1,1023 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) public a: string; ->a : string +>a : string, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 12)) } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) public b: string; ->b : string +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 4, 28)) } var a1: { new (): Base }; ->a1 : new () => Base ->Base : Base +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var b1: { new (): Base }; ->b1 : new () => Base ->Base : Base +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var a2: { new (a: number, b: string): Base }; ->a2 : new (a: number, b: string) => Base ->a : number ->b : string ->Base : Base +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 15)) +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 25)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var b2: { new (a: number, b: string): Base }; ->b2 : new (a: number, b: string) => Base ->a : number ->b : string ->Base : Base +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 15)) +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 25)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var a3: { new (a: number, b: string): Base }; ->a3 : new (a: number, b: string) => Base ->a : number ->b : string ->Base : Base +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 15)) +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 25)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var b3: { new (a: number): Base }; ->b3 : new (a: number) => Base ->a : number ->Base : Base +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 15)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var a4: { new (a: number, b: string): Base }; ->a4 : new (a: number, b: string) => Base ->a : number ->b : string ->Base : Base +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) +>a : number, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 15)) +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 25)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var b4: { new (): Base }; ->b4 : new () => Base ->Base : Base +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var a5: { new (a: Base): Base }; ->a5 : new (a: Base) => Base ->a : Base ->Base : Base ->Base : Base +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) +>a : Base, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 15)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var b5: { new (a: Derived): Base }; ->b5 : new (a: Derived) => Base ->a : Derived ->Derived : Derived ->Base : Base +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) +>a : Derived, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 15)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var a6: { new (a: Derived, b: Base): Base }; ->a6 : new (a: Derived, b: Base) => Base ->a : Derived ->Derived : Derived ->b : Base ->Base : Base ->Base : Base +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) +>a : Derived, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 15)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 2, 1)) +>b : Base, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 26)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var b6: { new (a: Base, b: Derived): Base }; ->b6 : new (a: Base, b: Derived) => Base ->a : Base ->Base : Base ->b : Derived ->Derived : Derived ->Base : Base +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) +>a : Base, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 15)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) +>b : Derived, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 23)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var a7: { new (): Base }; ->a7 : new () => Base ->Base : Base +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var b7: { new (): Derived }; ->b7 : new () => Derived ->Derived : Derived +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 2, 1)) var a8: { new (a?: Base): Base }; ->a8 : new (a?: Base) => Base ->a : Base ->Base : Base ->Base : Base +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) +>a : Base, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 15)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var b8: { new (a?: Derived): Base }; ->b8 : new (a?: Derived) => Base ->a : Derived ->Derived : Derived ->Base : Base +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) +>a : Derived, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 15)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var a9: { new (...a: Base[]): Base }; ->a9 : new (...a: Base[]) => Base ->a : Base[] ->Base : Base ->Base : Base +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) +>a : Base[], Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 15)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) var b9: { new (...a: Derived[]): Base }; ->b9 : new (...a: Derived[]) => Base ->a : Derived[] ->Derived : Derived ->Base : Base +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) +>a : Derived[], Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 15)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 0, 0)) //var a10: { (t: T, u: U): T[] }; //var b10: { (a: A, b: B): A[] }; // operator < var r1a1 = a1 < b1; ->r1a1 : boolean +>r1a1 : boolean, Symbol(r1a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 39, 3)) >a1 < b1 : boolean ->a1 : new () => Base ->b1 : new () => Base +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) var r1a2 = a2 < b2; ->r1a2 : boolean +>r1a2 : boolean, Symbol(r1a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 40, 3)) >a2 < b2 : boolean ->a2 : new (a: number, b: string) => Base ->b2 : new (a: number, b: string) => Base +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) var r1a3 = a3 < b3; ->r1a3 : boolean +>r1a3 : boolean, Symbol(r1a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 41, 3)) >a3 < b3 : boolean ->a3 : new (a: number, b: string) => Base ->b3 : new (a: number) => Base +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) var r1a4 = a4 < b4; ->r1a4 : boolean +>r1a4 : boolean, Symbol(r1a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 42, 3)) >a4 < b4 : boolean ->a4 : new (a: number, b: string) => Base ->b4 : new () => Base +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) var r1a5 = a5 < b5; ->r1a5 : boolean +>r1a5 : boolean, Symbol(r1a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 43, 3)) >a5 < b5 : boolean ->a5 : new (a: Base) => Base ->b5 : new (a: Derived) => Base +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) var r1a6 = a6 < b6; ->r1a6 : boolean +>r1a6 : boolean, Symbol(r1a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 44, 3)) >a6 < b6 : boolean ->a6 : new (a: Derived, b: Base) => Base ->b6 : new (a: Base, b: Derived) => Base +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) var r1a7 = a7 < b7; ->r1a7 : boolean +>r1a7 : boolean, Symbol(r1a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 45, 3)) >a7 < b7 : boolean ->a7 : new () => Base ->b7 : new () => Derived +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) var r1a8 = a8 < b8; ->r1a8 : boolean +>r1a8 : boolean, Symbol(r1a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 46, 3)) >a8 < b8 : boolean ->a8 : new (a?: Base) => Base ->b8 : new (a?: Derived) => Base +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) var r1a9 = a9 < b9; ->r1a9 : boolean +>r1a9 : boolean, Symbol(r1a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 47, 3)) >a9 < b9 : boolean ->a9 : new (...a: Base[]) => Base ->b9 : new (...a: Derived[]) => Base +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) //var r1a10 = a10 < b10; var r1b1 = b1 < a1; ->r1b1 : boolean +>r1b1 : boolean, Symbol(r1b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 50, 3)) >b1 < a1 : boolean ->b1 : new () => Base ->a1 : new () => Base +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) var r1b2 = b2 < a2; ->r1b2 : boolean +>r1b2 : boolean, Symbol(r1b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 51, 3)) >b2 < a2 : boolean ->b2 : new (a: number, b: string) => Base ->a2 : new (a: number, b: string) => Base +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) var r1b3 = b3 < a3; ->r1b3 : boolean +>r1b3 : boolean, Symbol(r1b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 52, 3)) >b3 < a3 : boolean ->b3 : new (a: number) => Base ->a3 : new (a: number, b: string) => Base +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) var r1b4 = b4 < a4; ->r1b4 : boolean +>r1b4 : boolean, Symbol(r1b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 53, 3)) >b4 < a4 : boolean ->b4 : new () => Base ->a4 : new (a: number, b: string) => Base +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) var r1b5 = b5 < a5; ->r1b5 : boolean +>r1b5 : boolean, Symbol(r1b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 54, 3)) >b5 < a5 : boolean ->b5 : new (a: Derived) => Base ->a5 : new (a: Base) => Base +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) var r1b6 = b6 < a6; ->r1b6 : boolean +>r1b6 : boolean, Symbol(r1b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 55, 3)) >b6 < a6 : boolean ->b6 : new (a: Base, b: Derived) => Base ->a6 : new (a: Derived, b: Base) => Base +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) var r1b7 = b7 < a7; ->r1b7 : boolean +>r1b7 : boolean, Symbol(r1b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 56, 3)) >b7 < a7 : boolean ->b7 : new () => Derived ->a7 : new () => Base +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) var r1b8 = b8 < a8; ->r1b8 : boolean +>r1b8 : boolean, Symbol(r1b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 57, 3)) >b8 < a8 : boolean ->b8 : new (a?: Derived) => Base ->a8 : new (a?: Base) => Base +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) var r1b9 = b9 < a9; ->r1b9 : boolean +>r1b9 : boolean, Symbol(r1b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 58, 3)) >b9 < a9 : boolean ->b9 : new (...a: Derived[]) => Base ->a9 : new (...a: Base[]) => Base +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) //var r1b10 = b10 < a10; // operator > var r2a1 = a1 > b1; ->r2a1 : boolean +>r2a1 : boolean, Symbol(r2a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 62, 3)) >a1 > b1 : boolean ->a1 : new () => Base ->b1 : new () => Base +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) var r2a2 = a2 > b2; ->r2a2 : boolean +>r2a2 : boolean, Symbol(r2a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 63, 3)) >a2 > b2 : boolean ->a2 : new (a: number, b: string) => Base ->b2 : new (a: number, b: string) => Base +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) var r2a3 = a3 > b3; ->r2a3 : boolean +>r2a3 : boolean, Symbol(r2a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 64, 3)) >a3 > b3 : boolean ->a3 : new (a: number, b: string) => Base ->b3 : new (a: number) => Base +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) var r2a4 = a4 > b4; ->r2a4 : boolean +>r2a4 : boolean, Symbol(r2a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 65, 3)) >a4 > b4 : boolean ->a4 : new (a: number, b: string) => Base ->b4 : new () => Base +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) var r2a5 = a5 > b5; ->r2a5 : boolean +>r2a5 : boolean, Symbol(r2a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 66, 3)) >a5 > b5 : boolean ->a5 : new (a: Base) => Base ->b5 : new (a: Derived) => Base +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) var r2a6 = a6 > b6; ->r2a6 : boolean +>r2a6 : boolean, Symbol(r2a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 67, 3)) >a6 > b6 : boolean ->a6 : new (a: Derived, b: Base) => Base ->b6 : new (a: Base, b: Derived) => Base +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) var r2a7 = a7 > b7; ->r2a7 : boolean +>r2a7 : boolean, Symbol(r2a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 68, 3)) >a7 > b7 : boolean ->a7 : new () => Base ->b7 : new () => Derived +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) var r2a8 = a8 > b8; ->r2a8 : boolean +>r2a8 : boolean, Symbol(r2a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 69, 3)) >a8 > b8 : boolean ->a8 : new (a?: Base) => Base ->b8 : new (a?: Derived) => Base +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) var r2a9 = a9 > b9; ->r2a9 : boolean +>r2a9 : boolean, Symbol(r2a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 70, 3)) >a9 > b9 : boolean ->a9 : new (...a: Base[]) => Base ->b9 : new (...a: Derived[]) => Base +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) //var r2a10 = a10 > b10; var r2b1 = b1 > a1; ->r2b1 : boolean +>r2b1 : boolean, Symbol(r2b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 73, 3)) >b1 > a1 : boolean ->b1 : new () => Base ->a1 : new () => Base +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) var r2b2 = b2 > a2; ->r2b2 : boolean +>r2b2 : boolean, Symbol(r2b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 74, 3)) >b2 > a2 : boolean ->b2 : new (a: number, b: string) => Base ->a2 : new (a: number, b: string) => Base +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) var r2b3 = b3 > a3; ->r2b3 : boolean +>r2b3 : boolean, Symbol(r2b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 75, 3)) >b3 > a3 : boolean ->b3 : new (a: number) => Base ->a3 : new (a: number, b: string) => Base +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) var r2b4 = b4 > a4; ->r2b4 : boolean +>r2b4 : boolean, Symbol(r2b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 76, 3)) >b4 > a4 : boolean ->b4 : new () => Base ->a4 : new (a: number, b: string) => Base +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) var r2b5 = b5 > a5; ->r2b5 : boolean +>r2b5 : boolean, Symbol(r2b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 77, 3)) >b5 > a5 : boolean ->b5 : new (a: Derived) => Base ->a5 : new (a: Base) => Base +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) var r2b6 = b6 > a6; ->r2b6 : boolean +>r2b6 : boolean, Symbol(r2b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 78, 3)) >b6 > a6 : boolean ->b6 : new (a: Base, b: Derived) => Base ->a6 : new (a: Derived, b: Base) => Base +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) var r2b7 = b7 > a7; ->r2b7 : boolean +>r2b7 : boolean, Symbol(r2b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 79, 3)) >b7 > a7 : boolean ->b7 : new () => Derived ->a7 : new () => Base +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) var r2b8 = b8 > a8; ->r2b8 : boolean +>r2b8 : boolean, Symbol(r2b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 80, 3)) >b8 > a8 : boolean ->b8 : new (a?: Derived) => Base ->a8 : new (a?: Base) => Base +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) var r2b9 = b9 > a9; ->r2b9 : boolean +>r2b9 : boolean, Symbol(r2b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 81, 3)) >b9 > a9 : boolean ->b9 : new (...a: Derived[]) => Base ->a9 : new (...a: Base[]) => Base +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) //var r2b10 = b10 > a10; // operator <= var r3a1 = a1 <= b1; ->r3a1 : boolean +>r3a1 : boolean, Symbol(r3a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 85, 3)) >a1 <= b1 : boolean ->a1 : new () => Base ->b1 : new () => Base +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) var r3a2 = a2 <= b2; ->r3a2 : boolean +>r3a2 : boolean, Symbol(r3a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 86, 3)) >a2 <= b2 : boolean ->a2 : new (a: number, b: string) => Base ->b2 : new (a: number, b: string) => Base +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) var r3a3 = a3 <= b3; ->r3a3 : boolean +>r3a3 : boolean, Symbol(r3a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 87, 3)) >a3 <= b3 : boolean ->a3 : new (a: number, b: string) => Base ->b3 : new (a: number) => Base +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) var r3a4 = a4 <= b4; ->r3a4 : boolean +>r3a4 : boolean, Symbol(r3a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 88, 3)) >a4 <= b4 : boolean ->a4 : new (a: number, b: string) => Base ->b4 : new () => Base +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) var r3a5 = a5 <= b5; ->r3a5 : boolean +>r3a5 : boolean, Symbol(r3a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 89, 3)) >a5 <= b5 : boolean ->a5 : new (a: Base) => Base ->b5 : new (a: Derived) => Base +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) var r3a6 = a6 <= b6; ->r3a6 : boolean +>r3a6 : boolean, Symbol(r3a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 90, 3)) >a6 <= b6 : boolean ->a6 : new (a: Derived, b: Base) => Base ->b6 : new (a: Base, b: Derived) => Base +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) var r3a7 = a7 <= b7; ->r3a7 : boolean +>r3a7 : boolean, Symbol(r3a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 91, 3)) >a7 <= b7 : boolean ->a7 : new () => Base ->b7 : new () => Derived +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) var r3a8 = a8 <= b8; ->r3a8 : boolean +>r3a8 : boolean, Symbol(r3a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 92, 3)) >a8 <= b8 : boolean ->a8 : new (a?: Base) => Base ->b8 : new (a?: Derived) => Base +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) var r3a9 = a9 <= b9; ->r3a9 : boolean +>r3a9 : boolean, Symbol(r3a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 93, 3)) >a9 <= b9 : boolean ->a9 : new (...a: Base[]) => Base ->b9 : new (...a: Derived[]) => Base +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) //var r3a10 = a10 <= b10; var r3b1 = b1 <= a1; ->r3b1 : boolean +>r3b1 : boolean, Symbol(r3b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 96, 3)) >b1 <= a1 : boolean ->b1 : new () => Base ->a1 : new () => Base +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) var r3b2 = b2 <= a2; ->r3b2 : boolean +>r3b2 : boolean, Symbol(r3b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 97, 3)) >b2 <= a2 : boolean ->b2 : new (a: number, b: string) => Base ->a2 : new (a: number, b: string) => Base +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) var r3b3 = b3 <= a3; ->r3b3 : boolean +>r3b3 : boolean, Symbol(r3b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 98, 3)) >b3 <= a3 : boolean ->b3 : new (a: number) => Base ->a3 : new (a: number, b: string) => Base +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) var r3b4 = b4 <= a4; ->r3b4 : boolean +>r3b4 : boolean, Symbol(r3b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 99, 3)) >b4 <= a4 : boolean ->b4 : new () => Base ->a4 : new (a: number, b: string) => Base +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) var r3b5 = b5 <= a5; ->r3b5 : boolean +>r3b5 : boolean, Symbol(r3b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 100, 3)) >b5 <= a5 : boolean ->b5 : new (a: Derived) => Base ->a5 : new (a: Base) => Base +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) var r3b6 = b6 <= a6; ->r3b6 : boolean +>r3b6 : boolean, Symbol(r3b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 101, 3)) >b6 <= a6 : boolean ->b6 : new (a: Base, b: Derived) => Base ->a6 : new (a: Derived, b: Base) => Base +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) var r3b7 = b7 <= a7; ->r3b7 : boolean +>r3b7 : boolean, Symbol(r3b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 102, 3)) >b7 <= a7 : boolean ->b7 : new () => Derived ->a7 : new () => Base +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) var r3b8 = b8 <= a8; ->r3b8 : boolean +>r3b8 : boolean, Symbol(r3b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 103, 3)) >b8 <= a8 : boolean ->b8 : new (a?: Derived) => Base ->a8 : new (a?: Base) => Base +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) var r3b9 = b9 <= a9; ->r3b9 : boolean +>r3b9 : boolean, Symbol(r3b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 104, 3)) >b9 <= a9 : boolean ->b9 : new (...a: Derived[]) => Base ->a9 : new (...a: Base[]) => Base +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) //var r3b10 = b10 <= a10; // operator >= var r4a1 = a1 >= b1; ->r4a1 : boolean +>r4a1 : boolean, Symbol(r4a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 108, 3)) >a1 >= b1 : boolean ->a1 : new () => Base ->b1 : new () => Base +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) var r4a2 = a2 >= b2; ->r4a2 : boolean +>r4a2 : boolean, Symbol(r4a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 109, 3)) >a2 >= b2 : boolean ->a2 : new (a: number, b: string) => Base ->b2 : new (a: number, b: string) => Base +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) var r4a3 = a3 >= b3; ->r4a3 : boolean +>r4a3 : boolean, Symbol(r4a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 110, 3)) >a3 >= b3 : boolean ->a3 : new (a: number, b: string) => Base ->b3 : new (a: number) => Base +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) var r4a4 = a4 >= b4; ->r4a4 : boolean +>r4a4 : boolean, Symbol(r4a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 111, 3)) >a4 >= b4 : boolean ->a4 : new (a: number, b: string) => Base ->b4 : new () => Base +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) var r4a5 = a5 >= b5; ->r4a5 : boolean +>r4a5 : boolean, Symbol(r4a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 112, 3)) >a5 >= b5 : boolean ->a5 : new (a: Base) => Base ->b5 : new (a: Derived) => Base +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) var r4a6 = a6 >= b6; ->r4a6 : boolean +>r4a6 : boolean, Symbol(r4a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 113, 3)) >a6 >= b6 : boolean ->a6 : new (a: Derived, b: Base) => Base ->b6 : new (a: Base, b: Derived) => Base +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) var r4a7 = a7 >= b7; ->r4a7 : boolean +>r4a7 : boolean, Symbol(r4a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 114, 3)) >a7 >= b7 : boolean ->a7 : new () => Base ->b7 : new () => Derived +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) var r4a8 = a8 >= b8; ->r4a8 : boolean +>r4a8 : boolean, Symbol(r4a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 115, 3)) >a8 >= b8 : boolean ->a8 : new (a?: Base) => Base ->b8 : new (a?: Derived) => Base +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) var r4a9 = a9 >= b9; ->r4a9 : boolean +>r4a9 : boolean, Symbol(r4a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 116, 3)) >a9 >= b9 : boolean ->a9 : new (...a: Base[]) => Base ->b9 : new (...a: Derived[]) => Base +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) //var r4a10 = a10 >= b10; var r4b1 = b1 >= a1; ->r4b1 : boolean +>r4b1 : boolean, Symbol(r4b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 119, 3)) >b1 >= a1 : boolean ->b1 : new () => Base ->a1 : new () => Base +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) var r4b2 = b2 >= a2; ->r4b2 : boolean +>r4b2 : boolean, Symbol(r4b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 120, 3)) >b2 >= a2 : boolean ->b2 : new (a: number, b: string) => Base ->a2 : new (a: number, b: string) => Base +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) var r4b3 = b3 >= a3; ->r4b3 : boolean +>r4b3 : boolean, Symbol(r4b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 121, 3)) >b3 >= a3 : boolean ->b3 : new (a: number) => Base ->a3 : new (a: number, b: string) => Base +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) var r4b4 = b4 >= a4; ->r4b4 : boolean +>r4b4 : boolean, Symbol(r4b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 122, 3)) >b4 >= a4 : boolean ->b4 : new () => Base ->a4 : new (a: number, b: string) => Base +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) var r4b5 = b5 >= a5; ->r4b5 : boolean +>r4b5 : boolean, Symbol(r4b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 123, 3)) >b5 >= a5 : boolean ->b5 : new (a: Derived) => Base ->a5 : new (a: Base) => Base +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) var r4b6 = b6 >= a6; ->r4b6 : boolean +>r4b6 : boolean, Symbol(r4b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 124, 3)) >b6 >= a6 : boolean ->b6 : new (a: Base, b: Derived) => Base ->a6 : new (a: Derived, b: Base) => Base +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) var r4b7 = b7 >= a7; ->r4b7 : boolean +>r4b7 : boolean, Symbol(r4b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 125, 3)) >b7 >= a7 : boolean ->b7 : new () => Derived ->a7 : new () => Base +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) var r4b8 = b8 >= a8; ->r4b8 : boolean +>r4b8 : boolean, Symbol(r4b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 126, 3)) >b8 >= a8 : boolean ->b8 : new (a?: Derived) => Base ->a8 : new (a?: Base) => Base +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) var r4b9 = b9 >= a9; ->r4b9 : boolean +>r4b9 : boolean, Symbol(r4b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 127, 3)) >b9 >= a9 : boolean ->b9 : new (...a: Derived[]) => Base ->a9 : new (...a: Base[]) => Base +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) //var r4b10 = b10 >= a10; // operator == var r5a1 = a1 == b1; ->r5a1 : boolean +>r5a1 : boolean, Symbol(r5a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 131, 3)) >a1 == b1 : boolean ->a1 : new () => Base ->b1 : new () => Base +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) var r5a2 = a2 == b2; ->r5a2 : boolean +>r5a2 : boolean, Symbol(r5a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 132, 3)) >a2 == b2 : boolean ->a2 : new (a: number, b: string) => Base ->b2 : new (a: number, b: string) => Base +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) var r5a3 = a3 == b3; ->r5a3 : boolean +>r5a3 : boolean, Symbol(r5a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 133, 3)) >a3 == b3 : boolean ->a3 : new (a: number, b: string) => Base ->b3 : new (a: number) => Base +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) var r5a4 = a4 == b4; ->r5a4 : boolean +>r5a4 : boolean, Symbol(r5a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 134, 3)) >a4 == b4 : boolean ->a4 : new (a: number, b: string) => Base ->b4 : new () => Base +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) var r5a5 = a5 == b5; ->r5a5 : boolean +>r5a5 : boolean, Symbol(r5a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 135, 3)) >a5 == b5 : boolean ->a5 : new (a: Base) => Base ->b5 : new (a: Derived) => Base +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) var r5a6 = a6 == b6; ->r5a6 : boolean +>r5a6 : boolean, Symbol(r5a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 136, 3)) >a6 == b6 : boolean ->a6 : new (a: Derived, b: Base) => Base ->b6 : new (a: Base, b: Derived) => Base +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) var r5a7 = a7 == b7; ->r5a7 : boolean +>r5a7 : boolean, Symbol(r5a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 137, 3)) >a7 == b7 : boolean ->a7 : new () => Base ->b7 : new () => Derived +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) var r5a8 = a8 == b8; ->r5a8 : boolean +>r5a8 : boolean, Symbol(r5a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 138, 3)) >a8 == b8 : boolean ->a8 : new (a?: Base) => Base ->b8 : new (a?: Derived) => Base +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) var r5a9 = a9 == b9; ->r5a9 : boolean +>r5a9 : boolean, Symbol(r5a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 139, 3)) >a9 == b9 : boolean ->a9 : new (...a: Base[]) => Base ->b9 : new (...a: Derived[]) => Base +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) //var r5a10 = a10 == b10; var r5b1 = b1 == a1; ->r5b1 : boolean +>r5b1 : boolean, Symbol(r5b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 142, 3)) >b1 == a1 : boolean ->b1 : new () => Base ->a1 : new () => Base +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) var r5b2 = b2 == a2; ->r5b2 : boolean +>r5b2 : boolean, Symbol(r5b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 143, 3)) >b2 == a2 : boolean ->b2 : new (a: number, b: string) => Base ->a2 : new (a: number, b: string) => Base +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) var r5b3 = b3 == a3; ->r5b3 : boolean +>r5b3 : boolean, Symbol(r5b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 144, 3)) >b3 == a3 : boolean ->b3 : new (a: number) => Base ->a3 : new (a: number, b: string) => Base +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) var r5b4 = b4 == a4; ->r5b4 : boolean +>r5b4 : boolean, Symbol(r5b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 145, 3)) >b4 == a4 : boolean ->b4 : new () => Base ->a4 : new (a: number, b: string) => Base +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) var r5b5 = b5 == a5; ->r5b5 : boolean +>r5b5 : boolean, Symbol(r5b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 146, 3)) >b5 == a5 : boolean ->b5 : new (a: Derived) => Base ->a5 : new (a: Base) => Base +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) var r5b6 = b6 == a6; ->r5b6 : boolean +>r5b6 : boolean, Symbol(r5b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 147, 3)) >b6 == a6 : boolean ->b6 : new (a: Base, b: Derived) => Base ->a6 : new (a: Derived, b: Base) => Base +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) var r5b7 = b7 == a7; ->r5b7 : boolean +>r5b7 : boolean, Symbol(r5b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 148, 3)) >b7 == a7 : boolean ->b7 : new () => Derived ->a7 : new () => Base +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) var r5b8 = b8 == a8; ->r5b8 : boolean +>r5b8 : boolean, Symbol(r5b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 149, 3)) >b8 == a8 : boolean ->b8 : new (a?: Derived) => Base ->a8 : new (a?: Base) => Base +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) var r5b9 = b9 == a9; ->r5b9 : boolean +>r5b9 : boolean, Symbol(r5b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 150, 3)) >b9 == a9 : boolean ->b9 : new (...a: Derived[]) => Base ->a9 : new (...a: Base[]) => Base +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) //var r5b10 = b10 == a10; // operator != var r6a1 = a1 != b1; ->r6a1 : boolean +>r6a1 : boolean, Symbol(r6a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 154, 3)) >a1 != b1 : boolean ->a1 : new () => Base ->b1 : new () => Base +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) var r6a2 = a2 != b2; ->r6a2 : boolean +>r6a2 : boolean, Symbol(r6a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 155, 3)) >a2 != b2 : boolean ->a2 : new (a: number, b: string) => Base ->b2 : new (a: number, b: string) => Base +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) var r6a3 = a3 != b3; ->r6a3 : boolean +>r6a3 : boolean, Symbol(r6a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 156, 3)) >a3 != b3 : boolean ->a3 : new (a: number, b: string) => Base ->b3 : new (a: number) => Base +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) var r6a4 = a4 != b4; ->r6a4 : boolean +>r6a4 : boolean, Symbol(r6a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 157, 3)) >a4 != b4 : boolean ->a4 : new (a: number, b: string) => Base ->b4 : new () => Base +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) var r6a5 = a5 != b5; ->r6a5 : boolean +>r6a5 : boolean, Symbol(r6a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 158, 3)) >a5 != b5 : boolean ->a5 : new (a: Base) => Base ->b5 : new (a: Derived) => Base +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) var r6a6 = a6 != b6; ->r6a6 : boolean +>r6a6 : boolean, Symbol(r6a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 159, 3)) >a6 != b6 : boolean ->a6 : new (a: Derived, b: Base) => Base ->b6 : new (a: Base, b: Derived) => Base +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) var r6a7 = a7 != b7; ->r6a7 : boolean +>r6a7 : boolean, Symbol(r6a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 160, 3)) >a7 != b7 : boolean ->a7 : new () => Base ->b7 : new () => Derived +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) var r6a8 = a8 != b8; ->r6a8 : boolean +>r6a8 : boolean, Symbol(r6a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 161, 3)) >a8 != b8 : boolean ->a8 : new (a?: Base) => Base ->b8 : new (a?: Derived) => Base +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) var r6a9 = a9 != b9; ->r6a9 : boolean +>r6a9 : boolean, Symbol(r6a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 162, 3)) >a9 != b9 : boolean ->a9 : new (...a: Base[]) => Base ->b9 : new (...a: Derived[]) => Base +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) //var r6a10 = a10 != b10; var r6b1 = b1 != a1; ->r6b1 : boolean +>r6b1 : boolean, Symbol(r6b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 165, 3)) >b1 != a1 : boolean ->b1 : new () => Base ->a1 : new () => Base +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) var r6b2 = b2 != a2; ->r6b2 : boolean +>r6b2 : boolean, Symbol(r6b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 166, 3)) >b2 != a2 : boolean ->b2 : new (a: number, b: string) => Base ->a2 : new (a: number, b: string) => Base +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) var r6b3 = b3 != a3; ->r6b3 : boolean +>r6b3 : boolean, Symbol(r6b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 167, 3)) >b3 != a3 : boolean ->b3 : new (a: number) => Base ->a3 : new (a: number, b: string) => Base +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) var r6b4 = b4 != a4; ->r6b4 : boolean +>r6b4 : boolean, Symbol(r6b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 168, 3)) >b4 != a4 : boolean ->b4 : new () => Base ->a4 : new (a: number, b: string) => Base +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) var r6b5 = b5 != a5; ->r6b5 : boolean +>r6b5 : boolean, Symbol(r6b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 169, 3)) >b5 != a5 : boolean ->b5 : new (a: Derived) => Base ->a5 : new (a: Base) => Base +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) var r6b6 = b6 != a6; ->r6b6 : boolean +>r6b6 : boolean, Symbol(r6b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 170, 3)) >b6 != a6 : boolean ->b6 : new (a: Base, b: Derived) => Base ->a6 : new (a: Derived, b: Base) => Base +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) var r6b7 = b7 != a7; ->r6b7 : boolean +>r6b7 : boolean, Symbol(r6b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 171, 3)) >b7 != a7 : boolean ->b7 : new () => Derived ->a7 : new () => Base +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) var r6b8 = b8 != a8; ->r6b8 : boolean +>r6b8 : boolean, Symbol(r6b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 172, 3)) >b8 != a8 : boolean ->b8 : new (a?: Derived) => Base ->a8 : new (a?: Base) => Base +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) var r6b9 = b9 != a9; ->r6b9 : boolean +>r6b9 : boolean, Symbol(r6b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 173, 3)) >b9 != a9 : boolean ->b9 : new (...a: Derived[]) => Base ->a9 : new (...a: Base[]) => Base +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) //var r6b10 = b10 != a10; // operator === var r7a1 = a1 === b1; ->r7a1 : boolean +>r7a1 : boolean, Symbol(r7a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 177, 3)) >a1 === b1 : boolean ->a1 : new () => Base ->b1 : new () => Base +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) var r7a2 = a2 === b2; ->r7a2 : boolean +>r7a2 : boolean, Symbol(r7a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 178, 3)) >a2 === b2 : boolean ->a2 : new (a: number, b: string) => Base ->b2 : new (a: number, b: string) => Base +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) var r7a3 = a3 === b3; ->r7a3 : boolean +>r7a3 : boolean, Symbol(r7a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 179, 3)) >a3 === b3 : boolean ->a3 : new (a: number, b: string) => Base ->b3 : new (a: number) => Base +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) var r7a4 = a4 === b4; ->r7a4 : boolean +>r7a4 : boolean, Symbol(r7a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 180, 3)) >a4 === b4 : boolean ->a4 : new (a: number, b: string) => Base ->b4 : new () => Base +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) var r7a5 = a5 === b5; ->r7a5 : boolean +>r7a5 : boolean, Symbol(r7a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 181, 3)) >a5 === b5 : boolean ->a5 : new (a: Base) => Base ->b5 : new (a: Derived) => Base +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) var r7a6 = a6 === b6; ->r7a6 : boolean +>r7a6 : boolean, Symbol(r7a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 182, 3)) >a6 === b6 : boolean ->a6 : new (a: Derived, b: Base) => Base ->b6 : new (a: Base, b: Derived) => Base +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) var r7a7 = a7 === b7; ->r7a7 : boolean +>r7a7 : boolean, Symbol(r7a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 183, 3)) >a7 === b7 : boolean ->a7 : new () => Base ->b7 : new () => Derived +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) var r7a8 = a8 === b8; ->r7a8 : boolean +>r7a8 : boolean, Symbol(r7a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 184, 3)) >a8 === b8 : boolean ->a8 : new (a?: Base) => Base ->b8 : new (a?: Derived) => Base +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) var r7a9 = a9 === b9; ->r7a9 : boolean +>r7a9 : boolean, Symbol(r7a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 185, 3)) >a9 === b9 : boolean ->a9 : new (...a: Base[]) => Base ->b9 : new (...a: Derived[]) => Base +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) //var r7a10 = a10 === b10; var r7b1 = b1 === a1; ->r7b1 : boolean +>r7b1 : boolean, Symbol(r7b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 188, 3)) >b1 === a1 : boolean ->b1 : new () => Base ->a1 : new () => Base +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) var r7b2 = b2 === a2; ->r7b2 : boolean +>r7b2 : boolean, Symbol(r7b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 189, 3)) >b2 === a2 : boolean ->b2 : new (a: number, b: string) => Base ->a2 : new (a: number, b: string) => Base +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) var r7b3 = b3 === a3; ->r7b3 : boolean +>r7b3 : boolean, Symbol(r7b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 190, 3)) >b3 === a3 : boolean ->b3 : new (a: number) => Base ->a3 : new (a: number, b: string) => Base +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) var r7b4 = b4 === a4; ->r7b4 : boolean +>r7b4 : boolean, Symbol(r7b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 191, 3)) >b4 === a4 : boolean ->b4 : new () => Base ->a4 : new (a: number, b: string) => Base +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) var r7b5 = b5 === a5; ->r7b5 : boolean +>r7b5 : boolean, Symbol(r7b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 192, 3)) >b5 === a5 : boolean ->b5 : new (a: Derived) => Base ->a5 : new (a: Base) => Base +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) var r7b6 = b6 === a6; ->r7b6 : boolean +>r7b6 : boolean, Symbol(r7b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 193, 3)) >b6 === a6 : boolean ->b6 : new (a: Base, b: Derived) => Base ->a6 : new (a: Derived, b: Base) => Base +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) var r7b7 = b7 === a7; ->r7b7 : boolean +>r7b7 : boolean, Symbol(r7b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 194, 3)) >b7 === a7 : boolean ->b7 : new () => Derived ->a7 : new () => Base +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) var r7b8 = b8 === a8; ->r7b8 : boolean +>r7b8 : boolean, Symbol(r7b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 195, 3)) >b8 === a8 : boolean ->b8 : new (a?: Derived) => Base ->a8 : new (a?: Base) => Base +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) var r7b9 = b9 === a9; ->r7b9 : boolean +>r7b9 : boolean, Symbol(r7b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 196, 3)) >b9 === a9 : boolean ->b9 : new (...a: Derived[]) => Base ->a9 : new (...a: Base[]) => Base +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) //var r7b10 = b10 === a10; // operator !== var r8a1 = a1 !== b1; ->r8a1 : boolean +>r8a1 : boolean, Symbol(r8a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 200, 3)) >a1 !== b1 : boolean ->a1 : new () => Base ->b1 : new () => Base +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) var r8a2 = a2 !== b2; ->r8a2 : boolean +>r8a2 : boolean, Symbol(r8a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 201, 3)) >a2 !== b2 : boolean ->a2 : new (a: number, b: string) => Base ->b2 : new (a: number, b: string) => Base +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) var r8a3 = a3 !== b3; ->r8a3 : boolean +>r8a3 : boolean, Symbol(r8a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 202, 3)) >a3 !== b3 : boolean ->a3 : new (a: number, b: string) => Base ->b3 : new (a: number) => Base +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) var r8a4 = a4 !== b4; ->r8a4 : boolean +>r8a4 : boolean, Symbol(r8a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 203, 3)) >a4 !== b4 : boolean ->a4 : new (a: number, b: string) => Base ->b4 : new () => Base +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) var r8a5 = a5 !== b5; ->r8a5 : boolean +>r8a5 : boolean, Symbol(r8a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 204, 3)) >a5 !== b5 : boolean ->a5 : new (a: Base) => Base ->b5 : new (a: Derived) => Base +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) var r8a6 = a6 !== b6; ->r8a6 : boolean +>r8a6 : boolean, Symbol(r8a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 205, 3)) >a6 !== b6 : boolean ->a6 : new (a: Derived, b: Base) => Base ->b6 : new (a: Base, b: Derived) => Base +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) var r8a7 = a7 !== b7; ->r8a7 : boolean +>r8a7 : boolean, Symbol(r8a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 206, 3)) >a7 !== b7 : boolean ->a7 : new () => Base ->b7 : new () => Derived +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) var r8a8 = a8 !== b8; ->r8a8 : boolean +>r8a8 : boolean, Symbol(r8a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 207, 3)) >a8 !== b8 : boolean ->a8 : new (a?: Base) => Base ->b8 : new (a?: Derived) => Base +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) var r8a9 = a9 !== b9; ->r8a9 : boolean +>r8a9 : boolean, Symbol(r8a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 208, 3)) >a9 !== b9 : boolean ->a9 : new (...a: Base[]) => Base ->b9 : new (...a: Derived[]) => Base +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) //var r8a10 = a10 !== b10; var r8b1 = b1 !== a1; ->r8b1 : boolean +>r8b1 : boolean, Symbol(r8b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 211, 3)) >b1 !== a1 : boolean ->b1 : new () => Base ->a1 : new () => Base +>b1 : new () => Base, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 9, 3)) +>a1 : new () => Base, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 8, 3)) var r8b2 = b2 !== a2; ->r8b2 : boolean +>r8b2 : boolean, Symbol(r8b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 212, 3)) >b2 !== a2 : boolean ->b2 : new (a: number, b: string) => Base ->a2 : new (a: number, b: string) => Base +>b2 : new (a: number, b: string) => Base, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 12, 3)) +>a2 : new (a: number, b: string) => Base, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 11, 3)) var r8b3 = b3 !== a3; ->r8b3 : boolean +>r8b3 : boolean, Symbol(r8b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 213, 3)) >b3 !== a3 : boolean ->b3 : new (a: number) => Base ->a3 : new (a: number, b: string) => Base +>b3 : new (a: number) => Base, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 15, 3)) +>a3 : new (a: number, b: string) => Base, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 14, 3)) var r8b4 = b4 !== a4; ->r8b4 : boolean +>r8b4 : boolean, Symbol(r8b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 214, 3)) >b4 !== a4 : boolean ->b4 : new () => Base ->a4 : new (a: number, b: string) => Base +>b4 : new () => Base, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 18, 3)) +>a4 : new (a: number, b: string) => Base, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 17, 3)) var r8b5 = b5 !== a5; ->r8b5 : boolean +>r8b5 : boolean, Symbol(r8b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 215, 3)) >b5 !== a5 : boolean ->b5 : new (a: Derived) => Base ->a5 : new (a: Base) => Base +>b5 : new (a: Derived) => Base, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 21, 3)) +>a5 : new (a: Base) => Base, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 20, 3)) var r8b6 = b6 !== a6; ->r8b6 : boolean +>r8b6 : boolean, Symbol(r8b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 216, 3)) >b6 !== a6 : boolean ->b6 : new (a: Base, b: Derived) => Base ->a6 : new (a: Derived, b: Base) => Base +>b6 : new (a: Base, b: Derived) => Base, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 24, 3)) +>a6 : new (a: Derived, b: Base) => Base, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 23, 3)) var r8b7 = b7 !== a7; ->r8b7 : boolean +>r8b7 : boolean, Symbol(r8b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 217, 3)) >b7 !== a7 : boolean ->b7 : new () => Derived ->a7 : new () => Base +>b7 : new () => Derived, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 27, 3)) +>a7 : new () => Base, Symbol(a7, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 26, 3)) var r8b8 = b8 !== a8; ->r8b8 : boolean +>r8b8 : boolean, Symbol(r8b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 218, 3)) >b8 !== a8 : boolean ->b8 : new (a?: Derived) => Base ->a8 : new (a?: Base) => Base +>b8 : new (a?: Derived) => Base, Symbol(b8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 30, 3)) +>a8 : new (a?: Base) => Base, Symbol(a8, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 29, 3)) var r8b9 = b9 !== a9; ->r8b9 : boolean +>r8b9 : boolean, Symbol(r8b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 219, 3)) >b9 !== a9 : boolean ->b9 : new (...a: Derived[]) => Base ->a9 : new (...a: Base[]) => Base +>b9 : new (...a: Derived[]) => Base, Symbol(b9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 33, 3)) +>a9 : new (...a: Base[]) => Base, Symbol(a9, Decl(comparisonOperatorWithSubtypeObjectOnConstructorSignature.ts, 32, 3)) //var r8b10 = b10 !== a10; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.types b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.types index 657fdccbda0..290ee1cee33 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.types +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.types @@ -1,444 +1,444 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnIndexSignature.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 0, 0)) public a: string; ->a : string +>a : string, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 0, 12)) } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 0, 0)) public b: string; ->b : string +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 4, 28)) } var a1: { [a: string]: string }; ->a1 : { [a: string]: string; } ->a : string +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) +>a : string, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 11)) var b1: { [b: string]: string }; ->b1 : { [b: string]: string; } ->b : string +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 11)) var a2: { [index: string]: Base }; ->a2 : { [index: string]: Base; } ->index : string ->Base : Base +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) +>index : string, Symbol(index, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 11)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 0, 0)) var b2: { [index: string]: Derived }; ->b2 : { [index: string]: Derived; } ->index : string ->Derived : Derived +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) +>index : string, Symbol(index, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 11)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 2, 1)) var a3: { [index: number]: string }; ->a3 : { [index: number]: string; } ->index : number +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) +>index : number, Symbol(index, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 11)) var b3: { [index: number]: string }; ->b3 : { [index: number]: string; } ->index : number +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) +>index : number, Symbol(index, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 11)) var a4: { [index: number]: Base }; ->a4 : { [index: number]: Base; } ->index : number ->Base : Base +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) +>index : number, Symbol(index, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 11)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 0, 0)) var b4: { [index: string]: Derived }; ->b4 : { [index: string]: Derived; } ->index : string ->Derived : Derived +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) +>index : string, Symbol(index, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 11)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 2, 1)) // operator < var r1a1 = a1 < b1; ->r1a1 : boolean +>r1a1 : boolean, Symbol(r1a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 21, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 22, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 23, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 24, 3)) >a1 < b1 : boolean ->a1 : { [a: string]: string; } ->b1 : { [b: string]: string; } +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) var r1a1 = a2 < b2; ->r1a1 : boolean +>r1a1 : boolean, Symbol(r1a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 21, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 22, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 23, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 24, 3)) >a2 < b2 : boolean ->a2 : { [index: string]: Base; } ->b2 : { [index: string]: Derived; } +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) var r1a1 = a3 < b3; ->r1a1 : boolean +>r1a1 : boolean, Symbol(r1a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 21, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 22, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 23, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 24, 3)) >a3 < b3 : boolean ->a3 : { [index: number]: string; } ->b3 : { [index: number]: string; } +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) var r1a1 = a4 < b4; ->r1a1 : boolean +>r1a1 : boolean, Symbol(r1a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 21, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 22, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 23, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 24, 3)) >a4 < b4 : boolean ->a4 : { [index: number]: Base; } ->b4 : { [index: string]: Derived; } +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) var r1b1 = b1 < a1; ->r1b1 : boolean +>r1b1 : boolean, Symbol(r1b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 26, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 27, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 28, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 29, 3)) >b1 < a1 : boolean ->b1 : { [b: string]: string; } ->a1 : { [a: string]: string; } +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) var r1b1 = b2 < a2; ->r1b1 : boolean +>r1b1 : boolean, Symbol(r1b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 26, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 27, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 28, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 29, 3)) >b2 < a2 : boolean ->b2 : { [index: string]: Derived; } ->a2 : { [index: string]: Base; } +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) var r1b1 = b3 < a3; ->r1b1 : boolean +>r1b1 : boolean, Symbol(r1b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 26, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 27, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 28, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 29, 3)) >b3 < a3 : boolean ->b3 : { [index: number]: string; } ->a3 : { [index: number]: string; } +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) var r1b1 = b4 < a4; ->r1b1 : boolean +>r1b1 : boolean, Symbol(r1b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 26, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 27, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 28, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 29, 3)) >b4 < a4 : boolean ->b4 : { [index: string]: Derived; } ->a4 : { [index: number]: Base; } +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) // operator > var r2a1 = a1 > b1; ->r2a1 : boolean +>r2a1 : boolean, Symbol(r2a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 32, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 33, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 34, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 35, 3)) >a1 > b1 : boolean ->a1 : { [a: string]: string; } ->b1 : { [b: string]: string; } +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) var r2a1 = a2 > b2; ->r2a1 : boolean +>r2a1 : boolean, Symbol(r2a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 32, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 33, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 34, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 35, 3)) >a2 > b2 : boolean ->a2 : { [index: string]: Base; } ->b2 : { [index: string]: Derived; } +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) var r2a1 = a3 > b3; ->r2a1 : boolean +>r2a1 : boolean, Symbol(r2a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 32, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 33, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 34, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 35, 3)) >a3 > b3 : boolean ->a3 : { [index: number]: string; } ->b3 : { [index: number]: string; } +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) var r2a1 = a4 > b4; ->r2a1 : boolean +>r2a1 : boolean, Symbol(r2a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 32, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 33, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 34, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 35, 3)) >a4 > b4 : boolean ->a4 : { [index: number]: Base; } ->b4 : { [index: string]: Derived; } +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) var r2b1 = b1 > a1; ->r2b1 : boolean +>r2b1 : boolean, Symbol(r2b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 37, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 38, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 39, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 40, 3)) >b1 > a1 : boolean ->b1 : { [b: string]: string; } ->a1 : { [a: string]: string; } +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) var r2b1 = b2 > a2; ->r2b1 : boolean +>r2b1 : boolean, Symbol(r2b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 37, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 38, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 39, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 40, 3)) >b2 > a2 : boolean ->b2 : { [index: string]: Derived; } ->a2 : { [index: string]: Base; } +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) var r2b1 = b3 > a3; ->r2b1 : boolean +>r2b1 : boolean, Symbol(r2b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 37, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 38, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 39, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 40, 3)) >b3 > a3 : boolean ->b3 : { [index: number]: string; } ->a3 : { [index: number]: string; } +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) var r2b1 = b4 > a4; ->r2b1 : boolean +>r2b1 : boolean, Symbol(r2b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 37, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 38, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 39, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 40, 3)) >b4 > a4 : boolean ->b4 : { [index: string]: Derived; } ->a4 : { [index: number]: Base; } +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) // operator <= var r3a1 = a1 <= b1; ->r3a1 : boolean +>r3a1 : boolean, Symbol(r3a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 43, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 44, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 45, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 46, 3)) >a1 <= b1 : boolean ->a1 : { [a: string]: string; } ->b1 : { [b: string]: string; } +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) var r3a1 = a2 <= b2; ->r3a1 : boolean +>r3a1 : boolean, Symbol(r3a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 43, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 44, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 45, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 46, 3)) >a2 <= b2 : boolean ->a2 : { [index: string]: Base; } ->b2 : { [index: string]: Derived; } +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) var r3a1 = a3 <= b3; ->r3a1 : boolean +>r3a1 : boolean, Symbol(r3a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 43, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 44, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 45, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 46, 3)) >a3 <= b3 : boolean ->a3 : { [index: number]: string; } ->b3 : { [index: number]: string; } +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) var r3a1 = a4 <= b4; ->r3a1 : boolean +>r3a1 : boolean, Symbol(r3a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 43, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 44, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 45, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 46, 3)) >a4 <= b4 : boolean ->a4 : { [index: number]: Base; } ->b4 : { [index: string]: Derived; } +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) var r3b1 = b1 <= a1; ->r3b1 : boolean +>r3b1 : boolean, Symbol(r3b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 48, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 49, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 50, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 51, 3)) >b1 <= a1 : boolean ->b1 : { [b: string]: string; } ->a1 : { [a: string]: string; } +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) var r3b1 = b2 <= a2; ->r3b1 : boolean +>r3b1 : boolean, Symbol(r3b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 48, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 49, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 50, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 51, 3)) >b2 <= a2 : boolean ->b2 : { [index: string]: Derived; } ->a2 : { [index: string]: Base; } +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) var r3b1 = b3 <= a3; ->r3b1 : boolean +>r3b1 : boolean, Symbol(r3b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 48, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 49, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 50, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 51, 3)) >b3 <= a3 : boolean ->b3 : { [index: number]: string; } ->a3 : { [index: number]: string; } +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) var r3b1 = b4 <= a4; ->r3b1 : boolean +>r3b1 : boolean, Symbol(r3b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 48, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 49, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 50, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 51, 3)) >b4 <= a4 : boolean ->b4 : { [index: string]: Derived; } ->a4 : { [index: number]: Base; } +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) // operator >= var r4a1 = a1 >= b1; ->r4a1 : boolean +>r4a1 : boolean, Symbol(r4a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 54, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 55, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 56, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 57, 3)) >a1 >= b1 : boolean ->a1 : { [a: string]: string; } ->b1 : { [b: string]: string; } +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) var r4a1 = a2 >= b2; ->r4a1 : boolean +>r4a1 : boolean, Symbol(r4a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 54, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 55, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 56, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 57, 3)) >a2 >= b2 : boolean ->a2 : { [index: string]: Base; } ->b2 : { [index: string]: Derived; } +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) var r4a1 = a3 >= b3; ->r4a1 : boolean +>r4a1 : boolean, Symbol(r4a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 54, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 55, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 56, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 57, 3)) >a3 >= b3 : boolean ->a3 : { [index: number]: string; } ->b3 : { [index: number]: string; } +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) var r4a1 = a4 >= b4; ->r4a1 : boolean +>r4a1 : boolean, Symbol(r4a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 54, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 55, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 56, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 57, 3)) >a4 >= b4 : boolean ->a4 : { [index: number]: Base; } ->b4 : { [index: string]: Derived; } +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) var r4b1 = b1 >= a1; ->r4b1 : boolean +>r4b1 : boolean, Symbol(r4b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 59, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 60, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 61, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 62, 3)) >b1 >= a1 : boolean ->b1 : { [b: string]: string; } ->a1 : { [a: string]: string; } +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) var r4b1 = b2 >= a2; ->r4b1 : boolean +>r4b1 : boolean, Symbol(r4b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 59, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 60, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 61, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 62, 3)) >b2 >= a2 : boolean ->b2 : { [index: string]: Derived; } ->a2 : { [index: string]: Base; } +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) var r4b1 = b3 >= a3; ->r4b1 : boolean +>r4b1 : boolean, Symbol(r4b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 59, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 60, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 61, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 62, 3)) >b3 >= a3 : boolean ->b3 : { [index: number]: string; } ->a3 : { [index: number]: string; } +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) var r4b1 = b4 >= a4; ->r4b1 : boolean +>r4b1 : boolean, Symbol(r4b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 59, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 60, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 61, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 62, 3)) >b4 >= a4 : boolean ->b4 : { [index: string]: Derived; } ->a4 : { [index: number]: Base; } +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) // operator == var r5a1 = a1 == b1; ->r5a1 : boolean +>r5a1 : boolean, Symbol(r5a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 65, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 66, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 67, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 68, 3)) >a1 == b1 : boolean ->a1 : { [a: string]: string; } ->b1 : { [b: string]: string; } +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) var r5a1 = a2 == b2; ->r5a1 : boolean +>r5a1 : boolean, Symbol(r5a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 65, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 66, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 67, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 68, 3)) >a2 == b2 : boolean ->a2 : { [index: string]: Base; } ->b2 : { [index: string]: Derived; } +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) var r5a1 = a3 == b3; ->r5a1 : boolean +>r5a1 : boolean, Symbol(r5a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 65, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 66, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 67, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 68, 3)) >a3 == b3 : boolean ->a3 : { [index: number]: string; } ->b3 : { [index: number]: string; } +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) var r5a1 = a4 == b4; ->r5a1 : boolean +>r5a1 : boolean, Symbol(r5a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 65, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 66, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 67, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 68, 3)) >a4 == b4 : boolean ->a4 : { [index: number]: Base; } ->b4 : { [index: string]: Derived; } +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) var r5b1 = b1 == a1; ->r5b1 : boolean +>r5b1 : boolean, Symbol(r5b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 70, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 71, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 72, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 73, 3)) >b1 == a1 : boolean ->b1 : { [b: string]: string; } ->a1 : { [a: string]: string; } +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) var r5b1 = b2 == a2; ->r5b1 : boolean +>r5b1 : boolean, Symbol(r5b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 70, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 71, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 72, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 73, 3)) >b2 == a2 : boolean ->b2 : { [index: string]: Derived; } ->a2 : { [index: string]: Base; } +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) var r5b1 = b3 == a3; ->r5b1 : boolean +>r5b1 : boolean, Symbol(r5b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 70, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 71, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 72, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 73, 3)) >b3 == a3 : boolean ->b3 : { [index: number]: string; } ->a3 : { [index: number]: string; } +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) var r5b1 = b4 == a4; ->r5b1 : boolean +>r5b1 : boolean, Symbol(r5b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 70, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 71, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 72, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 73, 3)) >b4 == a4 : boolean ->b4 : { [index: string]: Derived; } ->a4 : { [index: number]: Base; } +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) // operator != var r6a1 = a1 != b1; ->r6a1 : boolean +>r6a1 : boolean, Symbol(r6a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 76, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 77, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 78, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 79, 3)) >a1 != b1 : boolean ->a1 : { [a: string]: string; } ->b1 : { [b: string]: string; } +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) var r6a1 = a2 != b2; ->r6a1 : boolean +>r6a1 : boolean, Symbol(r6a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 76, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 77, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 78, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 79, 3)) >a2 != b2 : boolean ->a2 : { [index: string]: Base; } ->b2 : { [index: string]: Derived; } +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) var r6a1 = a3 != b3; ->r6a1 : boolean +>r6a1 : boolean, Symbol(r6a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 76, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 77, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 78, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 79, 3)) >a3 != b3 : boolean ->a3 : { [index: number]: string; } ->b3 : { [index: number]: string; } +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) var r6a1 = a4 != b4; ->r6a1 : boolean +>r6a1 : boolean, Symbol(r6a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 76, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 77, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 78, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 79, 3)) >a4 != b4 : boolean ->a4 : { [index: number]: Base; } ->b4 : { [index: string]: Derived; } +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) var r6b1 = b1 != a1; ->r6b1 : boolean +>r6b1 : boolean, Symbol(r6b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 81, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 82, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 83, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 84, 3)) >b1 != a1 : boolean ->b1 : { [b: string]: string; } ->a1 : { [a: string]: string; } +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) var r6b1 = b2 != a2; ->r6b1 : boolean +>r6b1 : boolean, Symbol(r6b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 81, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 82, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 83, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 84, 3)) >b2 != a2 : boolean ->b2 : { [index: string]: Derived; } ->a2 : { [index: string]: Base; } +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) var r6b1 = b3 != a3; ->r6b1 : boolean +>r6b1 : boolean, Symbol(r6b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 81, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 82, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 83, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 84, 3)) >b3 != a3 : boolean ->b3 : { [index: number]: string; } ->a3 : { [index: number]: string; } +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) var r6b1 = b4 != a4; ->r6b1 : boolean +>r6b1 : boolean, Symbol(r6b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 81, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 82, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 83, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 84, 3)) >b4 != a4 : boolean ->b4 : { [index: string]: Derived; } ->a4 : { [index: number]: Base; } +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) // operator === var r7a1 = a1 === b1; ->r7a1 : boolean +>r7a1 : boolean, Symbol(r7a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 87, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 88, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 89, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 90, 3)) >a1 === b1 : boolean ->a1 : { [a: string]: string; } ->b1 : { [b: string]: string; } +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) var r7a1 = a2 === b2; ->r7a1 : boolean +>r7a1 : boolean, Symbol(r7a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 87, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 88, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 89, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 90, 3)) >a2 === b2 : boolean ->a2 : { [index: string]: Base; } ->b2 : { [index: string]: Derived; } +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) var r7a1 = a3 === b3; ->r7a1 : boolean +>r7a1 : boolean, Symbol(r7a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 87, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 88, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 89, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 90, 3)) >a3 === b3 : boolean ->a3 : { [index: number]: string; } ->b3 : { [index: number]: string; } +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) var r7a1 = a4 === b4; ->r7a1 : boolean +>r7a1 : boolean, Symbol(r7a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 87, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 88, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 89, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 90, 3)) >a4 === b4 : boolean ->a4 : { [index: number]: Base; } ->b4 : { [index: string]: Derived; } +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) var r7b1 = b1 === a1; ->r7b1 : boolean +>r7b1 : boolean, Symbol(r7b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 92, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 93, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 94, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 95, 3)) >b1 === a1 : boolean ->b1 : { [b: string]: string; } ->a1 : { [a: string]: string; } +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) var r7b1 = b2 === a2; ->r7b1 : boolean +>r7b1 : boolean, Symbol(r7b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 92, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 93, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 94, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 95, 3)) >b2 === a2 : boolean ->b2 : { [index: string]: Derived; } ->a2 : { [index: string]: Base; } +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) var r7b1 = b3 === a3; ->r7b1 : boolean +>r7b1 : boolean, Symbol(r7b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 92, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 93, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 94, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 95, 3)) >b3 === a3 : boolean ->b3 : { [index: number]: string; } ->a3 : { [index: number]: string; } +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) var r7b1 = b4 === a4; ->r7b1 : boolean +>r7b1 : boolean, Symbol(r7b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 92, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 93, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 94, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 95, 3)) >b4 === a4 : boolean ->b4 : { [index: string]: Derived; } ->a4 : { [index: number]: Base; } +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) // operator !== var r8a1 = a1 !== b1; ->r8a1 : boolean +>r8a1 : boolean, Symbol(r8a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 98, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 99, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 100, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 101, 3)) >a1 !== b1 : boolean ->a1 : { [a: string]: string; } ->b1 : { [b: string]: string; } +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) var r8a1 = a2 !== b2; ->r8a1 : boolean +>r8a1 : boolean, Symbol(r8a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 98, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 99, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 100, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 101, 3)) >a2 !== b2 : boolean ->a2 : { [index: string]: Base; } ->b2 : { [index: string]: Derived; } +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) var r8a1 = a3 !== b3; ->r8a1 : boolean +>r8a1 : boolean, Symbol(r8a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 98, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 99, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 100, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 101, 3)) >a3 !== b3 : boolean ->a3 : { [index: number]: string; } ->b3 : { [index: number]: string; } +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) var r8a1 = a4 !== b4; ->r8a1 : boolean +>r8a1 : boolean, Symbol(r8a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 98, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 99, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 100, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 101, 3)) >a4 !== b4 : boolean ->a4 : { [index: number]: Base; } ->b4 : { [index: string]: Derived; } +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) var r8b1 = b1 !== a1; ->r8b1 : boolean +>r8b1 : boolean, Symbol(r8b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 103, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 104, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 105, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 106, 3)) >b1 !== a1 : boolean ->b1 : { [b: string]: string; } ->a1 : { [a: string]: string; } +>b1 : { [b: string]: string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 9, 3)) +>a1 : { [a: string]: string; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 8, 3)) var r8b1 = b2 !== a2; ->r8b1 : boolean +>r8b1 : boolean, Symbol(r8b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 103, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 104, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 105, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 106, 3)) >b2 !== a2 : boolean ->b2 : { [index: string]: Derived; } ->a2 : { [index: string]: Base; } +>b2 : { [index: string]: Derived; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 12, 3)) +>a2 : { [index: string]: Base; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 11, 3)) var r8b1 = b3 !== a3; ->r8b1 : boolean +>r8b1 : boolean, Symbol(r8b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 103, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 104, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 105, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 106, 3)) >b3 !== a3 : boolean ->b3 : { [index: number]: string; } ->a3 : { [index: number]: string; } +>b3 : { [index: number]: string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 15, 3)) +>a3 : { [index: number]: string; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 14, 3)) var r8b1 = b4 !== a4; ->r8b1 : boolean +>r8b1 : boolean, Symbol(r8b1, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 103, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 104, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 105, 3), Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 106, 3)) >b4 !== a4 : boolean ->b4 : { [index: string]: Derived; } ->a4 : { [index: number]: Base; } +>b4 : { [index: string]: Derived; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 18, 3)) +>a4 : { [index: number]: Base; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnIndexSignature.ts, 17, 3)) diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.types b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.types index c3f0d96e839..ea1e4732b84 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.types +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.types @@ -1,727 +1,727 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 0, 0)) public a: string; ->a : string +>a : string, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 0, 12)) } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 0, 0)) public b: string; ->b : string +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 4, 28)) } var a1: { fn(x: T): T }; ->a1 : { fn(x: T): T; } ->fn : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) +>fn : (x: T) => T, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 9)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 13)) +>x : T, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 16)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 13)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 13)) var b1: { fn(x: string): string }; ->b1 : { fn(x: string): string; } ->fn : (x: string) => string ->x : string +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) +>fn : (x: string) => string, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 9)) +>x : string, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 13)) var a2: { fn(x: T): T }; ->a2 : { fn(x: T): T; } ->fn : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) +>fn : (x: T) => T, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 9)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 13)) +>x : T, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 16)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 13)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 13)) var b2: { fn(x: string, y: number): string }; ->b2 : { fn(x: string, y: number): string; } ->fn : (x: string, y: number) => string ->x : string ->y : number +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) +>fn : (x: string, y: number) => string, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 9)) +>x : string, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 13)) +>y : number, Symbol(y, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 23)) var a3: { fn(x: T, y: U): T }; ->a3 : { fn(x: T, y: U): T; } ->fn : (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) +>fn : (x: T, y: U) => T, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 9)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 13)) +>U : U, Symbol(U, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 15)) +>x : T, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 19)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 13)) +>y : U, Symbol(y, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 24)) +>U : U, Symbol(U, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 15)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 13)) var b3: { fn(x: string, y: number): string }; ->b3 : { fn(x: string, y: number): string; } ->fn : (x: string, y: number) => string ->x : string ->y : number +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) +>fn : (x: string, y: number) => string, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 9)) +>x : string, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 13)) +>y : number, Symbol(y, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 23)) var a4: { fn(x?: T): T }; ->a4 : { fn(x?: T): T; } ->fn : (x?: T) => T ->T : T ->x : T ->T : T ->T : T +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) +>fn : (x?: T) => T, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 9)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 13)) +>x : T, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 16)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 13)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 13)) var b4: { fn(x?: string): string }; ->b4 : { fn(x?: string): string; } ->fn : (x?: string) => string ->x : string +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) +>fn : (x?: string) => string, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 9)) +>x : string, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 13)) var a5: { fn(...x: T[]): T }; ->a5 : { fn(...x: T[]): T; } ->fn : (...x: T[]) => T ->T : T ->x : T[] ->T : T ->T : T +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) +>fn : (...x: T[]) => T, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 9)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 13)) +>x : T[], Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 16)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 13)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 13)) var b5: { fn(...x: string[]): string }; ->b5 : { fn(...x: string[]): string; } ->fn : (...x: string[]) => string ->x : string[] +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) +>fn : (...x: string[]) => string, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 9)) +>x : string[], Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 13)) var a6: { fn(x: T, y: T): T }; ->a6 : { fn(x: T, y: T): T; } ->fn : (x: T, y: T) => T ->T : T ->x : T ->T : T ->y : T ->T : T ->T : T +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) +>fn : (x: T, y: T) => T, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 9)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 13)) +>x : T, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 16)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 13)) +>y : T, Symbol(y, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 21)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 13)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 13)) var b6: { fn(x: string, y: number): {} }; ->b6 : { fn(x: string, y: number): {}; } ->fn : (x: string, y: number) => {} ->x : string ->y : number +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) +>fn : (x: string, y: number) => {}, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 9)) +>x : string, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 13)) +>y : number, Symbol(y, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 23)) //var a7: { fn(x: T, y: U): T }; var b7: { fn(x: Base, y: Derived): Base }; ->b7 : { fn(x: Base, y: Derived): Base; } ->fn : (x: Base, y: Derived) => Base ->x : Base ->Base : Base ->y : Derived ->Derived : Derived ->Base : Base +>b7 : { fn(x: Base, y: Derived): Base; }, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 27, 3)) +>fn : (x: Base, y: Derived) => Base, Symbol(fn, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 27, 9)) +>x : Base, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 27, 13)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 0, 0)) +>y : Derived, Symbol(y, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 27, 21)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 0, 0)) // operator < var r1a1 = a1 < b1; ->r1a1 : boolean +>r1a1 : boolean, Symbol(r1a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 30, 3)) >a1 < b1 : boolean ->a1 : { fn(x: T): T; } ->b1 : { fn(x: string): string; } +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) var r1a2 = a2 < b2; ->r1a2 : boolean +>r1a2 : boolean, Symbol(r1a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 31, 3)) >a2 < b2 : boolean ->a2 : { fn(x: T): T; } ->b2 : { fn(x: string, y: number): string; } +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) var r1a3 = a3 < b3; ->r1a3 : boolean +>r1a3 : boolean, Symbol(r1a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 32, 3)) >a3 < b3 : boolean ->a3 : { fn(x: T, y: U): T; } ->b3 : { fn(x: string, y: number): string; } +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) var r1a4 = a4 < b4; ->r1a4 : boolean +>r1a4 : boolean, Symbol(r1a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 33, 3)) >a4 < b4 : boolean ->a4 : { fn(x?: T): T; } ->b4 : { fn(x?: string): string; } +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) var r1a5 = a5 < b5; ->r1a5 : boolean +>r1a5 : boolean, Symbol(r1a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 34, 3)) >a5 < b5 : boolean ->a5 : { fn(...x: T[]): T; } ->b5 : { fn(...x: string[]): string; } +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) var r1a6 = a6 < b6; ->r1a6 : boolean +>r1a6 : boolean, Symbol(r1a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 35, 3)) >a6 < b6 : boolean ->a6 : { fn(x: T, y: T): T; } ->b6 : { fn(x: string, y: number): {}; } +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) //var r1a7 = a7 < b7; var r1b1 = b1 < a1; ->r1b1 : boolean +>r1b1 : boolean, Symbol(r1b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 38, 3)) >b1 < a1 : boolean ->b1 : { fn(x: string): string; } ->a1 : { fn(x: T): T; } +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) var r1b2 = b2 < a2; ->r1b2 : boolean +>r1b2 : boolean, Symbol(r1b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 39, 3)) >b2 < a2 : boolean ->b2 : { fn(x: string, y: number): string; } ->a2 : { fn(x: T): T; } +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) var r1b3 = b3 < a3; ->r1b3 : boolean +>r1b3 : boolean, Symbol(r1b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 40, 3)) >b3 < a3 : boolean ->b3 : { fn(x: string, y: number): string; } ->a3 : { fn(x: T, y: U): T; } +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) var r1b4 = b4 < a4; ->r1b4 : boolean +>r1b4 : boolean, Symbol(r1b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 41, 3)) >b4 < a4 : boolean ->b4 : { fn(x?: string): string; } ->a4 : { fn(x?: T): T; } +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) var r1b5 = b5 < a5; ->r1b5 : boolean +>r1b5 : boolean, Symbol(r1b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 42, 3)) >b5 < a5 : boolean ->b5 : { fn(...x: string[]): string; } ->a5 : { fn(...x: T[]): T; } +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) var r1b6 = b6 < a6; ->r1b6 : boolean +>r1b6 : boolean, Symbol(r1b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 43, 3)) >b6 < a6 : boolean ->b6 : { fn(x: string, y: number): {}; } ->a6 : { fn(x: T, y: T): T; } +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) //var r1b7 = b7 < a7; // operator > var r2a1 = a1 > b1; ->r2a1 : boolean +>r2a1 : boolean, Symbol(r2a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 47, 3)) >a1 > b1 : boolean ->a1 : { fn(x: T): T; } ->b1 : { fn(x: string): string; } +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) var r2a2 = a2 > b2; ->r2a2 : boolean +>r2a2 : boolean, Symbol(r2a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 48, 3)) >a2 > b2 : boolean ->a2 : { fn(x: T): T; } ->b2 : { fn(x: string, y: number): string; } +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) var r2a3 = a3 > b3; ->r2a3 : boolean +>r2a3 : boolean, Symbol(r2a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 49, 3)) >a3 > b3 : boolean ->a3 : { fn(x: T, y: U): T; } ->b3 : { fn(x: string, y: number): string; } +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) var r2a4 = a4 > b4; ->r2a4 : boolean +>r2a4 : boolean, Symbol(r2a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 50, 3)) >a4 > b4 : boolean ->a4 : { fn(x?: T): T; } ->b4 : { fn(x?: string): string; } +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) var r2a5 = a5 > b5; ->r2a5 : boolean +>r2a5 : boolean, Symbol(r2a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 51, 3)) >a5 > b5 : boolean ->a5 : { fn(...x: T[]): T; } ->b5 : { fn(...x: string[]): string; } +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) var r2a6 = a6 > b6; ->r2a6 : boolean +>r2a6 : boolean, Symbol(r2a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 52, 3)) >a6 > b6 : boolean ->a6 : { fn(x: T, y: T): T; } ->b6 : { fn(x: string, y: number): {}; } +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) //var r2a7 = a7 > b7; var r2b1 = b1 > a1; ->r2b1 : boolean +>r2b1 : boolean, Symbol(r2b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 55, 3)) >b1 > a1 : boolean ->b1 : { fn(x: string): string; } ->a1 : { fn(x: T): T; } +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) var r2b2 = b2 > a2; ->r2b2 : boolean +>r2b2 : boolean, Symbol(r2b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 56, 3)) >b2 > a2 : boolean ->b2 : { fn(x: string, y: number): string; } ->a2 : { fn(x: T): T; } +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) var r2b3 = b3 > a3; ->r2b3 : boolean +>r2b3 : boolean, Symbol(r2b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 57, 3)) >b3 > a3 : boolean ->b3 : { fn(x: string, y: number): string; } ->a3 : { fn(x: T, y: U): T; } +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) var r2b4 = b4 > a4; ->r2b4 : boolean +>r2b4 : boolean, Symbol(r2b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 58, 3)) >b4 > a4 : boolean ->b4 : { fn(x?: string): string; } ->a4 : { fn(x?: T): T; } +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) var r2b5 = b5 > a5; ->r2b5 : boolean +>r2b5 : boolean, Symbol(r2b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 59, 3)) >b5 > a5 : boolean ->b5 : { fn(...x: string[]): string; } ->a5 : { fn(...x: T[]): T; } +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) var r2b6 = b6 > a6; ->r2b6 : boolean +>r2b6 : boolean, Symbol(r2b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 60, 3)) >b6 > a6 : boolean ->b6 : { fn(x: string, y: number): {}; } ->a6 : { fn(x: T, y: T): T; } +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) //var r2b7 = b7 > a7; // operator <= var r3a1 = a1 <= b1; ->r3a1 : boolean +>r3a1 : boolean, Symbol(r3a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 64, 3)) >a1 <= b1 : boolean ->a1 : { fn(x: T): T; } ->b1 : { fn(x: string): string; } +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) var r3a2 = a2 <= b2; ->r3a2 : boolean +>r3a2 : boolean, Symbol(r3a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 65, 3)) >a2 <= b2 : boolean ->a2 : { fn(x: T): T; } ->b2 : { fn(x: string, y: number): string; } +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) var r3a3 = a3 <= b3; ->r3a3 : boolean +>r3a3 : boolean, Symbol(r3a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 66, 3)) >a3 <= b3 : boolean ->a3 : { fn(x: T, y: U): T; } ->b3 : { fn(x: string, y: number): string; } +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) var r3a4 = a4 <= b4; ->r3a4 : boolean +>r3a4 : boolean, Symbol(r3a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 67, 3)) >a4 <= b4 : boolean ->a4 : { fn(x?: T): T; } ->b4 : { fn(x?: string): string; } +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) var r3a5 = a5 <= b5; ->r3a5 : boolean +>r3a5 : boolean, Symbol(r3a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 68, 3)) >a5 <= b5 : boolean ->a5 : { fn(...x: T[]): T; } ->b5 : { fn(...x: string[]): string; } +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) var r3a6 = a6 <= b6; ->r3a6 : boolean +>r3a6 : boolean, Symbol(r3a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 69, 3)) >a6 <= b6 : boolean ->a6 : { fn(x: T, y: T): T; } ->b6 : { fn(x: string, y: number): {}; } +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) //var r3a7 = a7 <= b7; var r3b1 = b1 <= a1; ->r3b1 : boolean +>r3b1 : boolean, Symbol(r3b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 72, 3)) >b1 <= a1 : boolean ->b1 : { fn(x: string): string; } ->a1 : { fn(x: T): T; } +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) var r3b2 = b2 <= a2; ->r3b2 : boolean +>r3b2 : boolean, Symbol(r3b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 73, 3)) >b2 <= a2 : boolean ->b2 : { fn(x: string, y: number): string; } ->a2 : { fn(x: T): T; } +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) var r3b3 = b3 <= a3; ->r3b3 : boolean +>r3b3 : boolean, Symbol(r3b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 74, 3)) >b3 <= a3 : boolean ->b3 : { fn(x: string, y: number): string; } ->a3 : { fn(x: T, y: U): T; } +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) var r3b4 = b4 <= a4; ->r3b4 : boolean +>r3b4 : boolean, Symbol(r3b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 75, 3)) >b4 <= a4 : boolean ->b4 : { fn(x?: string): string; } ->a4 : { fn(x?: T): T; } +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) var r3b5 = b5 <= a5; ->r3b5 : boolean +>r3b5 : boolean, Symbol(r3b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 76, 3)) >b5 <= a5 : boolean ->b5 : { fn(...x: string[]): string; } ->a5 : { fn(...x: T[]): T; } +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) var r3b6 = b6 <= a6; ->r3b6 : boolean +>r3b6 : boolean, Symbol(r3b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 77, 3)) >b6 <= a6 : boolean ->b6 : { fn(x: string, y: number): {}; } ->a6 : { fn(x: T, y: T): T; } +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) //var r3b7 = b7 <= a7; // operator >= var r4a1 = a1 >= b1; ->r4a1 : boolean +>r4a1 : boolean, Symbol(r4a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 81, 3)) >a1 >= b1 : boolean ->a1 : { fn(x: T): T; } ->b1 : { fn(x: string): string; } +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) var r4a2 = a2 >= b2; ->r4a2 : boolean +>r4a2 : boolean, Symbol(r4a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 82, 3)) >a2 >= b2 : boolean ->a2 : { fn(x: T): T; } ->b2 : { fn(x: string, y: number): string; } +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) var r4a3 = a3 >= b3; ->r4a3 : boolean +>r4a3 : boolean, Symbol(r4a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 83, 3)) >a3 >= b3 : boolean ->a3 : { fn(x: T, y: U): T; } ->b3 : { fn(x: string, y: number): string; } +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) var r4a4 = a4 >= b4; ->r4a4 : boolean +>r4a4 : boolean, Symbol(r4a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 84, 3)) >a4 >= b4 : boolean ->a4 : { fn(x?: T): T; } ->b4 : { fn(x?: string): string; } +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) var r4a5 = a5 >= b5; ->r4a5 : boolean +>r4a5 : boolean, Symbol(r4a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 85, 3)) >a5 >= b5 : boolean ->a5 : { fn(...x: T[]): T; } ->b5 : { fn(...x: string[]): string; } +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) var r4a6 = a6 >= b6; ->r4a6 : boolean +>r4a6 : boolean, Symbol(r4a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 86, 3)) >a6 >= b6 : boolean ->a6 : { fn(x: T, y: T): T; } ->b6 : { fn(x: string, y: number): {}; } +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) //var r4a7 = a7 >= b7; var r4b1 = b1 >= a1; ->r4b1 : boolean +>r4b1 : boolean, Symbol(r4b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 89, 3)) >b1 >= a1 : boolean ->b1 : { fn(x: string): string; } ->a1 : { fn(x: T): T; } +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) var r4b2 = b2 >= a2; ->r4b2 : boolean +>r4b2 : boolean, Symbol(r4b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 90, 3)) >b2 >= a2 : boolean ->b2 : { fn(x: string, y: number): string; } ->a2 : { fn(x: T): T; } +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) var r4b3 = b3 >= a3; ->r4b3 : boolean +>r4b3 : boolean, Symbol(r4b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 91, 3)) >b3 >= a3 : boolean ->b3 : { fn(x: string, y: number): string; } ->a3 : { fn(x: T, y: U): T; } +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) var r4b4 = b4 >= a4; ->r4b4 : boolean +>r4b4 : boolean, Symbol(r4b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 92, 3)) >b4 >= a4 : boolean ->b4 : { fn(x?: string): string; } ->a4 : { fn(x?: T): T; } +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) var r4b5 = b5 >= a5; ->r4b5 : boolean +>r4b5 : boolean, Symbol(r4b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 93, 3)) >b5 >= a5 : boolean ->b5 : { fn(...x: string[]): string; } ->a5 : { fn(...x: T[]): T; } +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) var r4b6 = b6 >= a6; ->r4b6 : boolean +>r4b6 : boolean, Symbol(r4b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 94, 3)) >b6 >= a6 : boolean ->b6 : { fn(x: string, y: number): {}; } ->a6 : { fn(x: T, y: T): T; } +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) //var r4b7 = b7 >= a7; // operator == var r5a1 = a1 == b1; ->r5a1 : boolean +>r5a1 : boolean, Symbol(r5a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 98, 3)) >a1 == b1 : boolean ->a1 : { fn(x: T): T; } ->b1 : { fn(x: string): string; } +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) var r5a2 = a2 == b2; ->r5a2 : boolean +>r5a2 : boolean, Symbol(r5a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 99, 3)) >a2 == b2 : boolean ->a2 : { fn(x: T): T; } ->b2 : { fn(x: string, y: number): string; } +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) var r5a3 = a3 == b3; ->r5a3 : boolean +>r5a3 : boolean, Symbol(r5a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 100, 3)) >a3 == b3 : boolean ->a3 : { fn(x: T, y: U): T; } ->b3 : { fn(x: string, y: number): string; } +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) var r5a4 = a4 == b4; ->r5a4 : boolean +>r5a4 : boolean, Symbol(r5a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 101, 3)) >a4 == b4 : boolean ->a4 : { fn(x?: T): T; } ->b4 : { fn(x?: string): string; } +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) var r5a5 = a5 == b5; ->r5a5 : boolean +>r5a5 : boolean, Symbol(r5a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 102, 3)) >a5 == b5 : boolean ->a5 : { fn(...x: T[]): T; } ->b5 : { fn(...x: string[]): string; } +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) var r5a6 = a6 == b6; ->r5a6 : boolean +>r5a6 : boolean, Symbol(r5a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 103, 3)) >a6 == b6 : boolean ->a6 : { fn(x: T, y: T): T; } ->b6 : { fn(x: string, y: number): {}; } +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) //var r5a7 = a7 == b7; var r5b1 = b1 == a1; ->r5b1 : boolean +>r5b1 : boolean, Symbol(r5b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 106, 3)) >b1 == a1 : boolean ->b1 : { fn(x: string): string; } ->a1 : { fn(x: T): T; } +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) var r5b2 = b2 == a2; ->r5b2 : boolean +>r5b2 : boolean, Symbol(r5b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 107, 3)) >b2 == a2 : boolean ->b2 : { fn(x: string, y: number): string; } ->a2 : { fn(x: T): T; } +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) var r5b3 = b3 == a3; ->r5b3 : boolean +>r5b3 : boolean, Symbol(r5b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 108, 3)) >b3 == a3 : boolean ->b3 : { fn(x: string, y: number): string; } ->a3 : { fn(x: T, y: U): T; } +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) var r5b4 = b4 == a4; ->r5b4 : boolean +>r5b4 : boolean, Symbol(r5b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 109, 3)) >b4 == a4 : boolean ->b4 : { fn(x?: string): string; } ->a4 : { fn(x?: T): T; } +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) var r5b5 = b5 == a5; ->r5b5 : boolean +>r5b5 : boolean, Symbol(r5b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 110, 3)) >b5 == a5 : boolean ->b5 : { fn(...x: string[]): string; } ->a5 : { fn(...x: T[]): T; } +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) var r5b6 = b6 == a6; ->r5b6 : boolean +>r5b6 : boolean, Symbol(r5b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 111, 3)) >b6 == a6 : boolean ->b6 : { fn(x: string, y: number): {}; } ->a6 : { fn(x: T, y: T): T; } +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) //var r5b7 = b7 == a7; // operator != var r6a1 = a1 != b1; ->r6a1 : boolean +>r6a1 : boolean, Symbol(r6a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 115, 3)) >a1 != b1 : boolean ->a1 : { fn(x: T): T; } ->b1 : { fn(x: string): string; } +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) var r6a2 = a2 != b2; ->r6a2 : boolean +>r6a2 : boolean, Symbol(r6a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 116, 3)) >a2 != b2 : boolean ->a2 : { fn(x: T): T; } ->b2 : { fn(x: string, y: number): string; } +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) var r6a3 = a3 != b3; ->r6a3 : boolean +>r6a3 : boolean, Symbol(r6a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 117, 3)) >a3 != b3 : boolean ->a3 : { fn(x: T, y: U): T; } ->b3 : { fn(x: string, y: number): string; } +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) var r6a4 = a4 != b4; ->r6a4 : boolean +>r6a4 : boolean, Symbol(r6a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 118, 3)) >a4 != b4 : boolean ->a4 : { fn(x?: T): T; } ->b4 : { fn(x?: string): string; } +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) var r6a5 = a5 != b5; ->r6a5 : boolean +>r6a5 : boolean, Symbol(r6a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 119, 3)) >a5 != b5 : boolean ->a5 : { fn(...x: T[]): T; } ->b5 : { fn(...x: string[]): string; } +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) var r6a6 = a6 != b6; ->r6a6 : boolean +>r6a6 : boolean, Symbol(r6a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 120, 3)) >a6 != b6 : boolean ->a6 : { fn(x: T, y: T): T; } ->b6 : { fn(x: string, y: number): {}; } +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) //var r6a7 = a7 != b7; var r6b1 = b1 != a1; ->r6b1 : boolean +>r6b1 : boolean, Symbol(r6b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 123, 3)) >b1 != a1 : boolean ->b1 : { fn(x: string): string; } ->a1 : { fn(x: T): T; } +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) var r6b2 = b2 != a2; ->r6b2 : boolean +>r6b2 : boolean, Symbol(r6b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 124, 3)) >b2 != a2 : boolean ->b2 : { fn(x: string, y: number): string; } ->a2 : { fn(x: T): T; } +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) var r6b3 = b3 != a3; ->r6b3 : boolean +>r6b3 : boolean, Symbol(r6b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 125, 3)) >b3 != a3 : boolean ->b3 : { fn(x: string, y: number): string; } ->a3 : { fn(x: T, y: U): T; } +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) var r6b4 = b4 != a4; ->r6b4 : boolean +>r6b4 : boolean, Symbol(r6b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 126, 3)) >b4 != a4 : boolean ->b4 : { fn(x?: string): string; } ->a4 : { fn(x?: T): T; } +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) var r6b5 = b5 != a5; ->r6b5 : boolean +>r6b5 : boolean, Symbol(r6b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 127, 3)) >b5 != a5 : boolean ->b5 : { fn(...x: string[]): string; } ->a5 : { fn(...x: T[]): T; } +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) var r6b6 = b6 != a6; ->r6b6 : boolean +>r6b6 : boolean, Symbol(r6b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 128, 3)) >b6 != a6 : boolean ->b6 : { fn(x: string, y: number): {}; } ->a6 : { fn(x: T, y: T): T; } +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) //var r6b7 = b7 != a7; // operator === var r7a1 = a1 === b1; ->r7a1 : boolean +>r7a1 : boolean, Symbol(r7a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 132, 3)) >a1 === b1 : boolean ->a1 : { fn(x: T): T; } ->b1 : { fn(x: string): string; } +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) var r7a2 = a2 === b2; ->r7a2 : boolean +>r7a2 : boolean, Symbol(r7a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 133, 3)) >a2 === b2 : boolean ->a2 : { fn(x: T): T; } ->b2 : { fn(x: string, y: number): string; } +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) var r7a3 = a3 === b3; ->r7a3 : boolean +>r7a3 : boolean, Symbol(r7a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 134, 3)) >a3 === b3 : boolean ->a3 : { fn(x: T, y: U): T; } ->b3 : { fn(x: string, y: number): string; } +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) var r7a4 = a4 === b4; ->r7a4 : boolean +>r7a4 : boolean, Symbol(r7a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 135, 3)) >a4 === b4 : boolean ->a4 : { fn(x?: T): T; } ->b4 : { fn(x?: string): string; } +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) var r7a5 = a5 === b5; ->r7a5 : boolean +>r7a5 : boolean, Symbol(r7a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 136, 3)) >a5 === b5 : boolean ->a5 : { fn(...x: T[]): T; } ->b5 : { fn(...x: string[]): string; } +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) var r7a6 = a6 === b6; ->r7a6 : boolean +>r7a6 : boolean, Symbol(r7a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 137, 3)) >a6 === b6 : boolean ->a6 : { fn(x: T, y: T): T; } ->b6 : { fn(x: string, y: number): {}; } +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) //var r7a7 = a7 === b7; var r7b1 = b1 === a1; ->r7b1 : boolean +>r7b1 : boolean, Symbol(r7b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 140, 3)) >b1 === a1 : boolean ->b1 : { fn(x: string): string; } ->a1 : { fn(x: T): T; } +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) var r7b2 = b2 === a2; ->r7b2 : boolean +>r7b2 : boolean, Symbol(r7b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 141, 3)) >b2 === a2 : boolean ->b2 : { fn(x: string, y: number): string; } ->a2 : { fn(x: T): T; } +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) var r7b3 = b3 === a3; ->r7b3 : boolean +>r7b3 : boolean, Symbol(r7b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 142, 3)) >b3 === a3 : boolean ->b3 : { fn(x: string, y: number): string; } ->a3 : { fn(x: T, y: U): T; } +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) var r7b4 = b4 === a4; ->r7b4 : boolean +>r7b4 : boolean, Symbol(r7b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 143, 3)) >b4 === a4 : boolean ->b4 : { fn(x?: string): string; } ->a4 : { fn(x?: T): T; } +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) var r7b5 = b5 === a5; ->r7b5 : boolean +>r7b5 : boolean, Symbol(r7b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 144, 3)) >b5 === a5 : boolean ->b5 : { fn(...x: string[]): string; } ->a5 : { fn(...x: T[]): T; } +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) var r7b6 = b6 === a6; ->r7b6 : boolean +>r7b6 : boolean, Symbol(r7b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 145, 3)) >b6 === a6 : boolean ->b6 : { fn(x: string, y: number): {}; } ->a6 : { fn(x: T, y: T): T; } +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) //var r7b7 = b7 === a7; // operator !== var r8a1 = a1 !== b1; ->r8a1 : boolean +>r8a1 : boolean, Symbol(r8a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 149, 3)) >a1 !== b1 : boolean ->a1 : { fn(x: T): T; } ->b1 : { fn(x: string): string; } +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) var r8a2 = a2 !== b2; ->r8a2 : boolean +>r8a2 : boolean, Symbol(r8a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 150, 3)) >a2 !== b2 : boolean ->a2 : { fn(x: T): T; } ->b2 : { fn(x: string, y: number): string; } +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) var r8a3 = a3 !== b3; ->r8a3 : boolean +>r8a3 : boolean, Symbol(r8a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 151, 3)) >a3 !== b3 : boolean ->a3 : { fn(x: T, y: U): T; } ->b3 : { fn(x: string, y: number): string; } +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) var r8a4 = a4 !== b4; ->r8a4 : boolean +>r8a4 : boolean, Symbol(r8a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 152, 3)) >a4 !== b4 : boolean ->a4 : { fn(x?: T): T; } ->b4 : { fn(x?: string): string; } +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) var r8a5 = a5 !== b5; ->r8a5 : boolean +>r8a5 : boolean, Symbol(r8a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 153, 3)) >a5 !== b5 : boolean ->a5 : { fn(...x: T[]): T; } ->b5 : { fn(...x: string[]): string; } +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) var r8a6 = a6 !== b6; ->r8a6 : boolean +>r8a6 : boolean, Symbol(r8a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 154, 3)) >a6 !== b6 : boolean ->a6 : { fn(x: T, y: T): T; } ->b6 : { fn(x: string, y: number): {}; } +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) //var r8a7 = a7 !== b7; var r8b1 = b1 !== a1; ->r8b1 : boolean +>r8b1 : boolean, Symbol(r8b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 157, 3)) >b1 !== a1 : boolean ->b1 : { fn(x: string): string; } ->a1 : { fn(x: T): T; } +>b1 : { fn(x: string): string; }, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 9, 3)) +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 8, 3)) var r8b2 = b2 !== a2; ->r8b2 : boolean +>r8b2 : boolean, Symbol(r8b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 158, 3)) >b2 !== a2 : boolean ->b2 : { fn(x: string, y: number): string; } ->a2 : { fn(x: T): T; } +>b2 : { fn(x: string, y: number): string; }, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 12, 3)) +>a2 : { fn(x: T): T; }, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 11, 3)) var r8b3 = b3 !== a3; ->r8b3 : boolean +>r8b3 : boolean, Symbol(r8b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 159, 3)) >b3 !== a3 : boolean ->b3 : { fn(x: string, y: number): string; } ->a3 : { fn(x: T, y: U): T; } +>b3 : { fn(x: string, y: number): string; }, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 15, 3)) +>a3 : { fn(x: T, y: U): T; }, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 14, 3)) var r8b4 = b4 !== a4; ->r8b4 : boolean +>r8b4 : boolean, Symbol(r8b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 160, 3)) >b4 !== a4 : boolean ->b4 : { fn(x?: string): string; } ->a4 : { fn(x?: T): T; } +>b4 : { fn(x?: string): string; }, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 18, 3)) +>a4 : { fn(x?: T): T; }, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 17, 3)) var r8b5 = b5 !== a5; ->r8b5 : boolean +>r8b5 : boolean, Symbol(r8b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 161, 3)) >b5 !== a5 : boolean ->b5 : { fn(...x: string[]): string; } ->a5 : { fn(...x: T[]): T; } +>b5 : { fn(...x: string[]): string; }, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 21, 3)) +>a5 : { fn(...x: T[]): T; }, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 20, 3)) var r8b6 = b6 !== a6; ->r8b6 : boolean +>r8b6 : boolean, Symbol(r8b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 162, 3)) >b6 !== a6 : boolean ->b6 : { fn(x: string, y: number): {}; } ->a6 : { fn(x: T, y: T): T; } +>b6 : { fn(x: string, y: number): {}; }, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 24, 3)) +>a6 : { fn(x: T, y: T): T; }, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.ts, 23, 3)) //var r8b7 = b7 !== a7; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.types b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.types index 29d92c25726..0986e5f48b8 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.types +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.types @@ -1,714 +1,714 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 0, 0)) public a: string; ->a : string +>a : string, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 0, 12)) } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 0, 0)) public b: string; ->b : string +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 4, 28)) } var a1: { new (x: T): T }; ->a1 : new (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 15)) +>x : T, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 18)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 15)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 15)) var b1: { new (x: string): string }; ->b1 : new (x: string) => string ->x : string +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) +>x : string, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 15)) var a2: { new (x: T): T }; ->a2 : new (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 15)) +>x : T, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 18)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 15)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 15)) var b2: { new (x: string, y: number): string }; ->b2 : new (x: string, y: number) => string ->x : string ->y : number +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) +>x : string, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 15)) +>y : number, Symbol(y, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 25)) var a3: { new (x: T, y: U): T }; ->a3 : new (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 15)) +>U : U, Symbol(U, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 17)) +>x : T, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 21)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 15)) +>y : U, Symbol(y, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 26)) +>U : U, Symbol(U, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 17)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 15)) var b3: { new (x: string, y: number): string }; ->b3 : new (x: string, y: number) => string ->x : string ->y : number +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) +>x : string, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 15)) +>y : number, Symbol(y, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 25)) var a4: { new (x?: T): T }; ->a4 : new (x?: T) => T ->T : T ->x : T ->T : T ->T : T +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 15)) +>x : T, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 18)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 15)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 15)) var b4: { new (x?: string): string }; ->b4 : new (x?: string) => string ->x : string +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) +>x : string, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 15)) var a5: { new (...x: T[]): T }; ->a5 : new (...x: T[]) => T ->T : T ->x : T[] ->T : T ->T : T +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 15)) +>x : T[], Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 18)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 15)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 15)) var b5: { new (...x: string[]): string }; ->b5 : new (...x: string[]) => string ->x : string[] +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) +>x : string[], Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 15)) var a6: { new (x: T, y: T): T }; ->a6 : new (x: T, y: T) => T ->T : T ->x : T ->T : T ->y : T ->T : T ->T : T +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 15)) +>x : T, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 18)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 15)) +>y : T, Symbol(y, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 23)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 15)) +>T : T, Symbol(T, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 15)) var b6: { new (x: string, y: number): {} }; ->b6 : new (x: string, y: number) => {} ->x : string ->y : number +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) +>x : string, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 15)) +>y : number, Symbol(y, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 25)) //var a7: { new (x: T, y: U): T }; var b7: { new (x: Base, y: Derived): Base }; ->b7 : new (x: Base, y: Derived) => Base ->x : Base ->Base : Base ->y : Derived ->Derived : Derived ->Base : Base +>b7 : new (x: Base, y: Derived) => Base, Symbol(b7, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 27, 3)) +>x : Base, Symbol(x, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 27, 15)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 0, 0)) +>y : Derived, Symbol(y, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 27, 23)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 0, 0)) // operator < var r1a1 = a1 < b1; ->r1a1 : boolean +>r1a1 : boolean, Symbol(r1a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 30, 3)) >a1 < b1 : boolean ->a1 : new (x: T) => T ->b1 : new (x: string) => string +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) var r1a2 = a2 < b2; ->r1a2 : boolean +>r1a2 : boolean, Symbol(r1a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 31, 3)) >a2 < b2 : boolean ->a2 : new (x: T) => T ->b2 : new (x: string, y: number) => string +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) var r1a3 = a3 < b3; ->r1a3 : boolean +>r1a3 : boolean, Symbol(r1a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 32, 3)) >a3 < b3 : boolean ->a3 : new (x: T, y: U) => T ->b3 : new (x: string, y: number) => string +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) var r1a4 = a4 < b4; ->r1a4 : boolean +>r1a4 : boolean, Symbol(r1a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 33, 3)) >a4 < b4 : boolean ->a4 : new (x?: T) => T ->b4 : new (x?: string) => string +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) var r1a5 = a5 < b5; ->r1a5 : boolean +>r1a5 : boolean, Symbol(r1a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 34, 3)) >a5 < b5 : boolean ->a5 : new (...x: T[]) => T ->b5 : new (...x: string[]) => string +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) var r1a6 = a6 < b6; ->r1a6 : boolean +>r1a6 : boolean, Symbol(r1a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 35, 3)) >a6 < b6 : boolean ->a6 : new (x: T, y: T) => T ->b6 : new (x: string, y: number) => {} +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) //var r1a7 = a7 < b7; var r1b1 = b1 < a1; ->r1b1 : boolean +>r1b1 : boolean, Symbol(r1b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 38, 3)) >b1 < a1 : boolean ->b1 : new (x: string) => string ->a1 : new (x: T) => T +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) var r1b2 = b2 < a2; ->r1b2 : boolean +>r1b2 : boolean, Symbol(r1b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 39, 3)) >b2 < a2 : boolean ->b2 : new (x: string, y: number) => string ->a2 : new (x: T) => T +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) var r1b3 = b3 < a3; ->r1b3 : boolean +>r1b3 : boolean, Symbol(r1b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 40, 3)) >b3 < a3 : boolean ->b3 : new (x: string, y: number) => string ->a3 : new (x: T, y: U) => T +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) var r1b4 = b4 < a4; ->r1b4 : boolean +>r1b4 : boolean, Symbol(r1b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 41, 3)) >b4 < a4 : boolean ->b4 : new (x?: string) => string ->a4 : new (x?: T) => T +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) var r1b5 = b5 < a5; ->r1b5 : boolean +>r1b5 : boolean, Symbol(r1b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 42, 3)) >b5 < a5 : boolean ->b5 : new (...x: string[]) => string ->a5 : new (...x: T[]) => T +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) var r1b6 = b6 < a6; ->r1b6 : boolean +>r1b6 : boolean, Symbol(r1b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 43, 3)) >b6 < a6 : boolean ->b6 : new (x: string, y: number) => {} ->a6 : new (x: T, y: T) => T +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) //var r1b7 = b7 < a7; // operator > var r2a1 = a1 > b1; ->r2a1 : boolean +>r2a1 : boolean, Symbol(r2a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 47, 3)) >a1 > b1 : boolean ->a1 : new (x: T) => T ->b1 : new (x: string) => string +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) var r2a2 = a2 > b2; ->r2a2 : boolean +>r2a2 : boolean, Symbol(r2a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 48, 3)) >a2 > b2 : boolean ->a2 : new (x: T) => T ->b2 : new (x: string, y: number) => string +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) var r2a3 = a3 > b3; ->r2a3 : boolean +>r2a3 : boolean, Symbol(r2a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 49, 3)) >a3 > b3 : boolean ->a3 : new (x: T, y: U) => T ->b3 : new (x: string, y: number) => string +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) var r2a4 = a4 > b4; ->r2a4 : boolean +>r2a4 : boolean, Symbol(r2a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 50, 3)) >a4 > b4 : boolean ->a4 : new (x?: T) => T ->b4 : new (x?: string) => string +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) var r2a5 = a5 > b5; ->r2a5 : boolean +>r2a5 : boolean, Symbol(r2a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 51, 3)) >a5 > b5 : boolean ->a5 : new (...x: T[]) => T ->b5 : new (...x: string[]) => string +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) var r2a6 = a6 > b6; ->r2a6 : boolean +>r2a6 : boolean, Symbol(r2a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 52, 3)) >a6 > b6 : boolean ->a6 : new (x: T, y: T) => T ->b6 : new (x: string, y: number) => {} +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) //var r2a7 = a7 > b7; var r2b1 = b1 > a1; ->r2b1 : boolean +>r2b1 : boolean, Symbol(r2b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 55, 3)) >b1 > a1 : boolean ->b1 : new (x: string) => string ->a1 : new (x: T) => T +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) var r2b2 = b2 > a2; ->r2b2 : boolean +>r2b2 : boolean, Symbol(r2b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 56, 3)) >b2 > a2 : boolean ->b2 : new (x: string, y: number) => string ->a2 : new (x: T) => T +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) var r2b3 = b3 > a3; ->r2b3 : boolean +>r2b3 : boolean, Symbol(r2b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 57, 3)) >b3 > a3 : boolean ->b3 : new (x: string, y: number) => string ->a3 : new (x: T, y: U) => T +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) var r2b4 = b4 > a4; ->r2b4 : boolean +>r2b4 : boolean, Symbol(r2b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 58, 3)) >b4 > a4 : boolean ->b4 : new (x?: string) => string ->a4 : new (x?: T) => T +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) var r2b5 = b5 > a5; ->r2b5 : boolean +>r2b5 : boolean, Symbol(r2b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 59, 3)) >b5 > a5 : boolean ->b5 : new (...x: string[]) => string ->a5 : new (...x: T[]) => T +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) var r2b6 = b6 > a6; ->r2b6 : boolean +>r2b6 : boolean, Symbol(r2b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 60, 3)) >b6 > a6 : boolean ->b6 : new (x: string, y: number) => {} ->a6 : new (x: T, y: T) => T +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) //var r2b7 = b7 > a7; // operator <= var r3a1 = a1 <= b1; ->r3a1 : boolean +>r3a1 : boolean, Symbol(r3a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 64, 3)) >a1 <= b1 : boolean ->a1 : new (x: T) => T ->b1 : new (x: string) => string +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) var r3a2 = a2 <= b2; ->r3a2 : boolean +>r3a2 : boolean, Symbol(r3a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 65, 3)) >a2 <= b2 : boolean ->a2 : new (x: T) => T ->b2 : new (x: string, y: number) => string +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) var r3a3 = a3 <= b3; ->r3a3 : boolean +>r3a3 : boolean, Symbol(r3a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 66, 3)) >a3 <= b3 : boolean ->a3 : new (x: T, y: U) => T ->b3 : new (x: string, y: number) => string +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) var r3a4 = a4 <= b4; ->r3a4 : boolean +>r3a4 : boolean, Symbol(r3a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 67, 3)) >a4 <= b4 : boolean ->a4 : new (x?: T) => T ->b4 : new (x?: string) => string +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) var r3a5 = a5 <= b5; ->r3a5 : boolean +>r3a5 : boolean, Symbol(r3a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 68, 3)) >a5 <= b5 : boolean ->a5 : new (...x: T[]) => T ->b5 : new (...x: string[]) => string +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) var r3a6 = a6 <= b6; ->r3a6 : boolean +>r3a6 : boolean, Symbol(r3a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 69, 3)) >a6 <= b6 : boolean ->a6 : new (x: T, y: T) => T ->b6 : new (x: string, y: number) => {} +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) //var r3a7 = a7 <= b7; var r3b1 = b1 <= a1; ->r3b1 : boolean +>r3b1 : boolean, Symbol(r3b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 72, 3)) >b1 <= a1 : boolean ->b1 : new (x: string) => string ->a1 : new (x: T) => T +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) var r3b2 = b2 <= a2; ->r3b2 : boolean +>r3b2 : boolean, Symbol(r3b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 73, 3)) >b2 <= a2 : boolean ->b2 : new (x: string, y: number) => string ->a2 : new (x: T) => T +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) var r3b3 = b3 <= a3; ->r3b3 : boolean +>r3b3 : boolean, Symbol(r3b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 74, 3)) >b3 <= a3 : boolean ->b3 : new (x: string, y: number) => string ->a3 : new (x: T, y: U) => T +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) var r3b4 = b4 <= a4; ->r3b4 : boolean +>r3b4 : boolean, Symbol(r3b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 75, 3)) >b4 <= a4 : boolean ->b4 : new (x?: string) => string ->a4 : new (x?: T) => T +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) var r3b5 = b5 <= a5; ->r3b5 : boolean +>r3b5 : boolean, Symbol(r3b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 76, 3)) >b5 <= a5 : boolean ->b5 : new (...x: string[]) => string ->a5 : new (...x: T[]) => T +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) var r3b6 = b6 <= a6; ->r3b6 : boolean +>r3b6 : boolean, Symbol(r3b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 77, 3)) >b6 <= a6 : boolean ->b6 : new (x: string, y: number) => {} ->a6 : new (x: T, y: T) => T +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) //var r3b7 = b7 <= a7; // operator >= var r4a1 = a1 >= b1; ->r4a1 : boolean +>r4a1 : boolean, Symbol(r4a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 81, 3)) >a1 >= b1 : boolean ->a1 : new (x: T) => T ->b1 : new (x: string) => string +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) var r4a2 = a2 >= b2; ->r4a2 : boolean +>r4a2 : boolean, Symbol(r4a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 82, 3)) >a2 >= b2 : boolean ->a2 : new (x: T) => T ->b2 : new (x: string, y: number) => string +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) var r4a3 = a3 >= b3; ->r4a3 : boolean +>r4a3 : boolean, Symbol(r4a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 83, 3)) >a3 >= b3 : boolean ->a3 : new (x: T, y: U) => T ->b3 : new (x: string, y: number) => string +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) var r4a4 = a4 >= b4; ->r4a4 : boolean +>r4a4 : boolean, Symbol(r4a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 84, 3)) >a4 >= b4 : boolean ->a4 : new (x?: T) => T ->b4 : new (x?: string) => string +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) var r4a5 = a5 >= b5; ->r4a5 : boolean +>r4a5 : boolean, Symbol(r4a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 85, 3)) >a5 >= b5 : boolean ->a5 : new (...x: T[]) => T ->b5 : new (...x: string[]) => string +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) var r4a6 = a6 >= b6; ->r4a6 : boolean +>r4a6 : boolean, Symbol(r4a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 86, 3)) >a6 >= b6 : boolean ->a6 : new (x: T, y: T) => T ->b6 : new (x: string, y: number) => {} +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) //var r4a7 = a7 >= b7; var r4b1 = b1 >= a1; ->r4b1 : boolean +>r4b1 : boolean, Symbol(r4b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 89, 3)) >b1 >= a1 : boolean ->b1 : new (x: string) => string ->a1 : new (x: T) => T +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) var r4b2 = b2 >= a2; ->r4b2 : boolean +>r4b2 : boolean, Symbol(r4b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 90, 3)) >b2 >= a2 : boolean ->b2 : new (x: string, y: number) => string ->a2 : new (x: T) => T +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) var r4b3 = b3 >= a3; ->r4b3 : boolean +>r4b3 : boolean, Symbol(r4b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 91, 3)) >b3 >= a3 : boolean ->b3 : new (x: string, y: number) => string ->a3 : new (x: T, y: U) => T +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) var r4b4 = b4 >= a4; ->r4b4 : boolean +>r4b4 : boolean, Symbol(r4b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 92, 3)) >b4 >= a4 : boolean ->b4 : new (x?: string) => string ->a4 : new (x?: T) => T +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) var r4b5 = b5 >= a5; ->r4b5 : boolean +>r4b5 : boolean, Symbol(r4b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 93, 3)) >b5 >= a5 : boolean ->b5 : new (...x: string[]) => string ->a5 : new (...x: T[]) => T +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) var r4b6 = b6 >= a6; ->r4b6 : boolean +>r4b6 : boolean, Symbol(r4b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 94, 3)) >b6 >= a6 : boolean ->b6 : new (x: string, y: number) => {} ->a6 : new (x: T, y: T) => T +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) //var r4b7 = b7 >= a7; // operator == var r5a1 = a1 == b1; ->r5a1 : boolean +>r5a1 : boolean, Symbol(r5a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 98, 3)) >a1 == b1 : boolean ->a1 : new (x: T) => T ->b1 : new (x: string) => string +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) var r5a2 = a2 == b2; ->r5a2 : boolean +>r5a2 : boolean, Symbol(r5a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 99, 3)) >a2 == b2 : boolean ->a2 : new (x: T) => T ->b2 : new (x: string, y: number) => string +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) var r5a3 = a3 == b3; ->r5a3 : boolean +>r5a3 : boolean, Symbol(r5a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 100, 3)) >a3 == b3 : boolean ->a3 : new (x: T, y: U) => T ->b3 : new (x: string, y: number) => string +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) var r5a4 = a4 == b4; ->r5a4 : boolean +>r5a4 : boolean, Symbol(r5a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 101, 3)) >a4 == b4 : boolean ->a4 : new (x?: T) => T ->b4 : new (x?: string) => string +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) var r5a5 = a5 == b5; ->r5a5 : boolean +>r5a5 : boolean, Symbol(r5a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 102, 3)) >a5 == b5 : boolean ->a5 : new (...x: T[]) => T ->b5 : new (...x: string[]) => string +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) var r5a6 = a6 == b6; ->r5a6 : boolean +>r5a6 : boolean, Symbol(r5a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 103, 3)) >a6 == b6 : boolean ->a6 : new (x: T, y: T) => T ->b6 : new (x: string, y: number) => {} +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) //var r5a7 = a7 == b7; var r5b1 = b1 == a1; ->r5b1 : boolean +>r5b1 : boolean, Symbol(r5b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 106, 3)) >b1 == a1 : boolean ->b1 : new (x: string) => string ->a1 : new (x: T) => T +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) var r5b2 = b2 == a2; ->r5b2 : boolean +>r5b2 : boolean, Symbol(r5b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 107, 3)) >b2 == a2 : boolean ->b2 : new (x: string, y: number) => string ->a2 : new (x: T) => T +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) var r5b3 = b3 == a3; ->r5b3 : boolean +>r5b3 : boolean, Symbol(r5b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 108, 3)) >b3 == a3 : boolean ->b3 : new (x: string, y: number) => string ->a3 : new (x: T, y: U) => T +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) var r5b4 = b4 == a4; ->r5b4 : boolean +>r5b4 : boolean, Symbol(r5b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 109, 3)) >b4 == a4 : boolean ->b4 : new (x?: string) => string ->a4 : new (x?: T) => T +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) var r5b5 = b5 == a5; ->r5b5 : boolean +>r5b5 : boolean, Symbol(r5b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 110, 3)) >b5 == a5 : boolean ->b5 : new (...x: string[]) => string ->a5 : new (...x: T[]) => T +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) var r5b6 = b6 == a6; ->r5b6 : boolean +>r5b6 : boolean, Symbol(r5b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 111, 3)) >b6 == a6 : boolean ->b6 : new (x: string, y: number) => {} ->a6 : new (x: T, y: T) => T +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) //var r5b7 = b7 == a7; // operator != var r6a1 = a1 != b1; ->r6a1 : boolean +>r6a1 : boolean, Symbol(r6a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 115, 3)) >a1 != b1 : boolean ->a1 : new (x: T) => T ->b1 : new (x: string) => string +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) var r6a2 = a2 != b2; ->r6a2 : boolean +>r6a2 : boolean, Symbol(r6a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 116, 3)) >a2 != b2 : boolean ->a2 : new (x: T) => T ->b2 : new (x: string, y: number) => string +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) var r6a3 = a3 != b3; ->r6a3 : boolean +>r6a3 : boolean, Symbol(r6a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 117, 3)) >a3 != b3 : boolean ->a3 : new (x: T, y: U) => T ->b3 : new (x: string, y: number) => string +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) var r6a4 = a4 != b4; ->r6a4 : boolean +>r6a4 : boolean, Symbol(r6a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 118, 3)) >a4 != b4 : boolean ->a4 : new (x?: T) => T ->b4 : new (x?: string) => string +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) var r6a5 = a5 != b5; ->r6a5 : boolean +>r6a5 : boolean, Symbol(r6a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 119, 3)) >a5 != b5 : boolean ->a5 : new (...x: T[]) => T ->b5 : new (...x: string[]) => string +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) var r6a6 = a6 != b6; ->r6a6 : boolean +>r6a6 : boolean, Symbol(r6a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 120, 3)) >a6 != b6 : boolean ->a6 : new (x: T, y: T) => T ->b6 : new (x: string, y: number) => {} +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) //var r6a7 = a7 != b7; var r6b1 = b1 != a1; ->r6b1 : boolean +>r6b1 : boolean, Symbol(r6b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 123, 3)) >b1 != a1 : boolean ->b1 : new (x: string) => string ->a1 : new (x: T) => T +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) var r6b2 = b2 != a2; ->r6b2 : boolean +>r6b2 : boolean, Symbol(r6b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 124, 3)) >b2 != a2 : boolean ->b2 : new (x: string, y: number) => string ->a2 : new (x: T) => T +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) var r6b3 = b3 != a3; ->r6b3 : boolean +>r6b3 : boolean, Symbol(r6b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 125, 3)) >b3 != a3 : boolean ->b3 : new (x: string, y: number) => string ->a3 : new (x: T, y: U) => T +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) var r6b4 = b4 != a4; ->r6b4 : boolean +>r6b4 : boolean, Symbol(r6b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 126, 3)) >b4 != a4 : boolean ->b4 : new (x?: string) => string ->a4 : new (x?: T) => T +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) var r6b5 = b5 != a5; ->r6b5 : boolean +>r6b5 : boolean, Symbol(r6b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 127, 3)) >b5 != a5 : boolean ->b5 : new (...x: string[]) => string ->a5 : new (...x: T[]) => T +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) var r6b6 = b6 != a6; ->r6b6 : boolean +>r6b6 : boolean, Symbol(r6b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 128, 3)) >b6 != a6 : boolean ->b6 : new (x: string, y: number) => {} ->a6 : new (x: T, y: T) => T +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) //var r6b7 = b7 != a7; // operator === var r7a1 = a1 === b1; ->r7a1 : boolean +>r7a1 : boolean, Symbol(r7a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 132, 3)) >a1 === b1 : boolean ->a1 : new (x: T) => T ->b1 : new (x: string) => string +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) var r7a2 = a2 === b2; ->r7a2 : boolean +>r7a2 : boolean, Symbol(r7a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 133, 3)) >a2 === b2 : boolean ->a2 : new (x: T) => T ->b2 : new (x: string, y: number) => string +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) var r7a3 = a3 === b3; ->r7a3 : boolean +>r7a3 : boolean, Symbol(r7a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 134, 3)) >a3 === b3 : boolean ->a3 : new (x: T, y: U) => T ->b3 : new (x: string, y: number) => string +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) var r7a4 = a4 === b4; ->r7a4 : boolean +>r7a4 : boolean, Symbol(r7a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 135, 3)) >a4 === b4 : boolean ->a4 : new (x?: T) => T ->b4 : new (x?: string) => string +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) var r7a5 = a5 === b5; ->r7a5 : boolean +>r7a5 : boolean, Symbol(r7a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 136, 3)) >a5 === b5 : boolean ->a5 : new (...x: T[]) => T ->b5 : new (...x: string[]) => string +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) var r7a6 = a6 === b6; ->r7a6 : boolean +>r7a6 : boolean, Symbol(r7a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 137, 3)) >a6 === b6 : boolean ->a6 : new (x: T, y: T) => T ->b6 : new (x: string, y: number) => {} +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) //var r7a7 = a7 === b7; var r7b1 = b1 === a1; ->r7b1 : boolean +>r7b1 : boolean, Symbol(r7b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 140, 3)) >b1 === a1 : boolean ->b1 : new (x: string) => string ->a1 : new (x: T) => T +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) var r7b2 = b2 === a2; ->r7b2 : boolean +>r7b2 : boolean, Symbol(r7b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 141, 3)) >b2 === a2 : boolean ->b2 : new (x: string, y: number) => string ->a2 : new (x: T) => T +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) var r7b3 = b3 === a3; ->r7b3 : boolean +>r7b3 : boolean, Symbol(r7b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 142, 3)) >b3 === a3 : boolean ->b3 : new (x: string, y: number) => string ->a3 : new (x: T, y: U) => T +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) var r7b4 = b4 === a4; ->r7b4 : boolean +>r7b4 : boolean, Symbol(r7b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 143, 3)) >b4 === a4 : boolean ->b4 : new (x?: string) => string ->a4 : new (x?: T) => T +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) var r7b5 = b5 === a5; ->r7b5 : boolean +>r7b5 : boolean, Symbol(r7b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 144, 3)) >b5 === a5 : boolean ->b5 : new (...x: string[]) => string ->a5 : new (...x: T[]) => T +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) var r7b6 = b6 === a6; ->r7b6 : boolean +>r7b6 : boolean, Symbol(r7b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 145, 3)) >b6 === a6 : boolean ->b6 : new (x: string, y: number) => {} ->a6 : new (x: T, y: T) => T +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) //var r7b7 = b7 === a7; // operator !== var r8a1 = a1 !== b1; ->r8a1 : boolean +>r8a1 : boolean, Symbol(r8a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 149, 3)) >a1 !== b1 : boolean ->a1 : new (x: T) => T ->b1 : new (x: string) => string +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) var r8a2 = a2 !== b2; ->r8a2 : boolean +>r8a2 : boolean, Symbol(r8a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 150, 3)) >a2 !== b2 : boolean ->a2 : new (x: T) => T ->b2 : new (x: string, y: number) => string +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) var r8a3 = a3 !== b3; ->r8a3 : boolean +>r8a3 : boolean, Symbol(r8a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 151, 3)) >a3 !== b3 : boolean ->a3 : new (x: T, y: U) => T ->b3 : new (x: string, y: number) => string +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) var r8a4 = a4 !== b4; ->r8a4 : boolean +>r8a4 : boolean, Symbol(r8a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 152, 3)) >a4 !== b4 : boolean ->a4 : new (x?: T) => T ->b4 : new (x?: string) => string +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) var r8a5 = a5 !== b5; ->r8a5 : boolean +>r8a5 : boolean, Symbol(r8a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 153, 3)) >a5 !== b5 : boolean ->a5 : new (...x: T[]) => T ->b5 : new (...x: string[]) => string +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) var r8a6 = a6 !== b6; ->r8a6 : boolean +>r8a6 : boolean, Symbol(r8a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 154, 3)) >a6 !== b6 : boolean ->a6 : new (x: T, y: T) => T ->b6 : new (x: string, y: number) => {} +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) //var r8a7 = a7 !== b7; var r8b1 = b1 !== a1; ->r8b1 : boolean +>r8b1 : boolean, Symbol(r8b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 157, 3)) >b1 !== a1 : boolean ->b1 : new (x: string) => string ->a1 : new (x: T) => T +>b1 : new (x: string) => string, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 9, 3)) +>a1 : new (x: T) => T, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 8, 3)) var r8b2 = b2 !== a2; ->r8b2 : boolean +>r8b2 : boolean, Symbol(r8b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 158, 3)) >b2 !== a2 : boolean ->b2 : new (x: string, y: number) => string ->a2 : new (x: T) => T +>b2 : new (x: string, y: number) => string, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 12, 3)) +>a2 : new (x: T) => T, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 11, 3)) var r8b3 = b3 !== a3; ->r8b3 : boolean +>r8b3 : boolean, Symbol(r8b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 159, 3)) >b3 !== a3 : boolean ->b3 : new (x: string, y: number) => string ->a3 : new (x: T, y: U) => T +>b3 : new (x: string, y: number) => string, Symbol(b3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 15, 3)) +>a3 : new (x: T, y: U) => T, Symbol(a3, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 14, 3)) var r8b4 = b4 !== a4; ->r8b4 : boolean +>r8b4 : boolean, Symbol(r8b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 160, 3)) >b4 !== a4 : boolean ->b4 : new (x?: string) => string ->a4 : new (x?: T) => T +>b4 : new (x?: string) => string, Symbol(b4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 18, 3)) +>a4 : new (x?: T) => T, Symbol(a4, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 17, 3)) var r8b5 = b5 !== a5; ->r8b5 : boolean +>r8b5 : boolean, Symbol(r8b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 161, 3)) >b5 !== a5 : boolean ->b5 : new (...x: string[]) => string ->a5 : new (...x: T[]) => T +>b5 : new (...x: string[]) => string, Symbol(b5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 21, 3)) +>a5 : new (...x: T[]) => T, Symbol(a5, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 20, 3)) var r8b6 = b6 !== a6; ->r8b6 : boolean +>r8b6 : boolean, Symbol(r8b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 162, 3)) >b6 !== a6 : boolean ->b6 : new (x: string, y: number) => {} ->a6 : new (x: T, y: T) => T +>b6 : new (x: string, y: number) => {}, Symbol(b6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 24, 3)) +>a6 : new (x: T, y: T) => T, Symbol(a6, Decl(comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.ts, 23, 3)) //var r8b7 = b7 !== a7; diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnOptionalProperty.types b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnOptionalProperty.types index e94ef495a55..e28308e68b0 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnOptionalProperty.types +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnOptionalProperty.types @@ -1,130 +1,130 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 0, 0)) a: string; ->a : string +>a : string, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 0, 13)) b?: number; ->b : number +>b : number, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 1, 14)) } interface J { ->J : J +>J : J, Symbol(J, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 3, 1)) a: string; ->a : string +>a : string, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 5, 13)) } var a: I; ->a : I ->I : I +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) +>I : I, Symbol(I, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 0, 0)) var b: J; ->b : J ->J : J +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) +>J : J, Symbol(J, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 3, 1)) // operator < var ra1 = a < b; ->ra1 : boolean +>ra1 : boolean, Symbol(ra1, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 13, 3)) >a < b : boolean ->a : I ->b : J +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) var ra2 = b < a; ->ra2 : boolean +>ra2 : boolean, Symbol(ra2, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 14, 3)) >b < a : boolean ->b : J ->a : I +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) // operator > var rb1 = a > b; ->rb1 : boolean +>rb1 : boolean, Symbol(rb1, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 17, 3)) >a > b : boolean ->a : I ->b : J +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) var rb2 = b > a; ->rb2 : boolean +>rb2 : boolean, Symbol(rb2, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 18, 3)) >b > a : boolean ->b : J ->a : I +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) // operator <= var rc1 = a <= b; ->rc1 : boolean +>rc1 : boolean, Symbol(rc1, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 21, 3)) >a <= b : boolean ->a : I ->b : J +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) var rc2 = b <= a; ->rc2 : boolean +>rc2 : boolean, Symbol(rc2, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 22, 3)) >b <= a : boolean ->b : J ->a : I +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) // operator >= var rd1 = a >= b; ->rd1 : boolean +>rd1 : boolean, Symbol(rd1, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 25, 3)) >a >= b : boolean ->a : I ->b : J +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) var rd2 = b >= a; ->rd2 : boolean +>rd2 : boolean, Symbol(rd2, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 26, 3)) >b >= a : boolean ->b : J ->a : I +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) // operator == var re1 = a == b; ->re1 : boolean +>re1 : boolean, Symbol(re1, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 29, 3)) >a == b : boolean ->a : I ->b : J +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) var re2 = b == a; ->re2 : boolean +>re2 : boolean, Symbol(re2, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 30, 3)) >b == a : boolean ->b : J ->a : I +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) // operator != var rf1 = a != b; ->rf1 : boolean +>rf1 : boolean, Symbol(rf1, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 33, 3)) >a != b : boolean ->a : I ->b : J +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) var rf2 = b != a; ->rf2 : boolean +>rf2 : boolean, Symbol(rf2, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 34, 3)) >b != a : boolean ->b : J ->a : I +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) // operator === var rg1 = a === b; ->rg1 : boolean +>rg1 : boolean, Symbol(rg1, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 37, 3)) >a === b : boolean ->a : I ->b : J +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) var rg2 = b === a; ->rg2 : boolean +>rg2 : boolean, Symbol(rg2, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 38, 3)) >b === a : boolean ->b : J ->a : I +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) // operator !== var rh1 = a !== b; ->rh1 : boolean +>rh1 : boolean, Symbol(rh1, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 41, 3)) >a !== b : boolean ->a : I ->b : J +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) var rh2 = b !== a; ->rh2 : boolean +>rh2 : boolean, Symbol(rh2, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 42, 3)) >b !== a : boolean ->b : J ->a : I +>b : J, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 10, 3)) +>a : I, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnOptionalProperty.ts, 9, 3)) diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.types b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.types index d604115e161..acf4563c0a8 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.types +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.types @@ -1,271 +1,271 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithSubtypeObjectOnProperty.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 0, 0)) public a: string; ->a : string +>a : string, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 0, 12)) } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 0, 0)) public b: string; ->b : string +>b : string, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 4, 28)) } class A1 { ->A1 : A1 +>A1 : A1, Symbol(A1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 6, 1)) public a: Base; ->a : Base ->Base : Base +>a : Base, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 8, 10)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 0, 0)) public b: Base; ->b : Base ->Base : Base +>b : Base, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 9, 19)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 0, 0)) } class B1 { ->B1 : B1 +>B1 : B1, Symbol(B1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 11, 1)) public a: Base; ->a : Base ->Base : Base +>a : Base, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 13, 10)) +>Base : Base, Symbol(Base, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 0, 0)) public b: Derived; ->b : Derived ->Derived : Derived +>b : Derived, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 14, 19)) +>Derived : Derived, Symbol(Derived, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 2, 1)) } class A2 { ->A2 : A2 +>A2 : A2, Symbol(A2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 16, 1)) private a; ->a : any +>a : any, Symbol(a, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 18, 10)) } class B2 extends A2 { ->B2 : B2 ->A2 : A2 +>B2 : B2, Symbol(B2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 20, 1)) +>A2 : A2, Symbol(A2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 16, 1)) private b; ->b : any +>b : any, Symbol(b, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 22, 21)) } var a1: A1; ->a1 : A1 ->A1 : A1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) +>A1 : A1, Symbol(A1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 6, 1)) var a2: A2; ->a2 : A2 ->A2 : A2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) +>A2 : A2, Symbol(A2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 16, 1)) var b1: B1; ->b1 : B1 ->B1 : B1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) +>B1 : B1, Symbol(B1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 11, 1)) var b2: B2; ->b2 : B2 ->B2 : B2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) +>B2 : B2, Symbol(B2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 20, 1)) // operator < var ra1 = a1 < b1; ->ra1 : boolean +>ra1 : boolean, Symbol(ra1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 32, 3)) >a1 < b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) var ra2 = a2 < b2; ->ra2 : boolean +>ra2 : boolean, Symbol(ra2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 33, 3)) >a2 < b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) var ra3 = b1 < a1; ->ra3 : boolean +>ra3 : boolean, Symbol(ra3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 34, 3)) >b1 < a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) var ra4 = b2 < a2; ->ra4 : boolean +>ra4 : boolean, Symbol(ra4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 35, 3)) >b2 < a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) // operator > var rb1 = a1 > b1; ->rb1 : boolean +>rb1 : boolean, Symbol(rb1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 38, 3)) >a1 > b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) var rb2 = a2 > b2; ->rb2 : boolean +>rb2 : boolean, Symbol(rb2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 39, 3)) >a2 > b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) var rb3 = b1 > a1; ->rb3 : boolean +>rb3 : boolean, Symbol(rb3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 40, 3)) >b1 > a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) var rb4 = b2 > a2; ->rb4 : boolean +>rb4 : boolean, Symbol(rb4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 41, 3)) >b2 > a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) // operator <= var rc1 = a1 <= b1; ->rc1 : boolean +>rc1 : boolean, Symbol(rc1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 44, 3)) >a1 <= b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) var rc2 = a2 <= b2; ->rc2 : boolean +>rc2 : boolean, Symbol(rc2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 45, 3)) >a2 <= b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) var rc3 = b1 <= a1; ->rc3 : boolean +>rc3 : boolean, Symbol(rc3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 46, 3)) >b1 <= a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) var rc4 = b2 <= a2; ->rc4 : boolean +>rc4 : boolean, Symbol(rc4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 47, 3)) >b2 <= a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) // operator >= var rd1 = a1 >= b1; ->rd1 : boolean +>rd1 : boolean, Symbol(rd1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 50, 3)) >a1 >= b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) var rd2 = a2 >= b2; ->rd2 : boolean +>rd2 : boolean, Symbol(rd2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 51, 3)) >a2 >= b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) var rd3 = b1 >= a1; ->rd3 : boolean +>rd3 : boolean, Symbol(rd3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 52, 3)) >b1 >= a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) var rd4 = b2 >= a2; ->rd4 : boolean +>rd4 : boolean, Symbol(rd4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 53, 3)) >b2 >= a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) // operator == var re1 = a1 == b1; ->re1 : boolean +>re1 : boolean, Symbol(re1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 56, 3)) >a1 == b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) var re2 = a2 == b2; ->re2 : boolean +>re2 : boolean, Symbol(re2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 57, 3)) >a2 == b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) var re3 = b1 == a1; ->re3 : boolean +>re3 : boolean, Symbol(re3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 58, 3)) >b1 == a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) var re4 = b2 == a2; ->re4 : boolean +>re4 : boolean, Symbol(re4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 59, 3)) >b2 == a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) // operator != var rf1 = a1 != b1; ->rf1 : boolean +>rf1 : boolean, Symbol(rf1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 62, 3)) >a1 != b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) var rf2 = a2 != b2; ->rf2 : boolean +>rf2 : boolean, Symbol(rf2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 63, 3)) >a2 != b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) var rf3 = b1 != a1; ->rf3 : boolean +>rf3 : boolean, Symbol(rf3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 64, 3)) >b1 != a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) var rf4 = b2 != a2; ->rf4 : boolean +>rf4 : boolean, Symbol(rf4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 65, 3)) >b2 != a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) // operator === var rg1 = a1 === b1; ->rg1 : boolean +>rg1 : boolean, Symbol(rg1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 68, 3)) >a1 === b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) var rg2 = a2 === b2; ->rg2 : boolean +>rg2 : boolean, Symbol(rg2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 69, 3)) >a2 === b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) var rg3 = b1 === a1; ->rg3 : boolean +>rg3 : boolean, Symbol(rg3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 70, 3)) >b1 === a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) var rg4 = b2 === a2; ->rg4 : boolean +>rg4 : boolean, Symbol(rg4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 71, 3)) >b2 === a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) // operator !== var rh1 = a1 !== b1; ->rh1 : boolean +>rh1 : boolean, Symbol(rh1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 74, 3)) >a1 !== b1 : boolean ->a1 : A1 ->b1 : B1 +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) var rh2 = a2 !== b2; ->rh2 : boolean +>rh2 : boolean, Symbol(rh2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 75, 3)) >a2 !== b2 : boolean ->a2 : A2 ->b2 : B2 +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) var rh3 = b1 !== a1; ->rh3 : boolean +>rh3 : boolean, Symbol(rh3, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 76, 3)) >b1 !== a1 : boolean ->b1 : B1 ->a1 : A1 +>b1 : B1, Symbol(b1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 28, 3)) +>a1 : A1, Symbol(a1, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 26, 3)) var rh4 = b2 !== a2; ->rh4 : boolean +>rh4 : boolean, Symbol(rh4, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 77, 3)) >b2 !== a2 : boolean ->b2 : B2 ->a2 : A2 +>b2 : B2, Symbol(b2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 29, 3)) +>a2 : A2, Symbol(a2, Decl(comparisonOperatorWithSubtypeObjectOnProperty.ts, 27, 3)) diff --git a/tests/baselines/reference/comparisonOperatorWithTwoOperandsAreAny.types b/tests/baselines/reference/comparisonOperatorWithTwoOperandsAreAny.types index 7ddcb5da177..09ff5b0e0a8 100644 --- a/tests/baselines/reference/comparisonOperatorWithTwoOperandsAreAny.types +++ b/tests/baselines/reference/comparisonOperatorWithTwoOperandsAreAny.types @@ -1,52 +1,52 @@ === tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithTwoOperandsAreAny.ts === var a: any; ->a : any +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) var r1 = a < a; ->r1 : boolean +>r1 : boolean, Symbol(r1, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 2, 3)) >a < a : boolean ->a : any ->a : any +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) var r2 = a > a; ->r2 : boolean +>r2 : boolean, Symbol(r2, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 3, 3)) >a > a : boolean ->a : any ->a : any +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) var r3 = a <= a; ->r3 : boolean +>r3 : boolean, Symbol(r3, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 4, 3)) >a <= a : boolean ->a : any ->a : any +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) var r4 = a >= a; ->r4 : boolean +>r4 : boolean, Symbol(r4, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 5, 3)) >a >= a : boolean ->a : any ->a : any +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) var r5 = a == a; ->r5 : boolean +>r5 : boolean, Symbol(r5, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 6, 3)) >a == a : boolean ->a : any ->a : any +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) var r6 = a != a; ->r6 : boolean +>r6 : boolean, Symbol(r6, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 7, 3)) >a != a : boolean ->a : any ->a : any +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) var r7 = a === a; ->r7 : boolean +>r7 : boolean, Symbol(r7, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 8, 3)) >a === a : boolean ->a : any ->a : any +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) var r8 = a !== a; ->r8 : boolean +>r8 : boolean, Symbol(r8, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 9, 3)) >a !== a : boolean ->a : any ->a : any +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) +>a : any, Symbol(a, Decl(comparisonOperatorWithTwoOperandsAreAny.ts, 0, 3)) diff --git a/tests/baselines/reference/complexClassRelationships.types b/tests/baselines/reference/complexClassRelationships.types index 69bee9caade..b0346bce83e 100644 --- a/tests/baselines/reference/complexClassRelationships.types +++ b/tests/baselines/reference/complexClassRelationships.types @@ -1,122 +1,123 @@ === tests/cases/compiler/complexClassRelationships.ts === // There should be no errors in this file class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(complexClassRelationships.ts, 0, 0)) +>Base : Base, Symbol(Base, Decl(complexClassRelationships.ts, 11, 1)) public static createEmpty(): Derived { ->createEmpty : () => Derived ->Derived : Derived +>createEmpty : () => Derived, Symbol(Derived.createEmpty, Decl(complexClassRelationships.ts, 1, 28)) +>Derived : Derived, Symbol(Derived, Decl(complexClassRelationships.ts, 0, 0)) var item = new Derived(); ->item : Derived +>item : Derived, Symbol(item, Decl(complexClassRelationships.ts, 3, 11)) >new Derived() : Derived ->Derived : typeof Derived +>Derived : typeof Derived, Symbol(Derived, Decl(complexClassRelationships.ts, 0, 0)) return item; ->item : Derived +>item : Derived, Symbol(item, Decl(complexClassRelationships.ts, 3, 11)) } } class BaseCollection { ->BaseCollection : BaseCollection ->T : T ->Base : Base +>BaseCollection : BaseCollection, Symbol(BaseCollection, Decl(complexClassRelationships.ts, 6, 1)) +>T : T, Symbol(T, Decl(complexClassRelationships.ts, 7, 21)) +>Base : Base, Symbol(Base, Decl(complexClassRelationships.ts, 11, 1)) constructor(f: () => T) { ->f : () => T ->T : T +>f : () => T, Symbol(f, Decl(complexClassRelationships.ts, 8, 16)) +>T : T, Symbol(T, Decl(complexClassRelationships.ts, 7, 21)) (item: Thing) => { return [item.Components]; }; >(item: Thing) => { return [item.Components]; } : (item: Thing) => ComponentCollection[] ->item : Thing ->Thing : Thing +>item : Thing, Symbol(item, Decl(complexClassRelationships.ts, 9, 9)) +>Thing : Thing, Symbol(Thing, Decl(complexClassRelationships.ts, 14, 1)) >[item.Components] : ComponentCollection[] ->item.Components : ComponentCollection ->item : Thing ->Components : ComponentCollection +>item.Components : ComponentCollection, Symbol(Thing.Components, Decl(complexClassRelationships.ts, 16, 13)) +>item : Thing, Symbol(item, Decl(complexClassRelationships.ts, 9, 9)) +>Components : ComponentCollection, Symbol(Thing.Components, Decl(complexClassRelationships.ts, 16, 13)) } } class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(complexClassRelationships.ts, 11, 1)) ownerCollection: BaseCollection; ->ownerCollection : BaseCollection ->BaseCollection : BaseCollection ->Base : Base +>ownerCollection : BaseCollection, Symbol(ownerCollection, Decl(complexClassRelationships.ts, 12, 12)) +>BaseCollection : BaseCollection, Symbol(BaseCollection, Decl(complexClassRelationships.ts, 6, 1)) +>Base : Base, Symbol(Base, Decl(complexClassRelationships.ts, 11, 1)) } class Thing { ->Thing : Thing +>Thing : Thing, Symbol(Thing, Decl(complexClassRelationships.ts, 14, 1)) public get Components(): ComponentCollection { return null } ->Components : ComponentCollection ->ComponentCollection : ComponentCollection +>Components : ComponentCollection, Symbol(Components, Decl(complexClassRelationships.ts, 16, 13)) +>ComponentCollection : ComponentCollection, Symbol(ComponentCollection, Decl(complexClassRelationships.ts, 18, 1)) +>null : null } class ComponentCollection { ->ComponentCollection : ComponentCollection ->T : T +>ComponentCollection : ComponentCollection, Symbol(ComponentCollection, Decl(complexClassRelationships.ts, 18, 1)) +>T : T, Symbol(T, Decl(complexClassRelationships.ts, 20, 26)) private static sortComponents(p: Foo) { ->sortComponents : (p: Foo) => GenericType ->p : Foo ->Foo : Foo +>sortComponents : (p: Foo) => GenericType, Symbol(ComponentCollection.sortComponents, Decl(complexClassRelationships.ts, 20, 30)) +>p : Foo, Symbol(p, Decl(complexClassRelationships.ts, 21, 34)) +>Foo : Foo, Symbol(Foo, Decl(complexClassRelationships.ts, 24, 1)) return p.prop1; ->p.prop1 : GenericType ->p : Foo ->prop1 : GenericType +>p.prop1 : GenericType, Symbol(Foo.prop1, Decl(complexClassRelationships.ts, 26, 11)) +>p : Foo, Symbol(p, Decl(complexClassRelationships.ts, 21, 34)) +>prop1 : GenericType, Symbol(Foo.prop1, Decl(complexClassRelationships.ts, 26, 11)) } } class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(complexClassRelationships.ts, 24, 1)) public get prop1() { ->prop1 : GenericType +>prop1 : GenericType, Symbol(prop1, Decl(complexClassRelationships.ts, 26, 11)) return new GenericType(this); >new GenericType(this) : GenericType ->GenericType : typeof GenericType ->this : Foo +>GenericType : typeof GenericType, Symbol(GenericType, Decl(complexClassRelationships.ts, 36, 1)) +>this : Foo, Symbol(Foo, Decl(complexClassRelationships.ts, 24, 1)) } public populate() { ->populate : () => void +>populate : () => void, Symbol(populate, Decl(complexClassRelationships.ts, 29, 5)) this.prop2; ->this.prop2 : BaseCollection ->this : Foo ->prop2 : BaseCollection +>this.prop2 : BaseCollection, Symbol(prop2, Decl(complexClassRelationships.ts, 32, 5)) +>this : Foo, Symbol(Foo, Decl(complexClassRelationships.ts, 24, 1)) +>prop2 : BaseCollection, Symbol(prop2, Decl(complexClassRelationships.ts, 32, 5)) } public get prop2(): BaseCollection { ->prop2 : BaseCollection ->BaseCollection : BaseCollection ->Derived : Derived +>prop2 : BaseCollection, Symbol(prop2, Decl(complexClassRelationships.ts, 32, 5)) +>BaseCollection : BaseCollection, Symbol(BaseCollection, Decl(complexClassRelationships.ts, 6, 1)) +>Derived : Derived, Symbol(Derived, Decl(complexClassRelationships.ts, 0, 0)) return new BaseCollection(Derived.createEmpty); >new BaseCollection(Derived.createEmpty) : BaseCollection ->BaseCollection : typeof BaseCollection ->Derived : Derived ->Derived.createEmpty : () => Derived ->Derived : typeof Derived ->createEmpty : () => Derived +>BaseCollection : typeof BaseCollection, Symbol(BaseCollection, Decl(complexClassRelationships.ts, 6, 1)) +>Derived : Derived, Symbol(Derived, Decl(complexClassRelationships.ts, 0, 0)) +>Derived.createEmpty : () => Derived, Symbol(Derived.createEmpty, Decl(complexClassRelationships.ts, 1, 28)) +>Derived : typeof Derived, Symbol(Derived, Decl(complexClassRelationships.ts, 0, 0)) +>createEmpty : () => Derived, Symbol(Derived.createEmpty, Decl(complexClassRelationships.ts, 1, 28)) } } class GenericType { ->GenericType : GenericType ->T : T +>GenericType : GenericType, Symbol(GenericType, Decl(complexClassRelationships.ts, 36, 1)) +>T : T, Symbol(T, Decl(complexClassRelationships.ts, 38, 18)) constructor(parent: FooBase) { } ->parent : FooBase ->FooBase : FooBase +>parent : FooBase, Symbol(parent, Decl(complexClassRelationships.ts, 39, 16)) +>FooBase : FooBase, Symbol(FooBase, Decl(complexClassRelationships.ts, 40, 1)) } class FooBase { ->FooBase : FooBase +>FooBase : FooBase, Symbol(FooBase, Decl(complexClassRelationships.ts, 40, 1)) public populate() { ->populate : () => void +>populate : () => void, Symbol(populate, Decl(complexClassRelationships.ts, 42, 15)) } } diff --git a/tests/baselines/reference/compositeGenericFunction.types b/tests/baselines/reference/compositeGenericFunction.types index 421b7bbe514..aa7deb0270f 100644 --- a/tests/baselines/reference/compositeGenericFunction.types +++ b/tests/baselines/reference/compositeGenericFunction.types @@ -1,28 +1,29 @@ === tests/cases/compiler/compositeGenericFunction.ts === function f(value: T) { return value; }; ->f : (value: T) => T ->T : T ->value : T ->T : T ->value : T +>f : (value: T) => T, Symbol(f, Decl(compositeGenericFunction.ts, 0, 0)) +>T : T, Symbol(T, Decl(compositeGenericFunction.ts, 0, 11)) +>value : T, Symbol(value, Decl(compositeGenericFunction.ts, 0, 14)) +>T : T, Symbol(T, Decl(compositeGenericFunction.ts, 0, 11)) +>value : T, Symbol(value, Decl(compositeGenericFunction.ts, 0, 14)) function h(func: (x: number) => R): R { return null; } ->h : (func: (x: number) => R) => R ->R : R ->func : (x: number) => R ->x : number ->R : R ->R : R +>h : (func: (x: number) => R) => R, Symbol(h, Decl(compositeGenericFunction.ts, 0, 42)) +>R : R, Symbol(R, Decl(compositeGenericFunction.ts, 2, 11)) +>func : (x: number) => R, Symbol(func, Decl(compositeGenericFunction.ts, 2, 14)) +>x : number, Symbol(x, Decl(compositeGenericFunction.ts, 2, 21)) +>R : R, Symbol(R, Decl(compositeGenericFunction.ts, 2, 11)) +>R : R, Symbol(R, Decl(compositeGenericFunction.ts, 2, 11)) +>null : null var z: number = h(f); ->z : number +>z : number, Symbol(z, Decl(compositeGenericFunction.ts, 4, 3), Decl(compositeGenericFunction.ts, 5, 3)) >h(f) : number ->h : (func: (x: number) => R) => R ->f : (value: T) => T +>h : (func: (x: number) => R) => R, Symbol(h, Decl(compositeGenericFunction.ts, 0, 42)) +>f : (value: T) => T, Symbol(f, Decl(compositeGenericFunction.ts, 0, 0)) var z: number = h(f); ->z : number +>z : number, Symbol(z, Decl(compositeGenericFunction.ts, 4, 3), Decl(compositeGenericFunction.ts, 5, 3)) >h(f) : number ->h : (func: (x: number) => R) => R ->f : (value: T) => T +>h : (func: (x: number) => R) => R, Symbol(h, Decl(compositeGenericFunction.ts, 0, 42)) +>f : (value: T) => T, Symbol(f, Decl(compositeGenericFunction.ts, 0, 0)) diff --git a/tests/baselines/reference/compoundAdditionAssignmentLHSCanBeAssigned.types b/tests/baselines/reference/compoundAdditionAssignmentLHSCanBeAssigned.types index 7b776389335..fb98089e345 100644 --- a/tests/baselines/reference/compoundAdditionAssignmentLHSCanBeAssigned.types +++ b/tests/baselines/reference/compoundAdditionAssignmentLHSCanBeAssigned.types @@ -1,189 +1,202 @@ === tests/cases/conformance/expressions/assignmentOperator/compoundAdditionAssignmentLHSCanBeAssigned.ts === enum E { a, b } ->E : E ->a : E ->b : E +>E : E, Symbol(E, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 8)) +>b : E, Symbol(E.b, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 11)) var a: any; ->a : any +>a : any, Symbol(a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 2, 3)) var b: void; ->b : void +>b : void, Symbol(b, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 3, 3)) var x1: any; ->x1 : any +>x1 : any, Symbol(x1, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 5, 3)) x1 += a; >x1 += a : any ->x1 : any ->a : any +>x1 : any, Symbol(x1, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 5, 3)) +>a : any, Symbol(a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 2, 3)) x1 += b; >x1 += b : any ->x1 : any ->b : void +>x1 : any, Symbol(x1, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 5, 3)) +>b : void, Symbol(b, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 3, 3)) x1 += true; >x1 += true : any ->x1 : any +>x1 : any, Symbol(x1, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 5, 3)) +>true : boolean x1 += 0; >x1 += 0 : any ->x1 : any +>x1 : any, Symbol(x1, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 5, 3)) +>0 : number x1 += ''; >x1 += '' : string ->x1 : any +>x1 : any, Symbol(x1, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 5, 3)) +>'' : string x1 += E.a; >x1 += E.a : any ->x1 : any ->E.a : E ->E : typeof E ->a : E +>x1 : any, Symbol(x1, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 5, 3)) +>E.a : E, Symbol(E.a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 8)) x1 += {}; >x1 += {} : any ->x1 : any +>x1 : any, Symbol(x1, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 5, 3)) >{} : {} x1 += null; >x1 += null : any ->x1 : any +>x1 : any, Symbol(x1, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 5, 3)) +>null : null x1 += undefined; >x1 += undefined : any ->x1 : any ->undefined : undefined +>x1 : any, Symbol(x1, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 5, 3)) +>undefined : undefined, Symbol(undefined) var x2: string; ->x2 : string +>x2 : string, Symbol(x2, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 16, 3)) x2 += a; >x2 += a : string ->x2 : string ->a : any +>x2 : string, Symbol(x2, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 16, 3)) +>a : any, Symbol(a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 2, 3)) x2 += b; >x2 += b : string ->x2 : string ->b : void +>x2 : string, Symbol(x2, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 16, 3)) +>b : void, Symbol(b, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 3, 3)) x2 += true; >x2 += true : string ->x2 : string +>x2 : string, Symbol(x2, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 16, 3)) +>true : boolean x2 += 0; >x2 += 0 : string ->x2 : string +>x2 : string, Symbol(x2, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 16, 3)) +>0 : number x2 += ''; >x2 += '' : string ->x2 : string +>x2 : string, Symbol(x2, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 16, 3)) +>'' : string x2 += E.a; >x2 += E.a : string ->x2 : string ->E.a : E ->E : typeof E ->a : E +>x2 : string, Symbol(x2, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 16, 3)) +>E.a : E, Symbol(E.a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 8)) x2 += {}; >x2 += {} : string ->x2 : string +>x2 : string, Symbol(x2, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 16, 3)) >{} : {} x2 += null; >x2 += null : string ->x2 : string +>x2 : string, Symbol(x2, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 16, 3)) +>null : null x2 += undefined; >x2 += undefined : string ->x2 : string ->undefined : undefined +>x2 : string, Symbol(x2, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 16, 3)) +>undefined : undefined, Symbol(undefined) var x3: number; ->x3 : number +>x3 : number, Symbol(x3, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 27, 3)) x3 += a; >x3 += a : any ->x3 : number ->a : any +>x3 : number, Symbol(x3, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 27, 3)) +>a : any, Symbol(a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 2, 3)) x3 += 0; >x3 += 0 : number ->x3 : number +>x3 : number, Symbol(x3, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 27, 3)) +>0 : number x3 += E.a; >x3 += E.a : number ->x3 : number ->E.a : E ->E : typeof E ->a : E +>x3 : number, Symbol(x3, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 27, 3)) +>E.a : E, Symbol(E.a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 8)) x3 += null; >x3 += null : number ->x3 : number +>x3 : number, Symbol(x3, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 27, 3)) +>null : null x3 += undefined; >x3 += undefined : number ->x3 : number ->undefined : undefined +>x3 : number, Symbol(x3, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 27, 3)) +>undefined : undefined, Symbol(undefined) var x4: E; ->x4 : E ->E : E +>x4 : E, Symbol(x4, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 34, 3)) +>E : E, Symbol(E, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 0)) x4 += a; >x4 += a : any ->x4 : E ->a : any +>x4 : E, Symbol(x4, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 34, 3)) +>a : any, Symbol(a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 2, 3)) x4 += 0; >x4 += 0 : number ->x4 : E +>x4 : E, Symbol(x4, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 34, 3)) +>0 : number x4 += E.a; >x4 += E.a : number ->x4 : E ->E.a : E ->E : typeof E ->a : E +>x4 : E, Symbol(x4, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 34, 3)) +>E.a : E, Symbol(E.a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 0, 8)) x4 += null; >x4 += null : number ->x4 : E +>x4 : E, Symbol(x4, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 34, 3)) +>null : null x4 += undefined; >x4 += undefined : number ->x4 : E ->undefined : undefined +>x4 : E, Symbol(x4, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 34, 3)) +>undefined : undefined, Symbol(undefined) var x5: boolean; ->x5 : boolean +>x5 : boolean, Symbol(x5, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 41, 3)) x5 += a; >x5 += a : any ->x5 : boolean ->a : any +>x5 : boolean, Symbol(x5, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 41, 3)) +>a : any, Symbol(a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 2, 3)) var x6: {}; ->x6 : {} +>x6 : {}, Symbol(x6, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 44, 3)) x6 += a; >x6 += a : any ->x6 : {} ->a : any +>x6 : {}, Symbol(x6, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 44, 3)) +>a : any, Symbol(a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 2, 3)) x6 += ''; >x6 += '' : string ->x6 : {} +>x6 : {}, Symbol(x6, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 44, 3)) +>'' : string var x7: void; ->x7 : void +>x7 : void, Symbol(x7, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 48, 3)) x7 += a; >x7 += a : any ->x7 : void ->a : any +>x7 : void, Symbol(x7, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 48, 3)) +>a : any, Symbol(a, Decl(compoundAdditionAssignmentLHSCanBeAssigned.ts, 2, 3)) diff --git a/tests/baselines/reference/compoundArithmeticAssignmentLHSCanBeAssigned.types b/tests/baselines/reference/compoundArithmeticAssignmentLHSCanBeAssigned.types index c4345b97413..cd8ae3536b7 100644 --- a/tests/baselines/reference/compoundArithmeticAssignmentLHSCanBeAssigned.types +++ b/tests/baselines/reference/compoundArithmeticAssignmentLHSCanBeAssigned.types @@ -1,99 +1,102 @@ === tests/cases/conformance/expressions/assignmentOperator/compoundArithmeticAssignmentLHSCanBeAssigned.ts === enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 0, 8)) +>b : E, Symbol(E.b, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 0, 11)) +>c : E, Symbol(E.c, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 0, 14)) var a: any; ->a : any +>a : any, Symbol(a, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 2, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 3, 3)) var c: E; ->c : E ->E : E +>c : E, Symbol(c, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 4, 3)) +>E : E, Symbol(E, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 0, 0)) var x1: any; ->x1 : any +>x1 : any, Symbol(x1, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 6, 3)) x1 *= a; >x1 *= a : number ->x1 : any ->a : any +>x1 : any, Symbol(x1, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 6, 3)) +>a : any, Symbol(a, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 2, 3)) x1 *= b; >x1 *= b : number ->x1 : any ->b : number +>x1 : any, Symbol(x1, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 6, 3)) +>b : number, Symbol(b, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 3, 3)) x1 *= c; >x1 *= c : number ->x1 : any ->c : E +>x1 : any, Symbol(x1, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 6, 3)) +>c : E, Symbol(c, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 4, 3)) x1 *= null; >x1 *= null : number ->x1 : any +>x1 : any, Symbol(x1, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 6, 3)) +>null : null x1 *= undefined; >x1 *= undefined : number ->x1 : any ->undefined : undefined +>x1 : any, Symbol(x1, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 6, 3)) +>undefined : undefined, Symbol(undefined) var x2: number; ->x2 : number +>x2 : number, Symbol(x2, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 13, 3)) x2 *= a; >x2 *= a : number ->x2 : number ->a : any +>x2 : number, Symbol(x2, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 13, 3)) +>a : any, Symbol(a, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 2, 3)) x2 *= b; >x2 *= b : number ->x2 : number ->b : number +>x2 : number, Symbol(x2, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 13, 3)) +>b : number, Symbol(b, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 3, 3)) x2 *= c; >x2 *= c : number ->x2 : number ->c : E +>x2 : number, Symbol(x2, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 13, 3)) +>c : E, Symbol(c, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 4, 3)) x2 *= null; >x2 *= null : number ->x2 : number +>x2 : number, Symbol(x2, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 13, 3)) +>null : null x2 *= undefined; >x2 *= undefined : number ->x2 : number ->undefined : undefined +>x2 : number, Symbol(x2, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 13, 3)) +>undefined : undefined, Symbol(undefined) var x3: E; ->x3 : E ->E : E +>x3 : E, Symbol(x3, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 20, 3)) +>E : E, Symbol(E, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 0, 0)) x3 *= a; >x3 *= a : number ->x3 : E ->a : any +>x3 : E, Symbol(x3, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 20, 3)) +>a : any, Symbol(a, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 2, 3)) x3 *= b; >x3 *= b : number ->x3 : E ->b : number +>x3 : E, Symbol(x3, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 20, 3)) +>b : number, Symbol(b, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 3, 3)) x3 *= c; >x3 *= c : number ->x3 : E ->c : E +>x3 : E, Symbol(x3, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 20, 3)) +>c : E, Symbol(c, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 4, 3)) x3 *= null; >x3 *= null : number ->x3 : E +>x3 : E, Symbol(x3, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 20, 3)) +>null : null x3 *= undefined; >x3 *= undefined : number ->x3 : E ->undefined : undefined +>x3 : E, Symbol(x3, Decl(compoundArithmeticAssignmentLHSCanBeAssigned.ts, 20, 3)) +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/compoundAssignmentLHSIsReference.types b/tests/baselines/reference/compoundAssignmentLHSIsReference.types index e30cf19f3e3..12ccd6ebc7e 100644 --- a/tests/baselines/reference/compoundAssignmentLHSIsReference.types +++ b/tests/baselines/reference/compoundAssignmentLHSIsReference.types @@ -1,124 +1,128 @@ === tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsReference.ts === var value; ->value : any +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) // identifiers: variable and parameter var x1: number; ->x1 : number +>x1 : number, Symbol(x1, Decl(compoundAssignmentLHSIsReference.ts, 3, 3)) x1 *= value; >x1 *= value : number ->x1 : number ->value : any +>x1 : number, Symbol(x1, Decl(compoundAssignmentLHSIsReference.ts, 3, 3)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) x1 += value; >x1 += value : any ->x1 : number ->value : any +>x1 : number, Symbol(x1, Decl(compoundAssignmentLHSIsReference.ts, 3, 3)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) function fn1(x2: number) { ->fn1 : (x2: number) => void ->x2 : number +>fn1 : (x2: number) => void, Symbol(fn1, Decl(compoundAssignmentLHSIsReference.ts, 5, 12)) +>x2 : number, Symbol(x2, Decl(compoundAssignmentLHSIsReference.ts, 7, 13)) x2 *= value; >x2 *= value : number ->x2 : number ->value : any +>x2 : number, Symbol(x2, Decl(compoundAssignmentLHSIsReference.ts, 7, 13)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) x2 += value; >x2 += value : any ->x2 : number ->value : any +>x2 : number, Symbol(x2, Decl(compoundAssignmentLHSIsReference.ts, 7, 13)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) } // property accesses var x3: { a: number }; ->x3 : { a: number; } ->a : number +>x3 : { a: number; }, Symbol(x3, Decl(compoundAssignmentLHSIsReference.ts, 13, 3)) +>a : number, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) x3.a *= value; >x3.a *= value : number ->x3.a : number ->x3 : { a: number; } ->a : number ->value : any +>x3.a : number, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) +>x3 : { a: number; }, Symbol(x3, Decl(compoundAssignmentLHSIsReference.ts, 13, 3)) +>a : number, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) x3.a += value; >x3.a += value : any ->x3.a : number ->x3 : { a: number; } ->a : number ->value : any +>x3.a : number, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) +>x3 : { a: number; }, Symbol(x3, Decl(compoundAssignmentLHSIsReference.ts, 13, 3)) +>a : number, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) x3['a'] *= value; >x3['a'] *= value : number >x3['a'] : number ->x3 : { a: number; } ->value : any +>x3 : { a: number; }, Symbol(x3, Decl(compoundAssignmentLHSIsReference.ts, 13, 3)) +>'a' : string, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) x3['a'] += value; >x3['a'] += value : any >x3['a'] : number ->x3 : { a: number; } ->value : any +>x3 : { a: number; }, Symbol(x3, Decl(compoundAssignmentLHSIsReference.ts, 13, 3)) +>'a' : string, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) // parentheses, the contained expression is reference (x1) *= value; >(x1) *= value : number >(x1) : number ->x1 : number ->value : any +>x1 : number, Symbol(x1, Decl(compoundAssignmentLHSIsReference.ts, 3, 3)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) (x1) += value; >(x1) += value : any >(x1) : number ->x1 : number ->value : any +>x1 : number, Symbol(x1, Decl(compoundAssignmentLHSIsReference.ts, 3, 3)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) function fn2(x4: number) { ->fn2 : (x4: number) => void ->x4 : number +>fn2 : (x4: number) => void, Symbol(fn2, Decl(compoundAssignmentLHSIsReference.ts, 22, 14)) +>x4 : number, Symbol(x4, Decl(compoundAssignmentLHSIsReference.ts, 24, 13)) (x4) *= value; >(x4) *= value : number >(x4) : number ->x4 : number ->value : any +>x4 : number, Symbol(x4, Decl(compoundAssignmentLHSIsReference.ts, 24, 13)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) (x4) += value; >(x4) += value : any >(x4) : number ->x4 : number ->value : any +>x4 : number, Symbol(x4, Decl(compoundAssignmentLHSIsReference.ts, 24, 13)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) } (x3.a) *= value; >(x3.a) *= value : number >(x3.a) : number ->x3.a : number ->x3 : { a: number; } ->a : number ->value : any +>x3.a : number, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) +>x3 : { a: number; }, Symbol(x3, Decl(compoundAssignmentLHSIsReference.ts, 13, 3)) +>a : number, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) (x3.a) += value; >(x3.a) += value : any >(x3.a) : number ->x3.a : number ->x3 : { a: number; } ->a : number ->value : any +>x3.a : number, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) +>x3 : { a: number; }, Symbol(x3, Decl(compoundAssignmentLHSIsReference.ts, 13, 3)) +>a : number, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) (x3['a']) *= value; >(x3['a']) *= value : number >(x3['a']) : number >x3['a'] : number ->x3 : { a: number; } ->value : any +>x3 : { a: number; }, Symbol(x3, Decl(compoundAssignmentLHSIsReference.ts, 13, 3)) +>'a' : string, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) (x3['a']) += value; >(x3['a']) += value : any >(x3['a']) : number >x3['a'] : number ->x3 : { a: number; } ->value : any +>x3 : { a: number; }, Symbol(x3, Decl(compoundAssignmentLHSIsReference.ts, 13, 3)) +>'a' : string, Symbol(a, Decl(compoundAssignmentLHSIsReference.ts, 13, 9)) +>value : any, Symbol(value, Decl(compoundAssignmentLHSIsReference.ts, 0, 3)) diff --git a/tests/baselines/reference/compoundVarDecl1.types b/tests/baselines/reference/compoundVarDecl1.types index e9a04bff9b2..6388402e10c 100644 --- a/tests/baselines/reference/compoundVarDecl1.types +++ b/tests/baselines/reference/compoundVarDecl1.types @@ -1,14 +1,19 @@ === tests/cases/compiler/compoundVarDecl1.ts === module Foo { var a = 1, b = 1; a = b + 2; } ->Foo : typeof Foo ->a : number ->b : number +>Foo : typeof Foo, Symbol(Foo, Decl(compoundVarDecl1.ts, 0, 0)) +>a : number, Symbol(a, Decl(compoundVarDecl1.ts, 0, 16)) +>1 : number +>b : number, Symbol(b, Decl(compoundVarDecl1.ts, 0, 23)) +>1 : number >a = b + 2 : number ->a : number +>a : number, Symbol(a, Decl(compoundVarDecl1.ts, 0, 16)) >b + 2 : number ->b : number +>b : number, Symbol(b, Decl(compoundVarDecl1.ts, 0, 23)) +>2 : number var foo = 4, bar = 5; ->foo : number ->bar : number +>foo : number, Symbol(foo, Decl(compoundVarDecl1.ts, 2, 3)) +>4 : number +>bar : number, Symbol(bar, Decl(compoundVarDecl1.ts, 2, 12)) +>5 : number diff --git a/tests/baselines/reference/computedPropertyNames10_ES5.js b/tests/baselines/reference/computedPropertyNames10_ES5.js index 302f9355be8..14d9235b12b 100644 --- a/tests/baselines/reference/computedPropertyNames10_ES5.js +++ b/tests/baselines/reference/computedPropertyNames10_ES5.js @@ -32,5 +32,6 @@ var v = (_a = {}, _a[true] = function () { }, _a["hello bye"] = function () { }, _a["hello " + a + " bye"] = function () { }, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNames10_ES5.types b/tests/baselines/reference/computedPropertyNames10_ES5.types index cb49d5c3384..70e7ab6c012 100644 --- a/tests/baselines/reference/computedPropertyNames10_ES5.types +++ b/tests/baselines/reference/computedPropertyNames10_ES5.types @@ -1,46 +1,54 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames10_ES5.ts === var s: string; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames10_ES5.ts, 0, 3)) var n: number; ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames10_ES5.ts, 1, 3)) var a: any; ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames10_ES5.ts, 2, 3)) var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNames10_ES5.ts, 3, 3)) >{ [s]() { }, [n]() { }, [s + s]() { }, [s + n]() { }, [+s]() { }, [""]() { }, [0]() { }, [a]() { }, [true]() { }, [`hello bye`]() { }, [`hello ${a} bye`]() { }} : {} [s]() { }, ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames10_ES5.ts, 0, 3)) [n]() { }, ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames10_ES5.ts, 1, 3)) [s + s]() { }, >s + s : string ->s : string ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames10_ES5.ts, 0, 3)) +>s : string, Symbol(s, Decl(computedPropertyNames10_ES5.ts, 0, 3)) [s + n]() { }, >s + n : string ->s : string ->n : number +>s : string, Symbol(s, Decl(computedPropertyNames10_ES5.ts, 0, 3)) +>n : number, Symbol(n, Decl(computedPropertyNames10_ES5.ts, 1, 3)) [+s]() { }, >+s : number ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames10_ES5.ts, 0, 3)) [""]() { }, +>"" : string + [0]() { }, +>0 : number + [a]() { }, ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames10_ES5.ts, 2, 3)) [true]() { }, >true : any +>true : boolean [`hello bye`]() { }, +>`hello bye` : string + [`hello ${a} bye`]() { } ->a : any +>`hello ${a} bye` : string +>a : any, Symbol(a, Decl(computedPropertyNames10_ES5.ts, 2, 3)) } diff --git a/tests/baselines/reference/computedPropertyNames10_ES6.types b/tests/baselines/reference/computedPropertyNames10_ES6.types index 5dcc4783b5e..9fa2dea8883 100644 --- a/tests/baselines/reference/computedPropertyNames10_ES6.types +++ b/tests/baselines/reference/computedPropertyNames10_ES6.types @@ -1,46 +1,54 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames10_ES6.ts === var s: string; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames10_ES6.ts, 0, 3)) var n: number; ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames10_ES6.ts, 1, 3)) var a: any; ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames10_ES6.ts, 2, 3)) var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNames10_ES6.ts, 3, 3)) >{ [s]() { }, [n]() { }, [s + s]() { }, [s + n]() { }, [+s]() { }, [""]() { }, [0]() { }, [a]() { }, [true]() { }, [`hello bye`]() { }, [`hello ${a} bye`]() { }} : {} [s]() { }, ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames10_ES6.ts, 0, 3)) [n]() { }, ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames10_ES6.ts, 1, 3)) [s + s]() { }, >s + s : string ->s : string ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames10_ES6.ts, 0, 3)) +>s : string, Symbol(s, Decl(computedPropertyNames10_ES6.ts, 0, 3)) [s + n]() { }, >s + n : string ->s : string ->n : number +>s : string, Symbol(s, Decl(computedPropertyNames10_ES6.ts, 0, 3)) +>n : number, Symbol(n, Decl(computedPropertyNames10_ES6.ts, 1, 3)) [+s]() { }, >+s : number ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames10_ES6.ts, 0, 3)) [""]() { }, +>"" : string + [0]() { }, +>0 : number + [a]() { }, ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames10_ES6.ts, 2, 3)) [true]() { }, >true : any +>true : boolean [`hello bye`]() { }, +>`hello bye` : string + [`hello ${a} bye`]() { } ->a : any +>`hello ${a} bye` : string +>a : any, Symbol(a, Decl(computedPropertyNames10_ES6.ts, 2, 3)) } diff --git a/tests/baselines/reference/computedPropertyNames11_ES5.js b/tests/baselines/reference/computedPropertyNames11_ES5.js index 69902003342..64c0b0bd67e 100644 --- a/tests/baselines/reference/computedPropertyNames11_ES5.js +++ b/tests/baselines/reference/computedPropertyNames11_ES5.js @@ -21,16 +21,61 @@ var s; var n; var a; var v = (_a = {}, - _a[s] = Object.defineProperty({ get: function () { return 0; }, enumerable: true, configurable: true }), - _a[n] = Object.defineProperty({ set: function (v) { }, enumerable: true, configurable: true }), - _a[s + s] = Object.defineProperty({ get: function () { return 0; }, enumerable: true, configurable: true }), - _a[s + n] = Object.defineProperty({ set: function (v) { }, enumerable: true, configurable: true }), - _a[+s] = Object.defineProperty({ get: function () { return 0; }, enumerable: true, configurable: true }), - _a[""] = Object.defineProperty({ set: function (v) { }, enumerable: true, configurable: true }), - _a[0] = Object.defineProperty({ get: function () { return 0; }, enumerable: true, configurable: true }), - _a[a] = Object.defineProperty({ set: function (v) { }, enumerable: true, configurable: true }), - _a[true] = Object.defineProperty({ get: function () { return 0; }, enumerable: true, configurable: true }), - _a["hello bye"] = Object.defineProperty({ set: function (v) { }, enumerable: true, configurable: true }), - _a["hello " + a + " bye"] = Object.defineProperty({ get: function () { return 0; }, enumerable: true, configurable: true }), - _a); + Object.defineProperty(_a, s, { + get: function () { return 0; }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, n, { + set: function (v) { }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, s + s, { + get: function () { return 0; }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, s + n, { + set: function (v) { }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, +s, { + get: function () { return 0; }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, "", { + set: function (v) { }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, 0, { + get: function () { return 0; }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, a, { + set: function (v) { }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, true, { + get: function () { return 0; }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, "hello bye", { + set: function (v) { }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, "hello " + a + " bye", { + get: function () { return 0; }, + enumerable: true, + configurable: true + }), + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNames11_ES5.types b/tests/baselines/reference/computedPropertyNames11_ES5.types index ed3c51302b7..bfe6639f655 100644 --- a/tests/baselines/reference/computedPropertyNames11_ES5.types +++ b/tests/baselines/reference/computedPropertyNames11_ES5.types @@ -1,53 +1,65 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts === var s: string; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames11_ES5.ts, 0, 3)) var n: number; ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames11_ES5.ts, 1, 3)) var a: any; ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames11_ES5.ts, 2, 3)) var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNames11_ES5.ts, 3, 3)) >{ get [s]() { return 0; }, set [n](v) { }, get [s + s]() { return 0; }, set [s + n](v) { }, get [+s]() { return 0; }, set [""](v) { }, get [0]() { return 0; }, set [a](v) { }, get [true]() { return 0; }, set [`hello bye`](v) { }, get [`hello ${a} bye`]() { return 0; }} : {} get [s]() { return 0; }, ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames11_ES5.ts, 0, 3)) +>0 : number set [n](v) { }, ->n : number ->v : any +>n : number, Symbol(n, Decl(computedPropertyNames11_ES5.ts, 1, 3)) +>v : any, Symbol(v, Decl(computedPropertyNames11_ES5.ts, 5, 12)) get [s + s]() { return 0; }, >s + s : string ->s : string ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames11_ES5.ts, 0, 3)) +>s : string, Symbol(s, Decl(computedPropertyNames11_ES5.ts, 0, 3)) +>0 : number set [s + n](v) { }, >s + n : string ->s : string ->n : number ->v : any +>s : string, Symbol(s, Decl(computedPropertyNames11_ES5.ts, 0, 3)) +>n : number, Symbol(n, Decl(computedPropertyNames11_ES5.ts, 1, 3)) +>v : any, Symbol(v, Decl(computedPropertyNames11_ES5.ts, 7, 16)) get [+s]() { return 0; }, >+s : number ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames11_ES5.ts, 0, 3)) +>0 : number set [""](v) { }, ->v : any +>"" : string +>v : any, Symbol(v, Decl(computedPropertyNames11_ES5.ts, 9, 13)) get [0]() { return 0; }, +>0 : number +>0 : number + set [a](v) { }, ->a : any ->v : any +>a : any, Symbol(a, Decl(computedPropertyNames11_ES5.ts, 2, 3)) +>v : any, Symbol(v, Decl(computedPropertyNames11_ES5.ts, 11, 12)) get [true]() { return 0; }, >true : any +>true : boolean +>0 : number set [`hello bye`](v) { }, ->v : any +>`hello bye` : string +>v : any, Symbol(v, Decl(computedPropertyNames11_ES5.ts, 13, 22)) get [`hello ${a} bye`]() { return 0; } ->a : any +>`hello ${a} bye` : string +>a : any, Symbol(a, Decl(computedPropertyNames11_ES5.ts, 2, 3)) +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNames11_ES6.types b/tests/baselines/reference/computedPropertyNames11_ES6.types index a0b9e6eb99e..8ebc902bea7 100644 --- a/tests/baselines/reference/computedPropertyNames11_ES6.types +++ b/tests/baselines/reference/computedPropertyNames11_ES6.types @@ -1,53 +1,65 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES6.ts === var s: string; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames11_ES6.ts, 0, 3)) var n: number; ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames11_ES6.ts, 1, 3)) var a: any; ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames11_ES6.ts, 2, 3)) var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNames11_ES6.ts, 3, 3)) >{ get [s]() { return 0; }, set [n](v) { }, get [s + s]() { return 0; }, set [s + n](v) { }, get [+s]() { return 0; }, set [""](v) { }, get [0]() { return 0; }, set [a](v) { }, get [true]() { return 0; }, set [`hello bye`](v) { }, get [`hello ${a} bye`]() { return 0; }} : {} get [s]() { return 0; }, ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames11_ES6.ts, 0, 3)) +>0 : number set [n](v) { }, ->n : number ->v : any +>n : number, Symbol(n, Decl(computedPropertyNames11_ES6.ts, 1, 3)) +>v : any, Symbol(v, Decl(computedPropertyNames11_ES6.ts, 5, 12)) get [s + s]() { return 0; }, >s + s : string ->s : string ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames11_ES6.ts, 0, 3)) +>s : string, Symbol(s, Decl(computedPropertyNames11_ES6.ts, 0, 3)) +>0 : number set [s + n](v) { }, >s + n : string ->s : string ->n : number ->v : any +>s : string, Symbol(s, Decl(computedPropertyNames11_ES6.ts, 0, 3)) +>n : number, Symbol(n, Decl(computedPropertyNames11_ES6.ts, 1, 3)) +>v : any, Symbol(v, Decl(computedPropertyNames11_ES6.ts, 7, 16)) get [+s]() { return 0; }, >+s : number ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames11_ES6.ts, 0, 3)) +>0 : number set [""](v) { }, ->v : any +>"" : string +>v : any, Symbol(v, Decl(computedPropertyNames11_ES6.ts, 9, 13)) get [0]() { return 0; }, +>0 : number +>0 : number + set [a](v) { }, ->a : any ->v : any +>a : any, Symbol(a, Decl(computedPropertyNames11_ES6.ts, 2, 3)) +>v : any, Symbol(v, Decl(computedPropertyNames11_ES6.ts, 11, 12)) get [true]() { return 0; }, >true : any +>true : boolean +>0 : number set [`hello bye`](v) { }, ->v : any +>`hello bye` : string +>v : any, Symbol(v, Decl(computedPropertyNames11_ES6.ts, 13, 22)) get [`hello ${a} bye`]() { return 0; } ->a : any +>`hello ${a} bye` : string +>a : any, Symbol(a, Decl(computedPropertyNames11_ES6.ts, 2, 3)) +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNames13_ES5.types b/tests/baselines/reference/computedPropertyNames13_ES5.types index ff98a3189a7..51a76980905 100644 --- a/tests/baselines/reference/computedPropertyNames13_ES5.types +++ b/tests/baselines/reference/computedPropertyNames13_ES5.types @@ -1,45 +1,53 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES5.ts === var s: string; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3)) var n: number; ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames13_ES5.ts, 1, 3)) var a: any; ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames13_ES5.ts, 2, 3)) class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNames13_ES5.ts, 2, 11)) [s]() {} ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3)) [n]() { } ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames13_ES5.ts, 1, 3)) static [s + s]() { } >s + s : string ->s : string ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3)) +>s : string, Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3)) [s + n]() { } >s + n : string ->s : string ->n : number +>s : string, Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3)) +>n : number, Symbol(n, Decl(computedPropertyNames13_ES5.ts, 1, 3)) [+s]() { } >+s : number ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames13_ES5.ts, 0, 3)) static [""]() { } +>"" : string + [0]() { } +>0 : number + [a]() { } ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames13_ES5.ts, 2, 3)) static [true]() { } >true : any +>true : boolean [`hello bye`]() { } +>`hello bye` : string + static [`hello ${a} bye`]() { } ->a : any +>`hello ${a} bye` : string +>a : any, Symbol(a, Decl(computedPropertyNames13_ES5.ts, 2, 3)) } diff --git a/tests/baselines/reference/computedPropertyNames13_ES6.types b/tests/baselines/reference/computedPropertyNames13_ES6.types index 78b2f3afc4a..2c1bb6ff309 100644 --- a/tests/baselines/reference/computedPropertyNames13_ES6.types +++ b/tests/baselines/reference/computedPropertyNames13_ES6.types @@ -1,45 +1,53 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES6.ts === var s: string; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames13_ES6.ts, 0, 3)) var n: number; ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames13_ES6.ts, 1, 3)) var a: any; ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames13_ES6.ts, 2, 3)) class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNames13_ES6.ts, 2, 11)) [s]() {} ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames13_ES6.ts, 0, 3)) [n]() { } ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames13_ES6.ts, 1, 3)) static [s + s]() { } >s + s : string ->s : string ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames13_ES6.ts, 0, 3)) +>s : string, Symbol(s, Decl(computedPropertyNames13_ES6.ts, 0, 3)) [s + n]() { } >s + n : string ->s : string ->n : number +>s : string, Symbol(s, Decl(computedPropertyNames13_ES6.ts, 0, 3)) +>n : number, Symbol(n, Decl(computedPropertyNames13_ES6.ts, 1, 3)) [+s]() { } >+s : number ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames13_ES6.ts, 0, 3)) static [""]() { } +>"" : string + [0]() { } +>0 : number + [a]() { } ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames13_ES6.ts, 2, 3)) static [true]() { } >true : any +>true : boolean [`hello bye`]() { } +>`hello bye` : string + static [`hello ${a} bye`]() { } ->a : any +>`hello ${a} bye` : string +>a : any, Symbol(a, Decl(computedPropertyNames13_ES6.ts, 2, 3)) } diff --git a/tests/baselines/reference/computedPropertyNames16_ES5.types b/tests/baselines/reference/computedPropertyNames16_ES5.types index 3914093c766..51ff088cc4e 100644 --- a/tests/baselines/reference/computedPropertyNames16_ES5.types +++ b/tests/baselines/reference/computedPropertyNames16_ES5.types @@ -1,52 +1,64 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts === var s: string; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames16_ES5.ts, 0, 3)) var n: number; ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames16_ES5.ts, 1, 3)) var a: any; ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames16_ES5.ts, 2, 3)) class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNames16_ES5.ts, 2, 11)) get [s]() { return 0;} ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames16_ES5.ts, 0, 3)) +>0 : number set [n](v) { } ->n : number ->v : any +>n : number, Symbol(n, Decl(computedPropertyNames16_ES5.ts, 1, 3)) +>v : any, Symbol(v, Decl(computedPropertyNames16_ES5.ts, 5, 12)) static get [s + s]() { return 0; } >s + s : string ->s : string ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames16_ES5.ts, 0, 3)) +>s : string, Symbol(s, Decl(computedPropertyNames16_ES5.ts, 0, 3)) +>0 : number set [s + n](v) { } >s + n : string ->s : string ->n : number ->v : any +>s : string, Symbol(s, Decl(computedPropertyNames16_ES5.ts, 0, 3)) +>n : number, Symbol(n, Decl(computedPropertyNames16_ES5.ts, 1, 3)) +>v : any, Symbol(v, Decl(computedPropertyNames16_ES5.ts, 7, 16)) get [+s]() { return 0; } >+s : number ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames16_ES5.ts, 0, 3)) +>0 : number static set [""](v) { } ->v : any +>"" : string +>v : any, Symbol(v, Decl(computedPropertyNames16_ES5.ts, 9, 20)) get [0]() { return 0; } +>0 : number +>0 : number + set [a](v) { } ->a : any ->v : any +>a : any, Symbol(a, Decl(computedPropertyNames16_ES5.ts, 2, 3)) +>v : any, Symbol(v, Decl(computedPropertyNames16_ES5.ts, 11, 12)) static get [true]() { return 0; } >true : any +>true : boolean +>0 : number set [`hello bye`](v) { } ->v : any +>`hello bye` : string +>v : any, Symbol(v, Decl(computedPropertyNames16_ES5.ts, 13, 22)) get [`hello ${a} bye`]() { return 0; } ->a : any +>`hello ${a} bye` : string +>a : any, Symbol(a, Decl(computedPropertyNames16_ES5.ts, 2, 3)) +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNames16_ES6.types b/tests/baselines/reference/computedPropertyNames16_ES6.types index 6503c75037d..c7f632ee2e7 100644 --- a/tests/baselines/reference/computedPropertyNames16_ES6.types +++ b/tests/baselines/reference/computedPropertyNames16_ES6.types @@ -1,52 +1,64 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES6.ts === var s: string; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames16_ES6.ts, 0, 3)) var n: number; ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames16_ES6.ts, 1, 3)) var a: any; ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames16_ES6.ts, 2, 3)) class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNames16_ES6.ts, 2, 11)) get [s]() { return 0;} ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames16_ES6.ts, 0, 3)) +>0 : number set [n](v) { } ->n : number ->v : any +>n : number, Symbol(n, Decl(computedPropertyNames16_ES6.ts, 1, 3)) +>v : any, Symbol(v, Decl(computedPropertyNames16_ES6.ts, 5, 12)) static get [s + s]() { return 0; } >s + s : string ->s : string ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames16_ES6.ts, 0, 3)) +>s : string, Symbol(s, Decl(computedPropertyNames16_ES6.ts, 0, 3)) +>0 : number set [s + n](v) { } >s + n : string ->s : string ->n : number ->v : any +>s : string, Symbol(s, Decl(computedPropertyNames16_ES6.ts, 0, 3)) +>n : number, Symbol(n, Decl(computedPropertyNames16_ES6.ts, 1, 3)) +>v : any, Symbol(v, Decl(computedPropertyNames16_ES6.ts, 7, 16)) get [+s]() { return 0; } >+s : number ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames16_ES6.ts, 0, 3)) +>0 : number static set [""](v) { } ->v : any +>"" : string +>v : any, Symbol(v, Decl(computedPropertyNames16_ES6.ts, 9, 20)) get [0]() { return 0; } +>0 : number +>0 : number + set [a](v) { } ->a : any ->v : any +>a : any, Symbol(a, Decl(computedPropertyNames16_ES6.ts, 2, 3)) +>v : any, Symbol(v, Decl(computedPropertyNames16_ES6.ts, 11, 12)) static get [true]() { return 0; } >true : any +>true : boolean +>0 : number set [`hello bye`](v) { } ->v : any +>`hello bye` : string +>v : any, Symbol(v, Decl(computedPropertyNames16_ES6.ts, 13, 22)) get [`hello ${a} bye`]() { return 0; } ->a : any +>`hello ${a} bye` : string +>a : any, Symbol(a, Decl(computedPropertyNames16_ES6.ts, 2, 3)) +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNames18_ES5.js b/tests/baselines/reference/computedPropertyNames18_ES5.js index a62af506531..b65c7fd4f7d 100644 --- a/tests/baselines/reference/computedPropertyNames18_ES5.js +++ b/tests/baselines/reference/computedPropertyNames18_ES5.js @@ -9,6 +9,7 @@ function foo() { function foo() { var obj = (_a = {}, _a[this.bar] = 0, - _a); + _a + ); var _a; } diff --git a/tests/baselines/reference/computedPropertyNames18_ES5.types b/tests/baselines/reference/computedPropertyNames18_ES5.types index 732de08e2d6..f7b7f9f99a0 100644 --- a/tests/baselines/reference/computedPropertyNames18_ES5.types +++ b/tests/baselines/reference/computedPropertyNames18_ES5.types @@ -1,14 +1,15 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames18_ES5.ts === function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(computedPropertyNames18_ES5.ts, 0, 0)) var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames18_ES5.ts, 1, 7)) >{ [this.bar]: 0 } : {} [this.bar]: 0 >this.bar : any >this : any >bar : any +>0 : number } } diff --git a/tests/baselines/reference/computedPropertyNames18_ES6.types b/tests/baselines/reference/computedPropertyNames18_ES6.types index af7081fa2ad..47aae22f07c 100644 --- a/tests/baselines/reference/computedPropertyNames18_ES6.types +++ b/tests/baselines/reference/computedPropertyNames18_ES6.types @@ -1,14 +1,15 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames18_ES6.ts === function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(computedPropertyNames18_ES6.ts, 0, 0)) var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames18_ES6.ts, 1, 7)) >{ [this.bar]: 0 } : {} [this.bar]: 0 >this.bar : any >this : any >bar : any +>0 : number } } diff --git a/tests/baselines/reference/computedPropertyNames19_ES5.js b/tests/baselines/reference/computedPropertyNames19_ES5.js index bda3e01bbed..36f3e66c7c2 100644 --- a/tests/baselines/reference/computedPropertyNames19_ES5.js +++ b/tests/baselines/reference/computedPropertyNames19_ES5.js @@ -10,6 +10,7 @@ var M; (function (M) { var obj = (_a = {}, _a[this.bar] = 0, - _a); + _a + ); var _a; })(M || (M = {})); diff --git a/tests/baselines/reference/computedPropertyNames1_ES5.js b/tests/baselines/reference/computedPropertyNames1_ES5.js index 37e06616c2f..4fdec28c7aa 100644 --- a/tests/baselines/reference/computedPropertyNames1_ES5.js +++ b/tests/baselines/reference/computedPropertyNames1_ES5.js @@ -6,7 +6,17 @@ var v = { //// [computedPropertyNames1_ES5.js] var v = (_a = {}, - _a[0 + 1] = Object.defineProperty({ get: function () { return 0; }, enumerable: true, configurable: true }), - _a[0 + 1] = Object.defineProperty({ set: function (v) { }, enumerable: true, configurable: true }), - _a); + Object.defineProperty(_a, 0 + 1, { + get: function () { return 0; }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, 0 + 1, { + set: function (v) { } //No error + , + enumerable: true, + configurable: true + }), + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNames1_ES5.types b/tests/baselines/reference/computedPropertyNames1_ES5.types index 6627d53d1da..d683579c2cf 100644 --- a/tests/baselines/reference/computedPropertyNames1_ES5.types +++ b/tests/baselines/reference/computedPropertyNames1_ES5.types @@ -1,12 +1,17 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames1_ES5.ts === var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNames1_ES5.ts, 0, 3)) >{ get [0 + 1]() { return 0 }, set [0 + 1](v: string) { } //No error} : {} get [0 + 1]() { return 0 }, >0 + 1 : number +>0 : number +>1 : number +>0 : number set [0 + 1](v: string) { } //No error >0 + 1 : number ->v : string +>0 : number +>1 : number +>v : string, Symbol(v, Decl(computedPropertyNames1_ES5.ts, 2, 16)) } diff --git a/tests/baselines/reference/computedPropertyNames1_ES6.types b/tests/baselines/reference/computedPropertyNames1_ES6.types index 966cfef579d..291cf4e4db8 100644 --- a/tests/baselines/reference/computedPropertyNames1_ES6.types +++ b/tests/baselines/reference/computedPropertyNames1_ES6.types @@ -1,12 +1,17 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames1_ES6.ts === var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNames1_ES6.ts, 0, 3)) >{ get [0 + 1]() { return 0 }, set [0 + 1](v: string) { } //No error} : {} get [0 + 1]() { return 0 }, >0 + 1 : number +>0 : number +>1 : number +>0 : number set [0 + 1](v: string) { } //No error >0 + 1 : number ->v : string +>0 : number +>1 : number +>v : string, Symbol(v, Decl(computedPropertyNames1_ES6.ts, 2, 16)) } diff --git a/tests/baselines/reference/computedPropertyNames20_ES5.js b/tests/baselines/reference/computedPropertyNames20_ES5.js index 1eec0a7bcdb..65acd7fa08f 100644 --- a/tests/baselines/reference/computedPropertyNames20_ES5.js +++ b/tests/baselines/reference/computedPropertyNames20_ES5.js @@ -6,5 +6,6 @@ var obj = { //// [computedPropertyNames20_ES5.js] var obj = (_a = {}, _a[this.bar] = 0, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNames20_ES5.types b/tests/baselines/reference/computedPropertyNames20_ES5.types index eb2bbf34b7e..013f65fd57a 100644 --- a/tests/baselines/reference/computedPropertyNames20_ES5.types +++ b/tests/baselines/reference/computedPropertyNames20_ES5.types @@ -1,10 +1,11 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES5.ts === var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames20_ES5.ts, 0, 3)) >{ [this.bar]: 0} : {} [this.bar]: 0 >this.bar : any >this : any >bar : any +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNames20_ES6.types b/tests/baselines/reference/computedPropertyNames20_ES6.types index 2280c7c4820..02afcdc6b87 100644 --- a/tests/baselines/reference/computedPropertyNames20_ES6.types +++ b/tests/baselines/reference/computedPropertyNames20_ES6.types @@ -1,10 +1,11 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames20_ES6.ts === var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames20_ES6.ts, 0, 3)) >{ [this.bar]: 0} : {} [this.bar]: 0 >this.bar : any >this : any >bar : any +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNames22_ES5.js b/tests/baselines/reference/computedPropertyNames22_ES5.js index df12193250b..e82bf673b52 100644 --- a/tests/baselines/reference/computedPropertyNames22_ES5.js +++ b/tests/baselines/reference/computedPropertyNames22_ES5.js @@ -15,7 +15,8 @@ var C = (function () { C.prototype.bar = function () { var obj = (_a = {}, _a[this.bar()] = function () { }, - _a); + _a + ); return 0; var _a; }; diff --git a/tests/baselines/reference/computedPropertyNames22_ES5.types b/tests/baselines/reference/computedPropertyNames22_ES5.types index 7afeeb75fa3..c2a42f41c10 100644 --- a/tests/baselines/reference/computedPropertyNames22_ES5.types +++ b/tests/baselines/reference/computedPropertyNames22_ES5.types @@ -1,21 +1,22 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames22_ES5.ts === class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNames22_ES5.ts, 0, 0)) bar() { ->bar : () => number +>bar : () => number, Symbol(bar, Decl(computedPropertyNames22_ES5.ts, 0, 9)) var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames22_ES5.ts, 2, 11)) >{ [this.bar()]() { } } : {} [this.bar()]() { } >this.bar() : number ->this.bar : () => number ->this : C ->bar : () => number +>this.bar : () => number, Symbol(bar, Decl(computedPropertyNames22_ES5.ts, 0, 9)) +>this : C, Symbol(C, Decl(computedPropertyNames22_ES5.ts, 0, 0)) +>bar : () => number, Symbol(bar, Decl(computedPropertyNames22_ES5.ts, 0, 9)) }; return 0; +>0 : number } } diff --git a/tests/baselines/reference/computedPropertyNames22_ES6.types b/tests/baselines/reference/computedPropertyNames22_ES6.types index b65f276881f..a901883c6e0 100644 --- a/tests/baselines/reference/computedPropertyNames22_ES6.types +++ b/tests/baselines/reference/computedPropertyNames22_ES6.types @@ -1,21 +1,22 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames22_ES6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNames22_ES6.ts, 0, 0)) bar() { ->bar : () => number +>bar : () => number, Symbol(bar, Decl(computedPropertyNames22_ES6.ts, 0, 9)) var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames22_ES6.ts, 2, 11)) >{ [this.bar()]() { } } : {} [this.bar()]() { } >this.bar() : number ->this.bar : () => number ->this : C ->bar : () => number +>this.bar : () => number, Symbol(bar, Decl(computedPropertyNames22_ES6.ts, 0, 9)) +>this : C, Symbol(C, Decl(computedPropertyNames22_ES6.ts, 0, 0)) +>bar : () => number, Symbol(bar, Decl(computedPropertyNames22_ES6.ts, 0, 9)) }; return 0; +>0 : number } } diff --git a/tests/baselines/reference/computedPropertyNames23_ES5.js b/tests/baselines/reference/computedPropertyNames23_ES5.js index 8f68d9f3102..8e42a29f7e7 100644 --- a/tests/baselines/reference/computedPropertyNames23_ES5.js +++ b/tests/baselines/reference/computedPropertyNames23_ES5.js @@ -15,9 +15,7 @@ var C = (function () { C.prototype.bar = function () { return 0; }; - C.prototype[(_a = {}, - _a[this.bar()] = 1, - _a)[0]] = function () { }; + C.prototype[(_a = {}, _a[this.bar()] = 1, _a)[0]] = function () { }; return C; var _a; })(); diff --git a/tests/baselines/reference/computedPropertyNames25_ES5.js b/tests/baselines/reference/computedPropertyNames25_ES5.js index f8196dd1307..b6a8d254b26 100644 --- a/tests/baselines/reference/computedPropertyNames25_ES5.js +++ b/tests/baselines/reference/computedPropertyNames25_ES5.js @@ -36,7 +36,8 @@ var C = (function (_super) { C.prototype.foo = function () { var obj = (_a = {}, _a[_super.prototype.bar.call(this)] = function () { }, - _a); + _a + ); return 0; var _a; }; diff --git a/tests/baselines/reference/computedPropertyNames25_ES5.types b/tests/baselines/reference/computedPropertyNames25_ES5.types index 6f34ce35b44..ff16b8cc0b2 100644 --- a/tests/baselines/reference/computedPropertyNames25_ES5.types +++ b/tests/baselines/reference/computedPropertyNames25_ES5.types @@ -1,31 +1,33 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames25_ES5.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(computedPropertyNames25_ES5.ts, 0, 0)) bar() { ->bar : () => number +>bar : () => number, Symbol(bar, Decl(computedPropertyNames25_ES5.ts, 0, 12)) return 0; +>0 : number } } class C extends Base { ->C : C ->Base : Base +>C : C, Symbol(C, Decl(computedPropertyNames25_ES5.ts, 4, 1)) +>Base : Base, Symbol(Base, Decl(computedPropertyNames25_ES5.ts, 0, 0)) foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(computedPropertyNames25_ES5.ts, 5, 22)) var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames25_ES5.ts, 7, 11)) >{ [super.bar()]() { } } : {} [super.bar()]() { } >super.bar() : number ->super.bar : () => number ->super : Base ->bar : () => number +>super.bar : () => number, Symbol(Base.bar, Decl(computedPropertyNames25_ES5.ts, 0, 12)) +>super : Base, Symbol(Base, Decl(computedPropertyNames25_ES5.ts, 0, 0)) +>bar : () => number, Symbol(Base.bar, Decl(computedPropertyNames25_ES5.ts, 0, 12)) }; return 0; +>0 : number } } diff --git a/tests/baselines/reference/computedPropertyNames25_ES6.types b/tests/baselines/reference/computedPropertyNames25_ES6.types index c008a6173cf..6cbba9d6443 100644 --- a/tests/baselines/reference/computedPropertyNames25_ES6.types +++ b/tests/baselines/reference/computedPropertyNames25_ES6.types @@ -1,31 +1,33 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames25_ES6.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(computedPropertyNames25_ES6.ts, 0, 0)) bar() { ->bar : () => number +>bar : () => number, Symbol(bar, Decl(computedPropertyNames25_ES6.ts, 0, 12)) return 0; +>0 : number } } class C extends Base { ->C : C ->Base : Base +>C : C, Symbol(C, Decl(computedPropertyNames25_ES6.ts, 4, 1)) +>Base : Base, Symbol(Base, Decl(computedPropertyNames25_ES6.ts, 0, 0)) foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(computedPropertyNames25_ES6.ts, 5, 22)) var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames25_ES6.ts, 7, 11)) >{ [super.bar()]() { } } : {} [super.bar()]() { } >super.bar() : number ->super.bar : () => number ->super : Base ->bar : () => number +>super.bar : () => number, Symbol(Base.bar, Decl(computedPropertyNames25_ES6.ts, 0, 12)) +>super : Base, Symbol(Base, Decl(computedPropertyNames25_ES6.ts, 0, 0)) +>bar : () => number, Symbol(Base.bar, Decl(computedPropertyNames25_ES6.ts, 0, 12)) }; return 0; +>0 : number } } diff --git a/tests/baselines/reference/computedPropertyNames26_ES5.js b/tests/baselines/reference/computedPropertyNames26_ES5.js index 884d5c0f664..7a0a982eb41 100644 --- a/tests/baselines/reference/computedPropertyNames26_ES5.js +++ b/tests/baselines/reference/computedPropertyNames26_ES5.js @@ -30,9 +30,7 @@ var C = (function (_super) { function C() { _super.apply(this, arguments); } - C.prototype[(_a = {}, - _a[_super.bar.call(this)] = 1, - _a)[0]] = function () { }; + C.prototype[(_a = {}, _a[_super.bar.call(this)] = 1, _a)[0]] = function () { }; return C; var _a; })(Base); diff --git a/tests/baselines/reference/computedPropertyNames28_ES5.js b/tests/baselines/reference/computedPropertyNames28_ES5.js index b88cb0dfaf9..5940c498db8 100644 --- a/tests/baselines/reference/computedPropertyNames28_ES5.js +++ b/tests/baselines/reference/computedPropertyNames28_ES5.js @@ -28,7 +28,8 @@ var C = (function (_super) { _super.call(this); var obj = (_a = {}, _a[(_super.call(this), "prop")] = function () { }, - _a); + _a + ); var _a; } return C; diff --git a/tests/baselines/reference/computedPropertyNames28_ES5.types b/tests/baselines/reference/computedPropertyNames28_ES5.types index 278576ab1ca..f8914553037 100644 --- a/tests/baselines/reference/computedPropertyNames28_ES5.types +++ b/tests/baselines/reference/computedPropertyNames28_ES5.types @@ -1,25 +1,26 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames28_ES5.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(computedPropertyNames28_ES5.ts, 0, 0)) } class C extends Base { ->C : C ->Base : Base +>C : C, Symbol(C, Decl(computedPropertyNames28_ES5.ts, 1, 1)) +>Base : Base, Symbol(Base, Decl(computedPropertyNames28_ES5.ts, 0, 0)) constructor() { super(); >super() : void ->super : typeof Base +>super : typeof Base, Symbol(Base, Decl(computedPropertyNames28_ES5.ts, 0, 0)) var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames28_ES5.ts, 5, 11)) >{ [(super(), "prop")]() { } } : {} [(super(), "prop")]() { } >(super(), "prop") : string >super(), "prop" : string >super() : void ->super : typeof Base +>super : typeof Base, Symbol(Base, Decl(computedPropertyNames28_ES5.ts, 0, 0)) +>"prop" : string }; } diff --git a/tests/baselines/reference/computedPropertyNames28_ES6.types b/tests/baselines/reference/computedPropertyNames28_ES6.types index 842cdbd32e0..653aa06ec88 100644 --- a/tests/baselines/reference/computedPropertyNames28_ES6.types +++ b/tests/baselines/reference/computedPropertyNames28_ES6.types @@ -1,25 +1,26 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames28_ES6.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(computedPropertyNames28_ES6.ts, 0, 0)) } class C extends Base { ->C : C ->Base : Base +>C : C, Symbol(C, Decl(computedPropertyNames28_ES6.ts, 1, 1)) +>Base : Base, Symbol(Base, Decl(computedPropertyNames28_ES6.ts, 0, 0)) constructor() { super(); >super() : void ->super : typeof Base +>super : typeof Base, Symbol(Base, Decl(computedPropertyNames28_ES6.ts, 0, 0)) var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames28_ES6.ts, 5, 11)) >{ [(super(), "prop")]() { } } : {} [(super(), "prop")]() { } >(super(), "prop") : string >super(), "prop" : string >super() : void ->super : typeof Base +>super : typeof Base, Symbol(Base, Decl(computedPropertyNames28_ES6.ts, 0, 0)) +>"prop" : string }; } diff --git a/tests/baselines/reference/computedPropertyNames29_ES5.js b/tests/baselines/reference/computedPropertyNames29_ES5.js index 022c930ab67..4682ae9105e 100644 --- a/tests/baselines/reference/computedPropertyNames29_ES5.js +++ b/tests/baselines/reference/computedPropertyNames29_ES5.js @@ -19,7 +19,8 @@ var C = (function () { (function () { var obj = (_a = {}, _a[_this.bar()] = function () { }, - _a); + _a + ); var _a; }); return 0; diff --git a/tests/baselines/reference/computedPropertyNames29_ES5.types b/tests/baselines/reference/computedPropertyNames29_ES5.types index e0da4b10da8..cd6c9f8d7f4 100644 --- a/tests/baselines/reference/computedPropertyNames29_ES5.types +++ b/tests/baselines/reference/computedPropertyNames29_ES5.types @@ -1,25 +1,26 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames29_ES5.ts === class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNames29_ES5.ts, 0, 0)) bar() { ->bar : () => number +>bar : () => number, Symbol(bar, Decl(computedPropertyNames29_ES5.ts, 0, 9)) () => { >() => { var obj = { [this.bar()]() { } // needs capture }; } : () => void var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames29_ES5.ts, 3, 15)) >{ [this.bar()]() { } // needs capture } : {} [this.bar()]() { } // needs capture >this.bar() : number ->this.bar : () => number ->this : C ->bar : () => number +>this.bar : () => number, Symbol(bar, Decl(computedPropertyNames29_ES5.ts, 0, 9)) +>this : C, Symbol(C, Decl(computedPropertyNames29_ES5.ts, 0, 0)) +>bar : () => number, Symbol(bar, Decl(computedPropertyNames29_ES5.ts, 0, 9)) }; } return 0; +>0 : number } } diff --git a/tests/baselines/reference/computedPropertyNames29_ES6.types b/tests/baselines/reference/computedPropertyNames29_ES6.types index d520418749e..3f81f0ef23b 100644 --- a/tests/baselines/reference/computedPropertyNames29_ES6.types +++ b/tests/baselines/reference/computedPropertyNames29_ES6.types @@ -1,25 +1,26 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames29_ES6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNames29_ES6.ts, 0, 0)) bar() { ->bar : () => number +>bar : () => number, Symbol(bar, Decl(computedPropertyNames29_ES6.ts, 0, 9)) () => { >() => { var obj = { [this.bar()]() { } // needs capture }; } : () => void var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames29_ES6.ts, 3, 15)) >{ [this.bar()]() { } // needs capture } : {} [this.bar()]() { } // needs capture >this.bar() : number ->this.bar : () => number ->this : C ->bar : () => number +>this.bar : () => number, Symbol(bar, Decl(computedPropertyNames29_ES6.ts, 0, 9)) +>this : C, Symbol(C, Decl(computedPropertyNames29_ES6.ts, 0, 0)) +>bar : () => number, Symbol(bar, Decl(computedPropertyNames29_ES6.ts, 0, 9)) }; } return 0; +>0 : number } } diff --git a/tests/baselines/reference/computedPropertyNames30_ES5.js b/tests/baselines/reference/computedPropertyNames30_ES5.js index fd63a192d07..05196e23c5b 100644 --- a/tests/baselines/reference/computedPropertyNames30_ES5.js +++ b/tests/baselines/reference/computedPropertyNames30_ES5.js @@ -33,8 +33,12 @@ var C = (function (_super) { _super.call(this); (function () { var obj = (_a = {}, + // Ideally, we would capture this. But the reference is + // illegal, and not capturing this is consistent with + //treatment of other similar violations. _a[(_super.call(this), "prop")] = function () { }, - _a); + _a + ); var _a; }); } diff --git a/tests/baselines/reference/computedPropertyNames31_ES5.js b/tests/baselines/reference/computedPropertyNames31_ES5.js index 8a3c1a3f6c5..173e3c7222b 100644 --- a/tests/baselines/reference/computedPropertyNames31_ES5.js +++ b/tests/baselines/reference/computedPropertyNames31_ES5.js @@ -40,7 +40,8 @@ var C = (function (_super) { (function () { var obj = (_a = {}, _a[_super.prototype.bar.call(_this)] = function () { }, - _a); + _a + ); var _a; }); return 0; diff --git a/tests/baselines/reference/computedPropertyNames31_ES5.types b/tests/baselines/reference/computedPropertyNames31_ES5.types index eb14b223ed3..70d3a8db00a 100644 --- a/tests/baselines/reference/computedPropertyNames31_ES5.types +++ b/tests/baselines/reference/computedPropertyNames31_ES5.types @@ -1,35 +1,37 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames31_ES5.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(computedPropertyNames31_ES5.ts, 0, 0)) bar() { ->bar : () => number +>bar : () => number, Symbol(bar, Decl(computedPropertyNames31_ES5.ts, 0, 12)) return 0; +>0 : number } } class C extends Base { ->C : C ->Base : Base +>C : C, Symbol(C, Decl(computedPropertyNames31_ES5.ts, 4, 1)) +>Base : Base, Symbol(Base, Decl(computedPropertyNames31_ES5.ts, 0, 0)) foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(computedPropertyNames31_ES5.ts, 5, 22)) () => { >() => { var obj = { [super.bar()]() { } // needs capture }; } : () => void var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames31_ES5.ts, 8, 15)) >{ [super.bar()]() { } // needs capture } : {} [super.bar()]() { } // needs capture >super.bar() : number ->super.bar : () => number ->super : Base ->bar : () => number +>super.bar : () => number, Symbol(Base.bar, Decl(computedPropertyNames31_ES5.ts, 0, 12)) +>super : Base, Symbol(Base, Decl(computedPropertyNames31_ES5.ts, 0, 0)) +>bar : () => number, Symbol(Base.bar, Decl(computedPropertyNames31_ES5.ts, 0, 12)) }; } return 0; +>0 : number } } diff --git a/tests/baselines/reference/computedPropertyNames31_ES6.js b/tests/baselines/reference/computedPropertyNames31_ES6.js index 2c63dcee077..d17423223e3 100644 --- a/tests/baselines/reference/computedPropertyNames31_ES6.js +++ b/tests/baselines/reference/computedPropertyNames31_ES6.js @@ -23,7 +23,6 @@ class Base { } class C extends Base { foo() { - var _this = this; (() => { var obj = { [super.bar()]() { } // needs capture diff --git a/tests/baselines/reference/computedPropertyNames31_ES6.types b/tests/baselines/reference/computedPropertyNames31_ES6.types index 9d835a1fac1..3e9adcc905a 100644 --- a/tests/baselines/reference/computedPropertyNames31_ES6.types +++ b/tests/baselines/reference/computedPropertyNames31_ES6.types @@ -1,35 +1,37 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames31_ES6.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(computedPropertyNames31_ES6.ts, 0, 0)) bar() { ->bar : () => number +>bar : () => number, Symbol(bar, Decl(computedPropertyNames31_ES6.ts, 0, 12)) return 0; +>0 : number } } class C extends Base { ->C : C ->Base : Base +>C : C, Symbol(C, Decl(computedPropertyNames31_ES6.ts, 4, 1)) +>Base : Base, Symbol(Base, Decl(computedPropertyNames31_ES6.ts, 0, 0)) foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(computedPropertyNames31_ES6.ts, 5, 22)) () => { >() => { var obj = { [super.bar()]() { } // needs capture }; } : () => void var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames31_ES6.ts, 8, 15)) >{ [super.bar()]() { } // needs capture } : {} [super.bar()]() { } // needs capture >super.bar() : number ->super.bar : () => number ->super : Base ->bar : () => number +>super.bar : () => number, Symbol(Base.bar, Decl(computedPropertyNames31_ES6.ts, 0, 12)) +>super : Base, Symbol(Base, Decl(computedPropertyNames31_ES6.ts, 0, 0)) +>bar : () => number, Symbol(Base.bar, Decl(computedPropertyNames31_ES6.ts, 0, 12)) }; } return 0; +>0 : number } } diff --git a/tests/baselines/reference/computedPropertyNames33_ES5.js b/tests/baselines/reference/computedPropertyNames33_ES5.js index 3d7c70a9256..38029893bb1 100644 --- a/tests/baselines/reference/computedPropertyNames33_ES5.js +++ b/tests/baselines/reference/computedPropertyNames33_ES5.js @@ -17,7 +17,8 @@ var C = (function () { C.prototype.bar = function () { var obj = (_a = {}, _a[foo()] = function () { }, - _a); + _a + ); return 0; var _a; }; diff --git a/tests/baselines/reference/computedPropertyNames33_ES5.types b/tests/baselines/reference/computedPropertyNames33_ES5.types index a0d99ec8615..375c84b66fe 100644 --- a/tests/baselines/reference/computedPropertyNames33_ES5.types +++ b/tests/baselines/reference/computedPropertyNames33_ES5.types @@ -1,25 +1,27 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames33_ES5.ts === function foo() { return '' } ->foo : () => string ->T : T +>foo : () => string, Symbol(foo, Decl(computedPropertyNames33_ES5.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNames33_ES5.ts, 0, 13)) +>'' : string class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(computedPropertyNames33_ES5.ts, 0, 31)) +>T : T, Symbol(T, Decl(computedPropertyNames33_ES5.ts, 1, 8)) bar() { ->bar : () => number +>bar : () => number, Symbol(bar, Decl(computedPropertyNames33_ES5.ts, 1, 12)) var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames33_ES5.ts, 3, 11)) >{ [foo()]() { } } : {} [foo()]() { } >foo() : string ->foo : () => string ->T : T +>foo : () => string, Symbol(foo, Decl(computedPropertyNames33_ES5.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNames33_ES5.ts, 1, 8)) }; return 0; +>0 : number } } diff --git a/tests/baselines/reference/computedPropertyNames33_ES6.types b/tests/baselines/reference/computedPropertyNames33_ES6.types index 331bd2b3e09..ebe0398dde2 100644 --- a/tests/baselines/reference/computedPropertyNames33_ES6.types +++ b/tests/baselines/reference/computedPropertyNames33_ES6.types @@ -1,25 +1,27 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames33_ES6.ts === function foo() { return '' } ->foo : () => string ->T : T +>foo : () => string, Symbol(foo, Decl(computedPropertyNames33_ES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNames33_ES6.ts, 0, 13)) +>'' : string class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(computedPropertyNames33_ES6.ts, 0, 31)) +>T : T, Symbol(T, Decl(computedPropertyNames33_ES6.ts, 1, 8)) bar() { ->bar : () => number +>bar : () => number, Symbol(bar, Decl(computedPropertyNames33_ES6.ts, 1, 12)) var obj = { ->obj : {} +>obj : {}, Symbol(obj, Decl(computedPropertyNames33_ES6.ts, 3, 11)) >{ [foo()]() { } } : {} [foo()]() { } >foo() : string ->foo : () => string ->T : T +>foo : () => string, Symbol(foo, Decl(computedPropertyNames33_ES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNames33_ES6.ts, 1, 8)) }; return 0; +>0 : number } } diff --git a/tests/baselines/reference/computedPropertyNames34_ES5.js b/tests/baselines/reference/computedPropertyNames34_ES5.js index fd46b144fa5..4e5790c53b1 100644 --- a/tests/baselines/reference/computedPropertyNames34_ES5.js +++ b/tests/baselines/reference/computedPropertyNames34_ES5.js @@ -17,7 +17,8 @@ var C = (function () { C.bar = function () { var obj = (_a = {}, _a[foo()] = function () { }, - _a); + _a + ); return 0; var _a; }; diff --git a/tests/baselines/reference/computedPropertyNames37_ES5.types b/tests/baselines/reference/computedPropertyNames37_ES5.types index a12324003bf..b6259ec7df0 100644 --- a/tests/baselines/reference/computedPropertyNames37_ES5.types +++ b/tests/baselines/reference/computedPropertyNames37_ES5.types @@ -1,26 +1,28 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES5.ts === class Foo { x } ->Foo : Foo ->x : any +>Foo : Foo, Symbol(Foo, Decl(computedPropertyNames37_ES5.ts, 0, 0)) +>x : any, Symbol(x, Decl(computedPropertyNames37_ES5.ts, 0, 11)) class Foo2 { x; y } ->Foo2 : Foo2 ->x : any ->y : any +>Foo2 : Foo2, Symbol(Foo2, Decl(computedPropertyNames37_ES5.ts, 0, 15)) +>x : any, Symbol(x, Decl(computedPropertyNames37_ES5.ts, 1, 12)) +>y : any, Symbol(y, Decl(computedPropertyNames37_ES5.ts, 1, 15)) class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNames37_ES5.ts, 1, 19)) [s: number]: Foo2; ->s : number ->Foo2 : Foo2 +>s : number, Symbol(s, Decl(computedPropertyNames37_ES5.ts, 4, 5)) +>Foo2 : Foo2, Symbol(Foo2, Decl(computedPropertyNames37_ES5.ts, 0, 15)) // Computed properties get ["get1"]() { return new Foo } +>"get1" : string >new Foo : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(computedPropertyNames37_ES5.ts, 0, 0)) set ["set1"](p: Foo2) { } ->p : Foo2 ->Foo2 : Foo2 +>"set1" : string +>p : Foo2, Symbol(p, Decl(computedPropertyNames37_ES5.ts, 8, 17)) +>Foo2 : Foo2, Symbol(Foo2, Decl(computedPropertyNames37_ES5.ts, 0, 15)) } diff --git a/tests/baselines/reference/computedPropertyNames37_ES6.types b/tests/baselines/reference/computedPropertyNames37_ES6.types index 288685f0e02..85eb9b1df75 100644 --- a/tests/baselines/reference/computedPropertyNames37_ES6.types +++ b/tests/baselines/reference/computedPropertyNames37_ES6.types @@ -1,26 +1,28 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES6.ts === class Foo { x } ->Foo : Foo ->x : any +>Foo : Foo, Symbol(Foo, Decl(computedPropertyNames37_ES6.ts, 0, 0)) +>x : any, Symbol(x, Decl(computedPropertyNames37_ES6.ts, 0, 11)) class Foo2 { x; y } ->Foo2 : Foo2 ->x : any ->y : any +>Foo2 : Foo2, Symbol(Foo2, Decl(computedPropertyNames37_ES6.ts, 0, 15)) +>x : any, Symbol(x, Decl(computedPropertyNames37_ES6.ts, 1, 12)) +>y : any, Symbol(y, Decl(computedPropertyNames37_ES6.ts, 1, 15)) class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNames37_ES6.ts, 1, 19)) [s: number]: Foo2; ->s : number ->Foo2 : Foo2 +>s : number, Symbol(s, Decl(computedPropertyNames37_ES6.ts, 4, 5)) +>Foo2 : Foo2, Symbol(Foo2, Decl(computedPropertyNames37_ES6.ts, 0, 15)) // Computed properties get ["get1"]() { return new Foo } +>"get1" : string >new Foo : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(computedPropertyNames37_ES6.ts, 0, 0)) set ["set1"](p: Foo2) { } ->p : Foo2 ->Foo2 : Foo2 +>"set1" : string +>p : Foo2, Symbol(p, Decl(computedPropertyNames37_ES6.ts, 8, 17)) +>Foo2 : Foo2, Symbol(Foo2, Decl(computedPropertyNames37_ES6.ts, 0, 15)) } diff --git a/tests/baselines/reference/computedPropertyNames41_ES5.types b/tests/baselines/reference/computedPropertyNames41_ES5.types index aac087ee958..a217a32feaf 100644 --- a/tests/baselines/reference/computedPropertyNames41_ES5.types +++ b/tests/baselines/reference/computedPropertyNames41_ES5.types @@ -1,22 +1,23 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.ts === class Foo { x } ->Foo : Foo ->x : any +>Foo : Foo, Symbol(Foo, Decl(computedPropertyNames41_ES5.ts, 0, 0)) +>x : any, Symbol(x, Decl(computedPropertyNames41_ES5.ts, 0, 11)) class Foo2 { x; y } ->Foo2 : Foo2 ->x : any ->y : any +>Foo2 : Foo2, Symbol(Foo2, Decl(computedPropertyNames41_ES5.ts, 0, 15)) +>x : any, Symbol(x, Decl(computedPropertyNames41_ES5.ts, 1, 12)) +>y : any, Symbol(y, Decl(computedPropertyNames41_ES5.ts, 1, 15)) class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNames41_ES5.ts, 1, 19)) [s: string]: () => Foo2; ->s : string ->Foo2 : Foo2 +>s : string, Symbol(s, Decl(computedPropertyNames41_ES5.ts, 4, 5)) +>Foo2 : Foo2, Symbol(Foo2, Decl(computedPropertyNames41_ES5.ts, 0, 15)) // Computed properties static [""]() { return new Foo } +>"" : string >new Foo : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(computedPropertyNames41_ES5.ts, 0, 0)) } diff --git a/tests/baselines/reference/computedPropertyNames41_ES6.types b/tests/baselines/reference/computedPropertyNames41_ES6.types index ffb3387d161..d646f8d88de 100644 --- a/tests/baselines/reference/computedPropertyNames41_ES6.types +++ b/tests/baselines/reference/computedPropertyNames41_ES6.types @@ -1,22 +1,23 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES6.ts === class Foo { x } ->Foo : Foo ->x : any +>Foo : Foo, Symbol(Foo, Decl(computedPropertyNames41_ES6.ts, 0, 0)) +>x : any, Symbol(x, Decl(computedPropertyNames41_ES6.ts, 0, 11)) class Foo2 { x; y } ->Foo2 : Foo2 ->x : any ->y : any +>Foo2 : Foo2, Symbol(Foo2, Decl(computedPropertyNames41_ES6.ts, 0, 15)) +>x : any, Symbol(x, Decl(computedPropertyNames41_ES6.ts, 1, 12)) +>y : any, Symbol(y, Decl(computedPropertyNames41_ES6.ts, 1, 15)) class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNames41_ES6.ts, 1, 19)) [s: string]: () => Foo2; ->s : string ->Foo2 : Foo2 +>s : string, Symbol(s, Decl(computedPropertyNames41_ES6.ts, 4, 5)) +>Foo2 : Foo2, Symbol(Foo2, Decl(computedPropertyNames41_ES6.ts, 0, 15)) // Computed properties static [""]() { return new Foo } +>"" : string >new Foo : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(computedPropertyNames41_ES6.ts, 0, 0)) } diff --git a/tests/baselines/reference/computedPropertyNames46_ES5.js b/tests/baselines/reference/computedPropertyNames46_ES5.js index 815f5769f3b..307dadcbe91 100644 --- a/tests/baselines/reference/computedPropertyNames46_ES5.js +++ b/tests/baselines/reference/computedPropertyNames46_ES5.js @@ -6,5 +6,6 @@ var o = { //// [computedPropertyNames46_ES5.js] var o = (_a = {}, _a["" || 0] = 0, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNames46_ES5.types b/tests/baselines/reference/computedPropertyNames46_ES5.types index bdc2f2cf644..3aba7f2ea92 100644 --- a/tests/baselines/reference/computedPropertyNames46_ES5.types +++ b/tests/baselines/reference/computedPropertyNames46_ES5.types @@ -1,9 +1,12 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames46_ES5.ts === var o = { ->o : {} +>o : {}, Symbol(o, Decl(computedPropertyNames46_ES5.ts, 0, 3)) >{ ["" || 0]: 0} : {} ["" || 0]: 0 >"" || 0 : string | number +>"" : string +>0 : number +>0 : number }; diff --git a/tests/baselines/reference/computedPropertyNames46_ES6.types b/tests/baselines/reference/computedPropertyNames46_ES6.types index 7abb10f1ba5..08354d22c98 100644 --- a/tests/baselines/reference/computedPropertyNames46_ES6.types +++ b/tests/baselines/reference/computedPropertyNames46_ES6.types @@ -1,9 +1,12 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames46_ES6.ts === var o = { ->o : {} +>o : {}, Symbol(o, Decl(computedPropertyNames46_ES6.ts, 0, 3)) >{ ["" || 0]: 0} : {} ["" || 0]: 0 >"" || 0 : string | number +>"" : string +>0 : number +>0 : number }; diff --git a/tests/baselines/reference/computedPropertyNames47_ES5.js b/tests/baselines/reference/computedPropertyNames47_ES5.js index a2fff2110b4..d03b614b29b 100644 --- a/tests/baselines/reference/computedPropertyNames47_ES5.js +++ b/tests/baselines/reference/computedPropertyNames47_ES5.js @@ -16,5 +16,6 @@ var E2; })(E2 || (E2 = {})); var o = (_a = {}, _a[E1.x || E2.x] = 0, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNames47_ES5.types b/tests/baselines/reference/computedPropertyNames47_ES5.types index c79f2b20946..2d191a4c37a 100644 --- a/tests/baselines/reference/computedPropertyNames47_ES5.types +++ b/tests/baselines/reference/computedPropertyNames47_ES5.types @@ -1,23 +1,24 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames47_ES5.ts === enum E1 { x } ->E1 : E1 ->x : E1 +>E1 : E1, Symbol(E1, Decl(computedPropertyNames47_ES5.ts, 0, 0)) +>x : E1, Symbol(E1.x, Decl(computedPropertyNames47_ES5.ts, 0, 9)) enum E2 { x } ->E2 : E2 ->x : E2 +>E2 : E2, Symbol(E2, Decl(computedPropertyNames47_ES5.ts, 0, 13)) +>x : E2, Symbol(E2.x, Decl(computedPropertyNames47_ES5.ts, 1, 9)) var o = { ->o : {} +>o : {}, Symbol(o, Decl(computedPropertyNames47_ES5.ts, 2, 3)) >{ [E1.x || E2.x]: 0} : {} [E1.x || E2.x]: 0 >E1.x || E2.x : E1 | E2 ->E1.x : E1 ->E1 : typeof E1 ->x : E1 ->E2.x : E2 ->E2 : typeof E2 ->x : E2 +>E1.x : E1, Symbol(E1.x, Decl(computedPropertyNames47_ES5.ts, 0, 9)) +>E1 : typeof E1, Symbol(E1, Decl(computedPropertyNames47_ES5.ts, 0, 0)) +>x : E1, Symbol(E1.x, Decl(computedPropertyNames47_ES5.ts, 0, 9)) +>E2.x : E2, Symbol(E2.x, Decl(computedPropertyNames47_ES5.ts, 1, 9)) +>E2 : typeof E2, Symbol(E2, Decl(computedPropertyNames47_ES5.ts, 0, 13)) +>x : E2, Symbol(E2.x, Decl(computedPropertyNames47_ES5.ts, 1, 9)) +>0 : number }; diff --git a/tests/baselines/reference/computedPropertyNames47_ES6.types b/tests/baselines/reference/computedPropertyNames47_ES6.types index 840d77754cf..a808786a827 100644 --- a/tests/baselines/reference/computedPropertyNames47_ES6.types +++ b/tests/baselines/reference/computedPropertyNames47_ES6.types @@ -1,23 +1,24 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames47_ES6.ts === enum E1 { x } ->E1 : E1 ->x : E1 +>E1 : E1, Symbol(E1, Decl(computedPropertyNames47_ES6.ts, 0, 0)) +>x : E1, Symbol(E1.x, Decl(computedPropertyNames47_ES6.ts, 0, 9)) enum E2 { x } ->E2 : E2 ->x : E2 +>E2 : E2, Symbol(E2, Decl(computedPropertyNames47_ES6.ts, 0, 13)) +>x : E2, Symbol(E2.x, Decl(computedPropertyNames47_ES6.ts, 1, 9)) var o = { ->o : {} +>o : {}, Symbol(o, Decl(computedPropertyNames47_ES6.ts, 2, 3)) >{ [E1.x || E2.x]: 0} : {} [E1.x || E2.x]: 0 >E1.x || E2.x : E1 | E2 ->E1.x : E1 ->E1 : typeof E1 ->x : E1 ->E2.x : E2 ->E2 : typeof E2 ->x : E2 +>E1.x : E1, Symbol(E1.x, Decl(computedPropertyNames47_ES6.ts, 0, 9)) +>E1 : typeof E1, Symbol(E1, Decl(computedPropertyNames47_ES6.ts, 0, 0)) +>x : E1, Symbol(E1.x, Decl(computedPropertyNames47_ES6.ts, 0, 9)) +>E2.x : E2, Symbol(E2.x, Decl(computedPropertyNames47_ES6.ts, 1, 9)) +>E2 : typeof E2, Symbol(E2, Decl(computedPropertyNames47_ES6.ts, 0, 13)) +>x : E2, Symbol(E2.x, Decl(computedPropertyNames47_ES6.ts, 1, 9)) +>0 : number }; diff --git a/tests/baselines/reference/computedPropertyNames48_ES5.js b/tests/baselines/reference/computedPropertyNames48_ES5.js index 55b08ef8301..15123a98f30 100644 --- a/tests/baselines/reference/computedPropertyNames48_ES5.js +++ b/tests/baselines/reference/computedPropertyNames48_ES5.js @@ -25,11 +25,14 @@ var E; var a; extractIndexer((_a = {}, _a[a] = "", - _a)); // Should return string + _a +)); // Should return string extractIndexer((_b = {}, _b[E.x] = "", - _b)); // Should return string + _b +)); // Should return string extractIndexer((_c = {}, _c["" || 0] = "", - _c)); // Should return any (widened form of undefined) + _c +)); // Should return any (widened form of undefined) var _a, _b, _c; diff --git a/tests/baselines/reference/computedPropertyNames48_ES5.types b/tests/baselines/reference/computedPropertyNames48_ES5.types index 3ff4c966e89..ea0bb2887eb 100644 --- a/tests/baselines/reference/computedPropertyNames48_ES5.types +++ b/tests/baselines/reference/computedPropertyNames48_ES5.types @@ -1,47 +1,52 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames48_ES5.ts === declare function extractIndexer(p: { [n: number]: T }): T; ->extractIndexer : (p: { [n: number]: T; }) => T ->T : T ->p : { [n: number]: T; } ->n : number ->T : T ->T : T +>extractIndexer : (p: { [n: number]: T; }) => T, Symbol(extractIndexer, Decl(computedPropertyNames48_ES5.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNames48_ES5.ts, 0, 32)) +>p : { [n: number]: T; }, Symbol(p, Decl(computedPropertyNames48_ES5.ts, 0, 35)) +>n : number, Symbol(n, Decl(computedPropertyNames48_ES5.ts, 0, 41)) +>T : T, Symbol(T, Decl(computedPropertyNames48_ES5.ts, 0, 32)) +>T : T, Symbol(T, Decl(computedPropertyNames48_ES5.ts, 0, 32)) enum E { x } ->E : E ->x : E +>E : E, Symbol(E, Decl(computedPropertyNames48_ES5.ts, 0, 61)) +>x : E, Symbol(E.x, Decl(computedPropertyNames48_ES5.ts, 2, 8)) var a: any; ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames48_ES5.ts, 4, 3)) extractIndexer({ >extractIndexer({ [a]: ""}) : string ->extractIndexer : (p: { [n: number]: T; }) => T +>extractIndexer : (p: { [n: number]: T; }) => T, Symbol(extractIndexer, Decl(computedPropertyNames48_ES5.ts, 0, 0)) >{ [a]: ""} : { [x: number]: string; } [a]: "" ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames48_ES5.ts, 4, 3)) +>"" : string }); // Should return string extractIndexer({ >extractIndexer({ [E.x]: ""}) : string ->extractIndexer : (p: { [n: number]: T; }) => T +>extractIndexer : (p: { [n: number]: T; }) => T, Symbol(extractIndexer, Decl(computedPropertyNames48_ES5.ts, 0, 0)) >{ [E.x]: ""} : { [x: number]: string; } [E.x]: "" ->E.x : E ->E : typeof E ->x : E +>E.x : E, Symbol(E.x, Decl(computedPropertyNames48_ES5.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(computedPropertyNames48_ES5.ts, 0, 61)) +>x : E, Symbol(E.x, Decl(computedPropertyNames48_ES5.ts, 2, 8)) +>"" : string }); // Should return string extractIndexer({ >extractIndexer({ ["" || 0]: ""}) : any ->extractIndexer : (p: { [n: number]: T; }) => T +>extractIndexer : (p: { [n: number]: T; }) => T, Symbol(extractIndexer, Decl(computedPropertyNames48_ES5.ts, 0, 0)) >{ ["" || 0]: ""} : { [x: number]: undefined; } ["" || 0]: "" >"" || 0 : string | number +>"" : string +>0 : number +>"" : string }); // Should return any (widened form of undefined) diff --git a/tests/baselines/reference/computedPropertyNames48_ES6.types b/tests/baselines/reference/computedPropertyNames48_ES6.types index e10f078d11f..f418b24a103 100644 --- a/tests/baselines/reference/computedPropertyNames48_ES6.types +++ b/tests/baselines/reference/computedPropertyNames48_ES6.types @@ -1,47 +1,52 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames48_ES6.ts === declare function extractIndexer(p: { [n: number]: T }): T; ->extractIndexer : (p: { [n: number]: T; }) => T ->T : T ->p : { [n: number]: T; } ->n : number ->T : T ->T : T +>extractIndexer : (p: { [n: number]: T; }) => T, Symbol(extractIndexer, Decl(computedPropertyNames48_ES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNames48_ES6.ts, 0, 32)) +>p : { [n: number]: T; }, Symbol(p, Decl(computedPropertyNames48_ES6.ts, 0, 35)) +>n : number, Symbol(n, Decl(computedPropertyNames48_ES6.ts, 0, 41)) +>T : T, Symbol(T, Decl(computedPropertyNames48_ES6.ts, 0, 32)) +>T : T, Symbol(T, Decl(computedPropertyNames48_ES6.ts, 0, 32)) enum E { x } ->E : E ->x : E +>E : E, Symbol(E, Decl(computedPropertyNames48_ES6.ts, 0, 61)) +>x : E, Symbol(E.x, Decl(computedPropertyNames48_ES6.ts, 2, 8)) var a: any; ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames48_ES6.ts, 4, 3)) extractIndexer({ >extractIndexer({ [a]: ""}) : string ->extractIndexer : (p: { [n: number]: T; }) => T +>extractIndexer : (p: { [n: number]: T; }) => T, Symbol(extractIndexer, Decl(computedPropertyNames48_ES6.ts, 0, 0)) >{ [a]: ""} : { [x: number]: string; } [a]: "" ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames48_ES6.ts, 4, 3)) +>"" : string }); // Should return string extractIndexer({ >extractIndexer({ [E.x]: ""}) : string ->extractIndexer : (p: { [n: number]: T; }) => T +>extractIndexer : (p: { [n: number]: T; }) => T, Symbol(extractIndexer, Decl(computedPropertyNames48_ES6.ts, 0, 0)) >{ [E.x]: ""} : { [x: number]: string; } [E.x]: "" ->E.x : E ->E : typeof E ->x : E +>E.x : E, Symbol(E.x, Decl(computedPropertyNames48_ES6.ts, 2, 8)) +>E : typeof E, Symbol(E, Decl(computedPropertyNames48_ES6.ts, 0, 61)) +>x : E, Symbol(E.x, Decl(computedPropertyNames48_ES6.ts, 2, 8)) +>"" : string }); // Should return string extractIndexer({ >extractIndexer({ ["" || 0]: ""}) : any ->extractIndexer : (p: { [n: number]: T; }) => T +>extractIndexer : (p: { [n: number]: T; }) => T, Symbol(extractIndexer, Decl(computedPropertyNames48_ES6.ts, 0, 0)) >{ ["" || 0]: ""} : { [x: number]: undefined; } ["" || 0]: "" >"" || 0 : string | number +>"" : string +>0 : number +>"" : string }); // Should return any (widened form of undefined) diff --git a/tests/baselines/reference/computedPropertyNames49_ES5.js b/tests/baselines/reference/computedPropertyNames49_ES5.js index 5f952c6f3f1..3427ea665a0 100644 --- a/tests/baselines/reference/computedPropertyNames49_ES5.js +++ b/tests/baselines/reference/computedPropertyNames49_ES5.js @@ -27,24 +27,41 @@ var x = { //// [computedPropertyNames49_ES5.js] var x = (_a = { - p1: 10 -}, - _a.p1 = 10, - _a[1 + 1] = Object.defineProperty({ get: function () { + p1: 10 + }, + Object.defineProperty(_a, 1 + 1, { + get: function () { throw 10; - }, enumerable: true, configurable: true }), - _a[1 + 1] = Object.defineProperty({ get: function () { + }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, 1 + 1, { + get: function () { return 10; - }, enumerable: true, configurable: true }), - _a[1 + 1] = Object.defineProperty({ set: function () { + }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, 1 + 1, { + set: function () { // just throw throw 10; - }, enumerable: true, configurable: true }), - _a.foo = Object.defineProperty({ get: function () { + }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, "foo", { + get: function () { if (1 == 1) { return 10; } - }, enumerable: true, configurable: true }), + }, + enumerable: true, + configurable: true + }), + , _a.p2 = 20, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNames4_ES5.js b/tests/baselines/reference/computedPropertyNames4_ES5.js index ac0fa8ec937..f91476c79c1 100644 --- a/tests/baselines/reference/computedPropertyNames4_ES5.js +++ b/tests/baselines/reference/computedPropertyNames4_ES5.js @@ -32,5 +32,6 @@ var v = (_a = {}, _a[true] = 0, _a["hello bye"] = 0, _a["hello " + a + " bye"] = 0, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNames4_ES5.types b/tests/baselines/reference/computedPropertyNames4_ES5.types index 7c26cae6444..80ec753fe55 100644 --- a/tests/baselines/reference/computedPropertyNames4_ES5.types +++ b/tests/baselines/reference/computedPropertyNames4_ES5.types @@ -1,48 +1,65 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES5.ts === var s: string; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) var n: number; ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames4_ES5.ts, 1, 3)) var a: any; ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames4_ES5.ts, 2, 3)) var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNames4_ES5.ts, 3, 3)) >{ [s]: 0, [n]: n, [s + s]: 1, [s + n]: 2, [+s]: s, [""]: 0, [0]: 0, [a]: 1, [true]: 0, [`hello bye`]: 0, [`hello ${a} bye`]: 0} : {} [s]: 0, ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) +>0 : number [n]: n, ->n : number ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames4_ES5.ts, 1, 3)) +>n : number, Symbol(n, Decl(computedPropertyNames4_ES5.ts, 1, 3)) [s + s]: 1, >s + s : string ->s : string ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) +>s : string, Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) +>1 : number [s + n]: 2, >s + n : string ->s : string ->n : number +>s : string, Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) +>n : number, Symbol(n, Decl(computedPropertyNames4_ES5.ts, 1, 3)) +>2 : number [+s]: s, >+s : number ->s : string ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) +>s : string, Symbol(s, Decl(computedPropertyNames4_ES5.ts, 0, 3)) [""]: 0, +>"" : string +>0 : number + [0]: 0, +>0 : number +>0 : number + [a]: 1, ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames4_ES5.ts, 2, 3)) +>1 : number [true]: 0, >true : any +>true : boolean +>0 : number [`hello bye`]: 0, +>`hello bye` : string +>0 : number + [`hello ${a} bye`]: 0 ->a : any +>`hello ${a} bye` : string +>a : any, Symbol(a, Decl(computedPropertyNames4_ES5.ts, 2, 3)) +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNames4_ES6.types b/tests/baselines/reference/computedPropertyNames4_ES6.types index 973dfbec3a5..a09f57abd41 100644 --- a/tests/baselines/reference/computedPropertyNames4_ES6.types +++ b/tests/baselines/reference/computedPropertyNames4_ES6.types @@ -1,48 +1,65 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES6.ts === var s: string; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3)) var n: number; ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames4_ES6.ts, 1, 3)) var a: any; ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames4_ES6.ts, 2, 3)) var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNames4_ES6.ts, 3, 3)) >{ [s]: 0, [n]: n, [s + s]: 1, [s + n]: 2, [+s]: s, [""]: 0, [0]: 0, [a]: 1, [true]: 0, [`hello bye`]: 0, [`hello ${a} bye`]: 0} : {} [s]: 0, ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3)) +>0 : number [n]: n, ->n : number ->n : number +>n : number, Symbol(n, Decl(computedPropertyNames4_ES6.ts, 1, 3)) +>n : number, Symbol(n, Decl(computedPropertyNames4_ES6.ts, 1, 3)) [s + s]: 1, >s + s : string ->s : string ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3)) +>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3)) +>1 : number [s + n]: 2, >s + n : string ->s : string ->n : number +>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3)) +>n : number, Symbol(n, Decl(computedPropertyNames4_ES6.ts, 1, 3)) +>2 : number [+s]: s, >+s : number ->s : string ->s : string +>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3)) +>s : string, Symbol(s, Decl(computedPropertyNames4_ES6.ts, 0, 3)) [""]: 0, +>"" : string +>0 : number + [0]: 0, +>0 : number +>0 : number + [a]: 1, ->a : any +>a : any, Symbol(a, Decl(computedPropertyNames4_ES6.ts, 2, 3)) +>1 : number [true]: 0, >true : any +>true : boolean +>0 : number [`hello bye`]: 0, +>`hello bye` : string +>0 : number + [`hello ${a} bye`]: 0 ->a : any +>`hello ${a} bye` : string +>a : any, Symbol(a, Decl(computedPropertyNames4_ES6.ts, 2, 3)) +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNames50_ES5.js b/tests/baselines/reference/computedPropertyNames50_ES5.js index 32502d80e0a..a74561295be 100644 --- a/tests/baselines/reference/computedPropertyNames50_ES5.js +++ b/tests/baselines/reference/computedPropertyNames50_ES5.js @@ -27,29 +27,37 @@ var x = { //// [computedPropertyNames50_ES5.js] var x = (_a = { - p1: 10, - get foo() { - if (1 == 1) { - return 10; - } - } -}, - _a.p1 = 10, - _a.foo = Object.defineProperty({ get: function () { + p1: 10, + get foo() { if (1 == 1) { return 10; } - }, enumerable: true, configurable: true }), - _a[1 + 1] = Object.defineProperty({ get: function () { + } + }, + Object.defineProperty(_a, 1 + 1, { + get: function () { throw 10; - }, enumerable: true, configurable: true }), - _a[1 + 1] = Object.defineProperty({ set: function () { + }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, 1 + 1, { + set: function () { // just throw throw 10; - }, enumerable: true, configurable: true }), - _a[1 + 1] = Object.defineProperty({ get: function () { + }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, 1 + 1, { + get: function () { return 10; - }, enumerable: true, configurable: true }), + }, + enumerable: true, + configurable: true + }), + , _a.p2 = 20, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNames5_ES5.js b/tests/baselines/reference/computedPropertyNames5_ES5.js index 3367faa2c20..58c5af2efa3 100644 --- a/tests/baselines/reference/computedPropertyNames5_ES5.js +++ b/tests/baselines/reference/computedPropertyNames5_ES5.js @@ -18,5 +18,6 @@ var v = (_a = {}, _a[{}] = 0, _a[undefined] = undefined, _a[null] = null, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNames6_ES5.js b/tests/baselines/reference/computedPropertyNames6_ES5.js index 29d035bfcbf..7e9c6202940 100644 --- a/tests/baselines/reference/computedPropertyNames6_ES5.js +++ b/tests/baselines/reference/computedPropertyNames6_ES5.js @@ -16,5 +16,6 @@ var v = (_a = {}, _a[p1] = 0, _a[p2] = 1, _a[p3] = 2, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNames7_ES5.js b/tests/baselines/reference/computedPropertyNames7_ES5.js index 01cf2efc030..3311ec7e092 100644 --- a/tests/baselines/reference/computedPropertyNames7_ES5.js +++ b/tests/baselines/reference/computedPropertyNames7_ES5.js @@ -13,5 +13,6 @@ var E; })(E || (E = {})); var v = (_a = {}, _a[E.member] = 0, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNames7_ES5.types b/tests/baselines/reference/computedPropertyNames7_ES5.types index 209e07769c0..528ae45d0f3 100644 --- a/tests/baselines/reference/computedPropertyNames7_ES5.types +++ b/tests/baselines/reference/computedPropertyNames7_ES5.types @@ -1,16 +1,17 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames7_ES5.ts === enum E { ->E : E +>E : E, Symbol(E, Decl(computedPropertyNames7_ES5.ts, 0, 0)) member ->member : E +>member : E, Symbol(E.member, Decl(computedPropertyNames7_ES5.ts, 0, 8)) } var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNames7_ES5.ts, 3, 3)) >{ [E.member]: 0} : {} [E.member]: 0 ->E.member : E ->E : typeof E ->member : E +>E.member : E, Symbol(E.member, Decl(computedPropertyNames7_ES5.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(computedPropertyNames7_ES5.ts, 0, 0)) +>member : E, Symbol(E.member, Decl(computedPropertyNames7_ES5.ts, 0, 8)) +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNames7_ES6.types b/tests/baselines/reference/computedPropertyNames7_ES6.types index 371176acc16..5ff5ca1c0b3 100644 --- a/tests/baselines/reference/computedPropertyNames7_ES6.types +++ b/tests/baselines/reference/computedPropertyNames7_ES6.types @@ -1,16 +1,17 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNames7_ES6.ts === enum E { ->E : E +>E : E, Symbol(E, Decl(computedPropertyNames7_ES6.ts, 0, 0)) member ->member : E +>member : E, Symbol(E.member, Decl(computedPropertyNames7_ES6.ts, 0, 8)) } var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNames7_ES6.ts, 3, 3)) >{ [E.member]: 0} : {} [E.member]: 0 ->E.member : E ->E : typeof E ->member : E +>E.member : E, Symbol(E.member, Decl(computedPropertyNames7_ES6.ts, 0, 8)) +>E : typeof E, Symbol(E, Decl(computedPropertyNames7_ES6.ts, 0, 0)) +>member : E, Symbol(E.member, Decl(computedPropertyNames7_ES6.ts, 0, 8)) +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNames8_ES5.js b/tests/baselines/reference/computedPropertyNames8_ES5.js index 82d262c7e4e..6eceee81adb 100644 --- a/tests/baselines/reference/computedPropertyNames8_ES5.js +++ b/tests/baselines/reference/computedPropertyNames8_ES5.js @@ -15,6 +15,7 @@ function f() { var v = (_a = {}, _a[t] = 0, _a[u] = 1, - _a); + _a + ); var _a; } diff --git a/tests/baselines/reference/computedPropertyNames9_ES5.js b/tests/baselines/reference/computedPropertyNames9_ES5.js index b1ac6c9e3b6..6c1d7bcb4d0 100644 --- a/tests/baselines/reference/computedPropertyNames9_ES5.js +++ b/tests/baselines/reference/computedPropertyNames9_ES5.js @@ -16,5 +16,6 @@ var v = (_a = {}, _a[f("")] = 0, _a[f(0)] = 0, _a[f(true)] = 0, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType10_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5.js index d8a33951d4a..1f7a3ae123e 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType10_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType10_ES5.js @@ -12,5 +12,6 @@ var o: I = { var o = (_a = {}, _a[+"foo"] = "", _a[+"bar"] = 0, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js index 1ee88351154..c4bfde03531 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js @@ -13,5 +13,6 @@ var o: I = { var o = (_a = {}, _a["" + 0] = function (y) { return y.length; }, _a["" + 1] = function (y) { return y.length; }, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.types index ad7ddc30567..e11db2247ba 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.types @@ -1,33 +1,37 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType1_ES5.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType1_ES5.ts, 0, 0)) [s: string]: (x: string) => number; ->s : string ->x : string +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType1_ES5.ts, 1, 5)) +>x : string, Symbol(x, Decl(computedPropertyNamesContextualType1_ES5.ts, 1, 18)) [s: number]: (x: any) => number; // Doesn't get hit ->s : number ->x : any +>s : number, Symbol(s, Decl(computedPropertyNamesContextualType1_ES5.ts, 2, 5)) +>x : any, Symbol(x, Decl(computedPropertyNamesContextualType1_ES5.ts, 2, 18)) } var o: I = { ->o : I ->I : I +>o : I, Symbol(o, Decl(computedPropertyNamesContextualType1_ES5.ts, 5, 3)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType1_ES5.ts, 0, 0)) >{ ["" + 0](y) { return y.length; }, ["" + 1]: y => y.length} : { [x: string]: (y: string) => number; [x: number]: undefined; } ["" + 0](y) { return y.length; }, >"" + 0 : string ->y : string ->y.length : number ->y : string ->length : number +>"" : string +>0 : number +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType1_ES5.ts, 6, 13)) +>y.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType1_ES5.ts, 6, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) ["" + 1]: y => y.length >"" + 1 : string +>"" : string +>1 : number >y => y.length : (y: string) => number ->y : string ->y.length : number ->y : string ->length : number +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType1_ES5.ts, 7, 13)) +>y.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType1_ES5.ts, 7, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) } diff --git a/tests/baselines/reference/computedPropertyNamesContextualType1_ES6.types b/tests/baselines/reference/computedPropertyNamesContextualType1_ES6.types index 44bc8a51113..054d2a47cc7 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType1_ES6.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType1_ES6.types @@ -1,33 +1,37 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType1_ES6.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType1_ES6.ts, 0, 0)) [s: string]: (x: string) => number; ->s : string ->x : string +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType1_ES6.ts, 1, 5)) +>x : string, Symbol(x, Decl(computedPropertyNamesContextualType1_ES6.ts, 1, 18)) [s: number]: (x: any) => number; // Doesn't get hit ->s : number ->x : any +>s : number, Symbol(s, Decl(computedPropertyNamesContextualType1_ES6.ts, 2, 5)) +>x : any, Symbol(x, Decl(computedPropertyNamesContextualType1_ES6.ts, 2, 18)) } var o: I = { ->o : I ->I : I +>o : I, Symbol(o, Decl(computedPropertyNamesContextualType1_ES6.ts, 5, 3)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType1_ES6.ts, 0, 0)) >{ ["" + 0](y) { return y.length; }, ["" + 1]: y => y.length} : { [x: string]: (y: string) => number; [x: number]: undefined; } ["" + 0](y) { return y.length; }, >"" + 0 : string ->y : string ->y.length : number ->y : string ->length : number +>"" : string +>0 : number +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType1_ES6.ts, 6, 13)) +>y.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType1_ES6.ts, 6, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) ["" + 1]: y => y.length >"" + 1 : string +>"" : string +>1 : number >y => y.length : (y: string) => number ->y : string ->y.length : number ->y : string ->length : number +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType1_ES6.ts, 7, 13)) +>y.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType1_ES6.ts, 7, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) } diff --git a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js index 6be09e4bef3..945475f8533 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js @@ -13,5 +13,6 @@ var o: I = { var o = (_a = {}, _a[+"foo"] = function (y) { return y.length; }, _a[+"bar"] = function (y) { return y.length; }, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.types index 0c1b9490abe..3a76a2b5509 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.types @@ -1,33 +1,35 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType2_ES5.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType2_ES5.ts, 0, 0)) [s: string]: (x: any) => number; // Doesn't get hit ->s : string ->x : any +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType2_ES5.ts, 1, 5)) +>x : any, Symbol(x, Decl(computedPropertyNamesContextualType2_ES5.ts, 1, 18)) [s: number]: (x: string) => number; ->s : number ->x : string +>s : number, Symbol(s, Decl(computedPropertyNamesContextualType2_ES5.ts, 2, 5)) +>x : string, Symbol(x, Decl(computedPropertyNamesContextualType2_ES5.ts, 2, 18)) } var o: I = { ->o : I ->I : I +>o : I, Symbol(o, Decl(computedPropertyNamesContextualType2_ES5.ts, 5, 3)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType2_ES5.ts, 0, 0)) >{ [+"foo"](y) { return y.length; }, [+"bar"]: y => y.length} : { [x: string]: (y: string) => number; [x: number]: (y: string) => number; } [+"foo"](y) { return y.length; }, >+"foo" : number ->y : string ->y.length : number ->y : string ->length : number +>"foo" : string +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType2_ES5.ts, 6, 13)) +>y.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType2_ES5.ts, 6, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) [+"bar"]: y => y.length >+"bar" : number +>"bar" : string >y => y.length : (y: string) => number ->y : string ->y.length : number ->y : string ->length : number +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType2_ES5.ts, 7, 13)) +>y.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType2_ES5.ts, 7, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) } diff --git a/tests/baselines/reference/computedPropertyNamesContextualType2_ES6.types b/tests/baselines/reference/computedPropertyNamesContextualType2_ES6.types index 222004cf8e3..6825714b05f 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType2_ES6.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType2_ES6.types @@ -1,33 +1,35 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType2_ES6.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType2_ES6.ts, 0, 0)) [s: string]: (x: any) => number; // Doesn't get hit ->s : string ->x : any +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType2_ES6.ts, 1, 5)) +>x : any, Symbol(x, Decl(computedPropertyNamesContextualType2_ES6.ts, 1, 18)) [s: number]: (x: string) => number; ->s : number ->x : string +>s : number, Symbol(s, Decl(computedPropertyNamesContextualType2_ES6.ts, 2, 5)) +>x : string, Symbol(x, Decl(computedPropertyNamesContextualType2_ES6.ts, 2, 18)) } var o: I = { ->o : I ->I : I +>o : I, Symbol(o, Decl(computedPropertyNamesContextualType2_ES6.ts, 5, 3)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType2_ES6.ts, 0, 0)) >{ [+"foo"](y) { return y.length; }, [+"bar"]: y => y.length} : { [x: string]: (y: string) => number; [x: number]: (y: string) => number; } [+"foo"](y) { return y.length; }, >+"foo" : number ->y : string ->y.length : number ->y : string ->length : number +>"foo" : string +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType2_ES6.ts, 6, 13)) +>y.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType2_ES6.ts, 6, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) [+"bar"]: y => y.length >+"bar" : number +>"bar" : string >y => y.length : (y: string) => number ->y : string ->y.length : number ->y : string ->length : number +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType2_ES6.ts, 7, 13)) +>y.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType2_ES6.ts, 7, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) } diff --git a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js index b510cda2916..98042f201e3 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js @@ -12,5 +12,6 @@ var o: I = { var o = (_a = {}, _a[+"foo"] = function (y) { return y.length; }, _a[+"bar"] = function (y) { return y.length; }, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.types index 482d58c3ee0..fba6e0f8208 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.types @@ -1,29 +1,31 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType3_ES5.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType3_ES5.ts, 0, 0)) [s: string]: (x: string) => number; ->s : string ->x : string +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType3_ES5.ts, 1, 5)) +>x : string, Symbol(x, Decl(computedPropertyNamesContextualType3_ES5.ts, 1, 18)) } var o: I = { ->o : I ->I : I +>o : I, Symbol(o, Decl(computedPropertyNamesContextualType3_ES5.ts, 4, 3)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType3_ES5.ts, 0, 0)) >{ [+"foo"](y) { return y.length; }, [+"bar"]: y => y.length} : { [x: string]: (y: string) => number; } [+"foo"](y) { return y.length; }, >+"foo" : number ->y : string ->y.length : number ->y : string ->length : number +>"foo" : string +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType3_ES5.ts, 5, 13)) +>y.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType3_ES5.ts, 5, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) [+"bar"]: y => y.length >+"bar" : number +>"bar" : string >y => y.length : (y: string) => number ->y : string ->y.length : number ->y : string ->length : number +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType3_ES5.ts, 6, 13)) +>y.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType3_ES5.ts, 6, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) } diff --git a/tests/baselines/reference/computedPropertyNamesContextualType3_ES6.types b/tests/baselines/reference/computedPropertyNamesContextualType3_ES6.types index bc36ad8ae2c..d5900df7c49 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType3_ES6.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType3_ES6.types @@ -1,29 +1,31 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType3_ES6.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType3_ES6.ts, 0, 0)) [s: string]: (x: string) => number; ->s : string ->x : string +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType3_ES6.ts, 1, 5)) +>x : string, Symbol(x, Decl(computedPropertyNamesContextualType3_ES6.ts, 1, 18)) } var o: I = { ->o : I ->I : I +>o : I, Symbol(o, Decl(computedPropertyNamesContextualType3_ES6.ts, 4, 3)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType3_ES6.ts, 0, 0)) >{ [+"foo"](y) { return y.length; }, [+"bar"]: y => y.length} : { [x: string]: (y: string) => number; } [+"foo"](y) { return y.length; }, >+"foo" : number ->y : string ->y.length : number ->y : string ->length : number +>"foo" : string +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType3_ES6.ts, 5, 13)) +>y.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType3_ES6.ts, 5, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) [+"bar"]: y => y.length >+"bar" : number +>"bar" : string >y => y.length : (y: string) => number ->y : string ->y.length : number ->y : string ->length : number +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType3_ES6.ts, 6, 13)) +>y.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>y : string, Symbol(y, Decl(computedPropertyNamesContextualType3_ES6.ts, 6, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) } diff --git a/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.js index 0c319a526f4..b17f91be38b 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.js @@ -13,5 +13,6 @@ var o: I = { var o = (_a = {}, _a["" + "foo"] = "", _a["" + "bar"] = 0, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.types index c1662397527..a034322b84d 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType4_ES5.types @@ -1,22 +1,28 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType4_ES5.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType4_ES5.ts, 0, 0)) [s: string]: any; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType4_ES5.ts, 1, 5)) [s: number]: any; ->s : number +>s : number, Symbol(s, Decl(computedPropertyNamesContextualType4_ES5.ts, 2, 5)) } var o: I = { ->o : I ->I : I +>o : I, Symbol(o, Decl(computedPropertyNamesContextualType4_ES5.ts, 5, 3)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType4_ES5.ts, 0, 0)) >{ [""+"foo"]: "", [""+"bar"]: 0} : { [x: string]: string | number; [x: number]: undefined; } [""+"foo"]: "", >""+"foo" : string +>"" : string +>"foo" : string +>"" : string [""+"bar"]: 0 >""+"bar" : string +>"" : string +>"bar" : string +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNamesContextualType4_ES6.types b/tests/baselines/reference/computedPropertyNamesContextualType4_ES6.types index 82424f9410c..f6caaab0cc7 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType4_ES6.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType4_ES6.types @@ -1,22 +1,28 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType4_ES6.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType4_ES6.ts, 0, 0)) [s: string]: any; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType4_ES6.ts, 1, 5)) [s: number]: any; ->s : number +>s : number, Symbol(s, Decl(computedPropertyNamesContextualType4_ES6.ts, 2, 5)) } var o: I = { ->o : I ->I : I +>o : I, Symbol(o, Decl(computedPropertyNamesContextualType4_ES6.ts, 5, 3)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType4_ES6.ts, 0, 0)) >{ [""+"foo"]: "", [""+"bar"]: 0} : { [x: string]: string | number; [x: number]: undefined; } [""+"foo"]: "", >""+"foo" : string +>"" : string +>"foo" : string +>"" : string [""+"bar"]: 0 >""+"bar" : string +>"" : string +>"bar" : string +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNamesContextualType5_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5.js index 51d78be59d4..c7a728e5ef8 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType5_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5.js @@ -13,5 +13,6 @@ var o: I = { var o = (_a = {}, _a[+"foo"] = "", _a[+"bar"] = 0, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType5_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5.types index bb382ca136e..71c7d6e90df 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType5_ES5.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType5_ES5.types @@ -1,22 +1,26 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType5_ES5.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType5_ES5.ts, 0, 0)) [s: string]: any; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType5_ES5.ts, 1, 5)) [s: number]: any; ->s : number +>s : number, Symbol(s, Decl(computedPropertyNamesContextualType5_ES5.ts, 2, 5)) } var o: I = { ->o : I ->I : I +>o : I, Symbol(o, Decl(computedPropertyNamesContextualType5_ES5.ts, 5, 3)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType5_ES5.ts, 0, 0)) >{ [+"foo"]: "", [+"bar"]: 0} : { [x: string]: string | number; [x: number]: string | number; } [+"foo"]: "", >+"foo" : number +>"foo" : string +>"" : string [+"bar"]: 0 >+"bar" : number +>"bar" : string +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNamesContextualType5_ES6.types b/tests/baselines/reference/computedPropertyNamesContextualType5_ES6.types index 6ab28f9583d..5315e5d88d7 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType5_ES6.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType5_ES6.types @@ -1,22 +1,26 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType5_ES6.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType5_ES6.ts, 0, 0)) [s: string]: any; ->s : string +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType5_ES6.ts, 1, 5)) [s: number]: any; ->s : number +>s : number, Symbol(s, Decl(computedPropertyNamesContextualType5_ES6.ts, 2, 5)) } var o: I = { ->o : I ->I : I +>o : I, Symbol(o, Decl(computedPropertyNamesContextualType5_ES6.ts, 5, 3)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType5_ES6.ts, 0, 0)) >{ [+"foo"]: "", [+"bar"]: 0} : { [x: string]: string | number; [x: number]: string | number; } [+"foo"]: "", >+"foo" : number +>"foo" : string +>"" : string [+"bar"]: 0 >+"bar" : number +>"bar" : string +>0 : number } diff --git a/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.js index f50231e3f0f..c97b7c5b1f8 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.js @@ -15,13 +15,12 @@ foo({ //// [computedPropertyNamesContextualType6_ES5.js] foo((_a = { - p: "", - 0: function () { } -}, - _a.p = "", - _a[0] = function () { }, + p: "", + 0: function () { } + }, _a["hi" + "bye"] = true, _a[0 + 1] = 0, _a[+"hi"] = [0], - _a)); + _a +)); var _a; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.types index 2e16c7cb140..4b9727081a8 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.types @@ -1,40 +1,49 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType6_ES5.ts === interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 12)) [s: string]: T; ->s : string ->T : T +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType6_ES5.ts, 1, 5)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 12)) } declare function foo(obj: I): T ->foo : (obj: I) => T ->T : T ->obj : I ->I : I ->T : T ->T : T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType6_ES5.ts, 2, 1)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 21)) +>obj : I, Symbol(obj, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 24)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 21)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 21)) foo({ >foo({ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]}) : string | number | boolean | number[] | (() => void) ->foo : (obj: I) => T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType6_ES5.ts, 2, 1)) >{ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]} : { [x: string]: string | number | boolean | number[] | (() => void); 0: () => void; p: string; } p: "", ->p : string +>p : string, Symbol(p, Decl(computedPropertyNamesContextualType6_ES5.ts, 6, 5)) +>"" : string 0: () => { }, >() => { } : () => void ["hi" + "bye"]: true, >"hi" + "bye" : string +>"hi" : string +>"bye" : string +>true : boolean [0 + 1]: 0, >0 + 1 : number +>0 : number +>1 : number +>0 : number [+"hi"]: [0] >+"hi" : number +>"hi" : string >[0] : number[] +>0 : number }); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.types.pull b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.types.pull index ce7a4c0d026..d7264083d44 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.types.pull +++ b/tests/baselines/reference/computedPropertyNamesContextualType6_ES5.types.pull @@ -1,40 +1,49 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType6_ES5.ts === interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 12)) [s: string]: T; ->s : string ->T : T +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType6_ES5.ts, 1, 5)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 12)) } declare function foo(obj: I): T ->foo : (obj: I) => T ->T : T ->obj : I ->I : I ->T : T ->T : T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType6_ES5.ts, 2, 1)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 21)) +>obj : I, Symbol(obj, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 24)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType6_ES5.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 21)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES5.ts, 4, 21)) foo({ >foo({ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]}) : string | number | boolean | (() => void) | number[] ->foo : (obj: I) => T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType6_ES5.ts, 2, 1)) >{ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]} : { [x: string]: string | number | boolean | (() => void) | number[]; 0: () => void; p: string; } p: "", ->p : string +>p : string, Symbol(p, Decl(computedPropertyNamesContextualType6_ES5.ts, 6, 5)) +>"" : string 0: () => { }, >() => { } : () => void ["hi" + "bye"]: true, >"hi" + "bye" : string +>"hi" : string +>"bye" : string +>true : boolean [0 + 1]: 0, >0 + 1 : number +>0 : number +>1 : number +>0 : number [+"hi"]: [0] >+"hi" : number +>"hi" : string >[0] : number[] +>0 : number }); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType6_ES6.types b/tests/baselines/reference/computedPropertyNamesContextualType6_ES6.types index 1684bfc573f..020aed6c4aa 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType6_ES6.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType6_ES6.types @@ -1,40 +1,49 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType6_ES6.ts === interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType6_ES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES6.ts, 0, 12)) [s: string]: T; ->s : string ->T : T +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType6_ES6.ts, 1, 5)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES6.ts, 0, 12)) } declare function foo(obj: I): T ->foo : (obj: I) => T ->T : T ->obj : I ->I : I ->T : T ->T : T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType6_ES6.ts, 2, 1)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES6.ts, 4, 21)) +>obj : I, Symbol(obj, Decl(computedPropertyNamesContextualType6_ES6.ts, 4, 24)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType6_ES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES6.ts, 4, 21)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES6.ts, 4, 21)) foo({ >foo({ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]}) : string | number | boolean | number[] | (() => void) ->foo : (obj: I) => T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType6_ES6.ts, 2, 1)) >{ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]} : { [x: string]: string | number | boolean | number[] | (() => void); 0: () => void; p: string; } p: "", ->p : string +>p : string, Symbol(p, Decl(computedPropertyNamesContextualType6_ES6.ts, 6, 5)) +>"" : string 0: () => { }, >() => { } : () => void ["hi" + "bye"]: true, >"hi" + "bye" : string +>"hi" : string +>"bye" : string +>true : boolean [0 + 1]: 0, >0 + 1 : number +>0 : number +>1 : number +>0 : number [+"hi"]: [0] >+"hi" : number +>"hi" : string >[0] : number[] +>0 : number }); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType6_ES6.types.pull b/tests/baselines/reference/computedPropertyNamesContextualType6_ES6.types.pull index 6722edacd64..ec7aa64f436 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType6_ES6.types.pull +++ b/tests/baselines/reference/computedPropertyNamesContextualType6_ES6.types.pull @@ -1,40 +1,49 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType6_ES6.ts === interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType6_ES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES6.ts, 0, 12)) [s: string]: T; ->s : string ->T : T +>s : string, Symbol(s, Decl(computedPropertyNamesContextualType6_ES6.ts, 1, 5)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES6.ts, 0, 12)) } declare function foo(obj: I): T ->foo : (obj: I) => T ->T : T ->obj : I ->I : I ->T : T ->T : T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType6_ES6.ts, 2, 1)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES6.ts, 4, 21)) +>obj : I, Symbol(obj, Decl(computedPropertyNamesContextualType6_ES6.ts, 4, 24)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType6_ES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES6.ts, 4, 21)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType6_ES6.ts, 4, 21)) foo({ >foo({ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]}) : string | number | boolean | (() => void) | number[] ->foo : (obj: I) => T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType6_ES6.ts, 2, 1)) >{ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]} : { [x: string]: string | number | boolean | (() => void) | number[]; 0: () => void; p: string; } p: "", ->p : string +>p : string, Symbol(p, Decl(computedPropertyNamesContextualType6_ES6.ts, 6, 5)) +>"" : string 0: () => { }, >() => { } : () => void ["hi" + "bye"]: true, >"hi" + "bye" : string +>"hi" : string +>"bye" : string +>true : boolean [0 + 1]: 0, >0 + 1 : number +>0 : number +>1 : number +>0 : number [+"hi"]: [0] >+"hi" : number +>"hi" : string >[0] : number[] +>0 : number }); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.js index e1c567c62d9..9ca7e826aa7 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.js @@ -15,13 +15,12 @@ foo({ //// [computedPropertyNamesContextualType7_ES5.js] foo((_a = { - p: "", - 0: function () { } -}, - _a.p = "", - _a[0] = function () { }, + p: "", + 0: function () { } + }, _a["hi" + "bye"] = true, _a[0 + 1] = 0, _a[+"hi"] = [0], - _a)); + _a +)); var _a; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.types b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.types index 80ba2b9224f..88ae6369146 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.types @@ -1,40 +1,49 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType7_ES5.ts === interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 12)) [s: number]: T; ->s : number ->T : T +>s : number, Symbol(s, Decl(computedPropertyNamesContextualType7_ES5.ts, 1, 5)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 12)) } declare function foo(obj: I): T ->foo : (obj: I) => T ->T : T ->obj : I ->I : I ->T : T ->T : T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType7_ES5.ts, 2, 1)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 21)) +>obj : I, Symbol(obj, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 24)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 21)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 21)) foo({ >foo({ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]}) : number | number[] | (() => void) ->foo : (obj: I) => T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType7_ES5.ts, 2, 1)) >{ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]} : { [x: number]: number | number[] | (() => void); 0: () => void; p: string; } p: "", ->p : string +>p : string, Symbol(p, Decl(computedPropertyNamesContextualType7_ES5.ts, 6, 5)) +>"" : string 0: () => { }, >() => { } : () => void ["hi" + "bye"]: true, >"hi" + "bye" : string +>"hi" : string +>"bye" : string +>true : boolean [0 + 1]: 0, >0 + 1 : number +>0 : number +>1 : number +>0 : number [+"hi"]: [0] >+"hi" : number +>"hi" : string >[0] : number[] +>0 : number }); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.types.pull b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.types.pull index 3511e913585..061c37072cf 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.types.pull +++ b/tests/baselines/reference/computedPropertyNamesContextualType7_ES5.types.pull @@ -1,40 +1,49 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType7_ES5.ts === interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 12)) [s: number]: T; ->s : number ->T : T +>s : number, Symbol(s, Decl(computedPropertyNamesContextualType7_ES5.ts, 1, 5)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 12)) } declare function foo(obj: I): T ->foo : (obj: I) => T ->T : T ->obj : I ->I : I ->T : T ->T : T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType7_ES5.ts, 2, 1)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 21)) +>obj : I, Symbol(obj, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 24)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType7_ES5.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 21)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES5.ts, 4, 21)) foo({ >foo({ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]}) : number | (() => void) | number[] ->foo : (obj: I) => T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType7_ES5.ts, 2, 1)) >{ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]} : { [x: number]: number | (() => void) | number[]; 0: () => void; p: string; } p: "", ->p : string +>p : string, Symbol(p, Decl(computedPropertyNamesContextualType7_ES5.ts, 6, 5)) +>"" : string 0: () => { }, >() => { } : () => void ["hi" + "bye"]: true, >"hi" + "bye" : string +>"hi" : string +>"bye" : string +>true : boolean [0 + 1]: 0, >0 + 1 : number +>0 : number +>1 : number +>0 : number [+"hi"]: [0] >+"hi" : number +>"hi" : string >[0] : number[] +>0 : number }); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType7_ES6.types b/tests/baselines/reference/computedPropertyNamesContextualType7_ES6.types index c9ed4437760..4a0268438c2 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType7_ES6.types +++ b/tests/baselines/reference/computedPropertyNamesContextualType7_ES6.types @@ -1,40 +1,49 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType7_ES6.ts === interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType7_ES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 0, 12)) [s: number]: T; ->s : number ->T : T +>s : number, Symbol(s, Decl(computedPropertyNamesContextualType7_ES6.ts, 1, 5)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 0, 12)) } declare function foo(obj: I): T ->foo : (obj: I) => T ->T : T ->obj : I ->I : I ->T : T ->T : T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType7_ES6.ts, 2, 1)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 4, 21)) +>obj : I, Symbol(obj, Decl(computedPropertyNamesContextualType7_ES6.ts, 4, 24)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType7_ES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 4, 21)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 4, 21)) foo({ >foo({ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]}) : number | number[] | (() => void) ->foo : (obj: I) => T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType7_ES6.ts, 2, 1)) >{ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]} : { [x: number]: number | number[] | (() => void); 0: () => void; p: string; } p: "", ->p : string +>p : string, Symbol(p, Decl(computedPropertyNamesContextualType7_ES6.ts, 6, 5)) +>"" : string 0: () => { }, >() => { } : () => void ["hi" + "bye"]: true, >"hi" + "bye" : string +>"hi" : string +>"bye" : string +>true : boolean [0 + 1]: 0, >0 + 1 : number +>0 : number +>1 : number +>0 : number [+"hi"]: [0] >+"hi" : number +>"hi" : string >[0] : number[] +>0 : number }); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType7_ES6.types.pull b/tests/baselines/reference/computedPropertyNamesContextualType7_ES6.types.pull index c548aed2bae..5bc5139cdff 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType7_ES6.types.pull +++ b/tests/baselines/reference/computedPropertyNamesContextualType7_ES6.types.pull @@ -1,40 +1,49 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType7_ES6.ts === interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType7_ES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 0, 12)) [s: number]: T; ->s : number ->T : T +>s : number, Symbol(s, Decl(computedPropertyNamesContextualType7_ES6.ts, 1, 5)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 0, 12)) } declare function foo(obj: I): T ->foo : (obj: I) => T ->T : T ->obj : I ->I : I ->T : T ->T : T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType7_ES6.ts, 2, 1)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 4, 21)) +>obj : I, Symbol(obj, Decl(computedPropertyNamesContextualType7_ES6.ts, 4, 24)) +>I : I, Symbol(I, Decl(computedPropertyNamesContextualType7_ES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 4, 21)) +>T : T, Symbol(T, Decl(computedPropertyNamesContextualType7_ES6.ts, 4, 21)) foo({ >foo({ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]}) : number | (() => void) | number[] ->foo : (obj: I) => T +>foo : (obj: I) => T, Symbol(foo, Decl(computedPropertyNamesContextualType7_ES6.ts, 2, 1)) >{ p: "", 0: () => { }, ["hi" + "bye"]: true, [0 + 1]: 0, [+"hi"]: [0]} : { [x: number]: number | (() => void) | number[]; 0: () => void; p: string; } p: "", ->p : string +>p : string, Symbol(p, Decl(computedPropertyNamesContextualType7_ES6.ts, 6, 5)) +>"" : string 0: () => { }, >() => { } : () => void ["hi" + "bye"]: true, >"hi" + "bye" : string +>"hi" : string +>"bye" : string +>true : boolean [0 + 1]: 0, >0 + 1 : number +>0 : number +>1 : number +>0 : number [+"hi"]: [0] >+"hi" : number +>"hi" : string >[0] : number[] +>0 : number }); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType8_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5.js index 24f6218864c..419ea906550 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType8_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType8_ES5.js @@ -13,5 +13,6 @@ var o: I = { var o = (_a = {}, _a["" + "foo"] = "", _a["" + "bar"] = 0, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType9_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5.js index 340802da2af..d3beb8b8deb 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType9_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType9_ES5.js @@ -13,5 +13,6 @@ var o: I = { var o = (_a = {}, _a[+"foo"] = "", _a[+"bar"] = 0, - _a); + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.types index a5fe3dc0fa1..e8677609be1 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.types +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.types @@ -1,14 +1,21 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES5.ts === class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNamesDeclarationEmit1_ES5.ts, 0, 0)) ["" + ""]() { } >"" + "" : string +>"" : string +>"" : string get ["" + ""]() { return 0; } >"" + "" : string +>"" : string +>"" : string +>0 : number set ["" + ""](x) { } >"" + "" : string ->x : any +>"" : string +>"" : string +>x : any, Symbol(x, Decl(computedPropertyNamesDeclarationEmit1_ES5.ts, 3, 18)) } diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES6.types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES6.types index a48c85f8602..b334fa1f707 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES6.types +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES6.types @@ -1,14 +1,21 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit1_ES6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNamesDeclarationEmit1_ES6.ts, 0, 0)) ["" + ""]() { } >"" + "" : string +>"" : string +>"" : string get ["" + ""]() { return 0; } >"" + "" : string +>"" : string +>"" : string +>0 : number set ["" + ""](x) { } >"" + "" : string ->x : any +>"" : string +>"" : string +>x : any, Symbol(x, Decl(computedPropertyNamesDeclarationEmit1_ES6.ts, 3, 18)) } diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.types index 949d82596c7..a562e36b51b 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.types +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES5.types @@ -1,14 +1,21 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES5.ts === class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNamesDeclarationEmit2_ES5.ts, 0, 0)) static ["" + ""]() { } >"" + "" : string +>"" : string +>"" : string static get ["" + ""]() { return 0; } >"" + "" : string +>"" : string +>"" : string +>0 : number static set ["" + ""](x) { } >"" + "" : string ->x : any +>"" : string +>"" : string +>x : any, Symbol(x, Decl(computedPropertyNamesDeclarationEmit2_ES5.ts, 3, 25)) } diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES6.types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES6.types index eec55608a08..f99c7b6507a 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES6.types +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit2_ES6.types @@ -1,14 +1,21 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNamesDeclarationEmit2_ES6.ts, 0, 0)) static ["" + ""]() { } >"" + "" : string +>"" : string +>"" : string static get ["" + ""]() { return 0; } >"" + "" : string +>"" : string +>"" : string +>0 : number static set ["" + ""](x) { } >"" + "" : string ->x : any +>"" : string +>"" : string +>x : any, Symbol(x, Decl(computedPropertyNamesDeclarationEmit2_ES6.ts, 3, 25)) } diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js index 58c3133e6ee..e77eb79dc70 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js @@ -10,9 +10,18 @@ var v = { var v = (_a = {}, _a["" + ""] = 0, _a["" + ""] = function () { }, - _a["" + ""] = Object.defineProperty({ get: function () { return 0; }, enumerable: true, configurable: true }), - _a["" + ""] = Object.defineProperty({ set: function (x) { }, enumerable: true, configurable: true }), - _a); + Object.defineProperty(_a, "" + "", { + get: function () { return 0; }, + enumerable: true, + configurable: true + }), + Object.defineProperty(_a, "" + "", { + set: function (x) { }, + enumerable: true, + configurable: true + }), + _a +); var _a; diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.types index 3f5a7355a20..91439abf7b2 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.types +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.types @@ -1,18 +1,28 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES5.ts === var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNamesDeclarationEmit5_ES5.ts, 0, 3)) >{ ["" + ""]: 0, ["" + ""]() { }, get ["" + ""]() { return 0; }, set ["" + ""](x) { }} : {} ["" + ""]: 0, >"" + "" : string +>"" : string +>"" : string +>0 : number ["" + ""]() { }, >"" + "" : string +>"" : string +>"" : string get ["" + ""]() { return 0; }, >"" + "" : string +>"" : string +>"" : string +>0 : number set ["" + ""](x) { } >"" + "" : string ->x : any +>"" : string +>"" : string +>x : any, Symbol(x, Decl(computedPropertyNamesDeclarationEmit5_ES5.ts, 4, 18)) } diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES6.types b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES6.types index 10b70587e32..8a8cf82ff96 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES6.types +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES6.types @@ -1,18 +1,28 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES6.ts === var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNamesDeclarationEmit5_ES6.ts, 0, 3)) >{ ["" + ""]: 0, ["" + ""]() { }, get ["" + ""]() { return 0; }, set ["" + ""](x) { }} : {} ["" + ""]: 0, >"" + "" : string +>"" : string +>"" : string +>0 : number ["" + ""]() { }, >"" + "" : string +>"" : string +>"" : string get ["" + ""]() { return 0; }, >"" + "" : string +>"" : string +>"" : string +>0 : number set ["" + ""](x) { } >"" + "" : string ->x : any +>"" : string +>"" : string +>x : any, Symbol(x, Decl(computedPropertyNamesDeclarationEmit5_ES6.ts, 4, 18)) } diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.types b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.types index 1c57d97a7e8..e8fb7b32953 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.types +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.types @@ -1,8 +1,10 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap1_ES5.ts === class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNamesSourceMap1_ES5.ts, 0, 0)) ["hello"]() { +>"hello" : string + debugger; } } diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES6.types b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES6.types index d5dc8a857a0..6f530a266f9 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES6.types +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES6.types @@ -1,8 +1,10 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap1_ES6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNamesSourceMap1_ES6.ts, 0, 0)) ["hello"]() { +>"hello" : string + debugger; } } diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js index 972aaf9b52f..39e393c46cc 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js @@ -10,6 +10,7 @@ var v = (_a = {}, _a["hello"] = function () { debugger; }, - _a); + _a +); var _a; //# sourceMappingURL=computedPropertyNamesSourceMap2_ES5.js.map \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map index 413c98fa456..d36428a0379 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map @@ -1,2 +1,2 @@ //// [computedPropertyNamesSourceMap2_ES5.js.map] -{"version":3,"file":"computedPropertyNamesSourceMap2_ES5.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap2_ES5.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG;OACH,OAAO;QACJ,QAAQ,CAAC;IACb,CAAC;OACJ,CAAA"} \ No newline at end of file +{"version":3,"file":"computedPropertyNamesSourceMap2_ES5.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap2_ES5.ts"],"names":["[\"hello\"]"],"mappings":"AAAA,IAAI,CAAC,GAAG;IACJ,GAAC,OAAO,CAAC;QACLA,QAAQA,CAACA;IACbA,CAACA;;CACJ,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt index 03eec606718..74d69f566a0 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt @@ -24,45 +24,53 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts 4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0) --- >>> _a["hello"] = function () { -1->^^^^^^^ -2 > ^^^^^^^ -3 > ^^^^-> +1->^^^^ +2 > ^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^-> 1->{ - > [ -2 > "hello" -1->Emitted(2, 8) Source(2, 6) + SourceIndex(0) -2 >Emitted(2, 15) Source(2, 13) + SourceIndex(0) + > +2 > [ +3 > "hello" +4 > ] +1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 8) Source(2, 6) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 13) + SourceIndex(0) +4 >Emitted(2, 16) Source(2, 14) + SourceIndex(0) --- >>> debugger; 1->^^^^^^^^ 2 > ^^^^^^^^ 3 > ^ -1->]() { +1->() { > 2 > debugger 3 > ; -1->Emitted(3, 9) Source(3, 9) + SourceIndex(0) -2 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) -3 >Emitted(3, 18) Source(3, 18) + SourceIndex(0) +1->Emitted(3, 9) Source(3, 9) + SourceIndex(0) name (["hello"]) +2 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) name (["hello"]) +3 >Emitted(3, 18) Source(3, 18) + SourceIndex(0) name (["hello"]) --- >>> }, 1 >^^^^ 2 > ^ -3 > ^^^^-> +3 > ^^-> 1 > > 2 > } -1 >Emitted(4, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(4, 6) Source(4, 6) + SourceIndex(0) +1 >Emitted(4, 5) Source(4, 5) + SourceIndex(0) name (["hello"]) +2 >Emitted(4, 6) Source(4, 6) + SourceIndex(0) name (["hello"]) --- ->>> _a); -1->^^^^^^^ -2 > ^ +>>> _a +>>>); +1->^ +2 > ^ +3 > ^^^^^^-> 1-> >} -2 > -1->Emitted(5, 8) Source(5, 2) + SourceIndex(0) -2 >Emitted(5, 9) Source(5, 2) + SourceIndex(0) +2 > +1->Emitted(6, 2) Source(5, 2) + SourceIndex(0) +2 >Emitted(6, 3) Source(5, 2) + SourceIndex(0) --- >>>var _a; >>>//# sourceMappingURL=computedPropertyNamesSourceMap2_ES5.js.map \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.types b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.types index 1dcc49a8fae..c6da97ee706 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.types +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.types @@ -1,9 +1,11 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap2_ES5.ts === var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNamesSourceMap2_ES5.ts, 0, 3)) >{ ["hello"]() { debugger; }} : {} ["hello"]() { +>"hello" : string + debugger; } } diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES6.types b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES6.types index 9a1c71364a2..e39193ce238 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES6.types +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES6.types @@ -1,9 +1,11 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap2_ES6.ts === var v = { ->v : {} +>v : {}, Symbol(v, Decl(computedPropertyNamesSourceMap2_ES6.ts, 0, 3)) >{ ["hello"]() { debugger; }} : {} ["hello"]() { +>"hello" : string + debugger; } } diff --git a/tests/baselines/reference/computedPropertyNamesWithStaticProperty.types b/tests/baselines/reference/computedPropertyNamesWithStaticProperty.types index b23d986f894..463a8eefa03 100644 --- a/tests/baselines/reference/computedPropertyNamesWithStaticProperty.types +++ b/tests/baselines/reference/computedPropertyNamesWithStaticProperty.types @@ -1,29 +1,31 @@ === tests/cases/conformance/es6/computedProperties/computedPropertyNamesWithStaticProperty.ts === class C { ->C : C +>C : C, Symbol(C, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0)) static staticProp = 10; ->staticProp : number +>staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) +>10 : number get [C.staticProp]() { ->C.staticProp : number ->C : typeof C ->staticProp : number +>C.staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) +>C : typeof C, Symbol(C, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0)) +>staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) return "hello"; +>"hello" : string } set [C.staticProp](x: string) { ->C.staticProp : number ->C : typeof C ->staticProp : number ->x : string +>C.staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) +>C : typeof C, Symbol(C, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0)) +>staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) +>x : string, Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 5, 23)) var y = x; ->y : string ->x : string +>y : string, Symbol(y, Decl(computedPropertyNamesWithStaticProperty.ts, 6, 11)) +>x : string, Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 5, 23)) } [C.staticProp]() { } ->C.staticProp : number ->C : typeof C ->staticProp : number +>C.staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) +>C : typeof C, Symbol(C, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0)) +>staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9)) } diff --git a/tests/baselines/reference/concatError.types b/tests/baselines/reference/concatError.types index 46d74cfb6ec..3f51b29450d 100644 --- a/tests/baselines/reference/concatError.types +++ b/tests/baselines/reference/concatError.types @@ -1,7 +1,7 @@ === tests/cases/compiler/concatError.ts === var n1: number[]; ->n1 : number[] +>n1 : number[], Symbol(n1, Decl(concatError.ts, 1, 3)) /* interface Array { @@ -10,24 +10,26 @@ interface Array { } */ var fa: number[]; ->fa : number[] +>fa : number[], Symbol(fa, Decl(concatError.ts, 8, 3)) fa = fa.concat([0]); >fa = fa.concat([0]) : number[] ->fa : number[] +>fa : number[], Symbol(fa, Decl(concatError.ts, 8, 3)) >fa.concat([0]) : number[] ->fa.concat : { (...items: U[]): number[]; (...items: number[]): number[]; } ->fa : number[] ->concat : { (...items: U[]): number[]; (...items: number[]): number[]; } +>fa.concat : { (...items: U[]): number[]; (...items: number[]): number[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) +>fa : number[], Symbol(fa, Decl(concatError.ts, 8, 3)) +>concat : { (...items: U[]): number[]; (...items: number[]): number[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) >[0] : number[] +>0 : number fa = fa.concat(0); >fa = fa.concat(0) : number[] ->fa : number[] +>fa : number[], Symbol(fa, Decl(concatError.ts, 8, 3)) >fa.concat(0) : number[] ->fa.concat : { (...items: U[]): number[]; (...items: number[]): number[]; } ->fa : number[] ->concat : { (...items: U[]): number[]; (...items: number[]): number[]; } +>fa.concat : { (...items: U[]): number[]; (...items: number[]): number[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) +>fa : number[], Symbol(fa, Decl(concatError.ts, 8, 3)) +>concat : { (...items: U[]): number[]; (...items: number[]): number[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) +>0 : number diff --git a/tests/baselines/reference/conditionalExpressions2.types b/tests/baselines/reference/conditionalExpressions2.types index 7fa483ad348..16164594557 100644 --- a/tests/baselines/reference/conditionalExpressions2.types +++ b/tests/baselines/reference/conditionalExpressions2.types @@ -1,44 +1,68 @@ === tests/cases/compiler/conditionalExpressions2.ts === var a = false ? 1 : null; ->a : number +>a : number, Symbol(a, Decl(conditionalExpressions2.ts, 0, 3)) >false ? 1 : null : number +>false : boolean +>1 : number +>null : null var b = false ? undefined : 0; ->b : number +>b : number, Symbol(b, Decl(conditionalExpressions2.ts, 1, 3)) >false ? undefined : 0 : number ->undefined : undefined +>false : boolean +>undefined : undefined, Symbol(undefined) +>0 : number var c = false ? 1 : 0; ->c : number +>c : number, Symbol(c, Decl(conditionalExpressions2.ts, 2, 3)) >false ? 1 : 0 : number +>false : boolean +>1 : number +>0 : number var d = false ? false : true; ->d : boolean +>d : boolean, Symbol(d, Decl(conditionalExpressions2.ts, 3, 3)) >false ? false : true : boolean +>false : boolean +>false : boolean +>true : boolean var e = false ? "foo" : "bar"; ->e : string +>e : string, Symbol(e, Decl(conditionalExpressions2.ts, 4, 3)) >false ? "foo" : "bar" : string +>false : boolean +>"foo" : string +>"bar" : string var f = false ? null : undefined; ->f : any +>f : any, Symbol(f, Decl(conditionalExpressions2.ts, 5, 3)) >false ? null : undefined : null ->undefined : undefined +>false : boolean +>null : null +>undefined : undefined, Symbol(undefined) var g = true ? {g:5} : null; ->g : { g: number; } +>g : { g: number; }, Symbol(g, Decl(conditionalExpressions2.ts, 6, 3)) >true ? {g:5} : null : { g: number; } +>true : boolean >{g:5} : { g: number; } ->g : number +>g : number, Symbol(g, Decl(conditionalExpressions2.ts, 6, 16)) +>5 : number +>null : null var h = [{h:5}, null]; ->h : { h: number; }[] +>h : { h: number; }[], Symbol(h, Decl(conditionalExpressions2.ts, 7, 3)) >[{h:5}, null] : { h: number; }[] >{h:5} : { h: number; } ->h : number +>h : number, Symbol(h, Decl(conditionalExpressions2.ts, 7, 10)) +>5 : number +>null : null function i() { if (true) { return { x: 5 }; } else { return null; } } ->i : () => { x: number; } +>i : () => { x: number; }, Symbol(i, Decl(conditionalExpressions2.ts, 7, 22)) +>true : boolean >{ x: 5 } : { x: number; } ->x : number +>x : number, Symbol(x, Decl(conditionalExpressions2.ts, 8, 35)) +>5 : number +>null : null diff --git a/tests/baselines/reference/conditionalOperatorConditionIsBooleanType.types b/tests/baselines/reference/conditionalOperatorConditionIsBooleanType.types index 44fc9f5ed7b..21840a84105 100644 --- a/tests/baselines/reference/conditionalOperatorConditionIsBooleanType.types +++ b/tests/baselines/reference/conditionalOperatorConditionIsBooleanType.types @@ -1,275 +1,307 @@ === tests/cases/conformance/expressions/conditonalOperator/conditionalOperatorConditionIsBooleanType.ts === //Cond ? Expr1 : Expr2, Cond is of boolean type, Expr1 and Expr2 have the same type var condBoolean: boolean; ->condBoolean : boolean +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) var exprAny1: any; ->exprAny1 : any +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsBooleanType.ts, 3, 3)) var exprBoolean1: boolean; ->exprBoolean1 : boolean +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) var exprNumber1: number; ->exprNumber1 : number +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsBooleanType.ts, 5, 3)) var exprString1: string; ->exprString1 : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) var exprIsObject1: Object; ->exprIsObject1 : Object ->Object : Object +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsBooleanType.ts, 7, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var exprAny2: any; ->exprAny2 : any +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsBooleanType.ts, 9, 3)) var exprBoolean2: boolean; ->exprBoolean2 : boolean +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsBooleanType.ts, 10, 3)) var exprNumber2: number; ->exprNumber2 : number +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsBooleanType.ts, 11, 3)) var exprString2: string; ->exprString2 : string +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsBooleanType.ts, 12, 3)) var exprIsObject2: Object; ->exprIsObject2 : Object ->Object : Object +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsBooleanType.ts, 13, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) //Cond is a boolean type variable condBoolean ? exprAny1 : exprAny2; >condBoolean ? exprAny1 : exprAny2 : any ->condBoolean : boolean ->exprAny1 : any ->exprAny2 : any +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsBooleanType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsBooleanType.ts, 9, 3)) condBoolean ? exprBoolean1 : exprBoolean2; >condBoolean ? exprBoolean1 : exprBoolean2 : boolean ->condBoolean : boolean ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsBooleanType.ts, 10, 3)) condBoolean ? exprNumber1 : exprNumber2; >condBoolean ? exprNumber1 : exprNumber2 : number ->condBoolean : boolean ->exprNumber1 : number ->exprNumber2 : number +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsBooleanType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsBooleanType.ts, 11, 3)) condBoolean ? exprString1 : exprString2; >condBoolean ? exprString1 : exprString2 : string ->condBoolean : boolean ->exprString1 : string ->exprString2 : string +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsBooleanType.ts, 12, 3)) condBoolean ? exprIsObject1 : exprIsObject2; >condBoolean ? exprIsObject1 : exprIsObject2 : Object ->condBoolean : boolean ->exprIsObject1 : Object ->exprIsObject2 : Object +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsBooleanType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsBooleanType.ts, 13, 3)) condBoolean ? exprString1 : exprBoolean1; // union >condBoolean ? exprString1 : exprBoolean1 : string | boolean ->condBoolean : boolean ->exprString1 : string ->exprBoolean1 : boolean +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) //Cond is a boolean type literal true ? exprAny1 : exprAny2; >true ? exprAny1 : exprAny2 : any ->exprAny1 : any ->exprAny2 : any +>true : boolean +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsBooleanType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsBooleanType.ts, 9, 3)) false ? exprBoolean1 : exprBoolean2; >false ? exprBoolean1 : exprBoolean2 : boolean ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>false : boolean +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsBooleanType.ts, 10, 3)) true ? exprNumber1 : exprNumber2; >true ? exprNumber1 : exprNumber2 : number ->exprNumber1 : number ->exprNumber2 : number +>true : boolean +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsBooleanType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsBooleanType.ts, 11, 3)) false ? exprString1 : exprString2; >false ? exprString1 : exprString2 : string ->exprString1 : string ->exprString2 : string +>false : boolean +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsBooleanType.ts, 12, 3)) true ? exprIsObject1 : exprIsObject2; >true ? exprIsObject1 : exprIsObject2 : Object ->exprIsObject1 : Object ->exprIsObject2 : Object +>true : boolean +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsBooleanType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsBooleanType.ts, 13, 3)) true ? exprString1 : exprBoolean1; // union >true ? exprString1 : exprBoolean1 : string | boolean ->exprString1 : string ->exprBoolean1 : boolean +>true : boolean +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) //Cond is a boolean type expression !true ? exprAny1 : exprAny2; >!true ? exprAny1 : exprAny2 : any >!true : boolean ->exprAny1 : any ->exprAny2 : any +>true : boolean +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsBooleanType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsBooleanType.ts, 9, 3)) typeof "123" == "string" ? exprBoolean1 : exprBoolean2; >typeof "123" == "string" ? exprBoolean1 : exprBoolean2 : boolean >typeof "123" == "string" : boolean >typeof "123" : string ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>"123" : string +>"string" : string +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsBooleanType.ts, 10, 3)) 2 > 1 ? exprNumber1 : exprNumber2; >2 > 1 ? exprNumber1 : exprNumber2 : number >2 > 1 : boolean ->exprNumber1 : number ->exprNumber2 : number +>2 : number +>1 : number +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsBooleanType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsBooleanType.ts, 11, 3)) null === undefined ? exprString1 : exprString2; >null === undefined ? exprString1 : exprString2 : string >null === undefined : boolean ->undefined : undefined ->exprString1 : string ->exprString2 : string +>null : null +>undefined : undefined, Symbol(undefined) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsBooleanType.ts, 12, 3)) true || false ? exprIsObject1 : exprIsObject2; >true || false ? exprIsObject1 : exprIsObject2 : Object >true || false : boolean ->exprIsObject1 : Object ->exprIsObject2 : Object +>true : boolean +>false : boolean +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsBooleanType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsBooleanType.ts, 13, 3)) null === undefined ? exprString1 : exprBoolean1; // union >null === undefined ? exprString1 : exprBoolean1 : string | boolean >null === undefined : boolean ->undefined : undefined ->exprString1 : string ->exprBoolean1 : boolean +>null : null +>undefined : undefined, Symbol(undefined) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) //Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condBoolean ? exprAny1 : exprAny2; ->resultIsAny1 : any +>resultIsAny1 : any, Symbol(resultIsAny1, Decl(conditionalOperatorConditionIsBooleanType.ts, 40, 3)) >condBoolean ? exprAny1 : exprAny2 : any ->condBoolean : boolean ->exprAny1 : any ->exprAny2 : any +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsBooleanType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsBooleanType.ts, 9, 3)) var resultIsBoolean1 = condBoolean ? exprBoolean1 : exprBoolean2; ->resultIsBoolean1 : boolean +>resultIsBoolean1 : boolean, Symbol(resultIsBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 41, 3)) >condBoolean ? exprBoolean1 : exprBoolean2 : boolean ->condBoolean : boolean ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsBooleanType.ts, 10, 3)) var resultIsNumber1 = condBoolean ? exprNumber1 : exprNumber2; ->resultIsNumber1 : number +>resultIsNumber1 : number, Symbol(resultIsNumber1, Decl(conditionalOperatorConditionIsBooleanType.ts, 42, 3)) >condBoolean ? exprNumber1 : exprNumber2 : number ->condBoolean : boolean ->exprNumber1 : number ->exprNumber2 : number +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsBooleanType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsBooleanType.ts, 11, 3)) var resultIsString1 = condBoolean ? exprString1 : exprString2; ->resultIsString1 : string +>resultIsString1 : string, Symbol(resultIsString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 43, 3)) >condBoolean ? exprString1 : exprString2 : string ->condBoolean : boolean ->exprString1 : string ->exprString2 : string +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsBooleanType.ts, 12, 3)) var resultIsObject1 = condBoolean ? exprIsObject1 : exprIsObject2; ->resultIsObject1 : Object +>resultIsObject1 : Object, Symbol(resultIsObject1, Decl(conditionalOperatorConditionIsBooleanType.ts, 44, 3)) >condBoolean ? exprIsObject1 : exprIsObject2 : Object ->condBoolean : boolean ->exprIsObject1 : Object ->exprIsObject2 : Object +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsBooleanType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsBooleanType.ts, 13, 3)) var resultIsStringOrBoolean1 = condBoolean ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean1 : string | boolean +>resultIsStringOrBoolean1 : string | boolean, Symbol(resultIsStringOrBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 45, 3)) >condBoolean ? exprString1 : exprBoolean1 : string | boolean ->condBoolean : boolean ->exprString1 : string ->exprBoolean1 : boolean +>condBoolean : boolean, Symbol(condBoolean, Decl(conditionalOperatorConditionIsBooleanType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) var resultIsAny2 = true ? exprAny1 : exprAny2; ->resultIsAny2 : any +>resultIsAny2 : any, Symbol(resultIsAny2, Decl(conditionalOperatorConditionIsBooleanType.ts, 47, 3)) >true ? exprAny1 : exprAny2 : any ->exprAny1 : any ->exprAny2 : any +>true : boolean +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsBooleanType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsBooleanType.ts, 9, 3)) var resultIsBoolean2 = false ? exprBoolean1 : exprBoolean2; ->resultIsBoolean2 : boolean +>resultIsBoolean2 : boolean, Symbol(resultIsBoolean2, Decl(conditionalOperatorConditionIsBooleanType.ts, 48, 3)) >false ? exprBoolean1 : exprBoolean2 : boolean ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>false : boolean +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsBooleanType.ts, 10, 3)) var resultIsNumber2 = true ? exprNumber1 : exprNumber2; ->resultIsNumber2 : number +>resultIsNumber2 : number, Symbol(resultIsNumber2, Decl(conditionalOperatorConditionIsBooleanType.ts, 49, 3)) >true ? exprNumber1 : exprNumber2 : number ->exprNumber1 : number ->exprNumber2 : number +>true : boolean +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsBooleanType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsBooleanType.ts, 11, 3)) var resultIsString2 = false ? exprString1 : exprString2; ->resultIsString2 : string +>resultIsString2 : string, Symbol(resultIsString2, Decl(conditionalOperatorConditionIsBooleanType.ts, 50, 3)) >false ? exprString1 : exprString2 : string ->exprString1 : string ->exprString2 : string +>false : boolean +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsBooleanType.ts, 12, 3)) var resultIsObject2 = true ? exprIsObject1 : exprIsObject2; ->resultIsObject2 : Object +>resultIsObject2 : Object, Symbol(resultIsObject2, Decl(conditionalOperatorConditionIsBooleanType.ts, 51, 3)) >true ? exprIsObject1 : exprIsObject2 : Object ->exprIsObject1 : Object ->exprIsObject2 : Object +>true : boolean +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsBooleanType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsBooleanType.ts, 13, 3)) var resultIsStringOrBoolean2 = true ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean2 : string | boolean +>resultIsStringOrBoolean2 : string | boolean, Symbol(resultIsStringOrBoolean2, Decl(conditionalOperatorConditionIsBooleanType.ts, 52, 3)) >true ? exprString1 : exprBoolean1 : string | boolean ->exprString1 : string ->exprBoolean1 : boolean +>true : boolean +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) var resultIsStringOrBoolean3 = false ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean3 : string | boolean +>resultIsStringOrBoolean3 : string | boolean, Symbol(resultIsStringOrBoolean3, Decl(conditionalOperatorConditionIsBooleanType.ts, 53, 3)) >false ? exprString1 : exprBoolean1 : string | boolean ->exprString1 : string ->exprBoolean1 : boolean +>false : boolean +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) var resultIsAny3 = !true ? exprAny1 : exprAny2; ->resultIsAny3 : any +>resultIsAny3 : any, Symbol(resultIsAny3, Decl(conditionalOperatorConditionIsBooleanType.ts, 55, 3)) >!true ? exprAny1 : exprAny2 : any >!true : boolean ->exprAny1 : any ->exprAny2 : any +>true : boolean +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsBooleanType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsBooleanType.ts, 9, 3)) var resultIsBoolean3 = typeof "123" == "string" ? exprBoolean1 : exprBoolean2; ->resultIsBoolean3 : boolean +>resultIsBoolean3 : boolean, Symbol(resultIsBoolean3, Decl(conditionalOperatorConditionIsBooleanType.ts, 56, 3)) >typeof "123" == "string" ? exprBoolean1 : exprBoolean2 : boolean >typeof "123" == "string" : boolean >typeof "123" : string ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>"123" : string +>"string" : string +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsBooleanType.ts, 10, 3)) var resultIsNumber3 = 2 > 1 ? exprNumber1 : exprNumber2; ->resultIsNumber3 : number +>resultIsNumber3 : number, Symbol(resultIsNumber3, Decl(conditionalOperatorConditionIsBooleanType.ts, 57, 3)) >2 > 1 ? exprNumber1 : exprNumber2 : number >2 > 1 : boolean ->exprNumber1 : number ->exprNumber2 : number +>2 : number +>1 : number +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsBooleanType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsBooleanType.ts, 11, 3)) var resultIsString3 = null === undefined ? exprString1 : exprString2; ->resultIsString3 : string +>resultIsString3 : string, Symbol(resultIsString3, Decl(conditionalOperatorConditionIsBooleanType.ts, 58, 3)) >null === undefined ? exprString1 : exprString2 : string >null === undefined : boolean ->undefined : undefined ->exprString1 : string ->exprString2 : string +>null : null +>undefined : undefined, Symbol(undefined) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsBooleanType.ts, 12, 3)) var resultIsObject3 = true || false ? exprIsObject1 : exprIsObject2; ->resultIsObject3 : Object +>resultIsObject3 : Object, Symbol(resultIsObject3, Decl(conditionalOperatorConditionIsBooleanType.ts, 59, 3)) >true || false ? exprIsObject1 : exprIsObject2 : Object >true || false : boolean ->exprIsObject1 : Object ->exprIsObject2 : Object +>true : boolean +>false : boolean +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsBooleanType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsBooleanType.ts, 13, 3)) var resultIsStringOrBoolean4 = typeof "123" === "string" ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean4 : string | boolean +>resultIsStringOrBoolean4 : string | boolean, Symbol(resultIsStringOrBoolean4, Decl(conditionalOperatorConditionIsBooleanType.ts, 60, 3)) >typeof "123" === "string" ? exprString1 : exprBoolean1 : string | boolean >typeof "123" === "string" : boolean >typeof "123" : string ->exprString1 : string ->exprBoolean1 : boolean +>"123" : string +>"string" : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsBooleanType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsBooleanType.ts, 4, 3)) diff --git a/tests/baselines/reference/conditionalOperatorConditionIsNumberType.types b/tests/baselines/reference/conditionalOperatorConditionIsNumberType.types index 99a81081d6b..1c83fa6d238 100644 --- a/tests/baselines/reference/conditionalOperatorConditionIsNumberType.types +++ b/tests/baselines/reference/conditionalOperatorConditionIsNumberType.types @@ -1,289 +1,318 @@ === tests/cases/conformance/expressions/conditonalOperator/conditionalOperatorConditionIsNumberType.ts === //Cond ? Expr1 : Expr2, Cond is of number type, Expr1 and Expr2 have the same type var condNumber: number; ->condNumber : number +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) var exprAny1: any; ->exprAny1 : any +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsNumberType.ts, 3, 3)) var exprBoolean1: boolean; ->exprBoolean1 : boolean +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) var exprNumber1: number; ->exprNumber1 : number +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsNumberType.ts, 5, 3)) var exprString1: string; ->exprString1 : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) var exprIsObject1: Object; ->exprIsObject1 : Object ->Object : Object +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsNumberType.ts, 7, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var exprAny2: any; ->exprAny2 : any +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsNumberType.ts, 9, 3)) var exprBoolean2: boolean; ->exprBoolean2 : boolean +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsNumberType.ts, 10, 3)) var exprNumber2: number; ->exprNumber2 : number +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsNumberType.ts, 11, 3)) var exprString2: string; ->exprString2 : string +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsNumberType.ts, 12, 3)) var exprIsObject2: Object; ->exprIsObject2 : Object ->Object : Object +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsNumberType.ts, 13, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) //Cond is a number type variable condNumber ? exprAny1 : exprAny2; >condNumber ? exprAny1 : exprAny2 : any ->condNumber : number ->exprAny1 : any ->exprAny2 : any +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsNumberType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsNumberType.ts, 9, 3)) condNumber ? exprBoolean1 : exprBoolean2; >condNumber ? exprBoolean1 : exprBoolean2 : boolean ->condNumber : number ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsNumberType.ts, 10, 3)) condNumber ? exprNumber1 : exprNumber2; >condNumber ? exprNumber1 : exprNumber2 : number ->condNumber : number ->exprNumber1 : number ->exprNumber2 : number +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsNumberType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsNumberType.ts, 11, 3)) condNumber ? exprString1 : exprString2; >condNumber ? exprString1 : exprString2 : string ->condNumber : number ->exprString1 : string ->exprString2 : string +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsNumberType.ts, 12, 3)) condNumber ? exprIsObject1 : exprIsObject2; >condNumber ? exprIsObject1 : exprIsObject2 : Object ->condNumber : number ->exprIsObject1 : Object ->exprIsObject2 : Object +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsNumberType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsNumberType.ts, 13, 3)) condNumber ? exprString1 : exprBoolean1; // Union >condNumber ? exprString1 : exprBoolean1 : string | boolean ->condNumber : number ->exprString1 : string ->exprBoolean1 : boolean +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) //Cond is a number type literal 1 ? exprAny1 : exprAny2; >1 ? exprAny1 : exprAny2 : any ->exprAny1 : any ->exprAny2 : any +>1 : number +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsNumberType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsNumberType.ts, 9, 3)) 0 ? exprBoolean1 : exprBoolean2; >0 ? exprBoolean1 : exprBoolean2 : boolean ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>0 : number +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsNumberType.ts, 10, 3)) 0.123456789 ? exprNumber1 : exprNumber2; >0.123456789 ? exprNumber1 : exprNumber2 : number ->exprNumber1 : number ->exprNumber2 : number +>0.123456789 : number +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsNumberType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsNumberType.ts, 11, 3)) - 10000000000000 ? exprString1 : exprString2; >- 10000000000000 ? exprString1 : exprString2 : string >- 10000000000000 : number ->exprString1 : string ->exprString2 : string +>10000000000000 : number +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsNumberType.ts, 12, 3)) 1000000000000 ? exprIsObject1 : exprIsObject2; >1000000000000 ? exprIsObject1 : exprIsObject2 : Object ->exprIsObject1 : Object ->exprIsObject2 : Object +>1000000000000 : number +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsNumberType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsNumberType.ts, 13, 3)) 10000 ? exprString1 : exprBoolean1; // Union >10000 ? exprString1 : exprBoolean1 : string | boolean ->exprString1 : string ->exprBoolean1 : boolean +>10000 : number +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) //Cond is a number type expression function foo() { return 1 }; ->foo : () => number +>foo : () => number, Symbol(foo, Decl(conditionalOperatorConditionIsNumberType.ts, 29, 35)) +>1 : number var array = [1, 2, 3]; ->array : number[] +>array : number[], Symbol(array, Decl(conditionalOperatorConditionIsNumberType.ts, 33, 3)) >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number 1 * 0 ? exprAny1 : exprAny2; >1 * 0 ? exprAny1 : exprAny2 : any >1 * 0 : number ->exprAny1 : any ->exprAny2 : any +>1 : number +>0 : number +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsNumberType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsNumberType.ts, 9, 3)) 1 + 1 ? exprBoolean1 : exprBoolean2; >1 + 1 ? exprBoolean1 : exprBoolean2 : boolean >1 + 1 : number ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>1 : number +>1 : number +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsNumberType.ts, 10, 3)) "string".length ? exprNumber1 : exprNumber2; >"string".length ? exprNumber1 : exprNumber2 : number ->"string".length : number ->length : number ->exprNumber1 : number ->exprNumber2 : number +>"string".length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>"string" : string +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsNumberType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsNumberType.ts, 11, 3)) foo() ? exprString1 : exprString2; >foo() ? exprString1 : exprString2 : string >foo() : number ->foo : () => number ->exprString1 : string ->exprString2 : string +>foo : () => number, Symbol(foo, Decl(conditionalOperatorConditionIsNumberType.ts, 29, 35)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsNumberType.ts, 12, 3)) foo() / array[1] ? exprIsObject1 : exprIsObject2; >foo() / array[1] ? exprIsObject1 : exprIsObject2 : Object >foo() / array[1] : number >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(conditionalOperatorConditionIsNumberType.ts, 29, 35)) >array[1] : number ->array : number[] ->exprIsObject1 : Object ->exprIsObject2 : Object +>array : number[], Symbol(array, Decl(conditionalOperatorConditionIsNumberType.ts, 33, 3)) +>1 : number +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsNumberType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsNumberType.ts, 13, 3)) foo() ? exprString1 : exprBoolean1; // Union >foo() ? exprString1 : exprBoolean1 : string | boolean >foo() : number ->foo : () => number ->exprString1 : string ->exprBoolean1 : boolean +>foo : () => number, Symbol(foo, Decl(conditionalOperatorConditionIsNumberType.ts, 29, 35)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) //Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condNumber ? exprAny1 : exprAny2; ->resultIsAny1 : any +>resultIsAny1 : any, Symbol(resultIsAny1, Decl(conditionalOperatorConditionIsNumberType.ts, 43, 3)) >condNumber ? exprAny1 : exprAny2 : any ->condNumber : number ->exprAny1 : any ->exprAny2 : any +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsNumberType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsNumberType.ts, 9, 3)) var resultIsBoolean1 = condNumber ? exprBoolean1 : exprBoolean2; ->resultIsBoolean1 : boolean +>resultIsBoolean1 : boolean, Symbol(resultIsBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 44, 3)) >condNumber ? exprBoolean1 : exprBoolean2 : boolean ->condNumber : number ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsNumberType.ts, 10, 3)) var resultIsNumber1 = condNumber ? exprNumber1 : exprNumber2; ->resultIsNumber1 : number +>resultIsNumber1 : number, Symbol(resultIsNumber1, Decl(conditionalOperatorConditionIsNumberType.ts, 45, 3)) >condNumber ? exprNumber1 : exprNumber2 : number ->condNumber : number ->exprNumber1 : number ->exprNumber2 : number +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsNumberType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsNumberType.ts, 11, 3)) var resultIsString1 = condNumber ? exprString1 : exprString2; ->resultIsString1 : string +>resultIsString1 : string, Symbol(resultIsString1, Decl(conditionalOperatorConditionIsNumberType.ts, 46, 3)) >condNumber ? exprString1 : exprString2 : string ->condNumber : number ->exprString1 : string ->exprString2 : string +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsNumberType.ts, 12, 3)) var resultIsObject1 = condNumber ? exprIsObject1 : exprIsObject2; ->resultIsObject1 : Object +>resultIsObject1 : Object, Symbol(resultIsObject1, Decl(conditionalOperatorConditionIsNumberType.ts, 47, 3)) >condNumber ? exprIsObject1 : exprIsObject2 : Object ->condNumber : number ->exprIsObject1 : Object ->exprIsObject2 : Object +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsNumberType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsNumberType.ts, 13, 3)) var resultIsStringOrBoolean1 = condNumber ? exprString1 : exprBoolean1; // Union ->resultIsStringOrBoolean1 : string | boolean +>resultIsStringOrBoolean1 : string | boolean, Symbol(resultIsStringOrBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 48, 3)) >condNumber ? exprString1 : exprBoolean1 : string | boolean ->condNumber : number ->exprString1 : string ->exprBoolean1 : boolean +>condNumber : number, Symbol(condNumber, Decl(conditionalOperatorConditionIsNumberType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) var resultIsAny2 = 1 ? exprAny1 : exprAny2; ->resultIsAny2 : any +>resultIsAny2 : any, Symbol(resultIsAny2, Decl(conditionalOperatorConditionIsNumberType.ts, 50, 3)) >1 ? exprAny1 : exprAny2 : any ->exprAny1 : any ->exprAny2 : any +>1 : number +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsNumberType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsNumberType.ts, 9, 3)) var resultIsBoolean2 = 0 ? exprBoolean1 : exprBoolean2; ->resultIsBoolean2 : boolean +>resultIsBoolean2 : boolean, Symbol(resultIsBoolean2, Decl(conditionalOperatorConditionIsNumberType.ts, 51, 3)) >0 ? exprBoolean1 : exprBoolean2 : boolean ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>0 : number +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsNumberType.ts, 10, 3)) var resultIsNumber2 = 0.123456789 ? exprNumber1 : exprNumber2; ->resultIsNumber2 : number +>resultIsNumber2 : number, Symbol(resultIsNumber2, Decl(conditionalOperatorConditionIsNumberType.ts, 52, 3)) >0.123456789 ? exprNumber1 : exprNumber2 : number ->exprNumber1 : number ->exprNumber2 : number +>0.123456789 : number +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsNumberType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsNumberType.ts, 11, 3)) var resultIsString2 = - 10000000000000 ? exprString1 : exprString2; ->resultIsString2 : string +>resultIsString2 : string, Symbol(resultIsString2, Decl(conditionalOperatorConditionIsNumberType.ts, 53, 3)) >- 10000000000000 ? exprString1 : exprString2 : string >- 10000000000000 : number ->exprString1 : string ->exprString2 : string +>10000000000000 : number +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsNumberType.ts, 12, 3)) var resultIsObject2 = 1000000000000 ? exprIsObject1 : exprIsObject2; ->resultIsObject2 : Object +>resultIsObject2 : Object, Symbol(resultIsObject2, Decl(conditionalOperatorConditionIsNumberType.ts, 54, 3)) >1000000000000 ? exprIsObject1 : exprIsObject2 : Object ->exprIsObject1 : Object ->exprIsObject2 : Object +>1000000000000 : number +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsNumberType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsNumberType.ts, 13, 3)) var resultIsStringOrBoolean2 = 10000 ? exprString1 : exprBoolean1; // Union ->resultIsStringOrBoolean2 : string | boolean +>resultIsStringOrBoolean2 : string | boolean, Symbol(resultIsStringOrBoolean2, Decl(conditionalOperatorConditionIsNumberType.ts, 55, 3)) >10000 ? exprString1 : exprBoolean1 : string | boolean ->exprString1 : string ->exprBoolean1 : boolean +>10000 : number +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) var resultIsAny3 = 1 * 0 ? exprAny1 : exprAny2; ->resultIsAny3 : any +>resultIsAny3 : any, Symbol(resultIsAny3, Decl(conditionalOperatorConditionIsNumberType.ts, 57, 3)) >1 * 0 ? exprAny1 : exprAny2 : any >1 * 0 : number ->exprAny1 : any ->exprAny2 : any +>1 : number +>0 : number +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsNumberType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsNumberType.ts, 9, 3)) var resultIsBoolean3 = 1 + 1 ? exprBoolean1 : exprBoolean2; ->resultIsBoolean3 : boolean +>resultIsBoolean3 : boolean, Symbol(resultIsBoolean3, Decl(conditionalOperatorConditionIsNumberType.ts, 58, 3)) >1 + 1 ? exprBoolean1 : exprBoolean2 : boolean >1 + 1 : number ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>1 : number +>1 : number +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsNumberType.ts, 10, 3)) var resultIsNumber3 = "string".length ? exprNumber1 : exprNumber2; ->resultIsNumber3 : number +>resultIsNumber3 : number, Symbol(resultIsNumber3, Decl(conditionalOperatorConditionIsNumberType.ts, 59, 3)) >"string".length ? exprNumber1 : exprNumber2 : number ->"string".length : number ->length : number ->exprNumber1 : number ->exprNumber2 : number +>"string".length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>"string" : string +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsNumberType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsNumberType.ts, 11, 3)) var resultIsString3 = foo() ? exprString1 : exprString2; ->resultIsString3 : string +>resultIsString3 : string, Symbol(resultIsString3, Decl(conditionalOperatorConditionIsNumberType.ts, 60, 3)) >foo() ? exprString1 : exprString2 : string >foo() : number ->foo : () => number ->exprString1 : string ->exprString2 : string +>foo : () => number, Symbol(foo, Decl(conditionalOperatorConditionIsNumberType.ts, 29, 35)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsNumberType.ts, 12, 3)) var resultIsObject3 = foo() / array[1] ? exprIsObject1 : exprIsObject2; ->resultIsObject3 : Object +>resultIsObject3 : Object, Symbol(resultIsObject3, Decl(conditionalOperatorConditionIsNumberType.ts, 61, 3)) >foo() / array[1] ? exprIsObject1 : exprIsObject2 : Object >foo() / array[1] : number >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(conditionalOperatorConditionIsNumberType.ts, 29, 35)) >array[1] : number ->array : number[] ->exprIsObject1 : Object ->exprIsObject2 : Object +>array : number[], Symbol(array, Decl(conditionalOperatorConditionIsNumberType.ts, 33, 3)) +>1 : number +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsNumberType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsNumberType.ts, 13, 3)) var resultIsStringOrBoolean3 = foo() / array[1] ? exprString1 : exprBoolean1; // Union ->resultIsStringOrBoolean3 : string | boolean +>resultIsStringOrBoolean3 : string | boolean, Symbol(resultIsStringOrBoolean3, Decl(conditionalOperatorConditionIsNumberType.ts, 62, 3)) >foo() / array[1] ? exprString1 : exprBoolean1 : string | boolean >foo() / array[1] : number >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(conditionalOperatorConditionIsNumberType.ts, 29, 35)) >array[1] : number ->array : number[] ->exprString1 : string ->exprBoolean1 : boolean +>array : number[], Symbol(array, Decl(conditionalOperatorConditionIsNumberType.ts, 33, 3)) +>1 : number +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsNumberType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsNumberType.ts, 4, 3)) diff --git a/tests/baselines/reference/conditionalOperatorConditionIsObjectType.types b/tests/baselines/reference/conditionalOperatorConditionIsObjectType.types index f99c591b593..b909ac3eb6c 100644 --- a/tests/baselines/reference/conditionalOperatorConditionIsObjectType.types +++ b/tests/baselines/reference/conditionalOperatorConditionIsObjectType.types @@ -1,345 +1,357 @@ === tests/cases/conformance/expressions/conditonalOperator/conditionalOperatorConditionIsObjectType.ts === //Cond ? Expr1 : Expr2, Cond is of object type, Expr1 and Expr2 have the same type var condObject: Object; ->condObject : Object ->Object : Object +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var exprAny1: any; ->exprAny1 : any +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsObjectType.ts, 3, 3)) var exprBoolean1: boolean; ->exprBoolean1 : boolean +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) var exprNumber1: number; ->exprNumber1 : number +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsObjectType.ts, 5, 3)) var exprString1: string; ->exprString1 : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) var exprIsObject1: Object; ->exprIsObject1 : Object ->Object : Object +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsObjectType.ts, 7, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var exprAny2: any; ->exprAny2 : any +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsObjectType.ts, 9, 3)) var exprBoolean2: boolean; ->exprBoolean2 : boolean +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsObjectType.ts, 10, 3)) var exprNumber2: number; ->exprNumber2 : number +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsObjectType.ts, 11, 3)) var exprString2: string; ->exprString2 : string +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsObjectType.ts, 12, 3)) var exprIsObject2: Object; ->exprIsObject2 : Object ->Object : Object +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsObjectType.ts, 13, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) function foo() { }; ->foo : () => void +>foo : () => void, Symbol(foo, Decl(conditionalOperatorConditionIsObjectType.ts, 13, 26)) class C { static doIt: () => void }; ->C : C ->doIt : () => void +>C : C, Symbol(C, Decl(conditionalOperatorConditionIsObjectType.ts, 15, 19)) +>doIt : () => void, Symbol(C.doIt, Decl(conditionalOperatorConditionIsObjectType.ts, 16, 9)) //Cond is an object type variable condObject ? exprAny1 : exprAny2; >condObject ? exprAny1 : exprAny2 : any ->condObject : Object ->exprAny1 : any ->exprAny2 : any +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsObjectType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsObjectType.ts, 9, 3)) condObject ? exprBoolean1 : exprBoolean2; >condObject ? exprBoolean1 : exprBoolean2 : boolean ->condObject : Object ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsObjectType.ts, 10, 3)) condObject ? exprNumber1 : exprNumber2; >condObject ? exprNumber1 : exprNumber2 : number ->condObject : Object ->exprNumber1 : number ->exprNumber2 : number +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsObjectType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsObjectType.ts, 11, 3)) condObject ? exprString1 : exprString2; >condObject ? exprString1 : exprString2 : string ->condObject : Object ->exprString1 : string ->exprString2 : string +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsObjectType.ts, 12, 3)) condObject ? exprIsObject1 : exprIsObject2; >condObject ? exprIsObject1 : exprIsObject2 : Object ->condObject : Object ->exprIsObject1 : Object ->exprIsObject2 : Object +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsObjectType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsObjectType.ts, 13, 3)) condObject ? exprString1 : exprBoolean1; // union >condObject ? exprString1 : exprBoolean1 : string | boolean ->condObject : Object ->exprString1 : string ->exprBoolean1 : boolean +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) //Cond is an object type literal ((a: string) => a.length) ? exprAny1 : exprAny2; >((a: string) => a.length) ? exprAny1 : exprAny2 : any >((a: string) => a.length) : (a: string) => number >(a: string) => a.length : (a: string) => number ->a : string ->a.length : number ->a : string ->length : number ->exprAny1 : any ->exprAny2 : any +>a : string, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 27, 2)) +>a.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>a : string, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 27, 2)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsObjectType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsObjectType.ts, 9, 3)) ((a: string) => a.length) ? exprBoolean1 : exprBoolean2; >((a: string) => a.length) ? exprBoolean1 : exprBoolean2 : boolean >((a: string) => a.length) : (a: string) => number >(a: string) => a.length : (a: string) => number ->a : string ->a.length : number ->a : string ->length : number ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>a : string, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 28, 2)) +>a.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>a : string, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 28, 2)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsObjectType.ts, 10, 3)) ({}) ? exprNumber1 : exprNumber2; >({}) ? exprNumber1 : exprNumber2 : number >({}) : {} >{} : {} ->exprNumber1 : number ->exprNumber2 : number +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsObjectType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsObjectType.ts, 11, 3)) ({ a: 1, b: "s" }) ? exprString1 : exprString2; >({ a: 1, b: "s" }) ? exprString1 : exprString2 : string >({ a: 1, b: "s" }) : { a: number; b: string; } >{ a: 1, b: "s" } : { a: number; b: string; } ->a : number ->b : string ->exprString1 : string ->exprString2 : string +>a : number, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 30, 2)) +>1 : number +>b : string, Symbol(b, Decl(conditionalOperatorConditionIsObjectType.ts, 30, 8)) +>"s" : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsObjectType.ts, 12, 3)) ({ a: 1, b: "s" }) ? exprIsObject1 : exprIsObject2; >({ a: 1, b: "s" }) ? exprIsObject1 : exprIsObject2 : Object >({ a: 1, b: "s" }) : { a: number; b: string; } >{ a: 1, b: "s" } : { a: number; b: string; } ->a : number ->b : string ->exprIsObject1 : Object ->exprIsObject2 : Object +>a : number, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 31, 2)) +>1 : number +>b : string, Symbol(b, Decl(conditionalOperatorConditionIsObjectType.ts, 31, 8)) +>"s" : string +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsObjectType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsObjectType.ts, 13, 3)) ({ a: 1, b: "s" }) ? exprString1: exprBoolean1; // union >({ a: 1, b: "s" }) ? exprString1: exprBoolean1 : string | boolean >({ a: 1, b: "s" }) : { a: number; b: string; } >{ a: 1, b: "s" } : { a: number; b: string; } ->a : number ->b : string ->exprString1 : string ->exprBoolean1 : boolean +>a : number, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 32, 2)) +>1 : number +>b : string, Symbol(b, Decl(conditionalOperatorConditionIsObjectType.ts, 32, 8)) +>"s" : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) //Cond is an object type expression foo() ? exprAny1 : exprAny2; >foo() ? exprAny1 : exprAny2 : any >foo() : void ->foo : () => void ->exprAny1 : any ->exprAny2 : any +>foo : () => void, Symbol(foo, Decl(conditionalOperatorConditionIsObjectType.ts, 13, 26)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsObjectType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsObjectType.ts, 9, 3)) new Date() ? exprBoolean1 : exprBoolean2; >new Date() ? exprBoolean1 : exprBoolean2 : boolean >new Date() : Date ->Date : DateConstructor ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsObjectType.ts, 10, 3)) new C() ? exprNumber1 : exprNumber2; >new C() ? exprNumber1 : exprNumber2 : number >new C() : C ->C : typeof C ->exprNumber1 : number ->exprNumber2 : number +>C : typeof C, Symbol(C, Decl(conditionalOperatorConditionIsObjectType.ts, 15, 19)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsObjectType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsObjectType.ts, 11, 3)) C.doIt() ? exprString1 : exprString2; >C.doIt() ? exprString1 : exprString2 : string >C.doIt() : void ->C.doIt : () => void ->C : typeof C ->doIt : () => void ->exprString1 : string ->exprString2 : string +>C.doIt : () => void, Symbol(C.doIt, Decl(conditionalOperatorConditionIsObjectType.ts, 16, 9)) +>C : typeof C, Symbol(C, Decl(conditionalOperatorConditionIsObjectType.ts, 15, 19)) +>doIt : () => void, Symbol(C.doIt, Decl(conditionalOperatorConditionIsObjectType.ts, 16, 9)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsObjectType.ts, 12, 3)) condObject.valueOf() ? exprIsObject1 : exprIsObject2; >condObject.valueOf() ? exprIsObject1 : exprIsObject2 : Object >condObject.valueOf() : Object ->condObject.valueOf : () => Object ->condObject : Object ->valueOf : () => Object ->exprIsObject1 : Object ->exprIsObject2 : Object +>condObject.valueOf : () => Object, Symbol(Object.valueOf, Decl(lib.d.ts, 102, 29)) +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>valueOf : () => Object, Symbol(Object.valueOf, Decl(lib.d.ts, 102, 29)) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsObjectType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsObjectType.ts, 13, 3)) new Date() ? exprString1 : exprBoolean1; // union >new Date() ? exprString1 : exprBoolean1 : string | boolean >new Date() : Date ->Date : DateConstructor ->exprString1 : string ->exprBoolean1 : boolean +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) //Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condObject ? exprAny1 : exprAny2; ->resultIsAny1 : any +>resultIsAny1 : any, Symbol(resultIsAny1, Decl(conditionalOperatorConditionIsObjectType.ts, 43, 3)) >condObject ? exprAny1 : exprAny2 : any ->condObject : Object ->exprAny1 : any ->exprAny2 : any +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsObjectType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsObjectType.ts, 9, 3)) var resultIsBoolean1 = condObject ? exprBoolean1 : exprBoolean2; ->resultIsBoolean1 : boolean +>resultIsBoolean1 : boolean, Symbol(resultIsBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 44, 3)) >condObject ? exprBoolean1 : exprBoolean2 : boolean ->condObject : Object ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsObjectType.ts, 10, 3)) var resultIsNumber1 = condObject ? exprNumber1 : exprNumber2; ->resultIsNumber1 : number +>resultIsNumber1 : number, Symbol(resultIsNumber1, Decl(conditionalOperatorConditionIsObjectType.ts, 45, 3)) >condObject ? exprNumber1 : exprNumber2 : number ->condObject : Object ->exprNumber1 : number ->exprNumber2 : number +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsObjectType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsObjectType.ts, 11, 3)) var resultIsString1 = condObject ? exprString1 : exprString2; ->resultIsString1 : string +>resultIsString1 : string, Symbol(resultIsString1, Decl(conditionalOperatorConditionIsObjectType.ts, 46, 3)) >condObject ? exprString1 : exprString2 : string ->condObject : Object ->exprString1 : string ->exprString2 : string +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsObjectType.ts, 12, 3)) var resultIsObject1 = condObject ? exprIsObject1 : exprIsObject2; ->resultIsObject1 : Object +>resultIsObject1 : Object, Symbol(resultIsObject1, Decl(conditionalOperatorConditionIsObjectType.ts, 47, 3)) >condObject ? exprIsObject1 : exprIsObject2 : Object ->condObject : Object ->exprIsObject1 : Object ->exprIsObject2 : Object +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsObjectType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsObjectType.ts, 13, 3)) var resultIsStringOrBoolean1 = condObject ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean1 : string | boolean +>resultIsStringOrBoolean1 : string | boolean, Symbol(resultIsStringOrBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 48, 3)) >condObject ? exprString1 : exprBoolean1 : string | boolean ->condObject : Object ->exprString1 : string ->exprBoolean1 : boolean +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) var resultIsAny2 = ((a: string) => a.length) ? exprAny1 : exprAny2; ->resultIsAny2 : any +>resultIsAny2 : any, Symbol(resultIsAny2, Decl(conditionalOperatorConditionIsObjectType.ts, 50, 3)) >((a: string) => a.length) ? exprAny1 : exprAny2 : any >((a: string) => a.length) : (a: string) => number >(a: string) => a.length : (a: string) => number ->a : string ->a.length : number ->a : string ->length : number ->exprAny1 : any ->exprAny2 : any +>a : string, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 50, 21)) +>a.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>a : string, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 50, 21)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsObjectType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsObjectType.ts, 9, 3)) var resultIsBoolean2 = ((a: string) => a.length) ? exprBoolean1 : exprBoolean2; ->resultIsBoolean2 : boolean +>resultIsBoolean2 : boolean, Symbol(resultIsBoolean2, Decl(conditionalOperatorConditionIsObjectType.ts, 51, 3)) >((a: string) => a.length) ? exprBoolean1 : exprBoolean2 : boolean >((a: string) => a.length) : (a: string) => number >(a: string) => a.length : (a: string) => number ->a : string ->a.length : number ->a : string ->length : number ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>a : string, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 51, 25)) +>a.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>a : string, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 51, 25)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsObjectType.ts, 10, 3)) var resultIsNumber2 = ({}) ? exprNumber1 : exprNumber2; ->resultIsNumber2 : number +>resultIsNumber2 : number, Symbol(resultIsNumber2, Decl(conditionalOperatorConditionIsObjectType.ts, 52, 3)) >({}) ? exprNumber1 : exprNumber2 : number >({}) : {} >{} : {} ->exprNumber1 : number ->exprNumber2 : number +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsObjectType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsObjectType.ts, 11, 3)) var resultIsString2 = ({ a: 1, b: "s" }) ? exprString1 : exprString2; ->resultIsString2 : string +>resultIsString2 : string, Symbol(resultIsString2, Decl(conditionalOperatorConditionIsObjectType.ts, 53, 3)) >({ a: 1, b: "s" }) ? exprString1 : exprString2 : string >({ a: 1, b: "s" }) : { a: number; b: string; } >{ a: 1, b: "s" } : { a: number; b: string; } ->a : number ->b : string ->exprString1 : string ->exprString2 : string +>a : number, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 53, 24)) +>1 : number +>b : string, Symbol(b, Decl(conditionalOperatorConditionIsObjectType.ts, 53, 30)) +>"s" : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsObjectType.ts, 12, 3)) var resultIsObject2 = ({ a: 1, b: "s" }) ? exprIsObject1 : exprIsObject2; ->resultIsObject2 : Object +>resultIsObject2 : Object, Symbol(resultIsObject2, Decl(conditionalOperatorConditionIsObjectType.ts, 54, 3)) >({ a: 1, b: "s" }) ? exprIsObject1 : exprIsObject2 : Object >({ a: 1, b: "s" }) : { a: number; b: string; } >{ a: 1, b: "s" } : { a: number; b: string; } ->a : number ->b : string ->exprIsObject1 : Object ->exprIsObject2 : Object +>a : number, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 54, 24)) +>1 : number +>b : string, Symbol(b, Decl(conditionalOperatorConditionIsObjectType.ts, 54, 30)) +>"s" : string +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsObjectType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsObjectType.ts, 13, 3)) var resultIsStringOrBoolean2 = ({ a: 1, b: "s" }) ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean2 : string | boolean +>resultIsStringOrBoolean2 : string | boolean, Symbol(resultIsStringOrBoolean2, Decl(conditionalOperatorConditionIsObjectType.ts, 55, 3)) >({ a: 1, b: "s" }) ? exprString1 : exprBoolean1 : string | boolean >({ a: 1, b: "s" }) : { a: number; b: string; } >{ a: 1, b: "s" } : { a: number; b: string; } ->a : number ->b : string ->exprString1 : string ->exprBoolean1 : boolean +>a : number, Symbol(a, Decl(conditionalOperatorConditionIsObjectType.ts, 55, 33)) +>1 : number +>b : string, Symbol(b, Decl(conditionalOperatorConditionIsObjectType.ts, 55, 39)) +>"s" : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) var resultIsAny3 = foo() ? exprAny1 : exprAny2; ->resultIsAny3 : any +>resultIsAny3 : any, Symbol(resultIsAny3, Decl(conditionalOperatorConditionIsObjectType.ts, 57, 3)) >foo() ? exprAny1 : exprAny2 : any >foo() : void ->foo : () => void ->exprAny1 : any ->exprAny2 : any +>foo : () => void, Symbol(foo, Decl(conditionalOperatorConditionIsObjectType.ts, 13, 26)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditionIsObjectType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditionIsObjectType.ts, 9, 3)) var resultIsBoolean3 = new Date() ? exprBoolean1 : exprBoolean2; ->resultIsBoolean3 : boolean +>resultIsBoolean3 : boolean, Symbol(resultIsBoolean3, Decl(conditionalOperatorConditionIsObjectType.ts, 58, 3)) >new Date() ? exprBoolean1 : exprBoolean2 : boolean >new Date() : Date ->Date : DateConstructor ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditionIsObjectType.ts, 10, 3)) var resultIsNumber3 = new C() ? exprNumber1 : exprNumber2; ->resultIsNumber3 : number +>resultIsNumber3 : number, Symbol(resultIsNumber3, Decl(conditionalOperatorConditionIsObjectType.ts, 59, 3)) >new C() ? exprNumber1 : exprNumber2 : number >new C() : C ->C : typeof C ->exprNumber1 : number ->exprNumber2 : number +>C : typeof C, Symbol(C, Decl(conditionalOperatorConditionIsObjectType.ts, 15, 19)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditionIsObjectType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditionIsObjectType.ts, 11, 3)) var resultIsString3 = C.doIt() ? exprString1 : exprString2; ->resultIsString3 : string +>resultIsString3 : string, Symbol(resultIsString3, Decl(conditionalOperatorConditionIsObjectType.ts, 60, 3)) >C.doIt() ? exprString1 : exprString2 : string >C.doIt() : void ->C.doIt : () => void ->C : typeof C ->doIt : () => void ->exprString1 : string ->exprString2 : string +>C.doIt : () => void, Symbol(C.doIt, Decl(conditionalOperatorConditionIsObjectType.ts, 16, 9)) +>C : typeof C, Symbol(C, Decl(conditionalOperatorConditionIsObjectType.ts, 15, 19)) +>doIt : () => void, Symbol(C.doIt, Decl(conditionalOperatorConditionIsObjectType.ts, 16, 9)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditionIsObjectType.ts, 12, 3)) var resultIsObject3 = condObject.valueOf() ? exprIsObject1 : exprIsObject2; ->resultIsObject3 : Object +>resultIsObject3 : Object, Symbol(resultIsObject3, Decl(conditionalOperatorConditionIsObjectType.ts, 61, 3)) >condObject.valueOf() ? exprIsObject1 : exprIsObject2 : Object >condObject.valueOf() : Object ->condObject.valueOf : () => Object ->condObject : Object ->valueOf : () => Object ->exprIsObject1 : Object ->exprIsObject2 : Object +>condObject.valueOf : () => Object, Symbol(Object.valueOf, Decl(lib.d.ts, 102, 29)) +>condObject : Object, Symbol(condObject, Decl(conditionalOperatorConditionIsObjectType.ts, 1, 3)) +>valueOf : () => Object, Symbol(Object.valueOf, Decl(lib.d.ts, 102, 29)) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditionIsObjectType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditionIsObjectType.ts, 13, 3)) var resultIsStringOrBoolean3 = C.doIt() ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean3 : string | boolean +>resultIsStringOrBoolean3 : string | boolean, Symbol(resultIsStringOrBoolean3, Decl(conditionalOperatorConditionIsObjectType.ts, 62, 3)) >C.doIt() ? exprString1 : exprBoolean1 : string | boolean >C.doIt() : void ->C.doIt : () => void ->C : typeof C ->doIt : () => void ->exprString1 : string ->exprBoolean1 : boolean +>C.doIt : () => void, Symbol(C.doIt, Decl(conditionalOperatorConditionIsObjectType.ts, 16, 9)) +>C : typeof C, Symbol(C, Decl(conditionalOperatorConditionIsObjectType.ts, 15, 19)) +>doIt : () => void, Symbol(C.doIt, Decl(conditionalOperatorConditionIsObjectType.ts, 16, 9)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditionIsObjectType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditionIsObjectType.ts, 4, 3)) diff --git a/tests/baselines/reference/conditionalOperatorConditoinIsAnyType.types b/tests/baselines/reference/conditionalOperatorConditoinIsAnyType.types index 6542377795f..d70375844f8 100644 --- a/tests/baselines/reference/conditionalOperatorConditoinIsAnyType.types +++ b/tests/baselines/reference/conditionalOperatorConditoinIsAnyType.types @@ -1,318 +1,332 @@ === tests/cases/conformance/expressions/conditonalOperator/conditionalOperatorConditoinIsAnyType.ts === //Cond ? Expr1 : Expr2, Cond is of any type, Expr1 and Expr2 have the same type var condAny: any; ->condAny : any +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) var x: any; ->x : any +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) var exprAny1: any; ->exprAny1 : any +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsAnyType.ts, 4, 3)) var exprBoolean1: boolean; ->exprBoolean1 : boolean +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) var exprNumber1: number; ->exprNumber1 : number +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsAnyType.ts, 6, 3)) var exprString1: string; ->exprString1 : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) var exprIsObject1: Object; ->exprIsObject1 : Object ->Object : Object +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsAnyType.ts, 8, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var exprAny2: any; ->exprAny2 : any +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsAnyType.ts, 10, 3)) var exprBoolean2: boolean; ->exprBoolean2 : boolean +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsAnyType.ts, 11, 3)) var exprNumber2: number; ->exprNumber2 : number +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsAnyType.ts, 12, 3)) var exprString2: string; ->exprString2 : string +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsAnyType.ts, 13, 3)) var exprIsObject2: Object; ->exprIsObject2 : Object ->Object : Object +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsAnyType.ts, 14, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) //Cond is an any type variable condAny ? exprAny1 : exprAny2; >condAny ? exprAny1 : exprAny2 : any ->condAny : any ->exprAny1 : any ->exprAny2 : any +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsAnyType.ts, 4, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsAnyType.ts, 10, 3)) condAny ? exprBoolean1 : exprBoolean2; >condAny ? exprBoolean1 : exprBoolean2 : boolean ->condAny : any ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsAnyType.ts, 11, 3)) condAny ? exprNumber1 : exprNumber2; >condAny ? exprNumber1 : exprNumber2 : number ->condAny : any ->exprNumber1 : number ->exprNumber2 : number +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsAnyType.ts, 6, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsAnyType.ts, 12, 3)) condAny ? exprString1 : exprString2; >condAny ? exprString1 : exprString2 : string ->condAny : any ->exprString1 : string ->exprString2 : string +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsAnyType.ts, 13, 3)) condAny ? exprIsObject1 : exprIsObject2; >condAny ? exprIsObject1 : exprIsObject2 : Object ->condAny : any ->exprIsObject1 : Object ->exprIsObject2 : Object +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsAnyType.ts, 8, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsAnyType.ts, 14, 3)) condAny ? exprString1 : exprBoolean1; // union >condAny ? exprString1 : exprBoolean1 : string | boolean ->condAny : any ->exprString1 : string ->exprBoolean1 : boolean +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) //Cond is an any type literal null ? exprAny1 : exprAny2; >null ? exprAny1 : exprAny2 : any ->exprAny1 : any ->exprAny2 : any +>null : null +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsAnyType.ts, 4, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsAnyType.ts, 10, 3)) null ? exprBoolean1 : exprBoolean2; >null ? exprBoolean1 : exprBoolean2 : boolean ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>null : null +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsAnyType.ts, 11, 3)) undefined ? exprNumber1 : exprNumber2; >undefined ? exprNumber1 : exprNumber2 : number ->undefined : undefined ->exprNumber1 : number ->exprNumber2 : number +>undefined : undefined, Symbol(undefined) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsAnyType.ts, 6, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsAnyType.ts, 12, 3)) [null, undefined] ? exprString1 : exprString2; >[null, undefined] ? exprString1 : exprString2 : string >[null, undefined] : null[] ->undefined : undefined ->exprString1 : string ->exprString2 : string +>null : null +>undefined : undefined, Symbol(undefined) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsAnyType.ts, 13, 3)) [null, undefined] ? exprIsObject1 : exprIsObject2; >[null, undefined] ? exprIsObject1 : exprIsObject2 : Object >[null, undefined] : null[] ->undefined : undefined ->exprIsObject1 : Object ->exprIsObject2 : Object +>null : null +>undefined : undefined, Symbol(undefined) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsAnyType.ts, 8, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsAnyType.ts, 14, 3)) undefined ? exprString1 : exprBoolean1; // union >undefined ? exprString1 : exprBoolean1 : string | boolean ->undefined : undefined ->exprString1 : string ->exprBoolean1 : boolean +>undefined : undefined, Symbol(undefined) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) //Cond is an any type expression x.doSomeThing() ? exprAny1 : exprAny2; >x.doSomeThing() ? exprAny1 : exprAny2 : any >x.doSomeThing() : any >x.doSomeThing : any ->x : any +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) >doSomeThing : any ->exprAny1 : any ->exprAny2 : any +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsAnyType.ts, 4, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsAnyType.ts, 10, 3)) x("x") ? exprBoolean1 : exprBoolean2; >x("x") ? exprBoolean1 : exprBoolean2 : boolean >x("x") : any ->x : any ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) +>"x" : string +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsAnyType.ts, 11, 3)) x(x) ? exprNumber1 : exprNumber2; >x(x) ? exprNumber1 : exprNumber2 : number >x(x) : any ->x : any ->x : any ->exprNumber1 : number ->exprNumber2 : number +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsAnyType.ts, 6, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsAnyType.ts, 12, 3)) x("x") ? exprString1 : exprString2; >x("x") ? exprString1 : exprString2 : string >x("x") : any ->x : any ->exprString1 : string ->exprString2 : string +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) +>"x" : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsAnyType.ts, 13, 3)) x.doSomeThing() ? exprIsObject1 : exprIsObject2; >x.doSomeThing() ? exprIsObject1 : exprIsObject2 : Object >x.doSomeThing() : any >x.doSomeThing : any ->x : any +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) >doSomeThing : any ->exprIsObject1 : Object ->exprIsObject2 : Object +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsAnyType.ts, 8, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsAnyType.ts, 14, 3)) x.doSomeThing() ? exprString1 : exprBoolean1; // union >x.doSomeThing() ? exprString1 : exprBoolean1 : string | boolean >x.doSomeThing() : any >x.doSomeThing : any ->x : any +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) >doSomeThing : any ->exprString1 : string ->exprBoolean1 : boolean +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) //Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condAny ? exprAny1 : exprAny2; ->resultIsAny1 : any +>resultIsAny1 : any, Symbol(resultIsAny1, Decl(conditionalOperatorConditoinIsAnyType.ts, 41, 3)) >condAny ? exprAny1 : exprAny2 : any ->condAny : any ->exprAny1 : any ->exprAny2 : any +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsAnyType.ts, 4, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsAnyType.ts, 10, 3)) var resultIsBoolean1 = condAny ? exprBoolean1 : exprBoolean2; ->resultIsBoolean1 : boolean +>resultIsBoolean1 : boolean, Symbol(resultIsBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 42, 3)) >condAny ? exprBoolean1 : exprBoolean2 : boolean ->condAny : any ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsAnyType.ts, 11, 3)) var resultIsNumber1 = condAny ? exprNumber1 : exprNumber2; ->resultIsNumber1 : number +>resultIsNumber1 : number, Symbol(resultIsNumber1, Decl(conditionalOperatorConditoinIsAnyType.ts, 43, 3)) >condAny ? exprNumber1 : exprNumber2 : number ->condAny : any ->exprNumber1 : number ->exprNumber2 : number +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsAnyType.ts, 6, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsAnyType.ts, 12, 3)) var resultIsString1 = condAny ? exprString1 : exprString2; ->resultIsString1 : string +>resultIsString1 : string, Symbol(resultIsString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 44, 3)) >condAny ? exprString1 : exprString2 : string ->condAny : any ->exprString1 : string ->exprString2 : string +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsAnyType.ts, 13, 3)) var resultIsObject1 = condAny ? exprIsObject1 : exprIsObject2; ->resultIsObject1 : Object +>resultIsObject1 : Object, Symbol(resultIsObject1, Decl(conditionalOperatorConditoinIsAnyType.ts, 45, 3)) >condAny ? exprIsObject1 : exprIsObject2 : Object ->condAny : any ->exprIsObject1 : Object ->exprIsObject2 : Object +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsAnyType.ts, 8, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsAnyType.ts, 14, 3)) var resultIsStringOrBoolean1 = condAny ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean1 : string | boolean +>resultIsStringOrBoolean1 : string | boolean, Symbol(resultIsStringOrBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 46, 3)) >condAny ? exprString1 : exprBoolean1 : string | boolean ->condAny : any ->exprString1 : string ->exprBoolean1 : boolean +>condAny : any, Symbol(condAny, Decl(conditionalOperatorConditoinIsAnyType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) var resultIsAny2 = null ? exprAny1 : exprAny2; ->resultIsAny2 : any +>resultIsAny2 : any, Symbol(resultIsAny2, Decl(conditionalOperatorConditoinIsAnyType.ts, 48, 3)) >null ? exprAny1 : exprAny2 : any ->exprAny1 : any ->exprAny2 : any +>null : null +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsAnyType.ts, 4, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsAnyType.ts, 10, 3)) var resultIsBoolean2 = null ? exprBoolean1 : exprBoolean2; ->resultIsBoolean2 : boolean +>resultIsBoolean2 : boolean, Symbol(resultIsBoolean2, Decl(conditionalOperatorConditoinIsAnyType.ts, 49, 3)) >null ? exprBoolean1 : exprBoolean2 : boolean ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>null : null +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsAnyType.ts, 11, 3)) var resultIsNumber2 = undefined ? exprNumber1 : exprNumber2; ->resultIsNumber2 : number +>resultIsNumber2 : number, Symbol(resultIsNumber2, Decl(conditionalOperatorConditoinIsAnyType.ts, 50, 3)) >undefined ? exprNumber1 : exprNumber2 : number ->undefined : undefined ->exprNumber1 : number ->exprNumber2 : number +>undefined : undefined, Symbol(undefined) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsAnyType.ts, 6, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsAnyType.ts, 12, 3)) var resultIsString2 = [null, undefined] ? exprString1 : exprString2; ->resultIsString2 : string +>resultIsString2 : string, Symbol(resultIsString2, Decl(conditionalOperatorConditoinIsAnyType.ts, 51, 3)) >[null, undefined] ? exprString1 : exprString2 : string >[null, undefined] : null[] ->undefined : undefined ->exprString1 : string ->exprString2 : string +>null : null +>undefined : undefined, Symbol(undefined) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsAnyType.ts, 13, 3)) var resultIsObject2 = [null, undefined] ? exprIsObject1 : exprIsObject2; ->resultIsObject2 : Object +>resultIsObject2 : Object, Symbol(resultIsObject2, Decl(conditionalOperatorConditoinIsAnyType.ts, 52, 3)) >[null, undefined] ? exprIsObject1 : exprIsObject2 : Object >[null, undefined] : null[] ->undefined : undefined ->exprIsObject1 : Object ->exprIsObject2 : Object +>null : null +>undefined : undefined, Symbol(undefined) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsAnyType.ts, 8, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsAnyType.ts, 14, 3)) var resultIsStringOrBoolean2 = null ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean2 : string | boolean +>resultIsStringOrBoolean2 : string | boolean, Symbol(resultIsStringOrBoolean2, Decl(conditionalOperatorConditoinIsAnyType.ts, 53, 3)) >null ? exprString1 : exprBoolean1 : string | boolean ->exprString1 : string ->exprBoolean1 : boolean +>null : null +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) var resultIsStringOrBoolean3 = undefined ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean3 : string | boolean +>resultIsStringOrBoolean3 : string | boolean, Symbol(resultIsStringOrBoolean3, Decl(conditionalOperatorConditoinIsAnyType.ts, 54, 3)) >undefined ? exprString1 : exprBoolean1 : string | boolean ->undefined : undefined ->exprString1 : string ->exprBoolean1 : boolean +>undefined : undefined, Symbol(undefined) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) var resultIsStringOrBoolean4 = [null, undefined] ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean4 : string | boolean +>resultIsStringOrBoolean4 : string | boolean, Symbol(resultIsStringOrBoolean4, Decl(conditionalOperatorConditoinIsAnyType.ts, 55, 3)) >[null, undefined] ? exprString1 : exprBoolean1 : string | boolean >[null, undefined] : null[] ->undefined : undefined ->exprString1 : string ->exprBoolean1 : boolean +>null : null +>undefined : undefined, Symbol(undefined) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) var resultIsAny3 = x.doSomeThing() ? exprAny1 : exprAny2; ->resultIsAny3 : any +>resultIsAny3 : any, Symbol(resultIsAny3, Decl(conditionalOperatorConditoinIsAnyType.ts, 57, 3)) >x.doSomeThing() ? exprAny1 : exprAny2 : any >x.doSomeThing() : any >x.doSomeThing : any ->x : any +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) >doSomeThing : any ->exprAny1 : any ->exprAny2 : any +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsAnyType.ts, 4, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsAnyType.ts, 10, 3)) var resultIsBoolean3 = x("x") ? exprBoolean1 : exprBoolean2; ->resultIsBoolean3 : boolean +>resultIsBoolean3 : boolean, Symbol(resultIsBoolean3, Decl(conditionalOperatorConditoinIsAnyType.ts, 58, 3)) >x("x") ? exprBoolean1 : exprBoolean2 : boolean >x("x") : any ->x : any ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) +>"x" : string +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsAnyType.ts, 11, 3)) var resultIsNumber3 = x(x) ? exprNumber1 : exprNumber2; ->resultIsNumber3 : number +>resultIsNumber3 : number, Symbol(resultIsNumber3, Decl(conditionalOperatorConditoinIsAnyType.ts, 59, 3)) >x(x) ? exprNumber1 : exprNumber2 : number >x(x) : any ->x : any ->x : any ->exprNumber1 : number ->exprNumber2 : number +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsAnyType.ts, 6, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsAnyType.ts, 12, 3)) var resultIsString3 = x("x") ? exprString1 : exprString2; ->resultIsString3 : string +>resultIsString3 : string, Symbol(resultIsString3, Decl(conditionalOperatorConditoinIsAnyType.ts, 60, 3)) >x("x") ? exprString1 : exprString2 : string >x("x") : any ->x : any ->exprString1 : string ->exprString2 : string +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) +>"x" : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsAnyType.ts, 13, 3)) var resultIsObject3 = x.doSomeThing() ? exprIsObject1 : exprIsObject2; ->resultIsObject3 : Object +>resultIsObject3 : Object, Symbol(resultIsObject3, Decl(conditionalOperatorConditoinIsAnyType.ts, 61, 3)) >x.doSomeThing() ? exprIsObject1 : exprIsObject2 : Object >x.doSomeThing() : any >x.doSomeThing : any ->x : any +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) >doSomeThing : any ->exprIsObject1 : Object ->exprIsObject2 : Object +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsAnyType.ts, 8, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsAnyType.ts, 14, 3)) var resultIsStringOrBoolean5 = x.doSomeThing() ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean5 : string | boolean +>resultIsStringOrBoolean5 : string | boolean, Symbol(resultIsStringOrBoolean5, Decl(conditionalOperatorConditoinIsAnyType.ts, 62, 3)) >x.doSomeThing() ? exprString1 : exprBoolean1 : string | boolean >x.doSomeThing() : any >x.doSomeThing : any ->x : any +>x : any, Symbol(x, Decl(conditionalOperatorConditoinIsAnyType.ts, 2, 3)) >doSomeThing : any ->exprString1 : string ->exprBoolean1 : boolean +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsAnyType.ts, 7, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsAnyType.ts, 5, 3)) diff --git a/tests/baselines/reference/conditionalOperatorConditoinIsStringType.types b/tests/baselines/reference/conditionalOperatorConditoinIsStringType.types index 45a4db8d295..f8da295be1b 100644 --- a/tests/baselines/reference/conditionalOperatorConditoinIsStringType.types +++ b/tests/baselines/reference/conditionalOperatorConditoinIsStringType.types @@ -1,293 +1,313 @@ === tests/cases/conformance/expressions/conditonalOperator/conditionalOperatorConditoinIsStringType.ts === //Cond ? Expr1 : Expr2, Cond is of string type, Expr1 and Expr2 have the same type var condString: string; ->condString : string +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) var exprAny1: any; ->exprAny1 : any +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsStringType.ts, 3, 3)) var exprBoolean1: boolean; ->exprBoolean1 : boolean +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) var exprNumber1: number; ->exprNumber1 : number +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsStringType.ts, 5, 3)) var exprString1: string; ->exprString1 : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) var exprIsObject1: Object; ->exprIsObject1 : Object ->Object : Object +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsStringType.ts, 7, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var exprAny2: any; ->exprAny2 : any +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsStringType.ts, 9, 3)) var exprBoolean2: boolean; ->exprBoolean2 : boolean +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsStringType.ts, 10, 3)) var exprNumber2: number; ->exprNumber2 : number +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsStringType.ts, 11, 3)) var exprString2: string; ->exprString2 : string +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsStringType.ts, 12, 3)) var exprIsObject2: Object; ->exprIsObject2 : Object ->Object : Object +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsStringType.ts, 13, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) //Cond is a string type variable condString ? exprAny1 : exprAny2; >condString ? exprAny1 : exprAny2 : any ->condString : string ->exprAny1 : any ->exprAny2 : any +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsStringType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsStringType.ts, 9, 3)) condString ? exprBoolean1 : exprBoolean2; >condString ? exprBoolean1 : exprBoolean2 : boolean ->condString : string ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsStringType.ts, 10, 3)) condString ? exprNumber1 : exprNumber2; >condString ? exprNumber1 : exprNumber2 : number ->condString : string ->exprNumber1 : number ->exprNumber2 : number +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsStringType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsStringType.ts, 11, 3)) condString ? exprString1 : exprString2; >condString ? exprString1 : exprString2 : string ->condString : string ->exprString1 : string ->exprString2 : string +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsStringType.ts, 12, 3)) condString ? exprIsObject1 : exprIsObject2; >condString ? exprIsObject1 : exprIsObject2 : Object ->condString : string ->exprIsObject1 : Object ->exprIsObject2 : Object +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsStringType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsStringType.ts, 13, 3)) condString ? exprString1 : exprBoolean1; // union >condString ? exprString1 : exprBoolean1 : string | boolean ->condString : string ->exprString1 : string ->exprBoolean1 : boolean +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) //Cond is a string type literal "" ? exprAny1 : exprAny2; >"" ? exprAny1 : exprAny2 : any ->exprAny1 : any ->exprAny2 : any +>"" : string +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsStringType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsStringType.ts, 9, 3)) "string" ? exprBoolean1 : exprBoolean2; >"string" ? exprBoolean1 : exprBoolean2 : boolean ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>"string" : string +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsStringType.ts, 10, 3)) 'c' ? exprNumber1 : exprNumber2; >'c' ? exprNumber1 : exprNumber2 : number ->exprNumber1 : number ->exprNumber2 : number +>'c' : string +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsStringType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsStringType.ts, 11, 3)) 'string' ? exprString1 : exprString2; >'string' ? exprString1 : exprString2 : string ->exprString1 : string ->exprString2 : string +>'string' : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsStringType.ts, 12, 3)) " " ? exprIsObject1 : exprIsObject2; >" " ? exprIsObject1 : exprIsObject2 : Object ->exprIsObject1 : Object ->exprIsObject2 : Object +>" " : string +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsStringType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsStringType.ts, 13, 3)) "hello " ? exprString1 : exprBoolean1; // union >"hello " ? exprString1 : exprBoolean1 : string | boolean ->exprString1 : string ->exprBoolean1 : boolean +>"hello " : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) //Cond is a string type expression function foo() { return "string" }; ->foo : () => string +>foo : () => string, Symbol(foo, Decl(conditionalOperatorConditoinIsStringType.ts, 29, 38)) +>"string" : string var array = ["1", "2", "3"]; ->array : string[] +>array : string[], Symbol(array, Decl(conditionalOperatorConditoinIsStringType.ts, 33, 3)) >["1", "2", "3"] : string[] +>"1" : string +>"2" : string +>"3" : string typeof condString ? exprAny1 : exprAny2; >typeof condString ? exprAny1 : exprAny2 : any >typeof condString : string ->condString : string ->exprAny1 : any ->exprAny2 : any +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsStringType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsStringType.ts, 9, 3)) condString.toUpperCase ? exprBoolean1 : exprBoolean2; >condString.toUpperCase ? exprBoolean1 : exprBoolean2 : boolean ->condString.toUpperCase : () => string ->condString : string ->toUpperCase : () => string ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>condString.toUpperCase : () => string, Symbol(String.toUpperCase, Decl(lib.d.ts, 405, 32)) +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>toUpperCase : () => string, Symbol(String.toUpperCase, Decl(lib.d.ts, 405, 32)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsStringType.ts, 10, 3)) condString + "string" ? exprNumber1 : exprNumber2; >condString + "string" ? exprNumber1 : exprNumber2 : number >condString + "string" : string ->condString : string ->exprNumber1 : number ->exprNumber2 : number +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>"string" : string +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsStringType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsStringType.ts, 11, 3)) foo() ? exprString1 : exprString2; >foo() ? exprString1 : exprString2 : string >foo() : string ->foo : () => string ->exprString1 : string ->exprString2 : string +>foo : () => string, Symbol(foo, Decl(conditionalOperatorConditoinIsStringType.ts, 29, 38)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsStringType.ts, 12, 3)) array[1] ? exprIsObject1 : exprIsObject2; >array[1] ? exprIsObject1 : exprIsObject2 : Object >array[1] : string ->array : string[] ->exprIsObject1 : Object ->exprIsObject2 : Object +>array : string[], Symbol(array, Decl(conditionalOperatorConditoinIsStringType.ts, 33, 3)) +>1 : number +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsStringType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsStringType.ts, 13, 3)) foo() ? exprString1 : exprBoolean1; // union >foo() ? exprString1 : exprBoolean1 : string | boolean >foo() : string ->foo : () => string ->exprString1 : string ->exprBoolean1 : boolean +>foo : () => string, Symbol(foo, Decl(conditionalOperatorConditoinIsStringType.ts, 29, 38)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) //Results shoud be same as Expr1 and Expr2 var resultIsAny1 = condString ? exprAny1 : exprAny2; ->resultIsAny1 : any +>resultIsAny1 : any, Symbol(resultIsAny1, Decl(conditionalOperatorConditoinIsStringType.ts, 43, 3)) >condString ? exprAny1 : exprAny2 : any ->condString : string ->exprAny1 : any ->exprAny2 : any +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsStringType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsStringType.ts, 9, 3)) var resultIsBoolean1 = condString ? exprBoolean1 : exprBoolean2; ->resultIsBoolean1 : boolean +>resultIsBoolean1 : boolean, Symbol(resultIsBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 44, 3)) >condString ? exprBoolean1 : exprBoolean2 : boolean ->condString : string ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsStringType.ts, 10, 3)) var resultIsNumber1 = condString ? exprNumber1 : exprNumber2; ->resultIsNumber1 : number +>resultIsNumber1 : number, Symbol(resultIsNumber1, Decl(conditionalOperatorConditoinIsStringType.ts, 45, 3)) >condString ? exprNumber1 : exprNumber2 : number ->condString : string ->exprNumber1 : number ->exprNumber2 : number +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsStringType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsStringType.ts, 11, 3)) var resultIsString1 = condString ? exprString1 : exprString2; ->resultIsString1 : string +>resultIsString1 : string, Symbol(resultIsString1, Decl(conditionalOperatorConditoinIsStringType.ts, 46, 3)) >condString ? exprString1 : exprString2 : string ->condString : string ->exprString1 : string ->exprString2 : string +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsStringType.ts, 12, 3)) var resultIsObject1 = condString ? exprIsObject1 : exprIsObject2; ->resultIsObject1 : Object +>resultIsObject1 : Object, Symbol(resultIsObject1, Decl(conditionalOperatorConditoinIsStringType.ts, 47, 3)) >condString ? exprIsObject1 : exprIsObject2 : Object ->condString : string ->exprIsObject1 : Object ->exprIsObject2 : Object +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsStringType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsStringType.ts, 13, 3)) var resultIsStringOrBoolean1 = condString ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean1 : string | boolean +>resultIsStringOrBoolean1 : string | boolean, Symbol(resultIsStringOrBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 48, 3)) >condString ? exprString1 : exprBoolean1 : string | boolean ->condString : string ->exprString1 : string ->exprBoolean1 : boolean +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) var resultIsAny2 = "" ? exprAny1 : exprAny2; ->resultIsAny2 : any +>resultIsAny2 : any, Symbol(resultIsAny2, Decl(conditionalOperatorConditoinIsStringType.ts, 50, 3)) >"" ? exprAny1 : exprAny2 : any ->exprAny1 : any ->exprAny2 : any +>"" : string +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsStringType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsStringType.ts, 9, 3)) var resultIsBoolean2 = "string" ? exprBoolean1 : exprBoolean2; ->resultIsBoolean2 : boolean +>resultIsBoolean2 : boolean, Symbol(resultIsBoolean2, Decl(conditionalOperatorConditoinIsStringType.ts, 51, 3)) >"string" ? exprBoolean1 : exprBoolean2 : boolean ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>"string" : string +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsStringType.ts, 10, 3)) var resultIsNumber2 = 'c' ? exprNumber1 : exprNumber2; ->resultIsNumber2 : number +>resultIsNumber2 : number, Symbol(resultIsNumber2, Decl(conditionalOperatorConditoinIsStringType.ts, 52, 3)) >'c' ? exprNumber1 : exprNumber2 : number ->exprNumber1 : number ->exprNumber2 : number +>'c' : string +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsStringType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsStringType.ts, 11, 3)) var resultIsString2 = 'string' ? exprString1 : exprString2; ->resultIsString2 : string +>resultIsString2 : string, Symbol(resultIsString2, Decl(conditionalOperatorConditoinIsStringType.ts, 53, 3)) >'string' ? exprString1 : exprString2 : string ->exprString1 : string ->exprString2 : string +>'string' : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsStringType.ts, 12, 3)) var resultIsObject2 = " " ? exprIsObject1 : exprIsObject2; ->resultIsObject2 : Object +>resultIsObject2 : Object, Symbol(resultIsObject2, Decl(conditionalOperatorConditoinIsStringType.ts, 54, 3)) >" " ? exprIsObject1 : exprIsObject2 : Object ->exprIsObject1 : Object ->exprIsObject2 : Object +>" " : string +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsStringType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsStringType.ts, 13, 3)) var resultIsStringOrBoolean2 = "hello" ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean2 : string | boolean +>resultIsStringOrBoolean2 : string | boolean, Symbol(resultIsStringOrBoolean2, Decl(conditionalOperatorConditoinIsStringType.ts, 55, 3)) >"hello" ? exprString1 : exprBoolean1 : string | boolean ->exprString1 : string ->exprBoolean1 : boolean +>"hello" : string +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) var resultIsAny3 = typeof condString ? exprAny1 : exprAny2; ->resultIsAny3 : any +>resultIsAny3 : any, Symbol(resultIsAny3, Decl(conditionalOperatorConditoinIsStringType.ts, 57, 3)) >typeof condString ? exprAny1 : exprAny2 : any >typeof condString : string ->condString : string ->exprAny1 : any ->exprAny2 : any +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprAny1 : any, Symbol(exprAny1, Decl(conditionalOperatorConditoinIsStringType.ts, 3, 3)) +>exprAny2 : any, Symbol(exprAny2, Decl(conditionalOperatorConditoinIsStringType.ts, 9, 3)) var resultIsBoolean3 = condString.toUpperCase ? exprBoolean1 : exprBoolean2; ->resultIsBoolean3 : boolean +>resultIsBoolean3 : boolean, Symbol(resultIsBoolean3, Decl(conditionalOperatorConditoinIsStringType.ts, 58, 3)) >condString.toUpperCase ? exprBoolean1 : exprBoolean2 : boolean ->condString.toUpperCase : () => string ->condString : string ->toUpperCase : () => string ->exprBoolean1 : boolean ->exprBoolean2 : boolean +>condString.toUpperCase : () => string, Symbol(String.toUpperCase, Decl(lib.d.ts, 405, 32)) +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>toUpperCase : () => string, Symbol(String.toUpperCase, Decl(lib.d.ts, 405, 32)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) +>exprBoolean2 : boolean, Symbol(exprBoolean2, Decl(conditionalOperatorConditoinIsStringType.ts, 10, 3)) var resultIsNumber3 = condString + "string" ? exprNumber1 : exprNumber2; ->resultIsNumber3 : number +>resultIsNumber3 : number, Symbol(resultIsNumber3, Decl(conditionalOperatorConditoinIsStringType.ts, 59, 3)) >condString + "string" ? exprNumber1 : exprNumber2 : number >condString + "string" : string ->condString : string ->exprNumber1 : number ->exprNumber2 : number +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>"string" : string +>exprNumber1 : number, Symbol(exprNumber1, Decl(conditionalOperatorConditoinIsStringType.ts, 5, 3)) +>exprNumber2 : number, Symbol(exprNumber2, Decl(conditionalOperatorConditoinIsStringType.ts, 11, 3)) var resultIsString3 = foo() ? exprString1 : exprString2; ->resultIsString3 : string +>resultIsString3 : string, Symbol(resultIsString3, Decl(conditionalOperatorConditoinIsStringType.ts, 60, 3)) >foo() ? exprString1 : exprString2 : string >foo() : string ->foo : () => string ->exprString1 : string ->exprString2 : string +>foo : () => string, Symbol(foo, Decl(conditionalOperatorConditoinIsStringType.ts, 29, 38)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprString2 : string, Symbol(exprString2, Decl(conditionalOperatorConditoinIsStringType.ts, 12, 3)) var resultIsObject3 = array[1] ? exprIsObject1 : exprIsObject2; ->resultIsObject3 : Object +>resultIsObject3 : Object, Symbol(resultIsObject3, Decl(conditionalOperatorConditoinIsStringType.ts, 61, 3)) >array[1] ? exprIsObject1 : exprIsObject2 : Object >array[1] : string ->array : string[] ->exprIsObject1 : Object ->exprIsObject2 : Object +>array : string[], Symbol(array, Decl(conditionalOperatorConditoinIsStringType.ts, 33, 3)) +>1 : number +>exprIsObject1 : Object, Symbol(exprIsObject1, Decl(conditionalOperatorConditoinIsStringType.ts, 7, 3)) +>exprIsObject2 : Object, Symbol(exprIsObject2, Decl(conditionalOperatorConditoinIsStringType.ts, 13, 3)) var resultIsStringOrBoolean3 = typeof condString ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean3 : string | boolean +>resultIsStringOrBoolean3 : string | boolean, Symbol(resultIsStringOrBoolean3, Decl(conditionalOperatorConditoinIsStringType.ts, 62, 3)) >typeof condString ? exprString1 : exprBoolean1 : string | boolean >typeof condString : string ->condString : string ->exprString1 : string ->exprBoolean1 : boolean +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) var resultIsStringOrBoolean4 = condString.toUpperCase ? exprString1 : exprBoolean1; // union ->resultIsStringOrBoolean4 : string | boolean +>resultIsStringOrBoolean4 : string | boolean, Symbol(resultIsStringOrBoolean4, Decl(conditionalOperatorConditoinIsStringType.ts, 63, 3)) >condString.toUpperCase ? exprString1 : exprBoolean1 : string | boolean ->condString.toUpperCase : () => string ->condString : string ->toUpperCase : () => string ->exprString1 : string ->exprBoolean1 : boolean +>condString.toUpperCase : () => string, Symbol(String.toUpperCase, Decl(lib.d.ts, 405, 32)) +>condString : string, Symbol(condString, Decl(conditionalOperatorConditoinIsStringType.ts, 1, 3)) +>toUpperCase : () => string, Symbol(String.toUpperCase, Decl(lib.d.ts, 405, 32)) +>exprString1 : string, Symbol(exprString1, Decl(conditionalOperatorConditoinIsStringType.ts, 6, 3)) +>exprBoolean1 : boolean, Symbol(exprBoolean1, Decl(conditionalOperatorConditoinIsStringType.ts, 4, 3)) diff --git a/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.types b/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.types index f925f7f1db6..0bbfe77b18d 100644 --- a/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.types +++ b/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.types @@ -1,188 +1,225 @@ === tests/cases/conformance/expressions/conditonalOperator/conditionalOperatorWithIdenticalBCT.ts === //Cond ? Expr1 : Expr2, Expr1 and Expr2 have identical best common type class X { propertyX: any; propertyX1: number; propertyX2: string }; ->X : X ->propertyX : any ->propertyX1 : number ->propertyX2 : string +>X : X, Symbol(X, Decl(conditionalOperatorWithIdenticalBCT.ts, 0, 0)) +>propertyX : any, Symbol(propertyX, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 9)) +>propertyX1 : number, Symbol(propertyX1, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 25)) +>propertyX2 : string, Symbol(propertyX2, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 45)) class A extends X { propertyA: number }; ->A : A ->X : X ->propertyA : number +>A : A, Symbol(A, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 67)) +>X : X, Symbol(X, Decl(conditionalOperatorWithIdenticalBCT.ts, 0, 0)) +>propertyA : number, Symbol(propertyA, Decl(conditionalOperatorWithIdenticalBCT.ts, 2, 19)) class B extends X { propertyB: string }; ->B : B ->X : X ->propertyB : string +>B : B, Symbol(B, Decl(conditionalOperatorWithIdenticalBCT.ts, 2, 40)) +>X : X, Symbol(X, Decl(conditionalOperatorWithIdenticalBCT.ts, 0, 0)) +>propertyB : string, Symbol(propertyB, Decl(conditionalOperatorWithIdenticalBCT.ts, 3, 19)) var x: X; ->x : X ->X : X +>x : X, Symbol(x, Decl(conditionalOperatorWithIdenticalBCT.ts, 5, 3)) +>X : X, Symbol(X, Decl(conditionalOperatorWithIdenticalBCT.ts, 0, 0)) var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 6, 3)) +>A : A, Symbol(A, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 67)) var b: B; ->b : B ->B : B +>b : B, Symbol(b, Decl(conditionalOperatorWithIdenticalBCT.ts, 7, 3)) +>B : B, Symbol(B, Decl(conditionalOperatorWithIdenticalBCT.ts, 2, 40)) //Cond ? Expr1 : Expr2, Expr1 is supertype //Be Not contextually typed true ? x : a; >true ? x : a : X ->x : X ->a : A +>true : boolean +>x : X, Symbol(x, Decl(conditionalOperatorWithIdenticalBCT.ts, 5, 3)) +>a : A, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 6, 3)) var result1 = true ? x : a; ->result1 : X +>result1 : X, Symbol(result1, Decl(conditionalOperatorWithIdenticalBCT.ts, 12, 3)) >true ? x : a : X ->x : X ->a : A +>true : boolean +>x : X, Symbol(x, Decl(conditionalOperatorWithIdenticalBCT.ts, 5, 3)) +>a : A, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 6, 3)) //Expr1 and Expr2 are literals true ? {} : 1; >true ? {} : 1 : {} +>true : boolean >{} : {} +>1 : number true ? { a: 1 } : { a: 2, b: 'string' }; >true ? { a: 1 } : { a: 2, b: 'string' } : { a: number; } +>true : boolean >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 16, 8)) +>1 : number >{ a: 2, b: 'string' } : { a: number; b: string; } ->a : number ->b : string +>a : number, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 16, 19)) +>2 : number +>b : string, Symbol(b, Decl(conditionalOperatorWithIdenticalBCT.ts, 16, 25)) +>'string' : string var result2 = true ? {} : 1; ->result2 : {} +>result2 : {}, Symbol(result2, Decl(conditionalOperatorWithIdenticalBCT.ts, 17, 3)) >true ? {} : 1 : {} +>true : boolean >{} : {} +>1 : number var result3 = true ? { a: 1 } : { a: 2, b: 'string' }; ->result3 : { a: number; } +>result3 : { a: number; }, Symbol(result3, Decl(conditionalOperatorWithIdenticalBCT.ts, 18, 3)) >true ? { a: 1 } : { a: 2, b: 'string' } : { a: number; } +>true : boolean >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 18, 22)) +>1 : number >{ a: 2, b: 'string' } : { a: number; b: string; } ->a : number ->b : string +>a : number, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 18, 33)) +>2 : number +>b : string, Symbol(b, Decl(conditionalOperatorWithIdenticalBCT.ts, 18, 39)) +>'string' : string //Contextually typed var resultIsX1: X = true ? x : a; ->resultIsX1 : X ->X : X +>resultIsX1 : X, Symbol(resultIsX1, Decl(conditionalOperatorWithIdenticalBCT.ts, 21, 3)) +>X : X, Symbol(X, Decl(conditionalOperatorWithIdenticalBCT.ts, 0, 0)) >true ? x : a : X ->x : X ->a : A +>true : boolean +>x : X, Symbol(x, Decl(conditionalOperatorWithIdenticalBCT.ts, 5, 3)) +>a : A, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 6, 3)) var result4: (t: A) => any = true ? (m) => m.propertyX : (n) => n.propertyA; ->result4 : (t: A) => any ->t : A ->A : A +>result4 : (t: A) => any, Symbol(result4, Decl(conditionalOperatorWithIdenticalBCT.ts, 22, 3)) +>t : A, Symbol(t, Decl(conditionalOperatorWithIdenticalBCT.ts, 22, 14)) +>A : A, Symbol(A, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 67)) >true ? (m) => m.propertyX : (n) => n.propertyA : (m: A) => any +>true : boolean >(m) => m.propertyX : (m: A) => any ->m : A ->m.propertyX : any ->m : A ->propertyX : any +>m : A, Symbol(m, Decl(conditionalOperatorWithIdenticalBCT.ts, 22, 37)) +>m.propertyX : any, Symbol(X.propertyX, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 9)) +>m : A, Symbol(m, Decl(conditionalOperatorWithIdenticalBCT.ts, 22, 37)) +>propertyX : any, Symbol(X.propertyX, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 9)) >(n) => n.propertyA : (n: A) => number ->n : A ->n.propertyA : number ->n : A ->propertyA : number +>n : A, Symbol(n, Decl(conditionalOperatorWithIdenticalBCT.ts, 22, 58)) +>n.propertyA : number, Symbol(A.propertyA, Decl(conditionalOperatorWithIdenticalBCT.ts, 2, 19)) +>n : A, Symbol(n, Decl(conditionalOperatorWithIdenticalBCT.ts, 22, 58)) +>propertyA : number, Symbol(A.propertyA, Decl(conditionalOperatorWithIdenticalBCT.ts, 2, 19)) //Cond ? Expr1 : Expr2, Expr2 is supertype //Be Not contextually typed true ? a : x; >true ? a : x : X ->a : A ->x : X +>true : boolean +>a : A, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 6, 3)) +>x : X, Symbol(x, Decl(conditionalOperatorWithIdenticalBCT.ts, 5, 3)) var result5 = true ? a : x; ->result5 : X +>result5 : X, Symbol(result5, Decl(conditionalOperatorWithIdenticalBCT.ts, 27, 3)) >true ? a : x : X ->a : A ->x : X +>true : boolean +>a : A, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 6, 3)) +>x : X, Symbol(x, Decl(conditionalOperatorWithIdenticalBCT.ts, 5, 3)) //Expr1 and Expr2 are literals true ? 1 : {}; >true ? 1 : {} : {} +>true : boolean +>1 : number >{} : {} true ? { a: 2, b: 'string' } : { a: 1 }; >true ? { a: 2, b: 'string' } : { a: 1 } : { a: number; } +>true : boolean >{ a: 2, b: 'string' } : { a: number; b: string; } ->a : number ->b : string +>a : number, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 31, 8)) +>2 : number +>b : string, Symbol(b, Decl(conditionalOperatorWithIdenticalBCT.ts, 31, 14)) +>'string' : string >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 31, 32)) +>1 : number var result6 = true ? 1 : {}; ->result6 : {} +>result6 : {}, Symbol(result6, Decl(conditionalOperatorWithIdenticalBCT.ts, 32, 3)) >true ? 1 : {} : {} +>true : boolean +>1 : number >{} : {} var result7 = true ? { a: 2, b: 'string' } : { a: 1 }; ->result7 : { a: number; } +>result7 : { a: number; }, Symbol(result7, Decl(conditionalOperatorWithIdenticalBCT.ts, 33, 3)) >true ? { a: 2, b: 'string' } : { a: 1 } : { a: number; } +>true : boolean >{ a: 2, b: 'string' } : { a: number; b: string; } ->a : number ->b : string +>a : number, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 33, 22)) +>2 : number +>b : string, Symbol(b, Decl(conditionalOperatorWithIdenticalBCT.ts, 33, 28)) +>'string' : string >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 33, 46)) +>1 : number //Contextually typed var resultIsX2: X = true ? x : a; ->resultIsX2 : X ->X : X +>resultIsX2 : X, Symbol(resultIsX2, Decl(conditionalOperatorWithIdenticalBCT.ts, 36, 3)) +>X : X, Symbol(X, Decl(conditionalOperatorWithIdenticalBCT.ts, 0, 0)) >true ? x : a : X ->x : X ->a : A +>true : boolean +>x : X, Symbol(x, Decl(conditionalOperatorWithIdenticalBCT.ts, 5, 3)) +>a : A, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 6, 3)) var result8: (t: A) => any = true ? (m) => m.propertyA : (n) => n.propertyX; ->result8 : (t: A) => any ->t : A ->A : A +>result8 : (t: A) => any, Symbol(result8, Decl(conditionalOperatorWithIdenticalBCT.ts, 37, 3)) +>t : A, Symbol(t, Decl(conditionalOperatorWithIdenticalBCT.ts, 37, 14)) +>A : A, Symbol(A, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 67)) >true ? (m) => m.propertyA : (n) => n.propertyX : (n: A) => any +>true : boolean >(m) => m.propertyA : (m: A) => number ->m : A ->m.propertyA : number ->m : A ->propertyA : number +>m : A, Symbol(m, Decl(conditionalOperatorWithIdenticalBCT.ts, 37, 37)) +>m.propertyA : number, Symbol(A.propertyA, Decl(conditionalOperatorWithIdenticalBCT.ts, 2, 19)) +>m : A, Symbol(m, Decl(conditionalOperatorWithIdenticalBCT.ts, 37, 37)) +>propertyA : number, Symbol(A.propertyA, Decl(conditionalOperatorWithIdenticalBCT.ts, 2, 19)) >(n) => n.propertyX : (n: A) => any ->n : A ->n.propertyX : any ->n : A ->propertyX : any +>n : A, Symbol(n, Decl(conditionalOperatorWithIdenticalBCT.ts, 37, 58)) +>n.propertyX : any, Symbol(X.propertyX, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 9)) +>n : A, Symbol(n, Decl(conditionalOperatorWithIdenticalBCT.ts, 37, 58)) +>propertyX : any, Symbol(X.propertyX, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 9)) //Result = Cond ? Expr1 : Expr2, Result is supertype //Contextually typed var resultIsX3: X = true ? a : b; ->resultIsX3 : X ->X : X +>resultIsX3 : X, Symbol(resultIsX3, Decl(conditionalOperatorWithIdenticalBCT.ts, 41, 3)) +>X : X, Symbol(X, Decl(conditionalOperatorWithIdenticalBCT.ts, 0, 0)) >true ? a : b : A | B ->a : A ->b : B +>true : boolean +>a : A, Symbol(a, Decl(conditionalOperatorWithIdenticalBCT.ts, 6, 3)) +>b : B, Symbol(b, Decl(conditionalOperatorWithIdenticalBCT.ts, 7, 3)) var result10: (t: X) => any = true ? (m) => m.propertyX1 : (n) => n.propertyX2; ->result10 : (t: X) => any ->t : X ->X : X +>result10 : (t: X) => any, Symbol(result10, Decl(conditionalOperatorWithIdenticalBCT.ts, 42, 3)) +>t : X, Symbol(t, Decl(conditionalOperatorWithIdenticalBCT.ts, 42, 15)) +>X : X, Symbol(X, Decl(conditionalOperatorWithIdenticalBCT.ts, 0, 0)) >true ? (m) => m.propertyX1 : (n) => n.propertyX2 : ((m: X) => number) | ((n: X) => string) +>true : boolean >(m) => m.propertyX1 : (m: X) => number ->m : X ->m.propertyX1 : number ->m : X ->propertyX1 : number +>m : X, Symbol(m, Decl(conditionalOperatorWithIdenticalBCT.ts, 42, 38)) +>m.propertyX1 : number, Symbol(X.propertyX1, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 25)) +>m : X, Symbol(m, Decl(conditionalOperatorWithIdenticalBCT.ts, 42, 38)) +>propertyX1 : number, Symbol(X.propertyX1, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 25)) >(n) => n.propertyX2 : (n: X) => string ->n : X ->n.propertyX2 : string ->n : X ->propertyX2 : string +>n : X, Symbol(n, Decl(conditionalOperatorWithIdenticalBCT.ts, 42, 60)) +>n.propertyX2 : string, Symbol(X.propertyX2, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 45)) +>n : X, Symbol(n, Decl(conditionalOperatorWithIdenticalBCT.ts, 42, 60)) +>propertyX2 : string, Symbol(X.propertyX2, Decl(conditionalOperatorWithIdenticalBCT.ts, 1, 45)) //Expr1 and Expr2 are literals var result11: any = true ? 1 : 'string'; ->result11 : any +>result11 : any, Symbol(result11, Decl(conditionalOperatorWithIdenticalBCT.ts, 45, 3)) >true ? 1 : 'string' : string | number +>true : boolean +>1 : number +>'string' : string diff --git a/tests/baselines/reference/conditionallyDuplicateOverloadsCausedByOverloadResolution.types b/tests/baselines/reference/conditionallyDuplicateOverloadsCausedByOverloadResolution.types index 41981e19b8e..3fbb68b3386 100644 --- a/tests/baselines/reference/conditionallyDuplicateOverloadsCausedByOverloadResolution.types +++ b/tests/baselines/reference/conditionallyDuplicateOverloadsCausedByOverloadResolution.types @@ -1,75 +1,75 @@ === tests/cases/compiler/conditionallyDuplicateOverloadsCausedByOverloadResolution.ts === declare function foo(func: (x: string, y: string) => any): boolean; ->foo : { (func: (x: string, y: string) => any): boolean; (func: (x: string, y: number) => any): string; } ->func : (x: string, y: string) => any ->x : string ->y : string +>foo : { (func: (x: string, y: string) => any): boolean; (func: (x: string, y: number) => any): string; }, Symbol(foo, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 0, 0), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 0, 67)) +>func : (x: string, y: string) => any, Symbol(func, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 0, 21)) +>x : string, Symbol(x, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 0, 28)) +>y : string, Symbol(y, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 0, 38)) declare function foo(func: (x: string, y: number) => any): string; ->foo : { (func: (x: string, y: string) => any): boolean; (func: (x: string, y: number) => any): string; } ->func : (x: string, y: number) => any ->x : string ->y : number +>foo : { (func: (x: string, y: string) => any): boolean; (func: (x: string, y: number) => any): string; }, Symbol(foo, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 0, 0), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 0, 67)) +>func : (x: string, y: number) => any, Symbol(func, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 1, 21)) +>x : string, Symbol(x, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 1, 28)) +>y : number, Symbol(y, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 1, 38)) var out = foo((x, y) => { ->out : boolean +>out : boolean, Symbol(out, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 3, 3)) >foo((x, y) => { function bar(a: typeof x): void; function bar(b: typeof y): void; function bar() { } return bar;}) : boolean ->foo : { (func: (x: string, y: string) => any): boolean; (func: (x: string, y: number) => any): string; } +>foo : { (func: (x: string, y: string) => any): boolean; (func: (x: string, y: number) => any): string; }, Symbol(foo, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 0, 0), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 0, 67)) >(x, y) => { function bar(a: typeof x): void; function bar(b: typeof y): void; function bar() { } return bar;} : (x: string, y: string) => { (a: string): void; (b: string): void; } ->x : string ->y : string +>x : string, Symbol(x, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 3, 15)) +>y : string, Symbol(y, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 3, 17)) function bar(a: typeof x): void; ->bar : { (a: string): void; (b: string): void; } ->a : string ->x : string +>bar : { (a: string): void; (b: string): void; }, Symbol(bar, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 3, 25), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 4, 36), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 5, 36)) +>a : string, Symbol(a, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 4, 17)) +>x : string, Symbol(x, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 3, 15)) function bar(b: typeof y): void; ->bar : { (a: string): void; (b: string): void; } ->b : string ->y : string +>bar : { (a: string): void; (b: string): void; }, Symbol(bar, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 3, 25), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 4, 36), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 5, 36)) +>b : string, Symbol(b, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 5, 17)) +>y : string, Symbol(y, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 3, 17)) function bar() { } ->bar : { (a: string): void; (b: string): void; } +>bar : { (a: string): void; (b: string): void; }, Symbol(bar, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 3, 25), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 4, 36), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 5, 36)) return bar; ->bar : { (a: string): void; (b: string): void; } +>bar : { (a: string): void; (b: string): void; }, Symbol(bar, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 3, 25), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 4, 36), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 5, 36)) }); declare function foo2(func: (x: string, y: string) => any): boolean; ->foo2 : { (func: (x: string, y: string) => any): boolean; (func: (x: string, y: number) => any): string; } ->func : (x: string, y: string) => any ->x : string ->y : string +>foo2 : { (func: (x: string, y: string) => any): boolean; (func: (x: string, y: number) => any): string; }, Symbol(foo2, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 8, 3), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 10, 68)) +>func : (x: string, y: string) => any, Symbol(func, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 10, 22)) +>x : string, Symbol(x, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 10, 29)) +>y : string, Symbol(y, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 10, 39)) declare function foo2(func: (x: string, y: number) => any): string; ->foo2 : { (func: (x: string, y: string) => any): boolean; (func: (x: string, y: number) => any): string; } ->func : (x: string, y: number) => any ->x : string ->y : number +>foo2 : { (func: (x: string, y: string) => any): boolean; (func: (x: string, y: number) => any): string; }, Symbol(foo2, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 8, 3), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 10, 68)) +>func : (x: string, y: number) => any, Symbol(func, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 11, 22)) +>x : string, Symbol(x, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 11, 29)) +>y : number, Symbol(y, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 11, 39)) var out2 = foo2((x, y) => { ->out2 : boolean +>out2 : boolean, Symbol(out2, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 13, 3)) >foo2((x, y) => { var bar: { (a: typeof x): void; (b: typeof y): void; }; return bar;}) : boolean ->foo2 : { (func: (x: string, y: string) => any): boolean; (func: (x: string, y: number) => any): string; } +>foo2 : { (func: (x: string, y: string) => any): boolean; (func: (x: string, y: number) => any): string; }, Symbol(foo2, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 8, 3), Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 10, 68)) >(x, y) => { var bar: { (a: typeof x): void; (b: typeof y): void; }; return bar;} : (x: string, y: string) => { (a: string): void; (b: string): void; } ->x : string ->y : string +>x : string, Symbol(x, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 13, 17)) +>y : string, Symbol(y, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 13, 19)) var bar: { ->bar : { (a: string): void; (b: string): void; } +>bar : { (a: string): void; (b: string): void; }, Symbol(bar, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 14, 7)) (a: typeof x): void; ->a : string ->x : string +>a : string, Symbol(a, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 15, 9)) +>x : string, Symbol(x, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 13, 17)) (b: typeof y): void; ->b : string ->y : string +>b : string, Symbol(b, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 16, 9)) +>y : string, Symbol(y, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 13, 19)) }; return bar; ->bar : { (a: string): void; (b: string): void; } +>bar : { (a: string): void; (b: string): void; }, Symbol(bar, Decl(conditionallyDuplicateOverloadsCausedByOverloadResolution.ts, 14, 7)) }); diff --git a/tests/baselines/reference/constDeclarationShadowedByVarDeclaration2.types b/tests/baselines/reference/constDeclarationShadowedByVarDeclaration2.types index 4217db45509..83ddc662e79 100644 --- a/tests/baselines/reference/constDeclarationShadowedByVarDeclaration2.types +++ b/tests/baselines/reference/constDeclarationShadowedByVarDeclaration2.types @@ -2,15 +2,17 @@ // No errors, const declaration is not shadowed function outer() { ->outer : () => void +>outer : () => void, Symbol(outer, Decl(constDeclarationShadowedByVarDeclaration2.ts, 0, 0)) const x = 0; ->x : number +>x : number, Symbol(x, Decl(constDeclarationShadowedByVarDeclaration2.ts, 3, 9)) +>0 : number function inner() { ->inner : () => void +>inner : () => void, Symbol(inner, Decl(constDeclarationShadowedByVarDeclaration2.ts, 3, 16)) var x = "inner"; ->x : string +>x : string, Symbol(x, Decl(constDeclarationShadowedByVarDeclaration2.ts, 5, 11)) +>"inner" : string } } diff --git a/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types b/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types index 8241b319d84..2909d5d0b3b 100644 --- a/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types +++ b/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types @@ -1,25 +1,27 @@ === tests/cases/compiler/constDeclarationShadowedByVarDeclaration3.ts === // Ensure only checking for const declarations shadowed by vars class Rule { ->Rule : Rule +>Rule : Rule, Symbol(Rule, Decl(constDeclarationShadowedByVarDeclaration3.ts, 0, 0)) public regex: RegExp = new RegExp(''); ->regex : RegExp ->RegExp : RegExp +>regex : RegExp, Symbol(regex, Decl(constDeclarationShadowedByVarDeclaration3.ts, 1, 12)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) >new RegExp('') : RegExp ->RegExp : RegExpConstructor +>RegExp : RegExpConstructor, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) +>'' : string public name: string = ''; ->name : string +>name : string, Symbol(name, Decl(constDeclarationShadowedByVarDeclaration3.ts, 2, 42)) +>'' : string constructor(name: string) { ->name : string +>name : string, Symbol(name, Decl(constDeclarationShadowedByVarDeclaration3.ts, 5, 16)) this.name = name; >this.name = name : string ->this.name : string ->this : Rule ->name : string ->name : string +>this.name : string, Symbol(name, Decl(constDeclarationShadowedByVarDeclaration3.ts, 2, 42)) +>this : Rule, Symbol(Rule, Decl(constDeclarationShadowedByVarDeclaration3.ts, 0, 0)) +>name : string, Symbol(name, Decl(constDeclarationShadowedByVarDeclaration3.ts, 2, 42)) +>name : string, Symbol(name, Decl(constDeclarationShadowedByVarDeclaration3.ts, 5, 16)) } } diff --git a/tests/baselines/reference/constDeclarations-ambient.types b/tests/baselines/reference/constDeclarations-ambient.types index 0ab2d4b700a..8c0ce520f81 100644 --- a/tests/baselines/reference/constDeclarations-ambient.types +++ b/tests/baselines/reference/constDeclarations-ambient.types @@ -2,22 +2,22 @@ // No error declare const c1: boolean; ->c1 : boolean +>c1 : boolean, Symbol(c1, Decl(constDeclarations-ambient.ts, 2, 13)) declare const c2: number; ->c2 : number +>c2 : number, Symbol(c2, Decl(constDeclarations-ambient.ts, 3, 13)) declare const c3, c4 :string, c5: any; ->c3 : any ->c4 : string ->c5 : any +>c3 : any, Symbol(c3, Decl(constDeclarations-ambient.ts, 4, 13)) +>c4 : string, Symbol(c4, Decl(constDeclarations-ambient.ts, 4, 17)) +>c5 : any, Symbol(c5, Decl(constDeclarations-ambient.ts, 4, 29)) declare module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(constDeclarations-ambient.ts, 4, 38)) const c6; ->c6 : any +>c6 : any, Symbol(c6, Decl(constDeclarations-ambient.ts, 7, 9)) const c7: number; ->c7 : number +>c7 : number, Symbol(c7, Decl(constDeclarations-ambient.ts, 8, 9)) } diff --git a/tests/baselines/reference/constDeclarations-es5.types b/tests/baselines/reference/constDeclarations-es5.types index be55dc0febc..a1328b6047b 100644 --- a/tests/baselines/reference/constDeclarations-es5.types +++ b/tests/baselines/reference/constDeclarations-es5.types @@ -1,13 +1,18 @@ === tests/cases/compiler/constDeclarations-es5.ts === const z7 = false; ->z7 : boolean +>z7 : boolean, Symbol(z7, Decl(constDeclarations-es5.ts, 1, 5)) +>false : boolean const z8: number = 23; ->z8 : number +>z8 : number, Symbol(z8, Decl(constDeclarations-es5.ts, 2, 5)) +>23 : number const z9 = 0, z10 :string = "", z11 = null; ->z9 : number ->z10 : string ->z11 : any +>z9 : number, Symbol(z9, Decl(constDeclarations-es5.ts, 3, 5)) +>0 : number +>z10 : string, Symbol(z10, Decl(constDeclarations-es5.ts, 3, 13)) +>"" : string +>z11 : any, Symbol(z11, Decl(constDeclarations-es5.ts, 3, 31)) +>null : null diff --git a/tests/baselines/reference/constDeclarations-scopes2.types b/tests/baselines/reference/constDeclarations-scopes2.types index 9609ef8f44b..5a11a2610e1 100644 --- a/tests/baselines/reference/constDeclarations-scopes2.types +++ b/tests/baselines/reference/constDeclarations-scopes2.types @@ -2,31 +2,35 @@ // global const c = "string"; ->c : string +>c : string, Symbol(c, Decl(constDeclarations-scopes2.ts, 2, 5)) +>"string" : string var n: number; ->n : number +>n : number, Symbol(n, Decl(constDeclarations-scopes2.ts, 4, 3)) var b: boolean; ->b : boolean +>b : boolean, Symbol(b, Decl(constDeclarations-scopes2.ts, 5, 3)) // for scope for (const c = 0; c < 10; n = c ) { ->c : number +>c : number, Symbol(c, Decl(constDeclarations-scopes2.ts, 8, 10)) +>0 : number >c < 10 : boolean ->c : number +>c : number, Symbol(c, Decl(constDeclarations-scopes2.ts, 8, 10)) +>10 : number >n = c : number ->n : number ->c : number +>n : number, Symbol(n, Decl(constDeclarations-scopes2.ts, 4, 3)) +>c : number, Symbol(c, Decl(constDeclarations-scopes2.ts, 8, 10)) // for block const c = false; ->c : boolean +>c : boolean, Symbol(c, Decl(constDeclarations-scopes2.ts, 10, 9)) +>false : boolean b = c; >b = c : boolean ->b : boolean ->c : boolean +>b : boolean, Symbol(b, Decl(constDeclarations-scopes2.ts, 5, 3)) +>c : boolean, Symbol(c, Decl(constDeclarations-scopes2.ts, 10, 9)) } diff --git a/tests/baselines/reference/constDeclarations.types b/tests/baselines/reference/constDeclarations.types index e82a2f0035f..f1a6490f60f 100644 --- a/tests/baselines/reference/constDeclarations.types +++ b/tests/baselines/reference/constDeclarations.types @@ -2,27 +2,36 @@ // No error const c1 = false; ->c1 : boolean +>c1 : boolean, Symbol(c1, Decl(constDeclarations.ts, 2, 5)) +>false : boolean const c2: number = 23; ->c2 : number +>c2 : number, Symbol(c2, Decl(constDeclarations.ts, 3, 5)) +>23 : number const c3 = 0, c4 :string = "", c5 = null; ->c3 : number ->c4 : string ->c5 : any +>c3 : number, Symbol(c3, Decl(constDeclarations.ts, 4, 5)) +>0 : number +>c4 : string, Symbol(c4, Decl(constDeclarations.ts, 4, 13)) +>"" : string +>c5 : any, Symbol(c5, Decl(constDeclarations.ts, 4, 30)) +>null : null for(const c4 = 0; c4 < 9; ) { break; } ->c4 : number +>c4 : number, Symbol(c4, Decl(constDeclarations.ts, 7, 9)) +>0 : number >c4 < 9 : boolean ->c4 : number +>c4 : number, Symbol(c4, Decl(constDeclarations.ts, 7, 9)) +>9 : number for(const c5 = 0, c6 = 0; c5 < c6; ) { break; } ->c5 : number ->c6 : number +>c5 : number, Symbol(c5, Decl(constDeclarations.ts, 10, 9)) +>0 : number +>c6 : number, Symbol(c6, Decl(constDeclarations.ts, 10, 17)) +>0 : number >c5 < c6 : boolean ->c5 : number ->c6 : number +>c5 : number, Symbol(c5, Decl(constDeclarations.ts, 10, 9)) +>c6 : number, Symbol(c6, Decl(constDeclarations.ts, 10, 17)) diff --git a/tests/baselines/reference/constDeclarations2.types b/tests/baselines/reference/constDeclarations2.types index c81eca96b0d..a8587008d1a 100644 --- a/tests/baselines/reference/constDeclarations2.types +++ b/tests/baselines/reference/constDeclarations2.types @@ -2,17 +2,22 @@ // No error module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(constDeclarations2.ts, 0, 0)) export const c1 = false; ->c1 : boolean +>c1 : boolean, Symbol(c1, Decl(constDeclarations2.ts, 3, 16)) +>false : boolean export const c2: number = 23; ->c2 : number +>c2 : number, Symbol(c2, Decl(constDeclarations2.ts, 4, 16)) +>23 : number export const c3 = 0, c4 :string = "", c5 = null; ->c3 : number ->c4 : string ->c5 : any +>c3 : number, Symbol(c3, Decl(constDeclarations2.ts, 5, 16)) +>0 : number +>c4 : string, Symbol(c4, Decl(constDeclarations2.ts, 5, 24)) +>"" : string +>c5 : any, Symbol(c5, Decl(constDeclarations2.ts, 5, 41)) +>null : null } diff --git a/tests/baselines/reference/constEnumDeclarations.types b/tests/baselines/reference/constEnumDeclarations.types index 9dc87eadef7..87fe95a3f1f 100644 --- a/tests/baselines/reference/constEnumDeclarations.types +++ b/tests/baselines/reference/constEnumDeclarations.types @@ -1,30 +1,33 @@ === tests/cases/compiler/constEnumDeclarations.ts === const enum E { ->E : E +>E : E, Symbol(E, Decl(constEnumDeclarations.ts, 0, 0)) A = 1, ->A : E +>A : E, Symbol(E.A, Decl(constEnumDeclarations.ts, 1, 14)) +>1 : number B = 2, ->B : E +>B : E, Symbol(E.B, Decl(constEnumDeclarations.ts, 2, 10)) +>2 : number C = A | B ->C : E +>C : E, Symbol(E.C, Decl(constEnumDeclarations.ts, 3, 10)) >A | B : number ->A : E ->B : E +>A : E, Symbol(E.A, Decl(constEnumDeclarations.ts, 1, 14)) +>B : E, Symbol(E.B, Decl(constEnumDeclarations.ts, 2, 10)) } const enum E2 { ->E2 : E2 +>E2 : E2, Symbol(E2, Decl(constEnumDeclarations.ts, 5, 1)) A = 1, ->A : E2 +>A : E2, Symbol(E2.A, Decl(constEnumDeclarations.ts, 7, 15)) +>1 : number B, ->B : E2 +>B : E2, Symbol(E2.B, Decl(constEnumDeclarations.ts, 8, 10)) C ->C : E2 +>C : E2, Symbol(E2.C, Decl(constEnumDeclarations.ts, 9, 6)) } diff --git a/tests/baselines/reference/constEnumExternalModule.types b/tests/baselines/reference/constEnumExternalModule.types index 9c7b43a24d4..5a6f25477c1 100644 --- a/tests/baselines/reference/constEnumExternalModule.types +++ b/tests/baselines/reference/constEnumExternalModule.types @@ -1,21 +1,22 @@ === tests/cases/compiler/m2.ts === import A = require('m1') ->A : typeof A +>A : typeof A, Symbol(A, Decl(m2.ts, 0, 0)) var v = A.V; ->v : A ->A.V : A ->A : typeof A ->V : A +>v : A, Symbol(v, Decl(m2.ts, 1, 3)) +>A.V : A, Symbol(A.V, Decl(m1.ts, 0, 14)) +>A : typeof A, Symbol(A, Decl(m2.ts, 0, 0)) +>V : A, Symbol(A.V, Decl(m1.ts, 0, 14)) === tests/cases/compiler/m1.ts === const enum E { ->E : E +>E : E, Symbol(E, Decl(m1.ts, 0, 0)) V = 100 ->V : E +>V : E, Symbol(E.V, Decl(m1.ts, 0, 14)) +>100 : number } export = E ->E : E +>E : E, Symbol(E, Decl(m1.ts, 0, 0)) diff --git a/tests/baselines/reference/constEnumOnlyModuleMerging.types b/tests/baselines/reference/constEnumOnlyModuleMerging.types index 30426e3fa4c..a1782e32589 100644 --- a/tests/baselines/reference/constEnumOnlyModuleMerging.types +++ b/tests/baselines/reference/constEnumOnlyModuleMerging.types @@ -1,37 +1,38 @@ === tests/cases/compiler/constEnumOnlyModuleMerging.ts === module Outer { ->Outer : typeof Outer +>Outer : typeof Outer, Symbol(Outer, Decl(constEnumOnlyModuleMerging.ts, 0, 0), Decl(constEnumOnlyModuleMerging.ts, 2, 1)) export var x = 1; ->x : number +>x : number, Symbol(x, Decl(constEnumOnlyModuleMerging.ts, 1, 14)) +>1 : number } module Outer { ->Outer : typeof Outer +>Outer : typeof Outer, Symbol(Outer, Decl(constEnumOnlyModuleMerging.ts, 0, 0), Decl(constEnumOnlyModuleMerging.ts, 2, 1)) export const enum A { X } ->A : A ->X : A +>A : A, Symbol(A, Decl(constEnumOnlyModuleMerging.ts, 4, 14)) +>X : A, Symbol(A.X, Decl(constEnumOnlyModuleMerging.ts, 5, 25)) } module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(constEnumOnlyModuleMerging.ts, 6, 1)) import O = Outer; ->O : typeof O ->Outer : typeof O +>O : typeof O, Symbol(O, Decl(constEnumOnlyModuleMerging.ts, 8, 10)) +>Outer : typeof O, Symbol(O, Decl(constEnumOnlyModuleMerging.ts, 0, 0), Decl(constEnumOnlyModuleMerging.ts, 2, 1)) var x = O.A.X; ->x : O.A ->O.A.X : O.A ->O.A : typeof O.A ->O : typeof O ->A : typeof O.A ->X : O.A +>x : O.A, Symbol(x, Decl(constEnumOnlyModuleMerging.ts, 10, 7)) +>O.A.X : O.A, Symbol(O.A.X, Decl(constEnumOnlyModuleMerging.ts, 5, 25)) +>O.A : typeof O.A, Symbol(O.A, Decl(constEnumOnlyModuleMerging.ts, 4, 14)) +>O : typeof O, Symbol(O, Decl(constEnumOnlyModuleMerging.ts, 8, 10)) +>A : typeof O.A, Symbol(O.A, Decl(constEnumOnlyModuleMerging.ts, 4, 14)) +>X : O.A, Symbol(O.A.X, Decl(constEnumOnlyModuleMerging.ts, 5, 25)) var y = O.x; ->y : number ->O.x : number ->O : typeof O ->x : number +>y : number, Symbol(y, Decl(constEnumOnlyModuleMerging.ts, 11, 7)) +>O.x : number, Symbol(O.x, Decl(constEnumOnlyModuleMerging.ts, 1, 14)) +>O : typeof O, Symbol(O, Decl(constEnumOnlyModuleMerging.ts, 8, 10)) +>x : number, Symbol(O.x, Decl(constEnumOnlyModuleMerging.ts, 1, 14)) } diff --git a/tests/baselines/reference/constEnums.types b/tests/baselines/reference/constEnums.types index 396b2e1c32b..b16f3964fbe 100644 --- a/tests/baselines/reference/constEnums.types +++ b/tests/baselines/reference/constEnums.types @@ -1,556 +1,587 @@ === tests/cases/compiler/constEnums.ts === const enum Enum1 { ->Enum1 : Enum1 +>Enum1 : Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) A0 = 100, ->A0 : Enum1 +>A0 : Enum1, Symbol(Enum1.A0, Decl(constEnums.ts, 0, 18)) +>100 : number } const enum Enum1 { ->Enum1 : Enum1 +>Enum1 : Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) // correct cases A, ->A : Enum1 +>A : Enum1, Symbol(Enum1.A, Decl(constEnums.ts, 4, 18)) B, ->B : Enum1 +>B : Enum1, Symbol(Enum1.B, Decl(constEnums.ts, 6, 6)) C = 10, ->C : Enum1 +>C : Enum1, Symbol(Enum1.C, Decl(constEnums.ts, 7, 6)) +>10 : number D = A | B, ->D : Enum1 +>D : Enum1, Symbol(Enum1.D, Decl(constEnums.ts, 8, 11)) >A | B : number ->A : Enum1 ->B : Enum1 +>A : Enum1, Symbol(Enum1.A, Decl(constEnums.ts, 4, 18)) +>B : Enum1, Symbol(Enum1.B, Decl(constEnums.ts, 6, 6)) E = A | 1, ->E : Enum1 +>E : Enum1, Symbol(Enum1.E, Decl(constEnums.ts, 9, 14)) >A | 1 : number ->A : Enum1 +>A : Enum1, Symbol(Enum1.A, Decl(constEnums.ts, 4, 18)) +>1 : number F = 1 | A, ->F : Enum1 +>F : Enum1, Symbol(Enum1.F, Decl(constEnums.ts, 10, 14)) >1 | A : number ->A : Enum1 +>1 : number +>A : Enum1, Symbol(Enum1.A, Decl(constEnums.ts, 4, 18)) G = (1 & 1), ->G : Enum1 +>G : Enum1, Symbol(Enum1.G, Decl(constEnums.ts, 11, 14)) >(1 & 1) : number >1 & 1 : number +>1 : number +>1 : number H = ~(A | B), ->H : Enum1 +>H : Enum1, Symbol(Enum1.H, Decl(constEnums.ts, 12, 16)) >~(A | B) : number >(A | B) : number >A | B : number ->A : Enum1 ->B : Enum1 +>A : Enum1, Symbol(Enum1.A, Decl(constEnums.ts, 4, 18)) +>B : Enum1, Symbol(Enum1.B, Decl(constEnums.ts, 6, 6)) I = A >>> 1, ->I : Enum1 +>I : Enum1, Symbol(Enum1.I, Decl(constEnums.ts, 13, 17)) >A >>> 1 : number ->A : Enum1 +>A : Enum1, Symbol(Enum1.A, Decl(constEnums.ts, 4, 18)) +>1 : number J = 1 & A, ->J : Enum1 +>J : Enum1, Symbol(Enum1.J, Decl(constEnums.ts, 14, 16)) >1 & A : number ->A : Enum1 +>1 : number +>A : Enum1, Symbol(Enum1.A, Decl(constEnums.ts, 4, 18)) K = ~(1 | 5), ->K : Enum1 +>K : Enum1, Symbol(Enum1.K, Decl(constEnums.ts, 15, 14)) >~(1 | 5) : number >(1 | 5) : number >1 | 5 : number +>1 : number +>5 : number L = ~D, ->L : Enum1 +>L : Enum1, Symbol(Enum1.L, Decl(constEnums.ts, 16, 17)) >~D : number ->D : Enum1 +>D : Enum1, Symbol(Enum1.D, Decl(constEnums.ts, 8, 11)) M = E << B, ->M : Enum1 +>M : Enum1, Symbol(Enum1.M, Decl(constEnums.ts, 17, 11)) >E << B : number ->E : Enum1 ->B : Enum1 +>E : Enum1, Symbol(Enum1.E, Decl(constEnums.ts, 9, 14)) +>B : Enum1, Symbol(Enum1.B, Decl(constEnums.ts, 6, 6)) N = E << 1, ->N : Enum1 +>N : Enum1, Symbol(Enum1.N, Decl(constEnums.ts, 18, 15)) >E << 1 : number ->E : Enum1 +>E : Enum1, Symbol(Enum1.E, Decl(constEnums.ts, 9, 14)) +>1 : number O = E >> B, ->O : Enum1 +>O : Enum1, Symbol(Enum1.O, Decl(constEnums.ts, 19, 15)) >E >> B : number ->E : Enum1 ->B : Enum1 +>E : Enum1, Symbol(Enum1.E, Decl(constEnums.ts, 9, 14)) +>B : Enum1, Symbol(Enum1.B, Decl(constEnums.ts, 6, 6)) P = E >> 1, ->P : Enum1 +>P : Enum1, Symbol(Enum1.P, Decl(constEnums.ts, 20, 15)) >E >> 1 : number ->E : Enum1 +>E : Enum1, Symbol(Enum1.E, Decl(constEnums.ts, 9, 14)) +>1 : number Q = -D, ->Q : Enum1 +>Q : Enum1, Symbol(Enum1.Q, Decl(constEnums.ts, 21, 15)) >-D : number ->D : Enum1 +>D : Enum1, Symbol(Enum1.D, Decl(constEnums.ts, 8, 11)) R = C & 5, ->R : Enum1 +>R : Enum1, Symbol(Enum1.R, Decl(constEnums.ts, 22, 11)) >C & 5 : number ->C : Enum1 +>C : Enum1, Symbol(Enum1.C, Decl(constEnums.ts, 7, 6)) +>5 : number S = 5 & C, ->S : Enum1 +>S : Enum1, Symbol(Enum1.S, Decl(constEnums.ts, 23, 14)) >5 & C : number ->C : Enum1 +>5 : number +>C : Enum1, Symbol(Enum1.C, Decl(constEnums.ts, 7, 6)) T = C | D, ->T : Enum1 +>T : Enum1, Symbol(Enum1.T, Decl(constEnums.ts, 24, 14)) >C | D : number ->C : Enum1 ->D : Enum1 +>C : Enum1, Symbol(Enum1.C, Decl(constEnums.ts, 7, 6)) +>D : Enum1, Symbol(Enum1.D, Decl(constEnums.ts, 8, 11)) U = C | 1, ->U : Enum1 +>U : Enum1, Symbol(Enum1.U, Decl(constEnums.ts, 25, 14)) >C | 1 : number ->C : Enum1 +>C : Enum1, Symbol(Enum1.C, Decl(constEnums.ts, 7, 6)) +>1 : number V = 10 | D, ->V : Enum1 +>V : Enum1, Symbol(Enum1.V, Decl(constEnums.ts, 26, 14)) >10 | D : number ->D : Enum1 +>10 : number +>D : Enum1, Symbol(Enum1.D, Decl(constEnums.ts, 8, 11)) W = Enum1.V, ->W : Enum1 ->Enum1.V : Enum1 ->Enum1 : typeof Enum1 ->V : Enum1 +>W : Enum1, Symbol(Enum1.W, Decl(constEnums.ts, 27, 15)) +>Enum1.V : Enum1, Symbol(Enum1.V, Decl(constEnums.ts, 26, 14)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>V : Enum1, Symbol(Enum1.V, Decl(constEnums.ts, 26, 14)) // correct cases: reference to the enum member from different enum declaration W1 = A0, ->W1 : Enum1 ->A0 : Enum1 +>W1 : Enum1, Symbol(Enum1.W1, Decl(constEnums.ts, 28, 16)) +>A0 : Enum1, Symbol(Enum1.A0, Decl(constEnums.ts, 0, 18)) W2 = Enum1.A0, ->W2 : Enum1 ->Enum1.A0 : Enum1 ->Enum1 : typeof Enum1 ->A0 : Enum1 +>W2 : Enum1, Symbol(Enum1.W2, Decl(constEnums.ts, 31, 12)) +>Enum1.A0 : Enum1, Symbol(Enum1.A0, Decl(constEnums.ts, 0, 18)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>A0 : Enum1, Symbol(Enum1.A0, Decl(constEnums.ts, 0, 18)) W3 = Enum1["A0"], ->W3 : Enum1 +>W3 : Enum1, Symbol(Enum1.W3, Decl(constEnums.ts, 32, 18)) >Enum1["A0"] : Enum1 ->Enum1 : typeof Enum1 +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>"A0" : string, Symbol(Enum1.A0, Decl(constEnums.ts, 0, 18)) W4 = Enum1["W"], ->W4 : Enum1 +>W4 : Enum1, Symbol(Enum1.W4, Decl(constEnums.ts, 33, 21)) >Enum1["W"] : Enum1 ->Enum1 : typeof Enum1 +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>"W" : string, Symbol(Enum1.W, Decl(constEnums.ts, 27, 15)) } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(constEnums.ts, 35, 1), Decl(constEnums.ts, 47, 1)) export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) export module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) export const enum E { ->E : E +>E : E, Symbol(E, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) V1 = 1, ->V1 : E +>V1 : E, Symbol(I.V1, Decl(constEnums.ts, 41, 33)) +>1 : number V2 = A.B.C.E.V1 | 100 ->V2 : E +>V2 : E, Symbol(I.V2, Decl(constEnums.ts, 42, 23)) >A.B.C.E.V1 | 100 : number ->A.B.C.E.V1 : E ->A.B.C.E : typeof E ->A.B.C : typeof C ->A.B : typeof B ->A : typeof A ->B : typeof B ->C : typeof C ->E : typeof E ->V1 : E +>A.B.C.E.V1 : E, Symbol(I.V1, Decl(constEnums.ts, 41, 33)) +>A.B.C.E : typeof E, Symbol(E, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) +>A.B.C : typeof C, Symbol(C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) +>A.B : typeof B, Symbol(B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) +>A : typeof A, Symbol(A, Decl(constEnums.ts, 35, 1), Decl(constEnums.ts, 47, 1)) +>B : typeof B, Symbol(B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) +>C : typeof C, Symbol(C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) +>E : typeof E, Symbol(E, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) +>V1 : E, Symbol(I.V1, Decl(constEnums.ts, 41, 33)) +>100 : number } } } } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(constEnums.ts, 35, 1), Decl(constEnums.ts, 47, 1)) export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) export module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) export const enum E { ->E : E +>E : E, Symbol(E, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) V3 = A.B.C.E["V2"] & 200, ->V3 : E +>V3 : E, Symbol(I.V3, Decl(constEnums.ts, 52, 33)) >A.B.C.E["V2"] & 200 : number >A.B.C.E["V2"] : E ->A.B.C.E : typeof E ->A.B.C : typeof C ->A.B : typeof B ->A : typeof A ->B : typeof B ->C : typeof C ->E : typeof E +>A.B.C.E : typeof E, Symbol(E, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) +>A.B.C : typeof C, Symbol(C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) +>A.B : typeof B, Symbol(B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) +>A : typeof A, Symbol(A, Decl(constEnums.ts, 35, 1), Decl(constEnums.ts, 47, 1)) +>B : typeof B, Symbol(B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) +>C : typeof C, Symbol(C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) +>E : typeof E, Symbol(E, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) +>"V2" : string, Symbol(I.V2, Decl(constEnums.ts, 42, 23)) +>200 : number } } } } module A1 { ->A1 : typeof A1 +>A1 : typeof A1, Symbol(A1, Decl(constEnums.ts, 57, 1)) export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(constEnums.ts, 59, 11)) export module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(constEnums.ts, 60, 21)) export const enum E { ->E : E +>E : E, Symbol(E, Decl(constEnums.ts, 61, 25)) V1 = 10, ->V1 : E +>V1 : E, Symbol(E.V1, Decl(constEnums.ts, 62, 33)) +>10 : number V2 = 110, ->V2 : E +>V2 : E, Symbol(E.V2, Decl(constEnums.ts, 63, 24)) +>110 : number } } } } module A2 { ->A2 : typeof A2 +>A2 : typeof A2, Symbol(A2, Decl(constEnums.ts, 68, 1)) export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(constEnums.ts, 70, 11)) export module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(constEnums.ts, 71, 21), Decl(constEnums.ts, 77, 9)) export const enum E { ->E : E +>E : E, Symbol(E, Decl(constEnums.ts, 72, 25)) V1 = 10, ->V1 : E +>V1 : E, Symbol(E.V1, Decl(constEnums.ts, 73, 33)) +>10 : number V2 = 110, ->V2 : E +>V2 : E, Symbol(E.V2, Decl(constEnums.ts, 74, 24)) +>110 : number } } // module C will be classified as value export module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(constEnums.ts, 71, 21), Decl(constEnums.ts, 77, 9)) var x = 1 ->x : number +>x : number, Symbol(x, Decl(constEnums.ts, 80, 15)) +>1 : number } } } import I = A.B.C.E; ->I : typeof I ->A : typeof A ->B : typeof A.B ->C : typeof A.B.C ->E : I +>I : typeof I, Symbol(I, Decl(constEnums.ts, 83, 1)) +>A : typeof A, Symbol(A, Decl(constEnums.ts, 35, 1), Decl(constEnums.ts, 47, 1)) +>B : typeof A.B, Symbol(A.B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) +>C : typeof A.B.C, Symbol(A.B.C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) +>E : I, Symbol(I, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) import I1 = A1.B; ->I1 : typeof I1 ->A1 : typeof A1 ->B : typeof I1 +>I1 : typeof I1, Symbol(I1, Decl(constEnums.ts, 85, 19)) +>A1 : typeof A1, Symbol(A1, Decl(constEnums.ts, 57, 1)) +>B : typeof I1, Symbol(I1, Decl(constEnums.ts, 59, 11)) import I2 = A2.B; ->I2 : typeof I2 ->A2 : typeof A2 ->B : typeof I2 +>I2 : typeof I2, Symbol(I2, Decl(constEnums.ts, 86, 17)) +>A2 : typeof A2, Symbol(A2, Decl(constEnums.ts, 68, 1)) +>B : typeof I2, Symbol(I2, Decl(constEnums.ts, 70, 11)) function foo0(e: I): void { ->foo0 : (e: I) => void ->e : I ->I : I +>foo0 : (e: I) => void, Symbol(foo0, Decl(constEnums.ts, 87, 17)) +>e : I, Symbol(e, Decl(constEnums.ts, 89, 14)) +>I : I, Symbol(I, Decl(constEnums.ts, 83, 1)) if (e === I.V1) { >e === I.V1 : boolean ->e : I ->I.V1 : I ->I : typeof I ->V1 : I +>e : I, Symbol(e, Decl(constEnums.ts, 89, 14)) +>I.V1 : I, Symbol(I.V1, Decl(constEnums.ts, 41, 33)) +>I : typeof I, Symbol(I, Decl(constEnums.ts, 83, 1)) +>V1 : I, Symbol(I.V1, Decl(constEnums.ts, 41, 33)) } else if (e === I.V2) { >e === I.V2 : boolean ->e : I ->I.V2 : I ->I : typeof I ->V2 : I +>e : I, Symbol(e, Decl(constEnums.ts, 89, 14)) +>I.V2 : I, Symbol(I.V2, Decl(constEnums.ts, 42, 23)) +>I : typeof I, Symbol(I, Decl(constEnums.ts, 83, 1)) +>V2 : I, Symbol(I.V2, Decl(constEnums.ts, 42, 23)) } } function foo1(e: I1.C.E): void { ->foo1 : (e: I1.C.E) => void ->e : I1.C.E ->I1 : unknown ->C : unknown ->E : I1.C.E +>foo1 : (e: I1.C.E) => void, Symbol(foo1, Decl(constEnums.ts, 94, 1)) +>e : I1.C.E, Symbol(e, Decl(constEnums.ts, 96, 14)) +>I1 : any, Symbol(I1, Decl(constEnums.ts, 85, 19)) +>C : any, Symbol(I1.C, Decl(constEnums.ts, 60, 21)) +>E : I1.C.E, Symbol(I1.C.E, Decl(constEnums.ts, 61, 25)) if (e === I1.C.E.V1) { >e === I1.C.E.V1 : boolean ->e : I1.C.E ->I1.C.E.V1 : I1.C.E ->I1.C.E : typeof I1.C.E ->I1.C : typeof I1.C ->I1 : typeof I1 ->C : typeof I1.C ->E : typeof I1.C.E ->V1 : I1.C.E +>e : I1.C.E, Symbol(e, Decl(constEnums.ts, 96, 14)) +>I1.C.E.V1 : I1.C.E, Symbol(I1.C.E.V1, Decl(constEnums.ts, 62, 33)) +>I1.C.E : typeof I1.C.E, Symbol(I1.C.E, Decl(constEnums.ts, 61, 25)) +>I1.C : typeof I1.C, Symbol(I1.C, Decl(constEnums.ts, 60, 21)) +>I1 : typeof I1, Symbol(I1, Decl(constEnums.ts, 85, 19)) +>C : typeof I1.C, Symbol(I1.C, Decl(constEnums.ts, 60, 21)) +>E : typeof I1.C.E, Symbol(I1.C.E, Decl(constEnums.ts, 61, 25)) +>V1 : I1.C.E, Symbol(I1.C.E.V1, Decl(constEnums.ts, 62, 33)) } else if (e === I1.C.E.V2) { >e === I1.C.E.V2 : boolean ->e : I1.C.E ->I1.C.E.V2 : I1.C.E ->I1.C.E : typeof I1.C.E ->I1.C : typeof I1.C ->I1 : typeof I1 ->C : typeof I1.C ->E : typeof I1.C.E ->V2 : I1.C.E +>e : I1.C.E, Symbol(e, Decl(constEnums.ts, 96, 14)) +>I1.C.E.V2 : I1.C.E, Symbol(I1.C.E.V2, Decl(constEnums.ts, 63, 24)) +>I1.C.E : typeof I1.C.E, Symbol(I1.C.E, Decl(constEnums.ts, 61, 25)) +>I1.C : typeof I1.C, Symbol(I1.C, Decl(constEnums.ts, 60, 21)) +>I1 : typeof I1, Symbol(I1, Decl(constEnums.ts, 85, 19)) +>C : typeof I1.C, Symbol(I1.C, Decl(constEnums.ts, 60, 21)) +>E : typeof I1.C.E, Symbol(I1.C.E, Decl(constEnums.ts, 61, 25)) +>V2 : I1.C.E, Symbol(I1.C.E.V2, Decl(constEnums.ts, 63, 24)) } } function foo2(e: I2.C.E): void { ->foo2 : (e: I2.C.E) => void ->e : I2.C.E ->I2 : unknown ->C : unknown ->E : I2.C.E +>foo2 : (e: I2.C.E) => void, Symbol(foo2, Decl(constEnums.ts, 101, 1)) +>e : I2.C.E, Symbol(e, Decl(constEnums.ts, 103, 14)) +>I2 : any, Symbol(I2, Decl(constEnums.ts, 86, 17)) +>C : any, Symbol(I2.C, Decl(constEnums.ts, 71, 21), Decl(constEnums.ts, 77, 9)) +>E : I2.C.E, Symbol(I2.C.E, Decl(constEnums.ts, 72, 25)) if (e === I2.C.E.V1) { >e === I2.C.E.V1 : boolean ->e : I2.C.E ->I2.C.E.V1 : I2.C.E ->I2.C.E : typeof I2.C.E ->I2.C : typeof I2.C ->I2 : typeof I2 ->C : typeof I2.C ->E : typeof I2.C.E ->V1 : I2.C.E +>e : I2.C.E, Symbol(e, Decl(constEnums.ts, 103, 14)) +>I2.C.E.V1 : I2.C.E, Symbol(I2.C.E.V1, Decl(constEnums.ts, 73, 33)) +>I2.C.E : typeof I2.C.E, Symbol(I2.C.E, Decl(constEnums.ts, 72, 25)) +>I2.C : typeof I2.C, Symbol(I2.C, Decl(constEnums.ts, 71, 21), Decl(constEnums.ts, 77, 9)) +>I2 : typeof I2, Symbol(I2, Decl(constEnums.ts, 86, 17)) +>C : typeof I2.C, Symbol(I2.C, Decl(constEnums.ts, 71, 21), Decl(constEnums.ts, 77, 9)) +>E : typeof I2.C.E, Symbol(I2.C.E, Decl(constEnums.ts, 72, 25)) +>V1 : I2.C.E, Symbol(I2.C.E.V1, Decl(constEnums.ts, 73, 33)) } else if (e === I2.C.E.V2) { >e === I2.C.E.V2 : boolean ->e : I2.C.E ->I2.C.E.V2 : I2.C.E ->I2.C.E : typeof I2.C.E ->I2.C : typeof I2.C ->I2 : typeof I2 ->C : typeof I2.C ->E : typeof I2.C.E ->V2 : I2.C.E +>e : I2.C.E, Symbol(e, Decl(constEnums.ts, 103, 14)) +>I2.C.E.V2 : I2.C.E, Symbol(I2.C.E.V2, Decl(constEnums.ts, 74, 24)) +>I2.C.E : typeof I2.C.E, Symbol(I2.C.E, Decl(constEnums.ts, 72, 25)) +>I2.C : typeof I2.C, Symbol(I2.C, Decl(constEnums.ts, 71, 21), Decl(constEnums.ts, 77, 9)) +>I2 : typeof I2, Symbol(I2, Decl(constEnums.ts, 86, 17)) +>C : typeof I2.C, Symbol(I2.C, Decl(constEnums.ts, 71, 21), Decl(constEnums.ts, 77, 9)) +>E : typeof I2.C.E, Symbol(I2.C.E, Decl(constEnums.ts, 72, 25)) +>V2 : I2.C.E, Symbol(I2.C.E.V2, Decl(constEnums.ts, 74, 24)) } } function foo(x: Enum1) { ->foo : (x: Enum1) => void ->x : Enum1 ->Enum1 : Enum1 +>foo : (x: Enum1) => void, Symbol(foo, Decl(constEnums.ts, 108, 1)) +>x : Enum1, Symbol(x, Decl(constEnums.ts, 111, 13)) +>Enum1 : Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) switch (x) { ->x : Enum1 +>x : Enum1, Symbol(x, Decl(constEnums.ts, 111, 13)) case Enum1.A: ->Enum1.A : Enum1 ->Enum1 : typeof Enum1 ->A : Enum1 +>Enum1.A : Enum1, Symbol(Enum1.A, Decl(constEnums.ts, 4, 18)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>A : Enum1, Symbol(Enum1.A, Decl(constEnums.ts, 4, 18)) case Enum1.B: ->Enum1.B : Enum1 ->Enum1 : typeof Enum1 ->B : Enum1 +>Enum1.B : Enum1, Symbol(Enum1.B, Decl(constEnums.ts, 6, 6)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>B : Enum1, Symbol(Enum1.B, Decl(constEnums.ts, 6, 6)) case Enum1.C: ->Enum1.C : Enum1 ->Enum1 : typeof Enum1 ->C : Enum1 +>Enum1.C : Enum1, Symbol(Enum1.C, Decl(constEnums.ts, 7, 6)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>C : Enum1, Symbol(Enum1.C, Decl(constEnums.ts, 7, 6)) case Enum1.D: ->Enum1.D : Enum1 ->Enum1 : typeof Enum1 ->D : Enum1 +>Enum1.D : Enum1, Symbol(Enum1.D, Decl(constEnums.ts, 8, 11)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>D : Enum1, Symbol(Enum1.D, Decl(constEnums.ts, 8, 11)) case Enum1.E: ->Enum1.E : Enum1 ->Enum1 : typeof Enum1 ->E : Enum1 +>Enum1.E : Enum1, Symbol(Enum1.E, Decl(constEnums.ts, 9, 14)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>E : Enum1, Symbol(Enum1.E, Decl(constEnums.ts, 9, 14)) case Enum1.F: ->Enum1.F : Enum1 ->Enum1 : typeof Enum1 ->F : Enum1 +>Enum1.F : Enum1, Symbol(Enum1.F, Decl(constEnums.ts, 10, 14)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>F : Enum1, Symbol(Enum1.F, Decl(constEnums.ts, 10, 14)) case Enum1.G: ->Enum1.G : Enum1 ->Enum1 : typeof Enum1 ->G : Enum1 +>Enum1.G : Enum1, Symbol(Enum1.G, Decl(constEnums.ts, 11, 14)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>G : Enum1, Symbol(Enum1.G, Decl(constEnums.ts, 11, 14)) case Enum1.H: ->Enum1.H : Enum1 ->Enum1 : typeof Enum1 ->H : Enum1 +>Enum1.H : Enum1, Symbol(Enum1.H, Decl(constEnums.ts, 12, 16)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>H : Enum1, Symbol(Enum1.H, Decl(constEnums.ts, 12, 16)) case Enum1.I: ->Enum1.I : Enum1 ->Enum1 : typeof Enum1 ->I : Enum1 +>Enum1.I : Enum1, Symbol(Enum1.I, Decl(constEnums.ts, 13, 17)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>I : Enum1, Symbol(Enum1.I, Decl(constEnums.ts, 13, 17)) case Enum1.J: ->Enum1.J : Enum1 ->Enum1 : typeof Enum1 ->J : Enum1 +>Enum1.J : Enum1, Symbol(Enum1.J, Decl(constEnums.ts, 14, 16)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>J : Enum1, Symbol(Enum1.J, Decl(constEnums.ts, 14, 16)) case Enum1.K: ->Enum1.K : Enum1 ->Enum1 : typeof Enum1 ->K : Enum1 +>Enum1.K : Enum1, Symbol(Enum1.K, Decl(constEnums.ts, 15, 14)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>K : Enum1, Symbol(Enum1.K, Decl(constEnums.ts, 15, 14)) case Enum1.L: ->Enum1.L : Enum1 ->Enum1 : typeof Enum1 ->L : Enum1 +>Enum1.L : Enum1, Symbol(Enum1.L, Decl(constEnums.ts, 16, 17)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>L : Enum1, Symbol(Enum1.L, Decl(constEnums.ts, 16, 17)) case Enum1.M: ->Enum1.M : Enum1 ->Enum1 : typeof Enum1 ->M : Enum1 +>Enum1.M : Enum1, Symbol(Enum1.M, Decl(constEnums.ts, 17, 11)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>M : Enum1, Symbol(Enum1.M, Decl(constEnums.ts, 17, 11)) case Enum1.N: ->Enum1.N : Enum1 ->Enum1 : typeof Enum1 ->N : Enum1 +>Enum1.N : Enum1, Symbol(Enum1.N, Decl(constEnums.ts, 18, 15)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>N : Enum1, Symbol(Enum1.N, Decl(constEnums.ts, 18, 15)) case Enum1.O: ->Enum1.O : Enum1 ->Enum1 : typeof Enum1 ->O : Enum1 +>Enum1.O : Enum1, Symbol(Enum1.O, Decl(constEnums.ts, 19, 15)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>O : Enum1, Symbol(Enum1.O, Decl(constEnums.ts, 19, 15)) case Enum1.P: ->Enum1.P : Enum1 ->Enum1 : typeof Enum1 ->P : Enum1 +>Enum1.P : Enum1, Symbol(Enum1.P, Decl(constEnums.ts, 20, 15)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>P : Enum1, Symbol(Enum1.P, Decl(constEnums.ts, 20, 15)) case Enum1.Q: ->Enum1.Q : Enum1 ->Enum1 : typeof Enum1 ->Q : Enum1 +>Enum1.Q : Enum1, Symbol(Enum1.Q, Decl(constEnums.ts, 21, 15)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>Q : Enum1, Symbol(Enum1.Q, Decl(constEnums.ts, 21, 15)) case Enum1.R: ->Enum1.R : Enum1 ->Enum1 : typeof Enum1 ->R : Enum1 +>Enum1.R : Enum1, Symbol(Enum1.R, Decl(constEnums.ts, 22, 11)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>R : Enum1, Symbol(Enum1.R, Decl(constEnums.ts, 22, 11)) case Enum1.S: ->Enum1.S : Enum1 ->Enum1 : typeof Enum1 ->S : Enum1 +>Enum1.S : Enum1, Symbol(Enum1.S, Decl(constEnums.ts, 23, 14)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>S : Enum1, Symbol(Enum1.S, Decl(constEnums.ts, 23, 14)) case Enum1["T"]: >Enum1["T"] : Enum1 ->Enum1 : typeof Enum1 +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>"T" : string, Symbol(Enum1.T, Decl(constEnums.ts, 24, 14)) case Enum1.U: ->Enum1.U : Enum1 ->Enum1 : typeof Enum1 ->U : Enum1 +>Enum1.U : Enum1, Symbol(Enum1.U, Decl(constEnums.ts, 25, 14)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>U : Enum1, Symbol(Enum1.U, Decl(constEnums.ts, 25, 14)) case Enum1.V: ->Enum1.V : Enum1 ->Enum1 : typeof Enum1 ->V : Enum1 +>Enum1.V : Enum1, Symbol(Enum1.V, Decl(constEnums.ts, 26, 14)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>V : Enum1, Symbol(Enum1.V, Decl(constEnums.ts, 26, 14)) case Enum1.W: ->Enum1.W : Enum1 ->Enum1 : typeof Enum1 ->W : Enum1 +>Enum1.W : Enum1, Symbol(Enum1.W, Decl(constEnums.ts, 27, 15)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>W : Enum1, Symbol(Enum1.W, Decl(constEnums.ts, 27, 15)) case Enum1.W1: ->Enum1.W1 : Enum1 ->Enum1 : typeof Enum1 ->W1 : Enum1 +>Enum1.W1 : Enum1, Symbol(Enum1.W1, Decl(constEnums.ts, 28, 16)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>W1 : Enum1, Symbol(Enum1.W1, Decl(constEnums.ts, 28, 16)) case Enum1.W2: ->Enum1.W2 : Enum1 ->Enum1 : typeof Enum1 ->W2 : Enum1 +>Enum1.W2 : Enum1, Symbol(Enum1.W2, Decl(constEnums.ts, 31, 12)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>W2 : Enum1, Symbol(Enum1.W2, Decl(constEnums.ts, 31, 12)) case Enum1.W3: ->Enum1.W3 : Enum1 ->Enum1 : typeof Enum1 ->W3 : Enum1 +>Enum1.W3 : Enum1, Symbol(Enum1.W3, Decl(constEnums.ts, 32, 18)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>W3 : Enum1, Symbol(Enum1.W3, Decl(constEnums.ts, 32, 18)) case Enum1.W4: ->Enum1.W4 : Enum1 ->Enum1 : typeof Enum1 ->W4 : Enum1 +>Enum1.W4 : Enum1, Symbol(Enum1.W4, Decl(constEnums.ts, 33, 21)) +>Enum1 : typeof Enum1, Symbol(Enum1, Decl(constEnums.ts, 0, 0), Decl(constEnums.ts, 2, 1)) +>W4 : Enum1, Symbol(Enum1.W4, Decl(constEnums.ts, 33, 21)) break; } } function bar(e: A.B.C.E): number { ->bar : (e: I) => number ->e : I ->A : unknown ->B : unknown ->C : unknown ->E : I +>bar : (e: I) => number, Symbol(bar, Decl(constEnums.ts, 142, 1)) +>e : I, Symbol(e, Decl(constEnums.ts, 144, 13)) +>A : any, Symbol(A, Decl(constEnums.ts, 35, 1), Decl(constEnums.ts, 47, 1)) +>B : any, Symbol(A.B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) +>C : any, Symbol(A.B.C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) +>E : I, Symbol(I, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) switch (e) { ->e : I +>e : I, Symbol(e, Decl(constEnums.ts, 144, 13)) case A.B.C.E.V1: return 1; ->A.B.C.E.V1 : I ->A.B.C.E : typeof I ->A.B.C : typeof A.B.C ->A.B : typeof A.B ->A : typeof A ->B : typeof A.B ->C : typeof A.B.C ->E : typeof I ->V1 : I +>A.B.C.E.V1 : I, Symbol(I.V1, Decl(constEnums.ts, 41, 33)) +>A.B.C.E : typeof I, Symbol(I, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) +>A.B.C : typeof A.B.C, Symbol(A.B.C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) +>A.B : typeof A.B, Symbol(A.B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) +>A : typeof A, Symbol(A, Decl(constEnums.ts, 35, 1), Decl(constEnums.ts, 47, 1)) +>B : typeof A.B, Symbol(A.B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) +>C : typeof A.B.C, Symbol(A.B.C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) +>E : typeof I, Symbol(I, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) +>V1 : I, Symbol(I.V1, Decl(constEnums.ts, 41, 33)) +>1 : number case A.B.C.E.V2: return 1; ->A.B.C.E.V2 : I ->A.B.C.E : typeof I ->A.B.C : typeof A.B.C ->A.B : typeof A.B ->A : typeof A ->B : typeof A.B ->C : typeof A.B.C ->E : typeof I ->V2 : I +>A.B.C.E.V2 : I, Symbol(I.V2, Decl(constEnums.ts, 42, 23)) +>A.B.C.E : typeof I, Symbol(I, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) +>A.B.C : typeof A.B.C, Symbol(A.B.C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) +>A.B : typeof A.B, Symbol(A.B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) +>A : typeof A, Symbol(A, Decl(constEnums.ts, 35, 1), Decl(constEnums.ts, 47, 1)) +>B : typeof A.B, Symbol(A.B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) +>C : typeof A.B.C, Symbol(A.B.C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) +>E : typeof I, Symbol(I, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) +>V2 : I, Symbol(I.V2, Decl(constEnums.ts, 42, 23)) +>1 : number case A.B.C.E.V3: return 1; ->A.B.C.E.V3 : I ->A.B.C.E : typeof I ->A.B.C : typeof A.B.C ->A.B : typeof A.B ->A : typeof A ->B : typeof A.B ->C : typeof A.B.C ->E : typeof I ->V3 : I +>A.B.C.E.V3 : I, Symbol(I.V3, Decl(constEnums.ts, 52, 33)) +>A.B.C.E : typeof I, Symbol(I, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) +>A.B.C : typeof A.B.C, Symbol(A.B.C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) +>A.B : typeof A.B, Symbol(A.B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) +>A : typeof A, Symbol(A, Decl(constEnums.ts, 35, 1), Decl(constEnums.ts, 47, 1)) +>B : typeof A.B, Symbol(A.B, Decl(constEnums.ts, 38, 10), Decl(constEnums.ts, 49, 10)) +>C : typeof A.B.C, Symbol(A.B.C, Decl(constEnums.ts, 39, 21), Decl(constEnums.ts, 50, 21)) +>E : typeof I, Symbol(I, Decl(constEnums.ts, 40, 25), Decl(constEnums.ts, 51, 25)) +>V3 : I, Symbol(I.V3, Decl(constEnums.ts, 52, 33)) +>1 : number } } diff --git a/tests/baselines/reference/constantOverloadFunction.types b/tests/baselines/reference/constantOverloadFunction.types index 1e74486cb32..b39de2c029c 100644 --- a/tests/baselines/reference/constantOverloadFunction.types +++ b/tests/baselines/reference/constantOverloadFunction.types @@ -1,48 +1,49 @@ === tests/cases/compiler/constantOverloadFunction.ts === class Base { foo() { } } ->Base : Base ->foo : () => void +>Base : Base, Symbol(Base, Decl(constantOverloadFunction.ts, 0, 0)) +>foo : () => void, Symbol(foo, Decl(constantOverloadFunction.ts, 0, 12)) class Derived1 extends Base { bar() { } } ->Derived1 : Derived1 ->Base : Base ->bar : () => void +>Derived1 : Derived1, Symbol(Derived1, Decl(constantOverloadFunction.ts, 0, 24)) +>Base : Base, Symbol(Base, Decl(constantOverloadFunction.ts, 0, 0)) +>bar : () => void, Symbol(bar, Decl(constantOverloadFunction.ts, 1, 29)) class Derived2 extends Base { baz() { } } ->Derived2 : Derived2 ->Base : Base ->baz : () => void +>Derived2 : Derived2, Symbol(Derived2, Decl(constantOverloadFunction.ts, 1, 41)) +>Base : Base, Symbol(Base, Decl(constantOverloadFunction.ts, 0, 0)) +>baz : () => void, Symbol(baz, Decl(constantOverloadFunction.ts, 2, 29)) class Derived3 extends Base { biz() { } } ->Derived3 : Derived3 ->Base : Base ->biz : () => void +>Derived3 : Derived3, Symbol(Derived3, Decl(constantOverloadFunction.ts, 2, 41)) +>Base : Base, Symbol(Base, Decl(constantOverloadFunction.ts, 0, 0)) +>biz : () => void, Symbol(biz, Decl(constantOverloadFunction.ts, 3, 29)) function foo(tagName: 'canvas'): Derived1; ->foo : { (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; (tagName: string): Base; } ->tagName : 'canvas' ->Derived1 : Derived1 +>foo : { (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; (tagName: string): Base; }, Symbol(foo, Decl(constantOverloadFunction.ts, 3, 41), Decl(constantOverloadFunction.ts, 5, 42), Decl(constantOverloadFunction.ts, 6, 40), Decl(constantOverloadFunction.ts, 7, 40), Decl(constantOverloadFunction.ts, 8, 36)) +>tagName : 'canvas', Symbol(tagName, Decl(constantOverloadFunction.ts, 5, 13)) +>Derived1 : Derived1, Symbol(Derived1, Decl(constantOverloadFunction.ts, 0, 24)) function foo(tagName: 'div'): Derived2; ->foo : { (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; (tagName: string): Base; } ->tagName : 'div' ->Derived2 : Derived2 +>foo : { (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; (tagName: string): Base; }, Symbol(foo, Decl(constantOverloadFunction.ts, 3, 41), Decl(constantOverloadFunction.ts, 5, 42), Decl(constantOverloadFunction.ts, 6, 40), Decl(constantOverloadFunction.ts, 7, 40), Decl(constantOverloadFunction.ts, 8, 36)) +>tagName : 'div', Symbol(tagName, Decl(constantOverloadFunction.ts, 6, 13)) +>Derived2 : Derived2, Symbol(Derived2, Decl(constantOverloadFunction.ts, 1, 41)) function foo(tagName: 'span'): Derived3; ->foo : { (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; (tagName: string): Base; } ->tagName : 'span' ->Derived3 : Derived3 +>foo : { (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; (tagName: string): Base; }, Symbol(foo, Decl(constantOverloadFunction.ts, 3, 41), Decl(constantOverloadFunction.ts, 5, 42), Decl(constantOverloadFunction.ts, 6, 40), Decl(constantOverloadFunction.ts, 7, 40), Decl(constantOverloadFunction.ts, 8, 36)) +>tagName : 'span', Symbol(tagName, Decl(constantOverloadFunction.ts, 7, 13)) +>Derived3 : Derived3, Symbol(Derived3, Decl(constantOverloadFunction.ts, 2, 41)) function foo(tagName: string): Base; ->foo : { (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; (tagName: string): Base; } ->tagName : string ->Base : Base +>foo : { (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; (tagName: string): Base; }, Symbol(foo, Decl(constantOverloadFunction.ts, 3, 41), Decl(constantOverloadFunction.ts, 5, 42), Decl(constantOverloadFunction.ts, 6, 40), Decl(constantOverloadFunction.ts, 7, 40), Decl(constantOverloadFunction.ts, 8, 36)) +>tagName : string, Symbol(tagName, Decl(constantOverloadFunction.ts, 8, 13)) +>Base : Base, Symbol(Base, Decl(constantOverloadFunction.ts, 0, 0)) function foo(tagName: any): Base { ->foo : { (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; (tagName: string): Base; } ->tagName : any ->Base : Base +>foo : { (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; (tagName: string): Base; }, Symbol(foo, Decl(constantOverloadFunction.ts, 3, 41), Decl(constantOverloadFunction.ts, 5, 42), Decl(constantOverloadFunction.ts, 6, 40), Decl(constantOverloadFunction.ts, 7, 40), Decl(constantOverloadFunction.ts, 8, 36)) +>tagName : any, Symbol(tagName, Decl(constantOverloadFunction.ts, 9, 13)) +>Base : Base, Symbol(Base, Decl(constantOverloadFunction.ts, 0, 0)) return null; +>null : null } diff --git a/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.types b/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.types index 1d94a5e464c..57c56998b9e 100644 --- a/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.types +++ b/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.types @@ -1,44 +1,44 @@ === tests/cases/compiler/constraintCheckInGenericBaseTypeReference.ts === // No errors class Constraint { ->Constraint : Constraint +>Constraint : Constraint, Symbol(Constraint, Decl(constraintCheckInGenericBaseTypeReference.ts, 0, 0)) public method() { } ->method : () => void +>method : () => void, Symbol(method, Decl(constraintCheckInGenericBaseTypeReference.ts, 1, 18)) } class GenericBase { ->GenericBase : GenericBase ->T : T ->Constraint : Constraint +>GenericBase : GenericBase, Symbol(GenericBase, Decl(constraintCheckInGenericBaseTypeReference.ts, 3, 1)) +>T : T, Symbol(T, Decl(constraintCheckInGenericBaseTypeReference.ts, 4, 18)) +>Constraint : Constraint, Symbol(Constraint, Decl(constraintCheckInGenericBaseTypeReference.ts, 0, 0)) public items: any; ->items : any +>items : any, Symbol(items, Decl(constraintCheckInGenericBaseTypeReference.ts, 4, 41)) } class Derived extends GenericBase { ->Derived : Derived ->GenericBase : GenericBase ->TypeArg : TypeArg +>Derived : Derived, Symbol(Derived, Decl(constraintCheckInGenericBaseTypeReference.ts, 6, 1)) +>GenericBase : GenericBase, Symbol(GenericBase, Decl(constraintCheckInGenericBaseTypeReference.ts, 3, 1)) +>TypeArg : TypeArg, Symbol(TypeArg, Decl(constraintCheckInGenericBaseTypeReference.ts, 9, 1)) } class TypeArg { ->TypeArg : TypeArg +>TypeArg : TypeArg, Symbol(TypeArg, Decl(constraintCheckInGenericBaseTypeReference.ts, 9, 1)) public method() { ->method : () => void +>method : () => void, Symbol(method, Decl(constraintCheckInGenericBaseTypeReference.ts, 10, 15)) Container.People.items; ->Container.People.items : any ->Container.People : Derived ->Container : typeof Container ->People : Derived ->items : any +>Container.People.items : any, Symbol(GenericBase.items, Decl(constraintCheckInGenericBaseTypeReference.ts, 4, 41)) +>Container.People : Derived, Symbol(Container.People, Decl(constraintCheckInGenericBaseTypeReference.ts, 16, 17)) +>Container : typeof Container, Symbol(Container, Decl(constraintCheckInGenericBaseTypeReference.ts, 14, 1)) +>People : Derived, Symbol(Container.People, Decl(constraintCheckInGenericBaseTypeReference.ts, 16, 17)) +>items : any, Symbol(GenericBase.items, Decl(constraintCheckInGenericBaseTypeReference.ts, 4, 41)) } } class Container { ->Container : Container +>Container : Container, Symbol(Container, Decl(constraintCheckInGenericBaseTypeReference.ts, 14, 1)) public static People: Derived ->People : Derived ->Derived : Derived +>People : Derived, Symbol(Container.People, Decl(constraintCheckInGenericBaseTypeReference.ts, 16, 17)) +>Derived : Derived, Symbol(Derived, Decl(constraintCheckInGenericBaseTypeReference.ts, 6, 1)) } diff --git a/tests/baselines/reference/constraintPropagationThroughReturnTypes.types b/tests/baselines/reference/constraintPropagationThroughReturnTypes.types index 6f56cca28cc..bc428dad654 100644 --- a/tests/baselines/reference/constraintPropagationThroughReturnTypes.types +++ b/tests/baselines/reference/constraintPropagationThroughReturnTypes.types @@ -1,29 +1,29 @@ === tests/cases/compiler/constraintPropagationThroughReturnTypes.ts === function g(x: T): T { ->g : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>g : (x: T) => T, Symbol(g, Decl(constraintPropagationThroughReturnTypes.ts, 0, 0)) +>T : T, Symbol(T, Decl(constraintPropagationThroughReturnTypes.ts, 0, 11)) +>x : T, Symbol(x, Decl(constraintPropagationThroughReturnTypes.ts, 0, 14)) +>T : T, Symbol(T, Decl(constraintPropagationThroughReturnTypes.ts, 0, 11)) +>T : T, Symbol(T, Decl(constraintPropagationThroughReturnTypes.ts, 0, 11)) return x; ->x : T +>x : T, Symbol(x, Decl(constraintPropagationThroughReturnTypes.ts, 0, 14)) } function f(x: S) { ->f : (x: S) => void ->S : S ->foo : string ->x : S ->S : S +>f : (x: S) => void, Symbol(f, Decl(constraintPropagationThroughReturnTypes.ts, 2, 1)) +>S : S, Symbol(S, Decl(constraintPropagationThroughReturnTypes.ts, 4, 11)) +>foo : string, Symbol(foo, Decl(constraintPropagationThroughReturnTypes.ts, 4, 22)) +>x : S, Symbol(x, Decl(constraintPropagationThroughReturnTypes.ts, 4, 38)) +>S : S, Symbol(S, Decl(constraintPropagationThroughReturnTypes.ts, 4, 11)) var y = g(x); ->y : S +>y : S, Symbol(y, Decl(constraintPropagationThroughReturnTypes.ts, 5, 5)) >g(x) : S ->g : (x: T) => T ->x : S +>g : (x: T) => T, Symbol(g, Decl(constraintPropagationThroughReturnTypes.ts, 0, 0)) +>x : S, Symbol(x, Decl(constraintPropagationThroughReturnTypes.ts, 4, 38)) y; ->y : S +>y : S, Symbol(y, Decl(constraintPropagationThroughReturnTypes.ts, 5, 5)) } diff --git a/tests/baselines/reference/constraintSatisfactionWithAny.types b/tests/baselines/reference/constraintSatisfactionWithAny.types index e007d3cec73..86665e9f410 100644 --- a/tests/baselines/reference/constraintSatisfactionWithAny.types +++ b/tests/baselines/reference/constraintSatisfactionWithAny.types @@ -2,117 +2,120 @@ // any is not a valid type argument unless there is no constraint, or the constraint is any function foo(x: T): T { return null; } ->foo : (x: T) => T ->T : T ->String : String ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(constraintSatisfactionWithAny.ts, 0, 0)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 2, 13)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) +>x : T, Symbol(x, Decl(constraintSatisfactionWithAny.ts, 2, 31)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 2, 13)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 2, 13)) +>null : null function foo2(x: T): T { return null; } ->foo2 : (x: T) => T ->T : T ->x : number ->x : T ->T : T ->T : T +>foo2 : (x: T) => T, Symbol(foo2, Decl(constraintSatisfactionWithAny.ts, 2, 56)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 3, 14)) +>x : number, Symbol(x, Decl(constraintSatisfactionWithAny.ts, 3, 25)) +>x : T, Symbol(x, Decl(constraintSatisfactionWithAny.ts, 3, 39)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 3, 14)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 3, 14)) +>null : null //function foo3(x: T): T { return null; } function foo4(x: T) => void>(x: T): T { return null; } ->foo4 : (x: T) => void>(x: T) => T ->T : T ->T : T ->x : T ->T : T ->x : T ->T : T ->T : T +>foo4 : (x: T) => void>(x: T) => T, Symbol(foo4, Decl(constraintSatisfactionWithAny.ts, 3, 64)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 5, 14)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 5, 25)) +>x : T, Symbol(x, Decl(constraintSatisfactionWithAny.ts, 5, 28)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 5, 25)) +>x : T, Symbol(x, Decl(constraintSatisfactionWithAny.ts, 5, 43)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 5, 14)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 5, 14)) +>null : null var a; ->a : any +>a : any, Symbol(a, Decl(constraintSatisfactionWithAny.ts, 6, 3)) foo(a); >foo(a) : any ->foo : (x: T) => T ->a : any +>foo : (x: T) => T, Symbol(foo, Decl(constraintSatisfactionWithAny.ts, 0, 0)) +>a : any, Symbol(a, Decl(constraintSatisfactionWithAny.ts, 6, 3)) foo2(a); >foo2(a) : any ->foo2 : (x: T) => T ->a : any +>foo2 : (x: T) => T, Symbol(foo2, Decl(constraintSatisfactionWithAny.ts, 2, 56)) +>a : any, Symbol(a, Decl(constraintSatisfactionWithAny.ts, 6, 3)) //foo3(a); foo4(a); >foo4(a) : any ->foo4 : (x: T) => void>(x: T) => T ->a : any +>foo4 : (x: T) => void>(x: T) => T, Symbol(foo4, Decl(constraintSatisfactionWithAny.ts, 3, 64)) +>a : any, Symbol(a, Decl(constraintSatisfactionWithAny.ts, 6, 3)) var b: number; ->b : number +>b : number, Symbol(b, Decl(constraintSatisfactionWithAny.ts, 12, 3)) foo(b); >foo(b) : any ->foo : (x: T) => T ->b : number +>foo : (x: T) => T, Symbol(foo, Decl(constraintSatisfactionWithAny.ts, 0, 0)) +>b : number, Symbol(b, Decl(constraintSatisfactionWithAny.ts, 12, 3)) foo2(b); >foo2(b) : any ->foo2 : (x: T) => T ->b : number +>foo2 : (x: T) => T, Symbol(foo2, Decl(constraintSatisfactionWithAny.ts, 2, 56)) +>b : number, Symbol(b, Decl(constraintSatisfactionWithAny.ts, 12, 3)) //foo3(b); foo4(b); >foo4(b) : any ->foo4 : (x: T) => void>(x: T) => T ->b : number +>foo4 : (x: T) => void>(x: T) => T, Symbol(foo4, Decl(constraintSatisfactionWithAny.ts, 3, 64)) +>b : number, Symbol(b, Decl(constraintSatisfactionWithAny.ts, 12, 3)) //function foo5(x: T, y: U): T { return null; } //foo5(a, a); //foo5(b, b); class C { ->C : C ->T : T ->String : String +>C : C, Symbol(C, Decl(constraintSatisfactionWithAny.ts, 16, 13)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 22, 8)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) constructor(public x: T) { } ->x : T ->T : T +>x : T, Symbol(x, Decl(constraintSatisfactionWithAny.ts, 23, 16)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 22, 8)) } var c1 = new C(a); ->c1 : C +>c1 : C, Symbol(c1, Decl(constraintSatisfactionWithAny.ts, 26, 3)) >new C(a) : C ->C : typeof C ->a : any +>C : typeof C, Symbol(C, Decl(constraintSatisfactionWithAny.ts, 16, 13)) +>a : any, Symbol(a, Decl(constraintSatisfactionWithAny.ts, 6, 3)) var c2 = new C(b); ->c2 : C +>c2 : C, Symbol(c2, Decl(constraintSatisfactionWithAny.ts, 27, 3)) >new C(b) : C ->C : typeof C ->b : number +>C : typeof C, Symbol(C, Decl(constraintSatisfactionWithAny.ts, 16, 13)) +>b : number, Symbol(b, Decl(constraintSatisfactionWithAny.ts, 12, 3)) class C2 { ->C2 : C2 ->T : T ->x : number +>C2 : C2, Symbol(C2, Decl(constraintSatisfactionWithAny.ts, 27, 23)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 29, 9)) +>x : number, Symbol(x, Decl(constraintSatisfactionWithAny.ts, 29, 20)) constructor(public x: T) { } ->x : T ->T : T +>x : T, Symbol(x, Decl(constraintSatisfactionWithAny.ts, 30, 16)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 29, 9)) } var c3 = new C2(a); ->c3 : C2 +>c3 : C2, Symbol(c3, Decl(constraintSatisfactionWithAny.ts, 33, 3)) >new C2(a) : C2 ->C2 : typeof C2 ->a : any +>C2 : typeof C2, Symbol(C2, Decl(constraintSatisfactionWithAny.ts, 27, 23)) +>a : any, Symbol(a, Decl(constraintSatisfactionWithAny.ts, 6, 3)) var c4 = new C2(b); ->c4 : C2 +>c4 : C2, Symbol(c4, Decl(constraintSatisfactionWithAny.ts, 34, 3)) >new C2(b) : C2 ->C2 : typeof C2 ->b : number +>C2 : typeof C2, Symbol(C2, Decl(constraintSatisfactionWithAny.ts, 27, 23)) +>b : number, Symbol(b, Decl(constraintSatisfactionWithAny.ts, 12, 3)) //class C3 { // constructor(public x: T) { } @@ -122,29 +125,29 @@ var c4 = new C2(b); //var c6 = new C3(b); class C4(x:T) => T> { ->C4 : C4 ->T : T ->T : T ->x : T ->T : T ->T : T +>C4 : C4, Symbol(C4, Decl(constraintSatisfactionWithAny.ts, 34, 24)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 43, 9)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 43, 20)) +>x : T, Symbol(x, Decl(constraintSatisfactionWithAny.ts, 43, 23)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 43, 20)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 43, 20)) constructor(public x: T) { } ->x : T ->T : T +>x : T, Symbol(x, Decl(constraintSatisfactionWithAny.ts, 44, 16)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithAny.ts, 43, 9)) } var c7 = new C4(a); ->c7 : C4 +>c7 : C4, Symbol(c7, Decl(constraintSatisfactionWithAny.ts, 47, 3)) >new C4(a) : C4 ->C4 : typeof C4 ->a : any +>C4 : typeof C4, Symbol(C4, Decl(constraintSatisfactionWithAny.ts, 34, 24)) +>a : any, Symbol(a, Decl(constraintSatisfactionWithAny.ts, 6, 3)) var c8 = new C4(b); ->c8 : C4 +>c8 : C4, Symbol(c8, Decl(constraintSatisfactionWithAny.ts, 48, 3)) >new C4(b) : C4 ->C4 : typeof C4 ->b : number +>C4 : typeof C4, Symbol(C4, Decl(constraintSatisfactionWithAny.ts, 34, 24)) +>b : number, Symbol(b, Decl(constraintSatisfactionWithAny.ts, 12, 3)) diff --git a/tests/baselines/reference/constraintSatisfactionWithEmptyObject.types b/tests/baselines/reference/constraintSatisfactionWithEmptyObject.types index 113736bdd11..fcc99f81ad9 100644 --- a/tests/baselines/reference/constraintSatisfactionWithEmptyObject.types +++ b/tests/baselines/reference/constraintSatisfactionWithEmptyObject.types @@ -3,105 +3,105 @@ // Object constraint function foo(x: T) { } ->foo : (x: T) => void ->T : T ->Object : Object ->x : T ->T : T +>foo : (x: T) => void, Symbol(foo, Decl(constraintSatisfactionWithEmptyObject.ts, 0, 0)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithEmptyObject.ts, 3, 13)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>x : T, Symbol(x, Decl(constraintSatisfactionWithEmptyObject.ts, 3, 31)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithEmptyObject.ts, 3, 13)) var r = foo({}); ->r : void +>r : void, Symbol(r, Decl(constraintSatisfactionWithEmptyObject.ts, 4, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 6, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 21, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 23, 3)) >foo({}) : void ->foo : (x: T) => void +>foo : (x: T) => void, Symbol(foo, Decl(constraintSatisfactionWithEmptyObject.ts, 0, 0)) >{} : {} var a = {}; ->a : {} +>a : {}, Symbol(a, Decl(constraintSatisfactionWithEmptyObject.ts, 5, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 22, 3)) >{} : {} var r = foo({}); ->r : void +>r : void, Symbol(r, Decl(constraintSatisfactionWithEmptyObject.ts, 4, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 6, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 21, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 23, 3)) >foo({}) : void ->foo : (x: T) => void +>foo : (x: T) => void, Symbol(foo, Decl(constraintSatisfactionWithEmptyObject.ts, 0, 0)) >{} : {} class C { ->C : C ->T : T ->Object : Object +>C : C, Symbol(C, Decl(constraintSatisfactionWithEmptyObject.ts, 6, 16)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithEmptyObject.ts, 8, 8)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) constructor(public x: T) { } ->x : T ->T : T +>x : T, Symbol(x, Decl(constraintSatisfactionWithEmptyObject.ts, 9, 16)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithEmptyObject.ts, 8, 8)) } var r2 = new C({}); ->r2 : C<{}> +>r2 : C<{}>, Symbol(r2, Decl(constraintSatisfactionWithEmptyObject.ts, 12, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 29, 3)) >new C({}) : C<{}> ->C : typeof C +>C : typeof C, Symbol(C, Decl(constraintSatisfactionWithEmptyObject.ts, 6, 16)) >{} : {} interface I { ->I : I ->T : T ->Object : Object +>I : I, Symbol(I, Decl(constraintSatisfactionWithEmptyObject.ts, 12, 19)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithEmptyObject.ts, 14, 12)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(constraintSatisfactionWithEmptyObject.ts, 14, 31)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithEmptyObject.ts, 14, 12)) } var i: I<{}>; ->i : I<{}> ->I : I +>i : I<{}>, Symbol(i, Decl(constraintSatisfactionWithEmptyObject.ts, 17, 3)) +>I : I, Symbol(I, Decl(constraintSatisfactionWithEmptyObject.ts, 12, 19)) // {} constraint function foo2(x: T) { } ->foo2 : (x: T) => void ->T : T ->x : T ->T : T +>foo2 : (x: T) => void, Symbol(foo2, Decl(constraintSatisfactionWithEmptyObject.ts, 17, 13)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithEmptyObject.ts, 20, 14)) +>x : T, Symbol(x, Decl(constraintSatisfactionWithEmptyObject.ts, 20, 28)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithEmptyObject.ts, 20, 14)) var r = foo2({}); ->r : void +>r : void, Symbol(r, Decl(constraintSatisfactionWithEmptyObject.ts, 4, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 6, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 21, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 23, 3)) >foo2({}) : void ->foo2 : (x: T) => void +>foo2 : (x: T) => void, Symbol(foo2, Decl(constraintSatisfactionWithEmptyObject.ts, 17, 13)) >{} : {} var a = {}; ->a : {} +>a : {}, Symbol(a, Decl(constraintSatisfactionWithEmptyObject.ts, 5, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 22, 3)) >{} : {} var r = foo2({}); ->r : void +>r : void, Symbol(r, Decl(constraintSatisfactionWithEmptyObject.ts, 4, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 6, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 21, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 23, 3)) >foo2({}) : void ->foo2 : (x: T) => void +>foo2 : (x: T) => void, Symbol(foo2, Decl(constraintSatisfactionWithEmptyObject.ts, 17, 13)) >{} : {} class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(constraintSatisfactionWithEmptyObject.ts, 23, 17)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithEmptyObject.ts, 25, 9)) constructor(public x: T) { } ->x : T ->T : T +>x : T, Symbol(x, Decl(constraintSatisfactionWithEmptyObject.ts, 26, 16)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithEmptyObject.ts, 25, 9)) } var r2 = new C2({}); ->r2 : C<{}> +>r2 : C<{}>, Symbol(r2, Decl(constraintSatisfactionWithEmptyObject.ts, 12, 3), Decl(constraintSatisfactionWithEmptyObject.ts, 29, 3)) >new C2({}) : C2<{}> ->C2 : typeof C2 +>C2 : typeof C2, Symbol(C2, Decl(constraintSatisfactionWithEmptyObject.ts, 23, 17)) >{} : {} interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(constraintSatisfactionWithEmptyObject.ts, 29, 20)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithEmptyObject.ts, 31, 13)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(constraintSatisfactionWithEmptyObject.ts, 31, 28)) +>T : T, Symbol(T, Decl(constraintSatisfactionWithEmptyObject.ts, 31, 13)) } var i2: I2<{}>; ->i2 : I2<{}> ->I2 : I2 +>i2 : I2<{}>, Symbol(i2, Decl(constraintSatisfactionWithEmptyObject.ts, 34, 3)) +>I2 : I2, Symbol(I2, Decl(constraintSatisfactionWithEmptyObject.ts, 29, 20)) diff --git a/tests/baselines/reference/constraintsUsedInPrototypeProperty.types b/tests/baselines/reference/constraintsUsedInPrototypeProperty.types index a92b69a3392..72fea5f838f 100644 --- a/tests/baselines/reference/constraintsUsedInPrototypeProperty.types +++ b/tests/baselines/reference/constraintsUsedInPrototypeProperty.types @@ -1,12 +1,12 @@ === tests/cases/compiler/constraintsUsedInPrototypeProperty.ts === class Foo { } ->Foo : Foo ->T : T ->U : U ->V : V +>Foo : Foo, Symbol(Foo, Decl(constraintsUsedInPrototypeProperty.ts, 0, 0)) +>T : T, Symbol(T, Decl(constraintsUsedInPrototypeProperty.ts, 0, 10)) +>U : U, Symbol(U, Decl(constraintsUsedInPrototypeProperty.ts, 0, 27)) +>V : V, Symbol(V, Decl(constraintsUsedInPrototypeProperty.ts, 0, 30)) Foo.prototype; // Foo ->Foo.prototype : Foo ->Foo : typeof Foo ->prototype : Foo +>Foo.prototype : Foo, Symbol(Foo.prototype) +>Foo : typeof Foo, Symbol(Foo, Decl(constraintsUsedInPrototypeProperty.ts, 0, 0)) +>prototype : Foo, Symbol(Foo.prototype) diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.types b/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.types index 7ab221024ca..b834c9b9626 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.types +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.types @@ -2,201 +2,201 @@ // checking subtype relations for function types as it relates to contextual signature instantiation class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(constructSignatureAssignabilityInInheritance2.ts, 3, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(constructSignatureAssignabilityInInheritance2.ts, 3, 43)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>baz : string, Symbol(baz, Decl(constructSignatureAssignabilityInInheritance2.ts, 4, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(constructSignatureAssignabilityInInheritance2.ts, 4, 47)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(constructSignatureAssignabilityInInheritance2.ts, 5, 33)) interface A { // T ->A : A +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance2.ts, 5, 49)) // M's a: new (x: number) => number[]; ->a : new (x: number) => number[] ->x : number +>a : new (x: number) => number[], Symbol(a, Decl(constructSignatureAssignabilityInInheritance2.ts, 7, 13)) +>x : number, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 9, 12)) a2: new (x: number) => string[]; ->a2 : new (x: number) => string[] ->x : number +>a2 : new (x: number) => string[], Symbol(a2, Decl(constructSignatureAssignabilityInInheritance2.ts, 9, 35)) +>x : number, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 10, 13)) a3: new (x: number) => void; ->a3 : new (x: number) => void ->x : number +>a3 : new (x: number) => void, Symbol(a3, Decl(constructSignatureAssignabilityInInheritance2.ts, 10, 36)) +>x : number, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 11, 13)) a4: new (x: string, y: number) => string; ->a4 : new (x: string, y: number) => string ->x : string ->y : number +>a4 : new (x: string, y: number) => string, Symbol(a4, Decl(constructSignatureAssignabilityInInheritance2.ts, 11, 32)) +>x : string, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 12, 13)) +>y : number, Symbol(y, Decl(constructSignatureAssignabilityInInheritance2.ts, 12, 23)) a5: new (x: (arg: string) => number) => string; ->a5 : new (x: (arg: string) => number) => string ->x : (arg: string) => number ->arg : string +>a5 : new (x: (arg: string) => number) => string, Symbol(a5, Decl(constructSignatureAssignabilityInInheritance2.ts, 12, 45)) +>x : (arg: string) => number, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 13, 13)) +>arg : string, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance2.ts, 13, 17)) a6: new (x: (arg: Base) => Derived) => Base; ->a6 : new (x: (arg: Base) => Derived) => Base ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->Base : Base +>a6 : new (x: (arg: Base) => Derived) => Base, Symbol(a6, Decl(constructSignatureAssignabilityInInheritance2.ts, 13, 51)) +>x : (arg: Base) => Derived, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 14, 13)) +>arg : Base, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance2.ts, 14, 17)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) a7: new (x: (arg: Base) => Derived) => (r: Base) => Derived; ->a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(a7, Decl(constructSignatureAssignabilityInInheritance2.ts, 14, 48)) +>x : (arg: Base) => Derived, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 15, 13)) +>arg : Base, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance2.ts, 15, 17)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>r : Base, Symbol(r, Decl(constructSignatureAssignabilityInInheritance2.ts, 15, 44)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) a8: new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; ->a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->y : (arg2: Base) => Derived ->arg2 : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a8, Decl(constructSignatureAssignabilityInInheritance2.ts, 15, 64)) +>x : (arg: Base) => Derived, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 16, 13)) +>arg : Base, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance2.ts, 16, 17)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>y : (arg2: Base) => Derived, Symbol(y, Decl(constructSignatureAssignabilityInInheritance2.ts, 16, 39)) +>arg2 : Base, Symbol(arg2, Decl(constructSignatureAssignabilityInInheritance2.ts, 16, 44)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>r : Base, Symbol(r, Decl(constructSignatureAssignabilityInInheritance2.ts, 16, 72)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) a9: new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; ->a9 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->y : (arg2: Base) => Derived ->arg2 : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a9 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a9, Decl(constructSignatureAssignabilityInInheritance2.ts, 16, 92)) +>x : (arg: Base) => Derived, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 17, 13)) +>arg : Base, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance2.ts, 17, 17)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>y : (arg2: Base) => Derived, Symbol(y, Decl(constructSignatureAssignabilityInInheritance2.ts, 17, 39)) +>arg2 : Base, Symbol(arg2, Decl(constructSignatureAssignabilityInInheritance2.ts, 17, 44)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>r : Base, Symbol(r, Decl(constructSignatureAssignabilityInInheritance2.ts, 17, 72)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) a10: new (...x: Derived[]) => Derived; ->a10 : new (...x: Derived[]) => Derived ->x : Derived[] ->Derived : Derived ->Derived : Derived +>a10 : new (...x: Derived[]) => Derived, Symbol(a10, Decl(constructSignatureAssignabilityInInheritance2.ts, 17, 92)) +>x : Derived[], Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 18, 14)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base ->x : { foo: string; } ->foo : string ->y : { foo: string; bar: string; } ->foo : string ->bar : string ->Base : Base +>a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(a11, Decl(constructSignatureAssignabilityInInheritance2.ts, 18, 42)) +>x : { foo: string; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 19, 14)) +>foo : string, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance2.ts, 19, 18)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(constructSignatureAssignabilityInInheritance2.ts, 19, 33)) +>foo : string, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance2.ts, 19, 38)) +>bar : string, Symbol(bar, Decl(constructSignatureAssignabilityInInheritance2.ts, 19, 51)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) a12: new (x: Array, y: Array) => Array; ->a12 : new (x: Base[], y: Derived2[]) => Derived[] ->x : Base[] ->Array : T[] ->Base : Base ->y : Derived2[] ->Array : T[] ->Derived2 : Derived2 ->Array : T[] ->Derived : Derived +>a12 : new (x: Base[], y: Derived2[]) => Derived[], Symbol(a12, Decl(constructSignatureAssignabilityInInheritance2.ts, 19, 75)) +>x : Base[], Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 20, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>y : Derived2[], Symbol(y, Decl(constructSignatureAssignabilityInInheritance2.ts, 20, 29)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived2 : Derived2, Symbol(Derived2, Decl(constructSignatureAssignabilityInInheritance2.ts, 3, 43)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) a13: new (x: Array, y: Array) => Array; ->a13 : new (x: Base[], y: Derived[]) => Derived[] ->x : Base[] ->Array : T[] ->Base : Base ->y : Derived[] ->Array : T[] ->Derived : Derived ->Array : T[] ->Derived : Derived +>a13 : new (x: Base[], y: Derived[]) => Derived[], Symbol(a13, Decl(constructSignatureAssignabilityInInheritance2.ts, 20, 68)) +>x : Base[], Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 21, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>y : Derived[], Symbol(y, Decl(constructSignatureAssignabilityInInheritance2.ts, 21, 29)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) a14: new (x: { a: string; b: number }) => Object; ->a14 : new (x: { a: string; b: number; }) => Object ->x : { a: string; b: number; } ->a : string ->b : number ->Object : Object +>a14 : new (x: { a: string; b: number; }) => Object, Symbol(a14, Decl(constructSignatureAssignabilityInInheritance2.ts, 21, 67)) +>x : { a: string; b: number; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 22, 14)) +>a : string, Symbol(a, Decl(constructSignatureAssignabilityInInheritance2.ts, 22, 18)) +>b : number, Symbol(b, Decl(constructSignatureAssignabilityInInheritance2.ts, 22, 29)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) a15: { ->a15 : { new (x: number): number[]; new (x: string): string[]; } +>a15 : { new (x: number): number[]; new (x: string): string[]; }, Symbol(a15, Decl(constructSignatureAssignabilityInInheritance2.ts, 22, 53)) new (x: number): number[]; ->x : number +>x : number, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 24, 13)) new (x: string): string[]; ->x : string +>x : string, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 25, 13)) }; a16: { ->a16 : { new (x: T): number[]; new (x: U): number[]; } +>a16 : { new (x: T): number[]; new (x: U): number[]; }, Symbol(a16, Decl(constructSignatureAssignabilityInInheritance2.ts, 26, 6)) new (x: T): number[]; ->T : T ->Derived : Derived ->x : T ->T : T +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 28, 13)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 28, 32)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 28, 13)) new (x: U): number[]; ->U : U ->Base : Base ->x : U ->U : U +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 29, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>x : U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 29, 29)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 29, 13)) }; a17: { ->a17 : { new (x: new (a: number) => number): number[]; new (x: new (a: string) => string): string[]; } +>a17 : { new (x: new (a: number) => number): number[]; new (x: new (a: string) => string): string[]; }, Symbol(a17, Decl(constructSignatureAssignabilityInInheritance2.ts, 30, 6)) new (x: new (a: number) => number): number[]; ->x : new (a: number) => number ->a : number +>x : new (a: number) => number, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 32, 13)) +>a : number, Symbol(a, Decl(constructSignatureAssignabilityInInheritance2.ts, 32, 21)) new (x: new (a: string) => string): string[]; ->x : new (a: string) => string ->a : string +>x : new (a: string) => string, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 33, 13)) +>a : string, Symbol(a, Decl(constructSignatureAssignabilityInInheritance2.ts, 33, 21)) }; a18: { ->a18 : { new (x: { new (a: number): number; new (a: string): string; }): any[]; new (x: { new (a: boolean): boolean; new (a: Date): Date; }): any[]; } +>a18 : { new (x: { new (a: number): number; new (a: string): string; }): any[]; new (x: { new (a: boolean): boolean; new (a: Date): Date; }): any[]; }, Symbol(a18, Decl(constructSignatureAssignabilityInInheritance2.ts, 34, 6)) new (x: { ->x : { new (a: number): number; new (a: string): string; } +>x : { new (a: number): number; new (a: string): string; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 36, 13)) new (a: number): number; ->a : number +>a : number, Symbol(a, Decl(constructSignatureAssignabilityInInheritance2.ts, 37, 17)) new (a: string): string; ->a : string +>a : string, Symbol(a, Decl(constructSignatureAssignabilityInInheritance2.ts, 38, 17)) }): any[]; new (x: { ->x : { new (a: boolean): boolean; new (a: Date): Date; } +>x : { new (a: boolean): boolean; new (a: Date): Date; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 40, 13)) new (a: boolean): boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(constructSignatureAssignabilityInInheritance2.ts, 41, 17)) new (a: Date): Date; ->a : Date ->Date : Date ->Date : Date +>a : Date, Symbol(a, Decl(constructSignatureAssignabilityInInheritance2.ts, 42, 17)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) }): any[]; }; @@ -204,195 +204,195 @@ interface A { // T // S's interface I extends A { ->I : I ->A : A +>I : I, Symbol(I, Decl(constructSignatureAssignabilityInInheritance2.ts, 45, 1)) +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance2.ts, 5, 49)) // N's a: new (x: T) => T[]; // ok, instantiation of N is a subtype of M, T is number ->a : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : new (x: T) => T[], Symbol(a, Decl(constructSignatureAssignabilityInInheritance2.ts, 48, 23)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 50, 12)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 50, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 50, 12)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 50, 12)) a2: new (x: T) => string[]; // ok ->a2 : new (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : new (x: T) => string[], Symbol(a2, Decl(constructSignatureAssignabilityInInheritance2.ts, 50, 28)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 51, 13)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 51, 16)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 51, 13)) a3: new (x: T) => T; // ok since Base returns void ->a3 : new (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a3 : new (x: T) => T, Symbol(a3, Decl(constructSignatureAssignabilityInInheritance2.ts, 51, 34)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 52, 13)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 52, 16)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 52, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 52, 13)) a4: new (x: T, y: U) => T; // ok, instantiation of N is a subtype of M, T is string, U is number ->a4 : new (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>a4 : new (x: T, y: U) => T, Symbol(a4, Decl(constructSignatureAssignabilityInInheritance2.ts, 52, 27)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 53, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 53, 15)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 53, 19)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 53, 13)) +>y : U, Symbol(y, Decl(constructSignatureAssignabilityInInheritance2.ts, 53, 24)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 53, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 53, 13)) a5: new (x: (arg: T) => U) => T; // ok, U is in a parameter position so inferences can be made ->a5 : new (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : new (x: (arg: T) => U) => T, Symbol(a5, Decl(constructSignatureAssignabilityInInheritance2.ts, 53, 36)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 54, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 54, 15)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 54, 19)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance2.ts, 54, 23)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 54, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 54, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 54, 13)) a6: new (x: (arg: T) => U) => T; // ok, same as a5 but with object type hierarchy ->a6 : new (x: (arg: T) => U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a6 : new (x: (arg: T) => U) => T, Symbol(a6, Decl(constructSignatureAssignabilityInInheritance2.ts, 54, 42)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 55, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 55, 28)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 55, 48)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance2.ts, 55, 52)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 55, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 55, 28)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 55, 13)) a7: new (x: (arg: T) => U) => (r: T) => U; // ok ->a7 : new (x: (arg: T) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->r : T ->T : T ->U : U +>a7 : new (x: (arg: T) => U) => (r: T) => U, Symbol(a7, Decl(constructSignatureAssignabilityInInheritance2.ts, 55, 71)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 56, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 56, 28)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 56, 48)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance2.ts, 56, 52)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 56, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 56, 28)) +>r : T, Symbol(r, Decl(constructSignatureAssignabilityInInheritance2.ts, 56, 70)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 56, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 56, 28)) a8: new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U; // ok ->a8 : new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->y : (arg2: T) => U ->arg2 : T ->T : T ->U : U ->r : T ->T : T ->U : U +>a8 : new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(a8, Decl(constructSignatureAssignabilityInInheritance2.ts, 56, 81)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 28)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 48)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 52)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 28)) +>y : (arg2: T) => U, Symbol(y, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 65)) +>arg2 : T, Symbol(arg2, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 70)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 28)) +>r : T, Symbol(r, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 89)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 28)) a9: new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; // ok, same as a8 with compatible object literal ->a9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->y : (arg2: { foo: string; bing: number; }) => U ->arg2 : { foo: string; bing: number; } ->foo : string ->bing : number ->U : U ->r : T ->T : T ->U : U +>a9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(a9, Decl(constructSignatureAssignabilityInInheritance2.ts, 57, 100)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 28)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 48)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 52)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 28)) +>y : (arg2: { foo: string; bing: number; }) => U, Symbol(y, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 65)) +>arg2 : { foo: string; bing: number; }, Symbol(arg2, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 70)) +>foo : string, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 77)) +>bing : number, Symbol(bing, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 90)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 28)) +>r : T, Symbol(r, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 117)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 28)) a10: new (...x: T[]) => T; // ok ->a10 : new (...x: T[]) => T ->T : T ->Derived : Derived ->x : T[] ->T : T ->T : T +>a10 : new (...x: T[]) => T, Symbol(a10, Decl(constructSignatureAssignabilityInInheritance2.ts, 58, 128)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 59, 14)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : T[], Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 59, 33)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 59, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 59, 14)) a11: new (x: T, y: T) => T; // ok ->a11 : new (x: T, y: T) => T ->T : T ->Base : Base ->x : T ->T : T ->y : T ->T : T ->T : T +>a11 : new (x: T, y: T) => T, Symbol(a11, Decl(constructSignatureAssignabilityInInheritance2.ts, 59, 49)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 60, 14)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 60, 30)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 60, 14)) +>y : T, Symbol(y, Decl(constructSignatureAssignabilityInInheritance2.ts, 60, 35)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 60, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 60, 14)) a12: new >(x: Array, y: T) => Array; // ok, less specific parameter type ->a12 : new (x: Base[], y: T) => Derived[] ->T : T ->Array : T[] ->Base : Base ->x : Base[] ->Array : T[] ->Base : Base ->y : T ->T : T ->Array : T[] ->Derived : Derived +>a12 : new (x: Base[], y: T) => Derived[], Symbol(a12, Decl(constructSignatureAssignabilityInInheritance2.ts, 60, 47)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 61, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>x : Base[], Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 61, 37)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>y : T, Symbol(y, Decl(constructSignatureAssignabilityInInheritance2.ts, 61, 52)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 61, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) a13: new >(x: Array, y: T) => T; // ok, T = Array, satisfies constraint, contextual signature instantiation succeeds ->a13 : new (x: Base[], y: T) => T ->T : T ->Array : T[] ->Derived : Derived ->x : Base[] ->Array : T[] ->Base : Base ->y : T ->T : T ->T : T +>a13 : new (x: Base[], y: T) => T, Symbol(a13, Decl(constructSignatureAssignabilityInInheritance2.ts, 61, 77)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 62, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance2.ts, 2, 27)) +>x : Base[], Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 62, 40)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>y : T, Symbol(y, Decl(constructSignatureAssignabilityInInheritance2.ts, 62, 55)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 62, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 62, 14)) a14: new (x: { a: T; b: T }) => T; // ok, best common type yields T = {} but that's satisfactory for this signature ->a14 : new (x: { a: T; b: T; }) => T ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a14 : new (x: { a: T; b: T; }) => T, Symbol(a14, Decl(constructSignatureAssignabilityInInheritance2.ts, 62, 67)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 63, 14)) +>x : { a: T; b: T; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 63, 17)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance2.ts, 63, 21)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 63, 14)) +>b : T, Symbol(b, Decl(constructSignatureAssignabilityInInheritance2.ts, 63, 27)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 63, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 63, 14)) a15: new (x: T) => T[]; // ok ->a15 : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a15 : new (x: T) => T[], Symbol(a15, Decl(constructSignatureAssignabilityInInheritance2.ts, 63, 41)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 64, 14)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 64, 17)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 64, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 64, 14)) a16: new (x: T) => number[]; // ok ->a16 : new (x: T) => number[] ->T : T ->Base : Base ->x : T ->T : T +>a16 : new (x: T) => number[], Symbol(a16, Decl(constructSignatureAssignabilityInInheritance2.ts, 64, 30)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 65, 14)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance2.ts, 0, 0)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 65, 30)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 65, 14)) a17: new (x: new (a: T) => T) => T[]; // ok ->a17 : new (x: new (a: T) => T) => T[] ->T : T ->x : new (a: T) => T ->a : T ->T : T ->T : T ->T : T +>a17 : new (x: new (a: T) => T) => T[], Symbol(a17, Decl(constructSignatureAssignabilityInInheritance2.ts, 65, 48)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 66, 14)) +>x : new (a: T) => T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 66, 17)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance2.ts, 66, 25)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 66, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 66, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 66, 14)) a18: new (x: new (a: T) => T) => T[]; // ok, no inferences for T but assignable to any ->a18 : new (x: new (a: T) => T) => T[] ->T : T ->x : new (a: T) => T ->a : T ->T : T ->T : T ->T : T +>a18 : new (x: new (a: T) => T) => T[], Symbol(a18, Decl(constructSignatureAssignabilityInInheritance2.ts, 66, 44)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 67, 14)) +>x : new (a: T) => T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance2.ts, 67, 17)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance2.ts, 67, 25)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 67, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 67, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance2.ts, 67, 14)) } diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.types b/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.types index 7782389d69a..e230afcb408 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.types +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.types @@ -2,203 +2,203 @@ // checking subtype relations for function types as it relates to contextual signature instantiation class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance4.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance4.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(constructSignatureAssignabilityInInheritance4.ts, 3, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(constructSignatureAssignabilityInInheritance4.ts, 3, 43)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance4.ts, 2, 27)) +>baz : string, Symbol(baz, Decl(constructSignatureAssignabilityInInheritance4.ts, 4, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(constructSignatureAssignabilityInInheritance4.ts, 4, 47)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(constructSignatureAssignabilityInInheritance4.ts, 5, 33)) interface A { // T ->A : A +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance4.ts, 5, 49)) // M's a: new (x: T) => T[]; ->a : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : new (x: T) => T[], Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 7, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 9, 12)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 9, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 9, 12)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 9, 12)) a2: new (x: T) => string[]; ->a2 : new (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : new (x: T) => string[], Symbol(a2, Decl(constructSignatureAssignabilityInInheritance4.ts, 9, 28)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 10, 13)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 10, 16)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 10, 13)) a3: new (x: T) => void; ->a3 : new (x: T) => void ->T : T ->x : T ->T : T +>a3 : new (x: T) => void, Symbol(a3, Decl(constructSignatureAssignabilityInInheritance4.ts, 10, 34)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 11, 13)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 11, 16)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 11, 13)) a4: new (x: T, y: U) => string; ->a4 : new (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>a4 : new (x: T, y: U) => string, Symbol(a4, Decl(constructSignatureAssignabilityInInheritance4.ts, 11, 30)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 12, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 12, 15)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 12, 19)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 12, 13)) +>y : U, Symbol(y, Decl(constructSignatureAssignabilityInInheritance4.ts, 12, 24)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 12, 15)) a5: new (x: (arg: T) => U) => T; ->a5 : new (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : new (x: (arg: T) => U) => T, Symbol(a5, Decl(constructSignatureAssignabilityInInheritance4.ts, 12, 41)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 13, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 13, 15)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 13, 19)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance4.ts, 13, 23)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 13, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 13, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 13, 13)) a6: new (x: (arg: T) => Derived) => T; ->a6 : new (x: (arg: T) => Derived) => T ->T : T ->Base : Base ->x : (arg: T) => Derived ->arg : T ->T : T ->Derived : Derived ->T : T +>a6 : new (x: (arg: T) => Derived) => T, Symbol(a6, Decl(constructSignatureAssignabilityInInheritance4.ts, 13, 42)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 14, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>x : (arg: T) => Derived, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 14, 29)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance4.ts, 14, 33)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 14, 13)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance4.ts, 2, 27)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 14, 13)) a11: new (x: { foo: T }, y: { foo: T; bar: T }) => Base; ->a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->T : T ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: T; bar: T; } ->foo : T ->T : T ->bar : T ->T : T ->Base : Base +>a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(constructSignatureAssignabilityInInheritance4.ts, 14, 58)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 15, 14)) +>x : { foo: T; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 15, 17)) +>foo : T, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance4.ts, 15, 21)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 15, 14)) +>y : { foo: T; bar: T; }, Symbol(y, Decl(constructSignatureAssignabilityInInheritance4.ts, 15, 31)) +>foo : T, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance4.ts, 15, 36)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 15, 14)) +>bar : T, Symbol(bar, Decl(constructSignatureAssignabilityInInheritance4.ts, 15, 44)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 15, 14)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) a15: new (x: { a: T; b: T }) => T[]; ->a15 : new (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a15 : new (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(constructSignatureAssignabilityInInheritance4.ts, 15, 63)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 16, 14)) +>x : { a: T; b: T; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 16, 17)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 16, 21)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 16, 14)) +>b : T, Symbol(b, Decl(constructSignatureAssignabilityInInheritance4.ts, 16, 27)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 16, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 16, 14)) a16: new (x: { a: T; b: T }) => T[]; ->a16 : new (x: { a: T; b: T; }) => T[] ->T : T ->Base : Base ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a16 : new (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(constructSignatureAssignabilityInInheritance4.ts, 16, 43)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 17, 14)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>x : { a: T; b: T; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 17, 30)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 17, 34)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 17, 14)) +>b : T, Symbol(b, Decl(constructSignatureAssignabilityInInheritance4.ts, 17, 40)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 17, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 17, 14)) a17: { ->a17 : { new (x: T): T[]; new (x: U): U[]; } +>a17 : { new (x: T): T[]; new (x: U): U[]; }, Symbol(a17, Decl(constructSignatureAssignabilityInInheritance4.ts, 17, 56)) new (x: T): T[]; ->T : T ->Base : Base ->x : T ->T : T ->T : T +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 19, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 19, 29)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 19, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 19, 13)) new (x: U): U[]; ->U : U ->Derived : Derived ->x : U ->U : U ->U : U +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 20, 13)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance4.ts, 2, 27)) +>x : U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 20, 32)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 20, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 20, 13)) }; a18: { ->a18 : { new (x: T): number[]; new (x: U): number[]; } +>a18 : { new (x: T): number[]; new (x: U): number[]; }, Symbol(a18, Decl(constructSignatureAssignabilityInInheritance4.ts, 21, 6)) new (x: T): number[]; ->T : T ->Derived : Derived ->x : T ->T : T +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 23, 13)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance4.ts, 2, 27)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 23, 32)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 23, 13)) new (x: U): number[]; ->U : U ->Base : Base ->x : U ->U : U +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 24, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>x : U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 24, 29)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 24, 13)) }; a19: { ->a19 : { new (x: new (a: T) => T): T[]; new (x: new (a: U) => U): U[]; } +>a19 : { new (x: new (a: T) => T): T[]; new (x: new (a: U) => U): U[]; }, Symbol(a19, Decl(constructSignatureAssignabilityInInheritance4.ts, 25, 6)) new (x: new (a: T) => T): T[]; ->T : T ->Derived : Derived ->x : new (a: T) => T ->a : T ->T : T ->T : T ->T : T +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 27, 13)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance4.ts, 2, 27)) +>x : new (a: T) => T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 27, 32)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 27, 40)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 27, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 27, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 27, 13)) new (x: new (a: U) => U): U[]; ->U : U ->Base : Base ->x : new (a: U) => U ->a : U ->U : U ->U : U ->U : U +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 28, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>x : new (a: U) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 28, 29)) +>a : U, Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 28, 37)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 28, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 28, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 28, 13)) }; a20: { ->a20 : { new (x: { new (a: T): T; new (a: U): U; }): any[]; new (x: { new (a: T): T; new (a: U): U; }): any[]; } +>a20 : { new (x: { new (a: T): T; new (a: U): U; }): any[]; new (x: { new (a: T): T; new (a: U): U; }): any[]; }, Symbol(a20, Decl(constructSignatureAssignabilityInInheritance4.ts, 29, 6)) new (x: { ->x : { new (a: T): T; new (a: U): U; } +>x : { new (a: T): T; new (a: U): U; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 31, 13)) new (a: T): T; ->T : T ->Derived : Derived ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 32, 17)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance4.ts, 2, 27)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 32, 36)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 32, 17)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 32, 17)) new (a: U): U; ->U : U ->Base : Base ->a : U ->U : U ->U : U +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 33, 17)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>a : U, Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 33, 33)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 33, 17)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 33, 17)) }): any[]; new (x: { ->x : { new (a: T): T; new (a: U): U; } +>x : { new (a: T): T; new (a: U): U; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 35, 13)) new (a: T): T; ->T : T ->Base : Base ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 36, 17)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 36, 33)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 36, 17)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 36, 17)) new (a: U): U; ->U : U ->Derived2 : Derived2 ->a : U ->U : U ->U : U +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 37, 17)) +>Derived2 : Derived2, Symbol(Derived2, Decl(constructSignatureAssignabilityInInheritance4.ts, 3, 43)) +>a : U, Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 37, 37)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 37, 17)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 37, 17)) }): any[]; }; @@ -206,127 +206,127 @@ interface A { // T // S's interface I extends A { ->I : I ->A : A +>I : I, Symbol(I, Decl(constructSignatureAssignabilityInInheritance4.ts, 40, 1)) +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance4.ts, 5, 49)) // N's a: new (x: T) => T[]; // ok, instantiation of N is a subtype of M, T is number ->a : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : new (x: T) => T[], Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 43, 23)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 45, 12)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 45, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 45, 12)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 45, 12)) a2: new (x: T) => string[]; // ok ->a2 : new (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : new (x: T) => string[], Symbol(a2, Decl(constructSignatureAssignabilityInInheritance4.ts, 45, 28)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 46, 13)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 46, 16)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 46, 13)) a3: new (x: T) => T; // ok since Base returns void ->a3 : new (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a3 : new (x: T) => T, Symbol(a3, Decl(constructSignatureAssignabilityInInheritance4.ts, 46, 34)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 47, 13)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 47, 16)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 47, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 47, 13)) a4: new (x: T, y: U) => string; // ok, instantiation of N is a subtype of M, T is string, U is number ->a4 : new (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>a4 : new (x: T, y: U) => string, Symbol(a4, Decl(constructSignatureAssignabilityInInheritance4.ts, 47, 27)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 48, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 48, 15)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 48, 19)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 48, 13)) +>y : U, Symbol(y, Decl(constructSignatureAssignabilityInInheritance4.ts, 48, 24)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 48, 15)) a5: new (x: (arg: T) => U) => T; // ok, U is in a parameter position so inferences can be made ->a5 : new (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : new (x: (arg: T) => U) => T, Symbol(a5, Decl(constructSignatureAssignabilityInInheritance4.ts, 48, 41)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 49, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 49, 15)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 49, 19)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance4.ts, 49, 23)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 49, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 49, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 49, 13)) a6: new (x: (arg: T) => U) => T; // ok, same as a5 but with object type hierarchy ->a6 : new (x: (arg: T) => U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a6 : new (x: (arg: T) => U) => T, Symbol(a6, Decl(constructSignatureAssignabilityInInheritance4.ts, 49, 42)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 50, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 50, 28)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance4.ts, 2, 27)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 50, 48)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance4.ts, 50, 52)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 50, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 50, 28)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 50, 13)) a11: new (x: { foo: T }, y: { foo: U; bar: U }) => Base; // ok ->a11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->T : T ->U : U ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: U; bar: U; } ->foo : U ->U : U ->bar : U ->U : U ->Base : Base +>a11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(a11, Decl(constructSignatureAssignabilityInInheritance4.ts, 50, 71)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 51, 14)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 51, 16)) +>x : { foo: T; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 51, 20)) +>foo : T, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance4.ts, 51, 24)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 51, 14)) +>y : { foo: U; bar: U; }, Symbol(y, Decl(constructSignatureAssignabilityInInheritance4.ts, 51, 34)) +>foo : U, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance4.ts, 51, 39)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 51, 16)) +>bar : U, Symbol(bar, Decl(constructSignatureAssignabilityInInheritance4.ts, 51, 47)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 51, 16)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) a15: new (x: { a: U; b: V; }) => U[]; // ok, T = U, T = V ->a15 : new (x: { a: U; b: V; }) => U[] ->U : U ->V : V ->x : { a: U; b: V; } ->a : U ->U : U ->b : V ->V : V ->U : U +>a15 : new (x: { a: U; b: V; }) => U[], Symbol(a15, Decl(constructSignatureAssignabilityInInheritance4.ts, 51, 66)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 52, 14)) +>V : V, Symbol(V, Decl(constructSignatureAssignabilityInInheritance4.ts, 52, 16)) +>x : { a: U; b: V; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 52, 20)) +>a : U, Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 52, 24)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 52, 14)) +>b : V, Symbol(b, Decl(constructSignatureAssignabilityInInheritance4.ts, 52, 30)) +>V : V, Symbol(V, Decl(constructSignatureAssignabilityInInheritance4.ts, 52, 16)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance4.ts, 52, 14)) a16: new (x: { a: T; b: T }) => T[]; // ok, more general parameter type ->a16 : new (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a16 : new (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(constructSignatureAssignabilityInInheritance4.ts, 52, 47)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 53, 14)) +>x : { a: T; b: T; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 53, 17)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 53, 21)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 53, 14)) +>b : T, Symbol(b, Decl(constructSignatureAssignabilityInInheritance4.ts, 53, 27)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 53, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 53, 14)) a17: new (x: T) => T[]; // ok, more general parameter type ->a17 : new (x: T) => T[] ->T : T ->Base : Base ->x : T ->T : T ->T : T +>a17 : new (x: T) => T[], Symbol(a17, Decl(constructSignatureAssignabilityInInheritance4.ts, 53, 43)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 54, 14)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 54, 30)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 54, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 54, 14)) a18: new (x: T) => number[]; // ok, more general parameter type ->a18 : new (x: T) => number[] ->T : T ->Base : Base ->x : T ->T : T +>a18 : new (x: T) => number[], Symbol(a18, Decl(constructSignatureAssignabilityInInheritance4.ts, 54, 43)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 55, 14)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 55, 30)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 55, 14)) a19: new (x: new (a: T) => T) => T[]; // ok ->a19 : new (x: new (a: T) => T) => T[] ->T : T ->Base : Base ->x : new (a: T) => T ->a : T ->T : T ->T : T ->T : T +>a19 : new (x: new (a: T) => T) => T[], Symbol(a19, Decl(constructSignatureAssignabilityInInheritance4.ts, 55, 48)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 56, 14)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>x : new (a: T) => T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 56, 30)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 56, 38)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 56, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 56, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 56, 14)) a20: new (x: new (a: T) => T) => any[]; // ok ->a20 : new (x: new (a: T) => T) => any[] ->x : new (a: T) => T ->T : T ->Base : Base ->a : T ->T : T ->T : T +>a20 : new (x: new (a: T) => T) => any[], Symbol(a20, Decl(constructSignatureAssignabilityInInheritance4.ts, 56, 57)) +>x : new (a: T) => T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance4.ts, 57, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 57, 22)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance4.ts, 0, 0)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance4.ts, 57, 38)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 57, 22)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance4.ts, 57, 22)) } diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.types b/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.types index dea9478b372..a0fb830f0d2 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.types +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.types @@ -3,312 +3,312 @@ // same as subtypingWithConstructSignatures2 just with an extra level of indirection in the inheritance chain class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(constructSignatureAssignabilityInInheritance5.ts, 4, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(constructSignatureAssignabilityInInheritance5.ts, 4, 43)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>baz : string, Symbol(baz, Decl(constructSignatureAssignabilityInInheritance5.ts, 5, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(constructSignatureAssignabilityInInheritance5.ts, 5, 47)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(constructSignatureAssignabilityInInheritance5.ts, 6, 33)) interface A { // T ->A : A +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance5.ts, 6, 49)) // M's a: new (x: number) => number[]; ->a : new (x: number) => number[] ->x : number +>a : new (x: number) => number[], Symbol(a, Decl(constructSignatureAssignabilityInInheritance5.ts, 8, 13)) +>x : number, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 10, 12)) a2: new (x: number) => string[]; ->a2 : new (x: number) => string[] ->x : number +>a2 : new (x: number) => string[], Symbol(a2, Decl(constructSignatureAssignabilityInInheritance5.ts, 10, 35)) +>x : number, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 11, 13)) a3: new (x: number) => void; ->a3 : new (x: number) => void ->x : number +>a3 : new (x: number) => void, Symbol(a3, Decl(constructSignatureAssignabilityInInheritance5.ts, 11, 36)) +>x : number, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 12, 13)) a4: new (x: string, y: number) => string; ->a4 : new (x: string, y: number) => string ->x : string ->y : number +>a4 : new (x: string, y: number) => string, Symbol(a4, Decl(constructSignatureAssignabilityInInheritance5.ts, 12, 32)) +>x : string, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 13, 13)) +>y : number, Symbol(y, Decl(constructSignatureAssignabilityInInheritance5.ts, 13, 23)) a5: new (x: (arg: string) => number) => string; ->a5 : new (x: (arg: string) => number) => string ->x : (arg: string) => number ->arg : string +>a5 : new (x: (arg: string) => number) => string, Symbol(a5, Decl(constructSignatureAssignabilityInInheritance5.ts, 13, 45)) +>x : (arg: string) => number, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 14, 13)) +>arg : string, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance5.ts, 14, 17)) a6: new (x: (arg: Base) => Derived) => Base; ->a6 : new (x: (arg: Base) => Derived) => Base ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->Base : Base +>a6 : new (x: (arg: Base) => Derived) => Base, Symbol(a6, Decl(constructSignatureAssignabilityInInheritance5.ts, 14, 51)) +>x : (arg: Base) => Derived, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 15, 13)) +>arg : Base, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance5.ts, 15, 17)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) a7: new (x: (arg: Base) => Derived) => (r: Base) => Derived; ->a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(a7, Decl(constructSignatureAssignabilityInInheritance5.ts, 15, 48)) +>x : (arg: Base) => Derived, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 16, 13)) +>arg : Base, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance5.ts, 16, 17)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>r : Base, Symbol(r, Decl(constructSignatureAssignabilityInInheritance5.ts, 16, 44)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) a8: new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; ->a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->y : (arg2: Base) => Derived ->arg2 : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a8, Decl(constructSignatureAssignabilityInInheritance5.ts, 16, 64)) +>x : (arg: Base) => Derived, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 17, 13)) +>arg : Base, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance5.ts, 17, 17)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>y : (arg2: Base) => Derived, Symbol(y, Decl(constructSignatureAssignabilityInInheritance5.ts, 17, 39)) +>arg2 : Base, Symbol(arg2, Decl(constructSignatureAssignabilityInInheritance5.ts, 17, 44)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>r : Base, Symbol(r, Decl(constructSignatureAssignabilityInInheritance5.ts, 17, 72)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) a9: new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; ->a9 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived ->x : (arg: Base) => Derived ->arg : Base ->Base : Base ->Derived : Derived ->y : (arg2: Base) => Derived ->arg2 : Base ->Base : Base ->Derived : Derived ->r : Base ->Base : Base ->Derived : Derived +>a9 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a9, Decl(constructSignatureAssignabilityInInheritance5.ts, 17, 92)) +>x : (arg: Base) => Derived, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 18, 13)) +>arg : Base, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance5.ts, 18, 17)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>y : (arg2: Base) => Derived, Symbol(y, Decl(constructSignatureAssignabilityInInheritance5.ts, 18, 39)) +>arg2 : Base, Symbol(arg2, Decl(constructSignatureAssignabilityInInheritance5.ts, 18, 44)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>r : Base, Symbol(r, Decl(constructSignatureAssignabilityInInheritance5.ts, 18, 72)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) a10: new (...x: Derived[]) => Derived; ->a10 : new (...x: Derived[]) => Derived ->x : Derived[] ->Derived : Derived ->Derived : Derived +>a10 : new (...x: Derived[]) => Derived, Symbol(a10, Decl(constructSignatureAssignabilityInInheritance5.ts, 18, 92)) +>x : Derived[], Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 19, 14)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base; ->a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base ->x : { foo: string; } ->foo : string ->y : { foo: string; bar: string; } ->foo : string ->bar : string ->Base : Base +>a11 : new (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(a11, Decl(constructSignatureAssignabilityInInheritance5.ts, 19, 42)) +>x : { foo: string; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 20, 14)) +>foo : string, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance5.ts, 20, 18)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(constructSignatureAssignabilityInInheritance5.ts, 20, 33)) +>foo : string, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance5.ts, 20, 38)) +>bar : string, Symbol(bar, Decl(constructSignatureAssignabilityInInheritance5.ts, 20, 51)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) a12: new (x: Array, y: Array) => Array; ->a12 : new (x: Base[], y: Derived2[]) => Derived[] ->x : Base[] ->Array : T[] ->Base : Base ->y : Derived2[] ->Array : T[] ->Derived2 : Derived2 ->Array : T[] ->Derived : Derived +>a12 : new (x: Base[], y: Derived2[]) => Derived[], Symbol(a12, Decl(constructSignatureAssignabilityInInheritance5.ts, 20, 75)) +>x : Base[], Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 21, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>y : Derived2[], Symbol(y, Decl(constructSignatureAssignabilityInInheritance5.ts, 21, 29)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived2 : Derived2, Symbol(Derived2, Decl(constructSignatureAssignabilityInInheritance5.ts, 4, 43)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) a13: new (x: Array, y: Array) => Array; ->a13 : new (x: Base[], y: Derived[]) => Derived[] ->x : Base[] ->Array : T[] ->Base : Base ->y : Derived[] ->Array : T[] ->Derived : Derived ->Array : T[] ->Derived : Derived +>a13 : new (x: Base[], y: Derived[]) => Derived[], Symbol(a13, Decl(constructSignatureAssignabilityInInheritance5.ts, 21, 68)) +>x : Base[], Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 22, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>y : Derived[], Symbol(y, Decl(constructSignatureAssignabilityInInheritance5.ts, 22, 29)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) a14: new (x: { a: string; b: number }) => Object; ->a14 : new (x: { a: string; b: number; }) => Object ->x : { a: string; b: number; } ->a : string ->b : number ->Object : Object +>a14 : new (x: { a: string; b: number; }) => Object, Symbol(a14, Decl(constructSignatureAssignabilityInInheritance5.ts, 22, 67)) +>x : { a: string; b: number; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 23, 14)) +>a : string, Symbol(a, Decl(constructSignatureAssignabilityInInheritance5.ts, 23, 18)) +>b : number, Symbol(b, Decl(constructSignatureAssignabilityInInheritance5.ts, 23, 29)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) } interface B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(constructSignatureAssignabilityInInheritance5.ts, 24, 1)) +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance5.ts, 6, 49)) a: new (x: T) => T[]; ->a : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : new (x: T) => T[], Symbol(a, Decl(constructSignatureAssignabilityInInheritance5.ts, 26, 23)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 27, 12)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 27, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 27, 12)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 27, 12)) } // S's interface I extends B { ->I : I ->B : B +>I : I, Symbol(I, Decl(constructSignatureAssignabilityInInheritance5.ts, 28, 1)) +>B : B, Symbol(B, Decl(constructSignatureAssignabilityInInheritance5.ts, 24, 1)) // N's a: new (x: T) => T[]; // ok, instantiation of N is a subtype of M, T is number ->a : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : new (x: T) => T[], Symbol(a, Decl(constructSignatureAssignabilityInInheritance5.ts, 31, 23)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 33, 12)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 33, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 33, 12)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 33, 12)) a2: new (x: T) => string[]; // ok ->a2 : new (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : new (x: T) => string[], Symbol(a2, Decl(constructSignatureAssignabilityInInheritance5.ts, 33, 28)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 34, 13)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 34, 16)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 34, 13)) a3: new (x: T) => T; // ok since Base returns void ->a3 : new (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a3 : new (x: T) => T, Symbol(a3, Decl(constructSignatureAssignabilityInInheritance5.ts, 34, 34)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 35, 13)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 35, 16)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 35, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 35, 13)) a4: new (x: T, y: U) => T; // ok, instantiation of N is a subtype of M, T is string, U is number ->a4 : new (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>a4 : new (x: T, y: U) => T, Symbol(a4, Decl(constructSignatureAssignabilityInInheritance5.ts, 35, 27)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 36, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 36, 15)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 36, 19)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 36, 13)) +>y : U, Symbol(y, Decl(constructSignatureAssignabilityInInheritance5.ts, 36, 24)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 36, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 36, 13)) a5: new (x: (arg: T) => U) => T; // ok, U is in a parameter position so inferences can be made ->a5 : new (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : new (x: (arg: T) => U) => T, Symbol(a5, Decl(constructSignatureAssignabilityInInheritance5.ts, 36, 36)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 37, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 37, 15)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 37, 19)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance5.ts, 37, 23)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 37, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 37, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 37, 13)) a6: new (x: (arg: T) => U) => T; // ok, same as a5 but with object type hierarchy ->a6 : new (x: (arg: T) => U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a6 : new (x: (arg: T) => U) => T, Symbol(a6, Decl(constructSignatureAssignabilityInInheritance5.ts, 37, 42)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 38, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 38, 28)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 38, 48)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance5.ts, 38, 52)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 38, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 38, 28)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 38, 13)) a7: new (x: (arg: T) => U) => (r: T) => U; // ok ->a7 : new (x: (arg: T) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->r : T ->T : T ->U : U +>a7 : new (x: (arg: T) => U) => (r: T) => U, Symbol(a7, Decl(constructSignatureAssignabilityInInheritance5.ts, 38, 71)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 39, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 39, 28)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 39, 48)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance5.ts, 39, 52)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 39, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 39, 28)) +>r : T, Symbol(r, Decl(constructSignatureAssignabilityInInheritance5.ts, 39, 70)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 39, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 39, 28)) a8: new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U; // ok ->a8 : new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->y : (arg2: T) => U ->arg2 : T ->T : T ->U : U ->r : T ->T : T ->U : U +>a8 : new (x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(a8, Decl(constructSignatureAssignabilityInInheritance5.ts, 39, 81)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 28)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 48)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 52)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 28)) +>y : (arg2: T) => U, Symbol(y, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 65)) +>arg2 : T, Symbol(arg2, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 70)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 28)) +>r : T, Symbol(r, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 89)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 28)) a9: new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U; // ok, same as a8 with compatible object literal ->a9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->y : (arg2: { foo: string; bing: number; }) => U ->arg2 : { foo: string; bing: number; } ->foo : string ->bing : number ->U : U ->r : T ->T : T ->U : U +>a9 : new (x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(a9, Decl(constructSignatureAssignabilityInInheritance5.ts, 40, 100)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 28)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 48)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 52)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 28)) +>y : (arg2: { foo: string; bing: number; }) => U, Symbol(y, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 65)) +>arg2 : { foo: string; bing: number; }, Symbol(arg2, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 70)) +>foo : string, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 77)) +>bing : number, Symbol(bing, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 90)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 28)) +>r : T, Symbol(r, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 117)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 28)) a10: new (...x: T[]) => T; // ok ->a10 : new (...x: T[]) => T ->T : T ->Derived : Derived ->x : T[] ->T : T ->T : T +>a10 : new (...x: T[]) => T, Symbol(a10, Decl(constructSignatureAssignabilityInInheritance5.ts, 41, 128)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 42, 14)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>x : T[], Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 42, 33)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 42, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 42, 14)) a11: new (x: T, y: T) => T; // ok ->a11 : new (x: T, y: T) => T ->T : T ->Base : Base ->x : T ->T : T ->y : T ->T : T ->T : T +>a11 : new (x: T, y: T) => T, Symbol(a11, Decl(constructSignatureAssignabilityInInheritance5.ts, 42, 49)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 43, 14)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 43, 30)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 43, 14)) +>y : T, Symbol(y, Decl(constructSignatureAssignabilityInInheritance5.ts, 43, 35)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 43, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 43, 14)) a12: new >(x: Array, y: T) => Array; // ok, less specific parameter type ->a12 : new (x: Base[], y: T) => Derived[] ->T : T ->Array : T[] ->Base : Base ->x : Base[] ->Array : T[] ->Base : Base ->y : T ->T : T ->Array : T[] ->Derived : Derived +>a12 : new (x: Base[], y: T) => Derived[], Symbol(a12, Decl(constructSignatureAssignabilityInInheritance5.ts, 43, 47)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 44, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>x : Base[], Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 44, 37)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>y : T, Symbol(y, Decl(constructSignatureAssignabilityInInheritance5.ts, 44, 52)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 44, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) a13: new >(x: Array, y: T) => T; // ok, T = Array, satisfies constraint, contextual signature instantiation succeeds ->a13 : new (x: Base[], y: T) => T ->T : T ->Array : T[] ->Derived : Derived ->x : Base[] ->Array : T[] ->Base : Base ->y : T ->T : T ->T : T +>a13 : new (x: Base[], y: T) => T, Symbol(a13, Decl(constructSignatureAssignabilityInInheritance5.ts, 44, 77)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 45, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance5.ts, 3, 27)) +>x : Base[], Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 45, 40)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance5.ts, 0, 0)) +>y : T, Symbol(y, Decl(constructSignatureAssignabilityInInheritance5.ts, 45, 55)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 45, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 45, 14)) a14: new (x: { a: T; b: T }) => T; // ok, best common type yields T = {} but that's satisfactory for this signature ->a14 : new (x: { a: T; b: T; }) => T ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a14 : new (x: { a: T; b: T; }) => T, Symbol(a14, Decl(constructSignatureAssignabilityInInheritance5.ts, 45, 67)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 46, 14)) +>x : { a: T; b: T; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance5.ts, 46, 17)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance5.ts, 46, 21)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 46, 14)) +>b : T, Symbol(b, Decl(constructSignatureAssignabilityInInheritance5.ts, 46, 27)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 46, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance5.ts, 46, 14)) } diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.types b/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.types index 193a19a5f2c..259396d2ce9 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.types +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.types @@ -4,206 +4,206 @@ // all are errors class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance6.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance6.ts, 4, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance6.ts, 4, 27)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance6.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(constructSignatureAssignabilityInInheritance6.ts, 5, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(constructSignatureAssignabilityInInheritance6.ts, 5, 43)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance6.ts, 4, 27)) +>baz : string, Symbol(baz, Decl(constructSignatureAssignabilityInInheritance6.ts, 6, 32)) class OtherDerived extends Base { bing: string; } ->OtherDerived : OtherDerived ->Base : Base ->bing : string +>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(constructSignatureAssignabilityInInheritance6.ts, 6, 47)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance6.ts, 0, 0)) +>bing : string, Symbol(bing, Decl(constructSignatureAssignabilityInInheritance6.ts, 7, 33)) interface A { // T ->A : A +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance6.ts, 7, 49)) // M's a: new (x: T) => T[]; ->a : new (x: T) => T[] ->T : T ->x : T ->T : T ->T : T +>a : new (x: T) => T[], Symbol(a, Decl(constructSignatureAssignabilityInInheritance6.ts, 9, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 11, 12)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 11, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 11, 12)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 11, 12)) a2: new (x: T) => string[]; ->a2 : new (x: T) => string[] ->T : T ->x : T ->T : T +>a2 : new (x: T) => string[], Symbol(a2, Decl(constructSignatureAssignabilityInInheritance6.ts, 11, 28)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 12, 13)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 12, 16)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 12, 13)) a3: new (x: T) => void; ->a3 : new (x: T) => void ->T : T ->x : T ->T : T +>a3 : new (x: T) => void, Symbol(a3, Decl(constructSignatureAssignabilityInInheritance6.ts, 12, 34)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 13, 13)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 13, 16)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 13, 13)) a4: new (x: T, y: U) => string; ->a4 : new (x: T, y: U) => string ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>a4 : new (x: T, y: U) => string, Symbol(a4, Decl(constructSignatureAssignabilityInInheritance6.ts, 13, 30)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 14, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance6.ts, 14, 15)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 14, 19)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 14, 13)) +>y : U, Symbol(y, Decl(constructSignatureAssignabilityInInheritance6.ts, 14, 24)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance6.ts, 14, 15)) a5: new (x: (arg: T) => U) => T; ->a5 : new (x: (arg: T) => U) => T ->T : T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : new (x: (arg: T) => U) => T, Symbol(a5, Decl(constructSignatureAssignabilityInInheritance6.ts, 14, 41)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 15, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance6.ts, 15, 15)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 15, 19)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance6.ts, 15, 23)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 15, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance6.ts, 15, 15)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 15, 13)) a6: new (x: (arg: T) => Derived) => T; ->a6 : new (x: (arg: T) => Derived) => T ->T : T ->Base : Base ->x : (arg: T) => Derived ->arg : T ->T : T ->Derived : Derived ->T : T +>a6 : new (x: (arg: T) => Derived) => T, Symbol(a6, Decl(constructSignatureAssignabilityInInheritance6.ts, 15, 42)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 16, 13)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance6.ts, 0, 0)) +>x : (arg: T) => Derived, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 16, 29)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance6.ts, 16, 33)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 16, 13)) +>Derived : Derived, Symbol(Derived, Decl(constructSignatureAssignabilityInInheritance6.ts, 4, 27)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 16, 13)) a11: new (x: { foo: T }, y: { foo: T; bar: T }) => Base; ->a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base ->T : T ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: T; bar: T; } ->foo : T ->T : T ->bar : T ->T : T ->Base : Base +>a11 : new (x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(constructSignatureAssignabilityInInheritance6.ts, 16, 58)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 17, 14)) +>x : { foo: T; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 17, 17)) +>foo : T, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance6.ts, 17, 21)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 17, 14)) +>y : { foo: T; bar: T; }, Symbol(y, Decl(constructSignatureAssignabilityInInheritance6.ts, 17, 31)) +>foo : T, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance6.ts, 17, 36)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 17, 14)) +>bar : T, Symbol(bar, Decl(constructSignatureAssignabilityInInheritance6.ts, 17, 44)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 17, 14)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance6.ts, 0, 0)) a15: new (x: { a: T; b: T }) => T[]; ->a15 : new (x: { a: T; b: T; }) => T[] ->T : T ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a15 : new (x: { a: T; b: T; }) => T[], Symbol(a15, Decl(constructSignatureAssignabilityInInheritance6.ts, 17, 63)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 18, 14)) +>x : { a: T; b: T; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 18, 17)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance6.ts, 18, 21)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 18, 14)) +>b : T, Symbol(b, Decl(constructSignatureAssignabilityInInheritance6.ts, 18, 27)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 18, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 18, 14)) a16: new (x: { a: T; b: T }) => T[]; ->a16 : new (x: { a: T; b: T; }) => T[] ->T : T ->Base : Base ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a16 : new (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(constructSignatureAssignabilityInInheritance6.ts, 18, 43)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 19, 14)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance6.ts, 0, 0)) +>x : { a: T; b: T; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 19, 30)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance6.ts, 19, 34)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 19, 14)) +>b : T, Symbol(b, Decl(constructSignatureAssignabilityInInheritance6.ts, 19, 40)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 19, 14)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 19, 14)) } // S's interface I extends A { ->I : I ->T : T ->A : A +>I : I, Symbol(I, Decl(constructSignatureAssignabilityInInheritance6.ts, 20, 1)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 23, 12)) +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance6.ts, 7, 49)) a: new (x: T) => T[]; ->a : new (x: T) => T[] ->x : T ->T : T ->T : T +>a : new (x: T) => T[], Symbol(a, Decl(constructSignatureAssignabilityInInheritance6.ts, 23, 26)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 24, 12)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 23, 12)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 23, 12)) } interface I2 extends A { ->I2 : I2 ->T : T ->A : A +>I2 : I2, Symbol(I2, Decl(constructSignatureAssignabilityInInheritance6.ts, 25, 1)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 27, 13)) +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance6.ts, 7, 49)) a2: new (x: T) => string[]; ->a2 : new (x: T) => string[] ->x : T ->T : T +>a2 : new (x: T) => string[], Symbol(a2, Decl(constructSignatureAssignabilityInInheritance6.ts, 27, 27)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 28, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 27, 13)) } interface I3 extends A { ->I3 : I3 ->T : T ->A : A +>I3 : I3, Symbol(I3, Decl(constructSignatureAssignabilityInInheritance6.ts, 29, 1)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 31, 13)) +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance6.ts, 7, 49)) a3: new (x: T) => T; ->a3 : new (x: T) => T ->x : T ->T : T ->T : T +>a3 : new (x: T) => T, Symbol(a3, Decl(constructSignatureAssignabilityInInheritance6.ts, 31, 27)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 32, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 31, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 31, 13)) } interface I4 extends A { ->I4 : I4 ->T : T ->A : A +>I4 : I4, Symbol(I4, Decl(constructSignatureAssignabilityInInheritance6.ts, 33, 1)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 35, 13)) +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance6.ts, 7, 49)) a4: new (x: T, y: U) => string; ->a4 : new (x: T, y: U) => string ->U : U ->x : T ->T : T ->y : U ->U : U +>a4 : new (x: T, y: U) => string, Symbol(a4, Decl(constructSignatureAssignabilityInInheritance6.ts, 35, 27)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance6.ts, 36, 13)) +>x : T, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 36, 16)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 35, 13)) +>y : U, Symbol(y, Decl(constructSignatureAssignabilityInInheritance6.ts, 36, 21)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance6.ts, 36, 13)) } interface I5 extends A { ->I5 : I5 ->T : T ->A : A +>I5 : I5, Symbol(I5, Decl(constructSignatureAssignabilityInInheritance6.ts, 37, 1)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 39, 13)) +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance6.ts, 7, 49)) a5: new (x: (arg: T) => U) => T; ->a5 : new (x: (arg: T) => U) => T ->U : U ->x : (arg: T) => U ->arg : T ->T : T ->U : U ->T : T +>a5 : new (x: (arg: T) => U) => T, Symbol(a5, Decl(constructSignatureAssignabilityInInheritance6.ts, 39, 27)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance6.ts, 40, 13)) +>x : (arg: T) => U, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 40, 16)) +>arg : T, Symbol(arg, Decl(constructSignatureAssignabilityInInheritance6.ts, 40, 20)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 39, 13)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance6.ts, 40, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 39, 13)) } interface I7 extends A { ->I7 : I7 ->T : T ->A : A +>I7 : I7, Symbol(I7, Decl(constructSignatureAssignabilityInInheritance6.ts, 41, 1)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 43, 13)) +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance6.ts, 7, 49)) a11: new (x: { foo: T }, y: { foo: U; bar: U }) => Base; ->a11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base ->U : U ->x : { foo: T; } ->foo : T ->T : T ->y : { foo: U; bar: U; } ->foo : U ->U : U ->bar : U ->U : U ->Base : Base +>a11 : new (x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(a11, Decl(constructSignatureAssignabilityInInheritance6.ts, 43, 27)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance6.ts, 44, 14)) +>x : { foo: T; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 44, 17)) +>foo : T, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance6.ts, 44, 21)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 43, 13)) +>y : { foo: U; bar: U; }, Symbol(y, Decl(constructSignatureAssignabilityInInheritance6.ts, 44, 31)) +>foo : U, Symbol(foo, Decl(constructSignatureAssignabilityInInheritance6.ts, 44, 36)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance6.ts, 44, 14)) +>bar : U, Symbol(bar, Decl(constructSignatureAssignabilityInInheritance6.ts, 44, 44)) +>U : U, Symbol(U, Decl(constructSignatureAssignabilityInInheritance6.ts, 44, 14)) +>Base : Base, Symbol(Base, Decl(constructSignatureAssignabilityInInheritance6.ts, 0, 0)) } interface I9 extends A { ->I9 : I9 ->T : T ->A : A +>I9 : I9, Symbol(I9, Decl(constructSignatureAssignabilityInInheritance6.ts, 45, 1)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 47, 13)) +>A : A, Symbol(A, Decl(constructSignatureAssignabilityInInheritance6.ts, 7, 49)) a16: new (x: { a: T; b: T }) => T[]; ->a16 : new (x: { a: T; b: T; }) => T[] ->x : { a: T; b: T; } ->a : T ->T : T ->b : T ->T : T ->T : T +>a16 : new (x: { a: T; b: T; }) => T[], Symbol(a16, Decl(constructSignatureAssignabilityInInheritance6.ts, 47, 27)) +>x : { a: T; b: T; }, Symbol(x, Decl(constructSignatureAssignabilityInInheritance6.ts, 48, 14)) +>a : T, Symbol(a, Decl(constructSignatureAssignabilityInInheritance6.ts, 48, 18)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 47, 13)) +>b : T, Symbol(b, Decl(constructSignatureAssignabilityInInheritance6.ts, 48, 24)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 47, 13)) +>T : T, Symbol(T, Decl(constructSignatureAssignabilityInInheritance6.ts, 47, 13)) } diff --git a/tests/baselines/reference/constructSignaturesWithIdenticalOverloads.types b/tests/baselines/reference/constructSignaturesWithIdenticalOverloads.types index a34c5365f2d..becb2f708d8 100644 --- a/tests/baselines/reference/constructSignaturesWithIdenticalOverloads.types +++ b/tests/baselines/reference/constructSignaturesWithIdenticalOverloads.types @@ -2,157 +2,169 @@ // Duplicate overloads of construct signatures should generate errors class C { ->C : C +>C : C, Symbol(C, Decl(constructSignaturesWithIdenticalOverloads.ts, 0, 0)) constructor(x: number, y: string); ->x : number ->y : string +>x : number, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 3, 16)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 3, 26)) constructor(x: number, y: string); // error ->x : number ->y : string +>x : number, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 4, 16)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 4, 26)) constructor(x: number) { } ->x : number +>x : number, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 5, 16)) } var r1 = new C(1, ''); ->r1 : C +>r1 : C, Symbol(r1, Decl(constructSignaturesWithIdenticalOverloads.ts, 8, 3)) >new C(1, '') : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(constructSignaturesWithIdenticalOverloads.ts, 0, 0)) +>1 : number +>'' : string class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithIdenticalOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 10, 9)) constructor(x: T, y: string); ->x : T ->T : T ->y : string +>x : T, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 11, 16)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 10, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 11, 21)) constructor(x: T, y: string); // error ->x : T ->T : T ->y : string +>x : T, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 12, 16)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 10, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 12, 21)) constructor(x: T) { } ->x : T ->T : T +>x : T, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 13, 16)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 10, 9)) } var r2 = new C2(1, ''); ->r2 : C2 +>r2 : C2, Symbol(r2, Decl(constructSignaturesWithIdenticalOverloads.ts, 16, 3)) >new C2(1, '') : C2 ->C2 : typeof C2 +>C2 : typeof C2, Symbol(C2, Decl(constructSignaturesWithIdenticalOverloads.ts, 8, 22)) +>1 : number +>'' : string interface I { ->I : I +>I : I, Symbol(I, Decl(constructSignaturesWithIdenticalOverloads.ts, 16, 23)) new (x: number, y: string): C; ->x : number ->y : string ->C : C +>x : number, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 19, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 19, 19)) +>C : C, Symbol(C, Decl(constructSignaturesWithIdenticalOverloads.ts, 0, 0)) new (x: number, y: string): C; // error ->x : number ->y : string ->C : C +>x : number, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 20, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 20, 19)) +>C : C, Symbol(C, Decl(constructSignaturesWithIdenticalOverloads.ts, 0, 0)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(constructSignaturesWithIdenticalOverloads.ts, 23, 3)) +>I : I, Symbol(I, Decl(constructSignaturesWithIdenticalOverloads.ts, 16, 23)) var r3 = new i(1, ''); ->r3 : C +>r3 : C, Symbol(r3, Decl(constructSignaturesWithIdenticalOverloads.ts, 24, 3)) >new i(1, '') : C ->i : I +>i : I, Symbol(i, Decl(constructSignaturesWithIdenticalOverloads.ts, 23, 3)) +>1 : number +>'' : string interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(constructSignaturesWithIdenticalOverloads.ts, 24, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 26, 13)) new (x: T, y: string): C2; ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>x : T, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 27, 9)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 26, 13)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 27, 14)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithIdenticalOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 26, 13)) new (x: T, y: string): C2; // error ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>x : T, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 28, 9)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 26, 13)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 28, 14)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithIdenticalOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 26, 13)) new (x: T, y: string): C2; ->T : T ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 29, 9)) +>x : T, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 29, 12)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 29, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 29, 17)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithIdenticalOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 29, 9)) new (x: T, y: string): C2; // error ->T : T ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 30, 9)) +>x : T, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 30, 12)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 30, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 30, 17)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithIdenticalOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 30, 9)) } var i2: I2; ->i2 : I2 ->I2 : I2 +>i2 : I2, Symbol(i2, Decl(constructSignaturesWithIdenticalOverloads.ts, 33, 3)) +>I2 : I2, Symbol(I2, Decl(constructSignaturesWithIdenticalOverloads.ts, 24, 22)) var r4 = new i2(1, ''); ->r4 : C2 +>r4 : C2, Symbol(r4, Decl(constructSignaturesWithIdenticalOverloads.ts, 34, 3)) >new i2(1, '') : C2 ->i2 : I2 +>i2 : I2, Symbol(i2, Decl(constructSignaturesWithIdenticalOverloads.ts, 33, 3)) +>1 : number +>'' : string var a: { ->a : { new (x: number, y: string): C; new (x: number, y: string): C; } +>a : { new (x: number, y: string): C; new (x: number, y: string): C; }, Symbol(a, Decl(constructSignaturesWithIdenticalOverloads.ts, 36, 3)) new (x: number, y: string): C; ->x : number ->y : string ->C : C +>x : number, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 37, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 37, 19)) +>C : C, Symbol(C, Decl(constructSignaturesWithIdenticalOverloads.ts, 0, 0)) new (x: number, y: string): C; // error ->x : number ->y : string ->C : C +>x : number, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 38, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 38, 19)) +>C : C, Symbol(C, Decl(constructSignaturesWithIdenticalOverloads.ts, 0, 0)) } var r5 = new a(1, ''); ->r5 : C +>r5 : C, Symbol(r5, Decl(constructSignaturesWithIdenticalOverloads.ts, 41, 3)) >new a(1, '') : C ->a : { new (x: number, y: string): C; new (x: number, y: string): C; } +>a : { new (x: number, y: string): C; new (x: number, y: string): C; }, Symbol(a, Decl(constructSignaturesWithIdenticalOverloads.ts, 36, 3)) +>1 : number +>'' : string var b: { ->b : { new (x: T, y: string): C2; new (x: T, y: string): C2; } +>b : { new (x: T, y: string): C2; new (x: T, y: string): C2; }, Symbol(b, Decl(constructSignaturesWithIdenticalOverloads.ts, 43, 3)) new (x: T, y: string): C2; ->T : T ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 44, 9)) +>x : T, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 44, 12)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 44, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 44, 17)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithIdenticalOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 44, 9)) new (x: T, y: string): C2; // error ->T : T ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 45, 9)) +>x : T, Symbol(x, Decl(constructSignaturesWithIdenticalOverloads.ts, 45, 12)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 45, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithIdenticalOverloads.ts, 45, 17)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithIdenticalOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithIdenticalOverloads.ts, 45, 9)) } var r6 = new b(1, ''); ->r6 : C2 +>r6 : C2, Symbol(r6, Decl(constructSignaturesWithIdenticalOverloads.ts, 48, 3)) >new b(1, '') : C2 ->b : { new (x: T, y: string): C2; new (x: T, y: string): C2; } +>b : { new (x: T, y: string): C2; new (x: T, y: string): C2; }, Symbol(b, Decl(constructSignaturesWithIdenticalOverloads.ts, 43, 3)) +>1 : number +>'' : string diff --git a/tests/baselines/reference/constructSignaturesWithOverloads.types b/tests/baselines/reference/constructSignaturesWithOverloads.types index 0cd9b744ee7..105ab8ee8d4 100644 --- a/tests/baselines/reference/constructSignaturesWithOverloads.types +++ b/tests/baselines/reference/constructSignaturesWithOverloads.types @@ -2,158 +2,170 @@ // No errors expected for basic overloads of construct signatures class C { ->C : C +>C : C, Symbol(C, Decl(constructSignaturesWithOverloads.ts, 0, 0)) constructor(x: number, y?: string); ->x : number ->y : string +>x : number, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 3, 16)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 3, 26)) constructor(x: number, y: string); ->x : number ->y : string +>x : number, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 4, 16)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 4, 26)) constructor(x: number) { } ->x : number +>x : number, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 5, 16)) } var r1 = new C(1, ''); ->r1 : C +>r1 : C, Symbol(r1, Decl(constructSignaturesWithOverloads.ts, 8, 3)) >new C(1, '') : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(constructSignaturesWithOverloads.ts, 0, 0)) +>1 : number +>'' : string class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 10, 9)) constructor(x: T, y?: string); ->x : T ->T : T ->y : string +>x : T, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 11, 16)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 10, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 11, 21)) constructor(x: T, y: string); ->x : T ->T : T ->y : string +>x : T, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 12, 16)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 10, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 12, 21)) constructor(x: T) { } ->x : T ->T : T +>x : T, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 13, 16)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 10, 9)) } var r2 = new C2(1, ''); ->r2 : C2 +>r2 : C2, Symbol(r2, Decl(constructSignaturesWithOverloads.ts, 16, 3)) >new C2(1, '') : C2 ->C2 : typeof C2 +>C2 : typeof C2, Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22)) +>1 : number +>'' : string interface I { ->I : I +>I : I, Symbol(I, Decl(constructSignaturesWithOverloads.ts, 16, 23)) new(x: number, y?: string): C; ->x : number ->y : string ->C : C +>x : number, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 19, 8)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 19, 18)) +>C : C, Symbol(C, Decl(constructSignaturesWithOverloads.ts, 0, 0)) new(x: number, y: string): C; ->x : number ->y : string ->C : C +>x : number, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 20, 8)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 20, 18)) +>C : C, Symbol(C, Decl(constructSignaturesWithOverloads.ts, 0, 0)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(constructSignaturesWithOverloads.ts, 23, 3)) +>I : I, Symbol(I, Decl(constructSignaturesWithOverloads.ts, 16, 23)) var r3 = new i(1, ''); ->r3 : C +>r3 : C, Symbol(r3, Decl(constructSignaturesWithOverloads.ts, 24, 3)) >new i(1, '') : C ->i : I +>i : I, Symbol(i, Decl(constructSignaturesWithOverloads.ts, 23, 3)) +>1 : number +>'' : string interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(constructSignaturesWithOverloads.ts, 24, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 26, 13)) new (x: T, y?: string): C2; ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>x : T, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 27, 9)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 26, 13)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 27, 14)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 26, 13)) new (x: T, y: string): C2; ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>x : T, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 28, 9)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 26, 13)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 28, 14)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 26, 13)) new (x: T, y?: string): C2; ->T : T ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 29, 9)) +>x : T, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 29, 12)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 29, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 29, 17)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 29, 9)) new (x: T, y: string): C2; ->T : T ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 30, 9)) +>x : T, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 30, 12)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 30, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 30, 17)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 30, 9)) } var i2: I2; ->i2 : I2 ->I2 : I2 +>i2 : I2, Symbol(i2, Decl(constructSignaturesWithOverloads.ts, 34, 3)) +>I2 : I2, Symbol(I2, Decl(constructSignaturesWithOverloads.ts, 24, 22)) var r4 = new i2(1, ''); ->r4 : C2 +>r4 : C2, Symbol(r4, Decl(constructSignaturesWithOverloads.ts, 35, 3)) >new i2(1, '') : C2 ->i2 : I2 +>i2 : I2, Symbol(i2, Decl(constructSignaturesWithOverloads.ts, 34, 3)) +>1 : number +>'' : string var a: { ->a : { new (x: number, y?: string): C; new (x: number, y: string): C; } +>a : { new (x: number, y?: string): C; new (x: number, y: string): C; }, Symbol(a, Decl(constructSignaturesWithOverloads.ts, 37, 3)) new(x: number, y?: string): C; ->x : number ->y : string ->C : C +>x : number, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 38, 8)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 38, 18)) +>C : C, Symbol(C, Decl(constructSignaturesWithOverloads.ts, 0, 0)) new(x: number, y: string): C; ->x : number ->y : string ->C : C +>x : number, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 39, 8)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 39, 18)) +>C : C, Symbol(C, Decl(constructSignaturesWithOverloads.ts, 0, 0)) } var r5 = new a(1, ''); ->r5 : C +>r5 : C, Symbol(r5, Decl(constructSignaturesWithOverloads.ts, 42, 3)) >new a(1, '') : C ->a : { new (x: number, y?: string): C; new (x: number, y: string): C; } +>a : { new (x: number, y?: string): C; new (x: number, y: string): C; }, Symbol(a, Decl(constructSignaturesWithOverloads.ts, 37, 3)) +>1 : number +>'' : string var b: { ->b : { new (x: T, y?: string): C2; new (x: T, y: string): C2; } +>b : { new (x: T, y?: string): C2; new (x: T, y: string): C2; }, Symbol(b, Decl(constructSignaturesWithOverloads.ts, 44, 3)) new(x: T, y?: string): C2; ->T : T ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 45, 8)) +>x : T, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 45, 11)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 45, 8)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 45, 16)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 45, 8)) new(x: T, y: string): C2; ->T : T ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 46, 8)) +>x : T, Symbol(x, Decl(constructSignaturesWithOverloads.ts, 46, 11)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 46, 8)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloads.ts, 46, 16)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloads.ts, 8, 22)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloads.ts, 46, 8)) } var r6 = new b(1, ''); ->r6 : C2 +>r6 : C2, Symbol(r6, Decl(constructSignaturesWithOverloads.ts, 49, 3)) >new b(1, '') : C2 ->b : { new (x: T, y?: string): C2; new (x: T, y: string): C2; } +>b : { new (x: T, y?: string): C2; new (x: T, y: string): C2; }, Symbol(b, Decl(constructSignaturesWithOverloads.ts, 44, 3)) +>1 : number +>'' : string diff --git a/tests/baselines/reference/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.types b/tests/baselines/reference/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.types index 6e1ea33efa7..41ee7dd16ba 100644 --- a/tests/baselines/reference/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.types +++ b/tests/baselines/reference/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.types @@ -2,98 +2,98 @@ // Error for construct signature overloads to differ only by return type class C { ->C : C +>C : C, Symbol(C, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 0, 0)) constructor(x: number) { } ->x : number +>x : number, Symbol(x, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 3, 16)) } class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 4, 1)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 6, 9)) constructor(x: T, y?: string) { } ->x : T ->T : T ->y : string +>x : T, Symbol(x, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 7, 16)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 6, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 7, 21)) } interface I { ->I : I +>I : I, Symbol(I, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 8, 1)) new(x: number, y: string): C; ->x : number ->y : string ->C : C +>x : number, Symbol(x, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 11, 8)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 11, 18)) +>C : C, Symbol(C, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 0, 0)) new(x: number, y: string): C2; // error ->x : number ->y : string ->C2 : C2 +>x : number, Symbol(x, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 12, 8)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 12, 18)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 4, 1)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 13, 1)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 15, 13)) new (x: T, y: string): C2; ->x : T ->T : T ->y : string ->C2 : C2 +>x : T, Symbol(x, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 16, 9)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 15, 13)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 16, 14)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 4, 1)) new (x: T, y: string): C; // error ->x : T ->T : T ->y : string ->C : C +>x : T, Symbol(x, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 17, 9)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 15, 13)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 17, 14)) +>C : C, Symbol(C, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 0, 0)) new (x: T, y: string): C2; ->T : T ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 18, 9)) +>x : T, Symbol(x, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 18, 12)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 18, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 18, 17)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 4, 1)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 18, 9)) new (x: T, y: string): C; // error ->T : T ->x : T ->T : T ->y : string ->C : C +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 19, 9)) +>x : T, Symbol(x, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 19, 12)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 19, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 19, 17)) +>C : C, Symbol(C, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 0, 0)) } var a: { ->a : { new (x: number, y: string): C2; new (x: number, y: string): C; } +>a : { new (x: number, y: string): C2; new (x: number, y: string): C; }, Symbol(a, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 23, 3)) new (x: number, y: string): C2; ->x : number ->y : string ->C2 : C2 +>x : number, Symbol(x, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 24, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 24, 19)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 4, 1)) new (x: number, y: string): C; // error ->x : number ->y : string ->C : C +>x : number, Symbol(x, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 25, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 25, 19)) +>C : C, Symbol(C, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 0, 0)) } var b: { ->b : { new (x: T, y: string): C2; new (x: T, y: string): C; } +>b : { new (x: T, y: string): C2; new (x: T, y: string): C; }, Symbol(b, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 28, 3)) new (x: T, y: string): C2; ->T : T ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 29, 9)) +>x : T, Symbol(x, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 29, 12)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 29, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 29, 17)) +>C2 : C2, Symbol(C2, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 4, 1)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 29, 9)) new (x: T, y: string): C; // error ->T : T ->x : T ->T : T ->y : string ->C : C +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 30, 9)) +>x : T, Symbol(x, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 30, 12)) +>T : T, Symbol(T, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 30, 9)) +>y : string, Symbol(y, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 30, 17)) +>C : C, Symbol(C, Decl(constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts, 0, 0)) } diff --git a/tests/baselines/reference/constructorArgWithGenericCallSignature.types b/tests/baselines/reference/constructorArgWithGenericCallSignature.types index a419f3a3427..3bf87b21126 100644 --- a/tests/baselines/reference/constructorArgWithGenericCallSignature.types +++ b/tests/baselines/reference/constructorArgWithGenericCallSignature.types @@ -1,46 +1,46 @@ === tests/cases/compiler/constructorArgWithGenericCallSignature.ts === module Test { ->Test : typeof Test +>Test : typeof Test, Symbol(Test, Decl(constructorArgWithGenericCallSignature.ts, 0, 0)) export interface MyFunc { ->MyFunc : MyFunc +>MyFunc : MyFunc, Symbol(MyFunc, Decl(constructorArgWithGenericCallSignature.ts, 0, 13)) (value1: T): T; ->T : T ->value1 : T ->T : T ->T : T +>T : T, Symbol(T, Decl(constructorArgWithGenericCallSignature.ts, 2, 9)) +>value1 : T, Symbol(value1, Decl(constructorArgWithGenericCallSignature.ts, 2, 12)) +>T : T, Symbol(T, Decl(constructorArgWithGenericCallSignature.ts, 2, 9)) +>T : T, Symbol(T, Decl(constructorArgWithGenericCallSignature.ts, 2, 9)) } export class MyClass { ->MyClass : MyClass +>MyClass : MyClass, Symbol(MyClass, Decl(constructorArgWithGenericCallSignature.ts, 3, 5)) constructor(func: MyFunc) { } ->func : MyFunc ->MyFunc : MyFunc +>func : MyFunc, Symbol(func, Decl(constructorArgWithGenericCallSignature.ts, 5, 20)) +>MyFunc : MyFunc, Symbol(MyFunc, Decl(constructorArgWithGenericCallSignature.ts, 0, 13)) } export function F(func: MyFunc) { } ->F : (func: MyFunc) => void ->func : MyFunc ->MyFunc : MyFunc +>F : (func: MyFunc) => void, Symbol(F, Decl(constructorArgWithGenericCallSignature.ts, 6, 5)) +>func : MyFunc, Symbol(func, Decl(constructorArgWithGenericCallSignature.ts, 8, 19)) +>MyFunc : MyFunc, Symbol(MyFunc, Decl(constructorArgWithGenericCallSignature.ts, 0, 13)) } var func: Test.MyFunc; ->func : Test.MyFunc ->Test : unknown ->MyFunc : Test.MyFunc +>func : Test.MyFunc, Symbol(func, Decl(constructorArgWithGenericCallSignature.ts, 10, 3)) +>Test : any, Symbol(Test, Decl(constructorArgWithGenericCallSignature.ts, 0, 0)) +>MyFunc : Test.MyFunc, Symbol(Test.MyFunc, Decl(constructorArgWithGenericCallSignature.ts, 0, 13)) Test.F(func); // OK >Test.F(func) : void ->Test.F : (func: Test.MyFunc) => void ->Test : typeof Test ->F : (func: Test.MyFunc) => void ->func : Test.MyFunc +>Test.F : (func: Test.MyFunc) => void, Symbol(Test.F, Decl(constructorArgWithGenericCallSignature.ts, 6, 5)) +>Test : typeof Test, Symbol(Test, Decl(constructorArgWithGenericCallSignature.ts, 0, 0)) +>F : (func: Test.MyFunc) => void, Symbol(Test.F, Decl(constructorArgWithGenericCallSignature.ts, 6, 5)) +>func : Test.MyFunc, Symbol(func, Decl(constructorArgWithGenericCallSignature.ts, 10, 3)) var test = new Test.MyClass(func); // Should be OK ->test : Test.MyClass +>test : Test.MyClass, Symbol(test, Decl(constructorArgWithGenericCallSignature.ts, 12, 3)) >new Test.MyClass(func) : Test.MyClass ->Test.MyClass : typeof Test.MyClass ->Test : typeof Test ->MyClass : typeof Test.MyClass ->func : Test.MyFunc +>Test.MyClass : typeof Test.MyClass, Symbol(Test.MyClass, Decl(constructorArgWithGenericCallSignature.ts, 3, 5)) +>Test : typeof Test, Symbol(Test, Decl(constructorArgWithGenericCallSignature.ts, 0, 0)) +>MyClass : typeof Test.MyClass, Symbol(Test.MyClass, Decl(constructorArgWithGenericCallSignature.ts, 3, 5)) +>func : Test.MyFunc, Symbol(func, Decl(constructorArgWithGenericCallSignature.ts, 10, 3)) diff --git a/tests/baselines/reference/constructorArgs.types b/tests/baselines/reference/constructorArgs.types index ccd23c22f5d..048346320c0 100644 --- a/tests/baselines/reference/constructorArgs.types +++ b/tests/baselines/reference/constructorArgs.types @@ -1,33 +1,33 @@ === tests/cases/compiler/constructorArgs.ts === interface Options { ->Options : Options +>Options : Options, Symbol(Options, Decl(constructorArgs.ts, 0, 0)) value: number; ->value : number +>value : number, Symbol(value, Decl(constructorArgs.ts, 0, 19)) } class Super { ->Super : Super +>Super : Super, Symbol(Super, Decl(constructorArgs.ts, 2, 1)) constructor(value:number) { ->value : number +>value : number, Symbol(value, Decl(constructorArgs.ts, 5, 13)) } } class Sub extends Super { ->Sub : Sub ->Super : Super +>Sub : Sub, Symbol(Sub, Decl(constructorArgs.ts, 7, 1)) +>Super : Super, Symbol(Super, Decl(constructorArgs.ts, 2, 1)) constructor(public options:Options) { ->options : Options ->Options : Options +>options : Options, Symbol(options, Decl(constructorArgs.ts, 10, 13)) +>Options : Options, Symbol(Options, Decl(constructorArgs.ts, 0, 0)) super(options.value); >super(options.value) : void ->super : typeof Super ->options.value : number ->options : Options ->value : number +>super : typeof Super, Symbol(Super, Decl(constructorArgs.ts, 2, 1)) +>options.value : number, Symbol(Options.value, Decl(constructorArgs.ts, 0, 19)) +>options : Options, Symbol(options, Decl(constructorArgs.ts, 10, 13)) +>value : number, Symbol(Options.value, Decl(constructorArgs.ts, 0, 19)) } } diff --git a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.types b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.types index 3702be4f2dc..e5548d1cb55 100644 --- a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.types +++ b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.types @@ -1,38 +1,38 @@ === tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/constructorFunctionTypeIsAssignableToBaseType.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(constructorFunctionTypeIsAssignableToBaseType.ts, 0, 0)) static foo: { ->foo : { bar: Object; } +>foo : { bar: Object; }, Symbol(Base.foo, Decl(constructorFunctionTypeIsAssignableToBaseType.ts, 0, 12)) bar: Object; ->bar : Object ->Object : Object +>bar : Object, Symbol(bar, Decl(constructorFunctionTypeIsAssignableToBaseType.ts, 1, 17)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) } } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(constructorFunctionTypeIsAssignableToBaseType.ts, 4, 1)) +>Base : Base, Symbol(Base, Decl(constructorFunctionTypeIsAssignableToBaseType.ts, 0, 0)) // ok static foo: { ->foo : { bar: number; } +>foo : { bar: number; }, Symbol(Derived.foo, Decl(constructorFunctionTypeIsAssignableToBaseType.ts, 6, 28)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(constructorFunctionTypeIsAssignableToBaseType.ts, 8, 17)) } } class Derived2 extends Base { ->Derived2 : Derived2 ->Base : Base +>Derived2 : Derived2, Symbol(Derived2, Decl(constructorFunctionTypeIsAssignableToBaseType.ts, 11, 1)) +>Base : Base, Symbol(Base, Decl(constructorFunctionTypeIsAssignableToBaseType.ts, 0, 0)) // ok, use assignability here static foo: { ->foo : { bar: any; } +>foo : { bar: any; }, Symbol(Derived2.foo, Decl(constructorFunctionTypeIsAssignableToBaseType.ts, 13, 29)) bar: any; ->bar : any +>bar : any, Symbol(bar, Decl(constructorFunctionTypeIsAssignableToBaseType.ts, 15, 17)) } } diff --git a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.types b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.types index 53853163827..ed4af354aca 100644 --- a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.types +++ b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.types @@ -2,63 +2,64 @@ // the constructor function itself does not need to be a subtype of the base type constructor function class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 0, 0)) static foo: { ->foo : { bar: Object; } +>foo : { bar: Object; }, Symbol(Base.foo, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 2, 12)) bar: Object; ->bar : Object ->Object : Object +>bar : Object, Symbol(bar, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 3, 17)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) } constructor(x: Object) { ->x : Object ->Object : Object +>x : Object, Symbol(x, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 6, 16)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) } } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 8, 1)) +>Base : Base, Symbol(Base, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 0, 0)) // ok static foo: { ->foo : { bar: number; } +>foo : { bar: number; }, Symbol(Derived.foo, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 10, 28)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 12, 17)) } constructor(x: number) { ->x : number +>x : number, Symbol(x, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 16, 16)) super(x); >super(x) : void ->super : typeof Base ->x : number +>super : typeof Base, Symbol(Base, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 0, 0)) +>x : number, Symbol(x, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 16, 16)) } } class Derived2 extends Base { ->Derived2 : Derived2 ->Base : Base +>Derived2 : Derived2, Symbol(Derived2, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 19, 1)) +>Base : Base, Symbol(Base, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 0, 0)) static foo: { ->foo : { bar: number; } +>foo : { bar: number; }, Symbol(Derived2.foo, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 21, 29)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 22, 17)) } // ok, not enforcing assignability relation on this constructor(x: any) { ->x : any +>x : any, Symbol(x, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 27, 16)) super(x); >super(x) : void ->super : typeof Base ->x : any +>super : typeof Base, Symbol(Base, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 0, 0)) +>x : any, Symbol(x, Decl(constructorFunctionTypeIsAssignableToBaseType2.ts, 27, 16)) return 1; +>1 : number } } diff --git a/tests/baselines/reference/constructorHasPrototypeProperty.types b/tests/baselines/reference/constructorHasPrototypeProperty.types index 24dedb254eb..0fba4b0511c 100644 --- a/tests/baselines/reference/constructorHasPrototypeProperty.types +++ b/tests/baselines/reference/constructorHasPrototypeProperty.types @@ -1,100 +1,100 @@ === tests/cases/conformance/classes/members/constructorFunctionTypes/constructorHasPrototypeProperty.ts === module NonGeneric { ->NonGeneric : typeof NonGeneric +>NonGeneric : typeof NonGeneric, Symbol(NonGeneric, Decl(constructorHasPrototypeProperty.ts, 0, 0)) class C { ->C : C +>C : C, Symbol(C, Decl(constructorHasPrototypeProperty.ts, 0, 19)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(constructorHasPrototypeProperty.ts, 1, 13)) } class D extends C { ->D : D ->C : C +>D : D, Symbol(D, Decl(constructorHasPrototypeProperty.ts, 3, 5)) +>C : C, Symbol(C, Decl(constructorHasPrototypeProperty.ts, 0, 19)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(constructorHasPrototypeProperty.ts, 5, 23)) } var r = C.prototype; ->r : C ->C.prototype : C ->C : typeof C ->prototype : C +>r : C, Symbol(r, Decl(constructorHasPrototypeProperty.ts, 9, 7)) +>C.prototype : C, Symbol(C.prototype) +>C : typeof C, Symbol(C, Decl(constructorHasPrototypeProperty.ts, 0, 19)) +>prototype : C, Symbol(C.prototype) r.foo; ->r.foo : string ->r : C ->foo : string +>r.foo : string, Symbol(C.foo, Decl(constructorHasPrototypeProperty.ts, 1, 13)) +>r : C, Symbol(r, Decl(constructorHasPrototypeProperty.ts, 9, 7)) +>foo : string, Symbol(C.foo, Decl(constructorHasPrototypeProperty.ts, 1, 13)) var r2 = D.prototype; ->r2 : D ->D.prototype : D ->D : typeof D ->prototype : D +>r2 : D, Symbol(r2, Decl(constructorHasPrototypeProperty.ts, 11, 7)) +>D.prototype : D, Symbol(D.prototype) +>D : typeof D, Symbol(D, Decl(constructorHasPrototypeProperty.ts, 3, 5)) +>prototype : D, Symbol(D.prototype) r2.bar; ->r2.bar : string ->r2 : D ->bar : string +>r2.bar : string, Symbol(D.bar, Decl(constructorHasPrototypeProperty.ts, 5, 23)) +>r2 : D, Symbol(r2, Decl(constructorHasPrototypeProperty.ts, 11, 7)) +>bar : string, Symbol(D.bar, Decl(constructorHasPrototypeProperty.ts, 5, 23)) } module Generic { ->Generic : typeof Generic +>Generic : typeof Generic, Symbol(Generic, Decl(constructorHasPrototypeProperty.ts, 13, 1)) class C { ->C : C ->T : T ->U : U +>C : C, Symbol(C, Decl(constructorHasPrototypeProperty.ts, 15, 16)) +>T : T, Symbol(T, Decl(constructorHasPrototypeProperty.ts, 16, 12)) +>U : U, Symbol(U, Decl(constructorHasPrototypeProperty.ts, 16, 14)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(constructorHasPrototypeProperty.ts, 16, 18)) +>T : T, Symbol(T, Decl(constructorHasPrototypeProperty.ts, 16, 12)) bar: U; ->bar : U ->U : U +>bar : U, Symbol(bar, Decl(constructorHasPrototypeProperty.ts, 17, 15)) +>U : U, Symbol(U, Decl(constructorHasPrototypeProperty.ts, 16, 14)) } class D extends C { ->D : D ->T : T ->U : U ->C : C ->T : T ->U : U +>D : D, Symbol(D, Decl(constructorHasPrototypeProperty.ts, 19, 5)) +>T : T, Symbol(T, Decl(constructorHasPrototypeProperty.ts, 21, 12)) +>U : U, Symbol(U, Decl(constructorHasPrototypeProperty.ts, 21, 14)) +>C : C, Symbol(C, Decl(constructorHasPrototypeProperty.ts, 15, 16)) +>T : T, Symbol(T, Decl(constructorHasPrototypeProperty.ts, 21, 12)) +>U : U, Symbol(U, Decl(constructorHasPrototypeProperty.ts, 21, 14)) baz: T; ->baz : T ->T : T +>baz : T, Symbol(baz, Decl(constructorHasPrototypeProperty.ts, 21, 33)) +>T : T, Symbol(T, Decl(constructorHasPrototypeProperty.ts, 21, 12)) bing: U; ->bing : U ->U : U +>bing : U, Symbol(bing, Decl(constructorHasPrototypeProperty.ts, 22, 15)) +>U : U, Symbol(U, Decl(constructorHasPrototypeProperty.ts, 21, 14)) } var r = C.prototype; // C ->r : C ->C.prototype : C ->C : typeof C ->prototype : C +>r : C, Symbol(r, Decl(constructorHasPrototypeProperty.ts, 26, 7)) +>C.prototype : C, Symbol(C.prototype) +>C : typeof C, Symbol(C, Decl(constructorHasPrototypeProperty.ts, 15, 16)) +>prototype : C, Symbol(C.prototype) var ra = r.foo; // any ->ra : any ->r.foo : any ->r : C ->foo : any +>ra : any, Symbol(ra, Decl(constructorHasPrototypeProperty.ts, 27, 7)) +>r.foo : any, Symbol(C.foo, Decl(constructorHasPrototypeProperty.ts, 16, 18)) +>r : C, Symbol(r, Decl(constructorHasPrototypeProperty.ts, 26, 7)) +>foo : any, Symbol(C.foo, Decl(constructorHasPrototypeProperty.ts, 16, 18)) var r2 = D.prototype; // D ->r2 : D ->D.prototype : D ->D : typeof D ->prototype : D +>r2 : D, Symbol(r2, Decl(constructorHasPrototypeProperty.ts, 28, 7)) +>D.prototype : D, Symbol(D.prototype) +>D : typeof D, Symbol(D, Decl(constructorHasPrototypeProperty.ts, 19, 5)) +>prototype : D, Symbol(D.prototype) var rb = r2.baz; // any ->rb : any ->r2.baz : any ->r2 : D ->baz : any +>rb : any, Symbol(rb, Decl(constructorHasPrototypeProperty.ts, 29, 7)) +>r2.baz : any, Symbol(D.baz, Decl(constructorHasPrototypeProperty.ts, 21, 33)) +>r2 : D, Symbol(r2, Decl(constructorHasPrototypeProperty.ts, 28, 7)) +>baz : any, Symbol(D.baz, Decl(constructorHasPrototypeProperty.ts, 21, 33)) } diff --git a/tests/baselines/reference/constructorImplementationWithDefaultValues.types b/tests/baselines/reference/constructorImplementationWithDefaultValues.types index 6dc2b4f285b..56a7320aba5 100644 --- a/tests/baselines/reference/constructorImplementationWithDefaultValues.types +++ b/tests/baselines/reference/constructorImplementationWithDefaultValues.types @@ -1,50 +1,53 @@ === tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorImplementationWithDefaultValues.ts === class C { ->C : C +>C : C, Symbol(C, Decl(constructorImplementationWithDefaultValues.ts, 0, 0)) constructor(x); ->x : any +>x : any, Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 1, 16)) constructor(x = 1) { ->x : number +>x : number, Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 2, 16)) +>1 : number var y = x; ->y : number ->x : number +>y : number, Symbol(y, Decl(constructorImplementationWithDefaultValues.ts, 3, 11)) +>x : number, Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 2, 16)) } } class D { ->D : D ->T : T +>D : D, Symbol(D, Decl(constructorImplementationWithDefaultValues.ts, 5, 1)) +>T : T, Symbol(T, Decl(constructorImplementationWithDefaultValues.ts, 7, 8)) constructor(x); ->x : any +>x : any, Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 8, 16)) constructor(x:T = null) { ->x : T ->T : T +>x : T, Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 9, 16)) +>T : T, Symbol(T, Decl(constructorImplementationWithDefaultValues.ts, 7, 8)) +>null : null var y = x; ->y : T ->x : T +>y : T, Symbol(y, Decl(constructorImplementationWithDefaultValues.ts, 10, 11)) +>x : T, Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 9, 16)) } } class E { ->E : E ->T : T ->Date : Date +>E : E, Symbol(E, Decl(constructorImplementationWithDefaultValues.ts, 12, 1)) +>T : T, Symbol(T, Decl(constructorImplementationWithDefaultValues.ts, 14, 8)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) constructor(x); ->x : any +>x : any, Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 15, 16)) constructor(x: T = null) { ->x : T ->T : T +>x : T, Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 16, 16)) +>T : T, Symbol(T, Decl(constructorImplementationWithDefaultValues.ts, 14, 8)) +>null : null var y = x; ->y : T ->x : T +>y : T, Symbol(y, Decl(constructorImplementationWithDefaultValues.ts, 17, 11)) +>x : T, Symbol(x, Decl(constructorImplementationWithDefaultValues.ts, 16, 16)) } } diff --git a/tests/baselines/reference/constructorOverloads2.types b/tests/baselines/reference/constructorOverloads2.types index 65da67f04fe..e0055476db2 100644 --- a/tests/baselines/reference/constructorOverloads2.types +++ b/tests/baselines/reference/constructorOverloads2.types @@ -1,74 +1,76 @@ === tests/cases/compiler/constructorOverloads2.ts === class FooBase { ->FooBase : FooBase +>FooBase : FooBase, Symbol(FooBase, Decl(constructorOverloads2.ts, 0, 0)) constructor(s: string); ->s : string +>s : string, Symbol(s, Decl(constructorOverloads2.ts, 1, 16)) constructor(n: number); ->n : number +>n : number, Symbol(n, Decl(constructorOverloads2.ts, 2, 16)) constructor(x: any) { ->x : any +>x : any, Symbol(x, Decl(constructorOverloads2.ts, 3, 16)) } bar1() { /*WScript.Echo("base bar1");*/ } ->bar1 : () => void +>bar1 : () => void, Symbol(bar1, Decl(constructorOverloads2.ts, 4, 5)) } class Foo extends FooBase { ->Foo : Foo ->FooBase : FooBase +>Foo : Foo, Symbol(Foo, Decl(constructorOverloads2.ts, 6, 1)) +>FooBase : FooBase, Symbol(FooBase, Decl(constructorOverloads2.ts, 0, 0)) constructor(s: string); ->s : string +>s : string, Symbol(s, Decl(constructorOverloads2.ts, 9, 16)) constructor(n: number); ->n : number +>n : number, Symbol(n, Decl(constructorOverloads2.ts, 10, 16)) constructor(a:any); ->a : any +>a : any, Symbol(a, Decl(constructorOverloads2.ts, 11, 16)) constructor(x: any, y?: any) { ->x : any ->y : any +>x : any, Symbol(x, Decl(constructorOverloads2.ts, 12, 16)) +>y : any, Symbol(y, Decl(constructorOverloads2.ts, 12, 23)) super(x); >super(x) : void ->super : typeof FooBase ->x : any +>super : typeof FooBase, Symbol(FooBase, Decl(constructorOverloads2.ts, 0, 0)) +>x : any, Symbol(x, Decl(constructorOverloads2.ts, 12, 16)) } bar1() { /*WScript.Echo("bar1");*/ } ->bar1 : () => void +>bar1 : () => void, Symbol(bar1, Decl(constructorOverloads2.ts, 14, 5)) } var f1 = new Foo("hey"); ->f1 : Foo +>f1 : Foo, Symbol(f1, Decl(constructorOverloads2.ts, 18, 3)) >new Foo("hey") : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(constructorOverloads2.ts, 6, 1)) +>"hey" : string var f2 = new Foo(0); ->f2 : Foo +>f2 : Foo, Symbol(f2, Decl(constructorOverloads2.ts, 19, 3)) >new Foo(0) : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(constructorOverloads2.ts, 6, 1)) +>0 : number var f3 = new Foo(f1); ->f3 : Foo +>f3 : Foo, Symbol(f3, Decl(constructorOverloads2.ts, 20, 3)) >new Foo(f1) : Foo ->Foo : typeof Foo ->f1 : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(constructorOverloads2.ts, 6, 1)) +>f1 : Foo, Symbol(f1, Decl(constructorOverloads2.ts, 18, 3)) var f4 = new Foo([f1,f2,f3]); ->f4 : Foo +>f4 : Foo, Symbol(f4, Decl(constructorOverloads2.ts, 21, 3)) >new Foo([f1,f2,f3]) : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(constructorOverloads2.ts, 6, 1)) >[f1,f2,f3] : Foo[] ->f1 : Foo ->f2 : Foo ->f3 : Foo +>f1 : Foo, Symbol(f1, Decl(constructorOverloads2.ts, 18, 3)) +>f2 : Foo, Symbol(f2, Decl(constructorOverloads2.ts, 19, 3)) +>f3 : Foo, Symbol(f3, Decl(constructorOverloads2.ts, 20, 3)) f1.bar1(); >f1.bar1() : void ->f1.bar1 : () => void ->f1 : Foo ->bar1 : () => void +>f1.bar1 : () => void, Symbol(Foo.bar1, Decl(constructorOverloads2.ts, 14, 5)) +>f1 : Foo, Symbol(f1, Decl(constructorOverloads2.ts, 18, 3)) +>bar1 : () => void, Symbol(Foo.bar1, Decl(constructorOverloads2.ts, 14, 5)) diff --git a/tests/baselines/reference/constructorOverloadsWithOptionalParameters.types b/tests/baselines/reference/constructorOverloadsWithOptionalParameters.types index c68aa782252..ab7a16c7177 100644 --- a/tests/baselines/reference/constructorOverloadsWithOptionalParameters.types +++ b/tests/baselines/reference/constructorOverloadsWithOptionalParameters.types @@ -1,28 +1,28 @@ === tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorOverloadsWithOptionalParameters.ts === class C { ->C : C +>C : C, Symbol(C, Decl(constructorOverloadsWithOptionalParameters.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(constructorOverloadsWithOptionalParameters.ts, 0, 9)) constructor(x?, y?: any[]); ->x : any ->y : any[] +>x : any, Symbol(x, Decl(constructorOverloadsWithOptionalParameters.ts, 2, 16)) +>y : any[], Symbol(y, Decl(constructorOverloadsWithOptionalParameters.ts, 2, 19)) constructor() { } } class D { ->D : D ->T : T +>D : D, Symbol(D, Decl(constructorOverloadsWithOptionalParameters.ts, 5, 1)) +>T : T, Symbol(T, Decl(constructorOverloadsWithOptionalParameters.ts, 7, 8)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(constructorOverloadsWithOptionalParameters.ts, 7, 12)) constructor(x?, y?: any[]); ->x : any ->y : any[] +>x : any, Symbol(x, Decl(constructorOverloadsWithOptionalParameters.ts, 9, 16)) +>y : any[], Symbol(y, Decl(constructorOverloadsWithOptionalParameters.ts, 9, 19)) constructor() { } diff --git a/tests/baselines/reference/constructorReturningAPrimitive.types b/tests/baselines/reference/constructorReturningAPrimitive.types index c4ca2ba7078..a646c54bbb1 100644 --- a/tests/baselines/reference/constructorReturningAPrimitive.types +++ b/tests/baselines/reference/constructorReturningAPrimitive.types @@ -3,34 +3,35 @@ // functionally only possible when your class is otherwise devoid of members so of little consequence in practice class A { ->A : A +>A : A, Symbol(A, Decl(constructorReturningAPrimitive.ts, 0, 0)) constructor() { return 1; +>1 : number } } var a = new A(); ->a : A +>a : A, Symbol(a, Decl(constructorReturningAPrimitive.ts, 9, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(constructorReturningAPrimitive.ts, 0, 0)) class B { ->B : B ->T : T +>B : B, Symbol(B, Decl(constructorReturningAPrimitive.ts, 9, 16)) +>T : T, Symbol(T, Decl(constructorReturningAPrimitive.ts, 11, 8)) constructor() { var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(constructorReturningAPrimitive.ts, 13, 11)) +>T : T, Symbol(T, Decl(constructorReturningAPrimitive.ts, 11, 8)) return x; ->x : T +>x : T, Symbol(x, Decl(constructorReturningAPrimitive.ts, 13, 11)) } } var b = new B(); ->b : B +>b : B, Symbol(b, Decl(constructorReturningAPrimitive.ts, 18, 3)) >new B() : B ->B : typeof B +>B : typeof B, Symbol(B, Decl(constructorReturningAPrimitive.ts, 9, 16)) diff --git a/tests/baselines/reference/constructorStaticParamName.errors.txt b/tests/baselines/reference/constructorStaticParamName.errors.txt index ac50edd22f1..bd5012d00c1 100644 --- a/tests/baselines/reference/constructorStaticParamName.errors.txt +++ b/tests/baselines/reference/constructorStaticParamName.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/constructorStaticParamName.ts(4,18): error TS1003: Identifier expected. +tests/cases/compiler/constructorStaticParamName.ts(4,18): error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. ==== tests/cases/compiler/constructorStaticParamName.ts (1 errors) ==== @@ -7,6 +7,6 @@ tests/cases/compiler/constructorStaticParamName.ts(4,18): error TS1003: Identifi class test { constructor (static) { } ~~~~~~ -!!! error TS1003: Identifier expected. +!!! error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. } \ No newline at end of file diff --git a/tests/baselines/reference/constructorStaticParamName.js b/tests/baselines/reference/constructorStaticParamName.js index 85b22867442..cf74aed2ebc 100644 --- a/tests/baselines/reference/constructorStaticParamName.js +++ b/tests/baselines/reference/constructorStaticParamName.js @@ -9,7 +9,7 @@ class test { //// [constructorStaticParamName.js] // static as constructor parameter name should only give error if 'use strict' var test = (function () { - function test() { + function test(static) { } return test; })(); diff --git a/tests/baselines/reference/constructorStaticParamNameErrors.errors.txt b/tests/baselines/reference/constructorStaticParamNameErrors.errors.txt index 4739f54397c..847bb575a98 100644 --- a/tests/baselines/reference/constructorStaticParamNameErrors.errors.txt +++ b/tests/baselines/reference/constructorStaticParamNameErrors.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/constructorStaticParamNameErrors.ts(4,18): error TS1003: Identifier expected. +tests/cases/compiler/constructorStaticParamNameErrors.ts(4,18): error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. ==== tests/cases/compiler/constructorStaticParamNameErrors.ts (1 errors) ==== @@ -7,5 +7,5 @@ tests/cases/compiler/constructorStaticParamNameErrors.ts(4,18): error TS1003: Id class test { constructor (static) { } ~~~~~~ -!!! error TS1003: Identifier expected. +!!! error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. } \ No newline at end of file diff --git a/tests/baselines/reference/constructorStaticParamNameErrors.js b/tests/baselines/reference/constructorStaticParamNameErrors.js index 0bb8985545c..43e70a8c3cf 100644 --- a/tests/baselines/reference/constructorStaticParamNameErrors.js +++ b/tests/baselines/reference/constructorStaticParamNameErrors.js @@ -9,7 +9,7 @@ class test { 'use strict'; // static as constructor parameter name should give error if 'use strict' var test = (function () { - function test() { + function test(static) { } return test; })(); diff --git a/tests/baselines/reference/constructorTypeWithTypeParameters.types b/tests/baselines/reference/constructorTypeWithTypeParameters.types index e1f094bf8ef..c99da1c552d 100644 --- a/tests/baselines/reference/constructorTypeWithTypeParameters.types +++ b/tests/baselines/reference/constructorTypeWithTypeParameters.types @@ -1,16 +1,16 @@ === tests/cases/compiler/constructorTypeWithTypeParameters.ts === declare var X: { ->X : new () => number +>X : new () => number, Symbol(X, Decl(constructorTypeWithTypeParameters.ts, 0, 11)) new (): number; ->T : T +>T : T, Symbol(T, Decl(constructorTypeWithTypeParameters.ts, 1, 9)) } declare var Y: { ->Y : new () => number +>Y : new () => number, Symbol(Y, Decl(constructorTypeWithTypeParameters.ts, 3, 11)) new (): number; } var anotherVar: new () => number; ->anotherVar : new () => number ->T : T +>anotherVar : new () => number, Symbol(anotherVar, Decl(constructorTypeWithTypeParameters.ts, 6, 3)) +>T : T, Symbol(T, Decl(constructorTypeWithTypeParameters.ts, 6, 21)) diff --git a/tests/baselines/reference/constructorWithExpressionLessReturn.types b/tests/baselines/reference/constructorWithExpressionLessReturn.types index 595a4ae533f..88c97796097 100644 --- a/tests/baselines/reference/constructorWithExpressionLessReturn.types +++ b/tests/baselines/reference/constructorWithExpressionLessReturn.types @@ -1,6 +1,6 @@ === tests/cases/conformance/classes/constructorDeclarations/constructorWithExpressionLessReturn.ts === class C { ->C : C +>C : C, Symbol(C, Decl(constructorWithExpressionLessReturn.ts, 0, 0)) constructor() { return; @@ -8,10 +8,10 @@ class C { } class D { ->D : D +>D : D, Symbol(D, Decl(constructorWithExpressionLessReturn.ts, 4, 1)) x: number; ->x : number +>x : number, Symbol(x, Decl(constructorWithExpressionLessReturn.ts, 6, 9)) constructor() { return; @@ -19,22 +19,22 @@ class D { } class E { ->E : E +>E : E, Symbol(E, Decl(constructorWithExpressionLessReturn.ts, 11, 1)) constructor(public x: number) { ->x : number +>x : number, Symbol(x, Decl(constructorWithExpressionLessReturn.ts, 14, 16)) return; } } class F { ->F : F ->T : T +>F : F, Symbol(F, Decl(constructorWithExpressionLessReturn.ts, 17, 1)) +>T : T, Symbol(T, Decl(constructorWithExpressionLessReturn.ts, 19, 8)) constructor(public x: T) { ->x : T ->T : T +>x : T, Symbol(x, Decl(constructorWithExpressionLessReturn.ts, 20, 16)) +>T : T, Symbol(T, Decl(constructorWithExpressionLessReturn.ts, 19, 8)) return; } diff --git a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.errors.txt b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.errors.txt index 75de7c32ebc..5d607c8f5b2 100644 --- a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.errors.txt +++ b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.errors.txt @@ -21,45 +21,23 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(47,17): error TS tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(49,13): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(53,13): error TS2304: Cannot find name 'console'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(58,5): error TS1128: Declaration or statement expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(65,29): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(69,13): error TS1109: Expression expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(72,37): error TS1127: Invalid character. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(81,13): error TS1109: Expression expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(89,23): error TS2364: Invalid left-hand side of assignment expression. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(90,13): error TS1109: Expression expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(94,17): error TS1134: Variable declaration expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(95,13): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(105,29): error TS1109: Expression expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(106,13): error TS1109: Expression expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(108,24): error TS2304: Cannot find name 'any'. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(108,30): error TS2304: Cannot find name 'bool'. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(108,37): error TS2304: Cannot find name 'declare'. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(108,47): error TS2304: Cannot find name 'constructor'. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(108,61): error TS2304: Cannot find name 'get'. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(108,67): error TS2304: Cannot find name 'implements'. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(111,9): error TS1128: Declaration or statement expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(118,9): error TS2304: Cannot find name 'STATEMENTS'. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(118,21): error TS1005: ',' expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(118,30): error TS1005: ';' expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(118,39): error TS1005: ';' expected. +tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(108,24): error TS2365: Operator '+' cannot be applied to types 'number' and 'boolean'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(138,13): error TS1109: Expression expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(141,32): error TS1005: '{' expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(143,13): error TS1005: 'try' expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(155,9): error TS1128: Declaration or statement expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(155,16): error TS2304: Cannot find name 'TYPES'. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(155,23): error TS1005: ';' expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(155,32): error TS1005: ';' expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(159,24): error TS1109: Expression expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(159,30): error TS1005: '(' expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(159,31): error TS2304: Cannot find name 'Property'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(166,13): error TS2365: Operator '+=' cannot be applied to types 'number' and 'void'. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(176,9): error TS1128: Declaration or statement expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(176,16): error TS2304: Cannot find name 'OPERATOR'. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(176,26): error TS1005: ';' expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(176,35): error TS1005: ';' expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(180,40): error TS2447: The '^' operator is not allowed for boolean types. Consider using '!==' instead. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(205,28): error TS1109: Expression expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(210,5): error TS1128: Declaration or statement expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(213,16): error TS2304: Cannot find name 'bool'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(218,10): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(223,23): error TS2304: Cannot find name 'bool'. @@ -69,6 +47,7 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(235,9): error TS tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(235,16): error TS2304: Cannot find name 'method1'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(235,24): error TS2304: Cannot find name 'val'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(235,27): error TS1005: ',' expected. +tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(235,28): error TS2304: Cannot find name 'number'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(235,36): error TS1005: ';' expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(238,9): error TS1128: Declaration or statement expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(238,16): error TS2304: Cannot find name 'method2'. @@ -83,23 +62,27 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(256,9): error TS tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(256,16): error TS2304: Cannot find name 'Overloads'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(256,26): error TS2304: Cannot find name 'value'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(256,31): error TS1005: ',' expected. +tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(256,33): error TS2304: Cannot find name 'string'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(257,9): error TS1128: Declaration or statement expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(257,16): error TS2304: Cannot find name 'Overloads'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(257,27): error TS1135: Argument expression expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(257,33): error TS1005: '(' expected. +tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(257,35): error TS2304: Cannot find name 'string'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(257,43): error TS1109: Expression expected. +tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(257,52): error TS2304: Cannot find name 'string'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(257,60): error TS1005: ';' expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(257,65): error TS1109: Expression expected. +tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(259,9): error TS2304: Cannot find name 'public'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(259,16): error TS1005: ';' expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(259,16): error TS2304: Cannot find name 'DefaultValue'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(259,29): error TS2304: Cannot find name 'value'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(259,35): error TS1109: Expression expected. -tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(259,37): error TS2322: Type 'string' is not assignable to type 'boolean'. +tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(259,37): error TS2304: Cannot find name 'string'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(259,55): error TS1005: ';' expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS1128: Declaration or statement expected. -==== tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts (99 errors) ==== +==== tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts (82 errors) ==== declare module "fs" { export class File { constructor(filename: string); @@ -214,8 +197,6 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS /// /// public VARIABLES(): number { - ~~~~~~ -!!! error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement. var local = Number.MAX_VALUE; var min = Number.MIN_VALUE; var inf = Number.NEGATIVE_INFINITY - @@ -255,11 +236,7 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS var constructor = 0; var get = 0; var implements = 0; - ~~~~~~~~~~ -!!! error TS1134: Variable declaration expected. var interface = 0; - ~~~ -!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. var let = 0; var module = 0; var number = 0; @@ -277,23 +254,11 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS !!! error TS1109: Expression expected. var sum3 = any + bool + declare + constructor + get + implements + interface + let + module + number + package + private + protected + public + set + static + string + yield; - ~~~ -!!! error TS2304: Cannot find name 'any'. - ~~~~ -!!! error TS2304: Cannot find name 'bool'. - ~~~~~~~ -!!! error TS2304: Cannot find name 'declare'. - ~~~~~~~~~~~ -!!! error TS2304: Cannot find name 'constructor'. - ~~~ -!!! error TS2304: Cannot find name 'get'. - ~~~~~~~~~~ -!!! error TS2304: Cannot find name 'implements'. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2365: Operator '+' cannot be applied to types 'number' and 'boolean'. return 0; } - ~ -!!! error TS1128: Declaration or statement expected. /// /// Test different statements. Including if-else,swith,foreach,(un)checked,lock,using,try-catch-finally @@ -301,14 +266,6 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS /// /// STATEMENTS(i: number): number { - ~~~~~~~~~~ -!!! error TS2304: Cannot find name 'STATEMENTS'. - ~ -!!! error TS1005: ',' expected. - ~ -!!! error TS1005: ';' expected. - ~ -!!! error TS1005: ';' expected. var retVal = 0; if (i == 1) retVal = 1; @@ -352,14 +309,6 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS /// /// public TYPES(): number { - ~~~~~~ -!!! error TS1128: Declaration or statement expected. - ~~~~~ -!!! error TS2304: Cannot find name 'TYPES'. - ~ -!!! error TS1005: ';' expected. - ~ -!!! error TS1005: ';' expected. var retVal = 0; var c = new CLASS(); var xx: IF = c; @@ -389,14 +338,6 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS ///// ///// public OPERATOR(): number { - ~~~~~~ -!!! error TS1128: Declaration or statement expected. - ~~~~~~~~ -!!! error TS2304: Cannot find name 'OPERATOR'. - ~ -!!! error TS1005: ';' expected. - ~ -!!! error TS1005: ';' expected. var a: number[] = [1, 2, 3, 4, 5, ];/*[] bug*/ // YES [] var i = a[1];/*[]*/ i = i + i - i * i / i % i & i | i ^ i;/*+ - * / % & | ^*/ @@ -435,8 +376,6 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS } } - ~ -!!! error TS1128: Declaration or statement expected. interface IF { Foo(): bool; @@ -480,6 +419,8 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS !!! error TS2304: Cannot find name 'val'. ~ !!! error TS1005: ',' expected. + ~~~~~~ +!!! error TS2304: Cannot find name 'number'. ~ !!! error TS1005: ';' expected. return val; @@ -529,6 +470,8 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS !!! error TS2304: Cannot find name 'value'. ~ !!! error TS1005: ',' expected. + ~~~~~~ +!!! error TS2304: Cannot find name 'string'. public Overloads( while : string, ...rest: string[]) { & ~~~~~~ !!! error TS1128: Declaration or statement expected. @@ -538,14 +481,20 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS !!! error TS1135: Argument expression expected. ~ !!! error TS1005: '(' expected. + ~~~~~~ +!!! error TS2304: Cannot find name 'string'. ~~~ !!! error TS1109: Expression expected. + ~~~~~~ +!!! error TS2304: Cannot find name 'string'. ~ !!! error TS1005: ';' expected. ~ !!! error TS1109: Expression expected. public DefaultValue(value?: string = "Hello") { } + ~~~~~~ +!!! error TS2304: Cannot find name 'public'. ~~~~~~~~~~~~ !!! error TS1005: ';' expected. ~~~~~~~~~~~~ @@ -555,7 +504,7 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS ~ !!! error TS1109: Expression expected. ~~~~~~ -!!! error TS2322: Type 'string' is not assignable to type 'boolean'. +!!! error TS2304: Cannot find name 'string'. ~ !!! error TS1005: ';' expected. } diff --git a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js index 4fb940bc9ec..b44d7faa5a6 100644 --- a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js +++ b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js @@ -342,7 +342,6 @@ var TypeScriptAllInOne; })(TypeScriptAllInOne || (TypeScriptAllInOne = {})); var BasicFeatures = (function () { function BasicFeatures() { - this.implements = 0; } /// /// Test various of variables. Including nullable,key world as variable,special format @@ -375,118 +374,120 @@ var BasicFeatures = (function () { var declare = 0; var constructor = 0; var get = 0; - var ; + var implements = 0; + var interface = 0; + var let = 0; + var module = 0; + var number = 0; + var package = 0; + var private = 0; + var protected = 0; + var public = 0; + var set = 0; + var static = 0; + var string = 0 / > + ; + var yield = 0; + var sum3 = any + bool + declare + constructor + get + implements + interface + let + module + number + package + private + protected + public + set + static + string + yield; + return 0; + }; + /// + /// Test different statements. Including if-else,swith,foreach,(un)checked,lock,using,try-catch-finally + /// + /// + /// + BasicFeatures.prototype.STATEMENTS = function (i) { + var retVal = 0; + if (i == 1) + retVal = 1; + else + retVal = 0; + switch (i) { + case 2: + retVal = 1; + break; + case 3: + retVal = 1; + break; + default: + break; + } + for (var x in { x: 0, y: 1 }) { + !; + try { + throw null; + } + catch (Exception) { } + } + try { + } + finally { + try { } + catch (Exception) { } + } + return retVal; + }; + /// + /// Test types in ts language. Including class,struct,interface,delegate,anonymous type + /// + /// + BasicFeatures.prototype.TYPES = function () { + var retVal = 0; + var c = new CLASS(); + var xx = c; + retVal += ; + try { } + catch () { } + Property; + retVal += c.Member(); + retVal += xx.Foo() ? 0 : 1; + //anonymous type + var anony = { a: new CLASS() }; + retVal += anony.a.d(); + return retVal; + }; + ///// + ///// Test different operators + ///// + ///// + BasicFeatures.prototype.OPERATOR = function () { + var a = [1, 2, 3, 4, 5,]; /*[] bug*/ // YES [] + var i = a[1]; /*[]*/ + i = i + i - i * i / i % i & i | i ^ i; /*+ - * / % & | ^*/ + var b = true && false || true ^ false; /*& | ^*/ + b = !b; /*!*/ + i = ~i; /*~i*/ + b = i < (i - 1) && (i + 1) > i; /*< && >*/ + var f = true ? 1 : 0; /*? :*/ // YES : + i++; /*++*/ + i--; /*--*/ + b = true && false || true; /*&& ||*/ + i = i << 5; /*<<*/ + i = i >> 5; /*>>*/ + var j = i; + b = i == j && i != j && i <= j && i >= j; /*= == && != <= >=*/ + i += 5.0; /*+=*/ + i -= i; /*-=*/ + i *= i; /**=*/ + if (i == 0) + i++; + i /= i; /*/=*/ + i %= i; /*%=*/ + i &= i; /*&=*/ + i |= i; /*|=*/ + i ^= i; /*^=*/ + i <<= i; /*<<=*/ + i >>= i; /*>>=*/ + if (i == 0 && != b && f == 1) + return 0; + else + return 1; }; return BasicFeatures; })(); -var interface = 0; -var let = 0; -var module = 0; -var number = 0; -var package = 0; -var private = 0; -var protected = 0; -var public = 0; -var set = 0; -var static = 0; -var string = 0 / > -; -var yield = 0; -var sum3 = any + bool + declare + constructor + get + implements + interface + let + module + number + package + private + protected + public + set + static + string + yield; -return 0; -/// -/// Test different statements. Including if-else,swith,foreach,(un)checked,lock,using,try-catch-finally -/// -/// -/// -STATEMENTS(i, number); -number; -{ - var retVal = 0; - if (i == 1) - retVal = 1; - else - retVal = 0; - switch (i) { - case 2: - retVal = 1; - break; - case 3: - retVal = 1; - break; - default: - break; - } - for (var x in { x: 0, y: 1 }) { - !; - try { - throw null; - } - catch (Exception) { } - } - try { - } - finally { - try { } - catch (Exception) { } - } - return retVal; -} -TYPES(); -number; -{ - var retVal = 0; - var c = new CLASS(); - var xx = c; - retVal += ; - try { } - catch () { } - Property; - retVal += c.Member(); - retVal += xx.Foo() ? 0 : 1; - //anonymous type - var anony = { a: new CLASS() }; - retVal += anony.a.d(); - return retVal; -} -OPERATOR(); -number; -{ - var a = [1, 2, 3, 4, 5,]; /*[] bug*/ // YES [] - var i = a[1]; /*[]*/ - i = i + i - i * i / i % i & i | i ^ i; /*+ - * / % & | ^*/ - var b = true && false || true ^ false; /*& | ^*/ - b = !b; /*!*/ - i = ~i; /*~i*/ - b = i < (i - 1) && (i + 1) > i; /*< && >*/ - var f = true ? 1 : 0; /*? :*/ // YES : - i++; /*++*/ - i--; /*--*/ - b = true && false || true; /*&& ||*/ - i = i << 5; /*<<*/ - i = i >> 5; /*>>*/ - var j = i; - b = i == j && i != j && i <= j && i >= j; /*= == && != <= >=*/ - i += 5.0; /*+=*/ - i -= i; /*-=*/ - i *= i; /**=*/ - if (i == 0) - i++; - i /= i; /*/=*/ - i %= i; /*%=*/ - i &= i; /*&=*/ - i |= i; /*|=*/ - i ^= i; /*^=*/ - i <<= i; /*<<=*/ - i >>= i; /*>>=*/ - if (i == 0 && != b && f == 1) - return 0; - else - return 1; -} var CLASS = (function () { function CLASS() { - this.d = function () { ; }; + this.d = function () { yield 0; }; } Object.defineProperty(CLASS.prototype, "Property", { get: function () { return 0; }, diff --git a/tests/baselines/reference/contextualSigInstantiationRestParams.types b/tests/baselines/reference/contextualSigInstantiationRestParams.types index 76a00310fd9..1ef8fb68545 100644 --- a/tests/baselines/reference/contextualSigInstantiationRestParams.types +++ b/tests/baselines/reference/contextualSigInstantiationRestParams.types @@ -1,20 +1,20 @@ === tests/cases/compiler/contextualSigInstantiationRestParams.ts === declare function toInstantiate(a?: A, b?: B): B; ->toInstantiate : (a?: A, b?: B) => B ->A : A ->B : B ->a : A ->A : A ->b : B ->B : B ->B : B +>toInstantiate : (a?: A, b?: B) => B, Symbol(toInstantiate, Decl(contextualSigInstantiationRestParams.ts, 0, 0)) +>A : A, Symbol(A, Decl(contextualSigInstantiationRestParams.ts, 0, 31)) +>B : B, Symbol(B, Decl(contextualSigInstantiationRestParams.ts, 0, 33)) +>a : A, Symbol(a, Decl(contextualSigInstantiationRestParams.ts, 0, 37)) +>A : A, Symbol(A, Decl(contextualSigInstantiationRestParams.ts, 0, 31)) +>b : B, Symbol(b, Decl(contextualSigInstantiationRestParams.ts, 0, 43)) +>B : B, Symbol(B, Decl(contextualSigInstantiationRestParams.ts, 0, 33)) +>B : B, Symbol(B, Decl(contextualSigInstantiationRestParams.ts, 0, 33)) declare function contextual(...s: string[]): string ->contextual : (...s: string[]) => string ->s : string[] +>contextual : (...s: string[]) => string, Symbol(contextual, Decl(contextualSigInstantiationRestParams.ts, 0, 54)) +>s : string[], Symbol(s, Decl(contextualSigInstantiationRestParams.ts, 1, 28)) var sig: typeof contextual = toInstantiate; ->sig : (...s: string[]) => string ->contextual : (...s: string[]) => string ->toInstantiate : (a?: A, b?: B) => B +>sig : (...s: string[]) => string, Symbol(sig, Decl(contextualSigInstantiationRestParams.ts, 3, 3)) +>contextual : (...s: string[]) => string, Symbol(contextual, Decl(contextualSigInstantiationRestParams.ts, 0, 54)) +>toInstantiate : (a?: A, b?: B) => B, Symbol(toInstantiate, Decl(contextualSigInstantiationRestParams.ts, 0, 0)) diff --git a/tests/baselines/reference/contextualSignatureInstantiation.types b/tests/baselines/reference/contextualSignatureInstantiation.types index 4363272622a..3034850abfd 100644 --- a/tests/baselines/reference/contextualSignatureInstantiation.types +++ b/tests/baselines/reference/contextualSignatureInstantiation.types @@ -6,137 +6,149 @@ // to a function type with e's call signature instantiated in the context of T's call signature (section 3.8.5). declare function foo(cb: (x: number, y: string) => T): T; ->foo : (cb: (x: number, y: string) => T) => T ->T : T ->cb : (x: number, y: string) => T ->x : number ->y : string ->T : T ->T : T +>foo : (cb: (x: number, y: string) => T) => T, Symbol(foo, Decl(contextualSignatureInstantiation.ts, 0, 0)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 6, 21)) +>cb : (x: number, y: string) => T, Symbol(cb, Decl(contextualSignatureInstantiation.ts, 6, 24)) +>x : number, Symbol(x, Decl(contextualSignatureInstantiation.ts, 6, 29)) +>y : string, Symbol(y, Decl(contextualSignatureInstantiation.ts, 6, 39)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 6, 21)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 6, 21)) declare function bar(x: T, y: U, cb: (x: T, y: U) => V): V; ->bar : (x: T, y: U, cb: (x: T, y: U) => V) => V ->T : T ->U : U ->V : V ->x : T ->T : T ->y : U ->U : U ->cb : (x: T, y: U) => V ->x : T ->T : T ->y : U ->U : U ->V : V ->V : V +>bar : (x: T, y: U, cb: (x: T, y: U) => V) => V, Symbol(bar, Decl(contextualSignatureInstantiation.ts, 6, 60)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 7, 21)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 7, 23)) +>V : V, Symbol(V, Decl(contextualSignatureInstantiation.ts, 7, 26)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation.ts, 7, 30)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 7, 21)) +>y : U, Symbol(y, Decl(contextualSignatureInstantiation.ts, 7, 35)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 7, 23)) +>cb : (x: T, y: U) => V, Symbol(cb, Decl(contextualSignatureInstantiation.ts, 7, 41)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation.ts, 7, 47)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 7, 21)) +>y : U, Symbol(y, Decl(contextualSignatureInstantiation.ts, 7, 52)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 7, 23)) +>V : V, Symbol(V, Decl(contextualSignatureInstantiation.ts, 7, 26)) +>V : V, Symbol(V, Decl(contextualSignatureInstantiation.ts, 7, 26)) declare function baz(x: T, y: T, cb: (x: T, y: T) => U): U; ->baz : (x: T, y: T, cb: (x: T, y: T) => U) => U ->T : T ->U : U ->x : T ->T : T ->y : T ->T : T ->cb : (x: T, y: T) => U ->x : T ->T : T ->y : T ->T : T ->U : U ->U : U +>baz : (x: T, y: T, cb: (x: T, y: T) => U) => U, Symbol(baz, Decl(contextualSignatureInstantiation.ts, 7, 68)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 8, 21)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 8, 23)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation.ts, 8, 27)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 8, 21)) +>y : T, Symbol(y, Decl(contextualSignatureInstantiation.ts, 8, 32)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 8, 21)) +>cb : (x: T, y: T) => U, Symbol(cb, Decl(contextualSignatureInstantiation.ts, 8, 38)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation.ts, 8, 44)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 8, 21)) +>y : T, Symbol(y, Decl(contextualSignatureInstantiation.ts, 8, 49)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 8, 21)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 8, 23)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 8, 23)) declare function g(x: T, y: T): T; ->g : (x: T, y: T) => T ->T : T ->x : T ->T : T ->y : T ->T : T ->T : T +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 10, 19)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation.ts, 10, 22)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 10, 19)) +>y : T, Symbol(y, Decl(contextualSignatureInstantiation.ts, 10, 27)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 10, 19)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 10, 19)) declare function h(x: T, y: U): T[] | U[]; ->h : (x: T, y: U) => T[] | U[] ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T ->U : U +>h : (x: T, y: U) => T[] | U[], Symbol(h, Decl(contextualSignatureInstantiation.ts, 10, 37)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 11, 19)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 11, 21)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation.ts, 11, 25)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 11, 19)) +>y : U, Symbol(y, Decl(contextualSignatureInstantiation.ts, 11, 30)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 11, 21)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 11, 19)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 11, 21)) var a: number; ->a : number +>a : number, Symbol(a, Decl(contextualSignatureInstantiation.ts, 13, 3), Decl(contextualSignatureInstantiation.ts, 14, 3), Decl(contextualSignatureInstantiation.ts, 15, 3)) var a = bar(1, 1, g); // Should be number ->a : number +>a : number, Symbol(a, Decl(contextualSignatureInstantiation.ts, 13, 3), Decl(contextualSignatureInstantiation.ts, 14, 3), Decl(contextualSignatureInstantiation.ts, 15, 3)) >bar(1, 1, g) : number ->bar : (x: T, y: U, cb: (x: T, y: U) => V) => V ->g : (x: T, y: T) => T +>bar : (x: T, y: U, cb: (x: T, y: U) => V) => V, Symbol(bar, Decl(contextualSignatureInstantiation.ts, 6, 60)) +>1 : number +>1 : number +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) var a = baz(1, 1, g); // Should be number ->a : number +>a : number, Symbol(a, Decl(contextualSignatureInstantiation.ts, 13, 3), Decl(contextualSignatureInstantiation.ts, 14, 3), Decl(contextualSignatureInstantiation.ts, 15, 3)) >baz(1, 1, g) : number ->baz : (x: T, y: T, cb: (x: T, y: T) => U) => U ->g : (x: T, y: T) => T +>baz : (x: T, y: T, cb: (x: T, y: T) => U) => U, Symbol(baz, Decl(contextualSignatureInstantiation.ts, 7, 68)) +>1 : number +>1 : number +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) var b: number | string; ->b : string | number +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) var b = foo(g); // Should be number | string ->b : string | number +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) >foo(g) : string | number ->foo : (cb: (x: number, y: string) => T) => T ->g : (x: T, y: T) => T +>foo : (cb: (x: number, y: string) => T) => T, Symbol(foo, Decl(contextualSignatureInstantiation.ts, 0, 0)) +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) var b = bar(1, "one", g); // Should be number | string ->b : string | number +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) >bar(1, "one", g) : string | number ->bar : (x: T, y: U, cb: (x: T, y: U) => V) => V ->g : (x: T, y: T) => T +>bar : (x: T, y: U, cb: (x: T, y: U) => V) => V, Symbol(bar, Decl(contextualSignatureInstantiation.ts, 6, 60)) +>1 : number +>"one" : string +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) var b = bar("one", 1, g); // Should be number | string ->b : string | number +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) >bar("one", 1, g) : string | number ->bar : (x: T, y: U, cb: (x: T, y: U) => V) => V ->g : (x: T, y: T) => T +>bar : (x: T, y: U, cb: (x: T, y: U) => V) => V, Symbol(bar, Decl(contextualSignatureInstantiation.ts, 6, 60)) +>"one" : string +>1 : number +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) var b = baz(b, b, g); // Should be number | string ->b : string | number +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) >baz(b, b, g) : string | number ->baz : (x: T, y: T, cb: (x: T, y: T) => U) => U ->b : string | number ->b : string | number ->g : (x: T, y: T) => T +>baz : (x: T, y: T, cb: (x: T, y: T) => U) => U, Symbol(baz, Decl(contextualSignatureInstantiation.ts, 7, 68)) +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) var d: number[] | string[]; ->d : string[] | number[] +>d : string[] | number[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) var d = foo(h); // Should be number[] | string[] ->d : string[] | number[] +>d : string[] | number[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) >foo(h) : string[] | number[] ->foo : (cb: (x: number, y: string) => T) => T ->h : (x: T, y: U) => T[] | U[] +>foo : (cb: (x: number, y: string) => T) => T, Symbol(foo, Decl(contextualSignatureInstantiation.ts, 0, 0)) +>h : (x: T, y: U) => T[] | U[], Symbol(h, Decl(contextualSignatureInstantiation.ts, 10, 37)) var d = bar(1, "one", h); // Should be number[] | string[] ->d : string[] | number[] +>d : string[] | number[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) >bar(1, "one", h) : string[] | number[] ->bar : (x: T, y: U, cb: (x: T, y: U) => V) => V ->h : (x: T, y: U) => T[] | U[] +>bar : (x: T, y: U, cb: (x: T, y: U) => V) => V, Symbol(bar, Decl(contextualSignatureInstantiation.ts, 6, 60)) +>1 : number +>"one" : string +>h : (x: T, y: U) => T[] | U[], Symbol(h, Decl(contextualSignatureInstantiation.ts, 10, 37)) var d = bar("one", 1, h); // Should be number[] | string[] ->d : string[] | number[] +>d : string[] | number[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) >bar("one", 1, h) : string[] | number[] ->bar : (x: T, y: U, cb: (x: T, y: U) => V) => V ->h : (x: T, y: U) => T[] | U[] +>bar : (x: T, y: U, cb: (x: T, y: U) => V) => V, Symbol(bar, Decl(contextualSignatureInstantiation.ts, 6, 60)) +>"one" : string +>1 : number +>h : (x: T, y: U) => T[] | U[], Symbol(h, Decl(contextualSignatureInstantiation.ts, 10, 37)) var d = baz(d, d, g); // Should be number[] | string[] ->d : string[] | number[] +>d : string[] | number[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) >baz(d, d, g) : string[] | number[] ->baz : (x: T, y: T, cb: (x: T, y: T) => U) => U ->d : string[] | number[] ->d : string[] | number[] ->g : (x: T, y: T) => T +>baz : (x: T, y: T, cb: (x: T, y: T) => U) => U, Symbol(baz, Decl(contextualSignatureInstantiation.ts, 7, 68)) +>d : string[] | number[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) +>d : string[] | number[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) diff --git a/tests/baselines/reference/contextualSignatureInstantiation.types.pull b/tests/baselines/reference/contextualSignatureInstantiation.types.pull index d7246ab79aa..f21e3865878 100644 --- a/tests/baselines/reference/contextualSignatureInstantiation.types.pull +++ b/tests/baselines/reference/contextualSignatureInstantiation.types.pull @@ -6,137 +6,149 @@ // to a function type with e's call signature instantiated in the context of T's call signature (section 3.8.5). declare function foo(cb: (x: number, y: string) => T): T; ->foo : (cb: (x: number, y: string) => T) => T ->T : T ->cb : (x: number, y: string) => T ->x : number ->y : string ->T : T ->T : T +>foo : (cb: (x: number, y: string) => T) => T, Symbol(foo, Decl(contextualSignatureInstantiation.ts, 0, 0)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 6, 21)) +>cb : (x: number, y: string) => T, Symbol(cb, Decl(contextualSignatureInstantiation.ts, 6, 24)) +>x : number, Symbol(x, Decl(contextualSignatureInstantiation.ts, 6, 29)) +>y : string, Symbol(y, Decl(contextualSignatureInstantiation.ts, 6, 39)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 6, 21)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 6, 21)) declare function bar(x: T, y: U, cb: (x: T, y: U) => V): V; ->bar : (x: T, y: U, cb: (x: T, y: U) => V) => V ->T : T ->U : U ->V : V ->x : T ->T : T ->y : U ->U : U ->cb : (x: T, y: U) => V ->x : T ->T : T ->y : U ->U : U ->V : V ->V : V +>bar : (x: T, y: U, cb: (x: T, y: U) => V) => V, Symbol(bar, Decl(contextualSignatureInstantiation.ts, 6, 60)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 7, 21)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 7, 23)) +>V : V, Symbol(V, Decl(contextualSignatureInstantiation.ts, 7, 26)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation.ts, 7, 30)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 7, 21)) +>y : U, Symbol(y, Decl(contextualSignatureInstantiation.ts, 7, 35)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 7, 23)) +>cb : (x: T, y: U) => V, Symbol(cb, Decl(contextualSignatureInstantiation.ts, 7, 41)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation.ts, 7, 47)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 7, 21)) +>y : U, Symbol(y, Decl(contextualSignatureInstantiation.ts, 7, 52)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 7, 23)) +>V : V, Symbol(V, Decl(contextualSignatureInstantiation.ts, 7, 26)) +>V : V, Symbol(V, Decl(contextualSignatureInstantiation.ts, 7, 26)) declare function baz(x: T, y: T, cb: (x: T, y: T) => U): U; ->baz : (x: T, y: T, cb: (x: T, y: T) => U) => U ->T : T ->U : U ->x : T ->T : T ->y : T ->T : T ->cb : (x: T, y: T) => U ->x : T ->T : T ->y : T ->T : T ->U : U ->U : U +>baz : (x: T, y: T, cb: (x: T, y: T) => U) => U, Symbol(baz, Decl(contextualSignatureInstantiation.ts, 7, 68)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 8, 21)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 8, 23)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation.ts, 8, 27)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 8, 21)) +>y : T, Symbol(y, Decl(contextualSignatureInstantiation.ts, 8, 32)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 8, 21)) +>cb : (x: T, y: T) => U, Symbol(cb, Decl(contextualSignatureInstantiation.ts, 8, 38)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation.ts, 8, 44)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 8, 21)) +>y : T, Symbol(y, Decl(contextualSignatureInstantiation.ts, 8, 49)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 8, 21)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 8, 23)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 8, 23)) declare function g(x: T, y: T): T; ->g : (x: T, y: T) => T ->T : T ->x : T ->T : T ->y : T ->T : T ->T : T +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 10, 19)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation.ts, 10, 22)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 10, 19)) +>y : T, Symbol(y, Decl(contextualSignatureInstantiation.ts, 10, 27)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 10, 19)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 10, 19)) declare function h(x: T, y: U): T[] | U[]; ->h : (x: T, y: U) => T[] | U[] ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T ->U : U +>h : (x: T, y: U) => T[] | U[], Symbol(h, Decl(contextualSignatureInstantiation.ts, 10, 37)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 11, 19)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 11, 21)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation.ts, 11, 25)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 11, 19)) +>y : U, Symbol(y, Decl(contextualSignatureInstantiation.ts, 11, 30)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 11, 21)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation.ts, 11, 19)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation.ts, 11, 21)) var a: number; ->a : number +>a : number, Symbol(a, Decl(contextualSignatureInstantiation.ts, 13, 3), Decl(contextualSignatureInstantiation.ts, 14, 3), Decl(contextualSignatureInstantiation.ts, 15, 3)) var a = bar(1, 1, g); // Should be number ->a : number +>a : number, Symbol(a, Decl(contextualSignatureInstantiation.ts, 13, 3), Decl(contextualSignatureInstantiation.ts, 14, 3), Decl(contextualSignatureInstantiation.ts, 15, 3)) >bar(1, 1, g) : number ->bar : (x: T, y: U, cb: (x: T, y: U) => V) => V ->g : (x: T, y: T) => T +>bar : (x: T, y: U, cb: (x: T, y: U) => V) => V, Symbol(bar, Decl(contextualSignatureInstantiation.ts, 6, 60)) +>1 : number +>1 : number +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) var a = baz(1, 1, g); // Should be number ->a : number +>a : number, Symbol(a, Decl(contextualSignatureInstantiation.ts, 13, 3), Decl(contextualSignatureInstantiation.ts, 14, 3), Decl(contextualSignatureInstantiation.ts, 15, 3)) >baz(1, 1, g) : number ->baz : (x: T, y: T, cb: (x: T, y: T) => U) => U ->g : (x: T, y: T) => T +>baz : (x: T, y: T, cb: (x: T, y: T) => U) => U, Symbol(baz, Decl(contextualSignatureInstantiation.ts, 7, 68)) +>1 : number +>1 : number +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) var b: number | string; ->b : string | number +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) var b = foo(g); // Should be number | string ->b : string | number +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) >foo(g) : string | number ->foo : (cb: (x: number, y: string) => T) => T ->g : (x: T, y: T) => T +>foo : (cb: (x: number, y: string) => T) => T, Symbol(foo, Decl(contextualSignatureInstantiation.ts, 0, 0)) +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) var b = bar(1, "one", g); // Should be number | string ->b : string | number +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) >bar(1, "one", g) : string | number ->bar : (x: T, y: U, cb: (x: T, y: U) => V) => V ->g : (x: T, y: T) => T +>bar : (x: T, y: U, cb: (x: T, y: U) => V) => V, Symbol(bar, Decl(contextualSignatureInstantiation.ts, 6, 60)) +>1 : number +>"one" : string +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) var b = bar("one", 1, g); // Should be number | string ->b : string | number +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) >bar("one", 1, g) : string | number ->bar : (x: T, y: U, cb: (x: T, y: U) => V) => V ->g : (x: T, y: T) => T +>bar : (x: T, y: U, cb: (x: T, y: U) => V) => V, Symbol(bar, Decl(contextualSignatureInstantiation.ts, 6, 60)) +>"one" : string +>1 : number +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) var b = baz(b, b, g); // Should be number | string ->b : string | number +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) >baz(b, b, g) : string | number ->baz : (x: T, y: T, cb: (x: T, y: T) => U) => U ->b : string | number ->b : string | number ->g : (x: T, y: T) => T +>baz : (x: T, y: T, cb: (x: T, y: T) => U) => U, Symbol(baz, Decl(contextualSignatureInstantiation.ts, 7, 68)) +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) +>b : string | number, Symbol(b, Decl(contextualSignatureInstantiation.ts, 17, 3), Decl(contextualSignatureInstantiation.ts, 18, 3), Decl(contextualSignatureInstantiation.ts, 19, 3), Decl(contextualSignatureInstantiation.ts, 20, 3), Decl(contextualSignatureInstantiation.ts, 21, 3)) +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) var d: number[] | string[]; ->d : number[] | string[] +>d : number[] | string[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) var d = foo(h); // Should be number[] | string[] ->d : number[] | string[] +>d : number[] | string[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) >foo(h) : number[] | string[] ->foo : (cb: (x: number, y: string) => T) => T ->h : (x: T, y: U) => T[] | U[] +>foo : (cb: (x: number, y: string) => T) => T, Symbol(foo, Decl(contextualSignatureInstantiation.ts, 0, 0)) +>h : (x: T, y: U) => T[] | U[], Symbol(h, Decl(contextualSignatureInstantiation.ts, 10, 37)) var d = bar(1, "one", h); // Should be number[] | string[] ->d : number[] | string[] +>d : number[] | string[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) >bar(1, "one", h) : number[] | string[] ->bar : (x: T, y: U, cb: (x: T, y: U) => V) => V ->h : (x: T, y: U) => T[] | U[] +>bar : (x: T, y: U, cb: (x: T, y: U) => V) => V, Symbol(bar, Decl(contextualSignatureInstantiation.ts, 6, 60)) +>1 : number +>"one" : string +>h : (x: T, y: U) => T[] | U[], Symbol(h, Decl(contextualSignatureInstantiation.ts, 10, 37)) var d = bar("one", 1, h); // Should be number[] | string[] ->d : number[] | string[] +>d : number[] | string[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) >bar("one", 1, h) : number[] | string[] ->bar : (x: T, y: U, cb: (x: T, y: U) => V) => V ->h : (x: T, y: U) => T[] | U[] +>bar : (x: T, y: U, cb: (x: T, y: U) => V) => V, Symbol(bar, Decl(contextualSignatureInstantiation.ts, 6, 60)) +>"one" : string +>1 : number +>h : (x: T, y: U) => T[] | U[], Symbol(h, Decl(contextualSignatureInstantiation.ts, 10, 37)) var d = baz(d, d, g); // Should be number[] | string[] ->d : number[] | string[] +>d : number[] | string[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) >baz(d, d, g) : number[] | string[] ->baz : (x: T, y: T, cb: (x: T, y: T) => U) => U ->d : number[] | string[] ->d : number[] | string[] ->g : (x: T, y: T) => T +>baz : (x: T, y: T, cb: (x: T, y: T) => U) => U, Symbol(baz, Decl(contextualSignatureInstantiation.ts, 7, 68)) +>d : number[] | string[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) +>d : number[] | string[], Symbol(d, Decl(contextualSignatureInstantiation.ts, 23, 3), Decl(contextualSignatureInstantiation.ts, 24, 3), Decl(contextualSignatureInstantiation.ts, 25, 3), Decl(contextualSignatureInstantiation.ts, 26, 3), Decl(contextualSignatureInstantiation.ts, 27, 3)) +>g : (x: T, y: T) => T, Symbol(g, Decl(contextualSignatureInstantiation.ts, 8, 65)) diff --git a/tests/baselines/reference/contextualSignatureInstantiation1.types b/tests/baselines/reference/contextualSignatureInstantiation1.types index 3a95e87b76f..b11d2c6300e 100644 --- a/tests/baselines/reference/contextualSignatureInstantiation1.types +++ b/tests/baselines/reference/contextualSignatureInstantiation1.types @@ -1,60 +1,60 @@ === tests/cases/compiler/contextualSignatureInstantiation1.ts === declare function map(f: (x: S) => T): (a: S[]) => T[]; ->map : (f: (x: S) => T) => (a: S[]) => T[] ->S : S ->T : T ->f : (x: S) => T ->x : S ->S : S ->T : T ->a : S[] ->S : S ->T : T +>map : (f: (x: S) => T) => (a: S[]) => T[], Symbol(map, Decl(contextualSignatureInstantiation1.ts, 0, 0)) +>S : S, Symbol(S, Decl(contextualSignatureInstantiation1.ts, 0, 21)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation1.ts, 0, 23)) +>f : (x: S) => T, Symbol(f, Decl(contextualSignatureInstantiation1.ts, 0, 27)) +>x : S, Symbol(x, Decl(contextualSignatureInstantiation1.ts, 0, 31)) +>S : S, Symbol(S, Decl(contextualSignatureInstantiation1.ts, 0, 21)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation1.ts, 0, 23)) +>a : S[], Symbol(a, Decl(contextualSignatureInstantiation1.ts, 0, 45)) +>S : S, Symbol(S, Decl(contextualSignatureInstantiation1.ts, 0, 21)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation1.ts, 0, 23)) var e = (x: string, y?: K) => x.length; ->e : (x: string, y?: K) => number +>e : (x: string, y?: K) => number, Symbol(e, Decl(contextualSignatureInstantiation1.ts, 1, 3)) >(x: string, y?: K) => x.length : (x: string, y?: K) => number ->K : K ->x : string ->y : K ->K : K ->x.length : number ->x : string ->length : number +>K : K, Symbol(K, Decl(contextualSignatureInstantiation1.ts, 1, 9)) +>x : string, Symbol(x, Decl(contextualSignatureInstantiation1.ts, 1, 12)) +>y : K, Symbol(y, Decl(contextualSignatureInstantiation1.ts, 1, 22)) +>K : K, Symbol(K, Decl(contextualSignatureInstantiation1.ts, 1, 9)) +>x.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>x : string, Symbol(x, Decl(contextualSignatureInstantiation1.ts, 1, 12)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) var r99 = map(e); // should be {}[] for S since a generic lambda is not inferentially typed ->r99 : (a: {}[]) => number[] +>r99 : (a: {}[]) => number[], Symbol(r99, Decl(contextualSignatureInstantiation1.ts, 2, 3)) >map(e) : (a: {}[]) => number[] ->map : (f: (x: S) => T) => (a: S[]) => T[] ->e : (x: string, y?: K) => number +>map : (f: (x: S) => T) => (a: S[]) => T[], Symbol(map, Decl(contextualSignatureInstantiation1.ts, 0, 0)) +>e : (x: string, y?: K) => number, Symbol(e, Decl(contextualSignatureInstantiation1.ts, 1, 3)) declare function map2(f: (x: S) => T): (a: S[]) => T[]; ->map2 : (f: (x: S) => T) => (a: S[]) => T[] ->S : S ->length : number ->T : T ->f : (x: S) => T ->x : S ->S : S ->T : T ->a : S[] ->S : S ->T : T +>map2 : (f: (x: S) => T) => (a: S[]) => T[], Symbol(map2, Decl(contextualSignatureInstantiation1.ts, 2, 17)) +>S : S, Symbol(S, Decl(contextualSignatureInstantiation1.ts, 4, 22)) +>length : number, Symbol(length, Decl(contextualSignatureInstantiation1.ts, 4, 33)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation1.ts, 4, 51)) +>f : (x: S) => T, Symbol(f, Decl(contextualSignatureInstantiation1.ts, 4, 55)) +>x : S, Symbol(x, Decl(contextualSignatureInstantiation1.ts, 4, 59)) +>S : S, Symbol(S, Decl(contextualSignatureInstantiation1.ts, 4, 22)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation1.ts, 4, 51)) +>a : S[], Symbol(a, Decl(contextualSignatureInstantiation1.ts, 4, 73)) +>S : S, Symbol(S, Decl(contextualSignatureInstantiation1.ts, 4, 22)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation1.ts, 4, 51)) var e2 = (x: string, y?: K) => x.length; ->e2 : (x: string, y?: K) => number +>e2 : (x: string, y?: K) => number, Symbol(e2, Decl(contextualSignatureInstantiation1.ts, 5, 3)) >(x: string, y?: K) => x.length : (x: string, y?: K) => number ->K : K ->x : string ->y : K ->K : K ->x.length : number ->x : string ->length : number +>K : K, Symbol(K, Decl(contextualSignatureInstantiation1.ts, 5, 10)) +>x : string, Symbol(x, Decl(contextualSignatureInstantiation1.ts, 5, 13)) +>y : K, Symbol(y, Decl(contextualSignatureInstantiation1.ts, 5, 23)) +>K : K, Symbol(K, Decl(contextualSignatureInstantiation1.ts, 5, 10)) +>x.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>x : string, Symbol(x, Decl(contextualSignatureInstantiation1.ts, 5, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) var r100 = map2(e2); // type arg inference should fail for S since a generic lambda is not inferentially typed. Falls back to { length: number } ->r100 : (a: { length: number; }[]) => number[] +>r100 : (a: { length: number; }[]) => number[], Symbol(r100, Decl(contextualSignatureInstantiation1.ts, 6, 3)) >map2(e2) : (a: { length: number; }[]) => number[] ->map2 : (f: (x: S) => T) => (a: S[]) => T[] ->e2 : (x: string, y?: K) => number +>map2 : (f: (x: S) => T) => (a: S[]) => T[], Symbol(map2, Decl(contextualSignatureInstantiation1.ts, 2, 17)) +>e2 : (x: string, y?: K) => number, Symbol(e2, Decl(contextualSignatureInstantiation1.ts, 5, 3)) diff --git a/tests/baselines/reference/contextualSignatureInstantiation2.types b/tests/baselines/reference/contextualSignatureInstantiation2.types index 3c28c472517..7dbddeefedb 100644 --- a/tests/baselines/reference/contextualSignatureInstantiation2.types +++ b/tests/baselines/reference/contextualSignatureInstantiation2.types @@ -1,61 +1,61 @@ === tests/cases/compiler/contextualSignatureInstantiation2.ts === // dot f g x = f(g(x)) var dot: (f: (_: T) => S) => (g: (_: U) => T) => (_: U) => S; ->dot : (f: (_: T) => S) => (g: (_: U) => T) => (_: U) => S ->T : T ->S : S ->f : (_: T) => S ->_ : T ->T : T ->S : S ->U : U ->g : (_: U) => T ->_ : U ->U : U ->T : T ->_ : U ->U : U ->S : S +>dot : (f: (_: T) => S) => (g: (_: U) => T) => (_: U) => S, Symbol(dot, Decl(contextualSignatureInstantiation2.ts, 1, 3)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation2.ts, 1, 10)) +>S : S, Symbol(S, Decl(contextualSignatureInstantiation2.ts, 1, 12)) +>f : (_: T) => S, Symbol(f, Decl(contextualSignatureInstantiation2.ts, 1, 16)) +>_ : T, Symbol(_, Decl(contextualSignatureInstantiation2.ts, 1, 20)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation2.ts, 1, 10)) +>S : S, Symbol(S, Decl(contextualSignatureInstantiation2.ts, 1, 12)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation2.ts, 1, 36)) +>g : (_: U) => T, Symbol(g, Decl(contextualSignatureInstantiation2.ts, 1, 39)) +>_ : U, Symbol(_, Decl(contextualSignatureInstantiation2.ts, 1, 43)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation2.ts, 1, 36)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation2.ts, 1, 10)) +>_ : U, Symbol(_, Decl(contextualSignatureInstantiation2.ts, 1, 59)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation2.ts, 1, 36)) +>S : S, Symbol(S, Decl(contextualSignatureInstantiation2.ts, 1, 12)) dot = (f: (_: T) => S) => (g: (_: U) => T): (r:U) => S => (x) => f(g(x)); >dot = (f: (_: T) => S) => (g: (_: U) => T): (r:U) => S => (x) => f(g(x)) : (f: (_: T) => S) => (g: (_: U) => T) => (r: U) => S ->dot : (f: (_: T) => S) => (g: (_: U) => T) => (_: U) => S +>dot : (f: (_: T) => S) => (g: (_: U) => T) => (_: U) => S, Symbol(dot, Decl(contextualSignatureInstantiation2.ts, 1, 3)) >(f: (_: T) => S) => (g: (_: U) => T): (r:U) => S => (x) => f(g(x)) : (f: (_: T) => S) => (g: (_: U) => T) => (r: U) => S ->T : T ->S : S ->f : (_: T) => S ->_ : T ->T : T ->S : S +>T : T, Symbol(T, Decl(contextualSignatureInstantiation2.ts, 2, 7)) +>S : S, Symbol(S, Decl(contextualSignatureInstantiation2.ts, 2, 9)) +>f : (_: T) => S, Symbol(f, Decl(contextualSignatureInstantiation2.ts, 2, 13)) +>_ : T, Symbol(_, Decl(contextualSignatureInstantiation2.ts, 2, 17)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation2.ts, 2, 7)) +>S : S, Symbol(S, Decl(contextualSignatureInstantiation2.ts, 2, 9)) >(g: (_: U) => T): (r:U) => S => (x) => f(g(x)) : (g: (_: U) => T) => (r: U) => S ->U : U ->g : (_: U) => T ->_ : U ->U : U ->T : T ->r : U ->U : U ->S : S +>U : U, Symbol(U, Decl(contextualSignatureInstantiation2.ts, 2, 33)) +>g : (_: U) => T, Symbol(g, Decl(contextualSignatureInstantiation2.ts, 2, 36)) +>_ : U, Symbol(_, Decl(contextualSignatureInstantiation2.ts, 2, 40)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation2.ts, 2, 33)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation2.ts, 2, 7)) +>r : U, Symbol(r, Decl(contextualSignatureInstantiation2.ts, 2, 54)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation2.ts, 2, 33)) +>S : S, Symbol(S, Decl(contextualSignatureInstantiation2.ts, 2, 9)) >(x) => f(g(x)) : (x: U) => S ->x : U +>x : U, Symbol(x, Decl(contextualSignatureInstantiation2.ts, 2, 68)) >f(g(x)) : S ->f : (_: T) => S +>f : (_: T) => S, Symbol(f, Decl(contextualSignatureInstantiation2.ts, 2, 13)) >g(x) : T ->g : (_: U) => T ->x : U +>g : (_: U) => T, Symbol(g, Decl(contextualSignatureInstantiation2.ts, 2, 36)) +>x : U, Symbol(x, Decl(contextualSignatureInstantiation2.ts, 2, 68)) var id: (x:T) => T; ->id : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>id : (x: T) => T, Symbol(id, Decl(contextualSignatureInstantiation2.ts, 3, 3)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation2.ts, 3, 9)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation2.ts, 3, 12)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation2.ts, 3, 9)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation2.ts, 3, 9)) var r23 = dot(id)(id); ->r23 : (_: {}) => {} +>r23 : (_: {}) => {}, Symbol(r23, Decl(contextualSignatureInstantiation2.ts, 4, 3)) >dot(id)(id) : (_: {}) => {} >dot(id) : (g: (_: U) => {}) => (_: U) => {} ->dot : (f: (_: T) => S) => (g: (_: U) => T) => (_: U) => S ->id : (x: T) => T ->id : (x: T) => T +>dot : (f: (_: T) => S) => (g: (_: U) => T) => (_: U) => S, Symbol(dot, Decl(contextualSignatureInstantiation2.ts, 1, 3)) +>id : (x: T) => T, Symbol(id, Decl(contextualSignatureInstantiation2.ts, 3, 3)) +>id : (x: T) => T, Symbol(id, Decl(contextualSignatureInstantiation2.ts, 3, 3)) diff --git a/tests/baselines/reference/contextualSignatureInstantiation3.types b/tests/baselines/reference/contextualSignatureInstantiation3.types index c6ed5a7e97d..c141631c9d6 100644 --- a/tests/baselines/reference/contextualSignatureInstantiation3.types +++ b/tests/baselines/reference/contextualSignatureInstantiation3.types @@ -1,83 +1,86 @@ === tests/cases/compiler/contextualSignatureInstantiation3.ts === function map(items: T[], f: (x: T) => U): U[]{ ->map : (items: T[], f: (x: T) => U) => U[] ->T : T ->U : U ->items : T[] ->T : T ->f : (x: T) => U ->x : T ->T : T ->U : U ->U : U +>map : (items: T[], f: (x: T) => U) => U[], Symbol(map, Decl(contextualSignatureInstantiation3.ts, 0, 0)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation3.ts, 0, 13)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation3.ts, 0, 15)) +>items : T[], Symbol(items, Decl(contextualSignatureInstantiation3.ts, 0, 19)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation3.ts, 0, 13)) +>f : (x: T) => U, Symbol(f, Decl(contextualSignatureInstantiation3.ts, 0, 30)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation3.ts, 0, 35)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation3.ts, 0, 13)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation3.ts, 0, 15)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiation3.ts, 0, 15)) return items.map(f); >items.map(f) : U[] ->items.map : (callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any) => U[] ->items : T[] ->map : (callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any) => U[] ->f : (x: T) => U +>items.map : (callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>items : T[], Symbol(items, Decl(contextualSignatureInstantiation3.ts, 0, 19)) +>map : (callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>f : (x: T) => U, Symbol(f, Decl(contextualSignatureInstantiation3.ts, 0, 30)) } function identity(x: T) { ->identity : (x: T) => T ->T : T ->x : T ->T : T +>identity : (x: T) => T, Symbol(identity, Decl(contextualSignatureInstantiation3.ts, 2, 1)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation3.ts, 4, 18)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation3.ts, 4, 21)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation3.ts, 4, 18)) return x; ->x : T +>x : T, Symbol(x, Decl(contextualSignatureInstantiation3.ts, 4, 21)) } function singleton(x: T) { ->singleton : (x: T) => T[] ->T : T ->x : T ->T : T +>singleton : (x: T) => T[], Symbol(singleton, Decl(contextualSignatureInstantiation3.ts, 6, 1)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation3.ts, 8, 19)) +>x : T, Symbol(x, Decl(contextualSignatureInstantiation3.ts, 8, 22)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiation3.ts, 8, 19)) return [x]; >[x] : T[] ->x : T +>x : T, Symbol(x, Decl(contextualSignatureInstantiation3.ts, 8, 22)) } var xs = [1, 2, 3]; ->xs : number[] +>xs : number[], Symbol(xs, Decl(contextualSignatureInstantiation3.ts, 12, 3)) >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number // Have compiler check that we get the correct types var v1: number[]; ->v1 : number[] +>v1 : number[], Symbol(v1, Decl(contextualSignatureInstantiation3.ts, 15, 3), Decl(contextualSignatureInstantiation3.ts, 16, 3), Decl(contextualSignatureInstantiation3.ts, 17, 3)) var v1 = xs.map(identity); // Error if not number[] ->v1 : number[] +>v1 : number[], Symbol(v1, Decl(contextualSignatureInstantiation3.ts, 15, 3), Decl(contextualSignatureInstantiation3.ts, 16, 3), Decl(contextualSignatureInstantiation3.ts, 17, 3)) >xs.map(identity) : number[] ->xs.map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[] ->xs : number[] ->map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[] ->identity : (x: T) => T +>xs.map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>xs : number[], Symbol(xs, Decl(contextualSignatureInstantiation3.ts, 12, 3)) +>map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>identity : (x: T) => T, Symbol(identity, Decl(contextualSignatureInstantiation3.ts, 2, 1)) var v1 = map(xs, identity); // Error if not number[] ->v1 : number[] +>v1 : number[], Symbol(v1, Decl(contextualSignatureInstantiation3.ts, 15, 3), Decl(contextualSignatureInstantiation3.ts, 16, 3), Decl(contextualSignatureInstantiation3.ts, 17, 3)) >map(xs, identity) : number[] ->map : (items: T[], f: (x: T) => U) => U[] ->xs : number[] ->identity : (x: T) => T +>map : (items: T[], f: (x: T) => U) => U[], Symbol(map, Decl(contextualSignatureInstantiation3.ts, 0, 0)) +>xs : number[], Symbol(xs, Decl(contextualSignatureInstantiation3.ts, 12, 3)) +>identity : (x: T) => T, Symbol(identity, Decl(contextualSignatureInstantiation3.ts, 2, 1)) var v2: number[][]; ->v2 : number[][] +>v2 : number[][], Symbol(v2, Decl(contextualSignatureInstantiation3.ts, 19, 3), Decl(contextualSignatureInstantiation3.ts, 20, 3), Decl(contextualSignatureInstantiation3.ts, 21, 3)) var v2 = xs.map(singleton); // Error if not number[][] ->v2 : number[][] +>v2 : number[][], Symbol(v2, Decl(contextualSignatureInstantiation3.ts, 19, 3), Decl(contextualSignatureInstantiation3.ts, 20, 3), Decl(contextualSignatureInstantiation3.ts, 21, 3)) >xs.map(singleton) : number[][] ->xs.map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[] ->xs : number[] ->map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[] ->singleton : (x: T) => T[] +>xs.map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>xs : number[], Symbol(xs, Decl(contextualSignatureInstantiation3.ts, 12, 3)) +>map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>singleton : (x: T) => T[], Symbol(singleton, Decl(contextualSignatureInstantiation3.ts, 6, 1)) var v2 = map(xs, singleton); // Error if not number[][] ->v2 : number[][] +>v2 : number[][], Symbol(v2, Decl(contextualSignatureInstantiation3.ts, 19, 3), Decl(contextualSignatureInstantiation3.ts, 20, 3), Decl(contextualSignatureInstantiation3.ts, 21, 3)) >map(xs, singleton) : number[][] ->map : (items: T[], f: (x: T) => U) => U[] ->xs : number[] ->singleton : (x: T) => T[] +>map : (items: T[], f: (x: T) => U) => U[], Symbol(map, Decl(contextualSignatureInstantiation3.ts, 0, 0)) +>xs : number[], Symbol(xs, Decl(contextualSignatureInstantiation3.ts, 12, 3)) +>singleton : (x: T) => T[], Symbol(singleton, Decl(contextualSignatureInstantiation3.ts, 6, 1)) diff --git a/tests/baselines/reference/contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.types b/tests/baselines/reference/contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.types index 89ea3028d94..486a70c5a36 100644 --- a/tests/baselines/reference/contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.types +++ b/tests/baselines/reference/contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.types @@ -1,35 +1,37 @@ === tests/cases/compiler/contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts === function f() { ->f : () => (u: U) => U ->T : T +>f : () => (u: U) => U, Symbol(f, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 0)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 11)) function g(u: U): U { return null } ->g : (u: U) => U ->U : U ->T : T ->u : U ->U : U ->U : U +>g : (u: U) => U, Symbol(g, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 17)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 1, 15)) +>T : T, Symbol(T, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 11)) +>u : U, Symbol(u, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 1, 28)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 1, 15)) +>U : U, Symbol(U, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 1, 15)) +>null : null return g; ->g : (u: U) => U +>g : (u: U) => U, Symbol(g, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 17)) } var h: (v: V, func: (v: V) => W) => W; ->h : (v: V, func: (v: V) => W) => W ->V : V ->W : W ->v : V ->V : V ->func : (v: V) => W ->v : V ->V : V ->W : W ->W : W +>h : (v: V, func: (v: V) => W) => W, Symbol(h, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 3)) +>V : V, Symbol(V, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 8)) +>W : W, Symbol(W, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 10)) +>v : V, Symbol(v, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 14)) +>V : V, Symbol(V, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 8)) +>func : (v: V) => W, Symbol(func, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 19)) +>v : V, Symbol(v, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 27)) +>V : V, Symbol(V, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 8)) +>W : W, Symbol(W, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 10)) +>W : W, Symbol(W, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 10)) var x = h("", f()); // Call should succeed and x should be string. All type parameters should be instantiated to string ->x : string +>x : string, Symbol(x, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 5, 3)) >h("", f()) : string ->h : (v: V, func: (v: V) => W) => W +>h : (v: V, func: (v: V) => W) => W, Symbol(h, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 3)) +>"" : string >f() : (u: U) => U ->f : () => (u: U) => U +>f : () => (u: U) => U, Symbol(f, Decl(contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 0)) diff --git a/tests/baselines/reference/contextualSignatureInstatiationContravariance.types b/tests/baselines/reference/contextualSignatureInstatiationContravariance.types index d1d8a38dbc4..52b80aff4dd 100644 --- a/tests/baselines/reference/contextualSignatureInstatiationContravariance.types +++ b/tests/baselines/reference/contextualSignatureInstatiationContravariance.types @@ -1,48 +1,48 @@ === tests/cases/compiler/contextualSignatureInstatiationContravariance.ts === interface Animal { x } ->Animal : Animal ->x : any +>Animal : Animal, Symbol(Animal, Decl(contextualSignatureInstatiationContravariance.ts, 0, 0)) +>x : any, Symbol(x, Decl(contextualSignatureInstatiationContravariance.ts, 0, 18)) interface Giraffe extends Animal { y } ->Giraffe : Giraffe ->Animal : Animal ->y : any +>Giraffe : Giraffe, Symbol(Giraffe, Decl(contextualSignatureInstatiationContravariance.ts, 0, 22)) +>Animal : Animal, Symbol(Animal, Decl(contextualSignatureInstatiationContravariance.ts, 0, 0)) +>y : any, Symbol(y, Decl(contextualSignatureInstatiationContravariance.ts, 1, 34)) interface Elephant extends Animal { y2 } ->Elephant : Elephant ->Animal : Animal ->y2 : any +>Elephant : Elephant, Symbol(Elephant, Decl(contextualSignatureInstatiationContravariance.ts, 1, 38)) +>Animal : Animal, Symbol(Animal, Decl(contextualSignatureInstatiationContravariance.ts, 0, 0)) +>y2 : any, Symbol(y2, Decl(contextualSignatureInstatiationContravariance.ts, 2, 35)) var f2: (x: T, y: T) => void; ->f2 : (x: T, y: T) => void ->T : T ->Animal : Animal ->x : T ->T : T ->y : T ->T : T +>f2 : (x: T, y: T) => void, Symbol(f2, Decl(contextualSignatureInstatiationContravariance.ts, 4, 3)) +>T : T, Symbol(T, Decl(contextualSignatureInstatiationContravariance.ts, 4, 9)) +>Animal : Animal, Symbol(Animal, Decl(contextualSignatureInstatiationContravariance.ts, 0, 0)) +>x : T, Symbol(x, Decl(contextualSignatureInstatiationContravariance.ts, 4, 27)) +>T : T, Symbol(T, Decl(contextualSignatureInstatiationContravariance.ts, 4, 9)) +>y : T, Symbol(y, Decl(contextualSignatureInstatiationContravariance.ts, 4, 32)) +>T : T, Symbol(T, Decl(contextualSignatureInstatiationContravariance.ts, 4, 9)) var g2: (g: Giraffe, e: Elephant) => void; ->g2 : (g: Giraffe, e: Elephant) => void ->g : Giraffe ->Giraffe : Giraffe ->e : Elephant ->Elephant : Elephant +>g2 : (g: Giraffe, e: Elephant) => void, Symbol(g2, Decl(contextualSignatureInstatiationContravariance.ts, 6, 3)) +>g : Giraffe, Symbol(g, Decl(contextualSignatureInstatiationContravariance.ts, 6, 9)) +>Giraffe : Giraffe, Symbol(Giraffe, Decl(contextualSignatureInstatiationContravariance.ts, 0, 22)) +>e : Elephant, Symbol(e, Decl(contextualSignatureInstatiationContravariance.ts, 6, 20)) +>Elephant : Elephant, Symbol(Elephant, Decl(contextualSignatureInstatiationContravariance.ts, 1, 38)) g2 = f2; // valid because both Giraffe and Elephant satisfy the constraint. T is Animal >g2 = f2 : (x: T, y: T) => void ->g2 : (g: Giraffe, e: Elephant) => void ->f2 : (x: T, y: T) => void +>g2 : (g: Giraffe, e: Elephant) => void, Symbol(g2, Decl(contextualSignatureInstatiationContravariance.ts, 6, 3)) +>f2 : (x: T, y: T) => void, Symbol(f2, Decl(contextualSignatureInstatiationContravariance.ts, 4, 3)) var h2: (g1: Giraffe, g2: Giraffe) => void; ->h2 : (g1: Giraffe, g2: Giraffe) => void ->g1 : Giraffe ->Giraffe : Giraffe ->g2 : Giraffe ->Giraffe : Giraffe +>h2 : (g1: Giraffe, g2: Giraffe) => void, Symbol(h2, Decl(contextualSignatureInstatiationContravariance.ts, 9, 3)) +>g1 : Giraffe, Symbol(g1, Decl(contextualSignatureInstatiationContravariance.ts, 9, 9)) +>Giraffe : Giraffe, Symbol(Giraffe, Decl(contextualSignatureInstatiationContravariance.ts, 0, 22)) +>g2 : Giraffe, Symbol(g2, Decl(contextualSignatureInstatiationContravariance.ts, 9, 21)) +>Giraffe : Giraffe, Symbol(Giraffe, Decl(contextualSignatureInstatiationContravariance.ts, 0, 22)) h2 = f2; // valid because Giraffe satisfies the constraint. It is safe in the traditional contravariant fashion. >h2 = f2 : (x: T, y: T) => void ->h2 : (g1: Giraffe, g2: Giraffe) => void ->f2 : (x: T, y: T) => void +>h2 : (g1: Giraffe, g2: Giraffe) => void, Symbol(h2, Decl(contextualSignatureInstatiationContravariance.ts, 9, 3)) +>f2 : (x: T, y: T) => void, Symbol(f2, Decl(contextualSignatureInstatiationContravariance.ts, 4, 3)) diff --git a/tests/baselines/reference/contextualSignatureInstatiationCovariance.types b/tests/baselines/reference/contextualSignatureInstatiationCovariance.types index 40ec11a473b..e43ec0400d0 100644 --- a/tests/baselines/reference/contextualSignatureInstatiationCovariance.types +++ b/tests/baselines/reference/contextualSignatureInstatiationCovariance.types @@ -1,48 +1,48 @@ === tests/cases/compiler/contextualSignatureInstatiationCovariance.ts === interface Animal { x } ->Animal : Animal ->x : any +>Animal : Animal, Symbol(Animal, Decl(contextualSignatureInstatiationCovariance.ts, 0, 0)) +>x : any, Symbol(x, Decl(contextualSignatureInstatiationCovariance.ts, 0, 18)) interface TallThing { x2 } ->TallThing : TallThing ->x2 : any +>TallThing : TallThing, Symbol(TallThing, Decl(contextualSignatureInstatiationCovariance.ts, 0, 22)) +>x2 : any, Symbol(x2, Decl(contextualSignatureInstatiationCovariance.ts, 1, 21)) interface Giraffe extends Animal, TallThing { y } ->Giraffe : Giraffe ->Animal : Animal ->TallThing : TallThing ->y : any +>Giraffe : Giraffe, Symbol(Giraffe, Decl(contextualSignatureInstatiationCovariance.ts, 1, 26)) +>Animal : Animal, Symbol(Animal, Decl(contextualSignatureInstatiationCovariance.ts, 0, 0)) +>TallThing : TallThing, Symbol(TallThing, Decl(contextualSignatureInstatiationCovariance.ts, 0, 22)) +>y : any, Symbol(y, Decl(contextualSignatureInstatiationCovariance.ts, 2, 45)) var f2: (x: T, y: T) => void; ->f2 : (x: T, y: T) => void ->T : T ->Giraffe : Giraffe ->x : T ->T : T ->y : T ->T : T +>f2 : (x: T, y: T) => void, Symbol(f2, Decl(contextualSignatureInstatiationCovariance.ts, 4, 3)) +>T : T, Symbol(T, Decl(contextualSignatureInstatiationCovariance.ts, 4, 9)) +>Giraffe : Giraffe, Symbol(Giraffe, Decl(contextualSignatureInstatiationCovariance.ts, 1, 26)) +>x : T, Symbol(x, Decl(contextualSignatureInstatiationCovariance.ts, 4, 28)) +>T : T, Symbol(T, Decl(contextualSignatureInstatiationCovariance.ts, 4, 9)) +>y : T, Symbol(y, Decl(contextualSignatureInstatiationCovariance.ts, 4, 33)) +>T : T, Symbol(T, Decl(contextualSignatureInstatiationCovariance.ts, 4, 9)) var g2: (a: Animal, t: TallThing) => void; ->g2 : (a: Animal, t: TallThing) => void ->a : Animal ->Animal : Animal ->t : TallThing ->TallThing : TallThing +>g2 : (a: Animal, t: TallThing) => void, Symbol(g2, Decl(contextualSignatureInstatiationCovariance.ts, 6, 3)) +>a : Animal, Symbol(a, Decl(contextualSignatureInstatiationCovariance.ts, 6, 9)) +>Animal : Animal, Symbol(Animal, Decl(contextualSignatureInstatiationCovariance.ts, 0, 0)) +>t : TallThing, Symbol(t, Decl(contextualSignatureInstatiationCovariance.ts, 6, 19)) +>TallThing : TallThing, Symbol(TallThing, Decl(contextualSignatureInstatiationCovariance.ts, 0, 22)) g2 = f2; // While neither Animal nor TallThing satisfy the constraint, T is at worst a Giraffe and compatible with both via covariance. >g2 = f2 : (x: T, y: T) => void ->g2 : (a: Animal, t: TallThing) => void ->f2 : (x: T, y: T) => void +>g2 : (a: Animal, t: TallThing) => void, Symbol(g2, Decl(contextualSignatureInstatiationCovariance.ts, 6, 3)) +>f2 : (x: T, y: T) => void, Symbol(f2, Decl(contextualSignatureInstatiationCovariance.ts, 4, 3)) var h2: (a1: Animal, a2: Animal) => void; ->h2 : (a1: Animal, a2: Animal) => void ->a1 : Animal ->Animal : Animal ->a2 : Animal ->Animal : Animal +>h2 : (a1: Animal, a2: Animal) => void, Symbol(h2, Decl(contextualSignatureInstatiationCovariance.ts, 9, 3)) +>a1 : Animal, Symbol(a1, Decl(contextualSignatureInstatiationCovariance.ts, 9, 9)) +>Animal : Animal, Symbol(Animal, Decl(contextualSignatureInstatiationCovariance.ts, 0, 0)) +>a2 : Animal, Symbol(a2, Decl(contextualSignatureInstatiationCovariance.ts, 9, 20)) +>Animal : Animal, Symbol(Animal, Decl(contextualSignatureInstatiationCovariance.ts, 0, 0)) h2 = f2; // Animal does not satisfy the constraint, but T is at worst a Giraffe and compatible with Animal via covariance. >h2 = f2 : (x: T, y: T) => void ->h2 : (a1: Animal, a2: Animal) => void ->f2 : (x: T, y: T) => void +>h2 : (a1: Animal, a2: Animal) => void, Symbol(h2, Decl(contextualSignatureInstatiationCovariance.ts, 9, 3)) +>f2 : (x: T, y: T) => void, Symbol(f2, Decl(contextualSignatureInstatiationCovariance.ts, 4, 3)) diff --git a/tests/baselines/reference/contextualTypeAny.types b/tests/baselines/reference/contextualTypeAny.types index b21c3748eda..501503b6b3a 100644 --- a/tests/baselines/reference/contextualTypeAny.types +++ b/tests/baselines/reference/contextualTypeAny.types @@ -1,17 +1,19 @@ === tests/cases/compiler/contextualTypeAny.ts === var x: any; ->x : any +>x : any, Symbol(x, Decl(contextualTypeAny.ts, 0, 3)) var obj: { [s: string]: number } = { p: "", q: x }; ->obj : { [s: string]: number; } ->s : string +>obj : { [s: string]: number; }, Symbol(obj, Decl(contextualTypeAny.ts, 2, 3)) +>s : string, Symbol(s, Decl(contextualTypeAny.ts, 2, 12)) >{ p: "", q: x } : { [x: string]: any; p: string; q: any; } ->p : string ->q : any ->x : any +>p : string, Symbol(p, Decl(contextualTypeAny.ts, 2, 36)) +>"" : string +>q : any, Symbol(q, Decl(contextualTypeAny.ts, 2, 43)) +>x : any, Symbol(x, Decl(contextualTypeAny.ts, 0, 3)) var arr: number[] = ["", x]; ->arr : number[] +>arr : number[], Symbol(arr, Decl(contextualTypeAny.ts, 4, 3)) >["", x] : any[] ->x : any +>"" : string +>x : any, Symbol(x, Decl(contextualTypeAny.ts, 0, 3)) diff --git a/tests/baselines/reference/contextualTypeAppliedToVarArgs.types b/tests/baselines/reference/contextualTypeAppliedToVarArgs.types index cbd16aea35f..318feaa6a24 100644 --- a/tests/baselines/reference/contextualTypeAppliedToVarArgs.types +++ b/tests/baselines/reference/contextualTypeAppliedToVarArgs.types @@ -1,41 +1,41 @@ === tests/cases/compiler/contextualTypeAppliedToVarArgs.ts === function delegate(instance: any, method: (...args: any[]) => any, data?: any): (...args: any[]) => any { ->delegate : (instance: any, method: (...args: any[]) => any, data?: any) => (...args: any[]) => any ->instance : any ->method : (...args: any[]) => any ->args : any[] ->data : any ->args : any[] +>delegate : (instance: any, method: (...args: any[]) => any, data?: any) => (...args: any[]) => any, Symbol(delegate, Decl(contextualTypeAppliedToVarArgs.ts, 0, 0)) +>instance : any, Symbol(instance, Decl(contextualTypeAppliedToVarArgs.ts, 0, 18)) +>method : (...args: any[]) => any, Symbol(method, Decl(contextualTypeAppliedToVarArgs.ts, 0, 32)) +>args : any[], Symbol(args, Decl(contextualTypeAppliedToVarArgs.ts, 0, 42)) +>data : any, Symbol(data, Decl(contextualTypeAppliedToVarArgs.ts, 0, 65)) +>args : any[], Symbol(args, Decl(contextualTypeAppliedToVarArgs.ts, 0, 80)) return function () { }; >function () { } : () => void } class Foo{ ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(contextualTypeAppliedToVarArgs.ts, 2, 1)) Bar() { ->Bar : () => void +>Bar : () => void, Symbol(Bar, Decl(contextualTypeAppliedToVarArgs.ts, 4, 10)) delegate(this, function (source, args2) >delegate(this, function (source, args2) { var a = source.node; var b = args2.node; } ) : (...args: any[]) => any ->delegate : (instance: any, method: (...args: any[]) => any, data?: any) => (...args: any[]) => any ->this : Foo +>delegate : (instance: any, method: (...args: any[]) => any, data?: any) => (...args: any[]) => any, Symbol(delegate, Decl(contextualTypeAppliedToVarArgs.ts, 0, 0)) +>this : Foo, Symbol(Foo, Decl(contextualTypeAppliedToVarArgs.ts, 2, 1)) >function (source, args2) { var a = source.node; var b = args2.node; } : (source: any, args2: any) => void ->source : any ->args2 : any +>source : any, Symbol(source, Decl(contextualTypeAppliedToVarArgs.ts, 8, 33)) +>args2 : any, Symbol(args2, Decl(contextualTypeAppliedToVarArgs.ts, 8, 40)) { var a = source.node; ->a : any +>a : any, Symbol(a, Decl(contextualTypeAppliedToVarArgs.ts, 10, 15)) >source.node : any ->source : any +>source : any, Symbol(source, Decl(contextualTypeAppliedToVarArgs.ts, 8, 33)) >node : any var b = args2.node; ->b : any +>b : any, Symbol(b, Decl(contextualTypeAppliedToVarArgs.ts, 11, 15)) >args2.node : any ->args2 : any +>args2 : any, Symbol(args2, Decl(contextualTypeAppliedToVarArgs.ts, 8, 40)) >node : any } ); diff --git a/tests/baselines/reference/contextualTypeArrayReturnType.types b/tests/baselines/reference/contextualTypeArrayReturnType.types index ceb7aa53f67..523f55135fe 100644 --- a/tests/baselines/reference/contextualTypeArrayReturnType.types +++ b/tests/baselines/reference/contextualTypeArrayReturnType.types @@ -1,43 +1,44 @@ === tests/cases/compiler/contextualTypeArrayReturnType.ts === interface IBookStyle { ->IBookStyle : IBookStyle +>IBookStyle : IBookStyle, Symbol(IBookStyle, Decl(contextualTypeArrayReturnType.ts, 0, 0)) initialLeftPageTransforms?: (width: number) => NamedTransform[]; ->initialLeftPageTransforms : (width: number) => NamedTransform[] ->width : number ->NamedTransform : NamedTransform +>initialLeftPageTransforms : (width: number) => NamedTransform[], Symbol(initialLeftPageTransforms, Decl(contextualTypeArrayReturnType.ts, 0, 22)) +>width : number, Symbol(width, Decl(contextualTypeArrayReturnType.ts, 1, 33)) +>NamedTransform : NamedTransform, Symbol(NamedTransform, Decl(contextualTypeArrayReturnType.ts, 2, 1)) } interface NamedTransform { ->NamedTransform : NamedTransform +>NamedTransform : NamedTransform, Symbol(NamedTransform, Decl(contextualTypeArrayReturnType.ts, 2, 1)) [name: string]: Transform3D; ->name : string ->Transform3D : Transform3D +>name : string, Symbol(name, Decl(contextualTypeArrayReturnType.ts, 5, 5)) +>Transform3D : Transform3D, Symbol(Transform3D, Decl(contextualTypeArrayReturnType.ts, 6, 1)) } interface Transform3D { ->Transform3D : Transform3D +>Transform3D : Transform3D, Symbol(Transform3D, Decl(contextualTypeArrayReturnType.ts, 6, 1)) cachedCss: string; ->cachedCss : string +>cachedCss : string, Symbol(cachedCss, Decl(contextualTypeArrayReturnType.ts, 8, 23)) } var style: IBookStyle = { ->style : IBookStyle ->IBookStyle : IBookStyle +>style : IBookStyle, Symbol(style, Decl(contextualTypeArrayReturnType.ts, 12, 3)) +>IBookStyle : IBookStyle, Symbol(IBookStyle, Decl(contextualTypeArrayReturnType.ts, 0, 0)) >{ initialLeftPageTransforms: (width: number) => { return [ {'ry': null } ]; }} : { initialLeftPageTransforms: (width: number) => { [x: string]: any; 'ry': any; }[]; } initialLeftPageTransforms: (width: number) => { ->initialLeftPageTransforms : (width: number) => { [x: string]: any; 'ry': any; }[] +>initialLeftPageTransforms : (width: number) => { [x: string]: any; 'ry': any; }[], Symbol(initialLeftPageTransforms, Decl(contextualTypeArrayReturnType.ts, 12, 25)) >(width: number) => { return [ {'ry': null } ]; } : (width: number) => { [x: string]: any; 'ry': any; }[] ->width : number +>width : number, Symbol(width, Decl(contextualTypeArrayReturnType.ts, 13, 32)) return [ >[ {'ry': null } ] : { [x: string]: null; 'ry': null; }[] {'ry': null } >{'ry': null } : { [x: string]: null; 'ry': null; } +>null : null ]; } diff --git a/tests/baselines/reference/contextualTypeWithUnionTypeCallSignatures.types b/tests/baselines/reference/contextualTypeWithUnionTypeCallSignatures.types index 02dfecf5c08..a70c0d18261 100644 --- a/tests/baselines/reference/contextualTypeWithUnionTypeCallSignatures.types +++ b/tests/baselines/reference/contextualTypeWithUnionTypeCallSignatures.types @@ -7,93 +7,93 @@ // U has the same set of call signatures, but with return types that are unions of the return types of the respective call signatures from each type in S. interface IWithNoCallSignatures { ->IWithNoCallSignatures : IWithNoCallSignatures +>IWithNoCallSignatures : IWithNoCallSignatures, Symbol(IWithNoCallSignatures, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 7, 33)) } interface IWithCallSignatures { ->IWithCallSignatures : IWithCallSignatures +>IWithCallSignatures : IWithCallSignatures, Symbol(IWithCallSignatures, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 9, 1)) (a: number): string; ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 11, 5)) } interface IWithCallSignatures2 { ->IWithCallSignatures2 : IWithCallSignatures2 +>IWithCallSignatures2 : IWithCallSignatures2, Symbol(IWithCallSignatures2, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 12, 1)) (a: number): number; ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 14, 5)) } interface IWithCallSignatures3 { ->IWithCallSignatures3 : IWithCallSignatures3 +>IWithCallSignatures3 : IWithCallSignatures3, Symbol(IWithCallSignatures3, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 15, 1)) (b: string): number; ->b : string +>b : string, Symbol(b, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 17, 5)) } interface IWithCallSignatures4 { ->IWithCallSignatures4 : IWithCallSignatures4 +>IWithCallSignatures4 : IWithCallSignatures4, Symbol(IWithCallSignatures4, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 18, 1)) (a: number): string; ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 20, 5)) (a: string, b: number): number; ->a : string ->b : number +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 21, 5)) +>b : number, Symbol(b, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 21, 15)) } // With no call signature | callSignatures var x: IWithNoCallSignatures | IWithCallSignatures = a => a.toString(); ->x : IWithNoCallSignatures | IWithCallSignatures ->IWithNoCallSignatures : IWithNoCallSignatures ->IWithCallSignatures : IWithCallSignatures +>x : IWithNoCallSignatures | IWithCallSignatures, Symbol(x, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 25, 3)) +>IWithNoCallSignatures : IWithNoCallSignatures, Symbol(IWithNoCallSignatures, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 0, 0)) +>IWithCallSignatures : IWithCallSignatures, Symbol(IWithCallSignatures, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 9, 1)) >a => a.toString() : (a: number) => string ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 25, 52)) >a.toString() : string ->a.toString : (radix?: number) => string ->a : number ->toString : (radix?: number) => string +>a.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 25, 52)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) // With call signatures with different return type var x2: IWithCallSignatures | IWithCallSignatures2 = a => a.toString(); // Like iWithCallSignatures ->x2 : IWithCallSignatures | IWithCallSignatures2 ->IWithCallSignatures : IWithCallSignatures ->IWithCallSignatures2 : IWithCallSignatures2 +>x2 : IWithCallSignatures | IWithCallSignatures2, Symbol(x2, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 28, 3), Decl(contextualTypeWithUnionTypeCallSignatures.ts, 29, 3)) +>IWithCallSignatures : IWithCallSignatures, Symbol(IWithCallSignatures, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 9, 1)) +>IWithCallSignatures2 : IWithCallSignatures2, Symbol(IWithCallSignatures2, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 12, 1)) >a => a.toString() : (a: number) => string ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 28, 52)) >a.toString() : string ->a.toString : (radix?: number) => string ->a : number ->toString : (radix?: number) => string +>a.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 28, 52)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) var x2: IWithCallSignatures | IWithCallSignatures2 = a => a; // Like iWithCallSignatures2 ->x2 : IWithCallSignatures | IWithCallSignatures2 ->IWithCallSignatures : IWithCallSignatures ->IWithCallSignatures2 : IWithCallSignatures2 +>x2 : IWithCallSignatures | IWithCallSignatures2, Symbol(x2, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 28, 3), Decl(contextualTypeWithUnionTypeCallSignatures.ts, 29, 3)) +>IWithCallSignatures : IWithCallSignatures, Symbol(IWithCallSignatures, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 9, 1)) +>IWithCallSignatures2 : IWithCallSignatures2, Symbol(IWithCallSignatures2, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 12, 1)) >a => a : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 29, 52)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 29, 52)) // With call signatures of mismatching parameter type var x3: IWithCallSignatures | IWithCallSignatures3 = a => /*here a should be any*/ a.toString(); ->x3 : IWithCallSignatures | IWithCallSignatures3 ->IWithCallSignatures : IWithCallSignatures ->IWithCallSignatures3 : IWithCallSignatures3 +>x3 : IWithCallSignatures | IWithCallSignatures3, Symbol(x3, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 32, 3)) +>IWithCallSignatures : IWithCallSignatures, Symbol(IWithCallSignatures, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 9, 1)) +>IWithCallSignatures3 : IWithCallSignatures3, Symbol(IWithCallSignatures3, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 15, 1)) >a => /*here a should be any*/ a.toString() : (a: any) => any ->a : any +>a : any, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 32, 52)) >a.toString() : any >a.toString : any ->a : any +>a : any, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 32, 52)) >toString : any // With call signature count mismatch var x4: IWithCallSignatures | IWithCallSignatures4 = a => /*here a should be any*/ a.toString(); ->x4 : IWithCallSignatures | IWithCallSignatures4 ->IWithCallSignatures : IWithCallSignatures ->IWithCallSignatures4 : IWithCallSignatures4 +>x4 : IWithCallSignatures | IWithCallSignatures4, Symbol(x4, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 35, 3)) +>IWithCallSignatures : IWithCallSignatures, Symbol(IWithCallSignatures, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 9, 1)) +>IWithCallSignatures4 : IWithCallSignatures4, Symbol(IWithCallSignatures4, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 18, 1)) >a => /*here a should be any*/ a.toString() : (a: any) => any ->a : any +>a : any, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 35, 52)) >a.toString() : any >a.toString : any ->a : any +>a : any, Symbol(a, Decl(contextualTypeWithUnionTypeCallSignatures.ts, 35, 52)) >toString : any diff --git a/tests/baselines/reference/contextualTypeWithUnionTypeIndexSignatures.types b/tests/baselines/reference/contextualTypeWithUnionTypeIndexSignatures.types index 8a91fe18698..82d3ee25673 100644 --- a/tests/baselines/reference/contextualTypeWithUnionTypeIndexSignatures.types +++ b/tests/baselines/reference/contextualTypeWithUnionTypeIndexSignatures.types @@ -2,56 +2,56 @@ //When used as a contextual type, a union type U has those members that are present in any of // its constituent types, with types that are unions of the respective members in the constituent types. interface SomeType { ->SomeType : SomeType +>SomeType : SomeType, Symbol(SomeType, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 0, 0)) (a: number): number; ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 3, 5)) } interface SomeType2 { ->SomeType2 : SomeType2 +>SomeType2 : SomeType2, Symbol(SomeType2, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 4, 1)) (a: number): string; ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 6, 5)) } interface IWithNoStringIndexSignature { ->IWithNoStringIndexSignature : IWithNoStringIndexSignature +>IWithNoStringIndexSignature : IWithNoStringIndexSignature, Symbol(IWithNoStringIndexSignature, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 7, 1)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 9, 39)) } interface IWithNoNumberIndexSignature { ->IWithNoNumberIndexSignature : IWithNoNumberIndexSignature +>IWithNoNumberIndexSignature : IWithNoNumberIndexSignature, Symbol(IWithNoNumberIndexSignature, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 11, 1)) 0: string; } interface IWithStringIndexSignature1 { ->IWithStringIndexSignature1 : IWithStringIndexSignature1 +>IWithStringIndexSignature1 : IWithStringIndexSignature1, Symbol(IWithStringIndexSignature1, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 14, 1)) [a: string]: SomeType; ->a : string ->SomeType : SomeType +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 16, 5)) +>SomeType : SomeType, Symbol(SomeType, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 0, 0)) } interface IWithStringIndexSignature2 { ->IWithStringIndexSignature2 : IWithStringIndexSignature2 +>IWithStringIndexSignature2 : IWithStringIndexSignature2, Symbol(IWithStringIndexSignature2, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 17, 1)) [a: string]: SomeType2; ->a : string ->SomeType2 : SomeType2 +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 19, 5)) +>SomeType2 : SomeType2, Symbol(SomeType2, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 4, 1)) } interface IWithNumberIndexSignature1 { ->IWithNumberIndexSignature1 : IWithNumberIndexSignature1 +>IWithNumberIndexSignature1 : IWithNumberIndexSignature1, Symbol(IWithNumberIndexSignature1, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 20, 1)) [a: number]: SomeType; ->a : number ->SomeType : SomeType +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 22, 5)) +>SomeType : SomeType, Symbol(SomeType, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 0, 0)) } interface IWithNumberIndexSignature2 { ->IWithNumberIndexSignature2 : IWithNumberIndexSignature2 +>IWithNumberIndexSignature2 : IWithNumberIndexSignature2, Symbol(IWithNumberIndexSignature2, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 23, 1)) [a: number]: SomeType2; ->a : number ->SomeType2 : SomeType2 +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 25, 5)) +>SomeType2 : SomeType2, Symbol(SomeType2, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 4, 1)) } // When an object literal is contextually typed by a type that includes a string index signature, @@ -66,101 +66,103 @@ interface IWithNumberIndexSignature2 { // If S is not empty, U has a string index signature of a union type of // the types of the string index signatures from each type in S. var x: IWithNoStringIndexSignature | IWithStringIndexSignature1 = { z: a => a }; // a should be number ->x : IWithNoStringIndexSignature | IWithStringIndexSignature1 ->IWithNoStringIndexSignature : IWithNoStringIndexSignature ->IWithStringIndexSignature1 : IWithStringIndexSignature1 +>x : IWithNoStringIndexSignature | IWithStringIndexSignature1, Symbol(x, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 39, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 40, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 41, 3)) +>IWithNoStringIndexSignature : IWithNoStringIndexSignature, Symbol(IWithNoStringIndexSignature, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 7, 1)) +>IWithStringIndexSignature1 : IWithStringIndexSignature1, Symbol(IWithStringIndexSignature1, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 14, 1)) >{ z: a => a } : { [x: string]: (a: number) => number; z: (a: number) => number; } ->z : (a: number) => number +>z : (a: number) => number, Symbol(z, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 39, 67)) >a => a : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 39, 70)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 39, 70)) var x: IWithNoStringIndexSignature | IWithStringIndexSignature1 = { foo: a => a }; // a should be any ->x : IWithNoStringIndexSignature | IWithStringIndexSignature1 ->IWithNoStringIndexSignature : IWithNoStringIndexSignature ->IWithStringIndexSignature1 : IWithStringIndexSignature1 +>x : IWithNoStringIndexSignature | IWithStringIndexSignature1, Symbol(x, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 39, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 40, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 41, 3)) +>IWithNoStringIndexSignature : IWithNoStringIndexSignature, Symbol(IWithNoStringIndexSignature, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 7, 1)) +>IWithStringIndexSignature1 : IWithStringIndexSignature1, Symbol(IWithStringIndexSignature1, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 14, 1)) >{ foo: a => a } : { [x: string]: (a: any) => any; foo: (a: any) => any; } ->foo : (a: any) => any +>foo : (a: any) => any, Symbol(foo, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 40, 67)) >a => a : (a: any) => any ->a : any ->a : any +>a : any, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 40, 72)) +>a : any, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 40, 72)) var x: IWithNoStringIndexSignature | IWithStringIndexSignature1 = { foo: "hello" }; ->x : IWithNoStringIndexSignature | IWithStringIndexSignature1 ->IWithNoStringIndexSignature : IWithNoStringIndexSignature ->IWithStringIndexSignature1 : IWithStringIndexSignature1 +>x : IWithNoStringIndexSignature | IWithStringIndexSignature1, Symbol(x, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 39, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 40, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 41, 3)) +>IWithNoStringIndexSignature : IWithNoStringIndexSignature, Symbol(IWithNoStringIndexSignature, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 7, 1)) +>IWithStringIndexSignature1 : IWithStringIndexSignature1, Symbol(IWithStringIndexSignature1, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 14, 1)) >{ foo: "hello" } : { [x: string]: string; foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 41, 67)) +>"hello" : string var x2: IWithStringIndexSignature1 | IWithStringIndexSignature2 = { z: a => a.toString() }; // a should be number ->x2 : IWithStringIndexSignature1 | IWithStringIndexSignature2 ->IWithStringIndexSignature1 : IWithStringIndexSignature1 ->IWithStringIndexSignature2 : IWithStringIndexSignature2 +>x2 : IWithStringIndexSignature1 | IWithStringIndexSignature2, Symbol(x2, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 42, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 43, 3)) +>IWithStringIndexSignature1 : IWithStringIndexSignature1, Symbol(IWithStringIndexSignature1, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 14, 1)) +>IWithStringIndexSignature2 : IWithStringIndexSignature2, Symbol(IWithStringIndexSignature2, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 17, 1)) >{ z: a => a.toString() } : { [x: string]: (a: number) => string; z: (a: number) => string; } ->z : (a: number) => string +>z : (a: number) => string, Symbol(z, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 42, 67)) >a => a.toString() : (a: number) => string ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 42, 70)) >a.toString() : string ->a.toString : (radix?: number) => string ->a : number ->toString : (radix?: number) => string +>a.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 42, 70)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) var x2: IWithStringIndexSignature1 | IWithStringIndexSignature2 = { z: a => a }; // a should be number ->x2 : IWithStringIndexSignature1 | IWithStringIndexSignature2 ->IWithStringIndexSignature1 : IWithStringIndexSignature1 ->IWithStringIndexSignature2 : IWithStringIndexSignature2 +>x2 : IWithStringIndexSignature1 | IWithStringIndexSignature2, Symbol(x2, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 42, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 43, 3)) +>IWithStringIndexSignature1 : IWithStringIndexSignature1, Symbol(IWithStringIndexSignature1, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 14, 1)) +>IWithStringIndexSignature2 : IWithStringIndexSignature2, Symbol(IWithStringIndexSignature2, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 17, 1)) >{ z: a => a } : { [x: string]: (a: number) => number; z: (a: number) => number; } ->z : (a: number) => number +>z : (a: number) => number, Symbol(z, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 43, 67)) >a => a : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 43, 70)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 43, 70)) // Let S be the set of types in U that has a numeric index signature. // If S is not empty, U has a numeric index signature of a union type of // the types of the numeric index signatures from each type in S. var x3: IWithNoNumberIndexSignature | IWithNumberIndexSignature1 = { 1: a => a }; // a should be number ->x3 : IWithNoNumberIndexSignature | IWithNumberIndexSignature1 ->IWithNoNumberIndexSignature : IWithNoNumberIndexSignature ->IWithNumberIndexSignature1 : IWithNumberIndexSignature1 +>x3 : IWithNoNumberIndexSignature | IWithNumberIndexSignature1, Symbol(x3, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 49, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 50, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 51, 3)) +>IWithNoNumberIndexSignature : IWithNoNumberIndexSignature, Symbol(IWithNoNumberIndexSignature, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 11, 1)) +>IWithNumberIndexSignature1 : IWithNumberIndexSignature1, Symbol(IWithNumberIndexSignature1, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 20, 1)) >{ 1: a => a } : { [x: number]: (a: number) => number; 1: (a: number) => number; } >a => a : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 49, 71)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 49, 71)) var x3: IWithNoNumberIndexSignature | IWithNumberIndexSignature1 = { 0: a => a }; // a should be any ->x3 : IWithNoNumberIndexSignature | IWithNumberIndexSignature1 ->IWithNoNumberIndexSignature : IWithNoNumberIndexSignature ->IWithNumberIndexSignature1 : IWithNumberIndexSignature1 +>x3 : IWithNoNumberIndexSignature | IWithNumberIndexSignature1, Symbol(x3, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 49, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 50, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 51, 3)) +>IWithNoNumberIndexSignature : IWithNoNumberIndexSignature, Symbol(IWithNoNumberIndexSignature, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 11, 1)) +>IWithNumberIndexSignature1 : IWithNumberIndexSignature1, Symbol(IWithNumberIndexSignature1, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 20, 1)) >{ 0: a => a } : { [x: number]: (a: any) => any; 0: (a: any) => any; } >a => a : (a: any) => any ->a : any ->a : any +>a : any, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 50, 71)) +>a : any, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 50, 71)) var x3: IWithNoNumberIndexSignature | IWithNumberIndexSignature1 = { 0: "hello" }; ->x3 : IWithNoNumberIndexSignature | IWithNumberIndexSignature1 ->IWithNoNumberIndexSignature : IWithNoNumberIndexSignature ->IWithNumberIndexSignature1 : IWithNumberIndexSignature1 +>x3 : IWithNoNumberIndexSignature | IWithNumberIndexSignature1, Symbol(x3, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 49, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 50, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 51, 3)) +>IWithNoNumberIndexSignature : IWithNoNumberIndexSignature, Symbol(IWithNoNumberIndexSignature, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 11, 1)) +>IWithNumberIndexSignature1 : IWithNumberIndexSignature1, Symbol(IWithNumberIndexSignature1, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 20, 1)) >{ 0: "hello" } : { [x: number]: string; 0: string; } +>"hello" : string var x4: IWithNumberIndexSignature1 | IWithNumberIndexSignature2 = { 1: a => a.toString() }; // a should be number ->x4 : IWithNumberIndexSignature1 | IWithNumberIndexSignature2 ->IWithNumberIndexSignature1 : IWithNumberIndexSignature1 ->IWithNumberIndexSignature2 : IWithNumberIndexSignature2 +>x4 : IWithNumberIndexSignature1 | IWithNumberIndexSignature2, Symbol(x4, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 52, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 53, 3)) +>IWithNumberIndexSignature1 : IWithNumberIndexSignature1, Symbol(IWithNumberIndexSignature1, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 20, 1)) +>IWithNumberIndexSignature2 : IWithNumberIndexSignature2, Symbol(IWithNumberIndexSignature2, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 23, 1)) >{ 1: a => a.toString() } : { [x: number]: (a: number) => string; 1: (a: number) => string; } >a => a.toString() : (a: number) => string ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 52, 70)) >a.toString() : string ->a.toString : (radix?: number) => string ->a : number ->toString : (radix?: number) => string +>a.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 52, 70)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) var x4: IWithNumberIndexSignature1 | IWithNumberIndexSignature2 = { 1: a => a }; // a should be number ->x4 : IWithNumberIndexSignature1 | IWithNumberIndexSignature2 ->IWithNumberIndexSignature1 : IWithNumberIndexSignature1 ->IWithNumberIndexSignature2 : IWithNumberIndexSignature2 +>x4 : IWithNumberIndexSignature1 | IWithNumberIndexSignature2, Symbol(x4, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 52, 3), Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 53, 3)) +>IWithNumberIndexSignature1 : IWithNumberIndexSignature1, Symbol(IWithNumberIndexSignature1, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 20, 1)) +>IWithNumberIndexSignature2 : IWithNumberIndexSignature2, Symbol(IWithNumberIndexSignature2, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 23, 1)) >{ 1: a => a } : { [x: number]: (a: number) => number; 1: (a: number) => number; } >a => a : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 53, 70)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeIndexSignatures.ts, 53, 70)) diff --git a/tests/baselines/reference/contextualTypeWithUnionTypeMembers.types b/tests/baselines/reference/contextualTypeWithUnionTypeMembers.types index 522d4a4a555..11040412ded 100644 --- a/tests/baselines/reference/contextualTypeWithUnionTypeMembers.types +++ b/tests/baselines/reference/contextualTypeWithUnionTypeMembers.types @@ -2,437 +2,455 @@ //When used as a contextual type, a union type U has those members that are present in any of // its constituent types, with types that are unions of the respective members in the constituent types. interface I1 { ->I1 : I1 ->T : T +>I1 : I1, Symbol(I1, Decl(contextualTypeWithUnionTypeMembers.ts, 0, 0)) +>T : T, Symbol(T, Decl(contextualTypeWithUnionTypeMembers.ts, 2, 13)) commonMethodType(a: string): string; ->commonMethodType : (a: string) => string ->a : string +>commonMethodType : (a: string) => string, Symbol(commonMethodType, Decl(contextualTypeWithUnionTypeMembers.ts, 2, 17)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 3, 21)) commonPropertyType: string; ->commonPropertyType : string +>commonPropertyType : string, Symbol(commonPropertyType, Decl(contextualTypeWithUnionTypeMembers.ts, 3, 40)) commonMethodWithTypeParameter(a: T): T; ->commonMethodWithTypeParameter : (a: T) => T ->a : T ->T : T ->T : T +>commonMethodWithTypeParameter : (a: T) => T, Symbol(commonMethodWithTypeParameter, Decl(contextualTypeWithUnionTypeMembers.ts, 4, 31)) +>a : T, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 5, 34)) +>T : T, Symbol(T, Decl(contextualTypeWithUnionTypeMembers.ts, 2, 13)) +>T : T, Symbol(T, Decl(contextualTypeWithUnionTypeMembers.ts, 2, 13)) methodOnlyInI1(a: string): string; ->methodOnlyInI1 : (a: string) => string ->a : string +>methodOnlyInI1 : (a: string) => string, Symbol(methodOnlyInI1, Decl(contextualTypeWithUnionTypeMembers.ts, 5, 43)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 7, 19)) propertyOnlyInI1: string; ->propertyOnlyInI1 : string +>propertyOnlyInI1 : string, Symbol(propertyOnlyInI1, Decl(contextualTypeWithUnionTypeMembers.ts, 7, 38)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(contextualTypeWithUnionTypeMembers.ts, 9, 1)) +>T : T, Symbol(T, Decl(contextualTypeWithUnionTypeMembers.ts, 10, 13)) commonMethodType(a: string): string; ->commonMethodType : (a: string) => string ->a : string +>commonMethodType : (a: string) => string, Symbol(commonMethodType, Decl(contextualTypeWithUnionTypeMembers.ts, 10, 17)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 11, 21)) commonPropertyType: string; ->commonPropertyType : string +>commonPropertyType : string, Symbol(commonPropertyType, Decl(contextualTypeWithUnionTypeMembers.ts, 11, 40)) commonMethodWithTypeParameter(a: T): T; ->commonMethodWithTypeParameter : (a: T) => T ->a : T ->T : T ->T : T +>commonMethodWithTypeParameter : (a: T) => T, Symbol(commonMethodWithTypeParameter, Decl(contextualTypeWithUnionTypeMembers.ts, 12, 31)) +>a : T, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 13, 34)) +>T : T, Symbol(T, Decl(contextualTypeWithUnionTypeMembers.ts, 10, 13)) +>T : T, Symbol(T, Decl(contextualTypeWithUnionTypeMembers.ts, 10, 13)) methodOnlyInI2(a: string): string; ->methodOnlyInI2 : (a: string) => string ->a : string +>methodOnlyInI2 : (a: string) => string, Symbol(methodOnlyInI2, Decl(contextualTypeWithUnionTypeMembers.ts, 13, 43)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 15, 19)) propertyOnlyInI2: string; ->propertyOnlyInI2 : string +>propertyOnlyInI2 : string, Symbol(propertyOnlyInI2, Decl(contextualTypeWithUnionTypeMembers.ts, 15, 38)) } // Let S be the set of types in U that has a property P. // If S is not empty, U has a property P of a union type of the types of P from each type in S. var i1: I1; ->i1 : I1 ->I1 : I1 +>i1 : I1, Symbol(i1, Decl(contextualTypeWithUnionTypeMembers.ts, 21, 3)) +>I1 : I1, Symbol(I1, Decl(contextualTypeWithUnionTypeMembers.ts, 0, 0)) var i2: I2; ->i2 : I2 ->I2 : I2 +>i2 : I2, Symbol(i2, Decl(contextualTypeWithUnionTypeMembers.ts, 22, 3)) +>I2 : I2, Symbol(I2, Decl(contextualTypeWithUnionTypeMembers.ts, 9, 1)) var i1Ori2: I1 | I2 = i1; ->i1Ori2 : I1 | I2 ->I1 : I1 ->I2 : I2 ->i1 : I1 +>i1Ori2 : I1 | I2, Symbol(i1Ori2, Decl(contextualTypeWithUnionTypeMembers.ts, 23, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 24, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 25, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 33, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 41, 3)) +>I1 : I1, Symbol(I1, Decl(contextualTypeWithUnionTypeMembers.ts, 0, 0)) +>I2 : I2, Symbol(I2, Decl(contextualTypeWithUnionTypeMembers.ts, 9, 1)) +>i1 : I1, Symbol(i1, Decl(contextualTypeWithUnionTypeMembers.ts, 21, 3)) var i1Ori2: I1 | I2 = i2; ->i1Ori2 : I1 | I2 ->I1 : I1 ->I2 : I2 ->i2 : I2 +>i1Ori2 : I1 | I2, Symbol(i1Ori2, Decl(contextualTypeWithUnionTypeMembers.ts, 23, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 24, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 25, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 33, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 41, 3)) +>I1 : I1, Symbol(I1, Decl(contextualTypeWithUnionTypeMembers.ts, 0, 0)) +>I2 : I2, Symbol(I2, Decl(contextualTypeWithUnionTypeMembers.ts, 9, 1)) +>i2 : I2, Symbol(i2, Decl(contextualTypeWithUnionTypeMembers.ts, 22, 3)) var i1Ori2: I1 | I2 = { // Like i1 ->i1Ori2 : I1 | I2 ->I1 : I1 ->I2 : I2 +>i1Ori2 : I1 | I2, Symbol(i1Ori2, Decl(contextualTypeWithUnionTypeMembers.ts, 23, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 24, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 25, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 33, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 41, 3)) +>I1 : I1, Symbol(I1, Decl(contextualTypeWithUnionTypeMembers.ts, 0, 0)) +>I2 : I2, Symbol(I2, Decl(contextualTypeWithUnionTypeMembers.ts, 9, 1)) >{ // Like i1 commonPropertyType: "hello", commonMethodType: a=> a, commonMethodWithTypeParameter: a => a, methodOnlyInI1: a => a, propertyOnlyInI1: "Hello",} : { commonPropertyType: string; commonMethodType: (a: string) => string; commonMethodWithTypeParameter: (a: number) => number; methodOnlyInI1: (a: string) => string; propertyOnlyInI1: string; } commonPropertyType: "hello", ->commonPropertyType : string +>commonPropertyType : string, Symbol(commonPropertyType, Decl(contextualTypeWithUnionTypeMembers.ts, 25, 39)) +>"hello" : string commonMethodType: a=> a, ->commonMethodType : (a: string) => string +>commonMethodType : (a: string) => string, Symbol(commonMethodType, Decl(contextualTypeWithUnionTypeMembers.ts, 26, 32)) >a=> a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 27, 21)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 27, 21)) commonMethodWithTypeParameter: a => a, ->commonMethodWithTypeParameter : (a: number) => number +>commonMethodWithTypeParameter : (a: number) => number, Symbol(commonMethodWithTypeParameter, Decl(contextualTypeWithUnionTypeMembers.ts, 27, 28)) >a => a : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 28, 34)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 28, 34)) methodOnlyInI1: a => a, ->methodOnlyInI1 : (a: string) => string +>methodOnlyInI1 : (a: string) => string, Symbol(methodOnlyInI1, Decl(contextualTypeWithUnionTypeMembers.ts, 28, 42)) >a => a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 30, 19)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 30, 19)) propertyOnlyInI1: "Hello", ->propertyOnlyInI1 : string +>propertyOnlyInI1 : string, Symbol(propertyOnlyInI1, Decl(contextualTypeWithUnionTypeMembers.ts, 30, 27)) +>"Hello" : string }; var i1Ori2: I1 | I2 = { // Like i2 ->i1Ori2 : I1 | I2 ->I1 : I1 ->I2 : I2 +>i1Ori2 : I1 | I2, Symbol(i1Ori2, Decl(contextualTypeWithUnionTypeMembers.ts, 23, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 24, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 25, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 33, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 41, 3)) +>I1 : I1, Symbol(I1, Decl(contextualTypeWithUnionTypeMembers.ts, 0, 0)) +>I2 : I2, Symbol(I2, Decl(contextualTypeWithUnionTypeMembers.ts, 9, 1)) >{ // Like i2 commonPropertyType: "hello", commonMethodType: a=> a, commonMethodWithTypeParameter: a => a, methodOnlyInI2: a => a, propertyOnlyInI2: "Hello",} : { commonPropertyType: string; commonMethodType: (a: string) => string; commonMethodWithTypeParameter: (a: number) => number; methodOnlyInI2: (a: string) => string; propertyOnlyInI2: string; } commonPropertyType: "hello", ->commonPropertyType : string +>commonPropertyType : string, Symbol(commonPropertyType, Decl(contextualTypeWithUnionTypeMembers.ts, 33, 39)) +>"hello" : string commonMethodType: a=> a, ->commonMethodType : (a: string) => string +>commonMethodType : (a: string) => string, Symbol(commonMethodType, Decl(contextualTypeWithUnionTypeMembers.ts, 34, 32)) >a=> a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 35, 21)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 35, 21)) commonMethodWithTypeParameter: a => a, ->commonMethodWithTypeParameter : (a: number) => number +>commonMethodWithTypeParameter : (a: number) => number, Symbol(commonMethodWithTypeParameter, Decl(contextualTypeWithUnionTypeMembers.ts, 35, 28)) >a => a : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 36, 34)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 36, 34)) methodOnlyInI2: a => a, ->methodOnlyInI2 : (a: string) => string +>methodOnlyInI2 : (a: string) => string, Symbol(methodOnlyInI2, Decl(contextualTypeWithUnionTypeMembers.ts, 36, 42)) >a => a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 38, 19)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 38, 19)) propertyOnlyInI2: "Hello", ->propertyOnlyInI2 : string +>propertyOnlyInI2 : string, Symbol(propertyOnlyInI2, Decl(contextualTypeWithUnionTypeMembers.ts, 38, 27)) +>"Hello" : string }; var i1Ori2: I1 | I2 = { // Like i1 and i2 both ->i1Ori2 : I1 | I2 ->I1 : I1 ->I2 : I2 +>i1Ori2 : I1 | I2, Symbol(i1Ori2, Decl(contextualTypeWithUnionTypeMembers.ts, 23, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 24, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 25, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 33, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 41, 3)) +>I1 : I1, Symbol(I1, Decl(contextualTypeWithUnionTypeMembers.ts, 0, 0)) +>I2 : I2, Symbol(I2, Decl(contextualTypeWithUnionTypeMembers.ts, 9, 1)) >{ // Like i1 and i2 both commonPropertyType: "hello", commonMethodType: a=> a, commonMethodWithTypeParameter: a => a, methodOnlyInI1: a => a, propertyOnlyInI1: "Hello", methodOnlyInI2: a => a, propertyOnlyInI2: "Hello",} : { commonPropertyType: string; commonMethodType: (a: string) => string; commonMethodWithTypeParameter: (a: number) => number; methodOnlyInI1: (a: string) => string; propertyOnlyInI1: string; methodOnlyInI2: (a: string) => string; propertyOnlyInI2: string; } commonPropertyType: "hello", ->commonPropertyType : string +>commonPropertyType : string, Symbol(commonPropertyType, Decl(contextualTypeWithUnionTypeMembers.ts, 41, 39)) +>"hello" : string commonMethodType: a=> a, ->commonMethodType : (a: string) => string +>commonMethodType : (a: string) => string, Symbol(commonMethodType, Decl(contextualTypeWithUnionTypeMembers.ts, 42, 32)) >a=> a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 43, 21)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 43, 21)) commonMethodWithTypeParameter: a => a, ->commonMethodWithTypeParameter : (a: number) => number +>commonMethodWithTypeParameter : (a: number) => number, Symbol(commonMethodWithTypeParameter, Decl(contextualTypeWithUnionTypeMembers.ts, 43, 28)) >a => a : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 44, 34)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 44, 34)) methodOnlyInI1: a => a, ->methodOnlyInI1 : (a: string) => string +>methodOnlyInI1 : (a: string) => string, Symbol(methodOnlyInI1, Decl(contextualTypeWithUnionTypeMembers.ts, 44, 42)) >a => a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 45, 19)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 45, 19)) propertyOnlyInI1: "Hello", ->propertyOnlyInI1 : string +>propertyOnlyInI1 : string, Symbol(propertyOnlyInI1, Decl(contextualTypeWithUnionTypeMembers.ts, 45, 27)) +>"Hello" : string methodOnlyInI2: a => a, ->methodOnlyInI2 : (a: string) => string +>methodOnlyInI2 : (a: string) => string, Symbol(methodOnlyInI2, Decl(contextualTypeWithUnionTypeMembers.ts, 46, 30)) >a => a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 47, 19)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 47, 19)) propertyOnlyInI2: "Hello", ->propertyOnlyInI2 : string +>propertyOnlyInI2 : string, Symbol(propertyOnlyInI2, Decl(contextualTypeWithUnionTypeMembers.ts, 47, 27)) +>"Hello" : string }; var arrayI1OrI2: Array | I2> = [i1, i2, { // Like i1 ->arrayI1OrI2 : (I1 | I2)[] ->Array : T[] ->I1 : I1 ->I2 : I2 +>arrayI1OrI2 : (I1 | I2)[], Symbol(arrayI1OrI2, Decl(contextualTypeWithUnionTypeMembers.ts, 51, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>I1 : I1, Symbol(I1, Decl(contextualTypeWithUnionTypeMembers.ts, 0, 0)) +>I2 : I2, Symbol(I2, Decl(contextualTypeWithUnionTypeMembers.ts, 9, 1)) >[i1, i2, { // Like i1 commonPropertyType: "hello", commonMethodType: a=> a, commonMethodWithTypeParameter: a => a, methodOnlyInI1: a => a, propertyOnlyInI1: "Hello", }, { // Like i2 commonPropertyType: "hello", commonMethodType: a=> a, commonMethodWithTypeParameter: a => a, methodOnlyInI2: a => a, propertyOnlyInI2: "Hello", }, { // Like i1 and i2 both commonPropertyType: "hello", commonMethodType: a=> a, commonMethodWithTypeParameter: a => a, methodOnlyInI1: a => a, propertyOnlyInI1: "Hello", methodOnlyInI2: a => a, propertyOnlyInI2: "Hello", }] : (I1 | I2)[] ->i1 : I1 ->i2 : I2 +>i1 : I1, Symbol(i1, Decl(contextualTypeWithUnionTypeMembers.ts, 21, 3)) +>i2 : I2, Symbol(i2, Decl(contextualTypeWithUnionTypeMembers.ts, 22, 3)) >{ // Like i1 commonPropertyType: "hello", commonMethodType: a=> a, commonMethodWithTypeParameter: a => a, methodOnlyInI1: a => a, propertyOnlyInI1: "Hello", } : { commonPropertyType: string; commonMethodType: (a: string) => string; commonMethodWithTypeParameter: (a: number) => number; methodOnlyInI1: (a: string) => string; propertyOnlyInI1: string; } commonPropertyType: "hello", ->commonPropertyType : string +>commonPropertyType : string, Symbol(commonPropertyType, Decl(contextualTypeWithUnionTypeMembers.ts, 51, 60)) +>"hello" : string commonMethodType: a=> a, ->commonMethodType : (a: string) => string +>commonMethodType : (a: string) => string, Symbol(commonMethodType, Decl(contextualTypeWithUnionTypeMembers.ts, 52, 36)) >a=> a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 53, 25)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 53, 25)) commonMethodWithTypeParameter: a => a, ->commonMethodWithTypeParameter : (a: number) => number +>commonMethodWithTypeParameter : (a: number) => number, Symbol(commonMethodWithTypeParameter, Decl(contextualTypeWithUnionTypeMembers.ts, 53, 32)) >a => a : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 54, 38)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 54, 38)) methodOnlyInI1: a => a, ->methodOnlyInI1 : (a: string) => string +>methodOnlyInI1 : (a: string) => string, Symbol(methodOnlyInI1, Decl(contextualTypeWithUnionTypeMembers.ts, 54, 46)) >a => a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 56, 23)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 56, 23)) propertyOnlyInI1: "Hello", ->propertyOnlyInI1 : string +>propertyOnlyInI1 : string, Symbol(propertyOnlyInI1, Decl(contextualTypeWithUnionTypeMembers.ts, 56, 31)) +>"Hello" : string }, { // Like i2 >{ // Like i2 commonPropertyType: "hello", commonMethodType: a=> a, commonMethodWithTypeParameter: a => a, methodOnlyInI2: a => a, propertyOnlyInI2: "Hello", } : { commonPropertyType: string; commonMethodType: (a: string) => string; commonMethodWithTypeParameter: (a: number) => number; methodOnlyInI2: (a: string) => string; propertyOnlyInI2: string; } commonPropertyType: "hello", ->commonPropertyType : string +>commonPropertyType : string, Symbol(commonPropertyType, Decl(contextualTypeWithUnionTypeMembers.ts, 59, 5)) +>"hello" : string commonMethodType: a=> a, ->commonMethodType : (a: string) => string +>commonMethodType : (a: string) => string, Symbol(commonMethodType, Decl(contextualTypeWithUnionTypeMembers.ts, 60, 36)) >a=> a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 61, 25)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 61, 25)) commonMethodWithTypeParameter: a => a, ->commonMethodWithTypeParameter : (a: number) => number +>commonMethodWithTypeParameter : (a: number) => number, Symbol(commonMethodWithTypeParameter, Decl(contextualTypeWithUnionTypeMembers.ts, 61, 32)) >a => a : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 62, 38)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 62, 38)) methodOnlyInI2: a => a, ->methodOnlyInI2 : (a: string) => string +>methodOnlyInI2 : (a: string) => string, Symbol(methodOnlyInI2, Decl(contextualTypeWithUnionTypeMembers.ts, 62, 46)) >a => a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 64, 23)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 64, 23)) propertyOnlyInI2: "Hello", ->propertyOnlyInI2 : string +>propertyOnlyInI2 : string, Symbol(propertyOnlyInI2, Decl(contextualTypeWithUnionTypeMembers.ts, 64, 31)) +>"Hello" : string }, { // Like i1 and i2 both >{ // Like i1 and i2 both commonPropertyType: "hello", commonMethodType: a=> a, commonMethodWithTypeParameter: a => a, methodOnlyInI1: a => a, propertyOnlyInI1: "Hello", methodOnlyInI2: a => a, propertyOnlyInI2: "Hello", } : { commonPropertyType: string; commonMethodType: (a: string) => string; commonMethodWithTypeParameter: (a: number) => number; methodOnlyInI1: (a: string) => string; propertyOnlyInI1: string; methodOnlyInI2: (a: string) => string; propertyOnlyInI2: string; } commonPropertyType: "hello", ->commonPropertyType : string +>commonPropertyType : string, Symbol(commonPropertyType, Decl(contextualTypeWithUnionTypeMembers.ts, 66, 8)) +>"hello" : string commonMethodType: a=> a, ->commonMethodType : (a: string) => string +>commonMethodType : (a: string) => string, Symbol(commonMethodType, Decl(contextualTypeWithUnionTypeMembers.ts, 67, 36)) >a=> a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 68, 25)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 68, 25)) commonMethodWithTypeParameter: a => a, ->commonMethodWithTypeParameter : (a: number) => number +>commonMethodWithTypeParameter : (a: number) => number, Symbol(commonMethodWithTypeParameter, Decl(contextualTypeWithUnionTypeMembers.ts, 68, 32)) >a => a : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 69, 38)) +>a : number, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 69, 38)) methodOnlyInI1: a => a, ->methodOnlyInI1 : (a: string) => string +>methodOnlyInI1 : (a: string) => string, Symbol(methodOnlyInI1, Decl(contextualTypeWithUnionTypeMembers.ts, 69, 46)) >a => a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 70, 23)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 70, 23)) propertyOnlyInI1: "Hello", ->propertyOnlyInI1 : string +>propertyOnlyInI1 : string, Symbol(propertyOnlyInI1, Decl(contextualTypeWithUnionTypeMembers.ts, 70, 31)) +>"Hello" : string methodOnlyInI2: a => a, ->methodOnlyInI2 : (a: string) => string +>methodOnlyInI2 : (a: string) => string, Symbol(methodOnlyInI2, Decl(contextualTypeWithUnionTypeMembers.ts, 71, 34)) >a => a : (a: string) => string ->a : string ->a : string +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 72, 23)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 72, 23)) propertyOnlyInI2: "Hello", ->propertyOnlyInI2 : string +>propertyOnlyInI2 : string, Symbol(propertyOnlyInI2, Decl(contextualTypeWithUnionTypeMembers.ts, 72, 31)) +>"Hello" : string }]; interface I11 { ->I11 : I11 +>I11 : I11, Symbol(I11, Decl(contextualTypeWithUnionTypeMembers.ts, 74, 7)) commonMethodDifferentReturnType(a: string, b: number): string; ->commonMethodDifferentReturnType : (a: string, b: number) => string ->a : string ->b : number +>commonMethodDifferentReturnType : (a: string, b: number) => string, Symbol(commonMethodDifferentReturnType, Decl(contextualTypeWithUnionTypeMembers.ts, 76, 15)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 77, 36)) +>b : number, Symbol(b, Decl(contextualTypeWithUnionTypeMembers.ts, 77, 46)) commonPropertyDifferentType: string; ->commonPropertyDifferentType : string +>commonPropertyDifferentType : string, Symbol(commonPropertyDifferentType, Decl(contextualTypeWithUnionTypeMembers.ts, 77, 66)) } interface I21 { ->I21 : I21 +>I21 : I21, Symbol(I21, Decl(contextualTypeWithUnionTypeMembers.ts, 79, 1)) commonMethodDifferentReturnType(a: string, b: number): number; ->commonMethodDifferentReturnType : (a: string, b: number) => number ->a : string ->b : number +>commonMethodDifferentReturnType : (a: string, b: number) => number, Symbol(commonMethodDifferentReturnType, Decl(contextualTypeWithUnionTypeMembers.ts, 80, 15)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 81, 36)) +>b : number, Symbol(b, Decl(contextualTypeWithUnionTypeMembers.ts, 81, 46)) commonPropertyDifferentType: number; ->commonPropertyDifferentType : number +>commonPropertyDifferentType : number, Symbol(commonPropertyDifferentType, Decl(contextualTypeWithUnionTypeMembers.ts, 81, 66)) } var i11: I11; ->i11 : I11 ->I11 : I11 +>i11 : I11, Symbol(i11, Decl(contextualTypeWithUnionTypeMembers.ts, 84, 3)) +>I11 : I11, Symbol(I11, Decl(contextualTypeWithUnionTypeMembers.ts, 74, 7)) var i21: I21; ->i21 : I21 ->I21 : I21 +>i21 : I21, Symbol(i21, Decl(contextualTypeWithUnionTypeMembers.ts, 85, 3)) +>I21 : I21, Symbol(I21, Decl(contextualTypeWithUnionTypeMembers.ts, 79, 1)) var i11Ori21: I11 | I21 = i11; ->i11Ori21 : I11 | I21 ->I11 : I11 ->I21 : I21 ->i11 : I11 +>i11Ori21 : I11 | I21, Symbol(i11Ori21, Decl(contextualTypeWithUnionTypeMembers.ts, 86, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 87, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 88, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 96, 3)) +>I11 : I11, Symbol(I11, Decl(contextualTypeWithUnionTypeMembers.ts, 74, 7)) +>I21 : I21, Symbol(I21, Decl(contextualTypeWithUnionTypeMembers.ts, 79, 1)) +>i11 : I11, Symbol(i11, Decl(contextualTypeWithUnionTypeMembers.ts, 84, 3)) var i11Ori21: I11 | I21 = i21; ->i11Ori21 : I11 | I21 ->I11 : I11 ->I21 : I21 ->i21 : I21 +>i11Ori21 : I11 | I21, Symbol(i11Ori21, Decl(contextualTypeWithUnionTypeMembers.ts, 86, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 87, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 88, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 96, 3)) +>I11 : I11, Symbol(I11, Decl(contextualTypeWithUnionTypeMembers.ts, 74, 7)) +>I21 : I21, Symbol(I21, Decl(contextualTypeWithUnionTypeMembers.ts, 79, 1)) +>i21 : I21, Symbol(i21, Decl(contextualTypeWithUnionTypeMembers.ts, 85, 3)) var i11Ori21: I11 | I21 = { ->i11Ori21 : I11 | I21 ->I11 : I11 ->I21 : I21 +>i11Ori21 : I11 | I21, Symbol(i11Ori21, Decl(contextualTypeWithUnionTypeMembers.ts, 86, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 87, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 88, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 96, 3)) +>I11 : I11, Symbol(I11, Decl(contextualTypeWithUnionTypeMembers.ts, 74, 7)) +>I21 : I21, Symbol(I21, Decl(contextualTypeWithUnionTypeMembers.ts, 79, 1)) >{ // Like i1 commonMethodDifferentReturnType: (a, b) => { var z = a.charAt(b); return z; }, commonPropertyDifferentType: "hello", } : { commonMethodDifferentReturnType: (a: string, b: number) => string; commonPropertyDifferentType: string; } // Like i1 commonMethodDifferentReturnType: (a, b) => { ->commonMethodDifferentReturnType : (a: string, b: number) => string +>commonMethodDifferentReturnType : (a: string, b: number) => string, Symbol(commonMethodDifferentReturnType, Decl(contextualTypeWithUnionTypeMembers.ts, 88, 27)) >(a, b) => { var z = a.charAt(b); return z; } : (a: string, b: number) => string ->a : string ->b : number +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 90, 38)) +>b : number, Symbol(b, Decl(contextualTypeWithUnionTypeMembers.ts, 90, 40)) var z = a.charAt(b); ->z : string +>z : string, Symbol(z, Decl(contextualTypeWithUnionTypeMembers.ts, 91, 11)) >a.charAt(b) : string ->a.charAt : (pos: number) => string ->a : string ->charAt : (pos: number) => string ->b : number +>a.charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 90, 38)) +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>b : number, Symbol(b, Decl(contextualTypeWithUnionTypeMembers.ts, 90, 40)) return z; ->z : string +>z : string, Symbol(z, Decl(contextualTypeWithUnionTypeMembers.ts, 91, 11)) }, commonPropertyDifferentType: "hello", ->commonPropertyDifferentType : string +>commonPropertyDifferentType : string, Symbol(commonPropertyDifferentType, Decl(contextualTypeWithUnionTypeMembers.ts, 93, 6)) +>"hello" : string }; var i11Ori21: I11 | I21 = { ->i11Ori21 : I11 | I21 ->I11 : I11 ->I21 : I21 +>i11Ori21 : I11 | I21, Symbol(i11Ori21, Decl(contextualTypeWithUnionTypeMembers.ts, 86, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 87, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 88, 3), Decl(contextualTypeWithUnionTypeMembers.ts, 96, 3)) +>I11 : I11, Symbol(I11, Decl(contextualTypeWithUnionTypeMembers.ts, 74, 7)) +>I21 : I21, Symbol(I21, Decl(contextualTypeWithUnionTypeMembers.ts, 79, 1)) >{ // Like i2 commonMethodDifferentReturnType: (a, b) => { var z = a.charCodeAt(b); return z; }, commonPropertyDifferentType: 10,} : { commonMethodDifferentReturnType: (a: string, b: number) => number; commonPropertyDifferentType: number; } // Like i2 commonMethodDifferentReturnType: (a, b) => { ->commonMethodDifferentReturnType : (a: string, b: number) => number +>commonMethodDifferentReturnType : (a: string, b: number) => number, Symbol(commonMethodDifferentReturnType, Decl(contextualTypeWithUnionTypeMembers.ts, 96, 27)) >(a, b) => { var z = a.charCodeAt(b); return z; } : (a: string, b: number) => number ->a : string ->b : number +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 98, 38)) +>b : number, Symbol(b, Decl(contextualTypeWithUnionTypeMembers.ts, 98, 40)) var z = a.charCodeAt(b); ->z : number +>z : number, Symbol(z, Decl(contextualTypeWithUnionTypeMembers.ts, 99, 11)) >a.charCodeAt(b) : number ->a.charCodeAt : (index: number) => number ->a : string ->charCodeAt : (index: number) => number ->b : number +>a.charCodeAt : (index: number) => number, Symbol(String.charCodeAt, Decl(lib.d.ts, 285, 32)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 98, 38)) +>charCodeAt : (index: number) => number, Symbol(String.charCodeAt, Decl(lib.d.ts, 285, 32)) +>b : number, Symbol(b, Decl(contextualTypeWithUnionTypeMembers.ts, 98, 40)) return z; ->z : number +>z : number, Symbol(z, Decl(contextualTypeWithUnionTypeMembers.ts, 99, 11)) }, commonPropertyDifferentType: 10, ->commonPropertyDifferentType : number +>commonPropertyDifferentType : number, Symbol(commonPropertyDifferentType, Decl(contextualTypeWithUnionTypeMembers.ts, 101, 6)) +>10 : number }; var arrayOrI11OrI21: Array = [i11, i21, i11 || i21, { ->arrayOrI11OrI21 : (I11 | I21)[] ->Array : T[] ->I11 : I11 ->I21 : I21 +>arrayOrI11OrI21 : (I11 | I21)[], Symbol(arrayOrI11OrI21, Decl(contextualTypeWithUnionTypeMembers.ts, 104, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>I11 : I11, Symbol(I11, Decl(contextualTypeWithUnionTypeMembers.ts, 74, 7)) +>I21 : I21, Symbol(I21, Decl(contextualTypeWithUnionTypeMembers.ts, 79, 1)) >[i11, i21, i11 || i21, { // Like i1 commonMethodDifferentReturnType: (a, b) => { var z = a.charAt(b); return z; }, commonPropertyDifferentType: "hello", }, { // Like i2 commonMethodDifferentReturnType: (a, b) => { var z = a.charCodeAt(b); return z; }, commonPropertyDifferentType: 10, }] : (I11 | I21)[] ->i11 : I11 ->i21 : I21 +>i11 : I11, Symbol(i11, Decl(contextualTypeWithUnionTypeMembers.ts, 84, 3)) +>i21 : I21, Symbol(i21, Decl(contextualTypeWithUnionTypeMembers.ts, 85, 3)) >i11 || i21 : I11 | I21 ->i11 : I11 ->i21 : I21 +>i11 : I11, Symbol(i11, Decl(contextualTypeWithUnionTypeMembers.ts, 84, 3)) +>i21 : I21, Symbol(i21, Decl(contextualTypeWithUnionTypeMembers.ts, 85, 3)) >{ // Like i1 commonMethodDifferentReturnType: (a, b) => { var z = a.charAt(b); return z; }, commonPropertyDifferentType: "hello", } : { commonMethodDifferentReturnType: (a: string, b: number) => string; commonPropertyDifferentType: string; } // Like i1 commonMethodDifferentReturnType: (a, b) => { ->commonMethodDifferentReturnType : (a: string, b: number) => string +>commonMethodDifferentReturnType : (a: string, b: number) => string, Symbol(commonMethodDifferentReturnType, Decl(contextualTypeWithUnionTypeMembers.ts, 104, 64)) >(a, b) => { var z = a.charAt(b); return z; } : (a: string, b: number) => string ->a : string ->b : number +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 106, 42)) +>b : number, Symbol(b, Decl(contextualTypeWithUnionTypeMembers.ts, 106, 44)) var z = a.charAt(b); ->z : string +>z : string, Symbol(z, Decl(contextualTypeWithUnionTypeMembers.ts, 107, 15)) >a.charAt(b) : string ->a.charAt : (pos: number) => string ->a : string ->charAt : (pos: number) => string ->b : number +>a.charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 106, 42)) +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>b : number, Symbol(b, Decl(contextualTypeWithUnionTypeMembers.ts, 106, 44)) return z; ->z : string +>z : string, Symbol(z, Decl(contextualTypeWithUnionTypeMembers.ts, 107, 15)) }, commonPropertyDifferentType: "hello", ->commonPropertyDifferentType : string +>commonPropertyDifferentType : string, Symbol(commonPropertyDifferentType, Decl(contextualTypeWithUnionTypeMembers.ts, 109, 10)) +>"hello" : string }, { >{ // Like i2 commonMethodDifferentReturnType: (a, b) => { var z = a.charCodeAt(b); return z; }, commonPropertyDifferentType: 10, } : { commonMethodDifferentReturnType: (a: string, b: number) => number; commonPropertyDifferentType: number; } // Like i2 commonMethodDifferentReturnType: (a, b) => { ->commonMethodDifferentReturnType : (a: string, b: number) => number +>commonMethodDifferentReturnType : (a: string, b: number) => number, Symbol(commonMethodDifferentReturnType, Decl(contextualTypeWithUnionTypeMembers.ts, 111, 8)) >(a, b) => { var z = a.charCodeAt(b); return z; } : (a: string, b: number) => number ->a : string ->b : number +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 113, 42)) +>b : number, Symbol(b, Decl(contextualTypeWithUnionTypeMembers.ts, 113, 44)) var z = a.charCodeAt(b); ->z : number +>z : number, Symbol(z, Decl(contextualTypeWithUnionTypeMembers.ts, 114, 15)) >a.charCodeAt(b) : number ->a.charCodeAt : (index: number) => number ->a : string ->charCodeAt : (index: number) => number ->b : number +>a.charCodeAt : (index: number) => number, Symbol(String.charCodeAt, Decl(lib.d.ts, 285, 32)) +>a : string, Symbol(a, Decl(contextualTypeWithUnionTypeMembers.ts, 113, 42)) +>charCodeAt : (index: number) => number, Symbol(String.charCodeAt, Decl(lib.d.ts, 285, 32)) +>b : number, Symbol(b, Decl(contextualTypeWithUnionTypeMembers.ts, 113, 44)) return z; ->z : number +>z : number, Symbol(z, Decl(contextualTypeWithUnionTypeMembers.ts, 114, 15)) }, commonPropertyDifferentType: 10, ->commonPropertyDifferentType : number +>commonPropertyDifferentType : number, Symbol(commonPropertyDifferentType, Decl(contextualTypeWithUnionTypeMembers.ts, 116, 10)) +>10 : number }]; diff --git a/tests/baselines/reference/contextualTyping1.types b/tests/baselines/reference/contextualTyping1.types index a9d2f982569..0c69af40515 100644 --- a/tests/baselines/reference/contextualTyping1.types +++ b/tests/baselines/reference/contextualTyping1.types @@ -1,7 +1,8 @@ === tests/cases/compiler/contextualTyping1.ts === var foo: {id:number;} = {id:4}; ->foo : { id: number; } ->id : number +>foo : { id: number; }, Symbol(foo, Decl(contextualTyping1.ts, 0, 3)) +>id : number, Symbol(id, Decl(contextualTyping1.ts, 0, 10)) >{id:4} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping1.ts, 0, 25)) +>4 : number diff --git a/tests/baselines/reference/contextualTyping10.types b/tests/baselines/reference/contextualTyping10.types index e3a6c2bcf4a..9feec2cef7e 100644 --- a/tests/baselines/reference/contextualTyping10.types +++ b/tests/baselines/reference/contextualTyping10.types @@ -1,11 +1,13 @@ === tests/cases/compiler/contextualTyping10.ts === class foo { public bar:{id:number;}[] = [{id:1}, {id:2}]; } ->foo : foo ->bar : { id: number; }[] ->id : number +>foo : foo, Symbol(foo, Decl(contextualTyping10.ts, 0, 0)) +>bar : { id: number; }[], Symbol(bar, Decl(contextualTyping10.ts, 0, 11)) +>id : number, Symbol(id, Decl(contextualTyping10.ts, 0, 24)) >[{id:1}, {id:2}] : { id: number; }[] >{id:1} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping10.ts, 0, 42)) +>1 : number >{id:2} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping10.ts, 0, 50)) +>2 : number diff --git a/tests/baselines/reference/contextualTyping12.types b/tests/baselines/reference/contextualTyping12.types index 31d4e990938..79b9612b80e 100644 --- a/tests/baselines/reference/contextualTyping12.types +++ b/tests/baselines/reference/contextualTyping12.types @@ -1,12 +1,15 @@ === tests/cases/compiler/contextualTyping12.ts === class foo { public bar:{id:number;}[] = [{id:1}, {id:2, name:"foo"}]; } ->foo : foo ->bar : { id: number; }[] ->id : number +>foo : foo, Symbol(foo, Decl(contextualTyping12.ts, 0, 0)) +>bar : { id: number; }[], Symbol(bar, Decl(contextualTyping12.ts, 0, 11)) +>id : number, Symbol(id, Decl(contextualTyping12.ts, 0, 24)) >[{id:1}, {id:2, name:"foo"}] : { id: number; }[] >{id:1} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping12.ts, 0, 42)) +>1 : number >{id:2, name:"foo"} : { id: number; name: string; } ->id : number ->name : string +>id : number, Symbol(id, Decl(contextualTyping12.ts, 0, 50)) +>2 : number +>name : string, Symbol(name, Decl(contextualTyping12.ts, 0, 55)) +>"foo" : string diff --git a/tests/baselines/reference/contextualTyping13.types b/tests/baselines/reference/contextualTyping13.types index 5f7753970f3..da02360d4f0 100644 --- a/tests/baselines/reference/contextualTyping13.types +++ b/tests/baselines/reference/contextualTyping13.types @@ -1,8 +1,8 @@ === tests/cases/compiler/contextualTyping13.ts === var foo:(a:number)=>number = function(a){return a}; ->foo : (a: number) => number ->a : number +>foo : (a: number) => number, Symbol(foo, Decl(contextualTyping13.ts, 0, 3)) +>a : number, Symbol(a, Decl(contextualTyping13.ts, 0, 9)) >function(a){return a} : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTyping13.ts, 0, 38)) +>a : number, Symbol(a, Decl(contextualTyping13.ts, 0, 38)) diff --git a/tests/baselines/reference/contextualTyping14.types b/tests/baselines/reference/contextualTyping14.types index 6602cc11cbc..accd6267bc4 100644 --- a/tests/baselines/reference/contextualTyping14.types +++ b/tests/baselines/reference/contextualTyping14.types @@ -1,9 +1,9 @@ === tests/cases/compiler/contextualTyping14.ts === class foo { public bar:(a:number)=>number = function(a){return a}; } ->foo : foo ->bar : (a: number) => number ->a : number +>foo : foo, Symbol(foo, Decl(contextualTyping14.ts, 0, 0)) +>bar : (a: number) => number, Symbol(bar, Decl(contextualTyping14.ts, 0, 11)) +>a : number, Symbol(a, Decl(contextualTyping14.ts, 0, 24)) >function(a){return a} : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTyping14.ts, 0, 53)) +>a : number, Symbol(a, Decl(contextualTyping14.ts, 0, 53)) diff --git a/tests/baselines/reference/contextualTyping15.types b/tests/baselines/reference/contextualTyping15.types index c039504efbe..a8b8ba4f64e 100644 --- a/tests/baselines/reference/contextualTyping15.types +++ b/tests/baselines/reference/contextualTyping15.types @@ -1,7 +1,8 @@ === tests/cases/compiler/contextualTyping15.ts === class foo { public bar: { (): number; (i: number): number; } = function() { return 1 }; } ->foo : foo ->bar : { (): number; (i: number): number; } ->i : number +>foo : foo, Symbol(foo, Decl(contextualTyping15.ts, 0, 0)) +>bar : { (): number; (i: number): number; }, Symbol(bar, Decl(contextualTyping15.ts, 0, 11)) +>i : number, Symbol(i, Decl(contextualTyping15.ts, 0, 39)) >function() { return 1 } : () => number +>1 : number diff --git a/tests/baselines/reference/contextualTyping16.types b/tests/baselines/reference/contextualTyping16.types index 9e11cd5bf3b..0f2c0adabcd 100644 --- a/tests/baselines/reference/contextualTyping16.types +++ b/tests/baselines/reference/contextualTyping16.types @@ -1,11 +1,13 @@ === tests/cases/compiler/contextualTyping16.ts === var foo: {id:number;} = {id:4}; foo = {id:5}; ->foo : { id: number; } ->id : number +>foo : { id: number; }, Symbol(foo, Decl(contextualTyping16.ts, 0, 3)) +>id : number, Symbol(id, Decl(contextualTyping16.ts, 0, 10)) >{id:4} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping16.ts, 0, 25)) +>4 : number >foo = {id:5} : { id: number; } ->foo : { id: number; } +>foo : { id: number; }, Symbol(foo, Decl(contextualTyping16.ts, 0, 3)) >{id:5} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping16.ts, 0, 39)) +>5 : number diff --git a/tests/baselines/reference/contextualTyping17.types b/tests/baselines/reference/contextualTyping17.types index 63b18af94ab..e9c02e3ca5e 100644 --- a/tests/baselines/reference/contextualTyping17.types +++ b/tests/baselines/reference/contextualTyping17.types @@ -1,12 +1,15 @@ === tests/cases/compiler/contextualTyping17.ts === var foo: {id:number;} = {id:4}; foo = {id: 5, name:"foo"}; ->foo : { id: number; } ->id : number +>foo : { id: number; }, Symbol(foo, Decl(contextualTyping17.ts, 0, 3)) +>id : number, Symbol(id, Decl(contextualTyping17.ts, 0, 10)) >{id:4} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping17.ts, 0, 25)) +>4 : number >foo = {id: 5, name:"foo"} : { id: number; name: string; } ->foo : { id: number; } +>foo : { id: number; }, Symbol(foo, Decl(contextualTyping17.ts, 0, 3)) >{id: 5, name:"foo"} : { id: number; name: string; } ->id : number ->name : string +>id : number, Symbol(id, Decl(contextualTyping17.ts, 0, 39)) +>5 : number +>name : string, Symbol(name, Decl(contextualTyping17.ts, 0, 45)) +>"foo" : string diff --git a/tests/baselines/reference/contextualTyping18.types b/tests/baselines/reference/contextualTyping18.types index 0c3cd5fd963..f5d0a0e8a4e 100644 --- a/tests/baselines/reference/contextualTyping18.types +++ b/tests/baselines/reference/contextualTyping18.types @@ -1,13 +1,14 @@ === tests/cases/compiler/contextualTyping18.ts === var foo: {id:number;} = <{id:number;}>({ }); foo = {id: 5}; ->foo : { id: number; } ->id : number +>foo : { id: number; }, Symbol(foo, Decl(contextualTyping18.ts, 0, 3)) +>id : number, Symbol(id, Decl(contextualTyping18.ts, 0, 10)) ><{id:number;}>({ }) : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping18.ts, 0, 26)) >({ }) : {} >{ } : {} >foo = {id: 5} : { id: number; } ->foo : { id: number; } +>foo : { id: number; }, Symbol(foo, Decl(contextualTyping18.ts, 0, 3)) >{id: 5} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping18.ts, 0, 52)) +>5 : number diff --git a/tests/baselines/reference/contextualTyping19.types b/tests/baselines/reference/contextualTyping19.types index 6b07986e6e6..df40d6d61c5 100644 --- a/tests/baselines/reference/contextualTyping19.types +++ b/tests/baselines/reference/contextualTyping19.types @@ -1,15 +1,18 @@ === tests/cases/compiler/contextualTyping19.ts === var foo:{id:number;}[] = [{id:1}]; foo = [{id:1}, {id:2}]; ->foo : { id: number; }[] ->id : number +>foo : { id: number; }[], Symbol(foo, Decl(contextualTyping19.ts, 0, 3)) +>id : number, Symbol(id, Decl(contextualTyping19.ts, 0, 9)) >[{id:1}] : { id: number; }[] >{id:1} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping19.ts, 0, 27)) +>1 : number >foo = [{id:1}, {id:2}] : { id: number; }[] ->foo : { id: number; }[] +>foo : { id: number; }[], Symbol(foo, Decl(contextualTyping19.ts, 0, 3)) >[{id:1}, {id:2}] : { id: number; }[] >{id:1} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping19.ts, 0, 43)) +>1 : number >{id:2} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping19.ts, 0, 51)) +>2 : number diff --git a/tests/baselines/reference/contextualTyping2.types b/tests/baselines/reference/contextualTyping2.types index 3474a284982..ba997cb1e57 100644 --- a/tests/baselines/reference/contextualTyping2.types +++ b/tests/baselines/reference/contextualTyping2.types @@ -1,8 +1,10 @@ === tests/cases/compiler/contextualTyping2.ts === var foo: {id:number;} = {id:4, name:"foo"}; ->foo : { id: number; } ->id : number +>foo : { id: number; }, Symbol(foo, Decl(contextualTyping2.ts, 0, 3)) +>id : number, Symbol(id, Decl(contextualTyping2.ts, 0, 10)) >{id:4, name:"foo"} : { id: number; name: string; } ->id : number ->name : string +>id : number, Symbol(id, Decl(contextualTyping2.ts, 0, 25)) +>4 : number +>name : string, Symbol(name, Decl(contextualTyping2.ts, 0, 30)) +>"foo" : string diff --git a/tests/baselines/reference/contextualTyping20.types b/tests/baselines/reference/contextualTyping20.types index e233e745cc6..26b56840eaf 100644 --- a/tests/baselines/reference/contextualTyping20.types +++ b/tests/baselines/reference/contextualTyping20.types @@ -1,16 +1,20 @@ === tests/cases/compiler/contextualTyping20.ts === var foo:{id:number;}[] = [{id:1}]; foo = [{id:1}, {id:2, name:"foo"}]; ->foo : { id: number; }[] ->id : number +>foo : { id: number; }[], Symbol(foo, Decl(contextualTyping20.ts, 0, 3)) +>id : number, Symbol(id, Decl(contextualTyping20.ts, 0, 9)) >[{id:1}] : { id: number; }[] >{id:1} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping20.ts, 0, 27)) +>1 : number >foo = [{id:1}, {id:2, name:"foo"}] : { id: number; }[] ->foo : { id: number; }[] +>foo : { id: number; }[], Symbol(foo, Decl(contextualTyping20.ts, 0, 3)) >[{id:1}, {id:2, name:"foo"}] : { id: number; }[] >{id:1} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping20.ts, 0, 43)) +>1 : number >{id:2, name:"foo"} : { id: number; name: string; } ->id : number ->name : string +>id : number, Symbol(id, Decl(contextualTyping20.ts, 0, 51)) +>2 : number +>name : string, Symbol(name, Decl(contextualTyping20.ts, 0, 56)) +>"foo" : string diff --git a/tests/baselines/reference/contextualTyping22.types b/tests/baselines/reference/contextualTyping22.types index 206dc668e8e..67d8baf76cc 100644 --- a/tests/baselines/reference/contextualTyping22.types +++ b/tests/baselines/reference/contextualTyping22.types @@ -1,13 +1,13 @@ === tests/cases/compiler/contextualTyping22.ts === var foo:(a:number)=>number = function(a){return a}; foo = function(b){return b}; ->foo : (a: number) => number ->a : number +>foo : (a: number) => number, Symbol(foo, Decl(contextualTyping22.ts, 0, 3)) +>a : number, Symbol(a, Decl(contextualTyping22.ts, 0, 9)) >function(a){return a} : (a: number) => number ->a : number ->a : number +>a : number, Symbol(a, Decl(contextualTyping22.ts, 0, 38)) +>a : number, Symbol(a, Decl(contextualTyping22.ts, 0, 38)) >foo = function(b){return b} : (b: number) => number ->foo : (a: number) => number +>foo : (a: number) => number, Symbol(foo, Decl(contextualTyping22.ts, 0, 3)) >function(b){return b} : (b: number) => number ->b : number ->b : number +>b : number, Symbol(b, Decl(contextualTyping22.ts, 0, 67)) +>b : number, Symbol(b, Decl(contextualTyping22.ts, 0, 67)) diff --git a/tests/baselines/reference/contextualTyping23.types b/tests/baselines/reference/contextualTyping23.types index 7e0d86920ea..c721bbd913c 100644 --- a/tests/baselines/reference/contextualTyping23.types +++ b/tests/baselines/reference/contextualTyping23.types @@ -1,10 +1,11 @@ === tests/cases/compiler/contextualTyping23.ts === var foo:(a:{():number; (i:number):number; })=>number; foo = function(a){return 5}; ->foo : (a: { (): number; (i: number): number; }) => number ->a : { (): number; (i: number): number; } ->i : number +>foo : (a: { (): number; (i: number): number; }) => number, Symbol(foo, Decl(contextualTyping23.ts, 0, 3)) +>a : { (): number; (i: number): number; }, Symbol(a, Decl(contextualTyping23.ts, 0, 9)) +>i : number, Symbol(i, Decl(contextualTyping23.ts, 0, 24)) >foo = function(a){return 5} : (a: { (): number; (i: number): number; }) => number ->foo : (a: { (): number; (i: number): number; }) => number +>foo : (a: { (): number; (i: number): number; }) => number, Symbol(foo, Decl(contextualTyping23.ts, 0, 3)) >function(a){return 5} : (a: { (): number; (i: number): number; }) => number ->a : { (): number; (i: number): number; } +>a : { (): number; (i: number): number; }, Symbol(a, Decl(contextualTyping23.ts, 0, 69)) +>5 : number diff --git a/tests/baselines/reference/contextualTyping25.types b/tests/baselines/reference/contextualTyping25.types index 3c6442739a2..b6ea8609ca1 100644 --- a/tests/baselines/reference/contextualTyping25.types +++ b/tests/baselines/reference/contextualTyping25.types @@ -1,12 +1,12 @@ === tests/cases/compiler/contextualTyping25.ts === function foo(param:{id:number;}){}; foo(<{id:number;}>({})); ->foo : (param: { id: number; }) => void ->param : { id: number; } ->id : number +>foo : (param: { id: number; }) => void, Symbol(foo, Decl(contextualTyping25.ts, 0, 0)) +>param : { id: number; }, Symbol(param, Decl(contextualTyping25.ts, 0, 13)) +>id : number, Symbol(id, Decl(contextualTyping25.ts, 0, 20)) >foo(<{id:number;}>({})) : void ->foo : (param: { id: number; }) => void +>foo : (param: { id: number; }) => void, Symbol(foo, Decl(contextualTyping25.ts, 0, 0)) ><{id:number;}>({}) : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping25.ts, 0, 42)) >({}) : {} >{} : {} diff --git a/tests/baselines/reference/contextualTyping26.types b/tests/baselines/reference/contextualTyping26.types index 65a089f6082..0f8a41f31be 100644 --- a/tests/baselines/reference/contextualTyping26.types +++ b/tests/baselines/reference/contextualTyping26.types @@ -1,12 +1,12 @@ === tests/cases/compiler/contextualTyping26.ts === function foo(param:{id:number;}){}; foo(<{id:number;}>({})); ->foo : (param: { id: number; }) => void ->param : { id: number; } ->id : number +>foo : (param: { id: number; }) => void, Symbol(foo, Decl(contextualTyping26.ts, 0, 0)) +>param : { id: number; }, Symbol(param, Decl(contextualTyping26.ts, 0, 13)) +>id : number, Symbol(id, Decl(contextualTyping26.ts, 0, 20)) >foo(<{id:number;}>({})) : void ->foo : (param: { id: number; }) => void +>foo : (param: { id: number; }) => void, Symbol(foo, Decl(contextualTyping26.ts, 0, 0)) ><{id:number;}>({}) : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping26.ts, 0, 42)) >({}) : {} >{} : {} diff --git a/tests/baselines/reference/contextualTyping27.types b/tests/baselines/reference/contextualTyping27.types index f668565e43d..9d1dd452f79 100644 --- a/tests/baselines/reference/contextualTyping27.types +++ b/tests/baselines/reference/contextualTyping27.types @@ -1,12 +1,12 @@ === tests/cases/compiler/contextualTyping27.ts === function foo(param:{id:number;}){}; foo(<{id:number;}>({})); ->foo : (param: { id: number; }) => void ->param : { id: number; } ->id : number +>foo : (param: { id: number; }) => void, Symbol(foo, Decl(contextualTyping27.ts, 0, 0)) +>param : { id: number; }, Symbol(param, Decl(contextualTyping27.ts, 0, 13)) +>id : number, Symbol(id, Decl(contextualTyping27.ts, 0, 20)) >foo(<{id:number;}>({})) : void ->foo : (param: { id: number; }) => void +>foo : (param: { id: number; }) => void, Symbol(foo, Decl(contextualTyping27.ts, 0, 0)) ><{id:number;}>({}) : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping27.ts, 0, 42)) >({}) : {} >{} : {} diff --git a/tests/baselines/reference/contextualTyping28.types b/tests/baselines/reference/contextualTyping28.types index 6019fde4a6b..02bc3b674d7 100644 --- a/tests/baselines/reference/contextualTyping28.types +++ b/tests/baselines/reference/contextualTyping28.types @@ -1,8 +1,9 @@ === tests/cases/compiler/contextualTyping28.ts === function foo(param:number[]){}; foo([1]); ->foo : (param: number[]) => void ->param : number[] +>foo : (param: number[]) => void, Symbol(foo, Decl(contextualTyping28.ts, 0, 0)) +>param : number[], Symbol(param, Decl(contextualTyping28.ts, 0, 13)) >foo([1]) : void ->foo : (param: number[]) => void +>foo : (param: number[]) => void, Symbol(foo, Decl(contextualTyping28.ts, 0, 0)) >[1] : number[] +>1 : number diff --git a/tests/baselines/reference/contextualTyping29.types b/tests/baselines/reference/contextualTyping29.types index 9666e60e959..d7d955b208e 100644 --- a/tests/baselines/reference/contextualTyping29.types +++ b/tests/baselines/reference/contextualTyping29.types @@ -1,8 +1,10 @@ === tests/cases/compiler/contextualTyping29.ts === function foo(param:number[]){}; foo([1, 3]); ->foo : (param: number[]) => void ->param : number[] +>foo : (param: number[]) => void, Symbol(foo, Decl(contextualTyping29.ts, 0, 0)) +>param : number[], Symbol(param, Decl(contextualTyping29.ts, 0, 13)) >foo([1, 3]) : void ->foo : (param: number[]) => void +>foo : (param: number[]) => void, Symbol(foo, Decl(contextualTyping29.ts, 0, 0)) >[1, 3] : number[] +>1 : number +>3 : number diff --git a/tests/baselines/reference/contextualTyping3.types b/tests/baselines/reference/contextualTyping3.types index ef00a78f5b4..ecf447e75d2 100644 --- a/tests/baselines/reference/contextualTyping3.types +++ b/tests/baselines/reference/contextualTyping3.types @@ -1,8 +1,9 @@ === tests/cases/compiler/contextualTyping3.ts === class foo { public bar:{id:number;} = {id:5}; } ->foo : foo ->bar : { id: number; } ->id : number +>foo : foo, Symbol(foo, Decl(contextualTyping3.ts, 0, 0)) +>bar : { id: number; }, Symbol(bar, Decl(contextualTyping3.ts, 0, 11)) +>id : number, Symbol(id, Decl(contextualTyping3.ts, 0, 24)) >{id:5} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping3.ts, 0, 39)) +>5 : number diff --git a/tests/baselines/reference/contextualTyping31.types b/tests/baselines/reference/contextualTyping31.types index e37bacd33f3..2116087d677 100644 --- a/tests/baselines/reference/contextualTyping31.types +++ b/tests/baselines/reference/contextualTyping31.types @@ -1,8 +1,9 @@ === tests/cases/compiler/contextualTyping31.ts === function foo(param:number[]){}; foo([1]); ->foo : (param: number[]) => void ->param : number[] +>foo : (param: number[]) => void, Symbol(foo, Decl(contextualTyping31.ts, 0, 0)) +>param : number[], Symbol(param, Decl(contextualTyping31.ts, 0, 13)) >foo([1]) : void ->foo : (param: number[]) => void +>foo : (param: number[]) => void, Symbol(foo, Decl(contextualTyping31.ts, 0, 0)) >[1] : number[] +>1 : number diff --git a/tests/baselines/reference/contextualTyping32.types b/tests/baselines/reference/contextualTyping32.types index c273be967e3..67dd18c82de 100644 --- a/tests/baselines/reference/contextualTyping32.types +++ b/tests/baselines/reference/contextualTyping32.types @@ -1,11 +1,13 @@ === tests/cases/compiler/contextualTyping32.ts === function foo(param: {():number; (i:number):number; }[]) { }; foo([function(){return 1;}, function(){return 4}]); ->foo : (param: { (): number; (i: number): number; }[]) => void ->param : { (): number; (i: number): number; }[] ->i : number +>foo : (param: { (): number; (i: number): number; }[]) => void, Symbol(foo, Decl(contextualTyping32.ts, 0, 0)) +>param : { (): number; (i: number): number; }[], Symbol(param, Decl(contextualTyping32.ts, 0, 13)) +>i : number, Symbol(i, Decl(contextualTyping32.ts, 0, 33)) >foo([function(){return 1;}, function(){return 4}]) : void ->foo : (param: { (): number; (i: number): number; }[]) => void +>foo : (param: { (): number; (i: number): number; }[]) => void, Symbol(foo, Decl(contextualTyping32.ts, 0, 0)) >[function(){return 1;}, function(){return 4}] : (() => number)[] >function(){return 1;} : () => number +>1 : number >function(){return 4} : () => number +>4 : number diff --git a/tests/baselines/reference/contextualTyping34.types b/tests/baselines/reference/contextualTyping34.types index dde11b7d4b1..448689893c6 100644 --- a/tests/baselines/reference/contextualTyping34.types +++ b/tests/baselines/reference/contextualTyping34.types @@ -1,9 +1,10 @@ === tests/cases/compiler/contextualTyping34.ts === var foo = <{ id: number;}> ({id:4}); ->foo : { id: number; } +>foo : { id: number; }, Symbol(foo, Decl(contextualTyping34.ts, 0, 3)) ><{ id: number;}> ({id:4}) : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping34.ts, 0, 12)) >({id:4}) : { id: number; } >{id:4} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping34.ts, 0, 29)) +>4 : number diff --git a/tests/baselines/reference/contextualTyping35.types b/tests/baselines/reference/contextualTyping35.types index ea07f429176..d859ad10100 100644 --- a/tests/baselines/reference/contextualTyping35.types +++ b/tests/baselines/reference/contextualTyping35.types @@ -1,9 +1,11 @@ === tests/cases/compiler/contextualTyping35.ts === var foo = <{ id: number;}> {id:4, name: "as"}; ->foo : { id: number; } +>foo : { id: number; }, Symbol(foo, Decl(contextualTyping35.ts, 0, 3)) ><{ id: number;}> {id:4, name: "as"} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping35.ts, 0, 12)) >{id:4, name: "as"} : { id: number; name: string; } ->id : number ->name : string +>id : number, Symbol(id, Decl(contextualTyping35.ts, 0, 28)) +>4 : number +>name : string, Symbol(name, Decl(contextualTyping35.ts, 0, 33)) +>"as" : string diff --git a/tests/baselines/reference/contextualTyping36.types b/tests/baselines/reference/contextualTyping36.types index 8fb3f147f0a..840f8d2cac8 100644 --- a/tests/baselines/reference/contextualTyping36.types +++ b/tests/baselines/reference/contextualTyping36.types @@ -1,13 +1,14 @@ === tests/cases/compiler/contextualTyping36.ts === var foo = <{ id: number; }[]>[{ id: 4 }, <{ id: number; }>({ })]; ->foo : { id: number; }[] +>foo : { id: number; }[], Symbol(foo, Decl(contextualTyping36.ts, 0, 3)) ><{ id: number; }[]>[{ id: 4 }, <{ id: number; }>({ })] : { id: number; }[] ->id : number +>id : number, Symbol(id, Decl(contextualTyping36.ts, 0, 12)) >[{ id: 4 }, <{ id: number; }>({ })] : { id: number; }[] >{ id: 4 } : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping36.ts, 0, 31)) +>4 : number ><{ id: number; }>({ }) : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping36.ts, 0, 43)) >({ }) : {} >{ } : {} diff --git a/tests/baselines/reference/contextualTyping37.types b/tests/baselines/reference/contextualTyping37.types index 2180e74b5a1..751e07cd42c 100644 --- a/tests/baselines/reference/contextualTyping37.types +++ b/tests/baselines/reference/contextualTyping37.types @@ -1,10 +1,11 @@ === tests/cases/compiler/contextualTyping37.ts === var foo = <{ id: number; }[]>[{ foo: "s" }, { }]; ->foo : { id: number; }[] +>foo : { id: number; }[], Symbol(foo, Decl(contextualTyping37.ts, 0, 3)) ><{ id: number; }[]>[{ foo: "s" }, { }] : { id: number; }[] ->id : number +>id : number, Symbol(id, Decl(contextualTyping37.ts, 0, 12)) >[{ foo: "s" }, { }] : {}[] >{ foo: "s" } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(contextualTyping37.ts, 0, 31)) +>"s" : string >{ } : {} diff --git a/tests/baselines/reference/contextualTyping38.types b/tests/baselines/reference/contextualTyping38.types index f838c0914f0..829ed3226ba 100644 --- a/tests/baselines/reference/contextualTyping38.types +++ b/tests/baselines/reference/contextualTyping38.types @@ -1,8 +1,8 @@ === tests/cases/compiler/contextualTyping38.ts === var foo = <{ (): number; }> function(a) { return a }; ->foo : () => number +>foo : () => number, Symbol(foo, Decl(contextualTyping38.ts, 0, 3)) ><{ (): number; }> function(a) { return a } : () => number >function(a) { return a } : (a: any) => any ->a : any ->a : any +>a : any, Symbol(a, Decl(contextualTyping38.ts, 0, 37)) +>a : any, Symbol(a, Decl(contextualTyping38.ts, 0, 37)) diff --git a/tests/baselines/reference/contextualTyping4.types b/tests/baselines/reference/contextualTyping4.types index 6af7adb86f3..a5c55287a49 100644 --- a/tests/baselines/reference/contextualTyping4.types +++ b/tests/baselines/reference/contextualTyping4.types @@ -1,9 +1,11 @@ === tests/cases/compiler/contextualTyping4.ts === class foo { public bar:{id:number;} = {id:5, name:"foo"}; } ->foo : foo ->bar : { id: number; } ->id : number +>foo : foo, Symbol(foo, Decl(contextualTyping4.ts, 0, 0)) +>bar : { id: number; }, Symbol(bar, Decl(contextualTyping4.ts, 0, 11)) +>id : number, Symbol(id, Decl(contextualTyping4.ts, 0, 24)) >{id:5, name:"foo"} : { id: number; name: string; } ->id : number ->name : string +>id : number, Symbol(id, Decl(contextualTyping4.ts, 0, 39)) +>5 : number +>name : string, Symbol(name, Decl(contextualTyping4.ts, 0, 44)) +>"foo" : string diff --git a/tests/baselines/reference/contextualTyping40.types b/tests/baselines/reference/contextualTyping40.types index f659cdc8c92..fe605c6cfc8 100644 --- a/tests/baselines/reference/contextualTyping40.types +++ b/tests/baselines/reference/contextualTyping40.types @@ -1,7 +1,8 @@ === tests/cases/compiler/contextualTyping40.ts === var foo = <{():number; (i:number):number; }> function(){return 1;}; ->foo : { (): number; (i: number): number; } +>foo : { (): number; (i: number): number; }, Symbol(foo, Decl(contextualTyping40.ts, 0, 3)) ><{():number; (i:number):number; }> function(){return 1;} : { (): number; (i: number): number; } ->i : number +>i : number, Symbol(i, Decl(contextualTyping40.ts, 0, 24)) >function(){return 1;} : () => number +>1 : number diff --git a/tests/baselines/reference/contextualTyping6.types b/tests/baselines/reference/contextualTyping6.types index ab63159924f..1ea1273708d 100644 --- a/tests/baselines/reference/contextualTyping6.types +++ b/tests/baselines/reference/contextualTyping6.types @@ -1,10 +1,12 @@ === tests/cases/compiler/contextualTyping6.ts === var foo:{id:number;}[] = [{id:1}, {id:2}]; ->foo : { id: number; }[] ->id : number +>foo : { id: number; }[], Symbol(foo, Decl(contextualTyping6.ts, 0, 3)) +>id : number, Symbol(id, Decl(contextualTyping6.ts, 0, 9)) >[{id:1}, {id:2}] : { id: number; }[] >{id:1} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping6.ts, 0, 27)) +>1 : number >{id:2} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping6.ts, 0, 35)) +>2 : number diff --git a/tests/baselines/reference/contextualTyping7.types b/tests/baselines/reference/contextualTyping7.types index 3b239417e2e..be437f2a410 100644 --- a/tests/baselines/reference/contextualTyping7.types +++ b/tests/baselines/reference/contextualTyping7.types @@ -1,10 +1,10 @@ === tests/cases/compiler/contextualTyping7.ts === var foo:{id:number;}[] = [<{id:number;}>({})]; ->foo : { id: number; }[] ->id : number +>foo : { id: number; }[], Symbol(foo, Decl(contextualTyping7.ts, 0, 3)) +>id : number, Symbol(id, Decl(contextualTyping7.ts, 0, 9)) >[<{id:number;}>({})] : { id: number; }[] ><{id:number;}>({}) : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping7.ts, 0, 28)) >({}) : {} >{} : {} diff --git a/tests/baselines/reference/contextualTyping8.types b/tests/baselines/reference/contextualTyping8.types index 17ba999524c..6d18a587e18 100644 --- a/tests/baselines/reference/contextualTyping8.types +++ b/tests/baselines/reference/contextualTyping8.types @@ -1,10 +1,10 @@ === tests/cases/compiler/contextualTyping8.ts === var foo:{id:number;}[] = [<{id:number;}>({})]; ->foo : { id: number; }[] ->id : number +>foo : { id: number; }[], Symbol(foo, Decl(contextualTyping8.ts, 0, 3)) +>id : number, Symbol(id, Decl(contextualTyping8.ts, 0, 9)) >[<{id:number;}>({})] : { id: number; }[] ><{id:number;}>({}) : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping8.ts, 0, 28)) >({}) : {} >{} : {} diff --git a/tests/baselines/reference/contextualTyping9.types b/tests/baselines/reference/contextualTyping9.types index 9d63203583d..52624699911 100644 --- a/tests/baselines/reference/contextualTyping9.types +++ b/tests/baselines/reference/contextualTyping9.types @@ -1,11 +1,14 @@ === tests/cases/compiler/contextualTyping9.ts === var foo:{id:number;}[] = [{id:1}, {id:2, name:"foo"}]; ->foo : { id: number; }[] ->id : number +>foo : { id: number; }[], Symbol(foo, Decl(contextualTyping9.ts, 0, 3)) +>id : number, Symbol(id, Decl(contextualTyping9.ts, 0, 9)) >[{id:1}, {id:2, name:"foo"}] : { id: number; }[] >{id:1} : { id: number; } ->id : number +>id : number, Symbol(id, Decl(contextualTyping9.ts, 0, 27)) +>1 : number >{id:2, name:"foo"} : { id: number; name: string; } ->id : number ->name : string +>id : number, Symbol(id, Decl(contextualTyping9.ts, 0, 35)) +>2 : number +>name : string, Symbol(name, Decl(contextualTyping9.ts, 0, 40)) +>"foo" : string diff --git a/tests/baselines/reference/contextualTypingArrayOfLambdas.types b/tests/baselines/reference/contextualTypingArrayOfLambdas.types index d3e5b9942e3..9c6b4b08517 100644 --- a/tests/baselines/reference/contextualTypingArrayOfLambdas.types +++ b/tests/baselines/reference/contextualTypingArrayOfLambdas.types @@ -1,37 +1,37 @@ === tests/cases/compiler/contextualTypingArrayOfLambdas.ts === class A { ->A : A +>A : A, Symbol(A, Decl(contextualTypingArrayOfLambdas.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(contextualTypingArrayOfLambdas.ts, 0, 9)) } class B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(contextualTypingArrayOfLambdas.ts, 2, 1)) +>A : A, Symbol(A, Decl(contextualTypingArrayOfLambdas.ts, 0, 0)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(contextualTypingArrayOfLambdas.ts, 4, 19)) } class C extends A { ->C : C ->A : A +>C : C, Symbol(C, Decl(contextualTypingArrayOfLambdas.ts, 6, 1)) +>A : A, Symbol(A, Decl(contextualTypingArrayOfLambdas.ts, 0, 0)) baz: string; ->baz : string +>baz : string, Symbol(baz, Decl(contextualTypingArrayOfLambdas.ts, 8, 19)) } var xs = [(x: A) => { }, (x: B) => { }, (x: C) => { }]; ->xs : ((x: A) => void)[] +>xs : ((x: A) => void)[], Symbol(xs, Decl(contextualTypingArrayOfLambdas.ts, 12, 3)) >[(x: A) => { }, (x: B) => { }, (x: C) => { }] : ((x: A) => void)[] >(x: A) => { } : (x: A) => void ->x : A ->A : A +>x : A, Symbol(x, Decl(contextualTypingArrayOfLambdas.ts, 12, 11)) +>A : A, Symbol(A, Decl(contextualTypingArrayOfLambdas.ts, 0, 0)) >(x: B) => { } : (x: B) => void ->x : B ->B : B +>x : B, Symbol(x, Decl(contextualTypingArrayOfLambdas.ts, 12, 26)) +>B : B, Symbol(B, Decl(contextualTypingArrayOfLambdas.ts, 2, 1)) >(x: C) => { } : (x: C) => void ->x : C ->C : C +>x : C, Symbol(x, Decl(contextualTypingArrayOfLambdas.ts, 12, 41)) +>C : C, Symbol(C, Decl(contextualTypingArrayOfLambdas.ts, 6, 1)) diff --git a/tests/baselines/reference/contextualTypingOfConditionalExpression.types b/tests/baselines/reference/contextualTypingOfConditionalExpression.types index 2cd2b671b40..897338f2886 100644 --- a/tests/baselines/reference/contextualTypingOfConditionalExpression.types +++ b/tests/baselines/reference/contextualTypingOfConditionalExpression.types @@ -1,55 +1,57 @@ === tests/cases/compiler/contextualTypingOfConditionalExpression.ts === var x: (a: number) => void = true ? (a) => a.toExponential() : (b) => b.toFixed(); ->x : (a: number) => void ->a : number +>x : (a: number) => void, Symbol(x, Decl(contextualTypingOfConditionalExpression.ts, 0, 3)) +>a : number, Symbol(a, Decl(contextualTypingOfConditionalExpression.ts, 0, 8)) >true ? (a) => a.toExponential() : (b) => b.toFixed() : (a: number) => string +>true : boolean >(a) => a.toExponential() : (a: number) => string ->a : number +>a : number, Symbol(a, Decl(contextualTypingOfConditionalExpression.ts, 0, 37)) >a.toExponential() : string ->a.toExponential : (fractionDigits?: number) => string ->a : number ->toExponential : (fractionDigits?: number) => string +>a.toExponential : (fractionDigits?: number) => string, Symbol(Number.toExponential, Decl(lib.d.ts, 469, 45)) +>a : number, Symbol(a, Decl(contextualTypingOfConditionalExpression.ts, 0, 37)) +>toExponential : (fractionDigits?: number) => string, Symbol(Number.toExponential, Decl(lib.d.ts, 469, 45)) >(b) => b.toFixed() : (b: number) => string ->b : number +>b : number, Symbol(b, Decl(contextualTypingOfConditionalExpression.ts, 0, 64)) >b.toFixed() : string ->b.toFixed : (fractionDigits?: number) => string ->b : number ->toFixed : (fractionDigits?: number) => string +>b.toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) +>b : number, Symbol(b, Decl(contextualTypingOfConditionalExpression.ts, 0, 64)) +>toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) class A { ->A : A +>A : A, Symbol(A, Decl(contextualTypingOfConditionalExpression.ts, 0, 82)) foo: number; ->foo : number +>foo : number, Symbol(foo, Decl(contextualTypingOfConditionalExpression.ts, 2, 9)) } class B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(contextualTypingOfConditionalExpression.ts, 4, 1)) +>A : A, Symbol(A, Decl(contextualTypingOfConditionalExpression.ts, 0, 82)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(contextualTypingOfConditionalExpression.ts, 5, 19)) } class C extends A { ->C : C ->A : A +>C : C, Symbol(C, Decl(contextualTypingOfConditionalExpression.ts, 7, 1)) +>A : A, Symbol(A, Decl(contextualTypingOfConditionalExpression.ts, 0, 82)) baz: number; ->baz : number +>baz : number, Symbol(baz, Decl(contextualTypingOfConditionalExpression.ts, 8, 19)) } var x2: (a: A) => void = true ? (a) => a.foo : (b) => b.foo; ->x2 : (a: A) => void ->a : A ->A : A +>x2 : (a: A) => void, Symbol(x2, Decl(contextualTypingOfConditionalExpression.ts, 12, 3)) +>a : A, Symbol(a, Decl(contextualTypingOfConditionalExpression.ts, 12, 9)) +>A : A, Symbol(A, Decl(contextualTypingOfConditionalExpression.ts, 0, 82)) >true ? (a) => a.foo : (b) => b.foo : (a: A) => number +>true : boolean >(a) => a.foo : (a: A) => number ->a : A ->a.foo : number ->a : A ->foo : number +>a : A, Symbol(a, Decl(contextualTypingOfConditionalExpression.ts, 12, 33)) +>a.foo : number, Symbol(A.foo, Decl(contextualTypingOfConditionalExpression.ts, 2, 9)) +>a : A, Symbol(a, Decl(contextualTypingOfConditionalExpression.ts, 12, 33)) +>foo : number, Symbol(A.foo, Decl(contextualTypingOfConditionalExpression.ts, 2, 9)) >(b) => b.foo : (b: A) => number ->b : A ->b.foo : number ->b : A ->foo : number +>b : A, Symbol(b, Decl(contextualTypingOfConditionalExpression.ts, 12, 48)) +>b.foo : number, Symbol(A.foo, Decl(contextualTypingOfConditionalExpression.ts, 2, 9)) +>b : A, Symbol(b, Decl(contextualTypingOfConditionalExpression.ts, 12, 48)) +>foo : number, Symbol(A.foo, Decl(contextualTypingOfConditionalExpression.ts, 2, 9)) diff --git a/tests/baselines/reference/contextualTypingOfLambdaWithMultipleSignatures.types b/tests/baselines/reference/contextualTypingOfLambdaWithMultipleSignatures.types index 485c7159b77..6aabbc4e206 100644 --- a/tests/baselines/reference/contextualTypingOfLambdaWithMultipleSignatures.types +++ b/tests/baselines/reference/contextualTypingOfLambdaWithMultipleSignatures.types @@ -1,25 +1,25 @@ === tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures.ts === interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 0, 0)) getFoo(n: number): void; ->getFoo : { (n: number): void; (s: string): void; } ->n : number +>getFoo : { (n: number): void; (s: string): void; }, Symbol(getFoo, Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 0, 15), Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 1, 28)) +>n : number, Symbol(n, Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 1, 11)) getFoo(s: string): void; ->getFoo : { (n: number): void; (s: string): void; } ->s : string +>getFoo : { (n: number): void; (s: string): void; }, Symbol(getFoo, Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 0, 15), Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 1, 28)) +>s : string, Symbol(s, Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 2, 11)) } var foo: Foo; ->foo : Foo ->Foo : Foo +>foo : Foo, Symbol(foo, Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 5, 3)) +>Foo : Foo, Symbol(Foo, Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 0, 0)) foo.getFoo = bar => { }; >foo.getFoo = bar => { } : (bar: any) => void ->foo.getFoo : { (n: number): void; (s: string): void; } ->foo : Foo ->getFoo : { (n: number): void; (s: string): void; } +>foo.getFoo : { (n: number): void; (s: string): void; }, Symbol(Foo.getFoo, Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 0, 15), Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 1, 28)) +>foo : Foo, Symbol(foo, Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 5, 3)) +>getFoo : { (n: number): void; (s: string): void; }, Symbol(Foo.getFoo, Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 0, 15), Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 1, 28)) >bar => { } : (bar: any) => void ->bar : any +>bar : any, Symbol(bar, Decl(contextualTypingOfLambdaWithMultipleSignatures.ts, 6, 12)) diff --git a/tests/baselines/reference/contextualTypingOfLambdaWithMultipleSignatures2.types b/tests/baselines/reference/contextualTypingOfLambdaWithMultipleSignatures2.types index 1b7f328b5f1..58179c6285c 100644 --- a/tests/baselines/reference/contextualTypingOfLambdaWithMultipleSignatures2.types +++ b/tests/baselines/reference/contextualTypingOfLambdaWithMultipleSignatures2.types @@ -1,21 +1,21 @@ === tests/cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts === var f: { ->f : { (x: string): string; (x: number): string; } +>f : { (x: string): string; (x: number): string; }, Symbol(f, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 0, 3)) (x: string): string; ->x : string +>x : string, Symbol(x, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 1, 5)) (x: number): string ->x : number +>x : number, Symbol(x, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 2, 5)) }; f = (a) => { return a.asdf } >f = (a) => { return a.asdf } : (a: any) => any ->f : { (x: string): string; (x: number): string; } +>f : { (x: string): string; (x: number): string; }, Symbol(f, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 0, 3)) >(a) => { return a.asdf } : (a: any) => any ->a : any +>a : any, Symbol(a, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 5, 5)) >a.asdf : any ->a : any +>a : any, Symbol(a, Decl(contextualTypingOfLambdaWithMultipleSignatures2.ts, 5, 5)) >asdf : any diff --git a/tests/baselines/reference/contextualTypingTwoInstancesOfSameTypeParameter.types b/tests/baselines/reference/contextualTypingTwoInstancesOfSameTypeParameter.types index 0e5c25a9282..dc91be824a4 100644 --- a/tests/baselines/reference/contextualTypingTwoInstancesOfSameTypeParameter.types +++ b/tests/baselines/reference/contextualTypingTwoInstancesOfSameTypeParameter.types @@ -1,24 +1,25 @@ === tests/cases/compiler/contextualTypingTwoInstancesOfSameTypeParameter.ts === function f6(x: (a: T) => T) { ->f6 : (x: (a: T) => T) => any ->T : T ->x : (a: T) => T ->a : T ->T : T ->T : T +>f6 : (x: (a: T) => T) => any, Symbol(f6, Decl(contextualTypingTwoInstancesOfSameTypeParameter.ts, 0, 0)) +>T : T, Symbol(T, Decl(contextualTypingTwoInstancesOfSameTypeParameter.ts, 0, 12)) +>x : (a: T) => T, Symbol(x, Decl(contextualTypingTwoInstancesOfSameTypeParameter.ts, 0, 15)) +>a : T, Symbol(a, Decl(contextualTypingTwoInstancesOfSameTypeParameter.ts, 0, 19)) +>T : T, Symbol(T, Decl(contextualTypingTwoInstancesOfSameTypeParameter.ts, 0, 12)) +>T : T, Symbol(T, Decl(contextualTypingTwoInstancesOfSameTypeParameter.ts, 0, 12)) return null; +>null : null } f6(x => f6(y => x = y)); >f6(x => f6(y => x = y)) : any ->f6 : (x: (a: T) => T) => any +>f6 : (x: (a: T) => T) => any, Symbol(f6, Decl(contextualTypingTwoInstancesOfSameTypeParameter.ts, 0, 0)) >x => f6(y => x = y) : (x: {}) => any ->x : {} +>x : {}, Symbol(x, Decl(contextualTypingTwoInstancesOfSameTypeParameter.ts, 3, 3)) >f6(y => x = y) : any ->f6 : (x: (a: T) => T) => any +>f6 : (x: (a: T) => T) => any, Symbol(f6, Decl(contextualTypingTwoInstancesOfSameTypeParameter.ts, 0, 0)) >y => x = y : (y: {}) => {} ->y : {} +>y : {}, Symbol(y, Decl(contextualTypingTwoInstancesOfSameTypeParameter.ts, 3, 11)) >x = y : {} ->x : {} ->y : {} +>x : {}, Symbol(x, Decl(contextualTypingTwoInstancesOfSameTypeParameter.ts, 3, 3)) +>y : {}, Symbol(y, Decl(contextualTypingTwoInstancesOfSameTypeParameter.ts, 3, 11)) diff --git a/tests/baselines/reference/contextualTypingWithGenericAndNonGenericSignature.types b/tests/baselines/reference/contextualTypingWithGenericAndNonGenericSignature.types index ca6c5b35f3d..2535bbb9992 100644 --- a/tests/baselines/reference/contextualTypingWithGenericAndNonGenericSignature.types +++ b/tests/baselines/reference/contextualTypingWithGenericAndNonGenericSignature.types @@ -2,54 +2,54 @@ //• If e is a FunctionExpression or ArrowFunctionExpression with no type parameters and no parameter or return type annotations, and T is a function type with EXACTLY ONE non - generic call signature, then any inferences made for type parameters referenced by the parameters of T’s call signature are fixed(section 4.12.2) and e is processed with the contextual type T, as described in section 4.9.3. var f2: { ->f2 : { (x: string, y: number): string; (x: T, y: U): T; } +>f2 : { (x: string, y: number): string; (x: T, y: U): T; }, Symbol(f2, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 2, 3)) (x: string, y: number): string; ->x : string ->y : number +>x : string, Symbol(x, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 3, 5)) +>y : number, Symbol(y, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 3, 15)) (x: T, y: U): T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>T : T, Symbol(T, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 4, 5)) +>U : U, Symbol(U, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 4, 7)) +>x : T, Symbol(x, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 4, 11)) +>T : T, Symbol(T, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 4, 5)) +>y : U, Symbol(y, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 4, 16)) +>U : U, Symbol(U, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 4, 7)) +>T : T, Symbol(T, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 4, 5)) }; f2 = (x, y) => { return x } >f2 = (x, y) => { return x } : (x: any, y: any) => any ->f2 : { (x: string, y: number): string; (x: T, y: U): T; } +>f2 : { (x: string, y: number): string; (x: T, y: U): T; }, Symbol(f2, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 2, 3)) >(x, y) => { return x } : (x: any, y: any) => any ->x : any ->y : any ->x : any +>x : any, Symbol(x, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 7, 6)) +>y : any, Symbol(y, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 7, 8)) +>x : any, Symbol(x, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 7, 6)) var f3: { ->f3 : { (x: T, y: U): T; (x: string, y: number): string; } +>f3 : { (x: T, y: U): T; (x: string, y: number): string; }, Symbol(f3, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 9, 3)) (x: T, y: U): T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>T : T, Symbol(T, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 10, 5)) +>U : U, Symbol(U, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 10, 7)) +>x : T, Symbol(x, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 10, 11)) +>T : T, Symbol(T, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 10, 5)) +>y : U, Symbol(y, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 10, 16)) +>U : U, Symbol(U, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 10, 7)) +>T : T, Symbol(T, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 10, 5)) (x: string, y: number): string; ->x : string ->y : number +>x : string, Symbol(x, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 11, 5)) +>y : number, Symbol(y, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 11, 15)) }; f3 = (x, y) => { return x } >f3 = (x, y) => { return x } : (x: any, y: any) => any ->f3 : { (x: T, y: U): T; (x: string, y: number): string; } +>f3 : { (x: T, y: U): T; (x: string, y: number): string; }, Symbol(f3, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 9, 3)) >(x, y) => { return x } : (x: any, y: any) => any ->x : any ->y : any ->x : any +>x : any, Symbol(x, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 14, 6)) +>y : any, Symbol(y, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 14, 8)) +>x : any, Symbol(x, Decl(contextualTypingWithGenericAndNonGenericSignature.ts, 14, 6)) diff --git a/tests/baselines/reference/contextualTypingWithGenericSignature.types b/tests/baselines/reference/contextualTypingWithGenericSignature.types index 68c5f3c422d..78e630576e5 100644 --- a/tests/baselines/reference/contextualTypingWithGenericSignature.types +++ b/tests/baselines/reference/contextualTypingWithGenericSignature.types @@ -2,24 +2,24 @@ // If e is a FunctionExpression or ArrowFunctionExpression with no type parameters and no parameter or return type annotations, and T is a function type with EXACTLY ONE non - generic call signature, then any inferences made for type parameters referenced by the parameters of T’s call signature are fixed(section 4.12.2) and e is processed with the contextual type T, as described in section 4.9.3. var f2: { ->f2 : (x: T, y: U) => T +>f2 : (x: T, y: U) => T, Symbol(f2, Decl(contextualTypingWithGenericSignature.ts, 2, 3)) (x: T, y: U): T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>T : T, Symbol(T, Decl(contextualTypingWithGenericSignature.ts, 3, 5)) +>U : U, Symbol(U, Decl(contextualTypingWithGenericSignature.ts, 3, 7)) +>x : T, Symbol(x, Decl(contextualTypingWithGenericSignature.ts, 3, 11)) +>T : T, Symbol(T, Decl(contextualTypingWithGenericSignature.ts, 3, 5)) +>y : U, Symbol(y, Decl(contextualTypingWithGenericSignature.ts, 3, 16)) +>U : U, Symbol(U, Decl(contextualTypingWithGenericSignature.ts, 3, 7)) +>T : T, Symbol(T, Decl(contextualTypingWithGenericSignature.ts, 3, 5)) }; f2 = (x, y) => { return x } >f2 = (x, y) => { return x } : (x: any, y: any) => any ->f2 : (x: T, y: U) => T +>f2 : (x: T, y: U) => T, Symbol(f2, Decl(contextualTypingWithGenericSignature.ts, 2, 3)) >(x, y) => { return x } : (x: any, y: any) => any ->x : any ->y : any ->x : any +>x : any, Symbol(x, Decl(contextualTypingWithGenericSignature.ts, 6, 6)) +>y : any, Symbol(y, Decl(contextualTypingWithGenericSignature.ts, 6, 8)) +>x : any, Symbol(x, Decl(contextualTypingWithGenericSignature.ts, 6, 6)) diff --git a/tests/baselines/reference/contextuallyTypedFunctionExpressionsAndReturnAnnotations.types b/tests/baselines/reference/contextuallyTypedFunctionExpressionsAndReturnAnnotations.types index 09c317c64a0..6b3c51ff182 100644 --- a/tests/baselines/reference/contextuallyTypedFunctionExpressionsAndReturnAnnotations.types +++ b/tests/baselines/reference/contextuallyTypedFunctionExpressionsAndReturnAnnotations.types @@ -1,45 +1,50 @@ === tests/cases/conformance/expressions/functions/contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts === declare function foo(x: (y: string) => (y2: number) => void); ->foo : (x: (y: string) => (y2: number) => void) => any ->x : (y: string) => (y2: number) => void ->y : string ->y2 : number +>foo : (x: (y: string) => (y2: number) => void) => any, Symbol(foo, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 0, 0)) +>x : (y: string) => (y2: number) => void, Symbol(x, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 0, 21)) +>y : string, Symbol(y, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 0, 25)) +>y2 : number, Symbol(y2, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 0, 40)) // Contextually type the parameter even if there is a return annotation foo((y): (y2: number) => void => { >foo((y): (y2: number) => void => { var z = y.charAt(0); // Should be string return null;}) : any ->foo : (x: (y: string) => (y2: number) => void) => any +>foo : (x: (y: string) => (y2: number) => void) => any, Symbol(foo, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 0, 0)) >(y): (y2: number) => void => { var z = y.charAt(0); // Should be string return null;} : (y: string) => (y2: number) => void ->y : string ->y2 : number +>y : string, Symbol(y, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 3, 5)) +>y2 : number, Symbol(y2, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 3, 10)) var z = y.charAt(0); // Should be string ->z : string +>z : string, Symbol(z, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 4, 7)) >y.charAt(0) : string ->y.charAt : (pos: number) => string ->y : string ->charAt : (pos: number) => string +>y.charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>y : string, Symbol(y, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 3, 5)) +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number return null; +>null : null + }); foo((y: string) => { >foo((y: string) => { return y2 => { var z = y2.toFixed(); // Should be string return 0; };}) : any ->foo : (x: (y: string) => (y2: number) => void) => any +>foo : (x: (y: string) => (y2: number) => void) => any, Symbol(foo, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 0, 0)) >(y: string) => { return y2 => { var z = y2.toFixed(); // Should be string return 0; };} : (y: string) => (y2: number) => number ->y : string +>y : string, Symbol(y, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 8, 5)) return y2 => { >y2 => { var z = y2.toFixed(); // Should be string return 0; } : (y2: number) => number ->y2 : number +>y2 : number, Symbol(y2, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 9, 10)) var z = y2.toFixed(); // Should be string ->z : string +>z : string, Symbol(z, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 10, 11)) >y2.toFixed() : string ->y2.toFixed : (fractionDigits?: number) => string ->y2 : number ->toFixed : (fractionDigits?: number) => string +>y2.toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) +>y2 : number, Symbol(y2, Decl(contextuallyTypedFunctionExpressionsAndReturnAnnotations.ts, 9, 10)) +>toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) return 0; +>0 : number + }; }); diff --git a/tests/baselines/reference/contextuallyTypingOrOperator.types b/tests/baselines/reference/contextuallyTypingOrOperator.types index 47b78f5691d..b3cc5dd4e65 100644 --- a/tests/baselines/reference/contextuallyTypingOrOperator.types +++ b/tests/baselines/reference/contextuallyTypingOrOperator.types @@ -1,54 +1,57 @@ === tests/cases/compiler/contextuallyTypingOrOperator.ts === var v: { a: (_: string) => number } = { a: s => s.length } || { a: s => 1 }; ->v : { a: (_: string) => number; } ->a : (_: string) => number ->_ : string +>v : { a: (_: string) => number; }, Symbol(v, Decl(contextuallyTypingOrOperator.ts, 0, 3)) +>a : (_: string) => number, Symbol(a, Decl(contextuallyTypingOrOperator.ts, 0, 8)) +>_ : string, Symbol(_, Decl(contextuallyTypingOrOperator.ts, 0, 13)) >{ a: s => s.length } || { a: s => 1 } : { a: (s: string) => number; } >{ a: s => s.length } : { a: (s: string) => number; } ->a : (s: string) => number +>a : (s: string) => number, Symbol(a, Decl(contextuallyTypingOrOperator.ts, 0, 39)) >s => s.length : (s: string) => number ->s : string ->s.length : number ->s : string ->length : number +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 0, 42)) +>s.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 0, 42)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) >{ a: s => 1 } : { a: (s: string) => number; } ->a : (s: string) => number +>a : (s: string) => number, Symbol(a, Decl(contextuallyTypingOrOperator.ts, 0, 63)) >s => 1 : (s: string) => number ->s : string +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 0, 66)) +>1 : number var v2 = (s: string) => s.length || function (s) { s.length }; ->v2 : (s: string) => number | ((s: any) => void) +>v2 : (s: string) => number | ((s: any) => void), Symbol(v2, Decl(contextuallyTypingOrOperator.ts, 2, 3)) >(s: string) => s.length || function (s) { s.length } : (s: string) => number | ((s: any) => void) ->s : string +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 2, 10)) >s.length || function (s) { s.length } : number | ((s: any) => void) ->s.length : number ->s : string ->length : number +>s.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 2, 10)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) >function (s) { s.length } : (s: any) => void ->s : any +>s : any, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 2, 46)) >s.length : any ->s : any +>s : any, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 2, 46)) >length : any var v3 = (s: string) => s.length || function (s: number) { return 1 }; ->v3 : (s: string) => number | ((s: number) => number) +>v3 : (s: string) => number | ((s: number) => number), Symbol(v3, Decl(contextuallyTypingOrOperator.ts, 4, 3)) >(s: string) => s.length || function (s: number) { return 1 } : (s: string) => number | ((s: number) => number) ->s : string +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 4, 10)) >s.length || function (s: number) { return 1 } : number | ((s: number) => number) ->s.length : number ->s : string ->length : number +>s.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 4, 10)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) >function (s: number) { return 1 } : (s: number) => number ->s : number +>s : number, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 4, 46)) +>1 : number var v4 = (s: number) => 1 || function (s: string) { return s.length }; ->v4 : (s: number) => number | ((s: string) => number) +>v4 : (s: number) => number | ((s: string) => number), Symbol(v4, Decl(contextuallyTypingOrOperator.ts, 5, 3)) >(s: number) => 1 || function (s: string) { return s.length } : (s: number) => number | ((s: string) => number) ->s : number +>s : number, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 5, 10)) >1 || function (s: string) { return s.length } : number | ((s: string) => number) +>1 : number >function (s: string) { return s.length } : (s: string) => number ->s : string ->s.length : number ->s : string ->length : number +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 5, 39)) +>s.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator.ts, 5, 39)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) diff --git a/tests/baselines/reference/contextuallyTypingOrOperator2.types b/tests/baselines/reference/contextuallyTypingOrOperator2.types index 65ed442d5e9..9305dff87c0 100644 --- a/tests/baselines/reference/contextuallyTypingOrOperator2.types +++ b/tests/baselines/reference/contextuallyTypingOrOperator2.types @@ -1,32 +1,33 @@ === tests/cases/compiler/contextuallyTypingOrOperator2.ts === var v: { a: (_: string) => number } = { a: s => s.length } || { a: s => 1 }; ->v : { a: (_: string) => number; } ->a : (_: string) => number ->_ : string +>v : { a: (_: string) => number; }, Symbol(v, Decl(contextuallyTypingOrOperator2.ts, 0, 3)) +>a : (_: string) => number, Symbol(a, Decl(contextuallyTypingOrOperator2.ts, 0, 8)) +>_ : string, Symbol(_, Decl(contextuallyTypingOrOperator2.ts, 0, 13)) >{ a: s => s.length } || { a: s => 1 } : { a: (s: string) => number; } >{ a: s => s.length } : { a: (s: string) => number; } ->a : (s: string) => number +>a : (s: string) => number, Symbol(a, Decl(contextuallyTypingOrOperator2.ts, 0, 39)) >s => s.length : (s: string) => number ->s : string ->s.length : number ->s : string ->length : number +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 0, 42)) +>s.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 0, 42)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) >{ a: s => 1 } : { a: (s: string) => number; } ->a : (s: string) => number +>a : (s: string) => number, Symbol(a, Decl(contextuallyTypingOrOperator2.ts, 0, 63)) >s => 1 : (s: string) => number ->s : string +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 0, 66)) +>1 : number var v2 = (s: string) => s.length || function (s) { s.aaa }; ->v2 : (s: string) => number | ((s: any) => void) +>v2 : (s: string) => number | ((s: any) => void), Symbol(v2, Decl(contextuallyTypingOrOperator2.ts, 2, 3)) >(s: string) => s.length || function (s) { s.aaa } : (s: string) => number | ((s: any) => void) ->s : string +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 2, 10)) >s.length || function (s) { s.aaa } : number | ((s: any) => void) ->s.length : number ->s : string ->length : number +>s.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>s : string, Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 2, 10)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) >function (s) { s.aaa } : (s: any) => void ->s : any +>s : any, Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 2, 46)) >s.aaa : any ->s : any +>s : any, Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 2, 46)) >aaa : any diff --git a/tests/baselines/reference/continueInIterationStatement1.types b/tests/baselines/reference/continueInIterationStatement1.types index 210de69f6bb..4fcf3794844 100644 --- a/tests/baselines/reference/continueInIterationStatement1.types +++ b/tests/baselines/reference/continueInIterationStatement1.types @@ -1,5 +1,6 @@ === tests/cases/compiler/continueInIterationStatement1.ts === while (true) { -No type information for this code. continue; -No type information for this code.} -No type information for this code. \ No newline at end of file +>true : boolean + + continue; +} diff --git a/tests/baselines/reference/continueInIterationStatement2.types b/tests/baselines/reference/continueInIterationStatement2.types index 5cb4b62f39a..4a3d50c7501 100644 --- a/tests/baselines/reference/continueInIterationStatement2.types +++ b/tests/baselines/reference/continueInIterationStatement2.types @@ -1,6 +1,7 @@ === tests/cases/compiler/continueInIterationStatement2.ts === do { -No type information for this code. continue; -No type information for this code.} -No type information for this code.while (true); -No type information for this code. \ No newline at end of file + continue; +} +while (true); +>true : boolean + diff --git a/tests/baselines/reference/continueLabel.types b/tests/baselines/reference/continueLabel.types index 79c5381f08a..7d0af8e9b06 100644 --- a/tests/baselines/reference/continueLabel.types +++ b/tests/baselines/reference/continueLabel.types @@ -1,10 +1,14 @@ === tests/cases/compiler/continueLabel.ts === label1: for(var i = 0; i < 1; i++) { ->i : number +>label1 : any +>i : number, Symbol(i, Decl(continueLabel.ts, 0, 15)) +>0 : number >i < 1 : boolean ->i : number +>i : number, Symbol(i, Decl(continueLabel.ts, 0, 15)) +>1 : number >i++ : number ->i : number +>i : number, Symbol(i, Decl(continueLabel.ts, 0, 15)) continue label1; +>label1 : any } diff --git a/tests/baselines/reference/continueTarget2.types b/tests/baselines/reference/continueTarget2.types index 16f45c402cd..1e9a2325642 100644 --- a/tests/baselines/reference/continueTarget2.types +++ b/tests/baselines/reference/continueTarget2.types @@ -1,6 +1,10 @@ === tests/cases/compiler/continueTarget2.ts === target: -No type information for this code.while (true) { -No type information for this code. continue target; -No type information for this code.} -No type information for this code. \ No newline at end of file +>target : any + +while (true) { +>true : boolean + + continue target; +>target : any +} diff --git a/tests/baselines/reference/continueTarget3.types b/tests/baselines/reference/continueTarget3.types index a1b930f2f5a..3336b47772c 100644 --- a/tests/baselines/reference/continueTarget3.types +++ b/tests/baselines/reference/continueTarget3.types @@ -1,7 +1,13 @@ === tests/cases/compiler/continueTarget3.ts === target1: -No type information for this code.target2: -No type information for this code.while (true) { -No type information for this code. continue target1; -No type information for this code.} -No type information for this code. \ No newline at end of file +>target1 : any + +target2: +>target2 : any + +while (true) { +>true : boolean + + continue target1; +>target1 : any +} diff --git a/tests/baselines/reference/continueTarget4.types b/tests/baselines/reference/continueTarget4.types index ea1989a3e4d..5d2b7c29bbe 100644 --- a/tests/baselines/reference/continueTarget4.types +++ b/tests/baselines/reference/continueTarget4.types @@ -1,7 +1,13 @@ === tests/cases/compiler/continueTarget4.ts === target1: -No type information for this code.target2: -No type information for this code.while (true) { -No type information for this code. continue target2; -No type information for this code.} -No type information for this code. \ No newline at end of file +>target1 : any + +target2: +>target2 : any + +while (true) { +>true : boolean + + continue target2; +>target2 : any +} diff --git a/tests/baselines/reference/convertKeywords.types b/tests/baselines/reference/convertKeywords.types index 776ef3c4416..827cdc4c773 100644 --- a/tests/baselines/reference/convertKeywords.types +++ b/tests/baselines/reference/convertKeywords.types @@ -1,6 +1,6 @@ === tests/cases/compiler/convertKeywords.ts === var abstract; ->abstract : any +>abstract : any, Symbol(abstract, Decl(convertKeywords.ts, 0, 3)) diff --git a/tests/baselines/reference/convertKeywordsYes.errors.txt b/tests/baselines/reference/convertKeywordsYes.errors.txt index 932fda09be8..7218e1fd12c 100644 --- a/tests/baselines/reference/convertKeywordsYes.errors.txt +++ b/tests/baselines/reference/convertKeywordsYes.errors.txt @@ -1,21 +1,15 @@ -tests/cases/compiler/convertKeywordsYes.ts(293,11): error TS1005: '{' expected. -tests/cases/compiler/convertKeywordsYes.ts(293,21): error TS1005: ';' expected. -tests/cases/compiler/convertKeywordsYes.ts(294,11): error TS1005: '{' expected. -tests/cases/compiler/convertKeywordsYes.ts(296,11): error TS1005: '{' expected. -tests/cases/compiler/convertKeywordsYes.ts(296,19): error TS1005: ';' expected. -tests/cases/compiler/convertKeywordsYes.ts(297,11): error TS1005: '{' expected. -tests/cases/compiler/convertKeywordsYes.ts(297,19): error TS1005: ';' expected. -tests/cases/compiler/convertKeywordsYes.ts(298,11): error TS1005: '{' expected. -tests/cases/compiler/convertKeywordsYes.ts(298,21): error TS1005: ';' expected. -tests/cases/compiler/convertKeywordsYes.ts(299,11): error TS1005: '{' expected. -tests/cases/compiler/convertKeywordsYes.ts(299,18): error TS1005: ';' expected. -tests/cases/compiler/convertKeywordsYes.ts(301,11): error TS1005: '{' expected. -tests/cases/compiler/convertKeywordsYes.ts(301,18): error TS1005: ';' expected. -tests/cases/compiler/convertKeywordsYes.ts(303,11): error TS1005: '{' expected. -tests/cases/compiler/convertKeywordsYes.ts(303,17): error TS1005: ';' expected. +tests/cases/compiler/convertKeywordsYes.ts(292,11): error TS1213: Identifier expected. 'implements' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/convertKeywordsYes.ts(293,11): error TS1213: Identifier expected. 'interface' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/convertKeywordsYes.ts(294,11): error TS1213: Identifier expected. 'let' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/convertKeywordsYes.ts(296,11): error TS1213: Identifier expected. 'package' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/convertKeywordsYes.ts(297,11): error TS1213: Identifier expected. 'private' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/convertKeywordsYes.ts(298,11): error TS1213: Identifier expected. 'protected' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/convertKeywordsYes.ts(299,11): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/convertKeywordsYes.ts(301,11): error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/convertKeywordsYes.ts(303,11): error TS1213: Identifier expected. 'yield' is a reserved word in strict mode. Class definitions are automatically in strict mode. -==== tests/cases/compiler/convertKeywordsYes.ts (15 errors) ==== +==== tests/cases/compiler/convertKeywordsYes.ts (9 errors) ==== // reserved ES5 future in strict mode var constructor = 0; @@ -308,46 +302,34 @@ tests/cases/compiler/convertKeywordsYes.ts(303,17): error TS1005: ';' expected. module bigModule { class constructor { } class implements { } + ~~~~~~~~~~ +!!! error TS1213: Identifier expected. 'implements' is a reserved word in strict mode. Class definitions are automatically in strict mode. class interface { } ~~~~~~~~~ -!!! error TS1005: '{' expected. - ~ -!!! error TS1005: ';' expected. +!!! error TS1213: Identifier expected. 'interface' is a reserved word in strict mode. Class definitions are automatically in strict mode. class let { } ~~~ -!!! error TS1005: '{' expected. +!!! error TS1213: Identifier expected. 'let' is a reserved word in strict mode. Class definitions are automatically in strict mode. class module { } class package { } ~~~~~~~ -!!! error TS1005: '{' expected. - ~ -!!! error TS1005: ';' expected. +!!! error TS1213: Identifier expected. 'package' is a reserved word in strict mode. Class definitions are automatically in strict mode. class private { } ~~~~~~~ -!!! error TS1005: '{' expected. - ~ -!!! error TS1005: ';' expected. +!!! error TS1213: Identifier expected. 'private' is a reserved word in strict mode. Class definitions are automatically in strict mode. class protected { } ~~~~~~~~~ -!!! error TS1005: '{' expected. - ~ -!!! error TS1005: ';' expected. +!!! error TS1213: Identifier expected. 'protected' is a reserved word in strict mode. Class definitions are automatically in strict mode. class public { } ~~~~~~ -!!! error TS1005: '{' expected. - ~ -!!! error TS1005: ';' expected. +!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. class set { } class static { } ~~~~~~ -!!! error TS1005: '{' expected. - ~ -!!! error TS1005: ';' expected. +!!! error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. class get { } class yield { } ~~~~~ -!!! error TS1005: '{' expected. - ~ -!!! error TS1005: ';' expected. +!!! error TS1213: Identifier expected. 'yield' is a reserved word in strict mode. Class definitions are automatically in strict mode. class declare { } } \ No newline at end of file diff --git a/tests/baselines/reference/convertKeywordsYes.js b/tests/baselines/reference/convertKeywordsYes.js index 2b17e744b66..a68f751f434 100644 --- a/tests/baselines/reference/convertKeywordsYes.js +++ b/tests/baselines/reference/convertKeywordsYes.js @@ -505,81 +505,66 @@ var bigModule; } return constructor; })(); - var default_1 = (function () { - function default_1() { + var implements = (function () { + function implements() { } - return default_1; + return implements; })(); - var default_2 = (function () { - function default_2() { + var interface = (function () { + function interface() { } - return default_2; + return interface; })(); - interface; - { } - var default_3 = (function () { - function default_3() { + var let = (function () { + function let() { } - return default_3; + return let; })(); - var _a = void 0; var module = (function () { function module() { } return module; })(); - var default_4 = (function () { - function default_4() { + var package = (function () { + function package() { } - return default_4; + return package; })(); - package; - { } - var default_5 = (function () { - function default_5() { + var private = (function () { + function private() { } - return default_5; + return private; })(); - private; - { } - var default_6 = (function () { - function default_6() { + var protected = (function () { + function protected() { } - return default_6; + return protected; })(); - protected; - { } - var default_7 = (function () { - function default_7() { + var public = (function () { + function public() { } - return default_7; + return public; })(); - public; - { } var set = (function () { function set() { } return set; })(); - var default_8 = (function () { - function default_8() { + var static = (function () { + function static() { } - return default_8; + return static; })(); - static; - { } var get = (function () { function get() { } return get; })(); - var default_9 = (function () { - function default_9() { + var yield = (function () { + function yield() { } - return default_9; + return yield; })(); - yield; - { } var declare = (function () { function declare() { } diff --git a/tests/baselines/reference/covariance1.types b/tests/baselines/reference/covariance1.types index d9167095d47..137e4662032 100644 --- a/tests/baselines/reference/covariance1.types +++ b/tests/baselines/reference/covariance1.types @@ -1,47 +1,47 @@ === tests/cases/compiler/covariance1.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(covariance1.ts, 0, 0)) interface X { m1:number; } ->X : X ->m1 : number +>X : X, Symbol(X, Decl(covariance1.ts, 0, 10)) +>m1 : number, Symbol(m1, Decl(covariance1.ts, 2, 17)) export class XX implements X { constructor(public m1:number) { } } ->XX : XX ->X : X ->m1 : number +>XX : XX, Symbol(XX, Decl(covariance1.ts, 2, 30)) +>X : X, Symbol(X, Decl(covariance1.ts, 0, 10)) +>m1 : number, Symbol(m1, Decl(covariance1.ts, 3, 47)) interface Y { x:X; } ->Y : Y ->x : X ->X : X +>Y : Y, Symbol(Y, Decl(covariance1.ts, 3, 70)) +>x : X, Symbol(x, Decl(covariance1.ts, 5, 17)) +>X : X, Symbol(X, Decl(covariance1.ts, 0, 10)) export function f(y:Y) { } ->f : (y: Y) => void ->y : Y ->Y : Y +>f : (y: Y) => void, Symbol(f, Decl(covariance1.ts, 5, 24)) +>y : Y, Symbol(y, Decl(covariance1.ts, 7, 22)) +>Y : Y, Symbol(Y, Decl(covariance1.ts, 3, 70)) var a:X; ->a : X ->X : X +>a : X, Symbol(a, Decl(covariance1.ts, 9, 7)) +>X : X, Symbol(X, Decl(covariance1.ts, 0, 10)) f({x:a}); // ok >f({x:a}) : void ->f : (y: Y) => void +>f : (y: Y) => void, Symbol(f, Decl(covariance1.ts, 5, 24)) >{x:a} : { x: X; } ->x : X ->a : X +>x : X, Symbol(x, Decl(covariance1.ts, 10, 7)) +>a : X, Symbol(a, Decl(covariance1.ts, 9, 7)) var b:XX; ->b : XX ->XX : XX +>b : XX, Symbol(b, Decl(covariance1.ts, 12, 7)) +>XX : XX, Symbol(XX, Decl(covariance1.ts, 2, 30)) f({x:b}); // ok covariant subtype >f({x:b}) : void ->f : (y: Y) => void +>f : (y: Y) => void, Symbol(f, Decl(covariance1.ts, 5, 24)) >{x:b} : { x: XX; } ->x : XX ->b : XX +>x : XX, Symbol(x, Decl(covariance1.ts, 13, 7)) +>b : XX, Symbol(b, Decl(covariance1.ts, 12, 7)) } diff --git a/tests/baselines/reference/crashInResolveInterface.types b/tests/baselines/reference/crashInResolveInterface.types index 539d50208d1..b2a0254bbc1 100644 --- a/tests/baselines/reference/crashInResolveInterface.types +++ b/tests/baselines/reference/crashInResolveInterface.types @@ -1,53 +1,53 @@ === tests/cases/compiler/file2.ts === /// declare var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(file2.ts, 1, 11)) +>C : C, Symbol(C, Decl(file2.ts, 1, 17), Decl(file2.ts, 4, 1)) interface C { ->C : C +>C : C, Symbol(C, Decl(file2.ts, 1, 17), Decl(file2.ts, 4, 1)) count(countTitle?: string): void; ->count : (countTitle?: string) => void ->countTitle : string +>count : (countTitle?: string) => void, Symbol(count, Decl(file2.ts, 2, 13)) +>countTitle : string, Symbol(countTitle, Decl(file2.ts, 3, 10)) } interface C { ->C : C +>C : C, Symbol(C, Decl(file2.ts, 1, 17), Decl(file2.ts, 4, 1)) log(message?: any, ...optionalParams: any[]): void; ->log : (message?: any, ...optionalParams: any[]) => void ->message : any ->optionalParams : any[] +>log : (message?: any, ...optionalParams: any[]) => void, Symbol(log, Decl(file2.ts, 5, 13)) +>message : any, Symbol(message, Decl(file2.ts, 6, 8)) +>optionalParams : any[], Symbol(optionalParams, Decl(file2.ts, 6, 22)) } === tests/cases/compiler/file1.ts === interface Q { ->Q : Q ->T : T +>Q : Q, Symbol(Q, Decl(file1.ts, 0, 0)) +>T : T, Symbol(T, Decl(file1.ts, 0, 12)) each(action: (item: T, index: number) => void): void; ->each : (action: (item: T, index: number) => void) => void ->action : (item: T, index: number) => void ->item : T ->T : T ->index : number +>each : (action: (item: T, index: number) => void) => void, Symbol(each, Decl(file1.ts, 0, 16)) +>action : (item: T, index: number) => void, Symbol(action, Decl(file1.ts, 1, 9)) +>item : T, Symbol(item, Decl(file1.ts, 1, 18)) +>T : T, Symbol(T, Decl(file1.ts, 0, 12)) +>index : number, Symbol(index, Decl(file1.ts, 1, 26)) } var q1: Q<{ a: number; }>; ->q1 : Q<{ a: number; }> ->Q : Q ->a : number +>q1 : Q<{ a: number; }>, Symbol(q1, Decl(file1.ts, 3, 3)) +>Q : Q, Symbol(Q, Decl(file1.ts, 0, 0)) +>a : number, Symbol(a, Decl(file1.ts, 3, 11)) var x = q1.each(x => c.log(x)); ->x : void +>x : void, Symbol(x, Decl(file1.ts, 4, 3)) >q1.each(x => c.log(x)) : void ->q1.each : (action: (item: { a: number; }, index: number) => void) => void ->q1 : Q<{ a: number; }> ->each : (action: (item: { a: number; }, index: number) => void) => void +>q1.each : (action: (item: { a: number; }, index: number) => void) => void, Symbol(Q.each, Decl(file1.ts, 0, 16)) +>q1 : Q<{ a: number; }>, Symbol(q1, Decl(file1.ts, 3, 3)) +>each : (action: (item: { a: number; }, index: number) => void) => void, Symbol(Q.each, Decl(file1.ts, 0, 16)) >x => c.log(x) : (x: { a: number; }) => void ->x : { a: number; } +>x : { a: number; }, Symbol(x, Decl(file1.ts, 4, 16)) >c.log(x) : void ->c.log : (message?: any, ...optionalParams: any[]) => void ->c : C ->log : (message?: any, ...optionalParams: any[]) => void ->x : { a: number; } +>c.log : (message?: any, ...optionalParams: any[]) => void, Symbol(C.log, Decl(file2.ts, 5, 13)) +>c : C, Symbol(c, Decl(file2.ts, 1, 11)) +>log : (message?: any, ...optionalParams: any[]) => void, Symbol(C.log, Decl(file2.ts, 5, 13)) +>x : { a: number; }, Symbol(x, Decl(file1.ts, 4, 16)) diff --git a/tests/baselines/reference/crashInresolveReturnStatement.types b/tests/baselines/reference/crashInresolveReturnStatement.types index 6d31f15569b..cd2ff9a2527 100644 --- a/tests/baselines/reference/crashInresolveReturnStatement.types +++ b/tests/baselines/reference/crashInresolveReturnStatement.types @@ -1,42 +1,43 @@ === tests/cases/compiler/crashInresolveReturnStatement.ts === class WorkItemToolbar { ->WorkItemToolbar : WorkItemToolbar +>WorkItemToolbar : WorkItemToolbar, Symbol(WorkItemToolbar, Decl(crashInresolveReturnStatement.ts, 0, 0)) public onToolbarItemClick() { ->onToolbarItemClick : () => void +>onToolbarItemClick : () => void, Symbol(onToolbarItemClick, Decl(crashInresolveReturnStatement.ts, 0, 23)) WITDialogs.createCopyOfWorkItem(); >WITDialogs.createCopyOfWorkItem() : void ->WITDialogs.createCopyOfWorkItem : () => void ->WITDialogs : typeof WITDialogs ->createCopyOfWorkItem : () => void +>WITDialogs.createCopyOfWorkItem : () => void, Symbol(WITDialogs.createCopyOfWorkItem, Decl(crashInresolveReturnStatement.ts, 12, 18)) +>WITDialogs : typeof WITDialogs, Symbol(WITDialogs, Decl(crashInresolveReturnStatement.ts, 11, 1)) +>createCopyOfWorkItem : () => void, Symbol(WITDialogs.createCopyOfWorkItem, Decl(crashInresolveReturnStatement.ts, 12, 18)) } } class CreateCopyOfWorkItemDialog { ->CreateCopyOfWorkItemDialog : CreateCopyOfWorkItemDialog +>CreateCopyOfWorkItemDialog : CreateCopyOfWorkItemDialog, Symbol(CreateCopyOfWorkItemDialog, Decl(crashInresolveReturnStatement.ts, 4, 1)) public getDialogResult() { ->getDialogResult : () => any +>getDialogResult : () => any, Symbol(getDialogResult, Decl(crashInresolveReturnStatement.ts, 5, 34)) return null; +>null : null } } function createWorkItemDialog(dialogType: P0) { ->createWorkItemDialog : (dialogType: P0) => void ->P0 : P0 ->dialogType : P0 ->P0 : P0 +>createWorkItemDialog : (dialogType: P0) => void, Symbol(createWorkItemDialog, Decl(crashInresolveReturnStatement.ts, 9, 1)) +>P0 : P0, Symbol(P0, Decl(crashInresolveReturnStatement.ts, 10, 30)) +>dialogType : P0, Symbol(dialogType, Decl(crashInresolveReturnStatement.ts, 10, 34)) +>P0 : P0, Symbol(P0, Decl(crashInresolveReturnStatement.ts, 10, 30)) } class WITDialogs { ->WITDialogs : WITDialogs +>WITDialogs : WITDialogs, Symbol(WITDialogs, Decl(crashInresolveReturnStatement.ts, 11, 1)) public static createCopyOfWorkItem() { ->createCopyOfWorkItem : () => void +>createCopyOfWorkItem : () => void, Symbol(WITDialogs.createCopyOfWorkItem, Decl(crashInresolveReturnStatement.ts, 12, 18)) createWorkItemDialog(CreateCopyOfWorkItemDialog); >createWorkItemDialog(CreateCopyOfWorkItemDialog) : void ->createWorkItemDialog : (dialogType: P0) => void ->CreateCopyOfWorkItemDialog : typeof CreateCopyOfWorkItemDialog +>createWorkItemDialog : (dialogType: P0) => void, Symbol(createWorkItemDialog, Decl(crashInresolveReturnStatement.ts, 9, 1)) +>CreateCopyOfWorkItemDialog : typeof CreateCopyOfWorkItemDialog, Symbol(CreateCopyOfWorkItemDialog, Decl(crashInresolveReturnStatement.ts, 4, 1)) } } diff --git a/tests/baselines/reference/cyclicModuleImport.types b/tests/baselines/reference/cyclicModuleImport.types index c581dd63c6d..b9b9c71a1f2 100644 --- a/tests/baselines/reference/cyclicModuleImport.types +++ b/tests/baselines/reference/cyclicModuleImport.types @@ -1,40 +1,40 @@ === tests/cases/compiler/cyclicModuleImport.ts === declare module "SubModule" { import MainModule = require('MainModule'); ->MainModule : typeof MainModule +>MainModule : typeof MainModule, Symbol(MainModule, Decl(cyclicModuleImport.ts, 0, 28)) class SubModule { ->SubModule : SubModule +>SubModule : SubModule, Symbol(SubModule, Decl(cyclicModuleImport.ts, 1, 46)) public static StaticVar: number; ->StaticVar : number +>StaticVar : number, Symbol(SubModule.StaticVar, Decl(cyclicModuleImport.ts, 2, 21)) public InstanceVar: number; ->InstanceVar : number +>InstanceVar : number, Symbol(InstanceVar, Decl(cyclicModuleImport.ts, 3, 40)) public main: MainModule; ->main : MainModule ->MainModule : MainModule +>main : MainModule, Symbol(main, Decl(cyclicModuleImport.ts, 4, 35)) +>MainModule : MainModule, Symbol(MainModule, Decl(cyclicModuleImport.ts, 0, 28)) constructor(); } export = SubModule; ->SubModule : SubModule +>SubModule : SubModule, Symbol(SubModule, Decl(cyclicModuleImport.ts, 1, 46)) } declare module "MainModule" { import SubModule = require('SubModule'); ->SubModule : typeof SubModule +>SubModule : typeof SubModule, Symbol(SubModule, Decl(cyclicModuleImport.ts, 10, 29)) class MainModule { ->MainModule : MainModule +>MainModule : MainModule, Symbol(MainModule, Decl(cyclicModuleImport.ts, 11, 44)) public SubModule: SubModule; ->SubModule : SubModule ->SubModule : SubModule +>SubModule : SubModule, Symbol(SubModule, Decl(cyclicModuleImport.ts, 12, 22)) +>SubModule : SubModule, Symbol(SubModule, Decl(cyclicModuleImport.ts, 10, 29)) constructor(); } export = MainModule; ->MainModule : MainModule +>MainModule : MainModule, Symbol(MainModule, Decl(cyclicModuleImport.ts, 11, 44)) } diff --git a/tests/baselines/reference/debugger.types b/tests/baselines/reference/debugger.types index 8d46931bf8f..e1c262598d3 100644 --- a/tests/baselines/reference/debugger.types +++ b/tests/baselines/reference/debugger.types @@ -2,7 +2,7 @@ debugger; function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(debugger.ts, 0, 9)) debugger; diff --git a/tests/baselines/reference/debuggerEmit.types b/tests/baselines/reference/debuggerEmit.types index dcc28e62501..eab837c90f1 100644 --- a/tests/baselines/reference/debuggerEmit.types +++ b/tests/baselines/reference/debuggerEmit.types @@ -1,9 +1,9 @@ === tests/cases/compiler/debuggerEmit.ts === var x = function () { debugger; } ->x : () => void +>x : () => void, Symbol(x, Decl(debuggerEmit.ts, 0, 3)) >function () { debugger; } : () => void x(); >x() : void ->x : () => void +>x : () => void, Symbol(x, Decl(debuggerEmit.ts, 0, 3)) diff --git a/tests/baselines/reference/declFileAccessors.types b/tests/baselines/reference/declFileAccessors.types index 2d8524a21c3..ad768bcbdbc 100644 --- a/tests/baselines/reference/declFileAccessors.types +++ b/tests/baselines/reference/declFileAccessors.types @@ -2,159 +2,173 @@ /** This is comment for c1*/ export class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(declFileAccessors_0.ts, 0, 0)) /** getter property*/ public get p3() { ->p3 : number +>p3 : number, Symbol(p3, Decl(declFileAccessors_0.ts, 2, 17), Decl(declFileAccessors_0.ts, 6, 5)) return 10; +>10 : number } /** setter property*/ public set p3(/** this is value*/value: number) { ->p3 : number ->value : number +>p3 : number, Symbol(p3, Decl(declFileAccessors_0.ts, 2, 17), Decl(declFileAccessors_0.ts, 6, 5)) +>value : number, Symbol(value, Decl(declFileAccessors_0.ts, 8, 18)) } /** private getter property*/ private get pp3() { ->pp3 : number +>pp3 : number, Symbol(pp3, Decl(declFileAccessors_0.ts, 9, 5), Decl(declFileAccessors_0.ts, 13, 5)) return 10; +>10 : number } /** private setter property*/ private set pp3(/** this is value*/value: number) { ->pp3 : number ->value : number +>pp3 : number, Symbol(pp3, Decl(declFileAccessors_0.ts, 9, 5), Decl(declFileAccessors_0.ts, 13, 5)) +>value : number, Symbol(value, Decl(declFileAccessors_0.ts, 15, 20)) } /** static getter property*/ static get s3() { ->s3 : number +>s3 : number, Symbol(c1.s3, Decl(declFileAccessors_0.ts, 16, 5), Decl(declFileAccessors_0.ts, 20, 5)) return 10; +>10 : number } /** setter property*/ static set s3( /** this is value*/value: number) { ->s3 : number ->value : number +>s3 : number, Symbol(c1.s3, Decl(declFileAccessors_0.ts, 16, 5), Decl(declFileAccessors_0.ts, 20, 5)) +>value : number, Symbol(value, Decl(declFileAccessors_0.ts, 22, 18)) } public get nc_p3() { ->nc_p3 : number +>nc_p3 : number, Symbol(nc_p3, Decl(declFileAccessors_0.ts, 23, 5), Decl(declFileAccessors_0.ts, 26, 5)) return 10; +>10 : number } public set nc_p3(value: number) { ->nc_p3 : number ->value : number +>nc_p3 : number, Symbol(nc_p3, Decl(declFileAccessors_0.ts, 23, 5), Decl(declFileAccessors_0.ts, 26, 5)) +>value : number, Symbol(value, Decl(declFileAccessors_0.ts, 27, 21)) } private get nc_pp3() { ->nc_pp3 : number +>nc_pp3 : number, Symbol(nc_pp3, Decl(declFileAccessors_0.ts, 28, 5), Decl(declFileAccessors_0.ts, 31, 5)) return 10; +>10 : number } private set nc_pp3(value: number) { ->nc_pp3 : number ->value : number +>nc_pp3 : number, Symbol(nc_pp3, Decl(declFileAccessors_0.ts, 28, 5), Decl(declFileAccessors_0.ts, 31, 5)) +>value : number, Symbol(value, Decl(declFileAccessors_0.ts, 32, 23)) } static get nc_s3() { ->nc_s3 : string +>nc_s3 : string, Symbol(c1.nc_s3, Decl(declFileAccessors_0.ts, 33, 5), Decl(declFileAccessors_0.ts, 36, 5)) return ""; +>"" : string } static set nc_s3(value: string) { ->nc_s3 : string ->value : string +>nc_s3 : string, Symbol(c1.nc_s3, Decl(declFileAccessors_0.ts, 33, 5), Decl(declFileAccessors_0.ts, 36, 5)) +>value : string, Symbol(value, Decl(declFileAccessors_0.ts, 37, 21)) } // Only getter property public get onlyGetter() { ->onlyGetter : number +>onlyGetter : number, Symbol(onlyGetter, Decl(declFileAccessors_0.ts, 38, 5)) return 10; +>10 : number } // Only setter property public set onlySetter(value: number) { ->onlySetter : number ->value : number +>onlySetter : number, Symbol(onlySetter, Decl(declFileAccessors_0.ts, 43, 5)) +>value : number, Symbol(value, Decl(declFileAccessors_0.ts, 46, 26)) } } === tests/cases/compiler/declFileAccessors_1.ts === /** This is comment for c2 - the global class*/ class c2 { ->c2 : c2 +>c2 : c2, Symbol(c2, Decl(declFileAccessors_1.ts, 0, 0)) /** getter property*/ public get p3() { ->p3 : number +>p3 : number, Symbol(p3, Decl(declFileAccessors_1.ts, 1, 10), Decl(declFileAccessors_1.ts, 5, 5)) return 10; +>10 : number } /** setter property*/ public set p3(/** this is value*/value: number) { ->p3 : number ->value : number +>p3 : number, Symbol(p3, Decl(declFileAccessors_1.ts, 1, 10), Decl(declFileAccessors_1.ts, 5, 5)) +>value : number, Symbol(value, Decl(declFileAccessors_1.ts, 7, 18)) } /** private getter property*/ private get pp3() { ->pp3 : number +>pp3 : number, Symbol(pp3, Decl(declFileAccessors_1.ts, 8, 5), Decl(declFileAccessors_1.ts, 12, 5)) return 10; +>10 : number } /** private setter property*/ private set pp3(/** this is value*/value: number) { ->pp3 : number ->value : number +>pp3 : number, Symbol(pp3, Decl(declFileAccessors_1.ts, 8, 5), Decl(declFileAccessors_1.ts, 12, 5)) +>value : number, Symbol(value, Decl(declFileAccessors_1.ts, 14, 20)) } /** static getter property*/ static get s3() { ->s3 : number +>s3 : number, Symbol(c2.s3, Decl(declFileAccessors_1.ts, 15, 5), Decl(declFileAccessors_1.ts, 19, 5)) return 10; +>10 : number } /** setter property*/ static set s3( /** this is value*/value: number) { ->s3 : number ->value : number +>s3 : number, Symbol(c2.s3, Decl(declFileAccessors_1.ts, 15, 5), Decl(declFileAccessors_1.ts, 19, 5)) +>value : number, Symbol(value, Decl(declFileAccessors_1.ts, 21, 18)) } public get nc_p3() { ->nc_p3 : number +>nc_p3 : number, Symbol(nc_p3, Decl(declFileAccessors_1.ts, 22, 5), Decl(declFileAccessors_1.ts, 25, 5)) return 10; +>10 : number } public set nc_p3(value: number) { ->nc_p3 : number ->value : number +>nc_p3 : number, Symbol(nc_p3, Decl(declFileAccessors_1.ts, 22, 5), Decl(declFileAccessors_1.ts, 25, 5)) +>value : number, Symbol(value, Decl(declFileAccessors_1.ts, 26, 21)) } private get nc_pp3() { ->nc_pp3 : number +>nc_pp3 : number, Symbol(nc_pp3, Decl(declFileAccessors_1.ts, 27, 5), Decl(declFileAccessors_1.ts, 30, 5)) return 10; +>10 : number } private set nc_pp3(value: number) { ->nc_pp3 : number ->value : number +>nc_pp3 : number, Symbol(nc_pp3, Decl(declFileAccessors_1.ts, 27, 5), Decl(declFileAccessors_1.ts, 30, 5)) +>value : number, Symbol(value, Decl(declFileAccessors_1.ts, 31, 23)) } static get nc_s3() { ->nc_s3 : string +>nc_s3 : string, Symbol(c2.nc_s3, Decl(declFileAccessors_1.ts, 32, 5), Decl(declFileAccessors_1.ts, 35, 5)) return ""; +>"" : string } static set nc_s3(value: string) { ->nc_s3 : string ->value : string +>nc_s3 : string, Symbol(c2.nc_s3, Decl(declFileAccessors_1.ts, 32, 5), Decl(declFileAccessors_1.ts, 35, 5)) +>value : string, Symbol(value, Decl(declFileAccessors_1.ts, 36, 21)) } // Only getter property public get onlyGetter() { ->onlyGetter : number +>onlyGetter : number, Symbol(onlyGetter, Decl(declFileAccessors_1.ts, 37, 5)) return 10; +>10 : number } // Only setter property public set onlySetter(value: number) { ->onlySetter : number ->value : number +>onlySetter : number, Symbol(onlySetter, Decl(declFileAccessors_1.ts, 42, 5)) +>value : number, Symbol(value, Decl(declFileAccessors_1.ts, 45, 26)) } } diff --git a/tests/baselines/reference/declFileAliasUseBeforeDeclaration.types b/tests/baselines/reference/declFileAliasUseBeforeDeclaration.types index 800df4ada49..a6785868717 100644 --- a/tests/baselines/reference/declFileAliasUseBeforeDeclaration.types +++ b/tests/baselines/reference/declFileAliasUseBeforeDeclaration.types @@ -1,15 +1,15 @@ === tests/cases/compiler/declFileAliasUseBeforeDeclaration_test.ts === export function bar(a: foo.Foo) { } ->bar : (a: foo.Foo) => void ->a : foo.Foo ->foo : unknown ->Foo : foo.Foo +>bar : (a: foo.Foo) => void, Symbol(bar, Decl(declFileAliasUseBeforeDeclaration_test.ts, 0, 0)) +>a : foo.Foo, Symbol(a, Decl(declFileAliasUseBeforeDeclaration_test.ts, 0, 20)) +>foo : any, Symbol(foo, Decl(declFileAliasUseBeforeDeclaration_test.ts, 0, 35)) +>Foo : foo.Foo, Symbol(foo.Foo, Decl(declFileAliasUseBeforeDeclaration_foo.ts, 0, 0)) import foo = require("declFileAliasUseBeforeDeclaration_foo"); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(declFileAliasUseBeforeDeclaration_test.ts, 0, 35)) === tests/cases/compiler/declFileAliasUseBeforeDeclaration_foo.ts === export class Foo { } ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(declFileAliasUseBeforeDeclaration_foo.ts, 0, 0)) diff --git a/tests/baselines/reference/declFileAliasUseBeforeDeclaration2.types b/tests/baselines/reference/declFileAliasUseBeforeDeclaration2.types index 362dd031e09..770bc66d8a1 100644 --- a/tests/baselines/reference/declFileAliasUseBeforeDeclaration2.types +++ b/tests/baselines/reference/declFileAliasUseBeforeDeclaration2.types @@ -2,18 +2,18 @@ declare module "test" { module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(declFileAliasUseBeforeDeclaration2.ts, 1, 23)) class C { ->C : C +>C : C, Symbol(C, Decl(declFileAliasUseBeforeDeclaration2.ts, 2, 14)) } } class B extends E { ->B : B ->E : E +>B : B, Symbol(B, Decl(declFileAliasUseBeforeDeclaration2.ts, 5, 5)) +>E : E, Symbol(E, Decl(declFileAliasUseBeforeDeclaration2.ts, 7, 5)) } import E = A.C; ->E : typeof E ->A : typeof A ->C : E +>E : typeof E, Symbol(E, Decl(declFileAliasUseBeforeDeclaration2.ts, 7, 5)) +>A : typeof A, Symbol(A, Decl(declFileAliasUseBeforeDeclaration2.ts, 1, 23)) +>C : E, Symbol(E, Decl(declFileAliasUseBeforeDeclaration2.ts, 2, 14)) } diff --git a/tests/baselines/reference/declFileAmbientExternalModuleWithSingleExportedModule.types b/tests/baselines/reference/declFileAmbientExternalModuleWithSingleExportedModule.types index 420f1550d7a..3083c01889c 100644 --- a/tests/baselines/reference/declFileAmbientExternalModuleWithSingleExportedModule.types +++ b/tests/baselines/reference/declFileAmbientExternalModuleWithSingleExportedModule.types @@ -1,27 +1,27 @@ === tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_1.ts === /// import SubModule = require('SubModule'); ->SubModule : typeof SubModule +>SubModule : typeof SubModule, Symbol(SubModule, Decl(declFileAmbientExternalModuleWithSingleExportedModule_1.ts, 0, 0)) export var x: SubModule.m.m3.c; ->x : SubModule.m.m3.c ->SubModule : unknown ->m : unknown ->m3 : unknown ->c : SubModule.m.m3.c +>x : SubModule.m.m3.c, Symbol(x, Decl(declFileAmbientExternalModuleWithSingleExportedModule_1.ts, 2, 10)) +>SubModule : any, Symbol(SubModule, Decl(declFileAmbientExternalModuleWithSingleExportedModule_1.ts, 0, 0)) +>m : any, Symbol(SubModule.m, Decl(declFileAmbientExternalModuleWithSingleExportedModule_0.ts, 1, 28)) +>m3 : any, Symbol(SubModule.m.m3, Decl(declFileAmbientExternalModuleWithSingleExportedModule_0.ts, 2, 21)) +>c : SubModule.m.m3.c, Symbol(SubModule.m.m3.c, Decl(declFileAmbientExternalModuleWithSingleExportedModule_0.ts, 3, 26)) === tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_0.ts === declare module "SubModule" { export module m { ->m : unknown +>m : any, Symbol(m, Decl(declFileAmbientExternalModuleWithSingleExportedModule_0.ts, 1, 28)) export module m3 { ->m3 : unknown +>m3 : any, Symbol(m3, Decl(declFileAmbientExternalModuleWithSingleExportedModule_0.ts, 2, 21)) interface c { ->c : c +>c : c, Symbol(c, Decl(declFileAmbientExternalModuleWithSingleExportedModule_0.ts, 3, 26)) } } } diff --git a/tests/baselines/reference/declFileCallSignatures.types b/tests/baselines/reference/declFileCallSignatures.types index 0fc0757aee1..ed231993e59 100644 --- a/tests/baselines/reference/declFileCallSignatures.types +++ b/tests/baselines/reference/declFileCallSignatures.types @@ -1,117 +1,117 @@ === tests/cases/compiler/declFileCallSignatures_0.ts === export interface ICallSignature { ->ICallSignature : ICallSignature +>ICallSignature : ICallSignature, Symbol(ICallSignature, Decl(declFileCallSignatures_0.ts, 0, 0)) /** This comment should appear for foo*/ (): string; } export interface ICallSignatureWithParameters { ->ICallSignatureWithParameters : ICallSignatureWithParameters +>ICallSignatureWithParameters : ICallSignatureWithParameters, Symbol(ICallSignatureWithParameters, Decl(declFileCallSignatures_0.ts, 4, 1)) /** This is comment for function signature*/ (/** this is comment about a*/a: string, ->a : string +>a : string, Symbol(a, Decl(declFileCallSignatures_0.ts, 8, 5)) /** this is comment for b*/ b: number): void; ->b : number +>b : number, Symbol(b, Decl(declFileCallSignatures_0.ts, 8, 44)) } export interface ICallSignatureWithRestParameters { ->ICallSignatureWithRestParameters : ICallSignatureWithRestParameters +>ICallSignatureWithRestParameters : ICallSignatureWithRestParameters, Symbol(ICallSignatureWithRestParameters, Decl(declFileCallSignatures_0.ts, 11, 1)) (a: string, ...rests: string[]): string; ->a : string ->rests : string[] +>a : string, Symbol(a, Decl(declFileCallSignatures_0.ts, 14, 5)) +>rests : string[], Symbol(rests, Decl(declFileCallSignatures_0.ts, 14, 15)) } export interface ICallSignatureWithOverloads { ->ICallSignatureWithOverloads : ICallSignatureWithOverloads +>ICallSignatureWithOverloads : ICallSignatureWithOverloads, Symbol(ICallSignatureWithOverloads, Decl(declFileCallSignatures_0.ts, 15, 1)) (a: string): string; ->a : string +>a : string, Symbol(a, Decl(declFileCallSignatures_0.ts, 18, 5)) (a: number): number; ->a : number +>a : number, Symbol(a, Decl(declFileCallSignatures_0.ts, 19, 5)) } export interface ICallSignatureWithTypeParameters { ->ICallSignatureWithTypeParameters : ICallSignatureWithTypeParameters ->T : T +>ICallSignatureWithTypeParameters : ICallSignatureWithTypeParameters, Symbol(ICallSignatureWithTypeParameters, Decl(declFileCallSignatures_0.ts, 20, 1)) +>T : T, Symbol(T, Decl(declFileCallSignatures_0.ts, 22, 50)) /** This comment should appear for foo*/ (a: T): string; ->a : T ->T : T +>a : T, Symbol(a, Decl(declFileCallSignatures_0.ts, 24, 5)) +>T : T, Symbol(T, Decl(declFileCallSignatures_0.ts, 22, 50)) } export interface ICallSignatureWithOwnTypeParametes { ->ICallSignatureWithOwnTypeParametes : ICallSignatureWithOwnTypeParametes +>ICallSignatureWithOwnTypeParametes : ICallSignatureWithOwnTypeParametes, Symbol(ICallSignatureWithOwnTypeParametes, Decl(declFileCallSignatures_0.ts, 25, 1)) (a: T): string; ->T : T ->ICallSignature : ICallSignature ->a : T ->T : T +>T : T, Symbol(T, Decl(declFileCallSignatures_0.ts, 28, 5)) +>ICallSignature : ICallSignature, Symbol(ICallSignature, Decl(declFileCallSignatures_0.ts, 0, 0)) +>a : T, Symbol(a, Decl(declFileCallSignatures_0.ts, 28, 31)) +>T : T, Symbol(T, Decl(declFileCallSignatures_0.ts, 28, 5)) } === tests/cases/compiler/declFileCallSignatures_1.ts === interface IGlobalCallSignature { ->IGlobalCallSignature : IGlobalCallSignature +>IGlobalCallSignature : IGlobalCallSignature, Symbol(IGlobalCallSignature, Decl(declFileCallSignatures_1.ts, 0, 0)) /** This comment should appear for foo*/ (): string; } interface IGlobalCallSignatureWithParameters { ->IGlobalCallSignatureWithParameters : IGlobalCallSignatureWithParameters +>IGlobalCallSignatureWithParameters : IGlobalCallSignatureWithParameters, Symbol(IGlobalCallSignatureWithParameters, Decl(declFileCallSignatures_1.ts, 3, 1)) /** This is comment for function signature*/ (/** this is comment about a*/a: string, ->a : string +>a : string, Symbol(a, Decl(declFileCallSignatures_1.ts, 7, 5)) /** this is comment for b*/ b: number): void; ->b : number +>b : number, Symbol(b, Decl(declFileCallSignatures_1.ts, 7, 44)) } interface IGlobalCallSignatureWithRestParameters { ->IGlobalCallSignatureWithRestParameters : IGlobalCallSignatureWithRestParameters +>IGlobalCallSignatureWithRestParameters : IGlobalCallSignatureWithRestParameters, Symbol(IGlobalCallSignatureWithRestParameters, Decl(declFileCallSignatures_1.ts, 10, 1)) (a: string, ...rests: string[]): string; ->a : string ->rests : string[] +>a : string, Symbol(a, Decl(declFileCallSignatures_1.ts, 14, 5)) +>rests : string[], Symbol(rests, Decl(declFileCallSignatures_1.ts, 14, 15)) } interface IGlobalCallSignatureWithOverloads { ->IGlobalCallSignatureWithOverloads : IGlobalCallSignatureWithOverloads +>IGlobalCallSignatureWithOverloads : IGlobalCallSignatureWithOverloads, Symbol(IGlobalCallSignatureWithOverloads, Decl(declFileCallSignatures_1.ts, 16, 1)) (a: string): string; ->a : string +>a : string, Symbol(a, Decl(declFileCallSignatures_1.ts, 19, 5)) (a: number): number; ->a : number +>a : number, Symbol(a, Decl(declFileCallSignatures_1.ts, 20, 5)) } interface IGlobalCallSignatureWithTypeParameters { ->IGlobalCallSignatureWithTypeParameters : IGlobalCallSignatureWithTypeParameters ->T : T +>IGlobalCallSignatureWithTypeParameters : IGlobalCallSignatureWithTypeParameters, Symbol(IGlobalCallSignatureWithTypeParameters, Decl(declFileCallSignatures_1.ts, 21, 1)) +>T : T, Symbol(T, Decl(declFileCallSignatures_1.ts, 23, 49)) /** This comment should appear for foo*/ (a: T): string; ->a : T ->T : T +>a : T, Symbol(a, Decl(declFileCallSignatures_1.ts, 25, 5)) +>T : T, Symbol(T, Decl(declFileCallSignatures_1.ts, 23, 49)) } interface IGlobalCallSignatureWithOwnTypeParametes { ->IGlobalCallSignatureWithOwnTypeParametes : IGlobalCallSignatureWithOwnTypeParametes +>IGlobalCallSignatureWithOwnTypeParametes : IGlobalCallSignatureWithOwnTypeParametes, Symbol(IGlobalCallSignatureWithOwnTypeParametes, Decl(declFileCallSignatures_1.ts, 26, 1)) (a: T): string; ->T : T ->IGlobalCallSignature : IGlobalCallSignature ->a : T ->T : T +>T : T, Symbol(T, Decl(declFileCallSignatures_1.ts, 29, 5)) +>IGlobalCallSignature : IGlobalCallSignature, Symbol(IGlobalCallSignature, Decl(declFileCallSignatures_1.ts, 0, 0)) +>a : T, Symbol(a, Decl(declFileCallSignatures_1.ts, 29, 37)) +>T : T, Symbol(T, Decl(declFileCallSignatures_1.ts, 29, 5)) } diff --git a/tests/baselines/reference/declFileClassWithIndexSignature.types b/tests/baselines/reference/declFileClassWithIndexSignature.types index 16aa108c3c1..b95171acfcb 100644 --- a/tests/baselines/reference/declFileClassWithIndexSignature.types +++ b/tests/baselines/reference/declFileClassWithIndexSignature.types @@ -1,8 +1,8 @@ === tests/cases/compiler/declFileClassWithIndexSignature.ts === class BlockIntrinsics { ->BlockIntrinsics : BlockIntrinsics +>BlockIntrinsics : BlockIntrinsics, Symbol(BlockIntrinsics, Decl(declFileClassWithIndexSignature.ts, 0, 0)) [s: string]: string; ->s : string +>s : string, Symbol(s, Decl(declFileClassWithIndexSignature.ts, 2, 5)) } diff --git a/tests/baselines/reference/declFileClassWithStaticMethodReturningConstructor.types b/tests/baselines/reference/declFileClassWithStaticMethodReturningConstructor.types index 0f1b21efc9e..5ef1285c5c3 100644 --- a/tests/baselines/reference/declFileClassWithStaticMethodReturningConstructor.types +++ b/tests/baselines/reference/declFileClassWithStaticMethodReturningConstructor.types @@ -1,12 +1,12 @@ === tests/cases/compiler/declFileClassWithStaticMethodReturningConstructor.ts === export class Enhancement { ->Enhancement : Enhancement +>Enhancement : Enhancement, Symbol(Enhancement, Decl(declFileClassWithStaticMethodReturningConstructor.ts, 0, 0)) public static getType() { ->getType : () => typeof Enhancement +>getType : () => typeof Enhancement, Symbol(Enhancement.getType, Decl(declFileClassWithStaticMethodReturningConstructor.ts, 1, 26)) return this; ->this : typeof Enhancement +>this : typeof Enhancement, Symbol(Enhancement, Decl(declFileClassWithStaticMethodReturningConstructor.ts, 0, 0)) } } diff --git a/tests/baselines/reference/declFileConstructSignatures.types b/tests/baselines/reference/declFileConstructSignatures.types index 6ee19bfdcf7..5904dd67185 100644 --- a/tests/baselines/reference/declFileConstructSignatures.types +++ b/tests/baselines/reference/declFileConstructSignatures.types @@ -1,121 +1,121 @@ === tests/cases/compiler/declFileConstructSignatures_0.ts === export interface IConstructSignature { ->IConstructSignature : IConstructSignature +>IConstructSignature : IConstructSignature, Symbol(IConstructSignature, Decl(declFileConstructSignatures_0.ts, 0, 0)) /** This comment should appear for foo*/ new (): string; } export interface IConstructSignatureWithParameters { ->IConstructSignatureWithParameters : IConstructSignatureWithParameters +>IConstructSignatureWithParameters : IConstructSignatureWithParameters, Symbol(IConstructSignatureWithParameters, Decl(declFileConstructSignatures_0.ts, 4, 1)) /** This is comment for function signature*/ new (/** this is comment about a*/a: string, ->a : string +>a : string, Symbol(a, Decl(declFileConstructSignatures_0.ts, 8, 9)) /** this is comment for b*/ b: number); ->b : number +>b : number, Symbol(b, Decl(declFileConstructSignatures_0.ts, 8, 48)) } export interface IConstructSignatureWithRestParameters { ->IConstructSignatureWithRestParameters : IConstructSignatureWithRestParameters +>IConstructSignatureWithRestParameters : IConstructSignatureWithRestParameters, Symbol(IConstructSignatureWithRestParameters, Decl(declFileConstructSignatures_0.ts, 11, 1)) new (a: string, ...rests: string[]): string; ->a : string ->rests : string[] +>a : string, Symbol(a, Decl(declFileConstructSignatures_0.ts, 14, 9)) +>rests : string[], Symbol(rests, Decl(declFileConstructSignatures_0.ts, 14, 19)) } export interface IConstructSignatureWithOverloads { ->IConstructSignatureWithOverloads : IConstructSignatureWithOverloads +>IConstructSignatureWithOverloads : IConstructSignatureWithOverloads, Symbol(IConstructSignatureWithOverloads, Decl(declFileConstructSignatures_0.ts, 15, 1)) new (a: string): string; ->a : string +>a : string, Symbol(a, Decl(declFileConstructSignatures_0.ts, 18, 9)) new (a: number): number; ->a : number +>a : number, Symbol(a, Decl(declFileConstructSignatures_0.ts, 19, 9)) } export interface IConstructSignatureWithTypeParameters { ->IConstructSignatureWithTypeParameters : IConstructSignatureWithTypeParameters ->T : T +>IConstructSignatureWithTypeParameters : IConstructSignatureWithTypeParameters, Symbol(IConstructSignatureWithTypeParameters, Decl(declFileConstructSignatures_0.ts, 20, 1)) +>T : T, Symbol(T, Decl(declFileConstructSignatures_0.ts, 22, 55)) /** This comment should appear for foo*/ new (a: T): T; ->a : T ->T : T ->T : T +>a : T, Symbol(a, Decl(declFileConstructSignatures_0.ts, 24, 9)) +>T : T, Symbol(T, Decl(declFileConstructSignatures_0.ts, 22, 55)) +>T : T, Symbol(T, Decl(declFileConstructSignatures_0.ts, 22, 55)) } export interface IConstructSignatureWithOwnTypeParametes { ->IConstructSignatureWithOwnTypeParametes : IConstructSignatureWithOwnTypeParametes +>IConstructSignatureWithOwnTypeParametes : IConstructSignatureWithOwnTypeParametes, Symbol(IConstructSignatureWithOwnTypeParametes, Decl(declFileConstructSignatures_0.ts, 25, 1)) new (a: T): T; ->T : T ->IConstructSignature : IConstructSignature ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(declFileConstructSignatures_0.ts, 28, 9)) +>IConstructSignature : IConstructSignature, Symbol(IConstructSignature, Decl(declFileConstructSignatures_0.ts, 0, 0)) +>a : T, Symbol(a, Decl(declFileConstructSignatures_0.ts, 28, 40)) +>T : T, Symbol(T, Decl(declFileConstructSignatures_0.ts, 28, 9)) +>T : T, Symbol(T, Decl(declFileConstructSignatures_0.ts, 28, 9)) } === tests/cases/compiler/declFileConstructSignatures_1.ts === interface IGlobalConstructSignature { ->IGlobalConstructSignature : IGlobalConstructSignature +>IGlobalConstructSignature : IGlobalConstructSignature, Symbol(IGlobalConstructSignature, Decl(declFileConstructSignatures_1.ts, 0, 0)) /** This comment should appear for foo*/ new (): string; } interface IGlobalConstructSignatureWithParameters { ->IGlobalConstructSignatureWithParameters : IGlobalConstructSignatureWithParameters +>IGlobalConstructSignatureWithParameters : IGlobalConstructSignatureWithParameters, Symbol(IGlobalConstructSignatureWithParameters, Decl(declFileConstructSignatures_1.ts, 3, 1)) /** This is comment for function signature*/ new (/** this is comment about a*/a: string, ->a : string +>a : string, Symbol(a, Decl(declFileConstructSignatures_1.ts, 7, 9)) /** this is comment for b*/ b: number); ->b : number +>b : number, Symbol(b, Decl(declFileConstructSignatures_1.ts, 7, 48)) } interface IGlobalConstructSignatureWithRestParameters { ->IGlobalConstructSignatureWithRestParameters : IGlobalConstructSignatureWithRestParameters +>IGlobalConstructSignatureWithRestParameters : IGlobalConstructSignatureWithRestParameters, Symbol(IGlobalConstructSignatureWithRestParameters, Decl(declFileConstructSignatures_1.ts, 10, 1)) new (a: string, ...rests: string[]): string; ->a : string ->rests : string[] +>a : string, Symbol(a, Decl(declFileConstructSignatures_1.ts, 14, 9)) +>rests : string[], Symbol(rests, Decl(declFileConstructSignatures_1.ts, 14, 19)) } interface IGlobalConstructSignatureWithOverloads { ->IGlobalConstructSignatureWithOverloads : IGlobalConstructSignatureWithOverloads +>IGlobalConstructSignatureWithOverloads : IGlobalConstructSignatureWithOverloads, Symbol(IGlobalConstructSignatureWithOverloads, Decl(declFileConstructSignatures_1.ts, 16, 1)) new (a: string): string; ->a : string +>a : string, Symbol(a, Decl(declFileConstructSignatures_1.ts, 19, 9)) new (a: number): number; ->a : number +>a : number, Symbol(a, Decl(declFileConstructSignatures_1.ts, 20, 9)) } interface IGlobalConstructSignatureWithTypeParameters { ->IGlobalConstructSignatureWithTypeParameters : IGlobalConstructSignatureWithTypeParameters ->T : T +>IGlobalConstructSignatureWithTypeParameters : IGlobalConstructSignatureWithTypeParameters, Symbol(IGlobalConstructSignatureWithTypeParameters, Decl(declFileConstructSignatures_1.ts, 21, 1)) +>T : T, Symbol(T, Decl(declFileConstructSignatures_1.ts, 23, 54)) /** This comment should appear for foo*/ new (a: T): T; ->a : T ->T : T ->T : T +>a : T, Symbol(a, Decl(declFileConstructSignatures_1.ts, 25, 9)) +>T : T, Symbol(T, Decl(declFileConstructSignatures_1.ts, 23, 54)) +>T : T, Symbol(T, Decl(declFileConstructSignatures_1.ts, 23, 54)) } interface IGlobalConstructSignatureWithOwnTypeParametes { ->IGlobalConstructSignatureWithOwnTypeParametes : IGlobalConstructSignatureWithOwnTypeParametes +>IGlobalConstructSignatureWithOwnTypeParametes : IGlobalConstructSignatureWithOwnTypeParametes, Symbol(IGlobalConstructSignatureWithOwnTypeParametes, Decl(declFileConstructSignatures_1.ts, 26, 1)) new (a: T): T; ->T : T ->IGlobalConstructSignature : IGlobalConstructSignature ->a : T ->T : T ->T : T +>T : T, Symbol(T, Decl(declFileConstructSignatures_1.ts, 29, 9)) +>IGlobalConstructSignature : IGlobalConstructSignature, Symbol(IGlobalConstructSignature, Decl(declFileConstructSignatures_1.ts, 0, 0)) +>a : T, Symbol(a, Decl(declFileConstructSignatures_1.ts, 29, 46)) +>T : T, Symbol(T, Decl(declFileConstructSignatures_1.ts, 29, 9)) +>T : T, Symbol(T, Decl(declFileConstructSignatures_1.ts, 29, 9)) } diff --git a/tests/baselines/reference/declFileConstructors.types b/tests/baselines/reference/declFileConstructors.types index 723830bdeea..f399f753c6a 100644 --- a/tests/baselines/reference/declFileConstructors.types +++ b/tests/baselines/reference/declFileConstructors.types @@ -1,176 +1,180 @@ === tests/cases/compiler/declFileConstructors_0.ts === export class SimpleConstructor { ->SimpleConstructor : SimpleConstructor +>SimpleConstructor : SimpleConstructor, Symbol(SimpleConstructor, Decl(declFileConstructors_0.ts, 0, 0)) /** This comment should appear for foo*/ constructor() { } } export class ConstructorWithParameters { ->ConstructorWithParameters : ConstructorWithParameters +>ConstructorWithParameters : ConstructorWithParameters, Symbol(ConstructorWithParameters, Decl(declFileConstructors_0.ts, 5, 1)) /** This is comment for function signature*/ constructor(/** this is comment about a*/a: string, ->a : string +>a : string, Symbol(a, Decl(declFileConstructors_0.ts, 8, 16)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileConstructors_0.ts, 8, 55)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileConstructors_0.ts, 11, 11)) +>a : string, Symbol(a, Decl(declFileConstructors_0.ts, 8, 16)) } } export class ConstructorWithRestParamters { ->ConstructorWithRestParamters : ConstructorWithRestParamters +>ConstructorWithRestParamters : ConstructorWithRestParamters, Symbol(ConstructorWithRestParamters, Decl(declFileConstructors_0.ts, 13, 1)) constructor(a: string, ...rests: string[]) { ->a : string ->rests : string[] +>a : string, Symbol(a, Decl(declFileConstructors_0.ts, 16, 16)) +>rests : string[], Symbol(rests, Decl(declFileConstructors_0.ts, 16, 26)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileConstructors_0.ts, 16, 16)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileConstructors_0.ts, 16, 26)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } } export class ConstructorWithOverloads { ->ConstructorWithOverloads : ConstructorWithOverloads +>ConstructorWithOverloads : ConstructorWithOverloads, Symbol(ConstructorWithOverloads, Decl(declFileConstructors_0.ts, 19, 1)) constructor(a: string); ->a : string +>a : string, Symbol(a, Decl(declFileConstructors_0.ts, 22, 16)) constructor(a: number); ->a : number +>a : number, Symbol(a, Decl(declFileConstructors_0.ts, 23, 16)) constructor(a: any) { ->a : any +>a : any, Symbol(a, Decl(declFileConstructors_0.ts, 24, 16)) } } export class ConstructorWithPublicParameterProperty { ->ConstructorWithPublicParameterProperty : ConstructorWithPublicParameterProperty +>ConstructorWithPublicParameterProperty : ConstructorWithPublicParameterProperty, Symbol(ConstructorWithPublicParameterProperty, Decl(declFileConstructors_0.ts, 26, 1)) constructor(public x: string) { ->x : string +>x : string, Symbol(x, Decl(declFileConstructors_0.ts, 29, 16)) } } export class ConstructorWithPrivateParameterProperty { ->ConstructorWithPrivateParameterProperty : ConstructorWithPrivateParameterProperty +>ConstructorWithPrivateParameterProperty : ConstructorWithPrivateParameterProperty, Symbol(ConstructorWithPrivateParameterProperty, Decl(declFileConstructors_0.ts, 31, 1)) constructor(private x: string) { ->x : string +>x : string, Symbol(x, Decl(declFileConstructors_0.ts, 34, 16)) } } export class ConstructorWithOptionalParameterProperty { ->ConstructorWithOptionalParameterProperty : ConstructorWithOptionalParameterProperty +>ConstructorWithOptionalParameterProperty : ConstructorWithOptionalParameterProperty, Symbol(ConstructorWithOptionalParameterProperty, Decl(declFileConstructors_0.ts, 36, 1)) constructor(public x?: string) { ->x : string +>x : string, Symbol(x, Decl(declFileConstructors_0.ts, 39, 16)) } } export class ConstructorWithParameterInitializer { ->ConstructorWithParameterInitializer : ConstructorWithParameterInitializer +>ConstructorWithParameterInitializer : ConstructorWithParameterInitializer, Symbol(ConstructorWithParameterInitializer, Decl(declFileConstructors_0.ts, 41, 1)) constructor(public x = "hello") { ->x : string +>x : string, Symbol(x, Decl(declFileConstructors_0.ts, 44, 16)) +>"hello" : string } } === tests/cases/compiler/declFileConstructors_1.ts === class GlobalSimpleConstructor { ->GlobalSimpleConstructor : GlobalSimpleConstructor +>GlobalSimpleConstructor : GlobalSimpleConstructor, Symbol(GlobalSimpleConstructor, Decl(declFileConstructors_1.ts, 0, 0)) /** This comment should appear for foo*/ constructor() { } } class GlobalConstructorWithParameters { ->GlobalConstructorWithParameters : GlobalConstructorWithParameters +>GlobalConstructorWithParameters : GlobalConstructorWithParameters, Symbol(GlobalConstructorWithParameters, Decl(declFileConstructors_1.ts, 4, 1)) /** This is comment for function signature*/ constructor(/** this is comment about a*/a: string, ->a : string +>a : string, Symbol(a, Decl(declFileConstructors_1.ts, 7, 16)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileConstructors_1.ts, 7, 55)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileConstructors_1.ts, 10, 11)) +>a : string, Symbol(a, Decl(declFileConstructors_1.ts, 7, 16)) } } class GlobalConstructorWithRestParamters { ->GlobalConstructorWithRestParamters : GlobalConstructorWithRestParamters +>GlobalConstructorWithRestParamters : GlobalConstructorWithRestParamters, Symbol(GlobalConstructorWithRestParamters, Decl(declFileConstructors_1.ts, 12, 1)) constructor(a: string, ...rests: string[]) { ->a : string ->rests : string[] +>a : string, Symbol(a, Decl(declFileConstructors_1.ts, 15, 16)) +>rests : string[], Symbol(rests, Decl(declFileConstructors_1.ts, 15, 26)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileConstructors_1.ts, 15, 16)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileConstructors_1.ts, 15, 26)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } } class GlobalConstructorWithOverloads { ->GlobalConstructorWithOverloads : GlobalConstructorWithOverloads +>GlobalConstructorWithOverloads : GlobalConstructorWithOverloads, Symbol(GlobalConstructorWithOverloads, Decl(declFileConstructors_1.ts, 18, 1)) constructor(a: string); ->a : string +>a : string, Symbol(a, Decl(declFileConstructors_1.ts, 21, 16)) constructor(a: number); ->a : number +>a : number, Symbol(a, Decl(declFileConstructors_1.ts, 22, 16)) constructor(a: any) { ->a : any +>a : any, Symbol(a, Decl(declFileConstructors_1.ts, 23, 16)) } } class GlobalConstructorWithPublicParameterProperty { ->GlobalConstructorWithPublicParameterProperty : GlobalConstructorWithPublicParameterProperty +>GlobalConstructorWithPublicParameterProperty : GlobalConstructorWithPublicParameterProperty, Symbol(GlobalConstructorWithPublicParameterProperty, Decl(declFileConstructors_1.ts, 25, 1)) constructor(public x: string) { ->x : string +>x : string, Symbol(x, Decl(declFileConstructors_1.ts, 28, 16)) } } class GlobalConstructorWithPrivateParameterProperty { ->GlobalConstructorWithPrivateParameterProperty : GlobalConstructorWithPrivateParameterProperty +>GlobalConstructorWithPrivateParameterProperty : GlobalConstructorWithPrivateParameterProperty, Symbol(GlobalConstructorWithPrivateParameterProperty, Decl(declFileConstructors_1.ts, 30, 1)) constructor(private x: string) { ->x : string +>x : string, Symbol(x, Decl(declFileConstructors_1.ts, 33, 16)) } } class GlobalConstructorWithOptionalParameterProperty { ->GlobalConstructorWithOptionalParameterProperty : GlobalConstructorWithOptionalParameterProperty +>GlobalConstructorWithOptionalParameterProperty : GlobalConstructorWithOptionalParameterProperty, Symbol(GlobalConstructorWithOptionalParameterProperty, Decl(declFileConstructors_1.ts, 35, 1)) constructor(public x?: string) { ->x : string +>x : string, Symbol(x, Decl(declFileConstructors_1.ts, 38, 16)) } } class GlobalConstructorWithParameterInitializer { ->GlobalConstructorWithParameterInitializer : GlobalConstructorWithParameterInitializer +>GlobalConstructorWithParameterInitializer : GlobalConstructorWithParameterInitializer, Symbol(GlobalConstructorWithParameterInitializer, Decl(declFileConstructors_1.ts, 40, 1)) constructor(public x = "hello") { ->x : string +>x : string, Symbol(x, Decl(declFileConstructors_1.ts, 43, 16)) +>"hello" : string } } diff --git a/tests/baselines/reference/declFileEnumUsedAsValue.types b/tests/baselines/reference/declFileEnumUsedAsValue.types index 19aa3de4331..d776941db77 100644 --- a/tests/baselines/reference/declFileEnumUsedAsValue.types +++ b/tests/baselines/reference/declFileEnumUsedAsValue.types @@ -1,18 +1,18 @@ === tests/cases/compiler/declFileEnumUsedAsValue.ts === enum e { ->e : e +>e : e, Symbol(e, Decl(declFileEnumUsedAsValue.ts, 0, 0)) a, ->a : e +>a : e, Symbol(e.a, Decl(declFileEnumUsedAsValue.ts, 1, 8)) b, ->b : e +>b : e, Symbol(e.b, Decl(declFileEnumUsedAsValue.ts, 2, 6)) c ->c : e +>c : e, Symbol(e.c, Decl(declFileEnumUsedAsValue.ts, 3, 6)) } var x = e; ->x : typeof e ->e : typeof e +>x : typeof e, Symbol(x, Decl(declFileEnumUsedAsValue.ts, 6, 3)) +>e : typeof e, Symbol(e, Decl(declFileEnumUsedAsValue.ts, 0, 0)) diff --git a/tests/baselines/reference/declFileEnums.types b/tests/baselines/reference/declFileEnums.types index d4d7230e930..7a97a7c3121 100644 --- a/tests/baselines/reference/declFileEnums.types +++ b/tests/baselines/reference/declFileEnums.types @@ -1,72 +1,78 @@ === tests/cases/compiler/declFileEnums.ts === enum e1 { ->e1 : e1 +>e1 : e1, Symbol(e1, Decl(declFileEnums.ts, 0, 0)) a, ->a : e1 +>a : e1, Symbol(e1.a, Decl(declFileEnums.ts, 1, 9)) b, ->b : e1 +>b : e1, Symbol(e1.b, Decl(declFileEnums.ts, 2, 6)) c ->c : e1 +>c : e1, Symbol(e1.c, Decl(declFileEnums.ts, 3, 6)) } enum e2 { ->e2 : e2 +>e2 : e2, Symbol(e2, Decl(declFileEnums.ts, 5, 1)) a = 10, ->a : e2 +>a : e2, Symbol(e2.a, Decl(declFileEnums.ts, 7, 9)) +>10 : number b = a + 2, ->b : e2 +>b : e2, Symbol(e2.b, Decl(declFileEnums.ts, 8, 11)) >a + 2 : number ->a : e2 +>a : e2, Symbol(e2.a, Decl(declFileEnums.ts, 7, 9)) +>2 : number c = 10, ->c : e2 +>c : e2, Symbol(e2.c, Decl(declFileEnums.ts, 9, 14)) +>10 : number } enum e3 { ->e3 : e3 +>e3 : e3, Symbol(e3, Decl(declFileEnums.ts, 11, 1)) a = 10, ->a : e3 +>a : e3, Symbol(e3.a, Decl(declFileEnums.ts, 13, 9)) +>10 : number b = Math.PI, ->b : e3 ->Math.PI : number ->Math : Math ->PI : number +>b : e3, Symbol(e3.b, Decl(declFileEnums.ts, 14, 11)) +>Math.PI : number, Symbol(Math.PI, Decl(lib.d.ts, 534, 19)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>PI : number, Symbol(Math.PI, Decl(lib.d.ts, 534, 19)) c = a + 3 ->c : e3 +>c : e3, Symbol(e3.c, Decl(declFileEnums.ts, 15, 16)) >a + 3 : number ->a : e3 +>a : e3, Symbol(e3.a, Decl(declFileEnums.ts, 13, 9)) +>3 : number } enum e4 { ->e4 : e4 +>e4 : e4, Symbol(e4, Decl(declFileEnums.ts, 17, 1)) a, ->a : e4 +>a : e4, Symbol(e4.a, Decl(declFileEnums.ts, 19, 9)) b, ->b : e4 +>b : e4, Symbol(e4.b, Decl(declFileEnums.ts, 20, 6)) c, ->c : e4 +>c : e4, Symbol(e4.c, Decl(declFileEnums.ts, 21, 6)) d = 10, ->d : e4 +>d : e4, Symbol(e4.d, Decl(declFileEnums.ts, 22, 6)) +>10 : number e ->e : e4 +>e : e4, Symbol(e4.e, Decl(declFileEnums.ts, 23, 11)) } enum e5 { ->e5 : e5 +>e5 : e5, Symbol(e5, Decl(declFileEnums.ts, 25, 1)) "Friday", "Saturday", diff --git a/tests/baselines/reference/declFileExportAssignmentImportInternalModule.types b/tests/baselines/reference/declFileExportAssignmentImportInternalModule.types index e0bf172e584..8d32570d206 100644 --- a/tests/baselines/reference/declFileExportAssignmentImportInternalModule.types +++ b/tests/baselines/reference/declFileExportAssignmentImportInternalModule.types @@ -1,58 +1,58 @@ === tests/cases/compiler/declFileExportAssignmentImportInternalModule.ts === module m3 { ->m3 : typeof m3 +>m3 : typeof m3, Symbol(m3, Decl(declFileExportAssignmentImportInternalModule.ts, 0, 0)) export module m2 { ->m2 : unknown +>m2 : any, Symbol(m2, Decl(declFileExportAssignmentImportInternalModule.ts, 0, 11)) export interface connectModule { ->connectModule : connectModule +>connectModule : connectModule, Symbol(connectModule, Decl(declFileExportAssignmentImportInternalModule.ts, 1, 22)) (res, req, next): void; ->res : any ->req : any ->next : any +>res : any, Symbol(res, Decl(declFileExportAssignmentImportInternalModule.ts, 3, 13)) +>req : any, Symbol(req, Decl(declFileExportAssignmentImportInternalModule.ts, 3, 17)) +>next : any, Symbol(next, Decl(declFileExportAssignmentImportInternalModule.ts, 3, 22)) } export interface connectExport { ->connectExport : connectExport +>connectExport : connectExport, Symbol(connectExport, Decl(declFileExportAssignmentImportInternalModule.ts, 4, 9)) use: (mod: connectModule) => connectExport; ->use : (mod: connectModule) => connectExport ->mod : connectModule ->connectModule : connectModule ->connectExport : connectExport +>use : (mod: connectModule) => connectExport, Symbol(use, Decl(declFileExportAssignmentImportInternalModule.ts, 5, 40)) +>mod : connectModule, Symbol(mod, Decl(declFileExportAssignmentImportInternalModule.ts, 6, 18)) +>connectModule : connectModule, Symbol(connectModule, Decl(declFileExportAssignmentImportInternalModule.ts, 1, 22)) +>connectExport : connectExport, Symbol(connectExport, Decl(declFileExportAssignmentImportInternalModule.ts, 4, 9)) listen: (port: number) => void; ->listen : (port: number) => void ->port : number +>listen : (port: number) => void, Symbol(listen, Decl(declFileExportAssignmentImportInternalModule.ts, 6, 55)) +>port : number, Symbol(port, Decl(declFileExportAssignmentImportInternalModule.ts, 7, 21)) } } export var server: { ->server : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } +>server : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }, Symbol(server, Decl(declFileExportAssignmentImportInternalModule.ts, 12, 14)) (): m2.connectExport; ->m2 : unknown ->connectExport : m2.connectExport +>m2 : any, Symbol(m2, Decl(declFileExportAssignmentImportInternalModule.ts, 0, 11)) +>connectExport : m2.connectExport, Symbol(m2.connectExport, Decl(declFileExportAssignmentImportInternalModule.ts, 4, 9)) test1: m2.connectModule; ->test1 : m2.connectModule ->m2 : unknown ->connectModule : m2.connectModule +>test1 : m2.connectModule, Symbol(test1, Decl(declFileExportAssignmentImportInternalModule.ts, 13, 29)) +>m2 : any, Symbol(m2, Decl(declFileExportAssignmentImportInternalModule.ts, 0, 11)) +>connectModule : m2.connectModule, Symbol(m2.connectModule, Decl(declFileExportAssignmentImportInternalModule.ts, 1, 22)) test2(): m2.connectModule; ->test2 : () => m2.connectModule ->m2 : unknown ->connectModule : m2.connectModule +>test2 : () => m2.connectModule, Symbol(test2, Decl(declFileExportAssignmentImportInternalModule.ts, 14, 32)) +>m2 : any, Symbol(m2, Decl(declFileExportAssignmentImportInternalModule.ts, 0, 11)) +>connectModule : m2.connectModule, Symbol(m2.connectModule, Decl(declFileExportAssignmentImportInternalModule.ts, 1, 22)) }; } import m = m3 ->m : typeof m3 ->m3 : typeof m3 +>m : typeof m3, Symbol(m, Decl(declFileExportAssignmentImportInternalModule.ts, 17, 1)) +>m3 : typeof m3, Symbol(m3, Decl(declFileExportAssignmentImportInternalModule.ts, 0, 0)) export = m; ->m : typeof m3 +>m : typeof m3, Symbol(m, Decl(declFileExportAssignmentImportInternalModule.ts, 17, 1)) diff --git a/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.types b/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.types index 1d77f8ee7a3..dee773a3098 100644 --- a/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.types +++ b/tests/baselines/reference/declFileExportAssignmentOfGenericInterface.types @@ -1,26 +1,26 @@ === tests/cases/compiler/declFileExportAssignmentOfGenericInterface_1.ts === import a = require('declFileExportAssignmentOfGenericInterface_0'); ->a : unknown +>a : any, Symbol(a, Decl(declFileExportAssignmentOfGenericInterface_1.ts, 0, 0)) export var x: a>; ->x : a> ->a : a ->a : a +>x : a>, Symbol(x, Decl(declFileExportAssignmentOfGenericInterface_1.ts, 1, 10)) +>a : a, Symbol(a, Decl(declFileExportAssignmentOfGenericInterface_1.ts, 0, 0)) +>a : a, Symbol(a, Decl(declFileExportAssignmentOfGenericInterface_1.ts, 0, 0)) x.a; ->x.a : string ->x : a> ->a : string +>x.a : string, Symbol(a.a, Decl(declFileExportAssignmentOfGenericInterface_0.ts, 1, 18)) +>x : a>, Symbol(x, Decl(declFileExportAssignmentOfGenericInterface_1.ts, 1, 10)) +>a : string, Symbol(a.a, Decl(declFileExportAssignmentOfGenericInterface_0.ts, 1, 18)) === tests/cases/compiler/declFileExportAssignmentOfGenericInterface_0.ts === interface Foo { ->Foo : Foo ->T : T +>Foo : Foo, Symbol(Foo, Decl(declFileExportAssignmentOfGenericInterface_0.ts, 0, 0)) +>T : T, Symbol(T, Decl(declFileExportAssignmentOfGenericInterface_0.ts, 1, 14)) a: string; ->a : string +>a : string, Symbol(a, Decl(declFileExportAssignmentOfGenericInterface_0.ts, 1, 18)) } export = Foo; ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(declFileExportAssignmentOfGenericInterface_0.ts, 0, 0)) diff --git a/tests/baselines/reference/declFileExportImportChain.types b/tests/baselines/reference/declFileExportImportChain.types index df71d32d4d9..793fade6e99 100644 --- a/tests/baselines/reference/declFileExportImportChain.types +++ b/tests/baselines/reference/declFileExportImportChain.types @@ -1,43 +1,43 @@ === tests/cases/compiler/declFileExportImportChain_d.ts === import c = require("declFileExportImportChain_c"); ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileExportImportChain_d.ts, 0, 0)) export var x: c.b1.a.m2.c1; ->x : c.b1.a.m2.c1 ->c : unknown ->b1 : unknown ->a : unknown ->m2 : unknown ->c1 : c.b1.a.m2.c1 +>x : c.b1.a.m2.c1, Symbol(x, Decl(declFileExportImportChain_d.ts, 1, 10)) +>c : any, Symbol(c, Decl(declFileExportImportChain_d.ts, 0, 0)) +>b1 : any, Symbol(c.b1, Decl(declFileExportImportChain_c.ts, 0, 0)) +>a : any, Symbol(c.b1.a, Decl(declFileExportImportChain_b.ts, 0, 0)) +>m2 : any, Symbol(c.b1.a.m2, Decl(declFileExportImportChain_a.ts, 1, 11)) +>c1 : c.b1.a.m2.c1, Symbol(c.b1.a.m2.c1, Decl(declFileExportImportChain_a.ts, 2, 22)) === tests/cases/compiler/declFileExportImportChain_a.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(declFileExportImportChain_a.ts, 0, 0)) export module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(declFileExportImportChain_a.ts, 1, 11)) export class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(declFileExportImportChain_a.ts, 2, 22)) } } } export = m1; ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(declFileExportImportChain_a.ts, 0, 0)) === tests/cases/compiler/declFileExportImportChain_b.ts === export import a = require("declFileExportImportChain_a"); ->a : typeof a +>a : typeof a, Symbol(a, Decl(declFileExportImportChain_b.ts, 0, 0)) === tests/cases/compiler/declFileExportImportChain_b1.ts === import b = require("declFileExportImportChain_b"); ->b : typeof b +>b : typeof b, Symbol(b, Decl(declFileExportImportChain_b1.ts, 0, 0)) export = b; ->b : typeof b +>b : typeof b, Symbol(b, Decl(declFileExportImportChain_b1.ts, 0, 0)) === tests/cases/compiler/declFileExportImportChain_c.ts === export import b1 = require("declFileExportImportChain_b1"); ->b1 : typeof b1 +>b1 : typeof b1, Symbol(b1, Decl(declFileExportImportChain_c.ts, 0, 0)) diff --git a/tests/baselines/reference/declFileExportImportChain2.types b/tests/baselines/reference/declFileExportImportChain2.types index a0e3f1c31a1..6be56c2259f 100644 --- a/tests/baselines/reference/declFileExportImportChain2.types +++ b/tests/baselines/reference/declFileExportImportChain2.types @@ -1,38 +1,38 @@ === tests/cases/compiler/declFileExportImportChain2_d.ts === import c = require("declFileExportImportChain2_c"); ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileExportImportChain2_d.ts, 0, 0)) export var x: c.b.m2.c1; ->x : c.b.m2.c1 ->c : unknown ->b : unknown ->m2 : unknown ->c1 : c.b.m2.c1 +>x : c.b.m2.c1, Symbol(x, Decl(declFileExportImportChain2_d.ts, 1, 10)) +>c : any, Symbol(c, Decl(declFileExportImportChain2_d.ts, 0, 0)) +>b : any, Symbol(c.b, Decl(declFileExportImportChain2_c.ts, 0, 0)) +>m2 : any, Symbol(c.b.m2, Decl(declFileExportImportChain2_a.ts, 1, 11)) +>c1 : c.b.m2.c1, Symbol(c.b.m2.c1, Decl(declFileExportImportChain2_a.ts, 2, 22)) === tests/cases/compiler/declFileExportImportChain2_a.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(declFileExportImportChain2_a.ts, 0, 0)) export module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(declFileExportImportChain2_a.ts, 1, 11)) export class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(declFileExportImportChain2_a.ts, 2, 22)) } } } export = m1; ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(declFileExportImportChain2_a.ts, 0, 0)) === tests/cases/compiler/declFileExportImportChain2_b.ts === import a = require("declFileExportImportChain2_a"); ->a : typeof a +>a : typeof a, Symbol(a, Decl(declFileExportImportChain2_b.ts, 0, 0)) export = a; ->a : typeof a +>a : typeof a, Symbol(a, Decl(declFileExportImportChain2_b.ts, 0, 0)) === tests/cases/compiler/declFileExportImportChain2_c.ts === export import b = require("declFileExportImportChain2_b"); ->b : typeof b +>b : typeof b, Symbol(b, Decl(declFileExportImportChain2_c.ts, 0, 0)) diff --git a/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.types b/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.types index 0f7861d8b8e..7927dac66f3 100644 --- a/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.types +++ b/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.types @@ -1,54 +1,54 @@ === tests/cases/compiler/declFileForClassWithMultipleBaseClasses.ts === class A { ->A : A +>A : A, Symbol(A, Decl(declFileForClassWithMultipleBaseClasses.ts, 0, 0)) foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(declFileForClassWithMultipleBaseClasses.ts, 1, 9)) } class B { ->B : B +>B : B, Symbol(B, Decl(declFileForClassWithMultipleBaseClasses.ts, 3, 1)) bar() { } ->bar : () => void +>bar : () => void, Symbol(bar, Decl(declFileForClassWithMultipleBaseClasses.ts, 5, 9)) } interface I { ->I : I +>I : I, Symbol(I, Decl(declFileForClassWithMultipleBaseClasses.ts, 7, 1), Decl(declFileForClassWithMultipleBaseClasses.ts, 23, 1)) baz(); ->baz : () => any +>baz : () => any, Symbol(baz, Decl(declFileForClassWithMultipleBaseClasses.ts, 9, 13)) } interface J { ->J : J +>J : J, Symbol(J, Decl(declFileForClassWithMultipleBaseClasses.ts, 11, 1)) bat(); ->bat : () => any +>bat : () => any, Symbol(bat, Decl(declFileForClassWithMultipleBaseClasses.ts, 13, 13)) } class D implements I, J { ->D : D ->I : I ->J : J +>D : D, Symbol(D, Decl(declFileForClassWithMultipleBaseClasses.ts, 15, 1)) +>I : I, Symbol(I, Decl(declFileForClassWithMultipleBaseClasses.ts, 7, 1), Decl(declFileForClassWithMultipleBaseClasses.ts, 23, 1)) +>J : J, Symbol(J, Decl(declFileForClassWithMultipleBaseClasses.ts, 11, 1)) baz() { } ->baz : () => void +>baz : () => void, Symbol(baz, Decl(declFileForClassWithMultipleBaseClasses.ts, 18, 25)) bat() { } ->bat : () => void +>bat : () => void, Symbol(bat, Decl(declFileForClassWithMultipleBaseClasses.ts, 19, 13)) foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(declFileForClassWithMultipleBaseClasses.ts, 20, 13)) bar() { } ->bar : () => void +>bar : () => void, Symbol(bar, Decl(declFileForClassWithMultipleBaseClasses.ts, 21, 13)) } interface I extends A, B { ->I : I ->A : A ->B : B +>I : I, Symbol(I, Decl(declFileForClassWithMultipleBaseClasses.ts, 7, 1), Decl(declFileForClassWithMultipleBaseClasses.ts, 23, 1)) +>A : A, Symbol(A, Decl(declFileForClassWithMultipleBaseClasses.ts, 0, 0)) +>B : B, Symbol(B, Decl(declFileForClassWithMultipleBaseClasses.ts, 3, 1)) } diff --git a/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.types b/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.types index efdfde4574c..8ca34b872ff 100644 --- a/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.types +++ b/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.types @@ -1,17 +1,17 @@ === tests/cases/compiler/declFileForClassWithPrivateOverloadedFunction.ts === class C { ->C : C +>C : C, Symbol(C, Decl(declFileForClassWithPrivateOverloadedFunction.ts, 0, 0)) private foo(x: number); ->foo : { (x: number): any; (x: string): any; } ->x : number +>foo : { (x: number): any; (x: string): any; }, Symbol(foo, Decl(declFileForClassWithPrivateOverloadedFunction.ts, 1, 9), Decl(declFileForClassWithPrivateOverloadedFunction.ts, 2, 27), Decl(declFileForClassWithPrivateOverloadedFunction.ts, 3, 27)) +>x : number, Symbol(x, Decl(declFileForClassWithPrivateOverloadedFunction.ts, 2, 16)) private foo(x: string); ->foo : { (x: number): any; (x: string): any; } ->x : string +>foo : { (x: number): any; (x: string): any; }, Symbol(foo, Decl(declFileForClassWithPrivateOverloadedFunction.ts, 1, 9), Decl(declFileForClassWithPrivateOverloadedFunction.ts, 2, 27), Decl(declFileForClassWithPrivateOverloadedFunction.ts, 3, 27)) +>x : string, Symbol(x, Decl(declFileForClassWithPrivateOverloadedFunction.ts, 3, 16)) private foo(x: any) { } ->foo : { (x: number): any; (x: string): any; } ->x : any +>foo : { (x: number): any; (x: string): any; }, Symbol(foo, Decl(declFileForClassWithPrivateOverloadedFunction.ts, 1, 9), Decl(declFileForClassWithPrivateOverloadedFunction.ts, 2, 27), Decl(declFileForClassWithPrivateOverloadedFunction.ts, 3, 27)) +>x : any, Symbol(x, Decl(declFileForClassWithPrivateOverloadedFunction.ts, 4, 16)) } diff --git a/tests/baselines/reference/declFileForExportedImport.types b/tests/baselines/reference/declFileForExportedImport.types index 987f82bf5a0..a75d5393005 100644 --- a/tests/baselines/reference/declFileForExportedImport.types +++ b/tests/baselines/reference/declFileForExportedImport.types @@ -1,25 +1,25 @@ === tests/cases/compiler/declFileForExportedImport_1.ts === /// export import a = require('declFileForExportedImport_0'); ->a : typeof a +>a : typeof a, Symbol(a, Decl(declFileForExportedImport_1.ts, 0, 0)) var y = a.x; ->y : number ->a.x : number ->a : typeof a ->x : number +>y : number, Symbol(y, Decl(declFileForExportedImport_1.ts, 2, 3)) +>a.x : number, Symbol(a.x, Decl(declFileForExportedImport_0.ts, 0, 10)) +>a : typeof a, Symbol(a, Decl(declFileForExportedImport_1.ts, 0, 0)) +>x : number, Symbol(a.x, Decl(declFileForExportedImport_0.ts, 0, 10)) export import b = a; ->b : typeof a ->a : typeof a +>b : typeof a, Symbol(b, Decl(declFileForExportedImport_1.ts, 2, 12)) +>a : typeof a, Symbol(a, Decl(declFileForExportedImport_0.ts, 0, 0)) var z = b.x; ->z : number ->b.x : number ->b : typeof a ->x : number +>z : number, Symbol(z, Decl(declFileForExportedImport_1.ts, 5, 3)) +>b.x : number, Symbol(a.x, Decl(declFileForExportedImport_0.ts, 0, 10)) +>b : typeof a, Symbol(b, Decl(declFileForExportedImport_1.ts, 2, 12)) +>x : number, Symbol(a.x, Decl(declFileForExportedImport_0.ts, 0, 10)) === tests/cases/compiler/declFileForExportedImport_0.ts === export var x: number; ->x : number +>x : number, Symbol(x, Decl(declFileForExportedImport_0.ts, 0, 10)) diff --git a/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.types b/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.types index 5f759fb423f..94d8ec682a8 100644 --- a/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.types +++ b/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.types @@ -1,16 +1,16 @@ === tests/cases/compiler/declFileForFunctionTypeAsTypeParameter.ts === class X { ->X : X ->T : T +>X : X, Symbol(X, Decl(declFileForFunctionTypeAsTypeParameter.ts, 0, 0)) +>T : T, Symbol(T, Decl(declFileForFunctionTypeAsTypeParameter.ts, 1, 8)) } class C extends X<() => number> { ->C : C ->X : X +>C : C, Symbol(C, Decl(declFileForFunctionTypeAsTypeParameter.ts, 2, 1)) +>X : X, Symbol(X, Decl(declFileForFunctionTypeAsTypeParameter.ts, 0, 0)) } interface I extends X<() => number> { ->I : I ->X : X +>I : I, Symbol(I, Decl(declFileForFunctionTypeAsTypeParameter.ts, 4, 1)) +>X : X, Symbol(X, Decl(declFileForFunctionTypeAsTypeParameter.ts, 0, 0)) } diff --git a/tests/baselines/reference/declFileForInterfaceWithOptionalFunction.types b/tests/baselines/reference/declFileForInterfaceWithOptionalFunction.types index fab33c939cf..b22df7e4da6 100644 --- a/tests/baselines/reference/declFileForInterfaceWithOptionalFunction.types +++ b/tests/baselines/reference/declFileForInterfaceWithOptionalFunction.types @@ -1,13 +1,13 @@ === tests/cases/compiler/declFileForInterfaceWithOptionalFunction.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(declFileForInterfaceWithOptionalFunction.ts, 0, 0)) foo? (x?); ->foo : (x?: any) => any ->x : any +>foo : (x?: any) => any, Symbol(foo, Decl(declFileForInterfaceWithOptionalFunction.ts, 1, 13)) +>x : any, Symbol(x, Decl(declFileForInterfaceWithOptionalFunction.ts, 2, 10)) foo2? (x?: number): number; ->foo2 : (x?: number) => number ->x : number +>foo2 : (x?: number) => number, Symbol(foo2, Decl(declFileForInterfaceWithOptionalFunction.ts, 2, 14)) +>x : number, Symbol(x, Decl(declFileForInterfaceWithOptionalFunction.ts, 3, 11)) } diff --git a/tests/baselines/reference/declFileForInterfaceWithRestParams.types b/tests/baselines/reference/declFileForInterfaceWithRestParams.types index 817e118fb6c..f2fdb901ad6 100644 --- a/tests/baselines/reference/declFileForInterfaceWithRestParams.types +++ b/tests/baselines/reference/declFileForInterfaceWithRestParams.types @@ -1,22 +1,22 @@ === tests/cases/compiler/declFileForInterfaceWithRestParams.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(declFileForInterfaceWithRestParams.ts, 0, 0)) foo(...x): typeof x; ->foo : (...x: any[]) => any[] ->x : any[] ->x : any[] +>foo : (...x: any[]) => any[], Symbol(foo, Decl(declFileForInterfaceWithRestParams.ts, 1, 13)) +>x : any[], Symbol(x, Decl(declFileForInterfaceWithRestParams.ts, 2, 8)) +>x : any[], Symbol(x, Decl(declFileForInterfaceWithRestParams.ts, 2, 8)) foo2(a: number, ...x): typeof x; ->foo2 : (a: number, ...x: any[]) => any[] ->a : number ->x : any[] ->x : any[] +>foo2 : (a: number, ...x: any[]) => any[], Symbol(foo2, Decl(declFileForInterfaceWithRestParams.ts, 2, 24)) +>a : number, Symbol(a, Decl(declFileForInterfaceWithRestParams.ts, 3, 9)) +>x : any[], Symbol(x, Decl(declFileForInterfaceWithRestParams.ts, 3, 19)) +>x : any[], Symbol(x, Decl(declFileForInterfaceWithRestParams.ts, 3, 19)) foo3(b: string, ...x: string[]): typeof x; ->foo3 : (b: string, ...x: string[]) => string[] ->b : string ->x : string[] ->x : string[] +>foo3 : (b: string, ...x: string[]) => string[], Symbol(foo3, Decl(declFileForInterfaceWithRestParams.ts, 3, 36)) +>b : string, Symbol(b, Decl(declFileForInterfaceWithRestParams.ts, 4, 9)) +>x : string[], Symbol(x, Decl(declFileForInterfaceWithRestParams.ts, 4, 19)) +>x : string[], Symbol(x, Decl(declFileForInterfaceWithRestParams.ts, 4, 19)) } diff --git a/tests/baselines/reference/declFileForTypeParameters.types b/tests/baselines/reference/declFileForTypeParameters.types index 6308a0c92ba..45bd453e115 100644 --- a/tests/baselines/reference/declFileForTypeParameters.types +++ b/tests/baselines/reference/declFileForTypeParameters.types @@ -1,22 +1,22 @@ === tests/cases/compiler/declFileForTypeParameters.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(declFileForTypeParameters.ts, 0, 0)) +>T : T, Symbol(T, Decl(declFileForTypeParameters.ts, 1, 8)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(declFileForTypeParameters.ts, 1, 12)) +>T : T, Symbol(T, Decl(declFileForTypeParameters.ts, 1, 8)) foo(a: T): T { ->foo : (a: T) => T ->a : T ->T : T ->T : T +>foo : (a: T) => T, Symbol(foo, Decl(declFileForTypeParameters.ts, 2, 9)) +>a : T, Symbol(a, Decl(declFileForTypeParameters.ts, 3, 8)) +>T : T, Symbol(T, Decl(declFileForTypeParameters.ts, 1, 8)) +>T : T, Symbol(T, Decl(declFileForTypeParameters.ts, 1, 8)) return this.x; ->this.x : T ->this : C ->x : T +>this.x : T, Symbol(x, Decl(declFileForTypeParameters.ts, 1, 12)) +>this : C, Symbol(C, Decl(declFileForTypeParameters.ts, 0, 0)) +>x : T, Symbol(x, Decl(declFileForTypeParameters.ts, 1, 12)) } } diff --git a/tests/baselines/reference/declFileForVarList.types b/tests/baselines/reference/declFileForVarList.types index 6e148efa1c2..2cda8c52d0e 100644 --- a/tests/baselines/reference/declFileForVarList.types +++ b/tests/baselines/reference/declFileForVarList.types @@ -1,12 +1,16 @@ === tests/cases/compiler/declFileForVarList.ts === var x, y, z = 1; ->x : any ->y : any ->z : number +>x : any, Symbol(x, Decl(declFileForVarList.ts, 1, 3)) +>y : any, Symbol(y, Decl(declFileForVarList.ts, 1, 6)) +>z : number, Symbol(z, Decl(declFileForVarList.ts, 1, 9)) +>1 : number var x1 = 1, y2 = 2, z2 = 3; ->x1 : number ->y2 : number ->z2 : number +>x1 : number, Symbol(x1, Decl(declFileForVarList.ts, 2, 3)) +>1 : number +>y2 : number, Symbol(y2, Decl(declFileForVarList.ts, 2, 11)) +>2 : number +>z2 : number, Symbol(z2, Decl(declFileForVarList.ts, 2, 19)) +>3 : number diff --git a/tests/baselines/reference/declFileFunctions.types b/tests/baselines/reference/declFileFunctions.types index bfbe658a758..eb5d28082d0 100644 --- a/tests/baselines/reference/declFileFunctions.types +++ b/tests/baselines/reference/declFileFunctions.types @@ -2,153 +2,156 @@ /** This comment should appear for foo*/ export function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(declFileFunctions_0.ts, 0, 0)) } /** This is comment for function signature*/ export function fooWithParameters(/** this is comment about a*/a: string, ->fooWithParameters : (a: string, b: number) => void ->a : string +>fooWithParameters : (a: string, b: number) => void, Symbol(fooWithParameters, Decl(declFileFunctions_0.ts, 3, 1)) +>a : string, Symbol(a, Decl(declFileFunctions_0.ts, 5, 34)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileFunctions_0.ts, 5, 73)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileFunctions_0.ts, 8, 7)) +>a : string, Symbol(a, Decl(declFileFunctions_0.ts, 5, 34)) } export function fooWithRestParameters(a: string, ...rests: string[]) { ->fooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>fooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(fooWithRestParameters, Decl(declFileFunctions_0.ts, 9, 1)) +>a : string, Symbol(a, Decl(declFileFunctions_0.ts, 10, 38)) +>rests : string[], Symbol(rests, Decl(declFileFunctions_0.ts, 10, 48)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileFunctions_0.ts, 10, 38)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileFunctions_0.ts, 10, 48)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } export function fooWithOverloads(a: string): string; ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileFunctions_0.ts, 12, 1), Decl(declFileFunctions_0.ts, 14, 52), Decl(declFileFunctions_0.ts, 15, 52)) +>a : string, Symbol(a, Decl(declFileFunctions_0.ts, 14, 33)) export function fooWithOverloads(a: number): number; ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileFunctions_0.ts, 12, 1), Decl(declFileFunctions_0.ts, 14, 52), Decl(declFileFunctions_0.ts, 15, 52)) +>a : number, Symbol(a, Decl(declFileFunctions_0.ts, 15, 33)) export function fooWithOverloads(a: any): any { ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : any +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileFunctions_0.ts, 12, 1), Decl(declFileFunctions_0.ts, 14, 52), Decl(declFileFunctions_0.ts, 15, 52)) +>a : any, Symbol(a, Decl(declFileFunctions_0.ts, 16, 33)) return a; ->a : any +>a : any, Symbol(a, Decl(declFileFunctions_0.ts, 16, 33)) } export function fooWithSingleOverload(a: string): string; ->fooWithSingleOverload : (a: string) => string ->a : string +>fooWithSingleOverload : (a: string) => string, Symbol(fooWithSingleOverload, Decl(declFileFunctions_0.ts, 18, 1), Decl(declFileFunctions_0.ts, 20, 57)) +>a : string, Symbol(a, Decl(declFileFunctions_0.ts, 20, 38)) export function fooWithSingleOverload(a: any) { ->fooWithSingleOverload : (a: string) => string ->a : any +>fooWithSingleOverload : (a: string) => string, Symbol(fooWithSingleOverload, Decl(declFileFunctions_0.ts, 18, 1), Decl(declFileFunctions_0.ts, 20, 57)) +>a : any, Symbol(a, Decl(declFileFunctions_0.ts, 21, 38)) return a; ->a : any +>a : any, Symbol(a, Decl(declFileFunctions_0.ts, 21, 38)) } /** This comment should appear for nonExportedFoo*/ function nonExportedFoo() { ->nonExportedFoo : () => void +>nonExportedFoo : () => void, Symbol(nonExportedFoo, Decl(declFileFunctions_0.ts, 23, 1)) } /** This is comment for function signature*/ function nonExportedFooWithParameters(/** this is comment about a*/a: string, ->nonExportedFooWithParameters : (a: string, b: number) => void ->a : string +>nonExportedFooWithParameters : (a: string, b: number) => void, Symbol(nonExportedFooWithParameters, Decl(declFileFunctions_0.ts, 27, 1)) +>a : string, Symbol(a, Decl(declFileFunctions_0.ts, 29, 38)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileFunctions_0.ts, 29, 77)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileFunctions_0.ts, 32, 7)) +>a : string, Symbol(a, Decl(declFileFunctions_0.ts, 29, 38)) } function nonExportedFooWithRestParameters(a: string, ...rests: string[]) { ->nonExportedFooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>nonExportedFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(nonExportedFooWithRestParameters, Decl(declFileFunctions_0.ts, 33, 1)) +>a : string, Symbol(a, Decl(declFileFunctions_0.ts, 34, 42)) +>rests : string[], Symbol(rests, Decl(declFileFunctions_0.ts, 34, 52)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileFunctions_0.ts, 34, 42)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileFunctions_0.ts, 34, 52)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } function nonExportedFooWithOverloads(a: string): string; ->nonExportedFooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>nonExportedFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(nonExportedFooWithOverloads, Decl(declFileFunctions_0.ts, 36, 1), Decl(declFileFunctions_0.ts, 38, 56), Decl(declFileFunctions_0.ts, 39, 56)) +>a : string, Symbol(a, Decl(declFileFunctions_0.ts, 38, 37)) function nonExportedFooWithOverloads(a: number): number; ->nonExportedFooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>nonExportedFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(nonExportedFooWithOverloads, Decl(declFileFunctions_0.ts, 36, 1), Decl(declFileFunctions_0.ts, 38, 56), Decl(declFileFunctions_0.ts, 39, 56)) +>a : number, Symbol(a, Decl(declFileFunctions_0.ts, 39, 37)) function nonExportedFooWithOverloads(a: any): any { ->nonExportedFooWithOverloads : { (a: string): string; (a: number): number; } ->a : any +>nonExportedFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(nonExportedFooWithOverloads, Decl(declFileFunctions_0.ts, 36, 1), Decl(declFileFunctions_0.ts, 38, 56), Decl(declFileFunctions_0.ts, 39, 56)) +>a : any, Symbol(a, Decl(declFileFunctions_0.ts, 40, 37)) return a; ->a : any +>a : any, Symbol(a, Decl(declFileFunctions_0.ts, 40, 37)) } === tests/cases/compiler/declFileFunctions_1.ts === /** This comment should appear for foo*/ function globalfoo() { ->globalfoo : () => void +>globalfoo : () => void, Symbol(globalfoo, Decl(declFileFunctions_1.ts, 0, 0)) } /** This is comment for function signature*/ function globalfooWithParameters(/** this is comment about a*/a: string, ->globalfooWithParameters : (a: string, b: number) => void ->a : string +>globalfooWithParameters : (a: string, b: number) => void, Symbol(globalfooWithParameters, Decl(declFileFunctions_1.ts, 2, 1)) +>a : string, Symbol(a, Decl(declFileFunctions_1.ts, 4, 33)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileFunctions_1.ts, 4, 72)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileFunctions_1.ts, 7, 7)) +>a : string, Symbol(a, Decl(declFileFunctions_1.ts, 4, 33)) } function globalfooWithRestParameters(a: string, ...rests: string[]) { ->globalfooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>globalfooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(globalfooWithRestParameters, Decl(declFileFunctions_1.ts, 8, 1)) +>a : string, Symbol(a, Decl(declFileFunctions_1.ts, 9, 37)) +>rests : string[], Symbol(rests, Decl(declFileFunctions_1.ts, 9, 47)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileFunctions_1.ts, 9, 37)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileFunctions_1.ts, 9, 47)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } function globalfooWithOverloads(a: string): string; ->globalfooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>globalfooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(globalfooWithOverloads, Decl(declFileFunctions_1.ts, 11, 1), Decl(declFileFunctions_1.ts, 12, 51), Decl(declFileFunctions_1.ts, 13, 51)) +>a : string, Symbol(a, Decl(declFileFunctions_1.ts, 12, 32)) function globalfooWithOverloads(a: number): number; ->globalfooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>globalfooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(globalfooWithOverloads, Decl(declFileFunctions_1.ts, 11, 1), Decl(declFileFunctions_1.ts, 12, 51), Decl(declFileFunctions_1.ts, 13, 51)) +>a : number, Symbol(a, Decl(declFileFunctions_1.ts, 13, 32)) function globalfooWithOverloads(a: any): any { ->globalfooWithOverloads : { (a: string): string; (a: number): number; } ->a : any +>globalfooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(globalfooWithOverloads, Decl(declFileFunctions_1.ts, 11, 1), Decl(declFileFunctions_1.ts, 12, 51), Decl(declFileFunctions_1.ts, 13, 51)) +>a : any, Symbol(a, Decl(declFileFunctions_1.ts, 14, 32)) return a; ->a : any +>a : any, Symbol(a, Decl(declFileFunctions_1.ts, 14, 32)) } diff --git a/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.types b/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.types index 27fed37c21b..ac1faa98e9c 100644 --- a/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.types +++ b/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.types @@ -1,38 +1,38 @@ === tests/cases/compiler/declFileGenericClassWithGenericExtendedClass.ts === interface IFoo { ->IFoo : IFoo +>IFoo : IFoo, Symbol(IFoo, Decl(declFileGenericClassWithGenericExtendedClass.ts, 0, 0)) baz: Baz; ->baz : Baz ->Baz : Baz +>baz : Baz, Symbol(baz, Decl(declFileGenericClassWithGenericExtendedClass.ts, 0, 16)) +>Baz : Baz, Symbol(Baz, Decl(declFileGenericClassWithGenericExtendedClass.ts, 7, 1)) } class Base { } ->Base : Base ->T : T +>Base : Base, Symbol(Base, Decl(declFileGenericClassWithGenericExtendedClass.ts, 2, 1)) +>T : T, Symbol(T, Decl(declFileGenericClassWithGenericExtendedClass.ts, 3, 11)) class Derived extends Base { } ->Derived : Derived ->T : T ->Base : Base ->T : T +>Derived : Derived, Symbol(Derived, Decl(declFileGenericClassWithGenericExtendedClass.ts, 3, 17)) +>T : T, Symbol(T, Decl(declFileGenericClassWithGenericExtendedClass.ts, 4, 14)) +>Base : Base, Symbol(Base, Decl(declFileGenericClassWithGenericExtendedClass.ts, 2, 1)) +>T : T, Symbol(T, Decl(declFileGenericClassWithGenericExtendedClass.ts, 4, 14)) interface IBar { ->IBar : IBar ->T : T +>IBar : IBar, Symbol(IBar, Decl(declFileGenericClassWithGenericExtendedClass.ts, 4, 36)) +>T : T, Symbol(T, Decl(declFileGenericClassWithGenericExtendedClass.ts, 5, 15)) derived: Derived; ->derived : Derived ->Derived : Derived ->T : T +>derived : Derived, Symbol(derived, Decl(declFileGenericClassWithGenericExtendedClass.ts, 5, 19)) +>Derived : Derived, Symbol(Derived, Decl(declFileGenericClassWithGenericExtendedClass.ts, 3, 17)) +>T : T, Symbol(T, Decl(declFileGenericClassWithGenericExtendedClass.ts, 5, 15)) } class Baz implements IBar { ->Baz : Baz ->IBar : IBar ->Baz : Baz +>Baz : Baz, Symbol(Baz, Decl(declFileGenericClassWithGenericExtendedClass.ts, 7, 1)) +>IBar : IBar, Symbol(IBar, Decl(declFileGenericClassWithGenericExtendedClass.ts, 4, 36)) +>Baz : Baz, Symbol(Baz, Decl(declFileGenericClassWithGenericExtendedClass.ts, 7, 1)) derived: Derived; ->derived : Derived ->Derived : Derived ->Baz : Baz +>derived : Derived, Symbol(derived, Decl(declFileGenericClassWithGenericExtendedClass.ts, 8, 32)) +>Derived : Derived, Symbol(Derived, Decl(declFileGenericClassWithGenericExtendedClass.ts, 3, 17)) +>Baz : Baz, Symbol(Baz, Decl(declFileGenericClassWithGenericExtendedClass.ts, 7, 1)) } diff --git a/tests/baselines/reference/declFileGenericType.types b/tests/baselines/reference/declFileGenericType.types index 50026cc3aeb..67444274ee8 100644 --- a/tests/baselines/reference/declFileGenericType.types +++ b/tests/baselines/reference/declFileGenericType.types @@ -1,167 +1,175 @@ === tests/cases/compiler/declFileGenericType.ts === export module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) export class A{ } ->A : A ->T : T +>A : A, Symbol(A, Decl(declFileGenericType.ts, 0, 17)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 1, 19)) export class B { } ->B : B +>B : B, Symbol(B, Decl(declFileGenericType.ts, 1, 24)) export function F(x: T): A { return null; } ->F : (x: T) => A ->T : T ->x : T ->T : T ->A : A ->B : B +>F : (x: T) => A, Symbol(F, Decl(declFileGenericType.ts, 2, 22)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 4, 22)) +>x : T, Symbol(x, Decl(declFileGenericType.ts, 4, 25)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 4, 22)) +>A : A, Symbol(A, Decl(declFileGenericType.ts, 0, 17)) +>B : B, Symbol(B, Decl(declFileGenericType.ts, 1, 24)) +>null : null export function F2(x: T): C.A { return null; } ->F2 : (x: T) => A ->T : T ->x : T ->T : T ->C : unknown ->A : A ->C : unknown ->B : B +>F2 : (x: T) => A, Symbol(F2, Decl(declFileGenericType.ts, 4, 53)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 5, 23)) +>x : T, Symbol(x, Decl(declFileGenericType.ts, 5, 26)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 5, 23)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>A : A, Symbol(A, Decl(declFileGenericType.ts, 0, 17)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>B : B, Symbol(B, Decl(declFileGenericType.ts, 1, 24)) +>null : null export function F3(x: T): C.A[] { return null; } ->F3 : (x: T) => A[] ->T : T ->x : T ->T : T ->C : unknown ->A : A ->C : unknown ->B : B +>F3 : (x: T) => A[], Symbol(F3, Decl(declFileGenericType.ts, 5, 58)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 6, 23)) +>x : T, Symbol(x, Decl(declFileGenericType.ts, 6, 26)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 6, 23)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>A : A, Symbol(A, Decl(declFileGenericType.ts, 0, 17)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>B : B, Symbol(B, Decl(declFileGenericType.ts, 1, 24)) +>null : null export function F4>(x: T): Array> { return null; } ->F4 : >(x: T) => A[] ->T : T ->A : A ->B : B ->x : T ->T : T ->Array : T[] ->C : unknown ->A : A ->C : unknown ->B : B +>F4 : >(x: T) => A[], Symbol(F4, Decl(declFileGenericType.ts, 6, 60)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 7, 23)) +>A : A, Symbol(A, Decl(declFileGenericType.ts, 0, 17)) +>B : B, Symbol(B, Decl(declFileGenericType.ts, 1, 24)) +>x : T, Symbol(x, Decl(declFileGenericType.ts, 7, 39)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 7, 23)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>A : A, Symbol(A, Decl(declFileGenericType.ts, 0, 17)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>B : B, Symbol(B, Decl(declFileGenericType.ts, 1, 24)) +>null : null export function F5(): T { return null; } ->F5 : () => T ->T : T ->T : T +>F5 : () => T, Symbol(F5, Decl(declFileGenericType.ts, 7, 78)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 9, 23)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 9, 23)) +>null : null export function F6>(x: T): T { return null; } ->F6 : >(x: T) => T ->T : T ->A : A ->B : B ->x : T ->T : T ->T : T +>F6 : >(x: T) => T, Symbol(F6, Decl(declFileGenericType.ts, 9, 47)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 11, 23)) +>A : A, Symbol(A, Decl(declFileGenericType.ts, 0, 17)) +>B : B, Symbol(B, Decl(declFileGenericType.ts, 1, 24)) +>x : T, Symbol(x, Decl(declFileGenericType.ts, 11, 39)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 11, 23)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 11, 23)) +>null : null export class D{ ->D : D ->T : T +>D : D, Symbol(D, Decl(declFileGenericType.ts, 11, 64)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 13, 19)) constructor(public val: T) { } ->val : T ->T : T +>val : T, Symbol(val, Decl(declFileGenericType.ts, 15, 20)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 13, 19)) } } export var a: C.A; ->a : C.A ->C : unknown ->A : C.A ->C : unknown ->B : C.B +>a : C.A, Symbol(a, Decl(declFileGenericType.ts, 20, 10)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>A : C.A, Symbol(C.A, Decl(declFileGenericType.ts, 0, 17)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>B : C.B, Symbol(C.B, Decl(declFileGenericType.ts, 1, 24)) export var b = C.F; ->b : (x: T) => C.A ->C.F : (x: T) => C.A ->C : typeof C ->F : (x: T) => C.A +>b : (x: T) => C.A, Symbol(b, Decl(declFileGenericType.ts, 22, 10)) +>C.F : (x: T) => C.A, Symbol(C.F, Decl(declFileGenericType.ts, 2, 22)) +>C : typeof C, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>F : (x: T) => C.A, Symbol(C.F, Decl(declFileGenericType.ts, 2, 22)) export var c = C.F2; ->c : (x: T) => C.A ->C.F2 : (x: T) => C.A ->C : typeof C ->F2 : (x: T) => C.A +>c : (x: T) => C.A, Symbol(c, Decl(declFileGenericType.ts, 23, 10)) +>C.F2 : (x: T) => C.A, Symbol(C.F2, Decl(declFileGenericType.ts, 4, 53)) +>C : typeof C, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>F2 : (x: T) => C.A, Symbol(C.F2, Decl(declFileGenericType.ts, 4, 53)) export var d = C.F3; ->d : (x: T) => C.A[] ->C.F3 : (x: T) => C.A[] ->C : typeof C ->F3 : (x: T) => C.A[] +>d : (x: T) => C.A[], Symbol(d, Decl(declFileGenericType.ts, 24, 10)) +>C.F3 : (x: T) => C.A[], Symbol(C.F3, Decl(declFileGenericType.ts, 5, 58)) +>C : typeof C, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>F3 : (x: T) => C.A[], Symbol(C.F3, Decl(declFileGenericType.ts, 5, 58)) export var e = C.F4; ->e : >(x: T) => C.A[] ->C.F4 : >(x: T) => C.A[] ->C : typeof C ->F4 : >(x: T) => C.A[] +>e : >(x: T) => C.A[], Symbol(e, Decl(declFileGenericType.ts, 25, 10)) +>C.F4 : >(x: T) => C.A[], Symbol(C.F4, Decl(declFileGenericType.ts, 6, 60)) +>C : typeof C, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>F4 : >(x: T) => C.A[], Symbol(C.F4, Decl(declFileGenericType.ts, 6, 60)) export var x = (new C.D>(new C.A())).val; ->x : C.A ->(new C.D>(new C.A())).val : C.A +>x : C.A, Symbol(x, Decl(declFileGenericType.ts, 27, 10)) +>(new C.D>(new C.A())).val : C.A, Symbol(C.D.val, Decl(declFileGenericType.ts, 15, 20)) >(new C.D>(new C.A())) : C.D> >new C.D>(new C.A()) : C.D> ->C.D : typeof C.D ->C : typeof C ->D : typeof C.D ->C : unknown ->A : C.A ->C : unknown ->B : C.B +>C.D : typeof C.D, Symbol(C.D, Decl(declFileGenericType.ts, 11, 64)) +>C : typeof C, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>D : typeof C.D, Symbol(C.D, Decl(declFileGenericType.ts, 11, 64)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>A : C.A, Symbol(C.A, Decl(declFileGenericType.ts, 0, 17)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>B : C.B, Symbol(C.B, Decl(declFileGenericType.ts, 1, 24)) >new C.A() : C.A ->C.A : typeof C.A ->C : typeof C ->A : typeof C.A ->C : unknown ->B : C.B ->val : C.A +>C.A : typeof C.A, Symbol(C.A, Decl(declFileGenericType.ts, 0, 17)) +>C : typeof C, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>A : typeof C.A, Symbol(C.A, Decl(declFileGenericType.ts, 0, 17)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>B : C.B, Symbol(C.B, Decl(declFileGenericType.ts, 1, 24)) +>val : C.A, Symbol(C.D.val, Decl(declFileGenericType.ts, 15, 20)) export function f>() { } ->f : >() => void ->T : T ->C : unknown ->A : C.A ->C : unknown ->B : C.B +>f : >() => void, Symbol(f, Decl(declFileGenericType.ts, 27, 55)) +>T : T, Symbol(T, Decl(declFileGenericType.ts, 29, 18)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>A : C.A, Symbol(C.A, Decl(declFileGenericType.ts, 0, 17)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>B : C.B, Symbol(C.B, Decl(declFileGenericType.ts, 1, 24)) export var g = C.F5>(); ->g : C.A +>g : C.A, Symbol(g, Decl(declFileGenericType.ts, 31, 10)) >C.F5>() : C.A ->C.F5 : () => T ->C : typeof C ->F5 : () => T ->C : unknown ->A : C.A ->C : unknown ->B : C.B +>C.F5 : () => T, Symbol(C.F5, Decl(declFileGenericType.ts, 7, 78)) +>C : typeof C, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>F5 : () => T, Symbol(C.F5, Decl(declFileGenericType.ts, 7, 78)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>A : C.A, Symbol(C.A, Decl(declFileGenericType.ts, 0, 17)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>B : C.B, Symbol(C.B, Decl(declFileGenericType.ts, 1, 24)) export class h extends C.A{ } ->h : h ->C : typeof C ->A : C.A ->C : unknown ->B : C.B +>h : h, Symbol(h, Decl(declFileGenericType.ts, 31, 32)) +>C.A : any, Symbol(C.A, Decl(declFileGenericType.ts, 0, 17)) +>C : typeof C, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>A : C.A, Symbol(C.A, Decl(declFileGenericType.ts, 0, 17)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>B : C.B, Symbol(C.B, Decl(declFileGenericType.ts, 1, 24)) export interface i extends C.A { } ->i : i ->C : typeof C ->A : C.A ->C : unknown ->B : C.B +>i : i, Symbol(i, Decl(declFileGenericType.ts, 33, 34)) +>C.A : any, Symbol(C.A, Decl(declFileGenericType.ts, 0, 17)) +>C : typeof C, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>A : C.A, Symbol(C.A, Decl(declFileGenericType.ts, 0, 17)) +>C : any, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>B : C.B, Symbol(C.B, Decl(declFileGenericType.ts, 1, 24)) export var j = C.F6; ->j : >(x: T) => T ->C.F6 : >(x: T) => T ->C : typeof C ->F6 : >(x: T) => T +>j : >(x: T) => T, Symbol(j, Decl(declFileGenericType.ts, 37, 10)) +>C.F6 : >(x: T) => T, Symbol(C.F6, Decl(declFileGenericType.ts, 9, 47)) +>C : typeof C, Symbol(C, Decl(declFileGenericType.ts, 0, 0)) +>F6 : >(x: T) => T, Symbol(C.F6, Decl(declFileGenericType.ts, 9, 47)) diff --git a/tests/baselines/reference/declFileGenericType2.types b/tests/baselines/reference/declFileGenericType2.types index fed2caca7ac..929d8fb5964 100644 --- a/tests/baselines/reference/declFileGenericType2.types +++ b/tests/baselines/reference/declFileGenericType2.types @@ -1,140 +1,149 @@ === tests/cases/compiler/declFileGenericType2.ts === declare module templa.mvc { ->templa : typeof templa ->mvc : typeof mvc +>templa : typeof templa, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : typeof mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) interface IModel { ->IModel : IModel +>IModel : IModel, Symbol(IModel, Decl(declFileGenericType2.ts, 1, 27)) } } declare module templa.mvc { ->templa : typeof templa ->mvc : typeof mvc +>templa : typeof templa, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : typeof mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) interface IController { ->IController : IController ->ModelType : ModelType ->templa : unknown ->mvc : unknown ->IModel : IModel +>IController : IController, Symbol(IController, Decl(declFileGenericType2.ts, 5, 27)) +>ModelType : ModelType, Symbol(ModelType, Decl(declFileGenericType2.ts, 6, 26)) +>templa : any, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : any, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>IModel : IModel, Symbol(IModel, Decl(declFileGenericType2.ts, 1, 27)) } } declare module templa.mvc { ->templa : typeof templa ->mvc : typeof mvc +>templa : typeof templa, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : typeof mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) class AbstractController implements mvc.IController { ->AbstractController : AbstractController ->ModelType : ModelType ->templa : unknown ->mvc : unknown ->IModel : IModel ->mvc : typeof mvc ->IController : IController ->ModelType : ModelType +>AbstractController : AbstractController, Symbol(AbstractController, Decl(declFileGenericType2.ts, 9, 27)) +>ModelType : ModelType, Symbol(ModelType, Decl(declFileGenericType2.ts, 10, 29)) +>templa : any, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : any, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>IModel : IModel, Symbol(IModel, Decl(declFileGenericType2.ts, 1, 27)) +>mvc.IController : any, Symbol(IController, Decl(declFileGenericType2.ts, 5, 27)) +>mvc : typeof mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>IController : IController, Symbol(IController, Decl(declFileGenericType2.ts, 5, 27)) +>ModelType : ModelType, Symbol(ModelType, Decl(declFileGenericType2.ts, 10, 29)) } } declare module templa.mvc.composite { ->templa : typeof templa ->mvc : typeof mvc ->composite : unknown +>templa : typeof templa, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : typeof mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>composite : any, Symbol(composite, Decl(declFileGenericType2.ts, 13, 26)) interface ICompositeControllerModel extends mvc.IModel { ->ICompositeControllerModel : ICompositeControllerModel ->mvc : typeof mvc ->IModel : IModel +>ICompositeControllerModel : ICompositeControllerModel, Symbol(ICompositeControllerModel, Decl(declFileGenericType2.ts, 13, 37)) +>mvc.IModel : any, Symbol(IModel, Decl(declFileGenericType2.ts, 1, 27)) +>mvc : typeof mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>IModel : IModel, Symbol(IModel, Decl(declFileGenericType2.ts, 1, 27)) getControllers(): mvc.IController[]; ->getControllers : () => IController[] ->mvc : unknown ->IController : IController ->mvc : unknown ->IModel : IModel +>getControllers : () => IController[], Symbol(getControllers, Decl(declFileGenericType2.ts, 14, 60)) +>mvc : any, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>IController : IController, Symbol(IController, Decl(declFileGenericType2.ts, 5, 27)) +>mvc : any, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>IModel : IModel, Symbol(IModel, Decl(declFileGenericType2.ts, 1, 27)) } } module templa.dom.mvc { ->templa : typeof templa ->dom : typeof dom ->mvc : typeof mvc +>templa : typeof templa, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>dom : typeof dom, Symbol(dom, Decl(declFileGenericType2.ts, 18, 14), Decl(declFileGenericType2.ts, 23, 14), Decl(declFileGenericType2.ts, 32, 14)) +>mvc : typeof mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 18, 18), Decl(declFileGenericType2.ts, 23, 18), Decl(declFileGenericType2.ts, 32, 18)) export interface IElementController extends templa.mvc.IController { ->IElementController : IElementController ->ModelType : ModelType ->templa : unknown ->mvc : unknown ->IModel : templa.mvc.IModel ->templa : typeof templa ->mvc : typeof templa.mvc ->IController : templa.mvc.IController ->ModelType : ModelType +>IElementController : IElementController, Symbol(IElementController, Decl(declFileGenericType2.ts, 18, 23)) +>ModelType : ModelType, Symbol(ModelType, Decl(declFileGenericType2.ts, 19, 40)) +>templa : any, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : any, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>IModel : templa.mvc.IModel, Symbol(templa.mvc.IModel, Decl(declFileGenericType2.ts, 1, 27)) +>templa.mvc.IController : any, Symbol(templa.mvc.IController, Decl(declFileGenericType2.ts, 5, 27)) +>templa.mvc : typeof templa.mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>templa : typeof templa, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : typeof templa.mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>IController : templa.mvc.IController, Symbol(templa.mvc.IController, Decl(declFileGenericType2.ts, 5, 27)) +>ModelType : ModelType, Symbol(ModelType, Decl(declFileGenericType2.ts, 19, 40)) } } // Module module templa.dom.mvc { ->templa : typeof templa ->dom : typeof dom ->mvc : typeof mvc +>templa : typeof templa, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>dom : typeof dom, Symbol(dom, Decl(declFileGenericType2.ts, 18, 14), Decl(declFileGenericType2.ts, 23, 14), Decl(declFileGenericType2.ts, 32, 14)) +>mvc : typeof mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 18, 18), Decl(declFileGenericType2.ts, 23, 18), Decl(declFileGenericType2.ts, 32, 18)) export class AbstractElementController extends templa.mvc.AbstractController implements IElementController { ->AbstractElementController : AbstractElementController ->ModelType : ModelType ->templa : unknown ->mvc : unknown ->IModel : templa.mvc.IModel ->templa : typeof templa ->mvc : typeof templa.mvc ->AbstractController : templa.mvc.AbstractController ->ModelType : ModelType ->IElementController : IElementController ->ModelType : ModelType +>AbstractElementController : AbstractElementController, Symbol(AbstractElementController, Decl(declFileGenericType2.ts, 23, 23)) +>ModelType : ModelType, Symbol(ModelType, Decl(declFileGenericType2.ts, 25, 43)) +>templa : any, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : any, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>IModel : templa.mvc.IModel, Symbol(templa.mvc.IModel, Decl(declFileGenericType2.ts, 1, 27)) +>templa.mvc.AbstractController : any, Symbol(templa.mvc.AbstractController, Decl(declFileGenericType2.ts, 9, 27)) +>templa.mvc : typeof templa.mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>templa : typeof templa, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : typeof templa.mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>AbstractController : templa.mvc.AbstractController, Symbol(templa.mvc.AbstractController, Decl(declFileGenericType2.ts, 9, 27)) +>ModelType : ModelType, Symbol(ModelType, Decl(declFileGenericType2.ts, 25, 43)) +>IElementController : IElementController, Symbol(IElementController, Decl(declFileGenericType2.ts, 18, 23)) +>ModelType : ModelType, Symbol(ModelType, Decl(declFileGenericType2.ts, 25, 43)) constructor() { super(); >super() : void ->super : typeof templa.mvc.AbstractController +>super : typeof templa.mvc.AbstractController, Symbol(templa.mvc.AbstractController, Decl(declFileGenericType2.ts, 9, 27)) } } } // Module module templa.dom.mvc.composite { ->templa : typeof templa ->dom : typeof dom ->mvc : typeof mvc ->composite : typeof composite +>templa : typeof templa, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>dom : typeof dom, Symbol(dom, Decl(declFileGenericType2.ts, 18, 14), Decl(declFileGenericType2.ts, 23, 14), Decl(declFileGenericType2.ts, 32, 14)) +>mvc : typeof mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 18, 18), Decl(declFileGenericType2.ts, 23, 18), Decl(declFileGenericType2.ts, 32, 18)) +>composite : typeof composite, Symbol(composite, Decl(declFileGenericType2.ts, 32, 22)) export class AbstractCompositeElementController extends templa.dom.mvc.AbstractElementController { ->AbstractCompositeElementController : AbstractCompositeElementController ->ModelType : ModelType ->templa : unknown ->mvc : unknown ->composite : unknown ->ICompositeControllerModel : templa.mvc.composite.ICompositeControllerModel ->templa : typeof templa ->dom : typeof dom ->mvc : typeof mvc ->AbstractElementController : AbstractElementController ->ModelType : ModelType +>AbstractCompositeElementController : AbstractCompositeElementController, Symbol(AbstractCompositeElementController, Decl(declFileGenericType2.ts, 32, 33)) +>ModelType : ModelType, Symbol(ModelType, Decl(declFileGenericType2.ts, 33, 52)) +>templa : any, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : any, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>composite : any, Symbol(templa.mvc.composite, Decl(declFileGenericType2.ts, 13, 26)) +>ICompositeControllerModel : templa.mvc.composite.ICompositeControllerModel, Symbol(templa.mvc.composite.ICompositeControllerModel, Decl(declFileGenericType2.ts, 13, 37)) +>templa.dom.mvc.AbstractElementController : any, Symbol(AbstractElementController, Decl(declFileGenericType2.ts, 23, 23)) +>templa.dom.mvc : typeof mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 18, 18), Decl(declFileGenericType2.ts, 23, 18), Decl(declFileGenericType2.ts, 32, 18)) +>templa.dom : typeof dom, Symbol(dom, Decl(declFileGenericType2.ts, 18, 14), Decl(declFileGenericType2.ts, 23, 14), Decl(declFileGenericType2.ts, 32, 14)) +>templa : typeof templa, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>dom : typeof dom, Symbol(dom, Decl(declFileGenericType2.ts, 18, 14), Decl(declFileGenericType2.ts, 23, 14), Decl(declFileGenericType2.ts, 32, 14)) +>mvc : typeof mvc, Symbol(mvc, Decl(declFileGenericType2.ts, 18, 18), Decl(declFileGenericType2.ts, 23, 18), Decl(declFileGenericType2.ts, 32, 18)) +>AbstractElementController : AbstractElementController, Symbol(AbstractElementController, Decl(declFileGenericType2.ts, 23, 23)) +>ModelType : ModelType, Symbol(ModelType, Decl(declFileGenericType2.ts, 33, 52)) public _controllers: templa.mvc.IController[]; ->_controllers : templa.mvc.IController[] ->templa : unknown ->mvc : unknown ->IController : templa.mvc.IController ->templa : unknown ->mvc : unknown ->IModel : templa.mvc.IModel +>_controllers : templa.mvc.IController[], Symbol(_controllers, Decl(declFileGenericType2.ts, 33, 179)) +>templa : any, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : any, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>IController : templa.mvc.IController, Symbol(templa.mvc.IController, Decl(declFileGenericType2.ts, 5, 27)) +>templa : any, Symbol(templa, Decl(declFileGenericType2.ts, 0, 0), Decl(declFileGenericType2.ts, 4, 1), Decl(declFileGenericType2.ts, 8, 1), Decl(declFileGenericType2.ts, 12, 1), Decl(declFileGenericType2.ts, 17, 1), Decl(declFileGenericType2.ts, 21, 1), Decl(declFileGenericType2.ts, 30, 1)) +>mvc : any, Symbol(mvc, Decl(declFileGenericType2.ts, 1, 22), Decl(declFileGenericType2.ts, 5, 22), Decl(declFileGenericType2.ts, 9, 22), Decl(declFileGenericType2.ts, 13, 22)) +>IModel : templa.mvc.IModel, Symbol(templa.mvc.IModel, Decl(declFileGenericType2.ts, 1, 27)) constructor() { super(); >super() : void ->super : typeof AbstractElementController +>super : typeof AbstractElementController, Symbol(AbstractElementController, Decl(declFileGenericType2.ts, 23, 23)) this._controllers = []; >this._controllers = [] : undefined[] ->this._controllers : templa.mvc.IController[] ->this : AbstractCompositeElementController ->_controllers : templa.mvc.IController[] +>this._controllers : templa.mvc.IController[], Symbol(_controllers, Decl(declFileGenericType2.ts, 33, 179)) +>this : AbstractCompositeElementController, Symbol(AbstractCompositeElementController, Decl(declFileGenericType2.ts, 32, 33)) +>_controllers : templa.mvc.IController[], Symbol(_controllers, Decl(declFileGenericType2.ts, 33, 179)) >[] : undefined[] } } diff --git a/tests/baselines/reference/declFileImportChainInExportAssignment.types b/tests/baselines/reference/declFileImportChainInExportAssignment.types index 8cb130c638c..6a66d126b4e 100644 --- a/tests/baselines/reference/declFileImportChainInExportAssignment.types +++ b/tests/baselines/reference/declFileImportChainInExportAssignment.types @@ -1,24 +1,24 @@ === tests/cases/compiler/declFileImportChainInExportAssignment.ts === module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declFileImportChainInExportAssignment.ts, 0, 0)) export module c { ->c : typeof m.c +>c : typeof m.c, Symbol(c, Decl(declFileImportChainInExportAssignment.ts, 0, 10)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileImportChainInExportAssignment.ts, 1, 21)) } } } import a = m.c; ->a : typeof a ->m : typeof m ->c : typeof a +>a : typeof a, Symbol(a, Decl(declFileImportChainInExportAssignment.ts, 5, 1)) +>m : typeof m, Symbol(m, Decl(declFileImportChainInExportAssignment.ts, 0, 0)) +>c : typeof a, Symbol(a, Decl(declFileImportChainInExportAssignment.ts, 0, 10)) import b = a; ->b : typeof a ->a : typeof a +>b : typeof a, Symbol(b, Decl(declFileImportChainInExportAssignment.ts, 6, 15)) +>a : typeof a, Symbol(a, Decl(declFileImportChainInExportAssignment.ts, 0, 10)) export = b; ->b : typeof a +>b : typeof a, Symbol(b, Decl(declFileImportChainInExportAssignment.ts, 6, 15)) diff --git a/tests/baselines/reference/declFileImportModuleWithExportAssignment.types b/tests/baselines/reference/declFileImportModuleWithExportAssignment.types index 15201baa487..da2973f94db 100644 --- a/tests/baselines/reference/declFileImportModuleWithExportAssignment.types +++ b/tests/baselines/reference/declFileImportModuleWithExportAssignment.types @@ -1,64 +1,67 @@ === tests/cases/compiler/declFileImportModuleWithExportAssignment_1.ts === /**This is on import declaration*/ import a1 = require("declFileImportModuleWithExportAssignment_0"); ->a1 : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; } +>a1 : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; }, Symbol(a1, Decl(declFileImportModuleWithExportAssignment_1.ts, 0, 0)) export var a = a1; ->a : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; } ->a1 : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; } +>a : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; }, Symbol(a, Decl(declFileImportModuleWithExportAssignment_1.ts, 2, 10)) +>a1 : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; }, Symbol(a1, Decl(declFileImportModuleWithExportAssignment_1.ts, 0, 0)) a.test1(null, null, null); >a.test1(null, null, null) : void ->a.test1 : a1.connectModule ->a : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; } ->test1 : a1.connectModule +>a.test1 : a1.connectModule, Symbol(test1, Decl(declFileImportModuleWithExportAssignment_0.ts, 12, 25)) +>a : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; }, Symbol(a, Decl(declFileImportModuleWithExportAssignment_1.ts, 2, 10)) +>test1 : a1.connectModule, Symbol(test1, Decl(declFileImportModuleWithExportAssignment_0.ts, 12, 25)) +>null : null +>null : null +>null : null === tests/cases/compiler/declFileImportModuleWithExportAssignment_0.ts === module m2 { ->m2 : { (): connectExport; test1: connectModule; test2(): connectModule; } +>m2 : { (): connectExport; test1: connectModule; test2(): connectModule; }, Symbol(m2, Decl(declFileImportModuleWithExportAssignment_0.ts, 0, 0), Decl(declFileImportModuleWithExportAssignment_0.ts, 11, 3)) export interface connectModule { ->connectModule : connectModule +>connectModule : connectModule, Symbol(connectModule, Decl(declFileImportModuleWithExportAssignment_0.ts, 1, 11)) (res, req, next): void; ->res : any ->req : any ->next : any +>res : any, Symbol(res, Decl(declFileImportModuleWithExportAssignment_0.ts, 3, 9)) +>req : any, Symbol(req, Decl(declFileImportModuleWithExportAssignment_0.ts, 3, 13)) +>next : any, Symbol(next, Decl(declFileImportModuleWithExportAssignment_0.ts, 3, 18)) } export interface connectExport { ->connectExport : connectExport +>connectExport : connectExport, Symbol(connectExport, Decl(declFileImportModuleWithExportAssignment_0.ts, 4, 5)) use: (mod: connectModule) => connectExport; ->use : (mod: connectModule) => connectExport ->mod : connectModule ->connectModule : connectModule ->connectExport : connectExport +>use : (mod: connectModule) => connectExport, Symbol(use, Decl(declFileImportModuleWithExportAssignment_0.ts, 5, 36)) +>mod : connectModule, Symbol(mod, Decl(declFileImportModuleWithExportAssignment_0.ts, 6, 14)) +>connectModule : connectModule, Symbol(connectModule, Decl(declFileImportModuleWithExportAssignment_0.ts, 1, 11)) +>connectExport : connectExport, Symbol(connectExport, Decl(declFileImportModuleWithExportAssignment_0.ts, 4, 5)) listen: (port: number) => void; ->listen : (port: number) => void ->port : number +>listen : (port: number) => void, Symbol(listen, Decl(declFileImportModuleWithExportAssignment_0.ts, 6, 51)) +>port : number, Symbol(port, Decl(declFileImportModuleWithExportAssignment_0.ts, 7, 17)) } } var m2: { ->m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } +>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }, Symbol(m2, Decl(declFileImportModuleWithExportAssignment_0.ts, 0, 0), Decl(declFileImportModuleWithExportAssignment_0.ts, 11, 3)) (): m2.connectExport; ->m2 : unknown ->connectExport : m2.connectExport +>m2 : any, Symbol(m2, Decl(declFileImportModuleWithExportAssignment_0.ts, 0, 0), Decl(declFileImportModuleWithExportAssignment_0.ts, 11, 3)) +>connectExport : m2.connectExport, Symbol(m2.connectExport, Decl(declFileImportModuleWithExportAssignment_0.ts, 4, 5)) test1: m2.connectModule; ->test1 : m2.connectModule ->m2 : unknown ->connectModule : m2.connectModule +>test1 : m2.connectModule, Symbol(test1, Decl(declFileImportModuleWithExportAssignment_0.ts, 12, 25)) +>m2 : any, Symbol(m2, Decl(declFileImportModuleWithExportAssignment_0.ts, 0, 0), Decl(declFileImportModuleWithExportAssignment_0.ts, 11, 3)) +>connectModule : m2.connectModule, Symbol(m2.connectModule, Decl(declFileImportModuleWithExportAssignment_0.ts, 1, 11)) test2(): m2.connectModule; ->test2 : () => m2.connectModule ->m2 : unknown ->connectModule : m2.connectModule +>test2 : () => m2.connectModule, Symbol(test2, Decl(declFileImportModuleWithExportAssignment_0.ts, 13, 28)) +>m2 : any, Symbol(m2, Decl(declFileImportModuleWithExportAssignment_0.ts, 0, 0), Decl(declFileImportModuleWithExportAssignment_0.ts, 11, 3)) +>connectModule : m2.connectModule, Symbol(m2.connectModule, Decl(declFileImportModuleWithExportAssignment_0.ts, 1, 11)) }; export = m2; ->m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } +>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }, Symbol(m2, Decl(declFileImportModuleWithExportAssignment_0.ts, 0, 0), Decl(declFileImportModuleWithExportAssignment_0.ts, 11, 3)) diff --git a/tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.types b/tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.types index f5d443d0c57..c48156e7f61 100644 --- a/tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.types +++ b/tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.types @@ -1,23 +1,23 @@ === tests/cases/compiler/declFileImportedTypeUseInTypeArgPosition.ts === class List { } ->List : List ->T : T +>List : List, Symbol(List, Decl(declFileImportedTypeUseInTypeArgPosition.ts, 0, 0)) +>T : T, Symbol(T, Decl(declFileImportedTypeUseInTypeArgPosition.ts, 0, 11)) declare module 'mod1' { class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(declFileImportedTypeUseInTypeArgPosition.ts, 1, 23)) } } declare module 'moo' { import x = require('mod1'); ->x : typeof x +>x : typeof x, Symbol(x, Decl(declFileImportedTypeUseInTypeArgPosition.ts, 6, 22)) export var p: List; ->p : List ->List : List ->x : unknown ->Foo : x.Foo +>p : List, Symbol(p, Decl(declFileImportedTypeUseInTypeArgPosition.ts, 8, 14)) +>List : List, Symbol(List, Decl(declFileImportedTypeUseInTypeArgPosition.ts, 0, 0)) +>x : any, Symbol(x, Decl(declFileImportedTypeUseInTypeArgPosition.ts, 6, 22)) +>Foo : x.Foo, Symbol(x.Foo, Decl(declFileImportedTypeUseInTypeArgPosition.ts, 1, 23)) } diff --git a/tests/baselines/reference/declFileIndexSignatures.types b/tests/baselines/reference/declFileIndexSignatures.types index c971fb4aeb0..dca420790d9 100644 --- a/tests/baselines/reference/declFileIndexSignatures.types +++ b/tests/baselines/reference/declFileIndexSignatures.types @@ -1,66 +1,66 @@ === tests/cases/compiler/declFileIndexSignatures_0.ts === export interface IStringIndexSignature { ->IStringIndexSignature : IStringIndexSignature +>IStringIndexSignature : IStringIndexSignature, Symbol(IStringIndexSignature, Decl(declFileIndexSignatures_0.ts, 0, 0)) [s: string]: string; ->s : string +>s : string, Symbol(s, Decl(declFileIndexSignatures_0.ts, 2, 5)) } export interface INumberIndexSignature { ->INumberIndexSignature : INumberIndexSignature +>INumberIndexSignature : INumberIndexSignature, Symbol(INumberIndexSignature, Decl(declFileIndexSignatures_0.ts, 3, 1)) [n: number]: number; ->n : number +>n : number, Symbol(n, Decl(declFileIndexSignatures_0.ts, 5, 5)) } export interface IBothIndexSignature { ->IBothIndexSignature : IBothIndexSignature +>IBothIndexSignature : IBothIndexSignature, Symbol(IBothIndexSignature, Decl(declFileIndexSignatures_0.ts, 6, 1)) [s: string]: any; ->s : string +>s : string, Symbol(s, Decl(declFileIndexSignatures_0.ts, 9, 5)) [n: number]: number; ->n : number +>n : number, Symbol(n, Decl(declFileIndexSignatures_0.ts, 10, 5)) } export interface IIndexSignatureWithTypeParameter { ->IIndexSignatureWithTypeParameter : IIndexSignatureWithTypeParameter ->T : T +>IIndexSignatureWithTypeParameter : IIndexSignatureWithTypeParameter, Symbol(IIndexSignatureWithTypeParameter, Decl(declFileIndexSignatures_0.ts, 11, 1)) +>T : T, Symbol(T, Decl(declFileIndexSignatures_0.ts, 13, 50)) [a: string]: T; ->a : string ->T : T +>a : string, Symbol(a, Decl(declFileIndexSignatures_0.ts, 14, 5)) +>T : T, Symbol(T, Decl(declFileIndexSignatures_0.ts, 13, 50)) } === tests/cases/compiler/declFileIndexSignatures_1.ts === interface IGlobalStringIndexSignature { ->IGlobalStringIndexSignature : IGlobalStringIndexSignature +>IGlobalStringIndexSignature : IGlobalStringIndexSignature, Symbol(IGlobalStringIndexSignature, Decl(declFileIndexSignatures_1.ts, 0, 0)) [s: string]: string; ->s : string +>s : string, Symbol(s, Decl(declFileIndexSignatures_1.ts, 1, 5)) } interface IGlobalNumberIndexSignature { ->IGlobalNumberIndexSignature : IGlobalNumberIndexSignature +>IGlobalNumberIndexSignature : IGlobalNumberIndexSignature, Symbol(IGlobalNumberIndexSignature, Decl(declFileIndexSignatures_1.ts, 2, 1)) [n: number]: number; ->n : number +>n : number, Symbol(n, Decl(declFileIndexSignatures_1.ts, 4, 5)) } interface IGlobalBothIndexSignature { ->IGlobalBothIndexSignature : IGlobalBothIndexSignature +>IGlobalBothIndexSignature : IGlobalBothIndexSignature, Symbol(IGlobalBothIndexSignature, Decl(declFileIndexSignatures_1.ts, 5, 1)) [s: string]: any; ->s : string +>s : string, Symbol(s, Decl(declFileIndexSignatures_1.ts, 8, 5)) [n: number]: number; ->n : number +>n : number, Symbol(n, Decl(declFileIndexSignatures_1.ts, 9, 5)) } interface IGlobalIndexSignatureWithTypeParameter { ->IGlobalIndexSignatureWithTypeParameter : IGlobalIndexSignatureWithTypeParameter ->T : T +>IGlobalIndexSignatureWithTypeParameter : IGlobalIndexSignatureWithTypeParameter, Symbol(IGlobalIndexSignatureWithTypeParameter, Decl(declFileIndexSignatures_1.ts, 10, 1)) +>T : T, Symbol(T, Decl(declFileIndexSignatures_1.ts, 12, 49)) [a: string]: T; ->a : string ->T : T +>a : string, Symbol(a, Decl(declFileIndexSignatures_1.ts, 13, 5)) +>T : T, Symbol(T, Decl(declFileIndexSignatures_1.ts, 12, 49)) } diff --git a/tests/baselines/reference/declFileInternalAliases.types b/tests/baselines/reference/declFileInternalAliases.types index 6dbc8db5c38..49139e74de7 100644 --- a/tests/baselines/reference/declFileInternalAliases.types +++ b/tests/baselines/reference/declFileInternalAliases.types @@ -1,34 +1,34 @@ === tests/cases/compiler/declFileInternalAliases.ts === module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declFileInternalAliases.ts, 0, 0)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileInternalAliases.ts, 0, 10)) } } module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(declFileInternalAliases.ts, 3, 1)) import x = m.c; ->x : typeof x ->m : typeof m ->c : x +>x : typeof x, Symbol(x, Decl(declFileInternalAliases.ts, 4, 11)) +>m : typeof m, Symbol(m, Decl(declFileInternalAliases.ts, 0, 0)) +>c : x, Symbol(x, Decl(declFileInternalAliases.ts, 0, 10)) export var d = new x(); // emit the type as m.c ->d : x +>d : x, Symbol(d, Decl(declFileInternalAliases.ts, 6, 14)) >new x() : x ->x : typeof x +>x : typeof x, Symbol(x, Decl(declFileInternalAliases.ts, 4, 11)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(declFileInternalAliases.ts, 7, 1)) export import x = m.c; ->x : typeof x ->m : typeof m ->c : x +>x : typeof x, Symbol(x, Decl(declFileInternalAliases.ts, 8, 11)) +>m : typeof m, Symbol(m, Decl(declFileInternalAliases.ts, 0, 0)) +>c : x, Symbol(x, Decl(declFileInternalAliases.ts, 0, 10)) export var d = new x(); // emit the type as x ->d : x +>d : x, Symbol(d, Decl(declFileInternalAliases.ts, 10, 14)) >new x() : x ->x : typeof x +>x : typeof x, Symbol(x, Decl(declFileInternalAliases.ts, 8, 11)) } diff --git a/tests/baselines/reference/declFileMethods.types b/tests/baselines/reference/declFileMethods.types index 6432540f5a4..39e8d0e48af 100644 --- a/tests/baselines/reference/declFileMethods.types +++ b/tests/baselines/reference/declFileMethods.types @@ -1,447 +1,455 @@ === tests/cases/compiler/declFileMethods_0.ts === export class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(declFileMethods_0.ts, 0, 0)) /** This comment should appear for foo*/ public foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(declFileMethods_0.ts, 1, 17)) } /** This is comment for function signature*/ public fooWithParameters(/** this is comment about a*/a: string, ->fooWithParameters : (a: string, b: number) => void ->a : string +>fooWithParameters : (a: string, b: number) => void, Symbol(fooWithParameters, Decl(declFileMethods_0.ts, 4, 5)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 6, 29)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileMethods_0.ts, 6, 68)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileMethods_0.ts, 9, 11)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 6, 29)) } public fooWithRestParameters(a: string, ...rests: string[]) { ->fooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>fooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(fooWithRestParameters, Decl(declFileMethods_0.ts, 10, 5)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 11, 33)) +>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 11, 43)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 11, 33)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 11, 43)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } public fooWithOverloads(a: string): string; ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_0.ts, 13, 5), Decl(declFileMethods_0.ts, 15, 47), Decl(declFileMethods_0.ts, 16, 47)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 15, 28)) public fooWithOverloads(a: number): number; ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_0.ts, 13, 5), Decl(declFileMethods_0.ts, 15, 47), Decl(declFileMethods_0.ts, 16, 47)) +>a : number, Symbol(a, Decl(declFileMethods_0.ts, 16, 28)) public fooWithOverloads(a: any): any { ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : any +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_0.ts, 13, 5), Decl(declFileMethods_0.ts, 15, 47), Decl(declFileMethods_0.ts, 16, 47)) +>a : any, Symbol(a, Decl(declFileMethods_0.ts, 17, 28)) return a; ->a : any +>a : any, Symbol(a, Decl(declFileMethods_0.ts, 17, 28)) } /** This comment should appear for privateFoo*/ private privateFoo() { ->privateFoo : () => void +>privateFoo : () => void, Symbol(privateFoo, Decl(declFileMethods_0.ts, 19, 5)) } /** This is comment for function signature*/ private privateFooWithParameters(/** this is comment about a*/a: string, ->privateFooWithParameters : (a: string, b: number) => void ->a : string +>privateFooWithParameters : (a: string, b: number) => void, Symbol(privateFooWithParameters, Decl(declFileMethods_0.ts, 24, 5)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 26, 37)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileMethods_0.ts, 26, 76)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileMethods_0.ts, 29, 11)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 26, 37)) } private privateFooWithRestParameters(a: string, ...rests: string[]) { ->privateFooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>privateFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(privateFooWithRestParameters, Decl(declFileMethods_0.ts, 30, 5)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 31, 41)) +>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 31, 51)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 31, 41)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 31, 51)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } private privateFooWithOverloads(a: string): string; ->privateFooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>privateFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(privateFooWithOverloads, Decl(declFileMethods_0.ts, 33, 5), Decl(declFileMethods_0.ts, 34, 55), Decl(declFileMethods_0.ts, 35, 55)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 34, 36)) private privateFooWithOverloads(a: number): number; ->privateFooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>privateFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(privateFooWithOverloads, Decl(declFileMethods_0.ts, 33, 5), Decl(declFileMethods_0.ts, 34, 55), Decl(declFileMethods_0.ts, 35, 55)) +>a : number, Symbol(a, Decl(declFileMethods_0.ts, 35, 36)) private privateFooWithOverloads(a: any): any { ->privateFooWithOverloads : { (a: string): string; (a: number): number; } ->a : any +>privateFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(privateFooWithOverloads, Decl(declFileMethods_0.ts, 33, 5), Decl(declFileMethods_0.ts, 34, 55), Decl(declFileMethods_0.ts, 35, 55)) +>a : any, Symbol(a, Decl(declFileMethods_0.ts, 36, 36)) return a; ->a : any +>a : any, Symbol(a, Decl(declFileMethods_0.ts, 36, 36)) } /** This comment should appear for static foo*/ static staticFoo() { ->staticFoo : () => void +>staticFoo : () => void, Symbol(c1.staticFoo, Decl(declFileMethods_0.ts, 38, 5)) } /** This is comment for function signature*/ static staticFooWithParameters(/** this is comment about a*/a: string, ->staticFooWithParameters : (a: string, b: number) => void ->a : string +>staticFooWithParameters : (a: string, b: number) => void, Symbol(c1.staticFooWithParameters, Decl(declFileMethods_0.ts, 43, 5)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 45, 35)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileMethods_0.ts, 45, 74)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileMethods_0.ts, 48, 11)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 45, 35)) } static staticFooWithRestParameters(a: string, ...rests: string[]) { ->staticFooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>staticFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(c1.staticFooWithRestParameters, Decl(declFileMethods_0.ts, 49, 5)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 50, 39)) +>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 50, 49)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 50, 39)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 50, 49)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } static staticFooWithOverloads(a: string): string; ->staticFooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>staticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c1.staticFooWithOverloads, Decl(declFileMethods_0.ts, 52, 5), Decl(declFileMethods_0.ts, 53, 53), Decl(declFileMethods_0.ts, 54, 53)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 53, 34)) static staticFooWithOverloads(a: number): number; ->staticFooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>staticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c1.staticFooWithOverloads, Decl(declFileMethods_0.ts, 52, 5), Decl(declFileMethods_0.ts, 53, 53), Decl(declFileMethods_0.ts, 54, 53)) +>a : number, Symbol(a, Decl(declFileMethods_0.ts, 54, 34)) static staticFooWithOverloads(a: any): any { ->staticFooWithOverloads : { (a: string): string; (a: number): number; } ->a : any +>staticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c1.staticFooWithOverloads, Decl(declFileMethods_0.ts, 52, 5), Decl(declFileMethods_0.ts, 53, 53), Decl(declFileMethods_0.ts, 54, 53)) +>a : any, Symbol(a, Decl(declFileMethods_0.ts, 55, 34)) return a; ->a : any +>a : any, Symbol(a, Decl(declFileMethods_0.ts, 55, 34)) } /** This comment should appear for privateStaticFoo*/ private static privateStaticFoo() { ->privateStaticFoo : () => void +>privateStaticFoo : () => void, Symbol(c1.privateStaticFoo, Decl(declFileMethods_0.ts, 57, 5)) } /** This is comment for function signature*/ private static privateStaticFooWithParameters(/** this is comment about a*/a: string, ->privateStaticFooWithParameters : (a: string, b: number) => void ->a : string +>privateStaticFooWithParameters : (a: string, b: number) => void, Symbol(c1.privateStaticFooWithParameters, Decl(declFileMethods_0.ts, 62, 5)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 64, 50)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileMethods_0.ts, 64, 89)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileMethods_0.ts, 67, 11)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 64, 50)) } private static privateStaticFooWithRestParameters(a: string, ...rests: string[]) { ->privateStaticFooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>privateStaticFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(c1.privateStaticFooWithRestParameters, Decl(declFileMethods_0.ts, 68, 5)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 69, 54)) +>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 69, 64)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 69, 54)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 69, 64)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } private static privateStaticFooWithOverloads(a: string): string; ->privateStaticFooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c1.privateStaticFooWithOverloads, Decl(declFileMethods_0.ts, 71, 5), Decl(declFileMethods_0.ts, 72, 68), Decl(declFileMethods_0.ts, 73, 68)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 72, 49)) private static privateStaticFooWithOverloads(a: number): number; ->privateStaticFooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c1.privateStaticFooWithOverloads, Decl(declFileMethods_0.ts, 71, 5), Decl(declFileMethods_0.ts, 72, 68), Decl(declFileMethods_0.ts, 73, 68)) +>a : number, Symbol(a, Decl(declFileMethods_0.ts, 73, 49)) private static privateStaticFooWithOverloads(a: any): any { ->privateStaticFooWithOverloads : { (a: string): string; (a: number): number; } ->a : any +>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c1.privateStaticFooWithOverloads, Decl(declFileMethods_0.ts, 71, 5), Decl(declFileMethods_0.ts, 72, 68), Decl(declFileMethods_0.ts, 73, 68)) +>a : any, Symbol(a, Decl(declFileMethods_0.ts, 74, 49)) return a; ->a : any +>a : any, Symbol(a, Decl(declFileMethods_0.ts, 74, 49)) } } export interface I1 { ->I1 : I1 +>I1 : I1, Symbol(I1, Decl(declFileMethods_0.ts, 77, 1)) /** This comment should appear for foo*/ foo(): string; ->foo : () => string +>foo : () => string, Symbol(foo, Decl(declFileMethods_0.ts, 79, 21)) /** This is comment for function signature*/ fooWithParameters(/** this is comment about a*/a: string, ->fooWithParameters : (a: string, b: number) => void ->a : string +>fooWithParameters : (a: string, b: number) => void, Symbol(fooWithParameters, Decl(declFileMethods_0.ts, 81, 18)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 84, 22)) /** this is comment for b*/ b: number): void; ->b : number +>b : number, Symbol(b, Decl(declFileMethods_0.ts, 84, 61)) fooWithRestParameters(a: string, ...rests: string[]): string; ->fooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>fooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(fooWithRestParameters, Decl(declFileMethods_0.ts, 86, 25)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 88, 26)) +>rests : string[], Symbol(rests, Decl(declFileMethods_0.ts, 88, 36)) fooWithOverloads(a: string): string; ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_0.ts, 88, 65), Decl(declFileMethods_0.ts, 90, 40)) +>a : string, Symbol(a, Decl(declFileMethods_0.ts, 90, 21)) fooWithOverloads(a: number): number; ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_0.ts, 88, 65), Decl(declFileMethods_0.ts, 90, 40)) +>a : number, Symbol(a, Decl(declFileMethods_0.ts, 91, 21)) } === tests/cases/compiler/declFileMethods_1.ts === class c2 { ->c2 : c2 +>c2 : c2, Symbol(c2, Decl(declFileMethods_1.ts, 0, 0)) /** This comment should appear for foo*/ public foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(declFileMethods_1.ts, 0, 10)) } /** This is comment for function signature*/ public fooWithParameters(/** this is comment about a*/a: string, ->fooWithParameters : (a: string, b: number) => void ->a : string +>fooWithParameters : (a: string, b: number) => void, Symbol(fooWithParameters, Decl(declFileMethods_1.ts, 3, 5)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 5, 29)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileMethods_1.ts, 5, 68)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileMethods_1.ts, 8, 11)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 5, 29)) } public fooWithRestParameters(a: string, ...rests: string[]) { ->fooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>fooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(fooWithRestParameters, Decl(declFileMethods_1.ts, 9, 5)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 10, 33)) +>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 10, 43)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 10, 33)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 10, 43)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } public fooWithOverloads(a: string): string; ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_1.ts, 12, 5), Decl(declFileMethods_1.ts, 14, 47), Decl(declFileMethods_1.ts, 15, 47)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 14, 28)) public fooWithOverloads(a: number): number; ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_1.ts, 12, 5), Decl(declFileMethods_1.ts, 14, 47), Decl(declFileMethods_1.ts, 15, 47)) +>a : number, Symbol(a, Decl(declFileMethods_1.ts, 15, 28)) public fooWithOverloads(a: any): any { ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : any +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_1.ts, 12, 5), Decl(declFileMethods_1.ts, 14, 47), Decl(declFileMethods_1.ts, 15, 47)) +>a : any, Symbol(a, Decl(declFileMethods_1.ts, 16, 28)) return a; ->a : any +>a : any, Symbol(a, Decl(declFileMethods_1.ts, 16, 28)) } /** This comment should appear for privateFoo*/ private privateFoo() { ->privateFoo : () => void +>privateFoo : () => void, Symbol(privateFoo, Decl(declFileMethods_1.ts, 18, 5)) } /** This is comment for function signature*/ private privateFooWithParameters(/** this is comment about a*/a: string, ->privateFooWithParameters : (a: string, b: number) => void ->a : string +>privateFooWithParameters : (a: string, b: number) => void, Symbol(privateFooWithParameters, Decl(declFileMethods_1.ts, 23, 5)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 25, 37)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileMethods_1.ts, 25, 76)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileMethods_1.ts, 28, 11)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 25, 37)) } private privateFooWithRestParameters(a: string, ...rests: string[]) { ->privateFooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>privateFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(privateFooWithRestParameters, Decl(declFileMethods_1.ts, 29, 5)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 30, 41)) +>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 30, 51)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 30, 41)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 30, 51)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } private privateFooWithOverloads(a: string): string; ->privateFooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>privateFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(privateFooWithOverloads, Decl(declFileMethods_1.ts, 32, 5), Decl(declFileMethods_1.ts, 33, 55), Decl(declFileMethods_1.ts, 34, 55)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 33, 36)) private privateFooWithOverloads(a: number): number; ->privateFooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>privateFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(privateFooWithOverloads, Decl(declFileMethods_1.ts, 32, 5), Decl(declFileMethods_1.ts, 33, 55), Decl(declFileMethods_1.ts, 34, 55)) +>a : number, Symbol(a, Decl(declFileMethods_1.ts, 34, 36)) private privateFooWithOverloads(a: any): any { ->privateFooWithOverloads : { (a: string): string; (a: number): number; } ->a : any +>privateFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(privateFooWithOverloads, Decl(declFileMethods_1.ts, 32, 5), Decl(declFileMethods_1.ts, 33, 55), Decl(declFileMethods_1.ts, 34, 55)) +>a : any, Symbol(a, Decl(declFileMethods_1.ts, 35, 36)) return a; ->a : any +>a : any, Symbol(a, Decl(declFileMethods_1.ts, 35, 36)) } /** This comment should appear for static foo*/ static staticFoo() { ->staticFoo : () => void +>staticFoo : () => void, Symbol(c2.staticFoo, Decl(declFileMethods_1.ts, 37, 5)) } /** This is comment for function signature*/ static staticFooWithParameters(/** this is comment about a*/a: string, ->staticFooWithParameters : (a: string, b: number) => void ->a : string +>staticFooWithParameters : (a: string, b: number) => void, Symbol(c2.staticFooWithParameters, Decl(declFileMethods_1.ts, 42, 5)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 44, 35)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileMethods_1.ts, 44, 74)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileMethods_1.ts, 47, 11)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 44, 35)) } static staticFooWithRestParameters(a: string, ...rests: string[]) { ->staticFooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>staticFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(c2.staticFooWithRestParameters, Decl(declFileMethods_1.ts, 48, 5)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 49, 39)) +>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 49, 49)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 49, 39)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 49, 49)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } static staticFooWithOverloads(a: string): string; ->staticFooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>staticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c2.staticFooWithOverloads, Decl(declFileMethods_1.ts, 51, 5), Decl(declFileMethods_1.ts, 52, 53), Decl(declFileMethods_1.ts, 53, 53)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 52, 34)) static staticFooWithOverloads(a: number): number; ->staticFooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>staticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c2.staticFooWithOverloads, Decl(declFileMethods_1.ts, 51, 5), Decl(declFileMethods_1.ts, 52, 53), Decl(declFileMethods_1.ts, 53, 53)) +>a : number, Symbol(a, Decl(declFileMethods_1.ts, 53, 34)) static staticFooWithOverloads(a: any): any { ->staticFooWithOverloads : { (a: string): string; (a: number): number; } ->a : any +>staticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c2.staticFooWithOverloads, Decl(declFileMethods_1.ts, 51, 5), Decl(declFileMethods_1.ts, 52, 53), Decl(declFileMethods_1.ts, 53, 53)) +>a : any, Symbol(a, Decl(declFileMethods_1.ts, 54, 34)) return a; ->a : any +>a : any, Symbol(a, Decl(declFileMethods_1.ts, 54, 34)) } /** This comment should appear for privateStaticFoo*/ private static privateStaticFoo() { ->privateStaticFoo : () => void +>privateStaticFoo : () => void, Symbol(c2.privateStaticFoo, Decl(declFileMethods_1.ts, 56, 5)) } /** This is comment for function signature*/ private static privateStaticFooWithParameters(/** this is comment about a*/a: string, ->privateStaticFooWithParameters : (a: string, b: number) => void ->a : string +>privateStaticFooWithParameters : (a: string, b: number) => void, Symbol(c2.privateStaticFooWithParameters, Decl(declFileMethods_1.ts, 61, 5)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 63, 50)) /** this is comment for b*/ b: number) { ->b : number +>b : number, Symbol(b, Decl(declFileMethods_1.ts, 63, 89)) var d = a; ->d : string ->a : string +>d : string, Symbol(d, Decl(declFileMethods_1.ts, 66, 11)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 63, 50)) } private static privateStaticFooWithRestParameters(a: string, ...rests: string[]) { ->privateStaticFooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>privateStaticFooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(c2.privateStaticFooWithRestParameters, Decl(declFileMethods_1.ts, 67, 5)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 68, 54)) +>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 68, 64)) return a + rests.join(""); >a + rests.join("") : string ->a : string +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 68, 54)) >rests.join("") : string ->rests.join : (separator?: string) => string ->rests : string[] ->join : (separator?: string) => string +>rests.join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 68, 64)) +>join : (separator?: string) => string, Symbol(Array.join, Decl(lib.d.ts, 1035, 31)) +>"" : string } private static privateStaticFooWithOverloads(a: string): string; ->privateStaticFooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c2.privateStaticFooWithOverloads, Decl(declFileMethods_1.ts, 70, 5), Decl(declFileMethods_1.ts, 71, 68), Decl(declFileMethods_1.ts, 72, 68)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 71, 49)) private static privateStaticFooWithOverloads(a: number): number; ->privateStaticFooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c2.privateStaticFooWithOverloads, Decl(declFileMethods_1.ts, 70, 5), Decl(declFileMethods_1.ts, 71, 68), Decl(declFileMethods_1.ts, 72, 68)) +>a : number, Symbol(a, Decl(declFileMethods_1.ts, 72, 49)) private static privateStaticFooWithOverloads(a: any): any { ->privateStaticFooWithOverloads : { (a: string): string; (a: number): number; } ->a : any +>privateStaticFooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(c2.privateStaticFooWithOverloads, Decl(declFileMethods_1.ts, 70, 5), Decl(declFileMethods_1.ts, 71, 68), Decl(declFileMethods_1.ts, 72, 68)) +>a : any, Symbol(a, Decl(declFileMethods_1.ts, 73, 49)) return a; ->a : any +>a : any, Symbol(a, Decl(declFileMethods_1.ts, 73, 49)) } } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(declFileMethods_1.ts, 76, 1)) /** This comment should appear for foo*/ foo(): string; ->foo : () => string +>foo : () => string, Symbol(foo, Decl(declFileMethods_1.ts, 78, 14)) /** This is comment for function signature*/ fooWithParameters(/** this is comment about a*/a: string, ->fooWithParameters : (a: string, b: number) => void ->a : string +>fooWithParameters : (a: string, b: number) => void, Symbol(fooWithParameters, Decl(declFileMethods_1.ts, 80, 18)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 83, 22)) /** this is comment for b*/ b: number): void; ->b : number +>b : number, Symbol(b, Decl(declFileMethods_1.ts, 83, 61)) fooWithRestParameters(a: string, ...rests: string[]): string; ->fooWithRestParameters : (a: string, ...rests: string[]) => string ->a : string ->rests : string[] +>fooWithRestParameters : (a: string, ...rests: string[]) => string, Symbol(fooWithRestParameters, Decl(declFileMethods_1.ts, 85, 25)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 87, 26)) +>rests : string[], Symbol(rests, Decl(declFileMethods_1.ts, 87, 36)) fooWithOverloads(a: string): string; ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : string +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_1.ts, 87, 65), Decl(declFileMethods_1.ts, 89, 40)) +>a : string, Symbol(a, Decl(declFileMethods_1.ts, 89, 21)) fooWithOverloads(a: number): number; ->fooWithOverloads : { (a: string): string; (a: number): number; } ->a : number +>fooWithOverloads : { (a: string): string; (a: number): number; }, Symbol(fooWithOverloads, Decl(declFileMethods_1.ts, 87, 65), Decl(declFileMethods_1.ts, 89, 40)) +>a : number, Symbol(a, Decl(declFileMethods_1.ts, 90, 21)) } diff --git a/tests/baselines/reference/declFileModuleAssignmentInObjectLiteralProperty.types b/tests/baselines/reference/declFileModuleAssignmentInObjectLiteralProperty.types index 6fd697b7ea2..f6b54d7766b 100644 --- a/tests/baselines/reference/declFileModuleAssignmentInObjectLiteralProperty.types +++ b/tests/baselines/reference/declFileModuleAssignmentInObjectLiteralProperty.types @@ -1,28 +1,28 @@ === tests/cases/compiler/declFileModuleAssignmentInObjectLiteralProperty.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(declFileModuleAssignmentInObjectLiteralProperty.ts, 0, 0)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileModuleAssignmentInObjectLiteralProperty.ts, 1, 11)) } } var d = { ->d : { m1: { m: typeof m1; }; m2: { c: typeof m1.c; }; } +>d : { m1: { m: typeof m1; }; m2: { c: typeof m1.c; }; }, Symbol(d, Decl(declFileModuleAssignmentInObjectLiteralProperty.ts, 5, 3)) >{ m1: { m: m1 }, m2: { c: m1.c },} : { m1: { m: typeof m1; }; m2: { c: typeof m1.c; }; } m1: { m: m1 }, ->m1 : { m: typeof m1; } +>m1 : { m: typeof m1; }, Symbol(m1, Decl(declFileModuleAssignmentInObjectLiteralProperty.ts, 5, 9)) >{ m: m1 } : { m: typeof m1; } ->m : typeof m1 ->m1 : typeof m1 +>m : typeof m1, Symbol(m, Decl(declFileModuleAssignmentInObjectLiteralProperty.ts, 6, 9)) +>m1 : typeof m1, Symbol(m1, Decl(declFileModuleAssignmentInObjectLiteralProperty.ts, 0, 0)) m2: { c: m1.c }, ->m2 : { c: typeof m1.c; } +>m2 : { c: typeof m1.c; }, Symbol(m2, Decl(declFileModuleAssignmentInObjectLiteralProperty.ts, 6, 18)) >{ c: m1.c } : { c: typeof m1.c; } ->c : typeof m1.c ->m1.c : typeof m1.c ->m1 : typeof m1 ->c : typeof m1.c +>c : typeof m1.c, Symbol(c, Decl(declFileModuleAssignmentInObjectLiteralProperty.ts, 7, 9)) +>m1.c : typeof m1.c, Symbol(m1.c, Decl(declFileModuleAssignmentInObjectLiteralProperty.ts, 1, 11)) +>m1 : typeof m1, Symbol(m1, Decl(declFileModuleAssignmentInObjectLiteralProperty.ts, 0, 0)) +>c : typeof m1.c, Symbol(m1.c, Decl(declFileModuleAssignmentInObjectLiteralProperty.ts, 1, 11)) }; diff --git a/tests/baselines/reference/declFileModuleContinuation.types b/tests/baselines/reference/declFileModuleContinuation.types index 0080d7cbbf3..922fd677134 100644 --- a/tests/baselines/reference/declFileModuleContinuation.types +++ b/tests/baselines/reference/declFileModuleContinuation.types @@ -1,22 +1,24 @@ === tests/cases/compiler/declFileModuleContinuation.ts === module A.C { ->A : typeof A ->C : unknown +>A : typeof A, Symbol(A, Decl(declFileModuleContinuation.ts, 0, 0), Decl(declFileModuleContinuation.ts, 3, 1)) +>C : any, Symbol(C, Decl(declFileModuleContinuation.ts, 0, 9)) export interface Z { ->Z : Z +>Z : Z, Symbol(Z, Decl(declFileModuleContinuation.ts, 0, 12)) } } module A.B.C { ->A : typeof A ->B : typeof B ->C : typeof C +>A : typeof A, Symbol(A, Decl(declFileModuleContinuation.ts, 0, 0), Decl(declFileModuleContinuation.ts, 3, 1)) +>B : typeof B, Symbol(B, Decl(declFileModuleContinuation.ts, 5, 9)) +>C : typeof C, Symbol(C, Decl(declFileModuleContinuation.ts, 5, 11)) export class W implements A.C.Z { ->W : W ->A : typeof A ->C : unknown ->Z : A.C.Z +>W : W, Symbol(W, Decl(declFileModuleContinuation.ts, 5, 14)) +>A.C.Z : any, Symbol(A.C.Z, Decl(declFileModuleContinuation.ts, 0, 12)) +>A.C : any, Symbol(C, Decl(declFileModuleContinuation.ts, 0, 9)) +>A : typeof A, Symbol(A, Decl(declFileModuleContinuation.ts, 0, 0), Decl(declFileModuleContinuation.ts, 3, 1)) +>C : any, Symbol(C, Decl(declFileModuleContinuation.ts, 0, 9)) +>Z : A.C.Z, Symbol(A.C.Z, Decl(declFileModuleContinuation.ts, 0, 12)) } } diff --git a/tests/baselines/reference/declFileModuleWithPropertyOfTypeModule.types b/tests/baselines/reference/declFileModuleWithPropertyOfTypeModule.types index ecdc4396df4..f5299222663 100644 --- a/tests/baselines/reference/declFileModuleWithPropertyOfTypeModule.types +++ b/tests/baselines/reference/declFileModuleWithPropertyOfTypeModule.types @@ -1,13 +1,13 @@ === tests/cases/compiler/declFileModuleWithPropertyOfTypeModule.ts === module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declFileModuleWithPropertyOfTypeModule.ts, 0, 0)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileModuleWithPropertyOfTypeModule.ts, 1, 10)) } export var a = m; ->a : typeof m ->m : typeof m +>a : typeof m, Symbol(a, Decl(declFileModuleWithPropertyOfTypeModule.ts, 5, 14)) +>m : typeof m, Symbol(m, Decl(declFileModuleWithPropertyOfTypeModule.ts, 0, 0)) } diff --git a/tests/baselines/reference/declFileOptionalInterfaceMethod.types b/tests/baselines/reference/declFileOptionalInterfaceMethod.types index c42c14f4fe5..d050e8a4647 100644 --- a/tests/baselines/reference/declFileOptionalInterfaceMethod.types +++ b/tests/baselines/reference/declFileOptionalInterfaceMethod.types @@ -1,9 +1,9 @@ === tests/cases/compiler/declFileOptionalInterfaceMethod.ts === interface X { ->X : X +>X : X, Symbol(X, Decl(declFileOptionalInterfaceMethod.ts, 0, 0)) f? (); ->f : () => any ->T : T +>f : () => any, Symbol(f, Decl(declFileOptionalInterfaceMethod.ts, 0, 13)) +>T : T, Symbol(T, Decl(declFileOptionalInterfaceMethod.ts, 1, 8)) } diff --git a/tests/baselines/reference/declFilePrivateMethodOverloads.types b/tests/baselines/reference/declFilePrivateMethodOverloads.types index 9989fea31f0..4c1f75ccebd 100644 --- a/tests/baselines/reference/declFilePrivateMethodOverloads.types +++ b/tests/baselines/reference/declFilePrivateMethodOverloads.types @@ -1,76 +1,76 @@ === tests/cases/compiler/declFilePrivateMethodOverloads.ts === interface IContext { ->IContext : IContext +>IContext : IContext, Symbol(IContext, Decl(declFilePrivateMethodOverloads.ts, 0, 0)) someMethod(); ->someMethod : () => any +>someMethod : () => any, Symbol(someMethod, Decl(declFilePrivateMethodOverloads.ts, 1, 20)) } class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(declFilePrivateMethodOverloads.ts, 3, 1)) private _forEachBindingContext(bindingContext: IContext, fn: (bindingContext: IContext) => void); ->_forEachBindingContext : { (bindingContext: IContext, fn: (bindingContext: IContext) => void): any; (bindingContextArray: IContext[], fn: (bindingContext: IContext) => void): any; } ->bindingContext : IContext ->IContext : IContext ->fn : (bindingContext: IContext) => void ->bindingContext : IContext ->IContext : IContext +>_forEachBindingContext : { (bindingContext: IContext, fn: (bindingContext: IContext) => void): any; (bindingContextArray: IContext[], fn: (bindingContext: IContext) => void): any; }, Symbol(_forEachBindingContext, Decl(declFilePrivateMethodOverloads.ts, 4, 10), Decl(declFilePrivateMethodOverloads.ts, 5, 101), Decl(declFilePrivateMethodOverloads.ts, 6, 113)) +>bindingContext : IContext, Symbol(bindingContext, Decl(declFilePrivateMethodOverloads.ts, 5, 35)) +>IContext : IContext, Symbol(IContext, Decl(declFilePrivateMethodOverloads.ts, 0, 0)) +>fn : (bindingContext: IContext) => void, Symbol(fn, Decl(declFilePrivateMethodOverloads.ts, 5, 60)) +>bindingContext : IContext, Symbol(bindingContext, Decl(declFilePrivateMethodOverloads.ts, 5, 66)) +>IContext : IContext, Symbol(IContext, Decl(declFilePrivateMethodOverloads.ts, 0, 0)) private _forEachBindingContext(bindingContextArray: Array, fn: (bindingContext: IContext) => void); ->_forEachBindingContext : { (bindingContext: IContext, fn: (bindingContext: IContext) => void): any; (bindingContextArray: IContext[], fn: (bindingContext: IContext) => void): any; } ->bindingContextArray : IContext[] ->Array : T[] ->IContext : IContext ->fn : (bindingContext: IContext) => void ->bindingContext : IContext ->IContext : IContext +>_forEachBindingContext : { (bindingContext: IContext, fn: (bindingContext: IContext) => void): any; (bindingContextArray: IContext[], fn: (bindingContext: IContext) => void): any; }, Symbol(_forEachBindingContext, Decl(declFilePrivateMethodOverloads.ts, 4, 10), Decl(declFilePrivateMethodOverloads.ts, 5, 101), Decl(declFilePrivateMethodOverloads.ts, 6, 113)) +>bindingContextArray : IContext[], Symbol(bindingContextArray, Decl(declFilePrivateMethodOverloads.ts, 6, 35)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>IContext : IContext, Symbol(IContext, Decl(declFilePrivateMethodOverloads.ts, 0, 0)) +>fn : (bindingContext: IContext) => void, Symbol(fn, Decl(declFilePrivateMethodOverloads.ts, 6, 72)) +>bindingContext : IContext, Symbol(bindingContext, Decl(declFilePrivateMethodOverloads.ts, 6, 78)) +>IContext : IContext, Symbol(IContext, Decl(declFilePrivateMethodOverloads.ts, 0, 0)) private _forEachBindingContext(context, fn: (bindingContext: IContext) => void): void { ->_forEachBindingContext : { (bindingContext: IContext, fn: (bindingContext: IContext) => void): any; (bindingContextArray: IContext[], fn: (bindingContext: IContext) => void): any; } ->context : any ->fn : (bindingContext: IContext) => void ->bindingContext : IContext ->IContext : IContext +>_forEachBindingContext : { (bindingContext: IContext, fn: (bindingContext: IContext) => void): any; (bindingContextArray: IContext[], fn: (bindingContext: IContext) => void): any; }, Symbol(_forEachBindingContext, Decl(declFilePrivateMethodOverloads.ts, 4, 10), Decl(declFilePrivateMethodOverloads.ts, 5, 101), Decl(declFilePrivateMethodOverloads.ts, 6, 113)) +>context : any, Symbol(context, Decl(declFilePrivateMethodOverloads.ts, 7, 35)) +>fn : (bindingContext: IContext) => void, Symbol(fn, Decl(declFilePrivateMethodOverloads.ts, 7, 43)) +>bindingContext : IContext, Symbol(bindingContext, Decl(declFilePrivateMethodOverloads.ts, 7, 49)) +>IContext : IContext, Symbol(IContext, Decl(declFilePrivateMethodOverloads.ts, 0, 0)) // Function here } private overloadWithArityDifference(bindingContext: IContext); ->overloadWithArityDifference : { (bindingContext: IContext): any; (bindingContextArray: IContext[], fn: (bindingContext: IContext) => void): any; } ->bindingContext : IContext ->IContext : IContext +>overloadWithArityDifference : { (bindingContext: IContext): any; (bindingContextArray: IContext[], fn: (bindingContext: IContext) => void): any; }, Symbol(overloadWithArityDifference, Decl(declFilePrivateMethodOverloads.ts, 9, 5), Decl(declFilePrivateMethodOverloads.ts, 11, 66), Decl(declFilePrivateMethodOverloads.ts, 12, 118)) +>bindingContext : IContext, Symbol(bindingContext, Decl(declFilePrivateMethodOverloads.ts, 11, 40)) +>IContext : IContext, Symbol(IContext, Decl(declFilePrivateMethodOverloads.ts, 0, 0)) private overloadWithArityDifference(bindingContextArray: Array, fn: (bindingContext: IContext) => void); ->overloadWithArityDifference : { (bindingContext: IContext): any; (bindingContextArray: IContext[], fn: (bindingContext: IContext) => void): any; } ->bindingContextArray : IContext[] ->Array : T[] ->IContext : IContext ->fn : (bindingContext: IContext) => void ->bindingContext : IContext ->IContext : IContext +>overloadWithArityDifference : { (bindingContext: IContext): any; (bindingContextArray: IContext[], fn: (bindingContext: IContext) => void): any; }, Symbol(overloadWithArityDifference, Decl(declFilePrivateMethodOverloads.ts, 9, 5), Decl(declFilePrivateMethodOverloads.ts, 11, 66), Decl(declFilePrivateMethodOverloads.ts, 12, 118)) +>bindingContextArray : IContext[], Symbol(bindingContextArray, Decl(declFilePrivateMethodOverloads.ts, 12, 40)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>IContext : IContext, Symbol(IContext, Decl(declFilePrivateMethodOverloads.ts, 0, 0)) +>fn : (bindingContext: IContext) => void, Symbol(fn, Decl(declFilePrivateMethodOverloads.ts, 12, 77)) +>bindingContext : IContext, Symbol(bindingContext, Decl(declFilePrivateMethodOverloads.ts, 12, 83)) +>IContext : IContext, Symbol(IContext, Decl(declFilePrivateMethodOverloads.ts, 0, 0)) private overloadWithArityDifference(context): void { ->overloadWithArityDifference : { (bindingContext: IContext): any; (bindingContextArray: IContext[], fn: (bindingContext: IContext) => void): any; } ->context : any +>overloadWithArityDifference : { (bindingContext: IContext): any; (bindingContextArray: IContext[], fn: (bindingContext: IContext) => void): any; }, Symbol(overloadWithArityDifference, Decl(declFilePrivateMethodOverloads.ts, 9, 5), Decl(declFilePrivateMethodOverloads.ts, 11, 66), Decl(declFilePrivateMethodOverloads.ts, 12, 118)) +>context : any, Symbol(context, Decl(declFilePrivateMethodOverloads.ts, 13, 40)) // Function here } } declare class c2 { ->c2 : c2 +>c2 : c2, Symbol(c2, Decl(declFilePrivateMethodOverloads.ts, 16, 1)) private overload1(context, fn); ->overload1 : (context: any, fn: any) => any ->context : any ->fn : any +>overload1 : (context: any, fn: any) => any, Symbol(overload1, Decl(declFilePrivateMethodOverloads.ts, 17, 18)) +>context : any, Symbol(context, Decl(declFilePrivateMethodOverloads.ts, 18, 22)) +>fn : any, Symbol(fn, Decl(declFilePrivateMethodOverloads.ts, 18, 30)) private overload2(context); ->overload2 : { (context: any): any; (context: any, fn: any): any; } ->context : any +>overload2 : { (context: any): any; (context: any, fn: any): any; }, Symbol(overload2, Decl(declFilePrivateMethodOverloads.ts, 18, 35), Decl(declFilePrivateMethodOverloads.ts, 20, 31)) +>context : any, Symbol(context, Decl(declFilePrivateMethodOverloads.ts, 20, 22)) private overload2(context, fn); ->overload2 : { (context: any): any; (context: any, fn: any): any; } ->context : any ->fn : any +>overload2 : { (context: any): any; (context: any, fn: any): any; }, Symbol(overload2, Decl(declFilePrivateMethodOverloads.ts, 18, 35), Decl(declFilePrivateMethodOverloads.ts, 20, 31)) +>context : any, Symbol(context, Decl(declFilePrivateMethodOverloads.ts, 21, 22)) +>fn : any, Symbol(fn, Decl(declFilePrivateMethodOverloads.ts, 21, 30)) } diff --git a/tests/baselines/reference/declFileRegressionTests.types b/tests/baselines/reference/declFileRegressionTests.types index 8d058769c0a..601c4bc7ec0 100644 --- a/tests/baselines/reference/declFileRegressionTests.types +++ b/tests/baselines/reference/declFileRegressionTests.types @@ -2,12 +2,15 @@ // 'null' not converted to 'any' in d.ts // function types not piped through correctly var n = { w: null, x: '', y: () => { }, z: 32 }; ->n : { w: any; x: string; y: () => void; z: number; } +>n : { w: any; x: string; y: () => void; z: number; }, Symbol(n, Decl(declFileRegressionTests.ts, 2, 3)) >{ w: null, x: '', y: () => { }, z: 32 } : { w: null; x: string; y: () => void; z: number; } ->w : null ->x : string ->y : () => void +>w : null, Symbol(w, Decl(declFileRegressionTests.ts, 2, 9)) +>null : null +>x : string, Symbol(x, Decl(declFileRegressionTests.ts, 2, 18)) +>'' : string +>y : () => void, Symbol(y, Decl(declFileRegressionTests.ts, 2, 25)) >() => { } : () => void ->z : number +>z : number, Symbol(z, Decl(declFileRegressionTests.ts, 2, 39)) +>32 : number diff --git a/tests/baselines/reference/declFileRestParametersOfFunctionAndFunctionType.types b/tests/baselines/reference/declFileRestParametersOfFunctionAndFunctionType.types index ecb7c002089..4e28798b6bc 100644 --- a/tests/baselines/reference/declFileRestParametersOfFunctionAndFunctionType.types +++ b/tests/baselines/reference/declFileRestParametersOfFunctionAndFunctionType.types @@ -1,34 +1,35 @@ === tests/cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts === function f1(...args) { } ->f1 : (...args: any[]) => void ->args : any[] +>f1 : (...args: any[]) => void, Symbol(f1, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 0, 0)) +>args : any[], Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 1, 12)) function f2(x: (...args) => void) { } ->f2 : (x: (...args: any[]) => void) => void ->x : (...args: any[]) => void ->args : any[] +>f2 : (x: (...args: any[]) => void) => void, Symbol(f2, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 1, 24)) +>x : (...args: any[]) => void, Symbol(x, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 2, 12)) +>args : any[], Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 2, 16)) function f3(x: { (...args): void }) { } ->f3 : (x: (...args: any[]) => void) => void ->x : (...args: any[]) => void ->args : any[] +>f3 : (x: (...args: any[]) => void) => void, Symbol(f3, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 2, 37)) +>x : (...args: any[]) => void, Symbol(x, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 3, 12)) +>args : any[], Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 3, 18)) function f4 void>() { } ->f4 : void>() => void ->T : T ->args : any[] +>f4 : void>() => void, Symbol(f4, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 3, 39)) +>T : T, Symbol(T, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 4, 12)) +>args : any[], Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 4, 23)) function f5() { } ->f5 : void>() => void ->T : T ->args : any[] +>f5 : void>() => void, Symbol(f5, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 4, 46)) +>T : T, Symbol(T, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 5, 12)) +>args : any[], Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 5, 25)) var f6 = () => { return [10]; } ->f6 : () => any[] +>f6 : () => any[], Symbol(f6, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 6, 3)) >() => { return [10]; } : () => any[] >[10] : any[] >10 : any +>10 : number diff --git a/tests/baselines/reference/declFileTypeAnnotationArrayType.types b/tests/baselines/reference/declFileTypeAnnotationArrayType.types index 860d13af47c..5a5eb6200a0 100644 --- a/tests/baselines/reference/declFileTypeAnnotationArrayType.types +++ b/tests/baselines/reference/declFileTypeAnnotationArrayType.types @@ -1,125 +1,125 @@ === tests/cases/compiler/declFileTypeAnnotationArrayType.ts === class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) } module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 2, 1)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 3, 10)) } export class g { ->g : g ->T : T +>g : g, Symbol(g, Decl(declFileTypeAnnotationArrayType.ts, 5, 5)) +>T : T, Symbol(T, Decl(declFileTypeAnnotationArrayType.ts, 6, 19)) } } class g { ->g : g ->T : T +>g : g, Symbol(g, Decl(declFileTypeAnnotationArrayType.ts, 8, 1)) +>T : T, Symbol(T, Decl(declFileTypeAnnotationArrayType.ts, 9, 8)) } // Just the name function foo(): c[] { ->foo : () => c[] ->c : c +>foo : () => c[], Symbol(foo, Decl(declFileTypeAnnotationArrayType.ts, 10, 1)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) return [new c()]; >[new c()] : c[] >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) } function foo2() { ->foo2 : () => c[] +>foo2 : () => c[], Symbol(foo2, Decl(declFileTypeAnnotationArrayType.ts, 15, 1)) return [new c()]; >[new c()] : c[] >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) } // Qualified name function foo3(): m.c[] { ->foo3 : () => m.c[] ->m : unknown ->c : m.c +>foo3 : () => m.c[], Symbol(foo3, Decl(declFileTypeAnnotationArrayType.ts, 18, 1)) +>m : any, Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 2, 1)) +>c : m.c, Symbol(m.c, Decl(declFileTypeAnnotationArrayType.ts, 3, 10)) return [new m.c()]; >[new m.c()] : m.c[] >new m.c() : m.c ->m.c : typeof m.c ->m : typeof m ->c : typeof m.c +>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationArrayType.ts, 3, 10)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 2, 1)) +>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationArrayType.ts, 3, 10)) } function foo4() { ->foo4 : () => typeof m.c +>foo4 : () => typeof m.c, Symbol(foo4, Decl(declFileTypeAnnotationArrayType.ts, 23, 1)) return m.c; ->m.c : typeof m.c ->m : typeof m ->c : typeof m.c +>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationArrayType.ts, 3, 10)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 2, 1)) +>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationArrayType.ts, 3, 10)) } // Just the name with type arguments function foo5(): g[] { ->foo5 : () => g[] ->g : g +>foo5 : () => g[], Symbol(foo5, Decl(declFileTypeAnnotationArrayType.ts, 26, 1)) +>g : g, Symbol(g, Decl(declFileTypeAnnotationArrayType.ts, 8, 1)) return [new g()]; >[new g()] : g[] >new g() : g ->g : typeof g +>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationArrayType.ts, 8, 1)) } function foo6() { ->foo6 : () => g[] +>foo6 : () => g[], Symbol(foo6, Decl(declFileTypeAnnotationArrayType.ts, 31, 1)) return [new g()]; >[new g()] : g[] >new g() : g ->g : typeof g +>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationArrayType.ts, 8, 1)) } // Qualified name with type arguments function foo7(): m.g[] { ->foo7 : () => m.g[] ->m : unknown ->g : m.g +>foo7 : () => m.g[], Symbol(foo7, Decl(declFileTypeAnnotationArrayType.ts, 34, 1)) +>m : any, Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 2, 1)) +>g : m.g, Symbol(m.g, Decl(declFileTypeAnnotationArrayType.ts, 5, 5)) return [new m.g()]; >[new m.g()] : m.g[] >new m.g() : m.g ->m.g : typeof m.g ->m : typeof m ->g : typeof m.g +>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationArrayType.ts, 5, 5)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 2, 1)) +>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationArrayType.ts, 5, 5)) } function foo8() { ->foo8 : () => m.g[] +>foo8 : () => m.g[], Symbol(foo8, Decl(declFileTypeAnnotationArrayType.ts, 39, 1)) return [new m.g()]; >[new m.g()] : m.g[] >new m.g() : m.g ->m.g : typeof m.g ->m : typeof m ->g : typeof m.g +>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationArrayType.ts, 5, 5)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationArrayType.ts, 2, 1)) +>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationArrayType.ts, 5, 5)) } // Array of function types function foo9(): (()=>c)[] { ->foo9 : () => (() => c)[] ->c : c +>foo9 : () => (() => c)[], Symbol(foo9, Decl(declFileTypeAnnotationArrayType.ts, 42, 1)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) return [() => new c()]; >[() => new c()] : (() => c)[] >() => new c() : () => c >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) } function foo10() { ->foo10 : () => (() => c)[] +>foo10 : () => (() => c)[], Symbol(foo10, Decl(declFileTypeAnnotationArrayType.ts, 47, 1)) return [() => new c()]; >[() => new c()] : (() => c)[] >() => new c() : () => c >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationArrayType.ts, 0, 0)) } diff --git a/tests/baselines/reference/declFileTypeAnnotationBuiltInType.types b/tests/baselines/reference/declFileTypeAnnotationBuiltInType.types index ce4f5654a89..05ea28cb5f7 100644 --- a/tests/baselines/reference/declFileTypeAnnotationBuiltInType.types +++ b/tests/baselines/reference/declFileTypeAnnotationBuiltInType.types @@ -2,62 +2,68 @@ // string function foo(): string { ->foo : () => string +>foo : () => string, Symbol(foo, Decl(declFileTypeAnnotationBuiltInType.ts, 0, 0)) return ""; +>"" : string } function foo2() { ->foo2 : () => string +>foo2 : () => string, Symbol(foo2, Decl(declFileTypeAnnotationBuiltInType.ts, 4, 1)) return ""; +>"" : string } // number function foo3(): number { ->foo3 : () => number +>foo3 : () => number, Symbol(foo3, Decl(declFileTypeAnnotationBuiltInType.ts, 7, 1)) return 10; +>10 : number } function foo4() { ->foo4 : () => number +>foo4 : () => number, Symbol(foo4, Decl(declFileTypeAnnotationBuiltInType.ts, 12, 1)) return 10; +>10 : number } // boolean function foo5(): boolean { ->foo5 : () => boolean +>foo5 : () => boolean, Symbol(foo5, Decl(declFileTypeAnnotationBuiltInType.ts, 15, 1)) return true; +>true : boolean } function foo6() { ->foo6 : () => boolean +>foo6 : () => boolean, Symbol(foo6, Decl(declFileTypeAnnotationBuiltInType.ts, 20, 1)) return false; +>false : boolean } // void function foo7(): void { ->foo7 : () => void +>foo7 : () => void, Symbol(foo7, Decl(declFileTypeAnnotationBuiltInType.ts, 23, 1)) return; } function foo8() { ->foo8 : () => void +>foo8 : () => void, Symbol(foo8, Decl(declFileTypeAnnotationBuiltInType.ts, 28, 1)) return; } // any function foo9(): any { ->foo9 : () => any +>foo9 : () => any, Symbol(foo9, Decl(declFileTypeAnnotationBuiltInType.ts, 31, 1)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } function foo10() { ->foo10 : () => any +>foo10 : () => any, Symbol(foo10, Decl(declFileTypeAnnotationBuiltInType.ts, 36, 1)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } diff --git a/tests/baselines/reference/declFileTypeAnnotationParenType.types b/tests/baselines/reference/declFileTypeAnnotationParenType.types index c904f1b3e5a..cdb3a7a33ed 100644 --- a/tests/baselines/reference/declFileTypeAnnotationParenType.types +++ b/tests/baselines/reference/declFileTypeAnnotationParenType.types @@ -1,41 +1,43 @@ === tests/cases/compiler/declFileTypeAnnotationParenType.ts === class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) private p: string; ->p : string +>p : string, Symbol(p, Decl(declFileTypeAnnotationParenType.ts, 1, 9)) } var x: (() => c)[] = [() => new c()]; ->x : (() => c)[] ->c : c +>x : (() => c)[], Symbol(x, Decl(declFileTypeAnnotationParenType.ts, 5, 3)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) >[() => new c()] : (() => c)[] >() => new c() : () => c >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) var y = [() => new c()]; ->y : (() => c)[] +>y : (() => c)[], Symbol(y, Decl(declFileTypeAnnotationParenType.ts, 6, 3)) >[() => new c()] : (() => c)[] >() => new c() : () => c >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) var k: (() => c) | string = (() => new c()) || ""; ->k : string | (() => c) ->c : c +>k : string | (() => c), Symbol(k, Decl(declFileTypeAnnotationParenType.ts, 8, 3)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) >(() => new c()) || "" : string | (() => c) >(() => new c()) : () => c >() => new c() : () => c >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) +>"" : string var l = (() => new c()) || ""; ->l : string | (() => c) +>l : string | (() => c), Symbol(l, Decl(declFileTypeAnnotationParenType.ts, 9, 3)) >(() => new c()) || "" : string | (() => c) >(() => new c()) : () => c >() => new c() : () => c >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationParenType.ts, 0, 0)) +>"" : string diff --git a/tests/baselines/reference/declFileTypeAnnotationStringLiteral.types b/tests/baselines/reference/declFileTypeAnnotationStringLiteral.types index d50d95f988b..739e245d153 100644 --- a/tests/baselines/reference/declFileTypeAnnotationStringLiteral.types +++ b/tests/baselines/reference/declFileTypeAnnotationStringLiteral.types @@ -1,31 +1,32 @@ === tests/cases/compiler/declFileTypeAnnotationStringLiteral.ts === function foo(a: "hello"): number; ->foo : { (a: "hello"): number; (a: "name"): string; (a: string): string | number; } ->a : "hello" +>foo : { (a: "hello"): number; (a: "name"): string; (a: string): string | number; }, Symbol(foo, Decl(declFileTypeAnnotationStringLiteral.ts, 0, 0), Decl(declFileTypeAnnotationStringLiteral.ts, 1, 33), Decl(declFileTypeAnnotationStringLiteral.ts, 2, 32), Decl(declFileTypeAnnotationStringLiteral.ts, 3, 41)) +>a : "hello", Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 1, 13)) function foo(a: "name"): string; ->foo : { (a: "hello"): number; (a: "name"): string; (a: string): string | number; } ->a : "name" +>foo : { (a: "hello"): number; (a: "name"): string; (a: string): string | number; }, Symbol(foo, Decl(declFileTypeAnnotationStringLiteral.ts, 0, 0), Decl(declFileTypeAnnotationStringLiteral.ts, 1, 33), Decl(declFileTypeAnnotationStringLiteral.ts, 2, 32), Decl(declFileTypeAnnotationStringLiteral.ts, 3, 41)) +>a : "name", Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 2, 13)) function foo(a: string): string | number; ->foo : { (a: "hello"): number; (a: "name"): string; (a: string): string | number; } ->a : string +>foo : { (a: "hello"): number; (a: "name"): string; (a: string): string | number; }, Symbol(foo, Decl(declFileTypeAnnotationStringLiteral.ts, 0, 0), Decl(declFileTypeAnnotationStringLiteral.ts, 1, 33), Decl(declFileTypeAnnotationStringLiteral.ts, 2, 32), Decl(declFileTypeAnnotationStringLiteral.ts, 3, 41)) +>a : string, Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 3, 13)) function foo(a: string): string | number { ->foo : { (a: "hello"): number; (a: "name"): string; (a: string): string | number; } ->a : string +>foo : { (a: "hello"): number; (a: "name"): string; (a: string): string | number; }, Symbol(foo, Decl(declFileTypeAnnotationStringLiteral.ts, 0, 0), Decl(declFileTypeAnnotationStringLiteral.ts, 1, 33), Decl(declFileTypeAnnotationStringLiteral.ts, 2, 32), Decl(declFileTypeAnnotationStringLiteral.ts, 3, 41)) +>a : string, Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 4, 13)) if (a === "hello") { >a === "hello" : boolean ->a : string +>a : string, Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 4, 13)) +>"hello" : string return a.length; ->a.length : number ->a : string ->length : number +>a.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>a : string, Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 4, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) } return a; ->a : string +>a : string, Symbol(a, Decl(declFileTypeAnnotationStringLiteral.ts, 4, 13)) } diff --git a/tests/baselines/reference/declFileTypeAnnotationTupleType.types b/tests/baselines/reference/declFileTypeAnnotationTupleType.types index 88cf5a0c743..fba345a2bfd 100644 --- a/tests/baselines/reference/declFileTypeAnnotationTupleType.types +++ b/tests/baselines/reference/declFileTypeAnnotationTupleType.types @@ -1,60 +1,60 @@ === tests/cases/compiler/declFileTypeAnnotationTupleType.ts === class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationTupleType.ts, 0, 0)) } module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTupleType.ts, 2, 1)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationTupleType.ts, 3, 10)) } export class g { ->g : g ->T : T +>g : g, Symbol(g, Decl(declFileTypeAnnotationTupleType.ts, 5, 5)) +>T : T, Symbol(T, Decl(declFileTypeAnnotationTupleType.ts, 6, 19)) } } class g { ->g : g ->T : T +>g : g, Symbol(g, Decl(declFileTypeAnnotationTupleType.ts, 8, 1)) +>T : T, Symbol(T, Decl(declFileTypeAnnotationTupleType.ts, 9, 8)) } // Just the name var k: [c, m.c] = [new c(), new m.c()]; ->k : [c, m.c] ->c : c ->m : unknown ->c : m.c +>k : [c, m.c], Symbol(k, Decl(declFileTypeAnnotationTupleType.ts, 13, 3)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationTupleType.ts, 0, 0)) +>m : any, Symbol(m, Decl(declFileTypeAnnotationTupleType.ts, 2, 1)) +>c : m.c, Symbol(m.c, Decl(declFileTypeAnnotationTupleType.ts, 3, 10)) >[new c(), new m.c()] : [c, m.c] >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationTupleType.ts, 0, 0)) >new m.c() : m.c ->m.c : typeof m.c ->m : typeof m ->c : typeof m.c +>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTupleType.ts, 3, 10)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTupleType.ts, 2, 1)) +>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTupleType.ts, 3, 10)) var l = k; ->l : [c, m.c] ->k : [c, m.c] +>l : [c, m.c], Symbol(l, Decl(declFileTypeAnnotationTupleType.ts, 14, 3)) +>k : [c, m.c], Symbol(k, Decl(declFileTypeAnnotationTupleType.ts, 13, 3)) var x: [g, m.g, () => c] = [new g(), new m.g(), () => new c()]; ->x : [g, m.g, () => c] ->g : g ->m : unknown ->g : m.g ->c : c +>x : [g, m.g, () => c], Symbol(x, Decl(declFileTypeAnnotationTupleType.ts, 16, 3)) +>g : g, Symbol(g, Decl(declFileTypeAnnotationTupleType.ts, 8, 1)) +>m : any, Symbol(m, Decl(declFileTypeAnnotationTupleType.ts, 2, 1)) +>g : m.g, Symbol(m.g, Decl(declFileTypeAnnotationTupleType.ts, 5, 5)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationTupleType.ts, 0, 0)) >[new g(), new m.g(), () => new c()] : [g, m.g, () => c] >new g() : g ->g : typeof g +>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationTupleType.ts, 8, 1)) >new m.g() : m.g ->m.g : typeof m.g ->m : typeof m ->g : typeof m.g +>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTupleType.ts, 5, 5)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTupleType.ts, 2, 1)) +>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTupleType.ts, 5, 5)) >() => new c() : () => c >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationTupleType.ts, 0, 0)) var y = x; ->y : [g, m.g, () => c] ->x : [g, m.g, () => c] +>y : [g, m.g, () => c], Symbol(y, Decl(declFileTypeAnnotationTupleType.ts, 17, 3)) +>x : [g, m.g, () => c], Symbol(x, Decl(declFileTypeAnnotationTupleType.ts, 16, 3)) diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeAlias.types b/tests/baselines/reference/declFileTypeAnnotationTypeAlias.types index aa475068bf0..84ef9eaf484 100644 --- a/tests/baselines/reference/declFileTypeAnnotationTypeAlias.types +++ b/tests/baselines/reference/declFileTypeAnnotationTypeAlias.types @@ -1,63 +1,63 @@ === tests/cases/compiler/declFileTypeAnnotationTypeAlias.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(declFileTypeAnnotationTypeAlias.ts, 0, 0), Decl(declFileTypeAnnotationTypeAlias.ts, 22, 1)) export type Value = string | number | boolean; ->Value : string | number | boolean +>Value : string | number | boolean, Symbol(Value, Decl(declFileTypeAnnotationTypeAlias.ts, 1, 10)) export var x: Value; ->x : string | number | boolean ->Value : string | number | boolean +>x : string | number | boolean, Symbol(x, Decl(declFileTypeAnnotationTypeAlias.ts, 3, 14)) +>Value : string | number | boolean, Symbol(Value, Decl(declFileTypeAnnotationTypeAlias.ts, 1, 10)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeAlias.ts, 3, 24)) } export type C = c; ->C : c ->c : c +>C : c, Symbol(C, Decl(declFileTypeAnnotationTypeAlias.ts, 6, 5)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeAlias.ts, 3, 24)) export module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeAlias.ts, 8, 22)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeAlias.ts, 10, 21)) } } export type MC = m.c; ->MC : m.c ->m : unknown ->c : m.c +>MC : m.c, Symbol(MC, Decl(declFileTypeAnnotationTypeAlias.ts, 13, 5)) +>m : any, Symbol(m, Decl(declFileTypeAnnotationTypeAlias.ts, 8, 22)) +>c : m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeAlias.ts, 10, 21)) export type fc = () => c; ->fc : () => c ->c : c +>fc : () => c, Symbol(fc, Decl(declFileTypeAnnotationTypeAlias.ts, 15, 25)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeAlias.ts, 3, 24)) } interface Window { ->Window : Window +>Window : Window, Symbol(Window, Decl(declFileTypeAnnotationTypeAlias.ts, 18, 1)) someMethod(); ->someMethod : () => any +>someMethod : () => any, Symbol(someMethod, Decl(declFileTypeAnnotationTypeAlias.ts, 20, 18)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(declFileTypeAnnotationTypeAlias.ts, 0, 0), Decl(declFileTypeAnnotationTypeAlias.ts, 22, 1)) export type W = Window | string; ->W : string | Window ->Window : Window +>W : string | Window, Symbol(W, Decl(declFileTypeAnnotationTypeAlias.ts, 24, 10)) +>Window : Window, Symbol(Window, Decl(declFileTypeAnnotationTypeAlias.ts, 18, 1)) export module N { ->N : typeof N +>N : typeof N, Symbol(N, Decl(declFileTypeAnnotationTypeAlias.ts, 25, 36)) export class Window { } ->Window : Window +>Window : Window, Symbol(Window, Decl(declFileTypeAnnotationTypeAlias.ts, 26, 21)) export var p: W; ->p : string | Window ->W : string | Window +>p : string | Window, Symbol(p, Decl(declFileTypeAnnotationTypeAlias.ts, 28, 18)) +>W : string | Window, Symbol(W, Decl(declFileTypeAnnotationTypeAlias.ts, 24, 10)) } } diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeLiteral.types b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral.types index 30d14b77286..aa0032922b8 100644 --- a/tests/baselines/reference/declFileTypeAnnotationTypeLiteral.types +++ b/tests/baselines/reference/declFileTypeAnnotationTypeLiteral.types @@ -1,85 +1,85 @@ === tests/cases/compiler/declFileTypeAnnotationTypeLiteral.ts === class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) } class g { ->g : g ->T : T +>g : g, Symbol(g, Decl(declFileTypeAnnotationTypeLiteral.ts, 2, 1)) +>T : T, Symbol(T, Decl(declFileTypeAnnotationTypeLiteral.ts, 3, 8)) } module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeLiteral.ts, 4, 1)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 5, 10)) } } // Object literal with everything var x: { ->x : { (a: number): c; (a: string): g; new (a: number): c; new (a: string): m.c; [n: string]: c; [n: number]: c; a: c; b: g; m1(): g; m2(a: string, b?: number, ...c: c[]): string; } +>x : { (a: number): c; (a: string): g; new (a: number): c; new (a: string): m.c; [n: string]: c; [n: number]: c; a: c; b: g; m1(): g; m2(a: string, b?: number, ...c: c[]): string; }, Symbol(x, Decl(declFileTypeAnnotationTypeLiteral.ts, 11, 3)) // Call signatures (a: number): c; ->a : number ->c : c +>a : number, Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 13, 5)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) (a: string): g; ->a : string ->g : g +>a : string, Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 14, 5)) +>g : g, Symbol(g, Decl(declFileTypeAnnotationTypeLiteral.ts, 2, 1)) // Construct signatures new (a: number): c; ->a : number ->c : c +>a : number, Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 17, 9)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) new (a: string): m.c; ->a : string ->m : unknown ->c : m.c +>a : string, Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 18, 9)) +>m : any, Symbol(m, Decl(declFileTypeAnnotationTypeLiteral.ts, 4, 1)) +>c : m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeLiteral.ts, 5, 10)) // Indexers [n: number]: c; ->n : number ->c : c +>n : number, Symbol(n, Decl(declFileTypeAnnotationTypeLiteral.ts, 21, 5)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) [n: string]: c; ->n : string ->c : c +>n : string, Symbol(n, Decl(declFileTypeAnnotationTypeLiteral.ts, 22, 5)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) // Properties a: c; ->a : c ->c : c +>a : c, Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 22, 19)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) b: g; ->b : g ->g : g +>b : g, Symbol(b, Decl(declFileTypeAnnotationTypeLiteral.ts, 25, 9)) +>g : g, Symbol(g, Decl(declFileTypeAnnotationTypeLiteral.ts, 2, 1)) // methods m1(): g; ->m1 : () => g ->g : g +>m1 : () => g, Symbol(m1, Decl(declFileTypeAnnotationTypeLiteral.ts, 26, 17)) +>g : g, Symbol(g, Decl(declFileTypeAnnotationTypeLiteral.ts, 2, 1)) m2(a: string, b?: number, ...c: c[]): string; ->m2 : (a: string, b?: number, ...c: c[]) => string ->a : string ->b : number ->c : c[] ->c : c +>m2 : (a: string, b?: number, ...c: c[]) => string, Symbol(m2, Decl(declFileTypeAnnotationTypeLiteral.ts, 29, 20)) +>a : string, Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 30, 7)) +>b : number, Symbol(b, Decl(declFileTypeAnnotationTypeLiteral.ts, 30, 17)) +>c : c[], Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 30, 29)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeLiteral.ts, 0, 0)) }; // Function type var y: (a: string) => string; ->y : (a: string) => string ->a : string +>y : (a: string) => string, Symbol(y, Decl(declFileTypeAnnotationTypeLiteral.ts, 35, 3)) +>a : string, Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 35, 8)) // constructor type var z: new (a: string) => m.c; ->z : new (a: string) => m.c ->a : string ->m : unknown ->c : m.c +>z : new (a: string) => m.c, Symbol(z, Decl(declFileTypeAnnotationTypeLiteral.ts, 38, 3)) +>a : string, Symbol(a, Decl(declFileTypeAnnotationTypeLiteral.ts, 38, 12)) +>m : any, Symbol(m, Decl(declFileTypeAnnotationTypeLiteral.ts, 4, 1)) +>c : m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeLiteral.ts, 5, 10)) diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeQuery.types b/tests/baselines/reference/declFileTypeAnnotationTypeQuery.types index c7b5c421de1..1659e6ef7f6 100644 --- a/tests/baselines/reference/declFileTypeAnnotationTypeQuery.types +++ b/tests/baselines/reference/declFileTypeAnnotationTypeQuery.types @@ -1,90 +1,92 @@ === tests/cases/compiler/declFileTypeAnnotationTypeQuery.ts === class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 0, 0)) } module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10)) } export class g { ->g : g ->T : T +>g : g, Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5)) +>T : T, Symbol(T, Decl(declFileTypeAnnotationTypeQuery.ts, 6, 19)) } } class g { ->g : g ->T : T +>g : g, Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 8, 1)) +>T : T, Symbol(T, Decl(declFileTypeAnnotationTypeQuery.ts, 9, 8)) } // Just the name function foo(): typeof c { ->foo : () => typeof c ->c : typeof c +>foo : () => typeof c, Symbol(foo, Decl(declFileTypeAnnotationTypeQuery.ts, 10, 1)) +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 0, 0)) return c; ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 0, 0)) } function foo2() { ->foo2 : () => typeof c +>foo2 : () => typeof c, Symbol(foo2, Decl(declFileTypeAnnotationTypeQuery.ts, 15, 1)) return c; ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 0, 0)) } // Qualified name function foo3(): typeof m.c { ->foo3 : () => typeof m.c ->m : typeof m ->c : typeof m.c +>foo3 : () => typeof m.c, Symbol(foo3, Decl(declFileTypeAnnotationTypeQuery.ts, 18, 1)) +>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1)) +>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10)) return m.c; ->m.c : typeof m.c ->m : typeof m ->c : typeof m.c +>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1)) +>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10)) } function foo4() { ->foo4 : () => typeof m.c +>foo4 : () => typeof m.c, Symbol(foo4, Decl(declFileTypeAnnotationTypeQuery.ts, 23, 1)) return m.c; ->m.c : typeof m.c ->m : typeof m ->c : typeof m.c +>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1)) +>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10)) } // Just the name with type arguments function foo5(): typeof g { ->foo5 : () => typeof g ->g : typeof g +>foo5 : () => typeof g, Symbol(foo5, Decl(declFileTypeAnnotationTypeQuery.ts, 26, 1)) +>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 8, 1)) return g; ->g : typeof g +>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 8, 1)) } function foo6() { ->foo6 : () => typeof g +>foo6 : () => typeof g, Symbol(foo6, Decl(declFileTypeAnnotationTypeQuery.ts, 31, 1)) return g; ->g : typeof g +>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 8, 1)) } // Qualified name with type arguments function foo7(): typeof m.g { ->foo7 : () => typeof m.g ->m : typeof m ->g : typeof m.g +>foo7 : () => typeof m.g, Symbol(foo7, Decl(declFileTypeAnnotationTypeQuery.ts, 34, 1)) +>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1)) +>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5)) return m.g ->m.g : typeof m.g ->m : typeof m ->g : typeof m.g +>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1)) +>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5)) } function foo8() { ->foo8 : () => typeof m.g +>foo8 : () => typeof m.g, Symbol(foo8, Decl(declFileTypeAnnotationTypeQuery.ts, 39, 1)) return m.g ->m.g : typeof m.g ->m : typeof m ->g : typeof m.g +>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1)) +>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5)) } diff --git a/tests/baselines/reference/declFileTypeAnnotationTypeReference.types b/tests/baselines/reference/declFileTypeAnnotationTypeReference.types index 765c86c3415..a0c46f72b30 100644 --- a/tests/baselines/reference/declFileTypeAnnotationTypeReference.types +++ b/tests/baselines/reference/declFileTypeAnnotationTypeReference.types @@ -1,98 +1,98 @@ === tests/cases/compiler/declFileTypeAnnotationTypeReference.ts === class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeReference.ts, 0, 0)) } module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 2, 1)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeReference.ts, 3, 10)) } export class g { ->g : g ->T : T +>g : g, Symbol(g, Decl(declFileTypeAnnotationTypeReference.ts, 5, 5)) +>T : T, Symbol(T, Decl(declFileTypeAnnotationTypeReference.ts, 6, 19)) } } class g { ->g : g ->T : T +>g : g, Symbol(g, Decl(declFileTypeAnnotationTypeReference.ts, 8, 1)) +>T : T, Symbol(T, Decl(declFileTypeAnnotationTypeReference.ts, 9, 8)) } // Just the name function foo(): c { ->foo : () => c ->c : c +>foo : () => c, Symbol(foo, Decl(declFileTypeAnnotationTypeReference.ts, 10, 1)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeReference.ts, 0, 0)) return new c(); >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationTypeReference.ts, 0, 0)) } function foo2() { ->foo2 : () => c +>foo2 : () => c, Symbol(foo2, Decl(declFileTypeAnnotationTypeReference.ts, 15, 1)) return new c(); >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationTypeReference.ts, 0, 0)) } // Qualified name function foo3(): m.c { ->foo3 : () => m.c ->m : unknown ->c : m.c +>foo3 : () => m.c, Symbol(foo3, Decl(declFileTypeAnnotationTypeReference.ts, 18, 1)) +>m : any, Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 2, 1)) +>c : m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeReference.ts, 3, 10)) return new m.c(); >new m.c() : m.c ->m.c : typeof m.c ->m : typeof m ->c : typeof m.c +>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeReference.ts, 3, 10)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 2, 1)) +>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeReference.ts, 3, 10)) } function foo4() { ->foo4 : () => m.c +>foo4 : () => m.c, Symbol(foo4, Decl(declFileTypeAnnotationTypeReference.ts, 23, 1)) return new m.c(); >new m.c() : m.c ->m.c : typeof m.c ->m : typeof m ->c : typeof m.c +>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeReference.ts, 3, 10)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 2, 1)) +>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeReference.ts, 3, 10)) } // Just the name with type arguments function foo5(): g { ->foo5 : () => g ->g : g +>foo5 : () => g, Symbol(foo5, Decl(declFileTypeAnnotationTypeReference.ts, 26, 1)) +>g : g, Symbol(g, Decl(declFileTypeAnnotationTypeReference.ts, 8, 1)) return new g(); >new g() : g ->g : typeof g +>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationTypeReference.ts, 8, 1)) } function foo6() { ->foo6 : () => g +>foo6 : () => g, Symbol(foo6, Decl(declFileTypeAnnotationTypeReference.ts, 31, 1)) return new g(); >new g() : g ->g : typeof g +>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationTypeReference.ts, 8, 1)) } // Qualified name with type arguments function foo7(): m.g { ->foo7 : () => m.g ->m : unknown ->g : m.g +>foo7 : () => m.g, Symbol(foo7, Decl(declFileTypeAnnotationTypeReference.ts, 34, 1)) +>m : any, Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 2, 1)) +>g : m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeReference.ts, 5, 5)) return new m.g(); >new m.g() : m.g ->m.g : typeof m.g ->m : typeof m ->g : typeof m.g +>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeReference.ts, 5, 5)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 2, 1)) +>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeReference.ts, 5, 5)) } function foo8() { ->foo8 : () => m.g +>foo8 : () => m.g, Symbol(foo8, Decl(declFileTypeAnnotationTypeReference.ts, 39, 1)) return new m.g(); >new m.g() : m.g ->m.g : typeof m.g ->m : typeof m ->g : typeof m.g +>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeReference.ts, 5, 5)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeReference.ts, 2, 1)) +>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeReference.ts, 5, 5)) } diff --git a/tests/baselines/reference/declFileTypeAnnotationUnionType.types b/tests/baselines/reference/declFileTypeAnnotationUnionType.types index 1dce3690bf8..82c4499ed74 100644 --- a/tests/baselines/reference/declFileTypeAnnotationUnionType.types +++ b/tests/baselines/reference/declFileTypeAnnotationUnionType.types @@ -1,91 +1,91 @@ === tests/cases/compiler/declFileTypeAnnotationUnionType.ts === class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) private p: string; ->p : string +>p : string, Symbol(p, Decl(declFileTypeAnnotationUnionType.ts, 1, 9)) } module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 3, 1)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 4, 10)) private q: string; ->q : string +>q : string, Symbol(q, Decl(declFileTypeAnnotationUnionType.ts, 5, 20)) } export class g { ->g : g ->T : T +>g : g, Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 7, 5)) +>T : T, Symbol(T, Decl(declFileTypeAnnotationUnionType.ts, 8, 19)) private r: string; ->r : string +>r : string, Symbol(r, Decl(declFileTypeAnnotationUnionType.ts, 8, 23)) } } class g { ->g : g ->T : T +>g : g, Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 11, 1)) +>T : T, Symbol(T, Decl(declFileTypeAnnotationUnionType.ts, 12, 8)) private s: string; ->s : string +>s : string, Symbol(s, Decl(declFileTypeAnnotationUnionType.ts, 12, 12)) } // Just the name var k: c | m.c = new c() || new m.c(); ->k : c | m.c ->c : c ->m : unknown ->c : m.c +>k : c | m.c, Symbol(k, Decl(declFileTypeAnnotationUnionType.ts, 17, 3)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) +>m : any, Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 3, 1)) +>c : m.c, Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 4, 10)) >new c() || new m.c() : c | m.c >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) >new m.c() : m.c ->m.c : typeof m.c ->m : typeof m ->c : typeof m.c +>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 4, 10)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 3, 1)) +>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 4, 10)) var l = new c() || new m.c(); ->l : c | m.c +>l : c | m.c, Symbol(l, Decl(declFileTypeAnnotationUnionType.ts, 18, 3)) >new c() || new m.c() : c | m.c >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) >new m.c() : m.c ->m.c : typeof m.c ->m : typeof m ->c : typeof m.c +>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 4, 10)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 3, 1)) +>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationUnionType.ts, 4, 10)) var x: g | m.g | (() => c) = new g() || new m.g() || (() => new c()); ->x : g | m.g | (() => c) ->g : g ->m : unknown ->g : m.g ->c : c +>x : g | m.g | (() => c), Symbol(x, Decl(declFileTypeAnnotationUnionType.ts, 20, 3)) +>g : g, Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 11, 1)) +>m : any, Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 3, 1)) +>g : m.g, Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 7, 5)) +>c : c, Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) >new g() || new m.g() || (() => new c()) : g | m.g | (() => c) >new g() || new m.g() : g | m.g >new g() : g ->g : typeof g +>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 11, 1)) >new m.g() : m.g ->m.g : typeof m.g ->m : typeof m ->g : typeof m.g +>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 7, 5)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 3, 1)) +>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 7, 5)) >(() => new c()) : () => c >() => new c() : () => c >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) var y = new g() || new m.g() || (() => new c()); ->y : g | m.g | (() => c) +>y : g | m.g | (() => c), Symbol(y, Decl(declFileTypeAnnotationUnionType.ts, 21, 3)) >new g() || new m.g() || (() => new c()) : g | m.g | (() => c) >new g() || new m.g() : g | m.g >new g() : g ->g : typeof g +>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationUnionType.ts, 11, 1)) >new m.g() : m.g ->m.g : typeof m.g ->m : typeof m ->g : typeof m.g +>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 7, 5)) +>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationUnionType.ts, 3, 1)) +>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationUnionType.ts, 7, 5)) >(() => new c()) : () => c >() => new c() : () => c >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationUnionType.ts, 0, 0)) diff --git a/tests/baselines/reference/declFileTypeofClass.types b/tests/baselines/reference/declFileTypeofClass.types index 119ad9bb7d4..b8ef16d7917 100644 --- a/tests/baselines/reference/declFileTypeofClass.types +++ b/tests/baselines/reference/declFileTypeofClass.types @@ -1,39 +1,39 @@ === tests/cases/compiler/declFileTypeofClass.ts === class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeofClass.ts, 0, 0)) static x : string; ->x : string +>x : string, Symbol(c.x, Decl(declFileTypeofClass.ts, 1, 9)) private static y: number; ->y : number +>y : number, Symbol(c.y, Decl(declFileTypeofClass.ts, 2, 22)) private x3: string; ->x3 : string +>x3 : string, Symbol(x3, Decl(declFileTypeofClass.ts, 3, 29)) public y3: number; ->y3 : number +>y3 : number, Symbol(y3, Decl(declFileTypeofClass.ts, 4, 23)) } var x: c; ->x : c ->c : c +>x : c, Symbol(x, Decl(declFileTypeofClass.ts, 8, 3)) +>c : c, Symbol(c, Decl(declFileTypeofClass.ts, 0, 0)) var y = c; ->y : typeof c ->c : typeof c +>y : typeof c, Symbol(y, Decl(declFileTypeofClass.ts, 9, 3)) +>c : typeof c, Symbol(c, Decl(declFileTypeofClass.ts, 0, 0)) var z: typeof c; ->z : typeof c ->c : typeof c +>z : typeof c, Symbol(z, Decl(declFileTypeofClass.ts, 10, 3)) +>c : typeof c, Symbol(c, Decl(declFileTypeofClass.ts, 0, 0)) class genericC ->genericC : genericC ->T : T +>genericC : genericC, Symbol(genericC, Decl(declFileTypeofClass.ts, 10, 16)) +>T : T, Symbol(T, Decl(declFileTypeofClass.ts, 11, 15)) { } var genericX = genericC; ->genericX : typeof genericC ->genericC : typeof genericC +>genericX : typeof genericC, Symbol(genericX, Decl(declFileTypeofClass.ts, 14, 3)) +>genericC : typeof genericC, Symbol(genericC, Decl(declFileTypeofClass.ts, 10, 16)) diff --git a/tests/baselines/reference/declFileTypeofEnum.types b/tests/baselines/reference/declFileTypeofEnum.types index 1c900a453b7..9fb7c2ba141 100644 --- a/tests/baselines/reference/declFileTypeofEnum.types +++ b/tests/baselines/reference/declFileTypeofEnum.types @@ -1,41 +1,41 @@ === tests/cases/compiler/declFileTypeofEnum.ts === enum days { ->days : days +>days : days, Symbol(days, Decl(declFileTypeofEnum.ts, 0, 0)) monday, ->monday : days +>monday : days, Symbol(days.monday, Decl(declFileTypeofEnum.ts, 1, 11)) tuesday, ->tuesday : days +>tuesday : days, Symbol(days.tuesday, Decl(declFileTypeofEnum.ts, 2, 11)) wednesday, ->wednesday : days +>wednesday : days, Symbol(days.wednesday, Decl(declFileTypeofEnum.ts, 3, 12)) thursday, ->thursday : days +>thursday : days, Symbol(days.thursday, Decl(declFileTypeofEnum.ts, 4, 14)) friday, ->friday : days +>friday : days, Symbol(days.friday, Decl(declFileTypeofEnum.ts, 5, 13)) saturday, ->saturday : days +>saturday : days, Symbol(days.saturday, Decl(declFileTypeofEnum.ts, 6, 11)) sunday ->sunday : days +>sunday : days, Symbol(days.sunday, Decl(declFileTypeofEnum.ts, 7, 13)) } var weekendDay = days.saturday; ->weekendDay : days ->days.saturday : days ->days : typeof days ->saturday : days +>weekendDay : days, Symbol(weekendDay, Decl(declFileTypeofEnum.ts, 11, 3)) +>days.saturday : days, Symbol(days.saturday, Decl(declFileTypeofEnum.ts, 6, 11)) +>days : typeof days, Symbol(days, Decl(declFileTypeofEnum.ts, 0, 0)) +>saturday : days, Symbol(days.saturday, Decl(declFileTypeofEnum.ts, 6, 11)) var daysOfMonth = days; ->daysOfMonth : typeof days ->days : typeof days +>daysOfMonth : typeof days, Symbol(daysOfMonth, Decl(declFileTypeofEnum.ts, 12, 3)) +>days : typeof days, Symbol(days, Decl(declFileTypeofEnum.ts, 0, 0)) var daysOfYear: typeof days; ->daysOfYear : typeof days ->days : typeof days +>daysOfYear : typeof days, Symbol(daysOfYear, Decl(declFileTypeofEnum.ts, 13, 3)) +>days : typeof days, Symbol(days, Decl(declFileTypeofEnum.ts, 0, 0)) diff --git a/tests/baselines/reference/declFileTypeofFunction.types b/tests/baselines/reference/declFileTypeofFunction.types index bede9ba254b..0ce486c99fe 100644 --- a/tests/baselines/reference/declFileTypeofFunction.types +++ b/tests/baselines/reference/declFileTypeofFunction.types @@ -1,84 +1,85 @@ === tests/cases/compiler/declFileTypeofFunction.ts === function f(n: typeof f): string; ->f : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; } ->n : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; } ->f : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; } +>f : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; }, Symbol(f, Decl(declFileTypeofFunction.ts, 0, 0), Decl(declFileTypeofFunction.ts, 1, 32), Decl(declFileTypeofFunction.ts, 2, 32)) +>n : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; }, Symbol(n, Decl(declFileTypeofFunction.ts, 1, 11)) +>f : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; }, Symbol(f, Decl(declFileTypeofFunction.ts, 0, 0), Decl(declFileTypeofFunction.ts, 1, 32), Decl(declFileTypeofFunction.ts, 2, 32)) function f(n: typeof g): string; ->f : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; } ->n : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; } ->g : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; } +>f : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; }, Symbol(f, Decl(declFileTypeofFunction.ts, 0, 0), Decl(declFileTypeofFunction.ts, 1, 32), Decl(declFileTypeofFunction.ts, 2, 32)) +>n : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; }, Symbol(n, Decl(declFileTypeofFunction.ts, 2, 11)) +>g : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; }, Symbol(g, Decl(declFileTypeofFunction.ts, 3, 34), Decl(declFileTypeofFunction.ts, 4, 32), Decl(declFileTypeofFunction.ts, 5, 32)) function f() { return undefined; } ->f : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; } ->undefined : undefined +>f : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; }, Symbol(f, Decl(declFileTypeofFunction.ts, 0, 0), Decl(declFileTypeofFunction.ts, 1, 32), Decl(declFileTypeofFunction.ts, 2, 32)) +>undefined : undefined, Symbol(undefined) function g(n: typeof g): number; ->g : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; } ->n : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; } ->g : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; } +>g : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; }, Symbol(g, Decl(declFileTypeofFunction.ts, 3, 34), Decl(declFileTypeofFunction.ts, 4, 32), Decl(declFileTypeofFunction.ts, 5, 32)) +>n : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; }, Symbol(n, Decl(declFileTypeofFunction.ts, 4, 11)) +>g : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; }, Symbol(g, Decl(declFileTypeofFunction.ts, 3, 34), Decl(declFileTypeofFunction.ts, 4, 32), Decl(declFileTypeofFunction.ts, 5, 32)) function g(n: typeof f): number; ->g : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; } ->n : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; } ->f : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; } +>g : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; }, Symbol(g, Decl(declFileTypeofFunction.ts, 3, 34), Decl(declFileTypeofFunction.ts, 4, 32), Decl(declFileTypeofFunction.ts, 5, 32)) +>n : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; }, Symbol(n, Decl(declFileTypeofFunction.ts, 5, 11)) +>f : { (n: typeof f): string; (n: { (n: typeof g): number; (n: typeof f): number; }): string; }, Symbol(f, Decl(declFileTypeofFunction.ts, 0, 0), Decl(declFileTypeofFunction.ts, 1, 32), Decl(declFileTypeofFunction.ts, 2, 32)) function g() { return undefined; } ->g : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; } ->undefined : undefined +>g : { (n: typeof g): number; (n: { (n: typeof f): string; (n: typeof g): string; }): number; }, Symbol(g, Decl(declFileTypeofFunction.ts, 3, 34), Decl(declFileTypeofFunction.ts, 4, 32), Decl(declFileTypeofFunction.ts, 5, 32)) +>undefined : undefined, Symbol(undefined) var b: () => typeof b; ->b : () => any ->b : () => any +>b : () => any, Symbol(b, Decl(declFileTypeofFunction.ts, 8, 3)) +>b : () => any, Symbol(b, Decl(declFileTypeofFunction.ts, 8, 3)) function b1() { ->b1 : () => typeof b1 +>b1 : () => typeof b1, Symbol(b1, Decl(declFileTypeofFunction.ts, 8, 22)) return b1; ->b1 : () => typeof b1 +>b1 : () => typeof b1, Symbol(b1, Decl(declFileTypeofFunction.ts, 8, 22)) } function foo(): typeof foo { ->foo : () => typeof foo ->foo : () => typeof foo +>foo : () => typeof foo, Symbol(foo, Decl(declFileTypeofFunction.ts, 12, 1)) +>foo : () => typeof foo, Symbol(foo, Decl(declFileTypeofFunction.ts, 12, 1)) return null; +>null : null } var foo1: typeof foo; ->foo1 : () => typeof foo ->foo : () => typeof foo +>foo1 : () => typeof foo, Symbol(foo1, Decl(declFileTypeofFunction.ts, 17, 3)) +>foo : () => typeof foo, Symbol(foo, Decl(declFileTypeofFunction.ts, 12, 1)) var foo2 = foo; ->foo2 : () => typeof foo ->foo : () => typeof foo +>foo2 : () => typeof foo, Symbol(foo2, Decl(declFileTypeofFunction.ts, 18, 3)) +>foo : () => typeof foo, Symbol(foo, Decl(declFileTypeofFunction.ts, 12, 1)) var foo3 = function () { ->foo3 : () => any +>foo3 : () => any, Symbol(foo3, Decl(declFileTypeofFunction.ts, 20, 3)) >function () { return foo3;} : () => any return foo3; ->foo3 : () => any +>foo3 : () => any, Symbol(foo3, Decl(declFileTypeofFunction.ts, 20, 3)) } var x = () => { ->x : () => any +>x : () => any, Symbol(x, Decl(declFileTypeofFunction.ts, 23, 3)) >() => { return x;} : () => any return x; ->x : () => any +>x : () => any, Symbol(x, Decl(declFileTypeofFunction.ts, 23, 3)) } function foo5(x: number) { ->foo5 : (x: number) => (x: number) => number ->x : number +>foo5 : (x: number) => (x: number) => number, Symbol(foo5, Decl(declFileTypeofFunction.ts, 25, 1)) +>x : number, Symbol(x, Decl(declFileTypeofFunction.ts, 27, 14)) function bar(x: number) { ->bar : (x: number) => number ->x : number +>bar : (x: number) => number, Symbol(bar, Decl(declFileTypeofFunction.ts, 27, 26)) +>x : number, Symbol(x, Decl(declFileTypeofFunction.ts, 28, 17)) return x; ->x : number +>x : number, Symbol(x, Decl(declFileTypeofFunction.ts, 28, 17)) } return bar; ->bar : (x: number) => number +>bar : (x: number) => number, Symbol(bar, Decl(declFileTypeofFunction.ts, 27, 26)) } diff --git a/tests/baselines/reference/declFileTypeofInAnonymousType.types b/tests/baselines/reference/declFileTypeofInAnonymousType.types index 39ea7383ca4..a4510277bcb 100644 --- a/tests/baselines/reference/declFileTypeofInAnonymousType.types +++ b/tests/baselines/reference/declFileTypeofInAnonymousType.types @@ -1,83 +1,83 @@ === tests/cases/compiler/declFileTypeofInAnonymousType.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofInAnonymousType.ts, 0, 0)) export class c { ->c : c +>c : c, Symbol(c, Decl(declFileTypeofInAnonymousType.ts, 1, 11)) } export enum e { ->e : e +>e : e, Symbol(e, Decl(declFileTypeofInAnonymousType.ts, 3, 5)) weekday, ->weekday : e +>weekday : e, Symbol(e.weekday, Decl(declFileTypeofInAnonymousType.ts, 4, 19)) weekend, ->weekend : e +>weekend : e, Symbol(e.weekend, Decl(declFileTypeofInAnonymousType.ts, 5, 16)) holiday ->holiday : e +>holiday : e, Symbol(e.holiday, Decl(declFileTypeofInAnonymousType.ts, 6, 16)) } } var a: { c: m1.c; }; ->a : { c: m1.c; } ->c : m1.c ->m1 : unknown ->c : m1.c +>a : { c: m1.c; }, Symbol(a, Decl(declFileTypeofInAnonymousType.ts, 10, 3)) +>c : m1.c, Symbol(c, Decl(declFileTypeofInAnonymousType.ts, 10, 8)) +>m1 : any, Symbol(m1, Decl(declFileTypeofInAnonymousType.ts, 0, 0)) +>c : m1.c, Symbol(m1.c, Decl(declFileTypeofInAnonymousType.ts, 1, 11)) var b = { ->b : { c: typeof m1.c; m1: typeof m1; } +>b : { c: typeof m1.c; m1: typeof m1; }, Symbol(b, Decl(declFileTypeofInAnonymousType.ts, 11, 3)) >{ c: m1.c, m1: m1} : { c: typeof m1.c; m1: typeof m1; } c: m1.c, ->c : typeof m1.c ->m1.c : typeof m1.c ->m1 : typeof m1 ->c : typeof m1.c +>c : typeof m1.c, Symbol(c, Decl(declFileTypeofInAnonymousType.ts, 11, 9)) +>m1.c : typeof m1.c, Symbol(m1.c, Decl(declFileTypeofInAnonymousType.ts, 1, 11)) +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofInAnonymousType.ts, 0, 0)) +>c : typeof m1.c, Symbol(m1.c, Decl(declFileTypeofInAnonymousType.ts, 1, 11)) m1: m1 ->m1 : typeof m1 ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofInAnonymousType.ts, 12, 12)) +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofInAnonymousType.ts, 0, 0)) }; var c = { m1: m1 }; ->c : { m1: typeof m1; } +>c : { m1: typeof m1; }, Symbol(c, Decl(declFileTypeofInAnonymousType.ts, 15, 3)) >{ m1: m1 } : { m1: typeof m1; } ->m1 : typeof m1 ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofInAnonymousType.ts, 15, 9)) +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofInAnonymousType.ts, 0, 0)) var d = { ->d : { m: { mod: typeof m1; }; mc: { cl: typeof m1.c; }; me: { en: typeof m1.e; }; mh: m1.e; } +>d : { m: { mod: typeof m1; }; mc: { cl: typeof m1.c; }; me: { en: typeof m1.e; }; mh: m1.e; }, Symbol(d, Decl(declFileTypeofInAnonymousType.ts, 16, 3)) >{ m: { mod: m1 }, mc: { cl: m1.c }, me: { en: m1.e }, mh: m1.e.holiday} : { m: { mod: typeof m1; }; mc: { cl: typeof m1.c; }; me: { en: typeof m1.e; }; mh: m1.e; } m: { mod: m1 }, ->m : { mod: typeof m1; } +>m : { mod: typeof m1; }, Symbol(m, Decl(declFileTypeofInAnonymousType.ts, 16, 9)) >{ mod: m1 } : { mod: typeof m1; } ->mod : typeof m1 ->m1 : typeof m1 +>mod : typeof m1, Symbol(mod, Decl(declFileTypeofInAnonymousType.ts, 17, 8)) +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofInAnonymousType.ts, 0, 0)) mc: { cl: m1.c }, ->mc : { cl: typeof m1.c; } +>mc : { cl: typeof m1.c; }, Symbol(mc, Decl(declFileTypeofInAnonymousType.ts, 17, 19)) >{ cl: m1.c } : { cl: typeof m1.c; } ->cl : typeof m1.c ->m1.c : typeof m1.c ->m1 : typeof m1 ->c : typeof m1.c +>cl : typeof m1.c, Symbol(cl, Decl(declFileTypeofInAnonymousType.ts, 18, 9)) +>m1.c : typeof m1.c, Symbol(m1.c, Decl(declFileTypeofInAnonymousType.ts, 1, 11)) +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofInAnonymousType.ts, 0, 0)) +>c : typeof m1.c, Symbol(m1.c, Decl(declFileTypeofInAnonymousType.ts, 1, 11)) me: { en: m1.e }, ->me : { en: typeof m1.e; } +>me : { en: typeof m1.e; }, Symbol(me, Decl(declFileTypeofInAnonymousType.ts, 18, 21)) >{ en: m1.e } : { en: typeof m1.e; } ->en : typeof m1.e ->m1.e : typeof m1.e ->m1 : typeof m1 ->e : typeof m1.e +>en : typeof m1.e, Symbol(en, Decl(declFileTypeofInAnonymousType.ts, 19, 9)) +>m1.e : typeof m1.e, Symbol(m1.e, Decl(declFileTypeofInAnonymousType.ts, 3, 5)) +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofInAnonymousType.ts, 0, 0)) +>e : typeof m1.e, Symbol(m1.e, Decl(declFileTypeofInAnonymousType.ts, 3, 5)) mh: m1.e.holiday ->mh : m1.e ->m1.e.holiday : m1.e ->m1.e : typeof m1.e ->m1 : typeof m1 ->e : typeof m1.e ->holiday : m1.e +>mh : m1.e, Symbol(mh, Decl(declFileTypeofInAnonymousType.ts, 19, 21)) +>m1.e.holiday : m1.e, Symbol(m1.e.holiday, Decl(declFileTypeofInAnonymousType.ts, 6, 16)) +>m1.e : typeof m1.e, Symbol(m1.e, Decl(declFileTypeofInAnonymousType.ts, 3, 5)) +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofInAnonymousType.ts, 0, 0)) +>e : typeof m1.e, Symbol(m1.e, Decl(declFileTypeofInAnonymousType.ts, 3, 5)) +>holiday : m1.e, Symbol(m1.e.holiday, Decl(declFileTypeofInAnonymousType.ts, 6, 16)) }; diff --git a/tests/baselines/reference/declFileTypeofModule.types b/tests/baselines/reference/declFileTypeofModule.types index ef4238bf2c5..67a75862ca7 100644 --- a/tests/baselines/reference/declFileTypeofModule.types +++ b/tests/baselines/reference/declFileTypeofModule.types @@ -1,32 +1,32 @@ === tests/cases/compiler/declFileTypeofModule.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofModule.ts, 0, 0)) export var c: string; ->c : string +>c : string, Symbol(c, Decl(declFileTypeofModule.ts, 2, 14)) } var m1_1 = m1; ->m1_1 : typeof m1 ->m1 : typeof m1 +>m1_1 : typeof m1, Symbol(m1_1, Decl(declFileTypeofModule.ts, 4, 3)) +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofModule.ts, 0, 0)) var m1_2: typeof m1; ->m1_2 : typeof m1 ->m1 : typeof m1 +>m1_2 : typeof m1, Symbol(m1_2, Decl(declFileTypeofModule.ts, 5, 3)) +>m1 : typeof m1, Symbol(m1, Decl(declFileTypeofModule.ts, 0, 0)) module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(declFileTypeofModule.ts, 5, 20)) export var d: typeof m2; ->d : typeof m2 ->m2 : typeof m2 +>d : typeof m2, Symbol(d, Decl(declFileTypeofModule.ts, 8, 14)) +>m2 : typeof m2, Symbol(m2, Decl(declFileTypeofModule.ts, 5, 20)) } var m2_1 = m2; ->m2_1 : typeof m2 ->m2 : typeof m2 +>m2_1 : typeof m2, Symbol(m2_1, Decl(declFileTypeofModule.ts, 11, 3)) +>m2 : typeof m2, Symbol(m2, Decl(declFileTypeofModule.ts, 5, 20)) var m2_2: typeof m2; ->m2_2 : typeof m2 ->m2 : typeof m2 +>m2_2 : typeof m2, Symbol(m2_2, Decl(declFileTypeofModule.ts, 12, 3)) +>m2 : typeof m2, Symbol(m2, Decl(declFileTypeofModule.ts, 5, 20)) diff --git a/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.types b/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.types index 818a31b26d5..7fd039daeb6 100644 --- a/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.types +++ b/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.types @@ -1,50 +1,56 @@ === tests/cases/compiler/declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts === declare module A.B.Base { ->A : typeof A ->B : typeof B ->Base : typeof Base +>A : typeof A, Symbol(A, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 0, 0)) +>B : typeof B, Symbol(B, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 1, 17)) +>Base : typeof Base, Symbol(Base, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 1, 19)) export class W { ->W : W +>W : W, Symbol(W, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 1, 25)) id: number; ->id : number +>id : number, Symbol(id, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 2, 20)) } } module X.Y.base { ->X : typeof X ->Y : typeof Y ->base : typeof base +>X : typeof X, Symbol(X, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 5, 1), Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 11, 1)) +>Y : typeof Y, Symbol(Y, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 6, 9), Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 13, 9)) +>base : typeof base, Symbol(base, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 6, 11), Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 13, 11)) export class W extends A.B.Base.W { ->W : W ->A : typeof A ->B : typeof A.B ->Base : typeof A.B.Base ->W : A.B.Base.W +>W : W, Symbol(W, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 6, 17)) +>A.B.Base.W : any, Symbol(A.B.Base.W, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 1, 25)) +>A.B.Base : typeof A.B.Base, Symbol(A.B.Base, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 1, 19)) +>A.B : typeof A.B, Symbol(A.B, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 1, 17)) +>A : typeof A, Symbol(A, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 0, 0)) +>B : typeof A.B, Symbol(A.B, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 1, 17)) +>Base : typeof A.B.Base, Symbol(A.B.Base, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 1, 19)) +>W : A.B.Base.W, Symbol(A.B.Base.W, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 1, 25)) name: string; ->name : string +>name : string, Symbol(name, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 8, 39)) } } module X.Y.base.Z { ->X : typeof X ->Y : typeof Y ->base : typeof base ->Z : typeof Z +>X : typeof X, Symbol(X, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 5, 1), Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 11, 1)) +>Y : typeof Y, Symbol(Y, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 6, 9), Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 13, 9)) +>base : typeof base, Symbol(base, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 6, 11), Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 13, 11)) +>Z : typeof Z, Symbol(Z, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 13, 16)) export class W extends X.Y.base.W { ->W : W ->TValue : TValue ->X : typeof X ->Y : typeof Y ->base : typeof base ->W : base.W +>W : W, Symbol(W, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 13, 19)) +>TValue : TValue, Symbol(TValue, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 15, 19)) +>X.Y.base.W : any, Symbol(W, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 6, 17)) +>X.Y.base : typeof base, Symbol(base, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 6, 11), Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 13, 11)) +>X.Y : typeof Y, Symbol(Y, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 6, 9), Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 13, 9)) +>X : typeof X, Symbol(X, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 5, 1), Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 11, 1)) +>Y : typeof Y, Symbol(Y, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 6, 9), Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 13, 9)) +>base : typeof base, Symbol(base, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 6, 11), Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 13, 11)) +>W : base.W, Symbol(W, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 6, 17)) value: boolean; ->value : boolean +>value : boolean, Symbol(value, Decl(declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts, 15, 47)) } } diff --git a/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.types b/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.types index 4dae0d42c53..8f09f3c3482 100644 --- a/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.types +++ b/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.types @@ -1,38 +1,38 @@ === tests/cases/compiler/declFileWithExtendsClauseThatHasItsContainerNameConflict.ts === declare module A.B.C { ->A : typeof A ->B : typeof B ->C : typeof C +>A : typeof A, Symbol(A, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 0, 0), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 4, 1), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 11, 1)) +>B : typeof B, Symbol(B, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 1, 17), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 6, 9), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 13, 9)) +>C : typeof C, Symbol(C, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 1, 19), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 13, 11)) class B { ->B : B +>B : B, Symbol(B, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 1, 22)) } } module A.B { ->A : typeof A ->B : typeof B +>A : typeof A, Symbol(A, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 0, 0), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 4, 1), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 11, 1)) +>B : typeof B, Symbol(B, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 1, 17), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 6, 9), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 13, 9)) export class EventManager { ->EventManager : EventManager +>EventManager : EventManager, Symbol(EventManager, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 6, 12)) id: number; ->id : number +>id : number, Symbol(id, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 7, 31)) } } module A.B.C { ->A : typeof A ->B : typeof B ->C : typeof C +>A : typeof A, Symbol(A, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 0, 0), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 4, 1), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 11, 1)) +>B : typeof B, Symbol(B, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 1, 17), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 6, 9), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 13, 9)) +>C : typeof C, Symbol(C, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 1, 19), Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 13, 11)) export class ContextMenu extends EventManager { ->ContextMenu : ContextMenu ->EventManager : EventManager +>ContextMenu : ContextMenu, Symbol(ContextMenu, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 13, 14)) +>EventManager : EventManager, Symbol(EventManager, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 6, 12)) name: string; ->name : string +>name : string, Symbol(name, Decl(declFileWithExtendsClauseThatHasItsContainerNameConflict.ts, 14, 51)) } } diff --git a/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause1.types b/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause1.types index b2a1c154412..52d0f7a800e 100644 --- a/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause1.types +++ b/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause1.types @@ -1,28 +1,31 @@ === tests/cases/compiler/declFileWithInternalModuleNameConflictsInExtendsClause1.ts === module X.A.C { ->X : typeof X ->A : typeof A ->C : unknown +>X : typeof X, Symbol(X, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 0, 0), Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 4, 1)) +>A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 5, 9)) +>C : any, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 1, 11)) export interface Z { ->Z : Z +>Z : Z, Symbol(Z, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 1, 14)) } } module X.A.B.C { ->X : typeof X ->A : typeof A ->B : typeof B ->C : typeof C +>X : typeof X, Symbol(X, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 0, 0), Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 4, 1)) +>A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 5, 9)) +>B : typeof B, Symbol(B, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 5, 11)) +>C : typeof C, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 5, 13)) module A { ->A : unknown +>A : any, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 5, 16)) } export class W implements X.A.C.Z { // This needs to be refered as X.A.C.Z as A has conflict ->W : W ->X : typeof X ->A : typeof A ->C : unknown ->Z : X.A.C.Z +>W : W, Symbol(W, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 7, 5)) +>X.A.C.Z : any, Symbol(X.A.C.Z, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 1, 14)) +>X.A.C : any, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 1, 11)) +>X.A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 5, 9)) +>X : typeof X, Symbol(X, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 0, 0), Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 4, 1)) +>A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 5, 9)) +>C : any, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 1, 11)) +>Z : X.A.C.Z, Symbol(X.A.C.Z, Decl(declFileWithInternalModuleNameConflictsInExtendsClause1.ts, 1, 14)) } } diff --git a/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause2.types b/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause2.types index e43d0b78f57..7be1b10fc77 100644 --- a/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause2.types +++ b/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause2.types @@ -1,35 +1,37 @@ === tests/cases/compiler/declFileWithInternalModuleNameConflictsInExtendsClause2.ts === module X.A.C { ->X : typeof X ->A : typeof A ->C : unknown +>X : typeof X, Symbol(X, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 0, 0), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 4, 1), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 8, 1)) +>A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 5, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 10, 9)) +>C : any, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 1, 11)) export interface Z { ->Z : Z +>Z : Z, Symbol(Z, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 1, 14)) } } module X.A.B.C { ->X : typeof X ->A : typeof A ->B : typeof B ->C : typeof C +>X : typeof X, Symbol(X, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 0, 0), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 4, 1), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 8, 1)) +>A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 5, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 10, 9)) +>B : typeof B, Symbol(B, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 5, 11), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 10, 11)) +>C : typeof C, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 5, 13), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 10, 13)) export class W implements A.C.Z { // This can refer to it as A.C.Z ->W : W ->A : typeof A ->C : unknown ->Z : A.C.Z +>W : W, Symbol(W, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 5, 16)) +>A.C.Z : any, Symbol(A.C.Z, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 1, 14)) +>A.C : any, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 1, 11)) +>A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 5, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 10, 9)) +>C : any, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 1, 11)) +>Z : A.C.Z, Symbol(A.C.Z, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 1, 14)) } } module X.A.B.C { ->X : typeof X ->A : typeof A ->B : typeof B ->C : typeof C +>X : typeof X, Symbol(X, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 0, 0), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 4, 1), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 8, 1)) +>A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 5, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 10, 9)) +>B : typeof B, Symbol(B, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 5, 11), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 10, 11)) +>C : typeof C, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 5, 13), Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 10, 13)) module A { ->A : unknown +>A : any, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause2.ts, 10, 16)) } } diff --git a/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause3.types b/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause3.types index d45c2cf0523..4ed53167af8 100644 --- a/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause3.types +++ b/tests/baselines/reference/declFileWithInternalModuleNameConflictsInExtendsClause3.types @@ -1,36 +1,39 @@ === tests/cases/compiler/declFileWithInternalModuleNameConflictsInExtendsClause3.ts === module X.A.C { ->X : typeof X ->A : typeof A ->C : unknown +>X : typeof X, Symbol(X, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 0, 0), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 4, 1), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 8, 1)) +>A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 5, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 10, 9)) +>C : any, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 1, 11)) export interface Z { ->Z : Z +>Z : Z, Symbol(Z, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 1, 14)) } } module X.A.B.C { ->X : typeof X ->A : typeof A ->B : typeof B ->C : typeof C +>X : typeof X, Symbol(X, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 0, 0), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 4, 1), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 8, 1)) +>A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 5, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 10, 9)) +>B : typeof B, Symbol(B, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 5, 11), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 10, 11)) +>C : typeof C, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 5, 13), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 10, 13)) export class W implements X.A.C.Z { // This needs to be refered as X.A.C.Z as A has conflict ->W : W ->X : typeof X ->A : typeof A ->C : unknown ->Z : X.A.C.Z +>W : W, Symbol(W, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 5, 16)) +>X.A.C.Z : any, Symbol(X.A.C.Z, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 1, 14)) +>X.A.C : any, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 1, 11)) +>X.A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 5, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 10, 9)) +>X : typeof X, Symbol(X, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 0, 0), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 4, 1), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 8, 1)) +>A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 5, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 10, 9)) +>C : any, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 1, 11)) +>Z : X.A.C.Z, Symbol(X.A.C.Z, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 1, 14)) } } module X.A.B.C { ->X : typeof X ->A : typeof A ->B : typeof B ->C : typeof C +>X : typeof X, Symbol(X, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 0, 0), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 4, 1), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 8, 1)) +>A : typeof A, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 1, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 5, 9), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 10, 9)) +>B : typeof B, Symbol(B, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 5, 11), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 10, 11)) +>C : typeof C, Symbol(C, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 5, 13), Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 10, 13)) export module A { ->A : unknown +>A : any, Symbol(A, Decl(declFileWithInternalModuleNameConflictsInExtendsClause3.ts, 10, 16)) } } diff --git a/tests/baselines/reference/declInput3.types b/tests/baselines/reference/declInput3.types index df69422f55b..360149749fe 100644 --- a/tests/baselines/reference/declInput3.types +++ b/tests/baselines/reference/declInput3.types @@ -1,32 +1,38 @@ === tests/cases/compiler/declInput3.ts === interface bar2 { ->bar2 : bar2 +>bar2 : bar2, Symbol(bar2, Decl(declInput3.ts, 0, 0)) } class bar { ->bar : bar +>bar : bar, Symbol(bar, Decl(declInput3.ts, 2, 1)) public f() { return ''; } ->f : () => string +>f : () => string, Symbol(f, Decl(declInput3.ts, 4, 11)) +>'' : string public g() { return {a: null, b: undefined, c: void 4 }; } ->g : () => { a: bar; b: any; c: any; } +>g : () => { a: bar; b: any; c: any; }, Symbol(g, Decl(declInput3.ts, 5, 27)) >{a: null, b: undefined, c: void 4 } : { a: bar; b: undefined; c: undefined; } ->a : bar +>a : bar, Symbol(a, Decl(declInput3.ts, 6, 23)) >null : bar ->bar : bar ->b : undefined ->undefined : undefined ->c : undefined +>bar : bar, Symbol(bar, Decl(declInput3.ts, 2, 1)) +>null : null +>b : undefined, Symbol(b, Decl(declInput3.ts, 6, 36)) +>undefined : undefined, Symbol(undefined) +>c : undefined, Symbol(c, Decl(declInput3.ts, 6, 50)) >void 4 : undefined +>4 : number public h(x = 4, y = null, z = '') { x++; } ->h : (x?: number, y?: any, z?: string) => void ->x : number ->y : any ->z : string +>h : (x?: number, y?: any, z?: string) => void, Symbol(h, Decl(declInput3.ts, 6, 65)) +>x : number, Symbol(x, Decl(declInput3.ts, 7, 11)) +>4 : number +>y : any, Symbol(y, Decl(declInput3.ts, 7, 17)) +>null : null +>z : string, Symbol(z, Decl(declInput3.ts, 7, 27)) +>'' : string >x++ : number ->x : number +>x : number, Symbol(x, Decl(declInput3.ts, 7, 11)) } diff --git a/tests/baselines/reference/declInput4.types b/tests/baselines/reference/declInput4.types index 7f5c5a81197..689d340ec1e 100644 --- a/tests/baselines/reference/declInput4.types +++ b/tests/baselines/reference/declInput4.types @@ -1,47 +1,49 @@ === tests/cases/compiler/declInput4.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(declInput4.ts, 0, 0)) class C { } ->C : C +>C : C, Symbol(C, Decl(declInput4.ts, 0, 10)) export class E {} ->E : E +>E : E, Symbol(E, Decl(declInput4.ts, 1, 15)) export interface I1 {} ->I1 : I1 +>I1 : I1, Symbol(I1, Decl(declInput4.ts, 2, 21)) interface I2 {} ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(declInput4.ts, 3, 26)) export class D { ->D : D +>D : D, Symbol(D, Decl(declInput4.ts, 4, 19)) public m1: number; ->m1 : number +>m1 : number, Symbol(m1, Decl(declInput4.ts, 5, 20)) public m2: string; ->m2 : string +>m2 : string, Symbol(m2, Decl(declInput4.ts, 6, 26)) public m23: E; ->m23 : E ->E : E +>m23 : E, Symbol(m23, Decl(declInput4.ts, 7, 26)) +>E : E, Symbol(E, Decl(declInput4.ts, 1, 15)) public m24: I1; ->m24 : I1 ->I1 : I1 +>m24 : I1, Symbol(m24, Decl(declInput4.ts, 8, 22)) +>I1 : I1, Symbol(I1, Decl(declInput4.ts, 2, 21)) public m232(): E { return null;} ->m232 : () => E ->E : E +>m232 : () => E, Symbol(m232, Decl(declInput4.ts, 9, 23)) +>E : E, Symbol(E, Decl(declInput4.ts, 1, 15)) +>null : null public m242(): I1 { return null; } ->m242 : () => I1 ->I1 : I1 +>m242 : () => I1, Symbol(m242, Decl(declInput4.ts, 10, 40)) +>I1 : I1, Symbol(I1, Decl(declInput4.ts, 2, 21)) +>null : null public m26(i:I1) {} ->m26 : (i: I1) => void ->i : I1 ->I1 : I1 +>m26 : (i: I1) => void, Symbol(m26, Decl(declInput4.ts, 11, 42)) +>i : I1, Symbol(i, Decl(declInput4.ts, 12, 19)) +>I1 : I1, Symbol(I1, Decl(declInput4.ts, 2, 21)) } } diff --git a/tests/baselines/reference/declarationEmitDefaultExport1.types b/tests/baselines/reference/declarationEmitDefaultExport1.types index 41dd3547b6d..365ce31e1aa 100644 --- a/tests/baselines/reference/declarationEmitDefaultExport1.types +++ b/tests/baselines/reference/declarationEmitDefaultExport1.types @@ -1,4 +1,4 @@ === tests/cases/compiler/declarationEmitDefaultExport1.ts === export default class C { ->C : C +>C : C, Symbol(C, Decl(declarationEmitDefaultExport1.ts, 0, 0)) } diff --git a/tests/baselines/reference/declarationEmitDefaultExport3.types b/tests/baselines/reference/declarationEmitDefaultExport3.types index 0bde6eff915..b408feb8c34 100644 --- a/tests/baselines/reference/declarationEmitDefaultExport3.types +++ b/tests/baselines/reference/declarationEmitDefaultExport3.types @@ -1,6 +1,7 @@ === tests/cases/compiler/declarationEmitDefaultExport3.ts === export default function foo() { ->foo : () => string +>foo : () => string, Symbol(foo, Decl(declarationEmitDefaultExport3.ts, 0, 0)) return "" +>"" : string } diff --git a/tests/baselines/reference/declarationEmitDefaultExport4.types b/tests/baselines/reference/declarationEmitDefaultExport4.types index 8043af36b76..ab97484176d 100644 --- a/tests/baselines/reference/declarationEmitDefaultExport4.types +++ b/tests/baselines/reference/declarationEmitDefaultExport4.types @@ -1,5 +1,5 @@ === tests/cases/compiler/declarationEmitDefaultExport4.ts === export default function () { -No type information for this code. return 1; -No type information for this code.} -No type information for this code. \ No newline at end of file + return 1; +>1 : number +} diff --git a/tests/baselines/reference/declarationEmitDefaultExport5.js b/tests/baselines/reference/declarationEmitDefaultExport5.js index a8794d92c63..701318b14d7 100644 --- a/tests/baselines/reference/declarationEmitDefaultExport5.js +++ b/tests/baselines/reference/declarationEmitDefaultExport5.js @@ -7,4 +7,5 @@ export default 1 + 2; //// [declarationEmitDefaultExport5.d.ts] -export default : number; +declare var _default: number; +export default _default; diff --git a/tests/baselines/reference/declarationEmitDefaultExport5.types b/tests/baselines/reference/declarationEmitDefaultExport5.types index 702cc51f71e..d2b177cc084 100644 --- a/tests/baselines/reference/declarationEmitDefaultExport5.types +++ b/tests/baselines/reference/declarationEmitDefaultExport5.types @@ -1,4 +1,6 @@ === tests/cases/compiler/declarationEmitDefaultExport5.ts === export default 1 + 2; >1 + 2 : number +>1 : number +>2 : number diff --git a/tests/baselines/reference/declarationEmitDefaultExport6.js b/tests/baselines/reference/declarationEmitDefaultExport6.js index d328458366e..d56609e8534 100644 --- a/tests/baselines/reference/declarationEmitDefaultExport6.js +++ b/tests/baselines/reference/declarationEmitDefaultExport6.js @@ -12,4 +12,5 @@ export default new A(); //// [declarationEmitDefaultExport6.d.ts] export declare class A { } -export default : A; +declare var _default: A; +export default _default; diff --git a/tests/baselines/reference/declarationEmitDefaultExport6.types b/tests/baselines/reference/declarationEmitDefaultExport6.types index 9c839edb1a9..b1fe25152e1 100644 --- a/tests/baselines/reference/declarationEmitDefaultExport6.types +++ b/tests/baselines/reference/declarationEmitDefaultExport6.types @@ -1,8 +1,8 @@ === tests/cases/compiler/declarationEmitDefaultExport6.ts === export class A {} ->A : A +>A : A, Symbol(A, Decl(declarationEmitDefaultExport6.ts, 0, 0)) export default new A(); >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(declarationEmitDefaultExport6.ts, 0, 0)) diff --git a/tests/baselines/reference/declarationEmitDefaultExport8.js b/tests/baselines/reference/declarationEmitDefaultExport8.js new file mode 100644 index 00000000000..c023f3be7d3 --- /dev/null +++ b/tests/baselines/reference/declarationEmitDefaultExport8.js @@ -0,0 +1,18 @@ +//// [declarationEmitDefaultExport8.ts] + +var _default = 1; +export {_default as d} +export default 1 + 2; + + +//// [declarationEmitDefaultExport8.js] +var _default = 1; +export { _default as d }; +export default 1 + 2; + + +//// [declarationEmitDefaultExport8.d.ts] +declare var _default: number; +export { _default as d }; +declare var _default_1: number; +export default _default_1; diff --git a/tests/baselines/reference/declarationEmitDefaultExport8.types b/tests/baselines/reference/declarationEmitDefaultExport8.types new file mode 100644 index 00000000000..aee0477cc12 --- /dev/null +++ b/tests/baselines/reference/declarationEmitDefaultExport8.types @@ -0,0 +1,15 @@ +=== tests/cases/compiler/declarationEmitDefaultExport8.ts === + +var _default = 1; +>_default : number, Symbol(_default, Decl(declarationEmitDefaultExport8.ts, 1, 3)) +>1 : number + +export {_default as d} +>_default : number, Symbol(d, Decl(declarationEmitDefaultExport8.ts, 2, 8)) +>d : number, Symbol(d, Decl(declarationEmitDefaultExport8.ts, 2, 8)) + +export default 1 + 2; +>1 + 2 : number +>1 : number +>2 : number + diff --git a/tests/baselines/reference/declarationEmitDestructuring1.types b/tests/baselines/reference/declarationEmitDestructuring1.types index 6b22f25b54b..a9a1cde7f63 100644 --- a/tests/baselines/reference/declarationEmitDestructuring1.types +++ b/tests/baselines/reference/declarationEmitDestructuring1.types @@ -1,33 +1,33 @@ === tests/cases/compiler/declarationEmitDestructuring1.ts === function foo([a, b, c]: [string, string, string]): void { } ->foo : ([a, b, c]: [string, string, string]) => void ->a : string ->b : string ->c : string +>foo : ([a, b, c]: [string, string, string]) => void, Symbol(foo, Decl(declarationEmitDestructuring1.ts, 0, 0)) +>a : string, Symbol(a, Decl(declarationEmitDestructuring1.ts, 0, 14)) +>b : string, Symbol(b, Decl(declarationEmitDestructuring1.ts, 0, 16)) +>c : string, Symbol(c, Decl(declarationEmitDestructuring1.ts, 0, 19)) function far([a, [b], [[c]]]: [number, boolean[], string[][]]): void { } ->far : ([a, [b], [[c]]]: [number, boolean[], string[][]]) => void ->a : number ->b : boolean ->c : string +>far : ([a, [b], [[c]]]: [number, boolean[], string[][]]) => void, Symbol(far, Decl(declarationEmitDestructuring1.ts, 0, 59)) +>a : number, Symbol(a, Decl(declarationEmitDestructuring1.ts, 1, 14)) +>b : boolean, Symbol(b, Decl(declarationEmitDestructuring1.ts, 1, 18)) +>c : string, Symbol(c, Decl(declarationEmitDestructuring1.ts, 1, 24)) function bar({a1, b1, c1}: { a1: number, b1: boolean, c1: string }): void { } ->bar : ({a1, b1, c1}: { a1: number; b1: boolean; c1: string; }) => void ->a1 : number ->b1 : boolean ->c1 : string ->a1 : number ->b1 : boolean ->c1 : string +>bar : ({a1, b1, c1}: { a1: number; b1: boolean; c1: string; }) => void, Symbol(bar, Decl(declarationEmitDestructuring1.ts, 1, 72)) +>a1 : number, Symbol(a1, Decl(declarationEmitDestructuring1.ts, 2, 14)) +>b1 : boolean, Symbol(b1, Decl(declarationEmitDestructuring1.ts, 2, 17)) +>c1 : string, Symbol(c1, Decl(declarationEmitDestructuring1.ts, 2, 21)) +>a1 : number, Symbol(a1, Decl(declarationEmitDestructuring1.ts, 2, 28)) +>b1 : boolean, Symbol(b1, Decl(declarationEmitDestructuring1.ts, 2, 40)) +>c1 : string, Symbol(c1, Decl(declarationEmitDestructuring1.ts, 2, 53)) function baz({a2, b2: {b1, c1}}: { a2: number, b2: { b1: boolean, c1: string } }): void { } ->baz : ({a2, b2: {b1, c1}}: { a2: number; b2: { b1: boolean; c1: string; }; }) => void ->a2 : number ->b2 : unknown ->b1 : boolean ->c1 : string ->a2 : number ->b2 : { b1: boolean; c1: string; } ->b1 : boolean ->c1 : string +>baz : ({a2, b2: {b1, c1}}: { a2: number; b2: { b1: boolean; c1: string; }; }) => void, Symbol(baz, Decl(declarationEmitDestructuring1.ts, 2, 77)) +>a2 : number, Symbol(a2, Decl(declarationEmitDestructuring1.ts, 3, 14)) +>b2 : any +>b1 : boolean, Symbol(b1, Decl(declarationEmitDestructuring1.ts, 3, 23)) +>c1 : string, Symbol(c1, Decl(declarationEmitDestructuring1.ts, 3, 26)) +>a2 : number, Symbol(a2, Decl(declarationEmitDestructuring1.ts, 3, 34)) +>b2 : { b1: boolean; c1: string; }, Symbol(b2, Decl(declarationEmitDestructuring1.ts, 3, 46)) +>b1 : boolean, Symbol(b1, Decl(declarationEmitDestructuring1.ts, 3, 52)) +>c1 : string, Symbol(c1, Decl(declarationEmitDestructuring1.ts, 3, 65)) diff --git a/tests/baselines/reference/declarationEmitDestructuring2.types b/tests/baselines/reference/declarationEmitDestructuring2.types index 3368d4e72fd..f1b1a79b2d1 100644 --- a/tests/baselines/reference/declarationEmitDestructuring2.types +++ b/tests/baselines/reference/declarationEmitDestructuring2.types @@ -1,49 +1,68 @@ === tests/cases/compiler/declarationEmitDestructuring2.ts === function f({x = 10, y: [a, b, c, d] = [1, 2, 3, 4]} = { x: 10, y: [2, 4, 6, 8] }) { } ->f : ({x = 10, y: [a, b, c, d] = [1, 2, 3, 4]}?: { x: number; y: [number, number, number, number]; }) => void ->x : number ->y : unknown ->a : number ->b : number ->c : number ->d : number +>f : ({x = 10, y: [a, b, c, d] = [1, 2, 3, 4]}?: { x: number; y: [number, number, number, number]; }) => void, Symbol(f, Decl(declarationEmitDestructuring2.ts, 0, 0)) +>x : number, Symbol(x, Decl(declarationEmitDestructuring2.ts, 0, 12)) +>10 : number +>y : any +>a : number, Symbol(a, Decl(declarationEmitDestructuring2.ts, 0, 24)) +>b : number, Symbol(b, Decl(declarationEmitDestructuring2.ts, 0, 26)) +>c : number, Symbol(c, Decl(declarationEmitDestructuring2.ts, 0, 29)) +>d : number, Symbol(d, Decl(declarationEmitDestructuring2.ts, 0, 32)) >[1, 2, 3, 4] : [number, number, number, number] +>1 : number +>2 : number +>3 : number +>4 : number >{ x: 10, y: [2, 4, 6, 8] } : { x: number; y: [number, number, number, number]; } ->x : number ->y : [number, number, number, number] +>x : number, Symbol(x, Decl(declarationEmitDestructuring2.ts, 0, 55)) +>10 : number +>y : [number, number, number, number], Symbol(y, Decl(declarationEmitDestructuring2.ts, 0, 62)) >[2, 4, 6, 8] : [number, number, number, number] +>2 : number +>4 : number +>6 : number +>8 : number function g([a, b, c, d] = [1, 2, 3, 4]) { } ->g : ([a, b, c, d]?: [number, number, number, number]) => void ->a : number ->b : number ->c : number ->d : number +>g : ([a, b, c, d]?: [number, number, number, number]) => void, Symbol(g, Decl(declarationEmitDestructuring2.ts, 0, 85)) +>a : number, Symbol(a, Decl(declarationEmitDestructuring2.ts, 1, 12)) +>b : number, Symbol(b, Decl(declarationEmitDestructuring2.ts, 1, 14)) +>c : number, Symbol(c, Decl(declarationEmitDestructuring2.ts, 1, 17)) +>d : number, Symbol(d, Decl(declarationEmitDestructuring2.ts, 1, 20)) >[1, 2, 3, 4] : [number, number, number, number] +>1 : number +>2 : number +>3 : number +>4 : number function h([a, [b], [[c]], {x = 10, y: [a, b, c], z: {a1, b1}}]){ } ->h : ([a, [b], [[c]], {x = 10, y: [a, b, c], z: {a1, b1}}]: [any, [any], [[any]], { x?: number; y: [any, any, any]; z: { a1: any; b1: any; }; }]) => void ->a : any ->b : any ->c : any ->x : number ->y : unknown ->a : any ->b : any ->c : any ->z : unknown ->a1 : any ->b1 : any +>h : ([a, [b], [[c]], {x = 10, y: [a, b, c], z: {a1, b1}}]: [any, [any], [[any]], { x?: number; y: [any, any, any]; z: { a1: any; b1: any; }; }]) => void, Symbol(h, Decl(declarationEmitDestructuring2.ts, 1, 43)) +>a : any, Symbol(a, Decl(declarationEmitDestructuring2.ts, 2, 12), Decl(declarationEmitDestructuring2.ts, 2, 40)) +>b : any, Symbol(b, Decl(declarationEmitDestructuring2.ts, 2, 16), Decl(declarationEmitDestructuring2.ts, 2, 42)) +>c : any, Symbol(c, Decl(declarationEmitDestructuring2.ts, 2, 22), Decl(declarationEmitDestructuring2.ts, 2, 45)) +>x : number, Symbol(x, Decl(declarationEmitDestructuring2.ts, 2, 28)) +>10 : number +>y : any +>a : any, Symbol(a, Decl(declarationEmitDestructuring2.ts, 2, 12), Decl(declarationEmitDestructuring2.ts, 2, 40)) +>b : any, Symbol(b, Decl(declarationEmitDestructuring2.ts, 2, 16), Decl(declarationEmitDestructuring2.ts, 2, 42)) +>c : any, Symbol(c, Decl(declarationEmitDestructuring2.ts, 2, 22), Decl(declarationEmitDestructuring2.ts, 2, 45)) +>z : any +>a1 : any, Symbol(a1, Decl(declarationEmitDestructuring2.ts, 2, 54)) +>b1 : any, Symbol(b1, Decl(declarationEmitDestructuring2.ts, 2, 57)) function h1([a, [b], [[c]], {x = 10, y = [1, 2, 3], z: {a1, b1}}]){ } ->h1 : ([a, [b], [[c]], {x = 10, y = [1, 2, 3], z: {a1, b1}}]: [any, [any], [[any]], { x?: number; y?: number[]; z: { a1: any; b1: any; }; }]) => void ->a : any ->b : any ->c : any ->x : number ->y : number[] +>h1 : ([a, [b], [[c]], {x = 10, y = [1, 2, 3], z: {a1, b1}}]: [any, [any], [[any]], { x?: number; y?: number[]; z: { a1: any; b1: any; }; }]) => void, Symbol(h1, Decl(declarationEmitDestructuring2.ts, 2, 67)) +>a : any, Symbol(a, Decl(declarationEmitDestructuring2.ts, 3, 13)) +>b : any, Symbol(b, Decl(declarationEmitDestructuring2.ts, 3, 17)) +>c : any, Symbol(c, Decl(declarationEmitDestructuring2.ts, 3, 23)) +>x : number, Symbol(x, Decl(declarationEmitDestructuring2.ts, 3, 29)) +>10 : number +>y : number[], Symbol(y, Decl(declarationEmitDestructuring2.ts, 3, 36)) >[1, 2, 3] : number[] ->z : unknown ->a1 : any ->b1 : any +>1 : number +>2 : number +>3 : number +>z : any +>a1 : any, Symbol(a1, Decl(declarationEmitDestructuring2.ts, 3, 56)) +>b1 : any, Symbol(b1, Decl(declarationEmitDestructuring2.ts, 3, 59)) diff --git a/tests/baselines/reference/declarationEmitDestructuring3.types b/tests/baselines/reference/declarationEmitDestructuring3.types index 57764f53eee..12154864e1c 100644 --- a/tests/baselines/reference/declarationEmitDestructuring3.types +++ b/tests/baselines/reference/declarationEmitDestructuring3.types @@ -1,14 +1,17 @@ === tests/cases/compiler/declarationEmitDestructuring3.ts === function bar([x, z, ...w]) { } ->bar : ([x, z, ...w]: any[]) => void ->x : any ->z : any ->w : any[] +>bar : ([x, z, ...w]: any[]) => void, Symbol(bar, Decl(declarationEmitDestructuring3.ts, 0, 0)) +>x : any, Symbol(x, Decl(declarationEmitDestructuring3.ts, 0, 14)) +>z : any, Symbol(z, Decl(declarationEmitDestructuring3.ts, 0, 16)) +>w : any[], Symbol(w, Decl(declarationEmitDestructuring3.ts, 0, 19)) function foo([x, ...y] = [1, "string", true]) { } ->foo : ([x, ...y]?: (string | number | boolean)[]) => void ->x : string | number | boolean ->y : (string | number | boolean)[] +>foo : ([x, ...y]?: (string | number | boolean)[]) => void, Symbol(foo, Decl(declarationEmitDestructuring3.ts, 0, 30)) +>x : string | number | boolean, Symbol(x, Decl(declarationEmitDestructuring3.ts, 1, 14)) +>y : (string | number | boolean)[], Symbol(y, Decl(declarationEmitDestructuring3.ts, 1, 16)) >[1, "string", true] : (string | number | boolean)[] +>1 : number +>"string" : string +>true : boolean diff --git a/tests/baselines/reference/declarationEmitDestructuring4.types b/tests/baselines/reference/declarationEmitDestructuring4.types index 6a90eda1702..eee5de105e4 100644 --- a/tests/baselines/reference/declarationEmitDestructuring4.types +++ b/tests/baselines/reference/declarationEmitDestructuring4.types @@ -3,23 +3,30 @@ // we will not make any modification and will emit // the similar binding pattern users' have written function baz([]) { } ->baz : ([]: any[]) => void +>baz : ([]: any[]) => void, Symbol(baz, Decl(declarationEmitDestructuring4.ts, 0, 0)) function baz1([] = [1,2,3]) { } ->baz1 : ([]?: number[]) => void +>baz1 : ([]?: number[]) => void, Symbol(baz1, Decl(declarationEmitDestructuring4.ts, 3, 20)) >[1,2,3] : number[] +>1 : number +>2 : number +>3 : number function baz2([[]] = [[1,2,3]]) { } ->baz2 : ([[]]?: [number[]]) => void +>baz2 : ([[]]?: [number[]]) => void, Symbol(baz2, Decl(declarationEmitDestructuring4.ts, 4, 31)) >[[1,2,3]] : [number[]] >[1,2,3] : number[] +>1 : number +>2 : number +>3 : number function baz3({}) { } ->baz3 : ({}: {}) => void +>baz3 : ({}: {}) => void, Symbol(baz3, Decl(declarationEmitDestructuring4.ts, 5, 35)) function baz4({} = { x: 10 }) { } ->baz4 : ({}?: { x: number; }) => void +>baz4 : ({}?: { x: number; }) => void, Symbol(baz4, Decl(declarationEmitDestructuring4.ts, 7, 21)) >{ x: 10 } : { x: number; } ->x : number +>x : number, Symbol(x, Decl(declarationEmitDestructuring4.ts, 8, 20)) +>10 : number diff --git a/tests/baselines/reference/declarationEmitDestructuring5.types b/tests/baselines/reference/declarationEmitDestructuring5.types index 375440bea0b..4eaa732c21b 100644 --- a/tests/baselines/reference/declarationEmitDestructuring5.types +++ b/tests/baselines/reference/declarationEmitDestructuring5.types @@ -1,22 +1,38 @@ === tests/cases/compiler/declarationEmitDestructuring5.ts === function baz([, z, , ]) { } ->baz : ([, z, , ]: [any, any, any]) => void ->z : any +>baz : ([, z, , ]: [any, any, any]) => void, Symbol(baz, Decl(declarationEmitDestructuring5.ts, 0, 0)) +> : undefined +>z : any, Symbol(z, Decl(declarationEmitDestructuring5.ts, 0, 15)) +> : undefined function foo([, b, ]: [any, any]): void { } ->foo : ([, b, ]: [any, any]) => void ->b : any +>foo : ([, b, ]: [any, any]) => void, Symbol(foo, Decl(declarationEmitDestructuring5.ts, 0, 27)) +> : undefined +>b : any, Symbol(b, Decl(declarationEmitDestructuring5.ts, 1, 15)) function bar([z, , , ]) { } ->bar : ([z, , , ]: [any, any, any]) => void ->z : any +>bar : ([z, , , ]: [any, any, any]) => void, Symbol(bar, Decl(declarationEmitDestructuring5.ts, 1, 43)) +>z : any, Symbol(z, Decl(declarationEmitDestructuring5.ts, 2, 14)) +> : undefined +> : undefined function bar1([z, , , ] = [1, 3, 4, 6, 7]) { } ->bar1 : ([z, , , ]?: [number, number, number, number, number]) => void ->z : number +>bar1 : ([z, , , ]?: [number, number, number, number, number]) => void, Symbol(bar1, Decl(declarationEmitDestructuring5.ts, 2, 27)) +>z : number, Symbol(z, Decl(declarationEmitDestructuring5.ts, 3, 15)) +> : undefined +> : undefined >[1, 3, 4, 6, 7] : [number, number, number, number, number] +>1 : number +>3 : number +>4 : number +>6 : number +>7 : number function bar2([,,z, , , ]) { } ->bar2 : ([,,z, , , ]: [any, any, any, any, any]) => void ->z : any +>bar2 : ([,,z, , , ]: [any, any, any, any, any]) => void, Symbol(bar2, Decl(declarationEmitDestructuring5.ts, 3, 46)) +> : undefined +> : undefined +>z : any, Symbol(z, Decl(declarationEmitDestructuring5.ts, 4, 17)) +> : undefined +> : undefined diff --git a/tests/baselines/reference/declarationEmitDestructuringArrayPattern1.types b/tests/baselines/reference/declarationEmitDestructuringArrayPattern1.types index 9f6f4c9857d..2abc0cb8859 100644 --- a/tests/baselines/reference/declarationEmitDestructuringArrayPattern1.types +++ b/tests/baselines/reference/declarationEmitDestructuringArrayPattern1.types @@ -2,31 +2,44 @@ var [] = [1, "hello"]; // Dont emit anything >[1, "hello"] : (string | number)[] +>1 : number +>"hello" : string var [x] = [1, "hello"]; // emit x: number ->x : number +>x : number, Symbol(x, Decl(declarationEmitDestructuringArrayPattern1.ts, 2, 5)) >[1, "hello"] : [number, string] +>1 : number +>"hello" : string var [x1, y1] = [1, "hello"]; // emit x1: number, y1: string ->x1 : number ->y1 : string +>x1 : number, Symbol(x1, Decl(declarationEmitDestructuringArrayPattern1.ts, 3, 5)) +>y1 : string, Symbol(y1, Decl(declarationEmitDestructuringArrayPattern1.ts, 3, 8)) >[1, "hello"] : [number, string] +>1 : number +>"hello" : string var [, , z1] = [0, 1, 2]; // emit z1: number ->z1 : number +> : undefined +> : undefined +>z1 : number, Symbol(z1, Decl(declarationEmitDestructuringArrayPattern1.ts, 4, 8)) >[0, 1, 2] : [number, number, number] +>0 : number +>1 : number +>2 : number var a = [1, "hello"]; ->a : (string | number)[] +>a : (string | number)[], Symbol(a, Decl(declarationEmitDestructuringArrayPattern1.ts, 6, 3)) >[1, "hello"] : (string | number)[] +>1 : number +>"hello" : string var [x2] = a; // emit x2: number | string ->x2 : string | number ->a : (string | number)[] +>x2 : string | number, Symbol(x2, Decl(declarationEmitDestructuringArrayPattern1.ts, 7, 5)) +>a : (string | number)[], Symbol(a, Decl(declarationEmitDestructuringArrayPattern1.ts, 6, 3)) var [x3, y3, z3] = a; // emit x3, y3, z3 ->x3 : string | number ->y3 : string | number ->z3 : string | number ->a : (string | number)[] +>x3 : string | number, Symbol(x3, Decl(declarationEmitDestructuringArrayPattern1.ts, 8, 5)) +>y3 : string | number, Symbol(y3, Decl(declarationEmitDestructuringArrayPattern1.ts, 8, 8)) +>z3 : string | number, Symbol(z3, Decl(declarationEmitDestructuringArrayPattern1.ts, 8, 12)) +>a : (string | number)[], Symbol(a, Decl(declarationEmitDestructuringArrayPattern1.ts, 6, 3)) diff --git a/tests/baselines/reference/declarationEmitDestructuringArrayPattern2.types b/tests/baselines/reference/declarationEmitDestructuringArrayPattern2.types index 2b40a388e3b..de82df3e9ab 100644 --- a/tests/baselines/reference/declarationEmitDestructuringArrayPattern2.types +++ b/tests/baselines/reference/declarationEmitDestructuringArrayPattern2.types @@ -1,54 +1,70 @@ === tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts === var [x10, [y10, [z10]]] = [1, ["hello", [true]]]; ->x10 : number ->y10 : string ->z10 : boolean +>x10 : number, Symbol(x10, Decl(declarationEmitDestructuringArrayPattern2.ts, 0, 5)) +>y10 : string, Symbol(y10, Decl(declarationEmitDestructuringArrayPattern2.ts, 0, 11)) +>z10 : boolean, Symbol(z10, Decl(declarationEmitDestructuringArrayPattern2.ts, 0, 17)) >[1, ["hello", [true]]] : [number, [string, [boolean]]] +>1 : number >["hello", [true]] : [string, [boolean]] +>"hello" : string >[true] : [boolean] +>true : boolean var [x11 = 0, y11 = ""] = [1, "hello"]; ->x11 : number ->y11 : string +>x11 : number, Symbol(x11, Decl(declarationEmitDestructuringArrayPattern2.ts, 2, 5)) +>0 : number +>y11 : string, Symbol(y11, Decl(declarationEmitDestructuringArrayPattern2.ts, 2, 13)) +>"" : string >[1, "hello"] : [number, string] +>1 : number +>"hello" : string var [a11, b11, c11] = []; ->a11 : any ->b11 : any ->c11 : any +>a11 : any, Symbol(a11, Decl(declarationEmitDestructuringArrayPattern2.ts, 3, 5)) +>b11 : any, Symbol(b11, Decl(declarationEmitDestructuringArrayPattern2.ts, 3, 9)) +>c11 : any, Symbol(c11, Decl(declarationEmitDestructuringArrayPattern2.ts, 3, 14)) >[] : undefined[] var [a2, [b2, { x12, y12: c2 }]=["abc", { x12: 10, y12: false }]] = [1, ["hello", { x12: 5, y12: true }]]; ->a2 : number ->b2 : string ->x12 : number ->y12 : unknown ->c2 : boolean +>a2 : number, Symbol(a2, Decl(declarationEmitDestructuringArrayPattern2.ts, 5, 5)) +>b2 : string, Symbol(b2, Decl(declarationEmitDestructuringArrayPattern2.ts, 5, 10)) +>x12 : number, Symbol(x12, Decl(declarationEmitDestructuringArrayPattern2.ts, 5, 15)) +>y12 : any +>c2 : boolean, Symbol(c2, Decl(declarationEmitDestructuringArrayPattern2.ts, 5, 20)) >["abc", { x12: 10, y12: false }] : [string, { x12: number; y12: boolean; }] +>"abc" : string >{ x12: 10, y12: false } : { x12: number; y12: boolean; } ->x12 : number ->y12 : boolean +>x12 : number, Symbol(x12, Decl(declarationEmitDestructuringArrayPattern2.ts, 5, 41)) +>10 : number +>y12 : boolean, Symbol(y12, Decl(declarationEmitDestructuringArrayPattern2.ts, 5, 50)) +>false : boolean >[1, ["hello", { x12: 5, y12: true }]] : [number, [string, { x12: number; y12: boolean; }]] +>1 : number >["hello", { x12: 5, y12: true }] : [string, { x12: number; y12: boolean; }] +>"hello" : string >{ x12: 5, y12: true } : { x12: number; y12: boolean; } ->x12 : number ->y12 : boolean +>x12 : number, Symbol(x12, Decl(declarationEmitDestructuringArrayPattern2.ts, 5, 83)) +>5 : number +>y12 : boolean, Symbol(y12, Decl(declarationEmitDestructuringArrayPattern2.ts, 5, 91)) +>true : boolean var [x13, y13] = [1, "hello"]; ->x13 : number ->y13 : string +>x13 : number, Symbol(x13, Decl(declarationEmitDestructuringArrayPattern2.ts, 7, 5)) +>y13 : string, Symbol(y13, Decl(declarationEmitDestructuringArrayPattern2.ts, 7, 9)) >[1, "hello"] : [number, string] +>1 : number +>"hello" : string var [a3, b3] = [[x13, y13], { x: x13, y: y13 }]; ->a3 : (string | number)[] ->b3 : { x: number; y: string; } +>a3 : (string | number)[], Symbol(a3, Decl(declarationEmitDestructuringArrayPattern2.ts, 8, 5)) +>b3 : { x: number; y: string; }, Symbol(b3, Decl(declarationEmitDestructuringArrayPattern2.ts, 8, 8)) >[[x13, y13], { x: x13, y: y13 }] : [(string | number)[], { x: number; y: string; }] >[x13, y13] : (string | number)[] ->x13 : number ->y13 : string +>x13 : number, Symbol(x13, Decl(declarationEmitDestructuringArrayPattern2.ts, 7, 5)) +>y13 : string, Symbol(y13, Decl(declarationEmitDestructuringArrayPattern2.ts, 7, 9)) >{ x: x13, y: y13 } : { x: number; y: string; } ->x : number ->x13 : number ->y : string ->y13 : string +>x : number, Symbol(x, Decl(declarationEmitDestructuringArrayPattern2.ts, 8, 29)) +>x13 : number, Symbol(x13, Decl(declarationEmitDestructuringArrayPattern2.ts, 7, 5)) +>y : string, Symbol(y, Decl(declarationEmitDestructuringArrayPattern2.ts, 8, 37)) +>y13 : string, Symbol(y13, Decl(declarationEmitDestructuringArrayPattern2.ts, 7, 9)) diff --git a/tests/baselines/reference/declarationEmitDestructuringArrayPattern3.types b/tests/baselines/reference/declarationEmitDestructuringArrayPattern3.types index 4852a7e37fb..9dec6cbae03 100644 --- a/tests/baselines/reference/declarationEmitDestructuringArrayPattern3.types +++ b/tests/baselines/reference/declarationEmitDestructuringArrayPattern3.types @@ -1,9 +1,11 @@ === tests/cases/compiler/declarationEmitDestructuringArrayPattern3.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(declarationEmitDestructuringArrayPattern3.ts, 0, 0)) export var [a, b] = [1, 2]; ->a : number ->b : number +>a : number, Symbol(a, Decl(declarationEmitDestructuringArrayPattern3.ts, 1, 16)) +>b : number, Symbol(b, Decl(declarationEmitDestructuringArrayPattern3.ts, 1, 18)) >[1, 2] : [number, number] +>1 : number +>2 : number } diff --git a/tests/baselines/reference/declarationEmitDestructuringArrayPattern4.types b/tests/baselines/reference/declarationEmitDestructuringArrayPattern4.types index d6d0fa758d7..5c7f818fc32 100644 --- a/tests/baselines/reference/declarationEmitDestructuringArrayPattern4.types +++ b/tests/baselines/reference/declarationEmitDestructuringArrayPattern4.types @@ -1,45 +1,69 @@ === tests/cases/compiler/declarationEmitDestructuringArrayPattern4.ts === var [...a5] = [1, 2, 3]; ->a5 : number[] +>a5 : number[], Symbol(a5, Decl(declarationEmitDestructuringArrayPattern4.ts, 0, 5)) >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number var [x14, ...a6] = [1, 2, 3]; ->x14 : number ->a6 : number[] +>x14 : number, Symbol(x14, Decl(declarationEmitDestructuringArrayPattern4.ts, 1, 5)) +>a6 : number[], Symbol(a6, Decl(declarationEmitDestructuringArrayPattern4.ts, 1, 9)) >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number var [x15, y15, ...a7] = [1, 2, 3]; ->x15 : number ->y15 : number ->a7 : number[] +>x15 : number, Symbol(x15, Decl(declarationEmitDestructuringArrayPattern4.ts, 2, 5)) +>y15 : number, Symbol(y15, Decl(declarationEmitDestructuringArrayPattern4.ts, 2, 9)) +>a7 : number[], Symbol(a7, Decl(declarationEmitDestructuringArrayPattern4.ts, 2, 14)) >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number var [x16, y16, z16, ...a8] = [1, 2, 3]; ->x16 : number ->y16 : number ->z16 : number ->a8 : number[] +>x16 : number, Symbol(x16, Decl(declarationEmitDestructuringArrayPattern4.ts, 3, 5)) +>y16 : number, Symbol(y16, Decl(declarationEmitDestructuringArrayPattern4.ts, 3, 9)) +>z16 : number, Symbol(z16, Decl(declarationEmitDestructuringArrayPattern4.ts, 3, 14)) +>a8 : number[], Symbol(a8, Decl(declarationEmitDestructuringArrayPattern4.ts, 3, 19)) >[1, 2, 3] : number[] +>1 : number +>2 : number +>3 : number var [...a9] = [1, "hello", true]; ->a9 : (string | number | boolean)[] +>a9 : (string | number | boolean)[], Symbol(a9, Decl(declarationEmitDestructuringArrayPattern4.ts, 5, 5)) >[1, "hello", true] : (string | number | boolean)[] +>1 : number +>"hello" : string +>true : boolean var [x17, ...a10] = [1, "hello", true]; ->x17 : string | number | boolean ->a10 : (string | number | boolean)[] +>x17 : string | number | boolean, Symbol(x17, Decl(declarationEmitDestructuringArrayPattern4.ts, 6, 5)) +>a10 : (string | number | boolean)[], Symbol(a10, Decl(declarationEmitDestructuringArrayPattern4.ts, 6, 9)) >[1, "hello", true] : (string | number | boolean)[] +>1 : number +>"hello" : string +>true : boolean var [x18, y18, ...a12] = [1, "hello", true]; ->x18 : string | number | boolean ->y18 : string | number | boolean ->a12 : (string | number | boolean)[] +>x18 : string | number | boolean, Symbol(x18, Decl(declarationEmitDestructuringArrayPattern4.ts, 7, 5)) +>y18 : string | number | boolean, Symbol(y18, Decl(declarationEmitDestructuringArrayPattern4.ts, 7, 9)) +>a12 : (string | number | boolean)[], Symbol(a12, Decl(declarationEmitDestructuringArrayPattern4.ts, 7, 14)) >[1, "hello", true] : (string | number | boolean)[] +>1 : number +>"hello" : string +>true : boolean var [x19, y19, z19, ...a13] = [1, "hello", true]; ->x19 : string | number | boolean ->y19 : string | number | boolean ->z19 : string | number | boolean ->a13 : (string | number | boolean)[] +>x19 : string | number | boolean, Symbol(x19, Decl(declarationEmitDestructuringArrayPattern4.ts, 8, 5)) +>y19 : string | number | boolean, Symbol(y19, Decl(declarationEmitDestructuringArrayPattern4.ts, 8, 9)) +>z19 : string | number | boolean, Symbol(z19, Decl(declarationEmitDestructuringArrayPattern4.ts, 8, 14)) +>a13 : (string | number | boolean)[], Symbol(a13, Decl(declarationEmitDestructuringArrayPattern4.ts, 8, 19)) >[1, "hello", true] : (string | number | boolean)[] +>1 : number +>"hello" : string +>true : boolean diff --git a/tests/baselines/reference/declarationEmitDestructuringArrayPattern5.types b/tests/baselines/reference/declarationEmitDestructuringArrayPattern5.types index 6352917682e..9ac3a6d70d1 100644 --- a/tests/baselines/reference/declarationEmitDestructuringArrayPattern5.types +++ b/tests/baselines/reference/declarationEmitDestructuringArrayPattern5.types @@ -1,14 +1,31 @@ === tests/cases/compiler/declarationEmitDestructuringArrayPattern5.ts === var [, , z] = [1, 2, 4]; ->z : number +> : undefined +> : undefined +>z : number, Symbol(z, Decl(declarationEmitDestructuringArrayPattern5.ts, 0, 8)) >[1, 2, 4] : [number, number, number] +>1 : number +>2 : number +>4 : number var [, a, , ] = [3, 4, 5]; ->a : number +> : undefined +>a : number, Symbol(a, Decl(declarationEmitDestructuringArrayPattern5.ts, 1, 6)) +> : undefined >[3, 4, 5] : [number, number, number] +>3 : number +>4 : number +>5 : number var [, , [, b, ]] = [3,5,[0, 1]]; ->b : number +> : undefined +> : undefined +> : undefined +>b : number, Symbol(b, Decl(declarationEmitDestructuringArrayPattern5.ts, 2, 11)) >[3,5,[0, 1]] : [number, number, [number, number]] +>3 : number +>5 : number >[0, 1] : [number, number] +>0 : number +>1 : number diff --git a/tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern.types b/tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern.types index b3c422e4958..5292450a68c 100644 --- a/tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern.types +++ b/tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern.types @@ -2,101 +2,121 @@ var { } = { x: 5, y: "hello" }; >{ x: 5, y: "hello" } : { x: number; y: string; } ->x : number ->y : string +>x : number, Symbol(x, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 1, 11)) +>5 : number +>y : string, Symbol(y, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 1, 17)) +>"hello" : string var { x4 } = { x4: 5, y4: "hello" }; ->x4 : number +>x4 : number, Symbol(x4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 2, 5)) >{ x4: 5, y4: "hello" } : { x4: number; y4: string; } ->x4 : number ->y4 : string +>x4 : number, Symbol(x4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 2, 14)) +>5 : number +>y4 : string, Symbol(y4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 2, 21)) +>"hello" : string var { y5 } = { x5: 5, y5: "hello" }; ->y5 : string +>y5 : string, Symbol(y5, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 3, 5)) >{ x5: 5, y5: "hello" } : { x5: number; y5: string; } ->x5 : number ->y5 : string +>x5 : number, Symbol(x5, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 3, 14)) +>5 : number +>y5 : string, Symbol(y5, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 3, 21)) +>"hello" : string var { x6, y6 } = { x6: 5, y6: "hello" }; ->x6 : number ->y6 : string +>x6 : number, Symbol(x6, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 4, 5)) +>y6 : string, Symbol(y6, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 4, 9)) >{ x6: 5, y6: "hello" } : { x6: number; y6: string; } ->x6 : number ->y6 : string +>x6 : number, Symbol(x6, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 4, 18)) +>5 : number +>y6 : string, Symbol(y6, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 4, 25)) +>"hello" : string var { x7: a1 } = { x7: 5, y7: "hello" }; ->x7 : unknown ->a1 : number +>x7 : any +>a1 : number, Symbol(a1, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 5, 5)) >{ x7: 5, y7: "hello" } : { x7: number; y7: string; } ->x7 : number ->y7 : string +>x7 : number, Symbol(x7, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 5, 18)) +>5 : number +>y7 : string, Symbol(y7, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 5, 25)) +>"hello" : string var { y8: b1 } = { x8: 5, y8: "hello" }; ->y8 : unknown ->b1 : string +>y8 : any +>b1 : string, Symbol(b1, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 6, 5)) >{ x8: 5, y8: "hello" } : { x8: number; y8: string; } ->x8 : number ->y8 : string +>x8 : number, Symbol(x8, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 6, 18)) +>5 : number +>y8 : string, Symbol(y8, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 6, 25)) +>"hello" : string var { x9: a2, y9: b2 } = { x9: 5, y9: "hello" }; ->x9 : unknown ->a2 : number ->y9 : unknown ->b2 : string +>x9 : any +>a2 : number, Symbol(a2, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 7, 5)) +>y9 : any +>b2 : string, Symbol(b2, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 7, 13)) >{ x9: 5, y9: "hello" } : { x9: number; y9: string; } ->x9 : number ->y9 : string +>x9 : number, Symbol(x9, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 7, 26)) +>5 : number +>y9 : string, Symbol(y9, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 7, 33)) +>"hello" : string var { a: x11, b: { a: y11, b: { a: z11 }}} = { a: 1, b: { a: "hello", b: { a: true } } }; ->a : unknown ->x11 : number ->b : unknown ->a : unknown ->y11 : string ->b : unknown ->a : unknown ->z11 : boolean +>a : any +>x11 : number, Symbol(x11, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 9, 5)) +>b : any +>a : any +>y11 : string, Symbol(y11, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 9, 18)) +>b : any +>a : any +>z11 : boolean, Symbol(z11, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 9, 31)) >{ a: 1, b: { a: "hello", b: { a: true } } } : { a: number; b: { a: string; b: { a: boolean; }; }; } ->a : number ->b : { a: string; b: { a: boolean; }; } +>a : number, Symbol(a, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 9, 46)) +>1 : number +>b : { a: string; b: { a: boolean; }; }, Symbol(b, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 9, 52)) >{ a: "hello", b: { a: true } } : { a: string; b: { a: boolean; }; } ->a : string ->b : { a: boolean; } +>a : string, Symbol(a, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 9, 57)) +>"hello" : string +>b : { a: boolean; }, Symbol(b, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 9, 69)) >{ a: true } : { a: boolean; } ->a : boolean +>a : boolean, Symbol(a, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 9, 74)) +>true : boolean function f15() { ->f15 : () => { a4: string; b4: number; c4: boolean; } +>f15 : () => { a4: string; b4: number; c4: boolean; }, Symbol(f15, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 9, 89)) var a4 = "hello"; ->a4 : string +>a4 : string, Symbol(a4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 12, 7)) +>"hello" : string var b4 = 1; ->b4 : number +>b4 : number, Symbol(b4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 13, 7)) +>1 : number var c4 = true; ->c4 : boolean +>c4 : boolean, Symbol(c4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 14, 7)) +>true : boolean return { a4, b4, c4 }; >{ a4, b4, c4 } : { a4: string; b4: number; c4: boolean; } ->a4 : string ->b4 : number ->c4 : boolean +>a4 : string, Symbol(a4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 15, 12)) +>b4 : number, Symbol(b4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 15, 16)) +>c4 : boolean, Symbol(c4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 15, 20)) } var { a4, b4, c4 } = f15(); ->a4 : string ->b4 : number ->c4 : boolean +>a4 : string, Symbol(a4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 17, 5)) +>b4 : number, Symbol(b4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 17, 9)) +>c4 : boolean, Symbol(c4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 17, 13)) >f15() : { a4: string; b4: number; c4: boolean; } ->f15 : () => { a4: string; b4: number; c4: boolean; } +>f15 : () => { a4: string; b4: number; c4: boolean; }, Symbol(f15, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 9, 89)) module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 17, 27)) export var { a4, b4, c4 } = f15(); ->a4 : string ->b4 : number ->c4 : boolean +>a4 : string, Symbol(a4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 20, 16)) +>b4 : number, Symbol(b4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 20, 20)) +>c4 : boolean, Symbol(c4, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 20, 24)) >f15() : { a4: string; b4: number; c4: boolean; } ->f15 : () => { a4: string; b4: number; c4: boolean; } +>f15 : () => { a4: string; b4: number; c4: boolean; }, Symbol(f15, Decl(declarationEmitDestructuringObjectLiteralPattern.ts, 9, 89)) } diff --git a/tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern1.types b/tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern1.types index cc2094c68f4..f5416b7e3b5 100644 --- a/tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern1.types +++ b/tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern1.types @@ -2,48 +2,62 @@ var { } = { x: 5, y: "hello" }; >{ x: 5, y: "hello" } : { x: number; y: string; } ->x : number ->y : string +>x : number, Symbol(x, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 1, 11)) +>5 : number +>y : string, Symbol(y, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 1, 17)) +>"hello" : string var { x4 } = { x4: 5, y4: "hello" }; ->x4 : number +>x4 : number, Symbol(x4, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 2, 5)) >{ x4: 5, y4: "hello" } : { x4: number; y4: string; } ->x4 : number ->y4 : string +>x4 : number, Symbol(x4, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 2, 14)) +>5 : number +>y4 : string, Symbol(y4, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 2, 21)) +>"hello" : string var { y5 } = { x5: 5, y5: "hello" }; ->y5 : string +>y5 : string, Symbol(y5, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 3, 5)) >{ x5: 5, y5: "hello" } : { x5: number; y5: string; } ->x5 : number ->y5 : string +>x5 : number, Symbol(x5, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 3, 14)) +>5 : number +>y5 : string, Symbol(y5, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 3, 21)) +>"hello" : string var { x6, y6 } = { x6: 5, y6: "hello" }; ->x6 : number ->y6 : string +>x6 : number, Symbol(x6, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 4, 5)) +>y6 : string, Symbol(y6, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 4, 9)) >{ x6: 5, y6: "hello" } : { x6: number; y6: string; } ->x6 : number ->y6 : string +>x6 : number, Symbol(x6, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 4, 18)) +>5 : number +>y6 : string, Symbol(y6, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 4, 25)) +>"hello" : string var { x7: a1 } = { x7: 5, y7: "hello" }; ->x7 : unknown ->a1 : number +>x7 : any +>a1 : number, Symbol(a1, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 5, 5)) >{ x7: 5, y7: "hello" } : { x7: number; y7: string; } ->x7 : number ->y7 : string +>x7 : number, Symbol(x7, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 5, 18)) +>5 : number +>y7 : string, Symbol(y7, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 5, 25)) +>"hello" : string var { y8: b1 } = { x8: 5, y8: "hello" }; ->y8 : unknown ->b1 : string +>y8 : any +>b1 : string, Symbol(b1, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 6, 5)) >{ x8: 5, y8: "hello" } : { x8: number; y8: string; } ->x8 : number ->y8 : string +>x8 : number, Symbol(x8, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 6, 18)) +>5 : number +>y8 : string, Symbol(y8, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 6, 25)) +>"hello" : string var { x9: a2, y9: b2 } = { x9: 5, y9: "hello" }; ->x9 : unknown ->a2 : number ->y9 : unknown ->b2 : string +>x9 : any +>a2 : number, Symbol(a2, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 7, 5)) +>y9 : any +>b2 : string, Symbol(b2, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 7, 13)) >{ x9: 5, y9: "hello" } : { x9: number; y9: string; } ->x9 : number ->y9 : string +>x9 : number, Symbol(x9, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 7, 26)) +>5 : number +>y9 : string, Symbol(y9, Decl(declarationEmitDestructuringObjectLiteralPattern1.ts, 7, 33)) +>"hello" : string diff --git a/tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern2.types b/tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern2.types index 68394686e31..ebbce8ecf0d 100644 --- a/tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern2.types +++ b/tests/baselines/reference/declarationEmitDestructuringObjectLiteralPattern2.types @@ -1,55 +1,61 @@ === tests/cases/compiler/declarationEmitDestructuringObjectLiteralPattern2.ts === var { a: x11, b: { a: y11, b: { a: z11 }}} = { a: 1, b: { a: "hello", b: { a: true } } }; ->a : unknown ->x11 : number ->b : unknown ->a : unknown ->y11 : string ->b : unknown ->a : unknown ->z11 : boolean +>a : any +>x11 : number, Symbol(x11, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 1, 5)) +>b : any +>a : any +>y11 : string, Symbol(y11, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 1, 18)) +>b : any +>a : any +>z11 : boolean, Symbol(z11, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 1, 31)) >{ a: 1, b: { a: "hello", b: { a: true } } } : { a: number; b: { a: string; b: { a: boolean; }; }; } ->a : number ->b : { a: string; b: { a: boolean; }; } +>a : number, Symbol(a, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 1, 46)) +>1 : number +>b : { a: string; b: { a: boolean; }; }, Symbol(b, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 1, 52)) >{ a: "hello", b: { a: true } } : { a: string; b: { a: boolean; }; } ->a : string ->b : { a: boolean; } +>a : string, Symbol(a, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 1, 57)) +>"hello" : string +>b : { a: boolean; }, Symbol(b, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 1, 69)) >{ a: true } : { a: boolean; } ->a : boolean +>a : boolean, Symbol(a, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 1, 74)) +>true : boolean function f15() { ->f15 : () => { a4: string; b4: number; c4: boolean; } +>f15 : () => { a4: string; b4: number; c4: boolean; }, Symbol(f15, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 1, 89)) var a4 = "hello"; ->a4 : string +>a4 : string, Symbol(a4, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 4, 7)) +>"hello" : string var b4 = 1; ->b4 : number +>b4 : number, Symbol(b4, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 5, 7)) +>1 : number var c4 = true; ->c4 : boolean +>c4 : boolean, Symbol(c4, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 6, 7)) +>true : boolean return { a4, b4, c4 }; >{ a4, b4, c4 } : { a4: string; b4: number; c4: boolean; } ->a4 : string ->b4 : number ->c4 : boolean +>a4 : string, Symbol(a4, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 7, 12)) +>b4 : number, Symbol(b4, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 7, 16)) +>c4 : boolean, Symbol(c4, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 7, 20)) } var { a4, b4, c4 } = f15(); ->a4 : string ->b4 : number ->c4 : boolean +>a4 : string, Symbol(a4, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 9, 5)) +>b4 : number, Symbol(b4, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 9, 9)) +>c4 : boolean, Symbol(c4, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 9, 13)) >f15() : { a4: string; b4: number; c4: boolean; } ->f15 : () => { a4: string; b4: number; c4: boolean; } +>f15 : () => { a4: string; b4: number; c4: boolean; }, Symbol(f15, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 1, 89)) module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 9, 27)) export var { a4, b4, c4 } = f15(); ->a4 : string ->b4 : number ->c4 : boolean +>a4 : string, Symbol(a4, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 12, 16)) +>b4 : number, Symbol(b4, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 12, 20)) +>c4 : boolean, Symbol(c4, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 12, 24)) >f15() : { a4: string; b4: number; c4: boolean; } ->f15 : () => { a4: string; b4: number; c4: boolean; } +>f15 : () => { a4: string; b4: number; c4: boolean; }, Symbol(f15, Decl(declarationEmitDestructuringObjectLiteralPattern2.ts, 1, 89)) } diff --git a/tests/baselines/reference/declarationEmitDestructuringOptionalBindingParametersInOverloads.types b/tests/baselines/reference/declarationEmitDestructuringOptionalBindingParametersInOverloads.types index 1c75466f0c3..3b406afebe0 100644 --- a/tests/baselines/reference/declarationEmitDestructuringOptionalBindingParametersInOverloads.types +++ b/tests/baselines/reference/declarationEmitDestructuringOptionalBindingParametersInOverloads.types @@ -1,27 +1,27 @@ === tests/cases/compiler/declarationEmitDestructuringOptionalBindingParametersInOverloads.ts === function foo([x, y, z] ?: [string, number, boolean]); ->foo : ([x, y, z]?: [string, number, boolean]) => any ->x : string ->y : number ->z : boolean +>foo : ([x, y, z]?: [string, number, boolean]) => any, Symbol(foo, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 0, 0), Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 1, 53)) +>x : string, Symbol(x, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 1, 14)) +>y : number, Symbol(y, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 1, 16)) +>z : boolean, Symbol(z, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 1, 19)) function foo(...rest: any[]) { ->foo : ([x, y, z]?: [string, number, boolean]) => any ->rest : any[] +>foo : ([x, y, z]?: [string, number, boolean]) => any, Symbol(foo, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 0, 0), Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 1, 53)) +>rest : any[], Symbol(rest, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 2, 13)) } function foo2( { x, y, z }?: { x: string; y: number; z: boolean }); ->foo2 : ({ x, y, z }?: { x: string; y: number; z: boolean; }) => any ->x : string ->y : number ->z : boolean ->x : string ->y : number ->z : boolean +>foo2 : ({ x, y, z }?: { x: string; y: number; z: boolean; }) => any, Symbol(foo2, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 3, 1), Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 5, 67)) +>x : string, Symbol(x, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 5, 16)) +>y : number, Symbol(y, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 5, 19)) +>z : boolean, Symbol(z, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 5, 22)) +>x : string, Symbol(x, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 5, 30)) +>y : number, Symbol(y, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 5, 41)) +>z : boolean, Symbol(z, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 5, 52)) function foo2(...rest: any[]) { ->foo2 : ({ x, y, z }?: { x: string; y: number; z: boolean; }) => any ->rest : any[] +>foo2 : ({ x, y, z }?: { x: string; y: number; z: boolean; }) => any, Symbol(foo2, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 3, 1), Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 5, 67)) +>rest : any[], Symbol(rest, Decl(declarationEmitDestructuringOptionalBindingParametersInOverloads.ts, 6, 14)) } diff --git a/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.types b/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.types index 23176a0abe2..1efbbd8108c 100644 --- a/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.types +++ b/tests/baselines/reference/declarationEmitImportInExportAssignmentModule.types @@ -1,23 +1,23 @@ === tests/cases/compiler/declarationEmitImportInExportAssignmentModule.ts === module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(declarationEmitImportInExportAssignmentModule.ts, 0, 0)) export module c { ->c : typeof x +>c : typeof x, Symbol(x, Decl(declarationEmitImportInExportAssignmentModule.ts, 1, 10)) export class c { ->c : c +>c : c, Symbol(c, Decl(declarationEmitImportInExportAssignmentModule.ts, 2, 21)) } } import x = c; ->x : typeof x ->c : typeof x +>x : typeof x, Symbol(x, Decl(declarationEmitImportInExportAssignmentModule.ts, 5, 5)) +>c : typeof x, Symbol(x, Decl(declarationEmitImportInExportAssignmentModule.ts, 1, 10)) export var a: typeof x; ->a : typeof x ->x : typeof x +>a : typeof x, Symbol(a, Decl(declarationEmitImportInExportAssignmentModule.ts, 7, 14)) +>x : typeof x, Symbol(x, Decl(declarationEmitImportInExportAssignmentModule.ts, 5, 5)) } export = m; ->m : typeof m +>m : typeof m, Symbol(m, Decl(declarationEmitImportInExportAssignmentModule.ts, 0, 0)) diff --git a/tests/baselines/reference/declarationEmit_array-types-from-generic-array-usage.types b/tests/baselines/reference/declarationEmit_array-types-from-generic-array-usage.types index 63f35d0f263..65f507335f9 100644 --- a/tests/baselines/reference/declarationEmit_array-types-from-generic-array-usage.types +++ b/tests/baselines/reference/declarationEmit_array-types-from-generic-array-usage.types @@ -1,5 +1,5 @@ === tests/cases/compiler/declarationEmit_array-types-from-generic-array-usage.ts === interface A extends Array { } ->A : A ->Array : T[] +>A : A, Symbol(A, Decl(declarationEmit_array-types-from-generic-array-usage.ts, 0, 0)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) diff --git a/tests/baselines/reference/declarationEmit_invalidReference.types b/tests/baselines/reference/declarationEmit_invalidReference.types index 1fe465887ed..8d8cd374414 100644 --- a/tests/baselines/reference/declarationEmit_invalidReference.types +++ b/tests/baselines/reference/declarationEmit_invalidReference.types @@ -1,5 +1,6 @@ === tests/cases/compiler/declarationEmit_invalidReference.ts === /// var x = 0; ->x : number +>x : number, Symbol(x, Decl(declarationEmit_invalidReference.ts, 1, 3)) +>0 : number diff --git a/tests/baselines/reference/declarationEmit_nameConflicts.types b/tests/baselines/reference/declarationEmit_nameConflicts.types index e38c831493d..9267df3900d 100644 --- a/tests/baselines/reference/declarationEmit_nameConflicts.types +++ b/tests/baselines/reference/declarationEmit_nameConflicts.types @@ -1,148 +1,153 @@ === tests/cases/compiler/declarationEmit_nameConflicts_0.ts === import im = require('declarationEmit_nameConflicts_1'); ->im : typeof im +>im : typeof im, Symbol(im, Decl(declarationEmit_nameConflicts_0.ts, 0, 0)) export module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) export function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 1, 17)) export class C { } ->C : C +>C : C, Symbol(C, Decl(declarationEmit_nameConflicts_0.ts, 2, 27)) export module N { ->N : typeof N +>N : typeof N, Symbol(N, Decl(declarationEmit_nameConflicts_0.ts, 3, 22)) export function g() { }; ->g : () => void +>g : () => void, Symbol(g, Decl(declarationEmit_nameConflicts_0.ts, 4, 21)) export interface I { } ->I : I +>I : I, Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32)) } export import a = M.f; ->a : () => void ->M : typeof M ->f : () => void +>a : () => void, Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 7, 5)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 1, 17)) export import b = M.C; ->b : typeof C ->M : typeof M ->C : C +>b : typeof C, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>C : C, Symbol(C, Decl(declarationEmit_nameConflicts_0.ts, 2, 27)) export import c = N; ->c : typeof N ->N : typeof N +>c : typeof N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26)) +>N : typeof N, Symbol(N, Decl(declarationEmit_nameConflicts_0.ts, 3, 22)) export import d = im; ->d : typeof d ->im : typeof d +>d : typeof d, Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 11, 24)) +>im : typeof d, Symbol(d, Decl(declarationEmit_nameConflicts_1.ts, 0, 0)) } export module M.P { ->M : typeof M ->P : typeof P +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>P : typeof P, Symbol(P, Decl(declarationEmit_nameConflicts_0.ts, 15, 16)) export function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 15, 19)) export class C { } ->C : C +>C : C, Symbol(C, Decl(declarationEmit_nameConflicts_0.ts, 16, 27)) export module N { ->N : typeof N +>N : typeof N, Symbol(N, Decl(declarationEmit_nameConflicts_0.ts, 17, 22)) export function g() { }; ->g : () => void +>g : () => void, Symbol(g, Decl(declarationEmit_nameConflicts_0.ts, 18, 21)) export interface I { } ->I : I +>I : I, Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 19, 32)) } export import im = M.P.f; ->im : () => void ->M : typeof M ->P : typeof P ->f : () => void +>im : () => void, Symbol(im, Decl(declarationEmit_nameConflicts_0.ts, 21, 5)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>P : typeof P, Symbol(P, Decl(declarationEmit_nameConflicts_0.ts, 15, 16)) +>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 15, 19)) export var a = M.a; // emitted incorrectly as typeof f ->a : () => void ->M.a : () => void ->M : typeof M ->a : () => void +>a : () => void, Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 23, 14)) +>M.a : () => void, Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 7, 5)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>a : () => void, Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 7, 5)) export var b = M.b; // ok ->b : typeof M.C ->M.b : typeof M.C ->M : typeof M ->b : typeof M.C +>b : typeof M.C, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 24, 14)) +>M.b : typeof M.C, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>b : typeof M.C, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26)) export var c = M.c; // ok ->c : typeof M.N ->M.c : typeof M.N ->M : typeof M ->c : typeof M.N +>c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 25, 14)) +>M.c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26)) export var g = M.c.g; // ok ->g : () => void ->M.c.g : () => void ->M.c : typeof M.N ->M : typeof M ->c : typeof M.N ->g : () => void +>g : () => void, Symbol(g, Decl(declarationEmit_nameConflicts_0.ts, 26, 14)) +>M.c.g : () => void, Symbol(c.g, Decl(declarationEmit_nameConflicts_0.ts, 4, 21)) +>M.c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26)) +>g : () => void, Symbol(c.g, Decl(declarationEmit_nameConflicts_0.ts, 4, 21)) export var d = M.d; // emitted incorrectly as typeof im ->d : typeof M.d ->M.d : typeof M.d ->M : typeof M ->d : typeof M.d +>d : typeof M.d, Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 27, 14)) +>M.d : typeof M.d, Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 11, 24)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>d : typeof M.d, Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 11, 24)) } export module M.Q { ->M : typeof M ->Q : typeof Q +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>Q : typeof Q, Symbol(Q, Decl(declarationEmit_nameConflicts_0.ts, 30, 16)) export function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 30, 19)) export class C { } ->C : C +>C : C, Symbol(C, Decl(declarationEmit_nameConflicts_0.ts, 31, 27)) export module N { ->N : typeof N +>N : typeof N, Symbol(N, Decl(declarationEmit_nameConflicts_0.ts, 32, 22)) export function g() { }; ->g : () => void +>g : () => void, Symbol(g, Decl(declarationEmit_nameConflicts_0.ts, 33, 21)) export interface I { } ->I : I +>I : I, Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 34, 32)) } export interface b extends M.b { } // ok ->b : b ->M : typeof M ->b : M.C +>b : b, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 36, 5)) +>M.b : any, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>b : M.C, Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26)) export interface I extends M.c.I { } // ok ->I : I ->M : typeof M ->c : typeof M.N ->I : M.c.I +>I : I, Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 37, 38)) +>M.c.I : any, Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32)) +>M.c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26)) +>I : M.c.I, Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32)) export module c { ->c : unknown +>c : any, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 38, 40)) export interface I extends M.c.I { } // ok ->I : I ->M : typeof M ->c : typeof M.N ->I : M.c.I +>I : I, Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 39, 21)) +>M.c.I : any, Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32)) +>M.c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1)) +>c : typeof M.N, Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26)) +>I : M.c.I, Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32)) } } === tests/cases/compiler/declarationEmit_nameConflicts_1.ts === module f { export class c { } } ->f : typeof f ->c : c +>f : typeof f, Symbol(f, Decl(declarationEmit_nameConflicts_1.ts, 0, 0)) +>c : c, Symbol(c, Decl(declarationEmit_nameConflicts_1.ts, 0, 10)) export = f; ->f : typeof f +>f : typeof f, Symbol(f, Decl(declarationEmit_nameConflicts_1.ts, 0, 0)) diff --git a/tests/baselines/reference/declarationEmit_nameConflicts2.types b/tests/baselines/reference/declarationEmit_nameConflicts2.types index 026cfed0989..92742806973 100644 --- a/tests/baselines/reference/declarationEmit_nameConflicts2.types +++ b/tests/baselines/reference/declarationEmit_nameConflicts2.types @@ -1,68 +1,68 @@ === tests/cases/compiler/declarationEmit_nameConflicts2.ts === module X.Y.base { ->X : typeof X ->Y : typeof Y ->base : typeof base +>X : typeof X, Symbol(X, Decl(declarationEmit_nameConflicts2.ts, 0, 0), Decl(declarationEmit_nameConflicts2.ts, 7, 1)) +>Y : typeof Y, Symbol(Y, Decl(declarationEmit_nameConflicts2.ts, 0, 9), Decl(declarationEmit_nameConflicts2.ts, 9, 9)) +>base : typeof base, Symbol(base, Decl(declarationEmit_nameConflicts2.ts, 0, 11), Decl(declarationEmit_nameConflicts2.ts, 9, 11)) export function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts2.ts, 0, 17)) export class C { } ->C : C +>C : C, Symbol(C, Decl(declarationEmit_nameConflicts2.ts, 1, 27)) export module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts2.ts, 2, 22)) export var v; ->v : any +>v : any, Symbol(v, Decl(declarationEmit_nameConflicts2.ts, 4, 18)) } export enum E { } ->E : E +>E : E, Symbol(E, Decl(declarationEmit_nameConflicts2.ts, 5, 5)) } module X.Y.base.Z { ->X : typeof X ->Y : typeof Y ->base : typeof base ->Z : typeof Z +>X : typeof X, Symbol(X, Decl(declarationEmit_nameConflicts2.ts, 0, 0), Decl(declarationEmit_nameConflicts2.ts, 7, 1)) +>Y : typeof Y, Symbol(Y, Decl(declarationEmit_nameConflicts2.ts, 0, 9), Decl(declarationEmit_nameConflicts2.ts, 9, 9)) +>base : typeof base, Symbol(base, Decl(declarationEmit_nameConflicts2.ts, 0, 11), Decl(declarationEmit_nameConflicts2.ts, 9, 11)) +>Z : typeof Z, Symbol(Z, Decl(declarationEmit_nameConflicts2.ts, 9, 16)) export var f = X.Y.base.f; // Should be base.f ->f : () => void ->X.Y.base.f : () => void ->X.Y.base : typeof base ->X.Y : typeof Y ->X : typeof X ->Y : typeof Y ->base : typeof base ->f : () => void +>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts2.ts, 10, 14)) +>X.Y.base.f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts2.ts, 0, 17)) +>X.Y.base : typeof base, Symbol(base, Decl(declarationEmit_nameConflicts2.ts, 0, 11), Decl(declarationEmit_nameConflicts2.ts, 9, 11)) +>X.Y : typeof Y, Symbol(Y, Decl(declarationEmit_nameConflicts2.ts, 0, 9), Decl(declarationEmit_nameConflicts2.ts, 9, 9)) +>X : typeof X, Symbol(X, Decl(declarationEmit_nameConflicts2.ts, 0, 0), Decl(declarationEmit_nameConflicts2.ts, 7, 1)) +>Y : typeof Y, Symbol(Y, Decl(declarationEmit_nameConflicts2.ts, 0, 9), Decl(declarationEmit_nameConflicts2.ts, 9, 9)) +>base : typeof base, Symbol(base, Decl(declarationEmit_nameConflicts2.ts, 0, 11), Decl(declarationEmit_nameConflicts2.ts, 9, 11)) +>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts2.ts, 0, 17)) export var C = X.Y.base.C; // Should be base.C ->C : typeof base.C ->X.Y.base.C : typeof base.C ->X.Y.base : typeof base ->X.Y : typeof Y ->X : typeof X ->Y : typeof Y ->base : typeof base ->C : typeof base.C +>C : typeof base.C, Symbol(C, Decl(declarationEmit_nameConflicts2.ts, 11, 14)) +>X.Y.base.C : typeof base.C, Symbol(C, Decl(declarationEmit_nameConflicts2.ts, 1, 27)) +>X.Y.base : typeof base, Symbol(base, Decl(declarationEmit_nameConflicts2.ts, 0, 11), Decl(declarationEmit_nameConflicts2.ts, 9, 11)) +>X.Y : typeof Y, Symbol(Y, Decl(declarationEmit_nameConflicts2.ts, 0, 9), Decl(declarationEmit_nameConflicts2.ts, 9, 9)) +>X : typeof X, Symbol(X, Decl(declarationEmit_nameConflicts2.ts, 0, 0), Decl(declarationEmit_nameConflicts2.ts, 7, 1)) +>Y : typeof Y, Symbol(Y, Decl(declarationEmit_nameConflicts2.ts, 0, 9), Decl(declarationEmit_nameConflicts2.ts, 9, 9)) +>base : typeof base, Symbol(base, Decl(declarationEmit_nameConflicts2.ts, 0, 11), Decl(declarationEmit_nameConflicts2.ts, 9, 11)) +>C : typeof base.C, Symbol(C, Decl(declarationEmit_nameConflicts2.ts, 1, 27)) export var M = X.Y.base.M; // Should be base.M ->M : typeof base.M ->X.Y.base.M : typeof base.M ->X.Y.base : typeof base ->X.Y : typeof Y ->X : typeof X ->Y : typeof Y ->base : typeof base ->M : typeof base.M +>M : typeof base.M, Symbol(M, Decl(declarationEmit_nameConflicts2.ts, 12, 14)) +>X.Y.base.M : typeof base.M, Symbol(M, Decl(declarationEmit_nameConflicts2.ts, 2, 22)) +>X.Y.base : typeof base, Symbol(base, Decl(declarationEmit_nameConflicts2.ts, 0, 11), Decl(declarationEmit_nameConflicts2.ts, 9, 11)) +>X.Y : typeof Y, Symbol(Y, Decl(declarationEmit_nameConflicts2.ts, 0, 9), Decl(declarationEmit_nameConflicts2.ts, 9, 9)) +>X : typeof X, Symbol(X, Decl(declarationEmit_nameConflicts2.ts, 0, 0), Decl(declarationEmit_nameConflicts2.ts, 7, 1)) +>Y : typeof Y, Symbol(Y, Decl(declarationEmit_nameConflicts2.ts, 0, 9), Decl(declarationEmit_nameConflicts2.ts, 9, 9)) +>base : typeof base, Symbol(base, Decl(declarationEmit_nameConflicts2.ts, 0, 11), Decl(declarationEmit_nameConflicts2.ts, 9, 11)) +>M : typeof base.M, Symbol(M, Decl(declarationEmit_nameConflicts2.ts, 2, 22)) export var E = X.Y.base.E; // Should be base.E ->E : typeof base.E ->X.Y.base.E : typeof base.E ->X.Y.base : typeof base ->X.Y : typeof Y ->X : typeof X ->Y : typeof Y ->base : typeof base ->E : typeof base.E +>E : typeof base.E, Symbol(E, Decl(declarationEmit_nameConflicts2.ts, 13, 14)) +>X.Y.base.E : typeof base.E, Symbol(E, Decl(declarationEmit_nameConflicts2.ts, 5, 5)) +>X.Y.base : typeof base, Symbol(base, Decl(declarationEmit_nameConflicts2.ts, 0, 11), Decl(declarationEmit_nameConflicts2.ts, 9, 11)) +>X.Y : typeof Y, Symbol(Y, Decl(declarationEmit_nameConflicts2.ts, 0, 9), Decl(declarationEmit_nameConflicts2.ts, 9, 9)) +>X : typeof X, Symbol(X, Decl(declarationEmit_nameConflicts2.ts, 0, 0), Decl(declarationEmit_nameConflicts2.ts, 7, 1)) +>Y : typeof Y, Symbol(Y, Decl(declarationEmit_nameConflicts2.ts, 0, 9), Decl(declarationEmit_nameConflicts2.ts, 9, 9)) +>base : typeof base, Symbol(base, Decl(declarationEmit_nameConflicts2.ts, 0, 11), Decl(declarationEmit_nameConflicts2.ts, 9, 11)) +>E : typeof base.E, Symbol(E, Decl(declarationEmit_nameConflicts2.ts, 5, 5)) } diff --git a/tests/baselines/reference/declarationEmit_nameConflicts3.types b/tests/baselines/reference/declarationEmit_nameConflicts3.types index 50fd6ecdd1b..f4a7e51fd37 100644 --- a/tests/baselines/reference/declarationEmit_nameConflicts3.types +++ b/tests/baselines/reference/declarationEmit_nameConflicts3.types @@ -1,76 +1,76 @@ === tests/cases/compiler/declarationEmit_nameConflicts3.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts3.ts, 0, 0), Decl(declarationEmit_nameConflicts3.ts, 11, 1)) export interface D { } ->D : D +>D : D, Symbol(D, Decl(declarationEmit_nameConflicts3.ts, 0, 10), Decl(declarationEmit_nameConflicts3.ts, 1, 26)) export module D { ->D : typeof D +>D : typeof D, Symbol(D, Decl(declarationEmit_nameConflicts3.ts, 0, 10), Decl(declarationEmit_nameConflicts3.ts, 1, 26)) export function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts3.ts, 2, 21)) } export module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(declarationEmit_nameConflicts3.ts, 4, 5)) export function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts3.ts, 5, 21)) } export module E { ->E : typeof E +>E : typeof E, Symbol(E, Decl(declarationEmit_nameConflicts3.ts, 7, 5)) export function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(declarationEmit_nameConflicts3.ts, 8, 21)) } } module M.P { ->M : typeof M ->P : typeof P +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts3.ts, 0, 0), Decl(declarationEmit_nameConflicts3.ts, 11, 1)) +>P : typeof P, Symbol(P, Decl(declarationEmit_nameConflicts3.ts, 13, 9)) export class C { ->C : C +>C : C, Symbol(C, Decl(declarationEmit_nameConflicts3.ts, 13, 12)) static f() { } ->f : () => void +>f : () => void, Symbol(C.f, Decl(declarationEmit_nameConflicts3.ts, 14, 20)) } export class E extends C { } ->E : E ->C : C +>E : E, Symbol(E, Decl(declarationEmit_nameConflicts3.ts, 16, 5)) +>C : C, Symbol(C, Decl(declarationEmit_nameConflicts3.ts, 13, 12)) export enum D { ->D : D +>D : D, Symbol(D, Decl(declarationEmit_nameConflicts3.ts, 17, 32)) f ->f : D +>f : D, Symbol(D.f, Decl(declarationEmit_nameConflicts3.ts, 18, 19)) } export var v: M.D; // ok ->v : M.D ->M : unknown ->D : M.D +>v : M.D, Symbol(v, Decl(declarationEmit_nameConflicts3.ts, 21, 14)) +>M : any, Symbol(M, Decl(declarationEmit_nameConflicts3.ts, 0, 0), Decl(declarationEmit_nameConflicts3.ts, 11, 1)) +>D : M.D, Symbol(D, Decl(declarationEmit_nameConflicts3.ts, 0, 10), Decl(declarationEmit_nameConflicts3.ts, 1, 26)) export var w = M.D.f; // error, should be typeof M.D.f ->w : () => void ->M.D.f : () => void ->M.D : typeof M.D ->M : typeof M ->D : typeof M.D ->f : () => void +>w : () => void, Symbol(w, Decl(declarationEmit_nameConflicts3.ts, 22, 14)) +>M.D.f : () => void, Symbol(D.f, Decl(declarationEmit_nameConflicts3.ts, 2, 21)) +>M.D : typeof M.D, Symbol(D, Decl(declarationEmit_nameConflicts3.ts, 0, 10), Decl(declarationEmit_nameConflicts3.ts, 1, 26)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts3.ts, 0, 0), Decl(declarationEmit_nameConflicts3.ts, 11, 1)) +>D : typeof M.D, Symbol(D, Decl(declarationEmit_nameConflicts3.ts, 0, 10), Decl(declarationEmit_nameConflicts3.ts, 1, 26)) +>f : () => void, Symbol(D.f, Decl(declarationEmit_nameConflicts3.ts, 2, 21)) export var x = M.C.f; // error, should be typeof M.C.f ->x : () => void ->M.C.f : () => void ->M.C : typeof M.C ->M : typeof M ->C : typeof M.C ->f : () => void +>x : () => void, Symbol(x, Decl(declarationEmit_nameConflicts3.ts, 23, 14), Decl(declarationEmit_nameConflicts3.ts, 24, 14)) +>M.C.f : () => void, Symbol(C.f, Decl(declarationEmit_nameConflicts3.ts, 5, 21)) +>M.C : typeof M.C, Symbol(C, Decl(declarationEmit_nameConflicts3.ts, 4, 5)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts3.ts, 0, 0), Decl(declarationEmit_nameConflicts3.ts, 11, 1)) +>C : typeof M.C, Symbol(C, Decl(declarationEmit_nameConflicts3.ts, 4, 5)) +>f : () => void, Symbol(C.f, Decl(declarationEmit_nameConflicts3.ts, 5, 21)) export var x = M.E.f; // error, should be typeof M.E.f ->x : () => void ->M.E.f : () => void ->M.E : typeof M.E ->M : typeof M ->E : typeof M.E ->f : () => void +>x : () => void, Symbol(x, Decl(declarationEmit_nameConflicts3.ts, 23, 14), Decl(declarationEmit_nameConflicts3.ts, 24, 14)) +>M.E.f : () => void, Symbol(E.f, Decl(declarationEmit_nameConflicts3.ts, 8, 21)) +>M.E : typeof M.E, Symbol(E, Decl(declarationEmit_nameConflicts3.ts, 7, 5)) +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflicts3.ts, 0, 0), Decl(declarationEmit_nameConflicts3.ts, 11, 1)) +>E : typeof M.E, Symbol(E, Decl(declarationEmit_nameConflicts3.ts, 7, 5)) +>f : () => void, Symbol(E.f, Decl(declarationEmit_nameConflicts3.ts, 8, 21)) } diff --git a/tests/baselines/reference/declarationEmit_nameConflictsWithAlias.types b/tests/baselines/reference/declarationEmit_nameConflictsWithAlias.types index 50c45a44a19..ba379d6f2ac 100644 --- a/tests/baselines/reference/declarationEmit_nameConflictsWithAlias.types +++ b/tests/baselines/reference/declarationEmit_nameConflictsWithAlias.types @@ -1,21 +1,21 @@ === tests/cases/compiler/declarationEmit_nameConflictsWithAlias.ts === export module C { export interface I { } } ->C : unknown ->I : I +>C : any, Symbol(C, Decl(declarationEmit_nameConflictsWithAlias.ts, 0, 0)) +>I : I, Symbol(I, Decl(declarationEmit_nameConflictsWithAlias.ts, 0, 17)) export import v = C; ->v : unknown ->C : unknown +>v : any, Symbol(v, Decl(declarationEmit_nameConflictsWithAlias.ts, 0, 42)) +>C : any, Symbol(C, Decl(declarationEmit_nameConflictsWithAlias.ts, 0, 0)) export module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(declarationEmit_nameConflictsWithAlias.ts, 1, 20)) export module C { export interface I { } } ->C : unknown ->I : I +>C : any, Symbol(C, Decl(declarationEmit_nameConflictsWithAlias.ts, 2, 17)) +>I : I, Symbol(I, Decl(declarationEmit_nameConflictsWithAlias.ts, 3, 21)) export var w: v.I; // Gets emitted as C.I, which is the wrong interface ->w : v.I ->v : unknown ->I : v.I +>w : v.I, Symbol(w, Decl(declarationEmit_nameConflictsWithAlias.ts, 4, 14)) +>v : any, Symbol(v, Decl(declarationEmit_nameConflictsWithAlias.ts, 0, 42)) +>I : v.I, Symbol(v.I, Decl(declarationEmit_nameConflictsWithAlias.ts, 0, 17)) } diff --git a/tests/baselines/reference/declarationEmit_protectedMembers.types b/tests/baselines/reference/declarationEmit_protectedMembers.types index 28217b0c070..8270d7a6dc3 100644 --- a/tests/baselines/reference/declarationEmit_protectedMembers.types +++ b/tests/baselines/reference/declarationEmit_protectedMembers.types @@ -2,119 +2,122 @@ // Class with protected members class C1 { ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(declarationEmit_protectedMembers.ts, 0, 0)) protected x: number; ->x : number +>x : number, Symbol(x, Decl(declarationEmit_protectedMembers.ts, 2, 10)) protected f() { ->f : () => number +>f : () => number, Symbol(f, Decl(declarationEmit_protectedMembers.ts, 3, 24)) return this.x; ->this.x : number ->this : C1 ->x : number +>this.x : number, Symbol(x, Decl(declarationEmit_protectedMembers.ts, 2, 10)) +>this : C1, Symbol(C1, Decl(declarationEmit_protectedMembers.ts, 0, 0)) +>x : number, Symbol(x, Decl(declarationEmit_protectedMembers.ts, 2, 10)) } protected set accessor(a: number) { } ->accessor : number ->a : number +>accessor : number, Symbol(accessor, Decl(declarationEmit_protectedMembers.ts, 7, 5), Decl(declarationEmit_protectedMembers.ts, 9, 41)) +>a : number, Symbol(a, Decl(declarationEmit_protectedMembers.ts, 9, 27)) protected get accessor() { return 0; } ->accessor : number +>accessor : number, Symbol(accessor, Decl(declarationEmit_protectedMembers.ts, 7, 5), Decl(declarationEmit_protectedMembers.ts, 9, 41)) +>0 : number protected static sx: number; ->sx : number +>sx : number, Symbol(C1.sx, Decl(declarationEmit_protectedMembers.ts, 10, 42)) protected static sf() { ->sf : () => number +>sf : () => number, Symbol(C1.sf, Decl(declarationEmit_protectedMembers.ts, 12, 32)) return this.sx; ->this.sx : number ->this : typeof C1 ->sx : number +>this.sx : number, Symbol(C1.sx, Decl(declarationEmit_protectedMembers.ts, 10, 42)) +>this : typeof C1, Symbol(C1, Decl(declarationEmit_protectedMembers.ts, 0, 0)) +>sx : number, Symbol(C1.sx, Decl(declarationEmit_protectedMembers.ts, 10, 42)) } protected static set staticSetter(a: number) { } ->staticSetter : number ->a : number +>staticSetter : number, Symbol(C1.staticSetter, Decl(declarationEmit_protectedMembers.ts, 16, 5)) +>a : number, Symbol(a, Decl(declarationEmit_protectedMembers.ts, 18, 38)) protected static get staticGetter() { return 0; } ->staticGetter : number +>staticGetter : number, Symbol(C1.staticGetter, Decl(declarationEmit_protectedMembers.ts, 18, 52)) +>0 : number } // Derived class overriding protected members class C2 extends C1 { ->C2 : C2 ->C1 : C1 +>C2 : C2, Symbol(C2, Decl(declarationEmit_protectedMembers.ts, 20, 1)) +>C1 : C1, Symbol(C1, Decl(declarationEmit_protectedMembers.ts, 0, 0)) protected f() { ->f : () => number +>f : () => number, Symbol(f, Decl(declarationEmit_protectedMembers.ts, 23, 21)) return super.f() + this.x; >super.f() + this.x : number >super.f() : number ->super.f : () => number ->super : C1 ->f : () => number ->this.x : number ->this : C2 ->x : number +>super.f : () => number, Symbol(C1.f, Decl(declarationEmit_protectedMembers.ts, 3, 24)) +>super : C1, Symbol(C1, Decl(declarationEmit_protectedMembers.ts, 0, 0)) +>f : () => number, Symbol(C1.f, Decl(declarationEmit_protectedMembers.ts, 3, 24)) +>this.x : number, Symbol(C1.x, Decl(declarationEmit_protectedMembers.ts, 2, 10)) +>this : C2, Symbol(C2, Decl(declarationEmit_protectedMembers.ts, 20, 1)) +>x : number, Symbol(C1.x, Decl(declarationEmit_protectedMembers.ts, 2, 10)) } protected static sf() { ->sf : () => number +>sf : () => number, Symbol(C2.sf, Decl(declarationEmit_protectedMembers.ts, 26, 5)) return super.sf() + this.sx; >super.sf() + this.sx : number >super.sf() : number ->super.sf : () => number ->super : typeof C1 ->sf : () => number ->this.sx : number ->this : typeof C2 ->sx : number +>super.sf : () => number, Symbol(C1.sf, Decl(declarationEmit_protectedMembers.ts, 12, 32)) +>super : typeof C1, Symbol(C1, Decl(declarationEmit_protectedMembers.ts, 0, 0)) +>sf : () => number, Symbol(C1.sf, Decl(declarationEmit_protectedMembers.ts, 12, 32)) +>this.sx : number, Symbol(C1.sx, Decl(declarationEmit_protectedMembers.ts, 10, 42)) +>this : typeof C2, Symbol(C2, Decl(declarationEmit_protectedMembers.ts, 20, 1)) +>sx : number, Symbol(C1.sx, Decl(declarationEmit_protectedMembers.ts, 10, 42)) } } // Derived class making protected members public class C3 extends C2 { ->C3 : C3 ->C2 : C2 +>C3 : C3, Symbol(C3, Decl(declarationEmit_protectedMembers.ts, 30, 1)) +>C2 : C2, Symbol(C2, Decl(declarationEmit_protectedMembers.ts, 20, 1)) x: number; ->x : number +>x : number, Symbol(x, Decl(declarationEmit_protectedMembers.ts, 33, 21)) static sx: number; ->sx : number +>sx : number, Symbol(C3.sx, Decl(declarationEmit_protectedMembers.ts, 34, 14)) f() { ->f : () => number +>f : () => number, Symbol(f, Decl(declarationEmit_protectedMembers.ts, 35, 22)) return super.f(); >super.f() : number ->super.f : () => number ->super : C2 ->f : () => number +>super.f : () => number, Symbol(C2.f, Decl(declarationEmit_protectedMembers.ts, 23, 21)) +>super : C2, Symbol(C2, Decl(declarationEmit_protectedMembers.ts, 20, 1)) +>f : () => number, Symbol(C2.f, Decl(declarationEmit_protectedMembers.ts, 23, 21)) } static sf() { ->sf : () => number +>sf : () => number, Symbol(C3.sf, Decl(declarationEmit_protectedMembers.ts, 38, 5)) return super.sf(); >super.sf() : number ->super.sf : () => number ->super : typeof C2 ->sf : () => number +>super.sf : () => number, Symbol(C2.sf, Decl(declarationEmit_protectedMembers.ts, 26, 5)) +>super : typeof C2, Symbol(C2, Decl(declarationEmit_protectedMembers.ts, 20, 1)) +>sf : () => number, Symbol(C2.sf, Decl(declarationEmit_protectedMembers.ts, 26, 5)) } static get staticGetter() { return 1; } ->staticGetter : number +>staticGetter : number, Symbol(C3.staticGetter, Decl(declarationEmit_protectedMembers.ts, 41, 5)) +>1 : number } // Protected properties in constructors class C4 { ->C4 : C4 +>C4 : C4, Symbol(C4, Decl(declarationEmit_protectedMembers.ts, 44, 1)) constructor(protected a: number, protected b) { } ->a : number ->b : any +>a : number, Symbol(a, Decl(declarationEmit_protectedMembers.ts, 48, 16)) +>b : any, Symbol(b, Decl(declarationEmit_protectedMembers.ts, 48, 36)) } diff --git a/tests/baselines/reference/declarationInAmbientContext.types b/tests/baselines/reference/declarationInAmbientContext.types index ecdd3b7c7eb..aac4aeb95e0 100644 --- a/tests/baselines/reference/declarationInAmbientContext.types +++ b/tests/baselines/reference/declarationInAmbientContext.types @@ -1,9 +1,9 @@ === tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts === declare var [a, b]; // Error, destructuring declaration not allowed in ambient context ->a : any ->b : any +>a : any, Symbol(a, Decl(declarationInAmbientContext.ts, 0, 13)) +>b : any, Symbol(b, Decl(declarationInAmbientContext.ts, 0, 15)) declare var {c, d}; // Error, destructuring declaration not allowed in ambient context ->c : any ->d : any +>c : any, Symbol(c, Decl(declarationInAmbientContext.ts, 1, 13)) +>d : any, Symbol(d, Decl(declarationInAmbientContext.ts, 1, 15)) diff --git a/tests/baselines/reference/declareDottedExtend.types b/tests/baselines/reference/declareDottedExtend.types index 6b529b5e00d..5bbdb8f186b 100644 --- a/tests/baselines/reference/declareDottedExtend.types +++ b/tests/baselines/reference/declareDottedExtend.types @@ -1,25 +1,28 @@ === tests/cases/compiler/declareDottedExtend.ts === declare module A.B ->A : typeof A ->B : typeof B +>A : typeof A, Symbol(A, Decl(declareDottedExtend.ts, 0, 0)) +>B : typeof B, Symbol(B, Decl(declareDottedExtend.ts, 0, 17)) { export class C{ } ->C : C +>C : C, Symbol(C, Decl(declareDottedExtend.ts, 1, 1)) } import ab = A.B; ->ab : typeof ab ->A : typeof A ->B : typeof ab +>ab : typeof ab, Symbol(ab, Decl(declareDottedExtend.ts, 3, 1)) +>A : typeof A, Symbol(A, Decl(declareDottedExtend.ts, 0, 0)) +>B : typeof ab, Symbol(ab, Decl(declareDottedExtend.ts, 0, 17)) class D extends ab.C{ } ->D : D ->ab : typeof ab ->C : ab.C +>D : D, Symbol(D, Decl(declareDottedExtend.ts, 5, 16)) +>ab.C : any, Symbol(ab.C, Decl(declareDottedExtend.ts, 1, 1)) +>ab : typeof ab, Symbol(ab, Decl(declareDottedExtend.ts, 3, 1)) +>C : ab.C, Symbol(ab.C, Decl(declareDottedExtend.ts, 1, 1)) class E extends A.B.C{ } ->E : E ->A : typeof A ->B : typeof ab ->C : ab.C +>E : E, Symbol(E, Decl(declareDottedExtend.ts, 7, 23)) +>A.B.C : any, Symbol(ab.C, Decl(declareDottedExtend.ts, 1, 1)) +>A.B : typeof ab, Symbol(ab, Decl(declareDottedExtend.ts, 0, 17)) +>A : typeof A, Symbol(A, Decl(declareDottedExtend.ts, 0, 0)) +>B : typeof ab, Symbol(ab, Decl(declareDottedExtend.ts, 0, 17)) +>C : ab.C, Symbol(ab.C, Decl(declareDottedExtend.ts, 1, 1)) diff --git a/tests/baselines/reference/declareDottedModuleName.types b/tests/baselines/reference/declareDottedModuleName.types index 8ccd2298847..068d6042a31 100644 --- a/tests/baselines/reference/declareDottedModuleName.types +++ b/tests/baselines/reference/declareDottedModuleName.types @@ -1,21 +1,21 @@ === tests/cases/compiler/declareDottedModuleName.ts === module M { ->M : unknown +>M : any, Symbol(M, Decl(declareDottedModuleName.ts, 0, 0), Decl(declareDottedModuleName.ts, 2, 1)) module P.Q { } // This shouldnt be emitted ->P : unknown ->Q : unknown +>P : any, Symbol(P, Decl(declareDottedModuleName.ts, 0, 10)) +>Q : any, Symbol(Q, Decl(declareDottedModuleName.ts, 1, 13)) } module M { ->M : unknown +>M : any, Symbol(M, Decl(declareDottedModuleName.ts, 0, 0), Decl(declareDottedModuleName.ts, 2, 1)) export module R.S { } //This should be emitted ->R : unknown ->S : unknown +>R : any, Symbol(R, Decl(declareDottedModuleName.ts, 4, 10)) +>S : any, Symbol(S, Decl(declareDottedModuleName.ts, 5, 20)) } module T.U { // This needs to be emitted ->T : unknown ->U : unknown +>T : any, Symbol(T, Decl(declareDottedModuleName.ts, 6, 1)) +>U : any, Symbol(U, Decl(declareDottedModuleName.ts, 8, 9)) } diff --git a/tests/baselines/reference/declareExternalModuleWithExportAssignedFundule.types b/tests/baselines/reference/declareExternalModuleWithExportAssignedFundule.types index 70718471d50..8b996a04494 100644 --- a/tests/baselines/reference/declareExternalModuleWithExportAssignedFundule.types +++ b/tests/baselines/reference/declareExternalModuleWithExportAssignedFundule.types @@ -2,36 +2,36 @@ declare module "express" { export = express; ->express : typeof express +>express : typeof express, Symbol(express, Decl(declareExternalModuleWithExportAssignedFundule.ts, 2, 21), Decl(declareExternalModuleWithExportAssignedFundule.ts, 4, 46)) function express(): express.ExpressServer; ->express : typeof express ->express : unknown ->ExpressServer : express.ExpressServer +>express : typeof express, Symbol(express, Decl(declareExternalModuleWithExportAssignedFundule.ts, 2, 21), Decl(declareExternalModuleWithExportAssignedFundule.ts, 4, 46)) +>express : any, Symbol(express, Decl(declareExternalModuleWithExportAssignedFundule.ts, 2, 21), Decl(declareExternalModuleWithExportAssignedFundule.ts, 4, 46)) +>ExpressServer : express.ExpressServer, Symbol(express.ExpressServer, Decl(declareExternalModuleWithExportAssignedFundule.ts, 6, 20)) module express { ->express : typeof express +>express : typeof express, Symbol(express, Decl(declareExternalModuleWithExportAssignedFundule.ts, 2, 21), Decl(declareExternalModuleWithExportAssignedFundule.ts, 4, 46)) export interface ExpressServer { ->ExpressServer : ExpressServer +>ExpressServer : ExpressServer, Symbol(ExpressServer, Decl(declareExternalModuleWithExportAssignedFundule.ts, 6, 20)) enable(name: string): ExpressServer; ->enable : (name: string) => ExpressServer ->name : string ->ExpressServer : ExpressServer +>enable : (name: string) => ExpressServer, Symbol(enable, Decl(declareExternalModuleWithExportAssignedFundule.ts, 8, 40)) +>name : string, Symbol(name, Decl(declareExternalModuleWithExportAssignedFundule.ts, 10, 19)) +>ExpressServer : ExpressServer, Symbol(ExpressServer, Decl(declareExternalModuleWithExportAssignedFundule.ts, 6, 20)) post(path: RegExp, handler: (req: Function) => void ): void; ->post : (path: RegExp, handler: (req: Function) => void) => void ->path : RegExp ->RegExp : RegExp ->handler : (req: Function) => void ->req : Function ->Function : Function +>post : (path: RegExp, handler: (req: Function) => void) => void, Symbol(post, Decl(declareExternalModuleWithExportAssignedFundule.ts, 10, 48)) +>path : RegExp, Symbol(path, Decl(declareExternalModuleWithExportAssignedFundule.ts, 12, 17)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) +>handler : (req: Function) => void, Symbol(handler, Decl(declareExternalModuleWithExportAssignedFundule.ts, 12, 30)) +>req : Function, Symbol(req, Decl(declareExternalModuleWithExportAssignedFundule.ts, 12, 41)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) } export class ExpressServerRequest { ->ExpressServerRequest : ExpressServerRequest +>ExpressServerRequest : ExpressServerRequest, Symbol(ExpressServerRequest, Decl(declareExternalModuleWithExportAssignedFundule.ts, 14, 9)) } diff --git a/tests/baselines/reference/declareFileExportAssignment.types b/tests/baselines/reference/declareFileExportAssignment.types index f30586b07e3..b3f43118e6d 100644 --- a/tests/baselines/reference/declareFileExportAssignment.types +++ b/tests/baselines/reference/declareFileExportAssignment.types @@ -1,50 +1,50 @@ === tests/cases/compiler/declareFileExportAssignment.ts === module m2 { ->m2 : { (): connectExport; test1: connectModule; test2(): connectModule; } +>m2 : { (): connectExport; test1: connectModule; test2(): connectModule; }, Symbol(m2, Decl(declareFileExportAssignment.ts, 0, 0), Decl(declareFileExportAssignment.ts, 11, 3)) export interface connectModule { ->connectModule : connectModule +>connectModule : connectModule, Symbol(connectModule, Decl(declareFileExportAssignment.ts, 0, 11)) (res, req, next): void; ->res : any ->req : any ->next : any +>res : any, Symbol(res, Decl(declareFileExportAssignment.ts, 2, 9)) +>req : any, Symbol(req, Decl(declareFileExportAssignment.ts, 2, 13)) +>next : any, Symbol(next, Decl(declareFileExportAssignment.ts, 2, 18)) } export interface connectExport { ->connectExport : connectExport +>connectExport : connectExport, Symbol(connectExport, Decl(declareFileExportAssignment.ts, 3, 5)) use: (mod: connectModule) => connectExport; ->use : (mod: connectModule) => connectExport ->mod : connectModule ->connectModule : connectModule ->connectExport : connectExport +>use : (mod: connectModule) => connectExport, Symbol(use, Decl(declareFileExportAssignment.ts, 4, 36)) +>mod : connectModule, Symbol(mod, Decl(declareFileExportAssignment.ts, 5, 14)) +>connectModule : connectModule, Symbol(connectModule, Decl(declareFileExportAssignment.ts, 0, 11)) +>connectExport : connectExport, Symbol(connectExport, Decl(declareFileExportAssignment.ts, 3, 5)) listen: (port: number) => void; ->listen : (port: number) => void ->port : number +>listen : (port: number) => void, Symbol(listen, Decl(declareFileExportAssignment.ts, 5, 51)) +>port : number, Symbol(port, Decl(declareFileExportAssignment.ts, 6, 17)) } } var m2: { ->m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } +>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }, Symbol(m2, Decl(declareFileExportAssignment.ts, 0, 0), Decl(declareFileExportAssignment.ts, 11, 3)) (): m2.connectExport; ->m2 : unknown ->connectExport : m2.connectExport +>m2 : any, Symbol(m2, Decl(declareFileExportAssignment.ts, 0, 0), Decl(declareFileExportAssignment.ts, 11, 3)) +>connectExport : m2.connectExport, Symbol(m2.connectExport, Decl(declareFileExportAssignment.ts, 3, 5)) test1: m2.connectModule; ->test1 : m2.connectModule ->m2 : unknown ->connectModule : m2.connectModule +>test1 : m2.connectModule, Symbol(test1, Decl(declareFileExportAssignment.ts, 12, 25)) +>m2 : any, Symbol(m2, Decl(declareFileExportAssignment.ts, 0, 0), Decl(declareFileExportAssignment.ts, 11, 3)) +>connectModule : m2.connectModule, Symbol(m2.connectModule, Decl(declareFileExportAssignment.ts, 0, 11)) test2(): m2.connectModule; ->test2 : () => m2.connectModule ->m2 : unknown ->connectModule : m2.connectModule +>test2 : () => m2.connectModule, Symbol(test2, Decl(declareFileExportAssignment.ts, 13, 28)) +>m2 : any, Symbol(m2, Decl(declareFileExportAssignment.ts, 0, 0), Decl(declareFileExportAssignment.ts, 11, 3)) +>connectModule : m2.connectModule, Symbol(m2.connectModule, Decl(declareFileExportAssignment.ts, 0, 11)) }; export = m2; ->m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } +>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }, Symbol(m2, Decl(declareFileExportAssignment.ts, 0, 0), Decl(declareFileExportAssignment.ts, 11, 3)) diff --git a/tests/baselines/reference/declareFileExportAssignmentWithVarFromVariableStatement.types b/tests/baselines/reference/declareFileExportAssignmentWithVarFromVariableStatement.types index 675dc38c869..78bd39f423f 100644 --- a/tests/baselines/reference/declareFileExportAssignmentWithVarFromVariableStatement.types +++ b/tests/baselines/reference/declareFileExportAssignmentWithVarFromVariableStatement.types @@ -1,51 +1,52 @@ === tests/cases/compiler/declareFileExportAssignmentWithVarFromVariableStatement.ts === module m2 { ->m2 : { (): connectExport; test1: connectModule; test2(): connectModule; } +>m2 : { (): connectExport; test1: connectModule; test2(): connectModule; }, Symbol(m2, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 0, 0), Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 11, 11)) export interface connectModule { ->connectModule : connectModule +>connectModule : connectModule, Symbol(connectModule, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 0, 11)) (res, req, next): void; ->res : any ->req : any ->next : any +>res : any, Symbol(res, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 2, 9)) +>req : any, Symbol(req, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 2, 13)) +>next : any, Symbol(next, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 2, 18)) } export interface connectExport { ->connectExport : connectExport +>connectExport : connectExport, Symbol(connectExport, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 3, 5)) use: (mod: connectModule) => connectExport; ->use : (mod: connectModule) => connectExport ->mod : connectModule ->connectModule : connectModule ->connectExport : connectExport +>use : (mod: connectModule) => connectExport, Symbol(use, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 4, 36)) +>mod : connectModule, Symbol(mod, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 5, 14)) +>connectModule : connectModule, Symbol(connectModule, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 0, 11)) +>connectExport : connectExport, Symbol(connectExport, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 3, 5)) listen: (port: number) => void; ->listen : (port: number) => void ->port : number +>listen : (port: number) => void, Symbol(listen, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 5, 51)) +>port : number, Symbol(port, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 6, 17)) } } var x = 10, m2: { ->x : number ->m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } +>x : number, Symbol(x, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 11, 3)) +>10 : number +>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }, Symbol(m2, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 0, 0), Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 11, 11)) (): m2.connectExport; ->m2 : unknown ->connectExport : m2.connectExport +>m2 : any, Symbol(m2, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 0, 0), Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 11, 11)) +>connectExport : m2.connectExport, Symbol(m2.connectExport, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 3, 5)) test1: m2.connectModule; ->test1 : m2.connectModule ->m2 : unknown ->connectModule : m2.connectModule +>test1 : m2.connectModule, Symbol(test1, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 12, 25)) +>m2 : any, Symbol(m2, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 0, 0), Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 11, 11)) +>connectModule : m2.connectModule, Symbol(m2.connectModule, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 0, 11)) test2(): m2.connectModule; ->test2 : () => m2.connectModule ->m2 : unknown ->connectModule : m2.connectModule +>test2 : () => m2.connectModule, Symbol(test2, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 13, 28)) +>m2 : any, Symbol(m2, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 0, 0), Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 11, 11)) +>connectModule : m2.connectModule, Symbol(m2.connectModule, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 0, 11)) }; export = m2; ->m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } +>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }, Symbol(m2, Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 0, 0), Decl(declareFileExportAssignmentWithVarFromVariableStatement.ts, 11, 11)) diff --git a/tests/baselines/reference/declaredExternalModule.types b/tests/baselines/reference/declaredExternalModule.types index 5ce504e7f4b..00e66276a9e 100644 --- a/tests/baselines/reference/declaredExternalModule.types +++ b/tests/baselines/reference/declaredExternalModule.types @@ -2,43 +2,43 @@ declare module 'connect' { interface connectModule { ->connectModule : connectModule +>connectModule : connectModule, Symbol(connectModule, Decl(declaredExternalModule.ts, 0, 26)) (res, req, next): void; ->res : any ->req : any ->next : any +>res : any, Symbol(res, Decl(declaredExternalModule.ts, 4, 9)) +>req : any, Symbol(req, Decl(declaredExternalModule.ts, 4, 13)) +>next : any, Symbol(next, Decl(declaredExternalModule.ts, 4, 18)) } interface connectExport { ->connectExport : connectExport +>connectExport : connectExport, Symbol(connectExport, Decl(declaredExternalModule.ts, 6, 5)) use: (mod: connectModule) => connectExport; ->use : (mod: connectModule) => connectExport ->mod : connectModule ->connectModule : connectModule ->connectExport : connectExport +>use : (mod: connectModule) => connectExport, Symbol(use, Decl(declaredExternalModule.ts, 8, 29)) +>mod : connectModule, Symbol(mod, Decl(declaredExternalModule.ts, 10, 14)) +>connectModule : connectModule, Symbol(connectModule, Decl(declaredExternalModule.ts, 0, 26)) +>connectExport : connectExport, Symbol(connectExport, Decl(declaredExternalModule.ts, 6, 5)) listen: (port: number) => void; ->listen : (port: number) => void ->port : number +>listen : (port: number) => void, Symbol(listen, Decl(declaredExternalModule.ts, 10, 51)) +>port : number, Symbol(port, Decl(declaredExternalModule.ts, 12, 17)) } var server: { ->server : { (): connectExport; test1: connectModule; test2(): connectModule; } +>server : { (): connectExport; test1: connectModule; test2(): connectModule; }, Symbol(server, Decl(declaredExternalModule.ts, 16, 7)) (): connectExport; ->connectExport : connectExport +>connectExport : connectExport, Symbol(connectExport, Decl(declaredExternalModule.ts, 6, 5)) test1: connectModule; // No error ->test1 : connectModule ->connectModule : connectModule +>test1 : connectModule, Symbol(test1, Decl(declaredExternalModule.ts, 18, 26)) +>connectModule : connectModule, Symbol(connectModule, Decl(declaredExternalModule.ts, 0, 26)) test2(): connectModule; // ERROR: Return type of method from exported interface has or is using private type ''connect'.connectModule'. ->test2 : () => connectModule ->connectModule : connectModule +>test2 : () => connectModule, Symbol(test2, Decl(declaredExternalModule.ts, 20, 29)) +>connectModule : connectModule, Symbol(connectModule, Decl(declaredExternalModule.ts, 0, 26)) }; } diff --git a/tests/baselines/reference/declaredExternalModuleWithExportAssignment.types b/tests/baselines/reference/declaredExternalModuleWithExportAssignment.types index e550e8ee13d..5e1ce643910 100644 --- a/tests/baselines/reference/declaredExternalModuleWithExportAssignment.types +++ b/tests/baselines/reference/declaredExternalModuleWithExportAssignment.types @@ -1,44 +1,44 @@ === tests/cases/compiler/declaredExternalModuleWithExportAssignment.ts === declare module 'connect' { interface connectModule { ->connectModule : connectModule +>connectModule : connectModule, Symbol(connectModule, Decl(declaredExternalModuleWithExportAssignment.ts, 0, 26)) (res, req, next): void; ->res : any ->req : any ->next : any +>res : any, Symbol(res, Decl(declaredExternalModuleWithExportAssignment.ts, 2, 9)) +>req : any, Symbol(req, Decl(declaredExternalModuleWithExportAssignment.ts, 2, 13)) +>next : any, Symbol(next, Decl(declaredExternalModuleWithExportAssignment.ts, 2, 18)) } interface connectExport { ->connectExport : connectExport +>connectExport : connectExport, Symbol(connectExport, Decl(declaredExternalModuleWithExportAssignment.ts, 3, 5)) use: (mod: connectModule) => connectExport; ->use : (mod: connectModule) => connectExport ->mod : connectModule ->connectModule : connectModule ->connectExport : connectExport +>use : (mod: connectModule) => connectExport, Symbol(use, Decl(declaredExternalModuleWithExportAssignment.ts, 5, 29)) +>mod : connectModule, Symbol(mod, Decl(declaredExternalModuleWithExportAssignment.ts, 6, 14)) +>connectModule : connectModule, Symbol(connectModule, Decl(declaredExternalModuleWithExportAssignment.ts, 0, 26)) +>connectExport : connectExport, Symbol(connectExport, Decl(declaredExternalModuleWithExportAssignment.ts, 3, 5)) listen: (port: number) => void; ->listen : (port: number) => void ->port : number +>listen : (port: number) => void, Symbol(listen, Decl(declaredExternalModuleWithExportAssignment.ts, 6, 51)) +>port : number, Symbol(port, Decl(declaredExternalModuleWithExportAssignment.ts, 7, 17)) } var server: { ->server : { (): connectExport; test1: connectModule; test2(): connectModule; } +>server : { (): connectExport; test1: connectModule; test2(): connectModule; }, Symbol(server, Decl(declaredExternalModuleWithExportAssignment.ts, 10, 7)) (): connectExport; ->connectExport : connectExport +>connectExport : connectExport, Symbol(connectExport, Decl(declaredExternalModuleWithExportAssignment.ts, 3, 5)) test1: connectModule; ->test1 : connectModule ->connectModule : connectModule +>test1 : connectModule, Symbol(test1, Decl(declaredExternalModuleWithExportAssignment.ts, 11, 26)) +>connectModule : connectModule, Symbol(connectModule, Decl(declaredExternalModuleWithExportAssignment.ts, 0, 26)) test2(): connectModule; ->test2 : () => connectModule ->connectModule : connectModule +>test2 : () => connectModule, Symbol(test2, Decl(declaredExternalModuleWithExportAssignment.ts, 12, 29)) +>connectModule : connectModule, Symbol(connectModule, Decl(declaredExternalModuleWithExportAssignment.ts, 0, 26)) }; export = server; ->server : { (): connectExport; test1: connectModule; test2(): connectModule; } +>server : { (): connectExport; test1: connectModule; test2(): connectModule; }, Symbol(server, Decl(declaredExternalModuleWithExportAssignment.ts, 10, 7)) } diff --git a/tests/baselines/reference/decoratedClassFromExternalModule.js b/tests/baselines/reference/decoratedClassFromExternalModule.js new file mode 100644 index 00000000000..a58eb01a426 --- /dev/null +++ b/tests/baselines/reference/decoratedClassFromExternalModule.js @@ -0,0 +1,28 @@ +//// [tests/cases/conformance/decorators/class/decoratedClassFromExternalModule.ts] //// + +//// [decorated.ts] +function decorate() { } + +@decorate +export default class Decorated { } + +//// [undecorated.ts] +import Decorated from 'decorated'; + +//// [decorated.js] +var __decorate = this.__decorate || (typeof Reflect === "object" && Reflect.decorate) || function (decorators, target, key, desc) { + switch (arguments.length) { + case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); + case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); + case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); + } +}; +function decorate() { } +let Decorated = class { +}; +Object.defineProperty(Decorated, "name", { value: "Decorated", configurable: true }); +Decorated = __decorate([ + decorate +], Decorated); +export default Decorated; +//// [undecorated.js] diff --git a/tests/baselines/reference/decoratedClassFromExternalModule.types b/tests/baselines/reference/decoratedClassFromExternalModule.types new file mode 100644 index 00000000000..2c2e5223ae0 --- /dev/null +++ b/tests/baselines/reference/decoratedClassFromExternalModule.types @@ -0,0 +1,14 @@ +=== tests/cases/conformance/decorators/class/decorated.ts === +function decorate() { } +>decorate : () => void, Symbol(decorate, Decl(decorated.ts, 0, 0)) + +@decorate +>decorate : () => void, Symbol(decorate, Decl(decorated.ts, 0, 0)) + +export default class Decorated { } +>Decorated : Decorated, Symbol(Decorated, Decl(decorated.ts, 0, 23)) + +=== tests/cases/conformance/decorators/class/undecorated.ts === +import Decorated from 'decorated'; +>Decorated : typeof Decorated, Symbol(Decorated, Decl(undecorated.ts, 0, 6)) + diff --git a/tests/baselines/reference/decoratorOnClass1.types b/tests/baselines/reference/decoratorOnClass1.types index 19e066586da..22a890dd73f 100644 --- a/tests/baselines/reference/decoratorOnClass1.types +++ b/tests/baselines/reference/decoratorOnClass1.types @@ -1,14 +1,14 @@ === tests/cases/conformance/decorators/class/decoratorOnClass1.ts === declare function dec(target: T): T; ->dec : (target: T) => T ->T : T ->target : T ->T : T ->T : T +>dec : (target: T) => T, Symbol(dec, Decl(decoratorOnClass1.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClass1.ts, 0, 21)) +>target : T, Symbol(target, Decl(decoratorOnClass1.ts, 0, 24)) +>T : T, Symbol(T, Decl(decoratorOnClass1.ts, 0, 21)) +>T : T, Symbol(T, Decl(decoratorOnClass1.ts, 0, 21)) @dec ->dec : unknown +>dec : (target: T) => T, Symbol(dec, Decl(decoratorOnClass1.ts, 0, 0)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClass1.ts, 0, 38)) } diff --git a/tests/baselines/reference/decoratorOnClass2.types b/tests/baselines/reference/decoratorOnClass2.types index 43102ee9122..e9e9947bb26 100644 --- a/tests/baselines/reference/decoratorOnClass2.types +++ b/tests/baselines/reference/decoratorOnClass2.types @@ -1,14 +1,14 @@ === tests/cases/conformance/decorators/class/decoratorOnClass2.ts === declare function dec(target: T): T; ->dec : (target: T) => T ->T : T ->target : T ->T : T ->T : T +>dec : (target: T) => T, Symbol(dec, Decl(decoratorOnClass2.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClass2.ts, 0, 21)) +>target : T, Symbol(target, Decl(decoratorOnClass2.ts, 0, 24)) +>T : T, Symbol(T, Decl(decoratorOnClass2.ts, 0, 21)) +>T : T, Symbol(T, Decl(decoratorOnClass2.ts, 0, 21)) @dec ->dec : unknown +>dec : (target: T) => T, Symbol(dec, Decl(decoratorOnClass2.ts, 0, 0)) export class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClass2.ts, 0, 38)) } diff --git a/tests/baselines/reference/decoratorOnClass4.types b/tests/baselines/reference/decoratorOnClass4.types index 425aa63ac21..b8e4e311cfc 100644 --- a/tests/baselines/reference/decoratorOnClass4.types +++ b/tests/baselines/reference/decoratorOnClass4.types @@ -1,15 +1,15 @@ === tests/cases/conformance/decorators/class/decoratorOnClass4.ts === declare function dec(): (target: T) => T; ->dec : () => (target: T) => T ->T : T ->target : T ->T : T ->T : T +>dec : () => (target: T) => T, Symbol(dec, Decl(decoratorOnClass4.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClass4.ts, 0, 25)) +>target : T, Symbol(target, Decl(decoratorOnClass4.ts, 0, 28)) +>T : T, Symbol(T, Decl(decoratorOnClass4.ts, 0, 25)) +>T : T, Symbol(T, Decl(decoratorOnClass4.ts, 0, 25)) @dec() >dec() : (target: T) => T ->dec : () => (target: T) => T +>dec : () => (target: T) => T, Symbol(dec, Decl(decoratorOnClass4.ts, 0, 0)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClass4.ts, 0, 44)) } diff --git a/tests/baselines/reference/decoratorOnClass5.types b/tests/baselines/reference/decoratorOnClass5.types index 1c967ffcc00..98d7b5e6925 100644 --- a/tests/baselines/reference/decoratorOnClass5.types +++ b/tests/baselines/reference/decoratorOnClass5.types @@ -1,15 +1,15 @@ === tests/cases/conformance/decorators/class/decoratorOnClass5.ts === declare function dec(): (target: T) => T; ->dec : () => (target: T) => T ->T : T ->target : T ->T : T ->T : T +>dec : () => (target: T) => T, Symbol(dec, Decl(decoratorOnClass5.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClass5.ts, 0, 25)) +>target : T, Symbol(target, Decl(decoratorOnClass5.ts, 0, 28)) +>T : T, Symbol(T, Decl(decoratorOnClass5.ts, 0, 25)) +>T : T, Symbol(T, Decl(decoratorOnClass5.ts, 0, 25)) @dec() >dec() : (target: T) => T ->dec : () => (target: T) => T +>dec : () => (target: T) => T, Symbol(dec, Decl(decoratorOnClass5.ts, 0, 0)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClass5.ts, 0, 44)) } diff --git a/tests/baselines/reference/decoratorOnClassAccessor1.types b/tests/baselines/reference/decoratorOnClassAccessor1.types index fd592d7d294..b2bb684b769 100644 --- a/tests/baselines/reference/decoratorOnClassAccessor1.types +++ b/tests/baselines/reference/decoratorOnClassAccessor1.types @@ -1,19 +1,20 @@ === tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor1.ts === declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; ->dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor ->T : T ->target : any ->propertyKey : string ->descriptor : TypedPropertyDescriptor ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassAccessor1.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassAccessor1.ts, 0, 21)) +>target : any, Symbol(target, Decl(decoratorOnClassAccessor1.ts, 0, 24)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassAccessor1.ts, 0, 36)) +>descriptor : TypedPropertyDescriptor, Symbol(descriptor, Decl(decoratorOnClassAccessor1.ts, 0, 57)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassAccessor1.ts, 0, 21)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassAccessor1.ts, 0, 21)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassAccessor1.ts, 0, 126)) @dec get accessor() { return 1; } ->dec : unknown ->accessor : number +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassAccessor1.ts, 0, 0)) +>accessor : number, Symbol(accessor, Decl(decoratorOnClassAccessor1.ts, 2, 9)) +>1 : number } diff --git a/tests/baselines/reference/decoratorOnClassAccessor2.types b/tests/baselines/reference/decoratorOnClassAccessor2.types index 32bb503d889..2d64bd5063a 100644 --- a/tests/baselines/reference/decoratorOnClassAccessor2.types +++ b/tests/baselines/reference/decoratorOnClassAccessor2.types @@ -1,19 +1,20 @@ === tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor2.ts === declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; ->dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor ->T : T ->target : any ->propertyKey : string ->descriptor : TypedPropertyDescriptor ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassAccessor2.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassAccessor2.ts, 0, 21)) +>target : any, Symbol(target, Decl(decoratorOnClassAccessor2.ts, 0, 24)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassAccessor2.ts, 0, 36)) +>descriptor : TypedPropertyDescriptor, Symbol(descriptor, Decl(decoratorOnClassAccessor2.ts, 0, 57)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassAccessor2.ts, 0, 21)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassAccessor2.ts, 0, 21)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassAccessor2.ts, 0, 126)) @dec public get accessor() { return 1; } ->dec : unknown ->accessor : number +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassAccessor2.ts, 0, 0)) +>accessor : number, Symbol(accessor, Decl(decoratorOnClassAccessor2.ts, 2, 9)) +>1 : number } diff --git a/tests/baselines/reference/decoratorOnClassAccessor3.errors.txt b/tests/baselines/reference/decoratorOnClassAccessor3.errors.txt index 1a1e6503355..98b96b9b1c4 100644 --- a/tests/baselines/reference/decoratorOnClassAccessor3.errors.txt +++ b/tests/baselines/reference/decoratorOnClassAccessor3.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. +tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4,12): error TS1005: ';' expected. ==== tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts(4 class C { public @dec get accessor() { return 1; } - ~~~~~~ -!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. + ~ +!!! error TS1005: ';' expected. } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassAccessor4.types b/tests/baselines/reference/decoratorOnClassAccessor4.types index 40dd43d7e62..ee04097cc5f 100644 --- a/tests/baselines/reference/decoratorOnClassAccessor4.types +++ b/tests/baselines/reference/decoratorOnClassAccessor4.types @@ -1,20 +1,20 @@ === tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor4.ts === declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; ->dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor ->T : T ->target : any ->propertyKey : string ->descriptor : TypedPropertyDescriptor ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassAccessor4.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassAccessor4.ts, 0, 21)) +>target : any, Symbol(target, Decl(decoratorOnClassAccessor4.ts, 0, 24)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassAccessor4.ts, 0, 36)) +>descriptor : TypedPropertyDescriptor, Symbol(descriptor, Decl(decoratorOnClassAccessor4.ts, 0, 57)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassAccessor4.ts, 0, 21)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassAccessor4.ts, 0, 21)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassAccessor4.ts, 0, 126)) @dec set accessor(value: number) { } ->dec : unknown ->accessor : number ->value : number +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassAccessor4.ts, 0, 0)) +>accessor : number, Symbol(accessor, Decl(decoratorOnClassAccessor4.ts, 2, 9)) +>value : number, Symbol(value, Decl(decoratorOnClassAccessor4.ts, 3, 22)) } diff --git a/tests/baselines/reference/decoratorOnClassAccessor5.types b/tests/baselines/reference/decoratorOnClassAccessor5.types index 4b167fe8df1..906cd17d6bd 100644 --- a/tests/baselines/reference/decoratorOnClassAccessor5.types +++ b/tests/baselines/reference/decoratorOnClassAccessor5.types @@ -1,20 +1,20 @@ === tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor5.ts === declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; ->dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor ->T : T ->target : any ->propertyKey : string ->descriptor : TypedPropertyDescriptor ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassAccessor5.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassAccessor5.ts, 0, 21)) +>target : any, Symbol(target, Decl(decoratorOnClassAccessor5.ts, 0, 24)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassAccessor5.ts, 0, 36)) +>descriptor : TypedPropertyDescriptor, Symbol(descriptor, Decl(decoratorOnClassAccessor5.ts, 0, 57)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassAccessor5.ts, 0, 21)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassAccessor5.ts, 0, 21)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassAccessor5.ts, 0, 126)) @dec public set accessor(value: number) { } ->dec : unknown ->accessor : number ->value : number +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassAccessor5.ts, 0, 0)) +>accessor : number, Symbol(accessor, Decl(decoratorOnClassAccessor5.ts, 2, 9)) +>value : number, Symbol(value, Decl(decoratorOnClassAccessor5.ts, 3, 29)) } diff --git a/tests/baselines/reference/decoratorOnClassAccessor6.errors.txt b/tests/baselines/reference/decoratorOnClassAccessor6.errors.txt index f43827c0e4b..e430b4cf1ee 100644 --- a/tests/baselines/reference/decoratorOnClassAccessor6.errors.txt +++ b/tests/baselines/reference/decoratorOnClassAccessor6.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. +tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4,12): error TS1005: ';' expected. ==== tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts(4 class C { public @dec set accessor(value: number) { } - ~~~~~~ -!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. + ~ +!!! error TS1005: ';' expected. } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter1.types b/tests/baselines/reference/decoratorOnClassConstructorParameter1.types index d5ce51269bc..0d463006931 100644 --- a/tests/baselines/reference/decoratorOnClassConstructorParameter1.types +++ b/tests/baselines/reference/decoratorOnClassConstructorParameter1.types @@ -1,15 +1,15 @@ === tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter1.ts === declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; ->dec : (target: Function, propertyKey: string | symbol, parameterIndex: number) => void ->target : Function ->Function : Function ->propertyKey : string | symbol ->parameterIndex : number +>dec : (target: Function, propertyKey: string | symbol, parameterIndex: number) => void, Symbol(dec, Decl(decoratorOnClassConstructorParameter1.ts, 0, 0)) +>target : Function, Symbol(target, Decl(decoratorOnClassConstructorParameter1.ts, 0, 21)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) +>propertyKey : string | symbol, Symbol(propertyKey, Decl(decoratorOnClassConstructorParameter1.ts, 0, 38)) +>parameterIndex : number, Symbol(parameterIndex, Decl(decoratorOnClassConstructorParameter1.ts, 0, 68)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassConstructorParameter1.ts, 0, 99)) constructor(@dec p: number) {} ->dec : unknown ->p : number +>dec : (target: Function, propertyKey: string | symbol, parameterIndex: number) => void, Symbol(dec, Decl(decoratorOnClassConstructorParameter1.ts, 0, 0)) +>p : number, Symbol(p, Decl(decoratorOnClassConstructorParameter1.ts, 3, 16)) } diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter4.errors.txt b/tests/baselines/reference/decoratorOnClassConstructorParameter4.errors.txt index 61ff1433662..5969cfca069 100644 --- a/tests/baselines/reference/decoratorOnClassConstructorParameter4.errors.txt +++ b/tests/baselines/reference/decoratorOnClassConstructorParameter4.errors.txt @@ -1,14 +1,11 @@ -tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts(4,17): error TS1003: Identifier expected. tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts(4,24): error TS1005: ',' expected. -==== tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts (2 errors) ==== +==== tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts (1 errors) ==== declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; class C { constructor(public @dec p: number) {} - ~~~~~~ -!!! error TS1003: Identifier expected. ~ !!! error TS1005: ',' expected. } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassConstructorParameter4.js b/tests/baselines/reference/decoratorOnClassConstructorParameter4.js index 638cb1cda7e..9d2b4a690ab 100644 --- a/tests/baselines/reference/decoratorOnClassConstructorParameter4.js +++ b/tests/baselines/reference/decoratorOnClassConstructorParameter4.js @@ -15,7 +15,7 @@ var __decorate = this.__decorate || (typeof Reflect === "object" && Reflect.deco }; var __param = this.__param || function(index, decorator) { return function (target, key) { decorator(target, key, index); } }; var C = (function () { - function C(, p) { + function C(public, p) { } C = __decorate([ __param(1, dec) diff --git a/tests/baselines/reference/decoratorOnClassMethod1.types b/tests/baselines/reference/decoratorOnClassMethod1.types index 760f758bbff..d92724b25bc 100644 --- a/tests/baselines/reference/decoratorOnClassMethod1.types +++ b/tests/baselines/reference/decoratorOnClassMethod1.types @@ -1,19 +1,19 @@ === tests/cases/conformance/decorators/class/method/decoratorOnClassMethod1.ts === declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; ->dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor ->T : T ->target : any ->propertyKey : string ->descriptor : TypedPropertyDescriptor ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod1.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod1.ts, 0, 21)) +>target : any, Symbol(target, Decl(decoratorOnClassMethod1.ts, 0, 24)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassMethod1.ts, 0, 36)) +>descriptor : TypedPropertyDescriptor, Symbol(descriptor, Decl(decoratorOnClassMethod1.ts, 0, 57)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod1.ts, 0, 21)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod1.ts, 0, 21)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassMethod1.ts, 0, 126)) @dec method() {} ->dec : unknown ->method : () => void +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod1.ts, 0, 0)) +>method : () => void, Symbol(method, Decl(decoratorOnClassMethod1.ts, 2, 9)) } diff --git a/tests/baselines/reference/decoratorOnClassMethod13.js b/tests/baselines/reference/decoratorOnClassMethod13.js new file mode 100644 index 00000000000..4321bbb0156 --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod13.js @@ -0,0 +1,29 @@ +//// [decoratorOnClassMethod13.ts] +declare function dec(): (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor; + +class C { + @dec ["1"]() { } + @dec ["b"]() { } +} + +//// [decoratorOnClassMethod13.js] +var __decorate = this.__decorate || (typeof Reflect === "object" && Reflect.decorate) || function (decorators, target, key, desc) { + switch (arguments.length) { + case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); + case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); + case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); + } +}; +class C { + [_a = "1"]() { } + [_b = "b"]() { } +} +Object.defineProperty(C.prototype, _a, + __decorate([ + dec + ], C.prototype, _a, Object.getOwnPropertyDescriptor(C.prototype, _a))); +Object.defineProperty(C.prototype, _b, + __decorate([ + dec + ], C.prototype, _b, Object.getOwnPropertyDescriptor(C.prototype, _b))); +var _a, _b; diff --git a/tests/baselines/reference/decoratorOnClassMethod13.types b/tests/baselines/reference/decoratorOnClassMethod13.types new file mode 100644 index 00000000000..23714e4e6ae --- /dev/null +++ b/tests/baselines/reference/decoratorOnClassMethod13.types @@ -0,0 +1,23 @@ +=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod13.ts === +declare function dec(): (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor; +>dec : () => (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod13.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod13.ts, 0, 25)) +>target : any, Symbol(target, Decl(decoratorOnClassMethod13.ts, 0, 28)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassMethod13.ts, 0, 40)) +>descriptor : TypedPropertyDescriptor, Symbol(descriptor, Decl(decoratorOnClassMethod13.ts, 0, 61)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod13.ts, 0, 25)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod13.ts, 0, 25)) + +class C { +>C : C, Symbol(C, Decl(decoratorOnClassMethod13.ts, 0, 132)) + + @dec ["1"]() { } +>dec : () => (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod13.ts, 0, 0)) +>"1" : string + + @dec ["b"]() { } +>dec : () => (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod13.ts, 0, 0)) +>"b" : string +} diff --git a/tests/baselines/reference/decoratorOnClassMethod2.types b/tests/baselines/reference/decoratorOnClassMethod2.types index 98539648cd0..5e941cd1c27 100644 --- a/tests/baselines/reference/decoratorOnClassMethod2.types +++ b/tests/baselines/reference/decoratorOnClassMethod2.types @@ -1,19 +1,19 @@ === tests/cases/conformance/decorators/class/method/decoratorOnClassMethod2.ts === declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; ->dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor ->T : T ->target : any ->propertyKey : string ->descriptor : TypedPropertyDescriptor ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod2.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod2.ts, 0, 21)) +>target : any, Symbol(target, Decl(decoratorOnClassMethod2.ts, 0, 24)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassMethod2.ts, 0, 36)) +>descriptor : TypedPropertyDescriptor, Symbol(descriptor, Decl(decoratorOnClassMethod2.ts, 0, 57)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod2.ts, 0, 21)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod2.ts, 0, 21)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassMethod2.ts, 0, 126)) @dec public method() {} ->dec : unknown ->method : () => void +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod2.ts, 0, 0)) +>method : () => void, Symbol(method, Decl(decoratorOnClassMethod2.ts, 2, 9)) } diff --git a/tests/baselines/reference/decoratorOnClassMethod3.errors.txt b/tests/baselines/reference/decoratorOnClassMethod3.errors.txt index 2775ab9f144..4881502a02e 100644 --- a/tests/baselines/reference/decoratorOnClassMethod3.errors.txt +++ b/tests/baselines/reference/decoratorOnClassMethod3.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts(4,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. +tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts(4,12): error TS1005: ';' expected. ==== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts(4,5): class C { public @dec method() {} - ~~~~~~ -!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. + ~ +!!! error TS1005: ';' expected. } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassMethod4.types b/tests/baselines/reference/decoratorOnClassMethod4.types index 6d55e01e97a..0ed604029fb 100644 --- a/tests/baselines/reference/decoratorOnClassMethod4.types +++ b/tests/baselines/reference/decoratorOnClassMethod4.types @@ -1,18 +1,19 @@ === tests/cases/conformance/decorators/class/method/decoratorOnClassMethod4.ts === declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; ->dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor ->T : T ->target : any ->propertyKey : string ->descriptor : TypedPropertyDescriptor ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod4.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod4.ts, 0, 21)) +>target : any, Symbol(target, Decl(decoratorOnClassMethod4.ts, 0, 24)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassMethod4.ts, 0, 36)) +>descriptor : TypedPropertyDescriptor, Symbol(descriptor, Decl(decoratorOnClassMethod4.ts, 0, 57)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod4.ts, 0, 21)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod4.ts, 0, 21)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassMethod4.ts, 0, 126)) @dec ["method"]() {} ->dec : unknown +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod4.ts, 0, 0)) +>"method" : string } diff --git a/tests/baselines/reference/decoratorOnClassMethod5.types b/tests/baselines/reference/decoratorOnClassMethod5.types index d87de2b351a..03347de1d31 100644 --- a/tests/baselines/reference/decoratorOnClassMethod5.types +++ b/tests/baselines/reference/decoratorOnClassMethod5.types @@ -1,19 +1,20 @@ === tests/cases/conformance/decorators/class/method/decoratorOnClassMethod5.ts === declare function dec(): (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor; ->dec : () => (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor ->T : T ->target : any ->propertyKey : string ->descriptor : TypedPropertyDescriptor ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T +>dec : () => (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod5.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod5.ts, 0, 25)) +>target : any, Symbol(target, Decl(decoratorOnClassMethod5.ts, 0, 28)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassMethod5.ts, 0, 40)) +>descriptor : TypedPropertyDescriptor, Symbol(descriptor, Decl(decoratorOnClassMethod5.ts, 0, 61)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod5.ts, 0, 25)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod5.ts, 0, 25)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassMethod5.ts, 0, 132)) @dec() ["method"]() {} >dec() : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor ->dec : () => (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor +>dec : () => (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod5.ts, 0, 0)) +>"method" : string } diff --git a/tests/baselines/reference/decoratorOnClassMethod6.types b/tests/baselines/reference/decoratorOnClassMethod6.types index 4e6629cd60a..550393af9e9 100644 --- a/tests/baselines/reference/decoratorOnClassMethod6.types +++ b/tests/baselines/reference/decoratorOnClassMethod6.types @@ -1,18 +1,19 @@ === tests/cases/conformance/decorators/class/method/decoratorOnClassMethod6.ts === declare function dec(): (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor; ->dec : () => (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor ->T : T ->target : any ->propertyKey : string ->descriptor : TypedPropertyDescriptor ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T +>dec : () => (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod6.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod6.ts, 0, 25)) +>target : any, Symbol(target, Decl(decoratorOnClassMethod6.ts, 0, 28)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassMethod6.ts, 0, 40)) +>descriptor : TypedPropertyDescriptor, Symbol(descriptor, Decl(decoratorOnClassMethod6.ts, 0, 61)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod6.ts, 0, 25)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod6.ts, 0, 25)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassMethod6.ts, 0, 132)) @dec ["method"]() {} ->dec : unknown +>dec : () => (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod6.ts, 0, 0)) +>"method" : string } diff --git a/tests/baselines/reference/decoratorOnClassMethod7.types b/tests/baselines/reference/decoratorOnClassMethod7.types index 7e426cb773c..f806ba241c6 100644 --- a/tests/baselines/reference/decoratorOnClassMethod7.types +++ b/tests/baselines/reference/decoratorOnClassMethod7.types @@ -1,18 +1,19 @@ === tests/cases/conformance/decorators/class/method/decoratorOnClassMethod7.ts === declare function dec(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor; ->dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor ->T : T ->target : any ->propertyKey : string ->descriptor : TypedPropertyDescriptor ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T ->TypedPropertyDescriptor : TypedPropertyDescriptor ->T : T +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod7.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod7.ts, 0, 21)) +>target : any, Symbol(target, Decl(decoratorOnClassMethod7.ts, 0, 24)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassMethod7.ts, 0, 36)) +>descriptor : TypedPropertyDescriptor, Symbol(descriptor, Decl(decoratorOnClassMethod7.ts, 0, 57)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod7.ts, 0, 21)) +>TypedPropertyDescriptor : TypedPropertyDescriptor, Symbol(TypedPropertyDescriptor, Decl(lib.d.ts, 1171, 36)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod7.ts, 0, 21)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassMethod7.ts, 0, 126)) @dec public ["method"]() {} ->dec : unknown +>dec : (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor, Symbol(dec, Decl(decoratorOnClassMethod7.ts, 0, 0)) +>"method" : string } diff --git a/tests/baselines/reference/decoratorOnClassMethod8.types b/tests/baselines/reference/decoratorOnClassMethod8.types index f932ab8696f..d7361971c0b 100644 --- a/tests/baselines/reference/decoratorOnClassMethod8.types +++ b/tests/baselines/reference/decoratorOnClassMethod8.types @@ -1,15 +1,15 @@ === tests/cases/conformance/decorators/class/method/decoratorOnClassMethod8.ts === declare function dec(target: T): T; ->dec : (target: T) => T ->T : T ->target : T ->T : T ->T : T +>dec : (target: T) => T, Symbol(dec, Decl(decoratorOnClassMethod8.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod8.ts, 0, 21)) +>target : T, Symbol(target, Decl(decoratorOnClassMethod8.ts, 0, 24)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod8.ts, 0, 21)) +>T : T, Symbol(T, Decl(decoratorOnClassMethod8.ts, 0, 21)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassMethod8.ts, 0, 38)) @dec method() {} ->dec : unknown ->method : () => void +>dec : (target: T) => T, Symbol(dec, Decl(decoratorOnClassMethod8.ts, 0, 0)) +>method : () => void, Symbol(method, Decl(decoratorOnClassMethod8.ts, 2, 9)) } diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter1.types b/tests/baselines/reference/decoratorOnClassMethodParameter1.types index cf7bfd352bf..46451695e00 100644 --- a/tests/baselines/reference/decoratorOnClassMethodParameter1.types +++ b/tests/baselines/reference/decoratorOnClassMethodParameter1.types @@ -1,16 +1,16 @@ === tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter1.ts === declare function dec(target: Function, propertyKey: string | symbol, parameterIndex: number): void; ->dec : (target: Function, propertyKey: string | symbol, parameterIndex: number) => void ->target : Function ->Function : Function ->propertyKey : string | symbol ->parameterIndex : number +>dec : (target: Function, propertyKey: string | symbol, parameterIndex: number) => void, Symbol(dec, Decl(decoratorOnClassMethodParameter1.ts, 0, 0)) +>target : Function, Symbol(target, Decl(decoratorOnClassMethodParameter1.ts, 0, 21)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) +>propertyKey : string | symbol, Symbol(propertyKey, Decl(decoratorOnClassMethodParameter1.ts, 0, 38)) +>parameterIndex : number, Symbol(parameterIndex, Decl(decoratorOnClassMethodParameter1.ts, 0, 68)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassMethodParameter1.ts, 0, 99)) method(@dec p: number) {} ->method : (p: number) => void ->dec : unknown ->p : number +>method : (p: number) => void, Symbol(method, Decl(decoratorOnClassMethodParameter1.ts, 2, 9)) +>dec : (target: Function, propertyKey: string | symbol, parameterIndex: number) => void, Symbol(dec, Decl(decoratorOnClassMethodParameter1.ts, 0, 0)) +>p : number, Symbol(p, Decl(decoratorOnClassMethodParameter1.ts, 3, 11)) } diff --git a/tests/baselines/reference/decoratorOnClassProperty1.types b/tests/baselines/reference/decoratorOnClassProperty1.types index 651085c7ac4..0a67cfc9ea5 100644 --- a/tests/baselines/reference/decoratorOnClassProperty1.types +++ b/tests/baselines/reference/decoratorOnClassProperty1.types @@ -1,13 +1,13 @@ === tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts === declare function dec(target: any, propertyKey: string): void; ->dec : (target: any, propertyKey: string) => void ->target : any ->propertyKey : string +>dec : (target: any, propertyKey: string) => void, Symbol(dec, Decl(decoratorOnClassProperty1.ts, 0, 0)) +>target : any, Symbol(target, Decl(decoratorOnClassProperty1.ts, 0, 21)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassProperty1.ts, 0, 33)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassProperty1.ts, 0, 61)) @dec prop; ->dec : unknown ->prop : any +>dec : (target: any, propertyKey: string) => void, Symbol(dec, Decl(decoratorOnClassProperty1.ts, 0, 0)) +>prop : any, Symbol(prop, Decl(decoratorOnClassProperty1.ts, 2, 9)) } diff --git a/tests/baselines/reference/decoratorOnClassProperty10.types b/tests/baselines/reference/decoratorOnClassProperty10.types index d0aa05589ff..57d437272f6 100644 --- a/tests/baselines/reference/decoratorOnClassProperty10.types +++ b/tests/baselines/reference/decoratorOnClassProperty10.types @@ -1,15 +1,15 @@ === tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts === declare function dec(): (target: any, propertyKey: string) => void; ->dec : () => (target: any, propertyKey: string) => void ->T : T ->target : any ->propertyKey : string +>dec : () => (target: any, propertyKey: string) => void, Symbol(dec, Decl(decoratorOnClassProperty10.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassProperty10.ts, 0, 25)) +>target : any, Symbol(target, Decl(decoratorOnClassProperty10.ts, 0, 28)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassProperty10.ts, 0, 40)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassProperty10.ts, 0, 70)) @dec() prop; >dec() : (target: any, propertyKey: string) => void ->dec : () => (target: any, propertyKey: string) => void ->prop : any +>dec : () => (target: any, propertyKey: string) => void, Symbol(dec, Decl(decoratorOnClassProperty10.ts, 0, 0)) +>prop : any, Symbol(prop, Decl(decoratorOnClassProperty10.ts, 2, 9)) } diff --git a/tests/baselines/reference/decoratorOnClassProperty11.types b/tests/baselines/reference/decoratorOnClassProperty11.types index 5377e53c31c..036a01a7f03 100644 --- a/tests/baselines/reference/decoratorOnClassProperty11.types +++ b/tests/baselines/reference/decoratorOnClassProperty11.types @@ -1,14 +1,14 @@ === tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts === declare function dec(): (target: any, propertyKey: string) => void; ->dec : () => (target: any, propertyKey: string) => void ->T : T ->target : any ->propertyKey : string +>dec : () => (target: any, propertyKey: string) => void, Symbol(dec, Decl(decoratorOnClassProperty11.ts, 0, 0)) +>T : T, Symbol(T, Decl(decoratorOnClassProperty11.ts, 0, 25)) +>target : any, Symbol(target, Decl(decoratorOnClassProperty11.ts, 0, 28)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassProperty11.ts, 0, 40)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassProperty11.ts, 0, 70)) @dec prop; ->dec : unknown ->prop : any +>dec : () => (target: any, propertyKey: string) => void, Symbol(dec, Decl(decoratorOnClassProperty11.ts, 0, 0)) +>prop : any, Symbol(prop, Decl(decoratorOnClassProperty11.ts, 2, 9)) } diff --git a/tests/baselines/reference/decoratorOnClassProperty2.types b/tests/baselines/reference/decoratorOnClassProperty2.types index 2d5c9fe07d7..7cb2705a4c1 100644 --- a/tests/baselines/reference/decoratorOnClassProperty2.types +++ b/tests/baselines/reference/decoratorOnClassProperty2.types @@ -1,13 +1,13 @@ === tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts === declare function dec(target: any, propertyKey: string): void; ->dec : (target: any, propertyKey: string) => void ->target : any ->propertyKey : string +>dec : (target: any, propertyKey: string) => void, Symbol(dec, Decl(decoratorOnClassProperty2.ts, 0, 0)) +>target : any, Symbol(target, Decl(decoratorOnClassProperty2.ts, 0, 21)) +>propertyKey : string, Symbol(propertyKey, Decl(decoratorOnClassProperty2.ts, 0, 33)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassProperty2.ts, 0, 61)) @dec public prop; ->dec : unknown ->prop : any +>dec : (target: any, propertyKey: string) => void, Symbol(dec, Decl(decoratorOnClassProperty2.ts, 0, 0)) +>prop : any, Symbol(prop, Decl(decoratorOnClassProperty2.ts, 2, 9)) } diff --git a/tests/baselines/reference/decoratorOnClassProperty3.errors.txt b/tests/baselines/reference/decoratorOnClassProperty3.errors.txt index a6321c55426..12d0efb78d7 100644 --- a/tests/baselines/reference/decoratorOnClassProperty3.errors.txt +++ b/tests/baselines/reference/decoratorOnClassProperty3.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts(4,5): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. +tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts(4,12): error TS1005: ';' expected. ==== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts (1 errors) ==== @@ -6,6 +6,6 @@ tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts(4 class C { public @dec prop; - ~~~~~~ -!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. + ~ +!!! error TS1005: ';' expected. } \ No newline at end of file diff --git a/tests/baselines/reference/decoratorOnClassProperty6.types b/tests/baselines/reference/decoratorOnClassProperty6.types index 2c8c41abf78..98f40a77f7d 100644 --- a/tests/baselines/reference/decoratorOnClassProperty6.types +++ b/tests/baselines/reference/decoratorOnClassProperty6.types @@ -1,13 +1,13 @@ === tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts === declare function dec(target: Function): void; ->dec : (target: Function) => void ->target : Function ->Function : Function +>dec : (target: Function) => void, Symbol(dec, Decl(decoratorOnClassProperty6.ts, 0, 0)) +>target : Function, Symbol(target, Decl(decoratorOnClassProperty6.ts, 0, 21)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) class C { ->C : C +>C : C, Symbol(C, Decl(decoratorOnClassProperty6.ts, 0, 45)) @dec prop; ->dec : unknown ->prop : any +>dec : (target: Function) => void, Symbol(dec, Decl(decoratorOnClassProperty6.ts, 0, 0)) +>prop : any, Symbol(prop, Decl(decoratorOnClassProperty6.ts, 2, 9)) } diff --git a/tests/baselines/reference/decrementOperatorWithAnyOtherType.types b/tests/baselines/reference/decrementOperatorWithAnyOtherType.types index ab21dd9db5c..2c06839a9aa 100644 --- a/tests/baselines/reference/decrementOperatorWithAnyOtherType.types +++ b/tests/baselines/reference/decrementOperatorWithAnyOtherType.types @@ -2,190 +2,198 @@ // -- operator on any type var ANY: any; ->ANY : any +>ANY : any, Symbol(ANY, Decl(decrementOperatorWithAnyOtherType.ts, 2, 3)) var ANY1; ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(decrementOperatorWithAnyOtherType.ts, 3, 3)) var ANY2: any[] = ["", ""]; ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(decrementOperatorWithAnyOtherType.ts, 4, 3)) >["", ""] : string[] +>"" : string +>"" : string var obj = {x:1,y:null}; ->obj : { x: number; y: any; } +>obj : { x: number; y: any; }, Symbol(obj, Decl(decrementOperatorWithAnyOtherType.ts, 5, 3)) >{x:1,y:null} : { x: number; y: null; } ->x : number ->y : null +>x : number, Symbol(x, Decl(decrementOperatorWithAnyOtherType.ts, 5, 11)) +>1 : number +>y : null, Symbol(y, Decl(decrementOperatorWithAnyOtherType.ts, 5, 15)) +>null : null class A { ->A : A +>A : A, Symbol(A, Decl(decrementOperatorWithAnyOtherType.ts, 5, 23)) public a: any; ->a : any +>a : any, Symbol(a, Decl(decrementOperatorWithAnyOtherType.ts, 6, 9)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(decrementOperatorWithAnyOtherType.ts, 8, 1)) export var n: any; ->n : any +>n : any, Symbol(n, Decl(decrementOperatorWithAnyOtherType.ts, 10, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(decrementOperatorWithAnyOtherType.ts, 12, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(decrementOperatorWithAnyOtherType.ts, 5, 23)) // any type var var ResultIsNumber1 = --ANY; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(decrementOperatorWithAnyOtherType.ts, 15, 3)) >--ANY : number ->ANY : any +>ANY : any, Symbol(ANY, Decl(decrementOperatorWithAnyOtherType.ts, 2, 3)) var ResultIsNumber2 = --ANY1; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(decrementOperatorWithAnyOtherType.ts, 16, 3)) >--ANY1 : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(decrementOperatorWithAnyOtherType.ts, 3, 3)) var ResultIsNumber3 = ANY1--; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(decrementOperatorWithAnyOtherType.ts, 18, 3)) >ANY1-- : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(decrementOperatorWithAnyOtherType.ts, 3, 3)) var ResultIsNumber4 = ANY1--; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(decrementOperatorWithAnyOtherType.ts, 19, 3)) >ANY1-- : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(decrementOperatorWithAnyOtherType.ts, 3, 3)) // expressions var ResultIsNumber5 = --ANY2[0]; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(decrementOperatorWithAnyOtherType.ts, 22, 3)) >--ANY2[0] : number >ANY2[0] : any ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(decrementOperatorWithAnyOtherType.ts, 4, 3)) +>0 : number var ResultIsNumber6 = --obj.x; ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(decrementOperatorWithAnyOtherType.ts, 23, 3)) >--obj.x : number ->obj.x : number ->obj : { x: number; y: any; } ->x : number +>obj.x : number, Symbol(x, Decl(decrementOperatorWithAnyOtherType.ts, 5, 11)) +>obj : { x: number; y: any; }, Symbol(obj, Decl(decrementOperatorWithAnyOtherType.ts, 5, 3)) +>x : number, Symbol(x, Decl(decrementOperatorWithAnyOtherType.ts, 5, 11)) var ResultIsNumber7 = --obj.y; ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(decrementOperatorWithAnyOtherType.ts, 24, 3)) >--obj.y : number ->obj.y : any ->obj : { x: number; y: any; } ->y : any +>obj.y : any, Symbol(y, Decl(decrementOperatorWithAnyOtherType.ts, 5, 15)) +>obj : { x: number; y: any; }, Symbol(obj, Decl(decrementOperatorWithAnyOtherType.ts, 5, 3)) +>y : any, Symbol(y, Decl(decrementOperatorWithAnyOtherType.ts, 5, 15)) var ResultIsNumber8 = --objA.a; ->ResultIsNumber8 : number +>ResultIsNumber8 : number, Symbol(ResultIsNumber8, Decl(decrementOperatorWithAnyOtherType.ts, 25, 3)) >--objA.a : number ->objA.a : any ->objA : A ->a : any +>objA.a : any, Symbol(A.a, Decl(decrementOperatorWithAnyOtherType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(decrementOperatorWithAnyOtherType.ts, 12, 3)) +>a : any, Symbol(A.a, Decl(decrementOperatorWithAnyOtherType.ts, 6, 9)) var ResultIsNumber = --M.n; ->ResultIsNumber : number +>ResultIsNumber : number, Symbol(ResultIsNumber, Decl(decrementOperatorWithAnyOtherType.ts, 26, 3)) >--M.n : number ->M.n : any ->M : typeof M ->n : any +>M.n : any, Symbol(M.n, Decl(decrementOperatorWithAnyOtherType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(decrementOperatorWithAnyOtherType.ts, 8, 1)) +>n : any, Symbol(M.n, Decl(decrementOperatorWithAnyOtherType.ts, 10, 14)) var ResultIsNumber9 = ANY2[0]--; ->ResultIsNumber9 : number +>ResultIsNumber9 : number, Symbol(ResultIsNumber9, Decl(decrementOperatorWithAnyOtherType.ts, 28, 3)) >ANY2[0]-- : number >ANY2[0] : any ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(decrementOperatorWithAnyOtherType.ts, 4, 3)) +>0 : number var ResultIsNumber10 = obj.x--; ->ResultIsNumber10 : number +>ResultIsNumber10 : number, Symbol(ResultIsNumber10, Decl(decrementOperatorWithAnyOtherType.ts, 29, 3)) >obj.x-- : number ->obj.x : number ->obj : { x: number; y: any; } ->x : number +>obj.x : number, Symbol(x, Decl(decrementOperatorWithAnyOtherType.ts, 5, 11)) +>obj : { x: number; y: any; }, Symbol(obj, Decl(decrementOperatorWithAnyOtherType.ts, 5, 3)) +>x : number, Symbol(x, Decl(decrementOperatorWithAnyOtherType.ts, 5, 11)) var ResultIsNumber11 = obj.y--; ->ResultIsNumber11 : number +>ResultIsNumber11 : number, Symbol(ResultIsNumber11, Decl(decrementOperatorWithAnyOtherType.ts, 30, 3)) >obj.y-- : number ->obj.y : any ->obj : { x: number; y: any; } ->y : any +>obj.y : any, Symbol(y, Decl(decrementOperatorWithAnyOtherType.ts, 5, 15)) +>obj : { x: number; y: any; }, Symbol(obj, Decl(decrementOperatorWithAnyOtherType.ts, 5, 3)) +>y : any, Symbol(y, Decl(decrementOperatorWithAnyOtherType.ts, 5, 15)) var ResultIsNumber12 = objA.a--; ->ResultIsNumber12 : number +>ResultIsNumber12 : number, Symbol(ResultIsNumber12, Decl(decrementOperatorWithAnyOtherType.ts, 31, 3)) >objA.a-- : number ->objA.a : any ->objA : A ->a : any +>objA.a : any, Symbol(A.a, Decl(decrementOperatorWithAnyOtherType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(decrementOperatorWithAnyOtherType.ts, 12, 3)) +>a : any, Symbol(A.a, Decl(decrementOperatorWithAnyOtherType.ts, 6, 9)) var ResultIsNumber13 = M.n--; ->ResultIsNumber13 : number +>ResultIsNumber13 : number, Symbol(ResultIsNumber13, Decl(decrementOperatorWithAnyOtherType.ts, 32, 3)) >M.n-- : number ->M.n : any ->M : typeof M ->n : any +>M.n : any, Symbol(M.n, Decl(decrementOperatorWithAnyOtherType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(decrementOperatorWithAnyOtherType.ts, 8, 1)) +>n : any, Symbol(M.n, Decl(decrementOperatorWithAnyOtherType.ts, 10, 14)) // miss assignment opertors --ANY; >--ANY : number ->ANY : any +>ANY : any, Symbol(ANY, Decl(decrementOperatorWithAnyOtherType.ts, 2, 3)) --ANY1; >--ANY1 : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(decrementOperatorWithAnyOtherType.ts, 3, 3)) --ANY2[0]; >--ANY2[0] : number >ANY2[0] : any ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(decrementOperatorWithAnyOtherType.ts, 4, 3)) +>0 : number --ANY, --ANY1; >--ANY, --ANY1 : number >--ANY : number ->ANY : any +>ANY : any, Symbol(ANY, Decl(decrementOperatorWithAnyOtherType.ts, 2, 3)) >--ANY1 : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(decrementOperatorWithAnyOtherType.ts, 3, 3)) --objA.a; >--objA.a : number ->objA.a : any ->objA : A ->a : any +>objA.a : any, Symbol(A.a, Decl(decrementOperatorWithAnyOtherType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(decrementOperatorWithAnyOtherType.ts, 12, 3)) +>a : any, Symbol(A.a, Decl(decrementOperatorWithAnyOtherType.ts, 6, 9)) --M.n; >--M.n : number ->M.n : any ->M : typeof M ->n : any +>M.n : any, Symbol(M.n, Decl(decrementOperatorWithAnyOtherType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(decrementOperatorWithAnyOtherType.ts, 8, 1)) +>n : any, Symbol(M.n, Decl(decrementOperatorWithAnyOtherType.ts, 10, 14)) ANY--; >ANY-- : number ->ANY : any +>ANY : any, Symbol(ANY, Decl(decrementOperatorWithAnyOtherType.ts, 2, 3)) ANY1--; >ANY1-- : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(decrementOperatorWithAnyOtherType.ts, 3, 3)) ANY2[0]--; >ANY2[0]-- : number >ANY2[0] : any ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(decrementOperatorWithAnyOtherType.ts, 4, 3)) +>0 : number ANY--, ANY1--; >ANY--, ANY1-- : number >ANY-- : number ->ANY : any +>ANY : any, Symbol(ANY, Decl(decrementOperatorWithAnyOtherType.ts, 2, 3)) >ANY1-- : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(decrementOperatorWithAnyOtherType.ts, 3, 3)) objA.a--; >objA.a-- : number ->objA.a : any ->objA : A ->a : any +>objA.a : any, Symbol(A.a, Decl(decrementOperatorWithAnyOtherType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(decrementOperatorWithAnyOtherType.ts, 12, 3)) +>a : any, Symbol(A.a, Decl(decrementOperatorWithAnyOtherType.ts, 6, 9)) M.n--; >M.n-- : number ->M.n : any ->M : typeof M ->n : any +>M.n : any, Symbol(M.n, Decl(decrementOperatorWithAnyOtherType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(decrementOperatorWithAnyOtherType.ts, 8, 1)) +>n : any, Symbol(M.n, Decl(decrementOperatorWithAnyOtherType.ts, 10, 14)) diff --git a/tests/baselines/reference/decrementOperatorWithNumberType.types b/tests/baselines/reference/decrementOperatorWithNumberType.types index d619db84e46..1b187016be7 100644 --- a/tests/baselines/reference/decrementOperatorWithNumberType.types +++ b/tests/baselines/reference/decrementOperatorWithNumberType.types @@ -1,137 +1,142 @@ === tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithNumberType.ts === // -- operator on number type var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(decrementOperatorWithNumberType.ts, 1, 3)) var NUMBER1: number[] = [1, 2]; ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(decrementOperatorWithNumberType.ts, 2, 3)) >[1, 2] : number[] +>1 : number +>2 : number class A { ->A : A +>A : A, Symbol(A, Decl(decrementOperatorWithNumberType.ts, 2, 31)) public a: number; ->a : number +>a : number, Symbol(a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(decrementOperatorWithNumberType.ts, 6, 1)) export var n: number; ->n : number +>n : number, Symbol(n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(decrementOperatorWithNumberType.ts, 11, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(decrementOperatorWithNumberType.ts, 2, 31)) // number type var var ResultIsNumber1 = --NUMBER; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(decrementOperatorWithNumberType.ts, 14, 3)) >--NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(decrementOperatorWithNumberType.ts, 1, 3)) var ResultIsNumber2 = NUMBER--; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(decrementOperatorWithNumberType.ts, 16, 3)) >NUMBER-- : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(decrementOperatorWithNumberType.ts, 1, 3)) // expressions var ResultIsNumber3 = --objA.a; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(decrementOperatorWithNumberType.ts, 19, 3)) >--objA.a : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) +>objA : A, Symbol(objA, Decl(decrementOperatorWithNumberType.ts, 11, 3)) +>a : number, Symbol(A.a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) var ResultIsNumber4 = --M.n; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(decrementOperatorWithNumberType.ts, 20, 3)) >--M.n : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) +>M : typeof M, Symbol(M, Decl(decrementOperatorWithNumberType.ts, 6, 1)) +>n : number, Symbol(M.n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) var ResultIsNumber5 = objA.a--; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(decrementOperatorWithNumberType.ts, 22, 3)) >objA.a-- : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) +>objA : A, Symbol(objA, Decl(decrementOperatorWithNumberType.ts, 11, 3)) +>a : number, Symbol(A.a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) var ResultIsNumber6 = M.n--; ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(decrementOperatorWithNumberType.ts, 23, 3)) >M.n-- : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) +>M : typeof M, Symbol(M, Decl(decrementOperatorWithNumberType.ts, 6, 1)) +>n : number, Symbol(M.n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) var ResultIsNumber7 = NUMBER1[0]--; ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(decrementOperatorWithNumberType.ts, 24, 3)) >NUMBER1[0]-- : number >NUMBER1[0] : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(decrementOperatorWithNumberType.ts, 2, 3)) +>0 : number // miss assignment operators --NUMBER; >--NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(decrementOperatorWithNumberType.ts, 1, 3)) --NUMBER1[0]; >--NUMBER1[0] : number >NUMBER1[0] : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(decrementOperatorWithNumberType.ts, 2, 3)) +>0 : number --objA.a; >--objA.a : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) +>objA : A, Symbol(objA, Decl(decrementOperatorWithNumberType.ts, 11, 3)) +>a : number, Symbol(A.a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) --M.n; >--M.n : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) +>M : typeof M, Symbol(M, Decl(decrementOperatorWithNumberType.ts, 6, 1)) +>n : number, Symbol(M.n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) --objA.a, M.n; >--objA.a, M.n : number >--objA.a : number ->objA.a : number ->objA : A ->a : number ->M.n : number ->M : typeof M ->n : number +>objA.a : number, Symbol(A.a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) +>objA : A, Symbol(objA, Decl(decrementOperatorWithNumberType.ts, 11, 3)) +>a : number, Symbol(A.a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) +>M.n : number, Symbol(M.n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) +>M : typeof M, Symbol(M, Decl(decrementOperatorWithNumberType.ts, 6, 1)) +>n : number, Symbol(M.n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) NUMBER--; >NUMBER-- : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(decrementOperatorWithNumberType.ts, 1, 3)) NUMBER1[0]--; >NUMBER1[0]-- : number >NUMBER1[0] : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(decrementOperatorWithNumberType.ts, 2, 3)) +>0 : number objA.a--; >objA.a-- : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) +>objA : A, Symbol(objA, Decl(decrementOperatorWithNumberType.ts, 11, 3)) +>a : number, Symbol(A.a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) M.n--; >M.n-- : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) +>M : typeof M, Symbol(M, Decl(decrementOperatorWithNumberType.ts, 6, 1)) +>n : number, Symbol(M.n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) objA.a--, M.n--; >objA.a--, M.n-- : number >objA.a-- : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) +>objA : A, Symbol(objA, Decl(decrementOperatorWithNumberType.ts, 11, 3)) +>a : number, Symbol(A.a, Decl(decrementOperatorWithNumberType.ts, 4, 9)) >M.n-- : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) +>M : typeof M, Symbol(M, Decl(decrementOperatorWithNumberType.ts, 6, 1)) +>n : number, Symbol(M.n, Decl(decrementOperatorWithNumberType.ts, 8, 14)) diff --git a/tests/baselines/reference/defaultIndexProps1.types b/tests/baselines/reference/defaultIndexProps1.types index 9bb9c4a32c2..44e3ca6594c 100644 --- a/tests/baselines/reference/defaultIndexProps1.types +++ b/tests/baselines/reference/defaultIndexProps1.types @@ -1,28 +1,32 @@ === tests/cases/compiler/defaultIndexProps1.ts === class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(defaultIndexProps1.ts, 0, 0)) public v = "Yo"; ->v : string +>v : string, Symbol(v, Decl(defaultIndexProps1.ts, 0, 11)) +>"Yo" : string } var f = new Foo(); ->f : Foo +>f : Foo, Symbol(f, Decl(defaultIndexProps1.ts, 4, 3)) >new Foo() : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(defaultIndexProps1.ts, 0, 0)) var q = f["v"]; ->q : string +>q : string, Symbol(q, Decl(defaultIndexProps1.ts, 6, 3)) >f["v"] : string ->f : Foo +>f : Foo, Symbol(f, Decl(defaultIndexProps1.ts, 4, 3)) +>"v" : string, Symbol(Foo.v, Decl(defaultIndexProps1.ts, 0, 11)) var o = {v:"Yo2"}; ->o : { v: string; } +>o : { v: string; }, Symbol(o, Decl(defaultIndexProps1.ts, 8, 3)) >{v:"Yo2"} : { v: string; } ->v : string +>v : string, Symbol(v, Decl(defaultIndexProps1.ts, 8, 9)) +>"Yo2" : string var q2 = o["v"]; ->q2 : string +>q2 : string, Symbol(q2, Decl(defaultIndexProps1.ts, 10, 3)) >o["v"] : string ->o : { v: string; } +>o : { v: string; }, Symbol(o, Decl(defaultIndexProps1.ts, 8, 3)) +>"v" : string, Symbol(v, Decl(defaultIndexProps1.ts, 8, 9)) diff --git a/tests/baselines/reference/defaultIndexProps2.types b/tests/baselines/reference/defaultIndexProps2.types index 26850bd1456..3e549d9bdea 100644 --- a/tests/baselines/reference/defaultIndexProps2.types +++ b/tests/baselines/reference/defaultIndexProps2.types @@ -1,29 +1,35 @@ === tests/cases/compiler/defaultIndexProps2.ts === class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(defaultIndexProps2.ts, 0, 0)) public v = "Yo"; ->v : string +>v : string, Symbol(v, Decl(defaultIndexProps2.ts, 0, 11)) +>"Yo" : string } var f = new Foo(); ->f : Foo +>f : Foo, Symbol(f, Decl(defaultIndexProps2.ts, 4, 3)) >new Foo() : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(defaultIndexProps2.ts, 0, 0)) // WScript.Echo(f[0]); var o = {v:"Yo2"}; ->o : { v: string; } +>o : { v: string; }, Symbol(o, Decl(defaultIndexProps2.ts, 8, 3)) >{v:"Yo2"} : { v: string; } ->v : string +>v : string, Symbol(v, Decl(defaultIndexProps2.ts, 8, 9)) +>"Yo2" : string // WScript.Echo(o[0]); 1[0]; >1[0] : any +>1 : number +>0 : number var q = "s"[0]; ->q : string +>q : string, Symbol(q, Decl(defaultIndexProps2.ts, 13, 3)) >"s"[0] : string +>"s" : string +>0 : number diff --git a/tests/baselines/reference/deleteOperatorWithBooleanType.types b/tests/baselines/reference/deleteOperatorWithBooleanType.types index fa8c375b0a5..9c52742e72c 100644 --- a/tests/baselines/reference/deleteOperatorWithBooleanType.types +++ b/tests/baselines/reference/deleteOperatorWithBooleanType.types @@ -1,112 +1,120 @@ === tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithBooleanType.ts === // delete operator on boolean type var BOOLEAN: boolean; ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(deleteOperatorWithBooleanType.ts, 1, 3)) function foo(): boolean { return true; } ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(deleteOperatorWithBooleanType.ts, 1, 21)) +>true : boolean class A { ->A : A +>A : A, Symbol(A, Decl(deleteOperatorWithBooleanType.ts, 3, 40)) public a: boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(deleteOperatorWithBooleanType.ts, 5, 9)) static foo() { return false; } ->foo : () => boolean +>foo : () => boolean, Symbol(A.foo, Decl(deleteOperatorWithBooleanType.ts, 6, 22)) +>false : boolean } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(deleteOperatorWithBooleanType.ts, 8, 1)) export var n: boolean; ->n : boolean +>n : boolean, Symbol(n, Decl(deleteOperatorWithBooleanType.ts, 10, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(deleteOperatorWithBooleanType.ts, 13, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(deleteOperatorWithBooleanType.ts, 3, 40)) // boolean type var var ResultIsBoolean1 = delete BOOLEAN; ->ResultIsBoolean1 : boolean +>ResultIsBoolean1 : boolean, Symbol(ResultIsBoolean1, Decl(deleteOperatorWithBooleanType.ts, 16, 3)) >delete BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(deleteOperatorWithBooleanType.ts, 1, 3)) // boolean type literal var ResultIsBoolean2 = delete true; ->ResultIsBoolean2 : boolean +>ResultIsBoolean2 : boolean, Symbol(ResultIsBoolean2, Decl(deleteOperatorWithBooleanType.ts, 19, 3)) >delete true : boolean +>true : boolean var ResultIsBoolean3 = delete { x: true, y: false }; ->ResultIsBoolean3 : boolean +>ResultIsBoolean3 : boolean, Symbol(ResultIsBoolean3, Decl(deleteOperatorWithBooleanType.ts, 20, 3)) >delete { x: true, y: false } : boolean >{ x: true, y: false } : { x: boolean; y: boolean; } ->x : boolean ->y : boolean +>x : boolean, Symbol(x, Decl(deleteOperatorWithBooleanType.ts, 20, 31)) +>true : boolean +>y : boolean, Symbol(y, Decl(deleteOperatorWithBooleanType.ts, 20, 40)) +>false : boolean // boolean type expressions var ResultIsBoolean4 = delete objA.a; ->ResultIsBoolean4 : boolean +>ResultIsBoolean4 : boolean, Symbol(ResultIsBoolean4, Decl(deleteOperatorWithBooleanType.ts, 23, 3)) >delete objA.a : boolean ->objA.a : boolean ->objA : A ->a : boolean +>objA.a : boolean, Symbol(A.a, Decl(deleteOperatorWithBooleanType.ts, 5, 9)) +>objA : A, Symbol(objA, Decl(deleteOperatorWithBooleanType.ts, 13, 3)) +>a : boolean, Symbol(A.a, Decl(deleteOperatorWithBooleanType.ts, 5, 9)) var ResultIsBoolean5 = delete M.n; ->ResultIsBoolean5 : boolean +>ResultIsBoolean5 : boolean, Symbol(ResultIsBoolean5, Decl(deleteOperatorWithBooleanType.ts, 24, 3)) >delete M.n : boolean ->M.n : boolean ->M : typeof M ->n : boolean +>M.n : boolean, Symbol(M.n, Decl(deleteOperatorWithBooleanType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(deleteOperatorWithBooleanType.ts, 8, 1)) +>n : boolean, Symbol(M.n, Decl(deleteOperatorWithBooleanType.ts, 10, 14)) var ResultIsBoolean6 = delete foo(); ->ResultIsBoolean6 : boolean +>ResultIsBoolean6 : boolean, Symbol(ResultIsBoolean6, Decl(deleteOperatorWithBooleanType.ts, 25, 3)) >delete foo() : boolean >foo() : boolean ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(deleteOperatorWithBooleanType.ts, 1, 21)) var ResultIsBoolean7 = delete A.foo(); ->ResultIsBoolean7 : boolean +>ResultIsBoolean7 : boolean, Symbol(ResultIsBoolean7, Decl(deleteOperatorWithBooleanType.ts, 26, 3)) >delete A.foo() : boolean >A.foo() : boolean ->A.foo : () => boolean ->A : typeof A ->foo : () => boolean +>A.foo : () => boolean, Symbol(A.foo, Decl(deleteOperatorWithBooleanType.ts, 6, 22)) +>A : typeof A, Symbol(A, Decl(deleteOperatorWithBooleanType.ts, 3, 40)) +>foo : () => boolean, Symbol(A.foo, Decl(deleteOperatorWithBooleanType.ts, 6, 22)) // multiple delete operator var ResultIsBoolean8 = delete delete BOOLEAN; ->ResultIsBoolean8 : boolean +>ResultIsBoolean8 : boolean, Symbol(ResultIsBoolean8, Decl(deleteOperatorWithBooleanType.ts, 29, 3)) >delete delete BOOLEAN : boolean >delete BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(deleteOperatorWithBooleanType.ts, 1, 3)) // miss assignment operators delete true; >delete true : boolean +>true : boolean delete BOOLEAN; >delete BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(deleteOperatorWithBooleanType.ts, 1, 3)) delete foo(); >delete foo() : boolean >foo() : boolean ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(deleteOperatorWithBooleanType.ts, 1, 21)) delete true, false; >delete true, false : boolean >delete true : boolean +>true : boolean +>false : boolean delete objA.a; >delete objA.a : boolean ->objA.a : boolean ->objA : A ->a : boolean +>objA.a : boolean, Symbol(A.a, Decl(deleteOperatorWithBooleanType.ts, 5, 9)) +>objA : A, Symbol(objA, Decl(deleteOperatorWithBooleanType.ts, 13, 3)) +>a : boolean, Symbol(A.a, Decl(deleteOperatorWithBooleanType.ts, 5, 9)) delete M.n; >delete M.n : boolean ->M.n : boolean ->M : typeof M ->n : boolean +>M.n : boolean, Symbol(M.n, Decl(deleteOperatorWithBooleanType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(deleteOperatorWithBooleanType.ts, 8, 1)) +>n : boolean, Symbol(M.n, Decl(deleteOperatorWithBooleanType.ts, 10, 14)) diff --git a/tests/baselines/reference/deleteOperatorWithEnumType.types b/tests/baselines/reference/deleteOperatorWithEnumType.types index e436ac3373f..d1609fe7a1d 100644 --- a/tests/baselines/reference/deleteOperatorWithEnumType.types +++ b/tests/baselines/reference/deleteOperatorWithEnumType.types @@ -2,78 +2,83 @@ // delete operator on enum type enum ENUM { }; ->ENUM : ENUM +>ENUM : ENUM, Symbol(ENUM, Decl(deleteOperatorWithEnumType.ts, 0, 0)) enum ENUM1 { A, B, "" }; ->ENUM1 : ENUM1 ->A : ENUM1 ->B : ENUM1 +>ENUM1 : ENUM1, Symbol(ENUM1, Decl(deleteOperatorWithEnumType.ts, 2, 14)) +>A : ENUM1, Symbol(ENUM1.A, Decl(deleteOperatorWithEnumType.ts, 3, 12)) +>B : ENUM1, Symbol(ENUM1.B, Decl(deleteOperatorWithEnumType.ts, 3, 15)) // enum type var var ResultIsBoolean1 = delete ENUM; ->ResultIsBoolean1 : boolean +>ResultIsBoolean1 : boolean, Symbol(ResultIsBoolean1, Decl(deleteOperatorWithEnumType.ts, 6, 3)) >delete ENUM : boolean ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(deleteOperatorWithEnumType.ts, 0, 0)) var ResultIsBoolean2 = delete ENUM1; ->ResultIsBoolean2 : boolean +>ResultIsBoolean2 : boolean, Symbol(ResultIsBoolean2, Decl(deleteOperatorWithEnumType.ts, 7, 3)) >delete ENUM1 : boolean ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(deleteOperatorWithEnumType.ts, 2, 14)) // enum type expressions var ResultIsBoolean3 = delete ENUM1["A"]; ->ResultIsBoolean3 : boolean +>ResultIsBoolean3 : boolean, Symbol(ResultIsBoolean3, Decl(deleteOperatorWithEnumType.ts, 10, 3)) >delete ENUM1["A"] : boolean >ENUM1["A"] : ENUM1 ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(deleteOperatorWithEnumType.ts, 2, 14)) +>"A" : string, Symbol(ENUM1.A, Decl(deleteOperatorWithEnumType.ts, 3, 12)) var ResultIsBoolean4 = delete (ENUM[0] + ENUM1["B"]); ->ResultIsBoolean4 : boolean +>ResultIsBoolean4 : boolean, Symbol(ResultIsBoolean4, Decl(deleteOperatorWithEnumType.ts, 11, 3)) >delete (ENUM[0] + ENUM1["B"]) : boolean >(ENUM[0] + ENUM1["B"]) : string >ENUM[0] + ENUM1["B"] : string >ENUM[0] : string ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(deleteOperatorWithEnumType.ts, 0, 0)) +>0 : number >ENUM1["B"] : ENUM1 ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(deleteOperatorWithEnumType.ts, 2, 14)) +>"B" : string, Symbol(ENUM1.B, Decl(deleteOperatorWithEnumType.ts, 3, 15)) // multiple delete operators var ResultIsBoolean5 = delete delete ENUM; ->ResultIsBoolean5 : boolean +>ResultIsBoolean5 : boolean, Symbol(ResultIsBoolean5, Decl(deleteOperatorWithEnumType.ts, 14, 3)) >delete delete ENUM : boolean >delete ENUM : boolean ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(deleteOperatorWithEnumType.ts, 0, 0)) var ResultIsBoolean6 = delete delete delete (ENUM[0] + ENUM1["B"]); ->ResultIsBoolean6 : boolean +>ResultIsBoolean6 : boolean, Symbol(ResultIsBoolean6, Decl(deleteOperatorWithEnumType.ts, 15, 3)) >delete delete delete (ENUM[0] + ENUM1["B"]) : boolean >delete delete (ENUM[0] + ENUM1["B"]) : boolean >delete (ENUM[0] + ENUM1["B"]) : boolean >(ENUM[0] + ENUM1["B"]) : string >ENUM[0] + ENUM1["B"] : string >ENUM[0] : string ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(deleteOperatorWithEnumType.ts, 0, 0)) +>0 : number >ENUM1["B"] : ENUM1 ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(deleteOperatorWithEnumType.ts, 2, 14)) +>"B" : string, Symbol(ENUM1.B, Decl(deleteOperatorWithEnumType.ts, 3, 15)) // miss assignment operators delete ENUM; >delete ENUM : boolean ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(deleteOperatorWithEnumType.ts, 0, 0)) delete ENUM1; >delete ENUM1 : boolean ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(deleteOperatorWithEnumType.ts, 2, 14)) delete ENUM1.B; >delete ENUM1.B : boolean ->ENUM1.B : ENUM1 ->ENUM1 : typeof ENUM1 ->B : ENUM1 +>ENUM1.B : ENUM1, Symbol(ENUM1.B, Decl(deleteOperatorWithEnumType.ts, 3, 15)) +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(deleteOperatorWithEnumType.ts, 2, 14)) +>B : ENUM1, Symbol(ENUM1.B, Decl(deleteOperatorWithEnumType.ts, 3, 15)) delete ENUM, ENUM1; >delete ENUM, ENUM1 : typeof ENUM1 >delete ENUM : boolean ->ENUM : typeof ENUM ->ENUM1 : typeof ENUM1 +>ENUM : typeof ENUM, Symbol(ENUM, Decl(deleteOperatorWithEnumType.ts, 0, 0)) +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(deleteOperatorWithEnumType.ts, 2, 14)) diff --git a/tests/baselines/reference/deleteOperatorWithNumberType.types b/tests/baselines/reference/deleteOperatorWithNumberType.types index 542efe04c34..6c467a69131 100644 --- a/tests/baselines/reference/deleteOperatorWithNumberType.types +++ b/tests/baselines/reference/deleteOperatorWithNumberType.types @@ -1,165 +1,175 @@ === tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithNumberType.ts === // delete operator on number type var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(deleteOperatorWithNumberType.ts, 1, 3)) var NUMBER1: number[] = [1, 2]; ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(deleteOperatorWithNumberType.ts, 2, 3)) >[1, 2] : number[] +>1 : number +>2 : number function foo(): number { return 1; } ->foo : () => number +>foo : () => number, Symbol(foo, Decl(deleteOperatorWithNumberType.ts, 2, 31)) +>1 : number class A { ->A : A +>A : A, Symbol(A, Decl(deleteOperatorWithNumberType.ts, 4, 36)) public a: number; ->a : number +>a : number, Symbol(a, Decl(deleteOperatorWithNumberType.ts, 6, 9)) static foo() { return 1; } ->foo : () => number +>foo : () => number, Symbol(A.foo, Decl(deleteOperatorWithNumberType.ts, 7, 21)) +>1 : number } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(deleteOperatorWithNumberType.ts, 9, 1)) export var n: number; ->n : number +>n : number, Symbol(n, Decl(deleteOperatorWithNumberType.ts, 11, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(deleteOperatorWithNumberType.ts, 14, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(deleteOperatorWithNumberType.ts, 4, 36)) // number type var var ResultIsBoolean1 = delete NUMBER; ->ResultIsBoolean1 : boolean +>ResultIsBoolean1 : boolean, Symbol(ResultIsBoolean1, Decl(deleteOperatorWithNumberType.ts, 17, 3)) >delete NUMBER : boolean ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(deleteOperatorWithNumberType.ts, 1, 3)) var ResultIsBoolean2 = delete NUMBER1; ->ResultIsBoolean2 : boolean +>ResultIsBoolean2 : boolean, Symbol(ResultIsBoolean2, Decl(deleteOperatorWithNumberType.ts, 18, 3)) >delete NUMBER1 : boolean ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(deleteOperatorWithNumberType.ts, 2, 3)) // number type literal var ResultIsBoolean3 = delete 1; ->ResultIsBoolean3 : boolean +>ResultIsBoolean3 : boolean, Symbol(ResultIsBoolean3, Decl(deleteOperatorWithNumberType.ts, 21, 3)) >delete 1 : boolean +>1 : number var ResultIsBoolean4 = delete { x: 1, y: 2}; ->ResultIsBoolean4 : boolean +>ResultIsBoolean4 : boolean, Symbol(ResultIsBoolean4, Decl(deleteOperatorWithNumberType.ts, 22, 3)) >delete { x: 1, y: 2} : boolean >{ x: 1, y: 2} : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(deleteOperatorWithNumberType.ts, 22, 31)) +>1 : number +>y : number, Symbol(y, Decl(deleteOperatorWithNumberType.ts, 22, 37)) +>2 : number var ResultIsBoolean5 = delete { x: 1, y: (n: number) => { return n; } }; ->ResultIsBoolean5 : boolean +>ResultIsBoolean5 : boolean, Symbol(ResultIsBoolean5, Decl(deleteOperatorWithNumberType.ts, 23, 3)) >delete { x: 1, y: (n: number) => { return n; } } : boolean >{ x: 1, y: (n: number) => { return n; } } : { x: number; y: (n: number) => number; } ->x : number ->y : (n: number) => number +>x : number, Symbol(x, Decl(deleteOperatorWithNumberType.ts, 23, 31)) +>1 : number +>y : (n: number) => number, Symbol(y, Decl(deleteOperatorWithNumberType.ts, 23, 37)) >(n: number) => { return n; } : (n: number) => number ->n : number ->n : number +>n : number, Symbol(n, Decl(deleteOperatorWithNumberType.ts, 23, 42)) +>n : number, Symbol(n, Decl(deleteOperatorWithNumberType.ts, 23, 42)) // number type expressions var ResultIsBoolean6 = delete objA.a; ->ResultIsBoolean6 : boolean +>ResultIsBoolean6 : boolean, Symbol(ResultIsBoolean6, Decl(deleteOperatorWithNumberType.ts, 26, 3)) >delete objA.a : boolean ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(deleteOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(deleteOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(deleteOperatorWithNumberType.ts, 6, 9)) var ResultIsBoolean7 = delete M.n; ->ResultIsBoolean7 : boolean +>ResultIsBoolean7 : boolean, Symbol(ResultIsBoolean7, Decl(deleteOperatorWithNumberType.ts, 27, 3)) >delete M.n : boolean ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(deleteOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(deleteOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(deleteOperatorWithNumberType.ts, 11, 14)) var ResultIsBoolean8 = delete NUMBER1[0]; ->ResultIsBoolean8 : boolean +>ResultIsBoolean8 : boolean, Symbol(ResultIsBoolean8, Decl(deleteOperatorWithNumberType.ts, 28, 3)) >delete NUMBER1[0] : boolean >NUMBER1[0] : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(deleteOperatorWithNumberType.ts, 2, 3)) +>0 : number var ResultIsBoolean9 = delete foo(); ->ResultIsBoolean9 : boolean +>ResultIsBoolean9 : boolean, Symbol(ResultIsBoolean9, Decl(deleteOperatorWithNumberType.ts, 29, 3)) >delete foo() : boolean >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(deleteOperatorWithNumberType.ts, 2, 31)) var ResultIsBoolean10 = delete A.foo(); ->ResultIsBoolean10 : boolean +>ResultIsBoolean10 : boolean, Symbol(ResultIsBoolean10, Decl(deleteOperatorWithNumberType.ts, 30, 3)) >delete A.foo() : boolean >A.foo() : number ->A.foo : () => number ->A : typeof A ->foo : () => number +>A.foo : () => number, Symbol(A.foo, Decl(deleteOperatorWithNumberType.ts, 7, 21)) +>A : typeof A, Symbol(A, Decl(deleteOperatorWithNumberType.ts, 4, 36)) +>foo : () => number, Symbol(A.foo, Decl(deleteOperatorWithNumberType.ts, 7, 21)) var ResultIsBoolean11 = delete (NUMBER + NUMBER); ->ResultIsBoolean11 : boolean +>ResultIsBoolean11 : boolean, Symbol(ResultIsBoolean11, Decl(deleteOperatorWithNumberType.ts, 31, 3)) >delete (NUMBER + NUMBER) : boolean >(NUMBER + NUMBER) : number >NUMBER + NUMBER : number ->NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(deleteOperatorWithNumberType.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(deleteOperatorWithNumberType.ts, 1, 3)) // multiple delete operator var ResultIsBoolean12 = delete delete NUMBER; ->ResultIsBoolean12 : boolean +>ResultIsBoolean12 : boolean, Symbol(ResultIsBoolean12, Decl(deleteOperatorWithNumberType.ts, 34, 3)) >delete delete NUMBER : boolean >delete NUMBER : boolean ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(deleteOperatorWithNumberType.ts, 1, 3)) var ResultIsBoolean13 = delete delete delete (NUMBER + NUMBER); ->ResultIsBoolean13 : boolean +>ResultIsBoolean13 : boolean, Symbol(ResultIsBoolean13, Decl(deleteOperatorWithNumberType.ts, 35, 3)) >delete delete delete (NUMBER + NUMBER) : boolean >delete delete (NUMBER + NUMBER) : boolean >delete (NUMBER + NUMBER) : boolean >(NUMBER + NUMBER) : number >NUMBER + NUMBER : number ->NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(deleteOperatorWithNumberType.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(deleteOperatorWithNumberType.ts, 1, 3)) // miss assignment operators delete 1; >delete 1 : boolean +>1 : number delete NUMBER; >delete NUMBER : boolean ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(deleteOperatorWithNumberType.ts, 1, 3)) delete NUMBER1; >delete NUMBER1 : boolean ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(deleteOperatorWithNumberType.ts, 2, 3)) delete foo(); >delete foo() : boolean >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(deleteOperatorWithNumberType.ts, 2, 31)) delete objA.a; >delete objA.a : boolean ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(deleteOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(deleteOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(deleteOperatorWithNumberType.ts, 6, 9)) delete M.n; >delete M.n : boolean ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(deleteOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(deleteOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(deleteOperatorWithNumberType.ts, 11, 14)) delete objA.a, M.n; >delete objA.a, M.n : number >delete objA.a : boolean ->objA.a : number ->objA : A ->a : number ->M.n : number ->M : typeof M ->n : number +>objA.a : number, Symbol(A.a, Decl(deleteOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(deleteOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(deleteOperatorWithNumberType.ts, 6, 9)) +>M.n : number, Symbol(M.n, Decl(deleteOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(deleteOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(deleteOperatorWithNumberType.ts, 11, 14)) diff --git a/tests/baselines/reference/deleteOperatorWithStringType.types b/tests/baselines/reference/deleteOperatorWithStringType.types index f86afc39c49..3c1bd6af727 100644 --- a/tests/baselines/reference/deleteOperatorWithStringType.types +++ b/tests/baselines/reference/deleteOperatorWithStringType.types @@ -1,161 +1,172 @@ === tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithStringType.ts === // delete operator on string type var STRING: string; ->STRING : string +>STRING : string, Symbol(STRING, Decl(deleteOperatorWithStringType.ts, 1, 3)) var STRING1: string[] = ["", "abc"]; ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(deleteOperatorWithStringType.ts, 2, 3)) >["", "abc"] : string[] +>"" : string +>"abc" : string function foo(): string { return "abc"; } ->foo : () => string +>foo : () => string, Symbol(foo, Decl(deleteOperatorWithStringType.ts, 2, 36)) +>"abc" : string class A { ->A : A +>A : A, Symbol(A, Decl(deleteOperatorWithStringType.ts, 4, 40)) public a: string; ->a : string +>a : string, Symbol(a, Decl(deleteOperatorWithStringType.ts, 6, 9)) static foo() { return ""; } ->foo : () => string +>foo : () => string, Symbol(A.foo, Decl(deleteOperatorWithStringType.ts, 7, 21)) +>"" : string } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(deleteOperatorWithStringType.ts, 9, 1)) export var n: string; ->n : string +>n : string, Symbol(n, Decl(deleteOperatorWithStringType.ts, 11, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(deleteOperatorWithStringType.ts, 14, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(deleteOperatorWithStringType.ts, 4, 40)) // string type var var ResultIsBoolean1 = delete STRING; ->ResultIsBoolean1 : boolean +>ResultIsBoolean1 : boolean, Symbol(ResultIsBoolean1, Decl(deleteOperatorWithStringType.ts, 17, 3)) >delete STRING : boolean ->STRING : string +>STRING : string, Symbol(STRING, Decl(deleteOperatorWithStringType.ts, 1, 3)) var ResultIsBoolean2 = delete STRING1; ->ResultIsBoolean2 : boolean +>ResultIsBoolean2 : boolean, Symbol(ResultIsBoolean2, Decl(deleteOperatorWithStringType.ts, 18, 3)) >delete STRING1 : boolean ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(deleteOperatorWithStringType.ts, 2, 3)) // string type literal var ResultIsBoolean3 = delete ""; ->ResultIsBoolean3 : boolean +>ResultIsBoolean3 : boolean, Symbol(ResultIsBoolean3, Decl(deleteOperatorWithStringType.ts, 21, 3)) >delete "" : boolean +>"" : string var ResultIsBoolean4 = delete { x: "", y: "" }; ->ResultIsBoolean4 : boolean +>ResultIsBoolean4 : boolean, Symbol(ResultIsBoolean4, Decl(deleteOperatorWithStringType.ts, 22, 3)) >delete { x: "", y: "" } : boolean >{ x: "", y: "" } : { x: string; y: string; } ->x : string ->y : string +>x : string, Symbol(x, Decl(deleteOperatorWithStringType.ts, 22, 31)) +>"" : string +>y : string, Symbol(y, Decl(deleteOperatorWithStringType.ts, 22, 38)) +>"" : string var ResultIsBoolean5 = delete { x: "", y: (s: string) => { return s; } }; ->ResultIsBoolean5 : boolean +>ResultIsBoolean5 : boolean, Symbol(ResultIsBoolean5, Decl(deleteOperatorWithStringType.ts, 23, 3)) >delete { x: "", y: (s: string) => { return s; } } : boolean >{ x: "", y: (s: string) => { return s; } } : { x: string; y: (s: string) => string; } ->x : string ->y : (s: string) => string +>x : string, Symbol(x, Decl(deleteOperatorWithStringType.ts, 23, 31)) +>"" : string +>y : (s: string) => string, Symbol(y, Decl(deleteOperatorWithStringType.ts, 23, 38)) >(s: string) => { return s; } : (s: string) => string ->s : string ->s : string +>s : string, Symbol(s, Decl(deleteOperatorWithStringType.ts, 23, 43)) +>s : string, Symbol(s, Decl(deleteOperatorWithStringType.ts, 23, 43)) // string type expressions var ResultIsBoolean6 = delete objA.a; ->ResultIsBoolean6 : boolean +>ResultIsBoolean6 : boolean, Symbol(ResultIsBoolean6, Decl(deleteOperatorWithStringType.ts, 26, 3)) >delete objA.a : boolean ->objA.a : string ->objA : A ->a : string +>objA.a : string, Symbol(A.a, Decl(deleteOperatorWithStringType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(deleteOperatorWithStringType.ts, 14, 3)) +>a : string, Symbol(A.a, Decl(deleteOperatorWithStringType.ts, 6, 9)) var ResultIsBoolean7 = delete M.n; ->ResultIsBoolean7 : boolean +>ResultIsBoolean7 : boolean, Symbol(ResultIsBoolean7, Decl(deleteOperatorWithStringType.ts, 27, 3)) >delete M.n : boolean ->M.n : string ->M : typeof M ->n : string +>M.n : string, Symbol(M.n, Decl(deleteOperatorWithStringType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(deleteOperatorWithStringType.ts, 9, 1)) +>n : string, Symbol(M.n, Decl(deleteOperatorWithStringType.ts, 11, 14)) var ResultIsBoolean8 = delete STRING1[0]; ->ResultIsBoolean8 : boolean +>ResultIsBoolean8 : boolean, Symbol(ResultIsBoolean8, Decl(deleteOperatorWithStringType.ts, 28, 3)) >delete STRING1[0] : boolean >STRING1[0] : string ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(deleteOperatorWithStringType.ts, 2, 3)) +>0 : number var ResultIsBoolean9 = delete foo(); ->ResultIsBoolean9 : boolean +>ResultIsBoolean9 : boolean, Symbol(ResultIsBoolean9, Decl(deleteOperatorWithStringType.ts, 29, 3)) >delete foo() : boolean >foo() : string ->foo : () => string +>foo : () => string, Symbol(foo, Decl(deleteOperatorWithStringType.ts, 2, 36)) var ResultIsBoolean10 = delete A.foo(); ->ResultIsBoolean10 : boolean +>ResultIsBoolean10 : boolean, Symbol(ResultIsBoolean10, Decl(deleteOperatorWithStringType.ts, 30, 3)) >delete A.foo() : boolean >A.foo() : string ->A.foo : () => string ->A : typeof A ->foo : () => string +>A.foo : () => string, Symbol(A.foo, Decl(deleteOperatorWithStringType.ts, 7, 21)) +>A : typeof A, Symbol(A, Decl(deleteOperatorWithStringType.ts, 4, 40)) +>foo : () => string, Symbol(A.foo, Decl(deleteOperatorWithStringType.ts, 7, 21)) var ResultIsBoolean11 = delete (STRING + STRING); ->ResultIsBoolean11 : boolean +>ResultIsBoolean11 : boolean, Symbol(ResultIsBoolean11, Decl(deleteOperatorWithStringType.ts, 31, 3)) >delete (STRING + STRING) : boolean >(STRING + STRING) : string >STRING + STRING : string ->STRING : string ->STRING : string +>STRING : string, Symbol(STRING, Decl(deleteOperatorWithStringType.ts, 1, 3)) +>STRING : string, Symbol(STRING, Decl(deleteOperatorWithStringType.ts, 1, 3)) var ResultIsBoolean12 = delete STRING.charAt(0); ->ResultIsBoolean12 : boolean +>ResultIsBoolean12 : boolean, Symbol(ResultIsBoolean12, Decl(deleteOperatorWithStringType.ts, 32, 3)) >delete STRING.charAt(0) : boolean >STRING.charAt(0) : string ->STRING.charAt : (pos: number) => string ->STRING : string ->charAt : (pos: number) => string +>STRING.charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>STRING : string, Symbol(STRING, Decl(deleteOperatorWithStringType.ts, 1, 3)) +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number // multiple delete operator var ResultIsBoolean13 = delete delete STRING; ->ResultIsBoolean13 : boolean +>ResultIsBoolean13 : boolean, Symbol(ResultIsBoolean13, Decl(deleteOperatorWithStringType.ts, 35, 3)) >delete delete STRING : boolean >delete STRING : boolean ->STRING : string +>STRING : string, Symbol(STRING, Decl(deleteOperatorWithStringType.ts, 1, 3)) var ResultIsBoolean14 = delete delete delete (STRING + STRING); ->ResultIsBoolean14 : boolean +>ResultIsBoolean14 : boolean, Symbol(ResultIsBoolean14, Decl(deleteOperatorWithStringType.ts, 36, 3)) >delete delete delete (STRING + STRING) : boolean >delete delete (STRING + STRING) : boolean >delete (STRING + STRING) : boolean >(STRING + STRING) : string >STRING + STRING : string ->STRING : string ->STRING : string +>STRING : string, Symbol(STRING, Decl(deleteOperatorWithStringType.ts, 1, 3)) +>STRING : string, Symbol(STRING, Decl(deleteOperatorWithStringType.ts, 1, 3)) // miss assignment operators delete ""; >delete "" : boolean +>"" : string delete STRING; >delete STRING : boolean ->STRING : string +>STRING : string, Symbol(STRING, Decl(deleteOperatorWithStringType.ts, 1, 3)) delete STRING1; >delete STRING1 : boolean ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(deleteOperatorWithStringType.ts, 2, 3)) delete foo(); >delete foo() : boolean >foo() : string ->foo : () => string +>foo : () => string, Symbol(foo, Decl(deleteOperatorWithStringType.ts, 2, 36)) delete objA.a,M.n; >delete objA.a,M.n : string >delete objA.a : boolean ->objA.a : string ->objA : A ->a : string ->M.n : string ->M : typeof M ->n : string +>objA.a : string, Symbol(A.a, Decl(deleteOperatorWithStringType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(deleteOperatorWithStringType.ts, 14, 3)) +>a : string, Symbol(A.a, Decl(deleteOperatorWithStringType.ts, 6, 9)) +>M.n : string, Symbol(M.n, Decl(deleteOperatorWithStringType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(deleteOperatorWithStringType.ts, 9, 1)) +>n : string, Symbol(M.n, Decl(deleteOperatorWithStringType.ts, 11, 14)) diff --git a/tests/baselines/reference/dependencyViaImportAlias.types b/tests/baselines/reference/dependencyViaImportAlias.types index aa4655e44f0..267986c94d2 100644 --- a/tests/baselines/reference/dependencyViaImportAlias.types +++ b/tests/baselines/reference/dependencyViaImportAlias.types @@ -1,16 +1,16 @@ === tests/cases/compiler/B.ts === import a = require('A'); ->a : typeof a +>a : typeof a, Symbol(a, Decl(B.ts, 0, 0)) import A = a.A; ->A : typeof a.A ->a : typeof a ->A : a.A +>A : typeof a.A, Symbol(A, Decl(B.ts, 0, 24)) +>a : typeof a, Symbol(a, Decl(A.ts, 0, 0)) +>A : a.A, Symbol(a.A, Decl(A.ts, 0, 0)) export = A; ->A : a.A +>A : a.A, Symbol(A, Decl(B.ts, 0, 24)) === tests/cases/compiler/A.ts === export class A { ->A : A +>A : A, Symbol(A, Decl(A.ts, 0, 0)) } diff --git a/tests/baselines/reference/deprecatedBool.types b/tests/baselines/reference/deprecatedBool.types index d8c70d56e50..7f559b302c9 100644 --- a/tests/baselines/reference/deprecatedBool.types +++ b/tests/baselines/reference/deprecatedBool.types @@ -1,7 +1,7 @@ === tests/cases/compiler/deprecatedBool.ts === var b4: boolean; ->b4 : boolean +>b4 : boolean, Symbol(b4, Decl(deprecatedBool.ts, 0, 3)) var bool: boolean; ->bool : boolean +>bool : boolean, Symbol(bool, Decl(deprecatedBool.ts, 1, 3)) diff --git a/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.types b/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.types index 97940edc6e7..1046906c9dc 100644 --- a/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.types +++ b/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.types @@ -1,34 +1,34 @@ === tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesIndexersWithAssignmentCompatibility.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(derivedClassOverridesIndexersWithAssignmentCompatibility.ts, 0, 0)) [x: string]: Object; ->x : string ->Object : Object +>x : string, Symbol(x, Decl(derivedClassOverridesIndexersWithAssignmentCompatibility.ts, 1, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) } // ok, use assignment compatibility class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(derivedClassOverridesIndexersWithAssignmentCompatibility.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(derivedClassOverridesIndexersWithAssignmentCompatibility.ts, 0, 0)) [x: string]: any; ->x : string +>x : string, Symbol(x, Decl(derivedClassOverridesIndexersWithAssignmentCompatibility.ts, 6, 5)) } class Base2 { ->Base2 : Base2 +>Base2 : Base2, Symbol(Base2, Decl(derivedClassOverridesIndexersWithAssignmentCompatibility.ts, 7, 1)) [x: number]: Object; ->x : number ->Object : Object +>x : number, Symbol(x, Decl(derivedClassOverridesIndexersWithAssignmentCompatibility.ts, 10, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) } // ok, use assignment compatibility class Derived2 extends Base2 { ->Derived2 : Derived2 ->Base2 : Base2 +>Derived2 : Derived2, Symbol(Derived2, Decl(derivedClassOverridesIndexersWithAssignmentCompatibility.ts, 11, 1)) +>Base2 : Base2, Symbol(Base2, Decl(derivedClassOverridesIndexersWithAssignmentCompatibility.ts, 7, 1)) [x: number]: any; ->x : number +>x : number, Symbol(x, Decl(derivedClassOverridesIndexersWithAssignmentCompatibility.ts, 15, 5)) } diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers.types b/tests/baselines/reference/derivedClassOverridesProtectedMembers.types index 2695cbabe34..897696ff4fb 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers.types +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers.types @@ -1,123 +1,123 @@ === tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers.ts === var x: { foo: string; } ->x : { foo: string; } ->foo : string +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) +>foo : string, Symbol(foo, Decl(derivedClassOverridesProtectedMembers.ts, 1, 8)) var y: { foo: string; bar: string; } ->y : { foo: string; bar: string; } ->foo : string ->bar : string +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 2, 3)) +>foo : string, Symbol(foo, Decl(derivedClassOverridesProtectedMembers.ts, 2, 8)) +>bar : string, Symbol(bar, Decl(derivedClassOverridesProtectedMembers.ts, 2, 21)) class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(derivedClassOverridesProtectedMembers.ts, 2, 36)) protected a: typeof x; ->a : { foo: string; } ->x : { foo: string; } +>a : { foo: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 4, 12)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) protected b(a: typeof x) { } ->b : (a: { foo: string; }) => void ->a : { foo: string; } ->x : { foo: string; } +>b : (a: { foo: string; }) => void, Symbol(b, Decl(derivedClassOverridesProtectedMembers.ts, 5, 26)) +>a : { foo: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 6, 16)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) protected get c() { return x; } ->c : { foo: string; } ->x : { foo: string; } +>c : { foo: string; }, Symbol(c, Decl(derivedClassOverridesProtectedMembers.ts, 6, 32), Decl(derivedClassOverridesProtectedMembers.ts, 7, 35)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) protected set c(v: typeof x) { } ->c : { foo: string; } ->v : { foo: string; } ->x : { foo: string; } +>c : { foo: string; }, Symbol(c, Decl(derivedClassOverridesProtectedMembers.ts, 6, 32), Decl(derivedClassOverridesProtectedMembers.ts, 7, 35)) +>v : { foo: string; }, Symbol(v, Decl(derivedClassOverridesProtectedMembers.ts, 8, 20)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) protected d: (a: typeof x) => void; ->d : (a: { foo: string; }) => void ->a : { foo: string; } ->x : { foo: string; } +>d : (a: { foo: string; }) => void, Symbol(d, Decl(derivedClassOverridesProtectedMembers.ts, 8, 36)) +>a : { foo: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 9, 18)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) protected static r: typeof x; ->r : { foo: string; } ->x : { foo: string; } +>r : { foo: string; }, Symbol(Base.r, Decl(derivedClassOverridesProtectedMembers.ts, 9, 39)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) protected static s(a: typeof x) { } ->s : (a: { foo: string; }) => void ->a : { foo: string; } ->x : { foo: string; } +>s : (a: { foo: string; }) => void, Symbol(Base.s, Decl(derivedClassOverridesProtectedMembers.ts, 11, 33)) +>a : { foo: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 12, 23)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) protected static get t() { return x; } ->t : { foo: string; } ->x : { foo: string; } +>t : { foo: string; }, Symbol(Base.t, Decl(derivedClassOverridesProtectedMembers.ts, 12, 39), Decl(derivedClassOverridesProtectedMembers.ts, 13, 42)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) protected static set t(v: typeof x) { } ->t : { foo: string; } ->v : { foo: string; } ->x : { foo: string; } +>t : { foo: string; }, Symbol(Base.t, Decl(derivedClassOverridesProtectedMembers.ts, 12, 39), Decl(derivedClassOverridesProtectedMembers.ts, 13, 42)) +>v : { foo: string; }, Symbol(v, Decl(derivedClassOverridesProtectedMembers.ts, 14, 27)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) protected static u: (a: typeof x) => void; ->u : (a: { foo: string; }) => void ->a : { foo: string; } ->x : { foo: string; } +>u : (a: { foo: string; }) => void, Symbol(Base.u, Decl(derivedClassOverridesProtectedMembers.ts, 14, 43)) +>a : { foo: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 15, 25)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) constructor(a: typeof x) { } ->a : { foo: string; } ->x : { foo: string; } +>a : { foo: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 17, 16)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(derivedClassOverridesProtectedMembers.ts, 18, 1)) +>Base : Base, Symbol(Base, Decl(derivedClassOverridesProtectedMembers.ts, 2, 36)) protected a: typeof y; ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 20, 28)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 2, 3)) protected b(a: typeof y) { } ->b : (a: { foo: string; bar: string; }) => void ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>b : (a: { foo: string; bar: string; }) => void, Symbol(b, Decl(derivedClassOverridesProtectedMembers.ts, 21, 26)) +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 22, 16)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 2, 3)) protected get c() { return y; } ->c : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>c : { foo: string; bar: string; }, Symbol(c, Decl(derivedClassOverridesProtectedMembers.ts, 22, 32), Decl(derivedClassOverridesProtectedMembers.ts, 23, 35)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 2, 3)) protected set c(v: typeof y) { } ->c : { foo: string; bar: string; } ->v : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>c : { foo: string; bar: string; }, Symbol(c, Decl(derivedClassOverridesProtectedMembers.ts, 22, 32), Decl(derivedClassOverridesProtectedMembers.ts, 23, 35)) +>v : { foo: string; bar: string; }, Symbol(v, Decl(derivedClassOverridesProtectedMembers.ts, 24, 20)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 2, 3)) protected d: (a: typeof y) => void; ->d : (a: { foo: string; bar: string; }) => void ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>d : (a: { foo: string; bar: string; }) => void, Symbol(d, Decl(derivedClassOverridesProtectedMembers.ts, 24, 36)) +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 25, 18)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 2, 3)) protected static r: typeof y; ->r : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>r : { foo: string; bar: string; }, Symbol(Derived.r, Decl(derivedClassOverridesProtectedMembers.ts, 25, 39)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 2, 3)) protected static s(a: typeof y) { } ->s : (a: { foo: string; bar: string; }) => void ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>s : (a: { foo: string; bar: string; }) => void, Symbol(Derived.s, Decl(derivedClassOverridesProtectedMembers.ts, 27, 33)) +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 28, 23)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 2, 3)) protected static get t() { return y; } ->t : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>t : { foo: string; bar: string; }, Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers.ts, 28, 39), Decl(derivedClassOverridesProtectedMembers.ts, 29, 42)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 2, 3)) protected static set t(a: typeof y) { } ->t : { foo: string; bar: string; } ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>t : { foo: string; bar: string; }, Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers.ts, 28, 39), Decl(derivedClassOverridesProtectedMembers.ts, 29, 42)) +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 30, 27)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 2, 3)) protected static u: (a: typeof y) => void; ->u : (a: { foo: string; bar: string; }) => void ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>u : (a: { foo: string; bar: string; }) => void, Symbol(Derived.u, Decl(derivedClassOverridesProtectedMembers.ts, 30, 43)) +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 31, 25)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 2, 3)) constructor(a: typeof y) { super(x) } ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers.ts, 33, 16)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers.ts, 2, 3)) >super(x) : void ->super : typeof Base ->x : { foo: string; } +>super : typeof Base, Symbol(Base, Decl(derivedClassOverridesProtectedMembers.ts, 2, 36)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers.ts, 1, 3)) } diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.types b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.types index 3b6eb55256e..8beb0cf43a1 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.types +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.types @@ -1,236 +1,238 @@ === tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers2.ts === var x: { foo: string; } ->x : { foo: string; } ->foo : string +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) +>foo : string, Symbol(foo, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 8)) var y: { foo: string; bar: string; } ->y : { foo: string; bar: string; } ->foo : string ->bar : string +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) +>foo : string, Symbol(foo, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 8)) +>bar : string, Symbol(bar, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 21)) class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 36)) protected a: typeof x; ->a : { foo: string; } ->x : { foo: string; } +>a : { foo: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 3, 12)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) protected b(a: typeof x) { } ->b : (a: { foo: string; }) => void ->a : { foo: string; } ->x : { foo: string; } +>b : (a: { foo: string; }) => void, Symbol(b, Decl(derivedClassOverridesProtectedMembers2.ts, 4, 26)) +>a : { foo: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 5, 16)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) protected get c() { return x; } ->c : { foo: string; } ->x : { foo: string; } +>c : { foo: string; }, Symbol(c, Decl(derivedClassOverridesProtectedMembers2.ts, 5, 32), Decl(derivedClassOverridesProtectedMembers2.ts, 6, 35)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) protected set c(v: typeof x) { } ->c : { foo: string; } ->v : { foo: string; } ->x : { foo: string; } +>c : { foo: string; }, Symbol(c, Decl(derivedClassOverridesProtectedMembers2.ts, 5, 32), Decl(derivedClassOverridesProtectedMembers2.ts, 6, 35)) +>v : { foo: string; }, Symbol(v, Decl(derivedClassOverridesProtectedMembers2.ts, 7, 20)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) protected d: (a: typeof x) => void ; ->d : (a: { foo: string; }) => void ->a : { foo: string; } ->x : { foo: string; } +>d : (a: { foo: string; }) => void, Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 7, 36)) +>a : { foo: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 8, 18)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) protected static r: typeof x; ->r : { foo: string; } ->x : { foo: string; } +>r : { foo: string; }, Symbol(Base.r, Decl(derivedClassOverridesProtectedMembers2.ts, 8, 40)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) protected static s(a: typeof x) { } ->s : (a: { foo: string; }) => void ->a : { foo: string; } ->x : { foo: string; } +>s : (a: { foo: string; }) => void, Symbol(Base.s, Decl(derivedClassOverridesProtectedMembers2.ts, 10, 33)) +>a : { foo: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 11, 23)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) protected static get t() { return x; } ->t : { foo: string; } ->x : { foo: string; } +>t : { foo: string; }, Symbol(Base.t, Decl(derivedClassOverridesProtectedMembers2.ts, 11, 39), Decl(derivedClassOverridesProtectedMembers2.ts, 12, 42)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) protected static set t(v: typeof x) { } ->t : { foo: string; } ->v : { foo: string; } ->x : { foo: string; } +>t : { foo: string; }, Symbol(Base.t, Decl(derivedClassOverridesProtectedMembers2.ts, 11, 39), Decl(derivedClassOverridesProtectedMembers2.ts, 12, 42)) +>v : { foo: string; }, Symbol(v, Decl(derivedClassOverridesProtectedMembers2.ts, 13, 27)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) protected static u: (a: typeof x) => void ; ->u : (a: { foo: string; }) => void ->a : { foo: string; } ->x : { foo: string; } +>u : (a: { foo: string; }) => void, Symbol(Base.u, Decl(derivedClassOverridesProtectedMembers2.ts, 13, 43)) +>a : { foo: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 14, 25)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) constructor(a: typeof x) { } ->a : { foo: string; } ->x : { foo: string; } +>a : { foo: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 16, 12)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) } // Increase visibility of all protected members to public class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>Base : Base, Symbol(Base, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 36)) a: typeof y; ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 20, 28)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) b(a: typeof y) { } ->b : (a: { foo: string; bar: string; }) => void ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>b : (a: { foo: string; bar: string; }) => void, Symbol(b, Decl(derivedClassOverridesProtectedMembers2.ts, 21, 16)) +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 6)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) get c() { return y; } ->c : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>c : { foo: string; bar: string; }, Symbol(c, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 22), Decl(derivedClassOverridesProtectedMembers2.ts, 23, 25)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) set c(v: typeof y) { } ->c : { foo: string; bar: string; } ->v : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>c : { foo: string; bar: string; }, Symbol(c, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 22), Decl(derivedClassOverridesProtectedMembers2.ts, 23, 25)) +>v : { foo: string; bar: string; }, Symbol(v, Decl(derivedClassOverridesProtectedMembers2.ts, 24, 10)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) d: (a: typeof y) => void; ->d : (a: { foo: string; bar: string; }) => void ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>d : (a: { foo: string; bar: string; }) => void, Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 24, 26)) +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 25, 8)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) static r: typeof y; ->r : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>r : { foo: string; bar: string; }, Symbol(Derived.r, Decl(derivedClassOverridesProtectedMembers2.ts, 25, 29)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) static s(a: typeof y) { } ->s : (a: { foo: string; bar: string; }) => void ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>s : (a: { foo: string; bar: string; }) => void, Symbol(Derived.s, Decl(derivedClassOverridesProtectedMembers2.ts, 27, 23)) +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 13)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) static get t() { return y; } ->t : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>t : { foo: string; bar: string; }, Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 29), Decl(derivedClassOverridesProtectedMembers2.ts, 29, 32)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) static set t(a: typeof y) { } ->t : { foo: string; bar: string; } ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>t : { foo: string; bar: string; }, Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 29), Decl(derivedClassOverridesProtectedMembers2.ts, 29, 32)) +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 30, 17)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) static u: (a: typeof y) => void; ->u : (a: { foo: string; bar: string; }) => void ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>u : (a: { foo: string; bar: string; }) => void, Symbol(Derived.u, Decl(derivedClassOverridesProtectedMembers2.ts, 30, 33)) +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 31, 15)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) constructor(a: typeof y) { super(a); } ->a : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 33, 16)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) >super(a) : void ->super : typeof Base ->a : { foo: string; bar: string; } +>super : typeof Base, Symbol(Base, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 36)) +>a : { foo: string; bar: string; }, Symbol(a, Decl(derivedClassOverridesProtectedMembers2.ts, 33, 16)) } var d: Derived = new Derived(y); ->d : Derived ->Derived : Derived +>d : Derived, Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 36, 3)) +>Derived : Derived, Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) >new Derived(y) : Derived ->Derived : typeof Derived ->y : { foo: string; bar: string; } +>Derived : typeof Derived, Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) var r1 = d.a; ->r1 : { foo: string; bar: string; } ->d.a : { foo: string; bar: string; } ->d : Derived ->a : { foo: string; bar: string; } +>r1 : { foo: string; bar: string; }, Symbol(r1, Decl(derivedClassOverridesProtectedMembers2.ts, 37, 3)) +>d.a : { foo: string; bar: string; }, Symbol(Derived.a, Decl(derivedClassOverridesProtectedMembers2.ts, 20, 28)) +>d : Derived, Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 36, 3)) +>a : { foo: string; bar: string; }, Symbol(Derived.a, Decl(derivedClassOverridesProtectedMembers2.ts, 20, 28)) var r2 = d.b(y); ->r2 : void +>r2 : void, Symbol(r2, Decl(derivedClassOverridesProtectedMembers2.ts, 38, 3)) >d.b(y) : void ->d.b : (a: { foo: string; bar: string; }) => void ->d : Derived ->b : (a: { foo: string; bar: string; }) => void ->y : { foo: string; bar: string; } +>d.b : (a: { foo: string; bar: string; }) => void, Symbol(Derived.b, Decl(derivedClassOverridesProtectedMembers2.ts, 21, 16)) +>d : Derived, Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 36, 3)) +>b : (a: { foo: string; bar: string; }) => void, Symbol(Derived.b, Decl(derivedClassOverridesProtectedMembers2.ts, 21, 16)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) var r3 = d.c; ->r3 : { foo: string; bar: string; } ->d.c : { foo: string; bar: string; } ->d : Derived ->c : { foo: string; bar: string; } +>r3 : { foo: string; bar: string; }, Symbol(r3, Decl(derivedClassOverridesProtectedMembers2.ts, 39, 3)) +>d.c : { foo: string; bar: string; }, Symbol(Derived.c, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 22), Decl(derivedClassOverridesProtectedMembers2.ts, 23, 25)) +>d : Derived, Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 36, 3)) +>c : { foo: string; bar: string; }, Symbol(Derived.c, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 22), Decl(derivedClassOverridesProtectedMembers2.ts, 23, 25)) var r3a = d.d; ->r3a : (a: { foo: string; bar: string; }) => void ->d.d : (a: { foo: string; bar: string; }) => void ->d : Derived ->d : (a: { foo: string; bar: string; }) => void +>r3a : (a: { foo: string; bar: string; }) => void, Symbol(r3a, Decl(derivedClassOverridesProtectedMembers2.ts, 40, 3)) +>d.d : (a: { foo: string; bar: string; }) => void, Symbol(Derived.d, Decl(derivedClassOverridesProtectedMembers2.ts, 24, 26)) +>d : Derived, Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 36, 3)) +>d : (a: { foo: string; bar: string; }) => void, Symbol(Derived.d, Decl(derivedClassOverridesProtectedMembers2.ts, 24, 26)) d.c = y; >d.c = y : { foo: string; bar: string; } ->d.c : { foo: string; bar: string; } ->d : Derived ->c : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>d.c : { foo: string; bar: string; }, Symbol(Derived.c, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 22), Decl(derivedClassOverridesProtectedMembers2.ts, 23, 25)) +>d : Derived, Symbol(d, Decl(derivedClassOverridesProtectedMembers2.ts, 36, 3)) +>c : { foo: string; bar: string; }, Symbol(Derived.c, Decl(derivedClassOverridesProtectedMembers2.ts, 22, 22), Decl(derivedClassOverridesProtectedMembers2.ts, 23, 25)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) var r4 = Derived.r; ->r4 : { foo: string; bar: string; } ->Derived.r : { foo: string; bar: string; } ->Derived : typeof Derived ->r : { foo: string; bar: string; } +>r4 : { foo: string; bar: string; }, Symbol(r4, Decl(derivedClassOverridesProtectedMembers2.ts, 42, 3)) +>Derived.r : { foo: string; bar: string; }, Symbol(Derived.r, Decl(derivedClassOverridesProtectedMembers2.ts, 25, 29)) +>Derived : typeof Derived, Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>r : { foo: string; bar: string; }, Symbol(Derived.r, Decl(derivedClassOverridesProtectedMembers2.ts, 25, 29)) var r5 = Derived.s(y); ->r5 : void +>r5 : void, Symbol(r5, Decl(derivedClassOverridesProtectedMembers2.ts, 43, 3)) >Derived.s(y) : void ->Derived.s : (a: { foo: string; bar: string; }) => void ->Derived : typeof Derived ->s : (a: { foo: string; bar: string; }) => void ->y : { foo: string; bar: string; } +>Derived.s : (a: { foo: string; bar: string; }) => void, Symbol(Derived.s, Decl(derivedClassOverridesProtectedMembers2.ts, 27, 23)) +>Derived : typeof Derived, Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>s : (a: { foo: string; bar: string; }) => void, Symbol(Derived.s, Decl(derivedClassOverridesProtectedMembers2.ts, 27, 23)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) var r6 = Derived.t; ->r6 : { foo: string; bar: string; } ->Derived.t : { foo: string; bar: string; } ->Derived : typeof Derived ->t : { foo: string; bar: string; } +>r6 : { foo: string; bar: string; }, Symbol(r6, Decl(derivedClassOverridesProtectedMembers2.ts, 44, 3)) +>Derived.t : { foo: string; bar: string; }, Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 29), Decl(derivedClassOverridesProtectedMembers2.ts, 29, 32)) +>Derived : typeof Derived, Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>t : { foo: string; bar: string; }, Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 29), Decl(derivedClassOverridesProtectedMembers2.ts, 29, 32)) var r6a = Derived.u; ->r6a : (a: { foo: string; bar: string; }) => void ->Derived.u : (a: { foo: string; bar: string; }) => void ->Derived : typeof Derived ->u : (a: { foo: string; bar: string; }) => void +>r6a : (a: { foo: string; bar: string; }) => void, Symbol(r6a, Decl(derivedClassOverridesProtectedMembers2.ts, 45, 3)) +>Derived.u : (a: { foo: string; bar: string; }) => void, Symbol(Derived.u, Decl(derivedClassOverridesProtectedMembers2.ts, 30, 33)) +>Derived : typeof Derived, Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>u : (a: { foo: string; bar: string; }) => void, Symbol(Derived.u, Decl(derivedClassOverridesProtectedMembers2.ts, 30, 33)) Derived.t = y; >Derived.t = y : { foo: string; bar: string; } ->Derived.t : { foo: string; bar: string; } ->Derived : typeof Derived ->t : { foo: string; bar: string; } ->y : { foo: string; bar: string; } +>Derived.t : { foo: string; bar: string; }, Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 29), Decl(derivedClassOverridesProtectedMembers2.ts, 29, 32)) +>Derived : typeof Derived, Symbol(Derived, Decl(derivedClassOverridesProtectedMembers2.ts, 17, 1)) +>t : { foo: string; bar: string; }, Symbol(Derived.t, Decl(derivedClassOverridesProtectedMembers2.ts, 28, 29), Decl(derivedClassOverridesProtectedMembers2.ts, 29, 32)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) class Base2 { ->Base2 : Base2 +>Base2 : Base2, Symbol(Base2, Decl(derivedClassOverridesProtectedMembers2.ts, 46, 14)) [i: string]: Object; ->i : string ->Object : Object +>i : string, Symbol(i, Decl(derivedClassOverridesProtectedMembers2.ts, 49, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) [i: number]: typeof x; ->i : number ->x : { foo: string; } +>i : number, Symbol(i, Decl(derivedClassOverridesProtectedMembers2.ts, 50, 5)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) } class Derived2 extends Base2 { ->Derived2 : Derived2 ->Base2 : Base2 +>Derived2 : Derived2, Symbol(Derived2, Decl(derivedClassOverridesProtectedMembers2.ts, 51, 1)) +>Base2 : Base2, Symbol(Base2, Decl(derivedClassOverridesProtectedMembers2.ts, 46, 14)) [i: string]: typeof x; ->i : string ->x : { foo: string; } +>i : string, Symbol(i, Decl(derivedClassOverridesProtectedMembers2.ts, 54, 5)) +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesProtectedMembers2.ts, 0, 3)) [i: number]: typeof y; ->i : number ->y : { foo: string; bar: string; } +>i : number, Symbol(i, Decl(derivedClassOverridesProtectedMembers2.ts, 55, 5)) +>y : { foo: string; bar: string; }, Symbol(y, Decl(derivedClassOverridesProtectedMembers2.ts, 1, 3)) } var d2: Derived2; ->d2 : Derived2 ->Derived2 : Derived2 +>d2 : Derived2, Symbol(d2, Decl(derivedClassOverridesProtectedMembers2.ts, 58, 3)) +>Derived2 : Derived2, Symbol(Derived2, Decl(derivedClassOverridesProtectedMembers2.ts, 51, 1)) var r7 = d2['']; ->r7 : { foo: string; } +>r7 : { foo: string; }, Symbol(r7, Decl(derivedClassOverridesProtectedMembers2.ts, 59, 3)) >d2[''] : { foo: string; } ->d2 : Derived2 +>d2 : Derived2, Symbol(d2, Decl(derivedClassOverridesProtectedMembers2.ts, 58, 3)) +>'' : string var r8 = d2[1]; ->r8 : { foo: string; bar: string; } +>r8 : { foo: string; bar: string; }, Symbol(r8, Decl(derivedClassOverridesProtectedMembers2.ts, 60, 3)) >d2[1] : { foo: string; bar: string; } ->d2 : Derived2 +>d2 : Derived2, Symbol(d2, Decl(derivedClassOverridesProtectedMembers2.ts, 58, 3)) +>1 : number diff --git a/tests/baselines/reference/derivedClassOverridesWithoutSubtype.types b/tests/baselines/reference/derivedClassOverridesWithoutSubtype.types index a46c8efa408..f5729a3bd65 100644 --- a/tests/baselines/reference/derivedClassOverridesWithoutSubtype.types +++ b/tests/baselines/reference/derivedClassOverridesWithoutSubtype.types @@ -1,46 +1,46 @@ === tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesWithoutSubtype.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(derivedClassOverridesWithoutSubtype.ts, 0, 0)) x: { ->x : { foo: string; } +>x : { foo: string; }, Symbol(x, Decl(derivedClassOverridesWithoutSubtype.ts, 0, 12)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(derivedClassOverridesWithoutSubtype.ts, 1, 8)) } } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(derivedClassOverridesWithoutSubtype.ts, 4, 1)) +>Base : Base, Symbol(Base, Decl(derivedClassOverridesWithoutSubtype.ts, 0, 0)) x: { ->x : { foo: any; } +>x : { foo: any; }, Symbol(x, Decl(derivedClassOverridesWithoutSubtype.ts, 6, 28)) foo: any; ->foo : any +>foo : any, Symbol(foo, Decl(derivedClassOverridesWithoutSubtype.ts, 7, 8)) } } class Base2 { ->Base2 : Base2 +>Base2 : Base2, Symbol(Base2, Decl(derivedClassOverridesWithoutSubtype.ts, 10, 1)) static y: { ->y : { foo: string; } +>y : { foo: string; }, Symbol(Base2.y, Decl(derivedClassOverridesWithoutSubtype.ts, 12, 13)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(derivedClassOverridesWithoutSubtype.ts, 13, 15)) } } class Derived2 extends Base2 { ->Derived2 : Derived2 ->Base2 : Base2 +>Derived2 : Derived2, Symbol(Derived2, Decl(derivedClassOverridesWithoutSubtype.ts, 16, 1)) +>Base2 : Base2, Symbol(Base2, Decl(derivedClassOverridesWithoutSubtype.ts, 10, 1)) static y: { ->y : { foo: any; } +>y : { foo: any; }, Symbol(Derived2.y, Decl(derivedClassOverridesWithoutSubtype.ts, 18, 30)) foo: any; ->foo : any +>foo : any, Symbol(foo, Decl(derivedClassOverridesWithoutSubtype.ts, 19, 15)) } } diff --git a/tests/baselines/reference/derivedClasses.types b/tests/baselines/reference/derivedClasses.types index ce054b99223..33a4e11e369 100644 --- a/tests/baselines/reference/derivedClasses.types +++ b/tests/baselines/reference/derivedClasses.types @@ -1,91 +1,95 @@ === tests/cases/compiler/derivedClasses.ts === class Red extends Color { ->Red : Red ->Color : Color +>Red : Red, Symbol(Red, Decl(derivedClasses.ts, 0, 0)) +>Color : Color, Symbol(Color, Decl(derivedClasses.ts, 5, 1)) public shade() { ->shade : () => string +>shade : () => string, Symbol(shade, Decl(derivedClasses.ts, 0, 25)) var getHue = () => { return this.hue(); }; ->getHue : () => string +>getHue : () => string, Symbol(getHue, Decl(derivedClasses.ts, 2, 8)) >() => { return this.hue(); } : () => string >this.hue() : string ->this.hue : () => string ->this : Red ->hue : () => string +>this.hue : () => string, Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43)) +>this : Red, Symbol(Red, Decl(derivedClasses.ts, 0, 0)) +>hue : () => string, Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43)) return getHue() + " red"; >getHue() + " red" : string >getHue() : string ->getHue : () => string +>getHue : () => string, Symbol(getHue, Decl(derivedClasses.ts, 2, 8)) +>" red" : string } } class Color { ->Color : Color +>Color : Color, Symbol(Color, Decl(derivedClasses.ts, 5, 1)) public shade() { return "some shade"; } ->shade : () => string +>shade : () => string, Symbol(shade, Decl(derivedClasses.ts, 7, 13)) +>"some shade" : string public hue() { return "some hue"; } ->hue : () => string +>hue : () => string, Symbol(hue, Decl(derivedClasses.ts, 8, 43)) +>"some hue" : string } class Blue extends Color { ->Blue : Blue ->Color : Color +>Blue : Blue, Symbol(Blue, Decl(derivedClasses.ts, 10, 1)) +>Color : Color, Symbol(Color, Decl(derivedClasses.ts, 5, 1)) public shade() { ->shade : () => string +>shade : () => string, Symbol(shade, Decl(derivedClasses.ts, 12, 26)) var getHue = () => { return this.hue(); }; ->getHue : () => string +>getHue : () => string, Symbol(getHue, Decl(derivedClasses.ts, 15, 8)) >() => { return this.hue(); } : () => string >this.hue() : string ->this.hue : () => string ->this : Blue ->hue : () => string +>this.hue : () => string, Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43)) +>this : Blue, Symbol(Blue, Decl(derivedClasses.ts, 10, 1)) +>hue : () => string, Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43)) return getHue() + " blue"; >getHue() + " blue" : string >getHue() : string ->getHue : () => string +>getHue : () => string, Symbol(getHue, Decl(derivedClasses.ts, 15, 8)) +>" blue" : string } } var r = new Red(); ->r : Red +>r : Red, Symbol(r, Decl(derivedClasses.ts, 20, 3)) >new Red() : Red ->Red : typeof Red +>Red : typeof Red, Symbol(Red, Decl(derivedClasses.ts, 0, 0)) var b = new Blue(); ->b : Blue +>b : Blue, Symbol(b, Decl(derivedClasses.ts, 21, 3)) >new Blue() : Blue ->Blue : typeof Blue +>Blue : typeof Blue, Symbol(Blue, Decl(derivedClasses.ts, 10, 1)) r.shade(); >r.shade() : string ->r.shade : () => string ->r : Red ->shade : () => string +>r.shade : () => string, Symbol(Red.shade, Decl(derivedClasses.ts, 0, 25)) +>r : Red, Symbol(r, Decl(derivedClasses.ts, 20, 3)) +>shade : () => string, Symbol(Red.shade, Decl(derivedClasses.ts, 0, 25)) r.hue(); >r.hue() : string ->r.hue : () => string ->r : Red ->hue : () => string +>r.hue : () => string, Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43)) +>r : Red, Symbol(r, Decl(derivedClasses.ts, 20, 3)) +>hue : () => string, Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43)) b.shade(); >b.shade() : string ->b.shade : () => string ->b : Blue ->shade : () => string +>b.shade : () => string, Symbol(Blue.shade, Decl(derivedClasses.ts, 12, 26)) +>b : Blue, Symbol(b, Decl(derivedClasses.ts, 21, 3)) +>shade : () => string, Symbol(Blue.shade, Decl(derivedClasses.ts, 12, 26)) b.hue(); >b.hue() : string ->b.hue : () => string ->b : Blue ->hue : () => string +>b.hue : () => string, Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43)) +>b : Blue, Symbol(b, Decl(derivedClasses.ts, 21, 3)) +>hue : () => string, Symbol(Color.hue, Decl(derivedClasses.ts, 8, 43)) diff --git a/tests/baselines/reference/derivedInterfaceDoesNotHideBaseSignatures.types b/tests/baselines/reference/derivedInterfaceDoesNotHideBaseSignatures.types index 7ee090b7de3..ae3d7207311 100644 --- a/tests/baselines/reference/derivedInterfaceDoesNotHideBaseSignatures.types +++ b/tests/baselines/reference/derivedInterfaceDoesNotHideBaseSignatures.types @@ -1,18 +1,18 @@ === tests/cases/conformance/interfaces/interfaceDeclarations/derivedInterfaceDoesNotHideBaseSignatures.ts === // Derived interfaces no longer hide signatures from base types, so these signatures are always compatible. interface Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(derivedInterfaceDoesNotHideBaseSignatures.ts, 0, 0)) (): string; new (x: string): number; ->x : string +>x : string, Symbol(x, Decl(derivedInterfaceDoesNotHideBaseSignatures.ts, 3, 9)) } interface Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(derivedInterfaceDoesNotHideBaseSignatures.ts, 4, 1)) +>Base : Base, Symbol(Base, Decl(derivedInterfaceDoesNotHideBaseSignatures.ts, 0, 0)) (): number; new (x: string): string; ->x : string +>x : string, Symbol(x, Decl(derivedInterfaceDoesNotHideBaseSignatures.ts, 8, 9)) } diff --git a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.types b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.types index 4f1ff1780dc..9a68b733f81 100644 --- a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.types +++ b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.types @@ -1,62 +1,69 @@ === tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 0, 0)) foo(x: { a: number }): { a: number } { ->foo : (x: { a: number; }) => { a: number; } ->x : { a: number; } ->a : number ->a : number +>foo : (x: { a: number; }) => { a: number; }, Symbol(foo, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 0, 12)) +>x : { a: number; }, Symbol(x, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 1, 8)) +>a : number, Symbol(a, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 1, 12)) +>a : number, Symbol(a, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 1, 28)) return null; +>null : null } } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 4, 1)) +>Base : Base, Symbol(Base, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 0, 0)) foo(x: { a: number; b: number }): { a: number; b: number } { ->foo : (x: { a: number; b: number; }) => { a: number; b: number; } ->x : { a: number; b: number; } ->a : number ->b : number ->a : number ->b : number +>foo : (x: { a: number; b: number; }) => { a: number; b: number; }, Symbol(foo, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 6, 28)) +>x : { a: number; b: number; }, Symbol(x, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 7, 8)) +>a : number, Symbol(a, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 7, 12)) +>b : number, Symbol(b, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 7, 23)) +>a : number, Symbol(a, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 7, 39)) +>b : number, Symbol(b, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 7, 50)) return null; +>null : null } bar() { ->bar : () => void +>bar : () => void, Symbol(bar, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 9, 5)) var r = super.foo({ a: 1 }); // { a: number } ->r : { a: number; } +>r : { a: number; }, Symbol(r, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 12, 11)) >super.foo({ a: 1 }) : { a: number; } ->super.foo : (x: { a: number; }) => { a: number; } ->super : Base ->foo : (x: { a: number; }) => { a: number; } +>super.foo : (x: { a: number; }) => { a: number; }, Symbol(Base.foo, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 0, 12)) +>super : Base, Symbol(Base, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 0, 0)) +>foo : (x: { a: number; }) => { a: number; }, Symbol(Base.foo, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 0, 12)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 12, 27)) +>1 : number var r2 = super.foo({ a: 1, b: 2 }); // { a: number } ->r2 : { a: number; } +>r2 : { a: number; }, Symbol(r2, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 13, 11)) >super.foo({ a: 1, b: 2 }) : { a: number; } ->super.foo : (x: { a: number; }) => { a: number; } ->super : Base ->foo : (x: { a: number; }) => { a: number; } +>super.foo : (x: { a: number; }) => { a: number; }, Symbol(Base.foo, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 0, 12)) +>super : Base, Symbol(Base, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 0, 0)) +>foo : (x: { a: number; }) => { a: number; }, Symbol(Base.foo, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 0, 12)) >{ a: 1, b: 2 } : { a: number; b: number; } ->a : number ->b : number +>a : number, Symbol(a, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 13, 28)) +>1 : number +>b : number, Symbol(b, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 13, 34)) +>2 : number var r3 = this.foo({ a: 1, b: 2 }); // { a: number; b: number; } ->r3 : { a: number; b: number; } +>r3 : { a: number; b: number; }, Symbol(r3, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 14, 11)) >this.foo({ a: 1, b: 2 }) : { a: number; b: number; } ->this.foo : (x: { a: number; b: number; }) => { a: number; b: number; } ->this : Derived ->foo : (x: { a: number; b: number; }) => { a: number; b: number; } +>this.foo : (x: { a: number; b: number; }) => { a: number; b: number; }, Symbol(foo, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 6, 28)) +>this : Derived, Symbol(Derived, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 4, 1)) +>foo : (x: { a: number; b: number; }) => { a: number; b: number; }, Symbol(foo, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 6, 28)) >{ a: 1, b: 2 } : { a: number; b: number; } ->a : number ->b : number +>a : number, Symbol(a, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 14, 27)) +>1 : number +>b : number, Symbol(b, Decl(derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.ts, 14, 33)) +>2 : number } } diff --git a/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.types b/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.types index 36b85d7950c..666422939e7 100644 --- a/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.types +++ b/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.types @@ -1,55 +1,55 @@ === tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/derivedTypeDoesNotRequireExtendsClause.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 0, 12)) } class Derived { ->Derived : Derived +>Derived : Derived, Symbol(Derived, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 2, 1)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 4, 15)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 5, 16)) } class Derived2 extends Base { ->Derived2 : Derived2 ->Base : Base +>Derived2 : Derived2, Symbol(Derived2, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 7, 1)) +>Base : Base, Symbol(Base, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 0, 0)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 9, 29)) } var b: Base; ->b : Base ->Base : Base +>b : Base, Symbol(b, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 13, 3)) +>Base : Base, Symbol(Base, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 0, 0)) var d1: Derived; ->d1 : Derived ->Derived : Derived +>d1 : Derived, Symbol(d1, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 14, 3)) +>Derived : Derived, Symbol(Derived, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 2, 1)) var d2: Derived2; ->d2 : Derived2 ->Derived2 : Derived2 +>d2 : Derived2, Symbol(d2, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 15, 3)) +>Derived2 : Derived2, Symbol(Derived2, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 7, 1)) b = d1; >b = d1 : Derived ->b : Base ->d1 : Derived +>b : Base, Symbol(b, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 13, 3)) +>d1 : Derived, Symbol(d1, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 14, 3)) b = d2; >b = d2 : Derived2 ->b : Base ->d2 : Derived2 +>b : Base, Symbol(b, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 13, 3)) +>d2 : Derived2, Symbol(d2, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 15, 3)) var r: Base[] = [d1, d2]; ->r : Base[] ->Base : Base +>r : Base[], Symbol(r, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 19, 3)) +>Base : Base, Symbol(Base, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 0, 0)) >[d1, d2] : (Derived | Derived2)[] ->d1 : Derived ->d2 : Derived2 +>d1 : Derived, Symbol(d1, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 14, 3)) +>d2 : Derived2, Symbol(d2, Decl(derivedTypeDoesNotRequireExtendsClause.ts, 15, 3)) diff --git a/tests/baselines/reference/detachedCommentAtStartOfConstructor1.types b/tests/baselines/reference/detachedCommentAtStartOfConstructor1.types index 392821de751..f2119dd582f 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfConstructor1.types +++ b/tests/baselines/reference/detachedCommentAtStartOfConstructor1.types @@ -1,33 +1,33 @@ === tests/cases/compiler/detachedCommentAtStartOfConstructor1.ts === class TestFile { ->TestFile : TestFile +>TestFile : TestFile, Symbol(TestFile, Decl(detachedCommentAtStartOfConstructor1.ts, 0, 0)) public message: string; ->message : string +>message : string, Symbol(message, Decl(detachedCommentAtStartOfConstructor1.ts, 0, 16)) public name; ->name : any +>name : any, Symbol(name, Decl(detachedCommentAtStartOfConstructor1.ts, 1, 27)) constructor(message: string) { ->message : string +>message : string, Symbol(message, Decl(detachedCommentAtStartOfConstructor1.ts, 3, 16)) /// Test summary /// var getMessage = () => message + this.name; ->getMessage : () => string +>getMessage : () => string, Symbol(getMessage, Decl(detachedCommentAtStartOfConstructor1.ts, 6, 11)) >() => message + this.name : () => string >message + this.name : string ->message : string ->this.name : any ->this : TestFile ->name : any +>message : string, Symbol(message, Decl(detachedCommentAtStartOfConstructor1.ts, 3, 16)) +>this.name : any, Symbol(name, Decl(detachedCommentAtStartOfConstructor1.ts, 1, 27)) +>this : TestFile, Symbol(TestFile, Decl(detachedCommentAtStartOfConstructor1.ts, 0, 0)) +>name : any, Symbol(name, Decl(detachedCommentAtStartOfConstructor1.ts, 1, 27)) this.message = getMessage(); >this.message = getMessage() : string ->this.message : string ->this : TestFile ->message : string +>this.message : string, Symbol(message, Decl(detachedCommentAtStartOfConstructor1.ts, 0, 16)) +>this : TestFile, Symbol(TestFile, Decl(detachedCommentAtStartOfConstructor1.ts, 0, 0)) +>message : string, Symbol(message, Decl(detachedCommentAtStartOfConstructor1.ts, 0, 16)) >getMessage() : string ->getMessage : () => string +>getMessage : () => string, Symbol(getMessage, Decl(detachedCommentAtStartOfConstructor1.ts, 6, 11)) } } diff --git a/tests/baselines/reference/detachedCommentAtStartOfConstructor2.types b/tests/baselines/reference/detachedCommentAtStartOfConstructor2.types index b413cd557a5..c58f561e46b 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfConstructor2.types +++ b/tests/baselines/reference/detachedCommentAtStartOfConstructor2.types @@ -1,34 +1,34 @@ === tests/cases/compiler/detachedCommentAtStartOfConstructor2.ts === class TestFile { ->TestFile : TestFile +>TestFile : TestFile, Symbol(TestFile, Decl(detachedCommentAtStartOfConstructor2.ts, 0, 0)) public message: string; ->message : string +>message : string, Symbol(message, Decl(detachedCommentAtStartOfConstructor2.ts, 0, 16)) public name: string; ->name : string +>name : string, Symbol(name, Decl(detachedCommentAtStartOfConstructor2.ts, 1, 27)) constructor(message: string) { ->message : string +>message : string, Symbol(message, Decl(detachedCommentAtStartOfConstructor2.ts, 3, 16)) /// Test summary /// var getMessage = () => message + this.name; ->getMessage : () => string +>getMessage : () => string, Symbol(getMessage, Decl(detachedCommentAtStartOfConstructor2.ts, 7, 11)) >() => message + this.name : () => string >message + this.name : string ->message : string ->this.name : string ->this : TestFile ->name : string +>message : string, Symbol(message, Decl(detachedCommentAtStartOfConstructor2.ts, 3, 16)) +>this.name : string, Symbol(name, Decl(detachedCommentAtStartOfConstructor2.ts, 1, 27)) +>this : TestFile, Symbol(TestFile, Decl(detachedCommentAtStartOfConstructor2.ts, 0, 0)) +>name : string, Symbol(name, Decl(detachedCommentAtStartOfConstructor2.ts, 1, 27)) this.message = getMessage(); >this.message = getMessage() : string ->this.message : string ->this : TestFile ->message : string +>this.message : string, Symbol(message, Decl(detachedCommentAtStartOfConstructor2.ts, 0, 16)) +>this : TestFile, Symbol(TestFile, Decl(detachedCommentAtStartOfConstructor2.ts, 0, 0)) +>message : string, Symbol(message, Decl(detachedCommentAtStartOfConstructor2.ts, 0, 16)) >getMessage() : string ->getMessage : () => string +>getMessage : () => string, Symbol(getMessage, Decl(detachedCommentAtStartOfConstructor2.ts, 7, 11)) } } diff --git a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.types b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.types index 016a123c5c1..e3af9855664 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.types +++ b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.types @@ -1,26 +1,26 @@ === tests/cases/compiler/detachedCommentAtStartOfLambdaFunction1.ts === class TestFile { ->TestFile : TestFile +>TestFile : TestFile, Symbol(TestFile, Decl(detachedCommentAtStartOfLambdaFunction1.ts, 0, 0)) name: string; ->name : string +>name : string, Symbol(name, Decl(detachedCommentAtStartOfLambdaFunction1.ts, 0, 16)) foo(message: string): () => string { ->foo : (message: string) => () => string ->message : string +>foo : (message: string) => () => string, Symbol(foo, Decl(detachedCommentAtStartOfLambdaFunction1.ts, 1, 17)) +>message : string, Symbol(message, Decl(detachedCommentAtStartOfLambdaFunction1.ts, 2, 8)) return (...x: string[]) => >(...x: string[]) => /// Test summary /// /// message + this.name : (...x: string[]) => string ->x : string[] +>x : string[], Symbol(x, Decl(detachedCommentAtStartOfLambdaFunction1.ts, 3, 16)) /// Test summary /// /// message + this.name; >message + this.name : string ->message : string ->this.name : string ->this : TestFile ->name : string +>message : string, Symbol(message, Decl(detachedCommentAtStartOfLambdaFunction1.ts, 2, 8)) +>this.name : string, Symbol(name, Decl(detachedCommentAtStartOfLambdaFunction1.ts, 0, 16)) +>this : TestFile, Symbol(TestFile, Decl(detachedCommentAtStartOfLambdaFunction1.ts, 0, 0)) +>name : string, Symbol(name, Decl(detachedCommentAtStartOfLambdaFunction1.ts, 0, 16)) } } diff --git a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.types b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.types index 2199a4490b5..7693438911a 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.types +++ b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.types @@ -1,17 +1,17 @@ === tests/cases/compiler/detachedCommentAtStartOfLambdaFunction2.ts === class TestFile { ->TestFile : TestFile +>TestFile : TestFile, Symbol(TestFile, Decl(detachedCommentAtStartOfLambdaFunction2.ts, 0, 0)) name: string; ->name : string +>name : string, Symbol(name, Decl(detachedCommentAtStartOfLambdaFunction2.ts, 0, 16)) foo(message: string): () => string { ->foo : (message: string) => () => string ->message : string +>foo : (message: string) => () => string, Symbol(foo, Decl(detachedCommentAtStartOfLambdaFunction2.ts, 1, 17)) +>message : string, Symbol(message, Decl(detachedCommentAtStartOfLambdaFunction2.ts, 2, 8)) return (...x: string[]) => >(...x: string[]) => /// Test summary /// /// message + this.name : (...x: string[]) => string ->x : string[] +>x : string[], Symbol(x, Decl(detachedCommentAtStartOfLambdaFunction2.ts, 3, 16)) /// Test summary /// @@ -19,9 +19,9 @@ class TestFile { message + this.name; >message + this.name : string ->message : string ->this.name : string ->this : TestFile ->name : string +>message : string, Symbol(message, Decl(detachedCommentAtStartOfLambdaFunction2.ts, 2, 8)) +>this.name : string, Symbol(name, Decl(detachedCommentAtStartOfLambdaFunction2.ts, 0, 16)) +>this : TestFile, Symbol(TestFile, Decl(detachedCommentAtStartOfLambdaFunction2.ts, 0, 0)) +>name : string, Symbol(name, Decl(detachedCommentAtStartOfLambdaFunction2.ts, 0, 16)) } } diff --git a/tests/baselines/reference/doNotWidenAtObjectLiteralPropertyAssignment.types b/tests/baselines/reference/doNotWidenAtObjectLiteralPropertyAssignment.types index cd8c03fd6a6..b569c246f1a 100644 --- a/tests/baselines/reference/doNotWidenAtObjectLiteralPropertyAssignment.types +++ b/tests/baselines/reference/doNotWidenAtObjectLiteralPropertyAssignment.types @@ -1,30 +1,32 @@ === tests/cases/compiler/doNotWidenAtObjectLiteralPropertyAssignment.ts === interface ITestEventInterval { ->ITestEventInterval : ITestEventInterval +>ITestEventInterval : ITestEventInterval, Symbol(ITestEventInterval, Decl(doNotWidenAtObjectLiteralPropertyAssignment.ts, 0, 0)) begin: number; ->begin : number +>begin : number, Symbol(begin, Decl(doNotWidenAtObjectLiteralPropertyAssignment.ts, 0, 30)) } interface IIntervalTreeNode { ->IIntervalTreeNode : IIntervalTreeNode +>IIntervalTreeNode : IIntervalTreeNode, Symbol(IIntervalTreeNode, Decl(doNotWidenAtObjectLiteralPropertyAssignment.ts, 2, 1)) interval: ITestEventInterval; ->interval : ITestEventInterval ->ITestEventInterval : ITestEventInterval +>interval : ITestEventInterval, Symbol(interval, Decl(doNotWidenAtObjectLiteralPropertyAssignment.ts, 4, 29)) +>ITestEventInterval : ITestEventInterval, Symbol(ITestEventInterval, Decl(doNotWidenAtObjectLiteralPropertyAssignment.ts, 0, 0)) children?: IIntervalTreeNode[]; ->children : IIntervalTreeNode[] ->IIntervalTreeNode : IIntervalTreeNode +>children : IIntervalTreeNode[], Symbol(children, Decl(doNotWidenAtObjectLiteralPropertyAssignment.ts, 5, 33)) +>IIntervalTreeNode : IIntervalTreeNode, Symbol(IIntervalTreeNode, Decl(doNotWidenAtObjectLiteralPropertyAssignment.ts, 2, 1)) } var test: IIntervalTreeNode[] = [{ interval: { begin: 0 }, children: null }]; // was error here because best common type is {} ->test : IIntervalTreeNode[] ->IIntervalTreeNode : IIntervalTreeNode +>test : IIntervalTreeNode[], Symbol(test, Decl(doNotWidenAtObjectLiteralPropertyAssignment.ts, 9, 3)) +>IIntervalTreeNode : IIntervalTreeNode, Symbol(IIntervalTreeNode, Decl(doNotWidenAtObjectLiteralPropertyAssignment.ts, 2, 1)) >[{ interval: { begin: 0 }, children: null }] : { interval: { begin: number; }; children: null; }[] >{ interval: { begin: 0 }, children: null } : { interval: { begin: number; }; children: null; } ->interval : { begin: number; } +>interval : { begin: number; }, Symbol(interval, Decl(doNotWidenAtObjectLiteralPropertyAssignment.ts, 9, 34)) >{ begin: 0 } : { begin: number; } ->begin : number ->children : null +>begin : number, Symbol(begin, Decl(doNotWidenAtObjectLiteralPropertyAssignment.ts, 9, 46)) +>0 : number +>children : null, Symbol(children, Decl(doNotWidenAtObjectLiteralPropertyAssignment.ts, 9, 58)) +>null : null diff --git a/tests/baselines/reference/doWhileBreakStatements.types b/tests/baselines/reference/doWhileBreakStatements.types index c32adda7f4b..cfca22250d1 100644 --- a/tests/baselines/reference/doWhileBreakStatements.types +++ b/tests/baselines/reference/doWhileBreakStatements.types @@ -2,41 +2,79 @@ do { break; } while(true) +>true : boolean ONE: +>ONE : any + do { break ONE; +>ONE : any } while (true) +>true : boolean TWO: +>TWO : any + THREE: +>THREE : any + do { break THREE; +>THREE : any + }while (true) +>true : boolean FOUR: +>FOUR : any + do { FIVE: +>FIVE : any + do { break FOUR; +>FOUR : any + }while (true) +>true : boolean + }while (true) +>true : boolean do { SIX: +>SIX : any + do break SIX; while(true) +>SIX : any +>true : boolean + }while (true) +>true : boolean SEVEN: +>SEVEN : any + do do do break SEVEN; while (true) while (true) while (true) +>SEVEN : any +>true : boolean +>true : boolean +>true : boolean EIGHT: +>EIGHT : any + do{ var fn = function () { } ->fn : () => void +>fn : () => void, Symbol(fn, Decl(doWhileBreakStatements.ts, 34, 7)) >function () { } : () => void break EIGHT; -}while(true) +>EIGHT : any + +}while(true) +>true : boolean diff --git a/tests/baselines/reference/doWhileContinueStatements.types b/tests/baselines/reference/doWhileContinueStatements.types index 398a8508e31..4ea77931486 100644 --- a/tests/baselines/reference/doWhileContinueStatements.types +++ b/tests/baselines/reference/doWhileContinueStatements.types @@ -2,41 +2,79 @@ do { continue; } while(true) +>true : boolean ONE: +>ONE : any + do { continue ONE; +>ONE : any } while (true) +>true : boolean TWO: +>TWO : any + THREE: +>THREE : any + do { continue THREE; +>THREE : any + }while (true) +>true : boolean FOUR: +>FOUR : any + do { FIVE: +>FIVE : any + do { continue FOUR; +>FOUR : any + }while (true) +>true : boolean + }while (true) +>true : boolean do { SIX: +>SIX : any + do continue SIX; while(true) +>SIX : any +>true : boolean + }while (true) +>true : boolean SEVEN: +>SEVEN : any + do do do continue SEVEN; while (true) while (true) while (true) +>SEVEN : any +>true : boolean +>true : boolean +>true : boolean EIGHT: +>EIGHT : any + do{ var fn = function () { } ->fn : () => void +>fn : () => void, Symbol(fn, Decl(doWhileContinueStatements.ts, 34, 7)) >function () { } : () => void continue EIGHT; -}while(true) +>EIGHT : any + +}while(true) +>true : boolean diff --git a/tests/baselines/reference/doWhileLoop.types b/tests/baselines/reference/doWhileLoop.types index 93f17659c64..633235210d7 100644 --- a/tests/baselines/reference/doWhileLoop.types +++ b/tests/baselines/reference/doWhileLoop.types @@ -1,5 +1,7 @@ === tests/cases/compiler/doWhileLoop.ts === do { } while (false); -var n; ->n : any +>false : boolean + +var n; +>n : any, Symbol(n, Decl(doWhileLoop.ts, 1, 3)) diff --git a/tests/baselines/reference/dottedModuleName2.types b/tests/baselines/reference/dottedModuleName2.types index e5a9806dd11..e734692d35f 100644 --- a/tests/baselines/reference/dottedModuleName2.types +++ b/tests/baselines/reference/dottedModuleName2.types @@ -1,76 +1,79 @@ === tests/cases/compiler/dottedModuleName2.ts === module A.B { ->A : typeof A ->B : typeof B +>A : typeof A, Symbol(A, Decl(dottedModuleName2.ts, 0, 0), Decl(dottedModuleName2.ts, 18, 21)) +>B : typeof B, Symbol(B, Decl(dottedModuleName2.ts, 0, 9), Decl(dottedModuleName2.ts, 21, 9)) export var x = 1; ->x : number +>x : number, Symbol(x, Decl(dottedModuleName2.ts, 2, 12)) +>1 : number } module AA { export module B { ->AA : typeof AA ->B : typeof B +>AA : typeof AA, Symbol(AA, Decl(dottedModuleName2.ts, 4, 1)) +>B : typeof B, Symbol(B, Decl(dottedModuleName2.ts, 8, 11)) export var x = 1; ->x : number +>x : number, Symbol(x, Decl(dottedModuleName2.ts, 10, 12)) +>1 : number } } var tmpOK = AA.B.x; ->tmpOK : number ->AA.B.x : number ->AA.B : typeof AA.B ->AA : typeof AA ->B : typeof AA.B ->x : number +>tmpOK : number, Symbol(tmpOK, Decl(dottedModuleName2.ts, 16, 3)) +>AA.B.x : number, Symbol(AA.B.x, Decl(dottedModuleName2.ts, 10, 12)) +>AA.B : typeof AA.B, Symbol(AA.B, Decl(dottedModuleName2.ts, 8, 11)) +>AA : typeof AA, Symbol(AA, Decl(dottedModuleName2.ts, 4, 1)) +>B : typeof AA.B, Symbol(AA.B, Decl(dottedModuleName2.ts, 8, 11)) +>x : number, Symbol(AA.B.x, Decl(dottedModuleName2.ts, 10, 12)) var tmpError = A.B.x; ->tmpError : number ->A.B.x : number ->A.B : typeof A.B ->A : typeof A ->B : typeof A.B ->x : number +>tmpError : number, Symbol(tmpError, Decl(dottedModuleName2.ts, 18, 3)) +>A.B.x : number, Symbol(A.B.x, Decl(dottedModuleName2.ts, 2, 12)) +>A.B : typeof A.B, Symbol(A.B, Decl(dottedModuleName2.ts, 0, 9), Decl(dottedModuleName2.ts, 21, 9)) +>A : typeof A, Symbol(A, Decl(dottedModuleName2.ts, 0, 0), Decl(dottedModuleName2.ts, 18, 21)) +>B : typeof A.B, Symbol(A.B, Decl(dottedModuleName2.ts, 0, 9), Decl(dottedModuleName2.ts, 21, 9)) +>x : number, Symbol(A.B.x, Decl(dottedModuleName2.ts, 2, 12)) module A.B.C ->A : typeof A ->B : typeof B ->C : typeof C +>A : typeof A, Symbol(A, Decl(dottedModuleName2.ts, 0, 0), Decl(dottedModuleName2.ts, 18, 21)) +>B : typeof B, Symbol(B, Decl(dottedModuleName2.ts, 0, 9), Decl(dottedModuleName2.ts, 21, 9)) +>C : typeof C, Symbol(C, Decl(dottedModuleName2.ts, 21, 11)) { export var x = 1; ->x : number +>x : number, Symbol(x, Decl(dottedModuleName2.ts, 25, 14)) +>1 : number } module M ->M : unknown +>M : any, Symbol(M, Decl(dottedModuleName2.ts, 27, 1)) { import X1 = A; ->X1 : typeof X1 ->A : typeof X1 +>X1 : typeof X1, Symbol(X1, Decl(dottedModuleName2.ts, 33, 1)) +>A : typeof X1, Symbol(X1, Decl(dottedModuleName2.ts, 0, 0), Decl(dottedModuleName2.ts, 18, 21)) import X2 = A.B; ->X2 : typeof X1.B ->A : typeof X1 ->B : typeof X1.B +>X2 : typeof X1.B, Symbol(X2, Decl(dottedModuleName2.ts, 35, 18)) +>A : typeof X1, Symbol(X1, Decl(dottedModuleName2.ts, 0, 0), Decl(dottedModuleName2.ts, 18, 21)) +>B : typeof X1.B, Symbol(X1.B, Decl(dottedModuleName2.ts, 0, 9), Decl(dottedModuleName2.ts, 21, 9)) import X3 = A.B.C; ->X3 : typeof X2.C ->A : typeof X1 ->B : typeof X1.B ->C : typeof X2.C +>X3 : typeof X2.C, Symbol(X3, Decl(dottedModuleName2.ts, 37, 20)) +>A : typeof X1, Symbol(X1, Decl(dottedModuleName2.ts, 0, 0), Decl(dottedModuleName2.ts, 18, 21)) +>B : typeof X1.B, Symbol(X1.B, Decl(dottedModuleName2.ts, 0, 9), Decl(dottedModuleName2.ts, 21, 9)) +>C : typeof X2.C, Symbol(X2.C, Decl(dottedModuleName2.ts, 21, 11)) } diff --git a/tests/baselines/reference/dottedSymbolResolution1.types b/tests/baselines/reference/dottedSymbolResolution1.types index 776b9704e73..620d33706a0 100644 --- a/tests/baselines/reference/dottedSymbolResolution1.types +++ b/tests/baselines/reference/dottedSymbolResolution1.types @@ -1,86 +1,90 @@ === tests/cases/compiler/dottedSymbolResolution1.ts === interface JQuery { ->JQuery : JQuery +>JQuery : JQuery, Symbol(JQuery, Decl(dottedSymbolResolution1.ts, 0, 0)) find(selector: string): JQuery; ->find : (selector: string) => JQuery ->selector : string ->JQuery : JQuery +>find : (selector: string) => JQuery, Symbol(find, Decl(dottedSymbolResolution1.ts, 0, 18)) +>selector : string, Symbol(selector, Decl(dottedSymbolResolution1.ts, 1, 9)) +>JQuery : JQuery, Symbol(JQuery, Decl(dottedSymbolResolution1.ts, 0, 0)) } interface JQueryStatic { ->JQueryStatic : JQueryStatic +>JQueryStatic : JQueryStatic, Symbol(JQueryStatic, Decl(dottedSymbolResolution1.ts, 2, 1)) (selector: string): JQuery; ->selector : string ->JQuery : JQuery +>selector : string, Symbol(selector, Decl(dottedSymbolResolution1.ts, 6, 5)) +>JQuery : JQuery, Symbol(JQuery, Decl(dottedSymbolResolution1.ts, 0, 0)) (object: JQuery): JQuery; ->object : JQuery ->JQuery : JQuery ->JQuery : JQuery +>object : JQuery, Symbol(object, Decl(dottedSymbolResolution1.ts, 7, 5)) +>JQuery : JQuery, Symbol(JQuery, Decl(dottedSymbolResolution1.ts, 0, 0)) +>JQuery : JQuery, Symbol(JQuery, Decl(dottedSymbolResolution1.ts, 0, 0)) } class Base { foo() { } } ->Base : Base ->foo : () => void +>Base : Base, Symbol(Base, Decl(dottedSymbolResolution1.ts, 8, 1)) +>foo : () => void, Symbol(foo, Decl(dottedSymbolResolution1.ts, 10, 12)) function each(collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; ->each : { (collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; (collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; } ->collection : string ->callback : (indexInArray: any, valueOfElement: any) => any ->indexInArray : any ->valueOfElement : any +>each : { (collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; (collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; }, Symbol(each, Decl(dottedSymbolResolution1.ts, 10, 24), Decl(dottedSymbolResolution1.ts, 12, 98), Decl(dottedSymbolResolution1.ts, 13, 102)) +>collection : string, Symbol(collection, Decl(dottedSymbolResolution1.ts, 12, 14)) +>callback : (indexInArray: any, valueOfElement: any) => any, Symbol(callback, Decl(dottedSymbolResolution1.ts, 12, 33)) +>indexInArray : any, Symbol(indexInArray, Decl(dottedSymbolResolution1.ts, 12, 45)) +>valueOfElement : any, Symbol(valueOfElement, Decl(dottedSymbolResolution1.ts, 12, 63)) function each(collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; ->each : { (collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; (collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; } ->collection : JQuery ->JQuery : JQuery ->callback : (indexInArray: number, valueOfElement: Base) => any ->indexInArray : number ->valueOfElement : Base ->Base : Base +>each : { (collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; (collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; }, Symbol(each, Decl(dottedSymbolResolution1.ts, 10, 24), Decl(dottedSymbolResolution1.ts, 12, 98), Decl(dottedSymbolResolution1.ts, 13, 102)) +>collection : JQuery, Symbol(collection, Decl(dottedSymbolResolution1.ts, 13, 14)) +>JQuery : JQuery, Symbol(JQuery, Decl(dottedSymbolResolution1.ts, 0, 0)) +>callback : (indexInArray: number, valueOfElement: Base) => any, Symbol(callback, Decl(dottedSymbolResolution1.ts, 13, 33)) +>indexInArray : number, Symbol(indexInArray, Decl(dottedSymbolResolution1.ts, 13, 45)) +>valueOfElement : Base, Symbol(valueOfElement, Decl(dottedSymbolResolution1.ts, 13, 66)) +>Base : Base, Symbol(Base, Decl(dottedSymbolResolution1.ts, 8, 1)) function each(collection: any, callback: (indexInArray: any, valueOfElement: any) => any): any { ->each : { (collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; (collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; } ->collection : any ->callback : (indexInArray: any, valueOfElement: any) => any ->indexInArray : any ->valueOfElement : any +>each : { (collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; (collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; }, Symbol(each, Decl(dottedSymbolResolution1.ts, 10, 24), Decl(dottedSymbolResolution1.ts, 12, 98), Decl(dottedSymbolResolution1.ts, 13, 102)) +>collection : any, Symbol(collection, Decl(dottedSymbolResolution1.ts, 14, 14)) +>callback : (indexInArray: any, valueOfElement: any) => any, Symbol(callback, Decl(dottedSymbolResolution1.ts, 14, 30)) +>indexInArray : any, Symbol(indexInArray, Decl(dottedSymbolResolution1.ts, 14, 42)) +>valueOfElement : any, Symbol(valueOfElement, Decl(dottedSymbolResolution1.ts, 14, 60)) return null; +>null : null } function _setBarAndText(): void { ->_setBarAndText : () => void +>_setBarAndText : () => void, Symbol(_setBarAndText, Decl(dottedSymbolResolution1.ts, 16, 1)) var x: JQuery, $: JQueryStatic ->x : JQuery ->JQuery : JQuery ->$ : JQueryStatic ->JQueryStatic : JQueryStatic +>x : JQuery, Symbol(x, Decl(dottedSymbolResolution1.ts, 19, 7)) +>JQuery : JQuery, Symbol(JQuery, Decl(dottedSymbolResolution1.ts, 0, 0)) +>$ : JQueryStatic, Symbol($, Decl(dottedSymbolResolution1.ts, 19, 18)) +>JQueryStatic : JQueryStatic, Symbol(JQueryStatic, Decl(dottedSymbolResolution1.ts, 2, 1)) each(x.find(" "), function () { >each(x.find(" "), function () { var $this: JQuery = $(''), thisBar = $this.find(".fx-usagebars-calloutbar-this"); // bug lead to 'could not find dotted symbol' here } ) : any ->each : { (collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; (collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; } +>each : { (collection: string, callback: (indexInArray: any, valueOfElement: any) => any): any; (collection: JQuery, callback: (indexInArray: number, valueOfElement: Base) => any): any; }, Symbol(each, Decl(dottedSymbolResolution1.ts, 10, 24), Decl(dottedSymbolResolution1.ts, 12, 98), Decl(dottedSymbolResolution1.ts, 13, 102)) >x.find(" ") : JQuery ->x.find : (selector: string) => JQuery ->x : JQuery ->find : (selector: string) => JQuery +>x.find : (selector: string) => JQuery, Symbol(JQuery.find, Decl(dottedSymbolResolution1.ts, 0, 18)) +>x : JQuery, Symbol(x, Decl(dottedSymbolResolution1.ts, 19, 7)) +>find : (selector: string) => JQuery, Symbol(JQuery.find, Decl(dottedSymbolResolution1.ts, 0, 18)) +>" " : string >function () { var $this: JQuery = $(''), thisBar = $this.find(".fx-usagebars-calloutbar-this"); // bug lead to 'could not find dotted symbol' here } : () => void var $this: JQuery = $(''), ->$this : JQuery ->JQuery : JQuery +>$this : JQuery, Symbol($this, Decl(dottedSymbolResolution1.ts, 21, 11)) +>JQuery : JQuery, Symbol(JQuery, Decl(dottedSymbolResolution1.ts, 0, 0)) >$('') : JQuery ->$ : JQueryStatic +>$ : JQueryStatic, Symbol($, Decl(dottedSymbolResolution1.ts, 19, 18)) +>'' : string thisBar = $this.find(".fx-usagebars-calloutbar-this"); // bug lead to 'could not find dotted symbol' here ->thisBar : JQuery +>thisBar : JQuery, Symbol(thisBar, Decl(dottedSymbolResolution1.ts, 21, 34)) >$this.find(".fx-usagebars-calloutbar-this") : JQuery ->$this.find : (selector: string) => JQuery ->$this : JQuery ->find : (selector: string) => JQuery +>$this.find : (selector: string) => JQuery, Symbol(JQuery.find, Decl(dottedSymbolResolution1.ts, 0, 18)) +>$this : JQuery, Symbol($this, Decl(dottedSymbolResolution1.ts, 21, 11)) +>find : (selector: string) => JQuery, Symbol(JQuery.find, Decl(dottedSymbolResolution1.ts, 0, 18)) +>".fx-usagebars-calloutbar-this" : string } ); } diff --git a/tests/baselines/reference/downlevelLetConst10.types b/tests/baselines/reference/downlevelLetConst10.types index 05fe3029455..3b272dfbe60 100644 --- a/tests/baselines/reference/downlevelLetConst10.types +++ b/tests/baselines/reference/downlevelLetConst10.types @@ -1,4 +1,5 @@ === tests/cases/compiler/downlevelLetConst10.ts === let a: number = 1 ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst10.ts, 0, 3)) +>1 : number diff --git a/tests/baselines/reference/downlevelLetConst12.types b/tests/baselines/reference/downlevelLetConst12.types index 90a814e0753..cf7aa8931c2 100644 --- a/tests/baselines/reference/downlevelLetConst12.types +++ b/tests/baselines/reference/downlevelLetConst12.types @@ -1,30 +1,35 @@ === tests/cases/compiler/downlevelLetConst12.ts === 'use strict' +>'use strict' : string + // top level let\const should not be renamed let foo; ->foo : any +>foo : any, Symbol(foo, Decl(downlevelLetConst12.ts, 3, 3)) const bar = 1; ->bar : number +>bar : number, Symbol(bar, Decl(downlevelLetConst12.ts, 4, 5)) +>1 : number let [baz] = []; ->baz : any +>baz : any, Symbol(baz, Decl(downlevelLetConst12.ts, 6, 5)) >[] : undefined[] let {a: baz2} = { a: 1 }; ->a : unknown ->baz2 : number +>a : any +>baz2 : number, Symbol(baz2, Decl(downlevelLetConst12.ts, 7, 5)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst12.ts, 7, 17)) +>1 : number const [baz3] = [] ->baz3 : any +>baz3 : any, Symbol(baz3, Decl(downlevelLetConst12.ts, 9, 7)) >[] : undefined[] const {a: baz4} = { a: 1 }; ->a : unknown ->baz4 : number +>a : any +>baz4 : number, Symbol(baz4, Decl(downlevelLetConst12.ts, 10, 7)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst12.ts, 10, 19)) +>1 : number diff --git a/tests/baselines/reference/downlevelLetConst13.types b/tests/baselines/reference/downlevelLetConst13.types index e72e3936f43..91318e6502c 100644 --- a/tests/baselines/reference/downlevelLetConst13.types +++ b/tests/baselines/reference/downlevelLetConst13.types @@ -1,60 +1,74 @@ === tests/cases/compiler/downlevelLetConst13.ts === 'use strict' +>'use strict' : string + // exported let\const bindings should not be renamed export let foo = 10; ->foo : number +>foo : number, Symbol(foo, Decl(downlevelLetConst13.ts, 4, 10)) +>10 : number export const bar = "123" ->bar : string +>bar : string, Symbol(bar, Decl(downlevelLetConst13.ts, 5, 12)) +>"123" : string export let [bar1] = [1]; ->bar1 : number +>bar1 : number, Symbol(bar1, Decl(downlevelLetConst13.ts, 6, 12)) >[1] : [number] +>1 : number export const [bar2] = [2]; ->bar2 : number +>bar2 : number, Symbol(bar2, Decl(downlevelLetConst13.ts, 7, 14)) >[2] : [number] +>2 : number export let {a: bar3} = { a: 1 }; ->a : unknown ->bar3 : number +>a : any +>bar3 : number, Symbol(bar3, Decl(downlevelLetConst13.ts, 8, 12)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst13.ts, 8, 24)) +>1 : number export const {a: bar4} = { a: 1 }; ->a : unknown ->bar4 : number +>a : any +>bar4 : number, Symbol(bar4, Decl(downlevelLetConst13.ts, 9, 14)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst13.ts, 9, 26)) +>1 : number export module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(downlevelLetConst13.ts, 9, 34)) export let baz = 100; ->baz : number +>baz : number, Symbol(baz, Decl(downlevelLetConst13.ts, 12, 14)) +>100 : number export const baz2 = true; ->baz2 : boolean +>baz2 : boolean, Symbol(baz2, Decl(downlevelLetConst13.ts, 13, 16)) +>true : boolean export let [bar5] = [1]; ->bar5 : number +>bar5 : number, Symbol(bar5, Decl(downlevelLetConst13.ts, 14, 16)) >[1] : [number] +>1 : number export const [bar6] = [2]; ->bar6 : number +>bar6 : number, Symbol(bar6, Decl(downlevelLetConst13.ts, 15, 18)) >[2] : [number] +>2 : number export let {a: bar7} = { a: 1 }; ->a : unknown ->bar7 : number +>a : any +>bar7 : number, Symbol(bar7, Decl(downlevelLetConst13.ts, 16, 16)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst13.ts, 16, 28)) +>1 : number export const {a: bar8} = { a: 1 }; ->a : unknown ->bar8 : number +>a : any +>bar8 : number, Symbol(bar8, Decl(downlevelLetConst13.ts, 17, 18)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst13.ts, 17, 30)) +>1 : number } diff --git a/tests/baselines/reference/downlevelLetConst14.types b/tests/baselines/reference/downlevelLetConst14.types index 05b66948830..67f171b0d3c 100644 --- a/tests/baselines/reference/downlevelLetConst14.types +++ b/tests/baselines/reference/downlevelLetConst14.types @@ -1,178 +1,197 @@ === tests/cases/compiler/downlevelLetConst14.ts === 'use strict' +>'use strict' : string + declare function use(a: any); ->use : (a: any) => any ->a : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>a : any, Symbol(a, Decl(downlevelLetConst14.ts, 1, 21)) var x = 10; ->x : number +>x : number, Symbol(x, Decl(downlevelLetConst14.ts, 3, 3)) +>10 : number var z0, z1, z2, z3; ->z0 : any ->z1 : any ->z2 : any ->z3 : any +>z0 : any, Symbol(z0, Decl(downlevelLetConst14.ts, 4, 3)) +>z1 : any, Symbol(z1, Decl(downlevelLetConst14.ts, 4, 7)) +>z2 : any, Symbol(z2, Decl(downlevelLetConst14.ts, 4, 11)) +>z3 : any, Symbol(z3, Decl(downlevelLetConst14.ts, 4, 15)) { let x = 20; ->x : number +>x : number, Symbol(x, Decl(downlevelLetConst14.ts, 6, 7)) +>20 : number use(x); >use(x) : any ->use : (a: any) => any ->x : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>x : number, Symbol(x, Decl(downlevelLetConst14.ts, 6, 7)) let [z0] = [1]; ->z0 : number +>z0 : number, Symbol(z0, Decl(downlevelLetConst14.ts, 9, 9)) >[1] : [number] +>1 : number use(z0); >use(z0) : any ->use : (a: any) => any ->z0 : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z0 : number, Symbol(z0, Decl(downlevelLetConst14.ts, 9, 9)) let [z1] = [1] ->z1 : number +>z1 : number, Symbol(z1, Decl(downlevelLetConst14.ts, 11, 9)) >[1] : [number] +>1 : number use(z1); >use(z1) : any ->use : (a: any) => any ->z1 : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z1 : number, Symbol(z1, Decl(downlevelLetConst14.ts, 11, 9)) let {a: z2} = { a: 1 }; ->a : unknown ->z2 : number +>a : any +>z2 : number, Symbol(z2, Decl(downlevelLetConst14.ts, 13, 9)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst14.ts, 13, 19)) +>1 : number use(z2); >use(z2) : any ->use : (a: any) => any ->z2 : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z2 : number, Symbol(z2, Decl(downlevelLetConst14.ts, 13, 9)) let {a: z3} = { a: 1 }; ->a : unknown ->z3 : number +>a : any +>z3 : number, Symbol(z3, Decl(downlevelLetConst14.ts, 15, 9)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst14.ts, 15, 19)) +>1 : number use(z3); >use(z3) : any ->use : (a: any) => any ->z3 : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z3 : number, Symbol(z3, Decl(downlevelLetConst14.ts, 15, 9)) } use(x); >use(x) : any ->use : (a: any) => any ->x : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>x : number, Symbol(x, Decl(downlevelLetConst14.ts, 3, 3)) use(z0); >use(z0) : any ->use : (a: any) => any ->z0 : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z0 : any, Symbol(z0, Decl(downlevelLetConst14.ts, 4, 3)) use(z1); >use(z1) : any ->use : (a: any) => any ->z1 : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z1 : any, Symbol(z1, Decl(downlevelLetConst14.ts, 4, 7)) use(z2); >use(z2) : any ->use : (a: any) => any ->z2 : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z2 : any, Symbol(z2, Decl(downlevelLetConst14.ts, 4, 11)) use(z3); >use(z3) : any ->use : (a: any) => any ->z3 : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z3 : any, Symbol(z3, Decl(downlevelLetConst14.ts, 4, 15)) var z6; ->z6 : any +>z6 : any, Symbol(z6, Decl(downlevelLetConst14.ts, 23, 3)) var y = true; ->y : boolean +>y : boolean, Symbol(y, Decl(downlevelLetConst14.ts, 24, 3)) +>true : boolean { let y = ""; ->y : string +>y : string, Symbol(y, Decl(downlevelLetConst14.ts, 26, 7)) +>"" : string let [z6] = [true] ->z6 : boolean +>z6 : boolean, Symbol(z6, Decl(downlevelLetConst14.ts, 27, 9)) >[true] : [boolean] +>true : boolean { let y = 1; ->y : number +>y : number, Symbol(y, Decl(downlevelLetConst14.ts, 29, 11)) +>1 : number let {a: z6} = {a: 1} ->a : unknown ->z6 : number +>a : any +>z6 : number, Symbol(z6, Decl(downlevelLetConst14.ts, 30, 13)) >{a: 1} : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst14.ts, 30, 23)) +>1 : number use(y); >use(y) : any ->use : (a: any) => any ->y : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>y : number, Symbol(y, Decl(downlevelLetConst14.ts, 29, 11)) use(z6); >use(z6) : any ->use : (a: any) => any ->z6 : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z6 : number, Symbol(z6, Decl(downlevelLetConst14.ts, 30, 13)) } use(y); >use(y) : any ->use : (a: any) => any ->y : string +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>y : string, Symbol(y, Decl(downlevelLetConst14.ts, 26, 7)) use(z6); >use(z6) : any ->use : (a: any) => any ->z6 : boolean +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z6 : boolean, Symbol(z6, Decl(downlevelLetConst14.ts, 27, 9)) } use(y); >use(y) : any ->use : (a: any) => any ->y : boolean +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>y : boolean, Symbol(y, Decl(downlevelLetConst14.ts, 24, 3)) use(z6); >use(z6) : any ->use : (a: any) => any ->z6 : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z6 : any, Symbol(z6, Decl(downlevelLetConst14.ts, 23, 3)) var z = false; ->z : boolean +>z : boolean, Symbol(z, Decl(downlevelLetConst14.ts, 40, 3)) +>false : boolean var z5 = 1; ->z5 : number +>z5 : number, Symbol(z5, Decl(downlevelLetConst14.ts, 41, 3)) +>1 : number { let z = ""; ->z : string +>z : string, Symbol(z, Decl(downlevelLetConst14.ts, 43, 7)) +>"" : string let [z5] = [5]; ->z5 : number +>z5 : number, Symbol(z5, Decl(downlevelLetConst14.ts, 44, 9)) >[5] : [number] +>5 : number { let _z = 1; ->_z : number +>_z : number, Symbol(_z, Decl(downlevelLetConst14.ts, 46, 11)) +>1 : number let {a: _z5} = { a: 1 }; ->a : unknown ->_z5 : number +>a : any +>_z5 : number, Symbol(_z5, Decl(downlevelLetConst14.ts, 47, 13)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst14.ts, 47, 24)) +>1 : number // try to step on generated name use(_z); >use(_z) : any ->use : (a: any) => any ->_z : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>_z : number, Symbol(_z, Decl(downlevelLetConst14.ts, 46, 11)) } use(z); >use(z) : any ->use : (a: any) => any ->z : string +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>z : string, Symbol(z, Decl(downlevelLetConst14.ts, 43, 7)) } use(y); >use(y) : any ->use : (a: any) => any ->y : boolean +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst14.ts, 0, 12)) +>y : boolean, Symbol(y, Decl(downlevelLetConst14.ts, 24, 3)) diff --git a/tests/baselines/reference/downlevelLetConst15.types b/tests/baselines/reference/downlevelLetConst15.types index 008d132ab70..abeaa0d1e14 100644 --- a/tests/baselines/reference/downlevelLetConst15.types +++ b/tests/baselines/reference/downlevelLetConst15.types @@ -1,184 +1,203 @@ === tests/cases/compiler/downlevelLetConst15.ts === 'use strict' +>'use strict' : string + declare function use(a: any); ->use : (a: any) => any ->a : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>a : any, Symbol(a, Decl(downlevelLetConst15.ts, 1, 21)) var x = 10; ->x : number +>x : number, Symbol(x, Decl(downlevelLetConst15.ts, 3, 3)) +>10 : number var z0, z1, z2, z3; ->z0 : any ->z1 : any ->z2 : any ->z3 : any +>z0 : any, Symbol(z0, Decl(downlevelLetConst15.ts, 4, 3)) +>z1 : any, Symbol(z1, Decl(downlevelLetConst15.ts, 4, 7)) +>z2 : any, Symbol(z2, Decl(downlevelLetConst15.ts, 4, 11)) +>z3 : any, Symbol(z3, Decl(downlevelLetConst15.ts, 4, 15)) { const x = 20; ->x : number +>x : number, Symbol(x, Decl(downlevelLetConst15.ts, 6, 9)) +>20 : number use(x); >use(x) : any ->use : (a: any) => any ->x : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>x : number, Symbol(x, Decl(downlevelLetConst15.ts, 6, 9)) const [z0] = [1]; ->z0 : number +>z0 : number, Symbol(z0, Decl(downlevelLetConst15.ts, 9, 11)) >[1] : [number] +>1 : number use(z0); >use(z0) : any ->use : (a: any) => any ->z0 : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z0 : number, Symbol(z0, Decl(downlevelLetConst15.ts, 9, 11)) const [{a: z1}] = [{a: 1}] ->a : unknown ->z1 : number +>a : any +>z1 : number, Symbol(z1, Decl(downlevelLetConst15.ts, 11, 12)) >[{a: 1}] : [{ a: number; }] >{a: 1} : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst15.ts, 11, 24)) +>1 : number use(z1); >use(z1) : any ->use : (a: any) => any ->z1 : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z1 : number, Symbol(z1, Decl(downlevelLetConst15.ts, 11, 12)) const {a: z2} = { a: 1 }; ->a : unknown ->z2 : number +>a : any +>z2 : number, Symbol(z2, Decl(downlevelLetConst15.ts, 13, 11)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst15.ts, 13, 21)) +>1 : number use(z2); >use(z2) : any ->use : (a: any) => any ->z2 : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z2 : number, Symbol(z2, Decl(downlevelLetConst15.ts, 13, 11)) const {a: {b: z3}} = { a: {b: 1} }; ->a : unknown ->b : unknown ->z3 : number +>a : any +>b : any +>z3 : number, Symbol(z3, Decl(downlevelLetConst15.ts, 15, 15)) >{ a: {b: 1} } : { a: { b: number; }; } ->a : { b: number; } +>a : { b: number; }, Symbol(a, Decl(downlevelLetConst15.ts, 15, 26)) >{b: 1} : { b: number; } ->b : number +>b : number, Symbol(b, Decl(downlevelLetConst15.ts, 15, 31)) +>1 : number use(z3); >use(z3) : any ->use : (a: any) => any ->z3 : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z3 : number, Symbol(z3, Decl(downlevelLetConst15.ts, 15, 15)) } use(x); >use(x) : any ->use : (a: any) => any ->x : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>x : number, Symbol(x, Decl(downlevelLetConst15.ts, 3, 3)) use(z0); >use(z0) : any ->use : (a: any) => any ->z0 : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z0 : any, Symbol(z0, Decl(downlevelLetConst15.ts, 4, 3)) use(z1); >use(z1) : any ->use : (a: any) => any ->z1 : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z1 : any, Symbol(z1, Decl(downlevelLetConst15.ts, 4, 7)) use(z2); >use(z2) : any ->use : (a: any) => any ->z2 : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z2 : any, Symbol(z2, Decl(downlevelLetConst15.ts, 4, 11)) use(z3); >use(z3) : any ->use : (a: any) => any ->z3 : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z3 : any, Symbol(z3, Decl(downlevelLetConst15.ts, 4, 15)) var z6; ->z6 : any +>z6 : any, Symbol(z6, Decl(downlevelLetConst15.ts, 23, 3)) var y = true; ->y : boolean +>y : boolean, Symbol(y, Decl(downlevelLetConst15.ts, 24, 3)) +>true : boolean { const y = ""; ->y : string +>y : string, Symbol(y, Decl(downlevelLetConst15.ts, 26, 9)) +>"" : string const [z6] = [true] ->z6 : boolean +>z6 : boolean, Symbol(z6, Decl(downlevelLetConst15.ts, 27, 11)) >[true] : [boolean] +>true : boolean { const y = 1; ->y : number +>y : number, Symbol(y, Decl(downlevelLetConst15.ts, 29, 13)) +>1 : number const {a: z6} = { a: 1 } ->a : unknown ->z6 : number +>a : any +>z6 : number, Symbol(z6, Decl(downlevelLetConst15.ts, 30, 15)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst15.ts, 30, 25)) +>1 : number use(y); >use(y) : any ->use : (a: any) => any ->y : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>y : number, Symbol(y, Decl(downlevelLetConst15.ts, 29, 13)) use(z6); >use(z6) : any ->use : (a: any) => any ->z6 : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z6 : number, Symbol(z6, Decl(downlevelLetConst15.ts, 30, 15)) } use(y); >use(y) : any ->use : (a: any) => any ->y : string +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>y : string, Symbol(y, Decl(downlevelLetConst15.ts, 26, 9)) use(z6); >use(z6) : any ->use : (a: any) => any ->z6 : boolean +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z6 : boolean, Symbol(z6, Decl(downlevelLetConst15.ts, 27, 11)) } use(y); >use(y) : any ->use : (a: any) => any ->y : boolean +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>y : boolean, Symbol(y, Decl(downlevelLetConst15.ts, 24, 3)) use(z6); >use(z6) : any ->use : (a: any) => any ->z6 : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z6 : any, Symbol(z6, Decl(downlevelLetConst15.ts, 23, 3)) var z = false; ->z : boolean +>z : boolean, Symbol(z, Decl(downlevelLetConst15.ts, 40, 3)) +>false : boolean var z5 = 1; ->z5 : number +>z5 : number, Symbol(z5, Decl(downlevelLetConst15.ts, 41, 3)) +>1 : number { const z = ""; ->z : string +>z : string, Symbol(z, Decl(downlevelLetConst15.ts, 43, 9)) +>"" : string const [z5] = [5]; ->z5 : number +>z5 : number, Symbol(z5, Decl(downlevelLetConst15.ts, 44, 11)) >[5] : [number] +>5 : number { const _z = 1; ->_z : number +>_z : number, Symbol(_z, Decl(downlevelLetConst15.ts, 46, 13)) +>1 : number const {a: _z5} = { a: 1 }; ->a : unknown ->_z5 : number +>a : any +>_z5 : number, Symbol(_z5, Decl(downlevelLetConst15.ts, 47, 15)) >{ a: 1 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst15.ts, 47, 26)) +>1 : number // try to step on generated name use(_z); >use(_z) : any ->use : (a: any) => any ->_z : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>_z : number, Symbol(_z, Decl(downlevelLetConst15.ts, 46, 13)) } use(z); >use(z) : any ->use : (a: any) => any ->z : string +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>z : string, Symbol(z, Decl(downlevelLetConst15.ts, 43, 9)) } use(y); >use(y) : any ->use : (a: any) => any ->y : boolean +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst15.ts, 0, 12)) +>y : boolean, Symbol(y, Decl(downlevelLetConst15.ts, 24, 3)) diff --git a/tests/baselines/reference/downlevelLetConst17.types b/tests/baselines/reference/downlevelLetConst17.types index 0c5a8eaa86b..e8042e49b4b 100644 --- a/tests/baselines/reference/downlevelLetConst17.types +++ b/tests/baselines/reference/downlevelLetConst17.types @@ -1,154 +1,169 @@ === tests/cases/compiler/downlevelLetConst17.ts === 'use strict' +>'use strict' : string declare function use(a: any); ->use : (a: any) => any ->a : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>a : any, Symbol(a, Decl(downlevelLetConst17.ts, 2, 21)) var x; ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 4, 3)) for (let x = 10; ;) { ->x : number +>x : number, Symbol(x, Decl(downlevelLetConst17.ts, 5, 8)) +>10 : number use(x); >use(x) : any ->use : (a: any) => any ->x : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : number, Symbol(x, Decl(downlevelLetConst17.ts, 5, 8)) } use(x); >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 4, 3)) for (const x = 10; ;) { ->x : number +>x : number, Symbol(x, Decl(downlevelLetConst17.ts, 10, 10)) +>10 : number use(x); >use(x) : any ->use : (a: any) => any ->x : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : number, Symbol(x, Decl(downlevelLetConst17.ts, 10, 10)) } for (; ;) { let x = 10; ->x : number +>x : number, Symbol(x, Decl(downlevelLetConst17.ts, 15, 7)) +>10 : number use(x); >use(x) : any ->use : (a: any) => any ->x : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : number, Symbol(x, Decl(downlevelLetConst17.ts, 15, 7)) x = 1; >x = 1 : number ->x : number +>x : number, Symbol(x, Decl(downlevelLetConst17.ts, 15, 7)) +>1 : number } for (; ;) { const x = 10; ->x : number +>x : number, Symbol(x, Decl(downlevelLetConst17.ts, 21, 9)) +>10 : number use(x); >use(x) : any ->use : (a: any) => any ->x : number +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : number, Symbol(x, Decl(downlevelLetConst17.ts, 21, 9)) } for (let x; ;) { ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 25, 8)) use(x); >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 25, 8)) x = 1; >x = 1 : number ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 25, 8)) +>1 : number } for (; ;) { let x; ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 31, 7)) use(x); >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 31, 7)) x = 1; >x = 1 : number ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 31, 7)) +>1 : number } while (true) { +>true : boolean + let x; ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 37, 7)) use(x); >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 37, 7)) } while (true) { +>true : boolean + const x = true; ->x : boolean +>x : boolean, Symbol(x, Decl(downlevelLetConst17.ts, 42, 9)) +>true : boolean use(x); >use(x) : any ->use : (a: any) => any ->x : boolean +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : boolean, Symbol(x, Decl(downlevelLetConst17.ts, 42, 9)) } do { let x; ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 47, 7)) use(x); >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 47, 7)) } while (true); +>true : boolean do { let x; ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 52, 7)) use(x); >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 52, 7)) } while (true); +>true : boolean for (let x in []) { ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 56, 8)) >[] : undefined[] use(x); >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 56, 8)) } for (const x in []) { ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 60, 10)) >[] : undefined[] use(x); >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 60, 10)) } for (const x of []) { ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 64, 10)) >[] : undefined[] use(x); >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst17.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst17.ts, 64, 10)) } diff --git a/tests/baselines/reference/downlevelLetConst19.types b/tests/baselines/reference/downlevelLetConst19.types index 492d10b59c9..0873a976b09 100644 --- a/tests/baselines/reference/downlevelLetConst19.types +++ b/tests/baselines/reference/downlevelLetConst19.types @@ -1,47 +1,49 @@ === tests/cases/compiler/downlevelLetConst19.ts === 'use strict' +>'use strict' : string + declare function use(a: any); ->use : (a: any) => any ->a : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst19.ts, 0, 12)) +>a : any, Symbol(a, Decl(downlevelLetConst19.ts, 1, 21)) var x; ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst19.ts, 2, 3)) function a() { ->a : () => void +>a : () => void, Symbol(a, Decl(downlevelLetConst19.ts, 2, 6)) { let x; ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst19.ts, 5, 7)) use(x); >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst19.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst19.ts, 5, 7)) function b() { ->b : () => void +>b : () => void, Symbol(b, Decl(downlevelLetConst19.ts, 6, 11)) { let x; ->x : any +>x : any, Symbol(x, Decl(downlevelLetConst19.ts, 10, 15)) use(x); >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst19.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst19.ts, 10, 15)) } use(x); >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst19.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst19.ts, 5, 7)) } } use(x) >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst19.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst19.ts, 2, 3)) } use(x) >use(x) : any ->use : (a: any) => any ->x : any +>use : (a: any) => any, Symbol(use, Decl(downlevelLetConst19.ts, 0, 12)) +>x : any, Symbol(x, Decl(downlevelLetConst19.ts, 2, 3)) diff --git a/tests/baselines/reference/downlevelLetConst3.types b/tests/baselines/reference/downlevelLetConst3.types index 6cd3f85e074..d1eb3f8d46f 100644 --- a/tests/baselines/reference/downlevelLetConst3.types +++ b/tests/baselines/reference/downlevelLetConst3.types @@ -1,4 +1,5 @@ === tests/cases/compiler/downlevelLetConst3.ts === const a = 1 ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst3.ts, 0, 5)) +>1 : number diff --git a/tests/baselines/reference/downlevelLetConst5.types b/tests/baselines/reference/downlevelLetConst5.types index dd8cdf9fcdd..4533be88818 100644 --- a/tests/baselines/reference/downlevelLetConst5.types +++ b/tests/baselines/reference/downlevelLetConst5.types @@ -1,4 +1,5 @@ === tests/cases/compiler/downlevelLetConst5.ts === const a: number = 1 ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst5.ts, 0, 5)) +>1 : number diff --git a/tests/baselines/reference/downlevelLetConst7.types b/tests/baselines/reference/downlevelLetConst7.types index 9c76479ecf5..3022946eb3c 100644 --- a/tests/baselines/reference/downlevelLetConst7.types +++ b/tests/baselines/reference/downlevelLetConst7.types @@ -1,4 +1,4 @@ === tests/cases/compiler/downlevelLetConst7.ts === let a ->a : any +>a : any, Symbol(a, Decl(downlevelLetConst7.ts, 0, 3)) diff --git a/tests/baselines/reference/downlevelLetConst8.types b/tests/baselines/reference/downlevelLetConst8.types index a3b9986bbc8..9ad7bd00045 100644 --- a/tests/baselines/reference/downlevelLetConst8.types +++ b/tests/baselines/reference/downlevelLetConst8.types @@ -1,4 +1,5 @@ === tests/cases/compiler/downlevelLetConst8.ts === let a = 1 ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst8.ts, 0, 3)) +>1 : number diff --git a/tests/baselines/reference/downlevelLetConst9.types b/tests/baselines/reference/downlevelLetConst9.types index cab9ac82a60..bb40880ec34 100644 --- a/tests/baselines/reference/downlevelLetConst9.types +++ b/tests/baselines/reference/downlevelLetConst9.types @@ -1,4 +1,4 @@ === tests/cases/compiler/downlevelLetConst9.ts === let a: number ->a : number +>a : number, Symbol(a, Decl(downlevelLetConst9.ts, 0, 3)) diff --git a/tests/baselines/reference/duplicateAnonymousInners1.types b/tests/baselines/reference/duplicateAnonymousInners1.types index 7c63fb4163b..46ef59b975b 100644 --- a/tests/baselines/reference/duplicateAnonymousInners1.types +++ b/tests/baselines/reference/duplicateAnonymousInners1.types @@ -1,28 +1,29 @@ === tests/cases/compiler/duplicateAnonymousInners1.ts === module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(duplicateAnonymousInners1.ts, 0, 0), Decl(duplicateAnonymousInners1.ts, 10, 1)) class Helper { ->Helper : Helper +>Helper : Helper, Symbol(Helper, Decl(duplicateAnonymousInners1.ts, 0, 12)) } class Inner {} ->Inner : Inner +>Inner : Inner, Symbol(Inner, Decl(duplicateAnonymousInners1.ts, 4, 5)) // Inner should show up in intellisense export var Outer=0; ->Outer : number +>Outer : number, Symbol(Outer, Decl(duplicateAnonymousInners1.ts, 9, 14)) +>0 : number } module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(duplicateAnonymousInners1.ts, 0, 0), Decl(duplicateAnonymousInners1.ts, 10, 1)) // Should not be an error class Helper { ->Helper : Helper +>Helper : Helper, Symbol(Helper, Decl(duplicateAnonymousInners1.ts, 13, 12)) } diff --git a/tests/baselines/reference/duplicateAnonymousModuleClasses.types b/tests/baselines/reference/duplicateAnonymousModuleClasses.types index eebe5f721d9..0e02785ae2c 100644 --- a/tests/baselines/reference/duplicateAnonymousModuleClasses.types +++ b/tests/baselines/reference/duplicateAnonymousModuleClasses.types @@ -1,9 +1,9 @@ === tests/cases/compiler/duplicateAnonymousModuleClasses.ts === module F { ->F : typeof F +>F : typeof F, Symbol(F, Decl(duplicateAnonymousModuleClasses.ts, 0, 0), Decl(duplicateAnonymousModuleClasses.ts, 6, 1)) class Helper { ->Helper : Helper +>Helper : Helper, Symbol(Helper, Decl(duplicateAnonymousModuleClasses.ts, 0, 10)) } @@ -11,21 +11,21 @@ module F { module F { ->F : typeof F +>F : typeof F, Symbol(F, Decl(duplicateAnonymousModuleClasses.ts, 0, 0), Decl(duplicateAnonymousModuleClasses.ts, 6, 1)) // Should not be an error class Helper { ->Helper : Helper +>Helper : Helper, Symbol(Helper, Decl(duplicateAnonymousModuleClasses.ts, 9, 10)) } } module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(duplicateAnonymousModuleClasses.ts, 16, 1), Decl(duplicateAnonymousModuleClasses.ts, 24, 1)) class Helper { ->Helper : Helper +>Helper : Helper, Symbol(Helper, Decl(duplicateAnonymousModuleClasses.ts, 18, 12)) } @@ -33,24 +33,24 @@ module Foo { module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(duplicateAnonymousModuleClasses.ts, 16, 1), Decl(duplicateAnonymousModuleClasses.ts, 24, 1)) // Should not be an error class Helper { ->Helper : Helper +>Helper : Helper, Symbol(Helper, Decl(duplicateAnonymousModuleClasses.ts, 27, 12)) } } module Gar { ->Gar : typeof Gar +>Gar : typeof Gar, Symbol(Gar, Decl(duplicateAnonymousModuleClasses.ts, 34, 1)) module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(duplicateAnonymousModuleClasses.ts, 36, 12), Decl(duplicateAnonymousModuleClasses.ts, 43, 5)) class Helper { ->Helper : Helper +>Helper : Helper, Symbol(Helper, Decl(duplicateAnonymousModuleClasses.ts, 37, 16)) } @@ -58,11 +58,11 @@ module Gar { module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(duplicateAnonymousModuleClasses.ts, 36, 12), Decl(duplicateAnonymousModuleClasses.ts, 43, 5)) // Should not be an error class Helper { ->Helper : Helper +>Helper : Helper, Symbol(Helper, Decl(duplicateAnonymousModuleClasses.ts, 46, 16)) } diff --git a/tests/baselines/reference/duplicateConstructSignature.types b/tests/baselines/reference/duplicateConstructSignature.types index 5c33f09f8d6..39f9bb8313a 100644 --- a/tests/baselines/reference/duplicateConstructSignature.types +++ b/tests/baselines/reference/duplicateConstructSignature.types @@ -1,6 +1,6 @@ === tests/cases/compiler/duplicateConstructSignature.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(duplicateConstructSignature.ts, 0, 0)) (): number; (): string; diff --git a/tests/baselines/reference/duplicateConstructSignature2.types b/tests/baselines/reference/duplicateConstructSignature2.types index 94628665963..d76bd3c5309 100644 --- a/tests/baselines/reference/duplicateConstructSignature2.types +++ b/tests/baselines/reference/duplicateConstructSignature2.types @@ -1,13 +1,13 @@ === tests/cases/compiler/duplicateConstructSignature2.ts === interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(duplicateConstructSignature2.ts, 0, 0)) +>T : T, Symbol(T, Decl(duplicateConstructSignature2.ts, 0, 12)) (x: T): number; ->x : T ->T : T +>x : T, Symbol(x, Decl(duplicateConstructSignature2.ts, 1, 5)) +>T : T, Symbol(T, Decl(duplicateConstructSignature2.ts, 0, 12)) (x: T): string; ->x : T ->T : T +>x : T, Symbol(x, Decl(duplicateConstructSignature2.ts, 2, 5)) +>T : T, Symbol(T, Decl(duplicateConstructSignature2.ts, 0, 12)) } diff --git a/tests/baselines/reference/duplicateConstructorOverloadSignature.types b/tests/baselines/reference/duplicateConstructorOverloadSignature.types index 45df269706a..5d5a04e406a 100644 --- a/tests/baselines/reference/duplicateConstructorOverloadSignature.types +++ b/tests/baselines/reference/duplicateConstructorOverloadSignature.types @@ -1,13 +1,13 @@ === tests/cases/compiler/duplicateConstructorOverloadSignature.ts === class C { ->C : C +>C : C, Symbol(C, Decl(duplicateConstructorOverloadSignature.ts, 0, 0)) constructor(x: number); ->x : number +>x : number, Symbol(x, Decl(duplicateConstructorOverloadSignature.ts, 1, 16)) constructor(x: number); ->x : number +>x : number, Symbol(x, Decl(duplicateConstructorOverloadSignature.ts, 2, 16)) constructor(x: any) { } ->x : any +>x : any, Symbol(x, Decl(duplicateConstructorOverloadSignature.ts, 3, 16)) } diff --git a/tests/baselines/reference/duplicateConstructorOverloadSignature2.types b/tests/baselines/reference/duplicateConstructorOverloadSignature2.types index 780774e2545..7e0514bb7ff 100644 --- a/tests/baselines/reference/duplicateConstructorOverloadSignature2.types +++ b/tests/baselines/reference/duplicateConstructorOverloadSignature2.types @@ -1,16 +1,16 @@ === tests/cases/compiler/duplicateConstructorOverloadSignature2.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(duplicateConstructorOverloadSignature2.ts, 0, 0)) +>T : T, Symbol(T, Decl(duplicateConstructorOverloadSignature2.ts, 0, 8)) constructor(x: T); ->x : T ->T : T +>x : T, Symbol(x, Decl(duplicateConstructorOverloadSignature2.ts, 1, 16)) +>T : T, Symbol(T, Decl(duplicateConstructorOverloadSignature2.ts, 0, 8)) constructor(x: T); ->x : T ->T : T +>x : T, Symbol(x, Decl(duplicateConstructorOverloadSignature2.ts, 2, 16)) +>T : T, Symbol(T, Decl(duplicateConstructorOverloadSignature2.ts, 0, 8)) constructor(x: any) { } ->x : any +>x : any, Symbol(x, Decl(duplicateConstructorOverloadSignature2.ts, 3, 16)) } diff --git a/tests/baselines/reference/duplicateLabel3.types b/tests/baselines/reference/duplicateLabel3.types index d4a26fa22a0..e1311383edd 100644 --- a/tests/baselines/reference/duplicateLabel3.types +++ b/tests/baselines/reference/duplicateLabel3.types @@ -1,11 +1,18 @@ === tests/cases/compiler/duplicateLabel3.ts === target: +>target : any + while (true) { +>true : boolean + function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(duplicateLabel3.ts, 1, 14)) target: +>target : any + while (true) { +>true : boolean } } } diff --git a/tests/baselines/reference/duplicateLabel4.types b/tests/baselines/reference/duplicateLabel4.types index c671abcef35..9238986b582 100644 --- a/tests/baselines/reference/duplicateLabel4.types +++ b/tests/baselines/reference/duplicateLabel4.types @@ -1,9 +1,14 @@ === tests/cases/compiler/duplicateLabel4.ts === target: -No type information for this code.while (true) { -No type information for this code.} -No type information for this code. -No type information for this code.target: -No type information for this code.while (true) { -No type information for this code.} -No type information for this code. \ No newline at end of file +>target : any + +while (true) { +>true : boolean +} + +target: +>target : any + +while (true) { +>true : boolean +} diff --git a/tests/baselines/reference/duplicateOverloadInTypeAugmentation1.types b/tests/baselines/reference/duplicateOverloadInTypeAugmentation1.types index bc7214eb6b9..06e033f418e 100644 --- a/tests/baselines/reference/duplicateOverloadInTypeAugmentation1.types +++ b/tests/baselines/reference/duplicateOverloadInTypeAugmentation1.types @@ -1,57 +1,57 @@ === tests/cases/compiler/duplicateOverloadInTypeAugmentation1.ts === interface Array { ->Array : T[] ->T : T +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 0)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16)) reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, ->reduce : { (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; } ->callbackfn : (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T ->previousValue : T ->T : T ->currentValue : T ->T : T ->currentIndex : number ->array : T[] ->T : T ->T : T +>reduce : { (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; }, Symbol(reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 20), Decl(duplicateOverloadInTypeAugmentation1.ts, 2, 29)) +>callbackfn : (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, Symbol(callbackfn, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 11)) +>previousValue : T, Symbol(previousValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 24)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16)) +>currentValue : T, Symbol(currentValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 41)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16)) +>currentIndex : number, Symbol(currentIndex, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 58)) +>array : T[], Symbol(array, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 80)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16)) initialValue?: T): T; ->initialValue : T ->T : T ->T : T +>initialValue : T, Symbol(initialValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 1, 98)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16)) reduce(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, ->reduce : { (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; } ->U : U ->callbackfn : (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U ->previousValue : U ->U : U ->currentValue : T ->T : T ->currentIndex : number ->array : T[] ->T : T ->U : U +>reduce : { (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; }, Symbol(reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 20), Decl(duplicateOverloadInTypeAugmentation1.ts, 2, 29)) +>U : U, Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11)) +>callbackfn : (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, Symbol(callbackfn, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 14)) +>previousValue : U, Symbol(previousValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 27)) +>U : U, Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11)) +>currentValue : T, Symbol(currentValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 44)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16)) +>currentIndex : number, Symbol(currentIndex, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 61)) +>array : T[], Symbol(array, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 83)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 16)) +>U : U, Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11)) initialValue: U): U; ->initialValue : U ->U : U ->U : U +>initialValue : U, Symbol(initialValue, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 101)) +>U : U, Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11)) +>U : U, Symbol(U, Decl(duplicateOverloadInTypeAugmentation1.ts, 3, 11)) } var a: Array; ->a : string[] ->Array : T[] +>a : string[], Symbol(a, Decl(duplicateOverloadInTypeAugmentation1.ts, 6, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 0)) var r5 = a.reduce((x, y) => x + y); ->r5 : string +>r5 : string, Symbol(r5, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 3)) >a.reduce((x, y) => x + y) : string ->a.reduce : { (callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue?: string): string; (callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U; (callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue?: string): string; (callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U; } ->a : string[] ->reduce : { (callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue?: string): string; (callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U; (callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue?: string): string; (callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U; } +>a.reduce : { (callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue?: string): string; (callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U; (callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue?: string): string; (callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U; }, Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 20), Decl(duplicateOverloadInTypeAugmentation1.ts, 2, 29)) +>a : string[], Symbol(a, Decl(duplicateOverloadInTypeAugmentation1.ts, 6, 3)) +>reduce : { (callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue?: string): string; (callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U; (callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue?: string): string; (callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U; }, Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120), Decl(duplicateOverloadInTypeAugmentation1.ts, 0, 20), Decl(duplicateOverloadInTypeAugmentation1.ts, 2, 29)) >(x, y) => x + y : (x: string, y: string) => string ->x : string ->y : string +>x : string, Symbol(x, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 19)) +>y : string, Symbol(y, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 21)) >x + y : string ->x : string ->y : string +>x : string, Symbol(x, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 19)) +>y : string, Symbol(y, Decl(duplicateOverloadInTypeAugmentation1.ts, 7, 21)) diff --git a/tests/baselines/reference/duplicateVarAndImport.types b/tests/baselines/reference/duplicateVarAndImport.types index 10db2738dde..00ceaaaa35b 100644 --- a/tests/baselines/reference/duplicateVarAndImport.types +++ b/tests/baselines/reference/duplicateVarAndImport.types @@ -2,12 +2,12 @@ // no error since module is not instantiated var a; ->a : any +>a : any, Symbol(a, Decl(duplicateVarAndImport.ts, 2, 3), Decl(duplicateVarAndImport.ts, 3, 12)) module M { } ->M : unknown +>M : any, Symbol(M, Decl(duplicateVarAndImport.ts, 2, 6)) import a = M; ->a : any ->M : unknown +>a : any, Symbol(a, Decl(duplicateVarAndImport.ts, 2, 3), Decl(duplicateVarAndImport.ts, 3, 12)) +>M : any, Symbol(M, Decl(duplicateVarAndImport.ts, 2, 6)) diff --git a/tests/baselines/reference/duplicateVariableDeclaration1.types b/tests/baselines/reference/duplicateVariableDeclaration1.types index 0da31840cfd..a3e566c31e0 100644 --- a/tests/baselines/reference/duplicateVariableDeclaration1.types +++ b/tests/baselines/reference/duplicateVariableDeclaration1.types @@ -1,7 +1,7 @@ === tests/cases/compiler/duplicateVariableDeclaration1.ts === var v ->v : any +>v : any, Symbol(v, Decl(duplicateVariableDeclaration1.ts, 0, 3), Decl(duplicateVariableDeclaration1.ts, 1, 3)) var v ->v : any +>v : any, Symbol(v, Decl(duplicateVariableDeclaration1.ts, 0, 3), Decl(duplicateVariableDeclaration1.ts, 1, 3)) diff --git a/tests/baselines/reference/duplicateVariablesByScope.types b/tests/baselines/reference/duplicateVariablesByScope.types index ec20d665ad8..0bf7d32ad4e 100644 --- a/tests/baselines/reference/duplicateVariablesByScope.types +++ b/tests/baselines/reference/duplicateVariablesByScope.types @@ -2,59 +2,71 @@ // duplicate local variables are only reported at global scope module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(duplicateVariablesByScope.ts, 0, 0)) for (var j = 0; j < 10; j++) { ->j : number +>j : number, Symbol(j, Decl(duplicateVariablesByScope.ts, 3, 12), Decl(duplicateVariablesByScope.ts, 6, 12)) +>0 : number >j < 10 : boolean ->j : number +>j : number, Symbol(j, Decl(duplicateVariablesByScope.ts, 3, 12), Decl(duplicateVariablesByScope.ts, 6, 12)) +>10 : number >j++ : number ->j : number +>j : number, Symbol(j, Decl(duplicateVariablesByScope.ts, 3, 12), Decl(duplicateVariablesByScope.ts, 6, 12)) } for (var j = 0; j < 10; j++) { ->j : number +>j : number, Symbol(j, Decl(duplicateVariablesByScope.ts, 3, 12), Decl(duplicateVariablesByScope.ts, 6, 12)) +>0 : number >j < 10 : boolean ->j : number +>j : number, Symbol(j, Decl(duplicateVariablesByScope.ts, 3, 12), Decl(duplicateVariablesByScope.ts, 6, 12)) +>10 : number >j++ : number ->j : number +>j : number, Symbol(j, Decl(duplicateVariablesByScope.ts, 3, 12), Decl(duplicateVariablesByScope.ts, 6, 12)) } } function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(duplicateVariablesByScope.ts, 8, 1)) var x = 2; ->x : number +>x : number, Symbol(x, Decl(duplicateVariablesByScope.ts, 11, 7), Decl(duplicateVariablesByScope.ts, 12, 7)) +>2 : number var x = 1; ->x : number +>x : number, Symbol(x, Decl(duplicateVariablesByScope.ts, 11, 7), Decl(duplicateVariablesByScope.ts, 12, 7)) +>1 : number if (true) { +>true : boolean + var result = 1; ->result : number +>result : number, Symbol(result, Decl(duplicateVariablesByScope.ts, 14, 11), Decl(duplicateVariablesByScope.ts, 17, 11)) +>1 : number } else { var result = 2; ->result : number +>result : number, Symbol(result, Decl(duplicateVariablesByScope.ts, 14, 11), Decl(duplicateVariablesByScope.ts, 17, 11)) +>2 : number } } class C { ->C : C +>C : C, Symbol(C, Decl(duplicateVariablesByScope.ts, 19, 1)) foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(duplicateVariablesByScope.ts, 21, 9)) try { var x = 1; ->x : number +>x : number, Symbol(x, Decl(duplicateVariablesByScope.ts, 24, 15), Decl(duplicateVariablesByScope.ts, 27, 15)) +>1 : number } catch (e) { ->e : any +>e : any, Symbol(e, Decl(duplicateVariablesByScope.ts, 26, 15)) var x = 2; ->x : number +>x : number, Symbol(x, Decl(duplicateVariablesByScope.ts, 24, 15), Decl(duplicateVariablesByScope.ts, 27, 15)) +>2 : number } } } diff --git a/tests/baselines/reference/dynamicModuleTypecheckError.types b/tests/baselines/reference/dynamicModuleTypecheckError.types index c7d213d1661..ef6b7286864 100644 --- a/tests/baselines/reference/dynamicModuleTypecheckError.types +++ b/tests/baselines/reference/dynamicModuleTypecheckError.types @@ -1,19 +1,23 @@ === tests/cases/compiler/dynamicModuleTypecheckError.ts === export var x = 1; ->x : number +>x : number, Symbol(x, Decl(dynamicModuleTypecheckError.ts, 0, 10)) +>1 : number for(var i = 0; i < 30; i++) { ->i : number +>i : number, Symbol(i, Decl(dynamicModuleTypecheckError.ts, 2, 7)) +>0 : number >i < 30 : boolean ->i : number +>i : number, Symbol(i, Decl(dynamicModuleTypecheckError.ts, 2, 7)) +>30 : number >i++ : number ->i : number +>i : number, Symbol(i, Decl(dynamicModuleTypecheckError.ts, 2, 7)) x = i * 1000; // should not be an error here >x = i * 1000 : number ->x : number +>x : number, Symbol(x, Decl(dynamicModuleTypecheckError.ts, 0, 10)) >i * 1000 : number ->i : number +>i : number, Symbol(i, Decl(dynamicModuleTypecheckError.ts, 2, 7)) +>1000 : number } diff --git a/tests/baselines/reference/elidingImportNames.types b/tests/baselines/reference/elidingImportNames.types index ad93c72860b..361ad9ce95e 100644 --- a/tests/baselines/reference/elidingImportNames.types +++ b/tests/baselines/reference/elidingImportNames.types @@ -1,29 +1,31 @@ === tests/cases/compiler/elidingImportNames_test.ts === import a = require('elidingImportNames_main'); // alias used in typeof ->a : typeof a +>a : typeof a, Symbol(a, Decl(elidingImportNames_test.ts, 0, 0)) var b = a; ->b : typeof a ->a : typeof a +>b : typeof a, Symbol(b, Decl(elidingImportNames_test.ts, 2, 3)) +>a : typeof a, Symbol(a, Decl(elidingImportNames_test.ts, 0, 0)) var x: typeof a; ->x : typeof a ->a : typeof a +>x : typeof a, Symbol(x, Decl(elidingImportNames_test.ts, 3, 3)) +>a : typeof a, Symbol(a, Decl(elidingImportNames_test.ts, 0, 0)) import a2 = require('elidingImportNames_main1'); // alias not used in typeof ->a2 : typeof a2 +>a2 : typeof a2, Symbol(a2, Decl(elidingImportNames_test.ts, 3, 16)) var b2 = a2; ->b2 : typeof a2 ->a2 : typeof a2 +>b2 : typeof a2, Symbol(b2, Decl(elidingImportNames_test.ts, 5, 3)) +>a2 : typeof a2, Symbol(a2, Decl(elidingImportNames_test.ts, 3, 16)) === tests/cases/compiler/elidingImportNames_main.ts === export var main = 10; ->main : number +>main : number, Symbol(main, Decl(elidingImportNames_main.ts, 0, 10)) +>10 : number === tests/cases/compiler/elidingImportNames_main1.ts === export var main = 10; ->main : number +>main : number, Symbol(main, Decl(elidingImportNames_main1.ts, 0, 10)) +>10 : number diff --git a/tests/baselines/reference/emitArrowFunction.types b/tests/baselines/reference/emitArrowFunction.types index 030ed0cde60..4cbb5bff2ed 100644 --- a/tests/baselines/reference/emitArrowFunction.types +++ b/tests/baselines/reference/emitArrowFunction.types @@ -1,39 +1,42 @@ === tests/cases/conformance/es6/arrowFunction/emitArrowFunction.ts === var f1 = () => { } ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(emitArrowFunction.ts, 0, 3)) >() => { } : () => void var f2 = (x: string, y: string) => { } ->f2 : (x: string, y: string) => void +>f2 : (x: string, y: string) => void, Symbol(f2, Decl(emitArrowFunction.ts, 1, 3)) >(x: string, y: string) => { } : (x: string, y: string) => void ->x : string ->y : string +>x : string, Symbol(x, Decl(emitArrowFunction.ts, 1, 10)) +>y : string, Symbol(y, Decl(emitArrowFunction.ts, 1, 20)) var f3 = (x: string, y: number, ...rest) => { } ->f3 : (x: string, y: number, ...rest: any[]) => void +>f3 : (x: string, y: number, ...rest: any[]) => void, Symbol(f3, Decl(emitArrowFunction.ts, 2, 3)) >(x: string, y: number, ...rest) => { } : (x: string, y: number, ...rest: any[]) => void ->x : string ->y : number ->rest : any[] +>x : string, Symbol(x, Decl(emitArrowFunction.ts, 2, 10)) +>y : number, Symbol(y, Decl(emitArrowFunction.ts, 2, 20)) +>rest : any[], Symbol(rest, Decl(emitArrowFunction.ts, 2, 31)) var f4 = (x: string, y: number, z = 10) => { } ->f4 : (x: string, y: number, z?: number) => void +>f4 : (x: string, y: number, z?: number) => void, Symbol(f4, Decl(emitArrowFunction.ts, 3, 3)) >(x: string, y: number, z = 10) => { } : (x: string, y: number, z?: number) => void ->x : string ->y : number ->z : number +>x : string, Symbol(x, Decl(emitArrowFunction.ts, 3, 10)) +>y : number, Symbol(y, Decl(emitArrowFunction.ts, 3, 20)) +>z : number, Symbol(z, Decl(emitArrowFunction.ts, 3, 31)) +>10 : number function foo(func: () => boolean) { } ->foo : (func: () => boolean) => void ->func : () => boolean +>foo : (func: () => boolean) => void, Symbol(foo, Decl(emitArrowFunction.ts, 3, 46)) +>func : () => boolean, Symbol(func, Decl(emitArrowFunction.ts, 4, 13)) foo(() => true); >foo(() => true) : void ->foo : (func: () => boolean) => void +>foo : (func: () => boolean) => void, Symbol(foo, Decl(emitArrowFunction.ts, 3, 46)) >() => true : () => boolean +>true : boolean foo(() => { return false; }); >foo(() => { return false; }) : void ->foo : (func: () => boolean) => void +>foo : (func: () => boolean) => void, Symbol(foo, Decl(emitArrowFunction.ts, 3, 46)) >() => { return false; } : () => boolean +>false : boolean diff --git a/tests/baselines/reference/emitArrowFunctionAsIs.types b/tests/baselines/reference/emitArrowFunctionAsIs.types index 1ab5de9724a..35c2073ae84 100644 --- a/tests/baselines/reference/emitArrowFunctionAsIs.types +++ b/tests/baselines/reference/emitArrowFunctionAsIs.types @@ -1,17 +1,17 @@ === tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIs.ts === var arrow1 = a => { }; ->arrow1 : (a: any) => void +>arrow1 : (a: any) => void, Symbol(arrow1, Decl(emitArrowFunctionAsIs.ts, 0, 3)) >a => { } : (a: any) => void ->a : any +>a : any, Symbol(a, Decl(emitArrowFunctionAsIs.ts, 0, 12)) var arrow2 = (a) => { }; ->arrow2 : (a: any) => void +>arrow2 : (a: any) => void, Symbol(arrow2, Decl(emitArrowFunctionAsIs.ts, 1, 3)) >(a) => { } : (a: any) => void ->a : any +>a : any, Symbol(a, Decl(emitArrowFunctionAsIs.ts, 1, 14)) var arrow3 = (a, b) => { }; ->arrow3 : (a: any, b: any) => void +>arrow3 : (a: any, b: any) => void, Symbol(arrow3, Decl(emitArrowFunctionAsIs.ts, 3, 3)) >(a, b) => { } : (a: any, b: any) => void ->a : any ->b : any +>a : any, Symbol(a, Decl(emitArrowFunctionAsIs.ts, 3, 14)) +>b : any, Symbol(b, Decl(emitArrowFunctionAsIs.ts, 3, 16)) diff --git a/tests/baselines/reference/emitArrowFunctionAsIsES6.types b/tests/baselines/reference/emitArrowFunctionAsIsES6.types index 6b8c9e54bbe..7bfea6cce64 100644 --- a/tests/baselines/reference/emitArrowFunctionAsIsES6.types +++ b/tests/baselines/reference/emitArrowFunctionAsIsES6.types @@ -1,17 +1,17 @@ === tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIsES6.ts === var arrow1 = a => { }; ->arrow1 : (a: any) => void +>arrow1 : (a: any) => void, Symbol(arrow1, Decl(emitArrowFunctionAsIsES6.ts, 0, 3)) >a => { } : (a: any) => void ->a : any +>a : any, Symbol(a, Decl(emitArrowFunctionAsIsES6.ts, 0, 12)) var arrow2 = (a) => { }; ->arrow2 : (a: any) => void +>arrow2 : (a: any) => void, Symbol(arrow2, Decl(emitArrowFunctionAsIsES6.ts, 1, 3)) >(a) => { } : (a: any) => void ->a : any +>a : any, Symbol(a, Decl(emitArrowFunctionAsIsES6.ts, 1, 14)) var arrow3 = (a, b) => { }; ->arrow3 : (a: any, b: any) => void +>arrow3 : (a: any, b: any) => void, Symbol(arrow3, Decl(emitArrowFunctionAsIsES6.ts, 3, 3)) >(a, b) => { } : (a: any, b: any) => void ->a : any ->b : any +>a : any, Symbol(a, Decl(emitArrowFunctionAsIsES6.ts, 3, 14)) +>b : any, Symbol(b, Decl(emitArrowFunctionAsIsES6.ts, 3, 16)) diff --git a/tests/baselines/reference/emitArrowFunctionES6.js b/tests/baselines/reference/emitArrowFunctionES6.js index 603b2737fc5..f9f5669c92e 100644 --- a/tests/baselines/reference/emitArrowFunctionES6.js +++ b/tests/baselines/reference/emitArrowFunctionES6.js @@ -6,6 +6,18 @@ var f4 = (x: string, y: number, z=10) => { } function foo(func: () => boolean) { } foo(() => true); foo(() => { return false; }); + +// Binding patterns in arrow functions +var p1 = ([a]) => { }; +var p2 = ([...a]) => { }; +var p3 = ([, a]) => { }; +var p4 = ([, ...a]) => { }; +var p5 = ([a = 1]) => { }; +var p6 = ({ a }) => { }; +var p7 = ({ a: { b } }) => { }; +var p8 = ({ a = 1 }) => { }; +var p9 = ({ a: { b = 1 } = { b: 1 } }) => { }; +var p10 = ([{ value, done }]) => { }; //// [emitArrowFunctionES6.js] @@ -16,3 +28,14 @@ var f4 = (x, y, z = 10) => { }; function foo(func) { } foo(() => true); foo(() => { return false; }); +// Binding patterns in arrow functions +var p1 = ([a]) => { }; +var p2 = ([...a]) => { }; +var p3 = ([, a]) => { }; +var p4 = ([, ...a]) => { }; +var p5 = ([a = 1]) => { }; +var p6 = ({ a }) => { }; +var p7 = ({ a: { b } }) => { }; +var p8 = ({ a = 1 }) => { }; +var p9 = ({ a: { b = 1 } = { b: 1 } }) => { }; +var p10 = ([{ value, done }]) => { }; diff --git a/tests/baselines/reference/emitArrowFunctionES6.types b/tests/baselines/reference/emitArrowFunctionES6.types index 1f0c1941bdb..d71abc8d976 100644 --- a/tests/baselines/reference/emitArrowFunctionES6.types +++ b/tests/baselines/reference/emitArrowFunctionES6.types @@ -1,39 +1,104 @@ === tests/cases/conformance/es6/arrowFunction/emitArrowFunctionES6.ts === var f1 = () => { } ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(emitArrowFunctionES6.ts, 0, 3)) >() => { } : () => void var f2 = (x: string, y: string) => { } ->f2 : (x: string, y: string) => void +>f2 : (x: string, y: string) => void, Symbol(f2, Decl(emitArrowFunctionES6.ts, 1, 3)) >(x: string, y: string) => { } : (x: string, y: string) => void ->x : string ->y : string +>x : string, Symbol(x, Decl(emitArrowFunctionES6.ts, 1, 10)) +>y : string, Symbol(y, Decl(emitArrowFunctionES6.ts, 1, 20)) var f3 = (x: string, y: number, ...rest) => { } ->f3 : (x: string, y: number, ...rest: any[]) => void +>f3 : (x: string, y: number, ...rest: any[]) => void, Symbol(f3, Decl(emitArrowFunctionES6.ts, 2, 3)) >(x: string, y: number, ...rest) => { } : (x: string, y: number, ...rest: any[]) => void ->x : string ->y : number ->rest : any[] +>x : string, Symbol(x, Decl(emitArrowFunctionES6.ts, 2, 10)) +>y : number, Symbol(y, Decl(emitArrowFunctionES6.ts, 2, 20)) +>rest : any[], Symbol(rest, Decl(emitArrowFunctionES6.ts, 2, 31)) var f4 = (x: string, y: number, z=10) => { } ->f4 : (x: string, y: number, z?: number) => void +>f4 : (x: string, y: number, z?: number) => void, Symbol(f4, Decl(emitArrowFunctionES6.ts, 3, 3)) >(x: string, y: number, z=10) => { } : (x: string, y: number, z?: number) => void ->x : string ->y : number ->z : number +>x : string, Symbol(x, Decl(emitArrowFunctionES6.ts, 3, 10)) +>y : number, Symbol(y, Decl(emitArrowFunctionES6.ts, 3, 20)) +>z : number, Symbol(z, Decl(emitArrowFunctionES6.ts, 3, 31)) +>10 : number function foo(func: () => boolean) { } ->foo : (func: () => boolean) => void ->func : () => boolean +>foo : (func: () => boolean) => void, Symbol(foo, Decl(emitArrowFunctionES6.ts, 3, 44)) +>func : () => boolean, Symbol(func, Decl(emitArrowFunctionES6.ts, 4, 13)) foo(() => true); >foo(() => true) : void ->foo : (func: () => boolean) => void +>foo : (func: () => boolean) => void, Symbol(foo, Decl(emitArrowFunctionES6.ts, 3, 44)) >() => true : () => boolean +>true : boolean foo(() => { return false; }); >foo(() => { return false; }) : void ->foo : (func: () => boolean) => void +>foo : (func: () => boolean) => void, Symbol(foo, Decl(emitArrowFunctionES6.ts, 3, 44)) >() => { return false; } : () => boolean +>false : boolean + +// Binding patterns in arrow functions +var p1 = ([a]) => { }; +>p1 : ([a]: [any]) => void, Symbol(p1, Decl(emitArrowFunctionES6.ts, 9, 3)) +>([a]) => { } : ([a]: [any]) => void +>a : any, Symbol(a, Decl(emitArrowFunctionES6.ts, 9, 11)) + +var p2 = ([...a]) => { }; +>p2 : ([...a]: Iterable) => void, Symbol(p2, Decl(emitArrowFunctionES6.ts, 10, 3)) +>([...a]) => { } : ([...a]: Iterable) => void +>a : any[], Symbol(a, Decl(emitArrowFunctionES6.ts, 10, 11)) + +var p3 = ([, a]) => { }; +>p3 : ([, a]: [any, any]) => void, Symbol(p3, Decl(emitArrowFunctionES6.ts, 11, 3)) +>([, a]) => { } : ([, a]: [any, any]) => void +> : undefined +>a : any, Symbol(a, Decl(emitArrowFunctionES6.ts, 11, 12)) + +var p4 = ([, ...a]) => { }; +>p4 : ([, ...a]: Iterable) => void, Symbol(p4, Decl(emitArrowFunctionES6.ts, 12, 3)) +>([, ...a]) => { } : ([, ...a]: Iterable) => void +> : undefined +>a : any[], Symbol(a, Decl(emitArrowFunctionES6.ts, 12, 12)) + +var p5 = ([a = 1]) => { }; +>p5 : ([a = 1]: [number]) => void, Symbol(p5, Decl(emitArrowFunctionES6.ts, 13, 3)) +>([a = 1]) => { } : ([a = 1]: [number]) => void +>a : number, Symbol(a, Decl(emitArrowFunctionES6.ts, 13, 11)) +>1 : number + +var p6 = ({ a }) => { }; +>p6 : ({ a }: { a: any; }) => void, Symbol(p6, Decl(emitArrowFunctionES6.ts, 14, 3)) +>({ a }) => { } : ({ a }: { a: any; }) => void +>a : any, Symbol(a, Decl(emitArrowFunctionES6.ts, 14, 11)) + +var p7 = ({ a: { b } }) => { }; +>p7 : ({ a: { b } }: { a: { b: any; }; }) => void, Symbol(p7, Decl(emitArrowFunctionES6.ts, 15, 3)) +>({ a: { b } }) => { } : ({ a: { b } }: { a: { b: any; }; }) => void +>a : any +>b : any, Symbol(b, Decl(emitArrowFunctionES6.ts, 15, 16)) + +var p8 = ({ a = 1 }) => { }; +>p8 : ({ a = 1 }: { a?: number; }) => void, Symbol(p8, Decl(emitArrowFunctionES6.ts, 16, 3)) +>({ a = 1 }) => { } : ({ a = 1 }: { a?: number; }) => void +>a : number, Symbol(a, Decl(emitArrowFunctionES6.ts, 16, 11)) +>1 : number + +var p9 = ({ a: { b = 1 } = { b: 1 } }) => { }; +>p9 : ({ a: { b = 1 } = { b: 1 } }: { a?: { b: number; }; }) => void, Symbol(p9, Decl(emitArrowFunctionES6.ts, 17, 3)) +>({ a: { b = 1 } = { b: 1 } }) => { } : ({ a: { b = 1 } = { b: 1 } }: { a?: { b: number; }; }) => void +>a : any +>b : number, Symbol(b, Decl(emitArrowFunctionES6.ts, 17, 16)) +>1 : number +>{ b: 1 } : { b: number; } +>b : number, Symbol(b, Decl(emitArrowFunctionES6.ts, 17, 28)) +>1 : number + +var p10 = ([{ value, done }]) => { }; +>p10 : ([{ value, done }]: [{ value: any; done: any; }]) => void, Symbol(p10, Decl(emitArrowFunctionES6.ts, 18, 3)) +>([{ value, done }]) => { } : ([{ value, done }]: [{ value: any; done: any; }]) => void +>value : any, Symbol(value, Decl(emitArrowFunctionES6.ts, 18, 13)) +>done : any, Symbol(done, Decl(emitArrowFunctionES6.ts, 18, 20)) diff --git a/tests/baselines/reference/emitArrowFunctionThisCapturing.types b/tests/baselines/reference/emitArrowFunctionThisCapturing.types index 433f38e5ecc..972f23755d1 100644 --- a/tests/baselines/reference/emitArrowFunctionThisCapturing.types +++ b/tests/baselines/reference/emitArrowFunctionThisCapturing.types @@ -1,6 +1,6 @@ === tests/cases/conformance/es6/arrowFunction/emitArrowFunctionThisCapturing.ts === var f1 = () => { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(emitArrowFunctionThisCapturing.ts, 0, 3)) >() => { this.age = 10} : () => void this.age = 10 @@ -8,29 +8,30 @@ var f1 = () => { >this.age : any >this : any >age : any +>10 : number }; var f2 = (x: string) => { ->f2 : (x: string) => void +>f2 : (x: string) => void, Symbol(f2, Decl(emitArrowFunctionThisCapturing.ts, 4, 3)) >(x: string) => { this.name = x} : (x: string) => void ->x : string +>x : string, Symbol(x, Decl(emitArrowFunctionThisCapturing.ts, 4, 10)) this.name = x >this.name = x : string >this.name : any >this : any >name : any ->x : string +>x : string, Symbol(x, Decl(emitArrowFunctionThisCapturing.ts, 4, 10)) } function foo(func: () => boolean) { } ->foo : (func: () => boolean) => void ->func : () => boolean +>foo : (func: () => boolean) => void, Symbol(foo, Decl(emitArrowFunctionThisCapturing.ts, 6, 1)) +>func : () => boolean, Symbol(func, Decl(emitArrowFunctionThisCapturing.ts, 8, 13)) foo(() => { >foo(() => { this.age = 100; return true;}) : void ->foo : (func: () => boolean) => void +>foo : (func: () => boolean) => void, Symbol(foo, Decl(emitArrowFunctionThisCapturing.ts, 6, 1)) >() => { this.age = 100; return true;} : () => boolean this.age = 100; @@ -38,7 +39,10 @@ foo(() => { >this.age : any >this : any >age : any +>100 : number return true; +>true : boolean + }); diff --git a/tests/baselines/reference/emitArrowFunctionThisCapturingES6.types b/tests/baselines/reference/emitArrowFunctionThisCapturingES6.types index 989130ef280..c6c5624719b 100644 --- a/tests/baselines/reference/emitArrowFunctionThisCapturingES6.types +++ b/tests/baselines/reference/emitArrowFunctionThisCapturingES6.types @@ -1,6 +1,6 @@ === tests/cases/conformance/es6/arrowFunction/emitArrowFunctionThisCapturingES6.ts === var f1 = () => { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(emitArrowFunctionThisCapturingES6.ts, 0, 3)) >() => { this.age = 10} : () => void this.age = 10 @@ -8,29 +8,30 @@ var f1 = () => { >this.age : any >this : any >age : any +>10 : number }; var f2 = (x: string) => { ->f2 : (x: string) => void +>f2 : (x: string) => void, Symbol(f2, Decl(emitArrowFunctionThisCapturingES6.ts, 4, 3)) >(x: string) => { this.name = x} : (x: string) => void ->x : string +>x : string, Symbol(x, Decl(emitArrowFunctionThisCapturingES6.ts, 4, 10)) this.name = x >this.name = x : string >this.name : any >this : any >name : any ->x : string +>x : string, Symbol(x, Decl(emitArrowFunctionThisCapturingES6.ts, 4, 10)) } function foo(func: () => boolean){ } ->foo : (func: () => boolean) => void ->func : () => boolean +>foo : (func: () => boolean) => void, Symbol(foo, Decl(emitArrowFunctionThisCapturingES6.ts, 6, 1)) +>func : () => boolean, Symbol(func, Decl(emitArrowFunctionThisCapturingES6.ts, 8, 13)) foo(() => { >foo(() => { this.age = 100; return true;}) : void ->foo : (func: () => boolean) => void +>foo : (func: () => boolean) => void, Symbol(foo, Decl(emitArrowFunctionThisCapturingES6.ts, 6, 1)) >() => { this.age = 100; return true;} : () => boolean this.age = 100; @@ -38,7 +39,10 @@ foo(() => { >this.age : any >this : any >age : any +>100 : number return true; +>true : boolean + }); diff --git a/tests/baselines/reference/emitArrowFunctionsAsIs.types b/tests/baselines/reference/emitArrowFunctionsAsIs.types index 36dae7e9c5a..0771308a005 100644 --- a/tests/baselines/reference/emitArrowFunctionsAsIs.types +++ b/tests/baselines/reference/emitArrowFunctionsAsIs.types @@ -1,17 +1,17 @@ === tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIs.ts === var arrow1 = a => { }; ->arrow1 : (a: any) => void +>arrow1 : (a: any) => void, Symbol(arrow1, Decl(emitArrowFunctionsAsIs.ts, 0, 3)) >a => { } : (a: any) => void ->a : any +>a : any, Symbol(a, Decl(emitArrowFunctionsAsIs.ts, 0, 12)) var arrow2 = (a) => { }; ->arrow2 : (a: any) => void +>arrow2 : (a: any) => void, Symbol(arrow2, Decl(emitArrowFunctionsAsIs.ts, 1, 3)) >(a) => { } : (a: any) => void ->a : any +>a : any, Symbol(a, Decl(emitArrowFunctionsAsIs.ts, 1, 14)) var arrow3 = (a, b) => { }; ->arrow3 : (a: any, b: any) => void +>arrow3 : (a: any, b: any) => void, Symbol(arrow3, Decl(emitArrowFunctionsAsIs.ts, 3, 3)) >(a, b) => { } : (a: any, b: any) => void ->a : any ->b : any +>a : any, Symbol(a, Decl(emitArrowFunctionsAsIs.ts, 3, 14)) +>b : any, Symbol(b, Decl(emitArrowFunctionsAsIs.ts, 3, 16)) diff --git a/tests/baselines/reference/emitArrowFunctionsAsIsES6.types b/tests/baselines/reference/emitArrowFunctionsAsIsES6.types index 4073355d259..96ce709da56 100644 --- a/tests/baselines/reference/emitArrowFunctionsAsIsES6.types +++ b/tests/baselines/reference/emitArrowFunctionsAsIsES6.types @@ -1,17 +1,17 @@ === tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIsES6.ts === var arrow1 = a => { }; ->arrow1 : (a: any) => void +>arrow1 : (a: any) => void, Symbol(arrow1, Decl(emitArrowFunctionsAsIsES6.ts, 0, 3)) >a => { } : (a: any) => void ->a : any +>a : any, Symbol(a, Decl(emitArrowFunctionsAsIsES6.ts, 0, 12)) var arrow2 = (a) => { }; ->arrow2 : (a: any) => void +>arrow2 : (a: any) => void, Symbol(arrow2, Decl(emitArrowFunctionsAsIsES6.ts, 1, 3)) >(a) => { } : (a: any) => void ->a : any +>a : any, Symbol(a, Decl(emitArrowFunctionsAsIsES6.ts, 1, 14)) var arrow3 = (a, b) => { }; ->arrow3 : (a: any, b: any) => void +>arrow3 : (a: any, b: any) => void, Symbol(arrow3, Decl(emitArrowFunctionsAsIsES6.ts, 3, 3)) >(a, b) => { } : (a: any, b: any) => void ->a : any ->b : any +>a : any, Symbol(a, Decl(emitArrowFunctionsAsIsES6.ts, 3, 14)) +>b : any, Symbol(b, Decl(emitArrowFunctionsAsIsES6.ts, 3, 16)) diff --git a/tests/baselines/reference/emitBOM.types b/tests/baselines/reference/emitBOM.types index b38fd19c8f4..7482d6529ca 100644 --- a/tests/baselines/reference/emitBOM.types +++ b/tests/baselines/reference/emitBOM.types @@ -2,5 +2,5 @@ // JS and d.ts output should have a BOM but not the sourcemap var x; ->x : any +>x : any, Symbol(x, Decl(emitBOM.ts, 2, 3)) diff --git a/tests/baselines/reference/emitClassDeclarationOverloadInES6.types b/tests/baselines/reference/emitClassDeclarationOverloadInES6.types index 850a5aa5456..bb91c2bdf94 100644 --- a/tests/baselines/reference/emitClassDeclarationOverloadInES6.types +++ b/tests/baselines/reference/emitClassDeclarationOverloadInES6.types @@ -1,22 +1,23 @@ === tests/cases/conformance/es6/classDeclaration/emitClassDeclarationOverloadInES6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(emitClassDeclarationOverloadInES6.ts, 0, 0)) constructor(y: any) ->y : any +>y : any, Symbol(y, Decl(emitClassDeclarationOverloadInES6.ts, 1, 16)) constructor(x: number) { ->x : number +>x : number, Symbol(x, Decl(emitClassDeclarationOverloadInES6.ts, 2, 16)) } } class D { ->D : D +>D : D, Symbol(D, Decl(emitClassDeclarationOverloadInES6.ts, 4, 1)) constructor(y: any) ->y : any +>y : any, Symbol(y, Decl(emitClassDeclarationOverloadInES6.ts, 7, 16)) constructor(x: number, z="hello") {} ->x : number ->z : string +>x : number, Symbol(x, Decl(emitClassDeclarationOverloadInES6.ts, 8, 16)) +>z : string, Symbol(z, Decl(emitClassDeclarationOverloadInES6.ts, 8, 26)) +>"hello" : string } diff --git a/tests/baselines/reference/emitClassDeclarationWithConstructorInES6.types b/tests/baselines/reference/emitClassDeclarationWithConstructorInES6.types index 10244bf6170..cb3d3cff579 100644 --- a/tests/baselines/reference/emitClassDeclarationWithConstructorInES6.types +++ b/tests/baselines/reference/emitClassDeclarationWithConstructorInES6.types @@ -1,57 +1,60 @@ === tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithConstructorInES6.ts === class A { ->A : A +>A : A, Symbol(A, Decl(emitClassDeclarationWithConstructorInES6.ts, 0, 0)) y: number; ->y : number +>y : number, Symbol(y, Decl(emitClassDeclarationWithConstructorInES6.ts, 0, 9)) constructor(x: number) { ->x : number +>x : number, Symbol(x, Decl(emitClassDeclarationWithConstructorInES6.ts, 2, 16)) } foo(a: any); ->foo : (a: any) => any ->a : any +>foo : (a: any) => any, Symbol(foo, Decl(emitClassDeclarationWithConstructorInES6.ts, 3, 5), Decl(emitClassDeclarationWithConstructorInES6.ts, 4, 16)) +>a : any, Symbol(a, Decl(emitClassDeclarationWithConstructorInES6.ts, 4, 8)) foo() { } ->foo : (a: any) => any +>foo : (a: any) => any, Symbol(foo, Decl(emitClassDeclarationWithConstructorInES6.ts, 3, 5), Decl(emitClassDeclarationWithConstructorInES6.ts, 4, 16)) } class B { ->B : B +>B : B, Symbol(B, Decl(emitClassDeclarationWithConstructorInES6.ts, 6, 1)) y: number; ->y : number +>y : number, Symbol(y, Decl(emitClassDeclarationWithConstructorInES6.ts, 8, 9)) x: string = "hello"; ->x : string +>x : string, Symbol(x, Decl(emitClassDeclarationWithConstructorInES6.ts, 9, 14)) +>"hello" : string _bar: string; ->_bar : string +>_bar : string, Symbol(_bar, Decl(emitClassDeclarationWithConstructorInES6.ts, 10, 24)) constructor(x: number, z = "hello", ...args) { ->x : number ->z : string ->args : any[] +>x : number, Symbol(x, Decl(emitClassDeclarationWithConstructorInES6.ts, 13, 16)) +>z : string, Symbol(z, Decl(emitClassDeclarationWithConstructorInES6.ts, 13, 26)) +>"hello" : string +>args : any[], Symbol(args, Decl(emitClassDeclarationWithConstructorInES6.ts, 13, 39)) this.y = 10; >this.y = 10 : number ->this.y : number ->this : B ->y : number +>this.y : number, Symbol(y, Decl(emitClassDeclarationWithConstructorInES6.ts, 8, 9)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithConstructorInES6.ts, 6, 1)) +>y : number, Symbol(y, Decl(emitClassDeclarationWithConstructorInES6.ts, 8, 9)) +>10 : number } baz(...args): string; ->baz : (...args: any[]) => string ->args : any[] +>baz : (...args: any[]) => string, Symbol(baz, Decl(emitClassDeclarationWithConstructorInES6.ts, 15, 5), Decl(emitClassDeclarationWithConstructorInES6.ts, 16, 25)) +>args : any[], Symbol(args, Decl(emitClassDeclarationWithConstructorInES6.ts, 16, 8)) baz(z: string, v: number): string { ->baz : (...args: any[]) => string ->z : string ->v : number +>baz : (...args: any[]) => string, Symbol(baz, Decl(emitClassDeclarationWithConstructorInES6.ts, 15, 5), Decl(emitClassDeclarationWithConstructorInES6.ts, 16, 25)) +>z : string, Symbol(z, Decl(emitClassDeclarationWithConstructorInES6.ts, 17, 8)) +>v : number, Symbol(v, Decl(emitClassDeclarationWithConstructorInES6.ts, 17, 18)) return this._bar; ->this._bar : string ->this : B ->_bar : string +>this._bar : string, Symbol(_bar, Decl(emitClassDeclarationWithConstructorInES6.ts, 10, 24)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithConstructorInES6.ts, 6, 1)) +>_bar : string, Symbol(_bar, Decl(emitClassDeclarationWithConstructorInES6.ts, 10, 24)) } } diff --git a/tests/baselines/reference/emitClassDeclarationWithExtensionAndTypeArgumentInES6.types b/tests/baselines/reference/emitClassDeclarationWithExtensionAndTypeArgumentInES6.types index 0f546fa7b86..969fa6e4c65 100644 --- a/tests/baselines/reference/emitClassDeclarationWithExtensionAndTypeArgumentInES6.types +++ b/tests/baselines/reference/emitClassDeclarationWithExtensionAndTypeArgumentInES6.types @@ -1,29 +1,29 @@ === tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts === class B { ->B : B ->T : T +>B : B, Symbol(B, Decl(emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts, 0, 8)) constructor(a: T) { } ->a : T ->T : T +>a : T, Symbol(a, Decl(emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts, 1, 16)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts, 0, 8)) } class C extends B { } ->C : C ->B : B +>C : C, Symbol(C, Decl(emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts, 2, 1)) +>B : B, Symbol(B, Decl(emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts, 0, 0)) class D extends B { ->D : D ->B : B +>D : D, Symbol(D, Decl(emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts, 3, 29)) +>B : B, Symbol(B, Decl(emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts, 0, 0)) constructor(a: any) ->a : any +>a : any, Symbol(a, Decl(emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts, 5, 16)) constructor(b: number) { ->b : number +>b : number, Symbol(b, Decl(emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts, 6, 16)) super(b); >super(b) : void ->super : typeof B ->b : number +>super : typeof B, Symbol(B, Decl(emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts, 0, 0)) +>b : number, Symbol(b, Decl(emitClassDeclarationWithExtensionAndTypeArgumentInES6.ts, 6, 16)) } } diff --git a/tests/baselines/reference/emitClassDeclarationWithExtensionInES6.types b/tests/baselines/reference/emitClassDeclarationWithExtensionInES6.types index a1549be5df4..29f7fb99250 100644 --- a/tests/baselines/reference/emitClassDeclarationWithExtensionInES6.types +++ b/tests/baselines/reference/emitClassDeclarationWithExtensionInES6.types @@ -1,61 +1,64 @@ === tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithExtensionInES6.ts === class B { ->B : B +>B : B, Symbol(B, Decl(emitClassDeclarationWithExtensionInES6.ts, 0, 0)) baz(a: string, y = 10) { } ->baz : (a: string, y?: number) => void ->a : string ->y : number +>baz : (a: string, y?: number) => void, Symbol(baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 0, 9)) +>a : string, Symbol(a, Decl(emitClassDeclarationWithExtensionInES6.ts, 1, 8)) +>y : number, Symbol(y, Decl(emitClassDeclarationWithExtensionInES6.ts, 1, 18)) +>10 : number } class C extends B { ->C : C ->B : B +>C : C, Symbol(C, Decl(emitClassDeclarationWithExtensionInES6.ts, 2, 1)) +>B : B, Symbol(B, Decl(emitClassDeclarationWithExtensionInES6.ts, 0, 0)) foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(emitClassDeclarationWithExtensionInES6.ts, 3, 19)) baz(a: string, y:number) { ->baz : (a: string, y: number) => void ->a : string ->y : number +>baz : (a: string, y: number) => void, Symbol(baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 4, 13)) +>a : string, Symbol(a, Decl(emitClassDeclarationWithExtensionInES6.ts, 5, 8)) +>y : number, Symbol(y, Decl(emitClassDeclarationWithExtensionInES6.ts, 5, 18)) super.baz(a, y); >super.baz(a, y) : void ->super.baz : (a: string, y?: number) => void ->super : B ->baz : (a: string, y?: number) => void ->a : string ->y : number +>super.baz : (a: string, y?: number) => void, Symbol(B.baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 0, 9)) +>super : B, Symbol(B, Decl(emitClassDeclarationWithExtensionInES6.ts, 0, 0)) +>baz : (a: string, y?: number) => void, Symbol(B.baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 0, 9)) +>a : string, Symbol(a, Decl(emitClassDeclarationWithExtensionInES6.ts, 5, 8)) +>y : number, Symbol(y, Decl(emitClassDeclarationWithExtensionInES6.ts, 5, 18)) } } class D extends C { ->D : D ->C : C +>D : D, Symbol(D, Decl(emitClassDeclarationWithExtensionInES6.ts, 8, 1)) +>C : C, Symbol(C, Decl(emitClassDeclarationWithExtensionInES6.ts, 2, 1)) constructor() { super(); >super() : void ->super : typeof C +>super : typeof C, Symbol(C, Decl(emitClassDeclarationWithExtensionInES6.ts, 2, 1)) } foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(emitClassDeclarationWithExtensionInES6.ts, 12, 5)) super.foo(); >super.foo() : void ->super.foo : () => void ->super : C ->foo : () => void +>super.foo : () => void, Symbol(C.foo, Decl(emitClassDeclarationWithExtensionInES6.ts, 3, 19)) +>super : C, Symbol(C, Decl(emitClassDeclarationWithExtensionInES6.ts, 2, 1)) +>foo : () => void, Symbol(C.foo, Decl(emitClassDeclarationWithExtensionInES6.ts, 3, 19)) } baz() { ->baz : () => void +>baz : () => void, Symbol(baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 16, 5)) super.baz("hello", 10); >super.baz("hello", 10) : void ->super.baz : (a: string, y: number) => void ->super : C ->baz : (a: string, y: number) => void +>super.baz : (a: string, y: number) => void, Symbol(C.baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 4, 13)) +>super : C, Symbol(C, Decl(emitClassDeclarationWithExtensionInES6.ts, 2, 1)) +>baz : (a: string, y: number) => void, Symbol(C.baz, Decl(emitClassDeclarationWithExtensionInES6.ts, 4, 13)) +>"hello" : string +>10 : number } } diff --git a/tests/baselines/reference/emitClassDeclarationWithGetterSetterInES6.types b/tests/baselines/reference/emitClassDeclarationWithGetterSetterInES6.types index 83d4fcd0d80..7be87519ab9 100644 --- a/tests/baselines/reference/emitClassDeclarationWithGetterSetterInES6.types +++ b/tests/baselines/reference/emitClassDeclarationWithGetterSetterInES6.types @@ -1,48 +1,61 @@ === tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithGetterSetterInES6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 0, 0)) _name: string; ->_name : string +>_name : string, Symbol(_name, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 0, 9)) get name(): string { ->name : string +>name : string, Symbol(name, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 1, 18)) return this._name; ->this._name : string ->this : C ->_name : string +>this._name : string, Symbol(_name, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 0, 9)) +>this : C, Symbol(C, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 0, 0)) +>_name : string, Symbol(_name, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 0, 9)) } static get name2(): string { ->name2 : string +>name2 : string, Symbol(C.name2, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 4, 5)) return "BYE"; +>"BYE" : string } static get ["computedname"]() { +>"computedname" : string + return ""; +>"" : string } get ["computedname"]() { +>"computedname" : string + return ""; +>"" : string } get ["computedname"]() { +>"computedname" : string + return ""; +>"" : string } set ["computedname"](x: any) { ->x : any +>"computedname" : string +>x : any, Symbol(x, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 18, 25)) } set ["computedname"](y: string) { ->y : string +>"computedname" : string +>y : string, Symbol(y, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 20, 25)) } set foo(a: string) { } ->foo : string ->a : string +>foo : string, Symbol(foo, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 21, 5)) +>a : string, Symbol(a, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 23, 12)) static set bar(b: number) { } ->bar : number ->b : number +>bar : number, Symbol(C.bar, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 23, 26)) +>b : number, Symbol(b, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 24, 19)) static set ["computedname"](b: string) { } ->b : string +>"computedname" : string +>b : string, Symbol(b, Decl(emitClassDeclarationWithGetterSetterInES6.ts, 25, 32)) } diff --git a/tests/baselines/reference/emitClassDeclarationWithLiteralPropertyNameInES6.types b/tests/baselines/reference/emitClassDeclarationWithLiteralPropertyNameInES6.types index 65ba8f7d2b9..3463ee198f3 100644 --- a/tests/baselines/reference/emitClassDeclarationWithLiteralPropertyNameInES6.types +++ b/tests/baselines/reference/emitClassDeclarationWithLiteralPropertyNameInES6.types @@ -1,19 +1,34 @@ === tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithLiteralPropertyNameInES6.ts === class B { ->B : B +>B : B, Symbol(B, Decl(emitClassDeclarationWithLiteralPropertyNameInES6.ts, 0, 0)) "hello" = 10; +>10 : number + 0b110 = "world"; +>"world" : string + 0o23534 = "WORLD"; +>"WORLD" : string + 20 = "twenty"; +>"twenty" : string + "foo"() { } 0b1110() {} 11() { } interface() { } ->interface : () => void +>interface : () => void, Symbol(interface, Decl(emitClassDeclarationWithLiteralPropertyNameInES6.ts, 7, 12)) static "hi" = 10000; +>10000 : number + static 22 = "twenty-two"; +>"twenty-two" : string + static 0b101 = "binary"; +>"binary" : string + static 0o3235 = "octal"; +>"octal" : string } diff --git a/tests/baselines/reference/emitClassDeclarationWithMethodInES6.types b/tests/baselines/reference/emitClassDeclarationWithMethodInES6.types index f26a9f87e6d..052636315d2 100644 --- a/tests/baselines/reference/emitClassDeclarationWithMethodInES6.types +++ b/tests/baselines/reference/emitClassDeclarationWithMethodInES6.types @@ -1,57 +1,71 @@ === tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithMethodInES6.ts === class D { ->D : D +>D : D, Symbol(D, Decl(emitClassDeclarationWithMethodInES6.ts, 0, 0)) _bar: string; ->_bar : string +>_bar : string, Symbol(_bar, Decl(emitClassDeclarationWithMethodInES6.ts, 0, 9)) foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(emitClassDeclarationWithMethodInES6.ts, 1, 17)) ["computedName"]() { } +>"computedName" : string + ["computedName"](a: string) { } ->a : string +>"computedName" : string +>a : string, Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 4, 21)) ["computedName"](a: string): number { return 1; } ->a : string +>"computedName" : string +>a : string, Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 5, 21)) +>1 : number bar(): string { ->bar : () => string +>bar : () => string, Symbol(bar, Decl(emitClassDeclarationWithMethodInES6.ts, 5, 53)) return this._bar; ->this._bar : string ->this : D ->_bar : string +>this._bar : string, Symbol(_bar, Decl(emitClassDeclarationWithMethodInES6.ts, 0, 9)) +>this : D, Symbol(D, Decl(emitClassDeclarationWithMethodInES6.ts, 0, 0)) +>_bar : string, Symbol(_bar, Decl(emitClassDeclarationWithMethodInES6.ts, 0, 9)) } baz(a: any, x: string): string { ->baz : (a: any, x: string) => string ->a : any ->x : string +>baz : (a: any, x: string) => string, Symbol(baz, Decl(emitClassDeclarationWithMethodInES6.ts, 8, 5)) +>a : any, Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 9, 8)) +>x : string, Symbol(x, Decl(emitClassDeclarationWithMethodInES6.ts, 9, 15)) return "HELLO"; +>"HELLO" : string } static ["computedname"]() { } +>"computedname" : string + static ["computedname"](a: string) { } ->a : string +>"computedname" : string +>a : string, Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 13, 28)) static ["computedname"](a: string): boolean { return true; } ->a : string +>"computedname" : string +>a : string, Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 14, 28)) +>true : boolean static staticMethod() { ->staticMethod : () => number +>staticMethod : () => number, Symbol(D.staticMethod, Decl(emitClassDeclarationWithMethodInES6.ts, 14, 64)) var x = 1 + 2; ->x : number +>x : number, Symbol(x, Decl(emitClassDeclarationWithMethodInES6.ts, 16, 11)) >1 + 2 : number +>1 : number +>2 : number return x ->x : number +>x : number, Symbol(x, Decl(emitClassDeclarationWithMethodInES6.ts, 16, 11)) } static foo(a: string) { } ->foo : (a: string) => void ->a : string +>foo : (a: string) => void, Symbol(D.foo, Decl(emitClassDeclarationWithMethodInES6.ts, 18, 5)) +>a : string, Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 19, 15)) static bar(a: string): number { return 1; } ->bar : (a: string) => number ->a : string +>bar : (a: string) => number, Symbol(D.bar, Decl(emitClassDeclarationWithMethodInES6.ts, 19, 29)) +>a : string, Symbol(a, Decl(emitClassDeclarationWithMethodInES6.ts, 20, 15)) +>1 : number } diff --git a/tests/baselines/reference/emitClassDeclarationWithPropertyAssignmentInES6.types b/tests/baselines/reference/emitClassDeclarationWithPropertyAssignmentInES6.types index 5e7ebbc167c..6d41ce81438 100644 --- a/tests/baselines/reference/emitClassDeclarationWithPropertyAssignmentInES6.types +++ b/tests/baselines/reference/emitClassDeclarationWithPropertyAssignmentInES6.types @@ -1,56 +1,62 @@ === tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithPropertyAssignmentInES6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 0, 0)) x: string = "Hello world"; ->x : string +>x : string, Symbol(x, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 0, 9)) +>"Hello world" : string } class D { ->D : D +>D : D, Symbol(D, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 2, 1)) x: string = "Hello world"; ->x : string +>x : string, Symbol(x, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 4, 9)) +>"Hello world" : string y: number; ->y : number +>y : number, Symbol(y, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 5, 30)) constructor() { this.y = 10; >this.y = 10 : number ->this.y : number ->this : D ->y : number +>this.y : number, Symbol(y, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 5, 30)) +>this : D, Symbol(D, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 2, 1)) +>y : number, Symbol(y, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 5, 30)) +>10 : number } } class E extends D{ ->E : E ->D : D +>E : E, Symbol(E, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 10, 1)) +>D : D, Symbol(D, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 2, 1)) z: boolean = true; ->z : boolean +>z : boolean, Symbol(z, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 12, 18)) +>true : boolean } class F extends D{ ->F : F ->D : D +>F : F, Symbol(F, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 14, 1)) +>D : D, Symbol(D, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 2, 1)) z: boolean = true; ->z : boolean +>z : boolean, Symbol(z, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 16, 18)) +>true : boolean j: string; ->j : string +>j : string, Symbol(j, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 17, 22)) constructor() { super(); >super() : void ->super : typeof D +>super : typeof D, Symbol(D, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 2, 1)) this.j = "HI"; >this.j = "HI" : string ->this.j : string ->this : F ->j : string +>this.j : string, Symbol(j, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 17, 22)) +>this : F, Symbol(F, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 14, 1)) +>j : string, Symbol(j, Decl(emitClassDeclarationWithPropertyAssignmentInES6.ts, 17, 22)) +>"HI" : string } } diff --git a/tests/baselines/reference/emitClassDeclarationWithStaticPropertyAssignmentInES6.types b/tests/baselines/reference/emitClassDeclarationWithStaticPropertyAssignmentInES6.types index 6003b85b590..a97b76dfbe1 100644 --- a/tests/baselines/reference/emitClassDeclarationWithStaticPropertyAssignmentInES6.types +++ b/tests/baselines/reference/emitClassDeclarationWithStaticPropertyAssignmentInES6.types @@ -1,18 +1,21 @@ === tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithStaticPropertyAssignmentInES6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(emitClassDeclarationWithStaticPropertyAssignmentInES6.ts, 0, 0)) static z: string = "Foo"; ->z : string +>z : string, Symbol(C.z, Decl(emitClassDeclarationWithStaticPropertyAssignmentInES6.ts, 0, 9)) +>"Foo" : string } class D { ->D : D +>D : D, Symbol(D, Decl(emitClassDeclarationWithStaticPropertyAssignmentInES6.ts, 2, 1)) x = 20000; ->x : number +>x : number, Symbol(x, Decl(emitClassDeclarationWithStaticPropertyAssignmentInES6.ts, 4, 9)) +>20000 : number static b = true; ->b : boolean +>b : boolean, Symbol(D.b, Decl(emitClassDeclarationWithStaticPropertyAssignmentInES6.ts, 5, 14)) +>true : boolean } diff --git a/tests/baselines/reference/emitClassDeclarationWithSuperMethodCall01.js b/tests/baselines/reference/emitClassDeclarationWithSuperMethodCall01.js new file mode 100644 index 00000000000..77b91730156 --- /dev/null +++ b/tests/baselines/reference/emitClassDeclarationWithSuperMethodCall01.js @@ -0,0 +1,23 @@ +//// [emitClassDeclarationWithSuperMethodCall01.ts] + +class Parent { + foo() { + } +} + +class Foo extends Parent { + foo() { + var x = () => super.foo(); + } +} + +//// [emitClassDeclarationWithSuperMethodCall01.js] +class Parent { + foo() { + } +} +class Foo extends Parent { + foo() { + var x = () => super.foo(); + } +} diff --git a/tests/baselines/reference/emitClassDeclarationWithSuperMethodCall01.types b/tests/baselines/reference/emitClassDeclarationWithSuperMethodCall01.types new file mode 100644 index 00000000000..285fe704f11 --- /dev/null +++ b/tests/baselines/reference/emitClassDeclarationWithSuperMethodCall01.types @@ -0,0 +1,26 @@ +=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithSuperMethodCall01.ts === + +class Parent { +>Parent : Parent, Symbol(Parent, Decl(emitClassDeclarationWithSuperMethodCall01.ts, 0, 0)) + + foo() { +>foo : () => void, Symbol(foo, Decl(emitClassDeclarationWithSuperMethodCall01.ts, 1, 14)) + } +} + +class Foo extends Parent { +>Foo : Foo, Symbol(Foo, Decl(emitClassDeclarationWithSuperMethodCall01.ts, 4, 1)) +>Parent : Parent, Symbol(Parent, Decl(emitClassDeclarationWithSuperMethodCall01.ts, 0, 0)) + + foo() { +>foo : () => void, Symbol(foo, Decl(emitClassDeclarationWithSuperMethodCall01.ts, 6, 26)) + + var x = () => super.foo(); +>x : () => void, Symbol(x, Decl(emitClassDeclarationWithSuperMethodCall01.ts, 8, 11)) +>() => super.foo() : () => void +>super.foo() : void +>super.foo : () => void, Symbol(Parent.foo, Decl(emitClassDeclarationWithSuperMethodCall01.ts, 1, 14)) +>super : Parent, Symbol(Parent, Decl(emitClassDeclarationWithSuperMethodCall01.ts, 0, 0)) +>foo : () => void, Symbol(Parent.foo, Decl(emitClassDeclarationWithSuperMethodCall01.ts, 1, 14)) + } +} diff --git a/tests/baselines/reference/emitClassDeclarationWithThisKeywordInES6.types b/tests/baselines/reference/emitClassDeclarationWithThisKeywordInES6.types index bb0f7e99939..764d0cffee7 100644 --- a/tests/baselines/reference/emitClassDeclarationWithThisKeywordInES6.types +++ b/tests/baselines/reference/emitClassDeclarationWithThisKeywordInES6.types @@ -1,52 +1,54 @@ === tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithThisKeywordInES6.ts === class B { ->B : B +>B : B, Symbol(B, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 0)) x = 10; ->x : number +>x : number, Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9)) +>10 : number constructor() { this.x = 10; >this.x = 10 : number ->this.x : number ->this : B ->x : number +>this.x : number, Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 0)) +>x : number, Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9)) +>10 : number } static log(a: number) { } ->log : (a: number) => void ->a : number +>log : (a: number) => void, Symbol(B.log, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 4, 5)) +>a : number, Symbol(a, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 5, 15)) foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 5, 29)) B.log(this.x); >B.log(this.x) : void ->B.log : (a: number) => void ->B : typeof B ->log : (a: number) => void ->this.x : number ->this : B ->x : number +>B.log : (a: number) => void, Symbol(B.log, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 4, 5)) +>B : typeof B, Symbol(B, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 0)) +>log : (a: number) => void, Symbol(B.log, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 4, 5)) +>this.x : number, Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 0)) +>x : number, Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9)) } get X() { ->X : number +>X : number, Symbol(X, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 8, 5)) return this.x; ->this.x : number ->this : B ->x : number +>this.x : number, Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 0)) +>x : number, Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9)) } set bX(y: number) { ->bX : number ->y : number +>bX : number, Symbol(bX, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 12, 5)) +>y : number, Symbol(y, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 14, 11)) this.x = y; >this.x = y : number ->this.x : number ->this : B ->x : number ->y : number +>this.x : number, Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 0)) +>x : number, Symbol(x, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 0, 9)) +>y : number, Symbol(y, Decl(emitClassDeclarationWithThisKeywordInES6.ts, 14, 11)) } } diff --git a/tests/baselines/reference/emitClassDeclarationWithTypeArgumentAndOverloadInES6.types b/tests/baselines/reference/emitClassDeclarationWithTypeArgumentAndOverloadInES6.types index ba515168a5d..b25a864c8f9 100644 --- a/tests/baselines/reference/emitClassDeclarationWithTypeArgumentAndOverloadInES6.types +++ b/tests/baselines/reference/emitClassDeclarationWithTypeArgumentAndOverloadInES6.types @@ -1,75 +1,75 @@ === tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts === class B { ->B : B ->T : T +>B : B, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 12)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8)) B: T; ->B : T ->T : T +>B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8)) constructor(a: any) ->a : any +>a : any, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 4, 16)) constructor(a: any,b: T) ->a : any ->b : T ->T : T +>a : any, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 5, 16)) +>b : T, Symbol(b, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 5, 23)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8)) constructor(a: T) { this.B = a;} ->a : T ->T : T +>a : T, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 6, 16)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8)) >this.B = a : T ->this.B : T ->this : B ->B : T ->a : T +>this.B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 0)) +>B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9)) +>a : T, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 6, 16)) foo(a: T) ->foo : { (a: T): any; (a: any): any; (b: string): any; } ->a : T ->T : T +>foo : { (a: T): any; (a: any): any; (b: string): any; }, Symbol(foo, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 6, 36), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 8, 13), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 9, 15), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 10, 18)) +>a : T, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 8, 8)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8)) foo(a: any) ->foo : { (a: T): any; (a: any): any; (b: string): any; } ->a : any +>foo : { (a: T): any; (a: any): any; (b: string): any; }, Symbol(foo, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 6, 36), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 8, 13), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 9, 15), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 10, 18)) +>a : any, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 9, 8)) foo(b: string) ->foo : { (a: T): any; (a: any): any; (b: string): any; } ->b : string +>foo : { (a: T): any; (a: any): any; (b: string): any; }, Symbol(foo, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 6, 36), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 8, 13), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 9, 15), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 10, 18)) +>b : string, Symbol(b, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 10, 8)) foo(): T { ->foo : { (a: T): any; (a: any): any; (b: string): any; } ->T : T +>foo : { (a: T): any; (a: any): any; (b: string): any; }, Symbol(foo, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 6, 36), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 8, 13), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 9, 15), Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 10, 18)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8)) return this.x; ->this.x : T ->this : B ->x : T +>this.x : T, Symbol(x, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 12)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 0)) +>x : T, Symbol(x, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 12)) } get BB(): T { ->BB : T ->T : T +>BB : T, Symbol(BB, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 13, 5)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8)) return this.B; ->this.B : T ->this : B ->B : T +>this.B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 0)) +>B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9)) } set BBWith(c: T) { ->BBWith : T ->c : T ->T : T +>BBWith : T, Symbol(BBWith, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 17, 5)) +>c : T, Symbol(c, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 18, 15)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 8)) this.B = c; >this.B = c : T ->this.B : T ->this : B ->B : T ->c : T +>this.B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 0, 0)) +>B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 1, 9)) +>c : T, Symbol(c, Decl(emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts, 18, 15)) } } diff --git a/tests/baselines/reference/emitClassDeclarationWithTypeArgumentInES6.types b/tests/baselines/reference/emitClassDeclarationWithTypeArgumentInES6.types index 8081d044e35..44e01c7141a 100644 --- a/tests/baselines/reference/emitClassDeclarationWithTypeArgumentInES6.types +++ b/tests/baselines/reference/emitClassDeclarationWithTypeArgumentInES6.types @@ -1,53 +1,53 @@ === tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithTypeArgumentInES6.ts === class B { ->B : B ->T : T +>B : B, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 0)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 8)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 12)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 8)) B: T; ->B : T ->T : T +>B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 1, 9)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 8)) constructor(a: T) { this.B = a;} ->a : T ->T : T +>a : T, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 3, 16)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 8)) >this.B = a : T ->this.B : T ->this : B ->B : T ->a : T +>this.B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 1, 9)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 0)) +>B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 1, 9)) +>a : T, Symbol(a, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 3, 16)) foo(): T { ->foo : () => T ->T : T +>foo : () => T, Symbol(foo, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 3, 36)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 8)) return this.x; ->this.x : T ->this : B ->x : T +>this.x : T, Symbol(x, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 12)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 0)) +>x : T, Symbol(x, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 12)) } get BB(): T { ->BB : T ->T : T +>BB : T, Symbol(BB, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 6, 5)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 8)) return this.B; ->this.B : T ->this : B ->B : T +>this.B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 1, 9)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 0)) +>B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 1, 9)) } set BBWith(c: T) { ->BBWith : T ->c : T ->T : T +>BBWith : T, Symbol(BBWith, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 9, 5)) +>c : T, Symbol(c, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 10, 15)) +>T : T, Symbol(T, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 8)) this.B = c; >this.B = c : T ->this.B : T ->this : B ->B : T ->c : T +>this.B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 1, 9)) +>this : B, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 0, 0)) +>B : T, Symbol(B, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 1, 9)) +>c : T, Symbol(c, Decl(emitClassDeclarationWithTypeArgumentInES6.ts, 10, 15)) } } diff --git a/tests/baselines/reference/emitDefaultParametersFunction.types b/tests/baselines/reference/emitDefaultParametersFunction.types index a8dec6335a9..0afbc3beb09 100644 --- a/tests/baselines/reference/emitDefaultParametersFunction.types +++ b/tests/baselines/reference/emitDefaultParametersFunction.types @@ -1,21 +1,25 @@ === tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunction.ts === function foo(x: string, y = 10) { } ->foo : (x: string, y?: number) => void ->x : string ->y : number +>foo : (x: string, y?: number) => void, Symbol(foo, Decl(emitDefaultParametersFunction.ts, 0, 0)) +>x : string, Symbol(x, Decl(emitDefaultParametersFunction.ts, 0, 13)) +>y : number, Symbol(y, Decl(emitDefaultParametersFunction.ts, 0, 23)) +>10 : number function baz(x: string, y = 5, ...rest) { } ->baz : (x: string, y?: number, ...rest: any[]) => void ->x : string ->y : number ->rest : any[] +>baz : (x: string, y?: number, ...rest: any[]) => void, Symbol(baz, Decl(emitDefaultParametersFunction.ts, 0, 35)) +>x : string, Symbol(x, Decl(emitDefaultParametersFunction.ts, 1, 13)) +>y : number, Symbol(y, Decl(emitDefaultParametersFunction.ts, 1, 23)) +>5 : number +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunction.ts, 1, 30)) function bar(y = 10) { } ->bar : (y?: number) => void ->y : number +>bar : (y?: number) => void, Symbol(bar, Decl(emitDefaultParametersFunction.ts, 1, 43)) +>y : number, Symbol(y, Decl(emitDefaultParametersFunction.ts, 2, 13)) +>10 : number function bar1(y = 10, ...rest) { } ->bar1 : (y?: number, ...rest: any[]) => void ->y : number ->rest : any[] +>bar1 : (y?: number, ...rest: any[]) => void, Symbol(bar1, Decl(emitDefaultParametersFunction.ts, 2, 24)) +>y : number, Symbol(y, Decl(emitDefaultParametersFunction.ts, 3, 14)) +>10 : number +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunction.ts, 3, 21)) diff --git a/tests/baselines/reference/emitDefaultParametersFunctionES6.types b/tests/baselines/reference/emitDefaultParametersFunctionES6.types index 1c67032264f..687f0ff0c40 100644 --- a/tests/baselines/reference/emitDefaultParametersFunctionES6.types +++ b/tests/baselines/reference/emitDefaultParametersFunctionES6.types @@ -1,21 +1,25 @@ === tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionES6.ts === function foo(x: string, y = 10) { } ->foo : (x: string, y?: number) => void ->x : string ->y : number +>foo : (x: string, y?: number) => void, Symbol(foo, Decl(emitDefaultParametersFunctionES6.ts, 0, 0)) +>x : string, Symbol(x, Decl(emitDefaultParametersFunctionES6.ts, 0, 13)) +>y : number, Symbol(y, Decl(emitDefaultParametersFunctionES6.ts, 0, 23)) +>10 : number function baz(x: string, y = 5, ...rest) { } ->baz : (x: string, y?: number, ...rest: any[]) => void ->x : string ->y : number ->rest : any[] +>baz : (x: string, y?: number, ...rest: any[]) => void, Symbol(baz, Decl(emitDefaultParametersFunctionES6.ts, 0, 35)) +>x : string, Symbol(x, Decl(emitDefaultParametersFunctionES6.ts, 1, 13)) +>y : number, Symbol(y, Decl(emitDefaultParametersFunctionES6.ts, 1, 23)) +>5 : number +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionES6.ts, 1, 30)) function bar(y = 10) { } ->bar : (y?: number) => void ->y : number +>bar : (y?: number) => void, Symbol(bar, Decl(emitDefaultParametersFunctionES6.ts, 1, 43)) +>y : number, Symbol(y, Decl(emitDefaultParametersFunctionES6.ts, 2, 13)) +>10 : number function bar1(y = 10, ...rest) { } ->bar1 : (y?: number, ...rest: any[]) => void ->y : number ->rest : any[] +>bar1 : (y?: number, ...rest: any[]) => void, Symbol(bar1, Decl(emitDefaultParametersFunctionES6.ts, 2, 24)) +>y : number, Symbol(y, Decl(emitDefaultParametersFunctionES6.ts, 3, 14)) +>10 : number +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionES6.ts, 3, 21)) diff --git a/tests/baselines/reference/emitDefaultParametersFunctionExpression.types b/tests/baselines/reference/emitDefaultParametersFunctionExpression.types index 5c223ff1344..2b689f45ef6 100644 --- a/tests/baselines/reference/emitDefaultParametersFunctionExpression.types +++ b/tests/baselines/reference/emitDefaultParametersFunctionExpression.types @@ -1,49 +1,58 @@ === tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionExpression.ts === var lambda1 = (y = "hello") => { } ->lambda1 : (y?: string) => void +>lambda1 : (y?: string) => void, Symbol(lambda1, Decl(emitDefaultParametersFunctionExpression.ts, 0, 3)) >(y = "hello") => { } : (y?: string) => void ->y : string +>y : string, Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 0, 15)) +>"hello" : string var lambda2 = (x: number, y = "hello") => { } ->lambda2 : (x: number, y?: string) => void +>lambda2 : (x: number, y?: string) => void, Symbol(lambda2, Decl(emitDefaultParametersFunctionExpression.ts, 1, 3)) >(x: number, y = "hello") => { } : (x: number, y?: string) => void ->x : number ->y : string +>x : number, Symbol(x, Decl(emitDefaultParametersFunctionExpression.ts, 1, 15)) +>y : string, Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 1, 25)) +>"hello" : string var lambda3 = (x: number, y = "hello", ...rest) => { } ->lambda3 : (x: number, y?: string, ...rest: any[]) => void +>lambda3 : (x: number, y?: string, ...rest: any[]) => void, Symbol(lambda3, Decl(emitDefaultParametersFunctionExpression.ts, 2, 3)) >(x: number, y = "hello", ...rest) => { } : (x: number, y?: string, ...rest: any[]) => void ->x : number ->y : string ->rest : any[] +>x : number, Symbol(x, Decl(emitDefaultParametersFunctionExpression.ts, 2, 15)) +>y : string, Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 2, 25)) +>"hello" : string +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 2, 38)) var lambda4 = (y = "hello", ...rest) => { } ->lambda4 : (y?: string, ...rest: any[]) => void +>lambda4 : (y?: string, ...rest: any[]) => void, Symbol(lambda4, Decl(emitDefaultParametersFunctionExpression.ts, 3, 3)) >(y = "hello", ...rest) => { } : (y?: string, ...rest: any[]) => void ->y : string ->rest : any[] +>y : string, Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 3, 15)) +>"hello" : string +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 3, 27)) var x = function (str = "hello", ...rest) { } ->x : (str?: string, ...rest: any[]) => void +>x : (str?: string, ...rest: any[]) => void, Symbol(x, Decl(emitDefaultParametersFunctionExpression.ts, 5, 3)) >function (str = "hello", ...rest) { } : (str?: string, ...rest: any[]) => void ->str : string ->rest : any[] +>str : string, Symbol(str, Decl(emitDefaultParametersFunctionExpression.ts, 5, 18)) +>"hello" : string +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 5, 32)) var y = (function (num = 10, boo = false, ...rest) { })() ->y : void +>y : void, Symbol(y, Decl(emitDefaultParametersFunctionExpression.ts, 6, 3)) >(function (num = 10, boo = false, ...rest) { })() : void >(function (num = 10, boo = false, ...rest) { }) : (num?: number, boo?: boolean, ...rest: any[]) => void >function (num = 10, boo = false, ...rest) { } : (num?: number, boo?: boolean, ...rest: any[]) => void ->num : number ->boo : boolean ->rest : any[] +>num : number, Symbol(num, Decl(emitDefaultParametersFunctionExpression.ts, 6, 19)) +>10 : number +>boo : boolean, Symbol(boo, Decl(emitDefaultParametersFunctionExpression.ts, 6, 28)) +>false : boolean +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 6, 41)) var z = (function (num: number, boo = false, ...rest) { })(10) ->z : void +>z : void, Symbol(z, Decl(emitDefaultParametersFunctionExpression.ts, 7, 3)) >(function (num: number, boo = false, ...rest) { })(10) : void >(function (num: number, boo = false, ...rest) { }) : (num: number, boo?: boolean, ...rest: any[]) => void >function (num: number, boo = false, ...rest) { } : (num: number, boo?: boolean, ...rest: any[]) => void ->num : number ->boo : boolean ->rest : any[] +>num : number, Symbol(num, Decl(emitDefaultParametersFunctionExpression.ts, 7, 19)) +>boo : boolean, Symbol(boo, Decl(emitDefaultParametersFunctionExpression.ts, 7, 31)) +>false : boolean +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpression.ts, 7, 44)) +>10 : number diff --git a/tests/baselines/reference/emitDefaultParametersFunctionExpressionES6.types b/tests/baselines/reference/emitDefaultParametersFunctionExpressionES6.types index 9b8805dfa2b..059b983b5e0 100644 --- a/tests/baselines/reference/emitDefaultParametersFunctionExpressionES6.types +++ b/tests/baselines/reference/emitDefaultParametersFunctionExpressionES6.types @@ -1,49 +1,58 @@ === tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionExpressionES6.ts === var lambda1 = (y = "hello") => { } ->lambda1 : (y?: string) => void +>lambda1 : (y?: string) => void, Symbol(lambda1, Decl(emitDefaultParametersFunctionExpressionES6.ts, 0, 3)) >(y = "hello") => { } : (y?: string) => void ->y : string +>y : string, Symbol(y, Decl(emitDefaultParametersFunctionExpressionES6.ts, 0, 15)) +>"hello" : string var lambda2 = (x: number, y = "hello") => { } ->lambda2 : (x: number, y?: string) => void +>lambda2 : (x: number, y?: string) => void, Symbol(lambda2, Decl(emitDefaultParametersFunctionExpressionES6.ts, 1, 3)) >(x: number, y = "hello") => { } : (x: number, y?: string) => void ->x : number ->y : string +>x : number, Symbol(x, Decl(emitDefaultParametersFunctionExpressionES6.ts, 1, 15)) +>y : string, Symbol(y, Decl(emitDefaultParametersFunctionExpressionES6.ts, 1, 25)) +>"hello" : string var lambda3 = (x: number, y = "hello", ...rest) => { } ->lambda3 : (x: number, y?: string, ...rest: any[]) => void +>lambda3 : (x: number, y?: string, ...rest: any[]) => void, Symbol(lambda3, Decl(emitDefaultParametersFunctionExpressionES6.ts, 2, 3)) >(x: number, y = "hello", ...rest) => { } : (x: number, y?: string, ...rest: any[]) => void ->x : number ->y : string ->rest : any[] +>x : number, Symbol(x, Decl(emitDefaultParametersFunctionExpressionES6.ts, 2, 15)) +>y : string, Symbol(y, Decl(emitDefaultParametersFunctionExpressionES6.ts, 2, 25)) +>"hello" : string +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpressionES6.ts, 2, 38)) var lambda4 = (y = "hello", ...rest) => { } ->lambda4 : (y?: string, ...rest: any[]) => void +>lambda4 : (y?: string, ...rest: any[]) => void, Symbol(lambda4, Decl(emitDefaultParametersFunctionExpressionES6.ts, 3, 3)) >(y = "hello", ...rest) => { } : (y?: string, ...rest: any[]) => void ->y : string ->rest : any[] +>y : string, Symbol(y, Decl(emitDefaultParametersFunctionExpressionES6.ts, 3, 15)) +>"hello" : string +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpressionES6.ts, 3, 27)) var x = function (str = "hello", ...rest) { } ->x : (str?: string, ...rest: any[]) => void +>x : (str?: string, ...rest: any[]) => void, Symbol(x, Decl(emitDefaultParametersFunctionExpressionES6.ts, 5, 3)) >function (str = "hello", ...rest) { } : (str?: string, ...rest: any[]) => void ->str : string ->rest : any[] +>str : string, Symbol(str, Decl(emitDefaultParametersFunctionExpressionES6.ts, 5, 18)) +>"hello" : string +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpressionES6.ts, 5, 32)) var y = (function (num = 10, boo = false, ...rest) { })() ->y : void +>y : void, Symbol(y, Decl(emitDefaultParametersFunctionExpressionES6.ts, 6, 3)) >(function (num = 10, boo = false, ...rest) { })() : void >(function (num = 10, boo = false, ...rest) { }) : (num?: number, boo?: boolean, ...rest: any[]) => void >function (num = 10, boo = false, ...rest) { } : (num?: number, boo?: boolean, ...rest: any[]) => void ->num : number ->boo : boolean ->rest : any[] +>num : number, Symbol(num, Decl(emitDefaultParametersFunctionExpressionES6.ts, 6, 19)) +>10 : number +>boo : boolean, Symbol(boo, Decl(emitDefaultParametersFunctionExpressionES6.ts, 6, 28)) +>false : boolean +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpressionES6.ts, 6, 41)) var z = (function (num: number, boo = false, ...rest) { })(10) ->z : void +>z : void, Symbol(z, Decl(emitDefaultParametersFunctionExpressionES6.ts, 7, 3)) >(function (num: number, boo = false, ...rest) { })(10) : void >(function (num: number, boo = false, ...rest) { }) : (num: number, boo?: boolean, ...rest: any[]) => void >function (num: number, boo = false, ...rest) { } : (num: number, boo?: boolean, ...rest: any[]) => void ->num : number ->boo : boolean ->rest : any[] +>num : number, Symbol(num, Decl(emitDefaultParametersFunctionExpressionES6.ts, 7, 19)) +>boo : boolean, Symbol(boo, Decl(emitDefaultParametersFunctionExpressionES6.ts, 7, 31)) +>false : boolean +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionExpressionES6.ts, 7, 44)) +>10 : number diff --git a/tests/baselines/reference/emitDefaultParametersFunctionProperty.types b/tests/baselines/reference/emitDefaultParametersFunctionProperty.types index 7c1ea6a5da3..a595dd3a4e3 100644 --- a/tests/baselines/reference/emitDefaultParametersFunctionProperty.types +++ b/tests/baselines/reference/emitDefaultParametersFunctionProperty.types @@ -1,28 +1,32 @@ === tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionProperty.ts === var obj2 = { ->obj2 : { func1(y?: number, ...rest: any[]): void; func2(x?: string): void; func3(x: string, z: number, y?: string): void; func4(x: string, z: number, y?: string, ...rest: any[]): void; } +>obj2 : { func1(y?: number, ...rest: any[]): void; func2(x?: string): void; func3(x: string, z: number, y?: string): void; func4(x: string, z: number, y?: string, ...rest: any[]): void; }, Symbol(obj2, Decl(emitDefaultParametersFunctionProperty.ts, 0, 3)) >{ func1(y = 10, ...rest) { }, func2(x = "hello") { }, func3(x: string, z: number, y = "hello") { }, func4(x: string, z: number, y = "hello", ...rest) { },} : { func1(y?: number, ...rest: any[]): void; func2(x?: string): void; func3(x: string, z: number, y?: string): void; func4(x: string, z: number, y?: string, ...rest: any[]): void; } func1(y = 10, ...rest) { }, ->func1 : (y?: number, ...rest: any[]) => void ->y : number ->rest : any[] +>func1 : (y?: number, ...rest: any[]) => void, Symbol(func1, Decl(emitDefaultParametersFunctionProperty.ts, 0, 12)) +>y : number, Symbol(y, Decl(emitDefaultParametersFunctionProperty.ts, 1, 10)) +>10 : number +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionProperty.ts, 1, 17)) func2(x = "hello") { }, ->func2 : (x?: string) => void ->x : string +>func2 : (x?: string) => void, Symbol(func2, Decl(emitDefaultParametersFunctionProperty.ts, 1, 31)) +>x : string, Symbol(x, Decl(emitDefaultParametersFunctionProperty.ts, 2, 10)) +>"hello" : string func3(x: string, z: number, y = "hello") { }, ->func3 : (x: string, z: number, y?: string) => void ->x : string ->z : number ->y : string +>func3 : (x: string, z: number, y?: string) => void, Symbol(func3, Decl(emitDefaultParametersFunctionProperty.ts, 2, 27)) +>x : string, Symbol(x, Decl(emitDefaultParametersFunctionProperty.ts, 3, 10)) +>z : number, Symbol(z, Decl(emitDefaultParametersFunctionProperty.ts, 3, 20)) +>y : string, Symbol(y, Decl(emitDefaultParametersFunctionProperty.ts, 3, 31)) +>"hello" : string func4(x: string, z: number, y = "hello", ...rest) { }, ->func4 : (x: string, z: number, y?: string, ...rest: any[]) => void ->x : string ->z : number ->y : string ->rest : any[] +>func4 : (x: string, z: number, y?: string, ...rest: any[]) => void, Symbol(func4, Decl(emitDefaultParametersFunctionProperty.ts, 3, 49)) +>x : string, Symbol(x, Decl(emitDefaultParametersFunctionProperty.ts, 4, 10)) +>z : number, Symbol(z, Decl(emitDefaultParametersFunctionProperty.ts, 4, 20)) +>y : string, Symbol(y, Decl(emitDefaultParametersFunctionProperty.ts, 4, 31)) +>"hello" : string +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionProperty.ts, 4, 44)) } diff --git a/tests/baselines/reference/emitDefaultParametersFunctionPropertyES6.types b/tests/baselines/reference/emitDefaultParametersFunctionPropertyES6.types index ed80158ffd1..65fbe778340 100644 --- a/tests/baselines/reference/emitDefaultParametersFunctionPropertyES6.types +++ b/tests/baselines/reference/emitDefaultParametersFunctionPropertyES6.types @@ -1,27 +1,31 @@ === tests/cases/conformance/es6/defaultParameters/emitDefaultParametersFunctionPropertyES6.ts === var obj2 = { ->obj2 : { func1(y?: number, ...rest: any[]): void; func2(x?: string): void; func3(x: string, z: number, y?: string): void; func4(x: string, z: number, y?: string, ...rest: any[]): void; } +>obj2 : { func1(y?: number, ...rest: any[]): void; func2(x?: string): void; func3(x: string, z: number, y?: string): void; func4(x: string, z: number, y?: string, ...rest: any[]): void; }, Symbol(obj2, Decl(emitDefaultParametersFunctionPropertyES6.ts, 0, 3)) >{ func1(y = 10, ...rest) { }, func2(x = "hello") { }, func3(x: string, z: number, y = "hello") { }, func4(x: string, z: number, y = "hello", ...rest) { },} : { func1(y?: number, ...rest: any[]): void; func2(x?: string): void; func3(x: string, z: number, y?: string): void; func4(x: string, z: number, y?: string, ...rest: any[]): void; } func1(y = 10, ...rest) { }, ->func1 : (y?: number, ...rest: any[]) => void ->y : number ->rest : any[] +>func1 : (y?: number, ...rest: any[]) => void, Symbol(func1, Decl(emitDefaultParametersFunctionPropertyES6.ts, 0, 12)) +>y : number, Symbol(y, Decl(emitDefaultParametersFunctionPropertyES6.ts, 1, 10)) +>10 : number +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionPropertyES6.ts, 1, 17)) func2(x = "hello") { }, ->func2 : (x?: string) => void ->x : string +>func2 : (x?: string) => void, Symbol(func2, Decl(emitDefaultParametersFunctionPropertyES6.ts, 1, 31)) +>x : string, Symbol(x, Decl(emitDefaultParametersFunctionPropertyES6.ts, 2, 10)) +>"hello" : string func3(x: string, z: number, y = "hello") { }, ->func3 : (x: string, z: number, y?: string) => void ->x : string ->z : number ->y : string +>func3 : (x: string, z: number, y?: string) => void, Symbol(func3, Decl(emitDefaultParametersFunctionPropertyES6.ts, 2, 27)) +>x : string, Symbol(x, Decl(emitDefaultParametersFunctionPropertyES6.ts, 3, 10)) +>z : number, Symbol(z, Decl(emitDefaultParametersFunctionPropertyES6.ts, 3, 20)) +>y : string, Symbol(y, Decl(emitDefaultParametersFunctionPropertyES6.ts, 3, 31)) +>"hello" : string func4(x: string, z: number, y = "hello", ...rest) { }, ->func4 : (x: string, z: number, y?: string, ...rest: any[]) => void ->x : string ->z : number ->y : string ->rest : any[] +>func4 : (x: string, z: number, y?: string, ...rest: any[]) => void, Symbol(func4, Decl(emitDefaultParametersFunctionPropertyES6.ts, 3, 49)) +>x : string, Symbol(x, Decl(emitDefaultParametersFunctionPropertyES6.ts, 4, 10)) +>z : number, Symbol(z, Decl(emitDefaultParametersFunctionPropertyES6.ts, 4, 20)) +>y : string, Symbol(y, Decl(emitDefaultParametersFunctionPropertyES6.ts, 4, 31)) +>"hello" : string +>rest : any[], Symbol(rest, Decl(emitDefaultParametersFunctionPropertyES6.ts, 4, 44)) } diff --git a/tests/baselines/reference/emitDefaultParametersMethod.types b/tests/baselines/reference/emitDefaultParametersMethod.types index 5b2f08d4f70..d142243ba32 100644 --- a/tests/baselines/reference/emitDefaultParametersMethod.types +++ b/tests/baselines/reference/emitDefaultParametersMethod.types @@ -1,46 +1,53 @@ === tests/cases/conformance/es6/defaultParameters/emitDefaultParametersMethod.ts === class C { ->C : C +>C : C, Symbol(C, Decl(emitDefaultParametersMethod.ts, 0, 0)) constructor(t: boolean, z: string, x: number, y = "hello") { } ->t : boolean ->z : string ->x : number ->y : string +>t : boolean, Symbol(t, Decl(emitDefaultParametersMethod.ts, 1, 16)) +>z : string, Symbol(z, Decl(emitDefaultParametersMethod.ts, 1, 27)) +>x : number, Symbol(x, Decl(emitDefaultParametersMethod.ts, 1, 38)) +>y : string, Symbol(y, Decl(emitDefaultParametersMethod.ts, 1, 49)) +>"hello" : string public foo(x: string, t = false) { } ->foo : (x: string, t?: boolean) => void ->x : string ->t : boolean +>foo : (x: string, t?: boolean) => void, Symbol(foo, Decl(emitDefaultParametersMethod.ts, 1, 66)) +>x : string, Symbol(x, Decl(emitDefaultParametersMethod.ts, 3, 15)) +>t : boolean, Symbol(t, Decl(emitDefaultParametersMethod.ts, 3, 25)) +>false : boolean public foo1(x: string, t = false, ...rest) { } ->foo1 : (x: string, t?: boolean, ...rest: any[]) => void ->x : string ->t : boolean ->rest : any[] +>foo1 : (x: string, t?: boolean, ...rest: any[]) => void, Symbol(foo1, Decl(emitDefaultParametersMethod.ts, 3, 40)) +>x : string, Symbol(x, Decl(emitDefaultParametersMethod.ts, 4, 16)) +>t : boolean, Symbol(t, Decl(emitDefaultParametersMethod.ts, 4, 26)) +>false : boolean +>rest : any[], Symbol(rest, Decl(emitDefaultParametersMethod.ts, 4, 37)) public bar(t = false) { } ->bar : (t?: boolean) => void ->t : boolean +>bar : (t?: boolean) => void, Symbol(bar, Decl(emitDefaultParametersMethod.ts, 4, 50)) +>t : boolean, Symbol(t, Decl(emitDefaultParametersMethod.ts, 5, 15)) +>false : boolean public boo(t = false, ...rest) { } ->boo : (t?: boolean, ...rest: any[]) => void ->t : boolean ->rest : any[] +>boo : (t?: boolean, ...rest: any[]) => void, Symbol(boo, Decl(emitDefaultParametersMethod.ts, 5, 29)) +>t : boolean, Symbol(t, Decl(emitDefaultParametersMethod.ts, 6, 15)) +>false : boolean +>rest : any[], Symbol(rest, Decl(emitDefaultParametersMethod.ts, 6, 25)) } class D { ->D : D +>D : D, Symbol(D, Decl(emitDefaultParametersMethod.ts, 7, 1)) constructor(y = "hello") { } ->y : string +>y : string, Symbol(y, Decl(emitDefaultParametersMethod.ts, 10, 16)) +>"hello" : string } class E { ->E : E +>E : E, Symbol(E, Decl(emitDefaultParametersMethod.ts, 11, 1)) constructor(y = "hello", ...rest) { } ->y : string ->rest : any[] +>y : string, Symbol(y, Decl(emitDefaultParametersMethod.ts, 14, 16)) +>"hello" : string +>rest : any[], Symbol(rest, Decl(emitDefaultParametersMethod.ts, 14, 28)) } diff --git a/tests/baselines/reference/emitDefaultParametersMethodES6.types b/tests/baselines/reference/emitDefaultParametersMethodES6.types index 54312714b1d..4b8c9c7281d 100644 --- a/tests/baselines/reference/emitDefaultParametersMethodES6.types +++ b/tests/baselines/reference/emitDefaultParametersMethodES6.types @@ -1,45 +1,52 @@ === tests/cases/conformance/es6/defaultParameters/emitDefaultParametersMethodES6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(emitDefaultParametersMethodES6.ts, 0, 0)) constructor(t: boolean, z: string, x: number, y = "hello") { } ->t : boolean ->z : string ->x : number ->y : string +>t : boolean, Symbol(t, Decl(emitDefaultParametersMethodES6.ts, 1, 16)) +>z : string, Symbol(z, Decl(emitDefaultParametersMethodES6.ts, 1, 27)) +>x : number, Symbol(x, Decl(emitDefaultParametersMethodES6.ts, 1, 38)) +>y : string, Symbol(y, Decl(emitDefaultParametersMethodES6.ts, 1, 49)) +>"hello" : string public foo(x: string, t = false) { } ->foo : (x: string, t?: boolean) => void ->x : string ->t : boolean +>foo : (x: string, t?: boolean) => void, Symbol(foo, Decl(emitDefaultParametersMethodES6.ts, 1, 66)) +>x : string, Symbol(x, Decl(emitDefaultParametersMethodES6.ts, 3, 15)) +>t : boolean, Symbol(t, Decl(emitDefaultParametersMethodES6.ts, 3, 25)) +>false : boolean public foo1(x: string, t = false, ...rest) { } ->foo1 : (x: string, t?: boolean, ...rest: any[]) => void ->x : string ->t : boolean ->rest : any[] +>foo1 : (x: string, t?: boolean, ...rest: any[]) => void, Symbol(foo1, Decl(emitDefaultParametersMethodES6.ts, 3, 40)) +>x : string, Symbol(x, Decl(emitDefaultParametersMethodES6.ts, 4, 16)) +>t : boolean, Symbol(t, Decl(emitDefaultParametersMethodES6.ts, 4, 26)) +>false : boolean +>rest : any[], Symbol(rest, Decl(emitDefaultParametersMethodES6.ts, 4, 37)) public bar(t = false) { } ->bar : (t?: boolean) => void ->t : boolean +>bar : (t?: boolean) => void, Symbol(bar, Decl(emitDefaultParametersMethodES6.ts, 4, 50)) +>t : boolean, Symbol(t, Decl(emitDefaultParametersMethodES6.ts, 5, 15)) +>false : boolean public boo(t = false, ...rest) { } ->boo : (t?: boolean, ...rest: any[]) => void ->t : boolean ->rest : any[] +>boo : (t?: boolean, ...rest: any[]) => void, Symbol(boo, Decl(emitDefaultParametersMethodES6.ts, 5, 29)) +>t : boolean, Symbol(t, Decl(emitDefaultParametersMethodES6.ts, 6, 15)) +>false : boolean +>rest : any[], Symbol(rest, Decl(emitDefaultParametersMethodES6.ts, 6, 25)) } class D { ->D : D +>D : D, Symbol(D, Decl(emitDefaultParametersMethodES6.ts, 7, 1)) constructor(y = "hello") { } ->y : string +>y : string, Symbol(y, Decl(emitDefaultParametersMethodES6.ts, 10, 16)) +>"hello" : string } class E { ->E : E +>E : E, Symbol(E, Decl(emitDefaultParametersMethodES6.ts, 11, 1)) constructor(y = "hello", ...rest) { } ->y : string ->rest : any[] +>y : string, Symbol(y, Decl(emitDefaultParametersMethodES6.ts, 14, 16)) +>"hello" : string +>rest : any[], Symbol(rest, Decl(emitDefaultParametersMethodES6.ts, 14, 28)) } diff --git a/tests/baselines/reference/emitMemberAccessExpression.types b/tests/baselines/reference/emitMemberAccessExpression.types index 9f7c98332e9..e8a7e9962c8 100644 --- a/tests/baselines/reference/emitMemberAccessExpression.types +++ b/tests/baselines/reference/emitMemberAccessExpression.types @@ -2,41 +2,44 @@ /// /// declare var OData: any; ->OData : any +>OData : any, Symbol(OData, Decl(emitMemberAccessExpression_file3.ts, 2, 11)) module Microsoft.PeopleAtWork.Model { ->Microsoft : typeof Microsoft ->PeopleAtWork : typeof PeopleAtWork ->Model : typeof Model +>Microsoft : typeof Microsoft, Symbol(Microsoft, Decl(emitMemberAccessExpression_file2.ts, 1, 13), Decl(emitMemberAccessExpression_file3.ts, 2, 23)) +>PeopleAtWork : typeof PeopleAtWork, Symbol(PeopleAtWork, Decl(emitMemberAccessExpression_file2.ts, 2, 17), Decl(emitMemberAccessExpression_file3.ts, 3, 17)) +>Model : typeof Model, Symbol(Model, Decl(emitMemberAccessExpression_file2.ts, 2, 30), Decl(emitMemberAccessExpression_file3.ts, 3, 30)) export class KnockoutExtentions { ->KnockoutExtentions : KnockoutExtentions +>KnockoutExtentions : KnockoutExtentions, Symbol(KnockoutExtentions, Decl(emitMemberAccessExpression_file3.ts, 3, 37)) } } === tests/cases/compiler/emitMemberAccessExpression_file1.ts === /// -No type information for this code."use strict"; -No type information for this code. -No type information for this code.=== tests/cases/compiler/emitMemberAccessExpression_file2.ts === +"use strict"; +>"use strict" : string + +=== tests/cases/compiler/emitMemberAccessExpression_file2.ts === /// "use strict"; +>"use strict" : string + module Microsoft.PeopleAtWork.Model { ->Microsoft : typeof Microsoft ->PeopleAtWork : typeof PeopleAtWork ->Model : typeof Model +>Microsoft : typeof Microsoft, Symbol(Microsoft, Decl(emitMemberAccessExpression_file2.ts, 1, 13), Decl(emitMemberAccessExpression_file3.ts, 2, 23)) +>PeopleAtWork : typeof PeopleAtWork, Symbol(PeopleAtWork, Decl(emitMemberAccessExpression_file2.ts, 2, 17), Decl(emitMemberAccessExpression_file3.ts, 3, 17)) +>Model : typeof Model, Symbol(Model, Decl(emitMemberAccessExpression_file2.ts, 2, 30), Decl(emitMemberAccessExpression_file3.ts, 3, 30)) export class _Person { ->_Person : _Person +>_Person : _Person, Symbol(_Person, Decl(emitMemberAccessExpression_file2.ts, 2, 37)) public populate(raw: any) { ->populate : (raw: any) => void ->raw : any +>populate : (raw: any) => void, Symbol(populate, Decl(emitMemberAccessExpression_file2.ts, 3, 26)) +>raw : any, Symbol(raw, Decl(emitMemberAccessExpression_file2.ts, 4, 24)) var res = Model.KnockoutExtentions; ->res : typeof KnockoutExtentions ->Model.KnockoutExtentions : typeof KnockoutExtentions ->Model : typeof Model ->KnockoutExtentions : typeof KnockoutExtentions +>res : typeof KnockoutExtentions, Symbol(res, Decl(emitMemberAccessExpression_file2.ts, 5, 15)) +>Model.KnockoutExtentions : typeof KnockoutExtentions, Symbol(KnockoutExtentions, Decl(emitMemberAccessExpression_file3.ts, 3, 37)) +>Model : typeof Model, Symbol(Model, Decl(emitMemberAccessExpression_file2.ts, 2, 30), Decl(emitMemberAccessExpression_file3.ts, 3, 30)) +>KnockoutExtentions : typeof KnockoutExtentions, Symbol(KnockoutExtentions, Decl(emitMemberAccessExpression_file3.ts, 3, 37)) } } } diff --git a/tests/baselines/reference/emitPostComments.types b/tests/baselines/reference/emitPostComments.types index 4173e584031..70319c1db16 100644 --- a/tests/baselines/reference/emitPostComments.types +++ b/tests/baselines/reference/emitPostComments.types @@ -1,7 +1,8 @@ === tests/cases/compiler/emitPostComments.ts === var y = 10; ->y : number +>y : number, Symbol(y, Decl(emitPostComments.ts, 1, 3)) +>10 : number /** * @name Foo diff --git a/tests/baselines/reference/emitPreComments.types b/tests/baselines/reference/emitPreComments.types index 6ab0c7b1bf9..2cc79cfff3b 100644 --- a/tests/baselines/reference/emitPreComments.types +++ b/tests/baselines/reference/emitPreComments.types @@ -2,7 +2,8 @@ // This is pre comment var y = 10; ->y : number +>y : number, Symbol(y, Decl(emitPreComments.ts, 2, 3)) +>10 : number /** * @name Foo diff --git a/tests/baselines/reference/emitRestParametersFunction.types b/tests/baselines/reference/emitRestParametersFunction.types index a65adb57702..f3f1815d15d 100644 --- a/tests/baselines/reference/emitRestParametersFunction.types +++ b/tests/baselines/reference/emitRestParametersFunction.types @@ -1,11 +1,11 @@ === tests/cases/conformance/es6/restParameters/emitRestParametersFunction.ts === function bar(...rest) { } ->bar : (...rest: any[]) => void ->rest : any[] +>bar : (...rest: any[]) => void, Symbol(bar, Decl(emitRestParametersFunction.ts, 0, 0)) +>rest : any[], Symbol(rest, Decl(emitRestParametersFunction.ts, 0, 13)) function foo(x: number, y: string, ...rest) { } ->foo : (x: number, y: string, ...rest: any[]) => void ->x : number ->y : string ->rest : any[] +>foo : (x: number, y: string, ...rest: any[]) => void, Symbol(foo, Decl(emitRestParametersFunction.ts, 0, 25)) +>x : number, Symbol(x, Decl(emitRestParametersFunction.ts, 1, 13)) +>y : string, Symbol(y, Decl(emitRestParametersFunction.ts, 1, 23)) +>rest : any[], Symbol(rest, Decl(emitRestParametersFunction.ts, 1, 34)) diff --git a/tests/baselines/reference/emitRestParametersFunctionES6.types b/tests/baselines/reference/emitRestParametersFunctionES6.types index 5689d64c4df..c4f410f4098 100644 --- a/tests/baselines/reference/emitRestParametersFunctionES6.types +++ b/tests/baselines/reference/emitRestParametersFunctionES6.types @@ -1,11 +1,11 @@ === tests/cases/conformance/es6/restParameters/emitRestParametersFunctionES6.ts === function bar(...rest) { } ->bar : (...rest: any[]) => void ->rest : any[] +>bar : (...rest: any[]) => void, Symbol(bar, Decl(emitRestParametersFunctionES6.ts, 0, 0)) +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionES6.ts, 0, 13)) function foo(x: number, y: string, ...rest) { } ->foo : (x: number, y: string, ...rest: any[]) => void ->x : number ->y : string ->rest : any[] +>foo : (x: number, y: string, ...rest: any[]) => void, Symbol(foo, Decl(emitRestParametersFunctionES6.ts, 0, 25)) +>x : number, Symbol(x, Decl(emitRestParametersFunctionES6.ts, 1, 13)) +>y : string, Symbol(y, Decl(emitRestParametersFunctionES6.ts, 1, 23)) +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionES6.ts, 1, 34)) diff --git a/tests/baselines/reference/emitRestParametersFunctionExpression.types b/tests/baselines/reference/emitRestParametersFunctionExpression.types index 9f08b9d9d83..68a005274bd 100644 --- a/tests/baselines/reference/emitRestParametersFunctionExpression.types +++ b/tests/baselines/reference/emitRestParametersFunctionExpression.types @@ -1,24 +1,24 @@ === tests/cases/conformance/es6/restParameters/emitRestParametersFunctionExpression.ts === var funcExp = (...rest) => { } ->funcExp : (...rest: any[]) => void +>funcExp : (...rest: any[]) => void, Symbol(funcExp, Decl(emitRestParametersFunctionExpression.ts, 0, 3)) >(...rest) => { } : (...rest: any[]) => void ->rest : any[] +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionExpression.ts, 0, 15)) var funcExp1 = (X: number, ...rest) => { } ->funcExp1 : (X: number, ...rest: any[]) => void +>funcExp1 : (X: number, ...rest: any[]) => void, Symbol(funcExp1, Decl(emitRestParametersFunctionExpression.ts, 1, 3)) >(X: number, ...rest) => { } : (X: number, ...rest: any[]) => void ->X : number ->rest : any[] +>X : number, Symbol(X, Decl(emitRestParametersFunctionExpression.ts, 1, 16)) +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionExpression.ts, 1, 26)) var funcExp2 = function (...rest) { } ->funcExp2 : (...rest: any[]) => void +>funcExp2 : (...rest: any[]) => void, Symbol(funcExp2, Decl(emitRestParametersFunctionExpression.ts, 2, 3)) >function (...rest) { } : (...rest: any[]) => void ->rest : any[] +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionExpression.ts, 2, 25)) var funcExp3 = (function (...rest) { })() ->funcExp3 : void +>funcExp3 : void, Symbol(funcExp3, Decl(emitRestParametersFunctionExpression.ts, 3, 3)) >(function (...rest) { })() : void >(function (...rest) { }) : (...rest: any[]) => void >function (...rest) { } : (...rest: any[]) => void ->rest : any[] +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionExpression.ts, 3, 26)) diff --git a/tests/baselines/reference/emitRestParametersFunctionExpressionES6.types b/tests/baselines/reference/emitRestParametersFunctionExpressionES6.types index 224cb37367a..2d343dd2c0e 100644 --- a/tests/baselines/reference/emitRestParametersFunctionExpressionES6.types +++ b/tests/baselines/reference/emitRestParametersFunctionExpressionES6.types @@ -1,24 +1,24 @@ === tests/cases/conformance/es6/restParameters/emitRestParametersFunctionExpressionES6.ts === var funcExp = (...rest) => { } ->funcExp : (...rest: any[]) => void +>funcExp : (...rest: any[]) => void, Symbol(funcExp, Decl(emitRestParametersFunctionExpressionES6.ts, 0, 3)) >(...rest) => { } : (...rest: any[]) => void ->rest : any[] +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionExpressionES6.ts, 0, 15)) var funcExp1 = (X: number, ...rest) => { } ->funcExp1 : (X: number, ...rest: any[]) => void +>funcExp1 : (X: number, ...rest: any[]) => void, Symbol(funcExp1, Decl(emitRestParametersFunctionExpressionES6.ts, 1, 3)) >(X: number, ...rest) => { } : (X: number, ...rest: any[]) => void ->X : number ->rest : any[] +>X : number, Symbol(X, Decl(emitRestParametersFunctionExpressionES6.ts, 1, 16)) +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionExpressionES6.ts, 1, 26)) var funcExp2 = function (...rest) { } ->funcExp2 : (...rest: any[]) => void +>funcExp2 : (...rest: any[]) => void, Symbol(funcExp2, Decl(emitRestParametersFunctionExpressionES6.ts, 2, 3)) >function (...rest) { } : (...rest: any[]) => void ->rest : any[] +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionExpressionES6.ts, 2, 25)) var funcExp3 = (function (...rest) { })() ->funcExp3 : void +>funcExp3 : void, Symbol(funcExp3, Decl(emitRestParametersFunctionExpressionES6.ts, 3, 3)) >(function (...rest) { })() : void >(function (...rest) { }) : (...rest: any[]) => void >function (...rest) { } : (...rest: any[]) => void ->rest : any[] +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionExpressionES6.ts, 3, 26)) diff --git a/tests/baselines/reference/emitRestParametersFunctionProperty.types b/tests/baselines/reference/emitRestParametersFunctionProperty.types index 8242e742ee0..2ca5586c217 100644 --- a/tests/baselines/reference/emitRestParametersFunctionProperty.types +++ b/tests/baselines/reference/emitRestParametersFunctionProperty.types @@ -1,17 +1,17 @@ === tests/cases/conformance/es6/restParameters/emitRestParametersFunctionProperty.ts === var obj: { ->obj : { func1: (...rest: any[]) => void; } +>obj : { func1: (...rest: any[]) => void; }, Symbol(obj, Decl(emitRestParametersFunctionProperty.ts, 0, 3)) func1: (...rest) => void ->func1 : (...rest: any[]) => void ->rest : any[] +>func1 : (...rest: any[]) => void, Symbol(func1, Decl(emitRestParametersFunctionProperty.ts, 0, 10)) +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionProperty.ts, 1, 12)) } var obj2 = { ->obj2 : { func(...rest: any[]): void; } +>obj2 : { func(...rest: any[]): void; }, Symbol(obj2, Decl(emitRestParametersFunctionProperty.ts, 4, 3)) >{ func(...rest) { }} : { func(...rest: any[]): void; } func(...rest) { } ->func : (...rest: any[]) => void ->rest : any[] +>func : (...rest: any[]) => void, Symbol(func, Decl(emitRestParametersFunctionProperty.ts, 4, 12)) +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionProperty.ts, 5, 9)) } diff --git a/tests/baselines/reference/emitRestParametersFunctionPropertyES6.types b/tests/baselines/reference/emitRestParametersFunctionPropertyES6.types index 07a008cd4c0..ba840c9b9a3 100644 --- a/tests/baselines/reference/emitRestParametersFunctionPropertyES6.types +++ b/tests/baselines/reference/emitRestParametersFunctionPropertyES6.types @@ -1,17 +1,17 @@ === tests/cases/conformance/es6/restParameters/emitRestParametersFunctionPropertyES6.ts === var obj: { ->obj : { func1: (...rest: any[]) => void; } +>obj : { func1: (...rest: any[]) => void; }, Symbol(obj, Decl(emitRestParametersFunctionPropertyES6.ts, 0, 3)) func1: (...rest) => void ->func1 : (...rest: any[]) => void ->rest : any[] +>func1 : (...rest: any[]) => void, Symbol(func1, Decl(emitRestParametersFunctionPropertyES6.ts, 0, 10)) +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionPropertyES6.ts, 1, 12)) } var obj2 = { ->obj2 : { func(...rest: any[]): void; } +>obj2 : { func(...rest: any[]): void; }, Symbol(obj2, Decl(emitRestParametersFunctionPropertyES6.ts, 4, 3)) >{ func(...rest) { }} : { func(...rest: any[]): void; } func(...rest) { } ->func : (...rest: any[]) => void ->rest : any[] +>func : (...rest: any[]) => void, Symbol(func, Decl(emitRestParametersFunctionPropertyES6.ts, 4, 12)) +>rest : any[], Symbol(rest, Decl(emitRestParametersFunctionPropertyES6.ts, 5, 9)) } diff --git a/tests/baselines/reference/emitRestParametersMethod.types b/tests/baselines/reference/emitRestParametersMethod.types index c94561ca737..4e9f03cb6d3 100644 --- a/tests/baselines/reference/emitRestParametersMethod.types +++ b/tests/baselines/reference/emitRestParametersMethod.types @@ -1,33 +1,33 @@ === tests/cases/conformance/es6/restParameters/emitRestParametersMethod.ts === class C { ->C : C +>C : C, Symbol(C, Decl(emitRestParametersMethod.ts, 0, 0)) constructor(name: string, ...rest) { } ->name : string ->rest : any[] +>name : string, Symbol(name, Decl(emitRestParametersMethod.ts, 1, 16)) +>rest : any[], Symbol(rest, Decl(emitRestParametersMethod.ts, 1, 29)) public bar(...rest) { } ->bar : (...rest: any[]) => void ->rest : any[] +>bar : (...rest: any[]) => void, Symbol(bar, Decl(emitRestParametersMethod.ts, 1, 42)) +>rest : any[], Symbol(rest, Decl(emitRestParametersMethod.ts, 3, 15)) public foo(x: number, ...rest) { } ->foo : (x: number, ...rest: any[]) => void ->x : number ->rest : any[] +>foo : (x: number, ...rest: any[]) => void, Symbol(foo, Decl(emitRestParametersMethod.ts, 3, 27)) +>x : number, Symbol(x, Decl(emitRestParametersMethod.ts, 4, 15)) +>rest : any[], Symbol(rest, Decl(emitRestParametersMethod.ts, 4, 25)) } class D { ->D : D +>D : D, Symbol(D, Decl(emitRestParametersMethod.ts, 5, 1)) constructor(...rest) { } ->rest : any[] +>rest : any[], Symbol(rest, Decl(emitRestParametersMethod.ts, 8, 16)) public bar(...rest) { } ->bar : (...rest: any[]) => void ->rest : any[] +>bar : (...rest: any[]) => void, Symbol(bar, Decl(emitRestParametersMethod.ts, 8, 28)) +>rest : any[], Symbol(rest, Decl(emitRestParametersMethod.ts, 10, 15)) public foo(x: number, ...rest) { } ->foo : (x: number, ...rest: any[]) => void ->x : number ->rest : any[] +>foo : (x: number, ...rest: any[]) => void, Symbol(foo, Decl(emitRestParametersMethod.ts, 10, 27)) +>x : number, Symbol(x, Decl(emitRestParametersMethod.ts, 11, 15)) +>rest : any[], Symbol(rest, Decl(emitRestParametersMethod.ts, 11, 25)) } diff --git a/tests/baselines/reference/emitRestParametersMethodES6.types b/tests/baselines/reference/emitRestParametersMethodES6.types index 4555a5c666d..48d3fdd2292 100644 --- a/tests/baselines/reference/emitRestParametersMethodES6.types +++ b/tests/baselines/reference/emitRestParametersMethodES6.types @@ -1,34 +1,34 @@ === tests/cases/conformance/es6/restParameters/emitRestParametersMethodES6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(emitRestParametersMethodES6.ts, 0, 0)) constructor(name: string, ...rest) { } ->name : string ->rest : any[] +>name : string, Symbol(name, Decl(emitRestParametersMethodES6.ts, 1, 16)) +>rest : any[], Symbol(rest, Decl(emitRestParametersMethodES6.ts, 1, 29)) public bar(...rest) { } ->bar : (...rest: any[]) => void ->rest : any[] +>bar : (...rest: any[]) => void, Symbol(bar, Decl(emitRestParametersMethodES6.ts, 1, 42)) +>rest : any[], Symbol(rest, Decl(emitRestParametersMethodES6.ts, 3, 15)) public foo(x: number, ...rest) { } ->foo : (x: number, ...rest: any[]) => void ->x : number ->rest : any[] +>foo : (x: number, ...rest: any[]) => void, Symbol(foo, Decl(emitRestParametersMethodES6.ts, 3, 27)) +>x : number, Symbol(x, Decl(emitRestParametersMethodES6.ts, 4, 15)) +>rest : any[], Symbol(rest, Decl(emitRestParametersMethodES6.ts, 4, 25)) } class D { ->D : D +>D : D, Symbol(D, Decl(emitRestParametersMethodES6.ts, 5, 1)) constructor(...rest) { } ->rest : any[] +>rest : any[], Symbol(rest, Decl(emitRestParametersMethodES6.ts, 8, 16)) public bar(...rest) { } ->bar : (...rest: any[]) => void ->rest : any[] +>bar : (...rest: any[]) => void, Symbol(bar, Decl(emitRestParametersMethodES6.ts, 8, 28)) +>rest : any[], Symbol(rest, Decl(emitRestParametersMethodES6.ts, 10, 15)) public foo(x: number, ...rest) { } ->foo : (x: number, ...rest: any[]) => void ->x : number ->rest : any[] +>foo : (x: number, ...rest: any[]) => void, Symbol(foo, Decl(emitRestParametersMethodES6.ts, 10, 27)) +>x : number, Symbol(x, Decl(emitRestParametersMethodES6.ts, 11, 15)) +>rest : any[], Symbol(rest, Decl(emitRestParametersMethodES6.ts, 11, 25)) } diff --git a/tests/baselines/reference/emptyEnum.types b/tests/baselines/reference/emptyEnum.types index 000434dcc48..4212bb98801 100644 --- a/tests/baselines/reference/emptyEnum.types +++ b/tests/baselines/reference/emptyEnum.types @@ -1,4 +1,4 @@ === tests/cases/compiler/emptyEnum.ts === enum E { ->E : E +>E : E, Symbol(E, Decl(emptyEnum.ts, 0, 0)) } diff --git a/tests/baselines/reference/emptyIndexer.types b/tests/baselines/reference/emptyIndexer.types index 949e7370e78..be9be71e701 100644 --- a/tests/baselines/reference/emptyIndexer.types +++ b/tests/baselines/reference/emptyIndexer.types @@ -1,29 +1,30 @@ === tests/cases/compiler/emptyIndexer.ts === interface I1 { ->I1 : I1 +>I1 : I1, Symbol(I1, Decl(emptyIndexer.ts, 0, 0)) m(): number; ->m : () => number +>m : () => number, Symbol(m, Decl(emptyIndexer.ts, 0, 14)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(emptyIndexer.ts, 2, 1)) [s:string]: I1; ->s : string ->I1 : I1 +>s : string, Symbol(s, Decl(emptyIndexer.ts, 5, 2)) +>I1 : I1, Symbol(I1, Decl(emptyIndexer.ts, 0, 0)) } var x: I2; ->x : I2 ->I2 : I2 +>x : I2, Symbol(x, Decl(emptyIndexer.ts, 9, 3)) +>I2 : I2, Symbol(I2, Decl(emptyIndexer.ts, 2, 1)) var n = x[''].m(); // should not crash compiler ->n : number +>n : number, Symbol(n, Decl(emptyIndexer.ts, 11, 3)) >x[''].m() : number ->x[''].m : () => number +>x[''].m : () => number, Symbol(I1.m, Decl(emptyIndexer.ts, 0, 14)) >x[''] : I1 ->x : I2 ->m : () => number +>x : I2, Symbol(x, Decl(emptyIndexer.ts, 9, 3)) +>'' : string +>m : () => number, Symbol(I1.m, Decl(emptyIndexer.ts, 0, 14)) diff --git a/tests/baselines/reference/enumBasics.types b/tests/baselines/reference/enumBasics.types index c0d7fb9bed1..01b0cc1b334 100644 --- a/tests/baselines/reference/enumBasics.types +++ b/tests/baselines/reference/enumBasics.types @@ -1,216 +1,231 @@ === tests/cases/conformance/enums/enumBasics.ts === // Enum without initializers have first member = 0 and successive members = N + 1 enum E1 { ->E1 : E1 +>E1 : E1, Symbol(E1, Decl(enumBasics.ts, 0, 0)) A, ->A : E1 +>A : E1, Symbol(E1.A, Decl(enumBasics.ts, 1, 9)) B, ->B : E1 +>B : E1, Symbol(E1.B, Decl(enumBasics.ts, 2, 6)) C ->C : E1 +>C : E1, Symbol(E1.C, Decl(enumBasics.ts, 3, 6)) } // Enum type is a subtype of Number var x: number = E1.A; ->x : number ->E1.A : E1 ->E1 : typeof E1 ->A : E1 +>x : number, Symbol(x, Decl(enumBasics.ts, 8, 3)) +>E1.A : E1, Symbol(E1.A, Decl(enumBasics.ts, 1, 9)) +>E1 : typeof E1, Symbol(E1, Decl(enumBasics.ts, 0, 0)) +>A : E1, Symbol(E1.A, Decl(enumBasics.ts, 1, 9)) // Enum object type is anonymous with properties of the enum type and numeric indexer var e = E1; ->e : typeof E1 ->E1 : typeof E1 +>e : typeof E1, Symbol(e, Decl(enumBasics.ts, 11, 3), Decl(enumBasics.ts, 12, 3), Decl(enumBasics.ts, 18, 3)) +>E1 : typeof E1, Symbol(E1, Decl(enumBasics.ts, 0, 0)) var e: { ->e : typeof E1 +>e : typeof E1, Symbol(e, Decl(enumBasics.ts, 11, 3), Decl(enumBasics.ts, 12, 3), Decl(enumBasics.ts, 18, 3)) A: E1; ->A : E1 ->E1 : E1 +>A : E1, Symbol(A, Decl(enumBasics.ts, 12, 8)) +>E1 : E1, Symbol(E1, Decl(enumBasics.ts, 0, 0)) B: E1; ->B : E1 ->E1 : E1 +>B : E1, Symbol(B, Decl(enumBasics.ts, 13, 10)) +>E1 : E1, Symbol(E1, Decl(enumBasics.ts, 0, 0)) C: E1; ->C : E1 ->E1 : E1 +>C : E1, Symbol(C, Decl(enumBasics.ts, 14, 10)) +>E1 : E1, Symbol(E1, Decl(enumBasics.ts, 0, 0)) [n: number]: string; ->n : number +>n : number, Symbol(n, Decl(enumBasics.ts, 16, 5)) }; var e: typeof E1; ->e : typeof E1 ->E1 : typeof E1 +>e : typeof E1, Symbol(e, Decl(enumBasics.ts, 11, 3), Decl(enumBasics.ts, 12, 3), Decl(enumBasics.ts, 18, 3)) +>E1 : typeof E1, Symbol(E1, Decl(enumBasics.ts, 0, 0)) // Reverse mapping of enum returns string name of property var s = E1[e.A]; ->s : string +>s : string, Symbol(s, Decl(enumBasics.ts, 21, 3), Decl(enumBasics.ts, 22, 3)) >E1[e.A] : string ->E1 : typeof E1 ->e.A : E1 ->e : typeof E1 ->A : E1 +>E1 : typeof E1, Symbol(E1, Decl(enumBasics.ts, 0, 0)) +>e.A : E1, Symbol(E1.A, Decl(enumBasics.ts, 1, 9)) +>e : typeof E1, Symbol(e, Decl(enumBasics.ts, 11, 3), Decl(enumBasics.ts, 12, 3), Decl(enumBasics.ts, 18, 3)) +>A : E1, Symbol(E1.A, Decl(enumBasics.ts, 1, 9)) var s: string; ->s : string +>s : string, Symbol(s, Decl(enumBasics.ts, 21, 3), Decl(enumBasics.ts, 22, 3)) // Enum with only constant members enum E2 { ->E2 : E2 +>E2 : E2, Symbol(E2, Decl(enumBasics.ts, 22, 14)) A = 1, B = 2, C = 3 ->A : E2 ->B : E2 ->C : E2 +>A : E2, Symbol(E2.A, Decl(enumBasics.ts, 26, 9)) +>1 : number +>B : E2, Symbol(E2.B, Decl(enumBasics.ts, 27, 10)) +>2 : number +>C : E2, Symbol(E2.C, Decl(enumBasics.ts, 27, 17)) +>3 : number } // Enum with only computed members enum E3 { ->E3 : E3 +>E3 : E3, Symbol(E3, Decl(enumBasics.ts, 28, 1)) X = 'foo'.length, Y = 4 + 3, Z = +'foo' ->X : E3 ->'foo'.length : number ->length : number ->Y : E3 +>X : E3, Symbol(E3.X, Decl(enumBasics.ts, 31, 9)) +>'foo'.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>'foo' : string +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>Y : E3, Symbol(E3.Y, Decl(enumBasics.ts, 32, 21)) >4 + 3 : number ->Z : E3 +>4 : number +>3 : number +>Z : E3, Symbol(E3.Z, Decl(enumBasics.ts, 32, 32)) >+'foo' : number +>'foo' : string } // Enum with constant members followed by computed members enum E4 { ->E4 : E4 +>E4 : E4, Symbol(E4, Decl(enumBasics.ts, 33, 1)) X = 0, Y, Z = 'foo'.length ->X : E4 ->Y : E4 ->Z : E4 ->'foo'.length : number ->length : number +>X : E4, Symbol(E4.X, Decl(enumBasics.ts, 36, 9)) +>0 : number +>Y : E4, Symbol(E4.Y, Decl(enumBasics.ts, 37, 10)) +>Z : E4, Symbol(E4.Z, Decl(enumBasics.ts, 37, 13)) +>'foo'.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>'foo' : string +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) } // Enum with > 2 constant members with no initializer for first member, non zero initializer for second element enum E5 { ->E5 : E5 +>E5 : E5, Symbol(E5, Decl(enumBasics.ts, 38, 1)) A, ->A : E5 +>A : E5, Symbol(E5.A, Decl(enumBasics.ts, 41, 9)) B = 3, ->B : E5 +>B : E5, Symbol(E5.B, Decl(enumBasics.ts, 42, 6)) +>3 : number C // 4 ->C : E5 +>C : E5, Symbol(E5.C, Decl(enumBasics.ts, 43, 10)) } enum E6 { ->E6 : E6 +>E6 : E6, Symbol(E6, Decl(enumBasics.ts, 45, 1)) A, ->A : E6 +>A : E6, Symbol(E6.A, Decl(enumBasics.ts, 47, 9)) B = 0, ->B : E6 +>B : E6, Symbol(E6.B, Decl(enumBasics.ts, 48, 6)) +>0 : number C // 1 ->C : E6 +>C : E6, Symbol(E6.C, Decl(enumBasics.ts, 49, 10)) } // Enum with computed member initializer of type 'any' enum E7 { ->E7 : E7 +>E7 : E7, Symbol(E7, Decl(enumBasics.ts, 51, 1)) A = 'foo'['foo'] ->A : E7 +>A : E7, Symbol(E7.A, Decl(enumBasics.ts, 54, 9)) >'foo'['foo'] : any +>'foo' : string +>'foo' : string } // Enum with computed member initializer of type number enum E8 { ->E8 : E8 +>E8 : E8, Symbol(E8, Decl(enumBasics.ts, 56, 1)) B = 'foo'['foo'] ->B : E8 +>B : E8, Symbol(E8.B, Decl(enumBasics.ts, 59, 9)) >'foo'['foo'] : any +>'foo' : string +>'foo' : string } //Enum with computed member intializer of same enum type enum E9 { ->E9 : E9 +>E9 : E9, Symbol(E9, Decl(enumBasics.ts, 61, 1)) A, ->A : E9 +>A : E9, Symbol(E9.A, Decl(enumBasics.ts, 64, 9)) B = A ->B : E9 ->A : E9 +>B : E9, Symbol(E9.B, Decl(enumBasics.ts, 65, 6)) +>A : E9, Symbol(E9.A, Decl(enumBasics.ts, 64, 9)) } // (refer to .js to validate) // Enum constant members are propagated var doNotPropagate = [ ->doNotPropagate : (E3 | E4 | E7 | E8)[] +>doNotPropagate : (E3 | E4 | E7 | E8)[], Symbol(doNotPropagate, Decl(enumBasics.ts, 71, 3)) >[ E8.B, E7.A, E4.Z, E3.X, E3.Y, E3.Z] : (E3 | E4 | E7 | E8)[] E8.B, E7.A, E4.Z, E3.X, E3.Y, E3.Z ->E8.B : E8 ->E8 : typeof E8 ->B : E8 ->E7.A : E7 ->E7 : typeof E7 ->A : E7 ->E4.Z : E4 ->E4 : typeof E4 ->Z : E4 ->E3.X : E3 ->E3 : typeof E3 ->X : E3 ->E3.Y : E3 ->E3 : typeof E3 ->Y : E3 ->E3.Z : E3 ->E3 : typeof E3 ->Z : E3 +>E8.B : E8, Symbol(E8.B, Decl(enumBasics.ts, 59, 9)) +>E8 : typeof E8, Symbol(E8, Decl(enumBasics.ts, 56, 1)) +>B : E8, Symbol(E8.B, Decl(enumBasics.ts, 59, 9)) +>E7.A : E7, Symbol(E7.A, Decl(enumBasics.ts, 54, 9)) +>E7 : typeof E7, Symbol(E7, Decl(enumBasics.ts, 51, 1)) +>A : E7, Symbol(E7.A, Decl(enumBasics.ts, 54, 9)) +>E4.Z : E4, Symbol(E4.Z, Decl(enumBasics.ts, 37, 13)) +>E4 : typeof E4, Symbol(E4, Decl(enumBasics.ts, 33, 1)) +>Z : E4, Symbol(E4.Z, Decl(enumBasics.ts, 37, 13)) +>E3.X : E3, Symbol(E3.X, Decl(enumBasics.ts, 31, 9)) +>E3 : typeof E3, Symbol(E3, Decl(enumBasics.ts, 28, 1)) +>X : E3, Symbol(E3.X, Decl(enumBasics.ts, 31, 9)) +>E3.Y : E3, Symbol(E3.Y, Decl(enumBasics.ts, 32, 21)) +>E3 : typeof E3, Symbol(E3, Decl(enumBasics.ts, 28, 1)) +>Y : E3, Symbol(E3.Y, Decl(enumBasics.ts, 32, 21)) +>E3.Z : E3, Symbol(E3.Z, Decl(enumBasics.ts, 32, 32)) +>E3 : typeof E3, Symbol(E3, Decl(enumBasics.ts, 28, 1)) +>Z : E3, Symbol(E3.Z, Decl(enumBasics.ts, 32, 32)) ]; // Enum computed members are not propagated var doPropagate = [ ->doPropagate : (E5 | E6 | E9)[] +>doPropagate : (E5 | E6 | E9)[], Symbol(doPropagate, Decl(enumBasics.ts, 75, 3)) >[ E9.A, E9.B, E6.B, E6.C, E6.A, E5.A, E5.B, E5.C] : (E5 | E6 | E9)[] E9.A, E9.B, E6.B, E6.C, E6.A, E5.A, E5.B, E5.C ->E9.A : E9 ->E9 : typeof E9 ->A : E9 ->E9.B : E9 ->E9 : typeof E9 ->B : E9 ->E6.B : E6 ->E6 : typeof E6 ->B : E6 ->E6.C : E6 ->E6 : typeof E6 ->C : E6 ->E6.A : E6 ->E6 : typeof E6 ->A : E6 ->E5.A : E5 ->E5 : typeof E5 ->A : E5 ->E5.B : E5 ->E5 : typeof E5 ->B : E5 ->E5.C : E5 ->E5 : typeof E5 ->C : E5 +>E9.A : E9, Symbol(E9.A, Decl(enumBasics.ts, 64, 9)) +>E9 : typeof E9, Symbol(E9, Decl(enumBasics.ts, 61, 1)) +>A : E9, Symbol(E9.A, Decl(enumBasics.ts, 64, 9)) +>E9.B : E9, Symbol(E9.B, Decl(enumBasics.ts, 65, 6)) +>E9 : typeof E9, Symbol(E9, Decl(enumBasics.ts, 61, 1)) +>B : E9, Symbol(E9.B, Decl(enumBasics.ts, 65, 6)) +>E6.B : E6, Symbol(E6.B, Decl(enumBasics.ts, 48, 6)) +>E6 : typeof E6, Symbol(E6, Decl(enumBasics.ts, 45, 1)) +>B : E6, Symbol(E6.B, Decl(enumBasics.ts, 48, 6)) +>E6.C : E6, Symbol(E6.C, Decl(enumBasics.ts, 49, 10)) +>E6 : typeof E6, Symbol(E6, Decl(enumBasics.ts, 45, 1)) +>C : E6, Symbol(E6.C, Decl(enumBasics.ts, 49, 10)) +>E6.A : E6, Symbol(E6.A, Decl(enumBasics.ts, 47, 9)) +>E6 : typeof E6, Symbol(E6, Decl(enumBasics.ts, 45, 1)) +>A : E6, Symbol(E6.A, Decl(enumBasics.ts, 47, 9)) +>E5.A : E5, Symbol(E5.A, Decl(enumBasics.ts, 41, 9)) +>E5 : typeof E5, Symbol(E5, Decl(enumBasics.ts, 38, 1)) +>A : E5, Symbol(E5.A, Decl(enumBasics.ts, 41, 9)) +>E5.B : E5, Symbol(E5.B, Decl(enumBasics.ts, 42, 6)) +>E5 : typeof E5, Symbol(E5, Decl(enumBasics.ts, 38, 1)) +>B : E5, Symbol(E5.B, Decl(enumBasics.ts, 42, 6)) +>E5.C : E5, Symbol(E5.C, Decl(enumBasics.ts, 43, 10)) +>E5 : typeof E5, Symbol(E5, Decl(enumBasics.ts, 38, 1)) +>C : E5, Symbol(E5.C, Decl(enumBasics.ts, 43, 10)) ]; diff --git a/tests/baselines/reference/enumCodeGenNewLines1.types b/tests/baselines/reference/enumCodeGenNewLines1.types index 51c09daa0ff..95574577b0c 100644 --- a/tests/baselines/reference/enumCodeGenNewLines1.types +++ b/tests/baselines/reference/enumCodeGenNewLines1.types @@ -1,14 +1,17 @@ === tests/cases/compiler/enumCodeGenNewLines1.ts === enum foo { ->foo : foo +>foo : foo, Symbol(foo, Decl(enumCodeGenNewLines1.ts, 0, 0)) b = 1, ->b : foo +>b : foo, Symbol(foo.b, Decl(enumCodeGenNewLines1.ts, 0, 10)) +>1 : number c = 2, ->c : foo +>c : foo, Symbol(foo.c, Decl(enumCodeGenNewLines1.ts, 1, 8)) +>2 : number d = 3 ->d : foo +>d : foo, Symbol(foo.d, Decl(enumCodeGenNewLines1.ts, 2, 8)) +>3 : number } diff --git a/tests/baselines/reference/enumDecl1.types b/tests/baselines/reference/enumDecl1.types index 22d2b6b4d69..134ea2fe6f3 100644 --- a/tests/baselines/reference/enumDecl1.types +++ b/tests/baselines/reference/enumDecl1.types @@ -1,19 +1,19 @@ === tests/cases/compiler/enumDecl1.ts === declare module mAmbient { ->mAmbient : typeof mAmbient +>mAmbient : typeof mAmbient, Symbol(mAmbient, Decl(enumDecl1.ts, 0, 0)) enum e { ->e : e +>e : e, Symbol(e, Decl(enumDecl1.ts, 1, 25)) x, ->x : e +>x : e, Symbol(e.x, Decl(enumDecl1.ts, 2, 12)) y, ->y : e +>y : e, Symbol(e.y, Decl(enumDecl1.ts, 3, 10)) z ->z : e +>z : e, Symbol(e.z, Decl(enumDecl1.ts, 4, 10)) } } diff --git a/tests/baselines/reference/enumFromExternalModule.types b/tests/baselines/reference/enumFromExternalModule.types index 554ac17ec67..fecbd500dde 100644 --- a/tests/baselines/reference/enumFromExternalModule.types +++ b/tests/baselines/reference/enumFromExternalModule.types @@ -1,18 +1,18 @@ === tests/cases/compiler/enumFromExternalModule_1.ts === /// import f = require('enumFromExternalModule_0'); ->f : typeof f +>f : typeof f, Symbol(f, Decl(enumFromExternalModule_1.ts, 0, 0)) var x = f.Mode.Open; ->x : f.Mode ->f.Mode.Open : f.Mode ->f.Mode : typeof f.Mode ->f : typeof f ->Mode : typeof f.Mode ->Open : f.Mode +>x : f.Mode, Symbol(x, Decl(enumFromExternalModule_1.ts, 3, 3)) +>f.Mode.Open : f.Mode, Symbol(f.Mode.Open, Decl(enumFromExternalModule_0.ts, 0, 18)) +>f.Mode : typeof f.Mode, Symbol(f.Mode, Decl(enumFromExternalModule_0.ts, 0, 0)) +>f : typeof f, Symbol(f, Decl(enumFromExternalModule_1.ts, 0, 0)) +>Mode : typeof f.Mode, Symbol(f.Mode, Decl(enumFromExternalModule_0.ts, 0, 0)) +>Open : f.Mode, Symbol(f.Mode.Open, Decl(enumFromExternalModule_0.ts, 0, 18)) === tests/cases/compiler/enumFromExternalModule_0.ts === export enum Mode { Open } ->Mode : Mode ->Open : Mode +>Mode : Mode, Symbol(Mode, Decl(enumFromExternalModule_0.ts, 0, 0)) +>Open : Mode, Symbol(Mode.Open, Decl(enumFromExternalModule_0.ts, 0, 18)) diff --git a/tests/baselines/reference/enumIndexer.types b/tests/baselines/reference/enumIndexer.types index cbd7c3274a6..d48a9ae908e 100644 --- a/tests/baselines/reference/enumIndexer.types +++ b/tests/baselines/reference/enumIndexer.types @@ -1,38 +1,40 @@ === tests/cases/compiler/enumIndexer.ts === enum MyEnumType { ->MyEnumType : MyEnumType +>MyEnumType : MyEnumType, Symbol(MyEnumType, Decl(enumIndexer.ts, 0, 0)) foo, bar ->foo : MyEnumType ->bar : MyEnumType +>foo : MyEnumType, Symbol(MyEnumType.foo, Decl(enumIndexer.ts, 0, 17)) +>bar : MyEnumType, Symbol(MyEnumType.bar, Decl(enumIndexer.ts, 1, 8)) } var _arr = [{ key: 'foo' }, { key: 'bar' }] ->_arr : { key: string; }[] +>_arr : { key: string; }[], Symbol(_arr, Decl(enumIndexer.ts, 3, 3)) >[{ key: 'foo' }, { key: 'bar' }] : { key: string; }[] >{ key: 'foo' } : { key: string; } ->key : string +>key : string, Symbol(key, Decl(enumIndexer.ts, 3, 13)) +>'foo' : string >{ key: 'bar' } : { key: string; } ->key : string +>key : string, Symbol(key, Decl(enumIndexer.ts, 3, 29)) +>'bar' : string var enumValue = MyEnumType.foo; ->enumValue : MyEnumType ->MyEnumType.foo : MyEnumType ->MyEnumType : typeof MyEnumType ->foo : MyEnumType +>enumValue : MyEnumType, Symbol(enumValue, Decl(enumIndexer.ts, 4, 3)) +>MyEnumType.foo : MyEnumType, Symbol(MyEnumType.foo, Decl(enumIndexer.ts, 0, 17)) +>MyEnumType : typeof MyEnumType, Symbol(MyEnumType, Decl(enumIndexer.ts, 0, 0)) +>foo : MyEnumType, Symbol(MyEnumType.foo, Decl(enumIndexer.ts, 0, 17)) var x = _arr.map(o => MyEnumType[o.key] === enumValue); // these are not same type ->x : boolean[] +>x : boolean[], Symbol(x, Decl(enumIndexer.ts, 5, 3)) >_arr.map(o => MyEnumType[o.key] === enumValue) : boolean[] ->_arr.map : (callbackfn: (value: { key: string; }, index: number, array: { key: string; }[]) => U, thisArg?: any) => U[] ->_arr : { key: string; }[] ->map : (callbackfn: (value: { key: string; }, index: number, array: { key: string; }[]) => U, thisArg?: any) => U[] +>_arr.map : (callbackfn: (value: { key: string; }, index: number, array: { key: string; }[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>_arr : { key: string; }[], Symbol(_arr, Decl(enumIndexer.ts, 3, 3)) +>map : (callbackfn: (value: { key: string; }, index: number, array: { key: string; }[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >o => MyEnumType[o.key] === enumValue : (o: { key: string; }) => boolean ->o : { key: string; } +>o : { key: string; }, Symbol(o, Decl(enumIndexer.ts, 5, 17)) >MyEnumType[o.key] === enumValue : boolean >MyEnumType[o.key] : any ->MyEnumType : typeof MyEnumType ->o.key : string ->o : { key: string; } ->key : string ->enumValue : MyEnumType +>MyEnumType : typeof MyEnumType, Symbol(MyEnumType, Decl(enumIndexer.ts, 0, 0)) +>o.key : string, Symbol(key, Decl(enumIndexer.ts, 3, 13)) +>o : { key: string; }, Symbol(o, Decl(enumIndexer.ts, 5, 17)) +>key : string, Symbol(key, Decl(enumIndexer.ts, 3, 13)) +>enumValue : MyEnumType, Symbol(enumValue, Decl(enumIndexer.ts, 4, 3)) diff --git a/tests/baselines/reference/enumMapBackIntoItself.types b/tests/baselines/reference/enumMapBackIntoItself.types index d97dbcf85db..7d169e8717f 100644 --- a/tests/baselines/reference/enumMapBackIntoItself.types +++ b/tests/baselines/reference/enumMapBackIntoItself.types @@ -1,30 +1,31 @@ === tests/cases/compiler/enumMapBackIntoItself.ts === enum TShirtSize { ->TShirtSize : TShirtSize +>TShirtSize : TShirtSize, Symbol(TShirtSize, Decl(enumMapBackIntoItself.ts, 0, 0)) Small, ->Small : TShirtSize +>Small : TShirtSize, Symbol(TShirtSize.Small, Decl(enumMapBackIntoItself.ts, 0, 17)) Medium, ->Medium : TShirtSize +>Medium : TShirtSize, Symbol(TShirtSize.Medium, Decl(enumMapBackIntoItself.ts, 1, 9)) Large ->Large : TShirtSize +>Large : TShirtSize, Symbol(TShirtSize.Large, Decl(enumMapBackIntoItself.ts, 2, 10)) } var mySize = TShirtSize.Large; ->mySize : TShirtSize ->TShirtSize.Large : TShirtSize ->TShirtSize : typeof TShirtSize ->Large : TShirtSize +>mySize : TShirtSize, Symbol(mySize, Decl(enumMapBackIntoItself.ts, 5, 3)) +>TShirtSize.Large : TShirtSize, Symbol(TShirtSize.Large, Decl(enumMapBackIntoItself.ts, 2, 10)) +>TShirtSize : typeof TShirtSize, Symbol(TShirtSize, Decl(enumMapBackIntoItself.ts, 0, 0)) +>Large : TShirtSize, Symbol(TShirtSize.Large, Decl(enumMapBackIntoItself.ts, 2, 10)) var test = TShirtSize[mySize]; ->test : string +>test : string, Symbol(test, Decl(enumMapBackIntoItself.ts, 6, 3)) >TShirtSize[mySize] : string ->TShirtSize : typeof TShirtSize ->mySize : TShirtSize +>TShirtSize : typeof TShirtSize, Symbol(TShirtSize, Decl(enumMapBackIntoItself.ts, 0, 0)) +>mySize : TShirtSize, Symbol(mySize, Decl(enumMapBackIntoItself.ts, 5, 3)) // specifically checking output here, bug was that test used to be undefined at runtime test + '' >test + '' : string ->test : string +>test : string, Symbol(test, Decl(enumMapBackIntoItself.ts, 6, 3)) +>'' : string diff --git a/tests/baselines/reference/enumMerging.types b/tests/baselines/reference/enumMerging.types index c61f9e17739..cb15fea3662 100644 --- a/tests/baselines/reference/enumMerging.types +++ b/tests/baselines/reference/enumMerging.types @@ -2,203 +2,218 @@ // Enum with only constant members across 2 declarations with the same root module // Enum with initializer in all declarations with constant members with the same root module module M1 { ->M1 : typeof M1 +>M1 : typeof M1, Symbol(M1, Decl(enumMerging.ts, 0, 0)) enum EImpl1 { ->EImpl1 : EImpl1 +>EImpl1 : EImpl1, Symbol(EImpl1, Decl(enumMerging.ts, 2, 11), Decl(enumMerging.ts, 5, 5)) A, B, C ->A : EImpl1 ->B : EImpl1 ->C : EImpl1 +>A : EImpl1, Symbol(EImpl1.A, Decl(enumMerging.ts, 3, 17)) +>B : EImpl1, Symbol(EImpl1.B, Decl(enumMerging.ts, 4, 10)) +>C : EImpl1, Symbol(EImpl1.C, Decl(enumMerging.ts, 4, 13)) } enum EImpl1 { ->EImpl1 : EImpl1 +>EImpl1 : EImpl1, Symbol(EImpl1, Decl(enumMerging.ts, 2, 11), Decl(enumMerging.ts, 5, 5)) D = 1, E, F ->D : EImpl1 ->E : EImpl1 ->F : EImpl1 +>D : EImpl1, Symbol(EImpl1.D, Decl(enumMerging.ts, 7, 17)) +>1 : number +>E : EImpl1, Symbol(EImpl1.E, Decl(enumMerging.ts, 8, 14)) +>F : EImpl1, Symbol(EImpl1.F, Decl(enumMerging.ts, 8, 17)) } export enum EConst1 { ->EConst1 : EConst1 +>EConst1 : EConst1, Symbol(EConst1, Decl(enumMerging.ts, 9, 5), Decl(enumMerging.ts, 13, 5)) A = 3, B = 2, C = 1 ->A : EConst1 ->B : EConst1 ->C : EConst1 +>A : EConst1, Symbol(EConst1.A, Decl(enumMerging.ts, 11, 25)) +>3 : number +>B : EConst1, Symbol(EConst1.B, Decl(enumMerging.ts, 12, 14)) +>2 : number +>C : EConst1, Symbol(EConst1.C, Decl(enumMerging.ts, 12, 21)) +>1 : number } export enum EConst1 { ->EConst1 : EConst1 +>EConst1 : EConst1, Symbol(EConst1, Decl(enumMerging.ts, 9, 5), Decl(enumMerging.ts, 13, 5)) D = 7, E = 9, F = 8 ->D : EConst1 ->E : EConst1 ->F : EConst1 +>D : EConst1, Symbol(EConst1.D, Decl(enumMerging.ts, 15, 25)) +>7 : number +>E : EConst1, Symbol(EConst1.E, Decl(enumMerging.ts, 16, 14)) +>9 : number +>F : EConst1, Symbol(EConst1.F, Decl(enumMerging.ts, 16, 21)) +>8 : number } var x = [EConst1.A, EConst1.B, EConst1.C, EConst1.D, EConst1.E, EConst1.F]; ->x : EConst1[] +>x : EConst1[], Symbol(x, Decl(enumMerging.ts, 19, 7)) >[EConst1.A, EConst1.B, EConst1.C, EConst1.D, EConst1.E, EConst1.F] : EConst1[] ->EConst1.A : EConst1 ->EConst1 : typeof EConst1 ->A : EConst1 ->EConst1.B : EConst1 ->EConst1 : typeof EConst1 ->B : EConst1 ->EConst1.C : EConst1 ->EConst1 : typeof EConst1 ->C : EConst1 ->EConst1.D : EConst1 ->EConst1 : typeof EConst1 ->D : EConst1 ->EConst1.E : EConst1 ->EConst1 : typeof EConst1 ->E : EConst1 ->EConst1.F : EConst1 ->EConst1 : typeof EConst1 ->F : EConst1 +>EConst1.A : EConst1, Symbol(EConst1.A, Decl(enumMerging.ts, 11, 25)) +>EConst1 : typeof EConst1, Symbol(EConst1, Decl(enumMerging.ts, 9, 5), Decl(enumMerging.ts, 13, 5)) +>A : EConst1, Symbol(EConst1.A, Decl(enumMerging.ts, 11, 25)) +>EConst1.B : EConst1, Symbol(EConst1.B, Decl(enumMerging.ts, 12, 14)) +>EConst1 : typeof EConst1, Symbol(EConst1, Decl(enumMerging.ts, 9, 5), Decl(enumMerging.ts, 13, 5)) +>B : EConst1, Symbol(EConst1.B, Decl(enumMerging.ts, 12, 14)) +>EConst1.C : EConst1, Symbol(EConst1.C, Decl(enumMerging.ts, 12, 21)) +>EConst1 : typeof EConst1, Symbol(EConst1, Decl(enumMerging.ts, 9, 5), Decl(enumMerging.ts, 13, 5)) +>C : EConst1, Symbol(EConst1.C, Decl(enumMerging.ts, 12, 21)) +>EConst1.D : EConst1, Symbol(EConst1.D, Decl(enumMerging.ts, 15, 25)) +>EConst1 : typeof EConst1, Symbol(EConst1, Decl(enumMerging.ts, 9, 5), Decl(enumMerging.ts, 13, 5)) +>D : EConst1, Symbol(EConst1.D, Decl(enumMerging.ts, 15, 25)) +>EConst1.E : EConst1, Symbol(EConst1.E, Decl(enumMerging.ts, 16, 14)) +>EConst1 : typeof EConst1, Symbol(EConst1, Decl(enumMerging.ts, 9, 5), Decl(enumMerging.ts, 13, 5)) +>E : EConst1, Symbol(EConst1.E, Decl(enumMerging.ts, 16, 14)) +>EConst1.F : EConst1, Symbol(EConst1.F, Decl(enumMerging.ts, 16, 21)) +>EConst1 : typeof EConst1, Symbol(EConst1, Decl(enumMerging.ts, 9, 5), Decl(enumMerging.ts, 13, 5)) +>F : EConst1, Symbol(EConst1.F, Decl(enumMerging.ts, 16, 21)) } // Enum with only computed members across 2 declarations with the same root module module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(enumMerging.ts, 20, 1)) export enum EComp2 { ->EComp2 : EComp2 +>EComp2 : EComp2, Symbol(EComp2, Decl(enumMerging.ts, 23, 11), Decl(enumMerging.ts, 26, 5)) A = 'foo'.length, B = 'foo'.length, C = 'foo'.length ->A : EComp2 ->'foo'.length : number ->length : number ->B : EComp2 ->'foo'.length : number ->length : number ->C : EComp2 ->'foo'.length : number ->length : number +>A : EComp2, Symbol(EComp2.A, Decl(enumMerging.ts, 24, 24)) +>'foo'.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>'foo' : string +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>B : EComp2, Symbol(EComp2.B, Decl(enumMerging.ts, 25, 25)) +>'foo'.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>'foo' : string +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>C : EComp2, Symbol(EComp2.C, Decl(enumMerging.ts, 25, 43)) +>'foo'.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>'foo' : string +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) } export enum EComp2 { ->EComp2 : EComp2 +>EComp2 : EComp2, Symbol(EComp2, Decl(enumMerging.ts, 23, 11), Decl(enumMerging.ts, 26, 5)) D = 'foo'.length, E = 'foo'.length, F = 'foo'.length ->D : EComp2 ->'foo'.length : number ->length : number ->E : EComp2 ->'foo'.length : number ->length : number ->F : EComp2 ->'foo'.length : number ->length : number +>D : EComp2, Symbol(EComp2.D, Decl(enumMerging.ts, 28, 24)) +>'foo'.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>'foo' : string +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>E : EComp2, Symbol(EComp2.E, Decl(enumMerging.ts, 29, 25)) +>'foo'.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>'foo' : string +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>F : EComp2, Symbol(EComp2.F, Decl(enumMerging.ts, 29, 43)) +>'foo'.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>'foo' : string +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) } var x = [EComp2.A, EComp2.B, EComp2.C, EComp2.D, EComp2.E, EComp2.F]; ->x : EComp2[] +>x : EComp2[], Symbol(x, Decl(enumMerging.ts, 32, 7)) >[EComp2.A, EComp2.B, EComp2.C, EComp2.D, EComp2.E, EComp2.F] : EComp2[] ->EComp2.A : EComp2 ->EComp2 : typeof EComp2 ->A : EComp2 ->EComp2.B : EComp2 ->EComp2 : typeof EComp2 ->B : EComp2 ->EComp2.C : EComp2 ->EComp2 : typeof EComp2 ->C : EComp2 ->EComp2.D : EComp2 ->EComp2 : typeof EComp2 ->D : EComp2 ->EComp2.E : EComp2 ->EComp2 : typeof EComp2 ->E : EComp2 ->EComp2.F : EComp2 ->EComp2 : typeof EComp2 ->F : EComp2 +>EComp2.A : EComp2, Symbol(EComp2.A, Decl(enumMerging.ts, 24, 24)) +>EComp2 : typeof EComp2, Symbol(EComp2, Decl(enumMerging.ts, 23, 11), Decl(enumMerging.ts, 26, 5)) +>A : EComp2, Symbol(EComp2.A, Decl(enumMerging.ts, 24, 24)) +>EComp2.B : EComp2, Symbol(EComp2.B, Decl(enumMerging.ts, 25, 25)) +>EComp2 : typeof EComp2, Symbol(EComp2, Decl(enumMerging.ts, 23, 11), Decl(enumMerging.ts, 26, 5)) +>B : EComp2, Symbol(EComp2.B, Decl(enumMerging.ts, 25, 25)) +>EComp2.C : EComp2, Symbol(EComp2.C, Decl(enumMerging.ts, 25, 43)) +>EComp2 : typeof EComp2, Symbol(EComp2, Decl(enumMerging.ts, 23, 11), Decl(enumMerging.ts, 26, 5)) +>C : EComp2, Symbol(EComp2.C, Decl(enumMerging.ts, 25, 43)) +>EComp2.D : EComp2, Symbol(EComp2.D, Decl(enumMerging.ts, 28, 24)) +>EComp2 : typeof EComp2, Symbol(EComp2, Decl(enumMerging.ts, 23, 11), Decl(enumMerging.ts, 26, 5)) +>D : EComp2, Symbol(EComp2.D, Decl(enumMerging.ts, 28, 24)) +>EComp2.E : EComp2, Symbol(EComp2.E, Decl(enumMerging.ts, 29, 25)) +>EComp2 : typeof EComp2, Symbol(EComp2, Decl(enumMerging.ts, 23, 11), Decl(enumMerging.ts, 26, 5)) +>E : EComp2, Symbol(EComp2.E, Decl(enumMerging.ts, 29, 25)) +>EComp2.F : EComp2, Symbol(EComp2.F, Decl(enumMerging.ts, 29, 43)) +>EComp2 : typeof EComp2, Symbol(EComp2, Decl(enumMerging.ts, 23, 11), Decl(enumMerging.ts, 26, 5)) +>F : EComp2, Symbol(EComp2.F, Decl(enumMerging.ts, 29, 43)) } // Enum with initializer in only one of two declarations with constant members with the same root module module M3 { ->M3 : typeof M3 +>M3 : typeof M3, Symbol(M3, Decl(enumMerging.ts, 33, 1)) enum EInit { ->EInit : EInit +>EInit : EInit, Symbol(EInit, Decl(enumMerging.ts, 36, 11), Decl(enumMerging.ts, 40, 5)) A, ->A : EInit +>A : EInit, Symbol(EInit.A, Decl(enumMerging.ts, 37, 16)) B ->B : EInit +>B : EInit, Symbol(EInit.B, Decl(enumMerging.ts, 38, 10)) } enum EInit { ->EInit : EInit +>EInit : EInit, Symbol(EInit, Decl(enumMerging.ts, 36, 11), Decl(enumMerging.ts, 40, 5)) C = 1, D, E ->C : EInit ->D : EInit ->E : EInit +>C : EInit, Symbol(EInit.C, Decl(enumMerging.ts, 42, 16)) +>1 : number +>D : EInit, Symbol(EInit.D, Decl(enumMerging.ts, 43, 14)) +>E : EInit, Symbol(EInit.E, Decl(enumMerging.ts, 43, 17)) } } // Enums with same name but different root module module M4 { ->M4 : typeof M4 +>M4 : typeof M4, Symbol(M4, Decl(enumMerging.ts, 45, 1)) export enum Color { Red, Green, Blue } ->Color : Color ->Red : Color ->Green : Color ->Blue : Color +>Color : Color, Symbol(Color, Decl(enumMerging.ts, 48, 11)) +>Red : Color, Symbol(Color.Red, Decl(enumMerging.ts, 49, 23)) +>Green : Color, Symbol(Color.Green, Decl(enumMerging.ts, 49, 28)) +>Blue : Color, Symbol(Color.Blue, Decl(enumMerging.ts, 49, 35)) } module M5 { ->M5 : typeof M5 +>M5 : typeof M5, Symbol(M5, Decl(enumMerging.ts, 50, 1)) export enum Color { Red, Green, Blue } ->Color : Color ->Red : Color ->Green : Color ->Blue : Color +>Color : Color, Symbol(Color, Decl(enumMerging.ts, 51, 11)) +>Red : Color, Symbol(Color.Red, Decl(enumMerging.ts, 52, 23)) +>Green : Color, Symbol(Color.Green, Decl(enumMerging.ts, 52, 28)) +>Blue : Color, Symbol(Color.Blue, Decl(enumMerging.ts, 52, 35)) } module M6.A { ->M6 : typeof M6 ->A : typeof A +>M6 : typeof M6, Symbol(M6, Decl(enumMerging.ts, 53, 1), Decl(enumMerging.ts, 57, 1)) +>A : typeof A, Symbol(A, Decl(enumMerging.ts, 55, 10), Decl(enumMerging.ts, 58, 11)) export enum Color { Red, Green, Blue } ->Color : Color ->Red : Color ->Green : Color ->Blue : Color +>Color : Color, Symbol(Color, Decl(enumMerging.ts, 55, 13), Decl(enumMerging.ts, 59, 21)) +>Red : Color, Symbol(Color.Red, Decl(enumMerging.ts, 56, 23)) +>Green : Color, Symbol(Color.Green, Decl(enumMerging.ts, 56, 28)) +>Blue : Color, Symbol(Color.Blue, Decl(enumMerging.ts, 56, 35)) } module M6 { ->M6 : typeof M6 +>M6 : typeof M6, Symbol(M6, Decl(enumMerging.ts, 53, 1), Decl(enumMerging.ts, 57, 1)) export module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(enumMerging.ts, 55, 10), Decl(enumMerging.ts, 58, 11)) export enum Color { Yellow = 1 } ->Color : Color ->Yellow : Color +>Color : Color, Symbol(Color, Decl(enumMerging.ts, 55, 13), Decl(enumMerging.ts, 59, 21)) +>Yellow : Color, Symbol(Color.Yellow, Decl(enumMerging.ts, 60, 27)) +>1 : number } var t = A.Color.Yellow; ->t : A.Color ->A.Color.Yellow : A.Color ->A.Color : typeof A.Color ->A : typeof A ->Color : typeof A.Color ->Yellow : A.Color +>t : A.Color, Symbol(t, Decl(enumMerging.ts, 62, 7)) +>A.Color.Yellow : A.Color, Symbol(A.Color.Yellow, Decl(enumMerging.ts, 60, 27)) +>A.Color : typeof A.Color, Symbol(A.Color, Decl(enumMerging.ts, 55, 13), Decl(enumMerging.ts, 59, 21)) +>A : typeof A, Symbol(A, Decl(enumMerging.ts, 55, 10), Decl(enumMerging.ts, 58, 11)) +>Color : typeof A.Color, Symbol(A.Color, Decl(enumMerging.ts, 55, 13), Decl(enumMerging.ts, 59, 21)) +>Yellow : A.Color, Symbol(A.Color.Yellow, Decl(enumMerging.ts, 60, 27)) t = A.Color.Red; >t = A.Color.Red : A.Color ->t : A.Color ->A.Color.Red : A.Color ->A.Color : typeof A.Color ->A : typeof A ->Color : typeof A.Color ->Red : A.Color +>t : A.Color, Symbol(t, Decl(enumMerging.ts, 62, 7)) +>A.Color.Red : A.Color, Symbol(A.Color.Red, Decl(enumMerging.ts, 56, 23)) +>A.Color : typeof A.Color, Symbol(A.Color, Decl(enumMerging.ts, 55, 13), Decl(enumMerging.ts, 59, 21)) +>A : typeof A, Symbol(A, Decl(enumMerging.ts, 55, 10), Decl(enumMerging.ts, 58, 11)) +>Color : typeof A.Color, Symbol(A.Color, Decl(enumMerging.ts, 55, 13), Decl(enumMerging.ts, 59, 21)) +>Red : A.Color, Symbol(A.Color.Red, Decl(enumMerging.ts, 56, 23)) } diff --git a/tests/baselines/reference/enumNegativeLiteral1.types b/tests/baselines/reference/enumNegativeLiteral1.types index 329c54e276b..1d54c063a5f 100644 --- a/tests/baselines/reference/enumNegativeLiteral1.types +++ b/tests/baselines/reference/enumNegativeLiteral1.types @@ -1,11 +1,12 @@ === tests/cases/compiler/enumNegativeLiteral1.ts === enum E { ->E : E +>E : E, Symbol(E, Decl(enumNegativeLiteral1.ts, 0, 0)) a = -5, b, c ->a : E +>a : E, Symbol(E.a, Decl(enumNegativeLiteral1.ts, 0, 8)) >-5 : number ->b : E ->c : E +>5 : number +>b : E, Symbol(E.b, Decl(enumNegativeLiteral1.ts, 1, 11)) +>c : E, Symbol(E.c, Decl(enumNegativeLiteral1.ts, 1, 14)) } diff --git a/tests/baselines/reference/enumNumbering1.types b/tests/baselines/reference/enumNumbering1.types index 00e8eb95da9..7216337fdde 100644 --- a/tests/baselines/reference/enumNumbering1.types +++ b/tests/baselines/reference/enumNumbering1.types @@ -1,29 +1,31 @@ === tests/cases/compiler/enumNumbering1.ts === enum Test { ->Test : Test +>Test : Test, Symbol(Test, Decl(enumNumbering1.ts, 0, 0)) A, ->A : Test +>A : Test, Symbol(Test.A, Decl(enumNumbering1.ts, 0, 11)) B, ->B : Test +>B : Test, Symbol(Test.B, Decl(enumNumbering1.ts, 1, 6)) C = Math.floor(Math.random() * 1000), ->C : Test +>C : Test, Symbol(Test.C, Decl(enumNumbering1.ts, 2, 6)) >Math.floor(Math.random() * 1000) : number ->Math.floor : (x: number) => number ->Math : Math ->floor : (x: number) => number +>Math.floor : (x: number) => number, Symbol(Math.floor, Decl(lib.d.ts, 582, 27)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>floor : (x: number) => number, Symbol(Math.floor, Decl(lib.d.ts, 582, 27)) >Math.random() * 1000 : number >Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number +>Math.random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>1000 : number D = 10, ->D : Test +>D : Test, Symbol(Test.D, Decl(enumNumbering1.ts, 3, 41)) +>10 : number E // Error but shouldn't be ->E : Test +>E : Test, Symbol(Test.E, Decl(enumNumbering1.ts, 4, 11)) } diff --git a/tests/baselines/reference/enumOperations.types b/tests/baselines/reference/enumOperations.types index df36d293cf3..9e56bebcaa0 100644 --- a/tests/baselines/reference/enumOperations.types +++ b/tests/baselines/reference/enumOperations.types @@ -1,62 +1,65 @@ === tests/cases/compiler/enumOperations.ts === enum Enum { None = 0 } ->Enum : Enum ->None : Enum +>Enum : Enum, Symbol(Enum, Decl(enumOperations.ts, 0, 0)) +>None : Enum, Symbol(Enum.None, Decl(enumOperations.ts, 0, 11)) +>0 : number var enumType: Enum = Enum.None; ->enumType : Enum ->Enum : Enum ->Enum.None : Enum ->Enum : typeof Enum ->None : Enum +>enumType : Enum, Symbol(enumType, Decl(enumOperations.ts, 1, 3)) +>Enum : Enum, Symbol(Enum, Decl(enumOperations.ts, 0, 0)) +>Enum.None : Enum, Symbol(Enum.None, Decl(enumOperations.ts, 0, 11)) +>Enum : typeof Enum, Symbol(Enum, Decl(enumOperations.ts, 0, 0)) +>None : Enum, Symbol(Enum.None, Decl(enumOperations.ts, 0, 11)) var numberType: number = 0; ->numberType : number +>numberType : number, Symbol(numberType, Decl(enumOperations.ts, 2, 3)) +>0 : number var anyType: any = 0; ->anyType : any +>anyType : any, Symbol(anyType, Decl(enumOperations.ts, 3, 3)) +>0 : number enumType ^ numberType; >enumType ^ numberType : number ->enumType : Enum ->numberType : number +>enumType : Enum, Symbol(enumType, Decl(enumOperations.ts, 1, 3)) +>numberType : number, Symbol(numberType, Decl(enumOperations.ts, 2, 3)) numberType ^ anyType; >numberType ^ anyType : number ->numberType : number ->anyType : any +>numberType : number, Symbol(numberType, Decl(enumOperations.ts, 2, 3)) +>anyType : any, Symbol(anyType, Decl(enumOperations.ts, 3, 3)) enumType & anyType; >enumType & anyType : number ->enumType : Enum ->anyType : any +>enumType : Enum, Symbol(enumType, Decl(enumOperations.ts, 1, 3)) +>anyType : any, Symbol(anyType, Decl(enumOperations.ts, 3, 3)) enumType | anyType; >enumType | anyType : number ->enumType : Enum ->anyType : any +>enumType : Enum, Symbol(enumType, Decl(enumOperations.ts, 1, 3)) +>anyType : any, Symbol(anyType, Decl(enumOperations.ts, 3, 3)) enumType ^ anyType; >enumType ^ anyType : number ->enumType : Enum ->anyType : any +>enumType : Enum, Symbol(enumType, Decl(enumOperations.ts, 1, 3)) +>anyType : any, Symbol(anyType, Decl(enumOperations.ts, 3, 3)) ~anyType; >~anyType : number ->anyType : any +>anyType : any, Symbol(anyType, Decl(enumOperations.ts, 3, 3)) enumType <enumType <enumType : Enum ->anyType : any +>enumType : Enum, Symbol(enumType, Decl(enumOperations.ts, 1, 3)) +>anyType : any, Symbol(anyType, Decl(enumOperations.ts, 3, 3)) enumType >>anyType; >enumType >>anyType : number ->enumType : Enum ->anyType : any +>enumType : Enum, Symbol(enumType, Decl(enumOperations.ts, 1, 3)) +>anyType : any, Symbol(anyType, Decl(enumOperations.ts, 3, 3)) enumType >>>anyType; >enumType >>>anyType : number ->enumType : Enum ->anyType : any +>enumType : Enum, Symbol(enumType, Decl(enumOperations.ts, 1, 3)) +>anyType : any, Symbol(anyType, Decl(enumOperations.ts, 3, 3)) diff --git a/tests/baselines/reference/enumWithQuotedElementName1.types b/tests/baselines/reference/enumWithQuotedElementName1.types index 135a74a5103..17d979bceeb 100644 --- a/tests/baselines/reference/enumWithQuotedElementName1.types +++ b/tests/baselines/reference/enumWithQuotedElementName1.types @@ -1,6 +1,6 @@ === tests/cases/compiler/enumWithQuotedElementName1.ts === enum E { ->E : E +>E : E, Symbol(E, Decl(enumWithQuotedElementName1.ts, 0, 0)) 'fo"o', } diff --git a/tests/baselines/reference/enumWithQuotedElementName2.types b/tests/baselines/reference/enumWithQuotedElementName2.types index ab222764f75..92be6205b5a 100644 --- a/tests/baselines/reference/enumWithQuotedElementName2.types +++ b/tests/baselines/reference/enumWithQuotedElementName2.types @@ -1,6 +1,6 @@ === tests/cases/compiler/enumWithQuotedElementName2.ts === enum E { ->E : E +>E : E, Symbol(E, Decl(enumWithQuotedElementName2.ts, 0, 0)) "fo'o", } diff --git a/tests/baselines/reference/enumWithUnicodeEscape1.types b/tests/baselines/reference/enumWithUnicodeEscape1.types index 8376685ca6b..e580f2665b5 100644 --- a/tests/baselines/reference/enumWithUnicodeEscape1.types +++ b/tests/baselines/reference/enumWithUnicodeEscape1.types @@ -1,6 +1,6 @@ === tests/cases/compiler/enumWithUnicodeEscape1.ts === enum E { ->E : E +>E : E, Symbol(E, Decl(enumWithUnicodeEscape1.ts, 0, 0)) 'gold \u2730' } diff --git a/tests/baselines/reference/enumsWithMultipleDeclarations3.types b/tests/baselines/reference/enumsWithMultipleDeclarations3.types index 2b761c780e9..8d3a8e2cec2 100644 --- a/tests/baselines/reference/enumsWithMultipleDeclarations3.types +++ b/tests/baselines/reference/enumsWithMultipleDeclarations3.types @@ -1,11 +1,11 @@ === tests/cases/compiler/enumsWithMultipleDeclarations3.ts === module E { ->E : typeof E +>E : typeof E, Symbol(E, Decl(enumsWithMultipleDeclarations3.ts, 0, 0), Decl(enumsWithMultipleDeclarations3.ts, 1, 1)) } enum E { ->E : E +>E : E, Symbol(E, Decl(enumsWithMultipleDeclarations3.ts, 0, 0), Decl(enumsWithMultipleDeclarations3.ts, 1, 1)) A ->A : E +>A : E, Symbol(E.A, Decl(enumsWithMultipleDeclarations3.ts, 3, 8)) } diff --git a/tests/baselines/reference/errorRecoveryInClassDeclaration.errors.txt b/tests/baselines/reference/errorRecoveryInClassDeclaration.errors.txt new file mode 100644 index 00000000000..0835a7f256d --- /dev/null +++ b/tests/baselines/reference/errorRecoveryInClassDeclaration.errors.txt @@ -0,0 +1,25 @@ +tests/cases/compiler/errorRecoveryInClassDeclaration.ts(3,17): error TS2304: Cannot find name 'foo'. +tests/cases/compiler/errorRecoveryInClassDeclaration.ts(4,13): error TS2304: Cannot find name 'public'. +tests/cases/compiler/errorRecoveryInClassDeclaration.ts(4,20): error TS1005: ',' expected. +tests/cases/compiler/errorRecoveryInClassDeclaration.ts(4,20): error TS2304: Cannot find name 'blaz'. +tests/cases/compiler/errorRecoveryInClassDeclaration.ts(4,27): error TS1005: ',' expected. + + +==== tests/cases/compiler/errorRecoveryInClassDeclaration.ts (5 errors) ==== + class C { + public bar() { + var v = foo( + ~~~ +!!! error TS2304: Cannot find name 'foo'. + public blaz() {} + ~~~~~~ +!!! error TS2304: Cannot find name 'public'. + ~~~~ +!!! error TS1005: ',' expected. + ~~~~ +!!! error TS2304: Cannot find name 'blaz'. + ~ +!!! error TS1005: ',' expected. + ); + } + } \ No newline at end of file diff --git a/tests/baselines/reference/errorRecoveryInClassDeclaration.js b/tests/baselines/reference/errorRecoveryInClassDeclaration.js new file mode 100644 index 00000000000..7f95bed19f9 --- /dev/null +++ b/tests/baselines/reference/errorRecoveryInClassDeclaration.js @@ -0,0 +1,18 @@ +//// [errorRecoveryInClassDeclaration.ts] +class C { + public bar() { + var v = foo( + public blaz() {} + ); + } +} + +//// [errorRecoveryInClassDeclaration.js] +var C = (function () { + function C() { + } + C.prototype.bar = function () { + var v = foo(public, blaz(), {}); + }; + return C; +})(); diff --git a/tests/baselines/reference/es3-amd.types b/tests/baselines/reference/es3-amd.types index c43d29ac6dc..28aad37099f 100644 --- a/tests/baselines/reference/es3-amd.types +++ b/tests/baselines/reference/es3-amd.types @@ -1,7 +1,7 @@ === tests/cases/compiler/es3-amd.ts === class A ->A : A +>A : A, Symbol(A, Decl(es3-amd.ts, 0, 0)) { constructor () { @@ -9,8 +9,9 @@ class A } public B() ->B : () => number +>B : () => number, Symbol(B, Decl(es3-amd.ts, 6, 5)) { return 42; +>42 : number } } diff --git a/tests/baselines/reference/es3-declaration-amd.types b/tests/baselines/reference/es3-declaration-amd.types index 0ee63040166..7c455efc47f 100644 --- a/tests/baselines/reference/es3-declaration-amd.types +++ b/tests/baselines/reference/es3-declaration-amd.types @@ -1,7 +1,7 @@ === tests/cases/compiler/es3-declaration-amd.ts === class A ->A : A +>A : A, Symbol(A, Decl(es3-declaration-amd.ts, 0, 0)) { constructor () { @@ -9,8 +9,9 @@ class A } public B() ->B : () => number +>B : () => number, Symbol(B, Decl(es3-declaration-amd.ts, 6, 5)) { return 42; +>42 : number } } diff --git a/tests/baselines/reference/es3-sourcemap-amd.types b/tests/baselines/reference/es3-sourcemap-amd.types index 5301120e2df..f99e56b7030 100644 --- a/tests/baselines/reference/es3-sourcemap-amd.types +++ b/tests/baselines/reference/es3-sourcemap-amd.types @@ -1,7 +1,7 @@ === tests/cases/compiler/es3-sourcemap-amd.ts === class A ->A : A +>A : A, Symbol(A, Decl(es3-sourcemap-amd.ts, 0, 0)) { constructor () { @@ -9,8 +9,9 @@ class A } public B() ->B : () => number +>B : () => number, Symbol(B, Decl(es3-sourcemap-amd.ts, 6, 5)) { return 42; +>42 : number } } diff --git a/tests/baselines/reference/es5-amd.types b/tests/baselines/reference/es5-amd.types index 289289d3c0b..ad4c5a58e37 100644 --- a/tests/baselines/reference/es5-amd.types +++ b/tests/baselines/reference/es5-amd.types @@ -1,7 +1,7 @@ === tests/cases/compiler/es5-amd.ts === class A ->A : A +>A : A, Symbol(A, Decl(es5-amd.ts, 0, 0)) { constructor () { @@ -9,8 +9,9 @@ class A } public B() ->B : () => number +>B : () => number, Symbol(B, Decl(es5-amd.ts, 6, 5)) { return 42; +>42 : number } } diff --git a/tests/baselines/reference/es5-declaration-amd.types b/tests/baselines/reference/es5-declaration-amd.types index 50815e8e6bc..05f53d78351 100644 --- a/tests/baselines/reference/es5-declaration-amd.types +++ b/tests/baselines/reference/es5-declaration-amd.types @@ -1,7 +1,7 @@ === tests/cases/compiler/es5-declaration-amd.ts === class A ->A : A +>A : A, Symbol(A, Decl(es5-declaration-amd.ts, 0, 0)) { constructor () { @@ -9,8 +9,9 @@ class A } public B() ->B : () => number +>B : () => number, Symbol(B, Decl(es5-declaration-amd.ts, 6, 5)) { return 42; +>42 : number } } diff --git a/tests/baselines/reference/es5-souremap-amd.types b/tests/baselines/reference/es5-souremap-amd.types index 242e6508026..31cddab5386 100644 --- a/tests/baselines/reference/es5-souremap-amd.types +++ b/tests/baselines/reference/es5-souremap-amd.types @@ -1,7 +1,7 @@ === tests/cases/compiler/es5-souremap-amd.ts === class A ->A : A +>A : A, Symbol(A, Decl(es5-souremap-amd.ts, 0, 0)) { constructor () { @@ -9,8 +9,9 @@ class A } public B() ->B : () => number +>B : () => number, Symbol(B, Decl(es5-souremap-amd.ts, 6, 5)) { return 42; +>42 : number } } diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration.types b/tests/baselines/reference/es5ExportDefaultClassDeclaration.types index 34fb87fcbb2..a95f5c2167b 100644 --- a/tests/baselines/reference/es5ExportDefaultClassDeclaration.types +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration.types @@ -1,9 +1,9 @@ === tests/cases/compiler/es5ExportDefaultClassDeclaration.ts === export default class C { ->C : C +>C : C, Symbol(C, Decl(es5ExportDefaultClassDeclaration.ts, 0, 0)) method() { } ->method : () => void +>method : () => void, Symbol(method, Decl(es5ExportDefaultClassDeclaration.ts, 1, 24)) } diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration2.types b/tests/baselines/reference/es5ExportDefaultClassDeclaration2.types index e4c7a59e0e7..dbf89b2fa35 100644 --- a/tests/baselines/reference/es5ExportDefaultClassDeclaration2.types +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration2.types @@ -2,6 +2,6 @@ export default class { method() { } ->method : () => void +>method : () => void, Symbol(method, Decl(es5ExportDefaultClassDeclaration2.ts, 1, 22)) } diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.types b/tests/baselines/reference/es5ExportDefaultClassDeclaration3.types index 1ed302ac45e..b940f21d97b 100644 --- a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.types +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration3.types @@ -1,33 +1,33 @@ === tests/cases/compiler/es5ExportDefaultClassDeclaration3.ts === var before: C = new C(); ->before : C ->C : C +>before : C, Symbol(before, Decl(es5ExportDefaultClassDeclaration3.ts, 1, 3)) +>C : C, Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 1, 24)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 1, 24)) export default class C { ->C : C +>C : C, Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 1, 24)) method(): C { ->method : () => C ->C : C +>method : () => C, Symbol(method, Decl(es5ExportDefaultClassDeclaration3.ts, 3, 24)) +>C : C, Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 1, 24)) return new C(); >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 1, 24)) } } var after: C = new C(); ->after : C ->C : C +>after : C, Symbol(after, Decl(es5ExportDefaultClassDeclaration3.ts, 9, 3)) +>C : C, Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 1, 24)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 1, 24)) var t: typeof C = C; ->t : typeof C ->C : typeof C ->C : typeof C +>t : typeof C, Symbol(t, Decl(es5ExportDefaultClassDeclaration3.ts, 11, 3)) +>C : typeof C, Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 1, 24)) +>C : typeof C, Symbol(C, Decl(es5ExportDefaultClassDeclaration3.ts, 1, 24)) diff --git a/tests/baselines/reference/es5ExportDefaultExpression.js b/tests/baselines/reference/es5ExportDefaultExpression.js index 1e14ae0bffd..944b6fc71a5 100644 --- a/tests/baselines/reference/es5ExportDefaultExpression.js +++ b/tests/baselines/reference/es5ExportDefaultExpression.js @@ -8,4 +8,5 @@ exports.default = (1 + 2); //// [es5ExportDefaultExpression.d.ts] -export default : number; +declare var _default: number; +export default _default; diff --git a/tests/baselines/reference/es5ExportDefaultExpression.types b/tests/baselines/reference/es5ExportDefaultExpression.types index 2f4e2b57284..6b371a2fc73 100644 --- a/tests/baselines/reference/es5ExportDefaultExpression.types +++ b/tests/baselines/reference/es5ExportDefaultExpression.types @@ -3,4 +3,6 @@ export default (1 + 2); >(1 + 2) : number >1 + 2 : number +>1 : number +>2 : number diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration.types b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration.types index 446bd8e2a31..6fe83abb179 100644 --- a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration.types +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration.types @@ -1,5 +1,5 @@ === tests/cases/compiler/es5ExportDefaultFunctionDeclaration.ts === export default function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(es5ExportDefaultFunctionDeclaration.ts, 0, 0)) diff --git a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3.types b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3.types index d3a8ff92b2f..4a6323f60db 100644 --- a/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3.types +++ b/tests/baselines/reference/es5ExportDefaultFunctionDeclaration3.types @@ -1,22 +1,22 @@ === tests/cases/compiler/es5ExportDefaultFunctionDeclaration3.ts === var before: typeof func = func(); ->before : () => typeof func ->func : () => typeof func +>before : () => typeof func, Symbol(before, Decl(es5ExportDefaultFunctionDeclaration3.ts, 1, 3)) +>func : () => typeof func, Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 1, 33)) >func() : () => typeof func ->func : () => typeof func +>func : () => typeof func, Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 1, 33)) export default function func(): typeof func { ->func : () => typeof func ->func : () => typeof func +>func : () => typeof func, Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 1, 33)) +>func : () => typeof func, Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 1, 33)) return func; ->func : () => typeof func +>func : () => typeof func, Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 1, 33)) } var after: typeof func = func(); ->after : () => typeof func ->func : () => typeof func +>after : () => typeof func, Symbol(after, Decl(es5ExportDefaultFunctionDeclaration3.ts, 7, 3)) +>func : () => typeof func, Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 1, 33)) >func() : () => typeof func ->func : () => typeof func +>func : () => typeof func, Symbol(func, Decl(es5ExportDefaultFunctionDeclaration3.ts, 1, 33)) diff --git a/tests/baselines/reference/es5ExportDefaultIdentifier.types b/tests/baselines/reference/es5ExportDefaultIdentifier.types index d57f7575070..72febf3dca9 100644 --- a/tests/baselines/reference/es5ExportDefaultIdentifier.types +++ b/tests/baselines/reference/es5ExportDefaultIdentifier.types @@ -1,8 +1,8 @@ === tests/cases/compiler/es5ExportDefaultIdentifier.ts === export function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(es5ExportDefaultIdentifier.ts, 0, 0)) export default f; ->f : () => void +>f : () => void, Symbol(f, Decl(es5ExportDefaultIdentifier.ts, 0, 0)) diff --git a/tests/baselines/reference/es5ExportEqualsDts.types b/tests/baselines/reference/es5ExportEqualsDts.types index 58b35a0d7ce..20a90a9fab2 100644 --- a/tests/baselines/reference/es5ExportEqualsDts.types +++ b/tests/baselines/reference/es5ExportEqualsDts.types @@ -1,28 +1,28 @@ === tests/cases/compiler/es5ExportEqualsDts.ts === class A { ->A : A +>A : A, Symbol(A, Decl(es5ExportEqualsDts.ts, 0, 0), Decl(es5ExportEqualsDts.ts, 6, 1)) foo() { ->foo : () => A.B +>foo : () => A.B, Symbol(foo, Decl(es5ExportEqualsDts.ts, 1, 9)) var aVal: A.B; ->aVal : A.B ->A : unknown ->B : A.B +>aVal : A.B, Symbol(aVal, Decl(es5ExportEqualsDts.ts, 3, 11)) +>A : any, Symbol(A, Decl(es5ExportEqualsDts.ts, 0, 0), Decl(es5ExportEqualsDts.ts, 6, 1)) +>B : A.B, Symbol(A.B, Decl(es5ExportEqualsDts.ts, 8, 10)) return aVal; ->aVal : A.B +>aVal : A.B, Symbol(aVal, Decl(es5ExportEqualsDts.ts, 3, 11)) } } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(es5ExportEqualsDts.ts, 0, 0), Decl(es5ExportEqualsDts.ts, 6, 1)) export interface B { } ->B : B +>B : B, Symbol(B, Decl(es5ExportEqualsDts.ts, 8, 10)) } export = A ->A : A +>A : A, Symbol(A, Decl(es5ExportEqualsDts.ts, 0, 0), Decl(es5ExportEqualsDts.ts, 6, 1)) diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd.types b/tests/baselines/reference/es5ModuleWithModuleGenAmd.types index e3453587a12..b92eb7f5a71 100644 --- a/tests/baselines/reference/es5ModuleWithModuleGenAmd.types +++ b/tests/baselines/reference/es5ModuleWithModuleGenAmd.types @@ -1,14 +1,15 @@ === tests/cases/compiler/es5ModuleWithModuleGenAmd.ts === export class A ->A : A +>A : A, Symbol(A, Decl(es5ModuleWithModuleGenAmd.ts, 0, 0)) { constructor () { } public B() ->B : () => number +>B : () => number, Symbol(B, Decl(es5ModuleWithModuleGenAmd.ts, 4, 5)) { return 42; +>42 : number } } diff --git a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.types b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.types index 721df9afe58..3300e1de5b2 100644 --- a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.types +++ b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.types @@ -1,14 +1,15 @@ === tests/cases/compiler/es5ModuleWithModuleGenCommonjs.ts === export class A ->A : A +>A : A, Symbol(A, Decl(es5ModuleWithModuleGenCommonjs.ts, 0, 0)) { constructor () { } public B() ->B : () => number +>B : () => number, Symbol(B, Decl(es5ModuleWithModuleGenCommonjs.ts, 4, 5)) { return 42; +>42 : number } } diff --git a/tests/baselines/reference/es6ClassSuperCodegenBug.types b/tests/baselines/reference/es6ClassSuperCodegenBug.types index 7b8a4abadfe..02abd049de7 100644 --- a/tests/baselines/reference/es6ClassSuperCodegenBug.types +++ b/tests/baselines/reference/es6ClassSuperCodegenBug.types @@ -1,25 +1,31 @@ === tests/cases/compiler/es6ClassSuperCodegenBug.ts === class A { ->A : A +>A : A, Symbol(A, Decl(es6ClassSuperCodegenBug.ts, 0, 0)) constructor(str1:string, str2:string) {} ->str1 : string ->str2 : string +>str1 : string, Symbol(str1, Decl(es6ClassSuperCodegenBug.ts, 1, 13)) +>str2 : string, Symbol(str2, Decl(es6ClassSuperCodegenBug.ts, 1, 25)) } class B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(es6ClassSuperCodegenBug.ts, 2, 1)) +>A : A, Symbol(A, Decl(es6ClassSuperCodegenBug.ts, 0, 0)) constructor() { if (true) { +>true : boolean + super('a1', 'b1'); >super('a1', 'b1') : void ->super : typeof A +>super : typeof A, Symbol(A, Decl(es6ClassSuperCodegenBug.ts, 0, 0)) +>'a1' : string +>'b1' : string } else { super('a2', 'b2'); >super('a2', 'b2') : void ->super : typeof A +>super : typeof A, Symbol(A, Decl(es6ClassSuperCodegenBug.ts, 0, 0)) +>'a2' : string +>'b2' : string } } } diff --git a/tests/baselines/reference/es6ClassTest3.types b/tests/baselines/reference/es6ClassTest3.types index ba0f2036f0e..663356ef80d 100644 --- a/tests/baselines/reference/es6ClassTest3.types +++ b/tests/baselines/reference/es6ClassTest3.types @@ -1,37 +1,39 @@ === tests/cases/compiler/es6ClassTest3.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(es6ClassTest3.ts, 0, 0)) class Visibility { ->Visibility : Visibility +>Visibility : Visibility, Symbol(Visibility, Decl(es6ClassTest3.ts, 0, 10)) public foo() { }; ->foo : () => void +>foo : () => void, Symbol(foo, Decl(es6ClassTest3.ts, 1, 19)) private bar() { }; ->bar : () => void +>bar : () => void, Symbol(bar, Decl(es6ClassTest3.ts, 2, 22)) private x: number; ->x : number +>x : number, Symbol(x, Decl(es6ClassTest3.ts, 3, 23)) public y: number; ->y : number +>y : number, Symbol(y, Decl(es6ClassTest3.ts, 4, 26)) public z: number; ->z : number +>z : number, Symbol(z, Decl(es6ClassTest3.ts, 5, 22)) constructor() { this.x = 1; >this.x = 1 : number ->this.x : number ->this : Visibility ->x : number +>this.x : number, Symbol(x, Decl(es6ClassTest3.ts, 3, 23)) +>this : Visibility, Symbol(Visibility, Decl(es6ClassTest3.ts, 0, 10)) +>x : number, Symbol(x, Decl(es6ClassTest3.ts, 3, 23)) +>1 : number this.y = 2; >this.y = 2 : number ->this.y : number ->this : Visibility ->y : number +>this.y : number, Symbol(y, Decl(es6ClassTest3.ts, 4, 26)) +>this : Visibility, Symbol(Visibility, Decl(es6ClassTest3.ts, 0, 10)) +>y : number, Symbol(y, Decl(es6ClassTest3.ts, 4, 26)) +>2 : number } } } diff --git a/tests/baselines/reference/es6ClassTest4.types b/tests/baselines/reference/es6ClassTest4.types index 53669dada73..58a489e616b 100644 --- a/tests/baselines/reference/es6ClassTest4.types +++ b/tests/baselines/reference/es6ClassTest4.types @@ -1,31 +1,31 @@ === tests/cases/compiler/es6ClassTest4.ts === declare class Point ->Point : Point +>Point : Point, Symbol(Point, Decl(es6ClassTest4.ts, 0, 0)) { x: number; ->x : number +>x : number, Symbol(x, Decl(es6ClassTest4.ts, 1, 1)) y: number; ->y : number +>y : number, Symbol(y, Decl(es6ClassTest4.ts, 2, 14)) add(dx: number, dy: number): Point; ->add : (dx: number, dy: number) => Point ->dx : number ->dy : number ->Point : Point +>add : (dx: number, dy: number) => Point, Symbol(add, Decl(es6ClassTest4.ts, 3, 14)) +>dx : number, Symbol(dx, Decl(es6ClassTest4.ts, 4, 8)) +>dy : number, Symbol(dy, Decl(es6ClassTest4.ts, 4, 19)) +>Point : Point, Symbol(Point, Decl(es6ClassTest4.ts, 0, 0)) mult(p: Point): Point; ->mult : (p: Point) => Point ->p : Point ->Point : Point ->Point : Point +>mult : (p: Point) => Point, Symbol(mult, Decl(es6ClassTest4.ts, 4, 39)) +>p : Point, Symbol(p, Decl(es6ClassTest4.ts, 5, 9)) +>Point : Point, Symbol(Point, Decl(es6ClassTest4.ts, 0, 0)) +>Point : Point, Symbol(Point, Decl(es6ClassTest4.ts, 0, 0)) static origin: Point; ->origin : Point ->Point : Point +>origin : Point, Symbol(Point.origin, Decl(es6ClassTest4.ts, 5, 26)) +>Point : Point, Symbol(Point, Decl(es6ClassTest4.ts, 0, 0)) constructor(x: number, y: number); ->x : number ->y : number +>x : number, Symbol(x, Decl(es6ClassTest4.ts, 7, 16)) +>y : number, Symbol(y, Decl(es6ClassTest4.ts, 7, 26)) } diff --git a/tests/baselines/reference/es6ClassTest5.types b/tests/baselines/reference/es6ClassTest5.types index e04be3e8c43..d495ffac19a 100644 --- a/tests/baselines/reference/es6ClassTest5.types +++ b/tests/baselines/reference/es6ClassTest5.types @@ -1,27 +1,28 @@ === tests/cases/compiler/es6ClassTest5.ts === class C1T5 { ->C1T5 : C1T5 +>C1T5 : C1T5, Symbol(C1T5, Decl(es6ClassTest5.ts, 0, 0)) foo: (i: number, s: string) => number = ->foo : (i: number, s: string) => number ->i : number ->s : string +>foo : (i: number, s: string) => number, Symbol(foo, Decl(es6ClassTest5.ts, 0, 12)) +>i : number, Symbol(i, Decl(es6ClassTest5.ts, 1, 10)) +>s : string, Symbol(s, Decl(es6ClassTest5.ts, 1, 20)) (i) => { >(i) => { return i; } : (i: number) => number ->i : number +>i : number, Symbol(i, Decl(es6ClassTest5.ts, 2, 6)) return i; ->i : number +>i : number, Symbol(i, Decl(es6ClassTest5.ts, 2, 6)) } } module C2T5 {} ->C2T5 : unknown +>C2T5 : any, Symbol(C2T5, Decl(es6ClassTest5.ts, 5, 1)) class bigClass { ->bigClass : bigClass +>bigClass : bigClass, Symbol(bigClass, Decl(es6ClassTest5.ts, 6, 14)) public break = 1; ->break : number +>break : number, Symbol(break, Decl(es6ClassTest5.ts, 8, 17)) +>1 : number } diff --git a/tests/baselines/reference/es6ClassTest7.types b/tests/baselines/reference/es6ClassTest7.types index 2ad5e88179c..39f016f96e9 100644 --- a/tests/baselines/reference/es6ClassTest7.types +++ b/tests/baselines/reference/es6ClassTest7.types @@ -1,15 +1,16 @@ === tests/cases/compiler/es6ClassTest7.ts === declare module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(es6ClassTest7.ts, 0, 0)) export class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(es6ClassTest7.ts, 0, 18)) } } class Bar extends M.Foo { ->Bar : Bar ->M : typeof M ->Foo : M.Foo +>Bar : Bar, Symbol(Bar, Decl(es6ClassTest7.ts, 3, 1)) +>M.Foo : any, Symbol(M.Foo, Decl(es6ClassTest7.ts, 0, 18)) +>M : typeof M, Symbol(M, Decl(es6ClassTest7.ts, 0, 0)) +>Foo : M.Foo, Symbol(M.Foo, Decl(es6ClassTest7.ts, 0, 18)) } diff --git a/tests/baselines/reference/es6ClassTest8.types b/tests/baselines/reference/es6ClassTest8.types index e5133c88d7e..149e8cf3cd4 100644 --- a/tests/baselines/reference/es6ClassTest8.types +++ b/tests/baselines/reference/es6ClassTest8.types @@ -1,178 +1,186 @@ === tests/cases/compiler/es6ClassTest8.ts === function f1(x:any) {return x;} ->f1 : (x: any) => any ->x : any ->x : any +>f1 : (x: any) => any, Symbol(f1, Decl(es6ClassTest8.ts, 0, 0)) +>x : any, Symbol(x, Decl(es6ClassTest8.ts, 0, 12)) +>x : any, Symbol(x, Decl(es6ClassTest8.ts, 0, 12)) class C { ->C : C +>C : C, Symbol(C, Decl(es6ClassTest8.ts, 0, 30)) constructor() { var bar:any = (function() { ->bar : any +>bar : any, Symbol(bar, Decl(es6ClassTest8.ts, 4, 11)) >(function() { return bar; // 'bar' should be resolvable }) : () => any >function() { return bar; // 'bar' should be resolvable } : () => any return bar; // 'bar' should be resolvable ->bar : any +>bar : any, Symbol(bar, Decl(es6ClassTest8.ts, 4, 11)) }); var b = f1(f1(bar)); ->b : any +>b : any, Symbol(b, Decl(es6ClassTest8.ts, 7, 11)) >f1(f1(bar)) : any ->f1 : (x: any) => any +>f1 : (x: any) => any, Symbol(f1, Decl(es6ClassTest8.ts, 0, 0)) >f1(bar) : any ->f1 : (x: any) => any ->bar : any +>f1 : (x: any) => any, Symbol(f1, Decl(es6ClassTest8.ts, 0, 0)) +>bar : any, Symbol(bar, Decl(es6ClassTest8.ts, 4, 11)) } } class Vector { ->Vector : Vector +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) static norm(v:Vector):Vector {return null;} ->norm : (v: Vector) => Vector ->v : Vector ->Vector : Vector ->Vector : Vector +>norm : (v: Vector) => Vector, Symbol(Vector.norm, Decl(es6ClassTest8.ts, 12, 14)) +>v : Vector, Symbol(v, Decl(es6ClassTest8.ts, 13, 16)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>null : null static minus(v1:Vector, v2:Vector):Vector {return null;} ->minus : (v1: Vector, v2: Vector) => Vector ->v1 : Vector ->Vector : Vector ->v2 : Vector ->Vector : Vector ->Vector : Vector +>minus : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.minus, Decl(es6ClassTest8.ts, 13, 47)) +>v1 : Vector, Symbol(v1, Decl(es6ClassTest8.ts, 14, 17)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>v2 : Vector, Symbol(v2, Decl(es6ClassTest8.ts, 14, 27)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>null : null static times(v1:Vector, v2:Vector):Vector {return null;} ->times : (v1: Vector, v2: Vector) => Vector ->v1 : Vector ->Vector : Vector ->v2 : Vector ->Vector : Vector ->Vector : Vector +>times : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.times, Decl(es6ClassTest8.ts, 14, 60)) +>v1 : Vector, Symbol(v1, Decl(es6ClassTest8.ts, 15, 17)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>v2 : Vector, Symbol(v2, Decl(es6ClassTest8.ts, 15, 27)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>null : null static cross(v1:Vector, v2:Vector):Vector {return null;} ->cross : (v1: Vector, v2: Vector) => Vector ->v1 : Vector ->Vector : Vector ->v2 : Vector ->Vector : Vector ->Vector : Vector +>cross : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.cross, Decl(es6ClassTest8.ts, 15, 60)) +>v1 : Vector, Symbol(v1, Decl(es6ClassTest8.ts, 16, 17)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>v2 : Vector, Symbol(v2, Decl(es6ClassTest8.ts, 16, 27)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>null : null constructor(public x: number, ->x : number +>x : number, Symbol(x, Decl(es6ClassTest8.ts, 18, 16)) public y: number, ->y : number +>y : number, Symbol(y, Decl(es6ClassTest8.ts, 18, 33)) public z: number) { ->z : number +>z : number, Symbol(z, Decl(es6ClassTest8.ts, 19, 33)) } static dot(v1:Vector, v2:Vector):Vector {return null;} ->dot : (v1: Vector, v2: Vector) => Vector ->v1 : Vector ->Vector : Vector ->v2 : Vector ->Vector : Vector ->Vector : Vector +>dot : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.dot, Decl(es6ClassTest8.ts, 21, 5)) +>v1 : Vector, Symbol(v1, Decl(es6ClassTest8.ts, 23, 15)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>v2 : Vector, Symbol(v2, Decl(es6ClassTest8.ts, 23, 25)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>null : null } class Camera { ->Camera : Camera +>Camera : Camera, Symbol(Camera, Decl(es6ClassTest8.ts, 25, 1)) public forward: Vector; ->forward : Vector ->Vector : Vector +>forward : Vector, Symbol(forward, Decl(es6ClassTest8.ts, 27, 14)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) public right: Vector; ->right : Vector ->Vector : Vector +>right : Vector, Symbol(right, Decl(es6ClassTest8.ts, 28, 27)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) public up: Vector; ->up : Vector ->Vector : Vector +>up : Vector, Symbol(up, Decl(es6ClassTest8.ts, 29, 25)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) constructor(public pos: Vector, lookAt: Vector) { ->pos : Vector ->Vector : Vector ->lookAt : Vector ->Vector : Vector +>pos : Vector, Symbol(pos, Decl(es6ClassTest8.ts, 31, 16)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>lookAt : Vector, Symbol(lookAt, Decl(es6ClassTest8.ts, 31, 35)) +>Vector : Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) var down = new Vector(0.0, -1.0, 0.0); ->down : Vector +>down : Vector, Symbol(down, Decl(es6ClassTest8.ts, 32, 11)) >new Vector(0.0, -1.0, 0.0) : Vector ->Vector : typeof Vector +>Vector : typeof Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>0.0 : number >-1.0 : number +>1.0 : number +>0.0 : number this.forward = Vector.norm(Vector.minus(lookAt,this.pos)); >this.forward = Vector.norm(Vector.minus(lookAt,this.pos)) : Vector ->this.forward : Vector ->this : Camera ->forward : Vector +>this.forward : Vector, Symbol(forward, Decl(es6ClassTest8.ts, 27, 14)) +>this : Camera, Symbol(Camera, Decl(es6ClassTest8.ts, 25, 1)) +>forward : Vector, Symbol(forward, Decl(es6ClassTest8.ts, 27, 14)) >Vector.norm(Vector.minus(lookAt,this.pos)) : Vector ->Vector.norm : (v: Vector) => Vector ->Vector : typeof Vector ->norm : (v: Vector) => Vector +>Vector.norm : (v: Vector) => Vector, Symbol(Vector.norm, Decl(es6ClassTest8.ts, 12, 14)) +>Vector : typeof Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>norm : (v: Vector) => Vector, Symbol(Vector.norm, Decl(es6ClassTest8.ts, 12, 14)) >Vector.minus(lookAt,this.pos) : Vector ->Vector.minus : (v1: Vector, v2: Vector) => Vector ->Vector : typeof Vector ->minus : (v1: Vector, v2: Vector) => Vector ->lookAt : Vector ->this.pos : Vector ->this : Camera ->pos : Vector +>Vector.minus : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.minus, Decl(es6ClassTest8.ts, 13, 47)) +>Vector : typeof Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>minus : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.minus, Decl(es6ClassTest8.ts, 13, 47)) +>lookAt : Vector, Symbol(lookAt, Decl(es6ClassTest8.ts, 31, 35)) +>this.pos : Vector, Symbol(pos, Decl(es6ClassTest8.ts, 31, 16)) +>this : Camera, Symbol(Camera, Decl(es6ClassTest8.ts, 25, 1)) +>pos : Vector, Symbol(pos, Decl(es6ClassTest8.ts, 31, 16)) this.right = Vector.times(down, Vector.norm(Vector.cross(this.forward, down))); >this.right = Vector.times(down, Vector.norm(Vector.cross(this.forward, down))) : Vector ->this.right : Vector ->this : Camera ->right : Vector +>this.right : Vector, Symbol(right, Decl(es6ClassTest8.ts, 28, 27)) +>this : Camera, Symbol(Camera, Decl(es6ClassTest8.ts, 25, 1)) +>right : Vector, Symbol(right, Decl(es6ClassTest8.ts, 28, 27)) >Vector.times(down, Vector.norm(Vector.cross(this.forward, down))) : Vector ->Vector.times : (v1: Vector, v2: Vector) => Vector ->Vector : typeof Vector ->times : (v1: Vector, v2: Vector) => Vector ->down : Vector +>Vector.times : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.times, Decl(es6ClassTest8.ts, 14, 60)) +>Vector : typeof Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>times : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.times, Decl(es6ClassTest8.ts, 14, 60)) +>down : Vector, Symbol(down, Decl(es6ClassTest8.ts, 32, 11)) >Vector.norm(Vector.cross(this.forward, down)) : Vector ->Vector.norm : (v: Vector) => Vector ->Vector : typeof Vector ->norm : (v: Vector) => Vector +>Vector.norm : (v: Vector) => Vector, Symbol(Vector.norm, Decl(es6ClassTest8.ts, 12, 14)) +>Vector : typeof Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>norm : (v: Vector) => Vector, Symbol(Vector.norm, Decl(es6ClassTest8.ts, 12, 14)) >Vector.cross(this.forward, down) : Vector ->Vector.cross : (v1: Vector, v2: Vector) => Vector ->Vector : typeof Vector ->cross : (v1: Vector, v2: Vector) => Vector ->this.forward : Vector ->this : Camera ->forward : Vector ->down : Vector +>Vector.cross : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.cross, Decl(es6ClassTest8.ts, 15, 60)) +>Vector : typeof Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>cross : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.cross, Decl(es6ClassTest8.ts, 15, 60)) +>this.forward : Vector, Symbol(forward, Decl(es6ClassTest8.ts, 27, 14)) +>this : Camera, Symbol(Camera, Decl(es6ClassTest8.ts, 25, 1)) +>forward : Vector, Symbol(forward, Decl(es6ClassTest8.ts, 27, 14)) +>down : Vector, Symbol(down, Decl(es6ClassTest8.ts, 32, 11)) this.up = Vector.times(down, Vector.norm(Vector.cross(this.forward, this.right))); >this.up = Vector.times(down, Vector.norm(Vector.cross(this.forward, this.right))) : Vector ->this.up : Vector ->this : Camera ->up : Vector +>this.up : Vector, Symbol(up, Decl(es6ClassTest8.ts, 29, 25)) +>this : Camera, Symbol(Camera, Decl(es6ClassTest8.ts, 25, 1)) +>up : Vector, Symbol(up, Decl(es6ClassTest8.ts, 29, 25)) >Vector.times(down, Vector.norm(Vector.cross(this.forward, this.right))) : Vector ->Vector.times : (v1: Vector, v2: Vector) => Vector ->Vector : typeof Vector ->times : (v1: Vector, v2: Vector) => Vector ->down : Vector +>Vector.times : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.times, Decl(es6ClassTest8.ts, 14, 60)) +>Vector : typeof Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>times : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.times, Decl(es6ClassTest8.ts, 14, 60)) +>down : Vector, Symbol(down, Decl(es6ClassTest8.ts, 32, 11)) >Vector.norm(Vector.cross(this.forward, this.right)) : Vector ->Vector.norm : (v: Vector) => Vector ->Vector : typeof Vector ->norm : (v: Vector) => Vector +>Vector.norm : (v: Vector) => Vector, Symbol(Vector.norm, Decl(es6ClassTest8.ts, 12, 14)) +>Vector : typeof Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>norm : (v: Vector) => Vector, Symbol(Vector.norm, Decl(es6ClassTest8.ts, 12, 14)) >Vector.cross(this.forward, this.right) : Vector ->Vector.cross : (v1: Vector, v2: Vector) => Vector ->Vector : typeof Vector ->cross : (v1: Vector, v2: Vector) => Vector ->this.forward : Vector ->this : Camera ->forward : Vector ->this.right : Vector ->this : Camera ->right : Vector +>Vector.cross : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.cross, Decl(es6ClassTest8.ts, 15, 60)) +>Vector : typeof Vector, Symbol(Vector, Decl(es6ClassTest8.ts, 10, 1)) +>cross : (v1: Vector, v2: Vector) => Vector, Symbol(Vector.cross, Decl(es6ClassTest8.ts, 15, 60)) +>this.forward : Vector, Symbol(forward, Decl(es6ClassTest8.ts, 27, 14)) +>this : Camera, Symbol(Camera, Decl(es6ClassTest8.ts, 25, 1)) +>forward : Vector, Symbol(forward, Decl(es6ClassTest8.ts, 27, 14)) +>this.right : Vector, Symbol(right, Decl(es6ClassTest8.ts, 28, 27)) +>this : Camera, Symbol(Camera, Decl(es6ClassTest8.ts, 25, 1)) +>right : Vector, Symbol(right, Decl(es6ClassTest8.ts, 28, 27)) } } diff --git a/tests/baselines/reference/es6ExportAll.types b/tests/baselines/reference/es6ExportAll.types index 99e8fde9d40..7e661daf234 100644 --- a/tests/baselines/reference/es6ExportAll.types +++ b/tests/baselines/reference/es6ExportAll.types @@ -1,22 +1,24 @@ === tests/cases/compiler/server.ts === export class c { ->c : c +>c : c, Symbol(c, Decl(server.ts, 0, 0)) } export interface i { ->i : i +>i : i, Symbol(i, Decl(server.ts, 2, 1)) } export module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(server.ts, 4, 1)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(server.ts, 6, 14)) +>10 : number } export var x = 10; ->x : number +>x : number, Symbol(x, Decl(server.ts, 8, 10)) +>10 : number export module uninstantiated { ->uninstantiated : unknown +>uninstantiated : any, Symbol(uninstantiated, Decl(server.ts, 8, 18)) } === tests/cases/compiler/client.ts === diff --git a/tests/baselines/reference/es6ExportAllInEs5.types b/tests/baselines/reference/es6ExportAllInEs5.types index 99e8fde9d40..7e661daf234 100644 --- a/tests/baselines/reference/es6ExportAllInEs5.types +++ b/tests/baselines/reference/es6ExportAllInEs5.types @@ -1,22 +1,24 @@ === tests/cases/compiler/server.ts === export class c { ->c : c +>c : c, Symbol(c, Decl(server.ts, 0, 0)) } export interface i { ->i : i +>i : i, Symbol(i, Decl(server.ts, 2, 1)) } export module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(server.ts, 4, 1)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(server.ts, 6, 14)) +>10 : number } export var x = 10; ->x : number +>x : number, Symbol(x, Decl(server.ts, 8, 10)) +>10 : number export module uninstantiated { ->uninstantiated : unknown +>uninstantiated : any, Symbol(uninstantiated, Decl(server.ts, 8, 18)) } === tests/cases/compiler/client.ts === diff --git a/tests/baselines/reference/es6ExportClause.types b/tests/baselines/reference/es6ExportClause.types index 24b9859e0e8..2a6c6dd91bc 100644 --- a/tests/baselines/reference/es6ExportClause.types +++ b/tests/baselines/reference/es6ExportClause.types @@ -1,38 +1,40 @@ === tests/cases/compiler/es6ExportClause.ts === class c { ->c : c +>c : c, Symbol(c, Decl(es6ExportClause.ts, 0, 0)) } interface i { ->i : i +>i : i, Symbol(i, Decl(es6ExportClause.ts, 2, 1)) } module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(es6ExportClause.ts, 4, 1)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(es6ExportClause.ts, 6, 14)) +>10 : number } var x = 10; ->x : number +>x : number, Symbol(x, Decl(es6ExportClause.ts, 8, 3)) +>10 : number module uninstantiated { ->uninstantiated : unknown +>uninstantiated : any, Symbol(uninstantiated, Decl(es6ExportClause.ts, 8, 11)) } export { c }; ->c : typeof c +>c : typeof c, Symbol(c, Decl(es6ExportClause.ts, 11, 8)) export { c as c2 }; ->c : typeof c ->c2 : typeof c +>c : typeof c, Symbol(c2, Decl(es6ExportClause.ts, 12, 8)) +>c2 : typeof c, Symbol(c2, Decl(es6ExportClause.ts, 12, 8)) export { i, m as instantiatedModule }; ->i : unknown ->m : typeof m ->instantiatedModule : typeof m +>i : any, Symbol(i, Decl(es6ExportClause.ts, 13, 8)) +>m : typeof m, Symbol(instantiatedModule, Decl(es6ExportClause.ts, 13, 11)) +>instantiatedModule : typeof m, Symbol(instantiatedModule, Decl(es6ExportClause.ts, 13, 11)) export { uninstantiated }; ->uninstantiated : unknown +>uninstantiated : any, Symbol(uninstantiated, Decl(es6ExportClause.ts, 14, 8)) export { x }; ->x : number +>x : number, Symbol(x, Decl(es6ExportClause.ts, 15, 8)) diff --git a/tests/baselines/reference/es6ExportClauseInEs5.types b/tests/baselines/reference/es6ExportClauseInEs5.types index 8caedfa5ceb..584af08064d 100644 --- a/tests/baselines/reference/es6ExportClauseInEs5.types +++ b/tests/baselines/reference/es6ExportClauseInEs5.types @@ -1,38 +1,40 @@ === tests/cases/compiler/es6ExportClauseInEs5.ts === class c { ->c : c +>c : c, Symbol(c, Decl(es6ExportClauseInEs5.ts, 0, 0)) } interface i { ->i : i +>i : i, Symbol(i, Decl(es6ExportClauseInEs5.ts, 2, 1)) } module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(es6ExportClauseInEs5.ts, 4, 1)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(es6ExportClauseInEs5.ts, 6, 14)) +>10 : number } var x = 10; ->x : number +>x : number, Symbol(x, Decl(es6ExportClauseInEs5.ts, 8, 3)) +>10 : number module uninstantiated { ->uninstantiated : unknown +>uninstantiated : any, Symbol(uninstantiated, Decl(es6ExportClauseInEs5.ts, 8, 11)) } export { c }; ->c : typeof c +>c : typeof c, Symbol(c, Decl(es6ExportClauseInEs5.ts, 11, 8)) export { c as c2 }; ->c : typeof c ->c2 : typeof c +>c : typeof c, Symbol(c2, Decl(es6ExportClauseInEs5.ts, 12, 8)) +>c2 : typeof c, Symbol(c2, Decl(es6ExportClauseInEs5.ts, 12, 8)) export { i, m as instantiatedModule }; ->i : unknown ->m : typeof m ->instantiatedModule : typeof m +>i : any, Symbol(i, Decl(es6ExportClauseInEs5.ts, 13, 8)) +>m : typeof m, Symbol(instantiatedModule, Decl(es6ExportClauseInEs5.ts, 13, 11)) +>instantiatedModule : typeof m, Symbol(instantiatedModule, Decl(es6ExportClauseInEs5.ts, 13, 11)) export { uninstantiated }; ->uninstantiated : unknown +>uninstantiated : any, Symbol(uninstantiated, Decl(es6ExportClauseInEs5.ts, 14, 8)) export { x }; ->x : number +>x : number, Symbol(x, Decl(es6ExportClauseInEs5.ts, 15, 8)) diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.types b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.types index c0087dccd94..dd6f31182f5 100644 --- a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.types +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifier.types @@ -1,40 +1,42 @@ === tests/cases/compiler/server.ts === export class c { ->c : c +>c : c, Symbol(c, Decl(server.ts, 0, 0)) } export interface i { ->i : i +>i : i, Symbol(i, Decl(server.ts, 2, 1)) } export module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(server.ts, 4, 1)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(server.ts, 6, 14)) +>10 : number } export var x = 10; ->x : number +>x : number, Symbol(x, Decl(server.ts, 8, 10)) +>10 : number export module uninstantiated { ->uninstantiated : unknown +>uninstantiated : any, Symbol(uninstantiated, Decl(server.ts, 8, 18)) } === tests/cases/compiler/client.ts === export { c } from "server"; ->c : typeof c +>c : typeof c, Symbol(c, Decl(client.ts, 0, 8)) export { c as c2 } from "server"; ->c : typeof c ->c2 : typeof c +>c : typeof c, Symbol(c2, Decl(client.ts, 1, 8)) +>c2 : typeof c, Symbol(c2, Decl(client.ts, 1, 8)) export { i, m as instantiatedModule } from "server"; ->i : unknown ->m : typeof instantiatedModule ->instantiatedModule : typeof instantiatedModule +>i : any, Symbol(i, Decl(client.ts, 2, 8)) +>m : typeof instantiatedModule, Symbol(instantiatedModule, Decl(client.ts, 2, 11)) +>instantiatedModule : typeof instantiatedModule, Symbol(instantiatedModule, Decl(client.ts, 2, 11)) export { uninstantiated } from "server"; ->uninstantiated : unknown +>uninstantiated : any, Symbol(uninstantiated, Decl(client.ts, 3, 8)) export { x } from "server"; ->x : number +>x : number, Symbol(x, Decl(client.ts, 4, 8)) diff --git a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.types b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.types index c0087dccd94..dd6f31182f5 100644 --- a/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.types +++ b/tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.types @@ -1,40 +1,42 @@ === tests/cases/compiler/server.ts === export class c { ->c : c +>c : c, Symbol(c, Decl(server.ts, 0, 0)) } export interface i { ->i : i +>i : i, Symbol(i, Decl(server.ts, 2, 1)) } export module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(server.ts, 4, 1)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(server.ts, 6, 14)) +>10 : number } export var x = 10; ->x : number +>x : number, Symbol(x, Decl(server.ts, 8, 10)) +>10 : number export module uninstantiated { ->uninstantiated : unknown +>uninstantiated : any, Symbol(uninstantiated, Decl(server.ts, 8, 18)) } === tests/cases/compiler/client.ts === export { c } from "server"; ->c : typeof c +>c : typeof c, Symbol(c, Decl(client.ts, 0, 8)) export { c as c2 } from "server"; ->c : typeof c ->c2 : typeof c +>c : typeof c, Symbol(c2, Decl(client.ts, 1, 8)) +>c2 : typeof c, Symbol(c2, Decl(client.ts, 1, 8)) export { i, m as instantiatedModule } from "server"; ->i : unknown ->m : typeof instantiatedModule ->instantiatedModule : typeof instantiatedModule +>i : any, Symbol(i, Decl(client.ts, 2, 8)) +>m : typeof instantiatedModule, Symbol(instantiatedModule, Decl(client.ts, 2, 11)) +>instantiatedModule : typeof instantiatedModule, Symbol(instantiatedModule, Decl(client.ts, 2, 11)) export { uninstantiated } from "server"; ->uninstantiated : unknown +>uninstantiated : any, Symbol(uninstantiated, Decl(client.ts, 3, 8)) export { x } from "server"; ->x : number +>x : number, Symbol(x, Decl(client.ts, 4, 8)) diff --git a/tests/baselines/reference/es6ExportDefaultClassDeclaration.types b/tests/baselines/reference/es6ExportDefaultClassDeclaration.types index 59e74fc1257..7611544348e 100644 --- a/tests/baselines/reference/es6ExportDefaultClassDeclaration.types +++ b/tests/baselines/reference/es6ExportDefaultClassDeclaration.types @@ -1,9 +1,9 @@ === tests/cases/compiler/es6ExportDefaultClassDeclaration.ts === export default class C { ->C : C +>C : C, Symbol(C, Decl(es6ExportDefaultClassDeclaration.ts, 0, 0)) method() { } ->method : () => void +>method : () => void, Symbol(method, Decl(es6ExportDefaultClassDeclaration.ts, 1, 24)) } diff --git a/tests/baselines/reference/es6ExportDefaultClassDeclaration2.types b/tests/baselines/reference/es6ExportDefaultClassDeclaration2.types index 513cacf05e4..8118ddcdc5a 100644 --- a/tests/baselines/reference/es6ExportDefaultClassDeclaration2.types +++ b/tests/baselines/reference/es6ExportDefaultClassDeclaration2.types @@ -2,6 +2,6 @@ export default class { method() { } ->method : () => void +>method : () => void, Symbol(method, Decl(es6ExportDefaultClassDeclaration2.ts, 1, 22)) } diff --git a/tests/baselines/reference/es6ExportDefaultExpression.js b/tests/baselines/reference/es6ExportDefaultExpression.js index 322e09bc46f..100182b9f28 100644 --- a/tests/baselines/reference/es6ExportDefaultExpression.js +++ b/tests/baselines/reference/es6ExportDefaultExpression.js @@ -8,4 +8,5 @@ export default (1 + 2); //// [es6ExportDefaultExpression.d.ts] -export default : number; +declare var _default: number; +export default _default; diff --git a/tests/baselines/reference/es6ExportDefaultExpression.types b/tests/baselines/reference/es6ExportDefaultExpression.types index 3b056b8d9f9..6f7665c2800 100644 --- a/tests/baselines/reference/es6ExportDefaultExpression.types +++ b/tests/baselines/reference/es6ExportDefaultExpression.types @@ -3,4 +3,6 @@ export default (1 + 2); >(1 + 2) : number >1 + 2 : number +>1 : number +>2 : number diff --git a/tests/baselines/reference/es6ExportDefaultFunctionDeclaration.types b/tests/baselines/reference/es6ExportDefaultFunctionDeclaration.types index 6179bde9613..2ca2638ec87 100644 --- a/tests/baselines/reference/es6ExportDefaultFunctionDeclaration.types +++ b/tests/baselines/reference/es6ExportDefaultFunctionDeclaration.types @@ -1,5 +1,5 @@ === tests/cases/compiler/es6ExportDefaultFunctionDeclaration.ts === export default function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(es6ExportDefaultFunctionDeclaration.ts, 0, 0)) diff --git a/tests/baselines/reference/es6ExportDefaultIdentifier.types b/tests/baselines/reference/es6ExportDefaultIdentifier.types index 81dc168efd0..e758ae6721d 100644 --- a/tests/baselines/reference/es6ExportDefaultIdentifier.types +++ b/tests/baselines/reference/es6ExportDefaultIdentifier.types @@ -1,8 +1,8 @@ === tests/cases/compiler/es6ExportDefaultIdentifier.ts === export function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(es6ExportDefaultIdentifier.ts, 0, 0)) export default f; ->f : () => void +>f : () => void, Symbol(f, Decl(es6ExportDefaultIdentifier.ts, 0, 0)) diff --git a/tests/baselines/reference/es6ImportDefaultBinding.types b/tests/baselines/reference/es6ImportDefaultBinding.types index 13504101a2c..8d008916863 100644 --- a/tests/baselines/reference/es6ImportDefaultBinding.types +++ b/tests/baselines/reference/es6ImportDefaultBinding.types @@ -1,19 +1,20 @@ === tests/cases/compiler/es6ImportDefaultBinding_0.ts === var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ImportDefaultBinding_0.ts, 1, 3)) +>10 : number export default a; ->a : number +>a : number, Symbol(a, Decl(es6ImportDefaultBinding_0.ts, 1, 3)) === tests/cases/compiler/es6ImportDefaultBinding_1.ts === import defaultBinding from "es6ImportDefaultBinding_0"; ->defaultBinding : number +>defaultBinding : number, Symbol(defaultBinding, Decl(es6ImportDefaultBinding_1.ts, 0, 6)) var x = defaultBinding; ->x : number ->defaultBinding : number +>x : number, Symbol(x, Decl(es6ImportDefaultBinding_1.ts, 1, 3)) +>defaultBinding : number, Symbol(defaultBinding, Decl(es6ImportDefaultBinding_1.ts, 0, 6)) import defaultBinding2 from "es6ImportDefaultBinding_0"; // elide this import since defaultBinding2 is not used ->defaultBinding2 : number +>defaultBinding2 : number, Symbol(defaultBinding2, Decl(es6ImportDefaultBinding_1.ts, 2, 6)) diff --git a/tests/baselines/reference/es6ImportDefaultBindingAmd.types b/tests/baselines/reference/es6ImportDefaultBindingAmd.types index 323ed557d8b..48b3cb49560 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingAmd.types +++ b/tests/baselines/reference/es6ImportDefaultBindingAmd.types @@ -1,19 +1,20 @@ === tests/cases/compiler/es6ImportDefaultBindingAmd_0.ts === var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ImportDefaultBindingAmd_0.ts, 1, 3)) +>10 : number export default a; ->a : number +>a : number, Symbol(a, Decl(es6ImportDefaultBindingAmd_0.ts, 1, 3)) === tests/cases/compiler/es6ImportDefaultBindingAmd_1.ts === import defaultBinding from "es6ImportDefaultBindingAmd_0"; ->defaultBinding : number +>defaultBinding : number, Symbol(defaultBinding, Decl(es6ImportDefaultBindingAmd_1.ts, 0, 6)) var x = defaultBinding; ->x : number ->defaultBinding : number +>x : number, Symbol(x, Decl(es6ImportDefaultBindingAmd_1.ts, 1, 3)) +>defaultBinding : number, Symbol(defaultBinding, Decl(es6ImportDefaultBindingAmd_1.ts, 0, 6)) import defaultBinding2 from "es6ImportDefaultBindingAmd_0"; // elide this import since defaultBinding2 is not used ->defaultBinding2 : number +>defaultBinding2 : number, Symbol(defaultBinding2, Decl(es6ImportDefaultBindingAmd_1.ts, 2, 6)) diff --git a/tests/baselines/reference/es6ImportDefaultBindingDts.types b/tests/baselines/reference/es6ImportDefaultBindingDts.types index 65754d80680..8ee2d2245d0 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingDts.types +++ b/tests/baselines/reference/es6ImportDefaultBindingDts.types @@ -1,20 +1,20 @@ === tests/cases/compiler/server.ts === class c { } ->c : c +>c : c, Symbol(c, Decl(server.ts, 0, 0)) export default c; ->c : c +>c : c, Symbol(c, Decl(server.ts, 0, 0)) === tests/cases/compiler/client.ts === import defaultBinding from "server"; ->defaultBinding : typeof defaultBinding +>defaultBinding : typeof defaultBinding, Symbol(defaultBinding, Decl(client.ts, 0, 6)) export var x = new defaultBinding(); ->x : defaultBinding +>x : defaultBinding, Symbol(x, Decl(client.ts, 1, 10)) >new defaultBinding() : defaultBinding ->defaultBinding : typeof defaultBinding +>defaultBinding : typeof defaultBinding, Symbol(defaultBinding, Decl(client.ts, 0, 6)) import defaultBinding2 from "server"; // elide this import since defaultBinding2 is not used ->defaultBinding2 : typeof defaultBinding +>defaultBinding2 : typeof defaultBinding, Symbol(defaultBinding2, Decl(client.ts, 2, 6)) diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.js index eef23579212..641941db9e5 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.js +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.js @@ -45,5 +45,6 @@ var x1 = m; export declare var a: number; export declare var x: number; export declare var m: number; -export default : {}; +declare var _default: {}; +export default _default; //// [es6ImportDefaultBindingFollowedWithNamedImport_1.d.ts] diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js index 0d5f38c0be4..90521007735 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportWithExport.js @@ -44,7 +44,8 @@ define(["require", "exports", "server", "server", "server", "server", "server"], export declare var a: number; export declare var x: number; export declare var m: number; -export default : {}; +declare var _default: {}; +export default _default; //// [client.d.ts] export declare var x1: number; export declare var x1: number; diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types index c0c3f891c9e..6bb5e8e737d 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1.types @@ -1,17 +1,18 @@ === tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts === var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts, 1, 3)) +>10 : number export default a; ->a : number +>a : number, Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_0.ts, 1, 3)) === tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts === import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBinding_0"; ->defaultBinding : number ->nameSpaceBinding : typeof nameSpaceBinding +>defaultBinding : number, Symbol(defaultBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts, 0, 6)) +>nameSpaceBinding : typeof nameSpaceBinding, Symbol(nameSpaceBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts, 0, 22)) var x: number = defaultBinding; ->x : number ->defaultBinding : number +>x : number, Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts, 1, 3)) +>defaultBinding : number, Symbol(defaultBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBinding_1.ts, 0, 6)) diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.types index ad2b865bc01..ce8812891cc 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.types +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.types @@ -1,17 +1,18 @@ === tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts === var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts, 1, 3)) +>10 : number export default a; ->a : number +>a : number, Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts, 1, 3)) === tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts === import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"; ->defaultBinding : number ->nameSpaceBinding : typeof nameSpaceBinding +>defaultBinding : number, Symbol(defaultBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 6)) +>nameSpaceBinding : typeof nameSpaceBinding, Symbol(nameSpaceBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 22)) var x: number = defaultBinding; ->x : number ->defaultBinding : number +>x : number, Symbol(x, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 1, 3)) +>defaultBinding : number, Symbol(defaultBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 6)) diff --git a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.types b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.types index 990bae10af6..449978f3c57 100644 --- a/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.types +++ b/tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.types @@ -1,18 +1,18 @@ === tests/cases/compiler/server.ts === class a { } ->a : a +>a : a, Symbol(a, Decl(server.ts, 0, 0)) export default a; ->a : a +>a : a, Symbol(a, Decl(server.ts, 0, 0)) === tests/cases/compiler/client.ts === import defaultBinding, * as nameSpaceBinding from "server"; ->defaultBinding : typeof defaultBinding ->nameSpaceBinding : typeof nameSpaceBinding +>defaultBinding : typeof defaultBinding, Symbol(defaultBinding, Decl(client.ts, 0, 6)) +>nameSpaceBinding : typeof nameSpaceBinding, Symbol(nameSpaceBinding, Decl(client.ts, 0, 22)) export var x = new defaultBinding(); ->x : defaultBinding +>x : defaultBinding, Symbol(x, Decl(client.ts, 1, 10)) >new defaultBinding() : defaultBinding ->defaultBinding : typeof defaultBinding +>defaultBinding : typeof defaultBinding, Symbol(defaultBinding, Decl(client.ts, 0, 6)) diff --git a/tests/baselines/reference/es6ImportNameSpaceImportAmd.types b/tests/baselines/reference/es6ImportNameSpaceImportAmd.types index 623a7e8e160..4c070e28f5b 100644 --- a/tests/baselines/reference/es6ImportNameSpaceImportAmd.types +++ b/tests/baselines/reference/es6ImportNameSpaceImportAmd.types @@ -1,18 +1,19 @@ === tests/cases/compiler/es6ImportNameSpaceImportAmd_0.ts === export var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ImportNameSpaceImportAmd_0.ts, 1, 10)) +>10 : number === tests/cases/compiler/es6ImportNameSpaceImportAmd_1.ts === import * as nameSpaceBinding from "es6ImportNameSpaceImportAmd_0"; ->nameSpaceBinding : typeof nameSpaceBinding +>nameSpaceBinding : typeof nameSpaceBinding, Symbol(nameSpaceBinding, Decl(es6ImportNameSpaceImportAmd_1.ts, 0, 6)) var x = nameSpaceBinding.a; ->x : number ->nameSpaceBinding.a : number ->nameSpaceBinding : typeof nameSpaceBinding ->a : number +>x : number, Symbol(x, Decl(es6ImportNameSpaceImportAmd_1.ts, 1, 3)) +>nameSpaceBinding.a : number, Symbol(nameSpaceBinding.a, Decl(es6ImportNameSpaceImportAmd_0.ts, 1, 10)) +>nameSpaceBinding : typeof nameSpaceBinding, Symbol(nameSpaceBinding, Decl(es6ImportNameSpaceImportAmd_1.ts, 0, 6)) +>a : number, Symbol(nameSpaceBinding.a, Decl(es6ImportNameSpaceImportAmd_0.ts, 1, 10)) import * as nameSpaceBinding2 from "es6ImportNameSpaceImportAmd_0"; // elide this ->nameSpaceBinding2 : typeof nameSpaceBinding +>nameSpaceBinding2 : typeof nameSpaceBinding, Symbol(nameSpaceBinding2, Decl(es6ImportNameSpaceImportAmd_1.ts, 2, 6)) diff --git a/tests/baselines/reference/es6ImportNameSpaceImportDts.types b/tests/baselines/reference/es6ImportNameSpaceImportDts.types index 345d593b143..5d93d5ca9f3 100644 --- a/tests/baselines/reference/es6ImportNameSpaceImportDts.types +++ b/tests/baselines/reference/es6ImportNameSpaceImportDts.types @@ -1,19 +1,19 @@ === tests/cases/compiler/server.ts === export class c { }; ->c : c +>c : c, Symbol(c, Decl(server.ts, 0, 0)) === tests/cases/compiler/client.ts === import * as nameSpaceBinding from "server"; ->nameSpaceBinding : typeof nameSpaceBinding +>nameSpaceBinding : typeof nameSpaceBinding, Symbol(nameSpaceBinding, Decl(client.ts, 0, 6)) export var x = new nameSpaceBinding.c(); ->x : nameSpaceBinding.c +>x : nameSpaceBinding.c, Symbol(x, Decl(client.ts, 1, 10)) >new nameSpaceBinding.c() : nameSpaceBinding.c ->nameSpaceBinding.c : typeof nameSpaceBinding.c ->nameSpaceBinding : typeof nameSpaceBinding ->c : typeof nameSpaceBinding.c +>nameSpaceBinding.c : typeof nameSpaceBinding.c, Symbol(nameSpaceBinding.c, Decl(server.ts, 0, 0)) +>nameSpaceBinding : typeof nameSpaceBinding, Symbol(nameSpaceBinding, Decl(client.ts, 0, 6)) +>c : typeof nameSpaceBinding.c, Symbol(nameSpaceBinding.c, Decl(server.ts, 0, 0)) import * as nameSpaceBinding2 from "server"; // unreferenced ->nameSpaceBinding2 : typeof nameSpaceBinding +>nameSpaceBinding2 : typeof nameSpaceBinding, Symbol(nameSpaceBinding2, Decl(client.ts, 2, 6)) diff --git a/tests/baselines/reference/es6ImportNameSpaceImportInEs5.types b/tests/baselines/reference/es6ImportNameSpaceImportInEs5.types index 6ba725f2494..d58ff71dda5 100644 --- a/tests/baselines/reference/es6ImportNameSpaceImportInEs5.types +++ b/tests/baselines/reference/es6ImportNameSpaceImportInEs5.types @@ -1,18 +1,19 @@ === tests/cases/compiler/es6ImportNameSpaceImportInEs5_0.ts === export var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ImportNameSpaceImportInEs5_0.ts, 1, 10)) +>10 : number === tests/cases/compiler/es6ImportNameSpaceImportInEs5_1.ts === import * as nameSpaceBinding from "es6ImportNameSpaceImportInEs5_0"; ->nameSpaceBinding : typeof nameSpaceBinding +>nameSpaceBinding : typeof nameSpaceBinding, Symbol(nameSpaceBinding, Decl(es6ImportNameSpaceImportInEs5_1.ts, 0, 6)) var x = nameSpaceBinding.a; ->x : number ->nameSpaceBinding.a : number ->nameSpaceBinding : typeof nameSpaceBinding ->a : number +>x : number, Symbol(x, Decl(es6ImportNameSpaceImportInEs5_1.ts, 1, 3)) +>nameSpaceBinding.a : number, Symbol(nameSpaceBinding.a, Decl(es6ImportNameSpaceImportInEs5_0.ts, 1, 10)) +>nameSpaceBinding : typeof nameSpaceBinding, Symbol(nameSpaceBinding, Decl(es6ImportNameSpaceImportInEs5_1.ts, 0, 6)) +>a : number, Symbol(nameSpaceBinding.a, Decl(es6ImportNameSpaceImportInEs5_0.ts, 1, 10)) import * as nameSpaceBinding2 from "es6ImportNameSpaceImportInEs5_0"; // elide this ->nameSpaceBinding2 : typeof nameSpaceBinding +>nameSpaceBinding2 : typeof nameSpaceBinding, Symbol(nameSpaceBinding2, Decl(es6ImportNameSpaceImportInEs5_1.ts, 2, 6)) diff --git a/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports.types b/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports.types index e1f2e89bbd8..cee67ddde37 100644 --- a/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports.types +++ b/tests/baselines/reference/es6ImportNameSpaceImportNoNamedExports.types @@ -1,12 +1,13 @@ === tests/cases/compiler/es6ImportNameSpaceImportNoNamedExports_0.ts === var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ImportNameSpaceImportNoNamedExports_0.ts, 1, 3)) +>10 : number export = a; ->a : number +>a : number, Symbol(a, Decl(es6ImportNameSpaceImportNoNamedExports_0.ts, 1, 3)) === tests/cases/compiler/es6ImportNameSpaceImportNoNamedExports_1.ts === import * as nameSpaceBinding from "es6ImportNameSpaceImportNoNamedExports_0"; // error ->nameSpaceBinding : number +>nameSpaceBinding : number, Symbol(nameSpaceBinding, Decl(es6ImportNameSpaceImportNoNamedExports_1.ts, 0, 6)) diff --git a/tests/baselines/reference/es6ImportNamedImportAmd.types b/tests/baselines/reference/es6ImportNamedImportAmd.types index 4a0abe853e0..0c57bc5a04e 100644 --- a/tests/baselines/reference/es6ImportNamedImportAmd.types +++ b/tests/baselines/reference/es6ImportNamedImportAmd.types @@ -1,123 +1,129 @@ === tests/cases/compiler/es6ImportNamedImportAmd_0.ts === export var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ImportNamedImportAmd_0.ts, 1, 10)) +>10 : number export var x = a; ->x : number ->a : number +>x : number, Symbol(x, Decl(es6ImportNamedImportAmd_0.ts, 2, 10)) +>a : number, Symbol(a, Decl(es6ImportNamedImportAmd_0.ts, 1, 10)) export var m = a; ->m : number ->a : number +>m : number, Symbol(m, Decl(es6ImportNamedImportAmd_0.ts, 3, 10)) +>a : number, Symbol(a, Decl(es6ImportNamedImportAmd_0.ts, 1, 10)) export var a1 = 10; ->a1 : number +>a1 : number, Symbol(a1, Decl(es6ImportNamedImportAmd_0.ts, 4, 10)) +>10 : number export var x1 = 10; ->x1 : number +>x1 : number, Symbol(x1, Decl(es6ImportNamedImportAmd_0.ts, 5, 10)) +>10 : number export var z1 = 10; ->z1 : number +>z1 : number, Symbol(z1, Decl(es6ImportNamedImportAmd_0.ts, 6, 10)) +>10 : number export var z2 = 10; ->z2 : number +>z2 : number, Symbol(z2, Decl(es6ImportNamedImportAmd_0.ts, 7, 10)) +>10 : number export var aaaa = 10; ->aaaa : number +>aaaa : number, Symbol(aaaa, Decl(es6ImportNamedImportAmd_0.ts, 8, 10)) +>10 : number === tests/cases/compiler/es6ImportNamedImportAmd_1.ts === import { } from "es6ImportNamedImportAmd_0"; import { a } from "es6ImportNamedImportAmd_0"; ->a : number +>a : number, Symbol(a, Decl(es6ImportNamedImportAmd_1.ts, 1, 8)) var xxxx = a; ->xxxx : number ->a : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportAmd_1.ts, 2, 3), Decl(es6ImportNamedImportAmd_1.ts, 4, 3), Decl(es6ImportNamedImportAmd_1.ts, 6, 3), Decl(es6ImportNamedImportAmd_1.ts, 7, 3), Decl(es6ImportNamedImportAmd_1.ts, 9, 3), Decl(es6ImportNamedImportAmd_1.ts, 11, 3), Decl(es6ImportNamedImportAmd_1.ts, 13, 3), Decl(es6ImportNamedImportAmd_1.ts, 14, 3), Decl(es6ImportNamedImportAmd_1.ts, 16, 3), Decl(es6ImportNamedImportAmd_1.ts, 17, 3)) +>a : number, Symbol(a, Decl(es6ImportNamedImportAmd_1.ts, 1, 8)) import { a as b } from "es6ImportNamedImportAmd_0"; ->a : number ->b : number +>a : number, Symbol(b, Decl(es6ImportNamedImportAmd_1.ts, 3, 8)) +>b : number, Symbol(b, Decl(es6ImportNamedImportAmd_1.ts, 3, 8)) var xxxx = b; ->xxxx : number ->b : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportAmd_1.ts, 2, 3), Decl(es6ImportNamedImportAmd_1.ts, 4, 3), Decl(es6ImportNamedImportAmd_1.ts, 6, 3), Decl(es6ImportNamedImportAmd_1.ts, 7, 3), Decl(es6ImportNamedImportAmd_1.ts, 9, 3), Decl(es6ImportNamedImportAmd_1.ts, 11, 3), Decl(es6ImportNamedImportAmd_1.ts, 13, 3), Decl(es6ImportNamedImportAmd_1.ts, 14, 3), Decl(es6ImportNamedImportAmd_1.ts, 16, 3), Decl(es6ImportNamedImportAmd_1.ts, 17, 3)) +>b : number, Symbol(b, Decl(es6ImportNamedImportAmd_1.ts, 3, 8)) import { x, a as y } from "es6ImportNamedImportAmd_0"; ->x : number ->a : number ->y : number +>x : number, Symbol(x, Decl(es6ImportNamedImportAmd_1.ts, 5, 8)) +>a : number, Symbol(y, Decl(es6ImportNamedImportAmd_1.ts, 5, 11)) +>y : number, Symbol(y, Decl(es6ImportNamedImportAmd_1.ts, 5, 11)) var xxxx = x; ->xxxx : number ->x : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportAmd_1.ts, 2, 3), Decl(es6ImportNamedImportAmd_1.ts, 4, 3), Decl(es6ImportNamedImportAmd_1.ts, 6, 3), Decl(es6ImportNamedImportAmd_1.ts, 7, 3), Decl(es6ImportNamedImportAmd_1.ts, 9, 3), Decl(es6ImportNamedImportAmd_1.ts, 11, 3), Decl(es6ImportNamedImportAmd_1.ts, 13, 3), Decl(es6ImportNamedImportAmd_1.ts, 14, 3), Decl(es6ImportNamedImportAmd_1.ts, 16, 3), Decl(es6ImportNamedImportAmd_1.ts, 17, 3)) +>x : number, Symbol(x, Decl(es6ImportNamedImportAmd_1.ts, 5, 8)) var xxxx = y; ->xxxx : number ->y : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportAmd_1.ts, 2, 3), Decl(es6ImportNamedImportAmd_1.ts, 4, 3), Decl(es6ImportNamedImportAmd_1.ts, 6, 3), Decl(es6ImportNamedImportAmd_1.ts, 7, 3), Decl(es6ImportNamedImportAmd_1.ts, 9, 3), Decl(es6ImportNamedImportAmd_1.ts, 11, 3), Decl(es6ImportNamedImportAmd_1.ts, 13, 3), Decl(es6ImportNamedImportAmd_1.ts, 14, 3), Decl(es6ImportNamedImportAmd_1.ts, 16, 3), Decl(es6ImportNamedImportAmd_1.ts, 17, 3)) +>y : number, Symbol(y, Decl(es6ImportNamedImportAmd_1.ts, 5, 11)) import { x as z, } from "es6ImportNamedImportAmd_0"; ->x : number ->z : number +>x : number, Symbol(z, Decl(es6ImportNamedImportAmd_1.ts, 8, 8)) +>z : number, Symbol(z, Decl(es6ImportNamedImportAmd_1.ts, 8, 8)) var xxxx = z; ->xxxx : number ->z : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportAmd_1.ts, 2, 3), Decl(es6ImportNamedImportAmd_1.ts, 4, 3), Decl(es6ImportNamedImportAmd_1.ts, 6, 3), Decl(es6ImportNamedImportAmd_1.ts, 7, 3), Decl(es6ImportNamedImportAmd_1.ts, 9, 3), Decl(es6ImportNamedImportAmd_1.ts, 11, 3), Decl(es6ImportNamedImportAmd_1.ts, 13, 3), Decl(es6ImportNamedImportAmd_1.ts, 14, 3), Decl(es6ImportNamedImportAmd_1.ts, 16, 3), Decl(es6ImportNamedImportAmd_1.ts, 17, 3)) +>z : number, Symbol(z, Decl(es6ImportNamedImportAmd_1.ts, 8, 8)) import { m, } from "es6ImportNamedImportAmd_0"; ->m : number +>m : number, Symbol(m, Decl(es6ImportNamedImportAmd_1.ts, 10, 8)) var xxxx = m; ->xxxx : number ->m : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportAmd_1.ts, 2, 3), Decl(es6ImportNamedImportAmd_1.ts, 4, 3), Decl(es6ImportNamedImportAmd_1.ts, 6, 3), Decl(es6ImportNamedImportAmd_1.ts, 7, 3), Decl(es6ImportNamedImportAmd_1.ts, 9, 3), Decl(es6ImportNamedImportAmd_1.ts, 11, 3), Decl(es6ImportNamedImportAmd_1.ts, 13, 3), Decl(es6ImportNamedImportAmd_1.ts, 14, 3), Decl(es6ImportNamedImportAmd_1.ts, 16, 3), Decl(es6ImportNamedImportAmd_1.ts, 17, 3)) +>m : number, Symbol(m, Decl(es6ImportNamedImportAmd_1.ts, 10, 8)) import { a1, x1 } from "es6ImportNamedImportAmd_0"; ->a1 : number ->x1 : number +>a1 : number, Symbol(a1, Decl(es6ImportNamedImportAmd_1.ts, 12, 8)) +>x1 : number, Symbol(x1, Decl(es6ImportNamedImportAmd_1.ts, 12, 12)) var xxxx = a1; ->xxxx : number ->a1 : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportAmd_1.ts, 2, 3), Decl(es6ImportNamedImportAmd_1.ts, 4, 3), Decl(es6ImportNamedImportAmd_1.ts, 6, 3), Decl(es6ImportNamedImportAmd_1.ts, 7, 3), Decl(es6ImportNamedImportAmd_1.ts, 9, 3), Decl(es6ImportNamedImportAmd_1.ts, 11, 3), Decl(es6ImportNamedImportAmd_1.ts, 13, 3), Decl(es6ImportNamedImportAmd_1.ts, 14, 3), Decl(es6ImportNamedImportAmd_1.ts, 16, 3), Decl(es6ImportNamedImportAmd_1.ts, 17, 3)) +>a1 : number, Symbol(a1, Decl(es6ImportNamedImportAmd_1.ts, 12, 8)) var xxxx = x1; ->xxxx : number ->x1 : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportAmd_1.ts, 2, 3), Decl(es6ImportNamedImportAmd_1.ts, 4, 3), Decl(es6ImportNamedImportAmd_1.ts, 6, 3), Decl(es6ImportNamedImportAmd_1.ts, 7, 3), Decl(es6ImportNamedImportAmd_1.ts, 9, 3), Decl(es6ImportNamedImportAmd_1.ts, 11, 3), Decl(es6ImportNamedImportAmd_1.ts, 13, 3), Decl(es6ImportNamedImportAmd_1.ts, 14, 3), Decl(es6ImportNamedImportAmd_1.ts, 16, 3), Decl(es6ImportNamedImportAmd_1.ts, 17, 3)) +>x1 : number, Symbol(x1, Decl(es6ImportNamedImportAmd_1.ts, 12, 12)) import { a1 as a11, x1 as x11 } from "es6ImportNamedImportAmd_0"; ->a1 : number ->a11 : number ->x1 : number ->x11 : number +>a1 : number, Symbol(a11, Decl(es6ImportNamedImportAmd_1.ts, 15, 8)) +>a11 : number, Symbol(a11, Decl(es6ImportNamedImportAmd_1.ts, 15, 8)) +>x1 : number, Symbol(x11, Decl(es6ImportNamedImportAmd_1.ts, 15, 19)) +>x11 : number, Symbol(x11, Decl(es6ImportNamedImportAmd_1.ts, 15, 19)) var xxxx = a11; ->xxxx : number ->a11 : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportAmd_1.ts, 2, 3), Decl(es6ImportNamedImportAmd_1.ts, 4, 3), Decl(es6ImportNamedImportAmd_1.ts, 6, 3), Decl(es6ImportNamedImportAmd_1.ts, 7, 3), Decl(es6ImportNamedImportAmd_1.ts, 9, 3), Decl(es6ImportNamedImportAmd_1.ts, 11, 3), Decl(es6ImportNamedImportAmd_1.ts, 13, 3), Decl(es6ImportNamedImportAmd_1.ts, 14, 3), Decl(es6ImportNamedImportAmd_1.ts, 16, 3), Decl(es6ImportNamedImportAmd_1.ts, 17, 3)) +>a11 : number, Symbol(a11, Decl(es6ImportNamedImportAmd_1.ts, 15, 8)) var xxxx = x11; ->xxxx : number ->x11 : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportAmd_1.ts, 2, 3), Decl(es6ImportNamedImportAmd_1.ts, 4, 3), Decl(es6ImportNamedImportAmd_1.ts, 6, 3), Decl(es6ImportNamedImportAmd_1.ts, 7, 3), Decl(es6ImportNamedImportAmd_1.ts, 9, 3), Decl(es6ImportNamedImportAmd_1.ts, 11, 3), Decl(es6ImportNamedImportAmd_1.ts, 13, 3), Decl(es6ImportNamedImportAmd_1.ts, 14, 3), Decl(es6ImportNamedImportAmd_1.ts, 16, 3), Decl(es6ImportNamedImportAmd_1.ts, 17, 3)) +>x11 : number, Symbol(x11, Decl(es6ImportNamedImportAmd_1.ts, 15, 19)) import { z1 } from "es6ImportNamedImportAmd_0"; ->z1 : number +>z1 : number, Symbol(z1, Decl(es6ImportNamedImportAmd_1.ts, 18, 8)) var z111 = z1; ->z111 : number ->z1 : number +>z111 : number, Symbol(z111, Decl(es6ImportNamedImportAmd_1.ts, 19, 3)) +>z1 : number, Symbol(z1, Decl(es6ImportNamedImportAmd_1.ts, 18, 8)) import { z2 as z3 } from "es6ImportNamedImportAmd_0"; ->z2 : number ->z3 : number +>z2 : number, Symbol(z3, Decl(es6ImportNamedImportAmd_1.ts, 20, 8)) +>z3 : number, Symbol(z3, Decl(es6ImportNamedImportAmd_1.ts, 20, 8)) var z2 = z3; // z2 shouldn't give redeclare error ->z2 : number ->z3 : number +>z2 : number, Symbol(z2, Decl(es6ImportNamedImportAmd_1.ts, 21, 3)) +>z3 : number, Symbol(z3, Decl(es6ImportNamedImportAmd_1.ts, 20, 8)) // These are elided import { aaaa } from "es6ImportNamedImportAmd_0"; ->aaaa : number +>aaaa : number, Symbol(aaaa, Decl(es6ImportNamedImportAmd_1.ts, 24, 8)) // These are elided import { aaaa as bbbb } from "es6ImportNamedImportAmd_0"; ->aaaa : number ->bbbb : number +>aaaa : number, Symbol(bbbb, Decl(es6ImportNamedImportAmd_1.ts, 26, 8)) +>bbbb : number, Symbol(bbbb, Decl(es6ImportNamedImportAmd_1.ts, 26, 8)) diff --git a/tests/baselines/reference/es6ImportNamedImportDts.types b/tests/baselines/reference/es6ImportNamedImportDts.types index 93bd55716a5..c3559c4e91d 100644 --- a/tests/baselines/reference/es6ImportNamedImportDts.types +++ b/tests/baselines/reference/es6ImportNamedImportDts.types @@ -1,150 +1,150 @@ === tests/cases/compiler/server.ts === export class a { } ->a : a +>a : a, Symbol(a, Decl(server.ts, 0, 0)) export class a11 { } ->a11 : a11 +>a11 : a11, Symbol(a11, Decl(server.ts, 1, 18)) export class a12 { } ->a12 : a12 +>a12 : a12, Symbol(a12, Decl(server.ts, 2, 20)) export class x { } ->x : x +>x : x, Symbol(x, Decl(server.ts, 3, 20)) export class x11 { } ->x11 : x11 +>x11 : x11, Symbol(x11, Decl(server.ts, 4, 18)) export class m { } ->m : m +>m : m, Symbol(m, Decl(server.ts, 5, 20)) export class a1 { } ->a1 : a1 +>a1 : a1, Symbol(a1, Decl(server.ts, 6, 18)) export class x1 { } ->x1 : x1 +>x1 : x1, Symbol(x1, Decl(server.ts, 7, 19)) export class a111 { } ->a111 : a111 +>a111 : a111, Symbol(a111, Decl(server.ts, 8, 19)) export class x111 { } ->x111 : x111 +>x111 : x111, Symbol(x111, Decl(server.ts, 9, 21)) export class z1 { } ->z1 : z1 +>z1 : z1, Symbol(z1, Decl(server.ts, 10, 21)) export class z2 { } ->z2 : z2 +>z2 : z2, Symbol(z2, Decl(server.ts, 11, 19)) export class aaaa { } ->aaaa : aaaa +>aaaa : aaaa, Symbol(aaaa, Decl(server.ts, 12, 19)) export class aaaa1 { } ->aaaa1 : aaaa1 +>aaaa1 : aaaa1, Symbol(aaaa1, Decl(server.ts, 13, 21)) === tests/cases/compiler/client.ts === import { } from "server"; import { a } from "server"; ->a : typeof a +>a : typeof a, Symbol(a, Decl(client.ts, 1, 8)) export var xxxx = new a(); ->xxxx : a +>xxxx : a, Symbol(xxxx, Decl(client.ts, 2, 10)) >new a() : a ->a : typeof a +>a : typeof a, Symbol(a, Decl(client.ts, 1, 8)) import { a11 as b } from "server"; ->a11 : typeof b ->b : typeof b +>a11 : typeof b, Symbol(b, Decl(client.ts, 3, 8)) +>b : typeof b, Symbol(b, Decl(client.ts, 3, 8)) export var xxxx1 = new b(); ->xxxx1 : b +>xxxx1 : b, Symbol(xxxx1, Decl(client.ts, 4, 10)) >new b() : b ->b : typeof b +>b : typeof b, Symbol(b, Decl(client.ts, 3, 8)) import { x, a12 as y } from "server"; ->x : typeof x ->a12 : typeof y ->y : typeof y +>x : typeof x, Symbol(x, Decl(client.ts, 5, 8)) +>a12 : typeof y, Symbol(y, Decl(client.ts, 5, 11)) +>y : typeof y, Symbol(y, Decl(client.ts, 5, 11)) export var xxxx2 = new x(); ->xxxx2 : x +>xxxx2 : x, Symbol(xxxx2, Decl(client.ts, 6, 10)) >new x() : x ->x : typeof x +>x : typeof x, Symbol(x, Decl(client.ts, 5, 8)) export var xxxx3 = new y(); ->xxxx3 : y +>xxxx3 : y, Symbol(xxxx3, Decl(client.ts, 7, 10)) >new y() : y ->y : typeof y +>y : typeof y, Symbol(y, Decl(client.ts, 5, 11)) import { x11 as z, } from "server"; ->x11 : typeof z ->z : typeof z +>x11 : typeof z, Symbol(z, Decl(client.ts, 8, 8)) +>z : typeof z, Symbol(z, Decl(client.ts, 8, 8)) export var xxxx4 = new z(); ->xxxx4 : z +>xxxx4 : z, Symbol(xxxx4, Decl(client.ts, 9, 10)) >new z() : z ->z : typeof z +>z : typeof z, Symbol(z, Decl(client.ts, 8, 8)) import { m, } from "server"; ->m : typeof m +>m : typeof m, Symbol(m, Decl(client.ts, 10, 8)) export var xxxx5 = new m(); ->xxxx5 : m +>xxxx5 : m, Symbol(xxxx5, Decl(client.ts, 11, 10)) >new m() : m ->m : typeof m +>m : typeof m, Symbol(m, Decl(client.ts, 10, 8)) import { a1, x1 } from "server"; ->a1 : typeof a1 ->x1 : typeof x1 +>a1 : typeof a1, Symbol(a1, Decl(client.ts, 12, 8)) +>x1 : typeof x1, Symbol(x1, Decl(client.ts, 12, 12)) export var xxxx6 = new a1(); ->xxxx6 : a1 +>xxxx6 : a1, Symbol(xxxx6, Decl(client.ts, 13, 10)) >new a1() : a1 ->a1 : typeof a1 +>a1 : typeof a1, Symbol(a1, Decl(client.ts, 12, 8)) export var xxxx7 = new x1(); ->xxxx7 : x1 +>xxxx7 : x1, Symbol(xxxx7, Decl(client.ts, 14, 10)) >new x1() : x1 ->x1 : typeof x1 +>x1 : typeof x1, Symbol(x1, Decl(client.ts, 12, 12)) import { a111 as a11, x111 as x11 } from "server"; ->a111 : typeof a11 ->a11 : typeof a11 ->x111 : typeof x11 ->x11 : typeof x11 +>a111 : typeof a11, Symbol(a11, Decl(client.ts, 15, 8)) +>a11 : typeof a11, Symbol(a11, Decl(client.ts, 15, 8)) +>x111 : typeof x11, Symbol(x11, Decl(client.ts, 15, 21)) +>x11 : typeof x11, Symbol(x11, Decl(client.ts, 15, 21)) export var xxxx8 = new a11(); ->xxxx8 : a11 +>xxxx8 : a11, Symbol(xxxx8, Decl(client.ts, 16, 10)) >new a11() : a11 ->a11 : typeof a11 +>a11 : typeof a11, Symbol(a11, Decl(client.ts, 15, 8)) export var xxxx9 = new x11(); ->xxxx9 : x11 +>xxxx9 : x11, Symbol(xxxx9, Decl(client.ts, 17, 10)) >new x11() : x11 ->x11 : typeof x11 +>x11 : typeof x11, Symbol(x11, Decl(client.ts, 15, 21)) import { z1 } from "server"; ->z1 : typeof z1 +>z1 : typeof z1, Symbol(z1, Decl(client.ts, 18, 8)) export var z111 = new z1(); ->z111 : z1 +>z111 : z1, Symbol(z111, Decl(client.ts, 19, 10)) >new z1() : z1 ->z1 : typeof z1 +>z1 : typeof z1, Symbol(z1, Decl(client.ts, 18, 8)) import { z2 as z3 } from "server"; ->z2 : typeof z3 ->z3 : typeof z3 +>z2 : typeof z3, Symbol(z3, Decl(client.ts, 20, 8)) +>z3 : typeof z3, Symbol(z3, Decl(client.ts, 20, 8)) export var z2 = new z3(); // z2 shouldn't give redeclare error ->z2 : z3 +>z2 : z3, Symbol(z2, Decl(client.ts, 21, 10)) >new z3() : z3 ->z3 : typeof z3 +>z3 : typeof z3, Symbol(z3, Decl(client.ts, 20, 8)) // not referenced import { aaaa } from "server"; ->aaaa : typeof aaaa +>aaaa : typeof aaaa, Symbol(aaaa, Decl(client.ts, 24, 8)) import { aaaa1 as bbbb } from "server"; ->aaaa1 : typeof bbbb ->bbbb : typeof bbbb +>aaaa1 : typeof bbbb, Symbol(bbbb, Decl(client.ts, 25, 8)) +>bbbb : typeof bbbb, Symbol(bbbb, Decl(client.ts, 25, 8)) diff --git a/tests/baselines/reference/es6ImportNamedImportInEs5.types b/tests/baselines/reference/es6ImportNamedImportInEs5.types index f60644b2621..7877c46d70d 100644 --- a/tests/baselines/reference/es6ImportNamedImportInEs5.types +++ b/tests/baselines/reference/es6ImportNamedImportInEs5.types @@ -1,123 +1,129 @@ === tests/cases/compiler/es6ImportNamedImportInEs5_0.ts === export var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ImportNamedImportInEs5_0.ts, 1, 10)) +>10 : number export var x = a; ->x : number ->a : number +>x : number, Symbol(x, Decl(es6ImportNamedImportInEs5_0.ts, 2, 10)) +>a : number, Symbol(a, Decl(es6ImportNamedImportInEs5_0.ts, 1, 10)) export var m = a; ->m : number ->a : number +>m : number, Symbol(m, Decl(es6ImportNamedImportInEs5_0.ts, 3, 10)) +>a : number, Symbol(a, Decl(es6ImportNamedImportInEs5_0.ts, 1, 10)) export var a1 = 10; ->a1 : number +>a1 : number, Symbol(a1, Decl(es6ImportNamedImportInEs5_0.ts, 4, 10)) +>10 : number export var x1 = 10; ->x1 : number +>x1 : number, Symbol(x1, Decl(es6ImportNamedImportInEs5_0.ts, 5, 10)) +>10 : number export var z1 = 10; ->z1 : number +>z1 : number, Symbol(z1, Decl(es6ImportNamedImportInEs5_0.ts, 6, 10)) +>10 : number export var z2 = 10; ->z2 : number +>z2 : number, Symbol(z2, Decl(es6ImportNamedImportInEs5_0.ts, 7, 10)) +>10 : number export var aaaa = 10; ->aaaa : number +>aaaa : number, Symbol(aaaa, Decl(es6ImportNamedImportInEs5_0.ts, 8, 10)) +>10 : number === tests/cases/compiler/es6ImportNamedImportInEs5_1.ts === import { } from "es6ImportNamedImportInEs5_0"; import { a } from "es6ImportNamedImportInEs5_0"; ->a : number +>a : number, Symbol(a, Decl(es6ImportNamedImportInEs5_1.ts, 1, 8)) var xxxx = a; ->xxxx : number ->a : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3), Decl(es6ImportNamedImportInEs5_1.ts, 11, 3), Decl(es6ImportNamedImportInEs5_1.ts, 13, 3), Decl(es6ImportNamedImportInEs5_1.ts, 14, 3), Decl(es6ImportNamedImportInEs5_1.ts, 16, 3), Decl(es6ImportNamedImportInEs5_1.ts, 17, 3)) +>a : number, Symbol(a, Decl(es6ImportNamedImportInEs5_1.ts, 1, 8)) import { a as b } from "es6ImportNamedImportInEs5_0"; ->a : number ->b : number +>a : number, Symbol(b, Decl(es6ImportNamedImportInEs5_1.ts, 3, 8)) +>b : number, Symbol(b, Decl(es6ImportNamedImportInEs5_1.ts, 3, 8)) var xxxx = b; ->xxxx : number ->b : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3), Decl(es6ImportNamedImportInEs5_1.ts, 11, 3), Decl(es6ImportNamedImportInEs5_1.ts, 13, 3), Decl(es6ImportNamedImportInEs5_1.ts, 14, 3), Decl(es6ImportNamedImportInEs5_1.ts, 16, 3), Decl(es6ImportNamedImportInEs5_1.ts, 17, 3)) +>b : number, Symbol(b, Decl(es6ImportNamedImportInEs5_1.ts, 3, 8)) import { x, a as y } from "es6ImportNamedImportInEs5_0"; ->x : number ->a : number ->y : number +>x : number, Symbol(x, Decl(es6ImportNamedImportInEs5_1.ts, 5, 8)) +>a : number, Symbol(y, Decl(es6ImportNamedImportInEs5_1.ts, 5, 11)) +>y : number, Symbol(y, Decl(es6ImportNamedImportInEs5_1.ts, 5, 11)) var xxxx = x; ->xxxx : number ->x : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3), Decl(es6ImportNamedImportInEs5_1.ts, 11, 3), Decl(es6ImportNamedImportInEs5_1.ts, 13, 3), Decl(es6ImportNamedImportInEs5_1.ts, 14, 3), Decl(es6ImportNamedImportInEs5_1.ts, 16, 3), Decl(es6ImportNamedImportInEs5_1.ts, 17, 3)) +>x : number, Symbol(x, Decl(es6ImportNamedImportInEs5_1.ts, 5, 8)) var xxxx = y; ->xxxx : number ->y : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3), Decl(es6ImportNamedImportInEs5_1.ts, 11, 3), Decl(es6ImportNamedImportInEs5_1.ts, 13, 3), Decl(es6ImportNamedImportInEs5_1.ts, 14, 3), Decl(es6ImportNamedImportInEs5_1.ts, 16, 3), Decl(es6ImportNamedImportInEs5_1.ts, 17, 3)) +>y : number, Symbol(y, Decl(es6ImportNamedImportInEs5_1.ts, 5, 11)) import { x as z, } from "es6ImportNamedImportInEs5_0"; ->x : number ->z : number +>x : number, Symbol(z, Decl(es6ImportNamedImportInEs5_1.ts, 8, 8)) +>z : number, Symbol(z, Decl(es6ImportNamedImportInEs5_1.ts, 8, 8)) var xxxx = z; ->xxxx : number ->z : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3), Decl(es6ImportNamedImportInEs5_1.ts, 11, 3), Decl(es6ImportNamedImportInEs5_1.ts, 13, 3), Decl(es6ImportNamedImportInEs5_1.ts, 14, 3), Decl(es6ImportNamedImportInEs5_1.ts, 16, 3), Decl(es6ImportNamedImportInEs5_1.ts, 17, 3)) +>z : number, Symbol(z, Decl(es6ImportNamedImportInEs5_1.ts, 8, 8)) import { m, } from "es6ImportNamedImportInEs5_0"; ->m : number +>m : number, Symbol(m, Decl(es6ImportNamedImportInEs5_1.ts, 10, 8)) var xxxx = m; ->xxxx : number ->m : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3), Decl(es6ImportNamedImportInEs5_1.ts, 11, 3), Decl(es6ImportNamedImportInEs5_1.ts, 13, 3), Decl(es6ImportNamedImportInEs5_1.ts, 14, 3), Decl(es6ImportNamedImportInEs5_1.ts, 16, 3), Decl(es6ImportNamedImportInEs5_1.ts, 17, 3)) +>m : number, Symbol(m, Decl(es6ImportNamedImportInEs5_1.ts, 10, 8)) import { a1, x1 } from "es6ImportNamedImportInEs5_0"; ->a1 : number ->x1 : number +>a1 : number, Symbol(a1, Decl(es6ImportNamedImportInEs5_1.ts, 12, 8)) +>x1 : number, Symbol(x1, Decl(es6ImportNamedImportInEs5_1.ts, 12, 12)) var xxxx = a1; ->xxxx : number ->a1 : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3), Decl(es6ImportNamedImportInEs5_1.ts, 11, 3), Decl(es6ImportNamedImportInEs5_1.ts, 13, 3), Decl(es6ImportNamedImportInEs5_1.ts, 14, 3), Decl(es6ImportNamedImportInEs5_1.ts, 16, 3), Decl(es6ImportNamedImportInEs5_1.ts, 17, 3)) +>a1 : number, Symbol(a1, Decl(es6ImportNamedImportInEs5_1.ts, 12, 8)) var xxxx = x1; ->xxxx : number ->x1 : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3), Decl(es6ImportNamedImportInEs5_1.ts, 11, 3), Decl(es6ImportNamedImportInEs5_1.ts, 13, 3), Decl(es6ImportNamedImportInEs5_1.ts, 14, 3), Decl(es6ImportNamedImportInEs5_1.ts, 16, 3), Decl(es6ImportNamedImportInEs5_1.ts, 17, 3)) +>x1 : number, Symbol(x1, Decl(es6ImportNamedImportInEs5_1.ts, 12, 12)) import { a1 as a11, x1 as x11 } from "es6ImportNamedImportInEs5_0"; ->a1 : number ->a11 : number ->x1 : number ->x11 : number +>a1 : number, Symbol(a11, Decl(es6ImportNamedImportInEs5_1.ts, 15, 8)) +>a11 : number, Symbol(a11, Decl(es6ImportNamedImportInEs5_1.ts, 15, 8)) +>x1 : number, Symbol(x11, Decl(es6ImportNamedImportInEs5_1.ts, 15, 19)) +>x11 : number, Symbol(x11, Decl(es6ImportNamedImportInEs5_1.ts, 15, 19)) var xxxx = a11; ->xxxx : number ->a11 : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3), Decl(es6ImportNamedImportInEs5_1.ts, 11, 3), Decl(es6ImportNamedImportInEs5_1.ts, 13, 3), Decl(es6ImportNamedImportInEs5_1.ts, 14, 3), Decl(es6ImportNamedImportInEs5_1.ts, 16, 3), Decl(es6ImportNamedImportInEs5_1.ts, 17, 3)) +>a11 : number, Symbol(a11, Decl(es6ImportNamedImportInEs5_1.ts, 15, 8)) var xxxx = x11; ->xxxx : number ->x11 : number +>xxxx : number, Symbol(xxxx, Decl(es6ImportNamedImportInEs5_1.ts, 2, 3), Decl(es6ImportNamedImportInEs5_1.ts, 4, 3), Decl(es6ImportNamedImportInEs5_1.ts, 6, 3), Decl(es6ImportNamedImportInEs5_1.ts, 7, 3), Decl(es6ImportNamedImportInEs5_1.ts, 9, 3), Decl(es6ImportNamedImportInEs5_1.ts, 11, 3), Decl(es6ImportNamedImportInEs5_1.ts, 13, 3), Decl(es6ImportNamedImportInEs5_1.ts, 14, 3), Decl(es6ImportNamedImportInEs5_1.ts, 16, 3), Decl(es6ImportNamedImportInEs5_1.ts, 17, 3)) +>x11 : number, Symbol(x11, Decl(es6ImportNamedImportInEs5_1.ts, 15, 19)) import { z1 } from "es6ImportNamedImportInEs5_0"; ->z1 : number +>z1 : number, Symbol(z1, Decl(es6ImportNamedImportInEs5_1.ts, 18, 8)) var z111 = z1; ->z111 : number ->z1 : number +>z111 : number, Symbol(z111, Decl(es6ImportNamedImportInEs5_1.ts, 19, 3)) +>z1 : number, Symbol(z1, Decl(es6ImportNamedImportInEs5_1.ts, 18, 8)) import { z2 as z3 } from "es6ImportNamedImportInEs5_0"; ->z2 : number ->z3 : number +>z2 : number, Symbol(z3, Decl(es6ImportNamedImportInEs5_1.ts, 20, 8)) +>z3 : number, Symbol(z3, Decl(es6ImportNamedImportInEs5_1.ts, 20, 8)) var z2 = z3; // z2 shouldn't give redeclare error ->z2 : number ->z3 : number +>z2 : number, Symbol(z2, Decl(es6ImportNamedImportInEs5_1.ts, 21, 3)) +>z3 : number, Symbol(z3, Decl(es6ImportNamedImportInEs5_1.ts, 20, 8)) // These are elided import { aaaa } from "es6ImportNamedImportInEs5_0"; ->aaaa : number +>aaaa : number, Symbol(aaaa, Decl(es6ImportNamedImportInEs5_1.ts, 24, 8)) // These are elided import { aaaa as bbbb } from "es6ImportNamedImportInEs5_0"; ->aaaa : number ->bbbb : number +>aaaa : number, Symbol(bbbb, Decl(es6ImportNamedImportInEs5_1.ts, 26, 8)) +>bbbb : number, Symbol(bbbb, Decl(es6ImportNamedImportInEs5_1.ts, 26, 8)) diff --git a/tests/baselines/reference/es6ImportNamedImportInIndirectExportAssignment.types b/tests/baselines/reference/es6ImportNamedImportInIndirectExportAssignment.types index 36792ece82e..014acefb72c 100644 --- a/tests/baselines/reference/es6ImportNamedImportInIndirectExportAssignment.types +++ b/tests/baselines/reference/es6ImportNamedImportInIndirectExportAssignment.types @@ -1,21 +1,21 @@ === tests/cases/compiler/es6ImportNamedImportInIndirectExportAssignment_0.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(es6ImportNamedImportInIndirectExportAssignment_0.ts, 0, 0)) export class c { ->c : c +>c : c, Symbol(c, Decl(es6ImportNamedImportInIndirectExportAssignment_0.ts, 1, 17)) } } === tests/cases/compiler/es6ImportNamedImportInIndirectExportAssignment_1.ts === import { a } from "es6ImportNamedImportInIndirectExportAssignment_0"; ->a : typeof a +>a : typeof a, Symbol(a, Decl(es6ImportNamedImportInIndirectExportAssignment_1.ts, 0, 8)) import x = a; ->x : typeof a ->a : typeof a +>x : typeof a, Symbol(x, Decl(es6ImportNamedImportInIndirectExportAssignment_1.ts, 0, 69)) +>a : typeof a, Symbol(a, Decl(es6ImportNamedImportInIndirectExportAssignment_0.ts, 0, 0)) export = x; ->x : typeof a +>x : typeof a, Symbol(x, Decl(es6ImportNamedImportInIndirectExportAssignment_1.ts, 0, 69)) diff --git a/tests/baselines/reference/es6ImportNamedImportWithTypesAndValues.types b/tests/baselines/reference/es6ImportNamedImportWithTypesAndValues.types index 62917e5ff36..7d0b80a2e7f 100644 --- a/tests/baselines/reference/es6ImportNamedImportWithTypesAndValues.types +++ b/tests/baselines/reference/es6ImportNamedImportWithTypesAndValues.types @@ -1,44 +1,46 @@ === tests/cases/compiler/server.ts === export interface I { ->I : I +>I : I, Symbol(I, Decl(server.ts, 0, 0)) prop: string; ->prop : string +>prop : string, Symbol(prop, Decl(server.ts, 1, 20)) } export interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(server.ts, 3, 1)) prop2: string; ->prop2 : string +>prop2 : string, Symbol(prop2, Decl(server.ts, 4, 21)) } export class C implements I { ->C : C ->I : I +>C : C, Symbol(C, Decl(server.ts, 6, 1)) +>I : I, Symbol(I, Decl(server.ts, 0, 0)) prop = "hello"; ->prop : string +>prop : string, Symbol(prop, Decl(server.ts, 7, 29)) +>"hello" : string } export class C2 implements I2 { ->C2 : C2 ->I2 : I2 +>C2 : C2, Symbol(C2, Decl(server.ts, 9, 1)) +>I2 : I2, Symbol(I2, Decl(server.ts, 3, 1)) prop2 = "world"; ->prop2 : string +>prop2 : string, Symbol(prop2, Decl(server.ts, 10, 31)) +>"world" : string } === tests/cases/compiler/client.ts === import { C, I, C2 } from "server"; // Shouldnt emit I and C2 into the js file and emit C and I in .d.ts file ->C : typeof C ->I : unknown ->C2 : typeof C2 +>C : typeof C, Symbol(C, Decl(client.ts, 0, 8)) +>I : any, Symbol(I, Decl(client.ts, 0, 11)) +>C2 : typeof C2, Symbol(C2, Decl(client.ts, 0, 14)) export type cValInterface = I; ->cValInterface : I ->I : I +>cValInterface : I, Symbol(cValInterface, Decl(client.ts, 0, 34)) +>I : I, Symbol(I, Decl(client.ts, 0, 11)) export var cVal = new C(); ->cVal : C +>cVal : C, Symbol(cVal, Decl(client.ts, 2, 10)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(client.ts, 0, 8)) diff --git a/tests/baselines/reference/es6ImportWithoutFromClause.types b/tests/baselines/reference/es6ImportWithoutFromClause.types index 3cc5067891a..e647ff81101 100644 --- a/tests/baselines/reference/es6ImportWithoutFromClause.types +++ b/tests/baselines/reference/es6ImportWithoutFromClause.types @@ -1,7 +1,8 @@ === tests/cases/compiler/es6ImportWithoutFromClause_0.ts === export var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ImportWithoutFromClause_0.ts, 1, 10)) +>10 : number === tests/cases/compiler/es6ImportWithoutFromClause_1.ts === import "es6ImportWithoutFromClause_0"; diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseAmd.types b/tests/baselines/reference/es6ImportWithoutFromClauseAmd.types index c3d09388916..9ec0936f6ba 100644 --- a/tests/baselines/reference/es6ImportWithoutFromClauseAmd.types +++ b/tests/baselines/reference/es6ImportWithoutFromClauseAmd.types @@ -1,18 +1,22 @@ === tests/cases/compiler/es6ImportWithoutFromClauseAmd_0.ts === export var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ImportWithoutFromClauseAmd_0.ts, 1, 10)) +>10 : number === tests/cases/compiler/es6ImportWithoutFromClauseAmd_1.ts === export var b = 10; ->b : number +>b : number, Symbol(b, Decl(es6ImportWithoutFromClauseAmd_1.ts, 0, 10)) +>10 : number === tests/cases/compiler/es6ImportWithoutFromClauseAmd_2.ts === import "es6ImportWithoutFromClauseAmd_0"; import "es6ImportWithoutFromClauseAmd_2"; var _a = 10; ->_a : number +>_a : number, Symbol(_a, Decl(es6ImportWithoutFromClauseAmd_2.ts, 2, 3)) +>10 : number var _b = 10; ->_b : number +>_b : number, Symbol(_b, Decl(es6ImportWithoutFromClauseAmd_2.ts, 3, 3)) +>10 : number diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseInEs5.types b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5.types index 3d674f9c22c..46a70b1e3fe 100644 --- a/tests/baselines/reference/es6ImportWithoutFromClauseInEs5.types +++ b/tests/baselines/reference/es6ImportWithoutFromClauseInEs5.types @@ -1,7 +1,8 @@ === tests/cases/compiler/es6ImportWithoutFromClauseInEs5_0.ts === export var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ImportWithoutFromClauseInEs5_0.ts, 1, 10)) +>10 : number === tests/cases/compiler/es6ImportWithoutFromClauseInEs5_1.ts === import "es6ImportWithoutFromClauseInEs5_0"; diff --git a/tests/baselines/reference/es6ImportWithoutFromClauseNonInstantiatedModule.types b/tests/baselines/reference/es6ImportWithoutFromClauseNonInstantiatedModule.types index 2be3f67f1e9..286c84886ee 100644 --- a/tests/baselines/reference/es6ImportWithoutFromClauseNonInstantiatedModule.types +++ b/tests/baselines/reference/es6ImportWithoutFromClauseNonInstantiatedModule.types @@ -1,7 +1,7 @@ === tests/cases/compiler/es6ImportWithoutFromClauseNonInstantiatedModule_0.ts === export interface i { ->i : i +>i : i, Symbol(i, Decl(es6ImportWithoutFromClauseNonInstantiatedModule_0.ts, 0, 0)) } === tests/cases/compiler/es6ImportWithoutFromClauseNonInstantiatedModule_1.ts === diff --git a/tests/baselines/reference/es6Module.types b/tests/baselines/reference/es6Module.types index 93910200215..cbb3bea844e 100644 --- a/tests/baselines/reference/es6Module.types +++ b/tests/baselines/reference/es6Module.types @@ -1,14 +1,15 @@ === tests/cases/compiler/es6Module.ts === export class A ->A : A +>A : A, Symbol(A, Decl(es6Module.ts, 0, 0)) { constructor () { } public B() ->B : () => number +>B : () => number, Symbol(B, Decl(es6Module.ts, 4, 5)) { return 42; +>42 : number } } diff --git a/tests/baselines/reference/es6ModuleClassDeclaration.types b/tests/baselines/reference/es6ModuleClassDeclaration.types index 09d50c4e542..442b5031b48 100644 --- a/tests/baselines/reference/es6ModuleClassDeclaration.types +++ b/tests/baselines/reference/es6ModuleClassDeclaration.types @@ -1,233 +1,257 @@ === tests/cases/compiler/es6ModuleClassDeclaration.ts === export class c { ->c : c +>c : c, Symbol(c, Decl(es6ModuleClassDeclaration.ts, 0, 0)) constructor() { } private x = 10; ->x : number +>x : number, Symbol(x, Decl(es6ModuleClassDeclaration.ts, 2, 5)) +>10 : number public y = 30; ->y : number +>y : number, Symbol(y, Decl(es6ModuleClassDeclaration.ts, 3, 19)) +>30 : number static k = 20; ->k : number +>k : number, Symbol(c.k, Decl(es6ModuleClassDeclaration.ts, 4, 18)) +>20 : number private static l = 30; ->l : number +>l : number, Symbol(c.l, Decl(es6ModuleClassDeclaration.ts, 5, 18)) +>30 : number private method1() { ->method1 : () => void +>method1 : () => void, Symbol(method1, Decl(es6ModuleClassDeclaration.ts, 6, 26)) } public method2() { ->method2 : () => void +>method2 : () => void, Symbol(method2, Decl(es6ModuleClassDeclaration.ts, 8, 5)) } static method3() { ->method3 : () => void +>method3 : () => void, Symbol(c.method3, Decl(es6ModuleClassDeclaration.ts, 10, 5)) } private static method4() { ->method4 : () => void +>method4 : () => void, Symbol(c.method4, Decl(es6ModuleClassDeclaration.ts, 12, 5)) } } class c2 { ->c2 : c2 +>c2 : c2, Symbol(c2, Decl(es6ModuleClassDeclaration.ts, 15, 1)) constructor() { } private x = 10; ->x : number +>x : number, Symbol(x, Decl(es6ModuleClassDeclaration.ts, 18, 5)) +>10 : number public y = 30; ->y : number +>y : number, Symbol(y, Decl(es6ModuleClassDeclaration.ts, 19, 19)) +>30 : number static k = 20; ->k : number +>k : number, Symbol(c2.k, Decl(es6ModuleClassDeclaration.ts, 20, 18)) +>20 : number private static l = 30; ->l : number +>l : number, Symbol(c2.l, Decl(es6ModuleClassDeclaration.ts, 21, 18)) +>30 : number private method1() { ->method1 : () => void +>method1 : () => void, Symbol(method1, Decl(es6ModuleClassDeclaration.ts, 22, 26)) } public method2() { ->method2 : () => void +>method2 : () => void, Symbol(method2, Decl(es6ModuleClassDeclaration.ts, 24, 5)) } static method3() { ->method3 : () => void +>method3 : () => void, Symbol(c2.method3, Decl(es6ModuleClassDeclaration.ts, 26, 5)) } private static method4() { ->method4 : () => void +>method4 : () => void, Symbol(c2.method4, Decl(es6ModuleClassDeclaration.ts, 28, 5)) } } new c(); >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(es6ModuleClassDeclaration.ts, 0, 0)) new c2(); >new c2() : c2 ->c2 : typeof c2 +>c2 : typeof c2, Symbol(c2, Decl(es6ModuleClassDeclaration.ts, 15, 1)) export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleClassDeclaration.ts, 33, 9)) export class c3 { ->c3 : c3 +>c3 : c3, Symbol(c3, Decl(es6ModuleClassDeclaration.ts, 35, 18)) constructor() { } private x = 10; ->x : number +>x : number, Symbol(x, Decl(es6ModuleClassDeclaration.ts, 38, 9)) +>10 : number public y = 30; ->y : number +>y : number, Symbol(y, Decl(es6ModuleClassDeclaration.ts, 39, 23)) +>30 : number static k = 20; ->k : number +>k : number, Symbol(c3.k, Decl(es6ModuleClassDeclaration.ts, 40, 22)) +>20 : number private static l = 30; ->l : number +>l : number, Symbol(c3.l, Decl(es6ModuleClassDeclaration.ts, 41, 22)) +>30 : number private method1() { ->method1 : () => void +>method1 : () => void, Symbol(method1, Decl(es6ModuleClassDeclaration.ts, 42, 30)) } public method2() { ->method2 : () => void +>method2 : () => void, Symbol(method2, Decl(es6ModuleClassDeclaration.ts, 44, 9)) } static method3() { ->method3 : () => void +>method3 : () => void, Symbol(c3.method3, Decl(es6ModuleClassDeclaration.ts, 46, 9)) } private static method4() { ->method4 : () => void +>method4 : () => void, Symbol(c3.method4, Decl(es6ModuleClassDeclaration.ts, 48, 9)) } } class c4 { ->c4 : c4 +>c4 : c4, Symbol(c4, Decl(es6ModuleClassDeclaration.ts, 51, 5)) constructor() { } private x = 10; ->x : number +>x : number, Symbol(x, Decl(es6ModuleClassDeclaration.ts, 54, 9)) +>10 : number public y = 30; ->y : number +>y : number, Symbol(y, Decl(es6ModuleClassDeclaration.ts, 55, 23)) +>30 : number static k = 20; ->k : number +>k : number, Symbol(c4.k, Decl(es6ModuleClassDeclaration.ts, 56, 22)) +>20 : number private static l = 30; ->l : number +>l : number, Symbol(c4.l, Decl(es6ModuleClassDeclaration.ts, 57, 22)) +>30 : number private method1() { ->method1 : () => void +>method1 : () => void, Symbol(method1, Decl(es6ModuleClassDeclaration.ts, 58, 30)) } public method2() { ->method2 : () => void +>method2 : () => void, Symbol(method2, Decl(es6ModuleClassDeclaration.ts, 60, 9)) } static method3() { ->method3 : () => void +>method3 : () => void, Symbol(c4.method3, Decl(es6ModuleClassDeclaration.ts, 62, 9)) } private static method4() { ->method4 : () => void +>method4 : () => void, Symbol(c4.method4, Decl(es6ModuleClassDeclaration.ts, 64, 9)) } } new c(); >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(es6ModuleClassDeclaration.ts, 0, 0)) new c2(); >new c2() : c2 ->c2 : typeof c2 +>c2 : typeof c2, Symbol(c2, Decl(es6ModuleClassDeclaration.ts, 15, 1)) new c3(); >new c3() : c3 ->c3 : typeof c3 +>c3 : typeof c3, Symbol(c3, Decl(es6ModuleClassDeclaration.ts, 35, 18)) new c4(); >new c4() : c4 ->c4 : typeof c4 +>c4 : typeof c4, Symbol(c4, Decl(es6ModuleClassDeclaration.ts, 51, 5)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(es6ModuleClassDeclaration.ts, 72, 1)) export class c3 { ->c3 : c3 +>c3 : c3, Symbol(c3, Decl(es6ModuleClassDeclaration.ts, 73, 11)) constructor() { } private x = 10; ->x : number +>x : number, Symbol(x, Decl(es6ModuleClassDeclaration.ts, 76, 9)) +>10 : number public y = 30; ->y : number +>y : number, Symbol(y, Decl(es6ModuleClassDeclaration.ts, 77, 23)) +>30 : number static k = 20; ->k : number +>k : number, Symbol(c3.k, Decl(es6ModuleClassDeclaration.ts, 78, 22)) +>20 : number private static l = 30; ->l : number +>l : number, Symbol(c3.l, Decl(es6ModuleClassDeclaration.ts, 79, 22)) +>30 : number private method1() { ->method1 : () => void +>method1 : () => void, Symbol(method1, Decl(es6ModuleClassDeclaration.ts, 80, 30)) } public method2() { ->method2 : () => void +>method2 : () => void, Symbol(method2, Decl(es6ModuleClassDeclaration.ts, 82, 9)) } static method3() { ->method3 : () => void +>method3 : () => void, Symbol(c3.method3, Decl(es6ModuleClassDeclaration.ts, 84, 9)) } private static method4() { ->method4 : () => void +>method4 : () => void, Symbol(c3.method4, Decl(es6ModuleClassDeclaration.ts, 86, 9)) } } class c4 { ->c4 : c4 +>c4 : c4, Symbol(c4, Decl(es6ModuleClassDeclaration.ts, 89, 5)) constructor() { } private x = 10; ->x : number +>x : number, Symbol(x, Decl(es6ModuleClassDeclaration.ts, 92, 9)) +>10 : number public y = 30; ->y : number +>y : number, Symbol(y, Decl(es6ModuleClassDeclaration.ts, 93, 23)) +>30 : number static k = 20; ->k : number +>k : number, Symbol(c4.k, Decl(es6ModuleClassDeclaration.ts, 94, 22)) +>20 : number private static l = 30; ->l : number +>l : number, Symbol(c4.l, Decl(es6ModuleClassDeclaration.ts, 95, 22)) +>30 : number private method1() { ->method1 : () => void +>method1 : () => void, Symbol(method1, Decl(es6ModuleClassDeclaration.ts, 96, 30)) } public method2() { ->method2 : () => void +>method2 : () => void, Symbol(method2, Decl(es6ModuleClassDeclaration.ts, 98, 9)) } static method3() { ->method3 : () => void +>method3 : () => void, Symbol(c4.method3, Decl(es6ModuleClassDeclaration.ts, 100, 9)) } private static method4() { ->method4 : () => void +>method4 : () => void, Symbol(c4.method4, Decl(es6ModuleClassDeclaration.ts, 102, 9)) } } new c(); >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(es6ModuleClassDeclaration.ts, 0, 0)) new c2(); >new c2() : c2 ->c2 : typeof c2 +>c2 : typeof c2, Symbol(c2, Decl(es6ModuleClassDeclaration.ts, 15, 1)) new c3(); >new c3() : c3 ->c3 : typeof c3 +>c3 : typeof c3, Symbol(c3, Decl(es6ModuleClassDeclaration.ts, 73, 11)) new c4(); >new c4() : c4 ->c4 : typeof c4 +>c4 : typeof c4, Symbol(c4, Decl(es6ModuleClassDeclaration.ts, 89, 5)) new m1.c3(); >new m1.c3() : m1.c3 ->m1.c3 : typeof m1.c3 ->m1 : typeof m1 ->c3 : typeof m1.c3 +>m1.c3 : typeof m1.c3, Symbol(m1.c3, Decl(es6ModuleClassDeclaration.ts, 35, 18)) +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleClassDeclaration.ts, 33, 9)) +>c3 : typeof m1.c3, Symbol(m1.c3, Decl(es6ModuleClassDeclaration.ts, 35, 18)) } diff --git a/tests/baselines/reference/es6ModuleConst.types b/tests/baselines/reference/es6ModuleConst.types index cceb74a5e1e..f9fadeaba36 100644 --- a/tests/baselines/reference/es6ModuleConst.types +++ b/tests/baselines/reference/es6ModuleConst.types @@ -1,70 +1,71 @@ === tests/cases/compiler/es6ModuleConst.ts === export const a = "hello"; ->a : string +>a : string, Symbol(a, Decl(es6ModuleConst.ts, 0, 12)) +>"hello" : string export const x: string = a, y = x; ->x : string ->a : string ->y : string ->x : string +>x : string, Symbol(x, Decl(es6ModuleConst.ts, 1, 12)) +>a : string, Symbol(a, Decl(es6ModuleConst.ts, 0, 12)) +>y : string, Symbol(y, Decl(es6ModuleConst.ts, 1, 27)) +>x : string, Symbol(x, Decl(es6ModuleConst.ts, 1, 12)) const b = y; ->b : string ->y : string +>b : string, Symbol(b, Decl(es6ModuleConst.ts, 2, 5)) +>y : string, Symbol(y, Decl(es6ModuleConst.ts, 1, 27)) const c: string = b, d = c; ->c : string ->b : string ->d : string ->c : string +>c : string, Symbol(c, Decl(es6ModuleConst.ts, 3, 5)) +>b : string, Symbol(b, Decl(es6ModuleConst.ts, 2, 5)) +>d : string, Symbol(d, Decl(es6ModuleConst.ts, 3, 20)) +>c : string, Symbol(c, Decl(es6ModuleConst.ts, 3, 5)) export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleConst.ts, 3, 27)) export const k = a; ->k : string ->a : string +>k : string, Symbol(k, Decl(es6ModuleConst.ts, 5, 16)) +>a : string, Symbol(a, Decl(es6ModuleConst.ts, 0, 12)) export const l: string = b, m = k; ->l : string ->b : string ->m : string ->k : string +>l : string, Symbol(l, Decl(es6ModuleConst.ts, 6, 16)) +>b : string, Symbol(b, Decl(es6ModuleConst.ts, 2, 5)) +>m : string, Symbol(m, Decl(es6ModuleConst.ts, 6, 31)) +>k : string, Symbol(k, Decl(es6ModuleConst.ts, 5, 16)) const n = m1.k; ->n : string ->m1.k : string ->m1 : typeof m1 ->k : string +>n : string, Symbol(n, Decl(es6ModuleConst.ts, 7, 9)) +>m1.k : string, Symbol(k, Decl(es6ModuleConst.ts, 5, 16)) +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleConst.ts, 3, 27)) +>k : string, Symbol(k, Decl(es6ModuleConst.ts, 5, 16)) const o: string = n, p = k; ->o : string ->n : string ->p : string ->k : string +>o : string, Symbol(o, Decl(es6ModuleConst.ts, 8, 9)) +>n : string, Symbol(n, Decl(es6ModuleConst.ts, 7, 9)) +>p : string, Symbol(p, Decl(es6ModuleConst.ts, 8, 24)) +>k : string, Symbol(k, Decl(es6ModuleConst.ts, 5, 16)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(es6ModuleConst.ts, 9, 1)) export const k = a; ->k : string ->a : string +>k : string, Symbol(k, Decl(es6ModuleConst.ts, 11, 16)) +>a : string, Symbol(a, Decl(es6ModuleConst.ts, 0, 12)) export const l: string = b, m = k; ->l : string ->b : string ->m : string ->k : string +>l : string, Symbol(l, Decl(es6ModuleConst.ts, 12, 16)) +>b : string, Symbol(b, Decl(es6ModuleConst.ts, 2, 5)) +>m : string, Symbol(m, Decl(es6ModuleConst.ts, 12, 31)) +>k : string, Symbol(k, Decl(es6ModuleConst.ts, 11, 16)) const n = m1.k; ->n : string ->m1.k : string ->m1 : typeof m1 ->k : string +>n : string, Symbol(n, Decl(es6ModuleConst.ts, 13, 9)) +>m1.k : string, Symbol(m1.k, Decl(es6ModuleConst.ts, 5, 16)) +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleConst.ts, 3, 27)) +>k : string, Symbol(m1.k, Decl(es6ModuleConst.ts, 5, 16)) const o: string = n, p = k; ->o : string ->n : string ->p : string ->k : string +>o : string, Symbol(o, Decl(es6ModuleConst.ts, 14, 9)) +>n : string, Symbol(n, Decl(es6ModuleConst.ts, 13, 9)) +>p : string, Symbol(p, Decl(es6ModuleConst.ts, 14, 24)) +>k : string, Symbol(k, Decl(es6ModuleConst.ts, 11, 16)) } diff --git a/tests/baselines/reference/es6ModuleConstEnumDeclaration.types b/tests/baselines/reference/es6ModuleConstEnumDeclaration.types index fae819f93b0..728e4e61efc 100644 --- a/tests/baselines/reference/es6ModuleConstEnumDeclaration.types +++ b/tests/baselines/reference/es6ModuleConstEnumDeclaration.types @@ -1,147 +1,147 @@ === tests/cases/compiler/es6ModuleConstEnumDeclaration.ts === export const enum e1 { ->e1 : e1 +>e1 : e1, Symbol(e1, Decl(es6ModuleConstEnumDeclaration.ts, 0, 0)) a, ->a : e1 +>a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration.ts, 0, 22)) b, ->b : e1 +>b : e1, Symbol(e1.b, Decl(es6ModuleConstEnumDeclaration.ts, 1, 6)) c ->c : e1 +>c : e1, Symbol(e1.c, Decl(es6ModuleConstEnumDeclaration.ts, 2, 6)) } const enum e2 { ->e2 : e2 +>e2 : e2, Symbol(e2, Decl(es6ModuleConstEnumDeclaration.ts, 4, 1)) x, ->x : e2 +>x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration.ts, 5, 15)) y, ->y : e2 +>y : e2, Symbol(e2.y, Decl(es6ModuleConstEnumDeclaration.ts, 6, 6)) z ->z : e2 +>z : e2, Symbol(e2.z, Decl(es6ModuleConstEnumDeclaration.ts, 7, 6)) } var x = e1.a; ->x : e1 ->e1.a : e1 ->e1 : typeof e1 ->a : e1 +>x : e1, Symbol(x, Decl(es6ModuleConstEnumDeclaration.ts, 10, 3)) +>e1.a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration.ts, 0, 22)) +>e1 : typeof e1, Symbol(e1, Decl(es6ModuleConstEnumDeclaration.ts, 0, 0)) +>a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration.ts, 0, 22)) var y = e2.x; ->y : e2 ->e2.x : e2 ->e2 : typeof e2 ->x : e2 +>y : e2, Symbol(y, Decl(es6ModuleConstEnumDeclaration.ts, 11, 3)) +>e2.x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration.ts, 5, 15)) +>e2 : typeof e2, Symbol(e2, Decl(es6ModuleConstEnumDeclaration.ts, 4, 1)) +>x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration.ts, 5, 15)) export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleConstEnumDeclaration.ts, 11, 13)) export const enum e3 { ->e3 : e3 +>e3 : e3, Symbol(e3, Decl(es6ModuleConstEnumDeclaration.ts, 12, 18)) a, ->a : e3 +>a : e3, Symbol(e3.a, Decl(es6ModuleConstEnumDeclaration.ts, 13, 26)) b, ->b : e3 +>b : e3, Symbol(e3.b, Decl(es6ModuleConstEnumDeclaration.ts, 14, 10)) c ->c : e3 +>c : e3, Symbol(e3.c, Decl(es6ModuleConstEnumDeclaration.ts, 15, 10)) } const enum e4 { ->e4 : e4 +>e4 : e4, Symbol(e4, Decl(es6ModuleConstEnumDeclaration.ts, 17, 5)) x, ->x : e4 +>x : e4, Symbol(e4.x, Decl(es6ModuleConstEnumDeclaration.ts, 18, 19)) y, ->y : e4 +>y : e4, Symbol(e4.y, Decl(es6ModuleConstEnumDeclaration.ts, 19, 10)) z ->z : e4 +>z : e4, Symbol(e4.z, Decl(es6ModuleConstEnumDeclaration.ts, 20, 10)) } var x1 = e1.a; ->x1 : e1 ->e1.a : e1 ->e1 : typeof e1 ->a : e1 +>x1 : e1, Symbol(x1, Decl(es6ModuleConstEnumDeclaration.ts, 23, 7)) +>e1.a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration.ts, 0, 22)) +>e1 : typeof e1, Symbol(e1, Decl(es6ModuleConstEnumDeclaration.ts, 0, 0)) +>a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration.ts, 0, 22)) var y1 = e2.x; ->y1 : e2 ->e2.x : e2 ->e2 : typeof e2 ->x : e2 +>y1 : e2, Symbol(y1, Decl(es6ModuleConstEnumDeclaration.ts, 24, 7)) +>e2.x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration.ts, 5, 15)) +>e2 : typeof e2, Symbol(e2, Decl(es6ModuleConstEnumDeclaration.ts, 4, 1)) +>x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration.ts, 5, 15)) var x2 = e3.a; ->x2 : e3 ->e3.a : e3 ->e3 : typeof e3 ->a : e3 +>x2 : e3, Symbol(x2, Decl(es6ModuleConstEnumDeclaration.ts, 25, 7)) +>e3.a : e3, Symbol(e3.a, Decl(es6ModuleConstEnumDeclaration.ts, 13, 26)) +>e3 : typeof e3, Symbol(e3, Decl(es6ModuleConstEnumDeclaration.ts, 12, 18)) +>a : e3, Symbol(e3.a, Decl(es6ModuleConstEnumDeclaration.ts, 13, 26)) var y2 = e4.x; ->y2 : e4 ->e4.x : e4 ->e4 : typeof e4 ->x : e4 +>y2 : e4, Symbol(y2, Decl(es6ModuleConstEnumDeclaration.ts, 26, 7)) +>e4.x : e4, Symbol(e4.x, Decl(es6ModuleConstEnumDeclaration.ts, 18, 19)) +>e4 : typeof e4, Symbol(e4, Decl(es6ModuleConstEnumDeclaration.ts, 17, 5)) +>x : e4, Symbol(e4.x, Decl(es6ModuleConstEnumDeclaration.ts, 18, 19)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(es6ModuleConstEnumDeclaration.ts, 27, 1)) export const enum e5 { ->e5 : e5 +>e5 : e5, Symbol(e5, Decl(es6ModuleConstEnumDeclaration.ts, 28, 11)) a, ->a : e5 +>a : e5, Symbol(e5.a, Decl(es6ModuleConstEnumDeclaration.ts, 29, 26)) b, ->b : e5 +>b : e5, Symbol(e5.b, Decl(es6ModuleConstEnumDeclaration.ts, 30, 10)) c ->c : e5 +>c : e5, Symbol(e5.c, Decl(es6ModuleConstEnumDeclaration.ts, 31, 10)) } const enum e6 { ->e6 : e6 +>e6 : e6, Symbol(e6, Decl(es6ModuleConstEnumDeclaration.ts, 33, 5)) x, ->x : e6 +>x : e6, Symbol(e6.x, Decl(es6ModuleConstEnumDeclaration.ts, 34, 19)) y, ->y : e6 +>y : e6, Symbol(e6.y, Decl(es6ModuleConstEnumDeclaration.ts, 35, 10)) z ->z : e6 +>z : e6, Symbol(e6.z, Decl(es6ModuleConstEnumDeclaration.ts, 36, 10)) } var x1 = e1.a; ->x1 : e1 ->e1.a : e1 ->e1 : typeof e1 ->a : e1 +>x1 : e1, Symbol(x1, Decl(es6ModuleConstEnumDeclaration.ts, 39, 7)) +>e1.a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration.ts, 0, 22)) +>e1 : typeof e1, Symbol(e1, Decl(es6ModuleConstEnumDeclaration.ts, 0, 0)) +>a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration.ts, 0, 22)) var y1 = e2.x; ->y1 : e2 ->e2.x : e2 ->e2 : typeof e2 ->x : e2 +>y1 : e2, Symbol(y1, Decl(es6ModuleConstEnumDeclaration.ts, 40, 7)) +>e2.x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration.ts, 5, 15)) +>e2 : typeof e2, Symbol(e2, Decl(es6ModuleConstEnumDeclaration.ts, 4, 1)) +>x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration.ts, 5, 15)) var x2 = e5.a; ->x2 : e5 ->e5.a : e5 ->e5 : typeof e5 ->a : e5 +>x2 : e5, Symbol(x2, Decl(es6ModuleConstEnumDeclaration.ts, 41, 7)) +>e5.a : e5, Symbol(e5.a, Decl(es6ModuleConstEnumDeclaration.ts, 29, 26)) +>e5 : typeof e5, Symbol(e5, Decl(es6ModuleConstEnumDeclaration.ts, 28, 11)) +>a : e5, Symbol(e5.a, Decl(es6ModuleConstEnumDeclaration.ts, 29, 26)) var y2 = e6.x; ->y2 : e6 ->e6.x : e6 ->e6 : typeof e6 ->x : e6 +>y2 : e6, Symbol(y2, Decl(es6ModuleConstEnumDeclaration.ts, 42, 7)) +>e6.x : e6, Symbol(e6.x, Decl(es6ModuleConstEnumDeclaration.ts, 34, 19)) +>e6 : typeof e6, Symbol(e6, Decl(es6ModuleConstEnumDeclaration.ts, 33, 5)) +>x : e6, Symbol(e6.x, Decl(es6ModuleConstEnumDeclaration.ts, 34, 19)) var x3 = m1.e3.a; ->x3 : m1.e3 ->m1.e3.a : m1.e3 ->m1.e3 : typeof m1.e3 ->m1 : typeof m1 ->e3 : typeof m1.e3 ->a : m1.e3 +>x3 : m1.e3, Symbol(x3, Decl(es6ModuleConstEnumDeclaration.ts, 43, 7)) +>m1.e3.a : m1.e3, Symbol(m1.e3.a, Decl(es6ModuleConstEnumDeclaration.ts, 13, 26)) +>m1.e3 : typeof m1.e3, Symbol(m1.e3, Decl(es6ModuleConstEnumDeclaration.ts, 12, 18)) +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleConstEnumDeclaration.ts, 11, 13)) +>e3 : typeof m1.e3, Symbol(m1.e3, Decl(es6ModuleConstEnumDeclaration.ts, 12, 18)) +>a : m1.e3, Symbol(m1.e3.a, Decl(es6ModuleConstEnumDeclaration.ts, 13, 26)) } diff --git a/tests/baselines/reference/es6ModuleConstEnumDeclaration2.types b/tests/baselines/reference/es6ModuleConstEnumDeclaration2.types index c43a938c9b6..6847de2a3d6 100644 --- a/tests/baselines/reference/es6ModuleConstEnumDeclaration2.types +++ b/tests/baselines/reference/es6ModuleConstEnumDeclaration2.types @@ -1,148 +1,148 @@ === tests/cases/compiler/es6ModuleConstEnumDeclaration2.ts === export const enum e1 { ->e1 : e1 +>e1 : e1, Symbol(e1, Decl(es6ModuleConstEnumDeclaration2.ts, 0, 0)) a, ->a : e1 +>a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration2.ts, 1, 22)) b, ->b : e1 +>b : e1, Symbol(e1.b, Decl(es6ModuleConstEnumDeclaration2.ts, 2, 6)) c ->c : e1 +>c : e1, Symbol(e1.c, Decl(es6ModuleConstEnumDeclaration2.ts, 3, 6)) } const enum e2 { ->e2 : e2 +>e2 : e2, Symbol(e2, Decl(es6ModuleConstEnumDeclaration2.ts, 5, 1)) x, ->x : e2 +>x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration2.ts, 6, 15)) y, ->y : e2 +>y : e2, Symbol(e2.y, Decl(es6ModuleConstEnumDeclaration2.ts, 7, 6)) z ->z : e2 +>z : e2, Symbol(e2.z, Decl(es6ModuleConstEnumDeclaration2.ts, 8, 6)) } var x = e1.a; ->x : e1 ->e1.a : e1 ->e1 : typeof e1 ->a : e1 +>x : e1, Symbol(x, Decl(es6ModuleConstEnumDeclaration2.ts, 11, 3)) +>e1.a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration2.ts, 1, 22)) +>e1 : typeof e1, Symbol(e1, Decl(es6ModuleConstEnumDeclaration2.ts, 0, 0)) +>a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration2.ts, 1, 22)) var y = e2.x; ->y : e2 ->e2.x : e2 ->e2 : typeof e2 ->x : e2 +>y : e2, Symbol(y, Decl(es6ModuleConstEnumDeclaration2.ts, 12, 3)) +>e2.x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration2.ts, 6, 15)) +>e2 : typeof e2, Symbol(e2, Decl(es6ModuleConstEnumDeclaration2.ts, 5, 1)) +>x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration2.ts, 6, 15)) export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleConstEnumDeclaration2.ts, 12, 13)) export const enum e3 { ->e3 : e3 +>e3 : e3, Symbol(e3, Decl(es6ModuleConstEnumDeclaration2.ts, 13, 18)) a, ->a : e3 +>a : e3, Symbol(e3.a, Decl(es6ModuleConstEnumDeclaration2.ts, 14, 26)) b, ->b : e3 +>b : e3, Symbol(e3.b, Decl(es6ModuleConstEnumDeclaration2.ts, 15, 10)) c ->c : e3 +>c : e3, Symbol(e3.c, Decl(es6ModuleConstEnumDeclaration2.ts, 16, 10)) } const enum e4 { ->e4 : e4 +>e4 : e4, Symbol(e4, Decl(es6ModuleConstEnumDeclaration2.ts, 18, 5)) x, ->x : e4 +>x : e4, Symbol(e4.x, Decl(es6ModuleConstEnumDeclaration2.ts, 19, 19)) y, ->y : e4 +>y : e4, Symbol(e4.y, Decl(es6ModuleConstEnumDeclaration2.ts, 20, 10)) z ->z : e4 +>z : e4, Symbol(e4.z, Decl(es6ModuleConstEnumDeclaration2.ts, 21, 10)) } var x1 = e1.a; ->x1 : e1 ->e1.a : e1 ->e1 : typeof e1 ->a : e1 +>x1 : e1, Symbol(x1, Decl(es6ModuleConstEnumDeclaration2.ts, 24, 7)) +>e1.a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration2.ts, 1, 22)) +>e1 : typeof e1, Symbol(e1, Decl(es6ModuleConstEnumDeclaration2.ts, 0, 0)) +>a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration2.ts, 1, 22)) var y1 = e2.x; ->y1 : e2 ->e2.x : e2 ->e2 : typeof e2 ->x : e2 +>y1 : e2, Symbol(y1, Decl(es6ModuleConstEnumDeclaration2.ts, 25, 7)) +>e2.x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration2.ts, 6, 15)) +>e2 : typeof e2, Symbol(e2, Decl(es6ModuleConstEnumDeclaration2.ts, 5, 1)) +>x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration2.ts, 6, 15)) var x2 = e3.a; ->x2 : e3 ->e3.a : e3 ->e3 : typeof e3 ->a : e3 +>x2 : e3, Symbol(x2, Decl(es6ModuleConstEnumDeclaration2.ts, 26, 7)) +>e3.a : e3, Symbol(e3.a, Decl(es6ModuleConstEnumDeclaration2.ts, 14, 26)) +>e3 : typeof e3, Symbol(e3, Decl(es6ModuleConstEnumDeclaration2.ts, 13, 18)) +>a : e3, Symbol(e3.a, Decl(es6ModuleConstEnumDeclaration2.ts, 14, 26)) var y2 = e4.x; ->y2 : e4 ->e4.x : e4 ->e4 : typeof e4 ->x : e4 +>y2 : e4, Symbol(y2, Decl(es6ModuleConstEnumDeclaration2.ts, 27, 7)) +>e4.x : e4, Symbol(e4.x, Decl(es6ModuleConstEnumDeclaration2.ts, 19, 19)) +>e4 : typeof e4, Symbol(e4, Decl(es6ModuleConstEnumDeclaration2.ts, 18, 5)) +>x : e4, Symbol(e4.x, Decl(es6ModuleConstEnumDeclaration2.ts, 19, 19)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(es6ModuleConstEnumDeclaration2.ts, 28, 1)) export const enum e5 { ->e5 : e5 +>e5 : e5, Symbol(e5, Decl(es6ModuleConstEnumDeclaration2.ts, 29, 11)) a, ->a : e5 +>a : e5, Symbol(e5.a, Decl(es6ModuleConstEnumDeclaration2.ts, 30, 26)) b, ->b : e5 +>b : e5, Symbol(e5.b, Decl(es6ModuleConstEnumDeclaration2.ts, 31, 10)) c ->c : e5 +>c : e5, Symbol(e5.c, Decl(es6ModuleConstEnumDeclaration2.ts, 32, 10)) } const enum e6 { ->e6 : e6 +>e6 : e6, Symbol(e6, Decl(es6ModuleConstEnumDeclaration2.ts, 34, 5)) x, ->x : e6 +>x : e6, Symbol(e6.x, Decl(es6ModuleConstEnumDeclaration2.ts, 35, 19)) y, ->y : e6 +>y : e6, Symbol(e6.y, Decl(es6ModuleConstEnumDeclaration2.ts, 36, 10)) z ->z : e6 +>z : e6, Symbol(e6.z, Decl(es6ModuleConstEnumDeclaration2.ts, 37, 10)) } var x1 = e1.a; ->x1 : e1 ->e1.a : e1 ->e1 : typeof e1 ->a : e1 +>x1 : e1, Symbol(x1, Decl(es6ModuleConstEnumDeclaration2.ts, 40, 7)) +>e1.a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration2.ts, 1, 22)) +>e1 : typeof e1, Symbol(e1, Decl(es6ModuleConstEnumDeclaration2.ts, 0, 0)) +>a : e1, Symbol(e1.a, Decl(es6ModuleConstEnumDeclaration2.ts, 1, 22)) var y1 = e2.x; ->y1 : e2 ->e2.x : e2 ->e2 : typeof e2 ->x : e2 +>y1 : e2, Symbol(y1, Decl(es6ModuleConstEnumDeclaration2.ts, 41, 7)) +>e2.x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration2.ts, 6, 15)) +>e2 : typeof e2, Symbol(e2, Decl(es6ModuleConstEnumDeclaration2.ts, 5, 1)) +>x : e2, Symbol(e2.x, Decl(es6ModuleConstEnumDeclaration2.ts, 6, 15)) var x2 = e5.a; ->x2 : e5 ->e5.a : e5 ->e5 : typeof e5 ->a : e5 +>x2 : e5, Symbol(x2, Decl(es6ModuleConstEnumDeclaration2.ts, 42, 7)) +>e5.a : e5, Symbol(e5.a, Decl(es6ModuleConstEnumDeclaration2.ts, 30, 26)) +>e5 : typeof e5, Symbol(e5, Decl(es6ModuleConstEnumDeclaration2.ts, 29, 11)) +>a : e5, Symbol(e5.a, Decl(es6ModuleConstEnumDeclaration2.ts, 30, 26)) var y2 = e6.x; ->y2 : e6 ->e6.x : e6 ->e6 : typeof e6 ->x : e6 +>y2 : e6, Symbol(y2, Decl(es6ModuleConstEnumDeclaration2.ts, 43, 7)) +>e6.x : e6, Symbol(e6.x, Decl(es6ModuleConstEnumDeclaration2.ts, 35, 19)) +>e6 : typeof e6, Symbol(e6, Decl(es6ModuleConstEnumDeclaration2.ts, 34, 5)) +>x : e6, Symbol(e6.x, Decl(es6ModuleConstEnumDeclaration2.ts, 35, 19)) var x3 = m1.e3.a; ->x3 : m1.e3 ->m1.e3.a : m1.e3 ->m1.e3 : typeof m1.e3 ->m1 : typeof m1 ->e3 : typeof m1.e3 ->a : m1.e3 +>x3 : m1.e3, Symbol(x3, Decl(es6ModuleConstEnumDeclaration2.ts, 44, 7)) +>m1.e3.a : m1.e3, Symbol(m1.e3.a, Decl(es6ModuleConstEnumDeclaration2.ts, 14, 26)) +>m1.e3 : typeof m1.e3, Symbol(m1.e3, Decl(es6ModuleConstEnumDeclaration2.ts, 13, 18)) +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleConstEnumDeclaration2.ts, 12, 13)) +>e3 : typeof m1.e3, Symbol(m1.e3, Decl(es6ModuleConstEnumDeclaration2.ts, 13, 18)) +>a : m1.e3, Symbol(m1.e3.a, Decl(es6ModuleConstEnumDeclaration2.ts, 14, 26)) } diff --git a/tests/baselines/reference/es6ModuleEnumDeclaration.types b/tests/baselines/reference/es6ModuleEnumDeclaration.types index 4b856fee009..0e893a94f46 100644 --- a/tests/baselines/reference/es6ModuleEnumDeclaration.types +++ b/tests/baselines/reference/es6ModuleEnumDeclaration.types @@ -1,147 +1,147 @@ === tests/cases/compiler/es6ModuleEnumDeclaration.ts === export enum e1 { ->e1 : e1 +>e1 : e1, Symbol(e1, Decl(es6ModuleEnumDeclaration.ts, 0, 0)) a, ->a : e1 +>a : e1, Symbol(e1.a, Decl(es6ModuleEnumDeclaration.ts, 0, 16)) b, ->b : e1 +>b : e1, Symbol(e1.b, Decl(es6ModuleEnumDeclaration.ts, 1, 6)) c ->c : e1 +>c : e1, Symbol(e1.c, Decl(es6ModuleEnumDeclaration.ts, 2, 6)) } enum e2 { ->e2 : e2 +>e2 : e2, Symbol(e2, Decl(es6ModuleEnumDeclaration.ts, 4, 1)) x, ->x : e2 +>x : e2, Symbol(e2.x, Decl(es6ModuleEnumDeclaration.ts, 5, 9)) y, ->y : e2 +>y : e2, Symbol(e2.y, Decl(es6ModuleEnumDeclaration.ts, 6, 6)) z ->z : e2 +>z : e2, Symbol(e2.z, Decl(es6ModuleEnumDeclaration.ts, 7, 6)) } var x = e1.a; ->x : e1 ->e1.a : e1 ->e1 : typeof e1 ->a : e1 +>x : e1, Symbol(x, Decl(es6ModuleEnumDeclaration.ts, 10, 3)) +>e1.a : e1, Symbol(e1.a, Decl(es6ModuleEnumDeclaration.ts, 0, 16)) +>e1 : typeof e1, Symbol(e1, Decl(es6ModuleEnumDeclaration.ts, 0, 0)) +>a : e1, Symbol(e1.a, Decl(es6ModuleEnumDeclaration.ts, 0, 16)) var y = e2.x; ->y : e2 ->e2.x : e2 ->e2 : typeof e2 ->x : e2 +>y : e2, Symbol(y, Decl(es6ModuleEnumDeclaration.ts, 11, 3)) +>e2.x : e2, Symbol(e2.x, Decl(es6ModuleEnumDeclaration.ts, 5, 9)) +>e2 : typeof e2, Symbol(e2, Decl(es6ModuleEnumDeclaration.ts, 4, 1)) +>x : e2, Symbol(e2.x, Decl(es6ModuleEnumDeclaration.ts, 5, 9)) export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleEnumDeclaration.ts, 11, 13)) export enum e3 { ->e3 : e3 +>e3 : e3, Symbol(e3, Decl(es6ModuleEnumDeclaration.ts, 12, 18)) a, ->a : e3 +>a : e3, Symbol(e3.a, Decl(es6ModuleEnumDeclaration.ts, 13, 20)) b, ->b : e3 +>b : e3, Symbol(e3.b, Decl(es6ModuleEnumDeclaration.ts, 14, 10)) c ->c : e3 +>c : e3, Symbol(e3.c, Decl(es6ModuleEnumDeclaration.ts, 15, 10)) } enum e4 { ->e4 : e4 +>e4 : e4, Symbol(e4, Decl(es6ModuleEnumDeclaration.ts, 17, 5)) x, ->x : e4 +>x : e4, Symbol(e4.x, Decl(es6ModuleEnumDeclaration.ts, 18, 13)) y, ->y : e4 +>y : e4, Symbol(e4.y, Decl(es6ModuleEnumDeclaration.ts, 19, 10)) z ->z : e4 +>z : e4, Symbol(e4.z, Decl(es6ModuleEnumDeclaration.ts, 20, 10)) } var x1 = e1.a; ->x1 : e1 ->e1.a : e1 ->e1 : typeof e1 ->a : e1 +>x1 : e1, Symbol(x1, Decl(es6ModuleEnumDeclaration.ts, 23, 7)) +>e1.a : e1, Symbol(e1.a, Decl(es6ModuleEnumDeclaration.ts, 0, 16)) +>e1 : typeof e1, Symbol(e1, Decl(es6ModuleEnumDeclaration.ts, 0, 0)) +>a : e1, Symbol(e1.a, Decl(es6ModuleEnumDeclaration.ts, 0, 16)) var y1 = e2.x; ->y1 : e2 ->e2.x : e2 ->e2 : typeof e2 ->x : e2 +>y1 : e2, Symbol(y1, Decl(es6ModuleEnumDeclaration.ts, 24, 7)) +>e2.x : e2, Symbol(e2.x, Decl(es6ModuleEnumDeclaration.ts, 5, 9)) +>e2 : typeof e2, Symbol(e2, Decl(es6ModuleEnumDeclaration.ts, 4, 1)) +>x : e2, Symbol(e2.x, Decl(es6ModuleEnumDeclaration.ts, 5, 9)) var x2 = e3.a; ->x2 : e3 ->e3.a : e3 ->e3 : typeof e3 ->a : e3 +>x2 : e3, Symbol(x2, Decl(es6ModuleEnumDeclaration.ts, 25, 7)) +>e3.a : e3, Symbol(e3.a, Decl(es6ModuleEnumDeclaration.ts, 13, 20)) +>e3 : typeof e3, Symbol(e3, Decl(es6ModuleEnumDeclaration.ts, 12, 18)) +>a : e3, Symbol(e3.a, Decl(es6ModuleEnumDeclaration.ts, 13, 20)) var y2 = e4.x; ->y2 : e4 ->e4.x : e4 ->e4 : typeof e4 ->x : e4 +>y2 : e4, Symbol(y2, Decl(es6ModuleEnumDeclaration.ts, 26, 7)) +>e4.x : e4, Symbol(e4.x, Decl(es6ModuleEnumDeclaration.ts, 18, 13)) +>e4 : typeof e4, Symbol(e4, Decl(es6ModuleEnumDeclaration.ts, 17, 5)) +>x : e4, Symbol(e4.x, Decl(es6ModuleEnumDeclaration.ts, 18, 13)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(es6ModuleEnumDeclaration.ts, 27, 1)) export enum e5 { ->e5 : e5 +>e5 : e5, Symbol(e5, Decl(es6ModuleEnumDeclaration.ts, 28, 11)) a, ->a : e5 +>a : e5, Symbol(e5.a, Decl(es6ModuleEnumDeclaration.ts, 29, 20)) b, ->b : e5 +>b : e5, Symbol(e5.b, Decl(es6ModuleEnumDeclaration.ts, 30, 10)) c ->c : e5 +>c : e5, Symbol(e5.c, Decl(es6ModuleEnumDeclaration.ts, 31, 10)) } enum e6 { ->e6 : e6 +>e6 : e6, Symbol(e6, Decl(es6ModuleEnumDeclaration.ts, 33, 5)) x, ->x : e6 +>x : e6, Symbol(e6.x, Decl(es6ModuleEnumDeclaration.ts, 34, 13)) y, ->y : e6 +>y : e6, Symbol(e6.y, Decl(es6ModuleEnumDeclaration.ts, 35, 10)) z ->z : e6 +>z : e6, Symbol(e6.z, Decl(es6ModuleEnumDeclaration.ts, 36, 10)) } var x1 = e1.a; ->x1 : e1 ->e1.a : e1 ->e1 : typeof e1 ->a : e1 +>x1 : e1, Symbol(x1, Decl(es6ModuleEnumDeclaration.ts, 39, 7)) +>e1.a : e1, Symbol(e1.a, Decl(es6ModuleEnumDeclaration.ts, 0, 16)) +>e1 : typeof e1, Symbol(e1, Decl(es6ModuleEnumDeclaration.ts, 0, 0)) +>a : e1, Symbol(e1.a, Decl(es6ModuleEnumDeclaration.ts, 0, 16)) var y1 = e2.x; ->y1 : e2 ->e2.x : e2 ->e2 : typeof e2 ->x : e2 +>y1 : e2, Symbol(y1, Decl(es6ModuleEnumDeclaration.ts, 40, 7)) +>e2.x : e2, Symbol(e2.x, Decl(es6ModuleEnumDeclaration.ts, 5, 9)) +>e2 : typeof e2, Symbol(e2, Decl(es6ModuleEnumDeclaration.ts, 4, 1)) +>x : e2, Symbol(e2.x, Decl(es6ModuleEnumDeclaration.ts, 5, 9)) var x2 = e5.a; ->x2 : e5 ->e5.a : e5 ->e5 : typeof e5 ->a : e5 +>x2 : e5, Symbol(x2, Decl(es6ModuleEnumDeclaration.ts, 41, 7)) +>e5.a : e5, Symbol(e5.a, Decl(es6ModuleEnumDeclaration.ts, 29, 20)) +>e5 : typeof e5, Symbol(e5, Decl(es6ModuleEnumDeclaration.ts, 28, 11)) +>a : e5, Symbol(e5.a, Decl(es6ModuleEnumDeclaration.ts, 29, 20)) var y2 = e6.x; ->y2 : e6 ->e6.x : e6 ->e6 : typeof e6 ->x : e6 +>y2 : e6, Symbol(y2, Decl(es6ModuleEnumDeclaration.ts, 42, 7)) +>e6.x : e6, Symbol(e6.x, Decl(es6ModuleEnumDeclaration.ts, 34, 13)) +>e6 : typeof e6, Symbol(e6, Decl(es6ModuleEnumDeclaration.ts, 33, 5)) +>x : e6, Symbol(e6.x, Decl(es6ModuleEnumDeclaration.ts, 34, 13)) var x3 = m1.e3.a; ->x3 : m1.e3 ->m1.e3.a : m1.e3 ->m1.e3 : typeof m1.e3 ->m1 : typeof m1 ->e3 : typeof m1.e3 ->a : m1.e3 +>x3 : m1.e3, Symbol(x3, Decl(es6ModuleEnumDeclaration.ts, 43, 7)) +>m1.e3.a : m1.e3, Symbol(m1.e3.a, Decl(es6ModuleEnumDeclaration.ts, 13, 20)) +>m1.e3 : typeof m1.e3, Symbol(m1.e3, Decl(es6ModuleEnumDeclaration.ts, 12, 18)) +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleEnumDeclaration.ts, 11, 13)) +>e3 : typeof m1.e3, Symbol(m1.e3, Decl(es6ModuleEnumDeclaration.ts, 12, 18)) +>a : m1.e3, Symbol(m1.e3.a, Decl(es6ModuleEnumDeclaration.ts, 13, 20)) } diff --git a/tests/baselines/reference/es6ModuleFunctionDeclaration.types b/tests/baselines/reference/es6ModuleFunctionDeclaration.types index b1252c1e8bc..9c124ba7648 100644 --- a/tests/baselines/reference/es6ModuleFunctionDeclaration.types +++ b/tests/baselines/reference/es6ModuleFunctionDeclaration.types @@ -1,71 +1,71 @@ === tests/cases/compiler/es6ModuleFunctionDeclaration.ts === export function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(es6ModuleFunctionDeclaration.ts, 0, 0)) } function foo2() { ->foo2 : () => void +>foo2 : () => void, Symbol(foo2, Decl(es6ModuleFunctionDeclaration.ts, 1, 1)) } foo(); >foo() : void ->foo : () => void +>foo : () => void, Symbol(foo, Decl(es6ModuleFunctionDeclaration.ts, 0, 0)) foo2(); >foo2() : void ->foo2 : () => void +>foo2 : () => void, Symbol(foo2, Decl(es6ModuleFunctionDeclaration.ts, 1, 1)) export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleFunctionDeclaration.ts, 5, 7)) export function foo3() { ->foo3 : () => void +>foo3 : () => void, Symbol(foo3, Decl(es6ModuleFunctionDeclaration.ts, 7, 18)) } function foo4() { ->foo4 : () => void +>foo4 : () => void, Symbol(foo4, Decl(es6ModuleFunctionDeclaration.ts, 9, 5)) } foo(); >foo() : void ->foo : () => void +>foo : () => void, Symbol(foo, Decl(es6ModuleFunctionDeclaration.ts, 0, 0)) foo2(); >foo2() : void ->foo2 : () => void +>foo2 : () => void, Symbol(foo2, Decl(es6ModuleFunctionDeclaration.ts, 1, 1)) foo3(); >foo3() : void ->foo3 : () => void +>foo3 : () => void, Symbol(foo3, Decl(es6ModuleFunctionDeclaration.ts, 7, 18)) foo4(); >foo4() : void ->foo4 : () => void +>foo4 : () => void, Symbol(foo4, Decl(es6ModuleFunctionDeclaration.ts, 9, 5)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(es6ModuleFunctionDeclaration.ts, 16, 1)) export function foo3() { ->foo3 : () => void +>foo3 : () => void, Symbol(foo3, Decl(es6ModuleFunctionDeclaration.ts, 17, 11)) } function foo4() { ->foo4 : () => void +>foo4 : () => void, Symbol(foo4, Decl(es6ModuleFunctionDeclaration.ts, 19, 5)) } foo(); >foo() : void ->foo : () => void +>foo : () => void, Symbol(foo, Decl(es6ModuleFunctionDeclaration.ts, 0, 0)) foo2(); >foo2() : void ->foo2 : () => void +>foo2 : () => void, Symbol(foo2, Decl(es6ModuleFunctionDeclaration.ts, 1, 1)) foo3(); >foo3() : void ->foo3 : () => void +>foo3 : () => void, Symbol(foo3, Decl(es6ModuleFunctionDeclaration.ts, 17, 11)) foo4(); >foo4() : void ->foo4 : () => void +>foo4 : () => void, Symbol(foo4, Decl(es6ModuleFunctionDeclaration.ts, 19, 5)) m1.foo3(); >m1.foo3() : void ->m1.foo3 : () => void ->m1 : typeof m1 ->foo3 : () => void +>m1.foo3 : () => void, Symbol(m1.foo3, Decl(es6ModuleFunctionDeclaration.ts, 7, 18)) +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleFunctionDeclaration.ts, 5, 7)) +>foo3 : () => void, Symbol(m1.foo3, Decl(es6ModuleFunctionDeclaration.ts, 7, 18)) } diff --git a/tests/baselines/reference/es6ModuleInternalImport.types b/tests/baselines/reference/es6ModuleInternalImport.types index 50db69d8edb..6190df165a2 100644 --- a/tests/baselines/reference/es6ModuleInternalImport.types +++ b/tests/baselines/reference/es6ModuleInternalImport.types @@ -1,83 +1,84 @@ === tests/cases/compiler/es6ModuleInternalImport.ts === export module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(es6ModuleInternalImport.ts, 0, 0)) export var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ModuleInternalImport.ts, 1, 14)) +>10 : number } export import a1 = m.a; ->a1 : number ->m : typeof m ->a : number +>a1 : number, Symbol(a1, Decl(es6ModuleInternalImport.ts, 2, 1)) +>m : typeof m, Symbol(m, Decl(es6ModuleInternalImport.ts, 0, 0)) +>a : number, Symbol(a2, Decl(es6ModuleInternalImport.ts, 1, 14)) import a2 = m.a; ->a2 : number ->m : typeof m ->a : number +>a2 : number, Symbol(a2, Decl(es6ModuleInternalImport.ts, 3, 23)) +>m : typeof m, Symbol(m, Decl(es6ModuleInternalImport.ts, 0, 0)) +>a : number, Symbol(a2, Decl(es6ModuleInternalImport.ts, 1, 14)) var x = a1 + a2; ->x : number +>x : number, Symbol(x, Decl(es6ModuleInternalImport.ts, 5, 3)) >a1 + a2 : number ->a1 : number ->a2 : number +>a1 : number, Symbol(a1, Decl(es6ModuleInternalImport.ts, 2, 1)) +>a2 : number, Symbol(a2, Decl(es6ModuleInternalImport.ts, 3, 23)) export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleInternalImport.ts, 5, 16)) export import a3 = m.a; ->a3 : number ->m : typeof m ->a : number +>a3 : number, Symbol(a3, Decl(es6ModuleInternalImport.ts, 6, 18)) +>m : typeof m, Symbol(m, Decl(es6ModuleInternalImport.ts, 0, 0)) +>a : number, Symbol(a4, Decl(es6ModuleInternalImport.ts, 1, 14)) import a4 = m.a; ->a4 : number ->m : typeof m ->a : number +>a4 : number, Symbol(a4, Decl(es6ModuleInternalImport.ts, 7, 27)) +>m : typeof m, Symbol(m, Decl(es6ModuleInternalImport.ts, 0, 0)) +>a : number, Symbol(a4, Decl(es6ModuleInternalImport.ts, 1, 14)) var x = a1 + a2; ->x : number +>x : number, Symbol(x, Decl(es6ModuleInternalImport.ts, 9, 7)) >a1 + a2 : number ->a1 : number ->a2 : number +>a1 : number, Symbol(a1, Decl(es6ModuleInternalImport.ts, 2, 1)) +>a2 : number, Symbol(a2, Decl(es6ModuleInternalImport.ts, 3, 23)) var x2 = a3 + a4; ->x2 : number +>x2 : number, Symbol(x2, Decl(es6ModuleInternalImport.ts, 10, 7)) >a3 + a4 : number ->a3 : number ->a4 : number +>a3 : number, Symbol(a3, Decl(es6ModuleInternalImport.ts, 6, 18)) +>a4 : number, Symbol(a4, Decl(es6ModuleInternalImport.ts, 7, 27)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(es6ModuleInternalImport.ts, 11, 1)) export import a3 = m.a; ->a3 : number ->m : typeof m ->a : number +>a3 : number, Symbol(a3, Decl(es6ModuleInternalImport.ts, 12, 11)) +>m : typeof m, Symbol(m, Decl(es6ModuleInternalImport.ts, 0, 0)) +>a : number, Symbol(a4, Decl(es6ModuleInternalImport.ts, 1, 14)) import a4 = m.a; ->a4 : number ->m : typeof m ->a : number +>a4 : number, Symbol(a4, Decl(es6ModuleInternalImport.ts, 13, 27)) +>m : typeof m, Symbol(m, Decl(es6ModuleInternalImport.ts, 0, 0)) +>a : number, Symbol(a4, Decl(es6ModuleInternalImport.ts, 1, 14)) var x = a1 + a2; ->x : number +>x : number, Symbol(x, Decl(es6ModuleInternalImport.ts, 15, 7)) >a1 + a2 : number ->a1 : number ->a2 : number +>a1 : number, Symbol(a1, Decl(es6ModuleInternalImport.ts, 2, 1)) +>a2 : number, Symbol(a2, Decl(es6ModuleInternalImport.ts, 3, 23)) var x2 = a3 + a4; ->x2 : number +>x2 : number, Symbol(x2, Decl(es6ModuleInternalImport.ts, 16, 7)) >a3 + a4 : number ->a3 : number ->a4 : number +>a3 : number, Symbol(a3, Decl(es6ModuleInternalImport.ts, 12, 11)) +>a4 : number, Symbol(a4, Decl(es6ModuleInternalImport.ts, 13, 27)) var x4 = m1.a3 + m2.a3; ->x4 : number +>x4 : number, Symbol(x4, Decl(es6ModuleInternalImport.ts, 17, 7)) >m1.a3 + m2.a3 : number ->m1.a3 : number ->m1 : typeof m1 ->a3 : number ->m2.a3 : number ->m2 : typeof m2 ->a3 : number +>m1.a3 : number, Symbol(m1.a3, Decl(es6ModuleInternalImport.ts, 6, 18)) +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleInternalImport.ts, 5, 16)) +>a3 : number, Symbol(m1.a3, Decl(es6ModuleInternalImport.ts, 6, 18)) +>m2.a3 : number, Symbol(a3, Decl(es6ModuleInternalImport.ts, 12, 11)) +>m2 : typeof m2, Symbol(m2, Decl(es6ModuleInternalImport.ts, 11, 1)) +>a3 : number, Symbol(a3, Decl(es6ModuleInternalImport.ts, 12, 11)) } diff --git a/tests/baselines/reference/es6ModuleLet.types b/tests/baselines/reference/es6ModuleLet.types index 4b30c89cc81..47492576ce6 100644 --- a/tests/baselines/reference/es6ModuleLet.types +++ b/tests/baselines/reference/es6ModuleLet.types @@ -1,70 +1,71 @@ === tests/cases/compiler/es6ModuleLet.ts === export let a = "hello"; ->a : string +>a : string, Symbol(a, Decl(es6ModuleLet.ts, 0, 10)) +>"hello" : string export let x: string = a, y = x; ->x : string ->a : string ->y : string ->x : string +>x : string, Symbol(x, Decl(es6ModuleLet.ts, 1, 10)) +>a : string, Symbol(a, Decl(es6ModuleLet.ts, 0, 10)) +>y : string, Symbol(y, Decl(es6ModuleLet.ts, 1, 25)) +>x : string, Symbol(x, Decl(es6ModuleLet.ts, 1, 10)) let b = y; ->b : string ->y : string +>b : string, Symbol(b, Decl(es6ModuleLet.ts, 2, 3)) +>y : string, Symbol(y, Decl(es6ModuleLet.ts, 1, 25)) let c: string = b, d = c; ->c : string ->b : string ->d : string ->c : string +>c : string, Symbol(c, Decl(es6ModuleLet.ts, 3, 3)) +>b : string, Symbol(b, Decl(es6ModuleLet.ts, 2, 3)) +>d : string, Symbol(d, Decl(es6ModuleLet.ts, 3, 18)) +>c : string, Symbol(c, Decl(es6ModuleLet.ts, 3, 3)) export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleLet.ts, 3, 25)) export let k = a; ->k : string ->a : string +>k : string, Symbol(k, Decl(es6ModuleLet.ts, 5, 14)) +>a : string, Symbol(a, Decl(es6ModuleLet.ts, 0, 10)) export let l: string = b, m = k; ->l : string ->b : string ->m : string ->k : string +>l : string, Symbol(l, Decl(es6ModuleLet.ts, 6, 14)) +>b : string, Symbol(b, Decl(es6ModuleLet.ts, 2, 3)) +>m : string, Symbol(m, Decl(es6ModuleLet.ts, 6, 29)) +>k : string, Symbol(k, Decl(es6ModuleLet.ts, 5, 14)) let n = m1.k; ->n : string ->m1.k : string ->m1 : typeof m1 ->k : string +>n : string, Symbol(n, Decl(es6ModuleLet.ts, 7, 7)) +>m1.k : string, Symbol(k, Decl(es6ModuleLet.ts, 5, 14)) +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleLet.ts, 3, 25)) +>k : string, Symbol(k, Decl(es6ModuleLet.ts, 5, 14)) let o: string = n, p = k; ->o : string ->n : string ->p : string ->k : string +>o : string, Symbol(o, Decl(es6ModuleLet.ts, 8, 7)) +>n : string, Symbol(n, Decl(es6ModuleLet.ts, 7, 7)) +>p : string, Symbol(p, Decl(es6ModuleLet.ts, 8, 22)) +>k : string, Symbol(k, Decl(es6ModuleLet.ts, 5, 14)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(es6ModuleLet.ts, 9, 1)) export let k = a; ->k : string ->a : string +>k : string, Symbol(k, Decl(es6ModuleLet.ts, 11, 14)) +>a : string, Symbol(a, Decl(es6ModuleLet.ts, 0, 10)) export let l: string = b, m = k; ->l : string ->b : string ->m : string ->k : string +>l : string, Symbol(l, Decl(es6ModuleLet.ts, 12, 14)) +>b : string, Symbol(b, Decl(es6ModuleLet.ts, 2, 3)) +>m : string, Symbol(m, Decl(es6ModuleLet.ts, 12, 29)) +>k : string, Symbol(k, Decl(es6ModuleLet.ts, 11, 14)) let n = m1.k; ->n : string ->m1.k : string ->m1 : typeof m1 ->k : string +>n : string, Symbol(n, Decl(es6ModuleLet.ts, 13, 7)) +>m1.k : string, Symbol(m1.k, Decl(es6ModuleLet.ts, 5, 14)) +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleLet.ts, 3, 25)) +>k : string, Symbol(m1.k, Decl(es6ModuleLet.ts, 5, 14)) let o: string = n, p = k; ->o : string ->n : string ->p : string ->k : string +>o : string, Symbol(o, Decl(es6ModuleLet.ts, 14, 7)) +>n : string, Symbol(n, Decl(es6ModuleLet.ts, 13, 7)) +>p : string, Symbol(p, Decl(es6ModuleLet.ts, 14, 22)) +>k : string, Symbol(k, Decl(es6ModuleLet.ts, 11, 14)) } diff --git a/tests/baselines/reference/es6ModuleModuleDeclaration.types b/tests/baselines/reference/es6ModuleModuleDeclaration.types index c174fe6f8c7..781b13fd9b4 100644 --- a/tests/baselines/reference/es6ModuleModuleDeclaration.types +++ b/tests/baselines/reference/es6ModuleModuleDeclaration.types @@ -1,57 +1,69 @@ === tests/cases/compiler/es6ModuleModuleDeclaration.ts === export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleModuleDeclaration.ts, 0, 0)) export var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ModuleModuleDeclaration.ts, 1, 14)) +>10 : number var b = 10; ->b : number +>b : number, Symbol(b, Decl(es6ModuleModuleDeclaration.ts, 2, 7)) +>10 : number export module innerExportedModule { ->innerExportedModule : typeof innerExportedModule +>innerExportedModule : typeof innerExportedModule, Symbol(innerExportedModule, Decl(es6ModuleModuleDeclaration.ts, 2, 15)) export var k = 10; ->k : number +>k : number, Symbol(k, Decl(es6ModuleModuleDeclaration.ts, 4, 18)) +>10 : number var l = 10; ->l : number +>l : number, Symbol(l, Decl(es6ModuleModuleDeclaration.ts, 5, 11)) +>10 : number } export module innerNonExportedModule { ->innerNonExportedModule : typeof innerNonExportedModule +>innerNonExportedModule : typeof innerNonExportedModule, Symbol(innerNonExportedModule, Decl(es6ModuleModuleDeclaration.ts, 6, 5)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(es6ModuleModuleDeclaration.ts, 8, 18)) +>10 : number var y = 10; ->y : number +>y : number, Symbol(y, Decl(es6ModuleModuleDeclaration.ts, 9, 11)) +>10 : number } } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(es6ModuleModuleDeclaration.ts, 11, 1)) export var a = 10; ->a : number +>a : number, Symbol(a, Decl(es6ModuleModuleDeclaration.ts, 13, 14)) +>10 : number var b = 10; ->b : number +>b : number, Symbol(b, Decl(es6ModuleModuleDeclaration.ts, 14, 7)) +>10 : number export module innerExportedModule { ->innerExportedModule : typeof innerExportedModule +>innerExportedModule : typeof innerExportedModule, Symbol(innerExportedModule, Decl(es6ModuleModuleDeclaration.ts, 14, 15)) export var k = 10; ->k : number +>k : number, Symbol(k, Decl(es6ModuleModuleDeclaration.ts, 16, 18)) +>10 : number var l = 10; ->l : number +>l : number, Symbol(l, Decl(es6ModuleModuleDeclaration.ts, 17, 11)) +>10 : number } export module innerNonExportedModule { ->innerNonExportedModule : typeof innerNonExportedModule +>innerNonExportedModule : typeof innerNonExportedModule, Symbol(innerNonExportedModule, Decl(es6ModuleModuleDeclaration.ts, 18, 5)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(es6ModuleModuleDeclaration.ts, 20, 18)) +>10 : number var y = 10; ->y : number +>y : number, Symbol(y, Decl(es6ModuleModuleDeclaration.ts, 21, 11)) +>10 : number } } diff --git a/tests/baselines/reference/es6ModuleVariableStatement.types b/tests/baselines/reference/es6ModuleVariableStatement.types index a10d8f6cacb..4c63bd32e49 100644 --- a/tests/baselines/reference/es6ModuleVariableStatement.types +++ b/tests/baselines/reference/es6ModuleVariableStatement.types @@ -1,70 +1,71 @@ === tests/cases/compiler/es6ModuleVariableStatement.ts === export var a = "hello"; ->a : string +>a : string, Symbol(a, Decl(es6ModuleVariableStatement.ts, 0, 10)) +>"hello" : string export var x: string = a, y = x; ->x : string ->a : string ->y : string ->x : string +>x : string, Symbol(x, Decl(es6ModuleVariableStatement.ts, 1, 10)) +>a : string, Symbol(a, Decl(es6ModuleVariableStatement.ts, 0, 10)) +>y : string, Symbol(y, Decl(es6ModuleVariableStatement.ts, 1, 25)) +>x : string, Symbol(x, Decl(es6ModuleVariableStatement.ts, 1, 10)) var b = y; ->b : string ->y : string +>b : string, Symbol(b, Decl(es6ModuleVariableStatement.ts, 2, 3)) +>y : string, Symbol(y, Decl(es6ModuleVariableStatement.ts, 1, 25)) var c: string = b, d = c; ->c : string ->b : string ->d : string ->c : string +>c : string, Symbol(c, Decl(es6ModuleVariableStatement.ts, 3, 3)) +>b : string, Symbol(b, Decl(es6ModuleVariableStatement.ts, 2, 3)) +>d : string, Symbol(d, Decl(es6ModuleVariableStatement.ts, 3, 18)) +>c : string, Symbol(c, Decl(es6ModuleVariableStatement.ts, 3, 3)) export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleVariableStatement.ts, 3, 25)) export var k = a; ->k : string ->a : string +>k : string, Symbol(k, Decl(es6ModuleVariableStatement.ts, 5, 14)) +>a : string, Symbol(a, Decl(es6ModuleVariableStatement.ts, 0, 10)) export var l: string = b, m = k; ->l : string ->b : string ->m : string ->k : string +>l : string, Symbol(l, Decl(es6ModuleVariableStatement.ts, 6, 14)) +>b : string, Symbol(b, Decl(es6ModuleVariableStatement.ts, 2, 3)) +>m : string, Symbol(m, Decl(es6ModuleVariableStatement.ts, 6, 29)) +>k : string, Symbol(k, Decl(es6ModuleVariableStatement.ts, 5, 14)) var n = m1.k; ->n : string ->m1.k : string ->m1 : typeof m1 ->k : string +>n : string, Symbol(n, Decl(es6ModuleVariableStatement.ts, 7, 7)) +>m1.k : string, Symbol(k, Decl(es6ModuleVariableStatement.ts, 5, 14)) +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleVariableStatement.ts, 3, 25)) +>k : string, Symbol(k, Decl(es6ModuleVariableStatement.ts, 5, 14)) var o: string = n, p = k; ->o : string ->n : string ->p : string ->k : string +>o : string, Symbol(o, Decl(es6ModuleVariableStatement.ts, 8, 7)) +>n : string, Symbol(n, Decl(es6ModuleVariableStatement.ts, 7, 7)) +>p : string, Symbol(p, Decl(es6ModuleVariableStatement.ts, 8, 22)) +>k : string, Symbol(k, Decl(es6ModuleVariableStatement.ts, 5, 14)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(es6ModuleVariableStatement.ts, 9, 1)) export var k = a; ->k : string ->a : string +>k : string, Symbol(k, Decl(es6ModuleVariableStatement.ts, 11, 14)) +>a : string, Symbol(a, Decl(es6ModuleVariableStatement.ts, 0, 10)) export var l: string = b, m = k; ->l : string ->b : string ->m : string ->k : string +>l : string, Symbol(l, Decl(es6ModuleVariableStatement.ts, 12, 14)) +>b : string, Symbol(b, Decl(es6ModuleVariableStatement.ts, 2, 3)) +>m : string, Symbol(m, Decl(es6ModuleVariableStatement.ts, 12, 29)) +>k : string, Symbol(k, Decl(es6ModuleVariableStatement.ts, 11, 14)) var n = m1.k; ->n : string ->m1.k : string ->m1 : typeof m1 ->k : string +>n : string, Symbol(n, Decl(es6ModuleVariableStatement.ts, 13, 7)) +>m1.k : string, Symbol(m1.k, Decl(es6ModuleVariableStatement.ts, 5, 14)) +>m1 : typeof m1, Symbol(m1, Decl(es6ModuleVariableStatement.ts, 3, 25)) +>k : string, Symbol(m1.k, Decl(es6ModuleVariableStatement.ts, 5, 14)) var o: string = n, p = k; ->o : string ->n : string ->p : string ->k : string +>o : string, Symbol(o, Decl(es6ModuleVariableStatement.ts, 14, 7)) +>n : string, Symbol(n, Decl(es6ModuleVariableStatement.ts, 13, 7)) +>p : string, Symbol(p, Decl(es6ModuleVariableStatement.ts, 14, 22)) +>k : string, Symbol(k, Decl(es6ModuleVariableStatement.ts, 11, 14)) } diff --git a/tests/baselines/reference/escapedIdentifiers.types b/tests/baselines/reference/escapedIdentifiers.types index d0b6b1f5c42..5b618c9cfa8 100644 --- a/tests/baselines/reference/escapedIdentifiers.types +++ b/tests/baselines/reference/escapedIdentifiers.types @@ -12,286 +12,340 @@ // var decl var \u0061 = 1; ->\u0061 : number +>\u0061 : number, Symbol(\u0061, Decl(escapedIdentifiers.ts, 12, 3)) +>1 : number a ++; >a ++ : number ->a : number +>a : number, Symbol(\u0061, Decl(escapedIdentifiers.ts, 12, 3)) \u0061 ++; >\u0061 ++ : number ->\u0061 : number +>\u0061 : number, Symbol(\u0061, Decl(escapedIdentifiers.ts, 12, 3)) var b = 1; ->b : number +>b : number, Symbol(b, Decl(escapedIdentifiers.ts, 16, 3)) +>1 : number b ++; >b ++ : number ->b : number +>b : number, Symbol(b, Decl(escapedIdentifiers.ts, 16, 3)) \u0062 ++; >\u0062 ++ : number ->\u0062 : number +>\u0062 : number, Symbol(b, Decl(escapedIdentifiers.ts, 16, 3)) // modules module moduleType1 { ->moduleType1 : typeof moduleType1 +>moduleType1 : typeof moduleType1, Symbol(moduleType1, Decl(escapedIdentifiers.ts, 18, 10)) export var baz1: number; ->baz1 : number +>baz1 : number, Symbol(baz1, Decl(escapedIdentifiers.ts, 22, 14)) } module moduleType\u0032 { ->moduleType\u0032 : typeof moduleType\u0032 +>moduleType\u0032 : typeof moduleType\u0032, Symbol(moduleType\u0032, Decl(escapedIdentifiers.ts, 23, 1)) export var baz2: number; ->baz2 : number +>baz2 : number, Symbol(baz2, Decl(escapedIdentifiers.ts, 25, 14)) } moduleType1.baz1 = 3; >moduleType1.baz1 = 3 : number ->moduleType1.baz1 : number ->moduleType1 : typeof moduleType1 ->baz1 : number +>moduleType1.baz1 : number, Symbol(moduleType1.baz1, Decl(escapedIdentifiers.ts, 22, 14)) +>moduleType1 : typeof moduleType1, Symbol(moduleType1, Decl(escapedIdentifiers.ts, 18, 10)) +>baz1 : number, Symbol(moduleType1.baz1, Decl(escapedIdentifiers.ts, 22, 14)) +>3 : number moduleType\u0031.baz1 = 3; >moduleType\u0031.baz1 = 3 : number ->moduleType\u0031.baz1 : number ->moduleType\u0031 : typeof moduleType1 ->baz1 : number +>moduleType\u0031.baz1 : number, Symbol(moduleType1.baz1, Decl(escapedIdentifiers.ts, 22, 14)) +>moduleType\u0031 : typeof moduleType1, Symbol(moduleType1, Decl(escapedIdentifiers.ts, 18, 10)) +>baz1 : number, Symbol(moduleType1.baz1, Decl(escapedIdentifiers.ts, 22, 14)) +>3 : number moduleType2.baz2 = 3; >moduleType2.baz2 = 3 : number ->moduleType2.baz2 : number ->moduleType2 : typeof moduleType\u0032 ->baz2 : number +>moduleType2.baz2 : number, Symbol(moduleType\u0032.baz2, Decl(escapedIdentifiers.ts, 25, 14)) +>moduleType2 : typeof moduleType\u0032, Symbol(moduleType\u0032, Decl(escapedIdentifiers.ts, 23, 1)) +>baz2 : number, Symbol(moduleType\u0032.baz2, Decl(escapedIdentifiers.ts, 25, 14)) +>3 : number moduleType\u0032.baz2 = 3; >moduleType\u0032.baz2 = 3 : number ->moduleType\u0032.baz2 : number ->moduleType\u0032 : typeof moduleType\u0032 ->baz2 : number +>moduleType\u0032.baz2 : number, Symbol(moduleType\u0032.baz2, Decl(escapedIdentifiers.ts, 25, 14)) +>moduleType\u0032 : typeof moduleType\u0032, Symbol(moduleType\u0032, Decl(escapedIdentifiers.ts, 23, 1)) +>baz2 : number, Symbol(moduleType\u0032.baz2, Decl(escapedIdentifiers.ts, 25, 14)) +>3 : number // classes class classType1 { ->classType1 : classType1 +>classType1 : classType1, Symbol(classType1, Decl(escapedIdentifiers.ts, 31, 26)) public foo1: number; ->foo1 : number +>foo1 : number, Symbol(foo1, Decl(escapedIdentifiers.ts, 35, 18)) } class classType\u0032 { ->classType\u0032 : classType\u0032 +>classType\u0032 : classType\u0032, Symbol(classType\u0032, Decl(escapedIdentifiers.ts, 37, 1)) public foo2: number; ->foo2 : number +>foo2 : number, Symbol(foo2, Decl(escapedIdentifiers.ts, 38, 23)) } var classType1Object1 = new classType1(); ->classType1Object1 : classType1 +>classType1Object1 : classType1, Symbol(classType1Object1, Decl(escapedIdentifiers.ts, 42, 3)) >new classType1() : classType1 ->classType1 : typeof classType1 +>classType1 : typeof classType1, Symbol(classType1, Decl(escapedIdentifiers.ts, 31, 26)) classType1Object1.foo1 = 2; >classType1Object1.foo1 = 2 : number ->classType1Object1.foo1 : number ->classType1Object1 : classType1 ->foo1 : number +>classType1Object1.foo1 : number, Symbol(classType1.foo1, Decl(escapedIdentifiers.ts, 35, 18)) +>classType1Object1 : classType1, Symbol(classType1Object1, Decl(escapedIdentifiers.ts, 42, 3)) +>foo1 : number, Symbol(classType1.foo1, Decl(escapedIdentifiers.ts, 35, 18)) +>2 : number var classType1Object2 = new classType\u0031(); ->classType1Object2 : classType1 +>classType1Object2 : classType1, Symbol(classType1Object2, Decl(escapedIdentifiers.ts, 44, 3)) >new classType\u0031() : classType1 ->classType\u0031 : typeof classType1 +>classType\u0031 : typeof classType1, Symbol(classType1, Decl(escapedIdentifiers.ts, 31, 26)) classType1Object2.foo1 = 2; >classType1Object2.foo1 = 2 : number ->classType1Object2.foo1 : number ->classType1Object2 : classType1 ->foo1 : number +>classType1Object2.foo1 : number, Symbol(classType1.foo1, Decl(escapedIdentifiers.ts, 35, 18)) +>classType1Object2 : classType1, Symbol(classType1Object2, Decl(escapedIdentifiers.ts, 44, 3)) +>foo1 : number, Symbol(classType1.foo1, Decl(escapedIdentifiers.ts, 35, 18)) +>2 : number var classType2Object1 = new classType2(); ->classType2Object1 : classType\u0032 +>classType2Object1 : classType\u0032, Symbol(classType2Object1, Decl(escapedIdentifiers.ts, 46, 3)) >new classType2() : classType\u0032 ->classType2 : typeof classType\u0032 +>classType2 : typeof classType\u0032, Symbol(classType\u0032, Decl(escapedIdentifiers.ts, 37, 1)) classType2Object1.foo2 = 2; >classType2Object1.foo2 = 2 : number ->classType2Object1.foo2 : number ->classType2Object1 : classType\u0032 ->foo2 : number +>classType2Object1.foo2 : number, Symbol(classType\u0032.foo2, Decl(escapedIdentifiers.ts, 38, 23)) +>classType2Object1 : classType\u0032, Symbol(classType2Object1, Decl(escapedIdentifiers.ts, 46, 3)) +>foo2 : number, Symbol(classType\u0032.foo2, Decl(escapedIdentifiers.ts, 38, 23)) +>2 : number var classType2Object2 = new classType\u0032(); ->classType2Object2 : classType\u0032 +>classType2Object2 : classType\u0032, Symbol(classType2Object2, Decl(escapedIdentifiers.ts, 48, 3)) >new classType\u0032() : classType\u0032 ->classType\u0032 : typeof classType\u0032 +>classType\u0032 : typeof classType\u0032, Symbol(classType\u0032, Decl(escapedIdentifiers.ts, 37, 1)) classType2Object2.foo2 = 2; >classType2Object2.foo2 = 2 : number ->classType2Object2.foo2 : number ->classType2Object2 : classType\u0032 ->foo2 : number +>classType2Object2.foo2 : number, Symbol(classType\u0032.foo2, Decl(escapedIdentifiers.ts, 38, 23)) +>classType2Object2 : classType\u0032, Symbol(classType2Object2, Decl(escapedIdentifiers.ts, 48, 3)) +>foo2 : number, Symbol(classType\u0032.foo2, Decl(escapedIdentifiers.ts, 38, 23)) +>2 : number // interfaces interface interfaceType1 { ->interfaceType1 : interfaceType1 +>interfaceType1 : interfaceType1, Symbol(interfaceType1, Decl(escapedIdentifiers.ts, 49, 27)) bar1: number; ->bar1 : number +>bar1 : number, Symbol(bar1, Decl(escapedIdentifiers.ts, 52, 26)) } interface interfaceType\u0032 { ->interfaceType\u0032 : interfaceType\u0032 +>interfaceType\u0032 : interfaceType\u0032, Symbol(interfaceType\u0032, Decl(escapedIdentifiers.ts, 54, 1)) bar2: number; ->bar2 : number +>bar2 : number, Symbol(bar2, Decl(escapedIdentifiers.ts, 55, 31)) } var interfaceType1Object1 = { bar1: 0 }; ->interfaceType1Object1 : interfaceType1 +>interfaceType1Object1 : interfaceType1, Symbol(interfaceType1Object1, Decl(escapedIdentifiers.ts, 59, 3)) >{ bar1: 0 } : interfaceType1 ->interfaceType1 : interfaceType1 +>interfaceType1 : interfaceType1, Symbol(interfaceType1, Decl(escapedIdentifiers.ts, 49, 27)) >{ bar1: 0 } : { bar1: number; } ->bar1 : number +>bar1 : number, Symbol(bar1, Decl(escapedIdentifiers.ts, 59, 45)) +>0 : number interfaceType1Object1.bar1 = 2; >interfaceType1Object1.bar1 = 2 : number ->interfaceType1Object1.bar1 : number ->interfaceType1Object1 : interfaceType1 ->bar1 : number +>interfaceType1Object1.bar1 : number, Symbol(interfaceType1.bar1, Decl(escapedIdentifiers.ts, 52, 26)) +>interfaceType1Object1 : interfaceType1, Symbol(interfaceType1Object1, Decl(escapedIdentifiers.ts, 59, 3)) +>bar1 : number, Symbol(interfaceType1.bar1, Decl(escapedIdentifiers.ts, 52, 26)) +>2 : number var interfaceType1Object2 = { bar1: 0 }; ->interfaceType1Object2 : interfaceType1 +>interfaceType1Object2 : interfaceType1, Symbol(interfaceType1Object2, Decl(escapedIdentifiers.ts, 61, 3)) >{ bar1: 0 } : interfaceType1 ->interfaceType\u0031 : interfaceType1 +>interfaceType\u0031 : interfaceType1, Symbol(interfaceType1, Decl(escapedIdentifiers.ts, 49, 27)) >{ bar1: 0 } : { bar1: number; } ->bar1 : number +>bar1 : number, Symbol(bar1, Decl(escapedIdentifiers.ts, 61, 50)) +>0 : number interfaceType1Object2.bar1 = 2; >interfaceType1Object2.bar1 = 2 : number ->interfaceType1Object2.bar1 : number ->interfaceType1Object2 : interfaceType1 ->bar1 : number +>interfaceType1Object2.bar1 : number, Symbol(interfaceType1.bar1, Decl(escapedIdentifiers.ts, 52, 26)) +>interfaceType1Object2 : interfaceType1, Symbol(interfaceType1Object2, Decl(escapedIdentifiers.ts, 61, 3)) +>bar1 : number, Symbol(interfaceType1.bar1, Decl(escapedIdentifiers.ts, 52, 26)) +>2 : number var interfaceType2Object1 = { bar2: 0 }; ->interfaceType2Object1 : interfaceType\u0032 +>interfaceType2Object1 : interfaceType\u0032, Symbol(interfaceType2Object1, Decl(escapedIdentifiers.ts, 63, 3)) >{ bar2: 0 } : interfaceType\u0032 ->interfaceType2 : interfaceType\u0032 +>interfaceType2 : interfaceType\u0032, Symbol(interfaceType\u0032, Decl(escapedIdentifiers.ts, 54, 1)) >{ bar2: 0 } : { bar2: number; } ->bar2 : number +>bar2 : number, Symbol(bar2, Decl(escapedIdentifiers.ts, 63, 45)) +>0 : number interfaceType2Object1.bar2 = 2; >interfaceType2Object1.bar2 = 2 : number ->interfaceType2Object1.bar2 : number ->interfaceType2Object1 : interfaceType\u0032 ->bar2 : number +>interfaceType2Object1.bar2 : number, Symbol(interfaceType\u0032.bar2, Decl(escapedIdentifiers.ts, 55, 31)) +>interfaceType2Object1 : interfaceType\u0032, Symbol(interfaceType2Object1, Decl(escapedIdentifiers.ts, 63, 3)) +>bar2 : number, Symbol(interfaceType\u0032.bar2, Decl(escapedIdentifiers.ts, 55, 31)) +>2 : number var interfaceType2Object2 = { bar2: 0 }; ->interfaceType2Object2 : interfaceType\u0032 +>interfaceType2Object2 : interfaceType\u0032, Symbol(interfaceType2Object2, Decl(escapedIdentifiers.ts, 65, 3)) >{ bar2: 0 } : interfaceType\u0032 ->interfaceType\u0032 : interfaceType\u0032 +>interfaceType\u0032 : interfaceType\u0032, Symbol(interfaceType\u0032, Decl(escapedIdentifiers.ts, 54, 1)) >{ bar2: 0 } : { bar2: number; } ->bar2 : number +>bar2 : number, Symbol(bar2, Decl(escapedIdentifiers.ts, 65, 50)) +>0 : number interfaceType2Object2.bar2 = 2; >interfaceType2Object2.bar2 = 2 : number ->interfaceType2Object2.bar2 : number ->interfaceType2Object2 : interfaceType\u0032 ->bar2 : number +>interfaceType2Object2.bar2 : number, Symbol(interfaceType\u0032.bar2, Decl(escapedIdentifiers.ts, 55, 31)) +>interfaceType2Object2 : interfaceType\u0032, Symbol(interfaceType2Object2, Decl(escapedIdentifiers.ts, 65, 3)) +>bar2 : number, Symbol(interfaceType\u0032.bar2, Decl(escapedIdentifiers.ts, 55, 31)) +>2 : number // arguments class testClass { ->testClass : testClass +>testClass : testClass, Symbol(testClass, Decl(escapedIdentifiers.ts, 66, 31)) public func(arg1: number, arg\u0032: string, arg\u0033: boolean, arg4: number) { ->func : (arg1: number, arg\u0032: string, arg\u0033: boolean, arg4: number) => void ->arg1 : number ->arg\u0032 : string ->arg\u0033 : boolean ->arg4 : number +>func : (arg1: number, arg\u0032: string, arg\u0033: boolean, arg4: number) => void, Symbol(func, Decl(escapedIdentifiers.ts, 70, 17)) +>arg1 : number, Symbol(arg1, Decl(escapedIdentifiers.ts, 71, 16)) +>arg\u0032 : string, Symbol(arg\u0032, Decl(escapedIdentifiers.ts, 71, 29)) +>arg\u0033 : boolean, Symbol(arg\u0033, Decl(escapedIdentifiers.ts, 71, 48)) +>arg4 : number, Symbol(arg4, Decl(escapedIdentifiers.ts, 71, 68)) arg\u0031 = 1; >arg\u0031 = 1 : number ->arg\u0031 : number +>arg\u0031 : number, Symbol(arg1, Decl(escapedIdentifiers.ts, 71, 16)) +>1 : number arg2 = 'string'; >arg2 = 'string' : string ->arg2 : string +>arg2 : string, Symbol(arg\u0032, Decl(escapedIdentifiers.ts, 71, 29)) +>'string' : string arg\u0033 = true; >arg\u0033 = true : boolean ->arg\u0033 : boolean +>arg\u0033 : boolean, Symbol(arg\u0033, Decl(escapedIdentifiers.ts, 71, 48)) +>true : boolean arg4 = 2; >arg4 = 2 : number ->arg4 : number +>arg4 : number, Symbol(arg4, Decl(escapedIdentifiers.ts, 71, 68)) +>2 : number } } // constructors class constructorTestClass { ->constructorTestClass : constructorTestClass +>constructorTestClass : constructorTestClass, Symbol(constructorTestClass, Decl(escapedIdentifiers.ts, 77, 1)) constructor (public arg1: number,public arg\u0032: string,public arg\u0033: boolean,public arg4: number) { ->arg1 : number ->arg\u0032 : string ->arg\u0033 : boolean ->arg4 : number +>arg1 : number, Symbol(arg1, Decl(escapedIdentifiers.ts, 81, 17)) +>arg\u0032 : string, Symbol(arg\u0032, Decl(escapedIdentifiers.ts, 81, 37)) +>arg\u0033 : boolean, Symbol(arg\u0033, Decl(escapedIdentifiers.ts, 81, 62)) +>arg4 : number, Symbol(arg4, Decl(escapedIdentifiers.ts, 81, 88)) } } var constructorTestObject = new constructorTestClass(1, 'string', true, 2); ->constructorTestObject : constructorTestClass +>constructorTestObject : constructorTestClass, Symbol(constructorTestObject, Decl(escapedIdentifiers.ts, 84, 3)) >new constructorTestClass(1, 'string', true, 2) : constructorTestClass ->constructorTestClass : typeof constructorTestClass +>constructorTestClass : typeof constructorTestClass, Symbol(constructorTestClass, Decl(escapedIdentifiers.ts, 77, 1)) +>1 : number +>'string' : string +>true : boolean +>2 : number constructorTestObject.arg\u0031 = 1; >constructorTestObject.arg\u0031 = 1 : number ->constructorTestObject.arg\u0031 : number ->constructorTestObject : constructorTestClass ->arg\u0031 : number +>constructorTestObject.arg\u0031 : number, Symbol(constructorTestClass.arg1, Decl(escapedIdentifiers.ts, 81, 17)) +>constructorTestObject : constructorTestClass, Symbol(constructorTestObject, Decl(escapedIdentifiers.ts, 84, 3)) +>arg\u0031 : number, Symbol(constructorTestClass.arg1, Decl(escapedIdentifiers.ts, 81, 17)) +>1 : number constructorTestObject.arg2 = 'string'; >constructorTestObject.arg2 = 'string' : string ->constructorTestObject.arg2 : string ->constructorTestObject : constructorTestClass ->arg2 : string +>constructorTestObject.arg2 : string, Symbol(constructorTestClass.arg\u0032, Decl(escapedIdentifiers.ts, 81, 37)) +>constructorTestObject : constructorTestClass, Symbol(constructorTestObject, Decl(escapedIdentifiers.ts, 84, 3)) +>arg2 : string, Symbol(constructorTestClass.arg\u0032, Decl(escapedIdentifiers.ts, 81, 37)) +>'string' : string constructorTestObject.arg\u0033 = true; >constructorTestObject.arg\u0033 = true : boolean ->constructorTestObject.arg\u0033 : boolean ->constructorTestObject : constructorTestClass ->arg\u0033 : boolean +>constructorTestObject.arg\u0033 : boolean, Symbol(constructorTestClass.arg\u0033, Decl(escapedIdentifiers.ts, 81, 62)) +>constructorTestObject : constructorTestClass, Symbol(constructorTestObject, Decl(escapedIdentifiers.ts, 84, 3)) +>arg\u0033 : boolean, Symbol(constructorTestClass.arg\u0033, Decl(escapedIdentifiers.ts, 81, 62)) +>true : boolean constructorTestObject.arg4 = 2; >constructorTestObject.arg4 = 2 : number ->constructorTestObject.arg4 : number ->constructorTestObject : constructorTestClass ->arg4 : number +>constructorTestObject.arg4 : number, Symbol(constructorTestClass.arg4, Decl(escapedIdentifiers.ts, 81, 88)) +>constructorTestObject : constructorTestClass, Symbol(constructorTestObject, Decl(escapedIdentifiers.ts, 84, 3)) +>arg4 : number, Symbol(constructorTestClass.arg4, Decl(escapedIdentifiers.ts, 81, 88)) +>2 : number // Lables l\u0061bel1: +>l\u0061bel1 : any + while (false) +>false : boolean { while(false) +>false : boolean + continue label1; // it will go to next iteration of outer loop +>label1 : any } label2: +>label2 : any + while (false) +>false : boolean { while(false) +>false : boolean + continue l\u0061bel2; // it will go to next iteration of outer loop +>l\u0061bel2 : any } label3: +>label3 : any + while (false) +>false : boolean { while(false) +>false : boolean + continue label3; // it will go to next iteration of outer loop +>label3 : any } l\u0061bel4: +>l\u0061bel4 : any + while (false) +>false : boolean { while(false) +>false : boolean + continue l\u0061bel4; // it will go to next iteration of outer loop +>l\u0061bel4 : any } diff --git a/tests/baselines/reference/escapedReservedCompilerNamedIdentifier.types b/tests/baselines/reference/escapedReservedCompilerNamedIdentifier.types index f54c7b80757..e702ec2df35 100644 --- a/tests/baselines/reference/escapedReservedCompilerNamedIdentifier.types +++ b/tests/baselines/reference/escapedReservedCompilerNamedIdentifier.types @@ -1,85 +1,103 @@ === tests/cases/compiler/escapedReservedCompilerNamedIdentifier.ts === // double underscores var __proto__ = 10; ->__proto__ : number +>__proto__ : number, Symbol(__proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 1, 3)) +>10 : number var o = { ->o : { "__proto__": number; } +>o : { "__proto__": number; }, Symbol(o, Decl(escapedReservedCompilerNamedIdentifier.ts, 2, 3)) >{ "__proto__": 0} : { "__proto__": number; } "__proto__": 0 +>0 : number + }; var b = o["__proto__"]; ->b : number +>b : number, Symbol(b, Decl(escapedReservedCompilerNamedIdentifier.ts, 5, 3)) >o["__proto__"] : number ->o : { "__proto__": number; } +>o : { "__proto__": number; }, Symbol(o, Decl(escapedReservedCompilerNamedIdentifier.ts, 2, 3)) +>"__proto__" : string, Symbol("__proto__", Decl(escapedReservedCompilerNamedIdentifier.ts, 2, 9)) var o1 = { ->o1 : { __proto__: number; } +>o1 : { __proto__: number; }, Symbol(o1, Decl(escapedReservedCompilerNamedIdentifier.ts, 6, 3)) >{ __proto__: 0} : { __proto__: number; } __proto__: 0 ->__proto__ : number +>__proto__ : number, Symbol(__proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 6, 10)) +>0 : number }; var b1 = o1["__proto__"]; ->b1 : number +>b1 : number, Symbol(b1, Decl(escapedReservedCompilerNamedIdentifier.ts, 9, 3)) >o1["__proto__"] : number ->o1 : { __proto__: number; } +>o1 : { __proto__: number; }, Symbol(o1, Decl(escapedReservedCompilerNamedIdentifier.ts, 6, 3)) +>"__proto__" : string, Symbol(__proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 6, 10)) // Triple underscores var ___proto__ = 10; ->___proto__ : number +>___proto__ : number, Symbol(___proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 11, 3)) +>10 : number var o2 = { ->o2 : { "___proto__": number; } +>o2 : { "___proto__": number; }, Symbol(o2, Decl(escapedReservedCompilerNamedIdentifier.ts, 12, 3)) >{ "___proto__": 0} : { "___proto__": number; } "___proto__": 0 +>0 : number + }; var b2 = o2["___proto__"]; ->b2 : number +>b2 : number, Symbol(b2, Decl(escapedReservedCompilerNamedIdentifier.ts, 15, 3)) >o2["___proto__"] : number ->o2 : { "___proto__": number; } +>o2 : { "___proto__": number; }, Symbol(o2, Decl(escapedReservedCompilerNamedIdentifier.ts, 12, 3)) +>"___proto__" : string, Symbol("___proto__", Decl(escapedReservedCompilerNamedIdentifier.ts, 12, 10)) var o3 = { ->o3 : { ___proto__: number; } +>o3 : { ___proto__: number; }, Symbol(o3, Decl(escapedReservedCompilerNamedIdentifier.ts, 16, 3)) >{ ___proto__: 0} : { ___proto__: number; } ___proto__: 0 ->___proto__ : number +>___proto__ : number, Symbol(___proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 16, 10)) +>0 : number }; var b3 = o3["___proto__"]; ->b3 : number +>b3 : number, Symbol(b3, Decl(escapedReservedCompilerNamedIdentifier.ts, 19, 3)) >o3["___proto__"] : number ->o3 : { ___proto__: number; } +>o3 : { ___proto__: number; }, Symbol(o3, Decl(escapedReservedCompilerNamedIdentifier.ts, 16, 3)) +>"___proto__" : string, Symbol(___proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 16, 10)) // One underscore var _proto__ = 10; ->_proto__ : number +>_proto__ : number, Symbol(_proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 21, 3)) +>10 : number var o4 = { ->o4 : { "_proto__": number; } +>o4 : { "_proto__": number; }, Symbol(o4, Decl(escapedReservedCompilerNamedIdentifier.ts, 22, 3)) >{ "_proto__": 0} : { "_proto__": number; } "_proto__": 0 +>0 : number + }; var b4 = o4["_proto__"]; ->b4 : number +>b4 : number, Symbol(b4, Decl(escapedReservedCompilerNamedIdentifier.ts, 25, 3)) >o4["_proto__"] : number ->o4 : { "_proto__": number; } +>o4 : { "_proto__": number; }, Symbol(o4, Decl(escapedReservedCompilerNamedIdentifier.ts, 22, 3)) +>"_proto__" : string, Symbol("_proto__", Decl(escapedReservedCompilerNamedIdentifier.ts, 22, 10)) var o5 = { ->o5 : { _proto__: number; } +>o5 : { _proto__: number; }, Symbol(o5, Decl(escapedReservedCompilerNamedIdentifier.ts, 26, 3)) >{ _proto__: 0} : { _proto__: number; } _proto__: 0 ->_proto__ : number +>_proto__ : number, Symbol(_proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 26, 10)) +>0 : number }; var b5 = o5["_proto__"]; ->b5 : number +>b5 : number, Symbol(b5, Decl(escapedReservedCompilerNamedIdentifier.ts, 29, 3)) >o5["_proto__"] : number ->o5 : { _proto__: number; } +>o5 : { _proto__: number; }, Symbol(o5, Decl(escapedReservedCompilerNamedIdentifier.ts, 26, 3)) +>"_proto__" : string, Symbol(_proto__, Decl(escapedReservedCompilerNamedIdentifier.ts, 26, 10)) diff --git a/tests/baselines/reference/everyTypeAssignableToAny.types b/tests/baselines/reference/everyTypeAssignableToAny.types index 89af4f4b7c0..189122cd2d3 100644 --- a/tests/baselines/reference/everyTypeAssignableToAny.types +++ b/tests/baselines/reference/everyTypeAssignableToAny.types @@ -1,211 +1,211 @@ === tests/cases/conformance/types/typeRelationships/assignmentCompatibility/everyTypeAssignableToAny.ts === var a: any; ->a : any +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) class C { ->C : C +>C : C, Symbol(C, Decl(everyTypeAssignableToAny.ts, 0, 11)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(everyTypeAssignableToAny.ts, 2, 9)) } var ac: C; ->ac : C ->C : C +>ac : C, Symbol(ac, Decl(everyTypeAssignableToAny.ts, 5, 3)) +>C : C, Symbol(C, Decl(everyTypeAssignableToAny.ts, 0, 11)) interface I { ->I : I +>I : I, Symbol(I, Decl(everyTypeAssignableToAny.ts, 5, 10)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(everyTypeAssignableToAny.ts, 6, 13)) } var ai: I; ->ai : I ->I : I +>ai : I, Symbol(ai, Decl(everyTypeAssignableToAny.ts, 9, 3)) +>I : I, Symbol(I, Decl(everyTypeAssignableToAny.ts, 5, 10)) enum E { A } ->E : E ->A : E +>E : E, Symbol(E, Decl(everyTypeAssignableToAny.ts, 9, 10)) +>A : E, Symbol(E.A, Decl(everyTypeAssignableToAny.ts, 11, 8)) var ae: E; ->ae : E ->E : E +>ae : E, Symbol(ae, Decl(everyTypeAssignableToAny.ts, 12, 3)) +>E : E, Symbol(E, Decl(everyTypeAssignableToAny.ts, 9, 10)) var b: number; ->b : number +>b : number, Symbol(b, Decl(everyTypeAssignableToAny.ts, 14, 3)) var c: string; ->c : string +>c : string, Symbol(c, Decl(everyTypeAssignableToAny.ts, 15, 3)) var d: boolean; ->d : boolean +>d : boolean, Symbol(d, Decl(everyTypeAssignableToAny.ts, 16, 3)) var e: Date; ->e : Date ->Date : Date +>e : Date, Symbol(e, Decl(everyTypeAssignableToAny.ts, 17, 3)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var f: any; ->f : any +>f : any, Symbol(f, Decl(everyTypeAssignableToAny.ts, 18, 3)) var g: void; ->g : void +>g : void, Symbol(g, Decl(everyTypeAssignableToAny.ts, 19, 3)) var h: Object; ->h : Object ->Object : Object +>h : Object, Symbol(h, Decl(everyTypeAssignableToAny.ts, 20, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var i: {}; ->i : {} +>i : {}, Symbol(i, Decl(everyTypeAssignableToAny.ts, 21, 3)) var j: () => {}; ->j : () => {} +>j : () => {}, Symbol(j, Decl(everyTypeAssignableToAny.ts, 22, 3)) var k: Function; ->k : Function ->Function : Function +>k : Function, Symbol(k, Decl(everyTypeAssignableToAny.ts, 23, 3)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) var l: (x: number) => string; ->l : (x: number) => string ->x : number +>l : (x: number) => string, Symbol(l, Decl(everyTypeAssignableToAny.ts, 24, 3)) +>x : number, Symbol(x, Decl(everyTypeAssignableToAny.ts, 24, 8)) var m: number[]; ->m : number[] +>m : number[], Symbol(m, Decl(everyTypeAssignableToAny.ts, 25, 3)) var n: { foo: string }; ->n : { foo: string; } ->foo : string +>n : { foo: string; }, Symbol(n, Decl(everyTypeAssignableToAny.ts, 26, 3)) +>foo : string, Symbol(foo, Decl(everyTypeAssignableToAny.ts, 26, 8)) var o: (x: T) => T; ->o : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>o : (x: T) => T, Symbol(o, Decl(everyTypeAssignableToAny.ts, 27, 3)) +>T : T, Symbol(T, Decl(everyTypeAssignableToAny.ts, 27, 8)) +>x : T, Symbol(x, Decl(everyTypeAssignableToAny.ts, 27, 11)) +>T : T, Symbol(T, Decl(everyTypeAssignableToAny.ts, 27, 8)) +>T : T, Symbol(T, Decl(everyTypeAssignableToAny.ts, 27, 8)) var p: Number; ->p : Number ->Number : Number +>p : Number, Symbol(p, Decl(everyTypeAssignableToAny.ts, 28, 3)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) var q: String; ->q : String ->String : String +>q : String, Symbol(q, Decl(everyTypeAssignableToAny.ts, 29, 3)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) a = b; >a = b : number ->a : any ->b : number +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>b : number, Symbol(b, Decl(everyTypeAssignableToAny.ts, 14, 3)) a = c; >a = c : string ->a : any ->c : string +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>c : string, Symbol(c, Decl(everyTypeAssignableToAny.ts, 15, 3)) a = d; >a = d : boolean ->a : any ->d : boolean +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>d : boolean, Symbol(d, Decl(everyTypeAssignableToAny.ts, 16, 3)) a = e; >a = e : Date ->a : any ->e : Date +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>e : Date, Symbol(e, Decl(everyTypeAssignableToAny.ts, 17, 3)) a = f; >a = f : any ->a : any ->f : any +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>f : any, Symbol(f, Decl(everyTypeAssignableToAny.ts, 18, 3)) a = g; >a = g : void ->a : any ->g : void +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>g : void, Symbol(g, Decl(everyTypeAssignableToAny.ts, 19, 3)) a = h; >a = h : Object ->a : any ->h : Object +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>h : Object, Symbol(h, Decl(everyTypeAssignableToAny.ts, 20, 3)) a = i; >a = i : {} ->a : any ->i : {} +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>i : {}, Symbol(i, Decl(everyTypeAssignableToAny.ts, 21, 3)) a = j; >a = j : () => {} ->a : any ->j : () => {} +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>j : () => {}, Symbol(j, Decl(everyTypeAssignableToAny.ts, 22, 3)) a = k; >a = k : Function ->a : any ->k : Function +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>k : Function, Symbol(k, Decl(everyTypeAssignableToAny.ts, 23, 3)) a = l; >a = l : (x: number) => string ->a : any ->l : (x: number) => string +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>l : (x: number) => string, Symbol(l, Decl(everyTypeAssignableToAny.ts, 24, 3)) a = m; >a = m : number[] ->a : any ->m : number[] +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>m : number[], Symbol(m, Decl(everyTypeAssignableToAny.ts, 25, 3)) a = o; >a = o : (x: T) => T ->a : any ->o : (x: T) => T +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>o : (x: T) => T, Symbol(o, Decl(everyTypeAssignableToAny.ts, 27, 3)) a = p; >a = p : Number ->a : any ->p : Number +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>p : Number, Symbol(p, Decl(everyTypeAssignableToAny.ts, 28, 3)) a = q; >a = q : String ->a : any ->q : String +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>q : String, Symbol(q, Decl(everyTypeAssignableToAny.ts, 29, 3)) a = ac; >a = ac : C ->a : any ->ac : C +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>ac : C, Symbol(ac, Decl(everyTypeAssignableToAny.ts, 5, 3)) a = ai; >a = ai : I ->a : any ->ai : I +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>ai : I, Symbol(ai, Decl(everyTypeAssignableToAny.ts, 9, 3)) a = ae; >a = ae : E ->a : any ->ae : E +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>ae : E, Symbol(ae, Decl(everyTypeAssignableToAny.ts, 12, 3)) function foo(x: T, y: U, z: V) { ->foo : (x: T, y: U, z: V) => void ->T : T ->U : U ->V : V ->Date : Date ->x : T ->T : T ->y : U ->U : U ->z : V ->V : V +>foo : (x: T, y: U, z: V) => void, Symbol(foo, Decl(everyTypeAssignableToAny.ts, 48, 7)) +>T : T, Symbol(T, Decl(everyTypeAssignableToAny.ts, 50, 13)) +>U : U, Symbol(U, Decl(everyTypeAssignableToAny.ts, 50, 15)) +>V : V, Symbol(V, Decl(everyTypeAssignableToAny.ts, 50, 32)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : T, Symbol(x, Decl(everyTypeAssignableToAny.ts, 50, 49)) +>T : T, Symbol(T, Decl(everyTypeAssignableToAny.ts, 50, 13)) +>y : U, Symbol(y, Decl(everyTypeAssignableToAny.ts, 50, 54)) +>U : U, Symbol(U, Decl(everyTypeAssignableToAny.ts, 50, 15)) +>z : V, Symbol(z, Decl(everyTypeAssignableToAny.ts, 50, 60)) +>V : V, Symbol(V, Decl(everyTypeAssignableToAny.ts, 50, 32)) a = x; >a = x : T ->a : any ->x : T +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>x : T, Symbol(x, Decl(everyTypeAssignableToAny.ts, 50, 49)) a = y; >a = y : U ->a : any ->y : U +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>y : U, Symbol(y, Decl(everyTypeAssignableToAny.ts, 50, 54)) a = z; >a = z : V ->a : any ->z : V +>a : any, Symbol(a, Decl(everyTypeAssignableToAny.ts, 0, 3)) +>z : V, Symbol(z, Decl(everyTypeAssignableToAny.ts, 50, 60)) } //function foo(x: T, y: U, z: V) { // a = x; diff --git a/tests/baselines/reference/everyTypeWithAnnotationAndInitializer.types b/tests/baselines/reference/everyTypeWithAnnotationAndInitializer.types index c707e694468..c8cde54d391 100644 --- a/tests/baselines/reference/everyTypeWithAnnotationAndInitializer.types +++ b/tests/baselines/reference/everyTypeWithAnnotationAndInitializer.types @@ -1,156 +1,165 @@ === tests/cases/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInitializer.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(everyTypeWithAnnotationAndInitializer.ts, 0, 0)) id: number; ->id : number +>id : number, Symbol(id, Decl(everyTypeWithAnnotationAndInitializer.ts, 0, 13)) } class C implements I { ->C : C ->I : I +>C : C, Symbol(C, Decl(everyTypeWithAnnotationAndInitializer.ts, 2, 1)) +>I : I, Symbol(I, Decl(everyTypeWithAnnotationAndInitializer.ts, 0, 0)) id: number; ->id : number +>id : number, Symbol(id, Decl(everyTypeWithAnnotationAndInitializer.ts, 4, 22)) } class D{ ->D : D ->T : T +>D : D, Symbol(D, Decl(everyTypeWithAnnotationAndInitializer.ts, 6, 1)) +>T : T, Symbol(T, Decl(everyTypeWithAnnotationAndInitializer.ts, 8, 8)) source: T; ->source : T ->T : T +>source : T, Symbol(source, Decl(everyTypeWithAnnotationAndInitializer.ts, 8, 11)) +>T : T, Symbol(T, Decl(everyTypeWithAnnotationAndInitializer.ts, 8, 8)) recurse: D; ->recurse : D ->D : D ->T : T +>recurse : D, Symbol(recurse, Decl(everyTypeWithAnnotationAndInitializer.ts, 9, 14)) +>D : D, Symbol(D, Decl(everyTypeWithAnnotationAndInitializer.ts, 6, 1)) +>T : T, Symbol(T, Decl(everyTypeWithAnnotationAndInitializer.ts, 8, 8)) wrapped: D> ->wrapped : D> ->D : D ->D : D ->T : T +>wrapped : D>, Symbol(wrapped, Decl(everyTypeWithAnnotationAndInitializer.ts, 10, 18)) +>D : D, Symbol(D, Decl(everyTypeWithAnnotationAndInitializer.ts, 6, 1)) +>D : D, Symbol(D, Decl(everyTypeWithAnnotationAndInitializer.ts, 6, 1)) +>T : T, Symbol(T, Decl(everyTypeWithAnnotationAndInitializer.ts, 8, 8)) } function F(x: string): number { return 42; } ->F : (x: string) => number ->x : string +>F : (x: string) => number, Symbol(F, Decl(everyTypeWithAnnotationAndInitializer.ts, 12, 1)) +>x : string, Symbol(x, Decl(everyTypeWithAnnotationAndInitializer.ts, 14, 11)) +>42 : number module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(everyTypeWithAnnotationAndInitializer.ts, 14, 44)) export class A { ->A : A +>A : A, Symbol(A, Decl(everyTypeWithAnnotationAndInitializer.ts, 16, 10)) name: string; ->name : string +>name : string, Symbol(name, Decl(everyTypeWithAnnotationAndInitializer.ts, 17, 20)) } export function F2(x: number): string { return x.toString(); } ->F2 : (x: number) => string ->x : number +>F2 : (x: number) => string, Symbol(F2, Decl(everyTypeWithAnnotationAndInitializer.ts, 19, 5)) +>x : number, Symbol(x, Decl(everyTypeWithAnnotationAndInitializer.ts, 21, 23)) >x.toString() : string ->x.toString : (radix?: number) => string ->x : number ->toString : (radix?: number) => string +>x.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>x : number, Symbol(x, Decl(everyTypeWithAnnotationAndInitializer.ts, 21, 23)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) } var aNumber: number = 9.9; ->aNumber : number +>aNumber : number, Symbol(aNumber, Decl(everyTypeWithAnnotationAndInitializer.ts, 24, 3)) +>9.9 : number var aString: string = 'this is a string'; ->aString : string +>aString : string, Symbol(aString, Decl(everyTypeWithAnnotationAndInitializer.ts, 25, 3)) +>'this is a string' : string var aDate: Date = new Date(12); ->aDate : Date ->Date : Date +>aDate : Date, Symbol(aDate, Decl(everyTypeWithAnnotationAndInitializer.ts, 26, 3)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) >new Date(12) : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>12 : number var anObject: Object = new Object(); ->anObject : Object ->Object : Object +>anObject : Object, Symbol(anObject, Decl(everyTypeWithAnnotationAndInitializer.ts, 27, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) >new Object() : Object ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var anAny: any = null; ->anAny : any +>anAny : any, Symbol(anAny, Decl(everyTypeWithAnnotationAndInitializer.ts, 29, 3)) +>null : null var aSecondAny: any = undefined; ->aSecondAny : any ->undefined : undefined +>aSecondAny : any, Symbol(aSecondAny, Decl(everyTypeWithAnnotationAndInitializer.ts, 30, 3)) +>undefined : undefined, Symbol(undefined) var aVoid: void = undefined; ->aVoid : void ->undefined : undefined +>aVoid : void, Symbol(aVoid, Decl(everyTypeWithAnnotationAndInitializer.ts, 31, 3)) +>undefined : undefined, Symbol(undefined) var anInterface: I = new C(); ->anInterface : I ->I : I +>anInterface : I, Symbol(anInterface, Decl(everyTypeWithAnnotationAndInitializer.ts, 33, 3)) +>I : I, Symbol(I, Decl(everyTypeWithAnnotationAndInitializer.ts, 0, 0)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(everyTypeWithAnnotationAndInitializer.ts, 2, 1)) var aClass: C = new C(); ->aClass : C ->C : C +>aClass : C, Symbol(aClass, Decl(everyTypeWithAnnotationAndInitializer.ts, 34, 3)) +>C : C, Symbol(C, Decl(everyTypeWithAnnotationAndInitializer.ts, 2, 1)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(everyTypeWithAnnotationAndInitializer.ts, 2, 1)) var aGenericClass: D = new D(); ->aGenericClass : D ->D : D +>aGenericClass : D, Symbol(aGenericClass, Decl(everyTypeWithAnnotationAndInitializer.ts, 35, 3)) +>D : D, Symbol(D, Decl(everyTypeWithAnnotationAndInitializer.ts, 6, 1)) >new D() : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(everyTypeWithAnnotationAndInitializer.ts, 6, 1)) var anObjectLiteral: I = { id: 12 }; ->anObjectLiteral : I ->I : I +>anObjectLiteral : I, Symbol(anObjectLiteral, Decl(everyTypeWithAnnotationAndInitializer.ts, 36, 3)) +>I : I, Symbol(I, Decl(everyTypeWithAnnotationAndInitializer.ts, 0, 0)) >{ id: 12 } : { id: number; } ->id : number +>id : number, Symbol(id, Decl(everyTypeWithAnnotationAndInitializer.ts, 36, 26)) +>12 : number var anOtherObjectLiteral: { id: number } = new C(); ->anOtherObjectLiteral : { id: number; } ->id : number +>anOtherObjectLiteral : { id: number; }, Symbol(anOtherObjectLiteral, Decl(everyTypeWithAnnotationAndInitializer.ts, 37, 3)) +>id : number, Symbol(id, Decl(everyTypeWithAnnotationAndInitializer.ts, 37, 27)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(everyTypeWithAnnotationAndInitializer.ts, 2, 1)) var aFunction: typeof F = F; ->aFunction : (x: string) => number ->F : (x: string) => number ->F : (x: string) => number +>aFunction : (x: string) => number, Symbol(aFunction, Decl(everyTypeWithAnnotationAndInitializer.ts, 39, 3)) +>F : (x: string) => number, Symbol(F, Decl(everyTypeWithAnnotationAndInitializer.ts, 12, 1)) +>F : (x: string) => number, Symbol(F, Decl(everyTypeWithAnnotationAndInitializer.ts, 12, 1)) var anOtherFunction: (x: string) => number = F; ->anOtherFunction : (x: string) => number ->x : string ->F : (x: string) => number +>anOtherFunction : (x: string) => number, Symbol(anOtherFunction, Decl(everyTypeWithAnnotationAndInitializer.ts, 40, 3)) +>x : string, Symbol(x, Decl(everyTypeWithAnnotationAndInitializer.ts, 40, 22)) +>F : (x: string) => number, Symbol(F, Decl(everyTypeWithAnnotationAndInitializer.ts, 12, 1)) var aLambda: typeof F = (x) => 2; ->aLambda : (x: string) => number ->F : (x: string) => number +>aLambda : (x: string) => number, Symbol(aLambda, Decl(everyTypeWithAnnotationAndInitializer.ts, 41, 3)) +>F : (x: string) => number, Symbol(F, Decl(everyTypeWithAnnotationAndInitializer.ts, 12, 1)) >(x) => 2 : (x: string) => number ->x : string +>x : string, Symbol(x, Decl(everyTypeWithAnnotationAndInitializer.ts, 41, 25)) +>2 : number var aModule: typeof M = M; ->aModule : typeof M ->M : typeof M ->M : typeof M +>aModule : typeof M, Symbol(aModule, Decl(everyTypeWithAnnotationAndInitializer.ts, 43, 3)) +>M : typeof M, Symbol(M, Decl(everyTypeWithAnnotationAndInitializer.ts, 14, 44)) +>M : typeof M, Symbol(M, Decl(everyTypeWithAnnotationAndInitializer.ts, 14, 44)) var aClassInModule: M.A = new M.A(); ->aClassInModule : M.A ->M : unknown ->A : M.A +>aClassInModule : M.A, Symbol(aClassInModule, Decl(everyTypeWithAnnotationAndInitializer.ts, 44, 3)) +>M : any, Symbol(M, Decl(everyTypeWithAnnotationAndInitializer.ts, 14, 44)) +>A : M.A, Symbol(M.A, Decl(everyTypeWithAnnotationAndInitializer.ts, 16, 10)) >new M.A() : M.A ->M.A : typeof M.A ->M : typeof M ->A : typeof M.A +>M.A : typeof M.A, Symbol(M.A, Decl(everyTypeWithAnnotationAndInitializer.ts, 16, 10)) +>M : typeof M, Symbol(M, Decl(everyTypeWithAnnotationAndInitializer.ts, 14, 44)) +>A : typeof M.A, Symbol(M.A, Decl(everyTypeWithAnnotationAndInitializer.ts, 16, 10)) var aFunctionInModule: typeof M.F2 = (x) => 'this is a string'; ->aFunctionInModule : (x: number) => string ->M : typeof M ->F2 : (x: number) => string +>aFunctionInModule : (x: number) => string, Symbol(aFunctionInModule, Decl(everyTypeWithAnnotationAndInitializer.ts, 45, 3)) +>M.F2 : (x: number) => string, Symbol(M.F2, Decl(everyTypeWithAnnotationAndInitializer.ts, 19, 5)) +>M : typeof M, Symbol(M, Decl(everyTypeWithAnnotationAndInitializer.ts, 14, 44)) +>F2 : (x: number) => string, Symbol(M.F2, Decl(everyTypeWithAnnotationAndInitializer.ts, 19, 5)) >(x) => 'this is a string' : (x: number) => string ->x : number +>x : number, Symbol(x, Decl(everyTypeWithAnnotationAndInitializer.ts, 45, 38)) +>'this is a string' : string diff --git a/tests/baselines/reference/everyTypeWithInitializer.types b/tests/baselines/reference/everyTypeWithInitializer.types index 7a0318718e4..7e9dbef64e9 100644 --- a/tests/baselines/reference/everyTypeWithInitializer.types +++ b/tests/baselines/reference/everyTypeWithInitializer.types @@ -1,135 +1,142 @@ === tests/cases/conformance/statements/VariableStatements/everyTypeWithInitializer.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(everyTypeWithInitializer.ts, 0, 0)) id: number; ->id : number +>id : number, Symbol(id, Decl(everyTypeWithInitializer.ts, 0, 13)) } class C implements I { ->C : C ->I : I +>C : C, Symbol(C, Decl(everyTypeWithInitializer.ts, 2, 1)) +>I : I, Symbol(I, Decl(everyTypeWithInitializer.ts, 0, 0)) id: number; ->id : number +>id : number, Symbol(id, Decl(everyTypeWithInitializer.ts, 4, 22)) } class D{ ->D : D ->T : T +>D : D, Symbol(D, Decl(everyTypeWithInitializer.ts, 6, 1)) +>T : T, Symbol(T, Decl(everyTypeWithInitializer.ts, 8, 8)) source: T; ->source : T ->T : T +>source : T, Symbol(source, Decl(everyTypeWithInitializer.ts, 8, 11)) +>T : T, Symbol(T, Decl(everyTypeWithInitializer.ts, 8, 8)) recurse: D; ->recurse : D ->D : D ->T : T +>recurse : D, Symbol(recurse, Decl(everyTypeWithInitializer.ts, 9, 14)) +>D : D, Symbol(D, Decl(everyTypeWithInitializer.ts, 6, 1)) +>T : T, Symbol(T, Decl(everyTypeWithInitializer.ts, 8, 8)) wrapped: D> ->wrapped : D> ->D : D ->D : D ->T : T +>wrapped : D>, Symbol(wrapped, Decl(everyTypeWithInitializer.ts, 10, 18)) +>D : D, Symbol(D, Decl(everyTypeWithInitializer.ts, 6, 1)) +>D : D, Symbol(D, Decl(everyTypeWithInitializer.ts, 6, 1)) +>T : T, Symbol(T, Decl(everyTypeWithInitializer.ts, 8, 8)) } function F(x: string): number { return 42; } ->F : (x: string) => number ->x : string +>F : (x: string) => number, Symbol(F, Decl(everyTypeWithInitializer.ts, 12, 1)) +>x : string, Symbol(x, Decl(everyTypeWithInitializer.ts, 14, 11)) +>42 : number module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(everyTypeWithInitializer.ts, 14, 44)) export class A { ->A : A +>A : A, Symbol(A, Decl(everyTypeWithInitializer.ts, 16, 10)) name: string; ->name : string +>name : string, Symbol(name, Decl(everyTypeWithInitializer.ts, 17, 20)) } export function F2(x: number): string { return x.toString(); } ->F2 : (x: number) => string ->x : number +>F2 : (x: number) => string, Symbol(F2, Decl(everyTypeWithInitializer.ts, 19, 5)) +>x : number, Symbol(x, Decl(everyTypeWithInitializer.ts, 21, 23)) >x.toString() : string ->x.toString : (radix?: number) => string ->x : number ->toString : (radix?: number) => string +>x.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>x : number, Symbol(x, Decl(everyTypeWithInitializer.ts, 21, 23)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) } var aNumber = 9.9; ->aNumber : number +>aNumber : number, Symbol(aNumber, Decl(everyTypeWithInitializer.ts, 24, 3)) +>9.9 : number var aString = 'this is a string'; ->aString : string +>aString : string, Symbol(aString, Decl(everyTypeWithInitializer.ts, 25, 3)) +>'this is a string' : string var aDate = new Date(12); ->aDate : Date +>aDate : Date, Symbol(aDate, Decl(everyTypeWithInitializer.ts, 26, 3)) >new Date(12) : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>12 : number var anObject = new Object(); ->anObject : Object +>anObject : Object, Symbol(anObject, Decl(everyTypeWithInitializer.ts, 27, 3)) >new Object() : Object ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var anAny = null; ->anAny : any +>anAny : any, Symbol(anAny, Decl(everyTypeWithInitializer.ts, 29, 3)) +>null : null var anOtherAny = new C(); ->anOtherAny : any +>anOtherAny : any, Symbol(anOtherAny, Decl(everyTypeWithInitializer.ts, 30, 3)) > new C() : any >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(everyTypeWithInitializer.ts, 2, 1)) var anUndefined = undefined; ->anUndefined : any ->undefined : undefined +>anUndefined : any, Symbol(anUndefined, Decl(everyTypeWithInitializer.ts, 31, 3)) +>undefined : undefined, Symbol(undefined) var aClass = new C(); ->aClass : C +>aClass : C, Symbol(aClass, Decl(everyTypeWithInitializer.ts, 34, 3)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(everyTypeWithInitializer.ts, 2, 1)) var aGenericClass = new D(); ->aGenericClass : D +>aGenericClass : D, Symbol(aGenericClass, Decl(everyTypeWithInitializer.ts, 35, 3)) >new D() : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(everyTypeWithInitializer.ts, 6, 1)) var anObjectLiteral = { id: 12 }; ->anObjectLiteral : { id: number; } +>anObjectLiteral : { id: number; }, Symbol(anObjectLiteral, Decl(everyTypeWithInitializer.ts, 36, 3)) >{ id: 12 } : { id: number; } ->id : number +>id : number, Symbol(id, Decl(everyTypeWithInitializer.ts, 36, 23)) +>12 : number var aFunction = F; ->aFunction : (x: string) => number ->F : (x: string) => number +>aFunction : (x: string) => number, Symbol(aFunction, Decl(everyTypeWithInitializer.ts, 38, 3)) +>F : (x: string) => number, Symbol(F, Decl(everyTypeWithInitializer.ts, 12, 1)) var aLambda = (x) => 2; ->aLambda : (x: any) => number +>aLambda : (x: any) => number, Symbol(aLambda, Decl(everyTypeWithInitializer.ts, 39, 3)) >(x) => 2 : (x: any) => number ->x : any +>x : any, Symbol(x, Decl(everyTypeWithInitializer.ts, 39, 15)) +>2 : number var aModule = M; ->aModule : typeof M ->M : typeof M +>aModule : typeof M, Symbol(aModule, Decl(everyTypeWithInitializer.ts, 41, 3)) +>M : typeof M, Symbol(M, Decl(everyTypeWithInitializer.ts, 14, 44)) var aClassInModule = new M.A(); ->aClassInModule : M.A +>aClassInModule : M.A, Symbol(aClassInModule, Decl(everyTypeWithInitializer.ts, 42, 3)) >new M.A() : M.A ->M.A : typeof M.A ->M : typeof M ->A : typeof M.A +>M.A : typeof M.A, Symbol(M.A, Decl(everyTypeWithInitializer.ts, 16, 10)) +>M : typeof M, Symbol(M, Decl(everyTypeWithInitializer.ts, 14, 44)) +>A : typeof M.A, Symbol(M.A, Decl(everyTypeWithInitializer.ts, 16, 10)) var aFunctionInModule = M.F2; ->aFunctionInModule : (x: number) => string ->M.F2 : (x: number) => string ->M : typeof M ->F2 : (x: number) => string +>aFunctionInModule : (x: number) => string, Symbol(aFunctionInModule, Decl(everyTypeWithInitializer.ts, 43, 3)) +>M.F2 : (x: number) => string, Symbol(M.F2, Decl(everyTypeWithInitializer.ts, 19, 5)) +>M : typeof M, Symbol(M, Decl(everyTypeWithInitializer.ts, 14, 44)) +>F2 : (x: number) => string, Symbol(M.F2, Decl(everyTypeWithInitializer.ts, 19, 5)) // no initializer or annotation, so this is an 'any' var x; ->x : any +>x : any, Symbol(x, Decl(everyTypeWithInitializer.ts, 46, 3)) diff --git a/tests/baselines/reference/exportAssignClassAndModule.types b/tests/baselines/reference/exportAssignClassAndModule.types index dc4a19f345c..f21b5fac6af 100644 --- a/tests/baselines/reference/exportAssignClassAndModule.types +++ b/tests/baselines/reference/exportAssignClassAndModule.types @@ -1,38 +1,38 @@ === tests/cases/compiler/exportAssignClassAndModule_1.ts === /// import Foo = require('exportAssignClassAndModule_0'); ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(exportAssignClassAndModule_1.ts, 0, 0)) var z: Foo.Bar; ->z : Foo.Bar ->Foo : unknown ->Bar : Foo.Bar +>z : Foo.Bar, Symbol(z, Decl(exportAssignClassAndModule_1.ts, 3, 3)) +>Foo : any, Symbol(Foo, Decl(exportAssignClassAndModule_1.ts, 0, 0)) +>Bar : Foo.Bar, Symbol(Foo.Bar, Decl(exportAssignClassAndModule_0.ts, 3, 12)) var zz: Foo; ->zz : Foo ->Foo : Foo +>zz : Foo, Symbol(zz, Decl(exportAssignClassAndModule_1.ts, 4, 3)) +>Foo : Foo, Symbol(Foo, Decl(exportAssignClassAndModule_1.ts, 0, 0)) zz.x; ->zz.x : Foo.Bar ->zz : Foo ->x : Foo.Bar +>zz.x : Foo.Bar, Symbol(Foo.x, Decl(exportAssignClassAndModule_0.ts, 0, 11)) +>zz : Foo, Symbol(zz, Decl(exportAssignClassAndModule_1.ts, 4, 3)) +>x : Foo.Bar, Symbol(Foo.x, Decl(exportAssignClassAndModule_0.ts, 0, 11)) === tests/cases/compiler/exportAssignClassAndModule_0.ts === class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(exportAssignClassAndModule_0.ts, 0, 0), Decl(exportAssignClassAndModule_0.ts, 2, 1)) x: Foo.Bar; ->x : Foo.Bar ->Foo : unknown ->Bar : Foo.Bar +>x : Foo.Bar, Symbol(x, Decl(exportAssignClassAndModule_0.ts, 0, 11)) +>Foo : any, Symbol(Foo, Decl(exportAssignClassAndModule_0.ts, 0, 0), Decl(exportAssignClassAndModule_0.ts, 2, 1)) +>Bar : Foo.Bar, Symbol(Foo.Bar, Decl(exportAssignClassAndModule_0.ts, 3, 12)) } module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(exportAssignClassAndModule_0.ts, 0, 0), Decl(exportAssignClassAndModule_0.ts, 2, 1)) export interface Bar { ->Bar : Bar +>Bar : Bar, Symbol(Bar, Decl(exportAssignClassAndModule_0.ts, 3, 12)) } } export = Foo; ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(exportAssignClassAndModule_0.ts, 0, 0), Decl(exportAssignClassAndModule_0.ts, 2, 1)) diff --git a/tests/baselines/reference/exportAssignValueAndType.types b/tests/baselines/reference/exportAssignValueAndType.types index fca84f399ec..4cd9d5e382c 100644 --- a/tests/baselines/reference/exportAssignValueAndType.types +++ b/tests/baselines/reference/exportAssignValueAndType.types @@ -1,33 +1,34 @@ === tests/cases/compiler/exportAssignValueAndType.ts === declare module http { ->http : unknown +>http : any, Symbol(http, Decl(exportAssignValueAndType.ts, 0, 0)) export interface Server { openPort: number; } ->Server : Server ->openPort : number +>Server : Server, Symbol(Server, Decl(exportAssignValueAndType.ts, 0, 21)) +>openPort : number, Symbol(openPort, Decl(exportAssignValueAndType.ts, 1, 26)) } interface server { ->server : server +>server : server, Symbol(server, Decl(exportAssignValueAndType.ts, 2, 1), Decl(exportAssignValueAndType.ts, 10, 3)) (): http.Server; ->http : unknown ->Server : http.Server +>http : any, Symbol(http, Decl(exportAssignValueAndType.ts, 0, 0)) +>Server : http.Server, Symbol(http.Server, Decl(exportAssignValueAndType.ts, 0, 21)) startTime: Date; ->startTime : Date ->Date : Date +>startTime : Date, Symbol(startTime, Decl(exportAssignValueAndType.ts, 5, 20)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } var x = 5; ->x : number +>x : number, Symbol(x, Decl(exportAssignValueAndType.ts, 9, 3)) +>5 : number var server = new Date(); ->server : Date +>server : Date, Symbol(server, Decl(exportAssignValueAndType.ts, 2, 1), Decl(exportAssignValueAndType.ts, 10, 3)) >new Date() : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) export = server; ->server : server +>server : server, Symbol(server, Decl(exportAssignValueAndType.ts, 2, 1), Decl(exportAssignValueAndType.ts, 10, 3)) diff --git a/tests/baselines/reference/exportAssignedTypeAsTypeAnnotation.types b/tests/baselines/reference/exportAssignedTypeAsTypeAnnotation.types index 8ac473f970a..12cd19bcc0e 100644 --- a/tests/baselines/reference/exportAssignedTypeAsTypeAnnotation.types +++ b/tests/baselines/reference/exportAssignedTypeAsTypeAnnotation.types @@ -1,23 +1,23 @@ === tests/cases/compiler/exportAssignedTypeAsTypeAnnotation_1.ts === /// import test = require('exportAssignedTypeAsTypeAnnotation_0'); ->test : unknown +>test : any, Symbol(test, Decl(exportAssignedTypeAsTypeAnnotation_1.ts, 0, 0)) var t2: test; // should not raise a 'container type' error ->t2 : test ->test : test +>t2 : test, Symbol(t2, Decl(exportAssignedTypeAsTypeAnnotation_1.ts, 2, 3)) +>test : test, Symbol(test, Decl(exportAssignedTypeAsTypeAnnotation_1.ts, 0, 0)) === tests/cases/compiler/exportAssignedTypeAsTypeAnnotation_0.ts === interface x { ->x : x +>x : x, Symbol(x, Decl(exportAssignedTypeAsTypeAnnotation_0.ts, 0, 0)) (): Date; ->Date : Date +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(exportAssignedTypeAsTypeAnnotation_0.ts, 2, 13)) } export = x; ->x : x +>x : x, Symbol(x, Decl(exportAssignedTypeAsTypeAnnotation_0.ts, 0, 0)) diff --git a/tests/baselines/reference/exportAssignmentCircularModules.types b/tests/baselines/reference/exportAssignmentCircularModules.types index 57d5a8cccce..1d99ffa177f 100644 --- a/tests/baselines/reference/exportAssignmentCircularModules.types +++ b/tests/baselines/reference/exportAssignmentCircularModules.types @@ -1,48 +1,48 @@ === tests/cases/conformance/externalModules/foo_2.ts === import foo0 = require("./foo_0"); ->foo0 : typeof foo0 +>foo0 : typeof foo0, Symbol(foo0, Decl(foo_2.ts, 0, 0)) module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(foo_2.ts, 0, 33)) export var x = foo0.x; ->x : any ->foo0.x : any ->foo0 : typeof foo0 ->x : any +>x : any, Symbol(x, Decl(foo_2.ts, 2, 11)) +>foo0.x : any, Symbol(foo0.x, Decl(foo_0.ts, 2, 11)) +>foo0 : typeof foo0, Symbol(foo0, Decl(foo_2.ts, 0, 0)) +>x : any, Symbol(foo0.x, Decl(foo_0.ts, 2, 11)) } export = Foo; ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(foo_2.ts, 0, 33)) === tests/cases/conformance/externalModules/foo_0.ts === import foo1 = require('./foo_1'); ->foo1 : typeof foo1 +>foo1 : typeof foo1, Symbol(foo1, Decl(foo_0.ts, 0, 0)) module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(foo_0.ts, 0, 33)) export var x = foo1.x; ->x : any ->foo1.x : any ->foo1 : typeof foo1 ->x : any +>x : any, Symbol(x, Decl(foo_0.ts, 2, 11)) +>foo1.x : any, Symbol(foo1.x, Decl(foo_1.ts, 2, 11)) +>foo1 : typeof foo1, Symbol(foo1, Decl(foo_0.ts, 0, 0)) +>x : any, Symbol(foo1.x, Decl(foo_1.ts, 2, 11)) } export = Foo; ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(foo_0.ts, 0, 33)) === tests/cases/conformance/externalModules/foo_1.ts === import foo2 = require("./foo_2"); ->foo2 : typeof foo2 +>foo2 : typeof foo2, Symbol(foo2, Decl(foo_1.ts, 0, 0)) module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(foo_1.ts, 0, 33)) export var x = foo2.x; ->x : any ->foo2.x : any ->foo2 : typeof foo2 ->x : any +>x : any, Symbol(x, Decl(foo_1.ts, 2, 11)) +>foo2.x : any, Symbol(foo2.x, Decl(foo_2.ts, 2, 11)) +>foo2 : typeof foo2, Symbol(foo2, Decl(foo_1.ts, 0, 0)) +>x : any, Symbol(foo2.x, Decl(foo_2.ts, 2, 11)) } export = Foo; ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(foo_1.ts, 0, 33)) diff --git a/tests/baselines/reference/exportAssignmentClass.types b/tests/baselines/reference/exportAssignmentClass.types index c7c3f38d7ea..2d7d37669b7 100644 --- a/tests/baselines/reference/exportAssignmentClass.types +++ b/tests/baselines/reference/exportAssignmentClass.types @@ -1,23 +1,24 @@ === tests/cases/compiler/exportAssignmentClass_B.ts === import D = require("exportAssignmentClass_A"); ->D : typeof D +>D : typeof D, Symbol(D, Decl(exportAssignmentClass_B.ts, 0, 0)) var d = new D(); ->d : D +>d : D, Symbol(d, Decl(exportAssignmentClass_B.ts, 2, 3)) >new D() : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(exportAssignmentClass_B.ts, 0, 0)) var x = d.p; ->x : number ->d.p : number ->d : D ->p : number +>x : number, Symbol(x, Decl(exportAssignmentClass_B.ts, 3, 3)) +>d.p : number, Symbol(D.p, Decl(exportAssignmentClass_A.ts, 0, 9)) +>d : D, Symbol(d, Decl(exportAssignmentClass_B.ts, 2, 3)) +>p : number, Symbol(D.p, Decl(exportAssignmentClass_A.ts, 0, 9)) === tests/cases/compiler/exportAssignmentClass_A.ts === class C { public p = 0; } ->C : C ->p : number +>C : C, Symbol(C, Decl(exportAssignmentClass_A.ts, 0, 0)) +>p : number, Symbol(p, Decl(exportAssignmentClass_A.ts, 0, 9)) +>0 : number export = C; ->C : C +>C : C, Symbol(C, Decl(exportAssignmentClass_A.ts, 0, 0)) diff --git a/tests/baselines/reference/exportAssignmentEnum.types b/tests/baselines/reference/exportAssignmentEnum.types index 9dfa34d3777..cab6a5f87bf 100644 --- a/tests/baselines/reference/exportAssignmentEnum.types +++ b/tests/baselines/reference/exportAssignmentEnum.types @@ -1,39 +1,39 @@ === tests/cases/compiler/exportAssignmentEnum_B.ts === import EnumE = require("exportAssignmentEnum_A"); ->EnumE : typeof EnumE +>EnumE : typeof EnumE, Symbol(EnumE, Decl(exportAssignmentEnum_B.ts, 0, 0)) var a = EnumE.A; ->a : EnumE ->EnumE.A : EnumE ->EnumE : typeof EnumE ->A : EnumE +>a : EnumE, Symbol(a, Decl(exportAssignmentEnum_B.ts, 2, 3)) +>EnumE.A : EnumE, Symbol(EnumE.A, Decl(exportAssignmentEnum_A.ts, 0, 8)) +>EnumE : typeof EnumE, Symbol(EnumE, Decl(exportAssignmentEnum_B.ts, 0, 0)) +>A : EnumE, Symbol(EnumE.A, Decl(exportAssignmentEnum_A.ts, 0, 8)) var b = EnumE.B; ->b : EnumE ->EnumE.B : EnumE ->EnumE : typeof EnumE ->B : EnumE +>b : EnumE, Symbol(b, Decl(exportAssignmentEnum_B.ts, 3, 3)) +>EnumE.B : EnumE, Symbol(EnumE.B, Decl(exportAssignmentEnum_A.ts, 1, 3)) +>EnumE : typeof EnumE, Symbol(EnumE, Decl(exportAssignmentEnum_B.ts, 0, 0)) +>B : EnumE, Symbol(EnumE.B, Decl(exportAssignmentEnum_A.ts, 1, 3)) var c = EnumE.C; ->c : EnumE ->EnumE.C : EnumE ->EnumE : typeof EnumE ->C : EnumE +>c : EnumE, Symbol(c, Decl(exportAssignmentEnum_B.ts, 4, 3)) +>EnumE.C : EnumE, Symbol(EnumE.C, Decl(exportAssignmentEnum_A.ts, 2, 3)) +>EnumE : typeof EnumE, Symbol(EnumE, Decl(exportAssignmentEnum_B.ts, 0, 0)) +>C : EnumE, Symbol(EnumE.C, Decl(exportAssignmentEnum_A.ts, 2, 3)) === tests/cases/compiler/exportAssignmentEnum_A.ts === enum E { ->E : E +>E : E, Symbol(E, Decl(exportAssignmentEnum_A.ts, 0, 0)) A, ->A : E +>A : E, Symbol(E.A, Decl(exportAssignmentEnum_A.ts, 0, 8)) B, ->B : E +>B : E, Symbol(E.B, Decl(exportAssignmentEnum_A.ts, 1, 3)) C, ->C : E +>C : E, Symbol(E.C, Decl(exportAssignmentEnum_A.ts, 2, 3)) } export = E; ->E : E +>E : E, Symbol(E, Decl(exportAssignmentEnum_A.ts, 0, 0)) diff --git a/tests/baselines/reference/exportAssignmentError.types b/tests/baselines/reference/exportAssignmentError.types index 89e7d461fb2..392814d4e4a 100644 --- a/tests/baselines/reference/exportAssignmentError.types +++ b/tests/baselines/reference/exportAssignmentError.types @@ -1,15 +1,15 @@ === tests/cases/compiler/exportAssignmentError.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(exportAssignmentError.ts, 0, 0)) export var x; ->x : any +>x : any, Symbol(x, Decl(exportAssignmentError.ts, 1, 11)) } import M2 = M; ->M2 : typeof M ->M : typeof M +>M2 : typeof M, Symbol(M2, Decl(exportAssignmentError.ts, 2, 1)) +>M : typeof M, Symbol(M, Decl(exportAssignmentError.ts, 0, 0)) export = M2; // should not error ->M2 : typeof M +>M2 : typeof M, Symbol(M2, Decl(exportAssignmentError.ts, 2, 1)) diff --git a/tests/baselines/reference/exportAssignmentFunction.types b/tests/baselines/reference/exportAssignmentFunction.types index 023a8c234d2..548325368da 100644 --- a/tests/baselines/reference/exportAssignmentFunction.types +++ b/tests/baselines/reference/exportAssignmentFunction.types @@ -1,16 +1,17 @@ === tests/cases/compiler/exportAssignmentFunction_B.ts === import fooFunc = require("exportAssignmentFunction_A"); ->fooFunc : () => number +>fooFunc : () => number, Symbol(fooFunc, Decl(exportAssignmentFunction_B.ts, 0, 0)) var n: number = fooFunc(); ->n : number +>n : number, Symbol(n, Decl(exportAssignmentFunction_B.ts, 2, 3)) >fooFunc() : number ->fooFunc : () => number +>fooFunc : () => number, Symbol(fooFunc, Decl(exportAssignmentFunction_B.ts, 0, 0)) === tests/cases/compiler/exportAssignmentFunction_A.ts === function foo() { return 0; } ->foo : () => number +>foo : () => number, Symbol(foo, Decl(exportAssignmentFunction_A.ts, 0, 0)) +>0 : number export = foo; ->foo : () => number +>foo : () => number, Symbol(foo, Decl(exportAssignmentFunction_A.ts, 0, 0)) diff --git a/tests/baselines/reference/exportAssignmentGenericType.types b/tests/baselines/reference/exportAssignmentGenericType.types index 241a8dac954..2c22c81b3ba 100644 --- a/tests/baselines/reference/exportAssignmentGenericType.types +++ b/tests/baselines/reference/exportAssignmentGenericType.types @@ -1,27 +1,27 @@ === tests/cases/conformance/externalModules/foo_1.ts === import foo = require("./foo_0"); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) var x = new foo(); ->x : foo +>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3)) >new foo() : foo ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) var y:number = x.test; ->y : number ->x.test : number ->x : foo ->test : number +>y : number, Symbol(y, Decl(foo_1.ts, 2, 3)) +>x.test : number, Symbol(foo.test, Decl(foo_0.ts, 0, 13)) +>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3)) +>test : number, Symbol(foo.test, Decl(foo_0.ts, 0, 13)) === tests/cases/conformance/externalModules/foo_0.ts === class Foo{ ->Foo : Foo ->T : T +>Foo : Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0)) +>T : T, Symbol(T, Decl(foo_0.ts, 0, 10)) test: T; ->test : T ->T : T +>test : T, Symbol(test, Decl(foo_0.ts, 0, 13)) +>T : T, Symbol(T, Decl(foo_0.ts, 0, 10)) } export = Foo; ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0)) diff --git a/tests/baselines/reference/exportAssignmentInterface.types b/tests/baselines/reference/exportAssignmentInterface.types index f4ed92d9471..77be1b5974d 100644 --- a/tests/baselines/reference/exportAssignmentInterface.types +++ b/tests/baselines/reference/exportAssignmentInterface.types @@ -1,25 +1,25 @@ === tests/cases/compiler/exportAssignmentInterface_B.ts === import I1 = require("exportAssignmentInterface_A"); ->I1 : unknown +>I1 : any, Symbol(I1, Decl(exportAssignmentInterface_B.ts, 0, 0)) var i: I1; ->i : I1 ->I1 : I1 +>i : I1, Symbol(i, Decl(exportAssignmentInterface_B.ts, 2, 3)) +>I1 : I1, Symbol(I1, Decl(exportAssignmentInterface_B.ts, 0, 0)) var n: number = i.p1; ->n : number ->i.p1 : number ->i : I1 ->p1 : number +>n : number, Symbol(n, Decl(exportAssignmentInterface_B.ts, 4, 3)) +>i.p1 : number, Symbol(I1.p1, Decl(exportAssignmentInterface_A.ts, 0, 13)) +>i : I1, Symbol(i, Decl(exportAssignmentInterface_B.ts, 2, 3)) +>p1 : number, Symbol(I1.p1, Decl(exportAssignmentInterface_A.ts, 0, 13)) === tests/cases/compiler/exportAssignmentInterface_A.ts === interface A { ->A : A +>A : A, Symbol(A, Decl(exportAssignmentInterface_A.ts, 0, 0)) p1: number; ->p1 : number +>p1 : number, Symbol(p1, Decl(exportAssignmentInterface_A.ts, 0, 13)) } export = A; ->A : A +>A : A, Symbol(A, Decl(exportAssignmentInterface_A.ts, 0, 0)) diff --git a/tests/baselines/reference/exportAssignmentInternalModule.types b/tests/baselines/reference/exportAssignmentInternalModule.types index 028507b7a04..58bdee0d2d3 100644 --- a/tests/baselines/reference/exportAssignmentInternalModule.types +++ b/tests/baselines/reference/exportAssignmentInternalModule.types @@ -1,21 +1,21 @@ === tests/cases/compiler/exportAssignmentInternalModule_B.ts === import modM = require("exportAssignmentInternalModule_A"); ->modM : typeof modM +>modM : typeof modM, Symbol(modM, Decl(exportAssignmentInternalModule_B.ts, 0, 0)) var n: number = modM.x; ->n : number ->modM.x : any ->modM : typeof modM ->x : any +>n : number, Symbol(n, Decl(exportAssignmentInternalModule_B.ts, 2, 3)) +>modM.x : any, Symbol(modM.x, Decl(exportAssignmentInternalModule_A.ts, 1, 11)) +>modM : typeof modM, Symbol(modM, Decl(exportAssignmentInternalModule_B.ts, 0, 0)) +>x : any, Symbol(modM.x, Decl(exportAssignmentInternalModule_A.ts, 1, 11)) === tests/cases/compiler/exportAssignmentInternalModule_A.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(exportAssignmentInternalModule_A.ts, 0, 0)) export var x; ->x : any +>x : any, Symbol(x, Decl(exportAssignmentInternalModule_A.ts, 1, 11)) } export = M; ->M : typeof M +>M : typeof M, Symbol(M, Decl(exportAssignmentInternalModule_A.ts, 0, 0)) diff --git a/tests/baselines/reference/exportAssignmentMergedInterface.types b/tests/baselines/reference/exportAssignmentMergedInterface.types index d0fb5383b29..307552d21a6 100644 --- a/tests/baselines/reference/exportAssignmentMergedInterface.types +++ b/tests/baselines/reference/exportAssignmentMergedInterface.types @@ -1,69 +1,73 @@ === tests/cases/conformance/externalModules/foo_1.ts === import foo = require("./foo_0"); ->foo : unknown +>foo : any, Symbol(foo, Decl(foo_1.ts, 0, 0)) var x: foo; ->x : foo ->foo : foo +>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3)) +>foo : foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) x("test"); >x("test") : void ->x : foo +>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3)) +>"test" : string x(42); >x(42) : number ->x : foo +>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3)) +>42 : number var y: string = x.b; ->y : string ->x.b : string ->x : foo ->b : string +>y : string, Symbol(y, Decl(foo_1.ts, 4, 3)) +>x.b : string, Symbol(foo.b, Decl(foo_0.ts, 1, 19)) +>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3)) +>b : string, Symbol(foo.b, Decl(foo_0.ts, 1, 19)) if(!!x.c){ } >!!x.c : boolean >!x.c : boolean ->x.c : boolean ->x : foo ->c : boolean +>x.c : boolean, Symbol(foo.c, Decl(foo_0.ts, 5, 21)) +>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3)) +>c : boolean, Symbol(foo.c, Decl(foo_0.ts, 5, 21)) var z = {x: 1, y: 2}; ->z : { x: number; y: number; } +>z : { x: number; y: number; }, Symbol(z, Decl(foo_1.ts, 6, 3)) >{x: 1, y: 2} : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(foo_1.ts, 6, 9)) +>1 : number +>y : number, Symbol(y, Decl(foo_1.ts, 6, 14)) +>2 : number z = x.d; >z = x.d : { x: number; y: number; } ->z : { x: number; y: number; } ->x.d : { x: number; y: number; } ->x : foo ->d : { x: number; y: number; } +>z : { x: number; y: number; }, Symbol(z, Decl(foo_1.ts, 6, 3)) +>x.d : { x: number; y: number; }, Symbol(foo.d, Decl(foo_0.ts, 6, 12)) +>x : foo, Symbol(x, Decl(foo_1.ts, 1, 3)) +>d : { x: number; y: number; }, Symbol(foo.d, Decl(foo_0.ts, 6, 12)) === tests/cases/conformance/externalModules/foo_0.ts === interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 3, 1)) (a: string): void; ->a : string +>a : string, Symbol(a, Decl(foo_0.ts, 1, 2)) b: string; ->b : string +>b : string, Symbol(b, Decl(foo_0.ts, 1, 19)) } interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 3, 1)) (a: number): number; ->a : number +>a : number, Symbol(a, Decl(foo_0.ts, 5, 2)) c: boolean; ->c : boolean +>c : boolean, Symbol(c, Decl(foo_0.ts, 5, 21)) d: {x: number; y: number}; ->d : { x: number; y: number; } ->x : number ->y : number +>d : { x: number; y: number; }, Symbol(d, Decl(foo_0.ts, 6, 12)) +>x : number, Symbol(x, Decl(foo_0.ts, 7, 5)) +>y : number, Symbol(y, Decl(foo_0.ts, 7, 15)) } export = Foo; ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 3, 1)) diff --git a/tests/baselines/reference/exportAssignmentMergedModule.types b/tests/baselines/reference/exportAssignmentMergedModule.types index d72f173a439..6591723ccf5 100644 --- a/tests/baselines/reference/exportAssignmentMergedModule.types +++ b/tests/baselines/reference/exportAssignmentMergedModule.types @@ -1,62 +1,66 @@ === tests/cases/conformance/externalModules/foo_1.ts === import foo = require("./foo_0"); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) var a: number = foo.a(); ->a : number +>a : number, Symbol(a, Decl(foo_1.ts, 1, 3)) >foo.a() : number ->foo.a : () => number ->foo : typeof foo ->a : () => number +>foo.a : () => number, Symbol(foo.a, Decl(foo_0.ts, 0, 12)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>a : () => number, Symbol(foo.a, Decl(foo_0.ts, 0, 12)) if(!!foo.b){ >!!foo.b : boolean >!foo.b : boolean ->foo.b : boolean ->foo : typeof foo ->b : boolean +>foo.b : boolean, Symbol(foo.b, Decl(foo_0.ts, 4, 11)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>b : boolean, Symbol(foo.b, Decl(foo_0.ts, 4, 11)) foo.Test.answer = foo.c(42); >foo.Test.answer = foo.c(42) : number ->foo.Test.answer : number ->foo.Test : typeof foo.Test ->foo : typeof foo ->Test : typeof foo.Test ->answer : number +>foo.Test.answer : number, Symbol(foo.Test.answer, Decl(foo_0.ts, 11, 12)) +>foo.Test : typeof foo.Test, Symbol(foo.Test, Decl(foo_0.ts, 9, 2)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>Test : typeof foo.Test, Symbol(foo.Test, Decl(foo_0.ts, 9, 2)) +>answer : number, Symbol(foo.Test.answer, Decl(foo_0.ts, 11, 12)) >foo.c(42) : number ->foo.c : (a: number) => number ->foo : typeof foo ->c : (a: number) => number +>foo.c : (a: number) => number, Symbol(foo.c, Decl(foo_0.ts, 6, 12)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>c : (a: number) => number, Symbol(foo.c, Decl(foo_0.ts, 6, 12)) +>42 : number } === tests/cases/conformance/externalModules/foo_0.ts === module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 5, 1)) export function a(){ ->a : () => number +>a : () => number, Symbol(a, Decl(foo_0.ts, 0, 12)) return 5; +>5 : number } export var b = true; ->b : boolean +>b : boolean, Symbol(b, Decl(foo_0.ts, 4, 11)) +>true : boolean } module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 5, 1)) export function c(a: number){ ->c : (a: number) => number ->a : number +>c : (a: number) => number, Symbol(c, Decl(foo_0.ts, 6, 12)) +>a : number, Symbol(a, Decl(foo_0.ts, 7, 19)) return a; ->a : number +>a : number, Symbol(a, Decl(foo_0.ts, 7, 19)) } export module Test { ->Test : typeof Test +>Test : typeof Test, Symbol(Test, Decl(foo_0.ts, 9, 2)) export var answer = 42; ->answer : number +>answer : number, Symbol(answer, Decl(foo_0.ts, 11, 12)) +>42 : number } } export = Foo; ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 5, 1)) diff --git a/tests/baselines/reference/exportAssignmentOfGenericType1.types b/tests/baselines/reference/exportAssignmentOfGenericType1.types index 1bf3e7454a7..b489ffb3986 100644 --- a/tests/baselines/reference/exportAssignmentOfGenericType1.types +++ b/tests/baselines/reference/exportAssignmentOfGenericType1.types @@ -1,29 +1,29 @@ === tests/cases/compiler/exportAssignmentOfGenericType1_1.ts === /// import q = require("exportAssignmentOfGenericType1_0"); ->q : typeof q +>q : typeof q, Symbol(q, Decl(exportAssignmentOfGenericType1_1.ts, 0, 0)) class M extends q { } ->M : M ->q : q +>M : M, Symbol(M, Decl(exportAssignmentOfGenericType1_1.ts, 1, 55)) +>q : q, Symbol(q, Decl(exportAssignmentOfGenericType1_1.ts, 0, 0)) var m: M; ->m : M ->M : M +>m : M, Symbol(m, Decl(exportAssignmentOfGenericType1_1.ts, 4, 3)) +>M : M, Symbol(M, Decl(exportAssignmentOfGenericType1_1.ts, 1, 55)) var r: string = m.foo; ->r : string ->m.foo : string ->m : M ->foo : string +>r : string, Symbol(r, Decl(exportAssignmentOfGenericType1_1.ts, 5, 3)) +>m.foo : string, Symbol(q.foo, Decl(exportAssignmentOfGenericType1_0.ts, 1, 12)) +>m : M, Symbol(m, Decl(exportAssignmentOfGenericType1_1.ts, 4, 3)) +>foo : string, Symbol(q.foo, Decl(exportAssignmentOfGenericType1_0.ts, 1, 12)) === tests/cases/compiler/exportAssignmentOfGenericType1_0.ts === export = T; ->T : T +>T : T, Symbol(T, Decl(exportAssignmentOfGenericType1_0.ts, 0, 11)) class T { foo: X; } ->T : T ->X : X ->foo : X ->X : X +>T : T, Symbol(T, Decl(exportAssignmentOfGenericType1_0.ts, 0, 11)) +>X : X, Symbol(X, Decl(exportAssignmentOfGenericType1_0.ts, 1, 8)) +>foo : X, Symbol(foo, Decl(exportAssignmentOfGenericType1_0.ts, 1, 12)) +>X : X, Symbol(X, Decl(exportAssignmentOfGenericType1_0.ts, 1, 8)) diff --git a/tests/baselines/reference/exportAssignmentTopLevelClodule.types b/tests/baselines/reference/exportAssignmentTopLevelClodule.types index 80a56cd7b5f..0ffe0f047d3 100644 --- a/tests/baselines/reference/exportAssignmentTopLevelClodule.types +++ b/tests/baselines/reference/exportAssignmentTopLevelClodule.types @@ -1,32 +1,35 @@ === tests/cases/conformance/externalModules/foo_1.ts === import foo = require("./foo_0"); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) if(foo.answer === 42){ >foo.answer === 42 : boolean ->foo.answer : number ->foo : typeof foo ->answer : number +>foo.answer : number, Symbol(foo.answer, Decl(foo_0.ts, 4, 11)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>answer : number, Symbol(foo.answer, Decl(foo_0.ts, 4, 11)) +>42 : number var x = new foo(); ->x : foo +>x : foo, Symbol(x, Decl(foo_1.ts, 2, 4)) >new foo() : foo ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) } === tests/cases/conformance/externalModules/foo_0.ts === class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 2, 1)) test = "test"; ->test : string +>test : string, Symbol(test, Decl(foo_0.ts, 0, 11)) +>"test" : string } module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 2, 1)) export var answer = 42; ->answer : number +>answer : number, Symbol(answer, Decl(foo_0.ts, 4, 11)) +>42 : number } export = Foo; ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 2, 1)) diff --git a/tests/baselines/reference/exportAssignmentTopLevelEnumdule.types b/tests/baselines/reference/exportAssignmentTopLevelEnumdule.types index 4ee49f6d20f..7b9b79947de 100644 --- a/tests/baselines/reference/exportAssignmentTopLevelEnumdule.types +++ b/tests/baselines/reference/exportAssignmentTopLevelEnumdule.types @@ -1,41 +1,42 @@ === tests/cases/conformance/externalModules/foo_1.ts === import foo = require("./foo_0"); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) var color: foo; ->color : foo ->foo : foo +>color : foo, Symbol(color, Decl(foo_1.ts, 1, 3)) +>foo : foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) if(color === foo.green){ >color === foo.green : boolean ->color : foo ->foo.green : foo ->foo : typeof foo ->green : foo +>color : foo, Symbol(color, Decl(foo_1.ts, 1, 3)) +>foo.green : foo, Symbol(foo.green, Decl(foo_0.ts, 1, 5)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>green : foo, Symbol(foo.green, Decl(foo_0.ts, 1, 5)) color = foo.answer; >color = foo.answer : number ->color : foo ->foo.answer : number ->foo : typeof foo ->answer : number +>color : foo, Symbol(color, Decl(foo_1.ts, 1, 3)) +>foo.answer : number, Symbol(foo.answer, Decl(foo_0.ts, 4, 11)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>answer : number, Symbol(foo.answer, Decl(foo_0.ts, 4, 11)) } === tests/cases/conformance/externalModules/foo_0.ts === enum foo { ->foo : foo +>foo : foo, Symbol(foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 2, 1)) red, green, blue ->red : foo ->green : foo ->blue : foo +>red : foo, Symbol(foo.red, Decl(foo_0.ts, 0, 10)) +>green : foo, Symbol(foo.green, Decl(foo_0.ts, 1, 5)) +>blue : foo, Symbol(foo.blue, Decl(foo_0.ts, 1, 12)) } module foo { ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 2, 1)) export var answer = 42; ->answer : number +>answer : number, Symbol(answer, Decl(foo_0.ts, 4, 11)) +>42 : number } export = foo; ->foo : foo +>foo : foo, Symbol(foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 2, 1)) diff --git a/tests/baselines/reference/exportAssignmentTopLevelFundule.types b/tests/baselines/reference/exportAssignmentTopLevelFundule.types index 982e87e59f3..b9b75064c2a 100644 --- a/tests/baselines/reference/exportAssignmentTopLevelFundule.types +++ b/tests/baselines/reference/exportAssignmentTopLevelFundule.types @@ -1,31 +1,34 @@ === tests/cases/conformance/externalModules/foo_1.ts === import foo = require("./foo_0"); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) if(foo.answer === 42){ >foo.answer === 42 : boolean ->foo.answer : number ->foo : typeof foo ->answer : number +>foo.answer : number, Symbol(foo.answer, Decl(foo_0.ts, 4, 11)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>answer : number, Symbol(foo.answer, Decl(foo_0.ts, 4, 11)) +>42 : number var x = foo(); ->x : string +>x : string, Symbol(x, Decl(foo_1.ts, 2, 4)) >foo() : string ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) } === tests/cases/conformance/externalModules/foo_0.ts === function foo() { ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 2, 1)) return "test"; +>"test" : string } module foo { ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 2, 1)) export var answer = 42; ->answer : number +>answer : number, Symbol(answer, Decl(foo_0.ts, 4, 11)) +>42 : number } export = foo; ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_0.ts, 0, 0), Decl(foo_0.ts, 2, 1)) diff --git a/tests/baselines/reference/exportAssignmentTopLevelIdentifier.types b/tests/baselines/reference/exportAssignmentTopLevelIdentifier.types index 09d881715dd..1e83760d023 100644 --- a/tests/baselines/reference/exportAssignmentTopLevelIdentifier.types +++ b/tests/baselines/reference/exportAssignmentTopLevelIdentifier.types @@ -1,22 +1,24 @@ === tests/cases/conformance/externalModules/foo_1.ts === import foo = require("./foo_0"); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) if(foo.answer === 42){ >foo.answer === 42 : boolean ->foo.answer : number ->foo : typeof foo ->answer : number +>foo.answer : number, Symbol(foo.answer, Decl(foo_0.ts, 1, 11)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>answer : number, Symbol(foo.answer, Decl(foo_0.ts, 1, 11)) +>42 : number } === tests/cases/conformance/externalModules/foo_0.ts === module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0)) export var answer = 42; ->answer : number +>answer : number, Symbol(answer, Decl(foo_0.ts, 1, 11)) +>42 : number } export = Foo; ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(foo_0.ts, 0, 0)) diff --git a/tests/baselines/reference/exportAssignmentVariable.types b/tests/baselines/reference/exportAssignmentVariable.types index 36f02f60a95..c359f8823d7 100644 --- a/tests/baselines/reference/exportAssignmentVariable.types +++ b/tests/baselines/reference/exportAssignmentVariable.types @@ -1,15 +1,16 @@ === tests/cases/compiler/exportAssignmentVariable_B.ts === import y = require("exportAssignmentVariable_A"); ->y : number +>y : number, Symbol(y, Decl(exportAssignmentVariable_B.ts, 0, 0)) var n: number = y; ->n : number ->y : number +>n : number, Symbol(n, Decl(exportAssignmentVariable_B.ts, 2, 3)) +>y : number, Symbol(y, Decl(exportAssignmentVariable_B.ts, 0, 0)) === tests/cases/compiler/exportAssignmentVariable_A.ts === var x = 0; ->x : number +>x : number, Symbol(x, Decl(exportAssignmentVariable_A.ts, 0, 3)) +>0 : number export = x; ->x : number +>x : number, Symbol(x, Decl(exportAssignmentVariable_A.ts, 0, 3)) diff --git a/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.types b/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.types index 7d6c7166655..d8a79affa0f 100644 --- a/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.types +++ b/tests/baselines/reference/exportAssignmentWithImportStatementPrivacyError.types @@ -1,57 +1,57 @@ === tests/cases/compiler/exportAssignmentWithImportStatementPrivacyError.ts === module m2 { ->m2 : unknown +>m2 : any, Symbol(m2, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 0, 0)) export interface connectModule { ->connectModule : connectModule +>connectModule : connectModule, Symbol(connectModule, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 0, 11)) (res, req, next): void; ->res : any ->req : any ->next : any +>res : any, Symbol(res, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 2, 9)) +>req : any, Symbol(req, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 2, 13)) +>next : any, Symbol(next, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 2, 18)) } export interface connectExport { ->connectExport : connectExport +>connectExport : connectExport, Symbol(connectExport, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 3, 5)) use: (mod: connectModule) => connectExport; ->use : (mod: connectModule) => connectExport ->mod : connectModule ->connectModule : connectModule ->connectExport : connectExport +>use : (mod: connectModule) => connectExport, Symbol(use, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 4, 36)) +>mod : connectModule, Symbol(mod, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 5, 14)) +>connectModule : connectModule, Symbol(connectModule, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 0, 11)) +>connectExport : connectExport, Symbol(connectExport, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 3, 5)) listen: (port: number) => void; ->listen : (port: number) => void ->port : number +>listen : (port: number) => void, Symbol(listen, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 5, 51)) +>port : number, Symbol(port, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 6, 17)) } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 9, 1)) export var server: { ->server : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } +>server : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }, Symbol(server, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 12, 14)) (): m2.connectExport; ->m2 : unknown ->connectExport : m2.connectExport +>m2 : any, Symbol(m2, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 0, 0)) +>connectExport : m2.connectExport, Symbol(m2.connectExport, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 3, 5)) test1: m2.connectModule; ->test1 : m2.connectModule ->m2 : unknown ->connectModule : m2.connectModule +>test1 : m2.connectModule, Symbol(test1, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 13, 29)) +>m2 : any, Symbol(m2, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 0, 0)) +>connectModule : m2.connectModule, Symbol(m2.connectModule, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 0, 11)) test2(): m2.connectModule; ->test2 : () => m2.connectModule ->m2 : unknown ->connectModule : m2.connectModule +>test2 : () => m2.connectModule, Symbol(test2, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 14, 32)) +>m2 : any, Symbol(m2, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 0, 0)) +>connectModule : m2.connectModule, Symbol(m2.connectModule, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 0, 11)) }; } import M22 = M; ->M22 : typeof M ->M : typeof M +>M22 : typeof M, Symbol(M22, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 17, 1)) +>M : typeof M, Symbol(M, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 9, 1)) export = M; ->M : typeof M +>M : typeof M, Symbol(M, Decl(exportAssignmentWithImportStatementPrivacyError.ts, 9, 1)) diff --git a/tests/baselines/reference/exportAssignmentWithPrivacyError.types b/tests/baselines/reference/exportAssignmentWithPrivacyError.types index 272849bd8c9..f1ff3725ce2 100644 --- a/tests/baselines/reference/exportAssignmentWithPrivacyError.types +++ b/tests/baselines/reference/exportAssignmentWithPrivacyError.types @@ -1,43 +1,43 @@ === tests/cases/compiler/exportAssignmentWithPrivacyError.ts === interface connectmodule { ->connectmodule : connectmodule +>connectmodule : connectmodule, Symbol(connectmodule, Decl(exportAssignmentWithPrivacyError.ts, 0, 0)) (res, req, next): void; ->res : any ->req : any ->next : any +>res : any, Symbol(res, Decl(exportAssignmentWithPrivacyError.ts, 1, 5)) +>req : any, Symbol(req, Decl(exportAssignmentWithPrivacyError.ts, 1, 9)) +>next : any, Symbol(next, Decl(exportAssignmentWithPrivacyError.ts, 1, 14)) } interface connectexport { ->connectexport : connectexport +>connectexport : connectexport, Symbol(connectexport, Decl(exportAssignmentWithPrivacyError.ts, 2, 1)) use: (mod: connectmodule) => connectexport; ->use : (mod: connectmodule) => connectexport ->mod : connectmodule ->connectmodule : connectmodule ->connectexport : connectexport +>use : (mod: connectmodule) => connectexport, Symbol(use, Decl(exportAssignmentWithPrivacyError.ts, 3, 25)) +>mod : connectmodule, Symbol(mod, Decl(exportAssignmentWithPrivacyError.ts, 4, 10)) +>connectmodule : connectmodule, Symbol(connectmodule, Decl(exportAssignmentWithPrivacyError.ts, 0, 0)) +>connectexport : connectexport, Symbol(connectexport, Decl(exportAssignmentWithPrivacyError.ts, 2, 1)) listen: (port: number) => void; ->listen : (port: number) => void ->port : number +>listen : (port: number) => void, Symbol(listen, Decl(exportAssignmentWithPrivacyError.ts, 4, 47)) +>port : number, Symbol(port, Decl(exportAssignmentWithPrivacyError.ts, 5, 13)) } var server: { ->server : { (): connectexport; test1: connectmodule; test2(): connectmodule; } +>server : { (): connectexport; test1: connectmodule; test2(): connectmodule; }, Symbol(server, Decl(exportAssignmentWithPrivacyError.ts, 8, 3)) (): connectexport; ->connectexport : connectexport +>connectexport : connectexport, Symbol(connectexport, Decl(exportAssignmentWithPrivacyError.ts, 2, 1)) test1: connectmodule; ->test1 : connectmodule ->connectmodule : connectmodule +>test1 : connectmodule, Symbol(test1, Decl(exportAssignmentWithPrivacyError.ts, 9, 22)) +>connectmodule : connectmodule, Symbol(connectmodule, Decl(exportAssignmentWithPrivacyError.ts, 0, 0)) test2(): connectmodule; ->test2 : () => connectmodule ->connectmodule : connectmodule +>test2 : () => connectmodule, Symbol(test2, Decl(exportAssignmentWithPrivacyError.ts, 10, 25)) +>connectmodule : connectmodule, Symbol(connectmodule, Decl(exportAssignmentWithPrivacyError.ts, 0, 0)) }; export = server; ->server : { (): connectexport; test1: connectmodule; test2(): connectmodule; } +>server : { (): connectexport; test1: connectmodule; test2(): connectmodule; }, Symbol(server, Decl(exportAssignmentWithPrivacyError.ts, 8, 3)) diff --git a/tests/baselines/reference/exportAssignmentWithoutIdentifier1.types b/tests/baselines/reference/exportAssignmentWithoutIdentifier1.types index 56da73abd9d..5180a54a317 100644 --- a/tests/baselines/reference/exportAssignmentWithoutIdentifier1.types +++ b/tests/baselines/reference/exportAssignmentWithoutIdentifier1.types @@ -1,15 +1,15 @@ === tests/cases/compiler/exportAssignmentWithoutIdentifier1.ts === function Greeter() { ->Greeter : () => void +>Greeter : () => void, Symbol(Greeter, Decl(exportAssignmentWithoutIdentifier1.ts, 0, 0)) //... } Greeter.prototype.greet = function () { >Greeter.prototype.greet = function () { //...} : () => void >Greeter.prototype.greet : any ->Greeter.prototype : any ->Greeter : () => void ->prototype : any +>Greeter.prototype : any, Symbol(Function.prototype, Decl(lib.d.ts, 249, 48)) +>Greeter : () => void, Symbol(Greeter, Decl(exportAssignmentWithoutIdentifier1.ts, 0, 0)) +>prototype : any, Symbol(Function.prototype, Decl(lib.d.ts, 249, 48)) >greet : any >function () { //...} : () => void @@ -17,5 +17,5 @@ Greeter.prototype.greet = function () { } export = new Greeter(); >new Greeter() : any ->Greeter : () => void +>Greeter : () => void, Symbol(Greeter, Decl(exportAssignmentWithoutIdentifier1.ts, 0, 0)) diff --git a/tests/baselines/reference/exportCodeGen.types b/tests/baselines/reference/exportCodeGen.types index 89cb16fdf4c..4c84005eba5 100644 --- a/tests/baselines/reference/exportCodeGen.types +++ b/tests/baselines/reference/exportCodeGen.types @@ -3,109 +3,117 @@ // should replace all refs to 'x' in the body, // with fully qualified module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(exportCodeGen.ts, 0, 0)) export var x = 12; ->x : number +>x : number, Symbol(x, Decl(exportCodeGen.ts, 4, 14)) +>12 : number function lt12() { ->lt12 : () => boolean +>lt12 : () => boolean, Symbol(lt12, Decl(exportCodeGen.ts, 4, 22)) return x < 12; >x < 12 : boolean ->x : number +>x : number, Symbol(x, Decl(exportCodeGen.ts, 4, 14)) +>12 : number } } // should not fully qualify 'x' module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(exportCodeGen.ts, 8, 1)) var x = 12; ->x : number +>x : number, Symbol(x, Decl(exportCodeGen.ts, 12, 7)) +>12 : number function lt12() { ->lt12 : () => boolean +>lt12 : () => boolean, Symbol(lt12, Decl(exportCodeGen.ts, 12, 15)) return x < 12; >x < 12 : boolean ->x : number +>x : number, Symbol(x, Decl(exportCodeGen.ts, 12, 7)) +>12 : number } } // not copied, since not exported module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(exportCodeGen.ts, 16, 1)) function no() { ->no : () => boolean +>no : () => boolean, Symbol(no, Decl(exportCodeGen.ts, 19, 10)) return false; +>false : boolean } } // copies, since exported module D { ->D : typeof D +>D : typeof D, Symbol(D, Decl(exportCodeGen.ts, 23, 1)) export function yes() { ->yes : () => boolean +>yes : () => boolean, Symbol(yes, Decl(exportCodeGen.ts, 26, 10)) return true; +>true : boolean } } // validate all exportable statements module E { ->E : typeof E +>E : typeof E, Symbol(E, Decl(exportCodeGen.ts, 30, 1)) export enum Color { Red } ->Color : Color ->Red : Color +>Color : Color, Symbol(Color, Decl(exportCodeGen.ts, 33, 10)) +>Red : Color, Symbol(Color.Red, Decl(exportCodeGen.ts, 34, 23)) export function fn() { } ->fn : () => void +>fn : () => void, Symbol(fn, Decl(exportCodeGen.ts, 34, 29)) export interface I { id: number } ->I : I ->id : number +>I : I, Symbol(I, Decl(exportCodeGen.ts, 35, 28)) +>id : number, Symbol(id, Decl(exportCodeGen.ts, 36, 24)) export class C { name: string } ->C : C ->name : string +>C : C, Symbol(C, Decl(exportCodeGen.ts, 36, 37)) +>name : string, Symbol(name, Decl(exportCodeGen.ts, 37, 20)) export module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(exportCodeGen.ts, 37, 35)) export var x = 42; ->x : number +>x : number, Symbol(x, Decl(exportCodeGen.ts, 39, 18)) +>42 : number } } // validate all exportable statements, // which are not exported module F { ->F : typeof F +>F : typeof F, Symbol(F, Decl(exportCodeGen.ts, 41, 1)) enum Color { Red } ->Color : Color ->Red : Color +>Color : Color, Symbol(Color, Decl(exportCodeGen.ts, 45, 10)) +>Red : Color, Symbol(Color.Red, Decl(exportCodeGen.ts, 46, 16)) function fn() { } ->fn : () => void +>fn : () => void, Symbol(fn, Decl(exportCodeGen.ts, 46, 22)) interface I { id: number } ->I : I ->id : number +>I : I, Symbol(I, Decl(exportCodeGen.ts, 47, 21)) +>id : number, Symbol(id, Decl(exportCodeGen.ts, 48, 17)) class C { name: string } ->C : C ->name : string +>C : C, Symbol(C, Decl(exportCodeGen.ts, 48, 30)) +>name : string, Symbol(name, Decl(exportCodeGen.ts, 49, 13)) module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(exportCodeGen.ts, 49, 28)) var x = 42; ->x : number +>x : number, Symbol(x, Decl(exportCodeGen.ts, 51, 11)) +>42 : number } } diff --git a/tests/baselines/reference/exportDefaultForNonInstantiatedModule.types b/tests/baselines/reference/exportDefaultForNonInstantiatedModule.types index 940bb44658e..fe0f1a2c104 100644 --- a/tests/baselines/reference/exportDefaultForNonInstantiatedModule.types +++ b/tests/baselines/reference/exportDefaultForNonInstantiatedModule.types @@ -1,13 +1,13 @@ === tests/cases/compiler/exportDefaultForNonInstantiatedModule.ts === module m { ->m : unknown +>m : any, Symbol(m, Decl(exportDefaultForNonInstantiatedModule.ts, 0, 0)) export interface foo { ->foo : foo +>foo : foo, Symbol(foo, Decl(exportDefaultForNonInstantiatedModule.ts, 1, 10)) } } // Should not be emitted export default m; ->m : unknown +>m : any, Symbol(m, Decl(exportDefaultForNonInstantiatedModule.ts, 0, 0)) diff --git a/tests/baselines/reference/exportDefaultTypeAnnoation.errors.txt b/tests/baselines/reference/exportDefaultTypeAnnoation.errors.txt deleted file mode 100644 index 71ff4261ffe..00000000000 --- a/tests/baselines/reference/exportDefaultTypeAnnoation.errors.txt +++ /dev/null @@ -1,8 +0,0 @@ -tests/cases/compiler/exportDefaultTypeAnnoation.ts(2,18): error TS1201: A type annotation on an export statement is only allowed in an ambient external module declaration. - - -==== tests/cases/compiler/exportDefaultTypeAnnoation.ts (1 errors) ==== - - export default : number; - ~~~~~~ -!!! error TS1201: A type annotation on an export statement is only allowed in an ambient external module declaration. \ No newline at end of file diff --git a/tests/baselines/reference/exportDefaultTypeAnnoation.js b/tests/baselines/reference/exportDefaultTypeAnnoation.js deleted file mode 100644 index 71a829ac284..00000000000 --- a/tests/baselines/reference/exportDefaultTypeAnnoation.js +++ /dev/null @@ -1,6 +0,0 @@ -//// [exportDefaultTypeAnnoation.ts] - -export default : number; - -//// [exportDefaultTypeAnnoation.js] -exports.default = ; diff --git a/tests/baselines/reference/exportDefaultTypeAnnoation2.js b/tests/baselines/reference/exportDefaultTypeAnnoation2.js deleted file mode 100644 index 2c918954702..00000000000 --- a/tests/baselines/reference/exportDefaultTypeAnnoation2.js +++ /dev/null @@ -1,7 +0,0 @@ -//// [exportDefaultTypeAnnoation2.ts] - -declare module "mod" { - export default : number; -} - -//// [exportDefaultTypeAnnoation2.js] diff --git a/tests/baselines/reference/exportDefaultTypeAnnoation2.types b/tests/baselines/reference/exportDefaultTypeAnnoation2.types deleted file mode 100644 index 53ca78586cc..00000000000 --- a/tests/baselines/reference/exportDefaultTypeAnnoation2.types +++ /dev/null @@ -1,6 +0,0 @@ -=== tests/cases/compiler/exportDefaultTypeAnnoation2.ts === - -No type information for this code.declare module "mod" { -No type information for this code. export default : number; -No type information for this code.} -No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/exportDefaultTypeAnnoation3.errors.txt b/tests/baselines/reference/exportDefaultTypeAnnoation3.errors.txt deleted file mode 100644 index 326713e059e..00000000000 --- a/tests/baselines/reference/exportDefaultTypeAnnoation3.errors.txt +++ /dev/null @@ -1,21 +0,0 @@ -tests/cases/compiler/reference1.ts(2,5): error TS2322: Type 'number' is not assignable to type 'string'. -tests/cases/compiler/reference2.ts(2,5): error TS2322: Type 'number' is not assignable to type 'string'. - - -==== tests/cases/compiler/mod.d.ts (0 errors) ==== - - declare module "mod" { - export default : number; - } - -==== tests/cases/compiler/reference1.ts (1 errors) ==== - import d from "mod"; - var s: string = d; // Error - ~ -!!! error TS2322: Type 'number' is not assignable to type 'string'. - -==== tests/cases/compiler/reference2.ts (1 errors) ==== - import { default as d } from "mod"; - var s: string = d; // Error - ~ -!!! error TS2322: Type 'number' is not assignable to type 'string'. \ No newline at end of file diff --git a/tests/baselines/reference/exportDefaultTypeAnnoation3.js b/tests/baselines/reference/exportDefaultTypeAnnoation3.js deleted file mode 100644 index 1f95e669de5..00000000000 --- a/tests/baselines/reference/exportDefaultTypeAnnoation3.js +++ /dev/null @@ -1,22 +0,0 @@ -//// [tests/cases/compiler/exportDefaultTypeAnnoation3.ts] //// - -//// [mod.d.ts] - -declare module "mod" { - export default : number; -} - -//// [reference1.ts] -import d from "mod"; -var s: string = d; // Error - -//// [reference2.ts] -import { default as d } from "mod"; -var s: string = d; // Error - -//// [reference1.js] -var mod_1 = require("mod"); -var s = mod_1.default; // Error -//// [reference2.js] -var mod_1 = require("mod"); -var s = mod_1.default; // Error diff --git a/tests/baselines/reference/exportEqualCallable.types b/tests/baselines/reference/exportEqualCallable.types index 0a084523137..2ebd696028d 100644 --- a/tests/baselines/reference/exportEqualCallable.types +++ b/tests/baselines/reference/exportEqualCallable.types @@ -1,19 +1,19 @@ === tests/cases/compiler/exportEqualCallable_1.ts === /// import connect = require('exportEqualCallable_0'); ->connect : () => any +>connect : () => any, Symbol(connect, Decl(exportEqualCallable_1.ts, 0, 0)) connect(); >connect() : any ->connect : () => any +>connect : () => any, Symbol(connect, Decl(exportEqualCallable_1.ts, 0, 0)) === tests/cases/compiler/exportEqualCallable_0.ts === var server: { ->server : () => any +>server : () => any, Symbol(server, Decl(exportEqualCallable_0.ts, 1, 3)) (): any; }; export = server; ->server : () => any +>server : () => any, Symbol(server, Decl(exportEqualCallable_0.ts, 1, 3)) diff --git a/tests/baselines/reference/exportEqualNamespaces.types b/tests/baselines/reference/exportEqualNamespaces.types index 0f3091c1b8a..db80f747adc 100644 --- a/tests/baselines/reference/exportEqualNamespaces.types +++ b/tests/baselines/reference/exportEqualNamespaces.types @@ -1,32 +1,33 @@ === tests/cases/compiler/exportEqualNamespaces.ts === declare module server { ->server : Date +>server : Date, Symbol(server, Decl(exportEqualNamespaces.ts, 0, 0), Decl(exportEqualNamespaces.ts, 2, 1), Decl(exportEqualNamespaces.ts, 10, 3)) interface Server extends Object { } ->Server : Server ->Object : Object +>Server : Server, Symbol(Server, Decl(exportEqualNamespaces.ts, 0, 23)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) } interface server { ->server : server +>server : server, Symbol(server, Decl(exportEqualNamespaces.ts, 0, 0), Decl(exportEqualNamespaces.ts, 2, 1), Decl(exportEqualNamespaces.ts, 10, 3)) (): server.Server; ->server : unknown ->Server : server.Server +>server : any, Symbol(server, Decl(exportEqualNamespaces.ts, 0, 0), Decl(exportEqualNamespaces.ts, 2, 1), Decl(exportEqualNamespaces.ts, 10, 3)) +>Server : server.Server, Symbol(server.Server, Decl(exportEqualNamespaces.ts, 0, 23)) startTime: Date; ->startTime : Date ->Date : Date +>startTime : Date, Symbol(startTime, Decl(exportEqualNamespaces.ts, 5, 22)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } var x = 5; ->x : number +>x : number, Symbol(x, Decl(exportEqualNamespaces.ts, 9, 3)) +>5 : number var server = new Date(); ->server : Date +>server : Date, Symbol(server, Decl(exportEqualNamespaces.ts, 0, 0), Decl(exportEqualNamespaces.ts, 2, 1), Decl(exportEqualNamespaces.ts, 10, 3)) >new Date() : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) export = server; ->server : server +>server : server, Symbol(server, Decl(exportEqualNamespaces.ts, 0, 0), Decl(exportEqualNamespaces.ts, 2, 1), Decl(exportEqualNamespaces.ts, 10, 3)) diff --git a/tests/baselines/reference/exportImport.types b/tests/baselines/reference/exportImport.types index 9899103d779..11269c9abf9 100644 --- a/tests/baselines/reference/exportImport.types +++ b/tests/baselines/reference/exportImport.types @@ -1,28 +1,29 @@ === tests/cases/compiler/consumer.ts === import e = require('./exporter'); ->e : typeof e +>e : typeof e, Symbol(e, Decl(consumer.ts, 0, 0)) export function w(): e.w { // Should be OK ->w : () => e.w ->e : unknown ->w : e.w +>w : () => e.w, Symbol(w, Decl(consumer.ts, 0, 33)) +>e : any, Symbol(e, Decl(consumer.ts, 0, 0)) +>w : e.w, Symbol(e.w, Decl(exporter.ts, 0, 0)) return new e.w(); >new e.w() : e.w ->e.w : typeof e.w ->e : typeof e ->w : typeof e.w +>e.w : typeof e.w, Symbol(e.w, Decl(exporter.ts, 0, 0)) +>e : typeof e, Symbol(e, Decl(consumer.ts, 0, 0)) +>w : typeof e.w, Symbol(e.w, Decl(exporter.ts, 0, 0)) } === tests/cases/compiler/w1.ts === export = Widget1 ->Widget1 : Widget1 +>Widget1 : Widget1, Symbol(Widget1, Decl(w1.ts, 1, 16)) class Widget1 { name = 'one'; } ->Widget1 : Widget1 ->name : string +>Widget1 : Widget1, Symbol(Widget1, Decl(w1.ts, 1, 16)) +>name : string, Symbol(name, Decl(w1.ts, 2, 15)) +>'one' : string === tests/cases/compiler/exporter.ts === export import w = require('./w1'); ->w : typeof w +>w : typeof w, Symbol(w, Decl(exporter.ts, 0, 0)) diff --git a/tests/baselines/reference/exportImportAlias.types b/tests/baselines/reference/exportImportAlias.types index 0834d664861..8fe41b24692 100644 --- a/tests/baselines/reference/exportImportAlias.types +++ b/tests/baselines/reference/exportImportAlias.types @@ -2,174 +2,182 @@ // expect no errors here module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(exportImportAlias.ts, 0, 0)) export var x = 'hello world' ->x : string +>x : string, Symbol(x, Decl(exportImportAlias.ts, 4, 14)) +>'hello world' : string export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(exportImportAlias.ts, 4, 32)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(exportImportAlias.ts, 6, 20)) +>y : number, Symbol(y, Decl(exportImportAlias.ts, 6, 37)) } export module B { ->B : unknown +>B : any, Symbol(B, Decl(exportImportAlias.ts, 7, 5)) export interface Id { ->Id : Id +>Id : Id, Symbol(Id, Decl(exportImportAlias.ts, 8, 21)) name: string; ->name : string +>name : string, Symbol(name, Decl(exportImportAlias.ts, 9, 29)) } } } module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(exportImportAlias.ts, 13, 1)) export import a = A; ->a : typeof a ->A : typeof a +>a : typeof a, Symbol(a, Decl(exportImportAlias.ts, 15, 10)) +>A : typeof a, Symbol(a, Decl(exportImportAlias.ts, 0, 0)) } var a: string = C.a.x; ->a : string ->C.a.x : string ->C.a : typeof A ->C : typeof C ->a : typeof A ->x : string +>a : string, Symbol(a, Decl(exportImportAlias.ts, 19, 3)) +>C.a.x : string, Symbol(A.x, Decl(exportImportAlias.ts, 4, 14)) +>C.a : typeof A, Symbol(C.a, Decl(exportImportAlias.ts, 15, 10)) +>C : typeof C, Symbol(C, Decl(exportImportAlias.ts, 13, 1)) +>a : typeof A, Symbol(C.a, Decl(exportImportAlias.ts, 15, 10)) +>x : string, Symbol(A.x, Decl(exportImportAlias.ts, 4, 14)) var b: { x: number; y: number; } = new C.a.Point(0, 0); ->b : { x: number; y: number; } ->x : number ->y : number +>b : { x: number; y: number; }, Symbol(b, Decl(exportImportAlias.ts, 20, 3)) +>x : number, Symbol(x, Decl(exportImportAlias.ts, 20, 8)) +>y : number, Symbol(y, Decl(exportImportAlias.ts, 20, 19)) >new C.a.Point(0, 0) : A.Point ->C.a.Point : typeof A.Point ->C.a : typeof A ->C : typeof C ->a : typeof A ->Point : typeof A.Point +>C.a.Point : typeof A.Point, Symbol(A.Point, Decl(exportImportAlias.ts, 4, 32)) +>C.a : typeof A, Symbol(C.a, Decl(exportImportAlias.ts, 15, 10)) +>C : typeof C, Symbol(C, Decl(exportImportAlias.ts, 13, 1)) +>a : typeof A, Symbol(C.a, Decl(exportImportAlias.ts, 15, 10)) +>Point : typeof A.Point, Symbol(A.Point, Decl(exportImportAlias.ts, 4, 32)) +>0 : number +>0 : number var c: { name: string }; ->c : { name: string; } ->name : string +>c : { name: string; }, Symbol(c, Decl(exportImportAlias.ts, 21, 3), Decl(exportImportAlias.ts, 22, 3)) +>name : string, Symbol(name, Decl(exportImportAlias.ts, 21, 8)) var c: C.a.B.Id; ->c : { name: string; } ->C : unknown ->a : unknown ->B : unknown ->Id : A.B.Id +>c : { name: string; }, Symbol(c, Decl(exportImportAlias.ts, 21, 3), Decl(exportImportAlias.ts, 22, 3)) +>C : any, Symbol(C, Decl(exportImportAlias.ts, 13, 1)) +>a : any, Symbol(C.a, Decl(exportImportAlias.ts, 15, 10)) +>B : any, Symbol(A.B, Decl(exportImportAlias.ts, 7, 5)) +>Id : A.B.Id, Symbol(A.B.Id, Decl(exportImportAlias.ts, 8, 21)) module X { ->X : typeof X +>X : typeof X, Symbol(X, Decl(exportImportAlias.ts, 22, 16)) export function Y() { ->Y : typeof Y +>Y : typeof Y, Symbol(Y, Decl(exportImportAlias.ts, 24, 10), Decl(exportImportAlias.ts, 27, 5)) return 42; +>42 : number } export module Y { ->Y : typeof Y +>Y : typeof Y, Symbol(Y, Decl(exportImportAlias.ts, 24, 10), Decl(exportImportAlias.ts, 27, 5)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(exportImportAlias.ts, 29, 21)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(exportImportAlias.ts, 31, 24)) +>y : number, Symbol(y, Decl(exportImportAlias.ts, 31, 41)) } } } module Z { ->Z : typeof Z +>Z : typeof Z, Symbol(Z, Decl(exportImportAlias.ts, 34, 1)) // 'y' should be a fundule here export import y = X.Y; ->y : typeof y ->X : typeof X ->Y : typeof y +>y : typeof y, Symbol(y, Decl(exportImportAlias.ts, 36, 10)) +>X : typeof X, Symbol(X, Decl(exportImportAlias.ts, 22, 16)) +>Y : typeof y, Symbol(y, Decl(exportImportAlias.ts, 24, 10), Decl(exportImportAlias.ts, 27, 5)) } var m: number = Z.y(); ->m : number +>m : number, Symbol(m, Decl(exportImportAlias.ts, 42, 3)) >Z.y() : number ->Z.y : typeof X.Y ->Z : typeof Z ->y : typeof X.Y +>Z.y : typeof X.Y, Symbol(Z.y, Decl(exportImportAlias.ts, 36, 10)) +>Z : typeof Z, Symbol(Z, Decl(exportImportAlias.ts, 34, 1)) +>y : typeof X.Y, Symbol(Z.y, Decl(exportImportAlias.ts, 36, 10)) var n: { x: number; y: number; } = new Z.y.Point(0, 0); ->n : { x: number; y: number; } ->x : number ->y : number +>n : { x: number; y: number; }, Symbol(n, Decl(exportImportAlias.ts, 43, 3)) +>x : number, Symbol(x, Decl(exportImportAlias.ts, 43, 8)) +>y : number, Symbol(y, Decl(exportImportAlias.ts, 43, 19)) >new Z.y.Point(0, 0) : X.Y.Point ->Z.y.Point : typeof X.Y.Point ->Z.y : typeof X.Y ->Z : typeof Z ->y : typeof X.Y ->Point : typeof X.Y.Point +>Z.y.Point : typeof X.Y.Point, Symbol(X.Y.Point, Decl(exportImportAlias.ts, 29, 21)) +>Z.y : typeof X.Y, Symbol(Z.y, Decl(exportImportAlias.ts, 36, 10)) +>Z : typeof Z, Symbol(Z, Decl(exportImportAlias.ts, 34, 1)) +>y : typeof X.Y, Symbol(Z.y, Decl(exportImportAlias.ts, 36, 10)) +>Point : typeof X.Y.Point, Symbol(X.Y.Point, Decl(exportImportAlias.ts, 29, 21)) +>0 : number +>0 : number module K { ->K : typeof K +>K : typeof K, Symbol(K, Decl(exportImportAlias.ts, 43, 55)) export class L { ->L : L +>L : L, Symbol(L, Decl(exportImportAlias.ts, 45, 10), Decl(exportImportAlias.ts, 48, 5)) constructor(public name: string) { } ->name : string +>name : string, Symbol(name, Decl(exportImportAlias.ts, 47, 20)) } export module L { ->L : typeof L +>L : typeof L, Symbol(L, Decl(exportImportAlias.ts, 45, 10), Decl(exportImportAlias.ts, 48, 5)) export var y = 12; ->y : number +>y : number, Symbol(y, Decl(exportImportAlias.ts, 51, 18)) +>12 : number export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(exportImportAlias.ts, 51, 26)) x: number; ->x : number +>x : number, Symbol(x, Decl(exportImportAlias.ts, 52, 32)) y: number; ->y : number +>y : number, Symbol(y, Decl(exportImportAlias.ts, 53, 22)) } } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(exportImportAlias.ts, 57, 1)) export import D = K.L; ->D : typeof D ->K : typeof K ->L : D +>D : typeof D, Symbol(D, Decl(exportImportAlias.ts, 59, 10)) +>K : typeof K, Symbol(K, Decl(exportImportAlias.ts, 43, 55)) +>L : D, Symbol(D, Decl(exportImportAlias.ts, 45, 10), Decl(exportImportAlias.ts, 48, 5)) } var o: { name: string }; ->o : { name: string; } ->name : string +>o : { name: string; }, Symbol(o, Decl(exportImportAlias.ts, 63, 3), Decl(exportImportAlias.ts, 64, 3)) +>name : string, Symbol(name, Decl(exportImportAlias.ts, 63, 8)) var o = new M.D('Hello'); ->o : { name: string; } +>o : { name: string; }, Symbol(o, Decl(exportImportAlias.ts, 63, 3), Decl(exportImportAlias.ts, 64, 3)) >new M.D('Hello') : K.L ->M.D : typeof K.L ->M : typeof M ->D : typeof K.L +>M.D : typeof K.L, Symbol(M.D, Decl(exportImportAlias.ts, 59, 10)) +>M : typeof M, Symbol(M, Decl(exportImportAlias.ts, 57, 1)) +>D : typeof K.L, Symbol(M.D, Decl(exportImportAlias.ts, 59, 10)) +>'Hello' : string var p: { x: number; y: number; } ->p : { x: number; y: number; } ->x : number ->y : number +>p : { x: number; y: number; }, Symbol(p, Decl(exportImportAlias.ts, 66, 3), Decl(exportImportAlias.ts, 67, 3)) +>x : number, Symbol(x, Decl(exportImportAlias.ts, 66, 8)) +>y : number, Symbol(y, Decl(exportImportAlias.ts, 66, 19)) var p: M.D.Point; ->p : { x: number; y: number; } ->M : unknown ->D : unknown ->Point : K.L.Point +>p : { x: number; y: number; }, Symbol(p, Decl(exportImportAlias.ts, 66, 3), Decl(exportImportAlias.ts, 67, 3)) +>M : any, Symbol(M, Decl(exportImportAlias.ts, 57, 1)) +>D : any, Symbol(M.D, Decl(exportImportAlias.ts, 59, 10)) +>Point : K.L.Point, Symbol(K.L.Point, Decl(exportImportAlias.ts, 51, 26)) diff --git a/tests/baselines/reference/exportImportAndClodule.types b/tests/baselines/reference/exportImportAndClodule.types index 7d233e72e77..f3344effe15 100644 --- a/tests/baselines/reference/exportImportAndClodule.types +++ b/tests/baselines/reference/exportImportAndClodule.types @@ -1,57 +1,59 @@ === tests/cases/compiler/exportImportAndClodule.ts === module K { ->K : typeof K +>K : typeof K, Symbol(K, Decl(exportImportAndClodule.ts, 0, 0)) export class L { ->L : L +>L : L, Symbol(L, Decl(exportImportAndClodule.ts, 0, 10), Decl(exportImportAndClodule.ts, 3, 5)) constructor(public name: string) { } ->name : string +>name : string, Symbol(name, Decl(exportImportAndClodule.ts, 2, 20)) } export module L { ->L : typeof L +>L : typeof L, Symbol(L, Decl(exportImportAndClodule.ts, 0, 10), Decl(exportImportAndClodule.ts, 3, 5)) export var y = 12; ->y : number +>y : number, Symbol(y, Decl(exportImportAndClodule.ts, 5, 18)) +>12 : number export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(exportImportAndClodule.ts, 5, 26)) x: number; ->x : number +>x : number, Symbol(x, Decl(exportImportAndClodule.ts, 6, 32)) y: number; ->y : number +>y : number, Symbol(y, Decl(exportImportAndClodule.ts, 7, 22)) } } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(exportImportAndClodule.ts, 11, 1)) export import D = K.L; ->D : typeof D ->K : typeof K ->L : D +>D : typeof D, Symbol(D, Decl(exportImportAndClodule.ts, 12, 10)) +>K : typeof K, Symbol(K, Decl(exportImportAndClodule.ts, 0, 0)) +>L : D, Symbol(D, Decl(exportImportAndClodule.ts, 0, 10), Decl(exportImportAndClodule.ts, 3, 5)) } var o: { name: string }; ->o : { name: string; } ->name : string +>o : { name: string; }, Symbol(o, Decl(exportImportAndClodule.ts, 15, 3), Decl(exportImportAndClodule.ts, 16, 3)) +>name : string, Symbol(name, Decl(exportImportAndClodule.ts, 15, 8)) var o = new M.D('Hello'); ->o : { name: string; } +>o : { name: string; }, Symbol(o, Decl(exportImportAndClodule.ts, 15, 3), Decl(exportImportAndClodule.ts, 16, 3)) >new M.D('Hello') : K.L ->M.D : typeof K.L ->M : typeof M ->D : typeof K.L +>M.D : typeof K.L, Symbol(M.D, Decl(exportImportAndClodule.ts, 12, 10)) +>M : typeof M, Symbol(M, Decl(exportImportAndClodule.ts, 11, 1)) +>D : typeof K.L, Symbol(M.D, Decl(exportImportAndClodule.ts, 12, 10)) +>'Hello' : string var p: { x: number; y: number; } ->p : { x: number; y: number; } ->x : number ->y : number +>p : { x: number; y: number; }, Symbol(p, Decl(exportImportAndClodule.ts, 17, 3), Decl(exportImportAndClodule.ts, 18, 3)) +>x : number, Symbol(x, Decl(exportImportAndClodule.ts, 17, 8)) +>y : number, Symbol(y, Decl(exportImportAndClodule.ts, 17, 19)) var p: M.D.Point; ->p : { x: number; y: number; } ->M : unknown ->D : unknown ->Point : K.L.Point +>p : { x: number; y: number; }, Symbol(p, Decl(exportImportAndClodule.ts, 17, 3), Decl(exportImportAndClodule.ts, 18, 3)) +>M : any, Symbol(M, Decl(exportImportAndClodule.ts, 11, 1)) +>D : any, Symbol(M.D, Decl(exportImportAndClodule.ts, 12, 10)) +>Point : K.L.Point, Symbol(K.L.Point, Decl(exportImportAndClodule.ts, 5, 26)) diff --git a/tests/baselines/reference/exportImportMultipleFiles.types b/tests/baselines/reference/exportImportMultipleFiles.types index adafcef2dba..73301e0726f 100644 --- a/tests/baselines/reference/exportImportMultipleFiles.types +++ b/tests/baselines/reference/exportImportMultipleFiles.types @@ -1,31 +1,35 @@ === tests/cases/compiler/exportImportMultipleFiles_userCode.ts === import lib = require('./exportImportMultipleFiles_library'); ->lib : typeof lib +>lib : typeof lib, Symbol(lib, Decl(exportImportMultipleFiles_userCode.ts, 0, 0)) lib.math.add(3, 4); // Shouldnt be error >lib.math.add(3, 4) : any ->lib.math.add : (a: any, b: any) => any ->lib.math : typeof lib.math ->lib : typeof lib ->math : typeof lib.math ->add : (a: any, b: any) => any +>lib.math.add : (a: any, b: any) => any, Symbol(lib.math.add, Decl(exportImportMultipleFiles_math.ts, 0, 0)) +>lib.math : typeof lib.math, Symbol(lib.math, Decl(exportImportMultipleFiles_library.ts, 0, 0)) +>lib : typeof lib, Symbol(lib, Decl(exportImportMultipleFiles_userCode.ts, 0, 0)) +>math : typeof lib.math, Symbol(lib.math, Decl(exportImportMultipleFiles_library.ts, 0, 0)) +>add : (a: any, b: any) => any, Symbol(lib.math.add, Decl(exportImportMultipleFiles_math.ts, 0, 0)) +>3 : number +>4 : number === tests/cases/compiler/exportImportMultipleFiles_math.ts === export function add(a, b) { return a + b; } ->add : (a: any, b: any) => any ->a : any ->b : any +>add : (a: any, b: any) => any, Symbol(add, Decl(exportImportMultipleFiles_math.ts, 0, 0)) +>a : any, Symbol(a, Decl(exportImportMultipleFiles_math.ts, 0, 20)) +>b : any, Symbol(b, Decl(exportImportMultipleFiles_math.ts, 0, 22)) >a + b : any ->a : any ->b : any +>a : any, Symbol(a, Decl(exportImportMultipleFiles_math.ts, 0, 20)) +>b : any, Symbol(b, Decl(exportImportMultipleFiles_math.ts, 0, 22)) === tests/cases/compiler/exportImportMultipleFiles_library.ts === export import math = require("exportImportMultipleFiles_math"); ->math : typeof math +>math : typeof math, Symbol(math, Decl(exportImportMultipleFiles_library.ts, 0, 0)) math.add(3, 4); // OK >math.add(3, 4) : any ->math.add : (a: any, b: any) => any ->math : typeof math ->add : (a: any, b: any) => any +>math.add : (a: any, b: any) => any, Symbol(math.add, Decl(exportImportMultipleFiles_math.ts, 0, 0)) +>math : typeof math, Symbol(math, Decl(exportImportMultipleFiles_library.ts, 0, 0)) +>add : (a: any, b: any) => any, Symbol(math.add, Decl(exportImportMultipleFiles_math.ts, 0, 0)) +>3 : number +>4 : number diff --git a/tests/baselines/reference/exportImportNonInstantiatedModule.types b/tests/baselines/reference/exportImportNonInstantiatedModule.types index d1210cba6fe..2b43ccbdb4f 100644 --- a/tests/baselines/reference/exportImportNonInstantiatedModule.types +++ b/tests/baselines/reference/exportImportNonInstantiatedModule.types @@ -1,26 +1,27 @@ === tests/cases/compiler/exportImportNonInstantiatedModule.ts === module A { ->A : unknown +>A : any, Symbol(A, Decl(exportImportNonInstantiatedModule.ts, 0, 0)) export interface I { x: number } ->I : I ->x : number +>I : I, Symbol(I, Decl(exportImportNonInstantiatedModule.ts, 0, 10)) +>x : number, Symbol(x, Decl(exportImportNonInstantiatedModule.ts, 1, 24)) } module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(exportImportNonInstantiatedModule.ts, 2, 1)) export import A1 = A ->A1 : unknown ->A : unknown +>A1 : any, Symbol(A1, Decl(exportImportNonInstantiatedModule.ts, 4, 10)) +>A : any, Symbol(A1, Decl(exportImportNonInstantiatedModule.ts, 0, 0)) } var x: B.A1.I = { x: 1 }; ->x : A.I ->B : unknown ->A1 : unknown ->I : A.I +>x : A.I, Symbol(x, Decl(exportImportNonInstantiatedModule.ts, 9, 3)) +>B : any, Symbol(B, Decl(exportImportNonInstantiatedModule.ts, 2, 1)) +>A1 : any, Symbol(B.A1, Decl(exportImportNonInstantiatedModule.ts, 4, 10)) +>I : A.I, Symbol(A.I, Decl(exportImportNonInstantiatedModule.ts, 0, 10)) >{ x: 1 } : { x: number; } ->x : number +>x : number, Symbol(x, Decl(exportImportNonInstantiatedModule.ts, 9, 17)) +>1 : number diff --git a/tests/baselines/reference/exportImportNonInstantiatedModule2.types b/tests/baselines/reference/exportImportNonInstantiatedModule2.types index c11eac715a9..3d29263e1c8 100644 --- a/tests/baselines/reference/exportImportNonInstantiatedModule2.types +++ b/tests/baselines/reference/exportImportNonInstantiatedModule2.types @@ -1,26 +1,27 @@ === tests/cases/compiler/consumer.ts === import e = require('./exporter'); ->e : typeof e +>e : typeof e, Symbol(e, Decl(consumer.ts, 0, 0)) export function w(): e.w { // Should be OK ->w : () => e.w ->e : unknown ->w : e.w +>w : () => e.w, Symbol(w, Decl(consumer.ts, 0, 33)) +>e : any, Symbol(e, Decl(consumer.ts, 0, 0)) +>w : e.w, Symbol(e.w, Decl(exporter.ts, 0, 0)) return {name: 'value' }; >{name: 'value' } : { name: string; } ->name : string +>name : string, Symbol(name, Decl(consumer.ts, 3, 12)) +>'value' : string } === tests/cases/compiler/w1.ts === export = Widget1 ->Widget1 : Widget1 +>Widget1 : Widget1, Symbol(Widget1, Decl(w1.ts, 1, 16)) interface Widget1 { name: string; } ->Widget1 : Widget1 ->name : string +>Widget1 : Widget1, Symbol(Widget1, Decl(w1.ts, 1, 16)) +>name : string, Symbol(name, Decl(w1.ts, 2, 19)) === tests/cases/compiler/exporter.ts === export import w = require('./w1'); ->w : unknown +>w : any, Symbol(w, Decl(exporter.ts, 0, 0)) diff --git a/tests/baselines/reference/exportPrivateType.types b/tests/baselines/reference/exportPrivateType.types index 87751b273a7..5bd41665e5e 100644 --- a/tests/baselines/reference/exportPrivateType.types +++ b/tests/baselines/reference/exportPrivateType.types @@ -1,70 +1,71 @@ === tests/cases/compiler/exportPrivateType.ts === module foo { ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(exportPrivateType.ts, 0, 0)) class C1 { ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(exportPrivateType.ts, 0, 12)) x: string; ->x : string +>x : string, Symbol(x, Decl(exportPrivateType.ts, 1, 14)) y: C1; ->y : C1 ->C1 : C1 +>y : C1, Symbol(y, Decl(exportPrivateType.ts, 2, 18)) +>C1 : C1, Symbol(C1, Decl(exportPrivateType.ts, 0, 12)) } class C2 { ->C2 : C2 +>C2 : C2, Symbol(C2, Decl(exportPrivateType.ts, 4, 5)) test() { return true; } ->test : () => boolean +>test : () => boolean, Symbol(test, Decl(exportPrivateType.ts, 6, 14)) +>true : boolean } interface I1 { ->I1 : I1 +>I1 : I1, Symbol(I1, Decl(exportPrivateType.ts, 8, 5)) (a: string, b: string): string; ->a : string ->b : string +>a : string, Symbol(a, Decl(exportPrivateType.ts, 11, 9)) +>b : string, Symbol(b, Decl(exportPrivateType.ts, 11, 19)) (x: number, y: number): I1; ->x : number ->y : number ->I1 : I1 +>x : number, Symbol(x, Decl(exportPrivateType.ts, 12, 9)) +>y : number, Symbol(y, Decl(exportPrivateType.ts, 12, 19)) +>I1 : I1, Symbol(I1, Decl(exportPrivateType.ts, 8, 5)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(exportPrivateType.ts, 13, 5)) x: string; ->x : string +>x : string, Symbol(x, Decl(exportPrivateType.ts, 15, 18)) y: number; ->y : number +>y : number, Symbol(y, Decl(exportPrivateType.ts, 16, 18)) } // None of the types are exported, so per section 10.3, should all be errors export var e: C1; ->e : C1 ->C1 : C1 +>e : C1, Symbol(e, Decl(exportPrivateType.ts, 21, 14)) +>C1 : C1, Symbol(C1, Decl(exportPrivateType.ts, 0, 12)) export var f: I1; ->f : I1 ->I1 : I1 +>f : I1, Symbol(f, Decl(exportPrivateType.ts, 22, 14)) +>I1 : I1, Symbol(I1, Decl(exportPrivateType.ts, 8, 5)) export var g: C2; ->g : C2 ->C2 : C2 +>g : C2, Symbol(g, Decl(exportPrivateType.ts, 23, 14)) +>C2 : C2, Symbol(C2, Decl(exportPrivateType.ts, 4, 5)) export var h: I2; ->h : I2 ->I2 : I2 +>h : I2, Symbol(h, Decl(exportPrivateType.ts, 24, 14)) +>I2 : I2, Symbol(I2, Decl(exportPrivateType.ts, 13, 5)) } var y = foo.g; // Exported variable 'y' has or is using private type 'foo.C2'. ->y : C2 ->foo.g : C2 ->foo : typeof foo ->g : C2 +>y : C2, Symbol(y, Decl(exportPrivateType.ts, 27, 3)) +>foo.g : C2, Symbol(foo.g, Decl(exportPrivateType.ts, 23, 14)) +>foo : typeof foo, Symbol(foo, Decl(exportPrivateType.ts, 0, 0)) +>g : C2, Symbol(foo.g, Decl(exportPrivateType.ts, 23, 14)) diff --git a/tests/baselines/reference/exportVisibility.types b/tests/baselines/reference/exportVisibility.types index 59936828275..f2c3c8ce291 100644 --- a/tests/baselines/reference/exportVisibility.types +++ b/tests/baselines/reference/exportVisibility.types @@ -1,18 +1,19 @@ === tests/cases/compiler/exportVisibility.ts === export class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(exportVisibility.ts, 0, 0)) } export var foo = new Foo(); ->foo : Foo +>foo : Foo, Symbol(foo, Decl(exportVisibility.ts, 3, 10)) >new Foo() : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(exportVisibility.ts, 0, 0)) export function test(foo: Foo) { ->test : (foo: Foo) => boolean ->foo : Foo ->Foo : Foo +>test : (foo: Foo) => boolean, Symbol(test, Decl(exportVisibility.ts, 3, 27)) +>foo : Foo, Symbol(foo, Decl(exportVisibility.ts, 5, 21)) +>Foo : Foo, Symbol(Foo, Decl(exportVisibility.ts, 0, 0)) return true; +>true : boolean } diff --git a/tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.types b/tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.types index c93c0742ebf..6440b6e4f74 100644 --- a/tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.types +++ b/tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.types @@ -1,42 +1,42 @@ === tests/cases/compiler/exportedInterfaceInaccessibleInCallbackInModule.ts === export interface ProgressCallback { ->ProgressCallback : ProgressCallback +>ProgressCallback : ProgressCallback, Symbol(ProgressCallback, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 0, 0)) (progress:any):any; ->progress : any +>progress : any, Symbol(progress, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 1, 2)) } // --- Generic promise export declare class TPromise { ->TPromise : TPromise ->V : V +>TPromise : TPromise, Symbol(TPromise, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 2, 1)) +>V : V, Symbol(V, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 5, 30)) constructor(init:(complete: (value:V)=>void, error:(err:any)=>void, progress:ProgressCallback)=>void, oncancel?: any); ->init : (complete: (value: V) => void, error: (err: any) => void, progress: ProgressCallback) => void ->complete : (value: V) => void ->value : V ->V : V ->error : (err: any) => void ->err : any ->progress : ProgressCallback ->ProgressCallback : ProgressCallback ->oncancel : any +>init : (complete: (value: V) => void, error: (err: any) => void, progress: ProgressCallback) => void, Symbol(init, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 7, 13)) +>complete : (value: V) => void, Symbol(complete, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 7, 19)) +>value : V, Symbol(value, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 7, 30)) +>V : V, Symbol(V, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 5, 30)) +>error : (err: any) => void, Symbol(error, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 7, 45)) +>err : any, Symbol(err, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 7, 53)) +>progress : ProgressCallback, Symbol(progress, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 7, 68)) +>ProgressCallback : ProgressCallback, Symbol(ProgressCallback, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 0, 0)) +>oncancel : any, Symbol(oncancel, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 7, 102)) // removing this method fixes the error squiggle..... public then(success?: (value:V)=>TPromise, error?: (err:any)=>TPromise, progress?:ProgressCallback): TPromise; ->then : (success?: (value: V) => TPromise, error?: (err: any) => TPromise, progress?: ProgressCallback) => TPromise ->U : U ->success : (value: V) => TPromise ->value : V ->V : V ->TPromise : TPromise ->U : U ->error : (err: any) => TPromise ->err : any ->TPromise : TPromise ->U : U ->progress : ProgressCallback ->ProgressCallback : ProgressCallback ->TPromise : TPromise ->U : U +>then : (success?: (value: V) => TPromise, error?: (err: any) => TPromise, progress?: ProgressCallback) => TPromise, Symbol(then, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 7, 119)) +>U : U, Symbol(U, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 10, 13)) +>success : (value: V) => TPromise, Symbol(success, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 10, 16)) +>value : V, Symbol(value, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 10, 27)) +>V : V, Symbol(V, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 5, 30)) +>TPromise : TPromise, Symbol(TPromise, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 2, 1)) +>U : U, Symbol(U, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 10, 13)) +>error : (err: any) => TPromise, Symbol(error, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 10, 49)) +>err : any, Symbol(err, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 10, 59)) +>TPromise : TPromise, Symbol(TPromise, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 2, 1)) +>U : U, Symbol(U, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 10, 13)) +>progress : ProgressCallback, Symbol(progress, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 10, 81)) +>ProgressCallback : ProgressCallback, Symbol(ProgressCallback, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 0, 0)) +>TPromise : TPromise, Symbol(TPromise, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 2, 1)) +>U : U, Symbol(U, Decl(exportedInterfaceInaccessibleInCallbackInModule.ts, 10, 13)) } diff --git a/tests/baselines/reference/exportedVariable1.types b/tests/baselines/reference/exportedVariable1.types index a02cbc5b36a..c6d9451f6c9 100644 --- a/tests/baselines/reference/exportedVariable1.types +++ b/tests/baselines/reference/exportedVariable1.types @@ -1,15 +1,16 @@ === tests/cases/compiler/exportedVariable1.ts === export var foo = {name: "Bill"}; ->foo : { name: string; } +>foo : { name: string; }, Symbol(foo, Decl(exportedVariable1.ts, 0, 10)) >{name: "Bill"} : { name: string; } ->name : string +>name : string, Symbol(name, Decl(exportedVariable1.ts, 0, 18)) +>"Bill" : string var upper = foo.name.toUpperCase(); ->upper : string +>upper : string, Symbol(upper, Decl(exportedVariable1.ts, 1, 3)) >foo.name.toUpperCase() : string ->foo.name.toUpperCase : () => string ->foo.name : string ->foo : { name: string; } ->name : string ->toUpperCase : () => string +>foo.name.toUpperCase : () => string, Symbol(String.toUpperCase, Decl(lib.d.ts, 405, 32)) +>foo.name : string, Symbol(name, Decl(exportedVariable1.ts, 0, 18)) +>foo : { name: string; }, Symbol(foo, Decl(exportedVariable1.ts, 0, 10)) +>name : string, Symbol(name, Decl(exportedVariable1.ts, 0, 18)) +>toUpperCase : () => string, Symbol(String.toUpperCase, Decl(lib.d.ts, 405, 32)) diff --git a/tests/baselines/reference/exportsAndImports1-amd.types b/tests/baselines/reference/exportsAndImports1-amd.types index 0b35b04e22e..219f8ebdc8a 100644 --- a/tests/baselines/reference/exportsAndImports1-amd.types +++ b/tests/baselines/reference/exportsAndImports1-amd.types @@ -1,101 +1,102 @@ === tests/cases/conformance/es6/modules/t1.ts === var v = 1; ->v : number +>v : number, Symbol(v, Decl(t1.ts, 1, 3)) +>1 : number function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(t1.ts, 1, 10)) class C { ->C : C +>C : C, Symbol(C, Decl(t1.ts, 2, 16)) } interface I { ->I : I +>I : I, Symbol(I, Decl(t1.ts, 4, 1)) } enum E { ->E : E +>E : E, Symbol(E, Decl(t1.ts, 6, 1)) A, B, C ->A : E ->B : E ->C : E +>A : E, Symbol(E.A, Decl(t1.ts, 7, 8)) +>B : E, Symbol(E.B, Decl(t1.ts, 8, 6)) +>C : E, Symbol(E.C, Decl(t1.ts, 8, 9)) } const enum D { ->D : D +>D : D, Symbol(D, Decl(t1.ts, 9, 1)) A, B, C ->A : D ->B : D ->C : D +>A : D, Symbol(D.A, Decl(t1.ts, 10, 14)) +>B : D, Symbol(D.B, Decl(t1.ts, 11, 6)) +>C : D, Symbol(D.C, Decl(t1.ts, 11, 9)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(t1.ts, 12, 1)) export var x; ->x : any +>x : any, Symbol(x, Decl(t1.ts, 14, 14)) } module N { ->N : unknown +>N : any, Symbol(N, Decl(t1.ts, 15, 1)) export interface I { ->I : I +>I : I, Symbol(I, Decl(t1.ts, 16, 10)) } } type T = number; ->T : number +>T : number, Symbol(T, Decl(t1.ts, 19, 1)) import a = M.x; ->a : any ->M : typeof M ->x : any +>a : any, Symbol(a, Decl(t1.ts, 20, 16)) +>M : typeof M, Symbol(M, Decl(t1.ts, 12, 1)) +>x : any, Symbol(a, Decl(t1.ts, 14, 14)) export { v, f, C, I, E, D, M, N, T, a }; ->v : number ->f : () => void ->C : typeof C ->I : unknown ->E : typeof E ->D : typeof D ->M : typeof M ->N : unknown ->T : unknown ->a : any +>v : number, Symbol(v, Decl(t1.ts, 23, 8)) +>f : () => void, Symbol(f, Decl(t1.ts, 23, 11)) +>C : typeof C, Symbol(C, Decl(t1.ts, 23, 14)) +>I : any, Symbol(I, Decl(t1.ts, 23, 17)) +>E : typeof E, Symbol(E, Decl(t1.ts, 23, 20)) +>D : typeof D, Symbol(D, Decl(t1.ts, 23, 23)) +>M : typeof M, Symbol(M, Decl(t1.ts, 23, 26)) +>N : any, Symbol(N, Decl(t1.ts, 23, 29)) +>T : any, Symbol(T, Decl(t1.ts, 23, 32)) +>a : any, Symbol(a, Decl(t1.ts, 23, 35)) === tests/cases/conformance/es6/modules/t2.ts === export { v, f, C, I, E, D, M, N, T, a } from "./t1"; ->v : number ->f : () => void ->C : typeof C ->I : unknown ->E : typeof E ->D : typeof D ->M : typeof M ->N : unknown ->T : unknown ->a : any +>v : number, Symbol(v, Decl(t2.ts, 0, 8)) +>f : () => void, Symbol(f, Decl(t2.ts, 0, 11)) +>C : typeof C, Symbol(C, Decl(t2.ts, 0, 14)) +>I : any, Symbol(I, Decl(t2.ts, 0, 17)) +>E : typeof E, Symbol(E, Decl(t2.ts, 0, 20)) +>D : typeof D, Symbol(D, Decl(t2.ts, 0, 23)) +>M : typeof M, Symbol(M, Decl(t2.ts, 0, 26)) +>N : any, Symbol(N, Decl(t2.ts, 0, 29)) +>T : any, Symbol(T, Decl(t2.ts, 0, 32)) +>a : any, Symbol(a, Decl(t2.ts, 0, 35)) === tests/cases/conformance/es6/modules/t3.ts === import { v, f, C, I, E, D, M, N, T, a } from "./t1"; ->v : number ->f : () => void ->C : typeof C ->I : unknown ->E : typeof E ->D : typeof D ->M : typeof M ->N : unknown ->T : unknown ->a : any +>v : number, Symbol(v, Decl(t3.ts, 0, 8)) +>f : () => void, Symbol(f, Decl(t3.ts, 0, 11)) +>C : typeof C, Symbol(C, Decl(t3.ts, 0, 14)) +>I : any, Symbol(I, Decl(t3.ts, 0, 17)) +>E : typeof E, Symbol(E, Decl(t3.ts, 0, 20)) +>D : typeof D, Symbol(D, Decl(t3.ts, 0, 23)) +>M : typeof M, Symbol(M, Decl(t3.ts, 0, 26)) +>N : any, Symbol(N, Decl(t3.ts, 0, 29)) +>T : any, Symbol(T, Decl(t3.ts, 0, 32)) +>a : any, Symbol(a, Decl(t3.ts, 0, 35)) export { v, f, C, I, E, D, M, N, T, a }; ->v : number ->f : () => void ->C : typeof C ->I : unknown ->E : typeof E ->D : typeof D ->M : typeof M ->N : unknown ->T : unknown ->a : any +>v : number, Symbol(v, Decl(t3.ts, 1, 8)) +>f : () => void, Symbol(f, Decl(t3.ts, 1, 11)) +>C : typeof C, Symbol(C, Decl(t3.ts, 1, 14)) +>I : any, Symbol(I, Decl(t3.ts, 1, 17)) +>E : typeof E, Symbol(E, Decl(t3.ts, 1, 20)) +>D : typeof D, Symbol(D, Decl(t3.ts, 1, 23)) +>M : typeof M, Symbol(M, Decl(t3.ts, 1, 26)) +>N : any, Symbol(N, Decl(t3.ts, 1, 29)) +>T : any, Symbol(T, Decl(t3.ts, 1, 32)) +>a : any, Symbol(a, Decl(t3.ts, 1, 35)) diff --git a/tests/baselines/reference/exportsAndImports1.types b/tests/baselines/reference/exportsAndImports1.types index 0b35b04e22e..219f8ebdc8a 100644 --- a/tests/baselines/reference/exportsAndImports1.types +++ b/tests/baselines/reference/exportsAndImports1.types @@ -1,101 +1,102 @@ === tests/cases/conformance/es6/modules/t1.ts === var v = 1; ->v : number +>v : number, Symbol(v, Decl(t1.ts, 1, 3)) +>1 : number function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(t1.ts, 1, 10)) class C { ->C : C +>C : C, Symbol(C, Decl(t1.ts, 2, 16)) } interface I { ->I : I +>I : I, Symbol(I, Decl(t1.ts, 4, 1)) } enum E { ->E : E +>E : E, Symbol(E, Decl(t1.ts, 6, 1)) A, B, C ->A : E ->B : E ->C : E +>A : E, Symbol(E.A, Decl(t1.ts, 7, 8)) +>B : E, Symbol(E.B, Decl(t1.ts, 8, 6)) +>C : E, Symbol(E.C, Decl(t1.ts, 8, 9)) } const enum D { ->D : D +>D : D, Symbol(D, Decl(t1.ts, 9, 1)) A, B, C ->A : D ->B : D ->C : D +>A : D, Symbol(D.A, Decl(t1.ts, 10, 14)) +>B : D, Symbol(D.B, Decl(t1.ts, 11, 6)) +>C : D, Symbol(D.C, Decl(t1.ts, 11, 9)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(t1.ts, 12, 1)) export var x; ->x : any +>x : any, Symbol(x, Decl(t1.ts, 14, 14)) } module N { ->N : unknown +>N : any, Symbol(N, Decl(t1.ts, 15, 1)) export interface I { ->I : I +>I : I, Symbol(I, Decl(t1.ts, 16, 10)) } } type T = number; ->T : number +>T : number, Symbol(T, Decl(t1.ts, 19, 1)) import a = M.x; ->a : any ->M : typeof M ->x : any +>a : any, Symbol(a, Decl(t1.ts, 20, 16)) +>M : typeof M, Symbol(M, Decl(t1.ts, 12, 1)) +>x : any, Symbol(a, Decl(t1.ts, 14, 14)) export { v, f, C, I, E, D, M, N, T, a }; ->v : number ->f : () => void ->C : typeof C ->I : unknown ->E : typeof E ->D : typeof D ->M : typeof M ->N : unknown ->T : unknown ->a : any +>v : number, Symbol(v, Decl(t1.ts, 23, 8)) +>f : () => void, Symbol(f, Decl(t1.ts, 23, 11)) +>C : typeof C, Symbol(C, Decl(t1.ts, 23, 14)) +>I : any, Symbol(I, Decl(t1.ts, 23, 17)) +>E : typeof E, Symbol(E, Decl(t1.ts, 23, 20)) +>D : typeof D, Symbol(D, Decl(t1.ts, 23, 23)) +>M : typeof M, Symbol(M, Decl(t1.ts, 23, 26)) +>N : any, Symbol(N, Decl(t1.ts, 23, 29)) +>T : any, Symbol(T, Decl(t1.ts, 23, 32)) +>a : any, Symbol(a, Decl(t1.ts, 23, 35)) === tests/cases/conformance/es6/modules/t2.ts === export { v, f, C, I, E, D, M, N, T, a } from "./t1"; ->v : number ->f : () => void ->C : typeof C ->I : unknown ->E : typeof E ->D : typeof D ->M : typeof M ->N : unknown ->T : unknown ->a : any +>v : number, Symbol(v, Decl(t2.ts, 0, 8)) +>f : () => void, Symbol(f, Decl(t2.ts, 0, 11)) +>C : typeof C, Symbol(C, Decl(t2.ts, 0, 14)) +>I : any, Symbol(I, Decl(t2.ts, 0, 17)) +>E : typeof E, Symbol(E, Decl(t2.ts, 0, 20)) +>D : typeof D, Symbol(D, Decl(t2.ts, 0, 23)) +>M : typeof M, Symbol(M, Decl(t2.ts, 0, 26)) +>N : any, Symbol(N, Decl(t2.ts, 0, 29)) +>T : any, Symbol(T, Decl(t2.ts, 0, 32)) +>a : any, Symbol(a, Decl(t2.ts, 0, 35)) === tests/cases/conformance/es6/modules/t3.ts === import { v, f, C, I, E, D, M, N, T, a } from "./t1"; ->v : number ->f : () => void ->C : typeof C ->I : unknown ->E : typeof E ->D : typeof D ->M : typeof M ->N : unknown ->T : unknown ->a : any +>v : number, Symbol(v, Decl(t3.ts, 0, 8)) +>f : () => void, Symbol(f, Decl(t3.ts, 0, 11)) +>C : typeof C, Symbol(C, Decl(t3.ts, 0, 14)) +>I : any, Symbol(I, Decl(t3.ts, 0, 17)) +>E : typeof E, Symbol(E, Decl(t3.ts, 0, 20)) +>D : typeof D, Symbol(D, Decl(t3.ts, 0, 23)) +>M : typeof M, Symbol(M, Decl(t3.ts, 0, 26)) +>N : any, Symbol(N, Decl(t3.ts, 0, 29)) +>T : any, Symbol(T, Decl(t3.ts, 0, 32)) +>a : any, Symbol(a, Decl(t3.ts, 0, 35)) export { v, f, C, I, E, D, M, N, T, a }; ->v : number ->f : () => void ->C : typeof C ->I : unknown ->E : typeof E ->D : typeof D ->M : typeof M ->N : unknown ->T : unknown ->a : any +>v : number, Symbol(v, Decl(t3.ts, 1, 8)) +>f : () => void, Symbol(f, Decl(t3.ts, 1, 11)) +>C : typeof C, Symbol(C, Decl(t3.ts, 1, 14)) +>I : any, Symbol(I, Decl(t3.ts, 1, 17)) +>E : typeof E, Symbol(E, Decl(t3.ts, 1, 20)) +>D : typeof D, Symbol(D, Decl(t3.ts, 1, 23)) +>M : typeof M, Symbol(M, Decl(t3.ts, 1, 26)) +>N : any, Symbol(N, Decl(t3.ts, 1, 29)) +>T : any, Symbol(T, Decl(t3.ts, 1, 32)) +>a : any, Symbol(a, Decl(t3.ts, 1, 35)) diff --git a/tests/baselines/reference/exportsAndImports2-amd.types b/tests/baselines/reference/exportsAndImports2-amd.types index ebfc097da5a..282ae136d0e 100644 --- a/tests/baselines/reference/exportsAndImports2-amd.types +++ b/tests/baselines/reference/exportsAndImports2-amd.types @@ -1,26 +1,28 @@ === tests/cases/conformance/es6/modules/t1.ts === export var x = "x"; ->x : string +>x : string, Symbol(x, Decl(t1.ts, 1, 10)) +>"x" : string export var y = "y"; ->y : string +>y : string, Symbol(y, Decl(t1.ts, 2, 10)) +>"y" : string === tests/cases/conformance/es6/modules/t2.ts === export { x as y, y as x } from "./t1"; ->x : string ->y : string ->y : string ->x : string +>x : string, Symbol(y, Decl(t2.ts, 0, 8)) +>y : string, Symbol(y, Decl(t2.ts, 0, 8)) +>y : string, Symbol(x, Decl(t2.ts, 0, 16)) +>x : string, Symbol(x, Decl(t2.ts, 0, 16)) === tests/cases/conformance/es6/modules/t3.ts === import { x, y } from "./t1"; ->x : string ->y : string +>x : string, Symbol(x, Decl(t3.ts, 0, 8)) +>y : string, Symbol(y, Decl(t3.ts, 0, 11)) export { x as y, y as x }; ->x : string ->y : string ->y : string ->x : string +>x : string, Symbol(y, Decl(t3.ts, 1, 8)) +>y : string, Symbol(y, Decl(t3.ts, 1, 8)) +>y : string, Symbol(x, Decl(t3.ts, 1, 16)) +>x : string, Symbol(x, Decl(t3.ts, 1, 16)) diff --git a/tests/baselines/reference/exportsAndImports2.types b/tests/baselines/reference/exportsAndImports2.types index ebfc097da5a..282ae136d0e 100644 --- a/tests/baselines/reference/exportsAndImports2.types +++ b/tests/baselines/reference/exportsAndImports2.types @@ -1,26 +1,28 @@ === tests/cases/conformance/es6/modules/t1.ts === export var x = "x"; ->x : string +>x : string, Symbol(x, Decl(t1.ts, 1, 10)) +>"x" : string export var y = "y"; ->y : string +>y : string, Symbol(y, Decl(t1.ts, 2, 10)) +>"y" : string === tests/cases/conformance/es6/modules/t2.ts === export { x as y, y as x } from "./t1"; ->x : string ->y : string ->y : string ->x : string +>x : string, Symbol(y, Decl(t2.ts, 0, 8)) +>y : string, Symbol(y, Decl(t2.ts, 0, 8)) +>y : string, Symbol(x, Decl(t2.ts, 0, 16)) +>x : string, Symbol(x, Decl(t2.ts, 0, 16)) === tests/cases/conformance/es6/modules/t3.ts === import { x, y } from "./t1"; ->x : string ->y : string +>x : string, Symbol(x, Decl(t3.ts, 0, 8)) +>y : string, Symbol(y, Decl(t3.ts, 0, 11)) export { x as y, y as x }; ->x : string ->y : string ->y : string ->x : string +>x : string, Symbol(y, Decl(t3.ts, 1, 8)) +>y : string, Symbol(y, Decl(t3.ts, 1, 8)) +>y : string, Symbol(x, Decl(t3.ts, 1, 16)) +>x : string, Symbol(x, Decl(t3.ts, 1, 16)) diff --git a/tests/baselines/reference/exportsAndImports3-amd.types b/tests/baselines/reference/exportsAndImports3-amd.types index 86e21cfd084..86e6de9f581 100644 --- a/tests/baselines/reference/exportsAndImports3-amd.types +++ b/tests/baselines/reference/exportsAndImports3-amd.types @@ -1,131 +1,132 @@ === tests/cases/conformance/es6/modules/t1.ts === export var v = 1; ->v : number +>v : number, Symbol(v, Decl(t1.ts, 1, 10)) +>1 : number export function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(t1.ts, 1, 17)) export class C { ->C : C +>C : C, Symbol(C, Decl(t1.ts, 2, 23)) } export interface I { ->I : I +>I : I, Symbol(I, Decl(t1.ts, 4, 1)) } export enum E { ->E : E +>E : E, Symbol(E, Decl(t1.ts, 6, 1)) A, B, C ->A : E ->B : E ->C : E +>A : E, Symbol(E1.A, Decl(t1.ts, 7, 15)) +>B : E, Symbol(E1.B, Decl(t1.ts, 8, 6)) +>C : E, Symbol(E1.C, Decl(t1.ts, 8, 9)) } export const enum D { ->D : D +>D : D, Symbol(D, Decl(t1.ts, 9, 1)) A, B, C ->A : D ->B : D ->C : D +>A : D, Symbol(D1.A, Decl(t1.ts, 10, 21)) +>B : D, Symbol(D1.B, Decl(t1.ts, 11, 6)) +>C : D, Symbol(D1.C, Decl(t1.ts, 11, 9)) } export module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(t1.ts, 12, 1)) export var x; ->x : any +>x : any, Symbol(x, Decl(t1.ts, 14, 14)) } export module N { ->N : unknown +>N : any, Symbol(N, Decl(t1.ts, 15, 1)) export interface I { ->I : I +>I : I, Symbol(I, Decl(t1.ts, 16, 17)) } } export type T = number; ->T : number +>T : number, Symbol(T, Decl(t1.ts, 19, 1)) export import a = M.x; ->a : any ->M : typeof M ->x : any +>a : any, Symbol(a, Decl(t1.ts, 20, 23)) +>M : typeof M, Symbol(M, Decl(t1.ts, 12, 1)) +>x : any, Symbol(a, Decl(t1.ts, 14, 14)) export { v as v1, f as f1, C as C1, I as I1, E as E1, D as D1, M as M1, N as N1, T as T1, a as a1 }; ->v : number ->v1 : number ->f : () => void ->f1 : () => void ->C : typeof C ->C1 : typeof C ->I : unknown ->I1 : unknown ->E : typeof E ->E1 : typeof E ->D : typeof D ->D1 : typeof D ->M : typeof M ->M1 : typeof M ->N : unknown ->N1 : unknown ->T : unknown ->T1 : unknown ->a : any ->a1 : any +>v : number, Symbol(v1, Decl(t1.ts, 23, 8)) +>v1 : number, Symbol(v1, Decl(t1.ts, 23, 8)) +>f : () => void, Symbol(f1, Decl(t1.ts, 23, 17)) +>f1 : () => void, Symbol(f1, Decl(t1.ts, 23, 17)) +>C : typeof C, Symbol(C1, Decl(t1.ts, 23, 26)) +>C1 : typeof C, Symbol(C1, Decl(t1.ts, 23, 26)) +>I : any, Symbol(I1, Decl(t1.ts, 23, 35)) +>I1 : any, Symbol(I1, Decl(t1.ts, 23, 35)) +>E : typeof E, Symbol(E1, Decl(t1.ts, 23, 44)) +>E1 : typeof E, Symbol(E1, Decl(t1.ts, 23, 44)) +>D : typeof D, Symbol(D1, Decl(t1.ts, 23, 53)) +>D1 : typeof D, Symbol(D1, Decl(t1.ts, 23, 53)) +>M : typeof M, Symbol(M1, Decl(t1.ts, 23, 62)) +>M1 : typeof M, Symbol(M1, Decl(t1.ts, 23, 62)) +>N : any, Symbol(N1, Decl(t1.ts, 23, 71)) +>N1 : any, Symbol(N1, Decl(t1.ts, 23, 71)) +>T : any, Symbol(T1, Decl(t1.ts, 23, 80)) +>T1 : any, Symbol(T1, Decl(t1.ts, 23, 80)) +>a : any, Symbol(a1, Decl(t1.ts, 23, 89)) +>a1 : any, Symbol(a1, Decl(t1.ts, 23, 89)) === tests/cases/conformance/es6/modules/t2.ts === export { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; ->v1 : number ->v : number ->f1 : () => void ->f : () => void ->C1 : typeof C ->C : typeof C ->I1 : unknown ->I : unknown ->E1 : typeof E ->E : typeof E ->D1 : typeof D ->D : typeof D ->M1 : typeof M ->M : typeof M ->N1 : unknown ->N : unknown ->T1 : unknown ->T : unknown ->a1 : any ->a : any +>v1 : number, Symbol(v, Decl(t2.ts, 0, 8)) +>v : number, Symbol(v, Decl(t2.ts, 0, 8)) +>f1 : () => void, Symbol(f, Decl(t2.ts, 0, 17)) +>f : () => void, Symbol(f, Decl(t2.ts, 0, 17)) +>C1 : typeof C, Symbol(C, Decl(t2.ts, 0, 26)) +>C : typeof C, Symbol(C, Decl(t2.ts, 0, 26)) +>I1 : any, Symbol(I, Decl(t2.ts, 0, 35)) +>I : any, Symbol(I, Decl(t2.ts, 0, 35)) +>E1 : typeof E, Symbol(E, Decl(t2.ts, 0, 44)) +>E : typeof E, Symbol(E, Decl(t2.ts, 0, 44)) +>D1 : typeof D, Symbol(D, Decl(t2.ts, 0, 53)) +>D : typeof D, Symbol(D, Decl(t2.ts, 0, 53)) +>M1 : typeof M, Symbol(M, Decl(t2.ts, 0, 62)) +>M : typeof M, Symbol(M, Decl(t2.ts, 0, 62)) +>N1 : any, Symbol(N, Decl(t2.ts, 0, 71)) +>N : any, Symbol(N, Decl(t2.ts, 0, 71)) +>T1 : any, Symbol(T, Decl(t2.ts, 0, 80)) +>T : any, Symbol(T, Decl(t2.ts, 0, 80)) +>a1 : any, Symbol(a, Decl(t2.ts, 0, 89)) +>a : any, Symbol(a, Decl(t2.ts, 0, 89)) === tests/cases/conformance/es6/modules/t3.ts === import { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; ->v1 : number ->v : number ->f1 : () => void ->f : () => void ->C1 : typeof C ->C : typeof C ->I1 : unknown ->I : unknown ->E1 : typeof E ->E : typeof E ->D1 : typeof D ->D : typeof D ->M1 : typeof M ->M : typeof M ->N1 : unknown ->N : unknown ->T1 : unknown ->T : unknown ->a1 : any ->a : any +>v1 : number, Symbol(v, Decl(t3.ts, 0, 8)) +>v : number, Symbol(v, Decl(t3.ts, 0, 8)) +>f1 : () => void, Symbol(f, Decl(t3.ts, 0, 17)) +>f : () => void, Symbol(f, Decl(t3.ts, 0, 17)) +>C1 : typeof C, Symbol(C, Decl(t3.ts, 0, 26)) +>C : typeof C, Symbol(C, Decl(t3.ts, 0, 26)) +>I1 : any, Symbol(I, Decl(t3.ts, 0, 35)) +>I : any, Symbol(I, Decl(t3.ts, 0, 35)) +>E1 : typeof E, Symbol(E, Decl(t3.ts, 0, 44)) +>E : typeof E, Symbol(E, Decl(t3.ts, 0, 44)) +>D1 : typeof D, Symbol(D, Decl(t3.ts, 0, 53)) +>D : typeof D, Symbol(D, Decl(t3.ts, 0, 53)) +>M1 : typeof M, Symbol(M, Decl(t3.ts, 0, 62)) +>M : typeof M, Symbol(M, Decl(t3.ts, 0, 62)) +>N1 : any, Symbol(N, Decl(t3.ts, 0, 71)) +>N : any, Symbol(N, Decl(t3.ts, 0, 71)) +>T1 : any, Symbol(T, Decl(t3.ts, 0, 80)) +>T : any, Symbol(T, Decl(t3.ts, 0, 80)) +>a1 : any, Symbol(a, Decl(t3.ts, 0, 89)) +>a : any, Symbol(a, Decl(t3.ts, 0, 89)) export { v, f, C, I, E, D, M, N, T, a }; ->v : number ->f : () => void ->C : typeof C ->I : unknown ->E : typeof E ->D : typeof D ->M : typeof M ->N : unknown ->T : unknown ->a : any +>v : number, Symbol(v, Decl(t3.ts, 1, 8)) +>f : () => void, Symbol(f, Decl(t3.ts, 1, 11)) +>C : typeof C, Symbol(C, Decl(t3.ts, 1, 14)) +>I : any, Symbol(I, Decl(t3.ts, 1, 17)) +>E : typeof E, Symbol(E, Decl(t3.ts, 1, 20)) +>D : typeof D, Symbol(D, Decl(t3.ts, 1, 23)) +>M : typeof M, Symbol(M, Decl(t3.ts, 1, 26)) +>N : any, Symbol(N, Decl(t3.ts, 1, 29)) +>T : any, Symbol(T, Decl(t3.ts, 1, 32)) +>a : any, Symbol(a, Decl(t3.ts, 1, 35)) diff --git a/tests/baselines/reference/exportsAndImports3.types b/tests/baselines/reference/exportsAndImports3.types index 86e21cfd084..86e6de9f581 100644 --- a/tests/baselines/reference/exportsAndImports3.types +++ b/tests/baselines/reference/exportsAndImports3.types @@ -1,131 +1,132 @@ === tests/cases/conformance/es6/modules/t1.ts === export var v = 1; ->v : number +>v : number, Symbol(v, Decl(t1.ts, 1, 10)) +>1 : number export function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(t1.ts, 1, 17)) export class C { ->C : C +>C : C, Symbol(C, Decl(t1.ts, 2, 23)) } export interface I { ->I : I +>I : I, Symbol(I, Decl(t1.ts, 4, 1)) } export enum E { ->E : E +>E : E, Symbol(E, Decl(t1.ts, 6, 1)) A, B, C ->A : E ->B : E ->C : E +>A : E, Symbol(E1.A, Decl(t1.ts, 7, 15)) +>B : E, Symbol(E1.B, Decl(t1.ts, 8, 6)) +>C : E, Symbol(E1.C, Decl(t1.ts, 8, 9)) } export const enum D { ->D : D +>D : D, Symbol(D, Decl(t1.ts, 9, 1)) A, B, C ->A : D ->B : D ->C : D +>A : D, Symbol(D1.A, Decl(t1.ts, 10, 21)) +>B : D, Symbol(D1.B, Decl(t1.ts, 11, 6)) +>C : D, Symbol(D1.C, Decl(t1.ts, 11, 9)) } export module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(t1.ts, 12, 1)) export var x; ->x : any +>x : any, Symbol(x, Decl(t1.ts, 14, 14)) } export module N { ->N : unknown +>N : any, Symbol(N, Decl(t1.ts, 15, 1)) export interface I { ->I : I +>I : I, Symbol(I, Decl(t1.ts, 16, 17)) } } export type T = number; ->T : number +>T : number, Symbol(T, Decl(t1.ts, 19, 1)) export import a = M.x; ->a : any ->M : typeof M ->x : any +>a : any, Symbol(a, Decl(t1.ts, 20, 23)) +>M : typeof M, Symbol(M, Decl(t1.ts, 12, 1)) +>x : any, Symbol(a, Decl(t1.ts, 14, 14)) export { v as v1, f as f1, C as C1, I as I1, E as E1, D as D1, M as M1, N as N1, T as T1, a as a1 }; ->v : number ->v1 : number ->f : () => void ->f1 : () => void ->C : typeof C ->C1 : typeof C ->I : unknown ->I1 : unknown ->E : typeof E ->E1 : typeof E ->D : typeof D ->D1 : typeof D ->M : typeof M ->M1 : typeof M ->N : unknown ->N1 : unknown ->T : unknown ->T1 : unknown ->a : any ->a1 : any +>v : number, Symbol(v1, Decl(t1.ts, 23, 8)) +>v1 : number, Symbol(v1, Decl(t1.ts, 23, 8)) +>f : () => void, Symbol(f1, Decl(t1.ts, 23, 17)) +>f1 : () => void, Symbol(f1, Decl(t1.ts, 23, 17)) +>C : typeof C, Symbol(C1, Decl(t1.ts, 23, 26)) +>C1 : typeof C, Symbol(C1, Decl(t1.ts, 23, 26)) +>I : any, Symbol(I1, Decl(t1.ts, 23, 35)) +>I1 : any, Symbol(I1, Decl(t1.ts, 23, 35)) +>E : typeof E, Symbol(E1, Decl(t1.ts, 23, 44)) +>E1 : typeof E, Symbol(E1, Decl(t1.ts, 23, 44)) +>D : typeof D, Symbol(D1, Decl(t1.ts, 23, 53)) +>D1 : typeof D, Symbol(D1, Decl(t1.ts, 23, 53)) +>M : typeof M, Symbol(M1, Decl(t1.ts, 23, 62)) +>M1 : typeof M, Symbol(M1, Decl(t1.ts, 23, 62)) +>N : any, Symbol(N1, Decl(t1.ts, 23, 71)) +>N1 : any, Symbol(N1, Decl(t1.ts, 23, 71)) +>T : any, Symbol(T1, Decl(t1.ts, 23, 80)) +>T1 : any, Symbol(T1, Decl(t1.ts, 23, 80)) +>a : any, Symbol(a1, Decl(t1.ts, 23, 89)) +>a1 : any, Symbol(a1, Decl(t1.ts, 23, 89)) === tests/cases/conformance/es6/modules/t2.ts === export { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; ->v1 : number ->v : number ->f1 : () => void ->f : () => void ->C1 : typeof C ->C : typeof C ->I1 : unknown ->I : unknown ->E1 : typeof E ->E : typeof E ->D1 : typeof D ->D : typeof D ->M1 : typeof M ->M : typeof M ->N1 : unknown ->N : unknown ->T1 : unknown ->T : unknown ->a1 : any ->a : any +>v1 : number, Symbol(v, Decl(t2.ts, 0, 8)) +>v : number, Symbol(v, Decl(t2.ts, 0, 8)) +>f1 : () => void, Symbol(f, Decl(t2.ts, 0, 17)) +>f : () => void, Symbol(f, Decl(t2.ts, 0, 17)) +>C1 : typeof C, Symbol(C, Decl(t2.ts, 0, 26)) +>C : typeof C, Symbol(C, Decl(t2.ts, 0, 26)) +>I1 : any, Symbol(I, Decl(t2.ts, 0, 35)) +>I : any, Symbol(I, Decl(t2.ts, 0, 35)) +>E1 : typeof E, Symbol(E, Decl(t2.ts, 0, 44)) +>E : typeof E, Symbol(E, Decl(t2.ts, 0, 44)) +>D1 : typeof D, Symbol(D, Decl(t2.ts, 0, 53)) +>D : typeof D, Symbol(D, Decl(t2.ts, 0, 53)) +>M1 : typeof M, Symbol(M, Decl(t2.ts, 0, 62)) +>M : typeof M, Symbol(M, Decl(t2.ts, 0, 62)) +>N1 : any, Symbol(N, Decl(t2.ts, 0, 71)) +>N : any, Symbol(N, Decl(t2.ts, 0, 71)) +>T1 : any, Symbol(T, Decl(t2.ts, 0, 80)) +>T : any, Symbol(T, Decl(t2.ts, 0, 80)) +>a1 : any, Symbol(a, Decl(t2.ts, 0, 89)) +>a : any, Symbol(a, Decl(t2.ts, 0, 89)) === tests/cases/conformance/es6/modules/t3.ts === import { v1 as v, f1 as f, C1 as C, I1 as I, E1 as E, D1 as D, M1 as M, N1 as N, T1 as T, a1 as a } from "./t1"; ->v1 : number ->v : number ->f1 : () => void ->f : () => void ->C1 : typeof C ->C : typeof C ->I1 : unknown ->I : unknown ->E1 : typeof E ->E : typeof E ->D1 : typeof D ->D : typeof D ->M1 : typeof M ->M : typeof M ->N1 : unknown ->N : unknown ->T1 : unknown ->T : unknown ->a1 : any ->a : any +>v1 : number, Symbol(v, Decl(t3.ts, 0, 8)) +>v : number, Symbol(v, Decl(t3.ts, 0, 8)) +>f1 : () => void, Symbol(f, Decl(t3.ts, 0, 17)) +>f : () => void, Symbol(f, Decl(t3.ts, 0, 17)) +>C1 : typeof C, Symbol(C, Decl(t3.ts, 0, 26)) +>C : typeof C, Symbol(C, Decl(t3.ts, 0, 26)) +>I1 : any, Symbol(I, Decl(t3.ts, 0, 35)) +>I : any, Symbol(I, Decl(t3.ts, 0, 35)) +>E1 : typeof E, Symbol(E, Decl(t3.ts, 0, 44)) +>E : typeof E, Symbol(E, Decl(t3.ts, 0, 44)) +>D1 : typeof D, Symbol(D, Decl(t3.ts, 0, 53)) +>D : typeof D, Symbol(D, Decl(t3.ts, 0, 53)) +>M1 : typeof M, Symbol(M, Decl(t3.ts, 0, 62)) +>M : typeof M, Symbol(M, Decl(t3.ts, 0, 62)) +>N1 : any, Symbol(N, Decl(t3.ts, 0, 71)) +>N : any, Symbol(N, Decl(t3.ts, 0, 71)) +>T1 : any, Symbol(T, Decl(t3.ts, 0, 80)) +>T : any, Symbol(T, Decl(t3.ts, 0, 80)) +>a1 : any, Symbol(a, Decl(t3.ts, 0, 89)) +>a : any, Symbol(a, Decl(t3.ts, 0, 89)) export { v, f, C, I, E, D, M, N, T, a }; ->v : number ->f : () => void ->C : typeof C ->I : unknown ->E : typeof E ->D : typeof D ->M : typeof M ->N : unknown ->T : unknown ->a : any +>v : number, Symbol(v, Decl(t3.ts, 1, 8)) +>f : () => void, Symbol(f, Decl(t3.ts, 1, 11)) +>C : typeof C, Symbol(C, Decl(t3.ts, 1, 14)) +>I : any, Symbol(I, Decl(t3.ts, 1, 17)) +>E : typeof E, Symbol(E, Decl(t3.ts, 1, 20)) +>D : typeof D, Symbol(D, Decl(t3.ts, 1, 23)) +>M : typeof M, Symbol(M, Decl(t3.ts, 1, 26)) +>N : any, Symbol(N, Decl(t3.ts, 1, 29)) +>T : any, Symbol(T, Decl(t3.ts, 1, 32)) +>a : any, Symbol(a, Decl(t3.ts, 1, 35)) diff --git a/tests/baselines/reference/exportsAndImports4-amd.types b/tests/baselines/reference/exportsAndImports4-amd.types index 4bd6f8c0e1e..58df93ee327 100644 --- a/tests/baselines/reference/exportsAndImports4-amd.types +++ b/tests/baselines/reference/exportsAndImports4-amd.types @@ -1,65 +1,65 @@ === tests/cases/conformance/es6/modules/t3.ts === import a = require("./t1"); ->a : typeof a +>a : typeof a, Symbol(a, Decl(t3.ts, 0, 0)) a.default; ->a.default : string ->a : typeof a ->default : string +>a.default : string, Symbol(a.default, Decl(t1.ts, 0, 0)) +>a : typeof a, Symbol(a, Decl(t3.ts, 0, 0)) +>default : string, Symbol(a.default, Decl(t1.ts, 0, 0)) import b from "./t1"; ->b : string +>b : string, Symbol(b, Decl(t3.ts, 2, 6)) b; ->b : string +>b : string, Symbol(b, Decl(t3.ts, 2, 6)) import * as c from "./t1"; ->c : typeof a +>c : typeof a, Symbol(c, Decl(t3.ts, 4, 6)) c.default; ->c.default : string ->c : typeof a ->default : string +>c.default : string, Symbol(a.default, Decl(t1.ts, 0, 0)) +>c : typeof a, Symbol(c, Decl(t3.ts, 4, 6)) +>default : string, Symbol(a.default, Decl(t1.ts, 0, 0)) import { default as d } from "./t1"; ->default : string ->d : string +>default : string, Symbol(d, Decl(t3.ts, 6, 8)) +>d : string, Symbol(d, Decl(t3.ts, 6, 8)) d; ->d : string +>d : string, Symbol(d, Decl(t3.ts, 6, 8)) import e1, * as e2 from "./t1"; ->e1 : string ->e2 : typeof a +>e1 : string, Symbol(e1, Decl(t3.ts, 8, 6)) +>e2 : typeof a, Symbol(e2, Decl(t3.ts, 8, 10)) e1; ->e1 : string +>e1 : string, Symbol(e1, Decl(t3.ts, 8, 6)) e2.default; ->e2.default : string ->e2 : typeof a ->default : string +>e2.default : string, Symbol(a.default, Decl(t1.ts, 0, 0)) +>e2 : typeof a, Symbol(e2, Decl(t3.ts, 8, 10)) +>default : string, Symbol(a.default, Decl(t1.ts, 0, 0)) import f1, { default as f2 } from "./t1"; ->f1 : string ->default : string ->f2 : string +>f1 : string, Symbol(f1, Decl(t3.ts, 11, 6)) +>default : string, Symbol(f2, Decl(t3.ts, 11, 12)) +>f2 : string, Symbol(f2, Decl(t3.ts, 11, 12)) f1; ->f1 : string +>f1 : string, Symbol(f1, Decl(t3.ts, 11, 6)) f2; ->f2 : string +>f2 : string, Symbol(f2, Decl(t3.ts, 11, 12)) export { a, b, c, d, e1, e2, f1, f2 }; ->a : typeof a ->b : string ->c : typeof a ->d : string ->e1 : string ->e2 : typeof a ->f1 : string ->f2 : string +>a : typeof a, Symbol(a, Decl(t3.ts, 14, 8)) +>b : string, Symbol(b, Decl(t3.ts, 14, 11)) +>c : typeof a, Symbol(c, Decl(t3.ts, 14, 14)) +>d : string, Symbol(d, Decl(t3.ts, 14, 17)) +>e1 : string, Symbol(e1, Decl(t3.ts, 14, 20)) +>e2 : typeof a, Symbol(e2, Decl(t3.ts, 14, 24)) +>f1 : string, Symbol(f1, Decl(t3.ts, 14, 28)) +>f2 : string, Symbol(f2, Decl(t3.ts, 14, 32)) === tests/cases/conformance/es6/modules/t1.ts === diff --git a/tests/baselines/reference/exportsAndImports4.types b/tests/baselines/reference/exportsAndImports4.types index 4bd6f8c0e1e..58df93ee327 100644 --- a/tests/baselines/reference/exportsAndImports4.types +++ b/tests/baselines/reference/exportsAndImports4.types @@ -1,65 +1,65 @@ === tests/cases/conformance/es6/modules/t3.ts === import a = require("./t1"); ->a : typeof a +>a : typeof a, Symbol(a, Decl(t3.ts, 0, 0)) a.default; ->a.default : string ->a : typeof a ->default : string +>a.default : string, Symbol(a.default, Decl(t1.ts, 0, 0)) +>a : typeof a, Symbol(a, Decl(t3.ts, 0, 0)) +>default : string, Symbol(a.default, Decl(t1.ts, 0, 0)) import b from "./t1"; ->b : string +>b : string, Symbol(b, Decl(t3.ts, 2, 6)) b; ->b : string +>b : string, Symbol(b, Decl(t3.ts, 2, 6)) import * as c from "./t1"; ->c : typeof a +>c : typeof a, Symbol(c, Decl(t3.ts, 4, 6)) c.default; ->c.default : string ->c : typeof a ->default : string +>c.default : string, Symbol(a.default, Decl(t1.ts, 0, 0)) +>c : typeof a, Symbol(c, Decl(t3.ts, 4, 6)) +>default : string, Symbol(a.default, Decl(t1.ts, 0, 0)) import { default as d } from "./t1"; ->default : string ->d : string +>default : string, Symbol(d, Decl(t3.ts, 6, 8)) +>d : string, Symbol(d, Decl(t3.ts, 6, 8)) d; ->d : string +>d : string, Symbol(d, Decl(t3.ts, 6, 8)) import e1, * as e2 from "./t1"; ->e1 : string ->e2 : typeof a +>e1 : string, Symbol(e1, Decl(t3.ts, 8, 6)) +>e2 : typeof a, Symbol(e2, Decl(t3.ts, 8, 10)) e1; ->e1 : string +>e1 : string, Symbol(e1, Decl(t3.ts, 8, 6)) e2.default; ->e2.default : string ->e2 : typeof a ->default : string +>e2.default : string, Symbol(a.default, Decl(t1.ts, 0, 0)) +>e2 : typeof a, Symbol(e2, Decl(t3.ts, 8, 10)) +>default : string, Symbol(a.default, Decl(t1.ts, 0, 0)) import f1, { default as f2 } from "./t1"; ->f1 : string ->default : string ->f2 : string +>f1 : string, Symbol(f1, Decl(t3.ts, 11, 6)) +>default : string, Symbol(f2, Decl(t3.ts, 11, 12)) +>f2 : string, Symbol(f2, Decl(t3.ts, 11, 12)) f1; ->f1 : string +>f1 : string, Symbol(f1, Decl(t3.ts, 11, 6)) f2; ->f2 : string +>f2 : string, Symbol(f2, Decl(t3.ts, 11, 12)) export { a, b, c, d, e1, e2, f1, f2 }; ->a : typeof a ->b : string ->c : typeof a ->d : string ->e1 : string ->e2 : typeof a ->f1 : string ->f2 : string +>a : typeof a, Symbol(a, Decl(t3.ts, 14, 8)) +>b : string, Symbol(b, Decl(t3.ts, 14, 11)) +>c : typeof a, Symbol(c, Decl(t3.ts, 14, 14)) +>d : string, Symbol(d, Decl(t3.ts, 14, 17)) +>e1 : string, Symbol(e1, Decl(t3.ts, 14, 20)) +>e2 : typeof a, Symbol(e2, Decl(t3.ts, 14, 24)) +>f1 : string, Symbol(f1, Decl(t3.ts, 14, 28)) +>f2 : string, Symbol(f2, Decl(t3.ts, 14, 32)) === tests/cases/conformance/es6/modules/t1.ts === diff --git a/tests/baselines/reference/extBaseClass1.types b/tests/baselines/reference/extBaseClass1.types index d160db9a06e..1e9a9f7baac 100644 --- a/tests/baselines/reference/extBaseClass1.types +++ b/tests/baselines/reference/extBaseClass1.types @@ -1,36 +1,38 @@ === tests/cases/compiler/extBaseClass1.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(extBaseClass1.ts, 0, 0), Decl(extBaseClass1.ts, 7, 1)) export class B { ->B : B +>B : B, Symbol(B, Decl(extBaseClass1.ts, 0, 10)) public x=10; ->x : number +>x : number, Symbol(x, Decl(extBaseClass1.ts, 1, 20)) +>10 : number } export class C extends B { ->C : C ->B : B +>C : C, Symbol(C, Decl(extBaseClass1.ts, 3, 5)) +>B : B, Symbol(B, Decl(extBaseClass1.ts, 0, 10)) } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(extBaseClass1.ts, 0, 0), Decl(extBaseClass1.ts, 7, 1)) export class C2 extends B { ->C2 : C2 ->B : B +>C2 : C2, Symbol(C2, Decl(extBaseClass1.ts, 9, 10)) +>B : B, Symbol(B, Decl(extBaseClass1.ts, 0, 10)) } } module N { ->N : typeof N +>N : typeof N, Symbol(N, Decl(extBaseClass1.ts, 12, 1)) export class C3 extends M.B { ->C3 : C3 ->M : typeof M ->B : M.B +>C3 : C3, Symbol(C3, Decl(extBaseClass1.ts, 14, 10)) +>M.B : any, Symbol(M.B, Decl(extBaseClass1.ts, 0, 10)) +>M : typeof M, Symbol(M, Decl(extBaseClass1.ts, 0, 0), Decl(extBaseClass1.ts, 7, 1)) +>B : M.B, Symbol(M.B, Decl(extBaseClass1.ts, 0, 10)) } } diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType.types b/tests/baselines/reference/extendAndImplementTheSameBaseType.types index 136308b3887..a87b89c17a3 100644 --- a/tests/baselines/reference/extendAndImplementTheSameBaseType.types +++ b/tests/baselines/reference/extendAndImplementTheSameBaseType.types @@ -1,46 +1,46 @@ === tests/cases/compiler/extendAndImplementTheSameBaseType.ts === class C { ->C : C +>C : C, Symbol(C, Decl(extendAndImplementTheSameBaseType.ts, 0, 0)) foo: number ->foo : number +>foo : number, Symbol(foo, Decl(extendAndImplementTheSameBaseType.ts, 0, 9)) bar() {} ->bar : () => void +>bar : () => void, Symbol(bar, Decl(extendAndImplementTheSameBaseType.ts, 1, 15)) } class D extends C implements C { ->D : D ->C : C ->C : C +>D : D, Symbol(D, Decl(extendAndImplementTheSameBaseType.ts, 3, 1)) +>C : C, Symbol(C, Decl(extendAndImplementTheSameBaseType.ts, 0, 0)) +>C : C, Symbol(C, Decl(extendAndImplementTheSameBaseType.ts, 0, 0)) baz() { } ->baz : () => void +>baz : () => void, Symbol(baz, Decl(extendAndImplementTheSameBaseType.ts, 4, 32)) } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(extendAndImplementTheSameBaseType.ts, 8, 3)) +>C : C, Symbol(C, Decl(extendAndImplementTheSameBaseType.ts, 0, 0)) var d: D = new D(); ->d : D ->D : D +>d : D, Symbol(d, Decl(extendAndImplementTheSameBaseType.ts, 9, 3)) +>D : D, Symbol(D, Decl(extendAndImplementTheSameBaseType.ts, 3, 1)) >new D() : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(extendAndImplementTheSameBaseType.ts, 3, 1)) d.bar(); >d.bar() : void ->d.bar : () => void ->d : D ->bar : () => void +>d.bar : () => void, Symbol(C.bar, Decl(extendAndImplementTheSameBaseType.ts, 1, 15)) +>d : D, Symbol(d, Decl(extendAndImplementTheSameBaseType.ts, 9, 3)) +>bar : () => void, Symbol(C.bar, Decl(extendAndImplementTheSameBaseType.ts, 1, 15)) d.baz(); >d.baz() : void ->d.baz : () => void ->d : D ->baz : () => void +>d.baz : () => void, Symbol(D.baz, Decl(extendAndImplementTheSameBaseType.ts, 4, 32)) +>d : D, Symbol(d, Decl(extendAndImplementTheSameBaseType.ts, 9, 3)) +>baz : () => void, Symbol(D.baz, Decl(extendAndImplementTheSameBaseType.ts, 4, 32)) d.foo; ->d.foo : number ->d : D ->foo : number +>d.foo : number, Symbol(C.foo, Decl(extendAndImplementTheSameBaseType.ts, 0, 9)) +>d : D, Symbol(d, Decl(extendAndImplementTheSameBaseType.ts, 9, 3)) +>foo : number, Symbol(C.foo, Decl(extendAndImplementTheSameBaseType.ts, 0, 9)) diff --git a/tests/baselines/reference/extendBaseClassBeforeItsDeclared.types b/tests/baselines/reference/extendBaseClassBeforeItsDeclared.types index a9ad130d474..e63c33ca8a3 100644 --- a/tests/baselines/reference/extendBaseClassBeforeItsDeclared.types +++ b/tests/baselines/reference/extendBaseClassBeforeItsDeclared.types @@ -1,9 +1,9 @@ === tests/cases/compiler/extendBaseClassBeforeItsDeclared.ts === class derived extends base { } ->derived : derived ->base : base +>derived : derived, Symbol(derived, Decl(extendBaseClassBeforeItsDeclared.ts, 0, 0)) +>base : base, Symbol(base, Decl(extendBaseClassBeforeItsDeclared.ts, 0, 30)) class base { constructor (public n: number) { } } ->base : base ->n : number +>base : base, Symbol(base, Decl(extendBaseClassBeforeItsDeclared.ts, 0, 30)) +>n : number, Symbol(n, Decl(extendBaseClassBeforeItsDeclared.ts, 2, 26)) diff --git a/tests/baselines/reference/extendBooleanInterface.types b/tests/baselines/reference/extendBooleanInterface.types index 2d94680599a..32bfd1d07fa 100644 --- a/tests/baselines/reference/extendBooleanInterface.types +++ b/tests/baselines/reference/extendBooleanInterface.types @@ -1,44 +1,49 @@ === tests/cases/conformance/types/primitives/boolean/extendBooleanInterface.ts === interface Boolean { ->Boolean : Boolean +>Boolean : Boolean, Symbol(Boolean, Decl(lib.d.ts, 443, 38), Decl(lib.d.ts, 456, 11), Decl(extendBooleanInterface.ts, 0, 0)) doStuff(): string; ->doStuff : () => string +>doStuff : () => string, Symbol(doStuff, Decl(extendBooleanInterface.ts, 0, 19)) doOtherStuff(x: T): T; ->doOtherStuff : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>doOtherStuff : (x: T) => T, Symbol(doOtherStuff, Decl(extendBooleanInterface.ts, 1, 22)) +>T : T, Symbol(T, Decl(extendBooleanInterface.ts, 2, 17)) +>x : T, Symbol(x, Decl(extendBooleanInterface.ts, 2, 20)) +>T : T, Symbol(T, Decl(extendBooleanInterface.ts, 2, 17)) +>T : T, Symbol(T, Decl(extendBooleanInterface.ts, 2, 17)) } var x = true; ->x : boolean +>x : boolean, Symbol(x, Decl(extendBooleanInterface.ts, 5, 3)) +>true : boolean var a: string = x.doStuff(); ->a : string +>a : string, Symbol(a, Decl(extendBooleanInterface.ts, 6, 3)) >x.doStuff() : string ->x.doStuff : () => string ->x : boolean ->doStuff : () => string +>x.doStuff : () => string, Symbol(Boolean.doStuff, Decl(extendBooleanInterface.ts, 0, 19)) +>x : boolean, Symbol(x, Decl(extendBooleanInterface.ts, 5, 3)) +>doStuff : () => string, Symbol(Boolean.doStuff, Decl(extendBooleanInterface.ts, 0, 19)) var b: string = x.doOtherStuff('hm'); ->b : string +>b : string, Symbol(b, Decl(extendBooleanInterface.ts, 7, 3)) >x.doOtherStuff('hm') : string ->x.doOtherStuff : (x: T) => T ->x : boolean ->doOtherStuff : (x: T) => T +>x.doOtherStuff : (x: T) => T, Symbol(Boolean.doOtherStuff, Decl(extendBooleanInterface.ts, 1, 22)) +>x : boolean, Symbol(x, Decl(extendBooleanInterface.ts, 5, 3)) +>doOtherStuff : (x: T) => T, Symbol(Boolean.doOtherStuff, Decl(extendBooleanInterface.ts, 1, 22)) +>'hm' : string var c: string = x['doStuff'](); ->c : string +>c : string, Symbol(c, Decl(extendBooleanInterface.ts, 8, 3)) >x['doStuff']() : string >x['doStuff'] : () => string ->x : boolean +>x : boolean, Symbol(x, Decl(extendBooleanInterface.ts, 5, 3)) +>'doStuff' : string, Symbol(Boolean.doStuff, Decl(extendBooleanInterface.ts, 0, 19)) var d: string = x['doOtherStuff']('hm'); ->d : string +>d : string, Symbol(d, Decl(extendBooleanInterface.ts, 9, 3)) >x['doOtherStuff']('hm') : string >x['doOtherStuff'] : (x: T) => T ->x : boolean +>x : boolean, Symbol(x, Decl(extendBooleanInterface.ts, 5, 3)) +>'doOtherStuff' : string, Symbol(Boolean.doOtherStuff, Decl(extendBooleanInterface.ts, 1, 22)) +>'hm' : string diff --git a/tests/baselines/reference/extendNumberInterface.types b/tests/baselines/reference/extendNumberInterface.types index f109e05be89..8fd027586eb 100644 --- a/tests/baselines/reference/extendNumberInterface.types +++ b/tests/baselines/reference/extendNumberInterface.types @@ -1,44 +1,49 @@ === tests/cases/conformance/types/primitives/number/extendNumberInterface.ts === interface Number { ->Number : Number +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11), Decl(extendNumberInterface.ts, 0, 0)) doStuff(): string; ->doStuff : () => string +>doStuff : () => string, Symbol(doStuff, Decl(extendNumberInterface.ts, 0, 18)) doOtherStuff(x:T): T; ->doOtherStuff : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>doOtherStuff : (x: T) => T, Symbol(doOtherStuff, Decl(extendNumberInterface.ts, 1, 22)) +>T : T, Symbol(T, Decl(extendNumberInterface.ts, 2, 17)) +>x : T, Symbol(x, Decl(extendNumberInterface.ts, 2, 20)) +>T : T, Symbol(T, Decl(extendNumberInterface.ts, 2, 17)) +>T : T, Symbol(T, Decl(extendNumberInterface.ts, 2, 17)) } var x = 1; ->x : number +>x : number, Symbol(x, Decl(extendNumberInterface.ts, 5, 3)) +>1 : number var a: string = x.doStuff(); ->a : string +>a : string, Symbol(a, Decl(extendNumberInterface.ts, 6, 3)) >x.doStuff() : string ->x.doStuff : () => string ->x : number ->doStuff : () => string +>x.doStuff : () => string, Symbol(Number.doStuff, Decl(extendNumberInterface.ts, 0, 18)) +>x : number, Symbol(x, Decl(extendNumberInterface.ts, 5, 3)) +>doStuff : () => string, Symbol(Number.doStuff, Decl(extendNumberInterface.ts, 0, 18)) var b: string = x.doOtherStuff('hm'); ->b : string +>b : string, Symbol(b, Decl(extendNumberInterface.ts, 7, 3)) >x.doOtherStuff('hm') : string ->x.doOtherStuff : (x: T) => T ->x : number ->doOtherStuff : (x: T) => T +>x.doOtherStuff : (x: T) => T, Symbol(Number.doOtherStuff, Decl(extendNumberInterface.ts, 1, 22)) +>x : number, Symbol(x, Decl(extendNumberInterface.ts, 5, 3)) +>doOtherStuff : (x: T) => T, Symbol(Number.doOtherStuff, Decl(extendNumberInterface.ts, 1, 22)) +>'hm' : string var c: string = x['doStuff'](); ->c : string +>c : string, Symbol(c, Decl(extendNumberInterface.ts, 8, 3)) >x['doStuff']() : string >x['doStuff'] : () => string ->x : number +>x : number, Symbol(x, Decl(extendNumberInterface.ts, 5, 3)) +>'doStuff' : string, Symbol(Number.doStuff, Decl(extendNumberInterface.ts, 0, 18)) var d: string = x['doOtherStuff']('hm'); ->d : string +>d : string, Symbol(d, Decl(extendNumberInterface.ts, 9, 3)) >x['doOtherStuff']('hm') : string >x['doOtherStuff'] : (x: T) => T ->x : number +>x : number, Symbol(x, Decl(extendNumberInterface.ts, 5, 3)) +>'doOtherStuff' : string, Symbol(Number.doOtherStuff, Decl(extendNumberInterface.ts, 1, 22)) +>'hm' : string diff --git a/tests/baselines/reference/extendStringInterface.types b/tests/baselines/reference/extendStringInterface.types index 3cf9f72f5f2..013e290605d 100644 --- a/tests/baselines/reference/extendStringInterface.types +++ b/tests/baselines/reference/extendStringInterface.types @@ -1,44 +1,49 @@ === tests/cases/conformance/types/primitives/string/extendStringInterface.ts === interface String { ->String : String +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11), Decl(extendStringInterface.ts, 0, 0)) doStuff(): string; ->doStuff : () => string +>doStuff : () => string, Symbol(doStuff, Decl(extendStringInterface.ts, 0, 18)) doOtherStuff(x:T): T; ->doOtherStuff : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>doOtherStuff : (x: T) => T, Symbol(doOtherStuff, Decl(extendStringInterface.ts, 1, 22)) +>T : T, Symbol(T, Decl(extendStringInterface.ts, 2, 17)) +>x : T, Symbol(x, Decl(extendStringInterface.ts, 2, 20)) +>T : T, Symbol(T, Decl(extendStringInterface.ts, 2, 17)) +>T : T, Symbol(T, Decl(extendStringInterface.ts, 2, 17)) } var x = ''; ->x : string +>x : string, Symbol(x, Decl(extendStringInterface.ts, 5, 3)) +>'' : string var a: string = x.doStuff(); ->a : string +>a : string, Symbol(a, Decl(extendStringInterface.ts, 6, 3)) >x.doStuff() : string ->x.doStuff : () => string ->x : string ->doStuff : () => string +>x.doStuff : () => string, Symbol(String.doStuff, Decl(extendStringInterface.ts, 0, 18)) +>x : string, Symbol(x, Decl(extendStringInterface.ts, 5, 3)) +>doStuff : () => string, Symbol(String.doStuff, Decl(extendStringInterface.ts, 0, 18)) var b: string = x.doOtherStuff('hm'); ->b : string +>b : string, Symbol(b, Decl(extendStringInterface.ts, 7, 3)) >x.doOtherStuff('hm') : string ->x.doOtherStuff : (x: T) => T ->x : string ->doOtherStuff : (x: T) => T +>x.doOtherStuff : (x: T) => T, Symbol(String.doOtherStuff, Decl(extendStringInterface.ts, 1, 22)) +>x : string, Symbol(x, Decl(extendStringInterface.ts, 5, 3)) +>doOtherStuff : (x: T) => T, Symbol(String.doOtherStuff, Decl(extendStringInterface.ts, 1, 22)) +>'hm' : string var c: string = x['doStuff'](); ->c : string +>c : string, Symbol(c, Decl(extendStringInterface.ts, 8, 3)) >x['doStuff']() : string >x['doStuff'] : () => string ->x : string +>x : string, Symbol(x, Decl(extendStringInterface.ts, 5, 3)) +>'doStuff' : string, Symbol(String.doStuff, Decl(extendStringInterface.ts, 0, 18)) var d: string = x['doOtherStuff']('hm'); ->d : string +>d : string, Symbol(d, Decl(extendStringInterface.ts, 9, 3)) >x['doOtherStuff']('hm') : string >x['doOtherStuff'] : (x: T) => T ->x : string +>x : string, Symbol(x, Decl(extendStringInterface.ts, 5, 3)) +>'doOtherStuff' : string, Symbol(String.doOtherStuff, Decl(extendStringInterface.ts, 1, 22)) +>'hm' : string diff --git a/tests/baselines/reference/extendedInterfaceGenericType.types b/tests/baselines/reference/extendedInterfaceGenericType.types index 17fd949215a..ea502e365ec 100644 --- a/tests/baselines/reference/extendedInterfaceGenericType.types +++ b/tests/baselines/reference/extendedInterfaceGenericType.types @@ -1,40 +1,41 @@ === tests/cases/compiler/extendedInterfaceGenericType.ts === interface Alpha { ->Alpha : Alpha ->T : T +>Alpha : Alpha, Symbol(Alpha, Decl(extendedInterfaceGenericType.ts, 0, 0)) +>T : T, Symbol(T, Decl(extendedInterfaceGenericType.ts, 0, 16)) takesArgOfT(arg: T): Alpha; ->takesArgOfT : (arg: T) => Alpha ->arg : T ->T : T ->Alpha : Alpha ->T : T +>takesArgOfT : (arg: T) => Alpha, Symbol(takesArgOfT, Decl(extendedInterfaceGenericType.ts, 0, 20)) +>arg : T, Symbol(arg, Decl(extendedInterfaceGenericType.ts, 1, 16)) +>T : T, Symbol(T, Decl(extendedInterfaceGenericType.ts, 0, 16)) +>Alpha : Alpha, Symbol(Alpha, Decl(extendedInterfaceGenericType.ts, 0, 0)) +>T : T, Symbol(T, Decl(extendedInterfaceGenericType.ts, 0, 16)) makeBetaOfNumber(): Beta; ->makeBetaOfNumber : () => Beta ->Beta : Beta +>makeBetaOfNumber : () => Beta, Symbol(makeBetaOfNumber, Decl(extendedInterfaceGenericType.ts, 1, 34)) +>Beta : Beta, Symbol(Beta, Decl(extendedInterfaceGenericType.ts, 3, 1)) } interface Beta extends Alpha { ->Beta : Beta ->T : T ->Alpha : Alpha ->T : T +>Beta : Beta, Symbol(Beta, Decl(extendedInterfaceGenericType.ts, 3, 1)) +>T : T, Symbol(T, Decl(extendedInterfaceGenericType.ts, 4, 15)) +>Alpha : Alpha, Symbol(Alpha, Decl(extendedInterfaceGenericType.ts, 0, 0)) +>T : T, Symbol(T, Decl(extendedInterfaceGenericType.ts, 4, 15)) } var alpha: Alpha; ->alpha : Alpha ->Alpha : Alpha +>alpha : Alpha, Symbol(alpha, Decl(extendedInterfaceGenericType.ts, 7, 3)) +>Alpha : Alpha, Symbol(Alpha, Decl(extendedInterfaceGenericType.ts, 0, 0)) var betaOfNumber = alpha.makeBetaOfNumber(); ->betaOfNumber : Beta +>betaOfNumber : Beta, Symbol(betaOfNumber, Decl(extendedInterfaceGenericType.ts, 8, 3)) >alpha.makeBetaOfNumber() : Beta ->alpha.makeBetaOfNumber : () => Beta ->alpha : Alpha ->makeBetaOfNumber : () => Beta +>alpha.makeBetaOfNumber : () => Beta, Symbol(Alpha.makeBetaOfNumber, Decl(extendedInterfaceGenericType.ts, 1, 34)) +>alpha : Alpha, Symbol(alpha, Decl(extendedInterfaceGenericType.ts, 7, 3)) +>makeBetaOfNumber : () => Beta, Symbol(Alpha.makeBetaOfNumber, Decl(extendedInterfaceGenericType.ts, 1, 34)) betaOfNumber.takesArgOfT(5); >betaOfNumber.takesArgOfT(5) : Alpha ->betaOfNumber.takesArgOfT : (arg: number) => Alpha ->betaOfNumber : Beta ->takesArgOfT : (arg: number) => Alpha +>betaOfNumber.takesArgOfT : (arg: number) => Alpha, Symbol(Alpha.takesArgOfT, Decl(extendedInterfaceGenericType.ts, 0, 20)) +>betaOfNumber : Beta, Symbol(betaOfNumber, Decl(extendedInterfaceGenericType.ts, 8, 3)) +>takesArgOfT : (arg: number) => Alpha, Symbol(Alpha.takesArgOfT, Decl(extendedInterfaceGenericType.ts, 0, 20)) +>5 : number diff --git a/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.types b/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.types index 769f6f5a602..9f8ee1acb2a 100644 --- a/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.types +++ b/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.types @@ -1,79 +1,82 @@ === tests/cases/compiler/extendingClassFromAliasAndUsageInIndexer_main.ts === import Backbone = require("extendingClassFromAliasAndUsageInIndexer_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 0, 0)) import moduleA = require("extendingClassFromAliasAndUsageInIndexer_moduleA"); ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 0, 79)) import moduleB = require("extendingClassFromAliasAndUsageInIndexer_moduleB"); ->moduleB : typeof moduleB +>moduleB : typeof moduleB, Symbol(moduleB, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 1, 77)) interface IHasVisualizationModel { ->IHasVisualizationModel : IHasVisualizationModel +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 2, 77)) VisualizationModel: typeof Backbone.Model; ->VisualizationModel : typeof Backbone.Model ->Backbone : typeof Backbone ->Model : typeof Backbone.Model +>VisualizationModel : typeof Backbone.Model, Symbol(VisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 3, 34)) +>Backbone.Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 0, 0)) +>Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0)) } var moduleATyped: IHasVisualizationModel = moduleA; ->moduleATyped : IHasVisualizationModel ->IHasVisualizationModel : IHasVisualizationModel ->moduleA : typeof moduleA +>moduleATyped : IHasVisualizationModel, Symbol(moduleATyped, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 6, 3)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 2, 77)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 0, 79)) var moduleMap: { [key: string]: IHasVisualizationModel } = { ->moduleMap : { [key: string]: IHasVisualizationModel; } ->key : string ->IHasVisualizationModel : IHasVisualizationModel +>moduleMap : { [key: string]: IHasVisualizationModel; }, Symbol(moduleMap, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 7, 3)) +>key : string, Symbol(key, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 7, 18)) +>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 2, 77)) >{ "moduleA": moduleA, "moduleB": moduleB} : { [x: string]: typeof moduleA; "moduleA": typeof moduleA; "moduleB": typeof moduleB; } "moduleA": moduleA, ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 0, 79)) "moduleB": moduleB ->moduleB : typeof moduleB +>moduleB : typeof moduleB, Symbol(moduleB, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 1, 77)) }; var moduleName: string; ->moduleName : string +>moduleName : string, Symbol(moduleName, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 11, 3)) var visModel = new moduleMap[moduleName].VisualizationModel(); ->visModel : Backbone.Model +>visModel : Backbone.Model, Symbol(visModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 12, 3)) >new moduleMap[moduleName].VisualizationModel() : Backbone.Model ->moduleMap[moduleName].VisualizationModel : typeof Backbone.Model +>moduleMap[moduleName].VisualizationModel : typeof Backbone.Model, Symbol(IHasVisualizationModel.VisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 3, 34)) >moduleMap[moduleName] : IHasVisualizationModel ->moduleMap : { [key: string]: IHasVisualizationModel; } ->moduleName : string ->VisualizationModel : typeof Backbone.Model +>moduleMap : { [key: string]: IHasVisualizationModel; }, Symbol(moduleMap, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 7, 3)) +>moduleName : string, Symbol(moduleName, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 11, 3)) +>VisualizationModel : typeof Backbone.Model, Symbol(IHasVisualizationModel.VisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 3, 34)) === tests/cases/compiler/extendingClassFromAliasAndUsageInIndexer_backbone.ts === export class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0)) public someData: string; ->someData : string +>someData : string, Symbol(someData, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 20)) } === tests/cases/compiler/extendingClassFromAliasAndUsageInIndexer_moduleA.ts === import Backbone = require("extendingClassFromAliasAndUsageInIndexer_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(extendingClassFromAliasAndUsageInIndexer_moduleA.ts, 0, 0)) export class VisualizationModel extends Backbone.Model { ->VisualizationModel : VisualizationModel ->Backbone : typeof Backbone ->Model : Backbone.Model +>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_moduleA.ts, 0, 79)) +>Backbone.Model : any, Symbol(Backbone.Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(extendingClassFromAliasAndUsageInIndexer_moduleA.ts, 0, 0)) +>Model : Backbone.Model, Symbol(Backbone.Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0)) // interesting stuff here } === tests/cases/compiler/extendingClassFromAliasAndUsageInIndexer_moduleB.ts === import Backbone = require("extendingClassFromAliasAndUsageInIndexer_backbone"); ->Backbone : typeof Backbone +>Backbone : typeof Backbone, Symbol(Backbone, Decl(extendingClassFromAliasAndUsageInIndexer_moduleB.ts, 0, 0)) export class VisualizationModel extends Backbone.Model { ->VisualizationModel : VisualizationModel ->Backbone : typeof Backbone ->Model : Backbone.Model +>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_moduleB.ts, 0, 79)) +>Backbone.Model : any, Symbol(Backbone.Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0)) +>Backbone : typeof Backbone, Symbol(Backbone, Decl(extendingClassFromAliasAndUsageInIndexer_moduleB.ts, 0, 0)) +>Model : Backbone.Model, Symbol(Backbone.Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0)) // different interesting stuff here } diff --git a/tests/baselines/reference/externFunc.types b/tests/baselines/reference/externFunc.types index 5aac52ac125..f0ab96b7401 100644 --- a/tests/baselines/reference/externFunc.types +++ b/tests/baselines/reference/externFunc.types @@ -1,9 +1,10 @@ === tests/cases/compiler/externFunc.ts === declare function parseInt(s:string):number; ->parseInt : { (s: string, radix?: number): number; (s: string): number; } ->s : string +>parseInt : { (s: string, radix?: number): number; (s: string): number; }, Symbol(parseInt, Decl(lib.d.ts, 28, 38), Decl(externFunc.ts, 0, 0)) +>s : string, Symbol(s, Decl(externFunc.ts, 0, 26)) parseInt("2"); >parseInt("2") : number ->parseInt : { (s: string, radix?: number): number; (s: string): number; } +>parseInt : { (s: string, radix?: number): number; (s: string): number; }, Symbol(parseInt, Decl(lib.d.ts, 28, 38), Decl(externFunc.ts, 0, 0)) +>"2" : string diff --git a/tests/baselines/reference/externModuleClobber.types b/tests/baselines/reference/externModuleClobber.types index d1a7ba32651..61367e8c5e4 100644 --- a/tests/baselines/reference/externModuleClobber.types +++ b/tests/baselines/reference/externModuleClobber.types @@ -1,39 +1,39 @@ === tests/cases/compiler/externModuleClobber.ts === declare module EM { ->EM : typeof EM +>EM : typeof EM, Symbol(EM, Decl(externModuleClobber.ts, 0, 0)) export class Position { } ->Position : Position +>Position : Position, Symbol(Position, Decl(externModuleClobber.ts, 0, 19)) export class EC { ->EC : EC +>EC : EC, Symbol(EC, Decl(externModuleClobber.ts, 1, 26)) public getPosition() : EM.Position; ->getPosition : () => Position ->EM : unknown ->Position : Position +>getPosition : () => Position, Symbol(getPosition, Decl(externModuleClobber.ts, 3, 18)) +>EM : any, Symbol(EM, Decl(externModuleClobber.ts, 0, 0)) +>Position : Position, Symbol(Position, Decl(externModuleClobber.ts, 0, 19)) } } var x:EM.Position; ->x : EM.Position ->EM : unknown ->Position : EM.Position +>x : EM.Position, Symbol(x, Decl(externModuleClobber.ts, 8, 3)) +>EM : any, Symbol(EM, Decl(externModuleClobber.ts, 0, 0)) +>Position : EM.Position, Symbol(EM.Position, Decl(externModuleClobber.ts, 0, 19)) var ec:EM.EC = new EM.EC(); ->ec : EM.EC ->EM : unknown ->EC : EM.EC +>ec : EM.EC, Symbol(ec, Decl(externModuleClobber.ts, 9, 3)) +>EM : any, Symbol(EM, Decl(externModuleClobber.ts, 0, 0)) +>EC : EM.EC, Symbol(EM.EC, Decl(externModuleClobber.ts, 1, 26)) >new EM.EC() : EM.EC ->EM.EC : typeof EM.EC ->EM : typeof EM ->EC : typeof EM.EC +>EM.EC : typeof EM.EC, Symbol(EM.EC, Decl(externModuleClobber.ts, 1, 26)) +>EM : typeof EM, Symbol(EM, Decl(externModuleClobber.ts, 0, 0)) +>EC : typeof EM.EC, Symbol(EM.EC, Decl(externModuleClobber.ts, 1, 26)) x = ec.getPosition(); >x = ec.getPosition() : EM.Position ->x : EM.Position +>x : EM.Position, Symbol(x, Decl(externModuleClobber.ts, 8, 3)) >ec.getPosition() : EM.Position ->ec.getPosition : () => EM.Position ->ec : EM.EC ->getPosition : () => EM.Position +>ec.getPosition : () => EM.Position, Symbol(EM.EC.getPosition, Decl(externModuleClobber.ts, 3, 18)) +>ec : EM.EC, Symbol(ec, Decl(externModuleClobber.ts, 9, 3)) +>getPosition : () => EM.Position, Symbol(EM.EC.getPosition, Decl(externModuleClobber.ts, 3, 18)) diff --git a/tests/baselines/reference/externalModuleAssignToVar.types b/tests/baselines/reference/externalModuleAssignToVar.types index 8bcc6cdf3e6..b54b8087733 100644 --- a/tests/baselines/reference/externalModuleAssignToVar.types +++ b/tests/baselines/reference/externalModuleAssignToVar.types @@ -1,64 +1,64 @@ === tests/cases/compiler/externalModuleAssignToVar_core.ts === /// import ext = require('externalModuleAssignToVar_core_require'); ->ext : typeof ext +>ext : typeof ext, Symbol(ext, Decl(externalModuleAssignToVar_core.ts, 0, 0)) var y1: { C: new() => ext.C; } = ext; ->y1 : { C: new () => ext.C; } ->C : new () => ext.C ->ext : unknown ->C : ext.C ->ext : typeof ext +>y1 : { C: new () => ext.C; }, Symbol(y1, Decl(externalModuleAssignToVar_core.ts, 2, 3)) +>C : new () => ext.C, Symbol(C, Decl(externalModuleAssignToVar_core.ts, 2, 9)) +>ext : any, Symbol(ext, Decl(externalModuleAssignToVar_core.ts, 0, 0)) +>C : ext.C, Symbol(ext.C, Decl(externalModuleAssignToVar_core_require.ts, 0, 0)) +>ext : typeof ext, Symbol(ext, Decl(externalModuleAssignToVar_core.ts, 0, 0)) y1 = ext; // ok >y1 = ext : typeof ext ->y1 : { C: new () => ext.C; } ->ext : typeof ext +>y1 : { C: new () => ext.C; }, Symbol(y1, Decl(externalModuleAssignToVar_core.ts, 2, 3)) +>ext : typeof ext, Symbol(ext, Decl(externalModuleAssignToVar_core.ts, 0, 0)) import ext2 = require('externalModuleAssignToVar_core_require2'); ->ext2 : typeof ext2 +>ext2 : typeof ext2, Symbol(ext2, Decl(externalModuleAssignToVar_core.ts, 3, 9)) var y2: new() => ext2 = ext2; ->y2 : new () => ext2 ->ext2 : ext2 ->ext2 : typeof ext2 +>y2 : new () => ext2, Symbol(y2, Decl(externalModuleAssignToVar_core.ts, 6, 3)) +>ext2 : ext2, Symbol(ext2, Decl(externalModuleAssignToVar_core.ts, 3, 9)) +>ext2 : typeof ext2, Symbol(ext2, Decl(externalModuleAssignToVar_core.ts, 3, 9)) y2 = ext2; // ok >y2 = ext2 : typeof ext2 ->y2 : new () => ext2 ->ext2 : typeof ext2 +>y2 : new () => ext2, Symbol(y2, Decl(externalModuleAssignToVar_core.ts, 6, 3)) +>ext2 : typeof ext2, Symbol(ext2, Decl(externalModuleAssignToVar_core.ts, 3, 9)) import ext3 = require('externalModuleAssignToVar_ext'); ->ext3 : typeof ext3 +>ext3 : typeof ext3, Symbol(ext3, Decl(externalModuleAssignToVar_core.ts, 7, 10)) var y3: new () => ext3 = ext3; ->y3 : new () => ext3 ->ext3 : ext3 ->ext3 : typeof ext3 +>y3 : new () => ext3, Symbol(y3, Decl(externalModuleAssignToVar_core.ts, 10, 3)) +>ext3 : ext3, Symbol(ext3, Decl(externalModuleAssignToVar_core.ts, 7, 10)) +>ext3 : typeof ext3, Symbol(ext3, Decl(externalModuleAssignToVar_core.ts, 7, 10)) y3 = ext3; // ok >y3 = ext3 : typeof ext3 ->y3 : new () => ext3 ->ext3 : typeof ext3 +>y3 : new () => ext3, Symbol(y3, Decl(externalModuleAssignToVar_core.ts, 10, 3)) +>ext3 : typeof ext3, Symbol(ext3, Decl(externalModuleAssignToVar_core.ts, 7, 10)) === tests/cases/compiler/externalModuleAssignToVar_ext.ts === class D { foo: string; } ->D : D ->foo : string +>D : D, Symbol(D, Decl(externalModuleAssignToVar_ext.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(externalModuleAssignToVar_ext.ts, 0, 9)) export = D; ->D : D +>D : D, Symbol(D, Decl(externalModuleAssignToVar_ext.ts, 0, 0)) === tests/cases/compiler/externalModuleAssignToVar_core_require.ts === export class C { bar: string; } ->C : C ->bar : string +>C : C, Symbol(C, Decl(externalModuleAssignToVar_core_require.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(externalModuleAssignToVar_core_require.ts, 0, 16)) === tests/cases/compiler/externalModuleAssignToVar_core_require2.ts === class C { baz: string; } ->C : C ->baz : string +>C : C, Symbol(C, Decl(externalModuleAssignToVar_core_require2.ts, 0, 0)) +>baz : string, Symbol(baz, Decl(externalModuleAssignToVar_core_require2.ts, 0, 9)) export = C; ->C : C +>C : C, Symbol(C, Decl(externalModuleAssignToVar_core_require2.ts, 0, 0)) diff --git a/tests/baselines/reference/externalModuleQualification.types b/tests/baselines/reference/externalModuleQualification.types index ba8fc516fb8..9f66c1d1c88 100644 --- a/tests/baselines/reference/externalModuleQualification.types +++ b/tests/baselines/reference/externalModuleQualification.types @@ -1,29 +1,30 @@ === tests/cases/compiler/externalModuleQualification.ts === export var ID = "test"; ->ID : string +>ID : string, Symbol(ID, Decl(externalModuleQualification.ts, 0, 10)) +>"test" : string export class DiffEditor { ->DiffEditor : DiffEditor ->A : A ->B : B ->C : C +>DiffEditor : DiffEditor, Symbol(DiffEditor, Decl(externalModuleQualification.ts, 0, 23)) +>A : A, Symbol(A, Decl(externalModuleQualification.ts, 1, 24)) +>B : B, Symbol(B, Decl(externalModuleQualification.ts, 1, 26)) +>C : C, Symbol(C, Decl(externalModuleQualification.ts, 1, 29)) private previousDiffAction: NavigateAction; ->previousDiffAction : NavigateAction ->NavigateAction : NavigateAction +>previousDiffAction : NavigateAction, Symbol(previousDiffAction, Decl(externalModuleQualification.ts, 1, 34)) +>NavigateAction : NavigateAction, Symbol(NavigateAction, Decl(externalModuleQualification.ts, 5, 1)) constructor(id: string = ID) { ->id : string ->ID : string +>id : string, Symbol(id, Decl(externalModuleQualification.ts, 3, 16)) +>ID : string, Symbol(ID, Decl(externalModuleQualification.ts, 0, 10)) } } class NavigateAction { ->NavigateAction : NavigateAction +>NavigateAction : NavigateAction, Symbol(NavigateAction, Decl(externalModuleQualification.ts, 5, 1)) f(editor: DiffEditor) { ->f : (editor: DiffEditor) => void ->editor : DiffEditor ->DiffEditor : DiffEditor +>f : (editor: DiffEditor) => void, Symbol(f, Decl(externalModuleQualification.ts, 6, 22)) +>editor : DiffEditor, Symbol(editor, Decl(externalModuleQualification.ts, 7, 6)) +>DiffEditor : DiffEditor, Symbol(DiffEditor, Decl(externalModuleQualification.ts, 0, 23)) } } diff --git a/tests/baselines/reference/externalModuleReferenceDoubleUnderscore1.types b/tests/baselines/reference/externalModuleReferenceDoubleUnderscore1.types index e255e64d467..7bcbab3e5aa 100644 --- a/tests/baselines/reference/externalModuleReferenceDoubleUnderscore1.types +++ b/tests/baselines/reference/externalModuleReferenceDoubleUnderscore1.types @@ -1,37 +1,44 @@ === tests/cases/compiler/externalModuleReferenceDoubleUnderscore1.ts === declare module 'timezonecomplete' { import basics = require("__timezonecomplete/basics"); ->basics : typeof basics +>basics : typeof basics, Symbol(basics, Decl(externalModuleReferenceDoubleUnderscore1.ts, 0, 35)) export import TimeUnit = basics.TimeUnit; ->TimeUnit : typeof basics.TimeUnit ->basics : typeof basics ->TimeUnit : basics.TimeUnit +>TimeUnit : typeof basics.TimeUnit, Symbol(TimeUnit, Decl(externalModuleReferenceDoubleUnderscore1.ts, 1, 57)) +>basics : typeof basics, Symbol(basics, Decl(externalModuleReferenceDoubleUnderscore1.ts, 3, 1)) +>TimeUnit : basics.TimeUnit, Symbol(basics.TimeUnit, Decl(externalModuleReferenceDoubleUnderscore1.ts, 5, 44)) } declare module '__timezonecomplete/basics' { export enum TimeUnit { ->TimeUnit : TimeUnit +>TimeUnit : TimeUnit, Symbol(TimeUnit, Decl(externalModuleReferenceDoubleUnderscore1.ts, 5, 44)) Second = 0, ->Second : TimeUnit +>Second : TimeUnit, Symbol(TimeUnit.Second, Decl(externalModuleReferenceDoubleUnderscore1.ts, 6, 26)) +>0 : number Minute = 1, ->Minute : TimeUnit +>Minute : TimeUnit, Symbol(TimeUnit.Minute, Decl(externalModuleReferenceDoubleUnderscore1.ts, 7, 19)) +>1 : number Hour = 2, ->Hour : TimeUnit +>Hour : TimeUnit, Symbol(TimeUnit.Hour, Decl(externalModuleReferenceDoubleUnderscore1.ts, 8, 19)) +>2 : number Day = 3, ->Day : TimeUnit +>Day : TimeUnit, Symbol(TimeUnit.Day, Decl(externalModuleReferenceDoubleUnderscore1.ts, 9, 17)) +>3 : number Week = 4, ->Week : TimeUnit +>Week : TimeUnit, Symbol(TimeUnit.Week, Decl(externalModuleReferenceDoubleUnderscore1.ts, 10, 16)) +>4 : number Month = 5, ->Month : TimeUnit +>Month : TimeUnit, Symbol(TimeUnit.Month, Decl(externalModuleReferenceDoubleUnderscore1.ts, 11, 17)) +>5 : number Year = 6, ->Year : TimeUnit +>Year : TimeUnit, Symbol(TimeUnit.Year, Decl(externalModuleReferenceDoubleUnderscore1.ts, 12, 18)) +>6 : number } } diff --git a/tests/baselines/reference/externalModuleReferenceOfImportDeclarationWithExportModifier.types b/tests/baselines/reference/externalModuleReferenceOfImportDeclarationWithExportModifier.types index bb49781d477..7c2dd700a56 100644 --- a/tests/baselines/reference/externalModuleReferenceOfImportDeclarationWithExportModifier.types +++ b/tests/baselines/reference/externalModuleReferenceOfImportDeclarationWithExportModifier.types @@ -1,14 +1,14 @@ === tests/cases/compiler/externalModuleReferenceOfImportDeclarationWithExportModifier_1.ts === export import file1 = require('externalModuleReferenceOfImportDeclarationWithExportModifier_0'); ->file1 : typeof file1 +>file1 : typeof file1, Symbol(file1, Decl(externalModuleReferenceOfImportDeclarationWithExportModifier_1.ts, 0, 0)) file1.foo(); >file1.foo() : void ->file1.foo : () => void ->file1 : typeof file1 ->foo : () => void +>file1.foo : () => void, Symbol(file1.foo, Decl(externalModuleReferenceOfImportDeclarationWithExportModifier_0.ts, 0, 0)) +>file1 : typeof file1, Symbol(file1, Decl(externalModuleReferenceOfImportDeclarationWithExportModifier_1.ts, 0, 0)) +>foo : () => void, Symbol(file1.foo, Decl(externalModuleReferenceOfImportDeclarationWithExportModifier_0.ts, 0, 0)) === tests/cases/compiler/externalModuleReferenceOfImportDeclarationWithExportModifier_0.ts === export function foo() { }; ->foo : () => void +>foo : () => void, Symbol(foo, Decl(externalModuleReferenceOfImportDeclarationWithExportModifier_0.ts, 0, 0)) diff --git a/tests/baselines/reference/externalModuleResolution.types b/tests/baselines/reference/externalModuleResolution.types index 929695b2203..3490ab023d9 100644 --- a/tests/baselines/reference/externalModuleResolution.types +++ b/tests/baselines/reference/externalModuleResolution.types @@ -1,19 +1,20 @@ === tests/cases/compiler/consumer.ts === import x = require('./foo'); ->x : typeof x +>x : typeof x, Symbol(x, Decl(consumer.ts, 0, 0)) x.Y // .ts should be picked ->x.Y : number ->x : typeof x ->Y : number +>x.Y : number, Symbol(x.Y, Decl(foo.ts, 1, 14)) +>x : typeof x, Symbol(x, Decl(consumer.ts, 0, 0)) +>Y : number, Symbol(x.Y, Decl(foo.ts, 1, 14)) === tests/cases/compiler/foo.ts === module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(foo.ts, 0, 0)) export var Y = 1; ->Y : number +>Y : number, Symbol(Y, Decl(foo.ts, 1, 14)) +>1 : number } export = M2 ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(foo.ts, 0, 0)) diff --git a/tests/baselines/reference/externalModuleResolution2.types b/tests/baselines/reference/externalModuleResolution2.types index 09b33fb2bee..f2a8979df4f 100644 --- a/tests/baselines/reference/externalModuleResolution2.types +++ b/tests/baselines/reference/externalModuleResolution2.types @@ -1,19 +1,20 @@ === tests/cases/compiler/consumer.ts === import x = require('./foo'); ->x : typeof x +>x : typeof x, Symbol(x, Decl(consumer.ts, 0, 0)) x.X // .ts should be picked ->x.X : number ->x : typeof x ->X : number +>x.X : number, Symbol(x.X, Decl(foo.ts, 1, 14)) +>x : typeof x, Symbol(x, Decl(consumer.ts, 0, 0)) +>X : number, Symbol(x.X, Decl(foo.ts, 1, 14)) === tests/cases/compiler/foo.ts === module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(foo.ts, 0, 0)) export var X = 1; ->X : number +>X : number, Symbol(X, Decl(foo.ts, 1, 14)) +>1 : number } export = M2 ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(foo.ts, 0, 0)) diff --git a/tests/baselines/reference/fatArrowSelf.types b/tests/baselines/reference/fatArrowSelf.types index 912e0cd78a7..b2fa05338e1 100644 --- a/tests/baselines/reference/fatArrowSelf.types +++ b/tests/baselines/reference/fatArrowSelf.types @@ -1,60 +1,61 @@ === tests/cases/compiler/fatArrowSelf.ts === module Events { ->Events : typeof Events +>Events : typeof Events, Symbol(Events, Decl(fatArrowSelf.ts, 0, 0)) export interface ListenerCallback { ->ListenerCallback : ListenerCallback +>ListenerCallback : ListenerCallback, Symbol(ListenerCallback, Decl(fatArrowSelf.ts, 0, 15)) (value:any):void; ->value : any +>value : any, Symbol(value, Decl(fatArrowSelf.ts, 2, 9)) } export class EventEmitter { ->EventEmitter : EventEmitter +>EventEmitter : EventEmitter, Symbol(EventEmitter, Decl(fatArrowSelf.ts, 3, 5)) public addListener(type:string, listener:ListenerCallback) { ->addListener : (type: string, listener: ListenerCallback) => void ->type : string ->listener : ListenerCallback ->ListenerCallback : ListenerCallback +>addListener : (type: string, listener: ListenerCallback) => void, Symbol(addListener, Decl(fatArrowSelf.ts, 4, 31)) +>type : string, Symbol(type, Decl(fatArrowSelf.ts, 5, 28)) +>listener : ListenerCallback, Symbol(listener, Decl(fatArrowSelf.ts, 5, 40)) +>ListenerCallback : ListenerCallback, Symbol(ListenerCallback, Decl(fatArrowSelf.ts, 0, 15)) } } } module Consumer { ->Consumer : typeof Consumer +>Consumer : typeof Consumer, Symbol(Consumer, Decl(fatArrowSelf.ts, 8, 1)) class EventEmitterConsummer { ->EventEmitterConsummer : EventEmitterConsummer +>EventEmitterConsummer : EventEmitterConsummer, Symbol(EventEmitterConsummer, Decl(fatArrowSelf.ts, 10, 17)) constructor (private emitter: Events.EventEmitter) { } ->emitter : Events.EventEmitter ->Events : unknown ->EventEmitter : Events.EventEmitter +>emitter : Events.EventEmitter, Symbol(emitter, Decl(fatArrowSelf.ts, 12, 21)) +>Events : any, Symbol(Events, Decl(fatArrowSelf.ts, 0, 0)) +>EventEmitter : Events.EventEmitter, Symbol(Events.EventEmitter, Decl(fatArrowSelf.ts, 3, 5)) private register() { ->register : () => void +>register : () => void, Symbol(register, Decl(fatArrowSelf.ts, 12, 62)) this.emitter.addListener('change', (e) => { >this.emitter.addListener('change', (e) => { this.changed(); }) : void ->this.emitter.addListener : (type: string, listener: Events.ListenerCallback) => void ->this.emitter : Events.EventEmitter ->this : EventEmitterConsummer ->emitter : Events.EventEmitter ->addListener : (type: string, listener: Events.ListenerCallback) => void +>this.emitter.addListener : (type: string, listener: Events.ListenerCallback) => void, Symbol(Events.EventEmitter.addListener, Decl(fatArrowSelf.ts, 4, 31)) +>this.emitter : Events.EventEmitter, Symbol(emitter, Decl(fatArrowSelf.ts, 12, 21)) +>this : EventEmitterConsummer, Symbol(EventEmitterConsummer, Decl(fatArrowSelf.ts, 10, 17)) +>emitter : Events.EventEmitter, Symbol(emitter, Decl(fatArrowSelf.ts, 12, 21)) +>addListener : (type: string, listener: Events.ListenerCallback) => void, Symbol(Events.EventEmitter.addListener, Decl(fatArrowSelf.ts, 4, 31)) +>'change' : string >(e) => { this.changed(); } : (e: any) => void ->e : any +>e : any, Symbol(e, Decl(fatArrowSelf.ts, 15, 48)) this.changed(); >this.changed() : void ->this.changed : () => void ->this : EventEmitterConsummer ->changed : () => void +>this.changed : () => void, Symbol(changed, Decl(fatArrowSelf.ts, 18, 9)) +>this : EventEmitterConsummer, Symbol(EventEmitterConsummer, Decl(fatArrowSelf.ts, 10, 17)) +>changed : () => void, Symbol(changed, Decl(fatArrowSelf.ts, 18, 9)) }); } private changed() { ->changed : () => void +>changed : () => void, Symbol(changed, Decl(fatArrowSelf.ts, 18, 9)) } } } diff --git a/tests/baselines/reference/fatArrowfunctionAsType.types b/tests/baselines/reference/fatArrowfunctionAsType.types index 31f8c128611..fa3460ce410 100644 --- a/tests/baselines/reference/fatArrowfunctionAsType.types +++ b/tests/baselines/reference/fatArrowfunctionAsType.types @@ -1,22 +1,23 @@ === tests/cases/compiler/fatArrowfunctionAsType.ts === declare var b: (x: T) => void ; ->b : (x: T) => void ->T : T ->x : T ->T : T +>b : (x: T) => void, Symbol(b, Decl(fatArrowfunctionAsType.ts, 0, 11)) +>T : T, Symbol(T, Decl(fatArrowfunctionAsType.ts, 0, 16)) +>x : T, Symbol(x, Decl(fatArrowfunctionAsType.ts, 0, 19)) +>T : T, Symbol(T, Decl(fatArrowfunctionAsType.ts, 0, 16)) var c: (x: T) => void = function (x: T) { return 42; } ->c : (x: T) => void ->T : T ->x : T ->T : T +>c : (x: T) => void, Symbol(c, Decl(fatArrowfunctionAsType.ts, 2, 3)) +>T : T, Symbol(T, Decl(fatArrowfunctionAsType.ts, 2, 8)) +>x : T, Symbol(x, Decl(fatArrowfunctionAsType.ts, 2, 11)) +>T : T, Symbol(T, Decl(fatArrowfunctionAsType.ts, 2, 8)) >function (x: T) { return 42; } : (x: T) => number ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(fatArrowfunctionAsType.ts, 2, 37)) +>x : T, Symbol(x, Decl(fatArrowfunctionAsType.ts, 2, 40)) +>T : T, Symbol(T, Decl(fatArrowfunctionAsType.ts, 2, 37)) +>42 : number b = c; >b = c : (x: T) => void ->b : (x: T) => void ->c : (x: T) => void +>b : (x: T) => void, Symbol(b, Decl(fatArrowfunctionAsType.ts, 0, 11)) +>c : (x: T) => void, Symbol(c, Decl(fatArrowfunctionAsType.ts, 2, 3)) diff --git a/tests/baselines/reference/fatarrowfunctions.types b/tests/baselines/reference/fatarrowfunctions.types index 1b819b8496a..00476f423ef 100644 --- a/tests/baselines/reference/fatarrowfunctions.types +++ b/tests/baselines/reference/fatarrowfunctions.types @@ -1,232 +1,238 @@ === tests/cases/compiler/fatarrowfunctions.ts === function foo(x:any) { ->foo : (x: any) => any ->x : any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 1, 13)) return x(); >x() : any ->x : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 1, 13)) } foo((x:number,y,z)=>{return x+y+z;}); >foo((x:number,y,z)=>{return x+y+z;}) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >(x:number,y,z)=>{return x+y+z;} : (x: number, y: any, z: any) => any ->x : number ->y : any ->z : any +>x : number, Symbol(x, Decl(fatarrowfunctions.ts, 6, 5)) +>y : any, Symbol(y, Decl(fatarrowfunctions.ts, 6, 14)) +>z : any, Symbol(z, Decl(fatarrowfunctions.ts, 6, 16)) >x+y+z : any >x+y : any ->x : number ->y : any ->z : any +>x : number, Symbol(x, Decl(fatarrowfunctions.ts, 6, 5)) +>y : any, Symbol(y, Decl(fatarrowfunctions.ts, 6, 14)) +>z : any, Symbol(z, Decl(fatarrowfunctions.ts, 6, 16)) foo((x,y,z)=>{return x+y+z;}); >foo((x,y,z)=>{return x+y+z;}) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >(x,y,z)=>{return x+y+z;} : (x: any, y: any, z: any) => any ->x : any ->y : any ->z : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 7, 5)) +>y : any, Symbol(y, Decl(fatarrowfunctions.ts, 7, 7)) +>z : any, Symbol(z, Decl(fatarrowfunctions.ts, 7, 9)) >x+y+z : any >x+y : any ->x : any ->y : any ->z : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 7, 5)) +>y : any, Symbol(y, Decl(fatarrowfunctions.ts, 7, 7)) +>z : any, Symbol(z, Decl(fatarrowfunctions.ts, 7, 9)) foo((x,y:number,z)=>{return x+y+z;}); >foo((x,y:number,z)=>{return x+y+z;}) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >(x,y:number,z)=>{return x+y+z;} : (x: any, y: number, z: any) => any ->x : any ->y : number ->z : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 8, 5)) +>y : number, Symbol(y, Decl(fatarrowfunctions.ts, 8, 7)) +>z : any, Symbol(z, Decl(fatarrowfunctions.ts, 8, 16)) >x+y+z : any >x+y : any ->x : any ->y : number ->z : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 8, 5)) +>y : number, Symbol(y, Decl(fatarrowfunctions.ts, 8, 7)) +>z : any, Symbol(z, Decl(fatarrowfunctions.ts, 8, 16)) foo((x,y:number,z:number)=>{return x+y+z;}); >foo((x,y:number,z:number)=>{return x+y+z;}) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >(x,y:number,z:number)=>{return x+y+z;} : (x: any, y: number, z: number) => any ->x : any ->y : number ->z : number +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 9, 5)) +>y : number, Symbol(y, Decl(fatarrowfunctions.ts, 9, 7)) +>z : number, Symbol(z, Decl(fatarrowfunctions.ts, 9, 16)) >x+y+z : any >x+y : any ->x : any ->y : number ->z : number +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 9, 5)) +>y : number, Symbol(y, Decl(fatarrowfunctions.ts, 9, 7)) +>z : number, Symbol(z, Decl(fatarrowfunctions.ts, 9, 16)) foo((x,y,z:number)=>{return x+y+z;}); >foo((x,y,z:number)=>{return x+y+z;}) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >(x,y,z:number)=>{return x+y+z;} : (x: any, y: any, z: number) => any ->x : any ->y : any ->z : number +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 10, 5)) +>y : any, Symbol(y, Decl(fatarrowfunctions.ts, 10, 7)) +>z : number, Symbol(z, Decl(fatarrowfunctions.ts, 10, 9)) >x+y+z : any >x+y : any ->x : any ->y : any ->z : number +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 10, 5)) +>y : any, Symbol(y, Decl(fatarrowfunctions.ts, 10, 7)) +>z : number, Symbol(z, Decl(fatarrowfunctions.ts, 10, 9)) foo(()=>{return 0;}); >foo(()=>{return 0;}) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >()=>{return 0;} : () => number +>0 : number foo((x:number,y,z)=>x+y+z); >foo((x:number,y,z)=>x+y+z) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >(x:number,y,z)=>x+y+z : (x: number, y: any, z: any) => any ->x : number ->y : any ->z : any +>x : number, Symbol(x, Decl(fatarrowfunctions.ts, 13, 5)) +>y : any, Symbol(y, Decl(fatarrowfunctions.ts, 13, 14)) +>z : any, Symbol(z, Decl(fatarrowfunctions.ts, 13, 16)) >x+y+z : any >x+y : any ->x : number ->y : any ->z : any +>x : number, Symbol(x, Decl(fatarrowfunctions.ts, 13, 5)) +>y : any, Symbol(y, Decl(fatarrowfunctions.ts, 13, 14)) +>z : any, Symbol(z, Decl(fatarrowfunctions.ts, 13, 16)) foo((x,y,z)=>x+y+z); >foo((x,y,z)=>x+y+z) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >(x,y,z)=>x+y+z : (x: any, y: any, z: any) => any ->x : any ->y : any ->z : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 14, 5)) +>y : any, Symbol(y, Decl(fatarrowfunctions.ts, 14, 7)) +>z : any, Symbol(z, Decl(fatarrowfunctions.ts, 14, 9)) >x+y+z : any >x+y : any ->x : any ->y : any ->z : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 14, 5)) +>y : any, Symbol(y, Decl(fatarrowfunctions.ts, 14, 7)) +>z : any, Symbol(z, Decl(fatarrowfunctions.ts, 14, 9)) foo((x,y:number,z)=>{return x+y+z;}); >foo((x,y:number,z)=>{return x+y+z;}) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >(x,y:number,z)=>{return x+y+z;} : (x: any, y: number, z: any) => any ->x : any ->y : number ->z : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 15, 5)) +>y : number, Symbol(y, Decl(fatarrowfunctions.ts, 15, 7)) +>z : any, Symbol(z, Decl(fatarrowfunctions.ts, 15, 16)) >x+y+z : any >x+y : any ->x : any ->y : number ->z : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 15, 5)) +>y : number, Symbol(y, Decl(fatarrowfunctions.ts, 15, 7)) +>z : any, Symbol(z, Decl(fatarrowfunctions.ts, 15, 16)) foo((x,y:number,z:number)=>{return x+y+z;}); >foo((x,y:number,z:number)=>{return x+y+z;}) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >(x,y:number,z:number)=>{return x+y+z;} : (x: any, y: number, z: number) => any ->x : any ->y : number ->z : number +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 16, 5)) +>y : number, Symbol(y, Decl(fatarrowfunctions.ts, 16, 7)) +>z : number, Symbol(z, Decl(fatarrowfunctions.ts, 16, 16)) >x+y+z : any >x+y : any ->x : any ->y : number ->z : number +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 16, 5)) +>y : number, Symbol(y, Decl(fatarrowfunctions.ts, 16, 7)) +>z : number, Symbol(z, Decl(fatarrowfunctions.ts, 16, 16)) foo((x,y,z:number)=>{return x+y+z;}); >foo((x,y,z:number)=>{return x+y+z;}) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >(x,y,z:number)=>{return x+y+z;} : (x: any, y: any, z: number) => any ->x : any ->y : any ->z : number +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 17, 5)) +>y : any, Symbol(y, Decl(fatarrowfunctions.ts, 17, 7)) +>z : number, Symbol(z, Decl(fatarrowfunctions.ts, 17, 9)) >x+y+z : any >x+y : any ->x : any ->y : any ->z : number +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 17, 5)) +>y : any, Symbol(y, Decl(fatarrowfunctions.ts, 17, 7)) +>z : number, Symbol(z, Decl(fatarrowfunctions.ts, 17, 9)) foo(()=>{return 0;}); >foo(()=>{return 0;}) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >()=>{return 0;} : () => number +>0 : number foo(((x) => x)); >foo(((x) => x)) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >((x) => x) : (x: any) => any >(x) => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 21, 6)) +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 21, 6)) foo(x => x*x); >foo(x => x*x) : any ->foo : (x: any) => any +>foo : (x: any) => any, Symbol(foo, Decl(fatarrowfunctions.ts, 0, 0)) >x => x*x : (x: any) => number ->x : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 23, 4)) >x*x : number ->x : any ->x : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 23, 4)) +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 23, 4)) var y = x => x*x; ->y : (x: any) => number +>y : (x: any) => number, Symbol(y, Decl(fatarrowfunctions.ts, 25, 3)) >x => x*x : (x: any) => number ->x : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 25, 7)) >x*x : number ->x : any ->x : any +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 25, 7)) +>x : any, Symbol(x, Decl(fatarrowfunctions.ts, 25, 7)) var z = (x:number) => x*x; ->z : (x: number) => number +>z : (x: number) => number, Symbol(z, Decl(fatarrowfunctions.ts, 26, 3)) >(x:number) => x*x : (x: number) => number ->x : number +>x : number, Symbol(x, Decl(fatarrowfunctions.ts, 26, 9)) >x*x : number ->x : number ->x : number +>x : number, Symbol(x, Decl(fatarrowfunctions.ts, 26, 9)) +>x : number, Symbol(x, Decl(fatarrowfunctions.ts, 26, 9)) var w = () => 3; ->w : () => number +>w : () => number, Symbol(w, Decl(fatarrowfunctions.ts, 28, 3)) >() => 3 : () => number +>3 : number function ternaryTest(isWhile:boolean) { ->ternaryTest : (isWhile: boolean) => void ->isWhile : boolean +>ternaryTest : (isWhile: boolean) => void, Symbol(ternaryTest, Decl(fatarrowfunctions.ts, 28, 16)) +>isWhile : boolean, Symbol(isWhile, Decl(fatarrowfunctions.ts, 30, 21)) var f = isWhile ? function (n) { return n > 0; } : function (n) { return n === 0; }; ->f : (n: any) => boolean +>f : (n: any) => boolean, Symbol(f, Decl(fatarrowfunctions.ts, 32, 19)) >isWhile ? function (n) { return n > 0; } : function (n) { return n === 0; } : (n: any) => boolean ->isWhile : boolean +>isWhile : boolean, Symbol(isWhile, Decl(fatarrowfunctions.ts, 30, 21)) >function (n) { return n > 0; } : (n: any) => boolean ->n : any +>n : any, Symbol(n, Decl(fatarrowfunctions.ts, 32, 44)) >n > 0 : boolean ->n : any +>n : any, Symbol(n, Decl(fatarrowfunctions.ts, 32, 44)) +>0 : number >function (n) { return n === 0; } : (n: any) => boolean ->n : any +>n : any, Symbol(n, Decl(fatarrowfunctions.ts, 32, 77)) >n === 0 : boolean ->n : any +>n : any, Symbol(n, Decl(fatarrowfunctions.ts, 32, 77)) +>0 : number } declare function setTimeout(expression: any, msec?: number, language?: any): number; ->setTimeout : (expression: any, msec?: number, language?: any) => number ->expression : any ->msec : number ->language : any +>setTimeout : (expression: any, msec?: number, language?: any) => number, Symbol(setTimeout, Decl(fatarrowfunctions.ts, 34, 1)) +>expression : any, Symbol(expression, Decl(fatarrowfunctions.ts, 36, 28)) +>msec : number, Symbol(msec, Decl(fatarrowfunctions.ts, 36, 44)) +>language : any, Symbol(language, Decl(fatarrowfunctions.ts, 36, 59)) var messenger = { ->messenger : { message: string; start: () => void; } +>messenger : { message: string; start: () => void; }, Symbol(messenger, Decl(fatarrowfunctions.ts, 38, 3)) >{ message: "Hello World", start: function() { setTimeout(() => { this.message.toString(); }, 3000); }} : { message: string; start: () => void; } message: "Hello World", ->message : string +>message : string, Symbol(message, Decl(fatarrowfunctions.ts, 38, 17)) +>"Hello World" : string start: function() { ->start : () => void +>start : () => void, Symbol(start, Decl(fatarrowfunctions.ts, 39, 27)) >function() { setTimeout(() => { this.message.toString(); }, 3000); } : () => void setTimeout(() => { this.message.toString(); }, 3000); >setTimeout(() => { this.message.toString(); }, 3000) : number ->setTimeout : (expression: any, msec?: number, language?: any) => number +>setTimeout : (expression: any, msec?: number, language?: any) => number, Symbol(setTimeout, Decl(fatarrowfunctions.ts, 34, 1)) >() => { this.message.toString(); } : () => void >this.message.toString() : any >this.message.toString : any @@ -234,6 +240,7 @@ var messenger = { >this : any >message : any >toString : any +>3000 : number } }; diff --git a/tests/baselines/reference/fatarrowfunctionsInFunctionParameterDefaults.types b/tests/baselines/reference/fatarrowfunctionsInFunctionParameterDefaults.types index cf561eb08af..7c1e104c471 100644 --- a/tests/baselines/reference/fatarrowfunctionsInFunctionParameterDefaults.types +++ b/tests/baselines/reference/fatarrowfunctionsInFunctionParameterDefaults.types @@ -1,22 +1,23 @@ === tests/cases/compiler/fatarrowfunctionsInFunctionParameterDefaults.ts === function fn(x = () => this, y = x()) { ->fn : (x?: () => any, y?: any) => any ->x : () => any +>fn : (x?: () => any, y?: any) => any, Symbol(fn, Decl(fatarrowfunctionsInFunctionParameterDefaults.ts, 0, 0)) +>x : () => any, Symbol(x, Decl(fatarrowfunctionsInFunctionParameterDefaults.ts, 0, 12)) >() => this : () => any >this : any ->y : any +>y : any, Symbol(y, Decl(fatarrowfunctionsInFunctionParameterDefaults.ts, 0, 27)) >x() : any ->x : () => any +>x : () => any, Symbol(x, Decl(fatarrowfunctionsInFunctionParameterDefaults.ts, 0, 12)) // should be 4 return y; ->y : any +>y : any, Symbol(y, Decl(fatarrowfunctionsInFunctionParameterDefaults.ts, 0, 27)) } fn.call(4); // Should be 4 >fn.call(4) : any ->fn.call : (thisArg: any, ...argArray: any[]) => any ->fn : (x?: () => any, y?: any) => any ->call : (thisArg: any, ...argArray: any[]) => any +>fn.call : (thisArg: any, ...argArray: any[]) => any, Symbol(Function.call, Decl(lib.d.ts, 234, 45)) +>fn : (x?: () => any, y?: any) => any, Symbol(fn, Decl(fatarrowfunctionsInFunctionParameterDefaults.ts, 0, 0)) +>call : (thisArg: any, ...argArray: any[]) => any, Symbol(Function.call, Decl(lib.d.ts, 234, 45)) +>4 : number diff --git a/tests/baselines/reference/fatarrowfunctionsInFunctions.types b/tests/baselines/reference/fatarrowfunctionsInFunctions.types index a8633eb1a8c..69245196ebe 100644 --- a/tests/baselines/reference/fatarrowfunctionsInFunctions.types +++ b/tests/baselines/reference/fatarrowfunctionsInFunctions.types @@ -1,44 +1,46 @@ === tests/cases/compiler/fatarrowfunctionsInFunctions.ts === declare function setTimeout(expression: any, msec?: number, language?: any): number; ->setTimeout : (expression: any, msec?: number, language?: any) => number ->expression : any ->msec : number ->language : any +>setTimeout : (expression: any, msec?: number, language?: any) => number, Symbol(setTimeout, Decl(fatarrowfunctionsInFunctions.ts, 0, 0)) +>expression : any, Symbol(expression, Decl(fatarrowfunctionsInFunctions.ts, 0, 28)) +>msec : number, Symbol(msec, Decl(fatarrowfunctionsInFunctions.ts, 0, 44)) +>language : any, Symbol(language, Decl(fatarrowfunctionsInFunctions.ts, 0, 59)) var messenger = { ->messenger : { message: string; start: () => void; } +>messenger : { message: string; start: () => void; }, Symbol(messenger, Decl(fatarrowfunctionsInFunctions.ts, 2, 3)) >{ message: "Hello World", start: function() { var _self = this; setTimeout(function() { _self.message.toString(); }, 3000); }} : { message: string; start: () => void; } message: "Hello World", ->message : string +>message : string, Symbol(message, Decl(fatarrowfunctionsInFunctions.ts, 2, 17)) +>"Hello World" : string start: function() { ->start : () => void +>start : () => void, Symbol(start, Decl(fatarrowfunctionsInFunctions.ts, 3, 27)) >function() { var _self = this; setTimeout(function() { _self.message.toString(); }, 3000); } : () => void var _self = this; ->_self : any +>_self : any, Symbol(_self, Decl(fatarrowfunctionsInFunctions.ts, 5, 11)) >this : any setTimeout(function() { >setTimeout(function() { _self.message.toString(); }, 3000) : number ->setTimeout : (expression: any, msec?: number, language?: any) => number +>setTimeout : (expression: any, msec?: number, language?: any) => number, Symbol(setTimeout, Decl(fatarrowfunctionsInFunctions.ts, 0, 0)) >function() { _self.message.toString(); } : () => void _self.message.toString(); >_self.message.toString() : any >_self.message.toString : any >_self.message : any ->_self : any +>_self : any, Symbol(_self, Decl(fatarrowfunctionsInFunctions.ts, 5, 11)) >message : any >toString : any }, 3000); +>3000 : number } }; messenger.start(); >messenger.start() : void ->messenger.start : () => void ->messenger : { message: string; start: () => void; } ->start : () => void +>messenger.start : () => void, Symbol(start, Decl(fatarrowfunctionsInFunctions.ts, 3, 27)) +>messenger : { message: string; start: () => void; }, Symbol(messenger, Decl(fatarrowfunctionsInFunctions.ts, 2, 3)) +>start : () => void, Symbol(start, Decl(fatarrowfunctionsInFunctions.ts, 3, 27)) diff --git a/tests/baselines/reference/fileReferencesWithNoExtensions.types b/tests/baselines/reference/fileReferencesWithNoExtensions.types index ec58e338345..fae231d904a 100644 --- a/tests/baselines/reference/fileReferencesWithNoExtensions.types +++ b/tests/baselines/reference/fileReferencesWithNoExtensions.types @@ -3,30 +3,32 @@ /// /// var a = aa; // Check that a.ts is referenced ->a : number ->aa : number +>a : number, Symbol(a, Decl(t.ts, 3, 3)) +>aa : number, Symbol(aa, Decl(a.ts, 0, 3)) var b = bb; // Check that b.d.ts is referenced ->b : number ->bb : number +>b : number, Symbol(b, Decl(t.ts, 4, 3)) +>bb : number, Symbol(bb, Decl(b.d.ts, 0, 11)) var c = cc; // Check that c.ts has precedence over c.d.ts ->c : number ->cc : number +>c : number, Symbol(c, Decl(t.ts, 5, 3)) +>cc : number, Symbol(cc, Decl(c.ts, 0, 3)) === tests/cases/compiler/a.ts === var aa = 1; ->aa : number +>aa : number, Symbol(aa, Decl(a.ts, 0, 3)) +>1 : number === tests/cases/compiler/b.d.ts === declare var bb: number; ->bb : number +>bb : number, Symbol(bb, Decl(b.d.ts, 0, 11)) === tests/cases/compiler/c.ts === var cc = 1; ->cc : number +>cc : number, Symbol(cc, Decl(c.ts, 0, 3)) +>1 : number === tests/cases/compiler/c.d.ts === declare var xx: number; ->xx : number +>xx : number, Symbol(xx, Decl(c.d.ts, 0, 11)) diff --git a/tests/baselines/reference/fileWithNextLine1.types b/tests/baselines/reference/fileWithNextLine1.types index 721b3d6fb10..21a859aabb3 100644 --- a/tests/baselines/reference/fileWithNextLine1.types +++ b/tests/baselines/reference/fileWithNextLine1.types @@ -2,5 +2,6 @@ // Note: there is a nextline (0x85) in the string // 0. It should be counted as a space and should not cause an error. var v = '…'; ->v : string +>v : string, Symbol(v, Decl(fileWithNextLine1.ts, 2, 3)) +>'…' : string diff --git a/tests/baselines/reference/fileWithNextLine2.types b/tests/baselines/reference/fileWithNextLine2.types index 8a6de1a4b2f..18486d2748e 100644 --- a/tests/baselines/reference/fileWithNextLine2.types +++ b/tests/baselines/reference/fileWithNextLine2.types @@ -2,5 +2,6 @@ // Note: there is a nextline (0x85) char between the = and the 0. // it should be treated like a space var v =…0; ->v : number +>v : number, Symbol(v, Decl(fileWithNextLine2.ts, 2, 3)) +>0 : number diff --git a/tests/baselines/reference/fillInMissingTypeArgsOnConstructCalls.types b/tests/baselines/reference/fillInMissingTypeArgsOnConstructCalls.types index 496400c8235..0c37483481e 100644 --- a/tests/baselines/reference/fillInMissingTypeArgsOnConstructCalls.types +++ b/tests/baselines/reference/fillInMissingTypeArgsOnConstructCalls.types @@ -1,15 +1,15 @@ === tests/cases/compiler/fillInMissingTypeArgsOnConstructCalls.ts === class A{ ->A : A ->T : T ->Object : Object +>A : A, Symbol(A, Decl(fillInMissingTypeArgsOnConstructCalls.ts, 0, 0)) +>T : T, Symbol(T, Decl(fillInMissingTypeArgsOnConstructCalls.ts, 0, 8)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) list: T ; ->list : T ->T : T +>list : T, Symbol(list, Decl(fillInMissingTypeArgsOnConstructCalls.ts, 0, 26)) +>T : T, Symbol(T, Decl(fillInMissingTypeArgsOnConstructCalls.ts, 0, 8)) } var a = new A(); ->a : A<{}> +>a : A<{}>, Symbol(a, Decl(fillInMissingTypeArgsOnConstructCalls.ts, 3, 3)) >new A() : A<{}> ->A : typeof A +>A : typeof A, Symbol(A, Decl(fillInMissingTypeArgsOnConstructCalls.ts, 0, 0)) diff --git a/tests/baselines/reference/for-of1.types b/tests/baselines/reference/for-of1.types index b21bb6046a7..e631cfe7ec0 100644 --- a/tests/baselines/reference/for-of1.types +++ b/tests/baselines/reference/for-of1.types @@ -1,8 +1,8 @@ === tests/cases/conformance/es6/for-ofStatements/for-of1.ts === var v; ->v : any +>v : any, Symbol(v, Decl(for-of1.ts, 0, 3)) for (v of []) { } ->v : any +>v : any, Symbol(v, Decl(for-of1.ts, 0, 3)) >[] : undefined[] diff --git a/tests/baselines/reference/for-of13.types b/tests/baselines/reference/for-of13.types index 4bb29c1e0ab..5bdb06c1fd7 100644 --- a/tests/baselines/reference/for-of13.types +++ b/tests/baselines/reference/for-of13.types @@ -1,11 +1,12 @@ === tests/cases/conformance/es6/for-ofStatements/for-of13.ts === var v: string; ->v : string +>v : string, Symbol(v, Decl(for-of13.ts, 0, 3)) for (v of [""].values()) { } ->v : string +>v : string, Symbol(v, Decl(for-of13.ts, 0, 3)) >[""].values() : IterableIterator ->[""].values : () => IterableIterator +>[""].values : () => IterableIterator, Symbol(Array.values, Decl(lib.d.ts, 1423, 37)) >[""] : string[] ->values : () => IterableIterator +>"" : string +>values : () => IterableIterator, Symbol(Array.values, Decl(lib.d.ts, 1423, 37)) diff --git a/tests/baselines/reference/for-of14.errors.txt b/tests/baselines/reference/for-of14.errors.txt index 5e8223381c7..ab95d042689 100644 --- a/tests/baselines/reference/for-of14.errors.txt +++ b/tests/baselines/reference/for-of14.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/es6/for-ofStatements/for-of14.ts(2,11): error TS2488: The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator. +tests/cases/conformance/es6/for-ofStatements/for-of14.ts(2,11): error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. ==== tests/cases/conformance/es6/for-ofStatements/for-of14.ts (1 errors) ==== var v: string; for (v of new StringIterator) { } // Should fail because the iterator is not iterable ~~~~~~~~~~~~~~~~~~ -!!! error TS2488: The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator. +!!! error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. class StringIterator { next() { diff --git a/tests/baselines/reference/for-of16.errors.txt b/tests/baselines/reference/for-of16.errors.txt index e3ecca1a256..20e3e876537 100644 --- a/tests/baselines/reference/for-of16.errors.txt +++ b/tests/baselines/reference/for-of16.errors.txt @@ -1,11 +1,11 @@ -tests/cases/conformance/es6/for-ofStatements/for-of16.ts(2,11): error TS2489: The iterator returned by the right-hand side of a 'for...of' statement must have a 'next()' method. +tests/cases/conformance/es6/for-ofStatements/for-of16.ts(2,11): error TS2489: An iterator must have a 'next()' method. ==== tests/cases/conformance/es6/for-ofStatements/for-of16.ts (1 errors) ==== var v: string; for (v of new StringIterator) { } // Should fail ~~~~~~~~~~~~~~~~~~ -!!! error TS2489: The iterator returned by the right-hand side of a 'for...of' statement must have a 'next()' method. +!!! error TS2489: An iterator must have a 'next()' method. class StringIterator { [Symbol.iterator]() { diff --git a/tests/baselines/reference/for-of18.types b/tests/baselines/reference/for-of18.types index 9ade9359475..c60b2928dc5 100644 --- a/tests/baselines/reference/for-of18.types +++ b/tests/baselines/reference/for-of18.types @@ -1,35 +1,37 @@ === tests/cases/conformance/es6/for-ofStatements/for-of18.ts === var v: string; ->v : string +>v : string, Symbol(v, Decl(for-of18.ts, 0, 3)) for (v of new StringIterator) { } // Should succeed ->v : string +>v : string, Symbol(v, Decl(for-of18.ts, 0, 3)) >new StringIterator : StringIterator ->StringIterator : typeof StringIterator +>StringIterator : typeof StringIterator, Symbol(StringIterator, Decl(for-of18.ts, 1, 33)) class StringIterator { ->StringIterator : StringIterator +>StringIterator : StringIterator, Symbol(StringIterator, Decl(for-of18.ts, 1, 33)) next() { ->next : () => { value: string; done: boolean; } +>next : () => { value: string; done: boolean; }, Symbol(next, Decl(for-of18.ts, 3, 22)) return { >{ value: "", done: false } : { value: string; done: boolean; } value: "", ->value : string +>value : string, Symbol(value, Decl(for-of18.ts, 5, 16)) +>"" : string done: false ->done : boolean +>done : boolean, Symbol(done, Decl(for-of18.ts, 6, 22)) +>false : boolean }; } [Symbol.iterator]() { ->Symbol.iterator : symbol ->Symbol : SymbolConstructor ->iterator : symbol +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) return this; ->this : StringIterator +>this : StringIterator, Symbol(StringIterator, Decl(for-of18.ts, 1, 33)) } } diff --git a/tests/baselines/reference/for-of19.types b/tests/baselines/reference/for-of19.types index 49172b09d83..87d102e6f11 100644 --- a/tests/baselines/reference/for-of19.types +++ b/tests/baselines/reference/for-of19.types @@ -1,41 +1,42 @@ === tests/cases/conformance/es6/for-ofStatements/for-of19.ts === for (var v of new FooIterator) { ->v : Foo +>v : Foo, Symbol(v, Decl(for-of19.ts, 0, 8)) >new FooIterator : FooIterator ->FooIterator : typeof FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(for-of19.ts, 4, 13)) v; ->v : Foo +>v : Foo, Symbol(v, Decl(for-of19.ts, 0, 8)) } class Foo { } ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(for-of19.ts, 2, 1)) class FooIterator { ->FooIterator : FooIterator +>FooIterator : FooIterator, Symbol(FooIterator, Decl(for-of19.ts, 4, 13)) next() { ->next : () => { value: Foo; done: boolean; } +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(for-of19.ts, 5, 19)) return { >{ value: new Foo, done: false } : { value: Foo; done: boolean; } value: new Foo, ->value : Foo +>value : Foo, Symbol(value, Decl(for-of19.ts, 7, 16)) >new Foo : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(for-of19.ts, 2, 1)) done: false ->done : boolean +>done : boolean, Symbol(done, Decl(for-of19.ts, 8, 27)) +>false : boolean }; } [Symbol.iterator]() { ->Symbol.iterator : symbol ->Symbol : SymbolConstructor ->iterator : symbol +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) return this; ->this : FooIterator +>this : FooIterator, Symbol(FooIterator, Decl(for-of19.ts, 4, 13)) } } diff --git a/tests/baselines/reference/for-of20.types b/tests/baselines/reference/for-of20.types index e967869fbd0..7f056176025 100644 --- a/tests/baselines/reference/for-of20.types +++ b/tests/baselines/reference/for-of20.types @@ -1,41 +1,42 @@ === tests/cases/conformance/es6/for-ofStatements/for-of20.ts === for (let v of new FooIterator) { ->v : Foo +>v : Foo, Symbol(v, Decl(for-of20.ts, 0, 8)) >new FooIterator : FooIterator ->FooIterator : typeof FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(for-of20.ts, 4, 13)) v; ->v : Foo +>v : Foo, Symbol(v, Decl(for-of20.ts, 0, 8)) } class Foo { } ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(for-of20.ts, 2, 1)) class FooIterator { ->FooIterator : FooIterator +>FooIterator : FooIterator, Symbol(FooIterator, Decl(for-of20.ts, 4, 13)) next() { ->next : () => { value: Foo; done: boolean; } +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(for-of20.ts, 5, 19)) return { >{ value: new Foo, done: false } : { value: Foo; done: boolean; } value: new Foo, ->value : Foo +>value : Foo, Symbol(value, Decl(for-of20.ts, 7, 16)) >new Foo : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(for-of20.ts, 2, 1)) done: false ->done : boolean +>done : boolean, Symbol(done, Decl(for-of20.ts, 8, 27)) +>false : boolean }; } [Symbol.iterator]() { ->Symbol.iterator : symbol ->Symbol : SymbolConstructor ->iterator : symbol +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) return this; ->this : FooIterator +>this : FooIterator, Symbol(FooIterator, Decl(for-of20.ts, 4, 13)) } } diff --git a/tests/baselines/reference/for-of21.types b/tests/baselines/reference/for-of21.types index 362f92577e2..5aa14935cd5 100644 --- a/tests/baselines/reference/for-of21.types +++ b/tests/baselines/reference/for-of21.types @@ -1,41 +1,42 @@ === tests/cases/conformance/es6/for-ofStatements/for-of21.ts === for (const v of new FooIterator) { ->v : Foo +>v : Foo, Symbol(v, Decl(for-of21.ts, 0, 10)) >new FooIterator : FooIterator ->FooIterator : typeof FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(for-of21.ts, 4, 13)) v; ->v : Foo +>v : Foo, Symbol(v, Decl(for-of21.ts, 0, 10)) } class Foo { } ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(for-of21.ts, 2, 1)) class FooIterator { ->FooIterator : FooIterator +>FooIterator : FooIterator, Symbol(FooIterator, Decl(for-of21.ts, 4, 13)) next() { ->next : () => { value: Foo; done: boolean; } +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(for-of21.ts, 5, 19)) return { >{ value: new Foo, done: false } : { value: Foo; done: boolean; } value: new Foo, ->value : Foo +>value : Foo, Symbol(value, Decl(for-of21.ts, 7, 16)) >new Foo : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(for-of21.ts, 2, 1)) done: false ->done : boolean +>done : boolean, Symbol(done, Decl(for-of21.ts, 8, 27)) +>false : boolean }; } [Symbol.iterator]() { ->Symbol.iterator : symbol ->Symbol : SymbolConstructor ->iterator : symbol +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) return this; ->this : FooIterator +>this : FooIterator, Symbol(FooIterator, Decl(for-of21.ts, 4, 13)) } } diff --git a/tests/baselines/reference/for-of22.types b/tests/baselines/reference/for-of22.types index bb2d5569bfc..ed1e21b1004 100644 --- a/tests/baselines/reference/for-of22.types +++ b/tests/baselines/reference/for-of22.types @@ -1,42 +1,43 @@ === tests/cases/conformance/es6/for-ofStatements/for-of22.ts === v; ->v : Foo +>v : Foo, Symbol(v, Decl(for-of22.ts, 1, 8)) for (var v of new FooIterator) { ->v : Foo +>v : Foo, Symbol(v, Decl(for-of22.ts, 1, 8)) >new FooIterator : FooIterator ->FooIterator : typeof FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(for-of22.ts, 5, 13)) } class Foo { } ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(for-of22.ts, 3, 1)) class FooIterator { ->FooIterator : FooIterator +>FooIterator : FooIterator, Symbol(FooIterator, Decl(for-of22.ts, 5, 13)) next() { ->next : () => { value: Foo; done: boolean; } +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(for-of22.ts, 6, 19)) return { >{ value: new Foo, done: false } : { value: Foo; done: boolean; } value: new Foo, ->value : Foo +>value : Foo, Symbol(value, Decl(for-of22.ts, 8, 16)) >new Foo : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(for-of22.ts, 3, 1)) done: false ->done : boolean +>done : boolean, Symbol(done, Decl(for-of22.ts, 9, 27)) +>false : boolean }; } [Symbol.iterator]() { ->Symbol.iterator : symbol ->Symbol : SymbolConstructor ->iterator : symbol +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) return this; ->this : FooIterator +>this : FooIterator, Symbol(FooIterator, Decl(for-of22.ts, 5, 13)) } } diff --git a/tests/baselines/reference/for-of23.types b/tests/baselines/reference/for-of23.types index b490616edc8..45e4f2e3316 100644 --- a/tests/baselines/reference/for-of23.types +++ b/tests/baselines/reference/for-of23.types @@ -1,41 +1,43 @@ === tests/cases/conformance/es6/for-ofStatements/for-of23.ts === for (const v of new FooIterator) { ->v : Foo +>v : Foo, Symbol(v, Decl(for-of23.ts, 0, 10)) >new FooIterator : FooIterator ->FooIterator : typeof FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(for-of23.ts, 4, 13)) const v = 0; // new scope ->v : number +>v : number, Symbol(v, Decl(for-of23.ts, 1, 9)) +>0 : number } class Foo { } ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(for-of23.ts, 2, 1)) class FooIterator { ->FooIterator : FooIterator +>FooIterator : FooIterator, Symbol(FooIterator, Decl(for-of23.ts, 4, 13)) next() { ->next : () => { value: Foo; done: boolean; } +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(for-of23.ts, 5, 19)) return { >{ value: new Foo, done: false } : { value: Foo; done: boolean; } value: new Foo, ->value : Foo +>value : Foo, Symbol(value, Decl(for-of23.ts, 7, 16)) >new Foo : Foo ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(for-of23.ts, 2, 1)) done: false ->done : boolean +>done : boolean, Symbol(done, Decl(for-of23.ts, 8, 27)) +>false : boolean }; } [Symbol.iterator]() { ->Symbol.iterator : symbol ->Symbol : SymbolConstructor ->iterator : symbol +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) return this; ->this : FooIterator +>this : FooIterator, Symbol(FooIterator, Decl(for-of23.ts, 4, 13)) } } diff --git a/tests/baselines/reference/for-of24.types b/tests/baselines/reference/for-of24.types index dc27cc32e21..e6a26f693da 100644 --- a/tests/baselines/reference/for-of24.types +++ b/tests/baselines/reference/for-of24.types @@ -1,8 +1,8 @@ === tests/cases/conformance/es6/for-ofStatements/for-of24.ts === var x: any; ->x : any +>x : any, Symbol(x, Decl(for-of24.ts, 0, 3)) for (var v of x) { } ->v : any ->x : any +>v : any, Symbol(v, Decl(for-of24.ts, 1, 8)) +>x : any, Symbol(x, Decl(for-of24.ts, 0, 3)) diff --git a/tests/baselines/reference/for-of25.types b/tests/baselines/reference/for-of25.types index c4d6b32aebc..ce8a4e79187 100644 --- a/tests/baselines/reference/for-of25.types +++ b/tests/baselines/reference/for-of25.types @@ -1,21 +1,21 @@ === tests/cases/conformance/es6/for-ofStatements/for-of25.ts === var x: any; ->x : any +>x : any, Symbol(x, Decl(for-of25.ts, 0, 3)) for (var v of new StringIterator) { } ->v : any +>v : any, Symbol(v, Decl(for-of25.ts, 1, 8)) >new StringIterator : StringIterator ->StringIterator : typeof StringIterator +>StringIterator : typeof StringIterator, Symbol(StringIterator, Decl(for-of25.ts, 1, 37)) class StringIterator { ->StringIterator : StringIterator +>StringIterator : StringIterator, Symbol(StringIterator, Decl(for-of25.ts, 1, 37)) [Symbol.iterator]() { ->Symbol.iterator : symbol ->Symbol : SymbolConstructor ->iterator : symbol +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) return x; ->x : any +>x : any, Symbol(x, Decl(for-of25.ts, 0, 3)) } } diff --git a/tests/baselines/reference/for-of26.types b/tests/baselines/reference/for-of26.types index d2608fbf154..0d031108908 100644 --- a/tests/baselines/reference/for-of26.types +++ b/tests/baselines/reference/for-of26.types @@ -1,27 +1,27 @@ === tests/cases/conformance/es6/for-ofStatements/for-of26.ts === var x: any; ->x : any +>x : any, Symbol(x, Decl(for-of26.ts, 0, 3)) for (var v of new StringIterator) { } ->v : any +>v : any, Symbol(v, Decl(for-of26.ts, 1, 8)) >new StringIterator : StringIterator ->StringIterator : typeof StringIterator +>StringIterator : typeof StringIterator, Symbol(StringIterator, Decl(for-of26.ts, 1, 37)) class StringIterator { ->StringIterator : StringIterator +>StringIterator : StringIterator, Symbol(StringIterator, Decl(for-of26.ts, 1, 37)) next() { ->next : () => any +>next : () => any, Symbol(next, Decl(for-of26.ts, 3, 22)) return x; ->x : any +>x : any, Symbol(x, Decl(for-of26.ts, 0, 3)) } [Symbol.iterator]() { ->Symbol.iterator : symbol ->Symbol : SymbolConstructor ->iterator : symbol +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) return this; ->this : StringIterator +>this : StringIterator, Symbol(StringIterator, Decl(for-of26.ts, 1, 37)) } } diff --git a/tests/baselines/reference/for-of27.types b/tests/baselines/reference/for-of27.types index 8e9130ce272..876aedc2d46 100644 --- a/tests/baselines/reference/for-of27.types +++ b/tests/baselines/reference/for-of27.types @@ -1,14 +1,14 @@ === tests/cases/conformance/es6/for-ofStatements/for-of27.ts === for (var v of new StringIterator) { } ->v : any +>v : any, Symbol(v, Decl(for-of27.ts, 0, 8)) >new StringIterator : StringIterator ->StringIterator : typeof StringIterator +>StringIterator : typeof StringIterator, Symbol(StringIterator, Decl(for-of27.ts, 0, 37)) class StringIterator { ->StringIterator : StringIterator +>StringIterator : StringIterator, Symbol(StringIterator, Decl(for-of27.ts, 0, 37)) [Symbol.iterator]: any; ->Symbol.iterator : symbol ->Symbol : SymbolConstructor ->iterator : symbol +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) } diff --git a/tests/baselines/reference/for-of28.types b/tests/baselines/reference/for-of28.types index 91b77a55a4d..ae531fd4543 100644 --- a/tests/baselines/reference/for-of28.types +++ b/tests/baselines/reference/for-of28.types @@ -1,21 +1,21 @@ === tests/cases/conformance/es6/for-ofStatements/for-of28.ts === for (var v of new StringIterator) { } ->v : any +>v : any, Symbol(v, Decl(for-of28.ts, 0, 8)) >new StringIterator : StringIterator ->StringIterator : typeof StringIterator +>StringIterator : typeof StringIterator, Symbol(StringIterator, Decl(for-of28.ts, 0, 37)) class StringIterator { ->StringIterator : StringIterator +>StringIterator : StringIterator, Symbol(StringIterator, Decl(for-of28.ts, 0, 37)) next: any; ->next : any +>next : any, Symbol(next, Decl(for-of28.ts, 2, 22)) [Symbol.iterator]() { ->Symbol.iterator : symbol ->Symbol : SymbolConstructor ->iterator : symbol +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) return this; ->this : StringIterator +>this : StringIterator, Symbol(StringIterator, Decl(for-of28.ts, 0, 37)) } } diff --git a/tests/baselines/reference/for-of36.types b/tests/baselines/reference/for-of36.types index da03367ba5d..02325e19a44 100644 --- a/tests/baselines/reference/for-of36.types +++ b/tests/baselines/reference/for-of36.types @@ -1,12 +1,14 @@ === tests/cases/conformance/es6/for-ofStatements/for-of36.ts === var tuple: [string, boolean] = ["", true]; ->tuple : [string, boolean] +>tuple : [string, boolean], Symbol(tuple, Decl(for-of36.ts, 0, 3)) >["", true] : [string, boolean] +>"" : string +>true : boolean for (var v of tuple) { ->v : string | boolean ->tuple : [string, boolean] +>v : string | boolean, Symbol(v, Decl(for-of36.ts, 1, 8)) +>tuple : [string, boolean], Symbol(tuple, Decl(for-of36.ts, 0, 3)) v; ->v : string | boolean +>v : string | boolean, Symbol(v, Decl(for-of36.ts, 1, 8)) } diff --git a/tests/baselines/reference/for-of37.types b/tests/baselines/reference/for-of37.types index f137db79af0..21277a8caf2 100644 --- a/tests/baselines/reference/for-of37.types +++ b/tests/baselines/reference/for-of37.types @@ -1,15 +1,17 @@ === tests/cases/conformance/es6/for-ofStatements/for-of37.ts === var map = new Map([["", true]]); ->map : Map +>map : Map, Symbol(map, Decl(for-of37.ts, 0, 3)) >new Map([["", true]]) : Map ->Map : MapConstructor +>Map : MapConstructor, Symbol(Map, Decl(lib.d.ts, 1837, 1), Decl(lib.d.ts, 1859, 11)) >[["", true]] : [string, boolean][] >["", true] : [string, boolean] +>"" : string +>true : boolean for (var v of map) { ->v : [string, boolean] ->map : Map +>v : [string, boolean], Symbol(v, Decl(for-of37.ts, 1, 8)) +>map : Map, Symbol(map, Decl(for-of37.ts, 0, 3)) v; ->v : [string, boolean] +>v : [string, boolean], Symbol(v, Decl(for-of37.ts, 1, 8)) } diff --git a/tests/baselines/reference/for-of38.types b/tests/baselines/reference/for-of38.types index cdd1e05dd7e..48f58feed83 100644 --- a/tests/baselines/reference/for-of38.types +++ b/tests/baselines/reference/for-of38.types @@ -1,19 +1,21 @@ === tests/cases/conformance/es6/for-ofStatements/for-of38.ts === var map = new Map([["", true]]); ->map : Map +>map : Map, Symbol(map, Decl(for-of38.ts, 0, 3)) >new Map([["", true]]) : Map ->Map : MapConstructor +>Map : MapConstructor, Symbol(Map, Decl(lib.d.ts, 1837, 1), Decl(lib.d.ts, 1859, 11)) >[["", true]] : [string, boolean][] >["", true] : [string, boolean] +>"" : string +>true : boolean for (var [k, v] of map) { ->k : string ->v : boolean ->map : Map +>k : string, Symbol(k, Decl(for-of38.ts, 1, 10)) +>v : boolean, Symbol(v, Decl(for-of38.ts, 1, 12)) +>map : Map, Symbol(map, Decl(for-of38.ts, 0, 3)) k; ->k : string +>k : string, Symbol(k, Decl(for-of38.ts, 1, 10)) v; ->v : boolean +>v : boolean, Symbol(v, Decl(for-of38.ts, 1, 12)) } diff --git a/tests/baselines/reference/for-of4.types b/tests/baselines/reference/for-of4.types index 2076fae84fc..7496adf1193 100644 --- a/tests/baselines/reference/for-of4.types +++ b/tests/baselines/reference/for-of4.types @@ -1,8 +1,9 @@ === tests/cases/conformance/es6/for-ofStatements/for-of4.ts === for (var v of [0]) { ->v : number +>v : number, Symbol(v, Decl(for-of4.ts, 0, 8)) >[0] : number[] +>0 : number v; ->v : number +>v : number, Symbol(v, Decl(for-of4.ts, 0, 8)) } diff --git a/tests/baselines/reference/for-of40.types b/tests/baselines/reference/for-of40.types index c0fe7cbbc02..0302c3dad98 100644 --- a/tests/baselines/reference/for-of40.types +++ b/tests/baselines/reference/for-of40.types @@ -1,19 +1,23 @@ === tests/cases/conformance/es6/for-ofStatements/for-of40.ts === var map = new Map([["", true]]); ->map : Map +>map : Map, Symbol(map, Decl(for-of40.ts, 0, 3)) >new Map([["", true]]) : Map ->Map : MapConstructor +>Map : MapConstructor, Symbol(Map, Decl(lib.d.ts, 1837, 1), Decl(lib.d.ts, 1859, 11)) >[["", true]] : [string, boolean][] >["", true] : [string, boolean] +>"" : string +>true : boolean for (var [k = "", v = false] of map) { ->k : string ->v : boolean ->map : Map +>k : string, Symbol(k, Decl(for-of40.ts, 1, 10)) +>"" : string +>v : boolean, Symbol(v, Decl(for-of40.ts, 1, 17)) +>false : boolean +>map : Map, Symbol(map, Decl(for-of40.ts, 0, 3)) k; ->k : string +>k : string, Symbol(k, Decl(for-of40.ts, 1, 10)) v; ->v : boolean +>v : boolean, Symbol(v, Decl(for-of40.ts, 1, 17)) } diff --git a/tests/baselines/reference/for-of41.types b/tests/baselines/reference/for-of41.types index 54e58aa1ec7..e1b90751132 100644 --- a/tests/baselines/reference/for-of41.types +++ b/tests/baselines/reference/for-of41.types @@ -1,24 +1,26 @@ === tests/cases/conformance/es6/for-ofStatements/for-of41.ts === var array = [{x: [0], y: {p: ""}}] ->array : { x: number[]; y: { p: string; }; }[] +>array : { x: number[]; y: { p: string; }; }[], Symbol(array, Decl(for-of41.ts, 0, 3)) >[{x: [0], y: {p: ""}}] : { x: number[]; y: { p: string; }; }[] >{x: [0], y: {p: ""}} : { x: number[]; y: { p: string; }; } ->x : number[] +>x : number[], Symbol(x, Decl(for-of41.ts, 0, 14)) >[0] : number[] ->y : { p: string; } +>0 : number +>y : { p: string; }, Symbol(y, Decl(for-of41.ts, 0, 21)) >{p: ""} : { p: string; } ->p : string +>p : string, Symbol(p, Decl(for-of41.ts, 0, 26)) +>"" : string for (var {x: [a], y: {p}} of array) { ->x : unknown ->a : number ->y : unknown ->p : string ->array : { x: number[]; y: { p: string; }; }[] +>x : any +>a : number, Symbol(a, Decl(for-of41.ts, 1, 14)) +>y : any +>p : string, Symbol(p, Decl(for-of41.ts, 1, 22)) +>array : { x: number[]; y: { p: string; }; }[], Symbol(array, Decl(for-of41.ts, 0, 3)) a; ->a : number +>a : number, Symbol(a, Decl(for-of41.ts, 1, 14)) p; ->p : string +>p : string, Symbol(p, Decl(for-of41.ts, 1, 22)) } diff --git a/tests/baselines/reference/for-of42.types b/tests/baselines/reference/for-of42.types index 1a819452770..0c6ec077741 100644 --- a/tests/baselines/reference/for-of42.types +++ b/tests/baselines/reference/for-of42.types @@ -1,21 +1,23 @@ === tests/cases/conformance/es6/for-ofStatements/for-of42.ts === var array = [{ x: "", y: 0 }] ->array : { x: string; y: number; }[] +>array : { x: string; y: number; }[], Symbol(array, Decl(for-of42.ts, 0, 3)) >[{ x: "", y: 0 }] : { x: string; y: number; }[] >{ x: "", y: 0 } : { x: string; y: number; } ->x : string ->y : number +>x : string, Symbol(x, Decl(for-of42.ts, 0, 14)) +>"" : string +>y : number, Symbol(y, Decl(for-of42.ts, 0, 21)) +>0 : number for (var {x: a, y: b} of array) { ->x : unknown ->a : string ->y : unknown ->b : number ->array : { x: string; y: number; }[] +>x : any +>a : string, Symbol(a, Decl(for-of42.ts, 1, 10)) +>y : any +>b : number, Symbol(b, Decl(for-of42.ts, 1, 15)) +>array : { x: string; y: number; }[], Symbol(array, Decl(for-of42.ts, 0, 3)) a; ->a : string +>a : string, Symbol(a, Decl(for-of42.ts, 1, 10)) b; ->b : number +>b : number, Symbol(b, Decl(for-of42.ts, 1, 15)) } diff --git a/tests/baselines/reference/for-of44.types b/tests/baselines/reference/for-of44.types index 078b49bd309..7279b772cf3 100644 --- a/tests/baselines/reference/for-of44.types +++ b/tests/baselines/reference/for-of44.types @@ -1,21 +1,26 @@ === tests/cases/conformance/es6/for-ofStatements/for-of44.ts === var array: [number, string | boolean | symbol][] = [[0, ""], [0, true], [1, Symbol()]] ->array : [number, string | boolean | symbol][] +>array : [number, string | boolean | symbol][], Symbol(array, Decl(for-of44.ts, 0, 3)) >[[0, ""], [0, true], [1, Symbol()]] : ([number, string] | [number, boolean] | [number, symbol])[] >[0, ""] : [number, string] +>0 : number +>"" : string >[0, true] : [number, boolean] +>0 : number +>true : boolean >[1, Symbol()] : [number, symbol] +>1 : number >Symbol() : symbol ->Symbol : SymbolConstructor +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) for (var [num, strBoolSym] of array) { ->num : number ->strBoolSym : string | boolean | symbol ->array : [number, string | boolean | symbol][] +>num : number, Symbol(num, Decl(for-of44.ts, 1, 10)) +>strBoolSym : string | boolean | symbol, Symbol(strBoolSym, Decl(for-of44.ts, 1, 14)) +>array : [number, string | boolean | symbol][], Symbol(array, Decl(for-of44.ts, 0, 3)) num; ->num : number +>num : number, Symbol(num, Decl(for-of44.ts, 1, 10)) strBoolSym; ->strBoolSym : string | boolean | symbol +>strBoolSym : string | boolean | symbol, Symbol(strBoolSym, Decl(for-of44.ts, 1, 14)) } diff --git a/tests/baselines/reference/for-of45.types b/tests/baselines/reference/for-of45.types index 8ac4b9fa7e9..820c387a5ad 100644 --- a/tests/baselines/reference/for-of45.types +++ b/tests/baselines/reference/for-of45.types @@ -1,26 +1,30 @@ === tests/cases/conformance/es6/for-ofStatements/for-of45.ts === var k: string, v: boolean; ->k : string ->v : boolean +>k : string, Symbol(k, Decl(for-of45.ts, 0, 3)) +>v : boolean, Symbol(v, Decl(for-of45.ts, 0, 14)) var map = new Map([["", true]]); ->map : Map +>map : Map, Symbol(map, Decl(for-of45.ts, 1, 3)) >new Map([["", true]]) : Map ->Map : MapConstructor +>Map : MapConstructor, Symbol(Map, Decl(lib.d.ts, 1837, 1), Decl(lib.d.ts, 1859, 11)) >[["", true]] : [string, boolean][] >["", true] : [string, boolean] +>"" : string +>true : boolean for ([k = "", v = false] of map) { >[k = "", v = false] : (string | boolean)[] >k = "" : string ->k : string +>k : string, Symbol(k, Decl(for-of45.ts, 0, 3)) +>"" : string >v = false : boolean ->v : boolean ->map : Map +>v : boolean, Symbol(v, Decl(for-of45.ts, 0, 14)) +>false : boolean +>map : Map, Symbol(map, Decl(for-of45.ts, 1, 3)) k; ->k : string +>k : string, Symbol(k, Decl(for-of45.ts, 0, 3)) v; ->v : boolean +>v : boolean, Symbol(v, Decl(for-of45.ts, 0, 14)) } diff --git a/tests/baselines/reference/for-of5.types b/tests/baselines/reference/for-of5.types index feac5ef9e52..35088a965fd 100644 --- a/tests/baselines/reference/for-of5.types +++ b/tests/baselines/reference/for-of5.types @@ -1,8 +1,9 @@ === tests/cases/conformance/es6/for-ofStatements/for-of5.ts === for (let v of [0]) { ->v : number +>v : number, Symbol(v, Decl(for-of5.ts, 0, 8)) >[0] : number[] +>0 : number v; ->v : number +>v : number, Symbol(v, Decl(for-of5.ts, 0, 8)) } diff --git a/tests/baselines/reference/for-of50.types b/tests/baselines/reference/for-of50.types index a38f3855174..e5b81e2e57f 100644 --- a/tests/baselines/reference/for-of50.types +++ b/tests/baselines/reference/for-of50.types @@ -1,19 +1,21 @@ === tests/cases/conformance/es6/for-ofStatements/for-of50.ts === var map = new Map([["", true]]); ->map : Map +>map : Map, Symbol(map, Decl(for-of50.ts, 0, 3)) >new Map([["", true]]) : Map ->Map : MapConstructor +>Map : MapConstructor, Symbol(Map, Decl(lib.d.ts, 1837, 1), Decl(lib.d.ts, 1859, 11)) >[["", true]] : [string, boolean][] >["", true] : [string, boolean] +>"" : string +>true : boolean for (const [k, v] of map) { ->k : string ->v : boolean ->map : Map +>k : string, Symbol(k, Decl(for-of50.ts, 1, 12)) +>v : boolean, Symbol(v, Decl(for-of50.ts, 1, 14)) +>map : Map, Symbol(map, Decl(for-of50.ts, 0, 3)) k; ->k : string +>k : string, Symbol(k, Decl(for-of50.ts, 1, 12)) v; ->v : boolean +>v : boolean, Symbol(v, Decl(for-of50.ts, 1, 14)) } diff --git a/tests/baselines/reference/for-of53.types b/tests/baselines/reference/for-of53.types index 475d63e9b5a..e1f21b03f41 100644 --- a/tests/baselines/reference/for-of53.types +++ b/tests/baselines/reference/for-of53.types @@ -1,8 +1,8 @@ === tests/cases/conformance/es6/for-ofStatements/for-of53.ts === for (let v of []) { ->v : any +>v : any, Symbol(v, Decl(for-of53.ts, 0, 8)) >[] : undefined[] var v; ->v : any +>v : any, Symbol(v, Decl(for-of53.ts, 1, 7)) } diff --git a/tests/baselines/reference/for-of56.types b/tests/baselines/reference/for-of56.types index d853ff9f62c..f16d303ffb8 100644 --- a/tests/baselines/reference/for-of56.types +++ b/tests/baselines/reference/for-of56.types @@ -1,5 +1,5 @@ === tests/cases/conformance/es6/for-ofStatements/for-of56.ts === for (var let of []) {} ->let : any +>let : any, Symbol(let, Decl(for-of56.ts, 0, 8)) >[] : undefined[] diff --git a/tests/baselines/reference/for-of57.js b/tests/baselines/reference/for-of57.js new file mode 100644 index 00000000000..5a867c332f7 --- /dev/null +++ b/tests/baselines/reference/for-of57.js @@ -0,0 +1,7 @@ +//// [for-of57.ts] +var iter: Iterable; +for (let num of iter) { } + +//// [for-of57.js] +var iter; +for (let num of iter) { } diff --git a/tests/baselines/reference/for-of57.types b/tests/baselines/reference/for-of57.types new file mode 100644 index 00000000000..bf6684a8f72 --- /dev/null +++ b/tests/baselines/reference/for-of57.types @@ -0,0 +1,9 @@ +=== tests/cases/conformance/es6/for-ofStatements/for-of57.ts === +var iter: Iterable; +>iter : Iterable, Symbol(iter, Decl(for-of57.ts, 0, 3)) +>Iterable : Iterable, Symbol(Iterable, Decl(lib.d.ts, 1633, 1)) + +for (let num of iter) { } +>num : number, Symbol(num, Decl(for-of57.ts, 1, 8)) +>iter : Iterable, Symbol(iter, Decl(for-of57.ts, 0, 3)) + diff --git a/tests/baselines/reference/for-of8.types b/tests/baselines/reference/for-of8.types index 5f239d141fe..c25194bfd0c 100644 --- a/tests/baselines/reference/for-of8.types +++ b/tests/baselines/reference/for-of8.types @@ -1,8 +1,9 @@ === tests/cases/conformance/es6/for-ofStatements/for-of8.ts === v; ->v : number +>v : number, Symbol(v, Decl(for-of8.ts, 1, 8)) for (var v of [0]) { } ->v : number +>v : number, Symbol(v, Decl(for-of8.ts, 1, 8)) >[0] : number[] +>0 : number diff --git a/tests/baselines/reference/for-of9.types b/tests/baselines/reference/for-of9.types index 55c8167094f..10af4c71385 100644 --- a/tests/baselines/reference/for-of9.types +++ b/tests/baselines/reference/for-of9.types @@ -1,11 +1,13 @@ === tests/cases/conformance/es6/for-ofStatements/for-of9.ts === var v: string; ->v : string +>v : string, Symbol(v, Decl(for-of9.ts, 0, 3)) for (v of ["hello"]) { } ->v : string +>v : string, Symbol(v, Decl(for-of9.ts, 0, 3)) >["hello"] : string[] +>"hello" : string for (v of "hello") { } ->v : string +>v : string, Symbol(v, Decl(for-of9.ts, 0, 3)) +>"hello" : string diff --git a/tests/baselines/reference/forBreakStatements.types b/tests/baselines/reference/forBreakStatements.types index dafaae9cce7..74118ea753a 100644 --- a/tests/baselines/reference/forBreakStatements.types +++ b/tests/baselines/reference/forBreakStatements.types @@ -4,38 +4,60 @@ for (; ;) { } ONE: +>ONE : any + for (; ;) { break ONE; +>ONE : any } TWO: +>TWO : any + THREE: +>THREE : any + for (; ;) { break THREE; +>THREE : any } FOUR: +>FOUR : any + for (; ;) { FIVE: +>FIVE : any + for (; ;) { break FOUR; +>FOUR : any } } for (; ;) { SIX: +>SIX : any + for (; ;) break SIX; +>SIX : any } SEVEN: +>SEVEN : any + for (; ;) for (; ;) for (; ;) break SEVEN; +>SEVEN : any EIGHT: +>EIGHT : any + for (; ;) { var fn = function () { } ->fn : () => void +>fn : () => void, Symbol(fn, Decl(forBreakStatements.ts, 33, 7)) >function () { } : () => void break EIGHT; +>EIGHT : any } diff --git a/tests/baselines/reference/forContinueStatements.types b/tests/baselines/reference/forContinueStatements.types index 60fd7115362..fe137f0e552 100644 --- a/tests/baselines/reference/forContinueStatements.types +++ b/tests/baselines/reference/forContinueStatements.types @@ -4,38 +4,60 @@ for (; ;) { } ONE: +>ONE : any + for (; ;) { continue ONE; +>ONE : any } TWO: +>TWO : any + THREE: +>THREE : any + for (; ;) { continue THREE; +>THREE : any } FOUR: +>FOUR : any + for (; ;) { FIVE: +>FIVE : any + for (; ;) { continue FOUR; +>FOUR : any } } for (; ;) { SIX: +>SIX : any + for (; ;) continue SIX; +>SIX : any } SEVEN: +>SEVEN : any + for (; ;) for (; ;) for (; ;) continue SEVEN; +>SEVEN : any EIGHT: +>EIGHT : any + for (; ;) { var fn = function () { } ->fn : () => void +>fn : () => void, Symbol(fn, Decl(forContinueStatements.ts, 33, 7)) >function () { } : () => void continue EIGHT; +>EIGHT : any } diff --git a/tests/baselines/reference/forInBreakStatements.types b/tests/baselines/reference/forInBreakStatements.types index 8d0cf0ace3c..c03c5fdc3d5 100644 --- a/tests/baselines/reference/forInBreakStatements.types +++ b/tests/baselines/reference/forInBreakStatements.types @@ -1,70 +1,92 @@ === tests/cases/conformance/statements/breakStatements/forInBreakStatements.ts === for(var x in {}) { ->x : any +>x : any, Symbol(x, Decl(forInBreakStatements.ts, 0, 7), Decl(forInBreakStatements.ts, 5, 7), Decl(forInBreakStatements.ts, 11, 7), Decl(forInBreakStatements.ts, 16, 7), Decl(forInBreakStatements.ts, 18, 11), Decl(forInBreakStatements.ts, 23, 7), Decl(forInBreakStatements.ts, 25, 11), Decl(forInBreakStatements.ts, 29, 8), Decl(forInBreakStatements.ts, 29, 26), Decl(forInBreakStatements.ts, 29, 44), Decl(forInBreakStatements.ts, 32, 8)) >{} : {} break; } ONE: +>ONE : any + for(var x in {}) { ->x : any +>x : any, Symbol(x, Decl(forInBreakStatements.ts, 0, 7), Decl(forInBreakStatements.ts, 5, 7), Decl(forInBreakStatements.ts, 11, 7), Decl(forInBreakStatements.ts, 16, 7), Decl(forInBreakStatements.ts, 18, 11), Decl(forInBreakStatements.ts, 23, 7), Decl(forInBreakStatements.ts, 25, 11), Decl(forInBreakStatements.ts, 29, 8), Decl(forInBreakStatements.ts, 29, 26), Decl(forInBreakStatements.ts, 29, 44), Decl(forInBreakStatements.ts, 32, 8)) >{} : {} break ONE; +>ONE : any } TWO: +>TWO : any + THREE: +>THREE : any + for(var x in {}) { ->x : any +>x : any, Symbol(x, Decl(forInBreakStatements.ts, 0, 7), Decl(forInBreakStatements.ts, 5, 7), Decl(forInBreakStatements.ts, 11, 7), Decl(forInBreakStatements.ts, 16, 7), Decl(forInBreakStatements.ts, 18, 11), Decl(forInBreakStatements.ts, 23, 7), Decl(forInBreakStatements.ts, 25, 11), Decl(forInBreakStatements.ts, 29, 8), Decl(forInBreakStatements.ts, 29, 26), Decl(forInBreakStatements.ts, 29, 44), Decl(forInBreakStatements.ts, 32, 8)) >{} : {} break THREE; +>THREE : any } FOUR: +>FOUR : any + for(var x in {}) { ->x : any +>x : any, Symbol(x, Decl(forInBreakStatements.ts, 0, 7), Decl(forInBreakStatements.ts, 5, 7), Decl(forInBreakStatements.ts, 11, 7), Decl(forInBreakStatements.ts, 16, 7), Decl(forInBreakStatements.ts, 18, 11), Decl(forInBreakStatements.ts, 23, 7), Decl(forInBreakStatements.ts, 25, 11), Decl(forInBreakStatements.ts, 29, 8), Decl(forInBreakStatements.ts, 29, 26), Decl(forInBreakStatements.ts, 29, 44), Decl(forInBreakStatements.ts, 32, 8)) >{} : {} FIVE: +>FIVE : any + for(var x in {}) { ->x : any +>x : any, Symbol(x, Decl(forInBreakStatements.ts, 0, 7), Decl(forInBreakStatements.ts, 5, 7), Decl(forInBreakStatements.ts, 11, 7), Decl(forInBreakStatements.ts, 16, 7), Decl(forInBreakStatements.ts, 18, 11), Decl(forInBreakStatements.ts, 23, 7), Decl(forInBreakStatements.ts, 25, 11), Decl(forInBreakStatements.ts, 29, 8), Decl(forInBreakStatements.ts, 29, 26), Decl(forInBreakStatements.ts, 29, 44), Decl(forInBreakStatements.ts, 32, 8)) >{} : {} break FOUR; +>FOUR : any } } for(var x in {}) { ->x : any +>x : any, Symbol(x, Decl(forInBreakStatements.ts, 0, 7), Decl(forInBreakStatements.ts, 5, 7), Decl(forInBreakStatements.ts, 11, 7), Decl(forInBreakStatements.ts, 16, 7), Decl(forInBreakStatements.ts, 18, 11), Decl(forInBreakStatements.ts, 23, 7), Decl(forInBreakStatements.ts, 25, 11), Decl(forInBreakStatements.ts, 29, 8), Decl(forInBreakStatements.ts, 29, 26), Decl(forInBreakStatements.ts, 29, 44), Decl(forInBreakStatements.ts, 32, 8)) >{} : {} SIX: +>SIX : any + for(var x in {}) break SIX; ->x : any +>x : any, Symbol(x, Decl(forInBreakStatements.ts, 0, 7), Decl(forInBreakStatements.ts, 5, 7), Decl(forInBreakStatements.ts, 11, 7), Decl(forInBreakStatements.ts, 16, 7), Decl(forInBreakStatements.ts, 18, 11), Decl(forInBreakStatements.ts, 23, 7), Decl(forInBreakStatements.ts, 25, 11), Decl(forInBreakStatements.ts, 29, 8), Decl(forInBreakStatements.ts, 29, 26), Decl(forInBreakStatements.ts, 29, 44), Decl(forInBreakStatements.ts, 32, 8)) >{} : {} +>SIX : any } SEVEN: +>SEVEN : any + for (var x in {}) for (var x in {}) for (var x in {}) break SEVEN; ->x : any +>x : any, Symbol(x, Decl(forInBreakStatements.ts, 0, 7), Decl(forInBreakStatements.ts, 5, 7), Decl(forInBreakStatements.ts, 11, 7), Decl(forInBreakStatements.ts, 16, 7), Decl(forInBreakStatements.ts, 18, 11), Decl(forInBreakStatements.ts, 23, 7), Decl(forInBreakStatements.ts, 25, 11), Decl(forInBreakStatements.ts, 29, 8), Decl(forInBreakStatements.ts, 29, 26), Decl(forInBreakStatements.ts, 29, 44), Decl(forInBreakStatements.ts, 32, 8)) >{} : {} ->x : any +>x : any, Symbol(x, Decl(forInBreakStatements.ts, 0, 7), Decl(forInBreakStatements.ts, 5, 7), Decl(forInBreakStatements.ts, 11, 7), Decl(forInBreakStatements.ts, 16, 7), Decl(forInBreakStatements.ts, 18, 11), Decl(forInBreakStatements.ts, 23, 7), Decl(forInBreakStatements.ts, 25, 11), Decl(forInBreakStatements.ts, 29, 8), Decl(forInBreakStatements.ts, 29, 26), Decl(forInBreakStatements.ts, 29, 44), Decl(forInBreakStatements.ts, 32, 8)) >{} : {} ->x : any +>x : any, Symbol(x, Decl(forInBreakStatements.ts, 0, 7), Decl(forInBreakStatements.ts, 5, 7), Decl(forInBreakStatements.ts, 11, 7), Decl(forInBreakStatements.ts, 16, 7), Decl(forInBreakStatements.ts, 18, 11), Decl(forInBreakStatements.ts, 23, 7), Decl(forInBreakStatements.ts, 25, 11), Decl(forInBreakStatements.ts, 29, 8), Decl(forInBreakStatements.ts, 29, 26), Decl(forInBreakStatements.ts, 29, 44), Decl(forInBreakStatements.ts, 32, 8)) >{} : {} +>SEVEN : any EIGHT: +>EIGHT : any + for (var x in {}){ ->x : any +>x : any, Symbol(x, Decl(forInBreakStatements.ts, 0, 7), Decl(forInBreakStatements.ts, 5, 7), Decl(forInBreakStatements.ts, 11, 7), Decl(forInBreakStatements.ts, 16, 7), Decl(forInBreakStatements.ts, 18, 11), Decl(forInBreakStatements.ts, 23, 7), Decl(forInBreakStatements.ts, 25, 11), Decl(forInBreakStatements.ts, 29, 8), Decl(forInBreakStatements.ts, 29, 26), Decl(forInBreakStatements.ts, 29, 44), Decl(forInBreakStatements.ts, 32, 8)) >{} : {} var fn = function () { } ->fn : () => void +>fn : () => void, Symbol(fn, Decl(forInBreakStatements.ts, 33, 7)) >function () { } : () => void break EIGHT; +>EIGHT : any } diff --git a/tests/baselines/reference/forInContinueStatements.types b/tests/baselines/reference/forInContinueStatements.types index 3751c11aaa9..9c3473f43f4 100644 --- a/tests/baselines/reference/forInContinueStatements.types +++ b/tests/baselines/reference/forInContinueStatements.types @@ -1,70 +1,92 @@ === tests/cases/conformance/statements/continueStatements/forInContinueStatements.ts === for(var x in {}) { ->x : any +>x : any, Symbol(x, Decl(forInContinueStatements.ts, 0, 7), Decl(forInContinueStatements.ts, 5, 7), Decl(forInContinueStatements.ts, 11, 7), Decl(forInContinueStatements.ts, 16, 7), Decl(forInContinueStatements.ts, 18, 11), Decl(forInContinueStatements.ts, 23, 7), Decl(forInContinueStatements.ts, 25, 11), Decl(forInContinueStatements.ts, 29, 8), Decl(forInContinueStatements.ts, 29, 26), Decl(forInContinueStatements.ts, 29, 44), Decl(forInContinueStatements.ts, 32, 8)) >{} : {} continue; } ONE: +>ONE : any + for(var x in {}) { ->x : any +>x : any, Symbol(x, Decl(forInContinueStatements.ts, 0, 7), Decl(forInContinueStatements.ts, 5, 7), Decl(forInContinueStatements.ts, 11, 7), Decl(forInContinueStatements.ts, 16, 7), Decl(forInContinueStatements.ts, 18, 11), Decl(forInContinueStatements.ts, 23, 7), Decl(forInContinueStatements.ts, 25, 11), Decl(forInContinueStatements.ts, 29, 8), Decl(forInContinueStatements.ts, 29, 26), Decl(forInContinueStatements.ts, 29, 44), Decl(forInContinueStatements.ts, 32, 8)) >{} : {} continue ONE; +>ONE : any } TWO: +>TWO : any + THREE: +>THREE : any + for(var x in {}) { ->x : any +>x : any, Symbol(x, Decl(forInContinueStatements.ts, 0, 7), Decl(forInContinueStatements.ts, 5, 7), Decl(forInContinueStatements.ts, 11, 7), Decl(forInContinueStatements.ts, 16, 7), Decl(forInContinueStatements.ts, 18, 11), Decl(forInContinueStatements.ts, 23, 7), Decl(forInContinueStatements.ts, 25, 11), Decl(forInContinueStatements.ts, 29, 8), Decl(forInContinueStatements.ts, 29, 26), Decl(forInContinueStatements.ts, 29, 44), Decl(forInContinueStatements.ts, 32, 8)) >{} : {} continue THREE; +>THREE : any } FOUR: +>FOUR : any + for(var x in {}) { ->x : any +>x : any, Symbol(x, Decl(forInContinueStatements.ts, 0, 7), Decl(forInContinueStatements.ts, 5, 7), Decl(forInContinueStatements.ts, 11, 7), Decl(forInContinueStatements.ts, 16, 7), Decl(forInContinueStatements.ts, 18, 11), Decl(forInContinueStatements.ts, 23, 7), Decl(forInContinueStatements.ts, 25, 11), Decl(forInContinueStatements.ts, 29, 8), Decl(forInContinueStatements.ts, 29, 26), Decl(forInContinueStatements.ts, 29, 44), Decl(forInContinueStatements.ts, 32, 8)) >{} : {} FIVE: +>FIVE : any + for(var x in {}) { ->x : any +>x : any, Symbol(x, Decl(forInContinueStatements.ts, 0, 7), Decl(forInContinueStatements.ts, 5, 7), Decl(forInContinueStatements.ts, 11, 7), Decl(forInContinueStatements.ts, 16, 7), Decl(forInContinueStatements.ts, 18, 11), Decl(forInContinueStatements.ts, 23, 7), Decl(forInContinueStatements.ts, 25, 11), Decl(forInContinueStatements.ts, 29, 8), Decl(forInContinueStatements.ts, 29, 26), Decl(forInContinueStatements.ts, 29, 44), Decl(forInContinueStatements.ts, 32, 8)) >{} : {} continue FOUR; +>FOUR : any } } for(var x in {}) { ->x : any +>x : any, Symbol(x, Decl(forInContinueStatements.ts, 0, 7), Decl(forInContinueStatements.ts, 5, 7), Decl(forInContinueStatements.ts, 11, 7), Decl(forInContinueStatements.ts, 16, 7), Decl(forInContinueStatements.ts, 18, 11), Decl(forInContinueStatements.ts, 23, 7), Decl(forInContinueStatements.ts, 25, 11), Decl(forInContinueStatements.ts, 29, 8), Decl(forInContinueStatements.ts, 29, 26), Decl(forInContinueStatements.ts, 29, 44), Decl(forInContinueStatements.ts, 32, 8)) >{} : {} SIX: +>SIX : any + for(var x in {}) continue SIX; ->x : any +>x : any, Symbol(x, Decl(forInContinueStatements.ts, 0, 7), Decl(forInContinueStatements.ts, 5, 7), Decl(forInContinueStatements.ts, 11, 7), Decl(forInContinueStatements.ts, 16, 7), Decl(forInContinueStatements.ts, 18, 11), Decl(forInContinueStatements.ts, 23, 7), Decl(forInContinueStatements.ts, 25, 11), Decl(forInContinueStatements.ts, 29, 8), Decl(forInContinueStatements.ts, 29, 26), Decl(forInContinueStatements.ts, 29, 44), Decl(forInContinueStatements.ts, 32, 8)) >{} : {} +>SIX : any } SEVEN: +>SEVEN : any + for (var x in {}) for (var x in {}) for (var x in {}) continue SEVEN; ->x : any +>x : any, Symbol(x, Decl(forInContinueStatements.ts, 0, 7), Decl(forInContinueStatements.ts, 5, 7), Decl(forInContinueStatements.ts, 11, 7), Decl(forInContinueStatements.ts, 16, 7), Decl(forInContinueStatements.ts, 18, 11), Decl(forInContinueStatements.ts, 23, 7), Decl(forInContinueStatements.ts, 25, 11), Decl(forInContinueStatements.ts, 29, 8), Decl(forInContinueStatements.ts, 29, 26), Decl(forInContinueStatements.ts, 29, 44), Decl(forInContinueStatements.ts, 32, 8)) >{} : {} ->x : any +>x : any, Symbol(x, Decl(forInContinueStatements.ts, 0, 7), Decl(forInContinueStatements.ts, 5, 7), Decl(forInContinueStatements.ts, 11, 7), Decl(forInContinueStatements.ts, 16, 7), Decl(forInContinueStatements.ts, 18, 11), Decl(forInContinueStatements.ts, 23, 7), Decl(forInContinueStatements.ts, 25, 11), Decl(forInContinueStatements.ts, 29, 8), Decl(forInContinueStatements.ts, 29, 26), Decl(forInContinueStatements.ts, 29, 44), Decl(forInContinueStatements.ts, 32, 8)) >{} : {} ->x : any +>x : any, Symbol(x, Decl(forInContinueStatements.ts, 0, 7), Decl(forInContinueStatements.ts, 5, 7), Decl(forInContinueStatements.ts, 11, 7), Decl(forInContinueStatements.ts, 16, 7), Decl(forInContinueStatements.ts, 18, 11), Decl(forInContinueStatements.ts, 23, 7), Decl(forInContinueStatements.ts, 25, 11), Decl(forInContinueStatements.ts, 29, 8), Decl(forInContinueStatements.ts, 29, 26), Decl(forInContinueStatements.ts, 29, 44), Decl(forInContinueStatements.ts, 32, 8)) >{} : {} +>SEVEN : any EIGHT: +>EIGHT : any + for (var x in {}){ ->x : any +>x : any, Symbol(x, Decl(forInContinueStatements.ts, 0, 7), Decl(forInContinueStatements.ts, 5, 7), Decl(forInContinueStatements.ts, 11, 7), Decl(forInContinueStatements.ts, 16, 7), Decl(forInContinueStatements.ts, 18, 11), Decl(forInContinueStatements.ts, 23, 7), Decl(forInContinueStatements.ts, 25, 11), Decl(forInContinueStatements.ts, 29, 8), Decl(forInContinueStatements.ts, 29, 26), Decl(forInContinueStatements.ts, 29, 44), Decl(forInContinueStatements.ts, 32, 8)) >{} : {} var fn = function () { } ->fn : () => void +>fn : () => void, Symbol(fn, Decl(forInContinueStatements.ts, 33, 7)) >function () { } : () => void continue EIGHT; +>EIGHT : any } diff --git a/tests/baselines/reference/forInModule.types b/tests/baselines/reference/forInModule.types index 7de39df3b33..d89b6561859 100644 --- a/tests/baselines/reference/forInModule.types +++ b/tests/baselines/reference/forInModule.types @@ -1,17 +1,19 @@ === tests/cases/compiler/forInModule.ts === module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(forInModule.ts, 0, 0)) for (var i = 0; i < 1; i++) { ->i : number +>i : number, Symbol(i, Decl(forInModule.ts, 1, 9)) +>0 : number >i < 1 : boolean ->i : number +>i : number, Symbol(i, Decl(forInModule.ts, 1, 9)) +>1 : number >i++ : number ->i : number +>i : number, Symbol(i, Decl(forInModule.ts, 1, 9)) i+i; >i+i : number ->i : number ->i : number +>i : number, Symbol(i, Decl(forInModule.ts, 1, 9)) +>i : number, Symbol(i, Decl(forInModule.ts, 1, 9)) } } diff --git a/tests/baselines/reference/forInStatement1.types b/tests/baselines/reference/forInStatement1.types index 8ccacc9e2f7..21d73be8aff 100644 --- a/tests/baselines/reference/forInStatement1.types +++ b/tests/baselines/reference/forInStatement1.types @@ -1,8 +1,8 @@ === tests/cases/compiler/forInStatement1.ts === var expr: any; ->expr : any +>expr : any, Symbol(expr, Decl(forInStatement1.ts, 0, 3)) for (var a in expr) { ->a : any ->expr : any +>a : any, Symbol(a, Decl(forInStatement1.ts, 1, 8)) +>expr : any, Symbol(expr, Decl(forInStatement1.ts, 0, 3)) } diff --git a/tests/baselines/reference/forInStatement3.types b/tests/baselines/reference/forInStatement3.types index 1d3803065bd..8f4bb89d0a3 100644 --- a/tests/baselines/reference/forInStatement3.types +++ b/tests/baselines/reference/forInStatement3.types @@ -1,14 +1,14 @@ === tests/cases/compiler/forInStatement3.ts === function F() { ->F : () => void ->T : T +>F : () => void, Symbol(F, Decl(forInStatement3.ts, 0, 0)) +>T : T, Symbol(T, Decl(forInStatement3.ts, 0, 11)) var expr: T; ->expr : T ->T : T +>expr : T, Symbol(expr, Decl(forInStatement3.ts, 1, 5)) +>T : T, Symbol(T, Decl(forInStatement3.ts, 0, 11)) for (var a in expr) { ->a : any ->expr : T +>a : any, Symbol(a, Decl(forInStatement3.ts, 2, 10)) +>expr : T, Symbol(expr, Decl(forInStatement3.ts, 1, 5)) } } diff --git a/tests/baselines/reference/forInStatement5.types b/tests/baselines/reference/forInStatement5.types index 97f894dc6bf..c838f052827 100644 --- a/tests/baselines/reference/forInStatement5.types +++ b/tests/baselines/reference/forInStatement5.types @@ -1,11 +1,11 @@ === tests/cases/compiler/forInStatement5.ts === var a: string; ->a : string +>a : string, Symbol(a, Decl(forInStatement5.ts, 0, 3)) var expr: any; ->expr : any +>expr : any, Symbol(expr, Decl(forInStatement5.ts, 1, 3)) for (a in expr) { ->a : string ->expr : any +>a : string, Symbol(a, Decl(forInStatement5.ts, 0, 3)) +>expr : any, Symbol(expr, Decl(forInStatement5.ts, 1, 3)) } diff --git a/tests/baselines/reference/forInStatement6.types b/tests/baselines/reference/forInStatement6.types index 0a882c62d8a..e83a75d0cc7 100644 --- a/tests/baselines/reference/forInStatement6.types +++ b/tests/baselines/reference/forInStatement6.types @@ -1,11 +1,11 @@ === tests/cases/compiler/forInStatement6.ts === var a: any; ->a : any +>a : any, Symbol(a, Decl(forInStatement6.ts, 0, 3)) var expr: any; ->expr : any +>expr : any, Symbol(expr, Decl(forInStatement6.ts, 1, 3)) for (a in expr) { ->a : any ->expr : any +>a : any, Symbol(a, Decl(forInStatement6.ts, 0, 3)) +>expr : any, Symbol(expr, Decl(forInStatement6.ts, 1, 3)) } diff --git a/tests/baselines/reference/forStatements.types b/tests/baselines/reference/forStatements.types index a5563a190ec..dc2e2478f15 100644 --- a/tests/baselines/reference/forStatements.types +++ b/tests/baselines/reference/forStatements.types @@ -1,155 +1,164 @@ === tests/cases/conformance/statements/forStatements/forStatements.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(forStatements.ts, 0, 0)) id: number; ->id : number +>id : number, Symbol(id, Decl(forStatements.ts, 0, 13)) } class C implements I { ->C : C ->I : I +>C : C, Symbol(C, Decl(forStatements.ts, 2, 1)) +>I : I, Symbol(I, Decl(forStatements.ts, 0, 0)) id: number; ->id : number +>id : number, Symbol(id, Decl(forStatements.ts, 4, 22)) } class D{ ->D : D ->T : T +>D : D, Symbol(D, Decl(forStatements.ts, 6, 1)) +>T : T, Symbol(T, Decl(forStatements.ts, 8, 8)) source: T; ->source : T ->T : T +>source : T, Symbol(source, Decl(forStatements.ts, 8, 11)) +>T : T, Symbol(T, Decl(forStatements.ts, 8, 8)) recurse: D; ->recurse : D ->D : D ->T : T +>recurse : D, Symbol(recurse, Decl(forStatements.ts, 9, 14)) +>D : D, Symbol(D, Decl(forStatements.ts, 6, 1)) +>T : T, Symbol(T, Decl(forStatements.ts, 8, 8)) wrapped: D> ->wrapped : D> ->D : D ->D : D ->T : T +>wrapped : D>, Symbol(wrapped, Decl(forStatements.ts, 10, 18)) +>D : D, Symbol(D, Decl(forStatements.ts, 6, 1)) +>D : D, Symbol(D, Decl(forStatements.ts, 6, 1)) +>T : T, Symbol(T, Decl(forStatements.ts, 8, 8)) } function F(x: string): number { return 42; } ->F : (x: string) => number ->x : string +>F : (x: string) => number, Symbol(F, Decl(forStatements.ts, 12, 1)) +>x : string, Symbol(x, Decl(forStatements.ts, 14, 11)) +>42 : number module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(forStatements.ts, 14, 44)) export class A { ->A : A +>A : A, Symbol(A, Decl(forStatements.ts, 16, 10)) name: string; ->name : string +>name : string, Symbol(name, Decl(forStatements.ts, 17, 20)) } export function F2(x: number): string { return x.toString(); } ->F2 : (x: number) => string ->x : number +>F2 : (x: number) => string, Symbol(F2, Decl(forStatements.ts, 19, 5)) +>x : number, Symbol(x, Decl(forStatements.ts, 21, 23)) >x.toString() : string ->x.toString : (radix?: number) => string ->x : number ->toString : (radix?: number) => string +>x.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>x : number, Symbol(x, Decl(forStatements.ts, 21, 23)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) } for(var aNumber: number = 9.9;;){} ->aNumber : number +>aNumber : number, Symbol(aNumber, Decl(forStatements.ts, 24, 7)) +>9.9 : number for(var aString: string = 'this is a string';;){} ->aString : string +>aString : string, Symbol(aString, Decl(forStatements.ts, 25, 7)) +>'this is a string' : string for(var aDate: Date = new Date(12);;){} ->aDate : Date ->Date : Date +>aDate : Date, Symbol(aDate, Decl(forStatements.ts, 26, 7)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) >new Date(12) : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>12 : number for(var anObject: Object = new Object();;){} ->anObject : Object ->Object : Object +>anObject : Object, Symbol(anObject, Decl(forStatements.ts, 27, 7)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) >new Object() : Object ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) for(var anAny: any = null;;){} ->anAny : any +>anAny : any, Symbol(anAny, Decl(forStatements.ts, 29, 7)) +>null : null for(var aSecondAny: any = undefined;;){} ->aSecondAny : any ->undefined : undefined +>aSecondAny : any, Symbol(aSecondAny, Decl(forStatements.ts, 30, 7)) +>undefined : undefined, Symbol(undefined) for(var aVoid: void = undefined;;){} ->aVoid : void ->undefined : undefined +>aVoid : void, Symbol(aVoid, Decl(forStatements.ts, 31, 7)) +>undefined : undefined, Symbol(undefined) for(var anInterface: I = new C();;){} ->anInterface : I ->I : I +>anInterface : I, Symbol(anInterface, Decl(forStatements.ts, 33, 7)) +>I : I, Symbol(I, Decl(forStatements.ts, 0, 0)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(forStatements.ts, 2, 1)) for(var aClass: C = new C();;){} ->aClass : C ->C : C +>aClass : C, Symbol(aClass, Decl(forStatements.ts, 34, 7)) +>C : C, Symbol(C, Decl(forStatements.ts, 2, 1)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(forStatements.ts, 2, 1)) for(var aGenericClass: D = new D();;){} ->aGenericClass : D ->D : D +>aGenericClass : D, Symbol(aGenericClass, Decl(forStatements.ts, 35, 7)) +>D : D, Symbol(D, Decl(forStatements.ts, 6, 1)) >new D() : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(forStatements.ts, 6, 1)) for(var anObjectLiteral: I = { id: 12 };;){} ->anObjectLiteral : I ->I : I +>anObjectLiteral : I, Symbol(anObjectLiteral, Decl(forStatements.ts, 36, 7)) +>I : I, Symbol(I, Decl(forStatements.ts, 0, 0)) >{ id: 12 } : { id: number; } ->id : number +>id : number, Symbol(id, Decl(forStatements.ts, 36, 30)) +>12 : number for(var anOtherObjectLiteral: { id: number } = new C();;){} ->anOtherObjectLiteral : { id: number; } ->id : number +>anOtherObjectLiteral : { id: number; }, Symbol(anOtherObjectLiteral, Decl(forStatements.ts, 37, 7)) +>id : number, Symbol(id, Decl(forStatements.ts, 37, 31)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(forStatements.ts, 2, 1)) for(var aFunction: typeof F = F;;){} ->aFunction : (x: string) => number ->F : (x: string) => number ->F : (x: string) => number +>aFunction : (x: string) => number, Symbol(aFunction, Decl(forStatements.ts, 39, 7)) +>F : (x: string) => number, Symbol(F, Decl(forStatements.ts, 12, 1)) +>F : (x: string) => number, Symbol(F, Decl(forStatements.ts, 12, 1)) for(var anOtherFunction: (x: string) => number = F;;){} ->anOtherFunction : (x: string) => number ->x : string ->F : (x: string) => number +>anOtherFunction : (x: string) => number, Symbol(anOtherFunction, Decl(forStatements.ts, 40, 7)) +>x : string, Symbol(x, Decl(forStatements.ts, 40, 26)) +>F : (x: string) => number, Symbol(F, Decl(forStatements.ts, 12, 1)) for(var aLambda: typeof F = (x) => 2;;){} ->aLambda : (x: string) => number ->F : (x: string) => number +>aLambda : (x: string) => number, Symbol(aLambda, Decl(forStatements.ts, 41, 7)) +>F : (x: string) => number, Symbol(F, Decl(forStatements.ts, 12, 1)) >(x) => 2 : (x: string) => number ->x : string +>x : string, Symbol(x, Decl(forStatements.ts, 41, 29)) +>2 : number for(var aModule: typeof M = M;;){} ->aModule : typeof M ->M : typeof M ->M : typeof M +>aModule : typeof M, Symbol(aModule, Decl(forStatements.ts, 43, 7)) +>M : typeof M, Symbol(M, Decl(forStatements.ts, 14, 44)) +>M : typeof M, Symbol(M, Decl(forStatements.ts, 14, 44)) for(var aClassInModule: M.A = new M.A();;){} ->aClassInModule : M.A ->M : unknown ->A : M.A +>aClassInModule : M.A, Symbol(aClassInModule, Decl(forStatements.ts, 44, 7)) +>M : any, Symbol(M, Decl(forStatements.ts, 14, 44)) +>A : M.A, Symbol(M.A, Decl(forStatements.ts, 16, 10)) >new M.A() : M.A ->M.A : typeof M.A ->M : typeof M ->A : typeof M.A +>M.A : typeof M.A, Symbol(M.A, Decl(forStatements.ts, 16, 10)) +>M : typeof M, Symbol(M, Decl(forStatements.ts, 14, 44)) +>A : typeof M.A, Symbol(M.A, Decl(forStatements.ts, 16, 10)) for(var aFunctionInModule: typeof M.F2 = (x) => 'this is a string';;){} ->aFunctionInModule : (x: number) => string ->M : typeof M ->F2 : (x: number) => string +>aFunctionInModule : (x: number) => string, Symbol(aFunctionInModule, Decl(forStatements.ts, 45, 7)) +>M.F2 : (x: number) => string, Symbol(M.F2, Decl(forStatements.ts, 19, 5)) +>M : typeof M, Symbol(M, Decl(forStatements.ts, 14, 44)) +>F2 : (x: number) => string, Symbol(M.F2, Decl(forStatements.ts, 19, 5)) >(x) => 'this is a string' : (x: number) => string ->x : number +>x : number, Symbol(x, Decl(forStatements.ts, 45, 42)) +>'this is a string' : string diff --git a/tests/baselines/reference/forStatementsMultipleValidDecl.types b/tests/baselines/reference/forStatementsMultipleValidDecl.types index 988a1c8a6d3..7379b77fd2f 100644 --- a/tests/baselines/reference/forStatementsMultipleValidDecl.types +++ b/tests/baselines/reference/forStatementsMultipleValidDecl.types @@ -2,125 +2,139 @@ // all expected to be valid for (var x: number; ;) { } ->x : number +>x : number, Symbol(x, Decl(forStatementsMultipleValidDecl.ts, 2, 8), Decl(forStatementsMultipleValidDecl.ts, 3, 8), Decl(forStatementsMultipleValidDecl.ts, 5, 8)) for (var x = 2; ;) { } ->x : number +>x : number, Symbol(x, Decl(forStatementsMultipleValidDecl.ts, 2, 8), Decl(forStatementsMultipleValidDecl.ts, 3, 8), Decl(forStatementsMultipleValidDecl.ts, 5, 8)) +>2 : number for (var x = undefined; ;) { } ->x : number +>x : number, Symbol(x, Decl(forStatementsMultipleValidDecl.ts, 2, 8), Decl(forStatementsMultipleValidDecl.ts, 3, 8), Decl(forStatementsMultipleValidDecl.ts, 5, 8)) >undefined : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) // new declaration space, making redeclaring x as a string valid function declSpace() { ->declSpace : () => void +>declSpace : () => void, Symbol(declSpace, Decl(forStatementsMultipleValidDecl.ts, 5, 38)) for (var x = 'this is a string'; ;) { } ->x : string +>x : string, Symbol(x, Decl(forStatementsMultipleValidDecl.ts, 8, 12)) +>'this is a string' : string } interface Point { x: number; y: number; } ->Point : Point ->x : number ->y : number +>Point : Point, Symbol(Point, Decl(forStatementsMultipleValidDecl.ts, 9, 1)) +>x : number, Symbol(x, Decl(forStatementsMultipleValidDecl.ts, 10, 17)) +>y : number, Symbol(y, Decl(forStatementsMultipleValidDecl.ts, 10, 28)) for (var p: Point; ;) { } ->p : Point ->Point : Point +>p : Point, Symbol(p, Decl(forStatementsMultipleValidDecl.ts, 12, 8), Decl(forStatementsMultipleValidDecl.ts, 13, 8), Decl(forStatementsMultipleValidDecl.ts, 14, 8), Decl(forStatementsMultipleValidDecl.ts, 15, 8), Decl(forStatementsMultipleValidDecl.ts, 16, 8), Decl(forStatementsMultipleValidDecl.ts, 17, 8), Decl(forStatementsMultipleValidDecl.ts, 18, 8)) +>Point : Point, Symbol(Point, Decl(forStatementsMultipleValidDecl.ts, 9, 1)) for (var p = { x: 1, y: 2 }; ;) { } ->p : Point +>p : Point, Symbol(p, Decl(forStatementsMultipleValidDecl.ts, 12, 8), Decl(forStatementsMultipleValidDecl.ts, 13, 8), Decl(forStatementsMultipleValidDecl.ts, 14, 8), Decl(forStatementsMultipleValidDecl.ts, 15, 8), Decl(forStatementsMultipleValidDecl.ts, 16, 8), Decl(forStatementsMultipleValidDecl.ts, 17, 8), Decl(forStatementsMultipleValidDecl.ts, 18, 8)) >{ x: 1, y: 2 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(forStatementsMultipleValidDecl.ts, 13, 14)) +>1 : number +>y : number, Symbol(y, Decl(forStatementsMultipleValidDecl.ts, 13, 20)) +>2 : number for (var p: Point = { x: 0, y: undefined }; ;) { } ->p : Point ->Point : Point +>p : Point, Symbol(p, Decl(forStatementsMultipleValidDecl.ts, 12, 8), Decl(forStatementsMultipleValidDecl.ts, 13, 8), Decl(forStatementsMultipleValidDecl.ts, 14, 8), Decl(forStatementsMultipleValidDecl.ts, 15, 8), Decl(forStatementsMultipleValidDecl.ts, 16, 8), Decl(forStatementsMultipleValidDecl.ts, 17, 8), Decl(forStatementsMultipleValidDecl.ts, 18, 8)) +>Point : Point, Symbol(Point, Decl(forStatementsMultipleValidDecl.ts, 9, 1)) >{ x: 0, y: undefined } : { x: number; y: undefined; } ->x : number ->y : undefined ->undefined : undefined +>x : number, Symbol(x, Decl(forStatementsMultipleValidDecl.ts, 14, 21)) +>0 : number +>y : undefined, Symbol(y, Decl(forStatementsMultipleValidDecl.ts, 14, 27)) +>undefined : undefined, Symbol(undefined) for (var p = { x: 1, y: undefined }; ;) { } ->p : Point +>p : Point, Symbol(p, Decl(forStatementsMultipleValidDecl.ts, 12, 8), Decl(forStatementsMultipleValidDecl.ts, 13, 8), Decl(forStatementsMultipleValidDecl.ts, 14, 8), Decl(forStatementsMultipleValidDecl.ts, 15, 8), Decl(forStatementsMultipleValidDecl.ts, 16, 8), Decl(forStatementsMultipleValidDecl.ts, 17, 8), Decl(forStatementsMultipleValidDecl.ts, 18, 8)) >{ x: 1, y: undefined } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(forStatementsMultipleValidDecl.ts, 15, 14)) +>1 : number +>y : number, Symbol(y, Decl(forStatementsMultipleValidDecl.ts, 15, 20)) >undefined : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) for (var p: { x: number; y: number; } = { x: 1, y: 2 }; ;) { } ->p : Point ->x : number ->y : number +>p : Point, Symbol(p, Decl(forStatementsMultipleValidDecl.ts, 12, 8), Decl(forStatementsMultipleValidDecl.ts, 13, 8), Decl(forStatementsMultipleValidDecl.ts, 14, 8), Decl(forStatementsMultipleValidDecl.ts, 15, 8), Decl(forStatementsMultipleValidDecl.ts, 16, 8), Decl(forStatementsMultipleValidDecl.ts, 17, 8), Decl(forStatementsMultipleValidDecl.ts, 18, 8)) +>x : number, Symbol(x, Decl(forStatementsMultipleValidDecl.ts, 16, 13)) +>y : number, Symbol(y, Decl(forStatementsMultipleValidDecl.ts, 16, 24)) >{ x: 1, y: 2 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(forStatementsMultipleValidDecl.ts, 16, 41)) +>1 : number +>y : number, Symbol(y, Decl(forStatementsMultipleValidDecl.ts, 16, 47)) +>2 : number for (var p = <{ x: number; y: number; }>{ x: 0, y: undefined }; ;) { } ->p : Point +>p : Point, Symbol(p, Decl(forStatementsMultipleValidDecl.ts, 12, 8), Decl(forStatementsMultipleValidDecl.ts, 13, 8), Decl(forStatementsMultipleValidDecl.ts, 14, 8), Decl(forStatementsMultipleValidDecl.ts, 15, 8), Decl(forStatementsMultipleValidDecl.ts, 16, 8), Decl(forStatementsMultipleValidDecl.ts, 17, 8), Decl(forStatementsMultipleValidDecl.ts, 18, 8)) ><{ x: number; y: number; }>{ x: 0, y: undefined } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(forStatementsMultipleValidDecl.ts, 17, 15)) +>y : number, Symbol(y, Decl(forStatementsMultipleValidDecl.ts, 17, 26)) >{ x: 0, y: undefined } : { x: number; y: undefined; } ->x : number ->y : undefined ->undefined : undefined +>x : number, Symbol(x, Decl(forStatementsMultipleValidDecl.ts, 17, 41)) +>0 : number +>y : undefined, Symbol(y, Decl(forStatementsMultipleValidDecl.ts, 17, 47)) +>undefined : undefined, Symbol(undefined) for (var p: typeof p; ;) { } ->p : Point ->p : Point +>p : Point, Symbol(p, Decl(forStatementsMultipleValidDecl.ts, 12, 8), Decl(forStatementsMultipleValidDecl.ts, 13, 8), Decl(forStatementsMultipleValidDecl.ts, 14, 8), Decl(forStatementsMultipleValidDecl.ts, 15, 8), Decl(forStatementsMultipleValidDecl.ts, 16, 8), Decl(forStatementsMultipleValidDecl.ts, 17, 8), Decl(forStatementsMultipleValidDecl.ts, 18, 8)) +>p : Point, Symbol(p, Decl(forStatementsMultipleValidDecl.ts, 12, 8), Decl(forStatementsMultipleValidDecl.ts, 13, 8), Decl(forStatementsMultipleValidDecl.ts, 14, 8), Decl(forStatementsMultipleValidDecl.ts, 15, 8), Decl(forStatementsMultipleValidDecl.ts, 16, 8), Decl(forStatementsMultipleValidDecl.ts, 17, 8), Decl(forStatementsMultipleValidDecl.ts, 18, 8)) for (var fn = function (s: string) { return 42; }; ;) { } ->fn : (s: string) => number +>fn : (s: string) => number, Symbol(fn, Decl(forStatementsMultipleValidDecl.ts, 20, 8), Decl(forStatementsMultipleValidDecl.ts, 21, 8), Decl(forStatementsMultipleValidDecl.ts, 22, 8), Decl(forStatementsMultipleValidDecl.ts, 23, 8), Decl(forStatementsMultipleValidDecl.ts, 24, 8), Decl(forStatementsMultipleValidDecl.ts, 25, 8)) >function (s: string) { return 42; } : (s: string) => number ->s : string +>s : string, Symbol(s, Decl(forStatementsMultipleValidDecl.ts, 20, 24)) +>42 : number for (var fn = (s: string) => 3; ;) { } ->fn : (s: string) => number +>fn : (s: string) => number, Symbol(fn, Decl(forStatementsMultipleValidDecl.ts, 20, 8), Decl(forStatementsMultipleValidDecl.ts, 21, 8), Decl(forStatementsMultipleValidDecl.ts, 22, 8), Decl(forStatementsMultipleValidDecl.ts, 23, 8), Decl(forStatementsMultipleValidDecl.ts, 24, 8), Decl(forStatementsMultipleValidDecl.ts, 25, 8)) >(s: string) => 3 : (s: string) => number ->s : string +>s : string, Symbol(s, Decl(forStatementsMultipleValidDecl.ts, 21, 15)) +>3 : number for (var fn: (s: string) => number; ;) { } ->fn : (s: string) => number ->s : string +>fn : (s: string) => number, Symbol(fn, Decl(forStatementsMultipleValidDecl.ts, 20, 8), Decl(forStatementsMultipleValidDecl.ts, 21, 8), Decl(forStatementsMultipleValidDecl.ts, 22, 8), Decl(forStatementsMultipleValidDecl.ts, 23, 8), Decl(forStatementsMultipleValidDecl.ts, 24, 8), Decl(forStatementsMultipleValidDecl.ts, 25, 8)) +>s : string, Symbol(s, Decl(forStatementsMultipleValidDecl.ts, 22, 14)) for (var fn: { (s: string): number }; ;) { } ->fn : (s: string) => number ->s : string +>fn : (s: string) => number, Symbol(fn, Decl(forStatementsMultipleValidDecl.ts, 20, 8), Decl(forStatementsMultipleValidDecl.ts, 21, 8), Decl(forStatementsMultipleValidDecl.ts, 22, 8), Decl(forStatementsMultipleValidDecl.ts, 23, 8), Decl(forStatementsMultipleValidDecl.ts, 24, 8), Decl(forStatementsMultipleValidDecl.ts, 25, 8)) +>s : string, Symbol(s, Decl(forStatementsMultipleValidDecl.ts, 23, 16)) for (var fn = <(s: string) => number> null; ;) { } ->fn : (s: string) => number +>fn : (s: string) => number, Symbol(fn, Decl(forStatementsMultipleValidDecl.ts, 20, 8), Decl(forStatementsMultipleValidDecl.ts, 21, 8), Decl(forStatementsMultipleValidDecl.ts, 22, 8), Decl(forStatementsMultipleValidDecl.ts, 23, 8), Decl(forStatementsMultipleValidDecl.ts, 24, 8), Decl(forStatementsMultipleValidDecl.ts, 25, 8)) ><(s: string) => number> null : (s: string) => number ->s : string +>s : string, Symbol(s, Decl(forStatementsMultipleValidDecl.ts, 24, 16)) +>null : null for (var fn: typeof fn; ;) { } ->fn : (s: string) => number ->fn : (s: string) => number +>fn : (s: string) => number, Symbol(fn, Decl(forStatementsMultipleValidDecl.ts, 20, 8), Decl(forStatementsMultipleValidDecl.ts, 21, 8), Decl(forStatementsMultipleValidDecl.ts, 22, 8), Decl(forStatementsMultipleValidDecl.ts, 23, 8), Decl(forStatementsMultipleValidDecl.ts, 24, 8), Decl(forStatementsMultipleValidDecl.ts, 25, 8)) +>fn : (s: string) => number, Symbol(fn, Decl(forStatementsMultipleValidDecl.ts, 20, 8), Decl(forStatementsMultipleValidDecl.ts, 21, 8), Decl(forStatementsMultipleValidDecl.ts, 22, 8), Decl(forStatementsMultipleValidDecl.ts, 23, 8), Decl(forStatementsMultipleValidDecl.ts, 24, 8), Decl(forStatementsMultipleValidDecl.ts, 25, 8)) for (var a: string[]; ;) { } ->a : string[] +>a : string[], Symbol(a, Decl(forStatementsMultipleValidDecl.ts, 27, 8), Decl(forStatementsMultipleValidDecl.ts, 28, 8), Decl(forStatementsMultipleValidDecl.ts, 29, 8), Decl(forStatementsMultipleValidDecl.ts, 30, 8), Decl(forStatementsMultipleValidDecl.ts, 31, 8), Decl(forStatementsMultipleValidDecl.ts, 32, 8)) for (var a = ['a', 'b']; ;) { } ->a : string[] +>a : string[], Symbol(a, Decl(forStatementsMultipleValidDecl.ts, 27, 8), Decl(forStatementsMultipleValidDecl.ts, 28, 8), Decl(forStatementsMultipleValidDecl.ts, 29, 8), Decl(forStatementsMultipleValidDecl.ts, 30, 8), Decl(forStatementsMultipleValidDecl.ts, 31, 8), Decl(forStatementsMultipleValidDecl.ts, 32, 8)) >['a', 'b'] : string[] +>'a' : string +>'b' : string for (var a = []; ;) { } ->a : string[] +>a : string[], Symbol(a, Decl(forStatementsMultipleValidDecl.ts, 27, 8), Decl(forStatementsMultipleValidDecl.ts, 28, 8), Decl(forStatementsMultipleValidDecl.ts, 29, 8), Decl(forStatementsMultipleValidDecl.ts, 30, 8), Decl(forStatementsMultipleValidDecl.ts, 31, 8), Decl(forStatementsMultipleValidDecl.ts, 32, 8)) >[] : string[] >[] : undefined[] for (var a: string[] = []; ;) { } ->a : string[] +>a : string[], Symbol(a, Decl(forStatementsMultipleValidDecl.ts, 27, 8), Decl(forStatementsMultipleValidDecl.ts, 28, 8), Decl(forStatementsMultipleValidDecl.ts, 29, 8), Decl(forStatementsMultipleValidDecl.ts, 30, 8), Decl(forStatementsMultipleValidDecl.ts, 31, 8), Decl(forStatementsMultipleValidDecl.ts, 32, 8)) >[] : undefined[] for (var a = new Array(); ;) { } ->a : string[] +>a : string[], Symbol(a, Decl(forStatementsMultipleValidDecl.ts, 27, 8), Decl(forStatementsMultipleValidDecl.ts, 28, 8), Decl(forStatementsMultipleValidDecl.ts, 29, 8), Decl(forStatementsMultipleValidDecl.ts, 30, 8), Decl(forStatementsMultipleValidDecl.ts, 31, 8), Decl(forStatementsMultipleValidDecl.ts, 32, 8)) >new Array() : string[] ->Array : ArrayConstructor +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) for (var a: typeof a; ;) { } ->a : string[] ->a : string[] +>a : string[], Symbol(a, Decl(forStatementsMultipleValidDecl.ts, 27, 8), Decl(forStatementsMultipleValidDecl.ts, 28, 8), Decl(forStatementsMultipleValidDecl.ts, 29, 8), Decl(forStatementsMultipleValidDecl.ts, 30, 8), Decl(forStatementsMultipleValidDecl.ts, 31, 8), Decl(forStatementsMultipleValidDecl.ts, 32, 8)) +>a : string[], Symbol(a, Decl(forStatementsMultipleValidDecl.ts, 27, 8), Decl(forStatementsMultipleValidDecl.ts, 28, 8), Decl(forStatementsMultipleValidDecl.ts, 29, 8), Decl(forStatementsMultipleValidDecl.ts, 30, 8), Decl(forStatementsMultipleValidDecl.ts, 31, 8), Decl(forStatementsMultipleValidDecl.ts, 32, 8)) diff --git a/tests/baselines/reference/fromAsIdentifier1.types b/tests/baselines/reference/fromAsIdentifier1.types index 988a80f3337..4158e3b2e77 100644 --- a/tests/baselines/reference/fromAsIdentifier1.types +++ b/tests/baselines/reference/fromAsIdentifier1.types @@ -1,4 +1,4 @@ === tests/cases/compiler/fromAsIdentifier1.ts === var from; ->from : any +>from : any, Symbol(from, Decl(fromAsIdentifier1.ts, 0, 3)) diff --git a/tests/baselines/reference/fromAsIdentifier2.types b/tests/baselines/reference/fromAsIdentifier2.types index 5faf9ec6f6c..336098594a5 100644 --- a/tests/baselines/reference/fromAsIdentifier2.types +++ b/tests/baselines/reference/fromAsIdentifier2.types @@ -1,5 +1,7 @@ === tests/cases/compiler/fromAsIdentifier2.ts === "use strict"; -var from; ->from : any +>"use strict" : string + +var from; +>from : any, Symbol(from, Decl(fromAsIdentifier2.ts, 1, 3)) diff --git a/tests/baselines/reference/funcdecl.types b/tests/baselines/reference/funcdecl.types index bbfd14bd220..2ea6a540987 100644 --- a/tests/baselines/reference/funcdecl.types +++ b/tests/baselines/reference/funcdecl.types @@ -1,161 +1,168 @@ === tests/cases/compiler/funcdecl.ts === function simpleFunc() { ->simpleFunc : () => string +>simpleFunc : () => string, Symbol(simpleFunc, Decl(funcdecl.ts, 0, 0)) return "this is my simple func"; +>"this is my simple func" : string } var simpleFuncVar = simpleFunc; ->simpleFuncVar : () => string ->simpleFunc : () => string +>simpleFuncVar : () => string, Symbol(simpleFuncVar, Decl(funcdecl.ts, 3, 3)) +>simpleFunc : () => string, Symbol(simpleFunc, Decl(funcdecl.ts, 0, 0)) function anotherFuncNoReturn() { ->anotherFuncNoReturn : () => void +>anotherFuncNoReturn : () => void, Symbol(anotherFuncNoReturn, Decl(funcdecl.ts, 3, 31)) } var anotherFuncNoReturnVar = anotherFuncNoReturn; ->anotherFuncNoReturnVar : () => void ->anotherFuncNoReturn : () => void +>anotherFuncNoReturnVar : () => void, Symbol(anotherFuncNoReturnVar, Decl(funcdecl.ts, 7, 3)) +>anotherFuncNoReturn : () => void, Symbol(anotherFuncNoReturn, Decl(funcdecl.ts, 3, 31)) function withReturn() : string{ ->withReturn : () => string +>withReturn : () => string, Symbol(withReturn, Decl(funcdecl.ts, 7, 49)) return "Hello"; +>"Hello" : string } var withReturnVar = withReturn; ->withReturnVar : () => string ->withReturn : () => string +>withReturnVar : () => string, Symbol(withReturnVar, Decl(funcdecl.ts, 12, 3)) +>withReturn : () => string, Symbol(withReturn, Decl(funcdecl.ts, 7, 49)) function withParams(a : string) : string{ ->withParams : (a: string) => string ->a : string +>withParams : (a: string) => string, Symbol(withParams, Decl(funcdecl.ts, 12, 31)) +>a : string, Symbol(a, Decl(funcdecl.ts, 14, 20)) return a; ->a : string +>a : string, Symbol(a, Decl(funcdecl.ts, 14, 20)) } var withparamsVar = withParams; ->withparamsVar : (a: string) => string ->withParams : (a: string) => string +>withparamsVar : (a: string) => string, Symbol(withparamsVar, Decl(funcdecl.ts, 17, 3)) +>withParams : (a: string) => string, Symbol(withParams, Decl(funcdecl.ts, 12, 31)) function withMultiParams(a : number, b, c: Object) { ->withMultiParams : (a: number, b: any, c: Object) => number ->a : number ->b : any ->c : Object ->Object : Object +>withMultiParams : (a: number, b: any, c: Object) => number, Symbol(withMultiParams, Decl(funcdecl.ts, 17, 31)) +>a : number, Symbol(a, Decl(funcdecl.ts, 19, 25)) +>b : any, Symbol(b, Decl(funcdecl.ts, 19, 36)) +>c : Object, Symbol(c, Decl(funcdecl.ts, 19, 39)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) return a; ->a : number +>a : number, Symbol(a, Decl(funcdecl.ts, 19, 25)) } var withMultiParamsVar = withMultiParams; ->withMultiParamsVar : (a: number, b: any, c: Object) => number ->withMultiParams : (a: number, b: any, c: Object) => number +>withMultiParamsVar : (a: number, b: any, c: Object) => number, Symbol(withMultiParamsVar, Decl(funcdecl.ts, 22, 3)) +>withMultiParams : (a: number, b: any, c: Object) => number, Symbol(withMultiParams, Decl(funcdecl.ts, 17, 31)) function withOptionalParams(a?: string) { ->withOptionalParams : (a?: string) => void ->a : string +>withOptionalParams : (a?: string) => void, Symbol(withOptionalParams, Decl(funcdecl.ts, 22, 41)) +>a : string, Symbol(a, Decl(funcdecl.ts, 24, 28)) } var withOptionalParamsVar = withOptionalParams; ->withOptionalParamsVar : (a?: string) => void ->withOptionalParams : (a?: string) => void +>withOptionalParamsVar : (a?: string) => void, Symbol(withOptionalParamsVar, Decl(funcdecl.ts, 26, 3)) +>withOptionalParams : (a?: string) => void, Symbol(withOptionalParams, Decl(funcdecl.ts, 22, 41)) function withInitializedParams(a: string, b0, b = 30, c = "string value") { ->withInitializedParams : (a: string, b0: any, b?: number, c?: string) => void ->a : string ->b0 : any ->b : number ->c : string +>withInitializedParams : (a: string, b0: any, b?: number, c?: string) => void, Symbol(withInitializedParams, Decl(funcdecl.ts, 26, 47)) +>a : string, Symbol(a, Decl(funcdecl.ts, 28, 31)) +>b0 : any, Symbol(b0, Decl(funcdecl.ts, 28, 41)) +>b : number, Symbol(b, Decl(funcdecl.ts, 28, 45)) +>30 : number +>c : string, Symbol(c, Decl(funcdecl.ts, 28, 53)) +>"string value" : string } var withInitializedParamsVar = withInitializedParams; ->withInitializedParamsVar : (a: string, b0: any, b?: number, c?: string) => void ->withInitializedParams : (a: string, b0: any, b?: number, c?: string) => void +>withInitializedParamsVar : (a: string, b0: any, b?: number, c?: string) => void, Symbol(withInitializedParamsVar, Decl(funcdecl.ts, 30, 3)) +>withInitializedParams : (a: string, b0: any, b?: number, c?: string) => void, Symbol(withInitializedParams, Decl(funcdecl.ts, 26, 47)) function withOptionalInitializedParams(a: string, c: string = "hello string") { ->withOptionalInitializedParams : (a: string, c?: string) => void ->a : string ->c : string +>withOptionalInitializedParams : (a: string, c?: string) => void, Symbol(withOptionalInitializedParams, Decl(funcdecl.ts, 30, 53)) +>a : string, Symbol(a, Decl(funcdecl.ts, 32, 39)) +>c : string, Symbol(c, Decl(funcdecl.ts, 32, 49)) +>"hello string" : string } var withOptionalInitializedParamsVar = withOptionalInitializedParams; ->withOptionalInitializedParamsVar : (a: string, c?: string) => void ->withOptionalInitializedParams : (a: string, c?: string) => void +>withOptionalInitializedParamsVar : (a: string, c?: string) => void, Symbol(withOptionalInitializedParamsVar, Decl(funcdecl.ts, 34, 3)) +>withOptionalInitializedParams : (a: string, c?: string) => void, Symbol(withOptionalInitializedParams, Decl(funcdecl.ts, 30, 53)) function withRestParams(a: string, ... myRestParameter : number[]) { ->withRestParams : (a: string, ...myRestParameter: number[]) => number[] ->a : string ->myRestParameter : number[] +>withRestParams : (a: string, ...myRestParameter: number[]) => number[], Symbol(withRestParams, Decl(funcdecl.ts, 34, 69)) +>a : string, Symbol(a, Decl(funcdecl.ts, 36, 24)) +>myRestParameter : number[], Symbol(myRestParameter, Decl(funcdecl.ts, 36, 34)) return myRestParameter; ->myRestParameter : number[] +>myRestParameter : number[], Symbol(myRestParameter, Decl(funcdecl.ts, 36, 34)) } var withRestParamsVar = withRestParams; ->withRestParamsVar : (a: string, ...myRestParameter: number[]) => number[] ->withRestParams : (a: string, ...myRestParameter: number[]) => number[] +>withRestParamsVar : (a: string, ...myRestParameter: number[]) => number[], Symbol(withRestParamsVar, Decl(funcdecl.ts, 39, 3)) +>withRestParams : (a: string, ...myRestParameter: number[]) => number[], Symbol(withRestParams, Decl(funcdecl.ts, 34, 69)) function overload1(n: number) : string; ->overload1 : { (n: number): string; (s: string): string; } ->n : number +>overload1 : { (n: number): string; (s: string): string; }, Symbol(overload1, Decl(funcdecl.ts, 39, 39), Decl(funcdecl.ts, 41, 39), Decl(funcdecl.ts, 42, 39)) +>n : number, Symbol(n, Decl(funcdecl.ts, 41, 19)) function overload1(s: string) : string; ->overload1 : { (n: number): string; (s: string): string; } ->s : string +>overload1 : { (n: number): string; (s: string): string; }, Symbol(overload1, Decl(funcdecl.ts, 39, 39), Decl(funcdecl.ts, 41, 39), Decl(funcdecl.ts, 42, 39)) +>s : string, Symbol(s, Decl(funcdecl.ts, 42, 19)) function overload1(ns: any) { ->overload1 : { (n: number): string; (s: string): string; } ->ns : any +>overload1 : { (n: number): string; (s: string): string; }, Symbol(overload1, Decl(funcdecl.ts, 39, 39), Decl(funcdecl.ts, 41, 39), Decl(funcdecl.ts, 42, 39)) +>ns : any, Symbol(ns, Decl(funcdecl.ts, 43, 19)) return ns.toString(); >ns.toString() : any >ns.toString : any ->ns : any +>ns : any, Symbol(ns, Decl(funcdecl.ts, 43, 19)) >toString : any } var withOverloadSignature = overload1; ->withOverloadSignature : { (n: number): string; (s: string): string; } ->overload1 : { (n: number): string; (s: string): string; } +>withOverloadSignature : { (n: number): string; (s: string): string; }, Symbol(withOverloadSignature, Decl(funcdecl.ts, 46, 3)) +>overload1 : { (n: number): string; (s: string): string; }, Symbol(overload1, Decl(funcdecl.ts, 39, 39), Decl(funcdecl.ts, 41, 39), Decl(funcdecl.ts, 42, 39)) function f(n: () => void) { } ->f : (n: () => void) => void ->n : () => void +>f : (n: () => void) => void, Symbol(f, Decl(funcdecl.ts, 46, 38)) +>n : () => void, Symbol(n, Decl(funcdecl.ts, 48, 11)) module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(funcdecl.ts, 48, 29)) export function foo(n: () => void ) { ->foo : (n: () => void) => void ->n : () => void +>foo : (n: () => void) => void, Symbol(foo, Decl(funcdecl.ts, 50, 11)) +>n : () => void, Symbol(n, Decl(funcdecl.ts, 51, 24)) } } m2.foo(() => { >m2.foo(() => { var b = 30; return b;}) : void ->m2.foo : (n: () => void) => void ->m2 : typeof m2 ->foo : (n: () => void) => void +>m2.foo : (n: () => void) => void, Symbol(m2.foo, Decl(funcdecl.ts, 50, 11)) +>m2 : typeof m2, Symbol(m2, Decl(funcdecl.ts, 48, 29)) +>foo : (n: () => void) => void, Symbol(m2.foo, Decl(funcdecl.ts, 50, 11)) >() => { var b = 30; return b;} : () => number var b = 30; ->b : number +>b : number, Symbol(b, Decl(funcdecl.ts, 58, 7)) +>30 : number return b; ->b : number +>b : number, Symbol(b, Decl(funcdecl.ts, 58, 7)) }); declare function fooAmbient(n: number): string; ->fooAmbient : (n: number) => string ->n : number +>fooAmbient : (n: number) => string, Symbol(fooAmbient, Decl(funcdecl.ts, 60, 3)) +>n : number, Symbol(n, Decl(funcdecl.ts, 63, 28)) declare function overloadAmbient(n: number): string; ->overloadAmbient : { (n: number): string; (s: string): string; } ->n : number +>overloadAmbient : { (n: number): string; (s: string): string; }, Symbol(overloadAmbient, Decl(funcdecl.ts, 63, 47), Decl(funcdecl.ts, 65, 52)) +>n : number, Symbol(n, Decl(funcdecl.ts, 65, 33)) declare function overloadAmbient(s: string): string; ->overloadAmbient : { (n: number): string; (s: string): string; } ->s : string +>overloadAmbient : { (n: number): string; (s: string): string; }, Symbol(overloadAmbient, Decl(funcdecl.ts, 63, 47), Decl(funcdecl.ts, 65, 52)) +>s : string, Symbol(s, Decl(funcdecl.ts, 66, 33)) var f2 = () => { ->f2 : () => string +>f2 : () => string, Symbol(f2, Decl(funcdecl.ts, 68, 3)) >() => { return "string";} : () => string return "string"; +>"string" : string } diff --git a/tests/baselines/reference/funcdecl.types.pull b/tests/baselines/reference/funcdecl.types.pull new file mode 100644 index 00000000000..c7205e84e4a --- /dev/null +++ b/tests/baselines/reference/funcdecl.types.pull @@ -0,0 +1,168 @@ +=== tests/cases/compiler/funcdecl.ts === +function simpleFunc() { +>simpleFunc : () => string, Symbol(simpleFunc, Decl(funcdecl.ts, 0, 0)) + + return "this is my simple func"; +>"this is my simple func" : string +} +var simpleFuncVar = simpleFunc; +>simpleFuncVar : () => string, Symbol(simpleFuncVar, Decl(funcdecl.ts, 3, 3)) +>simpleFunc : () => string, Symbol(simpleFunc, Decl(funcdecl.ts, 0, 0)) + +function anotherFuncNoReturn() { +>anotherFuncNoReturn : () => void, Symbol(anotherFuncNoReturn, Decl(funcdecl.ts, 3, 31)) +} +var anotherFuncNoReturnVar = anotherFuncNoReturn; +>anotherFuncNoReturnVar : () => void, Symbol(anotherFuncNoReturnVar, Decl(funcdecl.ts, 7, 3)) +>anotherFuncNoReturn : () => void, Symbol(anotherFuncNoReturn, Decl(funcdecl.ts, 3, 31)) + +function withReturn() : string{ +>withReturn : () => string, Symbol(withReturn, Decl(funcdecl.ts, 7, 49)) + + return "Hello"; +>"Hello" : string +} +var withReturnVar = withReturn; +>withReturnVar : () => string, Symbol(withReturnVar, Decl(funcdecl.ts, 12, 3)) +>withReturn : () => string, Symbol(withReturn, Decl(funcdecl.ts, 7, 49)) + +function withParams(a : string) : string{ +>withParams : (a: string) => string, Symbol(withParams, Decl(funcdecl.ts, 12, 31)) +>a : string, Symbol(a, Decl(funcdecl.ts, 14, 20)) + + return a; +>a : string, Symbol(a, Decl(funcdecl.ts, 14, 20)) +} +var withparamsVar = withParams; +>withparamsVar : (a: string) => string, Symbol(withparamsVar, Decl(funcdecl.ts, 17, 3)) +>withParams : (a: string) => string, Symbol(withParams, Decl(funcdecl.ts, 12, 31)) + +function withMultiParams(a : number, b, c: Object) { +>withMultiParams : (a: number, b: any, c: Object) => number, Symbol(withMultiParams, Decl(funcdecl.ts, 17, 31)) +>a : number, Symbol(a, Decl(funcdecl.ts, 19, 25)) +>b : any, Symbol(b, Decl(funcdecl.ts, 19, 36)) +>c : Object, Symbol(c, Decl(funcdecl.ts, 19, 39)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) + + return a; +>a : number, Symbol(a, Decl(funcdecl.ts, 19, 25)) +} +var withMultiParamsVar = withMultiParams; +>withMultiParamsVar : (a: number, b: any, c: Object) => number, Symbol(withMultiParamsVar, Decl(funcdecl.ts, 22, 3)) +>withMultiParams : (a: number, b: any, c: Object) => number, Symbol(withMultiParams, Decl(funcdecl.ts, 17, 31)) + +function withOptionalParams(a?: string) { +>withOptionalParams : (a?: string) => void, Symbol(withOptionalParams, Decl(funcdecl.ts, 22, 41)) +>a : string, Symbol(a, Decl(funcdecl.ts, 24, 28)) +} +var withOptionalParamsVar = withOptionalParams; +>withOptionalParamsVar : (a?: string) => void, Symbol(withOptionalParamsVar, Decl(funcdecl.ts, 26, 3)) +>withOptionalParams : (a?: string) => void, Symbol(withOptionalParams, Decl(funcdecl.ts, 22, 41)) + +function withInitializedParams(a: string, b0, b = 30, c = "string value") { +>withInitializedParams : (a: string, b0: any, b?: number, c?: string) => void, Symbol(withInitializedParams, Decl(funcdecl.ts, 26, 47)) +>a : string, Symbol(a, Decl(funcdecl.ts, 28, 31)) +>b0 : any, Symbol(b0, Decl(funcdecl.ts, 28, 41)) +>b : number, Symbol(b, Decl(funcdecl.ts, 28, 45)) +>30 : number +>c : string, Symbol(c, Decl(funcdecl.ts, 28, 53)) +>"string value" : string +} +var withInitializedParamsVar = withInitializedParams; +>withInitializedParamsVar : (a: string, b0: any, b?: number, c?: string) => void, Symbol(withInitializedParamsVar, Decl(funcdecl.ts, 30, 3)) +>withInitializedParams : (a: string, b0: any, b?: number, c?: string) => void, Symbol(withInitializedParams, Decl(funcdecl.ts, 26, 47)) + +function withOptionalInitializedParams(a: string, c: string = "hello string") { +>withOptionalInitializedParams : (a: string, c?: string) => void, Symbol(withOptionalInitializedParams, Decl(funcdecl.ts, 30, 53)) +>a : string, Symbol(a, Decl(funcdecl.ts, 32, 39)) +>c : string, Symbol(c, Decl(funcdecl.ts, 32, 49)) +>"hello string" : "hello string" +} +var withOptionalInitializedParamsVar = withOptionalInitializedParams; +>withOptionalInitializedParamsVar : (a: string, c?: string) => void, Symbol(withOptionalInitializedParamsVar, Decl(funcdecl.ts, 34, 3)) +>withOptionalInitializedParams : (a: string, c?: string) => void, Symbol(withOptionalInitializedParams, Decl(funcdecl.ts, 30, 53)) + +function withRestParams(a: string, ... myRestParameter : number[]) { +>withRestParams : (a: string, ...myRestParameter: number[]) => number[], Symbol(withRestParams, Decl(funcdecl.ts, 34, 69)) +>a : string, Symbol(a, Decl(funcdecl.ts, 36, 24)) +>myRestParameter : number[], Symbol(myRestParameter, Decl(funcdecl.ts, 36, 34)) + + return myRestParameter; +>myRestParameter : number[], Symbol(myRestParameter, Decl(funcdecl.ts, 36, 34)) +} +var withRestParamsVar = withRestParams; +>withRestParamsVar : (a: string, ...myRestParameter: number[]) => number[], Symbol(withRestParamsVar, Decl(funcdecl.ts, 39, 3)) +>withRestParams : (a: string, ...myRestParameter: number[]) => number[], Symbol(withRestParams, Decl(funcdecl.ts, 34, 69)) + +function overload1(n: number) : string; +>overload1 : { (n: number): string; (s: string): string; }, Symbol(overload1, Decl(funcdecl.ts, 39, 39), Decl(funcdecl.ts, 41, 39), Decl(funcdecl.ts, 42, 39)) +>n : number, Symbol(n, Decl(funcdecl.ts, 41, 19)) + +function overload1(s: string) : string; +>overload1 : { (n: number): string; (s: string): string; }, Symbol(overload1, Decl(funcdecl.ts, 39, 39), Decl(funcdecl.ts, 41, 39), Decl(funcdecl.ts, 42, 39)) +>s : string, Symbol(s, Decl(funcdecl.ts, 42, 19)) + +function overload1(ns: any) { +>overload1 : { (n: number): string; (s: string): string; }, Symbol(overload1, Decl(funcdecl.ts, 39, 39), Decl(funcdecl.ts, 41, 39), Decl(funcdecl.ts, 42, 39)) +>ns : any, Symbol(ns, Decl(funcdecl.ts, 43, 19)) + + return ns.toString(); +>ns.toString() : any +>ns.toString : any +>ns : any, Symbol(ns, Decl(funcdecl.ts, 43, 19)) +>toString : any +} +var withOverloadSignature = overload1; +>withOverloadSignature : { (n: number): string; (s: string): string; }, Symbol(withOverloadSignature, Decl(funcdecl.ts, 46, 3)) +>overload1 : { (n: number): string; (s: string): string; }, Symbol(overload1, Decl(funcdecl.ts, 39, 39), Decl(funcdecl.ts, 41, 39), Decl(funcdecl.ts, 42, 39)) + +function f(n: () => void) { } +>f : (n: () => void) => void, Symbol(f, Decl(funcdecl.ts, 46, 38)) +>n : () => void, Symbol(n, Decl(funcdecl.ts, 48, 11)) + +module m2 { +>m2 : typeof m2, Symbol(m2, Decl(funcdecl.ts, 48, 29)) + + export function foo(n: () => void ) { +>foo : (n: () => void) => void, Symbol(foo, Decl(funcdecl.ts, 50, 11)) +>n : () => void, Symbol(n, Decl(funcdecl.ts, 51, 24)) + } + +} + +m2.foo(() => { +>m2.foo(() => { var b = 30; return b;}) : void +>m2.foo : (n: () => void) => void, Symbol(m2.foo, Decl(funcdecl.ts, 50, 11)) +>m2 : typeof m2, Symbol(m2, Decl(funcdecl.ts, 48, 29)) +>foo : (n: () => void) => void, Symbol(m2.foo, Decl(funcdecl.ts, 50, 11)) +>() => { var b = 30; return b;} : () => number + + var b = 30; +>b : number, Symbol(b, Decl(funcdecl.ts, 58, 7)) +>30 : number + + return b; +>b : number, Symbol(b, Decl(funcdecl.ts, 58, 7)) + +}); + + +declare function fooAmbient(n: number): string; +>fooAmbient : (n: number) => string, Symbol(fooAmbient, Decl(funcdecl.ts, 60, 3)) +>n : number, Symbol(n, Decl(funcdecl.ts, 63, 28)) + +declare function overloadAmbient(n: number): string; +>overloadAmbient : { (n: number): string; (s: string): string; }, Symbol(overloadAmbient, Decl(funcdecl.ts, 63, 47), Decl(funcdecl.ts, 65, 52)) +>n : number, Symbol(n, Decl(funcdecl.ts, 65, 33)) + +declare function overloadAmbient(s: string): string; +>overloadAmbient : { (n: number): string; (s: string): string; }, Symbol(overloadAmbient, Decl(funcdecl.ts, 63, 47), Decl(funcdecl.ts, 65, 52)) +>s : string, Symbol(s, Decl(funcdecl.ts, 66, 33)) + +var f2 = () => { +>f2 : () => string, Symbol(f2, Decl(funcdecl.ts, 68, 3)) +>() => { return "string";} : () => string + + return "string"; +>"string" : string +} diff --git a/tests/baselines/reference/functionAssignmentError.types b/tests/baselines/reference/functionAssignmentError.types index 63996db0e40..9b96e8e8420 100644 --- a/tests/baselines/reference/functionAssignmentError.types +++ b/tests/baselines/reference/functionAssignmentError.types @@ -1,10 +1,12 @@ === tests/cases/compiler/functionAssignmentError.ts === var func = function (){return "ONE";}; ->func : () => string +>func : () => string, Symbol(func, Decl(functionAssignmentError.ts, 0, 3)) >function (){return "ONE";} : () => string +>"ONE" : string func = function (){return "ONE";}; >func = function (){return "ONE";} : () => string ->func : () => string +>func : () => string, Symbol(func, Decl(functionAssignmentError.ts, 0, 3)) >function (){return "ONE";} : () => string +>"ONE" : string diff --git a/tests/baselines/reference/functionCall1.types b/tests/baselines/reference/functionCall1.types index 1b06379860c..3a818c5fd9d 100644 --- a/tests/baselines/reference/functionCall1.types +++ b/tests/baselines/reference/functionCall1.types @@ -1,9 +1,10 @@ === tests/cases/compiler/functionCall1.ts === function foo():any{return ""}; ->foo : () => any +>foo : () => any, Symbol(foo, Decl(functionCall1.ts, 0, 0)) +>"" : string var x = foo(); ->x : any +>x : any, Symbol(x, Decl(functionCall1.ts, 1, 3)) >foo() : any ->foo : () => any +>foo : () => any, Symbol(foo, Decl(functionCall1.ts, 0, 0)) diff --git a/tests/baselines/reference/functionCall2.types b/tests/baselines/reference/functionCall2.types index 92bb0f0be23..fb04ee56c9e 100644 --- a/tests/baselines/reference/functionCall2.types +++ b/tests/baselines/reference/functionCall2.types @@ -1,9 +1,10 @@ === tests/cases/compiler/functionCall2.ts === function foo():number{return 1}; ->foo : () => number +>foo : () => number, Symbol(foo, Decl(functionCall2.ts, 0, 0)) +>1 : number var x = foo(); ->x : number +>x : number, Symbol(x, Decl(functionCall2.ts, 1, 3)) >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(functionCall2.ts, 0, 0)) diff --git a/tests/baselines/reference/functionCall3.types b/tests/baselines/reference/functionCall3.types index ea47de3e6d9..d06b9406c97 100644 --- a/tests/baselines/reference/functionCall3.types +++ b/tests/baselines/reference/functionCall3.types @@ -1,10 +1,11 @@ === tests/cases/compiler/functionCall3.ts === function foo():any[]{return [1];} ->foo : () => any[] +>foo : () => any[], Symbol(foo, Decl(functionCall3.ts, 0, 0)) >[1] : number[] +>1 : number var x = foo(); ->x : any[] +>x : any[], Symbol(x, Decl(functionCall3.ts, 1, 3)) >foo() : any[] ->foo : () => any[] +>foo : () => any[], Symbol(foo, Decl(functionCall3.ts, 0, 0)) diff --git a/tests/baselines/reference/functionCall4.types b/tests/baselines/reference/functionCall4.types index 37a0b980a00..4b9738c0acb 100644 --- a/tests/baselines/reference/functionCall4.types +++ b/tests/baselines/reference/functionCall4.types @@ -1,13 +1,14 @@ === tests/cases/compiler/functionCall4.ts === function foo():any{return ""}; ->foo : () => any +>foo : () => any, Symbol(foo, Decl(functionCall4.ts, 0, 0)) +>"" : string function bar():()=>any{return foo}; ->bar : () => () => any ->foo : () => any +>bar : () => () => any, Symbol(bar, Decl(functionCall4.ts, 0, 30)) +>foo : () => any, Symbol(foo, Decl(functionCall4.ts, 0, 0)) var x = bar(); ->x : () => any +>x : () => any, Symbol(x, Decl(functionCall4.ts, 2, 3)) >bar() : () => any ->bar : () => () => any +>bar : () => () => any, Symbol(bar, Decl(functionCall4.ts, 0, 30)) diff --git a/tests/baselines/reference/functionCall5.types b/tests/baselines/reference/functionCall5.types index e5578ef3c34..2e5f1b9980c 100644 --- a/tests/baselines/reference/functionCall5.types +++ b/tests/baselines/reference/functionCall5.types @@ -1,20 +1,20 @@ === tests/cases/compiler/functionCall5.ts === module m1 { export class c1 { public a; }} ->m1 : typeof m1 ->c1 : c1 ->a : any +>m1 : typeof m1, Symbol(m1, Decl(functionCall5.ts, 0, 0)) +>c1 : c1, Symbol(c1, Decl(functionCall5.ts, 0, 11)) +>a : any, Symbol(a, Decl(functionCall5.ts, 0, 29)) function foo():m1.c1{return new m1.c1();}; ->foo : () => m1.c1 ->m1 : unknown ->c1 : m1.c1 +>foo : () => m1.c1, Symbol(foo, Decl(functionCall5.ts, 0, 42)) +>m1 : any, Symbol(m1, Decl(functionCall5.ts, 0, 0)) +>c1 : m1.c1, Symbol(m1.c1, Decl(functionCall5.ts, 0, 11)) >new m1.c1() : m1.c1 ->m1.c1 : typeof m1.c1 ->m1 : typeof m1 ->c1 : typeof m1.c1 +>m1.c1 : typeof m1.c1, Symbol(m1.c1, Decl(functionCall5.ts, 0, 11)) +>m1 : typeof m1, Symbol(m1, Decl(functionCall5.ts, 0, 0)) +>c1 : typeof m1.c1, Symbol(m1.c1, Decl(functionCall5.ts, 0, 11)) var x = foo(); ->x : m1.c1 +>x : m1.c1, Symbol(x, Decl(functionCall5.ts, 2, 3)) >foo() : m1.c1 ->foo : () => m1.c1 +>foo : () => m1.c1, Symbol(foo, Decl(functionCall5.ts, 0, 42)) diff --git a/tests/baselines/reference/functionConstraintSatisfaction.types b/tests/baselines/reference/functionConstraintSatisfaction.types index 7363fa162d3..ff54680c310 100644 --- a/tests/baselines/reference/functionConstraintSatisfaction.types +++ b/tests/baselines/reference/functionConstraintSatisfaction.types @@ -2,253 +2,253 @@ // satisfaction of a constraint to Function, no errors expected function foo(x: T): T { return x; } ->foo : (x: T) => T ->T : T ->Function : Function ->x : T ->T : T ->T : T ->x : T +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 2, 13)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction.ts, 2, 33)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 2, 13)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 2, 13)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction.ts, 2, 33)) interface I { ->I : I +>I : I, Symbol(I, Decl(functionConstraintSatisfaction.ts, 2, 55)) (): string; } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(functionConstraintSatisfaction.ts, 7, 3)) +>I : I, Symbol(I, Decl(functionConstraintSatisfaction.ts, 2, 55)) class C { ->C : C +>C : C, Symbol(C, Decl(functionConstraintSatisfaction.ts, 7, 9)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 9, 9)) } var a: { (): string }; ->a : () => string +>a : () => string, Symbol(a, Decl(functionConstraintSatisfaction.ts, 13, 3)) var b: { new (): string }; ->b : new () => string +>b : new () => string, Symbol(b, Decl(functionConstraintSatisfaction.ts, 14, 3)) var c: { (): string; (x): string }; ->c : { (): string; (x: any): string; } ->x : any +>c : { (): string; (x: any): string; }, Symbol(c, Decl(functionConstraintSatisfaction.ts, 15, 3)) +>x : any, Symbol(x, Decl(functionConstraintSatisfaction.ts, 15, 22)) var r = foo(new Function()); ->r : Function +>r : Function, Symbol(r, Decl(functionConstraintSatisfaction.ts, 17, 3)) >foo(new Function()) : Function ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) >new Function() : Function ->Function : FunctionConstructor +>Function : FunctionConstructor, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) var r1 = foo((x) => x); ->r1 : (x: any) => any +>r1 : (x: any) => any, Symbol(r1, Decl(functionConstraintSatisfaction.ts, 18, 3)) >foo((x) => x) : (x: any) => any ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) >(x) => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(functionConstraintSatisfaction.ts, 18, 14)) +>x : any, Symbol(x, Decl(functionConstraintSatisfaction.ts, 18, 14)) var r2 = foo((x: string[]) => x); ->r2 : (x: string[]) => string[] +>r2 : (x: string[]) => string[], Symbol(r2, Decl(functionConstraintSatisfaction.ts, 19, 3)) >foo((x: string[]) => x) : (x: string[]) => string[] ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) >(x: string[]) => x : (x: string[]) => string[] ->x : string[] ->x : string[] +>x : string[], Symbol(x, Decl(functionConstraintSatisfaction.ts, 19, 14)) +>x : string[], Symbol(x, Decl(functionConstraintSatisfaction.ts, 19, 14)) var r3 = foo(function (x) { return x }); ->r3 : (x: any) => any +>r3 : (x: any) => any, Symbol(r3, Decl(functionConstraintSatisfaction.ts, 20, 3)) >foo(function (x) { return x }) : (x: any) => any ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) >function (x) { return x } : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(functionConstraintSatisfaction.ts, 20, 23)) +>x : any, Symbol(x, Decl(functionConstraintSatisfaction.ts, 20, 23)) var r4 = foo(function (x: string[]) { return x }); ->r4 : (x: string[]) => string[] +>r4 : (x: string[]) => string[], Symbol(r4, Decl(functionConstraintSatisfaction.ts, 21, 3)) >foo(function (x: string[]) { return x }) : (x: string[]) => string[] ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) >function (x: string[]) { return x } : (x: string[]) => string[] ->x : string[] ->x : string[] +>x : string[], Symbol(x, Decl(functionConstraintSatisfaction.ts, 21, 23)) +>x : string[], Symbol(x, Decl(functionConstraintSatisfaction.ts, 21, 23)) var r5 = foo(i); ->r5 : I +>r5 : I, Symbol(r5, Decl(functionConstraintSatisfaction.ts, 22, 3)) >foo(i) : I ->foo : (x: T) => T ->i : I +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) +>i : I, Symbol(i, Decl(functionConstraintSatisfaction.ts, 7, 3)) var r6 = foo(C); ->r6 : typeof C +>r6 : typeof C, Symbol(r6, Decl(functionConstraintSatisfaction.ts, 23, 3)) >foo(C) : typeof C ->foo : (x: T) => T ->C : typeof C +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) +>C : typeof C, Symbol(C, Decl(functionConstraintSatisfaction.ts, 7, 9)) var r7 = foo(b); ->r7 : new () => string +>r7 : new () => string, Symbol(r7, Decl(functionConstraintSatisfaction.ts, 24, 3)) >foo(b) : new () => string ->foo : (x: T) => T ->b : new () => string +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) +>b : new () => string, Symbol(b, Decl(functionConstraintSatisfaction.ts, 14, 3)) var r8 = foo(c); ->r8 : { (): string; (x: any): string; } +>r8 : { (): string; (x: any): string; }, Symbol(r8, Decl(functionConstraintSatisfaction.ts, 25, 3)) >foo(c) : { (): string; (x: any): string; } ->foo : (x: T) => T ->c : { (): string; (x: any): string; } +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) +>c : { (): string; (x: any): string; }, Symbol(c, Decl(functionConstraintSatisfaction.ts, 15, 3)) interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(functionConstraintSatisfaction.ts, 25, 16)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 27, 13)) (x: T): T; ->x : T ->T : T ->T : T +>x : T, Symbol(x, Decl(functionConstraintSatisfaction.ts, 28, 5)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 27, 13)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 27, 13)) } var i2: I2; ->i2 : I2 ->I2 : I2 +>i2 : I2, Symbol(i2, Decl(functionConstraintSatisfaction.ts, 30, 3)) +>I2 : I2, Symbol(I2, Decl(functionConstraintSatisfaction.ts, 25, 16)) class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(functionConstraintSatisfaction.ts, 30, 19)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 32, 9)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 32, 13)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 32, 9)) } var a2: { (x: T): T }; ->a2 : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a2 : (x: T) => T, Symbol(a2, Decl(functionConstraintSatisfaction.ts, 36, 3)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 36, 11)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction.ts, 36, 14)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 36, 11)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 36, 11)) var b2: { new (x: T): T }; ->b2 : new (x: T) => T ->T : T ->x : T ->T : T ->T : T +>b2 : new (x: T) => T, Symbol(b2, Decl(functionConstraintSatisfaction.ts, 37, 3)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 37, 15)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction.ts, 37, 18)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 37, 15)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 37, 15)) var c2: { (x: T): T; (x: T, y: T): T }; ->c2 : { (x: T): T; (x: T, y: T): T; } ->T : T ->x : T ->T : T ->T : T ->T : T ->x : T ->T : T ->y : T ->T : T ->T : T +>c2 : { (x: T): T; (x: T, y: T): T; }, Symbol(c2, Decl(functionConstraintSatisfaction.ts, 38, 3)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 38, 11)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction.ts, 38, 14)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 38, 11)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 38, 11)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 38, 25)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction.ts, 38, 28)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 38, 25)) +>y : T, Symbol(y, Decl(functionConstraintSatisfaction.ts, 38, 33)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 38, 25)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 38, 25)) var r9 = foo((x: U) => x); ->r9 : (x: U) => U +>r9 : (x: U) => U, Symbol(r9, Decl(functionConstraintSatisfaction.ts, 40, 3)) >foo((x: U) => x) : (x: U) => U ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) >(x: U) => x : (x: U) => U ->U : U ->x : U ->U : U ->x : U +>U : U, Symbol(U, Decl(functionConstraintSatisfaction.ts, 40, 14)) +>x : U, Symbol(x, Decl(functionConstraintSatisfaction.ts, 40, 17)) +>U : U, Symbol(U, Decl(functionConstraintSatisfaction.ts, 40, 14)) +>x : U, Symbol(x, Decl(functionConstraintSatisfaction.ts, 40, 17)) var r10 = foo(function (x: U) { return x; }); ->r10 : (x: U) => U +>r10 : (x: U) => U, Symbol(r10, Decl(functionConstraintSatisfaction.ts, 41, 3)) >foo(function (x: U) { return x; }) : (x: U) => U ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) >function (x: U) { return x; } : (x: U) => U ->U : U ->x : U ->U : U ->x : U +>U : U, Symbol(U, Decl(functionConstraintSatisfaction.ts, 41, 24)) +>x : U, Symbol(x, Decl(functionConstraintSatisfaction.ts, 41, 27)) +>U : U, Symbol(U, Decl(functionConstraintSatisfaction.ts, 41, 24)) +>x : U, Symbol(x, Decl(functionConstraintSatisfaction.ts, 41, 27)) var r11 = foo((x: U) => x); ->r11 : (x: U) => U +>r11 : (x: U) => U, Symbol(r11, Decl(functionConstraintSatisfaction.ts, 42, 3)) >foo((x: U) => x) : (x: U) => U ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) >(x: U) => x : (x: U) => U ->U : U ->Date : Date ->x : U ->U : U ->x : U +>U : U, Symbol(U, Decl(functionConstraintSatisfaction.ts, 42, 15)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : U, Symbol(x, Decl(functionConstraintSatisfaction.ts, 42, 31)) +>U : U, Symbol(U, Decl(functionConstraintSatisfaction.ts, 42, 15)) +>x : U, Symbol(x, Decl(functionConstraintSatisfaction.ts, 42, 31)) var r12 = foo((x: U, y: V) => x); ->r12 : (x: U, y: V) => U +>r12 : (x: U, y: V) => U, Symbol(r12, Decl(functionConstraintSatisfaction.ts, 43, 3)) >foo((x: U, y: V) => x) : (x: U, y: V) => U ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) >(x: U, y: V) => x : (x: U, y: V) => U ->U : U ->V : V ->x : U ->U : U ->y : V ->V : V ->x : U +>U : U, Symbol(U, Decl(functionConstraintSatisfaction.ts, 43, 15)) +>V : V, Symbol(V, Decl(functionConstraintSatisfaction.ts, 43, 17)) +>x : U, Symbol(x, Decl(functionConstraintSatisfaction.ts, 43, 21)) +>U : U, Symbol(U, Decl(functionConstraintSatisfaction.ts, 43, 15)) +>y : V, Symbol(y, Decl(functionConstraintSatisfaction.ts, 43, 26)) +>V : V, Symbol(V, Decl(functionConstraintSatisfaction.ts, 43, 17)) +>x : U, Symbol(x, Decl(functionConstraintSatisfaction.ts, 43, 21)) var r13 = foo(i2); ->r13 : I2 +>r13 : I2, Symbol(r13, Decl(functionConstraintSatisfaction.ts, 44, 3)) >foo(i2) : I2 ->foo : (x: T) => T ->i2 : I2 +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) +>i2 : I2, Symbol(i2, Decl(functionConstraintSatisfaction.ts, 30, 3)) var r14 = foo(C2); ->r14 : typeof C2 +>r14 : typeof C2, Symbol(r14, Decl(functionConstraintSatisfaction.ts, 45, 3)) >foo(C2) : typeof C2 ->foo : (x: T) => T ->C2 : typeof C2 +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) +>C2 : typeof C2, Symbol(C2, Decl(functionConstraintSatisfaction.ts, 30, 19)) var r15 = foo(b2); ->r15 : new (x: T) => T +>r15 : new (x: T) => T, Symbol(r15, Decl(functionConstraintSatisfaction.ts, 46, 3)) >foo(b2) : new (x: T) => T ->foo : (x: T) => T ->b2 : new (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) +>b2 : new (x: T) => T, Symbol(b2, Decl(functionConstraintSatisfaction.ts, 37, 3)) var r16 = foo(c2); ->r16 : { (x: T): T; (x: T, y: T): T; } +>r16 : { (x: T): T; (x: T, y: T): T; }, Symbol(r16, Decl(functionConstraintSatisfaction.ts, 47, 3)) >foo(c2) : { (x: T): T; (x: T, y: T): T; } ->foo : (x: T) => T ->c2 : { (x: T): T; (x: T, y: T): T; } +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) +>c2 : { (x: T): T; (x: T, y: T): T; }, Symbol(c2, Decl(functionConstraintSatisfaction.ts, 38, 3)) interface F2 extends Function { foo: string; } ->F2 : F2 ->Function : Function ->foo : string +>F2 : F2, Symbol(F2, Decl(functionConstraintSatisfaction.ts, 47, 18)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) +>foo : string, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 49, 31)) var f2: F2; ->f2 : F2 ->F2 : F2 +>f2 : F2, Symbol(f2, Decl(functionConstraintSatisfaction.ts, 50, 3)) +>F2 : F2, Symbol(F2, Decl(functionConstraintSatisfaction.ts, 47, 18)) var r17 = foo(f2); ->r17 : F2 +>r17 : F2, Symbol(r17, Decl(functionConstraintSatisfaction.ts, 51, 3)) >foo(f2) : F2 ->foo : (x: T) => T ->f2 : F2 +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) +>f2 : F2, Symbol(f2, Decl(functionConstraintSatisfaction.ts, 50, 3)) function foo2(x: T, y: U) { ->foo2 : void, U extends () => void>(x: T, y: U) => void ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>foo2 : void, U extends () => void>(x: T, y: U) => void, Symbol(foo2, Decl(functionConstraintSatisfaction.ts, 51, 18)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 53, 14)) +>U : U, Symbol(U, Decl(functionConstraintSatisfaction.ts, 53, 37)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction.ts, 53, 62)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction.ts, 53, 14)) +>y : U, Symbol(y, Decl(functionConstraintSatisfaction.ts, 53, 67)) +>U : U, Symbol(U, Decl(functionConstraintSatisfaction.ts, 53, 37)) foo(x); >foo(x) : T ->foo : (x: T) => T ->x : T +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction.ts, 53, 62)) foo(y); >foo(y) : U ->foo : (x: T) => T ->y : U +>foo : (x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction.ts, 0, 0)) +>y : U, Symbol(y, Decl(functionConstraintSatisfaction.ts, 53, 67)) } //function foo2(x: T, y: U) { // foo(x); diff --git a/tests/baselines/reference/functionConstraintSatisfaction3.types b/tests/baselines/reference/functionConstraintSatisfaction3.types index 04963c36519..e2d5aa6dc33 100644 --- a/tests/baselines/reference/functionConstraintSatisfaction3.types +++ b/tests/baselines/reference/functionConstraintSatisfaction3.types @@ -2,162 +2,162 @@ // satisfaction of a constraint to Function, no errors expected function foo string>(x: T): T { return x; } ->foo : string>(x: T) => T ->T : T ->x : string ->x : T ->T : T ->T : T ->x : T +>foo : string>(x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 0, 0)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 2, 13)) +>x : string, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 2, 24)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 2, 46)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 2, 13)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 2, 13)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 2, 46)) interface I { ->I : I +>I : I, Symbol(I, Decl(functionConstraintSatisfaction3.ts, 2, 68)) (): string; } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(functionConstraintSatisfaction3.ts, 7, 3)) +>I : I, Symbol(I, Decl(functionConstraintSatisfaction3.ts, 2, 68)) class C { ->C : C +>C : C, Symbol(C, Decl(functionConstraintSatisfaction3.ts, 7, 9)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 9, 9)) } var a: { (): string }; ->a : () => string +>a : () => string, Symbol(a, Decl(functionConstraintSatisfaction3.ts, 13, 3)) var b: { new (): string }; ->b : new () => string +>b : new () => string, Symbol(b, Decl(functionConstraintSatisfaction3.ts, 14, 3)) var c: { (): string; (x): string }; ->c : { (): string; (x: any): string; } ->x : any +>c : { (): string; (x: any): string; }, Symbol(c, Decl(functionConstraintSatisfaction3.ts, 15, 3)) +>x : any, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 15, 22)) var r1 = foo((x) => x); ->r1 : (x: any) => any +>r1 : (x: any) => any, Symbol(r1, Decl(functionConstraintSatisfaction3.ts, 17, 3)) >foo((x) => x) : (x: any) => any ->foo : string>(x: T) => T +>foo : string>(x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 0, 0)) >(x) => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 17, 14)) +>x : any, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 17, 14)) var r2 = foo((x: string) => x); ->r2 : (x: string) => string +>r2 : (x: string) => string, Symbol(r2, Decl(functionConstraintSatisfaction3.ts, 18, 3)) >foo((x: string) => x) : (x: string) => string ->foo : string>(x: T) => T +>foo : string>(x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 0, 0)) >(x: string) => x : (x: string) => string ->x : string ->x : string +>x : string, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 18, 14)) +>x : string, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 18, 14)) var r3 = foo(function (x) { return x }); ->r3 : (x: any) => any +>r3 : (x: any) => any, Symbol(r3, Decl(functionConstraintSatisfaction3.ts, 19, 3)) >foo(function (x) { return x }) : (x: any) => any ->foo : string>(x: T) => T +>foo : string>(x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 0, 0)) >function (x) { return x } : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 19, 23)) +>x : any, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 19, 23)) var r4 = foo(function (x: string) { return x }); ->r4 : (x: string) => string +>r4 : (x: string) => string, Symbol(r4, Decl(functionConstraintSatisfaction3.ts, 20, 3)) >foo(function (x: string) { return x }) : (x: string) => string ->foo : string>(x: T) => T +>foo : string>(x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 0, 0)) >function (x: string) { return x } : (x: string) => string ->x : string ->x : string +>x : string, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 20, 23)) +>x : string, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 20, 23)) var r5 = foo(i); ->r5 : I +>r5 : I, Symbol(r5, Decl(functionConstraintSatisfaction3.ts, 21, 3)) >foo(i) : I ->foo : string>(x: T) => T ->i : I +>foo : string>(x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 0, 0)) +>i : I, Symbol(i, Decl(functionConstraintSatisfaction3.ts, 7, 3)) var r8 = foo(c); ->r8 : { (): string; (x: any): string; } +>r8 : { (): string; (x: any): string; }, Symbol(r8, Decl(functionConstraintSatisfaction3.ts, 22, 3)) >foo(c) : { (): string; (x: any): string; } ->foo : string>(x: T) => T ->c : { (): string; (x: any): string; } +>foo : string>(x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 0, 0)) +>c : { (): string; (x: any): string; }, Symbol(c, Decl(functionConstraintSatisfaction3.ts, 15, 3)) interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(functionConstraintSatisfaction3.ts, 22, 16)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 24, 13)) (x: T): T; ->x : T ->T : T ->T : T +>x : T, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 25, 5)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 24, 13)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 24, 13)) } var i2: I2; ->i2 : I2 ->I2 : I2 +>i2 : I2, Symbol(i2, Decl(functionConstraintSatisfaction3.ts, 27, 3)) +>I2 : I2, Symbol(I2, Decl(functionConstraintSatisfaction3.ts, 22, 16)) class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(functionConstraintSatisfaction3.ts, 27, 19)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 29, 9)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 29, 13)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 29, 9)) } var a2: { (x: T): T }; ->a2 : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a2 : (x: T) => T, Symbol(a2, Decl(functionConstraintSatisfaction3.ts, 33, 3)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 33, 11)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 33, 14)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 33, 11)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 33, 11)) var b2: { new (x: T): T }; ->b2 : new (x: T) => T ->T : T ->x : T ->T : T ->T : T +>b2 : new (x: T) => T, Symbol(b2, Decl(functionConstraintSatisfaction3.ts, 34, 3)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 34, 15)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 34, 18)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 34, 15)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 34, 15)) var c2: { (x: T): T; (x: T, y: T): T }; ->c2 : { (x: T): T; (x: T, y: T): T; } ->T : T ->x : T ->T : T ->T : T ->T : T ->x : T ->T : T ->y : T ->T : T ->T : T +>c2 : { (x: T): T; (x: T, y: T): T; }, Symbol(c2, Decl(functionConstraintSatisfaction3.ts, 35, 3)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 35, 11)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 35, 14)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 35, 11)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 35, 11)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 35, 25)) +>x : T, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 35, 28)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 35, 25)) +>y : T, Symbol(y, Decl(functionConstraintSatisfaction3.ts, 35, 33)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 35, 25)) +>T : T, Symbol(T, Decl(functionConstraintSatisfaction3.ts, 35, 25)) var r9 = foo(function (x: U) { return x; }); ->r9 : (x: U) => U +>r9 : (x: U) => U, Symbol(r9, Decl(functionConstraintSatisfaction3.ts, 37, 3)) >foo(function (x: U) { return x; }) : (x: U) => U ->foo : string>(x: T) => T +>foo : string>(x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 0, 0)) >function (x: U) { return x; } : (x: U) => U ->U : U ->x : U ->U : U ->x : U +>U : U, Symbol(U, Decl(functionConstraintSatisfaction3.ts, 37, 23)) +>x : U, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 37, 26)) +>U : U, Symbol(U, Decl(functionConstraintSatisfaction3.ts, 37, 23)) +>x : U, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 37, 26)) var r10 = foo((x: U) => x); ->r10 : (x: U) => U +>r10 : (x: U) => U, Symbol(r10, Decl(functionConstraintSatisfaction3.ts, 38, 3)) >foo((x: U) => x) : (x: U) => U ->foo : string>(x: T) => T +>foo : string>(x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 0, 0)) >(x: U) => x : (x: U) => U ->U : U ->x : U ->U : U ->x : U +>U : U, Symbol(U, Decl(functionConstraintSatisfaction3.ts, 38, 15)) +>x : U, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 38, 33)) +>U : U, Symbol(U, Decl(functionConstraintSatisfaction3.ts, 38, 15)) +>x : U, Symbol(x, Decl(functionConstraintSatisfaction3.ts, 38, 33)) var r12 = foo(i2); ->r12 : I2 +>r12 : I2, Symbol(r12, Decl(functionConstraintSatisfaction3.ts, 39, 3)) >foo(i2) : I2 ->foo : string>(x: T) => T ->i2 : I2 +>foo : string>(x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 0, 0)) +>i2 : I2, Symbol(i2, Decl(functionConstraintSatisfaction3.ts, 27, 3)) var r15 = foo(c2); ->r15 : { (x: T): T; (x: T, y: T): T; } +>r15 : { (x: T): T; (x: T, y: T): T; }, Symbol(r15, Decl(functionConstraintSatisfaction3.ts, 40, 3)) >foo(c2) : { (x: T): T; (x: T, y: T): T; } ->foo : string>(x: T) => T ->c2 : { (x: T): T; (x: T, y: T): T; } +>foo : string>(x: T) => T, Symbol(foo, Decl(functionConstraintSatisfaction3.ts, 0, 0)) +>c2 : { (x: T): T; (x: T, y: T): T; }, Symbol(c2, Decl(functionConstraintSatisfaction3.ts, 35, 3)) diff --git a/tests/baselines/reference/functionDeclarationWithArgumentOfTypeFunctionTypeArray.types b/tests/baselines/reference/functionDeclarationWithArgumentOfTypeFunctionTypeArray.types index a1d32a2a405..fc88c549f5d 100644 --- a/tests/baselines/reference/functionDeclarationWithArgumentOfTypeFunctionTypeArray.types +++ b/tests/baselines/reference/functionDeclarationWithArgumentOfTypeFunctionTypeArray.types @@ -1,12 +1,12 @@ === tests/cases/compiler/functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts === function foo(args: { (x): number }[]) { ->foo : (args: ((x: any) => number)[]) => number ->args : ((x: any) => number)[] ->x : any +>foo : (args: ((x: any) => number)[]) => number, Symbol(foo, Decl(functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts, 0, 0)) +>args : ((x: any) => number)[], Symbol(args, Decl(functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts, 0, 13)) +>x : any, Symbol(x, Decl(functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts, 0, 22)) return args.length; ->args.length : number ->args : ((x: any) => number)[] ->length : number +>args.length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) +>args : ((x: any) => number)[], Symbol(args, Decl(functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts, 0, 13)) +>length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) } diff --git a/tests/baselines/reference/functionExpressionAndLambdaMatchesFunction.types b/tests/baselines/reference/functionExpressionAndLambdaMatchesFunction.types index 1a8fb157032..fd37de9a9a2 100644 --- a/tests/baselines/reference/functionExpressionAndLambdaMatchesFunction.types +++ b/tests/baselines/reference/functionExpressionAndLambdaMatchesFunction.types @@ -1,22 +1,22 @@ === tests/cases/compiler/functionExpressionAndLambdaMatchesFunction.ts === class CDoc { ->CDoc : CDoc +>CDoc : CDoc, Symbol(CDoc, Decl(functionExpressionAndLambdaMatchesFunction.ts, 0, 0)) constructor() { function doSomething(a: Function) { ->doSomething : (a: Function) => void ->a : Function ->Function : Function +>doSomething : (a: Function) => void, Symbol(doSomething, Decl(functionExpressionAndLambdaMatchesFunction.ts, 1, 23)) +>a : Function, Symbol(a, Decl(functionExpressionAndLambdaMatchesFunction.ts, 2, 29)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) } doSomething(() => undefined); >doSomething(() => undefined) : void ->doSomething : (a: Function) => void +>doSomething : (a: Function) => void, Symbol(doSomething, Decl(functionExpressionAndLambdaMatchesFunction.ts, 1, 23)) >() => undefined : () => any ->undefined : undefined +>undefined : undefined, Symbol(undefined) doSomething(function () { }); >doSomething(function () { }) : void ->doSomething : (a: Function) => void +>doSomething : (a: Function) => void, Symbol(doSomething, Decl(functionExpressionAndLambdaMatchesFunction.ts, 1, 23)) >function () { } : () => void } } diff --git a/tests/baselines/reference/functionExpressionReturningItself.types b/tests/baselines/reference/functionExpressionReturningItself.types index 409f4adea2e..56da141b02a 100644 --- a/tests/baselines/reference/functionExpressionReturningItself.types +++ b/tests/baselines/reference/functionExpressionReturningItself.types @@ -1,7 +1,7 @@ === tests/cases/compiler/functionExpressionReturningItself.ts === var x = function somefn() { return somefn; }; ->x : () => any +>x : () => any, Symbol(x, Decl(functionExpressionReturningItself.ts, 0, 3)) >function somefn() { return somefn; } : () => any ->somefn : () => any ->somefn : () => any +>somefn : () => any, Symbol(somefn, Decl(functionExpressionReturningItself.ts, 0, 7)) +>somefn : () => any, Symbol(somefn, Decl(functionExpressionReturningItself.ts, 0, 7)) diff --git a/tests/baselines/reference/functionImplementations.types b/tests/baselines/reference/functionImplementations.types index 04144e3a65b..8c74f54e64b 100644 --- a/tests/baselines/reference/functionImplementations.types +++ b/tests/baselines/reference/functionImplementations.types @@ -1,171 +1,182 @@ === tests/cases/conformance/functions/functionImplementations.ts === // FunctionExpression with no return type annotation and no return statement returns void var v: void = function () { } (); ->v : void +>v : void, Symbol(v, Decl(functionImplementations.ts, 1, 3)) >function () { } () : void >function () { } : () => void // FunctionExpression f with no return type annotation and directly references f in its body returns any var a: any = function f() { ->a : any +>a : any, Symbol(a, Decl(functionImplementations.ts, 4, 3), Decl(functionImplementations.ts, 7, 3), Decl(functionImplementations.ts, 12, 3), Decl(functionImplementations.ts, 24, 3), Decl(functionImplementations.ts, 25, 3), Decl(functionImplementations.ts, 84, 3)) >function f() { return f;} : () => any ->f : () => any +>f : () => any, Symbol(f, Decl(functionImplementations.ts, 4, 12)) return f; ->f : () => any +>f : () => any, Symbol(f, Decl(functionImplementations.ts, 4, 12)) }; var a: any = function f() { ->a : any +>a : any, Symbol(a, Decl(functionImplementations.ts, 4, 3), Decl(functionImplementations.ts, 7, 3), Decl(functionImplementations.ts, 12, 3), Decl(functionImplementations.ts, 24, 3), Decl(functionImplementations.ts, 25, 3), Decl(functionImplementations.ts, 84, 3)) >function f() { return f();} : () => any ->f : () => any +>f : () => any, Symbol(f, Decl(functionImplementations.ts, 7, 12)) return f(); >f() : any ->f : () => any +>f : () => any, Symbol(f, Decl(functionImplementations.ts, 7, 12)) }; // FunctionExpression f with no return type annotation and indirectly references f in its body returns any var a: any = function f() { ->a : any +>a : any, Symbol(a, Decl(functionImplementations.ts, 4, 3), Decl(functionImplementations.ts, 7, 3), Decl(functionImplementations.ts, 12, 3), Decl(functionImplementations.ts, 24, 3), Decl(functionImplementations.ts, 25, 3), Decl(functionImplementations.ts, 84, 3)) >function f() { var x = f; return x;} : () => any ->f : () => any +>f : () => any, Symbol(f, Decl(functionImplementations.ts, 12, 12)) var x = f; ->x : () => any ->f : () => any +>x : () => any, Symbol(x, Decl(functionImplementations.ts, 13, 7)) +>f : () => any, Symbol(f, Decl(functionImplementations.ts, 12, 12)) return x; ->x : () => any +>x : () => any, Symbol(x, Decl(functionImplementations.ts, 13, 7)) }; // Two mutually recursive function implementations with no return type annotations function rec1() { ->rec1 : () => any +>rec1 : () => any, Symbol(rec1, Decl(functionImplementations.ts, 15, 2)) return rec2(); >rec2() : any ->rec2 : () => any +>rec2 : () => any, Symbol(rec2, Decl(functionImplementations.ts, 20, 1)) } function rec2() { ->rec2 : () => any +>rec2 : () => any, Symbol(rec2, Decl(functionImplementations.ts, 20, 1)) return rec1(); >rec1() : any ->rec1 : () => any +>rec1 : () => any, Symbol(rec1, Decl(functionImplementations.ts, 15, 2)) } var a = rec1(); ->a : any +>a : any, Symbol(a, Decl(functionImplementations.ts, 4, 3), Decl(functionImplementations.ts, 7, 3), Decl(functionImplementations.ts, 12, 3), Decl(functionImplementations.ts, 24, 3), Decl(functionImplementations.ts, 25, 3), Decl(functionImplementations.ts, 84, 3)) >rec1() : any ->rec1 : () => any +>rec1 : () => any, Symbol(rec1, Decl(functionImplementations.ts, 15, 2)) var a = rec2(); ->a : any +>a : any, Symbol(a, Decl(functionImplementations.ts, 4, 3), Decl(functionImplementations.ts, 7, 3), Decl(functionImplementations.ts, 12, 3), Decl(functionImplementations.ts, 24, 3), Decl(functionImplementations.ts, 25, 3), Decl(functionImplementations.ts, 84, 3)) >rec2() : any ->rec2 : () => any +>rec2 : () => any, Symbol(rec2, Decl(functionImplementations.ts, 20, 1)) // Two mutually recursive function implementations with return type annotation in one function rec3(): number { ->rec3 : () => number +>rec3 : () => number, Symbol(rec3, Decl(functionImplementations.ts, 25, 15)) return rec4(); >rec4() : number ->rec4 : () => number +>rec4 : () => number, Symbol(rec4, Decl(functionImplementations.ts, 30, 1)) } function rec4() { ->rec4 : () => number +>rec4 : () => number, Symbol(rec4, Decl(functionImplementations.ts, 30, 1)) return rec3(); >rec3() : number ->rec3 : () => number +>rec3 : () => number, Symbol(rec3, Decl(functionImplementations.ts, 25, 15)) } var n: number; ->n : number +>n : number, Symbol(n, Decl(functionImplementations.ts, 34, 3), Decl(functionImplementations.ts, 35, 3), Decl(functionImplementations.ts, 36, 3), Decl(functionImplementations.ts, 39, 3), Decl(functionImplementations.ts, 56, 3), Decl(functionImplementations.ts, 61, 3), Decl(functionImplementations.ts, 66, 3)) var n = rec3(); ->n : number +>n : number, Symbol(n, Decl(functionImplementations.ts, 34, 3), Decl(functionImplementations.ts, 35, 3), Decl(functionImplementations.ts, 36, 3), Decl(functionImplementations.ts, 39, 3), Decl(functionImplementations.ts, 56, 3), Decl(functionImplementations.ts, 61, 3), Decl(functionImplementations.ts, 66, 3)) >rec3() : number ->rec3 : () => number +>rec3 : () => number, Symbol(rec3, Decl(functionImplementations.ts, 25, 15)) var n = rec4(); ->n : number +>n : number, Symbol(n, Decl(functionImplementations.ts, 34, 3), Decl(functionImplementations.ts, 35, 3), Decl(functionImplementations.ts, 36, 3), Decl(functionImplementations.ts, 39, 3), Decl(functionImplementations.ts, 56, 3), Decl(functionImplementations.ts, 61, 3), Decl(functionImplementations.ts, 66, 3)) >rec4() : number ->rec4 : () => number +>rec4 : () => number, Symbol(rec4, Decl(functionImplementations.ts, 30, 1)) // FunctionExpression with no return type annotation and returns a number var n = function () { ->n : number +>n : number, Symbol(n, Decl(functionImplementations.ts, 34, 3), Decl(functionImplementations.ts, 35, 3), Decl(functionImplementations.ts, 36, 3), Decl(functionImplementations.ts, 39, 3), Decl(functionImplementations.ts, 56, 3), Decl(functionImplementations.ts, 61, 3), Decl(functionImplementations.ts, 66, 3)) >function () { return 3;} () : number >function () { return 3;} : () => number return 3; +>3 : number + } (); // FunctionExpression with no return type annotation and returns null var nu = null; ->nu : any +>nu : any, Symbol(nu, Decl(functionImplementations.ts, 44, 3), Decl(functionImplementations.ts, 45, 3)) +>null : null var nu = function () { ->nu : any +>nu : any, Symbol(nu, Decl(functionImplementations.ts, 44, 3), Decl(functionImplementations.ts, 45, 3)) >function () { return null;} () : any >function () { return null;} : () => any return null; +>null : null + } (); // FunctionExpression with no return type annotation and returns undefined var un = undefined; ->un : any ->undefined : undefined +>un : any, Symbol(un, Decl(functionImplementations.ts, 50, 3), Decl(functionImplementations.ts, 51, 3)) +>undefined : undefined, Symbol(undefined) var un = function () { ->un : any +>un : any, Symbol(un, Decl(functionImplementations.ts, 50, 3), Decl(functionImplementations.ts, 51, 3)) >function () { return undefined;} () : any >function () { return undefined;} : () => any return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } (); // FunctionExpression with no return type annotation and returns a type parameter type var n = function (x: T) { ->n : number +>n : number, Symbol(n, Decl(functionImplementations.ts, 34, 3), Decl(functionImplementations.ts, 35, 3), Decl(functionImplementations.ts, 36, 3), Decl(functionImplementations.ts, 39, 3), Decl(functionImplementations.ts, 56, 3), Decl(functionImplementations.ts, 61, 3), Decl(functionImplementations.ts, 66, 3)) >function (x: T) { return x;} (4) : number >function (x: T) { return x;} : (x: T) => T ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(functionImplementations.ts, 56, 18)) +>x : T, Symbol(x, Decl(functionImplementations.ts, 56, 21)) +>T : T, Symbol(T, Decl(functionImplementations.ts, 56, 18)) return x; ->x : T +>x : T, Symbol(x, Decl(functionImplementations.ts, 56, 21)) } (4); +>4 : number // FunctionExpression with no return type annotation and returns a constrained type parameter type var n = function (x: T) { ->n : number +>n : number, Symbol(n, Decl(functionImplementations.ts, 34, 3), Decl(functionImplementations.ts, 35, 3), Decl(functionImplementations.ts, 36, 3), Decl(functionImplementations.ts, 39, 3), Decl(functionImplementations.ts, 56, 3), Decl(functionImplementations.ts, 61, 3), Decl(functionImplementations.ts, 66, 3)) >function (x: T) { return x;} (4) : number >function (x: T) { return x;} : (x: T) => T ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(functionImplementations.ts, 61, 18)) +>x : T, Symbol(x, Decl(functionImplementations.ts, 61, 32)) +>T : T, Symbol(T, Decl(functionImplementations.ts, 61, 18)) return x; ->x : T +>x : T, Symbol(x, Decl(functionImplementations.ts, 61, 32)) } (4); +>4 : number // FunctionExpression with no return type annotation with multiple return statements with identical types var n = function () { ->n : number +>n : number, Symbol(n, Decl(functionImplementations.ts, 34, 3), Decl(functionImplementations.ts, 35, 3), Decl(functionImplementations.ts, 36, 3), Decl(functionImplementations.ts, 39, 3), Decl(functionImplementations.ts, 56, 3), Decl(functionImplementations.ts, 61, 3), Decl(functionImplementations.ts, 66, 3)) >function () { return 3; return 5;}() : number >function () { return 3; return 5;} : () => number return 3; +>3 : number + return 5; +>5 : number + }(); // Otherwise, the inferred return type is the first of the types of the return statement expressions @@ -174,116 +185,118 @@ var n = function () { // A compile - time error occurs if no return statement expression has a type that is a supertype of each of the others. // FunctionExpression with no return type annotation with multiple return statements with subtype relation between returns class Base { private m; } ->Base : Base ->m : any +>Base : Base, Symbol(Base, Decl(functionImplementations.ts, 69, 4)) +>m : any, Symbol(m, Decl(functionImplementations.ts, 76, 12)) class Derived extends Base { private q; } ->Derived : Derived ->Base : Base ->q : any +>Derived : Derived, Symbol(Derived, Decl(functionImplementations.ts, 76, 25)) +>Base : Base, Symbol(Base, Decl(functionImplementations.ts, 69, 4)) +>q : any, Symbol(q, Decl(functionImplementations.ts, 77, 28)) var b: Base; ->b : Base ->Base : Base +>b : Base, Symbol(b, Decl(functionImplementations.ts, 78, 3), Decl(functionImplementations.ts, 79, 3)) +>Base : Base, Symbol(Base, Decl(functionImplementations.ts, 69, 4)) var b = function () { ->b : Base +>b : Base, Symbol(b, Decl(functionImplementations.ts, 78, 3), Decl(functionImplementations.ts, 79, 3)) >function () { return new Base(); return new Derived();} () : Base >function () { return new Base(); return new Derived();} : () => Base return new Base(); return new Derived(); >new Base() : Base ->Base : typeof Base +>Base : typeof Base, Symbol(Base, Decl(functionImplementations.ts, 69, 4)) >new Derived() : Derived ->Derived : typeof Derived +>Derived : typeof Derived, Symbol(Derived, Decl(functionImplementations.ts, 76, 25)) } (); // FunctionExpression with no return type annotation with multiple return statements with one a recursive call var a = function f() { ->a : any +>a : any, Symbol(a, Decl(functionImplementations.ts, 4, 3), Decl(functionImplementations.ts, 7, 3), Decl(functionImplementations.ts, 12, 3), Decl(functionImplementations.ts, 24, 3), Decl(functionImplementations.ts, 25, 3), Decl(functionImplementations.ts, 84, 3)) >function f() { return new Base(); return new Derived(); return f(); // ?} () : any >function f() { return new Base(); return new Derived(); return f(); // ?} : () => any ->f : () => any +>f : () => any, Symbol(f, Decl(functionImplementations.ts, 84, 7)) return new Base(); return new Derived(); return f(); // ? >new Base() : Base ->Base : typeof Base +>Base : typeof Base, Symbol(Base, Decl(functionImplementations.ts, 69, 4)) >new Derived() : Derived ->Derived : typeof Derived +>Derived : typeof Derived, Symbol(Derived, Decl(functionImplementations.ts, 76, 25)) >f() : any ->f : () => any +>f : () => any, Symbol(f, Decl(functionImplementations.ts, 84, 7)) } (); // FunctionExpression with non -void return type annotation with a single throw statement undefined === function (): number { >undefined === function (): number { throw undefined;} : boolean ->undefined : undefined +>undefined : undefined, Symbol(undefined) >function (): number { throw undefined;} : () => number throw undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) }; // Type of 'this' in function implementation is 'any' function thisFunc() { ->thisFunc : () => void +>thisFunc : () => void, Symbol(thisFunc, Decl(functionImplementations.ts, 91, 2)) var x = this; ->x : any +>x : any, Symbol(x, Decl(functionImplementations.ts, 95, 7), Decl(functionImplementations.ts, 96, 7)) >this : any var x: any; ->x : any +>x : any, Symbol(x, Decl(functionImplementations.ts, 95, 7), Decl(functionImplementations.ts, 96, 7)) } // Function signature with optional parameter, no type annotation and initializer has initializer's type function opt1(n = 4) { ->opt1 : (n?: number) => void ->n : number +>opt1 : (n?: number) => void, Symbol(opt1, Decl(functionImplementations.ts, 97, 1)) +>n : number, Symbol(n, Decl(functionImplementations.ts, 100, 14)) +>4 : number var m = n; ->m : number ->n : number +>m : number, Symbol(m, Decl(functionImplementations.ts, 101, 7), Decl(functionImplementations.ts, 102, 7)) +>n : number, Symbol(n, Decl(functionImplementations.ts, 100, 14)) var m: number; ->m : number +>m : number, Symbol(m, Decl(functionImplementations.ts, 101, 7), Decl(functionImplementations.ts, 102, 7)) } // Function signature with optional parameter, no type annotation and initializer has initializer's widened type function opt2(n = { x: null, y: undefined }) { ->opt2 : (n?: { x: any; y: any; }) => void ->n : { x: any; y: any; } +>opt2 : (n?: { x: any; y: any; }) => void, Symbol(opt2, Decl(functionImplementations.ts, 103, 1)) +>n : { x: any; y: any; }, Symbol(n, Decl(functionImplementations.ts, 106, 14)) >{ x: null, y: undefined } : { x: null; y: undefined; } ->x : null ->y : undefined ->undefined : undefined +>x : null, Symbol(x, Decl(functionImplementations.ts, 106, 19)) +>null : null +>y : undefined, Symbol(y, Decl(functionImplementations.ts, 106, 28)) +>undefined : undefined, Symbol(undefined) var m = n; ->m : { x: any; y: any; } ->n : { x: any; y: any; } +>m : { x: any; y: any; }, Symbol(m, Decl(functionImplementations.ts, 107, 7), Decl(functionImplementations.ts, 108, 7)) +>n : { x: any; y: any; }, Symbol(n, Decl(functionImplementations.ts, 106, 14)) var m: { x: any; y: any }; ->m : { x: any; y: any; } ->x : any ->y : any +>m : { x: any; y: any; }, Symbol(m, Decl(functionImplementations.ts, 107, 7), Decl(functionImplementations.ts, 108, 7)) +>x : any, Symbol(x, Decl(functionImplementations.ts, 108, 12)) +>y : any, Symbol(y, Decl(functionImplementations.ts, 108, 20)) } // Function signature with initializer referencing other parameter to the left function opt3(n: number, m = n) { ->opt3 : (n: number, m?: number) => void ->n : number ->m : number ->n : number +>opt3 : (n: number, m?: number) => void, Symbol(opt3, Decl(functionImplementations.ts, 109, 1)) +>n : number, Symbol(n, Decl(functionImplementations.ts, 112, 14)) +>m : number, Symbol(m, Decl(functionImplementations.ts, 112, 24)) +>n : number, Symbol(n, Decl(functionImplementations.ts, 112, 14)) var y = m; ->y : number ->m : number +>y : number, Symbol(y, Decl(functionImplementations.ts, 113, 7), Decl(functionImplementations.ts, 114, 7)) +>m : number, Symbol(m, Decl(functionImplementations.ts, 112, 24)) var y: number; ->y : number +>y : number, Symbol(y, Decl(functionImplementations.ts, 113, 7), Decl(functionImplementations.ts, 114, 7)) } // Function signature with optional parameter has correct codegen @@ -291,112 +304,113 @@ function opt3(n: number, m = n) { // FunctionExpression with non -void return type annotation return with no expression function f6(): number { ->f6 : () => number +>f6 : () => number, Symbol(f6, Decl(functionImplementations.ts, 115, 1)) return; } class Derived2 extends Base { private r: string; } ->Derived2 : Derived2 ->Base : Base ->r : string +>Derived2 : Derived2, Symbol(Derived2, Decl(functionImplementations.ts, 123, 1)) +>Base : Base, Symbol(Base, Decl(functionImplementations.ts, 69, 4)) +>r : string, Symbol(r, Decl(functionImplementations.ts, 125, 29)) class AnotherClass { private x } ->AnotherClass : AnotherClass ->x : any +>AnotherClass : AnotherClass, Symbol(AnotherClass, Decl(functionImplementations.ts, 125, 50)) +>x : any, Symbol(x, Decl(functionImplementations.ts, 126, 20)) // if f is a contextually typed function expression, the inferred return type is the union type // of the types of the return statement expressions in the function body, // ignoring return statements with no expressions. var f7: (x: number) => string | number = x => { // should be (x: number) => number | string ->f7 : (x: number) => string | number ->x : number +>f7 : (x: number) => string | number, Symbol(f7, Decl(functionImplementations.ts, 130, 3)) +>x : number, Symbol(x, Decl(functionImplementations.ts, 130, 9)) >x => { // should be (x: number) => number | string if (x < 0) { return x; } return x.toString();} : (x: number) => string | number ->x : number +>x : number, Symbol(x, Decl(functionImplementations.ts, 130, 40)) if (x < 0) { return x; } >x < 0 : boolean ->x : number ->x : number +>x : number, Symbol(x, Decl(functionImplementations.ts, 130, 40)) +>0 : number +>x : number, Symbol(x, Decl(functionImplementations.ts, 130, 40)) return x.toString(); >x.toString() : string ->x.toString : (radix?: number) => string ->x : number ->toString : (radix?: number) => string +>x.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>x : number, Symbol(x, Decl(functionImplementations.ts, 130, 40)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) } var f8: (x: number) => any = x => { // should be (x: number) => Base ->f8 : (x: number) => any ->x : number +>f8 : (x: number) => any, Symbol(f8, Decl(functionImplementations.ts, 134, 3)) +>x : number, Symbol(x, Decl(functionImplementations.ts, 134, 9)) >x => { // should be (x: number) => Base return new Base(); return new Derived2();} : (x: number) => Base ->x : number +>x : number, Symbol(x, Decl(functionImplementations.ts, 134, 28)) return new Base(); >new Base() : Base ->Base : typeof Base +>Base : typeof Base, Symbol(Base, Decl(functionImplementations.ts, 69, 4)) return new Derived2(); >new Derived2() : Derived2 ->Derived2 : typeof Derived2 +>Derived2 : typeof Derived2, Symbol(Derived2, Decl(functionImplementations.ts, 123, 1)) } var f9: (x: number) => any = x => { // should be (x: number) => Base ->f9 : (x: number) => any ->x : number +>f9 : (x: number) => any, Symbol(f9, Decl(functionImplementations.ts, 138, 3)) +>x : number, Symbol(x, Decl(functionImplementations.ts, 138, 9)) >x => { // should be (x: number) => Base return new Base(); return new Derived(); return new Derived2();} : (x: number) => Base ->x : number +>x : number, Symbol(x, Decl(functionImplementations.ts, 138, 28)) return new Base(); >new Base() : Base ->Base : typeof Base +>Base : typeof Base, Symbol(Base, Decl(functionImplementations.ts, 69, 4)) return new Derived(); >new Derived() : Derived ->Derived : typeof Derived +>Derived : typeof Derived, Symbol(Derived, Decl(functionImplementations.ts, 76, 25)) return new Derived2(); >new Derived2() : Derived2 ->Derived2 : typeof Derived2 +>Derived2 : typeof Derived2, Symbol(Derived2, Decl(functionImplementations.ts, 123, 1)) } var f10: (x: number) => any = x => { // should be (x: number) => Derived | Derived1 ->f10 : (x: number) => any ->x : number +>f10 : (x: number) => any, Symbol(f10, Decl(functionImplementations.ts, 143, 3)) +>x : number, Symbol(x, Decl(functionImplementations.ts, 143, 10)) >x => { // should be (x: number) => Derived | Derived1 return new Derived(); return new Derived2();} : (x: number) => Derived | Derived2 ->x : number +>x : number, Symbol(x, Decl(functionImplementations.ts, 143, 29)) return new Derived(); >new Derived() : Derived ->Derived : typeof Derived +>Derived : typeof Derived, Symbol(Derived, Decl(functionImplementations.ts, 76, 25)) return new Derived2(); >new Derived2() : Derived2 ->Derived2 : typeof Derived2 +>Derived2 : typeof Derived2, Symbol(Derived2, Decl(functionImplementations.ts, 123, 1)) } var f11: (x: number) => any = x => { // should be (x: number) => Base | AnotherClass ->f11 : (x: number) => any ->x : number +>f11 : (x: number) => any, Symbol(f11, Decl(functionImplementations.ts, 147, 3)) +>x : number, Symbol(x, Decl(functionImplementations.ts, 147, 10)) >x => { // should be (x: number) => Base | AnotherClass return new Base(); return new AnotherClass();} : (x: number) => Base | AnotherClass ->x : number +>x : number, Symbol(x, Decl(functionImplementations.ts, 147, 29)) return new Base(); >new Base() : Base ->Base : typeof Base +>Base : typeof Base, Symbol(Base, Decl(functionImplementations.ts, 69, 4)) return new AnotherClass(); >new AnotherClass() : AnotherClass ->AnotherClass : typeof AnotherClass +>AnotherClass : typeof AnotherClass, Symbol(AnotherClass, Decl(functionImplementations.ts, 125, 50)) } var f12: (x: number) => any = x => { // should be (x: number) => Base | AnotherClass ->f12 : (x: number) => any ->x : number +>f12 : (x: number) => any, Symbol(f12, Decl(functionImplementations.ts, 151, 3)) +>x : number, Symbol(x, Decl(functionImplementations.ts, 151, 10)) >x => { // should be (x: number) => Base | AnotherClass return new Base(); return; // should be ignored return new AnotherClass();} : (x: number) => Base | AnotherClass ->x : number +>x : number, Symbol(x, Decl(functionImplementations.ts, 151, 29)) return new Base(); >new Base() : Base ->Base : typeof Base +>Base : typeof Base, Symbol(Base, Decl(functionImplementations.ts, 69, 4)) return; // should be ignored return new AnotherClass(); >new AnotherClass() : AnotherClass ->AnotherClass : typeof AnotherClass +>AnotherClass : typeof AnotherClass, Symbol(AnotherClass, Decl(functionImplementations.ts, 125, 50)) } diff --git a/tests/baselines/reference/functionInIfStatementInModule.types b/tests/baselines/reference/functionInIfStatementInModule.types index 773fd9c4186..b41c0f32839 100644 --- a/tests/baselines/reference/functionInIfStatementInModule.types +++ b/tests/baselines/reference/functionInIfStatementInModule.types @@ -1,12 +1,14 @@ === tests/cases/compiler/functionInIfStatementInModule.ts === module Midori ->Midori : typeof Midori +>Midori : typeof Midori, Symbol(Midori, Decl(functionInIfStatementInModule.ts, 0, 0)) { if (false) { +>false : boolean + function Foo(src) ->Foo : (src: any) => void ->src : any +>Foo : (src: any) => void, Symbol(Foo, Decl(functionInIfStatementInModule.ts, 3, 16)) +>src : any, Symbol(src, Decl(functionInIfStatementInModule.ts, 4, 21)) { } } diff --git a/tests/baselines/reference/functionLiteral.types b/tests/baselines/reference/functionLiteral.types index 7a57f0b1e1b..411de1a052b 100644 --- a/tests/baselines/reference/functionLiteral.types +++ b/tests/baselines/reference/functionLiteral.types @@ -2,40 +2,41 @@ // basic valid forms of function literals var x = () => 1; ->x : () => number +>x : () => number, Symbol(x, Decl(functionLiteral.ts, 2, 3), Decl(functionLiteral.ts, 3, 3)) >() => 1 : () => number +>1 : number var x: { ->x : () => number +>x : () => number, Symbol(x, Decl(functionLiteral.ts, 2, 3), Decl(functionLiteral.ts, 3, 3)) (): number; } var y: { (x: string): string; }; ->y : (x: string) => string ->x : string +>y : (x: string) => string, Symbol(y, Decl(functionLiteral.ts, 7, 3), Decl(functionLiteral.ts, 8, 3)) +>x : string, Symbol(x, Decl(functionLiteral.ts, 7, 10)) var y: (x: string) => string; ->y : (x: string) => string ->x : string +>y : (x: string) => string, Symbol(y, Decl(functionLiteral.ts, 7, 3), Decl(functionLiteral.ts, 8, 3)) +>x : string, Symbol(x, Decl(functionLiteral.ts, 8, 8)) var y2: { (x: T): T; } = (x: T) => x ->y2 : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>y2 : (x: T) => T, Symbol(y2, Decl(functionLiteral.ts, 9, 3)) +>T : T, Symbol(T, Decl(functionLiteral.ts, 9, 11)) +>x : T, Symbol(x, Decl(functionLiteral.ts, 9, 14)) +>T : T, Symbol(T, Decl(functionLiteral.ts, 9, 11)) +>T : T, Symbol(T, Decl(functionLiteral.ts, 9, 11)) >(x: T) => x : (x: T) => T ->T : T ->x : T ->T : T ->x : T +>T : T, Symbol(T, Decl(functionLiteral.ts, 9, 29)) +>x : T, Symbol(x, Decl(functionLiteral.ts, 9, 32)) +>T : T, Symbol(T, Decl(functionLiteral.ts, 9, 29)) +>x : T, Symbol(x, Decl(functionLiteral.ts, 9, 32)) var z: { new (x: number): number; }; ->z : new (x: number) => number ->x : number +>z : new (x: number) => number, Symbol(z, Decl(functionLiteral.ts, 11, 3), Decl(functionLiteral.ts, 12, 3)) +>x : number, Symbol(x, Decl(functionLiteral.ts, 11, 14)) var z: new (x: number) => number; ->z : new (x: number) => number ->x : number +>z : new (x: number) => number, Symbol(z, Decl(functionLiteral.ts, 11, 3), Decl(functionLiteral.ts, 12, 3)) +>x : number, Symbol(x, Decl(functionLiteral.ts, 12, 12)) diff --git a/tests/baselines/reference/functionLiteralForOverloads.types b/tests/baselines/reference/functionLiteralForOverloads.types index b04238b4ce4..eb6503b9a93 100644 --- a/tests/baselines/reference/functionLiteralForOverloads.types +++ b/tests/baselines/reference/functionLiteralForOverloads.types @@ -2,68 +2,68 @@ // basic uses of function literals with overloads var f: { ->f : { (x: string): string; (x: number): number; } +>f : { (x: string): string; (x: number): number; }, Symbol(f, Decl(functionLiteralForOverloads.ts, 2, 3)) (x: string): string; ->x : string +>x : string, Symbol(x, Decl(functionLiteralForOverloads.ts, 3, 5)) (x: number): number; ->x : number +>x : number, Symbol(x, Decl(functionLiteralForOverloads.ts, 4, 5)) } = (x) => x; >(x) => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(functionLiteralForOverloads.ts, 5, 5)) +>x : any, Symbol(x, Decl(functionLiteralForOverloads.ts, 5, 5)) var f2: { ->f2 : { (x: string): string; (x: number): number; } +>f2 : { (x: string): string; (x: number): number; }, Symbol(f2, Decl(functionLiteralForOverloads.ts, 7, 3)) (x: string): string; ->T : T ->x : string +>T : T, Symbol(T, Decl(functionLiteralForOverloads.ts, 8, 5)) +>x : string, Symbol(x, Decl(functionLiteralForOverloads.ts, 8, 8)) (x: number): number; ->T : T ->x : number +>T : T, Symbol(T, Decl(functionLiteralForOverloads.ts, 9, 5)) +>x : number, Symbol(x, Decl(functionLiteralForOverloads.ts, 9, 8)) } = (x) => x; >(x) => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(functionLiteralForOverloads.ts, 10, 5)) +>x : any, Symbol(x, Decl(functionLiteralForOverloads.ts, 10, 5)) var f3: { ->f3 : { (x: T): string; (x: T): number; } +>f3 : { (x: T): string; (x: T): number; }, Symbol(f3, Decl(functionLiteralForOverloads.ts, 12, 3)) (x: T): string; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(functionLiteralForOverloads.ts, 13, 5)) +>x : T, Symbol(x, Decl(functionLiteralForOverloads.ts, 13, 8)) +>T : T, Symbol(T, Decl(functionLiteralForOverloads.ts, 13, 5)) (x: T): number; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(functionLiteralForOverloads.ts, 14, 5)) +>x : T, Symbol(x, Decl(functionLiteralForOverloads.ts, 14, 8)) +>T : T, Symbol(T, Decl(functionLiteralForOverloads.ts, 14, 5)) } = (x) => x; >(x) => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(functionLiteralForOverloads.ts, 15, 5)) +>x : any, Symbol(x, Decl(functionLiteralForOverloads.ts, 15, 5)) var f4: { ->f4 : { (x: string): T; (x: number): T; } +>f4 : { (x: string): T; (x: number): T; }, Symbol(f4, Decl(functionLiteralForOverloads.ts, 17, 3)) (x: string): T; ->T : T ->x : string ->T : T +>T : T, Symbol(T, Decl(functionLiteralForOverloads.ts, 18, 5)) +>x : string, Symbol(x, Decl(functionLiteralForOverloads.ts, 18, 8)) +>T : T, Symbol(T, Decl(functionLiteralForOverloads.ts, 18, 5)) (x: number): T; ->T : T ->x : number ->T : T +>T : T, Symbol(T, Decl(functionLiteralForOverloads.ts, 19, 5)) +>x : number, Symbol(x, Decl(functionLiteralForOverloads.ts, 19, 8)) +>T : T, Symbol(T, Decl(functionLiteralForOverloads.ts, 19, 5)) } = (x) => x; >(x) => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(functionLiteralForOverloads.ts, 20, 5)) +>x : any, Symbol(x, Decl(functionLiteralForOverloads.ts, 20, 5)) diff --git a/tests/baselines/reference/functionLiteralForOverloads2.types b/tests/baselines/reference/functionLiteralForOverloads2.types index 428b97faff0..5eb2494a8ce 100644 --- a/tests/baselines/reference/functionLiteralForOverloads2.types +++ b/tests/baselines/reference/functionLiteralForOverloads2.types @@ -2,77 +2,77 @@ // basic uses of function literals with constructor overloads class C { ->C : C +>C : C, Symbol(C, Decl(functionLiteralForOverloads2.ts, 0, 0)) constructor(x: string); ->x : string +>x : string, Symbol(x, Decl(functionLiteralForOverloads2.ts, 3, 16)) constructor(x: number); ->x : number +>x : number, Symbol(x, Decl(functionLiteralForOverloads2.ts, 4, 16)) constructor(x) { } ->x : any +>x : any, Symbol(x, Decl(functionLiteralForOverloads2.ts, 5, 16)) } class D { ->D : D ->T : T +>D : D, Symbol(D, Decl(functionLiteralForOverloads2.ts, 6, 1)) +>T : T, Symbol(T, Decl(functionLiteralForOverloads2.ts, 8, 8)) constructor(x: string); ->x : string +>x : string, Symbol(x, Decl(functionLiteralForOverloads2.ts, 9, 16)) constructor(x: number); ->x : number +>x : number, Symbol(x, Decl(functionLiteralForOverloads2.ts, 10, 16)) constructor(x) { } ->x : any +>x : any, Symbol(x, Decl(functionLiteralForOverloads2.ts, 11, 16)) } var f: { ->f : { new (x: string): C; new (x: number): C; } +>f : { new (x: string): C; new (x: number): C; }, Symbol(f, Decl(functionLiteralForOverloads2.ts, 14, 3)) new(x: string): C; ->x : string ->C : C +>x : string, Symbol(x, Decl(functionLiteralForOverloads2.ts, 15, 8)) +>C : C, Symbol(C, Decl(functionLiteralForOverloads2.ts, 0, 0)) new(x: number): C; ->x : number ->C : C +>x : number, Symbol(x, Decl(functionLiteralForOverloads2.ts, 16, 8)) +>C : C, Symbol(C, Decl(functionLiteralForOverloads2.ts, 0, 0)) } = C; ->C : typeof C +>C : typeof C, Symbol(C, Decl(functionLiteralForOverloads2.ts, 0, 0)) var f2: { ->f2 : { new (x: string): C; new (x: number): C; } +>f2 : { new (x: string): C; new (x: number): C; }, Symbol(f2, Decl(functionLiteralForOverloads2.ts, 19, 3)) new(x: string): C; ->T : T ->x : string ->C : C +>T : T, Symbol(T, Decl(functionLiteralForOverloads2.ts, 20, 8)) +>x : string, Symbol(x, Decl(functionLiteralForOverloads2.ts, 20, 11)) +>C : C, Symbol(C, Decl(functionLiteralForOverloads2.ts, 0, 0)) new(x: number): C; ->T : T ->x : number ->C : C +>T : T, Symbol(T, Decl(functionLiteralForOverloads2.ts, 21, 8)) +>x : number, Symbol(x, Decl(functionLiteralForOverloads2.ts, 21, 11)) +>C : C, Symbol(C, Decl(functionLiteralForOverloads2.ts, 0, 0)) } = C; ->C : typeof C +>C : typeof C, Symbol(C, Decl(functionLiteralForOverloads2.ts, 0, 0)) var f3: { ->f3 : { new (x: string): D; new (x: number): D; } +>f3 : { new (x: string): D; new (x: number): D; }, Symbol(f3, Decl(functionLiteralForOverloads2.ts, 24, 3)) new(x: string): D; ->T : T ->x : string ->D : D ->T : T +>T : T, Symbol(T, Decl(functionLiteralForOverloads2.ts, 25, 8)) +>x : string, Symbol(x, Decl(functionLiteralForOverloads2.ts, 25, 11)) +>D : D, Symbol(D, Decl(functionLiteralForOverloads2.ts, 6, 1)) +>T : T, Symbol(T, Decl(functionLiteralForOverloads2.ts, 25, 8)) new(x: number): D; ->T : T ->x : number ->D : D ->T : T +>T : T, Symbol(T, Decl(functionLiteralForOverloads2.ts, 26, 8)) +>x : number, Symbol(x, Decl(functionLiteralForOverloads2.ts, 26, 11)) +>D : D, Symbol(D, Decl(functionLiteralForOverloads2.ts, 6, 1)) +>T : T, Symbol(T, Decl(functionLiteralForOverloads2.ts, 26, 8)) } = D; ->D : typeof D +>D : typeof D, Symbol(D, Decl(functionLiteralForOverloads2.ts, 6, 1)) diff --git a/tests/baselines/reference/functionLiterals.types b/tests/baselines/reference/functionLiterals.types index ebafee491ed..0b27840455a 100644 --- a/tests/baselines/reference/functionLiterals.types +++ b/tests/baselines/reference/functionLiterals.types @@ -2,95 +2,95 @@ // PropName(ParamList):ReturnType is equivalent to PropName: { (ParamList): ReturnType } var b: { ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) func1(x: number): number; // Method signature ->func1 : (x: number) => number ->x : number +>func1 : (x: number) => number, Symbol(func1, Decl(functionLiterals.ts, 2, 8)) +>x : number, Symbol(x, Decl(functionLiterals.ts, 3, 10)) func2: (x: number) => number; // Function type literal ->func2 : (x: number) => number ->x : number +>func2 : (x: number) => number, Symbol(func2, Decl(functionLiterals.ts, 3, 29)) +>x : number, Symbol(x, Decl(functionLiterals.ts, 4, 12)) func3: { (x: number): number }; // Object type literal ->func3 : (x: number) => number ->x : number +>func3 : (x: number) => number, Symbol(func3, Decl(functionLiterals.ts, 4, 33)) +>x : number, Symbol(x, Decl(functionLiterals.ts, 5, 14)) } // no errors b.func1 = b.func2; >b.func1 = b.func2 : (x: number) => number ->b.func1 : (x: number) => number ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } ->func1 : (x: number) => number ->b.func2 : (x: number) => number ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } ->func2 : (x: number) => number +>b.func1 : (x: number) => number, Symbol(func1, Decl(functionLiterals.ts, 2, 8)) +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) +>func1 : (x: number) => number, Symbol(func1, Decl(functionLiterals.ts, 2, 8)) +>b.func2 : (x: number) => number, Symbol(func2, Decl(functionLiterals.ts, 3, 29)) +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) +>func2 : (x: number) => number, Symbol(func2, Decl(functionLiterals.ts, 3, 29)) b.func1 = b.func3; >b.func1 = b.func3 : (x: number) => number ->b.func1 : (x: number) => number ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } ->func1 : (x: number) => number ->b.func3 : (x: number) => number ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } ->func3 : (x: number) => number +>b.func1 : (x: number) => number, Symbol(func1, Decl(functionLiterals.ts, 2, 8)) +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) +>func1 : (x: number) => number, Symbol(func1, Decl(functionLiterals.ts, 2, 8)) +>b.func3 : (x: number) => number, Symbol(func3, Decl(functionLiterals.ts, 4, 33)) +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) +>func3 : (x: number) => number, Symbol(func3, Decl(functionLiterals.ts, 4, 33)) b.func2 = b.func1; >b.func2 = b.func1 : (x: number) => number ->b.func2 : (x: number) => number ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } ->func2 : (x: number) => number ->b.func1 : (x: number) => number ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } ->func1 : (x: number) => number +>b.func2 : (x: number) => number, Symbol(func2, Decl(functionLiterals.ts, 3, 29)) +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) +>func2 : (x: number) => number, Symbol(func2, Decl(functionLiterals.ts, 3, 29)) +>b.func1 : (x: number) => number, Symbol(func1, Decl(functionLiterals.ts, 2, 8)) +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) +>func1 : (x: number) => number, Symbol(func1, Decl(functionLiterals.ts, 2, 8)) b.func2 = b.func3; >b.func2 = b.func3 : (x: number) => number ->b.func2 : (x: number) => number ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } ->func2 : (x: number) => number ->b.func3 : (x: number) => number ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } ->func3 : (x: number) => number +>b.func2 : (x: number) => number, Symbol(func2, Decl(functionLiterals.ts, 3, 29)) +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) +>func2 : (x: number) => number, Symbol(func2, Decl(functionLiterals.ts, 3, 29)) +>b.func3 : (x: number) => number, Symbol(func3, Decl(functionLiterals.ts, 4, 33)) +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) +>func3 : (x: number) => number, Symbol(func3, Decl(functionLiterals.ts, 4, 33)) b.func3 = b.func1; >b.func3 = b.func1 : (x: number) => number ->b.func3 : (x: number) => number ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } ->func3 : (x: number) => number ->b.func1 : (x: number) => number ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } ->func1 : (x: number) => number +>b.func3 : (x: number) => number, Symbol(func3, Decl(functionLiterals.ts, 4, 33)) +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) +>func3 : (x: number) => number, Symbol(func3, Decl(functionLiterals.ts, 4, 33)) +>b.func1 : (x: number) => number, Symbol(func1, Decl(functionLiterals.ts, 2, 8)) +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) +>func1 : (x: number) => number, Symbol(func1, Decl(functionLiterals.ts, 2, 8)) b.func3 = b.func2; >b.func3 = b.func2 : (x: number) => number ->b.func3 : (x: number) => number ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } ->func3 : (x: number) => number ->b.func2 : (x: number) => number ->b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } ->func2 : (x: number) => number +>b.func3 : (x: number) => number, Symbol(func3, Decl(functionLiterals.ts, 4, 33)) +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) +>func3 : (x: number) => number, Symbol(func3, Decl(functionLiterals.ts, 4, 33)) +>b.func2 : (x: number) => number, Symbol(func2, Decl(functionLiterals.ts, 3, 29)) +>b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; }, Symbol(b, Decl(functionLiterals.ts, 2, 3)) +>func2 : (x: number) => number, Symbol(func2, Decl(functionLiterals.ts, 3, 29)) var c: { ->c : { func4(x: number): number; func4(s: string): string; func5: { (x: number): number; (s: string): string; }; } +>c : { func4(x: number): number; func4(s: string): string; func5: { (x: number): number; (s: string): string; }; }, Symbol(c, Decl(functionLiterals.ts, 16, 3)) func4(x: number): number; ->func4 : { (x: number): number; (s: string): string; } ->x : number +>func4 : { (x: number): number; (s: string): string; }, Symbol(func4, Decl(functionLiterals.ts, 16, 8), Decl(functionLiterals.ts, 17, 29)) +>x : number, Symbol(x, Decl(functionLiterals.ts, 17, 10)) func4(s: string): string; ->func4 : { (x: number): number; (s: string): string; } ->s : string +>func4 : { (x: number): number; (s: string): string; }, Symbol(func4, Decl(functionLiterals.ts, 16, 8), Decl(functionLiterals.ts, 17, 29)) +>s : string, Symbol(s, Decl(functionLiterals.ts, 18, 10)) func5: { ->func5 : { (x: number): number; (s: string): string; } +>func5 : { (x: number): number; (s: string): string; }, Symbol(func5, Decl(functionLiterals.ts, 18, 29)) (x: number): number; ->x : number +>x : number, Symbol(x, Decl(functionLiterals.ts, 20, 9)) (s: string): string; ->s : string +>s : string, Symbol(s, Decl(functionLiterals.ts, 21, 9)) }; }; @@ -98,127 +98,127 @@ var c: { // no errors c.func4 = c.func5; >c.func4 = c.func5 : { (x: number): number; (s: string): string; } ->c.func4 : { (x: number): number; (s: string): string; } ->c : { func4(x: number): number; func4(s: string): string; func5: { (x: number): number; (s: string): string; }; } ->func4 : { (x: number): number; (s: string): string; } ->c.func5 : { (x: number): number; (s: string): string; } ->c : { func4(x: number): number; func4(s: string): string; func5: { (x: number): number; (s: string): string; }; } ->func5 : { (x: number): number; (s: string): string; } +>c.func4 : { (x: number): number; (s: string): string; }, Symbol(func4, Decl(functionLiterals.ts, 16, 8), Decl(functionLiterals.ts, 17, 29)) +>c : { func4(x: number): number; func4(s: string): string; func5: { (x: number): number; (s: string): string; }; }, Symbol(c, Decl(functionLiterals.ts, 16, 3)) +>func4 : { (x: number): number; (s: string): string; }, Symbol(func4, Decl(functionLiterals.ts, 16, 8), Decl(functionLiterals.ts, 17, 29)) +>c.func5 : { (x: number): number; (s: string): string; }, Symbol(func5, Decl(functionLiterals.ts, 18, 29)) +>c : { func4(x: number): number; func4(s: string): string; func5: { (x: number): number; (s: string): string; }; }, Symbol(c, Decl(functionLiterals.ts, 16, 3)) +>func5 : { (x: number): number; (s: string): string; }, Symbol(func5, Decl(functionLiterals.ts, 18, 29)) c.func5 = c.func4; >c.func5 = c.func4 : { (x: number): number; (s: string): string; } ->c.func5 : { (x: number): number; (s: string): string; } ->c : { func4(x: number): number; func4(s: string): string; func5: { (x: number): number; (s: string): string; }; } ->func5 : { (x: number): number; (s: string): string; } ->c.func4 : { (x: number): number; (s: string): string; } ->c : { func4(x: number): number; func4(s: string): string; func5: { (x: number): number; (s: string): string; }; } ->func4 : { (x: number): number; (s: string): string; } +>c.func5 : { (x: number): number; (s: string): string; }, Symbol(func5, Decl(functionLiterals.ts, 18, 29)) +>c : { func4(x: number): number; func4(s: string): string; func5: { (x: number): number; (s: string): string; }; }, Symbol(c, Decl(functionLiterals.ts, 16, 3)) +>func5 : { (x: number): number; (s: string): string; }, Symbol(func5, Decl(functionLiterals.ts, 18, 29)) +>c.func4 : { (x: number): number; (s: string): string; }, Symbol(func4, Decl(functionLiterals.ts, 16, 8), Decl(functionLiterals.ts, 17, 29)) +>c : { func4(x: number): number; func4(s: string): string; func5: { (x: number): number; (s: string): string; }; }, Symbol(c, Decl(functionLiterals.ts, 16, 3)) +>func4 : { (x: number): number; (s: string): string; }, Symbol(func4, Decl(functionLiterals.ts, 16, 8), Decl(functionLiterals.ts, 17, 29)) // generic versions var b2: { ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) func1(x: T): number; // Method signature ->func1 : (x: T) => number ->T : T ->x : T ->T : T +>func1 : (x: T) => number, Symbol(func1, Decl(functionLiterals.ts, 30, 9)) +>T : T, Symbol(T, Decl(functionLiterals.ts, 31, 10)) +>x : T, Symbol(x, Decl(functionLiterals.ts, 31, 13)) +>T : T, Symbol(T, Decl(functionLiterals.ts, 31, 10)) func2: (x: T) => number; // Function type literal ->func2 : (x: T) => number ->T : T ->x : T ->T : T +>func2 : (x: T) => number, Symbol(func2, Decl(functionLiterals.ts, 31, 27)) +>T : T, Symbol(T, Decl(functionLiterals.ts, 32, 12)) +>x : T, Symbol(x, Decl(functionLiterals.ts, 32, 15)) +>T : T, Symbol(T, Decl(functionLiterals.ts, 32, 12)) func3: { (x: T): number }; // Object type literal ->func3 : (x: T) => number ->T : T ->x : T ->T : T +>func3 : (x: T) => number, Symbol(func3, Decl(functionLiterals.ts, 32, 31)) +>T : T, Symbol(T, Decl(functionLiterals.ts, 33, 14)) +>x : T, Symbol(x, Decl(functionLiterals.ts, 33, 17)) +>T : T, Symbol(T, Decl(functionLiterals.ts, 33, 14)) } // no errors b2.func1 = b2.func2; >b2.func1 = b2.func2 : (x: T) => number ->b2.func1 : (x: T) => number ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } ->func1 : (x: T) => number ->b2.func2 : (x: T) => number ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } ->func2 : (x: T) => number +>b2.func1 : (x: T) => number, Symbol(func1, Decl(functionLiterals.ts, 30, 9)) +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) +>func1 : (x: T) => number, Symbol(func1, Decl(functionLiterals.ts, 30, 9)) +>b2.func2 : (x: T) => number, Symbol(func2, Decl(functionLiterals.ts, 31, 27)) +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) +>func2 : (x: T) => number, Symbol(func2, Decl(functionLiterals.ts, 31, 27)) b2.func1 = b2.func3; >b2.func1 = b2.func3 : (x: T) => number ->b2.func1 : (x: T) => number ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } ->func1 : (x: T) => number ->b2.func3 : (x: T) => number ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } ->func3 : (x: T) => number +>b2.func1 : (x: T) => number, Symbol(func1, Decl(functionLiterals.ts, 30, 9)) +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) +>func1 : (x: T) => number, Symbol(func1, Decl(functionLiterals.ts, 30, 9)) +>b2.func3 : (x: T) => number, Symbol(func3, Decl(functionLiterals.ts, 32, 31)) +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) +>func3 : (x: T) => number, Symbol(func3, Decl(functionLiterals.ts, 32, 31)) b2.func2 = b2.func1; >b2.func2 = b2.func1 : (x: T) => number ->b2.func2 : (x: T) => number ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } ->func2 : (x: T) => number ->b2.func1 : (x: T) => number ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } ->func1 : (x: T) => number +>b2.func2 : (x: T) => number, Symbol(func2, Decl(functionLiterals.ts, 31, 27)) +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) +>func2 : (x: T) => number, Symbol(func2, Decl(functionLiterals.ts, 31, 27)) +>b2.func1 : (x: T) => number, Symbol(func1, Decl(functionLiterals.ts, 30, 9)) +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) +>func1 : (x: T) => number, Symbol(func1, Decl(functionLiterals.ts, 30, 9)) b2.func2 = b2.func3; >b2.func2 = b2.func3 : (x: T) => number ->b2.func2 : (x: T) => number ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } ->func2 : (x: T) => number ->b2.func3 : (x: T) => number ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } ->func3 : (x: T) => number +>b2.func2 : (x: T) => number, Symbol(func2, Decl(functionLiterals.ts, 31, 27)) +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) +>func2 : (x: T) => number, Symbol(func2, Decl(functionLiterals.ts, 31, 27)) +>b2.func3 : (x: T) => number, Symbol(func3, Decl(functionLiterals.ts, 32, 31)) +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) +>func3 : (x: T) => number, Symbol(func3, Decl(functionLiterals.ts, 32, 31)) b2.func3 = b2.func1; >b2.func3 = b2.func1 : (x: T) => number ->b2.func3 : (x: T) => number ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } ->func3 : (x: T) => number ->b2.func1 : (x: T) => number ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } ->func1 : (x: T) => number +>b2.func3 : (x: T) => number, Symbol(func3, Decl(functionLiterals.ts, 32, 31)) +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) +>func3 : (x: T) => number, Symbol(func3, Decl(functionLiterals.ts, 32, 31)) +>b2.func1 : (x: T) => number, Symbol(func1, Decl(functionLiterals.ts, 30, 9)) +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) +>func1 : (x: T) => number, Symbol(func1, Decl(functionLiterals.ts, 30, 9)) b2.func3 = b2.func2; >b2.func3 = b2.func2 : (x: T) => number ->b2.func3 : (x: T) => number ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } ->func3 : (x: T) => number ->b2.func2 : (x: T) => number ->b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; } ->func2 : (x: T) => number +>b2.func3 : (x: T) => number, Symbol(func3, Decl(functionLiterals.ts, 32, 31)) +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) +>func3 : (x: T) => number, Symbol(func3, Decl(functionLiterals.ts, 32, 31)) +>b2.func2 : (x: T) => number, Symbol(func2, Decl(functionLiterals.ts, 31, 27)) +>b2 : { func1(x: T): number; func2: (x: T) => number; func3: (x: T) => number; }, Symbol(b2, Decl(functionLiterals.ts, 30, 3)) +>func2 : (x: T) => number, Symbol(func2, Decl(functionLiterals.ts, 31, 27)) var c2: { ->c2 : { func4(x: T): number; func4(s: T): string; func5: { (x: T): number; (s: T): string; }; } +>c2 : { func4(x: T): number; func4(s: T): string; func5: { (x: T): number; (s: T): string; }; }, Symbol(c2, Decl(functionLiterals.ts, 44, 3)) func4(x: T): number; ->func4 : { (x: T): number; (s: T): string; } ->T : T ->x : T ->T : T +>func4 : { (x: T): number; (s: T): string; }, Symbol(func4, Decl(functionLiterals.ts, 44, 9), Decl(functionLiterals.ts, 45, 27)) +>T : T, Symbol(T, Decl(functionLiterals.ts, 45, 10)) +>x : T, Symbol(x, Decl(functionLiterals.ts, 45, 13)) +>T : T, Symbol(T, Decl(functionLiterals.ts, 45, 10)) func4(s: T): string; ->func4 : { (x: T): number; (s: T): string; } ->T : T ->s : T ->T : T +>func4 : { (x: T): number; (s: T): string; }, Symbol(func4, Decl(functionLiterals.ts, 44, 9), Decl(functionLiterals.ts, 45, 27)) +>T : T, Symbol(T, Decl(functionLiterals.ts, 46, 10)) +>s : T, Symbol(s, Decl(functionLiterals.ts, 46, 13)) +>T : T, Symbol(T, Decl(functionLiterals.ts, 46, 10)) func5: { ->func5 : { (x: T): number; (s: T): string; } +>func5 : { (x: T): number; (s: T): string; }, Symbol(func5, Decl(functionLiterals.ts, 46, 27)) (x: T): number; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(functionLiterals.ts, 48, 9)) +>x : T, Symbol(x, Decl(functionLiterals.ts, 48, 12)) +>T : T, Symbol(T, Decl(functionLiterals.ts, 48, 9)) (s: T): string; ->T : T ->s : T ->T : T +>T : T, Symbol(T, Decl(functionLiterals.ts, 49, 9)) +>s : T, Symbol(s, Decl(functionLiterals.ts, 49, 12)) +>T : T, Symbol(T, Decl(functionLiterals.ts, 49, 9)) }; }; @@ -226,19 +226,19 @@ var c2: { // no errors c2.func4 = c2.func5; >c2.func4 = c2.func5 : { (x: T): number; (s: T): string; } ->c2.func4 : { (x: T): number; (s: T): string; } ->c2 : { func4(x: T): number; func4(s: T): string; func5: { (x: T): number; (s: T): string; }; } ->func4 : { (x: T): number; (s: T): string; } ->c2.func5 : { (x: T): number; (s: T): string; } ->c2 : { func4(x: T): number; func4(s: T): string; func5: { (x: T): number; (s: T): string; }; } ->func5 : { (x: T): number; (s: T): string; } +>c2.func4 : { (x: T): number; (s: T): string; }, Symbol(func4, Decl(functionLiterals.ts, 44, 9), Decl(functionLiterals.ts, 45, 27)) +>c2 : { func4(x: T): number; func4(s: T): string; func5: { (x: T): number; (s: T): string; }; }, Symbol(c2, Decl(functionLiterals.ts, 44, 3)) +>func4 : { (x: T): number; (s: T): string; }, Symbol(func4, Decl(functionLiterals.ts, 44, 9), Decl(functionLiterals.ts, 45, 27)) +>c2.func5 : { (x: T): number; (s: T): string; }, Symbol(func5, Decl(functionLiterals.ts, 46, 27)) +>c2 : { func4(x: T): number; func4(s: T): string; func5: { (x: T): number; (s: T): string; }; }, Symbol(c2, Decl(functionLiterals.ts, 44, 3)) +>func5 : { (x: T): number; (s: T): string; }, Symbol(func5, Decl(functionLiterals.ts, 46, 27)) c2.func5 = c2.func4; >c2.func5 = c2.func4 : { (x: T): number; (s: T): string; } ->c2.func5 : { (x: T): number; (s: T): string; } ->c2 : { func4(x: T): number; func4(s: T): string; func5: { (x: T): number; (s: T): string; }; } ->func5 : { (x: T): number; (s: T): string; } ->c2.func4 : { (x: T): number; (s: T): string; } ->c2 : { func4(x: T): number; func4(s: T): string; func5: { (x: T): number; (s: T): string; }; } ->func4 : { (x: T): number; (s: T): string; } +>c2.func5 : { (x: T): number; (s: T): string; }, Symbol(func5, Decl(functionLiterals.ts, 46, 27)) +>c2 : { func4(x: T): number; func4(s: T): string; func5: { (x: T): number; (s: T): string; }; }, Symbol(c2, Decl(functionLiterals.ts, 44, 3)) +>func5 : { (x: T): number; (s: T): string; }, Symbol(func5, Decl(functionLiterals.ts, 46, 27)) +>c2.func4 : { (x: T): number; (s: T): string; }, Symbol(func4, Decl(functionLiterals.ts, 44, 9), Decl(functionLiterals.ts, 45, 27)) +>c2 : { func4(x: T): number; func4(s: T): string; func5: { (x: T): number; (s: T): string; }; }, Symbol(c2, Decl(functionLiterals.ts, 44, 3)) +>func4 : { (x: T): number; (s: T): string; }, Symbol(func4, Decl(functionLiterals.ts, 44, 9), Decl(functionLiterals.ts, 45, 27)) diff --git a/tests/baselines/reference/functionMergedWithModule.types b/tests/baselines/reference/functionMergedWithModule.types index d0c711ab39a..8a65ef2cf3c 100644 --- a/tests/baselines/reference/functionMergedWithModule.types +++ b/tests/baselines/reference/functionMergedWithModule.types @@ -1,32 +1,33 @@ === tests/cases/compiler/functionMergedWithModule.ts === function foo(title: string) { ->foo : typeof foo ->title : string +>foo : typeof foo, Symbol(foo, Decl(functionMergedWithModule.ts, 0, 0), Decl(functionMergedWithModule.ts, 2, 1), Decl(functionMergedWithModule.ts, 7, 1)) +>title : string, Symbol(title, Decl(functionMergedWithModule.ts, 0, 13)) var x = 10; ->x : number +>x : number, Symbol(x, Decl(functionMergedWithModule.ts, 1, 7)) +>10 : number } module foo.Bar { ->foo : typeof foo ->Bar : typeof Bar +>foo : typeof foo, Symbol(foo, Decl(functionMergedWithModule.ts, 0, 0), Decl(functionMergedWithModule.ts, 2, 1), Decl(functionMergedWithModule.ts, 7, 1)) +>Bar : typeof Bar, Symbol(Bar, Decl(functionMergedWithModule.ts, 4, 11)) export function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(functionMergedWithModule.ts, 4, 16)) } } module foo.Baz { ->foo : typeof foo ->Baz : typeof Baz +>foo : typeof foo, Symbol(foo, Decl(functionMergedWithModule.ts, 0, 0), Decl(functionMergedWithModule.ts, 2, 1), Decl(functionMergedWithModule.ts, 7, 1)) +>Baz : typeof Baz, Symbol(Baz, Decl(functionMergedWithModule.ts, 9, 11)) export function g() { ->g : () => void +>g : () => void, Symbol(g, Decl(functionMergedWithModule.ts, 9, 16)) Bar.f(); >Bar.f() : void ->Bar.f : () => void ->Bar : typeof Bar ->f : () => void +>Bar.f : () => void, Symbol(Bar.f, Decl(functionMergedWithModule.ts, 4, 16)) +>Bar : typeof Bar, Symbol(Bar, Decl(functionMergedWithModule.ts, 4, 11)) +>f : () => void, Symbol(Bar.f, Decl(functionMergedWithModule.ts, 4, 16)) } } diff --git a/tests/baselines/reference/functionOnlyHasThrow.types b/tests/baselines/reference/functionOnlyHasThrow.types index d37284f547c..0b73acd59dd 100644 --- a/tests/baselines/reference/functionOnlyHasThrow.types +++ b/tests/baselines/reference/functionOnlyHasThrow.types @@ -1,8 +1,9 @@ === tests/cases/compiler/functionOnlyHasThrow.ts === function clone():number { ->clone : () => number +>clone : () => number, Symbol(clone, Decl(functionOnlyHasThrow.ts, 0, 0)) throw new Error("To be implemented"); >new Error("To be implemented") : Error ->Error : ErrorConstructor +>Error : ErrorConstructor, Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11)) +>"To be implemented" : string } diff --git a/tests/baselines/reference/functionOverloads10.types b/tests/baselines/reference/functionOverloads10.types index 8ec2bc7c589..6a264ace370 100644 --- a/tests/baselines/reference/functionOverloads10.types +++ b/tests/baselines/reference/functionOverloads10.types @@ -1,14 +1,14 @@ === tests/cases/compiler/functionOverloads10.ts === function foo(foo:string, bar:number); ->foo : { (foo: string, bar: number): any; (foo: string): any; } ->foo : string ->bar : number +>foo : { (foo: string, bar: number): any; (foo: string): any; }, Symbol(foo, Decl(functionOverloads10.ts, 0, 0), Decl(functionOverloads10.ts, 0, 37), Decl(functionOverloads10.ts, 1, 25)) +>foo : string, Symbol(foo, Decl(functionOverloads10.ts, 0, 13)) +>bar : number, Symbol(bar, Decl(functionOverloads10.ts, 0, 24)) function foo(foo:string); ->foo : { (foo: string, bar: number): any; (foo: string): any; } ->foo : string +>foo : { (foo: string, bar: number): any; (foo: string): any; }, Symbol(foo, Decl(functionOverloads10.ts, 0, 0), Decl(functionOverloads10.ts, 0, 37), Decl(functionOverloads10.ts, 1, 25)) +>foo : string, Symbol(foo, Decl(functionOverloads10.ts, 1, 13)) function foo(foo:any){ } ->foo : { (foo: string, bar: number): any; (foo: string): any; } ->foo : any +>foo : { (foo: string, bar: number): any; (foo: string): any; }, Symbol(foo, Decl(functionOverloads10.ts, 0, 0), Decl(functionOverloads10.ts, 0, 37), Decl(functionOverloads10.ts, 1, 25)) +>foo : any, Symbol(foo, Decl(functionOverloads10.ts, 2, 13)) diff --git a/tests/baselines/reference/functionOverloads12.types b/tests/baselines/reference/functionOverloads12.types index 6e4c2d9189e..b1cd31bf46e 100644 --- a/tests/baselines/reference/functionOverloads12.types +++ b/tests/baselines/reference/functionOverloads12.types @@ -1,10 +1,13 @@ === tests/cases/compiler/functionOverloads12.ts === function foo():string; ->foo : { (): string; (): number; } +>foo : { (): string; (): number; }, Symbol(foo, Decl(functionOverloads12.ts, 0, 0), Decl(functionOverloads12.ts, 0, 22), Decl(functionOverloads12.ts, 1, 22)) function foo():number; ->foo : { (): string; (): number; } +>foo : { (): string; (): number; }, Symbol(foo, Decl(functionOverloads12.ts, 0, 0), Decl(functionOverloads12.ts, 0, 22), Decl(functionOverloads12.ts, 1, 22)) function foo():any { if (true) return ""; else return 0;} ->foo : { (): string; (): number; } +>foo : { (): string; (): number; }, Symbol(foo, Decl(functionOverloads12.ts, 0, 0), Decl(functionOverloads12.ts, 0, 22), Decl(functionOverloads12.ts, 1, 22)) +>true : boolean +>"" : string +>0 : number diff --git a/tests/baselines/reference/functionOverloads13.types b/tests/baselines/reference/functionOverloads13.types index ee65bc296e7..15466d8ae5f 100644 --- a/tests/baselines/reference/functionOverloads13.types +++ b/tests/baselines/reference/functionOverloads13.types @@ -1,13 +1,14 @@ === tests/cases/compiler/functionOverloads13.ts === function foo(bar:number):string; ->foo : { (bar: number): string; (bar: number): number; } ->bar : number +>foo : { (bar: number): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads13.ts, 0, 0), Decl(functionOverloads13.ts, 0, 32), Decl(functionOverloads13.ts, 1, 32)) +>bar : number, Symbol(bar, Decl(functionOverloads13.ts, 0, 13)) function foo(bar:number):number; ->foo : { (bar: number): string; (bar: number): number; } ->bar : number +>foo : { (bar: number): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads13.ts, 0, 0), Decl(functionOverloads13.ts, 0, 32), Decl(functionOverloads13.ts, 1, 32)) +>bar : number, Symbol(bar, Decl(functionOverloads13.ts, 1, 13)) function foo(bar?:number):any { return "" } ->foo : { (bar: number): string; (bar: number): number; } ->bar : number +>foo : { (bar: number): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads13.ts, 0, 0), Decl(functionOverloads13.ts, 0, 32), Decl(functionOverloads13.ts, 1, 32)) +>bar : number, Symbol(bar, Decl(functionOverloads13.ts, 2, 13)) +>"" : string diff --git a/tests/baselines/reference/functionOverloads14.types b/tests/baselines/reference/functionOverloads14.types index 562c43965c7..9d937782cc0 100644 --- a/tests/baselines/reference/functionOverloads14.types +++ b/tests/baselines/reference/functionOverloads14.types @@ -1,15 +1,16 @@ === tests/cases/compiler/functionOverloads14.ts === function foo():{a:number;} ->foo : { (): { a: number; }; (): { a: string; }; } ->a : number +>foo : { (): { a: number; }; (): { a: string; }; }, Symbol(foo, Decl(functionOverloads14.ts, 0, 0), Decl(functionOverloads14.ts, 0, 26), Decl(functionOverloads14.ts, 1, 26)) +>a : number, Symbol(a, Decl(functionOverloads14.ts, 0, 16)) function foo():{a:string;} ->foo : { (): { a: number; }; (): { a: string; }; } ->a : string +>foo : { (): { a: number; }; (): { a: string; }; }, Symbol(foo, Decl(functionOverloads14.ts, 0, 0), Decl(functionOverloads14.ts, 0, 26), Decl(functionOverloads14.ts, 1, 26)) +>a : string, Symbol(a, Decl(functionOverloads14.ts, 1, 16)) function foo():{a:any;} { return {a:1} } ->foo : { (): { a: number; }; (): { a: string; }; } ->a : any +>foo : { (): { a: number; }; (): { a: string; }; }, Symbol(foo, Decl(functionOverloads14.ts, 0, 0), Decl(functionOverloads14.ts, 0, 26), Decl(functionOverloads14.ts, 1, 26)) +>a : any, Symbol(a, Decl(functionOverloads14.ts, 2, 16)) >{a:1} : { a: number; } ->a : number +>a : number, Symbol(a, Decl(functionOverloads14.ts, 2, 34)) +>1 : number diff --git a/tests/baselines/reference/functionOverloads15.types b/tests/baselines/reference/functionOverloads15.types index 6ca5b6709cb..75ec76e270c 100644 --- a/tests/baselines/reference/functionOverloads15.types +++ b/tests/baselines/reference/functionOverloads15.types @@ -1,19 +1,20 @@ === tests/cases/compiler/functionOverloads15.ts === function foo(foo:{a:string; b:number;}):string; ->foo : { (foo: { a: string; b: number; }): string; (foo: { a: string; b: number; }): number; } ->foo : { a: string; b: number; } ->a : string ->b : number +>foo : { (foo: { a: string; b: number; }): string; (foo: { a: string; b: number; }): number; }, Symbol(foo, Decl(functionOverloads15.ts, 0, 0), Decl(functionOverloads15.ts, 0, 47), Decl(functionOverloads15.ts, 1, 47)) +>foo : { a: string; b: number; }, Symbol(foo, Decl(functionOverloads15.ts, 0, 13)) +>a : string, Symbol(a, Decl(functionOverloads15.ts, 0, 18)) +>b : number, Symbol(b, Decl(functionOverloads15.ts, 0, 27)) function foo(foo:{a:string; b:number;}):number; ->foo : { (foo: { a: string; b: number; }): string; (foo: { a: string; b: number; }): number; } ->foo : { a: string; b: number; } ->a : string ->b : number +>foo : { (foo: { a: string; b: number; }): string; (foo: { a: string; b: number; }): number; }, Symbol(foo, Decl(functionOverloads15.ts, 0, 0), Decl(functionOverloads15.ts, 0, 47), Decl(functionOverloads15.ts, 1, 47)) +>foo : { a: string; b: number; }, Symbol(foo, Decl(functionOverloads15.ts, 1, 13)) +>a : string, Symbol(a, Decl(functionOverloads15.ts, 1, 18)) +>b : number, Symbol(b, Decl(functionOverloads15.ts, 1, 27)) function foo(foo:{a:string; b?:number;}):any { return "" } ->foo : { (foo: { a: string; b: number; }): string; (foo: { a: string; b: number; }): number; } ->foo : { a: string; b?: number; } ->a : string ->b : number +>foo : { (foo: { a: string; b: number; }): string; (foo: { a: string; b: number; }): number; }, Symbol(foo, Decl(functionOverloads15.ts, 0, 0), Decl(functionOverloads15.ts, 0, 47), Decl(functionOverloads15.ts, 1, 47)) +>foo : { a: string; b?: number; }, Symbol(foo, Decl(functionOverloads15.ts, 2, 13)) +>a : string, Symbol(a, Decl(functionOverloads15.ts, 2, 18)) +>b : number, Symbol(b, Decl(functionOverloads15.ts, 2, 27)) +>"" : string diff --git a/tests/baselines/reference/functionOverloads16.types b/tests/baselines/reference/functionOverloads16.types index 6974d0dab98..ccfa7adce13 100644 --- a/tests/baselines/reference/functionOverloads16.types +++ b/tests/baselines/reference/functionOverloads16.types @@ -1,17 +1,18 @@ === tests/cases/compiler/functionOverloads16.ts === function foo(foo:{a:string;}):string; ->foo : { (foo: { a: string; }): string; (foo: { a: string; }): number; } ->foo : { a: string; } ->a : string +>foo : { (foo: { a: string; }): string; (foo: { a: string; }): number; }, Symbol(foo, Decl(functionOverloads16.ts, 0, 0), Decl(functionOverloads16.ts, 0, 37), Decl(functionOverloads16.ts, 1, 37)) +>foo : { a: string; }, Symbol(foo, Decl(functionOverloads16.ts, 0, 13)) +>a : string, Symbol(a, Decl(functionOverloads16.ts, 0, 18)) function foo(foo:{a:string;}):number; ->foo : { (foo: { a: string; }): string; (foo: { a: string; }): number; } ->foo : { a: string; } ->a : string +>foo : { (foo: { a: string; }): string; (foo: { a: string; }): number; }, Symbol(foo, Decl(functionOverloads16.ts, 0, 0), Decl(functionOverloads16.ts, 0, 37), Decl(functionOverloads16.ts, 1, 37)) +>foo : { a: string; }, Symbol(foo, Decl(functionOverloads16.ts, 1, 13)) +>a : string, Symbol(a, Decl(functionOverloads16.ts, 1, 18)) function foo(foo:{a:string; b?:number;}):any { return "" } ->foo : { (foo: { a: string; }): string; (foo: { a: string; }): number; } ->foo : { a: string; b?: number; } ->a : string ->b : number +>foo : { (foo: { a: string; }): string; (foo: { a: string; }): number; }, Symbol(foo, Decl(functionOverloads16.ts, 0, 0), Decl(functionOverloads16.ts, 0, 37), Decl(functionOverloads16.ts, 1, 37)) +>foo : { a: string; b?: number; }, Symbol(foo, Decl(functionOverloads16.ts, 2, 13)) +>a : string, Symbol(a, Decl(functionOverloads16.ts, 2, 18)) +>b : number, Symbol(b, Decl(functionOverloads16.ts, 2, 27)) +>"" : string diff --git a/tests/baselines/reference/functionOverloads21.types b/tests/baselines/reference/functionOverloads21.types index dc9e28b7b57..b5dde128390 100644 --- a/tests/baselines/reference/functionOverloads21.types +++ b/tests/baselines/reference/functionOverloads21.types @@ -1,18 +1,19 @@ === tests/cases/compiler/functionOverloads21.ts === function foo(bar:{a:number;}[]); ->foo : { (bar: { a: number; }[]): any; (bar: { a: number; b: string; }[]): any; } ->bar : { a: number; }[] ->a : number +>foo : { (bar: { a: number; }[]): any; (bar: { a: number; b: string; }[]): any; }, Symbol(foo, Decl(functionOverloads21.ts, 0, 0), Decl(functionOverloads21.ts, 0, 32), Decl(functionOverloads21.ts, 1, 42)) +>bar : { a: number; }[], Symbol(bar, Decl(functionOverloads21.ts, 0, 13)) +>a : number, Symbol(a, Decl(functionOverloads21.ts, 0, 18)) function foo(bar:{a:number; b:string;}[]); ->foo : { (bar: { a: number; }[]): any; (bar: { a: number; b: string; }[]): any; } ->bar : { a: number; b: string; }[] ->a : number ->b : string +>foo : { (bar: { a: number; }[]): any; (bar: { a: number; b: string; }[]): any; }, Symbol(foo, Decl(functionOverloads21.ts, 0, 0), Decl(functionOverloads21.ts, 0, 32), Decl(functionOverloads21.ts, 1, 42)) +>bar : { a: number; b: string; }[], Symbol(bar, Decl(functionOverloads21.ts, 1, 13)) +>a : number, Symbol(a, Decl(functionOverloads21.ts, 1, 18)) +>b : string, Symbol(b, Decl(functionOverloads21.ts, 1, 27)) function foo(bar:{a:any; b?:string;}[]) { return 0 } ->foo : { (bar: { a: number; }[]): any; (bar: { a: number; b: string; }[]): any; } ->bar : { a: any; b?: string; }[] ->a : any ->b : string +>foo : { (bar: { a: number; }[]): any; (bar: { a: number; b: string; }[]): any; }, Symbol(foo, Decl(functionOverloads21.ts, 0, 0), Decl(functionOverloads21.ts, 0, 32), Decl(functionOverloads21.ts, 1, 42)) +>bar : { a: any; b?: string; }[], Symbol(bar, Decl(functionOverloads21.ts, 2, 13)) +>a : any, Symbol(a, Decl(functionOverloads21.ts, 2, 18)) +>b : string, Symbol(b, Decl(functionOverloads21.ts, 2, 24)) +>0 : number diff --git a/tests/baselines/reference/functionOverloads23.types b/tests/baselines/reference/functionOverloads23.types index 40b67a78c55..e5719d25832 100644 --- a/tests/baselines/reference/functionOverloads23.types +++ b/tests/baselines/reference/functionOverloads23.types @@ -1,16 +1,17 @@ === tests/cases/compiler/functionOverloads23.ts === function foo(bar:(b:string)=>void); ->foo : { (bar: (b: string) => void): any; (bar: (a: number) => void): any; } ->bar : (b: string) => void ->b : string +>foo : { (bar: (b: string) => void): any; (bar: (a: number) => void): any; }, Symbol(foo, Decl(functionOverloads23.ts, 0, 0), Decl(functionOverloads23.ts, 0, 35), Decl(functionOverloads23.ts, 1, 35)) +>bar : (b: string) => void, Symbol(bar, Decl(functionOverloads23.ts, 0, 13)) +>b : string, Symbol(b, Decl(functionOverloads23.ts, 0, 18)) function foo(bar:(a:number)=>void); ->foo : { (bar: (b: string) => void): any; (bar: (a: number) => void): any; } ->bar : (a: number) => void ->a : number +>foo : { (bar: (b: string) => void): any; (bar: (a: number) => void): any; }, Symbol(foo, Decl(functionOverloads23.ts, 0, 0), Decl(functionOverloads23.ts, 0, 35), Decl(functionOverloads23.ts, 1, 35)) +>bar : (a: number) => void, Symbol(bar, Decl(functionOverloads23.ts, 1, 13)) +>a : number, Symbol(a, Decl(functionOverloads23.ts, 1, 18)) function foo(bar:(a?)=>void) { return 0 } ->foo : { (bar: (b: string) => void): any; (bar: (a: number) => void): any; } ->bar : (a?: any) => void ->a : any +>foo : { (bar: (b: string) => void): any; (bar: (a: number) => void): any; }, Symbol(foo, Decl(functionOverloads23.ts, 0, 0), Decl(functionOverloads23.ts, 0, 35), Decl(functionOverloads23.ts, 1, 35)) +>bar : (a?: any) => void, Symbol(bar, Decl(functionOverloads23.ts, 2, 13)) +>a : any, Symbol(a, Decl(functionOverloads23.ts, 2, 18)) +>0 : number diff --git a/tests/baselines/reference/functionOverloads24.types b/tests/baselines/reference/functionOverloads24.types index f6f090d904f..94d46b69f34 100644 --- a/tests/baselines/reference/functionOverloads24.types +++ b/tests/baselines/reference/functionOverloads24.types @@ -1,17 +1,17 @@ === tests/cases/compiler/functionOverloads24.ts === function foo(bar:number):(b:string)=>void; ->foo : { (bar: number): (b: string) => void; (bar: string): (a: number) => void; } ->bar : number ->b : string +>foo : { (bar: number): (b: string) => void; (bar: string): (a: number) => void; }, Symbol(foo, Decl(functionOverloads24.ts, 0, 0), Decl(functionOverloads24.ts, 0, 42), Decl(functionOverloads24.ts, 1, 42)) +>bar : number, Symbol(bar, Decl(functionOverloads24.ts, 0, 13)) +>b : string, Symbol(b, Decl(functionOverloads24.ts, 0, 26)) function foo(bar:string):(a:number)=>void; ->foo : { (bar: number): (b: string) => void; (bar: string): (a: number) => void; } ->bar : string ->a : number +>foo : { (bar: number): (b: string) => void; (bar: string): (a: number) => void; }, Symbol(foo, Decl(functionOverloads24.ts, 0, 0), Decl(functionOverloads24.ts, 0, 42), Decl(functionOverloads24.ts, 1, 42)) +>bar : string, Symbol(bar, Decl(functionOverloads24.ts, 1, 13)) +>a : number, Symbol(a, Decl(functionOverloads24.ts, 1, 26)) function foo(bar:any):(a)=>void { return function(){} } ->foo : { (bar: number): (b: string) => void; (bar: string): (a: number) => void; } ->bar : any ->a : any +>foo : { (bar: number): (b: string) => void; (bar: string): (a: number) => void; }, Symbol(foo, Decl(functionOverloads24.ts, 0, 0), Decl(functionOverloads24.ts, 0, 42), Decl(functionOverloads24.ts, 1, 42)) +>bar : any, Symbol(bar, Decl(functionOverloads24.ts, 2, 13)) +>a : any, Symbol(a, Decl(functionOverloads24.ts, 2, 23)) >function(){} : () => void diff --git a/tests/baselines/reference/functionOverloads25.types b/tests/baselines/reference/functionOverloads25.types index ace77ebc9e4..f6409fbff9d 100644 --- a/tests/baselines/reference/functionOverloads25.types +++ b/tests/baselines/reference/functionOverloads25.types @@ -1,17 +1,18 @@ === tests/cases/compiler/functionOverloads25.ts === function foo():string; ->foo : { (): string; (bar: string): number; } +>foo : { (): string; (bar: string): number; }, Symbol(foo, Decl(functionOverloads25.ts, 0, 0), Decl(functionOverloads25.ts, 0, 22), Decl(functionOverloads25.ts, 1, 32)) function foo(bar:string):number; ->foo : { (): string; (bar: string): number; } ->bar : string +>foo : { (): string; (bar: string): number; }, Symbol(foo, Decl(functionOverloads25.ts, 0, 0), Decl(functionOverloads25.ts, 0, 22), Decl(functionOverloads25.ts, 1, 32)) +>bar : string, Symbol(bar, Decl(functionOverloads25.ts, 1, 13)) function foo(bar?:any):any{ return '' }; ->foo : { (): string; (bar: string): number; } ->bar : any +>foo : { (): string; (bar: string): number; }, Symbol(foo, Decl(functionOverloads25.ts, 0, 0), Decl(functionOverloads25.ts, 0, 22), Decl(functionOverloads25.ts, 1, 32)) +>bar : any, Symbol(bar, Decl(functionOverloads25.ts, 2, 13)) +>'' : string var x = foo(); ->x : string +>x : string, Symbol(x, Decl(functionOverloads25.ts, 3, 3)) >foo() : string ->foo : { (): string; (bar: string): number; } +>foo : { (): string; (bar: string): number; }, Symbol(foo, Decl(functionOverloads25.ts, 0, 0), Decl(functionOverloads25.ts, 0, 22), Decl(functionOverloads25.ts, 1, 32)) diff --git a/tests/baselines/reference/functionOverloads26.types b/tests/baselines/reference/functionOverloads26.types index 402003d7e7b..c83f9ba0215 100644 --- a/tests/baselines/reference/functionOverloads26.types +++ b/tests/baselines/reference/functionOverloads26.types @@ -1,17 +1,19 @@ === tests/cases/compiler/functionOverloads26.ts === function foo():string; ->foo : { (): string; (bar: string): number; } +>foo : { (): string; (bar: string): number; }, Symbol(foo, Decl(functionOverloads26.ts, 0, 0), Decl(functionOverloads26.ts, 0, 22), Decl(functionOverloads26.ts, 1, 32)) function foo(bar:string):number; ->foo : { (): string; (bar: string): number; } ->bar : string +>foo : { (): string; (bar: string): number; }, Symbol(foo, Decl(functionOverloads26.ts, 0, 0), Decl(functionOverloads26.ts, 0, 22), Decl(functionOverloads26.ts, 1, 32)) +>bar : string, Symbol(bar, Decl(functionOverloads26.ts, 1, 13)) function foo(bar?:any):any{ return '' } ->foo : { (): string; (bar: string): number; } ->bar : any +>foo : { (): string; (bar: string): number; }, Symbol(foo, Decl(functionOverloads26.ts, 0, 0), Decl(functionOverloads26.ts, 0, 22), Decl(functionOverloads26.ts, 1, 32)) +>bar : any, Symbol(bar, Decl(functionOverloads26.ts, 2, 13)) +>'' : string var x = foo('baz'); ->x : number +>x : number, Symbol(x, Decl(functionOverloads26.ts, 3, 3)) >foo('baz') : number ->foo : { (): string; (bar: string): number; } +>foo : { (): string; (bar: string): number; }, Symbol(foo, Decl(functionOverloads26.ts, 0, 0), Decl(functionOverloads26.ts, 0, 22), Decl(functionOverloads26.ts, 1, 32)) +>'baz' : string diff --git a/tests/baselines/reference/functionOverloads28.types b/tests/baselines/reference/functionOverloads28.types index 034d35c64f7..622514821b1 100644 --- a/tests/baselines/reference/functionOverloads28.types +++ b/tests/baselines/reference/functionOverloads28.types @@ -1,19 +1,20 @@ === tests/cases/compiler/functionOverloads28.ts === function foo():string; ->foo : { (): string; (bar: string): number; } +>foo : { (): string; (bar: string): number; }, Symbol(foo, Decl(functionOverloads28.ts, 0, 0), Decl(functionOverloads28.ts, 0, 22), Decl(functionOverloads28.ts, 1, 32)) function foo(bar:string):number; ->foo : { (): string; (bar: string): number; } ->bar : string +>foo : { (): string; (bar: string): number; }, Symbol(foo, Decl(functionOverloads28.ts, 0, 0), Decl(functionOverloads28.ts, 0, 22), Decl(functionOverloads28.ts, 1, 32)) +>bar : string, Symbol(bar, Decl(functionOverloads28.ts, 1, 13)) function foo(bar?:any):any{ return '' } ->foo : { (): string; (bar: string): number; } ->bar : any +>foo : { (): string; (bar: string): number; }, Symbol(foo, Decl(functionOverloads28.ts, 0, 0), Decl(functionOverloads28.ts, 0, 22), Decl(functionOverloads28.ts, 1, 32)) +>bar : any, Symbol(bar, Decl(functionOverloads28.ts, 2, 13)) +>'' : string var t:any; var x = foo(t); ->t : any ->x : number +>t : any, Symbol(t, Decl(functionOverloads28.ts, 3, 3)) +>x : number, Symbol(x, Decl(functionOverloads28.ts, 3, 14)) >foo(t) : number ->foo : { (): string; (bar: string): number; } ->t : any +>foo : { (): string; (bar: string): number; }, Symbol(foo, Decl(functionOverloads28.ts, 0, 0), Decl(functionOverloads28.ts, 0, 22), Decl(functionOverloads28.ts, 1, 32)) +>t : any, Symbol(t, Decl(functionOverloads28.ts, 3, 3)) diff --git a/tests/baselines/reference/functionOverloads30.types b/tests/baselines/reference/functionOverloads30.types index 80d43c952d9..4976baa8135 100644 --- a/tests/baselines/reference/functionOverloads30.types +++ b/tests/baselines/reference/functionOverloads30.types @@ -1,19 +1,20 @@ === tests/cases/compiler/functionOverloads30.ts === function foo(bar:string):string; ->foo : { (bar: string): string; (bar: number): number; } ->bar : string +>foo : { (bar: string): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads30.ts, 0, 0), Decl(functionOverloads30.ts, 0, 32), Decl(functionOverloads30.ts, 1, 32)) +>bar : string, Symbol(bar, Decl(functionOverloads30.ts, 0, 13)) function foo(bar:number):number; ->foo : { (bar: string): string; (bar: number): number; } ->bar : number +>foo : { (bar: string): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads30.ts, 0, 0), Decl(functionOverloads30.ts, 0, 32), Decl(functionOverloads30.ts, 1, 32)) +>bar : number, Symbol(bar, Decl(functionOverloads30.ts, 1, 13)) function foo(bar:any):any{ return bar } ->foo : { (bar: string): string; (bar: number): number; } ->bar : any ->bar : any +>foo : { (bar: string): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads30.ts, 0, 0), Decl(functionOverloads30.ts, 0, 32), Decl(functionOverloads30.ts, 1, 32)) +>bar : any, Symbol(bar, Decl(functionOverloads30.ts, 2, 13)) +>bar : any, Symbol(bar, Decl(functionOverloads30.ts, 2, 13)) var x = foo('bar'); ->x : string +>x : string, Symbol(x, Decl(functionOverloads30.ts, 3, 3)) >foo('bar') : string ->foo : { (bar: string): string; (bar: number): number; } +>foo : { (bar: string): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads30.ts, 0, 0), Decl(functionOverloads30.ts, 0, 32), Decl(functionOverloads30.ts, 1, 32)) +>'bar' : string diff --git a/tests/baselines/reference/functionOverloads31.types b/tests/baselines/reference/functionOverloads31.types index 4d7816166bc..bd460b9e263 100644 --- a/tests/baselines/reference/functionOverloads31.types +++ b/tests/baselines/reference/functionOverloads31.types @@ -1,19 +1,20 @@ === tests/cases/compiler/functionOverloads31.ts === function foo(bar:string):string; ->foo : { (bar: string): string; (bar: number): number; } ->bar : string +>foo : { (bar: string): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads31.ts, 0, 0), Decl(functionOverloads31.ts, 0, 32), Decl(functionOverloads31.ts, 1, 32)) +>bar : string, Symbol(bar, Decl(functionOverloads31.ts, 0, 13)) function foo(bar:number):number; ->foo : { (bar: string): string; (bar: number): number; } ->bar : number +>foo : { (bar: string): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads31.ts, 0, 0), Decl(functionOverloads31.ts, 0, 32), Decl(functionOverloads31.ts, 1, 32)) +>bar : number, Symbol(bar, Decl(functionOverloads31.ts, 1, 13)) function foo(bar:any):any{ return bar } ->foo : { (bar: string): string; (bar: number): number; } ->bar : any ->bar : any +>foo : { (bar: string): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads31.ts, 0, 0), Decl(functionOverloads31.ts, 0, 32), Decl(functionOverloads31.ts, 1, 32)) +>bar : any, Symbol(bar, Decl(functionOverloads31.ts, 2, 13)) +>bar : any, Symbol(bar, Decl(functionOverloads31.ts, 2, 13)) var x = foo(5); ->x : number +>x : number, Symbol(x, Decl(functionOverloads31.ts, 3, 3)) >foo(5) : number ->foo : { (bar: string): string; (bar: number): number; } +>foo : { (bar: string): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads31.ts, 0, 0), Decl(functionOverloads31.ts, 0, 32), Decl(functionOverloads31.ts, 1, 32)) +>5 : number diff --git a/tests/baselines/reference/functionOverloads32.types b/tests/baselines/reference/functionOverloads32.types index df997e5d52a..09880b14661 100644 --- a/tests/baselines/reference/functionOverloads32.types +++ b/tests/baselines/reference/functionOverloads32.types @@ -1,21 +1,21 @@ === tests/cases/compiler/functionOverloads32.ts === function foo(bar:string):string; ->foo : { (bar: string): string; (bar: number): number; } ->bar : string +>foo : { (bar: string): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads32.ts, 0, 0), Decl(functionOverloads32.ts, 0, 32), Decl(functionOverloads32.ts, 1, 32)) +>bar : string, Symbol(bar, Decl(functionOverloads32.ts, 0, 13)) function foo(bar:number):number; ->foo : { (bar: string): string; (bar: number): number; } ->bar : number +>foo : { (bar: string): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads32.ts, 0, 0), Decl(functionOverloads32.ts, 0, 32), Decl(functionOverloads32.ts, 1, 32)) +>bar : number, Symbol(bar, Decl(functionOverloads32.ts, 1, 13)) function foo(bar:any):any{ return bar } ->foo : { (bar: string): string; (bar: number): number; } ->bar : any ->bar : any +>foo : { (bar: string): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads32.ts, 0, 0), Decl(functionOverloads32.ts, 0, 32), Decl(functionOverloads32.ts, 1, 32)) +>bar : any, Symbol(bar, Decl(functionOverloads32.ts, 2, 13)) +>bar : any, Symbol(bar, Decl(functionOverloads32.ts, 2, 13)) var baz:number; var x = foo(baz); ->baz : number ->x : number +>baz : number, Symbol(baz, Decl(functionOverloads32.ts, 3, 3)) +>x : number, Symbol(x, Decl(functionOverloads32.ts, 3, 19)) >foo(baz) : number ->foo : { (bar: string): string; (bar: number): number; } ->baz : number +>foo : { (bar: string): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads32.ts, 0, 0), Decl(functionOverloads32.ts, 0, 32), Decl(functionOverloads32.ts, 1, 32)) +>baz : number, Symbol(baz, Decl(functionOverloads32.ts, 3, 3)) diff --git a/tests/baselines/reference/functionOverloads33.types b/tests/baselines/reference/functionOverloads33.types index 0199277180d..963452e3763 100644 --- a/tests/baselines/reference/functionOverloads33.types +++ b/tests/baselines/reference/functionOverloads33.types @@ -1,19 +1,20 @@ === tests/cases/compiler/functionOverloads33.ts === function foo(bar:string):string; ->foo : { (bar: string): string; (bar: any): number; } ->bar : string +>foo : { (bar: string): string; (bar: any): number; }, Symbol(foo, Decl(functionOverloads33.ts, 0, 0), Decl(functionOverloads33.ts, 0, 32), Decl(functionOverloads33.ts, 1, 29)) +>bar : string, Symbol(bar, Decl(functionOverloads33.ts, 0, 13)) function foo(bar:any):number; ->foo : { (bar: string): string; (bar: any): number; } ->bar : any +>foo : { (bar: string): string; (bar: any): number; }, Symbol(foo, Decl(functionOverloads33.ts, 0, 0), Decl(functionOverloads33.ts, 0, 32), Decl(functionOverloads33.ts, 1, 29)) +>bar : any, Symbol(bar, Decl(functionOverloads33.ts, 1, 13)) function foo(bar:any):any{ return bar } ->foo : { (bar: string): string; (bar: any): number; } ->bar : any ->bar : any +>foo : { (bar: string): string; (bar: any): number; }, Symbol(foo, Decl(functionOverloads33.ts, 0, 0), Decl(functionOverloads33.ts, 0, 32), Decl(functionOverloads33.ts, 1, 29)) +>bar : any, Symbol(bar, Decl(functionOverloads33.ts, 2, 13)) +>bar : any, Symbol(bar, Decl(functionOverloads33.ts, 2, 13)) var x = foo(5); ->x : number +>x : number, Symbol(x, Decl(functionOverloads33.ts, 3, 3)) >foo(5) : number ->foo : { (bar: string): string; (bar: any): number; } +>foo : { (bar: string): string; (bar: any): number; }, Symbol(foo, Decl(functionOverloads33.ts, 0, 0), Decl(functionOverloads33.ts, 0, 32), Decl(functionOverloads33.ts, 1, 29)) +>5 : number diff --git a/tests/baselines/reference/functionOverloads35.types b/tests/baselines/reference/functionOverloads35.types index 567f9512e3d..1578b5fddc3 100644 --- a/tests/baselines/reference/functionOverloads35.types +++ b/tests/baselines/reference/functionOverloads35.types @@ -1,24 +1,25 @@ === tests/cases/compiler/functionOverloads35.ts === function foo(bar:{a:number;}):number; ->foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; } ->bar : { a: number; } ->a : number +>foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; }, Symbol(foo, Decl(functionOverloads35.ts, 0, 0), Decl(functionOverloads35.ts, 0, 37), Decl(functionOverloads35.ts, 1, 37)) +>bar : { a: number; }, Symbol(bar, Decl(functionOverloads35.ts, 0, 13)) +>a : number, Symbol(a, Decl(functionOverloads35.ts, 0, 18)) function foo(bar:{a:string;}):string; ->foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; } ->bar : { a: string; } ->a : string +>foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; }, Symbol(foo, Decl(functionOverloads35.ts, 0, 0), Decl(functionOverloads35.ts, 0, 37), Decl(functionOverloads35.ts, 1, 37)) +>bar : { a: string; }, Symbol(bar, Decl(functionOverloads35.ts, 1, 13)) +>a : string, Symbol(a, Decl(functionOverloads35.ts, 1, 18)) function foo(bar:{a:any;}):any{ return bar } ->foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; } ->bar : { a: any; } ->a : any ->bar : { a: any; } +>foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; }, Symbol(foo, Decl(functionOverloads35.ts, 0, 0), Decl(functionOverloads35.ts, 0, 37), Decl(functionOverloads35.ts, 1, 37)) +>bar : { a: any; }, Symbol(bar, Decl(functionOverloads35.ts, 2, 13)) +>a : any, Symbol(a, Decl(functionOverloads35.ts, 2, 18)) +>bar : { a: any; }, Symbol(bar, Decl(functionOverloads35.ts, 2, 13)) var x = foo({a:1}); ->x : number +>x : number, Symbol(x, Decl(functionOverloads35.ts, 3, 3)) >foo({a:1}) : number ->foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; } +>foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; }, Symbol(foo, Decl(functionOverloads35.ts, 0, 0), Decl(functionOverloads35.ts, 0, 37), Decl(functionOverloads35.ts, 1, 37)) >{a:1} : { a: number; } ->a : number +>a : number, Symbol(a, Decl(functionOverloads35.ts, 3, 13)) +>1 : number diff --git a/tests/baselines/reference/functionOverloads36.types b/tests/baselines/reference/functionOverloads36.types index 8118a1c113a..d1a473aa795 100644 --- a/tests/baselines/reference/functionOverloads36.types +++ b/tests/baselines/reference/functionOverloads36.types @@ -1,24 +1,25 @@ === tests/cases/compiler/functionOverloads36.ts === function foo(bar:{a:number;}):number; ->foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; } ->bar : { a: number; } ->a : number +>foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; }, Symbol(foo, Decl(functionOverloads36.ts, 0, 0), Decl(functionOverloads36.ts, 0, 37), Decl(functionOverloads36.ts, 1, 37)) +>bar : { a: number; }, Symbol(bar, Decl(functionOverloads36.ts, 0, 13)) +>a : number, Symbol(a, Decl(functionOverloads36.ts, 0, 18)) function foo(bar:{a:string;}):string; ->foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; } ->bar : { a: string; } ->a : string +>foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; }, Symbol(foo, Decl(functionOverloads36.ts, 0, 0), Decl(functionOverloads36.ts, 0, 37), Decl(functionOverloads36.ts, 1, 37)) +>bar : { a: string; }, Symbol(bar, Decl(functionOverloads36.ts, 1, 13)) +>a : string, Symbol(a, Decl(functionOverloads36.ts, 1, 18)) function foo(bar:{a:any;}):any{ return bar } ->foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; } ->bar : { a: any; } ->a : any ->bar : { a: any; } +>foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; }, Symbol(foo, Decl(functionOverloads36.ts, 0, 0), Decl(functionOverloads36.ts, 0, 37), Decl(functionOverloads36.ts, 1, 37)) +>bar : { a: any; }, Symbol(bar, Decl(functionOverloads36.ts, 2, 13)) +>a : any, Symbol(a, Decl(functionOverloads36.ts, 2, 18)) +>bar : { a: any; }, Symbol(bar, Decl(functionOverloads36.ts, 2, 13)) var x = foo({a:'foo'}); ->x : string +>x : string, Symbol(x, Decl(functionOverloads36.ts, 3, 3)) >foo({a:'foo'}) : string ->foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; } +>foo : { (bar: { a: number; }): number; (bar: { a: string; }): string; }, Symbol(foo, Decl(functionOverloads36.ts, 0, 0), Decl(functionOverloads36.ts, 0, 37), Decl(functionOverloads36.ts, 1, 37)) >{a:'foo'} : { a: string; } ->a : string +>a : string, Symbol(a, Decl(functionOverloads36.ts, 3, 13)) +>'foo' : string diff --git a/tests/baselines/reference/functionOverloads38.types b/tests/baselines/reference/functionOverloads38.types index 852191ba07f..39fe4629559 100644 --- a/tests/baselines/reference/functionOverloads38.types +++ b/tests/baselines/reference/functionOverloads38.types @@ -1,25 +1,26 @@ === tests/cases/compiler/functionOverloads38.ts === function foo(bar:{a:number;}[]):string; ->foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; } ->bar : { a: number; }[] ->a : number +>foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; }, Symbol(foo, Decl(functionOverloads38.ts, 0, 0), Decl(functionOverloads38.ts, 0, 39), Decl(functionOverloads38.ts, 1, 40)) +>bar : { a: number; }[], Symbol(bar, Decl(functionOverloads38.ts, 0, 13)) +>a : number, Symbol(a, Decl(functionOverloads38.ts, 0, 18)) function foo(bar:{a:boolean;}[]):number; ->foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; } ->bar : { a: boolean; }[] ->a : boolean +>foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; }, Symbol(foo, Decl(functionOverloads38.ts, 0, 0), Decl(functionOverloads38.ts, 0, 39), Decl(functionOverloads38.ts, 1, 40)) +>bar : { a: boolean; }[], Symbol(bar, Decl(functionOverloads38.ts, 1, 13)) +>a : boolean, Symbol(a, Decl(functionOverloads38.ts, 1, 18)) function foo(bar:{a:any;}[]):any{ return bar } ->foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; } ->bar : { a: any; }[] ->a : any ->bar : { a: any; }[] +>foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; }, Symbol(foo, Decl(functionOverloads38.ts, 0, 0), Decl(functionOverloads38.ts, 0, 39), Decl(functionOverloads38.ts, 1, 40)) +>bar : { a: any; }[], Symbol(bar, Decl(functionOverloads38.ts, 2, 13)) +>a : any, Symbol(a, Decl(functionOverloads38.ts, 2, 18)) +>bar : { a: any; }[], Symbol(bar, Decl(functionOverloads38.ts, 2, 13)) var x = foo([{a:1}]); ->x : string +>x : string, Symbol(x, Decl(functionOverloads38.ts, 3, 3)) >foo([{a:1}]) : string ->foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; } +>foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; }, Symbol(foo, Decl(functionOverloads38.ts, 0, 0), Decl(functionOverloads38.ts, 0, 39), Decl(functionOverloads38.ts, 1, 40)) >[{a:1}] : { a: number; }[] >{a:1} : { a: number; } ->a : number +>a : number, Symbol(a, Decl(functionOverloads38.ts, 3, 14)) +>1 : number diff --git a/tests/baselines/reference/functionOverloads39.types b/tests/baselines/reference/functionOverloads39.types index 70eee2b5163..a39ad24b386 100644 --- a/tests/baselines/reference/functionOverloads39.types +++ b/tests/baselines/reference/functionOverloads39.types @@ -1,25 +1,26 @@ === tests/cases/compiler/functionOverloads39.ts === function foo(bar:{a:number;}[]):string; ->foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; } ->bar : { a: number; }[] ->a : number +>foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; }, Symbol(foo, Decl(functionOverloads39.ts, 0, 0), Decl(functionOverloads39.ts, 0, 39), Decl(functionOverloads39.ts, 1, 40)) +>bar : { a: number; }[], Symbol(bar, Decl(functionOverloads39.ts, 0, 13)) +>a : number, Symbol(a, Decl(functionOverloads39.ts, 0, 18)) function foo(bar:{a:boolean;}[]):number; ->foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; } ->bar : { a: boolean; }[] ->a : boolean +>foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; }, Symbol(foo, Decl(functionOverloads39.ts, 0, 0), Decl(functionOverloads39.ts, 0, 39), Decl(functionOverloads39.ts, 1, 40)) +>bar : { a: boolean; }[], Symbol(bar, Decl(functionOverloads39.ts, 1, 13)) +>a : boolean, Symbol(a, Decl(functionOverloads39.ts, 1, 18)) function foo(bar:{a:any;}[]):any{ return bar } ->foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; } ->bar : { a: any; }[] ->a : any ->bar : { a: any; }[] +>foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; }, Symbol(foo, Decl(functionOverloads39.ts, 0, 0), Decl(functionOverloads39.ts, 0, 39), Decl(functionOverloads39.ts, 1, 40)) +>bar : { a: any; }[], Symbol(bar, Decl(functionOverloads39.ts, 2, 13)) +>a : any, Symbol(a, Decl(functionOverloads39.ts, 2, 18)) +>bar : { a: any; }[], Symbol(bar, Decl(functionOverloads39.ts, 2, 13)) var x = foo([{a:true}]); ->x : number +>x : number, Symbol(x, Decl(functionOverloads39.ts, 3, 3)) >foo([{a:true}]) : number ->foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; } +>foo : { (bar: { a: number; }[]): string; (bar: { a: boolean; }[]): number; }, Symbol(foo, Decl(functionOverloads39.ts, 0, 0), Decl(functionOverloads39.ts, 0, 39), Decl(functionOverloads39.ts, 1, 40)) >[{a:true}] : { a: boolean; }[] >{a:true} : { a: boolean; } ->a : boolean +>a : boolean, Symbol(a, Decl(functionOverloads39.ts, 3, 14)) +>true : boolean diff --git a/tests/baselines/reference/functionOverloads42.types b/tests/baselines/reference/functionOverloads42.types index 6641a28c87a..5ff9550b8df 100644 --- a/tests/baselines/reference/functionOverloads42.types +++ b/tests/baselines/reference/functionOverloads42.types @@ -1,25 +1,26 @@ === tests/cases/compiler/functionOverloads42.ts === function foo(bar:{a:number;}[]):string; ->foo : { (bar: { a: number; }[]): string; (bar: { a: any; }[]): number; } ->bar : { a: number; }[] ->a : number +>foo : { (bar: { a: number; }[]): string; (bar: { a: any; }[]): number; }, Symbol(foo, Decl(functionOverloads42.ts, 0, 0), Decl(functionOverloads42.ts, 0, 39), Decl(functionOverloads42.ts, 1, 36)) +>bar : { a: number; }[], Symbol(bar, Decl(functionOverloads42.ts, 0, 13)) +>a : number, Symbol(a, Decl(functionOverloads42.ts, 0, 18)) function foo(bar:{a:any;}[]):number; ->foo : { (bar: { a: number; }[]): string; (bar: { a: any; }[]): number; } ->bar : { a: any; }[] ->a : any +>foo : { (bar: { a: number; }[]): string; (bar: { a: any; }[]): number; }, Symbol(foo, Decl(functionOverloads42.ts, 0, 0), Decl(functionOverloads42.ts, 0, 39), Decl(functionOverloads42.ts, 1, 36)) +>bar : { a: any; }[], Symbol(bar, Decl(functionOverloads42.ts, 1, 13)) +>a : any, Symbol(a, Decl(functionOverloads42.ts, 1, 18)) function foo(bar:{a:any;}[]):any{ return bar } ->foo : { (bar: { a: number; }[]): string; (bar: { a: any; }[]): number; } ->bar : { a: any; }[] ->a : any ->bar : { a: any; }[] +>foo : { (bar: { a: number; }[]): string; (bar: { a: any; }[]): number; }, Symbol(foo, Decl(functionOverloads42.ts, 0, 0), Decl(functionOverloads42.ts, 0, 39), Decl(functionOverloads42.ts, 1, 36)) +>bar : { a: any; }[], Symbol(bar, Decl(functionOverloads42.ts, 2, 13)) +>a : any, Symbol(a, Decl(functionOverloads42.ts, 2, 18)) +>bar : { a: any; }[], Symbol(bar, Decl(functionOverloads42.ts, 2, 13)) var x = foo([{a:'s'}]); ->x : number +>x : number, Symbol(x, Decl(functionOverloads42.ts, 3, 3)) >foo([{a:'s'}]) : number ->foo : { (bar: { a: number; }[]): string; (bar: { a: any; }[]): number; } +>foo : { (bar: { a: number; }[]): string; (bar: { a: any; }[]): number; }, Symbol(foo, Decl(functionOverloads42.ts, 0, 0), Decl(functionOverloads42.ts, 0, 39), Decl(functionOverloads42.ts, 1, 36)) >[{a:'s'}] : { a: string; }[] >{a:'s'} : { a: string; } ->a : string +>a : string, Symbol(a, Decl(functionOverloads42.ts, 3, 14)) +>'s' : string diff --git a/tests/baselines/reference/functionOverloads6.types b/tests/baselines/reference/functionOverloads6.types index 6e195b1ca90..747c9c339f2 100644 --- a/tests/baselines/reference/functionOverloads6.types +++ b/tests/baselines/reference/functionOverloads6.types @@ -1,16 +1,16 @@ === tests/cases/compiler/functionOverloads6.ts === class foo { ->foo : foo +>foo : foo, Symbol(foo, Decl(functionOverloads6.ts, 0, 0)) static fnOverload(); ->fnOverload : { (): any; (foo: string): any; } +>fnOverload : { (): any; (foo: string): any; }, Symbol(foo.fnOverload, Decl(functionOverloads6.ts, 0, 11), Decl(functionOverloads6.ts, 1, 23), Decl(functionOverloads6.ts, 2, 33)) static fnOverload(foo:string); ->fnOverload : { (): any; (foo: string): any; } ->foo : string +>fnOverload : { (): any; (foo: string): any; }, Symbol(foo.fnOverload, Decl(functionOverloads6.ts, 0, 11), Decl(functionOverloads6.ts, 1, 23), Decl(functionOverloads6.ts, 2, 33)) +>foo : string, Symbol(foo, Decl(functionOverloads6.ts, 2, 21)) static fnOverload(foo?: any){ } ->fnOverload : { (): any; (foo: string): any; } ->foo : any +>fnOverload : { (): any; (foo: string): any; }, Symbol(foo.fnOverload, Decl(functionOverloads6.ts, 0, 11), Decl(functionOverloads6.ts, 1, 23), Decl(functionOverloads6.ts, 2, 33)) +>foo : any, Symbol(foo, Decl(functionOverloads6.ts, 3, 21)) } diff --git a/tests/baselines/reference/functionOverloads7.types b/tests/baselines/reference/functionOverloads7.types index fed669c8943..a1d302d70e1 100644 --- a/tests/baselines/reference/functionOverloads7.types +++ b/tests/baselines/reference/functionOverloads7.types @@ -1,35 +1,37 @@ === tests/cases/compiler/functionOverloads7.ts === class foo { ->foo : foo +>foo : foo, Symbol(foo, Decl(functionOverloads7.ts, 0, 0)) private bar(); ->bar : { (): any; (foo: string): any; } +>bar : { (): any; (foo: string): any; }, Symbol(bar, Decl(functionOverloads7.ts, 0, 11), Decl(functionOverloads7.ts, 1, 17), Decl(functionOverloads7.ts, 2, 28)) private bar(foo: string); ->bar : { (): any; (foo: string): any; } ->foo : string +>bar : { (): any; (foo: string): any; }, Symbol(bar, Decl(functionOverloads7.ts, 0, 11), Decl(functionOverloads7.ts, 1, 17), Decl(functionOverloads7.ts, 2, 28)) +>foo : string, Symbol(foo, Decl(functionOverloads7.ts, 2, 15)) private bar(foo?: any){ return "foo" } ->bar : { (): any; (foo: string): any; } ->foo : any +>bar : { (): any; (foo: string): any; }, Symbol(bar, Decl(functionOverloads7.ts, 0, 11), Decl(functionOverloads7.ts, 1, 17), Decl(functionOverloads7.ts, 2, 28)) +>foo : any, Symbol(foo, Decl(functionOverloads7.ts, 3, 15)) +>"foo" : string public n() { ->n : () => void +>n : () => void, Symbol(n, Decl(functionOverloads7.ts, 3, 41)) var foo = this.bar(); ->foo : any +>foo : any, Symbol(foo, Decl(functionOverloads7.ts, 5, 8)) >this.bar() : any ->this.bar : { (): any; (foo: string): any; } ->this : foo ->bar : { (): any; (foo: string): any; } +>this.bar : { (): any; (foo: string): any; }, Symbol(bar, Decl(functionOverloads7.ts, 0, 11), Decl(functionOverloads7.ts, 1, 17), Decl(functionOverloads7.ts, 2, 28)) +>this : foo, Symbol(foo, Decl(functionOverloads7.ts, 0, 0)) +>bar : { (): any; (foo: string): any; }, Symbol(bar, Decl(functionOverloads7.ts, 0, 11), Decl(functionOverloads7.ts, 1, 17), Decl(functionOverloads7.ts, 2, 28)) foo = this.bar("test"); >foo = this.bar("test") : any ->foo : any +>foo : any, Symbol(foo, Decl(functionOverloads7.ts, 5, 8)) >this.bar("test") : any ->this.bar : { (): any; (foo: string): any; } ->this : foo ->bar : { (): any; (foo: string): any; } +>this.bar : { (): any; (foo: string): any; }, Symbol(bar, Decl(functionOverloads7.ts, 0, 11), Decl(functionOverloads7.ts, 1, 17), Decl(functionOverloads7.ts, 2, 28)) +>this : foo, Symbol(foo, Decl(functionOverloads7.ts, 0, 0)) +>bar : { (): any; (foo: string): any; }, Symbol(bar, Decl(functionOverloads7.ts, 0, 11), Decl(functionOverloads7.ts, 1, 17), Decl(functionOverloads7.ts, 2, 28)) +>"test" : string } } diff --git a/tests/baselines/reference/functionOverloads8.types b/tests/baselines/reference/functionOverloads8.types index e342db5d174..16fe9ab38ca 100644 --- a/tests/baselines/reference/functionOverloads8.types +++ b/tests/baselines/reference/functionOverloads8.types @@ -1,12 +1,13 @@ === tests/cases/compiler/functionOverloads8.ts === function foo(); ->foo : { (): any; (foo: string): any; } +>foo : { (): any; (foo: string): any; }, Symbol(foo, Decl(functionOverloads8.ts, 0, 0), Decl(functionOverloads8.ts, 0, 15), Decl(functionOverloads8.ts, 1, 25)) function foo(foo:string); ->foo : { (): any; (foo: string): any; } ->foo : string +>foo : { (): any; (foo: string): any; }, Symbol(foo, Decl(functionOverloads8.ts, 0, 0), Decl(functionOverloads8.ts, 0, 15), Decl(functionOverloads8.ts, 1, 25)) +>foo : string, Symbol(foo, Decl(functionOverloads8.ts, 1, 13)) function foo(foo?:any){ return '' } ->foo : { (): any; (foo: string): any; } ->foo : any +>foo : { (): any; (foo: string): any; }, Symbol(foo, Decl(functionOverloads8.ts, 0, 0), Decl(functionOverloads8.ts, 0, 15), Decl(functionOverloads8.ts, 1, 25)) +>foo : any, Symbol(foo, Decl(functionOverloads8.ts, 2, 13)) +>'' : string diff --git a/tests/baselines/reference/functionOverloads9.types b/tests/baselines/reference/functionOverloads9.types index a844aee7df1..165c6b88e36 100644 --- a/tests/baselines/reference/functionOverloads9.types +++ b/tests/baselines/reference/functionOverloads9.types @@ -1,14 +1,16 @@ === tests/cases/compiler/functionOverloads9.ts === function foo(foo:string); ->foo : (foo: string) => any ->foo : string +>foo : (foo: string) => any, Symbol(foo, Decl(functionOverloads9.ts, 0, 0), Decl(functionOverloads9.ts, 0, 25)) +>foo : string, Symbol(foo, Decl(functionOverloads9.ts, 0, 13)) function foo(foo?:string){ return '' }; ->foo : (foo: string) => any ->foo : string +>foo : (foo: string) => any, Symbol(foo, Decl(functionOverloads9.ts, 0, 0), Decl(functionOverloads9.ts, 0, 25)) +>foo : string, Symbol(foo, Decl(functionOverloads9.ts, 1, 13)) +>'' : string var x = foo('foo'); ->x : any +>x : any, Symbol(x, Decl(functionOverloads9.ts, 2, 3)) >foo('foo') : any ->foo : (foo: string) => any +>foo : (foo: string) => any, Symbol(foo, Decl(functionOverloads9.ts, 0, 0), Decl(functionOverloads9.ts, 0, 25)) +>'foo' : string diff --git a/tests/baselines/reference/functionOverloadsOnGenericArity1.types b/tests/baselines/reference/functionOverloadsOnGenericArity1.types index 774be93e09a..3c2125363fb 100644 --- a/tests/baselines/reference/functionOverloadsOnGenericArity1.types +++ b/tests/baselines/reference/functionOverloadsOnGenericArity1.types @@ -1,29 +1,29 @@ === tests/cases/compiler/functionOverloadsOnGenericArity1.ts === // overloading on arity not allowed interface C { ->C : C +>C : C, Symbol(C, Decl(functionOverloadsOnGenericArity1.ts, 0, 0)) f(): string; ->f : { (): string; (): string; } ->T : T +>f : { (): string; (): string; }, Symbol(f, Decl(functionOverloadsOnGenericArity1.ts, 1, 13), Decl(functionOverloadsOnGenericArity1.ts, 2, 18)) +>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 2, 5)) f(): string; ->f : { (): string; (): string; } ->T : T ->U : U +>f : { (): string; (): string; }, Symbol(f, Decl(functionOverloadsOnGenericArity1.ts, 1, 13), Decl(functionOverloadsOnGenericArity1.ts, 2, 18)) +>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 3, 5)) +>U : U, Symbol(U, Decl(functionOverloadsOnGenericArity1.ts, 3, 7)) (): string; ->T : T +>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 5, 4)) (): string; ->T : T ->U : U +>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 6, 4)) +>U : U, Symbol(U, Decl(functionOverloadsOnGenericArity1.ts, 6, 6)) new (): string; ->T : T +>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 8, 7)) new (): string; ->T : T ->U : U +>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity1.ts, 9, 7)) +>U : U, Symbol(U, Decl(functionOverloadsOnGenericArity1.ts, 9, 9)) } diff --git a/tests/baselines/reference/functionOverloadsOnGenericArity2.types b/tests/baselines/reference/functionOverloadsOnGenericArity2.types index 32e4cb702ec..431aba3ae16 100644 --- a/tests/baselines/reference/functionOverloadsOnGenericArity2.types +++ b/tests/baselines/reference/functionOverloadsOnGenericArity2.types @@ -1,20 +1,20 @@ === tests/cases/compiler/functionOverloadsOnGenericArity2.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(functionOverloadsOnGenericArity2.ts, 0, 0)) then(p: string): string; ->then : { (p: string): string; (p: string): string; (p: string): Date; } ->p : string +>then : { (p: string): string; (p: string): string; (p: string): Date; }, Symbol(then, Decl(functionOverloadsOnGenericArity2.ts, 0, 13), Decl(functionOverloadsOnGenericArity2.ts, 1, 28), Decl(functionOverloadsOnGenericArity2.ts, 2, 31)) +>p : string, Symbol(p, Decl(functionOverloadsOnGenericArity2.ts, 1, 9)) then(p: string): string; ->then : { (p: string): string; (p: string): string; (p: string): Date; } ->U : U ->p : string +>then : { (p: string): string; (p: string): string; (p: string): Date; }, Symbol(then, Decl(functionOverloadsOnGenericArity2.ts, 0, 13), Decl(functionOverloadsOnGenericArity2.ts, 1, 28), Decl(functionOverloadsOnGenericArity2.ts, 2, 31)) +>U : U, Symbol(U, Decl(functionOverloadsOnGenericArity2.ts, 2, 9)) +>p : string, Symbol(p, Decl(functionOverloadsOnGenericArity2.ts, 2, 12)) then(p: string): Date; ->then : { (p: string): string; (p: string): string; (p: string): Date; } ->U : U ->T : T ->p : string ->Date : Date +>then : { (p: string): string; (p: string): string; (p: string): Date; }, Symbol(then, Decl(functionOverloadsOnGenericArity2.ts, 0, 13), Decl(functionOverloadsOnGenericArity2.ts, 1, 28), Decl(functionOverloadsOnGenericArity2.ts, 2, 31)) +>U : U, Symbol(U, Decl(functionOverloadsOnGenericArity2.ts, 3, 9)) +>T : T, Symbol(T, Decl(functionOverloadsOnGenericArity2.ts, 3, 11)) +>p : string, Symbol(p, Decl(functionOverloadsOnGenericArity2.ts, 3, 15)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } diff --git a/tests/baselines/reference/functionOverloadsRecursiveGenericReturnType.types b/tests/baselines/reference/functionOverloadsRecursiveGenericReturnType.types index 9fe33890b55..0c7e28f9652 100644 --- a/tests/baselines/reference/functionOverloadsRecursiveGenericReturnType.types +++ b/tests/baselines/reference/functionOverloadsRecursiveGenericReturnType.types @@ -1,49 +1,49 @@ === tests/cases/compiler/functionOverloadsRecursiveGenericReturnType.ts === class B{ ->B : B ->V : V +>B : B, Symbol(B, Decl(functionOverloadsRecursiveGenericReturnType.ts, 0, 0)) +>V : V, Symbol(V, Decl(functionOverloadsRecursiveGenericReturnType.ts, 0, 8)) private id: V; ->id : V ->V : V +>id : V, Symbol(id, Decl(functionOverloadsRecursiveGenericReturnType.ts, 0, 11)) +>V : V, Symbol(V, Decl(functionOverloadsRecursiveGenericReturnType.ts, 0, 8)) } class A{ ->A : A ->U : U +>A : A, Symbol(A, Decl(functionOverloadsRecursiveGenericReturnType.ts, 2, 1)) +>U : U, Symbol(U, Decl(functionOverloadsRecursiveGenericReturnType.ts, 4, 8)) GetEnumerator: () => B; ->GetEnumerator : () => B ->B : B ->U : U +>GetEnumerator : () => B, Symbol(GetEnumerator, Decl(functionOverloadsRecursiveGenericReturnType.ts, 4, 11)) +>B : B, Symbol(B, Decl(functionOverloadsRecursiveGenericReturnType.ts, 0, 0)) +>U : U, Symbol(U, Decl(functionOverloadsRecursiveGenericReturnType.ts, 4, 8)) } function Choice(args: T[]): A; ->Choice : { (args: T[]): A; (...v_args: T[]): A; } ->T : T ->args : T[] ->T : T ->A : A ->T : T +>Choice : { (args: T[]): A; (...v_args: T[]): A; }, Symbol(Choice, Decl(functionOverloadsRecursiveGenericReturnType.ts, 6, 1), Decl(functionOverloadsRecursiveGenericReturnType.ts, 8, 36), Decl(functionOverloadsRecursiveGenericReturnType.ts, 9, 41)) +>T : T, Symbol(T, Decl(functionOverloadsRecursiveGenericReturnType.ts, 8, 16)) +>args : T[], Symbol(args, Decl(functionOverloadsRecursiveGenericReturnType.ts, 8, 19)) +>T : T, Symbol(T, Decl(functionOverloadsRecursiveGenericReturnType.ts, 8, 16)) +>A : A, Symbol(A, Decl(functionOverloadsRecursiveGenericReturnType.ts, 2, 1)) +>T : T, Symbol(T, Decl(functionOverloadsRecursiveGenericReturnType.ts, 8, 16)) function Choice(...v_args: T[]): A; ->Choice : { (args: T[]): A; (...v_args: T[]): A; } ->T : T ->v_args : T[] ->T : T ->A : A ->T : T +>Choice : { (args: T[]): A; (...v_args: T[]): A; }, Symbol(Choice, Decl(functionOverloadsRecursiveGenericReturnType.ts, 6, 1), Decl(functionOverloadsRecursiveGenericReturnType.ts, 8, 36), Decl(functionOverloadsRecursiveGenericReturnType.ts, 9, 41)) +>T : T, Symbol(T, Decl(functionOverloadsRecursiveGenericReturnType.ts, 9, 16)) +>v_args : T[], Symbol(v_args, Decl(functionOverloadsRecursiveGenericReturnType.ts, 9, 19)) +>T : T, Symbol(T, Decl(functionOverloadsRecursiveGenericReturnType.ts, 9, 16)) +>A : A, Symbol(A, Decl(functionOverloadsRecursiveGenericReturnType.ts, 2, 1)) +>T : T, Symbol(T, Decl(functionOverloadsRecursiveGenericReturnType.ts, 9, 16)) function Choice(...v_args: any[]): A{ ->Choice : { (args: T[]): A; (...v_args: T[]): A; } ->T : T ->v_args : any[] ->A : A ->T : T +>Choice : { (args: T[]): A; (...v_args: T[]): A; }, Symbol(Choice, Decl(functionOverloadsRecursiveGenericReturnType.ts, 6, 1), Decl(functionOverloadsRecursiveGenericReturnType.ts, 8, 36), Decl(functionOverloadsRecursiveGenericReturnType.ts, 9, 41)) +>T : T, Symbol(T, Decl(functionOverloadsRecursiveGenericReturnType.ts, 10, 16)) +>v_args : any[], Symbol(v_args, Decl(functionOverloadsRecursiveGenericReturnType.ts, 10, 19)) +>A : A, Symbol(A, Decl(functionOverloadsRecursiveGenericReturnType.ts, 2, 1)) +>T : T, Symbol(T, Decl(functionOverloadsRecursiveGenericReturnType.ts, 10, 16)) return new A(); >new A() : A ->A : typeof A ->T : T +>A : typeof A, Symbol(A, Decl(functionOverloadsRecursiveGenericReturnType.ts, 2, 1)) +>T : T, Symbol(T, Decl(functionOverloadsRecursiveGenericReturnType.ts, 10, 16)) } diff --git a/tests/baselines/reference/functionReturn.types b/tests/baselines/reference/functionReturn.types index 0c1ee8eafc2..c850a029520 100644 --- a/tests/baselines/reference/functionReturn.types +++ b/tests/baselines/reference/functionReturn.types @@ -1,31 +1,35 @@ === tests/cases/compiler/functionReturn.ts === function f0(): void { } ->f0 : () => void +>f0 : () => void, Symbol(f0, Decl(functionReturn.ts, 0, 0)) function f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(functionReturn.ts, 0, 23)) var n: any = f0(); ->n : any +>n : any, Symbol(n, Decl(functionReturn.ts, 2, 7)) >f0() : void ->f0 : () => void +>f0 : () => void, Symbol(f0, Decl(functionReturn.ts, 0, 0)) } function f2(): any { } ->f2 : () => any +>f2 : () => any, Symbol(f2, Decl(functionReturn.ts, 3, 1)) function f3(): string { return; } ->f3 : () => string +>f3 : () => string, Symbol(f3, Decl(functionReturn.ts, 4, 22)) function f4(): string { ->f4 : () => string +>f4 : () => string, Symbol(f4, Decl(functionReturn.ts, 5, 33)) return ''; +>'' : string + return; } function f5(): string { ->f5 : () => string +>f5 : () => string, Symbol(f5, Decl(functionReturn.ts, 9, 1)) return ''; +>'' : string + return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } diff --git a/tests/baselines/reference/functionReturningItself.types b/tests/baselines/reference/functionReturningItself.types index 597202a55e2..6d4065d6428 100644 --- a/tests/baselines/reference/functionReturningItself.types +++ b/tests/baselines/reference/functionReturningItself.types @@ -1,7 +1,7 @@ === tests/cases/compiler/functionReturningItself.ts === function somefn() { ->somefn : () => typeof somefn +>somefn : () => typeof somefn, Symbol(somefn, Decl(functionReturningItself.ts, 0, 0)) return somefn; ->somefn : () => typeof somefn +>somefn : () => typeof somefn, Symbol(somefn, Decl(functionReturningItself.ts, 0, 0)) } diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs.types b/tests/baselines/reference/functionSubtypingOfVarArgs.types index ebd706e94cf..a002a48205d 100644 --- a/tests/baselines/reference/functionSubtypingOfVarArgs.types +++ b/tests/baselines/reference/functionSubtypingOfVarArgs.types @@ -1,42 +1,42 @@ === tests/cases/compiler/functionSubtypingOfVarArgs.ts === class EventBase { ->EventBase : EventBase +>EventBase : EventBase, Symbol(EventBase, Decl(functionSubtypingOfVarArgs.ts, 0, 0)) private _listeners = []; ->_listeners : any[] +>_listeners : any[], Symbol(_listeners, Decl(functionSubtypingOfVarArgs.ts, 0, 17)) >[] : undefined[] add(listener: (...args: any[]) => void): void { ->add : (listener: (...args: any[]) => void) => void ->listener : (...args: any[]) => void ->args : any[] +>add : (listener: (...args: any[]) => void) => void, Symbol(add, Decl(functionSubtypingOfVarArgs.ts, 1, 28)) +>listener : (...args: any[]) => void, Symbol(listener, Decl(functionSubtypingOfVarArgs.ts, 3, 8)) +>args : any[], Symbol(args, Decl(functionSubtypingOfVarArgs.ts, 3, 19)) this._listeners.push(listener); >this._listeners.push(listener) : number ->this._listeners.push : (...items: any[]) => number ->this._listeners : any[] ->this : EventBase ->_listeners : any[] ->push : (...items: any[]) => number ->listener : (...args: any[]) => void +>this._listeners.push : (...items: any[]) => number, Symbol(Array.push, Decl(lib.d.ts, 1016, 29)) +>this._listeners : any[], Symbol(_listeners, Decl(functionSubtypingOfVarArgs.ts, 0, 17)) +>this : EventBase, Symbol(EventBase, Decl(functionSubtypingOfVarArgs.ts, 0, 0)) +>_listeners : any[], Symbol(_listeners, Decl(functionSubtypingOfVarArgs.ts, 0, 17)) +>push : (...items: any[]) => number, Symbol(Array.push, Decl(lib.d.ts, 1016, 29)) +>listener : (...args: any[]) => void, Symbol(listener, Decl(functionSubtypingOfVarArgs.ts, 3, 8)) } } class StringEvent extends EventBase { // should work ->StringEvent : StringEvent ->EventBase : EventBase +>StringEvent : StringEvent, Symbol(StringEvent, Decl(functionSubtypingOfVarArgs.ts, 6, 1)) +>EventBase : EventBase, Symbol(EventBase, Decl(functionSubtypingOfVarArgs.ts, 0, 0)) add(listener: (items: string) => void ) { // valid, items is subtype of args ->add : (listener: (items: string) => void) => void ->listener : (items: string) => void ->items : string +>add : (listener: (items: string) => void) => void, Symbol(add, Decl(functionSubtypingOfVarArgs.ts, 8, 37)) +>listener : (items: string) => void, Symbol(listener, Decl(functionSubtypingOfVarArgs.ts, 9, 8)) +>items : string, Symbol(items, Decl(functionSubtypingOfVarArgs.ts, 9, 19)) super.add(listener); >super.add(listener) : void ->super.add : (listener: (...args: any[]) => void) => void ->super : EventBase ->add : (listener: (...args: any[]) => void) => void ->listener : (items: string) => void +>super.add : (listener: (...args: any[]) => void) => void, Symbol(EventBase.add, Decl(functionSubtypingOfVarArgs.ts, 1, 28)) +>super : EventBase, Symbol(EventBase, Decl(functionSubtypingOfVarArgs.ts, 0, 0)) +>add : (listener: (...args: any[]) => void) => void, Symbol(EventBase.add, Decl(functionSubtypingOfVarArgs.ts, 1, 28)) +>listener : (items: string) => void, Symbol(listener, Decl(functionSubtypingOfVarArgs.ts, 9, 8)) } } diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs2.types b/tests/baselines/reference/functionSubtypingOfVarArgs2.types index 5e2b14ffc7a..a89959422dd 100644 --- a/tests/baselines/reference/functionSubtypingOfVarArgs2.types +++ b/tests/baselines/reference/functionSubtypingOfVarArgs2.types @@ -1,44 +1,44 @@ === tests/cases/compiler/functionSubtypingOfVarArgs2.ts === class EventBase { ->EventBase : EventBase +>EventBase : EventBase, Symbol(EventBase, Decl(functionSubtypingOfVarArgs2.ts, 0, 0)) private _listeners: { (...args: any[]): void; }[] = []; ->_listeners : ((...args: any[]) => void)[] ->args : any[] +>_listeners : ((...args: any[]) => void)[], Symbol(_listeners, Decl(functionSubtypingOfVarArgs2.ts, 0, 17)) +>args : any[], Symbol(args, Decl(functionSubtypingOfVarArgs2.ts, 1, 27)) >[] : undefined[] add(listener: (...args: any[]) => void): void { ->add : (listener: (...args: any[]) => void) => void ->listener : (...args: any[]) => void ->args : any[] +>add : (listener: (...args: any[]) => void) => void, Symbol(add, Decl(functionSubtypingOfVarArgs2.ts, 1, 59)) +>listener : (...args: any[]) => void, Symbol(listener, Decl(functionSubtypingOfVarArgs2.ts, 3, 8)) +>args : any[], Symbol(args, Decl(functionSubtypingOfVarArgs2.ts, 3, 19)) this._listeners.push(listener); >this._listeners.push(listener) : number ->this._listeners.push : (...items: ((...args: any[]) => void)[]) => number ->this._listeners : ((...args: any[]) => void)[] ->this : EventBase ->_listeners : ((...args: any[]) => void)[] ->push : (...items: ((...args: any[]) => void)[]) => number ->listener : (...args: any[]) => void +>this._listeners.push : (...items: ((...args: any[]) => void)[]) => number, Symbol(Array.push, Decl(lib.d.ts, 1016, 29)) +>this._listeners : ((...args: any[]) => void)[], Symbol(_listeners, Decl(functionSubtypingOfVarArgs2.ts, 0, 17)) +>this : EventBase, Symbol(EventBase, Decl(functionSubtypingOfVarArgs2.ts, 0, 0)) +>_listeners : ((...args: any[]) => void)[], Symbol(_listeners, Decl(functionSubtypingOfVarArgs2.ts, 0, 17)) +>push : (...items: ((...args: any[]) => void)[]) => number, Symbol(Array.push, Decl(lib.d.ts, 1016, 29)) +>listener : (...args: any[]) => void, Symbol(listener, Decl(functionSubtypingOfVarArgs2.ts, 3, 8)) } } class StringEvent extends EventBase { ->StringEvent : StringEvent ->EventBase : EventBase +>StringEvent : StringEvent, Symbol(StringEvent, Decl(functionSubtypingOfVarArgs2.ts, 6, 1)) +>EventBase : EventBase, Symbol(EventBase, Decl(functionSubtypingOfVarArgs2.ts, 0, 0)) add(listener: (items: string, moreitems: number) => void ) { ->add : (listener: (items: string, moreitems: number) => void) => void ->listener : (items: string, moreitems: number) => void ->items : string ->moreitems : number +>add : (listener: (items: string, moreitems: number) => void) => void, Symbol(add, Decl(functionSubtypingOfVarArgs2.ts, 8, 37)) +>listener : (items: string, moreitems: number) => void, Symbol(listener, Decl(functionSubtypingOfVarArgs2.ts, 9, 8)) +>items : string, Symbol(items, Decl(functionSubtypingOfVarArgs2.ts, 9, 19)) +>moreitems : number, Symbol(moreitems, Decl(functionSubtypingOfVarArgs2.ts, 9, 33)) super.add(listener); >super.add(listener) : void ->super.add : (listener: (...args: any[]) => void) => void ->super : EventBase ->add : (listener: (...args: any[]) => void) => void ->listener : (items: string, moreitems: number) => void +>super.add : (listener: (...args: any[]) => void) => void, Symbol(EventBase.add, Decl(functionSubtypingOfVarArgs2.ts, 1, 59)) +>super : EventBase, Symbol(EventBase, Decl(functionSubtypingOfVarArgs2.ts, 0, 0)) +>add : (listener: (...args: any[]) => void) => void, Symbol(EventBase.add, Decl(functionSubtypingOfVarArgs2.ts, 1, 59)) +>listener : (items: string, moreitems: number) => void, Symbol(listener, Decl(functionSubtypingOfVarArgs2.ts, 9, 8)) } } diff --git a/tests/baselines/reference/functionType.types b/tests/baselines/reference/functionType.types index 29a940db205..9da411b0513 100644 --- a/tests/baselines/reference/functionType.types +++ b/tests/baselines/reference/functionType.types @@ -1,19 +1,21 @@ === tests/cases/compiler/functionType.ts === function salt() {} ->salt : () => void +>salt : () => void, Symbol(salt, Decl(functionType.ts, 0, 0)) salt.apply("hello", []); >salt.apply("hello", []) : any ->salt.apply : (thisArg: any, argArray?: any) => any ->salt : () => void ->apply : (thisArg: any, argArray?: any) => any +>salt.apply : (thisArg: any, argArray?: any) => any, Symbol(Function.apply, Decl(lib.d.ts, 228, 20)) +>salt : () => void, Symbol(salt, Decl(functionType.ts, 0, 0)) +>apply : (thisArg: any, argArray?: any) => any, Symbol(Function.apply, Decl(lib.d.ts, 228, 20)) +>"hello" : string >[] : undefined[] (new Function("return 5"))(); >(new Function("return 5"))() : any >(new Function("return 5")) : Function >new Function("return 5") : Function ->Function : FunctionConstructor +>Function : FunctionConstructor, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) +>"return 5" : string diff --git a/tests/baselines/reference/functionTypeArgumentArrayAssignment.types b/tests/baselines/reference/functionTypeArgumentArrayAssignment.types index 588dfd506ef..76699ad842c 100644 --- a/tests/baselines/reference/functionTypeArgumentArrayAssignment.types +++ b/tests/baselines/reference/functionTypeArgumentArrayAssignment.types @@ -1,26 +1,26 @@ === tests/cases/compiler/functionTypeArgumentArrayAssignment.ts === module test { ->test : typeof test +>test : typeof test, Symbol(test, Decl(functionTypeArgumentArrayAssignment.ts, 0, 0)) interface Array { ->Array : Array ->T : T +>Array : Array, Symbol(Array, Decl(functionTypeArgumentArrayAssignment.ts, 0, 13)) +>T : T, Symbol(T, Decl(functionTypeArgumentArrayAssignment.ts, 1, 20)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(functionTypeArgumentArrayAssignment.ts, 1, 24)) +>T : T, Symbol(T, Decl(functionTypeArgumentArrayAssignment.ts, 1, 20)) length: number; ->length : number +>length : number, Symbol(length, Decl(functionTypeArgumentArrayAssignment.ts, 2, 15)) } function map() { ->map : () => void ->U : U +>map : () => void, Symbol(map, Decl(functionTypeArgumentArrayAssignment.ts, 4, 5)) +>U : U, Symbol(U, Decl(functionTypeArgumentArrayAssignment.ts, 6, 17)) var ys: U[] = []; ->ys : U[] ->U : U +>ys : U[], Symbol(ys, Decl(functionTypeArgumentArrayAssignment.ts, 7, 11)) +>U : U, Symbol(U, Decl(functionTypeArgumentArrayAssignment.ts, 6, 17)) >[] : undefined[] } } diff --git a/tests/baselines/reference/functionWithAnyReturnTypeAndNoReturnExpression.types b/tests/baselines/reference/functionWithAnyReturnTypeAndNoReturnExpression.types index a5096d464d8..0cd8bf5ce24 100644 --- a/tests/baselines/reference/functionWithAnyReturnTypeAndNoReturnExpression.types +++ b/tests/baselines/reference/functionWithAnyReturnTypeAndNoReturnExpression.types @@ -1,13 +1,13 @@ === tests/cases/compiler/functionWithAnyReturnTypeAndNoReturnExpression.ts === // All should be allowed function f(): any { } ->f : () => any +>f : () => any, Symbol(f, Decl(functionWithAnyReturnTypeAndNoReturnExpression.ts, 0, 0)) var f2: () => any = () => { }; ->f2 : () => any +>f2 : () => any, Symbol(f2, Decl(functionWithAnyReturnTypeAndNoReturnExpression.ts, 2, 3)) >() => { } : () => void var f3 = (): any => { }; ->f3 : () => any +>f3 : () => any, Symbol(f3, Decl(functionWithAnyReturnTypeAndNoReturnExpression.ts, 3, 3)) >(): any => { } : () => any diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements1.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements1.types index d5c114c9216..02f6b924857 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements1.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements1.types @@ -1,5 +1,6 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements1.ts === function foo(x = 0) { } ->foo : (x?: number) => void ->x : number +>foo : (x?: number) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements1.ts, 0, 0)) +>x : number, Symbol(x, Decl(functionWithDefaultParameterWithNoStatements1.ts, 0, 13)) +>0 : number diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements10.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements10.types index df28a085d85..92f946ab0d0 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements10.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements10.types @@ -1,11 +1,13 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements10.ts === function foo(a = [0]) { } ->foo : (a?: number[]) => void ->a : number[] +>foo : (a?: number[]) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements10.ts, 0, 0)) +>a : number[], Symbol(a, Decl(functionWithDefaultParameterWithNoStatements10.ts, 0, 13)) >[0] : number[] +>0 : number function bar(a = [0]) { ->bar : (a?: number[]) => void ->a : number[] +>bar : (a?: number[]) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements10.ts, 0, 25)) +>a : number[], Symbol(a, Decl(functionWithDefaultParameterWithNoStatements10.ts, 2, 13)) >[0] : number[] +>0 : number } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements11.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements11.types index 5e522855e4b..102d48b634c 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements11.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements11.types @@ -1,16 +1,18 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements11.ts === var v: any[]; ->v : any[] +>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements11.ts, 0, 3)) function foo(a = v[0]) { } ->foo : (a?: any) => void ->a : any +>foo : (a?: any) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements11.ts, 0, 13)) +>a : any, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements11.ts, 2, 13)) >v[0] : any ->v : any[] +>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements11.ts, 0, 3)) +>0 : number function bar(a = v[0]) { ->bar : (a?: any) => void ->a : any +>bar : (a?: any) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements11.ts, 2, 26)) +>a : any, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements11.ts, 4, 13)) >v[0] : any ->v : any[] +>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements11.ts, 0, 3)) +>0 : number } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements12.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements12.types index c458b4d2850..3525a9c609c 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements12.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements12.types @@ -1,16 +1,16 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements12.ts === var v: any[]; ->v : any[] +>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements12.ts, 0, 3)) function foo(a = (v)) { } ->foo : (a?: any[]) => void ->a : any[] +>foo : (a?: any[]) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements12.ts, 0, 13)) +>a : any[], Symbol(a, Decl(functionWithDefaultParameterWithNoStatements12.ts, 2, 13)) >(v) : any[] ->v : any[] +>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements12.ts, 0, 3)) function bar(a = (v)) { ->bar : (a?: any[]) => void ->a : any[] +>bar : (a?: any[]) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements12.ts, 2, 25)) +>a : any[], Symbol(a, Decl(functionWithDefaultParameterWithNoStatements12.ts, 4, 13)) >(v) : any[] ->v : any[] +>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements12.ts, 0, 3)) } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements13.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements13.types index eccf0a92856..f555973437f 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements13.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements13.types @@ -1,16 +1,20 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements13.ts === var v: any[]; ->v : any[] +>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements13.ts, 0, 3)) function foo(a = [1 + 1]) { } ->foo : (a?: number[]) => void ->a : number[] +>foo : (a?: number[]) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements13.ts, 0, 13)) +>a : number[], Symbol(a, Decl(functionWithDefaultParameterWithNoStatements13.ts, 2, 13)) >[1 + 1] : number[] >1 + 1 : number +>1 : number +>1 : number function bar(a = [1 + 1]) { ->bar : (a?: number[]) => void ->a : number[] +>bar : (a?: number[]) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements13.ts, 2, 29)) +>a : number[], Symbol(a, Decl(functionWithDefaultParameterWithNoStatements13.ts, 4, 13)) >[1 + 1] : number[] >1 + 1 : number +>1 : number +>1 : number } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements14.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements14.types index c155b335e9a..5df59da347c 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements14.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements14.types @@ -1,18 +1,22 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements14.ts === var v: any[]; ->v : any[] +>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements14.ts, 0, 3)) function foo(a = v[1 + 1]) { } ->foo : (a?: any) => void ->a : any +>foo : (a?: any) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements14.ts, 0, 13)) +>a : any, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements14.ts, 2, 13)) >v[1 + 1] : any ->v : any[] +>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements14.ts, 0, 3)) >1 + 1 : number +>1 : number +>1 : number function bar(a = v[1 + 1]) { ->bar : (a?: any) => void ->a : any +>bar : (a?: any) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements14.ts, 2, 30)) +>a : any, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements14.ts, 4, 13)) >v[1 + 1] : any ->v : any[] +>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements14.ts, 0, 3)) >1 + 1 : number +>1 : number +>1 : number } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements15.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements15.types index a782b4bd15c..ae89a08c2fa 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements15.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements15.types @@ -1,16 +1,20 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements15.ts === var v: any[]; ->v : any[] +>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements15.ts, 0, 3)) function foo(a = (1 + 1)) { } ->foo : (a?: number) => void ->a : number +>foo : (a?: number) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements15.ts, 0, 13)) +>a : number, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements15.ts, 2, 13)) >(1 + 1) : number >1 + 1 : number +>1 : number +>1 : number function bar(a = (1 + 1)) { ->bar : (a?: number) => void ->a : number +>bar : (a?: number) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements15.ts, 2, 29)) +>a : number, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements15.ts, 4, 13)) >(1 + 1) : number >1 + 1 : number +>1 : number +>1 : number } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements16.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements16.types index 050c95ec1c8..70f5f39e81c 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements16.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements16.types @@ -1,16 +1,16 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements16.ts === var v: any[]; ->v : any[] +>v : any[], Symbol(v, Decl(functionWithDefaultParameterWithNoStatements16.ts, 0, 3)) function foo(a = bar()) { } ->foo : (a?: void) => void ->a : void +>foo : (a?: void) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements16.ts, 0, 13)) +>a : void, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements16.ts, 2, 13)) >bar() : void ->bar : (a?: void) => void +>bar : (a?: void) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements16.ts, 2, 27)) function bar(a = foo()) { ->bar : (a?: void) => void ->a : void +>bar : (a?: void) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements16.ts, 2, 27)) +>a : void, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements16.ts, 4, 13)) >foo() : void ->foo : (a?: void) => void +>foo : (a?: void) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements16.ts, 0, 13)) } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements2.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements2.types index 9be77e7d82e..f6f68eaeaa3 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements2.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements2.types @@ -1,5 +1,6 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements2.ts === function foo(x = 0) { ->foo : (x?: number) => void ->x : number +>foo : (x?: number) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements2.ts, 0, 0)) +>x : number, Symbol(x, Decl(functionWithDefaultParameterWithNoStatements2.ts, 0, 13)) +>0 : number } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements3.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements3.types index 77895ae1cc9..c4152794c55 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements3.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements3.types @@ -1,9 +1,11 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements3.ts === function foo(a = "") { } ->foo : (a?: string) => void ->a : string +>foo : (a?: string) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements3.ts, 0, 0)) +>a : string, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements3.ts, 0, 13)) +>"" : string function bar(a = "") { ->bar : (a?: string) => void ->a : string +>bar : (a?: string) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements3.ts, 0, 24)) +>a : string, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements3.ts, 2, 13)) +>"" : string } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements4.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements4.types index 7071c956db2..2bfe1a1cc67 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements4.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements4.types @@ -1,9 +1,11 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements4.ts === function foo(a = ``) { } ->foo : (a?: string) => void ->a : string +>foo : (a?: string) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements4.ts, 0, 0)) +>a : string, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements4.ts, 0, 13)) +>`` : string function bar(a = ``) { ->bar : (a?: string) => void ->a : string +>bar : (a?: string) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements4.ts, 0, 24)) +>a : string, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements4.ts, 2, 13)) +>`` : string } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements5.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements5.types index b7d53b544fa..13d551453c6 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements5.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements5.types @@ -1,9 +1,11 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements5.ts === function foo(a = 0) { } ->foo : (a?: number) => void ->a : number +>foo : (a?: number) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements5.ts, 0, 0)) +>a : number, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements5.ts, 0, 13)) +>0 : number function bar(a = 0) { ->bar : (a?: number) => void ->a : number +>bar : (a?: number) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements5.ts, 0, 23)) +>a : number, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements5.ts, 2, 13)) +>0 : number } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements6.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements6.types index b430bc70953..c2531aecf15 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements6.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements6.types @@ -1,9 +1,11 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements6.ts === function foo(a = true) { } ->foo : (a?: boolean) => void ->a : boolean +>foo : (a?: boolean) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements6.ts, 0, 0)) +>a : boolean, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements6.ts, 0, 13)) +>true : boolean function bar(a = true) { ->bar : (a?: boolean) => void ->a : boolean +>bar : (a?: boolean) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements6.ts, 0, 26)) +>a : boolean, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements6.ts, 2, 13)) +>true : boolean } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements7.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements7.types index baf83c870a9..8729539a4b7 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements7.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements7.types @@ -1,9 +1,11 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements7.ts === function foo(a = false) { } ->foo : (a?: boolean) => void ->a : boolean +>foo : (a?: boolean) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements7.ts, 0, 0)) +>a : boolean, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements7.ts, 0, 13)) +>false : boolean function bar(a = false) { ->bar : (a?: boolean) => void ->a : boolean +>bar : (a?: boolean) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements7.ts, 0, 27)) +>a : boolean, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements7.ts, 2, 13)) +>false : boolean } diff --git a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements8.types b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements8.types index e4480691c45..07bd1825037 100644 --- a/tests/baselines/reference/functionWithDefaultParameterWithNoStatements8.types +++ b/tests/baselines/reference/functionWithDefaultParameterWithNoStatements8.types @@ -1,11 +1,11 @@ === tests/cases/compiler/functionWithDefaultParameterWithNoStatements8.ts === function foo(a = undefined) { } ->foo : (a?: any) => void ->a : any ->undefined : undefined +>foo : (a?: any) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements8.ts, 0, 0)) +>a : any, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements8.ts, 0, 13)) +>undefined : undefined, Symbol(undefined) function bar(a = undefined) { ->bar : (a?: any) => void ->a : any ->undefined : undefined +>bar : (a?: any) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements8.ts, 0, 31)) +>a : any, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements8.ts, 2, 13)) +>undefined : undefined, Symbol(undefined) } diff --git a/tests/baselines/reference/funduleExportedClassIsUsedBeforeDeclaration.types b/tests/baselines/reference/funduleExportedClassIsUsedBeforeDeclaration.types index fa457680f07..3ce95b74656 100644 --- a/tests/baselines/reference/funduleExportedClassIsUsedBeforeDeclaration.types +++ b/tests/baselines/reference/funduleExportedClassIsUsedBeforeDeclaration.types @@ -1,26 +1,26 @@ === tests/cases/compiler/funduleExportedClassIsUsedBeforeDeclaration.ts === interface A { // interface before module declaration ->A : A +>A : A, Symbol(A, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 0, 0)) (): B.C; // uses defined below class in module ->B : unknown ->C : B.C +>B : any, Symbol(B, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 2, 1), Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 3, 26)) +>C : B.C, Symbol(B.C, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 4, 18)) } declare function B(): B.C; // function merged with module ->B : typeof B ->B : unknown ->C : B.C +>B : typeof B, Symbol(B, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 2, 1), Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 3, 26)) +>B : any, Symbol(B, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 2, 1), Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 3, 26)) +>C : B.C, Symbol(B.C, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 4, 18)) declare module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 2, 1), Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 3, 26)) export class C { // class defined in module ->C : C +>C : C, Symbol(C, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 4, 18)) } } new B.C(); >new B.C() : B.C ->B.C : typeof B.C ->B : typeof B ->C : typeof B.C +>B.C : typeof B.C, Symbol(B.C, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 4, 18)) +>B : typeof B, Symbol(B, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 2, 1), Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 3, 26)) +>C : typeof B.C, Symbol(B.C, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 4, 18)) diff --git a/tests/baselines/reference/funduleOfFunctionWithoutReturnTypeAnnotation.types b/tests/baselines/reference/funduleOfFunctionWithoutReturnTypeAnnotation.types index 9284ce3e19d..40bd262c674 100644 --- a/tests/baselines/reference/funduleOfFunctionWithoutReturnTypeAnnotation.types +++ b/tests/baselines/reference/funduleOfFunctionWithoutReturnTypeAnnotation.types @@ -1,16 +1,17 @@ === tests/cases/compiler/funduleOfFunctionWithoutReturnTypeAnnotation.ts === function fn() { ->fn : typeof fn +>fn : typeof fn, Symbol(fn, Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts, 0, 0), Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts, 2, 1)) return fn.n; ->fn.n : number ->fn : typeof fn ->n : number +>fn.n : number, Symbol(fn.n, Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts, 4, 14)) +>fn : typeof fn, Symbol(fn, Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts, 0, 0), Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts, 2, 1)) +>n : number, Symbol(fn.n, Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts, 4, 14)) } module fn { ->fn : typeof fn +>fn : typeof fn, Symbol(fn, Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts, 0, 0), Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts, 2, 1)) export var n = 1; ->n : number +>n : number, Symbol(n, Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts, 4, 14)) +>1 : number } diff --git a/tests/baselines/reference/funduleUsedAcrossFileBoundary.types b/tests/baselines/reference/funduleUsedAcrossFileBoundary.types index 09fc76a257b..b7c0bf29d2b 100644 --- a/tests/baselines/reference/funduleUsedAcrossFileBoundary.types +++ b/tests/baselines/reference/funduleUsedAcrossFileBoundary.types @@ -1,39 +1,39 @@ === tests/cases/compiler/funduleUsedAcrossFileBoundary_file1.ts === declare function Q(value: T): string; ->Q : typeof Q ->T : T ->value : T ->T : T +>Q : typeof Q, Symbol(Q, Decl(funduleUsedAcrossFileBoundary_file1.ts, 0, 0), Decl(funduleUsedAcrossFileBoundary_file1.ts, 0, 40)) +>T : T, Symbol(T, Decl(funduleUsedAcrossFileBoundary_file1.ts, 0, 19)) +>value : T, Symbol(value, Decl(funduleUsedAcrossFileBoundary_file1.ts, 0, 22)) +>T : T, Symbol(T, Decl(funduleUsedAcrossFileBoundary_file1.ts, 0, 19)) declare module Q { ->Q : typeof Q +>Q : typeof Q, Symbol(Q, Decl(funduleUsedAcrossFileBoundary_file1.ts, 0, 0), Decl(funduleUsedAcrossFileBoundary_file1.ts, 0, 40)) interface Promise { ->Promise : Promise ->T : T +>Promise : Promise, Symbol(Promise, Decl(funduleUsedAcrossFileBoundary_file1.ts, 1, 18)) +>T : T, Symbol(T, Decl(funduleUsedAcrossFileBoundary_file1.ts, 2, 22)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(funduleUsedAcrossFileBoundary_file1.ts, 2, 26)) } export function defer(): string; ->defer : () => string ->T : T +>defer : () => string, Symbol(defer, Decl(funduleUsedAcrossFileBoundary_file1.ts, 4, 5)) +>T : T, Symbol(T, Decl(funduleUsedAcrossFileBoundary_file1.ts, 5, 26)) } === tests/cases/compiler/funduleUsedAcrossFileBoundary_file2.ts === function promiseWithCancellation(promise: Q.Promise) { ->promiseWithCancellation : (promise: Q.Promise) => void ->T : T ->promise : Q.Promise ->Q : unknown ->Promise : Q.Promise ->T : T +>promiseWithCancellation : (promise: Q.Promise) => void, Symbol(promiseWithCancellation, Decl(funduleUsedAcrossFileBoundary_file2.ts, 0, 0)) +>T : T, Symbol(T, Decl(funduleUsedAcrossFileBoundary_file2.ts, 0, 33)) +>promise : Q.Promise, Symbol(promise, Decl(funduleUsedAcrossFileBoundary_file2.ts, 0, 36)) +>Q : any, Symbol(Q, Decl(funduleUsedAcrossFileBoundary_file1.ts, 0, 0), Decl(funduleUsedAcrossFileBoundary_file1.ts, 0, 40)) +>Promise : Q.Promise, Symbol(Q.Promise, Decl(funduleUsedAcrossFileBoundary_file1.ts, 1, 18)) +>T : T, Symbol(T, Decl(funduleUsedAcrossFileBoundary_file2.ts, 0, 33)) var deferred = Q.defer(); // used to be an error ->deferred : string +>deferred : string, Symbol(deferred, Decl(funduleUsedAcrossFileBoundary_file2.ts, 1, 7)) >Q.defer() : string ->Q.defer : () => string ->Q : typeof Q ->defer : () => string ->T : T +>Q.defer : () => string, Symbol(Q.defer, Decl(funduleUsedAcrossFileBoundary_file1.ts, 4, 5)) +>Q : typeof Q, Symbol(Q, Decl(funduleUsedAcrossFileBoundary_file1.ts, 0, 0), Decl(funduleUsedAcrossFileBoundary_file1.ts, 0, 40)) +>defer : () => string, Symbol(Q.defer, Decl(funduleUsedAcrossFileBoundary_file1.ts, 4, 5)) +>T : T, Symbol(T, Decl(funduleUsedAcrossFileBoundary_file2.ts, 0, 33)) } diff --git a/tests/baselines/reference/generatedContextualTyping.types b/tests/baselines/reference/generatedContextualTyping.types index 423c5d6653b..fbbd5bf7645 100644 --- a/tests/baselines/reference/generatedContextualTyping.types +++ b/tests/baselines/reference/generatedContextualTyping.types @@ -1,3705 +1,3768 @@ === tests/cases/conformance/expressions/contextualTyping/generatedContextualTyping.ts === class Base { private p; } ->Base : Base ->p : any +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>p : any, Symbol(p, Decl(generatedContextualTyping.ts, 0, 12)) class Derived1 extends Base { private m; } ->Derived1 : Derived1 ->Base : Base ->m : any +>Derived1 : Derived1, Symbol(Derived1, Decl(generatedContextualTyping.ts, 0, 25)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>m : any, Symbol(m, Decl(generatedContextualTyping.ts, 1, 29)) class Derived2 extends Base { private n; } ->Derived2 : Derived2 ->Base : Base ->n : any +>Derived2 : Derived2, Symbol(Derived2, Decl(generatedContextualTyping.ts, 1, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : any, Symbol(n, Decl(generatedContextualTyping.ts, 2, 29)) interface Genric { func(n: T[]); } ->Genric : Genric ->T : T ->func : (n: T[]) => any ->n : T[] ->T : T +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>T : T, Symbol(T, Decl(generatedContextualTyping.ts, 3, 17)) +>func : (n: T[]) => any, Symbol(func, Decl(generatedContextualTyping.ts, 3, 21)) +>n : T[], Symbol(n, Decl(generatedContextualTyping.ts, 3, 27)) +>T : T, Symbol(T, Decl(generatedContextualTyping.ts, 3, 17)) var b = new Base(), d1 = new Derived1(), d2 = new Derived2(); ->b : Base +>b : Base, Symbol(b, Decl(generatedContextualTyping.ts, 4, 3)) >new Base() : Base ->Base : typeof Base ->d1 : Derived1 +>Base : typeof Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) >new Derived1() : Derived1 ->Derived1 : typeof Derived1 ->d2 : Derived2 +>Derived1 : typeof Derived1, Symbol(Derived1, Decl(generatedContextualTyping.ts, 0, 25)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >new Derived2() : Derived2 ->Derived2 : typeof Derived2 +>Derived2 : typeof Derived2, Symbol(Derived2, Decl(generatedContextualTyping.ts, 1, 42)) var x1: () => Base[] = () => [d1, d2]; ->x1 : () => Base[] ->Base : Base +>x1 : () => Base[], Symbol(x1, Decl(generatedContextualTyping.ts, 5, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x2: () => Base[] = function() { return [d1, d2] }; ->x2 : () => Base[] ->Base : Base +>x2 : () => Base[], Symbol(x2, Decl(generatedContextualTyping.ts, 6, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x3: () => Base[] = function named() { return [d1, d2] }; ->x3 : () => Base[] ->Base : Base +>x3 : () => Base[], Symbol(x3, Decl(generatedContextualTyping.ts, 7, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 7, 22)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x4: { (): Base[]; } = () => [d1, d2]; ->x4 : () => Base[] ->Base : Base +>x4 : () => Base[], Symbol(x4, Decl(generatedContextualTyping.ts, 8, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x5: { (): Base[]; } = function() { return [d1, d2] }; ->x5 : () => Base[] ->Base : Base +>x5 : () => Base[], Symbol(x5, Decl(generatedContextualTyping.ts, 9, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x6: { (): Base[]; } = function named() { return [d1, d2] }; ->x6 : () => Base[] ->Base : Base +>x6 : () => Base[], Symbol(x6, Decl(generatedContextualTyping.ts, 10, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 10, 25)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x7: Base[] = [d1, d2]; ->x7 : Base[] ->Base : Base +>x7 : Base[], Symbol(x7, Decl(generatedContextualTyping.ts, 11, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x8: Array = [d1, d2]; ->x8 : Base[] ->Array : T[] ->Base : Base +>x8 : Base[], Symbol(x8, Decl(generatedContextualTyping.ts, 12, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x9: { [n: number]: Base; } = [d1, d2]; ->x9 : { [n: number]: Base; } ->n : number ->Base : Base +>x9 : { [n: number]: Base; }, Symbol(x9, Decl(generatedContextualTyping.ts, 13, 3)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 13, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x10: {n: Base[]; } = { n: [d1, d2] }; ->x10 : { n: Base[]; } ->n : Base[] ->Base : Base +>x10 : { n: Base[]; }, Symbol(x10, Decl(generatedContextualTyping.ts, 14, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 14, 10)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 14, 27)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x11: (s: Base[]) => any = n => { var n: Base[]; return null; }; ->x11 : (s: Base[]) => any ->s : Base[] ->Base : Base +>x11 : (s: Base[]) => any, Symbol(x11, Decl(generatedContextualTyping.ts, 15, 3)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 15, 10)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 15, 29), Decl(generatedContextualTyping.ts, 15, 40)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 15, 29), Decl(generatedContextualTyping.ts, 15, 40)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null var x12: Genric = { func: n => { return [d1, d2]; } }; ->x12 : Genric ->Genric : Genric ->Base : Base +>x12 : Genric, Symbol(x12, Decl(generatedContextualTyping.ts, 16, 3)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 16, 25)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 16, 31)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x13 { member: () => Base[] = () => [d1, d2] } ->x13 : x13 ->member : () => Base[] ->Base : Base +>x13 : x13, Symbol(x13, Decl(generatedContextualTyping.ts, 16, 60)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 17, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x14 { member: () => Base[] = function() { return [d1, d2] } } ->x14 : x14 ->member : () => Base[] ->Base : Base +>x14 : x14, Symbol(x14, Decl(generatedContextualTyping.ts, 17, 51)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 18, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x15 { member: () => Base[] = function named() { return [d1, d2] } } ->x15 : x15 ->member : () => Base[] ->Base : Base +>x15 : x15, Symbol(x15, Decl(generatedContextualTyping.ts, 18, 67)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 19, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 19, 34)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x16 { member: { (): Base[]; } = () => [d1, d2] } ->x16 : x16 ->member : () => Base[] ->Base : Base +>x16 : x16, Symbol(x16, Decl(generatedContextualTyping.ts, 19, 73)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 20, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x17 { member: { (): Base[]; } = function() { return [d1, d2] } } ->x17 : x17 ->member : () => Base[] ->Base : Base +>x17 : x17, Symbol(x17, Decl(generatedContextualTyping.ts, 20, 54)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 21, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x18 { member: { (): Base[]; } = function named() { return [d1, d2] } } ->x18 : x18 ->member : () => Base[] ->Base : Base +>x18 : x18, Symbol(x18, Decl(generatedContextualTyping.ts, 21, 70)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 22, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 22, 37)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x19 { member: Base[] = [d1, d2] } ->x19 : x19 ->member : Base[] ->Base : Base +>x19 : x19, Symbol(x19, Decl(generatedContextualTyping.ts, 22, 76)) +>member : Base[], Symbol(member, Decl(generatedContextualTyping.ts, 23, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x20 { member: Array = [d1, d2] } ->x20 : x20 ->member : Base[] ->Array : T[] ->Base : Base +>x20 : x20, Symbol(x20, Decl(generatedContextualTyping.ts, 23, 39)) +>member : Base[], Symbol(member, Decl(generatedContextualTyping.ts, 24, 11)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x21 { member: { [n: number]: Base; } = [d1, d2] } ->x21 : x21 ->member : { [n: number]: Base; } ->n : number ->Base : Base +>x21 : x21, Symbol(x21, Decl(generatedContextualTyping.ts, 24, 44)) +>member : { [n: number]: Base; }, Symbol(member, Decl(generatedContextualTyping.ts, 25, 11)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 25, 23)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x22 { member: {n: Base[]; } = { n: [d1, d2] } } ->x22 : x22 ->member : { n: Base[]; } ->n : Base[] ->Base : Base +>x22 : x22, Symbol(x22, Decl(generatedContextualTyping.ts, 25, 55)) +>member : { n: Base[]; }, Symbol(member, Decl(generatedContextualTyping.ts, 26, 11)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 26, 21)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 26, 38)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x23 { member: (s: Base[]) => any = n => { var n: Base[]; return null; } } ->x23 : x23 ->member : (s: Base[]) => any ->s : Base[] ->Base : Base +>x23 : x23, Symbol(x23, Decl(generatedContextualTyping.ts, 26, 54)) +>member : (s: Base[]) => any, Symbol(member, Decl(generatedContextualTyping.ts, 27, 11)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 27, 21)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 27, 40), Decl(generatedContextualTyping.ts, 27, 51)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 27, 40), Decl(generatedContextualTyping.ts, 27, 51)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null class x24 { member: Genric = { func: n => { return [d1, d2]; } } } ->x24 : x24 ->member : Genric ->Genric : Genric ->Base : Base +>x24 : x24, Symbol(x24, Decl(generatedContextualTyping.ts, 27, 79)) +>member : Genric, Symbol(member, Decl(generatedContextualTyping.ts, 28, 11)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 28, 36)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 28, 42)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x25 { private member: () => Base[] = () => [d1, d2] } ->x25 : x25 ->member : () => Base[] ->Base : Base +>x25 : x25, Symbol(x25, Decl(generatedContextualTyping.ts, 28, 72)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 29, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x26 { private member: () => Base[] = function() { return [d1, d2] } } ->x26 : x26 ->member : () => Base[] ->Base : Base +>x26 : x26, Symbol(x26, Decl(generatedContextualTyping.ts, 29, 59)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 30, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x27 { private member: () => Base[] = function named() { return [d1, d2] } } ->x27 : x27 ->member : () => Base[] ->Base : Base +>x27 : x27, Symbol(x27, Decl(generatedContextualTyping.ts, 30, 75)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 31, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 31, 42)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x28 { private member: { (): Base[]; } = () => [d1, d2] } ->x28 : x28 ->member : () => Base[] ->Base : Base +>x28 : x28, Symbol(x28, Decl(generatedContextualTyping.ts, 31, 81)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 32, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x29 { private member: { (): Base[]; } = function() { return [d1, d2] } } ->x29 : x29 ->member : () => Base[] ->Base : Base +>x29 : x29, Symbol(x29, Decl(generatedContextualTyping.ts, 32, 62)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 33, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x30 { private member: { (): Base[]; } = function named() { return [d1, d2] } } ->x30 : x30 ->member : () => Base[] ->Base : Base +>x30 : x30, Symbol(x30, Decl(generatedContextualTyping.ts, 33, 78)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 34, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 34, 45)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x31 { private member: Base[] = [d1, d2] } ->x31 : x31 ->member : Base[] ->Base : Base +>x31 : x31, Symbol(x31, Decl(generatedContextualTyping.ts, 34, 84)) +>member : Base[], Symbol(member, Decl(generatedContextualTyping.ts, 35, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x32 { private member: Array = [d1, d2] } ->x32 : x32 ->member : Base[] ->Array : T[] ->Base : Base +>x32 : x32, Symbol(x32, Decl(generatedContextualTyping.ts, 35, 47)) +>member : Base[], Symbol(member, Decl(generatedContextualTyping.ts, 36, 11)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x33 { private member: { [n: number]: Base; } = [d1, d2] } ->x33 : x33 ->member : { [n: number]: Base; } ->n : number ->Base : Base +>x33 : x33, Symbol(x33, Decl(generatedContextualTyping.ts, 36, 52)) +>member : { [n: number]: Base; }, Symbol(member, Decl(generatedContextualTyping.ts, 37, 11)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 37, 31)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x34 { private member: {n: Base[]; } = { n: [d1, d2] } } ->x34 : x34 ->member : { n: Base[]; } ->n : Base[] ->Base : Base +>x34 : x34, Symbol(x34, Decl(generatedContextualTyping.ts, 37, 63)) +>member : { n: Base[]; }, Symbol(member, Decl(generatedContextualTyping.ts, 38, 11)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 38, 29)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 38, 46)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x35 { private member: (s: Base[]) => any = n => { var n: Base[]; return null; } } ->x35 : x35 ->member : (s: Base[]) => any ->s : Base[] ->Base : Base +>x35 : x35, Symbol(x35, Decl(generatedContextualTyping.ts, 38, 62)) +>member : (s: Base[]) => any, Symbol(member, Decl(generatedContextualTyping.ts, 39, 11)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 39, 29)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 39, 48), Decl(generatedContextualTyping.ts, 39, 59)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 39, 48), Decl(generatedContextualTyping.ts, 39, 59)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null class x36 { private member: Genric = { func: n => { return [d1, d2]; } } } ->x36 : x36 ->member : Genric ->Genric : Genric ->Base : Base +>x36 : x36, Symbol(x36, Decl(generatedContextualTyping.ts, 39, 87)) +>member : Genric, Symbol(member, Decl(generatedContextualTyping.ts, 40, 11)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 40, 44)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 40, 50)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x37 { public member: () => Base[] = () => [d1, d2] } ->x37 : x37 ->member : () => Base[] ->Base : Base +>x37 : x37, Symbol(x37, Decl(generatedContextualTyping.ts, 40, 80)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 41, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x38 { public member: () => Base[] = function() { return [d1, d2] } } ->x38 : x38 ->member : () => Base[] ->Base : Base +>x38 : x38, Symbol(x38, Decl(generatedContextualTyping.ts, 41, 58)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 42, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x39 { public member: () => Base[] = function named() { return [d1, d2] } } ->x39 : x39 ->member : () => Base[] ->Base : Base +>x39 : x39, Symbol(x39, Decl(generatedContextualTyping.ts, 42, 74)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 43, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 43, 41)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x40 { public member: { (): Base[]; } = () => [d1, d2] } ->x40 : x40 ->member : () => Base[] ->Base : Base +>x40 : x40, Symbol(x40, Decl(generatedContextualTyping.ts, 43, 80)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 44, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x41 { public member: { (): Base[]; } = function() { return [d1, d2] } } ->x41 : x41 ->member : () => Base[] ->Base : Base +>x41 : x41, Symbol(x41, Decl(generatedContextualTyping.ts, 44, 61)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 45, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x42 { public member: { (): Base[]; } = function named() { return [d1, d2] } } ->x42 : x42 ->member : () => Base[] ->Base : Base +>x42 : x42, Symbol(x42, Decl(generatedContextualTyping.ts, 45, 77)) +>member : () => Base[], Symbol(member, Decl(generatedContextualTyping.ts, 46, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 46, 44)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x43 { public member: Base[] = [d1, d2] } ->x43 : x43 ->member : Base[] ->Base : Base +>x43 : x43, Symbol(x43, Decl(generatedContextualTyping.ts, 46, 83)) +>member : Base[], Symbol(member, Decl(generatedContextualTyping.ts, 47, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x44 { public member: Array = [d1, d2] } ->x44 : x44 ->member : Base[] ->Array : T[] ->Base : Base +>x44 : x44, Symbol(x44, Decl(generatedContextualTyping.ts, 47, 46)) +>member : Base[], Symbol(member, Decl(generatedContextualTyping.ts, 48, 11)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x45 { public member: { [n: number]: Base; } = [d1, d2] } ->x45 : x45 ->member : { [n: number]: Base; } ->n : number ->Base : Base +>x45 : x45, Symbol(x45, Decl(generatedContextualTyping.ts, 48, 51)) +>member : { [n: number]: Base; }, Symbol(member, Decl(generatedContextualTyping.ts, 49, 11)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 49, 30)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x46 { public member: {n: Base[]; } = { n: [d1, d2] } } ->x46 : x46 ->member : { n: Base[]; } ->n : Base[] ->Base : Base +>x46 : x46, Symbol(x46, Decl(generatedContextualTyping.ts, 49, 62)) +>member : { n: Base[]; }, Symbol(member, Decl(generatedContextualTyping.ts, 50, 11)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 50, 28)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 50, 45)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x47 { public member: (s: Base[]) => any = n => { var n: Base[]; return null; } } ->x47 : x47 ->member : (s: Base[]) => any ->s : Base[] ->Base : Base +>x47 : x47, Symbol(x47, Decl(generatedContextualTyping.ts, 50, 61)) +>member : (s: Base[]) => any, Symbol(member, Decl(generatedContextualTyping.ts, 51, 11)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 51, 28)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 51, 47), Decl(generatedContextualTyping.ts, 51, 58)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 51, 47), Decl(generatedContextualTyping.ts, 51, 58)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null class x48 { public member: Genric = { func: n => { return [d1, d2]; } } } ->x48 : x48 ->member : Genric ->Genric : Genric ->Base : Base +>x48 : x48, Symbol(x48, Decl(generatedContextualTyping.ts, 51, 86)) +>member : Genric, Symbol(member, Decl(generatedContextualTyping.ts, 52, 11)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 52, 43)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 52, 49)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x49 { static member: () => Base[] = () => [d1, d2] } ->x49 : x49 ->member : () => Base[] ->Base : Base +>x49 : x49, Symbol(x49, Decl(generatedContextualTyping.ts, 52, 79)) +>member : () => Base[], Symbol(x49.member, Decl(generatedContextualTyping.ts, 53, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x50 { static member: () => Base[] = function() { return [d1, d2] } } ->x50 : x50 ->member : () => Base[] ->Base : Base +>x50 : x50, Symbol(x50, Decl(generatedContextualTyping.ts, 53, 58)) +>member : () => Base[], Symbol(x50.member, Decl(generatedContextualTyping.ts, 54, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x51 { static member: () => Base[] = function named() { return [d1, d2] } } ->x51 : x51 ->member : () => Base[] ->Base : Base +>x51 : x51, Symbol(x51, Decl(generatedContextualTyping.ts, 54, 74)) +>member : () => Base[], Symbol(x51.member, Decl(generatedContextualTyping.ts, 55, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 55, 41)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x52 { static member: { (): Base[]; } = () => [d1, d2] } ->x52 : x52 ->member : () => Base[] ->Base : Base +>x52 : x52, Symbol(x52, Decl(generatedContextualTyping.ts, 55, 80)) +>member : () => Base[], Symbol(x52.member, Decl(generatedContextualTyping.ts, 56, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x53 { static member: { (): Base[]; } = function() { return [d1, d2] } } ->x53 : x53 ->member : () => Base[] ->Base : Base +>x53 : x53, Symbol(x53, Decl(generatedContextualTyping.ts, 56, 61)) +>member : () => Base[], Symbol(x53.member, Decl(generatedContextualTyping.ts, 57, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x54 { static member: { (): Base[]; } = function named() { return [d1, d2] } } ->x54 : x54 ->member : () => Base[] ->Base : Base +>x54 : x54, Symbol(x54, Decl(generatedContextualTyping.ts, 57, 77)) +>member : () => Base[], Symbol(x54.member, Decl(generatedContextualTyping.ts, 58, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 58, 44)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x55 { static member: Base[] = [d1, d2] } ->x55 : x55 ->member : Base[] ->Base : Base +>x55 : x55, Symbol(x55, Decl(generatedContextualTyping.ts, 58, 83)) +>member : Base[], Symbol(x55.member, Decl(generatedContextualTyping.ts, 59, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x56 { static member: Array = [d1, d2] } ->x56 : x56 ->member : Base[] ->Array : T[] ->Base : Base +>x56 : x56, Symbol(x56, Decl(generatedContextualTyping.ts, 59, 46)) +>member : Base[], Symbol(x56.member, Decl(generatedContextualTyping.ts, 60, 11)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x57 { static member: { [n: number]: Base; } = [d1, d2] } ->x57 : x57 ->member : { [n: number]: Base; } ->n : number ->Base : Base +>x57 : x57, Symbol(x57, Decl(generatedContextualTyping.ts, 60, 51)) +>member : { [n: number]: Base; }, Symbol(x57.member, Decl(generatedContextualTyping.ts, 61, 11)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 61, 30)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x58 { static member: {n: Base[]; } = { n: [d1, d2] } } ->x58 : x58 ->member : { n: Base[]; } ->n : Base[] ->Base : Base +>x58 : x58, Symbol(x58, Decl(generatedContextualTyping.ts, 61, 62)) +>member : { n: Base[]; }, Symbol(x58.member, Decl(generatedContextualTyping.ts, 62, 11)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 62, 28)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 62, 45)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x59 { static member: (s: Base[]) => any = n => { var n: Base[]; return null; } } ->x59 : x59 ->member : (s: Base[]) => any ->s : Base[] ->Base : Base +>x59 : x59, Symbol(x59, Decl(generatedContextualTyping.ts, 62, 61)) +>member : (s: Base[]) => any, Symbol(x59.member, Decl(generatedContextualTyping.ts, 63, 11)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 63, 28)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 63, 47), Decl(generatedContextualTyping.ts, 63, 58)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 63, 47), Decl(generatedContextualTyping.ts, 63, 58)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null class x60 { static member: Genric = { func: n => { return [d1, d2]; } } } ->x60 : x60 ->member : Genric ->Genric : Genric ->Base : Base +>x60 : x60, Symbol(x60, Decl(generatedContextualTyping.ts, 63, 86)) +>member : Genric, Symbol(x60.member, Decl(generatedContextualTyping.ts, 64, 11)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 64, 43)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 64, 49)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x61 { private static member: () => Base[] = () => [d1, d2] } ->x61 : x61 ->member : () => Base[] ->Base : Base +>x61 : x61, Symbol(x61, Decl(generatedContextualTyping.ts, 64, 79)) +>member : () => Base[], Symbol(x61.member, Decl(generatedContextualTyping.ts, 65, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x62 { private static member: () => Base[] = function() { return [d1, d2] } } ->x62 : x62 ->member : () => Base[] ->Base : Base +>x62 : x62, Symbol(x62, Decl(generatedContextualTyping.ts, 65, 66)) +>member : () => Base[], Symbol(x62.member, Decl(generatedContextualTyping.ts, 66, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x63 { private static member: () => Base[] = function named() { return [d1, d2] } } ->x63 : x63 ->member : () => Base[] ->Base : Base +>x63 : x63, Symbol(x63, Decl(generatedContextualTyping.ts, 66, 82)) +>member : () => Base[], Symbol(x63.member, Decl(generatedContextualTyping.ts, 67, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 67, 49)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x64 { private static member: { (): Base[]; } = () => [d1, d2] } ->x64 : x64 ->member : () => Base[] ->Base : Base +>x64 : x64, Symbol(x64, Decl(generatedContextualTyping.ts, 67, 88)) +>member : () => Base[], Symbol(x64.member, Decl(generatedContextualTyping.ts, 68, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x65 { private static member: { (): Base[]; } = function() { return [d1, d2] } } ->x65 : x65 ->member : () => Base[] ->Base : Base +>x65 : x65, Symbol(x65, Decl(generatedContextualTyping.ts, 68, 69)) +>member : () => Base[], Symbol(x65.member, Decl(generatedContextualTyping.ts, 69, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x66 { private static member: { (): Base[]; } = function named() { return [d1, d2] } } ->x66 : x66 ->member : () => Base[] ->Base : Base +>x66 : x66, Symbol(x66, Decl(generatedContextualTyping.ts, 69, 85)) +>member : () => Base[], Symbol(x66.member, Decl(generatedContextualTyping.ts, 70, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 70, 52)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x67 { private static member: Base[] = [d1, d2] } ->x67 : x67 ->member : Base[] ->Base : Base +>x67 : x67, Symbol(x67, Decl(generatedContextualTyping.ts, 70, 91)) +>member : Base[], Symbol(x67.member, Decl(generatedContextualTyping.ts, 71, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x68 { private static member: Array = [d1, d2] } ->x68 : x68 ->member : Base[] ->Array : T[] ->Base : Base +>x68 : x68, Symbol(x68, Decl(generatedContextualTyping.ts, 71, 54)) +>member : Base[], Symbol(x68.member, Decl(generatedContextualTyping.ts, 72, 11)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x69 { private static member: { [n: number]: Base; } = [d1, d2] } ->x69 : x69 ->member : { [n: number]: Base; } ->n : number ->Base : Base +>x69 : x69, Symbol(x69, Decl(generatedContextualTyping.ts, 72, 59)) +>member : { [n: number]: Base; }, Symbol(x69.member, Decl(generatedContextualTyping.ts, 73, 11)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 73, 38)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x70 { private static member: {n: Base[]; } = { n: [d1, d2] } } ->x70 : x70 ->member : { n: Base[]; } ->n : Base[] ->Base : Base +>x70 : x70, Symbol(x70, Decl(generatedContextualTyping.ts, 73, 70)) +>member : { n: Base[]; }, Symbol(x70.member, Decl(generatedContextualTyping.ts, 74, 11)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 74, 36)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 74, 53)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x71 { private static member: (s: Base[]) => any = n => { var n: Base[]; return null; } } ->x71 : x71 ->member : (s: Base[]) => any ->s : Base[] ->Base : Base +>x71 : x71, Symbol(x71, Decl(generatedContextualTyping.ts, 74, 69)) +>member : (s: Base[]) => any, Symbol(x71.member, Decl(generatedContextualTyping.ts, 75, 11)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 75, 36)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 75, 55), Decl(generatedContextualTyping.ts, 75, 66)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 75, 55), Decl(generatedContextualTyping.ts, 75, 66)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null class x72 { private static member: Genric = { func: n => { return [d1, d2]; } } } ->x72 : x72 ->member : Genric ->Genric : Genric ->Base : Base +>x72 : x72, Symbol(x72, Decl(generatedContextualTyping.ts, 75, 94)) +>member : Genric, Symbol(x72.member, Decl(generatedContextualTyping.ts, 76, 11)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 76, 51)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 76, 57)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x73 { public static member: () => Base[] = () => [d1, d2] } ->x73 : x73 ->member : () => Base[] ->Base : Base +>x73 : x73, Symbol(x73, Decl(generatedContextualTyping.ts, 76, 87)) +>member : () => Base[], Symbol(x73.member, Decl(generatedContextualTyping.ts, 77, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x74 { public static member: () => Base[] = function() { return [d1, d2] } } ->x74 : x74 ->member : () => Base[] ->Base : Base +>x74 : x74, Symbol(x74, Decl(generatedContextualTyping.ts, 77, 65)) +>member : () => Base[], Symbol(x74.member, Decl(generatedContextualTyping.ts, 78, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x75 { public static member: () => Base[] = function named() { return [d1, d2] } } ->x75 : x75 ->member : () => Base[] ->Base : Base +>x75 : x75, Symbol(x75, Decl(generatedContextualTyping.ts, 78, 81)) +>member : () => Base[], Symbol(x75.member, Decl(generatedContextualTyping.ts, 79, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 79, 48)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x76 { public static member: { (): Base[]; } = () => [d1, d2] } ->x76 : x76 ->member : () => Base[] ->Base : Base +>x76 : x76, Symbol(x76, Decl(generatedContextualTyping.ts, 79, 87)) +>member : () => Base[], Symbol(x76.member, Decl(generatedContextualTyping.ts, 80, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x77 { public static member: { (): Base[]; } = function() { return [d1, d2] } } ->x77 : x77 ->member : () => Base[] ->Base : Base +>x77 : x77, Symbol(x77, Decl(generatedContextualTyping.ts, 80, 68)) +>member : () => Base[], Symbol(x77.member, Decl(generatedContextualTyping.ts, 81, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x78 { public static member: { (): Base[]; } = function named() { return [d1, d2] } } ->x78 : x78 ->member : () => Base[] ->Base : Base +>x78 : x78, Symbol(x78, Decl(generatedContextualTyping.ts, 81, 84)) +>member : () => Base[], Symbol(x78.member, Decl(generatedContextualTyping.ts, 82, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 82, 51)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x79 { public static member: Base[] = [d1, d2] } ->x79 : x79 ->member : Base[] ->Base : Base +>x79 : x79, Symbol(x79, Decl(generatedContextualTyping.ts, 82, 90)) +>member : Base[], Symbol(x79.member, Decl(generatedContextualTyping.ts, 83, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x80 { public static member: Array = [d1, d2] } ->x80 : x80 ->member : Base[] ->Array : T[] ->Base : Base +>x80 : x80, Symbol(x80, Decl(generatedContextualTyping.ts, 83, 53)) +>member : Base[], Symbol(x80.member, Decl(generatedContextualTyping.ts, 84, 11)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x81 { public static member: { [n: number]: Base; } = [d1, d2] } ->x81 : x81 ->member : { [n: number]: Base; } ->n : number ->Base : Base +>x81 : x81, Symbol(x81, Decl(generatedContextualTyping.ts, 84, 58)) +>member : { [n: number]: Base; }, Symbol(x81.member, Decl(generatedContextualTyping.ts, 85, 11)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 85, 37)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x82 { public static member: {n: Base[]; } = { n: [d1, d2] } } ->x82 : x82 ->member : { n: Base[]; } ->n : Base[] ->Base : Base +>x82 : x82, Symbol(x82, Decl(generatedContextualTyping.ts, 85, 69)) +>member : { n: Base[]; }, Symbol(x82.member, Decl(generatedContextualTyping.ts, 86, 11)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 86, 35)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 86, 52)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x83 { public static member: (s: Base[]) => any = n => { var n: Base[]; return null; } } ->x83 : x83 ->member : (s: Base[]) => any ->s : Base[] ->Base : Base +>x83 : x83, Symbol(x83, Decl(generatedContextualTyping.ts, 86, 68)) +>member : (s: Base[]) => any, Symbol(x83.member, Decl(generatedContextualTyping.ts, 87, 11)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 87, 35)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 87, 54), Decl(generatedContextualTyping.ts, 87, 65)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 87, 54), Decl(generatedContextualTyping.ts, 87, 65)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null class x84 { public static member: Genric = { func: n => { return [d1, d2]; } } } ->x84 : x84 ->member : Genric ->Genric : Genric ->Base : Base +>x84 : x84, Symbol(x84, Decl(generatedContextualTyping.ts, 87, 93)) +>member : Genric, Symbol(x84.member, Decl(generatedContextualTyping.ts, 88, 11)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 88, 50)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 88, 56)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x85 { constructor(parm: () => Base[] = () => [d1, d2]) { } } ->x85 : x85 ->parm : () => Base[] ->Base : Base +>x85 : x85, Symbol(x85, Decl(generatedContextualTyping.ts, 88, 86)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 89, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x86 { constructor(parm: () => Base[] = function() { return [d1, d2] }) { } } ->x86 : x86 ->parm : () => Base[] ->Base : Base +>x86 : x86, Symbol(x86, Decl(generatedContextualTyping.ts, 89, 66)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 90, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x87 { constructor(parm: () => Base[] = function named() { return [d1, d2] }) { } } ->x87 : x87 ->parm : () => Base[] ->Base : Base +>x87 : x87, Symbol(x87, Decl(generatedContextualTyping.ts, 90, 82)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 91, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 91, 44)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x88 { constructor(parm: { (): Base[]; } = () => [d1, d2]) { } } ->x88 : x88 ->parm : () => Base[] ->Base : Base +>x88 : x88, Symbol(x88, Decl(generatedContextualTyping.ts, 91, 88)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 92, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x89 { constructor(parm: { (): Base[]; } = function() { return [d1, d2] }) { } } ->x89 : x89 ->parm : () => Base[] ->Base : Base +>x89 : x89, Symbol(x89, Decl(generatedContextualTyping.ts, 92, 69)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 93, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x90 { constructor(parm: { (): Base[]; } = function named() { return [d1, d2] }) { } } ->x90 : x90 ->parm : () => Base[] ->Base : Base +>x90 : x90, Symbol(x90, Decl(generatedContextualTyping.ts, 93, 85)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 94, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 94, 47)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x91 { constructor(parm: Base[] = [d1, d2]) { } } ->x91 : x91 ->parm : Base[] ->Base : Base +>x91 : x91, Symbol(x91, Decl(generatedContextualTyping.ts, 94, 91)) +>parm : Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 95, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x92 { constructor(parm: Array = [d1, d2]) { } } ->x92 : x92 ->parm : Base[] ->Array : T[] ->Base : Base +>x92 : x92, Symbol(x92, Decl(generatedContextualTyping.ts, 95, 54)) +>parm : Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 96, 24)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x93 { constructor(parm: { [n: number]: Base; } = [d1, d2]) { } } ->x93 : x93 ->parm : { [n: number]: Base; } ->n : number ->Base : Base +>x93 : x93, Symbol(x93, Decl(generatedContextualTyping.ts, 96, 59)) +>parm : { [n: number]: Base; }, Symbol(parm, Decl(generatedContextualTyping.ts, 97, 24)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 97, 33)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x94 { constructor(parm: {n: Base[]; } = { n: [d1, d2] }) { } } ->x94 : x94 ->parm : { n: Base[]; } ->n : Base[] ->Base : Base +>x94 : x94, Symbol(x94, Decl(generatedContextualTyping.ts, 97, 70)) +>parm : { n: Base[]; }, Symbol(parm, Decl(generatedContextualTyping.ts, 98, 24)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 98, 31)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 98, 48)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x95 { constructor(parm: (s: Base[]) => any = n => { var n: Base[]; return null; }) { } } ->x95 : x95 ->parm : (s: Base[]) => any ->s : Base[] ->Base : Base +>x95 : x95, Symbol(x95, Decl(generatedContextualTyping.ts, 98, 69)) +>parm : (s: Base[]) => any, Symbol(parm, Decl(generatedContextualTyping.ts, 99, 24)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 99, 31)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 99, 50), Decl(generatedContextualTyping.ts, 99, 61)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 99, 50), Decl(generatedContextualTyping.ts, 99, 61)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null class x96 { constructor(parm: Genric = { func: n => { return [d1, d2]; } }) { } } ->x96 : x96 ->parm : Genric ->Genric : Genric ->Base : Base +>x96 : x96, Symbol(x96, Decl(generatedContextualTyping.ts, 99, 94)) +>parm : Genric, Symbol(parm, Decl(generatedContextualTyping.ts, 100, 24)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 100, 46)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 100, 52)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x97 { constructor(public parm: () => Base[] = () => [d1, d2]) { } } ->x97 : x97 ->parm : () => Base[] ->Base : Base +>x97 : x97, Symbol(x97, Decl(generatedContextualTyping.ts, 100, 87)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 101, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x98 { constructor(public parm: () => Base[] = function() { return [d1, d2] }) { } } ->x98 : x98 ->parm : () => Base[] ->Base : Base +>x98 : x98, Symbol(x98, Decl(generatedContextualTyping.ts, 101, 73)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 102, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x99 { constructor(public parm: () => Base[] = function named() { return [d1, d2] }) { } } ->x99 : x99 ->parm : () => Base[] ->Base : Base +>x99 : x99, Symbol(x99, Decl(generatedContextualTyping.ts, 102, 89)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 103, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 103, 51)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x100 { constructor(public parm: { (): Base[]; } = () => [d1, d2]) { } } ->x100 : x100 ->parm : () => Base[] ->Base : Base +>x100 : x100, Symbol(x100, Decl(generatedContextualTyping.ts, 103, 95)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 104, 25)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x101 { constructor(public parm: { (): Base[]; } = function() { return [d1, d2] }) { } } ->x101 : x101 ->parm : () => Base[] ->Base : Base +>x101 : x101, Symbol(x101, Decl(generatedContextualTyping.ts, 104, 77)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 105, 25)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x102 { constructor(public parm: { (): Base[]; } = function named() { return [d1, d2] }) { } } ->x102 : x102 ->parm : () => Base[] ->Base : Base +>x102 : x102, Symbol(x102, Decl(generatedContextualTyping.ts, 105, 93)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 106, 25)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 106, 55)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x103 { constructor(public parm: Base[] = [d1, d2]) { } } ->x103 : x103 ->parm : Base[] ->Base : Base +>x103 : x103, Symbol(x103, Decl(generatedContextualTyping.ts, 106, 99)) +>parm : Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 107, 25)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x104 { constructor(public parm: Array = [d1, d2]) { } } ->x104 : x104 ->parm : Base[] ->Array : T[] ->Base : Base +>x104 : x104, Symbol(x104, Decl(generatedContextualTyping.ts, 107, 62)) +>parm : Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 108, 25)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x105 { constructor(public parm: { [n: number]: Base; } = [d1, d2]) { } } ->x105 : x105 ->parm : { [n: number]: Base; } ->n : number ->Base : Base +>x105 : x105, Symbol(x105, Decl(generatedContextualTyping.ts, 108, 67)) +>parm : { [n: number]: Base; }, Symbol(parm, Decl(generatedContextualTyping.ts, 109, 25)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 109, 41)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x106 { constructor(public parm: {n: Base[]; } = { n: [d1, d2] }) { } } ->x106 : x106 ->parm : { n: Base[]; } ->n : Base[] ->Base : Base +>x106 : x106, Symbol(x106, Decl(generatedContextualTyping.ts, 109, 78)) +>parm : { n: Base[]; }, Symbol(parm, Decl(generatedContextualTyping.ts, 110, 25)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 110, 39)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 110, 56)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x107 { constructor(public parm: (s: Base[]) => any = n => { var n: Base[]; return null; }) { } } ->x107 : x107 ->parm : (s: Base[]) => any ->s : Base[] ->Base : Base +>x107 : x107, Symbol(x107, Decl(generatedContextualTyping.ts, 110, 77)) +>parm : (s: Base[]) => any, Symbol(parm, Decl(generatedContextualTyping.ts, 111, 25)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 111, 39)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 111, 58), Decl(generatedContextualTyping.ts, 111, 69)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 111, 58), Decl(generatedContextualTyping.ts, 111, 69)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null class x108 { constructor(public parm: Genric = { func: n => { return [d1, d2]; } }) { } } ->x108 : x108 ->parm : Genric ->Genric : Genric ->Base : Base +>x108 : x108, Symbol(x108, Decl(generatedContextualTyping.ts, 111, 102)) +>parm : Genric, Symbol(parm, Decl(generatedContextualTyping.ts, 112, 25)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 112, 54)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 112, 60)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x109 { constructor(private parm: () => Base[] = () => [d1, d2]) { } } ->x109 : x109 ->parm : () => Base[] ->Base : Base +>x109 : x109, Symbol(x109, Decl(generatedContextualTyping.ts, 112, 95)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 113, 25)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x110 { constructor(private parm: () => Base[] = function() { return [d1, d2] }) { } } ->x110 : x110 ->parm : () => Base[] ->Base : Base +>x110 : x110, Symbol(x110, Decl(generatedContextualTyping.ts, 113, 75)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 114, 25)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x111 { constructor(private parm: () => Base[] = function named() { return [d1, d2] }) { } } ->x111 : x111 ->parm : () => Base[] ->Base : Base +>x111 : x111, Symbol(x111, Decl(generatedContextualTyping.ts, 114, 91)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 115, 25)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 115, 53)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x112 { constructor(private parm: { (): Base[]; } = () => [d1, d2]) { } } ->x112 : x112 ->parm : () => Base[] ->Base : Base +>x112 : x112, Symbol(x112, Decl(generatedContextualTyping.ts, 115, 97)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 116, 25)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x113 { constructor(private parm: { (): Base[]; } = function() { return [d1, d2] }) { } } ->x113 : x113 ->parm : () => Base[] ->Base : Base +>x113 : x113, Symbol(x113, Decl(generatedContextualTyping.ts, 116, 78)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 117, 25)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x114 { constructor(private parm: { (): Base[]; } = function named() { return [d1, d2] }) { } } ->x114 : x114 ->parm : () => Base[] ->Base : Base +>x114 : x114, Symbol(x114, Decl(generatedContextualTyping.ts, 117, 94)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 118, 25)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 118, 56)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x115 { constructor(private parm: Base[] = [d1, d2]) { } } ->x115 : x115 ->parm : Base[] ->Base : Base +>x115 : x115, Symbol(x115, Decl(generatedContextualTyping.ts, 118, 100)) +>parm : Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 119, 25)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x116 { constructor(private parm: Array = [d1, d2]) { } } ->x116 : x116 ->parm : Base[] ->Array : T[] ->Base : Base +>x116 : x116, Symbol(x116, Decl(generatedContextualTyping.ts, 119, 63)) +>parm : Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 120, 25)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x117 { constructor(private parm: { [n: number]: Base; } = [d1, d2]) { } } ->x117 : x117 ->parm : { [n: number]: Base; } ->n : number ->Base : Base +>x117 : x117, Symbol(x117, Decl(generatedContextualTyping.ts, 120, 68)) +>parm : { [n: number]: Base; }, Symbol(parm, Decl(generatedContextualTyping.ts, 121, 25)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 121, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x118 { constructor(private parm: {n: Base[]; } = { n: [d1, d2] }) { } } ->x118 : x118 ->parm : { n: Base[]; } ->n : Base[] ->Base : Base +>x118 : x118, Symbol(x118, Decl(generatedContextualTyping.ts, 121, 79)) +>parm : { n: Base[]; }, Symbol(parm, Decl(generatedContextualTyping.ts, 122, 25)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 122, 40)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 122, 57)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) class x119 { constructor(private parm: (s: Base[]) => any = n => { var n: Base[]; return null; }) { } } ->x119 : x119 ->parm : (s: Base[]) => any ->s : Base[] ->Base : Base +>x119 : x119, Symbol(x119, Decl(generatedContextualTyping.ts, 122, 78)) +>parm : (s: Base[]) => any, Symbol(parm, Decl(generatedContextualTyping.ts, 123, 25)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 123, 40)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 123, 59), Decl(generatedContextualTyping.ts, 123, 70)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 123, 59), Decl(generatedContextualTyping.ts, 123, 70)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null class x120 { constructor(private parm: Genric = { func: n => { return [d1, d2]; } }) { } } ->x120 : x120 ->parm : Genric ->Genric : Genric ->Base : Base +>x120 : x120, Symbol(x120, Decl(generatedContextualTyping.ts, 123, 103)) +>parm : Genric, Symbol(parm, Decl(generatedContextualTyping.ts, 124, 25)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 124, 55)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 124, 61)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x121(parm: () => Base[] = () => [d1, d2]) { } ->x121 : (parm?: () => Base[]) => void ->parm : () => Base[] ->Base : Base +>x121 : (parm?: () => Base[]) => void, Symbol(x121, Decl(generatedContextualTyping.ts, 124, 96)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 125, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x122(parm: () => Base[] = function() { return [d1, d2] }) { } ->x122 : (parm?: () => Base[]) => void ->parm : () => Base[] ->Base : Base +>x122 : (parm?: () => Base[]) => void, Symbol(x122, Decl(generatedContextualTyping.ts, 125, 54)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 126, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x123(parm: () => Base[] = function named() { return [d1, d2] }) { } ->x123 : (parm?: () => Base[]) => void ->parm : () => Base[] ->Base : Base +>x123 : (parm?: () => Base[]) => void, Symbol(x123, Decl(generatedContextualTyping.ts, 126, 70)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 127, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 127, 34)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x124(parm: { (): Base[]; } = () => [d1, d2]) { } ->x124 : (parm?: () => Base[]) => void ->parm : () => Base[] ->Base : Base +>x124 : (parm?: () => Base[]) => void, Symbol(x124, Decl(generatedContextualTyping.ts, 127, 76)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 128, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x125(parm: { (): Base[]; } = function() { return [d1, d2] }) { } ->x125 : (parm?: () => Base[]) => void ->parm : () => Base[] ->Base : Base +>x125 : (parm?: () => Base[]) => void, Symbol(x125, Decl(generatedContextualTyping.ts, 128, 57)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 129, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x126(parm: { (): Base[]; } = function named() { return [d1, d2] }) { } ->x126 : (parm?: () => Base[]) => void ->parm : () => Base[] ->Base : Base +>x126 : (parm?: () => Base[]) => void, Symbol(x126, Decl(generatedContextualTyping.ts, 129, 73)) +>parm : () => Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 130, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 130, 37)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x127(parm: Base[] = [d1, d2]) { } ->x127 : (parm?: Base[]) => void ->parm : Base[] ->Base : Base +>x127 : (parm?: Base[]) => void, Symbol(x127, Decl(generatedContextualTyping.ts, 130, 79)) +>parm : Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 131, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x128(parm: Array = [d1, d2]) { } ->x128 : (parm?: Base[]) => void ->parm : Base[] ->Array : T[] ->Base : Base +>x128 : (parm?: Base[]) => void, Symbol(x128, Decl(generatedContextualTyping.ts, 131, 42)) +>parm : Base[], Symbol(parm, Decl(generatedContextualTyping.ts, 132, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x129(parm: { [n: number]: Base; } = [d1, d2]) { } ->x129 : (parm?: { [n: number]: Base; }) => void ->parm : { [n: number]: Base; } ->n : number ->Base : Base +>x129 : (parm?: { [n: number]: Base; }) => void, Symbol(x129, Decl(generatedContextualTyping.ts, 132, 47)) +>parm : { [n: number]: Base; }, Symbol(parm, Decl(generatedContextualTyping.ts, 133, 14)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 133, 23)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x130(parm: {n: Base[]; } = { n: [d1, d2] }) { } ->x130 : (parm?: { n: Base[]; }) => void ->parm : { n: Base[]; } ->n : Base[] ->Base : Base +>x130 : (parm?: { n: Base[]; }) => void, Symbol(x130, Decl(generatedContextualTyping.ts, 133, 58)) +>parm : { n: Base[]; }, Symbol(parm, Decl(generatedContextualTyping.ts, 134, 14)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 134, 21)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 134, 38)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x131(parm: (s: Base[]) => any = n => { var n: Base[]; return null; }) { } ->x131 : (parm?: (s: Base[]) => any) => void ->parm : (s: Base[]) => any ->s : Base[] ->Base : Base +>x131 : (parm?: (s: Base[]) => any) => void, Symbol(x131, Decl(generatedContextualTyping.ts, 134, 57)) +>parm : (s: Base[]) => any, Symbol(parm, Decl(generatedContextualTyping.ts, 135, 14)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 135, 21)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 135, 40), Decl(generatedContextualTyping.ts, 135, 51)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 135, 40), Decl(generatedContextualTyping.ts, 135, 51)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null function x132(parm: Genric = { func: n => { return [d1, d2]; } }) { } ->x132 : (parm?: Genric) => void ->parm : Genric ->Genric : Genric ->Base : Base +>x132 : (parm?: Genric) => void, Symbol(x132, Decl(generatedContextualTyping.ts, 135, 82)) +>parm : Genric, Symbol(parm, Decl(generatedContextualTyping.ts, 136, 14)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 136, 36)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 136, 42)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x133(): () => Base[] { return () => [d1, d2]; } ->x133 : () => () => Base[] ->Base : Base +>x133 : () => () => Base[], Symbol(x133, Decl(generatedContextualTyping.ts, 136, 75)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x134(): () => Base[] { return function() { return [d1, d2] }; } ->x134 : () => () => Base[] ->Base : Base +>x134 : () => () => Base[], Symbol(x134, Decl(generatedContextualTyping.ts, 137, 56)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x135(): () => Base[] { return function named() { return [d1, d2] }; } ->x135 : () => () => Base[] ->Base : Base +>x135 : () => () => Base[], Symbol(x135, Decl(generatedContextualTyping.ts, 138, 72)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 139, 38)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x136(): { (): Base[]; } { return () => [d1, d2]; } ->x136 : () => () => Base[] ->Base : Base +>x136 : () => () => Base[], Symbol(x136, Decl(generatedContextualTyping.ts, 139, 78)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x137(): { (): Base[]; } { return function() { return [d1, d2] }; } ->x137 : () => () => Base[] ->Base : Base +>x137 : () => () => Base[], Symbol(x137, Decl(generatedContextualTyping.ts, 140, 59)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x138(): { (): Base[]; } { return function named() { return [d1, d2] }; } ->x138 : () => () => Base[] ->Base : Base +>x138 : () => () => Base[], Symbol(x138, Decl(generatedContextualTyping.ts, 141, 75)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 142, 41)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x139(): Base[] { return [d1, d2]; } ->x139 : () => Base[] ->Base : Base +>x139 : () => Base[], Symbol(x139, Decl(generatedContextualTyping.ts, 142, 81)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x140(): Array { return [d1, d2]; } ->x140 : () => Base[] ->Array : T[] ->Base : Base +>x140 : () => Base[], Symbol(x140, Decl(generatedContextualTyping.ts, 143, 44)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x141(): { [n: number]: Base; } { return [d1, d2]; } ->x141 : () => { [n: number]: Base; } ->n : number ->Base : Base +>x141 : () => { [n: number]: Base; }, Symbol(x141, Decl(generatedContextualTyping.ts, 144, 49)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 145, 20)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x142(): {n: Base[]; } { return { n: [d1, d2] }; } ->x142 : () => { n: Base[]; } ->n : Base[] ->Base : Base +>x142 : () => { n: Base[]; }, Symbol(x142, Decl(generatedContextualTyping.ts, 145, 60)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 146, 18)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 146, 42)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x143(): (s: Base[]) => any { return n => { var n: Base[]; return null; }; } ->x143 : () => (s: Base[]) => any ->s : Base[] ->Base : Base +>x143 : () => (s: Base[]) => any, Symbol(x143, Decl(generatedContextualTyping.ts, 146, 59)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 147, 18)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 147, 44), Decl(generatedContextualTyping.ts, 147, 55)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 147, 44), Decl(generatedContextualTyping.ts, 147, 55)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null function x144(): Genric { return { func: n => { return [d1, d2]; } }; } ->x144 : () => Genric ->Genric : Genric ->Base : Base +>x144 : () => Genric, Symbol(x144, Decl(generatedContextualTyping.ts, 147, 84)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 148, 40)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 148, 46)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x145(): () => Base[] { return () => [d1, d2]; return () => [d1, d2]; } ->x145 : () => () => Base[] ->Base : Base +>x145 : () => () => Base[], Symbol(x145, Decl(generatedContextualTyping.ts, 148, 77)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x146(): () => Base[] { return function() { return [d1, d2] }; return function() { return [d1, d2] }; } ->x146 : () => () => Base[] ->Base : Base +>x146 : () => () => Base[], Symbol(x146, Decl(generatedContextualTyping.ts, 149, 79)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x147(): () => Base[] { return function named() { return [d1, d2] }; return function named() { return [d1, d2] }; } ->x147 : () => () => Base[] ->Base : Base +>x147 : () => () => Base[], Symbol(x147, Decl(generatedContextualTyping.ts, 150, 111)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 151, 38)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 151, 83)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x148(): { (): Base[]; } { return () => [d1, d2]; return () => [d1, d2]; } ->x148 : () => () => Base[] ->Base : Base +>x148 : () => () => Base[], Symbol(x148, Decl(generatedContextualTyping.ts, 151, 123)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x149(): { (): Base[]; } { return function() { return [d1, d2] }; return function() { return [d1, d2] }; } ->x149 : () => () => Base[] ->Base : Base +>x149 : () => () => Base[], Symbol(x149, Decl(generatedContextualTyping.ts, 152, 82)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x150(): { (): Base[]; } { return function named() { return [d1, d2] }; return function named() { return [d1, d2] }; } ->x150 : () => () => Base[] ->Base : Base +>x150 : () => () => Base[], Symbol(x150, Decl(generatedContextualTyping.ts, 153, 114)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 154, 41)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 154, 86)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x151(): Base[] { return [d1, d2]; return [d1, d2]; } ->x151 : () => Base[] ->Base : Base +>x151 : () => Base[], Symbol(x151, Decl(generatedContextualTyping.ts, 154, 126)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x152(): Array { return [d1, d2]; return [d1, d2]; } ->x152 : () => Base[] ->Array : T[] ->Base : Base +>x152 : () => Base[], Symbol(x152, Decl(generatedContextualTyping.ts, 155, 61)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x153(): { [n: number]: Base; } { return [d1, d2]; return [d1, d2]; } ->x153 : () => { [n: number]: Base; } ->n : number ->Base : Base +>x153 : () => { [n: number]: Base; }, Symbol(x153, Decl(generatedContextualTyping.ts, 156, 66)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 157, 20)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x154(): {n: Base[]; } { return { n: [d1, d2] }; return { n: [d1, d2] }; } ->x154 : () => { n: Base[]; } ->n : Base[] ->Base : Base +>x154 : () => { n: Base[]; }, Symbol(x154, Decl(generatedContextualTyping.ts, 157, 77)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 158, 18)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 158, 42)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 158, 66)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x155(): (s: Base[]) => any { return n => { var n: Base[]; return null; }; return n => { var n: Base[]; return null; }; } ->x155 : () => (s: Base[]) => any ->s : Base[] ->Base : Base +>x155 : () => (s: Base[]) => any, Symbol(x155, Decl(generatedContextualTyping.ts, 158, 83)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 159, 18)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 159, 44), Decl(generatedContextualTyping.ts, 159, 55)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 159, 44), Decl(generatedContextualTyping.ts, 159, 55)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 159, 89), Decl(generatedContextualTyping.ts, 159, 100)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 159, 89), Decl(generatedContextualTyping.ts, 159, 100)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null function x156(): Genric { return { func: n => { return [d1, d2]; } }; return { func: n => { return [d1, d2]; } }; } ->x156 : () => Genric ->Genric : Genric ->Base : Base +>x156 : () => Genric, Symbol(x156, Decl(generatedContextualTyping.ts, 159, 129)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 160, 40)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 160, 46)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 160, 84)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 160, 90)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x157: () => () => Base[] = () => { return () => [d1, d2]; }; ->x157 : () => () => Base[] ->Base : Base +>x157 : () => () => Base[], Symbol(x157, Decl(generatedContextualTyping.ts, 161, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => { return () => [d1, d2]; } : () => () => (Derived1 | Derived2)[] >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x158: () => () => Base[] = () => { return function() { return [d1, d2] }; }; ->x158 : () => () => Base[] ->Base : Base +>x158 : () => () => Base[], Symbol(x158, Decl(generatedContextualTyping.ts, 162, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => { return function() { return [d1, d2] }; } : () => () => (Derived1 | Derived2)[] >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x159: () => () => Base[] = () => { return function named() { return [d1, d2] }; }; ->x159 : () => () => Base[] ->Base : Base +>x159 : () => () => Base[], Symbol(x159, Decl(generatedContextualTyping.ts, 163, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => { return function named() { return [d1, d2] }; } : () => () => (Derived1 | Derived2)[] >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 163, 45)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x160: () => { (): Base[]; } = () => { return () => [d1, d2]; }; ->x160 : () => () => Base[] ->Base : Base +>x160 : () => () => Base[], Symbol(x160, Decl(generatedContextualTyping.ts, 164, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => { return () => [d1, d2]; } : () => () => (Derived1 | Derived2)[] >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x161: () => { (): Base[]; } = () => { return function() { return [d1, d2] }; }; ->x161 : () => () => Base[] ->Base : Base +>x161 : () => () => Base[], Symbol(x161, Decl(generatedContextualTyping.ts, 165, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => { return function() { return [d1, d2] }; } : () => () => (Derived1 | Derived2)[] >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x162: () => { (): Base[]; } = () => { return function named() { return [d1, d2] }; }; ->x162 : () => () => Base[] ->Base : Base +>x162 : () => () => Base[], Symbol(x162, Decl(generatedContextualTyping.ts, 166, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => { return function named() { return [d1, d2] }; } : () => () => (Derived1 | Derived2)[] >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 166, 48)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x163: () => Base[] = () => { return [d1, d2]; }; ->x163 : () => Base[] ->Base : Base +>x163 : () => Base[], Symbol(x163, Decl(generatedContextualTyping.ts, 167, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => { return [d1, d2]; } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x164: () => Array = () => { return [d1, d2]; }; ->x164 : () => Base[] ->Array : T[] ->Base : Base +>x164 : () => Base[], Symbol(x164, Decl(generatedContextualTyping.ts, 168, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => { return [d1, d2]; } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x165: () => { [n: number]: Base; } = () => { return [d1, d2]; }; ->x165 : () => { [n: number]: Base; } ->n : number ->Base : Base +>x165 : () => { [n: number]: Base; }, Symbol(x165, Decl(generatedContextualTyping.ts, 169, 3)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 169, 19)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => { return [d1, d2]; } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x166: () => {n: Base[]; } = () => { return { n: [d1, d2] }; }; ->x166 : () => { n: Base[]; } ->n : Base[] ->Base : Base +>x166 : () => { n: Base[]; }, Symbol(x166, Decl(generatedContextualTyping.ts, 170, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 170, 17)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => { return { n: [d1, d2] }; } : () => { n: (Derived1 | Derived2)[]; } >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 170, 49)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x167: () => (s: Base[]) => any = () => { return n => { var n: Base[]; return null; }; }; ->x167 : () => (s: Base[]) => any ->s : Base[] ->Base : Base +>x167 : () => (s: Base[]) => any, Symbol(x167, Decl(generatedContextualTyping.ts, 171, 3)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 171, 17)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => { return n => { var n: Base[]; return null; }; } : () => (n: Base[]) => any >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 171, 51), Decl(generatedContextualTyping.ts, 171, 62)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 171, 51), Decl(generatedContextualTyping.ts, 171, 62)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null var x168: () => Genric = () => { return { func: n => { return [d1, d2]; } }; }; ->x168 : () => Genric ->Genric : Genric ->Base : Base +>x168 : () => Genric, Symbol(x168, Decl(generatedContextualTyping.ts, 172, 3)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => { return { func: n => { return [d1, d2]; } }; } : () => { func: (n: Base[]) => (Derived1 | Derived2)[]; } >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 172, 47)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 172, 53)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x169: () => () => Base[] = function() { return () => [d1, d2]; }; ->x169 : () => () => Base[] ->Base : Base +>x169 : () => () => Base[], Symbol(x169, Decl(generatedContextualTyping.ts, 173, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return () => [d1, d2]; } : () => () => (Derived1 | Derived2)[] >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x170: () => () => Base[] = function() { return function() { return [d1, d2] }; }; ->x170 : () => () => Base[] ->Base : Base +>x170 : () => () => Base[], Symbol(x170, Decl(generatedContextualTyping.ts, 174, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return function() { return [d1, d2] }; } : () => () => (Derived1 | Derived2)[] >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x171: () => () => Base[] = function() { return function named() { return [d1, d2] }; }; ->x171 : () => () => Base[] ->Base : Base +>x171 : () => () => Base[], Symbol(x171, Decl(generatedContextualTyping.ts, 175, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return function named() { return [d1, d2] }; } : () => () => (Derived1 | Derived2)[] >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 175, 50)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x172: () => { (): Base[]; } = function() { return () => [d1, d2]; }; ->x172 : () => () => Base[] ->Base : Base +>x172 : () => () => Base[], Symbol(x172, Decl(generatedContextualTyping.ts, 176, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return () => [d1, d2]; } : () => () => (Derived1 | Derived2)[] >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x173: () => { (): Base[]; } = function() { return function() { return [d1, d2] }; }; ->x173 : () => () => Base[] ->Base : Base +>x173 : () => () => Base[], Symbol(x173, Decl(generatedContextualTyping.ts, 177, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return function() { return [d1, d2] }; } : () => () => (Derived1 | Derived2)[] >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x174: () => { (): Base[]; } = function() { return function named() { return [d1, d2] }; }; ->x174 : () => () => Base[] ->Base : Base +>x174 : () => () => Base[], Symbol(x174, Decl(generatedContextualTyping.ts, 178, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return function named() { return [d1, d2] }; } : () => () => (Derived1 | Derived2)[] >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 178, 53)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x175: () => Base[] = function() { return [d1, d2]; }; ->x175 : () => Base[] ->Base : Base +>x175 : () => Base[], Symbol(x175, Decl(generatedContextualTyping.ts, 179, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2]; } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x176: () => Array = function() { return [d1, d2]; }; ->x176 : () => Base[] ->Array : T[] ->Base : Base +>x176 : () => Base[], Symbol(x176, Decl(generatedContextualTyping.ts, 180, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2]; } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x177: () => { [n: number]: Base; } = function() { return [d1, d2]; }; ->x177 : () => { [n: number]: Base; } ->n : number ->Base : Base +>x177 : () => { [n: number]: Base; }, Symbol(x177, Decl(generatedContextualTyping.ts, 181, 3)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 181, 19)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2]; } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x178: () => {n: Base[]; } = function() { return { n: [d1, d2] }; }; ->x178 : () => { n: Base[]; } ->n : Base[] ->Base : Base +>x178 : () => { n: Base[]; }, Symbol(x178, Decl(generatedContextualTyping.ts, 182, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 182, 17)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return { n: [d1, d2] }; } : () => { n: (Derived1 | Derived2)[]; } >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 182, 54)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x179: () => (s: Base[]) => any = function() { return n => { var n: Base[]; return null; }; }; ->x179 : () => (s: Base[]) => any ->s : Base[] ->Base : Base +>x179 : () => (s: Base[]) => any, Symbol(x179, Decl(generatedContextualTyping.ts, 183, 3)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 183, 17)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return n => { var n: Base[]; return null; }; } : () => (n: Base[]) => any >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 183, 56), Decl(generatedContextualTyping.ts, 183, 67)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 183, 56), Decl(generatedContextualTyping.ts, 183, 67)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null var x180: () => Genric = function() { return { func: n => { return [d1, d2]; } }; }; ->x180 : () => Genric ->Genric : Genric ->Base : Base +>x180 : () => Genric, Symbol(x180, Decl(generatedContextualTyping.ts, 184, 3)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return { func: n => { return [d1, d2]; } }; } : () => { func: (n: Base[]) => (Derived1 | Derived2)[]; } >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 184, 52)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 184, 58)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x181 { var t: () => Base[] = () => [d1, d2]; } ->x181 : typeof x181 ->t : () => Base[] ->Base : Base +>x181 : typeof x181, Symbol(x181, Decl(generatedContextualTyping.ts, 184, 90)) +>t : () => Base[], Symbol(t, Decl(generatedContextualTyping.ts, 185, 17)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x182 { var t: () => Base[] = function() { return [d1, d2] }; } ->x182 : typeof x182 ->t : () => Base[] ->Base : Base +>x182 : typeof x182, Symbol(x182, Decl(generatedContextualTyping.ts, 185, 53)) +>t : () => Base[], Symbol(t, Decl(generatedContextualTyping.ts, 186, 17)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x183 { var t: () => Base[] = function named() { return [d1, d2] }; } ->x183 : typeof x183 ->t : () => Base[] ->Base : Base +>x183 : typeof x183, Symbol(x183, Decl(generatedContextualTyping.ts, 186, 69)) +>t : () => Base[], Symbol(t, Decl(generatedContextualTyping.ts, 187, 17)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 187, 35)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x184 { var t: { (): Base[]; } = () => [d1, d2]; } ->x184 : typeof x184 ->t : () => Base[] ->Base : Base +>x184 : typeof x184, Symbol(x184, Decl(generatedContextualTyping.ts, 187, 75)) +>t : () => Base[], Symbol(t, Decl(generatedContextualTyping.ts, 188, 17)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x185 { var t: { (): Base[]; } = function() { return [d1, d2] }; } ->x185 : typeof x185 ->t : () => Base[] ->Base : Base +>x185 : typeof x185, Symbol(x185, Decl(generatedContextualTyping.ts, 188, 56)) +>t : () => Base[], Symbol(t, Decl(generatedContextualTyping.ts, 189, 17)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x186 { var t: { (): Base[]; } = function named() { return [d1, d2] }; } ->x186 : typeof x186 ->t : () => Base[] ->Base : Base +>x186 : typeof x186, Symbol(x186, Decl(generatedContextualTyping.ts, 189, 72)) +>t : () => Base[], Symbol(t, Decl(generatedContextualTyping.ts, 190, 17)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 190, 38)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x187 { var t: Base[] = [d1, d2]; } ->x187 : typeof x187 ->t : Base[] ->Base : Base +>x187 : typeof x187, Symbol(x187, Decl(generatedContextualTyping.ts, 190, 78)) +>t : Base[], Symbol(t, Decl(generatedContextualTyping.ts, 191, 17)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x188 { var t: Array = [d1, d2]; } ->x188 : typeof x188 ->t : Base[] ->Array : T[] ->Base : Base +>x188 : typeof x188, Symbol(x188, Decl(generatedContextualTyping.ts, 191, 41)) +>t : Base[], Symbol(t, Decl(generatedContextualTyping.ts, 192, 17)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x189 { var t: { [n: number]: Base; } = [d1, d2]; } ->x189 : typeof x189 ->t : { [n: number]: Base; } ->n : number ->Base : Base +>x189 : typeof x189, Symbol(x189, Decl(generatedContextualTyping.ts, 192, 46)) +>t : { [n: number]: Base; }, Symbol(t, Decl(generatedContextualTyping.ts, 193, 17)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 193, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x190 { var t: {n: Base[]; } = { n: [d1, d2] }; } ->x190 : typeof x190 ->t : { n: Base[]; } ->n : Base[] ->Base : Base +>x190 : typeof x190, Symbol(x190, Decl(generatedContextualTyping.ts, 193, 57)) +>t : { n: Base[]; }, Symbol(t, Decl(generatedContextualTyping.ts, 194, 17)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 194, 22)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 194, 39)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x191 { var t: (s: Base[]) => any = n => { var n: Base[]; return null; }; } ->x191 : typeof x191 ->t : (s: Base[]) => any ->s : Base[] ->Base : Base +>x191 : typeof x191, Symbol(x191, Decl(generatedContextualTyping.ts, 194, 56)) +>t : (s: Base[]) => any, Symbol(t, Decl(generatedContextualTyping.ts, 195, 17)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 195, 22)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 195, 41), Decl(generatedContextualTyping.ts, 195, 52)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 195, 41), Decl(generatedContextualTyping.ts, 195, 52)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null module x192 { var t: Genric = { func: n => { return [d1, d2]; } }; } ->x192 : typeof x192 ->t : Genric ->Genric : Genric ->Base : Base +>x192 : typeof x192, Symbol(x192, Decl(generatedContextualTyping.ts, 195, 81)) +>t : Genric, Symbol(t, Decl(generatedContextualTyping.ts, 196, 17)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 196, 37)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 196, 43)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x193 { export var t: () => Base[] = () => [d1, d2]; } ->x193 : typeof x193 ->t : () => Base[] ->Base : Base +>x193 : typeof x193, Symbol(x193, Decl(generatedContextualTyping.ts, 196, 74)) +>t : () => Base[], Symbol(t, Decl(generatedContextualTyping.ts, 197, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x194 { export var t: () => Base[] = function() { return [d1, d2] }; } ->x194 : typeof x194 ->t : () => Base[] ->Base : Base +>x194 : typeof x194, Symbol(x194, Decl(generatedContextualTyping.ts, 197, 60)) +>t : () => Base[], Symbol(t, Decl(generatedContextualTyping.ts, 198, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x195 { export var t: () => Base[] = function named() { return [d1, d2] }; } ->x195 : typeof x195 ->t : () => Base[] ->Base : Base +>x195 : typeof x195, Symbol(x195, Decl(generatedContextualTyping.ts, 198, 76)) +>t : () => Base[], Symbol(t, Decl(generatedContextualTyping.ts, 199, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 199, 42)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x196 { export var t: { (): Base[]; } = () => [d1, d2]; } ->x196 : typeof x196 ->t : () => Base[] ->Base : Base +>x196 : typeof x196, Symbol(x196, Decl(generatedContextualTyping.ts, 199, 82)) +>t : () => Base[], Symbol(t, Decl(generatedContextualTyping.ts, 200, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x197 { export var t: { (): Base[]; } = function() { return [d1, d2] }; } ->x197 : typeof x197 ->t : () => Base[] ->Base : Base +>x197 : typeof x197, Symbol(x197, Decl(generatedContextualTyping.ts, 200, 63)) +>t : () => Base[], Symbol(t, Decl(generatedContextualTyping.ts, 201, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x198 { export var t: { (): Base[]; } = function named() { return [d1, d2] }; } ->x198 : typeof x198 ->t : () => Base[] ->Base : Base +>x198 : typeof x198, Symbol(x198, Decl(generatedContextualTyping.ts, 201, 79)) +>t : () => Base[], Symbol(t, Decl(generatedContextualTyping.ts, 202, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 202, 45)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x199 { export var t: Base[] = [d1, d2]; } ->x199 : typeof x199 ->t : Base[] ->Base : Base +>x199 : typeof x199, Symbol(x199, Decl(generatedContextualTyping.ts, 202, 85)) +>t : Base[], Symbol(t, Decl(generatedContextualTyping.ts, 203, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x200 { export var t: Array = [d1, d2]; } ->x200 : typeof x200 ->t : Base[] ->Array : T[] ->Base : Base +>x200 : typeof x200, Symbol(x200, Decl(generatedContextualTyping.ts, 203, 48)) +>t : Base[], Symbol(t, Decl(generatedContextualTyping.ts, 204, 24)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x201 { export var t: { [n: number]: Base; } = [d1, d2]; } ->x201 : typeof x201 ->t : { [n: number]: Base; } ->n : number ->Base : Base +>x201 : typeof x201, Symbol(x201, Decl(generatedContextualTyping.ts, 204, 53)) +>t : { [n: number]: Base; }, Symbol(t, Decl(generatedContextualTyping.ts, 205, 24)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 205, 31)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x202 { export var t: {n: Base[]; } = { n: [d1, d2] }; } ->x202 : typeof x202 ->t : { n: Base[]; } ->n : Base[] ->Base : Base +>x202 : typeof x202, Symbol(x202, Decl(generatedContextualTyping.ts, 205, 64)) +>t : { n: Base[]; }, Symbol(t, Decl(generatedContextualTyping.ts, 206, 24)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 206, 29)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 206, 46)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) module x203 { export var t: (s: Base[]) => any = n => { var n: Base[]; return null; }; } ->x203 : typeof x203 ->t : (s: Base[]) => any ->s : Base[] ->Base : Base +>x203 : typeof x203, Symbol(x203, Decl(generatedContextualTyping.ts, 206, 63)) +>t : (s: Base[]) => any, Symbol(t, Decl(generatedContextualTyping.ts, 207, 24)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 207, 29)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 207, 48), Decl(generatedContextualTyping.ts, 207, 59)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 207, 48), Decl(generatedContextualTyping.ts, 207, 59)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null module x204 { export var t: Genric = { func: n => { return [d1, d2]; } }; } ->x204 : typeof x204 ->t : Genric ->Genric : Genric ->Base : Base +>x204 : typeof x204, Symbol(x204, Decl(generatedContextualTyping.ts, 207, 88)) +>t : Genric, Symbol(t, Decl(generatedContextualTyping.ts, 208, 24)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 208, 44)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 208, 50)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x206 = <() => Base[]>function() { return [d1, d2] }; ->x206 : () => Base[] +>x206 : () => Base[], Symbol(x206, Decl(generatedContextualTyping.ts, 209, 3)) ><() => Base[]>function() { return [d1, d2] } : () => Base[] ->Base : Base +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x207 = <() => Base[]>function named() { return [d1, d2] }; ->x207 : () => Base[] +>x207 : () => Base[], Symbol(x207, Decl(generatedContextualTyping.ts, 210, 3)) ><() => Base[]>function named() { return [d1, d2] } : () => Base[] ->Base : Base +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 210, 25)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x209 = <{ (): Base[]; }>function() { return [d1, d2] }; ->x209 : () => Base[] +>x209 : () => Base[], Symbol(x209, Decl(generatedContextualTyping.ts, 211, 3)) ><{ (): Base[]; }>function() { return [d1, d2] } : () => Base[] ->Base : Base +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x210 = <{ (): Base[]; }>function named() { return [d1, d2] }; ->x210 : () => Base[] +>x210 : () => Base[], Symbol(x210, Decl(generatedContextualTyping.ts, 212, 3)) ><{ (): Base[]; }>function named() { return [d1, d2] } : () => Base[] ->Base : Base +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 212, 28)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x211 = [d1, d2]; ->x211 : Base[] +>x211 : Base[], Symbol(x211, Decl(generatedContextualTyping.ts, 213, 3)) >[d1, d2] : Base[] ->Base : Base +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x212 = >[d1, d2]; ->x212 : Base[] +>x212 : Base[], Symbol(x212, Decl(generatedContextualTyping.ts, 214, 3)) >>[d1, d2] : Base[] ->Array : T[] ->Base : Base +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x213 = <{ [n: number]: Base; }>[d1, d2]; ->x213 : { [n: number]: Base; } +>x213 : { [n: number]: Base; }, Symbol(x213, Decl(generatedContextualTyping.ts, 215, 3)) ><{ [n: number]: Base; }>[d1, d2] : { [n: number]: Base; } ->n : number ->Base : Base +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 215, 15)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x214 = <{n: Base[]; } >{ n: [d1, d2] }; ->x214 : { n: Base[]; } +>x214 : { n: Base[]; }, Symbol(x214, Decl(generatedContextualTyping.ts, 216, 3)) ><{n: Base[]; } >{ n: [d1, d2] } : { n: Base[]; } ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 216, 13)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 216, 28)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x216 = >{ func: n => { return [d1, d2]; } }; ->x216 : Genric +>x216 : Genric, Symbol(x216, Decl(generatedContextualTyping.ts, 217, 3)) >>{ func: n => { return [d1, d2]; } } : Genric ->Genric : Genric ->Base : Base +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 217, 26)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 217, 32)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x217 = (<() => Base[]>undefined) || function() { return [d1, d2] }; ->x217 : () => Base[] +>x217 : () => Base[], Symbol(x217, Decl(generatedContextualTyping.ts, 218, 3)) >(<() => Base[]>undefined) || function() { return [d1, d2] } : () => Base[] >(<() => Base[]>undefined) : () => Base[] ><() => Base[]>undefined : () => Base[] ->Base : Base ->undefined : undefined +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>undefined : undefined, Symbol(undefined) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x218 = (<() => Base[]>undefined) || function named() { return [d1, d2] }; ->x218 : () => Base[] +>x218 : () => Base[], Symbol(x218, Decl(generatedContextualTyping.ts, 219, 3)) >(<() => Base[]>undefined) || function named() { return [d1, d2] } : () => Base[] >(<() => Base[]>undefined) : () => Base[] ><() => Base[]>undefined : () => Base[] ->Base : Base ->undefined : undefined +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>undefined : undefined, Symbol(undefined) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 219, 39)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x219 = (<{ (): Base[]; }>undefined) || function() { return [d1, d2] }; ->x219 : () => Base[] +>x219 : () => Base[], Symbol(x219, Decl(generatedContextualTyping.ts, 220, 3)) >(<{ (): Base[]; }>undefined) || function() { return [d1, d2] } : () => Base[] >(<{ (): Base[]; }>undefined) : () => Base[] ><{ (): Base[]; }>undefined : () => Base[] ->Base : Base ->undefined : undefined +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>undefined : undefined, Symbol(undefined) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x220 = (<{ (): Base[]; }>undefined) || function named() { return [d1, d2] }; ->x220 : () => Base[] +>x220 : () => Base[], Symbol(x220, Decl(generatedContextualTyping.ts, 221, 3)) >(<{ (): Base[]; }>undefined) || function named() { return [d1, d2] } : () => Base[] >(<{ (): Base[]; }>undefined) : () => Base[] ><{ (): Base[]; }>undefined : () => Base[] ->Base : Base ->undefined : undefined +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>undefined : undefined, Symbol(undefined) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 221, 42)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x221 = (undefined) || [d1, d2]; ->x221 : Base[] +>x221 : Base[], Symbol(x221, Decl(generatedContextualTyping.ts, 222, 3)) >(undefined) || [d1, d2] : Base[] >(undefined) : Base[] >undefined : Base[] ->Base : Base ->undefined : undefined +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>undefined : undefined, Symbol(undefined) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x222 = (>undefined) || [d1, d2]; ->x222 : Base[] +>x222 : Base[], Symbol(x222, Decl(generatedContextualTyping.ts, 223, 3)) >(>undefined) || [d1, d2] : Base[] >(>undefined) : Base[] >>undefined : Base[] ->Array : T[] ->Base : Base ->undefined : undefined +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>undefined : undefined, Symbol(undefined) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x223 = (<{ [n: number]: Base; }>undefined) || [d1, d2]; ->x223 : { [n: number]: Base; } +>x223 : { [n: number]: Base; }, Symbol(x223, Decl(generatedContextualTyping.ts, 224, 3)) >(<{ [n: number]: Base; }>undefined) || [d1, d2] : { [n: number]: Base; } >(<{ [n: number]: Base; }>undefined) : { [n: number]: Base; } ><{ [n: number]: Base; }>undefined : { [n: number]: Base; } ->n : number ->Base : Base ->undefined : undefined +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 224, 16)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>undefined : undefined, Symbol(undefined) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x224 = (<{n: Base[]; } >undefined) || { n: [d1, d2] }; ->x224 : { n: Base[]; } +>x224 : { n: Base[]; }, Symbol(x224, Decl(generatedContextualTyping.ts, 225, 3)) >(<{n: Base[]; } >undefined) || { n: [d1, d2] } : { n: Base[]; } >(<{n: Base[]; } >undefined) : { n: Base[]; } ><{n: Base[]; } >undefined : { n: Base[]; } ->n : Base[] ->Base : Base ->undefined : undefined +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 225, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>undefined : undefined, Symbol(undefined) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 225, 43)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x225: () => Base[]; x225 = () => [d1, d2]; ->x225 : () => Base[] ->Base : Base +>x225 : () => Base[], Symbol(x225, Decl(generatedContextualTyping.ts, 226, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x225 = () => [d1, d2] : () => (Derived1 | Derived2)[] ->x225 : () => Base[] +>x225 : () => Base[], Symbol(x225, Decl(generatedContextualTyping.ts, 226, 3)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x226: () => Base[]; x226 = function() { return [d1, d2] }; ->x226 : () => Base[] ->Base : Base +>x226 : () => Base[], Symbol(x226, Decl(generatedContextualTyping.ts, 227, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x226 = function() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->x226 : () => Base[] +>x226 : () => Base[], Symbol(x226, Decl(generatedContextualTyping.ts, 227, 3)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x227: () => Base[]; x227 = function named() { return [d1, d2] }; ->x227 : () => Base[] ->Base : Base +>x227 : () => Base[], Symbol(x227, Decl(generatedContextualTyping.ts, 228, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x227 = function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->x227 : () => Base[] +>x227 : () => Base[], Symbol(x227, Decl(generatedContextualTyping.ts, 228, 3)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 228, 30)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x228: { (): Base[]; }; x228 = () => [d1, d2]; ->x228 : () => Base[] ->Base : Base +>x228 : () => Base[], Symbol(x228, Decl(generatedContextualTyping.ts, 229, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x228 = () => [d1, d2] : () => (Derived1 | Derived2)[] ->x228 : () => Base[] +>x228 : () => Base[], Symbol(x228, Decl(generatedContextualTyping.ts, 229, 3)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x229: { (): Base[]; }; x229 = function() { return [d1, d2] }; ->x229 : () => Base[] ->Base : Base +>x229 : () => Base[], Symbol(x229, Decl(generatedContextualTyping.ts, 230, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x229 = function() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->x229 : () => Base[] +>x229 : () => Base[], Symbol(x229, Decl(generatedContextualTyping.ts, 230, 3)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x230: { (): Base[]; }; x230 = function named() { return [d1, d2] }; ->x230 : () => Base[] ->Base : Base +>x230 : () => Base[], Symbol(x230, Decl(generatedContextualTyping.ts, 231, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x230 = function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->x230 : () => Base[] +>x230 : () => Base[], Symbol(x230, Decl(generatedContextualTyping.ts, 231, 3)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 231, 33)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x231: Base[]; x231 = [d1, d2]; ->x231 : Base[] ->Base : Base +>x231 : Base[], Symbol(x231, Decl(generatedContextualTyping.ts, 232, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x231 = [d1, d2] : (Derived1 | Derived2)[] ->x231 : Base[] +>x231 : Base[], Symbol(x231, Decl(generatedContextualTyping.ts, 232, 3)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x232: Array; x232 = [d1, d2]; ->x232 : Base[] ->Array : T[] ->Base : Base +>x232 : Base[], Symbol(x232, Decl(generatedContextualTyping.ts, 233, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x232 = [d1, d2] : (Derived1 | Derived2)[] ->x232 : Base[] +>x232 : Base[], Symbol(x232, Decl(generatedContextualTyping.ts, 233, 3)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x233: { [n: number]: Base; }; x233 = [d1, d2]; ->x233 : { [n: number]: Base; } ->n : number ->Base : Base +>x233 : { [n: number]: Base; }, Symbol(x233, Decl(generatedContextualTyping.ts, 234, 3)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 234, 13)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x233 = [d1, d2] : (Derived1 | Derived2)[] ->x233 : { [n: number]: Base; } +>x233 : { [n: number]: Base; }, Symbol(x233, Decl(generatedContextualTyping.ts, 234, 3)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x234: {n: Base[]; } ; x234 = { n: [d1, d2] }; ->x234 : { n: Base[]; } ->n : Base[] ->Base : Base +>x234 : { n: Base[]; }, Symbol(x234, Decl(generatedContextualTyping.ts, 235, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 235, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x234 = { n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->x234 : { n: Base[]; } +>x234 : { n: Base[]; }, Symbol(x234, Decl(generatedContextualTyping.ts, 235, 3)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 235, 34)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x235: (s: Base[]) => any; x235 = n => { var n: Base[]; return null; }; ->x235 : (s: Base[]) => any ->s : Base[] ->Base : Base +>x235 : (s: Base[]) => any, Symbol(x235, Decl(generatedContextualTyping.ts, 236, 3)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 236, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x235 = n => { var n: Base[]; return null; } : (n: Base[]) => any ->x235 : (s: Base[]) => any +>x235 : (s: Base[]) => any, Symbol(x235, Decl(generatedContextualTyping.ts, 236, 3)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 236, 36), Decl(generatedContextualTyping.ts, 236, 47)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 236, 36), Decl(generatedContextualTyping.ts, 236, 47)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null var x236: Genric; x236 = { func: n => { return [d1, d2]; } }; ->x236 : Genric ->Genric : Genric ->Base : Base +>x236 : Genric, Symbol(x236, Decl(generatedContextualTyping.ts, 237, 3)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x236 = { func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->x236 : Genric +>x236 : Genric, Symbol(x236, Decl(generatedContextualTyping.ts, 237, 3)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 237, 32)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 237, 38)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x237: { n: () => Base[]; } = { n: () => [d1, d2] }; ->x237 : { n: () => Base[]; } ->n : () => Base[] ->Base : Base +>x237 : { n: () => Base[]; }, Symbol(x237, Decl(generatedContextualTyping.ts, 238, 3)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 238, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: () => [d1, d2] } : { n: () => (Derived1 | Derived2)[]; } ->n : () => (Derived1 | Derived2)[] +>n : () => (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 238, 34)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x238: { n: () => Base[]; } = { n: function() { return [d1, d2] } }; ->x238 : { n: () => Base[]; } ->n : () => Base[] ->Base : Base +>x238 : { n: () => Base[]; }, Symbol(x238, Decl(generatedContextualTyping.ts, 239, 3)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 239, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: function() { return [d1, d2] } } : { n: () => (Derived1 | Derived2)[]; } ->n : () => (Derived1 | Derived2)[] +>n : () => (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 239, 34)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x239: { n: () => Base[]; } = { n: function named() { return [d1, d2] } }; ->x239 : { n: () => Base[]; } ->n : () => Base[] ->Base : Base +>x239 : { n: () => Base[]; }, Symbol(x239, Decl(generatedContextualTyping.ts, 240, 3)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 240, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: function named() { return [d1, d2] } } : { n: () => (Derived1 | Derived2)[]; } ->n : () => (Derived1 | Derived2)[] +>n : () => (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 240, 34)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 240, 37)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x240: { n: { (): Base[]; }; } = { n: () => [d1, d2] }; ->x240 : { n: () => Base[]; } ->n : () => Base[] ->Base : Base +>x240 : { n: () => Base[]; }, Symbol(x240, Decl(generatedContextualTyping.ts, 241, 3)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 241, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: () => [d1, d2] } : { n: () => (Derived1 | Derived2)[]; } ->n : () => (Derived1 | Derived2)[] +>n : () => (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 241, 37)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x241: { n: { (): Base[]; }; } = { n: function() { return [d1, d2] } }; ->x241 : { n: () => Base[]; } ->n : () => Base[] ->Base : Base +>x241 : { n: () => Base[]; }, Symbol(x241, Decl(generatedContextualTyping.ts, 242, 3)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 242, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: function() { return [d1, d2] } } : { n: () => (Derived1 | Derived2)[]; } ->n : () => (Derived1 | Derived2)[] +>n : () => (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 242, 37)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x242: { n: { (): Base[]; }; } = { n: function named() { return [d1, d2] } }; ->x242 : { n: () => Base[]; } ->n : () => Base[] ->Base : Base +>x242 : { n: () => Base[]; }, Symbol(x242, Decl(generatedContextualTyping.ts, 243, 3)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 243, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: function named() { return [d1, d2] } } : { n: () => (Derived1 | Derived2)[]; } ->n : () => (Derived1 | Derived2)[] +>n : () => (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 243, 37)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 243, 40)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x243: { n: Base[]; } = { n: [d1, d2] }; ->x243 : { n: Base[]; } ->n : Base[] ->Base : Base +>x243 : { n: Base[]; }, Symbol(x243, Decl(generatedContextualTyping.ts, 244, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 244, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 244, 28)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x244: { n: Array; } = { n: [d1, d2] }; ->x244 : { n: Base[]; } ->n : Base[] ->Array : T[] ->Base : Base +>x244 : { n: Base[]; }, Symbol(x244, Decl(generatedContextualTyping.ts, 245, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 245, 11)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 245, 33)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x245: { n: { [n: number]: Base; }; } = { n: [d1, d2] }; ->x245 : { n: { [n: number]: Base; }; } ->n : { [n: number]: Base; } ->n : number ->Base : Base +>x245 : { n: { [n: number]: Base; }; }, Symbol(x245, Decl(generatedContextualTyping.ts, 246, 3)) +>n : { [n: number]: Base; }, Symbol(n, Decl(generatedContextualTyping.ts, 246, 11)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 246, 18)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 246, 44)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x246: { n: {n: Base[]; } ; } = { n: { n: [d1, d2] } }; ->x246 : { n: { n: Base[]; }; } ->n : { n: Base[]; } ->n : Base[] ->Base : Base +>x246 : { n: { n: Base[]; }; }, Symbol(x246, Decl(generatedContextualTyping.ts, 247, 3)) +>n : { n: Base[]; }, Symbol(n, Decl(generatedContextualTyping.ts, 247, 11)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 247, 16)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: { n: [d1, d2] } } : { n: { n: (Derived1 | Derived2)[]; }; } ->n : { n: (Derived1 | Derived2)[]; } +>n : { n: (Derived1 | Derived2)[]; }, Symbol(n, Decl(generatedContextualTyping.ts, 247, 36)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 247, 41)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x247: { n: (s: Base[]) => any; } = { n: n => { var n: Base[]; return null; } }; ->x247 : { n: (s: Base[]) => any; } ->n : (s: Base[]) => any ->s : Base[] ->Base : Base +>x247 : { n: (s: Base[]) => any; }, Symbol(x247, Decl(generatedContextualTyping.ts, 248, 3)) +>n : (s: Base[]) => any, Symbol(n, Decl(generatedContextualTyping.ts, 248, 11)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 248, 16)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: n => { var n: Base[]; return null; } } : { n: (n: Base[]) => any; } ->n : (n: Base[]) => any +>n : (n: Base[]) => any, Symbol(n, Decl(generatedContextualTyping.ts, 248, 40)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 248, 43), Decl(generatedContextualTyping.ts, 248, 54)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 248, 43), Decl(generatedContextualTyping.ts, 248, 54)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null var x248: { n: Genric; } = { n: { func: n => { return [d1, d2]; } } }; ->x248 : { n: Genric; } ->n : Genric ->Genric : Genric ->Base : Base +>x248 : { n: Genric; }, Symbol(x248, Decl(generatedContextualTyping.ts, 249, 3)) +>n : Genric, Symbol(n, Decl(generatedContextualTyping.ts, 249, 11)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: { func: n => { return [d1, d2]; } } } : { n: { func: (n: Base[]) => (Derived1 | Derived2)[]; }; } ->n : { func: (n: Base[]) => (Derived1 | Derived2)[]; } +>n : { func: (n: Base[]) => (Derived1 | Derived2)[]; }, Symbol(n, Decl(generatedContextualTyping.ts, 249, 34)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 249, 39)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 249, 45)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x252: { (): Base[]; }[] = [() => [d1, d2]]; ->x252 : (() => Base[])[] ->Base : Base +>x252 : (() => Base[])[], Symbol(x252, Decl(generatedContextualTyping.ts, 250, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[() => [d1, d2]] : (() => (Derived1 | Derived2)[])[] >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x253: { (): Base[]; }[] = [function() { return [d1, d2] }]; ->x253 : (() => Base[])[] ->Base : Base +>x253 : (() => Base[])[], Symbol(x253, Decl(generatedContextualTyping.ts, 251, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[function() { return [d1, d2] }] : (() => (Derived1 | Derived2)[])[] >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x254: { (): Base[]; }[] = [function named() { return [d1, d2] }]; ->x254 : (() => Base[])[] ->Base : Base +>x254 : (() => Base[])[], Symbol(x254, Decl(generatedContextualTyping.ts, 252, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[function named() { return [d1, d2] }] : (() => (Derived1 | Derived2)[])[] >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 252, 31)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x255: Base[][] = [[d1, d2]]; ->x255 : Base[][] ->Base : Base +>x255 : Base[][], Symbol(x255, Decl(generatedContextualTyping.ts, 253, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[[d1, d2]] : (Derived1 | Derived2)[][] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x256: Array[] = [[d1, d2]]; ->x256 : Base[][] ->Array : T[] ->Base : Base +>x256 : Base[][], Symbol(x256, Decl(generatedContextualTyping.ts, 254, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[[d1, d2]] : (Derived1 | Derived2)[][] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x257: { [n: number]: Base; }[] = [[d1, d2]]; ->x257 : { [n: number]: Base; }[] ->n : number ->Base : Base +>x257 : { [n: number]: Base; }[], Symbol(x257, Decl(generatedContextualTyping.ts, 255, 3)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 255, 13)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[[d1, d2]] : (Derived1 | Derived2)[][] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x258: {n: Base[]; } [] = [{ n: [d1, d2] }]; ->x258 : { n: Base[]; }[] ->n : Base[] ->Base : Base +>x258 : { n: Base[]; }[], Symbol(x258, Decl(generatedContextualTyping.ts, 256, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 256, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[{ n: [d1, d2] }] : { n: (Derived1 | Derived2)[]; }[] >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 256, 31)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x260: Genric[] = [{ func: n => { return [d1, d2]; } }]; ->x260 : Genric[] ->Genric : Genric ->Base : Base +>x260 : Genric[], Symbol(x260, Decl(generatedContextualTyping.ts, 257, 3)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[{ func: n => { return [d1, d2]; } }] : { func: (n: Base[]) => (Derived1 | Derived2)[]; }[] >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 257, 29)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 257, 35)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x261: () => Base[] = function() { return [d1, d2] } || undefined; ->x261 : () => Base[] ->Base : Base +>x261 : () => Base[], Symbol(x261, Decl(generatedContextualTyping.ts, 258, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } || undefined : () => (Derived1 | Derived2)[] >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x262: () => Base[] = function named() { return [d1, d2] } || undefined; ->x262 : () => Base[] ->Base : Base +>x262 : () => Base[], Symbol(x262, Decl(generatedContextualTyping.ts, 259, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } || undefined : () => (Derived1 | Derived2)[] >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 259, 24)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x263: { (): Base[]; } = function() { return [d1, d2] } || undefined; ->x263 : () => Base[] ->Base : Base +>x263 : () => Base[], Symbol(x263, Decl(generatedContextualTyping.ts, 260, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } || undefined : () => (Derived1 | Derived2)[] >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x264: { (): Base[]; } = function named() { return [d1, d2] } || undefined; ->x264 : () => Base[] ->Base : Base +>x264 : () => Base[], Symbol(x264, Decl(generatedContextualTyping.ts, 261, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } || undefined : () => (Derived1 | Derived2)[] >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 261, 27)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x265: Base[] = [d1, d2] || undefined; ->x265 : Base[] ->Base : Base +>x265 : Base[], Symbol(x265, Decl(generatedContextualTyping.ts, 262, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] || undefined : (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x266: Array = [d1, d2] || undefined; ->x266 : Base[] ->Array : T[] ->Base : Base +>x266 : Base[], Symbol(x266, Decl(generatedContextualTyping.ts, 263, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] || undefined : (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x267: { [n: number]: Base; } = [d1, d2] || undefined; ->x267 : { [n: number]: Base; } ->n : number ->Base : Base +>x267 : { [n: number]: Base; }, Symbol(x267, Decl(generatedContextualTyping.ts, 264, 3)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 264, 13)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] || undefined : (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x268: {n: Base[]; } = { n: [d1, d2] } || undefined; ->x268 : { n: Base[]; } ->n : Base[] ->Base : Base +>x268 : { n: Base[]; }, Symbol(x268, Decl(generatedContextualTyping.ts, 265, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 265, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } || undefined : { n: (Derived1 | Derived2)[]; } >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 265, 28)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x269: () => Base[] = undefined || function() { return [d1, d2] }; ->x269 : () => Base[] ->Base : Base +>x269 : () => Base[], Symbol(x269, Decl(generatedContextualTyping.ts, 266, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >undefined || function() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x270: () => Base[] = undefined || function named() { return [d1, d2] }; ->x270 : () => Base[] ->Base : Base +>x270 : () => Base[], Symbol(x270, Decl(generatedContextualTyping.ts, 267, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >undefined || function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 267, 37)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x271: { (): Base[]; } = undefined || function() { return [d1, d2] }; ->x271 : () => Base[] ->Base : Base +>x271 : () => Base[], Symbol(x271, Decl(generatedContextualTyping.ts, 268, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >undefined || function() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x272: { (): Base[]; } = undefined || function named() { return [d1, d2] }; ->x272 : () => Base[] ->Base : Base +>x272 : () => Base[], Symbol(x272, Decl(generatedContextualTyping.ts, 269, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >undefined || function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 269, 40)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x273: Base[] = undefined || [d1, d2]; ->x273 : Base[] ->Base : Base +>x273 : Base[], Symbol(x273, Decl(generatedContextualTyping.ts, 270, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >undefined || [d1, d2] : (Derived1 | Derived2)[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x274: Array = undefined || [d1, d2]; ->x274 : Base[] ->Array : T[] ->Base : Base +>x274 : Base[], Symbol(x274, Decl(generatedContextualTyping.ts, 271, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >undefined || [d1, d2] : (Derived1 | Derived2)[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x275: { [n: number]: Base; } = undefined || [d1, d2]; ->x275 : { [n: number]: Base; } ->n : number ->Base : Base +>x275 : { [n: number]: Base; }, Symbol(x275, Decl(generatedContextualTyping.ts, 272, 3)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 272, 13)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >undefined || [d1, d2] : (Derived1 | Derived2)[] ->undefined : undefined +>undefined : undefined, Symbol(undefined) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x276: {n: Base[]; } = undefined || { n: [d1, d2] }; ->x276 : { n: Base[]; } ->n : Base[] ->Base : Base +>x276 : { n: Base[]; }, Symbol(x276, Decl(generatedContextualTyping.ts, 273, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 273, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >undefined || { n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->undefined : undefined +>undefined : undefined, Symbol(undefined) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 273, 41)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x277: () => Base[] = function() { return [d1, d2] } || function() { return [d1, d2] }; ->x277 : () => Base[] ->Base : Base +>x277 : () => Base[], Symbol(x277, Decl(generatedContextualTyping.ts, 274, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } || function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x278: () => Base[] = function named() { return [d1, d2] } || function named() { return [d1, d2] }; ->x278 : () => Base[] ->Base : Base +>x278 : () => Base[], Symbol(x278, Decl(generatedContextualTyping.ts, 275, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } || function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 275, 24)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 275, 64)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x279: { (): Base[]; } = function() { return [d1, d2] } || function() { return [d1, d2] }; ->x279 : () => Base[] ->Base : Base +>x279 : () => Base[], Symbol(x279, Decl(generatedContextualTyping.ts, 276, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function() { return [d1, d2] } || function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x280: { (): Base[]; } = function named() { return [d1, d2] } || function named() { return [d1, d2] }; ->x280 : () => Base[] ->Base : Base +>x280 : () => Base[], Symbol(x280, Decl(generatedContextualTyping.ts, 277, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >function named() { return [d1, d2] } || function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 277, 27)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 277, 67)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x281: Base[] = [d1, d2] || [d1, d2]; ->x281 : Base[] ->Base : Base +>x281 : Base[], Symbol(x281, Decl(generatedContextualTyping.ts, 278, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] || [d1, d2] : (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x282: Array = [d1, d2] || [d1, d2]; ->x282 : Base[] ->Array : T[] ->Base : Base +>x282 : Base[], Symbol(x282, Decl(generatedContextualTyping.ts, 279, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] || [d1, d2] : (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x283: { [n: number]: Base; } = [d1, d2] || [d1, d2]; ->x283 : { [n: number]: Base; } ->n : number ->Base : Base +>x283 : { [n: number]: Base; }, Symbol(x283, Decl(generatedContextualTyping.ts, 280, 3)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 280, 13)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >[d1, d2] || [d1, d2] : (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x284: {n: Base[]; } = { n: [d1, d2] } || { n: [d1, d2] }; ->x284 : { n: Base[]; } ->n : Base[] ->Base : Base +>x284 : { n: Base[]; }, Symbol(x284, Decl(generatedContextualTyping.ts, 281, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 281, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >{ n: [d1, d2] } || { n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 281, 28)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 281, 47)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x285: () => Base[] = true ? () => [d1, d2] : () => [d1, d2]; ->x285 : () => Base[] ->Base : Base +>x285 : () => Base[], Symbol(x285, Decl(generatedContextualTyping.ts, 282, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? () => [d1, d2] : () => [d1, d2] : () => (Derived1 | Derived2)[] +>true : boolean >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x286: () => Base[] = true ? function() { return [d1, d2] } : function() { return [d1, d2] }; ->x286 : () => Base[] ->Base : Base +>x286 : () => Base[], Symbol(x286, Decl(generatedContextualTyping.ts, 283, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? function() { return [d1, d2] } : function() { return [d1, d2] } : () => (Derived1 | Derived2)[] +>true : boolean >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x287: () => Base[] = true ? function named() { return [d1, d2] } : function named() { return [d1, d2] }; ->x287 : () => Base[] ->Base : Base +>x287 : () => Base[], Symbol(x287, Decl(generatedContextualTyping.ts, 284, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? function named() { return [d1, d2] } : function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] +>true : boolean >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 284, 31)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 284, 70)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x288: { (): Base[]; } = true ? () => [d1, d2] : () => [d1, d2]; ->x288 : () => Base[] ->Base : Base +>x288 : () => Base[], Symbol(x288, Decl(generatedContextualTyping.ts, 285, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? () => [d1, d2] : () => [d1, d2] : () => (Derived1 | Derived2)[] +>true : boolean >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x289: { (): Base[]; } = true ? function() { return [d1, d2] } : function() { return [d1, d2] }; ->x289 : () => Base[] ->Base : Base +>x289 : () => Base[], Symbol(x289, Decl(generatedContextualTyping.ts, 286, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? function() { return [d1, d2] } : function() { return [d1, d2] } : () => (Derived1 | Derived2)[] +>true : boolean >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x290: { (): Base[]; } = true ? function named() { return [d1, d2] } : function named() { return [d1, d2] }; ->x290 : () => Base[] ->Base : Base +>x290 : () => Base[], Symbol(x290, Decl(generatedContextualTyping.ts, 287, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? function named() { return [d1, d2] } : function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] +>true : boolean >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 287, 34)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 287, 73)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x291: Base[] = true ? [d1, d2] : [d1, d2]; ->x291 : Base[] ->Base : Base +>x291 : Base[], Symbol(x291, Decl(generatedContextualTyping.ts, 288, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? [d1, d2] : [d1, d2] : (Derived1 | Derived2)[] +>true : boolean >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x292: Array = true ? [d1, d2] : [d1, d2]; ->x292 : Base[] ->Array : T[] ->Base : Base +>x292 : Base[], Symbol(x292, Decl(generatedContextualTyping.ts, 289, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? [d1, d2] : [d1, d2] : (Derived1 | Derived2)[] +>true : boolean >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x293: { [n: number]: Base; } = true ? [d1, d2] : [d1, d2]; ->x293 : { [n: number]: Base; } ->n : number ->Base : Base +>x293 : { [n: number]: Base; }, Symbol(x293, Decl(generatedContextualTyping.ts, 290, 3)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 290, 13)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? [d1, d2] : [d1, d2] : (Derived1 | Derived2)[] +>true : boolean >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x294: {n: Base[]; } = true ? { n: [d1, d2] } : { n: [d1, d2] }; ->x294 : { n: Base[]; } ->n : Base[] ->Base : Base +>x294 : { n: Base[]; }, Symbol(x294, Decl(generatedContextualTyping.ts, 291, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 291, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? { n: [d1, d2] } : { n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } +>true : boolean >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 291, 35)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 291, 53)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x295: (s: Base[]) => any = true ? n => { var n: Base[]; return null; } : n => { var n: Base[]; return null; }; ->x295 : (s: Base[]) => any ->s : Base[] ->Base : Base +>x295 : (s: Base[]) => any, Symbol(x295, Decl(generatedContextualTyping.ts, 292, 3)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 292, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? n => { var n: Base[]; return null; } : n => { var n: Base[]; return null; } : (n: Base[]) => any +>true : boolean >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 292, 37), Decl(generatedContextualTyping.ts, 292, 48)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 292, 37), Decl(generatedContextualTyping.ts, 292, 48)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 292, 76), Decl(generatedContextualTyping.ts, 292, 87)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 292, 76), Decl(generatedContextualTyping.ts, 292, 87)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null var x296: Genric = true ? { func: n => { return [d1, d2]; } } : { func: n => { return [d1, d2]; } }; ->x296 : Genric ->Genric : Genric ->Base : Base +>x296 : Genric, Symbol(x296, Decl(generatedContextualTyping.ts, 293, 3)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? { func: n => { return [d1, d2]; } } : { func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } +>true : boolean >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 293, 33)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 293, 39)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 293, 71)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 293, 77)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x297: () => Base[] = true ? undefined : () => [d1, d2]; ->x297 : () => Base[] ->Base : Base +>x297 : () => Base[], Symbol(x297, Decl(generatedContextualTyping.ts, 294, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? undefined : () => [d1, d2] : () => (Derived1 | Derived2)[] ->undefined : undefined +>true : boolean +>undefined : undefined, Symbol(undefined) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x298: () => Base[] = true ? undefined : function() { return [d1, d2] }; ->x298 : () => Base[] ->Base : Base +>x298 : () => Base[], Symbol(x298, Decl(generatedContextualTyping.ts, 295, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? undefined : function() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->undefined : undefined +>true : boolean +>undefined : undefined, Symbol(undefined) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x299: () => Base[] = true ? undefined : function named() { return [d1, d2] }; ->x299 : () => Base[] ->Base : Base +>x299 : () => Base[], Symbol(x299, Decl(generatedContextualTyping.ts, 296, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? undefined : function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->undefined : undefined +>true : boolean +>undefined : undefined, Symbol(undefined) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 296, 43)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x300: { (): Base[]; } = true ? undefined : () => [d1, d2]; ->x300 : () => Base[] ->Base : Base +>x300 : () => Base[], Symbol(x300, Decl(generatedContextualTyping.ts, 297, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? undefined : () => [d1, d2] : () => (Derived1 | Derived2)[] ->undefined : undefined +>true : boolean +>undefined : undefined, Symbol(undefined) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x301: { (): Base[]; } = true ? undefined : function() { return [d1, d2] }; ->x301 : () => Base[] ->Base : Base +>x301 : () => Base[], Symbol(x301, Decl(generatedContextualTyping.ts, 298, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? undefined : function() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->undefined : undefined +>true : boolean +>undefined : undefined, Symbol(undefined) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x302: { (): Base[]; } = true ? undefined : function named() { return [d1, d2] }; ->x302 : () => Base[] ->Base : Base +>x302 : () => Base[], Symbol(x302, Decl(generatedContextualTyping.ts, 299, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? undefined : function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->undefined : undefined +>true : boolean +>undefined : undefined, Symbol(undefined) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 299, 46)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x303: Base[] = true ? undefined : [d1, d2]; ->x303 : Base[] ->Base : Base +>x303 : Base[], Symbol(x303, Decl(generatedContextualTyping.ts, 300, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? undefined : [d1, d2] : (Derived1 | Derived2)[] ->undefined : undefined +>true : boolean +>undefined : undefined, Symbol(undefined) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x304: Array = true ? undefined : [d1, d2]; ->x304 : Base[] ->Array : T[] ->Base : Base +>x304 : Base[], Symbol(x304, Decl(generatedContextualTyping.ts, 301, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? undefined : [d1, d2] : (Derived1 | Derived2)[] ->undefined : undefined +>true : boolean +>undefined : undefined, Symbol(undefined) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x305: { [n: number]: Base; } = true ? undefined : [d1, d2]; ->x305 : { [n: number]: Base; } ->n : number ->Base : Base +>x305 : { [n: number]: Base; }, Symbol(x305, Decl(generatedContextualTyping.ts, 302, 3)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 302, 13)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? undefined : [d1, d2] : (Derived1 | Derived2)[] ->undefined : undefined +>true : boolean +>undefined : undefined, Symbol(undefined) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x306: {n: Base[]; } = true ? undefined : { n: [d1, d2] }; ->x306 : { n: Base[]; } ->n : Base[] ->Base : Base +>x306 : { n: Base[]; }, Symbol(x306, Decl(generatedContextualTyping.ts, 303, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 303, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? undefined : { n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->undefined : undefined +>true : boolean +>undefined : undefined, Symbol(undefined) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 303, 47)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x307: (s: Base[]) => any = true ? undefined : n => { var n: Base[]; return null; }; ->x307 : (s: Base[]) => any ->s : Base[] ->Base : Base +>x307 : (s: Base[]) => any, Symbol(x307, Decl(generatedContextualTyping.ts, 304, 3)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 304, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? undefined : n => { var n: Base[]; return null; } : (n: Base[]) => any ->undefined : undefined +>true : boolean +>undefined : undefined, Symbol(undefined) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 304, 49), Decl(generatedContextualTyping.ts, 304, 60)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 304, 49), Decl(generatedContextualTyping.ts, 304, 60)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null var x308: Genric = true ? undefined : { func: n => { return [d1, d2]; } }; ->x308 : Genric ->Genric : Genric ->Base : Base +>x308 : Genric, Symbol(x308, Decl(generatedContextualTyping.ts, 305, 3)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? undefined : { func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->undefined : undefined +>true : boolean +>undefined : undefined, Symbol(undefined) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 305, 45)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 305, 51)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x309: () => Base[] = true ? () => [d1, d2] : undefined; ->x309 : () => Base[] ->Base : Base +>x309 : () => Base[], Symbol(x309, Decl(generatedContextualTyping.ts, 306, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? () => [d1, d2] : undefined : () => (Derived1 | Derived2)[] +>true : boolean >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x310: () => Base[] = true ? function() { return [d1, d2] } : undefined; ->x310 : () => Base[] ->Base : Base +>x310 : () => Base[], Symbol(x310, Decl(generatedContextualTyping.ts, 307, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? function() { return [d1, d2] } : undefined : () => (Derived1 | Derived2)[] +>true : boolean >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x311: () => Base[] = true ? function named() { return [d1, d2] } : undefined; ->x311 : () => Base[] ->Base : Base +>x311 : () => Base[], Symbol(x311, Decl(generatedContextualTyping.ts, 308, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? function named() { return [d1, d2] } : undefined : () => (Derived1 | Derived2)[] +>true : boolean >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 308, 31)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x312: { (): Base[]; } = true ? () => [d1, d2] : undefined; ->x312 : () => Base[] ->Base : Base +>x312 : () => Base[], Symbol(x312, Decl(generatedContextualTyping.ts, 309, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? () => [d1, d2] : undefined : () => (Derived1 | Derived2)[] +>true : boolean >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x313: { (): Base[]; } = true ? function() { return [d1, d2] } : undefined; ->x313 : () => Base[] ->Base : Base +>x313 : () => Base[], Symbol(x313, Decl(generatedContextualTyping.ts, 310, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? function() { return [d1, d2] } : undefined : () => (Derived1 | Derived2)[] +>true : boolean >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x314: { (): Base[]; } = true ? function named() { return [d1, d2] } : undefined; ->x314 : () => Base[] ->Base : Base +>x314 : () => Base[], Symbol(x314, Decl(generatedContextualTyping.ts, 311, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? function named() { return [d1, d2] } : undefined : () => (Derived1 | Derived2)[] +>true : boolean >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 311, 34)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x315: Base[] = true ? [d1, d2] : undefined; ->x315 : Base[] ->Base : Base +>x315 : Base[], Symbol(x315, Decl(generatedContextualTyping.ts, 312, 3)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? [d1, d2] : undefined : (Derived1 | Derived2)[] +>true : boolean >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x316: Array = true ? [d1, d2] : undefined; ->x316 : Base[] ->Array : T[] ->Base : Base +>x316 : Base[], Symbol(x316, Decl(generatedContextualTyping.ts, 313, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? [d1, d2] : undefined : (Derived1 | Derived2)[] +>true : boolean >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x317: { [n: number]: Base; } = true ? [d1, d2] : undefined; ->x317 : { [n: number]: Base; } ->n : number ->Base : Base +>x317 : { [n: number]: Base; }, Symbol(x317, Decl(generatedContextualTyping.ts, 314, 3)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 314, 13)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? [d1, d2] : undefined : (Derived1 | Derived2)[] +>true : boolean >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x318: {n: Base[]; } = true ? { n: [d1, d2] } : undefined; ->x318 : { n: Base[]; } ->n : Base[] ->Base : Base +>x318 : { n: Base[]; }, Symbol(x318, Decl(generatedContextualTyping.ts, 315, 3)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 315, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? { n: [d1, d2] } : undefined : { n: (Derived1 | Derived2)[]; } +>true : boolean >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 315, 35)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) var x319: (s: Base[]) => any = true ? n => { var n: Base[]; return null; } : undefined; ->x319 : (s: Base[]) => any ->s : Base[] ->Base : Base +>x319 : (s: Base[]) => any, Symbol(x319, Decl(generatedContextualTyping.ts, 316, 3)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 316, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? n => { var n: Base[]; return null; } : undefined : (n: Base[]) => any +>true : boolean >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base ->undefined : undefined +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 316, 37), Decl(generatedContextualTyping.ts, 316, 48)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 316, 37), Decl(generatedContextualTyping.ts, 316, 48)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null +>undefined : undefined, Symbol(undefined) var x320: Genric = true ? { func: n => { return [d1, d2]; } } : undefined; ->x320 : Genric ->Genric : Genric ->Base : Base +>x320 : Genric, Symbol(x320, Decl(generatedContextualTyping.ts, 317, 3)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >true ? { func: n => { return [d1, d2]; } } : undefined : { func: (n: Base[]) => (Derived1 | Derived2)[]; } +>true : boolean >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 317, 33)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 317, 39)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 ->undefined : undefined +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) +>undefined : undefined, Symbol(undefined) function x321(n: () => Base[]) { }; x321(() => [d1, d2]); ->x321 : (n: () => Base[]) => void ->n : () => Base[] ->Base : Base +>x321 : (n: () => Base[]) => void, Symbol(x321, Decl(generatedContextualTyping.ts, 317, 80)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 318, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x321(() => [d1, d2]) : void ->x321 : (n: () => Base[]) => void +>x321 : (n: () => Base[]) => void, Symbol(x321, Decl(generatedContextualTyping.ts, 317, 80)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x322(n: () => Base[]) { }; x322(function() { return [d1, d2] }); ->x322 : (n: () => Base[]) => void ->n : () => Base[] ->Base : Base +>x322 : (n: () => Base[]) => void, Symbol(x322, Decl(generatedContextualTyping.ts, 318, 57)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 319, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x322(function() { return [d1, d2] }) : void ->x322 : (n: () => Base[]) => void +>x322 : (n: () => Base[]) => void, Symbol(x322, Decl(generatedContextualTyping.ts, 318, 57)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x323(n: () => Base[]) { }; x323(function named() { return [d1, d2] }); ->x323 : (n: () => Base[]) => void ->n : () => Base[] ->Base : Base +>x323 : (n: () => Base[]) => void, Symbol(x323, Decl(generatedContextualTyping.ts, 319, 73)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 320, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x323(function named() { return [d1, d2] }) : void ->x323 : (n: () => Base[]) => void +>x323 : (n: () => Base[]) => void, Symbol(x323, Decl(generatedContextualTyping.ts, 319, 73)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 320, 41)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x324(n: { (): Base[]; }) { }; x324(() => [d1, d2]); ->x324 : (n: () => Base[]) => void ->n : () => Base[] ->Base : Base +>x324 : (n: () => Base[]) => void, Symbol(x324, Decl(generatedContextualTyping.ts, 320, 79)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 321, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x324(() => [d1, d2]) : void ->x324 : (n: () => Base[]) => void +>x324 : (n: () => Base[]) => void, Symbol(x324, Decl(generatedContextualTyping.ts, 320, 79)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x325(n: { (): Base[]; }) { }; x325(function() { return [d1, d2] }); ->x325 : (n: () => Base[]) => void ->n : () => Base[] ->Base : Base +>x325 : (n: () => Base[]) => void, Symbol(x325, Decl(generatedContextualTyping.ts, 321, 60)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 322, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x325(function() { return [d1, d2] }) : void ->x325 : (n: () => Base[]) => void +>x325 : (n: () => Base[]) => void, Symbol(x325, Decl(generatedContextualTyping.ts, 321, 60)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x326(n: { (): Base[]; }) { }; x326(function named() { return [d1, d2] }); ->x326 : (n: () => Base[]) => void ->n : () => Base[] ->Base : Base +>x326 : (n: () => Base[]) => void, Symbol(x326, Decl(generatedContextualTyping.ts, 322, 76)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 323, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x326(function named() { return [d1, d2] }) : void ->x326 : (n: () => Base[]) => void +>x326 : (n: () => Base[]) => void, Symbol(x326, Decl(generatedContextualTyping.ts, 322, 76)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 323, 44)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x327(n: Base[]) { }; x327([d1, d2]); ->x327 : (n: Base[]) => void ->n : Base[] ->Base : Base +>x327 : (n: Base[]) => void, Symbol(x327, Decl(generatedContextualTyping.ts, 323, 82)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 324, 14)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x327([d1, d2]) : void ->x327 : (n: Base[]) => void +>x327 : (n: Base[]) => void, Symbol(x327, Decl(generatedContextualTyping.ts, 323, 82)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x328(n: Array) { }; x328([d1, d2]); ->x328 : (n: Base[]) => void ->n : Base[] ->Array : T[] ->Base : Base +>x328 : (n: Base[]) => void, Symbol(x328, Decl(generatedContextualTyping.ts, 324, 45)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 325, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x328([d1, d2]) : void ->x328 : (n: Base[]) => void +>x328 : (n: Base[]) => void, Symbol(x328, Decl(generatedContextualTyping.ts, 324, 45)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x329(n: { [n: number]: Base; }) { }; x329([d1, d2]); ->x329 : (n: { [n: number]: Base; }) => void ->n : { [n: number]: Base; } ->n : number ->Base : Base +>x329 : (n: { [n: number]: Base; }) => void, Symbol(x329, Decl(generatedContextualTyping.ts, 325, 50)) +>n : { [n: number]: Base; }, Symbol(n, Decl(generatedContextualTyping.ts, 326, 14)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 326, 20)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x329([d1, d2]) : void ->x329 : (n: { [n: number]: Base; }) => void +>x329 : (n: { [n: number]: Base; }) => void, Symbol(x329, Decl(generatedContextualTyping.ts, 325, 50)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x330(n: {n: Base[]; } ) { }; x330({ n: [d1, d2] }); ->x330 : (n: { n: Base[]; }) => void ->n : { n: Base[]; } ->n : Base[] ->Base : Base +>x330 : (n: { n: Base[]; }) => void, Symbol(x330, Decl(generatedContextualTyping.ts, 326, 61)) +>n : { n: Base[]; }, Symbol(n, Decl(generatedContextualTyping.ts, 327, 14)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 327, 18)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x330({ n: [d1, d2] }) : void ->x330 : (n: { n: Base[]; }) => void +>x330 : (n: { n: Base[]; }) => void, Symbol(x330, Decl(generatedContextualTyping.ts, 326, 61)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 327, 44)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) function x331(n: (s: Base[]) => any) { }; x331(n => { var n: Base[]; return null; }); ->x331 : (n: (s: Base[]) => any) => void ->n : (s: Base[]) => any ->s : Base[] ->Base : Base +>x331 : (n: (s: Base[]) => any) => void, Symbol(x331, Decl(generatedContextualTyping.ts, 327, 60)) +>n : (s: Base[]) => any, Symbol(n, Decl(generatedContextualTyping.ts, 328, 14)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 328, 18)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x331(n => { var n: Base[]; return null; }) : void ->x331 : (n: (s: Base[]) => any) => void +>x331 : (n: (s: Base[]) => any) => void, Symbol(x331, Decl(generatedContextualTyping.ts, 327, 60)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 328, 47), Decl(generatedContextualTyping.ts, 328, 57)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 328, 47), Decl(generatedContextualTyping.ts, 328, 57)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null function x332(n: Genric) { }; x332({ func: n => { return [d1, d2]; } }); ->x332 : (n: Genric) => void ->n : Genric ->Genric : Genric ->Base : Base +>x332 : (n: Genric) => void, Symbol(x332, Decl(generatedContextualTyping.ts, 328, 85)) +>n : Genric, Symbol(n, Decl(generatedContextualTyping.ts, 329, 14)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x332({ func: n => { return [d1, d2]; } }) : void ->x332 : (n: Genric) => void +>x332 : (n: Genric) => void, Symbol(x332, Decl(generatedContextualTyping.ts, 328, 85)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 329, 42)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 329, 48)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x333 = (n: () => Base[]) => n; x333(() => [d1, d2]); ->x333 : (n: () => Base[]) => () => Base[] +>x333 : (n: () => Base[]) => () => Base[], Symbol(x333, Decl(generatedContextualTyping.ts, 330, 3)) >(n: () => Base[]) => n : (n: () => Base[]) => () => Base[] ->n : () => Base[] ->Base : Base ->n : () => Base[] +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 330, 12)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 330, 12)) >x333(() => [d1, d2]) : () => Base[] ->x333 : (n: () => Base[]) => () => Base[] +>x333 : (n: () => Base[]) => () => Base[], Symbol(x333, Decl(generatedContextualTyping.ts, 330, 3)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x334 = (n: () => Base[]) => n; x334(function() { return [d1, d2] }); ->x334 : (n: () => Base[]) => () => Base[] +>x334 : (n: () => Base[]) => () => Base[], Symbol(x334, Decl(generatedContextualTyping.ts, 331, 3)) >(n: () => Base[]) => n : (n: () => Base[]) => () => Base[] ->n : () => Base[] ->Base : Base ->n : () => Base[] +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 331, 12)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 331, 12)) >x334(function() { return [d1, d2] }) : () => Base[] ->x334 : (n: () => Base[]) => () => Base[] +>x334 : (n: () => Base[]) => () => Base[], Symbol(x334, Decl(generatedContextualTyping.ts, 331, 3)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x335 = (n: () => Base[]) => n; x335(function named() { return [d1, d2] }); ->x335 : (n: () => Base[]) => () => Base[] +>x335 : (n: () => Base[]) => () => Base[], Symbol(x335, Decl(generatedContextualTyping.ts, 332, 3)) >(n: () => Base[]) => n : (n: () => Base[]) => () => Base[] ->n : () => Base[] ->Base : Base ->n : () => Base[] +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 332, 12)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 332, 12)) >x335(function named() { return [d1, d2] }) : () => Base[] ->x335 : (n: () => Base[]) => () => Base[] +>x335 : (n: () => Base[]) => () => Base[], Symbol(x335, Decl(generatedContextualTyping.ts, 332, 3)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 332, 40)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x336 = (n: { (): Base[]; }) => n; x336(() => [d1, d2]); ->x336 : (n: () => Base[]) => () => Base[] +>x336 : (n: () => Base[]) => () => Base[], Symbol(x336, Decl(generatedContextualTyping.ts, 333, 3)) >(n: { (): Base[]; }) => n : (n: () => Base[]) => () => Base[] ->n : () => Base[] ->Base : Base ->n : () => Base[] +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 333, 12)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 333, 12)) >x336(() => [d1, d2]) : () => Base[] ->x336 : (n: () => Base[]) => () => Base[] +>x336 : (n: () => Base[]) => () => Base[], Symbol(x336, Decl(generatedContextualTyping.ts, 333, 3)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x337 = (n: { (): Base[]; }) => n; x337(function() { return [d1, d2] }); ->x337 : (n: () => Base[]) => () => Base[] +>x337 : (n: () => Base[]) => () => Base[], Symbol(x337, Decl(generatedContextualTyping.ts, 334, 3)) >(n: { (): Base[]; }) => n : (n: () => Base[]) => () => Base[] ->n : () => Base[] ->Base : Base ->n : () => Base[] +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 334, 12)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 334, 12)) >x337(function() { return [d1, d2] }) : () => Base[] ->x337 : (n: () => Base[]) => () => Base[] +>x337 : (n: () => Base[]) => () => Base[], Symbol(x337, Decl(generatedContextualTyping.ts, 334, 3)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x338 = (n: { (): Base[]; }) => n; x338(function named() { return [d1, d2] }); ->x338 : (n: () => Base[]) => () => Base[] +>x338 : (n: () => Base[]) => () => Base[], Symbol(x338, Decl(generatedContextualTyping.ts, 335, 3)) >(n: { (): Base[]; }) => n : (n: () => Base[]) => () => Base[] ->n : () => Base[] ->Base : Base ->n : () => Base[] +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 335, 12)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 335, 12)) >x338(function named() { return [d1, d2] }) : () => Base[] ->x338 : (n: () => Base[]) => () => Base[] +>x338 : (n: () => Base[]) => () => Base[], Symbol(x338, Decl(generatedContextualTyping.ts, 335, 3)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 335, 43)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x339 = (n: Base[]) => n; x339([d1, d2]); ->x339 : (n: Base[]) => Base[] +>x339 : (n: Base[]) => Base[], Symbol(x339, Decl(generatedContextualTyping.ts, 336, 3)) >(n: Base[]) => n : (n: Base[]) => Base[] ->n : Base[] ->Base : Base ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 336, 12)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 336, 12)) >x339([d1, d2]) : Base[] ->x339 : (n: Base[]) => Base[] +>x339 : (n: Base[]) => Base[], Symbol(x339, Decl(generatedContextualTyping.ts, 336, 3)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x340 = (n: Array) => n; x340([d1, d2]); ->x340 : (n: Base[]) => Base[] +>x340 : (n: Base[]) => Base[], Symbol(x340, Decl(generatedContextualTyping.ts, 337, 3)) >(n: Array) => n : (n: Base[]) => Base[] ->n : Base[] ->Array : T[] ->Base : Base ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 337, 12)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 337, 12)) >x340([d1, d2]) : Base[] ->x340 : (n: Base[]) => Base[] +>x340 : (n: Base[]) => Base[], Symbol(x340, Decl(generatedContextualTyping.ts, 337, 3)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x341 = (n: { [n: number]: Base; }) => n; x341([d1, d2]); ->x341 : (n: { [n: number]: Base; }) => { [n: number]: Base; } +>x341 : (n: { [n: number]: Base; }) => { [n: number]: Base; }, Symbol(x341, Decl(generatedContextualTyping.ts, 338, 3)) >(n: { [n: number]: Base; }) => n : (n: { [n: number]: Base; }) => { [n: number]: Base; } ->n : { [n: number]: Base; } ->n : number ->Base : Base ->n : { [n: number]: Base; } +>n : { [n: number]: Base; }, Symbol(n, Decl(generatedContextualTyping.ts, 338, 12)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 338, 18)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : { [n: number]: Base; }, Symbol(n, Decl(generatedContextualTyping.ts, 338, 12)) >x341([d1, d2]) : { [n: number]: Base; } ->x341 : (n: { [n: number]: Base; }) => { [n: number]: Base; } +>x341 : (n: { [n: number]: Base; }) => { [n: number]: Base; }, Symbol(x341, Decl(generatedContextualTyping.ts, 338, 3)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x342 = (n: {n: Base[]; } ) => n; x342({ n: [d1, d2] }); ->x342 : (n: { n: Base[]; }) => { n: Base[]; } +>x342 : (n: { n: Base[]; }) => { n: Base[]; }, Symbol(x342, Decl(generatedContextualTyping.ts, 339, 3)) >(n: {n: Base[]; } ) => n : (n: { n: Base[]; }) => { n: Base[]; } ->n : { n: Base[]; } ->n : Base[] ->Base : Base ->n : { n: Base[]; } +>n : { n: Base[]; }, Symbol(n, Decl(generatedContextualTyping.ts, 339, 12)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 339, 16)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : { n: Base[]; }, Symbol(n, Decl(generatedContextualTyping.ts, 339, 12)) >x342({ n: [d1, d2] }) : { n: Base[]; } ->x342 : (n: { n: Base[]; }) => { n: Base[]; } +>x342 : (n: { n: Base[]; }) => { n: Base[]; }, Symbol(x342, Decl(generatedContextualTyping.ts, 339, 3)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 339, 43)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x343 = (n: (s: Base[]) => any) => n; x343(n => { var n: Base[]; return null; }); ->x343 : (n: (s: Base[]) => any) => (s: Base[]) => any +>x343 : (n: (s: Base[]) => any) => (s: Base[]) => any, Symbol(x343, Decl(generatedContextualTyping.ts, 340, 3)) >(n: (s: Base[]) => any) => n : (n: (s: Base[]) => any) => (s: Base[]) => any ->n : (s: Base[]) => any ->s : Base[] ->Base : Base ->n : (s: Base[]) => any +>n : (s: Base[]) => any, Symbol(n, Decl(generatedContextualTyping.ts, 340, 12)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 340, 16)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : (s: Base[]) => any, Symbol(n, Decl(generatedContextualTyping.ts, 340, 12)) >x343(n => { var n: Base[]; return null; }) : (s: Base[]) => any ->x343 : (n: (s: Base[]) => any) => (s: Base[]) => any +>x343 : (n: (s: Base[]) => any) => (s: Base[]) => any, Symbol(x343, Decl(generatedContextualTyping.ts, 340, 3)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 340, 46), Decl(generatedContextualTyping.ts, 340, 56)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 340, 46), Decl(generatedContextualTyping.ts, 340, 56)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null var x344 = (n: Genric) => n; x344({ func: n => { return [d1, d2]; } }); ->x344 : (n: Genric) => Genric +>x344 : (n: Genric) => Genric, Symbol(x344, Decl(generatedContextualTyping.ts, 341, 3)) >(n: Genric) => n : (n: Genric) => Genric ->n : Genric ->Genric : Genric ->Base : Base ->n : Genric +>n : Genric, Symbol(n, Decl(generatedContextualTyping.ts, 341, 12)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>n : Genric, Symbol(n, Decl(generatedContextualTyping.ts, 341, 12)) >x344({ func: n => { return [d1, d2]; } }) : Genric ->x344 : (n: Genric) => Genric +>x344 : (n: Genric) => Genric, Symbol(x344, Decl(generatedContextualTyping.ts, 341, 3)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 341, 41)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 341, 47)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x345 = function(n: () => Base[]) { }; x345(() => [d1, d2]); ->x345 : (n: () => Base[]) => void +>x345 : (n: () => Base[]) => void, Symbol(x345, Decl(generatedContextualTyping.ts, 342, 3)) >function(n: () => Base[]) { } : (n: () => Base[]) => void ->n : () => Base[] ->Base : Base +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 342, 20)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x345(() => [d1, d2]) : void ->x345 : (n: () => Base[]) => void +>x345 : (n: () => Base[]) => void, Symbol(x345, Decl(generatedContextualTyping.ts, 342, 3)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x346 = function(n: () => Base[]) { }; x346(function() { return [d1, d2] }); ->x346 : (n: () => Base[]) => void +>x346 : (n: () => Base[]) => void, Symbol(x346, Decl(generatedContextualTyping.ts, 343, 3)) >function(n: () => Base[]) { } : (n: () => Base[]) => void ->n : () => Base[] ->Base : Base +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 343, 20)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x346(function() { return [d1, d2] }) : void ->x346 : (n: () => Base[]) => void +>x346 : (n: () => Base[]) => void, Symbol(x346, Decl(generatedContextualTyping.ts, 343, 3)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x347 = function(n: () => Base[]) { }; x347(function named() { return [d1, d2] }); ->x347 : (n: () => Base[]) => void +>x347 : (n: () => Base[]) => void, Symbol(x347, Decl(generatedContextualTyping.ts, 344, 3)) >function(n: () => Base[]) { } : (n: () => Base[]) => void ->n : () => Base[] ->Base : Base +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 344, 20)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x347(function named() { return [d1, d2] }) : void ->x347 : (n: () => Base[]) => void +>x347 : (n: () => Base[]) => void, Symbol(x347, Decl(generatedContextualTyping.ts, 344, 3)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 344, 47)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x348 = function(n: { (): Base[]; }) { }; x348(() => [d1, d2]); ->x348 : (n: () => Base[]) => void +>x348 : (n: () => Base[]) => void, Symbol(x348, Decl(generatedContextualTyping.ts, 345, 3)) >function(n: { (): Base[]; }) { } : (n: () => Base[]) => void ->n : () => Base[] ->Base : Base +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 345, 20)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x348(() => [d1, d2]) : void ->x348 : (n: () => Base[]) => void +>x348 : (n: () => Base[]) => void, Symbol(x348, Decl(generatedContextualTyping.ts, 345, 3)) >() => [d1, d2] : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x349 = function(n: { (): Base[]; }) { }; x349(function() { return [d1, d2] }); ->x349 : (n: () => Base[]) => void +>x349 : (n: () => Base[]) => void, Symbol(x349, Decl(generatedContextualTyping.ts, 346, 3)) >function(n: { (): Base[]; }) { } : (n: () => Base[]) => void ->n : () => Base[] ->Base : Base +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 346, 20)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x349(function() { return [d1, d2] }) : void ->x349 : (n: () => Base[]) => void +>x349 : (n: () => Base[]) => void, Symbol(x349, Decl(generatedContextualTyping.ts, 346, 3)) >function() { return [d1, d2] } : () => (Derived1 | Derived2)[] >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x350 = function(n: { (): Base[]; }) { }; x350(function named() { return [d1, d2] }); ->x350 : (n: () => Base[]) => void +>x350 : (n: () => Base[]) => void, Symbol(x350, Decl(generatedContextualTyping.ts, 347, 3)) >function(n: { (): Base[]; }) { } : (n: () => Base[]) => void ->n : () => Base[] ->Base : Base +>n : () => Base[], Symbol(n, Decl(generatedContextualTyping.ts, 347, 20)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x350(function named() { return [d1, d2] }) : void ->x350 : (n: () => Base[]) => void +>x350 : (n: () => Base[]) => void, Symbol(x350, Decl(generatedContextualTyping.ts, 347, 3)) >function named() { return [d1, d2] } : () => (Derived1 | Derived2)[] ->named : () => (Derived1 | Derived2)[] +>named : () => (Derived1 | Derived2)[], Symbol(named, Decl(generatedContextualTyping.ts, 347, 50)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x351 = function(n: Base[]) { }; x351([d1, d2]); ->x351 : (n: Base[]) => void +>x351 : (n: Base[]) => void, Symbol(x351, Decl(generatedContextualTyping.ts, 348, 3)) >function(n: Base[]) { } : (n: Base[]) => void ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 348, 20)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x351([d1, d2]) : void ->x351 : (n: Base[]) => void +>x351 : (n: Base[]) => void, Symbol(x351, Decl(generatedContextualTyping.ts, 348, 3)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x352 = function(n: Array) { }; x352([d1, d2]); ->x352 : (n: Base[]) => void +>x352 : (n: Base[]) => void, Symbol(x352, Decl(generatedContextualTyping.ts, 349, 3)) >function(n: Array) { } : (n: Base[]) => void ->n : Base[] ->Array : T[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 349, 20)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x352([d1, d2]) : void ->x352 : (n: Base[]) => void +>x352 : (n: Base[]) => void, Symbol(x352, Decl(generatedContextualTyping.ts, 349, 3)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x353 = function(n: { [n: number]: Base; }) { }; x353([d1, d2]); ->x353 : (n: { [n: number]: Base; }) => void +>x353 : (n: { [n: number]: Base; }) => void, Symbol(x353, Decl(generatedContextualTyping.ts, 350, 3)) >function(n: { [n: number]: Base; }) { } : (n: { [n: number]: Base; }) => void ->n : { [n: number]: Base; } ->n : number ->Base : Base +>n : { [n: number]: Base; }, Symbol(n, Decl(generatedContextualTyping.ts, 350, 20)) +>n : number, Symbol(n, Decl(generatedContextualTyping.ts, 350, 26)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x353([d1, d2]) : void ->x353 : (n: { [n: number]: Base; }) => void +>x353 : (n: { [n: number]: Base; }) => void, Symbol(x353, Decl(generatedContextualTyping.ts, 350, 3)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x354 = function(n: {n: Base[]; } ) { }; x354({ n: [d1, d2] }); ->x354 : (n: { n: Base[]; }) => void +>x354 : (n: { n: Base[]; }) => void, Symbol(x354, Decl(generatedContextualTyping.ts, 351, 3)) >function(n: {n: Base[]; } ) { } : (n: { n: Base[]; }) => void ->n : { n: Base[]; } ->n : Base[] ->Base : Base +>n : { n: Base[]; }, Symbol(n, Decl(generatedContextualTyping.ts, 351, 20)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 351, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x354({ n: [d1, d2] }) : void ->x354 : (n: { n: Base[]; }) => void +>x354 : (n: { n: Base[]; }) => void, Symbol(x354, Decl(generatedContextualTyping.ts, 351, 3)) >{ n: [d1, d2] } : { n: (Derived1 | Derived2)[]; } ->n : (Derived1 | Derived2)[] +>n : (Derived1 | Derived2)[], Symbol(n, Decl(generatedContextualTyping.ts, 351, 50)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) var x355 = function(n: (s: Base[]) => any) { }; x355(n => { var n: Base[]; return null; }); ->x355 : (n: (s: Base[]) => any) => void +>x355 : (n: (s: Base[]) => any) => void, Symbol(x355, Decl(generatedContextualTyping.ts, 352, 3)) >function(n: (s: Base[]) => any) { } : (n: (s: Base[]) => any) => void ->n : (s: Base[]) => any ->s : Base[] ->Base : Base +>n : (s: Base[]) => any, Symbol(n, Decl(generatedContextualTyping.ts, 352, 20)) +>s : Base[], Symbol(s, Decl(generatedContextualTyping.ts, 352, 24)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x355(n => { var n: Base[]; return null; }) : void ->x355 : (n: (s: Base[]) => any) => void +>x355 : (n: (s: Base[]) => any) => void, Symbol(x355, Decl(generatedContextualTyping.ts, 352, 3)) >n => { var n: Base[]; return null; } : (n: Base[]) => any ->n : Base[] ->n : Base[] ->Base : Base +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 352, 53), Decl(generatedContextualTyping.ts, 352, 63)) +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 352, 53), Decl(generatedContextualTyping.ts, 352, 63)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) +>null : null var x356 = function(n: Genric) { }; x356({ func: n => { return [d1, d2]; } }); ->x356 : (n: Genric) => void +>x356 : (n: Genric) => void, Symbol(x356, Decl(generatedContextualTyping.ts, 353, 3)) >function(n: Genric) { } : (n: Genric) => void ->n : Genric ->Genric : Genric ->Base : Base +>n : Genric, Symbol(n, Decl(generatedContextualTyping.ts, 353, 20)) +>Genric : Genric, Symbol(Genric, Decl(generatedContextualTyping.ts, 2, 42)) +>Base : Base, Symbol(Base, Decl(generatedContextualTyping.ts, 0, 0)) >x356({ func: n => { return [d1, d2]; } }) : void ->x356 : (n: Genric) => void +>x356 : (n: Genric) => void, Symbol(x356, Decl(generatedContextualTyping.ts, 353, 3)) >{ func: n => { return [d1, d2]; } } : { func: (n: Base[]) => (Derived1 | Derived2)[]; } ->func : (n: Base[]) => (Derived1 | Derived2)[] +>func : (n: Base[]) => (Derived1 | Derived2)[], Symbol(func, Decl(generatedContextualTyping.ts, 353, 48)) >n => { return [d1, d2]; } : (n: Base[]) => (Derived1 | Derived2)[] ->n : Base[] +>n : Base[], Symbol(n, Decl(generatedContextualTyping.ts, 353, 54)) >[d1, d2] : (Derived1 | Derived2)[] ->d1 : Derived1 ->d2 : Derived2 +>d1 : Derived1, Symbol(d1, Decl(generatedContextualTyping.ts, 4, 19)) +>d2 : Derived2, Symbol(d2, Decl(generatedContextualTyping.ts, 4, 40)) diff --git a/tests/baselines/reference/generativeRecursionWithTypeOf.types b/tests/baselines/reference/generativeRecursionWithTypeOf.types index 1447c51358f..96534420fd6 100644 --- a/tests/baselines/reference/generativeRecursionWithTypeOf.types +++ b/tests/baselines/reference/generativeRecursionWithTypeOf.types @@ -1,28 +1,28 @@ === tests/cases/compiler/generativeRecursionWithTypeOf.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(generativeRecursionWithTypeOf.ts, 0, 0)) +>T : T, Symbol(T, Decl(generativeRecursionWithTypeOf.ts, 0, 8)) static foo(x: number) { } ->foo : (x: number) => void ->x : number +>foo : (x: number) => void, Symbol(C.foo, Decl(generativeRecursionWithTypeOf.ts, 0, 12)) +>x : number, Symbol(x, Decl(generativeRecursionWithTypeOf.ts, 1, 15)) type: T; ->type : T ->T : T +>type : T, Symbol(type, Decl(generativeRecursionWithTypeOf.ts, 1, 29)) +>T : T, Symbol(T, Decl(generativeRecursionWithTypeOf.ts, 0, 8)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(generativeRecursionWithTypeOf.ts, 3, 1)) export function f(x: typeof C) { ->f : (x: typeof C) => C ->x : typeof C ->C : typeof C +>f : (x: typeof C) => C, Symbol(f, Decl(generativeRecursionWithTypeOf.ts, 5, 10)) +>x : typeof C, Symbol(x, Decl(generativeRecursionWithTypeOf.ts, 6, 22)) +>C : typeof C, Symbol(C, Decl(generativeRecursionWithTypeOf.ts, 0, 0)) return new x(); >new x() : C ->x : typeof C ->x : typeof C +>x : typeof C, Symbol(x, Decl(generativeRecursionWithTypeOf.ts, 6, 22)) +>x : typeof C, Symbol(x, Decl(generativeRecursionWithTypeOf.ts, 6, 22)) } } diff --git a/tests/baselines/reference/generatorES6_1.errors.txt b/tests/baselines/reference/generatorES6_1.errors.txt new file mode 100644 index 00000000000..b02da7f0b53 --- /dev/null +++ b/tests/baselines/reference/generatorES6_1.errors.txt @@ -0,0 +1,12 @@ +tests/cases/compiler/generatorES6_1.ts(1,9): error TS9001: Generators are not currently supported. +tests/cases/compiler/generatorES6_1.ts(2,5): error TS9000: 'yield' expressions are not currently supported. + + +==== tests/cases/compiler/generatorES6_1.ts (2 errors) ==== + function* foo() { + ~ +!!! error TS9001: Generators are not currently supported. + yield + ~~~~~ +!!! error TS9000: 'yield' expressions are not currently supported. + } \ No newline at end of file diff --git a/tests/baselines/reference/generatorES6_1.js b/tests/baselines/reference/generatorES6_1.js new file mode 100644 index 00000000000..ee9a7d43fac --- /dev/null +++ b/tests/baselines/reference/generatorES6_1.js @@ -0,0 +1,9 @@ +//// [generatorES6_1.ts] +function* foo() { + yield +} + +//// [generatorES6_1.js] +function* foo() { + yield; +} diff --git a/tests/baselines/reference/generatorES6_2.errors.txt b/tests/baselines/reference/generatorES6_2.errors.txt new file mode 100644 index 00000000000..8d956fc7f63 --- /dev/null +++ b/tests/baselines/reference/generatorES6_2.errors.txt @@ -0,0 +1,14 @@ +tests/cases/compiler/generatorES6_2.ts(2,12): error TS9001: Generators are not currently supported. +tests/cases/compiler/generatorES6_2.ts(3,9): error TS9000: 'yield' expressions are not currently supported. + + +==== tests/cases/compiler/generatorES6_2.ts (2 errors) ==== + class C { + public * foo() { + ~ +!!! error TS9001: Generators are not currently supported. + yield 1 + ~~~~~ +!!! error TS9000: 'yield' expressions are not currently supported. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/generatorES6_2.js b/tests/baselines/reference/generatorES6_2.js new file mode 100644 index 00000000000..b0a004e38ed --- /dev/null +++ b/tests/baselines/reference/generatorES6_2.js @@ -0,0 +1,13 @@ +//// [generatorES6_2.ts] +class C { + public * foo() { + yield 1 + } +} + +//// [generatorES6_2.js] +class C { + *foo() { + yield 1; + } +} diff --git a/tests/baselines/reference/generatorES6_3.errors.txt b/tests/baselines/reference/generatorES6_3.errors.txt new file mode 100644 index 00000000000..e1c1d918ce6 --- /dev/null +++ b/tests/baselines/reference/generatorES6_3.errors.txt @@ -0,0 +1,12 @@ +tests/cases/compiler/generatorES6_3.ts(1,17): error TS9001: Generators are not currently supported. +tests/cases/compiler/generatorES6_3.ts(2,5): error TS9000: 'yield' expressions are not currently supported. + + +==== tests/cases/compiler/generatorES6_3.ts (2 errors) ==== + var v = function*() { + ~ +!!! error TS9001: Generators are not currently supported. + yield 0 + ~~~~~ +!!! error TS9000: 'yield' expressions are not currently supported. + } \ No newline at end of file diff --git a/tests/baselines/reference/generatorES6_3.js b/tests/baselines/reference/generatorES6_3.js new file mode 100644 index 00000000000..87fbe271f3c --- /dev/null +++ b/tests/baselines/reference/generatorES6_3.js @@ -0,0 +1,9 @@ +//// [generatorES6_3.ts] +var v = function*() { + yield 0 +} + +//// [generatorES6_3.js] +var v = function* () { + yield 0; +}; diff --git a/tests/baselines/reference/generatorES6_4.errors.txt b/tests/baselines/reference/generatorES6_4.errors.txt new file mode 100644 index 00000000000..37c375e9728 --- /dev/null +++ b/tests/baselines/reference/generatorES6_4.errors.txt @@ -0,0 +1,14 @@ +tests/cases/compiler/generatorES6_4.ts(2,4): error TS9001: Generators are not currently supported. +tests/cases/compiler/generatorES6_4.ts(3,8): error TS9000: 'yield' expressions are not currently supported. + + +==== tests/cases/compiler/generatorES6_4.ts (2 errors) ==== + var v = { + *foo() { + ~ +!!! error TS9001: Generators are not currently supported. + yield 0 + ~~~~~ +!!! error TS9000: 'yield' expressions are not currently supported. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/generatorES6_4.js b/tests/baselines/reference/generatorES6_4.js new file mode 100644 index 00000000000..6c4109071e1 --- /dev/null +++ b/tests/baselines/reference/generatorES6_4.js @@ -0,0 +1,13 @@ +//// [generatorES6_4.ts] +var v = { + *foo() { + yield 0 + } +} + +//// [generatorES6_4.js] +var v = { + *foo() { + yield 0; + } +}; diff --git a/tests/baselines/reference/generatorES6_5.errors.txt b/tests/baselines/reference/generatorES6_5.errors.txt new file mode 100644 index 00000000000..f6fa8a5bc18 --- /dev/null +++ b/tests/baselines/reference/generatorES6_5.errors.txt @@ -0,0 +1,12 @@ +tests/cases/compiler/generatorES6_5.ts(1,9): error TS9001: Generators are not currently supported. +tests/cases/compiler/generatorES6_5.ts(2,5): error TS9000: 'yield' expressions are not currently supported. + + +==== tests/cases/compiler/generatorES6_5.ts (2 errors) ==== + function* foo() { + ~ +!!! error TS9001: Generators are not currently supported. + yield a ? b : c; + ~~~~~ +!!! error TS9000: 'yield' expressions are not currently supported. + } \ No newline at end of file diff --git a/tests/baselines/reference/generatorES6_5.js b/tests/baselines/reference/generatorES6_5.js new file mode 100644 index 00000000000..de76f8e6e23 --- /dev/null +++ b/tests/baselines/reference/generatorES6_5.js @@ -0,0 +1,9 @@ +//// [generatorES6_5.ts] +function* foo() { + yield a ? b : c; +} + +//// [generatorES6_5.js] +function* foo() { + yield a ? b : c; +} diff --git a/tests/baselines/reference/generatorES6_6.errors.txt b/tests/baselines/reference/generatorES6_6.errors.txt new file mode 100644 index 00000000000..1f568aeb9e4 --- /dev/null +++ b/tests/baselines/reference/generatorES6_6.errors.txt @@ -0,0 +1,14 @@ +tests/cases/compiler/generatorES6_6.ts(2,3): error TS9001: Generators are not currently supported. +tests/cases/compiler/generatorES6_6.ts(3,13): error TS9000: 'yield' expressions are not currently supported. + + +==== tests/cases/compiler/generatorES6_6.ts (2 errors) ==== + class C { + *[Symbol.iterator]() { + ~ +!!! error TS9001: Generators are not currently supported. + let a = yield 1; + ~~~~~ +!!! error TS9000: 'yield' expressions are not currently supported. + } + } \ No newline at end of file diff --git a/tests/baselines/reference/generatorES6_6.js b/tests/baselines/reference/generatorES6_6.js new file mode 100644 index 00000000000..d121d167e50 --- /dev/null +++ b/tests/baselines/reference/generatorES6_6.js @@ -0,0 +1,13 @@ +//// [generatorES6_6.ts] +class C { + *[Symbol.iterator]() { + let a = yield 1; + } +} + +//// [generatorES6_6.js] +class C { + *[Symbol.iterator]() { + let a = yield 1; + } +} diff --git a/tests/baselines/reference/genericAndNonGenericInterfaceWithTheSameName2.types b/tests/baselines/reference/genericAndNonGenericInterfaceWithTheSameName2.types index b15da5e995c..b57e195c450 100644 --- a/tests/baselines/reference/genericAndNonGenericInterfaceWithTheSameName2.types +++ b/tests/baselines/reference/genericAndNonGenericInterfaceWithTheSameName2.types @@ -2,53 +2,53 @@ // generic and non-generic interfaces with the same name do not merge module M { ->M : unknown +>M : any, Symbol(M, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 0, 0)) interface A { ->A : A ->T : T +>A : A, Symbol(A, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 2, 10)) +>T : T, Symbol(T, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 3, 16)) bar: T; ->bar : T ->T : T +>bar : T, Symbol(bar, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 3, 20)) +>T : T, Symbol(T, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 3, 16)) } } module M2 { ->M2 : unknown +>M2 : any, Symbol(M2, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 6, 1)) interface A { // ok ->A : A +>A : A, Symbol(A, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 8, 11)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 9, 17)) } } module N { ->N : unknown +>N : any, Symbol(N, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 12, 1)) module M { ->M : unknown +>M : any, Symbol(M, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 14, 10)) interface A { ->A : A ->T : T +>A : A, Symbol(A, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 15, 14)) +>T : T, Symbol(T, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 16, 20)) bar: T; ->bar : T ->T : T +>bar : T, Symbol(bar, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 16, 24)) +>T : T, Symbol(T, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 16, 20)) } } module M2 { ->M2 : unknown +>M2 : any, Symbol(M2, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 19, 5)) interface A { // ok ->A : A +>A : A, Symbol(A, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 21, 15)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(genericAndNonGenericInterfaceWithTheSameName2.ts, 22, 21)) } } } diff --git a/tests/baselines/reference/genericAndNonGenericOverload1.types b/tests/baselines/reference/genericAndNonGenericOverload1.types index 67cc8a01f18..d9e09539c74 100644 --- a/tests/baselines/reference/genericAndNonGenericOverload1.types +++ b/tests/baselines/reference/genericAndNonGenericOverload1.types @@ -1,24 +1,25 @@ === tests/cases/compiler/genericAndNonGenericOverload1.ts === interface callable2 { ->callable2 : callable2 ->T : T +>callable2 : callable2, Symbol(callable2, Decl(genericAndNonGenericOverload1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericAndNonGenericOverload1.ts, 0, 20)) (a: T): T; ->a : T ->T : T ->T : T +>a : T, Symbol(a, Decl(genericAndNonGenericOverload1.ts, 1, 5)) +>T : T, Symbol(T, Decl(genericAndNonGenericOverload1.ts, 0, 20)) +>T : T, Symbol(T, Decl(genericAndNonGenericOverload1.ts, 0, 20)) (a: T): Z; ->Z : Z ->a : T ->T : T ->Z : Z +>Z : Z, Symbol(Z, Decl(genericAndNonGenericOverload1.ts, 2, 5)) +>a : T, Symbol(a, Decl(genericAndNonGenericOverload1.ts, 2, 8)) +>T : T, Symbol(T, Decl(genericAndNonGenericOverload1.ts, 0, 20)) +>Z : Z, Symbol(Z, Decl(genericAndNonGenericOverload1.ts, 2, 5)) } var c2: callable2; ->c2 : callable2 ->callable2 : callable2 +>c2 : callable2, Symbol(c2, Decl(genericAndNonGenericOverload1.ts, 4, 3)) +>callable2 : callable2, Symbol(callable2, Decl(genericAndNonGenericOverload1.ts, 0, 0)) c2(1); >c2(1) : string ->c2 : callable2 +>c2 : callable2, Symbol(c2, Decl(genericAndNonGenericOverload1.ts, 4, 3)) +>1 : number diff --git a/tests/baselines/reference/genericArgumentCallSigAssignmentCompat.types b/tests/baselines/reference/genericArgumentCallSigAssignmentCompat.types index 768b8846880..2bf6e528f60 100644 --- a/tests/baselines/reference/genericArgumentCallSigAssignmentCompat.types +++ b/tests/baselines/reference/genericArgumentCallSigAssignmentCompat.types @@ -1,67 +1,72 @@ === tests/cases/compiler/genericArgumentCallSigAssignmentCompat.ts === module Underscore { ->Underscore : unknown +>Underscore : any, Symbol(Underscore, Decl(genericArgumentCallSigAssignmentCompat.ts, 0, 0)) export interface Iterator { ->Iterator : Iterator ->T : T ->U : U +>Iterator : Iterator, Symbol(Iterator, Decl(genericArgumentCallSigAssignmentCompat.ts, 0, 19)) +>T : T, Symbol(T, Decl(genericArgumentCallSigAssignmentCompat.ts, 1, 30)) +>U : U, Symbol(U, Decl(genericArgumentCallSigAssignmentCompat.ts, 1, 32)) (value: T, index: any, list: any): U; ->value : T ->T : T ->index : any ->list : any ->U : U +>value : T, Symbol(value, Decl(genericArgumentCallSigAssignmentCompat.ts, 2, 9)) +>T : T, Symbol(T, Decl(genericArgumentCallSigAssignmentCompat.ts, 1, 30)) +>index : any, Symbol(index, Decl(genericArgumentCallSigAssignmentCompat.ts, 2, 18)) +>list : any, Symbol(list, Decl(genericArgumentCallSigAssignmentCompat.ts, 2, 30)) +>U : U, Symbol(U, Decl(genericArgumentCallSigAssignmentCompat.ts, 1, 32)) } export interface Static { ->Static : Static +>Static : Static, Symbol(Static, Decl(genericArgumentCallSigAssignmentCompat.ts, 3, 5)) all(list: T[], iterator?: Iterator, context?: any): boolean; ->all : (list: T[], iterator?: Iterator, context?: any) => boolean ->T : T ->list : T[] ->T : T ->iterator : Iterator ->Iterator : Iterator ->T : T ->context : any +>all : (list: T[], iterator?: Iterator, context?: any) => boolean, Symbol(all, Decl(genericArgumentCallSigAssignmentCompat.ts, 5, 29)) +>T : T, Symbol(T, Decl(genericArgumentCallSigAssignmentCompat.ts, 6, 12)) +>list : T[], Symbol(list, Decl(genericArgumentCallSigAssignmentCompat.ts, 6, 15)) +>T : T, Symbol(T, Decl(genericArgumentCallSigAssignmentCompat.ts, 6, 12)) +>iterator : Iterator, Symbol(iterator, Decl(genericArgumentCallSigAssignmentCompat.ts, 6, 25)) +>Iterator : Iterator, Symbol(Iterator, Decl(genericArgumentCallSigAssignmentCompat.ts, 0, 19)) +>T : T, Symbol(T, Decl(genericArgumentCallSigAssignmentCompat.ts, 6, 12)) +>context : any, Symbol(context, Decl(genericArgumentCallSigAssignmentCompat.ts, 6, 58)) identity(value: T): T; ->identity : (value: T) => T ->T : T ->value : T ->T : T ->T : T +>identity : (value: T) => T, Symbol(identity, Decl(genericArgumentCallSigAssignmentCompat.ts, 6, 83)) +>T : T, Symbol(T, Decl(genericArgumentCallSigAssignmentCompat.ts, 7, 17)) +>value : T, Symbol(value, Decl(genericArgumentCallSigAssignmentCompat.ts, 7, 20)) +>T : T, Symbol(T, Decl(genericArgumentCallSigAssignmentCompat.ts, 7, 17)) +>T : T, Symbol(T, Decl(genericArgumentCallSigAssignmentCompat.ts, 7, 17)) } } declare var _: Underscore.Static; ->_ : Underscore.Static ->Underscore : unknown ->Static : Underscore.Static +>_ : Underscore.Static, Symbol(_, Decl(genericArgumentCallSigAssignmentCompat.ts, 11, 11)) +>Underscore : any, Symbol(Underscore, Decl(genericArgumentCallSigAssignmentCompat.ts, 0, 0)) +>Static : Underscore.Static, Symbol(Underscore.Static, Decl(genericArgumentCallSigAssignmentCompat.ts, 3, 5)) // No error, Call signatures of types '(value: T) => T' and 'Underscore.Iterator<{}, boolean>' are compatible when instantiated with any. // Ideally, we would not have a generic signature here, because it should be instantiated with {} during inferential typing _.all([true, 1, null, 'yes'], _.identity); >_.all([true, 1, null, 'yes'], _.identity) : boolean ->_.all : (list: T[], iterator?: Underscore.Iterator, context?: any) => boolean ->_ : Underscore.Static ->all : (list: T[], iterator?: Underscore.Iterator, context?: any) => boolean +>_.all : (list: T[], iterator?: Underscore.Iterator, context?: any) => boolean, Symbol(Underscore.Static.all, Decl(genericArgumentCallSigAssignmentCompat.ts, 5, 29)) +>_ : Underscore.Static, Symbol(_, Decl(genericArgumentCallSigAssignmentCompat.ts, 11, 11)) +>all : (list: T[], iterator?: Underscore.Iterator, context?: any) => boolean, Symbol(Underscore.Static.all, Decl(genericArgumentCallSigAssignmentCompat.ts, 5, 29)) >[true, 1, null, 'yes'] : (string | number | boolean)[] ->_.identity : (value: T) => T ->_ : Underscore.Static ->identity : (value: T) => T +>true : boolean +>1 : number +>null : null +>'yes' : string +>_.identity : (value: T) => T, Symbol(Underscore.Static.identity, Decl(genericArgumentCallSigAssignmentCompat.ts, 6, 83)) +>_ : Underscore.Static, Symbol(_, Decl(genericArgumentCallSigAssignmentCompat.ts, 11, 11)) +>identity : (value: T) => T, Symbol(Underscore.Static.identity, Decl(genericArgumentCallSigAssignmentCompat.ts, 6, 83)) // Ok, because fixing makes us infer boolean for T _.all([true], _.identity); >_.all([true], _.identity) : boolean ->_.all : (list: T[], iterator?: Underscore.Iterator, context?: any) => boolean ->_ : Underscore.Static ->all : (list: T[], iterator?: Underscore.Iterator, context?: any) => boolean +>_.all : (list: T[], iterator?: Underscore.Iterator, context?: any) => boolean, Symbol(Underscore.Static.all, Decl(genericArgumentCallSigAssignmentCompat.ts, 5, 29)) +>_ : Underscore.Static, Symbol(_, Decl(genericArgumentCallSigAssignmentCompat.ts, 11, 11)) +>all : (list: T[], iterator?: Underscore.Iterator, context?: any) => boolean, Symbol(Underscore.Static.all, Decl(genericArgumentCallSigAssignmentCompat.ts, 5, 29)) >[true] : boolean[] ->_.identity : (value: T) => T ->_ : Underscore.Static ->identity : (value: T) => T +>true : boolean +>_.identity : (value: T) => T, Symbol(Underscore.Static.identity, Decl(genericArgumentCallSigAssignmentCompat.ts, 6, 83)) +>_ : Underscore.Static, Symbol(_, Decl(genericArgumentCallSigAssignmentCompat.ts, 11, 11)) +>identity : (value: T) => T, Symbol(Underscore.Static.identity, Decl(genericArgumentCallSigAssignmentCompat.ts, 6, 83)) diff --git a/tests/baselines/reference/genericArray0.types b/tests/baselines/reference/genericArray0.types index bf0155bb9ba..540f4850adc 100644 --- a/tests/baselines/reference/genericArray0.types +++ b/tests/baselines/reference/genericArray0.types @@ -2,20 +2,20 @@ var x:number[]; ->x : number[] +>x : number[], Symbol(x, Decl(genericArray0.ts, 2, 3)) var y = x; ->y : number[] ->x : number[] +>y : number[], Symbol(y, Decl(genericArray0.ts, 5, 3)) +>x : number[], Symbol(x, Decl(genericArray0.ts, 2, 3)) function map() { ->map : () => void ->U : U +>map : () => void, Symbol(map, Decl(genericArray0.ts, 5, 10)) +>U : U, Symbol(U, Decl(genericArray0.ts, 7, 13)) var ys: U[] = []; ->ys : U[] ->U : U +>ys : U[], Symbol(ys, Decl(genericArray0.ts, 8, 7)) +>U : U, Symbol(U, Decl(genericArray0.ts, 7, 13)) >[] : undefined[] } diff --git a/tests/baselines/reference/genericArray1.types b/tests/baselines/reference/genericArray1.types index 09dbc55771d..a3612c586ea 100644 --- a/tests/baselines/reference/genericArray1.types +++ b/tests/baselines/reference/genericArray1.types @@ -12,14 +12,17 @@ interface String{ */ var lengths = ["a", "b", "c"].map(x => x.length); ->lengths : number[] +>lengths : number[], Symbol(lengths, Decl(genericArray1.ts, 12, 3)) >["a", "b", "c"].map(x => x.length) : number[] ->["a", "b", "c"].map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>["a", "b", "c"].map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >["a", "b", "c"] : string[] ->map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>"a" : string +>"b" : string +>"c" : string +>map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >x => x.length : (x: string) => number ->x : string ->x.length : number ->x : string ->length : number +>x : string, Symbol(x, Decl(genericArray1.ts, 12, 34)) +>x.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>x : string, Symbol(x, Decl(genericArray1.ts, 12, 34)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) diff --git a/tests/baselines/reference/genericArrayPropertyAssignment.types b/tests/baselines/reference/genericArrayPropertyAssignment.types index ab3f47de813..375e5e692c1 100644 --- a/tests/baselines/reference/genericArrayPropertyAssignment.types +++ b/tests/baselines/reference/genericArrayPropertyAssignment.types @@ -1,19 +1,20 @@ === tests/cases/compiler/genericArrayPropertyAssignment.ts === function isEmpty(list: {length:number;}) ->isEmpty : (list: { length: number; }) => boolean ->list : { length: number; } ->length : number +>isEmpty : (list: { length: number; }) => boolean, Symbol(isEmpty, Decl(genericArrayPropertyAssignment.ts, 0, 0)) +>list : { length: number; }, Symbol(list, Decl(genericArrayPropertyAssignment.ts, 0, 17)) +>length : number, Symbol(length, Decl(genericArrayPropertyAssignment.ts, 0, 24)) { return list.length ===0; >list.length ===0 : boolean ->list.length : number ->list : { length: number; } ->length : number +>list.length : number, Symbol(length, Decl(genericArrayPropertyAssignment.ts, 0, 24)) +>list : { length: number; }, Symbol(list, Decl(genericArrayPropertyAssignment.ts, 0, 17)) +>length : number, Symbol(length, Decl(genericArrayPropertyAssignment.ts, 0, 24)) +>0 : number } isEmpty([]); // error >isEmpty([]) : boolean ->isEmpty : (list: { length: number; }) => boolean +>isEmpty : (list: { length: number; }) => boolean, Symbol(isEmpty, Decl(genericArrayPropertyAssignment.ts, 0, 0)) >[] : undefined[] diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty.types b/tests/baselines/reference/genericBaseClassLiteralProperty.types index 51246348ded..a65508b0426 100644 --- a/tests/baselines/reference/genericBaseClassLiteralProperty.types +++ b/tests/baselines/reference/genericBaseClassLiteralProperty.types @@ -1,36 +1,36 @@ === tests/cases/compiler/genericBaseClassLiteralProperty.ts === class BaseClass { ->BaseClass : BaseClass ->T : T +>BaseClass : BaseClass, Symbol(BaseClass, Decl(genericBaseClassLiteralProperty.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericBaseClassLiteralProperty.ts, 0, 16)) public _getValue1: { (): T; }; ->_getValue1 : () => T ->T : T +>_getValue1 : () => T, Symbol(_getValue1, Decl(genericBaseClassLiteralProperty.ts, 0, 20)) +>T : T, Symbol(T, Decl(genericBaseClassLiteralProperty.ts, 0, 16)) public _getValue2: () => T; ->_getValue2 : () => T ->T : T +>_getValue2 : () => T, Symbol(_getValue2, Decl(genericBaseClassLiteralProperty.ts, 1, 34)) +>T : T, Symbol(T, Decl(genericBaseClassLiteralProperty.ts, 0, 16)) } class SubClass extends BaseClass { ->SubClass : SubClass ->BaseClass : BaseClass +>SubClass : SubClass, Symbol(SubClass, Decl(genericBaseClassLiteralProperty.ts, 3, 1)) +>BaseClass : BaseClass, Symbol(BaseClass, Decl(genericBaseClassLiteralProperty.ts, 0, 0)) public Error(): void { ->Error : () => void +>Error : () => void, Symbol(Error, Decl(genericBaseClassLiteralProperty.ts, 5, 42)) var x : number = this._getValue1(); ->x : number +>x : number, Symbol(x, Decl(genericBaseClassLiteralProperty.ts, 8, 11)) >this._getValue1() : number ->this._getValue1 : () => number ->this : SubClass ->_getValue1 : () => number +>this._getValue1 : () => number, Symbol(BaseClass._getValue1, Decl(genericBaseClassLiteralProperty.ts, 0, 20)) +>this : SubClass, Symbol(SubClass, Decl(genericBaseClassLiteralProperty.ts, 3, 1)) +>_getValue1 : () => number, Symbol(BaseClass._getValue1, Decl(genericBaseClassLiteralProperty.ts, 0, 20)) var y : number = this._getValue2(); ->y : number +>y : number, Symbol(y, Decl(genericBaseClassLiteralProperty.ts, 9, 11)) >this._getValue2() : number ->this._getValue2 : () => number ->this : SubClass ->_getValue2 : () => number +>this._getValue2 : () => number, Symbol(BaseClass._getValue2, Decl(genericBaseClassLiteralProperty.ts, 1, 34)) +>this : SubClass, Symbol(SubClass, Decl(genericBaseClassLiteralProperty.ts, 3, 1)) +>_getValue2 : () => number, Symbol(BaseClass._getValue2, Decl(genericBaseClassLiteralProperty.ts, 1, 34)) } } diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty2.types b/tests/baselines/reference/genericBaseClassLiteralProperty2.types index 2ade6437fe7..cfa1c4da98e 100644 --- a/tests/baselines/reference/genericBaseClassLiteralProperty2.types +++ b/tests/baselines/reference/genericBaseClassLiteralProperty2.types @@ -1,44 +1,45 @@ === tests/cases/compiler/genericBaseClassLiteralProperty2.ts === class CollectionItem2 { } ->CollectionItem2 : CollectionItem2 +>CollectionItem2 : CollectionItem2, Symbol(CollectionItem2, Decl(genericBaseClassLiteralProperty2.ts, 0, 0)) class BaseCollection2 { ->BaseCollection2 : BaseCollection2 ->TItem : TItem ->CollectionItem2 : CollectionItem2 +>BaseCollection2 : BaseCollection2, Symbol(BaseCollection2, Decl(genericBaseClassLiteralProperty2.ts, 0, 25)) +>TItem : TItem, Symbol(TItem, Decl(genericBaseClassLiteralProperty2.ts, 2, 22)) +>CollectionItem2 : CollectionItem2, Symbol(CollectionItem2, Decl(genericBaseClassLiteralProperty2.ts, 0, 0)) _itemsByKey: { [key: string]: TItem; }; ->_itemsByKey : { [key: string]: TItem; } ->key : string ->TItem : TItem +>_itemsByKey : { [key: string]: TItem; }, Symbol(_itemsByKey, Decl(genericBaseClassLiteralProperty2.ts, 2, 54)) +>key : string, Symbol(key, Decl(genericBaseClassLiteralProperty2.ts, 3, 20)) +>TItem : TItem, Symbol(TItem, Decl(genericBaseClassLiteralProperty2.ts, 2, 22)) constructor() { this._itemsByKey = {}; >this._itemsByKey = {} : { [x: string]: undefined; } ->this._itemsByKey : { [key: string]: TItem; } ->this : BaseCollection2 ->_itemsByKey : { [key: string]: TItem; } +>this._itemsByKey : { [key: string]: TItem; }, Symbol(_itemsByKey, Decl(genericBaseClassLiteralProperty2.ts, 2, 54)) +>this : BaseCollection2, Symbol(BaseCollection2, Decl(genericBaseClassLiteralProperty2.ts, 0, 25)) +>_itemsByKey : { [key: string]: TItem; }, Symbol(_itemsByKey, Decl(genericBaseClassLiteralProperty2.ts, 2, 54)) >{} : { [x: string]: undefined; } } } class DataView2 extends BaseCollection2 { ->DataView2 : DataView2 ->BaseCollection2 : BaseCollection2 ->CollectionItem2 : CollectionItem2 +>DataView2 : DataView2, Symbol(DataView2, Decl(genericBaseClassLiteralProperty2.ts, 7, 1)) +>BaseCollection2 : BaseCollection2, Symbol(BaseCollection2, Decl(genericBaseClassLiteralProperty2.ts, 0, 25)) +>CollectionItem2 : CollectionItem2, Symbol(CollectionItem2, Decl(genericBaseClassLiteralProperty2.ts, 0, 0)) fillItems(item: CollectionItem2) { ->fillItems : (item: CollectionItem2) => void ->item : CollectionItem2 ->CollectionItem2 : CollectionItem2 +>fillItems : (item: CollectionItem2) => void, Symbol(fillItems, Decl(genericBaseClassLiteralProperty2.ts, 9, 58)) +>item : CollectionItem2, Symbol(item, Decl(genericBaseClassLiteralProperty2.ts, 10, 14)) +>CollectionItem2 : CollectionItem2, Symbol(CollectionItem2, Decl(genericBaseClassLiteralProperty2.ts, 0, 0)) this._itemsByKey['dummy'] = item; >this._itemsByKey['dummy'] = item : CollectionItem2 >this._itemsByKey['dummy'] : CollectionItem2 ->this._itemsByKey : { [key: string]: CollectionItem2; } ->this : DataView2 ->_itemsByKey : { [key: string]: CollectionItem2; } ->item : CollectionItem2 +>this._itemsByKey : { [key: string]: CollectionItem2; }, Symbol(BaseCollection2._itemsByKey, Decl(genericBaseClassLiteralProperty2.ts, 2, 54)) +>this : DataView2, Symbol(DataView2, Decl(genericBaseClassLiteralProperty2.ts, 7, 1)) +>_itemsByKey : { [key: string]: CollectionItem2; }, Symbol(BaseCollection2._itemsByKey, Decl(genericBaseClassLiteralProperty2.ts, 2, 54)) +>'dummy' : string +>item : CollectionItem2, Symbol(item, Decl(genericBaseClassLiteralProperty2.ts, 10, 14)) } } diff --git a/tests/baselines/reference/genericCallTypeArgumentInference.types b/tests/baselines/reference/genericCallTypeArgumentInference.types index ced2daee38d..936a870d054 100644 --- a/tests/baselines/reference/genericCallTypeArgumentInference.types +++ b/tests/baselines/reference/genericCallTypeArgumentInference.types @@ -2,365 +2,393 @@ // Basic type inference with generic calls, no errors expected function foo(t: T) { ->foo : (t: T) => T ->T : T ->t : T ->T : T +>foo : (t: T) => T, Symbol(foo, Decl(genericCallTypeArgumentInference.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 2, 13)) +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 2, 16)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 2, 13)) return t; ->t : T +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 2, 16)) } var r = foo(''); // string ->r : string +>r : string, Symbol(r, Decl(genericCallTypeArgumentInference.ts, 6, 3)) >foo('') : string ->foo : (t: T) => T +>foo : (t: T) => T, Symbol(foo, Decl(genericCallTypeArgumentInference.ts, 0, 0)) +>'' : string function foo2(t: T, u: U) { ->foo2 : (t: T, u: U) => U ->T : T ->U : U ->t : T ->T : T ->u : U ->U : U +>foo2 : (t: T, u: U) => U, Symbol(foo2, Decl(genericCallTypeArgumentInference.ts, 6, 16)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 8, 14)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 8, 16)) +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 8, 20)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 8, 14)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 8, 25)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 8, 16)) return u; ->u : U +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 8, 25)) } function foo2b(u: U) { ->foo2b : (u: U) => T ->T : T ->U : U ->u : U ->U : U +>foo2b : (u: U) => T, Symbol(foo2b, Decl(genericCallTypeArgumentInference.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 12, 15)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 12, 17)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 12, 21)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 12, 17)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallTypeArgumentInference.ts, 13, 7)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 12, 15)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallTypeArgumentInference.ts, 13, 7)) } var r2 = foo2('', 1); // number ->r2 : number +>r2 : number, Symbol(r2, Decl(genericCallTypeArgumentInference.ts, 17, 3)) >foo2('', 1) : number ->foo2 : (t: T, u: U) => U +>foo2 : (t: T, u: U) => U, Symbol(foo2, Decl(genericCallTypeArgumentInference.ts, 6, 16)) +>'' : string +>1 : number var r3 = foo2b(1); // {} ->r3 : {} +>r3 : {}, Symbol(r3, Decl(genericCallTypeArgumentInference.ts, 18, 3)) >foo2b(1) : {} ->foo2b : (u: U) => T +>foo2b : (u: U) => T, Symbol(foo2b, Decl(genericCallTypeArgumentInference.ts, 10, 1)) +>1 : number class C { ->C : C ->T : T ->U : U +>C : C, Symbol(C, Decl(genericCallTypeArgumentInference.ts, 18, 18)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 20, 8)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 20, 10)) constructor(public t: T, public u: U) { ->t : T ->T : T ->u : U ->U : U +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 21, 16)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 20, 8)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 21, 28)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 20, 10)) } foo(t: T, u: U) { ->foo : (t: T, u: U) => T ->t : T ->T : T ->u : U ->U : U +>foo : (t: T, u: U) => T, Symbol(foo, Decl(genericCallTypeArgumentInference.ts, 22, 5)) +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 24, 8)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 20, 8)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 24, 13)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 20, 10)) return t; ->t : T +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 24, 8)) } foo2(t: T, u: U) { ->foo2 : (t: T, u: U) => U ->t : T ->T : T ->u : U ->U : U +>foo2 : (t: T, u: U) => U, Symbol(foo2, Decl(genericCallTypeArgumentInference.ts, 26, 5)) +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 28, 9)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 20, 8)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 28, 14)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 20, 10)) return u; ->u : U +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 28, 14)) } foo3(t: T, u: U) { ->foo3 : (t: T, u: U) => T ->T : T ->t : T ->T : T ->u : U ->U : U +>foo3 : (t: T, u: U) => T, Symbol(foo3, Decl(genericCallTypeArgumentInference.ts, 30, 5)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 32, 9)) +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 32, 12)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 32, 9)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 32, 17)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 20, 10)) return t; ->t : T +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 32, 12)) } foo4(t: T, u: U) { ->foo4 : (t: T, u: U) => T ->U : U ->t : T ->T : T ->u : U ->U : U +>foo4 : (t: T, u: U) => T, Symbol(foo4, Decl(genericCallTypeArgumentInference.ts, 34, 5)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 36, 9)) +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 36, 12)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 20, 8)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 36, 17)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 36, 9)) return t; ->t : T +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 36, 12)) } foo5(t: T, u: U) { ->foo5 : (t: T, u: U) => T ->T : T ->U : U ->t : T ->T : T ->u : U ->U : U +>foo5 : (t: T, u: U) => T, Symbol(foo5, Decl(genericCallTypeArgumentInference.ts, 38, 5)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 40, 9)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 40, 11)) +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 40, 14)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 40, 9)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 40, 19)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 40, 11)) return t; ->t : T +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 40, 14)) } foo6() { ->foo6 : () => T ->T : T ->U : U +>foo6 : () => T, Symbol(foo6, Decl(genericCallTypeArgumentInference.ts, 42, 5)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 44, 9)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 44, 11)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallTypeArgumentInference.ts, 45, 11)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 44, 9)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallTypeArgumentInference.ts, 45, 11)) } foo7(u: U) { ->foo7 : (u: U) => T ->T : T ->U : U ->u : U ->U : U +>foo7 : (u: U) => T, Symbol(foo7, Decl(genericCallTypeArgumentInference.ts, 47, 5)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 49, 9)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 49, 11)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 49, 15)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 49, 11)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallTypeArgumentInference.ts, 50, 11)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 49, 9)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallTypeArgumentInference.ts, 50, 11)) } foo8() { ->foo8 : () => T ->T : T ->U : U +>foo8 : () => T, Symbol(foo8, Decl(genericCallTypeArgumentInference.ts, 52, 5)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 54, 9)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 54, 11)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallTypeArgumentInference.ts, 55, 11)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 54, 9)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallTypeArgumentInference.ts, 55, 11)) } } var c = new C('', 1); ->c : C +>c : C, Symbol(c, Decl(genericCallTypeArgumentInference.ts, 60, 3)) >new C('', 1) : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(genericCallTypeArgumentInference.ts, 18, 18)) +>'' : string +>1 : number var r4 = c.foo('', 1); // string ->r4 : string +>r4 : string, Symbol(r4, Decl(genericCallTypeArgumentInference.ts, 61, 3), Decl(genericCallTypeArgumentInference.ts, 83, 3)) >c.foo('', 1) : string ->c.foo : (t: string, u: number) => string ->c : C ->foo : (t: string, u: number) => string +>c.foo : (t: string, u: number) => string, Symbol(C.foo, Decl(genericCallTypeArgumentInference.ts, 22, 5)) +>c : C, Symbol(c, Decl(genericCallTypeArgumentInference.ts, 60, 3)) +>foo : (t: string, u: number) => string, Symbol(C.foo, Decl(genericCallTypeArgumentInference.ts, 22, 5)) +>'' : string +>1 : number var r5 = c.foo2('', 1); // number ->r5 : number +>r5 : number, Symbol(r5, Decl(genericCallTypeArgumentInference.ts, 62, 3), Decl(genericCallTypeArgumentInference.ts, 84, 3)) >c.foo2('', 1) : number ->c.foo2 : (t: string, u: number) => number ->c : C ->foo2 : (t: string, u: number) => number +>c.foo2 : (t: string, u: number) => number, Symbol(C.foo2, Decl(genericCallTypeArgumentInference.ts, 26, 5)) +>c : C, Symbol(c, Decl(genericCallTypeArgumentInference.ts, 60, 3)) +>foo2 : (t: string, u: number) => number, Symbol(C.foo2, Decl(genericCallTypeArgumentInference.ts, 26, 5)) +>'' : string +>1 : number var r6 = c.foo3(true, 1); // boolean ->r6 : boolean +>r6 : boolean, Symbol(r6, Decl(genericCallTypeArgumentInference.ts, 63, 3), Decl(genericCallTypeArgumentInference.ts, 85, 3)) >c.foo3(true, 1) : boolean ->c.foo3 : (t: T, u: number) => T ->c : C ->foo3 : (t: T, u: number) => T +>c.foo3 : (t: T, u: number) => T, Symbol(C.foo3, Decl(genericCallTypeArgumentInference.ts, 30, 5)) +>c : C, Symbol(c, Decl(genericCallTypeArgumentInference.ts, 60, 3)) +>foo3 : (t: T, u: number) => T, Symbol(C.foo3, Decl(genericCallTypeArgumentInference.ts, 30, 5)) +>true : boolean +>1 : number var r7 = c.foo4('', true); // string ->r7 : string +>r7 : string, Symbol(r7, Decl(genericCallTypeArgumentInference.ts, 64, 3), Decl(genericCallTypeArgumentInference.ts, 86, 3)) >c.foo4('', true) : string ->c.foo4 : (t: string, u: U) => string ->c : C ->foo4 : (t: string, u: U) => string +>c.foo4 : (t: string, u: U) => string, Symbol(C.foo4, Decl(genericCallTypeArgumentInference.ts, 34, 5)) +>c : C, Symbol(c, Decl(genericCallTypeArgumentInference.ts, 60, 3)) +>foo4 : (t: string, u: U) => string, Symbol(C.foo4, Decl(genericCallTypeArgumentInference.ts, 34, 5)) +>'' : string +>true : boolean var r8 = c.foo5(true, 1); // boolean ->r8 : boolean +>r8 : boolean, Symbol(r8, Decl(genericCallTypeArgumentInference.ts, 65, 3), Decl(genericCallTypeArgumentInference.ts, 87, 3)) >c.foo5(true, 1) : boolean ->c.foo5 : (t: T, u: U) => T ->c : C ->foo5 : (t: T, u: U) => T +>c.foo5 : (t: T, u: U) => T, Symbol(C.foo5, Decl(genericCallTypeArgumentInference.ts, 38, 5)) +>c : C, Symbol(c, Decl(genericCallTypeArgumentInference.ts, 60, 3)) +>foo5 : (t: T, u: U) => T, Symbol(C.foo5, Decl(genericCallTypeArgumentInference.ts, 38, 5)) +>true : boolean +>1 : number var r9 = c.foo6(); // {} ->r9 : {} +>r9 : {}, Symbol(r9, Decl(genericCallTypeArgumentInference.ts, 66, 3), Decl(genericCallTypeArgumentInference.ts, 88, 3)) >c.foo6() : {} ->c.foo6 : () => T ->c : C ->foo6 : () => T +>c.foo6 : () => T, Symbol(C.foo6, Decl(genericCallTypeArgumentInference.ts, 42, 5)) +>c : C, Symbol(c, Decl(genericCallTypeArgumentInference.ts, 60, 3)) +>foo6 : () => T, Symbol(C.foo6, Decl(genericCallTypeArgumentInference.ts, 42, 5)) var r10 = c.foo7(''); // {} ->r10 : {} +>r10 : {}, Symbol(r10, Decl(genericCallTypeArgumentInference.ts, 67, 3), Decl(genericCallTypeArgumentInference.ts, 89, 3)) >c.foo7('') : {} ->c.foo7 : (u: U) => T ->c : C ->foo7 : (u: U) => T +>c.foo7 : (u: U) => T, Symbol(C.foo7, Decl(genericCallTypeArgumentInference.ts, 47, 5)) +>c : C, Symbol(c, Decl(genericCallTypeArgumentInference.ts, 60, 3)) +>foo7 : (u: U) => T, Symbol(C.foo7, Decl(genericCallTypeArgumentInference.ts, 47, 5)) +>'' : string var r11 = c.foo8(); // {} ->r11 : {} +>r11 : {}, Symbol(r11, Decl(genericCallTypeArgumentInference.ts, 68, 3), Decl(genericCallTypeArgumentInference.ts, 90, 3)) >c.foo8() : {} ->c.foo8 : () => T ->c : C ->foo8 : () => T +>c.foo8 : () => T, Symbol(C.foo8, Decl(genericCallTypeArgumentInference.ts, 52, 5)) +>c : C, Symbol(c, Decl(genericCallTypeArgumentInference.ts, 60, 3)) +>foo8 : () => T, Symbol(C.foo8, Decl(genericCallTypeArgumentInference.ts, 52, 5)) interface I { ->I : I ->T : T ->U : U +>I : I, Symbol(I, Decl(genericCallTypeArgumentInference.ts, 68, 19)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 70, 12)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 70, 14)) new (t: T, u: U); ->t : T ->T : T ->u : U ->U : U +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 71, 9)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 70, 12)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 71, 14)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 70, 14)) foo(t: T, u: U): T; ->foo : (t: T, u: U) => T ->t : T ->T : T ->u : U ->U : U ->T : T +>foo : (t: T, u: U) => T, Symbol(foo, Decl(genericCallTypeArgumentInference.ts, 71, 21)) +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 72, 8)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 70, 12)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 72, 13)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 70, 14)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 70, 12)) foo2(t: T, u: U): U; ->foo2 : (t: T, u: U) => U ->t : T ->T : T ->u : U ->U : U ->U : U +>foo2 : (t: T, u: U) => U, Symbol(foo2, Decl(genericCallTypeArgumentInference.ts, 72, 23)) +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 73, 9)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 70, 12)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 73, 14)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 70, 14)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 70, 14)) foo3(t: T, u: U): T; ->foo3 : (t: T, u: U) => T ->T : T ->t : T ->T : T ->u : U ->U : U ->T : T +>foo3 : (t: T, u: U) => T, Symbol(foo3, Decl(genericCallTypeArgumentInference.ts, 73, 24)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 74, 9)) +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 74, 12)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 74, 9)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 74, 17)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 70, 14)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 74, 9)) foo4(t: T, u: U): T; ->foo4 : (t: T, u: U) => T ->U : U ->t : T ->T : T ->u : U ->U : U ->T : T +>foo4 : (t: T, u: U) => T, Symbol(foo4, Decl(genericCallTypeArgumentInference.ts, 74, 27)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 75, 9)) +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 75, 12)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 70, 12)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 75, 17)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 75, 9)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 70, 12)) foo5(t: T, u: U): T; ->foo5 : (t: T, u: U) => T ->T : T ->U : U ->t : T ->T : T ->u : U ->U : U ->T : T +>foo5 : (t: T, u: U) => T, Symbol(foo5, Decl(genericCallTypeArgumentInference.ts, 75, 27)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 76, 9)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 76, 11)) +>t : T, Symbol(t, Decl(genericCallTypeArgumentInference.ts, 76, 15)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 76, 9)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 76, 20)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 76, 11)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 76, 9)) foo6(): T; ->foo6 : () => T ->T : T ->U : U ->T : T +>foo6 : () => T, Symbol(foo6, Decl(genericCallTypeArgumentInference.ts, 76, 30)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 77, 9)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 77, 11)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 77, 9)) foo7(u: U): T; ->foo7 : (u: U) => T ->T : T ->U : U ->u : U ->U : U ->T : T +>foo7 : (u: U) => T, Symbol(foo7, Decl(genericCallTypeArgumentInference.ts, 77, 20)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 78, 9)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 78, 11)) +>u : U, Symbol(u, Decl(genericCallTypeArgumentInference.ts, 78, 15)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 78, 11)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 78, 9)) foo8(): T; ->foo8 : () => T ->T : T ->U : U ->T : T +>foo8 : () => T, Symbol(foo8, Decl(genericCallTypeArgumentInference.ts, 78, 24)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 79, 9)) +>U : U, Symbol(U, Decl(genericCallTypeArgumentInference.ts, 79, 11)) +>T : T, Symbol(T, Decl(genericCallTypeArgumentInference.ts, 79, 9)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(genericCallTypeArgumentInference.ts, 82, 3)) +>I : I, Symbol(I, Decl(genericCallTypeArgumentInference.ts, 68, 19)) var r4 = i.foo('', 1); // string ->r4 : string +>r4 : string, Symbol(r4, Decl(genericCallTypeArgumentInference.ts, 61, 3), Decl(genericCallTypeArgumentInference.ts, 83, 3)) >i.foo('', 1) : string ->i.foo : (t: string, u: number) => string ->i : I ->foo : (t: string, u: number) => string +>i.foo : (t: string, u: number) => string, Symbol(I.foo, Decl(genericCallTypeArgumentInference.ts, 71, 21)) +>i : I, Symbol(i, Decl(genericCallTypeArgumentInference.ts, 82, 3)) +>foo : (t: string, u: number) => string, Symbol(I.foo, Decl(genericCallTypeArgumentInference.ts, 71, 21)) +>'' : string +>1 : number var r5 = i.foo2('', 1); // number ->r5 : number +>r5 : number, Symbol(r5, Decl(genericCallTypeArgumentInference.ts, 62, 3), Decl(genericCallTypeArgumentInference.ts, 84, 3)) >i.foo2('', 1) : number ->i.foo2 : (t: string, u: number) => number ->i : I ->foo2 : (t: string, u: number) => number +>i.foo2 : (t: string, u: number) => number, Symbol(I.foo2, Decl(genericCallTypeArgumentInference.ts, 72, 23)) +>i : I, Symbol(i, Decl(genericCallTypeArgumentInference.ts, 82, 3)) +>foo2 : (t: string, u: number) => number, Symbol(I.foo2, Decl(genericCallTypeArgumentInference.ts, 72, 23)) +>'' : string +>1 : number var r6 = i.foo3(true, 1); // boolean ->r6 : boolean +>r6 : boolean, Symbol(r6, Decl(genericCallTypeArgumentInference.ts, 63, 3), Decl(genericCallTypeArgumentInference.ts, 85, 3)) >i.foo3(true, 1) : boolean ->i.foo3 : (t: T, u: number) => T ->i : I ->foo3 : (t: T, u: number) => T +>i.foo3 : (t: T, u: number) => T, Symbol(I.foo3, Decl(genericCallTypeArgumentInference.ts, 73, 24)) +>i : I, Symbol(i, Decl(genericCallTypeArgumentInference.ts, 82, 3)) +>foo3 : (t: T, u: number) => T, Symbol(I.foo3, Decl(genericCallTypeArgumentInference.ts, 73, 24)) +>true : boolean +>1 : number var r7 = i.foo4('', true); // string ->r7 : string +>r7 : string, Symbol(r7, Decl(genericCallTypeArgumentInference.ts, 64, 3), Decl(genericCallTypeArgumentInference.ts, 86, 3)) >i.foo4('', true) : string ->i.foo4 : (t: string, u: U) => string ->i : I ->foo4 : (t: string, u: U) => string +>i.foo4 : (t: string, u: U) => string, Symbol(I.foo4, Decl(genericCallTypeArgumentInference.ts, 74, 27)) +>i : I, Symbol(i, Decl(genericCallTypeArgumentInference.ts, 82, 3)) +>foo4 : (t: string, u: U) => string, Symbol(I.foo4, Decl(genericCallTypeArgumentInference.ts, 74, 27)) +>'' : string +>true : boolean var r8 = i.foo5(true, 1); // boolean ->r8 : boolean +>r8 : boolean, Symbol(r8, Decl(genericCallTypeArgumentInference.ts, 65, 3), Decl(genericCallTypeArgumentInference.ts, 87, 3)) >i.foo5(true, 1) : boolean ->i.foo5 : (t: T, u: U) => T ->i : I ->foo5 : (t: T, u: U) => T +>i.foo5 : (t: T, u: U) => T, Symbol(I.foo5, Decl(genericCallTypeArgumentInference.ts, 75, 27)) +>i : I, Symbol(i, Decl(genericCallTypeArgumentInference.ts, 82, 3)) +>foo5 : (t: T, u: U) => T, Symbol(I.foo5, Decl(genericCallTypeArgumentInference.ts, 75, 27)) +>true : boolean +>1 : number var r9 = i.foo6(); // {} ->r9 : {} +>r9 : {}, Symbol(r9, Decl(genericCallTypeArgumentInference.ts, 66, 3), Decl(genericCallTypeArgumentInference.ts, 88, 3)) >i.foo6() : {} ->i.foo6 : () => T ->i : I ->foo6 : () => T +>i.foo6 : () => T, Symbol(I.foo6, Decl(genericCallTypeArgumentInference.ts, 76, 30)) +>i : I, Symbol(i, Decl(genericCallTypeArgumentInference.ts, 82, 3)) +>foo6 : () => T, Symbol(I.foo6, Decl(genericCallTypeArgumentInference.ts, 76, 30)) var r10 = i.foo7(''); // {} ->r10 : {} +>r10 : {}, Symbol(r10, Decl(genericCallTypeArgumentInference.ts, 67, 3), Decl(genericCallTypeArgumentInference.ts, 89, 3)) >i.foo7('') : {} ->i.foo7 : (u: U) => T ->i : I ->foo7 : (u: U) => T +>i.foo7 : (u: U) => T, Symbol(I.foo7, Decl(genericCallTypeArgumentInference.ts, 77, 20)) +>i : I, Symbol(i, Decl(genericCallTypeArgumentInference.ts, 82, 3)) +>foo7 : (u: U) => T, Symbol(I.foo7, Decl(genericCallTypeArgumentInference.ts, 77, 20)) +>'' : string var r11 = i.foo8(); // {} ->r11 : {} +>r11 : {}, Symbol(r11, Decl(genericCallTypeArgumentInference.ts, 68, 3), Decl(genericCallTypeArgumentInference.ts, 90, 3)) >i.foo8() : {} ->i.foo8 : () => T ->i : I ->foo8 : () => T +>i.foo8 : () => T, Symbol(I.foo8, Decl(genericCallTypeArgumentInference.ts, 78, 24)) +>i : I, Symbol(i, Decl(genericCallTypeArgumentInference.ts, 82, 3)) +>foo8 : () => T, Symbol(I.foo8, Decl(genericCallTypeArgumentInference.ts, 78, 24)) diff --git a/tests/baselines/reference/genericCallWithArrayLiteralArgs.types b/tests/baselines/reference/genericCallWithArrayLiteralArgs.types index f4965940436..03a05a8513a 100644 --- a/tests/baselines/reference/genericCallWithArrayLiteralArgs.types +++ b/tests/baselines/reference/genericCallWithArrayLiteralArgs.types @@ -1,60 +1,72 @@ === tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithArrayLiteralArgs.ts === function foo(t: T) { ->foo : (t: T) => T ->T : T ->t : T ->T : T +>foo : (t: T) => T, Symbol(foo, Decl(genericCallWithArrayLiteralArgs.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericCallWithArrayLiteralArgs.ts, 0, 13)) +>t : T, Symbol(t, Decl(genericCallWithArrayLiteralArgs.ts, 0, 16)) +>T : T, Symbol(T, Decl(genericCallWithArrayLiteralArgs.ts, 0, 13)) return t; ->t : T +>t : T, Symbol(t, Decl(genericCallWithArrayLiteralArgs.ts, 0, 16)) } var r = foo([1, 2]); // number[] ->r : number[] +>r : number[], Symbol(r, Decl(genericCallWithArrayLiteralArgs.ts, 4, 3), Decl(genericCallWithArrayLiteralArgs.ts, 5, 3)) >foo([1, 2]) : number[] ->foo : (t: T) => T +>foo : (t: T) => T, Symbol(foo, Decl(genericCallWithArrayLiteralArgs.ts, 0, 0)) >[1, 2] : number[] +>1 : number +>2 : number var r = foo([1, 2]); // number[] ->r : number[] +>r : number[], Symbol(r, Decl(genericCallWithArrayLiteralArgs.ts, 4, 3), Decl(genericCallWithArrayLiteralArgs.ts, 5, 3)) >foo([1, 2]) : number[] ->foo : (t: T) => T +>foo : (t: T) => T, Symbol(foo, Decl(genericCallWithArrayLiteralArgs.ts, 0, 0)) >[1, 2] : number[] +>1 : number +>2 : number var ra = foo([1, 2]); // any[] ->ra : any[] +>ra : any[], Symbol(ra, Decl(genericCallWithArrayLiteralArgs.ts, 6, 3)) >foo([1, 2]) : any[] ->foo : (t: T) => T +>foo : (t: T) => T, Symbol(foo, Decl(genericCallWithArrayLiteralArgs.ts, 0, 0)) >[1, 2] : number[] +>1 : number +>2 : number var r2 = foo([]); // any[] ->r2 : any[] +>r2 : any[], Symbol(r2, Decl(genericCallWithArrayLiteralArgs.ts, 7, 3)) >foo([]) : any[] ->foo : (t: T) => T +>foo : (t: T) => T, Symbol(foo, Decl(genericCallWithArrayLiteralArgs.ts, 0, 0)) >[] : undefined[] var r3 = foo([]); // number[] ->r3 : number[] +>r3 : number[], Symbol(r3, Decl(genericCallWithArrayLiteralArgs.ts, 8, 3)) >foo([]) : number[] ->foo : (t: T) => T +>foo : (t: T) => T, Symbol(foo, Decl(genericCallWithArrayLiteralArgs.ts, 0, 0)) >[] : undefined[] var r4 = foo([1, '']); // {}[] ->r4 : (string | number)[] +>r4 : (string | number)[], Symbol(r4, Decl(genericCallWithArrayLiteralArgs.ts, 9, 3)) >foo([1, '']) : (string | number)[] ->foo : (t: T) => T +>foo : (t: T) => T, Symbol(foo, Decl(genericCallWithArrayLiteralArgs.ts, 0, 0)) >[1, ''] : (string | number)[] +>1 : number +>'' : string var r5 = foo([1, '']); // any[] ->r5 : any[] +>r5 : any[], Symbol(r5, Decl(genericCallWithArrayLiteralArgs.ts, 10, 3)) >foo([1, '']) : any[] ->foo : (t: T) => T +>foo : (t: T) => T, Symbol(foo, Decl(genericCallWithArrayLiteralArgs.ts, 0, 0)) >[1, ''] : (string | number)[] +>1 : number +>'' : string var r6 = foo([1, '']); // Object[] ->r6 : Object[] +>r6 : Object[], Symbol(r6, Decl(genericCallWithArrayLiteralArgs.ts, 11, 3)) >foo([1, '']) : Object[] ->foo : (t: T) => T ->Object : Object +>foo : (t: T) => T, Symbol(foo, Decl(genericCallWithArrayLiteralArgs.ts, 0, 0)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) >[1, ''] : (string | number)[] +>1 : number +>'' : string diff --git a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.types b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.types index dcff9ef8a16..d470879219b 100644 --- a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.types +++ b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.types @@ -2,487 +2,487 @@ // Basic type inference with generic calls and constraints, no errors expected class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 3, 28)) class Derived2 extends Derived { baz: string; } ->Derived2 : Derived2 ->Derived : Derived ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 3, 43)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>baz : string, Symbol(baz, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 4, 32)) var b: Base; ->b : Base ->Base : Base +>b : Base, Symbol(b, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 5, 3)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) var d1: Derived; ->d1 : Derived ->Derived : Derived +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) var d2: Derived2; ->d2 : Derived2 ->Derived2 : Derived2 +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) +>Derived2 : Derived2, Symbol(Derived2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 3, 43)) function foo(t: T) { ->foo : (t: T) => T ->T : T ->Base : Base ->t : T ->T : T +>foo : (t: T) => T, Symbol(foo, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 17)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 9, 13)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 9, 29)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 9, 13)) return t; ->t : T +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 9, 29)) } var r = foo(b); // Base ->r : Base +>r : Base, Symbol(r, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 13, 3)) >foo(b) : Base ->foo : (t: T) => T ->b : Base +>foo : (t: T) => T, Symbol(foo, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 17)) +>b : Base, Symbol(b, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 5, 3)) var r2 = foo(d1); // Derived ->r2 : Derived +>r2 : Derived, Symbol(r2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 14, 3)) >foo(d1) : Derived ->foo : (t: T) => T ->d1 : Derived +>foo : (t: T) => T, Symbol(foo, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 17)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) function foo2(t: T, u: U) { ->foo2 : (t: T, u: U) => U ->T : T ->Base : Base ->U : U ->Derived : Derived ->t : T ->T : T ->u : U ->U : U +>foo2 : (t: T, u: U) => U, Symbol(foo2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 14, 17)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 16, 14)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 16, 29)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 16, 49)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 16, 14)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 16, 54)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 16, 29)) return u; ->u : U +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 16, 54)) } function foo2b(u: U) { ->foo2b : (u: U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->u : U ->U : U +>foo2b : (u: U) => T, Symbol(foo2b, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 18, 1)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 20, 15)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 20, 30)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 20, 50)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 20, 30)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 21, 7)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 20, 15)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 21, 7)) } function foo2c() { ->foo2c : () => T ->T : T ->Base : Base ->U : U ->Derived : Derived +>foo2c : () => T, Symbol(foo2c, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 23, 1)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 25, 15)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 25, 30)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 26, 7)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 25, 15)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 26, 7)) } var r3 = foo2b(d1); // Base ->r3 : Base +>r3 : Base, Symbol(r3, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 30, 3)) >foo2b(d1) : Base ->foo2b : (u: U) => T ->d1 : Derived +>foo2b : (u: U) => T, Symbol(foo2b, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 18, 1)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) var r3b = foo2c(); // Base ->r3b : Base +>r3b : Base, Symbol(r3b, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 31, 3)) >foo2c() : Base ->foo2c : () => T +>foo2c : () => T, Symbol(foo2c, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 23, 1)) class C { ->C : C ->T : T ->Base : Base ->U : U ->Derived : Derived +>C : C, Symbol(C, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 31, 18)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 33, 8)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 33, 23)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) constructor(public t: T, public u: U) { ->t : T ->T : T ->u : U ->U : U +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 34, 16)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 33, 8)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 34, 28)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 33, 23)) } foo(t: T, u: U) { ->foo : (t: T, u: U) => T ->t : T ->T : T ->u : U ->U : U +>foo : (t: T, u: U) => T, Symbol(foo, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 35, 5)) +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 37, 8)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 33, 8)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 37, 13)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 33, 23)) return t; ->t : T +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 37, 8)) } foo2(t: T, u: U) { ->foo2 : (t: T, u: U) => U ->t : T ->T : T ->u : U ->U : U +>foo2 : (t: T, u: U) => U, Symbol(foo2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 39, 5)) +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 41, 9)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 33, 8)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 41, 14)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 33, 23)) return u; ->u : U +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 41, 14)) } foo3(t: T, u: U) { ->foo3 : (t: T, u: U) => T ->T : T ->Derived : Derived ->t : T ->T : T ->u : U ->U : U +>foo3 : (t: T, u: U) => T, Symbol(foo3, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 43, 5)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 45, 9)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 45, 28)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 45, 9)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 45, 33)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 33, 23)) return t; ->t : T +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 45, 28)) } foo4(t: T, u: U) { ->foo4 : (t: T, u: U) => T ->U : U ->Derived2 : Derived2 ->t : T ->T : T ->u : U ->U : U +>foo4 : (t: T, u: U) => T, Symbol(foo4, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 47, 5)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 49, 9)) +>Derived2 : Derived2, Symbol(Derived2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 3, 43)) +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 49, 29)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 33, 8)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 49, 34)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 49, 9)) return t; ->t : T +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 49, 29)) } foo5(t: T, u: U) { ->foo5 : (t: T, u: U) => T ->T : T ->Derived : Derived ->U : U ->Derived2 : Derived2 ->t : T ->T : T ->u : U ->U : U +>foo5 : (t: T, u: U) => T, Symbol(foo5, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 51, 5)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 53, 9)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 53, 27)) +>Derived2 : Derived2, Symbol(Derived2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 3, 43)) +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 53, 48)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 53, 9)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 53, 53)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 53, 27)) return t; ->t : T +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 53, 48)) } foo6() { ->foo6 : () => T ->T : T ->Derived : Derived ->U : U ->Derived2 : Derived2 +>foo6 : () => T, Symbol(foo6, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 55, 5)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 57, 9)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 57, 27)) +>Derived2 : Derived2, Symbol(Derived2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 3, 43)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 58, 11)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 57, 9)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 58, 11)) } foo7(u: U) { ->foo7 : (u: U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->u : U ->U : U +>foo7 : (u: U) => T, Symbol(foo7, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 60, 5)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 62, 9)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 62, 24)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 62, 44)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 62, 24)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 63, 11)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 62, 9)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 63, 11)) } foo8() { ->foo8 : () => T ->T : T ->Base : Base ->U : U ->Derived : Derived +>foo8 : () => T, Symbol(foo8, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 65, 5)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 67, 9)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 67, 24)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 68, 11)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 67, 9)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 68, 11)) } } var c = new C(b, d1); ->c : C +>c : C, Symbol(c, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 73, 3)) >new C(b, d1) : C ->C : typeof C ->b : Base ->d1 : Derived +>C : typeof C, Symbol(C, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 31, 18)) +>b : Base, Symbol(b, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 5, 3)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) var r4 = c.foo(d1, d2); // Base ->r4 : Base +>r4 : Base, Symbol(r4, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 74, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 97, 3)) >c.foo(d1, d2) : Base ->c.foo : (t: Base, u: Derived) => Base ->c : C ->foo : (t: Base, u: Derived) => Base ->d1 : Derived ->d2 : Derived2 +>c.foo : (t: Base, u: Derived) => Base, Symbol(C.foo, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 35, 5)) +>c : C, Symbol(c, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 73, 3)) +>foo : (t: Base, u: Derived) => Base, Symbol(C.foo, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 35, 5)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) var r5 = c.foo2(b, d2); // Derived ->r5 : Derived +>r5 : Derived, Symbol(r5, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 75, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 98, 3)) >c.foo2(b, d2) : Derived ->c.foo2 : (t: Base, u: Derived) => Derived ->c : C ->foo2 : (t: Base, u: Derived) => Derived ->b : Base ->d2 : Derived2 +>c.foo2 : (t: Base, u: Derived) => Derived, Symbol(C.foo2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 39, 5)) +>c : C, Symbol(c, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 73, 3)) +>foo2 : (t: Base, u: Derived) => Derived, Symbol(C.foo2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 39, 5)) +>b : Base, Symbol(b, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 5, 3)) +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) var r6 = c.foo3(d1, d1); // Derived ->r6 : Derived +>r6 : Derived, Symbol(r6, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 76, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 99, 3)) >c.foo3(d1, d1) : Derived ->c.foo3 : (t: T, u: Derived) => T ->c : C ->foo3 : (t: T, u: Derived) => T ->d1 : Derived ->d1 : Derived +>c.foo3 : (t: T, u: Derived) => T, Symbol(C.foo3, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 43, 5)) +>c : C, Symbol(c, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 73, 3)) +>foo3 : (t: T, u: Derived) => T, Symbol(C.foo3, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 43, 5)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) var r7 = c.foo4(d1, d2); // Base ->r7 : Base +>r7 : Base, Symbol(r7, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 77, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 100, 3)) >c.foo4(d1, d2) : Base ->c.foo4 : (t: Base, u: U) => Base ->c : C ->foo4 : (t: Base, u: U) => Base ->d1 : Derived ->d2 : Derived2 +>c.foo4 : (t: Base, u: U) => Base, Symbol(C.foo4, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 47, 5)) +>c : C, Symbol(c, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 73, 3)) +>foo4 : (t: Base, u: U) => Base, Symbol(C.foo4, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 47, 5)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) var r8 = c.foo5(d1, d2); // Derived ->r8 : Derived +>r8 : Derived, Symbol(r8, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 78, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 101, 3)) >c.foo5(d1, d2) : Derived ->c.foo5 : (t: T, u: U) => T ->c : C ->foo5 : (t: T, u: U) => T ->d1 : Derived ->d2 : Derived2 +>c.foo5 : (t: T, u: U) => T, Symbol(C.foo5, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 51, 5)) +>c : C, Symbol(c, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 73, 3)) +>foo5 : (t: T, u: U) => T, Symbol(C.foo5, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 51, 5)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) var r8b = c.foo5(d2, d2); // Derived2 ->r8b : Derived2 +>r8b : Derived2, Symbol(r8b, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 79, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 102, 3)) >c.foo5(d2, d2) : Derived2 ->c.foo5 : (t: T, u: U) => T ->c : C ->foo5 : (t: T, u: U) => T ->d2 : Derived2 ->d2 : Derived2 +>c.foo5 : (t: T, u: U) => T, Symbol(C.foo5, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 51, 5)) +>c : C, Symbol(c, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 73, 3)) +>foo5 : (t: T, u: U) => T, Symbol(C.foo5, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 51, 5)) +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) var r9 = c.foo6(); // Derived ->r9 : Derived +>r9 : Derived, Symbol(r9, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 80, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 103, 3)) >c.foo6() : Derived ->c.foo6 : () => T ->c : C ->foo6 : () => T +>c.foo6 : () => T, Symbol(C.foo6, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 55, 5)) +>c : C, Symbol(c, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 73, 3)) +>foo6 : () => T, Symbol(C.foo6, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 55, 5)) var r10 = c.foo7(d1); // Base ->r10 : Base +>r10 : Base, Symbol(r10, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 81, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 104, 3)) >c.foo7(d1) : Base ->c.foo7 : (u: U) => T ->c : C ->foo7 : (u: U) => T ->d1 : Derived +>c.foo7 : (u: U) => T, Symbol(C.foo7, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 60, 5)) +>c : C, Symbol(c, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 73, 3)) +>foo7 : (u: U) => T, Symbol(C.foo7, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 60, 5)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) var r11 = c.foo8(); // Base ->r11 : Base +>r11 : Base, Symbol(r11, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 82, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 105, 3)) >c.foo8() : Base ->c.foo8 : () => T ->c : C ->foo8 : () => T +>c.foo8 : () => T, Symbol(C.foo8, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 65, 5)) +>c : C, Symbol(c, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 73, 3)) +>foo8 : () => T, Symbol(C.foo8, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 65, 5)) interface I { ->I : I ->T : T ->Base : Base ->U : U ->Derived : Derived +>I : I, Symbol(I, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 82, 19)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 12)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 27)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) new (t: T, u: U); ->t : T ->T : T ->u : U ->U : U +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 85, 9)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 12)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 85, 14)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 27)) foo(t: T, u: U): T; ->foo : (t: T, u: U) => T ->t : T ->T : T ->u : U ->U : U ->T : T +>foo : (t: T, u: U) => T, Symbol(foo, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 85, 21)) +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 86, 8)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 12)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 86, 13)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 27)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 12)) foo2(t: T, u: U): U; ->foo2 : (t: T, u: U) => U ->t : T ->T : T ->u : U ->U : U ->U : U +>foo2 : (t: T, u: U) => U, Symbol(foo2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 86, 23)) +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 87, 9)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 12)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 87, 14)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 27)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 27)) foo3(t: T, u: U): T; ->foo3 : (t: T, u: U) => T ->T : T ->Derived : Derived ->t : T ->T : T ->u : U ->U : U ->T : T +>foo3 : (t: T, u: U) => T, Symbol(foo3, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 87, 24)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 88, 9)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 88, 28)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 88, 9)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 88, 33)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 27)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 88, 9)) foo4(t: T, u: U): T; ->foo4 : (t: T, u: U) => T ->U : U ->Derived2 : Derived2 ->t : T ->T : T ->u : U ->U : U ->T : T +>foo4 : (t: T, u: U) => T, Symbol(foo4, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 88, 43)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 89, 9)) +>Derived2 : Derived2, Symbol(Derived2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 3, 43)) +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 89, 29)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 12)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 89, 34)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 89, 9)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 84, 12)) foo5(t: T, u: U): T; ->foo5 : (t: T, u: U) => T ->T : T ->Derived : Derived ->U : U ->Derived2 : Derived2 ->t : T ->T : T ->u : U ->U : U ->T : T +>foo5 : (t: T, u: U) => T, Symbol(foo5, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 89, 44)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 90, 9)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 90, 27)) +>Derived2 : Derived2, Symbol(Derived2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 3, 43)) +>t : T, Symbol(t, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 90, 48)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 90, 9)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 90, 53)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 90, 27)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 90, 9)) foo6(): T; ->foo6 : () => T ->T : T ->Derived : Derived ->U : U ->Derived2 : Derived2 ->T : T +>foo6 : () => T, Symbol(foo6, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 90, 63)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 91, 9)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 91, 27)) +>Derived2 : Derived2, Symbol(Derived2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 3, 43)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 91, 9)) foo7(u: U): T; ->foo7 : (u: U) => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->u : U ->U : U ->T : T +>foo7 : (u: U) => T, Symbol(foo7, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 91, 53)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 92, 9)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 92, 24)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>u : U, Symbol(u, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 92, 44)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 92, 24)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 92, 9)) foo8(): T; ->foo8 : () => T ->T : T ->Base : Base ->U : U ->Derived : Derived ->T : T +>foo8 : () => T, Symbol(foo8, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 92, 53)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 93, 9)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>U : U, Symbol(U, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 93, 24)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) +>T : T, Symbol(T, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 93, 9)) } var i: I; ->i : I ->I : I ->Base : Base ->Derived : Derived +>i : I, Symbol(i, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 96, 3)) +>I : I, Symbol(I, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 82, 19)) +>Base : Base, Symbol(Base, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 2, 27)) var r4 = i.foo(d1, d2); // Base ->r4 : Base +>r4 : Base, Symbol(r4, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 74, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 97, 3)) >i.foo(d1, d2) : Base ->i.foo : (t: Base, u: Derived) => Base ->i : I ->foo : (t: Base, u: Derived) => Base ->d1 : Derived ->d2 : Derived2 +>i.foo : (t: Base, u: Derived) => Base, Symbol(I.foo, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 85, 21)) +>i : I, Symbol(i, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 96, 3)) +>foo : (t: Base, u: Derived) => Base, Symbol(I.foo, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 85, 21)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) var r5 = i.foo2(b, d2); // Derived ->r5 : Derived +>r5 : Derived, Symbol(r5, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 75, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 98, 3)) >i.foo2(b, d2) : Derived ->i.foo2 : (t: Base, u: Derived) => Derived ->i : I ->foo2 : (t: Base, u: Derived) => Derived ->b : Base ->d2 : Derived2 +>i.foo2 : (t: Base, u: Derived) => Derived, Symbol(I.foo2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 86, 23)) +>i : I, Symbol(i, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 96, 3)) +>foo2 : (t: Base, u: Derived) => Derived, Symbol(I.foo2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 86, 23)) +>b : Base, Symbol(b, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 5, 3)) +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) var r6 = i.foo3(d1, d1); // Derived ->r6 : Derived +>r6 : Derived, Symbol(r6, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 76, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 99, 3)) >i.foo3(d1, d1) : Derived ->i.foo3 : (t: T, u: Derived) => T ->i : I ->foo3 : (t: T, u: Derived) => T ->d1 : Derived ->d1 : Derived +>i.foo3 : (t: T, u: Derived) => T, Symbol(I.foo3, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 87, 24)) +>i : I, Symbol(i, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 96, 3)) +>foo3 : (t: T, u: Derived) => T, Symbol(I.foo3, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 87, 24)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) var r7 = i.foo4(d1, d2); // Base ->r7 : Base +>r7 : Base, Symbol(r7, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 77, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 100, 3)) >i.foo4(d1, d2) : Base ->i.foo4 : (t: Base, u: U) => Base ->i : I ->foo4 : (t: Base, u: U) => Base ->d1 : Derived ->d2 : Derived2 +>i.foo4 : (t: Base, u: U) => Base, Symbol(I.foo4, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 88, 43)) +>i : I, Symbol(i, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 96, 3)) +>foo4 : (t: Base, u: U) => Base, Symbol(I.foo4, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 88, 43)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) var r8 = i.foo5(d1, d2); // Derived ->r8 : Derived +>r8 : Derived, Symbol(r8, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 78, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 101, 3)) >i.foo5(d1, d2) : Derived ->i.foo5 : (t: T, u: U) => T ->i : I ->foo5 : (t: T, u: U) => T ->d1 : Derived ->d2 : Derived2 +>i.foo5 : (t: T, u: U) => T, Symbol(I.foo5, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 89, 44)) +>i : I, Symbol(i, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 96, 3)) +>foo5 : (t: T, u: U) => T, Symbol(I.foo5, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 89, 44)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) var r8b = i.foo5(d2, d2); // Derived2 ->r8b : Derived2 +>r8b : Derived2, Symbol(r8b, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 79, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 102, 3)) >i.foo5(d2, d2) : Derived2 ->i.foo5 : (t: T, u: U) => T ->i : I ->foo5 : (t: T, u: U) => T ->d2 : Derived2 ->d2 : Derived2 +>i.foo5 : (t: T, u: U) => T, Symbol(I.foo5, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 89, 44)) +>i : I, Symbol(i, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 96, 3)) +>foo5 : (t: T, u: U) => T, Symbol(I.foo5, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 89, 44)) +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) +>d2 : Derived2, Symbol(d2, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 7, 3)) var r9 = i.foo6(); // Derived ->r9 : Derived +>r9 : Derived, Symbol(r9, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 80, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 103, 3)) >i.foo6() : Derived ->i.foo6 : () => T ->i : I ->foo6 : () => T +>i.foo6 : () => T, Symbol(I.foo6, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 90, 63)) +>i : I, Symbol(i, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 96, 3)) +>foo6 : () => T, Symbol(I.foo6, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 90, 63)) var r10 = i.foo7(d1); // Base ->r10 : Base +>r10 : Base, Symbol(r10, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 81, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 104, 3)) >i.foo7(d1) : Base ->i.foo7 : (u: U) => T ->i : I ->foo7 : (u: U) => T ->d1 : Derived +>i.foo7 : (u: U) => T, Symbol(I.foo7, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 91, 53)) +>i : I, Symbol(i, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 96, 3)) +>foo7 : (u: U) => T, Symbol(I.foo7, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 91, 53)) +>d1 : Derived, Symbol(d1, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 6, 3)) var r11 = i.foo8(); // Base ->r11 : Base +>r11 : Base, Symbol(r11, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 82, 3), Decl(genericCallWithConstraintsTypeArgumentInference.ts, 105, 3)) >i.foo8() : Base ->i.foo8 : () => T ->i : I ->foo8 : () => T +>i.foo8 : () => T, Symbol(I.foo8, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 92, 53)) +>i : I, Symbol(i, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 96, 3)) +>foo8 : () => T, Symbol(I.foo8, Decl(genericCallWithConstraintsTypeArgumentInference.ts, 92, 53)) diff --git a/tests/baselines/reference/genericCallWithFixedArguments.types b/tests/baselines/reference/genericCallWithFixedArguments.types index acfad45a0f2..e72ff414937 100644 --- a/tests/baselines/reference/genericCallWithFixedArguments.types +++ b/tests/baselines/reference/genericCallWithFixedArguments.types @@ -1,22 +1,23 @@ === tests/cases/compiler/genericCallWithFixedArguments.ts === class A { foo() { } } ->A : A ->foo : () => void +>A : A, Symbol(A, Decl(genericCallWithFixedArguments.ts, 0, 0)) +>foo : () => void, Symbol(foo, Decl(genericCallWithFixedArguments.ts, 0, 9)) class B { bar() { }} ->B : B ->bar : () => void +>B : B, Symbol(B, Decl(genericCallWithFixedArguments.ts, 0, 21)) +>bar : () => void, Symbol(bar, Decl(genericCallWithFixedArguments.ts, 1, 9)) function g(x) { } ->g : (x: any) => void ->T : T ->U : U ->x : any +>g : (x: any) => void, Symbol(g, Decl(genericCallWithFixedArguments.ts, 1, 20)) +>T : T, Symbol(T, Decl(genericCallWithFixedArguments.ts, 3, 11)) +>U : U, Symbol(U, Decl(genericCallWithFixedArguments.ts, 3, 13)) +>x : any, Symbol(x, Decl(genericCallWithFixedArguments.ts, 3, 17)) g(7) // the parameter list is fixed, so this should not error >g(7) : void ->g : (x: any) => void ->A : A ->B : B +>g : (x: any) => void, Symbol(g, Decl(genericCallWithFixedArguments.ts, 1, 20)) +>A : A, Symbol(A, Decl(genericCallWithFixedArguments.ts, 0, 0)) +>B : B, Symbol(B, Decl(genericCallWithFixedArguments.ts, 0, 21)) +>7 : number diff --git a/tests/baselines/reference/genericCallWithFunctionTypedArguments3.types b/tests/baselines/reference/genericCallWithFunctionTypedArguments3.types index a6e491d3eb8..3821b859324 100644 --- a/tests/baselines/reference/genericCallWithFunctionTypedArguments3.types +++ b/tests/baselines/reference/genericCallWithFunctionTypedArguments3.types @@ -2,55 +2,55 @@ // No inference is made from function typed arguments which have multiple call signatures var a: { ->a : { (x: boolean): boolean; (x: string): any; } +>a : { (x: boolean): boolean; (x: string): any; }, Symbol(a, Decl(genericCallWithFunctionTypedArguments3.ts, 2, 3)) (x: boolean): boolean; ->x : boolean +>x : boolean, Symbol(x, Decl(genericCallWithFunctionTypedArguments3.ts, 3, 5)) (x: string): any; ->x : string +>x : string, Symbol(x, Decl(genericCallWithFunctionTypedArguments3.ts, 4, 5)) } function foo4(cb: (x: T) => U) { ->foo4 : (cb: (x: T) => U) => U ->T : T ->U : U ->cb : (x: T) => U ->x : T ->T : T ->U : U +>foo4 : (cb: (x: T) => U) => U, Symbol(foo4, Decl(genericCallWithFunctionTypedArguments3.ts, 5, 1)) +>T : T, Symbol(T, Decl(genericCallWithFunctionTypedArguments3.ts, 7, 14)) +>U : U, Symbol(U, Decl(genericCallWithFunctionTypedArguments3.ts, 7, 16)) +>cb : (x: T) => U, Symbol(cb, Decl(genericCallWithFunctionTypedArguments3.ts, 7, 20)) +>x : T, Symbol(x, Decl(genericCallWithFunctionTypedArguments3.ts, 7, 25)) +>T : T, Symbol(T, Decl(genericCallWithFunctionTypedArguments3.ts, 7, 14)) +>U : U, Symbol(U, Decl(genericCallWithFunctionTypedArguments3.ts, 7, 16)) var u: U; ->u : U ->U : U +>u : U, Symbol(u, Decl(genericCallWithFunctionTypedArguments3.ts, 8, 7)) +>U : U, Symbol(U, Decl(genericCallWithFunctionTypedArguments3.ts, 7, 16)) return u; ->u : U +>u : U, Symbol(u, Decl(genericCallWithFunctionTypedArguments3.ts, 8, 7)) } var r = foo4(a); // T is {} (candidates boolean and string), U is any (candidates any and boolean) ->r : any +>r : any, Symbol(r, Decl(genericCallWithFunctionTypedArguments3.ts, 12, 3)) >foo4(a) : any ->foo4 : (cb: (x: T) => U) => U ->a : { (x: boolean): boolean; (x: string): any; } +>foo4 : (cb: (x: T) => U) => U, Symbol(foo4, Decl(genericCallWithFunctionTypedArguments3.ts, 5, 1)) +>a : { (x: boolean): boolean; (x: string): any; }, Symbol(a, Decl(genericCallWithFunctionTypedArguments3.ts, 2, 3)) var b: { ->b : { (x: boolean): T; (x: T): any; } +>b : { (x: boolean): T; (x: T): any; }, Symbol(b, Decl(genericCallWithFunctionTypedArguments3.ts, 14, 3)) (x: boolean): T; ->T : T ->x : boolean ->T : T +>T : T, Symbol(T, Decl(genericCallWithFunctionTypedArguments3.ts, 15, 5)) +>x : boolean, Symbol(x, Decl(genericCallWithFunctionTypedArguments3.ts, 15, 8)) +>T : T, Symbol(T, Decl(genericCallWithFunctionTypedArguments3.ts, 15, 5)) (x: T): any; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(genericCallWithFunctionTypedArguments3.ts, 16, 5)) +>x : T, Symbol(x, Decl(genericCallWithFunctionTypedArguments3.ts, 16, 8)) +>T : T, Symbol(T, Decl(genericCallWithFunctionTypedArguments3.ts, 16, 5)) } var r2 = foo4(b); // T is {} (candidates boolean and {}), U is any (candidates any and {}) ->r2 : any +>r2 : any, Symbol(r2, Decl(genericCallWithFunctionTypedArguments3.ts, 19, 3)) >foo4(b) : any ->foo4 : (cb: (x: T) => U) => U ->b : { (x: boolean): T; (x: T): any; } +>foo4 : (cb: (x: T) => U) => U, Symbol(foo4, Decl(genericCallWithFunctionTypedArguments3.ts, 5, 1)) +>b : { (x: boolean): T; (x: T): any; }, Symbol(b, Decl(genericCallWithFunctionTypedArguments3.ts, 14, 3)) diff --git a/tests/baselines/reference/genericCallWithFunctionTypedArguments4.types b/tests/baselines/reference/genericCallWithFunctionTypedArguments4.types index bf4e1eb749c..b6a69ec86b6 100644 --- a/tests/baselines/reference/genericCallWithFunctionTypedArguments4.types +++ b/tests/baselines/reference/genericCallWithFunctionTypedArguments4.types @@ -2,65 +2,65 @@ // No inference is made from function typed arguments which have multiple call signatures class C { foo: string } ->C : C ->foo : string +>C : C, Symbol(C, Decl(genericCallWithFunctionTypedArguments4.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(genericCallWithFunctionTypedArguments4.ts, 2, 9)) class D { bar: string } ->D : D ->bar : string +>D : D, Symbol(D, Decl(genericCallWithFunctionTypedArguments4.ts, 2, 23)) +>bar : string, Symbol(bar, Decl(genericCallWithFunctionTypedArguments4.ts, 3, 9)) var a: { ->a : { new (x: boolean): C; new (x: string): D; } +>a : { new (x: boolean): C; new (x: string): D; }, Symbol(a, Decl(genericCallWithFunctionTypedArguments4.ts, 4, 3)) new(x: boolean): C; ->x : boolean ->C : C +>x : boolean, Symbol(x, Decl(genericCallWithFunctionTypedArguments4.ts, 5, 8)) +>C : C, Symbol(C, Decl(genericCallWithFunctionTypedArguments4.ts, 0, 0)) new(x: string): D; ->x : string ->D : D +>x : string, Symbol(x, Decl(genericCallWithFunctionTypedArguments4.ts, 6, 8)) +>D : D, Symbol(D, Decl(genericCallWithFunctionTypedArguments4.ts, 2, 23)) } function foo4(cb: new(x: T) => U) { ->foo4 : (cb: new (x: T) => U) => U ->T : T ->U : U ->cb : new (x: T) => U ->x : T ->T : T ->U : U +>foo4 : (cb: new (x: T) => U) => U, Symbol(foo4, Decl(genericCallWithFunctionTypedArguments4.ts, 7, 1)) +>T : T, Symbol(T, Decl(genericCallWithFunctionTypedArguments4.ts, 9, 14)) +>U : U, Symbol(U, Decl(genericCallWithFunctionTypedArguments4.ts, 9, 16)) +>cb : new (x: T) => U, Symbol(cb, Decl(genericCallWithFunctionTypedArguments4.ts, 9, 20)) +>x : T, Symbol(x, Decl(genericCallWithFunctionTypedArguments4.ts, 9, 28)) +>T : T, Symbol(T, Decl(genericCallWithFunctionTypedArguments4.ts, 9, 14)) +>U : U, Symbol(U, Decl(genericCallWithFunctionTypedArguments4.ts, 9, 16)) var u: U; ->u : U ->U : U +>u : U, Symbol(u, Decl(genericCallWithFunctionTypedArguments4.ts, 10, 7)) +>U : U, Symbol(U, Decl(genericCallWithFunctionTypedArguments4.ts, 9, 16)) return u; ->u : U +>u : U, Symbol(u, Decl(genericCallWithFunctionTypedArguments4.ts, 10, 7)) } var r = foo4(a); // T is {} (candidates boolean and string), U is {} (candidates C and D) ->r : D +>r : D, Symbol(r, Decl(genericCallWithFunctionTypedArguments4.ts, 14, 3)) >foo4(a) : D ->foo4 : (cb: new (x: T) => U) => U ->a : { new (x: boolean): C; new (x: string): D; } +>foo4 : (cb: new (x: T) => U) => U, Symbol(foo4, Decl(genericCallWithFunctionTypedArguments4.ts, 7, 1)) +>a : { new (x: boolean): C; new (x: string): D; }, Symbol(a, Decl(genericCallWithFunctionTypedArguments4.ts, 4, 3)) var b: { ->b : { new (x: boolean): T; new (x: T): any; } +>b : { new (x: boolean): T; new (x: T): any; }, Symbol(b, Decl(genericCallWithFunctionTypedArguments4.ts, 16, 3)) new(x: boolean): T; ->T : T ->x : boolean ->T : T +>T : T, Symbol(T, Decl(genericCallWithFunctionTypedArguments4.ts, 17, 8)) +>x : boolean, Symbol(x, Decl(genericCallWithFunctionTypedArguments4.ts, 17, 11)) +>T : T, Symbol(T, Decl(genericCallWithFunctionTypedArguments4.ts, 17, 8)) new(x: T): any; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(genericCallWithFunctionTypedArguments4.ts, 18, 8)) +>x : T, Symbol(x, Decl(genericCallWithFunctionTypedArguments4.ts, 18, 11)) +>T : T, Symbol(T, Decl(genericCallWithFunctionTypedArguments4.ts, 18, 8)) } var r2 = foo4(b); // T is {} (candidates boolean and {}), U is any (candidates any and {}) ->r2 : any +>r2 : any, Symbol(r2, Decl(genericCallWithFunctionTypedArguments4.ts, 21, 3)) >foo4(b) : any ->foo4 : (cb: new (x: T) => U) => U ->b : { new (x: boolean): T; new (x: T): any; } +>foo4 : (cb: new (x: T) => U) => U, Symbol(foo4, Decl(genericCallWithFunctionTypedArguments4.ts, 7, 1)) +>b : { new (x: boolean): T; new (x: T): any; }, Symbol(b, Decl(genericCallWithFunctionTypedArguments4.ts, 16, 3)) diff --git a/tests/baselines/reference/genericCallWithNonGenericArgs1.types b/tests/baselines/reference/genericCallWithNonGenericArgs1.types index f08f8503075..5f3fae05885 100644 --- a/tests/baselines/reference/genericCallWithNonGenericArgs1.types +++ b/tests/baselines/reference/genericCallWithNonGenericArgs1.types @@ -1,10 +1,11 @@ === tests/cases/compiler/genericCallWithNonGenericArgs1.ts === function f(x: any) { } ->f : (x: any) => void ->T : T ->x : any +>f : (x: any) => void, Symbol(f, Decl(genericCallWithNonGenericArgs1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericCallWithNonGenericArgs1.ts, 0, 11)) +>x : any, Symbol(x, Decl(genericCallWithNonGenericArgs1.ts, 0, 14)) f(null) >f(null) : void ->f : (x: any) => void +>f : (x: any) => void, Symbol(f, Decl(genericCallWithNonGenericArgs1.ts, 0, 0)) +>null : null diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgs2.types b/tests/baselines/reference/genericCallWithObjectTypeArgs2.types index 08bce90b5de..5c8cc09beb1 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgs2.types +++ b/tests/baselines/reference/genericCallWithObjectTypeArgs2.types @@ -1,129 +1,129 @@ === tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithObjectTypeArgs2.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgs2.ts, 0, 0)) x: string; ->x : string +>x : string, Symbol(x, Decl(genericCallWithObjectTypeArgs2.ts, 0, 12)) } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(genericCallWithObjectTypeArgs2.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgs2.ts, 0, 0)) y: string; ->y : string +>y : string, Symbol(y, Decl(genericCallWithObjectTypeArgs2.ts, 3, 28)) } class Derived2 extends Base { ->Derived2 : Derived2 ->Base : Base +>Derived2 : Derived2, Symbol(Derived2, Decl(genericCallWithObjectTypeArgs2.ts, 5, 1)) +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgs2.ts, 0, 0)) z: string; ->z : string +>z : string, Symbol(z, Decl(genericCallWithObjectTypeArgs2.ts, 6, 29)) } // returns {}[] function f(a: { x: T; y: U }) { ->f : (a: { x: T; y: U; }) => (T | U)[] ->T : T ->Base : Base ->U : U ->Base : Base ->a : { x: T; y: U; } ->x : T ->T : T ->y : U ->U : U +>f : (a: { x: T; y: U; }) => (T | U)[], Symbol(f, Decl(genericCallWithObjectTypeArgs2.ts, 8, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgs2.ts, 11, 11)) +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgs2.ts, 0, 0)) +>U : U, Symbol(U, Decl(genericCallWithObjectTypeArgs2.ts, 11, 26)) +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgs2.ts, 0, 0)) +>a : { x: T; y: U; }, Symbol(a, Decl(genericCallWithObjectTypeArgs2.ts, 11, 43)) +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgs2.ts, 11, 47)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgs2.ts, 11, 11)) +>y : U, Symbol(y, Decl(genericCallWithObjectTypeArgs2.ts, 11, 53)) +>U : U, Symbol(U, Decl(genericCallWithObjectTypeArgs2.ts, 11, 26)) return [a.x, a.y]; >[a.x, a.y] : (T | U)[] ->a.x : T ->a : { x: T; y: U; } ->x : T ->a.y : U ->a : { x: T; y: U; } ->y : U +>a.x : T, Symbol(x, Decl(genericCallWithObjectTypeArgs2.ts, 11, 47)) +>a : { x: T; y: U; }, Symbol(a, Decl(genericCallWithObjectTypeArgs2.ts, 11, 43)) +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgs2.ts, 11, 47)) +>a.y : U, Symbol(y, Decl(genericCallWithObjectTypeArgs2.ts, 11, 53)) +>a : { x: T; y: U; }, Symbol(a, Decl(genericCallWithObjectTypeArgs2.ts, 11, 43)) +>y : U, Symbol(y, Decl(genericCallWithObjectTypeArgs2.ts, 11, 53)) } var r = f({ x: new Derived(), y: new Derived2() }); // {}[] ->r : (Derived | Derived2)[] +>r : (Derived | Derived2)[], Symbol(r, Decl(genericCallWithObjectTypeArgs2.ts, 15, 3)) >f({ x: new Derived(), y: new Derived2() }) : (Derived | Derived2)[] ->f : (a: { x: T; y: U; }) => (T | U)[] +>f : (a: { x: T; y: U; }) => (T | U)[], Symbol(f, Decl(genericCallWithObjectTypeArgs2.ts, 8, 1)) >{ x: new Derived(), y: new Derived2() } : { x: Derived; y: Derived2; } ->x : Derived +>x : Derived, Symbol(x, Decl(genericCallWithObjectTypeArgs2.ts, 15, 11)) >new Derived() : Derived ->Derived : typeof Derived ->y : Derived2 +>Derived : typeof Derived, Symbol(Derived, Decl(genericCallWithObjectTypeArgs2.ts, 2, 1)) +>y : Derived2, Symbol(y, Decl(genericCallWithObjectTypeArgs2.ts, 15, 29)) >new Derived2() : Derived2 ->Derived2 : typeof Derived2 +>Derived2 : typeof Derived2, Symbol(Derived2, Decl(genericCallWithObjectTypeArgs2.ts, 5, 1)) var r2 = f({ x: new Base(), y: new Derived2() }); // {}[] ->r2 : (Base | Derived2)[] +>r2 : (Base | Derived2)[], Symbol(r2, Decl(genericCallWithObjectTypeArgs2.ts, 16, 3)) >f({ x: new Base(), y: new Derived2() }) : (Base | Derived2)[] ->f : (a: { x: T; y: U; }) => (T | U)[] +>f : (a: { x: T; y: U; }) => (T | U)[], Symbol(f, Decl(genericCallWithObjectTypeArgs2.ts, 8, 1)) >{ x: new Base(), y: new Derived2() } : { x: Base; y: Derived2; } ->x : Base +>x : Base, Symbol(x, Decl(genericCallWithObjectTypeArgs2.ts, 16, 12)) >new Base() : Base ->Base : typeof Base ->y : Derived2 +>Base : typeof Base, Symbol(Base, Decl(genericCallWithObjectTypeArgs2.ts, 0, 0)) +>y : Derived2, Symbol(y, Decl(genericCallWithObjectTypeArgs2.ts, 16, 27)) >new Derived2() : Derived2 ->Derived2 : typeof Derived2 +>Derived2 : typeof Derived2, Symbol(Derived2, Decl(genericCallWithObjectTypeArgs2.ts, 5, 1)) function f2(a: { x: T; y: U }) { ->f2 : (a: { x: T; y: U; }) => (x: T) => U ->T : T ->Base : Base ->U : U ->Base : Base ->a : { x: T; y: U; } ->x : T ->T : T ->y : U ->U : U +>f2 : (a: { x: T; y: U; }) => (x: T) => U, Symbol(f2, Decl(genericCallWithObjectTypeArgs2.ts, 16, 49)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgs2.ts, 19, 12)) +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgs2.ts, 0, 0)) +>U : U, Symbol(U, Decl(genericCallWithObjectTypeArgs2.ts, 19, 27)) +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgs2.ts, 0, 0)) +>a : { x: T; y: U; }, Symbol(a, Decl(genericCallWithObjectTypeArgs2.ts, 19, 44)) +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgs2.ts, 19, 48)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgs2.ts, 19, 12)) +>y : U, Symbol(y, Decl(genericCallWithObjectTypeArgs2.ts, 19, 54)) +>U : U, Symbol(U, Decl(genericCallWithObjectTypeArgs2.ts, 19, 27)) return (x: T) => a.y; >(x: T) => a.y : (x: T) => U ->x : T ->T : T ->a.y : U ->a : { x: T; y: U; } ->y : U +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgs2.ts, 20, 12)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgs2.ts, 19, 12)) +>a.y : U, Symbol(y, Decl(genericCallWithObjectTypeArgs2.ts, 19, 54)) +>a : { x: T; y: U; }, Symbol(a, Decl(genericCallWithObjectTypeArgs2.ts, 19, 44)) +>y : U, Symbol(y, Decl(genericCallWithObjectTypeArgs2.ts, 19, 54)) } var r3 = f2({ x: new Derived(), y: new Derived2() }); // Derived => Derived2 ->r3 : (x: Derived) => Derived2 +>r3 : (x: Derived) => Derived2, Symbol(r3, Decl(genericCallWithObjectTypeArgs2.ts, 23, 3)) >f2({ x: new Derived(), y: new Derived2() }) : (x: Derived) => Derived2 ->f2 : (a: { x: T; y: U; }) => (x: T) => U +>f2 : (a: { x: T; y: U; }) => (x: T) => U, Symbol(f2, Decl(genericCallWithObjectTypeArgs2.ts, 16, 49)) >{ x: new Derived(), y: new Derived2() } : { x: Derived; y: Derived2; } ->x : Derived +>x : Derived, Symbol(x, Decl(genericCallWithObjectTypeArgs2.ts, 23, 13)) >new Derived() : Derived ->Derived : typeof Derived ->y : Derived2 +>Derived : typeof Derived, Symbol(Derived, Decl(genericCallWithObjectTypeArgs2.ts, 2, 1)) +>y : Derived2, Symbol(y, Decl(genericCallWithObjectTypeArgs2.ts, 23, 31)) >new Derived2() : Derived2 ->Derived2 : typeof Derived2 +>Derived2 : typeof Derived2, Symbol(Derived2, Decl(genericCallWithObjectTypeArgs2.ts, 5, 1)) interface I { ->I : I ->T : T ->U : U +>I : I, Symbol(I, Decl(genericCallWithObjectTypeArgs2.ts, 23, 53)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgs2.ts, 25, 12)) +>U : U, Symbol(U, Decl(genericCallWithObjectTypeArgs2.ts, 25, 14)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgs2.ts, 25, 19)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgs2.ts, 25, 12)) y: U; ->y : U ->U : U +>y : U, Symbol(y, Decl(genericCallWithObjectTypeArgs2.ts, 26, 9)) +>U : U, Symbol(U, Decl(genericCallWithObjectTypeArgs2.ts, 25, 14)) } var i: I; ->i : I ->I : I ->Base : Base ->Derived : Derived +>i : I, Symbol(i, Decl(genericCallWithObjectTypeArgs2.ts, 30, 3)) +>I : I, Symbol(I, Decl(genericCallWithObjectTypeArgs2.ts, 23, 53)) +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgs2.ts, 0, 0)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithObjectTypeArgs2.ts, 2, 1)) var r4 = f2(i); // Base => Derived ->r4 : (x: Base) => Derived +>r4 : (x: Base) => Derived, Symbol(r4, Decl(genericCallWithObjectTypeArgs2.ts, 31, 3)) >f2(i) : (x: Base) => Derived ->f2 : (a: { x: T; y: U; }) => (x: T) => U ->i : I +>f2 : (a: { x: T; y: U; }) => (x: T) => U, Symbol(f2, Decl(genericCallWithObjectTypeArgs2.ts, 16, 49)) +>i : I, Symbol(i, Decl(genericCallWithObjectTypeArgs2.ts, 30, 3)) diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints.types b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints.types index 8e062a8d5bf..0366372bfb5 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints.types +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints.types @@ -3,106 +3,106 @@ // No errors expected class C { ->C : C +>C : C, Symbol(C, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 0, 0)) x: string; ->x : string +>x : string, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 3, 9)) } class D { ->D : D +>D : D, Symbol(D, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 5, 1)) x: string; ->x : string +>x : string, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 7, 9)) y: string; ->y : string +>y : string, Symbol(y, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 8, 14)) } class X { ->X : X ->T : T +>X : X, Symbol(X, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 12, 8)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 12, 12)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 12, 8)) } function foo(t: X, t2: X) { ->foo : (t: X, t2: X) => T ->T : T ->x : string ->t : X ->X : X ->T : T ->t2 : X ->X : X ->T : T +>foo : (t: X, t2: X) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 14, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 16, 13)) +>x : string, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 16, 24)) +>t : X, Symbol(t, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 16, 38)) +>X : X, Symbol(X, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 16, 13)) +>t2 : X, Symbol(t2, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 16, 46)) +>X : X, Symbol(X, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 16, 13)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 17, 7)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 16, 13)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 17, 7)) } var c1 = new X(); ->c1 : X +>c1 : X, Symbol(c1, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 21, 3)) >new X() : X ->X : typeof X ->C : C +>X : typeof X, Symbol(X, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>C : C, Symbol(C, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 0, 0)) var d1 = new X(); ->d1 : X +>d1 : X, Symbol(d1, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 22, 3)) >new X() : X ->X : typeof X ->D : D +>X : typeof X, Symbol(X, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>D : D, Symbol(D, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 5, 1)) var r = foo(c1, d1); ->r : C +>r : C, Symbol(r, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 23, 3), Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 31, 3)) >foo(c1, d1) : C ->foo : (t: X, t2: X) => T ->c1 : X ->d1 : X +>foo : (t: X, t2: X) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 14, 1)) +>c1 : X, Symbol(c1, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 21, 3)) +>d1 : X, Symbol(d1, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 22, 3)) var r2 = foo(c1, c1); ->r2 : C +>r2 : C, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 24, 3), Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 32, 3)) >foo(c1, c1) : C ->foo : (t: X, t2: X) => T ->c1 : X ->c1 : X +>foo : (t: X, t2: X) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 14, 1)) +>c1 : X, Symbol(c1, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 21, 3)) +>c1 : X, Symbol(c1, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 21, 3)) function foo2(t: X, t2: X) { ->foo2 : (t: X, t2: X) => T ->T : T ->C : C ->t : X ->X : X ->T : T ->t2 : X ->X : X ->T : T +>foo2 : (t: X, t2: X) => T, Symbol(foo2, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 24, 21)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 26, 14)) +>C : C, Symbol(C, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 0, 0)) +>t : X, Symbol(t, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 26, 27)) +>X : X, Symbol(X, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 26, 14)) +>t2 : X, Symbol(t2, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 26, 35)) +>X : X, Symbol(X, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 26, 14)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 27, 7)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 26, 14)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 27, 7)) } var r = foo2(c1, d1); ->r : C +>r : C, Symbol(r, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 23, 3), Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 31, 3)) >foo2(c1, d1) : C ->foo2 : (t: X, t2: X) => T ->c1 : X ->d1 : X +>foo2 : (t: X, t2: X) => T, Symbol(foo2, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 24, 21)) +>c1 : X, Symbol(c1, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 21, 3)) +>d1 : X, Symbol(d1, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 22, 3)) var r2 = foo2(c1, c1); ->r2 : C +>r2 : C, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 24, 3), Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 32, 3)) >foo2(c1, c1) : C ->foo2 : (t: X, t2: X) => T ->c1 : X ->c1 : X +>foo2 : (t: X, t2: X) => T, Symbol(foo2, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 24, 21)) +>c1 : X, Symbol(c1, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 21, 3)) +>c1 : X, Symbol(c1, Decl(genericCallWithObjectTypeArgsAndConstraints.ts, 21, 3)) diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.types b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.types index 29706ba7e3d..a069f309c8a 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.types +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.types @@ -3,141 +3,145 @@ // No errors expected class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 0, 0)) x: string; ->x : string +>x : string, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 3, 12)) } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 5, 1)) +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 0, 0)) y: string; ->y : string +>y : string, Symbol(y, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 6, 28)) } function f(x: { foo: T; bar: T }) { ->f : (x: { foo: T; bar: T; }) => T ->T : T ->Base : Base ->x : { foo: T; bar: T; } ->foo : T ->T : T ->bar : T ->T : T +>f : (x: { foo: T; bar: T; }) => T, Symbol(f, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 8, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 10, 11)) +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 0, 0)) +>x : { foo: T; bar: T; }, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 10, 27)) +>foo : T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 10, 31)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 10, 11)) +>bar : T, Symbol(bar, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 10, 39)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 10, 11)) var r: T; ->r : T ->T : T +>r : T, Symbol(r, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 11, 7)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 10, 11)) return r; ->r : T +>r : T, Symbol(r, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 11, 7)) } var r = f({ foo: new Base(), bar: new Derived() }); ->r : Base +>r : Base, Symbol(r, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 14, 3)) >f({ foo: new Base(), bar: new Derived() }) : Base ->f : (x: { foo: T; bar: T; }) => T +>f : (x: { foo: T; bar: T; }) => T, Symbol(f, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 8, 1)) >{ foo: new Base(), bar: new Derived() } : { foo: Base; bar: Derived; } ->foo : Base +>foo : Base, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 14, 11)) >new Base() : Base ->Base : typeof Base ->bar : Derived +>Base : typeof Base, Symbol(Base, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 0, 0)) +>bar : Derived, Symbol(bar, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 14, 28)) >new Derived() : Derived ->Derived : typeof Derived +>Derived : typeof Derived, Symbol(Derived, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 5, 1)) var r2 = f({ foo: new Derived(), bar: new Derived() }); ->r2 : Derived +>r2 : Derived, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 15, 3)) >f({ foo: new Derived(), bar: new Derived() }) : Derived ->f : (x: { foo: T; bar: T; }) => T +>f : (x: { foo: T; bar: T; }) => T, Symbol(f, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 8, 1)) >{ foo: new Derived(), bar: new Derived() } : { foo: Derived; bar: Derived; } ->foo : Derived +>foo : Derived, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 15, 12)) >new Derived() : Derived ->Derived : typeof Derived ->bar : Derived +>Derived : typeof Derived, Symbol(Derived, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 5, 1)) +>bar : Derived, Symbol(bar, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 15, 32)) >new Derived() : Derived ->Derived : typeof Derived +>Derived : typeof Derived, Symbol(Derived, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 5, 1)) interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 15, 55)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 18, 12)) a: T; ->a : T ->T : T +>a : T, Symbol(a, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 18, 16)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 18, 12)) } function f2(x: I) { ->f2 : (x: I) => T ->T : T ->Base : Base ->x : I ->I : I ->T : T +>f2 : (x: I) => T, Symbol(f2, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 20, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 21, 12)) +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 0, 0)) +>x : I, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 21, 28)) +>I : I, Symbol(I, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 15, 55)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 21, 12)) var r: T; ->r : T ->T : T +>r : T, Symbol(r, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 22, 7)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 21, 12)) return r; ->r : T +>r : T, Symbol(r, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 22, 7)) } var i: I; ->i : I ->I : I ->Derived : Derived +>i : I, Symbol(i, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 25, 3)) +>I : I, Symbol(I, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 15, 55)) +>Derived : Derived, Symbol(Derived, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 5, 1)) var r3 = f2(i); ->r3 : Derived +>r3 : Derived, Symbol(r3, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 26, 3)) >f2(i) : Derived ->f2 : (x: I) => T ->i : I +>f2 : (x: I) => T, Symbol(f2, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 20, 1)) +>i : I, Symbol(i, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 25, 3)) function f3(x: T, y: (a: T) => T) { ->f3 : (x: T, y: (a: T) => T) => T ->T : T ->Base : Base ->x : T ->T : T ->y : (a: T) => T ->a : T ->T : T ->T : T +>f3 : (x: T, y: (a: T) => T) => T, Symbol(f3, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 26, 15)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 29, 12)) +>Base : Base, Symbol(Base, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 0, 0)) +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 29, 28)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 29, 12)) +>y : (a: T) => T, Symbol(y, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 29, 33)) +>a : T, Symbol(a, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 29, 38)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 29, 12)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 29, 12)) return y(null); >y(null) : T ->y : (a: T) => T +>y : (a: T) => T, Symbol(y, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 29, 33)) +>null : null } var r4 = f3(new Base(), x => x); ->r4 : Base +>r4 : Base, Symbol(r4, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 32, 3)) >f3(new Base(), x => x) : Base ->f3 : (x: T, y: (a: T) => T) => T +>f3 : (x: T, y: (a: T) => T) => T, Symbol(f3, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 26, 15)) >new Base() : Base ->Base : typeof Base +>Base : typeof Base, Symbol(Base, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 0, 0)) >x => x : (x: Base) => Base ->x : Base ->x : Base +>x : Base, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 32, 23)) +>x : Base, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 32, 23)) var r5 = f3(new Derived(), x => x); ->r5 : Derived +>r5 : Derived, Symbol(r5, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 33, 3)) >f3(new Derived(), x => x) : Derived ->f3 : (x: T, y: (a: T) => T) => T +>f3 : (x: T, y: (a: T) => T) => T, Symbol(f3, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 26, 15)) >new Derived() : Derived ->Derived : typeof Derived +>Derived : typeof Derived, Symbol(Derived, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 5, 1)) >x => x : (x: Derived) => Derived ->x : Derived ->x : Derived +>x : Derived, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 33, 26)) +>x : Derived, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 33, 26)) var r6 = f3(null, null); // any ->r6 : any +>r6 : any, Symbol(r6, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 35, 3)) >f3(null, null) : any ->f3 : (x: T, y: (a: T) => T) => T +>f3 : (x: T, y: (a: T) => T) => T, Symbol(f3, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 26, 15)) +>null : null +>null : null var r7 = f3(null, x => x); // any ->r7 : any +>r7 : any, Symbol(r7, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 36, 3)) >f3(null, x => x) : any ->f3 : (x: T, y: (a: T) => T) => T +>f3 : (x: T, y: (a: T) => T) => T, Symbol(f3, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 26, 15)) +>null : null >x => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 36, 17)) +>x : any, Symbol(x, Decl(genericCallWithObjectTypeArgsAndConstraints2.ts, 36, 17)) diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexers.types b/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexers.types index 9a7ca1dbb91..3a13a9dae7f 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexers.types +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndIndexers.types @@ -2,65 +2,67 @@ // Type inference infers from indexers in target type, no errors expected function foo(x: T) { ->foo : (x: T) => T ->T : T ->x : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 2, 13)) +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 2, 16)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 2, 13)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 2, 16)) } var a: { ->a : { [x: string]: Object; [x: number]: Date; } +>a : { [x: string]: Object; [x: number]: Date; }, Symbol(a, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 6, 3)) [x: string]: Object; ->x : string ->Object : Object +>x : string, Symbol(x, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 7, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) [x: number]: Date; ->x : number ->Date : Date +>x : number, Symbol(x, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 8, 5)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) }; var r = foo(a); ->r : { [x: string]: Object; [x: number]: Date; } +>r : { [x: string]: Object; [x: number]: Date; }, Symbol(r, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 10, 3)) >foo(a) : { [x: string]: Object; [x: number]: Date; } ->foo : (x: T) => T ->a : { [x: string]: Object; [x: number]: Date; } +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 0, 0)) +>a : { [x: string]: Object; [x: number]: Date; }, Symbol(a, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 6, 3)) function other(arg: T) { ->other : (arg: T) => void ->T : T ->Date : Date ->arg : T ->T : T +>other : (arg: T) => void, Symbol(other, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 10, 15)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 12, 15)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>arg : T, Symbol(arg, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 12, 31)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 12, 15)) var b: { ->b : { [x: string]: Object; [x: number]: T; } +>b : { [x: string]: Object; [x: number]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 13, 7)) [x: string]: Object; ->x : string ->Object : Object +>x : string, Symbol(x, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 14, 9)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) [x: number]: T ->x : number ->T : T +>x : number, Symbol(x, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 15, 9)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 12, 15)) }; var r2 = foo(b); ->r2 : { [x: string]: Object; [x: number]: T; } +>r2 : { [x: string]: Object; [x: number]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 17, 7)) >foo(b) : { [x: string]: Object; [x: number]: T; } ->foo : (x: T) => T ->b : { [x: string]: Object; [x: number]: T; } +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 0, 0)) +>b : { [x: string]: Object; [x: number]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 13, 7)) var d = r2[1]; ->d : T +>d : T, Symbol(d, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 18, 7)) >r2[1] : T ->r2 : { [x: string]: Object; [x: number]: T; } +>r2 : { [x: string]: Object; [x: number]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 17, 7)) +>1 : number var e = r2['1']; ->e : Object +>e : Object, Symbol(e, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 19, 7)) >r2['1'] : Object ->r2 : { [x: string]: Object; [x: number]: T; } +>r2 : { [x: string]: Object; [x: number]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndIndexers.ts, 17, 7)) +>'1' : string } diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndNumericIndexer.types b/tests/baselines/reference/genericCallWithObjectTypeArgsAndNumericIndexer.types index f4b3f5960f0..3b18b894118 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndNumericIndexer.types +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndNumericIndexer.types @@ -2,92 +2,94 @@ // Type inference infers from indexers in target type, no errors expected function foo(x: T) { ->foo : (x: T) => T ->T : T ->x : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 2, 13)) +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 2, 16)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 2, 13)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 2, 16)) } var a: { [x: number]: Date }; ->a : { [x: number]: Date; } ->x : number ->Date : Date +>a : { [x: number]: Date; }, Symbol(a, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 6, 3)) +>x : number, Symbol(x, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 6, 10)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var r = foo(a); ->r : { [x: number]: Date; } +>r : { [x: number]: Date; }, Symbol(r, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 7, 3)) >foo(a) : { [x: number]: Date; } ->foo : (x: T) => T ->a : { [x: number]: Date; } +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 0, 0)) +>a : { [x: number]: Date; }, Symbol(a, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 6, 3)) function other(arg: T) { ->other : (arg: T) => void ->T : T ->arg : T ->T : T +>other : (arg: T) => void, Symbol(other, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 7, 15)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 9, 15)) +>arg : T, Symbol(arg, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 9, 18)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 9, 15)) var b: { [x: number]: T }; ->b : { [x: number]: T; } ->x : number ->T : T +>b : { [x: number]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 10, 7)) +>x : number, Symbol(x, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 10, 14)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 9, 15)) var r2 = foo(b); // T ->r2 : { [x: number]: T; } +>r2 : { [x: number]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 11, 7)) >foo(b) : { [x: number]: T; } ->foo : (x: T) => T ->b : { [x: number]: T; } +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 0, 0)) +>b : { [x: number]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 10, 7)) } function other2(arg: T) { ->other2 : (arg: T) => void ->T : T ->Date : Date ->arg : T ->T : T +>other2 : (arg: T) => void, Symbol(other2, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 12, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 14, 16)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>arg : T, Symbol(arg, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 14, 32)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 14, 16)) var b: { [x: number]: T }; ->b : { [x: number]: T; } ->x : number ->T : T +>b : { [x: number]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 15, 7)) +>x : number, Symbol(x, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 15, 14)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 14, 16)) var r2 = foo(b); ->r2 : { [x: number]: T; } +>r2 : { [x: number]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 16, 7)) >foo(b) : { [x: number]: T; } ->foo : (x: T) => T ->b : { [x: number]: T; } +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 0, 0)) +>b : { [x: number]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 15, 7)) var d = r2[1]; ->d : T +>d : T, Symbol(d, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 17, 7)) >r2[1] : T ->r2 : { [x: number]: T; } +>r2 : { [x: number]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 16, 7)) +>1 : number } function other3(arg: T) { ->other3 : (arg: T) => void ->T : T ->Date : Date ->U : U ->Date : Date ->arg : T ->T : T +>other3 : (arg: T) => void, Symbol(other3, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 18, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 20, 16)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>U : U, Symbol(U, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 20, 31)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>arg : T, Symbol(arg, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 20, 48)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 20, 16)) var b: { [x: number]: T }; ->b : { [x: number]: T; } ->x : number ->T : T +>b : { [x: number]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 21, 7)) +>x : number, Symbol(x, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 21, 14)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 20, 16)) var r2 = foo(b); ->r2 : { [x: number]: T; } +>r2 : { [x: number]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 22, 7)) >foo(b) : { [x: number]: T; } ->foo : (x: T) => T ->b : { [x: number]: T; } +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 0, 0)) +>b : { [x: number]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 21, 7)) var d = r2[1]; ->d : T +>d : T, Symbol(d, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 23, 7)) >r2[1] : T ->r2 : { [x: number]: T; } +>r2 : { [x: number]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndNumericIndexer.ts, 22, 7)) +>1 : number // BUG 821629 //var u: U = r2[1]; // ok diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndStringIndexer.types b/tests/baselines/reference/genericCallWithObjectTypeArgsAndStringIndexer.types index e52e6cff113..56e5b8c6b10 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndStringIndexer.types +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndStringIndexer.types @@ -2,94 +2,96 @@ // Type inference infers from indexers in target type, no errors expected function foo(x: T) { ->foo : (x: T) => T ->T : T ->x : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 2, 13)) +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 2, 16)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 2, 13)) return x; ->x : T +>x : T, Symbol(x, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 2, 16)) } var a: { [x: string]: Date }; ->a : { [x: string]: Date; } ->x : string ->Date : Date +>a : { [x: string]: Date; }, Symbol(a, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 6, 3)) +>x : string, Symbol(x, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 6, 10)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var r = foo(a); ->r : { [x: string]: Date; } +>r : { [x: string]: Date; }, Symbol(r, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 7, 3)) >foo(a) : { [x: string]: Date; } ->foo : (x: T) => T ->a : { [x: string]: Date; } +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 0, 0)) +>a : { [x: string]: Date; }, Symbol(a, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 6, 3)) function other(arg: T) { ->other : (arg: T) => void ->T : T ->arg : T ->T : T +>other : (arg: T) => void, Symbol(other, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 7, 15)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 9, 15)) +>arg : T, Symbol(arg, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 9, 18)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 9, 15)) var b: { [x: string]: T }; ->b : { [x: string]: T; } ->x : string ->T : T +>b : { [x: string]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 10, 7)) +>x : string, Symbol(x, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 10, 14)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 9, 15)) var r2 = foo(b); // T ->r2 : { [x: string]: T; } +>r2 : { [x: string]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 11, 7)) >foo(b) : { [x: string]: T; } ->foo : (x: T) => T ->b : { [x: string]: T; } +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 0, 0)) +>b : { [x: string]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 10, 7)) } function other2(arg: T) { ->other2 : (arg: T) => void ->T : T ->Date : Date ->arg : T ->T : T +>other2 : (arg: T) => void, Symbol(other2, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 12, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 14, 16)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>arg : T, Symbol(arg, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 14, 32)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 14, 16)) var b: { [x: string]: T }; ->b : { [x: string]: T; } ->x : string ->T : T +>b : { [x: string]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 15, 7)) +>x : string, Symbol(x, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 15, 14)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 14, 16)) var r2 = foo(b); ->r2 : { [x: string]: T; } +>r2 : { [x: string]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 16, 7)) >foo(b) : { [x: string]: T; } ->foo : (x: T) => T ->b : { [x: string]: T; } +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 0, 0)) +>b : { [x: string]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 15, 7)) var d: Date = r2['hm']; // ok ->d : Date ->Date : Date +>d : Date, Symbol(d, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 17, 7)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) >r2['hm'] : T ->r2 : { [x: string]: T; } +>r2 : { [x: string]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 16, 7)) +>'hm' : string } function other3(arg: T) { ->other3 : (arg: T) => void ->T : T ->Date : Date ->U : U ->Date : Date ->arg : T ->T : T +>other3 : (arg: T) => void, Symbol(other3, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 18, 1)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 20, 16)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>U : U, Symbol(U, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 20, 31)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>arg : T, Symbol(arg, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 20, 48)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 20, 16)) var b: { [x: string]: T }; ->b : { [x: string]: T; } ->x : string ->T : T +>b : { [x: string]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 21, 7)) +>x : string, Symbol(x, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 21, 14)) +>T : T, Symbol(T, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 20, 16)) var r2 = foo(b); ->r2 : { [x: string]: T; } +>r2 : { [x: string]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 22, 7)) >foo(b) : { [x: string]: T; } ->foo : (x: T) => T ->b : { [x: string]: T; } +>foo : (x: T) => T, Symbol(foo, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 0, 0)) +>b : { [x: string]: T; }, Symbol(b, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 21, 7)) var d: Date = r2['hm']; // ok ->d : Date ->Date : Date +>d : Date, Symbol(d, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 23, 7)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) >r2['hm'] : T ->r2 : { [x: string]: T; } +>r2 : { [x: string]: T; }, Symbol(r2, Decl(genericCallWithObjectTypeArgsAndStringIndexer.ts, 22, 7)) +>'hm' : string // BUG 821629 //var u: U = r2['hm']; // ok diff --git a/tests/baselines/reference/genericCallWithOverloadedFunctionTypedArguments.types b/tests/baselines/reference/genericCallWithOverloadedFunctionTypedArguments.types index ad491206be6..1244fdfe146 100644 --- a/tests/baselines/reference/genericCallWithOverloadedFunctionTypedArguments.types +++ b/tests/baselines/reference/genericCallWithOverloadedFunctionTypedArguments.types @@ -3,180 +3,186 @@ // Inferences are made quadratic-pairwise to and from these overload sets module NonGenericParameter { ->NonGenericParameter : typeof NonGenericParameter +>NonGenericParameter : typeof NonGenericParameter, Symbol(NonGenericParameter, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 0, 0)) var a: { ->a : { (x: boolean): boolean; (x: string): string; } +>a : { (x: boolean): boolean; (x: string): string; }, Symbol(a, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 4, 7)) (x: boolean): boolean; ->x : boolean +>x : boolean, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 5, 9)) (x: string): string; ->x : string +>x : string, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 6, 9)) } function foo4(cb: typeof a) { ->foo4 : (cb: { (x: boolean): boolean; (x: string): string; }) => { (x: boolean): boolean; (x: string): string; } ->cb : { (x: boolean): boolean; (x: string): string; } ->a : { (x: boolean): boolean; (x: string): string; } +>foo4 : (cb: { (x: boolean): boolean; (x: string): string; }) => { (x: boolean): boolean; (x: string): string; }, Symbol(foo4, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 7, 5)) +>cb : { (x: boolean): boolean; (x: string): string; }, Symbol(cb, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 9, 18)) +>a : { (x: boolean): boolean; (x: string): string; }, Symbol(a, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 4, 7)) return cb; ->cb : { (x: boolean): boolean; (x: string): string; } +>cb : { (x: boolean): boolean; (x: string): string; }, Symbol(cb, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 9, 18)) } var r = foo4(a); ->r : { (x: boolean): boolean; (x: string): string; } +>r : { (x: boolean): boolean; (x: string): string; }, Symbol(r, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 13, 7)) >foo4(a) : { (x: boolean): boolean; (x: string): string; } ->foo4 : (cb: { (x: boolean): boolean; (x: string): string; }) => { (x: boolean): boolean; (x: string): string; } ->a : { (x: boolean): boolean; (x: string): string; } +>foo4 : (cb: { (x: boolean): boolean; (x: string): string; }) => { (x: boolean): boolean; (x: string): string; }, Symbol(foo4, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 7, 5)) +>a : { (x: boolean): boolean; (x: string): string; }, Symbol(a, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 4, 7)) var r2 = foo4((x: T) => x); ->r2 : { (x: boolean): boolean; (x: string): string; } +>r2 : { (x: boolean): boolean; (x: string): string; }, Symbol(r2, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 14, 7)) >foo4((x: T) => x) : { (x: boolean): boolean; (x: string): string; } ->foo4 : (cb: { (x: boolean): boolean; (x: string): string; }) => { (x: boolean): boolean; (x: string): string; } +>foo4 : (cb: { (x: boolean): boolean; (x: string): string; }) => { (x: boolean): boolean; (x: string): string; }, Symbol(foo4, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 7, 5)) >(x: T) => x : (x: T) => T ->T : T ->x : T ->T : T ->x : T +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 14, 19)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 14, 22)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 14, 19)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 14, 22)) var r4 = foo4(x => x); ->r4 : { (x: boolean): boolean; (x: string): string; } +>r4 : { (x: boolean): boolean; (x: string): string; }, Symbol(r4, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 15, 7)) >foo4(x => x) : { (x: boolean): boolean; (x: string): string; } ->foo4 : (cb: { (x: boolean): boolean; (x: string): string; }) => { (x: boolean): boolean; (x: string): string; } +>foo4 : (cb: { (x: boolean): boolean; (x: string): string; }) => { (x: boolean): boolean; (x: string): string; }, Symbol(foo4, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 7, 5)) >x => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 15, 18)) +>x : any, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 15, 18)) } module GenericParameter { ->GenericParameter : typeof GenericParameter +>GenericParameter : typeof GenericParameter, Symbol(GenericParameter, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 16, 1)) function foo5(cb: { (x: T): string; (x: number): T }) { ->foo5 : (cb: { (x: T): string; (x: number): T; }) => { (x: T): string; (x: number): T; } ->T : T ->cb : { (x: T): string; (x: number): T; } ->x : T ->T : T ->x : number ->T : T +>foo5 : (cb: { (x: T): string; (x: number): T; }) => { (x: T): string; (x: number): T; }, Symbol(foo5, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 18, 25)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 19, 18)) +>cb : { (x: T): string; (x: number): T; }, Symbol(cb, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 19, 21)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 19, 28)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 19, 18)) +>x : number, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 19, 44)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 19, 18)) return cb; ->cb : { (x: T): string; (x: number): T; } +>cb : { (x: T): string; (x: number): T; }, Symbol(cb, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 19, 21)) } var r5 = foo5(x => x); // any => string (+1 overload) [inferences are made for T, but lambda not contextually typed]. T is any ->r5 : { (x: any): string; (x: number): any; } +>r5 : { (x: any): string; (x: number): any; }, Symbol(r5, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 23, 7)) >foo5(x => x) : { (x: any): string; (x: number): any; } ->foo5 : (cb: { (x: T): string; (x: number): T; }) => { (x: T): string; (x: number): T; } +>foo5 : (cb: { (x: T): string; (x: number): T; }) => { (x: T): string; (x: number): T; }, Symbol(foo5, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 18, 25)) >x => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 23, 18)) +>x : any, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 23, 18)) var a: { (x: T): string; (x: number): T; } ->a : { (x: T): string; (x: number): T; } ->T : T ->x : T ->T : T ->T : T ->x : number ->T : T +>a : { (x: T): string; (x: number): T; }, Symbol(a, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 24, 7), Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 41, 7)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 24, 14)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 24, 17)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 24, 14)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 24, 33)) +>x : number, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 24, 36)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 24, 33)) var r7 = foo5(a); // any => string (+1 overload) ->r7 : { (x: any): string; (x: number): any; } +>r7 : { (x: any): string; (x: number): any; }, Symbol(r7, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 25, 7)) >foo5(a) : { (x: any): string; (x: number): any; } ->foo5 : (cb: { (x: T): string; (x: number): T; }) => { (x: T): string; (x: number): T; } ->a : { (x: T): string; (x: number): T; } +>foo5 : (cb: { (x: T): string; (x: number): T; }) => { (x: T): string; (x: number): T; }, Symbol(foo5, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 18, 25)) +>a : { (x: T): string; (x: number): T; }, Symbol(a, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 24, 7), Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 41, 7)) function foo6(cb: { (x: T): string; (x: T, y?: T): string }) { ->foo6 : (cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; } ->T : T ->cb : { (x: T): string; (x: T, y?: T): string; } ->x : T ->T : T ->x : T ->T : T ->y : T ->T : T +>foo6 : (cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; }, Symbol(foo6, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 25, 21)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 27, 18)) +>cb : { (x: T): string; (x: T, y?: T): string; }, Symbol(cb, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 27, 21)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 27, 28)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 27, 18)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 27, 44)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 27, 18)) +>y : T, Symbol(y, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 27, 49)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 27, 18)) return cb; ->cb : { (x: T): string; (x: T, y?: T): string; } +>cb : { (x: T): string; (x: T, y?: T): string; }, Symbol(cb, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 27, 21)) } var r8 = foo6(x => x); // any => string (+1 overload) [inferences are made for T, but lambda not contextually typed]. T is any ->r8 : { (x: any): string; (x: any, y?: any): string; } +>r8 : { (x: any): string; (x: any, y?: any): string; }, Symbol(r8, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 31, 7)) >foo6(x => x) : { (x: any): string; (x: any, y?: any): string; } ->foo6 : (cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; } +>foo6 : (cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; }, Symbol(foo6, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 25, 21)) >x => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 31, 18)) +>x : any, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 31, 18)) var r9 = foo6((x: T) => ''); // any => string (+1 overload) ->r9 : { (x: any): string; (x: any, y?: any): string; } +>r9 : { (x: any): string; (x: any, y?: any): string; }, Symbol(r9, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 32, 7)) >foo6((x: T) => '') : { (x: any): string; (x: any, y?: any): string; } ->foo6 : (cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; } +>foo6 : (cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; }, Symbol(foo6, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 25, 21)) >(x: T) => '' : (x: T) => string ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 32, 19)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 32, 22)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 32, 19)) +>'' : string var r11 = foo6((x: T, y?: T) => ''); // any => string (+1 overload) ->r11 : { (x: any): string; (x: any, y?: any): string; } +>r11 : { (x: any): string; (x: any, y?: any): string; }, Symbol(r11, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 33, 7)) >foo6((x: T, y?: T) => '') : { (x: any): string; (x: any, y?: any): string; } ->foo6 : (cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; } +>foo6 : (cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; }, Symbol(foo6, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 25, 21)) >(x: T, y?: T) => '' : (x: T, y?: T) => string ->T : T ->x : T ->T : T ->y : T ->T : T +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 33, 20)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 33, 23)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 33, 20)) +>y : T, Symbol(y, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 33, 28)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 33, 20)) +>'' : string function foo7(x:T, cb: { (x: T): string; (x: T, y?: T): string }) { ->foo7 : (x: T, cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; } ->T : T ->x : T ->T : T ->cb : { (x: T): string; (x: T, y?: T): string; } ->x : T ->T : T ->x : T ->T : T ->y : T ->T : T +>foo7 : (x: T, cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; }, Symbol(foo7, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 33, 43)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 35, 18)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 35, 21)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 35, 18)) +>cb : { (x: T): string; (x: T, y?: T): string; }, Symbol(cb, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 35, 25)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 35, 33)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 35, 18)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 35, 49)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 35, 18)) +>y : T, Symbol(y, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 35, 54)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 35, 18)) return cb; ->cb : { (x: T): string; (x: T, y?: T): string; } +>cb : { (x: T): string; (x: T, y?: T): string; }, Symbol(cb, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 35, 25)) } var r12 = foo7(1, (x) => x); // any => string (+1 overload) [inferences are made for T, but lambda not contextually typed] ->r12 : { (x: any): string; (x: any, y?: any): string; } +>r12 : { (x: any): string; (x: any, y?: any): string; }, Symbol(r12, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 39, 7)) >foo7(1, (x) => x) : { (x: any): string; (x: any, y?: any): string; } ->foo7 : (x: T, cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; } +>foo7 : (x: T, cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; }, Symbol(foo7, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 33, 43)) +>1 : number >(x) => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 39, 23)) +>x : any, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 39, 23)) var r13 = foo7(1, (x: T) => ''); // any => string (+1 overload) [inferences are made for T, but lambda not contextually typed] ->r13 : { (x: any): string; (x: any, y?: any): string; } +>r13 : { (x: any): string; (x: any, y?: any): string; }, Symbol(r13, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 40, 7)) >foo7(1, (x: T) => '') : { (x: any): string; (x: any, y?: any): string; } ->foo7 : (x: T, cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; } +>foo7 : (x: T, cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; }, Symbol(foo7, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 33, 43)) +>1 : number >(x: T) => '' : (x: T) => string ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 40, 23)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 40, 26)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 40, 23)) +>'' : string var a: { (x: T): string; (x: number): T; } ->a : { (x: T): string; (x: number): T; } ->T : T ->x : T ->T : T ->T : T ->x : number ->T : T +>a : { (x: T): string; (x: number): T; }, Symbol(a, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 24, 7), Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 41, 7)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 41, 14)) +>x : T, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 41, 17)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 41, 14)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 41, 33)) +>x : number, Symbol(x, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 41, 36)) +>T : T, Symbol(T, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 41, 33)) var r14 = foo7(1, a); // any => string (+1 overload) [inferences are made for T, but lambda not contextually typed] ->r14 : { (x: any): string; (x: any, y?: any): string; } +>r14 : { (x: any): string; (x: any, y?: any): string; }, Symbol(r14, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 42, 7)) >foo7(1, a) : { (x: any): string; (x: any, y?: any): string; } ->foo7 : (x: T, cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; } ->a : { (x: T): string; (x: number): T; } +>foo7 : (x: T, cb: { (x: T): string; (x: T, y?: T): string; }) => { (x: T): string; (x: T, y?: T): string; }, Symbol(foo7, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 33, 43)) +>1 : number +>a : { (x: T): string; (x: number): T; }, Symbol(a, Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 24, 7), Decl(genericCallWithOverloadedFunctionTypedArguments.ts, 41, 7)) } diff --git a/tests/baselines/reference/genericCallbacksAndClassHierarchy.types b/tests/baselines/reference/genericCallbacksAndClassHierarchy.types index 97e584dca3f..82a73beea11 100644 --- a/tests/baselines/reference/genericCallbacksAndClassHierarchy.types +++ b/tests/baselines/reference/genericCallbacksAndClassHierarchy.types @@ -1,83 +1,83 @@ === tests/cases/compiler/genericCallbacksAndClassHierarchy.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(genericCallbacksAndClassHierarchy.ts, 0, 0)) export interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(genericCallbacksAndClassHierarchy.ts, 0, 10)) +>T : T, Symbol(T, Decl(genericCallbacksAndClassHierarchy.ts, 1, 23)) subscribe(callback: (newValue: T) => void ): any; ->subscribe : (callback: (newValue: T) => void) => any ->callback : (newValue: T) => void ->newValue : T ->T : T +>subscribe : (callback: (newValue: T) => void) => any, Symbol(subscribe, Decl(genericCallbacksAndClassHierarchy.ts, 1, 27)) +>callback : (newValue: T) => void, Symbol(callback, Decl(genericCallbacksAndClassHierarchy.ts, 2, 18)) +>newValue : T, Symbol(newValue, Decl(genericCallbacksAndClassHierarchy.ts, 2, 29)) +>T : T, Symbol(T, Decl(genericCallbacksAndClassHierarchy.ts, 1, 23)) } export class C1 { ->C1 : C1 ->T : T +>C1 : C1, Symbol(C1, Decl(genericCallbacksAndClassHierarchy.ts, 3, 5)) +>T : T, Symbol(T, Decl(genericCallbacksAndClassHierarchy.ts, 4, 20)) public value: I; ->value : I ->I : I ->T : T +>value : I, Symbol(value, Decl(genericCallbacksAndClassHierarchy.ts, 4, 24)) +>I : I, Symbol(I, Decl(genericCallbacksAndClassHierarchy.ts, 0, 10)) +>T : T, Symbol(T, Decl(genericCallbacksAndClassHierarchy.ts, 4, 20)) } export class A { ->A : A ->T : T +>A : A, Symbol(A, Decl(genericCallbacksAndClassHierarchy.ts, 6, 5)) +>T : T, Symbol(T, Decl(genericCallbacksAndClassHierarchy.ts, 7, 19)) public dummy: any; ->dummy : any +>dummy : any, Symbol(dummy, Decl(genericCallbacksAndClassHierarchy.ts, 7, 23)) } export class B extends C1> { } ->B : B ->T : T ->C1 : C1 ->A : A ->T : T +>B : B, Symbol(B, Decl(genericCallbacksAndClassHierarchy.ts, 9, 5)) +>T : T, Symbol(T, Decl(genericCallbacksAndClassHierarchy.ts, 10, 19)) +>C1 : C1, Symbol(C1, Decl(genericCallbacksAndClassHierarchy.ts, 3, 5)) +>A : A, Symbol(A, Decl(genericCallbacksAndClassHierarchy.ts, 6, 5)) +>T : T, Symbol(T, Decl(genericCallbacksAndClassHierarchy.ts, 10, 19)) export class D { ->D : D ->T : T +>D : D, Symbol(D, Decl(genericCallbacksAndClassHierarchy.ts, 10, 42)) +>T : T, Symbol(T, Decl(genericCallbacksAndClassHierarchy.ts, 11, 19)) _subscribe(viewModel: B): void { ->_subscribe : (viewModel: B) => void ->viewModel : B ->B : B ->T : T +>_subscribe : (viewModel: B) => void, Symbol(_subscribe, Decl(genericCallbacksAndClassHierarchy.ts, 11, 23)) +>viewModel : B, Symbol(viewModel, Decl(genericCallbacksAndClassHierarchy.ts, 12, 19)) +>B : B, Symbol(B, Decl(genericCallbacksAndClassHierarchy.ts, 9, 5)) +>T : T, Symbol(T, Decl(genericCallbacksAndClassHierarchy.ts, 11, 19)) var f = (newValue: A) => { }; ->f : (newValue: A) => void +>f : (newValue: A) => void, Symbol(f, Decl(genericCallbacksAndClassHierarchy.ts, 13, 15)) >(newValue: A) => { } : (newValue: A) => void ->newValue : A ->A : A ->T : T +>newValue : A, Symbol(newValue, Decl(genericCallbacksAndClassHierarchy.ts, 13, 21)) +>A : A, Symbol(A, Decl(genericCallbacksAndClassHierarchy.ts, 6, 5)) +>T : T, Symbol(T, Decl(genericCallbacksAndClassHierarchy.ts, 11, 19)) var v: I> = viewModel.value; ->v : I> ->I : I ->A : A ->T : T ->viewModel.value : I> ->viewModel : B ->value : I> +>v : I>, Symbol(v, Decl(genericCallbacksAndClassHierarchy.ts, 15, 15)) +>I : I, Symbol(I, Decl(genericCallbacksAndClassHierarchy.ts, 0, 10)) +>A : A, Symbol(A, Decl(genericCallbacksAndClassHierarchy.ts, 6, 5)) +>T : T, Symbol(T, Decl(genericCallbacksAndClassHierarchy.ts, 11, 19)) +>viewModel.value : I>, Symbol(C1.value, Decl(genericCallbacksAndClassHierarchy.ts, 4, 24)) +>viewModel : B, Symbol(viewModel, Decl(genericCallbacksAndClassHierarchy.ts, 12, 19)) +>value : I>, Symbol(C1.value, Decl(genericCallbacksAndClassHierarchy.ts, 4, 24)) // both of these should work v.subscribe(f); >v.subscribe(f) : any ->v.subscribe : (callback: (newValue: A) => void) => any ->v : I> ->subscribe : (callback: (newValue: A) => void) => any ->f : (newValue: A) => void +>v.subscribe : (callback: (newValue: A) => void) => any, Symbol(I.subscribe, Decl(genericCallbacksAndClassHierarchy.ts, 1, 27)) +>v : I>, Symbol(v, Decl(genericCallbacksAndClassHierarchy.ts, 15, 15)) +>subscribe : (callback: (newValue: A) => void) => any, Symbol(I.subscribe, Decl(genericCallbacksAndClassHierarchy.ts, 1, 27)) +>f : (newValue: A) => void, Symbol(f, Decl(genericCallbacksAndClassHierarchy.ts, 13, 15)) v.subscribe((newValue: A) => { }); >v.subscribe((newValue: A) => { }) : any ->v.subscribe : (callback: (newValue: A) => void) => any ->v : I> ->subscribe : (callback: (newValue: A) => void) => any +>v.subscribe : (callback: (newValue: A) => void) => any, Symbol(I.subscribe, Decl(genericCallbacksAndClassHierarchy.ts, 1, 27)) +>v : I>, Symbol(v, Decl(genericCallbacksAndClassHierarchy.ts, 15, 15)) +>subscribe : (callback: (newValue: A) => void) => any, Symbol(I.subscribe, Decl(genericCallbacksAndClassHierarchy.ts, 1, 27)) >(newValue: A) => { } : (newValue: A) => void ->newValue : A ->A : A ->T : T +>newValue : A, Symbol(newValue, Decl(genericCallbacksAndClassHierarchy.ts, 19, 25)) +>A : A, Symbol(A, Decl(genericCallbacksAndClassHierarchy.ts, 6, 5)) +>T : T, Symbol(T, Decl(genericCallbacksAndClassHierarchy.ts, 11, 19)) } } } diff --git a/tests/baselines/reference/genericClassImplementingGenericInterfaceFromAnotherModule.types b/tests/baselines/reference/genericClassImplementingGenericInterfaceFromAnotherModule.types index 337485dee2c..9ee8de9d900 100644 --- a/tests/baselines/reference/genericClassImplementingGenericInterfaceFromAnotherModule.types +++ b/tests/baselines/reference/genericClassImplementingGenericInterfaceFromAnotherModule.types @@ -1,19 +1,20 @@ === tests/cases/compiler/genericClassImplementingGenericInterfaceFromAnotherModule.ts === module foo { ->foo : unknown +>foo : any, Symbol(foo, Decl(genericClassImplementingGenericInterfaceFromAnotherModule.ts, 0, 0)) export interface IFoo { } ->IFoo : IFoo ->T : T +>IFoo : IFoo, Symbol(IFoo, Decl(genericClassImplementingGenericInterfaceFromAnotherModule.ts, 0, 12)) +>T : T, Symbol(T, Decl(genericClassImplementingGenericInterfaceFromAnotherModule.ts, 1, 26)) } module bar { ->bar : typeof bar +>bar : typeof bar, Symbol(bar, Decl(genericClassImplementingGenericInterfaceFromAnotherModule.ts, 2, 1)) export class Foo implements foo.IFoo { } ->Foo : Foo ->T : T ->foo : unknown ->IFoo : foo.IFoo ->T : T +>Foo : Foo, Symbol(Foo, Decl(genericClassImplementingGenericInterfaceFromAnotherModule.ts, 3, 12)) +>T : T, Symbol(T, Decl(genericClassImplementingGenericInterfaceFromAnotherModule.ts, 4, 21)) +>foo.IFoo : any, Symbol(foo.IFoo, Decl(genericClassImplementingGenericInterfaceFromAnotherModule.ts, 0, 12)) +>foo : any, Symbol(foo, Decl(genericClassImplementingGenericInterfaceFromAnotherModule.ts, 0, 0)) +>IFoo : foo.IFoo, Symbol(foo.IFoo, Decl(genericClassImplementingGenericInterfaceFromAnotherModule.ts, 0, 12)) +>T : T, Symbol(T, Decl(genericClassImplementingGenericInterfaceFromAnotherModule.ts, 4, 21)) } diff --git a/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.types b/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.types index 800b215f123..8f531304ce6 100644 --- a/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.types +++ b/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.types @@ -1,16 +1,16 @@ === tests/cases/compiler/genericClassInheritsConstructorFromNonGenericClass.ts === class A extends B { } ->A : A ->B : B +>A : A, Symbol(A, Decl(genericClassInheritsConstructorFromNonGenericClass.ts, 0, 0)) +>B : B, Symbol(B, Decl(genericClassInheritsConstructorFromNonGenericClass.ts, 0, 29)) class B extends C { } ->B : B ->U : U ->C : C +>B : B, Symbol(B, Decl(genericClassInheritsConstructorFromNonGenericClass.ts, 0, 29)) +>U : U, Symbol(U, Decl(genericClassInheritsConstructorFromNonGenericClass.ts, 1, 8)) +>C : C, Symbol(C, Decl(genericClassInheritsConstructorFromNonGenericClass.ts, 1, 24)) class C { ->C : C +>C : C, Symbol(C, Decl(genericClassInheritsConstructorFromNonGenericClass.ts, 1, 24)) constructor(p: string) { } ->p : string +>p : string, Symbol(p, Decl(genericClassInheritsConstructorFromNonGenericClass.ts, 3, 16)) } diff --git a/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.types b/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.types index 1867d390703..fdac954e8dd 100644 --- a/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.types +++ b/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.types @@ -1,255 +1,259 @@ === tests/cases/compiler/genericClassPropertyInheritanceSpecialization.ts === interface KnockoutObservableBase { ->KnockoutObservableBase : KnockoutObservableBase ->T : T +>KnockoutObservableBase : KnockoutObservableBase, Symbol(KnockoutObservableBase, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 33)) peek(): T; ->peek : () => T ->T : T +>peek : () => T, Symbol(peek, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 37)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 33)) (): T; ->T : T +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 33)) (value: T): void; ->value : T ->T : T +>value : T, Symbol(value, Decl(genericClassPropertyInheritanceSpecialization.ts, 3, 5)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 33)) } interface KnockoutObservable extends KnockoutObservableBase { ->KnockoutObservable : KnockoutObservable ->T : T ->KnockoutObservableBase : KnockoutObservableBase ->T : T +>KnockoutObservable : KnockoutObservable, Symbol(KnockoutObservable, Decl(genericClassPropertyInheritanceSpecialization.ts, 4, 1)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 6, 29)) +>KnockoutObservableBase : KnockoutObservableBase, Symbol(KnockoutObservableBase, Decl(genericClassPropertyInheritanceSpecialization.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 6, 29)) equalityComparer(a: T, b: T): boolean; ->equalityComparer : (a: T, b: T) => boolean ->a : T ->T : T ->b : T ->T : T +>equalityComparer : (a: T, b: T) => boolean, Symbol(equalityComparer, Decl(genericClassPropertyInheritanceSpecialization.ts, 6, 67)) +>a : T, Symbol(a, Decl(genericClassPropertyInheritanceSpecialization.ts, 7, 21)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 6, 29)) +>b : T, Symbol(b, Decl(genericClassPropertyInheritanceSpecialization.ts, 7, 26)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 6, 29)) valueHasMutated(): void; ->valueHasMutated : () => void +>valueHasMutated : () => void, Symbol(valueHasMutated, Decl(genericClassPropertyInheritanceSpecialization.ts, 7, 42)) valueWillMutate(): void; ->valueWillMutate : () => void +>valueWillMutate : () => void, Symbol(valueWillMutate, Decl(genericClassPropertyInheritanceSpecialization.ts, 8, 28)) } interface KnockoutObservableArray extends KnockoutObservable { ->KnockoutObservableArray : KnockoutObservableArray ->T : T ->KnockoutObservable : KnockoutObservable ->T : T +>KnockoutObservableArray : KnockoutObservableArray, Symbol(KnockoutObservableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) +>KnockoutObservable : KnockoutObservable, Symbol(KnockoutObservable, Decl(genericClassPropertyInheritanceSpecialization.ts, 4, 1)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) indexOf(searchElement: T, fromIndex?: number): number; ->indexOf : (searchElement: T, fromIndex?: number) => number ->searchElement : T ->T : T ->fromIndex : number +>indexOf : (searchElement: T, fromIndex?: number) => number, Symbol(indexOf, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 70)) +>searchElement : T, Symbol(searchElement, Decl(genericClassPropertyInheritanceSpecialization.ts, 13, 12)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) +>fromIndex : number, Symbol(fromIndex, Decl(genericClassPropertyInheritanceSpecialization.ts, 13, 29)) slice(start: number, end?: number): T[]; ->slice : (start: number, end?: number) => T[] ->start : number ->end : number ->T : T +>slice : (start: number, end?: number) => T[], Symbol(slice, Decl(genericClassPropertyInheritanceSpecialization.ts, 13, 58)) +>start : number, Symbol(start, Decl(genericClassPropertyInheritanceSpecialization.ts, 14, 10)) +>end : number, Symbol(end, Decl(genericClassPropertyInheritanceSpecialization.ts, 14, 24)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) splice(start: number, deleteCount?: number, ...items: T[]): T[]; ->splice : (start: number, deleteCount?: number, ...items: T[]) => T[] ->start : number ->deleteCount : number ->items : T[] ->T : T ->T : T +>splice : (start: number, deleteCount?: number, ...items: T[]) => T[], Symbol(splice, Decl(genericClassPropertyInheritanceSpecialization.ts, 14, 44)) +>start : number, Symbol(start, Decl(genericClassPropertyInheritanceSpecialization.ts, 15, 11)) +>deleteCount : number, Symbol(deleteCount, Decl(genericClassPropertyInheritanceSpecialization.ts, 15, 25)) +>items : T[], Symbol(items, Decl(genericClassPropertyInheritanceSpecialization.ts, 15, 47)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) pop(): T; ->pop : () => T ->T : T +>pop : () => T, Symbol(pop, Decl(genericClassPropertyInheritanceSpecialization.ts, 15, 68)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) push(...items: T[]): void; ->push : (...items: T[]) => void ->items : T[] ->T : T +>push : (...items: T[]) => void, Symbol(push, Decl(genericClassPropertyInheritanceSpecialization.ts, 16, 13)) +>items : T[], Symbol(items, Decl(genericClassPropertyInheritanceSpecialization.ts, 17, 9)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) shift(): T; ->shift : () => T ->T : T +>shift : () => T, Symbol(shift, Decl(genericClassPropertyInheritanceSpecialization.ts, 17, 30)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) unshift(...items: T[]): number; ->unshift : (...items: T[]) => number ->items : T[] ->T : T +>unshift : (...items: T[]) => number, Symbol(unshift, Decl(genericClassPropertyInheritanceSpecialization.ts, 18, 15)) +>items : T[], Symbol(items, Decl(genericClassPropertyInheritanceSpecialization.ts, 19, 12)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) reverse(): T[]; ->reverse : () => T[] ->T : T +>reverse : () => T[], Symbol(reverse, Decl(genericClassPropertyInheritanceSpecialization.ts, 19, 35)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) sort(compareFunction?: (a: T, b: T) => number): void; ->sort : (compareFunction?: (a: T, b: T) => number) => void ->compareFunction : (a: T, b: T) => number ->a : T ->T : T ->b : T ->T : T +>sort : (compareFunction?: (a: T, b: T) => number) => void, Symbol(sort, Decl(genericClassPropertyInheritanceSpecialization.ts, 20, 19)) +>compareFunction : (a: T, b: T) => number, Symbol(compareFunction, Decl(genericClassPropertyInheritanceSpecialization.ts, 21, 9)) +>a : T, Symbol(a, Decl(genericClassPropertyInheritanceSpecialization.ts, 21, 28)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) +>b : T, Symbol(b, Decl(genericClassPropertyInheritanceSpecialization.ts, 21, 33)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) replace(oldItem: T, newItem: T): void; ->replace : (oldItem: T, newItem: T) => void ->oldItem : T ->T : T ->newItem : T ->T : T +>replace : (oldItem: T, newItem: T) => void, Symbol(replace, Decl(genericClassPropertyInheritanceSpecialization.ts, 21, 57)) +>oldItem : T, Symbol(oldItem, Decl(genericClassPropertyInheritanceSpecialization.ts, 22, 12)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) +>newItem : T, Symbol(newItem, Decl(genericClassPropertyInheritanceSpecialization.ts, 22, 23)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) remove(item: T): T[]; ->remove : (item: T) => T[] ->item : T ->T : T ->T : T +>remove : (item: T) => T[], Symbol(remove, Decl(genericClassPropertyInheritanceSpecialization.ts, 22, 42)) +>item : T, Symbol(item, Decl(genericClassPropertyInheritanceSpecialization.ts, 23, 11)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) removeAll(items?: T[]): T[]; ->removeAll : (items?: T[]) => T[] ->items : T[] ->T : T ->T : T +>removeAll : (items?: T[]) => T[], Symbol(removeAll, Decl(genericClassPropertyInheritanceSpecialization.ts, 23, 25)) +>items : T[], Symbol(items, Decl(genericClassPropertyInheritanceSpecialization.ts, 24, 14)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) destroy(item: T): void; ->destroy : (item: T) => void ->item : T ->T : T +>destroy : (item: T) => void, Symbol(destroy, Decl(genericClassPropertyInheritanceSpecialization.ts, 24, 32)) +>item : T, Symbol(item, Decl(genericClassPropertyInheritanceSpecialization.ts, 25, 12)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) destroyAll(items?: T[]): void; ->destroyAll : (items?: T[]) => void ->items : T[] ->T : T +>destroyAll : (items?: T[]) => void, Symbol(destroyAll, Decl(genericClassPropertyInheritanceSpecialization.ts, 25, 27)) +>items : T[], Symbol(items, Decl(genericClassPropertyInheritanceSpecialization.ts, 26, 15)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 12, 34)) } interface KnockoutObservableArrayStatic { ->KnockoutObservableArrayStatic : KnockoutObservableArrayStatic +>KnockoutObservableArrayStatic : KnockoutObservableArrayStatic, Symbol(KnockoutObservableArrayStatic, Decl(genericClassPropertyInheritanceSpecialization.ts, 27, 1)) fn: KnockoutObservableArray; ->fn : KnockoutObservableArray ->KnockoutObservableArray : KnockoutObservableArray +>fn : KnockoutObservableArray, Symbol(fn, Decl(genericClassPropertyInheritanceSpecialization.ts, 29, 41)) +>KnockoutObservableArray : KnockoutObservableArray, Symbol(KnockoutObservableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 10, 1)) (value?: T[]): KnockoutObservableArray; ->T : T ->value : T[] ->T : T ->KnockoutObservableArray : KnockoutObservableArray ->T : T +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 32, 5)) +>value : T[], Symbol(value, Decl(genericClassPropertyInheritanceSpecialization.ts, 32, 8)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 32, 5)) +>KnockoutObservableArray : KnockoutObservableArray, Symbol(KnockoutObservableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericClassPropertyInheritanceSpecialization.ts, 32, 5)) } declare module ko { ->ko : typeof ko +>ko : typeof ko, Symbol(ko, Decl(genericClassPropertyInheritanceSpecialization.ts, 33, 1)) export var observableArray: KnockoutObservableArrayStatic; ->observableArray : KnockoutObservableArrayStatic ->KnockoutObservableArrayStatic : KnockoutObservableArrayStatic +>observableArray : KnockoutObservableArrayStatic, Symbol(observableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 36, 14)) +>KnockoutObservableArrayStatic : KnockoutObservableArrayStatic, Symbol(KnockoutObservableArrayStatic, Decl(genericClassPropertyInheritanceSpecialization.ts, 27, 1)) } module Portal.Controls.Validators { ->Portal : typeof Portal ->Controls : typeof Controls ->Validators : typeof Validators +>Portal : typeof Portal, Symbol(Portal, Decl(genericClassPropertyInheritanceSpecialization.ts, 37, 1)) +>Controls : typeof Controls, Symbol(Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 14)) +>Validators : typeof Validators, Symbol(Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 23)) export class Validator { ->Validator : Validator ->TValue : TValue +>Validator : Validator, Symbol(Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 35)) +>TValue : TValue, Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 41, 27)) private _subscription; ->_subscription : any +>_subscription : any, Symbol(_subscription, Decl(genericClassPropertyInheritanceSpecialization.ts, 41, 36)) public message: KnockoutObservable; ->message : KnockoutObservable ->KnockoutObservable : KnockoutObservable +>message : KnockoutObservable, Symbol(message, Decl(genericClassPropertyInheritanceSpecialization.ts, 42, 30)) +>KnockoutObservable : KnockoutObservable, Symbol(KnockoutObservable, Decl(genericClassPropertyInheritanceSpecialization.ts, 4, 1)) public validationState: KnockoutObservable; ->validationState : KnockoutObservable ->KnockoutObservable : KnockoutObservable +>validationState : KnockoutObservable, Symbol(validationState, Decl(genericClassPropertyInheritanceSpecialization.ts, 43, 51)) +>KnockoutObservable : KnockoutObservable, Symbol(KnockoutObservable, Decl(genericClassPropertyInheritanceSpecialization.ts, 4, 1)) public validate: KnockoutObservable; ->validate : KnockoutObservable ->KnockoutObservable : KnockoutObservable ->TValue : TValue +>validate : KnockoutObservable, Symbol(validate, Decl(genericClassPropertyInheritanceSpecialization.ts, 44, 59)) +>KnockoutObservable : KnockoutObservable, Symbol(KnockoutObservable, Decl(genericClassPropertyInheritanceSpecialization.ts, 4, 1)) +>TValue : TValue, Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 41, 27)) constructor(message?: string) { } ->message : string +>message : string, Symbol(message, Decl(genericClassPropertyInheritanceSpecialization.ts, 46, 20)) public destroy(): void { } ->destroy : () => void +>destroy : () => void, Symbol(destroy, Decl(genericClassPropertyInheritanceSpecialization.ts, 46, 41)) public _validate(value: TValue): number {return 0 } ->_validate : (value: TValue) => number ->value : TValue ->TValue : TValue +>_validate : (value: TValue) => number, Symbol(_validate, Decl(genericClassPropertyInheritanceSpecialization.ts, 47, 34)) +>value : TValue, Symbol(value, Decl(genericClassPropertyInheritanceSpecialization.ts, 48, 25)) +>TValue : TValue, Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 41, 27)) +>0 : number } } module PortalFx.ViewModels.Controls.Validators { ->PortalFx : typeof PortalFx ->ViewModels : typeof ViewModels ->Controls : typeof Controls ->Validators : typeof Validators +>PortalFx : typeof PortalFx, Symbol(PortalFx, Decl(genericClassPropertyInheritanceSpecialization.ts, 50, 1)) +>ViewModels : typeof ViewModels, Symbol(ViewModels, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 16)) +>Controls : typeof Controls, Symbol(Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 27)) +>Validators : typeof Validators, Symbol(Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 36)) export class Validator extends Portal.Controls.Validators.Validator { ->Validator : Validator ->TValue : TValue ->Portal : typeof Portal ->Controls : typeof Portal.Controls ->Validators : typeof Portal.Controls.Validators ->Validator : Portal.Controls.Validators.Validator ->TValue : TValue +>Validator : Validator, Symbol(Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 48)) +>TValue : TValue, Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 54, 27)) +>Portal.Controls.Validators.Validator : any, Symbol(Portal.Controls.Validators.Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 35)) +>Portal.Controls.Validators : typeof Portal.Controls.Validators, Symbol(Portal.Controls.Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 23)) +>Portal.Controls : typeof Portal.Controls, Symbol(Portal.Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 14)) +>Portal : typeof Portal, Symbol(Portal, Decl(genericClassPropertyInheritanceSpecialization.ts, 37, 1)) +>Controls : typeof Portal.Controls, Symbol(Portal.Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 14)) +>Validators : typeof Portal.Controls.Validators, Symbol(Portal.Controls.Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 23)) +>Validator : Portal.Controls.Validators.Validator, Symbol(Portal.Controls.Validators.Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 35)) +>TValue : TValue, Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 54, 27)) constructor(message?: string) { ->message : string +>message : string, Symbol(message, Decl(genericClassPropertyInheritanceSpecialization.ts, 56, 20)) super(message); >super(message) : void ->super : typeof Portal.Controls.Validators.Validator ->message : string +>super : typeof Portal.Controls.Validators.Validator, Symbol(Portal.Controls.Validators.Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 35)) +>message : string, Symbol(message, Decl(genericClassPropertyInheritanceSpecialization.ts, 56, 20)) } } } interface Contract { ->Contract : Contract ->TValue : TValue +>Contract : Contract, Symbol(Contract, Decl(genericClassPropertyInheritanceSpecialization.ts, 61, 1)) +>TValue : TValue, Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 63, 19)) validators: KnockoutObservableArray>; ->validators : KnockoutObservableArray> ->KnockoutObservableArray : KnockoutObservableArray ->PortalFx : unknown ->ViewModels : unknown ->Controls : unknown ->Validators : unknown ->Validator : PortalFx.ViewModels.Controls.Validators.Validator ->TValue : TValue +>validators : KnockoutObservableArray>, Symbol(validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 63, 28)) +>KnockoutObservableArray : KnockoutObservableArray, Symbol(KnockoutObservableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 10, 1)) +>PortalFx : any, Symbol(PortalFx, Decl(genericClassPropertyInheritanceSpecialization.ts, 50, 1)) +>ViewModels : any, Symbol(PortalFx.ViewModels, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 16)) +>Controls : any, Symbol(PortalFx.ViewModels.Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 27)) +>Validators : any, Symbol(PortalFx.ViewModels.Controls.Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 36)) +>Validator : PortalFx.ViewModels.Controls.Validators.Validator, Symbol(PortalFx.ViewModels.Controls.Validators.Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 48)) +>TValue : TValue, Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 63, 19)) } class ViewModel implements Contract { ->ViewModel : ViewModel ->TValue : TValue ->Contract : Contract ->TValue : TValue +>ViewModel : ViewModel, Symbol(ViewModel, Decl(genericClassPropertyInheritanceSpecialization.ts, 66, 1)) +>TValue : TValue, Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 69, 16)) +>Contract : Contract, Symbol(Contract, Decl(genericClassPropertyInheritanceSpecialization.ts, 61, 1)) +>TValue : TValue, Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 69, 16)) public validators: KnockoutObservableArray> = ko.observableArray>(); ->validators : KnockoutObservableArray> ->KnockoutObservableArray : KnockoutObservableArray ->PortalFx : unknown ->ViewModels : unknown ->Controls : unknown ->Validators : unknown ->Validator : PortalFx.ViewModels.Controls.Validators.Validator ->TValue : TValue +>validators : KnockoutObservableArray>, Symbol(validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 69, 53)) +>KnockoutObservableArray : KnockoutObservableArray, Symbol(KnockoutObservableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 10, 1)) +>PortalFx : any, Symbol(PortalFx, Decl(genericClassPropertyInheritanceSpecialization.ts, 50, 1)) +>ViewModels : any, Symbol(PortalFx.ViewModels, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 16)) +>Controls : any, Symbol(PortalFx.ViewModels.Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 27)) +>Validators : any, Symbol(PortalFx.ViewModels.Controls.Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 36)) +>Validator : PortalFx.ViewModels.Controls.Validators.Validator, Symbol(PortalFx.ViewModels.Controls.Validators.Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 48)) +>TValue : TValue, Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 69, 16)) >ko.observableArray>() : KnockoutObservableArray> ->ko.observableArray : KnockoutObservableArrayStatic ->ko : typeof ko ->observableArray : KnockoutObservableArrayStatic ->PortalFx : unknown ->ViewModels : unknown ->Controls : unknown ->Validators : unknown ->Validator : PortalFx.ViewModels.Controls.Validators.Validator ->TValue : TValue +>ko.observableArray : KnockoutObservableArrayStatic, Symbol(ko.observableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 36, 14)) +>ko : typeof ko, Symbol(ko, Decl(genericClassPropertyInheritanceSpecialization.ts, 33, 1)) +>observableArray : KnockoutObservableArrayStatic, Symbol(ko.observableArray, Decl(genericClassPropertyInheritanceSpecialization.ts, 36, 14)) +>PortalFx : any, Symbol(PortalFx, Decl(genericClassPropertyInheritanceSpecialization.ts, 50, 1)) +>ViewModels : any, Symbol(PortalFx.ViewModels, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 16)) +>Controls : any, Symbol(PortalFx.ViewModels.Controls, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 27)) +>Validators : any, Symbol(PortalFx.ViewModels.Controls.Validators, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 36)) +>Validator : PortalFx.ViewModels.Controls.Validators.Validator, Symbol(PortalFx.ViewModels.Controls.Validators.Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 48)) +>TValue : TValue, Symbol(TValue, Decl(genericClassPropertyInheritanceSpecialization.ts, 69, 16)) } diff --git a/tests/baselines/reference/genericClassStaticMethod.types b/tests/baselines/reference/genericClassStaticMethod.types index 3d4c02317d6..fb798036de0 100644 --- a/tests/baselines/reference/genericClassStaticMethod.types +++ b/tests/baselines/reference/genericClassStaticMethod.types @@ -1,21 +1,21 @@ === tests/cases/compiler/genericClassStaticMethod.ts === class Foo { ->Foo : Foo ->T : T +>Foo : Foo, Symbol(Foo, Decl(genericClassStaticMethod.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericClassStaticMethod.ts, 0, 10)) static getFoo() { ->getFoo : () => void +>getFoo : () => void, Symbol(Foo.getFoo, Decl(genericClassStaticMethod.ts, 0, 14)) } } class Bar extends Foo { ->Bar : Bar ->T : T ->Foo : Foo ->T : T +>Bar : Bar, Symbol(Bar, Decl(genericClassStaticMethod.ts, 3, 1)) +>T : T, Symbol(T, Decl(genericClassStaticMethod.ts, 5, 10)) +>Foo : Foo, Symbol(Foo, Decl(genericClassStaticMethod.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericClassStaticMethod.ts, 5, 10)) static getFoo() { ->getFoo : () => void +>getFoo : () => void, Symbol(Bar.getFoo, Decl(genericClassStaticMethod.ts, 5, 29)) } } diff --git a/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.types b/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.types index 25fe052d498..5f28045e813 100644 --- a/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.types +++ b/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.types @@ -3,238 +3,238 @@ // No errors expected class C { ->C : C +>C : C, Symbol(C, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 0, 0)) x: string; ->x : string +>x : string, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 3, 9)) } class D { ->D : D +>D : D, Symbol(D, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 5, 1)) x: string; ->x : string +>x : string, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 7, 9)) y: string; ->y : string +>y : string, Symbol(y, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 8, 14)) } class X { ->X : X ->T : T +>X : X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 12, 8)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 12, 12)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 12, 8)) } module Class { ->Class : typeof Class +>Class : typeof Class, Symbol(Class, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 14, 1)) class G { ->G : G ->T : T ->x : string +>G : G, Symbol(G, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 16, 14)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 17, 12)) +>x : string, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 17, 23)) foo(t: X, t2: X) { ->foo : (t: X, t2: X) => T ->T : T ->x : string ->t : X ->X : X ->T : T ->t2 : X ->X : X ->T : T +>foo : (t: X, t2: X) => T, Symbol(foo, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 17, 38)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 18, 12)) +>x : string, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 18, 23)) +>t : X, Symbol(t, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 18, 37)) +>X : X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 18, 12)) +>t2 : X, Symbol(t2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 18, 45)) +>X : X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 18, 12)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 19, 15)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 18, 12)) return x; ->x : T +>x : T, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 19, 15)) } } var c1 = new X(); ->c1 : X +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 24, 7)) >new X() : X ->X : typeof X ->C : C +>X : typeof X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>C : C, Symbol(C, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 0, 0)) var d1 = new X(); ->d1 : X +>d1 : X, Symbol(d1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 25, 7)) >new X() : X ->X : typeof X ->D : D +>X : typeof X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>D : D, Symbol(D, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 5, 1)) var g: G<{ x: string; y: string }>; ->g : G<{ x: string; y: string; }> ->G : G ->x : string ->y : string +>g : G<{ x: string; y: string; }>, Symbol(g, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 26, 7)) +>G : G, Symbol(G, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 16, 14)) +>x : string, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 26, 14)) +>y : string, Symbol(y, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 26, 25)) var r = g.foo(c1, d1); ->r : C +>r : C, Symbol(r, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 27, 7), Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 37, 7)) >g.foo(c1, d1) : C ->g.foo : (t: X, t2: X) => T ->g : G<{ x: string; y: string; }> ->foo : (t: X, t2: X) => T ->c1 : X ->d1 : X +>g.foo : (t: X, t2: X) => T, Symbol(G.foo, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 17, 38)) +>g : G<{ x: string; y: string; }>, Symbol(g, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 26, 7)) +>foo : (t: X, t2: X) => T, Symbol(G.foo, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 17, 38)) +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 24, 7)) +>d1 : X, Symbol(d1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 25, 7)) var r2 = g.foo(c1, c1); ->r2 : C +>r2 : C, Symbol(r2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 28, 7), Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 38, 7)) >g.foo(c1, c1) : C ->g.foo : (t: X, t2: X) => T ->g : G<{ x: string; y: string; }> ->foo : (t: X, t2: X) => T ->c1 : X ->c1 : X +>g.foo : (t: X, t2: X) => T, Symbol(G.foo, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 17, 38)) +>g : G<{ x: string; y: string; }>, Symbol(g, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 26, 7)) +>foo : (t: X, t2: X) => T, Symbol(G.foo, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 17, 38)) +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 24, 7)) +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 24, 7)) class G2 { ->G2 : G2 ->T : T ->C : C +>G2 : G2, Symbol(G2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 28, 27)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 30, 13)) +>C : C, Symbol(C, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 0, 0)) foo2(t: X, t2: X) { ->foo2 : (t: X, t2: X) => T ->T : T ->C : C ->t : X ->X : X ->T : T ->t2 : X ->X : X ->T : T +>foo2 : (t: X, t2: X) => T, Symbol(foo2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 30, 27)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 31, 13)) +>C : C, Symbol(C, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 0, 0)) +>t : X, Symbol(t, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 31, 26)) +>X : X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 31, 13)) +>t2 : X, Symbol(t2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 31, 34)) +>X : X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 31, 13)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 32, 15)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 31, 13)) return x; ->x : T +>x : T, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 32, 15)) } } var g2: G2; ->g2 : G2 ->G2 : G2 ->D : D +>g2 : G2, Symbol(g2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 36, 7)) +>G2 : G2, Symbol(G2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 28, 27)) +>D : D, Symbol(D, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 5, 1)) var r = g2.foo2(c1, d1); ->r : C +>r : C, Symbol(r, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 27, 7), Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 37, 7)) >g2.foo2(c1, d1) : C ->g2.foo2 : (t: X, t2: X) => T ->g2 : G2 ->foo2 : (t: X, t2: X) => T ->c1 : X ->d1 : X +>g2.foo2 : (t: X, t2: X) => T, Symbol(G2.foo2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 30, 27)) +>g2 : G2, Symbol(g2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 36, 7)) +>foo2 : (t: X, t2: X) => T, Symbol(G2.foo2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 30, 27)) +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 24, 7)) +>d1 : X, Symbol(d1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 25, 7)) var r2 = g2.foo2(c1, c1); ->r2 : C +>r2 : C, Symbol(r2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 28, 7), Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 38, 7)) >g2.foo2(c1, c1) : C ->g2.foo2 : (t: X, t2: X) => T ->g2 : G2 ->foo2 : (t: X, t2: X) => T ->c1 : X ->c1 : X +>g2.foo2 : (t: X, t2: X) => T, Symbol(G2.foo2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 30, 27)) +>g2 : G2, Symbol(g2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 36, 7)) +>foo2 : (t: X, t2: X) => T, Symbol(G2.foo2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 30, 27)) +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 24, 7)) +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 24, 7)) } module Interface { ->Interface : typeof Interface +>Interface : typeof Interface, Symbol(Interface, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 39, 1)) interface G { ->G : G ->T : T ->x : string +>G : G, Symbol(G, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 41, 18)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 42, 16)) +>x : string, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 42, 27)) foo(t: X, t2: X): T; ->foo : (t: X, t2: X) => T ->T : T ->x : string ->t : X ->X : X ->T : T ->t2 : X ->X : X ->T : T ->T : T +>foo : (t: X, t2: X) => T, Symbol(foo, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 42, 42)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 43, 12)) +>x : string, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 43, 23)) +>t : X, Symbol(t, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 43, 37)) +>X : X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 43, 12)) +>t2 : X, Symbol(t2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 43, 45)) +>X : X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 43, 12)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 43, 12)) } var c1 = new X(); ->c1 : X +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 46, 7)) >new X() : X ->X : typeof X ->C : C +>X : typeof X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>C : C, Symbol(C, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 0, 0)) var d1 = new X(); ->d1 : X +>d1 : X, Symbol(d1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 47, 7)) >new X() : X ->X : typeof X ->D : D +>X : typeof X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>D : D, Symbol(D, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 5, 1)) var g: G<{ x: string; y: string }>; ->g : G<{ x: string; y: string; }> ->G : G ->x : string ->y : string +>g : G<{ x: string; y: string; }>, Symbol(g, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 48, 7)) +>G : G, Symbol(G, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 41, 18)) +>x : string, Symbol(x, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 48, 14)) +>y : string, Symbol(y, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 48, 25)) var r = g.foo(c1, d1); ->r : C +>r : C, Symbol(r, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 49, 7), Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 57, 7)) >g.foo(c1, d1) : C ->g.foo : (t: X, t2: X) => T ->g : G<{ x: string; y: string; }> ->foo : (t: X, t2: X) => T ->c1 : X ->d1 : X +>g.foo : (t: X, t2: X) => T, Symbol(G.foo, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 42, 42)) +>g : G<{ x: string; y: string; }>, Symbol(g, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 48, 7)) +>foo : (t: X, t2: X) => T, Symbol(G.foo, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 42, 42)) +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 46, 7)) +>d1 : X, Symbol(d1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 47, 7)) var r2 = g.foo(c1, c1); ->r2 : C +>r2 : C, Symbol(r2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 50, 7), Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 58, 7)) >g.foo(c1, c1) : C ->g.foo : (t: X, t2: X) => T ->g : G<{ x: string; y: string; }> ->foo : (t: X, t2: X) => T ->c1 : X ->c1 : X +>g.foo : (t: X, t2: X) => T, Symbol(G.foo, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 42, 42)) +>g : G<{ x: string; y: string; }>, Symbol(g, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 48, 7)) +>foo : (t: X, t2: X) => T, Symbol(G.foo, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 42, 42)) +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 46, 7)) +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 46, 7)) interface G2 { ->G2 : G2 ->T : T ->C : C +>G2 : G2, Symbol(G2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 50, 27)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 52, 17)) +>C : C, Symbol(C, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 0, 0)) foo2(t: X, t2: X): T; ->foo2 : (t: X, t2: X) => T ->T : T ->C : C ->t : X ->X : X ->T : T ->t2 : X ->X : X ->T : T ->T : T +>foo2 : (t: X, t2: X) => T, Symbol(foo2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 52, 31)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 53, 13)) +>C : C, Symbol(C, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 0, 0)) +>t : X, Symbol(t, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 53, 26)) +>X : X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 53, 13)) +>t2 : X, Symbol(t2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 53, 34)) +>X : X, Symbol(X, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 53, 13)) +>T : T, Symbol(T, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 53, 13)) } var g2: G2; ->g2 : G2 ->G2 : G2 ->D : D +>g2 : G2, Symbol(g2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 56, 7)) +>G2 : G2, Symbol(G2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 50, 27)) +>D : D, Symbol(D, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 5, 1)) var r = g2.foo2(c1, d1); ->r : C +>r : C, Symbol(r, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 49, 7), Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 57, 7)) >g2.foo2(c1, d1) : C ->g2.foo2 : (t: X, t2: X) => T ->g2 : G2 ->foo2 : (t: X, t2: X) => T ->c1 : X ->d1 : X +>g2.foo2 : (t: X, t2: X) => T, Symbol(G2.foo2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 52, 31)) +>g2 : G2, Symbol(g2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 56, 7)) +>foo2 : (t: X, t2: X) => T, Symbol(G2.foo2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 52, 31)) +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 46, 7)) +>d1 : X, Symbol(d1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 47, 7)) var r2 = g2.foo2(c1, c1); ->r2 : C +>r2 : C, Symbol(r2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 50, 7), Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 58, 7)) >g2.foo2(c1, c1) : C ->g2.foo2 : (t: X, t2: X) => T ->g2 : G2 ->foo2 : (t: X, t2: X) => T ->c1 : X ->c1 : X +>g2.foo2 : (t: X, t2: X) => T, Symbol(G2.foo2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 52, 31)) +>g2 : G2, Symbol(g2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 56, 7)) +>foo2 : (t: X, t2: X) => T, Symbol(G2.foo2, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 52, 31)) +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 46, 7)) +>c1 : X, Symbol(c1, Decl(genericClassWithObjectTypeArgsAndConstraints.ts, 46, 7)) } diff --git a/tests/baselines/reference/genericClassWithStaticFactory.types b/tests/baselines/reference/genericClassWithStaticFactory.types index b0df737ee68..c75d144cdc9 100644 --- a/tests/baselines/reference/genericClassWithStaticFactory.types +++ b/tests/baselines/reference/genericClassWithStaticFactory.types @@ -1,602 +1,614 @@ === tests/cases/compiler/genericClassWithStaticFactory.ts === module Editor { ->Editor : typeof Editor +>Editor : typeof Editor, Symbol(Editor, Decl(genericClassWithStaticFactory.ts, 0, 0)) export class List { ->List : List ->T : T +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) public next: List; ->next : List ->List : List ->T : T +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) public prev: List; ->prev : List ->List : List ->T : T +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) private listFactory: ListFactory; ->listFactory : ListFactory ->ListFactory : ListFactory ->T : T +>listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) +>ListFactory : ListFactory, Symbol(ListFactory, Decl(genericClassWithStaticFactory.ts, 106, 5)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) constructor(public isHead: boolean, public data: T) { ->isHead : boolean ->data : T ->T : T +>isHead : boolean, Symbol(isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 7, 43)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) this.listFactory = new ListFactory(); >this.listFactory = new ListFactory() : ListFactory ->this.listFactory : ListFactory ->this : List ->listFactory : ListFactory +>this.listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) >new ListFactory() : ListFactory ->ListFactory : typeof ListFactory ->T : T +>ListFactory : typeof ListFactory, Symbol(ListFactory, Decl(genericClassWithStaticFactory.ts, 106, 5)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) } public add(data: T): List { ->add : (data: T) => List ->data : T ->T : T ->List : List ->T : T +>add : (data: T) => List, Symbol(add, Decl(genericClassWithStaticFactory.ts, 10, 9)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 12, 19)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) var entry = this.listFactory.MakeEntry(data); ->entry : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 13, 15)) >this.listFactory.MakeEntry(data) : List ->this.listFactory.MakeEntry : (data: T) => List ->this.listFactory : ListFactory ->this : List ->listFactory : ListFactory ->MakeEntry : (data: T) => List ->data : T +>this.listFactory.MakeEntry : (data: T) => List, Symbol(ListFactory.MakeEntry, Decl(genericClassWithStaticFactory.ts, 115, 9)) +>this.listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) +>MakeEntry : (data: T) => List, Symbol(ListFactory.MakeEntry, Decl(genericClassWithStaticFactory.ts, 115, 9)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 12, 19)) this.prev.next = entry; >this.prev.next = entry : List ->this.prev.next : List ->this.prev : List ->this : List ->prev : List ->next : List ->entry : List +>this.prev.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 13, 15)) entry.next = this; >entry.next = this : List ->entry.next : List ->entry : List ->next : List ->this : List +>entry.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 13, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) entry.prev = this.prev; >entry.prev = this.prev : List ->entry.prev : List ->entry : List ->prev : List ->this.prev : List ->this : List ->prev : List +>entry.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 13, 15)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) this.prev = entry; >this.prev = entry : List ->this.prev : List ->this : List ->prev : List ->entry : List +>this.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 13, 15)) return entry; ->entry : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 13, 15)) } public count(): number { ->count : () => number +>count : () => number, Symbol(count, Decl(genericClassWithStaticFactory.ts, 20, 9)) var entry: List; ->entry : List ->List : List ->T : T +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 23, 15)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) var i: number; ->i : number +>i : number, Symbol(i, Decl(genericClassWithStaticFactory.ts, 24, 15)) entry = this.next; >entry = this.next : List ->entry : List ->this.next : List ->this : List ->next : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 23, 15)) +>this.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) for (i = 0; !(entry.isHead); i++) { >i = 0 : number ->i : number +>i : number, Symbol(i, Decl(genericClassWithStaticFactory.ts, 24, 15)) +>0 : number >!(entry.isHead) : boolean >(entry.isHead) : boolean ->entry.isHead : boolean ->entry : List ->isHead : boolean +>entry.isHead : boolean, Symbol(isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 23, 15)) +>isHead : boolean, Symbol(isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) >i++ : number ->i : number +>i : number, Symbol(i, Decl(genericClassWithStaticFactory.ts, 24, 15)) entry = entry.next; >entry = entry.next : List ->entry : List ->entry.next : List ->entry : List ->next : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 23, 15)) +>entry.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 23, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) } return (i); >(i) : number ->i : number +>i : number, Symbol(i, Decl(genericClassWithStaticFactory.ts, 24, 15)) } public isEmpty(): boolean { ->isEmpty : () => boolean +>isEmpty : () => boolean, Symbol(isEmpty, Decl(genericClassWithStaticFactory.ts, 32, 9)) return (this.next == this); >(this.next == this) : boolean >this.next == this : boolean ->this.next : List ->this : List ->next : List ->this : List +>this.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) } public first(): T { ->first : () => T ->T : T +>first : () => T, Symbol(first, Decl(genericClassWithStaticFactory.ts, 36, 9)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) if (this.isEmpty()) >this.isEmpty() : boolean ->this.isEmpty : () => boolean ->this : List ->isEmpty : () => boolean +>this.isEmpty : () => boolean, Symbol(isEmpty, Decl(genericClassWithStaticFactory.ts, 32, 9)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>isEmpty : () => boolean, Symbol(isEmpty, Decl(genericClassWithStaticFactory.ts, 32, 9)) { return this.next.data; ->this.next.data : T ->this.next : List ->this : List ->next : List ->data : T +>this.next.data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 7, 43)) +>this.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 7, 43)) } else { return null; +>null : null } } public pushEntry(entry: List): void { ->pushEntry : (entry: List) => void ->entry : List ->List : List ->T : T +>pushEntry : (entry: List) => void, Symbol(pushEntry, Decl(genericClassWithStaticFactory.ts, 46, 9)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 48, 25)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) entry.isHead = false; >entry.isHead = false : boolean ->entry.isHead : boolean ->entry : List ->isHead : boolean +>entry.isHead : boolean, Symbol(isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 48, 25)) +>isHead : boolean, Symbol(isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) +>false : boolean entry.next = this.next; >entry.next = this.next : List ->entry.next : List ->entry : List ->next : List ->this.next : List ->this : List ->next : List +>entry.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 48, 25)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) entry.prev = this; >entry.prev = this : List ->entry.prev : List ->entry : List ->prev : List ->this : List +>entry.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 48, 25)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) this.next = entry; >this.next = entry : List ->this.next : List ->this : List ->next : List ->entry : List +>this.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 48, 25)) entry.next.prev = entry; // entry.next.prev does not show intellisense, but entry.prev.prev does >entry.next.prev = entry : List ->entry.next.prev : List ->entry.next : List ->entry : List ->next : List ->prev : List ->entry : List +>entry.next.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 48, 25)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 48, 25)) } public push(data: T): void { ->push : (data: T) => void ->data : T ->T : T +>push : (data: T) => void, Symbol(push, Decl(genericClassWithStaticFactory.ts, 54, 9)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 56, 20)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) var entry = this.listFactory.MakeEntry(data); ->entry : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 57, 15)) >this.listFactory.MakeEntry(data) : List ->this.listFactory.MakeEntry : (data: T) => List ->this.listFactory : ListFactory ->this : List ->listFactory : ListFactory ->MakeEntry : (data: T) => List ->data : T +>this.listFactory.MakeEntry : (data: T) => List, Symbol(ListFactory.MakeEntry, Decl(genericClassWithStaticFactory.ts, 115, 9)) +>this.listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) +>MakeEntry : (data: T) => List, Symbol(ListFactory.MakeEntry, Decl(genericClassWithStaticFactory.ts, 115, 9)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 56, 20)) entry.data = data; >entry.data = data : T ->entry.data : T ->entry : List ->data : T ->data : T +>entry.data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 7, 43)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 57, 15)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 7, 43)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 56, 20)) entry.isHead = false; >entry.isHead = false : boolean ->entry.isHead : boolean ->entry : List ->isHead : boolean +>entry.isHead : boolean, Symbol(isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 57, 15)) +>isHead : boolean, Symbol(isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) +>false : boolean entry.next = this.next; >entry.next = this.next : List ->entry.next : List ->entry : List ->next : List ->this.next : List ->this : List ->next : List +>entry.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 57, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) entry.prev = this; >entry.prev = this : List ->entry.prev : List ->entry : List ->prev : List ->this : List +>entry.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 57, 15)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) this.next = entry; >this.next = entry : List ->this.next : List ->this : List ->next : List ->entry : List +>this.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 57, 15)) entry.next.prev = entry; // entry.next.prev does not show intellisense, but entry.prev.prev does >entry.next.prev = entry : List ->entry.next.prev : List ->entry.next : List ->entry : List ->next : List ->prev : List ->entry : List +>entry.next.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 57, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 57, 15)) } public popEntry(head: List): List { ->popEntry : (head: List) => List ->head : List ->List : List ->T : T ->List : List ->T : T +>popEntry : (head: List) => List, Symbol(popEntry, Decl(genericClassWithStaticFactory.ts, 64, 9)) +>head : List, Symbol(head, Decl(genericClassWithStaticFactory.ts, 66, 24)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) if (this.next.isHead) { ->this.next.isHead : boolean ->this.next : List ->this : List ->next : List ->isHead : boolean +>this.next.isHead : boolean, Symbol(isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) +>this.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>isHead : boolean, Symbol(isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) return null; +>null : null } else { return this.listFactory.RemoveEntry(this.next); >this.listFactory.RemoveEntry(this.next) : List ->this.listFactory.RemoveEntry : (entry: List) => List ->this.listFactory : ListFactory ->this : List ->listFactory : ListFactory ->RemoveEntry : (entry: List) => List ->this.next : List ->this : List ->next : List +>this.listFactory.RemoveEntry : (entry: List) => List, Symbol(ListFactory.RemoveEntry, Decl(genericClassWithStaticFactory.ts, 122, 9)) +>this.listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) +>RemoveEntry : (entry: List) => List, Symbol(ListFactory.RemoveEntry, Decl(genericClassWithStaticFactory.ts, 122, 9)) +>this.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) } } public insertEntry(entry: List): List { ->insertEntry : (entry: List) => List ->entry : List ->List : List ->T : T ->List : List ->T : T +>insertEntry : (entry: List) => List, Symbol(insertEntry, Decl(genericClassWithStaticFactory.ts, 73, 9)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 75, 27)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) entry.isHead = false; >entry.isHead = false : boolean ->entry.isHead : boolean ->entry : List ->isHead : boolean +>entry.isHead : boolean, Symbol(isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 75, 27)) +>isHead : boolean, Symbol(isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) +>false : boolean this.prev.next = entry; >this.prev.next = entry : List ->this.prev.next : List ->this.prev : List ->this : List ->prev : List ->next : List ->entry : List +>this.prev.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 75, 27)) entry.next = this; >entry.next = this : List ->entry.next : List ->entry : List ->next : List ->this : List +>entry.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 75, 27)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) entry.prev = this.prev; >entry.prev = this.prev : List ->entry.prev : List ->entry : List ->prev : List ->this.prev : List ->this : List ->prev : List +>entry.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 75, 27)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) this.prev = entry; >this.prev = entry : List ->this.prev : List ->this : List ->prev : List ->entry : List +>this.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 75, 27)) return entry; ->entry : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 75, 27)) } public insertAfter(data: T): List { ->insertAfter : (data: T) => List ->data : T ->T : T ->List : List ->T : T +>insertAfter : (data: T) => List, Symbol(insertAfter, Decl(genericClassWithStaticFactory.ts, 82, 9)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 84, 27)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) var entry: List = this.listFactory.MakeEntry(data); ->entry : List ->List : List ->T : T +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 85, 15)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) >this.listFactory.MakeEntry(data) : List ->this.listFactory.MakeEntry : (data: T) => List ->this.listFactory : ListFactory ->this : List ->listFactory : ListFactory ->MakeEntry : (data: T) => List ->data : T +>this.listFactory.MakeEntry : (data: T) => List, Symbol(ListFactory.MakeEntry, Decl(genericClassWithStaticFactory.ts, 115, 9)) +>this.listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) +>MakeEntry : (data: T) => List, Symbol(ListFactory.MakeEntry, Decl(genericClassWithStaticFactory.ts, 115, 9)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 84, 27)) entry.next = this.next; >entry.next = this.next : List ->entry.next : List ->entry : List ->next : List ->this.next : List ->this : List ->next : List +>entry.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 85, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) entry.prev = this; >entry.prev = this : List ->entry.prev : List ->entry : List ->prev : List ->this : List +>entry.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 85, 15)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) this.next = entry; >this.next = entry : List ->this.next : List ->this : List ->next : List ->entry : List +>this.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 85, 15)) entry.next.prev = entry;// entry.next.prev does not show intellisense, but entry.prev.prev does >entry.next.prev = entry : List ->entry.next.prev : List ->entry.next : List ->entry : List ->next : List ->prev : List ->entry : List +>entry.next.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 85, 15)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 85, 15)) return entry; ->entry : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 85, 15)) } public insertEntryBefore(entry: List): List { ->insertEntryBefore : (entry: List) => List ->entry : List ->List : List ->T : T ->List : List ->T : T +>insertEntryBefore : (entry: List) => List, Symbol(insertEntryBefore, Decl(genericClassWithStaticFactory.ts, 91, 9)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 93, 33)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) this.prev.next = entry; >this.prev.next = entry : List ->this.prev.next : List ->this.prev : List ->this : List ->prev : List ->next : List ->entry : List +>this.prev.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 93, 33)) entry.next = this; >entry.next = this : List ->entry.next : List ->entry : List ->next : List ->this : List +>entry.next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 93, 33)) +>next : List, Symbol(next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) entry.prev = this.prev; >entry.prev = this.prev : List ->entry.prev : List ->entry : List ->prev : List ->this.prev : List ->this : List ->prev : List +>entry.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 93, 33)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) this.prev = entry; >this.prev = entry : List ->this.prev : List ->this : List ->prev : List ->entry : List +>this.prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>prev : List, Symbol(prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 93, 33)) return entry; ->entry : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 93, 33)) } public insertBefore(data: T): List { ->insertBefore : (data: T) => List ->data : T ->T : T ->List : List ->T : T +>insertBefore : (data: T) => List, Symbol(insertBefore, Decl(genericClassWithStaticFactory.ts, 100, 9)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 102, 28)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 2, 22)) var entry = this.listFactory.MakeEntry(data); ->entry : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 103, 15)) >this.listFactory.MakeEntry(data) : List ->this.listFactory.MakeEntry : (data: T) => List ->this.listFactory : ListFactory ->this : List ->listFactory : ListFactory ->MakeEntry : (data: T) => List ->data : T +>this.listFactory.MakeEntry : (data: T) => List, Symbol(ListFactory.MakeEntry, Decl(genericClassWithStaticFactory.ts, 115, 9)) +>this.listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>listFactory : ListFactory, Symbol(listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29)) +>MakeEntry : (data: T) => List, Symbol(ListFactory.MakeEntry, Decl(genericClassWithStaticFactory.ts, 115, 9)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 102, 28)) return this.insertEntryBefore(entry); >this.insertEntryBefore(entry) : List ->this.insertEntryBefore : (entry: List) => List ->this : List ->insertEntryBefore : (entry: List) => List ->entry : List +>this.insertEntryBefore : (entry: List) => List, Symbol(insertEntryBefore, Decl(genericClassWithStaticFactory.ts, 91, 9)) +>this : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>insertEntryBefore : (entry: List) => List, Symbol(insertEntryBefore, Decl(genericClassWithStaticFactory.ts, 91, 9)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 103, 15)) } } export class ListFactory { ->ListFactory : ListFactory ->T : T +>ListFactory : ListFactory, Symbol(ListFactory, Decl(genericClassWithStaticFactory.ts, 106, 5)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 108, 29)) public MakeHead(): List { ->MakeHead : () => List ->T : T ->List : List ->T : T +>MakeHead : () => List, Symbol(MakeHead, Decl(genericClassWithStaticFactory.ts, 108, 33)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 110, 24)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 110, 24)) var entry: List = new List(true, null); ->entry : List ->List : List ->T : T +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 111, 15)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 110, 24)) >new List(true, null) : List ->List : typeof List ->T : T +>List : typeof List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 110, 24)) +>true : boolean +>null : null entry.prev = entry; >entry.prev = entry : List ->entry.prev : List ->entry : List ->prev : List ->entry : List +>entry.prev : List, Symbol(List.prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 111, 15)) +>prev : List, Symbol(List.prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 111, 15)) entry.next = entry; >entry.next = entry : List ->entry.next : List ->entry : List ->next : List ->entry : List +>entry.next : List, Symbol(List.next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 111, 15)) +>next : List, Symbol(List.next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 111, 15)) return entry; ->entry : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 111, 15)) } public MakeEntry(data: T): List { ->MakeEntry : (data: T) => List ->T : T ->data : T ->T : T ->List : List ->T : T +>MakeEntry : (data: T) => List, Symbol(MakeEntry, Decl(genericClassWithStaticFactory.ts, 115, 9)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 117, 25)) +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 117, 28)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 117, 25)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 117, 25)) var entry: List = new List(false, data); ->entry : List ->List : List ->T : T +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 118, 15)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 117, 25)) >new List(false, data) : List ->List : typeof List ->T : T ->data : T +>List : typeof List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 117, 25)) +>false : boolean +>data : T, Symbol(data, Decl(genericClassWithStaticFactory.ts, 117, 28)) entry.prev = entry; >entry.prev = entry : List ->entry.prev : List ->entry : List ->prev : List ->entry : List +>entry.prev : List, Symbol(List.prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 118, 15)) +>prev : List, Symbol(List.prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 118, 15)) entry.next = entry; >entry.next = entry : List ->entry.next : List ->entry : List ->next : List ->entry : List +>entry.next : List, Symbol(List.next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 118, 15)) +>next : List, Symbol(List.next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 118, 15)) return entry; ->entry : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 118, 15)) } public RemoveEntry(entry: List): List { ->RemoveEntry : (entry: List) => List ->T : T ->entry : List ->List : List ->T : T ->List : List ->T : T +>RemoveEntry : (entry: List) => List, Symbol(RemoveEntry, Decl(genericClassWithStaticFactory.ts, 122, 9)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 124, 27)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 124, 30)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 124, 27)) +>List : List, Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericClassWithStaticFactory.ts, 124, 27)) if (entry == null) { >entry == null : boolean ->entry : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 124, 30)) +>null : null return null; +>null : null } else if (entry.isHead) { ->entry.isHead : boolean ->entry : List ->isHead : boolean +>entry.isHead : boolean, Symbol(List.isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 124, 30)) +>isHead : boolean, Symbol(List.isHead, Decl(genericClassWithStaticFactory.ts, 7, 20)) // Can't remove the head of a list! return null; +>null : null } else { entry.next.prev = entry.prev; >entry.next.prev = entry.prev : List ->entry.next.prev : List ->entry.next : List ->entry : List ->next : List ->prev : List ->entry.prev : List ->entry : List ->prev : List +>entry.next.prev : List, Symbol(List.prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry.next : List, Symbol(List.next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 124, 30)) +>next : List, Symbol(List.next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>prev : List, Symbol(List.prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry.prev : List, Symbol(List.prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 124, 30)) +>prev : List, Symbol(List.prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) entry.prev.next = entry.next; >entry.prev.next = entry.next : List ->entry.prev.next : List ->entry.prev : List ->entry : List ->prev : List ->next : List ->entry.next : List ->entry : List ->next : List +>entry.prev.next : List, Symbol(List.next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry.prev : List, Symbol(List.prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 124, 30)) +>prev : List, Symbol(List.prev, Decl(genericClassWithStaticFactory.ts, 3, 29)) +>next : List, Symbol(List.next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry.next : List, Symbol(List.next, Decl(genericClassWithStaticFactory.ts, 2, 26)) +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 124, 30)) +>next : List, Symbol(List.next, Decl(genericClassWithStaticFactory.ts, 2, 26)) return entry; ->entry : List +>entry : List, Symbol(entry, Decl(genericClassWithStaticFactory.ts, 124, 30)) } } } diff --git a/tests/baselines/reference/genericClasses0.types b/tests/baselines/reference/genericClasses0.types index b02fa07c219..2bead05e02a 100644 --- a/tests/baselines/reference/genericClasses0.types +++ b/tests/baselines/reference/genericClasses0.types @@ -1,20 +1,20 @@ === tests/cases/compiler/genericClasses0.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(genericClasses0.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericClasses0.ts, 0, 8)) public x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericClasses0.ts, 0, 12)) +>T : T, Symbol(T, Decl(genericClasses0.ts, 0, 8)) } var v1 : C; ->v1 : C ->C : C +>v1 : C, Symbol(v1, Decl(genericClasses0.ts, 4, 3)) +>C : C, Symbol(C, Decl(genericClasses0.ts, 0, 0)) var y = v1.x; // should be 'string' ->y : string ->v1.x : string ->v1 : C ->x : string +>y : string, Symbol(y, Decl(genericClasses0.ts, 6, 3)) +>v1.x : string, Symbol(C.x, Decl(genericClasses0.ts, 0, 12)) +>v1 : C, Symbol(v1, Decl(genericClasses0.ts, 4, 3)) +>x : string, Symbol(C.x, Decl(genericClasses0.ts, 0, 12)) diff --git a/tests/baselines/reference/genericClasses1.types b/tests/baselines/reference/genericClasses1.types index 82ce172f5ea..78784ed0e9f 100644 --- a/tests/baselines/reference/genericClasses1.types +++ b/tests/baselines/reference/genericClasses1.types @@ -1,21 +1,21 @@ === tests/cases/compiler/genericClasses1.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(genericClasses1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericClasses1.ts, 0, 8)) public x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericClasses1.ts, 0, 12)) +>T : T, Symbol(T, Decl(genericClasses1.ts, 0, 8)) } var v1 = new C(); ->v1 : C +>v1 : C, Symbol(v1, Decl(genericClasses1.ts, 4, 3)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(genericClasses1.ts, 0, 0)) var y = v1.x; // should be 'string' ->y : string ->v1.x : string ->v1 : C ->x : string +>y : string, Symbol(y, Decl(genericClasses1.ts, 6, 3)) +>v1.x : string, Symbol(C.x, Decl(genericClasses1.ts, 0, 12)) +>v1 : C, Symbol(v1, Decl(genericClasses1.ts, 4, 3)) +>x : string, Symbol(C.x, Decl(genericClasses1.ts, 0, 12)) diff --git a/tests/baselines/reference/genericClasses2.types b/tests/baselines/reference/genericClasses2.types index 2b366f0a8fd..6710220d0a4 100644 --- a/tests/baselines/reference/genericClasses2.types +++ b/tests/baselines/reference/genericClasses2.types @@ -1,54 +1,54 @@ === tests/cases/compiler/genericClasses2.ts === interface Foo { ->Foo : Foo ->T : T +>Foo : Foo, Symbol(Foo, Decl(genericClasses2.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericClasses2.ts, 0, 14)) a: T; ->a : T ->T : T +>a : T, Symbol(a, Decl(genericClasses2.ts, 0, 18)) +>T : T, Symbol(T, Decl(genericClasses2.ts, 0, 14)) } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(genericClasses2.ts, 2, 1)) +>T : T, Symbol(T, Decl(genericClasses2.ts, 4, 8)) public x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericClasses2.ts, 4, 12)) +>T : T, Symbol(T, Decl(genericClasses2.ts, 4, 8)) public y: Foo; ->y : Foo ->Foo : Foo ->T : T +>y : Foo, Symbol(y, Decl(genericClasses2.ts, 5, 13)) +>Foo : Foo, Symbol(Foo, Decl(genericClasses2.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericClasses2.ts, 4, 8)) public z: Foo; ->z : Foo ->Foo : Foo +>z : Foo, Symbol(z, Decl(genericClasses2.ts, 6, 18)) +>Foo : Foo, Symbol(Foo, Decl(genericClasses2.ts, 0, 0)) } var v1 : C; ->v1 : C ->C : C +>v1 : C, Symbol(v1, Decl(genericClasses2.ts, 10, 3)) +>C : C, Symbol(C, Decl(genericClasses2.ts, 2, 1)) var y = v1.x; // should be 'string' ->y : string ->v1.x : string ->v1 : C ->x : string +>y : string, Symbol(y, Decl(genericClasses2.ts, 12, 3)) +>v1.x : string, Symbol(C.x, Decl(genericClasses2.ts, 4, 12)) +>v1 : C, Symbol(v1, Decl(genericClasses2.ts, 10, 3)) +>x : string, Symbol(C.x, Decl(genericClasses2.ts, 4, 12)) var w = v1.y.a; // should be 'string' ->w : string ->v1.y.a : string ->v1.y : Foo ->v1 : C ->y : Foo ->a : string +>w : string, Symbol(w, Decl(genericClasses2.ts, 13, 3)) +>v1.y.a : string, Symbol(Foo.a, Decl(genericClasses2.ts, 0, 18)) +>v1.y : Foo, Symbol(C.y, Decl(genericClasses2.ts, 5, 13)) +>v1 : C, Symbol(v1, Decl(genericClasses2.ts, 10, 3)) +>y : Foo, Symbol(C.y, Decl(genericClasses2.ts, 5, 13)) +>a : string, Symbol(Foo.a, Decl(genericClasses2.ts, 0, 18)) var z = v1.z.a; // should be 'number' ->z : number ->v1.z.a : number ->v1.z : Foo ->v1 : C ->z : Foo ->a : number +>z : number, Symbol(z, Decl(genericClasses2.ts, 14, 3)) +>v1.z.a : number, Symbol(Foo.a, Decl(genericClasses2.ts, 0, 18)) +>v1.z : Foo, Symbol(C.z, Decl(genericClasses2.ts, 6, 18)) +>v1 : C, Symbol(v1, Decl(genericClasses2.ts, 10, 3)) +>z : Foo, Symbol(C.z, Decl(genericClasses2.ts, 6, 18)) +>a : number, Symbol(Foo.a, Decl(genericClasses2.ts, 0, 18)) diff --git a/tests/baselines/reference/genericClasses3.types b/tests/baselines/reference/genericClasses3.types index ea0ebcd2cc7..d6d9eedd7b5 100644 --- a/tests/baselines/reference/genericClasses3.types +++ b/tests/baselines/reference/genericClasses3.types @@ -1,48 +1,48 @@ === tests/cases/compiler/genericClasses3.ts === class B { ->B : B ->T : T +>B : B, Symbol(B, Decl(genericClasses3.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericClasses3.ts, 0, 8)) a: T; ->a : T ->T : T +>a : T, Symbol(a, Decl(genericClasses3.ts, 0, 12)) +>T : T, Symbol(T, Decl(genericClasses3.ts, 0, 8)) b: T; ->b : T ->T : T +>b : T, Symbol(b, Decl(genericClasses3.ts, 1, 9)) +>T : T, Symbol(T, Decl(genericClasses3.ts, 0, 8)) } class C extends B { ->C : C ->T : T ->B : B ->T : T +>C : C, Symbol(C, Decl(genericClasses3.ts, 3, 1)) +>T : T, Symbol(T, Decl(genericClasses3.ts, 5, 8)) +>B : B, Symbol(B, Decl(genericClasses3.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericClasses3.ts, 5, 8)) public x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericClasses3.ts, 5, 25)) +>T : T, Symbol(T, Decl(genericClasses3.ts, 5, 8)) } var v2: C ; ->v2 : C ->C : C +>v2 : C, Symbol(v2, Decl(genericClasses3.ts, 9, 3)) +>C : C, Symbol(C, Decl(genericClasses3.ts, 3, 1)) var y = v2.x; // should be 'string' ->y : string ->v2.x : string ->v2 : C ->x : string +>y : string, Symbol(y, Decl(genericClasses3.ts, 11, 3)) +>v2.x : string, Symbol(C.x, Decl(genericClasses3.ts, 5, 25)) +>v2 : C, Symbol(v2, Decl(genericClasses3.ts, 9, 3)) +>x : string, Symbol(C.x, Decl(genericClasses3.ts, 5, 25)) var u = v2.a; // should be 'string' ->u : string ->v2.a : string ->v2 : C ->a : string +>u : string, Symbol(u, Decl(genericClasses3.ts, 12, 3)) +>v2.a : string, Symbol(B.a, Decl(genericClasses3.ts, 0, 12)) +>v2 : C, Symbol(v2, Decl(genericClasses3.ts, 9, 3)) +>a : string, Symbol(B.a, Decl(genericClasses3.ts, 0, 12)) var z = v2.b; ->z : string ->v2.b : string ->v2 : C ->b : string +>z : string, Symbol(z, Decl(genericClasses3.ts, 14, 3)) +>v2.b : string, Symbol(B.b, Decl(genericClasses3.ts, 1, 9)) +>v2 : C, Symbol(v2, Decl(genericClasses3.ts, 9, 3)) +>b : string, Symbol(B.b, Decl(genericClasses3.ts, 1, 9)) diff --git a/tests/baselines/reference/genericClasses4.types b/tests/baselines/reference/genericClasses4.types index ac3d05be84d..31347d4dd4e 100644 --- a/tests/baselines/reference/genericClasses4.types +++ b/tests/baselines/reference/genericClasses4.types @@ -1,98 +1,98 @@ === tests/cases/compiler/genericClasses4.ts === // once caused stack overflow class Vec2_T ->Vec2_T : Vec2_T ->A : A +>Vec2_T : Vec2_T, Symbol(Vec2_T, Decl(genericClasses4.ts, 0, 0)) +>A : A, Symbol(A, Decl(genericClasses4.ts, 1, 13)) { constructor(public x: A, public y: A) { } ->x : A ->A : A ->y : A ->A : A +>x : A, Symbol(x, Decl(genericClasses4.ts, 3, 16)) +>A : A, Symbol(A, Decl(genericClasses4.ts, 1, 13)) +>y : A, Symbol(y, Decl(genericClasses4.ts, 3, 28)) +>A : A, Symbol(A, Decl(genericClasses4.ts, 1, 13)) fmap(f: (a: A) => B): Vec2_T { ->fmap : (f: (a: A) => B) => Vec2_T ->B : B ->f : (a: A) => B ->a : A ->A : A ->B : B ->Vec2_T : Vec2_T ->B : B +>fmap : (f: (a: A) => B) => Vec2_T, Symbol(fmap, Decl(genericClasses4.ts, 3, 45)) +>B : B, Symbol(B, Decl(genericClasses4.ts, 4, 9)) +>f : (a: A) => B, Symbol(f, Decl(genericClasses4.ts, 4, 12)) +>a : A, Symbol(a, Decl(genericClasses4.ts, 4, 16)) +>A : A, Symbol(A, Decl(genericClasses4.ts, 1, 13)) +>B : B, Symbol(B, Decl(genericClasses4.ts, 4, 9)) +>Vec2_T : Vec2_T, Symbol(Vec2_T, Decl(genericClasses4.ts, 0, 0)) +>B : B, Symbol(B, Decl(genericClasses4.ts, 4, 9)) var x:B = f(this.x); ->x : B ->B : B +>x : B, Symbol(x, Decl(genericClasses4.ts, 5, 11)) +>B : B, Symbol(B, Decl(genericClasses4.ts, 4, 9)) >f(this.x) : B ->f : (a: A) => B ->this.x : A ->this : Vec2_T ->x : A +>f : (a: A) => B, Symbol(f, Decl(genericClasses4.ts, 4, 12)) +>this.x : A, Symbol(x, Decl(genericClasses4.ts, 3, 16)) +>this : Vec2_T, Symbol(Vec2_T, Decl(genericClasses4.ts, 0, 0)) +>x : A, Symbol(x, Decl(genericClasses4.ts, 3, 16)) var y:B = f(this.y); ->y : B ->B : B +>y : B, Symbol(y, Decl(genericClasses4.ts, 6, 11)) +>B : B, Symbol(B, Decl(genericClasses4.ts, 4, 9)) >f(this.y) : B ->f : (a: A) => B ->this.y : A ->this : Vec2_T ->y : A +>f : (a: A) => B, Symbol(f, Decl(genericClasses4.ts, 4, 12)) +>this.y : A, Symbol(y, Decl(genericClasses4.ts, 3, 28)) +>this : Vec2_T, Symbol(Vec2_T, Decl(genericClasses4.ts, 0, 0)) +>y : A, Symbol(y, Decl(genericClasses4.ts, 3, 28)) var retval: Vec2_T = new Vec2_T(x, y); ->retval : Vec2_T ->Vec2_T : Vec2_T ->B : B +>retval : Vec2_T, Symbol(retval, Decl(genericClasses4.ts, 7, 11)) +>Vec2_T : Vec2_T, Symbol(Vec2_T, Decl(genericClasses4.ts, 0, 0)) +>B : B, Symbol(B, Decl(genericClasses4.ts, 4, 9)) >new Vec2_T(x, y) : Vec2_T ->Vec2_T : typeof Vec2_T ->x : B ->y : B +>Vec2_T : typeof Vec2_T, Symbol(Vec2_T, Decl(genericClasses4.ts, 0, 0)) +>x : B, Symbol(x, Decl(genericClasses4.ts, 5, 11)) +>y : B, Symbol(y, Decl(genericClasses4.ts, 6, 11)) return retval; ->retval : Vec2_T +>retval : Vec2_T, Symbol(retval, Decl(genericClasses4.ts, 7, 11)) } apply(f: Vec2_T<(a: A) => B>): Vec2_T { ->apply : (f: Vec2_T<(a: A) => B>) => Vec2_T ->B : B ->f : Vec2_T<(a: A) => B> ->Vec2_T : Vec2_T ->a : A ->A : A ->B : B ->Vec2_T : Vec2_T ->B : B +>apply : (f: Vec2_T<(a: A) => B>) => Vec2_T, Symbol(apply, Decl(genericClasses4.ts, 9, 5)) +>B : B, Symbol(B, Decl(genericClasses4.ts, 10, 10)) +>f : Vec2_T<(a: A) => B>, Symbol(f, Decl(genericClasses4.ts, 10, 13)) +>Vec2_T : Vec2_T, Symbol(Vec2_T, Decl(genericClasses4.ts, 0, 0)) +>a : A, Symbol(a, Decl(genericClasses4.ts, 10, 24)) +>A : A, Symbol(A, Decl(genericClasses4.ts, 1, 13)) +>B : B, Symbol(B, Decl(genericClasses4.ts, 10, 10)) +>Vec2_T : Vec2_T, Symbol(Vec2_T, Decl(genericClasses4.ts, 0, 0)) +>B : B, Symbol(B, Decl(genericClasses4.ts, 10, 10)) var x:B = f.x(this.x); ->x : B ->B : B +>x : B, Symbol(x, Decl(genericClasses4.ts, 11, 11)) +>B : B, Symbol(B, Decl(genericClasses4.ts, 10, 10)) >f.x(this.x) : B ->f.x : (a: A) => B ->f : Vec2_T<(a: A) => B> ->x : (a: A) => B ->this.x : A ->this : Vec2_T ->x : A +>f.x : (a: A) => B, Symbol(Vec2_T.x, Decl(genericClasses4.ts, 3, 16)) +>f : Vec2_T<(a: A) => B>, Symbol(f, Decl(genericClasses4.ts, 10, 13)) +>x : (a: A) => B, Symbol(Vec2_T.x, Decl(genericClasses4.ts, 3, 16)) +>this.x : A, Symbol(x, Decl(genericClasses4.ts, 3, 16)) +>this : Vec2_T, Symbol(Vec2_T, Decl(genericClasses4.ts, 0, 0)) +>x : A, Symbol(x, Decl(genericClasses4.ts, 3, 16)) var y:B = f.y(this.y); ->y : B ->B : B +>y : B, Symbol(y, Decl(genericClasses4.ts, 12, 11)) +>B : B, Symbol(B, Decl(genericClasses4.ts, 10, 10)) >f.y(this.y) : B ->f.y : (a: A) => B ->f : Vec2_T<(a: A) => B> ->y : (a: A) => B ->this.y : A ->this : Vec2_T ->y : A +>f.y : (a: A) => B, Symbol(Vec2_T.y, Decl(genericClasses4.ts, 3, 28)) +>f : Vec2_T<(a: A) => B>, Symbol(f, Decl(genericClasses4.ts, 10, 13)) +>y : (a: A) => B, Symbol(Vec2_T.y, Decl(genericClasses4.ts, 3, 28)) +>this.y : A, Symbol(y, Decl(genericClasses4.ts, 3, 28)) +>this : Vec2_T, Symbol(Vec2_T, Decl(genericClasses4.ts, 0, 0)) +>y : A, Symbol(y, Decl(genericClasses4.ts, 3, 28)) var retval: Vec2_T = new Vec2_T(x, y); ->retval : Vec2_T ->Vec2_T : Vec2_T ->B : B +>retval : Vec2_T, Symbol(retval, Decl(genericClasses4.ts, 13, 11)) +>Vec2_T : Vec2_T, Symbol(Vec2_T, Decl(genericClasses4.ts, 0, 0)) +>B : B, Symbol(B, Decl(genericClasses4.ts, 10, 10)) >new Vec2_T(x, y) : Vec2_T ->Vec2_T : typeof Vec2_T ->x : B ->y : B +>Vec2_T : typeof Vec2_T, Symbol(Vec2_T, Decl(genericClasses4.ts, 0, 0)) +>x : B, Symbol(x, Decl(genericClasses4.ts, 11, 11)) +>y : B, Symbol(y, Decl(genericClasses4.ts, 12, 11)) return retval; ->retval : Vec2_T +>retval : Vec2_T, Symbol(retval, Decl(genericClasses4.ts, 13, 11)) } } diff --git a/tests/baselines/reference/genericClassesInModule.types b/tests/baselines/reference/genericClassesInModule.types index 8c25523803c..b7a35637ed6 100644 --- a/tests/baselines/reference/genericClassesInModule.types +++ b/tests/baselines/reference/genericClassesInModule.types @@ -1,22 +1,22 @@ === tests/cases/compiler/genericClassesInModule.ts === module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(genericClassesInModule.ts, 0, 0)) export class B{ } ->B : B ->T : T +>B : B, Symbol(B, Decl(genericClassesInModule.ts, 1, 12)) +>T : T, Symbol(T, Decl(genericClassesInModule.ts, 3, 19)) export class A { } ->A : A +>A : A, Symbol(A, Decl(genericClassesInModule.ts, 3, 24)) } var a = new Foo.B(); ->a : Foo.B +>a : Foo.B, Symbol(a, Decl(genericClassesInModule.ts, 8, 3)) >new Foo.B() : Foo.B ->Foo.B : typeof Foo.B ->Foo : typeof Foo ->B : typeof Foo.B ->Foo : unknown ->A : Foo.A +>Foo.B : typeof Foo.B, Symbol(Foo.B, Decl(genericClassesInModule.ts, 1, 12)) +>Foo : typeof Foo, Symbol(Foo, Decl(genericClassesInModule.ts, 0, 0)) +>B : typeof Foo.B, Symbol(Foo.B, Decl(genericClassesInModule.ts, 1, 12)) +>Foo : any, Symbol(Foo, Decl(genericClassesInModule.ts, 0, 0)) +>A : Foo.A, Symbol(Foo.A, Decl(genericClassesInModule.ts, 3, 24)) diff --git a/tests/baselines/reference/genericClassesInModule2.types b/tests/baselines/reference/genericClassesInModule2.types index 5da8c43097f..f01c4a4ded0 100644 --- a/tests/baselines/reference/genericClassesInModule2.types +++ b/tests/baselines/reference/genericClassesInModule2.types @@ -1,63 +1,63 @@ === tests/cases/compiler/genericClassesInModule2.ts === export class A{ ->A : A ->T1 : T1 +>A : A, Symbol(A, Decl(genericClassesInModule2.ts, 0, 0)) +>T1 : T1, Symbol(T1, Decl(genericClassesInModule2.ts, 0, 15)) constructor( public callback: (self: A) => void) { ->callback : (self: A) => void ->self : A ->A : A ->T1 : T1 +>callback : (self: A) => void, Symbol(callback, Decl(genericClassesInModule2.ts, 1, 16)) +>self : A, Symbol(self, Decl(genericClassesInModule2.ts, 1, 35)) +>A : A, Symbol(A, Decl(genericClassesInModule2.ts, 0, 0)) +>T1 : T1, Symbol(T1, Decl(genericClassesInModule2.ts, 0, 15)) var child = new B(this); ->child : B> +>child : B>, Symbol(child, Decl(genericClassesInModule2.ts, 2, 11)) >new B(this) : B> ->B : typeof B ->this : A +>B : typeof B, Symbol(B, Decl(genericClassesInModule2.ts, 13, 1)) +>this : A, Symbol(A, Decl(genericClassesInModule2.ts, 0, 0)) } AAA( callback: (self: A) => void) { ->AAA : (callback: (self: A) => void) => void ->callback : (self: A) => void ->self : A ->A : A ->T1 : T1 +>AAA : (callback: (self: A) => void) => void, Symbol(AAA, Decl(genericClassesInModule2.ts, 3, 5)) +>callback : (self: A) => void, Symbol(callback, Decl(genericClassesInModule2.ts, 4, 8)) +>self : A, Symbol(self, Decl(genericClassesInModule2.ts, 4, 20)) +>A : A, Symbol(A, Decl(genericClassesInModule2.ts, 0, 0)) +>T1 : T1, Symbol(T1, Decl(genericClassesInModule2.ts, 0, 15)) var child = new B(this); ->child : B> +>child : B>, Symbol(child, Decl(genericClassesInModule2.ts, 5, 11)) >new B(this) : B> ->B : typeof B ->this : A +>B : typeof B, Symbol(B, Decl(genericClassesInModule2.ts, 13, 1)) +>this : A, Symbol(A, Decl(genericClassesInModule2.ts, 0, 0)) } } export interface C{ ->C : C ->T1 : T1 +>C : C, Symbol(C, Decl(genericClassesInModule2.ts, 7, 1)) +>T1 : T1, Symbol(T1, Decl(genericClassesInModule2.ts, 9, 19)) child: B; ->child : B ->B : B ->T1 : T1 +>child : B, Symbol(child, Decl(genericClassesInModule2.ts, 9, 23)) +>B : B, Symbol(B, Decl(genericClassesInModule2.ts, 13, 1)) +>T1 : T1, Symbol(T1, Decl(genericClassesInModule2.ts, 9, 19)) (self: C): void; ->self : C ->C : C ->T1 : T1 +>self : C, Symbol(self, Decl(genericClassesInModule2.ts, 11, 5)) +>C : C, Symbol(C, Decl(genericClassesInModule2.ts, 7, 1)) +>T1 : T1, Symbol(T1, Decl(genericClassesInModule2.ts, 9, 19)) new(callback: (self: C) => void) ->callback : (self: C) => void ->self : C ->C : C ->T1 : T1 +>callback : (self: C) => void, Symbol(callback, Decl(genericClassesInModule2.ts, 12, 8)) +>self : C, Symbol(self, Decl(genericClassesInModule2.ts, 12, 19)) +>C : C, Symbol(C, Decl(genericClassesInModule2.ts, 7, 1)) +>T1 : T1, Symbol(T1, Decl(genericClassesInModule2.ts, 9, 19)) } export class B { ->B : B ->T2 : T2 +>B : B, Symbol(B, Decl(genericClassesInModule2.ts, 13, 1)) +>T2 : T2, Symbol(T2, Decl(genericClassesInModule2.ts, 15, 15)) constructor(public parent: T2) { } ->parent : T2 ->T2 : T2 +>parent : T2, Symbol(parent, Decl(genericClassesInModule2.ts, 16, 16)) +>T2 : T2, Symbol(T2, Decl(genericClassesInModule2.ts, 15, 15)) } diff --git a/tests/baselines/reference/genericCloduleInModule.types b/tests/baselines/reference/genericCloduleInModule.types index 108dc34c2f7..96ee1b3fa0b 100644 --- a/tests/baselines/reference/genericCloduleInModule.types +++ b/tests/baselines/reference/genericCloduleInModule.types @@ -1,33 +1,34 @@ === tests/cases/compiler/genericCloduleInModule.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(genericCloduleInModule.ts, 0, 0)) export class B { ->B : B ->T : T +>B : B, Symbol(B, Decl(genericCloduleInModule.ts, 0, 10), Decl(genericCloduleInModule.ts, 4, 5)) +>T : T, Symbol(T, Decl(genericCloduleInModule.ts, 1, 19)) foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(genericCloduleInModule.ts, 1, 23)) static bar() { } ->bar : () => void +>bar : () => void, Symbol(B.bar, Decl(genericCloduleInModule.ts, 2, 17)) } export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(genericCloduleInModule.ts, 0, 10), Decl(genericCloduleInModule.ts, 4, 5)) export var x = 1; ->x : number +>x : number, Symbol(x, Decl(genericCloduleInModule.ts, 6, 18)) +>1 : number } } var b: A.B; ->b : A.B ->A : unknown ->B : A.B +>b : A.B, Symbol(b, Decl(genericCloduleInModule.ts, 10, 3)) +>A : any, Symbol(A, Decl(genericCloduleInModule.ts, 0, 0)) +>B : A.B, Symbol(A.B, Decl(genericCloduleInModule.ts, 0, 10), Decl(genericCloduleInModule.ts, 4, 5)) b.foo(); >b.foo() : void ->b.foo : () => void ->b : A.B ->foo : () => void +>b.foo : () => void, Symbol(A.B.foo, Decl(genericCloduleInModule.ts, 1, 23)) +>b : A.B, Symbol(b, Decl(genericCloduleInModule.ts, 10, 3)) +>foo : () => void, Symbol(A.B.foo, Decl(genericCloduleInModule.ts, 1, 23)) diff --git a/tests/baselines/reference/genericConstraintDeclaration.types b/tests/baselines/reference/genericConstraintDeclaration.types index 126da138d4e..9e4f785bd75 100644 --- a/tests/baselines/reference/genericConstraintDeclaration.types +++ b/tests/baselines/reference/genericConstraintDeclaration.types @@ -1,13 +1,14 @@ === tests/cases/compiler/genericConstraintDeclaration.ts === class List{ ->List : List ->T : T +>List : List, Symbol(List, Decl(genericConstraintDeclaration.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericConstraintDeclaration.ts, 0, 11)) static empty(): List{return null;} ->empty : () => List ->T : T ->List : List ->T : T +>empty : () => List, Symbol(List.empty, Decl(genericConstraintDeclaration.ts, 0, 25)) +>T : T, Symbol(T, Decl(genericConstraintDeclaration.ts, 1, 17)) +>List : List, Symbol(List, Decl(genericConstraintDeclaration.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericConstraintDeclaration.ts, 1, 17)) +>null : null } diff --git a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.types b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.types index eadf43d226a..8e9e52c0889 100644 --- a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.types +++ b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.types @@ -1,66 +1,67 @@ === tests/cases/compiler/genericConstraintOnExtendedBuiltinTypes.ts === declare module EndGate { ->EndGate : typeof EndGate +>EndGate : typeof EndGate, Symbol(EndGate, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 0, 0), Decl(genericConstraintOnExtendedBuiltinTypes.ts, 6, 47), Decl(genericConstraintOnExtendedBuiltinTypes.ts, 17, 1)) export interface ICloneable { ->ICloneable : ICloneable +>ICloneable : ICloneable, Symbol(ICloneable, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 0, 24)) Clone(): any; ->Clone : () => any +>Clone : () => any, Symbol(Clone, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 1, 33)) } } interface Number extends EndGate.ICloneable { } ->Number : Number ->EndGate : typeof EndGate ->ICloneable : EndGate.ICloneable +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11), Decl(genericConstraintOnExtendedBuiltinTypes.ts, 4, 1)) +>EndGate.ICloneable : any, Symbol(EndGate.ICloneable, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 0, 24)) +>EndGate : typeof EndGate, Symbol(EndGate, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 0, 0), Decl(genericConstraintOnExtendedBuiltinTypes.ts, 6, 47), Decl(genericConstraintOnExtendedBuiltinTypes.ts, 17, 1)) +>ICloneable : EndGate.ICloneable, Symbol(EndGate.ICloneable, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 0, 24)) module EndGate.Tweening { ->EndGate : typeof EndGate ->Tweening : typeof Tweening +>EndGate : typeof EndGate, Symbol(EndGate, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 0, 0), Decl(genericConstraintOnExtendedBuiltinTypes.ts, 6, 47), Decl(genericConstraintOnExtendedBuiltinTypes.ts, 17, 1)) +>Tweening : typeof Tweening, Symbol(Tweening, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 8, 15), Decl(genericConstraintOnExtendedBuiltinTypes.ts, 19, 15)) export class Tween{ ->Tween : Tween ->T : T ->ICloneable : ICloneable +>Tween : Tween, Symbol(Tween, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 8, 25)) +>T : T, Symbol(T, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 9, 23)) +>ICloneable : ICloneable, Symbol(ICloneable, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 0, 24)) private _from: T; ->_from : T ->T : T +>_from : T, Symbol(_from, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 9, 45)) +>T : T, Symbol(T, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 9, 23)) constructor(from: T) { ->from : T ->T : T +>from : T, Symbol(from, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 13, 20)) +>T : T, Symbol(T, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 9, 23)) this._from = from.Clone(); >this._from = from.Clone() : any ->this._from : T ->this : Tween ->_from : T +>this._from : T, Symbol(_from, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 9, 45)) +>this : Tween, Symbol(Tween, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 8, 25)) +>_from : T, Symbol(_from, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 9, 45)) >from.Clone() : any ->from.Clone : () => any ->from : T ->Clone : () => any +>from.Clone : () => any, Symbol(ICloneable.Clone, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 1, 33)) +>from : T, Symbol(from, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 13, 20)) +>Clone : () => any, Symbol(ICloneable.Clone, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 1, 33)) } } } module EndGate.Tweening { ->EndGate : typeof EndGate ->Tweening : typeof Tweening +>EndGate : typeof EndGate, Symbol(EndGate, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 0, 0), Decl(genericConstraintOnExtendedBuiltinTypes.ts, 6, 47), Decl(genericConstraintOnExtendedBuiltinTypes.ts, 17, 1)) +>Tweening : typeof Tweening, Symbol(Tweening, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 8, 15), Decl(genericConstraintOnExtendedBuiltinTypes.ts, 19, 15)) export class NumberTween extends Tween{ ->NumberTween : NumberTween ->Tween : Tween +>NumberTween : NumberTween, Symbol(NumberTween, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 19, 25)) +>Tween : Tween, Symbol(Tween, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 8, 25)) constructor(from: number) { ->from : number +>from : number, Symbol(from, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 21, 20)) super(from); >super(from) : void ->super : typeof Tween ->from : number +>super : typeof Tween, Symbol(Tween, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 8, 25)) +>from : number, Symbol(from, Decl(genericConstraintOnExtendedBuiltinTypes.ts, 21, 20)) } } } diff --git a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.types b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.types index 80e1a963d5f..9c4bfbaa411 100644 --- a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.types +++ b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.types @@ -1,66 +1,67 @@ === tests/cases/compiler/genericConstraintOnExtendedBuiltinTypes2.ts === module EndGate { ->EndGate : typeof EndGate +>EndGate : typeof EndGate, Symbol(EndGate, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 0, 0), Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 6, 47), Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 16, 1)) export interface ICloneable { ->ICloneable : ICloneable +>ICloneable : ICloneable, Symbol(ICloneable, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 0, 16)) Clone(): any; ->Clone : () => any +>Clone : () => any, Symbol(Clone, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 1, 33)) } } interface Number extends EndGate.ICloneable { } ->Number : Number ->EndGate : typeof EndGate ->ICloneable : EndGate.ICloneable +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11), Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 4, 1)) +>EndGate.ICloneable : any, Symbol(EndGate.ICloneable, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 0, 16)) +>EndGate : typeof EndGate, Symbol(EndGate, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 0, 0), Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 6, 47), Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 16, 1)) +>ICloneable : EndGate.ICloneable, Symbol(EndGate.ICloneable, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 0, 16)) module EndGate.Tweening { ->EndGate : typeof EndGate ->Tweening : typeof Tweening +>EndGate : typeof EndGate, Symbol(EndGate, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 0, 0), Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 6, 47), Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 16, 1)) +>Tweening : typeof Tweening, Symbol(Tweening, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 8, 15), Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 18, 15)) export class Tween{ ->Tween : Tween ->T : T ->ICloneable : ICloneable +>Tween : Tween, Symbol(Tween, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 8, 25)) +>T : T, Symbol(T, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 9, 23)) +>ICloneable : ICloneable, Symbol(ICloneable, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 0, 16)) private _from: T; ->_from : T ->T : T +>_from : T, Symbol(_from, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 9, 45)) +>T : T, Symbol(T, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 9, 23)) constructor(from: T) { ->from : T ->T : T +>from : T, Symbol(from, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 12, 20)) +>T : T, Symbol(T, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 9, 23)) this._from = from.Clone(); >this._from = from.Clone() : any ->this._from : T ->this : Tween ->_from : T +>this._from : T, Symbol(_from, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 9, 45)) +>this : Tween, Symbol(Tween, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 8, 25)) +>_from : T, Symbol(_from, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 9, 45)) >from.Clone() : any ->from.Clone : () => any ->from : T ->Clone : () => any +>from.Clone : () => any, Symbol(ICloneable.Clone, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 1, 33)) +>from : T, Symbol(from, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 12, 20)) +>Clone : () => any, Symbol(ICloneable.Clone, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 1, 33)) } } } module EndGate.Tweening { ->EndGate : typeof EndGate ->Tweening : typeof Tweening +>EndGate : typeof EndGate, Symbol(EndGate, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 0, 0), Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 6, 47), Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 16, 1)) +>Tweening : typeof Tweening, Symbol(Tweening, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 8, 15), Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 18, 15)) export class NumberTween extends Tween{ ->NumberTween : NumberTween ->Tween : Tween ->Number : Number +>NumberTween : NumberTween, Symbol(NumberTween, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 18, 25)) +>Tween : Tween, Symbol(Tween, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 8, 25)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11), Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 4, 1)) constructor(from: number) { ->from : number +>from : number, Symbol(from, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 20, 20)) super(from); >super(from) : void ->super : typeof Tween ->from : number +>super : typeof Tween, Symbol(Tween, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 8, 25)) +>from : number, Symbol(from, Decl(genericConstraintOnExtendedBuiltinTypes2.ts, 20, 20)) } } } diff --git a/tests/baselines/reference/genericConstructSignatureInInterface.types b/tests/baselines/reference/genericConstructSignatureInInterface.types index 5318edb5bf1..4d07c96f749 100644 --- a/tests/baselines/reference/genericConstructSignatureInInterface.types +++ b/tests/baselines/reference/genericConstructSignatureInInterface.types @@ -1,19 +1,20 @@ === tests/cases/compiler/genericConstructSignatureInInterface.ts === interface C { ->C : C +>C : C, Symbol(C, Decl(genericConstructSignatureInInterface.ts, 0, 0)) new (x: T); ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(genericConstructSignatureInInterface.ts, 1, 9)) +>x : T, Symbol(x, Decl(genericConstructSignatureInInterface.ts, 1, 12)) +>T : T, Symbol(T, Decl(genericConstructSignatureInInterface.ts, 1, 9)) } var v: C; ->v : C ->C : C +>v : C, Symbol(v, Decl(genericConstructSignatureInInterface.ts, 4, 3)) +>C : C, Symbol(C, Decl(genericConstructSignatureInInterface.ts, 0, 0)) var r = new v(1); ->r : any +>r : any, Symbol(r, Decl(genericConstructSignatureInInterface.ts, 5, 3)) >new v(1) : any ->v : C +>v : C, Symbol(v, Decl(genericConstructSignatureInInterface.ts, 4, 3)) +>1 : number diff --git a/tests/baselines/reference/genericContextualTypingSpecialization.types b/tests/baselines/reference/genericContextualTypingSpecialization.types index 890da96c260..bbd674d3b9d 100644 --- a/tests/baselines/reference/genericContextualTypingSpecialization.types +++ b/tests/baselines/reference/genericContextualTypingSpecialization.types @@ -1,16 +1,17 @@ === tests/cases/compiler/genericContextualTypingSpecialization.ts === var b: number[]; ->b : number[] +>b : number[], Symbol(b, Decl(genericContextualTypingSpecialization.ts, 0, 3)) b.reduce((c, d) => c + d, 0); // should not error on '+' >b.reduce((c, d) => c + d, 0) : number ->b.reduce : { (callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number, initialValue?: number): number; (callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: number[]) => U, initialValue: U): U; } ->b : number[] ->reduce : { (callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number, initialValue?: number): number; (callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: number[]) => U, initialValue: U): U; } +>b.reduce : { (callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number, initialValue?: number): number; (callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: number[]) => U, initialValue: U): U; }, Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120)) +>b : number[], Symbol(b, Decl(genericContextualTypingSpecialization.ts, 0, 3)) +>reduce : { (callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number, initialValue?: number): number; (callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: number[]) => U, initialValue: U): U; }, Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120)) >(c, d) => c + d : (c: number, d: number) => number ->c : number ->d : number +>c : number, Symbol(c, Decl(genericContextualTypingSpecialization.ts, 1, 18)) +>d : number, Symbol(d, Decl(genericContextualTypingSpecialization.ts, 1, 20)) >c + d : number ->c : number ->d : number +>c : number, Symbol(c, Decl(genericContextualTypingSpecialization.ts, 1, 18)) +>d : number, Symbol(d, Decl(genericContextualTypingSpecialization.ts, 1, 20)) +>0 : number diff --git a/tests/baselines/reference/genericFunctionHasFreshTypeArgs.types b/tests/baselines/reference/genericFunctionHasFreshTypeArgs.types index 3a3afebb9ac..d99e8655265 100644 --- a/tests/baselines/reference/genericFunctionHasFreshTypeArgs.types +++ b/tests/baselines/reference/genericFunctionHasFreshTypeArgs.types @@ -1,21 +1,21 @@ === tests/cases/compiler/genericFunctionHasFreshTypeArgs.ts === function f(p: (x: T) => void) { }; ->f : (p: (x: T) => void) => void ->p : (x: T) => void ->T : T ->x : T ->T : T +>f : (p: (x: T) => void) => void, Symbol(f, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 0)) +>p : (x: T) => void, Symbol(p, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 11)) +>T : T, Symbol(T, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 15)) +>x : T, Symbol(x, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 18)) +>T : T, Symbol(T, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 15)) f(x => f(y => x = y)); >f(x => f(y => x = y)) : void ->f : (p: (x: T) => void) => void +>f : (p: (x: T) => void) => void, Symbol(f, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 0)) >x => f(y => x = y) : (x: any) => void ->x : any +>x : any, Symbol(x, Decl(genericFunctionHasFreshTypeArgs.ts, 1, 2)) >f(y => x = y) : void ->f : (p: (x: T) => void) => void +>f : (p: (x: T) => void) => void, Symbol(f, Decl(genericFunctionHasFreshTypeArgs.ts, 0, 0)) >y => x = y : (y: any) => any ->y : any +>y : any, Symbol(y, Decl(genericFunctionHasFreshTypeArgs.ts, 1, 9)) >x = y : any ->x : any ->y : any +>x : any, Symbol(x, Decl(genericFunctionHasFreshTypeArgs.ts, 1, 2)) +>y : any, Symbol(y, Decl(genericFunctionHasFreshTypeArgs.ts, 1, 9)) diff --git a/tests/baselines/reference/genericFunctionSpecializations1.types b/tests/baselines/reference/genericFunctionSpecializations1.types index 60819c786b8..a5400b2d6bb 100644 --- a/tests/baselines/reference/genericFunctionSpecializations1.types +++ b/tests/baselines/reference/genericFunctionSpecializations1.types @@ -1,24 +1,24 @@ === tests/cases/compiler/genericFunctionSpecializations1.ts === function foo3(test: string); // error ->foo3 : (test: string) => any ->T : T ->test : string +>foo3 : (test: string) => any, Symbol(foo3, Decl(genericFunctionSpecializations1.ts, 0, 0), Decl(genericFunctionSpecializations1.ts, 0, 31)) +>T : T, Symbol(T, Decl(genericFunctionSpecializations1.ts, 0, 14)) +>test : string, Symbol(test, Decl(genericFunctionSpecializations1.ts, 0, 17)) function foo3(test: T) { } ->foo3 : (test: string) => any ->T : T ->test : T ->T : T +>foo3 : (test: string) => any, Symbol(foo3, Decl(genericFunctionSpecializations1.ts, 0, 0), Decl(genericFunctionSpecializations1.ts, 0, 31)) +>T : T, Symbol(T, Decl(genericFunctionSpecializations1.ts, 1, 14)) +>test : T, Symbol(test, Decl(genericFunctionSpecializations1.ts, 1, 17)) +>T : T, Symbol(T, Decl(genericFunctionSpecializations1.ts, 1, 14)) function foo4(test: string); // valid ->foo4 : (test: string) => any ->T : T ->test : string +>foo4 : (test: string) => any, Symbol(foo4, Decl(genericFunctionSpecializations1.ts, 1, 29), Decl(genericFunctionSpecializations1.ts, 3, 31)) +>T : T, Symbol(T, Decl(genericFunctionSpecializations1.ts, 3, 14)) +>test : string, Symbol(test, Decl(genericFunctionSpecializations1.ts, 3, 17)) function foo4(test: T) { } ->foo4 : (test: string) => any ->T : T ->String : String ->test : T ->T : T +>foo4 : (test: string) => any, Symbol(foo4, Decl(genericFunctionSpecializations1.ts, 1, 29), Decl(genericFunctionSpecializations1.ts, 3, 31)) +>T : T, Symbol(T, Decl(genericFunctionSpecializations1.ts, 4, 14)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) +>test : T, Symbol(test, Decl(genericFunctionSpecializations1.ts, 4, 32)) +>T : T, Symbol(T, Decl(genericFunctionSpecializations1.ts, 4, 14)) diff --git a/tests/baselines/reference/genericFunctions0.types b/tests/baselines/reference/genericFunctions0.types index 045224a7aaa..5fbf310a634 100644 --- a/tests/baselines/reference/genericFunctions0.types +++ b/tests/baselines/reference/genericFunctions0.types @@ -1,13 +1,14 @@ === tests/cases/compiler/genericFunctions0.ts === function foo (x: T) { return x; } ->foo : (x: T) => T ->T : T ->x : T ->T : T ->x : T +>foo : (x: T) => T, Symbol(foo, Decl(genericFunctions0.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericFunctions0.ts, 0, 13)) +>x : T, Symbol(x, Decl(genericFunctions0.ts, 0, 18)) +>T : T, Symbol(T, Decl(genericFunctions0.ts, 0, 13)) +>x : T, Symbol(x, Decl(genericFunctions0.ts, 0, 18)) var x = foo(5); // 'x' should be number ->x : number +>x : number, Symbol(x, Decl(genericFunctions0.ts, 2, 3)) >foo(5) : number ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(genericFunctions0.ts, 0, 0)) +>5 : number diff --git a/tests/baselines/reference/genericFunctions1.types b/tests/baselines/reference/genericFunctions1.types index aed264c78e1..457d598f571 100644 --- a/tests/baselines/reference/genericFunctions1.types +++ b/tests/baselines/reference/genericFunctions1.types @@ -1,13 +1,14 @@ === tests/cases/compiler/genericFunctions1.ts === function foo (x: T) { return x; } ->foo : (x: T) => T ->T : T ->x : T ->T : T ->x : T +>foo : (x: T) => T, Symbol(foo, Decl(genericFunctions1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericFunctions1.ts, 0, 13)) +>x : T, Symbol(x, Decl(genericFunctions1.ts, 0, 18)) +>T : T, Symbol(T, Decl(genericFunctions1.ts, 0, 13)) +>x : T, Symbol(x, Decl(genericFunctions1.ts, 0, 18)) var x = foo(5); // 'x' should be number ->x : number +>x : number, Symbol(x, Decl(genericFunctions1.ts, 2, 3)) >foo(5) : number ->foo : (x: T) => T +>foo : (x: T) => T, Symbol(foo, Decl(genericFunctions1.ts, 0, 0)) +>5 : number diff --git a/tests/baselines/reference/genericFunctions2.types b/tests/baselines/reference/genericFunctions2.types index 96e757d3d9e..4eacc08c983 100644 --- a/tests/baselines/reference/genericFunctions2.types +++ b/tests/baselines/reference/genericFunctions2.types @@ -1,28 +1,28 @@ === tests/cases/compiler/genericFunctions2.ts === declare function map (items: T[], f: (x: T) => U): U[]; ->map : (items: T[], f: (x: T) => U) => U[] ->T : T ->U : U ->items : T[] ->T : T ->f : (x: T) => U ->x : T ->T : T ->U : U ->U : U +>map : (items: T[], f: (x: T) => U) => U[], Symbol(map, Decl(genericFunctions2.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericFunctions2.ts, 0, 22)) +>U : U, Symbol(U, Decl(genericFunctions2.ts, 0, 24)) +>items : T[], Symbol(items, Decl(genericFunctions2.ts, 0, 30)) +>T : T, Symbol(T, Decl(genericFunctions2.ts, 0, 22)) +>f : (x: T) => U, Symbol(f, Decl(genericFunctions2.ts, 0, 41)) +>x : T, Symbol(x, Decl(genericFunctions2.ts, 0, 46)) +>T : T, Symbol(T, Decl(genericFunctions2.ts, 0, 22)) +>U : U, Symbol(U, Decl(genericFunctions2.ts, 0, 24)) +>U : U, Symbol(U, Decl(genericFunctions2.ts, 0, 24)) var myItems: string[]; ->myItems : string[] +>myItems : string[], Symbol(myItems, Decl(genericFunctions2.ts, 2, 3)) var lengths = map(myItems, x => x.length); ->lengths : number[] +>lengths : number[], Symbol(lengths, Decl(genericFunctions2.ts, 3, 3)) >map(myItems, x => x.length) : number[] ->map : (items: T[], f: (x: T) => U) => U[] ->myItems : string[] +>map : (items: T[], f: (x: T) => U) => U[], Symbol(map, Decl(genericFunctions2.ts, 0, 0)) +>myItems : string[], Symbol(myItems, Decl(genericFunctions2.ts, 2, 3)) >x => x.length : (x: string) => number ->x : string ->x.length : number ->x : string ->length : number +>x : string, Symbol(x, Decl(genericFunctions2.ts, 3, 26)) +>x.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>x : string, Symbol(x, Decl(genericFunctions2.ts, 3, 26)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) diff --git a/tests/baselines/reference/genericFunctions3.types b/tests/baselines/reference/genericFunctions3.types index 2215e30adcf..c49edd97910 100644 --- a/tests/baselines/reference/genericFunctions3.types +++ b/tests/baselines/reference/genericFunctions3.types @@ -1,30 +1,30 @@ === tests/cases/compiler/genericFunctions3.ts === interface Query { ->Query : Query ->T : T +>Query : Query, Symbol(Query, Decl(genericFunctions3.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericFunctions3.ts, 0, 16)) foo(x: string): Query; ->foo : (x: string) => Query ->x : string ->Query : Query ->T : T +>foo : (x: string) => Query, Symbol(foo, Decl(genericFunctions3.ts, 0, 20)) +>x : string, Symbol(x, Decl(genericFunctions3.ts, 1, 8)) +>Query : Query, Symbol(Query, Decl(genericFunctions3.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericFunctions3.ts, 0, 16)) } function from(arg: boolean): Query; // was Error: Overload signature is not compatible with function definition. ->from : (arg: boolean) => Query ->T : T ->arg : boolean ->Query : Query ->T : T +>from : (arg: boolean) => Query, Symbol(from, Decl(genericFunctions3.ts, 2, 1), Decl(genericFunctions3.ts, 4, 41)) +>T : T, Symbol(T, Decl(genericFunctions3.ts, 4, 14)) +>arg : boolean, Symbol(arg, Decl(genericFunctions3.ts, 4, 17)) +>Query : Query, Symbol(Query, Decl(genericFunctions3.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericFunctions3.ts, 4, 14)) function from(arg: any): Query { ->from : (arg: boolean) => Query ->T : T ->arg : any ->Query : Query ->T : T +>from : (arg: boolean) => Query, Symbol(from, Decl(genericFunctions3.ts, 2, 1), Decl(genericFunctions3.ts, 4, 41)) +>T : T, Symbol(T, Decl(genericFunctions3.ts, 5, 14)) +>arg : any, Symbol(arg, Decl(genericFunctions3.ts, 5, 17)) +>Query : Query, Symbol(Query, Decl(genericFunctions3.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericFunctions3.ts, 5, 14)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } diff --git a/tests/baselines/reference/genericFunctionsWithOptionalParameters1.types b/tests/baselines/reference/genericFunctionsWithOptionalParameters1.types index 74b8b5e6858..0e50534a48d 100644 --- a/tests/baselines/reference/genericFunctionsWithOptionalParameters1.types +++ b/tests/baselines/reference/genericFunctionsWithOptionalParameters1.types @@ -1,50 +1,56 @@ === tests/cases/compiler/genericFunctionsWithOptionalParameters1.ts === interface Utils { ->Utils : Utils +>Utils : Utils, Symbol(Utils, Decl(genericFunctionsWithOptionalParameters1.ts, 0, 0)) fold(c?: Array, folder?: (s: S, t: T) => T, init?: S): T; ->fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T ->T : T ->S : S ->c : T[] ->Array : T[] ->T : T ->folder : (s: S, t: T) => T ->s : S ->S : S ->t : T ->T : T ->T : T ->init : S ->S : S ->T : T +>fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T, Symbol(fold, Decl(genericFunctionsWithOptionalParameters1.ts, 0, 17)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 8)) +>S : S, Symbol(S, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 10)) +>c : T[], Symbol(c, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 14)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 8)) +>folder : (s: S, t: T) => T, Symbol(folder, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 27)) +>s : S, Symbol(s, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 38)) +>S : S, Symbol(S, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 10)) +>t : T, Symbol(t, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 43)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 8)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 8)) +>init : S, Symbol(init, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 55)) +>S : S, Symbol(S, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 10)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters1.ts, 1, 8)) } var utils: Utils; ->utils : Utils ->Utils : Utils +>utils : Utils, Symbol(utils, Decl(genericFunctionsWithOptionalParameters1.ts, 4, 3)) +>Utils : Utils, Symbol(Utils, Decl(genericFunctionsWithOptionalParameters1.ts, 0, 0)) utils.fold(); // no error >utils.fold() : {} ->utils.fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T ->utils : Utils ->fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T +>utils.fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T, Symbol(Utils.fold, Decl(genericFunctionsWithOptionalParameters1.ts, 0, 17)) +>utils : Utils, Symbol(utils, Decl(genericFunctionsWithOptionalParameters1.ts, 4, 3)) +>fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T, Symbol(Utils.fold, Decl(genericFunctionsWithOptionalParameters1.ts, 0, 17)) utils.fold(null); // no error >utils.fold(null) : {} ->utils.fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T ->utils : Utils ->fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T +>utils.fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T, Symbol(Utils.fold, Decl(genericFunctionsWithOptionalParameters1.ts, 0, 17)) +>utils : Utils, Symbol(utils, Decl(genericFunctionsWithOptionalParameters1.ts, 4, 3)) +>fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T, Symbol(Utils.fold, Decl(genericFunctionsWithOptionalParameters1.ts, 0, 17)) +>null : null utils.fold(null, null); // no error >utils.fold(null, null) : {} ->utils.fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T ->utils : Utils ->fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T +>utils.fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T, Symbol(Utils.fold, Decl(genericFunctionsWithOptionalParameters1.ts, 0, 17)) +>utils : Utils, Symbol(utils, Decl(genericFunctionsWithOptionalParameters1.ts, 4, 3)) +>fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T, Symbol(Utils.fold, Decl(genericFunctionsWithOptionalParameters1.ts, 0, 17)) +>null : null +>null : null utils.fold(null, null, null); // no error >utils.fold(null, null, null) : {} ->utils.fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T ->utils : Utils ->fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T +>utils.fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T, Symbol(Utils.fold, Decl(genericFunctionsWithOptionalParameters1.ts, 0, 17)) +>utils : Utils, Symbol(utils, Decl(genericFunctionsWithOptionalParameters1.ts, 4, 3)) +>fold : (c?: T[], folder?: (s: S, t: T) => T, init?: S) => T, Symbol(Utils.fold, Decl(genericFunctionsWithOptionalParameters1.ts, 0, 17)) +>null : null +>null : null +>null : null diff --git a/tests/baselines/reference/genericFunctionsWithOptionalParameters3.types b/tests/baselines/reference/genericFunctionsWithOptionalParameters3.types index fbb4780274f..eea3f345a9f 100644 --- a/tests/baselines/reference/genericFunctionsWithOptionalParameters3.types +++ b/tests/baselines/reference/genericFunctionsWithOptionalParameters3.types @@ -1,108 +1,111 @@ === tests/cases/compiler/genericFunctionsWithOptionalParameters3.ts === class Collection { ->Collection : Collection ->T : T +>Collection : Collection, Symbol(Collection, Decl(genericFunctionsWithOptionalParameters3.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters3.ts, 0, 17)) public add(x: T) { } ->add : (x: T) => void ->x : T ->T : T +>add : (x: T) => void, Symbol(add, Decl(genericFunctionsWithOptionalParameters3.ts, 0, 21)) +>x : T, Symbol(x, Decl(genericFunctionsWithOptionalParameters3.ts, 1, 15)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters3.ts, 0, 17)) } interface Utils { ->Utils : Utils +>Utils : Utils, Symbol(Utils, Decl(genericFunctionsWithOptionalParameters3.ts, 2, 1)) fold(c?: Collection, folder?: (s: S, t: T) => T, init?: S): T; ->fold : (c?: Collection, folder?: (s: S, t: T) => T, init?: S) => T ->T : T ->S : S ->c : Collection ->Collection : Collection ->T : T ->folder : (s: S, t: T) => T ->s : S ->S : S ->t : T ->T : T ->T : T ->init : S ->S : S ->T : T +>fold : (c?: Collection, folder?: (s: S, t: T) => T, init?: S) => T, Symbol(fold, Decl(genericFunctionsWithOptionalParameters3.ts, 3, 17)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 9)) +>S : S, Symbol(S, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 11)) +>c : Collection, Symbol(c, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 15)) +>Collection : Collection, Symbol(Collection, Decl(genericFunctionsWithOptionalParameters3.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 9)) +>folder : (s: S, t: T) => T, Symbol(folder, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 33)) +>s : S, Symbol(s, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 44)) +>S : S, Symbol(S, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 11)) +>t : T, Symbol(t, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 49)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 9)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 9)) +>init : S, Symbol(init, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 61)) +>S : S, Symbol(S, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 11)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 9)) mapReduce(c: Collection, mapper: (x: T) => U, reducer: (y: U) => V): Collection; ->mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection ->T : T ->U : U ->V : V ->c : Collection ->Collection : Collection ->T : T ->mapper : (x: T) => U ->x : T ->T : T ->U : U ->reducer : (y: U) => V ->y : U ->U : U ->V : V ->Collection : Collection ->V : V +>mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection, Symbol(mapReduce, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 75)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 14)) +>U : U, Symbol(U, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 16)) +>V : V, Symbol(V, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 19)) +>c : Collection, Symbol(c, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 23)) +>Collection : Collection, Symbol(Collection, Decl(genericFunctionsWithOptionalParameters3.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 14)) +>mapper : (x: T) => U, Symbol(mapper, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 40)) +>x : T, Symbol(x, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 50)) +>T : T, Symbol(T, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 14)) +>U : U, Symbol(U, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 16)) +>reducer : (y: U) => V, Symbol(reducer, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 61)) +>y : U, Symbol(y, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 72)) +>U : U, Symbol(U, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 16)) +>V : V, Symbol(V, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 19)) +>Collection : Collection, Symbol(Collection, Decl(genericFunctionsWithOptionalParameters3.ts, 0, 0)) +>V : V, Symbol(V, Decl(genericFunctionsWithOptionalParameters3.ts, 5, 19)) } var utils: Utils; ->utils : Utils ->Utils : Utils +>utils : Utils, Symbol(utils, Decl(genericFunctionsWithOptionalParameters3.ts, 7, 3)) +>Utils : Utils, Symbol(Utils, Decl(genericFunctionsWithOptionalParameters3.ts, 2, 1)) var c = new Collection(); ->c : Collection +>c : Collection, Symbol(c, Decl(genericFunctionsWithOptionalParameters3.ts, 8, 3)) >new Collection() : Collection ->Collection : typeof Collection +>Collection : typeof Collection, Symbol(Collection, Decl(genericFunctionsWithOptionalParameters3.ts, 0, 0)) var r3 = utils.mapReduce(c, (x) => { return 1 }, (y) => { return new Date() }); ->r3 : Collection +>r3 : Collection, Symbol(r3, Decl(genericFunctionsWithOptionalParameters3.ts, 9, 3)) >utils.mapReduce(c, (x) => { return 1 }, (y) => { return new Date() }) : Collection ->utils.mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection ->utils : Utils ->mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection ->c : Collection +>utils.mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection, Symbol(Utils.mapReduce, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 75)) +>utils : Utils, Symbol(utils, Decl(genericFunctionsWithOptionalParameters3.ts, 7, 3)) +>mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection, Symbol(Utils.mapReduce, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 75)) +>c : Collection, Symbol(c, Decl(genericFunctionsWithOptionalParameters3.ts, 8, 3)) >(x) => { return 1 } : (x: string) => number ->x : string +>x : string, Symbol(x, Decl(genericFunctionsWithOptionalParameters3.ts, 9, 29)) +>1 : number >(y) => { return new Date() } : (y: number) => Date ->y : number +>y : number, Symbol(y, Decl(genericFunctionsWithOptionalParameters3.ts, 9, 50)) >new Date() : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var r4 = utils.mapReduce(c, (x: string) => { return 1 }, (y: number) => { return new Date() }); ->r4 : Collection +>r4 : Collection, Symbol(r4, Decl(genericFunctionsWithOptionalParameters3.ts, 10, 3)) >utils.mapReduce(c, (x: string) => { return 1 }, (y: number) => { return new Date() }) : Collection ->utils.mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection ->utils : Utils ->mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection ->c : Collection +>utils.mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection, Symbol(Utils.mapReduce, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 75)) +>utils : Utils, Symbol(utils, Decl(genericFunctionsWithOptionalParameters3.ts, 7, 3)) +>mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection, Symbol(Utils.mapReduce, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 75)) +>c : Collection, Symbol(c, Decl(genericFunctionsWithOptionalParameters3.ts, 8, 3)) >(x: string) => { return 1 } : (x: string) => number ->x : string +>x : string, Symbol(x, Decl(genericFunctionsWithOptionalParameters3.ts, 10, 29)) +>1 : number >(y: number) => { return new Date() } : (y: number) => Date ->y : number +>y : number, Symbol(y, Decl(genericFunctionsWithOptionalParameters3.ts, 10, 58)) >new Date() : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var f1 = (x: string) => { return 1 }; ->f1 : (x: string) => number +>f1 : (x: string) => number, Symbol(f1, Decl(genericFunctionsWithOptionalParameters3.ts, 11, 3)) >(x: string) => { return 1 } : (x: string) => number ->x : string +>x : string, Symbol(x, Decl(genericFunctionsWithOptionalParameters3.ts, 11, 10)) +>1 : number var f2 = (y: number) => { return new Date() }; ->f2 : (y: number) => Date +>f2 : (y: number) => Date, Symbol(f2, Decl(genericFunctionsWithOptionalParameters3.ts, 12, 3)) >(y: number) => { return new Date() } : (y: number) => Date ->y : number +>y : number, Symbol(y, Decl(genericFunctionsWithOptionalParameters3.ts, 12, 10)) >new Date() : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var r5 = utils.mapReduce(c, f1, f2); ->r5 : Collection +>r5 : Collection, Symbol(r5, Decl(genericFunctionsWithOptionalParameters3.ts, 13, 3)) >utils.mapReduce(c, f1, f2) : Collection ->utils.mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection ->utils : Utils ->mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection ->c : Collection ->f1 : (x: string) => number ->f2 : (y: number) => Date +>utils.mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection, Symbol(Utils.mapReduce, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 75)) +>utils : Utils, Symbol(utils, Decl(genericFunctionsWithOptionalParameters3.ts, 7, 3)) +>mapReduce : (c: Collection, mapper: (x: T) => U, reducer: (y: U) => V) => Collection, Symbol(Utils.mapReduce, Decl(genericFunctionsWithOptionalParameters3.ts, 4, 75)) +>c : Collection, Symbol(c, Decl(genericFunctionsWithOptionalParameters3.ts, 8, 3)) +>f1 : (x: string) => number, Symbol(f1, Decl(genericFunctionsWithOptionalParameters3.ts, 11, 3)) +>f2 : (y: number) => Date, Symbol(f2, Decl(genericFunctionsWithOptionalParameters3.ts, 12, 3)) diff --git a/tests/baselines/reference/genericImplements.types b/tests/baselines/reference/genericImplements.types index e96e46c81cb..556532678f6 100644 --- a/tests/baselines/reference/genericImplements.types +++ b/tests/baselines/reference/genericImplements.types @@ -1,60 +1,60 @@ === tests/cases/compiler/genericImplements.ts === class A { a; }; ->A : A ->a : any +>A : A, Symbol(A, Decl(genericImplements.ts, 0, 0)) +>a : any, Symbol(a, Decl(genericImplements.ts, 0, 9)) class B { b; }; ->B : B ->b : any +>B : B, Symbol(B, Decl(genericImplements.ts, 0, 15)) +>b : any, Symbol(b, Decl(genericImplements.ts, 1, 9)) interface I { ->I : I +>I : I, Symbol(I, Decl(genericImplements.ts, 1, 15)) f(): T; ->f : () => T ->T : T ->A : A ->T : T +>f : () => T, Symbol(f, Decl(genericImplements.ts, 2, 13)) +>T : T, Symbol(T, Decl(genericImplements.ts, 3, 6)) +>A : A, Symbol(A, Decl(genericImplements.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericImplements.ts, 3, 6)) } // { f: () => { a; } } // OK class X implements I { ->X : X ->I : I +>X : X, Symbol(X, Decl(genericImplements.ts, 4, 1)) +>I : I, Symbol(I, Decl(genericImplements.ts, 1, 15)) f(): T { return undefined; } ->f : () => T ->T : T ->B : B ->T : T ->undefined : undefined +>f : () => T, Symbol(f, Decl(genericImplements.ts, 7, 22)) +>T : T, Symbol(T, Decl(genericImplements.ts, 8, 6)) +>B : B, Symbol(B, Decl(genericImplements.ts, 0, 15)) +>T : T, Symbol(T, Decl(genericImplements.ts, 8, 6)) +>undefined : undefined, Symbol(undefined) } // { f: () => { b; } } // OK class Y implements I { ->Y : Y ->I : I +>Y : Y, Symbol(Y, Decl(genericImplements.ts, 9, 1)) +>I : I, Symbol(I, Decl(genericImplements.ts, 1, 15)) f(): T { return undefined; } ->f : () => T ->T : T ->A : A ->T : T ->undefined : undefined +>f : () => T, Symbol(f, Decl(genericImplements.ts, 12, 22)) +>T : T, Symbol(T, Decl(genericImplements.ts, 13, 6)) +>A : A, Symbol(A, Decl(genericImplements.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericImplements.ts, 13, 6)) +>undefined : undefined, Symbol(undefined) } // { f: () => { a; } } // OK class Z implements I { ->Z : Z ->I : I +>Z : Z, Symbol(Z, Decl(genericImplements.ts, 14, 1)) +>I : I, Symbol(I, Decl(genericImplements.ts, 1, 15)) f(): T { return undefined; } ->f : () => T ->T : T ->T : T ->undefined : undefined +>f : () => T, Symbol(f, Decl(genericImplements.ts, 17, 22)) +>T : T, Symbol(T, Decl(genericImplements.ts, 18, 6)) +>T : T, Symbol(T, Decl(genericImplements.ts, 18, 6)) +>undefined : undefined, Symbol(undefined) } // { f: () => T } diff --git a/tests/baselines/reference/genericInference1.types b/tests/baselines/reference/genericInference1.types index f83a1dcd361..0a5924abea6 100644 --- a/tests/baselines/reference/genericInference1.types +++ b/tests/baselines/reference/genericInference1.types @@ -1,12 +1,15 @@ === tests/cases/compiler/genericInference1.ts === ['a', 'b', 'c'].map(x => x.length); >['a', 'b', 'c'].map(x => x.length) : number[] ->['a', 'b', 'c'].map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>['a', 'b', 'c'].map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >['a', 'b', 'c'] : string[] ->map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>'a' : string +>'b' : string +>'c' : string +>map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >x => x.length : (x: string) => number ->x : string ->x.length : number ->x : string ->length : number +>x : string, Symbol(x, Decl(genericInference1.ts, 0, 20)) +>x.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>x : string, Symbol(x, Decl(genericInference1.ts, 0, 20)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) diff --git a/tests/baselines/reference/genericInference2.types b/tests/baselines/reference/genericInference2.types index 2616c0de2c4..d29ed3315f8 100644 --- a/tests/baselines/reference/genericInference2.types +++ b/tests/baselines/reference/genericInference2.types @@ -1,99 +1,102 @@ === tests/cases/compiler/genericInference2.ts === declare module ko { ->ko : typeof ko +>ko : typeof ko, Symbol(ko, Decl(genericInference2.ts, 0, 0)) export interface Observable { ->Observable : Observable ->T : T +>Observable : Observable, Symbol(Observable, Decl(genericInference2.ts, 0, 23)) +>T : T, Symbol(T, Decl(genericInference2.ts, 1, 35)) (): T; ->T : T +>T : T, Symbol(T, Decl(genericInference2.ts, 1, 35)) (value: T): any; ->value : T ->T : T +>value : T, Symbol(value, Decl(genericInference2.ts, 3, 12)) +>T : T, Symbol(T, Decl(genericInference2.ts, 1, 35)) N: number; ->N : number +>N : number, Symbol(N, Decl(genericInference2.ts, 3, 27)) g: boolean; ->g : boolean +>g : boolean, Symbol(g, Decl(genericInference2.ts, 4, 21)) r: T; ->r : T ->T : T +>r : T, Symbol(r, Decl(genericInference2.ts, 5, 22)) +>T : T, Symbol(T, Decl(genericInference2.ts, 1, 35)) } export function observable(value: T): Observable; ->observable : (value: T) => Observable ->T : T ->value : T ->T : T ->Observable : Observable ->T : T +>observable : (value: T) => Observable, Symbol(observable, Decl(genericInference2.ts, 7, 8)) +>T : T, Symbol(T, Decl(genericInference2.ts, 8, 34)) +>value : T, Symbol(value, Decl(genericInference2.ts, 8, 37)) +>T : T, Symbol(T, Decl(genericInference2.ts, 8, 34)) +>Observable : Observable, Symbol(Observable, Decl(genericInference2.ts, 0, 23)) +>T : T, Symbol(T, Decl(genericInference2.ts, 8, 34)) } var o = { ->o : { name: ko.Observable; age: ko.Observable; } +>o : { name: ko.Observable; age: ko.Observable; }, Symbol(o, Decl(genericInference2.ts, 10, 7)) >{ name: ko.observable("Bob"), age: ko.observable(37) } : { name: ko.Observable; age: ko.Observable; } name: ko.observable("Bob"), ->name : ko.Observable +>name : ko.Observable, Symbol(name, Decl(genericInference2.ts, 10, 13)) >ko.observable("Bob") : ko.Observable ->ko.observable : (value: T) => ko.Observable ->ko : typeof ko ->observable : (value: T) => ko.Observable +>ko.observable : (value: T) => ko.Observable, Symbol(ko.observable, Decl(genericInference2.ts, 7, 8)) +>ko : typeof ko, Symbol(ko, Decl(genericInference2.ts, 0, 0)) +>observable : (value: T) => ko.Observable, Symbol(ko.observable, Decl(genericInference2.ts, 7, 8)) +>"Bob" : string age: ko.observable(37) ->age : ko.Observable +>age : ko.Observable, Symbol(age, Decl(genericInference2.ts, 11, 34)) >ko.observable(37) : ko.Observable ->ko.observable : (value: T) => ko.Observable ->ko : typeof ko ->observable : (value: T) => ko.Observable +>ko.observable : (value: T) => ko.Observable, Symbol(ko.observable, Decl(genericInference2.ts, 7, 8)) +>ko : typeof ko, Symbol(ko, Decl(genericInference2.ts, 0, 0)) +>observable : (value: T) => ko.Observable, Symbol(ko.observable, Decl(genericInference2.ts, 7, 8)) +>37 : number }; var x_v = o.name().length; // should be 'number' ->x_v : number ->o.name().length : number +>x_v : number, Symbol(x_v, Decl(genericInference2.ts, 14, 7)) +>o.name().length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) >o.name() : string ->o.name : ko.Observable ->o : { name: ko.Observable; age: ko.Observable; } ->name : ko.Observable ->length : number +>o.name : ko.Observable, Symbol(name, Decl(genericInference2.ts, 10, 13)) +>o : { name: ko.Observable; age: ko.Observable; }, Symbol(o, Decl(genericInference2.ts, 10, 7)) +>name : ko.Observable, Symbol(name, Decl(genericInference2.ts, 10, 13)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) var age_v = o.age(); // should be 'number' ->age_v : number +>age_v : number, Symbol(age_v, Decl(genericInference2.ts, 15, 7)) >o.age() : number ->o.age : ko.Observable ->o : { name: ko.Observable; age: ko.Observable; } ->age : ko.Observable +>o.age : ko.Observable, Symbol(age, Decl(genericInference2.ts, 11, 34)) +>o : { name: ko.Observable; age: ko.Observable; }, Symbol(o, Decl(genericInference2.ts, 10, 7)) +>age : ko.Observable, Symbol(age, Decl(genericInference2.ts, 11, 34)) var name_v = o.name("Robert"); // should be 'any' ->name_v : any +>name_v : any, Symbol(name_v, Decl(genericInference2.ts, 16, 7)) >o.name("Robert") : any ->o.name : ko.Observable ->o : { name: ko.Observable; age: ko.Observable; } ->name : ko.Observable +>o.name : ko.Observable, Symbol(name, Decl(genericInference2.ts, 10, 13)) +>o : { name: ko.Observable; age: ko.Observable; }, Symbol(o, Decl(genericInference2.ts, 10, 7)) +>name : ko.Observable, Symbol(name, Decl(genericInference2.ts, 10, 13)) +>"Robert" : string var zz_v = o.name.N; // should be 'number' ->zz_v : number ->o.name.N : number ->o.name : ko.Observable ->o : { name: ko.Observable; age: ko.Observable; } ->name : ko.Observable ->N : number +>zz_v : number, Symbol(zz_v, Decl(genericInference2.ts, 17, 7)) +>o.name.N : number, Symbol(ko.Observable.N, Decl(genericInference2.ts, 3, 27)) +>o.name : ko.Observable, Symbol(name, Decl(genericInference2.ts, 10, 13)) +>o : { name: ko.Observable; age: ko.Observable; }, Symbol(o, Decl(genericInference2.ts, 10, 7)) +>name : ko.Observable, Symbol(name, Decl(genericInference2.ts, 10, 13)) +>N : number, Symbol(ko.Observable.N, Decl(genericInference2.ts, 3, 27)) var yy_v = o.name.g; // should be 'boolean' ->yy_v : boolean ->o.name.g : boolean ->o.name : ko.Observable ->o : { name: ko.Observable; age: ko.Observable; } ->name : ko.Observable ->g : boolean +>yy_v : boolean, Symbol(yy_v, Decl(genericInference2.ts, 18, 7)) +>o.name.g : boolean, Symbol(ko.Observable.g, Decl(genericInference2.ts, 4, 21)) +>o.name : ko.Observable, Symbol(name, Decl(genericInference2.ts, 10, 13)) +>o : { name: ko.Observable; age: ko.Observable; }, Symbol(o, Decl(genericInference2.ts, 10, 7)) +>name : ko.Observable, Symbol(name, Decl(genericInference2.ts, 10, 13)) +>g : boolean, Symbol(ko.Observable.g, Decl(genericInference2.ts, 4, 21)) var rr_v = o.name.r; // should be 'string' ->rr_v : string ->o.name.r : string ->o.name : ko.Observable ->o : { name: ko.Observable; age: ko.Observable; } ->name : ko.Observable ->r : string +>rr_v : string, Symbol(rr_v, Decl(genericInference2.ts, 19, 7)) +>o.name.r : string, Symbol(ko.Observable.r, Decl(genericInference2.ts, 5, 22)) +>o.name : ko.Observable, Symbol(name, Decl(genericInference2.ts, 10, 13)) +>o : { name: ko.Observable; age: ko.Observable; }, Symbol(o, Decl(genericInference2.ts, 10, 7)) +>name : ko.Observable, Symbol(name, Decl(genericInference2.ts, 10, 13)) +>r : string, Symbol(ko.Observable.r, Decl(genericInference2.ts, 5, 22)) diff --git a/tests/baselines/reference/genericInstanceOf.types b/tests/baselines/reference/genericInstanceOf.types index 726fa38fbf8..8861f6dd8f9 100644 --- a/tests/baselines/reference/genericInstanceOf.types +++ b/tests/baselines/reference/genericInstanceOf.types @@ -1,31 +1,31 @@ === tests/cases/compiler/genericInstanceOf.ts === interface F { ->F : F +>F : F, Symbol(F, Decl(genericInstanceOf.ts, 0, 0)) (): number; } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(genericInstanceOf.ts, 2, 1)) +>T : T, Symbol(T, Decl(genericInstanceOf.ts, 4, 8)) constructor(public a: T, public b: F) {} ->a : T ->T : T ->b : F ->F : F +>a : T, Symbol(a, Decl(genericInstanceOf.ts, 5, 16)) +>T : T, Symbol(T, Decl(genericInstanceOf.ts, 4, 8)) +>b : F, Symbol(b, Decl(genericInstanceOf.ts, 5, 28)) +>F : F, Symbol(F, Decl(genericInstanceOf.ts, 0, 0)) foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(genericInstanceOf.ts, 5, 44)) if (this.a instanceof this.b) { >this.a instanceof this.b : boolean ->this.a : T ->this : C ->a : T ->this.b : F ->this : C ->b : F +>this.a : T, Symbol(a, Decl(genericInstanceOf.ts, 5, 16)) +>this : C, Symbol(C, Decl(genericInstanceOf.ts, 2, 1)) +>a : T, Symbol(a, Decl(genericInstanceOf.ts, 5, 16)) +>this.b : F, Symbol(b, Decl(genericInstanceOf.ts, 5, 28)) +>this : C, Symbol(C, Decl(genericInstanceOf.ts, 2, 1)) +>b : F, Symbol(b, Decl(genericInstanceOf.ts, 5, 28)) } } } diff --git a/tests/baselines/reference/genericInstantiationEquivalentToObjectLiteral.types b/tests/baselines/reference/genericInstantiationEquivalentToObjectLiteral.types index 449c5712c6c..0a3af3d0085 100644 --- a/tests/baselines/reference/genericInstantiationEquivalentToObjectLiteral.types +++ b/tests/baselines/reference/genericInstantiationEquivalentToObjectLiteral.types @@ -1,68 +1,68 @@ === tests/cases/conformance/types/namedTypes/genericInstantiationEquivalentToObjectLiteral.ts === interface Pair { first: T1; second: T2; } ->Pair : Pair ->T1 : T1 ->T2 : T2 ->first : T1 ->T1 : T1 ->second : T2 ->T2 : T2 +>Pair : Pair, Symbol(Pair, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 0)) +>T1 : T1, Symbol(T1, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 15)) +>T2 : T2, Symbol(T2, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 18)) +>first : T1, Symbol(first, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 24)) +>T1 : T1, Symbol(T1, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 15)) +>second : T2, Symbol(second, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 35)) +>T2 : T2, Symbol(T2, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 18)) var x: Pair ->x : Pair ->Pair : Pair +>x : Pair, Symbol(x, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 1, 3)) +>Pair : Pair, Symbol(Pair, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 0)) var y: { first: string; second: number; } ->y : { first: string; second: number; } ->first : string ->second : number +>y : { first: string; second: number; }, Symbol(y, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 2, 3)) +>first : string, Symbol(first, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 2, 8)) +>second : number, Symbol(second, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 2, 23)) x = y; >x = y : { first: string; second: number; } ->x : Pair ->y : { first: string; second: number; } +>x : Pair, Symbol(x, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 1, 3)) +>y : { first: string; second: number; }, Symbol(y, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 2, 3)) y = x; >y = x : Pair ->y : { first: string; second: number; } ->x : Pair +>y : { first: string; second: number; }, Symbol(y, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 2, 3)) +>x : Pair, Symbol(x, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 1, 3)) declare function f(x: Pair); ->f : (x: Pair) => any ->T : T ->U : U ->x : Pair ->Pair : Pair ->T : T ->U : U +>f : (x: Pair) => any, Symbol(f, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 5, 6)) +>T : T, Symbol(T, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 7, 19)) +>U : U, Symbol(U, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 7, 21)) +>x : Pair, Symbol(x, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 7, 25)) +>Pair : Pair, Symbol(Pair, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 7, 19)) +>U : U, Symbol(U, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 7, 21)) declare function f2(x: { first: T; second: U; }); ->f2 : (x: { first: T; second: U; }) => any ->T : T ->U : U ->x : { first: T; second: U; } ->first : T ->T : T ->second : U ->U : U +>f2 : (x: { first: T; second: U; }) => any, Symbol(f2, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 7, 40)) +>T : T, Symbol(T, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 8, 20)) +>U : U, Symbol(U, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 8, 22)) +>x : { first: T; second: U; }, Symbol(x, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 8, 26)) +>first : T, Symbol(first, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 8, 30)) +>T : T, Symbol(T, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 8, 20)) +>second : U, Symbol(second, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 8, 40)) +>U : U, Symbol(U, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 8, 22)) f(x); >f(x) : any ->f : (x: Pair) => any ->x : Pair +>f : (x: Pair) => any, Symbol(f, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 5, 6)) +>x : Pair, Symbol(x, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 1, 3)) f(y); >f(y) : any ->f : (x: Pair) => any ->y : { first: string; second: number; } +>f : (x: Pair) => any, Symbol(f, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 5, 6)) +>y : { first: string; second: number; }, Symbol(y, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 2, 3)) f2(x); >f2(x) : any ->f2 : (x: { first: T; second: U; }) => any ->x : Pair +>f2 : (x: { first: T; second: U; }) => any, Symbol(f2, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 7, 40)) +>x : Pair, Symbol(x, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 1, 3)) f2(y); >f2(y) : any ->f2 : (x: { first: T; second: U; }) => any ->y : { first: string; second: number; } +>f2 : (x: { first: T; second: U; }) => any, Symbol(f2, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 7, 40)) +>y : { first: string; second: number; }, Symbol(y, Decl(genericInstantiationEquivalentToObjectLiteral.ts, 2, 3)) diff --git a/tests/baselines/reference/genericInterfaceFunctionTypeParameter.types b/tests/baselines/reference/genericInterfaceFunctionTypeParameter.types index f262fda55f6..0203d38af1a 100644 --- a/tests/baselines/reference/genericInterfaceFunctionTypeParameter.types +++ b/tests/baselines/reference/genericInterfaceFunctionTypeParameter.types @@ -1,20 +1,20 @@ === tests/cases/compiler/genericInterfaceFunctionTypeParameter.ts === export interface IFoo { } ->IFoo : IFoo ->A : A +>IFoo : IFoo, Symbol(IFoo, Decl(genericInterfaceFunctionTypeParameter.ts, 0, 0)) +>A : A, Symbol(A, Decl(genericInterfaceFunctionTypeParameter.ts, 0, 22)) export function foo(fn: (ifoo: IFoo) => void) { ->foo : (fn: (ifoo: IFoo) => void) => void ->A : A ->fn : (ifoo: IFoo) => void ->ifoo : IFoo ->IFoo : IFoo ->A : A +>foo : (fn: (ifoo: IFoo) => void) => void, Symbol(foo, Decl(genericInterfaceFunctionTypeParameter.ts, 0, 28)) +>A : A, Symbol(A, Decl(genericInterfaceFunctionTypeParameter.ts, 1, 20)) +>fn : (ifoo: IFoo) => void, Symbol(fn, Decl(genericInterfaceFunctionTypeParameter.ts, 1, 23)) +>ifoo : IFoo, Symbol(ifoo, Decl(genericInterfaceFunctionTypeParameter.ts, 1, 28)) +>IFoo : IFoo, Symbol(IFoo, Decl(genericInterfaceFunctionTypeParameter.ts, 0, 0)) +>A : A, Symbol(A, Decl(genericInterfaceFunctionTypeParameter.ts, 1, 20)) foo(fn); // Invocation is necessary to repro (!) >foo(fn) : void ->foo : (fn: (ifoo: IFoo) => void) => void ->fn : (ifoo: IFoo) => void +>foo : (fn: (ifoo: IFoo) => void) => void, Symbol(foo, Decl(genericInterfaceFunctionTypeParameter.ts, 0, 28)) +>fn : (ifoo: IFoo) => void, Symbol(fn, Decl(genericInterfaceFunctionTypeParameter.ts, 1, 23)) } diff --git a/tests/baselines/reference/genericInterfaceImplementation.types b/tests/baselines/reference/genericInterfaceImplementation.types index b075864634c..89d694b9c2c 100644 --- a/tests/baselines/reference/genericInterfaceImplementation.types +++ b/tests/baselines/reference/genericInterfaceImplementation.types @@ -1,42 +1,43 @@ === tests/cases/compiler/genericInterfaceImplementation.ts === interface IOption { ->IOption : IOption ->A : A +>IOption : IOption, Symbol(IOption, Decl(genericInterfaceImplementation.ts, 0, 0)) +>A : A, Symbol(A, Decl(genericInterfaceImplementation.ts, 0, 18)) get(): A; ->get : () => A ->A : A +>get : () => A, Symbol(get, Decl(genericInterfaceImplementation.ts, 0, 22)) +>A : A, Symbol(A, Decl(genericInterfaceImplementation.ts, 0, 18)) flatten(): IOption; ->flatten : () => IOption ->B : B ->IOption : IOption ->B : B +>flatten : () => IOption, Symbol(flatten, Decl(genericInterfaceImplementation.ts, 1, 13)) +>B : B, Symbol(B, Decl(genericInterfaceImplementation.ts, 3, 12)) +>IOption : IOption, Symbol(IOption, Decl(genericInterfaceImplementation.ts, 0, 0)) +>B : B, Symbol(B, Decl(genericInterfaceImplementation.ts, 3, 12)) } class None implements IOption{ ->None : None ->T : T ->IOption : IOption ->T : T +>None : None, Symbol(None, Decl(genericInterfaceImplementation.ts, 4, 1)) +>T : T, Symbol(T, Decl(genericInterfaceImplementation.ts, 6, 11)) +>IOption : IOption, Symbol(IOption, Decl(genericInterfaceImplementation.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericInterfaceImplementation.ts, 6, 11)) get(): T { ->get : () => T ->T : T +>get : () => T, Symbol(get, Decl(genericInterfaceImplementation.ts, 6, 36)) +>T : T, Symbol(T, Decl(genericInterfaceImplementation.ts, 6, 11)) throw null; +>null : null } flatten() : IOption { ->flatten : () => IOption ->U : U ->IOption : IOption ->U : U +>flatten : () => IOption, Symbol(flatten, Decl(genericInterfaceImplementation.ts, 9, 5)) +>U : U, Symbol(U, Decl(genericInterfaceImplementation.ts, 11, 12)) +>IOption : IOption, Symbol(IOption, Decl(genericInterfaceImplementation.ts, 0, 0)) +>U : U, Symbol(U, Decl(genericInterfaceImplementation.ts, 11, 12)) return new None(); >new None() : None ->None : typeof None ->U : U +>None : typeof None, Symbol(None, Decl(genericInterfaceImplementation.ts, 4, 1)) +>U : U, Symbol(U, Decl(genericInterfaceImplementation.ts, 11, 12)) } } diff --git a/tests/baselines/reference/genericInterfaceTypeCall.types b/tests/baselines/reference/genericInterfaceTypeCall.types index fcf64fac066..829cfb8267d 100644 --- a/tests/baselines/reference/genericInterfaceTypeCall.types +++ b/tests/baselines/reference/genericInterfaceTypeCall.types @@ -1,60 +1,60 @@ === tests/cases/compiler/genericInterfaceTypeCall.ts === interface Foo { ->Foo : Foo ->T : T +>Foo : Foo, Symbol(Foo, Decl(genericInterfaceTypeCall.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericInterfaceTypeCall.ts, 0, 14)) reject(arg: T): void; ->reject : (arg: T) => void ->arg : T ->T : T +>reject : (arg: T) => void, Symbol(reject, Decl(genericInterfaceTypeCall.ts, 0, 18)) +>arg : T, Symbol(arg, Decl(genericInterfaceTypeCall.ts, 1, 11)) +>T : T, Symbol(T, Decl(genericInterfaceTypeCall.ts, 0, 14)) } var foo: Foo ->foo : Foo ->Foo : Foo +>foo : Foo, Symbol(foo, Decl(genericInterfaceTypeCall.ts, 3, 3)) +>Foo : Foo, Symbol(Foo, Decl(genericInterfaceTypeCall.ts, 0, 0)) interface bar { ->bar : bar ->T : T +>bar : bar, Symbol(bar, Decl(genericInterfaceTypeCall.ts, 3, 20)) +>T : T, Symbol(T, Decl(genericInterfaceTypeCall.ts, 5, 14)) fail(func: (arg: T) => void ): void; ->fail : (func: (arg: T) => void) => void ->func : (arg: T) => void ->arg : T ->T : T +>fail : (func: (arg: T) => void) => void, Symbol(fail, Decl(genericInterfaceTypeCall.ts, 5, 18)) +>func : (arg: T) => void, Symbol(func, Decl(genericInterfaceTypeCall.ts, 6, 9)) +>arg : T, Symbol(arg, Decl(genericInterfaceTypeCall.ts, 6, 16)) +>T : T, Symbol(T, Decl(genericInterfaceTypeCall.ts, 5, 14)) fail2(func2: { (arg: T): void; }): void; ->fail2 : (func2: (arg: T) => void) => void ->func2 : (arg: T) => void ->arg : T ->T : T +>fail2 : (func2: (arg: T) => void) => void, Symbol(fail2, Decl(genericInterfaceTypeCall.ts, 6, 40)) +>func2 : (arg: T) => void, Symbol(func2, Decl(genericInterfaceTypeCall.ts, 7, 10)) +>arg : T, Symbol(arg, Decl(genericInterfaceTypeCall.ts, 7, 20)) +>T : T, Symbol(T, Decl(genericInterfaceTypeCall.ts, 5, 14)) } var test: bar; ->test : bar ->bar : bar +>test : bar, Symbol(test, Decl(genericInterfaceTypeCall.ts, 9, 3)) +>bar : bar, Symbol(bar, Decl(genericInterfaceTypeCall.ts, 3, 20)) test.fail(arg => foo.reject(arg)); >test.fail(arg => foo.reject(arg)) : void ->test.fail : (func: (arg: string) => void) => void ->test : bar ->fail : (func: (arg: string) => void) => void +>test.fail : (func: (arg: string) => void) => void, Symbol(bar.fail, Decl(genericInterfaceTypeCall.ts, 5, 18)) +>test : bar, Symbol(test, Decl(genericInterfaceTypeCall.ts, 9, 3)) +>fail : (func: (arg: string) => void) => void, Symbol(bar.fail, Decl(genericInterfaceTypeCall.ts, 5, 18)) >arg => foo.reject(arg) : (arg: string) => void ->arg : string +>arg : string, Symbol(arg, Decl(genericInterfaceTypeCall.ts, 11, 10)) >foo.reject(arg) : void ->foo.reject : (arg: string) => void ->foo : Foo ->reject : (arg: string) => void ->arg : string +>foo.reject : (arg: string) => void, Symbol(Foo.reject, Decl(genericInterfaceTypeCall.ts, 0, 18)) +>foo : Foo, Symbol(foo, Decl(genericInterfaceTypeCall.ts, 3, 3)) +>reject : (arg: string) => void, Symbol(Foo.reject, Decl(genericInterfaceTypeCall.ts, 0, 18)) +>arg : string, Symbol(arg, Decl(genericInterfaceTypeCall.ts, 11, 10)) test.fail2(arg => foo.reject(arg)); // Error: Supplied parameters do not match any signature of call target >test.fail2(arg => foo.reject(arg)) : void ->test.fail2 : (func2: (arg: string) => void) => void ->test : bar ->fail2 : (func2: (arg: string) => void) => void +>test.fail2 : (func2: (arg: string) => void) => void, Symbol(bar.fail2, Decl(genericInterfaceTypeCall.ts, 6, 40)) +>test : bar, Symbol(test, Decl(genericInterfaceTypeCall.ts, 9, 3)) +>fail2 : (func2: (arg: string) => void) => void, Symbol(bar.fail2, Decl(genericInterfaceTypeCall.ts, 6, 40)) >arg => foo.reject(arg) : (arg: string) => void ->arg : string +>arg : string, Symbol(arg, Decl(genericInterfaceTypeCall.ts, 12, 11)) >foo.reject(arg) : void ->foo.reject : (arg: string) => void ->foo : Foo ->reject : (arg: string) => void ->arg : string +>foo.reject : (arg: string) => void, Symbol(Foo.reject, Decl(genericInterfaceTypeCall.ts, 0, 18)) +>foo : Foo, Symbol(foo, Decl(genericInterfaceTypeCall.ts, 3, 3)) +>reject : (arg: string) => void, Symbol(Foo.reject, Decl(genericInterfaceTypeCall.ts, 0, 18)) +>arg : string, Symbol(arg, Decl(genericInterfaceTypeCall.ts, 12, 11)) diff --git a/tests/baselines/reference/genericMethodOverspecialization.types b/tests/baselines/reference/genericMethodOverspecialization.types index 145a7b33381..d3d1a51a0c6 100644 --- a/tests/baselines/reference/genericMethodOverspecialization.types +++ b/tests/baselines/reference/genericMethodOverspecialization.types @@ -1,80 +1,85 @@ === tests/cases/compiler/genericMethodOverspecialization.ts === var names = ["list", "table1", "table2", "table3", "summary"]; ->names : string[] +>names : string[], Symbol(names, Decl(genericMethodOverspecialization.ts, 0, 3)) >["list", "table1", "table2", "table3", "summary"] : string[] +>"list" : string +>"table1" : string +>"table2" : string +>"table3" : string +>"summary" : string interface HTMLElement { ->HTMLElement : HTMLElement +>HTMLElement : HTMLElement, Symbol(HTMLElement, Decl(genericMethodOverspecialization.ts, 0, 62)) clientWidth: number; ->clientWidth : number +>clientWidth : number, Symbol(clientWidth, Decl(genericMethodOverspecialization.ts, 2, 23)) isDisabled: boolean; ->isDisabled : boolean +>isDisabled : boolean, Symbol(isDisabled, Decl(genericMethodOverspecialization.ts, 3, 24)) } declare var document: Document; ->document : Document ->Document : Document +>document : Document, Symbol(document, Decl(genericMethodOverspecialization.ts, 7, 11)) +>Document : Document, Symbol(Document, Decl(genericMethodOverspecialization.ts, 7, 31)) interface Document { ->Document : Document +>Document : Document, Symbol(Document, Decl(genericMethodOverspecialization.ts, 7, 31)) getElementById(elementId: string): HTMLElement; ->getElementById : (elementId: string) => HTMLElement ->elementId : string ->HTMLElement : HTMLElement +>getElementById : (elementId: string) => HTMLElement, Symbol(getElementById, Decl(genericMethodOverspecialization.ts, 8, 20)) +>elementId : string, Symbol(elementId, Decl(genericMethodOverspecialization.ts, 9, 19)) +>HTMLElement : HTMLElement, Symbol(HTMLElement, Decl(genericMethodOverspecialization.ts, 0, 62)) } var elements = names.map(function (name) { ->elements : HTMLElement[] +>elements : HTMLElement[], Symbol(elements, Decl(genericMethodOverspecialization.ts, 12, 3)) >names.map(function (name) { return document.getElementById(name);}) : HTMLElement[] ->names.map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] ->names : string[] ->map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>names.map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>names : string[], Symbol(names, Decl(genericMethodOverspecialization.ts, 0, 3)) +>map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >function (name) { return document.getElementById(name);} : (name: string) => HTMLElement ->name : string +>name : string, Symbol(name, Decl(genericMethodOverspecialization.ts, 12, 35)) return document.getElementById(name); >document.getElementById(name) : HTMLElement ->document.getElementById : (elementId: string) => HTMLElement ->document : Document ->getElementById : (elementId: string) => HTMLElement ->name : string +>document.getElementById : (elementId: string) => HTMLElement, Symbol(Document.getElementById, Decl(genericMethodOverspecialization.ts, 8, 20)) +>document : Document, Symbol(document, Decl(genericMethodOverspecialization.ts, 7, 11)) +>getElementById : (elementId: string) => HTMLElement, Symbol(Document.getElementById, Decl(genericMethodOverspecialization.ts, 8, 20)) +>name : string, Symbol(name, Decl(genericMethodOverspecialization.ts, 12, 35)) }); var xxx = elements.filter(function (e) { ->xxx : HTMLElement[] +>xxx : HTMLElement[], Symbol(xxx, Decl(genericMethodOverspecialization.ts, 17, 3)) >elements.filter(function (e) { return !e.isDisabled;}) : HTMLElement[] ->elements.filter : (callbackfn: (value: HTMLElement, index: number, array: HTMLElement[]) => boolean, thisArg?: any) => HTMLElement[] ->elements : HTMLElement[] ->filter : (callbackfn: (value: HTMLElement, index: number, array: HTMLElement[]) => boolean, thisArg?: any) => HTMLElement[] +>elements.filter : (callbackfn: (value: HTMLElement, index: number, array: HTMLElement[]) => boolean, thisArg?: any) => HTMLElement[], Symbol(Array.filter, Decl(lib.d.ts, 1122, 87)) +>elements : HTMLElement[], Symbol(elements, Decl(genericMethodOverspecialization.ts, 12, 3)) +>filter : (callbackfn: (value: HTMLElement, index: number, array: HTMLElement[]) => boolean, thisArg?: any) => HTMLElement[], Symbol(Array.filter, Decl(lib.d.ts, 1122, 87)) >function (e) { return !e.isDisabled;} : (e: HTMLElement) => boolean ->e : HTMLElement +>e : HTMLElement, Symbol(e, Decl(genericMethodOverspecialization.ts, 17, 36)) return !e.isDisabled; >!e.isDisabled : boolean ->e.isDisabled : boolean ->e : HTMLElement ->isDisabled : boolean +>e.isDisabled : boolean, Symbol(HTMLElement.isDisabled, Decl(genericMethodOverspecialization.ts, 3, 24)) +>e : HTMLElement, Symbol(e, Decl(genericMethodOverspecialization.ts, 17, 36)) +>isDisabled : boolean, Symbol(HTMLElement.isDisabled, Decl(genericMethodOverspecialization.ts, 3, 24)) }); var widths:number[] = elements.map(function (e) { // should not error ->widths : number[] +>widths : number[], Symbol(widths, Decl(genericMethodOverspecialization.ts, 21, 3)) >elements.map(function (e) { // should not error return e.clientWidth;}) : number[] ->elements.map : (callbackfn: (value: HTMLElement, index: number, array: HTMLElement[]) => U, thisArg?: any) => U[] ->elements : HTMLElement[] ->map : (callbackfn: (value: HTMLElement, index: number, array: HTMLElement[]) => U, thisArg?: any) => U[] +>elements.map : (callbackfn: (value: HTMLElement, index: number, array: HTMLElement[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>elements : HTMLElement[], Symbol(elements, Decl(genericMethodOverspecialization.ts, 12, 3)) +>map : (callbackfn: (value: HTMLElement, index: number, array: HTMLElement[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >function (e) { // should not error return e.clientWidth;} : (e: HTMLElement) => number ->e : HTMLElement +>e : HTMLElement, Symbol(e, Decl(genericMethodOverspecialization.ts, 21, 45)) return e.clientWidth; ->e.clientWidth : number ->e : HTMLElement ->clientWidth : number +>e.clientWidth : number, Symbol(HTMLElement.clientWidth, Decl(genericMethodOverspecialization.ts, 2, 23)) +>e : HTMLElement, Symbol(e, Decl(genericMethodOverspecialization.ts, 21, 45)) +>clientWidth : number, Symbol(HTMLElement.clientWidth, Decl(genericMethodOverspecialization.ts, 2, 23)) }); diff --git a/tests/baselines/reference/genericObjectLitReturnType.types b/tests/baselines/reference/genericObjectLitReturnType.types index 3ecb5706689..11e4344b3a7 100644 --- a/tests/baselines/reference/genericObjectLitReturnType.types +++ b/tests/baselines/reference/genericObjectLitReturnType.types @@ -1,33 +1,35 @@ === tests/cases/compiler/genericObjectLitReturnType.ts === class X ->X : X ->T : T +>X : X, Symbol(X, Decl(genericObjectLitReturnType.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericObjectLitReturnType.ts, 0, 8)) { f(t: T) { return { a: t }; } ->f : (t: T) => { a: T; } ->t : T ->T : T +>f : (t: T) => { a: T; }, Symbol(f, Decl(genericObjectLitReturnType.ts, 1, 1)) +>t : T, Symbol(t, Decl(genericObjectLitReturnType.ts, 2, 6)) +>T : T, Symbol(T, Decl(genericObjectLitReturnType.ts, 0, 8)) >{ a: t } : { a: T; } ->a : T ->t : T +>a : T, Symbol(a, Decl(genericObjectLitReturnType.ts, 2, 22)) +>t : T, Symbol(t, Decl(genericObjectLitReturnType.ts, 2, 6)) } var x: X; ->x : X ->X : X +>x : X, Symbol(x, Decl(genericObjectLitReturnType.ts, 6, 3)) +>X : X, Symbol(X, Decl(genericObjectLitReturnType.ts, 0, 0)) var t1 = x.f(5); ->t1 : { a: number; } +>t1 : { a: number; }, Symbol(t1, Decl(genericObjectLitReturnType.ts, 7, 3)) >x.f(5) : { a: number; } ->x.f : (t: number) => { a: number; } ->x : X ->f : (t: number) => { a: number; } +>x.f : (t: number) => { a: number; }, Symbol(X.f, Decl(genericObjectLitReturnType.ts, 1, 1)) +>x : X, Symbol(x, Decl(genericObjectLitReturnType.ts, 6, 3)) +>f : (t: number) => { a: number; }, Symbol(X.f, Decl(genericObjectLitReturnType.ts, 1, 1)) +>5 : number t1.a = 5; // Should not error: t1 should have type {a: number}, instead has type {a: T} >t1.a = 5 : number ->t1.a : number ->t1 : { a: number; } ->a : number +>t1.a : number, Symbol(a, Decl(genericObjectLitReturnType.ts, 2, 22)) +>t1 : { a: number; }, Symbol(t1, Decl(genericObjectLitReturnType.ts, 7, 3)) +>a : number, Symbol(a, Decl(genericObjectLitReturnType.ts, 2, 22)) +>5 : number diff --git a/tests/baselines/reference/genericOfACloduleType1.types b/tests/baselines/reference/genericOfACloduleType1.types index afbef2f4180..892c937ccb1 100644 --- a/tests/baselines/reference/genericOfACloduleType1.types +++ b/tests/baselines/reference/genericOfACloduleType1.types @@ -1,46 +1,47 @@ === tests/cases/compiler/genericOfACloduleType1.ts === class G{ bar(x: T) { return x; } } ->G : G ->T : T ->bar : (x: T) => T ->x : T ->T : T ->x : T +>G : G, Symbol(G, Decl(genericOfACloduleType1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericOfACloduleType1.ts, 0, 8)) +>bar : (x: T) => T, Symbol(bar, Decl(genericOfACloduleType1.ts, 0, 11)) +>x : T, Symbol(x, Decl(genericOfACloduleType1.ts, 0, 16)) +>T : T, Symbol(T, Decl(genericOfACloduleType1.ts, 0, 8)) +>x : T, Symbol(x, Decl(genericOfACloduleType1.ts, 0, 16)) module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(genericOfACloduleType1.ts, 0, 37)) export class C { foo() { } } ->C : C ->foo : () => void +>C : C, Symbol(C, Decl(genericOfACloduleType1.ts, 1, 10), Decl(genericOfACloduleType1.ts, 2, 32)) +>foo : () => void, Symbol(foo, Decl(genericOfACloduleType1.ts, 2, 20)) export module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(genericOfACloduleType1.ts, 1, 10), Decl(genericOfACloduleType1.ts, 2, 32)) export class X { ->X : X +>X : X, Symbol(X, Decl(genericOfACloduleType1.ts, 3, 21)) } } var g1 = new G(); ->g1 : G +>g1 : G, Symbol(g1, Decl(genericOfACloduleType1.ts, 8, 7)) >new G() : G ->G : typeof G ->C : C +>G : typeof G, Symbol(G, Decl(genericOfACloduleType1.ts, 0, 0)) +>C : C, Symbol(C, Decl(genericOfACloduleType1.ts, 1, 10), Decl(genericOfACloduleType1.ts, 2, 32)) g1.bar(null).foo(); >g1.bar(null).foo() : void ->g1.bar(null).foo : () => void +>g1.bar(null).foo : () => void, Symbol(C.foo, Decl(genericOfACloduleType1.ts, 2, 20)) >g1.bar(null) : C ->g1.bar : (x: C) => C ->g1 : G ->bar : (x: C) => C ->foo : () => void +>g1.bar : (x: C) => C, Symbol(G.bar, Decl(genericOfACloduleType1.ts, 0, 11)) +>g1 : G, Symbol(g1, Decl(genericOfACloduleType1.ts, 8, 7)) +>bar : (x: C) => C, Symbol(G.bar, Decl(genericOfACloduleType1.ts, 0, 11)) +>null : null +>foo : () => void, Symbol(C.foo, Decl(genericOfACloduleType1.ts, 2, 20)) } var g2 = new G() // was: error Type reference cannot refer to container 'M.C'. ->g2 : G +>g2 : G, Symbol(g2, Decl(genericOfACloduleType1.ts, 11, 3)) >new G() : G ->G : typeof G ->M : unknown ->C : M.C +>G : typeof G, Symbol(G, Decl(genericOfACloduleType1.ts, 0, 0)) +>M : any, Symbol(M, Decl(genericOfACloduleType1.ts, 0, 37)) +>C : M.C, Symbol(M.C, Decl(genericOfACloduleType1.ts, 1, 10), Decl(genericOfACloduleType1.ts, 2, 32)) diff --git a/tests/baselines/reference/genericOfACloduleType2.types b/tests/baselines/reference/genericOfACloduleType2.types index 275af8c913b..41d697b2163 100644 --- a/tests/baselines/reference/genericOfACloduleType2.types +++ b/tests/baselines/reference/genericOfACloduleType2.types @@ -1,50 +1,51 @@ === tests/cases/compiler/genericOfACloduleType2.ts === class G{ bar(x: T) { return x; } } ->G : G ->T : T ->bar : (x: T) => T ->x : T ->T : T ->x : T +>G : G, Symbol(G, Decl(genericOfACloduleType2.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericOfACloduleType2.ts, 0, 8)) +>bar : (x: T) => T, Symbol(bar, Decl(genericOfACloduleType2.ts, 0, 11)) +>x : T, Symbol(x, Decl(genericOfACloduleType2.ts, 0, 16)) +>T : T, Symbol(T, Decl(genericOfACloduleType2.ts, 0, 8)) +>x : T, Symbol(x, Decl(genericOfACloduleType2.ts, 0, 16)) module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(genericOfACloduleType2.ts, 0, 37)) export class C { foo() { } } ->C : C ->foo : () => void +>C : C, Symbol(C, Decl(genericOfACloduleType2.ts, 1, 10), Decl(genericOfACloduleType2.ts, 2, 32)) +>foo : () => void, Symbol(foo, Decl(genericOfACloduleType2.ts, 2, 20)) export module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(genericOfACloduleType2.ts, 1, 10), Decl(genericOfACloduleType2.ts, 2, 32)) export class X { ->X : X +>X : X, Symbol(X, Decl(genericOfACloduleType2.ts, 3, 21)) } } var g1 = new G(); ->g1 : G +>g1 : G, Symbol(g1, Decl(genericOfACloduleType2.ts, 8, 7)) >new G() : G ->G : typeof G ->C : C +>G : typeof G, Symbol(G, Decl(genericOfACloduleType2.ts, 0, 0)) +>C : C, Symbol(C, Decl(genericOfACloduleType2.ts, 1, 10), Decl(genericOfACloduleType2.ts, 2, 32)) g1.bar(null).foo(); // no error >g1.bar(null).foo() : void ->g1.bar(null).foo : () => void +>g1.bar(null).foo : () => void, Symbol(C.foo, Decl(genericOfACloduleType2.ts, 2, 20)) >g1.bar(null) : C ->g1.bar : (x: C) => C ->g1 : G ->bar : (x: C) => C ->foo : () => void +>g1.bar : (x: C) => C, Symbol(G.bar, Decl(genericOfACloduleType2.ts, 0, 11)) +>g1 : G, Symbol(g1, Decl(genericOfACloduleType2.ts, 8, 7)) +>bar : (x: C) => C, Symbol(G.bar, Decl(genericOfACloduleType2.ts, 0, 11)) +>null : null +>foo : () => void, Symbol(C.foo, Decl(genericOfACloduleType2.ts, 2, 20)) } module N { ->N : typeof N +>N : typeof N, Symbol(N, Decl(genericOfACloduleType2.ts, 10, 1)) var g2 = new G() ->g2 : G +>g2 : G, Symbol(g2, Decl(genericOfACloduleType2.ts, 13, 7)) >new G() : G ->G : typeof G ->M : unknown ->C : M.C +>G : typeof G, Symbol(G, Decl(genericOfACloduleType2.ts, 0, 0)) +>M : any, Symbol(M, Decl(genericOfACloduleType2.ts, 0, 37)) +>C : M.C, Symbol(M.C, Decl(genericOfACloduleType2.ts, 1, 10), Decl(genericOfACloduleType2.ts, 2, 32)) } diff --git a/tests/baselines/reference/genericOverloadSignatures.types b/tests/baselines/reference/genericOverloadSignatures.types index e1efe0785ab..05d32155b78 100644 --- a/tests/baselines/reference/genericOverloadSignatures.types +++ b/tests/baselines/reference/genericOverloadSignatures.types @@ -1,101 +1,101 @@ === tests/cases/compiler/genericOverloadSignatures.ts === interface A { ->A : A +>A : A, Symbol(A, Decl(genericOverloadSignatures.ts, 0, 0)) (x: T): void; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 1, 5)) +>x : T, Symbol(x, Decl(genericOverloadSignatures.ts, 1, 8)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 1, 5)) (x: T): void; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 2, 5)) +>x : T, Symbol(x, Decl(genericOverloadSignatures.ts, 2, 8)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 2, 5)) } function f(a: T); ->f : { (a: T): any; (a: T): any; } ->T : T ->a : T ->T : T +>f : { (a: T): any; (a: T): any; }, Symbol(f, Decl(genericOverloadSignatures.ts, 3, 1), Decl(genericOverloadSignatures.ts, 5, 20), Decl(genericOverloadSignatures.ts, 6, 20)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 5, 11)) +>a : T, Symbol(a, Decl(genericOverloadSignatures.ts, 5, 14)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 5, 11)) function f(a: T); ->f : { (a: T): any; (a: T): any; } ->T : T ->a : T ->T : T +>f : { (a: T): any; (a: T): any; }, Symbol(f, Decl(genericOverloadSignatures.ts, 3, 1), Decl(genericOverloadSignatures.ts, 5, 20), Decl(genericOverloadSignatures.ts, 6, 20)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 6, 11)) +>a : T, Symbol(a, Decl(genericOverloadSignatures.ts, 6, 14)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 6, 11)) function f(a) { } ->f : { (a: T): any; (a: T): any; } ->a : any +>f : { (a: T): any; (a: T): any; }, Symbol(f, Decl(genericOverloadSignatures.ts, 3, 1), Decl(genericOverloadSignatures.ts, 5, 20), Decl(genericOverloadSignatures.ts, 6, 20)) +>a : any, Symbol(a, Decl(genericOverloadSignatures.ts, 7, 11)) interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(genericOverloadSignatures.ts, 7, 17)) f(x: T): number; ->f : { (x: T): number; (x: T): string; } ->T : T ->x : T ->T : T +>f : { (x: T): number; (x: T): string; }, Symbol(f, Decl(genericOverloadSignatures.ts, 9, 14), Decl(genericOverloadSignatures.ts, 10, 23)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 10, 6)) +>x : T, Symbol(x, Decl(genericOverloadSignatures.ts, 10, 9)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 10, 6)) f(x: T): string; ->f : { (x: T): number; (x: T): string; } ->T : T ->x : T ->T : T +>f : { (x: T): number; (x: T): string; }, Symbol(f, Decl(genericOverloadSignatures.ts, 9, 14), Decl(genericOverloadSignatures.ts, 10, 23)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 11, 6)) +>x : T, Symbol(x, Decl(genericOverloadSignatures.ts, 11, 9)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 11, 6)) } interface I3 { ->I3 : I3 ->T : T +>I3 : I3, Symbol(I3, Decl(genericOverloadSignatures.ts, 12, 1)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 14, 13)) f(x: T): number; ->f : { (x: T): number; (x: T): string; } ->x : T ->T : T +>f : { (x: T): number; (x: T): string; }, Symbol(f, Decl(genericOverloadSignatures.ts, 14, 17), Decl(genericOverloadSignatures.ts, 15, 20)) +>x : T, Symbol(x, Decl(genericOverloadSignatures.ts, 15, 6)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 14, 13)) f(x: T): string; ->f : { (x: T): number; (x: T): string; } ->x : T ->T : T +>f : { (x: T): number; (x: T): string; }, Symbol(f, Decl(genericOverloadSignatures.ts, 14, 17), Decl(genericOverloadSignatures.ts, 15, 20)) +>x : T, Symbol(x, Decl(genericOverloadSignatures.ts, 16, 6)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 14, 13)) } class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(genericOverloadSignatures.ts, 17, 1)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 19, 9)) } var b: { ->b : { new (x: T, y: string): C2; new (x: T, y: string): C2; } +>b : { new (x: T, y: string): C2; new (x: T, y: string): C2; }, Symbol(b, Decl(genericOverloadSignatures.ts, 21, 3)) new (x: T, y: string): C2; ->T : T ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 22, 9)) +>x : T, Symbol(x, Decl(genericOverloadSignatures.ts, 22, 12)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 22, 9)) +>y : string, Symbol(y, Decl(genericOverloadSignatures.ts, 22, 17)) +>C2 : C2, Symbol(C2, Decl(genericOverloadSignatures.ts, 17, 1)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 22, 9)) new (x: T, y: string): C2; ->T : T ->x : T ->T : T ->y : string ->C2 : C2 ->T : T +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 23, 9)) +>x : T, Symbol(x, Decl(genericOverloadSignatures.ts, 23, 12)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 23, 9)) +>y : string, Symbol(y, Decl(genericOverloadSignatures.ts, 23, 17)) +>C2 : C2, Symbol(C2, Decl(genericOverloadSignatures.ts, 17, 1)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 23, 9)) } interface D { ->D : D +>D : D, Symbol(D, Decl(genericOverloadSignatures.ts, 24, 1)) (x: T): T; ->T : T ->x : T ->T : T ->T : T +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 27, 5)) +>x : T, Symbol(x, Decl(genericOverloadSignatures.ts, 27, 8)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 27, 5)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 27, 5)) (x: T): T; ->T : T ->x : T ->T : T ->T : T +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 28, 5)) +>x : T, Symbol(x, Decl(genericOverloadSignatures.ts, 28, 8)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 28, 5)) +>T : T, Symbol(T, Decl(genericOverloadSignatures.ts, 28, 5)) } diff --git a/tests/baselines/reference/genericParameterAssignability1.types b/tests/baselines/reference/genericParameterAssignability1.types index b7888014dea..1bcbf66274a 100644 --- a/tests/baselines/reference/genericParameterAssignability1.types +++ b/tests/baselines/reference/genericParameterAssignability1.types @@ -1,21 +1,22 @@ === tests/cases/compiler/genericParameterAssignability1.ts === function f(x: T): T { return null; } ->f : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>f : (x: T) => T, Symbol(f, Decl(genericParameterAssignability1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericParameterAssignability1.ts, 0, 11)) +>x : T, Symbol(x, Decl(genericParameterAssignability1.ts, 0, 14)) +>T : T, Symbol(T, Decl(genericParameterAssignability1.ts, 0, 11)) +>T : T, Symbol(T, Decl(genericParameterAssignability1.ts, 0, 11)) +>null : null var r = (x: T) => x; ->r : (x: T) => T +>r : (x: T) => T, Symbol(r, Decl(genericParameterAssignability1.ts, 1, 3)) >(x: T) => x : (x: T) => T ->T : T ->x : T ->T : T ->x : T +>T : T, Symbol(T, Decl(genericParameterAssignability1.ts, 1, 9)) +>x : T, Symbol(x, Decl(genericParameterAssignability1.ts, 1, 12)) +>T : T, Symbol(T, Decl(genericParameterAssignability1.ts, 1, 9)) +>x : T, Symbol(x, Decl(genericParameterAssignability1.ts, 1, 12)) r = f; // should be allowed >r = f : (x: T) => T ->r : (x: T) => T ->f : (x: T) => T +>r : (x: T) => T, Symbol(r, Decl(genericParameterAssignability1.ts, 1, 3)) +>f : (x: T) => T, Symbol(f, Decl(genericParameterAssignability1.ts, 0, 0)) diff --git a/tests/baselines/reference/genericPrototypeProperty.types b/tests/baselines/reference/genericPrototypeProperty.types index a25914229b0..e719519d158 100644 --- a/tests/baselines/reference/genericPrototypeProperty.types +++ b/tests/baselines/reference/genericPrototypeProperty.types @@ -1,36 +1,38 @@ === tests/cases/compiler/genericPrototypeProperty.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(genericPrototypeProperty.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericPrototypeProperty.ts, 0, 8)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(genericPrototypeProperty.ts, 0, 12)) +>T : T, Symbol(T, Decl(genericPrototypeProperty.ts, 0, 8)) foo(x: T): T { return null; } ->foo : (x: T) => T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(genericPrototypeProperty.ts, 1, 9)) +>x : T, Symbol(x, Decl(genericPrototypeProperty.ts, 2, 8)) +>T : T, Symbol(T, Decl(genericPrototypeProperty.ts, 0, 8)) +>T : T, Symbol(T, Decl(genericPrototypeProperty.ts, 0, 8)) +>null : null } var r = C.prototype; ->r : C ->C.prototype : C ->C : typeof C ->prototype : C +>r : C, Symbol(r, Decl(genericPrototypeProperty.ts, 5, 3)) +>C.prototype : C, Symbol(C.prototype) +>C : typeof C, Symbol(C, Decl(genericPrototypeProperty.ts, 0, 0)) +>prototype : C, Symbol(C.prototype) // should be any var r2 = r.x ->r2 : any ->r.x : any ->r : C ->x : any +>r2 : any, Symbol(r2, Decl(genericPrototypeProperty.ts, 7, 3)) +>r.x : any, Symbol(C.x, Decl(genericPrototypeProperty.ts, 0, 12)) +>r : C, Symbol(r, Decl(genericPrototypeProperty.ts, 5, 3)) +>x : any, Symbol(C.x, Decl(genericPrototypeProperty.ts, 0, 12)) var r3 = r.foo(null); ->r3 : any +>r3 : any, Symbol(r3, Decl(genericPrototypeProperty.ts, 8, 3)) >r.foo(null) : any ->r.foo : (x: any) => any ->r : C ->foo : (x: any) => any +>r.foo : (x: any) => any, Symbol(C.foo, Decl(genericPrototypeProperty.ts, 1, 9)) +>r : C, Symbol(r, Decl(genericPrototypeProperty.ts, 5, 3)) +>foo : (x: any) => any, Symbol(C.foo, Decl(genericPrototypeProperty.ts, 1, 9)) +>null : null diff --git a/tests/baselines/reference/genericPrototypeProperty2.types b/tests/baselines/reference/genericPrototypeProperty2.types index 1c95041b650..96c6d921dca 100644 --- a/tests/baselines/reference/genericPrototypeProperty2.types +++ b/tests/baselines/reference/genericPrototypeProperty2.types @@ -1,39 +1,39 @@ === tests/cases/compiler/genericPrototypeProperty2.ts === interface EventTarget { x } ->EventTarget : EventTarget ->x : any +>EventTarget : EventTarget, Symbol(EventTarget, Decl(genericPrototypeProperty2.ts, 0, 0)) +>x : any, Symbol(x, Decl(genericPrototypeProperty2.ts, 0, 23)) class BaseEvent { ->BaseEvent : BaseEvent +>BaseEvent : BaseEvent, Symbol(BaseEvent, Decl(genericPrototypeProperty2.ts, 0, 27)) target: EventTarget; ->target : EventTarget ->EventTarget : EventTarget +>target : EventTarget, Symbol(target, Decl(genericPrototypeProperty2.ts, 1, 17)) +>EventTarget : EventTarget, Symbol(EventTarget, Decl(genericPrototypeProperty2.ts, 0, 0)) } class MyEvent extends BaseEvent { ->MyEvent : MyEvent ->T : T ->EventTarget : EventTarget ->BaseEvent : BaseEvent +>MyEvent : MyEvent, Symbol(MyEvent, Decl(genericPrototypeProperty2.ts, 3, 1)) +>T : T, Symbol(T, Decl(genericPrototypeProperty2.ts, 5, 14)) +>EventTarget : EventTarget, Symbol(EventTarget, Decl(genericPrototypeProperty2.ts, 0, 0)) +>BaseEvent : BaseEvent, Symbol(BaseEvent, Decl(genericPrototypeProperty2.ts, 0, 27)) target: T; ->target : T ->T : T +>target : T, Symbol(target, Decl(genericPrototypeProperty2.ts, 5, 56)) +>T : T, Symbol(T, Decl(genericPrototypeProperty2.ts, 5, 14)) } class BaseEventWrapper { ->BaseEventWrapper : BaseEventWrapper +>BaseEventWrapper : BaseEventWrapper, Symbol(BaseEventWrapper, Decl(genericPrototypeProperty2.ts, 7, 1)) t: BaseEvent; ->t : BaseEvent ->BaseEvent : BaseEvent +>t : BaseEvent, Symbol(t, Decl(genericPrototypeProperty2.ts, 8, 24)) +>BaseEvent : BaseEvent, Symbol(BaseEvent, Decl(genericPrototypeProperty2.ts, 0, 27)) } class MyEventWrapper extends BaseEventWrapper { ->MyEventWrapper : MyEventWrapper ->BaseEventWrapper : BaseEventWrapper +>MyEventWrapper : MyEventWrapper, Symbol(MyEventWrapper, Decl(genericPrototypeProperty2.ts, 10, 1)) +>BaseEventWrapper : BaseEventWrapper, Symbol(BaseEventWrapper, Decl(genericPrototypeProperty2.ts, 7, 1)) t: MyEvent; // any satisfies constraint and passes assignability check between 'target' properties ->t : MyEvent ->MyEvent : MyEvent +>t : MyEvent, Symbol(t, Decl(genericPrototypeProperty2.ts, 12, 47)) +>MyEvent : MyEvent, Symbol(MyEvent, Decl(genericPrototypeProperty2.ts, 3, 1)) } diff --git a/tests/baselines/reference/genericPrototypeProperty3.types b/tests/baselines/reference/genericPrototypeProperty3.types index 5a190164642..6c643ef24a5 100644 --- a/tests/baselines/reference/genericPrototypeProperty3.types +++ b/tests/baselines/reference/genericPrototypeProperty3.types @@ -1,33 +1,33 @@ === tests/cases/compiler/genericPrototypeProperty3.ts === class BaseEvent { ->BaseEvent : BaseEvent +>BaseEvent : BaseEvent, Symbol(BaseEvent, Decl(genericPrototypeProperty3.ts, 0, 0)) target: {}; ->target : {} +>target : {}, Symbol(target, Decl(genericPrototypeProperty3.ts, 0, 17)) } class MyEvent extends BaseEvent { // T is instantiated to any in the prototype, which is assignable to {} ->MyEvent : MyEvent ->T : T ->BaseEvent : BaseEvent +>MyEvent : MyEvent, Symbol(MyEvent, Decl(genericPrototypeProperty3.ts, 2, 1)) +>T : T, Symbol(T, Decl(genericPrototypeProperty3.ts, 4, 14)) +>BaseEvent : BaseEvent, Symbol(BaseEvent, Decl(genericPrototypeProperty3.ts, 0, 0)) target: T; ->target : T ->T : T +>target : T, Symbol(target, Decl(genericPrototypeProperty3.ts, 4, 36)) +>T : T, Symbol(T, Decl(genericPrototypeProperty3.ts, 4, 14)) } class BaseEventWrapper { ->BaseEventWrapper : BaseEventWrapper +>BaseEventWrapper : BaseEventWrapper, Symbol(BaseEventWrapper, Decl(genericPrototypeProperty3.ts, 6, 1)) t: BaseEvent; ->t : BaseEvent ->BaseEvent : BaseEvent +>t : BaseEvent, Symbol(t, Decl(genericPrototypeProperty3.ts, 7, 24)) +>BaseEvent : BaseEvent, Symbol(BaseEvent, Decl(genericPrototypeProperty3.ts, 0, 0)) } class MyEventWrapper extends BaseEventWrapper { ->MyEventWrapper : MyEventWrapper ->BaseEventWrapper : BaseEventWrapper +>MyEventWrapper : MyEventWrapper, Symbol(MyEventWrapper, Decl(genericPrototypeProperty3.ts, 9, 1)) +>BaseEventWrapper : BaseEventWrapper, Symbol(BaseEventWrapper, Decl(genericPrototypeProperty3.ts, 6, 1)) t: MyEvent; ->t : MyEvent ->MyEvent : MyEvent +>t : MyEvent, Symbol(t, Decl(genericPrototypeProperty3.ts, 11, 47)) +>MyEvent : MyEvent, Symbol(MyEvent, Decl(genericPrototypeProperty3.ts, 2, 1)) } diff --git a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.types b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.types index 2f62a20c415..c8db397be2f 100644 --- a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.types +++ b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.types @@ -1,68 +1,68 @@ === tests/cases/compiler/genericRecursiveImplicitConstructorErrors2.ts === module TypeScript2 { ->TypeScript2 : typeof TypeScript2 +>TypeScript2 : typeof TypeScript2, Symbol(TypeScript2, Decl(genericRecursiveImplicitConstructorErrors2.ts, 0, 0)) export interface DeclKind { }; ->DeclKind : DeclKind +>DeclKind : DeclKind, Symbol(DeclKind, Decl(genericRecursiveImplicitConstructorErrors2.ts, 0, 20)) export interface PullTypesymbol { }; ->PullTypesymbol : PullTypesymbol +>PullTypesymbol : PullTypesymbol, Symbol(PullTypesymbol, Decl(genericRecursiveImplicitConstructorErrors2.ts, 1, 32)) export interface SymbolLinkKind { }; ->SymbolLinkKind : SymbolLinkKind +>SymbolLinkKind : SymbolLinkKind, Symbol(SymbolLinkKind, Decl(genericRecursiveImplicitConstructorErrors2.ts, 2, 38)) export enum PullSymbolVisibility { ->PullSymbolVisibility : PullSymbolVisibility +>PullSymbolVisibility : PullSymbolVisibility, Symbol(PullSymbolVisibility, Decl(genericRecursiveImplicitConstructorErrors2.ts, 3, 38)) Private, ->Private : PullSymbolVisibility +>Private : PullSymbolVisibility, Symbol(PullSymbolVisibility.Private, Decl(genericRecursiveImplicitConstructorErrors2.ts, 4, 36)) Public ->Public : PullSymbolVisibility +>Public : PullSymbolVisibility, Symbol(PullSymbolVisibility.Public, Decl(genericRecursiveImplicitConstructorErrors2.ts, 5, 12)) }   export class PullSymbol { ->PullSymbol : PullSymbol +>PullSymbol : PullSymbol, Symbol(PullSymbol, Decl(genericRecursiveImplicitConstructorErrors2.ts, 7, 3)) constructor (name: string, declKind: DeclKind) { ->name : string ->declKind : DeclKind ->DeclKind : DeclKind +>name : string, Symbol(name, Decl(genericRecursiveImplicitConstructorErrors2.ts, 10, 17)) +>declKind : DeclKind, Symbol(declKind, Decl(genericRecursiveImplicitConstructorErrors2.ts, 10, 30)) +>DeclKind : DeclKind, Symbol(DeclKind, Decl(genericRecursiveImplicitConstructorErrors2.ts, 0, 20)) } // link methods public addOutgoingLink(linkTo: PullSymbol, kind: SymbolLinkKind) { ->addOutgoingLink : (linkTo: PullSymbol, kind: SymbolLinkKind) => void ->A : A ->B : B ->C : C ->linkTo : PullSymbol ->PullSymbol : PullSymbol ->kind : SymbolLinkKind ->SymbolLinkKind : SymbolLinkKind +>addOutgoingLink : (linkTo: PullSymbol, kind: SymbolLinkKind) => void, Symbol(addOutgoingLink, Decl(genericRecursiveImplicitConstructorErrors2.ts, 12, 5)) +>A : A, Symbol(A, Decl(genericRecursiveImplicitConstructorErrors2.ts, 14, 27)) +>B : B, Symbol(B, Decl(genericRecursiveImplicitConstructorErrors2.ts, 14, 29)) +>C : C, Symbol(C, Decl(genericRecursiveImplicitConstructorErrors2.ts, 14, 31)) +>linkTo : PullSymbol, Symbol(linkTo, Decl(genericRecursiveImplicitConstructorErrors2.ts, 14, 34)) +>PullSymbol : PullSymbol, Symbol(PullSymbol, Decl(genericRecursiveImplicitConstructorErrors2.ts, 7, 3)) +>kind : SymbolLinkKind, Symbol(kind, Decl(genericRecursiveImplicitConstructorErrors2.ts, 14, 53)) +>SymbolLinkKind : SymbolLinkKind, Symbol(SymbolLinkKind, Decl(genericRecursiveImplicitConstructorErrors2.ts, 2, 38)) } public getType(): PullTypeSymbol { ->getType : () => PullTypeSymbol ->A : A ->B : B ->C : C ->PullTypeSymbol : PullTypeSymbol ->A : A ->B : B ->C : C +>getType : () => PullTypeSymbol, Symbol(getType, Decl(genericRecursiveImplicitConstructorErrors2.ts, 16, 5)) +>A : A, Symbol(A, Decl(genericRecursiveImplicitConstructorErrors2.ts, 18, 19)) +>B : B, Symbol(B, Decl(genericRecursiveImplicitConstructorErrors2.ts, 18, 21)) +>C : C, Symbol(C, Decl(genericRecursiveImplicitConstructorErrors2.ts, 18, 23)) +>PullTypeSymbol : PullTypeSymbol, Symbol(PullTypeSymbol, Decl(genericRecursiveImplicitConstructorErrors2.ts, 21, 3)) +>A : A, Symbol(A, Decl(genericRecursiveImplicitConstructorErrors2.ts, 18, 19)) +>B : B, Symbol(B, Decl(genericRecursiveImplicitConstructorErrors2.ts, 18, 21)) +>C : C, Symbol(C, Decl(genericRecursiveImplicitConstructorErrors2.ts, 18, 23)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } } export class PullTypeSymbol extends PullSymbol { ->PullTypeSymbol : PullTypeSymbol ->A : A ->B : B ->C : C ->PullSymbol : PullSymbol +>PullTypeSymbol : PullTypeSymbol, Symbol(PullTypeSymbol, Decl(genericRecursiveImplicitConstructorErrors2.ts, 21, 3)) +>A : A, Symbol(A, Decl(genericRecursiveImplicitConstructorErrors2.ts, 22, 31)) +>B : B, Symbol(B, Decl(genericRecursiveImplicitConstructorErrors2.ts, 22, 33)) +>C : C, Symbol(C, Decl(genericRecursiveImplicitConstructorErrors2.ts, 22, 35)) +>PullSymbol : PullSymbol, Symbol(PullSymbol, Decl(genericRecursiveImplicitConstructorErrors2.ts, 7, 3)) } } diff --git a/tests/baselines/reference/genericReversingTypeParameters.types b/tests/baselines/reference/genericReversingTypeParameters.types index a95f6620082..067eee3fb7f 100644 --- a/tests/baselines/reference/genericReversingTypeParameters.types +++ b/tests/baselines/reference/genericReversingTypeParameters.types @@ -1,51 +1,55 @@ === tests/cases/compiler/genericReversingTypeParameters.ts === class BiMap { ->BiMap : BiMap ->K : K ->V : V +>BiMap : BiMap, Symbol(BiMap, Decl(genericReversingTypeParameters.ts, 0, 0)) +>K : K, Symbol(K, Decl(genericReversingTypeParameters.ts, 0, 12)) +>V : V, Symbol(V, Decl(genericReversingTypeParameters.ts, 0, 14)) private inverseBiMap: BiMap; ->inverseBiMap : BiMap ->BiMap : BiMap ->V : V ->K : K +>inverseBiMap : BiMap, Symbol(inverseBiMap, Decl(genericReversingTypeParameters.ts, 0, 19)) +>BiMap : BiMap, Symbol(BiMap, Decl(genericReversingTypeParameters.ts, 0, 0)) +>V : V, Symbol(V, Decl(genericReversingTypeParameters.ts, 0, 14)) +>K : K, Symbol(K, Decl(genericReversingTypeParameters.ts, 0, 12)) public get(key: K): V { return null; } ->get : (key: K) => V ->key : K ->K : K ->V : V +>get : (key: K) => V, Symbol(get, Decl(genericReversingTypeParameters.ts, 1, 38)) +>key : K, Symbol(key, Decl(genericReversingTypeParameters.ts, 2, 15)) +>K : K, Symbol(K, Decl(genericReversingTypeParameters.ts, 0, 12)) +>V : V, Symbol(V, Decl(genericReversingTypeParameters.ts, 0, 14)) +>null : null public inverse(): BiMap { return null; } ->inverse : () => BiMap ->BiMap : BiMap ->V : V ->K : K +>inverse : () => BiMap, Symbol(inverse, Decl(genericReversingTypeParameters.ts, 2, 42)) +>BiMap : BiMap, Symbol(BiMap, Decl(genericReversingTypeParameters.ts, 0, 0)) +>V : V, Symbol(V, Decl(genericReversingTypeParameters.ts, 0, 14)) +>K : K, Symbol(K, Decl(genericReversingTypeParameters.ts, 0, 12)) +>null : null } var b = new BiMap(); ->b : BiMap +>b : BiMap, Symbol(b, Decl(genericReversingTypeParameters.ts, 6, 3)) >new BiMap() : BiMap ->BiMap : typeof BiMap +>BiMap : typeof BiMap, Symbol(BiMap, Decl(genericReversingTypeParameters.ts, 0, 0)) var r1 = b.get(''); ->r1 : number +>r1 : number, Symbol(r1, Decl(genericReversingTypeParameters.ts, 7, 3)) >b.get('') : number ->b.get : (key: string) => number ->b : BiMap ->get : (key: string) => number +>b.get : (key: string) => number, Symbol(BiMap.get, Decl(genericReversingTypeParameters.ts, 1, 38)) +>b : BiMap, Symbol(b, Decl(genericReversingTypeParameters.ts, 6, 3)) +>get : (key: string) => number, Symbol(BiMap.get, Decl(genericReversingTypeParameters.ts, 1, 38)) +>'' : string var i = b.inverse(); // used to get the type wrong here. ->i : BiMap +>i : BiMap, Symbol(i, Decl(genericReversingTypeParameters.ts, 8, 3)) >b.inverse() : BiMap ->b.inverse : () => BiMap ->b : BiMap ->inverse : () => BiMap +>b.inverse : () => BiMap, Symbol(BiMap.inverse, Decl(genericReversingTypeParameters.ts, 2, 42)) +>b : BiMap, Symbol(b, Decl(genericReversingTypeParameters.ts, 6, 3)) +>inverse : () => BiMap, Symbol(BiMap.inverse, Decl(genericReversingTypeParameters.ts, 2, 42)) var r2b = i.get(1); ->r2b : string +>r2b : string, Symbol(r2b, Decl(genericReversingTypeParameters.ts, 9, 3)) >i.get(1) : string ->i.get : (key: number) => string ->i : BiMap ->get : (key: number) => string +>i.get : (key: number) => string, Symbol(BiMap.get, Decl(genericReversingTypeParameters.ts, 1, 38)) +>i : BiMap, Symbol(i, Decl(genericReversingTypeParameters.ts, 8, 3)) +>get : (key: number) => string, Symbol(BiMap.get, Decl(genericReversingTypeParameters.ts, 1, 38)) +>1 : number diff --git a/tests/baselines/reference/genericReversingTypeParameters2.types b/tests/baselines/reference/genericReversingTypeParameters2.types index 4356280f4d3..54c5450887b 100644 --- a/tests/baselines/reference/genericReversingTypeParameters2.types +++ b/tests/baselines/reference/genericReversingTypeParameters2.types @@ -1,44 +1,47 @@ === tests/cases/compiler/genericReversingTypeParameters2.ts === class BiMap { ->BiMap : BiMap ->K : K ->V : V +>BiMap : BiMap, Symbol(BiMap, Decl(genericReversingTypeParameters2.ts, 0, 0)) +>K : K, Symbol(K, Decl(genericReversingTypeParameters2.ts, 0, 12)) +>V : V, Symbol(V, Decl(genericReversingTypeParameters2.ts, 0, 14)) private inverseBiMap: BiMap; ->inverseBiMap : BiMap ->BiMap : BiMap ->V : V ->K : K +>inverseBiMap : BiMap, Symbol(inverseBiMap, Decl(genericReversingTypeParameters2.ts, 0, 19)) +>BiMap : BiMap, Symbol(BiMap, Decl(genericReversingTypeParameters2.ts, 0, 0)) +>V : V, Symbol(V, Decl(genericReversingTypeParameters2.ts, 0, 14)) +>K : K, Symbol(K, Decl(genericReversingTypeParameters2.ts, 0, 12)) public get(key: K): V { return null; } ->get : (key: K) => V ->key : K ->K : K ->V : V +>get : (key: K) => V, Symbol(get, Decl(genericReversingTypeParameters2.ts, 1, 38)) +>key : K, Symbol(key, Decl(genericReversingTypeParameters2.ts, 2, 15)) +>K : K, Symbol(K, Decl(genericReversingTypeParameters2.ts, 0, 12)) +>V : V, Symbol(V, Decl(genericReversingTypeParameters2.ts, 0, 14)) +>null : null public inverse(): BiMap { return null; } ->inverse : () => BiMap ->BiMap : BiMap ->V : V ->K : K +>inverse : () => BiMap, Symbol(inverse, Decl(genericReversingTypeParameters2.ts, 2, 42)) +>BiMap : BiMap, Symbol(BiMap, Decl(genericReversingTypeParameters2.ts, 0, 0)) +>V : V, Symbol(V, Decl(genericReversingTypeParameters2.ts, 0, 14)) +>K : K, Symbol(K, Decl(genericReversingTypeParameters2.ts, 0, 12)) +>null : null } var b = new BiMap(); ->b : BiMap +>b : BiMap, Symbol(b, Decl(genericReversingTypeParameters2.ts, 6, 3)) >new BiMap() : BiMap ->BiMap : typeof BiMap +>BiMap : typeof BiMap, Symbol(BiMap, Decl(genericReversingTypeParameters2.ts, 0, 0)) var i = b.inverse(); // used to get the type wrong here. ->i : BiMap +>i : BiMap, Symbol(i, Decl(genericReversingTypeParameters2.ts, 7, 3)) >b.inverse() : BiMap ->b.inverse : () => BiMap ->b : BiMap ->inverse : () => BiMap +>b.inverse : () => BiMap, Symbol(BiMap.inverse, Decl(genericReversingTypeParameters2.ts, 2, 42)) +>b : BiMap, Symbol(b, Decl(genericReversingTypeParameters2.ts, 6, 3)) +>inverse : () => BiMap, Symbol(BiMap.inverse, Decl(genericReversingTypeParameters2.ts, 2, 42)) var r2b = i.get(1); ->r2b : string +>r2b : string, Symbol(r2b, Decl(genericReversingTypeParameters2.ts, 8, 3)) >i.get(1) : string ->i.get : (key: number) => string ->i : BiMap ->get : (key: number) => string +>i.get : (key: number) => string, Symbol(BiMap.get, Decl(genericReversingTypeParameters2.ts, 1, 38)) +>i : BiMap, Symbol(i, Decl(genericReversingTypeParameters2.ts, 7, 3)) +>get : (key: number) => string, Symbol(BiMap.get, Decl(genericReversingTypeParameters2.ts, 1, 38)) +>1 : number diff --git a/tests/baselines/reference/genericSignatureInheritance.types b/tests/baselines/reference/genericSignatureInheritance.types index 0ae6be52ba1..a48cc677a42 100644 --- a/tests/baselines/reference/genericSignatureInheritance.types +++ b/tests/baselines/reference/genericSignatureInheritance.types @@ -1,14 +1,14 @@ === tests/cases/compiler/genericSignatureInheritance.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(genericSignatureInheritance.ts, 0, 0)) (x: T): string; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(genericSignatureInheritance.ts, 1, 5)) +>x : T, Symbol(x, Decl(genericSignatureInheritance.ts, 1, 8)) +>T : T, Symbol(T, Decl(genericSignatureInheritance.ts, 1, 5)) } interface I2 extends I { } ->I2 : I2 ->I : I +>I2 : I2, Symbol(I2, Decl(genericSignatureInheritance.ts, 2, 1)) +>I : I, Symbol(I, Decl(genericSignatureInheritance.ts, 0, 0)) diff --git a/tests/baselines/reference/genericSignatureInheritance2.types b/tests/baselines/reference/genericSignatureInheritance2.types index 0b31483cdc5..90de548b16b 100644 --- a/tests/baselines/reference/genericSignatureInheritance2.types +++ b/tests/baselines/reference/genericSignatureInheritance2.types @@ -1,20 +1,20 @@ === tests/cases/compiler/genericSignatureInheritance2.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(genericSignatureInheritance2.ts, 0, 0)) (x: T): string; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(genericSignatureInheritance2.ts, 1, 5)) +>x : T, Symbol(x, Decl(genericSignatureInheritance2.ts, 1, 8)) +>T : T, Symbol(T, Decl(genericSignatureInheritance2.ts, 1, 5)) } interface I2 extends I { ->I2 : I2 ->I : I +>I2 : I2, Symbol(I2, Decl(genericSignatureInheritance2.ts, 2, 1)) +>I : I, Symbol(I, Decl(genericSignatureInheritance2.ts, 0, 0)) (x: T): void; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(genericSignatureInheritance2.ts, 5, 5)) +>x : T, Symbol(x, Decl(genericSignatureInheritance2.ts, 5, 8)) +>T : T, Symbol(T, Decl(genericSignatureInheritance2.ts, 5, 5)) } diff --git a/tests/baselines/reference/genericSpecializationToTypeLiteral1.types b/tests/baselines/reference/genericSpecializationToTypeLiteral1.types index c75f07f6aef..0bc8c39c923 100644 --- a/tests/baselines/reference/genericSpecializationToTypeLiteral1.types +++ b/tests/baselines/reference/genericSpecializationToTypeLiteral1.types @@ -1,178 +1,178 @@ === tests/cases/compiler/genericSpecializationToTypeLiteral1.ts === interface IEnumerable { ->IEnumerable : IEnumerable ->T : T +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) zip(second: IEnumerable, resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; ->zip : { (second: IEnumerable, resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; (second: T[], resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; (...params: any[]): IEnumerable; } ->TResult : TResult ->second : IEnumerable ->IEnumerable : IEnumerable ->T : T ->resultSelector : (first: T, second: T, index: number) => TResult ->first : T ->T : T ->second : T ->T : T ->index : number ->TResult : TResult ->IEnumerable : IEnumerable ->TResult : TResult +>zip : { (second: IEnumerable, resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; (second: T[], resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; (...params: any[]): IEnumerable; }, Symbol(zip, Decl(genericSpecializationToTypeLiteral1.ts, 0, 26), Decl(genericSpecializationToTypeLiteral1.ts, 2, 128), Decl(genericSpecializationToTypeLiteral1.ts, 3, 117)) +>TResult : TResult, Symbol(TResult, Decl(genericSpecializationToTypeLiteral1.ts, 2, 8)) +>second : IEnumerable, Symbol(second, Decl(genericSpecializationToTypeLiteral1.ts, 2, 17)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>resultSelector : (first: T, second: T, index: number) => TResult, Symbol(resultSelector, Decl(genericSpecializationToTypeLiteral1.ts, 2, 40)) +>first : T, Symbol(first, Decl(genericSpecializationToTypeLiteral1.ts, 2, 58)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>second : T, Symbol(second, Decl(genericSpecializationToTypeLiteral1.ts, 2, 67)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>index : number, Symbol(index, Decl(genericSpecializationToTypeLiteral1.ts, 2, 78)) +>TResult : TResult, Symbol(TResult, Decl(genericSpecializationToTypeLiteral1.ts, 2, 8)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>TResult : TResult, Symbol(TResult, Decl(genericSpecializationToTypeLiteral1.ts, 2, 8)) zip(second: T[], resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; ->zip : { (second: IEnumerable, resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; (second: T[], resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; (...params: any[]): IEnumerable; } ->TResult : TResult ->second : T[] ->T : T ->resultSelector : (first: T, second: T, index: number) => TResult ->first : T ->T : T ->second : T ->T : T ->index : number ->TResult : TResult ->IEnumerable : IEnumerable ->TResult : TResult +>zip : { (second: IEnumerable, resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; (second: T[], resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; (...params: any[]): IEnumerable; }, Symbol(zip, Decl(genericSpecializationToTypeLiteral1.ts, 0, 26), Decl(genericSpecializationToTypeLiteral1.ts, 2, 128), Decl(genericSpecializationToTypeLiteral1.ts, 3, 117)) +>TResult : TResult, Symbol(TResult, Decl(genericSpecializationToTypeLiteral1.ts, 3, 8)) +>second : T[], Symbol(second, Decl(genericSpecializationToTypeLiteral1.ts, 3, 17)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>resultSelector : (first: T, second: T, index: number) => TResult, Symbol(resultSelector, Decl(genericSpecializationToTypeLiteral1.ts, 3, 29)) +>first : T, Symbol(first, Decl(genericSpecializationToTypeLiteral1.ts, 3, 47)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>second : T, Symbol(second, Decl(genericSpecializationToTypeLiteral1.ts, 3, 56)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>index : number, Symbol(index, Decl(genericSpecializationToTypeLiteral1.ts, 3, 67)) +>TResult : TResult, Symbol(TResult, Decl(genericSpecializationToTypeLiteral1.ts, 3, 8)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>TResult : TResult, Symbol(TResult, Decl(genericSpecializationToTypeLiteral1.ts, 3, 8)) zip(...params: any[]): IEnumerable; // last one is selector ->zip : { (second: IEnumerable, resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; (second: T[], resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; (...params: any[]): IEnumerable; } ->TResult : TResult ->params : any[] ->IEnumerable : IEnumerable ->TResult : TResult +>zip : { (second: IEnumerable, resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; (second: T[], resultSelector: (first: T, second: T, index: number) => TResult): IEnumerable; (...params: any[]): IEnumerable; }, Symbol(zip, Decl(genericSpecializationToTypeLiteral1.ts, 0, 26), Decl(genericSpecializationToTypeLiteral1.ts, 2, 128), Decl(genericSpecializationToTypeLiteral1.ts, 3, 117)) +>TResult : TResult, Symbol(TResult, Decl(genericSpecializationToTypeLiteral1.ts, 4, 8)) +>params : any[], Symbol(params, Decl(genericSpecializationToTypeLiteral1.ts, 4, 17)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>TResult : TResult, Symbol(TResult, Decl(genericSpecializationToTypeLiteral1.ts, 4, 8)) merge(...params: IEnumerable[]): IEnumerable; ->merge : { (...params: IEnumerable[]): IEnumerable; (...params: T[][]): IEnumerable; } ->TResult : TResult ->params : IEnumerable[] ->IEnumerable : IEnumerable ->T : T ->IEnumerable : IEnumerable ->T : T +>merge : { (...params: IEnumerable[]): IEnumerable; (...params: T[][]): IEnumerable; }, Symbol(merge, Decl(genericSpecializationToTypeLiteral1.ts, 4, 57), Decl(genericSpecializationToTypeLiteral1.ts, 6, 64)) +>TResult : TResult, Symbol(TResult, Decl(genericSpecializationToTypeLiteral1.ts, 6, 10)) +>params : IEnumerable[], Symbol(params, Decl(genericSpecializationToTypeLiteral1.ts, 6, 19)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) merge(...params: T[][]): IEnumerable; ->merge : { (...params: IEnumerable[]): IEnumerable; (...params: T[][]): IEnumerable; } ->TResult : TResult ->params : T[][] ->T : T ->IEnumerable : IEnumerable ->T : T +>merge : { (...params: IEnumerable[]): IEnumerable; (...params: T[][]): IEnumerable; }, Symbol(merge, Decl(genericSpecializationToTypeLiteral1.ts, 4, 57), Decl(genericSpecializationToTypeLiteral1.ts, 6, 64)) +>TResult : TResult, Symbol(TResult, Decl(genericSpecializationToTypeLiteral1.ts, 7, 10)) +>params : T[][], Symbol(params, Decl(genericSpecializationToTypeLiteral1.ts, 7, 19)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) concat(...sequences: IEnumerable[]): IEnumerable; ->concat : { (...sequences: IEnumerable[]): IEnumerable; (...sequences: T[]): IEnumerable; } ->sequences : IEnumerable[] ->IEnumerable : IEnumerable ->T : T ->IEnumerable : IEnumerable ->T : T +>concat : { (...sequences: IEnumerable[]): IEnumerable; (...sequences: T[]): IEnumerable; }, Symbol(concat, Decl(genericSpecializationToTypeLiteral1.ts, 7, 53), Decl(genericSpecializationToTypeLiteral1.ts, 10, 59)) +>sequences : IEnumerable[], Symbol(sequences, Decl(genericSpecializationToTypeLiteral1.ts, 10, 11)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) concat(...sequences: T[]): IEnumerable; ->concat : { (...sequences: IEnumerable[]): IEnumerable; (...sequences: T[]): IEnumerable; } ->sequences : T[] ->T : T ->IEnumerable : IEnumerable ->T : T +>concat : { (...sequences: IEnumerable[]): IEnumerable; (...sequences: T[]): IEnumerable; }, Symbol(concat, Decl(genericSpecializationToTypeLiteral1.ts, 7, 53), Decl(genericSpecializationToTypeLiteral1.ts, 10, 59)) +>sequences : T[], Symbol(sequences, Decl(genericSpecializationToTypeLiteral1.ts, 11, 11)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) insert(index: number, second: IEnumerable): IEnumerable; ->insert : (index: number, second: IEnumerable) => IEnumerable ->index : number ->second : IEnumerable ->IEnumerable : IEnumerable ->T : T ->IEnumerable : IEnumerable ->T : T +>insert : (index: number, second: IEnumerable) => IEnumerable, Symbol(insert, Decl(genericSpecializationToTypeLiteral1.ts, 11, 46)) +>index : number, Symbol(index, Decl(genericSpecializationToTypeLiteral1.ts, 13, 11)) +>second : IEnumerable, Symbol(second, Decl(genericSpecializationToTypeLiteral1.ts, 13, 25)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) sequenceEqual(second: IEnumerable): boolean; ->sequenceEqual : { (second: IEnumerable): boolean; (second: IEnumerable, compareSelector: (element: T) => TCompare): boolean; (second: T[]): boolean; (second: T[], compareSelector: (element: T) => TCompare): boolean; } ->second : IEnumerable ->IEnumerable : IEnumerable ->T : T +>sequenceEqual : { (second: IEnumerable): boolean; (second: IEnumerable, compareSelector: (element: T) => TCompare): boolean; (second: T[]): boolean; (second: T[], compareSelector: (element: T) => TCompare): boolean; }, Symbol(sequenceEqual, Decl(genericSpecializationToTypeLiteral1.ts, 13, 66), Decl(genericSpecializationToTypeLiteral1.ts, 15, 51), Decl(genericSpecializationToTypeLiteral1.ts, 16, 104), Decl(genericSpecializationToTypeLiteral1.ts, 17, 40)) +>second : IEnumerable, Symbol(second, Decl(genericSpecializationToTypeLiteral1.ts, 15, 18)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) sequenceEqual(second: IEnumerable, compareSelector: (element: T) => TCompare): boolean; ->sequenceEqual : { (second: IEnumerable): boolean; (second: IEnumerable, compareSelector: (element: T) => TCompare): boolean; (second: T[]): boolean; (second: T[], compareSelector: (element: T) => TCompare): boolean; } ->TCompare : TCompare ->second : IEnumerable ->IEnumerable : IEnumerable ->T : T ->compareSelector : (element: T) => TCompare ->element : T ->T : T ->TCompare : TCompare +>sequenceEqual : { (second: IEnumerable): boolean; (second: IEnumerable, compareSelector: (element: T) => TCompare): boolean; (second: T[]): boolean; (second: T[], compareSelector: (element: T) => TCompare): boolean; }, Symbol(sequenceEqual, Decl(genericSpecializationToTypeLiteral1.ts, 13, 66), Decl(genericSpecializationToTypeLiteral1.ts, 15, 51), Decl(genericSpecializationToTypeLiteral1.ts, 16, 104), Decl(genericSpecializationToTypeLiteral1.ts, 17, 40)) +>TCompare : TCompare, Symbol(TCompare, Decl(genericSpecializationToTypeLiteral1.ts, 16, 18)) +>second : IEnumerable, Symbol(second, Decl(genericSpecializationToTypeLiteral1.ts, 16, 28)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>compareSelector : (element: T) => TCompare, Symbol(compareSelector, Decl(genericSpecializationToTypeLiteral1.ts, 16, 51)) +>element : T, Symbol(element, Decl(genericSpecializationToTypeLiteral1.ts, 16, 70)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>TCompare : TCompare, Symbol(TCompare, Decl(genericSpecializationToTypeLiteral1.ts, 16, 18)) sequenceEqual(second: T[]): boolean; ->sequenceEqual : { (second: IEnumerable): boolean; (second: IEnumerable, compareSelector: (element: T) => TCompare): boolean; (second: T[]): boolean; (second: T[], compareSelector: (element: T) => TCompare): boolean; } ->second : T[] ->T : T +>sequenceEqual : { (second: IEnumerable): boolean; (second: IEnumerable, compareSelector: (element: T) => TCompare): boolean; (second: T[]): boolean; (second: T[], compareSelector: (element: T) => TCompare): boolean; }, Symbol(sequenceEqual, Decl(genericSpecializationToTypeLiteral1.ts, 13, 66), Decl(genericSpecializationToTypeLiteral1.ts, 15, 51), Decl(genericSpecializationToTypeLiteral1.ts, 16, 104), Decl(genericSpecializationToTypeLiteral1.ts, 17, 40)) +>second : T[], Symbol(second, Decl(genericSpecializationToTypeLiteral1.ts, 17, 18)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) sequenceEqual(second: T[], compareSelector: (element: T) => TCompare): boolean; ->sequenceEqual : { (second: IEnumerable): boolean; (second: IEnumerable, compareSelector: (element: T) => TCompare): boolean; (second: T[]): boolean; (second: T[], compareSelector: (element: T) => TCompare): boolean; } ->TCompare : TCompare ->second : T[] ->T : T ->compareSelector : (element: T) => TCompare ->element : T ->T : T ->TCompare : TCompare +>sequenceEqual : { (second: IEnumerable): boolean; (second: IEnumerable, compareSelector: (element: T) => TCompare): boolean; (second: T[]): boolean; (second: T[], compareSelector: (element: T) => TCompare): boolean; }, Symbol(sequenceEqual, Decl(genericSpecializationToTypeLiteral1.ts, 13, 66), Decl(genericSpecializationToTypeLiteral1.ts, 15, 51), Decl(genericSpecializationToTypeLiteral1.ts, 16, 104), Decl(genericSpecializationToTypeLiteral1.ts, 17, 40)) +>TCompare : TCompare, Symbol(TCompare, Decl(genericSpecializationToTypeLiteral1.ts, 18, 18)) +>second : T[], Symbol(second, Decl(genericSpecializationToTypeLiteral1.ts, 18, 28)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>compareSelector : (element: T) => TCompare, Symbol(compareSelector, Decl(genericSpecializationToTypeLiteral1.ts, 18, 40)) +>element : T, Symbol(element, Decl(genericSpecializationToTypeLiteral1.ts, 18, 59)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>TCompare : TCompare, Symbol(TCompare, Decl(genericSpecializationToTypeLiteral1.ts, 18, 18)) toDictionary(keySelector: (element: T) => TKey): IDictionary; ->toDictionary : { (keySelector: (element: T) => TKey): IDictionary; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue): IDictionary; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue, compareSelector: (key: TKey) => TCompare): IDictionary; } ->TKey : TKey ->keySelector : (element: T) => TKey ->element : T ->T : T ->TKey : TKey ->IDictionary : IDictionary ->TKey : TKey +>toDictionary : { (keySelector: (element: T) => TKey): IDictionary; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue): IDictionary; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue, compareSelector: (key: TKey) => TCompare): IDictionary; }, Symbol(toDictionary, Decl(genericSpecializationToTypeLiteral1.ts, 18, 93), Decl(genericSpecializationToTypeLiteral1.ts, 20, 82), Decl(genericSpecializationToTypeLiteral1.ts, 21, 134)) +>TKey : TKey, Symbol(TKey, Decl(genericSpecializationToTypeLiteral1.ts, 20, 17)) +>keySelector : (element: T) => TKey, Symbol(keySelector, Decl(genericSpecializationToTypeLiteral1.ts, 20, 23)) +>element : T, Symbol(element, Decl(genericSpecializationToTypeLiteral1.ts, 20, 37)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>TKey : TKey, Symbol(TKey, Decl(genericSpecializationToTypeLiteral1.ts, 20, 17)) +>IDictionary : IDictionary, Symbol(IDictionary, Decl(genericSpecializationToTypeLiteral1.ts, 23, 1)) +>TKey : TKey, Symbol(TKey, Decl(genericSpecializationToTypeLiteral1.ts, 20, 17)) toDictionary(keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue): IDictionary; ->toDictionary : { (keySelector: (element: T) => TKey): IDictionary; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue): IDictionary; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue, compareSelector: (key: TKey) => TCompare): IDictionary; } ->TKey : TKey ->TValue : TValue ->keySelector : (element: T) => TKey ->element : T ->T : T ->TKey : TKey ->elementSelector : (element: T) => TValue ->element : T ->T : T ->TValue : TValue ->IDictionary : IDictionary ->TKey : TKey ->TValue : TValue +>toDictionary : { (keySelector: (element: T) => TKey): IDictionary; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue): IDictionary; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue, compareSelector: (key: TKey) => TCompare): IDictionary; }, Symbol(toDictionary, Decl(genericSpecializationToTypeLiteral1.ts, 18, 93), Decl(genericSpecializationToTypeLiteral1.ts, 20, 82), Decl(genericSpecializationToTypeLiteral1.ts, 21, 134)) +>TKey : TKey, Symbol(TKey, Decl(genericSpecializationToTypeLiteral1.ts, 21, 17)) +>TValue : TValue, Symbol(TValue, Decl(genericSpecializationToTypeLiteral1.ts, 21, 22)) +>keySelector : (element: T) => TKey, Symbol(keySelector, Decl(genericSpecializationToTypeLiteral1.ts, 21, 31)) +>element : T, Symbol(element, Decl(genericSpecializationToTypeLiteral1.ts, 21, 45)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>TKey : TKey, Symbol(TKey, Decl(genericSpecializationToTypeLiteral1.ts, 21, 17)) +>elementSelector : (element: T) => TValue, Symbol(elementSelector, Decl(genericSpecializationToTypeLiteral1.ts, 21, 65)) +>element : T, Symbol(element, Decl(genericSpecializationToTypeLiteral1.ts, 21, 84)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>TValue : TValue, Symbol(TValue, Decl(genericSpecializationToTypeLiteral1.ts, 21, 22)) +>IDictionary : IDictionary, Symbol(IDictionary, Decl(genericSpecializationToTypeLiteral1.ts, 23, 1)) +>TKey : TKey, Symbol(TKey, Decl(genericSpecializationToTypeLiteral1.ts, 21, 17)) +>TValue : TValue, Symbol(TValue, Decl(genericSpecializationToTypeLiteral1.ts, 21, 22)) toDictionary(keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue, compareSelector: (key: TKey) => TCompare): IDictionary; ->toDictionary : { (keySelector: (element: T) => TKey): IDictionary; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue): IDictionary; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue, compareSelector: (key: TKey) => TCompare): IDictionary; } ->TKey : TKey ->TValue : TValue ->TCompare : TCompare ->keySelector : (element: T) => TKey ->element : T ->T : T ->TKey : TKey ->elementSelector : (element: T) => TValue ->element : T ->T : T ->TValue : TValue ->compareSelector : (key: TKey) => TCompare ->key : TKey ->TKey : TKey ->TCompare : TCompare ->IDictionary : IDictionary ->TKey : TKey ->TValue : TValue +>toDictionary : { (keySelector: (element: T) => TKey): IDictionary; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue): IDictionary; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TValue, compareSelector: (key: TKey) => TCompare): IDictionary; }, Symbol(toDictionary, Decl(genericSpecializationToTypeLiteral1.ts, 18, 93), Decl(genericSpecializationToTypeLiteral1.ts, 20, 82), Decl(genericSpecializationToTypeLiteral1.ts, 21, 134)) +>TKey : TKey, Symbol(TKey, Decl(genericSpecializationToTypeLiteral1.ts, 22, 17)) +>TValue : TValue, Symbol(TValue, Decl(genericSpecializationToTypeLiteral1.ts, 22, 22)) +>TCompare : TCompare, Symbol(TCompare, Decl(genericSpecializationToTypeLiteral1.ts, 22, 30)) +>keySelector : (element: T) => TKey, Symbol(keySelector, Decl(genericSpecializationToTypeLiteral1.ts, 22, 41)) +>element : T, Symbol(element, Decl(genericSpecializationToTypeLiteral1.ts, 22, 55)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>TKey : TKey, Symbol(TKey, Decl(genericSpecializationToTypeLiteral1.ts, 22, 17)) +>elementSelector : (element: T) => TValue, Symbol(elementSelector, Decl(genericSpecializationToTypeLiteral1.ts, 22, 75)) +>element : T, Symbol(element, Decl(genericSpecializationToTypeLiteral1.ts, 22, 94)) +>T : T, Symbol(T, Decl(genericSpecializationToTypeLiteral1.ts, 0, 22)) +>TValue : TValue, Symbol(TValue, Decl(genericSpecializationToTypeLiteral1.ts, 22, 22)) +>compareSelector : (key: TKey) => TCompare, Symbol(compareSelector, Decl(genericSpecializationToTypeLiteral1.ts, 22, 116)) +>key : TKey, Symbol(key, Decl(genericSpecializationToTypeLiteral1.ts, 22, 135)) +>TKey : TKey, Symbol(TKey, Decl(genericSpecializationToTypeLiteral1.ts, 22, 17)) +>TCompare : TCompare, Symbol(TCompare, Decl(genericSpecializationToTypeLiteral1.ts, 22, 30)) +>IDictionary : IDictionary, Symbol(IDictionary, Decl(genericSpecializationToTypeLiteral1.ts, 23, 1)) +>TKey : TKey, Symbol(TKey, Decl(genericSpecializationToTypeLiteral1.ts, 22, 17)) +>TValue : TValue, Symbol(TValue, Decl(genericSpecializationToTypeLiteral1.ts, 22, 22)) } interface IDictionary { ->IDictionary : IDictionary ->TKey : TKey ->TValue : TValue +>IDictionary : IDictionary, Symbol(IDictionary, Decl(genericSpecializationToTypeLiteral1.ts, 23, 1)) +>TKey : TKey, Symbol(TKey, Decl(genericSpecializationToTypeLiteral1.ts, 25, 22)) +>TValue : TValue, Symbol(TValue, Decl(genericSpecializationToTypeLiteral1.ts, 25, 27)) toEnumerable(): IEnumerable<{ key: TKey; value: TValue }>; ->toEnumerable : () => IEnumerable<{ key: TKey; value: TValue; }> ->IEnumerable : IEnumerable ->key : TKey ->TKey : TKey ->value : TValue ->TValue : TValue +>toEnumerable : () => IEnumerable<{ key: TKey; value: TValue; }>, Symbol(toEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 25, 37)) +>IEnumerable : IEnumerable, Symbol(IEnumerable, Decl(genericSpecializationToTypeLiteral1.ts, 0, 0)) +>key : TKey, Symbol(key, Decl(genericSpecializationToTypeLiteral1.ts, 26, 33)) +>TKey : TKey, Symbol(TKey, Decl(genericSpecializationToTypeLiteral1.ts, 25, 22)) +>value : TValue, Symbol(value, Decl(genericSpecializationToTypeLiteral1.ts, 26, 44)) +>TValue : TValue, Symbol(TValue, Decl(genericSpecializationToTypeLiteral1.ts, 25, 27)) } diff --git a/tests/baselines/reference/genericSpecializations1.types b/tests/baselines/reference/genericSpecializations1.types index 3b60a3b9987..fd147db0994 100644 --- a/tests/baselines/reference/genericSpecializations1.types +++ b/tests/baselines/reference/genericSpecializations1.types @@ -1,42 +1,45 @@ === tests/cases/compiler/genericSpecializations1.ts === interface IFoo { ->IFoo : IFoo ->T : T +>IFoo : IFoo, Symbol(IFoo, Decl(genericSpecializations1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericSpecializations1.ts, 0, 15)) foo(x: T): T; // no error on implementors because IFoo's T is different from foo's T ->foo : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(genericSpecializations1.ts, 0, 19)) +>T : T, Symbol(T, Decl(genericSpecializations1.ts, 1, 8)) +>x : T, Symbol(x, Decl(genericSpecializations1.ts, 1, 11)) +>T : T, Symbol(T, Decl(genericSpecializations1.ts, 1, 8)) +>T : T, Symbol(T, Decl(genericSpecializations1.ts, 1, 8)) } class IntFooBad implements IFoo { ->IntFooBad : IntFooBad ->IFoo : IFoo +>IntFooBad : IntFooBad, Symbol(IntFooBad, Decl(genericSpecializations1.ts, 2, 1)) +>IFoo : IFoo, Symbol(IFoo, Decl(genericSpecializations1.ts, 0, 0)) foo(x: string): string { return null; } ->foo : (x: string) => string ->x : string +>foo : (x: string) => string, Symbol(foo, Decl(genericSpecializations1.ts, 4, 41)) +>x : string, Symbol(x, Decl(genericSpecializations1.ts, 5, 8)) +>null : null } class StringFoo2 implements IFoo { ->StringFoo2 : StringFoo2 ->IFoo : IFoo +>StringFoo2 : StringFoo2, Symbol(StringFoo2, Decl(genericSpecializations1.ts, 6, 1)) +>IFoo : IFoo, Symbol(IFoo, Decl(genericSpecializations1.ts, 0, 0)) foo(x: string): string { return null; } ->foo : (x: string) => string ->x : string +>foo : (x: string) => string, Symbol(foo, Decl(genericSpecializations1.ts, 8, 42)) +>x : string, Symbol(x, Decl(genericSpecializations1.ts, 9, 8)) +>null : null } class StringFoo3 implements IFoo { ->StringFoo3 : StringFoo3 ->IFoo : IFoo +>StringFoo3 : StringFoo3, Symbol(StringFoo3, Decl(genericSpecializations1.ts, 10, 1)) +>IFoo : IFoo, Symbol(IFoo, Decl(genericSpecializations1.ts, 0, 0)) foo(x: T): T { return null; } ->foo : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(genericSpecializations1.ts, 12, 42)) +>T : T, Symbol(T, Decl(genericSpecializations1.ts, 13, 8)) +>x : T, Symbol(x, Decl(genericSpecializations1.ts, 13, 11)) +>T : T, Symbol(T, Decl(genericSpecializations1.ts, 13, 8)) +>T : T, Symbol(T, Decl(genericSpecializations1.ts, 13, 8)) +>null : null } diff --git a/tests/baselines/reference/genericStaticAnyTypeFunction.types b/tests/baselines/reference/genericStaticAnyTypeFunction.types index 9cf511ca0d9..4185b92e43b 100644 --- a/tests/baselines/reference/genericStaticAnyTypeFunction.types +++ b/tests/baselines/reference/genericStaticAnyTypeFunction.types @@ -1,36 +1,38 @@ === tests/cases/compiler/genericStaticAnyTypeFunction.ts === class A { ->A : A +>A : A, Symbol(A, Decl(genericStaticAnyTypeFunction.ts, 0, 0)) static one(source: T, value: number): T { ->one : (source: T, value: number) => T ->T : T ->source : T ->T : T ->value : number ->T : T +>one : (source: T, value: number) => T, Symbol(A.one, Decl(genericStaticAnyTypeFunction.ts, 0, 9)) +>T : T, Symbol(T, Decl(genericStaticAnyTypeFunction.ts, 2, 15)) +>source : T, Symbol(source, Decl(genericStaticAnyTypeFunction.ts, 2, 18)) +>T : T, Symbol(T, Decl(genericStaticAnyTypeFunction.ts, 2, 15)) +>value : number, Symbol(value, Decl(genericStaticAnyTypeFunction.ts, 2, 28)) +>T : T, Symbol(T, Decl(genericStaticAnyTypeFunction.ts, 2, 15)) return source; ->source : T +>source : T, Symbol(source, Decl(genericStaticAnyTypeFunction.ts, 2, 18)) } static goo() { return 0; } ->goo : () => number +>goo : () => number, Symbol(A.goo, Decl(genericStaticAnyTypeFunction.ts, 6, 5)) +>0 : number static two(source: T): T { ->two : (source: T) => T ->T : T ->source : T ->T : T ->T : T +>two : (source: T) => T, Symbol(A.two, Decl(genericStaticAnyTypeFunction.ts, 7, 30)) +>T : T, Symbol(T, Decl(genericStaticAnyTypeFunction.ts, 9, 15)) +>source : T, Symbol(source, Decl(genericStaticAnyTypeFunction.ts, 9, 18)) +>T : T, Symbol(T, Decl(genericStaticAnyTypeFunction.ts, 9, 15)) +>T : T, Symbol(T, Decl(genericStaticAnyTypeFunction.ts, 9, 15)) return this.one(source, 42); // should not error >this.one(source, 42) : T ->this.one : (source: T, value: number) => T ->this : typeof A ->one : (source: T, value: number) => T ->T : T ->source : T +>this.one : (source: T, value: number) => T, Symbol(A.one, Decl(genericStaticAnyTypeFunction.ts, 0, 9)) +>this : typeof A, Symbol(A, Decl(genericStaticAnyTypeFunction.ts, 0, 0)) +>one : (source: T, value: number) => T, Symbol(A.one, Decl(genericStaticAnyTypeFunction.ts, 0, 9)) +>T : T, Symbol(T, Decl(genericStaticAnyTypeFunction.ts, 9, 15)) +>source : T, Symbol(source, Decl(genericStaticAnyTypeFunction.ts, 9, 18)) +>42 : number } diff --git a/tests/baselines/reference/genericTypeArgumentInference1.types b/tests/baselines/reference/genericTypeArgumentInference1.types index c718ccca620..0939f1f3133 100644 --- a/tests/baselines/reference/genericTypeArgumentInference1.types +++ b/tests/baselines/reference/genericTypeArgumentInference1.types @@ -1,88 +1,94 @@ === tests/cases/compiler/genericTypeArgumentInference1.ts === module Underscore { ->Underscore : unknown +>Underscore : any, Symbol(Underscore, Decl(genericTypeArgumentInference1.ts, 0, 0)) export interface Iterator { ->Iterator : Iterator ->T : T ->U : U +>Iterator : Iterator, Symbol(Iterator, Decl(genericTypeArgumentInference1.ts, 0, 19)) +>T : T, Symbol(T, Decl(genericTypeArgumentInference1.ts, 1, 30)) +>U : U, Symbol(U, Decl(genericTypeArgumentInference1.ts, 1, 32)) (value: T, index: any, list: any): U; ->value : T ->T : T ->index : any ->list : any ->U : U +>value : T, Symbol(value, Decl(genericTypeArgumentInference1.ts, 2, 9)) +>T : T, Symbol(T, Decl(genericTypeArgumentInference1.ts, 1, 30)) +>index : any, Symbol(index, Decl(genericTypeArgumentInference1.ts, 2, 18)) +>list : any, Symbol(list, Decl(genericTypeArgumentInference1.ts, 2, 30)) +>U : U, Symbol(U, Decl(genericTypeArgumentInference1.ts, 1, 32)) } export interface Static { ->Static : Static +>Static : Static, Symbol(Static, Decl(genericTypeArgumentInference1.ts, 3, 5)) all(list: T[], iterator?: Iterator, context?: any): T; ->all : (list: T[], iterator?: Iterator, context?: any) => T ->T : T ->list : T[] ->T : T ->iterator : Iterator ->Iterator : Iterator ->T : T ->context : any ->T : T +>all : (list: T[], iterator?: Iterator, context?: any) => T, Symbol(all, Decl(genericTypeArgumentInference1.ts, 4, 29)) +>T : T, Symbol(T, Decl(genericTypeArgumentInference1.ts, 5, 12)) +>list : T[], Symbol(list, Decl(genericTypeArgumentInference1.ts, 5, 15)) +>T : T, Symbol(T, Decl(genericTypeArgumentInference1.ts, 5, 12)) +>iterator : Iterator, Symbol(iterator, Decl(genericTypeArgumentInference1.ts, 5, 25)) +>Iterator : Iterator, Symbol(Iterator, Decl(genericTypeArgumentInference1.ts, 0, 19)) +>T : T, Symbol(T, Decl(genericTypeArgumentInference1.ts, 5, 12)) +>context : any, Symbol(context, Decl(genericTypeArgumentInference1.ts, 5, 58)) +>T : T, Symbol(T, Decl(genericTypeArgumentInference1.ts, 5, 12)) identity(value: T): T; ->identity : (value: T) => T ->T : T ->value : T ->T : T ->T : T +>identity : (value: T) => T, Symbol(identity, Decl(genericTypeArgumentInference1.ts, 5, 77)) +>T : T, Symbol(T, Decl(genericTypeArgumentInference1.ts, 6, 17)) +>value : T, Symbol(value, Decl(genericTypeArgumentInference1.ts, 6, 20)) +>T : T, Symbol(T, Decl(genericTypeArgumentInference1.ts, 6, 17)) +>T : T, Symbol(T, Decl(genericTypeArgumentInference1.ts, 6, 17)) } } declare var _: Underscore.Static; ->_ : Underscore.Static ->Underscore : unknown ->Static : Underscore.Static +>_ : Underscore.Static, Symbol(_, Decl(genericTypeArgumentInference1.ts, 9, 11)) +>Underscore : any, Symbol(Underscore, Decl(genericTypeArgumentInference1.ts, 0, 0)) +>Static : Underscore.Static, Symbol(Underscore.Static, Decl(genericTypeArgumentInference1.ts, 3, 5)) var r = _.all([true, 1, null, 'yes'], _.identity); ->r : string | number | boolean +>r : string | number | boolean, Symbol(r, Decl(genericTypeArgumentInference1.ts, 11, 3)) >_.all([true, 1, null, 'yes'], _.identity) : string | number | boolean ->_.all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T ->_ : Underscore.Static ->all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T +>_.all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T, Symbol(Underscore.Static.all, Decl(genericTypeArgumentInference1.ts, 4, 29)) +>_ : Underscore.Static, Symbol(_, Decl(genericTypeArgumentInference1.ts, 9, 11)) +>all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T, Symbol(Underscore.Static.all, Decl(genericTypeArgumentInference1.ts, 4, 29)) >[true, 1, null, 'yes'] : (string | number | boolean)[] ->_.identity : (value: T) => T ->_ : Underscore.Static ->identity : (value: T) => T +>true : boolean +>1 : number +>null : null +>'yes' : string +>_.identity : (value: T) => T, Symbol(Underscore.Static.identity, Decl(genericTypeArgumentInference1.ts, 5, 77)) +>_ : Underscore.Static, Symbol(_, Decl(genericTypeArgumentInference1.ts, 9, 11)) +>identity : (value: T) => T, Symbol(Underscore.Static.identity, Decl(genericTypeArgumentInference1.ts, 5, 77)) var r2 = _.all([true], _.identity); ->r2 : boolean +>r2 : boolean, Symbol(r2, Decl(genericTypeArgumentInference1.ts, 12, 3)) >_.all([true], _.identity) : boolean ->_.all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T ->_ : Underscore.Static ->all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T +>_.all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T, Symbol(Underscore.Static.all, Decl(genericTypeArgumentInference1.ts, 4, 29)) +>_ : Underscore.Static, Symbol(_, Decl(genericTypeArgumentInference1.ts, 9, 11)) +>all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T, Symbol(Underscore.Static.all, Decl(genericTypeArgumentInference1.ts, 4, 29)) >[true] : boolean[] ->_.identity : (value: T) => T ->_ : Underscore.Static ->identity : (value: T) => T +>true : boolean +>_.identity : (value: T) => T, Symbol(Underscore.Static.identity, Decl(genericTypeArgumentInference1.ts, 5, 77)) +>_ : Underscore.Static, Symbol(_, Decl(genericTypeArgumentInference1.ts, 9, 11)) +>identity : (value: T) => T, Symbol(Underscore.Static.identity, Decl(genericTypeArgumentInference1.ts, 5, 77)) var r3 = _.all([], _.identity); ->r3 : any +>r3 : any, Symbol(r3, Decl(genericTypeArgumentInference1.ts, 13, 3)) >_.all([], _.identity) : any ->_.all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T ->_ : Underscore.Static ->all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T +>_.all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T, Symbol(Underscore.Static.all, Decl(genericTypeArgumentInference1.ts, 4, 29)) +>_ : Underscore.Static, Symbol(_, Decl(genericTypeArgumentInference1.ts, 9, 11)) +>all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T, Symbol(Underscore.Static.all, Decl(genericTypeArgumentInference1.ts, 4, 29)) >[] : undefined[] ->_.identity : (value: T) => T ->_ : Underscore.Static ->identity : (value: T) => T +>_.identity : (value: T) => T, Symbol(Underscore.Static.identity, Decl(genericTypeArgumentInference1.ts, 5, 77)) +>_ : Underscore.Static, Symbol(_, Decl(genericTypeArgumentInference1.ts, 9, 11)) +>identity : (value: T) => T, Symbol(Underscore.Static.identity, Decl(genericTypeArgumentInference1.ts, 5, 77)) var r4 = _.all([true], _.identity); ->r4 : any +>r4 : any, Symbol(r4, Decl(genericTypeArgumentInference1.ts, 14, 3)) >_.all([true], _.identity) : any ->_.all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T ->_ : Underscore.Static ->all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T +>_.all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T, Symbol(Underscore.Static.all, Decl(genericTypeArgumentInference1.ts, 4, 29)) +>_ : Underscore.Static, Symbol(_, Decl(genericTypeArgumentInference1.ts, 9, 11)) +>all : (list: T[], iterator?: Underscore.Iterator, context?: any) => T, Symbol(Underscore.Static.all, Decl(genericTypeArgumentInference1.ts, 4, 29)) >[true] : any[] >true : any ->_.identity : (value: T) => T ->_ : Underscore.Static ->identity : (value: T) => T +>true : boolean +>_.identity : (value: T) => T, Symbol(Underscore.Static.identity, Decl(genericTypeArgumentInference1.ts, 5, 77)) +>_ : Underscore.Static, Symbol(_, Decl(genericTypeArgumentInference1.ts, 9, 11)) +>identity : (value: T) => T, Symbol(Underscore.Static.identity, Decl(genericTypeArgumentInference1.ts, 5, 77)) diff --git a/tests/baselines/reference/genericTypeAssertions3.types b/tests/baselines/reference/genericTypeAssertions3.types index 53435145939..475b2261703 100644 --- a/tests/baselines/reference/genericTypeAssertions3.types +++ b/tests/baselines/reference/genericTypeAssertions3.types @@ -1,23 +1,25 @@ === tests/cases/compiler/genericTypeAssertions3.ts === var r = < (x: T) => T > ((x) => { return null; }); // bug was 'could not find dotted symbol T' on x's annotation in the type assertion instead of no error ->r : (x: T) => T +>r : (x: T) => T, Symbol(r, Decl(genericTypeAssertions3.ts, 0, 3)) >< (x: T) => T > ((x) => { return null; }) : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>T : T, Symbol(T, Decl(genericTypeAssertions3.ts, 0, 11)) +>x : T, Symbol(x, Decl(genericTypeAssertions3.ts, 0, 14)) +>T : T, Symbol(T, Decl(genericTypeAssertions3.ts, 0, 11)) +>T : T, Symbol(T, Decl(genericTypeAssertions3.ts, 0, 11)) >((x) => { return null; }) : (x: any) => any >(x) => { return null; } : (x: any) => any ->x : any +>x : any, Symbol(x, Decl(genericTypeAssertions3.ts, 0, 29)) +>null : null var s = < (x: T) => T > ((x: any) => { return null; }); // no error ->s : (x: T) => T +>s : (x: T) => T, Symbol(s, Decl(genericTypeAssertions3.ts, 1, 3)) >< (x: T) => T > ((x: any) => { return null; }) : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>T : T, Symbol(T, Decl(genericTypeAssertions3.ts, 1, 11)) +>x : T, Symbol(x, Decl(genericTypeAssertions3.ts, 1, 14)) +>T : T, Symbol(T, Decl(genericTypeAssertions3.ts, 1, 11)) +>T : T, Symbol(T, Decl(genericTypeAssertions3.ts, 1, 11)) >((x: any) => { return null; }) : (x: any) => any >(x: any) => { return null; } : (x: any) => any ->x : any +>x : any, Symbol(x, Decl(genericTypeAssertions3.ts, 1, 29)) +>null : null diff --git a/tests/baselines/reference/genericTypeParameterEquivalence2.types b/tests/baselines/reference/genericTypeParameterEquivalence2.types index 09e13b12f7b..ddefffaee48 100644 --- a/tests/baselines/reference/genericTypeParameterEquivalence2.types +++ b/tests/baselines/reference/genericTypeParameterEquivalence2.types @@ -1,167 +1,169 @@ === tests/cases/compiler/genericTypeParameterEquivalence2.ts === // compose :: (b->c) -> (a->b) -> (a->c) function compose(f: (b: B) => C, g: (a:A) => B): (a:A) => C { ->compose : (f: (b: B) => C, g: (a: A) => B) => (a: A) => C ->A : A ->B : B ->C : C ->f : (b: B) => C ->b : B ->B : B ->C : C ->g : (a: A) => B ->a : A ->A : A ->B : B ->a : A ->A : A ->C : C +>compose : (f: (b: B) => C, g: (a: A) => B) => (a: A) => C, Symbol(compose, Decl(genericTypeParameterEquivalence2.ts, 0, 0)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 1, 17)) +>B : B, Symbol(B, Decl(genericTypeParameterEquivalence2.ts, 1, 19)) +>C : C, Symbol(C, Decl(genericTypeParameterEquivalence2.ts, 1, 22)) +>f : (b: B) => C, Symbol(f, Decl(genericTypeParameterEquivalence2.ts, 1, 26)) +>b : B, Symbol(b, Decl(genericTypeParameterEquivalence2.ts, 1, 30)) +>B : B, Symbol(B, Decl(genericTypeParameterEquivalence2.ts, 1, 19)) +>C : C, Symbol(C, Decl(genericTypeParameterEquivalence2.ts, 1, 22)) +>g : (a: A) => B, Symbol(g, Decl(genericTypeParameterEquivalence2.ts, 1, 41)) +>a : A, Symbol(a, Decl(genericTypeParameterEquivalence2.ts, 1, 46)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 1, 17)) +>B : B, Symbol(B, Decl(genericTypeParameterEquivalence2.ts, 1, 19)) +>a : A, Symbol(a, Decl(genericTypeParameterEquivalence2.ts, 1, 59)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 1, 17)) +>C : C, Symbol(C, Decl(genericTypeParameterEquivalence2.ts, 1, 22)) return function (a:A) : C { >function (a:A) : C { return f(g.apply(null, a)); } : (a: A) => C ->a : A ->A : A ->C : C +>a : A, Symbol(a, Decl(genericTypeParameterEquivalence2.ts, 2, 21)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 1, 17)) +>C : C, Symbol(C, Decl(genericTypeParameterEquivalence2.ts, 1, 22)) return f(g.apply(null, a)); >f(g.apply(null, a)) : C ->f : (b: B) => C +>f : (b: B) => C, Symbol(f, Decl(genericTypeParameterEquivalence2.ts, 1, 26)) >g.apply(null, a) : any ->g.apply : (thisArg: any, argArray?: any) => any ->g : (a: A) => B ->apply : (thisArg: any, argArray?: any) => any ->a : A +>g.apply : (thisArg: any, argArray?: any) => any, Symbol(Function.apply, Decl(lib.d.ts, 228, 20)) +>g : (a: A) => B, Symbol(g, Decl(genericTypeParameterEquivalence2.ts, 1, 41)) +>apply : (thisArg: any, argArray?: any) => any, Symbol(Function.apply, Decl(lib.d.ts, 228, 20)) +>null : null +>a : A, Symbol(a, Decl(genericTypeParameterEquivalence2.ts, 2, 21)) }; } // forEach :: [a] -> (a -> ()) -> () function forEach(list: A[], f: (a: A, n?: number) => void ): void { ->forEach : (list: A[], f: (a: A, n?: number) => void) => void ->A : A ->list : A[] ->A : A ->f : (a: A, n?: number) => void ->a : A ->A : A ->n : number +>forEach : (list: A[], f: (a: A, n?: number) => void) => void, Symbol(forEach, Decl(genericTypeParameterEquivalence2.ts, 5, 1)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 8, 17)) +>list : A[], Symbol(list, Decl(genericTypeParameterEquivalence2.ts, 8, 20)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 8, 17)) +>f : (a: A, n?: number) => void, Symbol(f, Decl(genericTypeParameterEquivalence2.ts, 8, 30)) +>a : A, Symbol(a, Decl(genericTypeParameterEquivalence2.ts, 8, 35)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 8, 17)) +>n : number, Symbol(n, Decl(genericTypeParameterEquivalence2.ts, 8, 40)) for (var i = 0; i < list.length; ++i) { ->i : number +>i : number, Symbol(i, Decl(genericTypeParameterEquivalence2.ts, 9, 12)) +>0 : number >i < list.length : boolean ->i : number ->list.length : number ->list : A[] ->length : number +>i : number, Symbol(i, Decl(genericTypeParameterEquivalence2.ts, 9, 12)) +>list.length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) +>list : A[], Symbol(list, Decl(genericTypeParameterEquivalence2.ts, 8, 20)) +>length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) >++i : number ->i : number +>i : number, Symbol(i, Decl(genericTypeParameterEquivalence2.ts, 9, 12)) f(list[i], i); >f(list[i], i) : void ->f : (a: A, n?: number) => void +>f : (a: A, n?: number) => void, Symbol(f, Decl(genericTypeParameterEquivalence2.ts, 8, 30)) >list[i] : A ->list : A[] ->i : number ->i : number +>list : A[], Symbol(list, Decl(genericTypeParameterEquivalence2.ts, 8, 20)) +>i : number, Symbol(i, Decl(genericTypeParameterEquivalence2.ts, 9, 12)) +>i : number, Symbol(i, Decl(genericTypeParameterEquivalence2.ts, 9, 12)) } } // filter :: (a->bool) -> [a] -> [a] function filter(f: (a: A) => boolean, ar: A[]): A[] { ->filter : (f: (a: A) => boolean, ar: A[]) => A[] ->A : A ->f : (a: A) => boolean ->a : A ->A : A ->ar : A[] ->A : A ->A : A +>filter : (f: (a: A) => boolean, ar: A[]) => A[], Symbol(filter, Decl(genericTypeParameterEquivalence2.ts, 12, 1)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 15, 16)) +>f : (a: A) => boolean, Symbol(f, Decl(genericTypeParameterEquivalence2.ts, 15, 19)) +>a : A, Symbol(a, Decl(genericTypeParameterEquivalence2.ts, 15, 23)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 15, 16)) +>ar : A[], Symbol(ar, Decl(genericTypeParameterEquivalence2.ts, 15, 40)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 15, 16)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 15, 16)) var ret = []; ->ret : any[] +>ret : any[], Symbol(ret, Decl(genericTypeParameterEquivalence2.ts, 16, 7)) >[] : undefined[] forEach(ar, (el) => { >forEach(ar, (el) => { if (f(el)) { ret.push(el); } } ) : void ->forEach : (list: A[], f: (a: A, n?: number) => void) => void ->ar : A[] +>forEach : (list: A[], f: (a: A, n?: number) => void) => void, Symbol(forEach, Decl(genericTypeParameterEquivalence2.ts, 5, 1)) +>ar : A[], Symbol(ar, Decl(genericTypeParameterEquivalence2.ts, 15, 40)) >(el) => { if (f(el)) { ret.push(el); } } : (el: A) => void ->el : A +>el : A, Symbol(el, Decl(genericTypeParameterEquivalence2.ts, 17, 17)) if (f(el)) { >f(el) : boolean ->f : (a: A) => boolean ->el : A +>f : (a: A) => boolean, Symbol(f, Decl(genericTypeParameterEquivalence2.ts, 15, 19)) +>el : A, Symbol(el, Decl(genericTypeParameterEquivalence2.ts, 17, 17)) ret.push(el); >ret.push(el) : number ->ret.push : (...items: any[]) => number ->ret : any[] ->push : (...items: any[]) => number ->el : A +>ret.push : (...items: any[]) => number, Symbol(Array.push, Decl(lib.d.ts, 1016, 29)) +>ret : any[], Symbol(ret, Decl(genericTypeParameterEquivalence2.ts, 16, 7)) +>push : (...items: any[]) => number, Symbol(Array.push, Decl(lib.d.ts, 1016, 29)) +>el : A, Symbol(el, Decl(genericTypeParameterEquivalence2.ts, 17, 17)) } } ); return ret; ->ret : any[] +>ret : any[], Symbol(ret, Decl(genericTypeParameterEquivalence2.ts, 16, 7)) } // length :: [a] -> Num function length2(ar: A[]): number { ->length2 : (ar: A[]) => number ->A : A ->ar : A[] ->A : A +>length2 : (ar: A[]) => number, Symbol(length2, Decl(genericTypeParameterEquivalence2.ts, 24, 1)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 27, 17)) +>ar : A[], Symbol(ar, Decl(genericTypeParameterEquivalence2.ts, 27, 20)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 27, 17)) return ar.length; ->ar.length : number ->ar : A[] ->length : number +>ar.length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) +>ar : A[], Symbol(ar, Decl(genericTypeParameterEquivalence2.ts, 27, 20)) +>length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) } // curry1 :: ((a,b)->c) -> (a->(b->c)) function curry1(f: (a: A, b: B) => C): (ax: A) => (bx: B) => C { ->curry1 : (f: (a: A, b: B) => C) => (ax: A) => (bx: B) => C ->A : A ->B : B ->C : C ->f : (a: A, b: B) => C ->a : A ->A : A ->b : B ->B : B ->C : C ->ax : A ->A : A ->bx : B ->B : B ->C : C +>curry1 : (f: (a: A, b: B) => C) => (ax: A) => (bx: B) => C, Symbol(curry1, Decl(genericTypeParameterEquivalence2.ts, 29, 1)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 32, 16)) +>B : B, Symbol(B, Decl(genericTypeParameterEquivalence2.ts, 32, 18)) +>C : C, Symbol(C, Decl(genericTypeParameterEquivalence2.ts, 32, 21)) +>f : (a: A, b: B) => C, Symbol(f, Decl(genericTypeParameterEquivalence2.ts, 32, 25)) +>a : A, Symbol(a, Decl(genericTypeParameterEquivalence2.ts, 32, 29)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 32, 16)) +>b : B, Symbol(b, Decl(genericTypeParameterEquivalence2.ts, 32, 34)) +>B : B, Symbol(B, Decl(genericTypeParameterEquivalence2.ts, 32, 18)) +>C : C, Symbol(C, Decl(genericTypeParameterEquivalence2.ts, 32, 21)) +>ax : A, Symbol(ax, Decl(genericTypeParameterEquivalence2.ts, 32, 49)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 32, 16)) +>bx : B, Symbol(bx, Decl(genericTypeParameterEquivalence2.ts, 32, 60)) +>B : B, Symbol(B, Decl(genericTypeParameterEquivalence2.ts, 32, 18)) +>C : C, Symbol(C, Decl(genericTypeParameterEquivalence2.ts, 32, 21)) return function (ay: A) { >function (ay: A) { return function (by: B) { return f(ay, by); }; } : (ay: A) => (by: B) => C ->ay : A ->A : A +>ay : A, Symbol(ay, Decl(genericTypeParameterEquivalence2.ts, 33, 21)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 32, 16)) return function (by: B) { >function (by: B) { return f(ay, by); } : (by: B) => C ->by : B ->B : B +>by : B, Symbol(by, Decl(genericTypeParameterEquivalence2.ts, 34, 25)) +>B : B, Symbol(B, Decl(genericTypeParameterEquivalence2.ts, 32, 18)) return f(ay, by); >f(ay, by) : C ->f : (a: A, b: B) => C ->ay : A ->by : B +>f : (a: A, b: B) => C, Symbol(f, Decl(genericTypeParameterEquivalence2.ts, 32, 25)) +>ay : A, Symbol(ay, Decl(genericTypeParameterEquivalence2.ts, 33, 21)) +>by : B, Symbol(by, Decl(genericTypeParameterEquivalence2.ts, 34, 25)) }; }; } var cfilter = curry1(filter); ->cfilter : (ax: {}) => (bx: {}) => {}[] +>cfilter : (ax: {}) => (bx: {}) => {}[], Symbol(cfilter, Decl(genericTypeParameterEquivalence2.ts, 40, 3)) >curry1(filter) : (ax: {}) => (bx: {}) => {}[] ->curry1 : (f: (a: A, b: B) => C) => (ax: A) => (bx: B) => C ->filter : (f: (a: A) => boolean, ar: A[]) => A[] +>curry1 : (f: (a: A, b: B) => C) => (ax: A) => (bx: B) => C, Symbol(curry1, Decl(genericTypeParameterEquivalence2.ts, 29, 1)) +>filter : (f: (a: A) => boolean, ar: A[]) => A[], Symbol(filter, Decl(genericTypeParameterEquivalence2.ts, 12, 1)) // compose :: (b->c) -> (a->b) -> (a->c) // length :: [a] -> Num @@ -172,41 +174,41 @@ var cfilter = curry1(filter); // countWhere :: (a -> Bool) -> [a] -> Num function countWhere_1(pred: (a: A) => boolean): (a: A[]) => number { ->countWhere_1 : (pred: (a: A) => boolean) => (a: A[]) => number ->A : A ->pred : (a: A) => boolean ->a : A ->A : A ->a : A[] ->A : A +>countWhere_1 : (pred: (a: A) => boolean) => (a: A[]) => number, Symbol(countWhere_1, Decl(genericTypeParameterEquivalence2.ts, 40, 29)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 50, 22)) +>pred : (a: A) => boolean, Symbol(pred, Decl(genericTypeParameterEquivalence2.ts, 50, 25)) +>a : A, Symbol(a, Decl(genericTypeParameterEquivalence2.ts, 50, 32)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 50, 22)) +>a : A[], Symbol(a, Decl(genericTypeParameterEquivalence2.ts, 50, 52)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 50, 22)) return compose(length2, cfilter(pred)); >compose(length2, cfilter(pred)) : (a: {}) => number ->compose : (f: (b: B) => C, g: (a: A) => B) => (a: A) => C ->length2 : (ar: A[]) => number +>compose : (f: (b: B) => C, g: (a: A) => B) => (a: A) => C, Symbol(compose, Decl(genericTypeParameterEquivalence2.ts, 0, 0)) +>length2 : (ar: A[]) => number, Symbol(length2, Decl(genericTypeParameterEquivalence2.ts, 24, 1)) >cfilter(pred) : (bx: {}) => {}[] ->cfilter : (ax: {}) => (bx: {}) => {}[] ->pred : (a: A) => boolean +>cfilter : (ax: {}) => (bx: {}) => {}[], Symbol(cfilter, Decl(genericTypeParameterEquivalence2.ts, 40, 3)) +>pred : (a: A) => boolean, Symbol(pred, Decl(genericTypeParameterEquivalence2.ts, 50, 25)) } function countWhere_2(pred: (a: A) => boolean): (a: A[]) => number { ->countWhere_2 : (pred: (a: A) => boolean) => (a: A[]) => number ->A : A ->pred : (a: A) => boolean ->a : A ->A : A ->a : A[] ->A : A +>countWhere_2 : (pred: (a: A) => boolean) => (a: A[]) => number, Symbol(countWhere_2, Decl(genericTypeParameterEquivalence2.ts, 52, 1)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 54, 22)) +>pred : (a: A) => boolean, Symbol(pred, Decl(genericTypeParameterEquivalence2.ts, 54, 25)) +>a : A, Symbol(a, Decl(genericTypeParameterEquivalence2.ts, 54, 32)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 54, 22)) +>a : A[], Symbol(a, Decl(genericTypeParameterEquivalence2.ts, 54, 52)) +>A : A, Symbol(A, Decl(genericTypeParameterEquivalence2.ts, 54, 22)) var where = cfilter(pred); ->where : (bx: {}) => {}[] +>where : (bx: {}) => {}[], Symbol(where, Decl(genericTypeParameterEquivalence2.ts, 55, 7)) >cfilter(pred) : (bx: {}) => {}[] ->cfilter : (ax: {}) => (bx: {}) => {}[] ->pred : (a: A) => boolean +>cfilter : (ax: {}) => (bx: {}) => {}[], Symbol(cfilter, Decl(genericTypeParameterEquivalence2.ts, 40, 3)) +>pred : (a: A) => boolean, Symbol(pred, Decl(genericTypeParameterEquivalence2.ts, 54, 25)) return compose(length2, where); >compose(length2, where) : (a: {}) => number ->compose : (f: (b: B) => C, g: (a: A) => B) => (a: A) => C ->length2 : (ar: A[]) => number ->where : (bx: {}) => {}[] +>compose : (f: (b: B) => C, g: (a: A) => B) => (a: A) => C, Symbol(compose, Decl(genericTypeParameterEquivalence2.ts, 0, 0)) +>length2 : (ar: A[]) => number, Symbol(length2, Decl(genericTypeParameterEquivalence2.ts, 24, 1)) +>where : (bx: {}) => {}[], Symbol(where, Decl(genericTypeParameterEquivalence2.ts, 55, 7)) } diff --git a/tests/baselines/reference/genericTypeWithCallableMembers.types b/tests/baselines/reference/genericTypeWithCallableMembers.types index e0068d5ff2b..5bba31d33dd 100644 --- a/tests/baselines/reference/genericTypeWithCallableMembers.types +++ b/tests/baselines/reference/genericTypeWithCallableMembers.types @@ -1,38 +1,38 @@ === tests/cases/compiler/genericTypeWithCallableMembers.ts === interface Constructable { ->Constructable : Constructable +>Constructable : Constructable, Symbol(Constructable, Decl(genericTypeWithCallableMembers.ts, 0, 0)) new (): Constructable; ->Constructable : Constructable +>Constructable : Constructable, Symbol(Constructable, Decl(genericTypeWithCallableMembers.ts, 0, 0)) } class C { ->C : C ->T : T ->Constructable : Constructable +>C : C, Symbol(C, Decl(genericTypeWithCallableMembers.ts, 2, 1)) +>T : T, Symbol(T, Decl(genericTypeWithCallableMembers.ts, 4, 8)) +>Constructable : Constructable, Symbol(Constructable, Decl(genericTypeWithCallableMembers.ts, 0, 0)) constructor(public data: T, public data2: Constructable) { } ->data : T ->T : T ->data2 : Constructable ->Constructable : Constructable +>data : T, Symbol(data, Decl(genericTypeWithCallableMembers.ts, 5, 16)) +>T : T, Symbol(T, Decl(genericTypeWithCallableMembers.ts, 4, 8)) +>data2 : Constructable, Symbol(data2, Decl(genericTypeWithCallableMembers.ts, 5, 31)) +>Constructable : Constructable, Symbol(Constructable, Decl(genericTypeWithCallableMembers.ts, 0, 0)) create() { ->create : () => void +>create : () => void, Symbol(create, Decl(genericTypeWithCallableMembers.ts, 5, 64)) var x = new this.data(); // no error ->x : Constructable +>x : Constructable, Symbol(x, Decl(genericTypeWithCallableMembers.ts, 7, 11)) >new this.data() : Constructable ->this.data : T ->this : C ->data : T +>this.data : T, Symbol(data, Decl(genericTypeWithCallableMembers.ts, 5, 16)) +>this : C, Symbol(C, Decl(genericTypeWithCallableMembers.ts, 2, 1)) +>data : T, Symbol(data, Decl(genericTypeWithCallableMembers.ts, 5, 16)) var x2 = new this.data2(); // was error, shouldn't be ->x2 : Constructable +>x2 : Constructable, Symbol(x2, Decl(genericTypeWithCallableMembers.ts, 8, 11)) >new this.data2() : Constructable ->this.data2 : Constructable ->this : C ->data2 : Constructable +>this.data2 : Constructable, Symbol(data2, Decl(genericTypeWithCallableMembers.ts, 5, 31)) +>this : C, Symbol(C, Decl(genericTypeWithCallableMembers.ts, 2, 1)) +>data2 : Constructable, Symbol(data2, Decl(genericTypeWithCallableMembers.ts, 5, 31)) } } diff --git a/tests/baselines/reference/genericTypeWithCallableMembers2.types b/tests/baselines/reference/genericTypeWithCallableMembers2.types index 5c265e30a85..a80951ec2bf 100644 --- a/tests/baselines/reference/genericTypeWithCallableMembers2.types +++ b/tests/baselines/reference/genericTypeWithCallableMembers2.types @@ -1,22 +1,22 @@ === tests/cases/compiler/genericTypeWithCallableMembers2.ts === function foo1(f: T) { ->foo1 : string>(f: T) => string ->T : T ->f : T ->T : T +>foo1 : string>(f: T) => string, Symbol(foo1, Decl(genericTypeWithCallableMembers2.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericTypeWithCallableMembers2.ts, 0, 14)) +>f : T, Symbol(f, Decl(genericTypeWithCallableMembers2.ts, 0, 41)) +>T : T, Symbol(T, Decl(genericTypeWithCallableMembers2.ts, 0, 14)) return f(); // should return 'string', once returned 'any' >f() : string ->f : T +>f : T, Symbol(f, Decl(genericTypeWithCallableMembers2.ts, 0, 41)) } function foo2(f: T) { ->foo2 : string>(f: T) => string ->T : T ->f : T ->T : T +>foo2 : string>(f: T) => string, Symbol(foo2, Decl(genericTypeWithCallableMembers2.ts, 2, 1)) +>T : T, Symbol(T, Decl(genericTypeWithCallableMembers2.ts, 4, 14)) +>f : T, Symbol(f, Decl(genericTypeWithCallableMembers2.ts, 4, 45)) +>T : T, Symbol(T, Decl(genericTypeWithCallableMembers2.ts, 4, 14)) return new f(); // should be legal, once was an error >new f() : string ->f : T +>f : T, Symbol(f, Decl(genericTypeWithCallableMembers2.ts, 4, 45)) } diff --git a/tests/baselines/reference/genericTypeWithMultipleBases1.types b/tests/baselines/reference/genericTypeWithMultipleBases1.types index c3bb692d9f2..ad388a59676 100644 --- a/tests/baselines/reference/genericTypeWithMultipleBases1.types +++ b/tests/baselines/reference/genericTypeWithMultipleBases1.types @@ -1,49 +1,49 @@ === tests/cases/compiler/genericTypeWithMultipleBases1.ts === export interface I1 { ->I1 : I1 +>I1 : I1, Symbol(I1, Decl(genericTypeWithMultipleBases1.ts, 0, 0)) m1: () => void; ->m1 : () => void +>m1 : () => void, Symbol(m1, Decl(genericTypeWithMultipleBases1.ts, 0, 21)) } export interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(genericTypeWithMultipleBases1.ts, 2, 1)) m2: () => void; ->m2 : () => void +>m2 : () => void, Symbol(m2, Decl(genericTypeWithMultipleBases1.ts, 4, 21)) } export interface I3 extends I1, I2 { ->I3 : I3 ->T : T ->I1 : I1 ->I2 : I2 +>I3 : I3, Symbol(I3, Decl(genericTypeWithMultipleBases1.ts, 6, 1)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases1.ts, 8, 20)) +>I1 : I1, Symbol(I1, Decl(genericTypeWithMultipleBases1.ts, 0, 0)) +>I2 : I2, Symbol(I2, Decl(genericTypeWithMultipleBases1.ts, 2, 1)) //export interface I3 extends I2, I1 { p1: T; ->p1 : T ->T : T +>p1 : T, Symbol(p1, Decl(genericTypeWithMultipleBases1.ts, 8, 39)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases1.ts, 8, 20)) } var x: I3; ->x : I3 ->I3 : I3 +>x : I3, Symbol(x, Decl(genericTypeWithMultipleBases1.ts, 13, 3)) +>I3 : I3, Symbol(I3, Decl(genericTypeWithMultipleBases1.ts, 6, 1)) x.p1; ->x.p1 : number ->x : I3 ->p1 : number +>x.p1 : number, Symbol(I3.p1, Decl(genericTypeWithMultipleBases1.ts, 8, 39)) +>x : I3, Symbol(x, Decl(genericTypeWithMultipleBases1.ts, 13, 3)) +>p1 : number, Symbol(I3.p1, Decl(genericTypeWithMultipleBases1.ts, 8, 39)) x.m1(); >x.m1() : void ->x.m1 : () => void ->x : I3 ->m1 : () => void +>x.m1 : () => void, Symbol(I1.m1, Decl(genericTypeWithMultipleBases1.ts, 0, 21)) +>x : I3, Symbol(x, Decl(genericTypeWithMultipleBases1.ts, 13, 3)) +>m1 : () => void, Symbol(I1.m1, Decl(genericTypeWithMultipleBases1.ts, 0, 21)) x.m2(); >x.m2() : void ->x.m2 : () => void ->x : I3 ->m2 : () => void +>x.m2 : () => void, Symbol(I2.m2, Decl(genericTypeWithMultipleBases1.ts, 4, 21)) +>x : I3, Symbol(x, Decl(genericTypeWithMultipleBases1.ts, 13, 3)) +>m2 : () => void, Symbol(I2.m2, Decl(genericTypeWithMultipleBases1.ts, 4, 21)) diff --git a/tests/baselines/reference/genericTypeWithMultipleBases2.types b/tests/baselines/reference/genericTypeWithMultipleBases2.types index a04e57075c3..aa667b0f6de 100644 --- a/tests/baselines/reference/genericTypeWithMultipleBases2.types +++ b/tests/baselines/reference/genericTypeWithMultipleBases2.types @@ -1,48 +1,48 @@ === tests/cases/compiler/genericTypeWithMultipleBases2.ts === export interface I1 { ->I1 : I1 +>I1 : I1, Symbol(I1, Decl(genericTypeWithMultipleBases2.ts, 0, 0)) m1: () => void; ->m1 : () => void +>m1 : () => void, Symbol(m1, Decl(genericTypeWithMultipleBases2.ts, 0, 21)) } export interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(genericTypeWithMultipleBases2.ts, 2, 1)) m2: () => void; ->m2 : () => void +>m2 : () => void, Symbol(m2, Decl(genericTypeWithMultipleBases2.ts, 4, 21)) } export interface I3 extends I2, I1 { ->I3 : I3 ->T : T ->I2 : I2 ->I1 : I1 +>I3 : I3, Symbol(I3, Decl(genericTypeWithMultipleBases2.ts, 6, 1)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases2.ts, 8, 20)) +>I2 : I2, Symbol(I2, Decl(genericTypeWithMultipleBases2.ts, 2, 1)) +>I1 : I1, Symbol(I1, Decl(genericTypeWithMultipleBases2.ts, 0, 0)) p1: T; ->p1 : T ->T : T +>p1 : T, Symbol(p1, Decl(genericTypeWithMultipleBases2.ts, 8, 39)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases2.ts, 8, 20)) } var x: I3; ->x : I3 ->I3 : I3 +>x : I3, Symbol(x, Decl(genericTypeWithMultipleBases2.ts, 12, 3)) +>I3 : I3, Symbol(I3, Decl(genericTypeWithMultipleBases2.ts, 6, 1)) x.p1; ->x.p1 : number ->x : I3 ->p1 : number +>x.p1 : number, Symbol(I3.p1, Decl(genericTypeWithMultipleBases2.ts, 8, 39)) +>x : I3, Symbol(x, Decl(genericTypeWithMultipleBases2.ts, 12, 3)) +>p1 : number, Symbol(I3.p1, Decl(genericTypeWithMultipleBases2.ts, 8, 39)) x.m1(); >x.m1() : void ->x.m1 : () => void ->x : I3 ->m1 : () => void +>x.m1 : () => void, Symbol(I1.m1, Decl(genericTypeWithMultipleBases2.ts, 0, 21)) +>x : I3, Symbol(x, Decl(genericTypeWithMultipleBases2.ts, 12, 3)) +>m1 : () => void, Symbol(I1.m1, Decl(genericTypeWithMultipleBases2.ts, 0, 21)) x.m2(); >x.m2() : void ->x.m2 : () => void ->x : I3 ->m2 : () => void +>x.m2 : () => void, Symbol(I2.m2, Decl(genericTypeWithMultipleBases2.ts, 4, 21)) +>x : I3, Symbol(x, Decl(genericTypeWithMultipleBases2.ts, 12, 3)) +>m2 : () => void, Symbol(I2.m2, Decl(genericTypeWithMultipleBases2.ts, 4, 21)) diff --git a/tests/baselines/reference/genericTypeWithMultipleBases3.types b/tests/baselines/reference/genericTypeWithMultipleBases3.types index a0127b456bb..8e791396b8f 100644 --- a/tests/baselines/reference/genericTypeWithMultipleBases3.types +++ b/tests/baselines/reference/genericTypeWithMultipleBases3.types @@ -1,49 +1,49 @@ === tests/cases/compiler/genericTypeWithMultipleBases3.ts === interface IA { ->IA : IA ->T : T +>IA : IA, Symbol(IA, Decl(genericTypeWithMultipleBases3.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 0, 13)) foo(x: T): T; ->foo : (x: T) => T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(genericTypeWithMultipleBases3.ts, 0, 17)) +>x : T, Symbol(x, Decl(genericTypeWithMultipleBases3.ts, 2, 4)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 0, 13)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 0, 13)) } interface IB { ->IB : IB ->T : T +>IB : IB, Symbol(IB, Decl(genericTypeWithMultipleBases3.ts, 4, 1)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 6, 13)) bar(x: T): T; ->bar : (x: T) => T ->x : T ->T : T ->T : T +>bar : (x: T) => T, Symbol(bar, Decl(genericTypeWithMultipleBases3.ts, 6, 17)) +>x : T, Symbol(x, Decl(genericTypeWithMultipleBases3.ts, 8, 4)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 6, 13)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 6, 13)) } interface IC extends IA, IB { } ->IC : IC ->T : T ->IA : IA ->T : T ->IB : IB ->T : T +>IC : IC, Symbol(IC, Decl(genericTypeWithMultipleBases3.ts, 10, 1)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 12, 13)) +>IA : IA, Symbol(IA, Decl(genericTypeWithMultipleBases3.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 12, 13)) +>IB : IB, Symbol(IB, Decl(genericTypeWithMultipleBases3.ts, 4, 1)) +>T : T, Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 12, 13)) var c: IC; ->c : IC ->IC : IC +>c : IC, Symbol(c, Decl(genericTypeWithMultipleBases3.ts, 14, 3)) +>IC : IC, Symbol(IC, Decl(genericTypeWithMultipleBases3.ts, 10, 1)) var x = c.foo; ->x : (x: number) => number ->c.foo : (x: number) => number ->c : IC ->foo : (x: number) => number +>x : (x: number) => number, Symbol(x, Decl(genericTypeWithMultipleBases3.ts, 16, 3)) +>c.foo : (x: number) => number, Symbol(IA.foo, Decl(genericTypeWithMultipleBases3.ts, 0, 17)) +>c : IC, Symbol(c, Decl(genericTypeWithMultipleBases3.ts, 14, 3)) +>foo : (x: number) => number, Symbol(IA.foo, Decl(genericTypeWithMultipleBases3.ts, 0, 17)) var y = c.bar; ->y : (x: number) => number ->c.bar : (x: number) => number ->c : IC ->bar : (x: number) => number +>y : (x: number) => number, Symbol(y, Decl(genericTypeWithMultipleBases3.ts, 18, 3)) +>c.bar : (x: number) => number, Symbol(IB.bar, Decl(genericTypeWithMultipleBases3.ts, 6, 17)) +>c : IC, Symbol(c, Decl(genericTypeWithMultipleBases3.ts, 14, 3)) +>bar : (x: number) => number, Symbol(IB.bar, Decl(genericTypeWithMultipleBases3.ts, 6, 17)) diff --git a/tests/baselines/reference/genericWithCallSignatureReturningSpecialization.types b/tests/baselines/reference/genericWithCallSignatureReturningSpecialization.types index 824ada50b89..b557326d54e 100644 --- a/tests/baselines/reference/genericWithCallSignatureReturningSpecialization.types +++ b/tests/baselines/reference/genericWithCallSignatureReturningSpecialization.types @@ -1,21 +1,22 @@ === tests/cases/compiler/genericWithCallSignatureReturningSpecialization.ts === interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(genericWithCallSignatureReturningSpecialization.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericWithCallSignatureReturningSpecialization.ts, 0, 12)) f(): B; ->f : () => B ->B : B +>f : () => B, Symbol(f, Decl(genericWithCallSignatureReturningSpecialization.ts, 0, 16)) +>B : B, Symbol(B, Decl(genericWithCallSignatureReturningSpecialization.ts, 0, 0)) (value: T): void; ->value : T ->T : T +>value : T, Symbol(value, Decl(genericWithCallSignatureReturningSpecialization.ts, 2, 5)) +>T : T, Symbol(T, Decl(genericWithCallSignatureReturningSpecialization.ts, 0, 12)) } var x: B; ->x : B ->B : B +>x : B, Symbol(x, Decl(genericWithCallSignatureReturningSpecialization.ts, 4, 3)) +>B : B, Symbol(B, Decl(genericWithCallSignatureReturningSpecialization.ts, 0, 0)) x(true); // was error >x(true) : void ->x : B +>x : B, Symbol(x, Decl(genericWithCallSignatureReturningSpecialization.ts, 4, 3)) +>true : boolean diff --git a/tests/baselines/reference/genericWithCallSignatures1.types b/tests/baselines/reference/genericWithCallSignatures1.types index b55b4bbc64b..38d45858455 100644 --- a/tests/baselines/reference/genericWithCallSignatures1.types +++ b/tests/baselines/reference/genericWithCallSignatures1.types @@ -1,40 +1,40 @@ === tests/cases/compiler/genericWithCallSignatures_1.ts === /// class MyClass { ->MyClass : MyClass +>MyClass : MyClass, Symbol(MyClass, Decl(genericWithCallSignatures_1.ts, 0, 0)) public callableThing: CallableExtention; ->callableThing : CallableExtention ->CallableExtention : CallableExtention +>callableThing : CallableExtention, Symbol(callableThing, Decl(genericWithCallSignatures_1.ts, 1, 15)) +>CallableExtention : CallableExtention, Symbol(CallableExtention, Decl(genericWithCallSignatures_0.ts, 3, 1)) public myMethod() { ->myMethod : () => void +>myMethod : () => void, Symbol(myMethod, Decl(genericWithCallSignatures_1.ts, 2, 52)) var x = this.callableThing(); ->x : string +>x : string, Symbol(x, Decl(genericWithCallSignatures_1.ts, 5, 11)) > this.callableThing() : string >this.callableThing() : string ->this.callableThing : CallableExtention ->this : MyClass ->callableThing : CallableExtention +>this.callableThing : CallableExtention, Symbol(callableThing, Decl(genericWithCallSignatures_1.ts, 1, 15)) +>this : MyClass, Symbol(MyClass, Decl(genericWithCallSignatures_1.ts, 0, 0)) +>callableThing : CallableExtention, Symbol(callableThing, Decl(genericWithCallSignatures_1.ts, 1, 15)) } } === tests/cases/compiler/genericWithCallSignatures_0.ts === interface Callable { ->Callable : Callable ->T : T +>Callable : Callable, Symbol(Callable, Decl(genericWithCallSignatures_0.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericWithCallSignatures_0.ts, 0, 19)) (): T; ->T : T +>T : T, Symbol(T, Decl(genericWithCallSignatures_0.ts, 0, 19)) (value: T): void; ->value : T ->T : T +>value : T, Symbol(value, Decl(genericWithCallSignatures_0.ts, 2, 5)) +>T : T, Symbol(T, Decl(genericWithCallSignatures_0.ts, 0, 19)) } interface CallableExtention extends Callable { } ->CallableExtention : CallableExtention ->T : T ->Callable : Callable ->T : T +>CallableExtention : CallableExtention, Symbol(CallableExtention, Decl(genericWithCallSignatures_0.ts, 3, 1)) +>T : T, Symbol(T, Decl(genericWithCallSignatures_0.ts, 5, 28)) +>Callable : Callable, Symbol(Callable, Decl(genericWithCallSignatures_0.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericWithCallSignatures_0.ts, 5, 28)) diff --git a/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.types b/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.types index ef42c1c6029..8ab97a39828 100644 --- a/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.types +++ b/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.types @@ -1,34 +1,35 @@ === tests/cases/compiler/genericWithIndexerOfTypeParameterType1.ts === class LazyArray { ->LazyArray : LazyArray ->T : T +>LazyArray : LazyArray, Symbol(LazyArray, Decl(genericWithIndexerOfTypeParameterType1.ts, 0, 0)) +>T : T, Symbol(T, Decl(genericWithIndexerOfTypeParameterType1.ts, 0, 16)) private objects = <{ [objectId: string]: T; }>{}; ->objects : { [objectId: string]: T; } +>objects : { [objectId: string]: T; }, Symbol(objects, Decl(genericWithIndexerOfTypeParameterType1.ts, 0, 20)) ><{ [objectId: string]: T; }>{} : { [objectId: string]: T; } ->objectId : string ->T : T +>objectId : string, Symbol(objectId, Decl(genericWithIndexerOfTypeParameterType1.ts, 1, 26)) +>T : T, Symbol(T, Decl(genericWithIndexerOfTypeParameterType1.ts, 0, 16)) >{} : { [x: string]: undefined; } array() { ->array : () => { [objectId: string]: T; } +>array : () => { [objectId: string]: T; }, Symbol(array, Decl(genericWithIndexerOfTypeParameterType1.ts, 1, 53)) return this.objects; ->this.objects : { [objectId: string]: T; } ->this : LazyArray ->objects : { [objectId: string]: T; } +>this.objects : { [objectId: string]: T; }, Symbol(objects, Decl(genericWithIndexerOfTypeParameterType1.ts, 0, 20)) +>this : LazyArray, Symbol(LazyArray, Decl(genericWithIndexerOfTypeParameterType1.ts, 0, 0)) +>objects : { [objectId: string]: T; }, Symbol(objects, Decl(genericWithIndexerOfTypeParameterType1.ts, 0, 20)) } } var lazyArray = new LazyArray(); ->lazyArray : LazyArray +>lazyArray : LazyArray, Symbol(lazyArray, Decl(genericWithIndexerOfTypeParameterType1.ts, 6, 3)) >new LazyArray() : LazyArray ->LazyArray : typeof LazyArray +>LazyArray : typeof LazyArray, Symbol(LazyArray, Decl(genericWithIndexerOfTypeParameterType1.ts, 0, 0)) var value: string = lazyArray.array()["test"]; // used to be an error ->value : string +>value : string, Symbol(value, Decl(genericWithIndexerOfTypeParameterType1.ts, 7, 3)) >lazyArray.array()["test"] : string >lazyArray.array() : { [objectId: string]: string; } ->lazyArray.array : () => { [objectId: string]: string; } ->lazyArray : LazyArray ->array : () => { [objectId: string]: string; } +>lazyArray.array : () => { [objectId: string]: string; }, Symbol(LazyArray.array, Decl(genericWithIndexerOfTypeParameterType1.ts, 1, 53)) +>lazyArray : LazyArray, Symbol(lazyArray, Decl(genericWithIndexerOfTypeParameterType1.ts, 6, 3)) +>array : () => { [objectId: string]: string; }, Symbol(LazyArray.array, Decl(genericWithIndexerOfTypeParameterType1.ts, 1, 53)) +>"test" : string diff --git a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.types b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.types index e1cdfa85f13..65e5108457b 100644 --- a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.types +++ b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.types @@ -1,32 +1,32 @@ === tests/cases/compiler/genericWithIndexerOfTypeParameterType2.ts === export class Collection { ->Collection : Collection ->TItem : TItem ->CollectionItem : CollectionItem +>Collection : Collection, Symbol(Collection, Decl(genericWithIndexerOfTypeParameterType2.ts, 0, 0)) +>TItem : TItem, Symbol(TItem, Decl(genericWithIndexerOfTypeParameterType2.ts, 0, 24)) +>CollectionItem : CollectionItem, Symbol(CollectionItem, Decl(genericWithIndexerOfTypeParameterType2.ts, 6, 1)) _itemsByKey: { [key: string]: TItem; }; ->_itemsByKey : { [key: string]: TItem; } ->key : string ->TItem : TItem +>_itemsByKey : { [key: string]: TItem; }, Symbol(_itemsByKey, Decl(genericWithIndexerOfTypeParameterType2.ts, 0, 55)) +>key : string, Symbol(key, Decl(genericWithIndexerOfTypeParameterType2.ts, 1, 20)) +>TItem : TItem, Symbol(TItem, Decl(genericWithIndexerOfTypeParameterType2.ts, 0, 24)) } export class List extends Collection{ ->List : List ->Collection : Collection ->ListItem : ListItem +>List : List, Symbol(List, Decl(genericWithIndexerOfTypeParameterType2.ts, 2, 1)) +>Collection : Collection, Symbol(Collection, Decl(genericWithIndexerOfTypeParameterType2.ts, 0, 0)) +>ListItem : ListItem, Symbol(ListItem, Decl(genericWithIndexerOfTypeParameterType2.ts, 8, 30)) Bar() {} ->Bar : () => void +>Bar : () => void, Symbol(Bar, Decl(genericWithIndexerOfTypeParameterType2.ts, 4, 47)) } export class CollectionItem {} ->CollectionItem : CollectionItem +>CollectionItem : CollectionItem, Symbol(CollectionItem, Decl(genericWithIndexerOfTypeParameterType2.ts, 6, 1)) export class ListItem extends CollectionItem { ->ListItem : ListItem ->CollectionItem : CollectionItem +>ListItem : ListItem, Symbol(ListItem, Decl(genericWithIndexerOfTypeParameterType2.ts, 8, 30)) +>CollectionItem : CollectionItem, Symbol(CollectionItem, Decl(genericWithIndexerOfTypeParameterType2.ts, 6, 1)) __isNew: boolean; ->__isNew : boolean +>__isNew : boolean, Symbol(__isNew, Decl(genericWithIndexerOfTypeParameterType2.ts, 10, 46)) } diff --git a/tests/baselines/reference/generics0.types b/tests/baselines/reference/generics0.types index 2febb5bd808..ae5c547b4a6 100644 --- a/tests/baselines/reference/generics0.types +++ b/tests/baselines/reference/generics0.types @@ -1,20 +1,20 @@ === tests/cases/compiler/generics0.ts === interface G { ->G : G ->T : T +>G : G, Symbol(G, Decl(generics0.ts, 0, 0)) +>T : T, Symbol(T, Decl(generics0.ts, 0, 12)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(generics0.ts, 0, 16)) +>T : T, Symbol(T, Decl(generics0.ts, 0, 12)) } var v2: G; ->v2 : G ->G : G +>v2 : G, Symbol(v2, Decl(generics0.ts, 4, 3)) +>G : G, Symbol(G, Decl(generics0.ts, 0, 0)) var z = v2.x; // 'y' should be of type 'string' ->z : string ->v2.x : string ->v2 : G ->x : string +>z : string, Symbol(z, Decl(generics0.ts, 6, 3)) +>v2.x : string, Symbol(G.x, Decl(generics0.ts, 0, 16)) +>v2 : G, Symbol(v2, Decl(generics0.ts, 4, 3)) +>x : string, Symbol(G.x, Decl(generics0.ts, 0, 16)) diff --git a/tests/baselines/reference/generics1NoError.types b/tests/baselines/reference/generics1NoError.types index 409517b56ce..d1fbe6927a0 100644 --- a/tests/baselines/reference/generics1NoError.types +++ b/tests/baselines/reference/generics1NoError.types @@ -1,49 +1,49 @@ === tests/cases/compiler/generics1NoError.ts === interface A { a: string; } ->A : A ->a : string +>A : A, Symbol(A, Decl(generics1NoError.ts, 0, 0)) +>a : string, Symbol(a, Decl(generics1NoError.ts, 0, 13)) interface B extends A { b: string; } ->B : B ->A : A ->b : string +>B : B, Symbol(B, Decl(generics1NoError.ts, 0, 26)) +>A : A, Symbol(A, Decl(generics1NoError.ts, 0, 0)) +>b : string, Symbol(b, Decl(generics1NoError.ts, 1, 23)) interface C extends B { c: string; } ->C : C ->B : B ->c : string +>C : C, Symbol(C, Decl(generics1NoError.ts, 1, 36)) +>B : B, Symbol(B, Decl(generics1NoError.ts, 0, 26)) +>c : string, Symbol(c, Decl(generics1NoError.ts, 2, 23)) interface G { ->G : G ->T : T ->U : U ->B : B +>G : G, Symbol(G, Decl(generics1NoError.ts, 2, 36)) +>T : T, Symbol(T, Decl(generics1NoError.ts, 3, 12)) +>U : U, Symbol(U, Decl(generics1NoError.ts, 3, 14)) +>B : B, Symbol(B, Decl(generics1NoError.ts, 0, 26)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(generics1NoError.ts, 3, 29)) +>T : T, Symbol(T, Decl(generics1NoError.ts, 3, 12)) y: U; ->y : U ->U : U +>y : U, Symbol(y, Decl(generics1NoError.ts, 4, 9)) +>U : U, Symbol(U, Decl(generics1NoError.ts, 3, 14)) } var v1: G; // Ok ->v1 : G ->G : G ->A : A ->C : C +>v1 : G, Symbol(v1, Decl(generics1NoError.ts, 7, 3)) +>G : G, Symbol(G, Decl(generics1NoError.ts, 2, 36)) +>A : A, Symbol(A, Decl(generics1NoError.ts, 0, 0)) +>C : C, Symbol(C, Decl(generics1NoError.ts, 1, 36)) var v2: G<{ a: string }, C>; // Ok, equivalent to G ->v2 : G<{ a: string; }, C> ->G : G ->a : string ->C : C +>v2 : G<{ a: string; }, C>, Symbol(v2, Decl(generics1NoError.ts, 8, 3)) +>G : G, Symbol(G, Decl(generics1NoError.ts, 2, 36)) +>a : string, Symbol(a, Decl(generics1NoError.ts, 8, 11)) +>C : C, Symbol(C, Decl(generics1NoError.ts, 1, 36)) var v4: G, C>; // Ok ->v4 : G, C> ->G : G ->G : G ->A : A ->B : B ->C : C +>v4 : G, C>, Symbol(v4, Decl(generics1NoError.ts, 9, 3)) +>G : G, Symbol(G, Decl(generics1NoError.ts, 2, 36)) +>G : G, Symbol(G, Decl(generics1NoError.ts, 2, 36)) +>A : A, Symbol(A, Decl(generics1NoError.ts, 0, 0)) +>B : B, Symbol(B, Decl(generics1NoError.ts, 0, 26)) +>C : C, Symbol(C, Decl(generics1NoError.ts, 1, 36)) diff --git a/tests/baselines/reference/generics2NoError.types b/tests/baselines/reference/generics2NoError.types index 6b6d526e4b2..b30a06d877f 100644 --- a/tests/baselines/reference/generics2NoError.types +++ b/tests/baselines/reference/generics2NoError.types @@ -1,61 +1,61 @@ === tests/cases/compiler/generics2NoError.ts === interface A { a: string; } ->A : A ->a : string +>A : A, Symbol(A, Decl(generics2NoError.ts, 0, 0)) +>a : string, Symbol(a, Decl(generics2NoError.ts, 0, 13)) interface B extends A { b: string; } ->B : B ->A : A ->b : string +>B : B, Symbol(B, Decl(generics2NoError.ts, 0, 26)) +>A : A, Symbol(A, Decl(generics2NoError.ts, 0, 0)) +>b : string, Symbol(b, Decl(generics2NoError.ts, 1, 23)) interface C extends B { c: string; } ->C : C ->B : B ->c : string +>C : C, Symbol(C, Decl(generics2NoError.ts, 1, 36)) +>B : B, Symbol(B, Decl(generics2NoError.ts, 0, 26)) +>c : string, Symbol(c, Decl(generics2NoError.ts, 2, 23)) interface G { ->G : G ->T : T ->U : U ->B : B +>G : G, Symbol(G, Decl(generics2NoError.ts, 2, 36)) +>T : T, Symbol(T, Decl(generics2NoError.ts, 3, 12)) +>U : U, Symbol(U, Decl(generics2NoError.ts, 3, 14)) +>B : B, Symbol(B, Decl(generics2NoError.ts, 0, 26)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(generics2NoError.ts, 3, 29)) +>T : T, Symbol(T, Decl(generics2NoError.ts, 3, 12)) y: U; ->y : U ->U : U +>y : U, Symbol(y, Decl(generics2NoError.ts, 4, 9)) +>U : U, Symbol(U, Decl(generics2NoError.ts, 3, 14)) } var v1: { ->v1 : { x: { a: string; }; y: { a: string; b: string; c: string; }; } +>v1 : { x: { a: string; }; y: { a: string; b: string; c: string; }; }, Symbol(v1, Decl(generics2NoError.ts, 9, 3)) x: { a: string; } ->x : { a: string; } ->a : string +>x : { a: string; }, Symbol(x, Decl(generics2NoError.ts, 9, 9)) +>a : string, Symbol(a, Decl(generics2NoError.ts, 10, 8)) y: { a: string; b: string; c: string }; ->y : { a: string; b: string; c: string; } ->a : string ->b : string ->c : string +>y : { a: string; b: string; c: string; }, Symbol(y, Decl(generics2NoError.ts, 10, 21)) +>a : string, Symbol(a, Decl(generics2NoError.ts, 11, 8)) +>b : string, Symbol(b, Decl(generics2NoError.ts, 11, 19)) +>c : string, Symbol(c, Decl(generics2NoError.ts, 11, 30)) }; // Ok var v2: G<{ a: string }, C>; // Ok, equivalent to G ->v2 : G<{ a: string; }, C> ->G : G ->a : string ->C : C +>v2 : G<{ a: string; }, C>, Symbol(v2, Decl(generics2NoError.ts, 15, 3)) +>G : G, Symbol(G, Decl(generics2NoError.ts, 2, 36)) +>a : string, Symbol(a, Decl(generics2NoError.ts, 15, 11)) +>C : C, Symbol(C, Decl(generics2NoError.ts, 1, 36)) var v4: G, C>; // Ok ->v4 : G, C> ->G : G ->G : G ->A : A ->B : B ->C : C +>v4 : G, C>, Symbol(v4, Decl(generics2NoError.ts, 16, 3)) +>G : G, Symbol(G, Decl(generics2NoError.ts, 2, 36)) +>G : G, Symbol(G, Decl(generics2NoError.ts, 2, 36)) +>A : A, Symbol(A, Decl(generics2NoError.ts, 0, 0)) +>B : B, Symbol(B, Decl(generics2NoError.ts, 0, 26)) +>C : C, Symbol(C, Decl(generics2NoError.ts, 1, 36)) diff --git a/tests/baselines/reference/generics3.types b/tests/baselines/reference/generics3.types index 510dcbfeaf8..ac7ba074e29 100644 --- a/tests/baselines/reference/generics3.types +++ b/tests/baselines/reference/generics3.types @@ -1,30 +1,30 @@ === tests/cases/compiler/generics3.ts === class C { private x: T; } ->C : C ->T : T ->x : T ->T : T +>C : C, Symbol(C, Decl(generics3.ts, 0, 0)) +>T : T, Symbol(T, Decl(generics3.ts, 0, 8)) +>x : T, Symbol(x, Decl(generics3.ts, 0, 12)) +>T : T, Symbol(T, Decl(generics3.ts, 0, 8)) interface X { f(): string; } ->X : X ->f : () => string +>X : X, Symbol(X, Decl(generics3.ts, 0, 28)) +>f : () => string, Symbol(f, Decl(generics3.ts, 1, 13)) interface Y { f(): string; } ->Y : Y ->f : () => string +>Y : Y, Symbol(Y, Decl(generics3.ts, 1, 28)) +>f : () => string, Symbol(f, Decl(generics3.ts, 2, 13)) var a: C; ->a : C ->C : C ->X : X +>a : C, Symbol(a, Decl(generics3.ts, 3, 3)) +>C : C, Symbol(C, Decl(generics3.ts, 0, 0)) +>X : X, Symbol(X, Decl(generics3.ts, 0, 28)) var b: C; ->b : C ->C : C ->Y : Y +>b : C, Symbol(b, Decl(generics3.ts, 4, 3)) +>C : C, Symbol(C, Decl(generics3.ts, 0, 0)) +>Y : Y, Symbol(Y, Decl(generics3.ts, 1, 28)) a = b; // Ok - should be identical >a = b : C ->a : C ->b : C +>a : C, Symbol(a, Decl(generics3.ts, 3, 3)) +>b : C, Symbol(b, Decl(generics3.ts, 4, 3)) diff --git a/tests/baselines/reference/generics4NoError.types b/tests/baselines/reference/generics4NoError.types index c22b1905e44..9cb752b7daa 100644 --- a/tests/baselines/reference/generics4NoError.types +++ b/tests/baselines/reference/generics4NoError.types @@ -1,25 +1,25 @@ === tests/cases/compiler/generics4NoError.ts === class C { private x: T; } ->C : C ->T : T ->x : T ->T : T +>C : C, Symbol(C, Decl(generics4NoError.ts, 0, 0)) +>T : T, Symbol(T, Decl(generics4NoError.ts, 0, 8)) +>x : T, Symbol(x, Decl(generics4NoError.ts, 0, 12)) +>T : T, Symbol(T, Decl(generics4NoError.ts, 0, 8)) interface X { f(): string; } ->X : X ->f : () => string +>X : X, Symbol(X, Decl(generics4NoError.ts, 0, 28)) +>f : () => string, Symbol(f, Decl(generics4NoError.ts, 1, 13)) interface Y { f(): boolean; } ->Y : Y ->f : () => boolean +>Y : Y, Symbol(Y, Decl(generics4NoError.ts, 1, 28)) +>f : () => boolean, Symbol(f, Decl(generics4NoError.ts, 2, 13)) var a: C; ->a : C ->C : C ->X : X +>a : C, Symbol(a, Decl(generics4NoError.ts, 3, 3)) +>C : C, Symbol(C, Decl(generics4NoError.ts, 0, 0)) +>X : X, Symbol(X, Decl(generics4NoError.ts, 0, 28)) var b: C; ->b : C ->C : C ->Y : Y +>b : C, Symbol(b, Decl(generics4NoError.ts, 4, 3)) +>C : C, Symbol(C, Decl(generics4NoError.ts, 0, 0)) +>Y : Y, Symbol(Y, Decl(generics4NoError.ts, 1, 28)) diff --git a/tests/baselines/reference/genericsAndHigherOrderFunctions.types b/tests/baselines/reference/genericsAndHigherOrderFunctions.types index 04209ca99ec..7f47c53a1a9 100644 --- a/tests/baselines/reference/genericsAndHigherOrderFunctions.types +++ b/tests/baselines/reference/genericsAndHigherOrderFunctions.types @@ -2,124 +2,124 @@ // no errors expected var combine: (f: (_: T) => S) => ->combine : (f: (_: T) => S) => (g: (_: U) => T) => (x: U) => S ->T : T ->S : S ->f : (_: T) => S ->_ : T ->T : T ->S : S +>combine : (f: (_: T) => S) => (g: (_: U) => T) => (x: U) => S, Symbol(combine, Decl(genericsAndHigherOrderFunctions.ts, 2, 3)) +>T : T, Symbol(T, Decl(genericsAndHigherOrderFunctions.ts, 2, 14)) +>S : S, Symbol(S, Decl(genericsAndHigherOrderFunctions.ts, 2, 16)) +>f : (_: T) => S, Symbol(f, Decl(genericsAndHigherOrderFunctions.ts, 2, 20)) +>_ : T, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 2, 24)) +>T : T, Symbol(T, Decl(genericsAndHigherOrderFunctions.ts, 2, 14)) +>S : S, Symbol(S, Decl(genericsAndHigherOrderFunctions.ts, 2, 16)) (g: (_: U) => T) => ->U : U ->g : (_: U) => T ->_ : U ->U : U ->T : T +>U : U, Symbol(U, Decl(genericsAndHigherOrderFunctions.ts, 3, 5)) +>g : (_: U) => T, Symbol(g, Decl(genericsAndHigherOrderFunctions.ts, 3, 8)) +>_ : U, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 3, 12)) +>U : U, Symbol(U, Decl(genericsAndHigherOrderFunctions.ts, 3, 5)) +>T : T, Symbol(T, Decl(genericsAndHigherOrderFunctions.ts, 2, 14)) (x: U) => S ->x : U ->U : U ->S : S +>x : U, Symbol(x, Decl(genericsAndHigherOrderFunctions.ts, 4, 5)) +>U : U, Symbol(U, Decl(genericsAndHigherOrderFunctions.ts, 3, 5)) +>S : S, Symbol(S, Decl(genericsAndHigherOrderFunctions.ts, 2, 16)) = (f: (_: T) => S) => >(f: (_: T) => S) => (g: (_: U) => T) => (x: U) => f(g(x)) : (f: (_: T) => S) => (g: (_: U) => T) => (x: U) => S ->T : T ->S : S ->f : (_: T) => S ->_ : T ->T : T ->S : S +>T : T, Symbol(T, Decl(genericsAndHigherOrderFunctions.ts, 6, 7)) +>S : S, Symbol(S, Decl(genericsAndHigherOrderFunctions.ts, 6, 9)) +>f : (_: T) => S, Symbol(f, Decl(genericsAndHigherOrderFunctions.ts, 6, 13)) +>_ : T, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 6, 17)) +>T : T, Symbol(T, Decl(genericsAndHigherOrderFunctions.ts, 6, 7)) +>S : S, Symbol(S, Decl(genericsAndHigherOrderFunctions.ts, 6, 9)) (g: (_: U) => T) => >(g: (_: U) => T) => (x: U) => f(g(x)) : (g: (_: U) => T) => (x: U) => S ->U : U ->g : (_: U) => T ->_ : U ->U : U ->T : T +>U : U, Symbol(U, Decl(genericsAndHigherOrderFunctions.ts, 7, 9)) +>g : (_: U) => T, Symbol(g, Decl(genericsAndHigherOrderFunctions.ts, 7, 12)) +>_ : U, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 7, 16)) +>U : U, Symbol(U, Decl(genericsAndHigherOrderFunctions.ts, 7, 9)) +>T : T, Symbol(T, Decl(genericsAndHigherOrderFunctions.ts, 6, 7)) (x: U) => f(g(x)) >(x: U) => f(g(x)) : (x: U) => S ->x : U ->U : U +>x : U, Symbol(x, Decl(genericsAndHigherOrderFunctions.ts, 8, 13)) +>U : U, Symbol(U, Decl(genericsAndHigherOrderFunctions.ts, 7, 9)) >f(g(x)) : S ->f : (_: T) => S +>f : (_: T) => S, Symbol(f, Decl(genericsAndHigherOrderFunctions.ts, 6, 13)) >g(x) : T ->g : (_: U) => T ->x : U +>g : (_: U) => T, Symbol(g, Decl(genericsAndHigherOrderFunctions.ts, 7, 12)) +>x : U, Symbol(x, Decl(genericsAndHigherOrderFunctions.ts, 8, 13)) var foo: (g: (x: K) => N) => ->foo : (g: (x: K) => N) => (h: (_: (_: K) => (_: M) => M) => (_: M) => M) => (f: (_: N) => (_: R) => R) => (_: R) => R ->K : K ->N : N ->g : (x: K) => N ->x : K ->K : K ->N : N +>foo : (g: (x: K) => N) => (h: (_: (_: K) => (_: M) => M) => (_: M) => M) => (f: (_: N) => (_: R) => R) => (_: R) => R, Symbol(foo, Decl(genericsAndHigherOrderFunctions.ts, 10, 3)) +>K : K, Symbol(K, Decl(genericsAndHigherOrderFunctions.ts, 10, 10)) +>N : N, Symbol(N, Decl(genericsAndHigherOrderFunctions.ts, 10, 12)) +>g : (x: K) => N, Symbol(g, Decl(genericsAndHigherOrderFunctions.ts, 10, 16)) +>x : K, Symbol(x, Decl(genericsAndHigherOrderFunctions.ts, 10, 20)) +>K : K, Symbol(K, Decl(genericsAndHigherOrderFunctions.ts, 10, 10)) +>N : N, Symbol(N, Decl(genericsAndHigherOrderFunctions.ts, 10, 12)) (h: (_: (_: K) => (_: M) => M) => (_: M) => M) => ->h : (_: (_: K) => (_: M) => M) => (_: M) => M ->M : M ->_ : (_: K) => (_: M) => M ->_ : K ->K : K ->_ : M ->M : M ->M : M ->_ : M ->M : M ->M : M +>h : (_: (_: K) => (_: M) => M) => (_: M) => M, Symbol(h, Decl(genericsAndHigherOrderFunctions.ts, 11, 5)) +>M : M, Symbol(M, Decl(genericsAndHigherOrderFunctions.ts, 11, 9)) +>_ : (_: K) => (_: M) => M, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 11, 12)) +>_ : K, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 11, 16)) +>K : K, Symbol(K, Decl(genericsAndHigherOrderFunctions.ts, 10, 10)) +>_ : M, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 11, 26)) +>M : M, Symbol(M, Decl(genericsAndHigherOrderFunctions.ts, 11, 9)) +>M : M, Symbol(M, Decl(genericsAndHigherOrderFunctions.ts, 11, 9)) +>_ : M, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 11, 42)) +>M : M, Symbol(M, Decl(genericsAndHigherOrderFunctions.ts, 11, 9)) +>M : M, Symbol(M, Decl(genericsAndHigherOrderFunctions.ts, 11, 9)) (f: (_: N) => (_: R) => R) => (_: R) => R ->R : R ->f : (_: N) => (_: R) => R ->_ : N ->N : N ->_ : R ->R : R ->R : R ->_ : R ->R : R ->R : R +>R : R, Symbol(R, Decl(genericsAndHigherOrderFunctions.ts, 12, 5)) +>f : (_: N) => (_: R) => R, Symbol(f, Decl(genericsAndHigherOrderFunctions.ts, 12, 8)) +>_ : N, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 12, 12)) +>N : N, Symbol(N, Decl(genericsAndHigherOrderFunctions.ts, 10, 12)) +>_ : R, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 12, 22)) +>R : R, Symbol(R, Decl(genericsAndHigherOrderFunctions.ts, 12, 5)) +>R : R, Symbol(R, Decl(genericsAndHigherOrderFunctions.ts, 12, 5)) +>_ : R, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 12, 38)) +>R : R, Symbol(R, Decl(genericsAndHigherOrderFunctions.ts, 12, 5)) +>R : R, Symbol(R, Decl(genericsAndHigherOrderFunctions.ts, 12, 5)) = (g: (x: K) => N) => >(g: (x: K) => N) => (h: (_: (_: K) => (_: M) => M) => (_: M) => M) => (f: (_: N) => (_: R) => R) => h(combine(f)(g)) : (g: (x: K) => N) => (h: (_: (_: K) => (_: M) => M) => (_: M) => M) => (f: (_: N) => (_: R) => R) => (_: R) => R ->K : K ->N : N ->g : (x: K) => N ->x : K ->K : K ->N : N +>K : K, Symbol(K, Decl(genericsAndHigherOrderFunctions.ts, 14, 7)) +>N : N, Symbol(N, Decl(genericsAndHigherOrderFunctions.ts, 14, 9)) +>g : (x: K) => N, Symbol(g, Decl(genericsAndHigherOrderFunctions.ts, 14, 13)) +>x : K, Symbol(x, Decl(genericsAndHigherOrderFunctions.ts, 14, 17)) +>K : K, Symbol(K, Decl(genericsAndHigherOrderFunctions.ts, 14, 7)) +>N : N, Symbol(N, Decl(genericsAndHigherOrderFunctions.ts, 14, 9)) (h: (_: (_: K) => (_: M) => M) => (_: M) => M) => >(h: (_: (_: K) => (_: M) => M) => (_: M) => M) => (f: (_: N) => (_: R) => R) => h(combine(f)(g)) : (h: (_: (_: K) => (_: M) => M) => (_: M) => M) => (f: (_: N) => (_: R) => R) => (_: R) => R ->h : (_: (_: K) => (_: M) => M) => (_: M) => M ->M : M ->_ : (_: K) => (_: M) => M ->_ : K ->K : K ->_ : M ->M : M ->M : M ->_ : M ->M : M ->M : M +>h : (_: (_: K) => (_: M) => M) => (_: M) => M, Symbol(h, Decl(genericsAndHigherOrderFunctions.ts, 15, 9)) +>M : M, Symbol(M, Decl(genericsAndHigherOrderFunctions.ts, 15, 13)) +>_ : (_: K) => (_: M) => M, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 15, 16)) +>_ : K, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 15, 20)) +>K : K, Symbol(K, Decl(genericsAndHigherOrderFunctions.ts, 14, 7)) +>_ : M, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 15, 30)) +>M : M, Symbol(M, Decl(genericsAndHigherOrderFunctions.ts, 15, 13)) +>M : M, Symbol(M, Decl(genericsAndHigherOrderFunctions.ts, 15, 13)) +>_ : M, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 15, 46)) +>M : M, Symbol(M, Decl(genericsAndHigherOrderFunctions.ts, 15, 13)) +>M : M, Symbol(M, Decl(genericsAndHigherOrderFunctions.ts, 15, 13)) (f: (_: N) => (_: R) => R) => h(combine(f)(g)) >(f: (_: N) => (_: R) => R) => h(combine(f)(g)) : (f: (_: N) => (_: R) => R) => (_: R) => R ->R : R ->f : (_: N) => (_: R) => R ->_ : N ->N : N ->_ : R ->R : R ->R : R +>R : R, Symbol(R, Decl(genericsAndHigherOrderFunctions.ts, 16, 13)) +>f : (_: N) => (_: R) => R, Symbol(f, Decl(genericsAndHigherOrderFunctions.ts, 16, 16)) +>_ : N, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 16, 20)) +>N : N, Symbol(N, Decl(genericsAndHigherOrderFunctions.ts, 14, 9)) +>_ : R, Symbol(_, Decl(genericsAndHigherOrderFunctions.ts, 16, 30)) +>R : R, Symbol(R, Decl(genericsAndHigherOrderFunctions.ts, 16, 13)) +>R : R, Symbol(R, Decl(genericsAndHigherOrderFunctions.ts, 16, 13)) >h(combine(f)(g)) : (_: R) => R ->h : (_: (_: K) => (_: M) => M) => (_: M) => M +>h : (_: (_: K) => (_: M) => M) => (_: M) => M, Symbol(h, Decl(genericsAndHigherOrderFunctions.ts, 15, 9)) >combine(f)(g) : (x: K) => (_: R) => R >combine(f) : (g: (_: U) => N) => (x: U) => (_: R) => R ->combine : (f: (_: T) => S) => (g: (_: U) => T) => (x: U) => S ->f : (_: N) => (_: R) => R ->g : (x: K) => N +>combine : (f: (_: T) => S) => (g: (_: U) => T) => (x: U) => S, Symbol(combine, Decl(genericsAndHigherOrderFunctions.ts, 2, 3)) +>f : (_: N) => (_: R) => R, Symbol(f, Decl(genericsAndHigherOrderFunctions.ts, 16, 16)) +>g : (x: K) => N, Symbol(g, Decl(genericsAndHigherOrderFunctions.ts, 14, 13)) diff --git a/tests/baselines/reference/genericsManyTypeParameters.types b/tests/baselines/reference/genericsManyTypeParameters.types index cb492c30623..93bfdbfdb78 100644 --- a/tests/baselines/reference/genericsManyTypeParameters.types +++ b/tests/baselines/reference/genericsManyTypeParameters.types @@ -1,548 +1,548 @@ === tests/cases/compiler/genericsManyTypeParameters.ts === function Foo< ->Foo : (x1: a1, y1: a21, z1: a31, a1: a41, b1: a51, c1: a61, x2: a119, y2: a22, z2: a32, a2: a42, b2: a52, c2: a62, x3: a219, y3: a23, z3: a33, a3: a43, b3: a53, c3: a63, x4: a319, y4: a24, z4: a34, a4: a44, b4: a54, c4: a64, x5: a419, y5: a25, z5: a35, a5: a45, b5: a55, c5: a65, x6: a519, y6: a26, z6: a36, a6: a46, b6: a56, c6: a66, x7: a619, y7: a27, z7: a37, a7: a47, b7: a57, c7: a67, x8: a71, y8: a28, z8: a38, a8: a48, b8: a58, c8: a68, x9: a81, y9: a29, z9: a39, a9: a49, b9: a59, c9: a69, x10: a91, y12: a210, z10: a310, a10: a410, b10: a510, c10: a610, x11: a111, y13: a211, z11: a311, a11: a411, b11: a511, c11: a611, x12: a112, y14: a212, z12: a312, a12: a412, b12: a512, c12: a612, x13: a113, y15: a213, z13: a313, a13: a413, b13: a513, c13: a613, x14: a114, y16: a214, z14: a314, a14: a414, b14: a514, c14: a614, x15: a115, y17: a215, z15: a315, a15: a415, b15: a515, c15: a615, x16: a116, y18: a216, z16: a316, a16: a416, b16: a516, c16: a616, x17: a117, y19: a217, z17: a317, a17: a417, b17: a517, c17: a617, x18: a118, y10: a218, z18: a318, a18: a418, b18: a518, c18: a618) => (a1 | a21 | a31 | a41 | a51 | a61 | a119 | a22 | a32 | a42 | a52 | a62 | a219 | a23 | a33 | a43 | a53 | a63 | a319 | a24 | a34 | a44 | a54 | a64 | a419 | a25 | a35 | a45 | a55 | a65 | a519 | a26 | a36 | a46 | a56 | a66 | a619 | a27 | a37 | a47 | a57 | a67 | a71 | a28 | a38 | a48 | a58 | a68 | a81 | a29 | a39 | a49 | a59 | a69 | a91 | a210 | a310 | a410 | a510 | a610 | a111 | a211 | a311 | a411 | a511 | a611 | a112 | a212 | a312 | a412 | a512 | a612 | a113 | a213 | a313 | a413 | a513 | a613 | a114 | a214 | a314 | a414 | a514 | a614 | a115 | a215 | a315 | a415 | a515 | a615 | a116 | a216 | a316 | a416 | a516 | a616 | a117 | a217 | a317 | a417 | a517 | a617 | a118 | a218 | a318 | a418 | a518 | a618)[] +>Foo : (x1: a1, y1: a21, z1: a31, a1: a41, b1: a51, c1: a61, x2: a119, y2: a22, z2: a32, a2: a42, b2: a52, c2: a62, x3: a219, y3: a23, z3: a33, a3: a43, b3: a53, c3: a63, x4: a319, y4: a24, z4: a34, a4: a44, b4: a54, c4: a64, x5: a419, y5: a25, z5: a35, a5: a45, b5: a55, c5: a65, x6: a519, y6: a26, z6: a36, a6: a46, b6: a56, c6: a66, x7: a619, y7: a27, z7: a37, a7: a47, b7: a57, c7: a67, x8: a71, y8: a28, z8: a38, a8: a48, b8: a58, c8: a68, x9: a81, y9: a29, z9: a39, a9: a49, b9: a59, c9: a69, x10: a91, y12: a210, z10: a310, a10: a410, b10: a510, c10: a610, x11: a111, y13: a211, z11: a311, a11: a411, b11: a511, c11: a611, x12: a112, y14: a212, z12: a312, a12: a412, b12: a512, c12: a612, x13: a113, y15: a213, z13: a313, a13: a413, b13: a513, c13: a613, x14: a114, y16: a214, z14: a314, a14: a414, b14: a514, c14: a614, x15: a115, y17: a215, z15: a315, a15: a415, b15: a515, c15: a615, x16: a116, y18: a216, z16: a316, a16: a416, b16: a516, c16: a616, x17: a117, y19: a217, z17: a317, a17: a417, b17: a517, c17: a617, x18: a118, y10: a218, z18: a318, a18: a418, b18: a518, c18: a618) => (a1 | a21 | a31 | a41 | a51 | a61 | a119 | a22 | a32 | a42 | a52 | a62 | a219 | a23 | a33 | a43 | a53 | a63 | a319 | a24 | a34 | a44 | a54 | a64 | a419 | a25 | a35 | a45 | a55 | a65 | a519 | a26 | a36 | a46 | a56 | a66 | a619 | a27 | a37 | a47 | a57 | a67 | a71 | a28 | a38 | a48 | a58 | a68 | a81 | a29 | a39 | a49 | a59 | a69 | a91 | a210 | a310 | a410 | a510 | a610 | a111 | a211 | a311 | a411 | a511 | a611 | a112 | a212 | a312 | a412 | a512 | a612 | a113 | a213 | a313 | a413 | a513 | a613 | a114 | a214 | a314 | a414 | a514 | a614 | a115 | a215 | a315 | a415 | a515 | a615 | a116 | a216 | a316 | a416 | a516 | a616 | a117 | a217 | a317 | a417 | a517 | a617 | a118 | a218 | a318 | a418 | a518 | a618)[], Symbol(Foo, Decl(genericsManyTypeParameters.ts, 0, 0)) a1, a21, a31, a41, a51, a61, ->a1 : a1 ->a21 : a21 ->a31 : a31 ->a41 : a41 ->a51 : a51 ->a61 : a61 +>a1 : a1, Symbol(a1, Decl(genericsManyTypeParameters.ts, 0, 13), Decl(genericsManyTypeParameters.ts, 20, 33)) +>a21 : a21, Symbol(a21, Decl(genericsManyTypeParameters.ts, 1, 7)) +>a31 : a31, Symbol(a31, Decl(genericsManyTypeParameters.ts, 1, 12)) +>a41 : a41, Symbol(a41, Decl(genericsManyTypeParameters.ts, 1, 17)) +>a51 : a51, Symbol(a51, Decl(genericsManyTypeParameters.ts, 1, 22)) +>a61 : a61, Symbol(a61, Decl(genericsManyTypeParameters.ts, 1, 27)) a119, a22, a32, a42, a52, a62, ->a119 : a119 ->a22 : a22 ->a32 : a32 ->a42 : a42 ->a52 : a52 ->a62 : a62 +>a119 : a119, Symbol(a119, Decl(genericsManyTypeParameters.ts, 1, 32)) +>a22 : a22, Symbol(a22, Decl(genericsManyTypeParameters.ts, 2, 9)) +>a32 : a32, Symbol(a32, Decl(genericsManyTypeParameters.ts, 2, 14)) +>a42 : a42, Symbol(a42, Decl(genericsManyTypeParameters.ts, 2, 19)) +>a52 : a52, Symbol(a52, Decl(genericsManyTypeParameters.ts, 2, 24)) +>a62 : a62, Symbol(a62, Decl(genericsManyTypeParameters.ts, 2, 29)) a219, a23, a33, a43, a53, a63, ->a219 : a219 ->a23 : a23 ->a33 : a33 ->a43 : a43 ->a53 : a53 ->a63 : a63 +>a219 : a219, Symbol(a219, Decl(genericsManyTypeParameters.ts, 2, 34)) +>a23 : a23, Symbol(a23, Decl(genericsManyTypeParameters.ts, 3, 9)) +>a33 : a33, Symbol(a33, Decl(genericsManyTypeParameters.ts, 3, 14)) +>a43 : a43, Symbol(a43, Decl(genericsManyTypeParameters.ts, 3, 19)) +>a53 : a53, Symbol(a53, Decl(genericsManyTypeParameters.ts, 3, 24)) +>a63 : a63, Symbol(a63, Decl(genericsManyTypeParameters.ts, 3, 29)) a319, a24, a34, a44, a54, a64, ->a319 : a319 ->a24 : a24 ->a34 : a34 ->a44 : a44 ->a54 : a54 ->a64 : a64 +>a319 : a319, Symbol(a319, Decl(genericsManyTypeParameters.ts, 3, 34)) +>a24 : a24, Symbol(a24, Decl(genericsManyTypeParameters.ts, 4, 9)) +>a34 : a34, Symbol(a34, Decl(genericsManyTypeParameters.ts, 4, 14)) +>a44 : a44, Symbol(a44, Decl(genericsManyTypeParameters.ts, 4, 19)) +>a54 : a54, Symbol(a54, Decl(genericsManyTypeParameters.ts, 4, 24)) +>a64 : a64, Symbol(a64, Decl(genericsManyTypeParameters.ts, 4, 29)) a419, a25, a35, a45, a55, a65, ->a419 : a419 ->a25 : a25 ->a35 : a35 ->a45 : a45 ->a55 : a55 ->a65 : a65 +>a419 : a419, Symbol(a419, Decl(genericsManyTypeParameters.ts, 4, 34)) +>a25 : a25, Symbol(a25, Decl(genericsManyTypeParameters.ts, 5, 9)) +>a35 : a35, Symbol(a35, Decl(genericsManyTypeParameters.ts, 5, 14)) +>a45 : a45, Symbol(a45, Decl(genericsManyTypeParameters.ts, 5, 19)) +>a55 : a55, Symbol(a55, Decl(genericsManyTypeParameters.ts, 5, 24)) +>a65 : a65, Symbol(a65, Decl(genericsManyTypeParameters.ts, 5, 29)) a519, a26, a36, a46, a56, a66, ->a519 : a519 ->a26 : a26 ->a36 : a36 ->a46 : a46 ->a56 : a56 ->a66 : a66 +>a519 : a519, Symbol(a519, Decl(genericsManyTypeParameters.ts, 5, 34)) +>a26 : a26, Symbol(a26, Decl(genericsManyTypeParameters.ts, 6, 9)) +>a36 : a36, Symbol(a36, Decl(genericsManyTypeParameters.ts, 6, 14)) +>a46 : a46, Symbol(a46, Decl(genericsManyTypeParameters.ts, 6, 19)) +>a56 : a56, Symbol(a56, Decl(genericsManyTypeParameters.ts, 6, 24)) +>a66 : a66, Symbol(a66, Decl(genericsManyTypeParameters.ts, 6, 29)) a619, a27, a37, a47, a57, a67, ->a619 : a619 ->a27 : a27 ->a37 : a37 ->a47 : a47 ->a57 : a57 ->a67 : a67 +>a619 : a619, Symbol(a619, Decl(genericsManyTypeParameters.ts, 6, 34)) +>a27 : a27, Symbol(a27, Decl(genericsManyTypeParameters.ts, 7, 9)) +>a37 : a37, Symbol(a37, Decl(genericsManyTypeParameters.ts, 7, 14)) +>a47 : a47, Symbol(a47, Decl(genericsManyTypeParameters.ts, 7, 19)) +>a57 : a57, Symbol(a57, Decl(genericsManyTypeParameters.ts, 7, 24)) +>a67 : a67, Symbol(a67, Decl(genericsManyTypeParameters.ts, 7, 29)) a71, a28, a38, a48, a58, a68, ->a71 : a71 ->a28 : a28 ->a38 : a38 ->a48 : a48 ->a58 : a58 ->a68 : a68 +>a71 : a71, Symbol(a71, Decl(genericsManyTypeParameters.ts, 7, 34)) +>a28 : a28, Symbol(a28, Decl(genericsManyTypeParameters.ts, 8, 8)) +>a38 : a38, Symbol(a38, Decl(genericsManyTypeParameters.ts, 8, 13)) +>a48 : a48, Symbol(a48, Decl(genericsManyTypeParameters.ts, 8, 18)) +>a58 : a58, Symbol(a58, Decl(genericsManyTypeParameters.ts, 8, 23)) +>a68 : a68, Symbol(a68, Decl(genericsManyTypeParameters.ts, 8, 28)) a81, a29, a39, a49, a59, a69, ->a81 : a81 ->a29 : a29 ->a39 : a39 ->a49 : a49 ->a59 : a59 ->a69 : a69 +>a81 : a81, Symbol(a81, Decl(genericsManyTypeParameters.ts, 8, 33)) +>a29 : a29, Symbol(a29, Decl(genericsManyTypeParameters.ts, 9, 8)) +>a39 : a39, Symbol(a39, Decl(genericsManyTypeParameters.ts, 9, 13)) +>a49 : a49, Symbol(a49, Decl(genericsManyTypeParameters.ts, 9, 18)) +>a59 : a59, Symbol(a59, Decl(genericsManyTypeParameters.ts, 9, 23)) +>a69 : a69, Symbol(a69, Decl(genericsManyTypeParameters.ts, 9, 28)) a91, a210, a310, a410, a510, a610, ->a91 : a91 ->a210 : a210 ->a310 : a310 ->a410 : a410 ->a510 : a510 ->a610 : a610 +>a91 : a91, Symbol(a91, Decl(genericsManyTypeParameters.ts, 9, 33)) +>a210 : a210, Symbol(a210, Decl(genericsManyTypeParameters.ts, 10, 8)) +>a310 : a310, Symbol(a310, Decl(genericsManyTypeParameters.ts, 10, 14)) +>a410 : a410, Symbol(a410, Decl(genericsManyTypeParameters.ts, 10, 20)) +>a510 : a510, Symbol(a510, Decl(genericsManyTypeParameters.ts, 10, 26)) +>a610 : a610, Symbol(a610, Decl(genericsManyTypeParameters.ts, 10, 32)) a111, a211, a311, a411, a511, a611, ->a111 : a111 ->a211 : a211 ->a311 : a311 ->a411 : a411 ->a511 : a511 ->a611 : a611 +>a111 : a111, Symbol(a111, Decl(genericsManyTypeParameters.ts, 10, 38)) +>a211 : a211, Symbol(a211, Decl(genericsManyTypeParameters.ts, 11, 9)) +>a311 : a311, Symbol(a311, Decl(genericsManyTypeParameters.ts, 11, 15)) +>a411 : a411, Symbol(a411, Decl(genericsManyTypeParameters.ts, 11, 21)) +>a511 : a511, Symbol(a511, Decl(genericsManyTypeParameters.ts, 11, 27)) +>a611 : a611, Symbol(a611, Decl(genericsManyTypeParameters.ts, 11, 33)) a112, a212, a312, a412, a512, a612, ->a112 : a112 ->a212 : a212 ->a312 : a312 ->a412 : a412 ->a512 : a512 ->a612 : a612 +>a112 : a112, Symbol(a112, Decl(genericsManyTypeParameters.ts, 11, 39)) +>a212 : a212, Symbol(a212, Decl(genericsManyTypeParameters.ts, 12, 9)) +>a312 : a312, Symbol(a312, Decl(genericsManyTypeParameters.ts, 12, 15)) +>a412 : a412, Symbol(a412, Decl(genericsManyTypeParameters.ts, 12, 21)) +>a512 : a512, Symbol(a512, Decl(genericsManyTypeParameters.ts, 12, 27)) +>a612 : a612, Symbol(a612, Decl(genericsManyTypeParameters.ts, 12, 33)) a113, a213, a313, a413, a513, a613, ->a113 : a113 ->a213 : a213 ->a313 : a313 ->a413 : a413 ->a513 : a513 ->a613 : a613 +>a113 : a113, Symbol(a113, Decl(genericsManyTypeParameters.ts, 12, 39)) +>a213 : a213, Symbol(a213, Decl(genericsManyTypeParameters.ts, 13, 9)) +>a313 : a313, Symbol(a313, Decl(genericsManyTypeParameters.ts, 13, 15)) +>a413 : a413, Symbol(a413, Decl(genericsManyTypeParameters.ts, 13, 21)) +>a513 : a513, Symbol(a513, Decl(genericsManyTypeParameters.ts, 13, 27)) +>a613 : a613, Symbol(a613, Decl(genericsManyTypeParameters.ts, 13, 33)) a114, a214, a314, a414, a514, a614, ->a114 : a114 ->a214 : a214 ->a314 : a314 ->a414 : a414 ->a514 : a514 ->a614 : a614 +>a114 : a114, Symbol(a114, Decl(genericsManyTypeParameters.ts, 13, 39)) +>a214 : a214, Symbol(a214, Decl(genericsManyTypeParameters.ts, 14, 9)) +>a314 : a314, Symbol(a314, Decl(genericsManyTypeParameters.ts, 14, 15)) +>a414 : a414, Symbol(a414, Decl(genericsManyTypeParameters.ts, 14, 21)) +>a514 : a514, Symbol(a514, Decl(genericsManyTypeParameters.ts, 14, 27)) +>a614 : a614, Symbol(a614, Decl(genericsManyTypeParameters.ts, 14, 33)) a115, a215, a315, a415, a515, a615, ->a115 : a115 ->a215 : a215 ->a315 : a315 ->a415 : a415 ->a515 : a515 ->a615 : a615 +>a115 : a115, Symbol(a115, Decl(genericsManyTypeParameters.ts, 14, 39)) +>a215 : a215, Symbol(a215, Decl(genericsManyTypeParameters.ts, 15, 9)) +>a315 : a315, Symbol(a315, Decl(genericsManyTypeParameters.ts, 15, 15)) +>a415 : a415, Symbol(a415, Decl(genericsManyTypeParameters.ts, 15, 21)) +>a515 : a515, Symbol(a515, Decl(genericsManyTypeParameters.ts, 15, 27)) +>a615 : a615, Symbol(a615, Decl(genericsManyTypeParameters.ts, 15, 33)) a116, a216, a316, a416, a516, a616, ->a116 : a116 ->a216 : a216 ->a316 : a316 ->a416 : a416 ->a516 : a516 ->a616 : a616 +>a116 : a116, Symbol(a116, Decl(genericsManyTypeParameters.ts, 15, 39)) +>a216 : a216, Symbol(a216, Decl(genericsManyTypeParameters.ts, 16, 9)) +>a316 : a316, Symbol(a316, Decl(genericsManyTypeParameters.ts, 16, 15)) +>a416 : a416, Symbol(a416, Decl(genericsManyTypeParameters.ts, 16, 21)) +>a516 : a516, Symbol(a516, Decl(genericsManyTypeParameters.ts, 16, 27)) +>a616 : a616, Symbol(a616, Decl(genericsManyTypeParameters.ts, 16, 33)) a117, a217, a317, a417, a517, a617, ->a117 : a117 ->a217 : a217 ->a317 : a317 ->a417 : a417 ->a517 : a517 ->a617 : a617 +>a117 : a117, Symbol(a117, Decl(genericsManyTypeParameters.ts, 16, 39)) +>a217 : a217, Symbol(a217, Decl(genericsManyTypeParameters.ts, 17, 9)) +>a317 : a317, Symbol(a317, Decl(genericsManyTypeParameters.ts, 17, 15)) +>a417 : a417, Symbol(a417, Decl(genericsManyTypeParameters.ts, 17, 21)) +>a517 : a517, Symbol(a517, Decl(genericsManyTypeParameters.ts, 17, 27)) +>a617 : a617, Symbol(a617, Decl(genericsManyTypeParameters.ts, 17, 33)) a118, a218, a318, a418, a518, a618> ->a118 : a118 ->a218 : a218 ->a318 : a318 ->a418 : a418 ->a518 : a518 ->a618 : a618 +>a118 : a118, Symbol(a118, Decl(genericsManyTypeParameters.ts, 17, 39)) +>a218 : a218, Symbol(a218, Decl(genericsManyTypeParameters.ts, 18, 9)) +>a318 : a318, Symbol(a318, Decl(genericsManyTypeParameters.ts, 18, 15)) +>a418 : a418, Symbol(a418, Decl(genericsManyTypeParameters.ts, 18, 21)) +>a518 : a518, Symbol(a518, Decl(genericsManyTypeParameters.ts, 18, 27)) +>a618 : a618, Symbol(a618, Decl(genericsManyTypeParameters.ts, 18, 33)) ( x1: a1, y1: a21, z1: a31, a1: a41, b1: a51, c1: a61, ->x1 : a1 ->a1 : a1 ->y1 : a21 ->a21 : a21 ->z1 : a31 ->a31 : a31 ->a1 : a41 ->a41 : a41 ->b1 : a51 ->a51 : a51 ->c1 : a61 ->a61 : a61 +>x1 : a1, Symbol(x1, Decl(genericsManyTypeParameters.ts, 19, 5)) +>a1 : a1, Symbol(a1, Decl(genericsManyTypeParameters.ts, 0, 13), Decl(genericsManyTypeParameters.ts, 20, 33)) +>y1 : a21, Symbol(y1, Decl(genericsManyTypeParameters.ts, 20, 15)) +>a21 : a21, Symbol(a21, Decl(genericsManyTypeParameters.ts, 1, 7)) +>z1 : a31, Symbol(z1, Decl(genericsManyTypeParameters.ts, 20, 24)) +>a31 : a31, Symbol(a31, Decl(genericsManyTypeParameters.ts, 1, 12)) +>a1 : a41, Symbol(a1, Decl(genericsManyTypeParameters.ts, 0, 13), Decl(genericsManyTypeParameters.ts, 20, 33)) +>a41 : a41, Symbol(a41, Decl(genericsManyTypeParameters.ts, 1, 17)) +>b1 : a51, Symbol(b1, Decl(genericsManyTypeParameters.ts, 20, 42)) +>a51 : a51, Symbol(a51, Decl(genericsManyTypeParameters.ts, 1, 22)) +>c1 : a61, Symbol(c1, Decl(genericsManyTypeParameters.ts, 20, 51)) +>a61 : a61, Symbol(a61, Decl(genericsManyTypeParameters.ts, 1, 27)) x2: a119, y2: a22, z2: a32, a2: a42, b2: a52, c2: a62, ->x2 : a119 ->a119 : a119 ->y2 : a22 ->a22 : a22 ->z2 : a32 ->a32 : a32 ->a2 : a42 ->a42 : a42 ->b2 : a52 ->a52 : a52 ->c2 : a62 ->a62 : a62 +>x2 : a119, Symbol(x2, Decl(genericsManyTypeParameters.ts, 20, 60)) +>a119 : a119, Symbol(a119, Decl(genericsManyTypeParameters.ts, 1, 32)) +>y2 : a22, Symbol(y2, Decl(genericsManyTypeParameters.ts, 21, 17)) +>a22 : a22, Symbol(a22, Decl(genericsManyTypeParameters.ts, 2, 9)) +>z2 : a32, Symbol(z2, Decl(genericsManyTypeParameters.ts, 21, 26)) +>a32 : a32, Symbol(a32, Decl(genericsManyTypeParameters.ts, 2, 14)) +>a2 : a42, Symbol(a2, Decl(genericsManyTypeParameters.ts, 21, 35)) +>a42 : a42, Symbol(a42, Decl(genericsManyTypeParameters.ts, 2, 19)) +>b2 : a52, Symbol(b2, Decl(genericsManyTypeParameters.ts, 21, 44)) +>a52 : a52, Symbol(a52, Decl(genericsManyTypeParameters.ts, 2, 24)) +>c2 : a62, Symbol(c2, Decl(genericsManyTypeParameters.ts, 21, 53)) +>a62 : a62, Symbol(a62, Decl(genericsManyTypeParameters.ts, 2, 29)) x3: a219, y3: a23, z3: a33, a3: a43, b3: a53, c3: a63, ->x3 : a219 ->a219 : a219 ->y3 : a23 ->a23 : a23 ->z3 : a33 ->a33 : a33 ->a3 : a43 ->a43 : a43 ->b3 : a53 ->a53 : a53 ->c3 : a63 ->a63 : a63 +>x3 : a219, Symbol(x3, Decl(genericsManyTypeParameters.ts, 21, 62)) +>a219 : a219, Symbol(a219, Decl(genericsManyTypeParameters.ts, 2, 34)) +>y3 : a23, Symbol(y3, Decl(genericsManyTypeParameters.ts, 22, 17)) +>a23 : a23, Symbol(a23, Decl(genericsManyTypeParameters.ts, 3, 9)) +>z3 : a33, Symbol(z3, Decl(genericsManyTypeParameters.ts, 22, 26)) +>a33 : a33, Symbol(a33, Decl(genericsManyTypeParameters.ts, 3, 14)) +>a3 : a43, Symbol(a3, Decl(genericsManyTypeParameters.ts, 22, 35)) +>a43 : a43, Symbol(a43, Decl(genericsManyTypeParameters.ts, 3, 19)) +>b3 : a53, Symbol(b3, Decl(genericsManyTypeParameters.ts, 22, 44)) +>a53 : a53, Symbol(a53, Decl(genericsManyTypeParameters.ts, 3, 24)) +>c3 : a63, Symbol(c3, Decl(genericsManyTypeParameters.ts, 22, 53)) +>a63 : a63, Symbol(a63, Decl(genericsManyTypeParameters.ts, 3, 29)) x4: a319, y4: a24, z4: a34, a4: a44, b4: a54, c4: a64, ->x4 : a319 ->a319 : a319 ->y4 : a24 ->a24 : a24 ->z4 : a34 ->a34 : a34 ->a4 : a44 ->a44 : a44 ->b4 : a54 ->a54 : a54 ->c4 : a64 ->a64 : a64 +>x4 : a319, Symbol(x4, Decl(genericsManyTypeParameters.ts, 22, 62)) +>a319 : a319, Symbol(a319, Decl(genericsManyTypeParameters.ts, 3, 34)) +>y4 : a24, Symbol(y4, Decl(genericsManyTypeParameters.ts, 23, 17)) +>a24 : a24, Symbol(a24, Decl(genericsManyTypeParameters.ts, 4, 9)) +>z4 : a34, Symbol(z4, Decl(genericsManyTypeParameters.ts, 23, 26)) +>a34 : a34, Symbol(a34, Decl(genericsManyTypeParameters.ts, 4, 14)) +>a4 : a44, Symbol(a4, Decl(genericsManyTypeParameters.ts, 23, 35)) +>a44 : a44, Symbol(a44, Decl(genericsManyTypeParameters.ts, 4, 19)) +>b4 : a54, Symbol(b4, Decl(genericsManyTypeParameters.ts, 23, 44)) +>a54 : a54, Symbol(a54, Decl(genericsManyTypeParameters.ts, 4, 24)) +>c4 : a64, Symbol(c4, Decl(genericsManyTypeParameters.ts, 23, 53)) +>a64 : a64, Symbol(a64, Decl(genericsManyTypeParameters.ts, 4, 29)) x5: a419, y5: a25, z5: a35, a5: a45, b5: a55, c5: a65, ->x5 : a419 ->a419 : a419 ->y5 : a25 ->a25 : a25 ->z5 : a35 ->a35 : a35 ->a5 : a45 ->a45 : a45 ->b5 : a55 ->a55 : a55 ->c5 : a65 ->a65 : a65 +>x5 : a419, Symbol(x5, Decl(genericsManyTypeParameters.ts, 23, 62)) +>a419 : a419, Symbol(a419, Decl(genericsManyTypeParameters.ts, 4, 34)) +>y5 : a25, Symbol(y5, Decl(genericsManyTypeParameters.ts, 24, 17)) +>a25 : a25, Symbol(a25, Decl(genericsManyTypeParameters.ts, 5, 9)) +>z5 : a35, Symbol(z5, Decl(genericsManyTypeParameters.ts, 24, 26)) +>a35 : a35, Symbol(a35, Decl(genericsManyTypeParameters.ts, 5, 14)) +>a5 : a45, Symbol(a5, Decl(genericsManyTypeParameters.ts, 24, 35)) +>a45 : a45, Symbol(a45, Decl(genericsManyTypeParameters.ts, 5, 19)) +>b5 : a55, Symbol(b5, Decl(genericsManyTypeParameters.ts, 24, 44)) +>a55 : a55, Symbol(a55, Decl(genericsManyTypeParameters.ts, 5, 24)) +>c5 : a65, Symbol(c5, Decl(genericsManyTypeParameters.ts, 24, 53)) +>a65 : a65, Symbol(a65, Decl(genericsManyTypeParameters.ts, 5, 29)) x6: a519, y6: a26, z6: a36, a6: a46, b6: a56, c6: a66, ->x6 : a519 ->a519 : a519 ->y6 : a26 ->a26 : a26 ->z6 : a36 ->a36 : a36 ->a6 : a46 ->a46 : a46 ->b6 : a56 ->a56 : a56 ->c6 : a66 ->a66 : a66 +>x6 : a519, Symbol(x6, Decl(genericsManyTypeParameters.ts, 24, 62)) +>a519 : a519, Symbol(a519, Decl(genericsManyTypeParameters.ts, 5, 34)) +>y6 : a26, Symbol(y6, Decl(genericsManyTypeParameters.ts, 25, 17)) +>a26 : a26, Symbol(a26, Decl(genericsManyTypeParameters.ts, 6, 9)) +>z6 : a36, Symbol(z6, Decl(genericsManyTypeParameters.ts, 25, 26)) +>a36 : a36, Symbol(a36, Decl(genericsManyTypeParameters.ts, 6, 14)) +>a6 : a46, Symbol(a6, Decl(genericsManyTypeParameters.ts, 25, 35)) +>a46 : a46, Symbol(a46, Decl(genericsManyTypeParameters.ts, 6, 19)) +>b6 : a56, Symbol(b6, Decl(genericsManyTypeParameters.ts, 25, 44)) +>a56 : a56, Symbol(a56, Decl(genericsManyTypeParameters.ts, 6, 24)) +>c6 : a66, Symbol(c6, Decl(genericsManyTypeParameters.ts, 25, 53)) +>a66 : a66, Symbol(a66, Decl(genericsManyTypeParameters.ts, 6, 29)) x7: a619, y7: a27, z7: a37, a7: a47, b7: a57, c7: a67, ->x7 : a619 ->a619 : a619 ->y7 : a27 ->a27 : a27 ->z7 : a37 ->a37 : a37 ->a7 : a47 ->a47 : a47 ->b7 : a57 ->a57 : a57 ->c7 : a67 ->a67 : a67 +>x7 : a619, Symbol(x7, Decl(genericsManyTypeParameters.ts, 25, 62)) +>a619 : a619, Symbol(a619, Decl(genericsManyTypeParameters.ts, 6, 34)) +>y7 : a27, Symbol(y7, Decl(genericsManyTypeParameters.ts, 26, 17)) +>a27 : a27, Symbol(a27, Decl(genericsManyTypeParameters.ts, 7, 9)) +>z7 : a37, Symbol(z7, Decl(genericsManyTypeParameters.ts, 26, 26)) +>a37 : a37, Symbol(a37, Decl(genericsManyTypeParameters.ts, 7, 14)) +>a7 : a47, Symbol(a7, Decl(genericsManyTypeParameters.ts, 26, 35)) +>a47 : a47, Symbol(a47, Decl(genericsManyTypeParameters.ts, 7, 19)) +>b7 : a57, Symbol(b7, Decl(genericsManyTypeParameters.ts, 26, 44)) +>a57 : a57, Symbol(a57, Decl(genericsManyTypeParameters.ts, 7, 24)) +>c7 : a67, Symbol(c7, Decl(genericsManyTypeParameters.ts, 26, 53)) +>a67 : a67, Symbol(a67, Decl(genericsManyTypeParameters.ts, 7, 29)) x8: a71, y8: a28, z8: a38, a8: a48, b8: a58, c8: a68, ->x8 : a71 ->a71 : a71 ->y8 : a28 ->a28 : a28 ->z8 : a38 ->a38 : a38 ->a8 : a48 ->a48 : a48 ->b8 : a58 ->a58 : a58 ->c8 : a68 ->a68 : a68 +>x8 : a71, Symbol(x8, Decl(genericsManyTypeParameters.ts, 26, 62)) +>a71 : a71, Symbol(a71, Decl(genericsManyTypeParameters.ts, 7, 34)) +>y8 : a28, Symbol(y8, Decl(genericsManyTypeParameters.ts, 27, 16)) +>a28 : a28, Symbol(a28, Decl(genericsManyTypeParameters.ts, 8, 8)) +>z8 : a38, Symbol(z8, Decl(genericsManyTypeParameters.ts, 27, 25)) +>a38 : a38, Symbol(a38, Decl(genericsManyTypeParameters.ts, 8, 13)) +>a8 : a48, Symbol(a8, Decl(genericsManyTypeParameters.ts, 27, 34)) +>a48 : a48, Symbol(a48, Decl(genericsManyTypeParameters.ts, 8, 18)) +>b8 : a58, Symbol(b8, Decl(genericsManyTypeParameters.ts, 27, 43)) +>a58 : a58, Symbol(a58, Decl(genericsManyTypeParameters.ts, 8, 23)) +>c8 : a68, Symbol(c8, Decl(genericsManyTypeParameters.ts, 27, 52)) +>a68 : a68, Symbol(a68, Decl(genericsManyTypeParameters.ts, 8, 28)) x9: a81, y9: a29, z9: a39, a9: a49, b9: a59, c9: a69, ->x9 : a81 ->a81 : a81 ->y9 : a29 ->a29 : a29 ->z9 : a39 ->a39 : a39 ->a9 : a49 ->a49 : a49 ->b9 : a59 ->a59 : a59 ->c9 : a69 ->a69 : a69 +>x9 : a81, Symbol(x9, Decl(genericsManyTypeParameters.ts, 27, 61)) +>a81 : a81, Symbol(a81, Decl(genericsManyTypeParameters.ts, 8, 33)) +>y9 : a29, Symbol(y9, Decl(genericsManyTypeParameters.ts, 28, 16)) +>a29 : a29, Symbol(a29, Decl(genericsManyTypeParameters.ts, 9, 8)) +>z9 : a39, Symbol(z9, Decl(genericsManyTypeParameters.ts, 28, 25)) +>a39 : a39, Symbol(a39, Decl(genericsManyTypeParameters.ts, 9, 13)) +>a9 : a49, Symbol(a9, Decl(genericsManyTypeParameters.ts, 28, 34)) +>a49 : a49, Symbol(a49, Decl(genericsManyTypeParameters.ts, 9, 18)) +>b9 : a59, Symbol(b9, Decl(genericsManyTypeParameters.ts, 28, 43)) +>a59 : a59, Symbol(a59, Decl(genericsManyTypeParameters.ts, 9, 23)) +>c9 : a69, Symbol(c9, Decl(genericsManyTypeParameters.ts, 28, 52)) +>a69 : a69, Symbol(a69, Decl(genericsManyTypeParameters.ts, 9, 28)) x10: a91, y12: a210, z10: a310, a10: a410, b10: a510, c10: a610, ->x10 : a91 ->a91 : a91 ->y12 : a210 ->a210 : a210 ->z10 : a310 ->a310 : a310 ->a10 : a410 ->a410 : a410 ->b10 : a510 ->a510 : a510 ->c10 : a610 ->a610 : a610 +>x10 : a91, Symbol(x10, Decl(genericsManyTypeParameters.ts, 28, 61)) +>a91 : a91, Symbol(a91, Decl(genericsManyTypeParameters.ts, 9, 33)) +>y12 : a210, Symbol(y12, Decl(genericsManyTypeParameters.ts, 29, 17)) +>a210 : a210, Symbol(a210, Decl(genericsManyTypeParameters.ts, 10, 8)) +>z10 : a310, Symbol(z10, Decl(genericsManyTypeParameters.ts, 29, 28)) +>a310 : a310, Symbol(a310, Decl(genericsManyTypeParameters.ts, 10, 14)) +>a10 : a410, Symbol(a10, Decl(genericsManyTypeParameters.ts, 29, 39)) +>a410 : a410, Symbol(a410, Decl(genericsManyTypeParameters.ts, 10, 20)) +>b10 : a510, Symbol(b10, Decl(genericsManyTypeParameters.ts, 29, 50)) +>a510 : a510, Symbol(a510, Decl(genericsManyTypeParameters.ts, 10, 26)) +>c10 : a610, Symbol(c10, Decl(genericsManyTypeParameters.ts, 29, 61)) +>a610 : a610, Symbol(a610, Decl(genericsManyTypeParameters.ts, 10, 32)) x11: a111, y13: a211, z11: a311, a11: a411, b11: a511, c11: a611, ->x11 : a111 ->a111 : a111 ->y13 : a211 ->a211 : a211 ->z11 : a311 ->a311 : a311 ->a11 : a411 ->a411 : a411 ->b11 : a511 ->a511 : a511 ->c11 : a611 ->a611 : a611 +>x11 : a111, Symbol(x11, Decl(genericsManyTypeParameters.ts, 29, 72)) +>a111 : a111, Symbol(a111, Decl(genericsManyTypeParameters.ts, 10, 38)) +>y13 : a211, Symbol(y13, Decl(genericsManyTypeParameters.ts, 30, 18)) +>a211 : a211, Symbol(a211, Decl(genericsManyTypeParameters.ts, 11, 9)) +>z11 : a311, Symbol(z11, Decl(genericsManyTypeParameters.ts, 30, 29)) +>a311 : a311, Symbol(a311, Decl(genericsManyTypeParameters.ts, 11, 15)) +>a11 : a411, Symbol(a11, Decl(genericsManyTypeParameters.ts, 30, 40)) +>a411 : a411, Symbol(a411, Decl(genericsManyTypeParameters.ts, 11, 21)) +>b11 : a511, Symbol(b11, Decl(genericsManyTypeParameters.ts, 30, 51)) +>a511 : a511, Symbol(a511, Decl(genericsManyTypeParameters.ts, 11, 27)) +>c11 : a611, Symbol(c11, Decl(genericsManyTypeParameters.ts, 30, 62)) +>a611 : a611, Symbol(a611, Decl(genericsManyTypeParameters.ts, 11, 33)) x12: a112, y14: a212, z12: a312, a12: a412, b12: a512, c12: a612, ->x12 : a112 ->a112 : a112 ->y14 : a212 ->a212 : a212 ->z12 : a312 ->a312 : a312 ->a12 : a412 ->a412 : a412 ->b12 : a512 ->a512 : a512 ->c12 : a612 ->a612 : a612 +>x12 : a112, Symbol(x12, Decl(genericsManyTypeParameters.ts, 30, 73)) +>a112 : a112, Symbol(a112, Decl(genericsManyTypeParameters.ts, 11, 39)) +>y14 : a212, Symbol(y14, Decl(genericsManyTypeParameters.ts, 31, 18)) +>a212 : a212, Symbol(a212, Decl(genericsManyTypeParameters.ts, 12, 9)) +>z12 : a312, Symbol(z12, Decl(genericsManyTypeParameters.ts, 31, 29)) +>a312 : a312, Symbol(a312, Decl(genericsManyTypeParameters.ts, 12, 15)) +>a12 : a412, Symbol(a12, Decl(genericsManyTypeParameters.ts, 31, 40)) +>a412 : a412, Symbol(a412, Decl(genericsManyTypeParameters.ts, 12, 21)) +>b12 : a512, Symbol(b12, Decl(genericsManyTypeParameters.ts, 31, 51)) +>a512 : a512, Symbol(a512, Decl(genericsManyTypeParameters.ts, 12, 27)) +>c12 : a612, Symbol(c12, Decl(genericsManyTypeParameters.ts, 31, 62)) +>a612 : a612, Symbol(a612, Decl(genericsManyTypeParameters.ts, 12, 33)) x13: a113, y15: a213, z13: a313, a13: a413, b13: a513, c13: a613, ->x13 : a113 ->a113 : a113 ->y15 : a213 ->a213 : a213 ->z13 : a313 ->a313 : a313 ->a13 : a413 ->a413 : a413 ->b13 : a513 ->a513 : a513 ->c13 : a613 ->a613 : a613 +>x13 : a113, Symbol(x13, Decl(genericsManyTypeParameters.ts, 31, 73)) +>a113 : a113, Symbol(a113, Decl(genericsManyTypeParameters.ts, 12, 39)) +>y15 : a213, Symbol(y15, Decl(genericsManyTypeParameters.ts, 32, 18)) +>a213 : a213, Symbol(a213, Decl(genericsManyTypeParameters.ts, 13, 9)) +>z13 : a313, Symbol(z13, Decl(genericsManyTypeParameters.ts, 32, 29)) +>a313 : a313, Symbol(a313, Decl(genericsManyTypeParameters.ts, 13, 15)) +>a13 : a413, Symbol(a13, Decl(genericsManyTypeParameters.ts, 32, 40)) +>a413 : a413, Symbol(a413, Decl(genericsManyTypeParameters.ts, 13, 21)) +>b13 : a513, Symbol(b13, Decl(genericsManyTypeParameters.ts, 32, 51)) +>a513 : a513, Symbol(a513, Decl(genericsManyTypeParameters.ts, 13, 27)) +>c13 : a613, Symbol(c13, Decl(genericsManyTypeParameters.ts, 32, 62)) +>a613 : a613, Symbol(a613, Decl(genericsManyTypeParameters.ts, 13, 33)) x14: a114, y16: a214, z14: a314, a14: a414, b14: a514, c14: a614, ->x14 : a114 ->a114 : a114 ->y16 : a214 ->a214 : a214 ->z14 : a314 ->a314 : a314 ->a14 : a414 ->a414 : a414 ->b14 : a514 ->a514 : a514 ->c14 : a614 ->a614 : a614 +>x14 : a114, Symbol(x14, Decl(genericsManyTypeParameters.ts, 32, 73)) +>a114 : a114, Symbol(a114, Decl(genericsManyTypeParameters.ts, 13, 39)) +>y16 : a214, Symbol(y16, Decl(genericsManyTypeParameters.ts, 33, 18)) +>a214 : a214, Symbol(a214, Decl(genericsManyTypeParameters.ts, 14, 9)) +>z14 : a314, Symbol(z14, Decl(genericsManyTypeParameters.ts, 33, 29)) +>a314 : a314, Symbol(a314, Decl(genericsManyTypeParameters.ts, 14, 15)) +>a14 : a414, Symbol(a14, Decl(genericsManyTypeParameters.ts, 33, 40)) +>a414 : a414, Symbol(a414, Decl(genericsManyTypeParameters.ts, 14, 21)) +>b14 : a514, Symbol(b14, Decl(genericsManyTypeParameters.ts, 33, 51)) +>a514 : a514, Symbol(a514, Decl(genericsManyTypeParameters.ts, 14, 27)) +>c14 : a614, Symbol(c14, Decl(genericsManyTypeParameters.ts, 33, 62)) +>a614 : a614, Symbol(a614, Decl(genericsManyTypeParameters.ts, 14, 33)) x15: a115, y17: a215, z15: a315, a15: a415, b15: a515, c15: a615, ->x15 : a115 ->a115 : a115 ->y17 : a215 ->a215 : a215 ->z15 : a315 ->a315 : a315 ->a15 : a415 ->a415 : a415 ->b15 : a515 ->a515 : a515 ->c15 : a615 ->a615 : a615 +>x15 : a115, Symbol(x15, Decl(genericsManyTypeParameters.ts, 33, 73)) +>a115 : a115, Symbol(a115, Decl(genericsManyTypeParameters.ts, 14, 39)) +>y17 : a215, Symbol(y17, Decl(genericsManyTypeParameters.ts, 34, 18)) +>a215 : a215, Symbol(a215, Decl(genericsManyTypeParameters.ts, 15, 9)) +>z15 : a315, Symbol(z15, Decl(genericsManyTypeParameters.ts, 34, 29)) +>a315 : a315, Symbol(a315, Decl(genericsManyTypeParameters.ts, 15, 15)) +>a15 : a415, Symbol(a15, Decl(genericsManyTypeParameters.ts, 34, 40)) +>a415 : a415, Symbol(a415, Decl(genericsManyTypeParameters.ts, 15, 21)) +>b15 : a515, Symbol(b15, Decl(genericsManyTypeParameters.ts, 34, 51)) +>a515 : a515, Symbol(a515, Decl(genericsManyTypeParameters.ts, 15, 27)) +>c15 : a615, Symbol(c15, Decl(genericsManyTypeParameters.ts, 34, 62)) +>a615 : a615, Symbol(a615, Decl(genericsManyTypeParameters.ts, 15, 33)) x16: a116, y18: a216, z16: a316, a16: a416, b16: a516, c16: a616, ->x16 : a116 ->a116 : a116 ->y18 : a216 ->a216 : a216 ->z16 : a316 ->a316 : a316 ->a16 : a416 ->a416 : a416 ->b16 : a516 ->a516 : a516 ->c16 : a616 ->a616 : a616 +>x16 : a116, Symbol(x16, Decl(genericsManyTypeParameters.ts, 34, 73)) +>a116 : a116, Symbol(a116, Decl(genericsManyTypeParameters.ts, 15, 39)) +>y18 : a216, Symbol(y18, Decl(genericsManyTypeParameters.ts, 35, 18)) +>a216 : a216, Symbol(a216, Decl(genericsManyTypeParameters.ts, 16, 9)) +>z16 : a316, Symbol(z16, Decl(genericsManyTypeParameters.ts, 35, 29)) +>a316 : a316, Symbol(a316, Decl(genericsManyTypeParameters.ts, 16, 15)) +>a16 : a416, Symbol(a16, Decl(genericsManyTypeParameters.ts, 35, 40)) +>a416 : a416, Symbol(a416, Decl(genericsManyTypeParameters.ts, 16, 21)) +>b16 : a516, Symbol(b16, Decl(genericsManyTypeParameters.ts, 35, 51)) +>a516 : a516, Symbol(a516, Decl(genericsManyTypeParameters.ts, 16, 27)) +>c16 : a616, Symbol(c16, Decl(genericsManyTypeParameters.ts, 35, 62)) +>a616 : a616, Symbol(a616, Decl(genericsManyTypeParameters.ts, 16, 33)) x17: a117, y19: a217, z17: a317, a17: a417, b17: a517, c17: a617, ->x17 : a117 ->a117 : a117 ->y19 : a217 ->a217 : a217 ->z17 : a317 ->a317 : a317 ->a17 : a417 ->a417 : a417 ->b17 : a517 ->a517 : a517 ->c17 : a617 ->a617 : a617 +>x17 : a117, Symbol(x17, Decl(genericsManyTypeParameters.ts, 35, 73)) +>a117 : a117, Symbol(a117, Decl(genericsManyTypeParameters.ts, 16, 39)) +>y19 : a217, Symbol(y19, Decl(genericsManyTypeParameters.ts, 36, 18)) +>a217 : a217, Symbol(a217, Decl(genericsManyTypeParameters.ts, 17, 9)) +>z17 : a317, Symbol(z17, Decl(genericsManyTypeParameters.ts, 36, 29)) +>a317 : a317, Symbol(a317, Decl(genericsManyTypeParameters.ts, 17, 15)) +>a17 : a417, Symbol(a17, Decl(genericsManyTypeParameters.ts, 36, 40)) +>a417 : a417, Symbol(a417, Decl(genericsManyTypeParameters.ts, 17, 21)) +>b17 : a517, Symbol(b17, Decl(genericsManyTypeParameters.ts, 36, 51)) +>a517 : a517, Symbol(a517, Decl(genericsManyTypeParameters.ts, 17, 27)) +>c17 : a617, Symbol(c17, Decl(genericsManyTypeParameters.ts, 36, 62)) +>a617 : a617, Symbol(a617, Decl(genericsManyTypeParameters.ts, 17, 33)) x18: a118, y10: a218, z18: a318, a18: a418, b18: a518, c18: a618 ->x18 : a118 ->a118 : a118 ->y10 : a218 ->a218 : a218 ->z18 : a318 ->a318 : a318 ->a18 : a418 ->a418 : a418 ->b18 : a518 ->a518 : a518 ->c18 : a618 ->a618 : a618 +>x18 : a118, Symbol(x18, Decl(genericsManyTypeParameters.ts, 36, 73)) +>a118 : a118, Symbol(a118, Decl(genericsManyTypeParameters.ts, 17, 39)) +>y10 : a218, Symbol(y10, Decl(genericsManyTypeParameters.ts, 37, 18)) +>a218 : a218, Symbol(a218, Decl(genericsManyTypeParameters.ts, 18, 9)) +>z18 : a318, Symbol(z18, Decl(genericsManyTypeParameters.ts, 37, 29)) +>a318 : a318, Symbol(a318, Decl(genericsManyTypeParameters.ts, 18, 15)) +>a18 : a418, Symbol(a18, Decl(genericsManyTypeParameters.ts, 37, 40)) +>a418 : a418, Symbol(a418, Decl(genericsManyTypeParameters.ts, 18, 21)) +>b18 : a518, Symbol(b18, Decl(genericsManyTypeParameters.ts, 37, 51)) +>a518 : a518, Symbol(a518, Decl(genericsManyTypeParameters.ts, 18, 27)) +>c18 : a618, Symbol(c18, Decl(genericsManyTypeParameters.ts, 37, 62)) +>a618 : a618, Symbol(a618, Decl(genericsManyTypeParameters.ts, 18, 33)) ) { return [x1 , y1 , z1 , a1 , b1 , c1, >[x1 , y1 , z1 , a1 , b1 , c1, x2 , y2 , z2 , a2 , b2 , c2, x3 , y3 , z3 , a3 , b3 , c3, x4 , y4 , z4 , a4 , b4 , c4, x5 , y5 , z5 , a5 , b5 , c5, x6 , y6 , z6 , a6 , b6 , c6, x7 , y7 , z7 , a7 , b7 , c7, x8 , y8 , z8 , a8 , b8 , c8, x9 , y9 , z9 , a9 , b9 , c9, x10 , y12 , z10 , a10 , b10 , c10, x11 , y13 , z11 , a11 , b11 , c11, x12 , y14 , z12 , a12 , b12 , c12, x13 , y15 , z13 , a13 , b13 , c13, x14 , y16 , z14 , a14 , b14 , c14, x15 , y17 , z15 , a15 , b15 , c15, x16 , y18 , z16 , a16 , b16 , c16, x17 , y19 , z17 , a17 , b17 , c17, x18 , y10 , z18 , a18 , b18 , c18] : (a1 | a21 | a31 | a41 | a51 | a61 | a119 | a22 | a32 | a42 | a52 | a62 | a219 | a23 | a33 | a43 | a53 | a63 | a319 | a24 | a34 | a44 | a54 | a64 | a419 | a25 | a35 | a45 | a55 | a65 | a519 | a26 | a36 | a46 | a56 | a66 | a619 | a27 | a37 | a47 | a57 | a67 | a71 | a28 | a38 | a48 | a58 | a68 | a81 | a29 | a39 | a49 | a59 | a69 | a91 | a210 | a310 | a410 | a510 | a610 | a111 | a211 | a311 | a411 | a511 | a611 | a112 | a212 | a312 | a412 | a512 | a612 | a113 | a213 | a313 | a413 | a513 | a613 | a114 | a214 | a314 | a414 | a514 | a614 | a115 | a215 | a315 | a415 | a515 | a615 | a116 | a216 | a316 | a416 | a516 | a616 | a117 | a217 | a317 | a417 | a517 | a617 | a118 | a218 | a318 | a418 | a518 | a618)[] ->x1 : a1 ->y1 : a21 ->z1 : a31 ->a1 : a41 ->b1 : a51 ->c1 : a61 +>x1 : a1, Symbol(x1, Decl(genericsManyTypeParameters.ts, 19, 5)) +>y1 : a21, Symbol(y1, Decl(genericsManyTypeParameters.ts, 20, 15)) +>z1 : a31, Symbol(z1, Decl(genericsManyTypeParameters.ts, 20, 24)) +>a1 : a41, Symbol(a1, Decl(genericsManyTypeParameters.ts, 0, 13), Decl(genericsManyTypeParameters.ts, 20, 33)) +>b1 : a51, Symbol(b1, Decl(genericsManyTypeParameters.ts, 20, 42)) +>c1 : a61, Symbol(c1, Decl(genericsManyTypeParameters.ts, 20, 51)) x2 , y2 , z2 , a2 , b2 , c2, ->x2 : a119 ->y2 : a22 ->z2 : a32 ->a2 : a42 ->b2 : a52 ->c2 : a62 +>x2 : a119, Symbol(x2, Decl(genericsManyTypeParameters.ts, 20, 60)) +>y2 : a22, Symbol(y2, Decl(genericsManyTypeParameters.ts, 21, 17)) +>z2 : a32, Symbol(z2, Decl(genericsManyTypeParameters.ts, 21, 26)) +>a2 : a42, Symbol(a2, Decl(genericsManyTypeParameters.ts, 21, 35)) +>b2 : a52, Symbol(b2, Decl(genericsManyTypeParameters.ts, 21, 44)) +>c2 : a62, Symbol(c2, Decl(genericsManyTypeParameters.ts, 21, 53)) x3 , y3 , z3 , a3 , b3 , c3, ->x3 : a219 ->y3 : a23 ->z3 : a33 ->a3 : a43 ->b3 : a53 ->c3 : a63 +>x3 : a219, Symbol(x3, Decl(genericsManyTypeParameters.ts, 21, 62)) +>y3 : a23, Symbol(y3, Decl(genericsManyTypeParameters.ts, 22, 17)) +>z3 : a33, Symbol(z3, Decl(genericsManyTypeParameters.ts, 22, 26)) +>a3 : a43, Symbol(a3, Decl(genericsManyTypeParameters.ts, 22, 35)) +>b3 : a53, Symbol(b3, Decl(genericsManyTypeParameters.ts, 22, 44)) +>c3 : a63, Symbol(c3, Decl(genericsManyTypeParameters.ts, 22, 53)) x4 , y4 , z4 , a4 , b4 , c4, ->x4 : a319 ->y4 : a24 ->z4 : a34 ->a4 : a44 ->b4 : a54 ->c4 : a64 +>x4 : a319, Symbol(x4, Decl(genericsManyTypeParameters.ts, 22, 62)) +>y4 : a24, Symbol(y4, Decl(genericsManyTypeParameters.ts, 23, 17)) +>z4 : a34, Symbol(z4, Decl(genericsManyTypeParameters.ts, 23, 26)) +>a4 : a44, Symbol(a4, Decl(genericsManyTypeParameters.ts, 23, 35)) +>b4 : a54, Symbol(b4, Decl(genericsManyTypeParameters.ts, 23, 44)) +>c4 : a64, Symbol(c4, Decl(genericsManyTypeParameters.ts, 23, 53)) x5 , y5 , z5 , a5 , b5 , c5, ->x5 : a419 ->y5 : a25 ->z5 : a35 ->a5 : a45 ->b5 : a55 ->c5 : a65 +>x5 : a419, Symbol(x5, Decl(genericsManyTypeParameters.ts, 23, 62)) +>y5 : a25, Symbol(y5, Decl(genericsManyTypeParameters.ts, 24, 17)) +>z5 : a35, Symbol(z5, Decl(genericsManyTypeParameters.ts, 24, 26)) +>a5 : a45, Symbol(a5, Decl(genericsManyTypeParameters.ts, 24, 35)) +>b5 : a55, Symbol(b5, Decl(genericsManyTypeParameters.ts, 24, 44)) +>c5 : a65, Symbol(c5, Decl(genericsManyTypeParameters.ts, 24, 53)) x6 , y6 , z6 , a6 , b6 , c6, ->x6 : a519 ->y6 : a26 ->z6 : a36 ->a6 : a46 ->b6 : a56 ->c6 : a66 +>x6 : a519, Symbol(x6, Decl(genericsManyTypeParameters.ts, 24, 62)) +>y6 : a26, Symbol(y6, Decl(genericsManyTypeParameters.ts, 25, 17)) +>z6 : a36, Symbol(z6, Decl(genericsManyTypeParameters.ts, 25, 26)) +>a6 : a46, Symbol(a6, Decl(genericsManyTypeParameters.ts, 25, 35)) +>b6 : a56, Symbol(b6, Decl(genericsManyTypeParameters.ts, 25, 44)) +>c6 : a66, Symbol(c6, Decl(genericsManyTypeParameters.ts, 25, 53)) x7 , y7 , z7 , a7 , b7 , c7, ->x7 : a619 ->y7 : a27 ->z7 : a37 ->a7 : a47 ->b7 : a57 ->c7 : a67 +>x7 : a619, Symbol(x7, Decl(genericsManyTypeParameters.ts, 25, 62)) +>y7 : a27, Symbol(y7, Decl(genericsManyTypeParameters.ts, 26, 17)) +>z7 : a37, Symbol(z7, Decl(genericsManyTypeParameters.ts, 26, 26)) +>a7 : a47, Symbol(a7, Decl(genericsManyTypeParameters.ts, 26, 35)) +>b7 : a57, Symbol(b7, Decl(genericsManyTypeParameters.ts, 26, 44)) +>c7 : a67, Symbol(c7, Decl(genericsManyTypeParameters.ts, 26, 53)) x8 , y8 , z8 , a8 , b8 , c8, ->x8 : a71 ->y8 : a28 ->z8 : a38 ->a8 : a48 ->b8 : a58 ->c8 : a68 +>x8 : a71, Symbol(x8, Decl(genericsManyTypeParameters.ts, 26, 62)) +>y8 : a28, Symbol(y8, Decl(genericsManyTypeParameters.ts, 27, 16)) +>z8 : a38, Symbol(z8, Decl(genericsManyTypeParameters.ts, 27, 25)) +>a8 : a48, Symbol(a8, Decl(genericsManyTypeParameters.ts, 27, 34)) +>b8 : a58, Symbol(b8, Decl(genericsManyTypeParameters.ts, 27, 43)) +>c8 : a68, Symbol(c8, Decl(genericsManyTypeParameters.ts, 27, 52)) x9 , y9 , z9 , a9 , b9 , c9, ->x9 : a81 ->y9 : a29 ->z9 : a39 ->a9 : a49 ->b9 : a59 ->c9 : a69 +>x9 : a81, Symbol(x9, Decl(genericsManyTypeParameters.ts, 27, 61)) +>y9 : a29, Symbol(y9, Decl(genericsManyTypeParameters.ts, 28, 16)) +>z9 : a39, Symbol(z9, Decl(genericsManyTypeParameters.ts, 28, 25)) +>a9 : a49, Symbol(a9, Decl(genericsManyTypeParameters.ts, 28, 34)) +>b9 : a59, Symbol(b9, Decl(genericsManyTypeParameters.ts, 28, 43)) +>c9 : a69, Symbol(c9, Decl(genericsManyTypeParameters.ts, 28, 52)) x10 , y12 , z10 , a10 , b10 , c10, ->x10 : a91 ->y12 : a210 ->z10 : a310 ->a10 : a410 ->b10 : a510 ->c10 : a610 +>x10 : a91, Symbol(x10, Decl(genericsManyTypeParameters.ts, 28, 61)) +>y12 : a210, Symbol(y12, Decl(genericsManyTypeParameters.ts, 29, 17)) +>z10 : a310, Symbol(z10, Decl(genericsManyTypeParameters.ts, 29, 28)) +>a10 : a410, Symbol(a10, Decl(genericsManyTypeParameters.ts, 29, 39)) +>b10 : a510, Symbol(b10, Decl(genericsManyTypeParameters.ts, 29, 50)) +>c10 : a610, Symbol(c10, Decl(genericsManyTypeParameters.ts, 29, 61)) x11 , y13 , z11 , a11 , b11 , c11, ->x11 : a111 ->y13 : a211 ->z11 : a311 ->a11 : a411 ->b11 : a511 ->c11 : a611 +>x11 : a111, Symbol(x11, Decl(genericsManyTypeParameters.ts, 29, 72)) +>y13 : a211, Symbol(y13, Decl(genericsManyTypeParameters.ts, 30, 18)) +>z11 : a311, Symbol(z11, Decl(genericsManyTypeParameters.ts, 30, 29)) +>a11 : a411, Symbol(a11, Decl(genericsManyTypeParameters.ts, 30, 40)) +>b11 : a511, Symbol(b11, Decl(genericsManyTypeParameters.ts, 30, 51)) +>c11 : a611, Symbol(c11, Decl(genericsManyTypeParameters.ts, 30, 62)) x12 , y14 , z12 , a12 , b12 , c12, ->x12 : a112 ->y14 : a212 ->z12 : a312 ->a12 : a412 ->b12 : a512 ->c12 : a612 +>x12 : a112, Symbol(x12, Decl(genericsManyTypeParameters.ts, 30, 73)) +>y14 : a212, Symbol(y14, Decl(genericsManyTypeParameters.ts, 31, 18)) +>z12 : a312, Symbol(z12, Decl(genericsManyTypeParameters.ts, 31, 29)) +>a12 : a412, Symbol(a12, Decl(genericsManyTypeParameters.ts, 31, 40)) +>b12 : a512, Symbol(b12, Decl(genericsManyTypeParameters.ts, 31, 51)) +>c12 : a612, Symbol(c12, Decl(genericsManyTypeParameters.ts, 31, 62)) x13 , y15 , z13 , a13 , b13 , c13, ->x13 : a113 ->y15 : a213 ->z13 : a313 ->a13 : a413 ->b13 : a513 ->c13 : a613 +>x13 : a113, Symbol(x13, Decl(genericsManyTypeParameters.ts, 31, 73)) +>y15 : a213, Symbol(y15, Decl(genericsManyTypeParameters.ts, 32, 18)) +>z13 : a313, Symbol(z13, Decl(genericsManyTypeParameters.ts, 32, 29)) +>a13 : a413, Symbol(a13, Decl(genericsManyTypeParameters.ts, 32, 40)) +>b13 : a513, Symbol(b13, Decl(genericsManyTypeParameters.ts, 32, 51)) +>c13 : a613, Symbol(c13, Decl(genericsManyTypeParameters.ts, 32, 62)) x14 , y16 , z14 , a14 , b14 , c14, ->x14 : a114 ->y16 : a214 ->z14 : a314 ->a14 : a414 ->b14 : a514 ->c14 : a614 +>x14 : a114, Symbol(x14, Decl(genericsManyTypeParameters.ts, 32, 73)) +>y16 : a214, Symbol(y16, Decl(genericsManyTypeParameters.ts, 33, 18)) +>z14 : a314, Symbol(z14, Decl(genericsManyTypeParameters.ts, 33, 29)) +>a14 : a414, Symbol(a14, Decl(genericsManyTypeParameters.ts, 33, 40)) +>b14 : a514, Symbol(b14, Decl(genericsManyTypeParameters.ts, 33, 51)) +>c14 : a614, Symbol(c14, Decl(genericsManyTypeParameters.ts, 33, 62)) x15 , y17 , z15 , a15 , b15 , c15, ->x15 : a115 ->y17 : a215 ->z15 : a315 ->a15 : a415 ->b15 : a515 ->c15 : a615 +>x15 : a115, Symbol(x15, Decl(genericsManyTypeParameters.ts, 33, 73)) +>y17 : a215, Symbol(y17, Decl(genericsManyTypeParameters.ts, 34, 18)) +>z15 : a315, Symbol(z15, Decl(genericsManyTypeParameters.ts, 34, 29)) +>a15 : a415, Symbol(a15, Decl(genericsManyTypeParameters.ts, 34, 40)) +>b15 : a515, Symbol(b15, Decl(genericsManyTypeParameters.ts, 34, 51)) +>c15 : a615, Symbol(c15, Decl(genericsManyTypeParameters.ts, 34, 62)) x16 , y18 , z16 , a16 , b16 , c16, ->x16 : a116 ->y18 : a216 ->z16 : a316 ->a16 : a416 ->b16 : a516 ->c16 : a616 +>x16 : a116, Symbol(x16, Decl(genericsManyTypeParameters.ts, 34, 73)) +>y18 : a216, Symbol(y18, Decl(genericsManyTypeParameters.ts, 35, 18)) +>z16 : a316, Symbol(z16, Decl(genericsManyTypeParameters.ts, 35, 29)) +>a16 : a416, Symbol(a16, Decl(genericsManyTypeParameters.ts, 35, 40)) +>b16 : a516, Symbol(b16, Decl(genericsManyTypeParameters.ts, 35, 51)) +>c16 : a616, Symbol(c16, Decl(genericsManyTypeParameters.ts, 35, 62)) x17 , y19 , z17 , a17 , b17 , c17, ->x17 : a117 ->y19 : a217 ->z17 : a317 ->a17 : a417 ->b17 : a517 ->c17 : a617 +>x17 : a117, Symbol(x17, Decl(genericsManyTypeParameters.ts, 35, 73)) +>y19 : a217, Symbol(y19, Decl(genericsManyTypeParameters.ts, 36, 18)) +>z17 : a317, Symbol(z17, Decl(genericsManyTypeParameters.ts, 36, 29)) +>a17 : a417, Symbol(a17, Decl(genericsManyTypeParameters.ts, 36, 40)) +>b17 : a517, Symbol(b17, Decl(genericsManyTypeParameters.ts, 36, 51)) +>c17 : a617, Symbol(c17, Decl(genericsManyTypeParameters.ts, 36, 62)) x18 , y10 , z18 , a18 , b18 , c18]; ->x18 : a118 ->y10 : a218 ->z18 : a318 ->a18 : a418 ->b18 : a518 ->c18 : a618 +>x18 : a118, Symbol(x18, Decl(genericsManyTypeParameters.ts, 36, 73)) +>y10 : a218, Symbol(y10, Decl(genericsManyTypeParameters.ts, 37, 18)) +>z18 : a318, Symbol(z18, Decl(genericsManyTypeParameters.ts, 37, 29)) +>a18 : a418, Symbol(a18, Decl(genericsManyTypeParameters.ts, 37, 40)) +>b18 : a518, Symbol(b18, Decl(genericsManyTypeParameters.ts, 37, 51)) +>c18 : a618, Symbol(c18, Decl(genericsManyTypeParameters.ts, 37, 62)) } diff --git a/tests/baselines/reference/getterSetterNonAccessor.types b/tests/baselines/reference/getterSetterNonAccessor.types index f3e5d549cff..299288a2484 100644 --- a/tests/baselines/reference/getterSetterNonAccessor.types +++ b/tests/baselines/reference/getterSetterNonAccessor.types @@ -1,32 +1,35 @@ === tests/cases/compiler/getterSetterNonAccessor.ts === function getFunc():any{return 0;} ->getFunc : () => any +>getFunc : () => any, Symbol(getFunc, Decl(getterSetterNonAccessor.ts, 0, 0)) +>0 : number function setFunc(v){} ->setFunc : (v: any) => void ->v : any +>setFunc : (v: any) => void, Symbol(setFunc, Decl(getterSetterNonAccessor.ts, 0, 33)) +>v : any, Symbol(v, Decl(getterSetterNonAccessor.ts, 1, 17)) Object.defineProperty({}, "0", ({ >Object.defineProperty({}, "0", ({ get: getFunc, set: setFunc, configurable: true })) : any ->Object.defineProperty : (o: any, p: string, attributes: PropertyDescriptor) => any ->Object : ObjectConstructor ->defineProperty : (o: any, p: string, attributes: PropertyDescriptor) => any +>Object.defineProperty : (o: any, p: string, attributes: PropertyDescriptor) => any, Symbol(ObjectConstructor.defineProperty, Decl(lib.d.ts, 160, 60)) +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>defineProperty : (o: any, p: string, attributes: PropertyDescriptor) => any, Symbol(ObjectConstructor.defineProperty, Decl(lib.d.ts, 160, 60)) >{} : {} +>"0" : string >({ get: getFunc, set: setFunc, configurable: true }) : PropertyDescriptor ->PropertyDescriptor : PropertyDescriptor +>PropertyDescriptor : PropertyDescriptor, Symbol(PropertyDescriptor, Decl(lib.d.ts, 79, 66)) >({ get: getFunc, set: setFunc, configurable: true }) : { get: () => any; set: (v: any) => void; configurable: boolean; } >{ get: getFunc, set: setFunc, configurable: true } : { get: () => any; set: (v: any) => void; configurable: boolean; } get: getFunc, ->get : () => any ->getFunc : () => any +>get : () => any, Symbol(get, Decl(getterSetterNonAccessor.ts, 3, 53)) +>getFunc : () => any, Symbol(getFunc, Decl(getterSetterNonAccessor.ts, 0, 0)) set: setFunc, ->set : (v: any) => void ->setFunc : (v: any) => void +>set : (v: any) => void, Symbol(set, Decl(getterSetterNonAccessor.ts, 4, 23)) +>setFunc : (v: any) => void, Symbol(setFunc, Decl(getterSetterNonAccessor.ts, 0, 33)) configurable: true ->configurable : boolean +>configurable : boolean, Symbol(configurable, Decl(getterSetterNonAccessor.ts, 5, 23)) +>true : boolean })); diff --git a/tests/baselines/reference/global.types b/tests/baselines/reference/global.types index 86d5dd3c986..6fb54558a4d 100644 --- a/tests/baselines/reference/global.types +++ b/tests/baselines/reference/global.types @@ -1,25 +1,27 @@ === tests/cases/compiler/global.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(global.ts, 0, 0)) export function f(y:number) { ->f : (y: number) => number ->y : number +>f : (y: number) => number, Symbol(f, Decl(global.ts, 0, 10)) +>y : number, Symbol(y, Decl(global.ts, 1, 22)) return x+y; >x+y : number ->x : number ->y : number +>x : number, Symbol(x, Decl(global.ts, 6, 3)) +>y : number, Symbol(y, Decl(global.ts, 1, 22)) } } var x=10; ->x : number +>x : number, Symbol(x, Decl(global.ts, 6, 3)) +>10 : number M.f(3); >M.f(3) : number ->M.f : (y: number) => number ->M : typeof M ->f : (y: number) => number +>M.f : (y: number) => number, Symbol(M.f, Decl(global.ts, 0, 10)) +>M : typeof M, Symbol(M, Decl(global.ts, 0, 0)) +>f : (y: number) => number, Symbol(M.f, Decl(global.ts, 0, 10)) +>3 : number diff --git a/tests/baselines/reference/globalThis.types b/tests/baselines/reference/globalThis.types index 479b8ae276a..6f390b62364 100644 --- a/tests/baselines/reference/globalThis.types +++ b/tests/baselines/reference/globalThis.types @@ -1,7 +1,7 @@ === tests/cases/compiler/globalThis.ts === var __e = Math.E; // should not generate 'this.Math.E' ->__e : number ->Math.E : number ->Math : Math ->E : number +>__e : number, Symbol(__e, Decl(globalThis.ts, 0, 3)) +>Math.E : number, Symbol(Math.E, Decl(lib.d.ts, 524, 16)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>E : number, Symbol(Math.E, Decl(lib.d.ts, 524, 16)) diff --git a/tests/baselines/reference/globalThisCapture.types b/tests/baselines/reference/globalThisCapture.types index 71bb4e99853..bd891672932 100644 --- a/tests/baselines/reference/globalThisCapture.types +++ b/tests/baselines/reference/globalThisCapture.types @@ -8,11 +8,12 @@ >window : any var parts = []; ->parts : any[] +>parts : any[], Symbol(parts, Decl(globalThisCapture.ts, 3, 3)) >[] : undefined[] // Ensure that the generated code is correct parts[0]; >parts[0] : any ->parts : any[] +>parts : any[], Symbol(parts, Decl(globalThisCapture.ts, 3, 3)) +>0 : number diff --git a/tests/baselines/reference/heterogeneousArrayLiterals.types b/tests/baselines/reference/heterogeneousArrayLiterals.types index dc4e21d85ee..da16b86cda3 100644 --- a/tests/baselines/reference/heterogeneousArrayLiterals.types +++ b/tests/baselines/reference/heterogeneousArrayLiterals.types @@ -2,519 +2,563 @@ // type of an array is the best common type of its elements (plus its contextual type if it exists) var a = [1, '']; // {}[] ->a : (string | number)[] +>a : (string | number)[], Symbol(a, Decl(heterogeneousArrayLiterals.ts, 2, 3)) >[1, ''] : (string | number)[] +>1 : number +>'' : string var b = [1, null]; // number[] ->b : number[] +>b : number[], Symbol(b, Decl(heterogeneousArrayLiterals.ts, 3, 3)) >[1, null] : number[] +>1 : number +>null : null var c = [1, '', null]; // {}[] ->c : (string | number)[] +>c : (string | number)[], Symbol(c, Decl(heterogeneousArrayLiterals.ts, 4, 3)) >[1, '', null] : (string | number)[] +>1 : number +>'' : string +>null : null var d = [{}, 1]; // {}[] ->d : {}[] +>d : {}[], Symbol(d, Decl(heterogeneousArrayLiterals.ts, 5, 3)) >[{}, 1] : {}[] >{} : {} +>1 : number var e = [{}, Object]; // {}[] ->e : {}[] +>e : {}[], Symbol(e, Decl(heterogeneousArrayLiterals.ts, 6, 3)) >[{}, Object] : {}[] >{} : {} ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var f = [[], [1]]; // number[][] ->f : number[][] +>f : number[][], Symbol(f, Decl(heterogeneousArrayLiterals.ts, 8, 3)) >[[], [1]] : number[][] >[] : undefined[] >[1] : number[] +>1 : number var g = [[1], ['']]; // {}[] ->g : (string[] | number[])[] +>g : (string[] | number[])[], Symbol(g, Decl(heterogeneousArrayLiterals.ts, 9, 3)) >[[1], ['']] : (string[] | number[])[] >[1] : number[] +>1 : number >[''] : string[] +>'' : string var h = [{ foo: 1, bar: '' }, { foo: 2 }]; // {foo: number}[] ->h : { foo: number; }[] +>h : { foo: number; }[], Symbol(h, Decl(heterogeneousArrayLiterals.ts, 11, 3)) >[{ foo: 1, bar: '' }, { foo: 2 }] : { foo: number; }[] >{ foo: 1, bar: '' } : { foo: number; bar: string; } ->foo : number ->bar : string +>foo : number, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 11, 10)) +>1 : number +>bar : string, Symbol(bar, Decl(heterogeneousArrayLiterals.ts, 11, 18)) +>'' : string >{ foo: 2 } : { foo: number; } ->foo : number +>foo : number, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 11, 31)) +>2 : number var i = [{ foo: 1, bar: '' }, { foo: '' }]; // {}[] ->i : ({ foo: number; bar: string; } | { foo: string; })[] +>i : ({ foo: number; bar: string; } | { foo: string; })[], Symbol(i, Decl(heterogeneousArrayLiterals.ts, 12, 3)) >[{ foo: 1, bar: '' }, { foo: '' }] : ({ foo: number; bar: string; } | { foo: string; })[] >{ foo: 1, bar: '' } : { foo: number; bar: string; } ->foo : number ->bar : string +>foo : number, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 12, 10)) +>1 : number +>bar : string, Symbol(bar, Decl(heterogeneousArrayLiterals.ts, 12, 18)) +>'' : string >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 12, 31)) +>'' : string var j = [() => 1, () => '']; // {}[] ->j : ((() => number) | (() => string))[] +>j : ((() => number) | (() => string))[], Symbol(j, Decl(heterogeneousArrayLiterals.ts, 14, 3)) >[() => 1, () => ''] : ((() => number) | (() => string))[] >() => 1 : () => number +>1 : number >() => '' : () => string +>'' : string var k = [() => 1, () => 1]; // { (): number }[] ->k : (() => number)[] +>k : (() => number)[], Symbol(k, Decl(heterogeneousArrayLiterals.ts, 15, 3)) >[() => 1, () => 1] : (() => number)[] >() => 1 : () => number +>1 : number >() => 1 : () => number +>1 : number var l = [() => 1, () => null]; // { (): any }[] ->l : (() => any)[] +>l : (() => any)[], Symbol(l, Decl(heterogeneousArrayLiterals.ts, 16, 3)) >[() => 1, () => null] : (() => any)[] >() => 1 : () => number +>1 : number >() => null : () => any +>null : null var m = [() => 1, () => '', () => null]; // { (): any }[] ->m : (() => any)[] +>m : (() => any)[], Symbol(m, Decl(heterogeneousArrayLiterals.ts, 17, 3)) >[() => 1, () => '', () => null] : (() => any)[] >() => 1 : () => number +>1 : number >() => '' : () => string +>'' : string >() => null : () => any +>null : null var n = [[() => 1], [() => '']]; // {}[] ->n : ((() => number)[] | (() => string)[])[] +>n : ((() => number)[] | (() => string)[])[], Symbol(n, Decl(heterogeneousArrayLiterals.ts, 18, 3)) >[[() => 1], [() => '']] : ((() => number)[] | (() => string)[])[] >[() => 1] : (() => number)[] >() => 1 : () => number +>1 : number >[() => ''] : (() => string)[] >() => '' : () => string +>'' : string class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) +>foo : string, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 20, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) +>bar : string, Symbol(bar, Decl(heterogeneousArrayLiterals.ts, 21, 28)) class Derived2 extends Base { baz: string; } ->Derived2 : Derived2 ->Base : Base ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(heterogeneousArrayLiterals.ts, 21, 43)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) +>baz : string, Symbol(baz, Decl(heterogeneousArrayLiterals.ts, 22, 29)) var base: Base; ->base : Base ->Base : Base +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) var derived: Derived; ->derived : Derived ->Derived : Derived +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) var derived2: Derived2; ->derived2 : Derived2 ->Derived2 : Derived2 +>derived2 : Derived2, Symbol(derived2, Decl(heterogeneousArrayLiterals.ts, 25, 3)) +>Derived2 : Derived2, Symbol(Derived2, Decl(heterogeneousArrayLiterals.ts, 21, 43)) module Derived { ->Derived : typeof Derived +>Derived : typeof Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) var h = [{ foo: base, basear: derived }, { foo: base }]; // {foo: Base}[] ->h : { foo: Base; }[] +>h : { foo: Base; }[], Symbol(h, Decl(heterogeneousArrayLiterals.ts, 28, 7)) >[{ foo: base, basear: derived }, { foo: base }] : { foo: Base; }[] >{ foo: base, basear: derived } : { foo: Base; basear: Derived; } ->foo : Base ->base : Base ->basear : Derived ->derived : Derived +>foo : Base, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 28, 14)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) +>basear : Derived, Symbol(basear, Decl(heterogeneousArrayLiterals.ts, 28, 25)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) >{ foo: base } : { foo: Base; } ->foo : Base ->base : Base +>foo : Base, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 28, 46)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var i = [{ foo: base, basear: derived }, { foo: derived }]; // {foo: Derived}[] ->i : ({ foo: Base; basear: Derived; } | { foo: Derived; })[] +>i : ({ foo: Base; basear: Derived; } | { foo: Derived; })[], Symbol(i, Decl(heterogeneousArrayLiterals.ts, 29, 7)) >[{ foo: base, basear: derived }, { foo: derived }] : ({ foo: Base; basear: Derived; } | { foo: Derived; })[] >{ foo: base, basear: derived } : { foo: Base; basear: Derived; } ->foo : Base ->base : Base ->basear : Derived ->derived : Derived +>foo : Base, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 29, 14)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) +>basear : Derived, Symbol(basear, Decl(heterogeneousArrayLiterals.ts, 29, 25)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) >{ foo: derived } : { foo: Derived; } ->foo : Derived ->derived : Derived +>foo : Derived, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 29, 46)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var j = [() => base, () => derived]; // { {}: Base } ->j : (() => Base)[] +>j : (() => Base)[], Symbol(j, Decl(heterogeneousArrayLiterals.ts, 31, 7)) >[() => base, () => derived] : (() => Base)[] >() => base : () => Base ->base : Base +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) >() => derived : () => Derived ->derived : Derived +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var k = [() => base, () => 1]; // {}[]~ ->k : ((() => Base) | (() => number))[] +>k : ((() => Base) | (() => number))[], Symbol(k, Decl(heterogeneousArrayLiterals.ts, 32, 7)) >[() => base, () => 1] : ((() => Base) | (() => number))[] >() => base : () => Base ->base : Base +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) >() => 1 : () => number +>1 : number var l = [() => base, () => null]; // { (): any }[] ->l : (() => any)[] +>l : (() => any)[], Symbol(l, Decl(heterogeneousArrayLiterals.ts, 33, 7)) >[() => base, () => null] : (() => any)[] >() => base : () => Base ->base : Base +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) >() => null : () => any +>null : null var m = [() => base, () => derived, () => null]; // { (): any }[] ->m : (() => any)[] +>m : (() => any)[], Symbol(m, Decl(heterogeneousArrayLiterals.ts, 34, 7)) >[() => base, () => derived, () => null] : (() => any)[] >() => base : () => Base ->base : Base +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) >() => derived : () => Derived ->derived : Derived +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) >() => null : () => any +>null : null var n = [[() => base], [() => derived]]; // { (): Base }[] ->n : (() => Base)[][] +>n : (() => Base)[][], Symbol(n, Decl(heterogeneousArrayLiterals.ts, 35, 7)) >[[() => base], [() => derived]] : (() => Base)[][] >[() => base] : (() => Base)[] >() => base : () => Base ->base : Base +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) >[() => derived] : (() => Derived)[] >() => derived : () => Derived ->derived : Derived +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var o = [derived, derived2]; // {}[] ->o : (Derived | Derived2)[] +>o : (Derived | Derived2)[], Symbol(o, Decl(heterogeneousArrayLiterals.ts, 36, 7)) >[derived, derived2] : (Derived | Derived2)[] ->derived : Derived ->derived2 : Derived2 +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) +>derived2 : Derived2, Symbol(derived2, Decl(heterogeneousArrayLiterals.ts, 25, 3)) var p = [derived, derived2, base]; // Base[] ->p : Base[] +>p : Base[], Symbol(p, Decl(heterogeneousArrayLiterals.ts, 37, 7)) >[derived, derived2, base] : Base[] ->derived : Derived ->derived2 : Derived2 ->base : Base +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) +>derived2 : Derived2, Symbol(derived2, Decl(heterogeneousArrayLiterals.ts, 25, 3)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var q = [[() => derived2], [() => derived]]; // {}[] ->q : ((() => Derived2)[] | (() => Derived)[])[] +>q : ((() => Derived2)[] | (() => Derived)[])[], Symbol(q, Decl(heterogeneousArrayLiterals.ts, 38, 7)) >[[() => derived2], [() => derived]] : ((() => Derived2)[] | (() => Derived)[])[] >[() => derived2] : (() => Derived2)[] >() => derived2 : () => Derived2 ->derived2 : Derived2 +>derived2 : Derived2, Symbol(derived2, Decl(heterogeneousArrayLiterals.ts, 25, 3)) >[() => derived] : (() => Derived)[] >() => derived : () => Derived ->derived : Derived +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) } module WithContextualType { ->WithContextualType : typeof WithContextualType +>WithContextualType : typeof WithContextualType, Symbol(WithContextualType, Decl(heterogeneousArrayLiterals.ts, 39, 1)) // no errors var a: Base[] = [derived, derived2]; ->a : Base[] ->Base : Base +>a : Base[], Symbol(a, Decl(heterogeneousArrayLiterals.ts, 43, 7)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) >[derived, derived2] : (Derived | Derived2)[] ->derived : Derived ->derived2 : Derived2 +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) +>derived2 : Derived2, Symbol(derived2, Decl(heterogeneousArrayLiterals.ts, 25, 3)) var b: Derived[] = [null]; ->b : Derived[] ->Derived : Derived +>b : Derived[], Symbol(b, Decl(heterogeneousArrayLiterals.ts, 44, 7)) +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) >[null] : null[] +>null : null var c: Derived[] = []; ->c : Derived[] ->Derived : Derived +>c : Derived[], Symbol(c, Decl(heterogeneousArrayLiterals.ts, 45, 7)) +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) >[] : undefined[] var d: { (): Base }[] = [() => derived, () => derived2]; ->d : (() => Base)[] ->Base : Base +>d : (() => Base)[], Symbol(d, Decl(heterogeneousArrayLiterals.ts, 46, 7)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) >[() => derived, () => derived2] : ((() => Derived) | (() => Derived2))[] >() => derived : () => Derived ->derived : Derived +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) >() => derived2 : () => Derived2 ->derived2 : Derived2 +>derived2 : Derived2, Symbol(derived2, Decl(heterogeneousArrayLiterals.ts, 25, 3)) } function foo(t: T, u: U) { ->foo : (t: T, u: U) => void ->T : T ->U : U ->t : T ->T : T ->u : U ->U : U +>foo : (t: T, u: U) => void, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 47, 1)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 49, 13)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 49, 15)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 49, 13)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 49, 24)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 49, 15)) var a = [t, t]; // T[] ->a : T[] +>a : T[], Symbol(a, Decl(heterogeneousArrayLiterals.ts, 50, 7)) >[t, t] : T[] ->t : T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) var b = [t, null]; // T[] ->b : T[] +>b : T[], Symbol(b, Decl(heterogeneousArrayLiterals.ts, 51, 7)) >[t, null] : T[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) +>null : null var c = [t, u]; // {}[] ->c : (T | U)[] +>c : (T | U)[], Symbol(c, Decl(heterogeneousArrayLiterals.ts, 52, 7)) >[t, u] : (T | U)[] ->t : T ->u : U +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 49, 24)) var d = [t, 1]; // {}[] ->d : (number | T)[] +>d : (number | T)[], Symbol(d, Decl(heterogeneousArrayLiterals.ts, 53, 7)) >[t, 1] : (number | T)[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) +>1 : number var e = [() => t, () => u]; // {}[] ->e : ((() => T) | (() => U))[] +>e : ((() => T) | (() => U))[], Symbol(e, Decl(heterogeneousArrayLiterals.ts, 54, 7)) >[() => t, () => u] : ((() => T) | (() => U))[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 49, 24)) var f = [() => t, () => u, () => null]; // { (): any }[] ->f : (() => any)[] +>f : (() => any)[], Symbol(f, Decl(heterogeneousArrayLiterals.ts, 55, 7)) >[() => t, () => u, () => null] : (() => any)[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 49, 24)) >() => null : () => any +>null : null } function foo2(t: T, u: U) { ->foo2 : (t: T, u: U) => void ->T : T ->Base : Base ->U : U ->Derived : Derived ->t : T ->T : T ->u : U ->U : U +>foo2 : (t: T, u: U) => void, Symbol(foo2, Decl(heterogeneousArrayLiterals.ts, 56, 1)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 58, 14)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 58, 29)) +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 58, 14)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 58, 54)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 58, 29)) var a = [t, t]; // T[] ->a : T[] +>a : T[], Symbol(a, Decl(heterogeneousArrayLiterals.ts, 59, 7)) >[t, t] : T[] ->t : T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) var b = [t, null]; // T[] ->b : T[] +>b : T[], Symbol(b, Decl(heterogeneousArrayLiterals.ts, 60, 7)) >[t, null] : T[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>null : null var c = [t, u]; // {}[] ->c : (T | U)[] +>c : (T | U)[], Symbol(c, Decl(heterogeneousArrayLiterals.ts, 61, 7)) >[t, u] : (T | U)[] ->t : T ->u : U +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 58, 54)) var d = [t, 1]; // {}[] ->d : (number | T)[] +>d : (number | T)[], Symbol(d, Decl(heterogeneousArrayLiterals.ts, 62, 7)) >[t, 1] : (number | T)[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>1 : number var e = [() => t, () => u]; // {}[] ->e : ((() => T) | (() => U))[] +>e : ((() => T) | (() => U))[], Symbol(e, Decl(heterogeneousArrayLiterals.ts, 63, 7)) >[() => t, () => u] : ((() => T) | (() => U))[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 58, 54)) var f = [() => t, () => u, () => null]; // { (): any }[] ->f : (() => any)[] +>f : (() => any)[], Symbol(f, Decl(heterogeneousArrayLiterals.ts, 64, 7)) >[() => t, () => u, () => null] : (() => any)[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 58, 54)) >() => null : () => any +>null : null var g = [t, base]; // Base[] ->g : Base[] +>g : Base[], Symbol(g, Decl(heterogeneousArrayLiterals.ts, 66, 7)) >[t, base] : Base[] ->t : T ->base : Base +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var h = [t, derived]; // Derived[] ->h : (Derived | T)[] +>h : (Derived | T)[], Symbol(h, Decl(heterogeneousArrayLiterals.ts, 67, 7)) >[t, derived] : (Derived | T)[] ->t : T ->derived : Derived +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var i = [u, base]; // Base[] ->i : Base[] +>i : Base[], Symbol(i, Decl(heterogeneousArrayLiterals.ts, 68, 7)) >[u, base] : Base[] ->u : U ->base : Base +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 58, 54)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var j = [u, derived]; // Derived[] ->j : Derived[] +>j : Derived[], Symbol(j, Decl(heterogeneousArrayLiterals.ts, 69, 7)) >[u, derived] : Derived[] ->u : U ->derived : Derived +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 58, 54)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) } function foo3(t: T, u: U) { ->foo3 : (t: T, u: U) => void ->T : T ->Derived : Derived ->U : U ->Derived : Derived ->t : T ->T : T ->u : U ->U : U +>foo3 : (t: T, u: U) => void, Symbol(foo3, Decl(heterogeneousArrayLiterals.ts, 70, 1)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 72, 14)) +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 72, 32)) +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 72, 14)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 72, 57)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 72, 32)) var a = [t, t]; // T[] ->a : T[] +>a : T[], Symbol(a, Decl(heterogeneousArrayLiterals.ts, 73, 7)) >[t, t] : T[] ->t : T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) var b = [t, null]; // T[] ->b : T[] +>b : T[], Symbol(b, Decl(heterogeneousArrayLiterals.ts, 74, 7)) >[t, null] : T[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>null : null var c = [t, u]; // {}[] ->c : (T | U)[] +>c : (T | U)[], Symbol(c, Decl(heterogeneousArrayLiterals.ts, 75, 7)) >[t, u] : (T | U)[] ->t : T ->u : U +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 72, 57)) var d = [t, 1]; // {}[] ->d : (number | T)[] +>d : (number | T)[], Symbol(d, Decl(heterogeneousArrayLiterals.ts, 76, 7)) >[t, 1] : (number | T)[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>1 : number var e = [() => t, () => u]; // {}[] ->e : ((() => T) | (() => U))[] +>e : ((() => T) | (() => U))[], Symbol(e, Decl(heterogeneousArrayLiterals.ts, 77, 7)) >[() => t, () => u] : ((() => T) | (() => U))[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 72, 57)) var f = [() => t, () => u, () => null]; // { (): any }[] ->f : (() => any)[] +>f : (() => any)[], Symbol(f, Decl(heterogeneousArrayLiterals.ts, 78, 7)) >[() => t, () => u, () => null] : (() => any)[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 72, 57)) >() => null : () => any +>null : null var g = [t, base]; // Base[] ->g : Base[] +>g : Base[], Symbol(g, Decl(heterogeneousArrayLiterals.ts, 80, 7)) >[t, base] : Base[] ->t : T ->base : Base +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var h = [t, derived]; // Derived[] ->h : Derived[] +>h : Derived[], Symbol(h, Decl(heterogeneousArrayLiterals.ts, 81, 7)) >[t, derived] : Derived[] ->t : T ->derived : Derived +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var i = [u, base]; // Base[] ->i : Base[] +>i : Base[], Symbol(i, Decl(heterogeneousArrayLiterals.ts, 82, 7)) >[u, base] : Base[] ->u : U ->base : Base +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 72, 57)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var j = [u, derived]; // Derived[] ->j : Derived[] +>j : Derived[], Symbol(j, Decl(heterogeneousArrayLiterals.ts, 83, 7)) >[u, derived] : Derived[] ->u : U ->derived : Derived +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 72, 57)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) } function foo4(t: T, u: U) { ->foo4 : (t: T, u: U) => void ->T : T ->Base : Base ->U : U ->Base : Base ->t : T ->T : T ->u : U ->U : U +>foo4 : (t: T, u: U) => void, Symbol(foo4, Decl(heterogeneousArrayLiterals.ts, 84, 1)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 86, 14)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 86, 29)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 86, 14)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 86, 29)) var a = [t, t]; // T[] ->a : T[] +>a : T[], Symbol(a, Decl(heterogeneousArrayLiterals.ts, 87, 7)) >[t, t] : T[] ->t : T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) var b = [t, null]; // T[] ->b : T[] +>b : T[], Symbol(b, Decl(heterogeneousArrayLiterals.ts, 88, 7)) >[t, null] : T[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>null : null var c = [t, u]; // BUG 821629 ->c : (T | U)[] +>c : (T | U)[], Symbol(c, Decl(heterogeneousArrayLiterals.ts, 89, 7)) >[t, u] : (T | U)[] ->t : T ->u : U +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) var d = [t, 1]; // {}[] ->d : (number | T)[] +>d : (number | T)[], Symbol(d, Decl(heterogeneousArrayLiterals.ts, 90, 7)) >[t, 1] : (number | T)[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>1 : number var e = [() => t, () => u]; // {}[] ->e : ((() => T) | (() => U))[] +>e : ((() => T) | (() => U))[], Symbol(e, Decl(heterogeneousArrayLiterals.ts, 91, 7)) >[() => t, () => u] : ((() => T) | (() => U))[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) var f = [() => t, () => u, () => null]; // { (): any }[] ->f : (() => any)[] +>f : (() => any)[], Symbol(f, Decl(heterogeneousArrayLiterals.ts, 92, 7)) >[() => t, () => u, () => null] : (() => any)[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) >() => null : () => any +>null : null var g = [t, base]; // Base[] ->g : Base[] +>g : Base[], Symbol(g, Decl(heterogeneousArrayLiterals.ts, 94, 7)) >[t, base] : Base[] ->t : T ->base : Base +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var h = [t, derived]; // Derived[] ->h : (Derived | T)[] +>h : (Derived | T)[], Symbol(h, Decl(heterogeneousArrayLiterals.ts, 95, 7)) >[t, derived] : (Derived | T)[] ->t : T ->derived : Derived +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var i = [u, base]; // Base[] ->i : Base[] +>i : Base[], Symbol(i, Decl(heterogeneousArrayLiterals.ts, 96, 7)) >[u, base] : Base[] ->u : U ->base : Base +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var j = [u, derived]; // Derived[] ->j : (Derived | U)[] +>j : (Derived | U)[], Symbol(j, Decl(heterogeneousArrayLiterals.ts, 97, 7)) >[u, derived] : (Derived | U)[] ->u : U ->derived : Derived +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var k: Base[] = [t, u]; ->k : Base[] ->Base : Base +>k : Base[], Symbol(k, Decl(heterogeneousArrayLiterals.ts, 99, 7)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) >[t, u] : (T | U)[] ->t : T ->u : U +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) } //function foo3(t: T, u: U) { diff --git a/tests/baselines/reference/heterogeneousArrayLiterals.types.pull b/tests/baselines/reference/heterogeneousArrayLiterals.types.pull index e35caeed74a..0cb47f873c2 100644 --- a/tests/baselines/reference/heterogeneousArrayLiterals.types.pull +++ b/tests/baselines/reference/heterogeneousArrayLiterals.types.pull @@ -2,519 +2,563 @@ // type of an array is the best common type of its elements (plus its contextual type if it exists) var a = [1, '']; // {}[] ->a : (string | number)[] +>a : (string | number)[], Symbol(a, Decl(heterogeneousArrayLiterals.ts, 2, 3)) >[1, ''] : (string | number)[] +>1 : number +>'' : string var b = [1, null]; // number[] ->b : number[] +>b : number[], Symbol(b, Decl(heterogeneousArrayLiterals.ts, 3, 3)) >[1, null] : number[] +>1 : number +>null : null var c = [1, '', null]; // {}[] ->c : (string | number)[] +>c : (string | number)[], Symbol(c, Decl(heterogeneousArrayLiterals.ts, 4, 3)) >[1, '', null] : (string | number)[] +>1 : number +>'' : string +>null : null var d = [{}, 1]; // {}[] ->d : {}[] +>d : {}[], Symbol(d, Decl(heterogeneousArrayLiterals.ts, 5, 3)) >[{}, 1] : {}[] >{} : {} +>1 : number var e = [{}, Object]; // {}[] ->e : {}[] +>e : {}[], Symbol(e, Decl(heterogeneousArrayLiterals.ts, 6, 3)) >[{}, Object] : {}[] >{} : {} ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var f = [[], [1]]; // number[][] ->f : number[][] +>f : number[][], Symbol(f, Decl(heterogeneousArrayLiterals.ts, 8, 3)) >[[], [1]] : number[][] >[] : undefined[] >[1] : number[] +>1 : number var g = [[1], ['']]; // {}[] ->g : (number[] | string[])[] +>g : (number[] | string[])[], Symbol(g, Decl(heterogeneousArrayLiterals.ts, 9, 3)) >[[1], ['']] : (number[] | string[])[] >[1] : number[] +>1 : number >[''] : string[] +>'' : string var h = [{ foo: 1, bar: '' }, { foo: 2 }]; // {foo: number}[] ->h : { foo: number; }[] +>h : { foo: number; }[], Symbol(h, Decl(heterogeneousArrayLiterals.ts, 11, 3)) >[{ foo: 1, bar: '' }, { foo: 2 }] : { foo: number; }[] >{ foo: 1, bar: '' } : { foo: number; bar: string; } ->foo : number ->bar : string +>foo : number, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 11, 10)) +>1 : number +>bar : string, Symbol(bar, Decl(heterogeneousArrayLiterals.ts, 11, 18)) +>'' : string >{ foo: 2 } : { foo: number; } ->foo : number +>foo : number, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 11, 31)) +>2 : number var i = [{ foo: 1, bar: '' }, { foo: '' }]; // {}[] ->i : ({ foo: number; bar: string; } | { foo: string; })[] +>i : ({ foo: number; bar: string; } | { foo: string; })[], Symbol(i, Decl(heterogeneousArrayLiterals.ts, 12, 3)) >[{ foo: 1, bar: '' }, { foo: '' }] : ({ foo: number; bar: string; } | { foo: string; })[] >{ foo: 1, bar: '' } : { foo: number; bar: string; } ->foo : number ->bar : string +>foo : number, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 12, 10)) +>1 : number +>bar : string, Symbol(bar, Decl(heterogeneousArrayLiterals.ts, 12, 18)) +>'' : string >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 12, 31)) +>'' : string var j = [() => 1, () => '']; // {}[] ->j : ((() => number) | (() => string))[] +>j : ((() => number) | (() => string))[], Symbol(j, Decl(heterogeneousArrayLiterals.ts, 14, 3)) >[() => 1, () => ''] : ((() => number) | (() => string))[] >() => 1 : () => number +>1 : number >() => '' : () => string +>'' : string var k = [() => 1, () => 1]; // { (): number }[] ->k : (() => number)[] +>k : (() => number)[], Symbol(k, Decl(heterogeneousArrayLiterals.ts, 15, 3)) >[() => 1, () => 1] : (() => number)[] >() => 1 : () => number +>1 : number >() => 1 : () => number +>1 : number var l = [() => 1, () => null]; // { (): any }[] ->l : (() => any)[] +>l : (() => any)[], Symbol(l, Decl(heterogeneousArrayLiterals.ts, 16, 3)) >[() => 1, () => null] : (() => any)[] >() => 1 : () => number +>1 : number >() => null : () => any +>null : null var m = [() => 1, () => '', () => null]; // { (): any }[] ->m : (() => any)[] +>m : (() => any)[], Symbol(m, Decl(heterogeneousArrayLiterals.ts, 17, 3)) >[() => 1, () => '', () => null] : (() => any)[] >() => 1 : () => number +>1 : number >() => '' : () => string +>'' : string >() => null : () => any +>null : null var n = [[() => 1], [() => '']]; // {}[] ->n : ((() => number)[] | (() => string)[])[] +>n : ((() => number)[] | (() => string)[])[], Symbol(n, Decl(heterogeneousArrayLiterals.ts, 18, 3)) >[[() => 1], [() => '']] : ((() => number)[] | (() => string)[])[] >[() => 1] : (() => number)[] >() => 1 : () => number +>1 : number >[() => ''] : (() => string)[] >() => '' : () => string +>'' : string class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) +>foo : string, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 20, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) +>bar : string, Symbol(bar, Decl(heterogeneousArrayLiterals.ts, 21, 28)) class Derived2 extends Base { baz: string; } ->Derived2 : Derived2 ->Base : Base ->baz : string +>Derived2 : Derived2, Symbol(Derived2, Decl(heterogeneousArrayLiterals.ts, 21, 43)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) +>baz : string, Symbol(baz, Decl(heterogeneousArrayLiterals.ts, 22, 29)) var base: Base; ->base : Base ->Base : Base +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) var derived: Derived; ->derived : Derived ->Derived : Derived +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) var derived2: Derived2; ->derived2 : Derived2 ->Derived2 : Derived2 +>derived2 : Derived2, Symbol(derived2, Decl(heterogeneousArrayLiterals.ts, 25, 3)) +>Derived2 : Derived2, Symbol(Derived2, Decl(heterogeneousArrayLiterals.ts, 21, 43)) module Derived { ->Derived : typeof Derived +>Derived : typeof Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) var h = [{ foo: base, basear: derived }, { foo: base }]; // {foo: Base}[] ->h : { foo: Base; }[] +>h : { foo: Base; }[], Symbol(h, Decl(heterogeneousArrayLiterals.ts, 28, 7)) >[{ foo: base, basear: derived }, { foo: base }] : { foo: Base; }[] >{ foo: base, basear: derived } : { foo: Base; basear: Derived; } ->foo : Base ->base : Base ->basear : Derived ->derived : Derived +>foo : Base, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 28, 14)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) +>basear : Derived, Symbol(basear, Decl(heterogeneousArrayLiterals.ts, 28, 25)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) >{ foo: base } : { foo: Base; } ->foo : Base ->base : Base +>foo : Base, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 28, 46)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var i = [{ foo: base, basear: derived }, { foo: derived }]; // {foo: Derived}[] ->i : ({ foo: Base; basear: Derived; } | { foo: Derived; })[] +>i : ({ foo: Base; basear: Derived; } | { foo: Derived; })[], Symbol(i, Decl(heterogeneousArrayLiterals.ts, 29, 7)) >[{ foo: base, basear: derived }, { foo: derived }] : ({ foo: Base; basear: Derived; } | { foo: Derived; })[] >{ foo: base, basear: derived } : { foo: Base; basear: Derived; } ->foo : Base ->base : Base ->basear : Derived ->derived : Derived +>foo : Base, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 29, 14)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) +>basear : Derived, Symbol(basear, Decl(heterogeneousArrayLiterals.ts, 29, 25)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) >{ foo: derived } : { foo: Derived; } ->foo : Derived ->derived : Derived +>foo : Derived, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 29, 46)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var j = [() => base, () => derived]; // { {}: Base } ->j : (() => Base)[] +>j : (() => Base)[], Symbol(j, Decl(heterogeneousArrayLiterals.ts, 31, 7)) >[() => base, () => derived] : (() => Base)[] >() => base : () => Base ->base : Base +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) >() => derived : () => Derived ->derived : Derived +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var k = [() => base, () => 1]; // {}[]~ ->k : ((() => Base) | (() => number))[] +>k : ((() => Base) | (() => number))[], Symbol(k, Decl(heterogeneousArrayLiterals.ts, 32, 7)) >[() => base, () => 1] : ((() => Base) | (() => number))[] >() => base : () => Base ->base : Base +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) >() => 1 : () => number +>1 : number var l = [() => base, () => null]; // { (): any }[] ->l : (() => any)[] +>l : (() => any)[], Symbol(l, Decl(heterogeneousArrayLiterals.ts, 33, 7)) >[() => base, () => null] : (() => any)[] >() => base : () => Base ->base : Base +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) >() => null : () => any +>null : null var m = [() => base, () => derived, () => null]; // { (): any }[] ->m : (() => any)[] +>m : (() => any)[], Symbol(m, Decl(heterogeneousArrayLiterals.ts, 34, 7)) >[() => base, () => derived, () => null] : (() => any)[] >() => base : () => Base ->base : Base +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) >() => derived : () => Derived ->derived : Derived +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) >() => null : () => any +>null : null var n = [[() => base], [() => derived]]; // { (): Base }[] ->n : (() => Base)[][] +>n : (() => Base)[][], Symbol(n, Decl(heterogeneousArrayLiterals.ts, 35, 7)) >[[() => base], [() => derived]] : (() => Base)[][] >[() => base] : (() => Base)[] >() => base : () => Base ->base : Base +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) >[() => derived] : (() => Derived)[] >() => derived : () => Derived ->derived : Derived +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var o = [derived, derived2]; // {}[] ->o : (Derived | Derived2)[] +>o : (Derived | Derived2)[], Symbol(o, Decl(heterogeneousArrayLiterals.ts, 36, 7)) >[derived, derived2] : (Derived | Derived2)[] ->derived : Derived ->derived2 : Derived2 +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) +>derived2 : Derived2, Symbol(derived2, Decl(heterogeneousArrayLiterals.ts, 25, 3)) var p = [derived, derived2, base]; // Base[] ->p : Base[] +>p : Base[], Symbol(p, Decl(heterogeneousArrayLiterals.ts, 37, 7)) >[derived, derived2, base] : Base[] ->derived : Derived ->derived2 : Derived2 ->base : Base +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) +>derived2 : Derived2, Symbol(derived2, Decl(heterogeneousArrayLiterals.ts, 25, 3)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var q = [[() => derived2], [() => derived]]; // {}[] ->q : ((() => Derived2)[] | (() => Derived)[])[] +>q : ((() => Derived2)[] | (() => Derived)[])[], Symbol(q, Decl(heterogeneousArrayLiterals.ts, 38, 7)) >[[() => derived2], [() => derived]] : ((() => Derived2)[] | (() => Derived)[])[] >[() => derived2] : (() => Derived2)[] >() => derived2 : () => Derived2 ->derived2 : Derived2 +>derived2 : Derived2, Symbol(derived2, Decl(heterogeneousArrayLiterals.ts, 25, 3)) >[() => derived] : (() => Derived)[] >() => derived : () => Derived ->derived : Derived +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) } module WithContextualType { ->WithContextualType : typeof WithContextualType +>WithContextualType : typeof WithContextualType, Symbol(WithContextualType, Decl(heterogeneousArrayLiterals.ts, 39, 1)) // no errors var a: Base[] = [derived, derived2]; ->a : Base[] ->Base : Base +>a : Base[], Symbol(a, Decl(heterogeneousArrayLiterals.ts, 43, 7)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) >[derived, derived2] : (Derived | Derived2)[] ->derived : Derived ->derived2 : Derived2 +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) +>derived2 : Derived2, Symbol(derived2, Decl(heterogeneousArrayLiterals.ts, 25, 3)) var b: Derived[] = [null]; ->b : Derived[] ->Derived : Derived +>b : Derived[], Symbol(b, Decl(heterogeneousArrayLiterals.ts, 44, 7)) +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) >[null] : null[] +>null : null var c: Derived[] = []; ->c : Derived[] ->Derived : Derived +>c : Derived[], Symbol(c, Decl(heterogeneousArrayLiterals.ts, 45, 7)) +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) >[] : undefined[] var d: { (): Base }[] = [() => derived, () => derived2]; ->d : (() => Base)[] ->Base : Base +>d : (() => Base)[], Symbol(d, Decl(heterogeneousArrayLiterals.ts, 46, 7)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) >[() => derived, () => derived2] : ((() => Derived) | (() => Derived2))[] >() => derived : () => Derived ->derived : Derived +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) >() => derived2 : () => Derived2 ->derived2 : Derived2 +>derived2 : Derived2, Symbol(derived2, Decl(heterogeneousArrayLiterals.ts, 25, 3)) } function foo(t: T, u: U) { ->foo : (t: T, u: U) => void ->T : T ->U : U ->t : T ->T : T ->u : U ->U : U +>foo : (t: T, u: U) => void, Symbol(foo, Decl(heterogeneousArrayLiterals.ts, 47, 1)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 49, 13)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 49, 15)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 49, 13)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 49, 24)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 49, 15)) var a = [t, t]; // T[] ->a : T[] +>a : T[], Symbol(a, Decl(heterogeneousArrayLiterals.ts, 50, 7)) >[t, t] : T[] ->t : T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) var b = [t, null]; // T[] ->b : T[] +>b : T[], Symbol(b, Decl(heterogeneousArrayLiterals.ts, 51, 7)) >[t, null] : T[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) +>null : null var c = [t, u]; // {}[] ->c : (T | U)[] +>c : (T | U)[], Symbol(c, Decl(heterogeneousArrayLiterals.ts, 52, 7)) >[t, u] : (T | U)[] ->t : T ->u : U +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 49, 24)) var d = [t, 1]; // {}[] ->d : (number | T)[] +>d : (number | T)[], Symbol(d, Decl(heterogeneousArrayLiterals.ts, 53, 7)) >[t, 1] : (number | T)[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) +>1 : number var e = [() => t, () => u]; // {}[] ->e : ((() => T) | (() => U))[] +>e : ((() => T) | (() => U))[], Symbol(e, Decl(heterogeneousArrayLiterals.ts, 54, 7)) >[() => t, () => u] : ((() => T) | (() => U))[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 49, 24)) var f = [() => t, () => u, () => null]; // { (): any }[] ->f : (() => any)[] +>f : (() => any)[], Symbol(f, Decl(heterogeneousArrayLiterals.ts, 55, 7)) >[() => t, () => u, () => null] : (() => any)[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 49, 19)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 49, 24)) >() => null : () => any +>null : null } function foo2(t: T, u: U) { ->foo2 : (t: T, u: U) => void ->T : T ->Base : Base ->U : U ->Derived : Derived ->t : T ->T : T ->u : U ->U : U +>foo2 : (t: T, u: U) => void, Symbol(foo2, Decl(heterogeneousArrayLiterals.ts, 56, 1)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 58, 14)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 58, 29)) +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 58, 14)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 58, 54)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 58, 29)) var a = [t, t]; // T[] ->a : T[] +>a : T[], Symbol(a, Decl(heterogeneousArrayLiterals.ts, 59, 7)) >[t, t] : T[] ->t : T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) var b = [t, null]; // T[] ->b : T[] +>b : T[], Symbol(b, Decl(heterogeneousArrayLiterals.ts, 60, 7)) >[t, null] : T[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>null : null var c = [t, u]; // {}[] ->c : (T | U)[] +>c : (T | U)[], Symbol(c, Decl(heterogeneousArrayLiterals.ts, 61, 7)) >[t, u] : (T | U)[] ->t : T ->u : U +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 58, 54)) var d = [t, 1]; // {}[] ->d : (number | T)[] +>d : (number | T)[], Symbol(d, Decl(heterogeneousArrayLiterals.ts, 62, 7)) >[t, 1] : (number | T)[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>1 : number var e = [() => t, () => u]; // {}[] ->e : ((() => T) | (() => U))[] +>e : ((() => T) | (() => U))[], Symbol(e, Decl(heterogeneousArrayLiterals.ts, 63, 7)) >[() => t, () => u] : ((() => T) | (() => U))[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 58, 54)) var f = [() => t, () => u, () => null]; // { (): any }[] ->f : (() => any)[] +>f : (() => any)[], Symbol(f, Decl(heterogeneousArrayLiterals.ts, 64, 7)) >[() => t, () => u, () => null] : (() => any)[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 58, 54)) >() => null : () => any +>null : null var g = [t, base]; // Base[] ->g : Base[] +>g : Base[], Symbol(g, Decl(heterogeneousArrayLiterals.ts, 66, 7)) >[t, base] : Base[] ->t : T ->base : Base +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var h = [t, derived]; // Derived[] ->h : (Derived | T)[] +>h : (Derived | T)[], Symbol(h, Decl(heterogeneousArrayLiterals.ts, 67, 7)) >[t, derived] : (Derived | T)[] ->t : T ->derived : Derived +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 58, 49)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var i = [u, base]; // Base[] ->i : Base[] +>i : Base[], Symbol(i, Decl(heterogeneousArrayLiterals.ts, 68, 7)) >[u, base] : Base[] ->u : U ->base : Base +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 58, 54)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var j = [u, derived]; // Derived[] ->j : Derived[] +>j : Derived[], Symbol(j, Decl(heterogeneousArrayLiterals.ts, 69, 7)) >[u, derived] : Derived[] ->u : U ->derived : Derived +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 58, 54)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) } function foo3(t: T, u: U) { ->foo3 : (t: T, u: U) => void ->T : T ->Derived : Derived ->U : U ->Derived : Derived ->t : T ->T : T ->u : U ->U : U +>foo3 : (t: T, u: U) => void, Symbol(foo3, Decl(heterogeneousArrayLiterals.ts, 70, 1)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 72, 14)) +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 72, 32)) +>Derived : Derived, Symbol(Derived, Decl(heterogeneousArrayLiterals.ts, 20, 27), Decl(heterogeneousArrayLiterals.ts, 25, 23)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 72, 14)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 72, 57)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 72, 32)) var a = [t, t]; // T[] ->a : T[] +>a : T[], Symbol(a, Decl(heterogeneousArrayLiterals.ts, 73, 7)) >[t, t] : T[] ->t : T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) var b = [t, null]; // T[] ->b : T[] +>b : T[], Symbol(b, Decl(heterogeneousArrayLiterals.ts, 74, 7)) >[t, null] : T[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>null : null var c = [t, u]; // {}[] ->c : (T | U)[] +>c : (T | U)[], Symbol(c, Decl(heterogeneousArrayLiterals.ts, 75, 7)) >[t, u] : (T | U)[] ->t : T ->u : U +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 72, 57)) var d = [t, 1]; // {}[] ->d : (number | T)[] +>d : (number | T)[], Symbol(d, Decl(heterogeneousArrayLiterals.ts, 76, 7)) >[t, 1] : (number | T)[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>1 : number var e = [() => t, () => u]; // {}[] ->e : ((() => T) | (() => U))[] +>e : ((() => T) | (() => U))[], Symbol(e, Decl(heterogeneousArrayLiterals.ts, 77, 7)) >[() => t, () => u] : ((() => T) | (() => U))[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 72, 57)) var f = [() => t, () => u, () => null]; // { (): any }[] ->f : (() => any)[] +>f : (() => any)[], Symbol(f, Decl(heterogeneousArrayLiterals.ts, 78, 7)) >[() => t, () => u, () => null] : (() => any)[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 72, 57)) >() => null : () => any +>null : null var g = [t, base]; // Base[] ->g : Base[] +>g : Base[], Symbol(g, Decl(heterogeneousArrayLiterals.ts, 80, 7)) >[t, base] : Base[] ->t : T ->base : Base +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var h = [t, derived]; // Derived[] ->h : Derived[] +>h : Derived[], Symbol(h, Decl(heterogeneousArrayLiterals.ts, 81, 7)) >[t, derived] : Derived[] ->t : T ->derived : Derived +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 72, 52)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var i = [u, base]; // Base[] ->i : Base[] +>i : Base[], Symbol(i, Decl(heterogeneousArrayLiterals.ts, 82, 7)) >[u, base] : Base[] ->u : U ->base : Base +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 72, 57)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var j = [u, derived]; // Derived[] ->j : Derived[] +>j : Derived[], Symbol(j, Decl(heterogeneousArrayLiterals.ts, 83, 7)) >[u, derived] : Derived[] ->u : U ->derived : Derived +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 72, 57)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) } function foo4(t: T, u: U) { ->foo4 : (t: T, u: U) => void ->T : T ->Base : Base ->U : U ->Base : Base ->t : T ->T : T ->u : U ->U : U +>foo4 : (t: T, u: U) => void, Symbol(foo4, Decl(heterogeneousArrayLiterals.ts, 84, 1)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 86, 14)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 86, 29)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>T : T, Symbol(T, Decl(heterogeneousArrayLiterals.ts, 86, 14)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) +>U : U, Symbol(U, Decl(heterogeneousArrayLiterals.ts, 86, 29)) var a = [t, t]; // T[] ->a : T[] +>a : T[], Symbol(a, Decl(heterogeneousArrayLiterals.ts, 87, 7)) >[t, t] : T[] ->t : T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) var b = [t, null]; // T[] ->b : T[] +>b : T[], Symbol(b, Decl(heterogeneousArrayLiterals.ts, 88, 7)) >[t, null] : T[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>null : null var c = [t, u]; // BUG 821629 ->c : (T | U)[] +>c : (T | U)[], Symbol(c, Decl(heterogeneousArrayLiterals.ts, 89, 7)) >[t, u] : (T | U)[] ->t : T ->u : U +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) var d = [t, 1]; // {}[] ->d : (number | T)[] +>d : (number | T)[], Symbol(d, Decl(heterogeneousArrayLiterals.ts, 90, 7)) >[t, 1] : (number | T)[] ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>1 : number var e = [() => t, () => u]; // {}[] ->e : ((() => T) | (() => U))[] +>e : ((() => T) | (() => U))[], Symbol(e, Decl(heterogeneousArrayLiterals.ts, 91, 7)) >[() => t, () => u] : ((() => T) | (() => U))[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) var f = [() => t, () => u, () => null]; // { (): any }[] ->f : (() => any)[] +>f : (() => any)[], Symbol(f, Decl(heterogeneousArrayLiterals.ts, 92, 7)) >[() => t, () => u, () => null] : (() => any)[] >() => t : () => T ->t : T +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) >() => u : () => U ->u : U +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) >() => null : () => any +>null : null var g = [t, base]; // Base[] ->g : Base[] +>g : Base[], Symbol(g, Decl(heterogeneousArrayLiterals.ts, 94, 7)) >[t, base] : Base[] ->t : T ->base : Base +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var h = [t, derived]; // Derived[] ->h : (Derived | T)[] +>h : (Derived | T)[], Symbol(h, Decl(heterogeneousArrayLiterals.ts, 95, 7)) >[t, derived] : (Derived | T)[] ->t : T ->derived : Derived +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var i = [u, base]; // Base[] ->i : Base[] +>i : Base[], Symbol(i, Decl(heterogeneousArrayLiterals.ts, 96, 7)) >[u, base] : Base[] ->u : U ->base : Base +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) +>base : Base, Symbol(base, Decl(heterogeneousArrayLiterals.ts, 23, 3)) var j = [u, derived]; // Derived[] ->j : (Derived | U)[] +>j : (Derived | U)[], Symbol(j, Decl(heterogeneousArrayLiterals.ts, 97, 7)) >[u, derived] : (Derived | U)[] ->u : U ->derived : Derived +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) +>derived : Derived, Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) var k: Base[] = [t, u]; ->k : Base[] ->Base : Base +>k : Base[], Symbol(k, Decl(heterogeneousArrayLiterals.ts, 99, 7)) +>Base : Base, Symbol(Base, Decl(heterogeneousArrayLiterals.ts, 18, 32)) >[t, u] : (T | U)[] ->t : T ->u : U +>t : T, Symbol(t, Decl(heterogeneousArrayLiterals.ts, 86, 46)) +>u : U, Symbol(u, Decl(heterogeneousArrayLiterals.ts, 86, 51)) } //function foo3(t: T, u: U) { diff --git a/tests/baselines/reference/hidingCallSignatures.types b/tests/baselines/reference/hidingCallSignatures.types index 90428b8db76..34fe0b348b0 100644 --- a/tests/baselines/reference/hidingCallSignatures.types +++ b/tests/baselines/reference/hidingCallSignatures.types @@ -1,59 +1,63 @@ === tests/cases/compiler/hidingCallSignatures.ts === interface C { ->C : C +>C : C, Symbol(C, Decl(hidingCallSignatures.ts, 0, 0)) new (a: string): string; ->a : string +>a : string, Symbol(a, Decl(hidingCallSignatures.ts, 1, 9)) } interface D extends C { ->D : D ->C : C +>D : D, Symbol(D, Decl(hidingCallSignatures.ts, 2, 1)) +>C : C, Symbol(C, Decl(hidingCallSignatures.ts, 0, 0)) (a: string): number; // Should be ok ->a : string +>a : string, Symbol(a, Decl(hidingCallSignatures.ts, 5, 5)) } interface E { ->E : E +>E : E, Symbol(E, Decl(hidingCallSignatures.ts, 6, 1)) (a: string): {}; ->a : string +>a : string, Symbol(a, Decl(hidingCallSignatures.ts, 9, 5)) } interface F extends E { ->F : F ->E : E +>F : F, Symbol(F, Decl(hidingCallSignatures.ts, 10, 1)) +>E : E, Symbol(E, Decl(hidingCallSignatures.ts, 6, 1)) (a: string): string; ->a : string +>a : string, Symbol(a, Decl(hidingCallSignatures.ts, 13, 5)) } var d: D; ->d : D ->D : D +>d : D, Symbol(d, Decl(hidingCallSignatures.ts, 16, 3)) +>D : D, Symbol(D, Decl(hidingCallSignatures.ts, 2, 1)) d(""); // number >d("") : number ->d : D +>d : D, Symbol(d, Decl(hidingCallSignatures.ts, 16, 3)) +>"" : string new d(""); // should be string >new d("") : string ->d : D +>d : D, Symbol(d, Decl(hidingCallSignatures.ts, 16, 3)) +>"" : string var f: F; ->f : F ->F : F +>f : F, Symbol(f, Decl(hidingCallSignatures.ts, 20, 3)) +>F : F, Symbol(F, Decl(hidingCallSignatures.ts, 10, 1)) f(""); // string >f("") : string ->f : F +>f : F, Symbol(f, Decl(hidingCallSignatures.ts, 20, 3)) +>"" : string var e: E; ->e : E ->E : E +>e : E, Symbol(e, Decl(hidingCallSignatures.ts, 23, 3)) +>E : E, Symbol(E, Decl(hidingCallSignatures.ts, 6, 1)) e(""); // {} >e("") : {} ->e : E +>e : E, Symbol(e, Decl(hidingCallSignatures.ts, 23, 3)) +>"" : string diff --git a/tests/baselines/reference/hidingConstructSignatures.types b/tests/baselines/reference/hidingConstructSignatures.types index 99781535b5d..9a2250023b4 100644 --- a/tests/baselines/reference/hidingConstructSignatures.types +++ b/tests/baselines/reference/hidingConstructSignatures.types @@ -1,59 +1,63 @@ === tests/cases/compiler/hidingConstructSignatures.ts === interface C { ->C : C +>C : C, Symbol(C, Decl(hidingConstructSignatures.ts, 0, 0)) (a: string): string; ->a : string +>a : string, Symbol(a, Decl(hidingConstructSignatures.ts, 1, 5)) } interface D extends C { ->D : D ->C : C +>D : D, Symbol(D, Decl(hidingConstructSignatures.ts, 2, 1)) +>C : C, Symbol(C, Decl(hidingConstructSignatures.ts, 0, 0)) new (a: string): number; // Should be ok ->a : string +>a : string, Symbol(a, Decl(hidingConstructSignatures.ts, 5, 9)) } interface E { ->E : E +>E : E, Symbol(E, Decl(hidingConstructSignatures.ts, 6, 1)) new (a: string): {}; ->a : string +>a : string, Symbol(a, Decl(hidingConstructSignatures.ts, 9, 9)) } interface F extends E { ->F : F ->E : E +>F : F, Symbol(F, Decl(hidingConstructSignatures.ts, 10, 1)) +>E : E, Symbol(E, Decl(hidingConstructSignatures.ts, 6, 1)) new (a: string): string; ->a : string +>a : string, Symbol(a, Decl(hidingConstructSignatures.ts, 13, 9)) } var d: D; ->d : D ->D : D +>d : D, Symbol(d, Decl(hidingConstructSignatures.ts, 16, 3)) +>D : D, Symbol(D, Decl(hidingConstructSignatures.ts, 2, 1)) d(""); // string >d("") : string ->d : D +>d : D, Symbol(d, Decl(hidingConstructSignatures.ts, 16, 3)) +>"" : string new d(""); // should be number >new d("") : number ->d : D +>d : D, Symbol(d, Decl(hidingConstructSignatures.ts, 16, 3)) +>"" : string var f: F; ->f : F ->F : F +>f : F, Symbol(f, Decl(hidingConstructSignatures.ts, 20, 3)) +>F : F, Symbol(F, Decl(hidingConstructSignatures.ts, 10, 1)) new f(""); // string >new f("") : string ->f : F +>f : F, Symbol(f, Decl(hidingConstructSignatures.ts, 20, 3)) +>"" : string var e: E; ->e : E ->E : E +>e : E, Symbol(e, Decl(hidingConstructSignatures.ts, 23, 3)) +>E : E, Symbol(E, Decl(hidingConstructSignatures.ts, 6, 1)) new e(""); // {} >new e("") : {} ->e : E +>e : E, Symbol(e, Decl(hidingConstructSignatures.ts, 23, 3)) +>"" : string diff --git a/tests/baselines/reference/hidingIndexSignatures.types b/tests/baselines/reference/hidingIndexSignatures.types index fe1363d1598..3df7f17c827 100644 --- a/tests/baselines/reference/hidingIndexSignatures.types +++ b/tests/baselines/reference/hidingIndexSignatures.types @@ -1,32 +1,34 @@ === tests/cases/compiler/hidingIndexSignatures.ts === interface A { ->A : A +>A : A, Symbol(A, Decl(hidingIndexSignatures.ts, 0, 0)) [a: string]: {}; ->a : string +>a : string, Symbol(a, Decl(hidingIndexSignatures.ts, 1, 5)) } interface B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(hidingIndexSignatures.ts, 2, 1)) +>A : A, Symbol(A, Decl(hidingIndexSignatures.ts, 0, 0)) [a: string]: number; // Number is not a subtype of string. Should error. ->a : string +>a : string, Symbol(a, Decl(hidingIndexSignatures.ts, 5, 5)) } var b: B; ->b : B ->B : B +>b : B, Symbol(b, Decl(hidingIndexSignatures.ts, 8, 3)) +>B : B, Symbol(B, Decl(hidingIndexSignatures.ts, 2, 1)) b[""]; // Should be number >b[""] : number ->b : B +>b : B, Symbol(b, Decl(hidingIndexSignatures.ts, 8, 3)) +>"" : string var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(hidingIndexSignatures.ts, 10, 3)) +>A : A, Symbol(A, Decl(hidingIndexSignatures.ts, 0, 0)) a[""]; // Should be {} >a[""] : {} ->a : A +>a : A, Symbol(a, Decl(hidingIndexSignatures.ts, 10, 3)) +>"" : string diff --git a/tests/baselines/reference/icomparable.types b/tests/baselines/reference/icomparable.types index 2766743f41f..9fe93710fa0 100644 --- a/tests/baselines/reference/icomparable.types +++ b/tests/baselines/reference/icomparable.types @@ -1,34 +1,34 @@ === tests/cases/compiler/icomparable.ts === interface IComparable { ->IComparable : IComparable ->T : T +>IComparable : IComparable, Symbol(IComparable, Decl(icomparable.ts, 0, 0)) +>T : T, Symbol(T, Decl(icomparable.ts, 0, 26)) compareTo(other: T); ->compareTo : (other: T) => any ->other : T ->T : T +>compareTo : (other: T) => any, Symbol(compareTo, Decl(icomparable.ts, 0, 30)) +>other : T, Symbol(other, Decl(icomparable.ts, 1, 17)) +>T : T, Symbol(T, Decl(icomparable.ts, 0, 26)) } declare function sort>(items: U[]): U[]; ->sort : >(items: U[]) => U[] ->U : U ->IComparable : IComparable ->items : U[] ->U : U ->U : U +>sort : >(items: U[]) => U[], Symbol(sort, Decl(icomparable.ts, 2, 5)) +>U : U, Symbol(U, Decl(icomparable.ts, 4, 26)) +>IComparable : IComparable, Symbol(IComparable, Decl(icomparable.ts, 0, 0)) +>items : U[], Symbol(items, Decl(icomparable.ts, 4, 54)) +>U : U, Symbol(U, Decl(icomparable.ts, 4, 26)) +>U : U, Symbol(U, Decl(icomparable.ts, 4, 26)) interface StringComparable extends IComparable { ->StringComparable : StringComparable ->IComparable : IComparable +>StringComparable : StringComparable, Symbol(StringComparable, Decl(icomparable.ts, 4, 71)) +>IComparable : IComparable, Symbol(IComparable, Decl(icomparable.ts, 0, 0)) } var sc: StringComparable[]; ->sc : StringComparable[] ->StringComparable : StringComparable +>sc : StringComparable[], Symbol(sc, Decl(icomparable.ts, 9, 7)) +>StringComparable : StringComparable, Symbol(StringComparable, Decl(icomparable.ts, 4, 71)) var x = sort(sc); ->x : StringComparable[] +>x : StringComparable[], Symbol(x, Decl(icomparable.ts, 11, 7)) >sort(sc) : StringComparable[] ->sort : >(items: U[]) => U[] ->sc : StringComparable[] +>sort : >(items: U[]) => U[], Symbol(sort, Decl(icomparable.ts, 2, 5)) +>sc : StringComparable[], Symbol(sc, Decl(icomparable.ts, 9, 7)) diff --git a/tests/baselines/reference/idInProp.types b/tests/baselines/reference/idInProp.types index f300be6ebf2..67db60f8b2f 100644 --- a/tests/baselines/reference/idInProp.types +++ b/tests/baselines/reference/idInProp.types @@ -1,10 +1,10 @@ === tests/cases/compiler/idInProp.ts === function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(idInProp.ts, 0, 0)) var t: { (f: any) : any; }; ->t : (f: any) => any ->f : any +>t : (f: any) => any, Symbol(t, Decl(idInProp.ts, 2, 3)) +>f : any, Symbol(f, Decl(idInProp.ts, 2, 10)) } diff --git a/tests/baselines/reference/identicalCallSignatures.types b/tests/baselines/reference/identicalCallSignatures.types index 82616b44a60..b60ab8aa380 100644 --- a/tests/baselines/reference/identicalCallSignatures.types +++ b/tests/baselines/reference/identicalCallSignatures.types @@ -2,60 +2,60 @@ // Each pair of call signatures in these types have a duplicate signature error. // Identical call signatures should generate an error. interface I { ->I : I +>I : I, Symbol(I, Decl(identicalCallSignatures.ts, 0, 0)) (x): number; ->x : any +>x : any, Symbol(x, Decl(identicalCallSignatures.ts, 3, 5)) (x: any): number; ->x : any +>x : any, Symbol(x, Decl(identicalCallSignatures.ts, 4, 5)) (x: T): T; ->T : T ->x : T ->T : T ->T : T +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 5, 5)) +>x : T, Symbol(x, Decl(identicalCallSignatures.ts, 5, 8)) +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 5, 5)) +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 5, 5)) (x: U): U; // error ->U : U ->x : U ->U : U ->U : U +>U : U, Symbol(U, Decl(identicalCallSignatures.ts, 6, 5)) +>x : U, Symbol(x, Decl(identicalCallSignatures.ts, 6, 8)) +>U : U, Symbol(U, Decl(identicalCallSignatures.ts, 6, 5)) +>U : U, Symbol(U, Decl(identicalCallSignatures.ts, 6, 5)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(identicalCallSignatures.ts, 7, 1)) +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 9, 13)) (x: T): T; ->x : T ->T : T ->T : T +>x : T, Symbol(x, Decl(identicalCallSignatures.ts, 10, 5)) +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 9, 13)) +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 9, 13)) (x: T): T; // error ->x : T ->T : T ->T : T +>x : T, Symbol(x, Decl(identicalCallSignatures.ts, 11, 5)) +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 9, 13)) +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 9, 13)) } var a: { ->a : { (x: any): number; (x: any): number; (x: T): T; (x: T): T; } +>a : { (x: any): number; (x: any): number; (x: T): T; (x: T): T; }, Symbol(a, Decl(identicalCallSignatures.ts, 14, 3)) (x): number; ->x : any +>x : any, Symbol(x, Decl(identicalCallSignatures.ts, 15, 5)) (x: any): number; ->x : any +>x : any, Symbol(x, Decl(identicalCallSignatures.ts, 16, 5)) (x: T): T; ->T : T ->x : T ->T : T ->T : T +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 17, 5)) +>x : T, Symbol(x, Decl(identicalCallSignatures.ts, 17, 8)) +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 17, 5)) +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 17, 5)) (x: T): T; // error ->T : T ->x : T ->T : T ->T : T +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 18, 5)) +>x : T, Symbol(x, Decl(identicalCallSignatures.ts, 18, 8)) +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 18, 5)) +>T : T, Symbol(T, Decl(identicalCallSignatures.ts, 18, 5)) } diff --git a/tests/baselines/reference/identicalCallSignatures2.types b/tests/baselines/reference/identicalCallSignatures2.types index febe2f38d8b..cf5f50f96d3 100644 --- a/tests/baselines/reference/identicalCallSignatures2.types +++ b/tests/baselines/reference/identicalCallSignatures2.types @@ -3,21 +3,21 @@ // Here the multiple overloads come from multiple bases. interface Base { ->Base : Base ->T : T +>Base : Base, Symbol(Base, Decl(identicalCallSignatures2.ts, 0, 0)) +>T : T, Symbol(T, Decl(identicalCallSignatures2.ts, 3, 15)) (x: number): string; ->x : number +>x : number, Symbol(x, Decl(identicalCallSignatures2.ts, 4, 5)) } interface I extends Base, Base { } ->I : I ->Base : Base ->Base : Base +>I : I, Symbol(I, Decl(identicalCallSignatures2.ts, 5, 1)) +>Base : Base, Symbol(Base, Decl(identicalCallSignatures2.ts, 0, 0)) +>Base : Base, Symbol(Base, Decl(identicalCallSignatures2.ts, 0, 0)) interface I2 extends Base, Base { } ->I2 : I2 ->T : T ->Base : Base ->Base : Base +>I2 : I2, Symbol(I2, Decl(identicalCallSignatures2.ts, 7, 50)) +>T : T, Symbol(T, Decl(identicalCallSignatures2.ts, 9, 13)) +>Base : Base, Symbol(Base, Decl(identicalCallSignatures2.ts, 0, 0)) +>Base : Base, Symbol(Base, Decl(identicalCallSignatures2.ts, 0, 0)) diff --git a/tests/baselines/reference/identicalCallSignatures3.types b/tests/baselines/reference/identicalCallSignatures3.types index d7334d9e5bb..01d8c5a65ac 100644 --- a/tests/baselines/reference/identicalCallSignatures3.types +++ b/tests/baselines/reference/identicalCallSignatures3.types @@ -3,31 +3,31 @@ // Here the multiple overloads come from multiple merged declarations, so we do not report errors. interface I { ->I : I +>I : I, Symbol(I, Decl(identicalCallSignatures3.ts, 0, 0), Decl(identicalCallSignatures3.ts, 5, 1)) (x: number): string; ->x : number +>x : number, Symbol(x, Decl(identicalCallSignatures3.ts, 4, 5)) } interface I { ->I : I +>I : I, Symbol(I, Decl(identicalCallSignatures3.ts, 0, 0), Decl(identicalCallSignatures3.ts, 5, 1)) (x: number): string; ->x : number +>x : number, Symbol(x, Decl(identicalCallSignatures3.ts, 8, 5)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(identicalCallSignatures3.ts, 9, 1), Decl(identicalCallSignatures3.ts, 13, 1)) +>T : T, Symbol(T, Decl(identicalCallSignatures3.ts, 11, 13), Decl(identicalCallSignatures3.ts, 15, 13)) (x: number): string; ->x : number +>x : number, Symbol(x, Decl(identicalCallSignatures3.ts, 12, 5)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(identicalCallSignatures3.ts, 9, 1), Decl(identicalCallSignatures3.ts, 13, 1)) +>T : T, Symbol(T, Decl(identicalCallSignatures3.ts, 11, 13), Decl(identicalCallSignatures3.ts, 15, 13)) (x: number): string; ->x : number +>x : number, Symbol(x, Decl(identicalCallSignatures3.ts, 16, 5)) } diff --git a/tests/baselines/reference/identityForSignaturesWithTypeParametersSwitched.types b/tests/baselines/reference/identityForSignaturesWithTypeParametersSwitched.types index 59e50179946..97851d87c5a 100644 --- a/tests/baselines/reference/identityForSignaturesWithTypeParametersSwitched.types +++ b/tests/baselines/reference/identityForSignaturesWithTypeParametersSwitched.types @@ -1,21 +1,21 @@ === tests/cases/compiler/identityForSignaturesWithTypeParametersSwitched.ts === var f: (x: T, y: U) => T; ->f : (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>f : (x: T, y: U) => T, Symbol(f, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 0, 3), Decl(identityForSignaturesWithTypeParametersSwitched.ts, 1, 3)) +>T : T, Symbol(T, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 0, 8)) +>U : U, Symbol(U, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 0, 10)) +>x : T, Symbol(x, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 0, 14)) +>T : T, Symbol(T, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 0, 8)) +>y : U, Symbol(y, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 0, 19)) +>U : U, Symbol(U, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 0, 10)) +>T : T, Symbol(T, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 0, 8)) var f: (x: U, y: T) => U; ->f : (x: T, y: U) => T ->T : T ->U : U ->x : U ->U : U ->y : T ->T : T ->U : U +>f : (x: T, y: U) => T, Symbol(f, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 0, 3), Decl(identityForSignaturesWithTypeParametersSwitched.ts, 1, 3)) +>T : T, Symbol(T, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 1, 8)) +>U : U, Symbol(U, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 1, 10)) +>x : U, Symbol(x, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 1, 14)) +>U : U, Symbol(U, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 1, 10)) +>y : T, Symbol(y, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 1, 19)) +>T : T, Symbol(T, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 1, 8)) +>U : U, Symbol(U, Decl(identityForSignaturesWithTypeParametersSwitched.ts, 1, 10)) diff --git a/tests/baselines/reference/ifDoWhileStatements.types b/tests/baselines/reference/ifDoWhileStatements.types index b4a3f7a70af..2183dec356f 100644 --- a/tests/baselines/reference/ifDoWhileStatements.types +++ b/tests/baselines/reference/ifDoWhileStatements.types @@ -1,131 +1,163 @@ === tests/cases/conformance/statements/ifDoWhileStatements/ifDoWhileStatements.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(ifDoWhileStatements.ts, 0, 0)) id: number; ->id : number +>id : number, Symbol(id, Decl(ifDoWhileStatements.ts, 0, 13)) } class C implements I { ->C : C ->I : I +>C : C, Symbol(C, Decl(ifDoWhileStatements.ts, 2, 1)) +>I : I, Symbol(I, Decl(ifDoWhileStatements.ts, 0, 0)) id: number; ->id : number +>id : number, Symbol(id, Decl(ifDoWhileStatements.ts, 4, 22)) name: string; ->name : string +>name : string, Symbol(name, Decl(ifDoWhileStatements.ts, 5, 15)) } class C2 extends C { ->C2 : C2 ->C : C +>C2 : C2, Symbol(C2, Decl(ifDoWhileStatements.ts, 7, 1)) +>C : C, Symbol(C, Decl(ifDoWhileStatements.ts, 2, 1)) valid: boolean; ->valid : boolean +>valid : boolean, Symbol(valid, Decl(ifDoWhileStatements.ts, 9, 20)) } class D{ ->D : D ->T : T +>D : D, Symbol(D, Decl(ifDoWhileStatements.ts, 11, 1)) +>T : T, Symbol(T, Decl(ifDoWhileStatements.ts, 13, 8)) source: T; ->source : T ->T : T +>source : T, Symbol(source, Decl(ifDoWhileStatements.ts, 13, 11)) +>T : T, Symbol(T, Decl(ifDoWhileStatements.ts, 13, 8)) recurse: D; ->recurse : D ->D : D ->T : T +>recurse : D, Symbol(recurse, Decl(ifDoWhileStatements.ts, 14, 14)) +>D : D, Symbol(D, Decl(ifDoWhileStatements.ts, 11, 1)) +>T : T, Symbol(T, Decl(ifDoWhileStatements.ts, 13, 8)) wrapped: D> ->wrapped : D> ->D : D ->D : D ->T : T +>wrapped : D>, Symbol(wrapped, Decl(ifDoWhileStatements.ts, 15, 18)) +>D : D, Symbol(D, Decl(ifDoWhileStatements.ts, 11, 1)) +>D : D, Symbol(D, Decl(ifDoWhileStatements.ts, 11, 1)) +>T : T, Symbol(T, Decl(ifDoWhileStatements.ts, 13, 8)) } function F(x: string): number { return 42; } ->F : (x: string) => number ->x : string +>F : (x: string) => number, Symbol(F, Decl(ifDoWhileStatements.ts, 17, 1)) +>x : string, Symbol(x, Decl(ifDoWhileStatements.ts, 19, 11)) +>42 : number function F2(x: number): boolean { return x < 42; } ->F2 : (x: number) => boolean ->x : number +>F2 : (x: number) => boolean, Symbol(F2, Decl(ifDoWhileStatements.ts, 19, 44)) +>x : number, Symbol(x, Decl(ifDoWhileStatements.ts, 20, 12)) >x < 42 : boolean ->x : number +>x : number, Symbol(x, Decl(ifDoWhileStatements.ts, 20, 12)) +>42 : number module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(ifDoWhileStatements.ts, 20, 50)) export class A { ->A : A +>A : A, Symbol(A, Decl(ifDoWhileStatements.ts, 22, 10)) name: string; ->name : string +>name : string, Symbol(name, Decl(ifDoWhileStatements.ts, 23, 20)) } export function F2(x: number): string { return x.toString(); } ->F2 : (x: number) => string ->x : number +>F2 : (x: number) => string, Symbol(F2, Decl(ifDoWhileStatements.ts, 25, 5)) +>x : number, Symbol(x, Decl(ifDoWhileStatements.ts, 27, 23)) >x.toString() : string ->x.toString : (radix?: number) => string ->x : number ->toString : (radix?: number) => string +>x.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>x : number, Symbol(x, Decl(ifDoWhileStatements.ts, 27, 23)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) } module N { ->N : typeof N +>N : typeof N, Symbol(N, Decl(ifDoWhileStatements.ts, 28, 1)) export class A { ->A : A +>A : A, Symbol(A, Decl(ifDoWhileStatements.ts, 30, 10)) id: number; ->id : number +>id : number, Symbol(id, Decl(ifDoWhileStatements.ts, 31, 20)) } export function F2(x: number): string { return x.toString(); } ->F2 : (x: number) => string ->x : number +>F2 : (x: number) => string, Symbol(F2, Decl(ifDoWhileStatements.ts, 33, 5)) +>x : number, Symbol(x, Decl(ifDoWhileStatements.ts, 35, 23)) >x.toString() : string ->x.toString : (radix?: number) => string ->x : number ->toString : (radix?: number) => string +>x.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>x : number, Symbol(x, Decl(ifDoWhileStatements.ts, 35, 23)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) } // literals if (true) { } +>true : boolean + while (true) { } +>true : boolean + do { }while(true) +>true : boolean if (null) { } +>null : null + while (null) { } +>null : null + do { }while(null) +>null : null if (undefined) { } ->undefined : undefined +>undefined : undefined, Symbol(undefined) while (undefined) { } ->undefined : undefined +>undefined : undefined, Symbol(undefined) do { }while(undefined) ->undefined : undefined +>undefined : undefined, Symbol(undefined) if (0.0) { } +>0.0 : number + while (0.0) { } +>0.0 : number + do { }while(0.0) +>0.0 : number if ('a string') { } +>'a string' : string + while ('a string') { } +>'a string' : string + do { }while('a string') +>'a string' : string if ('') { } +>'' : string + while ('') { } +>'' : string + do { }while('') +>'' : string if (/[a-z]/) { } +>/[a-z]/ : RegExp + while (/[a-z]/) { } +>/[a-z]/ : RegExp + do { }while(/[a-z]/) +>/[a-z]/ : RegExp if ([]) { } >[] : undefined[] @@ -138,12 +170,18 @@ do { }while([]) if ([1, 2]) { } >[1, 2] : number[] +>1 : number +>2 : number while ([1, 2]) { } >[1, 2] : number[] +>1 : number +>2 : number do { }while([1, 2]) >[1, 2] : number[] +>1 : number +>2 : number if ({}) { } >{} : {} @@ -156,220 +194,240 @@ do { }while({}) if ({ x: 1, y: 'a' }) { } >{ x: 1, y: 'a' } : { x: number; y: string; } ->x : number ->y : string +>x : number, Symbol(x, Decl(ifDoWhileStatements.ts, 79, 5)) +>1 : number +>y : string, Symbol(y, Decl(ifDoWhileStatements.ts, 79, 11)) +>'a' : string while ({ x: 1, y: 'a' }) { } >{ x: 1, y: 'a' } : { x: number; y: string; } ->x : number ->y : string +>x : number, Symbol(x, Decl(ifDoWhileStatements.ts, 80, 8)) +>1 : number +>y : string, Symbol(y, Decl(ifDoWhileStatements.ts, 80, 14)) +>'a' : string do { }while({ x: 1, y: 'a' }) >{ x: 1, y: 'a' } : { x: number; y: string; } ->x : number ->y : string +>x : number, Symbol(x, Decl(ifDoWhileStatements.ts, 81, 13)) +>1 : number +>y : string, Symbol(y, Decl(ifDoWhileStatements.ts, 81, 19)) +>'a' : string if (() => 43) { } >() => 43 : () => number +>43 : number while (() => 43) { } >() => 43 : () => number +>43 : number do { }while(() => 43) >() => 43 : () => number +>43 : number if (new C()) { } >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(ifDoWhileStatements.ts, 2, 1)) while (new C()) { } >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(ifDoWhileStatements.ts, 2, 1)) do { }while(new C()) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(ifDoWhileStatements.ts, 2, 1)) if (new D()) { } >new D() : D ->D : typeof D ->C : C +>D : typeof D, Symbol(D, Decl(ifDoWhileStatements.ts, 11, 1)) +>C : C, Symbol(C, Decl(ifDoWhileStatements.ts, 2, 1)) while (new D()) { } >new D() : D ->D : typeof D ->C : C +>D : typeof D, Symbol(D, Decl(ifDoWhileStatements.ts, 11, 1)) +>C : C, Symbol(C, Decl(ifDoWhileStatements.ts, 2, 1)) do { }while(new D()) >new D() : D ->D : typeof D ->C : C +>D : typeof D, Symbol(D, Decl(ifDoWhileStatements.ts, 11, 1)) +>C : C, Symbol(C, Decl(ifDoWhileStatements.ts, 2, 1)) // references var a = true; ->a : boolean +>a : boolean, Symbol(a, Decl(ifDoWhileStatements.ts, 96, 3)) +>true : boolean if (a) { } ->a : boolean +>a : boolean, Symbol(a, Decl(ifDoWhileStatements.ts, 96, 3)) while (a) { } ->a : boolean +>a : boolean, Symbol(a, Decl(ifDoWhileStatements.ts, 96, 3)) do { }while(a) ->a : boolean +>a : boolean, Symbol(a, Decl(ifDoWhileStatements.ts, 96, 3)) var b = null; ->b : any +>b : any, Symbol(b, Decl(ifDoWhileStatements.ts, 101, 3)) +>null : null if (b) { } ->b : any +>b : any, Symbol(b, Decl(ifDoWhileStatements.ts, 101, 3)) while (b) { } ->b : any +>b : any, Symbol(b, Decl(ifDoWhileStatements.ts, 101, 3)) do { }while(b) ->b : any +>b : any, Symbol(b, Decl(ifDoWhileStatements.ts, 101, 3)) var c = undefined; ->c : any ->undefined : undefined +>c : any, Symbol(c, Decl(ifDoWhileStatements.ts, 106, 3)) +>undefined : undefined, Symbol(undefined) if (c) { } ->c : any +>c : any, Symbol(c, Decl(ifDoWhileStatements.ts, 106, 3)) while (c) { } ->c : any +>c : any, Symbol(c, Decl(ifDoWhileStatements.ts, 106, 3)) do { }while(c) ->c : any +>c : any, Symbol(c, Decl(ifDoWhileStatements.ts, 106, 3)) var d = 0.0; ->d : number +>d : number, Symbol(d, Decl(ifDoWhileStatements.ts, 111, 3)) +>0.0 : number if (d) { } ->d : number +>d : number, Symbol(d, Decl(ifDoWhileStatements.ts, 111, 3)) while (d) { } ->d : number +>d : number, Symbol(d, Decl(ifDoWhileStatements.ts, 111, 3)) do { }while(d) ->d : number +>d : number, Symbol(d, Decl(ifDoWhileStatements.ts, 111, 3)) var e = 'a string'; ->e : string +>e : string, Symbol(e, Decl(ifDoWhileStatements.ts, 116, 3)) +>'a string' : string if (e) { } ->e : string +>e : string, Symbol(e, Decl(ifDoWhileStatements.ts, 116, 3)) while (e) { } ->e : string +>e : string, Symbol(e, Decl(ifDoWhileStatements.ts, 116, 3)) do { }while(e) ->e : string +>e : string, Symbol(e, Decl(ifDoWhileStatements.ts, 116, 3)) var f = ''; ->f : string +>f : string, Symbol(f, Decl(ifDoWhileStatements.ts, 121, 3)) +>'' : string if (f) { } ->f : string +>f : string, Symbol(f, Decl(ifDoWhileStatements.ts, 121, 3)) while (f) { } ->f : string +>f : string, Symbol(f, Decl(ifDoWhileStatements.ts, 121, 3)) do { }while(f) ->f : string +>f : string, Symbol(f, Decl(ifDoWhileStatements.ts, 121, 3)) var g = /[a-z]/ ->g : RegExp +>g : RegExp, Symbol(g, Decl(ifDoWhileStatements.ts, 126, 3)) +>/[a-z]/ : RegExp if (g) { } ->g : RegExp +>g : RegExp, Symbol(g, Decl(ifDoWhileStatements.ts, 126, 3)) while (g) { } ->g : RegExp +>g : RegExp, Symbol(g, Decl(ifDoWhileStatements.ts, 126, 3)) do { }while(g) ->g : RegExp +>g : RegExp, Symbol(g, Decl(ifDoWhileStatements.ts, 126, 3)) var h = []; ->h : any[] +>h : any[], Symbol(h, Decl(ifDoWhileStatements.ts, 131, 3)) >[] : undefined[] if (h) { } ->h : any[] +>h : any[], Symbol(h, Decl(ifDoWhileStatements.ts, 131, 3)) while (h) { } ->h : any[] +>h : any[], Symbol(h, Decl(ifDoWhileStatements.ts, 131, 3)) do { }while(h) ->h : any[] +>h : any[], Symbol(h, Decl(ifDoWhileStatements.ts, 131, 3)) var i = [1, 2]; ->i : number[] +>i : number[], Symbol(i, Decl(ifDoWhileStatements.ts, 136, 3)) >[1, 2] : number[] +>1 : number +>2 : number if (i) { } ->i : number[] +>i : number[], Symbol(i, Decl(ifDoWhileStatements.ts, 136, 3)) while (i) { } ->i : number[] +>i : number[], Symbol(i, Decl(ifDoWhileStatements.ts, 136, 3)) do { }while(i) ->i : number[] +>i : number[], Symbol(i, Decl(ifDoWhileStatements.ts, 136, 3)) var j = {}; ->j : {} +>j : {}, Symbol(j, Decl(ifDoWhileStatements.ts, 141, 3)) >{} : {} if (j) { } ->j : {} +>j : {}, Symbol(j, Decl(ifDoWhileStatements.ts, 141, 3)) while (j) { } ->j : {} +>j : {}, Symbol(j, Decl(ifDoWhileStatements.ts, 141, 3)) do { }while(j) ->j : {} +>j : {}, Symbol(j, Decl(ifDoWhileStatements.ts, 141, 3)) var k = { x: 1, y: 'a' }; ->k : { x: number; y: string; } +>k : { x: number; y: string; }, Symbol(k, Decl(ifDoWhileStatements.ts, 146, 3)) >{ x: 1, y: 'a' } : { x: number; y: string; } ->x : number ->y : string +>x : number, Symbol(x, Decl(ifDoWhileStatements.ts, 146, 9)) +>1 : number +>y : string, Symbol(y, Decl(ifDoWhileStatements.ts, 146, 15)) +>'a' : string if (k) { } ->k : { x: number; y: string; } +>k : { x: number; y: string; }, Symbol(k, Decl(ifDoWhileStatements.ts, 146, 3)) while (k) { } ->k : { x: number; y: string; } +>k : { x: number; y: string; }, Symbol(k, Decl(ifDoWhileStatements.ts, 146, 3)) do { }while(k) ->k : { x: number; y: string; } +>k : { x: number; y: string; }, Symbol(k, Decl(ifDoWhileStatements.ts, 146, 3)) function fn(x?: string): I { return null; } ->fn : (x?: string) => I ->x : string ->I : I +>fn : (x?: string) => I, Symbol(fn, Decl(ifDoWhileStatements.ts, 149, 14)) +>x : string, Symbol(x, Decl(ifDoWhileStatements.ts, 151, 12)) +>I : I, Symbol(I, Decl(ifDoWhileStatements.ts, 0, 0)) +>null : null if (fn()) { } >fn() : I ->fn : (x?: string) => I +>fn : (x?: string) => I, Symbol(fn, Decl(ifDoWhileStatements.ts, 149, 14)) while (fn()) { } >fn() : I ->fn : (x?: string) => I +>fn : (x?: string) => I, Symbol(fn, Decl(ifDoWhileStatements.ts, 149, 14)) do { }while(fn()) >fn() : I ->fn : (x?: string) => I +>fn : (x?: string) => I, Symbol(fn, Decl(ifDoWhileStatements.ts, 149, 14)) if (fn) { } ->fn : (x?: string) => I +>fn : (x?: string) => I, Symbol(fn, Decl(ifDoWhileStatements.ts, 149, 14)) while (fn) { } ->fn : (x?: string) => I +>fn : (x?: string) => I, Symbol(fn, Decl(ifDoWhileStatements.ts, 149, 14)) do { }while(fn) ->fn : (x?: string) => I +>fn : (x?: string) => I, Symbol(fn, Decl(ifDoWhileStatements.ts, 149, 14)) diff --git a/tests/baselines/reference/illegalGenericWrapping1.types b/tests/baselines/reference/illegalGenericWrapping1.types index 82de593104c..bc47a130b83 100644 --- a/tests/baselines/reference/illegalGenericWrapping1.types +++ b/tests/baselines/reference/illegalGenericWrapping1.types @@ -1,44 +1,44 @@ === tests/cases/compiler/illegalGenericWrapping1.ts === interface Sequence { ->Sequence : Sequence ->T : T +>Sequence : Sequence, Symbol(Sequence, Decl(illegalGenericWrapping1.ts, 0, 0)) +>T : T, Symbol(T, Decl(illegalGenericWrapping1.ts, 0, 19)) each(iterator: (value: T) => void ): void; ->each : (iterator: (value: T) => void) => void ->iterator : (value: T) => void ->value : T ->T : T +>each : (iterator: (value: T) => void) => void, Symbol(each, Decl(illegalGenericWrapping1.ts, 0, 23)) +>iterator : (value: T) => void, Symbol(iterator, Decl(illegalGenericWrapping1.ts, 1, 9)) +>value : T, Symbol(value, Decl(illegalGenericWrapping1.ts, 1, 20)) +>T : T, Symbol(T, Decl(illegalGenericWrapping1.ts, 0, 19)) map(iterator: (value: T) => U): Sequence; ->map : (iterator: (value: T) => U) => Sequence ->U : U ->iterator : (value: T) => U ->value : T ->T : T ->U : U ->Sequence : Sequence ->U : U +>map : (iterator: (value: T) => U) => Sequence, Symbol(map, Decl(illegalGenericWrapping1.ts, 1, 46)) +>U : U, Symbol(U, Decl(illegalGenericWrapping1.ts, 2, 8)) +>iterator : (value: T) => U, Symbol(iterator, Decl(illegalGenericWrapping1.ts, 2, 11)) +>value : T, Symbol(value, Decl(illegalGenericWrapping1.ts, 2, 22)) +>T : T, Symbol(T, Decl(illegalGenericWrapping1.ts, 0, 19)) +>U : U, Symbol(U, Decl(illegalGenericWrapping1.ts, 2, 8)) +>Sequence : Sequence, Symbol(Sequence, Decl(illegalGenericWrapping1.ts, 0, 0)) +>U : U, Symbol(U, Decl(illegalGenericWrapping1.ts, 2, 8)) filter(iterator: (value: T) => boolean): Sequence; ->filter : (iterator: (value: T) => boolean) => Sequence ->iterator : (value: T) => boolean ->value : T ->T : T ->Sequence : Sequence ->T : T +>filter : (iterator: (value: T) => boolean) => Sequence, Symbol(filter, Decl(illegalGenericWrapping1.ts, 2, 51)) +>iterator : (value: T) => boolean, Symbol(iterator, Decl(illegalGenericWrapping1.ts, 3, 11)) +>value : T, Symbol(value, Decl(illegalGenericWrapping1.ts, 3, 22)) +>T : T, Symbol(T, Decl(illegalGenericWrapping1.ts, 0, 19)) +>Sequence : Sequence, Symbol(Sequence, Decl(illegalGenericWrapping1.ts, 0, 0)) +>T : T, Symbol(T, Decl(illegalGenericWrapping1.ts, 0, 19)) groupBy(keySelector: (value: T) => K): Sequence<{ key: K; items: Sequence; }>; ->groupBy : (keySelector: (value: T) => K) => Sequence<{ key: K; items: Sequence; }> ->K : K ->keySelector : (value: T) => K ->value : T ->T : T ->K : K ->Sequence : Sequence ->key : K ->K : K ->items : Sequence ->Sequence : Sequence ->T : T +>groupBy : (keySelector: (value: T) => K) => Sequence<{ key: K; items: Sequence; }>, Symbol(groupBy, Decl(illegalGenericWrapping1.ts, 3, 57)) +>K : K, Symbol(K, Decl(illegalGenericWrapping1.ts, 4, 12)) +>keySelector : (value: T) => K, Symbol(keySelector, Decl(illegalGenericWrapping1.ts, 4, 15)) +>value : T, Symbol(value, Decl(illegalGenericWrapping1.ts, 4, 29)) +>T : T, Symbol(T, Decl(illegalGenericWrapping1.ts, 0, 19)) +>K : K, Symbol(K, Decl(illegalGenericWrapping1.ts, 4, 12)) +>Sequence : Sequence, Symbol(Sequence, Decl(illegalGenericWrapping1.ts, 0, 0)) +>key : K, Symbol(key, Decl(illegalGenericWrapping1.ts, 4, 56)) +>K : K, Symbol(K, Decl(illegalGenericWrapping1.ts, 4, 12)) +>items : Sequence, Symbol(items, Decl(illegalGenericWrapping1.ts, 4, 64)) +>Sequence : Sequence, Symbol(Sequence, Decl(illegalGenericWrapping1.ts, 0, 0)) +>T : T, Symbol(T, Decl(illegalGenericWrapping1.ts, 0, 19)) } diff --git a/tests/baselines/reference/implementArrayInterface.types b/tests/baselines/reference/implementArrayInterface.types index 347fcf37693..319db7b54a4 100644 --- a/tests/baselines/reference/implementArrayInterface.types +++ b/tests/baselines/reference/implementArrayInterface.types @@ -1,217 +1,217 @@ === tests/cases/compiler/implementArrayInterface.ts === declare class MyArray implements Array { ->MyArray : MyArray ->T : T ->Array : T[] ->T : T +>MyArray : MyArray, Symbol(MyArray, Decl(implementArrayInterface.ts, 0, 0)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) toString(): string; ->toString : () => string +>toString : () => string, Symbol(toString, Decl(implementArrayInterface.ts, 0, 46)) toLocaleString(): string; ->toLocaleString : () => string +>toLocaleString : () => string, Symbol(toLocaleString, Decl(implementArrayInterface.ts, 1, 23)) concat(...items: U[]): T[]; ->concat : { (...items: U[]): T[]; (...items: T[]): T[]; } ->U : U ->T : T ->items : U[] ->U : U ->T : T +>concat : { (...items: U[]): T[]; (...items: T[]): T[]; }, Symbol(concat, Decl(implementArrayInterface.ts, 2, 29), Decl(implementArrayInterface.ts, 3, 46)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 3, 11)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>items : U[], Symbol(items, Decl(implementArrayInterface.ts, 3, 26)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 3, 11)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) concat(...items: T[]): T[]; ->concat : { (...items: U[]): T[]; (...items: T[]): T[]; } ->items : T[] ->T : T ->T : T +>concat : { (...items: U[]): T[]; (...items: T[]): T[]; }, Symbol(concat, Decl(implementArrayInterface.ts, 2, 29), Decl(implementArrayInterface.ts, 3, 46)) +>items : T[], Symbol(items, Decl(implementArrayInterface.ts, 4, 11)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) join(separator?: string): string; ->join : (separator?: string) => string ->separator : string +>join : (separator?: string) => string, Symbol(join, Decl(implementArrayInterface.ts, 4, 31)) +>separator : string, Symbol(separator, Decl(implementArrayInterface.ts, 5, 9)) pop(): T; ->pop : () => T ->T : T +>pop : () => T, Symbol(pop, Decl(implementArrayInterface.ts, 5, 37)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) push(...items: T[]): number; ->push : (...items: T[]) => number ->items : T[] ->T : T +>push : (...items: T[]) => number, Symbol(push, Decl(implementArrayInterface.ts, 6, 13)) +>items : T[], Symbol(items, Decl(implementArrayInterface.ts, 7, 9)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) reverse(): T[]; ->reverse : () => T[] ->T : T +>reverse : () => T[], Symbol(reverse, Decl(implementArrayInterface.ts, 7, 32)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) shift(): T; ->shift : () => T ->T : T +>shift : () => T, Symbol(shift, Decl(implementArrayInterface.ts, 8, 19)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) slice(start?: number, end?: number): T[]; ->slice : (start?: number, end?: number) => T[] ->start : number ->end : number ->T : T +>slice : (start?: number, end?: number) => T[], Symbol(slice, Decl(implementArrayInterface.ts, 9, 15)) +>start : number, Symbol(start, Decl(implementArrayInterface.ts, 10, 10)) +>end : number, Symbol(end, Decl(implementArrayInterface.ts, 10, 25)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) sort(compareFn?: (a: T, b: T) => number): T[]; ->sort : (compareFn?: (a: T, b: T) => number) => T[] ->compareFn : (a: T, b: T) => number ->a : T ->T : T ->b : T ->T : T ->T : T +>sort : (compareFn?: (a: T, b: T) => number) => T[], Symbol(sort, Decl(implementArrayInterface.ts, 10, 45)) +>compareFn : (a: T, b: T) => number, Symbol(compareFn, Decl(implementArrayInterface.ts, 11, 9)) +>a : T, Symbol(a, Decl(implementArrayInterface.ts, 11, 22)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>b : T, Symbol(b, Decl(implementArrayInterface.ts, 11, 27)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) splice(start: number): T[]; ->splice : { (start: number): T[]; (start: number, deleteCount: number, ...items: T[]): T[]; } ->start : number ->T : T +>splice : { (start: number): T[]; (start: number, deleteCount: number, ...items: T[]): T[]; }, Symbol(splice, Decl(implementArrayInterface.ts, 11, 50), Decl(implementArrayInterface.ts, 12, 31)) +>start : number, Symbol(start, Decl(implementArrayInterface.ts, 12, 11)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) splice(start: number, deleteCount: number, ...items: T[]): T[]; ->splice : { (start: number): T[]; (start: number, deleteCount: number, ...items: T[]): T[]; } ->start : number ->deleteCount : number ->items : T[] ->T : T ->T : T +>splice : { (start: number): T[]; (start: number, deleteCount: number, ...items: T[]): T[]; }, Symbol(splice, Decl(implementArrayInterface.ts, 11, 50), Decl(implementArrayInterface.ts, 12, 31)) +>start : number, Symbol(start, Decl(implementArrayInterface.ts, 13, 11)) +>deleteCount : number, Symbol(deleteCount, Decl(implementArrayInterface.ts, 13, 25)) +>items : T[], Symbol(items, Decl(implementArrayInterface.ts, 13, 46)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) unshift(...items: T[]): number; ->unshift : (...items: T[]) => number ->items : T[] ->T : T +>unshift : (...items: T[]) => number, Symbol(unshift, Decl(implementArrayInterface.ts, 13, 67)) +>items : T[], Symbol(items, Decl(implementArrayInterface.ts, 14, 12)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) indexOf(searchElement: T, fromIndex?: number): number; ->indexOf : (searchElement: T, fromIndex?: number) => number ->searchElement : T ->T : T ->fromIndex : number +>indexOf : (searchElement: T, fromIndex?: number) => number, Symbol(indexOf, Decl(implementArrayInterface.ts, 14, 35)) +>searchElement : T, Symbol(searchElement, Decl(implementArrayInterface.ts, 16, 12)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>fromIndex : number, Symbol(fromIndex, Decl(implementArrayInterface.ts, 16, 29)) lastIndexOf(searchElement: T, fromIndex?: number): number; ->lastIndexOf : (searchElement: T, fromIndex?: number) => number ->searchElement : T ->T : T ->fromIndex : number +>lastIndexOf : (searchElement: T, fromIndex?: number) => number, Symbol(lastIndexOf, Decl(implementArrayInterface.ts, 16, 58)) +>searchElement : T, Symbol(searchElement, Decl(implementArrayInterface.ts, 17, 16)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>fromIndex : number, Symbol(fromIndex, Decl(implementArrayInterface.ts, 17, 33)) every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean; ->every : (callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any) => boolean ->callbackfn : (value: T, index: number, array: T[]) => boolean ->value : T ->T : T ->index : number ->array : T[] ->T : T ->thisArg : any +>every : (callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any) => boolean, Symbol(every, Decl(implementArrayInterface.ts, 17, 62)) +>callbackfn : (value: T, index: number, array: T[]) => boolean, Symbol(callbackfn, Decl(implementArrayInterface.ts, 18, 10)) +>value : T, Symbol(value, Decl(implementArrayInterface.ts, 18, 23)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>index : number, Symbol(index, Decl(implementArrayInterface.ts, 18, 32)) +>array : T[], Symbol(array, Decl(implementArrayInterface.ts, 18, 47)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>thisArg : any, Symbol(thisArg, Decl(implementArrayInterface.ts, 18, 71)) some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean; ->some : (callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any) => boolean ->callbackfn : (value: T, index: number, array: T[]) => boolean ->value : T ->T : T ->index : number ->array : T[] ->T : T ->thisArg : any +>some : (callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any) => boolean, Symbol(some, Decl(implementArrayInterface.ts, 18, 96)) +>callbackfn : (value: T, index: number, array: T[]) => boolean, Symbol(callbackfn, Decl(implementArrayInterface.ts, 19, 9)) +>value : T, Symbol(value, Decl(implementArrayInterface.ts, 19, 22)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>index : number, Symbol(index, Decl(implementArrayInterface.ts, 19, 31)) +>array : T[], Symbol(array, Decl(implementArrayInterface.ts, 19, 46)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>thisArg : any, Symbol(thisArg, Decl(implementArrayInterface.ts, 19, 70)) forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void; ->forEach : (callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any) => void ->callbackfn : (value: T, index: number, array: T[]) => void ->value : T ->T : T ->index : number ->array : T[] ->T : T ->thisArg : any +>forEach : (callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any) => void, Symbol(forEach, Decl(implementArrayInterface.ts, 19, 95)) +>callbackfn : (value: T, index: number, array: T[]) => void, Symbol(callbackfn, Decl(implementArrayInterface.ts, 20, 12)) +>value : T, Symbol(value, Decl(implementArrayInterface.ts, 20, 25)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>index : number, Symbol(index, Decl(implementArrayInterface.ts, 20, 34)) +>array : T[], Symbol(array, Decl(implementArrayInterface.ts, 20, 49)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>thisArg : any, Symbol(thisArg, Decl(implementArrayInterface.ts, 20, 70)) map(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[]; ->map : (callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any) => U[] ->U : U ->callbackfn : (value: T, index: number, array: T[]) => U ->value : T ->T : T ->index : number ->array : T[] ->T : T ->U : U ->thisArg : any ->U : U +>map : (callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any) => U[], Symbol(map, Decl(implementArrayInterface.ts, 20, 92)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 21, 8)) +>callbackfn : (value: T, index: number, array: T[]) => U, Symbol(callbackfn, Decl(implementArrayInterface.ts, 21, 11)) +>value : T, Symbol(value, Decl(implementArrayInterface.ts, 21, 24)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>index : number, Symbol(index, Decl(implementArrayInterface.ts, 21, 33)) +>array : T[], Symbol(array, Decl(implementArrayInterface.ts, 21, 48)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 21, 8)) +>thisArg : any, Symbol(thisArg, Decl(implementArrayInterface.ts, 21, 66)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 21, 8)) filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[]; ->filter : (callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any) => T[] ->callbackfn : (value: T, index: number, array: T[]) => boolean ->value : T ->T : T ->index : number ->array : T[] ->T : T ->thisArg : any ->T : T +>filter : (callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any) => T[], Symbol(filter, Decl(implementArrayInterface.ts, 21, 87)) +>callbackfn : (value: T, index: number, array: T[]) => boolean, Symbol(callbackfn, Decl(implementArrayInterface.ts, 22, 11)) +>value : T, Symbol(value, Decl(implementArrayInterface.ts, 22, 24)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>index : number, Symbol(index, Decl(implementArrayInterface.ts, 22, 33)) +>array : T[], Symbol(array, Decl(implementArrayInterface.ts, 22, 48)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>thisArg : any, Symbol(thisArg, Decl(implementArrayInterface.ts, 22, 72)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; ->reduce : { (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; } ->callbackfn : (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T ->previousValue : T ->T : T ->currentValue : T ->T : T ->currentIndex : number ->array : T[] ->T : T ->T : T ->initialValue : T ->T : T ->T : T +>reduce : { (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; }, Symbol(reduce, Decl(implementArrayInterface.ts, 22, 93), Decl(implementArrayInterface.ts, 23, 120)) +>callbackfn : (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, Symbol(callbackfn, Decl(implementArrayInterface.ts, 23, 11)) +>previousValue : T, Symbol(previousValue, Decl(implementArrayInterface.ts, 23, 24)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>currentValue : T, Symbol(currentValue, Decl(implementArrayInterface.ts, 23, 41)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>currentIndex : number, Symbol(currentIndex, Decl(implementArrayInterface.ts, 23, 58)) +>array : T[], Symbol(array, Decl(implementArrayInterface.ts, 23, 80)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>initialValue : T, Symbol(initialValue, Decl(implementArrayInterface.ts, 23, 98)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) reduce(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; ->reduce : { (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; } ->U : U ->callbackfn : (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U ->previousValue : U ->U : U ->currentValue : T ->T : T ->currentIndex : number ->array : T[] ->T : T ->U : U ->initialValue : U ->U : U ->U : U +>reduce : { (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; }, Symbol(reduce, Decl(implementArrayInterface.ts, 22, 93), Decl(implementArrayInterface.ts, 23, 120)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 24, 11)) +>callbackfn : (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, Symbol(callbackfn, Decl(implementArrayInterface.ts, 24, 14)) +>previousValue : U, Symbol(previousValue, Decl(implementArrayInterface.ts, 24, 27)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 24, 11)) +>currentValue : T, Symbol(currentValue, Decl(implementArrayInterface.ts, 24, 44)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>currentIndex : number, Symbol(currentIndex, Decl(implementArrayInterface.ts, 24, 61)) +>array : T[], Symbol(array, Decl(implementArrayInterface.ts, 24, 83)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 24, 11)) +>initialValue : U, Symbol(initialValue, Decl(implementArrayInterface.ts, 24, 101)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 24, 11)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 24, 11)) reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; ->reduceRight : { (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; } ->callbackfn : (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T ->previousValue : T ->T : T ->currentValue : T ->T : T ->currentIndex : number ->array : T[] ->T : T ->T : T ->initialValue : T ->T : T ->T : T +>reduceRight : { (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; }, Symbol(reduceRight, Decl(implementArrayInterface.ts, 24, 122), Decl(implementArrayInterface.ts, 25, 125)) +>callbackfn : (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, Symbol(callbackfn, Decl(implementArrayInterface.ts, 25, 16)) +>previousValue : T, Symbol(previousValue, Decl(implementArrayInterface.ts, 25, 29)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>currentValue : T, Symbol(currentValue, Decl(implementArrayInterface.ts, 25, 46)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>currentIndex : number, Symbol(currentIndex, Decl(implementArrayInterface.ts, 25, 63)) +>array : T[], Symbol(array, Decl(implementArrayInterface.ts, 25, 85)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>initialValue : T, Symbol(initialValue, Decl(implementArrayInterface.ts, 25, 103)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) reduceRight(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; ->reduceRight : { (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; } ->U : U ->callbackfn : (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U ->previousValue : U ->U : U ->currentValue : T ->T : T ->currentIndex : number ->array : T[] ->T : T ->U : U ->initialValue : U ->U : U ->U : U +>reduceRight : { (callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; (callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; }, Symbol(reduceRight, Decl(implementArrayInterface.ts, 24, 122), Decl(implementArrayInterface.ts, 25, 125)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 26, 16)) +>callbackfn : (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, Symbol(callbackfn, Decl(implementArrayInterface.ts, 26, 19)) +>previousValue : U, Symbol(previousValue, Decl(implementArrayInterface.ts, 26, 32)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 26, 16)) +>currentValue : T, Symbol(currentValue, Decl(implementArrayInterface.ts, 26, 49)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>currentIndex : number, Symbol(currentIndex, Decl(implementArrayInterface.ts, 26, 66)) +>array : T[], Symbol(array, Decl(implementArrayInterface.ts, 26, 88)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 26, 16)) +>initialValue : U, Symbol(initialValue, Decl(implementArrayInterface.ts, 26, 106)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 26, 16)) +>U : U, Symbol(U, Decl(implementArrayInterface.ts, 26, 16)) length: number; ->length : number +>length : number, Symbol(length, Decl(implementArrayInterface.ts, 26, 127)) [n: number]: T; ->n : number ->T : T +>n : number, Symbol(n, Decl(implementArrayInterface.ts, 30, 5)) +>T : T, Symbol(T, Decl(implementArrayInterface.ts, 0, 22)) } diff --git a/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.types b/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.types index 0b7fe6c69d0..19cf7269318 100644 --- a/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.types +++ b/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.types @@ -1,19 +1,19 @@ === tests/cases/compiler/implementInterfaceAnyMemberWithVoid.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(implementInterfaceAnyMemberWithVoid.ts, 0, 0)) foo(value: number); ->foo : (value: number) => any ->value : number +>foo : (value: number) => any, Symbol(foo, Decl(implementInterfaceAnyMemberWithVoid.ts, 0, 13)) +>value : number, Symbol(value, Decl(implementInterfaceAnyMemberWithVoid.ts, 1, 8)) } class Bug implements I { ->Bug : Bug ->I : I +>Bug : Bug, Symbol(Bug, Decl(implementInterfaceAnyMemberWithVoid.ts, 2, 1)) +>I : I, Symbol(I, Decl(implementInterfaceAnyMemberWithVoid.ts, 0, 0)) public foo(value: number) { ->foo : (value: number) => void ->value : number +>foo : (value: number) => void, Symbol(foo, Decl(implementInterfaceAnyMemberWithVoid.ts, 4, 24)) +>value : number, Symbol(value, Decl(implementInterfaceAnyMemberWithVoid.ts, 5, 15)) } } diff --git a/tests/baselines/reference/implicitAnyAnyReturningFunction.types b/tests/baselines/reference/implicitAnyAnyReturningFunction.types index 1f0b81c724f..0c4b6a3eb76 100644 --- a/tests/baselines/reference/implicitAnyAnyReturningFunction.types +++ b/tests/baselines/reference/implicitAnyAnyReturningFunction.types @@ -1,41 +1,43 @@ === tests/cases/compiler/implicitAnyAnyReturningFunction.ts === function A() { ->A : () => any +>A : () => any, Symbol(A, Decl(implicitAnyAnyReturningFunction.ts, 0, 0)) return ""; >"" : any +>"" : string } function B() { ->B : () => any +>B : () => any, Symbol(B, Decl(implicitAnyAnyReturningFunction.ts, 2, 1)) var someLocal: any = {}; ->someLocal : any +>someLocal : any, Symbol(someLocal, Decl(implicitAnyAnyReturningFunction.ts, 5, 7)) >{} : {} return someLocal; ->someLocal : any +>someLocal : any, Symbol(someLocal, Decl(implicitAnyAnyReturningFunction.ts, 5, 7)) } class C { ->C : C +>C : C, Symbol(C, Decl(implicitAnyAnyReturningFunction.ts, 7, 1)) public A() { ->A : () => any +>A : () => any, Symbol(A, Decl(implicitAnyAnyReturningFunction.ts, 9, 9)) return ""; >"" : any +>"" : string } public B() { ->B : () => any +>B : () => any, Symbol(B, Decl(implicitAnyAnyReturningFunction.ts, 12, 5)) var someLocal: any = {}; ->someLocal : any +>someLocal : any, Symbol(someLocal, Decl(implicitAnyAnyReturningFunction.ts, 15, 11)) >{} : {} return someLocal; ->someLocal : any +>someLocal : any, Symbol(someLocal, Decl(implicitAnyAnyReturningFunction.ts, 15, 11)) } } diff --git a/tests/baselines/reference/implicitAnyDeclareFunctionWithoutFormalType2.types b/tests/baselines/reference/implicitAnyDeclareFunctionWithoutFormalType2.types index 9fd971ab862..a957d3d5dae 100644 --- a/tests/baselines/reference/implicitAnyDeclareFunctionWithoutFormalType2.types +++ b/tests/baselines/reference/implicitAnyDeclareFunctionWithoutFormalType2.types @@ -1,32 +1,32 @@ === tests/cases/compiler/implicitAnyDeclareFunctionWithoutFormalType2.ts === // generates function fn1(): number; function fn1() { ->fn1 : () => number +>fn1 : () => number, Symbol(fn1, Decl(implicitAnyDeclareFunctionWithoutFormalType2.ts, 0, 0)) var x: number; ->x : number +>x : number, Symbol(x, Decl(implicitAnyDeclareFunctionWithoutFormalType2.ts, 2, 7)) return x; ->x : number +>x : number, Symbol(x, Decl(implicitAnyDeclareFunctionWithoutFormalType2.ts, 2, 7)) } // generates function fn2(): any; function fn2(): any { ->fn2 : () => any +>fn2 : () => any, Symbol(fn2, Decl(implicitAnyDeclareFunctionWithoutFormalType2.ts, 4, 1)) var x: any; ->x : any +>x : any, Symbol(x, Decl(implicitAnyDeclareFunctionWithoutFormalType2.ts, 7, 7)) return x; ->x : any +>x : any, Symbol(x, Decl(implicitAnyDeclareFunctionWithoutFormalType2.ts, 7, 7)) } // generates function fn3(); function fn3() { ->fn3 : () => any +>fn3 : () => any, Symbol(fn3, Decl(implicitAnyDeclareFunctionWithoutFormalType2.ts, 9, 1)) var x: any; ->x : any +>x : any, Symbol(x, Decl(implicitAnyDeclareFunctionWithoutFormalType2.ts, 12, 7)) return x; ->x : any +>x : any, Symbol(x, Decl(implicitAnyDeclareFunctionWithoutFormalType2.ts, 12, 7)) } diff --git a/tests/baselines/reference/implicitAnyGenerics.types b/tests/baselines/reference/implicitAnyGenerics.types index 91a231e3f12..0f0abe3134e 100644 --- a/tests/baselines/reference/implicitAnyGenerics.types +++ b/tests/baselines/reference/implicitAnyGenerics.types @@ -1,83 +1,89 @@ === tests/cases/compiler/implicitAnyGenerics.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(implicitAnyGenerics.ts, 0, 0)) +>T : T, Symbol(T, Decl(implicitAnyGenerics.ts, 1, 8)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(implicitAnyGenerics.ts, 1, 12)) +>T : T, Symbol(T, Decl(implicitAnyGenerics.ts, 1, 8)) } var c = new C(); ->c : C<{}> +>c : C<{}>, Symbol(c, Decl(implicitAnyGenerics.ts, 5, 3)) >new C() : C<{}> ->C : typeof C +>C : typeof C, Symbol(C, Decl(implicitAnyGenerics.ts, 0, 0)) var c2 = new C(); ->c2 : C +>c2 : C, Symbol(c2, Decl(implicitAnyGenerics.ts, 6, 3)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(implicitAnyGenerics.ts, 0, 0)) var c3 = new C(); ->c3 : C +>c3 : C, Symbol(c3, Decl(implicitAnyGenerics.ts, 7, 3)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(implicitAnyGenerics.ts, 0, 0)) var c4: C = new C(); ->c4 : C ->C : C +>c4 : C, Symbol(c4, Decl(implicitAnyGenerics.ts, 8, 3)) +>C : C, Symbol(C, Decl(implicitAnyGenerics.ts, 0, 0)) >new C() : C<{}> ->C : typeof C +>C : typeof C, Symbol(C, Decl(implicitAnyGenerics.ts, 0, 0)) class D { ->D : D ->T : T +>D : D, Symbol(D, Decl(implicitAnyGenerics.ts, 8, 25)) +>T : T, Symbol(T, Decl(implicitAnyGenerics.ts, 10, 8)) constructor(x: T) { } ->x : T ->T : T +>x : T, Symbol(x, Decl(implicitAnyGenerics.ts, 11, 16)) +>T : T, Symbol(T, Decl(implicitAnyGenerics.ts, 10, 8)) } var d = new D(null); ->d : D +>d : D, Symbol(d, Decl(implicitAnyGenerics.ts, 14, 3)) >new D(null) : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(implicitAnyGenerics.ts, 8, 25)) +>null : null var d2 = new D(1); ->d2 : D +>d2 : D, Symbol(d2, Decl(implicitAnyGenerics.ts, 15, 3)) >new D(1) : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(implicitAnyGenerics.ts, 8, 25)) +>1 : number var d3 = new D(1); ->d3 : D +>d3 : D, Symbol(d3, Decl(implicitAnyGenerics.ts, 16, 3)) >new D(1) : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(implicitAnyGenerics.ts, 8, 25)) +>1 : number var d4 = new D(1); ->d4 : D +>d4 : D, Symbol(d4, Decl(implicitAnyGenerics.ts, 17, 3)) >new D(1) : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(implicitAnyGenerics.ts, 8, 25)) >1 : any +>1 : number var d5: D = new D(null); ->d5 : D ->D : D +>d5 : D, Symbol(d5, Decl(implicitAnyGenerics.ts, 18, 3)) +>D : D, Symbol(D, Decl(implicitAnyGenerics.ts, 8, 25)) >new D(null) : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(implicitAnyGenerics.ts, 8, 25)) +>null : null function foo(): T { return null; }; ->foo : () => T ->T : T ->T : T +>foo : () => T, Symbol(foo, Decl(implicitAnyGenerics.ts, 18, 29)) +>T : T, Symbol(T, Decl(implicitAnyGenerics.ts, 20, 13)) +>T : T, Symbol(T, Decl(implicitAnyGenerics.ts, 20, 13)) +>null : null foo() >foo() : {} ->foo : () => T +>foo : () => T, Symbol(foo, Decl(implicitAnyGenerics.ts, 18, 29)) foo(); >foo() : any ->foo : () => T +>foo : () => T, Symbol(foo, Decl(implicitAnyGenerics.ts, 18, 29)) diff --git a/tests/baselines/reference/implicitAnyInCatch.types b/tests/baselines/reference/implicitAnyInCatch.types index b5a5821eacc..c0e689cef12 100644 --- a/tests/baselines/reference/implicitAnyInCatch.types +++ b/tests/baselines/reference/implicitAnyInCatch.types @@ -1,28 +1,29 @@ === tests/cases/compiler/implicitAnyInCatch.ts === // this should not be an error try { } catch (error) { ->error : any +>error : any, Symbol(error, Decl(implicitAnyInCatch.ts, 1, 15)) if (error.number === -2147024809) { } >error.number === -2147024809 : boolean >error.number : any ->error : any +>error : any, Symbol(error, Decl(implicitAnyInCatch.ts, 1, 15)) >number : any >-2147024809 : number +>2147024809 : number } for (var key in this) { } ->key : any +>key : any, Symbol(key, Decl(implicitAnyInCatch.ts, 4, 8)) >this : any class C { ->C : C +>C : C, Symbol(C, Decl(implicitAnyInCatch.ts, 4, 25)) public temp() { ->temp : () => void +>temp : () => void, Symbol(temp, Decl(implicitAnyInCatch.ts, 6, 9)) for (var x in this) { ->x : any ->this : C +>x : any, Symbol(x, Decl(implicitAnyInCatch.ts, 8, 16)) +>this : C, Symbol(C, Decl(implicitAnyInCatch.ts, 4, 25)) } } } diff --git a/tests/baselines/reference/importAliasIdentifiers.types b/tests/baselines/reference/importAliasIdentifiers.types index 7401c3e7518..30be7b2e8d7 100644 --- a/tests/baselines/reference/importAliasIdentifiers.types +++ b/tests/baselines/reference/importAliasIdentifiers.types @@ -1,123 +1,129 @@ === tests/cases/conformance/internalModules/importDeclarations/importAliasIdentifiers.ts === module moduleA { ->moduleA : typeof moduleA +>moduleA : typeof moduleA, Symbol(moduleA, Decl(importAliasIdentifiers.ts, 0, 0)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(importAliasIdentifiers.ts, 0, 16)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(importAliasIdentifiers.ts, 2, 20)) +>y : number, Symbol(y, Decl(importAliasIdentifiers.ts, 2, 37)) } } import alias = moduleA; ->alias : typeof moduleA ->moduleA : typeof moduleA +>alias : typeof moduleA, Symbol(alias, Decl(importAliasIdentifiers.ts, 4, 1)) +>moduleA : typeof moduleA, Symbol(moduleA, Decl(importAliasIdentifiers.ts, 0, 0)) var p: alias.Point; ->p : alias.Point ->alias : unknown ->Point : alias.Point +>p : alias.Point, Symbol(p, Decl(importAliasIdentifiers.ts, 8, 3), Decl(importAliasIdentifiers.ts, 9, 3), Decl(importAliasIdentifiers.ts, 10, 3), Decl(importAliasIdentifiers.ts, 25, 3), Decl(importAliasIdentifiers.ts, 26, 3), Decl(importAliasIdentifiers.ts, 27, 3), Decl(importAliasIdentifiers.ts, 43, 3), Decl(importAliasIdentifiers.ts, 44, 3), Decl(importAliasIdentifiers.ts, 45, 3)) +>alias : any, Symbol(alias, Decl(importAliasIdentifiers.ts, 4, 1)) +>Point : alias.Point, Symbol(alias.Point, Decl(importAliasIdentifiers.ts, 0, 16)) var p: moduleA.Point; ->p : alias.Point ->moduleA : unknown ->Point : alias.Point +>p : alias.Point, Symbol(p, Decl(importAliasIdentifiers.ts, 8, 3), Decl(importAliasIdentifiers.ts, 9, 3), Decl(importAliasIdentifiers.ts, 10, 3), Decl(importAliasIdentifiers.ts, 25, 3), Decl(importAliasIdentifiers.ts, 26, 3), Decl(importAliasIdentifiers.ts, 27, 3), Decl(importAliasIdentifiers.ts, 43, 3), Decl(importAliasIdentifiers.ts, 44, 3), Decl(importAliasIdentifiers.ts, 45, 3)) +>moduleA : any, Symbol(moduleA, Decl(importAliasIdentifiers.ts, 0, 0)) +>Point : alias.Point, Symbol(alias.Point, Decl(importAliasIdentifiers.ts, 0, 16)) var p: { x: number; y: number; }; ->p : alias.Point ->x : number ->y : number +>p : alias.Point, Symbol(p, Decl(importAliasIdentifiers.ts, 8, 3), Decl(importAliasIdentifiers.ts, 9, 3), Decl(importAliasIdentifiers.ts, 10, 3), Decl(importAliasIdentifiers.ts, 25, 3), Decl(importAliasIdentifiers.ts, 26, 3), Decl(importAliasIdentifiers.ts, 27, 3), Decl(importAliasIdentifiers.ts, 43, 3), Decl(importAliasIdentifiers.ts, 44, 3), Decl(importAliasIdentifiers.ts, 45, 3)) +>x : number, Symbol(x, Decl(importAliasIdentifiers.ts, 10, 8)) +>y : number, Symbol(y, Decl(importAliasIdentifiers.ts, 10, 19)) class clodule { ->clodule : clodule +>clodule : clodule, Symbol(clodule, Decl(importAliasIdentifiers.ts, 10, 33), Decl(importAliasIdentifiers.ts, 14, 1)) name: string; ->name : string +>name : string, Symbol(name, Decl(importAliasIdentifiers.ts, 12, 15)) } module clodule { ->clodule : typeof clodule +>clodule : typeof clodule, Symbol(clodule, Decl(importAliasIdentifiers.ts, 10, 33), Decl(importAliasIdentifiers.ts, 14, 1)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(importAliasIdentifiers.ts, 16, 16)) x: number; y: number; ->x : number ->y : number +>x : number, Symbol(x, Decl(importAliasIdentifiers.ts, 17, 28)) +>y : number, Symbol(y, Decl(importAliasIdentifiers.ts, 18, 18)) } var Point: Point = { x: 0, y: 0 }; ->Point : Point ->Point : Point +>Point : Point, Symbol(Point, Decl(importAliasIdentifiers.ts, 16, 16), Decl(importAliasIdentifiers.ts, 20, 7)) +>Point : Point, Symbol(Point, Decl(importAliasIdentifiers.ts, 16, 16)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(importAliasIdentifiers.ts, 20, 24)) +>0 : number +>y : number, Symbol(y, Decl(importAliasIdentifiers.ts, 20, 30)) +>0 : number } import clolias = clodule; ->clolias : typeof clodule ->clodule : clodule +>clolias : typeof clodule, Symbol(clolias, Decl(importAliasIdentifiers.ts, 21, 1)) +>clodule : clodule, Symbol(clodule, Decl(importAliasIdentifiers.ts, 10, 33), Decl(importAliasIdentifiers.ts, 14, 1)) var p: clolias.Point; ->p : alias.Point ->clolias : unknown ->Point : clolias.Point +>p : alias.Point, Symbol(p, Decl(importAliasIdentifiers.ts, 8, 3), Decl(importAliasIdentifiers.ts, 9, 3), Decl(importAliasIdentifiers.ts, 10, 3), Decl(importAliasIdentifiers.ts, 25, 3), Decl(importAliasIdentifiers.ts, 26, 3), Decl(importAliasIdentifiers.ts, 27, 3), Decl(importAliasIdentifiers.ts, 43, 3), Decl(importAliasIdentifiers.ts, 44, 3), Decl(importAliasIdentifiers.ts, 45, 3)) +>clolias : any, Symbol(clolias, Decl(importAliasIdentifiers.ts, 21, 1)) +>Point : clolias.Point, Symbol(clolias.Point, Decl(importAliasIdentifiers.ts, 16, 16)) var p: clodule.Point; ->p : alias.Point ->clodule : unknown ->Point : clolias.Point +>p : alias.Point, Symbol(p, Decl(importAliasIdentifiers.ts, 8, 3), Decl(importAliasIdentifiers.ts, 9, 3), Decl(importAliasIdentifiers.ts, 10, 3), Decl(importAliasIdentifiers.ts, 25, 3), Decl(importAliasIdentifiers.ts, 26, 3), Decl(importAliasIdentifiers.ts, 27, 3), Decl(importAliasIdentifiers.ts, 43, 3), Decl(importAliasIdentifiers.ts, 44, 3), Decl(importAliasIdentifiers.ts, 45, 3)) +>clodule : any, Symbol(clodule, Decl(importAliasIdentifiers.ts, 10, 33), Decl(importAliasIdentifiers.ts, 14, 1)) +>Point : clolias.Point, Symbol(clolias.Point, Decl(importAliasIdentifiers.ts, 16, 16)) var p: { x: number; y: number; }; ->p : alias.Point ->x : number ->y : number +>p : alias.Point, Symbol(p, Decl(importAliasIdentifiers.ts, 8, 3), Decl(importAliasIdentifiers.ts, 9, 3), Decl(importAliasIdentifiers.ts, 10, 3), Decl(importAliasIdentifiers.ts, 25, 3), Decl(importAliasIdentifiers.ts, 26, 3), Decl(importAliasIdentifiers.ts, 27, 3), Decl(importAliasIdentifiers.ts, 43, 3), Decl(importAliasIdentifiers.ts, 44, 3), Decl(importAliasIdentifiers.ts, 45, 3)) +>x : number, Symbol(x, Decl(importAliasIdentifiers.ts, 27, 8)) +>y : number, Symbol(y, Decl(importAliasIdentifiers.ts, 27, 19)) function fundule() { ->fundule : typeof fundule +>fundule : typeof fundule, Symbol(fundule, Decl(importAliasIdentifiers.ts, 27, 33), Decl(importAliasIdentifiers.ts, 32, 1)) return { x: 0, y: 0 }; >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(importAliasIdentifiers.ts, 31, 12)) +>0 : number +>y : number, Symbol(y, Decl(importAliasIdentifiers.ts, 31, 18)) +>0 : number } module fundule { ->fundule : typeof fundule +>fundule : typeof fundule, Symbol(fundule, Decl(importAliasIdentifiers.ts, 27, 33), Decl(importAliasIdentifiers.ts, 32, 1)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(importAliasIdentifiers.ts, 34, 16)) x: number; y: number; ->x : number ->y : number +>x : number, Symbol(x, Decl(importAliasIdentifiers.ts, 35, 28)) +>y : number, Symbol(y, Decl(importAliasIdentifiers.ts, 36, 18)) } var Point: Point = { x: 0, y: 0 }; ->Point : Point ->Point : Point +>Point : Point, Symbol(Point, Decl(importAliasIdentifiers.ts, 34, 16), Decl(importAliasIdentifiers.ts, 38, 7)) +>Point : Point, Symbol(Point, Decl(importAliasIdentifiers.ts, 34, 16)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(importAliasIdentifiers.ts, 38, 24)) +>0 : number +>y : number, Symbol(y, Decl(importAliasIdentifiers.ts, 38, 30)) +>0 : number } import funlias = fundule; ->funlias : typeof fundule ->fundule : typeof fundule +>funlias : typeof fundule, Symbol(funlias, Decl(importAliasIdentifiers.ts, 39, 1)) +>fundule : typeof fundule, Symbol(fundule, Decl(importAliasIdentifiers.ts, 27, 33), Decl(importAliasIdentifiers.ts, 32, 1)) var p: funlias.Point; ->p : alias.Point ->funlias : unknown ->Point : funlias.Point +>p : alias.Point, Symbol(p, Decl(importAliasIdentifiers.ts, 8, 3), Decl(importAliasIdentifiers.ts, 9, 3), Decl(importAliasIdentifiers.ts, 10, 3), Decl(importAliasIdentifiers.ts, 25, 3), Decl(importAliasIdentifiers.ts, 26, 3), Decl(importAliasIdentifiers.ts, 27, 3), Decl(importAliasIdentifiers.ts, 43, 3), Decl(importAliasIdentifiers.ts, 44, 3), Decl(importAliasIdentifiers.ts, 45, 3)) +>funlias : any, Symbol(funlias, Decl(importAliasIdentifiers.ts, 39, 1)) +>Point : funlias.Point, Symbol(funlias.Point, Decl(importAliasIdentifiers.ts, 34, 16)) var p: fundule.Point; ->p : alias.Point ->fundule : unknown ->Point : funlias.Point +>p : alias.Point, Symbol(p, Decl(importAliasIdentifiers.ts, 8, 3), Decl(importAliasIdentifiers.ts, 9, 3), Decl(importAliasIdentifiers.ts, 10, 3), Decl(importAliasIdentifiers.ts, 25, 3), Decl(importAliasIdentifiers.ts, 26, 3), Decl(importAliasIdentifiers.ts, 27, 3), Decl(importAliasIdentifiers.ts, 43, 3), Decl(importAliasIdentifiers.ts, 44, 3), Decl(importAliasIdentifiers.ts, 45, 3)) +>fundule : any, Symbol(fundule, Decl(importAliasIdentifiers.ts, 27, 33), Decl(importAliasIdentifiers.ts, 32, 1)) +>Point : funlias.Point, Symbol(funlias.Point, Decl(importAliasIdentifiers.ts, 34, 16)) var p: { x: number; y: number; }; ->p : alias.Point ->x : number ->y : number +>p : alias.Point, Symbol(p, Decl(importAliasIdentifiers.ts, 8, 3), Decl(importAliasIdentifiers.ts, 9, 3), Decl(importAliasIdentifiers.ts, 10, 3), Decl(importAliasIdentifiers.ts, 25, 3), Decl(importAliasIdentifiers.ts, 26, 3), Decl(importAliasIdentifiers.ts, 27, 3), Decl(importAliasIdentifiers.ts, 43, 3), Decl(importAliasIdentifiers.ts, 44, 3), Decl(importAliasIdentifiers.ts, 45, 3)) +>x : number, Symbol(x, Decl(importAliasIdentifiers.ts, 45, 8)) +>y : number, Symbol(y, Decl(importAliasIdentifiers.ts, 45, 19)) diff --git a/tests/baselines/reference/importAliasWithDottedName.types b/tests/baselines/reference/importAliasWithDottedName.types index ab316fade5c..db7015211e3 100644 --- a/tests/baselines/reference/importAliasWithDottedName.types +++ b/tests/baselines/reference/importAliasWithDottedName.types @@ -1,37 +1,39 @@ === tests/cases/compiler/importAliasWithDottedName.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(importAliasWithDottedName.ts, 0, 0)) export var x = 1; ->x : number +>x : number, Symbol(x, Decl(importAliasWithDottedName.ts, 1, 14)) +>1 : number export module N { ->N : typeof N +>N : typeof N, Symbol(N, Decl(importAliasWithDottedName.ts, 1, 21)) export var y = 2; ->y : number +>y : number, Symbol(y, Decl(importAliasWithDottedName.ts, 3, 18)) +>2 : number } } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(importAliasWithDottedName.ts, 5, 1)) import N = M.N; ->N : typeof N ->M : typeof M ->N : typeof N +>N : typeof N, Symbol(N, Decl(importAliasWithDottedName.ts, 7, 10)) +>M : typeof M, Symbol(M, Decl(importAliasWithDottedName.ts, 0, 0)) +>N : typeof N, Symbol(N, Decl(importAliasWithDottedName.ts, 1, 21)) var r = N.y; ->r : number ->N.y : number ->N : typeof N ->y : number +>r : number, Symbol(r, Decl(importAliasWithDottedName.ts, 9, 7)) +>N.y : number, Symbol(N.y, Decl(importAliasWithDottedName.ts, 3, 18)) +>N : typeof N, Symbol(N, Decl(importAliasWithDottedName.ts, 7, 10)) +>y : number, Symbol(N.y, Decl(importAliasWithDottedName.ts, 3, 18)) var r2 = M.N.y; ->r2 : number ->M.N.y : number ->M.N : typeof N ->M : typeof M ->N : typeof N ->y : number +>r2 : number, Symbol(r2, Decl(importAliasWithDottedName.ts, 10, 7)) +>M.N.y : number, Symbol(N.y, Decl(importAliasWithDottedName.ts, 3, 18)) +>M.N : typeof N, Symbol(N, Decl(importAliasWithDottedName.ts, 1, 21)) +>M : typeof M, Symbol(M, Decl(importAliasWithDottedName.ts, 0, 0)) +>N : typeof N, Symbol(N, Decl(importAliasWithDottedName.ts, 1, 21)) +>y : number, Symbol(N.y, Decl(importAliasWithDottedName.ts, 3, 18)) } diff --git a/tests/baselines/reference/importAndVariableDeclarationConflict2.types b/tests/baselines/reference/importAndVariableDeclarationConflict2.types index eb4f354a4dc..dd0c4661346 100644 --- a/tests/baselines/reference/importAndVariableDeclarationConflict2.types +++ b/tests/baselines/reference/importAndVariableDeclarationConflict2.types @@ -1,23 +1,25 @@ === tests/cases/compiler/importAndVariableDeclarationConflict2.ts === module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(importAndVariableDeclarationConflict2.ts, 0, 0)) export var m = ''; ->m : string +>m : string, Symbol(m, Decl(importAndVariableDeclarationConflict2.ts, 1, 12)) +>'' : string } import x = m.m; ->x : string ->m : typeof m ->m : string +>x : string, Symbol(x, Decl(importAndVariableDeclarationConflict2.ts, 2, 1)) +>m : typeof m, Symbol(m, Decl(importAndVariableDeclarationConflict2.ts, 0, 0)) +>m : string, Symbol(x, Decl(importAndVariableDeclarationConflict2.ts, 1, 12)) class C { ->C : C +>C : C, Symbol(C, Decl(importAndVariableDeclarationConflict2.ts, 4, 15)) public foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(importAndVariableDeclarationConflict2.ts, 6, 9)) var x = ''; ->x : string +>x : string, Symbol(x, Decl(importAndVariableDeclarationConflict2.ts, 8, 7)) +>'' : string } } diff --git a/tests/baselines/reference/importDecl.types b/tests/baselines/reference/importDecl.types index 973729ae050..54e4b3c2b09 100644 --- a/tests/baselines/reference/importDecl.types +++ b/tests/baselines/reference/importDecl.types @@ -5,224 +5,229 @@ /// /// import m4 = require("importDecl_require"); // Emit used ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(importDecl_1.ts, 0, 0)) export var x4 = m4.x; ->x4 : m4.d ->m4.x : m4.d ->m4 : typeof m4 ->x : m4.d +>x4 : m4.d, Symbol(x4, Decl(importDecl_1.ts, 6, 10)) +>m4.x : m4.d, Symbol(m4.x, Decl(importDecl_require.ts, 3, 10)) +>m4 : typeof m4, Symbol(m4, Decl(importDecl_1.ts, 0, 0)) +>x : m4.d, Symbol(m4.x, Decl(importDecl_require.ts, 3, 10)) export var d4 = m4.d; ->d4 : typeof m4.d ->m4.d : typeof m4.d ->m4 : typeof m4 ->d : typeof m4.d +>d4 : typeof m4.d, Symbol(d4, Decl(importDecl_1.ts, 7, 10)) +>m4.d : typeof m4.d, Symbol(m4.d, Decl(importDecl_require.ts, 0, 0)) +>m4 : typeof m4, Symbol(m4, Decl(importDecl_1.ts, 0, 0)) +>d : typeof m4.d, Symbol(m4.d, Decl(importDecl_require.ts, 0, 0)) export var f4 = m4.foo(); ->f4 : m4.d +>f4 : m4.d, Symbol(f4, Decl(importDecl_1.ts, 8, 10)) >m4.foo() : m4.d ->m4.foo : () => m4.d ->m4 : typeof m4 ->foo : () => m4.d +>m4.foo : () => m4.d, Symbol(m4.foo, Decl(importDecl_require.ts, 3, 16)) +>m4 : typeof m4, Symbol(m4, Decl(importDecl_1.ts, 0, 0)) +>foo : () => m4.d, Symbol(m4.foo, Decl(importDecl_require.ts, 3, 16)) export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(importDecl_1.ts, 8, 25)) export var x2 = m4.x; ->x2 : m4.d ->m4.x : m4.d ->m4 : typeof m4 ->x : m4.d +>x2 : m4.d, Symbol(x2, Decl(importDecl_1.ts, 11, 14)) +>m4.x : m4.d, Symbol(m4.x, Decl(importDecl_require.ts, 3, 10)) +>m4 : typeof m4, Symbol(m4, Decl(importDecl_1.ts, 0, 0)) +>x : m4.d, Symbol(m4.x, Decl(importDecl_require.ts, 3, 10)) export var d2 = m4.d; ->d2 : typeof m4.d ->m4.d : typeof m4.d ->m4 : typeof m4 ->d : typeof m4.d +>d2 : typeof m4.d, Symbol(d2, Decl(importDecl_1.ts, 12, 14)) +>m4.d : typeof m4.d, Symbol(m4.d, Decl(importDecl_require.ts, 0, 0)) +>m4 : typeof m4, Symbol(m4, Decl(importDecl_1.ts, 0, 0)) +>d : typeof m4.d, Symbol(m4.d, Decl(importDecl_require.ts, 0, 0)) export var f2 = m4.foo(); ->f2 : m4.d +>f2 : m4.d, Symbol(f2, Decl(importDecl_1.ts, 13, 14)) >m4.foo() : m4.d ->m4.foo : () => m4.d ->m4 : typeof m4 ->foo : () => m4.d +>m4.foo : () => m4.d, Symbol(m4.foo, Decl(importDecl_require.ts, 3, 16)) +>m4 : typeof m4, Symbol(m4, Decl(importDecl_1.ts, 0, 0)) +>foo : () => m4.d, Symbol(m4.foo, Decl(importDecl_require.ts, 3, 16)) var x3 = m4.x; ->x3 : m4.d ->m4.x : m4.d ->m4 : typeof m4 ->x : m4.d +>x3 : m4.d, Symbol(x3, Decl(importDecl_1.ts, 15, 7)) +>m4.x : m4.d, Symbol(m4.x, Decl(importDecl_require.ts, 3, 10)) +>m4 : typeof m4, Symbol(m4, Decl(importDecl_1.ts, 0, 0)) +>x : m4.d, Symbol(m4.x, Decl(importDecl_require.ts, 3, 10)) var d3 = m4.d; ->d3 : typeof m4.d ->m4.d : typeof m4.d ->m4 : typeof m4 ->d : typeof m4.d +>d3 : typeof m4.d, Symbol(d3, Decl(importDecl_1.ts, 16, 7)) +>m4.d : typeof m4.d, Symbol(m4.d, Decl(importDecl_require.ts, 0, 0)) +>m4 : typeof m4, Symbol(m4, Decl(importDecl_1.ts, 0, 0)) +>d : typeof m4.d, Symbol(m4.d, Decl(importDecl_require.ts, 0, 0)) var f3 = m4.foo(); ->f3 : m4.d +>f3 : m4.d, Symbol(f3, Decl(importDecl_1.ts, 17, 7)) >m4.foo() : m4.d ->m4.foo : () => m4.d ->m4 : typeof m4 ->foo : () => m4.d +>m4.foo : () => m4.d, Symbol(m4.foo, Decl(importDecl_require.ts, 3, 16)) +>m4 : typeof m4, Symbol(m4, Decl(importDecl_1.ts, 0, 0)) +>foo : () => m4.d, Symbol(m4.foo, Decl(importDecl_require.ts, 3, 16)) } //Emit global only usage import glo_m4 = require("importDecl_require1"); ->glo_m4 : typeof glo_m4 +>glo_m4 : typeof glo_m4, Symbol(glo_m4, Decl(importDecl_1.ts, 18, 1)) export var useGlo_m4_d4 = glo_m4.d; ->useGlo_m4_d4 : typeof glo_m4.d ->glo_m4.d : typeof glo_m4.d ->glo_m4 : typeof glo_m4 ->d : typeof glo_m4.d +>useGlo_m4_d4 : typeof glo_m4.d, Symbol(useGlo_m4_d4, Decl(importDecl_1.ts, 22, 10)) +>glo_m4.d : typeof glo_m4.d, Symbol(glo_m4.d, Decl(importDecl_require1.ts, 0, 0)) +>glo_m4 : typeof glo_m4, Symbol(glo_m4, Decl(importDecl_1.ts, 18, 1)) +>d : typeof glo_m4.d, Symbol(glo_m4.d, Decl(importDecl_require1.ts, 0, 0)) export var useGlo_m4_f4 = glo_m4.foo(); ->useGlo_m4_f4 : glo_m4.d +>useGlo_m4_f4 : glo_m4.d, Symbol(useGlo_m4_f4, Decl(importDecl_1.ts, 23, 10)) >glo_m4.foo() : glo_m4.d ->glo_m4.foo : () => glo_m4.d ->glo_m4 : typeof glo_m4 ->foo : () => glo_m4.d +>glo_m4.foo : () => glo_m4.d, Symbol(glo_m4.foo, Decl(importDecl_require1.ts, 3, 9)) +>glo_m4 : typeof glo_m4, Symbol(glo_m4, Decl(importDecl_1.ts, 18, 1)) +>foo : () => glo_m4.d, Symbol(glo_m4.foo, Decl(importDecl_require1.ts, 3, 9)) //Emit even when used just in function type import fncOnly_m4 = require("importDecl_require2"); ->fncOnly_m4 : typeof fncOnly_m4 +>fncOnly_m4 : typeof fncOnly_m4, Symbol(fncOnly_m4, Decl(importDecl_1.ts, 23, 39)) export var useFncOnly_m4_f4 = fncOnly_m4.foo(); ->useFncOnly_m4_f4 : fncOnly_m4.d +>useFncOnly_m4_f4 : fncOnly_m4.d, Symbol(useFncOnly_m4_f4, Decl(importDecl_1.ts, 27, 10)) >fncOnly_m4.foo() : fncOnly_m4.d ->fncOnly_m4.foo : () => fncOnly_m4.d ->fncOnly_m4 : typeof fncOnly_m4 ->foo : () => fncOnly_m4.d +>fncOnly_m4.foo : () => fncOnly_m4.d, Symbol(fncOnly_m4.foo, Decl(importDecl_require2.ts, 3, 16)) +>fncOnly_m4 : typeof fncOnly_m4, Symbol(fncOnly_m4, Decl(importDecl_1.ts, 23, 39)) +>foo : () => fncOnly_m4.d, Symbol(fncOnly_m4.foo, Decl(importDecl_require2.ts, 3, 16)) // only used privately no need to emit import private_m4 = require("importDecl_require3"); ->private_m4 : typeof private_m4 +>private_m4 : typeof private_m4, Symbol(private_m4, Decl(importDecl_1.ts, 27, 47)) export module usePrivate_m4_m1 { ->usePrivate_m4_m1 : typeof usePrivate_m4_m1 +>usePrivate_m4_m1 : typeof usePrivate_m4_m1, Symbol(usePrivate_m4_m1, Decl(importDecl_1.ts, 30, 51)) var x3 = private_m4.x; ->x3 : private_m4.d ->private_m4.x : private_m4.d ->private_m4 : typeof private_m4 ->x : private_m4.d +>x3 : private_m4.d, Symbol(x3, Decl(importDecl_1.ts, 32, 7)) +>private_m4.x : private_m4.d, Symbol(private_m4.x, Decl(importDecl_require3.ts, 3, 10)) +>private_m4 : typeof private_m4, Symbol(private_m4, Decl(importDecl_1.ts, 27, 47)) +>x : private_m4.d, Symbol(private_m4.x, Decl(importDecl_require3.ts, 3, 10)) var d3 = private_m4.d; ->d3 : typeof private_m4.d ->private_m4.d : typeof private_m4.d ->private_m4 : typeof private_m4 ->d : typeof private_m4.d +>d3 : typeof private_m4.d, Symbol(d3, Decl(importDecl_1.ts, 33, 7)) +>private_m4.d : typeof private_m4.d, Symbol(private_m4.d, Decl(importDecl_require3.ts, 0, 0)) +>private_m4 : typeof private_m4, Symbol(private_m4, Decl(importDecl_1.ts, 27, 47)) +>d : typeof private_m4.d, Symbol(private_m4.d, Decl(importDecl_require3.ts, 0, 0)) var f3 = private_m4.foo(); ->f3 : private_m4.d +>f3 : private_m4.d, Symbol(f3, Decl(importDecl_1.ts, 34, 7)) >private_m4.foo() : private_m4.d ->private_m4.foo : () => private_m4.d ->private_m4 : typeof private_m4 ->foo : () => private_m4.d +>private_m4.foo : () => private_m4.d, Symbol(private_m4.foo, Decl(importDecl_require3.ts, 3, 16)) +>private_m4 : typeof private_m4, Symbol(private_m4, Decl(importDecl_1.ts, 27, 47)) +>foo : () => private_m4.d, Symbol(private_m4.foo, Decl(importDecl_require3.ts, 3, 16)) } // Do not emit unused import import m5 = require("importDecl_require4"); ->m5 : typeof m5 +>m5 : typeof m5, Symbol(m5, Decl(importDecl_1.ts, 35, 1)) export var d = m5.foo2(); ->d : m4.d +>d : m4.d, Symbol(d, Decl(importDecl_1.ts, 39, 10)) >m5.foo2() : m4.d ->m5.foo2 : () => m4.d ->m5 : typeof m5 ->foo2 : () => m4.d +>m5.foo2 : () => m4.d, Symbol(m5.foo2, Decl(importDecl_require4.ts, 0, 42)) +>m5 : typeof m5, Symbol(m5, Decl(importDecl_1.ts, 35, 1)) +>foo2 : () => m4.d, Symbol(m5.foo2, Decl(importDecl_require4.ts, 0, 42)) // Do not emit multiple used import statements import multiImport_m4 = require("importDecl_require"); // Emit used ->multiImport_m4 : typeof m4 +>multiImport_m4 : typeof m4, Symbol(multiImport_m4, Decl(importDecl_1.ts, 39, 25)) export var useMultiImport_m4_x4 = multiImport_m4.x; ->useMultiImport_m4_x4 : m4.d ->multiImport_m4.x : m4.d ->multiImport_m4 : typeof m4 ->x : m4.d +>useMultiImport_m4_x4 : m4.d, Symbol(useMultiImport_m4_x4, Decl(importDecl_1.ts, 43, 10)) +>multiImport_m4.x : m4.d, Symbol(m4.x, Decl(importDecl_require.ts, 3, 10)) +>multiImport_m4 : typeof m4, Symbol(multiImport_m4, Decl(importDecl_1.ts, 39, 25)) +>x : m4.d, Symbol(m4.x, Decl(importDecl_require.ts, 3, 10)) export var useMultiImport_m4_d4 = multiImport_m4.d; ->useMultiImport_m4_d4 : typeof m4.d ->multiImport_m4.d : typeof m4.d ->multiImport_m4 : typeof m4 ->d : typeof m4.d +>useMultiImport_m4_d4 : typeof m4.d, Symbol(useMultiImport_m4_d4, Decl(importDecl_1.ts, 44, 10)) +>multiImport_m4.d : typeof m4.d, Symbol(m4.d, Decl(importDecl_require.ts, 0, 0)) +>multiImport_m4 : typeof m4, Symbol(multiImport_m4, Decl(importDecl_1.ts, 39, 25)) +>d : typeof m4.d, Symbol(m4.d, Decl(importDecl_require.ts, 0, 0)) export var useMultiImport_m4_f4 = multiImport_m4.foo(); ->useMultiImport_m4_f4 : m4.d +>useMultiImport_m4_f4 : m4.d, Symbol(useMultiImport_m4_f4, Decl(importDecl_1.ts, 45, 10)) >multiImport_m4.foo() : m4.d ->multiImport_m4.foo : () => m4.d ->multiImport_m4 : typeof m4 ->foo : () => m4.d +>multiImport_m4.foo : () => m4.d, Symbol(m4.foo, Decl(importDecl_require.ts, 3, 16)) +>multiImport_m4 : typeof m4, Symbol(multiImport_m4, Decl(importDecl_1.ts, 39, 25)) +>foo : () => m4.d, Symbol(m4.foo, Decl(importDecl_require.ts, 3, 16)) === tests/cases/compiler/importDecl_require.ts === export class d { ->d : d +>d : d, Symbol(d, Decl(importDecl_require.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(importDecl_require.ts, 0, 16)) } export var x: d; ->x : d ->d : d +>x : d, Symbol(x, Decl(importDecl_require.ts, 3, 10)) +>d : d, Symbol(d, Decl(importDecl_require.ts, 0, 0)) export function foo(): d { return null; } ->foo : () => d ->d : d +>foo : () => d, Symbol(foo, Decl(importDecl_require.ts, 3, 16)) +>d : d, Symbol(d, Decl(importDecl_require.ts, 0, 0)) +>null : null === tests/cases/compiler/importDecl_require1.ts === export class d { ->d : d +>d : d, Symbol(d, Decl(importDecl_require1.ts, 0, 0)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(importDecl_require1.ts, 0, 16)) } var x: d; ->x : d ->d : d +>x : d, Symbol(x, Decl(importDecl_require1.ts, 3, 3)) +>d : d, Symbol(d, Decl(importDecl_require1.ts, 0, 0)) export function foo(): d { return null; } ->foo : () => d ->d : d +>foo : () => d, Symbol(foo, Decl(importDecl_require1.ts, 3, 9)) +>d : d, Symbol(d, Decl(importDecl_require1.ts, 0, 0)) +>null : null === tests/cases/compiler/importDecl_require2.ts === export class d { ->d : d +>d : d, Symbol(d, Decl(importDecl_require2.ts, 0, 0)) baz: string; ->baz : string +>baz : string, Symbol(baz, Decl(importDecl_require2.ts, 0, 16)) } export var x: d; ->x : d ->d : d +>x : d, Symbol(x, Decl(importDecl_require2.ts, 3, 10)) +>d : d, Symbol(d, Decl(importDecl_require2.ts, 0, 0)) export function foo(): d { return null; } ->foo : () => d ->d : d +>foo : () => d, Symbol(foo, Decl(importDecl_require2.ts, 3, 16)) +>d : d, Symbol(d, Decl(importDecl_require2.ts, 0, 0)) +>null : null === tests/cases/compiler/importDecl_require3.ts === export class d { ->d : d +>d : d, Symbol(d, Decl(importDecl_require3.ts, 0, 0)) bing: string; ->bing : string +>bing : string, Symbol(bing, Decl(importDecl_require3.ts, 0, 16)) } export var x: d; ->x : d ->d : d +>x : d, Symbol(x, Decl(importDecl_require3.ts, 3, 10)) +>d : d, Symbol(d, Decl(importDecl_require3.ts, 0, 0)) export function foo(): d { return null; } ->foo : () => d ->d : d +>foo : () => d, Symbol(foo, Decl(importDecl_require3.ts, 3, 16)) +>d : d, Symbol(d, Decl(importDecl_require3.ts, 0, 0)) +>null : null === tests/cases/compiler/importDecl_require4.ts === import m4 = require("importDecl_require"); ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(importDecl_require4.ts, 0, 0)) export function foo2(): m4.d { return null; } ->foo2 : () => m4.d ->m4 : unknown ->d : m4.d +>foo2 : () => m4.d, Symbol(foo2, Decl(importDecl_require4.ts, 0, 42)) +>m4 : any, Symbol(m4, Decl(importDecl_require4.ts, 0, 0)) +>d : m4.d, Symbol(m4.d, Decl(importDecl_require.ts, 0, 0)) +>null : null diff --git a/tests/baselines/reference/importDeclWithExportModifierInAmbientContext.types b/tests/baselines/reference/importDeclWithExportModifierInAmbientContext.types index 6649b33bfe0..37cc251da7e 100644 --- a/tests/baselines/reference/importDeclWithExportModifierInAmbientContext.types +++ b/tests/baselines/reference/importDeclWithExportModifierInAmbientContext.types @@ -1,19 +1,19 @@ === tests/cases/compiler/importDeclWithExportModifierInAmbientContext.ts === declare module "m" { module x { ->x : unknown +>x : any, Symbol(x, Decl(importDeclWithExportModifierInAmbientContext.ts, 0, 20)) interface c { ->c : c +>c : c, Symbol(c, Decl(importDeclWithExportModifierInAmbientContext.ts, 1, 14)) } } export import a = x.c; ->a : unknown ->x : unknown ->c : a +>a : any, Symbol(a, Decl(importDeclWithExportModifierInAmbientContext.ts, 4, 5)) +>x : any, Symbol(x, Decl(importDeclWithExportModifierInAmbientContext.ts, 0, 20)) +>c : a, Symbol(a, Decl(importDeclWithExportModifierInAmbientContext.ts, 1, 14)) var b: a; ->b : a ->a : a +>b : a, Symbol(b, Decl(importDeclWithExportModifierInAmbientContext.ts, 6, 7)) +>a : a, Symbol(a, Decl(importDeclWithExportModifierInAmbientContext.ts, 4, 5)) } diff --git a/tests/baselines/reference/importDeclarationUsedAsTypeQuery.types b/tests/baselines/reference/importDeclarationUsedAsTypeQuery.types index 2f449c2aa87..7884f2c2fce 100644 --- a/tests/baselines/reference/importDeclarationUsedAsTypeQuery.types +++ b/tests/baselines/reference/importDeclarationUsedAsTypeQuery.types @@ -1,17 +1,17 @@ === tests/cases/compiler/importDeclarationUsedAsTypeQuery_1.ts === /// import a = require('importDeclarationUsedAsTypeQuery_require'); ->a : typeof a +>a : typeof a, Symbol(a, Decl(importDeclarationUsedAsTypeQuery_1.ts, 0, 0)) export var x: typeof a; ->x : typeof a ->a : typeof a +>x : typeof a, Symbol(x, Decl(importDeclarationUsedAsTypeQuery_1.ts, 2, 10)) +>a : typeof a, Symbol(a, Decl(importDeclarationUsedAsTypeQuery_1.ts, 0, 0)) === tests/cases/compiler/importDeclarationUsedAsTypeQuery_require.ts === export class B { ->B : B +>B : B, Symbol(B, Decl(importDeclarationUsedAsTypeQuery_require.ts, 0, 0)) id: number; ->id : number +>id : number, Symbol(id, Decl(importDeclarationUsedAsTypeQuery_require.ts, 0, 16)) } diff --git a/tests/baselines/reference/importImportOnlyModule.types b/tests/baselines/reference/importImportOnlyModule.types index 741d1b24859..3d485920b8a 100644 --- a/tests/baselines/reference/importImportOnlyModule.types +++ b/tests/baselines/reference/importImportOnlyModule.types @@ -1,26 +1,29 @@ === tests/cases/conformance/externalModules/foo_2.ts === import foo = require("./foo_1"); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_2.ts, 0, 0)) var x = foo; // Cause a runtime dependency ->x : typeof foo ->foo : typeof foo +>x : typeof foo, Symbol(x, Decl(foo_2.ts, 1, 3)) +>foo : typeof foo, Symbol(foo, Decl(foo_2.ts, 0, 0)) === tests/cases/conformance/externalModules/foo_0.ts === export class C1 { ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(foo_0.ts, 0, 0)) m1 = 42; ->m1 : number +>m1 : number, Symbol(m1, Decl(foo_0.ts, 0, 17)) +>42 : number static s1 = true; ->s1 : boolean +>s1 : boolean, Symbol(C1.s1, Decl(foo_0.ts, 1, 9)) +>true : boolean } === tests/cases/conformance/externalModules/foo_1.ts === import c1 = require('./foo_0'); // Makes this an external module ->c1 : typeof c1 +>c1 : typeof c1, Symbol(c1, Decl(foo_1.ts, 0, 0)) var answer = 42; // No exports ->answer : number +>answer : number, Symbol(answer, Decl(foo_1.ts, 1, 3)) +>42 : number diff --git a/tests/baselines/reference/importInTypePosition.types b/tests/baselines/reference/importInTypePosition.types index 163ae1d3a62..66bb2939a3f 100644 --- a/tests/baselines/reference/importInTypePosition.types +++ b/tests/baselines/reference/importInTypePosition.types @@ -1,49 +1,53 @@ === tests/cases/compiler/importInTypePosition.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(importInTypePosition.ts, 0, 0)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(importInTypePosition.ts, 0, 10)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(importInTypePosition.ts, 2, 20)) +>y : number, Symbol(y, Decl(importInTypePosition.ts, 2, 37)) } export var Origin = new Point(0, 0); ->Origin : Point +>Origin : Point, Symbol(Origin, Decl(importInTypePosition.ts, 4, 14)) >new Point(0, 0) : Point ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(importInTypePosition.ts, 0, 10)) +>0 : number +>0 : number } // no code gen expected module B { ->B : unknown +>B : any, Symbol(B, Decl(importInTypePosition.ts, 5, 1)) import a = A; //Error generates 'var = ;' ->a : typeof a ->A : typeof a +>a : typeof a, Symbol(a, Decl(importInTypePosition.ts, 8, 10)) +>A : typeof a, Symbol(a, Decl(importInTypePosition.ts, 0, 0)) } // no code gen expected module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(importInTypePosition.ts, 11, 1)) import a = A; //Error generates 'var = ;' ->a : typeof a ->A : typeof a +>a : typeof a, Symbol(a, Decl(importInTypePosition.ts, 13, 10)) +>A : typeof a, Symbol(a, Decl(importInTypePosition.ts, 0, 0)) var m: typeof a; ->m : typeof a ->a : typeof a +>m : typeof a, Symbol(m, Decl(importInTypePosition.ts, 16, 7)) +>a : typeof a, Symbol(a, Decl(importInTypePosition.ts, 13, 10)) var p: a.Point; ->p : a.Point ->a : unknown ->Point : a.Point +>p : a.Point, Symbol(p, Decl(importInTypePosition.ts, 17, 7), Decl(importInTypePosition.ts, 18, 7)) +>a : any, Symbol(a, Decl(importInTypePosition.ts, 13, 10)) +>Point : a.Point, Symbol(a.Point, Decl(importInTypePosition.ts, 0, 10)) var p = { x: 0, y: 0 }; ->p : a.Point +>p : a.Point, Symbol(p, Decl(importInTypePosition.ts, 17, 7), Decl(importInTypePosition.ts, 18, 7)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(importInTypePosition.ts, 18, 13)) +>0 : number +>y : number, Symbol(y, Decl(importInTypePosition.ts, 18, 19)) +>0 : number } diff --git a/tests/baselines/reference/importOnAliasedIdentifiers.types b/tests/baselines/reference/importOnAliasedIdentifiers.types index 7772e909c99..186ef8db5d7 100644 --- a/tests/baselines/reference/importOnAliasedIdentifiers.types +++ b/tests/baselines/reference/importOnAliasedIdentifiers.types @@ -1,33 +1,33 @@ === tests/cases/compiler/importOnAliasedIdentifiers.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(importOnAliasedIdentifiers.ts, 0, 0)) export interface X { s: string } ->X : X ->s : string +>X : X, Symbol(X, Decl(importOnAliasedIdentifiers.ts, 0, 10), Decl(importOnAliasedIdentifiers.ts, 2, 14)) +>s : string, Symbol(s, Decl(importOnAliasedIdentifiers.ts, 1, 24)) export var X: X; ->X : X ->X : X +>X : X, Symbol(X, Decl(importOnAliasedIdentifiers.ts, 0, 10), Decl(importOnAliasedIdentifiers.ts, 2, 14)) +>X : X, Symbol(X, Decl(importOnAliasedIdentifiers.ts, 0, 10), Decl(importOnAliasedIdentifiers.ts, 2, 14)) } module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(importOnAliasedIdentifiers.ts, 3, 1)) interface A { n: number } ->A : A ->n : number +>A : A, Symbol(A, Decl(importOnAliasedIdentifiers.ts, 4, 10)) +>n : number, Symbol(n, Decl(importOnAliasedIdentifiers.ts, 5, 17)) import Y = A; // Alias only for module A ->Y : typeof Y ->A : typeof Y +>Y : typeof Y, Symbol(Y, Decl(importOnAliasedIdentifiers.ts, 5, 29)) +>A : typeof Y, Symbol(Y, Decl(importOnAliasedIdentifiers.ts, 0, 0)) import Z = A.X; // Alias for both type and member A.X ->Z : Y.X ->A : typeof Y ->X : Y.X +>Z : Y.X, Symbol(Z, Decl(importOnAliasedIdentifiers.ts, 6, 17)) +>A : typeof Y, Symbol(Y, Decl(importOnAliasedIdentifiers.ts, 0, 0)) +>X : Y.X, Symbol(Y.X, Decl(importOnAliasedIdentifiers.ts, 0, 10), Decl(importOnAliasedIdentifiers.ts, 2, 14)) var v: Z = Z; ->v : Y.X ->Z : Y.X ->Z : Y.X +>v : Y.X, Symbol(v, Decl(importOnAliasedIdentifiers.ts, 8, 7)) +>Z : Y.X, Symbol(Z, Decl(importOnAliasedIdentifiers.ts, 6, 17)) +>Z : Y.X, Symbol(Z, Decl(importOnAliasedIdentifiers.ts, 6, 17)) } diff --git a/tests/baselines/reference/importShadowsGlobalName.types b/tests/baselines/reference/importShadowsGlobalName.types index a1f1106f1b8..7183846a1d2 100644 --- a/tests/baselines/reference/importShadowsGlobalName.types +++ b/tests/baselines/reference/importShadowsGlobalName.types @@ -1,19 +1,19 @@ === tests/cases/compiler/Bar.ts === import Error = require('Foo'); ->Error : typeof Error +>Error : typeof Error, Symbol(Error, Decl(Bar.ts, 0, 0)) class Bar extends Error {} ->Bar : Bar ->Error : Error +>Bar : Bar, Symbol(Bar, Decl(Bar.ts, 0, 30)) +>Error : Error, Symbol(Error, Decl(Bar.ts, 0, 0)) export = Bar; ->Bar : Bar +>Bar : Bar, Symbol(Bar, Decl(Bar.ts, 0, 30)) === tests/cases/compiler/Foo.ts === class Foo {} ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(Foo.ts, 0, 0)) export = Foo; ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(Foo.ts, 0, 0)) diff --git a/tests/baselines/reference/importStatements.types b/tests/baselines/reference/importStatements.types index 5980a142f34..262b8b3fb4c 100644 --- a/tests/baselines/reference/importStatements.types +++ b/tests/baselines/reference/importStatements.types @@ -1,93 +1,99 @@ === tests/cases/conformance/internalModules/codeGeneration/importStatements.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(importStatements.ts, 0, 0)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(importStatements.ts, 0, 10)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(importStatements.ts, 2, 20)) +>y : number, Symbol(y, Decl(importStatements.ts, 2, 37)) } export var Origin = new Point(0, 0); ->Origin : Point +>Origin : Point, Symbol(Origin, Decl(importStatements.ts, 5, 14)) >new Point(0, 0) : Point ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(importStatements.ts, 0, 10)) +>0 : number +>0 : number } // no code gen expected module B { ->B : unknown +>B : any, Symbol(B, Decl(importStatements.ts, 6, 1)) import a = A; //Error generates 'var = ;' ->a : typeof a ->A : typeof a +>a : typeof a, Symbol(a, Decl(importStatements.ts, 9, 10)) +>A : typeof a, Symbol(a, Decl(importStatements.ts, 0, 0)) } // no code gen expected module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(importStatements.ts, 11, 1)) import a = A; //Error generates 'var = ;' ->a : typeof a ->A : typeof a +>a : typeof a, Symbol(a, Decl(importStatements.ts, 14, 10)) +>A : typeof a, Symbol(a, Decl(importStatements.ts, 0, 0)) var m: typeof a; ->m : typeof a ->a : typeof a +>m : typeof a, Symbol(m, Decl(importStatements.ts, 16, 7)) +>a : typeof a, Symbol(a, Decl(importStatements.ts, 14, 10)) var p: a.Point; ->p : a.Point ->a : unknown ->Point : a.Point +>p : a.Point, Symbol(p, Decl(importStatements.ts, 17, 7), Decl(importStatements.ts, 18, 7)) +>a : any, Symbol(a, Decl(importStatements.ts, 14, 10)) +>Point : a.Point, Symbol(a.Point, Decl(importStatements.ts, 0, 10)) var p = {x:0, y:0 }; ->p : a.Point +>p : a.Point, Symbol(p, Decl(importStatements.ts, 17, 7), Decl(importStatements.ts, 18, 7)) >{x:0, y:0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(importStatements.ts, 18, 13)) +>0 : number +>y : number, Symbol(y, Decl(importStatements.ts, 18, 17)) +>0 : number } // code gen expected module D { ->D : typeof D +>D : typeof D, Symbol(D, Decl(importStatements.ts, 19, 1)) import a = A; ->a : typeof a ->A : typeof a +>a : typeof a, Symbol(a, Decl(importStatements.ts, 22, 10)) +>A : typeof a, Symbol(a, Decl(importStatements.ts, 0, 0)) var p = new a.Point(1, 1); ->p : a.Point +>p : a.Point, Symbol(p, Decl(importStatements.ts, 25, 7)) >new a.Point(1, 1) : a.Point ->a.Point : typeof a.Point ->a : typeof a ->Point : typeof a.Point +>a.Point : typeof a.Point, Symbol(a.Point, Decl(importStatements.ts, 0, 10)) +>a : typeof a, Symbol(a, Decl(importStatements.ts, 22, 10)) +>Point : typeof a.Point, Symbol(a.Point, Decl(importStatements.ts, 0, 10)) +>1 : number +>1 : number } module E { ->E : typeof E +>E : typeof E, Symbol(E, Decl(importStatements.ts, 26, 1)) import a = A; ->a : typeof a ->A : typeof a +>a : typeof a, Symbol(a, Decl(importStatements.ts, 28, 10)) +>A : typeof a, Symbol(a, Decl(importStatements.ts, 0, 0)) export function xDist(x: a.Point) { ->xDist : (x: a.Point) => number ->x : a.Point ->a : unknown ->Point : a.Point +>xDist : (x: a.Point) => number, Symbol(xDist, Decl(importStatements.ts, 29, 17)) +>x : a.Point, Symbol(x, Decl(importStatements.ts, 30, 26)) +>a : any, Symbol(a, Decl(importStatements.ts, 28, 10)) +>Point : a.Point, Symbol(a.Point, Decl(importStatements.ts, 0, 10)) return (a.Origin.x - x.x); >(a.Origin.x - x.x) : number >a.Origin.x - x.x : number ->a.Origin.x : number ->a.Origin : a.Point ->a : typeof a ->Origin : a.Point ->x : number ->x.x : number ->x : a.Point ->x : number +>a.Origin.x : number, Symbol(a.Point.x, Decl(importStatements.ts, 2, 20)) +>a.Origin : a.Point, Symbol(a.Origin, Decl(importStatements.ts, 5, 14)) +>a : typeof a, Symbol(a, Decl(importStatements.ts, 28, 10)) +>Origin : a.Point, Symbol(a.Origin, Decl(importStatements.ts, 5, 14)) +>x : number, Symbol(a.Point.x, Decl(importStatements.ts, 2, 20)) +>x.x : number, Symbol(a.Point.x, Decl(importStatements.ts, 2, 20)) +>x : a.Point, Symbol(x, Decl(importStatements.ts, 30, 26)) +>x : number, Symbol(a.Point.x, Decl(importStatements.ts, 2, 20)) } } diff --git a/tests/baselines/reference/importUsedInExtendsList1.types b/tests/baselines/reference/importUsedInExtendsList1.types index 623b14e36aa..af9bff9449b 100644 --- a/tests/baselines/reference/importUsedInExtendsList1.types +++ b/tests/baselines/reference/importUsedInExtendsList1.types @@ -1,25 +1,26 @@ === tests/cases/compiler/importUsedInExtendsList1_1.ts === /// import foo = require('importUsedInExtendsList1_require'); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(importUsedInExtendsList1_1.ts, 0, 0)) class Sub extends foo.Super { } ->Sub : Sub ->foo : typeof foo ->Super : foo.Super +>Sub : Sub, Symbol(Sub, Decl(importUsedInExtendsList1_1.ts, 1, 57)) +>foo.Super : any, Symbol(foo.Super, Decl(importUsedInExtendsList1_require.ts, 0, 0)) +>foo : typeof foo, Symbol(foo, Decl(importUsedInExtendsList1_1.ts, 0, 0)) +>Super : foo.Super, Symbol(foo.Super, Decl(importUsedInExtendsList1_require.ts, 0, 0)) var s: Sub; ->s : Sub ->Sub : Sub +>s : Sub, Symbol(s, Decl(importUsedInExtendsList1_1.ts, 3, 3)) +>Sub : Sub, Symbol(Sub, Decl(importUsedInExtendsList1_1.ts, 1, 57)) var r: string = s.foo; ->r : string ->s.foo : string ->s : Sub ->foo : string +>r : string, Symbol(r, Decl(importUsedInExtendsList1_1.ts, 4, 3)) +>s.foo : string, Symbol(foo.Super.foo, Decl(importUsedInExtendsList1_require.ts, 0, 20)) +>s : Sub, Symbol(s, Decl(importUsedInExtendsList1_1.ts, 3, 3)) +>foo : string, Symbol(foo.Super.foo, Decl(importUsedInExtendsList1_require.ts, 0, 20)) === tests/cases/compiler/importUsedInExtendsList1_require.ts === export class Super { foo: string; } ->Super : Super ->foo : string +>Super : Super, Symbol(Super, Decl(importUsedInExtendsList1_require.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(importUsedInExtendsList1_require.ts, 0, 20)) diff --git a/tests/baselines/reference/import_reference-exported-alias.types b/tests/baselines/reference/import_reference-exported-alias.types index b935fb16cf2..c098a5413c6 100644 --- a/tests/baselines/reference/import_reference-exported-alias.types +++ b/tests/baselines/reference/import_reference-exported-alias.types @@ -1,48 +1,49 @@ === tests/cases/compiler/file2.ts === import appJs = require("file1"); ->appJs : typeof appJs +>appJs : typeof appJs, Symbol(appJs, Decl(file2.ts, 0, 0)) import Services = appJs.Services; ->Services : typeof appJs.Services ->appJs : typeof appJs ->Services : typeof appJs.Services +>Services : typeof appJs.Services, Symbol(Services, Decl(file2.ts, 0, 32)) +>appJs : typeof appJs, Symbol(appJs, Decl(file1.ts, 0, 0)) +>Services : typeof appJs.Services, Symbol(appJs.Services, Decl(file1.ts, 0, 12)) import UserServices = Services.UserServices; ->UserServices : typeof Services.UserServices ->Services : typeof appJs.Services ->UserServices : Services.UserServices +>UserServices : typeof Services.UserServices, Symbol(UserServices, Decl(file2.ts, 1, 33)) +>Services : typeof appJs.Services, Symbol(appJs.Services, Decl(file1.ts, 0, 12)) +>UserServices : Services.UserServices, Symbol(Services.UserServices, Decl(file1.ts, 1, 28)) var x = new UserServices().getUserName(); ->x : string +>x : string, Symbol(x, Decl(file2.ts, 3, 3)) >new UserServices().getUserName() : string ->new UserServices().getUserName : () => string +>new UserServices().getUserName : () => string, Symbol(Services.UserServices.getUserName, Decl(file1.ts, 2, 35)) >new UserServices() : Services.UserServices ->UserServices : typeof Services.UserServices ->getUserName : () => string +>UserServices : typeof Services.UserServices, Symbol(UserServices, Decl(file2.ts, 1, 33)) +>getUserName : () => string, Symbol(Services.UserServices.getUserName, Decl(file1.ts, 2, 35)) === tests/cases/compiler/file1.ts === module App { ->App : typeof App +>App : typeof App, Symbol(App, Decl(file1.ts, 0, 0)) export module Services { ->Services : typeof Services +>Services : typeof Services, Symbol(Services, Decl(file1.ts, 0, 12)) export class UserServices { ->UserServices : UserServices +>UserServices : UserServices, Symbol(UserServices, Decl(file1.ts, 1, 28)) public getUserName(): string { ->getUserName : () => string +>getUserName : () => string, Symbol(getUserName, Decl(file1.ts, 2, 35)) return "Bill Gates"; +>"Bill Gates" : string } } } } import Mod = App; ->Mod : typeof App ->App : typeof App +>Mod : typeof App, Symbol(Mod, Decl(file1.ts, 8, 1)) +>App : typeof App, Symbol(App, Decl(file1.ts, 0, 0)) export = Mod; ->Mod : typeof App +>Mod : typeof App, Symbol(Mod, Decl(file1.ts, 8, 1)) diff --git a/tests/baselines/reference/import_reference-to-type-alias.types b/tests/baselines/reference/import_reference-to-type-alias.types index e1da40b5bb4..6a77d825f47 100644 --- a/tests/baselines/reference/import_reference-to-type-alias.types +++ b/tests/baselines/reference/import_reference-to-type-alias.types @@ -1,37 +1,38 @@ === tests/cases/compiler/file2.ts === import appJs = require("file1"); ->appJs : typeof appJs +>appJs : typeof appJs, Symbol(appJs, Decl(file2.ts, 0, 0)) import Services = appJs.App.Services; ->Services : typeof Services ->appJs : typeof appJs ->App : typeof appJs.App ->Services : typeof Services +>Services : typeof Services, Symbol(Services, Decl(file2.ts, 0, 32)) +>appJs : typeof appJs, Symbol(appJs, Decl(file1.ts, 0, 0)) +>App : typeof appJs.App, Symbol(appJs.App, Decl(file1.ts, 0, 0)) +>Services : typeof Services, Symbol(Services, Decl(file1.ts, 0, 19)) var x = new Services.UserServices().getUserName(); ->x : string +>x : string, Symbol(x, Decl(file2.ts, 2, 3)) >new Services.UserServices().getUserName() : string ->new Services.UserServices().getUserName : () => string +>new Services.UserServices().getUserName : () => string, Symbol(Services.UserServices.getUserName, Decl(file1.ts, 2, 35)) >new Services.UserServices() : Services.UserServices ->Services.UserServices : typeof Services.UserServices ->Services : typeof Services ->UserServices : typeof Services.UserServices ->getUserName : () => string +>Services.UserServices : typeof Services.UserServices, Symbol(Services.UserServices, Decl(file1.ts, 1, 28)) +>Services : typeof Services, Symbol(Services, Decl(file2.ts, 0, 32)) +>UserServices : typeof Services.UserServices, Symbol(Services.UserServices, Decl(file1.ts, 1, 28)) +>getUserName : () => string, Symbol(Services.UserServices.getUserName, Decl(file1.ts, 2, 35)) === tests/cases/compiler/file1.ts === export module App { ->App : typeof App +>App : typeof App, Symbol(App, Decl(file1.ts, 0, 0)) export module Services { ->Services : typeof Services +>Services : typeof Services, Symbol(Services, Decl(file1.ts, 0, 19)) export class UserServices { ->UserServices : UserServices +>UserServices : UserServices, Symbol(UserServices, Decl(file1.ts, 1, 28)) public getUserName(): string { ->getUserName : () => string +>getUserName : () => string, Symbol(getUserName, Decl(file1.ts, 2, 35)) return "Bill Gates"; +>"Bill Gates" : string } } } diff --git a/tests/baselines/reference/import_unneeded-require-when-referenecing-aliased-type-throug-array.types b/tests/baselines/reference/import_unneeded-require-when-referenecing-aliased-type-throug-array.types index 0dfe8ca336b..19d6c23df23 100644 --- a/tests/baselines/reference/import_unneeded-require-when-referenecing-aliased-type-throug-array.types +++ b/tests/baselines/reference/import_unneeded-require-when-referenecing-aliased-type-throug-array.types @@ -1,28 +1,29 @@ === tests/cases/compiler/a.ts === /// import ITest = require('ITest'); ->ITest : unknown +>ITest : any, Symbol(ITest, Decl(a.ts, 0, 0)) var testData: ITest[]; ->testData : ITest[] ->ITest : ITest +>testData : ITest[], Symbol(testData, Decl(a.ts, 2, 3)) +>ITest : ITest, Symbol(ITest, Decl(a.ts, 0, 0)) var p = testData[0].name; ->p : string ->testData[0].name : string +>p : string, Symbol(p, Decl(a.ts, 3, 3)) +>testData[0].name : string, Symbol(ITest.name, Decl(b.ts, 1, 20)) >testData[0] : ITest ->testData : ITest[] ->name : string +>testData : ITest[], Symbol(testData, Decl(a.ts, 2, 3)) +>0 : number +>name : string, Symbol(ITest.name, Decl(b.ts, 1, 20)) === tests/cases/compiler/b.ts === declare module "ITest" { interface Name { ->Name : Name +>Name : Name, Symbol(Name, Decl(b.ts, 0, 24)) name: string; ->name : string +>name : string, Symbol(name, Decl(b.ts, 1, 20)) } export = Name; ->Name : Name +>Name : Name, Symbol(Name, Decl(b.ts, 0, 24)) } diff --git a/tests/baselines/reference/import_var-referencing-an-imported-module-alias.types b/tests/baselines/reference/import_var-referencing-an-imported-module-alias.types index 137b339347a..1dc44c8f4ad 100644 --- a/tests/baselines/reference/import_var-referencing-an-imported-module-alias.types +++ b/tests/baselines/reference/import_var-referencing-an-imported-module-alias.types @@ -1,20 +1,20 @@ === tests/cases/compiler/consumer.ts === import host = require("host"); ->host : typeof host +>host : typeof host, Symbol(host, Decl(consumer.ts, 0, 0)) var hostVar = host; ->hostVar : typeof host ->host : typeof host +>hostVar : typeof host, Symbol(hostVar, Decl(consumer.ts, 2, 3)) +>host : typeof host, Symbol(host, Decl(consumer.ts, 0, 0)) var v = new hostVar.Host(); ->v : host.Host +>v : host.Host, Symbol(v, Decl(consumer.ts, 3, 3)) >new hostVar.Host() : host.Host ->hostVar.Host : typeof host.Host ->hostVar : typeof host ->Host : typeof host.Host +>hostVar.Host : typeof host.Host, Symbol(host.Host, Decl(host.ts, 0, 0)) +>hostVar : typeof host, Symbol(hostVar, Decl(consumer.ts, 2, 3)) +>Host : typeof host.Host, Symbol(host.Host, Decl(host.ts, 0, 0)) === tests/cases/compiler/host.ts === export class Host { } ->Host : Host +>Host : Host, Symbol(Host, Decl(host.ts, 0, 0)) diff --git a/tests/baselines/reference/importedAliasesInTypePositions.types b/tests/baselines/reference/importedAliasesInTypePositions.types index ed78188d275..82e02f89591 100644 --- a/tests/baselines/reference/importedAliasesInTypePositions.types +++ b/tests/baselines/reference/importedAliasesInTypePositions.types @@ -1,39 +1,39 @@ === tests/cases/compiler/file2.ts === import RT_ALIAS = require("file1"); ->RT_ALIAS : typeof RT_ALIAS +>RT_ALIAS : typeof RT_ALIAS, Symbol(RT_ALIAS, Decl(file2.ts, 0, 0)) import ReferredTo = RT_ALIAS.elaborate.nested.mod.name.ReferredTo; ->ReferredTo : typeof ReferredTo ->RT_ALIAS : typeof RT_ALIAS ->elaborate : typeof RT_ALIAS.elaborate ->nested : typeof RT_ALIAS.elaborate.nested ->mod : typeof RT_ALIAS.elaborate.nested.mod ->name : typeof RT_ALIAS.elaborate.nested.mod.name ->ReferredTo : ReferredTo +>ReferredTo : typeof ReferredTo, Symbol(ReferredTo, Decl(file2.ts, 0, 35)) +>RT_ALIAS : typeof RT_ALIAS, Symbol(RT_ALIAS, Decl(file1.ts, 0, 0)) +>elaborate : typeof RT_ALIAS.elaborate, Symbol(RT_ALIAS.elaborate, Decl(file1.ts, 0, 0)) +>nested : typeof RT_ALIAS.elaborate.nested, Symbol(RT_ALIAS.elaborate.nested, Decl(file1.ts, 0, 24)) +>mod : typeof RT_ALIAS.elaborate.nested.mod, Symbol(RT_ALIAS.elaborate.nested.mod, Decl(file1.ts, 0, 31)) +>name : typeof RT_ALIAS.elaborate.nested.mod.name, Symbol(RT_ALIAS.elaborate.nested.mod.name, Decl(file1.ts, 0, 35)) +>ReferredTo : ReferredTo, Symbol(ReferredTo, Decl(file1.ts, 0, 41)) export module ImportingModule { ->ImportingModule : typeof ImportingModule +>ImportingModule : typeof ImportingModule, Symbol(ImportingModule, Decl(file2.ts, 1, 66)) class UsesReferredType { ->UsesReferredType : UsesReferredType +>UsesReferredType : UsesReferredType, Symbol(UsesReferredType, Decl(file2.ts, 3, 31)) constructor(private referred: ReferredTo) { } ->referred : ReferredTo ->ReferredTo : ReferredTo +>referred : ReferredTo, Symbol(referred, Decl(file2.ts, 5, 20)) +>ReferredTo : ReferredTo, Symbol(ReferredTo, Decl(file2.ts, 0, 35)) } } === tests/cases/compiler/file1.ts === export module elaborate.nested.mod.name { ->elaborate : typeof elaborate ->nested : typeof nested ->mod : typeof mod ->name : typeof name +>elaborate : typeof elaborate, Symbol(elaborate, Decl(file1.ts, 0, 0)) +>nested : typeof nested, Symbol(nested, Decl(file1.ts, 0, 24)) +>mod : typeof mod, Symbol(mod, Decl(file1.ts, 0, 31)) +>name : typeof name, Symbol(name, Decl(file1.ts, 0, 35)) export class ReferredTo { ->ReferredTo : ReferredTo +>ReferredTo : ReferredTo, Symbol(ReferredTo, Decl(file1.ts, 0, 41)) doSomething(): void { ->doSomething : () => void +>doSomething : () => void, Symbol(doSomething, Decl(file1.ts, 1, 29)) } } } diff --git a/tests/baselines/reference/importedModuleClassNameClash.types b/tests/baselines/reference/importedModuleClassNameClash.types index 28cdee34167..260afcd2917 100644 --- a/tests/baselines/reference/importedModuleClassNameClash.types +++ b/tests/baselines/reference/importedModuleClassNameClash.types @@ -1,11 +1,11 @@ === tests/cases/compiler/importedModuleClassNameClash.ts === import foo = m1; ->foo : typeof foo ->m1 : unknown +>foo : typeof foo, Symbol(foo, Decl(importedModuleClassNameClash.ts, 0, 0), Decl(importedModuleClassNameClash.ts, 2, 20)) +>m1 : any, Symbol(foo, Decl(importedModuleClassNameClash.ts, 0, 16)) export module m1 { } ->m1 : unknown +>m1 : any, Symbol(foo, Decl(importedModuleClassNameClash.ts, 0, 16)) class foo { } ->foo : foo +>foo : foo, Symbol(foo, Decl(importedModuleClassNameClash.ts, 0, 0), Decl(importedModuleClassNameClash.ts, 2, 20)) diff --git a/tests/baselines/reference/inOperatorWithFunction.types b/tests/baselines/reference/inOperatorWithFunction.types index 9de7663011d..1e4ddc120ab 100644 --- a/tests/baselines/reference/inOperatorWithFunction.types +++ b/tests/baselines/reference/inOperatorWithFunction.types @@ -1,13 +1,15 @@ === tests/cases/compiler/inOperatorWithFunction.ts === var fn = function (val: boolean) { return val; } ->fn : (val: boolean) => boolean +>fn : (val: boolean) => boolean, Symbol(fn, Decl(inOperatorWithFunction.ts, 0, 3)) >function (val: boolean) { return val; } : (val: boolean) => boolean ->val : boolean ->val : boolean +>val : boolean, Symbol(val, Decl(inOperatorWithFunction.ts, 0, 19)) +>val : boolean, Symbol(val, Decl(inOperatorWithFunction.ts, 0, 19)) fn("a" in { "a": true }); >fn("a" in { "a": true }) : boolean ->fn : (val: boolean) => boolean +>fn : (val: boolean) => boolean, Symbol(fn, Decl(inOperatorWithFunction.ts, 0, 3)) >"a" in { "a": true } : boolean +>"a" : string >{ "a": true } : { "a": boolean; } +>true : boolean diff --git a/tests/baselines/reference/inOperatorWithGeneric.types b/tests/baselines/reference/inOperatorWithGeneric.types index 2048e11082a..88963ac8c5b 100644 --- a/tests/baselines/reference/inOperatorWithGeneric.types +++ b/tests/baselines/reference/inOperatorWithGeneric.types @@ -1,16 +1,16 @@ === tests/cases/compiler/inOperatorWithGeneric.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(inOperatorWithGeneric.ts, 0, 0)) +>T : T, Symbol(T, Decl(inOperatorWithGeneric.ts, 0, 8)) foo(x:T) { ->foo : (x: T) => void ->x : T ->T : T +>foo : (x: T) => void, Symbol(foo, Decl(inOperatorWithGeneric.ts, 0, 12)) +>x : T, Symbol(x, Decl(inOperatorWithGeneric.ts, 1, 8)) +>T : T, Symbol(T, Decl(inOperatorWithGeneric.ts, 0, 8)) for (var p in x) { ->p : any ->x : T +>p : any, Symbol(p, Decl(inOperatorWithGeneric.ts, 2, 16)) +>x : T, Symbol(x, Decl(inOperatorWithGeneric.ts, 1, 8)) } } } diff --git a/tests/baselines/reference/inOperatorWithValidOperands.types b/tests/baselines/reference/inOperatorWithValidOperands.types index 27ba22055bf..4c21247965f 100644 --- a/tests/baselines/reference/inOperatorWithValidOperands.types +++ b/tests/baselines/reference/inOperatorWithValidOperands.types @@ -1,106 +1,108 @@ === tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithValidOperands.ts === var x: any; ->x : any +>x : any, Symbol(x, Decl(inOperatorWithValidOperands.ts, 0, 3)) // valid left operands // the left operand is required to be of type Any, the String primitive type, or the Number primitive type var a1: string; ->a1 : string +>a1 : string, Symbol(a1, Decl(inOperatorWithValidOperands.ts, 4, 3)) var a2: number; ->a2 : number +>a2 : number, Symbol(a2, Decl(inOperatorWithValidOperands.ts, 5, 3)) var ra1 = x in x; ->ra1 : boolean +>ra1 : boolean, Symbol(ra1, Decl(inOperatorWithValidOperands.ts, 7, 3)) >x in x : boolean ->x : any ->x : any +>x : any, Symbol(x, Decl(inOperatorWithValidOperands.ts, 0, 3)) +>x : any, Symbol(x, Decl(inOperatorWithValidOperands.ts, 0, 3)) var ra2 = a1 in x; ->ra2 : boolean +>ra2 : boolean, Symbol(ra2, Decl(inOperatorWithValidOperands.ts, 8, 3)) >a1 in x : boolean ->a1 : string ->x : any +>a1 : string, Symbol(a1, Decl(inOperatorWithValidOperands.ts, 4, 3)) +>x : any, Symbol(x, Decl(inOperatorWithValidOperands.ts, 0, 3)) var ra3 = a2 in x; ->ra3 : boolean +>ra3 : boolean, Symbol(ra3, Decl(inOperatorWithValidOperands.ts, 9, 3)) >a2 in x : boolean ->a2 : number ->x : any +>a2 : number, Symbol(a2, Decl(inOperatorWithValidOperands.ts, 5, 3)) +>x : any, Symbol(x, Decl(inOperatorWithValidOperands.ts, 0, 3)) var ra4 = '' in x; ->ra4 : boolean +>ra4 : boolean, Symbol(ra4, Decl(inOperatorWithValidOperands.ts, 10, 3)) >'' in x : boolean ->x : any +>'' : string +>x : any, Symbol(x, Decl(inOperatorWithValidOperands.ts, 0, 3)) var ra5 = 0 in x; ->ra5 : boolean +>ra5 : boolean, Symbol(ra5, Decl(inOperatorWithValidOperands.ts, 11, 3)) >0 in x : boolean ->x : any +>0 : number +>x : any, Symbol(x, Decl(inOperatorWithValidOperands.ts, 0, 3)) // valid right operands // the right operand is required to be of type Any, an object type, or a type parameter type var b1: {}; ->b1 : {} +>b1 : {}, Symbol(b1, Decl(inOperatorWithValidOperands.ts, 15, 3)) var rb1 = x in b1; ->rb1 : boolean +>rb1 : boolean, Symbol(rb1, Decl(inOperatorWithValidOperands.ts, 17, 3)) >x in b1 : boolean ->x : any ->b1 : {} +>x : any, Symbol(x, Decl(inOperatorWithValidOperands.ts, 0, 3)) +>b1 : {}, Symbol(b1, Decl(inOperatorWithValidOperands.ts, 15, 3)) var rb2 = x in {}; ->rb2 : boolean +>rb2 : boolean, Symbol(rb2, Decl(inOperatorWithValidOperands.ts, 18, 3)) >x in {} : boolean ->x : any +>x : any, Symbol(x, Decl(inOperatorWithValidOperands.ts, 0, 3)) >{} : {} function foo(t: T) { ->foo : (t: T) => void ->T : T ->t : T ->T : T +>foo : (t: T) => void, Symbol(foo, Decl(inOperatorWithValidOperands.ts, 18, 18)) +>T : T, Symbol(T, Decl(inOperatorWithValidOperands.ts, 20, 13)) +>t : T, Symbol(t, Decl(inOperatorWithValidOperands.ts, 20, 16)) +>T : T, Symbol(T, Decl(inOperatorWithValidOperands.ts, 20, 13)) var rb3 = x in t; ->rb3 : boolean +>rb3 : boolean, Symbol(rb3, Decl(inOperatorWithValidOperands.ts, 21, 7)) >x in t : boolean ->x : any ->t : T +>x : any, Symbol(x, Decl(inOperatorWithValidOperands.ts, 0, 3)) +>t : T, Symbol(t, Decl(inOperatorWithValidOperands.ts, 20, 16)) } interface X { x: number } ->X : X ->x : number +>X : X, Symbol(X, Decl(inOperatorWithValidOperands.ts, 22, 1)) +>x : number, Symbol(x, Decl(inOperatorWithValidOperands.ts, 24, 13)) interface Y { y: number } ->Y : Y ->y : number +>Y : Y, Symbol(Y, Decl(inOperatorWithValidOperands.ts, 24, 25)) +>y : number, Symbol(y, Decl(inOperatorWithValidOperands.ts, 25, 13)) var c1: X | Y; ->c1 : X | Y ->X : X ->Y : Y +>c1 : X | Y, Symbol(c1, Decl(inOperatorWithValidOperands.ts, 27, 3)) +>X : X, Symbol(X, Decl(inOperatorWithValidOperands.ts, 22, 1)) +>Y : Y, Symbol(Y, Decl(inOperatorWithValidOperands.ts, 24, 25)) var c2: X; ->c2 : X ->X : X +>c2 : X, Symbol(c2, Decl(inOperatorWithValidOperands.ts, 28, 3)) +>X : X, Symbol(X, Decl(inOperatorWithValidOperands.ts, 22, 1)) var c3: Y; ->c3 : Y ->Y : Y +>c3 : Y, Symbol(c3, Decl(inOperatorWithValidOperands.ts, 29, 3)) +>Y : Y, Symbol(Y, Decl(inOperatorWithValidOperands.ts, 24, 25)) var rc1 = x in c1; ->rc1 : boolean +>rc1 : boolean, Symbol(rc1, Decl(inOperatorWithValidOperands.ts, 31, 3)) >x in c1 : boolean ->x : any ->c1 : X | Y +>x : any, Symbol(x, Decl(inOperatorWithValidOperands.ts, 0, 3)) +>c1 : X | Y, Symbol(c1, Decl(inOperatorWithValidOperands.ts, 27, 3)) var rc2 = x in (c2 || c3); ->rc2 : boolean +>rc2 : boolean, Symbol(rc2, Decl(inOperatorWithValidOperands.ts, 32, 3)) >x in (c2 || c3) : boolean ->x : any +>x : any, Symbol(x, Decl(inOperatorWithValidOperands.ts, 0, 3)) >(c2 || c3) : X | Y >c2 || c3 : X | Y ->c2 : X ->c3 : Y +>c2 : X, Symbol(c2, Decl(inOperatorWithValidOperands.ts, 28, 3)) +>c3 : Y, Symbol(c3, Decl(inOperatorWithValidOperands.ts, 29, 3)) diff --git a/tests/baselines/reference/incrementOperatorWithAnyOtherType.types b/tests/baselines/reference/incrementOperatorWithAnyOtherType.types index 930c87274d0..179604e0b2b 100644 --- a/tests/baselines/reference/incrementOperatorWithAnyOtherType.types +++ b/tests/baselines/reference/incrementOperatorWithAnyOtherType.types @@ -2,190 +2,198 @@ // ++ operator on any type var ANY: any; ->ANY : any +>ANY : any, Symbol(ANY, Decl(incrementOperatorWithAnyOtherType.ts, 2, 3)) var ANY1; ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(incrementOperatorWithAnyOtherType.ts, 3, 3)) var ANY2: any[] = ["", ""]; ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(incrementOperatorWithAnyOtherType.ts, 4, 3)) >["", ""] : string[] +>"" : string +>"" : string var obj = {x:1,y:null}; ->obj : { x: number; y: any; } +>obj : { x: number; y: any; }, Symbol(obj, Decl(incrementOperatorWithAnyOtherType.ts, 5, 3)) >{x:1,y:null} : { x: number; y: null; } ->x : number ->y : null +>x : number, Symbol(x, Decl(incrementOperatorWithAnyOtherType.ts, 5, 11)) +>1 : number +>y : null, Symbol(y, Decl(incrementOperatorWithAnyOtherType.ts, 5, 15)) +>null : null class A { ->A : A +>A : A, Symbol(A, Decl(incrementOperatorWithAnyOtherType.ts, 5, 23)) public a: any; ->a : any +>a : any, Symbol(a, Decl(incrementOperatorWithAnyOtherType.ts, 6, 9)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(incrementOperatorWithAnyOtherType.ts, 8, 1)) export var n: any; ->n : any +>n : any, Symbol(n, Decl(incrementOperatorWithAnyOtherType.ts, 10, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(incrementOperatorWithAnyOtherType.ts, 12, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(incrementOperatorWithAnyOtherType.ts, 5, 23)) // any type var var ResultIsNumber1 = ++ANY; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(incrementOperatorWithAnyOtherType.ts, 15, 3)) >++ANY : number ->ANY : any +>ANY : any, Symbol(ANY, Decl(incrementOperatorWithAnyOtherType.ts, 2, 3)) var ResultIsNumber2 = ++ANY1; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(incrementOperatorWithAnyOtherType.ts, 16, 3)) >++ANY1 : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(incrementOperatorWithAnyOtherType.ts, 3, 3)) var ResultIsNumber3 = ANY1++; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(incrementOperatorWithAnyOtherType.ts, 18, 3)) >ANY1++ : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(incrementOperatorWithAnyOtherType.ts, 3, 3)) var ResultIsNumber4 = ANY1++; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(incrementOperatorWithAnyOtherType.ts, 19, 3)) >ANY1++ : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(incrementOperatorWithAnyOtherType.ts, 3, 3)) // expressions var ResultIsNumber5 = ++ANY2[0]; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(incrementOperatorWithAnyOtherType.ts, 22, 3)) >++ANY2[0] : number >ANY2[0] : any ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(incrementOperatorWithAnyOtherType.ts, 4, 3)) +>0 : number var ResultIsNumber6 = ++obj.x; ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(incrementOperatorWithAnyOtherType.ts, 23, 3)) >++obj.x : number ->obj.x : number ->obj : { x: number; y: any; } ->x : number +>obj.x : number, Symbol(x, Decl(incrementOperatorWithAnyOtherType.ts, 5, 11)) +>obj : { x: number; y: any; }, Symbol(obj, Decl(incrementOperatorWithAnyOtherType.ts, 5, 3)) +>x : number, Symbol(x, Decl(incrementOperatorWithAnyOtherType.ts, 5, 11)) var ResultIsNumber7 = ++obj.y; ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(incrementOperatorWithAnyOtherType.ts, 24, 3)) >++obj.y : number ->obj.y : any ->obj : { x: number; y: any; } ->y : any +>obj.y : any, Symbol(y, Decl(incrementOperatorWithAnyOtherType.ts, 5, 15)) +>obj : { x: number; y: any; }, Symbol(obj, Decl(incrementOperatorWithAnyOtherType.ts, 5, 3)) +>y : any, Symbol(y, Decl(incrementOperatorWithAnyOtherType.ts, 5, 15)) var ResultIsNumber8 = ++objA.a; ->ResultIsNumber8 : number +>ResultIsNumber8 : number, Symbol(ResultIsNumber8, Decl(incrementOperatorWithAnyOtherType.ts, 25, 3)) >++objA.a : number ->objA.a : any ->objA : A ->a : any +>objA.a : any, Symbol(A.a, Decl(incrementOperatorWithAnyOtherType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(incrementOperatorWithAnyOtherType.ts, 12, 3)) +>a : any, Symbol(A.a, Decl(incrementOperatorWithAnyOtherType.ts, 6, 9)) var ResultIsNumber = ++M.n; ->ResultIsNumber : number +>ResultIsNumber : number, Symbol(ResultIsNumber, Decl(incrementOperatorWithAnyOtherType.ts, 26, 3)) >++M.n : number ->M.n : any ->M : typeof M ->n : any +>M.n : any, Symbol(M.n, Decl(incrementOperatorWithAnyOtherType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(incrementOperatorWithAnyOtherType.ts, 8, 1)) +>n : any, Symbol(M.n, Decl(incrementOperatorWithAnyOtherType.ts, 10, 14)) var ResultIsNumber9 = ANY2[0]++; ->ResultIsNumber9 : number +>ResultIsNumber9 : number, Symbol(ResultIsNumber9, Decl(incrementOperatorWithAnyOtherType.ts, 28, 3)) >ANY2[0]++ : number >ANY2[0] : any ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(incrementOperatorWithAnyOtherType.ts, 4, 3)) +>0 : number var ResultIsNumber10 = obj.x++; ->ResultIsNumber10 : number +>ResultIsNumber10 : number, Symbol(ResultIsNumber10, Decl(incrementOperatorWithAnyOtherType.ts, 29, 3)) >obj.x++ : number ->obj.x : number ->obj : { x: number; y: any; } ->x : number +>obj.x : number, Symbol(x, Decl(incrementOperatorWithAnyOtherType.ts, 5, 11)) +>obj : { x: number; y: any; }, Symbol(obj, Decl(incrementOperatorWithAnyOtherType.ts, 5, 3)) +>x : number, Symbol(x, Decl(incrementOperatorWithAnyOtherType.ts, 5, 11)) var ResultIsNumber11 = obj.y++; ->ResultIsNumber11 : number +>ResultIsNumber11 : number, Symbol(ResultIsNumber11, Decl(incrementOperatorWithAnyOtherType.ts, 30, 3)) >obj.y++ : number ->obj.y : any ->obj : { x: number; y: any; } ->y : any +>obj.y : any, Symbol(y, Decl(incrementOperatorWithAnyOtherType.ts, 5, 15)) +>obj : { x: number; y: any; }, Symbol(obj, Decl(incrementOperatorWithAnyOtherType.ts, 5, 3)) +>y : any, Symbol(y, Decl(incrementOperatorWithAnyOtherType.ts, 5, 15)) var ResultIsNumber12 = objA.a++; ->ResultIsNumber12 : number +>ResultIsNumber12 : number, Symbol(ResultIsNumber12, Decl(incrementOperatorWithAnyOtherType.ts, 31, 3)) >objA.a++ : number ->objA.a : any ->objA : A ->a : any +>objA.a : any, Symbol(A.a, Decl(incrementOperatorWithAnyOtherType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(incrementOperatorWithAnyOtherType.ts, 12, 3)) +>a : any, Symbol(A.a, Decl(incrementOperatorWithAnyOtherType.ts, 6, 9)) var ResultIsNumber13 = M.n++; ->ResultIsNumber13 : number +>ResultIsNumber13 : number, Symbol(ResultIsNumber13, Decl(incrementOperatorWithAnyOtherType.ts, 32, 3)) >M.n++ : number ->M.n : any ->M : typeof M ->n : any +>M.n : any, Symbol(M.n, Decl(incrementOperatorWithAnyOtherType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(incrementOperatorWithAnyOtherType.ts, 8, 1)) +>n : any, Symbol(M.n, Decl(incrementOperatorWithAnyOtherType.ts, 10, 14)) // miss assignment opertors ++ANY; >++ANY : number ->ANY : any +>ANY : any, Symbol(ANY, Decl(incrementOperatorWithAnyOtherType.ts, 2, 3)) ++ANY1; >++ANY1 : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(incrementOperatorWithAnyOtherType.ts, 3, 3)) ++ANY2[0]; >++ANY2[0] : number >ANY2[0] : any ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(incrementOperatorWithAnyOtherType.ts, 4, 3)) +>0 : number ++ANY, ++ANY1; >++ANY, ++ANY1 : number >++ANY : number ->ANY : any +>ANY : any, Symbol(ANY, Decl(incrementOperatorWithAnyOtherType.ts, 2, 3)) >++ANY1 : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(incrementOperatorWithAnyOtherType.ts, 3, 3)) ++objA.a; >++objA.a : number ->objA.a : any ->objA : A ->a : any +>objA.a : any, Symbol(A.a, Decl(incrementOperatorWithAnyOtherType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(incrementOperatorWithAnyOtherType.ts, 12, 3)) +>a : any, Symbol(A.a, Decl(incrementOperatorWithAnyOtherType.ts, 6, 9)) ++M.n; >++M.n : number ->M.n : any ->M : typeof M ->n : any +>M.n : any, Symbol(M.n, Decl(incrementOperatorWithAnyOtherType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(incrementOperatorWithAnyOtherType.ts, 8, 1)) +>n : any, Symbol(M.n, Decl(incrementOperatorWithAnyOtherType.ts, 10, 14)) ANY++; >ANY++ : number ->ANY : any +>ANY : any, Symbol(ANY, Decl(incrementOperatorWithAnyOtherType.ts, 2, 3)) ANY1++; >ANY1++ : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(incrementOperatorWithAnyOtherType.ts, 3, 3)) ANY2[0]++; >ANY2[0]++ : number >ANY2[0] : any ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(incrementOperatorWithAnyOtherType.ts, 4, 3)) +>0 : number ANY++, ANY1++; >ANY++, ANY1++ : number >ANY++ : number ->ANY : any +>ANY : any, Symbol(ANY, Decl(incrementOperatorWithAnyOtherType.ts, 2, 3)) >ANY1++ : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(incrementOperatorWithAnyOtherType.ts, 3, 3)) objA.a++; >objA.a++ : number ->objA.a : any ->objA : A ->a : any +>objA.a : any, Symbol(A.a, Decl(incrementOperatorWithAnyOtherType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(incrementOperatorWithAnyOtherType.ts, 12, 3)) +>a : any, Symbol(A.a, Decl(incrementOperatorWithAnyOtherType.ts, 6, 9)) M.n++; >M.n++ : number ->M.n : any ->M : typeof M ->n : any +>M.n : any, Symbol(M.n, Decl(incrementOperatorWithAnyOtherType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(incrementOperatorWithAnyOtherType.ts, 8, 1)) +>n : any, Symbol(M.n, Decl(incrementOperatorWithAnyOtherType.ts, 10, 14)) diff --git a/tests/baselines/reference/incrementOperatorWithNumberType.types b/tests/baselines/reference/incrementOperatorWithNumberType.types index ad6ea172ae3..a22c9e4a351 100644 --- a/tests/baselines/reference/incrementOperatorWithNumberType.types +++ b/tests/baselines/reference/incrementOperatorWithNumberType.types @@ -1,137 +1,142 @@ === tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithNumberType.ts === // ++ operator on number type var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(incrementOperatorWithNumberType.ts, 1, 3)) var NUMBER1: number[] = [1, 2]; ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(incrementOperatorWithNumberType.ts, 2, 3)) >[1, 2] : number[] +>1 : number +>2 : number class A { ->A : A +>A : A, Symbol(A, Decl(incrementOperatorWithNumberType.ts, 2, 31)) public a: number; ->a : number +>a : number, Symbol(a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(incrementOperatorWithNumberType.ts, 6, 1)) export var n: number; ->n : number +>n : number, Symbol(n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(incrementOperatorWithNumberType.ts, 11, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(incrementOperatorWithNumberType.ts, 2, 31)) // number type var var ResultIsNumber1 = ++NUMBER; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(incrementOperatorWithNumberType.ts, 14, 3)) >++NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(incrementOperatorWithNumberType.ts, 1, 3)) var ResultIsNumber2 = NUMBER++; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(incrementOperatorWithNumberType.ts, 16, 3)) >NUMBER++ : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(incrementOperatorWithNumberType.ts, 1, 3)) // expressions var ResultIsNumber3 = ++objA.a; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(incrementOperatorWithNumberType.ts, 19, 3)) >++objA.a : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) +>objA : A, Symbol(objA, Decl(incrementOperatorWithNumberType.ts, 11, 3)) +>a : number, Symbol(A.a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) var ResultIsNumber4 = ++M.n; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(incrementOperatorWithNumberType.ts, 20, 3)) >++M.n : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) +>M : typeof M, Symbol(M, Decl(incrementOperatorWithNumberType.ts, 6, 1)) +>n : number, Symbol(M.n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) var ResultIsNumber5 = objA.a++; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(incrementOperatorWithNumberType.ts, 22, 3)) >objA.a++ : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) +>objA : A, Symbol(objA, Decl(incrementOperatorWithNumberType.ts, 11, 3)) +>a : number, Symbol(A.a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) var ResultIsNumber6 = M.n++; ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(incrementOperatorWithNumberType.ts, 23, 3)) >M.n++ : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) +>M : typeof M, Symbol(M, Decl(incrementOperatorWithNumberType.ts, 6, 1)) +>n : number, Symbol(M.n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) var ResultIsNumber7 = NUMBER1[0]++; ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(incrementOperatorWithNumberType.ts, 24, 3)) >NUMBER1[0]++ : number >NUMBER1[0] : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(incrementOperatorWithNumberType.ts, 2, 3)) +>0 : number // miss assignment operators ++NUMBER; >++NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(incrementOperatorWithNumberType.ts, 1, 3)) ++NUMBER1[0]; >++NUMBER1[0] : number >NUMBER1[0] : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(incrementOperatorWithNumberType.ts, 2, 3)) +>0 : number ++objA.a; >++objA.a : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) +>objA : A, Symbol(objA, Decl(incrementOperatorWithNumberType.ts, 11, 3)) +>a : number, Symbol(A.a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) ++M.n; >++M.n : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) +>M : typeof M, Symbol(M, Decl(incrementOperatorWithNumberType.ts, 6, 1)) +>n : number, Symbol(M.n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) ++objA.a, M.n; >++objA.a, M.n : number >++objA.a : number ->objA.a : number ->objA : A ->a : number ->M.n : number ->M : typeof M ->n : number +>objA.a : number, Symbol(A.a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) +>objA : A, Symbol(objA, Decl(incrementOperatorWithNumberType.ts, 11, 3)) +>a : number, Symbol(A.a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) +>M.n : number, Symbol(M.n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) +>M : typeof M, Symbol(M, Decl(incrementOperatorWithNumberType.ts, 6, 1)) +>n : number, Symbol(M.n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) NUMBER++; >NUMBER++ : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(incrementOperatorWithNumberType.ts, 1, 3)) NUMBER1[0]++; >NUMBER1[0]++ : number >NUMBER1[0] : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(incrementOperatorWithNumberType.ts, 2, 3)) +>0 : number objA.a++; >objA.a++ : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) +>objA : A, Symbol(objA, Decl(incrementOperatorWithNumberType.ts, 11, 3)) +>a : number, Symbol(A.a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) M.n++; >M.n++ : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) +>M : typeof M, Symbol(M, Decl(incrementOperatorWithNumberType.ts, 6, 1)) +>n : number, Symbol(M.n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) objA.a++, M.n++; >objA.a++, M.n++ : number >objA.a++ : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) +>objA : A, Symbol(objA, Decl(incrementOperatorWithNumberType.ts, 11, 3)) +>a : number, Symbol(A.a, Decl(incrementOperatorWithNumberType.ts, 4, 9)) >M.n++ : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) +>M : typeof M, Symbol(M, Decl(incrementOperatorWithNumberType.ts, 6, 1)) +>n : number, Symbol(M.n, Decl(incrementOperatorWithNumberType.ts, 8, 14)) diff --git a/tests/baselines/reference/indexClassByNumber.types b/tests/baselines/reference/indexClassByNumber.types index c58771d3256..41609a9484e 100644 --- a/tests/baselines/reference/indexClassByNumber.types +++ b/tests/baselines/reference/indexClassByNumber.types @@ -2,15 +2,17 @@ // Shouldn't be able to index a class instance by a number (unless it has declared a number index signature) class foo { } ->foo : foo +>foo : foo, Symbol(foo, Decl(indexClassByNumber.ts, 0, 0)) var f = new foo(); ->f : foo +>f : foo, Symbol(f, Decl(indexClassByNumber.ts, 4, 3)) >new foo() : foo ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(indexClassByNumber.ts, 0, 0)) f[0] = 4; // Shouldn't be allowed >f[0] = 4 : number >f[0] : any ->f : foo +>f : foo, Symbol(f, Decl(indexClassByNumber.ts, 4, 3)) +>0 : number +>4 : number diff --git a/tests/baselines/reference/indexIntoEnum.types b/tests/baselines/reference/indexIntoEnum.types index 39849566409..21d17d910da 100644 --- a/tests/baselines/reference/indexIntoEnum.types +++ b/tests/baselines/reference/indexIntoEnum.types @@ -1,12 +1,13 @@ === tests/cases/compiler/indexIntoEnum.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(indexIntoEnum.ts, 0, 0)) enum E { } ->E : E +>E : E, Symbol(E, Decl(indexIntoEnum.ts, 0, 10)) var x = E[0]; ->x : string +>x : string, Symbol(x, Decl(indexIntoEnum.ts, 4, 7)) >E[0] : string ->E : typeof E +>E : typeof E, Symbol(E, Decl(indexIntoEnum.ts, 0, 10)) +>0 : number } diff --git a/tests/baselines/reference/indexSignaturesInferentialTyping.types b/tests/baselines/reference/indexSignaturesInferentialTyping.types index 9ea5a390498..5f437fe1552 100644 --- a/tests/baselines/reference/indexSignaturesInferentialTyping.types +++ b/tests/baselines/reference/indexSignaturesInferentialTyping.types @@ -1,47 +1,55 @@ === tests/cases/compiler/indexSignaturesInferentialTyping.ts === function foo(items: { [index: number]: T }): T { return undefined; } ->foo : (items: { [index: number]: T; }) => T ->T : T ->items : { [index: number]: T; } ->index : number ->T : T ->T : T ->undefined : undefined +>foo : (items: { [index: number]: T; }) => T, Symbol(foo, Decl(indexSignaturesInferentialTyping.ts, 0, 0)) +>T : T, Symbol(T, Decl(indexSignaturesInferentialTyping.ts, 0, 13)) +>items : { [index: number]: T; }, Symbol(items, Decl(indexSignaturesInferentialTyping.ts, 0, 16)) +>index : number, Symbol(index, Decl(indexSignaturesInferentialTyping.ts, 0, 26)) +>T : T, Symbol(T, Decl(indexSignaturesInferentialTyping.ts, 0, 13)) +>T : T, Symbol(T, Decl(indexSignaturesInferentialTyping.ts, 0, 13)) +>undefined : undefined, Symbol(undefined) function bar(items: { [index: string]: T }): T { return undefined; } ->bar : (items: { [index: string]: T; }) => T ->T : T ->items : { [index: string]: T; } ->index : string ->T : T ->T : T ->undefined : undefined +>bar : (items: { [index: string]: T; }) => T, Symbol(bar, Decl(indexSignaturesInferentialTyping.ts, 0, 71)) +>T : T, Symbol(T, Decl(indexSignaturesInferentialTyping.ts, 1, 13)) +>items : { [index: string]: T; }, Symbol(items, Decl(indexSignaturesInferentialTyping.ts, 1, 16)) +>index : string, Symbol(index, Decl(indexSignaturesInferentialTyping.ts, 1, 26)) +>T : T, Symbol(T, Decl(indexSignaturesInferentialTyping.ts, 1, 13)) +>T : T, Symbol(T, Decl(indexSignaturesInferentialTyping.ts, 1, 13)) +>undefined : undefined, Symbol(undefined) var x1 = foo({ 0: 0, 1: 1 }); // type should be number ->x1 : number +>x1 : number, Symbol(x1, Decl(indexSignaturesInferentialTyping.ts, 3, 3)) >foo({ 0: 0, 1: 1 }) : number ->foo : (items: { [index: number]: T; }) => T +>foo : (items: { [index: number]: T; }) => T, Symbol(foo, Decl(indexSignaturesInferentialTyping.ts, 0, 0)) >{ 0: 0, 1: 1 } : { [x: number]: number; 0: number; 1: number; } +>0 : number +>1 : number var x2 = foo({ zero: 0, one: 1 }); ->x2 : any +>x2 : any, Symbol(x2, Decl(indexSignaturesInferentialTyping.ts, 4, 3)) >foo({ zero: 0, one: 1 }) : any ->foo : (items: { [index: number]: T; }) => T +>foo : (items: { [index: number]: T; }) => T, Symbol(foo, Decl(indexSignaturesInferentialTyping.ts, 0, 0)) >{ zero: 0, one: 1 } : { [x: number]: undefined; zero: number; one: number; } ->zero : number ->one : number +>zero : number, Symbol(zero, Decl(indexSignaturesInferentialTyping.ts, 4, 14)) +>0 : number +>one : number, Symbol(one, Decl(indexSignaturesInferentialTyping.ts, 4, 23)) +>1 : number var x3 = bar({ 0: 0, 1: 1 }); ->x3 : number +>x3 : number, Symbol(x3, Decl(indexSignaturesInferentialTyping.ts, 5, 3)) >bar({ 0: 0, 1: 1 }) : number ->bar : (items: { [index: string]: T; }) => T +>bar : (items: { [index: string]: T; }) => T, Symbol(bar, Decl(indexSignaturesInferentialTyping.ts, 0, 71)) >{ 0: 0, 1: 1 } : { [x: string]: number; 0: number; 1: number; } +>0 : number +>1 : number var x4 = bar({ zero: 0, one: 1 }); // type should be number ->x4 : number +>x4 : number, Symbol(x4, Decl(indexSignaturesInferentialTyping.ts, 6, 3)) >bar({ zero: 0, one: 1 }) : number ->bar : (items: { [index: string]: T; }) => T +>bar : (items: { [index: string]: T; }) => T, Symbol(bar, Decl(indexSignaturesInferentialTyping.ts, 0, 71)) >{ zero: 0, one: 1 } : { [x: string]: number; zero: number; one: number; } ->zero : number ->one : number +>zero : number, Symbol(zero, Decl(indexSignaturesInferentialTyping.ts, 6, 14)) +>0 : number +>one : number, Symbol(one, Decl(indexSignaturesInferentialTyping.ts, 6, 23)) +>1 : number diff --git a/tests/baselines/reference/indexer.types b/tests/baselines/reference/indexer.types index 9987fdde0b1..e702ea3256c 100644 --- a/tests/baselines/reference/indexer.types +++ b/tests/baselines/reference/indexer.types @@ -1,31 +1,34 @@ === tests/cases/compiler/indexer.ts === interface JQueryElement { ->JQueryElement : JQueryElement +>JQueryElement : JQueryElement, Symbol(JQueryElement, Decl(indexer.ts, 0, 0)) id:string; ->id : string +>id : string, Symbol(id, Decl(indexer.ts, 0, 25)) } interface JQuery { ->JQuery : JQuery +>JQuery : JQuery, Symbol(JQuery, Decl(indexer.ts, 2, 1)) [n:number]:JQueryElement; ->n : number ->JQueryElement : JQueryElement +>n : number, Symbol(n, Decl(indexer.ts, 5, 5)) +>JQueryElement : JQueryElement, Symbol(JQueryElement, Decl(indexer.ts, 0, 0)) } var jq:JQuery={ 0: { id : "a" }, 1: { id : "b" } }; ->jq : JQuery ->JQuery : JQuery +>jq : JQuery, Symbol(jq, Decl(indexer.ts, 8, 3)) +>JQuery : JQuery, Symbol(JQuery, Decl(indexer.ts, 2, 1)) >{ 0: { id : "a" }, 1: { id : "b" } } : { [x: number]: { id: string; }; 0: { id: string; }; 1: { id: string; }; } >{ id : "a" } : { id: string; } ->id : string +>id : string, Symbol(id, Decl(indexer.ts, 8, 20)) +>"a" : string >{ id : "b" } : { id: string; } ->id : string +>id : string, Symbol(id, Decl(indexer.ts, 8, 37)) +>"b" : string jq[0].id; ->jq[0].id : string +>jq[0].id : string, Symbol(JQueryElement.id, Decl(indexer.ts, 0, 25)) >jq[0] : JQueryElement ->jq : JQuery ->id : string +>jq : JQuery, Symbol(jq, Decl(indexer.ts, 8, 3)) +>0 : number +>id : string, Symbol(JQueryElement.id, Decl(indexer.ts, 0, 25)) diff --git a/tests/baselines/reference/indexer2.types b/tests/baselines/reference/indexer2.types index 7f1ccd41cb5..e035925eee0 100644 --- a/tests/baselines/reference/indexer2.types +++ b/tests/baselines/reference/indexer2.types @@ -1,21 +1,21 @@ === tests/cases/compiler/indexer2.ts === interface IHeapObjectProperty {} ->IHeapObjectProperty : IHeapObjectProperty +>IHeapObjectProperty : IHeapObjectProperty, Symbol(IHeapObjectProperty, Decl(indexer2.ts, 0, 0)) interface IDirectChildrenMap { ->IDirectChildrenMap : IDirectChildrenMap +>IDirectChildrenMap : IDirectChildrenMap, Symbol(IDirectChildrenMap, Decl(indexer2.ts, 0, 32)) hasOwnProperty(objectId: number) : boolean; ->hasOwnProperty : (objectId: number) => boolean ->objectId : number +>hasOwnProperty : (objectId: number) => boolean, Symbol(hasOwnProperty, Decl(indexer2.ts, 1, 30)) +>objectId : number, Symbol(objectId, Decl(indexer2.ts, 2, 23)) [objectId: number] : IHeapObjectProperty[]; ->objectId : number ->IHeapObjectProperty : IHeapObjectProperty +>objectId : number, Symbol(objectId, Decl(indexer2.ts, 3, 9)) +>IHeapObjectProperty : IHeapObjectProperty, Symbol(IHeapObjectProperty, Decl(indexer2.ts, 0, 0)) } var directChildrenMap = {}; ->directChildrenMap : IDirectChildrenMap +>directChildrenMap : IDirectChildrenMap, Symbol(directChildrenMap, Decl(indexer2.ts, 5, 3)) >{} : IDirectChildrenMap ->IDirectChildrenMap : IDirectChildrenMap +>IDirectChildrenMap : IDirectChildrenMap, Symbol(IDirectChildrenMap, Decl(indexer2.ts, 0, 32)) >{} : { [x: number]: undefined; } diff --git a/tests/baselines/reference/indexer3.types b/tests/baselines/reference/indexer3.types index 7f660ab6aa9..ec13804992d 100644 --- a/tests/baselines/reference/indexer3.types +++ b/tests/baselines/reference/indexer3.types @@ -1,13 +1,14 @@ === tests/cases/compiler/indexer3.ts === var dateMap: { [x: string]: Date; } = {} ->dateMap : { [x: string]: Date; } ->x : string ->Date : Date +>dateMap : { [x: string]: Date; }, Symbol(dateMap, Decl(indexer3.ts, 0, 3)) +>x : string, Symbol(x, Decl(indexer3.ts, 0, 16)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) >{} : { [x: string]: undefined; } var r: Date = dateMap["hello"] // result type includes indexer using BCT ->r : Date ->Date : Date +>r : Date, Symbol(r, Decl(indexer3.ts, 1, 3)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) >dateMap["hello"] : Date ->dateMap : { [x: string]: Date; } +>dateMap : { [x: string]: Date; }, Symbol(dateMap, Decl(indexer3.ts, 0, 3)) +>"hello" : string diff --git a/tests/baselines/reference/indexerA.types b/tests/baselines/reference/indexerA.types index 39f7372c839..a9763123f18 100644 --- a/tests/baselines/reference/indexerA.types +++ b/tests/baselines/reference/indexerA.types @@ -1,31 +1,34 @@ === tests/cases/compiler/indexerA.ts === class JQueryElement { ->JQueryElement : JQueryElement +>JQueryElement : JQueryElement, Symbol(JQueryElement, Decl(indexerA.ts, 0, 0)) id:string; ->id : string +>id : string, Symbol(id, Decl(indexerA.ts, 0, 21)) } class JQuery { ->JQuery : JQuery +>JQuery : JQuery, Symbol(JQuery, Decl(indexerA.ts, 2, 1)) [n:number]:JQueryElement ->n : number ->JQueryElement : JQueryElement +>n : number, Symbol(n, Decl(indexerA.ts, 5, 5)) +>JQueryElement : JQueryElement, Symbol(JQueryElement, Decl(indexerA.ts, 0, 0)) } var jq:JQuery={ 0: { id : "a" }, 1: { id : "b" } }; ->jq : JQuery ->JQuery : JQuery +>jq : JQuery, Symbol(jq, Decl(indexerA.ts, 8, 3)) +>JQuery : JQuery, Symbol(JQuery, Decl(indexerA.ts, 2, 1)) >{ 0: { id : "a" }, 1: { id : "b" } } : { [x: number]: { id: string; }; 0: { id: string; }; 1: { id: string; }; } >{ id : "a" } : { id: string; } ->id : string +>id : string, Symbol(id, Decl(indexerA.ts, 8, 20)) +>"a" : string >{ id : "b" } : { id: string; } ->id : string +>id : string, Symbol(id, Decl(indexerA.ts, 8, 37)) +>"b" : string jq[0].id; ->jq[0].id : string +>jq[0].id : string, Symbol(JQueryElement.id, Decl(indexerA.ts, 0, 21)) >jq[0] : JQueryElement ->jq : JQuery ->id : string +>jq : JQuery, Symbol(jq, Decl(indexerA.ts, 8, 3)) +>0 : number +>id : string, Symbol(JQueryElement.id, Decl(indexerA.ts, 0, 21)) diff --git a/tests/baselines/reference/indexerReturningTypeParameter1.types b/tests/baselines/reference/indexerReturningTypeParameter1.types index a0a70f95331..b5dee119a9f 100644 --- a/tests/baselines/reference/indexerReturningTypeParameter1.types +++ b/tests/baselines/reference/indexerReturningTypeParameter1.types @@ -1,44 +1,45 @@ === tests/cases/compiler/indexerReturningTypeParameter1.ts === interface f { ->f : f +>f : f, Symbol(f, Decl(indexerReturningTypeParameter1.ts, 0, 0)) groupBy(): { [key: string]: T[]; }; ->groupBy : () => { [key: string]: T[]; } ->T : T ->key : string ->T : T +>groupBy : () => { [key: string]: T[]; }, Symbol(groupBy, Decl(indexerReturningTypeParameter1.ts, 0, 13)) +>T : T, Symbol(T, Decl(indexerReturningTypeParameter1.ts, 1, 12)) +>key : string, Symbol(key, Decl(indexerReturningTypeParameter1.ts, 1, 21)) +>T : T, Symbol(T, Decl(indexerReturningTypeParameter1.ts, 1, 12)) } var a: f; ->a : f ->f : f +>a : f, Symbol(a, Decl(indexerReturningTypeParameter1.ts, 3, 3)) +>f : f, Symbol(f, Decl(indexerReturningTypeParameter1.ts, 0, 0)) var r = a.groupBy(); ->r : { [key: string]: {}[]; } +>r : { [key: string]: {}[]; }, Symbol(r, Decl(indexerReturningTypeParameter1.ts, 4, 3)) >a.groupBy() : { [key: string]: {}[]; } ->a.groupBy : () => { [key: string]: T[]; } ->a : f ->groupBy : () => { [key: string]: T[]; } +>a.groupBy : () => { [key: string]: T[]; }, Symbol(f.groupBy, Decl(indexerReturningTypeParameter1.ts, 0, 13)) +>a : f, Symbol(a, Decl(indexerReturningTypeParameter1.ts, 3, 3)) +>groupBy : () => { [key: string]: T[]; }, Symbol(f.groupBy, Decl(indexerReturningTypeParameter1.ts, 0, 13)) class c { ->c : c +>c : c, Symbol(c, Decl(indexerReturningTypeParameter1.ts, 4, 20)) groupBy(): { [key: string]: T[]; } { ->groupBy : () => { [key: string]: T[]; } ->T : T ->key : string ->T : T +>groupBy : () => { [key: string]: T[]; }, Symbol(groupBy, Decl(indexerReturningTypeParameter1.ts, 6, 9)) +>T : T, Symbol(T, Decl(indexerReturningTypeParameter1.ts, 7, 12)) +>key : string, Symbol(key, Decl(indexerReturningTypeParameter1.ts, 7, 21)) +>T : T, Symbol(T, Decl(indexerReturningTypeParameter1.ts, 7, 12)) return null; +>null : null } } var a2: c; ->a2 : c ->c : c +>a2 : c, Symbol(a2, Decl(indexerReturningTypeParameter1.ts, 11, 3)) +>c : c, Symbol(c, Decl(indexerReturningTypeParameter1.ts, 4, 20)) var r2 = a2.groupBy(); ->r2 : { [key: string]: {}[]; } +>r2 : { [key: string]: {}[]; }, Symbol(r2, Decl(indexerReturningTypeParameter1.ts, 12, 3)) >a2.groupBy() : { [key: string]: {}[]; } ->a2.groupBy : () => { [key: string]: T[]; } ->a2 : c ->groupBy : () => { [key: string]: T[]; } +>a2.groupBy : () => { [key: string]: T[]; }, Symbol(c.groupBy, Decl(indexerReturningTypeParameter1.ts, 6, 9)) +>a2 : c, Symbol(a2, Decl(indexerReturningTypeParameter1.ts, 11, 3)) +>groupBy : () => { [key: string]: T[]; }, Symbol(c.groupBy, Decl(indexerReturningTypeParameter1.ts, 6, 9)) diff --git a/tests/baselines/reference/indexerWithTuple.types b/tests/baselines/reference/indexerWithTuple.types index 75b89ca6088..d9d1d6cbfc4 100644 --- a/tests/baselines/reference/indexerWithTuple.types +++ b/tests/baselines/reference/indexerWithTuple.types @@ -1,146 +1,174 @@ === tests/cases/conformance/types/tuple/indexerWithTuple.ts === var strNumTuple: [string, number] = ["foo", 10]; ->strNumTuple : [string, number] +>strNumTuple : [string, number], Symbol(strNumTuple, Decl(indexerWithTuple.ts, 0, 3)) >["foo", 10] : [string, number] +>"foo" : string +>10 : number var numTupleTuple: [number, [string, number]] = [10, ["bar", 20]]; ->numTupleTuple : [number, [string, number]] +>numTupleTuple : [number, [string, number]], Symbol(numTupleTuple, Decl(indexerWithTuple.ts, 1, 3)) >[10, ["bar", 20]] : [number, [string, number]] +>10 : number >["bar", 20] : [string, number] +>"bar" : string +>20 : number var unionTuple1: [number, string| number] = [10, "foo"]; ->unionTuple1 : [number, string | number] +>unionTuple1 : [number, string | number], Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) >[10, "foo"] : [number, string] +>10 : number +>"foo" : string var unionTuple2: [boolean, string| number] = [true, "foo"]; ->unionTuple2 : [boolean, string | number] +>unionTuple2 : [boolean, string | number], Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) >[true, "foo"] : [boolean, string] +>true : boolean +>"foo" : string // no error var idx0 = 0; ->idx0 : number +>idx0 : number, Symbol(idx0, Decl(indexerWithTuple.ts, 6, 3)) +>0 : number var idx1 = 1; ->idx1 : number +>idx1 : number, Symbol(idx1, Decl(indexerWithTuple.ts, 7, 3)) +>1 : number var ele10 = strNumTuple[0]; // string ->ele10 : string +>ele10 : string, Symbol(ele10, Decl(indexerWithTuple.ts, 8, 3)) >strNumTuple[0] : string ->strNumTuple : [string, number] +>strNumTuple : [string, number], Symbol(strNumTuple, Decl(indexerWithTuple.ts, 0, 3)) +>0 : number, Symbol(0) var ele11 = strNumTuple[1]; // number ->ele11 : number +>ele11 : number, Symbol(ele11, Decl(indexerWithTuple.ts, 9, 3)) >strNumTuple[1] : number ->strNumTuple : [string, number] +>strNumTuple : [string, number], Symbol(strNumTuple, Decl(indexerWithTuple.ts, 0, 3)) +>1 : number, Symbol(1) var ele12 = strNumTuple[2]; // string | number ->ele12 : string | number +>ele12 : string | number, Symbol(ele12, Decl(indexerWithTuple.ts, 10, 3)) >strNumTuple[2] : string | number ->strNumTuple : [string, number] +>strNumTuple : [string, number], Symbol(strNumTuple, Decl(indexerWithTuple.ts, 0, 3)) +>2 : number var ele13 = strNumTuple[idx0]; // string | number ->ele13 : string | number +>ele13 : string | number, Symbol(ele13, Decl(indexerWithTuple.ts, 11, 3)) >strNumTuple[idx0] : string | number ->strNumTuple : [string, number] ->idx0 : number +>strNumTuple : [string, number], Symbol(strNumTuple, Decl(indexerWithTuple.ts, 0, 3)) +>idx0 : number, Symbol(idx0, Decl(indexerWithTuple.ts, 6, 3)) var ele14 = strNumTuple[idx1]; // string | number ->ele14 : string | number +>ele14 : string | number, Symbol(ele14, Decl(indexerWithTuple.ts, 12, 3)) >strNumTuple[idx1] : string | number ->strNumTuple : [string, number] ->idx1 : number +>strNumTuple : [string, number], Symbol(strNumTuple, Decl(indexerWithTuple.ts, 0, 3)) +>idx1 : number, Symbol(idx1, Decl(indexerWithTuple.ts, 7, 3)) var ele15 = strNumTuple["0"]; // string ->ele15 : string +>ele15 : string, Symbol(ele15, Decl(indexerWithTuple.ts, 13, 3)) >strNumTuple["0"] : string ->strNumTuple : [string, number] +>strNumTuple : [string, number], Symbol(strNumTuple, Decl(indexerWithTuple.ts, 0, 3)) +>"0" : string, Symbol(0) var ele16 = strNumTuple["1"]; // number ->ele16 : number +>ele16 : number, Symbol(ele16, Decl(indexerWithTuple.ts, 14, 3)) >strNumTuple["1"] : number ->strNumTuple : [string, number] +>strNumTuple : [string, number], Symbol(strNumTuple, Decl(indexerWithTuple.ts, 0, 3)) +>"1" : string, Symbol(1) var strNumTuple1 = numTupleTuple[1]; //[string, number]; ->strNumTuple1 : [string, number] +>strNumTuple1 : [string, number], Symbol(strNumTuple1, Decl(indexerWithTuple.ts, 15, 3)) >numTupleTuple[1] : [string, number] ->numTupleTuple : [number, [string, number]] +>numTupleTuple : [number, [string, number]], Symbol(numTupleTuple, Decl(indexerWithTuple.ts, 1, 3)) +>1 : number, Symbol(1) var ele17 = numTupleTuple[2]; // number | [string, number] ->ele17 : number | [string, number] +>ele17 : number | [string, number], Symbol(ele17, Decl(indexerWithTuple.ts, 16, 3)) >numTupleTuple[2] : number | [string, number] ->numTupleTuple : [number, [string, number]] +>numTupleTuple : [number, [string, number]], Symbol(numTupleTuple, Decl(indexerWithTuple.ts, 1, 3)) +>2 : number var eleUnion10 = unionTuple1[0]; // number ->eleUnion10 : number +>eleUnion10 : number, Symbol(eleUnion10, Decl(indexerWithTuple.ts, 17, 3)) >unionTuple1[0] : number ->unionTuple1 : [number, string | number] +>unionTuple1 : [number, string | number], Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) +>0 : number, Symbol(0) var eleUnion11 = unionTuple1[1]; // string | number ->eleUnion11 : string | number +>eleUnion11 : string | number, Symbol(eleUnion11, Decl(indexerWithTuple.ts, 18, 3)) >unionTuple1[1] : string | number ->unionTuple1 : [number, string | number] +>unionTuple1 : [number, string | number], Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) +>1 : number, Symbol(1) var eleUnion12 = unionTuple1[2]; // string | number ->eleUnion12 : string | number +>eleUnion12 : string | number, Symbol(eleUnion12, Decl(indexerWithTuple.ts, 19, 3)) >unionTuple1[2] : string | number ->unionTuple1 : [number, string | number] +>unionTuple1 : [number, string | number], Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) +>2 : number var eleUnion13 = unionTuple1[idx0]; // string | number ->eleUnion13 : string | number +>eleUnion13 : string | number, Symbol(eleUnion13, Decl(indexerWithTuple.ts, 20, 3)) >unionTuple1[idx0] : string | number ->unionTuple1 : [number, string | number] ->idx0 : number +>unionTuple1 : [number, string | number], Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) +>idx0 : number, Symbol(idx0, Decl(indexerWithTuple.ts, 6, 3)) var eleUnion14 = unionTuple1[idx1]; // string | number ->eleUnion14 : string | number +>eleUnion14 : string | number, Symbol(eleUnion14, Decl(indexerWithTuple.ts, 21, 3)) >unionTuple1[idx1] : string | number ->unionTuple1 : [number, string | number] ->idx1 : number +>unionTuple1 : [number, string | number], Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) +>idx1 : number, Symbol(idx1, Decl(indexerWithTuple.ts, 7, 3)) var eleUnion15 = unionTuple1["0"]; // number ->eleUnion15 : number +>eleUnion15 : number, Symbol(eleUnion15, Decl(indexerWithTuple.ts, 22, 3)) >unionTuple1["0"] : number ->unionTuple1 : [number, string | number] +>unionTuple1 : [number, string | number], Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) +>"0" : string, Symbol(0) var eleUnion16 = unionTuple1["1"]; // string | number ->eleUnion16 : string | number +>eleUnion16 : string | number, Symbol(eleUnion16, Decl(indexerWithTuple.ts, 23, 3)) >unionTuple1["1"] : string | number ->unionTuple1 : [number, string | number] +>unionTuple1 : [number, string | number], Symbol(unionTuple1, Decl(indexerWithTuple.ts, 2, 3)) +>"1" : string, Symbol(1) var eleUnion20 = unionTuple2[0]; // boolean ->eleUnion20 : boolean +>eleUnion20 : boolean, Symbol(eleUnion20, Decl(indexerWithTuple.ts, 25, 3)) >unionTuple2[0] : boolean ->unionTuple2 : [boolean, string | number] +>unionTuple2 : [boolean, string | number], Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) +>0 : number, Symbol(0) var eleUnion21 = unionTuple2[1]; // string | number ->eleUnion21 : string | number +>eleUnion21 : string | number, Symbol(eleUnion21, Decl(indexerWithTuple.ts, 26, 3)) >unionTuple2[1] : string | number ->unionTuple2 : [boolean, string | number] +>unionTuple2 : [boolean, string | number], Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) +>1 : number, Symbol(1) var eleUnion22 = unionTuple2[2]; // string | number | boolean ->eleUnion22 : string | number | boolean +>eleUnion22 : string | number | boolean, Symbol(eleUnion22, Decl(indexerWithTuple.ts, 27, 3)) >unionTuple2[2] : string | number | boolean ->unionTuple2 : [boolean, string | number] +>unionTuple2 : [boolean, string | number], Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) +>2 : number var eleUnion23 = unionTuple2[idx0]; // string | number | boolean ->eleUnion23 : string | number | boolean +>eleUnion23 : string | number | boolean, Symbol(eleUnion23, Decl(indexerWithTuple.ts, 28, 3)) >unionTuple2[idx0] : string | number | boolean ->unionTuple2 : [boolean, string | number] ->idx0 : number +>unionTuple2 : [boolean, string | number], Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) +>idx0 : number, Symbol(idx0, Decl(indexerWithTuple.ts, 6, 3)) var eleUnion24 = unionTuple2[idx1]; // string | number | boolean ->eleUnion24 : string | number | boolean +>eleUnion24 : string | number | boolean, Symbol(eleUnion24, Decl(indexerWithTuple.ts, 29, 3)) >unionTuple2[idx1] : string | number | boolean ->unionTuple2 : [boolean, string | number] ->idx1 : number +>unionTuple2 : [boolean, string | number], Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) +>idx1 : number, Symbol(idx1, Decl(indexerWithTuple.ts, 7, 3)) var eleUnion25 = unionTuple2["0"]; // boolean ->eleUnion25 : boolean +>eleUnion25 : boolean, Symbol(eleUnion25, Decl(indexerWithTuple.ts, 30, 3)) >unionTuple2["0"] : boolean ->unionTuple2 : [boolean, string | number] +>unionTuple2 : [boolean, string | number], Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) +>"0" : string, Symbol(0) var eleUnion26 = unionTuple2["1"]; // string | number ->eleUnion26 : string | number +>eleUnion26 : string | number, Symbol(eleUnion26, Decl(indexerWithTuple.ts, 31, 3)) >unionTuple2["1"] : string | number ->unionTuple2 : [boolean, string | number] +>unionTuple2 : [boolean, string | number], Symbol(unionTuple2, Decl(indexerWithTuple.ts, 3, 3)) +>"1" : string, Symbol(1) diff --git a/tests/baselines/reference/indexersInClassType.types b/tests/baselines/reference/indexersInClassType.types index afc21b9ce8a..1dce4cedafd 100644 --- a/tests/baselines/reference/indexersInClassType.types +++ b/tests/baselines/reference/indexersInClassType.types @@ -1,49 +1,50 @@ === tests/cases/conformance/classes/members/classTypes/indexersInClassType.ts === class C { ->C : C +>C : C, Symbol(C, Decl(indexersInClassType.ts, 0, 0)) [x: number]: Date; ->x : number ->Date : Date +>x : number, Symbol(x, Decl(indexersInClassType.ts, 1, 5)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) [x: string]: Object; ->x : string ->Object : Object +>x : string, Symbol(x, Decl(indexersInClassType.ts, 2, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) 1: Date; ->Date : Date +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) 'a': {} fn() { ->fn : () => C +>fn : () => C, Symbol(fn, Decl(indexersInClassType.ts, 4, 11)) return this; ->this : C +>this : C, Symbol(C, Decl(indexersInClassType.ts, 0, 0)) } } var c = new C(); ->c : C +>c : C, Symbol(c, Decl(indexersInClassType.ts, 11, 3)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(indexersInClassType.ts, 0, 0)) var r = c.fn(); ->r : C +>r : C, Symbol(r, Decl(indexersInClassType.ts, 12, 3)) >c.fn() : C ->c.fn : () => C ->c : C ->fn : () => C +>c.fn : () => C, Symbol(C.fn, Decl(indexersInClassType.ts, 4, 11)) +>c : C, Symbol(c, Decl(indexersInClassType.ts, 11, 3)) +>fn : () => C, Symbol(C.fn, Decl(indexersInClassType.ts, 4, 11)) var r2 = r[1]; ->r2 : Date +>r2 : Date, Symbol(r2, Decl(indexersInClassType.ts, 13, 3)) >r[1] : Date ->r : C +>r : C, Symbol(r, Decl(indexersInClassType.ts, 12, 3)) +>1 : number, Symbol(C.1, Decl(indexersInClassType.ts, 2, 24)) var r3 = r.a ->r3 : {} ->r.a : {} ->r : C ->a : {} +>r3 : {}, Symbol(r3, Decl(indexersInClassType.ts, 14, 3)) +>r.a : {}, Symbol(C.'a', Decl(indexersInClassType.ts, 3, 12)) +>r : C, Symbol(r, Decl(indexersInClassType.ts, 12, 3)) +>a : {}, Symbol(C.'a', Decl(indexersInClassType.ts, 3, 12)) diff --git a/tests/baselines/reference/inferSecondaryParameter.types b/tests/baselines/reference/inferSecondaryParameter.types index e416cface90..6dea94d9125 100644 --- a/tests/baselines/reference/inferSecondaryParameter.types +++ b/tests/baselines/reference/inferSecondaryParameter.types @@ -2,32 +2,33 @@ // type inference on 'bug' should give 'any' interface Ib { m(test: string, fn: Function); } ->Ib : Ib ->m : (test: string, fn: Function) => any ->test : string ->fn : Function ->Function : Function +>Ib : Ib, Symbol(Ib, Decl(inferSecondaryParameter.ts, 0, 0)) +>m : (test: string, fn: Function) => any, Symbol(m, Decl(inferSecondaryParameter.ts, 2, 14)) +>test : string, Symbol(test, Decl(inferSecondaryParameter.ts, 2, 17)) +>fn : Function, Symbol(fn, Decl(inferSecondaryParameter.ts, 2, 30)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) var b: Ib = { m: function (test: string, fn: Function) { } }; ->b : Ib ->Ib : Ib +>b : Ib, Symbol(b, Decl(inferSecondaryParameter.ts, 4, 3)) +>Ib : Ib, Symbol(Ib, Decl(inferSecondaryParameter.ts, 0, 0)) >{ m: function (test: string, fn: Function) { } } : { m: (test: string, fn: Function) => void; } ->m : (test: string, fn: Function) => void +>m : (test: string, fn: Function) => void, Symbol(m, Decl(inferSecondaryParameter.ts, 4, 13)) >function (test: string, fn: Function) { } : (test: string, fn: Function) => void ->test : string ->fn : Function ->Function : Function +>test : string, Symbol(test, Decl(inferSecondaryParameter.ts, 4, 27)) +>fn : Function, Symbol(fn, Decl(inferSecondaryParameter.ts, 4, 40)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) b.m("test", function (bug) { >b.m("test", function (bug) { var a: number = bug;}) : any ->b.m : (test: string, fn: Function) => any ->b : Ib ->m : (test: string, fn: Function) => any +>b.m : (test: string, fn: Function) => any, Symbol(Ib.m, Decl(inferSecondaryParameter.ts, 2, 14)) +>b : Ib, Symbol(b, Decl(inferSecondaryParameter.ts, 4, 3)) +>m : (test: string, fn: Function) => any, Symbol(Ib.m, Decl(inferSecondaryParameter.ts, 2, 14)) +>"test" : string >function (bug) { var a: number = bug;} : (bug: any) => void ->bug : any +>bug : any, Symbol(bug, Decl(inferSecondaryParameter.ts, 6, 22)) var a: number = bug; ->a : number ->bug : any +>a : number, Symbol(a, Decl(inferSecondaryParameter.ts, 7, 7)) +>bug : any, Symbol(bug, Decl(inferSecondaryParameter.ts, 6, 22)) }); diff --git a/tests/baselines/reference/inferTypeArgumentsInSignatureWithRestParameters.types b/tests/baselines/reference/inferTypeArgumentsInSignatureWithRestParameters.types index 5bf41c64b24..1bce7f7cac8 100644 --- a/tests/baselines/reference/inferTypeArgumentsInSignatureWithRestParameters.types +++ b/tests/baselines/reference/inferTypeArgumentsInSignatureWithRestParameters.types @@ -1,51 +1,56 @@ === tests/cases/compiler/inferTypeArgumentsInSignatureWithRestParameters.ts === function f(array: T[], ...args) { } ->f : (array: T[], ...args: any[]) => void ->T : T ->array : T[] ->T : T ->args : any[] +>f : (array: T[], ...args: any[]) => void, Symbol(f, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 0, 0)) +>T : T, Symbol(T, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 0, 11)) +>array : T[], Symbol(array, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 0, 14)) +>T : T, Symbol(T, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 0, 11)) +>args : any[], Symbol(args, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 0, 25)) function g(array: number[], ...args) { } ->g : (array: number[], ...args: any[]) => void ->array : number[] ->args : any[] +>g : (array: number[], ...args: any[]) => void, Symbol(g, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 0, 38)) +>array : number[], Symbol(array, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 1, 11)) +>args : any[], Symbol(args, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 1, 27)) function h(nonarray: T, ...args) { } ->h : (nonarray: T, ...args: any[]) => void ->T : T ->nonarray : T ->T : T ->args : any[] +>h : (nonarray: T, ...args: any[]) => void, Symbol(h, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 1, 40)) +>T : T, Symbol(T, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 2, 11)) +>nonarray : T, Symbol(nonarray, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 2, 14)) +>T : T, Symbol(T, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 2, 11)) +>args : any[], Symbol(args, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 2, 26)) function i(array: T[], opt?: any[]) { } ->i : (array: T[], opt?: any[]) => void ->T : T ->array : T[] ->T : T ->opt : any[] +>i : (array: T[], opt?: any[]) => void, Symbol(i, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 2, 39)) +>T : T, Symbol(T, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 3, 11)) +>array : T[], Symbol(array, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 3, 14)) +>T : T, Symbol(T, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 3, 11)) +>opt : any[], Symbol(opt, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 3, 25)) var a = [1, 2, 3, 4, 5]; ->a : number[] +>a : number[], Symbol(a, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 4, 3)) >[1, 2, 3, 4, 5] : number[] +>1 : number +>2 : number +>3 : number +>4 : number +>5 : number f(a); // OK >f(a) : void ->f : (array: T[], ...args: any[]) => void ->a : number[] +>f : (array: T[], ...args: any[]) => void, Symbol(f, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 0, 0)) +>a : number[], Symbol(a, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 4, 3)) g(a); // OK >g(a) : void ->g : (array: number[], ...args: any[]) => void ->a : number[] +>g : (array: number[], ...args: any[]) => void, Symbol(g, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 0, 38)) +>a : number[], Symbol(a, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 4, 3)) h(a); // OK >h(a) : void ->h : (nonarray: T, ...args: any[]) => void ->a : number[] +>h : (nonarray: T, ...args: any[]) => void, Symbol(h, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 1, 40)) +>a : number[], Symbol(a, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 4, 3)) i(a); // OK >i(a) : void ->i : (array: T[], opt?: any[]) => void ->a : number[] +>i : (array: T[], opt?: any[]) => void, Symbol(i, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 2, 39)) +>a : number[], Symbol(a, Decl(inferTypeArgumentsInSignatureWithRestParameters.ts, 4, 3)) diff --git a/tests/baselines/reference/inferenceFromParameterlessLambda.types b/tests/baselines/reference/inferenceFromParameterlessLambda.types index 8dbb8c5967c..f3a3151ef56 100644 --- a/tests/baselines/reference/inferenceFromParameterlessLambda.types +++ b/tests/baselines/reference/inferenceFromParameterlessLambda.types @@ -1,37 +1,38 @@ === tests/cases/compiler/inferenceFromParameterlessLambda.ts === function foo(o: Take, i: Make) { } ->foo : (o: Take, i: Make) => void ->T : T ->o : Take ->Take : Take ->T : T ->i : Make ->Make : Make ->T : T +>foo : (o: Take, i: Make) => void, Symbol(foo, Decl(inferenceFromParameterlessLambda.ts, 0, 0)) +>T : T, Symbol(T, Decl(inferenceFromParameterlessLambda.ts, 0, 13)) +>o : Take, Symbol(o, Decl(inferenceFromParameterlessLambda.ts, 0, 16)) +>Take : Take, Symbol(Take, Decl(inferenceFromParameterlessLambda.ts, 3, 1)) +>T : T, Symbol(T, Decl(inferenceFromParameterlessLambda.ts, 0, 13)) +>i : Make, Symbol(i, Decl(inferenceFromParameterlessLambda.ts, 0, 27)) +>Make : Make, Symbol(Make, Decl(inferenceFromParameterlessLambda.ts, 0, 43)) +>T : T, Symbol(T, Decl(inferenceFromParameterlessLambda.ts, 0, 13)) interface Make { ->Make : Make ->T : T +>Make : Make, Symbol(Make, Decl(inferenceFromParameterlessLambda.ts, 0, 43)) +>T : T, Symbol(T, Decl(inferenceFromParameterlessLambda.ts, 1, 15)) (): T; ->T : T +>T : T, Symbol(T, Decl(inferenceFromParameterlessLambda.ts, 1, 15)) } interface Take { ->Take : Take ->T : T +>Take : Take, Symbol(Take, Decl(inferenceFromParameterlessLambda.ts, 3, 1)) +>T : T, Symbol(T, Decl(inferenceFromParameterlessLambda.ts, 4, 15)) (n: T): void; ->n : T ->T : T +>n : T, Symbol(n, Decl(inferenceFromParameterlessLambda.ts, 5, 5)) +>T : T, Symbol(T, Decl(inferenceFromParameterlessLambda.ts, 4, 15)) } // Infer string from second argument because it isn't context sensitive foo(n => n.length, () => 'hi'); >foo(n => n.length, () => 'hi') : void ->foo : (o: Take, i: Make) => void +>foo : (o: Take, i: Make) => void, Symbol(foo, Decl(inferenceFromParameterlessLambda.ts, 0, 0)) >n => n.length : (n: string) => number ->n : string ->n.length : number ->n : string ->length : number +>n : string, Symbol(n, Decl(inferenceFromParameterlessLambda.ts, 8, 4)) +>n.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>n : string, Symbol(n, Decl(inferenceFromParameterlessLambda.ts, 8, 4)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) >() => 'hi' : () => string +>'hi' : string diff --git a/tests/baselines/reference/inferentialTypingWithFunctionType.types b/tests/baselines/reference/inferentialTypingWithFunctionType.types index 9f1986c49ea..c18f7fc61e8 100644 --- a/tests/baselines/reference/inferentialTypingWithFunctionType.types +++ b/tests/baselines/reference/inferentialTypingWithFunctionType.types @@ -1,26 +1,27 @@ === tests/cases/compiler/inferentialTypingWithFunctionType.ts === declare function map(x: T, f: (s: T) => U): U; ->map : (x: T, f: (s: T) => U) => U ->T : T ->U : U ->x : T ->T : T ->f : (s: T) => U ->s : T ->T : T ->U : U ->U : U +>map : (x: T, f: (s: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionType.ts, 0, 0)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionType.ts, 0, 21)) +>U : U, Symbol(U, Decl(inferentialTypingWithFunctionType.ts, 0, 23)) +>x : T, Symbol(x, Decl(inferentialTypingWithFunctionType.ts, 0, 27)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionType.ts, 0, 21)) +>f : (s: T) => U, Symbol(f, Decl(inferentialTypingWithFunctionType.ts, 0, 32)) +>s : T, Symbol(s, Decl(inferentialTypingWithFunctionType.ts, 0, 37)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionType.ts, 0, 21)) +>U : U, Symbol(U, Decl(inferentialTypingWithFunctionType.ts, 0, 23)) +>U : U, Symbol(U, Decl(inferentialTypingWithFunctionType.ts, 0, 23)) declare function identity(y: V): V; ->identity : (y: V) => V ->V : V ->y : V ->V : V ->V : V +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionType.ts, 0, 52)) +>V : V, Symbol(V, Decl(inferentialTypingWithFunctionType.ts, 1, 26)) +>y : V, Symbol(y, Decl(inferentialTypingWithFunctionType.ts, 1, 29)) +>V : V, Symbol(V, Decl(inferentialTypingWithFunctionType.ts, 1, 26)) +>V : V, Symbol(V, Decl(inferentialTypingWithFunctionType.ts, 1, 26)) var s = map("", identity); ->s : string +>s : string, Symbol(s, Decl(inferentialTypingWithFunctionType.ts, 3, 3)) >map("", identity) : string ->map : (x: T, f: (s: T) => U) => U ->identity : (y: V) => V +>map : (x: T, f: (s: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionType.ts, 0, 0)) +>"" : string +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionType.ts, 0, 52)) diff --git a/tests/baselines/reference/inferentialTypingWithFunctionType2.types b/tests/baselines/reference/inferentialTypingWithFunctionType2.types index a97bf2ab36c..f6ed8472934 100644 --- a/tests/baselines/reference/inferentialTypingWithFunctionType2.types +++ b/tests/baselines/reference/inferentialTypingWithFunctionType2.types @@ -1,20 +1,24 @@ === tests/cases/compiler/inferentialTypingWithFunctionType2.ts === function identity(a: A): A { ->identity : (a: A) => A ->A : A ->a : A ->A : A ->A : A +>identity : (a: A) => A, Symbol(identity, Decl(inferentialTypingWithFunctionType2.ts, 0, 0)) +>A : A, Symbol(A, Decl(inferentialTypingWithFunctionType2.ts, 0, 18)) +>a : A, Symbol(a, Decl(inferentialTypingWithFunctionType2.ts, 0, 21)) +>A : A, Symbol(A, Decl(inferentialTypingWithFunctionType2.ts, 0, 18)) +>A : A, Symbol(A, Decl(inferentialTypingWithFunctionType2.ts, 0, 18)) return a; ->a : A +>a : A, Symbol(a, Decl(inferentialTypingWithFunctionType2.ts, 0, 21)) } var x = [1, 2, 3].map(identity)[0]; ->x : number +>x : number, Symbol(x, Decl(inferentialTypingWithFunctionType2.ts, 3, 3)) >[1, 2, 3].map(identity)[0] : number >[1, 2, 3].map(identity) : number[] ->[1, 2, 3].map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[] +>[1, 2, 3].map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >[1, 2, 3] : number[] ->map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[] ->identity : (a: A) => A +>1 : number +>2 : number +>3 : number +>map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>identity : (a: A) => A, Symbol(identity, Decl(inferentialTypingWithFunctionType2.ts, 0, 0)) +>0 : number diff --git a/tests/baselines/reference/inferentialTypingWithFunctionTypeNested.types b/tests/baselines/reference/inferentialTypingWithFunctionTypeNested.types index c411dd00514..5d7e6d3595b 100644 --- a/tests/baselines/reference/inferentialTypingWithFunctionTypeNested.types +++ b/tests/baselines/reference/inferentialTypingWithFunctionTypeNested.types @@ -1,30 +1,31 @@ === tests/cases/compiler/inferentialTypingWithFunctionTypeNested.ts === declare function map(x: T, f: () => { x: (s: T) => U }): U; ->map : (x: T, f: () => { x: (s: T) => U; }) => U ->T : T ->U : U ->x : T ->T : T ->f : () => { x: (s: T) => U; } ->x : (s: T) => U ->s : T ->T : T ->U : U ->U : U +>map : (x: T, f: () => { x: (s: T) => U; }) => U, Symbol(map, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 0)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 21)) +>U : U, Symbol(U, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 23)) +>x : T, Symbol(x, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 27)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 21)) +>f : () => { x: (s: T) => U; }, Symbol(f, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 32)) +>x : (s: T) => U, Symbol(x, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 43)) +>s : T, Symbol(s, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 48)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 21)) +>U : U, Symbol(U, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 23)) +>U : U, Symbol(U, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 23)) declare function identity(y: V): V; ->identity : (y: V) => V ->V : V ->y : V ->V : V ->V : V +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 65)) +>V : V, Symbol(V, Decl(inferentialTypingWithFunctionTypeNested.ts, 1, 26)) +>y : V, Symbol(y, Decl(inferentialTypingWithFunctionTypeNested.ts, 1, 29)) +>V : V, Symbol(V, Decl(inferentialTypingWithFunctionTypeNested.ts, 1, 26)) +>V : V, Symbol(V, Decl(inferentialTypingWithFunctionTypeNested.ts, 1, 26)) var s = map("", () => { return { x: identity }; }); ->s : string +>s : string, Symbol(s, Decl(inferentialTypingWithFunctionTypeNested.ts, 3, 3)) >map("", () => { return { x: identity }; }) : string ->map : (x: T, f: () => { x: (s: T) => U; }) => U +>map : (x: T, f: () => { x: (s: T) => U; }) => U, Symbol(map, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 0)) +>"" : string >() => { return { x: identity }; } : () => { x: (y: string) => string; } >{ x: identity } : { x: (y: V) => V; } ->x : (y: V) => V ->identity : (y: V) => V +>x : (y: V) => V, Symbol(x, Decl(inferentialTypingWithFunctionTypeNested.ts, 3, 32)) +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionTypeNested.ts, 0, 65)) diff --git a/tests/baselines/reference/inferentialTypingWithFunctionTypeSyntacticScenarios.types b/tests/baselines/reference/inferentialTypingWithFunctionTypeSyntacticScenarios.types index 115da50176f..c73306075a9 100644 --- a/tests/baselines/reference/inferentialTypingWithFunctionTypeSyntacticScenarios.types +++ b/tests/baselines/reference/inferentialTypingWithFunctionTypeSyntacticScenarios.types @@ -1,120 +1,130 @@ === tests/cases/compiler/inferentialTypingWithFunctionTypeSyntacticScenarios.ts === declare function map(array: T, func: (x: T) => U): U; ->map : (array: T, func: (x: T) => U) => U ->T : T ->U : U ->array : T ->T : T ->func : (x: T) => U ->x : T ->T : T ->U : U ->U : U +>map : (array: T, func: (x: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 0)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 21)) +>U : U, Symbol(U, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 23)) +>array : T, Symbol(array, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 27)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 21)) +>func : (x: T) => U, Symbol(func, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 36)) +>x : T, Symbol(x, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 44)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 21)) +>U : U, Symbol(U, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 23)) +>U : U, Symbol(U, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 23)) declare function identity(y: V): V; ->identity : (y: V) => V ->V : V ->y : V ->V : V ->V : V +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 59)) +>V : V, Symbol(V, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 1, 26)) +>y : V, Symbol(y, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 1, 29)) +>V : V, Symbol(V, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 1, 26)) +>V : V, Symbol(V, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 1, 26)) var s: string; ->s : string +>s : string, Symbol(s, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 2, 3)) // dotted name var dottedIdentity = { x: identity }; ->dottedIdentity : { x: (y: V) => V; } +>dottedIdentity : { x: (y: V) => V; }, Symbol(dottedIdentity, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 5, 3)) >{ x: identity } : { x: (y: V) => V; } ->x : (y: V) => V ->identity : (y: V) => V +>x : (y: V) => V, Symbol(x, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 5, 22)) +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 59)) s = map("", dottedIdentity.x); >s = map("", dottedIdentity.x) : string ->s : string +>s : string, Symbol(s, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 2, 3)) >map("", dottedIdentity.x) : string ->map : (array: T, func: (x: T) => U) => U ->dottedIdentity.x : (y: V) => V ->dottedIdentity : { x: (y: V) => V; } ->x : (y: V) => V +>map : (array: T, func: (x: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 0)) +>"" : string +>dottedIdentity.x : (y: V) => V, Symbol(x, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 5, 22)) +>dottedIdentity : { x: (y: V) => V; }, Symbol(dottedIdentity, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 5, 3)) +>x : (y: V) => V, Symbol(x, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 5, 22)) // index expression s = map("", dottedIdentity['x']); >s = map("", dottedIdentity['x']) : string ->s : string +>s : string, Symbol(s, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 2, 3)) >map("", dottedIdentity['x']) : string ->map : (array: T, func: (x: T) => U) => U +>map : (array: T, func: (x: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 0)) +>"" : string >dottedIdentity['x'] : (y: V) => V ->dottedIdentity : { x: (y: V) => V; } +>dottedIdentity : { x: (y: V) => V; }, Symbol(dottedIdentity, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 5, 3)) +>'x' : string, Symbol(x, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 5, 22)) // function call s = map("", (() => identity)()); >s = map("", (() => identity)()) : string ->s : string +>s : string, Symbol(s, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 2, 3)) >map("", (() => identity)()) : string ->map : (array: T, func: (x: T) => U) => U +>map : (array: T, func: (x: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 0)) +>"" : string >(() => identity)() : (y: V) => V >(() => identity) : () => (y: V) => V >() => identity : () => (y: V) => V ->identity : (y: V) => V +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 59)) // construct interface IdentityConstructor { ->IdentityConstructor : IdentityConstructor +>IdentityConstructor : IdentityConstructor, Symbol(IdentityConstructor, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 12, 32)) new (): typeof identity; ->identity : (y: V) => V +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 59)) } var ic: IdentityConstructor; ->ic : IdentityConstructor ->IdentityConstructor : IdentityConstructor +>ic : IdentityConstructor, Symbol(ic, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 18, 3)) +>IdentityConstructor : IdentityConstructor, Symbol(IdentityConstructor, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 12, 32)) s = map("", new ic()); >s = map("", new ic()) : string ->s : string +>s : string, Symbol(s, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 2, 3)) >map("", new ic()) : string ->map : (array: T, func: (x: T) => U) => U +>map : (array: T, func: (x: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 0)) +>"" : string >new ic() : (y: V) => V ->ic : IdentityConstructor +>ic : IdentityConstructor, Symbol(ic, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 18, 3)) // assignment var t; ->t : any +>t : any, Symbol(t, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 22, 3)) s = map("", t = identity); >s = map("", t = identity) : string ->s : string +>s : string, Symbol(s, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 2, 3)) >map("", t = identity) : string ->map : (array: T, func: (x: T) => U) => U +>map : (array: T, func: (x: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 0)) +>"" : string >t = identity : (y: V) => V ->t : any ->identity : (y: V) => V +>t : any, Symbol(t, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 22, 3)) +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 59)) // type assertion s = map("", identity); >s = map("", identity) : string ->s : string +>s : string, Symbol(s, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 2, 3)) >map("", identity) : string ->map : (array: T, func: (x: T) => U) => U +>map : (array: T, func: (x: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 0)) +>"" : string >identity : (y: V) => V ->identity : (y: V) => V ->identity : (y: V) => V +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 59)) +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 59)) // parenthesized expression s = map("", (identity)); >s = map("", (identity)) : string ->s : string +>s : string, Symbol(s, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 2, 3)) >map("", (identity)) : string ->map : (array: T, func: (x: T) => U) => U +>map : (array: T, func: (x: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 0)) +>"" : string >(identity) : (y: V) => V ->identity : (y: V) => V +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 59)) // comma s = map("", ("", identity)); >s = map("", ("", identity)) : string ->s : string +>s : string, Symbol(s, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 2, 3)) >map("", ("", identity)) : string ->map : (array: T, func: (x: T) => U) => U +>map : (array: T, func: (x: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 0)) +>"" : string >("", identity) : (y: V) => V >"", identity : (y: V) => V ->identity : (y: V) => V +>"" : string +>identity : (y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionTypeSyntacticScenarios.ts, 0, 59)) diff --git a/tests/baselines/reference/inferentialTypingWithFunctionTypeZip.types b/tests/baselines/reference/inferentialTypingWithFunctionTypeZip.types index 53a9dff0b48..785b9defdfb 100644 --- a/tests/baselines/reference/inferentialTypingWithFunctionTypeZip.types +++ b/tests/baselines/reference/inferentialTypingWithFunctionTypeZip.types @@ -1,46 +1,51 @@ === tests/cases/compiler/inferentialTypingWithFunctionTypeZip.ts === var pair: (x: T) => (y: S) => { x: T; y: S; } ->pair : (x: T) => (y: S) => { x: T; y: S; } ->T : T ->S : S ->x : T ->T : T ->y : S ->S : S ->x : T ->T : T ->y : S ->S : S +>pair : (x: T) => (y: S) => { x: T; y: S; }, Symbol(pair, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 3)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 11)) +>S : S, Symbol(S, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 13)) +>x : T, Symbol(x, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 17)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 11)) +>y : S, Symbol(y, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 27)) +>S : S, Symbol(S, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 13)) +>x : T, Symbol(x, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 37)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 11)) +>y : S, Symbol(y, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 43)) +>S : S, Symbol(S, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 13)) var zipWith: (a: T[], b: S[], f: (x: T) => (y: S) => U) => U[]; ->zipWith : (a: T[], b: S[], f: (x: T) => (y: S) => U) => U[] ->T : T ->S : S ->U : U ->a : T[] ->T : T ->b : S[] ->S : S ->f : (x: T) => (y: S) => U ->x : T ->T : T ->y : S ->S : S ->U : U ->U : U +>zipWith : (a: T[], b: S[], f: (x: T) => (y: S) => U) => U[], Symbol(zipWith, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 3)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 14)) +>S : S, Symbol(S, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 16)) +>U : U, Symbol(U, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 19)) +>a : T[], Symbol(a, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 23)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 14)) +>b : S[], Symbol(b, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 30)) +>S : S, Symbol(S, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 16)) +>f : (x: T) => (y: S) => U, Symbol(f, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 38)) +>x : T, Symbol(x, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 43)) +>T : T, Symbol(T, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 14)) +>y : S, Symbol(y, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 53)) +>S : S, Symbol(S, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 16)) +>U : U, Symbol(U, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 19)) +>U : U, Symbol(U, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 19)) var result = zipWith([1, 2], ['a', 'b'], pair); ->result : { x: number; y: {}; }[] +>result : { x: number; y: {}; }[], Symbol(result, Decl(inferentialTypingWithFunctionTypeZip.ts, 2, 3)) >zipWith([1, 2], ['a', 'b'], pair) : { x: number; y: {}; }[] ->zipWith : (a: T[], b: S[], f: (x: T) => (y: S) => U) => U[] +>zipWith : (a: T[], b: S[], f: (x: T) => (y: S) => U) => U[], Symbol(zipWith, Decl(inferentialTypingWithFunctionTypeZip.ts, 1, 3)) >[1, 2] : number[] +>1 : number +>2 : number >['a', 'b'] : string[] ->pair : (x: T) => (y: S) => { x: T; y: S; } +>'a' : string +>'b' : string +>pair : (x: T) => (y: S) => { x: T; y: S; }, Symbol(pair, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 3)) var i = result[0].x; // number ->i : number ->result[0].x : number +>i : number, Symbol(i, Decl(inferentialTypingWithFunctionTypeZip.ts, 3, 3)) +>result[0].x : number, Symbol(x, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 37)) >result[0] : { x: number; y: {}; } ->result : { x: number; y: {}; }[] ->x : number +>result : { x: number; y: {}; }[], Symbol(result, Decl(inferentialTypingWithFunctionTypeZip.ts, 2, 3)) +>0 : number +>x : number, Symbol(x, Decl(inferentialTypingWithFunctionTypeZip.ts, 0, 37)) diff --git a/tests/baselines/reference/inferentiallyTypingAnEmptyArray.types b/tests/baselines/reference/inferentiallyTypingAnEmptyArray.types index 451280ee16f..9f8fad62e94 100644 --- a/tests/baselines/reference/inferentiallyTypingAnEmptyArray.types +++ b/tests/baselines/reference/inferentiallyTypingAnEmptyArray.types @@ -15,16 +15,16 @@ // Therefore, the following access to bar should not cause an error because we infer // the undefined[] type. declare function foo(arr: T[]): T; ->foo : (arr: T[]) => T ->T : T ->arr : T[] ->T : T ->T : T +>foo : (arr: T[]) => T, Symbol(foo, Decl(inferentiallyTypingAnEmptyArray.ts, 0, 0)) +>T : T, Symbol(T, Decl(inferentiallyTypingAnEmptyArray.ts, 15, 21)) +>arr : T[], Symbol(arr, Decl(inferentiallyTypingAnEmptyArray.ts, 15, 24)) +>T : T, Symbol(T, Decl(inferentiallyTypingAnEmptyArray.ts, 15, 21)) +>T : T, Symbol(T, Decl(inferentiallyTypingAnEmptyArray.ts, 15, 21)) foo([]).bar; >foo([]).bar : any >foo([]) : any ->foo : (arr: T[]) => T +>foo : (arr: T[]) => T, Symbol(foo, Decl(inferentiallyTypingAnEmptyArray.ts, 0, 0)) >[] : undefined[] >bar : any diff --git a/tests/baselines/reference/infiniteExpandingTypeThroughInheritanceInstantiation.types b/tests/baselines/reference/infiniteExpandingTypeThroughInheritanceInstantiation.types index 06416e6b02d..529dcd54012 100644 --- a/tests/baselines/reference/infiniteExpandingTypeThroughInheritanceInstantiation.types +++ b/tests/baselines/reference/infiniteExpandingTypeThroughInheritanceInstantiation.types @@ -1,25 +1,25 @@ === tests/cases/compiler/infiniteExpandingTypeThroughInheritanceInstantiation.ts === interface A ->A : A ->T : T +>A : A, Symbol(A, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 0, 0)) +>T : T, Symbol(T, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 0, 12)) { x: A> ->x : A> ->A : A ->B : B ->T : T +>x : A>, Symbol(x, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 1, 1)) +>A : A, Symbol(A, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 0, 0)) +>B : B, Symbol(B, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 3, 1)) +>T : T, Symbol(T, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 0, 12)) } interface B extends A // error ->B : B ->T : T ->A : A ->T : T +>B : B, Symbol(B, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 3, 1)) +>T : T, Symbol(T, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 5, 12)) +>A : A, Symbol(A, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 0, 0)) +>T : T, Symbol(T, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 5, 12)) { x: B> ->x : B> ->B : B ->A : A ->T : T +>x : B>, Symbol(x, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 6, 1)) +>B : B, Symbol(B, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 3, 1)) +>A : A, Symbol(A, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 0, 0)) +>T : T, Symbol(T, Decl(infiniteExpandingTypeThroughInheritanceInstantiation.ts, 5, 12)) } diff --git a/tests/baselines/reference/infiniteExpansionThroughTypeInference.types b/tests/baselines/reference/infiniteExpansionThroughTypeInference.types index df818833aa0..32790b152c5 100644 --- a/tests/baselines/reference/infiniteExpansionThroughTypeInference.types +++ b/tests/baselines/reference/infiniteExpansionThroughTypeInference.types @@ -1,30 +1,30 @@ === tests/cases/conformance/types/typeRelationships/recursiveTypes/infiniteExpansionThroughTypeInference.ts === interface G { ->G : G ->T : T +>G : G, Symbol(G, Decl(infiniteExpansionThroughTypeInference.ts, 0, 0)) +>T : T, Symbol(T, Decl(infiniteExpansionThroughTypeInference.ts, 0, 12)) x: G> // infinitely expanding type reference ->x : G> ->G : G ->G : G ->T : T +>x : G>, Symbol(x, Decl(infiniteExpansionThroughTypeInference.ts, 0, 16)) +>G : G, Symbol(G, Decl(infiniteExpansionThroughTypeInference.ts, 0, 0)) +>G : G, Symbol(G, Decl(infiniteExpansionThroughTypeInference.ts, 0, 0)) +>T : T, Symbol(T, Decl(infiniteExpansionThroughTypeInference.ts, 0, 12)) y: T ->y : T ->T : T +>y : T, Symbol(y, Decl(infiniteExpansionThroughTypeInference.ts, 1, 14)) +>T : T, Symbol(T, Decl(infiniteExpansionThroughTypeInference.ts, 0, 12)) } function ff(g: G): void { ->ff : (g: G) => void ->T : T ->g : G ->G : G ->T : T +>ff : (g: G) => void, Symbol(ff, Decl(infiniteExpansionThroughTypeInference.ts, 3, 1)) +>T : T, Symbol(T, Decl(infiniteExpansionThroughTypeInference.ts, 5, 12)) +>g : G, Symbol(g, Decl(infiniteExpansionThroughTypeInference.ts, 5, 15)) +>G : G, Symbol(G, Decl(infiniteExpansionThroughTypeInference.ts, 0, 0)) +>T : T, Symbol(T, Decl(infiniteExpansionThroughTypeInference.ts, 5, 12)) ff(g) // when infering T here we need to make sure to not descend into the structure of G infinitely >ff(g) : void ->ff : (g: G) => void ->g : G +>ff : (g: G) => void, Symbol(ff, Decl(infiniteExpansionThroughTypeInference.ts, 3, 1)) +>g : G, Symbol(g, Decl(infiniteExpansionThroughTypeInference.ts, 5, 15)) } diff --git a/tests/baselines/reference/infinitelyExpandingBaseTypes1.types b/tests/baselines/reference/infinitelyExpandingBaseTypes1.types index a1d87a4a807..21507ed2d93 100644 --- a/tests/baselines/reference/infinitelyExpandingBaseTypes1.types +++ b/tests/baselines/reference/infinitelyExpandingBaseTypes1.types @@ -1,32 +1,32 @@ === tests/cases/compiler/infinitelyExpandingBaseTypes1.ts === interface A ->A : A ->T : T +>A : A, Symbol(A, Decl(infinitelyExpandingBaseTypes1.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingBaseTypes1.ts, 0, 12)) { x : A> ->x : A> ->A : A ->A : A ->T : T +>x : A>, Symbol(x, Decl(infinitelyExpandingBaseTypes1.ts, 1, 1)) +>A : A, Symbol(A, Decl(infinitelyExpandingBaseTypes1.ts, 0, 0)) +>A : A, Symbol(A, Decl(infinitelyExpandingBaseTypes1.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingBaseTypes1.ts, 0, 12)) } interface B ->B : B ->T : T +>B : B, Symbol(B, Decl(infinitelyExpandingBaseTypes1.ts, 3, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingBaseTypes1.ts, 5, 12)) { x : B ->x : B ->B : B ->T : T +>x : B, Symbol(x, Decl(infinitelyExpandingBaseTypes1.ts, 6, 1)) +>B : B, Symbol(B, Decl(infinitelyExpandingBaseTypes1.ts, 3, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingBaseTypes1.ts, 5, 12)) } interface C extends A, B { } ->C : C ->T : T ->A : A ->T : T ->B : B ->T : T +>C : C, Symbol(C, Decl(infinitelyExpandingBaseTypes1.ts, 8, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingBaseTypes1.ts, 10, 12)) +>A : A, Symbol(A, Decl(infinitelyExpandingBaseTypes1.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingBaseTypes1.ts, 10, 12)) +>B : B, Symbol(B, Decl(infinitelyExpandingBaseTypes1.ts, 3, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingBaseTypes1.ts, 10, 12)) diff --git a/tests/baselines/reference/infinitelyExpandingBaseTypes2.types b/tests/baselines/reference/infinitelyExpandingBaseTypes2.types index 8b258f5b2be..4cacb0c78f7 100644 --- a/tests/baselines/reference/infinitelyExpandingBaseTypes2.types +++ b/tests/baselines/reference/infinitelyExpandingBaseTypes2.types @@ -1,30 +1,30 @@ === tests/cases/compiler/infinitelyExpandingBaseTypes2.ts === interface A ->A : A ->T : T +>A : A, Symbol(A, Decl(infinitelyExpandingBaseTypes2.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingBaseTypes2.ts, 0, 12)) { x : A<()=>T> ->x : A<() => T> ->A : A ->T : T +>x : A<() => T>, Symbol(x, Decl(infinitelyExpandingBaseTypes2.ts, 1, 1)) +>A : A, Symbol(A, Decl(infinitelyExpandingBaseTypes2.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingBaseTypes2.ts, 0, 12)) } interface B ->B : B ->T : T +>B : B, Symbol(B, Decl(infinitelyExpandingBaseTypes2.ts, 3, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingBaseTypes2.ts, 5, 12)) { x : B<()=>T> ->x : B<() => T> ->B : B ->T : T +>x : B<() => T>, Symbol(x, Decl(infinitelyExpandingBaseTypes2.ts, 6, 1)) +>B : B, Symbol(B, Decl(infinitelyExpandingBaseTypes2.ts, 3, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingBaseTypes2.ts, 5, 12)) } var a: A ->a : A ->A : A +>a : A, Symbol(a, Decl(infinitelyExpandingBaseTypes2.ts, 10, 3)) +>A : A, Symbol(A, Decl(infinitelyExpandingBaseTypes2.ts, 0, 0)) var b: B = a ->b : B ->B : B ->a : A +>b : B, Symbol(b, Decl(infinitelyExpandingBaseTypes2.ts, 11, 3)) +>B : B, Symbol(B, Decl(infinitelyExpandingBaseTypes2.ts, 3, 1)) +>a : A, Symbol(a, Decl(infinitelyExpandingBaseTypes2.ts, 10, 3)) diff --git a/tests/baselines/reference/infinitelyExpandingTypeAssignability.types b/tests/baselines/reference/infinitelyExpandingTypeAssignability.types index c145a60cdf1..c81dd358275 100644 --- a/tests/baselines/reference/infinitelyExpandingTypeAssignability.types +++ b/tests/baselines/reference/infinitelyExpandingTypeAssignability.types @@ -1,37 +1,37 @@ === tests/cases/compiler/infinitelyExpandingTypeAssignability.ts === interface A { ->A : A ->T : T +>A : A, Symbol(A, Decl(infinitelyExpandingTypeAssignability.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypeAssignability.ts, 0, 12)) x : T ->x : T ->T : T +>x : T, Symbol(x, Decl(infinitelyExpandingTypeAssignability.ts, 0, 16)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypeAssignability.ts, 0, 12)) } interface B extends A>>> { } ->B : B ->T : T ->A : A ->B : B ->B : B ->B : B ->T : T +>B : B, Symbol(B, Decl(infinitelyExpandingTypeAssignability.ts, 2, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypeAssignability.ts, 4, 12)) +>A : A, Symbol(A, Decl(infinitelyExpandingTypeAssignability.ts, 0, 0)) +>B : B, Symbol(B, Decl(infinitelyExpandingTypeAssignability.ts, 2, 1)) +>B : B, Symbol(B, Decl(infinitelyExpandingTypeAssignability.ts, 2, 1)) +>B : B, Symbol(B, Decl(infinitelyExpandingTypeAssignability.ts, 2, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypeAssignability.ts, 4, 12)) interface C extends A>>> { } ->C : C ->T : T ->A : A ->C : C ->C : C ->C : C ->T : T +>C : C, Symbol(C, Decl(infinitelyExpandingTypeAssignability.ts, 4, 40)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypeAssignability.ts, 6, 12)) +>A : A, Symbol(A, Decl(infinitelyExpandingTypeAssignability.ts, 0, 0)) +>C : C, Symbol(C, Decl(infinitelyExpandingTypeAssignability.ts, 4, 40)) +>C : C, Symbol(C, Decl(infinitelyExpandingTypeAssignability.ts, 4, 40)) +>C : C, Symbol(C, Decl(infinitelyExpandingTypeAssignability.ts, 4, 40)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypeAssignability.ts, 6, 12)) var x : B ->x : B ->B : B +>x : B, Symbol(x, Decl(infinitelyExpandingTypeAssignability.ts, 8, 3)) +>B : B, Symbol(B, Decl(infinitelyExpandingTypeAssignability.ts, 2, 1)) var y : C = x ->y : C ->C : C ->x : B +>y : C, Symbol(y, Decl(infinitelyExpandingTypeAssignability.ts, 9, 3)) +>C : C, Symbol(C, Decl(infinitelyExpandingTypeAssignability.ts, 4, 40)) +>x : B, Symbol(x, Decl(infinitelyExpandingTypeAssignability.ts, 8, 3)) diff --git a/tests/baselines/reference/infinitelyExpandingTypes3.types b/tests/baselines/reference/infinitelyExpandingTypes3.types index b63c8796253..9d4faac2fb1 100644 --- a/tests/baselines/reference/infinitelyExpandingTypes3.types +++ b/tests/baselines/reference/infinitelyExpandingTypes3.types @@ -1,55 +1,55 @@ === tests/cases/compiler/infinitelyExpandingTypes3.ts === interface List { ->List : List ->T : T +>List : List, Symbol(List, Decl(infinitelyExpandingTypes3.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes3.ts, 0, 15)) data: T; ->data : T ->T : T +>data : T, Symbol(data, Decl(infinitelyExpandingTypes3.ts, 0, 19)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes3.ts, 0, 15)) next: List; // will be recursive reference when OwnerList is expanded ->next : List ->List : List ->T : T +>next : List, Symbol(next, Decl(infinitelyExpandingTypes3.ts, 1, 12)) +>List : List, Symbol(List, Decl(infinitelyExpandingTypes3.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes3.ts, 0, 15)) owner: OwnerList; ->owner : OwnerList ->OwnerList : OwnerList ->T : T +>owner : OwnerList, Symbol(owner, Decl(infinitelyExpandingTypes3.ts, 2, 18)) +>OwnerList : OwnerList, Symbol(OwnerList, Decl(infinitelyExpandingTypes3.ts, 4, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes3.ts, 0, 15)) } interface OwnerList extends List> { ->OwnerList : OwnerList ->U : U ->List : List ->List : List ->U : U +>OwnerList : OwnerList, Symbol(OwnerList, Decl(infinitelyExpandingTypes3.ts, 4, 1)) +>U : U, Symbol(U, Decl(infinitelyExpandingTypes3.ts, 6, 20)) +>List : List, Symbol(List, Decl(infinitelyExpandingTypes3.ts, 0, 0)) +>List : List, Symbol(List, Decl(infinitelyExpandingTypes3.ts, 0, 0)) +>U : U, Symbol(U, Decl(infinitelyExpandingTypes3.ts, 6, 20)) name: string; ->name : string +>name : string, Symbol(name, Decl(infinitelyExpandingTypes3.ts, 6, 46)) } interface OwnerList2 extends List> { ->OwnerList2 : OwnerList2 ->U : U ->List : List ->List : List ->U : U +>OwnerList2 : OwnerList2, Symbol(OwnerList2, Decl(infinitelyExpandingTypes3.ts, 8, 1)) +>U : U, Symbol(U, Decl(infinitelyExpandingTypes3.ts, 10, 21)) +>List : List, Symbol(List, Decl(infinitelyExpandingTypes3.ts, 0, 0)) +>List : List, Symbol(List, Decl(infinitelyExpandingTypes3.ts, 0, 0)) +>U : U, Symbol(U, Decl(infinitelyExpandingTypes3.ts, 10, 21)) name: string; ->name : string +>name : string, Symbol(name, Decl(infinitelyExpandingTypes3.ts, 10, 47)) } var o1: OwnerList; ->o1 : OwnerList ->OwnerList : OwnerList +>o1 : OwnerList, Symbol(o1, Decl(infinitelyExpandingTypes3.ts, 14, 3)) +>OwnerList : OwnerList, Symbol(OwnerList, Decl(infinitelyExpandingTypes3.ts, 4, 1)) var o2: OwnerList2; ->o2 : OwnerList2 ->OwnerList2 : OwnerList2 +>o2 : OwnerList2, Symbol(o2, Decl(infinitelyExpandingTypes3.ts, 15, 3)) +>OwnerList2 : OwnerList2, Symbol(OwnerList2, Decl(infinitelyExpandingTypes3.ts, 8, 1)) o1 = o2; // should not error >o1 = o2 : OwnerList2 ->o1 : OwnerList ->o2 : OwnerList2 +>o1 : OwnerList, Symbol(o1, Decl(infinitelyExpandingTypes3.ts, 14, 3)) +>o2 : OwnerList2, Symbol(o2, Decl(infinitelyExpandingTypes3.ts, 15, 3)) diff --git a/tests/baselines/reference/infinitelyExpandingTypes4.types b/tests/baselines/reference/infinitelyExpandingTypes4.types index 7309d709561..3970ec39a1f 100644 --- a/tests/baselines/reference/infinitelyExpandingTypes4.types +++ b/tests/baselines/reference/infinitelyExpandingTypes4.types @@ -1,75 +1,75 @@ === tests/cases/compiler/infinitelyExpandingTypes4.ts === interface Query { ->Query : Query ->T : T +>Query : Query, Symbol(Query, Decl(infinitelyExpandingTypes4.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes4.ts, 0, 16)) // ... groupBy(keySelector: (item: T) => K): Query>; ->groupBy : (keySelector: (item: T) => K) => Query> ->K : K ->keySelector : (item: T) => K ->item : T ->T : T ->K : K ->Query : Query ->Grouping : Grouping ->K : K ->T : T +>groupBy : (keySelector: (item: T) => K) => Query>, Symbol(groupBy, Decl(infinitelyExpandingTypes4.ts, 0, 20)) +>K : K, Symbol(K, Decl(infinitelyExpandingTypes4.ts, 2, 12)) +>keySelector : (item: T) => K, Symbol(keySelector, Decl(infinitelyExpandingTypes4.ts, 2, 15)) +>item : T, Symbol(item, Decl(infinitelyExpandingTypes4.ts, 2, 29)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes4.ts, 0, 16)) +>K : K, Symbol(K, Decl(infinitelyExpandingTypes4.ts, 2, 12)) +>Query : Query, Symbol(Query, Decl(infinitelyExpandingTypes4.ts, 0, 0)) +>Grouping : Grouping, Symbol(Grouping, Decl(infinitelyExpandingTypes4.ts, 10, 1)) +>K : K, Symbol(K, Decl(infinitelyExpandingTypes4.ts, 2, 12)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes4.ts, 0, 16)) // ... } interface QueryEnumerator { ->QueryEnumerator : QueryEnumerator ->T : T +>QueryEnumerator : QueryEnumerator, Symbol(QueryEnumerator, Decl(infinitelyExpandingTypes4.ts, 4, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes4.ts, 6, 26)) // ... groupBy(keySelector: (item: T) => K): QueryEnumerator>; ->groupBy : (keySelector: (item: T) => K) => QueryEnumerator> ->K : K ->keySelector : (item: T) => K ->item : T ->T : T ->K : K ->QueryEnumerator : QueryEnumerator ->Grouping : Grouping ->K : K ->T : T +>groupBy : (keySelector: (item: T) => K) => QueryEnumerator>, Symbol(groupBy, Decl(infinitelyExpandingTypes4.ts, 6, 30)) +>K : K, Symbol(K, Decl(infinitelyExpandingTypes4.ts, 8, 12)) +>keySelector : (item: T) => K, Symbol(keySelector, Decl(infinitelyExpandingTypes4.ts, 8, 15)) +>item : T, Symbol(item, Decl(infinitelyExpandingTypes4.ts, 8, 29)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes4.ts, 6, 26)) +>K : K, Symbol(K, Decl(infinitelyExpandingTypes4.ts, 8, 12)) +>QueryEnumerator : QueryEnumerator, Symbol(QueryEnumerator, Decl(infinitelyExpandingTypes4.ts, 4, 1)) +>Grouping : Grouping, Symbol(Grouping, Decl(infinitelyExpandingTypes4.ts, 10, 1)) +>K : K, Symbol(K, Decl(infinitelyExpandingTypes4.ts, 8, 12)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes4.ts, 6, 26)) // ... } interface Grouping extends Query { ->Grouping : Grouping ->K : K ->T : T ->Query : Query ->T : T +>Grouping : Grouping, Symbol(Grouping, Decl(infinitelyExpandingTypes4.ts, 10, 1)) +>K : K, Symbol(K, Decl(infinitelyExpandingTypes4.ts, 12, 19)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes4.ts, 12, 21)) +>Query : Query, Symbol(Query, Decl(infinitelyExpandingTypes4.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes4.ts, 12, 21)) key(): K; ->key : () => K ->K : K +>key : () => K, Symbol(key, Decl(infinitelyExpandingTypes4.ts, 12, 43)) +>K : K, Symbol(K, Decl(infinitelyExpandingTypes4.ts, 12, 19)) } var q1: Query; ->q1 : Query ->Query : Query +>q1 : Query, Symbol(q1, Decl(infinitelyExpandingTypes4.ts, 16, 3)) +>Query : Query, Symbol(Query, Decl(infinitelyExpandingTypes4.ts, 0, 0)) var q2: QueryEnumerator; ->q2 : QueryEnumerator ->QueryEnumerator : QueryEnumerator +>q2 : QueryEnumerator, Symbol(q2, Decl(infinitelyExpandingTypes4.ts, 17, 3)) +>QueryEnumerator : QueryEnumerator, Symbol(QueryEnumerator, Decl(infinitelyExpandingTypes4.ts, 4, 1)) var q3: Query; ->q3 : Query ->Query : Query +>q3 : Query, Symbol(q3, Decl(infinitelyExpandingTypes4.ts, 18, 3)) +>Query : Query, Symbol(Query, Decl(infinitelyExpandingTypes4.ts, 0, 0)) q1 = q2; // should error >q1 = q2 : QueryEnumerator ->q1 : Query ->q2 : QueryEnumerator +>q1 : Query, Symbol(q1, Decl(infinitelyExpandingTypes4.ts, 16, 3)) +>q2 : QueryEnumerator, Symbol(q2, Decl(infinitelyExpandingTypes4.ts, 17, 3)) q1 = q3; // should not error >q1 = q3 : Query ->q1 : Query ->q3 : Query +>q1 : Query, Symbol(q1, Decl(infinitelyExpandingTypes4.ts, 16, 3)) +>q3 : Query, Symbol(q3, Decl(infinitelyExpandingTypes4.ts, 18, 3)) diff --git a/tests/baselines/reference/infinitelyExpandingTypes5.types b/tests/baselines/reference/infinitelyExpandingTypes5.types index f145ff9539f..ebecd7d7eea 100644 --- a/tests/baselines/reference/infinitelyExpandingTypes5.types +++ b/tests/baselines/reference/infinitelyExpandingTypes5.types @@ -1,49 +1,49 @@ === tests/cases/compiler/infinitelyExpandingTypes5.ts === interface Query { ->Query : Query ->T : T +>Query : Query, Symbol(Query, Decl(infinitelyExpandingTypes5.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes5.ts, 0, 16)) foo(x: T): Query; ->foo : (x: T) => Query ->x : T ->T : T ->Query : Query ->T : T +>foo : (x: T) => Query, Symbol(foo, Decl(infinitelyExpandingTypes5.ts, 0, 20)) +>x : T, Symbol(x, Decl(infinitelyExpandingTypes5.ts, 1, 8)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes5.ts, 0, 16)) +>Query : Query, Symbol(Query, Decl(infinitelyExpandingTypes5.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes5.ts, 0, 16)) } interface Enumerator { ->Enumerator : Enumerator ->T : T +>Enumerator : Enumerator, Symbol(Enumerator, Decl(infinitelyExpandingTypes5.ts, 2, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes5.ts, 4, 21)) (action: (item: T, index: number) => boolean): boolean; ->action : (item: T, index: number) => boolean ->item : T ->T : T ->index : number +>action : (item: T, index: number) => boolean, Symbol(action, Decl(infinitelyExpandingTypes5.ts, 5, 5)) +>item : T, Symbol(item, Decl(infinitelyExpandingTypes5.ts, 5, 14)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes5.ts, 4, 21)) +>index : number, Symbol(index, Decl(infinitelyExpandingTypes5.ts, 5, 22)) } function from(array: T[]): Query; ->from : { (array: T[]): Query; (enumerator: Enumerator): Query; } ->T : T ->array : T[] ->T : T ->Query : Query ->T : T +>from : { (array: T[]): Query; (enumerator: Enumerator): Query; }, Symbol(from, Decl(infinitelyExpandingTypes5.ts, 6, 1), Decl(infinitelyExpandingTypes5.ts, 8, 39), Decl(infinitelyExpandingTypes5.ts, 9, 54)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes5.ts, 8, 14)) +>array : T[], Symbol(array, Decl(infinitelyExpandingTypes5.ts, 8, 17)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes5.ts, 8, 14)) +>Query : Query, Symbol(Query, Decl(infinitelyExpandingTypes5.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes5.ts, 8, 14)) function from(enumerator: Enumerator): Query; ->from : { (array: T[]): Query; (enumerator: Enumerator): Query; } ->T : T ->enumerator : Enumerator ->Enumerator : Enumerator ->T : T ->Query : Query ->T : T +>from : { (array: T[]): Query; (enumerator: Enumerator): Query; }, Symbol(from, Decl(infinitelyExpandingTypes5.ts, 6, 1), Decl(infinitelyExpandingTypes5.ts, 8, 39), Decl(infinitelyExpandingTypes5.ts, 9, 54)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes5.ts, 9, 14)) +>enumerator : Enumerator, Symbol(enumerator, Decl(infinitelyExpandingTypes5.ts, 9, 17)) +>Enumerator : Enumerator, Symbol(Enumerator, Decl(infinitelyExpandingTypes5.ts, 2, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes5.ts, 9, 14)) +>Query : Query, Symbol(Query, Decl(infinitelyExpandingTypes5.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypes5.ts, 9, 14)) function from(arg: any): any { ->from : { (array: T[]): Query; (enumerator: Enumerator): Query; } ->arg : any +>from : { (array: T[]): Query; (enumerator: Enumerator): Query; }, Symbol(from, Decl(infinitelyExpandingTypes5.ts, 6, 1), Decl(infinitelyExpandingTypes5.ts, 8, 39), Decl(infinitelyExpandingTypes5.ts, 9, 54)) +>arg : any, Symbol(arg, Decl(infinitelyExpandingTypes5.ts, 10, 14)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } diff --git a/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.types b/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.types index 9190ef15779..4fced50090a 100644 --- a/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.types +++ b/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.types @@ -1,56 +1,56 @@ === tests/cases/compiler/infinitelyExpandingTypesNonGenericBase.ts === class Functionality { ->Functionality : Functionality ->V : V +>Functionality : Functionality, Symbol(Functionality, Decl(infinitelyExpandingTypesNonGenericBase.ts, 0, 0)) +>V : V, Symbol(V, Decl(infinitelyExpandingTypesNonGenericBase.ts, 0, 20)) property: Options; ->property : Options ->Options : Options ->V : V +>property : Options, Symbol(property, Decl(infinitelyExpandingTypesNonGenericBase.ts, 0, 24)) +>Options : Options, Symbol(Options, Decl(infinitelyExpandingTypesNonGenericBase.ts, 13, 1)) +>V : V, Symbol(V, Decl(infinitelyExpandingTypesNonGenericBase.ts, 0, 20)) } class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(infinitelyExpandingTypesNonGenericBase.ts, 2, 1)) } class A extends Base { ->A : A ->T : T ->Base : Base +>A : A, Symbol(A, Decl(infinitelyExpandingTypesNonGenericBase.ts, 5, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypesNonGenericBase.ts, 7, 8)) +>Base : Base, Symbol(Base, Decl(infinitelyExpandingTypesNonGenericBase.ts, 2, 1)) options: Options[]>; ->options : Options[]> ->Options : Options ->Functionality : Functionality ->T : T +>options : Options[]>, Symbol(options, Decl(infinitelyExpandingTypesNonGenericBase.ts, 7, 25)) +>Options : Options, Symbol(Options, Decl(infinitelyExpandingTypesNonGenericBase.ts, 13, 1)) +>Functionality : Functionality, Symbol(Functionality, Decl(infinitelyExpandingTypesNonGenericBase.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypesNonGenericBase.ts, 7, 8)) } interface OptionsBase { ->OptionsBase : OptionsBase ->T : T +>OptionsBase : OptionsBase, Symbol(OptionsBase, Decl(infinitelyExpandingTypesNonGenericBase.ts, 9, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypesNonGenericBase.ts, 11, 22)) Options: Options; ->Options : Options ->Options : Options ->T : T +>Options : Options, Symbol(Options, Decl(infinitelyExpandingTypesNonGenericBase.ts, 11, 26)) +>Options : Options, Symbol(Options, Decl(infinitelyExpandingTypesNonGenericBase.ts, 13, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypesNonGenericBase.ts, 11, 22)) } interface Options extends OptionsBase { ->Options : Options ->T : T ->OptionsBase : OptionsBase ->T : T +>Options : Options, Symbol(Options, Decl(infinitelyExpandingTypesNonGenericBase.ts, 13, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypesNonGenericBase.ts, 15, 18)) +>OptionsBase : OptionsBase, Symbol(OptionsBase, Decl(infinitelyExpandingTypesNonGenericBase.ts, 9, 1)) +>T : T, Symbol(T, Decl(infinitelyExpandingTypesNonGenericBase.ts, 15, 18)) } function o(type: new () => Base) { ->o : (type: new () => Base) => void ->type : new () => Base ->Base : Base +>o : (type: new () => Base) => void, Symbol(o, Decl(infinitelyExpandingTypesNonGenericBase.ts, 16, 1)) +>type : new () => Base, Symbol(type, Decl(infinitelyExpandingTypesNonGenericBase.ts, 19, 11)) +>Base : Base, Symbol(Base, Decl(infinitelyExpandingTypesNonGenericBase.ts, 2, 1)) } o(A); >o(A) : void ->o : (type: new () => Base) => void ->A : typeof A +>o : (type: new () => Base) => void, Symbol(o, Decl(infinitelyExpandingTypesNonGenericBase.ts, 16, 1)) +>A : typeof A, Symbol(A, Decl(infinitelyExpandingTypesNonGenericBase.ts, 5, 1)) diff --git a/tests/baselines/reference/infinitelyGenerativeInheritance1.types b/tests/baselines/reference/infinitelyGenerativeInheritance1.types index e46262d56bc..8a5a27b06c7 100644 --- a/tests/baselines/reference/infinitelyGenerativeInheritance1.types +++ b/tests/baselines/reference/infinitelyGenerativeInheritance1.types @@ -1,41 +1,41 @@ === tests/cases/compiler/infinitelyGenerativeInheritance1.ts === interface Stack { ->Stack : Stack ->T : T +>Stack : Stack, Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyGenerativeInheritance1.ts, 0, 16)) pop(): T ->pop : () => T ->T : T +>pop : () => T, Symbol(pop, Decl(infinitelyGenerativeInheritance1.ts, 0, 20)) +>T : T, Symbol(T, Decl(infinitelyGenerativeInheritance1.ts, 0, 16)) zip(a: Stack): Stack<{ x: T; y: S }> ->zip : (a: Stack) => Stack<{ x: T; y: S; }> ->S : S ->a : Stack ->Stack : Stack ->S : S ->Stack : Stack ->x : T ->T : T ->y : S ->S : S +>zip : (a: Stack) => Stack<{ x: T; y: S; }>, Symbol(zip, Decl(infinitelyGenerativeInheritance1.ts, 1, 14)) +>S : S, Symbol(S, Decl(infinitelyGenerativeInheritance1.ts, 2, 10)) +>a : Stack, Symbol(a, Decl(infinitelyGenerativeInheritance1.ts, 2, 13)) +>Stack : Stack, Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0)) +>S : S, Symbol(S, Decl(infinitelyGenerativeInheritance1.ts, 2, 10)) +>Stack : Stack, Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0)) +>x : T, Symbol(x, Decl(infinitelyGenerativeInheritance1.ts, 2, 34)) +>T : T, Symbol(T, Decl(infinitelyGenerativeInheritance1.ts, 0, 16)) +>y : S, Symbol(y, Decl(infinitelyGenerativeInheritance1.ts, 2, 40)) +>S : S, Symbol(S, Decl(infinitelyGenerativeInheritance1.ts, 2, 10)) } interface MyStack extends Stack { ->MyStack : MyStack ->T : T ->Stack : Stack ->T : T +>MyStack : MyStack, Symbol(MyStack, Decl(infinitelyGenerativeInheritance1.ts, 3, 1)) +>T : T, Symbol(T, Decl(infinitelyGenerativeInheritance1.ts, 5, 18)) +>Stack : Stack, Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0)) +>T : T, Symbol(T, Decl(infinitelyGenerativeInheritance1.ts, 5, 18)) zip(a: Stack): Stack<{ x: T; y: S }> ->zip : (a: Stack) => Stack<{ x: T; y: S; }> ->S : S ->a : Stack ->Stack : Stack ->S : S ->Stack : Stack ->x : T ->T : T ->y : S ->S : S +>zip : (a: Stack) => Stack<{ x: T; y: S; }>, Symbol(zip, Decl(infinitelyGenerativeInheritance1.ts, 5, 39)) +>S : S, Symbol(S, Decl(infinitelyGenerativeInheritance1.ts, 6, 10)) +>a : Stack, Symbol(a, Decl(infinitelyGenerativeInheritance1.ts, 6, 13)) +>Stack : Stack, Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0)) +>S : S, Symbol(S, Decl(infinitelyGenerativeInheritance1.ts, 6, 10)) +>Stack : Stack, Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0)) +>x : T, Symbol(x, Decl(infinitelyGenerativeInheritance1.ts, 6, 34)) +>T : T, Symbol(T, Decl(infinitelyGenerativeInheritance1.ts, 5, 18)) +>y : S, Symbol(y, Decl(infinitelyGenerativeInheritance1.ts, 6, 40)) +>S : S, Symbol(S, Decl(infinitelyGenerativeInheritance1.ts, 6, 10)) } diff --git a/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.types b/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.types index e8f05ca474d..68b56eac2c6 100644 --- a/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.types +++ b/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.types @@ -1,23 +1,23 @@ === tests/cases/compiler/inheritSameNamePrivatePropertiesFromSameOrigin.ts === class B { ->B : B +>B : B, Symbol(B, Decl(inheritSameNamePrivatePropertiesFromSameOrigin.ts, 0, 0)) private x: number; ->x : number +>x : number, Symbol(x, Decl(inheritSameNamePrivatePropertiesFromSameOrigin.ts, 0, 9)) } class C extends B { } ->C : C ->B : B +>C : C, Symbol(C, Decl(inheritSameNamePrivatePropertiesFromSameOrigin.ts, 2, 1)) +>B : B, Symbol(B, Decl(inheritSameNamePrivatePropertiesFromSameOrigin.ts, 0, 0)) class C2 extends B { } ->C2 : C2 ->B : B +>C2 : C2, Symbol(C2, Decl(inheritSameNamePrivatePropertiesFromSameOrigin.ts, 3, 21)) +>B : B, Symbol(B, Decl(inheritSameNamePrivatePropertiesFromSameOrigin.ts, 0, 0)) interface A extends C, C2 { // ok ->A : A ->C : C ->C2 : C2 +>A : A, Symbol(A, Decl(inheritSameNamePrivatePropertiesFromSameOrigin.ts, 5, 22)) +>C : C, Symbol(C, Decl(inheritSameNamePrivatePropertiesFromSameOrigin.ts, 2, 1)) +>C2 : C2, Symbol(C2, Decl(inheritSameNamePrivatePropertiesFromSameOrigin.ts, 3, 21)) y: string; ->y : string +>y : string, Symbol(y, Decl(inheritSameNamePrivatePropertiesFromSameOrigin.ts, 7, 27)) } diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.types b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.types index e30d307e943..45ec5920ef1 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.types +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.types @@ -1,21 +1,23 @@ === tests/cases/compiler/inheritanceMemberFuncOverridingMethod.ts === class a { ->a : a +>a : a, Symbol(a, Decl(inheritanceMemberFuncOverridingMethod.ts, 0, 0)) x() { ->x : () => string +>x : () => string, Symbol(x, Decl(inheritanceMemberFuncOverridingMethod.ts, 0, 9)) return "10"; +>"10" : string } } class b extends a { ->b : b ->a : a +>b : b, Symbol(b, Decl(inheritanceMemberFuncOverridingMethod.ts, 4, 1)) +>a : a, Symbol(a, Decl(inheritanceMemberFuncOverridingMethod.ts, 0, 0)) x() { ->x : () => string +>x : () => string, Symbol(x, Decl(inheritanceMemberFuncOverridingMethod.ts, 6, 19)) return "20"; +>"20" : string } } diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.types b/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.types index d5f846187f8..a355d373529 100644 --- a/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.types +++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.types @@ -1,15 +1,15 @@ === tests/cases/compiler/inheritanceMemberPropertyOverridingProperty.ts === class a { ->a : a +>a : a, Symbol(a, Decl(inheritanceMemberPropertyOverridingProperty.ts, 0, 0)) x: () => string; ->x : () => string +>x : () => string, Symbol(x, Decl(inheritanceMemberPropertyOverridingProperty.ts, 0, 9)) } class b extends a { ->b : b ->a : a +>b : b, Symbol(b, Decl(inheritanceMemberPropertyOverridingProperty.ts, 2, 1)) +>a : a, Symbol(a, Decl(inheritanceMemberPropertyOverridingProperty.ts, 0, 0)) x: () => string; ->x : () => string +>x : () => string, Symbol(x, Decl(inheritanceMemberPropertyOverridingProperty.ts, 4, 19)) } diff --git a/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.types b/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.types index d18b02ec8d0..15a839a54ae 100644 --- a/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.types +++ b/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.types @@ -1,36 +1,36 @@ === tests/cases/compiler/inheritanceOfGenericConstructorMethod1.ts === class A { } ->A : A ->T : T +>A : A, Symbol(A, Decl(inheritanceOfGenericConstructorMethod1.ts, 0, 0)) +>T : T, Symbol(T, Decl(inheritanceOfGenericConstructorMethod1.ts, 0, 8)) class B extends A {} ->B : B ->T : T ->A : A ->T : T +>B : B, Symbol(B, Decl(inheritanceOfGenericConstructorMethod1.ts, 0, 14)) +>T : T, Symbol(T, Decl(inheritanceOfGenericConstructorMethod1.ts, 1, 8)) +>A : A, Symbol(A, Decl(inheritanceOfGenericConstructorMethod1.ts, 0, 0)) +>T : T, Symbol(T, Decl(inheritanceOfGenericConstructorMethod1.ts, 1, 8)) var a = new A(); ->a : A +>a : A, Symbol(a, Decl(inheritanceOfGenericConstructorMethod1.ts, 2, 3)) >new A() : A ->A : typeof A ->Date : Date +>A : typeof A, Symbol(A, Decl(inheritanceOfGenericConstructorMethod1.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var b1 = new B(); // no error ->b1 : B<{}> +>b1 : B<{}>, Symbol(b1, Decl(inheritanceOfGenericConstructorMethod1.ts, 3, 3)) >new B() : B<{}> ->B : typeof B +>B : typeof B, Symbol(B, Decl(inheritanceOfGenericConstructorMethod1.ts, 0, 14)) var b2: B = new B(); // no error ->b2 : B ->B : B ->Date : Date +>b2 : B, Symbol(b2, Decl(inheritanceOfGenericConstructorMethod1.ts, 4, 3)) +>B : B, Symbol(B, Decl(inheritanceOfGenericConstructorMethod1.ts, 0, 14)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) >new B() : B ->B : typeof B ->Date : Date +>B : typeof B, Symbol(B, Decl(inheritanceOfGenericConstructorMethod1.ts, 0, 14)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var b3 = new B(); // error, could not select overload for 'new' expression ->b3 : B +>b3 : B, Symbol(b3, Decl(inheritanceOfGenericConstructorMethod1.ts, 5, 3)) >new B() : B ->B : typeof B ->Date : Date +>B : typeof B, Symbol(B, Decl(inheritanceOfGenericConstructorMethod1.ts, 0, 14)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) diff --git a/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.types b/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.types index 69b2ebb608d..d150205d133 100644 --- a/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.types +++ b/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.types @@ -1,55 +1,57 @@ === tests/cases/compiler/inheritanceOfGenericConstructorMethod2.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(inheritanceOfGenericConstructorMethod2.ts, 0, 0)) export class C1 { } ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(inheritanceOfGenericConstructorMethod2.ts, 0, 10)) export class C2 { } ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(inheritanceOfGenericConstructorMethod2.ts, 1, 22)) +>T : T, Symbol(T, Decl(inheritanceOfGenericConstructorMethod2.ts, 2, 19)) } module N { ->N : typeof N +>N : typeof N, Symbol(N, Decl(inheritanceOfGenericConstructorMethod2.ts, 3, 1)) export class D1 extends M.C1 { } ->D1 : D1 ->M : typeof M ->C1 : M.C1 +>D1 : D1, Symbol(D1, Decl(inheritanceOfGenericConstructorMethod2.ts, 4, 10)) +>M.C1 : any, Symbol(M.C1, Decl(inheritanceOfGenericConstructorMethod2.ts, 0, 10)) +>M : typeof M, Symbol(M, Decl(inheritanceOfGenericConstructorMethod2.ts, 0, 0)) +>C1 : M.C1, Symbol(M.C1, Decl(inheritanceOfGenericConstructorMethod2.ts, 0, 10)) export class D2 extends M.C2 { } ->D2 : D2 ->T : T ->M : typeof M ->C2 : M.C2 ->T : T +>D2 : D2, Symbol(D2, Decl(inheritanceOfGenericConstructorMethod2.ts, 5, 35)) +>T : T, Symbol(T, Decl(inheritanceOfGenericConstructorMethod2.ts, 6, 19)) +>M.C2 : any, Symbol(M.C2, Decl(inheritanceOfGenericConstructorMethod2.ts, 1, 22)) +>M : typeof M, Symbol(M, Decl(inheritanceOfGenericConstructorMethod2.ts, 0, 0)) +>C2 : M.C2, Symbol(M.C2, Decl(inheritanceOfGenericConstructorMethod2.ts, 1, 22)) +>T : T, Symbol(T, Decl(inheritanceOfGenericConstructorMethod2.ts, 6, 19)) } var c = new M.C2(); // no error ->c : M.C2 +>c : M.C2, Symbol(c, Decl(inheritanceOfGenericConstructorMethod2.ts, 9, 3)) >new M.C2() : M.C2 ->M.C2 : typeof M.C2 ->M : typeof M ->C2 : typeof M.C2 +>M.C2 : typeof M.C2, Symbol(M.C2, Decl(inheritanceOfGenericConstructorMethod2.ts, 1, 22)) +>M : typeof M, Symbol(M, Decl(inheritanceOfGenericConstructorMethod2.ts, 0, 0)) +>C2 : typeof M.C2, Symbol(M.C2, Decl(inheritanceOfGenericConstructorMethod2.ts, 1, 22)) var n = new N.D1(); // no error ->n : N.D1 +>n : N.D1, Symbol(n, Decl(inheritanceOfGenericConstructorMethod2.ts, 10, 3)) >new N.D1() : N.D1 ->N.D1 : typeof N.D1 ->N : typeof N ->D1 : typeof N.D1 +>N.D1 : typeof N.D1, Symbol(N.D1, Decl(inheritanceOfGenericConstructorMethod2.ts, 4, 10)) +>N : typeof N, Symbol(N, Decl(inheritanceOfGenericConstructorMethod2.ts, 3, 1)) +>D1 : typeof N.D1, Symbol(N.D1, Decl(inheritanceOfGenericConstructorMethod2.ts, 4, 10)) var n2 = new N.D2(); // error ->n2 : N.D2 +>n2 : N.D2, Symbol(n2, Decl(inheritanceOfGenericConstructorMethod2.ts, 11, 3)) >new N.D2() : N.D2 ->N.D2 : typeof N.D2 ->N : typeof N ->D2 : typeof N.D2 +>N.D2 : typeof N.D2, Symbol(N.D2, Decl(inheritanceOfGenericConstructorMethod2.ts, 5, 35)) +>N : typeof N, Symbol(N, Decl(inheritanceOfGenericConstructorMethod2.ts, 3, 1)) +>D2 : typeof N.D2, Symbol(N.D2, Decl(inheritanceOfGenericConstructorMethod2.ts, 5, 35)) var n3 = new N.D2(); // no error, D2 ->n3 : N.D2<{}> +>n3 : N.D2<{}>, Symbol(n3, Decl(inheritanceOfGenericConstructorMethod2.ts, 12, 3)) >new N.D2() : N.D2<{}> ->N.D2 : typeof N.D2 ->N : typeof N ->D2 : typeof N.D2 +>N.D2 : typeof N.D2, Symbol(N.D2, Decl(inheritanceOfGenericConstructorMethod2.ts, 5, 35)) +>N : typeof N, Symbol(N, Decl(inheritanceOfGenericConstructorMethod2.ts, 3, 1)) +>D2 : typeof N.D2, Symbol(N.D2, Decl(inheritanceOfGenericConstructorMethod2.ts, 5, 35)) diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.types b/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.types index ec7b3f5bbf9..2c610e16c30 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.types +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.types @@ -1,21 +1,23 @@ === tests/cases/compiler/inheritanceStaticFuncOverridingMethod.ts === class a { ->a : a +>a : a, Symbol(a, Decl(inheritanceStaticFuncOverridingMethod.ts, 0, 0)) static x() { ->x : () => string +>x : () => string, Symbol(a.x, Decl(inheritanceStaticFuncOverridingMethod.ts, 0, 9)) return "10"; +>"10" : string } } class b extends a { ->b : b ->a : a +>b : b, Symbol(b, Decl(inheritanceStaticFuncOverridingMethod.ts, 4, 1)) +>a : a, Symbol(a, Decl(inheritanceStaticFuncOverridingMethod.ts, 0, 0)) static x() { ->x : () => string +>x : () => string, Symbol(b.x, Decl(inheritanceStaticFuncOverridingMethod.ts, 6, 19)) return "20"; +>"20" : string } } diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.types b/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.types index 842f9ffddf9..1d0c93c725c 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.types +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.types @@ -1,18 +1,19 @@ === tests/cases/compiler/inheritanceStaticFuncOverridingPropertyOfFuncType.ts === class a { ->a : a +>a : a, Symbol(a, Decl(inheritanceStaticFuncOverridingPropertyOfFuncType.ts, 0, 0)) static x: () => string; ->x : () => string +>x : () => string, Symbol(a.x, Decl(inheritanceStaticFuncOverridingPropertyOfFuncType.ts, 0, 9)) } class b extends a { ->b : b ->a : a +>b : b, Symbol(b, Decl(inheritanceStaticFuncOverridingPropertyOfFuncType.ts, 2, 1)) +>a : a, Symbol(a, Decl(inheritanceStaticFuncOverridingPropertyOfFuncType.ts, 0, 0)) static x() { ->x : () => string +>x : () => string, Symbol(b.x, Decl(inheritanceStaticFuncOverridingPropertyOfFuncType.ts, 4, 19)) return "20"; +>"20" : string } } diff --git a/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.types b/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.types index 4742dde63f6..9d51716dee2 100644 --- a/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.types +++ b/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.types @@ -1,22 +1,22 @@ === tests/cases/compiler/inheritanceStaticFunctionOverridingInstanceProperty.ts === class a { ->a : a +>a : a, Symbol(a, Decl(inheritanceStaticFunctionOverridingInstanceProperty.ts, 0, 0)) x: string; ->x : string +>x : string, Symbol(x, Decl(inheritanceStaticFunctionOverridingInstanceProperty.ts, 0, 9)) } class b extends a { ->b : b ->a : a +>b : b, Symbol(b, Decl(inheritanceStaticFunctionOverridingInstanceProperty.ts, 2, 1)) +>a : a, Symbol(a, Decl(inheritanceStaticFunctionOverridingInstanceProperty.ts, 0, 0)) static x() { ->x : () => string +>x : () => string, Symbol(b.x, Decl(inheritanceStaticFunctionOverridingInstanceProperty.ts, 4, 19)) return new b().x; ->new b().x : string +>new b().x : string, Symbol(a.x, Decl(inheritanceStaticFunctionOverridingInstanceProperty.ts, 0, 9)) >new b() : b ->b : typeof b ->x : string +>b : typeof b, Symbol(b, Decl(inheritanceStaticFunctionOverridingInstanceProperty.ts, 2, 1)) +>x : string, Symbol(a.x, Decl(inheritanceStaticFunctionOverridingInstanceProperty.ts, 0, 9)) } } diff --git a/tests/baselines/reference/inheritanceStaticMembersCompatible.types b/tests/baselines/reference/inheritanceStaticMembersCompatible.types index cab8be93785..8519d75dfa3 100644 --- a/tests/baselines/reference/inheritanceStaticMembersCompatible.types +++ b/tests/baselines/reference/inheritanceStaticMembersCompatible.types @@ -1,17 +1,17 @@ === tests/cases/compiler/inheritanceStaticMembersCompatible.ts === class a { ->a : a +>a : a, Symbol(a, Decl(inheritanceStaticMembersCompatible.ts, 0, 0)) static x: a; ->x : a ->a : a +>x : a, Symbol(a.x, Decl(inheritanceStaticMembersCompatible.ts, 0, 9)) +>a : a, Symbol(a, Decl(inheritanceStaticMembersCompatible.ts, 0, 0)) } class b extends a { ->b : b ->a : a +>b : b, Symbol(b, Decl(inheritanceStaticMembersCompatible.ts, 2, 1)) +>a : a, Symbol(a, Decl(inheritanceStaticMembersCompatible.ts, 0, 0)) static x: b; ->x : b ->b : b +>x : b, Symbol(b.x, Decl(inheritanceStaticMembersCompatible.ts, 4, 19)) +>b : b, Symbol(b, Decl(inheritanceStaticMembersCompatible.ts, 2, 1)) } diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.types b/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.types index 958fb6723cc..4d31f151bda 100644 --- a/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.types +++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.types @@ -1,15 +1,15 @@ === tests/cases/compiler/inheritanceStaticPropertyOverridingProperty.ts === class a { ->a : a +>a : a, Symbol(a, Decl(inheritanceStaticPropertyOverridingProperty.ts, 0, 0)) static x: () => string; ->x : () => string +>x : () => string, Symbol(a.x, Decl(inheritanceStaticPropertyOverridingProperty.ts, 0, 9)) } class b extends a { ->b : b ->a : a +>b : b, Symbol(b, Decl(inheritanceStaticPropertyOverridingProperty.ts, 2, 1)) +>a : a, Symbol(a, Decl(inheritanceStaticPropertyOverridingProperty.ts, 0, 0)) static x: () => string; ->x : () => string +>x : () => string, Symbol(b.x, Decl(inheritanceStaticPropertyOverridingProperty.ts, 4, 19)) } diff --git a/tests/baselines/reference/inheritedFunctionAssignmentCompatibility.types b/tests/baselines/reference/inheritedFunctionAssignmentCompatibility.types index c24c0545c3e..9111e6cba6a 100644 --- a/tests/baselines/reference/inheritedFunctionAssignmentCompatibility.types +++ b/tests/baselines/reference/inheritedFunctionAssignmentCompatibility.types @@ -1,25 +1,27 @@ === tests/cases/compiler/inheritedFunctionAssignmentCompatibility.ts === interface IResultCallback extends Function { } ->IResultCallback : IResultCallback ->Function : Function +>IResultCallback : IResultCallback, Symbol(IResultCallback, Decl(inheritedFunctionAssignmentCompatibility.ts, 0, 0)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) function fn(cb: IResultCallback) { } ->fn : (cb: IResultCallback) => void ->cb : IResultCallback ->IResultCallback : IResultCallback +>fn : (cb: IResultCallback) => void, Symbol(fn, Decl(inheritedFunctionAssignmentCompatibility.ts, 0, 46)) +>cb : IResultCallback, Symbol(cb, Decl(inheritedFunctionAssignmentCompatibility.ts, 2, 12)) +>IResultCallback : IResultCallback, Symbol(IResultCallback, Decl(inheritedFunctionAssignmentCompatibility.ts, 0, 0)) fn((a, b) => true); >fn((a, b) => true) : void ->fn : (cb: IResultCallback) => void +>fn : (cb: IResultCallback) => void, Symbol(fn, Decl(inheritedFunctionAssignmentCompatibility.ts, 0, 46)) >(a, b) => true : (a: any, b: any) => boolean ->a : any ->b : any +>a : any, Symbol(a, Decl(inheritedFunctionAssignmentCompatibility.ts, 4, 4)) +>b : any, Symbol(b, Decl(inheritedFunctionAssignmentCompatibility.ts, 4, 6)) +>true : boolean fn(function (a, b) { return true; }) >fn(function (a, b) { return true; }) : void ->fn : (cb: IResultCallback) => void +>fn : (cb: IResultCallback) => void, Symbol(fn, Decl(inheritedFunctionAssignmentCompatibility.ts, 0, 46)) >function (a, b) { return true; } : (a: any, b: any) => boolean ->a : any ->b : any +>a : any, Symbol(a, Decl(inheritedFunctionAssignmentCompatibility.ts, 5, 13)) +>b : any, Symbol(b, Decl(inheritedFunctionAssignmentCompatibility.ts, 5, 15)) +>true : boolean diff --git a/tests/baselines/reference/inheritedGenericCallSignature.types b/tests/baselines/reference/inheritedGenericCallSignature.types index 4382320862b..52f7690eaca 100644 --- a/tests/baselines/reference/inheritedGenericCallSignature.types +++ b/tests/baselines/reference/inheritedGenericCallSignature.types @@ -1,51 +1,51 @@ === tests/cases/compiler/inheritedGenericCallSignature.ts === interface I1 { ->I1 : I1 ->T : T +>I1 : I1, Symbol(I1, Decl(inheritedGenericCallSignature.ts, 0, 0)) +>T : T, Symbol(T, Decl(inheritedGenericCallSignature.ts, 1, 13)) (a: T): T; ->a : T ->T : T ->T : T +>a : T, Symbol(a, Decl(inheritedGenericCallSignature.ts, 3, 5)) +>T : T, Symbol(T, Decl(inheritedGenericCallSignature.ts, 1, 13)) +>T : T, Symbol(T, Decl(inheritedGenericCallSignature.ts, 1, 13)) } interface Object {} ->Object : Object +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11), Decl(inheritedGenericCallSignature.ts, 5, 1)) interface I2 extends I1 { ->I2 : I2 ->T : T ->I1 : I1 ->T : T +>I2 : I2, Symbol(I2, Decl(inheritedGenericCallSignature.ts, 8, 19)) +>T : T, Symbol(T, Decl(inheritedGenericCallSignature.ts, 12, 13)) +>I1 : I1, Symbol(I1, Decl(inheritedGenericCallSignature.ts, 0, 0)) +>T : T, Symbol(T, Decl(inheritedGenericCallSignature.ts, 12, 13)) b: T; ->b : T ->T : T +>b : T, Symbol(b, Decl(inheritedGenericCallSignature.ts, 12, 33)) +>T : T, Symbol(T, Decl(inheritedGenericCallSignature.ts, 12, 13)) } var x: I2; ->x : I2 ->I2 : I2 ->Date : Date +>x : I2, Symbol(x, Decl(inheritedGenericCallSignature.ts, 20, 3)) +>I2 : I2, Symbol(I2, Decl(inheritedGenericCallSignature.ts, 8, 19)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var y = x(undefined); ->y : Date[] +>y : Date[], Symbol(y, Decl(inheritedGenericCallSignature.ts, 24, 3)) >x(undefined) : Date[] ->x : I2 ->undefined : undefined +>x : I2, Symbol(x, Decl(inheritedGenericCallSignature.ts, 20, 3)) +>undefined : undefined, Symbol(undefined) y.length; // should not error ->y.length : number ->y : Date[] ->length : number +>y.length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) +>y : Date[], Symbol(y, Decl(inheritedGenericCallSignature.ts, 24, 3)) +>length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) diff --git a/tests/baselines/reference/inheritedMembersAndIndexSignaturesFromDifferentBases2.types b/tests/baselines/reference/inheritedMembersAndIndexSignaturesFromDifferentBases2.types index 2899e964efd..5d375285bc7 100644 --- a/tests/baselines/reference/inheritedMembersAndIndexSignaturesFromDifferentBases2.types +++ b/tests/baselines/reference/inheritedMembersAndIndexSignaturesFromDifferentBases2.types @@ -1,22 +1,22 @@ === tests/cases/compiler/inheritedMembersAndIndexSignaturesFromDifferentBases2.ts === interface A { ->A : A ->T : T +>A : A, Symbol(A, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 0, 0)) +>T : T, Symbol(T, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 0, 12)) [n: number]: T; ->n : number ->T : T +>n : number, Symbol(n, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 1, 5)) +>T : T, Symbol(T, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 0, 12)) } interface B { ->B : B +>B : B, Symbol(B, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 2, 1)) foo: number; ->foo : number +>foo : number, Symbol(foo, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 4, 13)) } interface C extends B, A { } // Should succeed ->C : C ->B : B ->A : A +>C : C, Symbol(C, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 6, 1)) +>B : B, Symbol(B, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 2, 1)) +>A : A, Symbol(A, Decl(inheritedMembersAndIndexSignaturesFromDifferentBases2.ts, 0, 0)) diff --git a/tests/baselines/reference/inheritedOverloadedSpecializedSignatures.types b/tests/baselines/reference/inheritedOverloadedSpecializedSignatures.types index dcbab74b681..2817a7cc1ff 100644 --- a/tests/baselines/reference/inheritedOverloadedSpecializedSignatures.types +++ b/tests/baselines/reference/inheritedOverloadedSpecializedSignatures.types @@ -1,135 +1,146 @@ === tests/cases/compiler/inheritedOverloadedSpecializedSignatures.ts === interface A { ->A : A +>A : A, Symbol(A, Decl(inheritedOverloadedSpecializedSignatures.ts, 0, 0), Decl(inheritedOverloadedSpecializedSignatures.ts, 10, 19), Decl(inheritedOverloadedSpecializedSignatures.ts, 19, 1)) (key:string):void; ->key : string +>key : string, Symbol(key, Decl(inheritedOverloadedSpecializedSignatures.ts, 1, 3)) } interface B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(inheritedOverloadedSpecializedSignatures.ts, 2, 1), Decl(inheritedOverloadedSpecializedSignatures.ts, 15, 1), Decl(inheritedOverloadedSpecializedSignatures.ts, 23, 1)) +>A : A, Symbol(A, Decl(inheritedOverloadedSpecializedSignatures.ts, 0, 0), Decl(inheritedOverloadedSpecializedSignatures.ts, 10, 19), Decl(inheritedOverloadedSpecializedSignatures.ts, 19, 1)) (key:'foo'):string; ->key : 'foo' +>key : 'foo', Symbol(key, Decl(inheritedOverloadedSpecializedSignatures.ts, 5, 3)) } var b:B; ->b : B ->B : B +>b : B, Symbol(b, Decl(inheritedOverloadedSpecializedSignatures.ts, 8, 3)) +>B : B, Symbol(B, Decl(inheritedOverloadedSpecializedSignatures.ts, 2, 1), Decl(inheritedOverloadedSpecializedSignatures.ts, 15, 1), Decl(inheritedOverloadedSpecializedSignatures.ts, 23, 1)) // Should not error b('foo').charAt(0); >b('foo').charAt(0) : string ->b('foo').charAt : (pos: number) => string +>b('foo').charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) >b('foo') : string ->b : B ->charAt : (pos: number) => string +>b : B, Symbol(b, Decl(inheritedOverloadedSpecializedSignatures.ts, 8, 3)) +>'foo' : string +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number interface A { ->A : A +>A : A, Symbol(A, Decl(inheritedOverloadedSpecializedSignatures.ts, 0, 0), Decl(inheritedOverloadedSpecializedSignatures.ts, 10, 19), Decl(inheritedOverloadedSpecializedSignatures.ts, 19, 1)) (x: 'A1'): string; ->x : 'A1' +>x : 'A1', Symbol(x, Decl(inheritedOverloadedSpecializedSignatures.ts, 13, 5)) (x: string): void; ->x : string +>x : string, Symbol(x, Decl(inheritedOverloadedSpecializedSignatures.ts, 14, 5)) } interface B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(inheritedOverloadedSpecializedSignatures.ts, 2, 1), Decl(inheritedOverloadedSpecializedSignatures.ts, 15, 1), Decl(inheritedOverloadedSpecializedSignatures.ts, 23, 1)) +>A : A, Symbol(A, Decl(inheritedOverloadedSpecializedSignatures.ts, 0, 0), Decl(inheritedOverloadedSpecializedSignatures.ts, 10, 19), Decl(inheritedOverloadedSpecializedSignatures.ts, 19, 1)) (x: 'B1'): number; ->x : 'B1' +>x : 'B1', Symbol(x, Decl(inheritedOverloadedSpecializedSignatures.ts, 18, 5)) } interface A { ->A : A +>A : A, Symbol(A, Decl(inheritedOverloadedSpecializedSignatures.ts, 0, 0), Decl(inheritedOverloadedSpecializedSignatures.ts, 10, 19), Decl(inheritedOverloadedSpecializedSignatures.ts, 19, 1)) (x: 'A2'): boolean; ->x : 'A2' +>x : 'A2', Symbol(x, Decl(inheritedOverloadedSpecializedSignatures.ts, 22, 5)) } interface B { ->B : B +>B : B, Symbol(B, Decl(inheritedOverloadedSpecializedSignatures.ts, 2, 1), Decl(inheritedOverloadedSpecializedSignatures.ts, 15, 1), Decl(inheritedOverloadedSpecializedSignatures.ts, 23, 1)) (x: 'B2'): string[]; ->x : 'B2' +>x : 'B2', Symbol(x, Decl(inheritedOverloadedSpecializedSignatures.ts, 26, 5)) } interface C1 extends B { ->C1 : C1 ->B : B +>C1 : C1, Symbol(C1, Decl(inheritedOverloadedSpecializedSignatures.ts, 27, 1)) +>B : B, Symbol(B, Decl(inheritedOverloadedSpecializedSignatures.ts, 2, 1), Decl(inheritedOverloadedSpecializedSignatures.ts, 15, 1), Decl(inheritedOverloadedSpecializedSignatures.ts, 23, 1)) (x: 'C1'): number[]; ->x : 'C1' +>x : 'C1', Symbol(x, Decl(inheritedOverloadedSpecializedSignatures.ts, 30, 2)) } interface C2 extends B { ->C2 : C2 ->B : B +>C2 : C2, Symbol(C2, Decl(inheritedOverloadedSpecializedSignatures.ts, 31, 1)) +>B : B, Symbol(B, Decl(inheritedOverloadedSpecializedSignatures.ts, 2, 1), Decl(inheritedOverloadedSpecializedSignatures.ts, 15, 1), Decl(inheritedOverloadedSpecializedSignatures.ts, 23, 1)) (x: 'C2'): boolean[]; ->x : 'C2' +>x : 'C2', Symbol(x, Decl(inheritedOverloadedSpecializedSignatures.ts, 34, 2)) } interface C extends C1, C2 { ->C : C ->C1 : C1 ->C2 : C2 +>C : C, Symbol(C, Decl(inheritedOverloadedSpecializedSignatures.ts, 35, 1)) +>C1 : C1, Symbol(C1, Decl(inheritedOverloadedSpecializedSignatures.ts, 27, 1)) +>C2 : C2, Symbol(C2, Decl(inheritedOverloadedSpecializedSignatures.ts, 31, 1)) (x: 'C'): string; ->x : 'C' +>x : 'C', Symbol(x, Decl(inheritedOverloadedSpecializedSignatures.ts, 38, 2)) } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(inheritedOverloadedSpecializedSignatures.ts, 41, 3)) +>C : C, Symbol(C, Decl(inheritedOverloadedSpecializedSignatures.ts, 35, 1)) // none of these lines should error var x1: string[] = c('B2'); ->x1 : string[] +>x1 : string[], Symbol(x1, Decl(inheritedOverloadedSpecializedSignatures.ts, 43, 3)) >c('B2') : string[] ->c : C +>c : C, Symbol(c, Decl(inheritedOverloadedSpecializedSignatures.ts, 41, 3)) +>'B2' : string var x2: number = c('B1'); ->x2 : number +>x2 : number, Symbol(x2, Decl(inheritedOverloadedSpecializedSignatures.ts, 44, 3)) >c('B1') : number ->c : C +>c : C, Symbol(c, Decl(inheritedOverloadedSpecializedSignatures.ts, 41, 3)) +>'B1' : string var x3: boolean = c('A2'); ->x3 : boolean +>x3 : boolean, Symbol(x3, Decl(inheritedOverloadedSpecializedSignatures.ts, 45, 3)) >c('A2') : boolean ->c : C +>c : C, Symbol(c, Decl(inheritedOverloadedSpecializedSignatures.ts, 41, 3)) +>'A2' : string var x4: string = c('A1'); ->x4 : string +>x4 : string, Symbol(x4, Decl(inheritedOverloadedSpecializedSignatures.ts, 46, 3)) >c('A1') : string ->c : C +>c : C, Symbol(c, Decl(inheritedOverloadedSpecializedSignatures.ts, 41, 3)) +>'A1' : string var x5: void = c('A0'); ->x5 : void +>x5 : void, Symbol(x5, Decl(inheritedOverloadedSpecializedSignatures.ts, 47, 3)) >c('A0') : void ->c : C +>c : C, Symbol(c, Decl(inheritedOverloadedSpecializedSignatures.ts, 41, 3)) +>'A0' : string var x6: number[] = c('C1'); ->x6 : number[] +>x6 : number[], Symbol(x6, Decl(inheritedOverloadedSpecializedSignatures.ts, 48, 3)) >c('C1') : number[] ->c : C +>c : C, Symbol(c, Decl(inheritedOverloadedSpecializedSignatures.ts, 41, 3)) +>'C1' : string var x7: boolean[] = c('C2'); ->x7 : boolean[] +>x7 : boolean[], Symbol(x7, Decl(inheritedOverloadedSpecializedSignatures.ts, 49, 3)) >c('C2') : boolean[] ->c : C +>c : C, Symbol(c, Decl(inheritedOverloadedSpecializedSignatures.ts, 41, 3)) +>'C2' : string var x8: string = c('C'); ->x8 : string +>x8 : string, Symbol(x8, Decl(inheritedOverloadedSpecializedSignatures.ts, 50, 3)) >c('C') : string ->c : C +>c : C, Symbol(c, Decl(inheritedOverloadedSpecializedSignatures.ts, 41, 3)) +>'C' : string var x9: void = c('generic'); ->x9 : void +>x9 : void, Symbol(x9, Decl(inheritedOverloadedSpecializedSignatures.ts, 51, 3)) >c('generic') : void ->c : C +>c : C, Symbol(c, Decl(inheritedOverloadedSpecializedSignatures.ts, 41, 3)) +>'generic' : string diff --git a/tests/baselines/reference/initializePropertiesWithRenamedLet.types b/tests/baselines/reference/initializePropertiesWithRenamedLet.types index 77f16756fdb..c0a2aace0a6 100644 --- a/tests/baselines/reference/initializePropertiesWithRenamedLet.types +++ b/tests/baselines/reference/initializePropertiesWithRenamedLet.types @@ -1,58 +1,66 @@ === tests/cases/compiler/initializePropertiesWithRenamedLet.ts === var x0; ->x0 : any +>x0 : any, Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 1, 3)) if (true) { +>true : boolean + let x0; ->x0 : any +>x0 : any, Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 3, 7)) var obj1 = { x0: x0 }; ->obj1 : { x0: any; } +>obj1 : { x0: any; }, Symbol(obj1, Decl(initializePropertiesWithRenamedLet.ts, 4, 7)) >{ x0: x0 } : { x0: any; } ->x0 : any ->x0 : any +>x0 : any, Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 4, 16)) +>x0 : any, Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 3, 7)) var obj2 = { x0 }; ->obj2 : { x0: any; } +>obj2 : { x0: any; }, Symbol(obj2, Decl(initializePropertiesWithRenamedLet.ts, 5, 7)) >{ x0 } : { x0: any; } ->x0 : any +>x0 : any, Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 5, 16)) } var x, y, z; ->x : any ->y : any ->z : any +>x : any, Symbol(x, Decl(initializePropertiesWithRenamedLet.ts, 8, 3)) +>y : any, Symbol(y, Decl(initializePropertiesWithRenamedLet.ts, 8, 6)) +>z : any, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 8, 9)) if (true) { +>true : boolean + let { x: x } = { x: 0 }; ->x : unknown ->x : number +>x : any +>x : number, Symbol(x, Decl(initializePropertiesWithRenamedLet.ts, 10, 9)) >{ x: 0 } : { x: number; } ->x : number +>x : number, Symbol(x, Decl(initializePropertiesWithRenamedLet.ts, 10, 20)) +>0 : number let { y } = { y: 0 }; ->y : number +>y : number, Symbol(y, Decl(initializePropertiesWithRenamedLet.ts, 11, 9)) >{ y: 0 } : { y: number; } ->y : number +>y : number, Symbol(y, Decl(initializePropertiesWithRenamedLet.ts, 11, 17)) +>0 : number let z; ->z : any +>z : any, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 12, 7)) ({ z: z } = { z: 0 }); >({ z: z } = { z: 0 }) : { z: number; } >{ z: z } = { z: 0 } : { z: number; } >{ z: z } : { z: any; } ->z : any ->z : any +>z : any, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 13, 6)) +>z : any, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 12, 7)) >{ z: 0 } : { z: number; } ->z : number +>z : number, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 13, 17)) +>0 : number ({ z } = { z: 0 }); >({ z } = { z: 0 }) : { z: number; } >{ z } = { z: 0 } : { z: number; } >{ z } : { z: any; } ->z : any +>z : any, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 14, 6)) >{ z: 0 } : { z: number; } ->z : number +>z : number, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 14, 14)) +>0 : number } diff --git a/tests/baselines/reference/initializersWidened.types b/tests/baselines/reference/initializersWidened.types index f09d43115c5..a3ef980fbcb 100644 --- a/tests/baselines/reference/initializersWidened.types +++ b/tests/baselines/reference/initializersWidened.types @@ -2,9 +2,10 @@ // these are widened to any at the point of assignment var x = null; ->x : any +>x : any, Symbol(x, Decl(initializersWidened.ts, 2, 3)) +>null : null var y = undefined; ->y : any ->undefined : undefined +>y : any, Symbol(y, Decl(initializersWidened.ts, 3, 3)) +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/innerAliases2.types b/tests/baselines/reference/innerAliases2.types index ee8c18f93b4..ce0cd147c6c 100644 --- a/tests/baselines/reference/innerAliases2.types +++ b/tests/baselines/reference/innerAliases2.types @@ -1,44 +1,45 @@ === tests/cases/compiler/innerAliases2.ts === module _provider { ->_provider : typeof _provider +>_provider : typeof _provider, Symbol(_provider, Decl(innerAliases2.ts, 0, 0)) export class UsefulClass { ->UsefulClass : UsefulClass +>UsefulClass : UsefulClass, Symbol(UsefulClass, Decl(innerAliases2.ts, 0, 18)) public foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(innerAliases2.ts, 1, 42)) } } } module consumer { ->consumer : typeof consumer +>consumer : typeof consumer, Symbol(consumer, Decl(innerAliases2.ts, 5, 1)) import provider = _provider; ->provider : typeof provider ->_provider : typeof provider +>provider : typeof provider, Symbol(provider, Decl(innerAliases2.ts, 7, 17)) +>_provider : typeof provider, Symbol(provider, Decl(innerAliases2.ts, 0, 0)) var g:provider.UsefulClass= null; ->g : provider.UsefulClass ->provider : unknown ->UsefulClass : provider.UsefulClass +>g : provider.UsefulClass, Symbol(g, Decl(innerAliases2.ts, 10, 19)) +>provider : any, Symbol(provider, Decl(innerAliases2.ts, 7, 17)) +>UsefulClass : provider.UsefulClass, Symbol(provider.UsefulClass, Decl(innerAliases2.ts, 0, 18)) +>null : null function use():provider.UsefulClass { ->use : () => provider.UsefulClass ->provider : unknown ->UsefulClass : provider.UsefulClass +>use : () => provider.UsefulClass, Symbol(use, Decl(innerAliases2.ts, 10, 49)) +>provider : any, Symbol(provider, Decl(innerAliases2.ts, 7, 17)) +>UsefulClass : provider.UsefulClass, Symbol(provider.UsefulClass, Decl(innerAliases2.ts, 0, 18)) var p2:provider.UsefulClass= new provider.UsefulClass(); ->p2 : provider.UsefulClass ->provider : unknown ->UsefulClass : provider.UsefulClass +>p2 : provider.UsefulClass, Symbol(p2, Decl(innerAliases2.ts, 13, 35)) +>provider : any, Symbol(provider, Decl(innerAliases2.ts, 7, 17)) +>UsefulClass : provider.UsefulClass, Symbol(provider.UsefulClass, Decl(innerAliases2.ts, 0, 18)) >new provider.UsefulClass() : provider.UsefulClass ->provider.UsefulClass : typeof provider.UsefulClass ->provider : typeof provider ->UsefulClass : typeof provider.UsefulClass +>provider.UsefulClass : typeof provider.UsefulClass, Symbol(provider.UsefulClass, Decl(innerAliases2.ts, 0, 18)) +>provider : typeof provider, Symbol(provider, Decl(innerAliases2.ts, 7, 17)) +>UsefulClass : typeof provider.UsefulClass, Symbol(provider.UsefulClass, Decl(innerAliases2.ts, 0, 18)) return p2; ->p2 : provider.UsefulClass +>p2 : provider.UsefulClass, Symbol(p2, Decl(innerAliases2.ts, 13, 35)) } } diff --git a/tests/baselines/reference/innerBoundLambdaEmit.types b/tests/baselines/reference/innerBoundLambdaEmit.types index d68e6e81cb6..62b4389f449 100644 --- a/tests/baselines/reference/innerBoundLambdaEmit.types +++ b/tests/baselines/reference/innerBoundLambdaEmit.types @@ -1,21 +1,21 @@ === tests/cases/compiler/innerBoundLambdaEmit.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(innerBoundLambdaEmit.ts, 0, 0)) export class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(innerBoundLambdaEmit.ts, 0, 10)) } var bar = () => { }; ->bar : () => void +>bar : () => void, Symbol(bar, Decl(innerBoundLambdaEmit.ts, 3, 7)) >() => { } : () => void } interface Array { ->Array : T[] ->T : T +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11), Decl(innerBoundLambdaEmit.ts, 4, 1)) +>T : T, Symbol(T, Decl(lib.d.ts, 1007, 16), Decl(innerBoundLambdaEmit.ts, 5, 16)) toFoo(): M.Foo ->toFoo : () => M.Foo ->M : unknown ->Foo : M.Foo +>toFoo : () => M.Foo, Symbol(toFoo, Decl(innerBoundLambdaEmit.ts, 5, 20)) +>M : any, Symbol(M, Decl(innerBoundLambdaEmit.ts, 0, 0)) +>Foo : M.Foo, Symbol(M.Foo, Decl(innerBoundLambdaEmit.ts, 0, 10)) } diff --git a/tests/baselines/reference/innerExtern.types b/tests/baselines/reference/innerExtern.types index 17ef88427b3..1594fc84691 100644 --- a/tests/baselines/reference/innerExtern.types +++ b/tests/baselines/reference/innerExtern.types @@ -1,25 +1,25 @@ === tests/cases/compiler/innerExtern.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(innerExtern.ts, 0, 0)) export declare module BB { ->BB : typeof BB +>BB : typeof BB, Symbol(BB, Decl(innerExtern.ts, 0, 10)) export var Elephant; ->Elephant : any +>Elephant : any, Symbol(Elephant, Decl(innerExtern.ts, 2, 18)) } export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(innerExtern.ts, 3, 5)) export class C { ->C : C +>C : C, Symbol(C, Decl(innerExtern.ts, 4, 21)) x = BB.Elephant.X; ->x : any +>x : any, Symbol(x, Decl(innerExtern.ts, 5, 24)) >BB.Elephant.X : any ->BB.Elephant : any ->BB : typeof BB ->Elephant : any +>BB.Elephant : any, Symbol(BB.Elephant, Decl(innerExtern.ts, 2, 18)) +>BB : typeof BB, Symbol(BB, Decl(innerExtern.ts, 0, 10)) +>Elephant : any, Symbol(BB.Elephant, Decl(innerExtern.ts, 2, 18)) >X : any } } diff --git a/tests/baselines/reference/innerFunc.types b/tests/baselines/reference/innerFunc.types index 8ca9e9d0a0b..62235c5e173 100644 --- a/tests/baselines/reference/innerFunc.types +++ b/tests/baselines/reference/innerFunc.types @@ -1,27 +1,29 @@ === tests/cases/compiler/innerFunc.ts === function salt() { ->salt : () => number +>salt : () => number, Symbol(salt, Decl(innerFunc.ts, 0, 0)) function pepper() { return 5;} ->pepper : () => number +>pepper : () => number, Symbol(pepper, Decl(innerFunc.ts, 0, 17)) +>5 : number return pepper(); >pepper() : number ->pepper : () => number +>pepper : () => number, Symbol(pepper, Decl(innerFunc.ts, 0, 17)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(innerFunc.ts, 3, 1)) export function tungsten() { ->tungsten : () => number +>tungsten : () => number, Symbol(tungsten, Decl(innerFunc.ts, 5, 10)) function oxygen() { return 6; }; ->oxygen : () => number +>oxygen : () => number, Symbol(oxygen, Decl(innerFunc.ts, 6, 32)) +>6 : number return oxygen(); >oxygen() : number ->oxygen : () => number +>oxygen : () => number, Symbol(oxygen, Decl(innerFunc.ts, 6, 32)) } } diff --git a/tests/baselines/reference/innerOverloads.types b/tests/baselines/reference/innerOverloads.types index 7168f6161f3..73bee2e94d4 100644 --- a/tests/baselines/reference/innerOverloads.types +++ b/tests/baselines/reference/innerOverloads.types @@ -1,29 +1,30 @@ === tests/cases/compiler/innerOverloads.ts === function outer() { ->outer : () => any +>outer : () => any, Symbol(outer, Decl(innerOverloads.ts, 0, 0)) function inner(x:number); // should work ->inner : { (x: number): any; (x: string): any; } ->x : number +>inner : { (x: number): any; (x: string): any; }, Symbol(inner, Decl(innerOverloads.ts, 1, 18), Decl(innerOverloads.ts, 2, 29), Decl(innerOverloads.ts, 3, 29)) +>x : number, Symbol(x, Decl(innerOverloads.ts, 2, 19)) function inner(x:string); ->inner : { (x: number): any; (x: string): any; } ->x : string +>inner : { (x: number): any; (x: string): any; }, Symbol(inner, Decl(innerOverloads.ts, 1, 18), Decl(innerOverloads.ts, 2, 29), Decl(innerOverloads.ts, 3, 29)) +>x : string, Symbol(x, Decl(innerOverloads.ts, 3, 19)) function inner(a:any) { return a; } ->inner : { (x: number): any; (x: string): any; } ->a : any ->a : any +>inner : { (x: number): any; (x: string): any; }, Symbol(inner, Decl(innerOverloads.ts, 1, 18), Decl(innerOverloads.ts, 2, 29), Decl(innerOverloads.ts, 3, 29)) +>a : any, Symbol(a, Decl(innerOverloads.ts, 4, 19)) +>a : any, Symbol(a, Decl(innerOverloads.ts, 4, 19)) return inner(0); >inner(0) : any ->inner : { (x: number): any; (x: string): any; } +>inner : { (x: number): any; (x: string): any; }, Symbol(inner, Decl(innerOverloads.ts, 1, 18), Decl(innerOverloads.ts, 2, 29), Decl(innerOverloads.ts, 3, 29)) +>0 : number } var x = outer(); // should work ->x : any +>x : any, Symbol(x, Decl(innerOverloads.ts, 9, 3)) >outer() : any ->outer : () => any +>outer : () => any, Symbol(outer, Decl(innerOverloads.ts, 0, 0)) diff --git a/tests/baselines/reference/innerTypeArgumentInference.types b/tests/baselines/reference/innerTypeArgumentInference.types index 759b78aa75f..0986c0ae422 100644 --- a/tests/baselines/reference/innerTypeArgumentInference.types +++ b/tests/baselines/reference/innerTypeArgumentInference.types @@ -1,19 +1,19 @@ === tests/cases/compiler/innerTypeArgumentInference.ts === interface Generator { (): T; } ->Generator : Generator ->T : T ->T : T +>Generator : Generator, Symbol(Generator, Decl(innerTypeArgumentInference.ts, 0, 0)) +>T : T, Symbol(T, Decl(innerTypeArgumentInference.ts, 0, 20)) +>T : T, Symbol(T, Decl(innerTypeArgumentInference.ts, 0, 20)) function Generate(func: Generator): U { ->Generate : (func: Generator) => U ->U : U ->func : Generator ->Generator : Generator ->U : U ->U : U +>Generate : (func: Generator) => U, Symbol(Generate, Decl(innerTypeArgumentInference.ts, 0, 33)) +>U : U, Symbol(U, Decl(innerTypeArgumentInference.ts, 1, 18)) +>func : Generator, Symbol(func, Decl(innerTypeArgumentInference.ts, 1, 21)) +>Generator : Generator, Symbol(Generator, Decl(innerTypeArgumentInference.ts, 0, 0)) +>U : U, Symbol(U, Decl(innerTypeArgumentInference.ts, 1, 18)) +>U : U, Symbol(U, Decl(innerTypeArgumentInference.ts, 1, 18)) return Generate(func); >Generate(func) : U ->Generate : (func: Generator) => U ->func : Generator +>Generate : (func: Generator) => U, Symbol(Generate, Decl(innerTypeArgumentInference.ts, 0, 33)) +>func : Generator, Symbol(func, Decl(innerTypeArgumentInference.ts, 1, 21)) } diff --git a/tests/baselines/reference/innerTypeParameterShadowingOuterOne.types b/tests/baselines/reference/innerTypeParameterShadowingOuterOne.types index eb1ffb17217..33b5a63dbfc 100644 --- a/tests/baselines/reference/innerTypeParameterShadowingOuterOne.types +++ b/tests/baselines/reference/innerTypeParameterShadowingOuterOne.types @@ -3,69 +3,69 @@ // no errors expected function f() { ->f : () => void ->T : T ->Date : Date +>f : () => void, Symbol(f, Decl(innerTypeParameterShadowingOuterOne.ts, 0, 0)) +>T : T, Symbol(T, Decl(innerTypeParameterShadowingOuterOne.ts, 3, 11)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function g() { ->g : () => void ->T : T ->Number : Number +>g : () => void, Symbol(g, Decl(innerTypeParameterShadowingOuterOne.ts, 3, 30)) +>T : T, Symbol(T, Decl(innerTypeParameterShadowingOuterOne.ts, 4, 15)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(innerTypeParameterShadowingOuterOne.ts, 5, 11)) +>T : T, Symbol(T, Decl(innerTypeParameterShadowingOuterOne.ts, 4, 15)) x.toFixed(); >x.toFixed() : string ->x.toFixed : (fractionDigits?: number) => string ->x : T ->toFixed : (fractionDigits?: number) => string +>x.toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) +>x : T, Symbol(x, Decl(innerTypeParameterShadowingOuterOne.ts, 5, 11)) +>toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) } var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(innerTypeParameterShadowingOuterOne.ts, 8, 7)) +>T : T, Symbol(T, Decl(innerTypeParameterShadowingOuterOne.ts, 3, 11)) x.getDate(); >x.getDate() : number ->x.getDate : () => number ->x : T ->getDate : () => number +>x.getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) +>x : T, Symbol(x, Decl(innerTypeParameterShadowingOuterOne.ts, 8, 7)) +>getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) } function f2() { ->f2 : () => void ->T : T ->Date : Date ->U : U ->Date : Date +>f2 : () => void, Symbol(f2, Decl(innerTypeParameterShadowingOuterOne.ts, 10, 1)) +>T : T, Symbol(T, Decl(innerTypeParameterShadowingOuterOne.ts, 12, 12)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>U : U, Symbol(U, Decl(innerTypeParameterShadowingOuterOne.ts, 12, 27)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function g() { ->g : () => void ->T : T ->Number : Number ->U : U ->Number : Number +>g : () => void, Symbol(g, Decl(innerTypeParameterShadowingOuterOne.ts, 12, 47)) +>T : T, Symbol(T, Decl(innerTypeParameterShadowingOuterOne.ts, 13, 15)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) +>U : U, Symbol(U, Decl(innerTypeParameterShadowingOuterOne.ts, 13, 32)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) var x: U; ->x : U ->U : U +>x : U, Symbol(x, Decl(innerTypeParameterShadowingOuterOne.ts, 14, 11)) +>U : U, Symbol(U, Decl(innerTypeParameterShadowingOuterOne.ts, 13, 32)) x.toFixed(); >x.toFixed() : string ->x.toFixed : (fractionDigits?: number) => string ->x : U ->toFixed : (fractionDigits?: number) => string +>x.toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) +>x : U, Symbol(x, Decl(innerTypeParameterShadowingOuterOne.ts, 14, 11)) +>toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) } var x: U; ->x : U ->U : U +>x : U, Symbol(x, Decl(innerTypeParameterShadowingOuterOne.ts, 17, 7)) +>U : U, Symbol(U, Decl(innerTypeParameterShadowingOuterOne.ts, 12, 27)) x.getDate(); >x.getDate() : number ->x.getDate : () => number ->x : U ->getDate : () => number +>x.getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) +>x : U, Symbol(x, Decl(innerTypeParameterShadowingOuterOne.ts, 17, 7)) +>getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) } //function f2() { // function g() { diff --git a/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.types b/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.types index 08e19fe7f1e..6b0c826f079 100644 --- a/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.types +++ b/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.types @@ -3,78 +3,78 @@ // no errors expected class C { ->C : C ->T : T ->Date : Date +>C : C, Symbol(C, Decl(innerTypeParameterShadowingOuterOne2.ts, 0, 0)) +>T : T, Symbol(T, Decl(innerTypeParameterShadowingOuterOne2.ts, 3, 8)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) g() { ->g : () => void ->T : T ->Number : Number +>g : () => void, Symbol(g, Decl(innerTypeParameterShadowingOuterOne2.ts, 3, 25)) +>T : T, Symbol(T, Decl(innerTypeParameterShadowingOuterOne2.ts, 4, 6)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(innerTypeParameterShadowingOuterOne2.ts, 5, 11)) +>T : T, Symbol(T, Decl(innerTypeParameterShadowingOuterOne2.ts, 4, 6)) x.toFixed(); >x.toFixed() : string ->x.toFixed : (fractionDigits?: number) => string ->x : T ->toFixed : (fractionDigits?: number) => string +>x.toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) +>x : T, Symbol(x, Decl(innerTypeParameterShadowingOuterOne2.ts, 5, 11)) +>toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) } h() { ->h : () => void +>h : () => void, Symbol(h, Decl(innerTypeParameterShadowingOuterOne2.ts, 7, 5)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(innerTypeParameterShadowingOuterOne2.ts, 10, 11)) +>T : T, Symbol(T, Decl(innerTypeParameterShadowingOuterOne2.ts, 3, 8)) x.getDate(); >x.getDate() : number ->x.getDate : () => number ->x : T ->getDate : () => number +>x.getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) +>x : T, Symbol(x, Decl(innerTypeParameterShadowingOuterOne2.ts, 10, 11)) +>getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) } } class C2 { ->C2 : C2 ->T : T ->Date : Date ->U : U ->Date : Date +>C2 : C2, Symbol(C2, Decl(innerTypeParameterShadowingOuterOne2.ts, 13, 1)) +>T : T, Symbol(T, Decl(innerTypeParameterShadowingOuterOne2.ts, 15, 9)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>U : U, Symbol(U, Decl(innerTypeParameterShadowingOuterOne2.ts, 15, 24)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) g() { ->g : () => void ->T : T ->Number : Number ->U : U ->Number : Number +>g : () => void, Symbol(g, Decl(innerTypeParameterShadowingOuterOne2.ts, 15, 42)) +>T : T, Symbol(T, Decl(innerTypeParameterShadowingOuterOne2.ts, 16, 6)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) +>U : U, Symbol(U, Decl(innerTypeParameterShadowingOuterOne2.ts, 16, 23)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) var x: U; ->x : U ->U : U +>x : U, Symbol(x, Decl(innerTypeParameterShadowingOuterOne2.ts, 17, 11)) +>U : U, Symbol(U, Decl(innerTypeParameterShadowingOuterOne2.ts, 16, 23)) x.toFixed(); >x.toFixed() : string ->x.toFixed : (fractionDigits?: number) => string ->x : U ->toFixed : (fractionDigits?: number) => string +>x.toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) +>x : U, Symbol(x, Decl(innerTypeParameterShadowingOuterOne2.ts, 17, 11)) +>toFixed : (fractionDigits?: number) => string, Symbol(Number.toFixed, Decl(lib.d.ts, 463, 37)) } h() { ->h : () => void +>h : () => void, Symbol(h, Decl(innerTypeParameterShadowingOuterOne2.ts, 19, 5)) var x: U; ->x : U ->U : U +>x : U, Symbol(x, Decl(innerTypeParameterShadowingOuterOne2.ts, 22, 11)) +>U : U, Symbol(U, Decl(innerTypeParameterShadowingOuterOne2.ts, 15, 24)) x.getDate(); >x.getDate() : number ->x.getDate : () => number ->x : U ->getDate : () => number +>x.getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) +>x : U, Symbol(x, Decl(innerTypeParameterShadowingOuterOne2.ts, 22, 11)) +>getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) } } //class C2 { diff --git a/tests/baselines/reference/instanceAndStaticDeclarations1.types b/tests/baselines/reference/instanceAndStaticDeclarations1.types index c80cf78e37a..fe11e3fd76f 100644 --- a/tests/baselines/reference/instanceAndStaticDeclarations1.types +++ b/tests/baselines/reference/instanceAndStaticDeclarations1.types @@ -2,64 +2,66 @@ // from spec class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(instanceAndStaticDeclarations1.ts, 0, 0)) constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(instanceAndStaticDeclarations1.ts, 3, 16)) +>y : number, Symbol(y, Decl(instanceAndStaticDeclarations1.ts, 3, 33)) public distance(p: Point) { ->distance : (p: Point) => number ->p : Point ->Point : Point +>distance : (p: Point) => number, Symbol(distance, Decl(instanceAndStaticDeclarations1.ts, 3, 55)) +>p : Point, Symbol(p, Decl(instanceAndStaticDeclarations1.ts, 4, 20)) +>Point : Point, Symbol(Point, Decl(instanceAndStaticDeclarations1.ts, 0, 0)) var dx = this.x - p.x; ->dx : number +>dx : number, Symbol(dx, Decl(instanceAndStaticDeclarations1.ts, 5, 11)) >this.x - p.x : number ->this.x : number ->this : Point ->x : number ->p.x : number ->p : Point ->x : number +>this.x : number, Symbol(x, Decl(instanceAndStaticDeclarations1.ts, 3, 16)) +>this : Point, Symbol(Point, Decl(instanceAndStaticDeclarations1.ts, 0, 0)) +>x : number, Symbol(x, Decl(instanceAndStaticDeclarations1.ts, 3, 16)) +>p.x : number, Symbol(x, Decl(instanceAndStaticDeclarations1.ts, 3, 16)) +>p : Point, Symbol(p, Decl(instanceAndStaticDeclarations1.ts, 4, 20)) +>x : number, Symbol(x, Decl(instanceAndStaticDeclarations1.ts, 3, 16)) var dy = this.y - p.y; ->dy : number +>dy : number, Symbol(dy, Decl(instanceAndStaticDeclarations1.ts, 6, 11)) >this.y - p.y : number ->this.y : number ->this : Point ->y : number ->p.y : number ->p : Point ->y : number +>this.y : number, Symbol(y, Decl(instanceAndStaticDeclarations1.ts, 3, 33)) +>this : Point, Symbol(Point, Decl(instanceAndStaticDeclarations1.ts, 0, 0)) +>y : number, Symbol(y, Decl(instanceAndStaticDeclarations1.ts, 3, 33)) +>p.y : number, Symbol(y, Decl(instanceAndStaticDeclarations1.ts, 3, 33)) +>p : Point, Symbol(p, Decl(instanceAndStaticDeclarations1.ts, 4, 20)) +>y : number, Symbol(y, Decl(instanceAndStaticDeclarations1.ts, 3, 33)) return Math.sqrt(dx * dx + dy * dy); >Math.sqrt(dx * dx + dy * dy) : number ->Math.sqrt : (x: number) => number ->Math : Math ->sqrt : (x: number) => number +>Math.sqrt : (x: number) => number, Symbol(Math.sqrt, Decl(lib.d.ts, 620, 27)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>sqrt : (x: number) => number, Symbol(Math.sqrt, Decl(lib.d.ts, 620, 27)) >dx * dx + dy * dy : number >dx * dx : number ->dx : number ->dx : number +>dx : number, Symbol(dx, Decl(instanceAndStaticDeclarations1.ts, 5, 11)) +>dx : number, Symbol(dx, Decl(instanceAndStaticDeclarations1.ts, 5, 11)) >dy * dy : number ->dy : number ->dy : number +>dy : number, Symbol(dy, Decl(instanceAndStaticDeclarations1.ts, 6, 11)) +>dy : number, Symbol(dy, Decl(instanceAndStaticDeclarations1.ts, 6, 11)) } static origin = new Point(0, 0); ->origin : Point +>origin : Point, Symbol(Point.origin, Decl(instanceAndStaticDeclarations1.ts, 8, 5)) >new Point(0, 0) : Point ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(instanceAndStaticDeclarations1.ts, 0, 0)) +>0 : number +>0 : number static distance(p1: Point, p2: Point) { return p1.distance(p2); } ->distance : (p1: Point, p2: Point) => number ->p1 : Point ->Point : Point ->p2 : Point ->Point : Point +>distance : (p1: Point, p2: Point) => number, Symbol(Point.distance, Decl(instanceAndStaticDeclarations1.ts, 9, 36)) +>p1 : Point, Symbol(p1, Decl(instanceAndStaticDeclarations1.ts, 10, 20)) +>Point : Point, Symbol(Point, Decl(instanceAndStaticDeclarations1.ts, 0, 0)) +>p2 : Point, Symbol(p2, Decl(instanceAndStaticDeclarations1.ts, 10, 30)) +>Point : Point, Symbol(Point, Decl(instanceAndStaticDeclarations1.ts, 0, 0)) >p1.distance(p2) : number ->p1.distance : (p: Point) => number ->p1 : Point ->distance : (p: Point) => number ->p2 : Point +>p1.distance : (p: Point) => number, Symbol(distance, Decl(instanceAndStaticDeclarations1.ts, 3, 55)) +>p1 : Point, Symbol(p1, Decl(instanceAndStaticDeclarations1.ts, 10, 20)) +>distance : (p: Point) => number, Symbol(distance, Decl(instanceAndStaticDeclarations1.ts, 3, 55)) +>p2 : Point, Symbol(p2, Decl(instanceAndStaticDeclarations1.ts, 10, 30)) } diff --git a/tests/baselines/reference/instanceMemberInitialization.types b/tests/baselines/reference/instanceMemberInitialization.types index 5e9d7df3706..6a57bab5f6f 100644 --- a/tests/baselines/reference/instanceMemberInitialization.types +++ b/tests/baselines/reference/instanceMemberInitialization.types @@ -1,34 +1,36 @@ === tests/cases/conformance/classes/propertyMemberDeclarations/instanceMemberInitialization.ts === class C { ->C : C +>C : C, Symbol(C, Decl(instanceMemberInitialization.ts, 0, 0)) x = 1; ->x : number +>x : number, Symbol(x, Decl(instanceMemberInitialization.ts, 0, 9)) +>1 : number } var c = new C(); ->c : C +>c : C, Symbol(c, Decl(instanceMemberInitialization.ts, 4, 3)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(instanceMemberInitialization.ts, 0, 0)) c.x = 3; >c.x = 3 : number ->c.x : number ->c : C ->x : number +>c.x : number, Symbol(C.x, Decl(instanceMemberInitialization.ts, 0, 9)) +>c : C, Symbol(c, Decl(instanceMemberInitialization.ts, 4, 3)) +>x : number, Symbol(C.x, Decl(instanceMemberInitialization.ts, 0, 9)) +>3 : number var c2 = new C(); ->c2 : C +>c2 : C, Symbol(c2, Decl(instanceMemberInitialization.ts, 6, 3)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(instanceMemberInitialization.ts, 0, 0)) var r = c.x === c2.x; ->r : boolean +>r : boolean, Symbol(r, Decl(instanceMemberInitialization.ts, 7, 3)) >c.x === c2.x : boolean ->c.x : number ->c : C ->x : number ->c2.x : number ->c2 : C ->x : number +>c.x : number, Symbol(C.x, Decl(instanceMemberInitialization.ts, 0, 9)) +>c : C, Symbol(c, Decl(instanceMemberInitialization.ts, 4, 3)) +>x : number, Symbol(C.x, Decl(instanceMemberInitialization.ts, 0, 9)) +>c2.x : number, Symbol(C.x, Decl(instanceMemberInitialization.ts, 0, 9)) +>c2 : C, Symbol(c2, Decl(instanceMemberInitialization.ts, 6, 3)) +>x : number, Symbol(C.x, Decl(instanceMemberInitialization.ts, 0, 9)) diff --git a/tests/baselines/reference/instanceOfInExternalModules.types b/tests/baselines/reference/instanceOfInExternalModules.types index 6e2eb8c77aa..33b14d8210e 100644 --- a/tests/baselines/reference/instanceOfInExternalModules.types +++ b/tests/baselines/reference/instanceOfInExternalModules.types @@ -1,22 +1,22 @@ === tests/cases/compiler/instanceOfInExternalModules_1.ts === /// import Bar = require("instanceOfInExternalModules_require"); ->Bar : typeof Bar +>Bar : typeof Bar, Symbol(Bar, Decl(instanceOfInExternalModules_1.ts, 0, 0)) function IsFoo(value: any): boolean { ->IsFoo : (value: any) => boolean ->value : any +>IsFoo : (value: any) => boolean, Symbol(IsFoo, Decl(instanceOfInExternalModules_1.ts, 1, 60)) +>value : any, Symbol(value, Decl(instanceOfInExternalModules_1.ts, 2, 15)) return value instanceof Bar.Foo; >value instanceof Bar.Foo : boolean ->value : any ->Bar.Foo : typeof Bar.Foo ->Bar : typeof Bar ->Foo : typeof Bar.Foo +>value : any, Symbol(value, Decl(instanceOfInExternalModules_1.ts, 2, 15)) +>Bar.Foo : typeof Bar.Foo, Symbol(Bar.Foo, Decl(instanceOfInExternalModules_require.ts, 0, 0)) +>Bar : typeof Bar, Symbol(Bar, Decl(instanceOfInExternalModules_1.ts, 0, 0)) +>Foo : typeof Bar.Foo, Symbol(Bar.Foo, Decl(instanceOfInExternalModules_require.ts, 0, 0)) } === tests/cases/compiler/instanceOfInExternalModules_require.ts === export class Foo { foo: string; } ->Foo : Foo ->foo : string +>Foo : Foo, Symbol(Foo, Decl(instanceOfInExternalModules_require.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(instanceOfInExternalModules_require.ts, 0, 18)) diff --git a/tests/baselines/reference/instanceSubtypeCheck1.types b/tests/baselines/reference/instanceSubtypeCheck1.types index f5c127e0025..8e57acdbef6 100644 --- a/tests/baselines/reference/instanceSubtypeCheck1.types +++ b/tests/baselines/reference/instanceSubtypeCheck1.types @@ -1,24 +1,24 @@ === tests/cases/compiler/instanceSubtypeCheck1.ts === interface A ->A : A ->T : T +>A : A, Symbol(A, Decl(instanceSubtypeCheck1.ts, 0, 0)) +>T : T, Symbol(T, Decl(instanceSubtypeCheck1.ts, 0, 12)) { x: A> ->x : A> ->A : A ->B : B ->T : T +>x : A>, Symbol(x, Decl(instanceSubtypeCheck1.ts, 1, 1)) +>A : A, Symbol(A, Decl(instanceSubtypeCheck1.ts, 0, 0)) +>B : B, Symbol(B, Decl(instanceSubtypeCheck1.ts, 3, 1)) +>T : T, Symbol(T, Decl(instanceSubtypeCheck1.ts, 0, 12)) } interface B extends A ->B : B ->T : T ->A : A ->T : T +>B : B, Symbol(B, Decl(instanceSubtypeCheck1.ts, 3, 1)) +>T : T, Symbol(T, Decl(instanceSubtypeCheck1.ts, 5, 12)) +>A : A, Symbol(A, Decl(instanceSubtypeCheck1.ts, 0, 0)) +>T : T, Symbol(T, Decl(instanceSubtypeCheck1.ts, 5, 12)) { x: B> ->x : B> ->B : B ->A : A ->T : T +>x : B>, Symbol(x, Decl(instanceSubtypeCheck1.ts, 6, 1)) +>B : B, Symbol(B, Decl(instanceSubtypeCheck1.ts, 3, 1)) +>A : A, Symbol(A, Decl(instanceSubtypeCheck1.ts, 0, 0)) +>T : T, Symbol(T, Decl(instanceSubtypeCheck1.ts, 5, 12)) } diff --git a/tests/baselines/reference/instanceofOperatorWithAny.types b/tests/baselines/reference/instanceofOperatorWithAny.types index e53aa2d75ca..b1dc369dbc7 100644 --- a/tests/baselines/reference/instanceofOperatorWithAny.types +++ b/tests/baselines/reference/instanceofOperatorWithAny.types @@ -1,10 +1,10 @@ === tests/cases/conformance/expressions/binaryOperators/instanceofOperator/instanceofOperatorWithAny.ts === var a: any; ->a : any +>a : any, Symbol(a, Decl(instanceofOperatorWithAny.ts, 0, 3)) var r: boolean = a instanceof a; ->r : boolean +>r : boolean, Symbol(r, Decl(instanceofOperatorWithAny.ts, 2, 3)) >a instanceof a : boolean ->a : any ->a : any +>a : any, Symbol(a, Decl(instanceofOperatorWithAny.ts, 0, 3)) +>a : any, Symbol(a, Decl(instanceofOperatorWithAny.ts, 0, 3)) diff --git a/tests/baselines/reference/instanceofOperatorWithLHSIsObject.types b/tests/baselines/reference/instanceofOperatorWithLHSIsObject.types index 9962a23dced..dad2a543fe1 100644 --- a/tests/baselines/reference/instanceofOperatorWithLHSIsObject.types +++ b/tests/baselines/reference/instanceofOperatorWithLHSIsObject.types @@ -1,50 +1,50 @@ === tests/cases/conformance/expressions/binaryOperators/instanceofOperator/instanceofOperatorWithLHSIsObject.ts === class C { } ->C : C +>C : C, Symbol(C, Decl(instanceofOperatorWithLHSIsObject.ts, 0, 0)) var x1: any; ->x1 : any +>x1 : any, Symbol(x1, Decl(instanceofOperatorWithLHSIsObject.ts, 2, 3)) var x2: Function; ->x2 : Function ->Function : Function +>x2 : Function, Symbol(x2, Decl(instanceofOperatorWithLHSIsObject.ts, 3, 3)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) var a: {}; ->a : {} +>a : {}, Symbol(a, Decl(instanceofOperatorWithLHSIsObject.ts, 5, 3)) var b: Object; ->b : Object ->Object : Object +>b : Object, Symbol(b, Decl(instanceofOperatorWithLHSIsObject.ts, 6, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(instanceofOperatorWithLHSIsObject.ts, 7, 3)) +>C : C, Symbol(C, Decl(instanceofOperatorWithLHSIsObject.ts, 0, 0)) var d: string | C; ->d : string | C ->C : C +>d : string | C, Symbol(d, Decl(instanceofOperatorWithLHSIsObject.ts, 8, 3)) +>C : C, Symbol(C, Decl(instanceofOperatorWithLHSIsObject.ts, 0, 0)) var r1 = a instanceof x1; ->r1 : boolean +>r1 : boolean, Symbol(r1, Decl(instanceofOperatorWithLHSIsObject.ts, 10, 3)) >a instanceof x1 : boolean ->a : {} ->x1 : any +>a : {}, Symbol(a, Decl(instanceofOperatorWithLHSIsObject.ts, 5, 3)) +>x1 : any, Symbol(x1, Decl(instanceofOperatorWithLHSIsObject.ts, 2, 3)) var r2 = b instanceof x2; ->r2 : boolean +>r2 : boolean, Symbol(r2, Decl(instanceofOperatorWithLHSIsObject.ts, 11, 3)) >b instanceof x2 : boolean ->b : Object ->x2 : Function +>b : Object, Symbol(b, Decl(instanceofOperatorWithLHSIsObject.ts, 6, 3)) +>x2 : Function, Symbol(x2, Decl(instanceofOperatorWithLHSIsObject.ts, 3, 3)) var r3 = c instanceof x1; ->r3 : boolean +>r3 : boolean, Symbol(r3, Decl(instanceofOperatorWithLHSIsObject.ts, 12, 3)) >c instanceof x1 : boolean ->c : C ->x1 : any +>c : C, Symbol(c, Decl(instanceofOperatorWithLHSIsObject.ts, 7, 3)) +>x1 : any, Symbol(x1, Decl(instanceofOperatorWithLHSIsObject.ts, 2, 3)) var r4 = d instanceof x1; ->r4 : boolean +>r4 : boolean, Symbol(r4, Decl(instanceofOperatorWithLHSIsObject.ts, 13, 3)) >d instanceof x1 : boolean ->d : string | C ->x1 : any +>d : string | C, Symbol(d, Decl(instanceofOperatorWithLHSIsObject.ts, 8, 3)) +>x1 : any, Symbol(x1, Decl(instanceofOperatorWithLHSIsObject.ts, 2, 3)) diff --git a/tests/baselines/reference/instanceofOperatorWithLHSIsTypeParameter.types b/tests/baselines/reference/instanceofOperatorWithLHSIsTypeParameter.types index d10c6c5cafa..df00cc1df62 100644 --- a/tests/baselines/reference/instanceofOperatorWithLHSIsTypeParameter.types +++ b/tests/baselines/reference/instanceofOperatorWithLHSIsTypeParameter.types @@ -1,16 +1,16 @@ === tests/cases/conformance/expressions/binaryOperators/instanceofOperator/instanceofOperatorWithLHSIsTypeParameter.ts === function foo(t: T) { ->foo : (t: T) => void ->T : T ->t : T ->T : T +>foo : (t: T) => void, Symbol(foo, Decl(instanceofOperatorWithLHSIsTypeParameter.ts, 0, 0)) +>T : T, Symbol(T, Decl(instanceofOperatorWithLHSIsTypeParameter.ts, 0, 13)) +>t : T, Symbol(t, Decl(instanceofOperatorWithLHSIsTypeParameter.ts, 0, 16)) +>T : T, Symbol(T, Decl(instanceofOperatorWithLHSIsTypeParameter.ts, 0, 13)) var x: any; ->x : any +>x : any, Symbol(x, Decl(instanceofOperatorWithLHSIsTypeParameter.ts, 1, 7)) var r = t instanceof x; ->r : boolean +>r : boolean, Symbol(r, Decl(instanceofOperatorWithLHSIsTypeParameter.ts, 2, 7)) >t instanceof x : boolean ->t : T ->x : any +>t : T, Symbol(t, Decl(instanceofOperatorWithLHSIsTypeParameter.ts, 0, 16)) +>x : any, Symbol(x, Decl(instanceofOperatorWithLHSIsTypeParameter.ts, 1, 7)) } diff --git a/tests/baselines/reference/instanceofOperatorWithRHSIsSubtypeOfFunction.types b/tests/baselines/reference/instanceofOperatorWithRHSIsSubtypeOfFunction.types index 2bcf91bb1ab..8dceee3aeda 100644 --- a/tests/baselines/reference/instanceofOperatorWithRHSIsSubtypeOfFunction.types +++ b/tests/baselines/reference/instanceofOperatorWithRHSIsSubtypeOfFunction.types @@ -1,57 +1,58 @@ === tests/cases/conformance/expressions/binaryOperators/instanceofOperator/instanceofOperatorWithRHSIsSubtypeOfFunction.ts === interface I extends Function { } ->I : I ->Function : Function +>I : I, Symbol(I, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 0, 0)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) var x: any; ->x : any +>x : any, Symbol(x, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 2, 3)) var f1: Function; ->f1 : Function ->Function : Function +>f1 : Function, Symbol(f1, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 3, 3)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) var f2: I; ->f2 : I ->I : I +>f2 : I, Symbol(f2, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 4, 3)) +>I : I, Symbol(I, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 0, 0)) var f3: { (): void }; ->f3 : () => void +>f3 : () => void, Symbol(f3, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 5, 3)) var f4: { new (): number }; ->f4 : new () => number +>f4 : new () => number, Symbol(f4, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 6, 3)) var r1 = x instanceof f1; ->r1 : boolean +>r1 : boolean, Symbol(r1, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 8, 3)) >x instanceof f1 : boolean ->x : any ->f1 : Function +>x : any, Symbol(x, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 2, 3)) +>f1 : Function, Symbol(f1, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 3, 3)) var r2 = x instanceof f2; ->r2 : boolean +>r2 : boolean, Symbol(r2, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 9, 3)) >x instanceof f2 : boolean ->x : any ->f2 : I +>x : any, Symbol(x, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 2, 3)) +>f2 : I, Symbol(f2, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 4, 3)) var r3 = x instanceof f3; ->r3 : boolean +>r3 : boolean, Symbol(r3, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 10, 3)) >x instanceof f3 : boolean ->x : any ->f3 : () => void +>x : any, Symbol(x, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 2, 3)) +>f3 : () => void, Symbol(f3, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 5, 3)) var r4 = x instanceof f4; ->r4 : boolean +>r4 : boolean, Symbol(r4, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 11, 3)) >x instanceof f4 : boolean ->x : any ->f4 : new () => number +>x : any, Symbol(x, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 2, 3)) +>f4 : new () => number, Symbol(f4, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 6, 3)) var r5 = x instanceof null; ->r5 : boolean +>r5 : boolean, Symbol(r5, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 12, 3)) >x instanceof null : boolean ->x : any +>x : any, Symbol(x, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 2, 3)) +>null : null var r6 = x instanceof undefined; ->r6 : boolean +>r6 : boolean, Symbol(r6, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 13, 3)) >x instanceof undefined : boolean ->x : any ->undefined : undefined +>x : any, Symbol(x, Decl(instanceofOperatorWithRHSIsSubtypeOfFunction.ts, 2, 3)) +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/instantiateGenericClassWithZeroTypeArguments.types b/tests/baselines/reference/instantiateGenericClassWithZeroTypeArguments.types index 0fe962e9c8f..f3a34fc0cf7 100644 --- a/tests/baselines/reference/instantiateGenericClassWithZeroTypeArguments.types +++ b/tests/baselines/reference/instantiateGenericClassWithZeroTypeArguments.types @@ -2,35 +2,35 @@ // no errors expected when instantiating a generic type with no type arguments provided class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 0, 0)) +>T : T, Symbol(T, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 2, 8)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 2, 12)) +>T : T, Symbol(T, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 2, 8)) } var c = new C(); ->c : C<{}> +>c : C<{}>, Symbol(c, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 6, 3)) >new C() : C<{}> ->C : typeof C +>C : typeof C, Symbol(C, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 0, 0)) class D { ->D : D ->T : T ->U : U +>D : D, Symbol(D, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 6, 16)) +>T : T, Symbol(T, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 8, 8)) +>U : U, Symbol(U, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 8, 10)) x: T ->x : T ->T : T +>x : T, Symbol(x, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 8, 15)) +>T : T, Symbol(T, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 8, 8)) y: U ->y : U ->U : U +>y : U, Symbol(y, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 9, 8)) +>U : U, Symbol(U, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 8, 10)) } var d = new D(); ->d : D<{}, {}> +>d : D<{}, {}>, Symbol(d, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 13, 3)) >new D() : D<{}, {}> ->D : typeof D +>D : typeof D, Symbol(D, Decl(instantiateGenericClassWithZeroTypeArguments.ts, 6, 16)) diff --git a/tests/baselines/reference/instantiatedModule.types b/tests/baselines/reference/instantiatedModule.types index b3f4dc0d5a1..6146c3b5f9f 100644 --- a/tests/baselines/reference/instantiatedModule.types +++ b/tests/baselines/reference/instantiatedModule.types @@ -2,196 +2,201 @@ // adding the var makes this an instantiated module module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(instantiatedModule.ts, 0, 0)) export interface Point { x: number; y: number } ->Point : Point ->x : number ->y : number +>Point : Point, Symbol(Point, Decl(instantiatedModule.ts, 2, 10), Decl(instantiatedModule.ts, 4, 14)) +>x : number, Symbol(x, Decl(instantiatedModule.ts, 3, 28)) +>y : number, Symbol(y, Decl(instantiatedModule.ts, 3, 39)) export var Point = 1; ->Point : number +>Point : number, Symbol(Point, Decl(instantiatedModule.ts, 2, 10), Decl(instantiatedModule.ts, 4, 14)) +>1 : number } // primary expression var m: typeof M; ->m : typeof M ->M : typeof M +>m : typeof M, Symbol(m, Decl(instantiatedModule.ts, 8, 3), Decl(instantiatedModule.ts, 9, 3)) +>M : typeof M, Symbol(M, Decl(instantiatedModule.ts, 0, 0)) var m = M; ->m : typeof M ->M : typeof M +>m : typeof M, Symbol(m, Decl(instantiatedModule.ts, 8, 3), Decl(instantiatedModule.ts, 9, 3)) +>M : typeof M, Symbol(M, Decl(instantiatedModule.ts, 0, 0)) var a1: number; ->a1 : number +>a1 : number, Symbol(a1, Decl(instantiatedModule.ts, 11, 3), Decl(instantiatedModule.ts, 12, 3), Decl(instantiatedModule.ts, 13, 3)) var a1 = M.Point; ->a1 : number ->M.Point : number ->M : typeof M ->Point : number +>a1 : number, Symbol(a1, Decl(instantiatedModule.ts, 11, 3), Decl(instantiatedModule.ts, 12, 3), Decl(instantiatedModule.ts, 13, 3)) +>M.Point : number, Symbol(M.Point, Decl(instantiatedModule.ts, 2, 10), Decl(instantiatedModule.ts, 4, 14)) +>M : typeof M, Symbol(M, Decl(instantiatedModule.ts, 0, 0)) +>Point : number, Symbol(M.Point, Decl(instantiatedModule.ts, 2, 10), Decl(instantiatedModule.ts, 4, 14)) var a1 = m.Point; ->a1 : number ->m.Point : number ->m : typeof M ->Point : number +>a1 : number, Symbol(a1, Decl(instantiatedModule.ts, 11, 3), Decl(instantiatedModule.ts, 12, 3), Decl(instantiatedModule.ts, 13, 3)) +>m.Point : number, Symbol(M.Point, Decl(instantiatedModule.ts, 2, 10), Decl(instantiatedModule.ts, 4, 14)) +>m : typeof M, Symbol(m, Decl(instantiatedModule.ts, 8, 3), Decl(instantiatedModule.ts, 9, 3)) +>Point : number, Symbol(M.Point, Decl(instantiatedModule.ts, 2, 10), Decl(instantiatedModule.ts, 4, 14)) var p1: { x: number; y: number; } ->p1 : { x: number; y: number; } ->x : number ->y : number +>p1 : { x: number; y: number; }, Symbol(p1, Decl(instantiatedModule.ts, 15, 3), Decl(instantiatedModule.ts, 16, 3)) +>x : number, Symbol(x, Decl(instantiatedModule.ts, 15, 9)) +>y : number, Symbol(y, Decl(instantiatedModule.ts, 15, 20)) var p1: M.Point; ->p1 : { x: number; y: number; } ->M : unknown ->Point : M.Point +>p1 : { x: number; y: number; }, Symbol(p1, Decl(instantiatedModule.ts, 15, 3), Decl(instantiatedModule.ts, 16, 3)) +>M : any, Symbol(M, Decl(instantiatedModule.ts, 0, 0)) +>Point : M.Point, Symbol(M.Point, Decl(instantiatedModule.ts, 2, 10), Decl(instantiatedModule.ts, 4, 14)) // making the point a class instead of an interface // makes this an instantiated mmodule module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(instantiatedModule.ts, 16, 16)) export class Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(instantiatedModule.ts, 20, 11)) x: number; ->x : number +>x : number, Symbol(x, Decl(instantiatedModule.ts, 21, 24)) y: number; ->y : number +>y : number, Symbol(y, Decl(instantiatedModule.ts, 22, 18)) static Origin(): Point { ->Origin : () => Point ->Point : Point +>Origin : () => Point, Symbol(Point.Origin, Decl(instantiatedModule.ts, 23, 18)) +>Point : Point, Symbol(Point, Decl(instantiatedModule.ts, 20, 11)) return { x: 0, y: 0 }; >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(instantiatedModule.ts, 25, 20)) +>0 : number +>y : number, Symbol(y, Decl(instantiatedModule.ts, 25, 26)) +>0 : number } } } var m2: typeof M2; ->m2 : typeof M2 ->M2 : typeof M2 +>m2 : typeof M2, Symbol(m2, Decl(instantiatedModule.ts, 30, 3), Decl(instantiatedModule.ts, 31, 3)) +>M2 : typeof M2, Symbol(M2, Decl(instantiatedModule.ts, 16, 16)) var m2 = M2; ->m2 : typeof M2 ->M2 : typeof M2 +>m2 : typeof M2, Symbol(m2, Decl(instantiatedModule.ts, 30, 3), Decl(instantiatedModule.ts, 31, 3)) +>M2 : typeof M2, Symbol(M2, Decl(instantiatedModule.ts, 16, 16)) // static side of the class var a2: typeof M2.Point; ->a2 : typeof M2.Point ->M2 : typeof M2 ->Point : typeof M2.Point +>a2 : typeof M2.Point, Symbol(a2, Decl(instantiatedModule.ts, 34, 3), Decl(instantiatedModule.ts, 35, 3), Decl(instantiatedModule.ts, 36, 3)) +>M2.Point : typeof M2.Point, Symbol(M2.Point, Decl(instantiatedModule.ts, 20, 11)) +>M2 : typeof M2, Symbol(M2, Decl(instantiatedModule.ts, 16, 16)) +>Point : typeof M2.Point, Symbol(M2.Point, Decl(instantiatedModule.ts, 20, 11)) var a2 = m2.Point; ->a2 : typeof M2.Point ->m2.Point : typeof M2.Point ->m2 : typeof M2 ->Point : typeof M2.Point +>a2 : typeof M2.Point, Symbol(a2, Decl(instantiatedModule.ts, 34, 3), Decl(instantiatedModule.ts, 35, 3), Decl(instantiatedModule.ts, 36, 3)) +>m2.Point : typeof M2.Point, Symbol(M2.Point, Decl(instantiatedModule.ts, 20, 11)) +>m2 : typeof M2, Symbol(m2, Decl(instantiatedModule.ts, 30, 3), Decl(instantiatedModule.ts, 31, 3)) +>Point : typeof M2.Point, Symbol(M2.Point, Decl(instantiatedModule.ts, 20, 11)) var a2 = M2.Point; ->a2 : typeof M2.Point ->M2.Point : typeof M2.Point ->M2 : typeof M2 ->Point : typeof M2.Point +>a2 : typeof M2.Point, Symbol(a2, Decl(instantiatedModule.ts, 34, 3), Decl(instantiatedModule.ts, 35, 3), Decl(instantiatedModule.ts, 36, 3)) +>M2.Point : typeof M2.Point, Symbol(M2.Point, Decl(instantiatedModule.ts, 20, 11)) +>M2 : typeof M2, Symbol(M2, Decl(instantiatedModule.ts, 16, 16)) +>Point : typeof M2.Point, Symbol(M2.Point, Decl(instantiatedModule.ts, 20, 11)) var o: M2.Point = a2.Origin(); ->o : M2.Point ->M2 : unknown ->Point : M2.Point +>o : M2.Point, Symbol(o, Decl(instantiatedModule.ts, 37, 3)) +>M2 : any, Symbol(M2, Decl(instantiatedModule.ts, 16, 16)) +>Point : M2.Point, Symbol(M2.Point, Decl(instantiatedModule.ts, 20, 11)) >a2.Origin() : M2.Point ->a2.Origin : () => M2.Point ->a2 : typeof M2.Point ->Origin : () => M2.Point +>a2.Origin : () => M2.Point, Symbol(M2.Point.Origin, Decl(instantiatedModule.ts, 23, 18)) +>a2 : typeof M2.Point, Symbol(a2, Decl(instantiatedModule.ts, 34, 3), Decl(instantiatedModule.ts, 35, 3), Decl(instantiatedModule.ts, 36, 3)) +>Origin : () => M2.Point, Symbol(M2.Point.Origin, Decl(instantiatedModule.ts, 23, 18)) var p2: { x: number; y: number } ->p2 : { x: number; y: number; } ->x : number ->y : number +>p2 : { x: number; y: number; }, Symbol(p2, Decl(instantiatedModule.ts, 39, 3), Decl(instantiatedModule.ts, 40, 3), Decl(instantiatedModule.ts, 41, 3), Decl(instantiatedModule.ts, 42, 3)) +>x : number, Symbol(x, Decl(instantiatedModule.ts, 39, 9)) +>y : number, Symbol(y, Decl(instantiatedModule.ts, 39, 20)) var p2: M2.Point; ->p2 : { x: number; y: number; } ->M2 : unknown ->Point : M2.Point +>p2 : { x: number; y: number; }, Symbol(p2, Decl(instantiatedModule.ts, 39, 3), Decl(instantiatedModule.ts, 40, 3), Decl(instantiatedModule.ts, 41, 3), Decl(instantiatedModule.ts, 42, 3)) +>M2 : any, Symbol(M2, Decl(instantiatedModule.ts, 16, 16)) +>Point : M2.Point, Symbol(M2.Point, Decl(instantiatedModule.ts, 20, 11)) var p2 = new m2.Point(); ->p2 : { x: number; y: number; } +>p2 : { x: number; y: number; }, Symbol(p2, Decl(instantiatedModule.ts, 39, 3), Decl(instantiatedModule.ts, 40, 3), Decl(instantiatedModule.ts, 41, 3), Decl(instantiatedModule.ts, 42, 3)) >new m2.Point() : M2.Point ->m2.Point : typeof M2.Point ->m2 : typeof M2 ->Point : typeof M2.Point +>m2.Point : typeof M2.Point, Symbol(M2.Point, Decl(instantiatedModule.ts, 20, 11)) +>m2 : typeof M2, Symbol(m2, Decl(instantiatedModule.ts, 30, 3), Decl(instantiatedModule.ts, 31, 3)) +>Point : typeof M2.Point, Symbol(M2.Point, Decl(instantiatedModule.ts, 20, 11)) var p2 = new M2.Point(); ->p2 : { x: number; y: number; } +>p2 : { x: number; y: number; }, Symbol(p2, Decl(instantiatedModule.ts, 39, 3), Decl(instantiatedModule.ts, 40, 3), Decl(instantiatedModule.ts, 41, 3), Decl(instantiatedModule.ts, 42, 3)) >new M2.Point() : M2.Point ->M2.Point : typeof M2.Point ->M2 : typeof M2 ->Point : typeof M2.Point +>M2.Point : typeof M2.Point, Symbol(M2.Point, Decl(instantiatedModule.ts, 20, 11)) +>M2 : typeof M2, Symbol(M2, Decl(instantiatedModule.ts, 16, 16)) +>Point : typeof M2.Point, Symbol(M2.Point, Decl(instantiatedModule.ts, 20, 11)) module M3 { ->M3 : typeof M3 +>M3 : typeof M3, Symbol(M3, Decl(instantiatedModule.ts, 42, 24)) export enum Color { Blue, Red } ->Color : Color ->Blue : Color ->Red : Color +>Color : Color, Symbol(Color, Decl(instantiatedModule.ts, 44, 11)) +>Blue : Color, Symbol(Color.Blue, Decl(instantiatedModule.ts, 45, 23)) +>Red : Color, Symbol(Color.Red, Decl(instantiatedModule.ts, 45, 29)) } var m3: typeof M3; ->m3 : typeof M3 ->M3 : typeof M3 +>m3 : typeof M3, Symbol(m3, Decl(instantiatedModule.ts, 48, 3), Decl(instantiatedModule.ts, 49, 3)) +>M3 : typeof M3, Symbol(M3, Decl(instantiatedModule.ts, 42, 24)) var m3 = M3; ->m3 : typeof M3 ->M3 : typeof M3 +>m3 : typeof M3, Symbol(m3, Decl(instantiatedModule.ts, 48, 3), Decl(instantiatedModule.ts, 49, 3)) +>M3 : typeof M3, Symbol(M3, Decl(instantiatedModule.ts, 42, 24)) var a3: typeof M3.Color; ->a3 : typeof M3.Color ->M3 : typeof M3 ->Color : typeof M3.Color +>a3 : typeof M3.Color, Symbol(a3, Decl(instantiatedModule.ts, 51, 3), Decl(instantiatedModule.ts, 52, 3), Decl(instantiatedModule.ts, 53, 3)) +>M3.Color : typeof M3.Color, Symbol(M3.Color, Decl(instantiatedModule.ts, 44, 11)) +>M3 : typeof M3, Symbol(M3, Decl(instantiatedModule.ts, 42, 24)) +>Color : typeof M3.Color, Symbol(M3.Color, Decl(instantiatedModule.ts, 44, 11)) var a3 = m3.Color; ->a3 : typeof M3.Color ->m3.Color : typeof M3.Color ->m3 : typeof M3 ->Color : typeof M3.Color +>a3 : typeof M3.Color, Symbol(a3, Decl(instantiatedModule.ts, 51, 3), Decl(instantiatedModule.ts, 52, 3), Decl(instantiatedModule.ts, 53, 3)) +>m3.Color : typeof M3.Color, Symbol(M3.Color, Decl(instantiatedModule.ts, 44, 11)) +>m3 : typeof M3, Symbol(m3, Decl(instantiatedModule.ts, 48, 3), Decl(instantiatedModule.ts, 49, 3)) +>Color : typeof M3.Color, Symbol(M3.Color, Decl(instantiatedModule.ts, 44, 11)) var a3 = M3.Color; ->a3 : typeof M3.Color ->M3.Color : typeof M3.Color ->M3 : typeof M3 ->Color : typeof M3.Color +>a3 : typeof M3.Color, Symbol(a3, Decl(instantiatedModule.ts, 51, 3), Decl(instantiatedModule.ts, 52, 3), Decl(instantiatedModule.ts, 53, 3)) +>M3.Color : typeof M3.Color, Symbol(M3.Color, Decl(instantiatedModule.ts, 44, 11)) +>M3 : typeof M3, Symbol(M3, Decl(instantiatedModule.ts, 42, 24)) +>Color : typeof M3.Color, Symbol(M3.Color, Decl(instantiatedModule.ts, 44, 11)) var blue: M3.Color = a3.Blue; ->blue : M3.Color ->M3 : unknown ->Color : M3.Color ->a3.Blue : M3.Color ->a3 : typeof M3.Color ->Blue : M3.Color +>blue : M3.Color, Symbol(blue, Decl(instantiatedModule.ts, 54, 3)) +>M3 : any, Symbol(M3, Decl(instantiatedModule.ts, 42, 24)) +>Color : M3.Color, Symbol(M3.Color, Decl(instantiatedModule.ts, 44, 11)) +>a3.Blue : M3.Color, Symbol(M3.Color.Blue, Decl(instantiatedModule.ts, 45, 23)) +>a3 : typeof M3.Color, Symbol(a3, Decl(instantiatedModule.ts, 51, 3), Decl(instantiatedModule.ts, 52, 3), Decl(instantiatedModule.ts, 53, 3)) +>Blue : M3.Color, Symbol(M3.Color.Blue, Decl(instantiatedModule.ts, 45, 23)) var p3: M3.Color; ->p3 : M3.Color ->M3 : unknown ->Color : M3.Color +>p3 : M3.Color, Symbol(p3, Decl(instantiatedModule.ts, 56, 3), Decl(instantiatedModule.ts, 57, 3), Decl(instantiatedModule.ts, 58, 3)) +>M3 : any, Symbol(M3, Decl(instantiatedModule.ts, 42, 24)) +>Color : M3.Color, Symbol(M3.Color, Decl(instantiatedModule.ts, 44, 11)) var p3 = M3.Color.Red; ->p3 : M3.Color ->M3.Color.Red : M3.Color ->M3.Color : typeof M3.Color ->M3 : typeof M3 ->Color : typeof M3.Color ->Red : M3.Color +>p3 : M3.Color, Symbol(p3, Decl(instantiatedModule.ts, 56, 3), Decl(instantiatedModule.ts, 57, 3), Decl(instantiatedModule.ts, 58, 3)) +>M3.Color.Red : M3.Color, Symbol(M3.Color.Red, Decl(instantiatedModule.ts, 45, 29)) +>M3.Color : typeof M3.Color, Symbol(M3.Color, Decl(instantiatedModule.ts, 44, 11)) +>M3 : typeof M3, Symbol(M3, Decl(instantiatedModule.ts, 42, 24)) +>Color : typeof M3.Color, Symbol(M3.Color, Decl(instantiatedModule.ts, 44, 11)) +>Red : M3.Color, Symbol(M3.Color.Red, Decl(instantiatedModule.ts, 45, 29)) var p3 = m3.Color.Blue; ->p3 : M3.Color ->m3.Color.Blue : M3.Color ->m3.Color : typeof M3.Color ->m3 : typeof M3 ->Color : typeof M3.Color ->Blue : M3.Color +>p3 : M3.Color, Symbol(p3, Decl(instantiatedModule.ts, 56, 3), Decl(instantiatedModule.ts, 57, 3), Decl(instantiatedModule.ts, 58, 3)) +>m3.Color.Blue : M3.Color, Symbol(M3.Color.Blue, Decl(instantiatedModule.ts, 45, 23)) +>m3.Color : typeof M3.Color, Symbol(M3.Color, Decl(instantiatedModule.ts, 44, 11)) +>m3 : typeof M3, Symbol(m3, Decl(instantiatedModule.ts, 48, 3), Decl(instantiatedModule.ts, 49, 3)) +>Color : typeof M3.Color, Symbol(M3.Color, Decl(instantiatedModule.ts, 44, 11)) +>Blue : M3.Color, Symbol(M3.Color.Blue, Decl(instantiatedModule.ts, 45, 23)) diff --git a/tests/baselines/reference/instantiatedReturnTypeContravariance.types b/tests/baselines/reference/instantiatedReturnTypeContravariance.types index 8b7cb7b609e..587ed78a768 100644 --- a/tests/baselines/reference/instantiatedReturnTypeContravariance.types +++ b/tests/baselines/reference/instantiatedReturnTypeContravariance.types @@ -1,39 +1,41 @@ === tests/cases/compiler/instantiatedReturnTypeContravariance.ts === interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(instantiatedReturnTypeContravariance.ts, 0, 0)) +>T : T, Symbol(T, Decl(instantiatedReturnTypeContravariance.ts, 0, 12)) name: string; ->name : string +>name : string, Symbol(name, Decl(instantiatedReturnTypeContravariance.ts, 0, 16)) x(): T; ->x : () => T ->T : T +>x : () => T, Symbol(x, Decl(instantiatedReturnTypeContravariance.ts, 2, 13)) +>T : T, Symbol(T, Decl(instantiatedReturnTypeContravariance.ts, 0, 12)) } class c { ->c : c +>c : c, Symbol(c, Decl(instantiatedReturnTypeContravariance.ts, 6, 1)) foo(): B { ->foo : () => B ->B : B +>foo : () => B, Symbol(foo, Decl(instantiatedReturnTypeContravariance.ts, 8, 9)) +>B : B, Symbol(B, Decl(instantiatedReturnTypeContravariance.ts, 0, 0)) return null; +>null : null } } class d extends c { ->d : d ->c : c +>d : d, Symbol(d, Decl(instantiatedReturnTypeContravariance.ts, 16, 1)) +>c : c, Symbol(c, Decl(instantiatedReturnTypeContravariance.ts, 6, 1)) foo(): B { ->foo : () => B ->B : B +>foo : () => B, Symbol(foo, Decl(instantiatedReturnTypeContravariance.ts, 18, 19)) +>B : B, Symbol(B, Decl(instantiatedReturnTypeContravariance.ts, 0, 0)) return null; +>null : null } diff --git a/tests/baselines/reference/interMixingModulesInterfaces0.types b/tests/baselines/reference/interMixingModulesInterfaces0.types index 977b02e15e8..6dd46e68264 100644 --- a/tests/baselines/reference/interMixingModulesInterfaces0.types +++ b/tests/baselines/reference/interMixingModulesInterfaces0.types @@ -1,37 +1,38 @@ === tests/cases/compiler/interMixingModulesInterfaces0.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(interMixingModulesInterfaces0.ts, 0, 0)) export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(interMixingModulesInterfaces0.ts, 0, 10), Decl(interMixingModulesInterfaces0.ts, 6, 5)) export function createB(): B { ->createB : () => B ->B : B +>createB : () => B, Symbol(createB, Decl(interMixingModulesInterfaces0.ts, 2, 21)) +>B : B, Symbol(B, Decl(interMixingModulesInterfaces0.ts, 0, 10), Decl(interMixingModulesInterfaces0.ts, 6, 5)) return null; +>null : null } } export interface B { ->B : B +>B : B, Symbol(B, Decl(interMixingModulesInterfaces0.ts, 0, 10), Decl(interMixingModulesInterfaces0.ts, 6, 5)) name: string; ->name : string +>name : string, Symbol(name, Decl(interMixingModulesInterfaces0.ts, 8, 24)) value: number; ->value : number +>value : number, Symbol(value, Decl(interMixingModulesInterfaces0.ts, 9, 21)) } } var x: A.B = A.B.createB(); ->x : A.B ->A : unknown ->B : A.B +>x : A.B, Symbol(x, Decl(interMixingModulesInterfaces0.ts, 14, 3)) +>A : any, Symbol(A, Decl(interMixingModulesInterfaces0.ts, 0, 0)) +>B : A.B, Symbol(A.B, Decl(interMixingModulesInterfaces0.ts, 0, 10), Decl(interMixingModulesInterfaces0.ts, 6, 5)) >A.B.createB() : A.B ->A.B.createB : () => A.B ->A.B : typeof A.B ->A : typeof A ->B : typeof A.B ->createB : () => A.B +>A.B.createB : () => A.B, Symbol(A.B.createB, Decl(interMixingModulesInterfaces0.ts, 2, 21)) +>A.B : typeof A.B, Symbol(A.B, Decl(interMixingModulesInterfaces0.ts, 0, 10), Decl(interMixingModulesInterfaces0.ts, 6, 5)) +>A : typeof A, Symbol(A, Decl(interMixingModulesInterfaces0.ts, 0, 0)) +>B : typeof A.B, Symbol(A.B, Decl(interMixingModulesInterfaces0.ts, 0, 10), Decl(interMixingModulesInterfaces0.ts, 6, 5)) +>createB : () => A.B, Symbol(A.B.createB, Decl(interMixingModulesInterfaces0.ts, 2, 21)) diff --git a/tests/baselines/reference/interMixingModulesInterfaces1.types b/tests/baselines/reference/interMixingModulesInterfaces1.types index c94cc80e5bf..491765bff04 100644 --- a/tests/baselines/reference/interMixingModulesInterfaces1.types +++ b/tests/baselines/reference/interMixingModulesInterfaces1.types @@ -1,37 +1,38 @@ === tests/cases/compiler/interMixingModulesInterfaces1.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(interMixingModulesInterfaces1.ts, 0, 0)) export interface B { ->B : B +>B : B, Symbol(B, Decl(interMixingModulesInterfaces1.ts, 0, 10), Decl(interMixingModulesInterfaces1.ts, 5, 5)) name: string; ->name : string +>name : string, Symbol(name, Decl(interMixingModulesInterfaces1.ts, 2, 24)) value: number; ->value : number +>value : number, Symbol(value, Decl(interMixingModulesInterfaces1.ts, 3, 21)) } export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(interMixingModulesInterfaces1.ts, 0, 10), Decl(interMixingModulesInterfaces1.ts, 5, 5)) export function createB(): B { ->createB : () => B ->B : B +>createB : () => B, Symbol(createB, Decl(interMixingModulesInterfaces1.ts, 7, 21)) +>B : B, Symbol(B, Decl(interMixingModulesInterfaces1.ts, 0, 10), Decl(interMixingModulesInterfaces1.ts, 5, 5)) return null; +>null : null } } } var x: A.B = A.B.createB(); ->x : A.B ->A : unknown ->B : A.B +>x : A.B, Symbol(x, Decl(interMixingModulesInterfaces1.ts, 14, 3)) +>A : any, Symbol(A, Decl(interMixingModulesInterfaces1.ts, 0, 0)) +>B : A.B, Symbol(A.B, Decl(interMixingModulesInterfaces1.ts, 0, 10), Decl(interMixingModulesInterfaces1.ts, 5, 5)) >A.B.createB() : A.B ->A.B.createB : () => A.B ->A.B : typeof A.B ->A : typeof A ->B : typeof A.B ->createB : () => A.B +>A.B.createB : () => A.B, Symbol(A.B.createB, Decl(interMixingModulesInterfaces1.ts, 7, 21)) +>A.B : typeof A.B, Symbol(A.B, Decl(interMixingModulesInterfaces1.ts, 0, 10), Decl(interMixingModulesInterfaces1.ts, 5, 5)) +>A : typeof A, Symbol(A, Decl(interMixingModulesInterfaces1.ts, 0, 0)) +>B : typeof A.B, Symbol(A.B, Decl(interMixingModulesInterfaces1.ts, 0, 10), Decl(interMixingModulesInterfaces1.ts, 5, 5)) +>createB : () => A.B, Symbol(A.B.createB, Decl(interMixingModulesInterfaces1.ts, 7, 21)) diff --git a/tests/baselines/reference/interMixingModulesInterfaces2.types b/tests/baselines/reference/interMixingModulesInterfaces2.types index ff21c25358b..4f51e0135ba 100644 --- a/tests/baselines/reference/interMixingModulesInterfaces2.types +++ b/tests/baselines/reference/interMixingModulesInterfaces2.types @@ -1,31 +1,33 @@ === tests/cases/compiler/interMixingModulesInterfaces2.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(interMixingModulesInterfaces2.ts, 0, 0)) export interface B { ->B : B +>B : B, Symbol(B, Decl(interMixingModulesInterfaces2.ts, 0, 10)) name: string; ->name : string +>name : string, Symbol(name, Decl(interMixingModulesInterfaces2.ts, 2, 24)) value: number; ->value : number +>value : number, Symbol(value, Decl(interMixingModulesInterfaces2.ts, 3, 21)) } module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(interMixingModulesInterfaces2.ts, 0, 10), Decl(interMixingModulesInterfaces2.ts, 5, 5)) export function createB(): B { ->createB : () => B ->B : B +>createB : () => B, Symbol(createB, Decl(interMixingModulesInterfaces2.ts, 7, 14)) +>B : B, Symbol(B, Decl(interMixingModulesInterfaces2.ts, 0, 10)) return null; +>null : null } } } var x: A.B = null; ->x : A.B ->A : unknown ->B : A.B +>x : A.B, Symbol(x, Decl(interMixingModulesInterfaces2.ts, 14, 3)) +>A : any, Symbol(A, Decl(interMixingModulesInterfaces2.ts, 0, 0)) +>B : A.B, Symbol(A.B, Decl(interMixingModulesInterfaces2.ts, 0, 10)) +>null : null diff --git a/tests/baselines/reference/interMixingModulesInterfaces3.types b/tests/baselines/reference/interMixingModulesInterfaces3.types index 123d609c365..ec2c16c7d66 100644 --- a/tests/baselines/reference/interMixingModulesInterfaces3.types +++ b/tests/baselines/reference/interMixingModulesInterfaces3.types @@ -1,31 +1,33 @@ === tests/cases/compiler/interMixingModulesInterfaces3.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(interMixingModulesInterfaces3.ts, 0, 0)) module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(interMixingModulesInterfaces3.ts, 0, 10), Decl(interMixingModulesInterfaces3.ts, 6, 5)) export function createB(): B { ->createB : () => B ->B : B +>createB : () => B, Symbol(createB, Decl(interMixingModulesInterfaces3.ts, 2, 14)) +>B : B, Symbol(B, Decl(interMixingModulesInterfaces3.ts, 6, 5)) return null; +>null : null } } export interface B { ->B : B +>B : B, Symbol(B, Decl(interMixingModulesInterfaces3.ts, 6, 5)) name: string; ->name : string +>name : string, Symbol(name, Decl(interMixingModulesInterfaces3.ts, 8, 24)) value: number; ->value : number +>value : number, Symbol(value, Decl(interMixingModulesInterfaces3.ts, 9, 21)) } } var x: A.B = null; ->x : A.B ->A : unknown ->B : A.B +>x : A.B, Symbol(x, Decl(interMixingModulesInterfaces3.ts, 14, 3)) +>A : any, Symbol(A, Decl(interMixingModulesInterfaces3.ts, 0, 0)) +>B : A.B, Symbol(A.B, Decl(interMixingModulesInterfaces3.ts, 6, 5)) +>null : null diff --git a/tests/baselines/reference/interMixingModulesInterfaces4.types b/tests/baselines/reference/interMixingModulesInterfaces4.types index e4e9bf385ac..e7e1a9a2fac 100644 --- a/tests/baselines/reference/interMixingModulesInterfaces4.types +++ b/tests/baselines/reference/interMixingModulesInterfaces4.types @@ -1,34 +1,35 @@ === tests/cases/compiler/interMixingModulesInterfaces4.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(interMixingModulesInterfaces4.ts, 0, 0)) export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(interMixingModulesInterfaces4.ts, 0, 10)) export function createB(): number { ->createB : () => number +>createB : () => number, Symbol(createB, Decl(interMixingModulesInterfaces4.ts, 2, 21)) return null; +>null : null } } interface B { ->B : B +>B : B, Symbol(B, Decl(interMixingModulesInterfaces4.ts, 0, 10), Decl(interMixingModulesInterfaces4.ts, 6, 5)) name: string; ->name : string +>name : string, Symbol(name, Decl(interMixingModulesInterfaces4.ts, 8, 17)) value: number; ->value : number +>value : number, Symbol(value, Decl(interMixingModulesInterfaces4.ts, 9, 21)) } } var x : number = A.B.createB(); ->x : number +>x : number, Symbol(x, Decl(interMixingModulesInterfaces4.ts, 14, 3)) >A.B.createB() : number ->A.B.createB : () => number ->A.B : typeof A.B ->A : typeof A ->B : typeof A.B ->createB : () => number +>A.B.createB : () => number, Symbol(A.B.createB, Decl(interMixingModulesInterfaces4.ts, 2, 21)) +>A.B : typeof A.B, Symbol(A.B, Decl(interMixingModulesInterfaces4.ts, 0, 10)) +>A : typeof A, Symbol(A, Decl(interMixingModulesInterfaces4.ts, 0, 0)) +>B : typeof A.B, Symbol(A.B, Decl(interMixingModulesInterfaces4.ts, 0, 10)) +>createB : () => number, Symbol(A.B.createB, Decl(interMixingModulesInterfaces4.ts, 2, 21)) diff --git a/tests/baselines/reference/interMixingModulesInterfaces5.types b/tests/baselines/reference/interMixingModulesInterfaces5.types index 199b37b16eb..00206b1684d 100644 --- a/tests/baselines/reference/interMixingModulesInterfaces5.types +++ b/tests/baselines/reference/interMixingModulesInterfaces5.types @@ -1,34 +1,35 @@ === tests/cases/compiler/interMixingModulesInterfaces5.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(interMixingModulesInterfaces5.ts, 0, 0)) interface B { ->B : B +>B : B, Symbol(B, Decl(interMixingModulesInterfaces5.ts, 0, 10), Decl(interMixingModulesInterfaces5.ts, 5, 5)) name: string; ->name : string +>name : string, Symbol(name, Decl(interMixingModulesInterfaces5.ts, 2, 17)) value: number; ->value : number +>value : number, Symbol(value, Decl(interMixingModulesInterfaces5.ts, 3, 21)) } export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(interMixingModulesInterfaces5.ts, 5, 5)) export function createB(): number { ->createB : () => number +>createB : () => number, Symbol(createB, Decl(interMixingModulesInterfaces5.ts, 7, 21)) return null; +>null : null } } } var x: number = A.B.createB(); ->x : number +>x : number, Symbol(x, Decl(interMixingModulesInterfaces5.ts, 14, 3)) >A.B.createB() : number ->A.B.createB : () => number ->A.B : typeof A.B ->A : typeof A ->B : typeof A.B ->createB : () => number +>A.B.createB : () => number, Symbol(A.B.createB, Decl(interMixingModulesInterfaces5.ts, 7, 21)) +>A.B : typeof A.B, Symbol(A.B, Decl(interMixingModulesInterfaces5.ts, 5, 5)) +>A : typeof A, Symbol(A, Decl(interMixingModulesInterfaces5.ts, 0, 0)) +>B : typeof A.B, Symbol(A.B, Decl(interMixingModulesInterfaces5.ts, 5, 5)) +>createB : () => number, Symbol(A.B.createB, Decl(interMixingModulesInterfaces5.ts, 7, 21)) diff --git a/tests/baselines/reference/interface0.types b/tests/baselines/reference/interface0.types index ecbd2d212ed..daf40fb7252 100644 --- a/tests/baselines/reference/interface0.types +++ b/tests/baselines/reference/interface0.types @@ -1,16 +1,17 @@ === tests/cases/compiler/interface0.ts === interface Generic { ->Generic : Generic ->T : T +>Generic : Generic, Symbol(Generic, Decl(interface0.ts, 0, 0)) +>T : T, Symbol(T, Decl(interface0.ts, 0, 18)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(interface0.ts, 0, 22)) +>T : T, Symbol(T, Decl(interface0.ts, 0, 18)) } var y: Generic = { x: 3 }; ->y : Generic ->Generic : Generic +>y : Generic, Symbol(y, Decl(interface0.ts, 4, 3)) +>Generic : Generic, Symbol(Generic, Decl(interface0.ts, 0, 0)) >{ x: 3 } : { x: number; } ->x : number +>x : number, Symbol(x, Decl(interface0.ts, 4, 26)) +>3 : number diff --git a/tests/baselines/reference/interfaceContextualType.types b/tests/baselines/reference/interfaceContextualType.types index 3078ecfdfa4..3a21933e9ed 100644 --- a/tests/baselines/reference/interfaceContextualType.types +++ b/tests/baselines/reference/interfaceContextualType.types @@ -1,61 +1,64 @@ === tests/cases/compiler/interfaceContextualType.ts === export interface IOptions { ->IOptions : IOptions +>IOptions : IOptions, Symbol(IOptions, Decl(interfaceContextualType.ts, 0, 0)) italic?: boolean; ->italic : boolean +>italic : boolean, Symbol(italic, Decl(interfaceContextualType.ts, 0, 27)) bold?: boolean; ->bold : boolean +>bold : boolean, Symbol(bold, Decl(interfaceContextualType.ts, 1, 21)) } export interface IMap { ->IMap : IMap +>IMap : IMap, Symbol(IMap, Decl(interfaceContextualType.ts, 3, 1)) [s: string]: IOptions; ->s : string ->IOptions : IOptions +>s : string, Symbol(s, Decl(interfaceContextualType.ts, 5, 5)) +>IOptions : IOptions, Symbol(IOptions, Decl(interfaceContextualType.ts, 0, 0)) } class Bug { ->Bug : Bug +>Bug : Bug, Symbol(Bug, Decl(interfaceContextualType.ts, 6, 1)) public values: IMap; ->values : IMap ->IMap : IMap +>values : IMap, Symbol(values, Decl(interfaceContextualType.ts, 8, 11)) +>IMap : IMap, Symbol(IMap, Decl(interfaceContextualType.ts, 3, 1)) ok() { ->ok : () => void +>ok : () => void, Symbol(ok, Decl(interfaceContextualType.ts, 9, 24)) this.values = {}; >this.values = {} : { [x: string]: undefined; } ->this.values : IMap ->this : Bug ->values : IMap +>this.values : IMap, Symbol(values, Decl(interfaceContextualType.ts, 8, 11)) +>this : Bug, Symbol(Bug, Decl(interfaceContextualType.ts, 6, 1)) +>values : IMap, Symbol(values, Decl(interfaceContextualType.ts, 8, 11)) >{} : { [x: string]: undefined; } this.values['comments'] = { italic: true }; >this.values['comments'] = { italic: true } : { italic: boolean; } >this.values['comments'] : IOptions ->this.values : IMap ->this : Bug ->values : IMap +>this.values : IMap, Symbol(values, Decl(interfaceContextualType.ts, 8, 11)) +>this : Bug, Symbol(Bug, Decl(interfaceContextualType.ts, 6, 1)) +>values : IMap, Symbol(values, Decl(interfaceContextualType.ts, 8, 11)) +>'comments' : string >{ italic: true } : { italic: boolean; } ->italic : boolean +>italic : boolean, Symbol(italic, Decl(interfaceContextualType.ts, 12, 35)) +>true : boolean } shouldBeOK() { ->shouldBeOK : () => void +>shouldBeOK : () => void, Symbol(shouldBeOK, Decl(interfaceContextualType.ts, 13, 5)) this.values = { >this.values = { comments: { italic: true } } : { [x: string]: { italic: boolean; }; comments: { italic: boolean; }; } ->this.values : IMap ->this : Bug ->values : IMap +>this.values : IMap, Symbol(values, Decl(interfaceContextualType.ts, 8, 11)) +>this : Bug, Symbol(Bug, Decl(interfaceContextualType.ts, 6, 1)) +>values : IMap, Symbol(values, Decl(interfaceContextualType.ts, 8, 11)) >{ comments: { italic: true } } : { [x: string]: { italic: boolean; }; comments: { italic: boolean; }; } comments: { italic: true } ->comments : { italic: boolean; } +>comments : { italic: boolean; }, Symbol(comments, Decl(interfaceContextualType.ts, 15, 23)) >{ italic: true } : { italic: boolean; } ->italic : boolean +>italic : boolean, Symbol(italic, Decl(interfaceContextualType.ts, 16, 23)) +>true : boolean }; } diff --git a/tests/baselines/reference/interfaceDeclaration5.types b/tests/baselines/reference/interfaceDeclaration5.types index 0cad7652a28..c7ea1db51e4 100644 --- a/tests/baselines/reference/interfaceDeclaration5.types +++ b/tests/baselines/reference/interfaceDeclaration5.types @@ -1,8 +1,8 @@ === tests/cases/compiler/interfaceDeclaration5.ts === export interface I1 { item:string; } ->I1 : I1 ->item : string +>I1 : I1, Symbol(I1, Decl(interfaceDeclaration5.ts, 0, 0)) +>item : string, Symbol(item, Decl(interfaceDeclaration5.ts, 0, 21)) export class C1 { } ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(interfaceDeclaration5.ts, 0, 36)) diff --git a/tests/baselines/reference/interfaceExtendsClass1.types b/tests/baselines/reference/interfaceExtendsClass1.types index c2370f7fe7f..e4cd3526596 100644 --- a/tests/baselines/reference/interfaceExtendsClass1.types +++ b/tests/baselines/reference/interfaceExtendsClass1.types @@ -1,39 +1,39 @@ === tests/cases/compiler/interfaceExtendsClass1.ts === class Control { ->Control : Control +>Control : Control, Symbol(Control, Decl(interfaceExtendsClass1.ts, 0, 0)) private state: any; ->state : any +>state : any, Symbol(state, Decl(interfaceExtendsClass1.ts, 0, 15)) } interface SelectableControl extends Control { ->SelectableControl : SelectableControl ->Control : Control +>SelectableControl : SelectableControl, Symbol(SelectableControl, Decl(interfaceExtendsClass1.ts, 2, 1)) +>Control : Control, Symbol(Control, Decl(interfaceExtendsClass1.ts, 0, 0)) select(): void; ->select : () => void +>select : () => void, Symbol(select, Decl(interfaceExtendsClass1.ts, 3, 45)) } class Button extends Control { ->Button : Button ->Control : Control +>Button : Button, Symbol(Button, Decl(interfaceExtendsClass1.ts, 5, 1)) +>Control : Control, Symbol(Control, Decl(interfaceExtendsClass1.ts, 0, 0)) select() { } ->select : () => void +>select : () => void, Symbol(select, Decl(interfaceExtendsClass1.ts, 6, 30)) } class TextBox extends Control { ->TextBox : TextBox ->Control : Control +>TextBox : TextBox, Symbol(TextBox, Decl(interfaceExtendsClass1.ts, 8, 1)) +>Control : Control, Symbol(Control, Decl(interfaceExtendsClass1.ts, 0, 0)) select() { } ->select : () => void +>select : () => void, Symbol(select, Decl(interfaceExtendsClass1.ts, 9, 31)) } class Image extends Control { ->Image : Image ->Control : Control +>Image : Image, Symbol(Image, Decl(interfaceExtendsClass1.ts, 11, 1)) +>Control : Control, Symbol(Control, Decl(interfaceExtendsClass1.ts, 0, 0)) } class Location { ->Location : Location +>Location : Location, Symbol(Location, Decl(interfaceExtendsClass1.ts, 13, 1)) select() { } ->select : () => void +>select : () => void, Symbol(select, Decl(interfaceExtendsClass1.ts, 14, 16)) } diff --git a/tests/baselines/reference/interfaceInReopenedModule.types b/tests/baselines/reference/interfaceInReopenedModule.types index e0ed40b186e..9b9341fa96f 100644 --- a/tests/baselines/reference/interfaceInReopenedModule.types +++ b/tests/baselines/reference/interfaceInReopenedModule.types @@ -1,21 +1,21 @@ === tests/cases/compiler/interfaceInReopenedModule.ts === module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(interfaceInReopenedModule.ts, 0, 0), Decl(interfaceInReopenedModule.ts, 1, 1)) } // In second instance of same module, exported interface is not visible module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(interfaceInReopenedModule.ts, 0, 0), Decl(interfaceInReopenedModule.ts, 1, 1)) interface f {} ->f : f +>f : f, Symbol(f, Decl(interfaceInReopenedModule.ts, 4, 10)) export class n { ->n : n +>n : n, Symbol(n, Decl(interfaceInReopenedModule.ts, 5, 18)) private n: f; ->n : f ->f : f +>n : f, Symbol(n, Decl(interfaceInReopenedModule.ts, 6, 20)) +>f : f, Symbol(f, Decl(interfaceInReopenedModule.ts, 4, 10)) } } diff --git a/tests/baselines/reference/interfaceInheritance2.types b/tests/baselines/reference/interfaceInheritance2.types index ac89931df61..88ba1592669 100644 --- a/tests/baselines/reference/interfaceInheritance2.types +++ b/tests/baselines/reference/interfaceInheritance2.types @@ -1,19 +1,19 @@ === tests/cases/compiler/interfaceInheritance2.ts === interface I6 { ->I6 : I6 +>I6 : I6, Symbol(I6, Decl(interfaceInheritance2.ts, 0, 0)) ():void; } interface I7 extends I6 { } ->I7 : I7 ->I6 : I6 +>I7 : I7, Symbol(I7, Decl(interfaceInheritance2.ts, 2, 1)) +>I6 : I6, Symbol(I6, Decl(interfaceInheritance2.ts, 0, 0)) var v1:I7; ->v1 : I7 ->I7 : I7 +>v1 : I7, Symbol(v1, Decl(interfaceInheritance2.ts, 6, 3)) +>I7 : I7, Symbol(I7, Decl(interfaceInheritance2.ts, 2, 1)) v1(); >v1() : void ->v1 : I7 +>v1 : I7, Symbol(v1, Decl(interfaceInheritance2.ts, 6, 3)) diff --git a/tests/baselines/reference/interfaceOnly.types b/tests/baselines/reference/interfaceOnly.types index 0dc38bea01a..0288294745d 100644 --- a/tests/baselines/reference/interfaceOnly.types +++ b/tests/baselines/reference/interfaceOnly.types @@ -1,11 +1,11 @@ === tests/cases/compiler/interfaceOnly.ts === interface foo { ->foo : foo +>foo : foo, Symbol(foo, Decl(interfaceOnly.ts, 0, 0)) foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(interfaceOnly.ts, 0, 15)) f2 (f: ()=> void); ->f2 : (f: () => void) => any ->f : () => void +>f2 : (f: () => void) => any, Symbol(f2, Decl(interfaceOnly.ts, 1, 10)) +>f : () => void, Symbol(f, Decl(interfaceOnly.ts, 2, 8)) } diff --git a/tests/baselines/reference/interfacePropertiesWithSameName1.types b/tests/baselines/reference/interfacePropertiesWithSameName1.types index f034cd98255..75d0f62b2ef 100644 --- a/tests/baselines/reference/interfacePropertiesWithSameName1.types +++ b/tests/baselines/reference/interfacePropertiesWithSameName1.types @@ -1,33 +1,33 @@ === tests/cases/compiler/interfacePropertiesWithSameName1.ts === interface Mover { ->Mover : Mover +>Mover : Mover, Symbol(Mover, Decl(interfacePropertiesWithSameName1.ts, 0, 0)) move(): void; ->move : () => void +>move : () => void, Symbol(move, Decl(interfacePropertiesWithSameName1.ts, 0, 17)) getStatus(): { speed: number; }; ->getStatus : () => { speed: number; } ->speed : number +>getStatus : () => { speed: number; }, Symbol(getStatus, Decl(interfacePropertiesWithSameName1.ts, 1, 17)) +>speed : number, Symbol(speed, Decl(interfacePropertiesWithSameName1.ts, 2, 18)) } interface Shaker { ->Shaker : Shaker +>Shaker : Shaker, Symbol(Shaker, Decl(interfacePropertiesWithSameName1.ts, 3, 1)) shake(): void; ->shake : () => void +>shake : () => void, Symbol(shake, Decl(interfacePropertiesWithSameName1.ts, 4, 18)) getStatus(): { frequency: number; }; ->getStatus : () => { frequency: number; } ->frequency : number +>getStatus : () => { frequency: number; }, Symbol(getStatus, Decl(interfacePropertiesWithSameName1.ts, 5, 18)) +>frequency : number, Symbol(frequency, Decl(interfacePropertiesWithSameName1.ts, 6, 18)) } interface MoverShaker extends Mover, Shaker { ->MoverShaker : MoverShaker ->Mover : Mover ->Shaker : Shaker +>MoverShaker : MoverShaker, Symbol(MoverShaker, Decl(interfacePropertiesWithSameName1.ts, 7, 1)) +>Mover : Mover, Symbol(Mover, Decl(interfacePropertiesWithSameName1.ts, 0, 0)) +>Shaker : Shaker, Symbol(Shaker, Decl(interfacePropertiesWithSameName1.ts, 3, 1)) getStatus(): { speed: number; frequency: number; }; ->getStatus : () => { speed: number; frequency: number; } ->speed : number ->frequency : number +>getStatus : () => { speed: number; frequency: number; }, Symbol(getStatus, Decl(interfacePropertiesWithSameName1.ts, 9, 45)) +>speed : number, Symbol(speed, Decl(interfacePropertiesWithSameName1.ts, 10, 18)) +>frequency : number, Symbol(frequency, Decl(interfacePropertiesWithSameName1.ts, 10, 33)) } diff --git a/tests/baselines/reference/interfaceSubtyping.types b/tests/baselines/reference/interfaceSubtyping.types index d9b31a50df9..adb64e85eaa 100644 --- a/tests/baselines/reference/interfaceSubtyping.types +++ b/tests/baselines/reference/interfaceSubtyping.types @@ -1,18 +1,19 @@ === tests/cases/compiler/interfaceSubtyping.ts === interface iface { ->iface : iface +>iface : iface, Symbol(iface, Decl(interfaceSubtyping.ts, 0, 0)) foo(): void; ->foo : () => void +>foo : () => void, Symbol(foo, Decl(interfaceSubtyping.ts, 0, 17)) } class Camera implements iface{ ->Camera : Camera ->iface : iface +>Camera : Camera, Symbol(Camera, Decl(interfaceSubtyping.ts, 2, 1)) +>iface : iface, Symbol(iface, Decl(interfaceSubtyping.ts, 0, 0)) constructor (public str: string) { ->str : string +>str : string, Symbol(str, Decl(interfaceSubtyping.ts, 4, 17)) } foo() { return "s"; } ->foo : () => string +>foo : () => string, Symbol(foo, Decl(interfaceSubtyping.ts, 5, 5)) +>"s" : string } diff --git a/tests/baselines/reference/interfaceThatHidesBaseProperty.types b/tests/baselines/reference/interfaceThatHidesBaseProperty.types index f27ec5abfc8..d10f098d50d 100644 --- a/tests/baselines/reference/interfaceThatHidesBaseProperty.types +++ b/tests/baselines/reference/interfaceThatHidesBaseProperty.types @@ -1,22 +1,22 @@ === tests/cases/conformance/interfaces/interfaceDeclarations/interfaceThatHidesBaseProperty.ts === interface Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(interfaceThatHidesBaseProperty.ts, 0, 0)) x: { a: number }; ->x : { a: number; } ->a : number +>x : { a: number; }, Symbol(x, Decl(interfaceThatHidesBaseProperty.ts, 0, 16)) +>a : number, Symbol(a, Decl(interfaceThatHidesBaseProperty.ts, 1, 8)) } interface Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(interfaceThatHidesBaseProperty.ts, 2, 1)) +>Base : Base, Symbol(Base, Decl(interfaceThatHidesBaseProperty.ts, 0, 0)) x: { ->x : { a: number; b: number; } +>x : { a: number; b: number; }, Symbol(x, Decl(interfaceThatHidesBaseProperty.ts, 4, 32)) a: number; b: number; ->a : number ->b : number +>a : number, Symbol(a, Decl(interfaceThatHidesBaseProperty.ts, 5, 8)) +>b : number, Symbol(b, Decl(interfaceThatHidesBaseProperty.ts, 6, 18)) }; } diff --git a/tests/baselines/reference/interfaceWithCallAndConstructSignature.types b/tests/baselines/reference/interfaceWithCallAndConstructSignature.types index 93d6bf7a419..2a16fa99911 100644 --- a/tests/baselines/reference/interfaceWithCallAndConstructSignature.types +++ b/tests/baselines/reference/interfaceWithCallAndConstructSignature.types @@ -1,22 +1,22 @@ === tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithCallAndConstructSignature.ts === interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(interfaceWithCallAndConstructSignature.ts, 0, 0)) (): number; new (): any; } var f: Foo; ->f : Foo ->Foo : Foo +>f : Foo, Symbol(f, Decl(interfaceWithCallAndConstructSignature.ts, 5, 3)) +>Foo : Foo, Symbol(Foo, Decl(interfaceWithCallAndConstructSignature.ts, 0, 0)) var r = f(); ->r : number +>r : number, Symbol(r, Decl(interfaceWithCallAndConstructSignature.ts, 6, 3)) >f() : number ->f : Foo +>f : Foo, Symbol(f, Decl(interfaceWithCallAndConstructSignature.ts, 5, 3)) var r2 = new f(); ->r2 : any +>r2 : any, Symbol(r2, Decl(interfaceWithCallAndConstructSignature.ts, 7, 3)) >new f() : any ->f : Foo +>f : Foo, Symbol(f, Decl(interfaceWithCallAndConstructSignature.ts, 5, 3)) diff --git a/tests/baselines/reference/interfaceWithCallSignaturesThatHidesBaseSignature.types b/tests/baselines/reference/interfaceWithCallSignaturesThatHidesBaseSignature.types index 63933b41bea..03fbff5f3e0 100644 --- a/tests/baselines/reference/interfaceWithCallSignaturesThatHidesBaseSignature.types +++ b/tests/baselines/reference/interfaceWithCallSignaturesThatHidesBaseSignature.types @@ -1,26 +1,26 @@ === tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithCallSignaturesThatHidesBaseSignature.ts === interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(interfaceWithCallSignaturesThatHidesBaseSignature.ts, 0, 0)) (): { a: number }; ->a : number +>a : number, Symbol(a, Decl(interfaceWithCallSignaturesThatHidesBaseSignature.ts, 1, 9)) } interface Derived extends Foo { ->Derived : Derived ->Foo : Foo +>Derived : Derived, Symbol(Derived, Decl(interfaceWithCallSignaturesThatHidesBaseSignature.ts, 2, 1)) +>Foo : Foo, Symbol(Foo, Decl(interfaceWithCallSignaturesThatHidesBaseSignature.ts, 0, 0)) (): { a: number; b: number }; ->a : number ->b : number +>a : number, Symbol(a, Decl(interfaceWithCallSignaturesThatHidesBaseSignature.ts, 5, 9)) +>b : number, Symbol(b, Decl(interfaceWithCallSignaturesThatHidesBaseSignature.ts, 5, 20)) } var d: Derived; ->d : Derived ->Derived : Derived +>d : Derived, Symbol(d, Decl(interfaceWithCallSignaturesThatHidesBaseSignature.ts, 8, 3)) +>Derived : Derived, Symbol(Derived, Decl(interfaceWithCallSignaturesThatHidesBaseSignature.ts, 2, 1)) var r = d(); ->r : { a: number; b: number; } +>r : { a: number; b: number; }, Symbol(r, Decl(interfaceWithCallSignaturesThatHidesBaseSignature.ts, 9, 3)) >d() : { a: number; b: number; } ->d : Derived +>d : Derived, Symbol(d, Decl(interfaceWithCallSignaturesThatHidesBaseSignature.ts, 8, 3)) diff --git a/tests/baselines/reference/interfaceWithCallSignaturesThatHidesBaseSignature2.types b/tests/baselines/reference/interfaceWithCallSignaturesThatHidesBaseSignature2.types index c91d6864def..ab5f549549a 100644 --- a/tests/baselines/reference/interfaceWithCallSignaturesThatHidesBaseSignature2.types +++ b/tests/baselines/reference/interfaceWithCallSignaturesThatHidesBaseSignature2.types @@ -1,26 +1,26 @@ === tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithCallSignaturesThatHidesBaseSignature2.ts === interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(interfaceWithCallSignaturesThatHidesBaseSignature2.ts, 0, 0)) (): { a: number; b: number }; ->a : number ->b : number +>a : number, Symbol(a, Decl(interfaceWithCallSignaturesThatHidesBaseSignature2.ts, 1, 9)) +>b : number, Symbol(b, Decl(interfaceWithCallSignaturesThatHidesBaseSignature2.ts, 1, 20)) } interface Derived extends Foo { // error ->Derived : Derived ->Foo : Foo +>Derived : Derived, Symbol(Derived, Decl(interfaceWithCallSignaturesThatHidesBaseSignature2.ts, 2, 1)) +>Foo : Foo, Symbol(Foo, Decl(interfaceWithCallSignaturesThatHidesBaseSignature2.ts, 0, 0)) (): { a: number }; ->a : number +>a : number, Symbol(a, Decl(interfaceWithCallSignaturesThatHidesBaseSignature2.ts, 5, 9)) } var d: Derived; ->d : Derived ->Derived : Derived +>d : Derived, Symbol(d, Decl(interfaceWithCallSignaturesThatHidesBaseSignature2.ts, 8, 3)) +>Derived : Derived, Symbol(Derived, Decl(interfaceWithCallSignaturesThatHidesBaseSignature2.ts, 2, 1)) var r = d(); ->r : { a: number; } +>r : { a: number; }, Symbol(r, Decl(interfaceWithCallSignaturesThatHidesBaseSignature2.ts, 9, 3)) >d() : { a: number; } ->d : Derived +>d : Derived, Symbol(d, Decl(interfaceWithCallSignaturesThatHidesBaseSignature2.ts, 8, 3)) diff --git a/tests/baselines/reference/interfaceWithCommaSeparators.types b/tests/baselines/reference/interfaceWithCommaSeparators.types index 8af41a4344a..5a689fded79 100644 --- a/tests/baselines/reference/interfaceWithCommaSeparators.types +++ b/tests/baselines/reference/interfaceWithCommaSeparators.types @@ -1,11 +1,11 @@ === tests/cases/compiler/interfaceWithCommaSeparators.ts === var v: { bar(): void, baz } ->v : { bar(): void; baz: any; } ->bar : () => void ->baz : any +>v : { bar(): void; baz: any; }, Symbol(v, Decl(interfaceWithCommaSeparators.ts, 0, 3)) +>bar : () => void, Symbol(bar, Decl(interfaceWithCommaSeparators.ts, 0, 8)) +>baz : any, Symbol(baz, Decl(interfaceWithCommaSeparators.ts, 0, 21)) interface Foo { bar(): void, baz } ->Foo : Foo ->bar : () => void ->baz : any +>Foo : Foo, Symbol(Foo, Decl(interfaceWithCommaSeparators.ts, 0, 27)) +>bar : () => void, Symbol(bar, Decl(interfaceWithCommaSeparators.ts, 1, 15)) +>baz : any, Symbol(baz, Decl(interfaceWithCommaSeparators.ts, 1, 28)) diff --git a/tests/baselines/reference/interfaceWithConstructSignaturesThatHidesBaseSignature.types b/tests/baselines/reference/interfaceWithConstructSignaturesThatHidesBaseSignature.types index 45c14f60386..ae0f1bd6fbd 100644 --- a/tests/baselines/reference/interfaceWithConstructSignaturesThatHidesBaseSignature.types +++ b/tests/baselines/reference/interfaceWithConstructSignaturesThatHidesBaseSignature.types @@ -1,26 +1,26 @@ === tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithConstructSignaturesThatHidesBaseSignature.ts === interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature.ts, 0, 0)) new (): { a: number }; ->a : number +>a : number, Symbol(a, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature.ts, 1, 13)) } interface Derived extends Foo { ->Derived : Derived ->Foo : Foo +>Derived : Derived, Symbol(Derived, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature.ts, 2, 1)) +>Foo : Foo, Symbol(Foo, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature.ts, 0, 0)) new (): { a: number; b: number }; ->a : number ->b : number +>a : number, Symbol(a, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature.ts, 5, 13)) +>b : number, Symbol(b, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature.ts, 5, 24)) } var d: Derived; ->d : Derived ->Derived : Derived +>d : Derived, Symbol(d, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature.ts, 8, 3)) +>Derived : Derived, Symbol(Derived, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature.ts, 2, 1)) var r = new d(); ->r : { a: number; b: number; } +>r : { a: number; b: number; }, Symbol(r, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature.ts, 9, 3)) >new d() : { a: number; b: number; } ->d : Derived +>d : Derived, Symbol(d, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature.ts, 8, 3)) diff --git a/tests/baselines/reference/interfaceWithConstructSignaturesThatHidesBaseSignature2.types b/tests/baselines/reference/interfaceWithConstructSignaturesThatHidesBaseSignature2.types index 635625d5696..237d4b32055 100644 --- a/tests/baselines/reference/interfaceWithConstructSignaturesThatHidesBaseSignature2.types +++ b/tests/baselines/reference/interfaceWithConstructSignaturesThatHidesBaseSignature2.types @@ -1,26 +1,26 @@ === tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithConstructSignaturesThatHidesBaseSignature2.ts === interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature2.ts, 0, 0)) new (): { a: number; b: number }; ->a : number ->b : number +>a : number, Symbol(a, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature2.ts, 1, 13)) +>b : number, Symbol(b, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature2.ts, 1, 24)) } interface Derived extends Foo { ->Derived : Derived ->Foo : Foo +>Derived : Derived, Symbol(Derived, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature2.ts, 2, 1)) +>Foo : Foo, Symbol(Foo, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature2.ts, 0, 0)) new (): { a: number }; // constructors not checked for conformance like a call signature is ->a : number +>a : number, Symbol(a, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature2.ts, 5, 13)) } var d: Derived; ->d : Derived ->Derived : Derived +>d : Derived, Symbol(d, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature2.ts, 8, 3)) +>Derived : Derived, Symbol(Derived, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature2.ts, 2, 1)) var r = new d(); ->r : { a: number; } +>r : { a: number; }, Symbol(r, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature2.ts, 9, 3)) >new d() : { a: number; } ->d : Derived +>d : Derived, Symbol(d, Decl(interfaceWithConstructSignaturesThatHidesBaseSignature2.ts, 8, 3)) diff --git a/tests/baselines/reference/interfaceWithOptionalProperty.types b/tests/baselines/reference/interfaceWithOptionalProperty.types index 862857483da..cb895622cab 100644 --- a/tests/baselines/reference/interfaceWithOptionalProperty.types +++ b/tests/baselines/reference/interfaceWithOptionalProperty.types @@ -1,8 +1,8 @@ === tests/cases/compiler/interfaceWithOptionalProperty.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(interfaceWithOptionalProperty.ts, 0, 0)) x?: number; ->x : number +>x : number, Symbol(x, Decl(interfaceWithOptionalProperty.ts, 1, 13)) } diff --git a/tests/baselines/reference/interfaceWithOverloadedCallAndConstructSignatures.types b/tests/baselines/reference/interfaceWithOverloadedCallAndConstructSignatures.types index 1172f10a3dd..7553273d41b 100644 --- a/tests/baselines/reference/interfaceWithOverloadedCallAndConstructSignatures.types +++ b/tests/baselines/reference/interfaceWithOverloadedCallAndConstructSignatures.types @@ -1,38 +1,40 @@ === tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithOverloadedCallAndConstructSignatures.ts === interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 0, 0)) (): number; (x: string): number; ->x : string +>x : string, Symbol(x, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 2, 5)) new (): any; new (x: string): Object; ->x : string ->Object : Object +>x : string, Symbol(x, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 5, 9)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) } var f: Foo; ->f : Foo ->Foo : Foo +>f : Foo, Symbol(f, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 8, 3)) +>Foo : Foo, Symbol(Foo, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 0, 0)) var r1 = f(); ->r1 : number +>r1 : number, Symbol(r1, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 9, 3)) >f() : number ->f : Foo +>f : Foo, Symbol(f, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 8, 3)) var r2 = f(''); ->r2 : number +>r2 : number, Symbol(r2, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 10, 3)) >f('') : number ->f : Foo +>f : Foo, Symbol(f, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 8, 3)) +>'' : string var r3 = new f(); ->r3 : any +>r3 : any, Symbol(r3, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 11, 3)) >new f() : any ->f : Foo +>f : Foo, Symbol(f, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 8, 3)) var r4 = new f(''); ->r4 : Object +>r4 : Object, Symbol(r4, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 12, 3)) >new f('') : Object ->f : Foo +>f : Foo, Symbol(f, Decl(interfaceWithOverloadedCallAndConstructSignatures.ts, 8, 3)) +>'' : string diff --git a/tests/baselines/reference/interfaceWithPropertyOfEveryType.types b/tests/baselines/reference/interfaceWithPropertyOfEveryType.types index 21d4359b6fb..46727f48c49 100644 --- a/tests/baselines/reference/interfaceWithPropertyOfEveryType.types +++ b/tests/baselines/reference/interfaceWithPropertyOfEveryType.types @@ -1,148 +1,156 @@ === tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithPropertyOfEveryType.ts === class C { foo: string; } ->C : C ->foo : string +>C : C, Symbol(C, Decl(interfaceWithPropertyOfEveryType.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(interfaceWithPropertyOfEveryType.ts, 0, 9)) function f1() { } ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(interfaceWithPropertyOfEveryType.ts, 0, 24)) module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(interfaceWithPropertyOfEveryType.ts, 1, 17)) export var y = 1; ->y : number +>y : number, Symbol(y, Decl(interfaceWithPropertyOfEveryType.ts, 3, 14)) +>1 : number } enum E { A } ->E : E ->A : E +>E : E, Symbol(E, Decl(interfaceWithPropertyOfEveryType.ts, 4, 1)) +>A : E, Symbol(E.A, Decl(interfaceWithPropertyOfEveryType.ts, 5, 8)) interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(interfaceWithPropertyOfEveryType.ts, 5, 12)) a: number; ->a : number +>a : number, Symbol(a, Decl(interfaceWithPropertyOfEveryType.ts, 7, 15)) b: string; ->b : string +>b : string, Symbol(b, Decl(interfaceWithPropertyOfEveryType.ts, 8, 14)) c: boolean; ->c : boolean +>c : boolean, Symbol(c, Decl(interfaceWithPropertyOfEveryType.ts, 9, 14)) d: any; ->d : any +>d : any, Symbol(d, Decl(interfaceWithPropertyOfEveryType.ts, 10, 15)) e: void; ->e : void +>e : void, Symbol(e, Decl(interfaceWithPropertyOfEveryType.ts, 11, 11)) f: number[]; ->f : number[] +>f : number[], Symbol(f, Decl(interfaceWithPropertyOfEveryType.ts, 12, 12)) g: Object; ->g : Object ->Object : Object +>g : Object, Symbol(g, Decl(interfaceWithPropertyOfEveryType.ts, 13, 16)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) h: (x: number) => number; ->h : (x: number) => number ->x : number +>h : (x: number) => number, Symbol(h, Decl(interfaceWithPropertyOfEveryType.ts, 14, 14)) +>x : number, Symbol(x, Decl(interfaceWithPropertyOfEveryType.ts, 15, 8)) i: (x: T) => T; ->i : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>i : (x: T) => T, Symbol(i, Decl(interfaceWithPropertyOfEveryType.ts, 15, 29)) +>T : T, Symbol(T, Decl(interfaceWithPropertyOfEveryType.ts, 16, 8)) +>x : T, Symbol(x, Decl(interfaceWithPropertyOfEveryType.ts, 16, 11)) +>T : T, Symbol(T, Decl(interfaceWithPropertyOfEveryType.ts, 16, 8)) +>T : T, Symbol(T, Decl(interfaceWithPropertyOfEveryType.ts, 16, 8)) j: Foo; ->j : Foo ->Foo : Foo +>j : Foo, Symbol(j, Decl(interfaceWithPropertyOfEveryType.ts, 16, 22)) +>Foo : Foo, Symbol(Foo, Decl(interfaceWithPropertyOfEveryType.ts, 5, 12)) k: C; ->k : C ->C : C +>k : C, Symbol(k, Decl(interfaceWithPropertyOfEveryType.ts, 17, 11)) +>C : C, Symbol(C, Decl(interfaceWithPropertyOfEveryType.ts, 0, 0)) l: typeof f1; ->l : () => void ->f1 : () => void +>l : () => void, Symbol(l, Decl(interfaceWithPropertyOfEveryType.ts, 18, 9)) +>f1 : () => void, Symbol(f1, Decl(interfaceWithPropertyOfEveryType.ts, 0, 24)) m: typeof M; ->m : typeof M ->M : typeof M +>m : typeof M, Symbol(m, Decl(interfaceWithPropertyOfEveryType.ts, 19, 17)) +>M : typeof M, Symbol(M, Decl(interfaceWithPropertyOfEveryType.ts, 1, 17)) n: {}; ->n : {} +>n : {}, Symbol(n, Decl(interfaceWithPropertyOfEveryType.ts, 20, 16)) o: E; ->o : E ->E : E +>o : E, Symbol(o, Decl(interfaceWithPropertyOfEveryType.ts, 21, 10)) +>E : E, Symbol(E, Decl(interfaceWithPropertyOfEveryType.ts, 4, 1)) } var a: Foo = { ->a : Foo ->Foo : Foo +>a : Foo, Symbol(a, Decl(interfaceWithPropertyOfEveryType.ts, 25, 3)) +>Foo : Foo, Symbol(Foo, Decl(interfaceWithPropertyOfEveryType.ts, 5, 12)) >{ a: 1, b: '', c: true, d: {}, e: null , f: [1], g: {}, h: (x: number) => 1, i: (x: T) => x, j: null, k: new C(), l: f1, m: M, n: {}, o: E.A} : { a: number; b: string; c: boolean; d: {}; e: null; f: number[]; g: {}; h: (x: number) => number; i: (x: T) => T; j: Foo; k: C; l: () => void; m: typeof M; n: {}; o: E; } a: 1, ->a : number +>a : number, Symbol(a, Decl(interfaceWithPropertyOfEveryType.ts, 25, 14)) +>1 : number b: '', ->b : string +>b : string, Symbol(b, Decl(interfaceWithPropertyOfEveryType.ts, 26, 9)) +>'' : string c: true, ->c : boolean +>c : boolean, Symbol(c, Decl(interfaceWithPropertyOfEveryType.ts, 27, 10)) +>true : boolean d: {}, ->d : {} +>d : {}, Symbol(d, Decl(interfaceWithPropertyOfEveryType.ts, 28, 12)) >{} : {} e: null , ->e : null +>e : null, Symbol(e, Decl(interfaceWithPropertyOfEveryType.ts, 29, 10)) +>null : null f: [1], ->f : number[] +>f : number[], Symbol(f, Decl(interfaceWithPropertyOfEveryType.ts, 30, 13)) >[1] : number[] +>1 : number g: {}, ->g : {} +>g : {}, Symbol(g, Decl(interfaceWithPropertyOfEveryType.ts, 31, 11)) >{} : {} h: (x: number) => 1, ->h : (x: number) => number +>h : (x: number) => number, Symbol(h, Decl(interfaceWithPropertyOfEveryType.ts, 32, 10)) >(x: number) => 1 : (x: number) => number ->x : number +>x : number, Symbol(x, Decl(interfaceWithPropertyOfEveryType.ts, 33, 8)) +>1 : number i: (x: T) => x, ->i : (x: T) => T +>i : (x: T) => T, Symbol(i, Decl(interfaceWithPropertyOfEveryType.ts, 33, 24)) >(x: T) => x : (x: T) => T ->T : T ->x : T ->T : T ->x : T +>T : T, Symbol(T, Decl(interfaceWithPropertyOfEveryType.ts, 34, 8)) +>x : T, Symbol(x, Decl(interfaceWithPropertyOfEveryType.ts, 34, 11)) +>T : T, Symbol(T, Decl(interfaceWithPropertyOfEveryType.ts, 34, 8)) +>x : T, Symbol(x, Decl(interfaceWithPropertyOfEveryType.ts, 34, 11)) j: null, ->j : Foo +>j : Foo, Symbol(j, Decl(interfaceWithPropertyOfEveryType.ts, 34, 22)) >null : Foo ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(interfaceWithPropertyOfEveryType.ts, 5, 12)) +>null : null k: new C(), ->k : C +>k : C, Symbol(k, Decl(interfaceWithPropertyOfEveryType.ts, 35, 17)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(interfaceWithPropertyOfEveryType.ts, 0, 0)) l: f1, ->l : () => void ->f1 : () => void +>l : () => void, Symbol(l, Decl(interfaceWithPropertyOfEveryType.ts, 36, 15)) +>f1 : () => void, Symbol(f1, Decl(interfaceWithPropertyOfEveryType.ts, 0, 24)) m: M, ->m : typeof M ->M : typeof M +>m : typeof M, Symbol(m, Decl(interfaceWithPropertyOfEveryType.ts, 37, 10)) +>M : typeof M, Symbol(M, Decl(interfaceWithPropertyOfEveryType.ts, 1, 17)) n: {}, ->n : {} +>n : {}, Symbol(n, Decl(interfaceWithPropertyOfEveryType.ts, 38, 9)) >{} : {} o: E.A ->o : E ->E.A : E ->E : typeof E ->A : E +>o : E, Symbol(o, Decl(interfaceWithPropertyOfEveryType.ts, 39, 10)) +>E.A : E, Symbol(E.A, Decl(interfaceWithPropertyOfEveryType.ts, 5, 8)) +>E : typeof E, Symbol(E, Decl(interfaceWithPropertyOfEveryType.ts, 4, 1)) +>A : E, Symbol(E.A, Decl(interfaceWithPropertyOfEveryType.ts, 5, 8)) } diff --git a/tests/baselines/reference/interfaceWithSpecializedCallAndConstructSignatures.types b/tests/baselines/reference/interfaceWithSpecializedCallAndConstructSignatures.types index e9bc0cd2889..691a220c634 100644 --- a/tests/baselines/reference/interfaceWithSpecializedCallAndConstructSignatures.types +++ b/tests/baselines/reference/interfaceWithSpecializedCallAndConstructSignatures.types @@ -1,42 +1,46 @@ === tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithSpecializedCallAndConstructSignatures.ts === interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 0, 0)) (x: 'a'): number; ->x : 'a' +>x : 'a', Symbol(x, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 1, 5)) (x: string): any; ->x : string +>x : string, Symbol(x, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 2, 5)) new (x: 'a'): any; ->x : 'a' +>x : 'a', Symbol(x, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 4, 9)) new (x: string): Object; ->x : string ->Object : Object +>x : string, Symbol(x, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 5, 9)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) } var f: Foo; ->f : Foo ->Foo : Foo +>f : Foo, Symbol(f, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 8, 3)) +>Foo : Foo, Symbol(Foo, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 0, 0)) var r = f('a'); ->r : number +>r : number, Symbol(r, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 9, 3)) >f('a') : number ->f : Foo +>f : Foo, Symbol(f, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 8, 3)) +>'a' : string var r2 = f('A'); ->r2 : any +>r2 : any, Symbol(r2, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 10, 3)) >f('A') : any ->f : Foo +>f : Foo, Symbol(f, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 8, 3)) +>'A' : string var r3 = new f('a'); ->r3 : any +>r3 : any, Symbol(r3, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 11, 3)) >new f('a') : any ->f : Foo +>f : Foo, Symbol(f, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 8, 3)) +>'a' : string var r4 = new f('A'); ->r4 : Object +>r4 : Object, Symbol(r4, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 12, 3)) >new f('A') : Object ->f : Foo +>f : Foo, Symbol(f, Decl(interfaceWithSpecializedCallAndConstructSignatures.ts, 8, 3)) +>'A' : string diff --git a/tests/baselines/reference/interfacedecl.types b/tests/baselines/reference/interfacedecl.types index 377e4f28639..8282d9be54b 100644 --- a/tests/baselines/reference/interfacedecl.types +++ b/tests/baselines/reference/interfacedecl.types @@ -1,95 +1,95 @@ === tests/cases/compiler/interfacedecl.ts === interface a0 { ->a0 : a0 +>a0 : a0, Symbol(a0, Decl(interfacedecl.ts, 0, 0)) (): string; (a, b, c?: string): number; ->a : any ->b : any ->c : string +>a : any, Symbol(a, Decl(interfacedecl.ts, 2, 5)) +>b : any, Symbol(b, Decl(interfacedecl.ts, 2, 7)) +>c : string, Symbol(c, Decl(interfacedecl.ts, 2, 10)) new (): string; new (s: string); ->s : string +>s : string, Symbol(s, Decl(interfacedecl.ts, 5, 9)) [n: number]: ()=>string; ->n : number +>n : number, Symbol(n, Decl(interfacedecl.ts, 7, 5)) [s: string]: any; ->s : string +>s : string, Symbol(s, Decl(interfacedecl.ts, 8, 5)) p1; ->p1 : any +>p1 : any, Symbol(p1, Decl(interfacedecl.ts, 8, 21)) p2: string; ->p2 : string +>p2 : string, Symbol(p2, Decl(interfacedecl.ts, 10, 7)) p3?; ->p3 : any +>p3 : any, Symbol(p3, Decl(interfacedecl.ts, 11, 15)) p4?: number; ->p4 : number +>p4 : number, Symbol(p4, Decl(interfacedecl.ts, 12, 8)) p5: (s: number) =>string; ->p5 : (s: number) => string ->s : number +>p5 : (s: number) => string, Symbol(p5, Decl(interfacedecl.ts, 13, 16)) +>s : number, Symbol(s, Decl(interfacedecl.ts, 14, 9)) f1(); ->f1 : () => any +>f1 : () => any, Symbol(f1, Decl(interfacedecl.ts, 14, 29)) f2? (); ->f2 : () => any +>f2 : () => any, Symbol(f2, Decl(interfacedecl.ts, 16, 9)) f3(a: string): number; ->f3 : (a: string) => number ->a : string +>f3 : (a: string) => number, Symbol(f3, Decl(interfacedecl.ts, 17, 11)) +>a : string, Symbol(a, Decl(interfacedecl.ts, 18, 7)) f4? (s: number): string; ->f4 : (s: number) => string ->s : number +>f4 : (s: number) => string, Symbol(f4, Decl(interfacedecl.ts, 18, 26)) +>s : number, Symbol(s, Decl(interfacedecl.ts, 19, 9)) } interface a1 { ->a1 : a1 +>a1 : a1, Symbol(a1, Decl(interfacedecl.ts, 20, 1)) [n: number]: number; ->n : number +>n : number, Symbol(n, Decl(interfacedecl.ts, 24, 5)) } interface a2 { ->a2 : a2 +>a2 : a2, Symbol(a2, Decl(interfacedecl.ts, 25, 1)) [s: string]: number; ->s : string +>s : string, Symbol(s, Decl(interfacedecl.ts, 28, 5)) } interface a { ->a : a +>a : a, Symbol(a, Decl(interfacedecl.ts, 29, 1)) } interface b extends a { ->b : b ->a : a +>b : b, Symbol(b, Decl(interfacedecl.ts, 32, 1)) +>a : a, Symbol(a, Decl(interfacedecl.ts, 29, 1)) } interface c extends a, b { ->c : c ->a : a ->b : b +>c : c, Symbol(c, Decl(interfacedecl.ts, 35, 1)) +>a : a, Symbol(a, Decl(interfacedecl.ts, 29, 1)) +>b : b, Symbol(b, Decl(interfacedecl.ts, 32, 1)) } interface d extends a { ->d : d ->a : a +>d : d, Symbol(d, Decl(interfacedecl.ts, 38, 1)) +>a : a, Symbol(a, Decl(interfacedecl.ts, 29, 1)) } class c1 implements a { ->c1 : c1 ->a : a +>c1 : c1, Symbol(c1, Decl(interfacedecl.ts, 41, 1)) +>a : a, Symbol(a, Decl(interfacedecl.ts, 29, 1)) } var instance2 = new c1(); ->instance2 : c1 +>instance2 : c1, Symbol(instance2, Decl(interfacedecl.ts, 45, 3)) >new c1() : c1 ->c1 : typeof c1 +>c1 : typeof c1, Symbol(c1, Decl(interfacedecl.ts, 41, 1)) diff --git a/tests/baselines/reference/internalAliasClass.types b/tests/baselines/reference/internalAliasClass.types index 8531714b5e8..961b5e3d52e 100644 --- a/tests/baselines/reference/internalAliasClass.types +++ b/tests/baselines/reference/internalAliasClass.types @@ -1,23 +1,23 @@ === tests/cases/compiler/internalAliasClass.ts === module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasClass.ts, 0, 0)) export class c { ->c : c +>c : c, Symbol(c, Decl(internalAliasClass.ts, 0, 10)) } } module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasClass.ts, 3, 1)) import b = a.c; ->b : typeof b ->a : typeof a ->c : b +>b : typeof b, Symbol(b, Decl(internalAliasClass.ts, 5, 10)) +>a : typeof a, Symbol(a, Decl(internalAliasClass.ts, 0, 0)) +>c : b, Symbol(b, Decl(internalAliasClass.ts, 0, 10)) export var x: b = new b(); ->x : b ->b : b +>x : b, Symbol(x, Decl(internalAliasClass.ts, 7, 14)) +>b : b, Symbol(b, Decl(internalAliasClass.ts, 5, 10)) >new b() : b ->b : typeof b +>b : typeof b, Symbol(b, Decl(internalAliasClass.ts, 5, 10)) } diff --git a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.types b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.types index 3f6f5845fda..0cc03faea6d 100644 --- a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.types +++ b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.types @@ -1,51 +1,52 @@ === tests/cases/compiler/internalAliasClassInsideLocalModuleWithExport.ts === export module x { ->x : typeof x +>x : typeof x, Symbol(x, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 0, 0)) export class c { ->c : c +>c : c, Symbol(c, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 0, 17)) foo(a: number) { ->foo : (a: number) => number ->a : number +>foo : (a: number) => number, Symbol(foo, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 1, 20)) +>a : number, Symbol(a, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 2, 12)) return a; ->a : number +>a : number, Symbol(a, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 2, 12)) } } } export module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 6, 1)) export module m3 { ->m3 : typeof m3 +>m3 : typeof m3, Symbol(m3, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 8, 18)) export import c = x.c; ->c : typeof c ->x : typeof x ->c : c +>c : typeof c, Symbol(c, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 9, 22)) +>x : typeof x, Symbol(x, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 0, 0)) +>c : c, Symbol(c, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 0, 17)) export var cProp = new c(); ->cProp : c +>cProp : c, Symbol(cProp, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 11, 18)) >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 9, 22)) var cReturnVal = cProp.foo(10); ->cReturnVal : number +>cReturnVal : number, Symbol(cReturnVal, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 12, 11)) >cProp.foo(10) : number ->cProp.foo : (a: number) => number ->cProp : c ->foo : (a: number) => number +>cProp.foo : (a: number) => number, Symbol(c.foo, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 1, 20)) +>cProp : c, Symbol(cProp, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 11, 18)) +>foo : (a: number) => number, Symbol(c.foo, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 1, 20)) +>10 : number } } export var d = new m2.m3.c(); ->d : x.c +>d : x.c, Symbol(d, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 16, 10)) >new m2.m3.c() : x.c ->m2.m3.c : typeof x.c ->m2.m3 : typeof m2.m3 ->m2 : typeof m2 ->m3 : typeof m2.m3 ->c : typeof x.c +>m2.m3.c : typeof x.c, Symbol(m2.m3.c, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 9, 22)) +>m2.m3 : typeof m2.m3, Symbol(m2.m3, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 8, 18)) +>m2 : typeof m2, Symbol(m2, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 6, 1)) +>m3 : typeof m2.m3, Symbol(m2.m3, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 8, 18)) +>c : typeof x.c, Symbol(m2.m3.c, Decl(internalAliasClassInsideLocalModuleWithExport.ts, 9, 22)) diff --git a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.types b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.types index 4f916d5689c..caf05da56db 100644 --- a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.types @@ -1,41 +1,42 @@ === tests/cases/compiler/internalAliasClassInsideLocalModuleWithoutExport.ts === export module x { ->x : typeof x +>x : typeof x, Symbol(x, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 0, 0)) export class c { ->c : c +>c : c, Symbol(c, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 0, 17)) foo(a: number) { ->foo : (a: number) => number ->a : number +>foo : (a: number) => number, Symbol(foo, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 1, 20)) +>a : number, Symbol(a, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 2, 12)) return a; ->a : number +>a : number, Symbol(a, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 2, 12)) } } } export module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 6, 1)) export module m3 { ->m3 : typeof m3 +>m3 : typeof m3, Symbol(m3, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 8, 18)) import c = x.c; ->c : typeof c ->x : typeof x ->c : c +>c : typeof c, Symbol(c, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 9, 22)) +>x : typeof x, Symbol(x, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 0, 0)) +>c : c, Symbol(c, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 0, 17)) export var cProp = new c(); ->cProp : c +>cProp : c, Symbol(cProp, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 11, 18)) >new c() : c ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 9, 22)) var cReturnVal = cProp.foo(10); ->cReturnVal : number +>cReturnVal : number, Symbol(cReturnVal, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 12, 11)) >cProp.foo(10) : number ->cProp.foo : (a: number) => number ->cProp : c ->foo : (a: number) => number +>cProp.foo : (a: number) => number, Symbol(c.foo, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 1, 20)) +>cProp : c, Symbol(cProp, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 11, 18)) +>foo : (a: number) => number, Symbol(c.foo, Decl(internalAliasClassInsideLocalModuleWithoutExport.ts, 1, 20)) +>10 : number } } diff --git a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.types b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.types index 6a25f03c2e9..a8341e24935 100644 --- a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.types +++ b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.types @@ -1,34 +1,35 @@ === tests/cases/compiler/internalAliasClassInsideTopLevelModuleWithExport.ts === export module x { ->x : typeof x +>x : typeof x, Symbol(x, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 0, 0)) export class c { ->c : c +>c : c, Symbol(c, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 0, 17)) foo(a: number) { ->foo : (a: number) => number ->a : number +>foo : (a: number) => number, Symbol(foo, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 1, 20)) +>a : number, Symbol(a, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 2, 12)) return a; ->a : number +>a : number, Symbol(a, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 2, 12)) } } } export import xc = x.c; ->xc : typeof xc ->x : typeof x ->c : xc +>xc : typeof xc, Symbol(xc, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 6, 1)) +>x : typeof x, Symbol(x, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 0, 0)) +>c : xc, Symbol(xc, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 0, 17)) export var cProp = new xc(); ->cProp : xc +>cProp : xc, Symbol(cProp, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 9, 10)) >new xc() : xc ->xc : typeof xc +>xc : typeof xc, Symbol(xc, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 6, 1)) var cReturnVal = cProp.foo(10); ->cReturnVal : number +>cReturnVal : number, Symbol(cReturnVal, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 10, 3)) >cProp.foo(10) : number ->cProp.foo : (a: number) => number ->cProp : xc ->foo : (a: number) => number +>cProp.foo : (a: number) => number, Symbol(xc.foo, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 1, 20)) +>cProp : xc, Symbol(cProp, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 9, 10)) +>foo : (a: number) => number, Symbol(xc.foo, Decl(internalAliasClassInsideTopLevelModuleWithExport.ts, 1, 20)) +>10 : number diff --git a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.types b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.types index 4e086f86054..7d14dec7138 100644 --- a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.types @@ -1,34 +1,35 @@ === tests/cases/compiler/internalAliasClassInsideTopLevelModuleWithoutExport.ts === export module x { ->x : typeof x +>x : typeof x, Symbol(x, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 0, 0)) export class c { ->c : c +>c : c, Symbol(c, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 0, 17)) foo(a: number) { ->foo : (a: number) => number ->a : number +>foo : (a: number) => number, Symbol(foo, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 1, 20)) +>a : number, Symbol(a, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 2, 12)) return a; ->a : number +>a : number, Symbol(a, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 2, 12)) } } } import xc = x.c; ->xc : typeof xc ->x : typeof x ->c : xc +>xc : typeof xc, Symbol(xc, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 6, 1)) +>x : typeof x, Symbol(x, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 0, 0)) +>c : xc, Symbol(xc, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 0, 17)) export var cProp = new xc(); ->cProp : xc +>cProp : xc, Symbol(cProp, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 9, 10)) >new xc() : xc ->xc : typeof xc +>xc : typeof xc, Symbol(xc, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 6, 1)) var cReturnVal = cProp.foo(10); ->cReturnVal : number +>cReturnVal : number, Symbol(cReturnVal, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 10, 3)) >cProp.foo(10) : number ->cProp.foo : (a: number) => number ->cProp : xc ->foo : (a: number) => number +>cProp.foo : (a: number) => number, Symbol(xc.foo, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 1, 20)) +>cProp : xc, Symbol(cProp, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 9, 10)) +>foo : (a: number) => number, Symbol(xc.foo, Decl(internalAliasClassInsideTopLevelModuleWithoutExport.ts, 1, 20)) +>10 : number diff --git a/tests/baselines/reference/internalAliasEnum.types b/tests/baselines/reference/internalAliasEnum.types index 87cab6cc56d..453fac80d19 100644 --- a/tests/baselines/reference/internalAliasEnum.types +++ b/tests/baselines/reference/internalAliasEnum.types @@ -1,34 +1,34 @@ === tests/cases/compiler/internalAliasEnum.ts === module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasEnum.ts, 0, 0)) export enum weekend { ->weekend : weekend +>weekend : weekend, Symbol(weekend, Decl(internalAliasEnum.ts, 0, 10)) Friday, ->Friday : weekend +>Friday : weekend, Symbol(weekend.Friday, Decl(internalAliasEnum.ts, 1, 25)) Saturday, ->Saturday : weekend +>Saturday : weekend, Symbol(weekend.Saturday, Decl(internalAliasEnum.ts, 2, 15)) Sunday ->Sunday : weekend +>Sunday : weekend, Symbol(weekend.Sunday, Decl(internalAliasEnum.ts, 3, 17)) } } module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasEnum.ts, 6, 1)) import b = a.weekend; ->b : typeof b ->a : typeof a ->weekend : b +>b : typeof b, Symbol(b, Decl(internalAliasEnum.ts, 8, 10)) +>a : typeof a, Symbol(a, Decl(internalAliasEnum.ts, 0, 0)) +>weekend : b, Symbol(b, Decl(internalAliasEnum.ts, 0, 10)) export var bVal: b = b.Sunday; ->bVal : b ->b : b ->b.Sunday : b ->b : typeof b ->Sunday : b +>bVal : b, Symbol(bVal, Decl(internalAliasEnum.ts, 10, 14)) +>b : b, Symbol(b, Decl(internalAliasEnum.ts, 8, 10)) +>b.Sunday : b, Symbol(b.Sunday, Decl(internalAliasEnum.ts, 3, 17)) +>b : typeof b, Symbol(b, Decl(internalAliasEnum.ts, 8, 10)) +>Sunday : b, Symbol(b.Sunday, Decl(internalAliasEnum.ts, 3, 17)) } diff --git a/tests/baselines/reference/internalAliasEnumInsideLocalModuleWithExport.types b/tests/baselines/reference/internalAliasEnumInsideLocalModuleWithExport.types index 0d09b930f95..c326768c024 100644 --- a/tests/baselines/reference/internalAliasEnumInsideLocalModuleWithExport.types +++ b/tests/baselines/reference/internalAliasEnumInsideLocalModuleWithExport.types @@ -1,34 +1,34 @@ === tests/cases/compiler/internalAliasEnumInsideLocalModuleWithExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 0, 0)) export enum weekend { ->weekend : weekend +>weekend : weekend, Symbol(weekend, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 0, 17)) Friday, ->Friday : weekend +>Friday : weekend, Symbol(weekend.Friday, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 1, 25)) Saturday, ->Saturday : weekend +>Saturday : weekend, Symbol(weekend.Saturday, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 2, 15)) Sunday ->Sunday : weekend +>Sunday : weekend, Symbol(weekend.Sunday, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 3, 17)) } } export module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 6, 1)) export import b = a.weekend; ->b : typeof b ->a : typeof a ->weekend : b +>b : typeof b, Symbol(b, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 8, 17)) +>a : typeof a, Symbol(a, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 0, 0)) +>weekend : b, Symbol(b, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 0, 17)) export var bVal: b = b.Sunday; ->bVal : b ->b : b ->b.Sunday : b ->b : typeof b ->Sunday : b +>bVal : b, Symbol(bVal, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 10, 14)) +>b : b, Symbol(b, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 8, 17)) +>b.Sunday : b, Symbol(b.Sunday, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 3, 17)) +>b : typeof b, Symbol(b, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 8, 17)) +>Sunday : b, Symbol(b.Sunday, Decl(internalAliasEnumInsideLocalModuleWithExport.ts, 3, 17)) } diff --git a/tests/baselines/reference/internalAliasEnumInsideLocalModuleWithoutExport.types b/tests/baselines/reference/internalAliasEnumInsideLocalModuleWithoutExport.types index 881e51324af..ff55a7a4ffc 100644 --- a/tests/baselines/reference/internalAliasEnumInsideLocalModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasEnumInsideLocalModuleWithoutExport.types @@ -1,34 +1,34 @@ === tests/cases/compiler/internalAliasEnumInsideLocalModuleWithoutExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 0, 0)) export enum weekend { ->weekend : weekend +>weekend : weekend, Symbol(weekend, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 0, 17)) Friday, ->Friday : weekend +>Friday : weekend, Symbol(weekend.Friday, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 1, 25)) Saturday, ->Saturday : weekend +>Saturday : weekend, Symbol(weekend.Saturday, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 2, 15)) Sunday ->Sunday : weekend +>Sunday : weekend, Symbol(weekend.Sunday, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 3, 17)) } } export module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 6, 1)) import b = a.weekend; ->b : typeof b ->a : typeof a ->weekend : b +>b : typeof b, Symbol(b, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 8, 17)) +>a : typeof a, Symbol(a, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 0, 0)) +>weekend : b, Symbol(b, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 0, 17)) export var bVal: b = b.Sunday; ->bVal : b ->b : b ->b.Sunday : b ->b : typeof b ->Sunday : b +>bVal : b, Symbol(bVal, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 10, 14)) +>b : b, Symbol(b, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 8, 17)) +>b.Sunday : b, Symbol(b.Sunday, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 3, 17)) +>b : typeof b, Symbol(b, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 8, 17)) +>Sunday : b, Symbol(b.Sunday, Decl(internalAliasEnumInsideLocalModuleWithoutExport.ts, 3, 17)) } diff --git a/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithExport.types b/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithExport.types index 8458d885738..87cd6bde183 100644 --- a/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithExport.types +++ b/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithExport.types @@ -1,30 +1,30 @@ === tests/cases/compiler/internalAliasEnumInsideTopLevelModuleWithExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 0, 0)) export enum weekend { ->weekend : weekend +>weekend : weekend, Symbol(weekend, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 0, 17)) Friday, ->Friday : weekend +>Friday : weekend, Symbol(b.Friday, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 1, 25)) Saturday, ->Saturday : weekend +>Saturday : weekend, Symbol(b.Saturday, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 2, 15)) Sunday ->Sunday : weekend +>Sunday : weekend, Symbol(b.Sunday, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 3, 17)) } } export import b = a.weekend; ->b : typeof b ->a : typeof a ->weekend : b +>b : typeof b, Symbol(b, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 6, 1)) +>a : typeof a, Symbol(a, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 0, 0)) +>weekend : b, Symbol(b, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 0, 17)) export var bVal: b = b.Sunday; ->bVal : b ->b : b ->b.Sunday : b ->b : typeof b ->Sunday : b +>bVal : b, Symbol(bVal, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 9, 10)) +>b : b, Symbol(b, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 6, 1)) +>b.Sunday : b, Symbol(b.Sunday, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 3, 17)) +>b : typeof b, Symbol(b, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 6, 1)) +>Sunday : b, Symbol(b.Sunday, Decl(internalAliasEnumInsideTopLevelModuleWithExport.ts, 3, 17)) diff --git a/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithoutExport.types b/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithoutExport.types index 6e75bd81bdf..00ebd1d45d4 100644 --- a/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasEnumInsideTopLevelModuleWithoutExport.types @@ -1,30 +1,30 @@ === tests/cases/compiler/internalAliasEnumInsideTopLevelModuleWithoutExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 0, 0)) export enum weekend { ->weekend : weekend +>weekend : weekend, Symbol(weekend, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 0, 17)) Friday, ->Friday : weekend +>Friday : weekend, Symbol(b.Friday, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 1, 25)) Saturday, ->Saturday : weekend +>Saturday : weekend, Symbol(b.Saturday, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 2, 15)) Sunday ->Sunday : weekend +>Sunday : weekend, Symbol(b.Sunday, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 3, 17)) } } import b = a.weekend; ->b : typeof b ->a : typeof a ->weekend : b +>b : typeof b, Symbol(b, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 6, 1)) +>a : typeof a, Symbol(a, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 0, 0)) +>weekend : b, Symbol(b, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 0, 17)) export var bVal: b = b.Sunday; ->bVal : b ->b : b ->b.Sunday : b ->b : typeof b ->Sunday : b +>bVal : b, Symbol(bVal, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 9, 10)) +>b : b, Symbol(b, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 6, 1)) +>b.Sunday : b, Symbol(b.Sunday, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 3, 17)) +>b : typeof b, Symbol(b, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 6, 1)) +>Sunday : b, Symbol(b.Sunday, Decl(internalAliasEnumInsideTopLevelModuleWithoutExport.ts, 3, 17)) diff --git a/tests/baselines/reference/internalAliasFunction.types b/tests/baselines/reference/internalAliasFunction.types index ed297ce1b4e..dcaf6d607f9 100644 --- a/tests/baselines/reference/internalAliasFunction.types +++ b/tests/baselines/reference/internalAliasFunction.types @@ -1,31 +1,32 @@ === tests/cases/compiler/internalAliasFunction.ts === module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasFunction.ts, 0, 0)) export function foo(x: number) { ->foo : (x: number) => number ->x : number +>foo : (x: number) => number, Symbol(foo, Decl(internalAliasFunction.ts, 0, 10)) +>x : number, Symbol(x, Decl(internalAliasFunction.ts, 1, 24)) return x; ->x : number +>x : number, Symbol(x, Decl(internalAliasFunction.ts, 1, 24)) } } module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasFunction.ts, 4, 1)) import b = a.foo; ->b : (x: number) => number ->a : typeof a ->foo : (x: number) => number +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunction.ts, 6, 10)) +>a : typeof a, Symbol(a, Decl(internalAliasFunction.ts, 0, 0)) +>foo : (x: number) => number, Symbol(b, Decl(internalAliasFunction.ts, 0, 10)) export var bVal = b(10); ->bVal : number +>bVal : number, Symbol(bVal, Decl(internalAliasFunction.ts, 8, 14)) >b(10) : number ->b : (x: number) => number +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunction.ts, 6, 10)) +>10 : number export var bVal2 = b; ->bVal2 : (x: number) => number ->b : (x: number) => number +>bVal2 : (x: number) => number, Symbol(bVal2, Decl(internalAliasFunction.ts, 9, 14)) +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunction.ts, 6, 10)) } diff --git a/tests/baselines/reference/internalAliasFunctionInsideLocalModuleWithExport.types b/tests/baselines/reference/internalAliasFunctionInsideLocalModuleWithExport.types index b3140e7b09a..e2f8fa99e50 100644 --- a/tests/baselines/reference/internalAliasFunctionInsideLocalModuleWithExport.types +++ b/tests/baselines/reference/internalAliasFunctionInsideLocalModuleWithExport.types @@ -1,31 +1,32 @@ === tests/cases/compiler/internalAliasFunctionInsideLocalModuleWithExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 0, 0)) export function foo(x: number) { ->foo : (x: number) => number ->x : number +>foo : (x: number) => number, Symbol(foo, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 0, 17)) +>x : number, Symbol(x, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 1, 24)) return x; ->x : number +>x : number, Symbol(x, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 1, 24)) } } export module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 4, 1)) export import b = a.foo; ->b : (x: number) => number ->a : typeof a ->foo : (x: number) => number +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 6, 17)) +>a : typeof a, Symbol(a, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 0, 0)) +>foo : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 0, 17)) export var bVal = b(10); ->bVal : number +>bVal : number, Symbol(bVal, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 8, 14)) >b(10) : number ->b : (x: number) => number +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 6, 17)) +>10 : number export var bVal2 = b; ->bVal2 : (x: number) => number ->b : (x: number) => number +>bVal2 : (x: number) => number, Symbol(bVal2, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 9, 14)) +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideLocalModuleWithExport.ts, 6, 17)) } diff --git a/tests/baselines/reference/internalAliasFunctionInsideLocalModuleWithoutExport.types b/tests/baselines/reference/internalAliasFunctionInsideLocalModuleWithoutExport.types index c78b5040495..d51bef76a43 100644 --- a/tests/baselines/reference/internalAliasFunctionInsideLocalModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasFunctionInsideLocalModuleWithoutExport.types @@ -1,31 +1,32 @@ === tests/cases/compiler/internalAliasFunctionInsideLocalModuleWithoutExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasFunctionInsideLocalModuleWithoutExport.ts, 0, 0)) export function foo(x: number) { ->foo : (x: number) => number ->x : number +>foo : (x: number) => number, Symbol(foo, Decl(internalAliasFunctionInsideLocalModuleWithoutExport.ts, 0, 17)) +>x : number, Symbol(x, Decl(internalAliasFunctionInsideLocalModuleWithoutExport.ts, 1, 24)) return x; ->x : number +>x : number, Symbol(x, Decl(internalAliasFunctionInsideLocalModuleWithoutExport.ts, 1, 24)) } } export module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasFunctionInsideLocalModuleWithoutExport.ts, 4, 1)) import b = a.foo; ->b : (x: number) => number ->a : typeof a ->foo : (x: number) => number +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideLocalModuleWithoutExport.ts, 6, 17)) +>a : typeof a, Symbol(a, Decl(internalAliasFunctionInsideLocalModuleWithoutExport.ts, 0, 0)) +>foo : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideLocalModuleWithoutExport.ts, 0, 17)) var bVal = b(10); ->bVal : number +>bVal : number, Symbol(bVal, Decl(internalAliasFunctionInsideLocalModuleWithoutExport.ts, 8, 7)) >b(10) : number ->b : (x: number) => number +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideLocalModuleWithoutExport.ts, 6, 17)) +>10 : number export var bVal2 = b; ->bVal2 : (x: number) => number ->b : (x: number) => number +>bVal2 : (x: number) => number, Symbol(bVal2, Decl(internalAliasFunctionInsideLocalModuleWithoutExport.ts, 9, 14)) +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideLocalModuleWithoutExport.ts, 6, 17)) } diff --git a/tests/baselines/reference/internalAliasFunctionInsideTopLevelModuleWithExport.types b/tests/baselines/reference/internalAliasFunctionInsideTopLevelModuleWithExport.types index 365f0edeb27..1c871f008d8 100644 --- a/tests/baselines/reference/internalAliasFunctionInsideTopLevelModuleWithExport.types +++ b/tests/baselines/reference/internalAliasFunctionInsideTopLevelModuleWithExport.types @@ -1,27 +1,28 @@ === tests/cases/compiler/internalAliasFunctionInsideTopLevelModuleWithExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasFunctionInsideTopLevelModuleWithExport.ts, 0, 0)) export function foo(x: number) { ->foo : (x: number) => number ->x : number +>foo : (x: number) => number, Symbol(foo, Decl(internalAliasFunctionInsideTopLevelModuleWithExport.ts, 0, 17)) +>x : number, Symbol(x, Decl(internalAliasFunctionInsideTopLevelModuleWithExport.ts, 1, 24)) return x; ->x : number +>x : number, Symbol(x, Decl(internalAliasFunctionInsideTopLevelModuleWithExport.ts, 1, 24)) } } export import b = a.foo; ->b : (x: number) => number ->a : typeof a ->foo : (x: number) => number +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideTopLevelModuleWithExport.ts, 4, 1)) +>a : typeof a, Symbol(a, Decl(internalAliasFunctionInsideTopLevelModuleWithExport.ts, 0, 0)) +>foo : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideTopLevelModuleWithExport.ts, 0, 17)) export var bVal = b(10); ->bVal : number +>bVal : number, Symbol(bVal, Decl(internalAliasFunctionInsideTopLevelModuleWithExport.ts, 7, 10)) >b(10) : number ->b : (x: number) => number +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideTopLevelModuleWithExport.ts, 4, 1)) +>10 : number export var bVal2 = b; ->bVal2 : (x: number) => number ->b : (x: number) => number +>bVal2 : (x: number) => number, Symbol(bVal2, Decl(internalAliasFunctionInsideTopLevelModuleWithExport.ts, 8, 10)) +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideTopLevelModuleWithExport.ts, 4, 1)) diff --git a/tests/baselines/reference/internalAliasFunctionInsideTopLevelModuleWithoutExport.types b/tests/baselines/reference/internalAliasFunctionInsideTopLevelModuleWithoutExport.types index c2f06c66f76..dc6c3132631 100644 --- a/tests/baselines/reference/internalAliasFunctionInsideTopLevelModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasFunctionInsideTopLevelModuleWithoutExport.types @@ -1,27 +1,28 @@ === tests/cases/compiler/internalAliasFunctionInsideTopLevelModuleWithoutExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasFunctionInsideTopLevelModuleWithoutExport.ts, 0, 0)) export function foo(x: number) { ->foo : (x: number) => number ->x : number +>foo : (x: number) => number, Symbol(foo, Decl(internalAliasFunctionInsideTopLevelModuleWithoutExport.ts, 0, 17)) +>x : number, Symbol(x, Decl(internalAliasFunctionInsideTopLevelModuleWithoutExport.ts, 1, 24)) return x; ->x : number +>x : number, Symbol(x, Decl(internalAliasFunctionInsideTopLevelModuleWithoutExport.ts, 1, 24)) } } import b = a.foo; ->b : (x: number) => number ->a : typeof a ->foo : (x: number) => number +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideTopLevelModuleWithoutExport.ts, 4, 1)) +>a : typeof a, Symbol(a, Decl(internalAliasFunctionInsideTopLevelModuleWithoutExport.ts, 0, 0)) +>foo : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideTopLevelModuleWithoutExport.ts, 0, 17)) export var bVal = b(10); ->bVal : number +>bVal : number, Symbol(bVal, Decl(internalAliasFunctionInsideTopLevelModuleWithoutExport.ts, 7, 10)) >b(10) : number ->b : (x: number) => number +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideTopLevelModuleWithoutExport.ts, 4, 1)) +>10 : number export var bVal2 = b; ->bVal2 : (x: number) => number ->b : (x: number) => number +>bVal2 : (x: number) => number, Symbol(bVal2, Decl(internalAliasFunctionInsideTopLevelModuleWithoutExport.ts, 8, 10)) +>b : (x: number) => number, Symbol(b, Decl(internalAliasFunctionInsideTopLevelModuleWithoutExport.ts, 4, 1)) diff --git a/tests/baselines/reference/internalAliasInitializedModule.types b/tests/baselines/reference/internalAliasInitializedModule.types index dacc2f148bd..66dba14ff76 100644 --- a/tests/baselines/reference/internalAliasInitializedModule.types +++ b/tests/baselines/reference/internalAliasInitializedModule.types @@ -1,30 +1,30 @@ === tests/cases/compiler/internalAliasInitializedModule.ts === module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasInitializedModule.ts, 0, 0)) export module b { ->b : typeof b +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModule.ts, 0, 10)) export class c { ->c : c +>c : c, Symbol(c, Decl(internalAliasInitializedModule.ts, 1, 21)) } } } module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasInitializedModule.ts, 5, 1)) import b = a.b; ->b : typeof b ->a : typeof a ->b : typeof b +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModule.ts, 7, 10)) +>a : typeof a, Symbol(a, Decl(internalAliasInitializedModule.ts, 0, 0)) +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModule.ts, 0, 10)) export var x: b.c = new b.c(); ->x : b.c ->b : unknown ->c : b.c +>x : b.c, Symbol(x, Decl(internalAliasInitializedModule.ts, 9, 14)) +>b : any, Symbol(b, Decl(internalAliasInitializedModule.ts, 7, 10)) +>c : b.c, Symbol(b.c, Decl(internalAliasInitializedModule.ts, 1, 21)) >new b.c() : b.c ->b.c : typeof b.c ->b : typeof b ->c : typeof b.c +>b.c : typeof b.c, Symbol(b.c, Decl(internalAliasInitializedModule.ts, 1, 21)) +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModule.ts, 7, 10)) +>c : typeof b.c, Symbol(b.c, Decl(internalAliasInitializedModule.ts, 1, 21)) } diff --git a/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithExport.types b/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithExport.types index 973003d2c49..70aec7ce7eb 100644 --- a/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithExport.types +++ b/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithExport.types @@ -1,30 +1,30 @@ === tests/cases/compiler/internalAliasInitializedModuleInsideLocalModuleWithExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 0, 0)) export module b { ->b : typeof b +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 0, 17)) export class c { ->c : c +>c : c, Symbol(c, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 1, 21)) } } } export module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 5, 1)) export import b = a.b; ->b : typeof b ->a : typeof a ->b : typeof b +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 7, 17)) +>a : typeof a, Symbol(a, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 0, 0)) +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 0, 17)) export var x: b.c = new b.c(); ->x : b.c ->b : unknown ->c : b.c +>x : b.c, Symbol(x, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 9, 14)) +>b : any, Symbol(b, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 7, 17)) +>c : b.c, Symbol(b.c, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 1, 21)) >new b.c() : b.c ->b.c : typeof b.c ->b : typeof b ->c : typeof b.c +>b.c : typeof b.c, Symbol(b.c, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 1, 21)) +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 7, 17)) +>c : typeof b.c, Symbol(b.c, Decl(internalAliasInitializedModuleInsideLocalModuleWithExport.ts, 1, 21)) } diff --git a/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithoutExport.types b/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithoutExport.types index 540883209de..0c9c67093fb 100644 --- a/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasInitializedModuleInsideLocalModuleWithoutExport.types @@ -1,30 +1,30 @@ === tests/cases/compiler/internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 0, 0)) export module b { ->b : typeof b +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 0, 17)) export class c { ->c : c +>c : c, Symbol(c, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 1, 21)) } } } export module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 5, 1)) import b = a.b; ->b : typeof b ->a : typeof a ->b : typeof b +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 7, 17)) +>a : typeof a, Symbol(a, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 0, 0)) +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 0, 17)) export var x: b.c = new b.c(); ->x : b.c ->b : unknown ->c : b.c +>x : b.c, Symbol(x, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 9, 14)) +>b : any, Symbol(b, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 7, 17)) +>c : b.c, Symbol(b.c, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 1, 21)) >new b.c() : b.c ->b.c : typeof b.c ->b : typeof b ->c : typeof b.c +>b.c : typeof b.c, Symbol(b.c, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 1, 21)) +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 7, 17)) +>c : typeof b.c, Symbol(b.c, Decl(internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts, 1, 21)) } diff --git a/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithExport.types b/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithExport.types index aa9944787d6..e3c5c61d967 100644 --- a/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithExport.types +++ b/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithExport.types @@ -1,27 +1,27 @@ === tests/cases/compiler/internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts, 0, 0)) export module b { ->b : typeof b +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts, 0, 17)) export class c { ->c : c +>c : c, Symbol(c, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts, 1, 21)) } } } export import b = a.b; ->b : typeof b ->a : typeof a ->b : typeof b +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts, 5, 1)) +>a : typeof a, Symbol(a, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts, 0, 0)) +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts, 0, 17)) export var x: b.c = new b.c(); ->x : b.c ->b : unknown ->c : b.c +>x : b.c, Symbol(x, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts, 8, 10)) +>b : any, Symbol(b, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts, 5, 1)) +>c : b.c, Symbol(b.c, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts, 1, 21)) >new b.c() : b.c ->b.c : typeof b.c ->b : typeof b ->c : typeof b.c +>b.c : typeof b.c, Symbol(b.c, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts, 1, 21)) +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts, 5, 1)) +>c : typeof b.c, Symbol(b.c, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithExport.ts, 1, 21)) diff --git a/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.types b/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.types index e17fcdba2a7..d741c8a4f01 100644 --- a/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.types @@ -1,27 +1,27 @@ === tests/cases/compiler/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts, 0, 0)) export module b { ->b : typeof b +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts, 0, 17)) export class c { ->c : c +>c : c, Symbol(c, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts, 1, 21)) } } } import b = a.b; ->b : typeof b ->a : typeof a ->b : typeof b +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts, 5, 1)) +>a : typeof a, Symbol(a, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts, 0, 0)) +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts, 0, 17)) export var x: b.c = new b.c(); ->x : b.c ->b : unknown ->c : b.c +>x : b.c, Symbol(x, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts, 8, 10)) +>b : any, Symbol(b, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts, 5, 1)) +>c : b.c, Symbol(b.c, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts, 1, 21)) >new b.c() : b.c ->b.c : typeof b.c ->b : typeof b ->c : typeof b.c +>b.c : typeof b.c, Symbol(b.c, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts, 1, 21)) +>b : typeof b, Symbol(b, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts, 5, 1)) +>c : typeof b.c, Symbol(b.c, Decl(internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts, 1, 21)) diff --git a/tests/baselines/reference/internalAliasInterface.types b/tests/baselines/reference/internalAliasInterface.types index 310c568104d..9d36cff1bb5 100644 --- a/tests/baselines/reference/internalAliasInterface.types +++ b/tests/baselines/reference/internalAliasInterface.types @@ -1,22 +1,22 @@ === tests/cases/compiler/internalAliasInterface.ts === module a { ->a : unknown +>a : any, Symbol(a, Decl(internalAliasInterface.ts, 0, 0)) export interface I { ->I : I +>I : I, Symbol(I, Decl(internalAliasInterface.ts, 0, 10)) } } module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasInterface.ts, 3, 1)) import b = a.I; ->b : unknown ->a : unknown ->I : b +>b : any, Symbol(b, Decl(internalAliasInterface.ts, 5, 10)) +>a : any, Symbol(a, Decl(internalAliasInterface.ts, 0, 0)) +>I : b, Symbol(b, Decl(internalAliasInterface.ts, 0, 10)) export var x: b; ->x : b ->b : b +>x : b, Symbol(x, Decl(internalAliasInterface.ts, 7, 14)) +>b : b, Symbol(b, Decl(internalAliasInterface.ts, 5, 10)) } diff --git a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithExport.types b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithExport.types index 9667fd125d5..52f8b642eaf 100644 --- a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithExport.types +++ b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithExport.types @@ -1,22 +1,22 @@ === tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithExport.ts === export module a { ->a : unknown +>a : any, Symbol(a, Decl(internalAliasInterfaceInsideLocalModuleWithExport.ts, 0, 0)) export interface I { ->I : I +>I : I, Symbol(I, Decl(internalAliasInterfaceInsideLocalModuleWithExport.ts, 0, 17)) } } export module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasInterfaceInsideLocalModuleWithExport.ts, 3, 1)) export import b = a.I; ->b : unknown ->a : unknown ->I : b +>b : any, Symbol(b, Decl(internalAliasInterfaceInsideLocalModuleWithExport.ts, 5, 17)) +>a : any, Symbol(a, Decl(internalAliasInterfaceInsideLocalModuleWithExport.ts, 0, 0)) +>I : b, Symbol(b, Decl(internalAliasInterfaceInsideLocalModuleWithExport.ts, 0, 17)) export var x: b; ->x : b ->b : b +>x : b, Symbol(x, Decl(internalAliasInterfaceInsideLocalModuleWithExport.ts, 7, 14)) +>b : b, Symbol(b, Decl(internalAliasInterfaceInsideLocalModuleWithExport.ts, 5, 17)) } diff --git a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExport.types b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExport.types index 2f9368bc6a9..8e03dc23cb6 100644 --- a/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasInterfaceInsideLocalModuleWithoutExport.types @@ -1,22 +1,22 @@ === tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExport.ts === export module a { ->a : unknown +>a : any, Symbol(a, Decl(internalAliasInterfaceInsideLocalModuleWithoutExport.ts, 0, 0)) export interface I { ->I : I +>I : I, Symbol(I, Decl(internalAliasInterfaceInsideLocalModuleWithoutExport.ts, 0, 17)) } } export module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasInterfaceInsideLocalModuleWithoutExport.ts, 3, 1)) import b = a.I; ->b : unknown ->a : unknown ->I : b +>b : any, Symbol(b, Decl(internalAliasInterfaceInsideLocalModuleWithoutExport.ts, 5, 17)) +>a : any, Symbol(a, Decl(internalAliasInterfaceInsideLocalModuleWithoutExport.ts, 0, 0)) +>I : b, Symbol(b, Decl(internalAliasInterfaceInsideLocalModuleWithoutExport.ts, 0, 17)) export var x: b; ->x : b ->b : b +>x : b, Symbol(x, Decl(internalAliasInterfaceInsideLocalModuleWithoutExport.ts, 7, 14)) +>b : b, Symbol(b, Decl(internalAliasInterfaceInsideLocalModuleWithoutExport.ts, 5, 17)) } diff --git a/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithExport.types b/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithExport.types index 9197d1e0215..2f1222ec0af 100644 --- a/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithExport.types +++ b/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithExport.types @@ -1,18 +1,18 @@ === tests/cases/compiler/internalAliasInterfaceInsideTopLevelModuleWithExport.ts === export module a { ->a : unknown +>a : any, Symbol(a, Decl(internalAliasInterfaceInsideTopLevelModuleWithExport.ts, 0, 0)) export interface I { ->I : I +>I : I, Symbol(I, Decl(internalAliasInterfaceInsideTopLevelModuleWithExport.ts, 0, 17)) } } export import b = a.I; ->b : unknown ->a : unknown ->I : b +>b : any, Symbol(b, Decl(internalAliasInterfaceInsideTopLevelModuleWithExport.ts, 3, 1)) +>a : any, Symbol(a, Decl(internalAliasInterfaceInsideTopLevelModuleWithExport.ts, 0, 0)) +>I : b, Symbol(b, Decl(internalAliasInterfaceInsideTopLevelModuleWithExport.ts, 0, 17)) export var x: b; ->x : b ->b : b +>x : b, Symbol(x, Decl(internalAliasInterfaceInsideTopLevelModuleWithExport.ts, 6, 10)) +>b : b, Symbol(b, Decl(internalAliasInterfaceInsideTopLevelModuleWithExport.ts, 3, 1)) diff --git a/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithoutExport.types b/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithoutExport.types index 58be03b6a3c..8d92865b68b 100644 --- a/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasInterfaceInsideTopLevelModuleWithoutExport.types @@ -1,18 +1,18 @@ === tests/cases/compiler/internalAliasInterfaceInsideTopLevelModuleWithoutExport.ts === export module a { ->a : unknown +>a : any, Symbol(a, Decl(internalAliasInterfaceInsideTopLevelModuleWithoutExport.ts, 0, 0)) export interface I { ->I : I +>I : I, Symbol(I, Decl(internalAliasInterfaceInsideTopLevelModuleWithoutExport.ts, 0, 17)) } } import b = a.I; ->b : unknown ->a : unknown ->I : b +>b : any, Symbol(b, Decl(internalAliasInterfaceInsideTopLevelModuleWithoutExport.ts, 3, 1)) +>a : any, Symbol(a, Decl(internalAliasInterfaceInsideTopLevelModuleWithoutExport.ts, 0, 0)) +>I : b, Symbol(b, Decl(internalAliasInterfaceInsideTopLevelModuleWithoutExport.ts, 0, 17)) export var x: b; ->x : b ->b : b +>x : b, Symbol(x, Decl(internalAliasInterfaceInsideTopLevelModuleWithoutExport.ts, 6, 10)) +>b : b, Symbol(b, Decl(internalAliasInterfaceInsideTopLevelModuleWithoutExport.ts, 3, 1)) diff --git a/tests/baselines/reference/internalAliasUninitializedModule.types b/tests/baselines/reference/internalAliasUninitializedModule.types index 408a2467e03..3b2ad0561c0 100644 --- a/tests/baselines/reference/internalAliasUninitializedModule.types +++ b/tests/baselines/reference/internalAliasUninitializedModule.types @@ -1,35 +1,35 @@ === tests/cases/compiler/internalAliasUninitializedModule.ts === module a { ->a : unknown +>a : any, Symbol(a, Decl(internalAliasUninitializedModule.ts, 0, 0)) export module b { ->b : unknown +>b : any, Symbol(b, Decl(internalAliasUninitializedModule.ts, 0, 10)) export interface I { ->I : I +>I : I, Symbol(I, Decl(internalAliasUninitializedModule.ts, 1, 21)) foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(internalAliasUninitializedModule.ts, 2, 28)) } } } module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasUninitializedModule.ts, 6, 1)) import b = a.b; ->b : unknown ->a : unknown ->b : unknown +>b : any, Symbol(b, Decl(internalAliasUninitializedModule.ts, 8, 10)) +>a : any, Symbol(a, Decl(internalAliasUninitializedModule.ts, 0, 0)) +>b : any, Symbol(b, Decl(internalAliasUninitializedModule.ts, 0, 10)) export var x: b.I; ->x : b.I ->b : unknown ->I : b.I +>x : b.I, Symbol(x, Decl(internalAliasUninitializedModule.ts, 10, 14)) +>b : any, Symbol(b, Decl(internalAliasUninitializedModule.ts, 8, 10)) +>I : b.I, Symbol(b.I, Decl(internalAliasUninitializedModule.ts, 1, 21)) x.foo(); >x.foo() : any ->x.foo : () => any ->x : b.I ->foo : () => any +>x.foo : () => any, Symbol(b.I.foo, Decl(internalAliasUninitializedModule.ts, 2, 28)) +>x : b.I, Symbol(x, Decl(internalAliasUninitializedModule.ts, 10, 14)) +>foo : () => any, Symbol(b.I.foo, Decl(internalAliasUninitializedModule.ts, 2, 28)) } diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithExport.types b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithExport.types index f7bbc68dac0..bfce1b68b51 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithExport.types +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithExport.types @@ -1,35 +1,35 @@ === tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithExport.ts === export module a { ->a : unknown +>a : any, Symbol(a, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 0, 0)) export module b { ->b : unknown +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 0, 17)) export interface I { ->I : I +>I : I, Symbol(I, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 1, 21)) foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 2, 28)) } } } export module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 6, 1)) export import b = a.b; ->b : unknown ->a : unknown ->b : unknown +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 8, 17)) +>a : any, Symbol(a, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 0, 0)) +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 0, 17)) export var x: b.I; ->x : b.I ->b : unknown ->I : b.I +>x : b.I, Symbol(x, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 10, 14)) +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 8, 17)) +>I : b.I, Symbol(b.I, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 1, 21)) x.foo(); >x.foo() : any ->x.foo : () => any ->x : b.I ->foo : () => any +>x.foo : () => any, Symbol(b.I.foo, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 2, 28)) +>x : b.I, Symbol(x, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 10, 14)) +>foo : () => any, Symbol(b.I.foo, Decl(internalAliasUninitializedModuleInsideLocalModuleWithExport.ts, 2, 28)) } diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.types b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.types index cf9a85a712f..ab2911013f4 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.types @@ -1,35 +1,35 @@ === tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts === export module a { ->a : unknown +>a : any, Symbol(a, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 0, 0)) export module b { ->b : unknown +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 0, 17)) export interface I { ->I : I +>I : I, Symbol(I, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 1, 21)) foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 2, 28)) } } } export module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 6, 1)) import b = a.b; ->b : unknown ->a : unknown ->b : unknown +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 8, 17)) +>a : any, Symbol(a, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 0, 0)) +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 0, 17)) export var x: b.I; ->x : b.I ->b : unknown ->I : b.I +>x : b.I, Symbol(x, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 10, 14)) +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 8, 17)) +>I : b.I, Symbol(b.I, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 1, 21)) x.foo(); >x.foo() : any ->x.foo : () => any ->x : b.I ->foo : () => any +>x.foo : () => any, Symbol(b.I.foo, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 2, 28)) +>x : b.I, Symbol(x, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 10, 14)) +>foo : () => any, Symbol(b.I.foo, Decl(internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts, 2, 28)) } diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.types b/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.types index 015ec48fe6a..e90625d4f57 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.types +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.types @@ -1,32 +1,32 @@ === tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts === export module a { ->a : unknown +>a : any, Symbol(a, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 0, 0)) export module b { ->b : unknown +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 0, 17)) export interface I { ->I : I +>I : I, Symbol(I, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 1, 21)) foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 2, 28)) } } } export import b = a.b; ->b : unknown ->a : unknown ->b : unknown +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 6, 1)) +>a : any, Symbol(a, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 0, 0)) +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 0, 17)) export var x: b.I; ->x : b.I ->b : unknown ->I : b.I +>x : b.I, Symbol(x, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 9, 10)) +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 6, 1)) +>I : b.I, Symbol(b.I, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 1, 21)) x.foo(); >x.foo() : any ->x.foo : () => any ->x : b.I ->foo : () => any +>x.foo : () => any, Symbol(b.I.foo, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 2, 28)) +>x : b.I, Symbol(x, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 9, 10)) +>foo : () => any, Symbol(b.I.foo, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithExport.ts, 2, 28)) diff --git a/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.types b/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.types index 71a2f535816..3623542056d 100644 --- a/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.types @@ -1,32 +1,32 @@ === tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts === export module a { ->a : unknown +>a : any, Symbol(a, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 0, 0)) export module b { ->b : unknown +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 0, 17)) export interface I { ->I : I +>I : I, Symbol(I, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 1, 21)) foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 2, 28)) } } } import b = a.b; ->b : unknown ->a : unknown ->b : unknown +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 6, 1)) +>a : any, Symbol(a, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 0, 0)) +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 0, 17)) export var x: b.I; ->x : b.I ->b : unknown ->I : b.I +>x : b.I, Symbol(x, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 9, 10)) +>b : any, Symbol(b, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 6, 1)) +>I : b.I, Symbol(b.I, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 1, 21)) x.foo(); >x.foo() : any ->x.foo : () => any ->x : b.I ->foo : () => any +>x.foo : () => any, Symbol(b.I.foo, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 2, 28)) +>x : b.I, Symbol(x, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 9, 10)) +>foo : () => any, Symbol(b.I.foo, Decl(internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts, 2, 28)) diff --git a/tests/baselines/reference/internalAliasVar.types b/tests/baselines/reference/internalAliasVar.types index d284b064d83..644f7f050b6 100644 --- a/tests/baselines/reference/internalAliasVar.types +++ b/tests/baselines/reference/internalAliasVar.types @@ -1,21 +1,22 @@ === tests/cases/compiler/internalAliasVar.ts === module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasVar.ts, 0, 0)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(internalAliasVar.ts, 1, 14)) +>10 : number } module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasVar.ts, 2, 1)) import b = a.x; ->b : number ->a : typeof a ->x : number +>b : number, Symbol(b, Decl(internalAliasVar.ts, 4, 10)) +>a : typeof a, Symbol(a, Decl(internalAliasVar.ts, 0, 0)) +>x : number, Symbol(b, Decl(internalAliasVar.ts, 1, 14)) export var bVal = b; ->bVal : number ->b : number +>bVal : number, Symbol(bVal, Decl(internalAliasVar.ts, 6, 14)) +>b : number, Symbol(b, Decl(internalAliasVar.ts, 4, 10)) } diff --git a/tests/baselines/reference/internalAliasVarInsideLocalModuleWithExport.types b/tests/baselines/reference/internalAliasVarInsideLocalModuleWithExport.types index b8d94c9ebbd..2d1000d6b85 100644 --- a/tests/baselines/reference/internalAliasVarInsideLocalModuleWithExport.types +++ b/tests/baselines/reference/internalAliasVarInsideLocalModuleWithExport.types @@ -1,21 +1,22 @@ === tests/cases/compiler/internalAliasVarInsideLocalModuleWithExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasVarInsideLocalModuleWithExport.ts, 0, 0)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(internalAliasVarInsideLocalModuleWithExport.ts, 1, 14)) +>10 : number } export module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasVarInsideLocalModuleWithExport.ts, 2, 1)) export import b = a.x; ->b : number ->a : typeof a ->x : number +>b : number, Symbol(b, Decl(internalAliasVarInsideLocalModuleWithExport.ts, 4, 17)) +>a : typeof a, Symbol(a, Decl(internalAliasVarInsideLocalModuleWithExport.ts, 0, 0)) +>x : number, Symbol(b, Decl(internalAliasVarInsideLocalModuleWithExport.ts, 1, 14)) export var bVal = b; ->bVal : number ->b : number +>bVal : number, Symbol(bVal, Decl(internalAliasVarInsideLocalModuleWithExport.ts, 6, 14)) +>b : number, Symbol(b, Decl(internalAliasVarInsideLocalModuleWithExport.ts, 4, 17)) } diff --git a/tests/baselines/reference/internalAliasVarInsideLocalModuleWithoutExport.types b/tests/baselines/reference/internalAliasVarInsideLocalModuleWithoutExport.types index c9e2897befb..b7973bfdef8 100644 --- a/tests/baselines/reference/internalAliasVarInsideLocalModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasVarInsideLocalModuleWithoutExport.types @@ -1,21 +1,22 @@ === tests/cases/compiler/internalAliasVarInsideLocalModuleWithoutExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasVarInsideLocalModuleWithoutExport.ts, 0, 0)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(internalAliasVarInsideLocalModuleWithoutExport.ts, 1, 14)) +>10 : number } export module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(internalAliasVarInsideLocalModuleWithoutExport.ts, 2, 1)) import b = a.x; ->b : number ->a : typeof a ->x : number +>b : number, Symbol(b, Decl(internalAliasVarInsideLocalModuleWithoutExport.ts, 4, 17)) +>a : typeof a, Symbol(a, Decl(internalAliasVarInsideLocalModuleWithoutExport.ts, 0, 0)) +>x : number, Symbol(b, Decl(internalAliasVarInsideLocalModuleWithoutExport.ts, 1, 14)) export var bVal = b; ->bVal : number ->b : number +>bVal : number, Symbol(bVal, Decl(internalAliasVarInsideLocalModuleWithoutExport.ts, 6, 14)) +>b : number, Symbol(b, Decl(internalAliasVarInsideLocalModuleWithoutExport.ts, 4, 17)) } diff --git a/tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithExport.types b/tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithExport.types index 22335c7d8c0..23f141b1263 100644 --- a/tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithExport.types +++ b/tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithExport.types @@ -1,18 +1,19 @@ === tests/cases/compiler/internalAliasVarInsideTopLevelModuleWithExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 0, 0)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 1, 14)) +>10 : number } export import b = a.x; ->b : number ->a : typeof a ->x : number +>b : number, Symbol(b, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 2, 1)) +>a : typeof a, Symbol(a, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 0, 0)) +>x : number, Symbol(b, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 1, 14)) export var bVal = b; ->bVal : number ->b : number +>bVal : number, Symbol(bVal, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 5, 10)) +>b : number, Symbol(b, Decl(internalAliasVarInsideTopLevelModuleWithExport.ts, 2, 1)) diff --git a/tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithoutExport.types b/tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithoutExport.types index 1474735c62d..9ddcf8654bc 100644 --- a/tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithoutExport.types +++ b/tests/baselines/reference/internalAliasVarInsideTopLevelModuleWithoutExport.types @@ -1,18 +1,19 @@ === tests/cases/compiler/internalAliasVarInsideTopLevelModuleWithoutExport.ts === export module a { ->a : typeof a +>a : typeof a, Symbol(a, Decl(internalAliasVarInsideTopLevelModuleWithoutExport.ts, 0, 0)) export var x = 10; ->x : number +>x : number, Symbol(x, Decl(internalAliasVarInsideTopLevelModuleWithoutExport.ts, 1, 14)) +>10 : number } import b = a.x; ->b : number ->a : typeof a ->x : number +>b : number, Symbol(b, Decl(internalAliasVarInsideTopLevelModuleWithoutExport.ts, 2, 1)) +>a : typeof a, Symbol(a, Decl(internalAliasVarInsideTopLevelModuleWithoutExport.ts, 0, 0)) +>x : number, Symbol(b, Decl(internalAliasVarInsideTopLevelModuleWithoutExport.ts, 1, 14)) export var bVal = b; ->bVal : number ->b : number +>bVal : number, Symbol(bVal, Decl(internalAliasVarInsideTopLevelModuleWithoutExport.ts, 5, 10)) +>b : number, Symbol(b, Decl(internalAliasVarInsideTopLevelModuleWithoutExport.ts, 2, 1)) diff --git a/tests/baselines/reference/internalAliasWithDottedNameEmit.types b/tests/baselines/reference/internalAliasWithDottedNameEmit.types index 2b66ec9541b..62ca6aa93a5 100644 --- a/tests/baselines/reference/internalAliasWithDottedNameEmit.types +++ b/tests/baselines/reference/internalAliasWithDottedNameEmit.types @@ -1,20 +1,20 @@ === tests/cases/compiler/internalAliasWithDottedNameEmit.ts === module a.b.c { ->a : typeof a ->b : typeof b ->c : typeof c +>a : typeof a, Symbol(a, Decl(internalAliasWithDottedNameEmit.ts, 0, 0), Decl(internalAliasWithDottedNameEmit.ts, 2, 1)) +>b : typeof b, Symbol(b, Decl(internalAliasWithDottedNameEmit.ts, 0, 9)) +>c : typeof c, Symbol(c, Decl(internalAliasWithDottedNameEmit.ts, 0, 11)) export var d; ->d : any +>d : any, Symbol(d, Decl(internalAliasWithDottedNameEmit.ts, 1, 16)) } module a.e.f { ->a : typeof a ->e : unknown ->f : unknown +>a : typeof a, Symbol(a, Decl(internalAliasWithDottedNameEmit.ts, 0, 0), Decl(internalAliasWithDottedNameEmit.ts, 2, 1)) +>e : any, Symbol(e, Decl(internalAliasWithDottedNameEmit.ts, 3, 9)) +>f : any, Symbol(f, Decl(internalAliasWithDottedNameEmit.ts, 3, 11)) import g = b.c; ->g : typeof g ->b : typeof b ->c : typeof g +>g : typeof g, Symbol(g, Decl(internalAliasWithDottedNameEmit.ts, 3, 14)) +>b : typeof b, Symbol(b, Decl(internalAliasWithDottedNameEmit.ts, 0, 9)) +>c : typeof g, Symbol(g, Decl(internalAliasWithDottedNameEmit.ts, 0, 11)) } diff --git a/tests/baselines/reference/internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.types b/tests/baselines/reference/internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.types index 3ec8770f17c..2122f15fe22 100644 --- a/tests/baselines/reference/internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.types +++ b/tests/baselines/reference/internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.types @@ -1,26 +1,27 @@ === tests/cases/compiler/internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts === class A { ->A : A +>A : A, Symbol(A, Decl(internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 0, 0), Decl(internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 2, 1)) aProp: string; ->aProp : string +>aProp : string, Symbol(aProp, Decl(internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 0, 9)) } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 0, 0), Decl(internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 2, 1)) export interface X { s: string } ->X : X ->s : string +>X : X, Symbol(X, Decl(internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 3, 10)) +>s : string, Symbol(s, Decl(internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 4, 24)) export var a = 10; ->a : number +>a : number, Symbol(a, Decl(internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 5, 14)) +>10 : number } module B { ->B : unknown +>B : any, Symbol(B, Decl(internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 6, 1)) import Y = A; ->Y : typeof Y ->A : Y +>Y : typeof Y, Symbol(Y, Decl(internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 8, 10)) +>A : Y, Symbol(Y, Decl(internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 0, 0), Decl(internalImportInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 2, 1)) } diff --git a/tests/baselines/reference/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.types b/tests/baselines/reference/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.types index c07fc1c4955..9aa89fc5da9 100644 --- a/tests/baselines/reference/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.types +++ b/tests/baselines/reference/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.types @@ -1,23 +1,23 @@ === tests/cases/compiler/internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts === class A { ->A : A +>A : A, Symbol(A, Decl(internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 0, 0), Decl(internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 2, 1)) aProp: string; ->aProp : string +>aProp : string, Symbol(aProp, Decl(internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 0, 9)) } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 0, 0), Decl(internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 2, 1)) export interface X { s: string } ->X : X ->s : string +>X : X, Symbol(X, Decl(internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 3, 10)) +>s : string, Symbol(s, Decl(internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 4, 24)) } module B { ->B : unknown +>B : any, Symbol(B, Decl(internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 5, 1)) import Y = A; ->Y : typeof Y ->A : Y +>Y : typeof Y, Symbol(Y, Decl(internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 7, 10)) +>A : Y, Symbol(Y, Decl(internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 0, 0), Decl(internalImportUnInstantiatedModuleMergedWithClassNotReferencingInstanceNoConflict.ts, 2, 1)) } diff --git a/tests/baselines/reference/internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.types b/tests/baselines/reference/internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.types index 0bff332846a..7a23abe8173 100644 --- a/tests/baselines/reference/internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.types +++ b/tests/baselines/reference/internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.types @@ -1,20 +1,21 @@ === tests/cases/compiler/internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.ts === module A { ->A : unknown +>A : any, Symbol(A, Decl(internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.ts, 0, 0)) export interface X { s: string } ->X : X ->s : string +>X : X, Symbol(X, Decl(internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.ts, 0, 10)) +>s : string, Symbol(s, Decl(internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.ts, 1, 24)) } module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.ts, 2, 1)) var A = 1; ->A : number +>A : number, Symbol(A, Decl(internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.ts, 5, 7)) +>1 : number import Y = A; ->Y : unknown ->A : unknown +>Y : any, Symbol(Y, Decl(internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.ts, 5, 14)) +>A : any, Symbol(Y, Decl(internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.ts, 0, 0)) } diff --git a/tests/baselines/reference/invalidSplice.types b/tests/baselines/reference/invalidSplice.types index ab4ad85d61f..fd7622a8618 100644 --- a/tests/baselines/reference/invalidSplice.types +++ b/tests/baselines/reference/invalidSplice.types @@ -1,8 +1,12 @@ === tests/cases/compiler/invalidSplice.ts === var arr = [].splice(0,3,4,5); ->arr : any[] +>arr : any[], Symbol(arr, Decl(invalidSplice.ts, 0, 3)) >[].splice(0,3,4,5) : any[] ->[].splice : { (start: number): any[]; (start: number, deleteCount: number, ...items: any[]): any[]; } +>[].splice : { (start: number): any[]; (start: number, deleteCount: number, ...items: any[]): any[]; }, Symbol(Array.splice, Decl(lib.d.ts, 1060, 50), Decl(lib.d.ts, 1066, 31)) >[] : undefined[] ->splice : { (start: number): any[]; (start: number, deleteCount: number, ...items: any[]): any[]; } +>splice : { (start: number): any[]; (start: number, deleteCount: number, ...items: any[]): any[]; }, Symbol(Array.splice, Decl(lib.d.ts, 1060, 50), Decl(lib.d.ts, 1066, 31)) +>0 : number +>3 : number +>4 : number +>5 : number diff --git a/tests/baselines/reference/invalidSwitchBreakStatement.types b/tests/baselines/reference/invalidSwitchBreakStatement.types index a17a2a7dee2..3544da72489 100644 --- a/tests/baselines/reference/invalidSwitchBreakStatement.types +++ b/tests/baselines/reference/invalidSwitchBreakStatement.types @@ -1,9 +1,12 @@ === tests/cases/conformance/statements/breakStatements/invalidSwitchBreakStatement.ts === // break is not allowed in a switch statement -No type information for this code. -No type information for this code.switch (12) { -No type information for this code. case 5: -No type information for this code. break; -No type information for this code.} -No type information for this code. -No type information for this code. \ No newline at end of file + +switch (12) { +>12 : number + + case 5: +>5 : number + + break; +} + diff --git a/tests/baselines/reference/invalidTypeNames.types b/tests/baselines/reference/invalidTypeNames.types index d16ce3b57e0..92951f0e927 100644 --- a/tests/baselines/reference/invalidTypeNames.types +++ b/tests/baselines/reference/invalidTypeNames.types @@ -1,6 +1,6 @@ === tests/cases/compiler/invalidTypeNames.ts === // Refer to calling code - a real illegal name is subbed in here class illegal_name_here { ->illegal_name_here : illegal_name_here +>illegal_name_here : illegal_name_here, Symbol(illegal_name_here, Decl(invalidTypeNames.ts, 0, 0)) } diff --git a/tests/baselines/reference/invalidUndefinedValues.types b/tests/baselines/reference/invalidUndefinedValues.types index 3f17deede37..d22e4a2d12d 100644 --- a/tests/baselines/reference/invalidUndefinedValues.types +++ b/tests/baselines/reference/invalidUndefinedValues.types @@ -1,107 +1,112 @@ === tests/cases/conformance/types/primitives/undefined/invalidUndefinedValues.ts === var x: typeof undefined; ->x : any ->undefined : undefined +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>undefined : undefined, Symbol(undefined) x = 1; >x = 1 : number ->x : any +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>1 : number x = ''; >x = '' : string ->x : any +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>'' : string x = true; >x = true : boolean ->x : any +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>true : boolean var a: void; ->a : void +>a : void, Symbol(a, Decl(invalidUndefinedValues.ts, 5, 3)) x = a; >x = a : void ->x : any ->a : void +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>a : void, Symbol(a, Decl(invalidUndefinedValues.ts, 5, 3)) x = null; >x = null : null ->x : any +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>null : null class C { foo: string } ->C : C ->foo : string +>C : C, Symbol(C, Decl(invalidUndefinedValues.ts, 7, 9)) +>foo : string, Symbol(foo, Decl(invalidUndefinedValues.ts, 9, 9)) var b: C; ->b : C ->C : C +>b : C, Symbol(b, Decl(invalidUndefinedValues.ts, 10, 3)) +>C : C, Symbol(C, Decl(invalidUndefinedValues.ts, 7, 9)) x = C; >x = C : typeof C ->x : any ->C : typeof C +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>C : typeof C, Symbol(C, Decl(invalidUndefinedValues.ts, 7, 9)) x = b; >x = b : C ->x : any ->b : C +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>b : C, Symbol(b, Decl(invalidUndefinedValues.ts, 10, 3)) interface I { foo: string } ->I : I ->foo : string +>I : I, Symbol(I, Decl(invalidUndefinedValues.ts, 12, 6)) +>foo : string, Symbol(foo, Decl(invalidUndefinedValues.ts, 14, 13)) var c: I; ->c : I ->I : I +>c : I, Symbol(c, Decl(invalidUndefinedValues.ts, 15, 3)) +>I : I, Symbol(I, Decl(invalidUndefinedValues.ts, 12, 6)) x = c; >x = c : I ->x : any ->c : I +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>c : I, Symbol(c, Decl(invalidUndefinedValues.ts, 15, 3)) module M { export var x = 1; } ->M : typeof M ->x : number +>M : typeof M, Symbol(M, Decl(invalidUndefinedValues.ts, 16, 6)) +>x : number, Symbol(x, Decl(invalidUndefinedValues.ts, 18, 21)) +>1 : number x = M; >x = M : typeof M ->x : any ->M : typeof M +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>M : typeof M, Symbol(M, Decl(invalidUndefinedValues.ts, 16, 6)) x = { f() { } } >x = { f() { } } : { f(): void; } ->x : any +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) >{ f() { } } : { f(): void; } ->f : () => void +>f : () => void, Symbol(f, Decl(invalidUndefinedValues.ts, 21, 5)) function f(a: T) { ->f : (a: T) => void ->T : T ->a : T ->T : T +>f : (a: T) => void, Symbol(f, Decl(invalidUndefinedValues.ts, 21, 15)) +>T : T, Symbol(T, Decl(invalidUndefinedValues.ts, 23, 11)) +>a : T, Symbol(a, Decl(invalidUndefinedValues.ts, 23, 14)) +>T : T, Symbol(T, Decl(invalidUndefinedValues.ts, 23, 11)) x = a; >x = a : T ->x : any ->a : T +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>a : T, Symbol(a, Decl(invalidUndefinedValues.ts, 23, 14)) } x = f; >x = f : (a: T) => void ->x : any ->f : (a: T) => void +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>f : (a: T) => void, Symbol(f, Decl(invalidUndefinedValues.ts, 21, 15)) enum E { A } ->E : E ->A : E +>E : E, Symbol(E, Decl(invalidUndefinedValues.ts, 26, 6)) +>A : E, Symbol(E.A, Decl(invalidUndefinedValues.ts, 28, 8)) x = E; >x = E : typeof E ->x : any ->E : typeof E +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>E : typeof E, Symbol(E, Decl(invalidUndefinedValues.ts, 26, 6)) x = E.A; >x = E.A : E ->x : any ->E.A : E ->E : typeof E ->A : E +>x : any, Symbol(x, Decl(invalidUndefinedValues.ts, 0, 3)) +>E.A : E, Symbol(E.A, Decl(invalidUndefinedValues.ts, 28, 8)) +>E : typeof E, Symbol(E, Decl(invalidUndefinedValues.ts, 26, 6)) +>A : E, Symbol(E.A, Decl(invalidUndefinedValues.ts, 28, 8)) diff --git a/tests/baselines/reference/ipromise2.types b/tests/baselines/reference/ipromise2.types index 72c7b44f146..e62c01598ea 100644 --- a/tests/baselines/reference/ipromise2.types +++ b/tests/baselines/reference/ipromise2.types @@ -1,124 +1,126 @@ === tests/cases/compiler/ipromise2.ts === declare module Windows.Foundation { ->Windows : unknown ->Foundation : unknown +>Windows : any, Symbol(Windows, Decl(ipromise2.ts, 0, 0)) +>Foundation : any, Symbol(Foundation, Decl(ipromise2.ts, 0, 23)) export interface IPromise { ->IPromise : IPromise ->T : T +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise2.ts, 0, 35)) +>T : T, Symbol(T, Decl(ipromise2.ts, 1, 30)) then(success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void ): Windows.Foundation.IPromise; ->then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; } ->U : U ->success : (value: T) => IPromise ->value : T ->T : T ->IPromise : IPromise ->U : U ->error : (error: any) => IPromise ->error : any ->IPromise : IPromise ->U : U ->progress : (progress: any) => void ->progress : any ->Windows : unknown ->Foundation : unknown ->IPromise : IPromise ->U : U +>then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; }, Symbol(then, Decl(ipromise2.ts, 1, 34), Decl(ipromise2.ts, 2, 159), Decl(ipromise2.ts, 3, 149), Decl(ipromise2.ts, 4, 149)) +>U : U, Symbol(U, Decl(ipromise2.ts, 2, 13)) +>success : (value: T) => IPromise, Symbol(success, Decl(ipromise2.ts, 2, 16)) +>value : T, Symbol(value, Decl(ipromise2.ts, 2, 27)) +>T : T, Symbol(T, Decl(ipromise2.ts, 1, 30)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise2.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise2.ts, 2, 13)) +>error : (error: any) => IPromise, Symbol(error, Decl(ipromise2.ts, 2, 52)) +>error : any, Symbol(error, Decl(ipromise2.ts, 2, 62)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise2.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise2.ts, 2, 13)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise2.ts, 2, 89)) +>progress : any, Symbol(progress, Decl(ipromise2.ts, 2, 102)) +>Windows : any, Symbol(Windows, Decl(ipromise2.ts, 0, 0)) +>Foundation : any, Symbol(Foundation, Decl(ipromise2.ts, 0, 23)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise2.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise2.ts, 2, 13)) then(success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void ): Windows.Foundation.IPromise; ->then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; } ->U : U ->success : (value: T) => IPromise ->value : T ->T : T ->IPromise : IPromise ->U : U ->error : (error: any) => U ->error : any ->U : U ->progress : (progress: any) => void ->progress : any ->Windows : unknown ->Foundation : unknown ->IPromise : IPromise ->U : U +>then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; }, Symbol(then, Decl(ipromise2.ts, 1, 34), Decl(ipromise2.ts, 2, 159), Decl(ipromise2.ts, 3, 149), Decl(ipromise2.ts, 4, 149)) +>U : U, Symbol(U, Decl(ipromise2.ts, 3, 13)) +>success : (value: T) => IPromise, Symbol(success, Decl(ipromise2.ts, 3, 16)) +>value : T, Symbol(value, Decl(ipromise2.ts, 3, 27)) +>T : T, Symbol(T, Decl(ipromise2.ts, 1, 30)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise2.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise2.ts, 3, 13)) +>error : (error: any) => U, Symbol(error, Decl(ipromise2.ts, 3, 52)) +>error : any, Symbol(error, Decl(ipromise2.ts, 3, 62)) +>U : U, Symbol(U, Decl(ipromise2.ts, 3, 13)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise2.ts, 3, 79)) +>progress : any, Symbol(progress, Decl(ipromise2.ts, 3, 92)) +>Windows : any, Symbol(Windows, Decl(ipromise2.ts, 0, 0)) +>Foundation : any, Symbol(Foundation, Decl(ipromise2.ts, 0, 23)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise2.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise2.ts, 3, 13)) then(success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void ): Windows.Foundation.IPromise; ->then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; } ->U : U ->success : (value: T) => U ->value : T ->T : T ->U : U ->error : (error: any) => IPromise ->error : any ->IPromise : IPromise ->U : U ->progress : (progress: any) => void ->progress : any ->Windows : unknown ->Foundation : unknown ->IPromise : IPromise ->U : U +>then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; }, Symbol(then, Decl(ipromise2.ts, 1, 34), Decl(ipromise2.ts, 2, 159), Decl(ipromise2.ts, 3, 149), Decl(ipromise2.ts, 4, 149)) +>U : U, Symbol(U, Decl(ipromise2.ts, 4, 13)) +>success : (value: T) => U, Symbol(success, Decl(ipromise2.ts, 4, 16)) +>value : T, Symbol(value, Decl(ipromise2.ts, 4, 27)) +>T : T, Symbol(T, Decl(ipromise2.ts, 1, 30)) +>U : U, Symbol(U, Decl(ipromise2.ts, 4, 13)) +>error : (error: any) => IPromise, Symbol(error, Decl(ipromise2.ts, 4, 42)) +>error : any, Symbol(error, Decl(ipromise2.ts, 4, 52)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise2.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise2.ts, 4, 13)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise2.ts, 4, 79)) +>progress : any, Symbol(progress, Decl(ipromise2.ts, 4, 92)) +>Windows : any, Symbol(Windows, Decl(ipromise2.ts, 0, 0)) +>Foundation : any, Symbol(Foundation, Decl(ipromise2.ts, 0, 23)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise2.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise2.ts, 4, 13)) then(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void ): Windows.Foundation.IPromise; ->then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; } ->U : U ->success : (value: T) => U ->value : T ->T : T ->U : U ->error : (error: any) => U ->error : any ->U : U ->progress : (progress: any) => void ->progress : any ->Windows : unknown ->Foundation : unknown ->IPromise : IPromise ->U : U +>then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; }, Symbol(then, Decl(ipromise2.ts, 1, 34), Decl(ipromise2.ts, 2, 159), Decl(ipromise2.ts, 3, 149), Decl(ipromise2.ts, 4, 149)) +>U : U, Symbol(U, Decl(ipromise2.ts, 5, 13)) +>success : (value: T) => U, Symbol(success, Decl(ipromise2.ts, 5, 16)) +>value : T, Symbol(value, Decl(ipromise2.ts, 5, 27)) +>T : T, Symbol(T, Decl(ipromise2.ts, 1, 30)) +>U : U, Symbol(U, Decl(ipromise2.ts, 5, 13)) +>error : (error: any) => U, Symbol(error, Decl(ipromise2.ts, 5, 42)) +>error : any, Symbol(error, Decl(ipromise2.ts, 5, 52)) +>U : U, Symbol(U, Decl(ipromise2.ts, 5, 13)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise2.ts, 5, 69)) +>progress : any, Symbol(progress, Decl(ipromise2.ts, 5, 82)) +>Windows : any, Symbol(Windows, Decl(ipromise2.ts, 0, 0)) +>Foundation : any, Symbol(Foundation, Decl(ipromise2.ts, 0, 23)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise2.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise2.ts, 5, 13)) done(success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void ): void; ->done : (success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void) => void ->U : U ->success : (value: T) => any ->value : T ->T : T ->error : (error: any) => any ->error : any ->progress : (progress: any) => void ->progress : any +>done : (success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void) => void, Symbol(done, Decl(ipromise2.ts, 5, 139)) +>U : U, Symbol(U, Decl(ipromise2.ts, 6, 13)) +>success : (value: T) => any, Symbol(success, Decl(ipromise2.ts, 6, 16)) +>value : T, Symbol(value, Decl(ipromise2.ts, 6, 27)) +>T : T, Symbol(T, Decl(ipromise2.ts, 1, 30)) +>error : (error: any) => any, Symbol(error, Decl(ipromise2.ts, 6, 44)) +>error : any, Symbol(error, Decl(ipromise2.ts, 6, 54)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise2.ts, 6, 73)) +>progress : any, Symbol(progress, Decl(ipromise2.ts, 6, 86)) value: T; ->value : T ->T : T +>value : T, Symbol(value, Decl(ipromise2.ts, 6, 117)) +>T : T, Symbol(T, Decl(ipromise2.ts, 1, 30)) } } var p: Windows.Foundation.IPromise; ->p : Windows.Foundation.IPromise ->Windows : unknown ->Foundation : unknown ->IPromise : Windows.Foundation.IPromise +>p : Windows.Foundation.IPromise, Symbol(p, Decl(ipromise2.ts, 11, 3)) +>Windows : any, Symbol(Windows, Decl(ipromise2.ts, 0, 0)) +>Foundation : any, Symbol(Windows.Foundation, Decl(ipromise2.ts, 0, 23)) +>IPromise : Windows.Foundation.IPromise, Symbol(Windows.Foundation.IPromise, Decl(ipromise2.ts, 0, 35)) var p2 = p.then(function (s) { ->p2 : Windows.Foundation.IPromise +>p2 : Windows.Foundation.IPromise, Symbol(p2, Decl(ipromise2.ts, 13, 3)) >p.then(function (s) { return 34;} ) : Windows.Foundation.IPromise ->p.then : { (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; } ->p : Windows.Foundation.IPromise ->then : { (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; } +>p.then : { (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; }, Symbol(Windows.Foundation.IPromise.then, Decl(ipromise2.ts, 1, 34), Decl(ipromise2.ts, 2, 159), Decl(ipromise2.ts, 3, 149), Decl(ipromise2.ts, 4, 149)) +>p : Windows.Foundation.IPromise, Symbol(p, Decl(ipromise2.ts, 11, 3)) +>then : { (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; }, Symbol(Windows.Foundation.IPromise.then, Decl(ipromise2.ts, 1, 34), Decl(ipromise2.ts, 2, 159), Decl(ipromise2.ts, 3, 149), Decl(ipromise2.ts, 4, 149)) >function (s) { return 34;} : (s: string) => number ->s : string +>s : string, Symbol(s, Decl(ipromise2.ts, 13, 26)) return 34; +>34 : number + } ); var x: number = p2.value; ->x : number ->p2.value : number ->p2 : Windows.Foundation.IPromise ->value : number +>x : number, Symbol(x, Decl(ipromise2.ts, 18, 3)) +>p2.value : number, Symbol(Windows.Foundation.IPromise.value, Decl(ipromise2.ts, 6, 117)) +>p2 : Windows.Foundation.IPromise, Symbol(p2, Decl(ipromise2.ts, 13, 3)) +>value : number, Symbol(Windows.Foundation.IPromise.value, Decl(ipromise2.ts, 6, 117)) diff --git a/tests/baselines/reference/ipromise3.types b/tests/baselines/reference/ipromise3.types index 7f11624db09..fcd2fe4217f 100644 --- a/tests/baselines/reference/ipromise3.types +++ b/tests/baselines/reference/ipromise3.types @@ -1,99 +1,99 @@ === tests/cases/compiler/ipromise3.ts === interface IPromise3 { ->IPromise3 : IPromise3 ->T : T +>IPromise3 : IPromise3, Symbol(IPromise3, Decl(ipromise3.ts, 0, 0)) +>T : T, Symbol(T, Decl(ipromise3.ts, 0, 20)) then(success?: (value: T) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void ): IPromise3; ->then : { (success?: (value: T) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; } ->U : U ->success : (value: T) => IPromise3 ->value : T ->T : T ->IPromise3 : IPromise3 ->U : U ->error : (error: any) => IPromise3 ->error : any ->IPromise3 : IPromise3 ->U : U ->progress : (progress: any) => void ->progress : any ->IPromise3 : IPromise3 ->U : U +>then : { (success?: (value: T) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; }, Symbol(then, Decl(ipromise3.ts, 0, 24), Decl(ipromise3.ts, 1, 139), Decl(ipromise3.ts, 2, 128), Decl(ipromise3.ts, 3, 128)) +>U : U, Symbol(U, Decl(ipromise3.ts, 1, 9)) +>success : (value: T) => IPromise3, Symbol(success, Decl(ipromise3.ts, 1, 12)) +>value : T, Symbol(value, Decl(ipromise3.ts, 1, 23)) +>T : T, Symbol(T, Decl(ipromise3.ts, 0, 20)) +>IPromise3 : IPromise3, Symbol(IPromise3, Decl(ipromise3.ts, 0, 0)) +>U : U, Symbol(U, Decl(ipromise3.ts, 1, 9)) +>error : (error: any) => IPromise3, Symbol(error, Decl(ipromise3.ts, 1, 49)) +>error : any, Symbol(error, Decl(ipromise3.ts, 1, 59)) +>IPromise3 : IPromise3, Symbol(IPromise3, Decl(ipromise3.ts, 0, 0)) +>U : U, Symbol(U, Decl(ipromise3.ts, 1, 9)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise3.ts, 1, 87)) +>progress : any, Symbol(progress, Decl(ipromise3.ts, 1, 100)) +>IPromise3 : IPromise3, Symbol(IPromise3, Decl(ipromise3.ts, 0, 0)) +>U : U, Symbol(U, Decl(ipromise3.ts, 1, 9)) then(success?: (value: T) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void ): IPromise3; ->then : { (success?: (value: T) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; } ->U : U ->success : (value: T) => IPromise3 ->value : T ->T : T ->IPromise3 : IPromise3 ->U : U ->error : (error: any) => U ->error : any ->U : U ->progress : (progress: any) => void ->progress : any ->IPromise3 : IPromise3 ->U : U +>then : { (success?: (value: T) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; }, Symbol(then, Decl(ipromise3.ts, 0, 24), Decl(ipromise3.ts, 1, 139), Decl(ipromise3.ts, 2, 128), Decl(ipromise3.ts, 3, 128)) +>U : U, Symbol(U, Decl(ipromise3.ts, 2, 9)) +>success : (value: T) => IPromise3, Symbol(success, Decl(ipromise3.ts, 2, 12)) +>value : T, Symbol(value, Decl(ipromise3.ts, 2, 23)) +>T : T, Symbol(T, Decl(ipromise3.ts, 0, 20)) +>IPromise3 : IPromise3, Symbol(IPromise3, Decl(ipromise3.ts, 0, 0)) +>U : U, Symbol(U, Decl(ipromise3.ts, 2, 9)) +>error : (error: any) => U, Symbol(error, Decl(ipromise3.ts, 2, 49)) +>error : any, Symbol(error, Decl(ipromise3.ts, 2, 59)) +>U : U, Symbol(U, Decl(ipromise3.ts, 2, 9)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise3.ts, 2, 76)) +>progress : any, Symbol(progress, Decl(ipromise3.ts, 2, 89)) +>IPromise3 : IPromise3, Symbol(IPromise3, Decl(ipromise3.ts, 0, 0)) +>U : U, Symbol(U, Decl(ipromise3.ts, 2, 9)) then(success?: (value: T) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void ): IPromise3; ->then : { (success?: (value: T) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; } ->U : U ->success : (value: T) => U ->value : T ->T : T ->U : U ->error : (error: any) => IPromise3 ->error : any ->IPromise3 : IPromise3 ->U : U ->progress : (progress: any) => void ->progress : any ->IPromise3 : IPromise3 ->U : U +>then : { (success?: (value: T) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; }, Symbol(then, Decl(ipromise3.ts, 0, 24), Decl(ipromise3.ts, 1, 139), Decl(ipromise3.ts, 2, 128), Decl(ipromise3.ts, 3, 128)) +>U : U, Symbol(U, Decl(ipromise3.ts, 3, 9)) +>success : (value: T) => U, Symbol(success, Decl(ipromise3.ts, 3, 12)) +>value : T, Symbol(value, Decl(ipromise3.ts, 3, 23)) +>T : T, Symbol(T, Decl(ipromise3.ts, 0, 20)) +>U : U, Symbol(U, Decl(ipromise3.ts, 3, 9)) +>error : (error: any) => IPromise3, Symbol(error, Decl(ipromise3.ts, 3, 38)) +>error : any, Symbol(error, Decl(ipromise3.ts, 3, 48)) +>IPromise3 : IPromise3, Symbol(IPromise3, Decl(ipromise3.ts, 0, 0)) +>U : U, Symbol(U, Decl(ipromise3.ts, 3, 9)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise3.ts, 3, 76)) +>progress : any, Symbol(progress, Decl(ipromise3.ts, 3, 89)) +>IPromise3 : IPromise3, Symbol(IPromise3, Decl(ipromise3.ts, 0, 0)) +>U : U, Symbol(U, Decl(ipromise3.ts, 3, 9)) then(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void ): IPromise3; ->then : { (success?: (value: T) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; } ->U : U ->success : (value: T) => U ->value : T ->T : T ->U : U ->error : (error: any) => U ->error : any ->U : U ->progress : (progress: any) => void ->progress : any ->IPromise3 : IPromise3 ->U : U +>then : { (success?: (value: T) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; }, Symbol(then, Decl(ipromise3.ts, 0, 24), Decl(ipromise3.ts, 1, 139), Decl(ipromise3.ts, 2, 128), Decl(ipromise3.ts, 3, 128)) +>U : U, Symbol(U, Decl(ipromise3.ts, 4, 9)) +>success : (value: T) => U, Symbol(success, Decl(ipromise3.ts, 4, 12)) +>value : T, Symbol(value, Decl(ipromise3.ts, 4, 23)) +>T : T, Symbol(T, Decl(ipromise3.ts, 0, 20)) +>U : U, Symbol(U, Decl(ipromise3.ts, 4, 9)) +>error : (error: any) => U, Symbol(error, Decl(ipromise3.ts, 4, 38)) +>error : any, Symbol(error, Decl(ipromise3.ts, 4, 48)) +>U : U, Symbol(U, Decl(ipromise3.ts, 4, 9)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise3.ts, 4, 65)) +>progress : any, Symbol(progress, Decl(ipromise3.ts, 4, 78)) +>IPromise3 : IPromise3, Symbol(IPromise3, Decl(ipromise3.ts, 0, 0)) +>U : U, Symbol(U, Decl(ipromise3.ts, 4, 9)) done? (success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void ): void; ->done : (success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void) => void ->U : U ->success : (value: T) => any ->value : T ->T : T ->error : (error: any) => any ->error : any ->progress : (progress: any) => void ->progress : any +>done : (success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void) => void, Symbol(done, Decl(ipromise3.ts, 4, 117)) +>U : U, Symbol(U, Decl(ipromise3.ts, 5, 11)) +>success : (value: T) => any, Symbol(success, Decl(ipromise3.ts, 5, 14)) +>value : T, Symbol(value, Decl(ipromise3.ts, 5, 25)) +>T : T, Symbol(T, Decl(ipromise3.ts, 0, 20)) +>error : (error: any) => any, Symbol(error, Decl(ipromise3.ts, 5, 42)) +>error : any, Symbol(error, Decl(ipromise3.ts, 5, 52)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise3.ts, 5, 71)) +>progress : any, Symbol(progress, Decl(ipromise3.ts, 5, 84)) } var p1: IPromise3; ->p1 : IPromise3 ->IPromise3 : IPromise3 +>p1 : IPromise3, Symbol(p1, Decl(ipromise3.ts, 7, 3)) +>IPromise3 : IPromise3, Symbol(IPromise3, Decl(ipromise3.ts, 0, 0)) var p2: IPromise3 = p1.then(function (x) { ->p2 : IPromise3 ->IPromise3 : IPromise3 +>p2 : IPromise3, Symbol(p2, Decl(ipromise3.ts, 8, 3)) +>IPromise3 : IPromise3, Symbol(IPromise3, Decl(ipromise3.ts, 0, 0)) >p1.then(function (x) { return x;}) : IPromise3 ->p1.then : { (success?: (value: string) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: string) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; (success?: (value: string) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; } ->p1 : IPromise3 ->then : { (success?: (value: string) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: string) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; (success?: (value: string) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; } +>p1.then : { (success?: (value: string) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: string) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; (success?: (value: string) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; }, Symbol(IPromise3.then, Decl(ipromise3.ts, 0, 24), Decl(ipromise3.ts, 1, 139), Decl(ipromise3.ts, 2, 128), Decl(ipromise3.ts, 3, 128)) +>p1 : IPromise3, Symbol(p1, Decl(ipromise3.ts, 7, 3)) +>then : { (success?: (value: string) => IPromise3, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: string) => IPromise3, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; (success?: (value: string) => U, error?: (error: any) => IPromise3, progress?: (progress: any) => void): IPromise3; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3; }, Symbol(IPromise3.then, Decl(ipromise3.ts, 0, 24), Decl(ipromise3.ts, 1, 139), Decl(ipromise3.ts, 2, 128), Decl(ipromise3.ts, 3, 128)) >function (x) { return x;} : (x: string) => string ->x : string +>x : string, Symbol(x, Decl(ipromise3.ts, 8, 46)) return x; ->x : string +>x : string, Symbol(x, Decl(ipromise3.ts, 8, 46)) }); diff --git a/tests/baselines/reference/ipromise4.types b/tests/baselines/reference/ipromise4.types index 0ae6c35f1fd..90152fbbe70 100644 --- a/tests/baselines/reference/ipromise4.types +++ b/tests/baselines/reference/ipromise4.types @@ -1,123 +1,125 @@ === tests/cases/compiler/ipromise4.ts === declare module Windows.Foundation { ->Windows : unknown ->Foundation : unknown +>Windows : any, Symbol(Windows, Decl(ipromise4.ts, 0, 0)) +>Foundation : any, Symbol(Foundation, Decl(ipromise4.ts, 0, 23)) export interface IPromise { ->IPromise : IPromise ->T : T +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise4.ts, 0, 35)) +>T : T, Symbol(T, Decl(ipromise4.ts, 1, 30)) then(success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void ): Windows.Foundation.IPromise; ->then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; } ->U : U ->success : (value: T) => IPromise ->value : T ->T : T ->IPromise : IPromise ->U : U ->error : (error: any) => IPromise ->error : any ->IPromise : IPromise ->U : U ->progress : (progress: any) => void ->progress : any ->Windows : unknown ->Foundation : unknown ->IPromise : IPromise ->U : U +>then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; }, Symbol(then, Decl(ipromise4.ts, 1, 34), Decl(ipromise4.ts, 2, 159), Decl(ipromise4.ts, 3, 149), Decl(ipromise4.ts, 4, 149)) +>U : U, Symbol(U, Decl(ipromise4.ts, 2, 13)) +>success : (value: T) => IPromise, Symbol(success, Decl(ipromise4.ts, 2, 16)) +>value : T, Symbol(value, Decl(ipromise4.ts, 2, 27)) +>T : T, Symbol(T, Decl(ipromise4.ts, 1, 30)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise4.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise4.ts, 2, 13)) +>error : (error: any) => IPromise, Symbol(error, Decl(ipromise4.ts, 2, 52)) +>error : any, Symbol(error, Decl(ipromise4.ts, 2, 62)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise4.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise4.ts, 2, 13)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise4.ts, 2, 89)) +>progress : any, Symbol(progress, Decl(ipromise4.ts, 2, 102)) +>Windows : any, Symbol(Windows, Decl(ipromise4.ts, 0, 0)) +>Foundation : any, Symbol(Foundation, Decl(ipromise4.ts, 0, 23)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise4.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise4.ts, 2, 13)) then(success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void ): Windows.Foundation.IPromise; ->then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; } ->U : U ->success : (value: T) => IPromise ->value : T ->T : T ->IPromise : IPromise ->U : U ->error : (error: any) => U ->error : any ->U : U ->progress : (progress: any) => void ->progress : any ->Windows : unknown ->Foundation : unknown ->IPromise : IPromise ->U : U +>then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; }, Symbol(then, Decl(ipromise4.ts, 1, 34), Decl(ipromise4.ts, 2, 159), Decl(ipromise4.ts, 3, 149), Decl(ipromise4.ts, 4, 149)) +>U : U, Symbol(U, Decl(ipromise4.ts, 3, 13)) +>success : (value: T) => IPromise, Symbol(success, Decl(ipromise4.ts, 3, 16)) +>value : T, Symbol(value, Decl(ipromise4.ts, 3, 27)) +>T : T, Symbol(T, Decl(ipromise4.ts, 1, 30)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise4.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise4.ts, 3, 13)) +>error : (error: any) => U, Symbol(error, Decl(ipromise4.ts, 3, 52)) +>error : any, Symbol(error, Decl(ipromise4.ts, 3, 62)) +>U : U, Symbol(U, Decl(ipromise4.ts, 3, 13)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise4.ts, 3, 79)) +>progress : any, Symbol(progress, Decl(ipromise4.ts, 3, 92)) +>Windows : any, Symbol(Windows, Decl(ipromise4.ts, 0, 0)) +>Foundation : any, Symbol(Foundation, Decl(ipromise4.ts, 0, 23)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise4.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise4.ts, 3, 13)) then(success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void ): Windows.Foundation.IPromise; ->then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; } ->U : U ->success : (value: T) => U ->value : T ->T : T ->U : U ->error : (error: any) => IPromise ->error : any ->IPromise : IPromise ->U : U ->progress : (progress: any) => void ->progress : any ->Windows : unknown ->Foundation : unknown ->IPromise : IPromise ->U : U +>then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; }, Symbol(then, Decl(ipromise4.ts, 1, 34), Decl(ipromise4.ts, 2, 159), Decl(ipromise4.ts, 3, 149), Decl(ipromise4.ts, 4, 149)) +>U : U, Symbol(U, Decl(ipromise4.ts, 4, 13)) +>success : (value: T) => U, Symbol(success, Decl(ipromise4.ts, 4, 16)) +>value : T, Symbol(value, Decl(ipromise4.ts, 4, 27)) +>T : T, Symbol(T, Decl(ipromise4.ts, 1, 30)) +>U : U, Symbol(U, Decl(ipromise4.ts, 4, 13)) +>error : (error: any) => IPromise, Symbol(error, Decl(ipromise4.ts, 4, 42)) +>error : any, Symbol(error, Decl(ipromise4.ts, 4, 52)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise4.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise4.ts, 4, 13)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise4.ts, 4, 79)) +>progress : any, Symbol(progress, Decl(ipromise4.ts, 4, 92)) +>Windows : any, Symbol(Windows, Decl(ipromise4.ts, 0, 0)) +>Foundation : any, Symbol(Foundation, Decl(ipromise4.ts, 0, 23)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise4.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise4.ts, 4, 13)) then(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void ): Windows.Foundation.IPromise; ->then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; } ->U : U ->success : (value: T) => U ->value : T ->T : T ->U : U ->error : (error: any) => U ->error : any ->U : U ->progress : (progress: any) => void ->progress : any ->Windows : unknown ->Foundation : unknown ->IPromise : IPromise ->U : U +>then : { (success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; }, Symbol(then, Decl(ipromise4.ts, 1, 34), Decl(ipromise4.ts, 2, 159), Decl(ipromise4.ts, 3, 149), Decl(ipromise4.ts, 4, 149)) +>U : U, Symbol(U, Decl(ipromise4.ts, 5, 13)) +>success : (value: T) => U, Symbol(success, Decl(ipromise4.ts, 5, 16)) +>value : T, Symbol(value, Decl(ipromise4.ts, 5, 27)) +>T : T, Symbol(T, Decl(ipromise4.ts, 1, 30)) +>U : U, Symbol(U, Decl(ipromise4.ts, 5, 13)) +>error : (error: any) => U, Symbol(error, Decl(ipromise4.ts, 5, 42)) +>error : any, Symbol(error, Decl(ipromise4.ts, 5, 52)) +>U : U, Symbol(U, Decl(ipromise4.ts, 5, 13)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise4.ts, 5, 69)) +>progress : any, Symbol(progress, Decl(ipromise4.ts, 5, 82)) +>Windows : any, Symbol(Windows, Decl(ipromise4.ts, 0, 0)) +>Foundation : any, Symbol(Foundation, Decl(ipromise4.ts, 0, 23)) +>IPromise : IPromise, Symbol(IPromise, Decl(ipromise4.ts, 0, 35)) +>U : U, Symbol(U, Decl(ipromise4.ts, 5, 13)) done? (success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void ): void; ->done : (success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void) => void ->U : U ->success : (value: T) => any ->value : T ->T : T ->error : (error: any) => any ->error : any ->progress : (progress: any) => void ->progress : any +>done : (success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void) => void, Symbol(done, Decl(ipromise4.ts, 5, 139)) +>U : U, Symbol(U, Decl(ipromise4.ts, 6, 15)) +>success : (value: T) => any, Symbol(success, Decl(ipromise4.ts, 6, 18)) +>value : T, Symbol(value, Decl(ipromise4.ts, 6, 29)) +>T : T, Symbol(T, Decl(ipromise4.ts, 1, 30)) +>error : (error: any) => any, Symbol(error, Decl(ipromise4.ts, 6, 46)) +>error : any, Symbol(error, Decl(ipromise4.ts, 6, 56)) +>progress : (progress: any) => void, Symbol(progress, Decl(ipromise4.ts, 6, 75)) +>progress : any, Symbol(progress, Decl(ipromise4.ts, 6, 88)) } } var p: Windows.Foundation.IPromise = null; ->p : Windows.Foundation.IPromise ->Windows : unknown ->Foundation : unknown ->IPromise : Windows.Foundation.IPromise +>p : Windows.Foundation.IPromise, Symbol(p, Decl(ipromise4.ts, 10, 3)) +>Windows : any, Symbol(Windows, Decl(ipromise4.ts, 0, 0)) +>Foundation : any, Symbol(Windows.Foundation, Decl(ipromise4.ts, 0, 23)) +>IPromise : Windows.Foundation.IPromise, Symbol(Windows.Foundation.IPromise, Decl(ipromise4.ts, 0, 35)) +>null : null p.then(function (x) { } ); // should not error >p.then(function (x) { } ) : Windows.Foundation.IPromise ->p.then : { (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; } ->p : Windows.Foundation.IPromise ->then : { (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; } +>p.then : { (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; }, Symbol(Windows.Foundation.IPromise.then, Decl(ipromise4.ts, 1, 34), Decl(ipromise4.ts, 2, 159), Decl(ipromise4.ts, 3, 149), Decl(ipromise4.ts, 4, 149)) +>p : Windows.Foundation.IPromise, Symbol(p, Decl(ipromise4.ts, 10, 3)) +>then : { (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; }, Symbol(Windows.Foundation.IPromise.then, Decl(ipromise4.ts, 1, 34), Decl(ipromise4.ts, 2, 159), Decl(ipromise4.ts, 3, 149), Decl(ipromise4.ts, 4, 149)) >function (x) { } : (x: number) => void ->x : number +>x : number, Symbol(x, Decl(ipromise4.ts, 12, 17)) p.then(function (x) { return "hello"; } ).then(function (x) { return x } ); // should not error >p.then(function (x) { return "hello"; } ).then(function (x) { return x } ) : Windows.Foundation.IPromise ->p.then(function (x) { return "hello"; } ).then : { (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; } +>p.then(function (x) { return "hello"; } ).then : { (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; }, Symbol(Windows.Foundation.IPromise.then, Decl(ipromise4.ts, 1, 34), Decl(ipromise4.ts, 2, 159), Decl(ipromise4.ts, 3, 149), Decl(ipromise4.ts, 4, 149)) >p.then(function (x) { return "hello"; } ) : Windows.Foundation.IPromise ->p.then : { (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; } ->p : Windows.Foundation.IPromise ->then : { (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; } +>p.then : { (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; }, Symbol(Windows.Foundation.IPromise.then, Decl(ipromise4.ts, 1, 34), Decl(ipromise4.ts, 2, 159), Decl(ipromise4.ts, 3, 149), Decl(ipromise4.ts, 4, 149)) +>p : Windows.Foundation.IPromise, Symbol(p, Decl(ipromise4.ts, 10, 3)) +>then : { (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; }, Symbol(Windows.Foundation.IPromise.then, Decl(ipromise4.ts, 1, 34), Decl(ipromise4.ts, 2, 159), Decl(ipromise4.ts, 3, 149), Decl(ipromise4.ts, 4, 149)) >function (x) { return "hello"; } : (x: number) => string ->x : number ->then : { (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; } +>x : number, Symbol(x, Decl(ipromise4.ts, 13, 17)) +>"hello" : string +>then : { (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => Windows.Foundation.IPromise, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => Windows.Foundation.IPromise, progress?: (progress: any) => void): Windows.Foundation.IPromise; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): Windows.Foundation.IPromise; }, Symbol(Windows.Foundation.IPromise.then, Decl(ipromise4.ts, 1, 34), Decl(ipromise4.ts, 2, 159), Decl(ipromise4.ts, 3, 149), Decl(ipromise4.ts, 4, 149)) >function (x) { return x } : (x: string) => string ->x : string ->x : string +>x : string, Symbol(x, Decl(ipromise4.ts, 13, 57)) +>x : string, Symbol(x, Decl(ipromise4.ts, 13, 57)) diff --git a/tests/baselines/reference/isDeclarationVisibleNodeKinds.types b/tests/baselines/reference/isDeclarationVisibleNodeKinds.types index b3fe8d684b7..d03429fbcf8 100644 --- a/tests/baselines/reference/isDeclarationVisibleNodeKinds.types +++ b/tests/baselines/reference/isDeclarationVisibleNodeKinds.types @@ -2,167 +2,167 @@ // Function types module schema { ->schema : typeof schema +>schema : typeof schema, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 6, 1), Decl(isDeclarationVisibleNodeKinds.ts, 13, 1), Decl(isDeclarationVisibleNodeKinds.ts, 20, 1), Decl(isDeclarationVisibleNodeKinds.ts, 27, 1), Decl(isDeclarationVisibleNodeKinds.ts, 35, 1), Decl(isDeclarationVisibleNodeKinds.ts, 42, 1), Decl(isDeclarationVisibleNodeKinds.ts, 49, 1), Decl(isDeclarationVisibleNodeKinds.ts, 56, 1)) export function createValidator1(schema: any): (data: T) => T { ->createValidator1 : (schema: any) => (data: T) => T ->schema : any ->T : T ->data : T ->T : T ->T : T +>createValidator1 : (schema: any) => (data: T) => T, Symbol(createValidator1, Decl(isDeclarationVisibleNodeKinds.ts, 2, 15)) +>schema : any, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 3, 37)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 3, 52)) +>data : T, Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 3, 55)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 3, 52)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 3, 52)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } } // Constructor types module schema { ->schema : typeof schema +>schema : typeof schema, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 6, 1), Decl(isDeclarationVisibleNodeKinds.ts, 13, 1), Decl(isDeclarationVisibleNodeKinds.ts, 20, 1), Decl(isDeclarationVisibleNodeKinds.ts, 27, 1), Decl(isDeclarationVisibleNodeKinds.ts, 35, 1), Decl(isDeclarationVisibleNodeKinds.ts, 42, 1), Decl(isDeclarationVisibleNodeKinds.ts, 49, 1), Decl(isDeclarationVisibleNodeKinds.ts, 56, 1)) export function createValidator2(schema: any): new (data: T) => T { ->createValidator2 : (schema: any) => new (data: T) => T ->schema : any ->T : T ->data : T ->T : T ->T : T +>createValidator2 : (schema: any) => new (data: T) => T, Symbol(createValidator2, Decl(isDeclarationVisibleNodeKinds.ts, 9, 15)) +>schema : any, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 10, 37)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 10, 56)) +>data : T, Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 10, 59)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 10, 56)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 10, 56)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } } // union types module schema { ->schema : typeof schema +>schema : typeof schema, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 6, 1), Decl(isDeclarationVisibleNodeKinds.ts, 13, 1), Decl(isDeclarationVisibleNodeKinds.ts, 20, 1), Decl(isDeclarationVisibleNodeKinds.ts, 27, 1), Decl(isDeclarationVisibleNodeKinds.ts, 35, 1), Decl(isDeclarationVisibleNodeKinds.ts, 42, 1), Decl(isDeclarationVisibleNodeKinds.ts, 49, 1), Decl(isDeclarationVisibleNodeKinds.ts, 56, 1)) export function createValidator3(schema: any): number | { new (data: T): T; } { ->createValidator3 : (schema: any) => number | (new (data: T) => T) ->schema : any ->T : T ->data : T ->T : T ->T : T +>createValidator3 : (schema: any) => number | (new (data: T) => T), Symbol(createValidator3, Decl(isDeclarationVisibleNodeKinds.ts, 16, 15)) +>schema : any, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 17, 38)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 17, 68)) +>data : T, Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 17, 71)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 17, 68)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 17, 68)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } } // Array types module schema { ->schema : typeof schema +>schema : typeof schema, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 6, 1), Decl(isDeclarationVisibleNodeKinds.ts, 13, 1), Decl(isDeclarationVisibleNodeKinds.ts, 20, 1), Decl(isDeclarationVisibleNodeKinds.ts, 27, 1), Decl(isDeclarationVisibleNodeKinds.ts, 35, 1), Decl(isDeclarationVisibleNodeKinds.ts, 42, 1), Decl(isDeclarationVisibleNodeKinds.ts, 49, 1), Decl(isDeclarationVisibleNodeKinds.ts, 56, 1)) export function createValidator4(schema: any): { new (data: T): T; }[] { ->createValidator4 : (schema: any) => (new (data: T) => T)[] ->schema : any ->T : T ->data : T ->T : T ->T : T +>createValidator4 : (schema: any) => (new (data: T) => T)[], Symbol(createValidator4, Decl(isDeclarationVisibleNodeKinds.ts, 23, 15)) +>schema : any, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 24, 38)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 24, 59)) +>data : T, Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 24, 62)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 24, 59)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 24, 59)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } } // TypeLiterals module schema { ->schema : typeof schema +>schema : typeof schema, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 6, 1), Decl(isDeclarationVisibleNodeKinds.ts, 13, 1), Decl(isDeclarationVisibleNodeKinds.ts, 20, 1), Decl(isDeclarationVisibleNodeKinds.ts, 27, 1), Decl(isDeclarationVisibleNodeKinds.ts, 35, 1), Decl(isDeclarationVisibleNodeKinds.ts, 42, 1), Decl(isDeclarationVisibleNodeKinds.ts, 49, 1), Decl(isDeclarationVisibleNodeKinds.ts, 56, 1)) export function createValidator5(schema: any): { new (data: T): T } { ->createValidator5 : (schema: any) => new (data: T) => T ->schema : any ->T : T ->data : T ->T : T ->T : T +>createValidator5 : (schema: any) => new (data: T) => T, Symbol(createValidator5, Decl(isDeclarationVisibleNodeKinds.ts, 31, 15)) +>schema : any, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 32, 37)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 32, 58)) +>data : T, Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 32, 61)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 32, 58)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 32, 58)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } } // Tuple types module schema { ->schema : typeof schema +>schema : typeof schema, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 6, 1), Decl(isDeclarationVisibleNodeKinds.ts, 13, 1), Decl(isDeclarationVisibleNodeKinds.ts, 20, 1), Decl(isDeclarationVisibleNodeKinds.ts, 27, 1), Decl(isDeclarationVisibleNodeKinds.ts, 35, 1), Decl(isDeclarationVisibleNodeKinds.ts, 42, 1), Decl(isDeclarationVisibleNodeKinds.ts, 49, 1), Decl(isDeclarationVisibleNodeKinds.ts, 56, 1)) export function createValidator6(schema: any): [ new (data: T) => T, number] { ->createValidator6 : (schema: any) => [new (data: T) => T, number] ->schema : any ->T : T ->data : T ->T : T ->T : T +>createValidator6 : (schema: any) => [new (data: T) => T, number], Symbol(createValidator6, Decl(isDeclarationVisibleNodeKinds.ts, 38, 15)) +>schema : any, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 39, 37)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 39, 58)) +>data : T, Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 39, 61)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 39, 58)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 39, 58)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } } // Paren Types module schema { ->schema : typeof schema +>schema : typeof schema, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 6, 1), Decl(isDeclarationVisibleNodeKinds.ts, 13, 1), Decl(isDeclarationVisibleNodeKinds.ts, 20, 1), Decl(isDeclarationVisibleNodeKinds.ts, 27, 1), Decl(isDeclarationVisibleNodeKinds.ts, 35, 1), Decl(isDeclarationVisibleNodeKinds.ts, 42, 1), Decl(isDeclarationVisibleNodeKinds.ts, 49, 1), Decl(isDeclarationVisibleNodeKinds.ts, 56, 1)) export function createValidator7(schema: any): (new (data: T)=>T )[] { ->createValidator7 : (schema: any) => (new (data: T) => T)[] ->schema : any ->T : T ->data : T ->T : T ->T : T +>createValidator7 : (schema: any) => (new (data: T) => T)[], Symbol(createValidator7, Decl(isDeclarationVisibleNodeKinds.ts, 45, 15)) +>schema : any, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 46, 37)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 46, 57)) +>data : T, Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 46, 60)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 46, 57)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 46, 57)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } } // Type reference module schema { ->schema : typeof schema +>schema : typeof schema, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 6, 1), Decl(isDeclarationVisibleNodeKinds.ts, 13, 1), Decl(isDeclarationVisibleNodeKinds.ts, 20, 1), Decl(isDeclarationVisibleNodeKinds.ts, 27, 1), Decl(isDeclarationVisibleNodeKinds.ts, 35, 1), Decl(isDeclarationVisibleNodeKinds.ts, 42, 1), Decl(isDeclarationVisibleNodeKinds.ts, 49, 1), Decl(isDeclarationVisibleNodeKinds.ts, 56, 1)) export function createValidator8(schema: any): Array<{ (data: T) : T}> { ->createValidator8 : (schema: any) => ((data: T) => T)[] ->schema : any ->Array : T[] ->T : T ->data : T ->T : T ->T : T +>createValidator8 : (schema: any) => ((data: T) => T)[], Symbol(createValidator8, Decl(isDeclarationVisibleNodeKinds.ts, 52, 15)) +>schema : any, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 53, 37)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 53, 60)) +>data : T, Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 53, 63)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 53, 60)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 53, 60)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } } module schema { ->schema : typeof schema +>schema : typeof schema, Symbol(schema, Decl(isDeclarationVisibleNodeKinds.ts, 0, 0), Decl(isDeclarationVisibleNodeKinds.ts, 6, 1), Decl(isDeclarationVisibleNodeKinds.ts, 13, 1), Decl(isDeclarationVisibleNodeKinds.ts, 20, 1), Decl(isDeclarationVisibleNodeKinds.ts, 27, 1), Decl(isDeclarationVisibleNodeKinds.ts, 35, 1), Decl(isDeclarationVisibleNodeKinds.ts, 42, 1), Decl(isDeclarationVisibleNodeKinds.ts, 49, 1), Decl(isDeclarationVisibleNodeKinds.ts, 56, 1)) export class T { ->T : T +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 59, 15)) get createValidator9(): (data: T) => T { ->createValidator9 : (data: T) => T ->T : T ->data : T ->T : T ->T : T +>createValidator9 : (data: T) => T, Symbol(createValidator9, Decl(isDeclarationVisibleNodeKinds.ts, 60, 20)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 61, 33)) +>data : T, Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 61, 36)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 61, 33)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 61, 33)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } set createValidator10(v: (data: T) => T) { ->createValidator10 : (data: T) => T ->v : (data: T) => T ->T : T ->data : T ->T : T ->T : T +>createValidator10 : (data: T) => T, Symbol(createValidator10, Decl(isDeclarationVisibleNodeKinds.ts, 63, 9)) +>v : (data: T) => T, Symbol(v, Decl(isDeclarationVisibleNodeKinds.ts, 65, 30)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 65, 34)) +>data : T, Symbol(data, Decl(isDeclarationVisibleNodeKinds.ts, 65, 37)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 65, 34)) +>T : T, Symbol(T, Decl(isDeclarationVisibleNodeKinds.ts, 65, 34)) } } } diff --git a/tests/baselines/reference/isLiteral1.types b/tests/baselines/reference/isLiteral1.types index f26eab098b4..785d5ec5c8a 100644 --- a/tests/baselines/reference/isLiteral1.types +++ b/tests/baselines/reference/isLiteral1.types @@ -1,4 +1,5 @@ === tests/cases/compiler/isLiteral1.ts === var x: number = 02343; ->x : number +>x : number, Symbol(x, Decl(isLiteral1.ts, 0, 3)) +>02343 : number diff --git a/tests/baselines/reference/isLiteral2.types b/tests/baselines/reference/isLiteral2.types index 32c1b29f13e..a30da1eefbc 100644 --- a/tests/baselines/reference/isLiteral2.types +++ b/tests/baselines/reference/isLiteral2.types @@ -1,4 +1,5 @@ === tests/cases/compiler/isLiteral2.ts === var x: number = 02343 ->x : number +>x : number, Symbol(x, Decl(isLiteral2.ts, 0, 3)) +>02343 : number diff --git a/tests/baselines/reference/iterableArrayPattern1.js b/tests/baselines/reference/iterableArrayPattern1.js new file mode 100644 index 00000000000..b45ac92d1fd --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern1.js @@ -0,0 +1,28 @@ +//// [iterableArrayPattern1.ts] +var [a, b] = new SymbolIterator; +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern1.js] +var [a, b] = new SymbolIterator; +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern1.types b/tests/baselines/reference/iterableArrayPattern1.types new file mode 100644 index 00000000000..190627a1512 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern1.types @@ -0,0 +1,37 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern1.ts === +var [a, b] = new SymbolIterator; +>a : symbol, Symbol(a, Decl(iterableArrayPattern1.ts, 0, 5)) +>b : symbol, Symbol(b, Decl(iterableArrayPattern1.ts, 0, 7)) +>new SymbolIterator : SymbolIterator +>SymbolIterator : typeof SymbolIterator, Symbol(SymbolIterator, Decl(iterableArrayPattern1.ts, 0, 32)) + +class SymbolIterator { +>SymbolIterator : SymbolIterator, Symbol(SymbolIterator, Decl(iterableArrayPattern1.ts, 0, 32)) + + next() { +>next : () => { value: symbol; done: boolean; }, Symbol(next, Decl(iterableArrayPattern1.ts, 1, 22)) + + return { +>{ value: Symbol(), done: false } : { value: symbol; done: boolean; } + + value: Symbol(), +>value : symbol, Symbol(value, Decl(iterableArrayPattern1.ts, 3, 16)) +>Symbol() : symbol +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) + + done: false +>done : boolean, Symbol(done, Decl(iterableArrayPattern1.ts, 4, 28)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : SymbolIterator, Symbol(SymbolIterator, Decl(iterableArrayPattern1.ts, 0, 32)) + } +} diff --git a/tests/baselines/reference/iterableArrayPattern10.errors.txt b/tests/baselines/reference/iterableArrayPattern10.errors.txt new file mode 100644 index 00000000000..f06c4d7de17 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern10.errors.txt @@ -0,0 +1,24 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern10.ts(2,5): error TS2345: Argument of type 'FooIterator' is not assignable to parameter of type '[any, any]'. + Property '0' is missing in type 'FooIterator'. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern10.ts (1 errors) ==== + function fun([a, b]) { } + fun(new FooIterator); + ~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type 'FooIterator' is not assignable to parameter of type '[any, any]'. +!!! error TS2345: Property '0' is missing in type 'FooIterator'. + class Bar { x } + class Foo extends Bar { y } + class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern10.js b/tests/baselines/reference/iterableArrayPattern10.js new file mode 100644 index 00000000000..c8d37e3f894 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern10.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern10.ts] +function fun([a, b]) { } +fun(new FooIterator); +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern10.js] +function fun([a, b]) { } +fun(new FooIterator); +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern11.js b/tests/baselines/reference/iterableArrayPattern11.js new file mode 100644 index 00000000000..85ed4ab9710 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern11.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern11.ts] +function fun([a, b] = new FooIterator) { } +fun(new FooIterator); +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern11.js] +function fun([a, b] = new FooIterator) { } +fun(new FooIterator); +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern11.types b/tests/baselines/reference/iterableArrayPattern11.types new file mode 100644 index 00000000000..9d44005c028 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern11.types @@ -0,0 +1,53 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern11.ts === +function fun([a, b] = new FooIterator) { } +>fun : ([a, b]?: FooIterator) => void, Symbol(fun, Decl(iterableArrayPattern11.ts, 0, 0)) +>a : Foo, Symbol(a, Decl(iterableArrayPattern11.ts, 0, 14)) +>b : Foo, Symbol(b, Decl(iterableArrayPattern11.ts, 0, 16)) +>new FooIterator : FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern11.ts, 3, 27)) + +fun(new FooIterator); +>fun(new FooIterator) : void +>fun : ([a, b]?: FooIterator) => void, Symbol(fun, Decl(iterableArrayPattern11.ts, 0, 0)) +>new FooIterator : FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern11.ts, 3, 27)) + +class Bar { x } +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern11.ts, 1, 21)) +>x : any, Symbol(x, Decl(iterableArrayPattern11.ts, 2, 11)) + +class Foo extends Bar { y } +>Foo : Foo, Symbol(Foo, Decl(iterableArrayPattern11.ts, 2, 15)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern11.ts, 1, 21)) +>y : any, Symbol(y, Decl(iterableArrayPattern11.ts, 3, 23)) + +class FooIterator { +>FooIterator : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern11.ts, 3, 27)) + + next() { +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(iterableArrayPattern11.ts, 4, 19)) + + return { +>{ value: new Foo, done: false } : { value: Foo; done: boolean; } + + value: new Foo, +>value : Foo, Symbol(value, Decl(iterableArrayPattern11.ts, 6, 16)) +>new Foo : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(iterableArrayPattern11.ts, 2, 15)) + + done: false +>done : boolean, Symbol(done, Decl(iterableArrayPattern11.ts, 7, 27)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern11.ts, 3, 27)) + } +} diff --git a/tests/baselines/reference/iterableArrayPattern12.js b/tests/baselines/reference/iterableArrayPattern12.js new file mode 100644 index 00000000000..4856af9cb48 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern12.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern12.ts] +function fun([a, ...b] = new FooIterator) { } +fun(new FooIterator); +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern12.js] +function fun([a, ...b] = new FooIterator) { } +fun(new FooIterator); +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern12.types b/tests/baselines/reference/iterableArrayPattern12.types new file mode 100644 index 00000000000..3135136e3b6 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern12.types @@ -0,0 +1,53 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern12.ts === +function fun([a, ...b] = new FooIterator) { } +>fun : ([a, ...b]?: FooIterator) => void, Symbol(fun, Decl(iterableArrayPattern12.ts, 0, 0)) +>a : Foo, Symbol(a, Decl(iterableArrayPattern12.ts, 0, 14)) +>b : Foo[], Symbol(b, Decl(iterableArrayPattern12.ts, 0, 16)) +>new FooIterator : FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern12.ts, 3, 27)) + +fun(new FooIterator); +>fun(new FooIterator) : void +>fun : ([a, ...b]?: FooIterator) => void, Symbol(fun, Decl(iterableArrayPattern12.ts, 0, 0)) +>new FooIterator : FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern12.ts, 3, 27)) + +class Bar { x } +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern12.ts, 1, 21)) +>x : any, Symbol(x, Decl(iterableArrayPattern12.ts, 2, 11)) + +class Foo extends Bar { y } +>Foo : Foo, Symbol(Foo, Decl(iterableArrayPattern12.ts, 2, 15)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern12.ts, 1, 21)) +>y : any, Symbol(y, Decl(iterableArrayPattern12.ts, 3, 23)) + +class FooIterator { +>FooIterator : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern12.ts, 3, 27)) + + next() { +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(iterableArrayPattern12.ts, 4, 19)) + + return { +>{ value: new Foo, done: false } : { value: Foo; done: boolean; } + + value: new Foo, +>value : Foo, Symbol(value, Decl(iterableArrayPattern12.ts, 6, 16)) +>new Foo : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(iterableArrayPattern12.ts, 2, 15)) + + done: false +>done : boolean, Symbol(done, Decl(iterableArrayPattern12.ts, 7, 27)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern12.ts, 3, 27)) + } +} diff --git a/tests/baselines/reference/iterableArrayPattern13.js b/tests/baselines/reference/iterableArrayPattern13.js new file mode 100644 index 00000000000..06f9901a851 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern13.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern13.ts] +function fun([a, ...b]) { } +fun(new FooIterator); +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern13.js] +function fun([a, ...b]) { } +fun(new FooIterator); +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern13.types b/tests/baselines/reference/iterableArrayPattern13.types new file mode 100644 index 00000000000..0f493780c80 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern13.types @@ -0,0 +1,51 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern13.ts === +function fun([a, ...b]) { } +>fun : ([a, ...b]: Iterable) => void, Symbol(fun, Decl(iterableArrayPattern13.ts, 0, 0)) +>a : any, Symbol(a, Decl(iterableArrayPattern13.ts, 0, 14)) +>b : any[], Symbol(b, Decl(iterableArrayPattern13.ts, 0, 16)) + +fun(new FooIterator); +>fun(new FooIterator) : void +>fun : ([a, ...b]: Iterable) => void, Symbol(fun, Decl(iterableArrayPattern13.ts, 0, 0)) +>new FooIterator : FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern13.ts, 3, 27)) + +class Bar { x } +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern13.ts, 1, 21)) +>x : any, Symbol(x, Decl(iterableArrayPattern13.ts, 2, 11)) + +class Foo extends Bar { y } +>Foo : Foo, Symbol(Foo, Decl(iterableArrayPattern13.ts, 2, 15)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern13.ts, 1, 21)) +>y : any, Symbol(y, Decl(iterableArrayPattern13.ts, 3, 23)) + +class FooIterator { +>FooIterator : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern13.ts, 3, 27)) + + next() { +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(iterableArrayPattern13.ts, 4, 19)) + + return { +>{ value: new Foo, done: false } : { value: Foo; done: boolean; } + + value: new Foo, +>value : Foo, Symbol(value, Decl(iterableArrayPattern13.ts, 6, 16)) +>new Foo : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(iterableArrayPattern13.ts, 2, 15)) + + done: false +>done : boolean, Symbol(done, Decl(iterableArrayPattern13.ts, 7, 27)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern13.ts, 3, 27)) + } +} diff --git a/tests/baselines/reference/iterableArrayPattern14.js b/tests/baselines/reference/iterableArrayPattern14.js new file mode 100644 index 00000000000..a3595b0df0c --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern14.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern14.ts] +function fun(...[a, ...b]) { } +fun(new FooIterator); +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern14.js] +function fun(...[a, ...b]) { } +fun(new FooIterator); +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern14.types b/tests/baselines/reference/iterableArrayPattern14.types new file mode 100644 index 00000000000..cb4958f0427 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern14.types @@ -0,0 +1,51 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern14.ts === +function fun(...[a, ...b]) { } +>fun : (...[a, ...b]: any[]) => void, Symbol(fun, Decl(iterableArrayPattern14.ts, 0, 0)) +>a : any, Symbol(a, Decl(iterableArrayPattern14.ts, 0, 17)) +>b : any[], Symbol(b, Decl(iterableArrayPattern14.ts, 0, 19)) + +fun(new FooIterator); +>fun(new FooIterator) : void +>fun : (...[a, ...b]: any[]) => void, Symbol(fun, Decl(iterableArrayPattern14.ts, 0, 0)) +>new FooIterator : FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern14.ts, 3, 27)) + +class Bar { x } +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern14.ts, 1, 21)) +>x : any, Symbol(x, Decl(iterableArrayPattern14.ts, 2, 11)) + +class Foo extends Bar { y } +>Foo : Foo, Symbol(Foo, Decl(iterableArrayPattern14.ts, 2, 15)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern14.ts, 1, 21)) +>y : any, Symbol(y, Decl(iterableArrayPattern14.ts, 3, 23)) + +class FooIterator { +>FooIterator : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern14.ts, 3, 27)) + + next() { +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(iterableArrayPattern14.ts, 4, 19)) + + return { +>{ value: new Foo, done: false } : { value: Foo; done: boolean; } + + value: new Foo, +>value : Foo, Symbol(value, Decl(iterableArrayPattern14.ts, 6, 16)) +>new Foo : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(iterableArrayPattern14.ts, 2, 15)) + + done: false +>done : boolean, Symbol(done, Decl(iterableArrayPattern14.ts, 7, 27)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern14.ts, 3, 27)) + } +} diff --git a/tests/baselines/reference/iterableArrayPattern15.js b/tests/baselines/reference/iterableArrayPattern15.js new file mode 100644 index 00000000000..1c2050129ce --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern15.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern15.ts] +function fun(...[a, b]: Bar[]) { } +fun(...new FooIterator); +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern15.js] +function fun(...[a, b]) { } +fun(...new FooIterator); +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern15.types b/tests/baselines/reference/iterableArrayPattern15.types new file mode 100644 index 00000000000..f0b8473f77d --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern15.types @@ -0,0 +1,53 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern15.ts === +function fun(...[a, b]: Bar[]) { } +>fun : (...[a, b]: Bar[]) => void, Symbol(fun, Decl(iterableArrayPattern15.ts, 0, 0)) +>a : Bar, Symbol(a, Decl(iterableArrayPattern15.ts, 0, 17)) +>b : Bar, Symbol(b, Decl(iterableArrayPattern15.ts, 0, 19)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern15.ts, 1, 24)) + +fun(...new FooIterator); +>fun(...new FooIterator) : void +>fun : (...[a, b]: Bar[]) => void, Symbol(fun, Decl(iterableArrayPattern15.ts, 0, 0)) +>...new FooIterator : Foo +>new FooIterator : FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern15.ts, 3, 27)) + +class Bar { x } +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern15.ts, 1, 24)) +>x : any, Symbol(x, Decl(iterableArrayPattern15.ts, 2, 11)) + +class Foo extends Bar { y } +>Foo : Foo, Symbol(Foo, Decl(iterableArrayPattern15.ts, 2, 15)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern15.ts, 1, 24)) +>y : any, Symbol(y, Decl(iterableArrayPattern15.ts, 3, 23)) + +class FooIterator { +>FooIterator : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern15.ts, 3, 27)) + + next() { +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(iterableArrayPattern15.ts, 4, 19)) + + return { +>{ value: new Foo, done: false } : { value: Foo; done: boolean; } + + value: new Foo, +>value : Foo, Symbol(value, Decl(iterableArrayPattern15.ts, 6, 16)) +>new Foo : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(iterableArrayPattern15.ts, 2, 15)) + + done: false +>done : boolean, Symbol(done, Decl(iterableArrayPattern15.ts, 7, 27)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern15.ts, 3, 27)) + } +} diff --git a/tests/baselines/reference/iterableArrayPattern16.errors.txt b/tests/baselines/reference/iterableArrayPattern16.errors.txt new file mode 100644 index 00000000000..42236140be7 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern16.errors.txt @@ -0,0 +1,37 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern16.ts(2,5): error TS2345: Argument of type 'FooIterator' is not assignable to parameter of type '[Bar, Bar]'. + Property '0' is missing in type 'FooIterator'. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern16.ts (1 errors) ==== + function fun(...[a, b]: [Bar, Bar][]) { } + fun(...new FooIteratorIterator); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type 'FooIterator' is not assignable to parameter of type '[Bar, Bar]'. +!!! error TS2345: Property '0' is missing in type 'FooIterator'. + class Bar { x } + class Foo extends Bar { y } + class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } + + class FooIteratorIterator { + next() { + return { + value: new FooIterator, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern16.js b/tests/baselines/reference/iterableArrayPattern16.js new file mode 100644 index 00000000000..bda2ec37f63 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern16.js @@ -0,0 +1,60 @@ +//// [iterableArrayPattern16.ts] +function fun(...[a, b]: [Bar, Bar][]) { } +fun(...new FooIteratorIterator); +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +class FooIteratorIterator { + next() { + return { + value: new FooIterator, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern16.js] +function fun(...[a, b]) { } +fun(...new FooIteratorIterator); +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} +class FooIteratorIterator { + next() { + return { + value: new FooIterator, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern17.errors.txt b/tests/baselines/reference/iterableArrayPattern17.errors.txt new file mode 100644 index 00000000000..306b00ea990 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern17.errors.txt @@ -0,0 +1,24 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern17.ts(2,5): error TS2345: Argument of type 'FooIterator' is not assignable to parameter of type 'Bar'. + Property 'x' is missing in type 'FooIterator'. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern17.ts (1 errors) ==== + function fun(...[a, b]: Bar[]) { } + fun(new FooIterator); + ~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type 'FooIterator' is not assignable to parameter of type 'Bar'. +!!! error TS2345: Property 'x' is missing in type 'FooIterator'. + class Bar { x } + class Foo extends Bar { y } + class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern17.js b/tests/baselines/reference/iterableArrayPattern17.js new file mode 100644 index 00000000000..c6274aabcd9 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern17.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern17.ts] +function fun(...[a, b]: Bar[]) { } +fun(new FooIterator); +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern17.js] +function fun(...[a, b]) { } +fun(new FooIterator); +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern18.errors.txt b/tests/baselines/reference/iterableArrayPattern18.errors.txt new file mode 100644 index 00000000000..c6f8c5e28bd --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern18.errors.txt @@ -0,0 +1,24 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern18.ts(2,5): error TS2345: Argument of type 'FooIterator' is not assignable to parameter of type 'Bar[]'. + Property 'length' is missing in type 'FooIterator'. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern18.ts (1 errors) ==== + function fun([a, b]: Bar[]) { } + fun(new FooIterator); + ~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type 'FooIterator' is not assignable to parameter of type 'Bar[]'. +!!! error TS2345: Property 'length' is missing in type 'FooIterator'. + class Bar { x } + class Foo extends Bar { y } + class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern18.js b/tests/baselines/reference/iterableArrayPattern18.js new file mode 100644 index 00000000000..e2016c47690 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern18.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern18.ts] +function fun([a, b]: Bar[]) { } +fun(new FooIterator); +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern18.js] +function fun([a, b]) { } +fun(new FooIterator); +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern19.errors.txt b/tests/baselines/reference/iterableArrayPattern19.errors.txt new file mode 100644 index 00000000000..3f8b550d287 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern19.errors.txt @@ -0,0 +1,24 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern19.ts(2,5): error TS2345: Argument of type 'FooArrayIterator' is not assignable to parameter of type 'Bar[][]'. + Property 'length' is missing in type 'FooArrayIterator'. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern19.ts (1 errors) ==== + function fun([[a], b]: Bar[][]) { } + fun(new FooArrayIterator); + ~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type 'FooArrayIterator' is not assignable to parameter of type 'Bar[][]'. +!!! error TS2345: Property 'length' is missing in type 'FooArrayIterator'. + class Bar { x } + class Foo extends Bar { y } + class FooArrayIterator { + next() { + return { + value: [new Foo], + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern19.js b/tests/baselines/reference/iterableArrayPattern19.js new file mode 100644 index 00000000000..bc3cf33afc2 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern19.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern19.ts] +function fun([[a], b]: Bar[][]) { } +fun(new FooArrayIterator); +class Bar { x } +class Foo extends Bar { y } +class FooArrayIterator { + next() { + return { + value: [new Foo], + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern19.js] +function fun([[a], b]) { } +fun(new FooArrayIterator); +class Bar { +} +class Foo extends Bar { +} +class FooArrayIterator { + next() { + return { + value: [new Foo], + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern2.js b/tests/baselines/reference/iterableArrayPattern2.js new file mode 100644 index 00000000000..7392db7d6b2 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern2.js @@ -0,0 +1,28 @@ +//// [iterableArrayPattern2.ts] +var [a, ...b] = new SymbolIterator; +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern2.js] +var [a, ...b] = new SymbolIterator; +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern2.types b/tests/baselines/reference/iterableArrayPattern2.types new file mode 100644 index 00000000000..cd34b0e7e48 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern2.types @@ -0,0 +1,37 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern2.ts === +var [a, ...b] = new SymbolIterator; +>a : symbol, Symbol(a, Decl(iterableArrayPattern2.ts, 0, 5)) +>b : symbol[], Symbol(b, Decl(iterableArrayPattern2.ts, 0, 7)) +>new SymbolIterator : SymbolIterator +>SymbolIterator : typeof SymbolIterator, Symbol(SymbolIterator, Decl(iterableArrayPattern2.ts, 0, 35)) + +class SymbolIterator { +>SymbolIterator : SymbolIterator, Symbol(SymbolIterator, Decl(iterableArrayPattern2.ts, 0, 35)) + + next() { +>next : () => { value: symbol; done: boolean; }, Symbol(next, Decl(iterableArrayPattern2.ts, 1, 22)) + + return { +>{ value: Symbol(), done: false } : { value: symbol; done: boolean; } + + value: Symbol(), +>value : symbol, Symbol(value, Decl(iterableArrayPattern2.ts, 3, 16)) +>Symbol() : symbol +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) + + done: false +>done : boolean, Symbol(done, Decl(iterableArrayPattern2.ts, 4, 28)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : SymbolIterator, Symbol(SymbolIterator, Decl(iterableArrayPattern2.ts, 0, 35)) + } +} diff --git a/tests/baselines/reference/iterableArrayPattern20.js b/tests/baselines/reference/iterableArrayPattern20.js new file mode 100644 index 00000000000..489f97a29f3 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern20.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern20.ts] +function fun(...[[a = new Foo], b = [new Foo]]: Bar[][]) { } +fun(...new FooArrayIterator); +class Bar { x } +class Foo extends Bar { y } +class FooArrayIterator { + next() { + return { + value: [new Foo], + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern20.js] +function fun(...[[a = new Foo], b = [new Foo]]) { } +fun(...new FooArrayIterator); +class Bar { +} +class Foo extends Bar { +} +class FooArrayIterator { + next() { + return { + value: [new Foo], + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern20.types b/tests/baselines/reference/iterableArrayPattern20.types new file mode 100644 index 00000000000..43f24a20971 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern20.types @@ -0,0 +1,59 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern20.ts === +function fun(...[[a = new Foo], b = [new Foo]]: Bar[][]) { } +>fun : (...[[a = new Foo], b = [new Foo]]: Bar[][]) => void, Symbol(fun, Decl(iterableArrayPattern20.ts, 0, 0)) +>a : Bar, Symbol(a, Decl(iterableArrayPattern20.ts, 0, 18)) +>new Foo : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(iterableArrayPattern20.ts, 2, 15)) +>b : Bar[], Symbol(b, Decl(iterableArrayPattern20.ts, 0, 31)) +>[new Foo] : Foo[] +>new Foo : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(iterableArrayPattern20.ts, 2, 15)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern20.ts, 1, 29)) + +fun(...new FooArrayIterator); +>fun(...new FooArrayIterator) : void +>fun : (...[[a = new Foo], b = [new Foo]]: Bar[][]) => void, Symbol(fun, Decl(iterableArrayPattern20.ts, 0, 0)) +>...new FooArrayIterator : Foo[] +>new FooArrayIterator : FooArrayIterator +>FooArrayIterator : typeof FooArrayIterator, Symbol(FooArrayIterator, Decl(iterableArrayPattern20.ts, 3, 27)) + +class Bar { x } +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern20.ts, 1, 29)) +>x : any, Symbol(x, Decl(iterableArrayPattern20.ts, 2, 11)) + +class Foo extends Bar { y } +>Foo : Foo, Symbol(Foo, Decl(iterableArrayPattern20.ts, 2, 15)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern20.ts, 1, 29)) +>y : any, Symbol(y, Decl(iterableArrayPattern20.ts, 3, 23)) + +class FooArrayIterator { +>FooArrayIterator : FooArrayIterator, Symbol(FooArrayIterator, Decl(iterableArrayPattern20.ts, 3, 27)) + + next() { +>next : () => { value: Foo[]; done: boolean; }, Symbol(next, Decl(iterableArrayPattern20.ts, 4, 24)) + + return { +>{ value: [new Foo], done: false } : { value: Foo[]; done: boolean; } + + value: [new Foo], +>value : Foo[], Symbol(value, Decl(iterableArrayPattern20.ts, 6, 16)) +>[new Foo] : Foo[] +>new Foo : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(iterableArrayPattern20.ts, 2, 15)) + + done: false +>done : boolean, Symbol(done, Decl(iterableArrayPattern20.ts, 7, 29)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : FooArrayIterator, Symbol(FooArrayIterator, Decl(iterableArrayPattern20.ts, 3, 27)) + } +} diff --git a/tests/baselines/reference/iterableArrayPattern21.errors.txt b/tests/baselines/reference/iterableArrayPattern21.errors.txt new file mode 100644 index 00000000000..7e853c90b24 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern21.errors.txt @@ -0,0 +1,7 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern21.ts(1,5): error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern21.ts (1 errors) ==== + var [a, b] = { 0: "", 1: true }; + ~~~~~~ +!!! error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern21.js b/tests/baselines/reference/iterableArrayPattern21.js new file mode 100644 index 00000000000..bdc4d401e54 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern21.js @@ -0,0 +1,5 @@ +//// [iterableArrayPattern21.ts] +var [a, b] = { 0: "", 1: true }; + +//// [iterableArrayPattern21.js] +var [a, b] = { 0: "", 1: true }; diff --git a/tests/baselines/reference/iterableArrayPattern22.errors.txt b/tests/baselines/reference/iterableArrayPattern22.errors.txt new file mode 100644 index 00000000000..3e40e4fd602 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern22.errors.txt @@ -0,0 +1,7 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern22.ts(1,5): error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern22.ts (1 errors) ==== + var [...a] = { 0: "", 1: true }; + ~~~~~~ +!!! error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern22.js b/tests/baselines/reference/iterableArrayPattern22.js new file mode 100644 index 00000000000..9ec41bd3076 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern22.js @@ -0,0 +1,5 @@ +//// [iterableArrayPattern22.ts] +var [...a] = { 0: "", 1: true }; + +//// [iterableArrayPattern22.js] +var [...a] = { 0: "", 1: true }; diff --git a/tests/baselines/reference/iterableArrayPattern23.errors.txt b/tests/baselines/reference/iterableArrayPattern23.errors.txt new file mode 100644 index 00000000000..1df5d909aed --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern23.errors.txt @@ -0,0 +1,8 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern23.ts(2,1): error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern23.ts (1 errors) ==== + var a: string, b: boolean; + [a, b] = { 0: "", 1: true }; + ~~~~~~ +!!! error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern23.js b/tests/baselines/reference/iterableArrayPattern23.js new file mode 100644 index 00000000000..d932c29506d --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern23.js @@ -0,0 +1,7 @@ +//// [iterableArrayPattern23.ts] +var a: string, b: boolean; +[a, b] = { 0: "", 1: true }; + +//// [iterableArrayPattern23.js] +var a, b; +[a, b] = { 0: "", 1: true }; diff --git a/tests/baselines/reference/iterableArrayPattern24.errors.txt b/tests/baselines/reference/iterableArrayPattern24.errors.txt new file mode 100644 index 00000000000..e954c59f2ea --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern24.errors.txt @@ -0,0 +1,8 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern24.ts(2,1): error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern24.ts (1 errors) ==== + var a: string, b: boolean[]; + [a, ...b] = { 0: "", 1: true }; + ~~~~~~~~~ +!!! error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern24.js b/tests/baselines/reference/iterableArrayPattern24.js new file mode 100644 index 00000000000..f089e35dad8 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern24.js @@ -0,0 +1,7 @@ +//// [iterableArrayPattern24.ts] +var a: string, b: boolean[]; +[a, ...b] = { 0: "", 1: true }; + +//// [iterableArrayPattern24.js] +var a, b; +[a, ...b] = { 0: "", 1: true }; diff --git a/tests/baselines/reference/iterableArrayPattern25.errors.txt b/tests/baselines/reference/iterableArrayPattern25.errors.txt new file mode 100644 index 00000000000..cc901523b55 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern25.errors.txt @@ -0,0 +1,8 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts(1,30): error TS2370: A rest parameter must be of an array type. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts (1 errors) ==== + function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { } + ~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2370: A rest parameter must be of an array type. + takeFirstTwoEntries(new Map([["", 0], ["hello", 1]])); \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern25.js b/tests/baselines/reference/iterableArrayPattern25.js new file mode 100644 index 00000000000..1dc44c0dba7 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern25.js @@ -0,0 +1,7 @@ +//// [iterableArrayPattern25.ts] +function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { } +takeFirstTwoEntries(new Map([["", 0], ["hello", 1]])); + +//// [iterableArrayPattern25.js] +function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { } +takeFirstTwoEntries(new Map([["", 0], ["hello", 1]])); diff --git a/tests/baselines/reference/iterableArrayPattern26.errors.txt b/tests/baselines/reference/iterableArrayPattern26.errors.txt new file mode 100644 index 00000000000..9fb3e688039 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern26.errors.txt @@ -0,0 +1,10 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern26.ts(2,21): error TS2345: Argument of type 'Map' is not assignable to parameter of type '[string, number]'. + Property '0' is missing in type 'Map'. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern26.ts (1 errors) ==== + function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { } + takeFirstTwoEntries(new Map([["", 0], ["hello", 1]])); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type 'Map' is not assignable to parameter of type '[string, number]'. +!!! error TS2345: Property '0' is missing in type 'Map'. \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern26.js b/tests/baselines/reference/iterableArrayPattern26.js new file mode 100644 index 00000000000..63c188febb7 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern26.js @@ -0,0 +1,7 @@ +//// [iterableArrayPattern26.ts] +function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { } +takeFirstTwoEntries(new Map([["", 0], ["hello", 1]])); + +//// [iterableArrayPattern26.js] +function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { } +takeFirstTwoEntries(new Map([["", 0], ["hello", 1]])); diff --git a/tests/baselines/reference/iterableArrayPattern27.js b/tests/baselines/reference/iterableArrayPattern27.js new file mode 100644 index 00000000000..3e936eb51f4 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern27.js @@ -0,0 +1,7 @@ +//// [iterableArrayPattern27.ts] +function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { } +takeFirstTwoEntries(...new Map([["", 0], ["hello", 1]])); + +//// [iterableArrayPattern27.js] +function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { } +takeFirstTwoEntries(...new Map([["", 0], ["hello", 1]])); diff --git a/tests/baselines/reference/iterableArrayPattern27.types b/tests/baselines/reference/iterableArrayPattern27.types new file mode 100644 index 00000000000..838d222232c --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern27.types @@ -0,0 +1,22 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern27.ts === +function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { } +>takeFirstTwoEntries : (...[[k1, v1], [k2, v2]]: [string, number][]) => void, Symbol(takeFirstTwoEntries, Decl(iterableArrayPattern27.ts, 0, 0)) +>k1 : string, Symbol(k1, Decl(iterableArrayPattern27.ts, 0, 34)) +>v1 : number, Symbol(v1, Decl(iterableArrayPattern27.ts, 0, 37)) +>k2 : string, Symbol(k2, Decl(iterableArrayPattern27.ts, 0, 44)) +>v2 : number, Symbol(v2, Decl(iterableArrayPattern27.ts, 0, 47)) + +takeFirstTwoEntries(...new Map([["", 0], ["hello", 1]])); +>takeFirstTwoEntries(...new Map([["", 0], ["hello", 1]])) : void +>takeFirstTwoEntries : (...[[k1, v1], [k2, v2]]: [string, number][]) => void, Symbol(takeFirstTwoEntries, Decl(iterableArrayPattern27.ts, 0, 0)) +>...new Map([["", 0], ["hello", 1]]) : [string, number] +>new Map([["", 0], ["hello", 1]]) : Map +>Map : MapConstructor, Symbol(Map, Decl(lib.d.ts, 1837, 1), Decl(lib.d.ts, 1859, 11)) +>[["", 0], ["hello", 1]] : [string, number][] +>["", 0] : [string, number] +>"" : string +>0 : number +>["hello", 1] : [string, number] +>"hello" : string +>1 : number + diff --git a/tests/baselines/reference/iterableArrayPattern28.errors.txt b/tests/baselines/reference/iterableArrayPattern28.errors.txt new file mode 100644 index 00000000000..0190dd939e8 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern28.errors.txt @@ -0,0 +1,10 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern28.ts(2,28): error TS2453: The type argument for type parameter 'V' cannot be inferred from the usage. Consider specifying the type arguments explicitly. + Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'boolean'. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern28.ts (1 errors) ==== + function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { } + takeFirstTwoEntries(...new Map([["", 0], ["hello", true]])); + ~~~ +!!! error TS2453: The type argument for type parameter 'V' cannot be inferred from the usage. Consider specifying the type arguments explicitly. +!!! error TS2453: Type argument candidate 'number' is not a valid type argument because it is not a supertype of candidate 'boolean'. \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern28.js b/tests/baselines/reference/iterableArrayPattern28.js new file mode 100644 index 00000000000..70953475372 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern28.js @@ -0,0 +1,7 @@ +//// [iterableArrayPattern28.ts] +function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { } +takeFirstTwoEntries(...new Map([["", 0], ["hello", true]])); + +//// [iterableArrayPattern28.js] +function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { } +takeFirstTwoEntries(...new Map([["", 0], ["hello", true]])); diff --git a/tests/baselines/reference/iterableArrayPattern29.errors.txt b/tests/baselines/reference/iterableArrayPattern29.errors.txt new file mode 100644 index 00000000000..632854ae952 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern29.errors.txt @@ -0,0 +1,12 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern29.ts(2,21): error TS2345: Argument of type '[string, boolean]' is not assignable to parameter of type '[string, number]'. + Types of property '1' are incompatible. + Type 'boolean' is not assignable to type 'number'. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern29.ts (1 errors) ==== + function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { } + takeFirstTwoEntries(...new Map([["", true], ["hello", true]])); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type '[string, boolean]' is not assignable to parameter of type '[string, number]'. +!!! error TS2345: Types of property '1' are incompatible. +!!! error TS2345: Type 'boolean' is not assignable to type 'number'. \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern29.js b/tests/baselines/reference/iterableArrayPattern29.js new file mode 100644 index 00000000000..912d336263f --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern29.js @@ -0,0 +1,7 @@ +//// [iterableArrayPattern29.ts] +function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { } +takeFirstTwoEntries(...new Map([["", true], ["hello", true]])); + +//// [iterableArrayPattern29.js] +function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { } +takeFirstTwoEntries(...new Map([["", true], ["hello", true]])); diff --git a/tests/baselines/reference/iterableArrayPattern3.js b/tests/baselines/reference/iterableArrayPattern3.js new file mode 100644 index 00000000000..7136c6ab209 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern3.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern3.ts] +var a: Bar, b: Bar; +[a, b] = new FooIterator; +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern3.js] +var a, b; +[a, b] = new FooIterator; +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern3.types b/tests/baselines/reference/iterableArrayPattern3.types new file mode 100644 index 00000000000..c31d90b8d43 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern3.types @@ -0,0 +1,54 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern3.ts === +var a: Bar, b: Bar; +>a : Bar, Symbol(a, Decl(iterableArrayPattern3.ts, 0, 3)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern3.ts, 1, 25)) +>b : Bar, Symbol(b, Decl(iterableArrayPattern3.ts, 0, 11)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern3.ts, 1, 25)) + +[a, b] = new FooIterator; +>[a, b] = new FooIterator : FooIterator +>[a, b] : [Bar, Bar] +>a : Bar, Symbol(a, Decl(iterableArrayPattern3.ts, 0, 3)) +>b : Bar, Symbol(b, Decl(iterableArrayPattern3.ts, 0, 11)) +>new FooIterator : FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern3.ts, 3, 27)) + +class Bar { x } +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern3.ts, 1, 25)) +>x : any, Symbol(x, Decl(iterableArrayPattern3.ts, 2, 11)) + +class Foo extends Bar { y } +>Foo : Foo, Symbol(Foo, Decl(iterableArrayPattern3.ts, 2, 15)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern3.ts, 1, 25)) +>y : any, Symbol(y, Decl(iterableArrayPattern3.ts, 3, 23)) + +class FooIterator { +>FooIterator : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern3.ts, 3, 27)) + + next() { +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(iterableArrayPattern3.ts, 4, 19)) + + return { +>{ value: new Foo, done: false } : { value: Foo; done: boolean; } + + value: new Foo, +>value : Foo, Symbol(value, Decl(iterableArrayPattern3.ts, 6, 16)) +>new Foo : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(iterableArrayPattern3.ts, 2, 15)) + + done: false +>done : boolean, Symbol(done, Decl(iterableArrayPattern3.ts, 7, 27)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern3.ts, 3, 27)) + } +} diff --git a/tests/baselines/reference/iterableArrayPattern30.js b/tests/baselines/reference/iterableArrayPattern30.js new file mode 100644 index 00000000000..10f7df53aa3 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern30.js @@ -0,0 +1,5 @@ +//// [iterableArrayPattern30.ts] +const [[k1, v1], [k2, v2]] = new Map([["", true], ["hello", true]]) + +//// [iterableArrayPattern30.js] +const [[k1, v1], [k2, v2]] = new Map([["", true], ["hello", true]]); diff --git a/tests/baselines/reference/iterableArrayPattern30.types b/tests/baselines/reference/iterableArrayPattern30.types new file mode 100644 index 00000000000..f2bb8e3563f --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern30.types @@ -0,0 +1,16 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern30.ts === +const [[k1, v1], [k2, v2]] = new Map([["", true], ["hello", true]]) +>k1 : string, Symbol(k1, Decl(iterableArrayPattern30.ts, 0, 8)) +>v1 : boolean, Symbol(v1, Decl(iterableArrayPattern30.ts, 0, 11)) +>k2 : string, Symbol(k2, Decl(iterableArrayPattern30.ts, 0, 18)) +>v2 : boolean, Symbol(v2, Decl(iterableArrayPattern30.ts, 0, 21)) +>new Map([["", true], ["hello", true]]) : Map +>Map : MapConstructor, Symbol(Map, Decl(lib.d.ts, 1837, 1), Decl(lib.d.ts, 1859, 11)) +>[["", true], ["hello", true]] : [string, boolean][] +>["", true] : [string, boolean] +>"" : string +>true : boolean +>["hello", true] : [string, boolean] +>"hello" : string +>true : boolean + diff --git a/tests/baselines/reference/iterableArrayPattern4.js b/tests/baselines/reference/iterableArrayPattern4.js new file mode 100644 index 00000000000..6e60dadbd7a --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern4.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern4.ts] +var a: Bar, b: Bar[]; +[a, ...b] = new FooIterator; +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern4.js] +var a, b; +[a, ...b] = new FooIterator; +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern4.types b/tests/baselines/reference/iterableArrayPattern4.types new file mode 100644 index 00000000000..c0b797d65d7 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern4.types @@ -0,0 +1,55 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern4.ts === +var a: Bar, b: Bar[]; +>a : Bar, Symbol(a, Decl(iterableArrayPattern4.ts, 0, 3)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern4.ts, 1, 28)) +>b : Bar[], Symbol(b, Decl(iterableArrayPattern4.ts, 0, 11)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern4.ts, 1, 28)) + +[a, ...b] = new FooIterator; +>[a, ...b] = new FooIterator : FooIterator +>[a, ...b] : Bar[] +>a : Bar, Symbol(a, Decl(iterableArrayPattern4.ts, 0, 3)) +>...b : Bar +>b : Bar[], Symbol(b, Decl(iterableArrayPattern4.ts, 0, 11)) +>new FooIterator : FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern4.ts, 3, 27)) + +class Bar { x } +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern4.ts, 1, 28)) +>x : any, Symbol(x, Decl(iterableArrayPattern4.ts, 2, 11)) + +class Foo extends Bar { y } +>Foo : Foo, Symbol(Foo, Decl(iterableArrayPattern4.ts, 2, 15)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern4.ts, 1, 28)) +>y : any, Symbol(y, Decl(iterableArrayPattern4.ts, 3, 23)) + +class FooIterator { +>FooIterator : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern4.ts, 3, 27)) + + next() { +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(iterableArrayPattern4.ts, 4, 19)) + + return { +>{ value: new Foo, done: false } : { value: Foo; done: boolean; } + + value: new Foo, +>value : Foo, Symbol(value, Decl(iterableArrayPattern4.ts, 6, 16)) +>new Foo : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(iterableArrayPattern4.ts, 2, 15)) + + done: false +>done : boolean, Symbol(done, Decl(iterableArrayPattern4.ts, 7, 27)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern4.ts, 3, 27)) + } +} diff --git a/tests/baselines/reference/iterableArrayPattern5.errors.txt b/tests/baselines/reference/iterableArrayPattern5.errors.txt new file mode 100644 index 00000000000..ca540d805be --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern5.errors.txt @@ -0,0 +1,22 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern5.ts(2,5): error TS2322: Type 'Foo' is not assignable to type 'string'. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern5.ts (1 errors) ==== + var a: Bar, b: string; + [a, b] = new FooIterator; + ~ +!!! error TS2322: Type 'Foo' is not assignable to type 'string'. + class Bar { x } + class Foo extends Bar { y } + class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern5.js b/tests/baselines/reference/iterableArrayPattern5.js new file mode 100644 index 00000000000..77e71cac6d3 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern5.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern5.ts] +var a: Bar, b: string; +[a, b] = new FooIterator; +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern5.js] +var a, b; +[a, b] = new FooIterator; +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern6.errors.txt b/tests/baselines/reference/iterableArrayPattern6.errors.txt new file mode 100644 index 00000000000..e0a546d154c --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern6.errors.txt @@ -0,0 +1,24 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern6.ts(2,8): error TS2322: Type 'Foo[]' is not assignable to type 'string[]'. + Type 'Foo' is not assignable to type 'string'. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern6.ts (1 errors) ==== + var a: Bar, b: string[]; + [a, ...b] = new FooIterator; + ~ +!!! error TS2322: Type 'Foo[]' is not assignable to type 'string[]'. +!!! error TS2322: Type 'Foo' is not assignable to type 'string'. + class Bar { x } + class Foo extends Bar { y } + class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern6.js b/tests/baselines/reference/iterableArrayPattern6.js new file mode 100644 index 00000000000..8c797e819f5 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern6.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern6.ts] +var a: Bar, b: string[]; +[a, ...b] = new FooIterator; +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern6.js] +var a, b; +[a, ...b] = new FooIterator; +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern7.errors.txt b/tests/baselines/reference/iterableArrayPattern7.errors.txt new file mode 100644 index 00000000000..997cc21f38b --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern7.errors.txt @@ -0,0 +1,24 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern7.ts(2,5): error TS2322: Type 'Foo' is not assignable to type 'string[]'. + Property 'length' is missing in type 'Foo'. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern7.ts (1 errors) ==== + var a: Bar, b: string[]; + [a, b] = new FooIterator; + ~ +!!! error TS2322: Type 'Foo' is not assignable to type 'string[]'. +!!! error TS2322: Property 'length' is missing in type 'Foo'. + class Bar { x } + class Foo extends Bar { y } + class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern7.js b/tests/baselines/reference/iterableArrayPattern7.js new file mode 100644 index 00000000000..3f79e6bfba8 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern7.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern7.ts] +var a: Bar, b: string[]; +[a, b] = new FooIterator; +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern7.js] +var a, b; +[a, b] = new FooIterator; +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern8.errors.txt b/tests/baselines/reference/iterableArrayPattern8.errors.txt new file mode 100644 index 00000000000..c06e0c9543f --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern8.errors.txt @@ -0,0 +1,22 @@ +tests/cases/conformance/es6/destructuring/iterableArrayPattern8.ts(2,8): error TS2322: Type 'Foo[]' is not assignable to type 'string'. + + +==== tests/cases/conformance/es6/destructuring/iterableArrayPattern8.ts (1 errors) ==== + var a: Bar, b: string; + [a, ...b] = new FooIterator; + ~ +!!! error TS2322: Type 'Foo[]' is not assignable to type 'string'. + class Bar { x } + class Foo extends Bar { y } + class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iterableArrayPattern8.js b/tests/baselines/reference/iterableArrayPattern8.js new file mode 100644 index 00000000000..dd1c76c1f51 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern8.js @@ -0,0 +1,36 @@ +//// [iterableArrayPattern8.ts] +var a: Bar, b: string; +[a, ...b] = new FooIterator; +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern8.js] +var a, b; +[a, ...b] = new FooIterator; +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern9.js b/tests/baselines/reference/iterableArrayPattern9.js new file mode 100644 index 00000000000..a85ca9c347b --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern9.js @@ -0,0 +1,34 @@ +//// [iterableArrayPattern9.ts] +function fun([a, b] = new FooIterator) { } +class Bar { x } +class Foo extends Bar { y } +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iterableArrayPattern9.js] +function fun([a, b] = new FooIterator) { } +class Bar { +} +class Foo extends Bar { +} +class FooIterator { + next() { + return { + value: new Foo, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iterableArrayPattern9.types b/tests/baselines/reference/iterableArrayPattern9.types new file mode 100644 index 00000000000..028319c86c7 --- /dev/null +++ b/tests/baselines/reference/iterableArrayPattern9.types @@ -0,0 +1,47 @@ +=== tests/cases/conformance/es6/destructuring/iterableArrayPattern9.ts === +function fun([a, b] = new FooIterator) { } +>fun : ([a, b]?: FooIterator) => void, Symbol(fun, Decl(iterableArrayPattern9.ts, 0, 0)) +>a : Foo, Symbol(a, Decl(iterableArrayPattern9.ts, 0, 14)) +>b : Foo, Symbol(b, Decl(iterableArrayPattern9.ts, 0, 16)) +>new FooIterator : FooIterator +>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern9.ts, 2, 27)) + +class Bar { x } +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern9.ts, 0, 42)) +>x : any, Symbol(x, Decl(iterableArrayPattern9.ts, 1, 11)) + +class Foo extends Bar { y } +>Foo : Foo, Symbol(Foo, Decl(iterableArrayPattern9.ts, 1, 15)) +>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern9.ts, 0, 42)) +>y : any, Symbol(y, Decl(iterableArrayPattern9.ts, 2, 23)) + +class FooIterator { +>FooIterator : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern9.ts, 2, 27)) + + next() { +>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(iterableArrayPattern9.ts, 3, 19)) + + return { +>{ value: new Foo, done: false } : { value: Foo; done: boolean; } + + value: new Foo, +>value : Foo, Symbol(value, Decl(iterableArrayPattern9.ts, 5, 16)) +>new Foo : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(iterableArrayPattern9.ts, 1, 15)) + + done: false +>done : boolean, Symbol(done, Decl(iterableArrayPattern9.ts, 6, 27)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern9.ts, 2, 27)) + } +} diff --git a/tests/baselines/reference/iterableContextualTyping1.types b/tests/baselines/reference/iterableContextualTyping1.types index 386d64312fc..ed348f835ac 100644 --- a/tests/baselines/reference/iterableContextualTyping1.types +++ b/tests/baselines/reference/iterableContextualTyping1.types @@ -1,12 +1,12 @@ === tests/cases/conformance/expressions/contextualTyping/iterableContextualTyping1.ts === var iter: Iterable<(x: string) => number> = [s => s.length]; ->iter : Iterable<(x: string) => number> ->Iterable : Iterable ->x : string +>iter : Iterable<(x: string) => number>, Symbol(iter, Decl(iterableContextualTyping1.ts, 0, 3)) +>Iterable : Iterable, Symbol(Iterable, Decl(lib.d.ts, 1633, 1)) +>x : string, Symbol(x, Decl(iterableContextualTyping1.ts, 0, 20)) >[s => s.length] : ((s: string) => number)[] >s => s.length : (s: string) => number ->s : string ->s.length : number ->s : string ->length : number +>s : string, Symbol(s, Decl(iterableContextualTyping1.ts, 0, 45)) +>s.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>s : string, Symbol(s, Decl(iterableContextualTyping1.ts, 0, 45)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) diff --git a/tests/baselines/reference/iteratorSpreadInArray.js b/tests/baselines/reference/iteratorSpreadInArray.js new file mode 100644 index 00000000000..8e25a2e7ecf --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray.js @@ -0,0 +1,29 @@ +//// [iteratorSpreadInArray.ts] +var array = [...new SymbolIterator]; + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInArray.js] +var array = [...new SymbolIterator]; +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray.types b/tests/baselines/reference/iteratorSpreadInArray.types new file mode 100644 index 00000000000..47e54de03d1 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray.types @@ -0,0 +1,38 @@ +=== tests/cases/conformance/es6/spread/iteratorSpreadInArray.ts === +var array = [...new SymbolIterator]; +>array : symbol[], Symbol(array, Decl(iteratorSpreadInArray.ts, 0, 3)) +>[...new SymbolIterator] : symbol[] +>...new SymbolIterator : symbol +>new SymbolIterator : SymbolIterator +>SymbolIterator : typeof SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray.ts, 0, 36)) + +class SymbolIterator { +>SymbolIterator : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray.ts, 0, 36)) + + next() { +>next : () => { value: symbol; done: boolean; }, Symbol(next, Decl(iteratorSpreadInArray.ts, 2, 22)) + + return { +>{ value: Symbol(), done: false } : { value: symbol; done: boolean; } + + value: Symbol(), +>value : symbol, Symbol(value, Decl(iteratorSpreadInArray.ts, 4, 16)) +>Symbol() : symbol +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) + + done: false +>done : boolean, Symbol(done, Decl(iteratorSpreadInArray.ts, 5, 28)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray.ts, 0, 36)) + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray10.errors.txt b/tests/baselines/reference/iteratorSpreadInArray10.errors.txt new file mode 100644 index 00000000000..90cde7d03b1 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray10.errors.txt @@ -0,0 +1,13 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInArray10.ts(1,17): error TS2489: An iterator must have a 'next()' method. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInArray10.ts (1 errors) ==== + var array = [...new SymbolIterator]; + ~~~~~~~~~~~~~~~~~~ +!!! error TS2489: An iterator must have a 'next()' method. + + class SymbolIterator { + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInArray10.js b/tests/baselines/reference/iteratorSpreadInArray10.js new file mode 100644 index 00000000000..1004dbd7b34 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray10.js @@ -0,0 +1,16 @@ +//// [iteratorSpreadInArray10.ts] +var array = [...new SymbolIterator]; + +class SymbolIterator { + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInArray10.js] +var array = [...new SymbolIterator]; +class SymbolIterator { + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray11.js b/tests/baselines/reference/iteratorSpreadInArray11.js new file mode 100644 index 00000000000..fa86c152123 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray11.js @@ -0,0 +1,7 @@ +//// [iteratorSpreadInArray11.ts] +var iter: Iterable; +var array = [...iter]; + +//// [iteratorSpreadInArray11.js] +var iter; +var array = [...iter]; diff --git a/tests/baselines/reference/iteratorSpreadInArray11.types b/tests/baselines/reference/iteratorSpreadInArray11.types new file mode 100644 index 00000000000..77ea247f7b2 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray11.types @@ -0,0 +1,11 @@ +=== tests/cases/conformance/es6/spread/iteratorSpreadInArray11.ts === +var iter: Iterable; +>iter : Iterable, Symbol(iter, Decl(iteratorSpreadInArray11.ts, 0, 3)) +>Iterable : Iterable, Symbol(Iterable, Decl(lib.d.ts, 1633, 1)) + +var array = [...iter]; +>array : number[], Symbol(array, Decl(iteratorSpreadInArray11.ts, 1, 3)) +>[...iter] : number[] +>...iter : number +>iter : Iterable, Symbol(iter, Decl(iteratorSpreadInArray11.ts, 0, 3)) + diff --git a/tests/baselines/reference/iteratorSpreadInArray2.js b/tests/baselines/reference/iteratorSpreadInArray2.js new file mode 100644 index 00000000000..aa4a1099a40 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray2.js @@ -0,0 +1,53 @@ +//// [iteratorSpreadInArray2.ts] +var array = [...new NumberIterator, ...new SymbolIterator]; + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +class NumberIterator { + next() { + return { + value: 0, + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInArray2.js] +var array = [...new NumberIterator, ...new SymbolIterator]; +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} +class NumberIterator { + next() { + return { + value: 0, + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray2.types b/tests/baselines/reference/iteratorSpreadInArray2.types new file mode 100644 index 00000000000..7398199f23c --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray2.types @@ -0,0 +1,71 @@ +=== tests/cases/conformance/es6/spread/iteratorSpreadInArray2.ts === +var array = [...new NumberIterator, ...new SymbolIterator]; +>array : (number | symbol)[], Symbol(array, Decl(iteratorSpreadInArray2.ts, 0, 3)) +>[...new NumberIterator, ...new SymbolIterator] : (number | symbol)[] +>...new NumberIterator : number +>new NumberIterator : NumberIterator +>NumberIterator : typeof NumberIterator, Symbol(NumberIterator, Decl(iteratorSpreadInArray2.ts, 13, 1)) +>...new SymbolIterator : symbol +>new SymbolIterator : SymbolIterator +>SymbolIterator : typeof SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray2.ts, 0, 59)) + +class SymbolIterator { +>SymbolIterator : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray2.ts, 0, 59)) + + next() { +>next : () => { value: symbol; done: boolean; }, Symbol(next, Decl(iteratorSpreadInArray2.ts, 2, 22)) + + return { +>{ value: Symbol(), done: false } : { value: symbol; done: boolean; } + + value: Symbol(), +>value : symbol, Symbol(value, Decl(iteratorSpreadInArray2.ts, 4, 16)) +>Symbol() : symbol +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) + + done: false +>done : boolean, Symbol(done, Decl(iteratorSpreadInArray2.ts, 5, 28)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray2.ts, 0, 59)) + } +} + +class NumberIterator { +>NumberIterator : NumberIterator, Symbol(NumberIterator, Decl(iteratorSpreadInArray2.ts, 13, 1)) + + next() { +>next : () => { value: number; done: boolean; }, Symbol(next, Decl(iteratorSpreadInArray2.ts, 15, 22)) + + return { +>{ value: 0, done: false } : { value: number; done: boolean; } + + value: 0, +>value : number, Symbol(value, Decl(iteratorSpreadInArray2.ts, 17, 16)) +>0 : number + + done: false +>done : boolean, Symbol(done, Decl(iteratorSpreadInArray2.ts, 18, 21)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : NumberIterator, Symbol(NumberIterator, Decl(iteratorSpreadInArray2.ts, 13, 1)) + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray3.js b/tests/baselines/reference/iteratorSpreadInArray3.js new file mode 100644 index 00000000000..1d468e4483e --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray3.js @@ -0,0 +1,29 @@ +//// [iteratorSpreadInArray3.ts] +var array = [...[0, 1], ...new SymbolIterator]; + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInArray3.js] +var array = [...[0, 1], ...new SymbolIterator]; +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray3.types b/tests/baselines/reference/iteratorSpreadInArray3.types new file mode 100644 index 00000000000..d18a553ac49 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray3.types @@ -0,0 +1,42 @@ +=== tests/cases/conformance/es6/spread/iteratorSpreadInArray3.ts === +var array = [...[0, 1], ...new SymbolIterator]; +>array : (number | symbol)[], Symbol(array, Decl(iteratorSpreadInArray3.ts, 0, 3)) +>[...[0, 1], ...new SymbolIterator] : (number | symbol)[] +>...[0, 1] : number +>[0, 1] : number[] +>0 : number +>1 : number +>...new SymbolIterator : symbol +>new SymbolIterator : SymbolIterator +>SymbolIterator : typeof SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray3.ts, 0, 47)) + +class SymbolIterator { +>SymbolIterator : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray3.ts, 0, 47)) + + next() { +>next : () => { value: symbol; done: boolean; }, Symbol(next, Decl(iteratorSpreadInArray3.ts, 2, 22)) + + return { +>{ value: Symbol(), done: false } : { value: symbol; done: boolean; } + + value: Symbol(), +>value : symbol, Symbol(value, Decl(iteratorSpreadInArray3.ts, 4, 16)) +>Symbol() : symbol +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) + + done: false +>done : boolean, Symbol(done, Decl(iteratorSpreadInArray3.ts, 5, 28)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray3.ts, 0, 47)) + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray4.js b/tests/baselines/reference/iteratorSpreadInArray4.js new file mode 100644 index 00000000000..82a08bfa964 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray4.js @@ -0,0 +1,29 @@ +//// [iteratorSpreadInArray4.ts] +var array = [0, 1, ...new SymbolIterator]; + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInArray4.js] +var array = [0, 1, ...new SymbolIterator]; +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray4.types b/tests/baselines/reference/iteratorSpreadInArray4.types new file mode 100644 index 00000000000..b8e87f4adb2 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray4.types @@ -0,0 +1,40 @@ +=== tests/cases/conformance/es6/spread/iteratorSpreadInArray4.ts === +var array = [0, 1, ...new SymbolIterator]; +>array : (number | symbol)[], Symbol(array, Decl(iteratorSpreadInArray4.ts, 0, 3)) +>[0, 1, ...new SymbolIterator] : (number | symbol)[] +>0 : number +>1 : number +>...new SymbolIterator : symbol +>new SymbolIterator : SymbolIterator +>SymbolIterator : typeof SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray4.ts, 0, 42)) + +class SymbolIterator { +>SymbolIterator : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray4.ts, 0, 42)) + + next() { +>next : () => { value: symbol; done: boolean; }, Symbol(next, Decl(iteratorSpreadInArray4.ts, 2, 22)) + + return { +>{ value: Symbol(), done: false } : { value: symbol; done: boolean; } + + value: Symbol(), +>value : symbol, Symbol(value, Decl(iteratorSpreadInArray4.ts, 4, 16)) +>Symbol() : symbol +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) + + done: false +>done : boolean, Symbol(done, Decl(iteratorSpreadInArray4.ts, 5, 28)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray4.ts, 0, 42)) + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray5.errors.txt b/tests/baselines/reference/iteratorSpreadInArray5.errors.txt new file mode 100644 index 00000000000..498cc7d48ef --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray5.errors.txt @@ -0,0 +1,24 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInArray5.ts(1,5): error TS2322: Type '(number | symbol)[]' is not assignable to type 'number[]'. + Type 'number | symbol' is not assignable to type 'number'. + Type 'symbol' is not assignable to type 'number'. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInArray5.ts (1 errors) ==== + var array: number[] = [0, 1, ...new SymbolIterator]; + ~~~~~ +!!! error TS2322: Type '(number | symbol)[]' is not assignable to type 'number[]'. +!!! error TS2322: Type 'number | symbol' is not assignable to type 'number'. +!!! error TS2322: Type 'symbol' is not assignable to type 'number'. + + class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInArray5.js b/tests/baselines/reference/iteratorSpreadInArray5.js new file mode 100644 index 00000000000..0aa158a5dc2 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray5.js @@ -0,0 +1,29 @@ +//// [iteratorSpreadInArray5.ts] +var array: number[] = [0, 1, ...new SymbolIterator]; + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInArray5.js] +var array = [0, 1, ...new SymbolIterator]; +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray6.errors.txt b/tests/baselines/reference/iteratorSpreadInArray6.errors.txt new file mode 100644 index 00000000000..b90ac5f203c --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray6.errors.txt @@ -0,0 +1,21 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInArray6.ts(2,14): error TS2345: Argument of type 'symbol[]' is not assignable to parameter of type 'number'. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInArray6.ts (1 errors) ==== + var array: number[] = [0, 1]; + array.concat([...new SymbolIterator]); + ~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type 'symbol[]' is not assignable to parameter of type 'number'. + + class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInArray6.js b/tests/baselines/reference/iteratorSpreadInArray6.js new file mode 100644 index 00000000000..02d1c435b8c --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray6.js @@ -0,0 +1,31 @@ +//// [iteratorSpreadInArray6.ts] +var array: number[] = [0, 1]; +array.concat([...new SymbolIterator]); + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInArray6.js] +var array = [0, 1]; +array.concat([...new SymbolIterator]); +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray7.js b/tests/baselines/reference/iteratorSpreadInArray7.js new file mode 100644 index 00000000000..72a614ae4ec --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray7.js @@ -0,0 +1,31 @@ +//// [iteratorSpreadInArray7.ts] +var array: symbol[]; +array.concat([...new SymbolIterator]); + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInArray7.js] +var array; +array.concat([...new SymbolIterator]); +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray7.types b/tests/baselines/reference/iteratorSpreadInArray7.types new file mode 100644 index 00000000000..0af45eab133 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray7.types @@ -0,0 +1,44 @@ +=== tests/cases/conformance/es6/spread/iteratorSpreadInArray7.ts === +var array: symbol[]; +>array : symbol[], Symbol(array, Decl(iteratorSpreadInArray7.ts, 0, 3)) + +array.concat([...new SymbolIterator]); +>array.concat([...new SymbolIterator]) : symbol[] +>array.concat : { (...items: U[]): symbol[]; (...items: symbol[]): symbol[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) +>array : symbol[], Symbol(array, Decl(iteratorSpreadInArray7.ts, 0, 3)) +>concat : { (...items: U[]): symbol[]; (...items: symbol[]): symbol[]; }, Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46)) +>[...new SymbolIterator] : symbol[] +>...new SymbolIterator : symbol +>new SymbolIterator : SymbolIterator +>SymbolIterator : typeof SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray7.ts, 1, 38)) + +class SymbolIterator { +>SymbolIterator : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray7.ts, 1, 38)) + + next() { +>next : () => { value: symbol; done: boolean; }, Symbol(next, Decl(iteratorSpreadInArray7.ts, 3, 22)) + + return { +>{ value: Symbol(), done: false } : { value: symbol; done: boolean; } + + value: Symbol(), +>value : symbol, Symbol(value, Decl(iteratorSpreadInArray7.ts, 5, 16)) +>Symbol() : symbol +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) + + done: false +>done : boolean, Symbol(done, Decl(iteratorSpreadInArray7.ts, 6, 28)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInArray7.ts, 1, 38)) + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray8.errors.txt b/tests/baselines/reference/iteratorSpreadInArray8.errors.txt new file mode 100644 index 00000000000..365bc8db9c2 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray8.errors.txt @@ -0,0 +1,16 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInArray8.ts(1,17): error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInArray8.ts (1 errors) ==== + var array = [...new SymbolIterator]; + ~~~~~~~~~~~~~~~~~~ +!!! error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator. + + class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInArray8.js b/tests/baselines/reference/iteratorSpreadInArray8.js new file mode 100644 index 00000000000..08378699129 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray8.js @@ -0,0 +1,22 @@ +//// [iteratorSpreadInArray8.ts] +var array = [...new SymbolIterator]; + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } +} + +//// [iteratorSpreadInArray8.js] +var array = [...new SymbolIterator]; +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInArray9.errors.txt b/tests/baselines/reference/iteratorSpreadInArray9.errors.txt new file mode 100644 index 00000000000..e0e3d061f16 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray9.errors.txt @@ -0,0 +1,33 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInArray9.ts(1,17): error TS2322: Type 'SymbolIterator' is not assignable to type 'Iterable'. + Types of property '[Symbol.iterator]' are incompatible. + Type '() => SymbolIterator' is not assignable to type '() => Iterator'. + Type 'SymbolIterator' is not assignable to type 'Iterator'. + Types of property 'next' are incompatible. + Type '() => { value: symbol; }' is not assignable to type '() => IteratorResult'. + Type '{ value: symbol; }' is not assignable to type 'IteratorResult'. + Property 'done' is missing in type '{ value: symbol; }'. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInArray9.ts (1 errors) ==== + var array = [...new SymbolIterator]; + ~~~~~~~~~~~~~~~~~~ +!!! error TS2322: Type 'SymbolIterator' is not assignable to type 'Iterable'. +!!! error TS2322: Types of property '[Symbol.iterator]' are incompatible. +!!! error TS2322: Type '() => SymbolIterator' is not assignable to type '() => Iterator'. +!!! error TS2322: Type 'SymbolIterator' is not assignable to type 'Iterator'. +!!! error TS2322: Types of property 'next' are incompatible. +!!! error TS2322: Type '() => { value: symbol; }' is not assignable to type '() => IteratorResult'. +!!! error TS2322: Type '{ value: symbol; }' is not assignable to type 'IteratorResult'. +!!! error TS2322: Property 'done' is missing in type '{ value: symbol; }'. + + class SymbolIterator { + next() { + return { + value: Symbol() + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInArray9.js b/tests/baselines/reference/iteratorSpreadInArray9.js new file mode 100644 index 00000000000..ed0a9b4ebe9 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInArray9.js @@ -0,0 +1,27 @@ +//// [iteratorSpreadInArray9.ts] +var array = [...new SymbolIterator]; + +class SymbolIterator { + next() { + return { + value: Symbol() + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInArray9.js] +var array = [...new SymbolIterator]; +class SymbolIterator { + next() { + return { + value: Symbol() + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall.errors.txt b/tests/baselines/reference/iteratorSpreadInCall.errors.txt new file mode 100644 index 00000000000..614153192d7 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall.errors.txt @@ -0,0 +1,21 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInCall.ts(1,1): error TS2346: Supplied parameters do not match any signature of call target. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInCall.ts (1 errors) ==== + foo(...new SymbolIterator); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2346: Supplied parameters do not match any signature of call target. + + function foo(s: symbol) { } + class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInCall.js b/tests/baselines/reference/iteratorSpreadInCall.js new file mode 100644 index 00000000000..f3bf17c0327 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall.js @@ -0,0 +1,31 @@ +//// [iteratorSpreadInCall.ts] +foo(...new SymbolIterator); + +function foo(s: symbol) { } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInCall.js] +foo(...new SymbolIterator); +function foo(s) { } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall10.errors.txt b/tests/baselines/reference/iteratorSpreadInCall10.errors.txt new file mode 100644 index 00000000000..04d9045e86c --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall10.errors.txt @@ -0,0 +1,22 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInCall10.ts(1,1): error TS2346: Supplied parameters do not match any signature of call target. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInCall10.ts (1 errors) ==== + foo(...new SymbolIterator); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2346: Supplied parameters do not match any signature of call target. + + function foo(s: T[]) { return s[0] } + + class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInCall10.js b/tests/baselines/reference/iteratorSpreadInCall10.js new file mode 100644 index 00000000000..14a08c97009 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall10.js @@ -0,0 +1,32 @@ +//// [iteratorSpreadInCall10.ts] +foo(...new SymbolIterator); + +function foo(s: T[]) { return s[0] } + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInCall10.js] +foo(...new SymbolIterator); +function foo(s) { return s[0]; } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall11.js b/tests/baselines/reference/iteratorSpreadInCall11.js new file mode 100644 index 00000000000..d01eb259ef3 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall11.js @@ -0,0 +1,32 @@ +//// [iteratorSpreadInCall11.ts] +foo(...new SymbolIterator); + +function foo(...s: T[]) { return s[0] } + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInCall11.js] +foo(...new SymbolIterator); +function foo(...s) { return s[0]; } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall11.types b/tests/baselines/reference/iteratorSpreadInCall11.types new file mode 100644 index 00000000000..70fbacfe065 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall11.types @@ -0,0 +1,47 @@ +=== tests/cases/conformance/es6/spread/iteratorSpreadInCall11.ts === +foo(...new SymbolIterator); +>foo(...new SymbolIterator) : symbol +>foo : (...s: T[]) => T, Symbol(foo, Decl(iteratorSpreadInCall11.ts, 0, 27)) +>...new SymbolIterator : symbol +>new SymbolIterator : SymbolIterator +>SymbolIterator : typeof SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInCall11.ts, 2, 42)) + +function foo(...s: T[]) { return s[0] } +>foo : (...s: T[]) => T, Symbol(foo, Decl(iteratorSpreadInCall11.ts, 0, 27)) +>T : T, Symbol(T, Decl(iteratorSpreadInCall11.ts, 2, 13)) +>s : T[], Symbol(s, Decl(iteratorSpreadInCall11.ts, 2, 16)) +>T : T, Symbol(T, Decl(iteratorSpreadInCall11.ts, 2, 13)) +>s[0] : T +>s : T[], Symbol(s, Decl(iteratorSpreadInCall11.ts, 2, 16)) +>0 : number + +class SymbolIterator { +>SymbolIterator : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInCall11.ts, 2, 42)) + + next() { +>next : () => { value: symbol; done: boolean; }, Symbol(next, Decl(iteratorSpreadInCall11.ts, 4, 22)) + + return { +>{ value: Symbol(), done: false } : { value: symbol; done: boolean; } + + value: Symbol(), +>value : symbol, Symbol(value, Decl(iteratorSpreadInCall11.ts, 6, 16)) +>Symbol() : symbol +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) + + done: false +>done : boolean, Symbol(done, Decl(iteratorSpreadInCall11.ts, 7, 28)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInCall11.ts, 2, 42)) + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall12.js b/tests/baselines/reference/iteratorSpreadInCall12.js new file mode 100644 index 00000000000..90b9d9b900b --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall12.js @@ -0,0 +1,61 @@ +//// [iteratorSpreadInCall12.ts] +new Foo(...[...new SymbolIterator, ...[...new StringIterator]]); + +class Foo { + constructor(...s: T[]) { } +} + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +class StringIterator { + next() { + return { + value: "", + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInCall12.js] +new Foo(...[...new SymbolIterator, ...[...new StringIterator]]); +class Foo { + constructor(...s) { + } +} +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} +class StringIterator { + next() { + return { + value: "", + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall12.types b/tests/baselines/reference/iteratorSpreadInCall12.types new file mode 100644 index 00000000000..822ff0e7fd2 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall12.types @@ -0,0 +1,84 @@ +=== tests/cases/conformance/es6/spread/iteratorSpreadInCall12.ts === +new Foo(...[...new SymbolIterator, ...[...new StringIterator]]); +>new Foo(...[...new SymbolIterator, ...[...new StringIterator]]) : Foo +>Foo : typeof Foo, Symbol(Foo, Decl(iteratorSpreadInCall12.ts, 0, 64)) +>...[...new SymbolIterator, ...[...new StringIterator]] : string | symbol +>[...new SymbolIterator, ...[...new StringIterator]] : (string | symbol)[] +>...new SymbolIterator : symbol +>new SymbolIterator : SymbolIterator +>SymbolIterator : typeof SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInCall12.ts, 4, 1)) +>...[...new StringIterator] : string +>[...new StringIterator] : string[] +>...new StringIterator : string +>new StringIterator : StringIterator +>StringIterator : typeof StringIterator, Symbol(StringIterator, Decl(iteratorSpreadInCall12.ts, 17, 1)) + +class Foo { +>Foo : Foo, Symbol(Foo, Decl(iteratorSpreadInCall12.ts, 0, 64)) +>T : T, Symbol(T, Decl(iteratorSpreadInCall12.ts, 2, 10)) + + constructor(...s: T[]) { } +>s : T[], Symbol(s, Decl(iteratorSpreadInCall12.ts, 3, 16)) +>T : T, Symbol(T, Decl(iteratorSpreadInCall12.ts, 2, 10)) +} + +class SymbolIterator { +>SymbolIterator : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInCall12.ts, 4, 1)) + + next() { +>next : () => { value: symbol; done: boolean; }, Symbol(next, Decl(iteratorSpreadInCall12.ts, 6, 22)) + + return { +>{ value: Symbol(), done: false } : { value: symbol; done: boolean; } + + value: Symbol(), +>value : symbol, Symbol(value, Decl(iteratorSpreadInCall12.ts, 8, 16)) +>Symbol() : symbol +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) + + done: false +>done : boolean, Symbol(done, Decl(iteratorSpreadInCall12.ts, 9, 28)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInCall12.ts, 4, 1)) + } +} + +class StringIterator { +>StringIterator : StringIterator, Symbol(StringIterator, Decl(iteratorSpreadInCall12.ts, 17, 1)) + + next() { +>next : () => { value: string; done: boolean; }, Symbol(next, Decl(iteratorSpreadInCall12.ts, 19, 22)) + + return { +>{ value: "", done: false } : { value: string; done: boolean; } + + value: "", +>value : string, Symbol(value, Decl(iteratorSpreadInCall12.ts, 21, 16)) +>"" : string + + done: false +>done : boolean, Symbol(done, Decl(iteratorSpreadInCall12.ts, 22, 22)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : StringIterator, Symbol(StringIterator, Decl(iteratorSpreadInCall12.ts, 17, 1)) + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall2.errors.txt b/tests/baselines/reference/iteratorSpreadInCall2.errors.txt new file mode 100644 index 00000000000..bd994ab37b0 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall2.errors.txt @@ -0,0 +1,21 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInCall2.ts(1,1): error TS2346: Supplied parameters do not match any signature of call target. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInCall2.ts (1 errors) ==== + foo(...new SymbolIterator); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2346: Supplied parameters do not match any signature of call target. + + function foo(s: symbol[]) { } + class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInCall2.js b/tests/baselines/reference/iteratorSpreadInCall2.js new file mode 100644 index 00000000000..6c3517857d5 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall2.js @@ -0,0 +1,31 @@ +//// [iteratorSpreadInCall2.ts] +foo(...new SymbolIterator); + +function foo(s: symbol[]) { } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInCall2.js] +foo(...new SymbolIterator); +function foo(s) { } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall3.js b/tests/baselines/reference/iteratorSpreadInCall3.js new file mode 100644 index 00000000000..b33ceae7bfd --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall3.js @@ -0,0 +1,31 @@ +//// [iteratorSpreadInCall3.ts] +foo(...new SymbolIterator); + +function foo(...s: symbol[]) { } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInCall3.js] +foo(...new SymbolIterator); +function foo(...s) { } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall3.types b/tests/baselines/reference/iteratorSpreadInCall3.types new file mode 100644 index 00000000000..596425150c1 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall3.types @@ -0,0 +1,42 @@ +=== tests/cases/conformance/es6/spread/iteratorSpreadInCall3.ts === +foo(...new SymbolIterator); +>foo(...new SymbolIterator) : void +>foo : (...s: symbol[]) => void, Symbol(foo, Decl(iteratorSpreadInCall3.ts, 0, 27)) +>...new SymbolIterator : symbol +>new SymbolIterator : SymbolIterator +>SymbolIterator : typeof SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInCall3.ts, 2, 32)) + +function foo(...s: symbol[]) { } +>foo : (...s: symbol[]) => void, Symbol(foo, Decl(iteratorSpreadInCall3.ts, 0, 27)) +>s : symbol[], Symbol(s, Decl(iteratorSpreadInCall3.ts, 2, 13)) + +class SymbolIterator { +>SymbolIterator : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInCall3.ts, 2, 32)) + + next() { +>next : () => { value: symbol; done: boolean; }, Symbol(next, Decl(iteratorSpreadInCall3.ts, 3, 22)) + + return { +>{ value: Symbol(), done: false } : { value: symbol; done: boolean; } + + value: Symbol(), +>value : symbol, Symbol(value, Decl(iteratorSpreadInCall3.ts, 5, 16)) +>Symbol() : symbol +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) + + done: false +>done : boolean, Symbol(done, Decl(iteratorSpreadInCall3.ts, 6, 28)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInCall3.ts, 2, 32)) + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall4.errors.txt b/tests/baselines/reference/iteratorSpreadInCall4.errors.txt new file mode 100644 index 00000000000..0e0a40a512f --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall4.errors.txt @@ -0,0 +1,21 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInCall4.ts(1,1): error TS2346: Supplied parameters do not match any signature of call target. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInCall4.ts (1 errors) ==== + foo(...new SymbolIterator); + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2346: Supplied parameters do not match any signature of call target. + + function foo(s1: symbol, ...s: symbol[]) { } + class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInCall4.js b/tests/baselines/reference/iteratorSpreadInCall4.js new file mode 100644 index 00000000000..7819a1ba6f9 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall4.js @@ -0,0 +1,31 @@ +//// [iteratorSpreadInCall4.ts] +foo(...new SymbolIterator); + +function foo(s1: symbol, ...s: symbol[]) { } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInCall4.js] +foo(...new SymbolIterator); +function foo(s1, ...s) { } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall5.js b/tests/baselines/reference/iteratorSpreadInCall5.js new file mode 100644 index 00000000000..a4a30ee0166 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall5.js @@ -0,0 +1,55 @@ +//// [iteratorSpreadInCall5.ts] +foo(...new SymbolIterator, ...new StringIterator); + +function foo(...s: (symbol | string)[]) { } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +class StringIterator { + next() { + return { + value: "", + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInCall5.js] +foo(...new SymbolIterator, ...new StringIterator); +function foo(...s) { } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} +class StringIterator { + next() { + return { + value: "", + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall5.types b/tests/baselines/reference/iteratorSpreadInCall5.types new file mode 100644 index 00000000000..a7c802be031 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall5.types @@ -0,0 +1,75 @@ +=== tests/cases/conformance/es6/spread/iteratorSpreadInCall5.ts === +foo(...new SymbolIterator, ...new StringIterator); +>foo(...new SymbolIterator, ...new StringIterator) : void +>foo : (...s: (string | symbol)[]) => void, Symbol(foo, Decl(iteratorSpreadInCall5.ts, 0, 50)) +>...new SymbolIterator : symbol +>new SymbolIterator : SymbolIterator +>SymbolIterator : typeof SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInCall5.ts, 2, 43)) +>...new StringIterator : string +>new StringIterator : StringIterator +>StringIterator : typeof StringIterator, Symbol(StringIterator, Decl(iteratorSpreadInCall5.ts, 14, 1)) + +function foo(...s: (symbol | string)[]) { } +>foo : (...s: (string | symbol)[]) => void, Symbol(foo, Decl(iteratorSpreadInCall5.ts, 0, 50)) +>s : (string | symbol)[], Symbol(s, Decl(iteratorSpreadInCall5.ts, 2, 13)) + +class SymbolIterator { +>SymbolIterator : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInCall5.ts, 2, 43)) + + next() { +>next : () => { value: symbol; done: boolean; }, Symbol(next, Decl(iteratorSpreadInCall5.ts, 3, 22)) + + return { +>{ value: Symbol(), done: false } : { value: symbol; done: boolean; } + + value: Symbol(), +>value : symbol, Symbol(value, Decl(iteratorSpreadInCall5.ts, 5, 16)) +>Symbol() : symbol +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) + + done: false +>done : boolean, Symbol(done, Decl(iteratorSpreadInCall5.ts, 6, 28)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : SymbolIterator, Symbol(SymbolIterator, Decl(iteratorSpreadInCall5.ts, 2, 43)) + } +} + +class StringIterator { +>StringIterator : StringIterator, Symbol(StringIterator, Decl(iteratorSpreadInCall5.ts, 14, 1)) + + next() { +>next : () => { value: string; done: boolean; }, Symbol(next, Decl(iteratorSpreadInCall5.ts, 16, 22)) + + return { +>{ value: "", done: false } : { value: string; done: boolean; } + + value: "", +>value : string, Symbol(value, Decl(iteratorSpreadInCall5.ts, 18, 16)) +>"" : string + + done: false +>done : boolean, Symbol(done, Decl(iteratorSpreadInCall5.ts, 19, 22)) +>false : boolean + + }; + } + + [Symbol.iterator]() { +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) + + return this; +>this : StringIterator, Symbol(StringIterator, Decl(iteratorSpreadInCall5.ts, 14, 1)) + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall6.errors.txt b/tests/baselines/reference/iteratorSpreadInCall6.errors.txt new file mode 100644 index 00000000000..be085beb632 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall6.errors.txt @@ -0,0 +1,36 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInCall6.ts(1,28): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number | symbol'. + Type 'string' is not assignable to type 'symbol'. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInCall6.ts (1 errors) ==== + foo(...new SymbolIterator, ...new StringIterator); + ~~~~~~~~~~~~~~~~~~~~~ +!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number | symbol'. +!!! error TS2345: Type 'string' is not assignable to type 'symbol'. + + function foo(...s: (symbol | number)[]) { } + class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } + + class StringIterator { + next() { + return { + value: "", + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInCall6.js b/tests/baselines/reference/iteratorSpreadInCall6.js new file mode 100644 index 00000000000..8ad60be911e --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall6.js @@ -0,0 +1,55 @@ +//// [iteratorSpreadInCall6.ts] +foo(...new SymbolIterator, ...new StringIterator); + +function foo(...s: (symbol | number)[]) { } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +class StringIterator { + next() { + return { + value: "", + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInCall6.js] +foo(...new SymbolIterator, ...new StringIterator); +function foo(...s) { } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} +class StringIterator { + next() { + return { + value: "", + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall7.errors.txt b/tests/baselines/reference/iteratorSpreadInCall7.errors.txt new file mode 100644 index 00000000000..51cae1d72b2 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall7.errors.txt @@ -0,0 +1,36 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInCall7.ts(1,1): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly. + Type argument candidate 'symbol' is not a valid type argument because it is not a supertype of candidate 'string'. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInCall7.ts (1 errors) ==== + foo(...new SymbolIterator, ...new StringIterator); + ~~~ +!!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly. +!!! error TS2453: Type argument candidate 'symbol' is not a valid type argument because it is not a supertype of candidate 'string'. + + function foo(...s: T[]) { return s[0]; } + class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } + + class StringIterator { + next() { + return { + value: "", + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInCall7.js b/tests/baselines/reference/iteratorSpreadInCall7.js new file mode 100644 index 00000000000..4a56b75d236 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall7.js @@ -0,0 +1,55 @@ +//// [iteratorSpreadInCall7.ts] +foo(...new SymbolIterator, ...new StringIterator); + +function foo(...s: T[]) { return s[0]; } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +class StringIterator { + next() { + return { + value: "", + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInCall7.js] +foo(...new SymbolIterator, ...new StringIterator); +function foo(...s) { return s[0]; } +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} +class StringIterator { + next() { + return { + value: "", + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall8.errors.txt b/tests/baselines/reference/iteratorSpreadInCall8.errors.txt new file mode 100644 index 00000000000..d7913458b6a --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall8.errors.txt @@ -0,0 +1,39 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInCall8.ts(1,5): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly. + Type argument candidate 'symbol' is not a valid type argument because it is not a supertype of candidate 'string'. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInCall8.ts (1 errors) ==== + new Foo(...new SymbolIterator, ...new StringIterator); + ~~~ +!!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly. +!!! error TS2453: Type argument candidate 'symbol' is not a valid type argument because it is not a supertype of candidate 'string'. + + class Foo { + constructor(...s: T[]) { } + } + + class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } + + class StringIterator { + next() { + return { + value: "", + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInCall8.js b/tests/baselines/reference/iteratorSpreadInCall8.js new file mode 100644 index 00000000000..ac22bbcf5a3 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall8.js @@ -0,0 +1,61 @@ +//// [iteratorSpreadInCall8.ts] +new Foo(...new SymbolIterator, ...new StringIterator); + +class Foo { + constructor(...s: T[]) { } +} + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +class StringIterator { + next() { + return { + value: "", + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInCall8.js] +new Foo(...new SymbolIterator, ...new StringIterator); +class Foo { + constructor(...s) { + } +} +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} +class StringIterator { + next() { + return { + value: "", + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/iteratorSpreadInCall9.errors.txt b/tests/baselines/reference/iteratorSpreadInCall9.errors.txt new file mode 100644 index 00000000000..da2ee7f8efc --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall9.errors.txt @@ -0,0 +1,39 @@ +tests/cases/conformance/es6/spread/iteratorSpreadInCall9.ts(1,5): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly. + Type argument candidate 'symbol' is not a valid type argument because it is not a supertype of candidate 'string'. + + +==== tests/cases/conformance/es6/spread/iteratorSpreadInCall9.ts (1 errors) ==== + new Foo(...new SymbolIterator, ...[...new StringIterator]); + ~~~ +!!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly. +!!! error TS2453: Type argument candidate 'symbol' is not a valid type argument because it is not a supertype of candidate 'string'. + + class Foo { + constructor(...s: T[]) { } + } + + class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } + + class StringIterator { + next() { + return { + value: "", + done: false + }; + } + + [Symbol.iterator]() { + return this; + } + } \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInCall9.js b/tests/baselines/reference/iteratorSpreadInCall9.js new file mode 100644 index 00000000000..2a73ee29c34 --- /dev/null +++ b/tests/baselines/reference/iteratorSpreadInCall9.js @@ -0,0 +1,61 @@ +//// [iteratorSpreadInCall9.ts] +new Foo(...new SymbolIterator, ...[...new StringIterator]); + +class Foo { + constructor(...s: T[]) { } +} + +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +class StringIterator { + next() { + return { + value: "", + done: false + }; + } + + [Symbol.iterator]() { + return this; + } +} + +//// [iteratorSpreadInCall9.js] +new Foo(...new SymbolIterator, ...[...new StringIterator]); +class Foo { + constructor(...s) { + } +} +class SymbolIterator { + next() { + return { + value: Symbol(), + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} +class StringIterator { + next() { + return { + value: "", + done: false + }; + } + [Symbol.iterator]() { + return this; + } +} diff --git a/tests/baselines/reference/keywordField.types b/tests/baselines/reference/keywordField.types index a5c465ae39c..8e3c756e9c9 100644 --- a/tests/baselines/reference/keywordField.types +++ b/tests/baselines/reference/keywordField.types @@ -1,27 +1,30 @@ === tests/cases/compiler/keywordField.ts === var obj:any = {}; ->obj : any +>obj : any, Symbol(obj, Decl(keywordField.ts, 0, 3)) >{} : {} obj.if = 1; >obj.if = 1 : number >obj.if : any ->obj : any +>obj : any, Symbol(obj, Decl(keywordField.ts, 0, 3)) >if : any +>1 : number var a = { if: "test" } ->a : { if: string; } +>a : { if: string; }, Symbol(a, Decl(keywordField.ts, 4, 3)) >{ if: "test" } : { if: string; } ->if : string +>if : string, Symbol(if, Decl(keywordField.ts, 4, 9)) +>"test" : string var n = a.if ->n : string ->a.if : string ->a : { if: string; } ->if : string +>n : string, Symbol(n, Decl(keywordField.ts, 6, 3)) +>a.if : string, Symbol(if, Decl(keywordField.ts, 4, 9)) +>a : { if: string; }, Symbol(a, Decl(keywordField.ts, 4, 3)) +>if : string, Symbol(if, Decl(keywordField.ts, 4, 9)) var q = a["if"]; ->q : string +>q : string, Symbol(q, Decl(keywordField.ts, 8, 3)) >a["if"] : string ->a : { if: string; } +>a : { if: string; }, Symbol(a, Decl(keywordField.ts, 4, 3)) +>"if" : string, Symbol(if, Decl(keywordField.ts, 4, 9)) diff --git a/tests/baselines/reference/lambdaASIEmit.types b/tests/baselines/reference/lambdaASIEmit.types index b72a805cd12..f06ee68351a 100644 --- a/tests/baselines/reference/lambdaASIEmit.types +++ b/tests/baselines/reference/lambdaASIEmit.types @@ -1,16 +1,17 @@ === tests/cases/compiler/lambdaASIEmit.ts === function Foo(x: any) ->Foo : (x: any) => void ->x : any +>Foo : (x: any) => void, Symbol(Foo, Decl(lambdaASIEmit.ts, 0, 0)) +>x : any, Symbol(x, Decl(lambdaASIEmit.ts, 1, 13)) { } Foo(() => >Foo(() => // do something 127) : void ->Foo : (x: any) => void +>Foo : (x: any) => void, Symbol(Foo, Decl(lambdaASIEmit.ts, 0, 0)) >() => // do something 127 : () => number // do something 127); +>127 : number diff --git a/tests/baselines/reference/lambdaExpression.types b/tests/baselines/reference/lambdaExpression.types index d550781ebf7..55618197c3d 100644 --- a/tests/baselines/reference/lambdaExpression.types +++ b/tests/baselines/reference/lambdaExpression.types @@ -1,14 +1,18 @@ === tests/cases/compiler/lambdaExpression.ts === () => 0; // Needs to be wrapped in parens to be a valid expression (not declaration) >() => 0 : () => number +>0 : number var y = 0; ->y : number +>y : number, Symbol(y, Decl(lambdaExpression.ts, 1, 3)) +>0 : number (()=>0); >(()=>0) : () => number >()=>0 : () => number +>0 : number var x = 0; ->x : number +>x : number, Symbol(x, Decl(lambdaExpression.ts, 3, 3)) +>0 : number diff --git a/tests/baselines/reference/letAsIdentifier.types b/tests/baselines/reference/letAsIdentifier.types index 95fe2b11ac9..52d30c36e54 100644 --- a/tests/baselines/reference/letAsIdentifier.types +++ b/tests/baselines/reference/letAsIdentifier.types @@ -1,18 +1,21 @@ === tests/cases/compiler/letAsIdentifier.ts === var let = 10; ->let : number +>let : number, Symbol(let, Decl(letAsIdentifier.ts, 1, 3)) +>10 : number var a = 10; ->a : number +>a : number, Symbol(a, Decl(letAsIdentifier.ts, 2, 3)) +>10 : number let = 30; >let = 30 : number ->let : number +>let : number, Symbol(let, Decl(letAsIdentifier.ts, 1, 3)) +>30 : number let ->let : number +>let : number, Symbol(let, Decl(letAsIdentifier.ts, 1, 3)) a; ->a : number +>a : number, Symbol(a, Decl(letAsIdentifier.ts, 2, 3)) diff --git a/tests/baselines/reference/letAsIdentifierInStrictMode.errors.txt b/tests/baselines/reference/letAsIdentifierInStrictMode.errors.txt index 65411f23da9..b59daca008c 100644 --- a/tests/baselines/reference/letAsIdentifierInStrictMode.errors.txt +++ b/tests/baselines/reference/letAsIdentifierInStrictMode.errors.txt @@ -1,21 +1,12 @@ -tests/cases/compiler/letAsIdentifierInStrictMode.ts(2,5): error TS1134: Variable declaration expected. -tests/cases/compiler/letAsIdentifierInStrictMode.ts(2,9): error TS1134: Variable declaration expected. -tests/cases/compiler/letAsIdentifierInStrictMode.ts(2,11): error TS1134: Variable declaration expected. tests/cases/compiler/letAsIdentifierInStrictMode.ts(3,5): error TS2300: Duplicate identifier 'a'. tests/cases/compiler/letAsIdentifierInStrictMode.ts(4,5): error TS1134: Variable declaration expected. tests/cases/compiler/letAsIdentifierInStrictMode.ts(4,7): error TS1134: Variable declaration expected. tests/cases/compiler/letAsIdentifierInStrictMode.ts(6,1): error TS2300: Duplicate identifier 'a'. -==== tests/cases/compiler/letAsIdentifierInStrictMode.ts (7 errors) ==== +==== tests/cases/compiler/letAsIdentifierInStrictMode.ts (4 errors) ==== "use strict"; var let = 10; - ~~~ -!!! error TS1134: Variable declaration expected. - ~ -!!! error TS1134: Variable declaration expected. - ~~ -!!! error TS1134: Variable declaration expected. var a = 10; ~ !!! error TS2300: Duplicate identifier 'a'. diff --git a/tests/baselines/reference/letAsIdentifierInStrictMode.js b/tests/baselines/reference/letAsIdentifierInStrictMode.js index ccf099bcfc4..eb840e1a641 100644 --- a/tests/baselines/reference/letAsIdentifierInStrictMode.js +++ b/tests/baselines/reference/letAsIdentifierInStrictMode.js @@ -8,9 +8,7 @@ a; //// [letAsIdentifierInStrictMode.js] "use strict"; -var ; -var ; -10; +var let = 10; var a = 10; var ; 30; diff --git a/tests/baselines/reference/letConstMatchingParameterNames.types b/tests/baselines/reference/letConstMatchingParameterNames.types index 66fccc637df..8fd75ab0512 100644 --- a/tests/baselines/reference/letConstMatchingParameterNames.types +++ b/tests/baselines/reference/letConstMatchingParameterNames.types @@ -1,37 +1,41 @@ === tests/cases/compiler/letConstMatchingParameterNames.ts === let parent = true; ->parent : boolean +>parent : boolean, Symbol(parent, Decl(letConstMatchingParameterNames.ts, 0, 3)) +>true : boolean const parent2 = true; ->parent2 : boolean +>parent2 : boolean, Symbol(parent2, Decl(letConstMatchingParameterNames.ts, 1, 5)) +>true : boolean declare function use(a: any); ->use : (a: any) => any ->a : any +>use : (a: any) => any, Symbol(use, Decl(letConstMatchingParameterNames.ts, 1, 21)) +>a : any, Symbol(a, Decl(letConstMatchingParameterNames.ts, 2, 21)) function a() { ->a : () => void +>a : () => void, Symbol(a, Decl(letConstMatchingParameterNames.ts, 2, 29)) let parent = 1; ->parent : number +>parent : number, Symbol(parent, Decl(letConstMatchingParameterNames.ts, 6, 7)) +>1 : number const parent2 = 2; ->parent2 : number +>parent2 : number, Symbol(parent2, Decl(letConstMatchingParameterNames.ts, 7, 9)) +>2 : number function b(parent: string, parent2: number) { ->b : (parent: string, parent2: number) => void ->parent : string ->parent2 : number +>b : (parent: string, parent2: number) => void, Symbol(b, Decl(letConstMatchingParameterNames.ts, 7, 22)) +>parent : string, Symbol(parent, Decl(letConstMatchingParameterNames.ts, 9, 15)) +>parent2 : number, Symbol(parent2, Decl(letConstMatchingParameterNames.ts, 9, 30)) use(parent); >use(parent) : any ->use : (a: any) => any ->parent : string +>use : (a: any) => any, Symbol(use, Decl(letConstMatchingParameterNames.ts, 1, 21)) +>parent : string, Symbol(parent, Decl(letConstMatchingParameterNames.ts, 9, 15)) use(parent2); >use(parent2) : any ->use : (a: any) => any ->parent2 : number +>use : (a: any) => any, Symbol(use, Decl(letConstMatchingParameterNames.ts, 1, 21)) +>parent2 : number, Symbol(parent2, Decl(letConstMatchingParameterNames.ts, 9, 30)) } } diff --git a/tests/baselines/reference/letDeclarations-access.types b/tests/baselines/reference/letDeclarations-access.types index f26d07ca5f8..7578627e22b 100644 --- a/tests/baselines/reference/letDeclarations-access.types +++ b/tests/baselines/reference/letDeclarations-access.types @@ -1,109 +1,123 @@ === tests/cases/compiler/letDeclarations-access.ts === let x = 0 ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>0 : number // No errors x = 1; >x = 1 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>1 : number x += 2; >x += 2 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>2 : number x -= 3; >x -= 3 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>3 : number x *= 4; >x *= 4 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>4 : number x /= 5; >x /= 5 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>5 : number x %= 6; >x %= 6 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>6 : number x <<= 7; >x <<= 7 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>7 : number x >>= 8; >x >>= 8 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>8 : number x >>>= 9; >x >>>= 9 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>9 : number x &= 10; >x &= 10 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>10 : number x |= 11; >x |= 11 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>11 : number x ^= 12; >x ^= 12 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>12 : number x++; >x++ : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) x--; >x-- : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) ++x; >++x : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) --x; >--x : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) var a = x + 1; ->a : number +>a : number, Symbol(a, Decl(letDeclarations-access.ts, 23, 3)) >x + 1 : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>1 : number function f(v: number) { } ->f : (v: number) => void ->v : number +>f : (v: number) => void, Symbol(f, Decl(letDeclarations-access.ts, 23, 14)) +>v : number, Symbol(v, Decl(letDeclarations-access.ts, 25, 11)) f(x); >f(x) : void ->f : (v: number) => void ->x : number +>f : (v: number) => void, Symbol(f, Decl(letDeclarations-access.ts, 23, 14)) +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) if (x) { } ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) x; ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) (x); >(x) : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) -x; >-x : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +x; >+x : number ->x : number +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) x.toString(); >x.toString() : string ->x.toString : (radix?: number) => string ->x : number ->toString : (radix?: number) => string +>x.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>x : number, Symbol(x, Decl(letDeclarations-access.ts, 1, 3)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) diff --git a/tests/baselines/reference/letDeclarations-es5-1.types b/tests/baselines/reference/letDeclarations-es5-1.types index fb45d521bd3..945aaf60301 100644 --- a/tests/baselines/reference/letDeclarations-es5-1.types +++ b/tests/baselines/reference/letDeclarations-es5-1.types @@ -1,24 +1,29 @@ === tests/cases/compiler/letDeclarations-es5-1.ts === let l1; ->l1 : any +>l1 : any, Symbol(l1, Decl(letDeclarations-es5-1.ts, 0, 7)) let l2: number; ->l2 : number +>l2 : number, Symbol(l2, Decl(letDeclarations-es5-1.ts, 1, 7)) let l3, l4, l5 :string, l6; ->l3 : any ->l4 : any ->l5 : string ->l6 : any +>l3 : any, Symbol(l3, Decl(letDeclarations-es5-1.ts, 2, 7)) +>l4 : any, Symbol(l4, Decl(letDeclarations-es5-1.ts, 2, 11)) +>l5 : string, Symbol(l5, Decl(letDeclarations-es5-1.ts, 2, 15)) +>l6 : any, Symbol(l6, Decl(letDeclarations-es5-1.ts, 2, 27)) let l7 = false; ->l7 : boolean +>l7 : boolean, Symbol(l7, Decl(letDeclarations-es5-1.ts, 3, 7)) +>false : boolean let l8: number = 23; ->l8 : number +>l8 : number, Symbol(l8, Decl(letDeclarations-es5-1.ts, 4, 7)) +>23 : number let l9 = 0, l10 :string = "", l11 = null; ->l9 : number ->l10 : string ->l11 : any +>l9 : number, Symbol(l9, Decl(letDeclarations-es5-1.ts, 5, 7)) +>0 : number +>l10 : string, Symbol(l10, Decl(letDeclarations-es5-1.ts, 5, 15)) +>"" : string +>l11 : any, Symbol(l11, Decl(letDeclarations-es5-1.ts, 5, 33)) +>null : null diff --git a/tests/baselines/reference/letDeclarations-es5.types b/tests/baselines/reference/letDeclarations-es5.types index 0d6e9928868..3d79c418f4f 100644 --- a/tests/baselines/reference/letDeclarations-es5.types +++ b/tests/baselines/reference/letDeclarations-es5.types @@ -1,36 +1,43 @@ === tests/cases/compiler/letDeclarations-es5.ts === let l1; ->l1 : any +>l1 : any, Symbol(l1, Decl(letDeclarations-es5.ts, 1, 3)) let l2: number; ->l2 : number +>l2 : number, Symbol(l2, Decl(letDeclarations-es5.ts, 2, 3)) let l3, l4, l5 :string, l6; ->l3 : any ->l4 : any ->l5 : string ->l6 : any +>l3 : any, Symbol(l3, Decl(letDeclarations-es5.ts, 3, 3)) +>l4 : any, Symbol(l4, Decl(letDeclarations-es5.ts, 3, 7)) +>l5 : string, Symbol(l5, Decl(letDeclarations-es5.ts, 3, 11)) +>l6 : any, Symbol(l6, Decl(letDeclarations-es5.ts, 3, 23)) let l7 = false; ->l7 : boolean +>l7 : boolean, Symbol(l7, Decl(letDeclarations-es5.ts, 5, 3)) +>false : boolean let l8: number = 23; ->l8 : number +>l8 : number, Symbol(l8, Decl(letDeclarations-es5.ts, 6, 3)) +>23 : number let l9 = 0, l10 :string = "", l11 = null; ->l9 : number ->l10 : string ->l11 : any +>l9 : number, Symbol(l9, Decl(letDeclarations-es5.ts, 7, 3)) +>0 : number +>l10 : string, Symbol(l10, Decl(letDeclarations-es5.ts, 7, 11)) +>"" : string +>l11 : any, Symbol(l11, Decl(letDeclarations-es5.ts, 7, 29)) +>null : null for(let l11 in {}) { } ->l11 : any +>l11 : any, Symbol(l11, Decl(letDeclarations-es5.ts, 9, 7)) >{} : {} for(let l12 = 0; l12 < 9; l12++) { } ->l12 : number +>l12 : number, Symbol(l12, Decl(letDeclarations-es5.ts, 11, 7)) +>0 : number >l12 < 9 : boolean ->l12 : number +>l12 : number, Symbol(l12, Decl(letDeclarations-es5.ts, 11, 7)) +>9 : number >l12++ : number ->l12 : number +>l12 : number, Symbol(l12, Decl(letDeclarations-es5.ts, 11, 7)) diff --git a/tests/baselines/reference/letDeclarations.types b/tests/baselines/reference/letDeclarations.types index aa47a7f0006..43b56d243a5 100644 --- a/tests/baselines/reference/letDeclarations.types +++ b/tests/baselines/reference/letDeclarations.types @@ -1,36 +1,43 @@ === tests/cases/compiler/letDeclarations.ts === let l1; ->l1 : any +>l1 : any, Symbol(l1, Decl(letDeclarations.ts, 1, 3)) let l2: number; ->l2 : number +>l2 : number, Symbol(l2, Decl(letDeclarations.ts, 2, 3)) let l3, l4, l5 :string, l6; ->l3 : any ->l4 : any ->l5 : string ->l6 : any +>l3 : any, Symbol(l3, Decl(letDeclarations.ts, 3, 3)) +>l4 : any, Symbol(l4, Decl(letDeclarations.ts, 3, 7)) +>l5 : string, Symbol(l5, Decl(letDeclarations.ts, 3, 11)) +>l6 : any, Symbol(l6, Decl(letDeclarations.ts, 3, 23)) let l7 = false; ->l7 : boolean +>l7 : boolean, Symbol(l7, Decl(letDeclarations.ts, 5, 3)) +>false : boolean let l8: number = 23; ->l8 : number +>l8 : number, Symbol(l8, Decl(letDeclarations.ts, 6, 3)) +>23 : number let l9 = 0, l10 :string = "", l11 = null; ->l9 : number ->l10 : string ->l11 : any +>l9 : number, Symbol(l9, Decl(letDeclarations.ts, 7, 3)) +>0 : number +>l10 : string, Symbol(l10, Decl(letDeclarations.ts, 7, 11)) +>"" : string +>l11 : any, Symbol(l11, Decl(letDeclarations.ts, 7, 29)) +>null : null for(let l11 in {}) { } ->l11 : any +>l11 : any, Symbol(l11, Decl(letDeclarations.ts, 9, 7)) >{} : {} for(let l12 = 0; l12 < 9; l12++) { } ->l12 : number +>l12 : number, Symbol(l12, Decl(letDeclarations.ts, 11, 7)) +>0 : number >l12 < 9 : boolean ->l12 : number +>l12 : number, Symbol(l12, Decl(letDeclarations.ts, 11, 7)) +>9 : number >l12++ : number ->l12 : number +>l12 : number, Symbol(l12, Decl(letDeclarations.ts, 11, 7)) diff --git a/tests/baselines/reference/letDeclarations2.types b/tests/baselines/reference/letDeclarations2.types index 2fa08b6d940..aa71c9aad3c 100644 --- a/tests/baselines/reference/letDeclarations2.types +++ b/tests/baselines/reference/letDeclarations2.types @@ -1,11 +1,13 @@ === tests/cases/compiler/letDeclarations2.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(letDeclarations2.ts, 0, 0)) let l1 = "s"; ->l1 : string +>l1 : string, Symbol(l1, Decl(letDeclarations2.ts, 2, 7)) +>"s" : string export let l2 = 0; ->l2 : number +>l2 : number, Symbol(l2, Decl(letDeclarations2.ts, 3, 14)) +>0 : number } diff --git a/tests/baselines/reference/letInNonStrictMode.types b/tests/baselines/reference/letInNonStrictMode.types index 4f2cbe4a703..a050d268f8a 100644 --- a/tests/baselines/reference/letInNonStrictMode.types +++ b/tests/baselines/reference/letInNonStrictMode.types @@ -1,11 +1,13 @@ === tests/cases/compiler/letInNonStrictMode.ts === let [x] = [1]; ->x : number +>x : number, Symbol(x, Decl(letInNonStrictMode.ts, 0, 5)) >[1] : [number] +>1 : number let {a: y} = {a: 1}; ->a : unknown ->y : number +>a : any +>y : number, Symbol(y, Decl(letInNonStrictMode.ts, 1, 5)) >{a: 1} : { a: number; } ->a : number +>a : number, Symbol(a, Decl(letInNonStrictMode.ts, 1, 14)) +>1 : number diff --git a/tests/baselines/reference/letKeepNamesOfTopLevelItems.types b/tests/baselines/reference/letKeepNamesOfTopLevelItems.types index 952be1512a9..59547c099a0 100644 --- a/tests/baselines/reference/letKeepNamesOfTopLevelItems.types +++ b/tests/baselines/reference/letKeepNamesOfTopLevelItems.types @@ -1,17 +1,17 @@ === tests/cases/compiler/letKeepNamesOfTopLevelItems.ts === let x; ->x : any +>x : any, Symbol(x, Decl(letKeepNamesOfTopLevelItems.ts, 0, 3)) function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(letKeepNamesOfTopLevelItems.ts, 0, 6)) let x; ->x : any +>x : any, Symbol(x, Decl(letKeepNamesOfTopLevelItems.ts, 2, 7)) } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(letKeepNamesOfTopLevelItems.ts, 3, 1)) let x; ->x : any +>x : any, Symbol(x, Decl(letKeepNamesOfTopLevelItems.ts, 6, 7)) } diff --git a/tests/baselines/reference/libdtsFix.types b/tests/baselines/reference/libdtsFix.types index 4f94635d998..341db628efc 100644 --- a/tests/baselines/reference/libdtsFix.types +++ b/tests/baselines/reference/libdtsFix.types @@ -1,8 +1,8 @@ === tests/cases/compiler/libdtsFix.ts === interface HTMLElement { ->HTMLElement : HTMLElement +>HTMLElement : HTMLElement, Symbol(HTMLElement, Decl(libdtsFix.ts, 0, 0)) type: string; ->type : string +>type : string, Symbol(type, Decl(libdtsFix.ts, 0, 23)) } diff --git a/tests/baselines/reference/library_ArraySlice.types b/tests/baselines/reference/library_ArraySlice.types index 378724c74e4..90e402c2fcd 100644 --- a/tests/baselines/reference/library_ArraySlice.types +++ b/tests/baselines/reference/library_ArraySlice.types @@ -2,25 +2,28 @@ // Array.prototype.slice can have zero, one, or two arguments Array.prototype.slice(); >Array.prototype.slice() : any[] ->Array.prototype.slice : (start?: number, end?: number) => any[] ->Array.prototype : any[] ->Array : ArrayConstructor ->prototype : any[] ->slice : (start?: number, end?: number) => any[] +>Array.prototype.slice : (start?: number, end?: number) => any[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15)) +>Array.prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31)) +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31)) +>slice : (start?: number, end?: number) => any[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15)) Array.prototype.slice(0); >Array.prototype.slice(0) : any[] ->Array.prototype.slice : (start?: number, end?: number) => any[] ->Array.prototype : any[] ->Array : ArrayConstructor ->prototype : any[] ->slice : (start?: number, end?: number) => any[] +>Array.prototype.slice : (start?: number, end?: number) => any[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15)) +>Array.prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31)) +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31)) +>slice : (start?: number, end?: number) => any[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15)) +>0 : number Array.prototype.slice(0, 1); >Array.prototype.slice(0, 1) : any[] ->Array.prototype.slice : (start?: number, end?: number) => any[] ->Array.prototype : any[] ->Array : ArrayConstructor ->prototype : any[] ->slice : (start?: number, end?: number) => any[] +>Array.prototype.slice : (start?: number, end?: number) => any[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15)) +>Array.prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31)) +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31)) +>slice : (start?: number, end?: number) => any[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15)) +>0 : number +>1 : number diff --git a/tests/baselines/reference/library_DatePrototypeProperties.types b/tests/baselines/reference/library_DatePrototypeProperties.types index 35dcea318be..7a10aedd765 100644 --- a/tests/baselines/reference/library_DatePrototypeProperties.types +++ b/tests/baselines/reference/library_DatePrototypeProperties.types @@ -2,353 +2,369 @@ // Properties of the Date prototype object as per ES5 spec // http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.5 Date.prototype.constructor; ->Date.prototype.constructor : Function ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->constructor : Function +>Date.prototype.constructor : Function, Symbol(Object.constructor, Decl(lib.d.ts, 94, 18)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>constructor : Function, Symbol(Object.constructor, Decl(lib.d.ts, 94, 18)) Date.prototype.toString(); >Date.prototype.toString() : string ->Date.prototype.toString : () => string ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->toString : () => string +>Date.prototype.toString : () => string, Symbol(Date.toString, Decl(lib.d.ts, 636, 16)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>toString : () => string, Symbol(Date.toString, Decl(lib.d.ts, 636, 16)) Date.prototype.toDateString(); >Date.prototype.toDateString() : string ->Date.prototype.toDateString : () => string ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->toDateString : () => string +>Date.prototype.toDateString : () => string, Symbol(Date.toDateString, Decl(lib.d.ts, 638, 23)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>toDateString : () => string, Symbol(Date.toDateString, Decl(lib.d.ts, 638, 23)) Date.prototype.toTimeString(); >Date.prototype.toTimeString() : string ->Date.prototype.toTimeString : () => string ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->toTimeString : () => string +>Date.prototype.toTimeString : () => string, Symbol(Date.toTimeString, Decl(lib.d.ts, 640, 27)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>toTimeString : () => string, Symbol(Date.toTimeString, Decl(lib.d.ts, 640, 27)) Date.prototype.toLocaleString(); >Date.prototype.toLocaleString() : string ->Date.prototype.toLocaleString : () => string ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->toLocaleString : () => string +>Date.prototype.toLocaleString : () => string, Symbol(Date.toLocaleString, Decl(lib.d.ts, 642, 27)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>toLocaleString : () => string, Symbol(Date.toLocaleString, Decl(lib.d.ts, 642, 27)) Date.prototype.toLocaleDateString(); >Date.prototype.toLocaleDateString() : string ->Date.prototype.toLocaleDateString : () => string ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->toLocaleDateString : () => string +>Date.prototype.toLocaleDateString : () => string, Symbol(Date.toLocaleDateString, Decl(lib.d.ts, 644, 29)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>toLocaleDateString : () => string, Symbol(Date.toLocaleDateString, Decl(lib.d.ts, 644, 29)) Date.prototype.toLocaleTimeString(); >Date.prototype.toLocaleTimeString() : string ->Date.prototype.toLocaleTimeString : () => string ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->toLocaleTimeString : () => string +>Date.prototype.toLocaleTimeString : () => string, Symbol(Date.toLocaleTimeString, Decl(lib.d.ts, 646, 33)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>toLocaleTimeString : () => string, Symbol(Date.toLocaleTimeString, Decl(lib.d.ts, 646, 33)) Date.prototype.valueOf(); >Date.prototype.valueOf() : number ->Date.prototype.valueOf : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->valueOf : () => number +>Date.prototype.valueOf : () => number, Symbol(Date.valueOf, Decl(lib.d.ts, 648, 33)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>valueOf : () => number, Symbol(Date.valueOf, Decl(lib.d.ts, 648, 33)) Date.prototype.getTime(); >Date.prototype.getTime() : number ->Date.prototype.getTime : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getTime : () => number +>Date.prototype.getTime : () => number, Symbol(Date.getTime, Decl(lib.d.ts, 650, 22)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getTime : () => number, Symbol(Date.getTime, Decl(lib.d.ts, 650, 22)) Date.prototype.getFullYear(); >Date.prototype.getFullYear() : number ->Date.prototype.getFullYear : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getFullYear : () => number +>Date.prototype.getFullYear : () => number, Symbol(Date.getFullYear, Decl(lib.d.ts, 652, 22)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getFullYear : () => number, Symbol(Date.getFullYear, Decl(lib.d.ts, 652, 22)) Date.prototype.getUTCFullYear(); >Date.prototype.getUTCFullYear() : number ->Date.prototype.getUTCFullYear : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getUTCFullYear : () => number +>Date.prototype.getUTCFullYear : () => number, Symbol(Date.getUTCFullYear, Decl(lib.d.ts, 654, 26)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getUTCFullYear : () => number, Symbol(Date.getUTCFullYear, Decl(lib.d.ts, 654, 26)) Date.prototype.getMonth(); >Date.prototype.getMonth() : number ->Date.prototype.getMonth : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getMonth : () => number +>Date.prototype.getMonth : () => number, Symbol(Date.getMonth, Decl(lib.d.ts, 656, 29)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getMonth : () => number, Symbol(Date.getMonth, Decl(lib.d.ts, 656, 29)) Date.prototype.getUTCMonth(); >Date.prototype.getUTCMonth() : number ->Date.prototype.getUTCMonth : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getUTCMonth : () => number +>Date.prototype.getUTCMonth : () => number, Symbol(Date.getUTCMonth, Decl(lib.d.ts, 658, 23)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getUTCMonth : () => number, Symbol(Date.getUTCMonth, Decl(lib.d.ts, 658, 23)) Date.prototype.getDate(); >Date.prototype.getDate() : number ->Date.prototype.getDate : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getDate : () => number +>Date.prototype.getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) Date.prototype.getUTCDate(); >Date.prototype.getUTCDate() : number ->Date.prototype.getUTCDate : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getUTCDate : () => number +>Date.prototype.getUTCDate : () => number, Symbol(Date.getUTCDate, Decl(lib.d.ts, 662, 22)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getUTCDate : () => number, Symbol(Date.getUTCDate, Decl(lib.d.ts, 662, 22)) Date.prototype.getDay(); >Date.prototype.getDay() : number ->Date.prototype.getDay : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getDay : () => number +>Date.prototype.getDay : () => number, Symbol(Date.getDay, Decl(lib.d.ts, 664, 25)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getDay : () => number, Symbol(Date.getDay, Decl(lib.d.ts, 664, 25)) Date.prototype.getUTCDay(); >Date.prototype.getUTCDay() : number ->Date.prototype.getUTCDay : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getUTCDay : () => number +>Date.prototype.getUTCDay : () => number, Symbol(Date.getUTCDay, Decl(lib.d.ts, 666, 21)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getUTCDay : () => number, Symbol(Date.getUTCDay, Decl(lib.d.ts, 666, 21)) Date.prototype.getHours(); >Date.prototype.getHours() : number ->Date.prototype.getHours : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getHours : () => number +>Date.prototype.getHours : () => number, Symbol(Date.getHours, Decl(lib.d.ts, 668, 24)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getHours : () => number, Symbol(Date.getHours, Decl(lib.d.ts, 668, 24)) Date.prototype.getUTCHours(); >Date.prototype.getUTCHours() : number ->Date.prototype.getUTCHours : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getUTCHours : () => number +>Date.prototype.getUTCHours : () => number, Symbol(Date.getUTCHours, Decl(lib.d.ts, 670, 23)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getUTCHours : () => number, Symbol(Date.getUTCHours, Decl(lib.d.ts, 670, 23)) Date.prototype.getMinutes(); >Date.prototype.getMinutes() : number ->Date.prototype.getMinutes : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getMinutes : () => number +>Date.prototype.getMinutes : () => number, Symbol(Date.getMinutes, Decl(lib.d.ts, 672, 26)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getMinutes : () => number, Symbol(Date.getMinutes, Decl(lib.d.ts, 672, 26)) Date.prototype.getUTCMinutes(); >Date.prototype.getUTCMinutes() : number ->Date.prototype.getUTCMinutes : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getUTCMinutes : () => number +>Date.prototype.getUTCMinutes : () => number, Symbol(Date.getUTCMinutes, Decl(lib.d.ts, 674, 25)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getUTCMinutes : () => number, Symbol(Date.getUTCMinutes, Decl(lib.d.ts, 674, 25)) Date.prototype.getSeconds(); >Date.prototype.getSeconds() : number ->Date.prototype.getSeconds : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getSeconds : () => number +>Date.prototype.getSeconds : () => number, Symbol(Date.getSeconds, Decl(lib.d.ts, 676, 28)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getSeconds : () => number, Symbol(Date.getSeconds, Decl(lib.d.ts, 676, 28)) Date.prototype.getUTCSeconds(); >Date.prototype.getUTCSeconds() : number ->Date.prototype.getUTCSeconds : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getUTCSeconds : () => number +>Date.prototype.getUTCSeconds : () => number, Symbol(Date.getUTCSeconds, Decl(lib.d.ts, 678, 25)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getUTCSeconds : () => number, Symbol(Date.getUTCSeconds, Decl(lib.d.ts, 678, 25)) Date.prototype.getMilliseconds(); >Date.prototype.getMilliseconds() : number ->Date.prototype.getMilliseconds : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getMilliseconds : () => number +>Date.prototype.getMilliseconds : () => number, Symbol(Date.getMilliseconds, Decl(lib.d.ts, 680, 28)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getMilliseconds : () => number, Symbol(Date.getMilliseconds, Decl(lib.d.ts, 680, 28)) Date.prototype.getUTCMilliseconds(); >Date.prototype.getUTCMilliseconds() : number ->Date.prototype.getUTCMilliseconds : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getUTCMilliseconds : () => number +>Date.prototype.getUTCMilliseconds : () => number, Symbol(Date.getUTCMilliseconds, Decl(lib.d.ts, 682, 30)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getUTCMilliseconds : () => number, Symbol(Date.getUTCMilliseconds, Decl(lib.d.ts, 682, 30)) Date.prototype.getTimezoneOffset(); >Date.prototype.getTimezoneOffset() : number ->Date.prototype.getTimezoneOffset : () => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->getTimezoneOffset : () => number +>Date.prototype.getTimezoneOffset : () => number, Symbol(Date.getTimezoneOffset, Decl(lib.d.ts, 684, 33)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>getTimezoneOffset : () => number, Symbol(Date.getTimezoneOffset, Decl(lib.d.ts, 684, 33)) Date.prototype.setTime(0); >Date.prototype.setTime(0) : number ->Date.prototype.setTime : (time: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setTime : (time: number) => number +>Date.prototype.setTime : (time: number) => number, Symbol(Date.setTime, Decl(lib.d.ts, 686, 32)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setTime : (time: number) => number, Symbol(Date.setTime, Decl(lib.d.ts, 686, 32)) +>0 : number Date.prototype.setMilliseconds(0); >Date.prototype.setMilliseconds(0) : number ->Date.prototype.setMilliseconds : (ms: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setMilliseconds : (ms: number) => number +>Date.prototype.setMilliseconds : (ms: number) => number, Symbol(Date.setMilliseconds, Decl(lib.d.ts, 691, 34)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setMilliseconds : (ms: number) => number, Symbol(Date.setMilliseconds, Decl(lib.d.ts, 691, 34)) +>0 : number Date.prototype.setUTCMilliseconds(0); >Date.prototype.setUTCMilliseconds(0) : number ->Date.prototype.setUTCMilliseconds : (ms: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setUTCMilliseconds : (ms: number) => number +>Date.prototype.setUTCMilliseconds : (ms: number) => number, Symbol(Date.setUTCMilliseconds, Decl(lib.d.ts, 696, 40)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setUTCMilliseconds : (ms: number) => number, Symbol(Date.setUTCMilliseconds, Decl(lib.d.ts, 696, 40)) +>0 : number Date.prototype.setSeconds(0); >Date.prototype.setSeconds(0) : number ->Date.prototype.setSeconds : (sec: number, ms?: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setSeconds : (sec: number, ms?: number) => number +>Date.prototype.setSeconds : (sec: number, ms?: number) => number, Symbol(Date.setSeconds, Decl(lib.d.ts, 701, 43)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setSeconds : (sec: number, ms?: number) => number, Symbol(Date.setSeconds, Decl(lib.d.ts, 701, 43)) +>0 : number Date.prototype.setUTCSeconds(0); >Date.prototype.setUTCSeconds(0) : number ->Date.prototype.setUTCSeconds : (sec: number, ms?: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setUTCSeconds : (sec: number, ms?: number) => number +>Date.prototype.setUTCSeconds : (sec: number, ms?: number) => number, Symbol(Date.setUTCSeconds, Decl(lib.d.ts, 708, 49)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setUTCSeconds : (sec: number, ms?: number) => number, Symbol(Date.setUTCSeconds, Decl(lib.d.ts, 708, 49)) +>0 : number Date.prototype.setMinutes(0); >Date.prototype.setMinutes(0) : number ->Date.prototype.setMinutes : (min: number, sec?: number, ms?: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setMinutes : (min: number, sec?: number, ms?: number) => number +>Date.prototype.setMinutes : (min: number, sec?: number, ms?: number) => number, Symbol(Date.setMinutes, Decl(lib.d.ts, 714, 52)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setMinutes : (min: number, sec?: number, ms?: number) => number, Symbol(Date.setMinutes, Decl(lib.d.ts, 714, 52)) +>0 : number Date.prototype.setUTCMinutes(0); >Date.prototype.setUTCMinutes(0) : number ->Date.prototype.setUTCMinutes : (min: number, sec?: number, ms?: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setUTCMinutes : (min: number, sec?: number, ms?: number) => number +>Date.prototype.setUTCMinutes : (min: number, sec?: number, ms?: number) => number, Symbol(Date.setUTCMinutes, Decl(lib.d.ts, 721, 63)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setUTCMinutes : (min: number, sec?: number, ms?: number) => number, Symbol(Date.setUTCMinutes, Decl(lib.d.ts, 721, 63)) +>0 : number Date.prototype.setHours(0); >Date.prototype.setHours(0) : number ->Date.prototype.setHours : (hours: number, min?: number, sec?: number, ms?: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setHours : (hours: number, min?: number, sec?: number, ms?: number) => number +>Date.prototype.setHours : (hours: number, min?: number, sec?: number, ms?: number) => number, Symbol(Date.setHours, Decl(lib.d.ts, 728, 66)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setHours : (hours: number, min?: number, sec?: number, ms?: number) => number, Symbol(Date.setHours, Decl(lib.d.ts, 728, 66)) +>0 : number Date.prototype.setUTCHours(0); >Date.prototype.setUTCHours(0) : number ->Date.prototype.setUTCHours : (hours: number, min?: number, sec?: number, ms?: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setUTCHours : (hours: number, min?: number, sec?: number, ms?: number) => number +>Date.prototype.setUTCHours : (hours: number, min?: number, sec?: number, ms?: number) => number, Symbol(Date.setUTCHours, Decl(lib.d.ts, 736, 77)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setUTCHours : (hours: number, min?: number, sec?: number, ms?: number) => number, Symbol(Date.setUTCHours, Decl(lib.d.ts, 736, 77)) +>0 : number Date.prototype.setDate(0); >Date.prototype.setDate(0) : number ->Date.prototype.setDate : (date: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setDate : (date: number) => number +>Date.prototype.setDate : (date: number) => number, Symbol(Date.setDate, Decl(lib.d.ts, 744, 80)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setDate : (date: number) => number, Symbol(Date.setDate, Decl(lib.d.ts, 744, 80)) +>0 : number Date.prototype.setUTCDate(0); >Date.prototype.setUTCDate(0) : number ->Date.prototype.setUTCDate : (date: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setUTCDate : (date: number) => number +>Date.prototype.setUTCDate : (date: number) => number, Symbol(Date.setUTCDate, Decl(lib.d.ts, 749, 34)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setUTCDate : (date: number) => number, Symbol(Date.setUTCDate, Decl(lib.d.ts, 749, 34)) +>0 : number Date.prototype.setMonth(0); >Date.prototype.setMonth(0) : number ->Date.prototype.setMonth : (month: number, date?: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setMonth : (month: number, date?: number) => number +>Date.prototype.setMonth : (month: number, date?: number) => number, Symbol(Date.setMonth, Decl(lib.d.ts, 754, 37)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setMonth : (month: number, date?: number) => number, Symbol(Date.setMonth, Decl(lib.d.ts, 754, 37)) +>0 : number Date.prototype.setUTCMonth(0); >Date.prototype.setUTCMonth(0) : number ->Date.prototype.setUTCMonth : (month: number, date?: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setUTCMonth : (month: number, date?: number) => number +>Date.prototype.setUTCMonth : (month: number, date?: number) => number, Symbol(Date.setUTCMonth, Decl(lib.d.ts, 760, 51)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setUTCMonth : (month: number, date?: number) => number, Symbol(Date.setUTCMonth, Decl(lib.d.ts, 760, 51)) +>0 : number Date.prototype.setFullYear(0); >Date.prototype.setFullYear(0) : number ->Date.prototype.setFullYear : (year: number, month?: number, date?: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setFullYear : (year: number, month?: number, date?: number) => number +>Date.prototype.setFullYear : (year: number, month?: number, date?: number) => number, Symbol(Date.setFullYear, Decl(lib.d.ts, 766, 54)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setFullYear : (year: number, month?: number, date?: number) => number, Symbol(Date.setFullYear, Decl(lib.d.ts, 766, 54)) +>0 : number Date.prototype.setUTCFullYear(0); >Date.prototype.setUTCFullYear(0) : number ->Date.prototype.setUTCFullYear : (year: number, month?: number, date?: number) => number ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->setUTCFullYear : (year: number, month?: number, date?: number) => number +>Date.prototype.setUTCFullYear : (year: number, month?: number, date?: number) => number, Symbol(Date.setUTCFullYear, Decl(lib.d.ts, 773, 69)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>setUTCFullYear : (year: number, month?: number, date?: number) => number, Symbol(Date.setUTCFullYear, Decl(lib.d.ts, 773, 69)) +>0 : number Date.prototype.toUTCString(); >Date.prototype.toUTCString() : string ->Date.prototype.toUTCString : () => string ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->toUTCString : () => string +>Date.prototype.toUTCString : () => string, Symbol(Date.toUTCString, Decl(lib.d.ts, 780, 72)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>toUTCString : () => string, Symbol(Date.toUTCString, Decl(lib.d.ts, 780, 72)) Date.prototype.toISOString(); >Date.prototype.toISOString() : string ->Date.prototype.toISOString : () => string ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->toISOString : () => string +>Date.prototype.toISOString : () => string, Symbol(Date.toISOString, Decl(lib.d.ts, 782, 26)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>toISOString : () => string, Symbol(Date.toISOString, Decl(lib.d.ts, 782, 26)) Date.prototype.toJSON(null); >Date.prototype.toJSON(null) : string ->Date.prototype.toJSON : (key?: any) => string ->Date.prototype : Date ->Date : DateConstructor ->prototype : Date ->toJSON : (key?: any) => string +>Date.prototype.toJSON : (key?: any) => string, Symbol(Date.toJSON, Decl(lib.d.ts, 784, 26)) +>Date.prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>prototype : Date, Symbol(DateConstructor.prototype, Decl(lib.d.ts, 794, 15)) +>toJSON : (key?: any) => string, Symbol(Date.toJSON, Decl(lib.d.ts, 784, 26)) +>null : null diff --git a/tests/baselines/reference/library_ObjectPrototypeProperties.types b/tests/baselines/reference/library_ObjectPrototypeProperties.types index c848ccbe512..eef4b1ca382 100644 --- a/tests/baselines/reference/library_ObjectPrototypeProperties.types +++ b/tests/baselines/reference/library_ObjectPrototypeProperties.types @@ -2,58 +2,60 @@ // Properties of the Object Prototype Object as per ES5 spec // http://www.ecma-international.org/ecma-262/5.1/#sec-15.2.4 Object.prototype.constructor; ->Object.prototype.constructor : Function ->Object.prototype : Object ->Object : ObjectConstructor ->prototype : Object ->constructor : Function +>Object.prototype.constructor : Function, Symbol(Object.constructor, Decl(lib.d.ts, 94, 18)) +>Object.prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>constructor : Function, Symbol(Object.constructor, Decl(lib.d.ts, 94, 18)) Object.prototype.toString(); >Object.prototype.toString() : string ->Object.prototype.toString : () => string ->Object.prototype : Object ->Object : ObjectConstructor ->prototype : Object ->toString : () => string +>Object.prototype.toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) +>Object.prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) Object.prototype.toLocaleString(); >Object.prototype.toLocaleString() : string ->Object.prototype.toLocaleString : () => string ->Object.prototype : Object ->Object : ObjectConstructor ->prototype : Object ->toLocaleString : () => string +>Object.prototype.toLocaleString : () => string, Symbol(Object.toLocaleString, Decl(lib.d.ts, 99, 23)) +>Object.prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>toLocaleString : () => string, Symbol(Object.toLocaleString, Decl(lib.d.ts, 99, 23)) Object.prototype.valueOf(); >Object.prototype.valueOf() : Object ->Object.prototype.valueOf : () => Object ->Object.prototype : Object ->Object : ObjectConstructor ->prototype : Object ->valueOf : () => Object +>Object.prototype.valueOf : () => Object, Symbol(Object.valueOf, Decl(lib.d.ts, 102, 29)) +>Object.prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>valueOf : () => Object, Symbol(Object.valueOf, Decl(lib.d.ts, 102, 29)) Object.prototype.hasOwnProperty("string"); >Object.prototype.hasOwnProperty("string") : boolean ->Object.prototype.hasOwnProperty : (v: string) => boolean ->Object.prototype : Object ->Object : ObjectConstructor ->prototype : Object ->hasOwnProperty : (v: string) => boolean +>Object.prototype.hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>Object.prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>"string" : string Object.prototype.isPrototypeOf(Object); >Object.prototype.isPrototypeOf(Object) : boolean ->Object.prototype.isPrototypeOf : (v: Object) => boolean ->Object.prototype : Object ->Object : ObjectConstructor ->prototype : Object ->isPrototypeOf : (v: Object) => boolean ->Object : ObjectConstructor +>Object.prototype.isPrototypeOf : (v: Object) => boolean, Symbol(Object.isPrototypeOf, Decl(lib.d.ts, 111, 39)) +>Object.prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>isPrototypeOf : (v: Object) => boolean, Symbol(Object.isPrototypeOf, Decl(lib.d.ts, 111, 39)) +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) Object.prototype.propertyIsEnumerable("string"); >Object.prototype.propertyIsEnumerable("string") : boolean ->Object.prototype.propertyIsEnumerable : (v: string) => boolean ->Object.prototype : Object ->Object : ObjectConstructor ->prototype : Object ->propertyIsEnumerable : (v: string) => boolean +>Object.prototype.propertyIsEnumerable : (v: string) => boolean, Symbol(Object.propertyIsEnumerable, Decl(lib.d.ts, 117, 38)) +>Object.prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>prototype : Object, Symbol(ObjectConstructor.prototype, Decl(lib.d.ts, 129, 22)) +>propertyIsEnumerable : (v: string) => boolean, Symbol(Object.propertyIsEnumerable, Decl(lib.d.ts, 117, 38)) +>"string" : string diff --git a/tests/baselines/reference/library_RegExpExecArraySlice.types b/tests/baselines/reference/library_RegExpExecArraySlice.types index ba5c3ccfb21..488bc3cda25 100644 --- a/tests/baselines/reference/library_RegExpExecArraySlice.types +++ b/tests/baselines/reference/library_RegExpExecArraySlice.types @@ -1,24 +1,27 @@ === tests/cases/compiler/library_RegExpExecArraySlice.ts === // RegExpExecArray.slice can have zero, one, or two arguments var regExpExecArrayValue: RegExpExecArray; ->regExpExecArrayValue : RegExpExecArray ->RegExpExecArray : RegExpExecArray +>regExpExecArrayValue : RegExpExecArray, Symbol(regExpExecArrayValue, Decl(library_RegExpExecArraySlice.ts, 1, 3)) +>RegExpExecArray : RegExpExecArray, Symbol(RegExpExecArray, Decl(lib.d.ts, 820, 1)) regExpExecArrayValue.slice(); >regExpExecArrayValue.slice() : string[] ->regExpExecArrayValue.slice : (start?: number, end?: number) => string[] ->regExpExecArrayValue : RegExpExecArray ->slice : (start?: number, end?: number) => string[] +>regExpExecArrayValue.slice : (start?: number, end?: number) => string[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15)) +>regExpExecArrayValue : RegExpExecArray, Symbol(regExpExecArrayValue, Decl(library_RegExpExecArraySlice.ts, 1, 3)) +>slice : (start?: number, end?: number) => string[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15)) regExpExecArrayValue.slice(0); >regExpExecArrayValue.slice(0) : string[] ->regExpExecArrayValue.slice : (start?: number, end?: number) => string[] ->regExpExecArrayValue : RegExpExecArray ->slice : (start?: number, end?: number) => string[] +>regExpExecArrayValue.slice : (start?: number, end?: number) => string[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15)) +>regExpExecArrayValue : RegExpExecArray, Symbol(regExpExecArrayValue, Decl(library_RegExpExecArraySlice.ts, 1, 3)) +>slice : (start?: number, end?: number) => string[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15)) +>0 : number regExpExecArrayValue.slice(0,1); >regExpExecArrayValue.slice(0,1) : string[] ->regExpExecArrayValue.slice : (start?: number, end?: number) => string[] ->regExpExecArrayValue : RegExpExecArray ->slice : (start?: number, end?: number) => string[] +>regExpExecArrayValue.slice : (start?: number, end?: number) => string[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15)) +>regExpExecArrayValue : RegExpExecArray, Symbol(regExpExecArrayValue, Decl(library_RegExpExecArraySlice.ts, 1, 3)) +>slice : (start?: number, end?: number) => string[], Symbol(Array.slice, Decl(lib.d.ts, 1048, 15)) +>0 : number +>1 : number diff --git a/tests/baselines/reference/library_StringSlice.types b/tests/baselines/reference/library_StringSlice.types index c40c4d744e0..4283211cb30 100644 --- a/tests/baselines/reference/library_StringSlice.types +++ b/tests/baselines/reference/library_StringSlice.types @@ -2,25 +2,28 @@ // String.prototype.slice can have zero, one, or two arguments String.prototype.slice(); >String.prototype.slice() : string ->String.prototype.slice : (start?: number, end?: number) => string ->String.prototype : String ->String : StringConstructor ->prototype : String ->slice : (start?: number, end?: number) => string +>String.prototype.slice : (start?: number, end?: number) => string, Symbol(String.slice, Decl(lib.d.ts, 369, 35)) +>String.prototype : String, Symbol(StringConstructor.prototype, Decl(lib.d.ts, 435, 26)) +>String : StringConstructor, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) +>prototype : String, Symbol(StringConstructor.prototype, Decl(lib.d.ts, 435, 26)) +>slice : (start?: number, end?: number) => string, Symbol(String.slice, Decl(lib.d.ts, 369, 35)) String.prototype.slice(0); >String.prototype.slice(0) : string ->String.prototype.slice : (start?: number, end?: number) => string ->String.prototype : String ->String : StringConstructor ->prototype : String ->slice : (start?: number, end?: number) => string +>String.prototype.slice : (start?: number, end?: number) => string, Symbol(String.slice, Decl(lib.d.ts, 369, 35)) +>String.prototype : String, Symbol(StringConstructor.prototype, Decl(lib.d.ts, 435, 26)) +>String : StringConstructor, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) +>prototype : String, Symbol(StringConstructor.prototype, Decl(lib.d.ts, 435, 26)) +>slice : (start?: number, end?: number) => string, Symbol(String.slice, Decl(lib.d.ts, 369, 35)) +>0 : number String.prototype.slice(0,1); >String.prototype.slice(0,1) : string ->String.prototype.slice : (start?: number, end?: number) => string ->String.prototype : String ->String : StringConstructor ->prototype : String ->slice : (start?: number, end?: number) => string +>String.prototype.slice : (start?: number, end?: number) => string, Symbol(String.slice, Decl(lib.d.ts, 369, 35)) +>String.prototype : String, Symbol(StringConstructor.prototype, Decl(lib.d.ts, 435, 26)) +>String : StringConstructor, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) +>prototype : String, Symbol(StringConstructor.prototype, Decl(lib.d.ts, 435, 26)) +>slice : (start?: number, end?: number) => string, Symbol(String.slice, Decl(lib.d.ts, 369, 35)) +>0 : number +>1 : number diff --git a/tests/baselines/reference/listFailure.types b/tests/baselines/reference/listFailure.types index de3c33bbfad..96abf54a87e 100644 --- a/tests/baselines/reference/listFailure.types +++ b/tests/baselines/reference/listFailure.types @@ -1,127 +1,129 @@ === tests/cases/compiler/listFailure.ts === module Editor { ->Editor : typeof Editor +>Editor : typeof Editor, Symbol(Editor, Decl(listFailure.ts, 0, 0)) export class Buffer { ->Buffer : Buffer +>Buffer : Buffer, Symbol(Buffer, Decl(listFailure.ts, 0, 15)) lines: List = ListMakeHead(); ->lines : List ->List : List ->Line : Line +>lines : List, Symbol(lines, Decl(listFailure.ts, 2, 25)) +>List : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>Line : Line, Symbol(Line, Decl(listFailure.ts, 37, 5)) >ListMakeHead() : List ->ListMakeHead : () => List ->Line : Line +>ListMakeHead : () => List, Symbol(ListMakeHead, Decl(listFailure.ts, 16, 5)) +>Line : Line, Symbol(Line, Decl(listFailure.ts, 37, 5)) addLine(lineText: string): List { ->addLine : (lineText: string) => List ->lineText : string ->List : List ->Line : Line +>addLine : (lineText: string) => List, Symbol(addLine, Decl(listFailure.ts, 3, 46)) +>lineText : string, Symbol(lineText, Decl(listFailure.ts, 5, 16)) +>List : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>Line : Line, Symbol(Line, Decl(listFailure.ts, 37, 5)) var line: Line = new Line(); ->line : Line ->Line : Line +>line : Line, Symbol(line, Decl(listFailure.ts, 7, 15)) +>Line : Line, Symbol(Line, Decl(listFailure.ts, 37, 5)) >new Line() : Line ->Line : typeof Line +>Line : typeof Line, Symbol(Line, Decl(listFailure.ts, 37, 5)) var lineEntry = this.lines.add(line); ->lineEntry : List +>lineEntry : List, Symbol(lineEntry, Decl(listFailure.ts, 8, 15)) >this.lines.add(line) : List ->this.lines.add : (data: Line) => List ->this.lines : List ->this : Buffer ->lines : List ->add : (data: Line) => List ->line : Line +>this.lines.add : (data: Line) => List, Symbol(List.add, Decl(listFailure.ts, 27, 29)) +>this.lines : List, Symbol(lines, Decl(listFailure.ts, 2, 25)) +>this : Buffer, Symbol(Buffer, Decl(listFailure.ts, 0, 15)) +>lines : List, Symbol(lines, Decl(listFailure.ts, 2, 25)) +>add : (data: Line) => List, Symbol(List.add, Decl(listFailure.ts, 27, 29)) +>line : Line, Symbol(line, Decl(listFailure.ts, 7, 15)) return lineEntry; ->lineEntry : List +>lineEntry : List, Symbol(lineEntry, Decl(listFailure.ts, 8, 15)) } } export function ListRemoveEntry(entry: List): List { ->ListRemoveEntry : (entry: List) => List ->U : U ->entry : List ->List : List ->U : U ->List : List ->U : U +>ListRemoveEntry : (entry: List) => List, Symbol(ListRemoveEntry, Decl(listFailure.ts, 12, 5)) +>U : U, Symbol(U, Decl(listFailure.ts, 14, 36)) +>entry : List, Symbol(entry, Decl(listFailure.ts, 14, 39)) +>List : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>U : U, Symbol(U, Decl(listFailure.ts, 14, 36)) +>List : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>U : U, Symbol(U, Decl(listFailure.ts, 14, 36)) return entry; ->entry : List +>entry : List, Symbol(entry, Decl(listFailure.ts, 14, 39)) } export function ListMakeHead(): List { ->ListMakeHead : () => List ->U : U ->List : List ->U : U +>ListMakeHead : () => List, Symbol(ListMakeHead, Decl(listFailure.ts, 16, 5)) +>U : U, Symbol(U, Decl(listFailure.ts, 18, 33)) +>List : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>U : U, Symbol(U, Decl(listFailure.ts, 18, 33)) return null; +>null : null } export function ListMakeEntry(data: U): List { ->ListMakeEntry : (data: U) => List ->U : U ->data : U ->U : U ->List : List ->U : U +>ListMakeEntry : (data: U) => List, Symbol(ListMakeEntry, Decl(listFailure.ts, 20, 5)) +>U : U, Symbol(U, Decl(listFailure.ts, 22, 34)) +>data : U, Symbol(data, Decl(listFailure.ts, 22, 37)) +>U : U, Symbol(U, Decl(listFailure.ts, 22, 34)) +>List : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>U : U, Symbol(U, Decl(listFailure.ts, 22, 34)) return null; +>null : null } class List { ->List : List ->T : T +>List : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>T : T, Symbol(T, Decl(listFailure.ts, 26, 15)) public next: List; ->next : List ->List : List ->T : T +>next : List, Symbol(next, Decl(listFailure.ts, 26, 19)) +>List : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>T : T, Symbol(T, Decl(listFailure.ts, 26, 15)) add(data: T): List { ->add : (data: T) => List ->data : T ->T : T ->List : List ->T : T +>add : (data: T) => List, Symbol(add, Decl(listFailure.ts, 27, 29)) +>data : T, Symbol(data, Decl(listFailure.ts, 29, 12)) +>T : T, Symbol(T, Decl(listFailure.ts, 26, 15)) +>List : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>T : T, Symbol(T, Decl(listFailure.ts, 26, 15)) this.next = ListMakeEntry(data); >this.next = ListMakeEntry(data) : List ->this.next : List ->this : List ->next : List +>this.next : List, Symbol(next, Decl(listFailure.ts, 26, 19)) +>this : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>next : List, Symbol(next, Decl(listFailure.ts, 26, 19)) >ListMakeEntry(data) : List ->ListMakeEntry : (data: U) => List ->data : T +>ListMakeEntry : (data: U) => List, Symbol(ListMakeEntry, Decl(listFailure.ts, 20, 5)) +>data : T, Symbol(data, Decl(listFailure.ts, 29, 12)) return this.next; ->this.next : List ->this : List ->next : List +>this.next : List, Symbol(next, Decl(listFailure.ts, 26, 19)) +>this : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>next : List, Symbol(next, Decl(listFailure.ts, 26, 19)) } popEntry(head: List): List { ->popEntry : (head: List) => List ->head : List ->List : List ->T : T ->List : List ->T : T +>popEntry : (head: List) => List, Symbol(popEntry, Decl(listFailure.ts, 32, 9)) +>head : List, Symbol(head, Decl(listFailure.ts, 34, 17)) +>List : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>T : T, Symbol(T, Decl(listFailure.ts, 26, 15)) +>List : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>T : T, Symbol(T, Decl(listFailure.ts, 26, 15)) return (ListRemoveEntry(this.next)); >(ListRemoveEntry(this.next)) : List >ListRemoveEntry(this.next) : List ->ListRemoveEntry : (entry: List) => List ->this.next : List ->this : List ->next : List +>ListRemoveEntry : (entry: List) => List, Symbol(ListRemoveEntry, Decl(listFailure.ts, 12, 5)) +>this.next : List, Symbol(next, Decl(listFailure.ts, 26, 19)) +>this : List, Symbol(List, Decl(listFailure.ts, 24, 5)) +>next : List, Symbol(next, Decl(listFailure.ts, 26, 19)) } } export class Line {} ->Line : Line +>Line : Line, Symbol(Line, Decl(listFailure.ts, 37, 5)) } diff --git a/tests/baselines/reference/literals1.types b/tests/baselines/reference/literals1.types index f1d6736fdca..72f1142b11c 100644 --- a/tests/baselines/reference/literals1.types +++ b/tests/baselines/reference/literals1.types @@ -1,43 +1,57 @@ === tests/cases/compiler/literals1.ts === var a = 42; ->a : number +>a : number, Symbol(a, Decl(literals1.ts, 0, 3)) +>42 : number var b = 0xFA34; ->b : number +>b : number, Symbol(b, Decl(literals1.ts, 1, 3)) +>0xFA34 : number var c = 0.1715; ->c : number +>c : number, Symbol(c, Decl(literals1.ts, 2, 3)) +>0.1715 : number var d = 3.14E5; ->d : number +>d : number, Symbol(d, Decl(literals1.ts, 3, 3)) +>3.14E5 : number var e = 8.14e-5; ->e : number +>e : number, Symbol(e, Decl(literals1.ts, 4, 3)) +>8.14e-5 : number var f = true; ->f : boolean +>f : boolean, Symbol(f, Decl(literals1.ts, 6, 3)) +>true : boolean var g = false; ->g : boolean +>g : boolean, Symbol(g, Decl(literals1.ts, 7, 3)) +>false : boolean var h = ""; ->h : string +>h : string, Symbol(h, Decl(literals1.ts, 9, 3)) +>"" : string var i = "hi"; ->i : string +>i : string, Symbol(i, Decl(literals1.ts, 10, 3)) +>"hi" : string var j = ''; ->j : string +>j : string, Symbol(j, Decl(literals1.ts, 11, 3)) +>'' : string var k = 'q\tq'; ->k : string +>k : string, Symbol(k, Decl(literals1.ts, 12, 3)) +>'q\tq' : string var m = /q/; ->m : RegExp +>m : RegExp, Symbol(m, Decl(literals1.ts, 14, 3)) +>/q/ : RegExp var n = /\d+/g; ->n : RegExp +>n : RegExp, Symbol(n, Decl(literals1.ts, 15, 3)) +>/\d+/g : RegExp var o = /[3-5]+/i; ->o : RegExp +>o : RegExp, Symbol(o, Decl(literals1.ts, 16, 3)) +>/[3-5]+/i : RegExp diff --git a/tests/baselines/reference/localAliasExportAssignment.types b/tests/baselines/reference/localAliasExportAssignment.types index 5ea0d3085c1..711c25be819 100644 --- a/tests/baselines/reference/localAliasExportAssignment.types +++ b/tests/baselines/reference/localAliasExportAssignment.types @@ -1,21 +1,21 @@ === tests/cases/compiler/localAliasExportAssignment_1.ts === /// import connect = require('localAliasExportAssignment_0'); ->connect : () => any +>connect : () => any, Symbol(connect, Decl(localAliasExportAssignment_1.ts, 0, 0)) connect(); >connect() : any ->connect : () => any +>connect : () => any, Symbol(connect, Decl(localAliasExportAssignment_1.ts, 0, 0)) === tests/cases/compiler/localAliasExportAssignment_0.ts === var server: { ->server : () => any +>server : () => any, Symbol(server, Decl(localAliasExportAssignment_0.ts, 0, 3)) (): any; }; export = server; ->server : () => any +>server : () => any, Symbol(server, Decl(localAliasExportAssignment_0.ts, 0, 3)) diff --git a/tests/baselines/reference/localImportNameVsGlobalName.types b/tests/baselines/reference/localImportNameVsGlobalName.types index 7cb45208e81..1d39808b0e0 100644 --- a/tests/baselines/reference/localImportNameVsGlobalName.types +++ b/tests/baselines/reference/localImportNameVsGlobalName.types @@ -1,46 +1,46 @@ === tests/cases/compiler/localImportNameVsGlobalName.ts === module Keyboard { ->Keyboard : typeof Keyboard +>Keyboard : typeof Keyboard, Symbol(Keyboard, Decl(localImportNameVsGlobalName.ts, 0, 0)) export enum Key { UP, DOWN, LEFT, RIGHT } ->Key : Key ->UP : Key ->DOWN : Key ->LEFT : Key ->RIGHT : Key +>Key : Key, Symbol(Key, Decl(localImportNameVsGlobalName.ts, 0, 17)) +>UP : Key, Symbol(Key.UP, Decl(localImportNameVsGlobalName.ts, 1, 19)) +>DOWN : Key, Symbol(Key.DOWN, Decl(localImportNameVsGlobalName.ts, 1, 23)) +>LEFT : Key, Symbol(Key.LEFT, Decl(localImportNameVsGlobalName.ts, 1, 29)) +>RIGHT : Key, Symbol(Key.RIGHT, Decl(localImportNameVsGlobalName.ts, 1, 35)) } module App { ->App : typeof App +>App : typeof App, Symbol(App, Decl(localImportNameVsGlobalName.ts, 2, 1)) import Key = Keyboard.Key; ->Key : typeof Key ->Keyboard : typeof Keyboard ->Key : Key +>Key : typeof Key, Symbol(Key, Decl(localImportNameVsGlobalName.ts, 4, 12)) +>Keyboard : typeof Keyboard, Symbol(Keyboard, Decl(localImportNameVsGlobalName.ts, 0, 0)) +>Key : Key, Symbol(Key, Decl(localImportNameVsGlobalName.ts, 0, 17)) export function foo(key: Key): void {} ->foo : (key: Key) => void ->key : Key ->Key : Key +>foo : (key: Key) => void, Symbol(foo, Decl(localImportNameVsGlobalName.ts, 5, 28)) +>key : Key, Symbol(key, Decl(localImportNameVsGlobalName.ts, 7, 22)) +>Key : Key, Symbol(Key, Decl(localImportNameVsGlobalName.ts, 4, 12)) foo(Key.UP); >foo(Key.UP) : void ->foo : (key: Key) => void ->Key.UP : Key ->Key : typeof Key ->UP : Key +>foo : (key: Key) => void, Symbol(foo, Decl(localImportNameVsGlobalName.ts, 5, 28)) +>Key.UP : Key, Symbol(Key.UP, Decl(localImportNameVsGlobalName.ts, 1, 19)) +>Key : typeof Key, Symbol(Key, Decl(localImportNameVsGlobalName.ts, 4, 12)) +>UP : Key, Symbol(Key.UP, Decl(localImportNameVsGlobalName.ts, 1, 19)) foo(Key.DOWN); >foo(Key.DOWN) : void ->foo : (key: Key) => void ->Key.DOWN : Key ->Key : typeof Key ->DOWN : Key +>foo : (key: Key) => void, Symbol(foo, Decl(localImportNameVsGlobalName.ts, 5, 28)) +>Key.DOWN : Key, Symbol(Key.DOWN, Decl(localImportNameVsGlobalName.ts, 1, 23)) +>Key : typeof Key, Symbol(Key, Decl(localImportNameVsGlobalName.ts, 4, 12)) +>DOWN : Key, Symbol(Key.DOWN, Decl(localImportNameVsGlobalName.ts, 1, 23)) foo(Key.LEFT); >foo(Key.LEFT) : void ->foo : (key: Key) => void ->Key.LEFT : Key ->Key : typeof Key ->LEFT : Key +>foo : (key: Key) => void, Symbol(foo, Decl(localImportNameVsGlobalName.ts, 5, 28)) +>Key.LEFT : Key, Symbol(Key.LEFT, Decl(localImportNameVsGlobalName.ts, 1, 29)) +>Key : typeof Key, Symbol(Key, Decl(localImportNameVsGlobalName.ts, 4, 12)) +>LEFT : Key, Symbol(Key.LEFT, Decl(localImportNameVsGlobalName.ts, 1, 29)) } diff --git a/tests/baselines/reference/localVariablesReturnedFromCatchBlocks.types b/tests/baselines/reference/localVariablesReturnedFromCatchBlocks.types index 81ee0ddc74a..f57e11f1248 100644 --- a/tests/baselines/reference/localVariablesReturnedFromCatchBlocks.types +++ b/tests/baselines/reference/localVariablesReturnedFromCatchBlocks.types @@ -1,18 +1,18 @@ === tests/cases/compiler/localVariablesReturnedFromCatchBlocks.ts === function f() { ->f : () => any +>f : () => any, Symbol(f, Decl(localVariablesReturnedFromCatchBlocks.ts, 0, 0)) try { } catch (e) { ->e : any +>e : any, Symbol(e, Decl(localVariablesReturnedFromCatchBlocks.ts, 2, 13)) var stack2 = e.stack; ->stack2 : any +>stack2 : any, Symbol(stack2, Decl(localVariablesReturnedFromCatchBlocks.ts, 3, 11)) >e.stack : any ->e : any +>e : any, Symbol(e, Decl(localVariablesReturnedFromCatchBlocks.ts, 2, 13)) >stack : any return stack2; //error TS2095: Could not find symbol 'stack2'. ->stack2 : any +>stack2 : any, Symbol(stack2, Decl(localVariablesReturnedFromCatchBlocks.ts, 3, 11)) } } diff --git a/tests/baselines/reference/logicalAndOperatorWithEveryType.types b/tests/baselines/reference/logicalAndOperatorWithEveryType.types index 54f04926e98..635c72e0532 100644 --- a/tests/baselines/reference/logicalAndOperatorWithEveryType.types +++ b/tests/baselines/reference/logicalAndOperatorWithEveryType.types @@ -3,613 +3,633 @@ // type as the second operand. enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(logicalAndOperatorWithEveryType.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(logicalAndOperatorWithEveryType.ts, 3, 8)) +>b : E, Symbol(E.b, Decl(logicalAndOperatorWithEveryType.ts, 3, 11)) +>c : E, Symbol(E.c, Decl(logicalAndOperatorWithEveryType.ts, 3, 14)) var a1: any; ->a1 : any +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) var a2: boolean; ->a2 : boolean +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) var a3: number ->a3 : number +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) var a4: string; ->a4 : string +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) var a5: void; ->a5 : void +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) var a6: E; ->a6 : E ->E : E +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) +>E : E, Symbol(E, Decl(logicalAndOperatorWithEveryType.ts, 0, 0)) var a7: {}; ->a7 : {} +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) var a8: string[]; ->a8 : string[] +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) var ra1 = a1 && a1; ->ra1 : any +>ra1 : any, Symbol(ra1, Decl(logicalAndOperatorWithEveryType.ts, 14, 3)) >a1 && a1 : any ->a1 : any ->a1 : any +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) var ra2 = a2 && a1; ->ra2 : any +>ra2 : any, Symbol(ra2, Decl(logicalAndOperatorWithEveryType.ts, 15, 3)) >a2 && a1 : any ->a2 : boolean ->a1 : any +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) var ra3 = a3 && a1; ->ra3 : any +>ra3 : any, Symbol(ra3, Decl(logicalAndOperatorWithEveryType.ts, 16, 3)) >a3 && a1 : any ->a3 : number ->a1 : any +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) var ra4 = a4 && a1; ->ra4 : any +>ra4 : any, Symbol(ra4, Decl(logicalAndOperatorWithEveryType.ts, 17, 3)) >a4 && a1 : any ->a4 : string ->a1 : any +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) var ra5 = a5 && a1; ->ra5 : any +>ra5 : any, Symbol(ra5, Decl(logicalAndOperatorWithEveryType.ts, 18, 3)) >a5 && a1 : any ->a5 : void ->a1 : any +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) var ra6 = a6 && a1; ->ra6 : any +>ra6 : any, Symbol(ra6, Decl(logicalAndOperatorWithEveryType.ts, 19, 3)) >a6 && a1 : any ->a6 : E ->a1 : any +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) var ra7 = a7 && a1; ->ra7 : any +>ra7 : any, Symbol(ra7, Decl(logicalAndOperatorWithEveryType.ts, 20, 3)) >a7 && a1 : any ->a7 : {} ->a1 : any +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) var ra8 = a8 && a1; ->ra8 : any +>ra8 : any, Symbol(ra8, Decl(logicalAndOperatorWithEveryType.ts, 21, 3)) >a8 && a1 : any ->a8 : string[] ->a1 : any +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) var ra9 = null && a1; ->ra9 : any +>ra9 : any, Symbol(ra9, Decl(logicalAndOperatorWithEveryType.ts, 22, 3)) >null && a1 : any ->a1 : any +>null : null +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) var ra10 = undefined && a1; ->ra10 : any +>ra10 : any, Symbol(ra10, Decl(logicalAndOperatorWithEveryType.ts, 23, 3)) >undefined && a1 : any ->undefined : undefined ->a1 : any +>undefined : undefined, Symbol(undefined) +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) var rb1 = a1 && a2; ->rb1 : boolean +>rb1 : boolean, Symbol(rb1, Decl(logicalAndOperatorWithEveryType.ts, 25, 3)) >a1 && a2 : boolean ->a1 : any ->a2 : boolean +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) var rb2 = a2 && a2; ->rb2 : boolean +>rb2 : boolean, Symbol(rb2, Decl(logicalAndOperatorWithEveryType.ts, 26, 3)) >a2 && a2 : boolean ->a2 : boolean ->a2 : boolean +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) var rb3 = a3 && a2; ->rb3 : boolean +>rb3 : boolean, Symbol(rb3, Decl(logicalAndOperatorWithEveryType.ts, 27, 3)) >a3 && a2 : boolean ->a3 : number ->a2 : boolean +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) var rb4 = a4 && a2; ->rb4 : boolean +>rb4 : boolean, Symbol(rb4, Decl(logicalAndOperatorWithEveryType.ts, 28, 3)) >a4 && a2 : boolean ->a4 : string ->a2 : boolean +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) var rb5 = a5 && a2; ->rb5 : boolean +>rb5 : boolean, Symbol(rb5, Decl(logicalAndOperatorWithEveryType.ts, 29, 3)) >a5 && a2 : boolean ->a5 : void ->a2 : boolean +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) var rb6 = a6 && a2; ->rb6 : boolean +>rb6 : boolean, Symbol(rb6, Decl(logicalAndOperatorWithEveryType.ts, 30, 3)) >a6 && a2 : boolean ->a6 : E ->a2 : boolean +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) var rb7 = a7 && a2; ->rb7 : boolean +>rb7 : boolean, Symbol(rb7, Decl(logicalAndOperatorWithEveryType.ts, 31, 3)) >a7 && a2 : boolean ->a7 : {} ->a2 : boolean +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) var rb8 = a8 && a2; ->rb8 : boolean +>rb8 : boolean, Symbol(rb8, Decl(logicalAndOperatorWithEveryType.ts, 32, 3)) >a8 && a2 : boolean ->a8 : string[] ->a2 : boolean +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) var rb9 = null && a2; ->rb9 : boolean +>rb9 : boolean, Symbol(rb9, Decl(logicalAndOperatorWithEveryType.ts, 33, 3)) >null && a2 : boolean ->a2 : boolean +>null : null +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) var rb10 = undefined && a2; ->rb10 : boolean +>rb10 : boolean, Symbol(rb10, Decl(logicalAndOperatorWithEveryType.ts, 34, 3)) >undefined && a2 : boolean ->undefined : undefined ->a2 : boolean +>undefined : undefined, Symbol(undefined) +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) var rc1 = a1 && a3; ->rc1 : number +>rc1 : number, Symbol(rc1, Decl(logicalAndOperatorWithEveryType.ts, 36, 3)) >a1 && a3 : number ->a1 : any ->a3 : number +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) var rc2 = a2 && a3; ->rc2 : number +>rc2 : number, Symbol(rc2, Decl(logicalAndOperatorWithEveryType.ts, 37, 3)) >a2 && a3 : number ->a2 : boolean ->a3 : number +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) var rc3 = a3 && a3; ->rc3 : number +>rc3 : number, Symbol(rc3, Decl(logicalAndOperatorWithEveryType.ts, 38, 3)) >a3 && a3 : number ->a3 : number ->a3 : number +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) var rc4 = a4 && a3; ->rc4 : number +>rc4 : number, Symbol(rc4, Decl(logicalAndOperatorWithEveryType.ts, 39, 3)) >a4 && a3 : number ->a4 : string ->a3 : number +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) var rc5 = a5 && a3; ->rc5 : number +>rc5 : number, Symbol(rc5, Decl(logicalAndOperatorWithEveryType.ts, 40, 3)) >a5 && a3 : number ->a5 : void ->a3 : number +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) var rc6 = a6 && a3; ->rc6 : number +>rc6 : number, Symbol(rc6, Decl(logicalAndOperatorWithEveryType.ts, 41, 3)) >a6 && a3 : number ->a6 : E ->a3 : number +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) var rc7 = a7 && a3; ->rc7 : number +>rc7 : number, Symbol(rc7, Decl(logicalAndOperatorWithEveryType.ts, 42, 3)) >a7 && a3 : number ->a7 : {} ->a3 : number +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) var rc8 = a8 && a3; ->rc8 : number +>rc8 : number, Symbol(rc8, Decl(logicalAndOperatorWithEveryType.ts, 43, 3)) >a8 && a3 : number ->a8 : string[] ->a3 : number +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) var rc9 = null && a3; ->rc9 : number +>rc9 : number, Symbol(rc9, Decl(logicalAndOperatorWithEveryType.ts, 44, 3)) >null && a3 : number ->a3 : number +>null : null +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) var rc10 = undefined && a3; ->rc10 : number +>rc10 : number, Symbol(rc10, Decl(logicalAndOperatorWithEveryType.ts, 45, 3)) >undefined && a3 : number ->undefined : undefined ->a3 : number +>undefined : undefined, Symbol(undefined) +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) var rd1 = a1 && a4; ->rd1 : string +>rd1 : string, Symbol(rd1, Decl(logicalAndOperatorWithEveryType.ts, 47, 3)) >a1 && a4 : string ->a1 : any ->a4 : string +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) var rd2 = a2 && a4; ->rd2 : string +>rd2 : string, Symbol(rd2, Decl(logicalAndOperatorWithEveryType.ts, 48, 3)) >a2 && a4 : string ->a2 : boolean ->a4 : string +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) var rd3 = a3 && a4; ->rd3 : string +>rd3 : string, Symbol(rd3, Decl(logicalAndOperatorWithEveryType.ts, 49, 3)) >a3 && a4 : string ->a3 : number ->a4 : string +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) var rd4 = a4 && a4; ->rd4 : string +>rd4 : string, Symbol(rd4, Decl(logicalAndOperatorWithEveryType.ts, 50, 3)) >a4 && a4 : string ->a4 : string ->a4 : string +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) var rd5 = a5 && a4; ->rd5 : string +>rd5 : string, Symbol(rd5, Decl(logicalAndOperatorWithEveryType.ts, 51, 3)) >a5 && a4 : string ->a5 : void ->a4 : string +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) var rd6 = a6 && a4; ->rd6 : string +>rd6 : string, Symbol(rd6, Decl(logicalAndOperatorWithEveryType.ts, 52, 3)) >a6 && a4 : string ->a6 : E ->a4 : string +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) var rd7 = a7 && a4; ->rd7 : string +>rd7 : string, Symbol(rd7, Decl(logicalAndOperatorWithEveryType.ts, 53, 3)) >a7 && a4 : string ->a7 : {} ->a4 : string +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) var rd8 = a8 && a4; ->rd8 : string +>rd8 : string, Symbol(rd8, Decl(logicalAndOperatorWithEveryType.ts, 54, 3)) >a8 && a4 : string ->a8 : string[] ->a4 : string +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) var rd9 = null && a4; ->rd9 : string +>rd9 : string, Symbol(rd9, Decl(logicalAndOperatorWithEveryType.ts, 55, 3)) >null && a4 : string ->a4 : string +>null : null +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) var rd10 = undefined && a4; ->rd10 : string +>rd10 : string, Symbol(rd10, Decl(logicalAndOperatorWithEveryType.ts, 56, 3)) >undefined && a4 : string ->undefined : undefined ->a4 : string +>undefined : undefined, Symbol(undefined) +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) var re1 = a1 && a5; ->re1 : void +>re1 : void, Symbol(re1, Decl(logicalAndOperatorWithEveryType.ts, 58, 3)) >a1 && a5 : void ->a1 : any ->a5 : void +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) var re2 = a2 && a5; ->re2 : void +>re2 : void, Symbol(re2, Decl(logicalAndOperatorWithEveryType.ts, 59, 3)) >a2 && a5 : void ->a2 : boolean ->a5 : void +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) var re3 = a3 && a5; ->re3 : void +>re3 : void, Symbol(re3, Decl(logicalAndOperatorWithEveryType.ts, 60, 3)) >a3 && a5 : void ->a3 : number ->a5 : void +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) var re4 = a4 && a5; ->re4 : void +>re4 : void, Symbol(re4, Decl(logicalAndOperatorWithEveryType.ts, 61, 3)) >a4 && a5 : void ->a4 : string ->a5 : void +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) var re5 = a5 && a5; ->re5 : void +>re5 : void, Symbol(re5, Decl(logicalAndOperatorWithEveryType.ts, 62, 3)) >a5 && a5 : void ->a5 : void ->a5 : void +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) var re6 = a6 && a5; ->re6 : void +>re6 : void, Symbol(re6, Decl(logicalAndOperatorWithEveryType.ts, 63, 3)) >a6 && a5 : void ->a6 : E ->a5 : void +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) var re7 = a7 && a5; ->re7 : void +>re7 : void, Symbol(re7, Decl(logicalAndOperatorWithEveryType.ts, 64, 3)) >a7 && a5 : void ->a7 : {} ->a5 : void +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) var re8 = a8 && a5; ->re8 : void +>re8 : void, Symbol(re8, Decl(logicalAndOperatorWithEveryType.ts, 65, 3)) >a8 && a5 : void ->a8 : string[] ->a5 : void +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) var re9 = null && a5; ->re9 : void +>re9 : void, Symbol(re9, Decl(logicalAndOperatorWithEveryType.ts, 66, 3)) >null && a5 : void ->a5 : void +>null : null +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) var re10 = undefined && a5; ->re10 : void +>re10 : void, Symbol(re10, Decl(logicalAndOperatorWithEveryType.ts, 67, 3)) >undefined && a5 : void ->undefined : undefined ->a5 : void +>undefined : undefined, Symbol(undefined) +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) var rf1 = a1 && a6; ->rf1 : E +>rf1 : E, Symbol(rf1, Decl(logicalAndOperatorWithEveryType.ts, 69, 3)) >a1 && a6 : E ->a1 : any ->a6 : E +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) var rf2 = a2 && a6; ->rf2 : E +>rf2 : E, Symbol(rf2, Decl(logicalAndOperatorWithEveryType.ts, 70, 3)) >a2 && a6 : E ->a2 : boolean ->a6 : E +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) var rf3 = a3 && a6; ->rf3 : E +>rf3 : E, Symbol(rf3, Decl(logicalAndOperatorWithEveryType.ts, 71, 3)) >a3 && a6 : E ->a3 : number ->a6 : E +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) var rf4 = a4 && a6; ->rf4 : E +>rf4 : E, Symbol(rf4, Decl(logicalAndOperatorWithEveryType.ts, 72, 3)) >a4 && a6 : E ->a4 : string ->a6 : E +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) var rf5 = a5 && a6; ->rf5 : E +>rf5 : E, Symbol(rf5, Decl(logicalAndOperatorWithEveryType.ts, 73, 3)) >a5 && a6 : E ->a5 : void ->a6 : E +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) var rf6 = a6 && a6; ->rf6 : E +>rf6 : E, Symbol(rf6, Decl(logicalAndOperatorWithEveryType.ts, 74, 3)) >a6 && a6 : E ->a6 : E ->a6 : E +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) var rf7 = a7 && a6; ->rf7 : E +>rf7 : E, Symbol(rf7, Decl(logicalAndOperatorWithEveryType.ts, 75, 3)) >a7 && a6 : E ->a7 : {} ->a6 : E +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) var rf8 = a8 && a6; ->rf8 : E +>rf8 : E, Symbol(rf8, Decl(logicalAndOperatorWithEveryType.ts, 76, 3)) >a8 && a6 : E ->a8 : string[] ->a6 : E +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) var rf9 = null && a6; ->rf9 : E +>rf9 : E, Symbol(rf9, Decl(logicalAndOperatorWithEveryType.ts, 77, 3)) >null && a6 : E ->a6 : E +>null : null +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) var rf10 = undefined && a6; ->rf10 : E +>rf10 : E, Symbol(rf10, Decl(logicalAndOperatorWithEveryType.ts, 78, 3)) >undefined && a6 : E ->undefined : undefined ->a6 : E +>undefined : undefined, Symbol(undefined) +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) var rg1 = a1 && a7; ->rg1 : {} +>rg1 : {}, Symbol(rg1, Decl(logicalAndOperatorWithEveryType.ts, 80, 3)) >a1 && a7 : {} ->a1 : any ->a7 : {} +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) var rg2 = a2 && a7; ->rg2 : {} +>rg2 : {}, Symbol(rg2, Decl(logicalAndOperatorWithEveryType.ts, 81, 3)) >a2 && a7 : {} ->a2 : boolean ->a7 : {} +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) var rg3 = a3 && a7; ->rg3 : {} +>rg3 : {}, Symbol(rg3, Decl(logicalAndOperatorWithEveryType.ts, 82, 3)) >a3 && a7 : {} ->a3 : number ->a7 : {} +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) var rg4 = a4 && a7; ->rg4 : {} +>rg4 : {}, Symbol(rg4, Decl(logicalAndOperatorWithEveryType.ts, 83, 3)) >a4 && a7 : {} ->a4 : string ->a7 : {} +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) var rg5 = a5 && a7; ->rg5 : {} +>rg5 : {}, Symbol(rg5, Decl(logicalAndOperatorWithEveryType.ts, 84, 3)) >a5 && a7 : {} ->a5 : void ->a7 : {} +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) var rg6 = a6 && a7; ->rg6 : {} +>rg6 : {}, Symbol(rg6, Decl(logicalAndOperatorWithEveryType.ts, 85, 3)) >a6 && a7 : {} ->a6 : E ->a7 : {} +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) var rg7 = a7 && a7; ->rg7 : {} +>rg7 : {}, Symbol(rg7, Decl(logicalAndOperatorWithEveryType.ts, 86, 3)) >a7 && a7 : {} ->a7 : {} ->a7 : {} +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) var rg8 = a8 && a7; ->rg8 : {} +>rg8 : {}, Symbol(rg8, Decl(logicalAndOperatorWithEveryType.ts, 87, 3)) >a8 && a7 : {} ->a8 : string[] ->a7 : {} +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) var rg9 = null && a7; ->rg9 : {} +>rg9 : {}, Symbol(rg9, Decl(logicalAndOperatorWithEveryType.ts, 88, 3)) >null && a7 : {} ->a7 : {} +>null : null +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) var rg10 = undefined && a7; ->rg10 : {} +>rg10 : {}, Symbol(rg10, Decl(logicalAndOperatorWithEveryType.ts, 89, 3)) >undefined && a7 : {} ->undefined : undefined ->a7 : {} +>undefined : undefined, Symbol(undefined) +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) var rh1 = a1 && a8; ->rh1 : string[] +>rh1 : string[], Symbol(rh1, Decl(logicalAndOperatorWithEveryType.ts, 91, 3)) >a1 && a8 : string[] ->a1 : any ->a8 : string[] +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) var rh2 = a2 && a8; ->rh2 : string[] +>rh2 : string[], Symbol(rh2, Decl(logicalAndOperatorWithEveryType.ts, 92, 3)) >a2 && a8 : string[] ->a2 : boolean ->a8 : string[] +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) var rh3 = a3 && a8; ->rh3 : string[] +>rh3 : string[], Symbol(rh3, Decl(logicalAndOperatorWithEveryType.ts, 93, 3)) >a3 && a8 : string[] ->a3 : number ->a8 : string[] +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) var rh4 = a4 && a8; ->rh4 : string[] +>rh4 : string[], Symbol(rh4, Decl(logicalAndOperatorWithEveryType.ts, 94, 3)) >a4 && a8 : string[] ->a4 : string ->a8 : string[] +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) var rh5 = a5 && a8; ->rh5 : string[] +>rh5 : string[], Symbol(rh5, Decl(logicalAndOperatorWithEveryType.ts, 95, 3)) >a5 && a8 : string[] ->a5 : void ->a8 : string[] +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) var rh6 = a6 && a8; ->rh6 : string[] +>rh6 : string[], Symbol(rh6, Decl(logicalAndOperatorWithEveryType.ts, 96, 3)) >a6 && a8 : string[] ->a6 : E ->a8 : string[] +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) var rh7 = a7 && a8; ->rh7 : string[] +>rh7 : string[], Symbol(rh7, Decl(logicalAndOperatorWithEveryType.ts, 97, 3)) >a7 && a8 : string[] ->a7 : {} ->a8 : string[] +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) var rh8 = a8 && a8; ->rh8 : string[] +>rh8 : string[], Symbol(rh8, Decl(logicalAndOperatorWithEveryType.ts, 98, 3)) >a8 && a8 : string[] ->a8 : string[] ->a8 : string[] +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) var rh9 = null && a8; ->rh9 : string[] +>rh9 : string[], Symbol(rh9, Decl(logicalAndOperatorWithEveryType.ts, 99, 3)) >null && a8 : string[] ->a8 : string[] +>null : null +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) var rh10 = undefined && a8; ->rh10 : string[] +>rh10 : string[], Symbol(rh10, Decl(logicalAndOperatorWithEveryType.ts, 100, 3)) >undefined && a8 : string[] ->undefined : undefined ->a8 : string[] +>undefined : undefined, Symbol(undefined) +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) var ri1 = a1 && null; ->ri1 : any +>ri1 : any, Symbol(ri1, Decl(logicalAndOperatorWithEveryType.ts, 102, 3)) >a1 && null : null ->a1 : any +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) +>null : null var ri2 = a2 && null; ->ri2 : any +>ri2 : any, Symbol(ri2, Decl(logicalAndOperatorWithEveryType.ts, 103, 3)) >a2 && null : null ->a2 : boolean +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) +>null : null var ri3 = a3 && null; ->ri3 : any +>ri3 : any, Symbol(ri3, Decl(logicalAndOperatorWithEveryType.ts, 104, 3)) >a3 && null : null ->a3 : number +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) +>null : null var ri4 = a4 && null; ->ri4 : any +>ri4 : any, Symbol(ri4, Decl(logicalAndOperatorWithEveryType.ts, 105, 3)) >a4 && null : null ->a4 : string +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) +>null : null var ri5 = a5 && null; ->ri5 : any +>ri5 : any, Symbol(ri5, Decl(logicalAndOperatorWithEveryType.ts, 106, 3)) >a5 && null : null ->a5 : void +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) +>null : null var ri6 = a6 && null; ->ri6 : any +>ri6 : any, Symbol(ri6, Decl(logicalAndOperatorWithEveryType.ts, 107, 3)) >a6 && null : null ->a6 : E +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) +>null : null var ri7 = a7 && null; ->ri7 : any +>ri7 : any, Symbol(ri7, Decl(logicalAndOperatorWithEveryType.ts, 108, 3)) >a7 && null : null ->a7 : {} +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) +>null : null var ri8 = a8 && null; ->ri8 : any +>ri8 : any, Symbol(ri8, Decl(logicalAndOperatorWithEveryType.ts, 109, 3)) >a8 && null : null ->a8 : string[] +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) +>null : null var ri9 = null && null; ->ri9 : any +>ri9 : any, Symbol(ri9, Decl(logicalAndOperatorWithEveryType.ts, 110, 3)) >null && null : null +>null : null +>null : null var ri10 = undefined && null; ->ri10 : any +>ri10 : any, Symbol(ri10, Decl(logicalAndOperatorWithEveryType.ts, 111, 3)) >undefined && null : null ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>null : null var rj1 = a1 && undefined; ->rj1 : any +>rj1 : any, Symbol(rj1, Decl(logicalAndOperatorWithEveryType.ts, 113, 3)) >a1 && undefined : undefined ->a1 : any ->undefined : undefined +>a1 : any, Symbol(a1, Decl(logicalAndOperatorWithEveryType.ts, 5, 3)) +>undefined : undefined, Symbol(undefined) var rj2 = a2 && undefined; ->rj2 : any +>rj2 : any, Symbol(rj2, Decl(logicalAndOperatorWithEveryType.ts, 114, 3)) >a2 && undefined : undefined ->a2 : boolean ->undefined : undefined +>a2 : boolean, Symbol(a2, Decl(logicalAndOperatorWithEveryType.ts, 6, 3)) +>undefined : undefined, Symbol(undefined) var rj3 = a3 && undefined; ->rj3 : any +>rj3 : any, Symbol(rj3, Decl(logicalAndOperatorWithEveryType.ts, 115, 3)) >a3 && undefined : undefined ->a3 : number ->undefined : undefined +>a3 : number, Symbol(a3, Decl(logicalAndOperatorWithEveryType.ts, 7, 3)) +>undefined : undefined, Symbol(undefined) var rj4 = a4 && undefined; ->rj4 : any +>rj4 : any, Symbol(rj4, Decl(logicalAndOperatorWithEveryType.ts, 116, 3)) >a4 && undefined : undefined ->a4 : string ->undefined : undefined +>a4 : string, Symbol(a4, Decl(logicalAndOperatorWithEveryType.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var rj5 = a5 && undefined; ->rj5 : any +>rj5 : any, Symbol(rj5, Decl(logicalAndOperatorWithEveryType.ts, 117, 3)) >a5 && undefined : undefined ->a5 : void ->undefined : undefined +>a5 : void, Symbol(a5, Decl(logicalAndOperatorWithEveryType.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var rj6 = a6 && undefined; ->rj6 : any +>rj6 : any, Symbol(rj6, Decl(logicalAndOperatorWithEveryType.ts, 118, 3)) >a6 && undefined : undefined ->a6 : E ->undefined : undefined +>a6 : E, Symbol(a6, Decl(logicalAndOperatorWithEveryType.ts, 10, 3)) +>undefined : undefined, Symbol(undefined) var rj7 = a7 && undefined; ->rj7 : any +>rj7 : any, Symbol(rj7, Decl(logicalAndOperatorWithEveryType.ts, 119, 3)) >a7 && undefined : undefined ->a7 : {} ->undefined : undefined +>a7 : {}, Symbol(a7, Decl(logicalAndOperatorWithEveryType.ts, 11, 3)) +>undefined : undefined, Symbol(undefined) var rj8 = a8 && undefined; ->rj8 : any +>rj8 : any, Symbol(rj8, Decl(logicalAndOperatorWithEveryType.ts, 120, 3)) >a8 && undefined : undefined ->a8 : string[] ->undefined : undefined +>a8 : string[], Symbol(a8, Decl(logicalAndOperatorWithEveryType.ts, 12, 3)) +>undefined : undefined, Symbol(undefined) var rj9 = null && undefined; ->rj9 : any +>rj9 : any, Symbol(rj9, Decl(logicalAndOperatorWithEveryType.ts, 121, 3)) >null && undefined : undefined ->undefined : undefined +>null : null +>undefined : undefined, Symbol(undefined) var rj10 = undefined && undefined; ->rj10 : any +>rj10 : any, Symbol(rj10, Decl(logicalAndOperatorWithEveryType.ts, 122, 3)) >undefined && undefined : undefined ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/logicalAndOperatorWithTypeParameters.types b/tests/baselines/reference/logicalAndOperatorWithTypeParameters.types index f77b231c6bc..ea547128c30 100644 --- a/tests/baselines/reference/logicalAndOperatorWithTypeParameters.types +++ b/tests/baselines/reference/logicalAndOperatorWithTypeParameters.types @@ -3,77 +3,77 @@ // type as the second operand. function foo(t: T, u: U, v: V) { ->foo : (t: T, u: U, v: V) => void ->T : T ->U : U ->V : V ->t : T ->T : T ->u : U ->U : U ->v : V ->V : V +>foo : (t: T, u: U, v: V) => void, Symbol(foo, Decl(logicalAndOperatorWithTypeParameters.ts, 0, 0)) +>T : T, Symbol(T, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 13)) +>U : U, Symbol(U, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 15)) +>V : V, Symbol(V, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 18)) +>t : T, Symbol(t, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 36)) +>T : T, Symbol(T, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 13)) +>u : U, Symbol(u, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 41)) +>U : U, Symbol(U, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 15)) +>v : V, Symbol(v, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 47)) +>V : V, Symbol(V, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 18)) var r1 = t && t; ->r1 : T +>r1 : T, Symbol(r1, Decl(logicalAndOperatorWithTypeParameters.ts, 4, 7)) >t && t : T ->t : T ->t : T +>t : T, Symbol(t, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 36)) +>t : T, Symbol(t, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 36)) var r2 = u && t; ->r2 : T +>r2 : T, Symbol(r2, Decl(logicalAndOperatorWithTypeParameters.ts, 5, 7)) >u && t : T ->u : U ->t : T +>u : U, Symbol(u, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 41)) +>t : T, Symbol(t, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 36)) var r3 = v && t; ->r3 : T +>r3 : T, Symbol(r3, Decl(logicalAndOperatorWithTypeParameters.ts, 6, 7)) >v && t : T ->v : V ->t : T +>v : V, Symbol(v, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 47)) +>t : T, Symbol(t, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 36)) var r4 = t && u; ->r4 : U +>r4 : U, Symbol(r4, Decl(logicalAndOperatorWithTypeParameters.ts, 8, 7)) >t && u : U ->t : T ->u : U +>t : T, Symbol(t, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 36)) +>u : U, Symbol(u, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 41)) var r5 = u && u; ->r5 : U +>r5 : U, Symbol(r5, Decl(logicalAndOperatorWithTypeParameters.ts, 9, 7)) >u && u : U ->u : U ->u : U +>u : U, Symbol(u, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 41)) +>u : U, Symbol(u, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 41)) var r6 = v && u; ->r6 : U +>r6 : U, Symbol(r6, Decl(logicalAndOperatorWithTypeParameters.ts, 10, 7)) >v && u : U ->v : V ->u : U +>v : V, Symbol(v, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 47)) +>u : U, Symbol(u, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 41)) var r7 = t && v; ->r7 : V +>r7 : V, Symbol(r7, Decl(logicalAndOperatorWithTypeParameters.ts, 12, 7)) >t && v : V ->t : T ->v : V +>t : T, Symbol(t, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 36)) +>v : V, Symbol(v, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 47)) var r8 = u && v; ->r8 : V +>r8 : V, Symbol(r8, Decl(logicalAndOperatorWithTypeParameters.ts, 13, 7)) >u && v : V ->u : U ->v : V +>u : U, Symbol(u, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 41)) +>v : V, Symbol(v, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 47)) var r9 = v && v; ->r9 : V +>r9 : V, Symbol(r9, Decl(logicalAndOperatorWithTypeParameters.ts, 14, 7)) >v && v : V ->v : V ->v : V +>v : V, Symbol(v, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 47)) +>v : V, Symbol(v, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 47)) var a: number; ->a : number +>a : number, Symbol(a, Decl(logicalAndOperatorWithTypeParameters.ts, 16, 7)) var r10 = t && a; ->r10 : number +>r10 : number, Symbol(r10, Decl(logicalAndOperatorWithTypeParameters.ts, 17, 7)) >t && a : number ->t : T ->a : number +>t : T, Symbol(t, Decl(logicalAndOperatorWithTypeParameters.ts, 3, 36)) +>a : number, Symbol(a, Decl(logicalAndOperatorWithTypeParameters.ts, 16, 7)) } diff --git a/tests/baselines/reference/logicalNotOperatorWithBooleanType.types b/tests/baselines/reference/logicalNotOperatorWithBooleanType.types index e232ae2af80..4ed8c1d88ac 100644 --- a/tests/baselines/reference/logicalNotOperatorWithBooleanType.types +++ b/tests/baselines/reference/logicalNotOperatorWithBooleanType.types @@ -1,112 +1,120 @@ === tests/cases/conformance/expressions/unaryOperators/logicalNotOperator/logicalNotOperatorWithBooleanType.ts === // ! operator on boolean type var BOOLEAN: boolean; ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(logicalNotOperatorWithBooleanType.ts, 1, 3)) function foo(): boolean { return true; } ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(logicalNotOperatorWithBooleanType.ts, 1, 21)) +>true : boolean class A { ->A : A +>A : A, Symbol(A, Decl(logicalNotOperatorWithBooleanType.ts, 3, 40)) public a: boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(logicalNotOperatorWithBooleanType.ts, 5, 9)) static foo() { return false; } ->foo : () => boolean +>foo : () => boolean, Symbol(A.foo, Decl(logicalNotOperatorWithBooleanType.ts, 6, 22)) +>false : boolean } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(logicalNotOperatorWithBooleanType.ts, 8, 1)) export var n: boolean; ->n : boolean +>n : boolean, Symbol(n, Decl(logicalNotOperatorWithBooleanType.ts, 10, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(logicalNotOperatorWithBooleanType.ts, 13, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(logicalNotOperatorWithBooleanType.ts, 3, 40)) // boolean type var var ResultIsBoolean1 = !BOOLEAN; ->ResultIsBoolean1 : boolean +>ResultIsBoolean1 : boolean, Symbol(ResultIsBoolean1, Decl(logicalNotOperatorWithBooleanType.ts, 16, 3)) >!BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(logicalNotOperatorWithBooleanType.ts, 1, 3)) // boolean type literal var ResultIsBoolean2 = !true; ->ResultIsBoolean2 : boolean +>ResultIsBoolean2 : boolean, Symbol(ResultIsBoolean2, Decl(logicalNotOperatorWithBooleanType.ts, 19, 3)) >!true : boolean +>true : boolean var ResultIsBoolean3 = !{ x: true, y: false }; ->ResultIsBoolean3 : boolean +>ResultIsBoolean3 : boolean, Symbol(ResultIsBoolean3, Decl(logicalNotOperatorWithBooleanType.ts, 20, 3)) >!{ x: true, y: false } : boolean >{ x: true, y: false } : { x: boolean; y: boolean; } ->x : boolean ->y : boolean +>x : boolean, Symbol(x, Decl(logicalNotOperatorWithBooleanType.ts, 20, 25)) +>true : boolean +>y : boolean, Symbol(y, Decl(logicalNotOperatorWithBooleanType.ts, 20, 34)) +>false : boolean // boolean type expressions var ResultIsBoolean4 = !objA.a; ->ResultIsBoolean4 : boolean +>ResultIsBoolean4 : boolean, Symbol(ResultIsBoolean4, Decl(logicalNotOperatorWithBooleanType.ts, 23, 3)) >!objA.a : boolean ->objA.a : boolean ->objA : A ->a : boolean +>objA.a : boolean, Symbol(A.a, Decl(logicalNotOperatorWithBooleanType.ts, 5, 9)) +>objA : A, Symbol(objA, Decl(logicalNotOperatorWithBooleanType.ts, 13, 3)) +>a : boolean, Symbol(A.a, Decl(logicalNotOperatorWithBooleanType.ts, 5, 9)) var ResultIsBoolean5 = !M.n; ->ResultIsBoolean5 : boolean +>ResultIsBoolean5 : boolean, Symbol(ResultIsBoolean5, Decl(logicalNotOperatorWithBooleanType.ts, 24, 3)) >!M.n : boolean ->M.n : boolean ->M : typeof M ->n : boolean +>M.n : boolean, Symbol(M.n, Decl(logicalNotOperatorWithBooleanType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(logicalNotOperatorWithBooleanType.ts, 8, 1)) +>n : boolean, Symbol(M.n, Decl(logicalNotOperatorWithBooleanType.ts, 10, 14)) var ResultIsBoolean6 = !foo(); ->ResultIsBoolean6 : boolean +>ResultIsBoolean6 : boolean, Symbol(ResultIsBoolean6, Decl(logicalNotOperatorWithBooleanType.ts, 25, 3)) >!foo() : boolean >foo() : boolean ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(logicalNotOperatorWithBooleanType.ts, 1, 21)) var ResultIsBoolean7 = !A.foo(); ->ResultIsBoolean7 : boolean +>ResultIsBoolean7 : boolean, Symbol(ResultIsBoolean7, Decl(logicalNotOperatorWithBooleanType.ts, 26, 3)) >!A.foo() : boolean >A.foo() : boolean ->A.foo : () => boolean ->A : typeof A ->foo : () => boolean +>A.foo : () => boolean, Symbol(A.foo, Decl(logicalNotOperatorWithBooleanType.ts, 6, 22)) +>A : typeof A, Symbol(A, Decl(logicalNotOperatorWithBooleanType.ts, 3, 40)) +>foo : () => boolean, Symbol(A.foo, Decl(logicalNotOperatorWithBooleanType.ts, 6, 22)) // multiple ! operators var ResultIsBoolean = !!BOOLEAN; ->ResultIsBoolean : boolean +>ResultIsBoolean : boolean, Symbol(ResultIsBoolean, Decl(logicalNotOperatorWithBooleanType.ts, 29, 3)) >!!BOOLEAN : boolean >!BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(logicalNotOperatorWithBooleanType.ts, 1, 3)) // miss assignment operators !true; >!true : boolean +>true : boolean !BOOLEAN; >!BOOLEAN : boolean ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(logicalNotOperatorWithBooleanType.ts, 1, 3)) !foo(); >!foo() : boolean >foo() : boolean ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(logicalNotOperatorWithBooleanType.ts, 1, 21)) !true, false; >!true, false : boolean >!true : boolean +>true : boolean +>false : boolean !objA.a; >!objA.a : boolean ->objA.a : boolean ->objA : A ->a : boolean +>objA.a : boolean, Symbol(A.a, Decl(logicalNotOperatorWithBooleanType.ts, 5, 9)) +>objA : A, Symbol(objA, Decl(logicalNotOperatorWithBooleanType.ts, 13, 3)) +>a : boolean, Symbol(A.a, Decl(logicalNotOperatorWithBooleanType.ts, 5, 9)) !M.n; >!M.n : boolean ->M.n : boolean ->M : typeof M ->n : boolean +>M.n : boolean, Symbol(M.n, Decl(logicalNotOperatorWithBooleanType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(logicalNotOperatorWithBooleanType.ts, 8, 1)) +>n : boolean, Symbol(M.n, Decl(logicalNotOperatorWithBooleanType.ts, 10, 14)) diff --git a/tests/baselines/reference/logicalNotOperatorWithEnumType.types b/tests/baselines/reference/logicalNotOperatorWithEnumType.types index f3c9d98c95b..01c073be8c5 100644 --- a/tests/baselines/reference/logicalNotOperatorWithEnumType.types +++ b/tests/baselines/reference/logicalNotOperatorWithEnumType.types @@ -2,76 +2,79 @@ // ! operator on enum type enum ENUM { A, B, C }; ->ENUM : ENUM ->A : ENUM ->B : ENUM ->C : ENUM +>ENUM : ENUM, Symbol(ENUM, Decl(logicalNotOperatorWithEnumType.ts, 0, 0)) +>A : ENUM, Symbol(ENUM.A, Decl(logicalNotOperatorWithEnumType.ts, 2, 11)) +>B : ENUM, Symbol(ENUM.B, Decl(logicalNotOperatorWithEnumType.ts, 2, 14)) +>C : ENUM, Symbol(ENUM.C, Decl(logicalNotOperatorWithEnumType.ts, 2, 17)) enum ENUM1 { }; ->ENUM1 : ENUM1 +>ENUM1 : ENUM1, Symbol(ENUM1, Decl(logicalNotOperatorWithEnumType.ts, 2, 22)) // enum type var var ResultIsBoolean1 = !ENUM; ->ResultIsBoolean1 : boolean +>ResultIsBoolean1 : boolean, Symbol(ResultIsBoolean1, Decl(logicalNotOperatorWithEnumType.ts, 6, 3)) >!ENUM : boolean ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(logicalNotOperatorWithEnumType.ts, 0, 0)) // enum type expressions var ResultIsBoolean2 = !ENUM["B"]; ->ResultIsBoolean2 : boolean +>ResultIsBoolean2 : boolean, Symbol(ResultIsBoolean2, Decl(logicalNotOperatorWithEnumType.ts, 9, 3)) >!ENUM["B"] : boolean >ENUM["B"] : ENUM ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(logicalNotOperatorWithEnumType.ts, 0, 0)) +>"B" : string, Symbol(ENUM.B, Decl(logicalNotOperatorWithEnumType.ts, 2, 14)) var ResultIsBoolean3 = !(ENUM.B + ENUM["C"]); ->ResultIsBoolean3 : boolean +>ResultIsBoolean3 : boolean, Symbol(ResultIsBoolean3, Decl(logicalNotOperatorWithEnumType.ts, 10, 3)) >!(ENUM.B + ENUM["C"]) : boolean >(ENUM.B + ENUM["C"]) : number >ENUM.B + ENUM["C"] : number ->ENUM.B : ENUM ->ENUM : typeof ENUM ->B : ENUM +>ENUM.B : ENUM, Symbol(ENUM.B, Decl(logicalNotOperatorWithEnumType.ts, 2, 14)) +>ENUM : typeof ENUM, Symbol(ENUM, Decl(logicalNotOperatorWithEnumType.ts, 0, 0)) +>B : ENUM, Symbol(ENUM.B, Decl(logicalNotOperatorWithEnumType.ts, 2, 14)) >ENUM["C"] : ENUM ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(logicalNotOperatorWithEnumType.ts, 0, 0)) +>"C" : string, Symbol(ENUM.C, Decl(logicalNotOperatorWithEnumType.ts, 2, 17)) // multiple ! operators var ResultIsBoolean4 = !!ENUM; ->ResultIsBoolean4 : boolean +>ResultIsBoolean4 : boolean, Symbol(ResultIsBoolean4, Decl(logicalNotOperatorWithEnumType.ts, 13, 3)) >!!ENUM : boolean >!ENUM : boolean ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(logicalNotOperatorWithEnumType.ts, 0, 0)) var ResultIsBoolean5 = !!!(ENUM["B"] + ENUM.C); ->ResultIsBoolean5 : boolean +>ResultIsBoolean5 : boolean, Symbol(ResultIsBoolean5, Decl(logicalNotOperatorWithEnumType.ts, 14, 3)) >!!!(ENUM["B"] + ENUM.C) : boolean >!!(ENUM["B"] + ENUM.C) : boolean >!(ENUM["B"] + ENUM.C) : boolean >(ENUM["B"] + ENUM.C) : number >ENUM["B"] + ENUM.C : number >ENUM["B"] : ENUM ->ENUM : typeof ENUM ->ENUM.C : ENUM ->ENUM : typeof ENUM ->C : ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(logicalNotOperatorWithEnumType.ts, 0, 0)) +>"B" : string, Symbol(ENUM.B, Decl(logicalNotOperatorWithEnumType.ts, 2, 14)) +>ENUM.C : ENUM, Symbol(ENUM.C, Decl(logicalNotOperatorWithEnumType.ts, 2, 17)) +>ENUM : typeof ENUM, Symbol(ENUM, Decl(logicalNotOperatorWithEnumType.ts, 0, 0)) +>C : ENUM, Symbol(ENUM.C, Decl(logicalNotOperatorWithEnumType.ts, 2, 17)) // miss assignment operators !ENUM; >!ENUM : boolean ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(logicalNotOperatorWithEnumType.ts, 0, 0)) !ENUM1; >!ENUM1 : boolean ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(logicalNotOperatorWithEnumType.ts, 2, 22)) !ENUM.B; >!ENUM.B : boolean ->ENUM.B : ENUM ->ENUM : typeof ENUM ->B : ENUM +>ENUM.B : ENUM, Symbol(ENUM.B, Decl(logicalNotOperatorWithEnumType.ts, 2, 14)) +>ENUM : typeof ENUM, Symbol(ENUM, Decl(logicalNotOperatorWithEnumType.ts, 0, 0)) +>B : ENUM, Symbol(ENUM.B, Decl(logicalNotOperatorWithEnumType.ts, 2, 14)) !ENUM, ENUM1; >!ENUM, ENUM1 : typeof ENUM1 >!ENUM : boolean ->ENUM : typeof ENUM ->ENUM1 : typeof ENUM1 +>ENUM : typeof ENUM, Symbol(ENUM, Decl(logicalNotOperatorWithEnumType.ts, 0, 0)) +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(logicalNotOperatorWithEnumType.ts, 2, 22)) diff --git a/tests/baselines/reference/logicalNotOperatorWithNumberType.types b/tests/baselines/reference/logicalNotOperatorWithNumberType.types index 4bcc8a14041..2719d55f883 100644 --- a/tests/baselines/reference/logicalNotOperatorWithNumberType.types +++ b/tests/baselines/reference/logicalNotOperatorWithNumberType.types @@ -1,165 +1,175 @@ === tests/cases/conformance/expressions/unaryOperators/logicalNotOperator/logicalNotOperatorWithNumberType.ts === // ! operator on number type var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(logicalNotOperatorWithNumberType.ts, 1, 3)) var NUMBER1: number[] = [1, 2]; ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(logicalNotOperatorWithNumberType.ts, 2, 3)) >[1, 2] : number[] +>1 : number +>2 : number function foo(): number { return 1; } ->foo : () => number +>foo : () => number, Symbol(foo, Decl(logicalNotOperatorWithNumberType.ts, 2, 31)) +>1 : number class A { ->A : A +>A : A, Symbol(A, Decl(logicalNotOperatorWithNumberType.ts, 4, 36)) public a: number; ->a : number +>a : number, Symbol(a, Decl(logicalNotOperatorWithNumberType.ts, 6, 9)) static foo() { return 1; } ->foo : () => number +>foo : () => number, Symbol(A.foo, Decl(logicalNotOperatorWithNumberType.ts, 7, 21)) +>1 : number } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(logicalNotOperatorWithNumberType.ts, 9, 1)) export var n: number; ->n : number +>n : number, Symbol(n, Decl(logicalNotOperatorWithNumberType.ts, 11, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(logicalNotOperatorWithNumberType.ts, 14, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(logicalNotOperatorWithNumberType.ts, 4, 36)) // number type var var ResultIsBoolean1 = !NUMBER; ->ResultIsBoolean1 : boolean +>ResultIsBoolean1 : boolean, Symbol(ResultIsBoolean1, Decl(logicalNotOperatorWithNumberType.ts, 17, 3)) >!NUMBER : boolean ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(logicalNotOperatorWithNumberType.ts, 1, 3)) var ResultIsBoolean2 = !NUMBER1; ->ResultIsBoolean2 : boolean +>ResultIsBoolean2 : boolean, Symbol(ResultIsBoolean2, Decl(logicalNotOperatorWithNumberType.ts, 18, 3)) >!NUMBER1 : boolean ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(logicalNotOperatorWithNumberType.ts, 2, 3)) // number type literal var ResultIsBoolean3 = !1; ->ResultIsBoolean3 : boolean +>ResultIsBoolean3 : boolean, Symbol(ResultIsBoolean3, Decl(logicalNotOperatorWithNumberType.ts, 21, 3)) >!1 : boolean +>1 : number var ResultIsBoolean4 = !{ x: 1, y: 2}; ->ResultIsBoolean4 : boolean +>ResultIsBoolean4 : boolean, Symbol(ResultIsBoolean4, Decl(logicalNotOperatorWithNumberType.ts, 22, 3)) >!{ x: 1, y: 2} : boolean >{ x: 1, y: 2} : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(logicalNotOperatorWithNumberType.ts, 22, 25)) +>1 : number +>y : number, Symbol(y, Decl(logicalNotOperatorWithNumberType.ts, 22, 31)) +>2 : number var ResultIsBoolean5 = !{ x: 1, y: (n: number) => { return n; } }; ->ResultIsBoolean5 : boolean +>ResultIsBoolean5 : boolean, Symbol(ResultIsBoolean5, Decl(logicalNotOperatorWithNumberType.ts, 23, 3)) >!{ x: 1, y: (n: number) => { return n; } } : boolean >{ x: 1, y: (n: number) => { return n; } } : { x: number; y: (n: number) => number; } ->x : number ->y : (n: number) => number +>x : number, Symbol(x, Decl(logicalNotOperatorWithNumberType.ts, 23, 25)) +>1 : number +>y : (n: number) => number, Symbol(y, Decl(logicalNotOperatorWithNumberType.ts, 23, 31)) >(n: number) => { return n; } : (n: number) => number ->n : number ->n : number +>n : number, Symbol(n, Decl(logicalNotOperatorWithNumberType.ts, 23, 36)) +>n : number, Symbol(n, Decl(logicalNotOperatorWithNumberType.ts, 23, 36)) // number type expressions var ResultIsBoolean6 = !objA.a; ->ResultIsBoolean6 : boolean +>ResultIsBoolean6 : boolean, Symbol(ResultIsBoolean6, Decl(logicalNotOperatorWithNumberType.ts, 26, 3)) >!objA.a : boolean ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(logicalNotOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(logicalNotOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(logicalNotOperatorWithNumberType.ts, 6, 9)) var ResultIsBoolean7 = !M.n; ->ResultIsBoolean7 : boolean +>ResultIsBoolean7 : boolean, Symbol(ResultIsBoolean7, Decl(logicalNotOperatorWithNumberType.ts, 27, 3)) >!M.n : boolean ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(logicalNotOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(logicalNotOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(logicalNotOperatorWithNumberType.ts, 11, 14)) var ResultIsBoolean8 = !NUMBER1[0]; ->ResultIsBoolean8 : boolean +>ResultIsBoolean8 : boolean, Symbol(ResultIsBoolean8, Decl(logicalNotOperatorWithNumberType.ts, 28, 3)) >!NUMBER1[0] : boolean >NUMBER1[0] : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(logicalNotOperatorWithNumberType.ts, 2, 3)) +>0 : number var ResultIsBoolean9 = !foo(); ->ResultIsBoolean9 : boolean +>ResultIsBoolean9 : boolean, Symbol(ResultIsBoolean9, Decl(logicalNotOperatorWithNumberType.ts, 29, 3)) >!foo() : boolean >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(logicalNotOperatorWithNumberType.ts, 2, 31)) var ResultIsBoolean10 = !A.foo(); ->ResultIsBoolean10 : boolean +>ResultIsBoolean10 : boolean, Symbol(ResultIsBoolean10, Decl(logicalNotOperatorWithNumberType.ts, 30, 3)) >!A.foo() : boolean >A.foo() : number ->A.foo : () => number ->A : typeof A ->foo : () => number +>A.foo : () => number, Symbol(A.foo, Decl(logicalNotOperatorWithNumberType.ts, 7, 21)) +>A : typeof A, Symbol(A, Decl(logicalNotOperatorWithNumberType.ts, 4, 36)) +>foo : () => number, Symbol(A.foo, Decl(logicalNotOperatorWithNumberType.ts, 7, 21)) var ResultIsBoolean11 = !(NUMBER + NUMBER); ->ResultIsBoolean11 : boolean +>ResultIsBoolean11 : boolean, Symbol(ResultIsBoolean11, Decl(logicalNotOperatorWithNumberType.ts, 31, 3)) >!(NUMBER + NUMBER) : boolean >(NUMBER + NUMBER) : number >NUMBER + NUMBER : number ->NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(logicalNotOperatorWithNumberType.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(logicalNotOperatorWithNumberType.ts, 1, 3)) // multiple ! operator var ResultIsBoolean12 = !!NUMBER; ->ResultIsBoolean12 : boolean +>ResultIsBoolean12 : boolean, Symbol(ResultIsBoolean12, Decl(logicalNotOperatorWithNumberType.ts, 34, 3)) >!!NUMBER : boolean >!NUMBER : boolean ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(logicalNotOperatorWithNumberType.ts, 1, 3)) var ResultIsBoolean13 = !!!(NUMBER + NUMBER); ->ResultIsBoolean13 : boolean +>ResultIsBoolean13 : boolean, Symbol(ResultIsBoolean13, Decl(logicalNotOperatorWithNumberType.ts, 35, 3)) >!!!(NUMBER + NUMBER) : boolean >!!(NUMBER + NUMBER) : boolean >!(NUMBER + NUMBER) : boolean >(NUMBER + NUMBER) : number >NUMBER + NUMBER : number ->NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(logicalNotOperatorWithNumberType.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(logicalNotOperatorWithNumberType.ts, 1, 3)) // miss assignment operators !1; >!1 : boolean +>1 : number !NUMBER; >!NUMBER : boolean ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(logicalNotOperatorWithNumberType.ts, 1, 3)) !NUMBER1; >!NUMBER1 : boolean ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(logicalNotOperatorWithNumberType.ts, 2, 3)) !foo(); >!foo() : boolean >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(logicalNotOperatorWithNumberType.ts, 2, 31)) !objA.a; >!objA.a : boolean ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(logicalNotOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(logicalNotOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(logicalNotOperatorWithNumberType.ts, 6, 9)) !M.n; >!M.n : boolean ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(logicalNotOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(logicalNotOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(logicalNotOperatorWithNumberType.ts, 11, 14)) !objA.a, M.n; >!objA.a, M.n : number >!objA.a : boolean ->objA.a : number ->objA : A ->a : number ->M.n : number ->M : typeof M ->n : number +>objA.a : number, Symbol(A.a, Decl(logicalNotOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(logicalNotOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(logicalNotOperatorWithNumberType.ts, 6, 9)) +>M.n : number, Symbol(M.n, Decl(logicalNotOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(logicalNotOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(logicalNotOperatorWithNumberType.ts, 11, 14)) diff --git a/tests/baselines/reference/logicalNotOperatorWithStringType.types b/tests/baselines/reference/logicalNotOperatorWithStringType.types index 2decb1ade18..bd0d030d183 100644 --- a/tests/baselines/reference/logicalNotOperatorWithStringType.types +++ b/tests/baselines/reference/logicalNotOperatorWithStringType.types @@ -1,161 +1,172 @@ === tests/cases/conformance/expressions/unaryOperators/logicalNotOperator/logicalNotOperatorWithStringType.ts === // ! operator on string type var STRING: string; ->STRING : string +>STRING : string, Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) var STRING1: string[] = ["", "abc"]; ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(logicalNotOperatorWithStringType.ts, 2, 3)) >["", "abc"] : string[] +>"" : string +>"abc" : string function foo(): string { return "abc"; } ->foo : () => string +>foo : () => string, Symbol(foo, Decl(logicalNotOperatorWithStringType.ts, 2, 36)) +>"abc" : string class A { ->A : A +>A : A, Symbol(A, Decl(logicalNotOperatorWithStringType.ts, 4, 40)) public a: string; ->a : string +>a : string, Symbol(a, Decl(logicalNotOperatorWithStringType.ts, 6, 9)) static foo() { return ""; } ->foo : () => string +>foo : () => string, Symbol(A.foo, Decl(logicalNotOperatorWithStringType.ts, 7, 21)) +>"" : string } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(logicalNotOperatorWithStringType.ts, 9, 1)) export var n: string; ->n : string +>n : string, Symbol(n, Decl(logicalNotOperatorWithStringType.ts, 11, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(logicalNotOperatorWithStringType.ts, 14, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(logicalNotOperatorWithStringType.ts, 4, 40)) // string type var var ResultIsBoolean1 = !STRING; ->ResultIsBoolean1 : boolean +>ResultIsBoolean1 : boolean, Symbol(ResultIsBoolean1, Decl(logicalNotOperatorWithStringType.ts, 17, 3)) >!STRING : boolean ->STRING : string +>STRING : string, Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) var ResultIsBoolean2 = !STRING1; ->ResultIsBoolean2 : boolean +>ResultIsBoolean2 : boolean, Symbol(ResultIsBoolean2, Decl(logicalNotOperatorWithStringType.ts, 18, 3)) >!STRING1 : boolean ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(logicalNotOperatorWithStringType.ts, 2, 3)) // string type literal var ResultIsBoolean3 = !""; ->ResultIsBoolean3 : boolean +>ResultIsBoolean3 : boolean, Symbol(ResultIsBoolean3, Decl(logicalNotOperatorWithStringType.ts, 21, 3)) >!"" : boolean +>"" : string var ResultIsBoolean4 = !{ x: "", y: "" }; ->ResultIsBoolean4 : boolean +>ResultIsBoolean4 : boolean, Symbol(ResultIsBoolean4, Decl(logicalNotOperatorWithStringType.ts, 22, 3)) >!{ x: "", y: "" } : boolean >{ x: "", y: "" } : { x: string; y: string; } ->x : string ->y : string +>x : string, Symbol(x, Decl(logicalNotOperatorWithStringType.ts, 22, 25)) +>"" : string +>y : string, Symbol(y, Decl(logicalNotOperatorWithStringType.ts, 22, 32)) +>"" : string var ResultIsBoolean5 = !{ x: "", y: (s: string) => { return s; } }; ->ResultIsBoolean5 : boolean +>ResultIsBoolean5 : boolean, Symbol(ResultIsBoolean5, Decl(logicalNotOperatorWithStringType.ts, 23, 3)) >!{ x: "", y: (s: string) => { return s; } } : boolean >{ x: "", y: (s: string) => { return s; } } : { x: string; y: (s: string) => string; } ->x : string ->y : (s: string) => string +>x : string, Symbol(x, Decl(logicalNotOperatorWithStringType.ts, 23, 25)) +>"" : string +>y : (s: string) => string, Symbol(y, Decl(logicalNotOperatorWithStringType.ts, 23, 32)) >(s: string) => { return s; } : (s: string) => string ->s : string ->s : string +>s : string, Symbol(s, Decl(logicalNotOperatorWithStringType.ts, 23, 37)) +>s : string, Symbol(s, Decl(logicalNotOperatorWithStringType.ts, 23, 37)) // string type expressions var ResultIsBoolean6 = !objA.a; ->ResultIsBoolean6 : boolean +>ResultIsBoolean6 : boolean, Symbol(ResultIsBoolean6, Decl(logicalNotOperatorWithStringType.ts, 26, 3)) >!objA.a : boolean ->objA.a : string ->objA : A ->a : string +>objA.a : string, Symbol(A.a, Decl(logicalNotOperatorWithStringType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(logicalNotOperatorWithStringType.ts, 14, 3)) +>a : string, Symbol(A.a, Decl(logicalNotOperatorWithStringType.ts, 6, 9)) var ResultIsBoolean7 = !M.n; ->ResultIsBoolean7 : boolean +>ResultIsBoolean7 : boolean, Symbol(ResultIsBoolean7, Decl(logicalNotOperatorWithStringType.ts, 27, 3)) >!M.n : boolean ->M.n : string ->M : typeof M ->n : string +>M.n : string, Symbol(M.n, Decl(logicalNotOperatorWithStringType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(logicalNotOperatorWithStringType.ts, 9, 1)) +>n : string, Symbol(M.n, Decl(logicalNotOperatorWithStringType.ts, 11, 14)) var ResultIsBoolean8 = !STRING1[0]; ->ResultIsBoolean8 : boolean +>ResultIsBoolean8 : boolean, Symbol(ResultIsBoolean8, Decl(logicalNotOperatorWithStringType.ts, 28, 3)) >!STRING1[0] : boolean >STRING1[0] : string ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(logicalNotOperatorWithStringType.ts, 2, 3)) +>0 : number var ResultIsBoolean9 = !foo(); ->ResultIsBoolean9 : boolean +>ResultIsBoolean9 : boolean, Symbol(ResultIsBoolean9, Decl(logicalNotOperatorWithStringType.ts, 29, 3)) >!foo() : boolean >foo() : string ->foo : () => string +>foo : () => string, Symbol(foo, Decl(logicalNotOperatorWithStringType.ts, 2, 36)) var ResultIsBoolean10 = !A.foo(); ->ResultIsBoolean10 : boolean +>ResultIsBoolean10 : boolean, Symbol(ResultIsBoolean10, Decl(logicalNotOperatorWithStringType.ts, 30, 3)) >!A.foo() : boolean >A.foo() : string ->A.foo : () => string ->A : typeof A ->foo : () => string +>A.foo : () => string, Symbol(A.foo, Decl(logicalNotOperatorWithStringType.ts, 7, 21)) +>A : typeof A, Symbol(A, Decl(logicalNotOperatorWithStringType.ts, 4, 40)) +>foo : () => string, Symbol(A.foo, Decl(logicalNotOperatorWithStringType.ts, 7, 21)) var ResultIsBoolean11 = !(STRING + STRING); ->ResultIsBoolean11 : boolean +>ResultIsBoolean11 : boolean, Symbol(ResultIsBoolean11, Decl(logicalNotOperatorWithStringType.ts, 31, 3)) >!(STRING + STRING) : boolean >(STRING + STRING) : string >STRING + STRING : string ->STRING : string ->STRING : string +>STRING : string, Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) +>STRING : string, Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) var ResultIsBoolean12 = !STRING.charAt(0); ->ResultIsBoolean12 : boolean +>ResultIsBoolean12 : boolean, Symbol(ResultIsBoolean12, Decl(logicalNotOperatorWithStringType.ts, 32, 3)) >!STRING.charAt(0) : boolean >STRING.charAt(0) : string ->STRING.charAt : (pos: number) => string ->STRING : string ->charAt : (pos: number) => string +>STRING.charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>STRING : string, Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number // multiple ! operator var ResultIsBoolean13 = !!STRING; ->ResultIsBoolean13 : boolean +>ResultIsBoolean13 : boolean, Symbol(ResultIsBoolean13, Decl(logicalNotOperatorWithStringType.ts, 35, 3)) >!!STRING : boolean >!STRING : boolean ->STRING : string +>STRING : string, Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) var ResultIsBoolean14 = !!!(STRING + STRING); ->ResultIsBoolean14 : boolean +>ResultIsBoolean14 : boolean, Symbol(ResultIsBoolean14, Decl(logicalNotOperatorWithStringType.ts, 36, 3)) >!!!(STRING + STRING) : boolean >!!(STRING + STRING) : boolean >!(STRING + STRING) : boolean >(STRING + STRING) : string >STRING + STRING : string ->STRING : string ->STRING : string +>STRING : string, Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) +>STRING : string, Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) // miss assignment operators !""; >!"" : boolean +>"" : string !STRING; >!STRING : boolean ->STRING : string +>STRING : string, Symbol(STRING, Decl(logicalNotOperatorWithStringType.ts, 1, 3)) !STRING1; >!STRING1 : boolean ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(logicalNotOperatorWithStringType.ts, 2, 3)) !foo(); >!foo() : boolean >foo() : string ->foo : () => string +>foo : () => string, Symbol(foo, Decl(logicalNotOperatorWithStringType.ts, 2, 36)) !objA.a,M.n; >!objA.a,M.n : string >!objA.a : boolean ->objA.a : string ->objA : A ->a : string ->M.n : string ->M : typeof M ->n : string +>objA.a : string, Symbol(A.a, Decl(logicalNotOperatorWithStringType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(logicalNotOperatorWithStringType.ts, 14, 3)) +>a : string, Symbol(A.a, Decl(logicalNotOperatorWithStringType.ts, 6, 9)) +>M.n : string, Symbol(M.n, Decl(logicalNotOperatorWithStringType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(logicalNotOperatorWithStringType.ts, 9, 1)) +>n : string, Symbol(M.n, Decl(logicalNotOperatorWithStringType.ts, 11, 14)) diff --git a/tests/baselines/reference/logicalOrExpressionIsContextuallyTyped.types b/tests/baselines/reference/logicalOrExpressionIsContextuallyTyped.types index 95c9643c29a..c6bafce7120 100644 --- a/tests/baselines/reference/logicalOrExpressionIsContextuallyTyped.types +++ b/tests/baselines/reference/logicalOrExpressionIsContextuallyTyped.types @@ -5,13 +5,17 @@ // operand types. var r: { a: string } = { a: '', b: 123 } || { a: '', b: true }; ->r : { a: string; } ->a : string +>r : { a: string; }, Symbol(r, Decl(logicalOrExpressionIsContextuallyTyped.ts, 5, 3)) +>a : string, Symbol(a, Decl(logicalOrExpressionIsContextuallyTyped.ts, 5, 8)) >{ a: '', b: 123 } || { a: '', b: true } : { a: string; b: number; } | { a: string; b: boolean; } >{ a: '', b: 123 } : { a: string; b: number; } ->a : string ->b : number +>a : string, Symbol(a, Decl(logicalOrExpressionIsContextuallyTyped.ts, 5, 24)) +>'' : string +>b : number, Symbol(b, Decl(logicalOrExpressionIsContextuallyTyped.ts, 5, 31)) +>123 : number >{ a: '', b: true } : { a: string; b: boolean; } ->a : string ->b : boolean +>a : string, Symbol(a, Decl(logicalOrExpressionIsContextuallyTyped.ts, 5, 45)) +>'' : string +>b : boolean, Symbol(b, Decl(logicalOrExpressionIsContextuallyTyped.ts, 5, 52)) +>true : boolean diff --git a/tests/baselines/reference/logicalOrExpressionIsNotContextuallyTyped.types b/tests/baselines/reference/logicalOrExpressionIsNotContextuallyTyped.types index 72fd6281ba9..6acbfc9f504 100644 --- a/tests/baselines/reference/logicalOrExpressionIsNotContextuallyTyped.types +++ b/tests/baselines/reference/logicalOrExpressionIsNotContextuallyTyped.types @@ -6,19 +6,19 @@ var a: (a: string) => string; ->a : (a: string) => string ->a : string +>a : (a: string) => string, Symbol(a, Decl(logicalOrExpressionIsNotContextuallyTyped.ts, 6, 3)) +>a : string, Symbol(a, Decl(logicalOrExpressionIsNotContextuallyTyped.ts, 6, 8)) // bug 786110 var r = a || ((a) => a.toLowerCase()); ->r : (a: string) => string +>r : (a: string) => string, Symbol(r, Decl(logicalOrExpressionIsNotContextuallyTyped.ts, 9, 3)) >a || ((a) => a.toLowerCase()) : (a: string) => string ->a : (a: string) => string +>a : (a: string) => string, Symbol(a, Decl(logicalOrExpressionIsNotContextuallyTyped.ts, 6, 3)) >((a) => a.toLowerCase()) : (a: string) => string >(a) => a.toLowerCase() : (a: string) => string ->a : string +>a : string, Symbol(a, Decl(logicalOrExpressionIsNotContextuallyTyped.ts, 9, 15)) >a.toLowerCase() : string ->a.toLowerCase : () => string ->a : string ->toLowerCase : () => string +>a.toLowerCase : () => string, Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51)) +>a : string, Symbol(a, Decl(logicalOrExpressionIsNotContextuallyTyped.ts, 9, 15)) +>toLowerCase : () => string, Symbol(String.toLowerCase, Decl(lib.d.ts, 399, 51)) diff --git a/tests/baselines/reference/logicalOrOperatorWithEveryType.types b/tests/baselines/reference/logicalOrOperatorWithEveryType.types index ae8dab8c71c..fa152b7ffe5 100644 --- a/tests/baselines/reference/logicalOrOperatorWithEveryType.types +++ b/tests/baselines/reference/logicalOrOperatorWithEveryType.types @@ -5,614 +5,634 @@ // operand types. enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(logicalOrOperatorWithEveryType.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(logicalOrOperatorWithEveryType.ts, 5, 8)) +>b : E, Symbol(E.b, Decl(logicalOrOperatorWithEveryType.ts, 5, 11)) +>c : E, Symbol(E.c, Decl(logicalOrOperatorWithEveryType.ts, 5, 14)) var a1: any; ->a1 : any +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var a2: boolean; ->a2 : boolean +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var a3: number ->a3 : number +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var a4: string; ->a4 : string +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var a5: void; ->a5 : void +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var a6: E; ->a6 : E ->E : E +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>E : E, Symbol(E, Decl(logicalOrOperatorWithEveryType.ts, 0, 0)) var a7: {a: string}; ->a7 : { a: string; } ->a : string +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a : string, Symbol(a, Decl(logicalOrOperatorWithEveryType.ts, 13, 9)) var a8: string[]; ->a8 : string[] +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ra1 = a1 || a1; // any || any is any ->ra1 : any +>ra1 : any, Symbol(ra1, Decl(logicalOrOperatorWithEveryType.ts, 16, 3)) >a1 || a1 : any ->a1 : any ->a1 : any +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra2 = a2 || a1; // boolean || any is any ->ra2 : any +>ra2 : any, Symbol(ra2, Decl(logicalOrOperatorWithEveryType.ts, 17, 3)) >a2 || a1 : any ->a2 : boolean ->a1 : any +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra3 = a3 || a1; // number || any is any ->ra3 : any +>ra3 : any, Symbol(ra3, Decl(logicalOrOperatorWithEveryType.ts, 18, 3)) >a3 || a1 : any ->a3 : number ->a1 : any +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra4 = a4 || a1; // string || any is any ->ra4 : any +>ra4 : any, Symbol(ra4, Decl(logicalOrOperatorWithEveryType.ts, 19, 3)) >a4 || a1 : any ->a4 : string ->a1 : any +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra5 = a5 || a1; // void || any is any ->ra5 : any +>ra5 : any, Symbol(ra5, Decl(logicalOrOperatorWithEveryType.ts, 20, 3)) >a5 || a1 : any ->a5 : void ->a1 : any +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra6 = a6 || a1; // enum || any is any ->ra6 : any +>ra6 : any, Symbol(ra6, Decl(logicalOrOperatorWithEveryType.ts, 21, 3)) >a6 || a1 : any ->a6 : E ->a1 : any +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra7 = a7 || a1; // object || any is any ->ra7 : any +>ra7 : any, Symbol(ra7, Decl(logicalOrOperatorWithEveryType.ts, 22, 3)) >a7 || a1 : any ->a7 : { a: string; } ->a1 : any +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra8 = a8 || a1; // array || any is any ->ra8 : any +>ra8 : any, Symbol(ra8, Decl(logicalOrOperatorWithEveryType.ts, 23, 3)) >a8 || a1 : any ->a8 : string[] ->a1 : any +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra9 = null || a1; // null || any is any ->ra9 : any +>ra9 : any, Symbol(ra9, Decl(logicalOrOperatorWithEveryType.ts, 24, 3)) >null || a1 : any ->a1 : any +>null : null +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra10 = undefined || a1; // undefined || any is any ->ra10 : any +>ra10 : any, Symbol(ra10, Decl(logicalOrOperatorWithEveryType.ts, 25, 3)) >undefined || a1 : any ->undefined : undefined ->a1 : any +>undefined : undefined, Symbol(undefined) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var rb1 = a1 || a2; // any || boolean is any ->rb1 : any +>rb1 : any, Symbol(rb1, Decl(logicalOrOperatorWithEveryType.ts, 27, 3)) >a1 || a2 : any ->a1 : any ->a2 : boolean +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb2 = a2 || a2; // boolean || boolean is boolean ->rb2 : boolean +>rb2 : boolean, Symbol(rb2, Decl(logicalOrOperatorWithEveryType.ts, 28, 3)) >a2 || a2 : boolean ->a2 : boolean ->a2 : boolean +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb3 = a3 || a2; // number || boolean is number | boolean ->rb3 : number | boolean +>rb3 : number | boolean, Symbol(rb3, Decl(logicalOrOperatorWithEveryType.ts, 29, 3)) >a3 || a2 : number | boolean ->a3 : number ->a2 : boolean +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb4 = a4 || a2; // string || boolean is string | boolean ->rb4 : string | boolean +>rb4 : string | boolean, Symbol(rb4, Decl(logicalOrOperatorWithEveryType.ts, 30, 3)) >a4 || a2 : string | boolean ->a4 : string ->a2 : boolean +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb5 = a5 || a2; // void || boolean is void | boolean ->rb5 : boolean | void +>rb5 : boolean | void, Symbol(rb5, Decl(logicalOrOperatorWithEveryType.ts, 31, 3)) >a5 || a2 : boolean | void ->a5 : void ->a2 : boolean +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb6 = a6 || a2; // enum || boolean is E | boolean ->rb6 : boolean | E +>rb6 : boolean | E, Symbol(rb6, Decl(logicalOrOperatorWithEveryType.ts, 32, 3)) >a6 || a2 : boolean | E ->a6 : E ->a2 : boolean +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb7 = a7 || a2; // object || boolean is object | boolean ->rb7 : boolean | { a: string; } +>rb7 : boolean | { a: string; }, Symbol(rb7, Decl(logicalOrOperatorWithEveryType.ts, 33, 3)) >a7 || a2 : boolean | { a: string; } ->a7 : { a: string; } ->a2 : boolean +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb8 = a8 || a2; // array || boolean is array | boolean ->rb8 : boolean | string[] +>rb8 : boolean | string[], Symbol(rb8, Decl(logicalOrOperatorWithEveryType.ts, 34, 3)) >a8 || a2 : boolean | string[] ->a8 : string[] ->a2 : boolean +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb9 = null || a2; // null || boolean is boolean ->rb9 : boolean +>rb9 : boolean, Symbol(rb9, Decl(logicalOrOperatorWithEveryType.ts, 35, 3)) >null || a2 : boolean ->a2 : boolean +>null : null +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb10= undefined || a2; // undefined || boolean is boolean ->rb10 : boolean +>rb10 : boolean, Symbol(rb10, Decl(logicalOrOperatorWithEveryType.ts, 36, 3)) >undefined || a2 : boolean ->undefined : undefined ->a2 : boolean +>undefined : undefined, Symbol(undefined) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rc1 = a1 || a3; // any || number is any ->rc1 : any +>rc1 : any, Symbol(rc1, Decl(logicalOrOperatorWithEveryType.ts, 38, 3)) >a1 || a3 : any ->a1 : any ->a3 : number +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc2 = a2 || a3; // boolean || number is boolean | number ->rc2 : number | boolean +>rc2 : number | boolean, Symbol(rc2, Decl(logicalOrOperatorWithEveryType.ts, 39, 3)) >a2 || a3 : number | boolean ->a2 : boolean ->a3 : number +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc3 = a3 || a3; // number || number is number ->rc3 : number +>rc3 : number, Symbol(rc3, Decl(logicalOrOperatorWithEveryType.ts, 40, 3)) >a3 || a3 : number ->a3 : number ->a3 : number +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc4 = a4 || a3; // string || number is string | number ->rc4 : string | number +>rc4 : string | number, Symbol(rc4, Decl(logicalOrOperatorWithEveryType.ts, 41, 3)) >a4 || a3 : string | number ->a4 : string ->a3 : number +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc5 = a5 || a3; // void || number is void | number ->rc5 : number | void +>rc5 : number | void, Symbol(rc5, Decl(logicalOrOperatorWithEveryType.ts, 42, 3)) >a5 || a3 : number | void ->a5 : void ->a3 : number +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc6 = a6 || a3; // enum || number is number ->rc6 : number +>rc6 : number, Symbol(rc6, Decl(logicalOrOperatorWithEveryType.ts, 43, 3)) >a6 || a3 : number ->a6 : E ->a3 : number +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc7 = a7 || a3; // object || number is object | number ->rc7 : number | { a: string; } +>rc7 : number | { a: string; }, Symbol(rc7, Decl(logicalOrOperatorWithEveryType.ts, 44, 3)) >a7 || a3 : number | { a: string; } ->a7 : { a: string; } ->a3 : number +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc8 = a8 || a3; // array || number is array | number ->rc8 : number | string[] +>rc8 : number | string[], Symbol(rc8, Decl(logicalOrOperatorWithEveryType.ts, 45, 3)) >a8 || a3 : number | string[] ->a8 : string[] ->a3 : number +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc9 = null || a3; // null || number is number ->rc9 : number +>rc9 : number, Symbol(rc9, Decl(logicalOrOperatorWithEveryType.ts, 46, 3)) >null || a3 : number ->a3 : number +>null : null +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc10 = undefined || a3; // undefined || number is number ->rc10 : number +>rc10 : number, Symbol(rc10, Decl(logicalOrOperatorWithEveryType.ts, 47, 3)) >undefined || a3 : number ->undefined : undefined ->a3 : number +>undefined : undefined, Symbol(undefined) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rd1 = a1 || a4; // any || string is any ->rd1 : any +>rd1 : any, Symbol(rd1, Decl(logicalOrOperatorWithEveryType.ts, 49, 3)) >a1 || a4 : any ->a1 : any ->a4 : string +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd2 = a2 || a4; // boolean || string is boolean | string ->rd2 : string | boolean +>rd2 : string | boolean, Symbol(rd2, Decl(logicalOrOperatorWithEveryType.ts, 50, 3)) >a2 || a4 : string | boolean ->a2 : boolean ->a4 : string +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd3 = a3 || a4; // number || string is number | string ->rd3 : string | number +>rd3 : string | number, Symbol(rd3, Decl(logicalOrOperatorWithEveryType.ts, 51, 3)) >a3 || a4 : string | number ->a3 : number ->a4 : string +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd4 = a4 || a4; // string || string is string ->rd4 : string +>rd4 : string, Symbol(rd4, Decl(logicalOrOperatorWithEveryType.ts, 52, 3)) >a4 || a4 : string ->a4 : string ->a4 : string +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd5 = a5 || a4; // void || string is void | string ->rd5 : string | void +>rd5 : string | void, Symbol(rd5, Decl(logicalOrOperatorWithEveryType.ts, 53, 3)) >a5 || a4 : string | void ->a5 : void ->a4 : string +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd6 = a6 || a4; // enum || string is enum | string ->rd6 : string | E +>rd6 : string | E, Symbol(rd6, Decl(logicalOrOperatorWithEveryType.ts, 54, 3)) >a6 || a4 : string | E ->a6 : E ->a4 : string +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd7 = a7 || a4; // object || string is object | string ->rd7 : string | { a: string; } +>rd7 : string | { a: string; }, Symbol(rd7, Decl(logicalOrOperatorWithEveryType.ts, 55, 3)) >a7 || a4 : string | { a: string; } ->a7 : { a: string; } ->a4 : string +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd8 = a8 || a4; // array || string is array | string ->rd8 : string | string[] +>rd8 : string | string[], Symbol(rd8, Decl(logicalOrOperatorWithEveryType.ts, 56, 3)) >a8 || a4 : string | string[] ->a8 : string[] ->a4 : string +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd9 = null || a4; // null || string is string ->rd9 : string +>rd9 : string, Symbol(rd9, Decl(logicalOrOperatorWithEveryType.ts, 57, 3)) >null || a4 : string ->a4 : string +>null : null +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd10 = undefined || a4; // undefined || string is string ->rd10 : string +>rd10 : string, Symbol(rd10, Decl(logicalOrOperatorWithEveryType.ts, 58, 3)) >undefined || a4 : string ->undefined : undefined ->a4 : string +>undefined : undefined, Symbol(undefined) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var re1 = a1 || a5; // any || void is any ->re1 : any +>re1 : any, Symbol(re1, Decl(logicalOrOperatorWithEveryType.ts, 60, 3)) >a1 || a5 : any ->a1 : any ->a5 : void +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re2 = a2 || a5; // boolean || void is boolean | void ->re2 : boolean | void +>re2 : boolean | void, Symbol(re2, Decl(logicalOrOperatorWithEveryType.ts, 61, 3)) >a2 || a5 : boolean | void ->a2 : boolean ->a5 : void +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re3 = a3 || a5; // number || void is number | void ->re3 : number | void +>re3 : number | void, Symbol(re3, Decl(logicalOrOperatorWithEveryType.ts, 62, 3)) >a3 || a5 : number | void ->a3 : number ->a5 : void +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re4 = a4 || a5; // string || void is string | void ->re4 : string | void +>re4 : string | void, Symbol(re4, Decl(logicalOrOperatorWithEveryType.ts, 63, 3)) >a4 || a5 : string | void ->a4 : string ->a5 : void +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re5 = a5 || a5; // void || void is void ->re5 : void +>re5 : void, Symbol(re5, Decl(logicalOrOperatorWithEveryType.ts, 64, 3)) >a5 || a5 : void ->a5 : void ->a5 : void +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re6 = a6 || a5; // enum || void is enum | void ->re6 : void | E +>re6 : void | E, Symbol(re6, Decl(logicalOrOperatorWithEveryType.ts, 65, 3)) >a6 || a5 : void | E ->a6 : E ->a5 : void +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re7 = a7 || a5; // object || void is object | void ->re7 : void | { a: string; } +>re7 : void | { a: string; }, Symbol(re7, Decl(logicalOrOperatorWithEveryType.ts, 66, 3)) >a7 || a5 : void | { a: string; } ->a7 : { a: string; } ->a5 : void +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re8 = a8 || a5; // array || void is array | void ->re8 : void | string[] +>re8 : void | string[], Symbol(re8, Decl(logicalOrOperatorWithEveryType.ts, 67, 3)) >a8 || a5 : void | string[] ->a8 : string[] ->a5 : void +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re9 = null || a5; // null || void is void ->re9 : void +>re9 : void, Symbol(re9, Decl(logicalOrOperatorWithEveryType.ts, 68, 3)) >null || a5 : void ->a5 : void +>null : null +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re10 = undefined || a5; // undefined || void is void ->re10 : void +>re10 : void, Symbol(re10, Decl(logicalOrOperatorWithEveryType.ts, 69, 3)) >undefined || a5 : void ->undefined : undefined ->a5 : void +>undefined : undefined, Symbol(undefined) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var rg1 = a1 || a6; // any || enum is any ->rg1 : any +>rg1 : any, Symbol(rg1, Decl(logicalOrOperatorWithEveryType.ts, 71, 3)) >a1 || a6 : any ->a1 : any ->a6 : E +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg2 = a2 || a6; // boolean || enum is boolean | enum ->rg2 : boolean | E +>rg2 : boolean | E, Symbol(rg2, Decl(logicalOrOperatorWithEveryType.ts, 72, 3)) >a2 || a6 : boolean | E ->a2 : boolean ->a6 : E +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg3 = a3 || a6; // number || enum is number ->rg3 : number +>rg3 : number, Symbol(rg3, Decl(logicalOrOperatorWithEveryType.ts, 73, 3)) >a3 || a6 : number ->a3 : number ->a6 : E +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg4 = a4 || a6; // string || enum is string | enum ->rg4 : string | E +>rg4 : string | E, Symbol(rg4, Decl(logicalOrOperatorWithEveryType.ts, 74, 3)) >a4 || a6 : string | E ->a4 : string ->a6 : E +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg5 = a5 || a6; // void || enum is void | enum ->rg5 : void | E +>rg5 : void | E, Symbol(rg5, Decl(logicalOrOperatorWithEveryType.ts, 75, 3)) >a5 || a6 : void | E ->a5 : void ->a6 : E +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg6 = a6 || a6; // enum || enum is E ->rg6 : E +>rg6 : E, Symbol(rg6, Decl(logicalOrOperatorWithEveryType.ts, 76, 3)) >a6 || a6 : E ->a6 : E ->a6 : E +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg7 = a7 || a6; // object || enum is object | enum ->rg7 : E | { a: string; } +>rg7 : E | { a: string; }, Symbol(rg7, Decl(logicalOrOperatorWithEveryType.ts, 77, 3)) >a7 || a6 : E | { a: string; } ->a7 : { a: string; } ->a6 : E +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg8 = a8 || a6; // array || enum is array | enum ->rg8 : string[] | E +>rg8 : string[] | E, Symbol(rg8, Decl(logicalOrOperatorWithEveryType.ts, 78, 3)) >a8 || a6 : string[] | E ->a8 : string[] ->a6 : E +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg9 = null || a6; // null || enum is E ->rg9 : E +>rg9 : E, Symbol(rg9, Decl(logicalOrOperatorWithEveryType.ts, 79, 3)) >null || a6 : E ->a6 : E +>null : null +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg10 = undefined || a6; // undefined || enum is E ->rg10 : E +>rg10 : E, Symbol(rg10, Decl(logicalOrOperatorWithEveryType.ts, 80, 3)) >undefined || a6 : E ->undefined : undefined ->a6 : E +>undefined : undefined, Symbol(undefined) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rh1 = a1 || a7; // any || object is any ->rh1 : any +>rh1 : any, Symbol(rh1, Decl(logicalOrOperatorWithEveryType.ts, 82, 3)) >a1 || a7 : any ->a1 : any ->a7 : { a: string; } +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh2 = a2 || a7; // boolean || object is boolean | object ->rh2 : boolean | { a: string; } +>rh2 : boolean | { a: string; }, Symbol(rh2, Decl(logicalOrOperatorWithEveryType.ts, 83, 3)) >a2 || a7 : boolean | { a: string; } ->a2 : boolean ->a7 : { a: string; } +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh3 = a3 || a7; // number || object is number | object ->rh3 : number | { a: string; } +>rh3 : number | { a: string; }, Symbol(rh3, Decl(logicalOrOperatorWithEveryType.ts, 84, 3)) >a3 || a7 : number | { a: string; } ->a3 : number ->a7 : { a: string; } +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh4 = a4 || a7; // string || object is string | object ->rh4 : string | { a: string; } +>rh4 : string | { a: string; }, Symbol(rh4, Decl(logicalOrOperatorWithEveryType.ts, 85, 3)) >a4 || a7 : string | { a: string; } ->a4 : string ->a7 : { a: string; } +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh5 = a5 || a7; // void || object is void | object ->rh5 : void | { a: string; } +>rh5 : void | { a: string; }, Symbol(rh5, Decl(logicalOrOperatorWithEveryType.ts, 86, 3)) >a5 || a7 : void | { a: string; } ->a5 : void ->a7 : { a: string; } +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh6 = a6 || a7; // enum || object is enum | object ->rh6 : E | { a: string; } +>rh6 : E | { a: string; }, Symbol(rh6, Decl(logicalOrOperatorWithEveryType.ts, 87, 3)) >a6 || a7 : E | { a: string; } ->a6 : E ->a7 : { a: string; } +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh7 = a7 || a7; // object || object is object ->rh7 : { a: string; } +>rh7 : { a: string; }, Symbol(rh7, Decl(logicalOrOperatorWithEveryType.ts, 88, 3)) >a7 || a7 : { a: string; } ->a7 : { a: string; } ->a7 : { a: string; } +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh8 = a8 || a7; // array || object is array | object ->rh8 : string[] | { a: string; } +>rh8 : string[] | { a: string; }, Symbol(rh8, Decl(logicalOrOperatorWithEveryType.ts, 89, 3)) >a8 || a7 : string[] | { a: string; } ->a8 : string[] ->a7 : { a: string; } +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh9 = null || a7; // null || object is object ->rh9 : { a: string; } +>rh9 : { a: string; }, Symbol(rh9, Decl(logicalOrOperatorWithEveryType.ts, 90, 3)) >null || a7 : { a: string; } ->a7 : { a: string; } +>null : null +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh10 = undefined || a7; // undefined || object is object ->rh10 : { a: string; } +>rh10 : { a: string; }, Symbol(rh10, Decl(logicalOrOperatorWithEveryType.ts, 91, 3)) >undefined || a7 : { a: string; } ->undefined : undefined ->a7 : { a: string; } +>undefined : undefined, Symbol(undefined) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var ri1 = a1 || a8; // any || array is any ->ri1 : any +>ri1 : any, Symbol(ri1, Decl(logicalOrOperatorWithEveryType.ts, 93, 3)) >a1 || a8 : any ->a1 : any ->a8 : string[] +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri2 = a2 || a8; // boolean || array is boolean | array ->ri2 : boolean | string[] +>ri2 : boolean | string[], Symbol(ri2, Decl(logicalOrOperatorWithEveryType.ts, 94, 3)) >a2 || a8 : boolean | string[] ->a2 : boolean ->a8 : string[] +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri3 = a3 || a8; // number || array is number | array ->ri3 : number | string[] +>ri3 : number | string[], Symbol(ri3, Decl(logicalOrOperatorWithEveryType.ts, 95, 3)) >a3 || a8 : number | string[] ->a3 : number ->a8 : string[] +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri4 = a4 || a8; // string || array is string | array ->ri4 : string | string[] +>ri4 : string | string[], Symbol(ri4, Decl(logicalOrOperatorWithEveryType.ts, 96, 3)) >a4 || a8 : string | string[] ->a4 : string ->a8 : string[] +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri5 = a5 || a8; // void || array is void | array ->ri5 : void | string[] +>ri5 : void | string[], Symbol(ri5, Decl(logicalOrOperatorWithEveryType.ts, 97, 3)) >a5 || a8 : void | string[] ->a5 : void ->a8 : string[] +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri6 = a6 || a8; // enum || array is enum | array ->ri6 : string[] | E +>ri6 : string[] | E, Symbol(ri6, Decl(logicalOrOperatorWithEveryType.ts, 98, 3)) >a6 || a8 : string[] | E ->a6 : E ->a8 : string[] +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri7 = a7 || a8; // object || array is object | array ->ri7 : string[] | { a: string; } +>ri7 : string[] | { a: string; }, Symbol(ri7, Decl(logicalOrOperatorWithEveryType.ts, 99, 3)) >a7 || a8 : string[] | { a: string; } ->a7 : { a: string; } ->a8 : string[] +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri8 = a8 || a8; // array || array is array ->ri8 : string[] +>ri8 : string[], Symbol(ri8, Decl(logicalOrOperatorWithEveryType.ts, 100, 3)) >a8 || a8 : string[] ->a8 : string[] ->a8 : string[] +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri9 = null || a8; // null || array is array ->ri9 : string[] +>ri9 : string[], Symbol(ri9, Decl(logicalOrOperatorWithEveryType.ts, 101, 3)) >null || a8 : string[] ->a8 : string[] +>null : null +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri10 = undefined || a8; // undefined || array is array ->ri10 : string[] +>ri10 : string[], Symbol(ri10, Decl(logicalOrOperatorWithEveryType.ts, 102, 3)) >undefined || a8 : string[] ->undefined : undefined ->a8 : string[] +>undefined : undefined, Symbol(undefined) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var rj1 = a1 || null; // any || null is any ->rj1 : any +>rj1 : any, Symbol(rj1, Decl(logicalOrOperatorWithEveryType.ts, 104, 3)) >a1 || null : any ->a1 : any +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>null : null var rj2 = a2 || null; // boolean || null is boolean ->rj2 : boolean +>rj2 : boolean, Symbol(rj2, Decl(logicalOrOperatorWithEveryType.ts, 105, 3)) >a2 || null : boolean ->a2 : boolean +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>null : null var rj3 = a3 || null; // number || null is number ->rj3 : number +>rj3 : number, Symbol(rj3, Decl(logicalOrOperatorWithEveryType.ts, 106, 3)) >a3 || null : number ->a3 : number +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>null : null var rj4 = a4 || null; // string || null is string ->rj4 : string +>rj4 : string, Symbol(rj4, Decl(logicalOrOperatorWithEveryType.ts, 107, 3)) >a4 || null : string ->a4 : string +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>null : null var rj5 = a5 || null; // void || null is void ->rj5 : void +>rj5 : void, Symbol(rj5, Decl(logicalOrOperatorWithEveryType.ts, 108, 3)) >a5 || null : void ->a5 : void +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>null : null var rj6 = a6 || null; // enum || null is E ->rj6 : E +>rj6 : E, Symbol(rj6, Decl(logicalOrOperatorWithEveryType.ts, 109, 3)) >a6 || null : E ->a6 : E +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>null : null var rj7 = a7 || null; // object || null is object ->rj7 : { a: string; } +>rj7 : { a: string; }, Symbol(rj7, Decl(logicalOrOperatorWithEveryType.ts, 110, 3)) >a7 || null : { a: string; } ->a7 : { a: string; } +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>null : null var rj8 = a8 || null; // array || null is array ->rj8 : string[] +>rj8 : string[], Symbol(rj8, Decl(logicalOrOperatorWithEveryType.ts, 111, 3)) >a8 || null : string[] ->a8 : string[] +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>null : null var rj9 = null || null; // null || null is any ->rj9 : any +>rj9 : any, Symbol(rj9, Decl(logicalOrOperatorWithEveryType.ts, 112, 3)) >null || null : null +>null : null +>null : null var rj10 = undefined || null; // undefined || null is any ->rj10 : any +>rj10 : any, Symbol(rj10, Decl(logicalOrOperatorWithEveryType.ts, 113, 3)) >undefined || null : null ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>null : null var rf1 = a1 || undefined; // any || undefined is any ->rf1 : any +>rf1 : any, Symbol(rf1, Decl(logicalOrOperatorWithEveryType.ts, 115, 3)) >a1 || undefined : any ->a1 : any ->undefined : undefined +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>undefined : undefined, Symbol(undefined) var rf2 = a2 || undefined; // boolean || undefined is boolean ->rf2 : boolean +>rf2 : boolean, Symbol(rf2, Decl(logicalOrOperatorWithEveryType.ts, 116, 3)) >a2 || undefined : boolean ->a2 : boolean ->undefined : undefined +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var rf3 = a3 || undefined; // number || undefined is number ->rf3 : number +>rf3 : number, Symbol(rf3, Decl(logicalOrOperatorWithEveryType.ts, 117, 3)) >a3 || undefined : number ->a3 : number ->undefined : undefined +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var rf4 = a4 || undefined; // string || undefined is string ->rf4 : string +>rf4 : string, Symbol(rf4, Decl(logicalOrOperatorWithEveryType.ts, 118, 3)) >a4 || undefined : string ->a4 : string ->undefined : undefined +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>undefined : undefined, Symbol(undefined) var rf5 = a5 || undefined; // void || undefined is void ->rf5 : void +>rf5 : void, Symbol(rf5, Decl(logicalOrOperatorWithEveryType.ts, 119, 3)) >a5 || undefined : void ->a5 : void ->undefined : undefined +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>undefined : undefined, Symbol(undefined) var rf6 = a6 || undefined; // enum || undefined is E ->rf6 : E +>rf6 : E, Symbol(rf6, Decl(logicalOrOperatorWithEveryType.ts, 120, 3)) >a6 || undefined : E ->a6 : E ->undefined : undefined +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>undefined : undefined, Symbol(undefined) var rf7 = a7 || undefined; // object || undefined is object ->rf7 : { a: string; } +>rf7 : { a: string; }, Symbol(rf7, Decl(logicalOrOperatorWithEveryType.ts, 121, 3)) >a7 || undefined : { a: string; } ->a7 : { a: string; } ->undefined : undefined +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>undefined : undefined, Symbol(undefined) var rf8 = a8 || undefined; // array || undefined is array ->rf8 : string[] +>rf8 : string[], Symbol(rf8, Decl(logicalOrOperatorWithEveryType.ts, 122, 3)) >a8 || undefined : string[] ->a8 : string[] ->undefined : undefined +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>undefined : undefined, Symbol(undefined) var rf9 = null || undefined; // null || undefined is any ->rf9 : any +>rf9 : any, Symbol(rf9, Decl(logicalOrOperatorWithEveryType.ts, 123, 3)) >null || undefined : null ->undefined : undefined +>null : null +>undefined : undefined, Symbol(undefined) var rf10 = undefined || undefined; // undefined || undefined is any ->rf10 : any +>rf10 : any, Symbol(rf10, Decl(logicalOrOperatorWithEveryType.ts, 124, 3)) >undefined || undefined : undefined ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/logicalOrOperatorWithEveryType.types.pull b/tests/baselines/reference/logicalOrOperatorWithEveryType.types.pull index e0d75463414..00f42bba35b 100644 --- a/tests/baselines/reference/logicalOrOperatorWithEveryType.types.pull +++ b/tests/baselines/reference/logicalOrOperatorWithEveryType.types.pull @@ -5,614 +5,634 @@ // operand types. enum E { a, b, c } ->E : E ->a : E ->b : E ->c : E +>E : E, Symbol(E, Decl(logicalOrOperatorWithEveryType.ts, 0, 0)) +>a : E, Symbol(E.a, Decl(logicalOrOperatorWithEveryType.ts, 5, 8)) +>b : E, Symbol(E.b, Decl(logicalOrOperatorWithEveryType.ts, 5, 11)) +>c : E, Symbol(E.c, Decl(logicalOrOperatorWithEveryType.ts, 5, 14)) var a1: any; ->a1 : any +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var a2: boolean; ->a2 : boolean +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var a3: number ->a3 : number +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var a4: string; ->a4 : string +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var a5: void; ->a5 : void +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var a6: E; ->a6 : E ->E : E +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>E : E, Symbol(E, Decl(logicalOrOperatorWithEveryType.ts, 0, 0)) var a7: {a: string}; ->a7 : { a: string; } ->a : string +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a : string, Symbol(a, Decl(logicalOrOperatorWithEveryType.ts, 13, 9)) var a8: string[]; ->a8 : string[] +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ra1 = a1 || a1; // any || any is any ->ra1 : any +>ra1 : any, Symbol(ra1, Decl(logicalOrOperatorWithEveryType.ts, 16, 3)) >a1 || a1 : any ->a1 : any ->a1 : any +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra2 = a2 || a1; // boolean || any is any ->ra2 : any +>ra2 : any, Symbol(ra2, Decl(logicalOrOperatorWithEveryType.ts, 17, 3)) >a2 || a1 : any ->a2 : boolean ->a1 : any +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra3 = a3 || a1; // number || any is any ->ra3 : any +>ra3 : any, Symbol(ra3, Decl(logicalOrOperatorWithEveryType.ts, 18, 3)) >a3 || a1 : any ->a3 : number ->a1 : any +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra4 = a4 || a1; // string || any is any ->ra4 : any +>ra4 : any, Symbol(ra4, Decl(logicalOrOperatorWithEveryType.ts, 19, 3)) >a4 || a1 : any ->a4 : string ->a1 : any +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra5 = a5 || a1; // void || any is any ->ra5 : any +>ra5 : any, Symbol(ra5, Decl(logicalOrOperatorWithEveryType.ts, 20, 3)) >a5 || a1 : any ->a5 : void ->a1 : any +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra6 = a6 || a1; // enum || any is any ->ra6 : any +>ra6 : any, Symbol(ra6, Decl(logicalOrOperatorWithEveryType.ts, 21, 3)) >a6 || a1 : any ->a6 : E ->a1 : any +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra7 = a7 || a1; // object || any is any ->ra7 : any +>ra7 : any, Symbol(ra7, Decl(logicalOrOperatorWithEveryType.ts, 22, 3)) >a7 || a1 : any ->a7 : { a: string; } ->a1 : any +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra8 = a8 || a1; // array || any is any ->ra8 : any +>ra8 : any, Symbol(ra8, Decl(logicalOrOperatorWithEveryType.ts, 23, 3)) >a8 || a1 : any ->a8 : string[] ->a1 : any +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra9 = null || a1; // null || any is any ->ra9 : any +>ra9 : any, Symbol(ra9, Decl(logicalOrOperatorWithEveryType.ts, 24, 3)) >null || a1 : any ->a1 : any +>null : null +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var ra10 = undefined || a1; // undefined || any is any ->ra10 : any +>ra10 : any, Symbol(ra10, Decl(logicalOrOperatorWithEveryType.ts, 25, 3)) >undefined || a1 : any ->undefined : undefined ->a1 : any +>undefined : undefined, Symbol(undefined) +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) var rb1 = a1 || a2; // any || boolean is any ->rb1 : any +>rb1 : any, Symbol(rb1, Decl(logicalOrOperatorWithEveryType.ts, 27, 3)) >a1 || a2 : any ->a1 : any ->a2 : boolean +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb2 = a2 || a2; // boolean || boolean is boolean ->rb2 : boolean +>rb2 : boolean, Symbol(rb2, Decl(logicalOrOperatorWithEveryType.ts, 28, 3)) >a2 || a2 : boolean ->a2 : boolean ->a2 : boolean +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb3 = a3 || a2; // number || boolean is number | boolean ->rb3 : number | boolean +>rb3 : number | boolean, Symbol(rb3, Decl(logicalOrOperatorWithEveryType.ts, 29, 3)) >a3 || a2 : number | boolean ->a3 : number ->a2 : boolean +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb4 = a4 || a2; // string || boolean is string | boolean ->rb4 : string | boolean +>rb4 : string | boolean, Symbol(rb4, Decl(logicalOrOperatorWithEveryType.ts, 30, 3)) >a4 || a2 : string | boolean ->a4 : string ->a2 : boolean +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb5 = a5 || a2; // void || boolean is void | boolean ->rb5 : boolean | void +>rb5 : boolean | void, Symbol(rb5, Decl(logicalOrOperatorWithEveryType.ts, 31, 3)) >a5 || a2 : boolean | void ->a5 : void ->a2 : boolean +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb6 = a6 || a2; // enum || boolean is E | boolean ->rb6 : boolean | E +>rb6 : boolean | E, Symbol(rb6, Decl(logicalOrOperatorWithEveryType.ts, 32, 3)) >a6 || a2 : boolean | E ->a6 : E ->a2 : boolean +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb7 = a7 || a2; // object || boolean is object | boolean ->rb7 : boolean | { a: string; } +>rb7 : boolean | { a: string; }, Symbol(rb7, Decl(logicalOrOperatorWithEveryType.ts, 33, 3)) >a7 || a2 : boolean | { a: string; } ->a7 : { a: string; } ->a2 : boolean +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb8 = a8 || a2; // array || boolean is array | boolean ->rb8 : boolean | string[] +>rb8 : boolean | string[], Symbol(rb8, Decl(logicalOrOperatorWithEveryType.ts, 34, 3)) >a8 || a2 : boolean | string[] ->a8 : string[] ->a2 : boolean +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb9 = null || a2; // null || boolean is boolean ->rb9 : boolean +>rb9 : boolean, Symbol(rb9, Decl(logicalOrOperatorWithEveryType.ts, 35, 3)) >null || a2 : boolean ->a2 : boolean +>null : null +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rb10= undefined || a2; // undefined || boolean is boolean ->rb10 : boolean +>rb10 : boolean, Symbol(rb10, Decl(logicalOrOperatorWithEveryType.ts, 36, 3)) >undefined || a2 : boolean ->undefined : undefined ->a2 : boolean +>undefined : undefined, Symbol(undefined) +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) var rc1 = a1 || a3; // any || number is any ->rc1 : any +>rc1 : any, Symbol(rc1, Decl(logicalOrOperatorWithEveryType.ts, 38, 3)) >a1 || a3 : any ->a1 : any ->a3 : number +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc2 = a2 || a3; // boolean || number is boolean | number ->rc2 : number | boolean +>rc2 : number | boolean, Symbol(rc2, Decl(logicalOrOperatorWithEveryType.ts, 39, 3)) >a2 || a3 : number | boolean ->a2 : boolean ->a3 : number +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc3 = a3 || a3; // number || number is number ->rc3 : number +>rc3 : number, Symbol(rc3, Decl(logicalOrOperatorWithEveryType.ts, 40, 3)) >a3 || a3 : number ->a3 : number ->a3 : number +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc4 = a4 || a3; // string || number is string | number ->rc4 : string | number +>rc4 : string | number, Symbol(rc4, Decl(logicalOrOperatorWithEveryType.ts, 41, 3)) >a4 || a3 : string | number ->a4 : string ->a3 : number +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc5 = a5 || a3; // void || number is void | number ->rc5 : number | void +>rc5 : number | void, Symbol(rc5, Decl(logicalOrOperatorWithEveryType.ts, 42, 3)) >a5 || a3 : number | void ->a5 : void ->a3 : number +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc6 = a6 || a3; // enum || number is number ->rc6 : number +>rc6 : number, Symbol(rc6, Decl(logicalOrOperatorWithEveryType.ts, 43, 3)) >a6 || a3 : number ->a6 : E ->a3 : number +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc7 = a7 || a3; // object || number is object | number ->rc7 : number | { a: string; } +>rc7 : number | { a: string; }, Symbol(rc7, Decl(logicalOrOperatorWithEveryType.ts, 44, 3)) >a7 || a3 : number | { a: string; } ->a7 : { a: string; } ->a3 : number +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc8 = a8 || a3; // array || number is array | number ->rc8 : number | string[] +>rc8 : number | string[], Symbol(rc8, Decl(logicalOrOperatorWithEveryType.ts, 45, 3)) >a8 || a3 : number | string[] ->a8 : string[] ->a3 : number +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc9 = null || a3; // null || number is number ->rc9 : number +>rc9 : number, Symbol(rc9, Decl(logicalOrOperatorWithEveryType.ts, 46, 3)) >null || a3 : number ->a3 : number +>null : null +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rc10 = undefined || a3; // undefined || number is number ->rc10 : number +>rc10 : number, Symbol(rc10, Decl(logicalOrOperatorWithEveryType.ts, 47, 3)) >undefined || a3 : number ->undefined : undefined ->a3 : number +>undefined : undefined, Symbol(undefined) +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) var rd1 = a1 || a4; // any || string is any ->rd1 : any +>rd1 : any, Symbol(rd1, Decl(logicalOrOperatorWithEveryType.ts, 49, 3)) >a1 || a4 : any ->a1 : any ->a4 : string +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd2 = a2 || a4; // boolean || string is boolean | string ->rd2 : string | boolean +>rd2 : string | boolean, Symbol(rd2, Decl(logicalOrOperatorWithEveryType.ts, 50, 3)) >a2 || a4 : string | boolean ->a2 : boolean ->a4 : string +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd3 = a3 || a4; // number || string is number | string ->rd3 : string | number +>rd3 : string | number, Symbol(rd3, Decl(logicalOrOperatorWithEveryType.ts, 51, 3)) >a3 || a4 : string | number ->a3 : number ->a4 : string +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd4 = a4 || a4; // string || string is string ->rd4 : string +>rd4 : string, Symbol(rd4, Decl(logicalOrOperatorWithEveryType.ts, 52, 3)) >a4 || a4 : string ->a4 : string ->a4 : string +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd5 = a5 || a4; // void || string is void | string ->rd5 : string | void +>rd5 : string | void, Symbol(rd5, Decl(logicalOrOperatorWithEveryType.ts, 53, 3)) >a5 || a4 : string | void ->a5 : void ->a4 : string +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd6 = a6 || a4; // enum || string is enum | string ->rd6 : string | E +>rd6 : string | E, Symbol(rd6, Decl(logicalOrOperatorWithEveryType.ts, 54, 3)) >a6 || a4 : string | E ->a6 : E ->a4 : string +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd7 = a7 || a4; // object || string is object | string ->rd7 : string | { a: string; } +>rd7 : string | { a: string; }, Symbol(rd7, Decl(logicalOrOperatorWithEveryType.ts, 55, 3)) >a7 || a4 : string | { a: string; } ->a7 : { a: string; } ->a4 : string +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd8 = a8 || a4; // array || string is array | string ->rd8 : string | string[] +>rd8 : string | string[], Symbol(rd8, Decl(logicalOrOperatorWithEveryType.ts, 56, 3)) >a8 || a4 : string | string[] ->a8 : string[] ->a4 : string +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd9 = null || a4; // null || string is string ->rd9 : string +>rd9 : string, Symbol(rd9, Decl(logicalOrOperatorWithEveryType.ts, 57, 3)) >null || a4 : string ->a4 : string +>null : null +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var rd10 = undefined || a4; // undefined || string is string ->rd10 : string +>rd10 : string, Symbol(rd10, Decl(logicalOrOperatorWithEveryType.ts, 58, 3)) >undefined || a4 : string ->undefined : undefined ->a4 : string +>undefined : undefined, Symbol(undefined) +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) var re1 = a1 || a5; // any || void is any ->re1 : any +>re1 : any, Symbol(re1, Decl(logicalOrOperatorWithEveryType.ts, 60, 3)) >a1 || a5 : any ->a1 : any ->a5 : void +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re2 = a2 || a5; // boolean || void is boolean | void ->re2 : boolean | void +>re2 : boolean | void, Symbol(re2, Decl(logicalOrOperatorWithEveryType.ts, 61, 3)) >a2 || a5 : boolean | void ->a2 : boolean ->a5 : void +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re3 = a3 || a5; // number || void is number | void ->re3 : number | void +>re3 : number | void, Symbol(re3, Decl(logicalOrOperatorWithEveryType.ts, 62, 3)) >a3 || a5 : number | void ->a3 : number ->a5 : void +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re4 = a4 || a5; // string || void is string | void ->re4 : string | void +>re4 : string | void, Symbol(re4, Decl(logicalOrOperatorWithEveryType.ts, 63, 3)) >a4 || a5 : string | void ->a4 : string ->a5 : void +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re5 = a5 || a5; // void || void is void ->re5 : void +>re5 : void, Symbol(re5, Decl(logicalOrOperatorWithEveryType.ts, 64, 3)) >a5 || a5 : void ->a5 : void ->a5 : void +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re6 = a6 || a5; // enum || void is enum | void ->re6 : void | E +>re6 : void | E, Symbol(re6, Decl(logicalOrOperatorWithEveryType.ts, 65, 3)) >a6 || a5 : void | E ->a6 : E ->a5 : void +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re7 = a7 || a5; // object || void is object | void ->re7 : void | { a: string; } +>re7 : void | { a: string; }, Symbol(re7, Decl(logicalOrOperatorWithEveryType.ts, 66, 3)) >a7 || a5 : void | { a: string; } ->a7 : { a: string; } ->a5 : void +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re8 = a8 || a5; // array || void is array | void ->re8 : void | string[] +>re8 : void | string[], Symbol(re8, Decl(logicalOrOperatorWithEveryType.ts, 67, 3)) >a8 || a5 : void | string[] ->a8 : string[] ->a5 : void +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re9 = null || a5; // null || void is void ->re9 : void +>re9 : void, Symbol(re9, Decl(logicalOrOperatorWithEveryType.ts, 68, 3)) >null || a5 : void ->a5 : void +>null : null +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var re10 = undefined || a5; // undefined || void is void ->re10 : void +>re10 : void, Symbol(re10, Decl(logicalOrOperatorWithEveryType.ts, 69, 3)) >undefined || a5 : void ->undefined : undefined ->a5 : void +>undefined : undefined, Symbol(undefined) +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) var rg1 = a1 || a6; // any || enum is any ->rg1 : any +>rg1 : any, Symbol(rg1, Decl(logicalOrOperatorWithEveryType.ts, 71, 3)) >a1 || a6 : any ->a1 : any ->a6 : E +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg2 = a2 || a6; // boolean || enum is boolean | enum ->rg2 : boolean | E +>rg2 : boolean | E, Symbol(rg2, Decl(logicalOrOperatorWithEveryType.ts, 72, 3)) >a2 || a6 : boolean | E ->a2 : boolean ->a6 : E +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg3 = a3 || a6; // number || enum is number ->rg3 : number +>rg3 : number, Symbol(rg3, Decl(logicalOrOperatorWithEveryType.ts, 73, 3)) >a3 || a6 : number ->a3 : number ->a6 : E +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg4 = a4 || a6; // string || enum is string | enum ->rg4 : string | E +>rg4 : string | E, Symbol(rg4, Decl(logicalOrOperatorWithEveryType.ts, 74, 3)) >a4 || a6 : string | E ->a4 : string ->a6 : E +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg5 = a5 || a6; // void || enum is void | enum ->rg5 : void | E +>rg5 : void | E, Symbol(rg5, Decl(logicalOrOperatorWithEveryType.ts, 75, 3)) >a5 || a6 : void | E ->a5 : void ->a6 : E +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg6 = a6 || a6; // enum || enum is E ->rg6 : E +>rg6 : E, Symbol(rg6, Decl(logicalOrOperatorWithEveryType.ts, 76, 3)) >a6 || a6 : E ->a6 : E ->a6 : E +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg7 = a7 || a6; // object || enum is object | enum ->rg7 : E | { a: string; } +>rg7 : E | { a: string; }, Symbol(rg7, Decl(logicalOrOperatorWithEveryType.ts, 77, 3)) >a7 || a6 : E | { a: string; } ->a7 : { a: string; } ->a6 : E +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg8 = a8 || a6; // array || enum is array | enum ->rg8 : E | string[] +>rg8 : E | string[], Symbol(rg8, Decl(logicalOrOperatorWithEveryType.ts, 78, 3)) >a8 || a6 : E | string[] ->a8 : string[] ->a6 : E +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg9 = null || a6; // null || enum is E ->rg9 : E +>rg9 : E, Symbol(rg9, Decl(logicalOrOperatorWithEveryType.ts, 79, 3)) >null || a6 : E ->a6 : E +>null : null +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rg10 = undefined || a6; // undefined || enum is E ->rg10 : E +>rg10 : E, Symbol(rg10, Decl(logicalOrOperatorWithEveryType.ts, 80, 3)) >undefined || a6 : E ->undefined : undefined ->a6 : E +>undefined : undefined, Symbol(undefined) +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) var rh1 = a1 || a7; // any || object is any ->rh1 : any +>rh1 : any, Symbol(rh1, Decl(logicalOrOperatorWithEveryType.ts, 82, 3)) >a1 || a7 : any ->a1 : any ->a7 : { a: string; } +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh2 = a2 || a7; // boolean || object is boolean | object ->rh2 : boolean | { a: string; } +>rh2 : boolean | { a: string; }, Symbol(rh2, Decl(logicalOrOperatorWithEveryType.ts, 83, 3)) >a2 || a7 : boolean | { a: string; } ->a2 : boolean ->a7 : { a: string; } +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh3 = a3 || a7; // number || object is number | object ->rh3 : number | { a: string; } +>rh3 : number | { a: string; }, Symbol(rh3, Decl(logicalOrOperatorWithEveryType.ts, 84, 3)) >a3 || a7 : number | { a: string; } ->a3 : number ->a7 : { a: string; } +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh4 = a4 || a7; // string || object is string | object ->rh4 : string | { a: string; } +>rh4 : string | { a: string; }, Symbol(rh4, Decl(logicalOrOperatorWithEveryType.ts, 85, 3)) >a4 || a7 : string | { a: string; } ->a4 : string ->a7 : { a: string; } +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh5 = a5 || a7; // void || object is void | object ->rh5 : void | { a: string; } +>rh5 : void | { a: string; }, Symbol(rh5, Decl(logicalOrOperatorWithEveryType.ts, 86, 3)) >a5 || a7 : void | { a: string; } ->a5 : void ->a7 : { a: string; } +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh6 = a6 || a7; // enum || object is enum | object ->rh6 : E | { a: string; } +>rh6 : E | { a: string; }, Symbol(rh6, Decl(logicalOrOperatorWithEveryType.ts, 87, 3)) >a6 || a7 : E | { a: string; } ->a6 : E ->a7 : { a: string; } +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh7 = a7 || a7; // object || object is object ->rh7 : { a: string; } +>rh7 : { a: string; }, Symbol(rh7, Decl(logicalOrOperatorWithEveryType.ts, 88, 3)) >a7 || a7 : { a: string; } ->a7 : { a: string; } ->a7 : { a: string; } +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh8 = a8 || a7; // array || object is array | object ->rh8 : { a: string; } | string[] +>rh8 : { a: string; } | string[], Symbol(rh8, Decl(logicalOrOperatorWithEveryType.ts, 89, 3)) >a8 || a7 : { a: string; } | string[] ->a8 : string[] ->a7 : { a: string; } +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh9 = null || a7; // null || object is object ->rh9 : { a: string; } +>rh9 : { a: string; }, Symbol(rh9, Decl(logicalOrOperatorWithEveryType.ts, 90, 3)) >null || a7 : { a: string; } ->a7 : { a: string; } +>null : null +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var rh10 = undefined || a7; // undefined || object is object ->rh10 : { a: string; } +>rh10 : { a: string; }, Symbol(rh10, Decl(logicalOrOperatorWithEveryType.ts, 91, 3)) >undefined || a7 : { a: string; } ->undefined : undefined ->a7 : { a: string; } +>undefined : undefined, Symbol(undefined) +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) var ri1 = a1 || a8; // any || array is any ->ri1 : any +>ri1 : any, Symbol(ri1, Decl(logicalOrOperatorWithEveryType.ts, 93, 3)) >a1 || a8 : any ->a1 : any ->a8 : string[] +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri2 = a2 || a8; // boolean || array is boolean | array ->ri2 : boolean | string[] +>ri2 : boolean | string[], Symbol(ri2, Decl(logicalOrOperatorWithEveryType.ts, 94, 3)) >a2 || a8 : boolean | string[] ->a2 : boolean ->a8 : string[] +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri3 = a3 || a8; // number || array is number | array ->ri3 : number | string[] +>ri3 : number | string[], Symbol(ri3, Decl(logicalOrOperatorWithEveryType.ts, 95, 3)) >a3 || a8 : number | string[] ->a3 : number ->a8 : string[] +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri4 = a4 || a8; // string || array is string | array ->ri4 : string | string[] +>ri4 : string | string[], Symbol(ri4, Decl(logicalOrOperatorWithEveryType.ts, 96, 3)) >a4 || a8 : string | string[] ->a4 : string ->a8 : string[] +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri5 = a5 || a8; // void || array is void | array ->ri5 : void | string[] +>ri5 : void | string[], Symbol(ri5, Decl(logicalOrOperatorWithEveryType.ts, 97, 3)) >a5 || a8 : void | string[] ->a5 : void ->a8 : string[] +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri6 = a6 || a8; // enum || array is enum | array ->ri6 : E | string[] +>ri6 : E | string[], Symbol(ri6, Decl(logicalOrOperatorWithEveryType.ts, 98, 3)) >a6 || a8 : E | string[] ->a6 : E ->a8 : string[] +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri7 = a7 || a8; // object || array is object | array ->ri7 : { a: string; } | string[] +>ri7 : { a: string; } | string[], Symbol(ri7, Decl(logicalOrOperatorWithEveryType.ts, 99, 3)) >a7 || a8 : { a: string; } | string[] ->a7 : { a: string; } ->a8 : string[] +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri8 = a8 || a8; // array || array is array ->ri8 : string[] +>ri8 : string[], Symbol(ri8, Decl(logicalOrOperatorWithEveryType.ts, 100, 3)) >a8 || a8 : string[] ->a8 : string[] ->a8 : string[] +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri9 = null || a8; // null || array is array ->ri9 : string[] +>ri9 : string[], Symbol(ri9, Decl(logicalOrOperatorWithEveryType.ts, 101, 3)) >null || a8 : string[] ->a8 : string[] +>null : null +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var ri10 = undefined || a8; // undefined || array is array ->ri10 : string[] +>ri10 : string[], Symbol(ri10, Decl(logicalOrOperatorWithEveryType.ts, 102, 3)) >undefined || a8 : string[] ->undefined : undefined ->a8 : string[] +>undefined : undefined, Symbol(undefined) +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) var rj1 = a1 || null; // any || null is any ->rj1 : any +>rj1 : any, Symbol(rj1, Decl(logicalOrOperatorWithEveryType.ts, 104, 3)) >a1 || null : any ->a1 : any +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>null : null var rj2 = a2 || null; // boolean || null is boolean ->rj2 : boolean +>rj2 : boolean, Symbol(rj2, Decl(logicalOrOperatorWithEveryType.ts, 105, 3)) >a2 || null : boolean ->a2 : boolean +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>null : null var rj3 = a3 || null; // number || null is number ->rj3 : number +>rj3 : number, Symbol(rj3, Decl(logicalOrOperatorWithEveryType.ts, 106, 3)) >a3 || null : number ->a3 : number +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>null : null var rj4 = a4 || null; // string || null is string ->rj4 : string +>rj4 : string, Symbol(rj4, Decl(logicalOrOperatorWithEveryType.ts, 107, 3)) >a4 || null : string ->a4 : string +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>null : null var rj5 = a5 || null; // void || null is void ->rj5 : void +>rj5 : void, Symbol(rj5, Decl(logicalOrOperatorWithEveryType.ts, 108, 3)) >a5 || null : void ->a5 : void +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>null : null var rj6 = a6 || null; // enum || null is E ->rj6 : E +>rj6 : E, Symbol(rj6, Decl(logicalOrOperatorWithEveryType.ts, 109, 3)) >a6 || null : E ->a6 : E +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>null : null var rj7 = a7 || null; // object || null is object ->rj7 : { a: string; } +>rj7 : { a: string; }, Symbol(rj7, Decl(logicalOrOperatorWithEveryType.ts, 110, 3)) >a7 || null : { a: string; } ->a7 : { a: string; } +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>null : null var rj8 = a8 || null; // array || null is array ->rj8 : string[] +>rj8 : string[], Symbol(rj8, Decl(logicalOrOperatorWithEveryType.ts, 111, 3)) >a8 || null : string[] ->a8 : string[] +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>null : null var rj9 = null || null; // null || null is any ->rj9 : any +>rj9 : any, Symbol(rj9, Decl(logicalOrOperatorWithEveryType.ts, 112, 3)) >null || null : null +>null : null +>null : null var rj10 = undefined || null; // undefined || null is any ->rj10 : any +>rj10 : any, Symbol(rj10, Decl(logicalOrOperatorWithEveryType.ts, 113, 3)) >undefined || null : null ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>null : null var rf1 = a1 || undefined; // any || undefined is any ->rf1 : any +>rf1 : any, Symbol(rf1, Decl(logicalOrOperatorWithEveryType.ts, 115, 3)) >a1 || undefined : any ->a1 : any ->undefined : undefined +>a1 : any, Symbol(a1, Decl(logicalOrOperatorWithEveryType.ts, 7, 3)) +>undefined : undefined, Symbol(undefined) var rf2 = a2 || undefined; // boolean || undefined is boolean ->rf2 : boolean +>rf2 : boolean, Symbol(rf2, Decl(logicalOrOperatorWithEveryType.ts, 116, 3)) >a2 || undefined : boolean ->a2 : boolean ->undefined : undefined +>a2 : boolean, Symbol(a2, Decl(logicalOrOperatorWithEveryType.ts, 8, 3)) +>undefined : undefined, Symbol(undefined) var rf3 = a3 || undefined; // number || undefined is number ->rf3 : number +>rf3 : number, Symbol(rf3, Decl(logicalOrOperatorWithEveryType.ts, 117, 3)) >a3 || undefined : number ->a3 : number ->undefined : undefined +>a3 : number, Symbol(a3, Decl(logicalOrOperatorWithEveryType.ts, 9, 3)) +>undefined : undefined, Symbol(undefined) var rf4 = a4 || undefined; // string || undefined is string ->rf4 : string +>rf4 : string, Symbol(rf4, Decl(logicalOrOperatorWithEveryType.ts, 118, 3)) >a4 || undefined : string ->a4 : string ->undefined : undefined +>a4 : string, Symbol(a4, Decl(logicalOrOperatorWithEveryType.ts, 10, 3)) +>undefined : undefined, Symbol(undefined) var rf5 = a5 || undefined; // void || undefined is void ->rf5 : void +>rf5 : void, Symbol(rf5, Decl(logicalOrOperatorWithEveryType.ts, 119, 3)) >a5 || undefined : void ->a5 : void ->undefined : undefined +>a5 : void, Symbol(a5, Decl(logicalOrOperatorWithEveryType.ts, 11, 3)) +>undefined : undefined, Symbol(undefined) var rf6 = a6 || undefined; // enum || undefined is E ->rf6 : E +>rf6 : E, Symbol(rf6, Decl(logicalOrOperatorWithEveryType.ts, 120, 3)) >a6 || undefined : E ->a6 : E ->undefined : undefined +>a6 : E, Symbol(a6, Decl(logicalOrOperatorWithEveryType.ts, 12, 3)) +>undefined : undefined, Symbol(undefined) var rf7 = a7 || undefined; // object || undefined is object ->rf7 : { a: string; } +>rf7 : { a: string; }, Symbol(rf7, Decl(logicalOrOperatorWithEveryType.ts, 121, 3)) >a7 || undefined : { a: string; } ->a7 : { a: string; } ->undefined : undefined +>a7 : { a: string; }, Symbol(a7, Decl(logicalOrOperatorWithEveryType.ts, 13, 3)) +>undefined : undefined, Symbol(undefined) var rf8 = a8 || undefined; // array || undefined is array ->rf8 : string[] +>rf8 : string[], Symbol(rf8, Decl(logicalOrOperatorWithEveryType.ts, 122, 3)) >a8 || undefined : string[] ->a8 : string[] ->undefined : undefined +>a8 : string[], Symbol(a8, Decl(logicalOrOperatorWithEveryType.ts, 14, 3)) +>undefined : undefined, Symbol(undefined) var rf9 = null || undefined; // null || undefined is any ->rf9 : any +>rf9 : any, Symbol(rf9, Decl(logicalOrOperatorWithEveryType.ts, 123, 3)) >null || undefined : null ->undefined : undefined +>null : null +>undefined : undefined, Symbol(undefined) var rf10 = undefined || undefined; // undefined || undefined is any ->rf10 : any +>rf10 : any, Symbol(rf10, Decl(logicalOrOperatorWithEveryType.ts, 124, 3)) >undefined || undefined : undefined ->undefined : undefined ->undefined : undefined +>undefined : undefined, Symbol(undefined) +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/logicalOrOperatorWithTypeParameters.types b/tests/baselines/reference/logicalOrOperatorWithTypeParameters.types index 4008fbbff50..29b3db3d8d6 100644 --- a/tests/baselines/reference/logicalOrOperatorWithTypeParameters.types +++ b/tests/baselines/reference/logicalOrOperatorWithTypeParameters.types @@ -1,122 +1,123 @@ === tests/cases/conformance/expressions/binaryOperators/logicalOrOperator/logicalOrOperatorWithTypeParameters.ts === function fn1(t: T, u: U) { ->fn1 : (t: T, u: U) => void ->T : T ->U : U ->t : T ->T : T ->u : U ->U : U +>fn1 : (t: T, u: U) => void, Symbol(fn1, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 0)) +>T : T, Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 13)) +>U : U, Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 15)) +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19)) +>T : T, Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 13)) +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 24)) +>U : U, Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 15)) var r1 = t || t; ->r1 : T +>r1 : T, Symbol(r1, Decl(logicalOrOperatorWithTypeParameters.ts, 1, 7)) >t || t : T ->t : T ->t : T +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19)) +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19)) var r2: T = t || t; ->r2 : T ->T : T +>r2 : T, Symbol(r2, Decl(logicalOrOperatorWithTypeParameters.ts, 2, 7)) +>T : T, Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 13)) >t || t : T ->t : T ->t : T +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19)) +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19)) var r3 = t || u; ->r3 : T | U +>r3 : T | U, Symbol(r3, Decl(logicalOrOperatorWithTypeParameters.ts, 3, 7)) >t || u : T | U ->t : T ->u : U +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19)) +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 24)) var r4: {} = t || u; ->r4 : {} +>r4 : {}, Symbol(r4, Decl(logicalOrOperatorWithTypeParameters.ts, 4, 7)) >t || u : T | U ->t : T ->u : U +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 19)) +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 0, 24)) } function fn2(t: T, u: U, v: V) { ->fn2 : (t: T, u: U, v: V) => void ->T : T ->U : U ->V : V ->t : T ->T : T ->u : U ->U : U ->v : V ->V : V +>fn2 : (t: T, u: U, v: V) => void, Symbol(fn2, Decl(logicalOrOperatorWithTypeParameters.ts, 5, 1)) +>T : T, Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 13)) +>U : U, Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 15)) +>V : V, Symbol(V, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 32)) +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 50)) +>T : T, Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 13)) +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55)) +>U : U, Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 15)) +>v : V, Symbol(v, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 61)) +>V : V, Symbol(V, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 32)) var r1 = t || u; ->r1 : T | U +>r1 : T | U, Symbol(r1, Decl(logicalOrOperatorWithTypeParameters.ts, 8, 7)) >t || u : T | U ->t : T ->u : U +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 50)) +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55)) //var r2: T = t || u; var r3 = u || u; ->r3 : U +>r3 : U, Symbol(r3, Decl(logicalOrOperatorWithTypeParameters.ts, 10, 7)) >u || u : U ->u : U ->u : U +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55)) +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55)) var r4: U = u || u; ->r4 : U ->U : U +>r4 : U, Symbol(r4, Decl(logicalOrOperatorWithTypeParameters.ts, 11, 7)) +>U : U, Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 15)) >u || u : U ->u : U ->u : U +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55)) +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55)) var r5 = u || v; ->r5 : U | V +>r5 : U | V, Symbol(r5, Decl(logicalOrOperatorWithTypeParameters.ts, 12, 7)) >u || v : U | V ->u : U ->v : V +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55)) +>v : V, Symbol(v, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 61)) var r6: {} = u || v; ->r6 : {} +>r6 : {}, Symbol(r6, Decl(logicalOrOperatorWithTypeParameters.ts, 13, 7)) >u || v : U | V ->u : U ->v : V +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 55)) +>v : V, Symbol(v, Decl(logicalOrOperatorWithTypeParameters.ts, 7, 61)) //var r7: T = u || v; } function fn3(t: T, u: U) { ->fn3 : (t: T, u: U) => void ->T : T ->a : string ->b : string ->U : U ->a : string ->b : number ->t : T ->T : T ->u : U ->U : U +>fn3 : (t: T, u: U) => void, Symbol(fn3, Decl(logicalOrOperatorWithTypeParameters.ts, 15, 1)) +>T : T, Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 13)) +>a : string, Symbol(a, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 24)) +>b : string, Symbol(b, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 35)) +>U : U, Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 48)) +>a : string, Symbol(a, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 60)) +>b : number, Symbol(b, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 71)) +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 85)) +>T : T, Symbol(T, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 13)) +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 90)) +>U : U, Symbol(U, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 48)) var r1 = t || u; ->r1 : T | U +>r1 : T | U, Symbol(r1, Decl(logicalOrOperatorWithTypeParameters.ts, 18, 7)) >t || u : T | U ->t : T ->u : U +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 85)) +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 90)) var r2: {} = t || u; ->r2 : {} +>r2 : {}, Symbol(r2, Decl(logicalOrOperatorWithTypeParameters.ts, 19, 7)) >t || u : T | U ->t : T ->u : U +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 85)) +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 90)) var r3 = t || { a: '' }; ->r3 : { a: string; } +>r3 : { a: string; }, Symbol(r3, Decl(logicalOrOperatorWithTypeParameters.ts, 20, 7)) >t || { a: '' } : { a: string; } ->t : T +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 85)) >{ a: '' } : { a: string; } ->a : string +>a : string, Symbol(a, Decl(logicalOrOperatorWithTypeParameters.ts, 20, 19)) +>'' : string var r4: { a: string } = t || u; ->r4 : { a: string; } ->a : string +>r4 : { a: string; }, Symbol(r4, Decl(logicalOrOperatorWithTypeParameters.ts, 21, 7)) +>a : string, Symbol(a, Decl(logicalOrOperatorWithTypeParameters.ts, 21, 13)) >t || u : T | U ->t : T ->u : U +>t : T, Symbol(t, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 85)) +>u : U, Symbol(u, Decl(logicalOrOperatorWithTypeParameters.ts, 17, 90)) } diff --git a/tests/baselines/reference/m7Bugs.types b/tests/baselines/reference/m7Bugs.types index fa627f20cf7..e32def09aac 100644 --- a/tests/baselines/reference/m7Bugs.types +++ b/tests/baselines/reference/m7Bugs.types @@ -1,67 +1,67 @@ === tests/cases/compiler/m7Bugs.ts === // scenario 1 interface ISomething { ->ISomething : ISomething +>ISomething : ISomething, Symbol(ISomething, Decl(m7Bugs.ts, 0, 0)) something: number; ->something : number +>something : number, Symbol(something, Decl(m7Bugs.ts, 1, 22)) } var s: ISomething = ({ }); ->s : ISomething ->ISomething : ISomething +>s : ISomething, Symbol(s, Decl(m7Bugs.ts, 5, 3)) +>ISomething : ISomething, Symbol(ISomething, Decl(m7Bugs.ts, 0, 0)) >({ }) : ISomething ->ISomething : ISomething +>ISomething : ISomething, Symbol(ISomething, Decl(m7Bugs.ts, 0, 0)) >({ }) : {} >{ } : {} // scenario 2 interface A { x: string; } ->A : A ->x : string +>A : A, Symbol(A, Decl(m7Bugs.ts, 5, 38)) +>x : string, Symbol(x, Decl(m7Bugs.ts, 9, 13)) interface B extends A { } ->B : B ->A : A +>B : B, Symbol(B, Decl(m7Bugs.ts, 9, 26)) +>A : A, Symbol(A, Decl(m7Bugs.ts, 5, 38)) var x: B = { }; ->x : B ->B : B +>x : B, Symbol(x, Decl(m7Bugs.ts, 13, 3)) +>B : B, Symbol(B, Decl(m7Bugs.ts, 9, 26)) >{ } : B ->B : B +>B : B, Symbol(B, Decl(m7Bugs.ts, 9, 26)) >{ } : {} class C1 { ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(m7Bugs.ts, 13, 18)) public x: string; ->x : string +>x : string, Symbol(x, Decl(m7Bugs.ts, 15, 10)) } class C2 extends C1 {} ->C2 : C2 ->C1 : C1 +>C2 : C2, Symbol(C2, Decl(m7Bugs.ts, 17, 1)) +>C1 : C1, Symbol(C1, Decl(m7Bugs.ts, 13, 18)) var y1: C1 = new C2(); ->y1 : C1 ->C1 : C1 +>y1 : C1, Symbol(y1, Decl(m7Bugs.ts, 21, 3)) +>C1 : C1, Symbol(C1, Decl(m7Bugs.ts, 13, 18)) >new C2() : C2 ->C2 : typeof C2 +>C2 : typeof C2, Symbol(C2, Decl(m7Bugs.ts, 17, 1)) var y2: C1 = new C2(); ->y2 : C1 ->C1 : C1 +>y2 : C1, Symbol(y2, Decl(m7Bugs.ts, 22, 3)) +>C1 : C1, Symbol(C1, Decl(m7Bugs.ts, 13, 18)) > new C2() : C1 ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(m7Bugs.ts, 13, 18)) >new C2() : C2 ->C2 : typeof C2 +>C2 : typeof C2, Symbol(C2, Decl(m7Bugs.ts, 17, 1)) var y3: C1 = {}; ->y3 : C1 ->C1 : C1 +>y3 : C1, Symbol(y3, Decl(m7Bugs.ts, 23, 3)) +>C1 : C1, Symbol(C1, Decl(m7Bugs.ts, 13, 18)) > {} : C1 ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(m7Bugs.ts, 13, 18)) >{} : {} diff --git a/tests/baselines/reference/memberAccessMustUseModuleInstances.types b/tests/baselines/reference/memberAccessMustUseModuleInstances.types index 4e95362f782..be7211ea3d7 100644 --- a/tests/baselines/reference/memberAccessMustUseModuleInstances.types +++ b/tests/baselines/reference/memberAccessMustUseModuleInstances.types @@ -1,26 +1,28 @@ === tests/cases/compiler/memberAccessMustUseModuleInstances_1.ts === /// import WinJS = require('memberAccessMustUseModuleInstances_0'); ->WinJS : typeof WinJS +>WinJS : typeof WinJS, Symbol(WinJS, Decl(memberAccessMustUseModuleInstances_1.ts, 0, 0)) WinJS.Promise.timeout(10); >WinJS.Promise.timeout(10) : WinJS.Promise ->WinJS.Promise.timeout : (delay: number) => WinJS.Promise ->WinJS.Promise : typeof WinJS.Promise ->WinJS : typeof WinJS ->Promise : typeof WinJS.Promise ->timeout : (delay: number) => WinJS.Promise +>WinJS.Promise.timeout : (delay: number) => WinJS.Promise, Symbol(WinJS.Promise.timeout, Decl(memberAccessMustUseModuleInstances_0.ts, 0, 22)) +>WinJS.Promise : typeof WinJS.Promise, Symbol(WinJS.Promise, Decl(memberAccessMustUseModuleInstances_0.ts, 0, 0)) +>WinJS : typeof WinJS, Symbol(WinJS, Decl(memberAccessMustUseModuleInstances_1.ts, 0, 0)) +>Promise : typeof WinJS.Promise, Symbol(WinJS.Promise, Decl(memberAccessMustUseModuleInstances_0.ts, 0, 0)) +>timeout : (delay: number) => WinJS.Promise, Symbol(WinJS.Promise.timeout, Decl(memberAccessMustUseModuleInstances_0.ts, 0, 22)) +>10 : number === tests/cases/compiler/memberAccessMustUseModuleInstances_0.ts === export class Promise { ->Promise : Promise +>Promise : Promise, Symbol(Promise, Decl(memberAccessMustUseModuleInstances_0.ts, 0, 0)) static timeout(delay: number): Promise { ->timeout : (delay: number) => Promise ->delay : number ->Promise : Promise +>timeout : (delay: number) => Promise, Symbol(Promise.timeout, Decl(memberAccessMustUseModuleInstances_0.ts, 0, 22)) +>delay : number, Symbol(delay, Decl(memberAccessMustUseModuleInstances_0.ts, 1, 19)) +>Promise : Promise, Symbol(Promise, Decl(memberAccessMustUseModuleInstances_0.ts, 0, 0)) return null; +>null : null } } diff --git a/tests/baselines/reference/memberAccessOnConstructorType.types b/tests/baselines/reference/memberAccessOnConstructorType.types index d4d722619d4..9052812d3ec 100644 --- a/tests/baselines/reference/memberAccessOnConstructorType.types +++ b/tests/baselines/reference/memberAccessOnConstructorType.types @@ -1,10 +1,11 @@ === tests/cases/compiler/memberAccessOnConstructorType.ts === var f: new () => void; ->f : new () => void +>f : new () => void, Symbol(f, Decl(memberAccessOnConstructorType.ts, 0, 3)) f.arguments == 0; >f.arguments == 0 : boolean ->f.arguments : any ->f : new () => void ->arguments : any +>f.arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) +>f : new () => void, Symbol(f, Decl(memberAccessOnConstructorType.ts, 0, 3)) +>arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) +>0 : number diff --git a/tests/baselines/reference/memberFunctionsWithPublicOverloads.types b/tests/baselines/reference/memberFunctionsWithPublicOverloads.types index 7cbc2aca1ff..19f20ea5d37 100644 --- a/tests/baselines/reference/memberFunctionsWithPublicOverloads.types +++ b/tests/baselines/reference/memberFunctionsWithPublicOverloads.types @@ -1,142 +1,142 @@ === tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionsWithPublicOverloads.ts === class C { ->C : C +>C : C, Symbol(C, Decl(memberFunctionsWithPublicOverloads.ts, 0, 0)) public foo(x: number); ->foo : { (x: number): any; (x: number, y: string): any; } ->x : number +>foo : { (x: number): any; (x: number, y: string): any; }, Symbol(foo, Decl(memberFunctionsWithPublicOverloads.ts, 0, 9), Decl(memberFunctionsWithPublicOverloads.ts, 1, 26), Decl(memberFunctionsWithPublicOverloads.ts, 2, 37)) +>x : number, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 1, 15)) public foo(x: number, y: string); ->foo : { (x: number): any; (x: number, y: string): any; } ->x : number ->y : string +>foo : { (x: number): any; (x: number, y: string): any; }, Symbol(foo, Decl(memberFunctionsWithPublicOverloads.ts, 0, 9), Decl(memberFunctionsWithPublicOverloads.ts, 1, 26), Decl(memberFunctionsWithPublicOverloads.ts, 2, 37)) +>x : number, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 2, 15)) +>y : string, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 2, 25)) public foo(x: any, y?: any) { } ->foo : { (x: number): any; (x: number, y: string): any; } ->x : any ->y : any +>foo : { (x: number): any; (x: number, y: string): any; }, Symbol(foo, Decl(memberFunctionsWithPublicOverloads.ts, 0, 9), Decl(memberFunctionsWithPublicOverloads.ts, 1, 26), Decl(memberFunctionsWithPublicOverloads.ts, 2, 37)) +>x : any, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 3, 15)) +>y : any, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 3, 22)) public bar(x: 'hi'); ->bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; } ->x : 'hi' +>bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; }, Symbol(bar, Decl(memberFunctionsWithPublicOverloads.ts, 3, 35), Decl(memberFunctionsWithPublicOverloads.ts, 5, 24), Decl(memberFunctionsWithPublicOverloads.ts, 6, 26), Decl(memberFunctionsWithPublicOverloads.ts, 7, 37)) +>x : 'hi', Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 5, 15)) public bar(x: string); ->bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; } ->x : string +>bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; }, Symbol(bar, Decl(memberFunctionsWithPublicOverloads.ts, 3, 35), Decl(memberFunctionsWithPublicOverloads.ts, 5, 24), Decl(memberFunctionsWithPublicOverloads.ts, 6, 26), Decl(memberFunctionsWithPublicOverloads.ts, 7, 37)) +>x : string, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 6, 15)) public bar(x: number, y: string); ->bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; } ->x : number ->y : string +>bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; }, Symbol(bar, Decl(memberFunctionsWithPublicOverloads.ts, 3, 35), Decl(memberFunctionsWithPublicOverloads.ts, 5, 24), Decl(memberFunctionsWithPublicOverloads.ts, 6, 26), Decl(memberFunctionsWithPublicOverloads.ts, 7, 37)) +>x : number, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 7, 15)) +>y : string, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 7, 25)) public bar(x: any, y?: any) { } ->bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; } ->x : any ->y : any +>bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; }, Symbol(bar, Decl(memberFunctionsWithPublicOverloads.ts, 3, 35), Decl(memberFunctionsWithPublicOverloads.ts, 5, 24), Decl(memberFunctionsWithPublicOverloads.ts, 6, 26), Decl(memberFunctionsWithPublicOverloads.ts, 7, 37)) +>x : any, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 8, 15)) +>y : any, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 8, 22)) public static foo(x: number); ->foo : { (x: number): any; (x: number, y: string): any; } ->x : number +>foo : { (x: number): any; (x: number, y: string): any; }, Symbol(C.foo, Decl(memberFunctionsWithPublicOverloads.ts, 8, 35), Decl(memberFunctionsWithPublicOverloads.ts, 10, 33), Decl(memberFunctionsWithPublicOverloads.ts, 11, 44)) +>x : number, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 10, 22)) public static foo(x: number, y: string); ->foo : { (x: number): any; (x: number, y: string): any; } ->x : number ->y : string +>foo : { (x: number): any; (x: number, y: string): any; }, Symbol(C.foo, Decl(memberFunctionsWithPublicOverloads.ts, 8, 35), Decl(memberFunctionsWithPublicOverloads.ts, 10, 33), Decl(memberFunctionsWithPublicOverloads.ts, 11, 44)) +>x : number, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 11, 22)) +>y : string, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 11, 32)) public static foo(x: any, y?: any) { } ->foo : { (x: number): any; (x: number, y: string): any; } ->x : any ->y : any +>foo : { (x: number): any; (x: number, y: string): any; }, Symbol(C.foo, Decl(memberFunctionsWithPublicOverloads.ts, 8, 35), Decl(memberFunctionsWithPublicOverloads.ts, 10, 33), Decl(memberFunctionsWithPublicOverloads.ts, 11, 44)) +>x : any, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 12, 22)) +>y : any, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 12, 29)) public static bar(x: 'hi'); ->bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; } ->x : 'hi' +>bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; }, Symbol(C.bar, Decl(memberFunctionsWithPublicOverloads.ts, 12, 42), Decl(memberFunctionsWithPublicOverloads.ts, 14, 31), Decl(memberFunctionsWithPublicOverloads.ts, 15, 33), Decl(memberFunctionsWithPublicOverloads.ts, 16, 44)) +>x : 'hi', Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 14, 22)) public static bar(x: string); ->bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; } ->x : string +>bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; }, Symbol(C.bar, Decl(memberFunctionsWithPublicOverloads.ts, 12, 42), Decl(memberFunctionsWithPublicOverloads.ts, 14, 31), Decl(memberFunctionsWithPublicOverloads.ts, 15, 33), Decl(memberFunctionsWithPublicOverloads.ts, 16, 44)) +>x : string, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 15, 22)) public static bar(x: number, y: string); ->bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; } ->x : number ->y : string +>bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; }, Symbol(C.bar, Decl(memberFunctionsWithPublicOverloads.ts, 12, 42), Decl(memberFunctionsWithPublicOverloads.ts, 14, 31), Decl(memberFunctionsWithPublicOverloads.ts, 15, 33), Decl(memberFunctionsWithPublicOverloads.ts, 16, 44)) +>x : number, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 16, 22)) +>y : string, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 16, 32)) public static bar(x: any, y?: any) { } ->bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; } ->x : any ->y : any +>bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; }, Symbol(C.bar, Decl(memberFunctionsWithPublicOverloads.ts, 12, 42), Decl(memberFunctionsWithPublicOverloads.ts, 14, 31), Decl(memberFunctionsWithPublicOverloads.ts, 15, 33), Decl(memberFunctionsWithPublicOverloads.ts, 16, 44)) +>x : any, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 17, 22)) +>y : any, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 17, 29)) } class D { ->D : D ->T : T +>D : D, Symbol(D, Decl(memberFunctionsWithPublicOverloads.ts, 18, 1)) +>T : T, Symbol(T, Decl(memberFunctionsWithPublicOverloads.ts, 20, 8)) public foo(x: number); ->foo : { (x: number): any; (x: T, y: T): any; } ->x : number +>foo : { (x: number): any; (x: T, y: T): any; }, Symbol(foo, Decl(memberFunctionsWithPublicOverloads.ts, 20, 12), Decl(memberFunctionsWithPublicOverloads.ts, 21, 26), Decl(memberFunctionsWithPublicOverloads.ts, 22, 27)) +>x : number, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 21, 15)) public foo(x: T, y: T); ->foo : { (x: number): any; (x: T, y: T): any; } ->x : T ->T : T ->y : T ->T : T +>foo : { (x: number): any; (x: T, y: T): any; }, Symbol(foo, Decl(memberFunctionsWithPublicOverloads.ts, 20, 12), Decl(memberFunctionsWithPublicOverloads.ts, 21, 26), Decl(memberFunctionsWithPublicOverloads.ts, 22, 27)) +>x : T, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 22, 15)) +>T : T, Symbol(T, Decl(memberFunctionsWithPublicOverloads.ts, 20, 8)) +>y : T, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 22, 20)) +>T : T, Symbol(T, Decl(memberFunctionsWithPublicOverloads.ts, 20, 8)) public foo(x: any, y?: any) { } ->foo : { (x: number): any; (x: T, y: T): any; } ->x : any ->y : any +>foo : { (x: number): any; (x: T, y: T): any; }, Symbol(foo, Decl(memberFunctionsWithPublicOverloads.ts, 20, 12), Decl(memberFunctionsWithPublicOverloads.ts, 21, 26), Decl(memberFunctionsWithPublicOverloads.ts, 22, 27)) +>x : any, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 23, 15)) +>y : any, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 23, 22)) public bar(x: 'hi'); ->bar : { (x: 'hi'): any; (x: string): any; (x: T, y: T): any; } ->x : 'hi' +>bar : { (x: 'hi'): any; (x: string): any; (x: T, y: T): any; }, Symbol(bar, Decl(memberFunctionsWithPublicOverloads.ts, 23, 35), Decl(memberFunctionsWithPublicOverloads.ts, 25, 24), Decl(memberFunctionsWithPublicOverloads.ts, 26, 26), Decl(memberFunctionsWithPublicOverloads.ts, 27, 27)) +>x : 'hi', Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 25, 15)) public bar(x: string); ->bar : { (x: 'hi'): any; (x: string): any; (x: T, y: T): any; } ->x : string +>bar : { (x: 'hi'): any; (x: string): any; (x: T, y: T): any; }, Symbol(bar, Decl(memberFunctionsWithPublicOverloads.ts, 23, 35), Decl(memberFunctionsWithPublicOverloads.ts, 25, 24), Decl(memberFunctionsWithPublicOverloads.ts, 26, 26), Decl(memberFunctionsWithPublicOverloads.ts, 27, 27)) +>x : string, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 26, 15)) public bar(x: T, y: T); ->bar : { (x: 'hi'): any; (x: string): any; (x: T, y: T): any; } ->x : T ->T : T ->y : T ->T : T +>bar : { (x: 'hi'): any; (x: string): any; (x: T, y: T): any; }, Symbol(bar, Decl(memberFunctionsWithPublicOverloads.ts, 23, 35), Decl(memberFunctionsWithPublicOverloads.ts, 25, 24), Decl(memberFunctionsWithPublicOverloads.ts, 26, 26), Decl(memberFunctionsWithPublicOverloads.ts, 27, 27)) +>x : T, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 27, 15)) +>T : T, Symbol(T, Decl(memberFunctionsWithPublicOverloads.ts, 20, 8)) +>y : T, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 27, 20)) +>T : T, Symbol(T, Decl(memberFunctionsWithPublicOverloads.ts, 20, 8)) public bar(x: any, y?: any) { } ->bar : { (x: 'hi'): any; (x: string): any; (x: T, y: T): any; } ->x : any ->y : any +>bar : { (x: 'hi'): any; (x: string): any; (x: T, y: T): any; }, Symbol(bar, Decl(memberFunctionsWithPublicOverloads.ts, 23, 35), Decl(memberFunctionsWithPublicOverloads.ts, 25, 24), Decl(memberFunctionsWithPublicOverloads.ts, 26, 26), Decl(memberFunctionsWithPublicOverloads.ts, 27, 27)) +>x : any, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 28, 15)) +>y : any, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 28, 22)) public static foo(x: number); ->foo : { (x: number): any; (x: number, y: string): any; } ->x : number +>foo : { (x: number): any; (x: number, y: string): any; }, Symbol(D.foo, Decl(memberFunctionsWithPublicOverloads.ts, 28, 35), Decl(memberFunctionsWithPublicOverloads.ts, 30, 33), Decl(memberFunctionsWithPublicOverloads.ts, 31, 44)) +>x : number, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 30, 22)) public static foo(x: number, y: string); ->foo : { (x: number): any; (x: number, y: string): any; } ->x : number ->y : string +>foo : { (x: number): any; (x: number, y: string): any; }, Symbol(D.foo, Decl(memberFunctionsWithPublicOverloads.ts, 28, 35), Decl(memberFunctionsWithPublicOverloads.ts, 30, 33), Decl(memberFunctionsWithPublicOverloads.ts, 31, 44)) +>x : number, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 31, 22)) +>y : string, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 31, 32)) public static foo(x: any, y?: any) { } ->foo : { (x: number): any; (x: number, y: string): any; } ->x : any ->y : any +>foo : { (x: number): any; (x: number, y: string): any; }, Symbol(D.foo, Decl(memberFunctionsWithPublicOverloads.ts, 28, 35), Decl(memberFunctionsWithPublicOverloads.ts, 30, 33), Decl(memberFunctionsWithPublicOverloads.ts, 31, 44)) +>x : any, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 32, 22)) +>y : any, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 32, 29)) public static bar(x: 'hi'); ->bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; } ->x : 'hi' +>bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; }, Symbol(D.bar, Decl(memberFunctionsWithPublicOverloads.ts, 32, 42), Decl(memberFunctionsWithPublicOverloads.ts, 34, 31), Decl(memberFunctionsWithPublicOverloads.ts, 35, 33), Decl(memberFunctionsWithPublicOverloads.ts, 36, 44)) +>x : 'hi', Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 34, 22)) public static bar(x: string); ->bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; } ->x : string +>bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; }, Symbol(D.bar, Decl(memberFunctionsWithPublicOverloads.ts, 32, 42), Decl(memberFunctionsWithPublicOverloads.ts, 34, 31), Decl(memberFunctionsWithPublicOverloads.ts, 35, 33), Decl(memberFunctionsWithPublicOverloads.ts, 36, 44)) +>x : string, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 35, 22)) public static bar(x: number, y: string); ->bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; } ->x : number ->y : string +>bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; }, Symbol(D.bar, Decl(memberFunctionsWithPublicOverloads.ts, 32, 42), Decl(memberFunctionsWithPublicOverloads.ts, 34, 31), Decl(memberFunctionsWithPublicOverloads.ts, 35, 33), Decl(memberFunctionsWithPublicOverloads.ts, 36, 44)) +>x : number, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 36, 22)) +>y : string, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 36, 32)) public static bar(x: any, y?: any) { } ->bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; } ->x : any ->y : any +>bar : { (x: 'hi'): any; (x: string): any; (x: number, y: string): any; }, Symbol(D.bar, Decl(memberFunctionsWithPublicOverloads.ts, 32, 42), Decl(memberFunctionsWithPublicOverloads.ts, 34, 31), Decl(memberFunctionsWithPublicOverloads.ts, 35, 33), Decl(memberFunctionsWithPublicOverloads.ts, 36, 44)) +>x : any, Symbol(x, Decl(memberFunctionsWithPublicOverloads.ts, 37, 22)) +>y : any, Symbol(y, Decl(memberFunctionsWithPublicOverloads.ts, 37, 29)) } diff --git a/tests/baselines/reference/memberVariableDeclarations1.types b/tests/baselines/reference/memberVariableDeclarations1.types index 4dd68cdeb35..a699e5aabfe 100644 --- a/tests/baselines/reference/memberVariableDeclarations1.types +++ b/tests/baselines/reference/memberVariableDeclarations1.types @@ -2,84 +2,88 @@ // from spec class Employee { ->Employee : Employee +>Employee : Employee, Symbol(Employee, Decl(memberVariableDeclarations1.ts, 0, 0)) public name: string; ->name : string +>name : string, Symbol(name, Decl(memberVariableDeclarations1.ts, 2, 16)) public address: string; ->address : string +>address : string, Symbol(address, Decl(memberVariableDeclarations1.ts, 3, 24)) public retired = false; ->retired : boolean +>retired : boolean, Symbol(retired, Decl(memberVariableDeclarations1.ts, 4, 27)) +>false : boolean public manager: Employee = null; ->manager : Employee ->Employee : Employee +>manager : Employee, Symbol(manager, Decl(memberVariableDeclarations1.ts, 5, 27)) +>Employee : Employee, Symbol(Employee, Decl(memberVariableDeclarations1.ts, 0, 0)) +>null : null public reports: Employee[] = []; ->reports : Employee[] ->Employee : Employee +>reports : Employee[], Symbol(reports, Decl(memberVariableDeclarations1.ts, 6, 36)) +>Employee : Employee, Symbol(Employee, Decl(memberVariableDeclarations1.ts, 0, 0)) >[] : undefined[] } class Employee2 { ->Employee2 : Employee2 +>Employee2 : Employee2, Symbol(Employee2, Decl(memberVariableDeclarations1.ts, 8, 1)) public name: string; ->name : string +>name : string, Symbol(name, Decl(memberVariableDeclarations1.ts, 10, 17)) public address: string; ->address : string +>address : string, Symbol(address, Decl(memberVariableDeclarations1.ts, 11, 24)) public retired: boolean; ->retired : boolean +>retired : boolean, Symbol(retired, Decl(memberVariableDeclarations1.ts, 12, 27)) public manager: Employee; ->manager : Employee ->Employee : Employee +>manager : Employee, Symbol(manager, Decl(memberVariableDeclarations1.ts, 13, 28)) +>Employee : Employee, Symbol(Employee, Decl(memberVariableDeclarations1.ts, 0, 0)) public reports: Employee[]; ->reports : Employee[] ->Employee : Employee +>reports : Employee[], Symbol(reports, Decl(memberVariableDeclarations1.ts, 14, 29)) +>Employee : Employee, Symbol(Employee, Decl(memberVariableDeclarations1.ts, 0, 0)) constructor() { this.retired = false; >this.retired = false : boolean ->this.retired : boolean ->this : Employee2 ->retired : boolean +>this.retired : boolean, Symbol(retired, Decl(memberVariableDeclarations1.ts, 12, 27)) +>this : Employee2, Symbol(Employee2, Decl(memberVariableDeclarations1.ts, 8, 1)) +>retired : boolean, Symbol(retired, Decl(memberVariableDeclarations1.ts, 12, 27)) +>false : boolean this.manager = null; >this.manager = null : null ->this.manager : Employee ->this : Employee2 ->manager : Employee +>this.manager : Employee, Symbol(manager, Decl(memberVariableDeclarations1.ts, 13, 28)) +>this : Employee2, Symbol(Employee2, Decl(memberVariableDeclarations1.ts, 8, 1)) +>manager : Employee, Symbol(manager, Decl(memberVariableDeclarations1.ts, 13, 28)) +>null : null this.reports = []; >this.reports = [] : undefined[] ->this.reports : Employee[] ->this : Employee2 ->reports : Employee[] +>this.reports : Employee[], Symbol(reports, Decl(memberVariableDeclarations1.ts, 14, 29)) +>this : Employee2, Symbol(Employee2, Decl(memberVariableDeclarations1.ts, 8, 1)) +>reports : Employee[], Symbol(reports, Decl(memberVariableDeclarations1.ts, 14, 29)) >[] : undefined[] } } var e1: Employee; ->e1 : Employee ->Employee : Employee +>e1 : Employee, Symbol(e1, Decl(memberVariableDeclarations1.ts, 23, 3)) +>Employee : Employee, Symbol(Employee, Decl(memberVariableDeclarations1.ts, 0, 0)) var e2: Employee2; ->e2 : Employee2 ->Employee2 : Employee2 +>e2 : Employee2, Symbol(e2, Decl(memberVariableDeclarations1.ts, 24, 3)) +>Employee2 : Employee2, Symbol(Employee2, Decl(memberVariableDeclarations1.ts, 8, 1)) e1 = e2; >e1 = e2 : Employee2 ->e1 : Employee ->e2 : Employee2 +>e1 : Employee, Symbol(e1, Decl(memberVariableDeclarations1.ts, 23, 3)) +>e2 : Employee2, Symbol(e2, Decl(memberVariableDeclarations1.ts, 24, 3)) e2 = e1; >e2 = e1 : Employee ->e2 : Employee2 ->e1 : Employee +>e2 : Employee2, Symbol(e2, Decl(memberVariableDeclarations1.ts, 24, 3)) +>e1 : Employee, Symbol(e1, Decl(memberVariableDeclarations1.ts, 23, 3)) diff --git a/tests/baselines/reference/mergeThreeInterfaces.types b/tests/baselines/reference/mergeThreeInterfaces.types index 4f4fba64358..db22fb00dd0 100644 --- a/tests/baselines/reference/mergeThreeInterfaces.types +++ b/tests/baselines/reference/mergeThreeInterfaces.types @@ -3,195 +3,195 @@ // basic case interface A { ->A : A +>A : A, Symbol(A, Decl(mergeThreeInterfaces.ts, 0, 0), Decl(mergeThreeInterfaces.ts, 5, 1), Decl(mergeThreeInterfaces.ts, 9, 1)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(mergeThreeInterfaces.ts, 3, 13)) } interface A { ->A : A +>A : A, Symbol(A, Decl(mergeThreeInterfaces.ts, 0, 0), Decl(mergeThreeInterfaces.ts, 5, 1), Decl(mergeThreeInterfaces.ts, 9, 1)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(mergeThreeInterfaces.ts, 7, 13)) } interface A { ->A : A +>A : A, Symbol(A, Decl(mergeThreeInterfaces.ts, 0, 0), Decl(mergeThreeInterfaces.ts, 5, 1), Decl(mergeThreeInterfaces.ts, 9, 1)) baz: boolean; ->baz : boolean +>baz : boolean, Symbol(baz, Decl(mergeThreeInterfaces.ts, 11, 13)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeThreeInterfaces.ts, 15, 3)) +>A : A, Symbol(A, Decl(mergeThreeInterfaces.ts, 0, 0), Decl(mergeThreeInterfaces.ts, 5, 1), Decl(mergeThreeInterfaces.ts, 9, 1)) var r1 = a.foo ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeThreeInterfaces.ts, 16, 3)) +>a.foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces.ts, 3, 13)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces.ts, 15, 3)) +>foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces.ts, 3, 13)) var r2 = a.bar; ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeThreeInterfaces.ts, 17, 3)) +>a.bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces.ts, 7, 13)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces.ts, 15, 3)) +>bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces.ts, 7, 13)) var r3 = a.baz; ->r3 : boolean ->a.baz : boolean ->a : A ->baz : boolean +>r3 : boolean, Symbol(r3, Decl(mergeThreeInterfaces.ts, 18, 3)) +>a.baz : boolean, Symbol(A.baz, Decl(mergeThreeInterfaces.ts, 11, 13)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces.ts, 15, 3)) +>baz : boolean, Symbol(A.baz, Decl(mergeThreeInterfaces.ts, 11, 13)) // basic generic case interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(mergeThreeInterfaces.ts, 18, 15), Decl(mergeThreeInterfaces.ts, 23, 1), Decl(mergeThreeInterfaces.ts, 27, 1)) +>T : T, Symbol(T, Decl(mergeThreeInterfaces.ts, 21, 12), Decl(mergeThreeInterfaces.ts, 25, 12), Decl(mergeThreeInterfaces.ts, 29, 12)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(mergeThreeInterfaces.ts, 21, 16)) +>T : T, Symbol(T, Decl(mergeThreeInterfaces.ts, 21, 12), Decl(mergeThreeInterfaces.ts, 25, 12), Decl(mergeThreeInterfaces.ts, 29, 12)) } interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(mergeThreeInterfaces.ts, 18, 15), Decl(mergeThreeInterfaces.ts, 23, 1), Decl(mergeThreeInterfaces.ts, 27, 1)) +>T : T, Symbol(T, Decl(mergeThreeInterfaces.ts, 21, 12), Decl(mergeThreeInterfaces.ts, 25, 12), Decl(mergeThreeInterfaces.ts, 29, 12)) bar: T; ->bar : T ->T : T +>bar : T, Symbol(bar, Decl(mergeThreeInterfaces.ts, 25, 16)) +>T : T, Symbol(T, Decl(mergeThreeInterfaces.ts, 21, 12), Decl(mergeThreeInterfaces.ts, 25, 12), Decl(mergeThreeInterfaces.ts, 29, 12)) } interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(mergeThreeInterfaces.ts, 18, 15), Decl(mergeThreeInterfaces.ts, 23, 1), Decl(mergeThreeInterfaces.ts, 27, 1)) +>T : T, Symbol(T, Decl(mergeThreeInterfaces.ts, 21, 12), Decl(mergeThreeInterfaces.ts, 25, 12), Decl(mergeThreeInterfaces.ts, 29, 12)) baz: T; ->baz : T ->T : T +>baz : T, Symbol(baz, Decl(mergeThreeInterfaces.ts, 29, 16)) +>T : T, Symbol(T, Decl(mergeThreeInterfaces.ts, 21, 12), Decl(mergeThreeInterfaces.ts, 25, 12), Decl(mergeThreeInterfaces.ts, 29, 12)) } var b: B; ->b : B ->B : B +>b : B, Symbol(b, Decl(mergeThreeInterfaces.ts, 33, 3)) +>B : B, Symbol(B, Decl(mergeThreeInterfaces.ts, 18, 15), Decl(mergeThreeInterfaces.ts, 23, 1), Decl(mergeThreeInterfaces.ts, 27, 1)) var r4 = b.foo ->r4 : string ->b.foo : string ->b : B ->foo : string +>r4 : string, Symbol(r4, Decl(mergeThreeInterfaces.ts, 34, 3)) +>b.foo : string, Symbol(B.foo, Decl(mergeThreeInterfaces.ts, 21, 16)) +>b : B, Symbol(b, Decl(mergeThreeInterfaces.ts, 33, 3)) +>foo : string, Symbol(B.foo, Decl(mergeThreeInterfaces.ts, 21, 16)) var r5 = b.bar; ->r5 : string ->b.bar : string ->b : B ->bar : string +>r5 : string, Symbol(r5, Decl(mergeThreeInterfaces.ts, 35, 3)) +>b.bar : string, Symbol(B.bar, Decl(mergeThreeInterfaces.ts, 25, 16)) +>b : B, Symbol(b, Decl(mergeThreeInterfaces.ts, 33, 3)) +>bar : string, Symbol(B.bar, Decl(mergeThreeInterfaces.ts, 25, 16)) var r6 = b.baz; ->r6 : string ->b.baz : string ->b : B ->baz : string +>r6 : string, Symbol(r6, Decl(mergeThreeInterfaces.ts, 36, 3)) +>b.baz : string, Symbol(B.baz, Decl(mergeThreeInterfaces.ts, 29, 16)) +>b : B, Symbol(b, Decl(mergeThreeInterfaces.ts, 33, 3)) +>baz : string, Symbol(B.baz, Decl(mergeThreeInterfaces.ts, 29, 16)) // basic non-generic and generic case inside a module module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(mergeThreeInterfaces.ts, 36, 15)) interface A { ->A : A +>A : A, Symbol(A, Decl(mergeThreeInterfaces.ts, 39, 10), Decl(mergeThreeInterfaces.ts, 42, 5), Decl(mergeThreeInterfaces.ts, 46, 5)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(mergeThreeInterfaces.ts, 40, 17)) } interface A { ->A : A +>A : A, Symbol(A, Decl(mergeThreeInterfaces.ts, 39, 10), Decl(mergeThreeInterfaces.ts, 42, 5), Decl(mergeThreeInterfaces.ts, 46, 5)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(mergeThreeInterfaces.ts, 44, 17)) } interface A { ->A : A +>A : A, Symbol(A, Decl(mergeThreeInterfaces.ts, 39, 10), Decl(mergeThreeInterfaces.ts, 42, 5), Decl(mergeThreeInterfaces.ts, 46, 5)) baz: boolean; ->baz : boolean +>baz : boolean, Symbol(baz, Decl(mergeThreeInterfaces.ts, 48, 17)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeThreeInterfaces.ts, 52, 7)) +>A : A, Symbol(A, Decl(mergeThreeInterfaces.ts, 39, 10), Decl(mergeThreeInterfaces.ts, 42, 5), Decl(mergeThreeInterfaces.ts, 46, 5)) var r1 = a.foo; ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeThreeInterfaces.ts, 53, 7)) +>a.foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces.ts, 40, 17)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces.ts, 52, 7)) +>foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces.ts, 40, 17)) // BUG 856491 var r2 = a.bar; // any, should be number ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeThreeInterfaces.ts, 55, 7)) +>a.bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces.ts, 44, 17)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces.ts, 52, 7)) +>bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces.ts, 44, 17)) // BUG 856491 var r3 = a.baz; // any, should be boolean ->r3 : boolean ->a.baz : boolean ->a : A ->baz : boolean +>r3 : boolean, Symbol(r3, Decl(mergeThreeInterfaces.ts, 57, 7)) +>a.baz : boolean, Symbol(A.baz, Decl(mergeThreeInterfaces.ts, 48, 17)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces.ts, 52, 7)) +>baz : boolean, Symbol(A.baz, Decl(mergeThreeInterfaces.ts, 48, 17)) interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(mergeThreeInterfaces.ts, 57, 19), Decl(mergeThreeInterfaces.ts, 61, 5), Decl(mergeThreeInterfaces.ts, 65, 5)) +>T : T, Symbol(T, Decl(mergeThreeInterfaces.ts, 59, 16), Decl(mergeThreeInterfaces.ts, 63, 16), Decl(mergeThreeInterfaces.ts, 67, 16)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(mergeThreeInterfaces.ts, 59, 20)) +>T : T, Symbol(T, Decl(mergeThreeInterfaces.ts, 59, 16), Decl(mergeThreeInterfaces.ts, 63, 16), Decl(mergeThreeInterfaces.ts, 67, 16)) } interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(mergeThreeInterfaces.ts, 57, 19), Decl(mergeThreeInterfaces.ts, 61, 5), Decl(mergeThreeInterfaces.ts, 65, 5)) +>T : T, Symbol(T, Decl(mergeThreeInterfaces.ts, 59, 16), Decl(mergeThreeInterfaces.ts, 63, 16), Decl(mergeThreeInterfaces.ts, 67, 16)) bar: T; ->bar : T ->T : T +>bar : T, Symbol(bar, Decl(mergeThreeInterfaces.ts, 63, 20)) +>T : T, Symbol(T, Decl(mergeThreeInterfaces.ts, 59, 16), Decl(mergeThreeInterfaces.ts, 63, 16), Decl(mergeThreeInterfaces.ts, 67, 16)) } interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(mergeThreeInterfaces.ts, 57, 19), Decl(mergeThreeInterfaces.ts, 61, 5), Decl(mergeThreeInterfaces.ts, 65, 5)) +>T : T, Symbol(T, Decl(mergeThreeInterfaces.ts, 59, 16), Decl(mergeThreeInterfaces.ts, 63, 16), Decl(mergeThreeInterfaces.ts, 67, 16)) baz: T; ->baz : T ->T : T +>baz : T, Symbol(baz, Decl(mergeThreeInterfaces.ts, 67, 20)) +>T : T, Symbol(T, Decl(mergeThreeInterfaces.ts, 59, 16), Decl(mergeThreeInterfaces.ts, 63, 16), Decl(mergeThreeInterfaces.ts, 67, 16)) } var b: B; ->b : B ->B : B +>b : B, Symbol(b, Decl(mergeThreeInterfaces.ts, 71, 7)) +>B : B, Symbol(B, Decl(mergeThreeInterfaces.ts, 57, 19), Decl(mergeThreeInterfaces.ts, 61, 5), Decl(mergeThreeInterfaces.ts, 65, 5)) var r4 = b.foo ->r4 : string ->b.foo : string ->b : B ->foo : string +>r4 : string, Symbol(r4, Decl(mergeThreeInterfaces.ts, 72, 7)) +>b.foo : string, Symbol(B.foo, Decl(mergeThreeInterfaces.ts, 59, 20)) +>b : B, Symbol(b, Decl(mergeThreeInterfaces.ts, 71, 7)) +>foo : string, Symbol(B.foo, Decl(mergeThreeInterfaces.ts, 59, 20)) // BUG 856491 var r5 = b.bar; // any, should be number ->r5 : string ->b.bar : string ->b : B ->bar : string +>r5 : string, Symbol(r5, Decl(mergeThreeInterfaces.ts, 74, 7)) +>b.bar : string, Symbol(B.bar, Decl(mergeThreeInterfaces.ts, 63, 20)) +>b : B, Symbol(b, Decl(mergeThreeInterfaces.ts, 71, 7)) +>bar : string, Symbol(B.bar, Decl(mergeThreeInterfaces.ts, 63, 20)) // BUG 856491 var r6 = b.baz; // any, should be boolean ->r6 : string ->b.baz : string ->b : B ->baz : string +>r6 : string, Symbol(r6, Decl(mergeThreeInterfaces.ts, 76, 7)) +>b.baz : string, Symbol(B.baz, Decl(mergeThreeInterfaces.ts, 67, 20)) +>b : B, Symbol(b, Decl(mergeThreeInterfaces.ts, 71, 7)) +>baz : string, Symbol(B.baz, Decl(mergeThreeInterfaces.ts, 67, 20)) } diff --git a/tests/baselines/reference/mergeThreeInterfaces2.types b/tests/baselines/reference/mergeThreeInterfaces2.types index 31339187e3d..611677a5550 100644 --- a/tests/baselines/reference/mergeThreeInterfaces2.types +++ b/tests/baselines/reference/mergeThreeInterfaces2.types @@ -3,174 +3,174 @@ // root module now multiple module declarations module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(mergeThreeInterfaces2.ts, 0, 0), Decl(mergeThreeInterfaces2.ts, 11, 1), Decl(mergeThreeInterfaces2.ts, 26, 1), Decl(mergeThreeInterfaces2.ts, 39, 1), Decl(mergeThreeInterfaces2.ts, 53, 1)) export interface A { ->A : A +>A : A, Symbol(A, Decl(mergeThreeInterfaces2.ts, 3, 11), Decl(mergeThreeInterfaces2.ts, 13, 11), Decl(mergeThreeInterfaces2.ts, 16, 5)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(mergeThreeInterfaces2.ts, 4, 24)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 8, 7)) +>A : A, Symbol(A, Decl(mergeThreeInterfaces2.ts, 3, 11), Decl(mergeThreeInterfaces2.ts, 13, 11), Decl(mergeThreeInterfaces2.ts, 16, 5)) var r1 = a.foo; ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeThreeInterfaces2.ts, 9, 7)) +>a.foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces2.ts, 4, 24)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 8, 7)) +>foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces2.ts, 4, 24)) var r2 = a.bar; ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeThreeInterfaces2.ts, 10, 7)) +>a.bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces2.ts, 14, 24)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 8, 7)) +>bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces2.ts, 14, 24)) } module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(mergeThreeInterfaces2.ts, 0, 0), Decl(mergeThreeInterfaces2.ts, 11, 1), Decl(mergeThreeInterfaces2.ts, 26, 1), Decl(mergeThreeInterfaces2.ts, 39, 1), Decl(mergeThreeInterfaces2.ts, 53, 1)) export interface A { ->A : A +>A : A, Symbol(A, Decl(mergeThreeInterfaces2.ts, 3, 11), Decl(mergeThreeInterfaces2.ts, 13, 11), Decl(mergeThreeInterfaces2.ts, 16, 5)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(mergeThreeInterfaces2.ts, 14, 24)) } export interface A { ->A : A +>A : A, Symbol(A, Decl(mergeThreeInterfaces2.ts, 3, 11), Decl(mergeThreeInterfaces2.ts, 13, 11), Decl(mergeThreeInterfaces2.ts, 16, 5)) baz: boolean; ->baz : boolean +>baz : boolean, Symbol(baz, Decl(mergeThreeInterfaces2.ts, 18, 24)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 22, 7)) +>A : A, Symbol(A, Decl(mergeThreeInterfaces2.ts, 3, 11), Decl(mergeThreeInterfaces2.ts, 13, 11), Decl(mergeThreeInterfaces2.ts, 16, 5)) var r1 = a.foo; ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeThreeInterfaces2.ts, 23, 7)) +>a.foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces2.ts, 4, 24)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 22, 7)) +>foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces2.ts, 4, 24)) var r2 = a.bar; ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeThreeInterfaces2.ts, 24, 7)) +>a.bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces2.ts, 14, 24)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 22, 7)) +>bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces2.ts, 14, 24)) var r3 = a.baz; ->r3 : boolean ->a.baz : boolean ->a : A ->baz : boolean +>r3 : boolean, Symbol(r3, Decl(mergeThreeInterfaces2.ts, 25, 7)) +>a.baz : boolean, Symbol(A.baz, Decl(mergeThreeInterfaces2.ts, 18, 24)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 22, 7)) +>baz : boolean, Symbol(A.baz, Decl(mergeThreeInterfaces2.ts, 18, 24)) } // same as above but with an additional level of nesting and third module declaration module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(mergeThreeInterfaces2.ts, 0, 0), Decl(mergeThreeInterfaces2.ts, 11, 1), Decl(mergeThreeInterfaces2.ts, 26, 1), Decl(mergeThreeInterfaces2.ts, 39, 1), Decl(mergeThreeInterfaces2.ts, 53, 1)) export module M3 { ->M3 : typeof M3 +>M3 : typeof M3, Symbol(M3, Decl(mergeThreeInterfaces2.ts, 29, 11), Decl(mergeThreeInterfaces2.ts, 41, 11), Decl(mergeThreeInterfaces2.ts, 55, 11)) export interface A { ->A : A +>A : A, Symbol(A, Decl(mergeThreeInterfaces2.ts, 30, 22), Decl(mergeThreeInterfaces2.ts, 42, 22), Decl(mergeThreeInterfaces2.ts, 56, 22)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(mergeThreeInterfaces2.ts, 31, 28)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 35, 11)) +>A : A, Symbol(A, Decl(mergeThreeInterfaces2.ts, 30, 22), Decl(mergeThreeInterfaces2.ts, 42, 22), Decl(mergeThreeInterfaces2.ts, 56, 22)) var r1 = a.foo; ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeThreeInterfaces2.ts, 36, 11)) +>a.foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces2.ts, 31, 28)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 35, 11)) +>foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces2.ts, 31, 28)) var r2 = a.bar; ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeThreeInterfaces2.ts, 37, 11)) +>a.bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces2.ts, 43, 28)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 35, 11)) +>bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces2.ts, 43, 28)) } } module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(mergeThreeInterfaces2.ts, 0, 0), Decl(mergeThreeInterfaces2.ts, 11, 1), Decl(mergeThreeInterfaces2.ts, 26, 1), Decl(mergeThreeInterfaces2.ts, 39, 1), Decl(mergeThreeInterfaces2.ts, 53, 1)) export module M3 { ->M3 : typeof M3 +>M3 : typeof M3, Symbol(M3, Decl(mergeThreeInterfaces2.ts, 29, 11), Decl(mergeThreeInterfaces2.ts, 41, 11), Decl(mergeThreeInterfaces2.ts, 55, 11)) export interface A { ->A : A +>A : A, Symbol(A, Decl(mergeThreeInterfaces2.ts, 30, 22), Decl(mergeThreeInterfaces2.ts, 42, 22), Decl(mergeThreeInterfaces2.ts, 56, 22)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(mergeThreeInterfaces2.ts, 43, 28)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 47, 11)) +>A : A, Symbol(A, Decl(mergeThreeInterfaces2.ts, 30, 22), Decl(mergeThreeInterfaces2.ts, 42, 22), Decl(mergeThreeInterfaces2.ts, 56, 22)) var r1 = a.foo ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeThreeInterfaces2.ts, 49, 11)) +>a.foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces2.ts, 31, 28)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 47, 11)) +>foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces2.ts, 31, 28)) var r2 = a.bar; ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeThreeInterfaces2.ts, 50, 11)) +>a.bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces2.ts, 43, 28)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 47, 11)) +>bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces2.ts, 43, 28)) var r3 = a.baz; ->r3 : boolean ->a.baz : boolean ->a : A ->baz : boolean +>r3 : boolean, Symbol(r3, Decl(mergeThreeInterfaces2.ts, 51, 11)) +>a.baz : boolean, Symbol(A.baz, Decl(mergeThreeInterfaces2.ts, 57, 28)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 47, 11)) +>baz : boolean, Symbol(A.baz, Decl(mergeThreeInterfaces2.ts, 57, 28)) } } module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(mergeThreeInterfaces2.ts, 0, 0), Decl(mergeThreeInterfaces2.ts, 11, 1), Decl(mergeThreeInterfaces2.ts, 26, 1), Decl(mergeThreeInterfaces2.ts, 39, 1), Decl(mergeThreeInterfaces2.ts, 53, 1)) export module M3 { ->M3 : typeof M3 +>M3 : typeof M3, Symbol(M3, Decl(mergeThreeInterfaces2.ts, 29, 11), Decl(mergeThreeInterfaces2.ts, 41, 11), Decl(mergeThreeInterfaces2.ts, 55, 11)) export interface A { ->A : A +>A : A, Symbol(A, Decl(mergeThreeInterfaces2.ts, 30, 22), Decl(mergeThreeInterfaces2.ts, 42, 22), Decl(mergeThreeInterfaces2.ts, 56, 22)) baz: boolean; ->baz : boolean +>baz : boolean, Symbol(baz, Decl(mergeThreeInterfaces2.ts, 57, 28)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 61, 11)) +>A : A, Symbol(A, Decl(mergeThreeInterfaces2.ts, 30, 22), Decl(mergeThreeInterfaces2.ts, 42, 22), Decl(mergeThreeInterfaces2.ts, 56, 22)) var r1 = a.foo ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeThreeInterfaces2.ts, 62, 11)) +>a.foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces2.ts, 31, 28)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 61, 11)) +>foo : string, Symbol(A.foo, Decl(mergeThreeInterfaces2.ts, 31, 28)) var r2 = a.bar; ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeThreeInterfaces2.ts, 63, 11)) +>a.bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces2.ts, 43, 28)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 61, 11)) +>bar : number, Symbol(A.bar, Decl(mergeThreeInterfaces2.ts, 43, 28)) var r3 = a.baz; ->r3 : boolean ->a.baz : boolean ->a : A ->baz : boolean +>r3 : boolean, Symbol(r3, Decl(mergeThreeInterfaces2.ts, 64, 11)) +>a.baz : boolean, Symbol(A.baz, Decl(mergeThreeInterfaces2.ts, 57, 28)) +>a : A, Symbol(a, Decl(mergeThreeInterfaces2.ts, 61, 11)) +>baz : boolean, Symbol(A.baz, Decl(mergeThreeInterfaces2.ts, 57, 28)) } } diff --git a/tests/baselines/reference/mergeTwoInterfaces.types b/tests/baselines/reference/mergeTwoInterfaces.types index 539f01d4240..eee5f42dc6b 100644 --- a/tests/baselines/reference/mergeTwoInterfaces.types +++ b/tests/baselines/reference/mergeTwoInterfaces.types @@ -3,140 +3,140 @@ // basic case interface A { ->A : A +>A : A, Symbol(A, Decl(mergeTwoInterfaces.ts, 0, 0), Decl(mergeTwoInterfaces.ts, 5, 1)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(mergeTwoInterfaces.ts, 3, 13)) } interface A { ->A : A +>A : A, Symbol(A, Decl(mergeTwoInterfaces.ts, 0, 0), Decl(mergeTwoInterfaces.ts, 5, 1)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(mergeTwoInterfaces.ts, 7, 13)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeTwoInterfaces.ts, 11, 3)) +>A : A, Symbol(A, Decl(mergeTwoInterfaces.ts, 0, 0), Decl(mergeTwoInterfaces.ts, 5, 1)) var r1 = a.foo ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeTwoInterfaces.ts, 12, 3)) +>a.foo : string, Symbol(A.foo, Decl(mergeTwoInterfaces.ts, 3, 13)) +>a : A, Symbol(a, Decl(mergeTwoInterfaces.ts, 11, 3)) +>foo : string, Symbol(A.foo, Decl(mergeTwoInterfaces.ts, 3, 13)) var r2 = a.bar; ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeTwoInterfaces.ts, 13, 3)) +>a.bar : number, Symbol(A.bar, Decl(mergeTwoInterfaces.ts, 7, 13)) +>a : A, Symbol(a, Decl(mergeTwoInterfaces.ts, 11, 3)) +>bar : number, Symbol(A.bar, Decl(mergeTwoInterfaces.ts, 7, 13)) // basic generic case interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(mergeTwoInterfaces.ts, 13, 15), Decl(mergeTwoInterfaces.ts, 19, 1)) +>T : T, Symbol(T, Decl(mergeTwoInterfaces.ts, 16, 12), Decl(mergeTwoInterfaces.ts, 21, 12)) baz: string; ->baz : string +>baz : string, Symbol(baz, Decl(mergeTwoInterfaces.ts, 16, 16)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(mergeTwoInterfaces.ts, 17, 16)) +>T : T, Symbol(T, Decl(mergeTwoInterfaces.ts, 16, 12), Decl(mergeTwoInterfaces.ts, 21, 12)) } interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(mergeTwoInterfaces.ts, 13, 15), Decl(mergeTwoInterfaces.ts, 19, 1)) +>T : T, Symbol(T, Decl(mergeTwoInterfaces.ts, 16, 12), Decl(mergeTwoInterfaces.ts, 21, 12)) bar: T; ->bar : T ->T : T +>bar : T, Symbol(bar, Decl(mergeTwoInterfaces.ts, 21, 16)) +>T : T, Symbol(T, Decl(mergeTwoInterfaces.ts, 16, 12), Decl(mergeTwoInterfaces.ts, 21, 12)) } var b: B; ->b : B ->B : B +>b : B, Symbol(b, Decl(mergeTwoInterfaces.ts, 25, 3)) +>B : B, Symbol(B, Decl(mergeTwoInterfaces.ts, 13, 15), Decl(mergeTwoInterfaces.ts, 19, 1)) var r3 = b.foo ->r3 : string ->b.foo : string ->b : B ->foo : string +>r3 : string, Symbol(r3, Decl(mergeTwoInterfaces.ts, 26, 3)) +>b.foo : string, Symbol(B.foo, Decl(mergeTwoInterfaces.ts, 17, 16)) +>b : B, Symbol(b, Decl(mergeTwoInterfaces.ts, 25, 3)) +>foo : string, Symbol(B.foo, Decl(mergeTwoInterfaces.ts, 17, 16)) var r4 = b.bar; ->r4 : string ->b.bar : string ->b : B ->bar : string +>r4 : string, Symbol(r4, Decl(mergeTwoInterfaces.ts, 27, 3)) +>b.bar : string, Symbol(B.bar, Decl(mergeTwoInterfaces.ts, 21, 16)) +>b : B, Symbol(b, Decl(mergeTwoInterfaces.ts, 25, 3)) +>bar : string, Symbol(B.bar, Decl(mergeTwoInterfaces.ts, 21, 16)) // basic non-generic and generic case inside a module module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(mergeTwoInterfaces.ts, 27, 15)) interface A { ->A : A +>A : A, Symbol(A, Decl(mergeTwoInterfaces.ts, 30, 10), Decl(mergeTwoInterfaces.ts, 33, 5)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(mergeTwoInterfaces.ts, 31, 17)) } interface A { ->A : A +>A : A, Symbol(A, Decl(mergeTwoInterfaces.ts, 30, 10), Decl(mergeTwoInterfaces.ts, 33, 5)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(mergeTwoInterfaces.ts, 35, 17)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeTwoInterfaces.ts, 39, 7)) +>A : A, Symbol(A, Decl(mergeTwoInterfaces.ts, 30, 10), Decl(mergeTwoInterfaces.ts, 33, 5)) var r1 = a.foo; ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeTwoInterfaces.ts, 40, 7)) +>a.foo : string, Symbol(A.foo, Decl(mergeTwoInterfaces.ts, 31, 17)) +>a : A, Symbol(a, Decl(mergeTwoInterfaces.ts, 39, 7)) +>foo : string, Symbol(A.foo, Decl(mergeTwoInterfaces.ts, 31, 17)) // BUG 856491 var r2 = a.bar; // any, should be number ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeTwoInterfaces.ts, 42, 7)) +>a.bar : number, Symbol(A.bar, Decl(mergeTwoInterfaces.ts, 35, 17)) +>a : A, Symbol(a, Decl(mergeTwoInterfaces.ts, 39, 7)) +>bar : number, Symbol(A.bar, Decl(mergeTwoInterfaces.ts, 35, 17)) interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(mergeTwoInterfaces.ts, 42, 19), Decl(mergeTwoInterfaces.ts, 46, 5)) +>T : T, Symbol(T, Decl(mergeTwoInterfaces.ts, 44, 16), Decl(mergeTwoInterfaces.ts, 48, 16)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(mergeTwoInterfaces.ts, 44, 20)) +>T : T, Symbol(T, Decl(mergeTwoInterfaces.ts, 44, 16), Decl(mergeTwoInterfaces.ts, 48, 16)) } interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(mergeTwoInterfaces.ts, 42, 19), Decl(mergeTwoInterfaces.ts, 46, 5)) +>T : T, Symbol(T, Decl(mergeTwoInterfaces.ts, 44, 16), Decl(mergeTwoInterfaces.ts, 48, 16)) bar: T; ->bar : T ->T : T +>bar : T, Symbol(bar, Decl(mergeTwoInterfaces.ts, 48, 20)) +>T : T, Symbol(T, Decl(mergeTwoInterfaces.ts, 44, 16), Decl(mergeTwoInterfaces.ts, 48, 16)) } var b: B; ->b : B ->B : B +>b : B, Symbol(b, Decl(mergeTwoInterfaces.ts, 52, 7)) +>B : B, Symbol(B, Decl(mergeTwoInterfaces.ts, 42, 19), Decl(mergeTwoInterfaces.ts, 46, 5)) var r3 = b.foo ->r3 : string ->b.foo : string ->b : B ->foo : string +>r3 : string, Symbol(r3, Decl(mergeTwoInterfaces.ts, 53, 7)) +>b.foo : string, Symbol(B.foo, Decl(mergeTwoInterfaces.ts, 44, 20)) +>b : B, Symbol(b, Decl(mergeTwoInterfaces.ts, 52, 7)) +>foo : string, Symbol(B.foo, Decl(mergeTwoInterfaces.ts, 44, 20)) // BUG 856491 var r4 = b.bar; // any, should be string ->r4 : string ->b.bar : string ->b : B ->bar : string +>r4 : string, Symbol(r4, Decl(mergeTwoInterfaces.ts, 55, 7)) +>b.bar : string, Symbol(B.bar, Decl(mergeTwoInterfaces.ts, 48, 20)) +>b : B, Symbol(b, Decl(mergeTwoInterfaces.ts, 52, 7)) +>bar : string, Symbol(B.bar, Decl(mergeTwoInterfaces.ts, 48, 20)) } diff --git a/tests/baselines/reference/mergeTwoInterfaces2.types b/tests/baselines/reference/mergeTwoInterfaces2.types index f3908a6fe67..3041de74a82 100644 --- a/tests/baselines/reference/mergeTwoInterfaces2.types +++ b/tests/baselines/reference/mergeTwoInterfaces2.types @@ -3,118 +3,118 @@ // root module now multiple module declarations module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(mergeTwoInterfaces2.ts, 0, 0), Decl(mergeTwoInterfaces2.ts, 11, 1), Decl(mergeTwoInterfaces2.ts, 21, 1), Decl(mergeTwoInterfaces2.ts, 34, 1)) export interface A { ->A : A +>A : A, Symbol(A, Decl(mergeTwoInterfaces2.ts, 3, 11), Decl(mergeTwoInterfaces2.ts, 13, 11)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(mergeTwoInterfaces2.ts, 4, 24)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeTwoInterfaces2.ts, 8, 7)) +>A : A, Symbol(A, Decl(mergeTwoInterfaces2.ts, 3, 11), Decl(mergeTwoInterfaces2.ts, 13, 11)) var r1 = a.foo ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeTwoInterfaces2.ts, 9, 7)) +>a.foo : string, Symbol(A.foo, Decl(mergeTwoInterfaces2.ts, 4, 24)) +>a : A, Symbol(a, Decl(mergeTwoInterfaces2.ts, 8, 7)) +>foo : string, Symbol(A.foo, Decl(mergeTwoInterfaces2.ts, 4, 24)) var r2 = a.bar; ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeTwoInterfaces2.ts, 10, 7)) +>a.bar : number, Symbol(A.bar, Decl(mergeTwoInterfaces2.ts, 14, 24)) +>a : A, Symbol(a, Decl(mergeTwoInterfaces2.ts, 8, 7)) +>bar : number, Symbol(A.bar, Decl(mergeTwoInterfaces2.ts, 14, 24)) } module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(mergeTwoInterfaces2.ts, 0, 0), Decl(mergeTwoInterfaces2.ts, 11, 1), Decl(mergeTwoInterfaces2.ts, 21, 1), Decl(mergeTwoInterfaces2.ts, 34, 1)) export interface A { ->A : A +>A : A, Symbol(A, Decl(mergeTwoInterfaces2.ts, 3, 11), Decl(mergeTwoInterfaces2.ts, 13, 11)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(mergeTwoInterfaces2.ts, 14, 24)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeTwoInterfaces2.ts, 18, 7)) +>A : A, Symbol(A, Decl(mergeTwoInterfaces2.ts, 3, 11), Decl(mergeTwoInterfaces2.ts, 13, 11)) var r1 = a.foo ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeTwoInterfaces2.ts, 19, 7)) +>a.foo : string, Symbol(A.foo, Decl(mergeTwoInterfaces2.ts, 4, 24)) +>a : A, Symbol(a, Decl(mergeTwoInterfaces2.ts, 18, 7)) +>foo : string, Symbol(A.foo, Decl(mergeTwoInterfaces2.ts, 4, 24)) var r2 = a.bar; ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeTwoInterfaces2.ts, 20, 7)) +>a.bar : number, Symbol(A.bar, Decl(mergeTwoInterfaces2.ts, 14, 24)) +>a : A, Symbol(a, Decl(mergeTwoInterfaces2.ts, 18, 7)) +>bar : number, Symbol(A.bar, Decl(mergeTwoInterfaces2.ts, 14, 24)) } // same as above but with an additional level of nesting module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(mergeTwoInterfaces2.ts, 0, 0), Decl(mergeTwoInterfaces2.ts, 11, 1), Decl(mergeTwoInterfaces2.ts, 21, 1), Decl(mergeTwoInterfaces2.ts, 34, 1)) export module M3 { ->M3 : typeof M3 +>M3 : typeof M3, Symbol(M3, Decl(mergeTwoInterfaces2.ts, 24, 11), Decl(mergeTwoInterfaces2.ts, 36, 11)) export interface A { ->A : A +>A : A, Symbol(A, Decl(mergeTwoInterfaces2.ts, 25, 22), Decl(mergeTwoInterfaces2.ts, 37, 22)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(mergeTwoInterfaces2.ts, 26, 28)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeTwoInterfaces2.ts, 30, 11)) +>A : A, Symbol(A, Decl(mergeTwoInterfaces2.ts, 25, 22), Decl(mergeTwoInterfaces2.ts, 37, 22)) var r1 = a.foo ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeTwoInterfaces2.ts, 31, 11)) +>a.foo : string, Symbol(A.foo, Decl(mergeTwoInterfaces2.ts, 26, 28)) +>a : A, Symbol(a, Decl(mergeTwoInterfaces2.ts, 30, 11)) +>foo : string, Symbol(A.foo, Decl(mergeTwoInterfaces2.ts, 26, 28)) var r2 = a.bar; ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeTwoInterfaces2.ts, 32, 11)) +>a.bar : number, Symbol(A.bar, Decl(mergeTwoInterfaces2.ts, 38, 28)) +>a : A, Symbol(a, Decl(mergeTwoInterfaces2.ts, 30, 11)) +>bar : number, Symbol(A.bar, Decl(mergeTwoInterfaces2.ts, 38, 28)) } } module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(mergeTwoInterfaces2.ts, 0, 0), Decl(mergeTwoInterfaces2.ts, 11, 1), Decl(mergeTwoInterfaces2.ts, 21, 1), Decl(mergeTwoInterfaces2.ts, 34, 1)) export module M3 { ->M3 : typeof M3 +>M3 : typeof M3, Symbol(M3, Decl(mergeTwoInterfaces2.ts, 24, 11), Decl(mergeTwoInterfaces2.ts, 36, 11)) export interface A { ->A : A +>A : A, Symbol(A, Decl(mergeTwoInterfaces2.ts, 25, 22), Decl(mergeTwoInterfaces2.ts, 37, 22)) bar: number; ->bar : number +>bar : number, Symbol(bar, Decl(mergeTwoInterfaces2.ts, 38, 28)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergeTwoInterfaces2.ts, 42, 11)) +>A : A, Symbol(A, Decl(mergeTwoInterfaces2.ts, 25, 22), Decl(mergeTwoInterfaces2.ts, 37, 22)) var r1 = a.foo ->r1 : string ->a.foo : string ->a : A ->foo : string +>r1 : string, Symbol(r1, Decl(mergeTwoInterfaces2.ts, 43, 11)) +>a.foo : string, Symbol(A.foo, Decl(mergeTwoInterfaces2.ts, 26, 28)) +>a : A, Symbol(a, Decl(mergeTwoInterfaces2.ts, 42, 11)) +>foo : string, Symbol(A.foo, Decl(mergeTwoInterfaces2.ts, 26, 28)) var r2 = a.bar; ->r2 : number ->a.bar : number ->a : A ->bar : number +>r2 : number, Symbol(r2, Decl(mergeTwoInterfaces2.ts, 44, 11)) +>a.bar : number, Symbol(A.bar, Decl(mergeTwoInterfaces2.ts, 38, 28)) +>a : A, Symbol(a, Decl(mergeTwoInterfaces2.ts, 42, 11)) +>bar : number, Symbol(A.bar, Decl(mergeTwoInterfaces2.ts, 38, 28)) } } diff --git a/tests/baselines/reference/mergedDeclarations1.types b/tests/baselines/reference/mergedDeclarations1.types index 20249ab94e1..a2d11183271 100644 --- a/tests/baselines/reference/mergedDeclarations1.types +++ b/tests/baselines/reference/mergedDeclarations1.types @@ -1,76 +1,80 @@ === tests/cases/compiler/mergedDeclarations1.ts === interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(mergedDeclarations1.ts, 0, 0)) x: number; ->x : number +>x : number, Symbol(x, Decl(mergedDeclarations1.ts, 0, 17)) y: number; ->y : number +>y : number, Symbol(y, Decl(mergedDeclarations1.ts, 1, 14)) } function point(x: number, y: number): Point { ->point : typeof point ->x : number ->y : number ->Point : Point +>point : typeof point, Symbol(point, Decl(mergedDeclarations1.ts, 3, 1), Decl(mergedDeclarations1.ts, 6, 1)) +>x : number, Symbol(x, Decl(mergedDeclarations1.ts, 4, 15)) +>y : number, Symbol(y, Decl(mergedDeclarations1.ts, 4, 25)) +>Point : Point, Symbol(Point, Decl(mergedDeclarations1.ts, 0, 0)) return { x: x, y: y }; >{ x: x, y: y } : { x: number; y: number; } ->x : number ->x : number ->y : number ->y : number +>x : number, Symbol(x, Decl(mergedDeclarations1.ts, 5, 12)) +>x : number, Symbol(x, Decl(mergedDeclarations1.ts, 4, 15)) +>y : number, Symbol(y, Decl(mergedDeclarations1.ts, 5, 18)) +>y : number, Symbol(y, Decl(mergedDeclarations1.ts, 4, 25)) } module point { ->point : typeof point +>point : typeof point, Symbol(point, Decl(mergedDeclarations1.ts, 3, 1), Decl(mergedDeclarations1.ts, 6, 1)) export var origin = point(0, 0); ->origin : Point +>origin : Point, Symbol(origin, Decl(mergedDeclarations1.ts, 8, 14)) >point(0, 0) : Point ->point : typeof point +>point : typeof point, Symbol(point, Decl(mergedDeclarations1.ts, 3, 1), Decl(mergedDeclarations1.ts, 6, 1)) +>0 : number +>0 : number export function equals(p1: Point, p2: Point) { ->equals : (p1: Point, p2: Point) => boolean ->p1 : Point ->Point : Point ->p2 : Point ->Point : Point +>equals : (p1: Point, p2: Point) => boolean, Symbol(equals, Decl(mergedDeclarations1.ts, 8, 36)) +>p1 : Point, Symbol(p1, Decl(mergedDeclarations1.ts, 9, 27)) +>Point : Point, Symbol(Point, Decl(mergedDeclarations1.ts, 0, 0)) +>p2 : Point, Symbol(p2, Decl(mergedDeclarations1.ts, 9, 37)) +>Point : Point, Symbol(Point, Decl(mergedDeclarations1.ts, 0, 0)) return p1.x == p2.x && p1.y == p2.y; >p1.x == p2.x && p1.y == p2.y : boolean >p1.x == p2.x : boolean ->p1.x : number ->p1 : Point ->x : number ->p2.x : number ->p2 : Point ->x : number +>p1.x : number, Symbol(Point.x, Decl(mergedDeclarations1.ts, 0, 17)) +>p1 : Point, Symbol(p1, Decl(mergedDeclarations1.ts, 9, 27)) +>x : number, Symbol(Point.x, Decl(mergedDeclarations1.ts, 0, 17)) +>p2.x : number, Symbol(Point.x, Decl(mergedDeclarations1.ts, 0, 17)) +>p2 : Point, Symbol(p2, Decl(mergedDeclarations1.ts, 9, 37)) +>x : number, Symbol(Point.x, Decl(mergedDeclarations1.ts, 0, 17)) >p1.y == p2.y : boolean ->p1.y : number ->p1 : Point ->y : number ->p2.y : number ->p2 : Point ->y : number +>p1.y : number, Symbol(Point.y, Decl(mergedDeclarations1.ts, 1, 14)) +>p1 : Point, Symbol(p1, Decl(mergedDeclarations1.ts, 9, 27)) +>y : number, Symbol(Point.y, Decl(mergedDeclarations1.ts, 1, 14)) +>p2.y : number, Symbol(Point.y, Decl(mergedDeclarations1.ts, 1, 14)) +>p2 : Point, Symbol(p2, Decl(mergedDeclarations1.ts, 9, 37)) +>y : number, Symbol(Point.y, Decl(mergedDeclarations1.ts, 1, 14)) } } var p1 = point(0, 0); ->p1 : Point +>p1 : Point, Symbol(p1, Decl(mergedDeclarations1.ts, 13, 3)) >point(0, 0) : Point ->point : typeof point +>point : typeof point, Symbol(point, Decl(mergedDeclarations1.ts, 3, 1), Decl(mergedDeclarations1.ts, 6, 1)) +>0 : number +>0 : number var p2 = point.origin; ->p2 : Point ->point.origin : Point ->point : typeof point ->origin : Point +>p2 : Point, Symbol(p2, Decl(mergedDeclarations1.ts, 14, 3)) +>point.origin : Point, Symbol(point.origin, Decl(mergedDeclarations1.ts, 8, 14)) +>point : typeof point, Symbol(point, Decl(mergedDeclarations1.ts, 3, 1), Decl(mergedDeclarations1.ts, 6, 1)) +>origin : Point, Symbol(point.origin, Decl(mergedDeclarations1.ts, 8, 14)) var b = point.equals(p1, p2); ->b : boolean +>b : boolean, Symbol(b, Decl(mergedDeclarations1.ts, 15, 3)) >point.equals(p1, p2) : boolean ->point.equals : (p1: Point, p2: Point) => boolean ->point : typeof point ->equals : (p1: Point, p2: Point) => boolean ->p1 : Point ->p2 : Point +>point.equals : (p1: Point, p2: Point) => boolean, Symbol(point.equals, Decl(mergedDeclarations1.ts, 8, 36)) +>point : typeof point, Symbol(point, Decl(mergedDeclarations1.ts, 3, 1), Decl(mergedDeclarations1.ts, 6, 1)) +>equals : (p1: Point, p2: Point) => boolean, Symbol(point.equals, Decl(mergedDeclarations1.ts, 8, 36)) +>p1 : Point, Symbol(p1, Decl(mergedDeclarations1.ts, 13, 3)) +>p2 : Point, Symbol(p2, Decl(mergedDeclarations1.ts, 14, 3)) diff --git a/tests/baselines/reference/mergedDeclarations4.types b/tests/baselines/reference/mergedDeclarations4.types index 068a08d35f5..29853fb9b8d 100644 --- a/tests/baselines/reference/mergedDeclarations4.types +++ b/tests/baselines/reference/mergedDeclarations4.types @@ -1,63 +1,64 @@ === tests/cases/compiler/mergedDeclarations4.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(mergedDeclarations4.ts, 0, 0), Decl(mergedDeclarations4.ts, 5, 1)) export function f() { } ->f : typeof f +>f : typeof f, Symbol(f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) f(); >f() : void ->f : typeof f +>f : typeof f, Symbol(f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) M.f(); >M.f() : void ->M.f : typeof f ->M : typeof M ->f : typeof f +>M.f : typeof f, Symbol(f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) +>M : typeof M, Symbol(M, Decl(mergedDeclarations4.ts, 0, 0), Decl(mergedDeclarations4.ts, 5, 1)) +>f : typeof f, Symbol(f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) var r = f.hello; ->r : number ->f.hello : number ->f : typeof f ->hello : number +>r : number, Symbol(r, Decl(mergedDeclarations4.ts, 4, 7)) +>f.hello : number, Symbol(f.hello, Decl(mergedDeclarations4.ts, 9, 18)) +>f : typeof f, Symbol(f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) +>hello : number, Symbol(f.hello, Decl(mergedDeclarations4.ts, 9, 18)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(mergedDeclarations4.ts, 0, 0), Decl(mergedDeclarations4.ts, 5, 1)) export module f { ->f : typeof f +>f : typeof f, Symbol(f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) export var hello = 1; ->hello : number +>hello : number, Symbol(hello, Decl(mergedDeclarations4.ts, 9, 18)) +>1 : number } f(); >f() : void ->f : typeof f +>f : typeof f, Symbol(f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) M.f(); >M.f() : void ->M.f : typeof f ->M : typeof M ->f : typeof f +>M.f : typeof f, Symbol(f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) +>M : typeof M, Symbol(M, Decl(mergedDeclarations4.ts, 0, 0), Decl(mergedDeclarations4.ts, 5, 1)) +>f : typeof f, Symbol(f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) var r = f.hello; ->r : number ->f.hello : number ->f : typeof f ->hello : number +>r : number, Symbol(r, Decl(mergedDeclarations4.ts, 13, 7)) +>f.hello : number, Symbol(f.hello, Decl(mergedDeclarations4.ts, 9, 18)) +>f : typeof f, Symbol(f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) +>hello : number, Symbol(f.hello, Decl(mergedDeclarations4.ts, 9, 18)) } M.f(); >M.f() : void ->M.f : typeof M.f ->M : typeof M ->f : typeof M.f +>M.f : typeof M.f, Symbol(M.f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) +>M : typeof M, Symbol(M, Decl(mergedDeclarations4.ts, 0, 0), Decl(mergedDeclarations4.ts, 5, 1)) +>f : typeof M.f, Symbol(M.f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) M.f.hello; ->M.f.hello : number ->M.f : typeof M.f ->M : typeof M ->f : typeof M.f ->hello : number +>M.f.hello : number, Symbol(M.f.hello, Decl(mergedDeclarations4.ts, 9, 18)) +>M.f : typeof M.f, Symbol(M.f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) +>M : typeof M, Symbol(M, Decl(mergedDeclarations4.ts, 0, 0), Decl(mergedDeclarations4.ts, 5, 1)) +>f : typeof M.f, Symbol(M.f, Decl(mergedDeclarations4.ts, 0, 10), Decl(mergedDeclarations4.ts, 7, 10)) +>hello : number, Symbol(M.f.hello, Decl(mergedDeclarations4.ts, 9, 18)) diff --git a/tests/baselines/reference/mergedEnumDeclarationCodeGen.types b/tests/baselines/reference/mergedEnumDeclarationCodeGen.types index 84e6a8237e5..215a8fc0779 100644 --- a/tests/baselines/reference/mergedEnumDeclarationCodeGen.types +++ b/tests/baselines/reference/mergedEnumDeclarationCodeGen.types @@ -1,18 +1,18 @@ === tests/cases/compiler/mergedEnumDeclarationCodeGen.ts === enum E { ->E : E +>E : E, Symbol(E, Decl(mergedEnumDeclarationCodeGen.ts, 0, 0), Decl(mergedEnumDeclarationCodeGen.ts, 3, 1)) a, ->a : E +>a : E, Symbol(E.a, Decl(mergedEnumDeclarationCodeGen.ts, 0, 8)) b = a ->b : E ->a : E +>b : E, Symbol(E.b, Decl(mergedEnumDeclarationCodeGen.ts, 1, 6)) +>a : E, Symbol(E.a, Decl(mergedEnumDeclarationCodeGen.ts, 0, 8)) } enum E { ->E : E +>E : E, Symbol(E, Decl(mergedEnumDeclarationCodeGen.ts, 0, 0), Decl(mergedEnumDeclarationCodeGen.ts, 3, 1)) c = a ->c : E ->a : E +>c : E, Symbol(E.c, Decl(mergedEnumDeclarationCodeGen.ts, 4, 8)) +>a : E, Symbol(E.a, Decl(mergedEnumDeclarationCodeGen.ts, 0, 8)) } diff --git a/tests/baselines/reference/mergedInterfaceFromMultipleFiles1.types b/tests/baselines/reference/mergedInterfaceFromMultipleFiles1.types index ad6b07f0312..a6f480aca71 100644 --- a/tests/baselines/reference/mergedInterfaceFromMultipleFiles1.types +++ b/tests/baselines/reference/mergedInterfaceFromMultipleFiles1.types @@ -2,62 +2,62 @@ /// interface D { bar(): number; } ->D : D ->bar : () => number +>D : D, Symbol(D, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 0, 0)) +>bar : () => number, Symbol(bar, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 2, 13)) interface C extends D { ->C : C ->D : D +>C : C, Symbol(C, Decl(mergedInterfaceFromMultipleFiles1_0.ts, 1, 30), Decl(mergedInterfaceFromMultipleFiles1_1.ts, 2, 30)) +>D : D, Symbol(D, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 0, 0)) b(): Date; ->b : () => Date ->Date : Date +>b : () => Date, Symbol(b, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 4, 23)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } var c:C; ->c : C ->C : C +>c : C, Symbol(c, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 8, 3)) +>C : C, Symbol(C, Decl(mergedInterfaceFromMultipleFiles1_0.ts, 1, 30), Decl(mergedInterfaceFromMultipleFiles1_1.ts, 2, 30)) var a: string = c.foo(); ->a : string +>a : string, Symbol(a, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 9, 3)) >c.foo() : string ->c.foo : () => string ->c : C ->foo : () => string +>c.foo : () => string, Symbol(I.foo, Decl(mergedInterfaceFromMultipleFiles1_0.ts, 1, 13)) +>c : C, Symbol(c, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 8, 3)) +>foo : () => string, Symbol(I.foo, Decl(mergedInterfaceFromMultipleFiles1_0.ts, 1, 13)) var b: number = c.bar(); ->b : number +>b : number, Symbol(b, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 10, 3)) >c.bar() : number ->c.bar : () => number ->c : C ->bar : () => number +>c.bar : () => number, Symbol(D.bar, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 2, 13)) +>c : C, Symbol(c, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 8, 3)) +>bar : () => number, Symbol(D.bar, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 2, 13)) var d: number = c.a(); ->d : number +>d : number, Symbol(d, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 11, 3)) >c.a() : number ->c.a : () => number ->c : C ->a : () => number +>c.a : () => number, Symbol(C.a, Decl(mergedInterfaceFromMultipleFiles1_0.ts, 3, 23)) +>c : C, Symbol(c, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 8, 3)) +>a : () => number, Symbol(C.a, Decl(mergedInterfaceFromMultipleFiles1_0.ts, 3, 23)) var e: Date = c.b(); ->e : Date ->Date : Date +>e : Date, Symbol(e, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 12, 3)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) >c.b() : Date ->c.b : () => Date ->c : C ->b : () => Date +>c.b : () => Date, Symbol(C.b, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 4, 23)) +>c : C, Symbol(c, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 8, 3)) +>b : () => Date, Symbol(C.b, Decl(mergedInterfaceFromMultipleFiles1_1.ts, 4, 23)) === tests/cases/compiler/mergedInterfaceFromMultipleFiles1_0.ts === interface I { foo(): string; } ->I : I ->foo : () => string +>I : I, Symbol(I, Decl(mergedInterfaceFromMultipleFiles1_0.ts, 0, 0)) +>foo : () => string, Symbol(foo, Decl(mergedInterfaceFromMultipleFiles1_0.ts, 1, 13)) interface C extends I { ->C : C ->I : I +>C : C, Symbol(C, Decl(mergedInterfaceFromMultipleFiles1_0.ts, 1, 30), Decl(mergedInterfaceFromMultipleFiles1_1.ts, 2, 30)) +>I : I, Symbol(I, Decl(mergedInterfaceFromMultipleFiles1_0.ts, 0, 0)) a(): number; ->a : () => number +>a : () => number, Symbol(a, Decl(mergedInterfaceFromMultipleFiles1_0.ts, 3, 23)) } diff --git a/tests/baselines/reference/mergedInterfacesWithIndexers.types b/tests/baselines/reference/mergedInterfacesWithIndexers.types index cd082153626..235f9316821 100644 --- a/tests/baselines/reference/mergedInterfacesWithIndexers.types +++ b/tests/baselines/reference/mergedInterfacesWithIndexers.types @@ -2,37 +2,40 @@ // indexers should behave like other members when merging interface declarations interface A { ->A : A +>A : A, Symbol(A, Decl(mergedInterfacesWithIndexers.ts, 0, 0), Decl(mergedInterfacesWithIndexers.ts, 4, 1)) [x: number]: string; ->x : number +>x : number, Symbol(x, Decl(mergedInterfacesWithIndexers.ts, 3, 5)) } interface A { ->A : A +>A : A, Symbol(A, Decl(mergedInterfacesWithIndexers.ts, 0, 0), Decl(mergedInterfacesWithIndexers.ts, 4, 1)) [x: string]: { length: number }; ->x : string ->length : number +>x : string, Symbol(x, Decl(mergedInterfacesWithIndexers.ts, 8, 5)) +>length : number, Symbol(length, Decl(mergedInterfacesWithIndexers.ts, 8, 18)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergedInterfacesWithIndexers.ts, 11, 3)) +>A : A, Symbol(A, Decl(mergedInterfacesWithIndexers.ts, 0, 0), Decl(mergedInterfacesWithIndexers.ts, 4, 1)) var r = a[1]; ->r : string +>r : string, Symbol(r, Decl(mergedInterfacesWithIndexers.ts, 12, 3)) >a[1] : string ->a : A +>a : A, Symbol(a, Decl(mergedInterfacesWithIndexers.ts, 11, 3)) +>1 : number var r2 = a['1']; ->r2 : { length: number; } +>r2 : { length: number; }, Symbol(r2, Decl(mergedInterfacesWithIndexers.ts, 13, 3)) >a['1'] : { length: number; } ->a : A +>a : A, Symbol(a, Decl(mergedInterfacesWithIndexers.ts, 11, 3)) +>'1' : string var r3 = a['hi']; ->r3 : { length: number; } +>r3 : { length: number; }, Symbol(r3, Decl(mergedInterfacesWithIndexers.ts, 14, 3)) >a['hi'] : { length: number; } ->a : A +>a : A, Symbol(a, Decl(mergedInterfacesWithIndexers.ts, 11, 3)) +>'hi' : string diff --git a/tests/baselines/reference/mergedInterfacesWithMultipleBases.types b/tests/baselines/reference/mergedInterfacesWithMultipleBases.types index 4fb955dab2e..6217509b273 100644 --- a/tests/baselines/reference/mergedInterfacesWithMultipleBases.types +++ b/tests/baselines/reference/mergedInterfacesWithMultipleBases.types @@ -3,119 +3,119 @@ // no errors expected class C { ->C : C +>C : C, Symbol(C, Decl(mergedInterfacesWithMultipleBases.ts, 0, 0)) a: number; ->a : number +>a : number, Symbol(a, Decl(mergedInterfacesWithMultipleBases.ts, 3, 9)) } class C2 { ->C2 : C2 +>C2 : C2, Symbol(C2, Decl(mergedInterfacesWithMultipleBases.ts, 5, 1)) b: number; ->b : number +>b : number, Symbol(b, Decl(mergedInterfacesWithMultipleBases.ts, 7, 10)) } interface A extends C { ->A : A ->C : C +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 9, 1), Decl(mergedInterfacesWithMultipleBases.ts, 13, 1)) +>C : C, Symbol(C, Decl(mergedInterfacesWithMultipleBases.ts, 0, 0)) y: string; ->y : string +>y : string, Symbol(y, Decl(mergedInterfacesWithMultipleBases.ts, 11, 23)) } interface A extends C2 { ->A : A ->C2 : C2 +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 9, 1), Decl(mergedInterfacesWithMultipleBases.ts, 13, 1)) +>C2 : C2, Symbol(C2, Decl(mergedInterfacesWithMultipleBases.ts, 5, 1)) z: string; ->z : string +>z : string, Symbol(z, Decl(mergedInterfacesWithMultipleBases.ts, 15, 24)) } class D implements A { ->D : D ->A : A +>D : D, Symbol(D, Decl(mergedInterfacesWithMultipleBases.ts, 17, 1)) +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 9, 1), Decl(mergedInterfacesWithMultipleBases.ts, 13, 1)) a: number; ->a : number +>a : number, Symbol(a, Decl(mergedInterfacesWithMultipleBases.ts, 19, 22)) b: number; ->b : number +>b : number, Symbol(b, Decl(mergedInterfacesWithMultipleBases.ts, 20, 14)) y: string; ->y : string +>y : string, Symbol(y, Decl(mergedInterfacesWithMultipleBases.ts, 21, 14)) z: string; ->z : string +>z : string, Symbol(z, Decl(mergedInterfacesWithMultipleBases.ts, 22, 14)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergedInterfacesWithMultipleBases.ts, 26, 3)) +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 9, 1), Decl(mergedInterfacesWithMultipleBases.ts, 13, 1)) var r = a.a; ->r : number ->a.a : number ->a : A ->a : number +>r : number, Symbol(r, Decl(mergedInterfacesWithMultipleBases.ts, 27, 3)) +>a.a : number, Symbol(C.a, Decl(mergedInterfacesWithMultipleBases.ts, 3, 9)) +>a : A, Symbol(a, Decl(mergedInterfacesWithMultipleBases.ts, 26, 3)) +>a : number, Symbol(C.a, Decl(mergedInterfacesWithMultipleBases.ts, 3, 9)) // generic interfaces in a module module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(mergedInterfacesWithMultipleBases.ts, 27, 12)) class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(mergedInterfacesWithMultipleBases.ts, 30, 10)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 31, 12)) a: T; ->a : T ->T : T +>a : T, Symbol(a, Decl(mergedInterfacesWithMultipleBases.ts, 31, 16)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 31, 12)) } class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(mergedInterfacesWithMultipleBases.ts, 33, 5)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 35, 13)) b: T; ->b : T ->T : T +>b : T, Symbol(b, Decl(mergedInterfacesWithMultipleBases.ts, 35, 17)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 35, 13)) } interface A extends C { ->A : A ->T : T ->C : C ->T : T +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 37, 5), Decl(mergedInterfacesWithMultipleBases.ts, 41, 5)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 39, 16), Decl(mergedInterfacesWithMultipleBases.ts, 43, 16)) +>C : C, Symbol(C, Decl(mergedInterfacesWithMultipleBases.ts, 30, 10)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 39, 16), Decl(mergedInterfacesWithMultipleBases.ts, 43, 16)) y: T; ->y : T ->T : T +>y : T, Symbol(y, Decl(mergedInterfacesWithMultipleBases.ts, 39, 33)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 39, 16), Decl(mergedInterfacesWithMultipleBases.ts, 43, 16)) } interface A extends C2 { ->A : A ->T : T ->C2 : C2 +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 37, 5), Decl(mergedInterfacesWithMultipleBases.ts, 41, 5)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 39, 16), Decl(mergedInterfacesWithMultipleBases.ts, 43, 16)) +>C2 : C2, Symbol(C2, Decl(mergedInterfacesWithMultipleBases.ts, 33, 5)) z: T; ->z : T ->T : T +>z : T, Symbol(z, Decl(mergedInterfacesWithMultipleBases.ts, 43, 39)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 39, 16), Decl(mergedInterfacesWithMultipleBases.ts, 43, 16)) } class D implements A { ->D : D ->A : A +>D : D, Symbol(D, Decl(mergedInterfacesWithMultipleBases.ts, 45, 5)) +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 37, 5), Decl(mergedInterfacesWithMultipleBases.ts, 41, 5)) a: boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(mergedInterfacesWithMultipleBases.ts, 47, 35)) b: string; ->b : string +>b : string, Symbol(b, Decl(mergedInterfacesWithMultipleBases.ts, 48, 19)) y: boolean; ->y : boolean +>y : boolean, Symbol(y, Decl(mergedInterfacesWithMultipleBases.ts, 49, 18)) z: boolean; ->z : boolean +>z : boolean, Symbol(z, Decl(mergedInterfacesWithMultipleBases.ts, 50, 19)) } } diff --git a/tests/baselines/reference/mergedInterfacesWithMultipleBases2.types b/tests/baselines/reference/mergedInterfacesWithMultipleBases2.types index b8dfec64bae..a21f9e4421d 100644 --- a/tests/baselines/reference/mergedInterfacesWithMultipleBases2.types +++ b/tests/baselines/reference/mergedInterfacesWithMultipleBases2.types @@ -3,169 +3,169 @@ // no errors expected class C { ->C : C +>C : C, Symbol(C, Decl(mergedInterfacesWithMultipleBases2.ts, 0, 0)) a: number; ->a : number +>a : number, Symbol(a, Decl(mergedInterfacesWithMultipleBases2.ts, 3, 9)) } class C2 { ->C2 : C2 +>C2 : C2, Symbol(C2, Decl(mergedInterfacesWithMultipleBases2.ts, 5, 1)) b: number; ->b : number +>b : number, Symbol(b, Decl(mergedInterfacesWithMultipleBases2.ts, 7, 10)) } class C3 { ->C3 : C3 +>C3 : C3, Symbol(C3, Decl(mergedInterfacesWithMultipleBases2.ts, 9, 1)) c: string; ->c : string +>c : string, Symbol(c, Decl(mergedInterfacesWithMultipleBases2.ts, 11, 10)) } class C4 { ->C4 : C4 +>C4 : C4, Symbol(C4, Decl(mergedInterfacesWithMultipleBases2.ts, 13, 1)) d: string; ->d : string +>d : string, Symbol(d, Decl(mergedInterfacesWithMultipleBases2.ts, 15, 10)) } interface A extends C, C3 { ->A : A ->C : C ->C3 : C3 +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases2.ts, 17, 1), Decl(mergedInterfacesWithMultipleBases2.ts, 22, 1)) +>C : C, Symbol(C, Decl(mergedInterfacesWithMultipleBases2.ts, 0, 0)) +>C3 : C3, Symbol(C3, Decl(mergedInterfacesWithMultipleBases2.ts, 9, 1)) y: string; ->y : string +>y : string, Symbol(y, Decl(mergedInterfacesWithMultipleBases2.ts, 20, 27)) } interface A extends C2, C4 { ->A : A ->C2 : C2 ->C4 : C4 +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases2.ts, 17, 1), Decl(mergedInterfacesWithMultipleBases2.ts, 22, 1)) +>C2 : C2, Symbol(C2, Decl(mergedInterfacesWithMultipleBases2.ts, 5, 1)) +>C4 : C4, Symbol(C4, Decl(mergedInterfacesWithMultipleBases2.ts, 13, 1)) z: string; ->z : string +>z : string, Symbol(z, Decl(mergedInterfacesWithMultipleBases2.ts, 24, 28)) } class D implements A { ->D : D ->A : A +>D : D, Symbol(D, Decl(mergedInterfacesWithMultipleBases2.ts, 26, 1)) +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases2.ts, 17, 1), Decl(mergedInterfacesWithMultipleBases2.ts, 22, 1)) a: number; ->a : number +>a : number, Symbol(a, Decl(mergedInterfacesWithMultipleBases2.ts, 28, 22)) b: number; ->b : number +>b : number, Symbol(b, Decl(mergedInterfacesWithMultipleBases2.ts, 29, 14)) c: string; ->c : string +>c : string, Symbol(c, Decl(mergedInterfacesWithMultipleBases2.ts, 30, 14)) d: string; ->d : string +>d : string, Symbol(d, Decl(mergedInterfacesWithMultipleBases2.ts, 31, 14)) y: string; ->y : string +>y : string, Symbol(y, Decl(mergedInterfacesWithMultipleBases2.ts, 32, 14)) z: string; ->z : string +>z : string, Symbol(z, Decl(mergedInterfacesWithMultipleBases2.ts, 33, 14)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(mergedInterfacesWithMultipleBases2.ts, 37, 3)) +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases2.ts, 17, 1), Decl(mergedInterfacesWithMultipleBases2.ts, 22, 1)) var r = a.a; ->r : number ->a.a : number ->a : A ->a : number +>r : number, Symbol(r, Decl(mergedInterfacesWithMultipleBases2.ts, 38, 3)) +>a.a : number, Symbol(C.a, Decl(mergedInterfacesWithMultipleBases2.ts, 3, 9)) +>a : A, Symbol(a, Decl(mergedInterfacesWithMultipleBases2.ts, 37, 3)) +>a : number, Symbol(C.a, Decl(mergedInterfacesWithMultipleBases2.ts, 3, 9)) // generic interfaces in a module module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(mergedInterfacesWithMultipleBases2.ts, 38, 12)) class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(mergedInterfacesWithMultipleBases2.ts, 41, 10)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 42, 12)) a: T; ->a : T ->T : T +>a : T, Symbol(a, Decl(mergedInterfacesWithMultipleBases2.ts, 42, 16)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 42, 12)) } class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(mergedInterfacesWithMultipleBases2.ts, 44, 5)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 46, 13)) b: T; ->b : T ->T : T +>b : T, Symbol(b, Decl(mergedInterfacesWithMultipleBases2.ts, 46, 17)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 46, 13)) } class C3 { ->C3 : C3 ->T : T +>C3 : C3, Symbol(C3, Decl(mergedInterfacesWithMultipleBases2.ts, 48, 5)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 50, 13)) c: T; ->c : T ->T : T +>c : T, Symbol(c, Decl(mergedInterfacesWithMultipleBases2.ts, 50, 17)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 50, 13)) } class C4 { ->C4 : C4 ->T : T +>C4 : C4, Symbol(C4, Decl(mergedInterfacesWithMultipleBases2.ts, 52, 5)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 54, 13)) d: T; ->d : T ->T : T +>d : T, Symbol(d, Decl(mergedInterfacesWithMultipleBases2.ts, 54, 17)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 54, 13)) } interface A extends C, C3 { ->A : A ->T : T ->C : C ->T : T ->C3 : C3 ->T : T +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases2.ts, 56, 5), Decl(mergedInterfacesWithMultipleBases2.ts, 60, 5)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 58, 16), Decl(mergedInterfacesWithMultipleBases2.ts, 62, 16)) +>C : C, Symbol(C, Decl(mergedInterfacesWithMultipleBases2.ts, 41, 10)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 58, 16), Decl(mergedInterfacesWithMultipleBases2.ts, 62, 16)) +>C3 : C3, Symbol(C3, Decl(mergedInterfacesWithMultipleBases2.ts, 48, 5)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 58, 16), Decl(mergedInterfacesWithMultipleBases2.ts, 62, 16)) y: T; ->y : T ->T : T +>y : T, Symbol(y, Decl(mergedInterfacesWithMultipleBases2.ts, 58, 40)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 58, 16), Decl(mergedInterfacesWithMultipleBases2.ts, 62, 16)) } interface A extends C2, C4 { ->A : A ->T : T ->C2 : C2 ->C4 : C4 +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases2.ts, 56, 5), Decl(mergedInterfacesWithMultipleBases2.ts, 60, 5)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 58, 16), Decl(mergedInterfacesWithMultipleBases2.ts, 62, 16)) +>C2 : C2, Symbol(C2, Decl(mergedInterfacesWithMultipleBases2.ts, 44, 5)) +>C4 : C4, Symbol(C4, Decl(mergedInterfacesWithMultipleBases2.ts, 52, 5)) z: T; ->z : T ->T : T +>z : T, Symbol(z, Decl(mergedInterfacesWithMultipleBases2.ts, 62, 51)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases2.ts, 58, 16), Decl(mergedInterfacesWithMultipleBases2.ts, 62, 16)) } class D implements A { ->D : D ->A : A +>D : D, Symbol(D, Decl(mergedInterfacesWithMultipleBases2.ts, 64, 5)) +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases2.ts, 56, 5), Decl(mergedInterfacesWithMultipleBases2.ts, 60, 5)) a: boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(mergedInterfacesWithMultipleBases2.ts, 66, 35)) b: string; ->b : string +>b : string, Symbol(b, Decl(mergedInterfacesWithMultipleBases2.ts, 67, 19)) c: boolean; ->c : boolean +>c : boolean, Symbol(c, Decl(mergedInterfacesWithMultipleBases2.ts, 68, 18)) d: string; ->d : string +>d : string, Symbol(d, Decl(mergedInterfacesWithMultipleBases2.ts, 69, 19)) y: boolean; ->y : boolean +>y : boolean, Symbol(y, Decl(mergedInterfacesWithMultipleBases2.ts, 70, 18)) z: boolean; ->z : boolean +>z : boolean, Symbol(z, Decl(mergedInterfacesWithMultipleBases2.ts, 71, 19)) } } diff --git a/tests/baselines/reference/mergedInterfacesWithMultipleBases3.types b/tests/baselines/reference/mergedInterfacesWithMultipleBases3.types index f5951008932..9c0dbd8009d 100644 --- a/tests/baselines/reference/mergedInterfacesWithMultipleBases3.types +++ b/tests/baselines/reference/mergedInterfacesWithMultipleBases3.types @@ -3,83 +3,83 @@ // no errors expected class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(mergedInterfacesWithMultipleBases3.ts, 0, 0)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases3.ts, 3, 8)) a: T; ->a : T ->T : T +>a : T, Symbol(a, Decl(mergedInterfacesWithMultipleBases3.ts, 3, 12)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases3.ts, 3, 8)) } class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(mergedInterfacesWithMultipleBases3.ts, 5, 1)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases3.ts, 7, 9)) b: T; ->b : T ->T : T +>b : T, Symbol(b, Decl(mergedInterfacesWithMultipleBases3.ts, 7, 13)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases3.ts, 7, 9)) } class C3 { ->C3 : C3 ->T : T +>C3 : C3, Symbol(C3, Decl(mergedInterfacesWithMultipleBases3.ts, 9, 1)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases3.ts, 11, 9)) c: T; ->c : T ->T : T +>c : T, Symbol(c, Decl(mergedInterfacesWithMultipleBases3.ts, 11, 13)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases3.ts, 11, 9)) } class C4 { ->C4 : C4 ->T : T +>C4 : C4, Symbol(C4, Decl(mergedInterfacesWithMultipleBases3.ts, 13, 1)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases3.ts, 15, 9)) d: T; ->d : T ->T : T +>d : T, Symbol(d, Decl(mergedInterfacesWithMultipleBases3.ts, 15, 13)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases3.ts, 15, 9)) } interface A extends C, C3 { ->A : A ->T : T ->C : C ->C3 : C3 +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases3.ts, 17, 1), Decl(mergedInterfacesWithMultipleBases3.ts, 21, 1)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases3.ts, 19, 12), Decl(mergedInterfacesWithMultipleBases3.ts, 23, 12)) +>C : C, Symbol(C, Decl(mergedInterfacesWithMultipleBases3.ts, 0, 0)) +>C3 : C3, Symbol(C3, Decl(mergedInterfacesWithMultipleBases3.ts, 9, 1)) y: T; ->y : T ->T : T +>y : T, Symbol(y, Decl(mergedInterfacesWithMultipleBases3.ts, 19, 46)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases3.ts, 19, 12), Decl(mergedInterfacesWithMultipleBases3.ts, 23, 12)) } interface A extends C, C4 { ->A : A ->T : T ->C : C ->C4 : C4 +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases3.ts, 17, 1), Decl(mergedInterfacesWithMultipleBases3.ts, 21, 1)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases3.ts, 19, 12), Decl(mergedInterfacesWithMultipleBases3.ts, 23, 12)) +>C : C, Symbol(C, Decl(mergedInterfacesWithMultipleBases3.ts, 0, 0)) +>C4 : C4, Symbol(C4, Decl(mergedInterfacesWithMultipleBases3.ts, 13, 1)) z: T; ->z : T ->T : T +>z : T, Symbol(z, Decl(mergedInterfacesWithMultipleBases3.ts, 23, 46)) +>T : T, Symbol(T, Decl(mergedInterfacesWithMultipleBases3.ts, 19, 12), Decl(mergedInterfacesWithMultipleBases3.ts, 23, 12)) } class D implements A { ->D : D ->A : A +>D : D, Symbol(D, Decl(mergedInterfacesWithMultipleBases3.ts, 25, 1)) +>A : A, Symbol(A, Decl(mergedInterfacesWithMultipleBases3.ts, 17, 1), Decl(mergedInterfacesWithMultipleBases3.ts, 21, 1)) a: string; ->a : string +>a : string, Symbol(a, Decl(mergedInterfacesWithMultipleBases3.ts, 27, 31)) b: Date; ->b : Date ->Date : Date +>b : Date, Symbol(b, Decl(mergedInterfacesWithMultipleBases3.ts, 28, 14)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) c: string; ->c : string +>c : string, Symbol(c, Decl(mergedInterfacesWithMultipleBases3.ts, 29, 12)) d: string; ->d : string +>d : string, Symbol(d, Decl(mergedInterfacesWithMultipleBases3.ts, 30, 14)) y: boolean; ->y : boolean +>y : boolean, Symbol(y, Decl(mergedInterfacesWithMultipleBases3.ts, 31, 14)) z: boolean; ->z : boolean +>z : boolean, Symbol(z, Decl(mergedInterfacesWithMultipleBases3.ts, 32, 15)) } diff --git a/tests/baselines/reference/mergedModuleDeclarationCodeGen2.types b/tests/baselines/reference/mergedModuleDeclarationCodeGen2.types index 790ec8d9377..94bb815042a 100644 --- a/tests/baselines/reference/mergedModuleDeclarationCodeGen2.types +++ b/tests/baselines/reference/mergedModuleDeclarationCodeGen2.types @@ -1,24 +1,24 @@ === tests/cases/compiler/mergedModuleDeclarationCodeGen2.ts === module my.data.foo { ->my : typeof my ->data : typeof data ->foo : typeof foo +>my : typeof my, Symbol(my, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 0), Decl(mergedModuleDeclarationCodeGen2.ts, 2, 1)) +>data : typeof data, Symbol(data, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 10), Decl(mergedModuleDeclarationCodeGen2.ts, 3, 10)) +>foo : typeof foo, Symbol(foo, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 15)) export function buz() { } ->buz : () => void +>buz : () => void, Symbol(buz, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 20)) } module my.data { ->my : typeof my ->data : typeof my.data +>my : typeof my, Symbol(my, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 0), Decl(mergedModuleDeclarationCodeGen2.ts, 2, 1)) +>data : typeof my.data, Symbol(data, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 10), Decl(mergedModuleDeclarationCodeGen2.ts, 3, 10)) function data(my) { ->data : (my: any) => void ->my : any +>data : (my: any) => void, Symbol(data, Decl(mergedModuleDeclarationCodeGen2.ts, 3, 16)) +>my : any, Symbol(my, Decl(mergedModuleDeclarationCodeGen2.ts, 4, 18)) foo.buz(); >foo.buz() : void ->foo.buz : () => void ->foo : typeof foo ->buz : () => void +>foo.buz : () => void, Symbol(foo.buz, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 20)) +>foo : typeof foo, Symbol(foo, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 15)) +>buz : () => void, Symbol(foo.buz, Decl(mergedModuleDeclarationCodeGen2.ts, 0, 20)) } } diff --git a/tests/baselines/reference/mergedModuleDeclarationCodeGen3.types b/tests/baselines/reference/mergedModuleDeclarationCodeGen3.types index 45f652fe3c0..c2c78e3ef54 100644 --- a/tests/baselines/reference/mergedModuleDeclarationCodeGen3.types +++ b/tests/baselines/reference/mergedModuleDeclarationCodeGen3.types @@ -1,23 +1,23 @@ === tests/cases/compiler/mergedModuleDeclarationCodeGen3.ts === module my.data { ->my : typeof my ->data : typeof data +>my : typeof my, Symbol(my, Decl(mergedModuleDeclarationCodeGen3.ts, 0, 0), Decl(mergedModuleDeclarationCodeGen3.ts, 2, 1)) +>data : typeof data, Symbol(data, Decl(mergedModuleDeclarationCodeGen3.ts, 0, 10), Decl(mergedModuleDeclarationCodeGen3.ts, 3, 10)) export function buz() { } ->buz : () => void +>buz : () => void, Symbol(buz, Decl(mergedModuleDeclarationCodeGen3.ts, 0, 16)) } module my.data.foo { ->my : typeof my ->data : typeof data ->foo : typeof foo +>my : typeof my, Symbol(my, Decl(mergedModuleDeclarationCodeGen3.ts, 0, 0), Decl(mergedModuleDeclarationCodeGen3.ts, 2, 1)) +>data : typeof data, Symbol(data, Decl(mergedModuleDeclarationCodeGen3.ts, 0, 10), Decl(mergedModuleDeclarationCodeGen3.ts, 3, 10)) +>foo : typeof foo, Symbol(foo, Decl(mergedModuleDeclarationCodeGen3.ts, 3, 15)) function data(my, foo) { ->data : (my: any, foo: any) => void ->my : any ->foo : any +>data : (my: any, foo: any) => void, Symbol(data, Decl(mergedModuleDeclarationCodeGen3.ts, 3, 20)) +>my : any, Symbol(my, Decl(mergedModuleDeclarationCodeGen3.ts, 4, 18)) +>foo : any, Symbol(foo, Decl(mergedModuleDeclarationCodeGen3.ts, 4, 21)) buz(); >buz() : void ->buz : () => void +>buz : () => void, Symbol(buz, Decl(mergedModuleDeclarationCodeGen3.ts, 0, 16)) } } diff --git a/tests/baselines/reference/mergedModuleDeclarationCodeGen4.types b/tests/baselines/reference/mergedModuleDeclarationCodeGen4.types index 0907a21a969..388b936f336 100644 --- a/tests/baselines/reference/mergedModuleDeclarationCodeGen4.types +++ b/tests/baselines/reference/mergedModuleDeclarationCodeGen4.types @@ -1,38 +1,38 @@ === tests/cases/compiler/mergedModuleDeclarationCodeGen4.ts === module superContain { ->superContain : typeof superContain +>superContain : typeof superContain, Symbol(superContain, Decl(mergedModuleDeclarationCodeGen4.ts, 0, 0)) export module contain { ->contain : typeof contain +>contain : typeof contain, Symbol(contain, Decl(mergedModuleDeclarationCodeGen4.ts, 0, 21)) export module my.buz { ->my : typeof my ->buz : typeof buz +>my : typeof my, Symbol(my, Decl(mergedModuleDeclarationCodeGen4.ts, 1, 27), Decl(mergedModuleDeclarationCodeGen4.ts, 6, 9)) +>buz : typeof buz, Symbol(buz, Decl(mergedModuleDeclarationCodeGen4.ts, 2, 25), Decl(mergedModuleDeclarationCodeGen4.ts, 7, 25)) export module data { ->data : typeof data +>data : typeof data, Symbol(data, Decl(mergedModuleDeclarationCodeGen4.ts, 2, 30), Decl(mergedModuleDeclarationCodeGen4.ts, 7, 30)) export function foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(mergedModuleDeclarationCodeGen4.ts, 3, 32)) } } export module my.buz { ->my : typeof my ->buz : typeof buz +>my : typeof my, Symbol(my, Decl(mergedModuleDeclarationCodeGen4.ts, 1, 27), Decl(mergedModuleDeclarationCodeGen4.ts, 6, 9)) +>buz : typeof buz, Symbol(buz, Decl(mergedModuleDeclarationCodeGen4.ts, 2, 25), Decl(mergedModuleDeclarationCodeGen4.ts, 7, 25)) export module data { ->data : typeof data +>data : typeof data, Symbol(data, Decl(mergedModuleDeclarationCodeGen4.ts, 2, 30), Decl(mergedModuleDeclarationCodeGen4.ts, 7, 30)) export function bar(contain, my, buz, data) { ->bar : (contain: any, my: any, buz: any, data: any) => void ->contain : any ->my : any ->buz : any ->data : any +>bar : (contain: any, my: any, buz: any, data: any) => void, Symbol(bar, Decl(mergedModuleDeclarationCodeGen4.ts, 8, 32)) +>contain : any, Symbol(contain, Decl(mergedModuleDeclarationCodeGen4.ts, 9, 36)) +>my : any, Symbol(my, Decl(mergedModuleDeclarationCodeGen4.ts, 9, 44)) +>buz : any, Symbol(buz, Decl(mergedModuleDeclarationCodeGen4.ts, 9, 48)) +>data : any, Symbol(data, Decl(mergedModuleDeclarationCodeGen4.ts, 9, 53)) foo(); >foo() : void ->foo : () => void +>foo : () => void, Symbol(foo, Decl(mergedModuleDeclarationCodeGen4.ts, 3, 32)) } } } diff --git a/tests/baselines/reference/mergedModuleDeclarationCodeGen5.types b/tests/baselines/reference/mergedModuleDeclarationCodeGen5.types index ab4203d7951..d790775d611 100644 --- a/tests/baselines/reference/mergedModuleDeclarationCodeGen5.types +++ b/tests/baselines/reference/mergedModuleDeclarationCodeGen5.types @@ -1,54 +1,54 @@ === tests/cases/compiler/mergedModuleDeclarationCodeGen5.ts === module M.buz.plop { ->M : typeof M ->buz : typeof buz ->plop : typeof buz.plop +>M : typeof M, Symbol(M, Decl(mergedModuleDeclarationCodeGen5.ts, 0, 0), Decl(mergedModuleDeclarationCodeGen5.ts, 3, 1)) +>buz : typeof buz, Symbol(buz, Decl(mergedModuleDeclarationCodeGen5.ts, 0, 9), Decl(mergedModuleDeclarationCodeGen5.ts, 4, 9)) +>plop : typeof buz.plop, Symbol(plop, Decl(mergedModuleDeclarationCodeGen5.ts, 0, 13), Decl(mergedModuleDeclarationCodeGen5.ts, 4, 13)) export function doom() { } ->doom : () => void +>doom : () => void, Symbol(doom, Decl(mergedModuleDeclarationCodeGen5.ts, 0, 19)) export function M() { } ->M : () => void +>M : () => void, Symbol(M, Decl(mergedModuleDeclarationCodeGen5.ts, 1, 30)) } module M.buz.plop { ->M : typeof M ->buz : typeof buz ->plop : typeof M.buz.plop +>M : typeof M, Symbol(M, Decl(mergedModuleDeclarationCodeGen5.ts, 0, 0), Decl(mergedModuleDeclarationCodeGen5.ts, 3, 1)) +>buz : typeof buz, Symbol(buz, Decl(mergedModuleDeclarationCodeGen5.ts, 0, 9), Decl(mergedModuleDeclarationCodeGen5.ts, 4, 9)) +>plop : typeof M.buz.plop, Symbol(plop, Decl(mergedModuleDeclarationCodeGen5.ts, 0, 13), Decl(mergedModuleDeclarationCodeGen5.ts, 4, 13)) function gunk() { } ->gunk : () => void +>gunk : () => void, Symbol(gunk, Decl(mergedModuleDeclarationCodeGen5.ts, 4, 19)) function buz() { } ->buz : () => void +>buz : () => void, Symbol(buz, Decl(mergedModuleDeclarationCodeGen5.ts, 5, 23)) export class fudge { } ->fudge : fudge +>fudge : fudge, Symbol(fudge, Decl(mergedModuleDeclarationCodeGen5.ts, 6, 22)) export enum plop { } ->plop : plop +>plop : plop, Symbol(plop, Decl(mergedModuleDeclarationCodeGen5.ts, 7, 26)) // Emit these references as follows var v1 = gunk; // gunk ->v1 : () => void ->gunk : () => void +>v1 : () => void, Symbol(v1, Decl(mergedModuleDeclarationCodeGen5.ts, 11, 7)) +>gunk : () => void, Symbol(gunk, Decl(mergedModuleDeclarationCodeGen5.ts, 4, 19)) var v2 = buz; // buz ->v2 : () => void ->buz : () => void +>v2 : () => void, Symbol(v2, Decl(mergedModuleDeclarationCodeGen5.ts, 12, 7)) +>buz : () => void, Symbol(buz, Decl(mergedModuleDeclarationCodeGen5.ts, 5, 23)) export var v3 = doom; // _plop.doom ->v3 : () => void ->doom : () => void +>v3 : () => void, Symbol(v3, Decl(mergedModuleDeclarationCodeGen5.ts, 13, 14)) +>doom : () => void, Symbol(doom, Decl(mergedModuleDeclarationCodeGen5.ts, 0, 19)) export var v4 = M; // _plop.M ->v4 : () => void ->M : () => void +>v4 : () => void, Symbol(v4, Decl(mergedModuleDeclarationCodeGen5.ts, 14, 14)) +>M : () => void, Symbol(M, Decl(mergedModuleDeclarationCodeGen5.ts, 1, 30)) export var v5 = fudge; // fudge ->v5 : typeof fudge ->fudge : typeof fudge +>v5 : typeof fudge, Symbol(v5, Decl(mergedModuleDeclarationCodeGen5.ts, 15, 14)) +>fudge : typeof fudge, Symbol(fudge, Decl(mergedModuleDeclarationCodeGen5.ts, 6, 22)) export var v6 = plop; // plop ->v6 : typeof plop ->plop : typeof plop +>v6 : typeof plop, Symbol(v6, Decl(mergedModuleDeclarationCodeGen5.ts, 16, 14)) +>plop : typeof plop, Symbol(plop, Decl(mergedModuleDeclarationCodeGen5.ts, 7, 26)) } diff --git a/tests/baselines/reference/mergedModuleDeclarationWithSharedExportedVar.types b/tests/baselines/reference/mergedModuleDeclarationWithSharedExportedVar.types index 89d155861a5..097a8f383aa 100644 --- a/tests/baselines/reference/mergedModuleDeclarationWithSharedExportedVar.types +++ b/tests/baselines/reference/mergedModuleDeclarationWithSharedExportedVar.types @@ -1,16 +1,17 @@ === tests/cases/compiler/mergedModuleDeclarationWithSharedExportedVar.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(mergedModuleDeclarationWithSharedExportedVar.ts, 0, 0), Decl(mergedModuleDeclarationWithSharedExportedVar.ts, 3, 1)) export var v = 10; ->v : number +>v : number, Symbol(v, Decl(mergedModuleDeclarationWithSharedExportedVar.ts, 1, 14)) +>10 : number v; ->v : number +>v : number, Symbol(v, Decl(mergedModuleDeclarationWithSharedExportedVar.ts, 1, 14)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(mergedModuleDeclarationWithSharedExportedVar.ts, 0, 0), Decl(mergedModuleDeclarationWithSharedExportedVar.ts, 3, 1)) v; ->v : number +>v : number, Symbol(v, Decl(mergedModuleDeclarationWithSharedExportedVar.ts, 1, 14)) } diff --git a/tests/baselines/reference/methodContainingLocalFunction.types b/tests/baselines/reference/methodContainingLocalFunction.types index 48c4be12631..38c7672680e 100644 --- a/tests/baselines/reference/methodContainingLocalFunction.types +++ b/tests/baselines/reference/methodContainingLocalFunction.types @@ -1,132 +1,135 @@ === tests/cases/compiler/methodContainingLocalFunction.ts === // The first case here (BugExhibition) caused a crash. Try with different permutations of features. class BugExhibition { ->BugExhibition : BugExhibition ->T : T +>BugExhibition : BugExhibition, Symbol(BugExhibition, Decl(methodContainingLocalFunction.ts, 0, 0)) +>T : T, Symbol(T, Decl(methodContainingLocalFunction.ts, 1, 20)) public exhibitBug() { ->exhibitBug : () => void +>exhibitBug : () => void, Symbol(exhibitBug, Decl(methodContainingLocalFunction.ts, 1, 24)) function localFunction() { } ->localFunction : () => void +>localFunction : () => void, Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 2, 25)) var x: { (): void; }; ->x : () => void +>x : () => void, Symbol(x, Decl(methodContainingLocalFunction.ts, 4, 11)) x = localFunction; >x = localFunction : () => void ->x : () => void ->localFunction : () => void +>x : () => void, Symbol(x, Decl(methodContainingLocalFunction.ts, 4, 11)) +>localFunction : () => void, Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 2, 25)) } } class BugExhibition2 { ->BugExhibition2 : BugExhibition2 ->T : T +>BugExhibition2 : BugExhibition2, Symbol(BugExhibition2, Decl(methodContainingLocalFunction.ts, 7, 1)) +>T : T, Symbol(T, Decl(methodContainingLocalFunction.ts, 9, 21)) private static get exhibitBug() { ->exhibitBug : any +>exhibitBug : any, Symbol(BugExhibition2.exhibitBug, Decl(methodContainingLocalFunction.ts, 9, 25)) function localFunction() { } ->localFunction : () => void +>localFunction : () => void, Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 10, 37)) var x: { (): void; }; ->x : () => void +>x : () => void, Symbol(x, Decl(methodContainingLocalFunction.ts, 12, 11)) x = localFunction; >x = localFunction : () => void ->x : () => void ->localFunction : () => void +>x : () => void, Symbol(x, Decl(methodContainingLocalFunction.ts, 12, 11)) +>localFunction : () => void, Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 10, 37)) return null; +>null : null } } class BugExhibition3 { ->BugExhibition3 : BugExhibition3 ->T : T +>BugExhibition3 : BugExhibition3, Symbol(BugExhibition3, Decl(methodContainingLocalFunction.ts, 16, 1)) +>T : T, Symbol(T, Decl(methodContainingLocalFunction.ts, 18, 21)) public exhibitBug() { ->exhibitBug : () => void +>exhibitBug : () => void, Symbol(exhibitBug, Decl(methodContainingLocalFunction.ts, 18, 25)) function localGenericFunction(u?: U) { } ->localGenericFunction : (u?: U) => void ->U : U ->u : U ->U : U +>localGenericFunction : (u?: U) => void, Symbol(localGenericFunction, Decl(methodContainingLocalFunction.ts, 19, 25)) +>U : U, Symbol(U, Decl(methodContainingLocalFunction.ts, 20, 38)) +>u : U, Symbol(u, Decl(methodContainingLocalFunction.ts, 20, 41)) +>U : U, Symbol(U, Decl(methodContainingLocalFunction.ts, 20, 38)) var x: { (): void; }; ->x : () => void +>x : () => void, Symbol(x, Decl(methodContainingLocalFunction.ts, 21, 11)) x = localGenericFunction; >x = localGenericFunction : (u?: U) => void ->x : () => void ->localGenericFunction : (u?: U) => void +>x : () => void, Symbol(x, Decl(methodContainingLocalFunction.ts, 21, 11)) +>localGenericFunction : (u?: U) => void, Symbol(localGenericFunction, Decl(methodContainingLocalFunction.ts, 19, 25)) } } class C { ->C : C +>C : C, Symbol(C, Decl(methodContainingLocalFunction.ts, 24, 1)) exhibit() { ->exhibit : () => void +>exhibit : () => void, Symbol(exhibit, Decl(methodContainingLocalFunction.ts, 26, 9)) var funcExpr = (u?: U) => { }; ->funcExpr : (u?: U) => void +>funcExpr : (u?: U) => void, Symbol(funcExpr, Decl(methodContainingLocalFunction.ts, 28, 11)) >(u?: U) => { } : (u?: U) => void ->U : U ->u : U ->U : U +>U : U, Symbol(U, Decl(methodContainingLocalFunction.ts, 28, 24)) +>u : U, Symbol(u, Decl(methodContainingLocalFunction.ts, 28, 27)) +>U : U, Symbol(U, Decl(methodContainingLocalFunction.ts, 28, 24)) var x: { (): void; }; ->x : () => void +>x : () => void, Symbol(x, Decl(methodContainingLocalFunction.ts, 29, 11)) x = funcExpr; >x = funcExpr : (u?: U) => void ->x : () => void ->funcExpr : (u?: U) => void +>x : () => void, Symbol(x, Decl(methodContainingLocalFunction.ts, 29, 11)) +>funcExpr : (u?: U) => void, Symbol(funcExpr, Decl(methodContainingLocalFunction.ts, 28, 11)) } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(methodContainingLocalFunction.ts, 32, 1)) export function exhibitBug() { ->exhibitBug : () => void +>exhibitBug : () => void, Symbol(exhibitBug, Decl(methodContainingLocalFunction.ts, 34, 10)) function localFunction() { } ->localFunction : () => void +>localFunction : () => void, Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 35, 34)) var x: { (): void; }; ->x : () => void +>x : () => void, Symbol(x, Decl(methodContainingLocalFunction.ts, 37, 11)) x = localFunction; >x = localFunction : () => void ->x : () => void ->localFunction : () => void +>x : () => void, Symbol(x, Decl(methodContainingLocalFunction.ts, 37, 11)) +>localFunction : () => void, Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 35, 34)) } } enum E { ->E : E +>E : E, Symbol(E, Decl(methodContainingLocalFunction.ts, 40, 1)) A = (() => { ->A : E +>A : E, Symbol(E.A, Decl(methodContainingLocalFunction.ts, 42, 8)) >(() => { function localFunction() { } var x: { (): void; }; x = localFunction; return 0; })() : number >(() => { function localFunction() { } var x: { (): void; }; x = localFunction; return 0; }) : () => number >() => { function localFunction() { } var x: { (): void; }; x = localFunction; return 0; } : () => number function localFunction() { } ->localFunction : () => void +>localFunction : () => void, Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 43, 16)) var x: { (): void; }; ->x : () => void +>x : () => void, Symbol(x, Decl(methodContainingLocalFunction.ts, 45, 11)) x = localFunction; >x = localFunction : () => void ->x : () => void ->localFunction : () => void +>x : () => void, Symbol(x, Decl(methodContainingLocalFunction.ts, 45, 11)) +>localFunction : () => void, Symbol(localFunction, Decl(methodContainingLocalFunction.ts, 43, 16)) return 0; +>0 : number + })() } diff --git a/tests/baselines/reference/methodSignatureDeclarationEmit1.types b/tests/baselines/reference/methodSignatureDeclarationEmit1.types index 30bcf0661b6..f970aa4583e 100644 --- a/tests/baselines/reference/methodSignatureDeclarationEmit1.types +++ b/tests/baselines/reference/methodSignatureDeclarationEmit1.types @@ -1,17 +1,17 @@ === tests/cases/compiler/methodSignatureDeclarationEmit1.ts === class C { ->C : C +>C : C, Symbol(C, Decl(methodSignatureDeclarationEmit1.ts, 0, 0)) public foo(n: number): void; ->foo : { (n: number): void; (s: string): void; } ->n : number +>foo : { (n: number): void; (s: string): void; }, Symbol(foo, Decl(methodSignatureDeclarationEmit1.ts, 0, 9), Decl(methodSignatureDeclarationEmit1.ts, 1, 30), Decl(methodSignatureDeclarationEmit1.ts, 2, 30)) +>n : number, Symbol(n, Decl(methodSignatureDeclarationEmit1.ts, 1, 13)) public foo(s: string): void; ->foo : { (n: number): void; (s: string): void; } ->s : string +>foo : { (n: number): void; (s: string): void; }, Symbol(foo, Decl(methodSignatureDeclarationEmit1.ts, 0, 9), Decl(methodSignatureDeclarationEmit1.ts, 1, 30), Decl(methodSignatureDeclarationEmit1.ts, 2, 30)) +>s : string, Symbol(s, Decl(methodSignatureDeclarationEmit1.ts, 2, 13)) public foo(a: any): void { ->foo : { (n: number): void; (s: string): void; } ->a : any +>foo : { (n: number): void; (s: string): void; }, Symbol(foo, Decl(methodSignatureDeclarationEmit1.ts, 0, 9), Decl(methodSignatureDeclarationEmit1.ts, 1, 30), Decl(methodSignatureDeclarationEmit1.ts, 2, 30)) +>a : any, Symbol(a, Decl(methodSignatureDeclarationEmit1.ts, 3, 13)) } } diff --git a/tests/baselines/reference/methodSignaturesWithOverloads2.types b/tests/baselines/reference/methodSignaturesWithOverloads2.types index 1c0a44db753..93ec34ad6bc 100644 --- a/tests/baselines/reference/methodSignaturesWithOverloads2.types +++ b/tests/baselines/reference/methodSignaturesWithOverloads2.types @@ -2,24 +2,24 @@ // Object type literals permit overloads with optionality but they must match var c: { ->c : { func4?(x: number): number; func4?(s: string): string; func5?: { (x: number): number; (s: string): string; }; } +>c : { func4?(x: number): number; func4?(s: string): string; func5?: { (x: number): number; (s: string): string; }; }, Symbol(c, Decl(methodSignaturesWithOverloads2.ts, 2, 3)) func4?(x: number): number; ->func4 : { (x: number): number; (s: string): string; } ->x : number +>func4 : { (x: number): number; (s: string): string; }, Symbol(func4, Decl(methodSignaturesWithOverloads2.ts, 2, 8), Decl(methodSignaturesWithOverloads2.ts, 3, 30)) +>x : number, Symbol(x, Decl(methodSignaturesWithOverloads2.ts, 3, 11)) func4?(s: string): string; ->func4 : { (x: number): number; (s: string): string; } ->s : string +>func4 : { (x: number): number; (s: string): string; }, Symbol(func4, Decl(methodSignaturesWithOverloads2.ts, 2, 8), Decl(methodSignaturesWithOverloads2.ts, 3, 30)) +>s : string, Symbol(s, Decl(methodSignaturesWithOverloads2.ts, 4, 11)) func5?: { ->func5 : { (x: number): number; (s: string): string; } +>func5 : { (x: number): number; (s: string): string; }, Symbol(func5, Decl(methodSignaturesWithOverloads2.ts, 4, 30)) (x: number): number; ->x : number +>x : number, Symbol(x, Decl(methodSignaturesWithOverloads2.ts, 6, 9)) (s: string): string; ->s : string +>s : string, Symbol(s, Decl(methodSignaturesWithOverloads2.ts, 7, 9)) }; }; @@ -27,50 +27,50 @@ var c: { // no errors c.func4 = c.func5; >c.func4 = c.func5 : { (x: number): number; (s: string): string; } ->c.func4 : { (x: number): number; (s: string): string; } ->c : { func4?(x: number): number; func4?(s: string): string; func5?: { (x: number): number; (s: string): string; }; } ->func4 : { (x: number): number; (s: string): string; } ->c.func5 : { (x: number): number; (s: string): string; } ->c : { func4?(x: number): number; func4?(s: string): string; func5?: { (x: number): number; (s: string): string; }; } ->func5 : { (x: number): number; (s: string): string; } +>c.func4 : { (x: number): number; (s: string): string; }, Symbol(func4, Decl(methodSignaturesWithOverloads2.ts, 2, 8), Decl(methodSignaturesWithOverloads2.ts, 3, 30)) +>c : { func4?(x: number): number; func4?(s: string): string; func5?: { (x: number): number; (s: string): string; }; }, Symbol(c, Decl(methodSignaturesWithOverloads2.ts, 2, 3)) +>func4 : { (x: number): number; (s: string): string; }, Symbol(func4, Decl(methodSignaturesWithOverloads2.ts, 2, 8), Decl(methodSignaturesWithOverloads2.ts, 3, 30)) +>c.func5 : { (x: number): number; (s: string): string; }, Symbol(func5, Decl(methodSignaturesWithOverloads2.ts, 4, 30)) +>c : { func4?(x: number): number; func4?(s: string): string; func5?: { (x: number): number; (s: string): string; }; }, Symbol(c, Decl(methodSignaturesWithOverloads2.ts, 2, 3)) +>func5 : { (x: number): number; (s: string): string; }, Symbol(func5, Decl(methodSignaturesWithOverloads2.ts, 4, 30)) c.func5 = c.func4; >c.func5 = c.func4 : { (x: number): number; (s: string): string; } ->c.func5 : { (x: number): number; (s: string): string; } ->c : { func4?(x: number): number; func4?(s: string): string; func5?: { (x: number): number; (s: string): string; }; } ->func5 : { (x: number): number; (s: string): string; } ->c.func4 : { (x: number): number; (s: string): string; } ->c : { func4?(x: number): number; func4?(s: string): string; func5?: { (x: number): number; (s: string): string; }; } ->func4 : { (x: number): number; (s: string): string; } +>c.func5 : { (x: number): number; (s: string): string; }, Symbol(func5, Decl(methodSignaturesWithOverloads2.ts, 4, 30)) +>c : { func4?(x: number): number; func4?(s: string): string; func5?: { (x: number): number; (s: string): string; }; }, Symbol(c, Decl(methodSignaturesWithOverloads2.ts, 2, 3)) +>func5 : { (x: number): number; (s: string): string; }, Symbol(func5, Decl(methodSignaturesWithOverloads2.ts, 4, 30)) +>c.func4 : { (x: number): number; (s: string): string; }, Symbol(func4, Decl(methodSignaturesWithOverloads2.ts, 2, 8), Decl(methodSignaturesWithOverloads2.ts, 3, 30)) +>c : { func4?(x: number): number; func4?(s: string): string; func5?: { (x: number): number; (s: string): string; }; }, Symbol(c, Decl(methodSignaturesWithOverloads2.ts, 2, 3)) +>func4 : { (x: number): number; (s: string): string; }, Symbol(func4, Decl(methodSignaturesWithOverloads2.ts, 2, 8), Decl(methodSignaturesWithOverloads2.ts, 3, 30)) var c2: { ->c2 : { func4?(x: T): number; func4?(s: T): string; func5?: { (x: T): number; (s: T): string; }; } +>c2 : { func4?(x: T): number; func4?(s: T): string; func5?: { (x: T): number; (s: T): string; }; }, Symbol(c2, Decl(methodSignaturesWithOverloads2.ts, 16, 3)) func4?(x: T): number; ->func4 : { (x: T): number; (s: T): string; } ->T : T ->x : T ->T : T +>func4 : { (x: T): number; (s: T): string; }, Symbol(func4, Decl(methodSignaturesWithOverloads2.ts, 16, 9), Decl(methodSignaturesWithOverloads2.ts, 17, 28)) +>T : T, Symbol(T, Decl(methodSignaturesWithOverloads2.ts, 17, 11)) +>x : T, Symbol(x, Decl(methodSignaturesWithOverloads2.ts, 17, 14)) +>T : T, Symbol(T, Decl(methodSignaturesWithOverloads2.ts, 17, 11)) func4? (s: T): string; ->func4 : { (x: T): number; (s: T): string; } ->T : T ->s : T ->T : T +>func4 : { (x: T): number; (s: T): string; }, Symbol(func4, Decl(methodSignaturesWithOverloads2.ts, 16, 9), Decl(methodSignaturesWithOverloads2.ts, 17, 28)) +>T : T, Symbol(T, Decl(methodSignaturesWithOverloads2.ts, 18, 12)) +>s : T, Symbol(s, Decl(methodSignaturesWithOverloads2.ts, 18, 15)) +>T : T, Symbol(T, Decl(methodSignaturesWithOverloads2.ts, 18, 12)) func5?: { ->func5 : { (x: T): number; (s: T): string; } +>func5 : { (x: T): number; (s: T): string; }, Symbol(func5, Decl(methodSignaturesWithOverloads2.ts, 18, 29)) (x: T): number; ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(methodSignaturesWithOverloads2.ts, 20, 9)) +>x : T, Symbol(x, Decl(methodSignaturesWithOverloads2.ts, 20, 12)) +>T : T, Symbol(T, Decl(methodSignaturesWithOverloads2.ts, 20, 9)) (s: T): string; ->T : T ->s : T ->T : T +>T : T, Symbol(T, Decl(methodSignaturesWithOverloads2.ts, 21, 9)) +>s : T, Symbol(s, Decl(methodSignaturesWithOverloads2.ts, 21, 12)) +>T : T, Symbol(T, Decl(methodSignaturesWithOverloads2.ts, 21, 9)) }; }; @@ -78,19 +78,19 @@ var c2: { // no errors c2.func4 = c2.func5; >c2.func4 = c2.func5 : { (x: T): number; (s: T): string; } ->c2.func4 : { (x: T): number; (s: T): string; } ->c2 : { func4?(x: T): number; func4?(s: T): string; func5?: { (x: T): number; (s: T): string; }; } ->func4 : { (x: T): number; (s: T): string; } ->c2.func5 : { (x: T): number; (s: T): string; } ->c2 : { func4?(x: T): number; func4?(s: T): string; func5?: { (x: T): number; (s: T): string; }; } ->func5 : { (x: T): number; (s: T): string; } +>c2.func4 : { (x: T): number; (s: T): string; }, Symbol(func4, Decl(methodSignaturesWithOverloads2.ts, 16, 9), Decl(methodSignaturesWithOverloads2.ts, 17, 28)) +>c2 : { func4?(x: T): number; func4?(s: T): string; func5?: { (x: T): number; (s: T): string; }; }, Symbol(c2, Decl(methodSignaturesWithOverloads2.ts, 16, 3)) +>func4 : { (x: T): number; (s: T): string; }, Symbol(func4, Decl(methodSignaturesWithOverloads2.ts, 16, 9), Decl(methodSignaturesWithOverloads2.ts, 17, 28)) +>c2.func5 : { (x: T): number; (s: T): string; }, Symbol(func5, Decl(methodSignaturesWithOverloads2.ts, 18, 29)) +>c2 : { func4?(x: T): number; func4?(s: T): string; func5?: { (x: T): number; (s: T): string; }; }, Symbol(c2, Decl(methodSignaturesWithOverloads2.ts, 16, 3)) +>func5 : { (x: T): number; (s: T): string; }, Symbol(func5, Decl(methodSignaturesWithOverloads2.ts, 18, 29)) c2.func5 = c2.func4; >c2.func5 = c2.func4 : { (x: T): number; (s: T): string; } ->c2.func5 : { (x: T): number; (s: T): string; } ->c2 : { func4?(x: T): number; func4?(s: T): string; func5?: { (x: T): number; (s: T): string; }; } ->func5 : { (x: T): number; (s: T): string; } ->c2.func4 : { (x: T): number; (s: T): string; } ->c2 : { func4?(x: T): number; func4?(s: T): string; func5?: { (x: T): number; (s: T): string; }; } ->func4 : { (x: T): number; (s: T): string; } +>c2.func5 : { (x: T): number; (s: T): string; }, Symbol(func5, Decl(methodSignaturesWithOverloads2.ts, 18, 29)) +>c2 : { func4?(x: T): number; func4?(s: T): string; func5?: { (x: T): number; (s: T): string; }; }, Symbol(c2, Decl(methodSignaturesWithOverloads2.ts, 16, 3)) +>func5 : { (x: T): number; (s: T): string; }, Symbol(func5, Decl(methodSignaturesWithOverloads2.ts, 18, 29)) +>c2.func4 : { (x: T): number; (s: T): string; }, Symbol(func4, Decl(methodSignaturesWithOverloads2.ts, 16, 9), Decl(methodSignaturesWithOverloads2.ts, 17, 28)) +>c2 : { func4?(x: T): number; func4?(s: T): string; func5?: { (x: T): number; (s: T): string; }; }, Symbol(c2, Decl(methodSignaturesWithOverloads2.ts, 16, 3)) +>func4 : { (x: T): number; (s: T): string; }, Symbol(func4, Decl(methodSignaturesWithOverloads2.ts, 16, 9), Decl(methodSignaturesWithOverloads2.ts, 17, 28)) diff --git a/tests/baselines/reference/mismatchedGenericArguments1.types b/tests/baselines/reference/mismatchedGenericArguments1.types index 4d4d216bef1..823a01f6720 100644 --- a/tests/baselines/reference/mismatchedGenericArguments1.types +++ b/tests/baselines/reference/mismatchedGenericArguments1.types @@ -1,41 +1,43 @@ === tests/cases/compiler/mismatchedGenericArguments1.ts === interface IFoo { ->IFoo : IFoo ->T : T +>IFoo : IFoo, Symbol(IFoo, Decl(mismatchedGenericArguments1.ts, 0, 0)) +>T : T, Symbol(T, Decl(mismatchedGenericArguments1.ts, 0, 15)) foo(x: T): T; ->foo : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(mismatchedGenericArguments1.ts, 0, 19)) +>T : T, Symbol(T, Decl(mismatchedGenericArguments1.ts, 1, 7)) +>x : T, Symbol(x, Decl(mismatchedGenericArguments1.ts, 1, 10)) +>T : T, Symbol(T, Decl(mismatchedGenericArguments1.ts, 1, 7)) +>T : T, Symbol(T, Decl(mismatchedGenericArguments1.ts, 1, 7)) } class C implements IFoo { ->C : C ->T : T ->IFoo : IFoo ->T : T +>C : C, Symbol(C, Decl(mismatchedGenericArguments1.ts, 2, 1)) +>T : T, Symbol(T, Decl(mismatchedGenericArguments1.ts, 3, 8)) +>IFoo : IFoo, Symbol(IFoo, Decl(mismatchedGenericArguments1.ts, 0, 0)) +>T : T, Symbol(T, Decl(mismatchedGenericArguments1.ts, 3, 8)) foo(x: string): number { ->foo : (x: string) => number ->x : string +>foo : (x: string) => number, Symbol(foo, Decl(mismatchedGenericArguments1.ts, 3, 31)) +>x : string, Symbol(x, Decl(mismatchedGenericArguments1.ts, 4, 7)) return null; +>null : null } } class C2 implements IFoo { ->C2 : C2 ->T : T ->IFoo : IFoo ->T : T +>C2 : C2, Symbol(C2, Decl(mismatchedGenericArguments1.ts, 7, 1)) +>T : T, Symbol(T, Decl(mismatchedGenericArguments1.ts, 9, 9)) +>IFoo : IFoo, Symbol(IFoo, Decl(mismatchedGenericArguments1.ts, 0, 0)) +>T : T, Symbol(T, Decl(mismatchedGenericArguments1.ts, 9, 9)) foo(x: string): number { ->foo : (x: string) => number ->U : U ->x : string +>foo : (x: string) => number, Symbol(foo, Decl(mismatchedGenericArguments1.ts, 9, 32)) +>U : U, Symbol(U, Decl(mismatchedGenericArguments1.ts, 10, 7)) +>x : string, Symbol(x, Decl(mismatchedGenericArguments1.ts, 10, 10)) return null; +>null : null } } diff --git a/tests/baselines/reference/missingImportAfterModuleImport.types b/tests/baselines/reference/missingImportAfterModuleImport.types index b8602ca06d0..1af3e1f61da 100644 --- a/tests/baselines/reference/missingImportAfterModuleImport.types +++ b/tests/baselines/reference/missingImportAfterModuleImport.types @@ -1,37 +1,37 @@ === tests/cases/compiler/missingImportAfterModuleImport_1.ts === /// import SubModule = require('SubModule'); ->SubModule : typeof SubModule +>SubModule : typeof SubModule, Symbol(SubModule, Decl(missingImportAfterModuleImport_1.ts, 0, 0)) class MainModule { ->MainModule : MainModule +>MainModule : MainModule, Symbol(MainModule, Decl(missingImportAfterModuleImport_1.ts, 1, 40)) // public static SubModule: SubModule; public SubModule: SubModule; ->SubModule : SubModule ->SubModule : SubModule +>SubModule : SubModule, Symbol(SubModule, Decl(missingImportAfterModuleImport_1.ts, 2, 18)) +>SubModule : SubModule, Symbol(SubModule, Decl(missingImportAfterModuleImport_1.ts, 0, 0)) constructor() { } } export = MainModule; ->MainModule : MainModule +>MainModule : MainModule, Symbol(MainModule, Decl(missingImportAfterModuleImport_1.ts, 1, 40)) === tests/cases/compiler/missingImportAfterModuleImport_0.ts === declare module "SubModule" { class SubModule { ->SubModule : SubModule +>SubModule : SubModule, Symbol(SubModule, Decl(missingImportAfterModuleImport_0.ts, 1, 28)) public static StaticVar: number; ->StaticVar : number +>StaticVar : number, Symbol(SubModule.StaticVar, Decl(missingImportAfterModuleImport_0.ts, 2, 21)) public InstanceVar: number; ->InstanceVar : number +>InstanceVar : number, Symbol(InstanceVar, Decl(missingImportAfterModuleImport_0.ts, 3, 40)) constructor(); } export = SubModule; ->SubModule : SubModule +>SubModule : SubModule, Symbol(SubModule, Decl(missingImportAfterModuleImport_0.ts, 1, 28)) } diff --git a/tests/baselines/reference/missingSelf.types b/tests/baselines/reference/missingSelf.types index 5b46bf85db1..740ee0d26d4 100644 --- a/tests/baselines/reference/missingSelf.types +++ b/tests/baselines/reference/missingSelf.types @@ -1,53 +1,53 @@ === tests/cases/compiler/missingSelf.ts === class CalcButton ->CalcButton : CalcButton +>CalcButton : CalcButton, Symbol(CalcButton, Decl(missingSelf.ts, 0, 0)) { public a() { this.onClick(); } ->a : () => void +>a : () => void, Symbol(a, Decl(missingSelf.ts, 1, 1)) >this.onClick() : void ->this.onClick : () => void ->this : CalcButton ->onClick : () => void +>this.onClick : () => void, Symbol(onClick, Decl(missingSelf.ts, 2, 34)) +>this : CalcButton, Symbol(CalcButton, Decl(missingSelf.ts, 0, 0)) +>onClick : () => void, Symbol(onClick, Decl(missingSelf.ts, 2, 34)) public onClick() { } ->onClick : () => void +>onClick : () => void, Symbol(onClick, Decl(missingSelf.ts, 2, 34)) } class CalcButton2 ->CalcButton2 : CalcButton2 +>CalcButton2 : CalcButton2, Symbol(CalcButton2, Decl(missingSelf.ts, 4, 1)) { public b() { () => this.onClick(); } ->b : () => void +>b : () => void, Symbol(b, Decl(missingSelf.ts, 7, 1)) >() => this.onClick() : () => void >this.onClick() : void ->this.onClick : () => void ->this : CalcButton2 ->onClick : () => void +>this.onClick : () => void, Symbol(onClick, Decl(missingSelf.ts, 8, 40)) +>this : CalcButton2, Symbol(CalcButton2, Decl(missingSelf.ts, 4, 1)) +>onClick : () => void, Symbol(onClick, Decl(missingSelf.ts, 8, 40)) public onClick() { } ->onClick : () => void +>onClick : () => void, Symbol(onClick, Decl(missingSelf.ts, 8, 40)) } var c = new CalcButton(); ->c : CalcButton +>c : CalcButton, Symbol(c, Decl(missingSelf.ts, 12, 3)) >new CalcButton() : CalcButton ->CalcButton : typeof CalcButton +>CalcButton : typeof CalcButton, Symbol(CalcButton, Decl(missingSelf.ts, 0, 0)) c.a(); >c.a() : void ->c.a : () => void ->c : CalcButton ->a : () => void +>c.a : () => void, Symbol(CalcButton.a, Decl(missingSelf.ts, 1, 1)) +>c : CalcButton, Symbol(c, Decl(missingSelf.ts, 12, 3)) +>a : () => void, Symbol(CalcButton.a, Decl(missingSelf.ts, 1, 1)) var c2 = new CalcButton2(); ->c2 : CalcButton2 +>c2 : CalcButton2, Symbol(c2, Decl(missingSelf.ts, 14, 3)) >new CalcButton2() : CalcButton2 ->CalcButton2 : typeof CalcButton2 +>CalcButton2 : typeof CalcButton2, Symbol(CalcButton2, Decl(missingSelf.ts, 4, 1)) c2.b(); >c2.b() : void ->c2.b : () => void ->c2 : CalcButton2 ->b : () => void +>c2.b : () => void, Symbol(CalcButton2.b, Decl(missingSelf.ts, 7, 1)) +>c2 : CalcButton2, Symbol(c2, Decl(missingSelf.ts, 14, 3)) +>b : () => void, Symbol(CalcButton2.b, Decl(missingSelf.ts, 7, 1)) diff --git a/tests/baselines/reference/missingTypeArguments3.types b/tests/baselines/reference/missingTypeArguments3.types index ec6d9944924..76146d4119e 100644 --- a/tests/baselines/reference/missingTypeArguments3.types +++ b/tests/baselines/reference/missingTypeArguments3.types @@ -1,172 +1,172 @@ === tests/cases/compiler/missingTypeArguments3.ts === declare module linq { ->linq : unknown +>linq : any, Symbol(linq, Decl(missingTypeArguments3.ts, 0, 0)) interface Enumerable { ->Enumerable : Enumerable ->T : T +>Enumerable : Enumerable, Symbol(Enumerable, Decl(missingTypeArguments3.ts, 0, 21)) +>T : T, Symbol(T, Decl(missingTypeArguments3.ts, 2, 25)) OrderByDescending(keySelector?: string): OrderedEnumerable; ->OrderByDescending : (keySelector?: string) => OrderedEnumerable ->keySelector : string ->OrderedEnumerable : OrderedEnumerable ->T : T +>OrderByDescending : (keySelector?: string) => OrderedEnumerable, Symbol(OrderByDescending, Decl(missingTypeArguments3.ts, 2, 29)) +>keySelector : string, Symbol(keySelector, Decl(missingTypeArguments3.ts, 3, 26)) +>OrderedEnumerable : OrderedEnumerable, Symbol(OrderedEnumerable, Decl(missingTypeArguments3.ts, 7, 5)) +>T : T, Symbol(T, Decl(missingTypeArguments3.ts, 2, 25)) GroupBy(keySelector: (element: T) => TKey): Enumerable>; ->GroupBy : { (keySelector: (element: T) => TKey): Enumerable>; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TElement): Enumerable>; } ->TKey : TKey ->keySelector : (element: T) => TKey ->element : T ->T : T ->TKey : TKey ->Enumerable : Enumerable ->Grouping : Grouping ->TKey : TKey ->T : T +>GroupBy : { (keySelector: (element: T) => TKey): Enumerable>; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TElement): Enumerable>; }, Symbol(GroupBy, Decl(missingTypeArguments3.ts, 3, 70), Decl(missingTypeArguments3.ts, 4, 88)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 4, 16)) +>keySelector : (element: T) => TKey, Symbol(keySelector, Decl(missingTypeArguments3.ts, 4, 22)) +>element : T, Symbol(element, Decl(missingTypeArguments3.ts, 4, 36)) +>T : T, Symbol(T, Decl(missingTypeArguments3.ts, 2, 25)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 4, 16)) +>Enumerable : Enumerable, Symbol(Enumerable, Decl(missingTypeArguments3.ts, 0, 21)) +>Grouping : Grouping, Symbol(Grouping, Decl(missingTypeArguments3.ts, 11, 5)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 4, 16)) +>T : T, Symbol(T, Decl(missingTypeArguments3.ts, 2, 25)) GroupBy(keySelector: (element: T) => TKey, elementSelector: (element: T) => TElement): Enumerable>; ->GroupBy : { (keySelector: (element: T) => TKey): Enumerable>; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TElement): Enumerable>; } ->TKey : TKey ->TElement : TElement ->keySelector : (element: T) => TKey ->element : T ->T : T ->TKey : TKey ->elementSelector : (element: T) => TElement ->element : T ->T : T ->TElement : TElement ->Enumerable : Enumerable ->Grouping : Grouping ->TKey : TKey ->TElement : TElement +>GroupBy : { (keySelector: (element: T) => TKey): Enumerable>; (keySelector: (element: T) => TKey, elementSelector: (element: T) => TElement): Enumerable>; }, Symbol(GroupBy, Decl(missingTypeArguments3.ts, 3, 70), Decl(missingTypeArguments3.ts, 4, 88)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 5, 16)) +>TElement : TElement, Symbol(TElement, Decl(missingTypeArguments3.ts, 5, 21)) +>keySelector : (element: T) => TKey, Symbol(keySelector, Decl(missingTypeArguments3.ts, 5, 32)) +>element : T, Symbol(element, Decl(missingTypeArguments3.ts, 5, 46)) +>T : T, Symbol(T, Decl(missingTypeArguments3.ts, 2, 25)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 5, 16)) +>elementSelector : (element: T) => TElement, Symbol(elementSelector, Decl(missingTypeArguments3.ts, 5, 66)) +>element : T, Symbol(element, Decl(missingTypeArguments3.ts, 5, 85)) +>T : T, Symbol(T, Decl(missingTypeArguments3.ts, 2, 25)) +>TElement : TElement, Symbol(TElement, Decl(missingTypeArguments3.ts, 5, 21)) +>Enumerable : Enumerable, Symbol(Enumerable, Decl(missingTypeArguments3.ts, 0, 21)) +>Grouping : Grouping, Symbol(Grouping, Decl(missingTypeArguments3.ts, 11, 5)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 5, 16)) +>TElement : TElement, Symbol(TElement, Decl(missingTypeArguments3.ts, 5, 21)) ToDictionary(keySelector: (element: T) => TKey): Dictionary; ->ToDictionary : (keySelector: (element: T) => TKey) => Dictionary ->TKey : TKey ->keySelector : (element: T) => TKey ->element : T ->T : T ->TKey : TKey ->Dictionary : Dictionary ->TKey : TKey ->T : T +>ToDictionary : (keySelector: (element: T) => TKey) => Dictionary, Symbol(ToDictionary, Decl(missingTypeArguments3.ts, 5, 148)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 6, 21)) +>keySelector : (element: T) => TKey, Symbol(keySelector, Decl(missingTypeArguments3.ts, 6, 27)) +>element : T, Symbol(element, Decl(missingTypeArguments3.ts, 6, 41)) +>T : T, Symbol(T, Decl(missingTypeArguments3.ts, 2, 25)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 6, 21)) +>Dictionary : Dictionary, Symbol(Dictionary, Decl(missingTypeArguments3.ts, 22, 5)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 6, 21)) +>T : T, Symbol(T, Decl(missingTypeArguments3.ts, 2, 25)) } interface OrderedEnumerable extends Enumerable { ->OrderedEnumerable : OrderedEnumerable ->T : T ->Enumerable : Enumerable ->T : T +>OrderedEnumerable : OrderedEnumerable, Symbol(OrderedEnumerable, Decl(missingTypeArguments3.ts, 7, 5)) +>T : T, Symbol(T, Decl(missingTypeArguments3.ts, 9, 32)) +>Enumerable : Enumerable, Symbol(Enumerable, Decl(missingTypeArguments3.ts, 0, 21)) +>T : T, Symbol(T, Decl(missingTypeArguments3.ts, 9, 32)) ThenBy(keySelector: (element: T) => TCompare): OrderedEnumerable; // used to incorrectly think this was missing a type argument ->ThenBy : (keySelector: (element: T) => TCompare) => OrderedEnumerable ->TCompare : TCompare ->keySelector : (element: T) => TCompare ->element : T ->T : T ->TCompare : TCompare ->OrderedEnumerable : OrderedEnumerable ->T : T +>ThenBy : (keySelector: (element: T) => TCompare) => OrderedEnumerable, Symbol(ThenBy, Decl(missingTypeArguments3.ts, 9, 58)) +>TCompare : TCompare, Symbol(TCompare, Decl(missingTypeArguments3.ts, 10, 15)) +>keySelector : (element: T) => TCompare, Symbol(keySelector, Decl(missingTypeArguments3.ts, 10, 25)) +>element : T, Symbol(element, Decl(missingTypeArguments3.ts, 10, 39)) +>T : T, Symbol(T, Decl(missingTypeArguments3.ts, 9, 32)) +>TCompare : TCompare, Symbol(TCompare, Decl(missingTypeArguments3.ts, 10, 15)) +>OrderedEnumerable : OrderedEnumerable, Symbol(OrderedEnumerable, Decl(missingTypeArguments3.ts, 7, 5)) +>T : T, Symbol(T, Decl(missingTypeArguments3.ts, 9, 32)) } interface Grouping extends Enumerable { ->Grouping : Grouping ->TKey : TKey ->TElement : TElement ->Enumerable : Enumerable ->TElement : TElement +>Grouping : Grouping, Symbol(Grouping, Decl(missingTypeArguments3.ts, 11, 5)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 13, 23)) +>TElement : TElement, Symbol(TElement, Decl(missingTypeArguments3.ts, 13, 28)) +>Enumerable : Enumerable, Symbol(Enumerable, Decl(missingTypeArguments3.ts, 0, 21)) +>TElement : TElement, Symbol(TElement, Decl(missingTypeArguments3.ts, 13, 28)) Key(): TKey; ->Key : () => TKey ->TKey : TKey +>Key : () => TKey, Symbol(Key, Decl(missingTypeArguments3.ts, 13, 69)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 13, 23)) } interface Lookup { ->Lookup : Lookup ->TKey : TKey ->TElement : TElement +>Lookup : Lookup, Symbol(Lookup, Decl(missingTypeArguments3.ts, 15, 5)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 17, 21)) +>TElement : TElement, Symbol(TElement, Decl(missingTypeArguments3.ts, 17, 26)) Count(): number; ->Count : () => number +>Count : () => number, Symbol(Count, Decl(missingTypeArguments3.ts, 17, 38)) Get(key): Enumerable; ->Get : (key: any) => Enumerable ->key : any ->Enumerable : Enumerable +>Get : (key: any) => Enumerable, Symbol(Get, Decl(missingTypeArguments3.ts, 18, 24)) +>key : any, Symbol(key, Decl(missingTypeArguments3.ts, 19, 12)) +>Enumerable : Enumerable, Symbol(Enumerable, Decl(missingTypeArguments3.ts, 0, 21)) Contains(key): boolean; ->Contains : (key: any) => boolean ->key : any +>Contains : (key: any) => boolean, Symbol(Contains, Decl(missingTypeArguments3.ts, 19, 34)) +>key : any, Symbol(key, Decl(missingTypeArguments3.ts, 20, 17)) ToEnumerable(): Enumerable>; ->ToEnumerable : () => Enumerable> ->Enumerable : Enumerable ->Grouping : Grouping ->TKey : TKey +>ToEnumerable : () => Enumerable>, Symbol(ToEnumerable, Decl(missingTypeArguments3.ts, 20, 31)) +>Enumerable : Enumerable, Symbol(Enumerable, Decl(missingTypeArguments3.ts, 0, 21)) +>Grouping : Grouping, Symbol(Grouping, Decl(missingTypeArguments3.ts, 11, 5)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 17, 21)) } interface Dictionary { ->Dictionary : Dictionary ->TKey : TKey ->TValue : TValue +>Dictionary : Dictionary, Symbol(Dictionary, Decl(missingTypeArguments3.ts, 22, 5)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 24, 25)) +>TValue : TValue, Symbol(TValue, Decl(missingTypeArguments3.ts, 24, 30)) Add(key: TKey, value: TValue): void; ->Add : (key: TKey, value: TValue) => void ->key : TKey ->TKey : TKey ->value : TValue ->TValue : TValue +>Add : (key: TKey, value: TValue) => void, Symbol(Add, Decl(missingTypeArguments3.ts, 24, 40)) +>key : TKey, Symbol(key, Decl(missingTypeArguments3.ts, 25, 12)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 24, 25)) +>value : TValue, Symbol(value, Decl(missingTypeArguments3.ts, 25, 22)) +>TValue : TValue, Symbol(TValue, Decl(missingTypeArguments3.ts, 24, 30)) Get(ke: TKey): TValue; ->Get : (ke: TKey) => TValue ->ke : TKey ->TKey : TKey ->TValue : TValue +>Get : (ke: TKey) => TValue, Symbol(Get, Decl(missingTypeArguments3.ts, 25, 44)) +>ke : TKey, Symbol(ke, Decl(missingTypeArguments3.ts, 26, 12)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 24, 25)) +>TValue : TValue, Symbol(TValue, Decl(missingTypeArguments3.ts, 24, 30)) Set(key: TKey, value: TValue): boolean; ->Set : (key: TKey, value: TValue) => boolean ->key : TKey ->TKey : TKey ->value : TValue ->TValue : TValue +>Set : (key: TKey, value: TValue) => boolean, Symbol(Set, Decl(missingTypeArguments3.ts, 26, 30)) +>key : TKey, Symbol(key, Decl(missingTypeArguments3.ts, 27, 12)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 24, 25)) +>value : TValue, Symbol(value, Decl(missingTypeArguments3.ts, 27, 22)) +>TValue : TValue, Symbol(TValue, Decl(missingTypeArguments3.ts, 24, 30)) Contains(key: TKey): boolean; ->Contains : (key: TKey) => boolean ->key : TKey ->TKey : TKey +>Contains : (key: TKey) => boolean, Symbol(Contains, Decl(missingTypeArguments3.ts, 27, 47)) +>key : TKey, Symbol(key, Decl(missingTypeArguments3.ts, 28, 17)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 24, 25)) Clear(): void; ->Clear : () => void +>Clear : () => void, Symbol(Clear, Decl(missingTypeArguments3.ts, 28, 37)) Remove(key: TKey): void; ->Remove : (key: TKey) => void ->key : TKey ->TKey : TKey +>Remove : (key: TKey) => void, Symbol(Remove, Decl(missingTypeArguments3.ts, 29, 22)) +>key : TKey, Symbol(key, Decl(missingTypeArguments3.ts, 30, 15)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 24, 25)) Count(): number; ->Count : () => number +>Count : () => number, Symbol(Count, Decl(missingTypeArguments3.ts, 30, 32)) ToEnumerable(): Enumerable>; ->ToEnumerable : () => Enumerable> ->Enumerable : Enumerable ->KeyValuePair : KeyValuePair ->TKey : TKey ->TValue : TValue +>ToEnumerable : () => Enumerable>, Symbol(ToEnumerable, Decl(missingTypeArguments3.ts, 31, 24)) +>Enumerable : Enumerable, Symbol(Enumerable, Decl(missingTypeArguments3.ts, 0, 21)) +>KeyValuePair : KeyValuePair, Symbol(KeyValuePair, Decl(missingTypeArguments3.ts, 33, 5)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 24, 25)) +>TValue : TValue, Symbol(TValue, Decl(missingTypeArguments3.ts, 24, 30)) } interface KeyValuePair { ->KeyValuePair : KeyValuePair ->TKey : TKey ->TValue : TValue +>KeyValuePair : KeyValuePair, Symbol(KeyValuePair, Decl(missingTypeArguments3.ts, 33, 5)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 35, 27)) +>TValue : TValue, Symbol(TValue, Decl(missingTypeArguments3.ts, 35, 32)) Key: TKey; ->Key : TKey ->TKey : TKey +>Key : TKey, Symbol(Key, Decl(missingTypeArguments3.ts, 35, 42)) +>TKey : TKey, Symbol(TKey, Decl(missingTypeArguments3.ts, 35, 27)) Value: TValue; ->Value : TValue ->TValue : TValue +>Value : TValue, Symbol(Value, Decl(missingTypeArguments3.ts, 36, 18)) +>TValue : TValue, Symbol(TValue, Decl(missingTypeArguments3.ts, 35, 32)) } } diff --git a/tests/baselines/reference/mixedExports.types b/tests/baselines/reference/mixedExports.types index f7ff0a13c34..d467d4666a2 100644 --- a/tests/baselines/reference/mixedExports.types +++ b/tests/baselines/reference/mixedExports.types @@ -1,38 +1,38 @@ === tests/cases/compiler/mixedExports.ts === declare module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(mixedExports.ts, 0, 0)) function foo(); ->foo : { (): any; (): any; (): any; } +>foo : { (): any; (): any; (): any; }, Symbol(foo, Decl(mixedExports.ts, 0, 18), Decl(mixedExports.ts, 1, 20), Decl(mixedExports.ts, 2, 27)) export function foo(); ->foo : { (): any; (): any; (): any; } +>foo : { (): any; (): any; (): any; }, Symbol(foo, Decl(mixedExports.ts, 0, 18), Decl(mixedExports.ts, 1, 20), Decl(mixedExports.ts, 2, 27)) function foo(); ->foo : { (): any; (): any; (): any; } +>foo : { (): any; (): any; (): any; }, Symbol(foo, Decl(mixedExports.ts, 0, 18), Decl(mixedExports.ts, 1, 20), Decl(mixedExports.ts, 2, 27)) } declare module M1 { ->M1 : unknown +>M1 : any, Symbol(M1, Decl(mixedExports.ts, 4, 1)) export interface Foo {} ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(mixedExports.ts, 6, 19), Decl(mixedExports.ts, 7, 28)) interface Foo {} ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(mixedExports.ts, 6, 19), Decl(mixedExports.ts, 7, 28)) } module A { ->A : unknown +>A : any, Symbol(A, Decl(mixedExports.ts, 9, 1)) interface X {x} ->X : X ->x : any +>X : X, Symbol(X, Decl(mixedExports.ts, 11, 10), Decl(mixedExports.ts, 12, 20), Decl(mixedExports.ts, 13, 23)) +>x : any, Symbol(x, Decl(mixedExports.ts, 12, 18)) export module X {} ->X : unknown +>X : any, Symbol(X, Decl(mixedExports.ts, 12, 20)) interface X {y} ->X : X ->y : any +>X : X, Symbol(X, Decl(mixedExports.ts, 11, 10), Decl(mixedExports.ts, 12, 20), Decl(mixedExports.ts, 13, 23)) +>y : any, Symbol(y, Decl(mixedExports.ts, 14, 18)) } diff --git a/tests/baselines/reference/mixingFunctionAndAmbientModule1.types b/tests/baselines/reference/mixingFunctionAndAmbientModule1.types index c9e2e1167a9..46cde145dfb 100644 --- a/tests/baselines/reference/mixingFunctionAndAmbientModule1.types +++ b/tests/baselines/reference/mixingFunctionAndAmbientModule1.types @@ -1,90 +1,90 @@ === tests/cases/compiler/mixingFunctionAndAmbientModule1.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(mixingFunctionAndAmbientModule1.ts, 0, 0)) declare module My { ->My : typeof My +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 0, 10), Decl(mixingFunctionAndAmbientModule1.ts, 3, 5)) export var x: number; ->x : number +>x : number, Symbol(x, Decl(mixingFunctionAndAmbientModule1.ts, 2, 18)) } function My(s: string) { } ->My : typeof My ->s : string +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 0, 10), Decl(mixingFunctionAndAmbientModule1.ts, 3, 5)) +>s : string, Symbol(s, Decl(mixingFunctionAndAmbientModule1.ts, 4, 16)) } module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(mixingFunctionAndAmbientModule1.ts, 5, 1)) declare module My { ->My : typeof My +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 7, 10), Decl(mixingFunctionAndAmbientModule1.ts, 10, 5), Decl(mixingFunctionAndAmbientModule1.ts, 11, 28)) export var x: number; ->x : number +>x : number, Symbol(x, Decl(mixingFunctionAndAmbientModule1.ts, 9, 18)) } function My(s: boolean); ->My : typeof My ->s : boolean +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 7, 10), Decl(mixingFunctionAndAmbientModule1.ts, 10, 5), Decl(mixingFunctionAndAmbientModule1.ts, 11, 28)) +>s : boolean, Symbol(s, Decl(mixingFunctionAndAmbientModule1.ts, 11, 16)) function My(s: any) { } ->My : typeof My ->s : any +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 7, 10), Decl(mixingFunctionAndAmbientModule1.ts, 10, 5), Decl(mixingFunctionAndAmbientModule1.ts, 11, 28)) +>s : any, Symbol(s, Decl(mixingFunctionAndAmbientModule1.ts, 12, 16)) } module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(mixingFunctionAndAmbientModule1.ts, 13, 1)) declare module My { ->My : typeof My +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 15, 10), Decl(mixingFunctionAndAmbientModule1.ts, 18, 5)) export var x: number; ->x : number +>x : number, Symbol(x, Decl(mixingFunctionAndAmbientModule1.ts, 17, 18)) } declare function My(s: boolean); ->My : typeof My ->s : boolean +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 15, 10), Decl(mixingFunctionAndAmbientModule1.ts, 18, 5)) +>s : boolean, Symbol(s, Decl(mixingFunctionAndAmbientModule1.ts, 19, 24)) } module D { ->D : typeof D +>D : typeof D, Symbol(D, Decl(mixingFunctionAndAmbientModule1.ts, 20, 1)) declare module My { ->My : typeof My +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 22, 10), Decl(mixingFunctionAndAmbientModule1.ts, 25, 5), Decl(mixingFunctionAndAmbientModule1.ts, 26, 36)) export var x: number; ->x : number +>x : number, Symbol(x, Decl(mixingFunctionAndAmbientModule1.ts, 24, 18)) } declare function My(s: boolean); ->My : typeof My ->s : boolean +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 22, 10), Decl(mixingFunctionAndAmbientModule1.ts, 25, 5), Decl(mixingFunctionAndAmbientModule1.ts, 26, 36)) +>s : boolean, Symbol(s, Decl(mixingFunctionAndAmbientModule1.ts, 26, 24)) declare function My(s: any); ->My : typeof My ->s : any +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 22, 10), Decl(mixingFunctionAndAmbientModule1.ts, 25, 5), Decl(mixingFunctionAndAmbientModule1.ts, 26, 36)) +>s : any, Symbol(s, Decl(mixingFunctionAndAmbientModule1.ts, 27, 24)) } module E { ->E : typeof E +>E : typeof E, Symbol(E, Decl(mixingFunctionAndAmbientModule1.ts, 28, 1)) declare module My { ->My : typeof My +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 31, 10), Decl(mixingFunctionAndAmbientModule1.ts, 34, 5), Decl(mixingFunctionAndAmbientModule1.ts, 35, 36), Decl(mixingFunctionAndAmbientModule1.ts, 38, 5)) export var x: number; ->x : number +>x : number, Symbol(x, Decl(mixingFunctionAndAmbientModule1.ts, 33, 18)) } declare function My(s: boolean); ->My : typeof My ->s : boolean +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 31, 10), Decl(mixingFunctionAndAmbientModule1.ts, 34, 5), Decl(mixingFunctionAndAmbientModule1.ts, 35, 36), Decl(mixingFunctionAndAmbientModule1.ts, 38, 5)) +>s : boolean, Symbol(s, Decl(mixingFunctionAndAmbientModule1.ts, 35, 24)) declare module My { ->My : typeof My +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 31, 10), Decl(mixingFunctionAndAmbientModule1.ts, 34, 5), Decl(mixingFunctionAndAmbientModule1.ts, 35, 36), Decl(mixingFunctionAndAmbientModule1.ts, 38, 5)) export var y: number; ->y : number +>y : number, Symbol(y, Decl(mixingFunctionAndAmbientModule1.ts, 37, 18)) } declare function My(s: any); ->My : typeof My ->s : any +>My : typeof My, Symbol(My, Decl(mixingFunctionAndAmbientModule1.ts, 31, 10), Decl(mixingFunctionAndAmbientModule1.ts, 34, 5), Decl(mixingFunctionAndAmbientModule1.ts, 35, 36), Decl(mixingFunctionAndAmbientModule1.ts, 38, 5)) +>s : any, Symbol(s, Decl(mixingFunctionAndAmbientModule1.ts, 39, 24)) } diff --git a/tests/baselines/reference/modFunctionCrash.types b/tests/baselines/reference/modFunctionCrash.types index 596dac999a1..47db71ec228 100644 --- a/tests/baselines/reference/modFunctionCrash.types +++ b/tests/baselines/reference/modFunctionCrash.types @@ -1,18 +1,18 @@ === tests/cases/compiler/modFunctionCrash.ts === declare module Q { ->Q : typeof Q +>Q : typeof Q, Symbol(Q, Decl(modFunctionCrash.ts, 0, 0)) function f(fn:()=>void); // typechecking the function type shouldnot crash the compiler ->f : (fn: () => void) => any ->fn : () => void +>f : (fn: () => void) => any, Symbol(f, Decl(modFunctionCrash.ts, 0, 18)) +>fn : () => void, Symbol(fn, Decl(modFunctionCrash.ts, 1, 15)) } Q.f(function() {this;}); >Q.f(function() {this;}) : any ->Q.f : (fn: () => void) => any ->Q : typeof Q ->f : (fn: () => void) => any +>Q.f : (fn: () => void) => any, Symbol(Q.f, Decl(modFunctionCrash.ts, 0, 18)) +>Q : typeof Q, Symbol(Q, Decl(modFunctionCrash.ts, 0, 0)) +>f : (fn: () => void) => any, Symbol(Q.f, Decl(modFunctionCrash.ts, 0, 18)) >function() {this;} : () => void >this : any diff --git a/tests/baselines/reference/modKeyword.types b/tests/baselines/reference/modKeyword.types index 6c11fed31fc..e70c288786b 100644 --- a/tests/baselines/reference/modKeyword.types +++ b/tests/baselines/reference/modKeyword.types @@ -1,15 +1,15 @@ === tests/cases/compiler/modKeyword.ts === var module:any; ->module : any +>module : any, Symbol(module, Decl(modKeyword.ts, 0, 3)) var foo:any; ->foo : any +>foo : any, Symbol(foo, Decl(modKeyword.ts, 1, 3)) var _ = module.exports = foo ->_ : any +>_ : any, Symbol(_, Decl(modKeyword.ts, 3, 3)) >module.exports = foo : any >module.exports : any ->module : any +>module : any, Symbol(module, Decl(modKeyword.ts, 0, 3)) >exports : any ->foo : any +>foo : any, Symbol(foo, Decl(modKeyword.ts, 1, 3)) diff --git a/tests/baselines/reference/moduleAliasAsFunctionArgument.types b/tests/baselines/reference/moduleAliasAsFunctionArgument.types index dc621aa5dbf..877b39555b7 100644 --- a/tests/baselines/reference/moduleAliasAsFunctionArgument.types +++ b/tests/baselines/reference/moduleAliasAsFunctionArgument.types @@ -1,25 +1,25 @@ === tests/cases/compiler/moduleAliasAsFunctionArgument_1.ts === /// import a = require('moduleAliasAsFunctionArgument_0'); ->a : typeof a +>a : typeof a, Symbol(a, Decl(moduleAliasAsFunctionArgument_1.ts, 0, 0)) function fn(arg: { x: number }) { ->fn : (arg: { x: number; }) => void ->arg : { x: number; } ->x : number +>fn : (arg: { x: number; }) => void, Symbol(fn, Decl(moduleAliasAsFunctionArgument_1.ts, 1, 54)) +>arg : { x: number; }, Symbol(arg, Decl(moduleAliasAsFunctionArgument_1.ts, 3, 12)) +>x : number, Symbol(x, Decl(moduleAliasAsFunctionArgument_1.ts, 3, 18)) } a.x; // OK ->a.x : number ->a : typeof a ->x : number +>a.x : number, Symbol(a.x, Decl(moduleAliasAsFunctionArgument_0.ts, 0, 10)) +>a : typeof a, Symbol(a, Decl(moduleAliasAsFunctionArgument_1.ts, 0, 0)) +>x : number, Symbol(a.x, Decl(moduleAliasAsFunctionArgument_0.ts, 0, 10)) fn(a); // Error: property 'x' is missing from 'a' >fn(a) : void ->fn : (arg: { x: number; }) => void ->a : typeof a +>fn : (arg: { x: number; }) => void, Symbol(fn, Decl(moduleAliasAsFunctionArgument_1.ts, 1, 54)) +>a : typeof a, Symbol(a, Decl(moduleAliasAsFunctionArgument_1.ts, 0, 0)) === tests/cases/compiler/moduleAliasAsFunctionArgument_0.ts === export var x: number; ->x : number +>x : number, Symbol(x, Decl(moduleAliasAsFunctionArgument_0.ts, 0, 10)) diff --git a/tests/baselines/reference/moduleAliasInterface.types b/tests/baselines/reference/moduleAliasInterface.types index 6d3b11197cb..de49f85873f 100644 --- a/tests/baselines/reference/moduleAliasInterface.types +++ b/tests/baselines/reference/moduleAliasInterface.types @@ -1,14 +1,14 @@ === tests/cases/compiler/moduleAliasInterface.ts === module _modes { ->_modes : typeof _modes +>_modes : typeof _modes, Symbol(_modes, Decl(moduleAliasInterface.ts, 0, 0)) export interface IMode { ->IMode : IMode +>IMode : IMode, Symbol(IMode, Decl(moduleAliasInterface.ts, 0, 15)) } export class Mode { ->Mode : Mode +>Mode : Mode, Symbol(Mode, Decl(moduleAliasInterface.ts, 3, 2)) } } @@ -16,106 +16,106 @@ module _modes { // _modes. // produces an internal error - please implement in derived class module editor { ->editor : typeof editor +>editor : typeof editor, Symbol(editor, Decl(moduleAliasInterface.ts, 8, 1)) import modes = _modes; ->modes : typeof modes ->_modes : typeof modes +>modes : typeof modes, Symbol(modes, Decl(moduleAliasInterface.ts, 12, 15)) +>_modes : typeof modes, Symbol(modes, Decl(moduleAliasInterface.ts, 0, 0)) var i : modes.IMode; ->i : modes.IMode ->modes : unknown ->IMode : modes.IMode +>i : modes.IMode, Symbol(i, Decl(moduleAliasInterface.ts, 15, 4)) +>modes : any, Symbol(modes, Decl(moduleAliasInterface.ts, 12, 15)) +>IMode : modes.IMode, Symbol(modes.IMode, Decl(moduleAliasInterface.ts, 0, 15)) // If you just use p1:modes, the compiler accepts it - should be an error class Bug { ->Bug : Bug +>Bug : Bug, Symbol(Bug, Decl(moduleAliasInterface.ts, 15, 21)) constructor(p1: modes.IMode, p2: modes.Mode) { }// should be an error on p2 - it's not exported ->p1 : modes.IMode ->modes : unknown ->IMode : modes.IMode ->p2 : modes.Mode ->modes : unknown ->Mode : modes.Mode +>p1 : modes.IMode, Symbol(p1, Decl(moduleAliasInterface.ts, 19, 14)) +>modes : any, Symbol(modes, Decl(moduleAliasInterface.ts, 12, 15)) +>IMode : modes.IMode, Symbol(modes.IMode, Decl(moduleAliasInterface.ts, 0, 15)) +>p2 : modes.Mode, Symbol(p2, Decl(moduleAliasInterface.ts, 19, 30)) +>modes : any, Symbol(modes, Decl(moduleAliasInterface.ts, 12, 15)) +>Mode : modes.Mode, Symbol(modes.Mode, Decl(moduleAliasInterface.ts, 3, 2)) public foo(p1:modes.IMode) { ->foo : (p1: modes.IMode) => void ->p1 : modes.IMode ->modes : unknown ->IMode : modes.IMode +>foo : (p1: modes.IMode) => void, Symbol(foo, Decl(moduleAliasInterface.ts, 19, 50)) +>p1 : modes.IMode, Symbol(p1, Decl(moduleAliasInterface.ts, 20, 13)) +>modes : any, Symbol(modes, Decl(moduleAliasInterface.ts, 12, 15)) +>IMode : modes.IMode, Symbol(modes.IMode, Decl(moduleAliasInterface.ts, 0, 15)) } } } import modesOuter = _modes; ->modesOuter : typeof _modes ->_modes : typeof _modes +>modesOuter : typeof _modes, Symbol(modesOuter, Decl(moduleAliasInterface.ts, 24, 1)) +>_modes : typeof _modes, Symbol(_modes, Decl(moduleAliasInterface.ts, 0, 0)) module editor2 { ->editor2 : typeof editor2 +>editor2 : typeof editor2, Symbol(editor2, Decl(moduleAliasInterface.ts, 26, 27)) var i : modesOuter.IMode; ->i : modesOuter.IMode ->modesOuter : unknown ->IMode : modesOuter.IMode +>i : modesOuter.IMode, Symbol(i, Decl(moduleAliasInterface.ts, 29, 4)) +>modesOuter : any, Symbol(modesOuter, Decl(moduleAliasInterface.ts, 24, 1)) +>IMode : modesOuter.IMode, Symbol(modesOuter.IMode, Decl(moduleAliasInterface.ts, 0, 15)) class Bug { ->Bug : Bug +>Bug : Bug, Symbol(Bug, Decl(moduleAliasInterface.ts, 29, 26)) constructor(p1: modesOuter.IMode, p2: modesOuter.Mode) { }// no error here, since modesOuter is declared externally ->p1 : modesOuter.IMode ->modesOuter : unknown ->IMode : modesOuter.IMode ->p2 : modesOuter.Mode ->modesOuter : unknown ->Mode : modesOuter.Mode +>p1 : modesOuter.IMode, Symbol(p1, Decl(moduleAliasInterface.ts, 32, 17)) +>modesOuter : any, Symbol(modesOuter, Decl(moduleAliasInterface.ts, 24, 1)) +>IMode : modesOuter.IMode, Symbol(modesOuter.IMode, Decl(moduleAliasInterface.ts, 0, 15)) +>p2 : modesOuter.Mode, Symbol(p2, Decl(moduleAliasInterface.ts, 32, 38)) +>modesOuter : any, Symbol(modesOuter, Decl(moduleAliasInterface.ts, 24, 1)) +>Mode : modesOuter.Mode, Symbol(modesOuter.Mode, Decl(moduleAliasInterface.ts, 3, 2)) } module Foo { export class Bar{} } ->Foo : typeof Foo ->Bar : Bar +>Foo : typeof Foo, Symbol(Foo, Decl(moduleAliasInterface.ts, 34, 2)) +>Bar : Bar, Symbol(Bar, Decl(moduleAliasInterface.ts, 36, 14)) class Bug2 { ->Bug2 : Bug2 +>Bug2 : Bug2, Symbol(Bug2, Decl(moduleAliasInterface.ts, 36, 35)) constructor(p1: Foo.Bar, p2: modesOuter.Mode) { } ->p1 : Foo.Bar ->Foo : unknown ->Bar : Foo.Bar ->p2 : modesOuter.Mode ->modesOuter : unknown ->Mode : modesOuter.Mode +>p1 : Foo.Bar, Symbol(p1, Decl(moduleAliasInterface.ts, 39, 18)) +>Foo : any, Symbol(Foo, Decl(moduleAliasInterface.ts, 34, 2)) +>Bar : Foo.Bar, Symbol(Foo.Bar, Decl(moduleAliasInterface.ts, 36, 14)) +>p2 : modesOuter.Mode, Symbol(p2, Decl(moduleAliasInterface.ts, 39, 30)) +>modesOuter : any, Symbol(modesOuter, Decl(moduleAliasInterface.ts, 24, 1)) +>Mode : modesOuter.Mode, Symbol(modesOuter.Mode, Decl(moduleAliasInterface.ts, 3, 2)) } } module A1 { ->A1 : typeof A1 +>A1 : typeof A1, Symbol(A1, Decl(moduleAliasInterface.ts, 41, 1)) export interface A1I1 {} ->A1I1 : A1I1 +>A1I1 : A1I1, Symbol(A1I1, Decl(moduleAliasInterface.ts, 43, 11)) export class A1C1 {} ->A1C1 : A1C1 +>A1C1 : A1C1, Symbol(A1C1, Decl(moduleAliasInterface.ts, 44, 28)) } module B1 { ->B1 : typeof B1 +>B1 : typeof B1, Symbol(B1, Decl(moduleAliasInterface.ts, 46, 1)) import A1Alias1 = A1; ->A1Alias1 : typeof A1Alias1 ->A1 : typeof A1Alias1 +>A1Alias1 : typeof A1Alias1, Symbol(A1Alias1, Decl(moduleAliasInterface.ts, 48, 11)) +>A1 : typeof A1Alias1, Symbol(A1Alias1, Decl(moduleAliasInterface.ts, 41, 1)) var i : A1Alias1.A1I1; ->i : A1Alias1.A1I1 ->A1Alias1 : unknown ->A1I1 : A1Alias1.A1I1 +>i : A1Alias1.A1I1, Symbol(i, Decl(moduleAliasInterface.ts, 51, 7)) +>A1Alias1 : any, Symbol(A1Alias1, Decl(moduleAliasInterface.ts, 48, 11)) +>A1I1 : A1Alias1.A1I1, Symbol(A1Alias1.A1I1, Decl(moduleAliasInterface.ts, 43, 11)) var c : A1Alias1.A1C1; ->c : A1Alias1.A1C1 ->A1Alias1 : unknown ->A1C1 : A1Alias1.A1C1 +>c : A1Alias1.A1C1, Symbol(c, Decl(moduleAliasInterface.ts, 52, 7)) +>A1Alias1 : any, Symbol(A1Alias1, Decl(moduleAliasInterface.ts, 48, 11)) +>A1C1 : A1Alias1.A1C1, Symbol(A1Alias1.A1C1, Decl(moduleAliasInterface.ts, 44, 28)) } diff --git a/tests/baselines/reference/moduleAndInterfaceSharingName.types b/tests/baselines/reference/moduleAndInterfaceSharingName.types index 6a4f8998fe6..0a456329e5c 100644 --- a/tests/baselines/reference/moduleAndInterfaceSharingName.types +++ b/tests/baselines/reference/moduleAndInterfaceSharingName.types @@ -1,24 +1,25 @@ === tests/cases/compiler/moduleAndInterfaceSharingName.ts === module X { ->X : unknown +>X : any, Symbol(X, Decl(moduleAndInterfaceSharingName.ts, 0, 0)) export module Y { ->Y : unknown +>Y : any, Symbol(Y, Decl(moduleAndInterfaceSharingName.ts, 0, 10), Decl(moduleAndInterfaceSharingName.ts, 3, 5)) export interface Z { } ->Z : Z +>Z : Z, Symbol(Z, Decl(moduleAndInterfaceSharingName.ts, 1, 21)) } export interface Y { } ->Y : Y +>Y : Y, Symbol(Y, Decl(moduleAndInterfaceSharingName.ts, 0, 10), Decl(moduleAndInterfaceSharingName.ts, 3, 5)) } var z: X.Y.Z = null; ->z : X.Y.Z ->X : unknown ->Y : unknown ->Z : X.Y.Z +>z : X.Y.Z, Symbol(z, Decl(moduleAndInterfaceSharingName.ts, 6, 3)) +>X : any, Symbol(X, Decl(moduleAndInterfaceSharingName.ts, 0, 0)) +>Y : any, Symbol(X.Y, Decl(moduleAndInterfaceSharingName.ts, 0, 10), Decl(moduleAndInterfaceSharingName.ts, 3, 5)) +>Z : X.Y.Z, Symbol(X.Y.Z, Decl(moduleAndInterfaceSharingName.ts, 1, 21)) +>null : null var z2: X.Y; ->z2 : X.Y ->X : unknown ->Y : X.Y +>z2 : X.Y, Symbol(z2, Decl(moduleAndInterfaceSharingName.ts, 7, 3)) +>X : any, Symbol(X, Decl(moduleAndInterfaceSharingName.ts, 0, 0)) +>Y : X.Y, Symbol(X.Y, Decl(moduleAndInterfaceSharingName.ts, 0, 10), Decl(moduleAndInterfaceSharingName.ts, 3, 5)) diff --git a/tests/baselines/reference/moduleAndInterfaceSharingName3.types b/tests/baselines/reference/moduleAndInterfaceSharingName3.types index 1b9aabea630..7e2ee5a2774 100644 --- a/tests/baselines/reference/moduleAndInterfaceSharingName3.types +++ b/tests/baselines/reference/moduleAndInterfaceSharingName3.types @@ -1,25 +1,26 @@ === tests/cases/compiler/moduleAndInterfaceSharingName3.ts === module X { ->X : unknown +>X : any, Symbol(X, Decl(moduleAndInterfaceSharingName3.ts, 0, 0)) export module Y { ->Y : unknown +>Y : any, Symbol(Y, Decl(moduleAndInterfaceSharingName3.ts, 0, 10), Decl(moduleAndInterfaceSharingName3.ts, 3, 5)) export interface Z { } ->Z : Z +>Z : Z, Symbol(Z, Decl(moduleAndInterfaceSharingName3.ts, 1, 21)) } export interface Y { } ->Y : Y ->T : T +>Y : Y, Symbol(Y, Decl(moduleAndInterfaceSharingName3.ts, 0, 10), Decl(moduleAndInterfaceSharingName3.ts, 3, 5)) +>T : T, Symbol(T, Decl(moduleAndInterfaceSharingName3.ts, 4, 23)) } var z: X.Y.Z = null; ->z : X.Y.Z ->X : unknown ->Y : unknown ->Z : X.Y.Z +>z : X.Y.Z, Symbol(z, Decl(moduleAndInterfaceSharingName3.ts, 6, 3)) +>X : any, Symbol(X, Decl(moduleAndInterfaceSharingName3.ts, 0, 0)) +>Y : any, Symbol(X.Y, Decl(moduleAndInterfaceSharingName3.ts, 0, 10), Decl(moduleAndInterfaceSharingName3.ts, 3, 5)) +>Z : X.Y.Z, Symbol(X.Y.Z, Decl(moduleAndInterfaceSharingName3.ts, 1, 21)) +>null : null var z2: X.Y; ->z2 : X.Y ->X : unknown ->Y : X.Y +>z2 : X.Y, Symbol(z2, Decl(moduleAndInterfaceSharingName3.ts, 7, 3)) +>X : any, Symbol(X, Decl(moduleAndInterfaceSharingName3.ts, 0, 0)) +>Y : X.Y, Symbol(X.Y, Decl(moduleAndInterfaceSharingName3.ts, 0, 10), Decl(moduleAndInterfaceSharingName3.ts, 3, 5)) diff --git a/tests/baselines/reference/moduleAndInterfaceSharingName4.types b/tests/baselines/reference/moduleAndInterfaceSharingName4.types index 8ad5a15a4ff..cbb2a51c671 100644 --- a/tests/baselines/reference/moduleAndInterfaceSharingName4.types +++ b/tests/baselines/reference/moduleAndInterfaceSharingName4.types @@ -1,22 +1,22 @@ === tests/cases/compiler/moduleAndInterfaceSharingName4.ts === declare module D3 { ->D3 : typeof D3 +>D3 : typeof D3, Symbol(D3, Decl(moduleAndInterfaceSharingName4.ts, 0, 0)) var x: D3.Color.Color; ->x : Color.Color ->D3 : unknown ->Color : unknown ->Color : Color.Color +>x : Color.Color, Symbol(x, Decl(moduleAndInterfaceSharingName4.ts, 1, 7)) +>D3 : any, Symbol(D3, Decl(moduleAndInterfaceSharingName4.ts, 0, 0)) +>Color : any, Symbol(Color, Decl(moduleAndInterfaceSharingName4.ts, 1, 26)) +>Color : Color.Color, Symbol(Color.Color, Decl(moduleAndInterfaceSharingName4.ts, 3, 18)) module Color { ->Color : unknown +>Color : any, Symbol(Color, Decl(moduleAndInterfaceSharingName4.ts, 1, 26)) export interface Color { ->Color : Color +>Color : Color, Symbol(Color, Decl(moduleAndInterfaceSharingName4.ts, 3, 18)) darker: Color; ->darker : Color ->Color : Color +>darker : Color, Symbol(darker, Decl(moduleAndInterfaceSharingName4.ts, 4, 32)) +>Color : Color, Symbol(Color, Decl(moduleAndInterfaceSharingName4.ts, 3, 18)) } } } diff --git a/tests/baselines/reference/moduleCodeGenTest3.types b/tests/baselines/reference/moduleCodeGenTest3.types index d5e10130c0d..87c0748e4dc 100644 --- a/tests/baselines/reference/moduleCodeGenTest3.types +++ b/tests/baselines/reference/moduleCodeGenTest3.types @@ -1,11 +1,13 @@ === tests/cases/compiler/moduleCodeGenTest3.ts === module Baz { export var x = "hello"; } ->Baz : typeof Baz ->x : string +>Baz : typeof Baz, Symbol(Baz, Decl(moduleCodeGenTest3.ts, 0, 0)) +>x : string, Symbol(x, Decl(moduleCodeGenTest3.ts, 0, 23)) +>"hello" : string Baz.x = "goodbye"; >Baz.x = "goodbye" : string ->Baz.x : string ->Baz : typeof Baz ->x : string +>Baz.x : string, Symbol(Baz.x, Decl(moduleCodeGenTest3.ts, 0, 23)) +>Baz : typeof Baz, Symbol(Baz, Decl(moduleCodeGenTest3.ts, 0, 0)) +>x : string, Symbol(Baz.x, Decl(moduleCodeGenTest3.ts, 0, 23)) +>"goodbye" : string diff --git a/tests/baselines/reference/moduleCodeGenTest5.types b/tests/baselines/reference/moduleCodeGenTest5.types index 40161509aff..687bd0a3619 100644 --- a/tests/baselines/reference/moduleCodeGenTest5.types +++ b/tests/baselines/reference/moduleCodeGenTest5.types @@ -1,53 +1,59 @@ === tests/cases/compiler/moduleCodeGenTest5.ts === export var x = 0; ->x : number +>x : number, Symbol(x, Decl(moduleCodeGenTest5.ts, 0, 10)) +>0 : number var y = 0; ->y : number +>y : number, Symbol(y, Decl(moduleCodeGenTest5.ts, 1, 3)) +>0 : number export function f1() {} ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(moduleCodeGenTest5.ts, 1, 10)) function f2() {} ->f2 : () => void +>f2 : () => void, Symbol(f2, Decl(moduleCodeGenTest5.ts, 3, 23)) export class C1 { ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(moduleCodeGenTest5.ts, 4, 16)) public p1 = 0; ->p1 : number +>p1 : number, Symbol(p1, Decl(moduleCodeGenTest5.ts, 6, 17)) +>0 : number public p2() {} ->p2 : () => void +>p2 : () => void, Symbol(p2, Decl(moduleCodeGenTest5.ts, 7, 15)) } class C2{ ->C2 : C2 +>C2 : C2, Symbol(C2, Decl(moduleCodeGenTest5.ts, 9, 1)) public p1 = 0; ->p1 : number +>p1 : number, Symbol(p1, Decl(moduleCodeGenTest5.ts, 10, 9)) +>0 : number public p2() {} ->p2 : () => void +>p2 : () => void, Symbol(p2, Decl(moduleCodeGenTest5.ts, 11, 15)) } export enum E1 {A=0} ->E1 : E1 ->A : E1 +>E1 : E1, Symbol(E1, Decl(moduleCodeGenTest5.ts, 13, 1)) +>A : E1, Symbol(E1.A, Decl(moduleCodeGenTest5.ts, 15, 16)) +>0 : number var u = E1.A; ->u : E1 ->E1.A : E1 ->E1 : typeof E1 ->A : E1 +>u : E1, Symbol(u, Decl(moduleCodeGenTest5.ts, 16, 3)) +>E1.A : E1, Symbol(E1.A, Decl(moduleCodeGenTest5.ts, 15, 16)) +>E1 : typeof E1, Symbol(E1, Decl(moduleCodeGenTest5.ts, 13, 1)) +>A : E1, Symbol(E1.A, Decl(moduleCodeGenTest5.ts, 15, 16)) enum E2 {B=0} ->E2 : E2 ->B : E2 +>E2 : E2, Symbol(E2, Decl(moduleCodeGenTest5.ts, 16, 13)) +>B : E2, Symbol(E2.B, Decl(moduleCodeGenTest5.ts, 17, 9)) +>0 : number var v = E2.B; ->v : E2 ->E2.B : E2 ->E2 : typeof E2 ->B : E2 +>v : E2, Symbol(v, Decl(moduleCodeGenTest5.ts, 18, 3)) +>E2.B : E2, Symbol(E2.B, Decl(moduleCodeGenTest5.ts, 17, 9)) +>E2 : typeof E2, Symbol(E2, Decl(moduleCodeGenTest5.ts, 16, 13)) +>B : E2, Symbol(E2.B, Decl(moduleCodeGenTest5.ts, 17, 9)) diff --git a/tests/baselines/reference/moduleCodegenTest4.types b/tests/baselines/reference/moduleCodegenTest4.types index 7b9229a46c1..1d34f872fc5 100644 --- a/tests/baselines/reference/moduleCodegenTest4.types +++ b/tests/baselines/reference/moduleCodegenTest4.types @@ -1,14 +1,17 @@ === tests/cases/compiler/moduleCodegenTest4.ts === export module Baz { export var x = "hello"; } ->Baz : typeof Baz ->x : string +>Baz : typeof Baz, Symbol(Baz, Decl(moduleCodegenTest4.ts, 0, 0)) +>x : string, Symbol(x, Decl(moduleCodegenTest4.ts, 0, 30)) +>"hello" : string Baz.x = "goodbye"; >Baz.x = "goodbye" : string ->Baz.x : string ->Baz : typeof Baz ->x : string +>Baz.x : string, Symbol(Baz.x, Decl(moduleCodegenTest4.ts, 0, 30)) +>Baz : typeof Baz, Symbol(Baz, Decl(moduleCodegenTest4.ts, 0, 0)) +>x : string, Symbol(Baz.x, Decl(moduleCodegenTest4.ts, 0, 30)) +>"goodbye" : string void 0; >void 0 : undefined +>0 : number diff --git a/tests/baselines/reference/moduleIdentifiers.types b/tests/baselines/reference/moduleIdentifiers.types index db8b1c3f720..3ee3ce4b676 100644 --- a/tests/baselines/reference/moduleIdentifiers.types +++ b/tests/baselines/reference/moduleIdentifiers.types @@ -1,23 +1,24 @@ === tests/cases/compiler/moduleIdentifiers.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleIdentifiers.ts, 0, 0)) interface P { x: number; y: number; } ->P : P ->x : number ->y : number +>P : P, Symbol(P, Decl(moduleIdentifiers.ts, 0, 10)) +>x : number, Symbol(x, Decl(moduleIdentifiers.ts, 1, 17)) +>y : number, Symbol(y, Decl(moduleIdentifiers.ts, 1, 28)) export var a = 1 ->a : number +>a : number, Symbol(a, Decl(moduleIdentifiers.ts, 2, 14)) +>1 : number } //var p: M.P; //var m: M = M; var x1 = M.a; ->x1 : number ->M.a : number ->M : typeof M ->a : number +>x1 : number, Symbol(x1, Decl(moduleIdentifiers.ts, 7, 3)) +>M.a : number, Symbol(M.a, Decl(moduleIdentifiers.ts, 2, 14)) +>M : typeof M, Symbol(M, Decl(moduleIdentifiers.ts, 0, 0)) +>a : number, Symbol(M.a, Decl(moduleIdentifiers.ts, 2, 14)) //var x2 = m.a; //var q: m.P; diff --git a/tests/baselines/reference/moduleImportedForTypeArgumentPosition.types b/tests/baselines/reference/moduleImportedForTypeArgumentPosition.types index c5c3f427377..611040ec16f 100644 --- a/tests/baselines/reference/moduleImportedForTypeArgumentPosition.types +++ b/tests/baselines/reference/moduleImportedForTypeArgumentPosition.types @@ -1,20 +1,20 @@ === tests/cases/compiler/moduleImportedForTypeArgumentPosition_1.ts === /**This is on import declaration*/ import M2 = require("moduleImportedForTypeArgumentPosition_0"); ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(moduleImportedForTypeArgumentPosition_1.ts, 0, 0)) class C1{ } ->C1 : C1 ->T : T +>C1 : C1, Symbol(C1, Decl(moduleImportedForTypeArgumentPosition_1.ts, 1, 63)) +>T : T, Symbol(T, Decl(moduleImportedForTypeArgumentPosition_1.ts, 2, 9)) class Test1 extends C1 { ->Test1 : Test1 ->C1 : C1 ->M2 : unknown ->M2C : M2.M2C +>Test1 : Test1, Symbol(Test1, Decl(moduleImportedForTypeArgumentPosition_1.ts, 2, 14)) +>C1 : C1, Symbol(C1, Decl(moduleImportedForTypeArgumentPosition_1.ts, 1, 63)) +>M2 : any, Symbol(M2, Decl(moduleImportedForTypeArgumentPosition_1.ts, 0, 0)) +>M2C : M2.M2C, Symbol(M2.M2C, Decl(moduleImportedForTypeArgumentPosition_0.ts, 0, 0)) } === tests/cases/compiler/moduleImportedForTypeArgumentPosition_0.ts === export interface M2C { } ->M2C : M2C +>M2C : M2C, Symbol(M2C, Decl(moduleImportedForTypeArgumentPosition_0.ts, 0, 0)) diff --git a/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.types b/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.types index d8f6083b2c9..32dfc043820 100644 --- a/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.types +++ b/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.types @@ -1,115 +1,121 @@ === tests/cases/compiler/moduleMemberWithoutTypeAnnotation1.ts === module TypeScript.Parser { ->TypeScript : typeof TypeScript ->Parser : typeof Parser +>TypeScript : typeof TypeScript, Symbol(TypeScript, Decl(moduleMemberWithoutTypeAnnotation1.ts, 0, 0), Decl(moduleMemberWithoutTypeAnnotation1.ts, 6, 1), Decl(moduleMemberWithoutTypeAnnotation1.ts, 22, 1), Decl(moduleMemberWithoutTypeAnnotation1.ts, 34, 1)) +>Parser : typeof Parser, Symbol(Parser, Decl(moduleMemberWithoutTypeAnnotation1.ts, 0, 18)) class SyntaxCursor { ->SyntaxCursor : SyntaxCursor +>SyntaxCursor : SyntaxCursor, Symbol(SyntaxCursor, Decl(moduleMemberWithoutTypeAnnotation1.ts, 0, 26)) public currentNode(): SyntaxNode { ->currentNode : () => SyntaxNode ->SyntaxNode : SyntaxNode +>currentNode : () => SyntaxNode, Symbol(currentNode, Decl(moduleMemberWithoutTypeAnnotation1.ts, 1, 24)) +>SyntaxNode : SyntaxNode, Symbol(SyntaxNode, Decl(moduleMemberWithoutTypeAnnotation1.ts, 24, 19)) return null; +>null : null } } } module TypeScript { ->TypeScript : typeof TypeScript +>TypeScript : typeof TypeScript, Symbol(TypeScript, Decl(moduleMemberWithoutTypeAnnotation1.ts, 0, 0), Decl(moduleMemberWithoutTypeAnnotation1.ts, 6, 1), Decl(moduleMemberWithoutTypeAnnotation1.ts, 22, 1), Decl(moduleMemberWithoutTypeAnnotation1.ts, 34, 1)) export interface ISyntaxElement { }; ->ISyntaxElement : ISyntaxElement +>ISyntaxElement : ISyntaxElement, Symbol(ISyntaxElement, Decl(moduleMemberWithoutTypeAnnotation1.ts, 8, 19)) export interface ISyntaxToken { }; ->ISyntaxToken : ISyntaxToken +>ISyntaxToken : ISyntaxToken, Symbol(ISyntaxToken, Decl(moduleMemberWithoutTypeAnnotation1.ts, 9, 40)) export class PositionedElement { ->PositionedElement : PositionedElement +>PositionedElement : PositionedElement, Symbol(PositionedElement, Decl(moduleMemberWithoutTypeAnnotation1.ts, 10, 38)) public childIndex(child: ISyntaxElement) { ->childIndex : (child: ISyntaxElement) => void ->child : ISyntaxElement ->ISyntaxElement : ISyntaxElement +>childIndex : (child: ISyntaxElement) => void, Symbol(childIndex, Decl(moduleMemberWithoutTypeAnnotation1.ts, 12, 36)) +>child : ISyntaxElement, Symbol(child, Decl(moduleMemberWithoutTypeAnnotation1.ts, 13, 26)) +>ISyntaxElement : ISyntaxElement, Symbol(ISyntaxElement, Decl(moduleMemberWithoutTypeAnnotation1.ts, 8, 19)) return Syntax.childIndex(); >Syntax.childIndex() : void ->Syntax.childIndex : () => void ->Syntax : typeof Syntax ->childIndex : () => void +>Syntax.childIndex : () => void, Symbol(Syntax.childIndex, Decl(moduleMemberWithoutTypeAnnotation1.ts, 36, 26)) +>Syntax : typeof Syntax, Symbol(Syntax, Decl(moduleMemberWithoutTypeAnnotation1.ts, 36, 18)) +>childIndex : () => void, Symbol(Syntax.childIndex, Decl(moduleMemberWithoutTypeAnnotation1.ts, 36, 26)) } } export class PositionedToken { ->PositionedToken : PositionedToken +>PositionedToken : PositionedToken, Symbol(PositionedToken, Decl(moduleMemberWithoutTypeAnnotation1.ts, 16, 5)) constructor(parent: PositionedElement, token: ISyntaxToken, fullStart: number) { ->parent : PositionedElement ->PositionedElement : PositionedElement ->token : ISyntaxToken ->ISyntaxToken : ISyntaxToken ->fullStart : number +>parent : PositionedElement, Symbol(parent, Decl(moduleMemberWithoutTypeAnnotation1.ts, 19, 20)) +>PositionedElement : PositionedElement, Symbol(PositionedElement, Decl(moduleMemberWithoutTypeAnnotation1.ts, 10, 38)) +>token : ISyntaxToken, Symbol(token, Decl(moduleMemberWithoutTypeAnnotation1.ts, 19, 46)) +>ISyntaxToken : ISyntaxToken, Symbol(ISyntaxToken, Decl(moduleMemberWithoutTypeAnnotation1.ts, 9, 40)) +>fullStart : number, Symbol(fullStart, Decl(moduleMemberWithoutTypeAnnotation1.ts, 19, 67)) } } } module TypeScript { ->TypeScript : typeof TypeScript +>TypeScript : typeof TypeScript, Symbol(TypeScript, Decl(moduleMemberWithoutTypeAnnotation1.ts, 0, 0), Decl(moduleMemberWithoutTypeAnnotation1.ts, 6, 1), Decl(moduleMemberWithoutTypeAnnotation1.ts, 22, 1), Decl(moduleMemberWithoutTypeAnnotation1.ts, 34, 1)) export class SyntaxNode { ->SyntaxNode : SyntaxNode +>SyntaxNode : SyntaxNode, Symbol(SyntaxNode, Decl(moduleMemberWithoutTypeAnnotation1.ts, 24, 19)) public findToken(position: number, includeSkippedTokens: boolean = false): PositionedToken { ->findToken : (position: number, includeSkippedTokens?: boolean) => PositionedToken ->position : number ->includeSkippedTokens : boolean ->PositionedToken : PositionedToken +>findToken : (position: number, includeSkippedTokens?: boolean) => PositionedToken, Symbol(findToken, Decl(moduleMemberWithoutTypeAnnotation1.ts, 25, 29)) +>position : number, Symbol(position, Decl(moduleMemberWithoutTypeAnnotation1.ts, 26, 25)) +>includeSkippedTokens : boolean, Symbol(includeSkippedTokens, Decl(moduleMemberWithoutTypeAnnotation1.ts, 26, 42)) +>false : boolean +>PositionedToken : PositionedToken, Symbol(PositionedToken, Decl(moduleMemberWithoutTypeAnnotation1.ts, 16, 5)) var positionedToken = this.findTokenInternal(null, position, 0); ->positionedToken : any +>positionedToken : any, Symbol(positionedToken, Decl(moduleMemberWithoutTypeAnnotation1.ts, 27, 15)) >this.findTokenInternal(null, position, 0) : any ->this.findTokenInternal : (x: any, y: any, z: any) => any ->this : SyntaxNode ->findTokenInternal : (x: any, y: any, z: any) => any ->position : number +>this.findTokenInternal : (x: any, y: any, z: any) => any, Symbol(findTokenInternal, Decl(moduleMemberWithoutTypeAnnotation1.ts, 29, 9)) +>this : SyntaxNode, Symbol(SyntaxNode, Decl(moduleMemberWithoutTypeAnnotation1.ts, 24, 19)) +>findTokenInternal : (x: any, y: any, z: any) => any, Symbol(findTokenInternal, Decl(moduleMemberWithoutTypeAnnotation1.ts, 29, 9)) +>null : null +>position : number, Symbol(position, Decl(moduleMemberWithoutTypeAnnotation1.ts, 26, 25)) +>0 : number return null; +>null : null } findTokenInternal(x, y, z) { ->findTokenInternal : (x: any, y: any, z: any) => any ->x : any ->y : any ->z : any +>findTokenInternal : (x: any, y: any, z: any) => any, Symbol(findTokenInternal, Decl(moduleMemberWithoutTypeAnnotation1.ts, 29, 9)) +>x : any, Symbol(x, Decl(moduleMemberWithoutTypeAnnotation1.ts, 30, 26)) +>y : any, Symbol(y, Decl(moduleMemberWithoutTypeAnnotation1.ts, 30, 28)) +>z : any, Symbol(z, Decl(moduleMemberWithoutTypeAnnotation1.ts, 30, 31)) return null; +>null : null } } } module TypeScript.Syntax { ->TypeScript : typeof TypeScript ->Syntax : typeof Syntax +>TypeScript : typeof TypeScript, Symbol(TypeScript, Decl(moduleMemberWithoutTypeAnnotation1.ts, 0, 0), Decl(moduleMemberWithoutTypeAnnotation1.ts, 6, 1), Decl(moduleMemberWithoutTypeAnnotation1.ts, 22, 1), Decl(moduleMemberWithoutTypeAnnotation1.ts, 34, 1)) +>Syntax : typeof Syntax, Symbol(Syntax, Decl(moduleMemberWithoutTypeAnnotation1.ts, 36, 18)) export function childIndex() { } ->childIndex : () => void +>childIndex : () => void, Symbol(childIndex, Decl(moduleMemberWithoutTypeAnnotation1.ts, 36, 26)) export class VariableWidthTokenWithTrailingTrivia implements ISyntaxToken { ->VariableWidthTokenWithTrailingTrivia : VariableWidthTokenWithTrailingTrivia ->ISyntaxToken : ISyntaxToken +>VariableWidthTokenWithTrailingTrivia : VariableWidthTokenWithTrailingTrivia, Symbol(VariableWidthTokenWithTrailingTrivia, Decl(moduleMemberWithoutTypeAnnotation1.ts, 37, 36)) +>ISyntaxToken : ISyntaxToken, Symbol(ISyntaxToken, Decl(moduleMemberWithoutTypeAnnotation1.ts, 9, 40)) private findTokenInternal(parent: PositionedElement, position: number, fullStart: number) { ->findTokenInternal : (parent: PositionedElement, position: number, fullStart: number) => PositionedToken ->parent : PositionedElement ->PositionedElement : PositionedElement ->position : number ->fullStart : number +>findTokenInternal : (parent: PositionedElement, position: number, fullStart: number) => PositionedToken, Symbol(findTokenInternal, Decl(moduleMemberWithoutTypeAnnotation1.ts, 39, 79)) +>parent : PositionedElement, Symbol(parent, Decl(moduleMemberWithoutTypeAnnotation1.ts, 40, 34)) +>PositionedElement : PositionedElement, Symbol(PositionedElement, Decl(moduleMemberWithoutTypeAnnotation1.ts, 10, 38)) +>position : number, Symbol(position, Decl(moduleMemberWithoutTypeAnnotation1.ts, 40, 60)) +>fullStart : number, Symbol(fullStart, Decl(moduleMemberWithoutTypeAnnotation1.ts, 40, 78)) return new PositionedToken(parent, this, fullStart); >new PositionedToken(parent, this, fullStart) : PositionedToken ->PositionedToken : typeof PositionedToken ->parent : PositionedElement ->this : VariableWidthTokenWithTrailingTrivia ->fullStart : number +>PositionedToken : typeof PositionedToken, Symbol(PositionedToken, Decl(moduleMemberWithoutTypeAnnotation1.ts, 16, 5)) +>parent : PositionedElement, Symbol(parent, Decl(moduleMemberWithoutTypeAnnotation1.ts, 40, 34)) +>this : VariableWidthTokenWithTrailingTrivia, Symbol(VariableWidthTokenWithTrailingTrivia, Decl(moduleMemberWithoutTypeAnnotation1.ts, 37, 36)) +>fullStart : number, Symbol(fullStart, Decl(moduleMemberWithoutTypeAnnotation1.ts, 40, 78)) } } } diff --git a/tests/baselines/reference/moduleMemberWithoutTypeAnnotation2.types b/tests/baselines/reference/moduleMemberWithoutTypeAnnotation2.types index 2a5d2c76e76..5c47eb192b7 100644 --- a/tests/baselines/reference/moduleMemberWithoutTypeAnnotation2.types +++ b/tests/baselines/reference/moduleMemberWithoutTypeAnnotation2.types @@ -1,34 +1,35 @@ === tests/cases/compiler/moduleMemberWithoutTypeAnnotation2.ts === module TypeScript { ->TypeScript : typeof TypeScript +>TypeScript : typeof TypeScript, Symbol(TypeScript, Decl(moduleMemberWithoutTypeAnnotation2.ts, 0, 0)) export module CompilerDiagnostics { ->CompilerDiagnostics : typeof CompilerDiagnostics +>CompilerDiagnostics : typeof CompilerDiagnostics, Symbol(CompilerDiagnostics, Decl(moduleMemberWithoutTypeAnnotation2.ts, 0, 19)) export interface IDiagnosticWriter { ->IDiagnosticWriter : IDiagnosticWriter +>IDiagnosticWriter : IDiagnosticWriter, Symbol(IDiagnosticWriter, Decl(moduleMemberWithoutTypeAnnotation2.ts, 1, 39)) Alert(output: string): void; ->Alert : (output: string) => void ->output : string +>Alert : (output: string) => void, Symbol(Alert, Decl(moduleMemberWithoutTypeAnnotation2.ts, 3, 44)) +>output : string, Symbol(output, Decl(moduleMemberWithoutTypeAnnotation2.ts, 4, 18)) } export var diagnosticWriter = null; ->diagnosticWriter : any +>diagnosticWriter : any, Symbol(diagnosticWriter, Decl(moduleMemberWithoutTypeAnnotation2.ts, 7, 18)) +>null : null export function Alert(output: string) { ->Alert : (output: string) => void ->output : string +>Alert : (output: string) => void, Symbol(Alert, Decl(moduleMemberWithoutTypeAnnotation2.ts, 7, 43)) +>output : string, Symbol(output, Decl(moduleMemberWithoutTypeAnnotation2.ts, 9, 30)) if (diagnosticWriter) { ->diagnosticWriter : any +>diagnosticWriter : any, Symbol(diagnosticWriter, Decl(moduleMemberWithoutTypeAnnotation2.ts, 7, 18)) diagnosticWriter.Alert(output); >diagnosticWriter.Alert(output) : any >diagnosticWriter.Alert : any ->diagnosticWriter : any +>diagnosticWriter : any, Symbol(diagnosticWriter, Decl(moduleMemberWithoutTypeAnnotation2.ts, 7, 18)) >Alert : any ->output : string +>output : string, Symbol(output, Decl(moduleMemberWithoutTypeAnnotation2.ts, 9, 30)) } } } diff --git a/tests/baselines/reference/moduleMerge.types b/tests/baselines/reference/moduleMerge.types index b70f786b7a2..e723bfe6ab2 100644 --- a/tests/baselines/reference/moduleMerge.types +++ b/tests/baselines/reference/moduleMerge.types @@ -2,29 +2,31 @@ // This should not compile both B classes are in the same module this should be a collission module A ->A : typeof A +>A : typeof A, Symbol(A, Decl(moduleMerge.ts, 0, 0), Decl(moduleMerge.ts, 11, 1)) { class B ->B : B +>B : B, Symbol(B, Decl(moduleMerge.ts, 3, 1)) { public Hello(): string ->Hello : () => string +>Hello : () => string, Symbol(Hello, Decl(moduleMerge.ts, 5, 5)) { return "from private B"; +>"from private B" : string } } } module A ->A : typeof A +>A : typeof A, Symbol(A, Decl(moduleMerge.ts, 0, 0), Decl(moduleMerge.ts, 11, 1)) { export class B ->B : B +>B : B, Symbol(B, Decl(moduleMerge.ts, 14, 1)) { public Hello(): string ->Hello : () => string +>Hello : () => string, Symbol(Hello, Decl(moduleMerge.ts, 16, 5)) { return "from export B"; +>"from export B" : string } } } diff --git a/tests/baselines/reference/moduleNoEmit.types b/tests/baselines/reference/moduleNoEmit.types index 7fb6b6164d6..727e0c491da 100644 --- a/tests/baselines/reference/moduleNoEmit.types +++ b/tests/baselines/reference/moduleNoEmit.types @@ -1,7 +1,9 @@ === tests/cases/compiler/moduleNoEmit.ts === module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(moduleNoEmit.ts, 0, 0)) 1+1; >1+1 : number +>1 : number +>1 : number } diff --git a/tests/baselines/reference/moduleOuterQualification.types b/tests/baselines/reference/moduleOuterQualification.types index 95a18f58bcd..91614f6b6d5 100644 --- a/tests/baselines/reference/moduleOuterQualification.types +++ b/tests/baselines/reference/moduleOuterQualification.types @@ -1,19 +1,20 @@ === tests/cases/compiler/moduleOuterQualification.ts === declare module outer { ->outer : unknown +>outer : any, Symbol(outer, Decl(moduleOuterQualification.ts, 0, 0)) interface Beta { } ->Beta : Beta +>Beta : Beta, Symbol(Beta, Decl(moduleOuterQualification.ts, 1, 22)) module inner { ->inner : unknown +>inner : any, Symbol(inner, Decl(moduleOuterQualification.ts, 2, 20)) // .d.ts emit: should be 'extends outer.Beta' export interface Beta extends outer.Beta { } ->Beta : Beta ->outer : unknown ->Beta : outer.Beta +>Beta : Beta, Symbol(Beta, Decl(moduleOuterQualification.ts, 3, 16)) +>outer.Beta : any, Symbol(Beta, Decl(moduleOuterQualification.ts, 1, 22)) +>outer : any, Symbol(outer, Decl(moduleOuterQualification.ts, 0, 0)) +>Beta : outer.Beta, Symbol(Beta, Decl(moduleOuterQualification.ts, 1, 22)) } } diff --git a/tests/baselines/reference/moduleRedifinitionErrors.types b/tests/baselines/reference/moduleRedifinitionErrors.types index 34a5f428596..1ad183e22e7 100644 --- a/tests/baselines/reference/moduleRedifinitionErrors.types +++ b/tests/baselines/reference/moduleRedifinitionErrors.types @@ -1,8 +1,8 @@ === tests/cases/compiler/moduleRedifinitionErrors.ts === class A { ->A : A +>A : A, Symbol(A, Decl(moduleRedifinitionErrors.ts, 0, 0), Decl(moduleRedifinitionErrors.ts, 1, 1)) } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(moduleRedifinitionErrors.ts, 0, 0), Decl(moduleRedifinitionErrors.ts, 1, 1)) } diff --git a/tests/baselines/reference/moduleReopenedTypeOtherBlock.types b/tests/baselines/reference/moduleReopenedTypeOtherBlock.types index f98c069c338..ecbfc381cdf 100644 --- a/tests/baselines/reference/moduleReopenedTypeOtherBlock.types +++ b/tests/baselines/reference/moduleReopenedTypeOtherBlock.types @@ -1,20 +1,21 @@ === tests/cases/compiler/moduleReopenedTypeOtherBlock.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleReopenedTypeOtherBlock.ts, 0, 0), Decl(moduleReopenedTypeOtherBlock.ts, 3, 1)) export class C1 { } ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(moduleReopenedTypeOtherBlock.ts, 0, 10)) export interface I { n: number; } ->I : I ->n : number +>I : I, Symbol(I, Decl(moduleReopenedTypeOtherBlock.ts, 1, 23)) +>n : number, Symbol(n, Decl(moduleReopenedTypeOtherBlock.ts, 2, 24)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleReopenedTypeOtherBlock.ts, 0, 0), Decl(moduleReopenedTypeOtherBlock.ts, 3, 1)) export class C2 { f(): I { return null; } } ->C2 : C2 ->f : () => I ->I : I +>C2 : C2, Symbol(C2, Decl(moduleReopenedTypeOtherBlock.ts, 4, 10)) +>f : () => I, Symbol(f, Decl(moduleReopenedTypeOtherBlock.ts, 5, 21)) +>I : I, Symbol(I, Decl(moduleReopenedTypeOtherBlock.ts, 1, 23)) +>null : null } diff --git a/tests/baselines/reference/moduleReopenedTypeSameBlock.types b/tests/baselines/reference/moduleReopenedTypeSameBlock.types index 8f119fff60c..8d35878ee2b 100644 --- a/tests/baselines/reference/moduleReopenedTypeSameBlock.types +++ b/tests/baselines/reference/moduleReopenedTypeSameBlock.types @@ -1,18 +1,19 @@ === tests/cases/compiler/moduleReopenedTypeSameBlock.ts === module M { export class C1 { } } ->M : typeof M ->C1 : C1 +>M : typeof M, Symbol(M, Decl(moduleReopenedTypeSameBlock.ts, 0, 0), Decl(moduleReopenedTypeSameBlock.ts, 0, 32)) +>C1 : C1, Symbol(C1, Decl(moduleReopenedTypeSameBlock.ts, 0, 10)) module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleReopenedTypeSameBlock.ts, 0, 0), Decl(moduleReopenedTypeSameBlock.ts, 0, 32)) export interface I { n: number; } ->I : I ->n : number +>I : I, Symbol(I, Decl(moduleReopenedTypeSameBlock.ts, 1, 10)) +>n : number, Symbol(n, Decl(moduleReopenedTypeSameBlock.ts, 2, 24)) export class C2 { f(): I { return null; } } ->C2 : C2 ->f : () => I ->I : I +>C2 : C2, Symbol(C2, Decl(moduleReopenedTypeSameBlock.ts, 2, 37)) +>f : () => I, Symbol(f, Decl(moduleReopenedTypeSameBlock.ts, 3, 21)) +>I : I, Symbol(I, Decl(moduleReopenedTypeSameBlock.ts, 1, 10)) +>null : null } diff --git a/tests/baselines/reference/moduleScopingBug.types b/tests/baselines/reference/moduleScopingBug.types index b92b8de0c81..e8147193046 100644 --- a/tests/baselines/reference/moduleScopingBug.types +++ b/tests/baselines/reference/moduleScopingBug.types @@ -1,38 +1,38 @@ === tests/cases/compiler/moduleScopingBug.ts === module M ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleScopingBug.ts, 0, 0)) { var outer: number; ->outer : number +>outer : number, Symbol(outer, Decl(moduleScopingBug.ts, 4, 7)) function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(moduleScopingBug.ts, 4, 22)) var inner = outer; // Ok ->inner : number ->outer : number +>inner : number, Symbol(inner, Decl(moduleScopingBug.ts, 8, 11)) +>outer : number, Symbol(outer, Decl(moduleScopingBug.ts, 4, 7)) } class C { ->C : C +>C : C, Symbol(C, Decl(moduleScopingBug.ts, 10, 5)) constructor() { var inner = outer; // Ok ->inner : number ->outer : number +>inner : number, Symbol(inner, Decl(moduleScopingBug.ts, 15, 15)) +>outer : number, Symbol(outer, Decl(moduleScopingBug.ts, 4, 7)) } } module X { ->X : typeof X +>X : typeof X, Symbol(X, Decl(moduleScopingBug.ts, 18, 5)) var inner = outer; // Error: outer not visible ->inner : number ->outer : number +>inner : number, Symbol(inner, Decl(moduleScopingBug.ts, 22, 11)) +>outer : number, Symbol(outer, Decl(moduleScopingBug.ts, 4, 7)) } diff --git a/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt.types b/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt.types index 5a29a01cec7..2972baf3978 100644 --- a/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt.types +++ b/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt.types @@ -1,29 +1,30 @@ === tests/cases/compiler/moduleSharesNameWithImportDeclarationInsideIt.ts === module Z.M { ->Z : typeof Z ->M : typeof M +>Z : typeof Z, Symbol(Z, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 0)) +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 9)) export function bar() { ->bar : () => string +>bar : () => string, Symbol(bar, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 12)) return ""; +>"" : string } } module A.M { ->A : typeof A ->M : typeof A.M +>A : typeof A, Symbol(A, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 4, 1)) +>M : typeof A.M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 5, 9)) import M = Z.M; ->M : typeof M ->Z : typeof Z ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 5, 12)) +>Z : typeof Z, Symbol(Z, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 0)) +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 9)) export function bar() { ->bar : () => void +>bar : () => void, Symbol(bar, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 6, 19)) } M.bar(); // Should call Z.M.bar >M.bar() : string ->M.bar : () => string ->M : typeof M ->bar : () => string +>M.bar : () => string, Symbol(M.bar, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 12)) +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 5, 12)) +>bar : () => string, Symbol(M.bar, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 12)) } diff --git a/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt2.types b/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt2.types index 75aba0e2d0e..826cee6bb38 100644 --- a/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt2.types +++ b/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt2.types @@ -1,29 +1,30 @@ === tests/cases/compiler/moduleSharesNameWithImportDeclarationInsideIt2.ts === module Z.M { ->Z : typeof Z ->M : typeof M +>Z : typeof Z, Symbol(Z, Decl(moduleSharesNameWithImportDeclarationInsideIt2.ts, 0, 0)) +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt2.ts, 0, 9)) export function bar() { ->bar : () => string +>bar : () => string, Symbol(bar, Decl(moduleSharesNameWithImportDeclarationInsideIt2.ts, 0, 12)) return ""; +>"" : string } } module A.M { ->A : typeof A ->M : typeof A.M +>A : typeof A, Symbol(A, Decl(moduleSharesNameWithImportDeclarationInsideIt2.ts, 4, 1)) +>M : typeof A.M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt2.ts, 5, 9)) export import M = Z.M; ->M : typeof M ->Z : typeof Z ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt2.ts, 5, 12)) +>Z : typeof Z, Symbol(Z, Decl(moduleSharesNameWithImportDeclarationInsideIt2.ts, 0, 0)) +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt2.ts, 0, 9)) export function bar() { ->bar : () => void +>bar : () => void, Symbol(bar, Decl(moduleSharesNameWithImportDeclarationInsideIt2.ts, 6, 26)) } M.bar(); // Should call Z.M.bar >M.bar() : string ->M.bar : () => string ->M : typeof M ->bar : () => string +>M.bar : () => string, Symbol(M.bar, Decl(moduleSharesNameWithImportDeclarationInsideIt2.ts, 0, 12)) +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt2.ts, 5, 12)) +>bar : () => string, Symbol(M.bar, Decl(moduleSharesNameWithImportDeclarationInsideIt2.ts, 0, 12)) } diff --git a/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt4.types b/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt4.types index b4df2e0ae08..4972b461530 100644 --- a/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt4.types +++ b/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt4.types @@ -1,32 +1,33 @@ === tests/cases/compiler/moduleSharesNameWithImportDeclarationInsideIt4.ts === module Z.M { ->Z : typeof Z ->M : typeof M +>Z : typeof Z, Symbol(Z, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 0, 0)) +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 0, 9)) export function bar() { ->bar : () => string +>bar : () => string, Symbol(bar, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 0, 12)) return ""; +>"" : string } } module A.M { ->A : typeof A ->M : typeof A.M +>A : typeof A, Symbol(A, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 4, 1)) +>M : typeof A.M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 5, 9)) interface M { } ->M : M +>M : M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 5, 12), Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 6, 19)) import M = Z.M; ->M : typeof M ->Z : typeof Z ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 5, 12), Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 6, 19)) +>Z : typeof Z, Symbol(Z, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 0, 0)) +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 0, 9)) export function bar() { ->bar : () => void +>bar : () => void, Symbol(bar, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 7, 19)) } M.bar(); // Should call Z.M.bar >M.bar() : string ->M.bar : () => string ->M : typeof M ->bar : () => string +>M.bar : () => string, Symbol(M.bar, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 0, 12)) +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 5, 12), Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 6, 19)) +>bar : () => string, Symbol(M.bar, Decl(moduleSharesNameWithImportDeclarationInsideIt4.ts, 0, 12)) } diff --git a/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt6.types b/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt6.types index 01879d2db11..2cfe65a5c07 100644 --- a/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt6.types +++ b/tests/baselines/reference/moduleSharesNameWithImportDeclarationInsideIt6.types @@ -1,24 +1,25 @@ === tests/cases/compiler/moduleSharesNameWithImportDeclarationInsideIt6.ts === module Z.M { ->Z : typeof Z ->M : typeof M +>Z : typeof Z, Symbol(Z, Decl(moduleSharesNameWithImportDeclarationInsideIt6.ts, 0, 0)) +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt6.ts, 0, 9)) export function bar() { ->bar : () => string +>bar : () => string, Symbol(bar, Decl(moduleSharesNameWithImportDeclarationInsideIt6.ts, 0, 12)) return ""; +>"" : string } } module A.M { ->A : typeof A ->M : typeof A.M +>A : typeof A, Symbol(A, Decl(moduleSharesNameWithImportDeclarationInsideIt6.ts, 4, 1)) +>M : typeof A.M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt6.ts, 5, 9)) import M = Z.M; ->M : typeof M ->Z : typeof Z ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt6.ts, 5, 12)) +>Z : typeof Z, Symbol(Z, Decl(moduleSharesNameWithImportDeclarationInsideIt6.ts, 0, 0)) +>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt6.ts, 0, 9)) export function bar() { ->bar : () => void +>bar : () => void, Symbol(bar, Decl(moduleSharesNameWithImportDeclarationInsideIt6.ts, 6, 19)) } } diff --git a/tests/baselines/reference/moduleSymbolMerging.types b/tests/baselines/reference/moduleSymbolMerging.types index c6b0f58ef46..1440f0abf46 100644 --- a/tests/baselines/reference/moduleSymbolMerging.types +++ b/tests/baselines/reference/moduleSymbolMerging.types @@ -1,21 +1,22 @@ === tests/cases/compiler/B.ts === /// module A { ; } ->A : typeof A +>A : typeof A, Symbol(A, Decl(A.ts, 0, 0), Decl(B.ts, 0, 0)) module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(B.ts, 1, 14)) export function f(): A.I { return null; } ->f : () => A.I ->A : unknown ->I : A.I +>f : () => A.I, Symbol(f, Decl(B.ts, 2, 10)) +>A : any, Symbol(A, Decl(A.ts, 0, 0), Decl(B.ts, 0, 0)) +>I : A.I, Symbol(A.I, Decl(A.ts, 1, 10)) +>null : null } === tests/cases/compiler/A.ts === module A { export interface I {} } ->A : typeof A ->I : I +>A : typeof A, Symbol(A, Decl(A.ts, 0, 0), Decl(B.ts, 0, 0)) +>I : I, Symbol(I, Decl(A.ts, 1, 10)) diff --git a/tests/baselines/reference/moduleUnassignedVariable.types b/tests/baselines/reference/moduleUnassignedVariable.types index 7d1dd8600cf..bf9301cc054 100644 --- a/tests/baselines/reference/moduleUnassignedVariable.types +++ b/tests/baselines/reference/moduleUnassignedVariable.types @@ -1,19 +1,20 @@ === tests/cases/compiler/moduleUnassignedVariable.ts === module Bar { ->Bar : typeof Bar +>Bar : typeof Bar, Symbol(Bar, Decl(moduleUnassignedVariable.ts, 0, 0)) export var a = 1; ->a : number +>a : number, Symbol(a, Decl(moduleUnassignedVariable.ts, 1, 14)) +>1 : number function fooA() { return a; } // Correct: return Bar.a ->fooA : () => number ->a : number +>fooA : () => number, Symbol(fooA, Decl(moduleUnassignedVariable.ts, 1, 21)) +>a : number, Symbol(a, Decl(moduleUnassignedVariable.ts, 1, 14)) export var b; ->b : any +>b : any, Symbol(b, Decl(moduleUnassignedVariable.ts, 4, 14)) function fooB() { return b; } // Incorrect: return b ->fooB : () => any ->b : any +>fooB : () => any, Symbol(fooB, Decl(moduleUnassignedVariable.ts, 4, 17)) +>b : any, Symbol(b, Decl(moduleUnassignedVariable.ts, 4, 14)) } diff --git a/tests/baselines/reference/moduleVariableArrayIndexer.types b/tests/baselines/reference/moduleVariableArrayIndexer.types index 564de3ff972..66534b13c45 100644 --- a/tests/baselines/reference/moduleVariableArrayIndexer.types +++ b/tests/baselines/reference/moduleVariableArrayIndexer.types @@ -1,16 +1,17 @@ === tests/cases/compiler/moduleVariableArrayIndexer.ts === module Bar { ->Bar : typeof Bar +>Bar : typeof Bar, Symbol(Bar, Decl(moduleVariableArrayIndexer.ts, 0, 0)) export var a = 1; ->a : number +>a : number, Symbol(a, Decl(moduleVariableArrayIndexer.ts, 1, 14)) +>1 : number var t = undefined[a][a]; // CG: var t = undefined[Bar.a][a]; ->t : any +>t : any, Symbol(t, Decl(moduleVariableArrayIndexer.ts, 2, 7)) >undefined[a][a] : any >undefined[a] : any ->undefined : undefined ->a : number ->a : number +>undefined : undefined, Symbol(undefined) +>a : number, Symbol(a, Decl(moduleVariableArrayIndexer.ts, 1, 14)) +>a : number, Symbol(a, Decl(moduleVariableArrayIndexer.ts, 1, 14)) } diff --git a/tests/baselines/reference/moduleVariables.types b/tests/baselines/reference/moduleVariables.types index 2c00df87f56..9169f0678d9 100644 --- a/tests/baselines/reference/moduleVariables.types +++ b/tests/baselines/reference/moduleVariables.types @@ -1,46 +1,49 @@ === tests/cases/compiler/moduleVariables.ts === declare var console: any; ->console : any +>console : any, Symbol(console, Decl(moduleVariables.ts, 0, 11)) var x = 1; ->x : number +>x : number, Symbol(x, Decl(moduleVariables.ts, 2, 3)) +>1 : number module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleVariables.ts, 2, 10), Decl(moduleVariables.ts, 6, 1), Decl(moduleVariables.ts, 10, 1)) export var x = 2; ->x : number +>x : number, Symbol(x, Decl(moduleVariables.ts, 4, 14)) +>2 : number console.log(x); // 2 >console.log(x) : any >console.log : any ->console : any +>console : any, Symbol(console, Decl(moduleVariables.ts, 0, 11)) >log : any ->x : number +>x : number, Symbol(x, Decl(moduleVariables.ts, 4, 14)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleVariables.ts, 2, 10), Decl(moduleVariables.ts, 6, 1), Decl(moduleVariables.ts, 10, 1)) console.log(x); // 2 >console.log(x) : any >console.log : any ->console : any +>console : any, Symbol(console, Decl(moduleVariables.ts, 0, 11)) >log : any ->x : number +>x : number, Symbol(x, Decl(moduleVariables.ts, 4, 14)) } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleVariables.ts, 2, 10), Decl(moduleVariables.ts, 6, 1), Decl(moduleVariables.ts, 10, 1)) var x = 3; ->x : number +>x : number, Symbol(x, Decl(moduleVariables.ts, 13, 7)) +>3 : number console.log(x); // 3 >console.log(x) : any >console.log : any ->console : any +>console : any, Symbol(console, Decl(moduleVariables.ts, 0, 11)) >log : any ->x : number +>x : number, Symbol(x, Decl(moduleVariables.ts, 13, 7)) } diff --git a/tests/baselines/reference/moduleVisibilityTest1.types b/tests/baselines/reference/moduleVisibilityTest1.types index 8c22f792049..2fd85c63794 100644 --- a/tests/baselines/reference/moduleVisibilityTest1.types +++ b/tests/baselines/reference/moduleVisibilityTest1.types @@ -2,174 +2,186 @@ module OuterMod { ->OuterMod : typeof OuterMod +>OuterMod : typeof OuterMod, Symbol(OuterMod, Decl(moduleVisibilityTest1.ts, 0, 0)) export function someExportedOuterFunc() { return -1; } ->someExportedOuterFunc : () => number +>someExportedOuterFunc : () => number, Symbol(someExportedOuterFunc, Decl(moduleVisibilityTest1.ts, 2, 17)) >-1 : number +>1 : number export module OuterInnerMod { ->OuterInnerMod : typeof OuterInnerMod +>OuterInnerMod : typeof OuterInnerMod, Symbol(OuterInnerMod, Decl(moduleVisibilityTest1.ts, 3, 55)) export function someExportedOuterInnerFunc() { return "foo"; } ->someExportedOuterInnerFunc : () => string +>someExportedOuterInnerFunc : () => string, Symbol(someExportedOuterInnerFunc, Decl(moduleVisibilityTest1.ts, 5, 30)) +>"foo" : string } } import OuterInnerAlias = OuterMod.OuterInnerMod; ->OuterInnerAlias : typeof OuterInnerAlias ->OuterMod : typeof OuterMod ->OuterInnerMod : typeof OuterInnerAlias +>OuterInnerAlias : typeof OuterInnerAlias, Symbol(OuterInnerAlias, Decl(moduleVisibilityTest1.ts, 8, 1)) +>OuterMod : typeof OuterMod, Symbol(OuterMod, Decl(moduleVisibilityTest1.ts, 0, 0)) +>OuterInnerMod : typeof OuterInnerAlias, Symbol(OuterInnerAlias, Decl(moduleVisibilityTest1.ts, 3, 55)) module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleVisibilityTest1.ts, 10, 48), Decl(moduleVisibilityTest1.ts, 52, 1)) export module InnerMod { ->InnerMod : typeof InnerMod +>InnerMod : typeof InnerMod, Symbol(InnerMod, Decl(moduleVisibilityTest1.ts, 12, 10)) export function someExportedInnerFunc() { return -2; } ->someExportedInnerFunc : () => number +>someExportedInnerFunc : () => number, Symbol(someExportedInnerFunc, Decl(moduleVisibilityTest1.ts, 14, 25)) >-2 : number +>2 : number } export enum E { ->E : E +>E : E, Symbol(E, Decl(moduleVisibilityTest1.ts, 16, 2)) A, ->A : E +>A : E, Symbol(E.A, Decl(moduleVisibilityTest1.ts, 18, 16)) B, ->B : E +>B : E, Symbol(E.B, Decl(moduleVisibilityTest1.ts, 19, 4)) C, ->C : E +>C : E, Symbol(E.C, Decl(moduleVisibilityTest1.ts, 20, 4)) } export var x = 5; ->x : number +>x : number, Symbol(x, Decl(moduleVisibilityTest1.ts, 24, 11)) +>5 : number export declare var exported_var; ->exported_var : any +>exported_var : any, Symbol(exported_var, Decl(moduleVisibilityTest1.ts, 25, 19)) var y = x + x; ->y : number +>y : number, Symbol(y, Decl(moduleVisibilityTest1.ts, 27, 4)) >x + x : number ->x : number ->x : number +>x : number, Symbol(x, Decl(moduleVisibilityTest1.ts, 24, 11)) +>x : number, Symbol(x, Decl(moduleVisibilityTest1.ts, 24, 11)) export interface I { ->I : I +>I : I, Symbol(I, Decl(moduleVisibilityTest1.ts, 27, 15)) someMethod():number; ->someMethod : () => number +>someMethod : () => number, Symbol(someMethod, Decl(moduleVisibilityTest1.ts, 30, 21)) } class B {public b = 0;} ->B : B ->b : number +>B : B, Symbol(B, Decl(moduleVisibilityTest1.ts, 32, 2)) +>b : number, Symbol(b, Decl(moduleVisibilityTest1.ts, 34, 11)) +>0 : number export class C implements I { ->C : C ->I : I +>C : C, Symbol(C, Decl(moduleVisibilityTest1.ts, 34, 25)) +>I : I, Symbol(I, Decl(moduleVisibilityTest1.ts, 27, 15)) public someMethodThatCallsAnOuterMethod() {return OuterInnerAlias.someExportedOuterInnerFunc();} ->someMethodThatCallsAnOuterMethod : () => string +>someMethodThatCallsAnOuterMethod : () => string, Symbol(someMethodThatCallsAnOuterMethod, Decl(moduleVisibilityTest1.ts, 36, 31)) >OuterInnerAlias.someExportedOuterInnerFunc() : string ->OuterInnerAlias.someExportedOuterInnerFunc : () => string ->OuterInnerAlias : typeof OuterInnerAlias ->someExportedOuterInnerFunc : () => string +>OuterInnerAlias.someExportedOuterInnerFunc : () => string, Symbol(OuterInnerAlias.someExportedOuterInnerFunc, Decl(moduleVisibilityTest1.ts, 5, 30)) +>OuterInnerAlias : typeof OuterInnerAlias, Symbol(OuterInnerAlias, Decl(moduleVisibilityTest1.ts, 8, 1)) +>someExportedOuterInnerFunc : () => string, Symbol(OuterInnerAlias.someExportedOuterInnerFunc, Decl(moduleVisibilityTest1.ts, 5, 30)) public someMethodThatCallsAnInnerMethod() {return InnerMod.someExportedInnerFunc();} ->someMethodThatCallsAnInnerMethod : () => number +>someMethodThatCallsAnInnerMethod : () => number, Symbol(someMethodThatCallsAnInnerMethod, Decl(moduleVisibilityTest1.ts, 37, 98)) >InnerMod.someExportedInnerFunc() : number ->InnerMod.someExportedInnerFunc : () => number ->InnerMod : typeof InnerMod ->someExportedInnerFunc : () => number +>InnerMod.someExportedInnerFunc : () => number, Symbol(InnerMod.someExportedInnerFunc, Decl(moduleVisibilityTest1.ts, 14, 25)) +>InnerMod : typeof InnerMod, Symbol(InnerMod, Decl(moduleVisibilityTest1.ts, 12, 10)) +>someExportedInnerFunc : () => number, Symbol(InnerMod.someExportedInnerFunc, Decl(moduleVisibilityTest1.ts, 14, 25)) public someMethodThatCallsAnOuterInnerMethod() {return OuterMod.someExportedOuterFunc();} ->someMethodThatCallsAnOuterInnerMethod : () => number +>someMethodThatCallsAnOuterInnerMethod : () => number, Symbol(someMethodThatCallsAnOuterInnerMethod, Decl(moduleVisibilityTest1.ts, 38, 86)) >OuterMod.someExportedOuterFunc() : number ->OuterMod.someExportedOuterFunc : () => number ->OuterMod : typeof OuterMod ->someExportedOuterFunc : () => number +>OuterMod.someExportedOuterFunc : () => number, Symbol(OuterMod.someExportedOuterFunc, Decl(moduleVisibilityTest1.ts, 2, 17)) +>OuterMod : typeof OuterMod, Symbol(OuterMod, Decl(moduleVisibilityTest1.ts, 0, 0)) +>someExportedOuterFunc : () => number, Symbol(OuterMod.someExportedOuterFunc, Decl(moduleVisibilityTest1.ts, 2, 17)) public someMethod() { return 0; } ->someMethod : () => number +>someMethod : () => number, Symbol(someMethod, Decl(moduleVisibilityTest1.ts, 39, 91)) +>0 : number public someProp = 1; ->someProp : number +>someProp : number, Symbol(someProp, Decl(moduleVisibilityTest1.ts, 40, 35)) +>1 : number constructor() { function someInnerFunc() { return 2; } ->someInnerFunc : () => number +>someInnerFunc : () => number, Symbol(someInnerFunc, Decl(moduleVisibilityTest1.ts, 43, 17)) +>2 : number var someInnerVar = 3; ->someInnerVar : number +>someInnerVar : number, Symbol(someInnerVar, Decl(moduleVisibilityTest1.ts, 45, 15)) +>3 : number } } var someModuleVar = 4; ->someModuleVar : number +>someModuleVar : number, Symbol(someModuleVar, Decl(moduleVisibilityTest1.ts, 49, 4)) +>4 : number function someModuleFunction() { return 5;} ->someModuleFunction : () => number +>someModuleFunction : () => number, Symbol(someModuleFunction, Decl(moduleVisibilityTest1.ts, 49, 23)) +>5 : number } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleVisibilityTest1.ts, 10, 48), Decl(moduleVisibilityTest1.ts, 52, 1)) export var c = x; ->c : number ->x : number +>c : number, Symbol(c, Decl(moduleVisibilityTest1.ts, 55, 11)) +>x : number, Symbol(x, Decl(moduleVisibilityTest1.ts, 24, 11)) export var meb = M.E.B; ->meb : E ->M.E.B : E ->M.E : typeof E ->M : typeof M ->E : typeof E ->B : E +>meb : E, Symbol(meb, Decl(moduleVisibilityTest1.ts, 56, 11)) +>M.E.B : E, Symbol(E.B, Decl(moduleVisibilityTest1.ts, 19, 4)) +>M.E : typeof E, Symbol(E, Decl(moduleVisibilityTest1.ts, 16, 2)) +>M : typeof M, Symbol(M, Decl(moduleVisibilityTest1.ts, 10, 48), Decl(moduleVisibilityTest1.ts, 52, 1)) +>E : typeof E, Symbol(E, Decl(moduleVisibilityTest1.ts, 16, 2)) +>B : E, Symbol(E.B, Decl(moduleVisibilityTest1.ts, 19, 4)) } var cprime : M.I = null; ->cprime : M.I ->M : unknown ->I : M.I +>cprime : M.I, Symbol(cprime, Decl(moduleVisibilityTest1.ts, 59, 3)) +>M : any, Symbol(M, Decl(moduleVisibilityTest1.ts, 10, 48), Decl(moduleVisibilityTest1.ts, 52, 1)) +>I : M.I, Symbol(M.I, Decl(moduleVisibilityTest1.ts, 27, 15)) >null : M.I ->M : unknown ->I : M.I +>M : any, Symbol(M, Decl(moduleVisibilityTest1.ts, 10, 48), Decl(moduleVisibilityTest1.ts, 52, 1)) +>I : M.I, Symbol(M.I, Decl(moduleVisibilityTest1.ts, 27, 15)) +>null : null var c = new M.C(); ->c : M.C +>c : M.C, Symbol(c, Decl(moduleVisibilityTest1.ts, 61, 3)) >new M.C() : M.C ->M.C : typeof M.C ->M : typeof M ->C : typeof M.C +>M.C : typeof M.C, Symbol(M.C, Decl(moduleVisibilityTest1.ts, 34, 25)) +>M : typeof M, Symbol(M, Decl(moduleVisibilityTest1.ts, 10, 48), Decl(moduleVisibilityTest1.ts, 52, 1)) +>C : typeof M.C, Symbol(M.C, Decl(moduleVisibilityTest1.ts, 34, 25)) var z = M.x; ->z : number ->M.x : number ->M : typeof M ->x : number +>z : number, Symbol(z, Decl(moduleVisibilityTest1.ts, 62, 3)) +>M.x : number, Symbol(M.x, Decl(moduleVisibilityTest1.ts, 24, 11)) +>M : typeof M, Symbol(M, Decl(moduleVisibilityTest1.ts, 10, 48), Decl(moduleVisibilityTest1.ts, 52, 1)) +>x : number, Symbol(M.x, Decl(moduleVisibilityTest1.ts, 24, 11)) var alpha = M.E.A; ->alpha : M.E ->M.E.A : M.E ->M.E : typeof M.E ->M : typeof M ->E : typeof M.E ->A : M.E +>alpha : M.E, Symbol(alpha, Decl(moduleVisibilityTest1.ts, 63, 3)) +>M.E.A : M.E, Symbol(M.E.A, Decl(moduleVisibilityTest1.ts, 18, 16)) +>M.E : typeof M.E, Symbol(M.E, Decl(moduleVisibilityTest1.ts, 16, 2)) +>M : typeof M, Symbol(M, Decl(moduleVisibilityTest1.ts, 10, 48), Decl(moduleVisibilityTest1.ts, 52, 1)) +>E : typeof M.E, Symbol(M.E, Decl(moduleVisibilityTest1.ts, 16, 2)) +>A : M.E, Symbol(M.E.A, Decl(moduleVisibilityTest1.ts, 18, 16)) var omega = M.exported_var; ->omega : any ->M.exported_var : any ->M : typeof M ->exported_var : any +>omega : any, Symbol(omega, Decl(moduleVisibilityTest1.ts, 64, 3)) +>M.exported_var : any, Symbol(M.exported_var, Decl(moduleVisibilityTest1.ts, 25, 19)) +>M : typeof M, Symbol(M, Decl(moduleVisibilityTest1.ts, 10, 48), Decl(moduleVisibilityTest1.ts, 52, 1)) +>exported_var : any, Symbol(M.exported_var, Decl(moduleVisibilityTest1.ts, 25, 19)) c.someMethodThatCallsAnOuterMethod(); >c.someMethodThatCallsAnOuterMethod() : string ->c.someMethodThatCallsAnOuterMethod : () => string ->c : M.C ->someMethodThatCallsAnOuterMethod : () => string +>c.someMethodThatCallsAnOuterMethod : () => string, Symbol(M.C.someMethodThatCallsAnOuterMethod, Decl(moduleVisibilityTest1.ts, 36, 31)) +>c : M.C, Symbol(c, Decl(moduleVisibilityTest1.ts, 61, 3)) +>someMethodThatCallsAnOuterMethod : () => string, Symbol(M.C.someMethodThatCallsAnOuterMethod, Decl(moduleVisibilityTest1.ts, 36, 31)) diff --git a/tests/baselines/reference/moduleWithStatementsOfEveryKind.types b/tests/baselines/reference/moduleWithStatementsOfEveryKind.types index 0bade1f2d8e..3ffc5eb935c 100644 --- a/tests/baselines/reference/moduleWithStatementsOfEveryKind.types +++ b/tests/baselines/reference/moduleWithStatementsOfEveryKind.types @@ -1,163 +1,177 @@ === tests/cases/conformance/internalModules/moduleBody/moduleWithStatementsOfEveryKind.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(moduleWithStatementsOfEveryKind.ts, 0, 0)) class A { s: string } ->A : A ->s : string +>A : A, Symbol(A, Decl(moduleWithStatementsOfEveryKind.ts, 0, 10)) +>s : string, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 1, 13)) class AA { s: T } ->AA : AA ->T : T ->s : T ->T : T +>AA : AA, Symbol(AA, Decl(moduleWithStatementsOfEveryKind.ts, 1, 25)) +>T : T, Symbol(T, Decl(moduleWithStatementsOfEveryKind.ts, 2, 13)) +>s : T, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 2, 17)) +>T : T, Symbol(T, Decl(moduleWithStatementsOfEveryKind.ts, 2, 13)) interface I { id: number } ->I : I ->id : number +>I : I, Symbol(I, Decl(moduleWithStatementsOfEveryKind.ts, 2, 24)) +>id : number, Symbol(id, Decl(moduleWithStatementsOfEveryKind.ts, 3, 17)) class B extends AA implements I { id: number } ->B : B ->AA : AA ->I : I ->id : number +>B : B, Symbol(B, Decl(moduleWithStatementsOfEveryKind.ts, 3, 30)) +>AA : AA, Symbol(AA, Decl(moduleWithStatementsOfEveryKind.ts, 1, 25)) +>I : I, Symbol(I, Decl(moduleWithStatementsOfEveryKind.ts, 2, 24)) +>id : number, Symbol(id, Decl(moduleWithStatementsOfEveryKind.ts, 5, 45)) class BB extends A { ->BB : BB ->T : T ->A : A +>BB : BB, Symbol(BB, Decl(moduleWithStatementsOfEveryKind.ts, 5, 58)) +>T : T, Symbol(T, Decl(moduleWithStatementsOfEveryKind.ts, 6, 13)) +>A : A, Symbol(A, Decl(moduleWithStatementsOfEveryKind.ts, 0, 10)) id: number; ->id : number +>id : number, Symbol(id, Decl(moduleWithStatementsOfEveryKind.ts, 6, 27)) } module Module { ->Module : typeof Module +>Module : typeof Module, Symbol(Module, Decl(moduleWithStatementsOfEveryKind.ts, 8, 5)) class A { s: string } ->A : A ->s : string +>A : A, Symbol(A, Decl(moduleWithStatementsOfEveryKind.ts, 10, 19)) +>s : string, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 11, 17)) } enum Color { Blue, Red } ->Color : Color ->Blue : Color ->Red : Color +>Color : Color, Symbol(Color, Decl(moduleWithStatementsOfEveryKind.ts, 12, 5)) +>Blue : Color, Symbol(Color.Blue, Decl(moduleWithStatementsOfEveryKind.ts, 13, 16)) +>Red : Color, Symbol(Color.Red, Decl(moduleWithStatementsOfEveryKind.ts, 13, 22)) var x = 12; ->x : number +>x : number, Symbol(x, Decl(moduleWithStatementsOfEveryKind.ts, 14, 7)) +>12 : number function F(s: string): number { ->F : (s: string) => number ->s : string +>F : (s: string) => number, Symbol(F, Decl(moduleWithStatementsOfEveryKind.ts, 14, 15)) +>s : string, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 15, 15)) return 2; +>2 : number } var array: I[] = null; ->array : I[] ->I : I +>array : I[], Symbol(array, Decl(moduleWithStatementsOfEveryKind.ts, 18, 7)) +>I : I, Symbol(I, Decl(moduleWithStatementsOfEveryKind.ts, 2, 24)) +>null : null var fn = (s: string) => { ->fn : (s: string) => string +>fn : (s: string) => string, Symbol(fn, Decl(moduleWithStatementsOfEveryKind.ts, 19, 7)) >(s: string) => { return 'hello ' + s; } : (s: string) => string ->s : string +>s : string, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 19, 14)) return 'hello ' + s; >'hello ' + s : string ->s : string +>'hello ' : string +>s : string, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 19, 14)) } var ol = { s: 'hello', id: 2, isvalid: true }; ->ol : { s: string; id: number; isvalid: boolean; } +>ol : { s: string; id: number; isvalid: boolean; }, Symbol(ol, Decl(moduleWithStatementsOfEveryKind.ts, 22, 7)) >{ s: 'hello', id: 2, isvalid: true } : { s: string; id: number; isvalid: boolean; } ->s : string ->id : number ->isvalid : boolean +>s : string, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 22, 14)) +>'hello' : string +>id : number, Symbol(id, Decl(moduleWithStatementsOfEveryKind.ts, 22, 26)) +>2 : number +>isvalid : boolean, Symbol(isvalid, Decl(moduleWithStatementsOfEveryKind.ts, 22, 33)) +>true : boolean declare class DC { ->DC : DC +>DC : DC, Symbol(DC, Decl(moduleWithStatementsOfEveryKind.ts, 22, 50)) static x: number; ->x : number +>x : number, Symbol(DC.x, Decl(moduleWithStatementsOfEveryKind.ts, 24, 22)) } } module Y { ->Y : typeof Y +>Y : typeof Y, Symbol(Y, Decl(moduleWithStatementsOfEveryKind.ts, 27, 1)) export class A { s: string } ->A : A ->s : string +>A : A, Symbol(A, Decl(moduleWithStatementsOfEveryKind.ts, 29, 10)) +>s : string, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 30, 20)) export class AA { s: T } ->AA : AA ->T : T ->s : T ->T : T +>AA : AA, Symbol(AA, Decl(moduleWithStatementsOfEveryKind.ts, 30, 32)) +>T : T, Symbol(T, Decl(moduleWithStatementsOfEveryKind.ts, 31, 20)) +>s : T, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 31, 24)) +>T : T, Symbol(T, Decl(moduleWithStatementsOfEveryKind.ts, 31, 20)) export interface I { id: number } ->I : I ->id : number +>I : I, Symbol(I, Decl(moduleWithStatementsOfEveryKind.ts, 31, 31)) +>id : number, Symbol(id, Decl(moduleWithStatementsOfEveryKind.ts, 32, 24)) export class B extends AA implements I { id: number } ->B : B ->AA : AA ->I : I ->id : number +>B : B, Symbol(B, Decl(moduleWithStatementsOfEveryKind.ts, 32, 37)) +>AA : AA, Symbol(AA, Decl(moduleWithStatementsOfEveryKind.ts, 30, 32)) +>I : I, Symbol(I, Decl(moduleWithStatementsOfEveryKind.ts, 31, 31)) +>id : number, Symbol(id, Decl(moduleWithStatementsOfEveryKind.ts, 34, 52)) export class BB extends A { ->BB : BB ->T : T ->A : A +>BB : BB, Symbol(BB, Decl(moduleWithStatementsOfEveryKind.ts, 34, 65)) +>T : T, Symbol(T, Decl(moduleWithStatementsOfEveryKind.ts, 35, 20)) +>A : A, Symbol(A, Decl(moduleWithStatementsOfEveryKind.ts, 29, 10)) id: number; ->id : number +>id : number, Symbol(id, Decl(moduleWithStatementsOfEveryKind.ts, 35, 34)) } export module Module { ->Module : typeof Module +>Module : typeof Module, Symbol(Module, Decl(moduleWithStatementsOfEveryKind.ts, 37, 5)) class A { s: string } ->A : A ->s : string +>A : A, Symbol(A, Decl(moduleWithStatementsOfEveryKind.ts, 39, 26)) +>s : string, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 40, 17)) } export enum Color { Blue, Red } ->Color : Color ->Blue : Color ->Red : Color +>Color : Color, Symbol(Color, Decl(moduleWithStatementsOfEveryKind.ts, 41, 5)) +>Blue : Color, Symbol(Color.Blue, Decl(moduleWithStatementsOfEveryKind.ts, 42, 23)) +>Red : Color, Symbol(Color.Red, Decl(moduleWithStatementsOfEveryKind.ts, 42, 29)) export var x = 12; ->x : number +>x : number, Symbol(x, Decl(moduleWithStatementsOfEveryKind.ts, 43, 14)) +>12 : number export function F(s: string): number { ->F : (s: string) => number ->s : string +>F : (s: string) => number, Symbol(F, Decl(moduleWithStatementsOfEveryKind.ts, 43, 22)) +>s : string, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 44, 22)) return 2; +>2 : number } export var array: I[] = null; ->array : I[] ->I : I +>array : I[], Symbol(array, Decl(moduleWithStatementsOfEveryKind.ts, 47, 14)) +>I : I, Symbol(I, Decl(moduleWithStatementsOfEveryKind.ts, 31, 31)) +>null : null export var fn = (s: string) => { ->fn : (s: string) => string +>fn : (s: string) => string, Symbol(fn, Decl(moduleWithStatementsOfEveryKind.ts, 48, 14)) >(s: string) => { return 'hello ' + s; } : (s: string) => string ->s : string +>s : string, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 48, 21)) return 'hello ' + s; >'hello ' + s : string ->s : string +>'hello ' : string +>s : string, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 48, 21)) } export var ol = { s: 'hello', id: 2, isvalid: true }; ->ol : { s: string; id: number; isvalid: boolean; } +>ol : { s: string; id: number; isvalid: boolean; }, Symbol(ol, Decl(moduleWithStatementsOfEveryKind.ts, 51, 14)) >{ s: 'hello', id: 2, isvalid: true } : { s: string; id: number; isvalid: boolean; } ->s : string ->id : number ->isvalid : boolean +>s : string, Symbol(s, Decl(moduleWithStatementsOfEveryKind.ts, 51, 21)) +>'hello' : string +>id : number, Symbol(id, Decl(moduleWithStatementsOfEveryKind.ts, 51, 33)) +>2 : number +>isvalid : boolean, Symbol(isvalid, Decl(moduleWithStatementsOfEveryKind.ts, 51, 40)) +>true : boolean export declare class DC { ->DC : DC +>DC : DC, Symbol(DC, Decl(moduleWithStatementsOfEveryKind.ts, 51, 57)) static x: number; ->x : number +>x : number, Symbol(DC.x, Decl(moduleWithStatementsOfEveryKind.ts, 53, 29)) } } diff --git a/tests/baselines/reference/moduleWithTryStatement1.types b/tests/baselines/reference/moduleWithTryStatement1.types index 9e18b649735..33343d888bb 100644 --- a/tests/baselines/reference/moduleWithTryStatement1.types +++ b/tests/baselines/reference/moduleWithTryStatement1.types @@ -1,14 +1,14 @@ === tests/cases/compiler/moduleWithTryStatement1.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(moduleWithTryStatement1.ts, 0, 0)) try { } catch (e) { ->e : any +>e : any, Symbol(e, Decl(moduleWithTryStatement1.ts, 3, 9)) } } var v = M; ->v : typeof M ->M : typeof M +>v : typeof M, Symbol(v, Decl(moduleWithTryStatement1.ts, 6, 3)) +>M : typeof M, Symbol(M, Decl(moduleWithTryStatement1.ts, 0, 0)) diff --git a/tests/baselines/reference/multiCallOverloads.types b/tests/baselines/reference/multiCallOverloads.types index 8c789510580..68fe4e6c32a 100644 --- a/tests/baselines/reference/multiCallOverloads.types +++ b/tests/baselines/reference/multiCallOverloads.types @@ -1,46 +1,46 @@ === tests/cases/compiler/multiCallOverloads.ts === interface ICallback { ->ICallback : ICallback +>ICallback : ICallback, Symbol(ICallback, Decl(multiCallOverloads.ts, 0, 0)) (x?: string):void; ->x : string +>x : string, Symbol(x, Decl(multiCallOverloads.ts, 1, 5)) } function load(f: ICallback) {} ->load : (f: ICallback) => void ->f : ICallback ->ICallback : ICallback +>load : (f: ICallback) => void, Symbol(load, Decl(multiCallOverloads.ts, 2, 1)) +>f : ICallback, Symbol(f, Decl(multiCallOverloads.ts, 4, 14)) +>ICallback : ICallback, Symbol(ICallback, Decl(multiCallOverloads.ts, 0, 0)) var f1: ICallback = function(z?) {} ->f1 : ICallback ->ICallback : ICallback +>f1 : ICallback, Symbol(f1, Decl(multiCallOverloads.ts, 6, 3)) +>ICallback : ICallback, Symbol(ICallback, Decl(multiCallOverloads.ts, 0, 0)) >function(z?) {} : (z?: string) => void ->z : string +>z : string, Symbol(z, Decl(multiCallOverloads.ts, 6, 29)) var f2: ICallback = function(z?) {} ->f2 : ICallback ->ICallback : ICallback +>f2 : ICallback, Symbol(f2, Decl(multiCallOverloads.ts, 7, 3)) +>ICallback : ICallback, Symbol(ICallback, Decl(multiCallOverloads.ts, 0, 0)) >function(z?) {} : (z?: string) => void ->z : string +>z : string, Symbol(z, Decl(multiCallOverloads.ts, 7, 29)) load(f1) // ok >load(f1) : void ->load : (f: ICallback) => void ->f1 : ICallback +>load : (f: ICallback) => void, Symbol(load, Decl(multiCallOverloads.ts, 2, 1)) +>f1 : ICallback, Symbol(f1, Decl(multiCallOverloads.ts, 6, 3)) load(f2) // ok >load(f2) : void ->load : (f: ICallback) => void ->f2 : ICallback +>load : (f: ICallback) => void, Symbol(load, Decl(multiCallOverloads.ts, 2, 1)) +>f2 : ICallback, Symbol(f2, Decl(multiCallOverloads.ts, 7, 3)) load(function() {}) // this shouldn’t be an error >load(function() {}) : void ->load : (f: ICallback) => void +>load : (f: ICallback) => void, Symbol(load, Decl(multiCallOverloads.ts, 2, 1)) >function() {} : () => void load(function(z?) {}) // this shouldn't be an error >load(function(z?) {}) : void ->load : (f: ICallback) => void +>load : (f: ICallback) => void, Symbol(load, Decl(multiCallOverloads.ts, 2, 1)) >function(z?) {} : (z?: string) => void ->z : string +>z : string, Symbol(z, Decl(multiCallOverloads.ts, 11, 14)) diff --git a/tests/baselines/reference/multiExtendsSplitInterfaces2.types b/tests/baselines/reference/multiExtendsSplitInterfaces2.types index b957d3dc260..fbc8cdea003 100644 --- a/tests/baselines/reference/multiExtendsSplitInterfaces2.types +++ b/tests/baselines/reference/multiExtendsSplitInterfaces2.types @@ -1,59 +1,59 @@ === tests/cases/compiler/multiExtendsSplitInterfaces2.ts === interface A { ->A : A +>A : A, Symbol(A, Decl(multiExtendsSplitInterfaces2.ts, 0, 0)) a: number; ->a : number +>a : number, Symbol(a, Decl(multiExtendsSplitInterfaces2.ts, 0, 13)) } interface I extends A { ->I : I ->A : A +>I : I, Symbol(I, Decl(multiExtendsSplitInterfaces2.ts, 2, 1), Decl(multiExtendsSplitInterfaces2.ts, 10, 1)) +>A : A, Symbol(A, Decl(multiExtendsSplitInterfaces2.ts, 0, 0)) i1: number; ->i1 : number +>i1 : number, Symbol(i1, Decl(multiExtendsSplitInterfaces2.ts, 4, 23)) } interface B { ->B : B +>B : B, Symbol(B, Decl(multiExtendsSplitInterfaces2.ts, 6, 1)) b: number; ->b : number +>b : number, Symbol(b, Decl(multiExtendsSplitInterfaces2.ts, 8, 13)) } interface I extends B { ->I : I ->B : B +>I : I, Symbol(I, Decl(multiExtendsSplitInterfaces2.ts, 2, 1), Decl(multiExtendsSplitInterfaces2.ts, 10, 1)) +>B : B, Symbol(B, Decl(multiExtendsSplitInterfaces2.ts, 6, 1)) i2: number; ->i2 : number +>i2 : number, Symbol(i2, Decl(multiExtendsSplitInterfaces2.ts, 12, 23)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(multiExtendsSplitInterfaces2.ts, 16, 3)) +>I : I, Symbol(I, Decl(multiExtendsSplitInterfaces2.ts, 2, 1), Decl(multiExtendsSplitInterfaces2.ts, 10, 1)) var a = i.a; ->a : number ->i.a : number ->i : I ->a : number +>a : number, Symbol(a, Decl(multiExtendsSplitInterfaces2.ts, 18, 3)) +>i.a : number, Symbol(A.a, Decl(multiExtendsSplitInterfaces2.ts, 0, 13)) +>i : I, Symbol(i, Decl(multiExtendsSplitInterfaces2.ts, 16, 3)) +>a : number, Symbol(A.a, Decl(multiExtendsSplitInterfaces2.ts, 0, 13)) var i1 = i.i1; ->i1 : number ->i.i1 : number ->i : I ->i1 : number +>i1 : number, Symbol(i1, Decl(multiExtendsSplitInterfaces2.ts, 19, 3)) +>i.i1 : number, Symbol(I.i1, Decl(multiExtendsSplitInterfaces2.ts, 4, 23)) +>i : I, Symbol(i, Decl(multiExtendsSplitInterfaces2.ts, 16, 3)) +>i1 : number, Symbol(I.i1, Decl(multiExtendsSplitInterfaces2.ts, 4, 23)) var b = i.b; ->b : number ->i.b : number ->i : I ->b : number +>b : number, Symbol(b, Decl(multiExtendsSplitInterfaces2.ts, 20, 3)) +>i.b : number, Symbol(B.b, Decl(multiExtendsSplitInterfaces2.ts, 8, 13)) +>i : I, Symbol(i, Decl(multiExtendsSplitInterfaces2.ts, 16, 3)) +>b : number, Symbol(B.b, Decl(multiExtendsSplitInterfaces2.ts, 8, 13)) var i2 = i.i2; ->i2 : number ->i.i2 : number ->i : I ->i2 : number +>i2 : number, Symbol(i2, Decl(multiExtendsSplitInterfaces2.ts, 21, 3)) +>i.i2 : number, Symbol(I.i2, Decl(multiExtendsSplitInterfaces2.ts, 12, 23)) +>i : I, Symbol(i, Decl(multiExtendsSplitInterfaces2.ts, 16, 3)) +>i2 : number, Symbol(I.i2, Decl(multiExtendsSplitInterfaces2.ts, 12, 23)) diff --git a/tests/baselines/reference/multiImportExport.types b/tests/baselines/reference/multiImportExport.types index aac60aaee90..9c3871aae76 100644 --- a/tests/baselines/reference/multiImportExport.types +++ b/tests/baselines/reference/multiImportExport.types @@ -1,49 +1,49 @@ === tests/cases/compiler/consumer.ts === import Drawing = require('./Drawing'); ->Drawing : typeof Drawing +>Drawing : typeof Drawing, Symbol(Drawing, Decl(consumer.ts, 0, 0)) var addr = new Drawing.Math.Adder(); ->addr : Adder +>addr : Adder, Symbol(addr, Decl(consumer.ts, 1, 3)) >new Drawing.Math.Adder() : Adder ->Drawing.Math.Adder : typeof Adder ->Drawing.Math : { Adder: typeof Adder; } ->Drawing : typeof Drawing ->Math : { Adder: typeof Adder; } ->Adder : typeof Adder +>Drawing.Math.Adder : typeof Adder, Symbol(Adder, Decl(Math.ts, 2, 12)) +>Drawing.Math : { Adder: typeof Adder; }, Symbol(Drawing.Math, Decl(Drawing.ts, 0, 0)) +>Drawing : typeof Drawing, Symbol(Drawing, Decl(consumer.ts, 0, 0)) +>Math : { Adder: typeof Adder; }, Symbol(Drawing.Math, Decl(Drawing.ts, 0, 0)) +>Adder : typeof Adder, Symbol(Adder, Decl(Math.ts, 2, 12)) === tests/cases/compiler/Drawing.ts === export import Math = require('Math/Math') ->Math : { Adder: typeof Adder; } +>Math : { Adder: typeof Adder; }, Symbol(Math, Decl(Drawing.ts, 0, 0)) === tests/cases/compiler/Math/Math.ts === import Adder = require('Math/Adder'); ->Adder : typeof Adder +>Adder : typeof Adder, Symbol(Adder, Decl(Math.ts, 0, 0)) var Math = { ->Math : { Adder: typeof Adder; } +>Math : { Adder: typeof Adder; }, Symbol(Math, Decl(Math.ts, 2, 3)) >{ Adder:Adder} : { Adder: typeof Adder; } Adder:Adder ->Adder : typeof Adder ->Adder : typeof Adder +>Adder : typeof Adder, Symbol(Adder, Decl(Math.ts, 2, 12)) +>Adder : typeof Adder, Symbol(Adder, Decl(Math.ts, 0, 0)) }; export = Math ->Math : { Adder: typeof Adder; } +>Math : { Adder: typeof Adder; }, Symbol(Math, Decl(Math.ts, 2, 3)) === tests/cases/compiler/Math/Adder.ts === class Adder { ->Adder : Adder +>Adder : Adder, Symbol(Adder, Decl(Adder.ts, 0, 0)) add(a: number, b: number) { ->add : (a: number, b: number) => void ->a : number ->b : number +>add : (a: number, b: number) => void, Symbol(add, Decl(Adder.ts, 0, 13)) +>a : number, Symbol(a, Decl(Adder.ts, 1, 8)) +>b : number, Symbol(b, Decl(Adder.ts, 1, 18)) } } export = Adder; ->Adder : Adder +>Adder : Adder, Symbol(Adder, Decl(Adder.ts, 0, 0)) diff --git a/tests/baselines/reference/multiModuleClodule1.types b/tests/baselines/reference/multiModuleClodule1.types index f7379e33173..268c932c26d 100644 --- a/tests/baselines/reference/multiModuleClodule1.types +++ b/tests/baselines/reference/multiModuleClodule1.types @@ -1,53 +1,56 @@ === tests/cases/compiler/multiModuleClodule1.ts === class C { ->C : C +>C : C, Symbol(C, Decl(multiModuleClodule1.ts, 0, 0), Decl(multiModuleClodule1.ts, 5, 1), Decl(multiModuleClodule1.ts, 10, 1)) constructor(x: number) { } ->x : number +>x : number, Symbol(x, Decl(multiModuleClodule1.ts, 1, 16)) foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(multiModuleClodule1.ts, 1, 30)) bar() { } ->bar : () => void +>bar : () => void, Symbol(bar, Decl(multiModuleClodule1.ts, 2, 13)) static boo() { } ->boo : () => void +>boo : () => void, Symbol(C.boo, Decl(multiModuleClodule1.ts, 3, 13)) } module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(multiModuleClodule1.ts, 0, 0), Decl(multiModuleClodule1.ts, 5, 1), Decl(multiModuleClodule1.ts, 10, 1)) export var x = 1; ->x : number +>x : number, Symbol(x, Decl(multiModuleClodule1.ts, 8, 14)) +>1 : number var y = 2; ->y : number +>y : number, Symbol(y, Decl(multiModuleClodule1.ts, 9, 7)) +>2 : number } module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(multiModuleClodule1.ts, 0, 0), Decl(multiModuleClodule1.ts, 5, 1), Decl(multiModuleClodule1.ts, 10, 1)) export function foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(multiModuleClodule1.ts, 11, 10)) function baz() { return ''; } ->baz : () => string +>baz : () => string, Symbol(baz, Decl(multiModuleClodule1.ts, 12, 29)) +>'' : string } var c = new C(C.x); ->c : C +>c : C, Symbol(c, Decl(multiModuleClodule1.ts, 16, 3)) >new C(C.x) : C ->C : typeof C ->C.x : number ->C : typeof C ->x : number +>C : typeof C, Symbol(C, Decl(multiModuleClodule1.ts, 0, 0), Decl(multiModuleClodule1.ts, 5, 1), Decl(multiModuleClodule1.ts, 10, 1)) +>C.x : number, Symbol(C.x, Decl(multiModuleClodule1.ts, 8, 14)) +>C : typeof C, Symbol(C, Decl(multiModuleClodule1.ts, 0, 0), Decl(multiModuleClodule1.ts, 5, 1), Decl(multiModuleClodule1.ts, 10, 1)) +>x : number, Symbol(C.x, Decl(multiModuleClodule1.ts, 8, 14)) c.foo = C.foo; >c.foo = C.foo : () => void ->c.foo : () => void ->c : C ->foo : () => void ->C.foo : () => void ->C : typeof C ->foo : () => void +>c.foo : () => void, Symbol(C.foo, Decl(multiModuleClodule1.ts, 1, 30)) +>c : C, Symbol(c, Decl(multiModuleClodule1.ts, 16, 3)) +>foo : () => void, Symbol(C.foo, Decl(multiModuleClodule1.ts, 1, 30)) +>C.foo : () => void, Symbol(C.foo, Decl(multiModuleClodule1.ts, 11, 10)) +>C : typeof C, Symbol(C, Decl(multiModuleClodule1.ts, 0, 0), Decl(multiModuleClodule1.ts, 5, 1), Decl(multiModuleClodule1.ts, 10, 1)) +>foo : () => void, Symbol(C.foo, Decl(multiModuleClodule1.ts, 11, 10)) diff --git a/tests/baselines/reference/multiModuleFundule1.types b/tests/baselines/reference/multiModuleFundule1.types index c78a195f4b1..213815b2320 100644 --- a/tests/baselines/reference/multiModuleFundule1.types +++ b/tests/baselines/reference/multiModuleFundule1.types @@ -1,35 +1,38 @@ === tests/cases/compiler/multiModuleFundule1.ts === function C(x: number) { } ->C : typeof C ->x : number +>C : typeof C, Symbol(C, Decl(multiModuleFundule1.ts, 0, 0), Decl(multiModuleFundule1.ts, 0, 25), Decl(multiModuleFundule1.ts, 4, 1)) +>x : number, Symbol(x, Decl(multiModuleFundule1.ts, 0, 11)) module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(multiModuleFundule1.ts, 0, 0), Decl(multiModuleFundule1.ts, 0, 25), Decl(multiModuleFundule1.ts, 4, 1)) export var x = 1; ->x : number +>x : number, Symbol(x, Decl(multiModuleFundule1.ts, 3, 14)) +>1 : number } module C { ->C : typeof C +>C : typeof C, Symbol(C, Decl(multiModuleFundule1.ts, 0, 0), Decl(multiModuleFundule1.ts, 0, 25), Decl(multiModuleFundule1.ts, 4, 1)) export function foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(multiModuleFundule1.ts, 5, 10)) } var r = C(2); ->r : void +>r : void, Symbol(r, Decl(multiModuleFundule1.ts, 9, 3)) >C(2) : void ->C : typeof C +>C : typeof C, Symbol(C, Decl(multiModuleFundule1.ts, 0, 0), Decl(multiModuleFundule1.ts, 0, 25), Decl(multiModuleFundule1.ts, 4, 1)) +>2 : number var r2 = new C(2); // using void returning function as constructor ->r2 : any +>r2 : any, Symbol(r2, Decl(multiModuleFundule1.ts, 10, 3)) >new C(2) : any ->C : typeof C +>C : typeof C, Symbol(C, Decl(multiModuleFundule1.ts, 0, 0), Decl(multiModuleFundule1.ts, 0, 25), Decl(multiModuleFundule1.ts, 4, 1)) +>2 : number var r3 = C.foo(); ->r3 : void +>r3 : void, Symbol(r3, Decl(multiModuleFundule1.ts, 11, 3)) >C.foo() : void ->C.foo : () => void ->C : typeof C ->foo : () => void +>C.foo : () => void, Symbol(C.foo, Decl(multiModuleFundule1.ts, 5, 10)) +>C : typeof C, Symbol(C, Decl(multiModuleFundule1.ts, 0, 0), Decl(multiModuleFundule1.ts, 0, 25), Decl(multiModuleFundule1.ts, 4, 1)) +>foo : () => void, Symbol(C.foo, Decl(multiModuleFundule1.ts, 5, 10)) diff --git a/tests/baselines/reference/mutrec.types b/tests/baselines/reference/mutrec.types index 6c147174484..c3f29c7d80e 100644 --- a/tests/baselines/reference/mutrec.types +++ b/tests/baselines/reference/mutrec.types @@ -1,106 +1,106 @@ === tests/cases/compiler/mutrec.ts === interface A { ->A : A +>A : A, Symbol(A, Decl(mutrec.ts, 0, 0)) x:B[]; ->x : B[] ->B : B +>x : B[], Symbol(x, Decl(mutrec.ts, 0, 13)) +>B : B, Symbol(B, Decl(mutrec.ts, 2, 1)) } interface B { ->B : B +>B : B, Symbol(B, Decl(mutrec.ts, 2, 1)) x:A[]; ->x : A[] ->A : A +>x : A[], Symbol(x, Decl(mutrec.ts, 4, 13)) +>A : A, Symbol(A, Decl(mutrec.ts, 0, 0)) } function f(p: A) { return p }; ->f : (p: A) => A ->p : A ->A : A ->p : A +>f : (p: A) => A, Symbol(f, Decl(mutrec.ts, 6, 1)) +>p : A, Symbol(p, Decl(mutrec.ts, 8, 11)) +>A : A, Symbol(A, Decl(mutrec.ts, 0, 0)) +>p : A, Symbol(p, Decl(mutrec.ts, 8, 11)) var b:B; ->b : B ->B : B +>b : B, Symbol(b, Decl(mutrec.ts, 9, 3)) +>B : B, Symbol(B, Decl(mutrec.ts, 2, 1)) f(b); >f(b) : A ->f : (p: A) => A ->b : B +>f : (p: A) => A, Symbol(f, Decl(mutrec.ts, 6, 1)) +>b : B, Symbol(b, Decl(mutrec.ts, 9, 3)) interface I1 { ->I1 : I1 +>I1 : I1, Symbol(I1, Decl(mutrec.ts, 10, 5)) y:I2; ->y : I2 ->I2 : I2 +>y : I2, Symbol(y, Decl(mutrec.ts, 12, 14)) +>I2 : I2, Symbol(I2, Decl(mutrec.ts, 14, 1)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(mutrec.ts, 14, 1)) y:I3; ->y : I3 ->I3 : I3 +>y : I3, Symbol(y, Decl(mutrec.ts, 16, 14)) +>I3 : I3, Symbol(I3, Decl(mutrec.ts, 18, 1)) } interface I3 { ->I3 : I3 +>I3 : I3, Symbol(I3, Decl(mutrec.ts, 18, 1)) y:I1; ->y : I1 ->I1 : I1 +>y : I1, Symbol(y, Decl(mutrec.ts, 20, 14)) +>I1 : I1, Symbol(I1, Decl(mutrec.ts, 10, 5)) } function g(p: I1) { return p }; ->g : (p: I1) => I1 ->p : I1 ->I1 : I1 ->p : I1 +>g : (p: I1) => I1, Symbol(g, Decl(mutrec.ts, 22, 1)) +>p : I1, Symbol(p, Decl(mutrec.ts, 24, 11)) +>I1 : I1, Symbol(I1, Decl(mutrec.ts, 10, 5)) +>p : I1, Symbol(p, Decl(mutrec.ts, 24, 11)) var i2:I2; ->i2 : I2 ->I2 : I2 +>i2 : I2, Symbol(i2, Decl(mutrec.ts, 25, 3)) +>I2 : I2, Symbol(I2, Decl(mutrec.ts, 14, 1)) g(i2); >g(i2) : I1 ->g : (p: I1) => I1 ->i2 : I2 +>g : (p: I1) => I1, Symbol(g, Decl(mutrec.ts, 22, 1)) +>i2 : I2, Symbol(i2, Decl(mutrec.ts, 25, 3)) var i3:I3; ->i3 : I3 ->I3 : I3 +>i3 : I3, Symbol(i3, Decl(mutrec.ts, 27, 3)) +>I3 : I3, Symbol(I3, Decl(mutrec.ts, 18, 1)) g(i3); >g(i3) : I1 ->g : (p: I1) => I1 ->i3 : I3 +>g : (p: I1) => I1, Symbol(g, Decl(mutrec.ts, 22, 1)) +>i3 : I3, Symbol(i3, Decl(mutrec.ts, 27, 3)) interface I4 { ->I4 : I4 +>I4 : I4, Symbol(I4, Decl(mutrec.ts, 28, 6)) y:I5; ->y : I5 ->I5 : I5 +>y : I5, Symbol(y, Decl(mutrec.ts, 30, 14)) +>I5 : I5, Symbol(I5, Decl(mutrec.ts, 32, 1)) } interface I5 { ->I5 : I5 +>I5 : I5, Symbol(I5, Decl(mutrec.ts, 32, 1)) y:I4; ->y : I4 ->I4 : I4 +>y : I4, Symbol(y, Decl(mutrec.ts, 34, 14)) +>I4 : I4, Symbol(I4, Decl(mutrec.ts, 28, 6)) } var i4:I4; ->i4 : I4 ->I4 : I4 +>i4 : I4, Symbol(i4, Decl(mutrec.ts, 38, 3)) +>I4 : I4, Symbol(I4, Decl(mutrec.ts, 28, 6)) g(i4); >g(i4) : I1 ->g : (p: I1) => I1 ->i4 : I4 +>g : (p: I1) => I1, Symbol(g, Decl(mutrec.ts, 22, 1)) +>i4 : I4, Symbol(i4, Decl(mutrec.ts, 38, 3)) diff --git a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes1.types b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes1.types index 989f7d32d29..35b1fb3f376 100644 --- a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes1.types +++ b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes1.types @@ -1,40 +1,40 @@ === tests/cases/compiler/mutuallyRecursiveGenericBaseTypes1.ts === interface A { ->A : A ->T : T +>A : A, Symbol(A, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 0)) +>T : T, Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 12)) foo(): B; // instead of B does see this ->foo : { (): B; (): void; } ->B : B ->T : T +>foo : { (): B; (): void; }, Symbol(foo, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 16), Decl(mutuallyRecursiveGenericBaseTypes1.ts, 1, 16)) +>B : B, Symbol(B, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 5, 1)) +>T : T, Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 12)) foo(): void; // instead of B does see this ->foo : { (): B; (): void; } +>foo : { (): B; (): void; }, Symbol(foo, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 16), Decl(mutuallyRecursiveGenericBaseTypes1.ts, 1, 16)) foo2(): B; ->foo2 : () => B ->B : B +>foo2 : () => B, Symbol(foo2, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 2, 16)) +>B : B, Symbol(B, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 5, 1)) } interface B extends A { ->B : B ->T : T ->A : A ->T : T +>B : B, Symbol(B, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 5, 1)) +>T : T, Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 7, 12)) +>A : A, Symbol(A, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 0)) +>T : T, Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 7, 12)) bar(): void; ->bar : () => void +>bar : () => void, Symbol(bar, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 7, 29)) } var b: B; ->b : B ->B : B +>b : B, Symbol(b, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 11, 3)) +>B : B, Symbol(B, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 5, 1)) b.foo(); // should not error >b.foo() : B ->b.foo : { (): B; (): void; } ->b : B ->foo : { (): B; (): void; } +>b.foo : { (): B; (): void; }, Symbol(A.foo, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 16), Decl(mutuallyRecursiveGenericBaseTypes1.ts, 1, 16)) +>b : B, Symbol(b, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 11, 3)) +>foo : { (): B; (): void; }, Symbol(A.foo, Decl(mutuallyRecursiveGenericBaseTypes1.ts, 0, 16), Decl(mutuallyRecursiveGenericBaseTypes1.ts, 1, 16)) diff --git a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.types b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.types index 5cadfa780fe..dcd192dcd9f 100644 --- a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.types +++ b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.types @@ -1,23 +1,24 @@ === tests/cases/compiler/mutuallyRecursiveGenericBaseTypes2.ts === class foo ->foo : foo ->T : T +>foo : foo, Symbol(foo, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 0, 0)) +>T : T, Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 0, 10)) { bar(): foo2 { return null; } ->bar : () => foo2 ->foo2 : foo2 ->T : T +>bar : () => foo2, Symbol(bar, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 1, 1)) +>foo2 : foo2, Symbol(foo2, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 3, 1)) +>T : T, Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 0, 10)) +>null : null } class foo2 extends foo { ->foo2 : foo2 ->T : T ->foo : foo ->T : T +>foo2 : foo2, Symbol(foo2, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 3, 1)) +>T : T, Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 5, 11)) +>foo : foo, Symbol(foo, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 0, 0)) +>T : T, Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 5, 11)) } var test = new foo(); ->test : foo +>test : foo, Symbol(test, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 8, 3)) >new foo() : foo ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 0, 0)) diff --git a/tests/baselines/reference/nameCollision.types b/tests/baselines/reference/nameCollision.types index be14150308b..07b376551b4 100644 --- a/tests/baselines/reference/nameCollision.types +++ b/tests/baselines/reference/nameCollision.types @@ -1,88 +1,97 @@ === tests/cases/conformance/internalModules/codeGeneration/nameCollision.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(nameCollision.ts, 0, 0)) // these 2 statements force an underscore before the 'A' // in the generated function call. var A = 12; ->A : number +>A : number, Symbol(A, Decl(nameCollision.ts, 3, 7)) +>12 : number var _A = ''; ->_A : string +>_A : string, Symbol(_A, Decl(nameCollision.ts, 4, 7)) +>'' : string } module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(nameCollision.ts, 5, 1), Decl(nameCollision.ts, 9, 1)) var A = 12; ->A : number +>A : number, Symbol(A, Decl(nameCollision.ts, 8, 7)) +>12 : number } module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(nameCollision.ts, 5, 1), Decl(nameCollision.ts, 9, 1)) // re-opened module with colliding name // this should add an underscore. class B { ->B : B +>B : B, Symbol(B, Decl(nameCollision.ts, 11, 10)) name: string; ->name : string +>name : string, Symbol(name, Decl(nameCollision.ts, 14, 13)) } } module X { ->X : typeof X +>X : typeof X, Symbol(X, Decl(nameCollision.ts, 17, 1)) var X = 13; ->X : number +>X : number, Symbol(X, Decl(nameCollision.ts, 20, 7)) +>13 : number export module Y { ->Y : typeof X.Y +>Y : typeof X.Y, Symbol(Y, Decl(nameCollision.ts, 20, 15)) var Y = 13; ->Y : number +>Y : number, Symbol(Y, Decl(nameCollision.ts, 22, 11)) +>13 : number export module Z { ->Z : typeof X.Y.Z +>Z : typeof X.Y.Z, Symbol(Z, Decl(nameCollision.ts, 22, 19)) var X = 12; ->X : number +>X : number, Symbol(X, Decl(nameCollision.ts, 24, 15)) +>12 : number var Y = 12; ->Y : number +>Y : number, Symbol(Y, Decl(nameCollision.ts, 25, 15)) +>12 : number var Z = 12; ->Z : number +>Z : number, Symbol(Z, Decl(nameCollision.ts, 26, 15)) +>12 : number } } } module Y.Y { ->Y : typeof Y ->Y : typeof Y.Y +>Y : typeof Y, Symbol(Y, Decl(nameCollision.ts, 29, 1)) +>Y : typeof Y.Y, Symbol(Y, Decl(nameCollision.ts, 31, 9)) export enum Y { ->Y : Y +>Y : Y, Symbol(Y, Decl(nameCollision.ts, 31, 12)) Red, Blue ->Red : Y ->Blue : Y +>Red : Y, Symbol(Y.Red, Decl(nameCollision.ts, 32, 19)) +>Blue : Y, Symbol(Y.Blue, Decl(nameCollision.ts, 33, 12)) } } // no collision, since interface doesn't // generate code. module D { ->D : typeof D +>D : typeof D, Symbol(D, Decl(nameCollision.ts, 35, 1)) export interface D { ->D : D +>D : D, Symbol(D, Decl(nameCollision.ts, 39, 10)) id: number; ->id : number +>id : number, Symbol(id, Decl(nameCollision.ts, 40, 24)) } export var E = 'hello'; ->E : string +>E : string, Symbol(E, Decl(nameCollision.ts, 44, 14)) +>'hello' : string } diff --git a/tests/baselines/reference/nameCollisionsInPropertyAssignments.types b/tests/baselines/reference/nameCollisionsInPropertyAssignments.types index 41bcdd99a71..e78d33912be 100644 --- a/tests/baselines/reference/nameCollisionsInPropertyAssignments.types +++ b/tests/baselines/reference/nameCollisionsInPropertyAssignments.types @@ -1,11 +1,12 @@ === tests/cases/compiler/nameCollisionsInPropertyAssignments.ts === var x = 1 ->x : number +>x : number, Symbol(x, Decl(nameCollisionsInPropertyAssignments.ts, 0, 3)) +>1 : number var y = { x() { x++; } }; ->y : { x(): void; } +>y : { x(): void; }, Symbol(y, Decl(nameCollisionsInPropertyAssignments.ts, 1, 3)) >{ x() { x++; } } : { x(): void; } ->x : () => void +>x : () => void, Symbol(x, Decl(nameCollisionsInPropertyAssignments.ts, 1, 9)) >x++ : number ->x : number +>x : number, Symbol(x, Decl(nameCollisionsInPropertyAssignments.ts, 0, 3)) diff --git a/tests/baselines/reference/nameDelimitedBySlashes.types b/tests/baselines/reference/nameDelimitedBySlashes.types index cea87ff2241..585ef2d16ef 100644 --- a/tests/baselines/reference/nameDelimitedBySlashes.types +++ b/tests/baselines/reference/nameDelimitedBySlashes.types @@ -1,15 +1,17 @@ === tests/cases/conformance/externalModules/foo_1.ts === import foo = require('./test/foo_0'); ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) var x = foo.foo + 42; ->x : number +>x : number, Symbol(x, Decl(foo_1.ts, 1, 3)) >foo.foo + 42 : number ->foo.foo : number ->foo : typeof foo ->foo : number +>foo.foo : number, Symbol(foo.foo, Decl(foo_0.ts, 0, 10)) +>foo : typeof foo, Symbol(foo, Decl(foo_1.ts, 0, 0)) +>foo : number, Symbol(foo.foo, Decl(foo_0.ts, 0, 10)) +>42 : number === tests/cases/conformance/externalModules/test/foo_0.ts === export var foo = 42; ->foo : number +>foo : number, Symbol(foo, Decl(foo_0.ts, 0, 10)) +>42 : number diff --git a/tests/baselines/reference/nameWithRelativePaths.types b/tests/baselines/reference/nameWithRelativePaths.types index 2dc303b2583..d89ce86de57 100644 --- a/tests/baselines/reference/nameWithRelativePaths.types +++ b/tests/baselines/reference/nameWithRelativePaths.types @@ -1,48 +1,51 @@ === tests/cases/conformance/externalModules/test/foo_3.ts === import foo0 = require('../foo_0'); ->foo0 : typeof foo0 +>foo0 : typeof foo0, Symbol(foo0, Decl(foo_3.ts, 0, 0)) import foo1 = require('./test/foo_1'); ->foo1 : typeof foo1 +>foo1 : typeof foo1, Symbol(foo1, Decl(foo_3.ts, 0, 34)) import foo2 = require('./.././test/foo_2'); ->foo2 : typeof foo2 +>foo2 : typeof foo2, Symbol(foo2, Decl(foo_3.ts, 1, 38)) if(foo2.M2.x){ ->foo2.M2.x : boolean ->foo2.M2 : typeof foo2.M2 ->foo2 : typeof foo2 ->M2 : typeof foo2.M2 ->x : boolean +>foo2.M2.x : boolean, Symbol(foo2.M2.x, Decl(foo_2.ts, 1, 11)) +>foo2.M2 : typeof foo2.M2, Symbol(foo2.M2, Decl(foo_2.ts, 0, 0)) +>foo2 : typeof foo2, Symbol(foo2, Decl(foo_3.ts, 1, 38)) +>M2 : typeof foo2.M2, Symbol(foo2.M2, Decl(foo_2.ts, 0, 0)) +>x : boolean, Symbol(foo2.M2.x, Decl(foo_2.ts, 1, 11)) var x = foo0.foo + foo1.f(); ->x : number +>x : number, Symbol(x, Decl(foo_3.ts, 5, 4)) >foo0.foo + foo1.f() : number ->foo0.foo : number ->foo0 : typeof foo0 ->foo : number +>foo0.foo : number, Symbol(foo0.foo, Decl(foo_0.ts, 0, 10)) +>foo0 : typeof foo0, Symbol(foo0, Decl(foo_3.ts, 0, 0)) +>foo : number, Symbol(foo0.foo, Decl(foo_0.ts, 0, 10)) >foo1.f() : number ->foo1.f : () => number ->foo1 : typeof foo1 ->f : () => number +>foo1.f : () => number, Symbol(foo1.f, Decl(foo_1.ts, 0, 0)) +>foo1 : typeof foo1, Symbol(foo1, Decl(foo_3.ts, 0, 34)) +>f : () => number, Symbol(foo1.f, Decl(foo_1.ts, 0, 0)) } === tests/cases/conformance/externalModules/foo_0.ts === export var foo = 42; ->foo : number +>foo : number, Symbol(foo, Decl(foo_0.ts, 0, 10)) +>42 : number === tests/cases/conformance/externalModules/test/test/foo_1.ts === export function f(){ ->f : () => number +>f : () => number, Symbol(f, Decl(foo_1.ts, 0, 0)) return 42; +>42 : number } === tests/cases/conformance/externalModules/test/foo_2.ts === export module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(foo_2.ts, 0, 0)) export var x = true; ->x : boolean +>x : boolean, Symbol(x, Decl(foo_2.ts, 1, 11)) +>true : boolean } diff --git a/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.types b/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.types index 49ba563379e..679ee074599 100644 --- a/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.types +++ b/tests/baselines/reference/namedFunctionExpressionAssignedToClassProperty.types @@ -1,11 +1,11 @@ === tests/cases/compiler/namedFunctionExpressionAssignedToClassProperty.ts === class Foo{ ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(namedFunctionExpressionAssignedToClassProperty.ts, 0, 0)) a = function bar(){ ->a : () => void +>a : () => void, Symbol(a, Decl(namedFunctionExpressionAssignedToClassProperty.ts, 0, 10)) >function bar(){ } : () => void ->bar : () => void +>bar : () => void, Symbol(bar, Decl(namedFunctionExpressionAssignedToClassProperty.ts, 2, 10)) }; // this shouldn't crash the compiler... diff --git a/tests/baselines/reference/namedFunctionExpressionCall.types b/tests/baselines/reference/namedFunctionExpressionCall.types index f70bc8c17dc..b4684ea6675 100644 --- a/tests/baselines/reference/namedFunctionExpressionCall.types +++ b/tests/baselines/reference/namedFunctionExpressionCall.types @@ -1,18 +1,18 @@ === tests/cases/compiler/namedFunctionExpressionCall.ts === var recurser = function foo() { ->recurser : () => void +>recurser : () => void, Symbol(recurser, Decl(namedFunctionExpressionCall.ts, 0, 3)) >function foo() { // using the local name foo(); // using the globally visible name recurser();} : () => void ->foo : () => void +>foo : () => void, Symbol(foo, Decl(namedFunctionExpressionCall.ts, 0, 14)) // using the local name foo(); >foo() : void ->foo : () => void +>foo : () => void, Symbol(foo, Decl(namedFunctionExpressionCall.ts, 0, 14)) // using the globally visible name recurser(); >recurser() : void ->recurser : () => void +>recurser : () => void, Symbol(recurser, Decl(namedFunctionExpressionCall.ts, 0, 3)) }; @@ -20,10 +20,10 @@ var recurser = function foo() { (function bar() { >(function bar() { bar();}) : () => void >function bar() { bar();} : () => void ->bar : () => void +>bar : () => void, Symbol(bar, Decl(namedFunctionExpressionCall.ts, 9, 1)) bar(); >bar() : void ->bar : () => void +>bar : () => void, Symbol(bar, Decl(namedFunctionExpressionCall.ts, 9, 1)) }); diff --git a/tests/baselines/reference/namedFunctionExpressionInModule.types b/tests/baselines/reference/namedFunctionExpressionInModule.types index 9643d9ca069..ea06471e953 100644 --- a/tests/baselines/reference/namedFunctionExpressionInModule.types +++ b/tests/baselines/reference/namedFunctionExpressionInModule.types @@ -1,17 +1,20 @@ === tests/cases/compiler/namedFunctionExpressionInModule.ts === module Variables{ ->Variables : typeof Variables +>Variables : typeof Variables, Symbol(Variables, Decl(namedFunctionExpressionInModule.ts, 0, 0)) var x = function bar(a, b, c) { ->x : (a: any, b: any, c: any) => void +>x : (a: any, b: any, c: any) => void, Symbol(x, Decl(namedFunctionExpressionInModule.ts, 1, 7)) >function bar(a, b, c) { } : (a: any, b: any, c: any) => void ->bar : (a: any, b: any, c: any) => void ->a : any ->b : any ->c : any +>bar : (a: any, b: any, c: any) => void, Symbol(bar, Decl(namedFunctionExpressionInModule.ts, 1, 11)) +>a : any, Symbol(a, Decl(namedFunctionExpressionInModule.ts, 1, 25)) +>b : any, Symbol(b, Decl(namedFunctionExpressionInModule.ts, 1, 27)) +>c : any, Symbol(c, Decl(namedFunctionExpressionInModule.ts, 1, 30)) } x(1, 2, 3); >x(1, 2, 3) : void ->x : (a: any, b: any, c: any) => void +>x : (a: any, b: any, c: any) => void, Symbol(x, Decl(namedFunctionExpressionInModule.ts, 1, 7)) +>1 : number +>2 : number +>3 : number } diff --git a/tests/baselines/reference/namespaces1.types b/tests/baselines/reference/namespaces1.types index b4b41fbeda9..397fffca344 100644 --- a/tests/baselines/reference/namespaces1.types +++ b/tests/baselines/reference/namespaces1.types @@ -1,25 +1,25 @@ === tests/cases/compiler/namespaces1.ts === module X { ->X : unknown +>X : any, Symbol(X, Decl(namespaces1.ts, 0, 0)) export module Y { ->Y : unknown +>Y : any, Symbol(Y, Decl(namespaces1.ts, 0, 10), Decl(namespaces1.ts, 3, 5)) export interface Z { } ->Z : Z +>Z : Z, Symbol(Z, Decl(namespaces1.ts, 1, 21)) } export interface Y { } ->Y : Y +>Y : Y, Symbol(Y, Decl(namespaces1.ts, 0, 10), Decl(namespaces1.ts, 3, 5)) } var x: X.Y.Z; ->x : X.Y.Z ->X : unknown ->Y : unknown ->Z : X.Y.Z +>x : X.Y.Z, Symbol(x, Decl(namespaces1.ts, 7, 3)) +>X : any, Symbol(X, Decl(namespaces1.ts, 0, 0)) +>Y : any, Symbol(X.Y, Decl(namespaces1.ts, 0, 10), Decl(namespaces1.ts, 3, 5)) +>Z : X.Y.Z, Symbol(X.Y.Z, Decl(namespaces1.ts, 1, 21)) var x2: X.Y; ->x2 : X.Y ->X : unknown ->Y : X.Y +>x2 : X.Y, Symbol(x2, Decl(namespaces1.ts, 8, 3)) +>X : any, Symbol(X, Decl(namespaces1.ts, 0, 0)) +>Y : X.Y, Symbol(X.Y, Decl(namespaces1.ts, 0, 10), Decl(namespaces1.ts, 3, 5)) diff --git a/tests/baselines/reference/namespaces2.types b/tests/baselines/reference/namespaces2.types index 909f56f561a..b1aff5f2093 100644 --- a/tests/baselines/reference/namespaces2.types +++ b/tests/baselines/reference/namespaces2.types @@ -1,24 +1,24 @@ === tests/cases/compiler/namespaces2.ts === module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(namespaces2.ts, 0, 0)) export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(namespaces2.ts, 0, 10)) export class C { } ->C : C +>C : C, Symbol(C, Decl(namespaces2.ts, 1, 21)) } } var c: A.B.C = new A.B.C(); ->c : A.B.C ->A : unknown ->B : unknown ->C : A.B.C +>c : A.B.C, Symbol(c, Decl(namespaces2.ts, 6, 3)) +>A : any, Symbol(A, Decl(namespaces2.ts, 0, 0)) +>B : any, Symbol(A.B, Decl(namespaces2.ts, 0, 10)) +>C : A.B.C, Symbol(A.B.C, Decl(namespaces2.ts, 1, 21)) >new A.B.C() : A.B.C ->A.B.C : typeof A.B.C ->A.B : typeof A.B ->A : typeof A ->B : typeof A.B ->C : typeof A.B.C +>A.B.C : typeof A.B.C, Symbol(A.B.C, Decl(namespaces2.ts, 1, 21)) +>A.B : typeof A.B, Symbol(A.B, Decl(namespaces2.ts, 0, 10)) +>A : typeof A, Symbol(A, Decl(namespaces2.ts, 0, 0)) +>B : typeof A.B, Symbol(A.B, Decl(namespaces2.ts, 0, 10)) +>C : typeof A.B.C, Symbol(A.B.C, Decl(namespaces2.ts, 1, 21)) diff --git a/tests/baselines/reference/negateOperatorWithAnyOtherType.types b/tests/baselines/reference/negateOperatorWithAnyOtherType.types index 85a2d9c9233..47c8164aeb3 100644 --- a/tests/baselines/reference/negateOperatorWithAnyOtherType.types +++ b/tests/baselines/reference/negateOperatorWithAnyOtherType.types @@ -2,188 +2,194 @@ // - operator on any type var ANY: any; ->ANY : any +>ANY : any, Symbol(ANY, Decl(negateOperatorWithAnyOtherType.ts, 2, 3)) var ANY1; ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(negateOperatorWithAnyOtherType.ts, 3, 3)) var ANY2: any[] = ["", ""]; ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(negateOperatorWithAnyOtherType.ts, 4, 3)) >["", ""] : string[] +>"" : string +>"" : string var obj: () => {} ->obj : () => {} +>obj : () => {}, Symbol(obj, Decl(negateOperatorWithAnyOtherType.ts, 5, 3)) var obj1 = { x: "", y: () => { }}; ->obj1 : { x: string; y: () => void; } +>obj1 : { x: string; y: () => void; }, Symbol(obj1, Decl(negateOperatorWithAnyOtherType.ts, 6, 3)) >{ x: "", y: () => { }} : { x: string; y: () => void; } ->x : string ->y : () => void +>x : string, Symbol(x, Decl(negateOperatorWithAnyOtherType.ts, 6, 12)) +>"" : string +>y : () => void, Symbol(y, Decl(negateOperatorWithAnyOtherType.ts, 6, 19)) >() => { } : () => void function foo(): any { ->foo : () => any +>foo : () => any, Symbol(foo, Decl(negateOperatorWithAnyOtherType.ts, 6, 34)) var a; ->a : any +>a : any, Symbol(a, Decl(negateOperatorWithAnyOtherType.ts, 9, 7)) return a; ->a : any +>a : any, Symbol(a, Decl(negateOperatorWithAnyOtherType.ts, 9, 7)) } class A { ->A : A +>A : A, Symbol(A, Decl(negateOperatorWithAnyOtherType.ts, 11, 1)) public a: any; ->a : any +>a : any, Symbol(a, Decl(negateOperatorWithAnyOtherType.ts, 12, 9)) static foo() { ->foo : () => any +>foo : () => any, Symbol(A.foo, Decl(negateOperatorWithAnyOtherType.ts, 13, 18)) var a; ->a : any +>a : any, Symbol(a, Decl(negateOperatorWithAnyOtherType.ts, 15, 11)) return a; ->a : any +>a : any, Symbol(a, Decl(negateOperatorWithAnyOtherType.ts, 15, 11)) } } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(negateOperatorWithAnyOtherType.ts, 18, 1)) export var n: any; ->n : any +>n : any, Symbol(n, Decl(negateOperatorWithAnyOtherType.ts, 20, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(negateOperatorWithAnyOtherType.ts, 22, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(negateOperatorWithAnyOtherType.ts, 11, 1)) // any type var var ResultIsNumber1 = -ANY1; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(negateOperatorWithAnyOtherType.ts, 25, 3)) >-ANY1 : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(negateOperatorWithAnyOtherType.ts, 3, 3)) var ResultIsNumber2 = -ANY2; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(negateOperatorWithAnyOtherType.ts, 26, 3)) >-ANY2 : number ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(negateOperatorWithAnyOtherType.ts, 4, 3)) var ResultIsNumber3 = -A; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(negateOperatorWithAnyOtherType.ts, 27, 3)) >-A : number ->A : typeof A +>A : typeof A, Symbol(A, Decl(negateOperatorWithAnyOtherType.ts, 11, 1)) var ResultIsNumber4 = -M; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(negateOperatorWithAnyOtherType.ts, 28, 3)) >-M : number ->M : typeof M +>M : typeof M, Symbol(M, Decl(negateOperatorWithAnyOtherType.ts, 18, 1)) var ResultIsNumber5 = -obj; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(negateOperatorWithAnyOtherType.ts, 29, 3)) >-obj : number ->obj : () => {} +>obj : () => {}, Symbol(obj, Decl(negateOperatorWithAnyOtherType.ts, 5, 3)) var ResultIsNumber6 = -obj1; ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(negateOperatorWithAnyOtherType.ts, 30, 3)) >-obj1 : number ->obj1 : { x: string; y: () => void; } +>obj1 : { x: string; y: () => void; }, Symbol(obj1, Decl(negateOperatorWithAnyOtherType.ts, 6, 3)) // any type literal var ResultIsNumber7 = -undefined; ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(negateOperatorWithAnyOtherType.ts, 33, 3)) >-undefined : number ->undefined : undefined +>undefined : undefined, Symbol(undefined) var ResultIsNumber = -null; ->ResultIsNumber : number +>ResultIsNumber : number, Symbol(ResultIsNumber, Decl(negateOperatorWithAnyOtherType.ts, 34, 3)) >-null : number +>null : null // any type expressions var ResultIsNumber8 = -ANY2[0]; ->ResultIsNumber8 : number +>ResultIsNumber8 : number, Symbol(ResultIsNumber8, Decl(negateOperatorWithAnyOtherType.ts, 37, 3)) >-ANY2[0] : number >ANY2[0] : any ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(negateOperatorWithAnyOtherType.ts, 4, 3)) +>0 : number var ResultIsNumber9 = -obj1.x; ->ResultIsNumber9 : number +>ResultIsNumber9 : number, Symbol(ResultIsNumber9, Decl(negateOperatorWithAnyOtherType.ts, 38, 3)) >-obj1.x : number ->obj1.x : string ->obj1 : { x: string; y: () => void; } ->x : string +>obj1.x : string, Symbol(x, Decl(negateOperatorWithAnyOtherType.ts, 6, 12)) +>obj1 : { x: string; y: () => void; }, Symbol(obj1, Decl(negateOperatorWithAnyOtherType.ts, 6, 3)) +>x : string, Symbol(x, Decl(negateOperatorWithAnyOtherType.ts, 6, 12)) var ResultIsNumber10 = -obj1.y; ->ResultIsNumber10 : number +>ResultIsNumber10 : number, Symbol(ResultIsNumber10, Decl(negateOperatorWithAnyOtherType.ts, 39, 3)) >-obj1.y : number ->obj1.y : () => void ->obj1 : { x: string; y: () => void; } ->y : () => void +>obj1.y : () => void, Symbol(y, Decl(negateOperatorWithAnyOtherType.ts, 6, 19)) +>obj1 : { x: string; y: () => void; }, Symbol(obj1, Decl(negateOperatorWithAnyOtherType.ts, 6, 3)) +>y : () => void, Symbol(y, Decl(negateOperatorWithAnyOtherType.ts, 6, 19)) var ResultIsNumber11 = -objA.a; ->ResultIsNumber11 : number +>ResultIsNumber11 : number, Symbol(ResultIsNumber11, Decl(negateOperatorWithAnyOtherType.ts, 40, 3)) >-objA.a : number ->objA.a : any ->objA : A ->a : any +>objA.a : any, Symbol(A.a, Decl(negateOperatorWithAnyOtherType.ts, 12, 9)) +>objA : A, Symbol(objA, Decl(negateOperatorWithAnyOtherType.ts, 22, 3)) +>a : any, Symbol(A.a, Decl(negateOperatorWithAnyOtherType.ts, 12, 9)) var ResultIsNumber12 = -M.n; ->ResultIsNumber12 : number +>ResultIsNumber12 : number, Symbol(ResultIsNumber12, Decl(negateOperatorWithAnyOtherType.ts, 41, 3)) >-M.n : number ->M.n : any ->M : typeof M ->n : any +>M.n : any, Symbol(M.n, Decl(negateOperatorWithAnyOtherType.ts, 20, 14)) +>M : typeof M, Symbol(M, Decl(negateOperatorWithAnyOtherType.ts, 18, 1)) +>n : any, Symbol(M.n, Decl(negateOperatorWithAnyOtherType.ts, 20, 14)) var ResultIsNumber13 = -foo(); ->ResultIsNumber13 : number +>ResultIsNumber13 : number, Symbol(ResultIsNumber13, Decl(negateOperatorWithAnyOtherType.ts, 42, 3)) >-foo() : number >foo() : any ->foo : () => any +>foo : () => any, Symbol(foo, Decl(negateOperatorWithAnyOtherType.ts, 6, 34)) var ResultIsNumber14 = -A.foo(); ->ResultIsNumber14 : number +>ResultIsNumber14 : number, Symbol(ResultIsNumber14, Decl(negateOperatorWithAnyOtherType.ts, 43, 3)) >-A.foo() : number >A.foo() : any ->A.foo : () => any ->A : typeof A ->foo : () => any +>A.foo : () => any, Symbol(A.foo, Decl(negateOperatorWithAnyOtherType.ts, 13, 18)) +>A : typeof A, Symbol(A, Decl(negateOperatorWithAnyOtherType.ts, 11, 1)) +>foo : () => any, Symbol(A.foo, Decl(negateOperatorWithAnyOtherType.ts, 13, 18)) var ResultIsNumber15 = -(ANY - ANY1); ->ResultIsNumber15 : number +>ResultIsNumber15 : number, Symbol(ResultIsNumber15, Decl(negateOperatorWithAnyOtherType.ts, 44, 3)) >-(ANY - ANY1) : number >(ANY - ANY1) : number >ANY - ANY1 : number ->ANY : any ->ANY1 : any +>ANY : any, Symbol(ANY, Decl(negateOperatorWithAnyOtherType.ts, 2, 3)) +>ANY1 : any, Symbol(ANY1, Decl(negateOperatorWithAnyOtherType.ts, 3, 3)) // miss assignment operators -ANY; >-ANY : number ->ANY : any +>ANY : any, Symbol(ANY, Decl(negateOperatorWithAnyOtherType.ts, 2, 3)) -ANY1; >-ANY1 : number ->ANY1 : any +>ANY1 : any, Symbol(ANY1, Decl(negateOperatorWithAnyOtherType.ts, 3, 3)) -ANY2[0]; >-ANY2[0] : number >ANY2[0] : any ->ANY2 : any[] +>ANY2 : any[], Symbol(ANY2, Decl(negateOperatorWithAnyOtherType.ts, 4, 3)) +>0 : number -ANY, ANY1; >-ANY, ANY1 : any >-ANY : number ->ANY : any ->ANY1 : any +>ANY : any, Symbol(ANY, Decl(negateOperatorWithAnyOtherType.ts, 2, 3)) +>ANY1 : any, Symbol(ANY1, Decl(negateOperatorWithAnyOtherType.ts, 3, 3)) -objA.a; >-objA.a : number ->objA.a : any ->objA : A ->a : any +>objA.a : any, Symbol(A.a, Decl(negateOperatorWithAnyOtherType.ts, 12, 9)) +>objA : A, Symbol(objA, Decl(negateOperatorWithAnyOtherType.ts, 22, 3)) +>a : any, Symbol(A.a, Decl(negateOperatorWithAnyOtherType.ts, 12, 9)) -M.n; >-M.n : number ->M.n : any ->M : typeof M ->n : any +>M.n : any, Symbol(M.n, Decl(negateOperatorWithAnyOtherType.ts, 20, 14)) +>M : typeof M, Symbol(M, Decl(negateOperatorWithAnyOtherType.ts, 18, 1)) +>n : any, Symbol(M.n, Decl(negateOperatorWithAnyOtherType.ts, 20, 14)) diff --git a/tests/baselines/reference/negateOperatorWithBooleanType.types b/tests/baselines/reference/negateOperatorWithBooleanType.types index 49467d87845..530a3b382cc 100644 --- a/tests/baselines/reference/negateOperatorWithBooleanType.types +++ b/tests/baselines/reference/negateOperatorWithBooleanType.types @@ -1,105 +1,113 @@ === tests/cases/conformance/expressions/unaryOperators/negateOperator/negateOperatorWithBooleanType.ts === // - operator on boolean type var BOOLEAN: boolean; ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(negateOperatorWithBooleanType.ts, 1, 3)) function foo(): boolean { return true; } ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(negateOperatorWithBooleanType.ts, 1, 21)) +>true : boolean class A { ->A : A +>A : A, Symbol(A, Decl(negateOperatorWithBooleanType.ts, 3, 40)) public a: boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(negateOperatorWithBooleanType.ts, 5, 9)) static foo() { return false; } ->foo : () => boolean +>foo : () => boolean, Symbol(A.foo, Decl(negateOperatorWithBooleanType.ts, 6, 22)) +>false : boolean } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(negateOperatorWithBooleanType.ts, 8, 1)) export var n: boolean; ->n : boolean +>n : boolean, Symbol(n, Decl(negateOperatorWithBooleanType.ts, 10, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(negateOperatorWithBooleanType.ts, 13, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(negateOperatorWithBooleanType.ts, 3, 40)) // boolean type var var ResultIsNumber1 = -BOOLEAN; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(negateOperatorWithBooleanType.ts, 16, 3)) >-BOOLEAN : number ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(negateOperatorWithBooleanType.ts, 1, 3)) // boolean type literal var ResultIsNumber2 = -true; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(negateOperatorWithBooleanType.ts, 19, 3)) >-true : number +>true : boolean var ResultIsNumber3 = -{ x: true, y: false }; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(negateOperatorWithBooleanType.ts, 20, 3)) >-{ x: true, y: false } : number >{ x: true, y: false } : { x: boolean; y: boolean; } ->x : boolean ->y : boolean +>x : boolean, Symbol(x, Decl(negateOperatorWithBooleanType.ts, 20, 24)) +>true : boolean +>y : boolean, Symbol(y, Decl(negateOperatorWithBooleanType.ts, 20, 33)) +>false : boolean // boolean type expressions var ResultIsNumber4 = -objA.a; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(negateOperatorWithBooleanType.ts, 23, 3)) >-objA.a : number ->objA.a : boolean ->objA : A ->a : boolean +>objA.a : boolean, Symbol(A.a, Decl(negateOperatorWithBooleanType.ts, 5, 9)) +>objA : A, Symbol(objA, Decl(negateOperatorWithBooleanType.ts, 13, 3)) +>a : boolean, Symbol(A.a, Decl(negateOperatorWithBooleanType.ts, 5, 9)) var ResultIsNumber5 = -M.n; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(negateOperatorWithBooleanType.ts, 24, 3)) >-M.n : number ->M.n : boolean ->M : typeof M ->n : boolean +>M.n : boolean, Symbol(M.n, Decl(negateOperatorWithBooleanType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(negateOperatorWithBooleanType.ts, 8, 1)) +>n : boolean, Symbol(M.n, Decl(negateOperatorWithBooleanType.ts, 10, 14)) var ResultIsNumber6 = -foo(); ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(negateOperatorWithBooleanType.ts, 25, 3)) >-foo() : number >foo() : boolean ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(negateOperatorWithBooleanType.ts, 1, 21)) var ResultIsNumber7 = -A.foo(); ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(negateOperatorWithBooleanType.ts, 26, 3)) >-A.foo() : number >A.foo() : boolean ->A.foo : () => boolean ->A : typeof A ->foo : () => boolean +>A.foo : () => boolean, Symbol(A.foo, Decl(negateOperatorWithBooleanType.ts, 6, 22)) +>A : typeof A, Symbol(A, Decl(negateOperatorWithBooleanType.ts, 3, 40)) +>foo : () => boolean, Symbol(A.foo, Decl(negateOperatorWithBooleanType.ts, 6, 22)) // miss assignment operators -true; >-true : number +>true : boolean -BOOLEAN; >-BOOLEAN : number ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(negateOperatorWithBooleanType.ts, 1, 3)) -foo(); >-foo() : number >foo() : boolean ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(negateOperatorWithBooleanType.ts, 1, 21)) -true, false; >-true, false : boolean >-true : number +>true : boolean +>false : boolean -objA.a; >-objA.a : number ->objA.a : boolean ->objA : A ->a : boolean +>objA.a : boolean, Symbol(A.a, Decl(negateOperatorWithBooleanType.ts, 5, 9)) +>objA : A, Symbol(objA, Decl(negateOperatorWithBooleanType.ts, 13, 3)) +>a : boolean, Symbol(A.a, Decl(negateOperatorWithBooleanType.ts, 5, 9)) -M.n; >-M.n : number ->M.n : boolean ->M : typeof M ->n : boolean +>M.n : boolean, Symbol(M.n, Decl(negateOperatorWithBooleanType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(negateOperatorWithBooleanType.ts, 8, 1)) +>n : boolean, Symbol(M.n, Decl(negateOperatorWithBooleanType.ts, 10, 14)) diff --git a/tests/baselines/reference/negateOperatorWithEnumType.types b/tests/baselines/reference/negateOperatorWithEnumType.types index 96a33ff4c6e..d2f9225c983 100644 --- a/tests/baselines/reference/negateOperatorWithEnumType.types +++ b/tests/baselines/reference/negateOperatorWithEnumType.types @@ -2,54 +2,57 @@ // - operator on enum type enum ENUM { }; ->ENUM : ENUM +>ENUM : ENUM, Symbol(ENUM, Decl(negateOperatorWithEnumType.ts, 0, 0)) enum ENUM1 { A, B, "" }; ->ENUM1 : ENUM1 ->A : ENUM1 ->B : ENUM1 +>ENUM1 : ENUM1, Symbol(ENUM1, Decl(negateOperatorWithEnumType.ts, 2, 14)) +>A : ENUM1, Symbol(ENUM1.A, Decl(negateOperatorWithEnumType.ts, 3, 12)) +>B : ENUM1, Symbol(ENUM1.B, Decl(negateOperatorWithEnumType.ts, 3, 15)) // enum type var var ResultIsNumber1 = -ENUM; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(negateOperatorWithEnumType.ts, 6, 3)) >-ENUM : number ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(negateOperatorWithEnumType.ts, 0, 0)) // expressions var ResultIsNumber2 = -ENUM1["B"]; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(negateOperatorWithEnumType.ts, 9, 3)) >-ENUM1["B"] : number >ENUM1["B"] : ENUM1 ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(negateOperatorWithEnumType.ts, 2, 14)) +>"B" : string, Symbol(ENUM1.B, Decl(negateOperatorWithEnumType.ts, 3, 15)) var ResultIsNumber3 = -(ENUM1.B + ENUM1[""]); ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(negateOperatorWithEnumType.ts, 10, 3)) >-(ENUM1.B + ENUM1[""]) : number >(ENUM1.B + ENUM1[""]) : number >ENUM1.B + ENUM1[""] : number ->ENUM1.B : ENUM1 ->ENUM1 : typeof ENUM1 ->B : ENUM1 +>ENUM1.B : ENUM1, Symbol(ENUM1.B, Decl(negateOperatorWithEnumType.ts, 3, 15)) +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(negateOperatorWithEnumType.ts, 2, 14)) +>B : ENUM1, Symbol(ENUM1.B, Decl(negateOperatorWithEnumType.ts, 3, 15)) >ENUM1[""] : ENUM1 ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(negateOperatorWithEnumType.ts, 2, 14)) +>"" : string, Symbol(ENUM1."", Decl(negateOperatorWithEnumType.ts, 3, 18)) // miss assignment operators -ENUM; >-ENUM : number ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(negateOperatorWithEnumType.ts, 0, 0)) -ENUM1; >-ENUM1 : number ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(negateOperatorWithEnumType.ts, 2, 14)) -ENUM1["B"]; >-ENUM1["B"] : number >ENUM1["B"] : ENUM1 ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(negateOperatorWithEnumType.ts, 2, 14)) +>"B" : string, Symbol(ENUM1.B, Decl(negateOperatorWithEnumType.ts, 3, 15)) -ENUM, ENUM1; >-ENUM, ENUM1 : typeof ENUM1 >-ENUM : number ->ENUM : typeof ENUM ->ENUM1 : typeof ENUM1 +>ENUM : typeof ENUM, Symbol(ENUM, Decl(negateOperatorWithEnumType.ts, 0, 0)) +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(negateOperatorWithEnumType.ts, 2, 14)) diff --git a/tests/baselines/reference/negateOperatorWithNumberType.types b/tests/baselines/reference/negateOperatorWithNumberType.types index f6cee89f6df..52c4609fbfb 100644 --- a/tests/baselines/reference/negateOperatorWithNumberType.types +++ b/tests/baselines/reference/negateOperatorWithNumberType.types @@ -1,148 +1,158 @@ === tests/cases/conformance/expressions/unaryOperators/negateOperator/negateOperatorWithNumberType.ts === // - operator on number type var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(negateOperatorWithNumberType.ts, 1, 3)) var NUMBER1: number[] = [1, 2]; ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(negateOperatorWithNumberType.ts, 2, 3)) >[1, 2] : number[] +>1 : number +>2 : number function foo(): number { return 1; } ->foo : () => number +>foo : () => number, Symbol(foo, Decl(negateOperatorWithNumberType.ts, 2, 31)) +>1 : number class A { ->A : A +>A : A, Symbol(A, Decl(negateOperatorWithNumberType.ts, 4, 36)) public a: number; ->a : number +>a : number, Symbol(a, Decl(negateOperatorWithNumberType.ts, 6, 9)) static foo() { return 1; } ->foo : () => number +>foo : () => number, Symbol(A.foo, Decl(negateOperatorWithNumberType.ts, 7, 21)) +>1 : number } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(negateOperatorWithNumberType.ts, 9, 1)) export var n: number; ->n : number +>n : number, Symbol(n, Decl(negateOperatorWithNumberType.ts, 11, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(negateOperatorWithNumberType.ts, 14, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(negateOperatorWithNumberType.ts, 4, 36)) // number type var var ResultIsNumber1 = -NUMBER; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(negateOperatorWithNumberType.ts, 17, 3)) >-NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(negateOperatorWithNumberType.ts, 1, 3)) var ResultIsNumber2 = -NUMBER1; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(negateOperatorWithNumberType.ts, 18, 3)) >-NUMBER1 : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(negateOperatorWithNumberType.ts, 2, 3)) // number type literal var ResultIsNumber3 = -1; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(negateOperatorWithNumberType.ts, 21, 3)) >-1 : number +>1 : number var ResultIsNumber4 = -{ x: 1, y: 2}; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(negateOperatorWithNumberType.ts, 22, 3)) >-{ x: 1, y: 2} : number >{ x: 1, y: 2} : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(negateOperatorWithNumberType.ts, 22, 24)) +>1 : number +>y : number, Symbol(y, Decl(negateOperatorWithNumberType.ts, 22, 30)) +>2 : number var ResultIsNumber5 = -{ x: 1, y: (n: number) => { return n; } }; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(negateOperatorWithNumberType.ts, 23, 3)) >-{ x: 1, y: (n: number) => { return n; } } : number >{ x: 1, y: (n: number) => { return n; } } : { x: number; y: (n: number) => number; } ->x : number ->y : (n: number) => number +>x : number, Symbol(x, Decl(negateOperatorWithNumberType.ts, 23, 24)) +>1 : number +>y : (n: number) => number, Symbol(y, Decl(negateOperatorWithNumberType.ts, 23, 30)) >(n: number) => { return n; } : (n: number) => number ->n : number ->n : number +>n : number, Symbol(n, Decl(negateOperatorWithNumberType.ts, 23, 35)) +>n : number, Symbol(n, Decl(negateOperatorWithNumberType.ts, 23, 35)) // number type expressions var ResultIsNumber6 = -objA.a; ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(negateOperatorWithNumberType.ts, 26, 3)) >-objA.a : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(negateOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(negateOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(negateOperatorWithNumberType.ts, 6, 9)) var ResultIsNumber7 = -M.n; ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(negateOperatorWithNumberType.ts, 27, 3)) >-M.n : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(negateOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(negateOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(negateOperatorWithNumberType.ts, 11, 14)) var ResultIsNumber8 = -NUMBER1[0]; ->ResultIsNumber8 : number +>ResultIsNumber8 : number, Symbol(ResultIsNumber8, Decl(negateOperatorWithNumberType.ts, 28, 3)) >-NUMBER1[0] : number >NUMBER1[0] : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(negateOperatorWithNumberType.ts, 2, 3)) +>0 : number var ResultIsNumber9 = -foo(); ->ResultIsNumber9 : number +>ResultIsNumber9 : number, Symbol(ResultIsNumber9, Decl(negateOperatorWithNumberType.ts, 29, 3)) >-foo() : number >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(negateOperatorWithNumberType.ts, 2, 31)) var ResultIsNumber10 = -A.foo(); ->ResultIsNumber10 : number +>ResultIsNumber10 : number, Symbol(ResultIsNumber10, Decl(negateOperatorWithNumberType.ts, 30, 3)) >-A.foo() : number >A.foo() : number ->A.foo : () => number ->A : typeof A ->foo : () => number +>A.foo : () => number, Symbol(A.foo, Decl(negateOperatorWithNumberType.ts, 7, 21)) +>A : typeof A, Symbol(A, Decl(negateOperatorWithNumberType.ts, 4, 36)) +>foo : () => number, Symbol(A.foo, Decl(negateOperatorWithNumberType.ts, 7, 21)) var ResultIsNumber11 = -(NUMBER - NUMBER); ->ResultIsNumber11 : number +>ResultIsNumber11 : number, Symbol(ResultIsNumber11, Decl(negateOperatorWithNumberType.ts, 31, 3)) >-(NUMBER - NUMBER) : number >(NUMBER - NUMBER) : number >NUMBER - NUMBER : number ->NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(negateOperatorWithNumberType.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(negateOperatorWithNumberType.ts, 1, 3)) // miss assignment operators -1; >-1 : number +>1 : number -NUMBER; >-NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(negateOperatorWithNumberType.ts, 1, 3)) -NUMBER1; >-NUMBER1 : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(negateOperatorWithNumberType.ts, 2, 3)) -foo(); >-foo() : number >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(negateOperatorWithNumberType.ts, 2, 31)) -objA.a; >-objA.a : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(negateOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(negateOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(negateOperatorWithNumberType.ts, 6, 9)) -M.n; >-M.n : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(negateOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(negateOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(negateOperatorWithNumberType.ts, 11, 14)) -objA.a, M.n; >-objA.a, M.n : number >-objA.a : number ->objA.a : number ->objA : A ->a : number ->M.n : number ->M : typeof M ->n : number +>objA.a : number, Symbol(A.a, Decl(negateOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(negateOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(negateOperatorWithNumberType.ts, 6, 9)) +>M.n : number, Symbol(M.n, Decl(negateOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(negateOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(negateOperatorWithNumberType.ts, 11, 14)) diff --git a/tests/baselines/reference/negateOperatorWithStringType.types b/tests/baselines/reference/negateOperatorWithStringType.types index 43a9f05cc5b..0ec9d2d61a1 100644 --- a/tests/baselines/reference/negateOperatorWithStringType.types +++ b/tests/baselines/reference/negateOperatorWithStringType.types @@ -1,144 +1,155 @@ === tests/cases/conformance/expressions/unaryOperators/negateOperator/negateOperatorWithStringType.ts === // - operator on string type var STRING: string; ->STRING : string +>STRING : string, Symbol(STRING, Decl(negateOperatorWithStringType.ts, 1, 3)) var STRING1: string[] = ["", "abc"]; ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(negateOperatorWithStringType.ts, 2, 3)) >["", "abc"] : string[] +>"" : string +>"abc" : string function foo(): string { return "abc"; } ->foo : () => string +>foo : () => string, Symbol(foo, Decl(negateOperatorWithStringType.ts, 2, 36)) +>"abc" : string class A { ->A : A +>A : A, Symbol(A, Decl(negateOperatorWithStringType.ts, 4, 40)) public a: string; ->a : string +>a : string, Symbol(a, Decl(negateOperatorWithStringType.ts, 6, 9)) static foo() { return ""; } ->foo : () => string +>foo : () => string, Symbol(A.foo, Decl(negateOperatorWithStringType.ts, 7, 21)) +>"" : string } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(negateOperatorWithStringType.ts, 9, 1)) export var n: string; ->n : string +>n : string, Symbol(n, Decl(negateOperatorWithStringType.ts, 11, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(negateOperatorWithStringType.ts, 14, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(negateOperatorWithStringType.ts, 4, 40)) // string type var var ResultIsNumber1 = -STRING; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(negateOperatorWithStringType.ts, 17, 3)) >-STRING : number ->STRING : string +>STRING : string, Symbol(STRING, Decl(negateOperatorWithStringType.ts, 1, 3)) var ResultIsNumber2 = -STRING1; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(negateOperatorWithStringType.ts, 18, 3)) >-STRING1 : number ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(negateOperatorWithStringType.ts, 2, 3)) // string type literal var ResultIsNumber3 = -""; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(negateOperatorWithStringType.ts, 21, 3)) >-"" : number +>"" : string var ResultIsNumber4 = -{ x: "", y: "" }; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(negateOperatorWithStringType.ts, 22, 3)) >-{ x: "", y: "" } : number >{ x: "", y: "" } : { x: string; y: string; } ->x : string ->y : string +>x : string, Symbol(x, Decl(negateOperatorWithStringType.ts, 22, 24)) +>"" : string +>y : string, Symbol(y, Decl(negateOperatorWithStringType.ts, 22, 31)) +>"" : string var ResultIsNumber5 = -{ x: "", y: (s: string) => { return s; } }; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(negateOperatorWithStringType.ts, 23, 3)) >-{ x: "", y: (s: string) => { return s; } } : number >{ x: "", y: (s: string) => { return s; } } : { x: string; y: (s: string) => string; } ->x : string ->y : (s: string) => string +>x : string, Symbol(x, Decl(negateOperatorWithStringType.ts, 23, 24)) +>"" : string +>y : (s: string) => string, Symbol(y, Decl(negateOperatorWithStringType.ts, 23, 31)) >(s: string) => { return s; } : (s: string) => string ->s : string ->s : string +>s : string, Symbol(s, Decl(negateOperatorWithStringType.ts, 23, 36)) +>s : string, Symbol(s, Decl(negateOperatorWithStringType.ts, 23, 36)) // string type expressions var ResultIsNumber6 = -objA.a; ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(negateOperatorWithStringType.ts, 26, 3)) >-objA.a : number ->objA.a : string ->objA : A ->a : string +>objA.a : string, Symbol(A.a, Decl(negateOperatorWithStringType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(negateOperatorWithStringType.ts, 14, 3)) +>a : string, Symbol(A.a, Decl(negateOperatorWithStringType.ts, 6, 9)) var ResultIsNumber7 = -M.n; ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(negateOperatorWithStringType.ts, 27, 3)) >-M.n : number ->M.n : string ->M : typeof M ->n : string +>M.n : string, Symbol(M.n, Decl(negateOperatorWithStringType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(negateOperatorWithStringType.ts, 9, 1)) +>n : string, Symbol(M.n, Decl(negateOperatorWithStringType.ts, 11, 14)) var ResultIsNumber8 = -STRING1[0]; ->ResultIsNumber8 : number +>ResultIsNumber8 : number, Symbol(ResultIsNumber8, Decl(negateOperatorWithStringType.ts, 28, 3)) >-STRING1[0] : number >STRING1[0] : string ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(negateOperatorWithStringType.ts, 2, 3)) +>0 : number var ResultIsNumber9 = -foo(); ->ResultIsNumber9 : number +>ResultIsNumber9 : number, Symbol(ResultIsNumber9, Decl(negateOperatorWithStringType.ts, 29, 3)) >-foo() : number >foo() : string ->foo : () => string +>foo : () => string, Symbol(foo, Decl(negateOperatorWithStringType.ts, 2, 36)) var ResultIsNumber10 = -A.foo(); ->ResultIsNumber10 : number +>ResultIsNumber10 : number, Symbol(ResultIsNumber10, Decl(negateOperatorWithStringType.ts, 30, 3)) >-A.foo() : number >A.foo() : string ->A.foo : () => string ->A : typeof A ->foo : () => string +>A.foo : () => string, Symbol(A.foo, Decl(negateOperatorWithStringType.ts, 7, 21)) +>A : typeof A, Symbol(A, Decl(negateOperatorWithStringType.ts, 4, 40)) +>foo : () => string, Symbol(A.foo, Decl(negateOperatorWithStringType.ts, 7, 21)) var ResultIsNumber11 = -(STRING + STRING); ->ResultIsNumber11 : number +>ResultIsNumber11 : number, Symbol(ResultIsNumber11, Decl(negateOperatorWithStringType.ts, 31, 3)) >-(STRING + STRING) : number >(STRING + STRING) : string >STRING + STRING : string ->STRING : string ->STRING : string +>STRING : string, Symbol(STRING, Decl(negateOperatorWithStringType.ts, 1, 3)) +>STRING : string, Symbol(STRING, Decl(negateOperatorWithStringType.ts, 1, 3)) var ResultIsNumber12 = -STRING.charAt(0); ->ResultIsNumber12 : number +>ResultIsNumber12 : number, Symbol(ResultIsNumber12, Decl(negateOperatorWithStringType.ts, 32, 3)) >-STRING.charAt(0) : number >STRING.charAt(0) : string ->STRING.charAt : (pos: number) => string ->STRING : string ->charAt : (pos: number) => string +>STRING.charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>STRING : string, Symbol(STRING, Decl(negateOperatorWithStringType.ts, 1, 3)) +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number // miss assignment operators -""; >-"" : number +>"" : string -STRING; >-STRING : number ->STRING : string +>STRING : string, Symbol(STRING, Decl(negateOperatorWithStringType.ts, 1, 3)) -STRING1; >-STRING1 : number ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(negateOperatorWithStringType.ts, 2, 3)) -foo(); >-foo() : number >foo() : string ->foo : () => string +>foo : () => string, Symbol(foo, Decl(negateOperatorWithStringType.ts, 2, 36)) -objA.a,M.n; >-objA.a,M.n : string >-objA.a : number ->objA.a : string ->objA : A ->a : string ->M.n : string ->M : typeof M ->n : string +>objA.a : string, Symbol(A.a, Decl(negateOperatorWithStringType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(negateOperatorWithStringType.ts, 14, 3)) +>a : string, Symbol(A.a, Decl(negateOperatorWithStringType.ts, 6, 9)) +>M.n : string, Symbol(M.n, Decl(negateOperatorWithStringType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(negateOperatorWithStringType.ts, 9, 1)) +>n : string, Symbol(M.n, Decl(negateOperatorWithStringType.ts, 11, 14)) diff --git a/tests/baselines/reference/negativeZero.types b/tests/baselines/reference/negativeZero.types index 97ba45a741a..3999f99d893 100644 --- a/tests/baselines/reference/negativeZero.types +++ b/tests/baselines/reference/negativeZero.types @@ -1,5 +1,6 @@ === tests/cases/compiler/negativeZero.ts === var x = -0 ->x : number +>x : number, Symbol(x, Decl(negativeZero.ts, 0, 3)) >-0 : number +>0 : number diff --git a/tests/baselines/reference/nestedGenerics.types b/tests/baselines/reference/nestedGenerics.types index 24d7fea3baa..c0860a6f92d 100644 --- a/tests/baselines/reference/nestedGenerics.types +++ b/tests/baselines/reference/nestedGenerics.types @@ -1,15 +1,15 @@ === tests/cases/compiler/nestedGenerics.ts === interface Foo { ->Foo : Foo ->T : T +>Foo : Foo, Symbol(Foo, Decl(nestedGenerics.ts, 0, 0)) +>T : T, Symbol(T, Decl(nestedGenerics.ts, 0, 14)) t: T; ->t : T ->T : T +>t : T, Symbol(t, Decl(nestedGenerics.ts, 0, 18)) +>T : T, Symbol(T, Decl(nestedGenerics.ts, 0, 14)) } var f: Foo>; ->f : Foo> ->Foo : Foo ->Foo : Foo +>f : Foo>, Symbol(f, Decl(nestedGenerics.ts, 4, 3)) +>Foo : Foo, Symbol(Foo, Decl(nestedGenerics.ts, 0, 0)) +>Foo : Foo, Symbol(Foo, Decl(nestedGenerics.ts, 0, 0)) diff --git a/tests/baselines/reference/nestedIfStatement.types b/tests/baselines/reference/nestedIfStatement.types index 4dddcd75925..19799d25172 100644 --- a/tests/baselines/reference/nestedIfStatement.types +++ b/tests/baselines/reference/nestedIfStatement.types @@ -1,8 +1,15 @@ === tests/cases/compiler/nestedIfStatement.ts === if (0) { -No type information for this code.} else if (1) { -No type information for this code.} else if (2) { -No type information for this code.} else if (3) { -No type information for this code.} else { -No type information for this code.} -No type information for this code. \ No newline at end of file +>0 : number + +} else if (1) { +>1 : number + +} else if (2) { +>2 : number + +} else if (3) { +>3 : number + +} else { +} diff --git a/tests/baselines/reference/nestedIndexer.types b/tests/baselines/reference/nestedIndexer.types index ade8dbbcb66..1b1d65df8a2 100644 --- a/tests/baselines/reference/nestedIndexer.types +++ b/tests/baselines/reference/nestedIndexer.types @@ -1,11 +1,11 @@ === tests/cases/compiler/nestedIndexer.ts === function then(x) { ->then : (x: any) => void ->x : any +>then : (x: any) => void, Symbol(then, Decl(nestedIndexer.ts, 0, 0)) +>x : any, Symbol(x, Decl(nestedIndexer.ts, 0, 14)) var match: { [index: number]: string; } ->match : { [index: number]: string; } ->index : number +>match : { [index: number]: string; }, Symbol(match, Decl(nestedIndexer.ts, 2, 3)) +>index : number, Symbol(index, Decl(nestedIndexer.ts, 2, 14)) } diff --git a/tests/baselines/reference/nestedInfinitelyExpandedRecursiveTypes.types b/tests/baselines/reference/nestedInfinitelyExpandedRecursiveTypes.types index 4a252d29961..c6576498503 100644 --- a/tests/baselines/reference/nestedInfinitelyExpandedRecursiveTypes.types +++ b/tests/baselines/reference/nestedInfinitelyExpandedRecursiveTypes.types @@ -1,40 +1,40 @@ === tests/cases/compiler/nestedInfinitelyExpandedRecursiveTypes.ts === interface F { ->F : F ->T : T +>F : F, Symbol(F, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 0, 0)) +>T : T, Symbol(T, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 0, 12)) t: G T>>; ->t : G T>> ->G : G ->F : F ->T : T +>t : G T>>, Symbol(t, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 0, 16)) +>G : G, Symbol(G, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 2, 1)) +>F : F, Symbol(F, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 0, 0)) +>T : T, Symbol(T, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 0, 12)) } interface G { ->G : G ->U : U +>G : G, Symbol(G, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 2, 1)) +>U : U, Symbol(U, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 3, 12)) t: G U>>; ->t : G U>> ->G : G ->G : G ->U : U +>t : G U>>, Symbol(t, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 3, 16)) +>G : G, Symbol(G, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 2, 1)) +>G : G, Symbol(G, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 2, 1)) +>U : U, Symbol(U, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 3, 12)) } var f: F; ->f : F ->F : F +>f : F, Symbol(f, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 7, 3)) +>F : F, Symbol(F, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 0, 0)) var g: G; ->g : G ->G : G +>g : G, Symbol(g, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 8, 3)) +>G : G, Symbol(G, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 2, 1)) f = g; >f = g : G ->f : F ->g : G +>f : F, Symbol(f, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 7, 3)) +>g : G, Symbol(g, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 8, 3)) g = f; >g = f : F ->g : G ->f : F +>g : G, Symbol(g, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 8, 3)) +>f : F, Symbol(f, Decl(nestedInfinitelyExpandedRecursiveTypes.ts, 7, 3)) diff --git a/tests/baselines/reference/nestedModulePrivateAccess.types b/tests/baselines/reference/nestedModulePrivateAccess.types index 7aae7449dcf..3081bd6092f 100644 --- a/tests/baselines/reference/nestedModulePrivateAccess.types +++ b/tests/baselines/reference/nestedModulePrivateAccess.types @@ -1,15 +1,15 @@ === tests/cases/compiler/nestedModulePrivateAccess.ts === module a{ ->a : typeof a +>a : typeof a, Symbol(a, Decl(nestedModulePrivateAccess.ts, 0, 0)) var x:number; ->x : number +>x : number, Symbol(x, Decl(nestedModulePrivateAccess.ts, 1, 10)) module b{ ->b : typeof b +>b : typeof b, Symbol(b, Decl(nestedModulePrivateAccess.ts, 1, 20)) var y = x; // should not be an error ->y : number ->x : number +>y : number, Symbol(y, Decl(nestedModulePrivateAccess.ts, 3, 18)) +>x : number, Symbol(x, Decl(nestedModulePrivateAccess.ts, 1, 10)) } } diff --git a/tests/baselines/reference/nestedModules.types b/tests/baselines/reference/nestedModules.types index 863e57ef859..6fec7aa3d5a 100644 --- a/tests/baselines/reference/nestedModules.types +++ b/tests/baselines/reference/nestedModules.types @@ -1,83 +1,85 @@ === tests/cases/conformance/internalModules/moduleDeclarations/nestedModules.ts === module A.B.C { ->A : typeof A ->B : typeof B ->C : unknown +>A : typeof A, Symbol(A, Decl(nestedModules.ts, 0, 0), Decl(nestedModules.ts, 5, 1)) +>B : typeof B, Symbol(B, Decl(nestedModules.ts, 0, 9), Decl(nestedModules.ts, 7, 10)) +>C : any, Symbol(C, Decl(nestedModules.ts, 0, 11)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(nestedModules.ts, 0, 14)) x: number; ->x : number +>x : number, Symbol(x, Decl(nestedModules.ts, 1, 28)) y: number; ->y : number +>y : number, Symbol(y, Decl(nestedModules.ts, 2, 18)) } } module A { ->A : typeof A +>A : typeof A, Symbol(A, Decl(nestedModules.ts, 0, 0), Decl(nestedModules.ts, 5, 1)) export module B { ->B : typeof B +>B : typeof B, Symbol(B, Decl(nestedModules.ts, 0, 9), Decl(nestedModules.ts, 7, 10)) var Point: C.Point = { x: 0, y: 0 }; // bug 832088: could not find module 'C' ->Point : C.Point ->C : unknown ->Point : C.Point +>Point : C.Point, Symbol(Point, Decl(nestedModules.ts, 9, 11)) +>C : any, Symbol(C, Decl(nestedModules.ts, 0, 11)) +>Point : C.Point, Symbol(C.Point, Decl(nestedModules.ts, 0, 14)) >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(nestedModules.ts, 9, 30)) +>0 : number +>y : number, Symbol(y, Decl(nestedModules.ts, 9, 36)) +>0 : number } } module M2.X { ->M2 : typeof M2 ->X : typeof X +>M2 : typeof M2, Symbol(M2, Decl(nestedModules.ts, 11, 1), Decl(nestedModules.ts, 17, 1)) +>X : typeof X, Symbol(X, Decl(nestedModules.ts, 13, 10), Decl(nestedModules.ts, 19, 11)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(nestedModules.ts, 13, 13), Decl(nestedModules.ts, 21, 18)) x: number; y: number; ->x : number ->y : number +>x : number, Symbol(x, Decl(nestedModules.ts, 14, 28)) +>y : number, Symbol(y, Decl(nestedModules.ts, 15, 18)) } } module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(nestedModules.ts, 11, 1), Decl(nestedModules.ts, 17, 1)) export module X { ->X : typeof X +>X : typeof X, Symbol(X, Decl(nestedModules.ts, 13, 10), Decl(nestedModules.ts, 19, 11)) export var Point: number; ->Point : number +>Point : number, Symbol(Point, Decl(nestedModules.ts, 13, 13), Decl(nestedModules.ts, 21, 18)) } } var m = M2.X; ->m : typeof M2.X ->M2.X : typeof M2.X ->M2 : typeof M2 ->X : typeof M2.X +>m : typeof M2.X, Symbol(m, Decl(nestedModules.ts, 25, 3)) +>M2.X : typeof M2.X, Symbol(M2.X, Decl(nestedModules.ts, 13, 10), Decl(nestedModules.ts, 19, 11)) +>M2 : typeof M2, Symbol(M2, Decl(nestedModules.ts, 11, 1), Decl(nestedModules.ts, 17, 1)) +>X : typeof M2.X, Symbol(M2.X, Decl(nestedModules.ts, 13, 10), Decl(nestedModules.ts, 19, 11)) var point: number; ->point : number +>point : number, Symbol(point, Decl(nestedModules.ts, 26, 3), Decl(nestedModules.ts, 27, 3)) var point = m.Point; ->point : number ->m.Point : number ->m : typeof M2.X ->Point : number +>point : number, Symbol(point, Decl(nestedModules.ts, 26, 3), Decl(nestedModules.ts, 27, 3)) +>m.Point : number, Symbol(M2.X.Point, Decl(nestedModules.ts, 13, 13), Decl(nestedModules.ts, 21, 18)) +>m : typeof M2.X, Symbol(m, Decl(nestedModules.ts, 25, 3)) +>Point : number, Symbol(M2.X.Point, Decl(nestedModules.ts, 13, 13), Decl(nestedModules.ts, 21, 18)) var p: { x: number; y: number; } ->p : { x: number; y: number; } ->x : number ->y : number +>p : { x: number; y: number; }, Symbol(p, Decl(nestedModules.ts, 29, 3), Decl(nestedModules.ts, 30, 3)) +>x : number, Symbol(x, Decl(nestedModules.ts, 29, 8)) +>y : number, Symbol(y, Decl(nestedModules.ts, 29, 19)) var p: M2.X.Point; ->p : { x: number; y: number; } ->M2 : unknown ->X : unknown ->Point : M2.X.Point +>p : { x: number; y: number; }, Symbol(p, Decl(nestedModules.ts, 29, 3), Decl(nestedModules.ts, 30, 3)) +>M2 : any, Symbol(M2, Decl(nestedModules.ts, 11, 1), Decl(nestedModules.ts, 17, 1)) +>X : any, Symbol(M2.X, Decl(nestedModules.ts, 13, 10), Decl(nestedModules.ts, 19, 11)) +>Point : M2.X.Point, Symbol(M2.X.Point, Decl(nestedModules.ts, 13, 13), Decl(nestedModules.ts, 21, 18)) diff --git a/tests/baselines/reference/nestedRecursiveLambda.types b/tests/baselines/reference/nestedRecursiveLambda.types index 864daea3e1f..013821b33be 100644 --- a/tests/baselines/reference/nestedRecursiveLambda.types +++ b/tests/baselines/reference/nestedRecursiveLambda.types @@ -1,46 +1,46 @@ === tests/cases/compiler/nestedRecursiveLambda.ts === function f(a:any) { ->f : (a: any) => void ->a : any +>f : (a: any) => void, Symbol(f, Decl(nestedRecursiveLambda.ts, 0, 0)) +>a : any, Symbol(a, Decl(nestedRecursiveLambda.ts, 0, 11)) void (r =>(r => r)); >void (r =>(r => r)) : undefined >(r =>(r => r)) : (r: any) => (r: any) => any >r =>(r => r) : (r: any) => (r: any) => any ->r : any +>r : any, Symbol(r, Decl(nestedRecursiveLambda.ts, 1, 6)) >(r => r) : (r: any) => any >r => r : (r: any) => any ->r : any ->r : any +>r : any, Symbol(r, Decl(nestedRecursiveLambda.ts, 1, 11)) +>r : any, Symbol(r, Decl(nestedRecursiveLambda.ts, 1, 11)) } f((r =>(r => r))); >f((r =>(r => r))) : void ->f : (a: any) => void +>f : (a: any) => void, Symbol(f, Decl(nestedRecursiveLambda.ts, 0, 0)) >(r =>(r => r)) : (r: any) => (r: any) => any >r =>(r => r) : (r: any) => (r: any) => any ->r : any +>r : any, Symbol(r, Decl(nestedRecursiveLambda.ts, 3, 3)) >(r => r) : (r: any) => any >r => r : (r: any) => any ->r : any ->r : any +>r : any, Symbol(r, Decl(nestedRecursiveLambda.ts, 3, 8)) +>r : any, Symbol(r, Decl(nestedRecursiveLambda.ts, 3, 8)) void(r =>(r => r)); >void(r =>(r => r)) : undefined >(r =>(r => r)) : (r: any) => (r: any) => any >r =>(r => r) : (r: any) => (r: any) => any ->r : any +>r : any, Symbol(r, Decl(nestedRecursiveLambda.ts, 4, 5)) >(r => r) : (r: any) => any >r => r : (r: any) => any ->r : any ->r : any +>r : any, Symbol(r, Decl(nestedRecursiveLambda.ts, 4, 10)) +>r : any, Symbol(r, Decl(nestedRecursiveLambda.ts, 4, 10)) [(r =>(r => r))] >[(r =>(r => r))] : ((r: any) => (r: any) => any)[] >(r =>(r => r)) : (r: any) => (r: any) => any >r =>(r => r) : (r: any) => (r: any) => any ->r : any +>r : any, Symbol(r, Decl(nestedRecursiveLambda.ts, 5, 2)) >(r => r) : (r: any) => any >r => r : (r: any) => any ->r : any ->r : any +>r : any, Symbol(r, Decl(nestedRecursiveLambda.ts, 5, 7)) +>r : any, Symbol(r, Decl(nestedRecursiveLambda.ts, 5, 7)) diff --git a/tests/baselines/reference/nestedSelf.types b/tests/baselines/reference/nestedSelf.types index 56280bffb2f..ac36ef6ce27 100644 --- a/tests/baselines/reference/nestedSelf.types +++ b/tests/baselines/reference/nestedSelf.types @@ -1,26 +1,30 @@ === tests/cases/compiler/nestedSelf.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(nestedSelf.ts, 0, 0)) export class C { ->C : C +>C : C, Symbol(C, Decl(nestedSelf.ts, 0, 10)) public n = 42; ->n : number +>n : number, Symbol(n, Decl(nestedSelf.ts, 1, 17)) +>42 : number public foo() { [1,2,3].map((x) => { return this.n * x; })} ->foo : () => void +>foo : () => void, Symbol(foo, Decl(nestedSelf.ts, 2, 17)) >[1,2,3].map((x) => { return this.n * x; }) : number[] ->[1,2,3].map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[] +>[1,2,3].map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >[1,2,3] : number[] ->map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[] +>1 : number +>2 : number +>3 : number +>map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >(x) => { return this.n * x; } : (x: number) => number ->x : number +>x : number, Symbol(x, Decl(nestedSelf.ts, 3, 31)) >this.n * x : number ->this.n : number ->this : C ->n : number ->x : number +>this.n : number, Symbol(n, Decl(nestedSelf.ts, 1, 17)) +>this : C, Symbol(C, Decl(nestedSelf.ts, 0, 10)) +>n : number, Symbol(n, Decl(nestedSelf.ts, 1, 17)) +>x : number, Symbol(x, Decl(nestedSelf.ts, 3, 31)) } } diff --git a/tests/baselines/reference/newArrays.types b/tests/baselines/reference/newArrays.types index 463525cb04c..b35d44dc18a 100644 --- a/tests/baselines/reference/newArrays.types +++ b/tests/baselines/reference/newArrays.types @@ -1,41 +1,43 @@ === tests/cases/compiler/newArrays.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(newArrays.ts, 0, 0)) class Foo {} ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(newArrays.ts, 0, 10)) class Gar { ->Gar : Gar +>Gar : Gar, Symbol(Gar, Decl(newArrays.ts, 1, 13)) public fa: Foo[]; ->fa : Foo[] ->Foo : Foo +>fa : Foo[], Symbol(fa, Decl(newArrays.ts, 2, 12)) +>Foo : Foo, Symbol(Foo, Decl(newArrays.ts, 0, 10)) public x = 10; ->x : number +>x : number, Symbol(x, Decl(newArrays.ts, 3, 19)) +>10 : number public y = 10; ->y : number +>y : number, Symbol(y, Decl(newArrays.ts, 4, 16)) +>10 : number public m () { ->m : () => void +>m : () => void, Symbol(m, Decl(newArrays.ts, 5, 16)) this.fa = new Array(this.x * this.y); >this.fa = new Array(this.x * this.y) : Foo[] ->this.fa : Foo[] ->this : Gar ->fa : Foo[] +>this.fa : Foo[], Symbol(fa, Decl(newArrays.ts, 2, 12)) +>this : Gar, Symbol(Gar, Decl(newArrays.ts, 1, 13)) +>fa : Foo[], Symbol(fa, Decl(newArrays.ts, 2, 12)) >new Array(this.x * this.y) : Foo[] ->Array : ArrayConstructor ->Foo : Foo +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>Foo : Foo, Symbol(Foo, Decl(newArrays.ts, 0, 10)) >this.x * this.y : number ->this.x : number ->this : Gar ->x : number ->this.y : number ->this : Gar ->y : number +>this.x : number, Symbol(x, Decl(newArrays.ts, 3, 19)) +>this : Gar, Symbol(Gar, Decl(newArrays.ts, 1, 13)) +>x : number, Symbol(x, Decl(newArrays.ts, 3, 19)) +>this.y : number, Symbol(y, Decl(newArrays.ts, 4, 16)) +>this : Gar, Symbol(Gar, Decl(newArrays.ts, 1, 13)) +>y : number, Symbol(y, Decl(newArrays.ts, 4, 16)) } } } diff --git a/tests/baselines/reference/newExpressionWithTypeParameterConstrainedToOuterTypeParameter.types b/tests/baselines/reference/newExpressionWithTypeParameterConstrainedToOuterTypeParameter.types index 8629c3cce0a..59bf47cfa73 100644 --- a/tests/baselines/reference/newExpressionWithTypeParameterConstrainedToOuterTypeParameter.types +++ b/tests/baselines/reference/newExpressionWithTypeParameterConstrainedToOuterTypeParameter.types @@ -1,21 +1,22 @@ === tests/cases/compiler/newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts === interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 0)) +>T : T, Symbol(T, Decl(newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 12)) new (u: U): U; ->U : U ->T : T ->u : U ->U : U ->U : U +>U : U, Symbol(U, Decl(newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 1, 9)) +>T : T, Symbol(T, Decl(newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 12)) +>u : U, Symbol(u, Decl(newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 1, 22)) +>U : U, Symbol(U, Decl(newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 1, 9)) +>U : U, Symbol(U, Decl(newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 1, 9)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 3, 3)) +>I : I, Symbol(I, Decl(newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 0, 0)) var y = new i(""); // y should be string ->y : string +>y : string, Symbol(y, Decl(newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 4, 3)) >new i("") : string ->i : I +>i : I, Symbol(i, Decl(newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts, 3, 3)) +>"" : string diff --git a/tests/baselines/reference/newOperatorConformance.types b/tests/baselines/reference/newOperatorConformance.types index 37205bd6177..c43e7da9a57 100644 --- a/tests/baselines/reference/newOperatorConformance.types +++ b/tests/baselines/reference/newOperatorConformance.types @@ -1,149 +1,150 @@ === tests/cases/conformance/expressions/newOperator/newOperatorConformance.ts === class C0 { ->C0 : C0 +>C0 : C0, Symbol(C0, Decl(newOperatorConformance.ts, 0, 0)) } class C1 { ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(newOperatorConformance.ts, 3, 1)) constructor(n: number, s: string) { } ->n : number ->s : string +>n : number, Symbol(n, Decl(newOperatorConformance.ts, 5, 16)) +>s : string, Symbol(s, Decl(newOperatorConformance.ts, 5, 26)) } class T { ->T : T ->T : T +>T : T, Symbol(T, Decl(newOperatorConformance.ts, 6, 1)) +>T : T, Symbol(T, Decl(newOperatorConformance.ts, 8, 8)) constructor(n?: T) { } ->n : T ->T : T +>n : T, Symbol(n, Decl(newOperatorConformance.ts, 9, 16)) +>T : T, Symbol(T, Decl(newOperatorConformance.ts, 8, 8)) } var anyCtor: { ->anyCtor : new () => any +>anyCtor : new () => any, Symbol(anyCtor, Decl(newOperatorConformance.ts, 12, 3)) new (): any; }; var anyCtor1: { ->anyCtor1 : new (n: any) => any +>anyCtor1 : new (n: any) => any, Symbol(anyCtor1, Decl(newOperatorConformance.ts, 16, 3)) new (n): any; ->n : any +>n : any, Symbol(n, Decl(newOperatorConformance.ts, 17, 9)) }; interface nestedCtor { ->nestedCtor : nestedCtor +>nestedCtor : nestedCtor, Symbol(nestedCtor, Decl(newOperatorConformance.ts, 18, 2), Decl(newOperatorConformance.ts, 23, 3)) new (): nestedCtor; ->nestedCtor : nestedCtor +>nestedCtor : nestedCtor, Symbol(nestedCtor, Decl(newOperatorConformance.ts, 18, 2), Decl(newOperatorConformance.ts, 23, 3)) } var nestedCtor: nestedCtor; ->nestedCtor : nestedCtor ->nestedCtor : nestedCtor +>nestedCtor : nestedCtor, Symbol(nestedCtor, Decl(newOperatorConformance.ts, 18, 2), Decl(newOperatorConformance.ts, 23, 3)) +>nestedCtor : nestedCtor, Symbol(nestedCtor, Decl(newOperatorConformance.ts, 18, 2), Decl(newOperatorConformance.ts, 23, 3)) // Construct expression with no parentheses for construct signature with 0 parameters var a = new C0; ->a : C0 +>a : C0, Symbol(a, Decl(newOperatorConformance.ts, 26, 3), Decl(newOperatorConformance.ts, 27, 3)) >new C0 : C0 ->C0 : typeof C0 +>C0 : typeof C0, Symbol(C0, Decl(newOperatorConformance.ts, 0, 0)) var a: C0; ->a : C0 ->C0 : C0 +>a : C0, Symbol(a, Decl(newOperatorConformance.ts, 26, 3), Decl(newOperatorConformance.ts, 27, 3)) +>C0 : C0, Symbol(C0, Decl(newOperatorConformance.ts, 0, 0)) // Generic construct expression with no parentheses var c1 = new T; ->c1 : T<{}> +>c1 : T<{}>, Symbol(c1, Decl(newOperatorConformance.ts, 31, 3), Decl(newOperatorConformance.ts, 32, 3)) >new T : T<{}> ->T : typeof T +>T : typeof T, Symbol(T, Decl(newOperatorConformance.ts, 6, 1)) var c1: T<{}>; ->c1 : T<{}> ->T : T +>c1 : T<{}>, Symbol(c1, Decl(newOperatorConformance.ts, 31, 3), Decl(newOperatorConformance.ts, 32, 3)) +>T : T, Symbol(T, Decl(newOperatorConformance.ts, 6, 1)) // Construct expression where constructor is of type 'any' with no parentheses var d = new anyCtor; ->d : any +>d : any, Symbol(d, Decl(newOperatorConformance.ts, 35, 3), Decl(newOperatorConformance.ts, 36, 3), Decl(newOperatorConformance.ts, 39, 3)) >new anyCtor : any ->anyCtor : new () => any +>anyCtor : new () => any, Symbol(anyCtor, Decl(newOperatorConformance.ts, 12, 3)) var d: any; ->d : any +>d : any, Symbol(d, Decl(newOperatorConformance.ts, 35, 3), Decl(newOperatorConformance.ts, 36, 3), Decl(newOperatorConformance.ts, 39, 3)) // Construct expression where constructor is of type 'any' with > 1 arg var d = new anyCtor1(undefined); ->d : any +>d : any, Symbol(d, Decl(newOperatorConformance.ts, 35, 3), Decl(newOperatorConformance.ts, 36, 3), Decl(newOperatorConformance.ts, 39, 3)) >new anyCtor1(undefined) : any ->anyCtor1 : new (n: any) => any ->undefined : undefined +>anyCtor1 : new (n: any) => any, Symbol(anyCtor1, Decl(newOperatorConformance.ts, 16, 3)) +>undefined : undefined, Symbol(undefined) // Construct expression of type where apparent type has a construct signature with 0 arguments function newFn1(s: T) { ->newFn1 : number>(s: T) => void ->T : T ->s : T ->T : T +>newFn1 : number>(s: T) => void, Symbol(newFn1, Decl(newOperatorConformance.ts, 39, 32)) +>T : T, Symbol(T, Decl(newOperatorConformance.ts, 42, 16)) +>s : T, Symbol(s, Decl(newOperatorConformance.ts, 42, 46)) +>T : T, Symbol(T, Decl(newOperatorConformance.ts, 42, 16)) var p = new s; ->p : number +>p : number, Symbol(p, Decl(newOperatorConformance.ts, 43, 7), Decl(newOperatorConformance.ts, 44, 7)) >new s : number ->s : T +>s : T, Symbol(s, Decl(newOperatorConformance.ts, 42, 46)) var p: number; ->p : number +>p : number, Symbol(p, Decl(newOperatorConformance.ts, 43, 7), Decl(newOperatorConformance.ts, 44, 7)) } // Construct expression of type where apparent type has a construct signature with 1 arguments function newFn2(s: T) { ->newFn2 : string>(s: T) => void ->T : T ->s : number ->s : T ->T : T +>newFn2 : string>(s: T) => void, Symbol(newFn2, Decl(newOperatorConformance.ts, 45, 1)) +>T : T, Symbol(T, Decl(newOperatorConformance.ts, 48, 16)) +>s : number, Symbol(s, Decl(newOperatorConformance.ts, 48, 33)) +>s : T, Symbol(s, Decl(newOperatorConformance.ts, 48, 54)) +>T : T, Symbol(T, Decl(newOperatorConformance.ts, 48, 16)) var p = new s(32); ->p : string +>p : string, Symbol(p, Decl(newOperatorConformance.ts, 49, 7), Decl(newOperatorConformance.ts, 50, 7)) >new s(32) : string ->s : T +>s : T, Symbol(s, Decl(newOperatorConformance.ts, 48, 54)) +>32 : number var p: string; ->p : string +>p : string, Symbol(p, Decl(newOperatorConformance.ts, 49, 7), Decl(newOperatorConformance.ts, 50, 7)) } // Construct expression of void returning function function fnVoid(): void { } ->fnVoid : () => void +>fnVoid : () => void, Symbol(fnVoid, Decl(newOperatorConformance.ts, 51, 1)) var t = new fnVoid(); ->t : any +>t : any, Symbol(t, Decl(newOperatorConformance.ts, 55, 3), Decl(newOperatorConformance.ts, 56, 3)) >new fnVoid() : any ->fnVoid : () => void +>fnVoid : () => void, Symbol(fnVoid, Decl(newOperatorConformance.ts, 51, 1)) var t: any; ->t : any +>t : any, Symbol(t, Decl(newOperatorConformance.ts, 55, 3), Decl(newOperatorConformance.ts, 56, 3)) // Chained new expressions var nested = new (new (new nestedCtor())())(); ->nested : nestedCtor +>nested : nestedCtor, Symbol(nested, Decl(newOperatorConformance.ts, 59, 3)) >new (new (new nestedCtor())())() : nestedCtor >(new (new nestedCtor())()) : nestedCtor >new (new nestedCtor())() : nestedCtor >(new nestedCtor()) : nestedCtor >new nestedCtor() : nestedCtor ->nestedCtor : nestedCtor +>nestedCtor : nestedCtor, Symbol(nestedCtor, Decl(newOperatorConformance.ts, 18, 2), Decl(newOperatorConformance.ts, 23, 3)) var n = new nested(); ->n : nestedCtor +>n : nestedCtor, Symbol(n, Decl(newOperatorConformance.ts, 60, 3), Decl(newOperatorConformance.ts, 61, 3)) >new nested() : nestedCtor ->nested : nestedCtor +>nested : nestedCtor, Symbol(nested, Decl(newOperatorConformance.ts, 59, 3)) var n = new nested(); ->n : nestedCtor +>n : nestedCtor, Symbol(n, Decl(newOperatorConformance.ts, 60, 3), Decl(newOperatorConformance.ts, 61, 3)) >new nested() : nestedCtor ->nested : nestedCtor +>nested : nestedCtor, Symbol(nested, Decl(newOperatorConformance.ts, 59, 3)) diff --git a/tests/baselines/reference/noCollisionThisExpressionAndClassInGlobal.types b/tests/baselines/reference/noCollisionThisExpressionAndClassInGlobal.types index 44e7155854c..986316aed6e 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndClassInGlobal.types +++ b/tests/baselines/reference/noCollisionThisExpressionAndClassInGlobal.types @@ -1,9 +1,9 @@ === tests/cases/compiler/noCollisionThisExpressionAndClassInGlobal.ts === class _this { ->_this : _this +>_this : _this, Symbol(_this, Decl(noCollisionThisExpressionAndClassInGlobal.ts, 0, 0)) } var f = () => _this; ->f : () => typeof _this +>f : () => typeof _this, Symbol(f, Decl(noCollisionThisExpressionAndClassInGlobal.ts, 2, 3)) >() => _this : () => typeof _this ->_this : typeof _this +>_this : typeof _this, Symbol(_this, Decl(noCollisionThisExpressionAndClassInGlobal.ts, 0, 0)) diff --git a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInConstructor.types b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInConstructor.types index f9537974161..27532899bb4 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInConstructor.types +++ b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInConstructor.types @@ -1,51 +1,53 @@ === tests/cases/compiler/noCollisionThisExpressionAndLocalVarInConstructor.ts === class class1 { ->class1 : class1 +>class1 : class1, Symbol(class1, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 0, 0)) constructor() { var x2 = { ->x2 : { doStuff: (callback: any) => () => any; } +>x2 : { doStuff: (callback: any) => () => any; }, Symbol(x2, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 2, 11)) >{ doStuff: (callback) => () => { var _this = 2; return callback(_this); } } : { doStuff: (callback: any) => () => any; } doStuff: (callback) => () => { ->doStuff : (callback: any) => () => any +>doStuff : (callback: any) => () => any, Symbol(doStuff, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 2, 18)) >(callback) => () => { var _this = 2; return callback(_this); } : (callback: any) => () => any ->callback : any +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 3, 22)) >() => { var _this = 2; return callback(_this); } : () => any var _this = 2; ->_this : number +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 4, 19)) +>2 : number return callback(_this); >callback(_this) : any ->callback : any ->_this : number +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 3, 22)) +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 4, 19)) } } } } class class2 { ->class2 : class2 +>class2 : class2, Symbol(class2, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 9, 1)) constructor() { var _this = 2; ->_this : number +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 13, 11)) +>2 : number var x2 = { ->x2 : { doStuff: (callback: any) => () => any; } +>x2 : { doStuff: (callback: any) => () => any; }, Symbol(x2, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 14, 11)) >{ doStuff: (callback) => () => { return callback(_this); } } : { doStuff: (callback: any) => () => any; } doStuff: (callback) => () => { ->doStuff : (callback: any) => () => any +>doStuff : (callback: any) => () => any, Symbol(doStuff, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 14, 18)) >(callback) => () => { return callback(_this); } : (callback: any) => () => any ->callback : any +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 15, 22)) >() => { return callback(_this); } : () => any return callback(_this); >callback(_this) : any ->callback : any ->_this : number +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 15, 22)) +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInConstructor.ts, 13, 11)) } } } diff --git a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInFunction.types b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInFunction.types index 56f5701e912..e5d2f96a1a8 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInFunction.types +++ b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInFunction.types @@ -1,23 +1,24 @@ === tests/cases/compiler/noCollisionThisExpressionAndLocalVarInFunction.ts === var console: { ->console : { log(val: any): any; } +>console : { log(val: any): any; }, Symbol(console, Decl(noCollisionThisExpressionAndLocalVarInFunction.ts, 0, 3)) log(val: any); ->log : (val: any) => any ->val : any +>log : (val: any) => any, Symbol(log, Decl(noCollisionThisExpressionAndLocalVarInFunction.ts, 0, 14)) +>val : any, Symbol(val, Decl(noCollisionThisExpressionAndLocalVarInFunction.ts, 1, 8)) } function x() { ->x : () => void +>x : () => void, Symbol(x, Decl(noCollisionThisExpressionAndLocalVarInFunction.ts, 2, 1)) var _this = 5; ->_this : number +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInFunction.ts, 4, 7)) +>5 : number x => { console.log(_this); }; >x => { console.log(_this); } : (x: any) => void ->x : any +>x : any, Symbol(x, Decl(noCollisionThisExpressionAndLocalVarInFunction.ts, 4, 18)) >console.log(_this) : any ->console.log : (val: any) => any ->console : { log(val: any): any; } ->log : (val: any) => any ->_this : number +>console.log : (val: any) => any, Symbol(log, Decl(noCollisionThisExpressionAndLocalVarInFunction.ts, 0, 14)) +>console : { log(val: any): any; }, Symbol(console, Decl(noCollisionThisExpressionAndLocalVarInFunction.ts, 0, 3)) +>log : (val: any) => any, Symbol(log, Decl(noCollisionThisExpressionAndLocalVarInFunction.ts, 0, 14)) +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInFunction.ts, 4, 7)) } diff --git a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInLambda.types b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInLambda.types index 6cf4428bcc5..94d6f8c370e 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInLambda.types +++ b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInLambda.types @@ -1,37 +1,38 @@ === tests/cases/compiler/noCollisionThisExpressionAndLocalVarInLambda.ts === declare function alert(message?: any): void; ->alert : (message?: any) => void ->message : any +>alert : (message?: any) => void, Symbol(alert, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 0, 0)) +>message : any, Symbol(message, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 0, 23)) var x = { ->x : { doStuff: (callback: any) => () => any; } +>x : { doStuff: (callback: any) => () => any; }, Symbol(x, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 1, 3)) >{ doStuff: (callback) => () => { var _this = 2; return callback(_this); }} : { doStuff: (callback: any) => () => any; } doStuff: (callback) => () => { ->doStuff : (callback: any) => () => any +>doStuff : (callback: any) => () => any, Symbol(doStuff, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 1, 9)) >(callback) => () => { var _this = 2; return callback(_this); } : (callback: any) => () => any ->callback : any +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 2, 14)) >() => { var _this = 2; return callback(_this); } : () => any var _this = 2; ->_this : number +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 3, 11)) +>2 : number return callback(_this); >callback(_this) : any ->callback : any ->_this : number +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 2, 14)) +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 3, 11)) } } alert(x.doStuff(x => alert(x))); >alert(x.doStuff(x => alert(x))) : void ->alert : (message?: any) => void +>alert : (message?: any) => void, Symbol(alert, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 0, 0)) >x.doStuff(x => alert(x)) : () => any ->x.doStuff : (callback: any) => () => any ->x : { doStuff: (callback: any) => () => any; } ->doStuff : (callback: any) => () => any +>x.doStuff : (callback: any) => () => any, Symbol(doStuff, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 1, 9)) +>x : { doStuff: (callback: any) => () => any; }, Symbol(x, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 1, 3)) +>doStuff : (callback: any) => () => any, Symbol(doStuff, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 1, 9)) >x => alert(x) : (x: any) => void ->x : any +>x : any, Symbol(x, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 7, 16)) >alert(x) : void ->alert : (message?: any) => void ->x : any +>alert : (message?: any) => void, Symbol(alert, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 0, 0)) +>x : any, Symbol(x, Decl(noCollisionThisExpressionAndLocalVarInLambda.ts, 7, 16)) diff --git a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.types b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.types index cb543b33ad4..aa47698e112 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.types +++ b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.types @@ -1,51 +1,54 @@ === tests/cases/compiler/noCollisionThisExpressionAndLocalVarInMethod.ts === var _this = 2; ->_this : number +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 0, 3)) +>2 : number class a { ->a : a +>a : a, Symbol(a, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 0, 14)) method1() { ->method1 : () => { doStuff: (callback: any) => () => any; } +>method1 : () => { doStuff: (callback: any) => () => any; }, Symbol(method1, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 1, 9)) return { >{ doStuff: (callback) => () => { var _this = 2; return callback(_this); } } : { doStuff: (callback: any) => () => any; } doStuff: (callback) => () => { ->doStuff : (callback: any) => () => any +>doStuff : (callback: any) => () => any, Symbol(doStuff, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 3, 16)) >(callback) => () => { var _this = 2; return callback(_this); } : (callback: any) => () => any ->callback : any +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 4, 22)) >() => { var _this = 2; return callback(_this); } : () => any var _this = 2; ->_this : number +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 5, 19)) +>2 : number return callback(_this); >callback(_this) : any ->callback : any ->_this : number +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 4, 22)) +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 5, 19)) } } } method2() { ->method2 : () => { doStuff: (callback: any) => () => any; } +>method2 : () => { doStuff: (callback: any) => () => any; }, Symbol(method2, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 9, 5)) var _this = 2; ->_this : number +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 11, 11)) +>2 : number return { >{ doStuff: (callback) => () => { return callback(_this); } } : { doStuff: (callback: any) => () => any; } doStuff: (callback) => () => { ->doStuff : (callback: any) => () => any +>doStuff : (callback: any) => () => any, Symbol(doStuff, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 12, 16)) >(callback) => () => { return callback(_this); } : (callback: any) => () => any ->callback : any +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 13, 22)) >() => { return callback(_this); } : () => any return callback(_this); >callback(_this) : any ->callback : any ->_this : number +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 13, 22)) +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInMethod.ts, 11, 11)) } } } diff --git a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInProperty.types b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInProperty.types index df4ad5113f2..11646cbb0a2 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInProperty.types +++ b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInProperty.types @@ -1,48 +1,51 @@ === tests/cases/compiler/noCollisionThisExpressionAndLocalVarInProperty.ts === class class1 { ->class1 : class1 +>class1 : class1, Symbol(class1, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 0, 0)) public prop1 = { ->prop1 : { doStuff: (callback: any) => () => any; } +>prop1 : { doStuff: (callback: any) => () => any; }, Symbol(prop1, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 0, 14)) >{ doStuff: (callback) => () => { var _this = 2; return callback(_this); } } : { doStuff: (callback: any) => () => any; } doStuff: (callback) => () => { ->doStuff : (callback: any) => () => any +>doStuff : (callback: any) => () => any, Symbol(doStuff, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 1, 20)) >(callback) => () => { var _this = 2; return callback(_this); } : (callback: any) => () => any ->callback : any +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 2, 18)) >() => { var _this = 2; return callback(_this); } : () => any var _this = 2; ->_this : number +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 3, 15)) +>2 : number return callback(_this); >callback(_this) : any ->callback : any ->_this : number +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 2, 18)) +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 3, 15)) } } } class class2 { ->class2 : class2 +>class2 : class2, Symbol(class2, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 7, 1)) constructor() { var _this = 2; ->_this : number +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 11, 11)) +>2 : number } public prop1 = { ->prop1 : { doStuff: (callback: any) => () => any; } +>prop1 : { doStuff: (callback: any) => () => any; }, Symbol(prop1, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 12, 5)) >{ doStuff: (callback) => () => { return callback(10); } } : { doStuff: (callback: any) => () => any; } doStuff: (callback) => () => { ->doStuff : (callback: any) => () => any +>doStuff : (callback: any) => () => any, Symbol(doStuff, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 13, 20)) >(callback) => () => { return callback(10); } : (callback: any) => () => any ->callback : any +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 14, 18)) >() => { return callback(10); } : () => any return callback(10); >callback(10) : any ->callback : any +>callback : any, Symbol(callback, Decl(noCollisionThisExpressionAndLocalVarInProperty.ts, 14, 18)) +>10 : number } } } diff --git a/tests/baselines/reference/noCollisionThisExpressionAndVarInGlobal.types b/tests/baselines/reference/noCollisionThisExpressionAndVarInGlobal.types index 138062d58e5..fc6dbf63a0e 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndVarInGlobal.types +++ b/tests/baselines/reference/noCollisionThisExpressionAndVarInGlobal.types @@ -1,9 +1,10 @@ === tests/cases/compiler/noCollisionThisExpressionAndVarInGlobal.ts === var _this = 1; ->_this : number +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndVarInGlobal.ts, 0, 3)) +>1 : number var f = () => _this; ->f : () => number +>f : () => number, Symbol(f, Decl(noCollisionThisExpressionAndVarInGlobal.ts, 1, 3)) >() => _this : () => number ->_this : number +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionAndVarInGlobal.ts, 0, 3)) diff --git a/tests/baselines/reference/noCollisionThisExpressionInFunctionAndVarInGlobal.types b/tests/baselines/reference/noCollisionThisExpressionInFunctionAndVarInGlobal.types index 35a62c6f671..d76bef05f13 100644 --- a/tests/baselines/reference/noCollisionThisExpressionInFunctionAndVarInGlobal.types +++ b/tests/baselines/reference/noCollisionThisExpressionInFunctionAndVarInGlobal.types @@ -1,23 +1,24 @@ === tests/cases/compiler/noCollisionThisExpressionInFunctionAndVarInGlobal.ts === var console: { ->console : { log(val: any): any; } +>console : { log(val: any): any; }, Symbol(console, Decl(noCollisionThisExpressionInFunctionAndVarInGlobal.ts, 0, 3)) log(val: any); ->log : (val: any) => any ->val : any +>log : (val: any) => any, Symbol(log, Decl(noCollisionThisExpressionInFunctionAndVarInGlobal.ts, 0, 14)) +>val : any, Symbol(val, Decl(noCollisionThisExpressionInFunctionAndVarInGlobal.ts, 1, 8)) } var _this = 5; ->_this : number +>_this : number, Symbol(_this, Decl(noCollisionThisExpressionInFunctionAndVarInGlobal.ts, 3, 3)) +>5 : number function x() { ->x : () => void +>x : () => void, Symbol(x, Decl(noCollisionThisExpressionInFunctionAndVarInGlobal.ts, 3, 14)) x => { console.log(this); }; >x => { console.log(this); } : (x: any) => void ->x : any +>x : any, Symbol(x, Decl(noCollisionThisExpressionInFunctionAndVarInGlobal.ts, 4, 14)) >console.log(this) : any ->console.log : (val: any) => any ->console : { log(val: any): any; } ->log : (val: any) => any +>console.log : (val: any) => any, Symbol(log, Decl(noCollisionThisExpressionInFunctionAndVarInGlobal.ts, 0, 14)) +>console : { log(val: any): any; }, Symbol(console, Decl(noCollisionThisExpressionInFunctionAndVarInGlobal.ts, 0, 3)) +>log : (val: any) => any, Symbol(log, Decl(noCollisionThisExpressionInFunctionAndVarInGlobal.ts, 0, 14)) >this : any } diff --git a/tests/baselines/reference/noConstraintInReturnType1.types b/tests/baselines/reference/noConstraintInReturnType1.types index 19a7529ac79..991f3ca6404 100644 --- a/tests/baselines/reference/noConstraintInReturnType1.types +++ b/tests/baselines/reference/noConstraintInReturnType1.types @@ -1,12 +1,13 @@ === tests/cases/compiler/noConstraintInReturnType1.ts === class List { ->List : List ->T : T +>List : List, Symbol(List, Decl(noConstraintInReturnType1.ts, 0, 0)) +>T : T, Symbol(T, Decl(noConstraintInReturnType1.ts, 0, 11)) static empty(): List { return null; } ->empty : () => List ->T : T ->List : List ->T : T +>empty : () => List, Symbol(List.empty, Decl(noConstraintInReturnType1.ts, 0, 26)) +>T : T, Symbol(T, Decl(noConstraintInReturnType1.ts, 1, 17)) +>List : List, Symbol(List, Decl(noConstraintInReturnType1.ts, 0, 0)) +>T : T, Symbol(T, Decl(noConstraintInReturnType1.ts, 1, 17)) +>null : null } diff --git a/tests/baselines/reference/noImplicitAnyAndPrivateMembersWithoutTypeAnnotations.types b/tests/baselines/reference/noImplicitAnyAndPrivateMembersWithoutTypeAnnotations.types index 071d8a1aa88..164f095708e 100644 --- a/tests/baselines/reference/noImplicitAnyAndPrivateMembersWithoutTypeAnnotations.types +++ b/tests/baselines/reference/noImplicitAnyAndPrivateMembersWithoutTypeAnnotations.types @@ -1,18 +1,18 @@ === tests/cases/compiler/app.ts === /// var x = new Something(); ->x : Something +>x : Something, Symbol(x, Decl(app.ts, 1, 3)) >new Something() : Something ->Something : typeof Something +>Something : typeof Something, Symbol(Something, Decl(test.d.ts, 0, 0)) === tests/cases/compiler/test.d.ts === declare class Something ->Something : Something +>Something : Something, Symbol(Something, Decl(test.d.ts, 0, 0)) { private static someStaticVar; ->someStaticVar : any +>someStaticVar : any, Symbol(Something.someStaticVar, Decl(test.d.ts, 1, 1)) private someVar; ->someVar : any +>someVar : any, Symbol(someVar, Decl(test.d.ts, 2, 33)) } diff --git a/tests/baselines/reference/noImplicitAnyFunctionExpressionAssignment.types b/tests/baselines/reference/noImplicitAnyFunctionExpressionAssignment.types index b07252dac6d..f35c78ac229 100644 --- a/tests/baselines/reference/noImplicitAnyFunctionExpressionAssignment.types +++ b/tests/baselines/reference/noImplicitAnyFunctionExpressionAssignment.types @@ -1,24 +1,28 @@ === tests/cases/compiler/noImplicitAnyFunctionExpressionAssignment.ts === var x: (a: any) => void = function (x: T) { ->x : (a: any) => void ->a : any +>x : (a: any) => void, Symbol(x, Decl(noImplicitAnyFunctionExpressionAssignment.ts, 1, 3)) +>a : any, Symbol(a, Decl(noImplicitAnyFunctionExpressionAssignment.ts, 1, 8)) >function (x: T) { return null;} : (x: T) => any ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(noImplicitAnyFunctionExpressionAssignment.ts, 1, 36)) +>x : T, Symbol(x, Decl(noImplicitAnyFunctionExpressionAssignment.ts, 1, 39)) +>T : T, Symbol(T, Decl(noImplicitAnyFunctionExpressionAssignment.ts, 1, 36)) return null; +>null : null + }; var x2: (a: any) => void = function f(x: T) { ->x2 : (a: any) => void ->a : any +>x2 : (a: any) => void, Symbol(x2, Decl(noImplicitAnyFunctionExpressionAssignment.ts, 5, 3)) +>a : any, Symbol(a, Decl(noImplicitAnyFunctionExpressionAssignment.ts, 5, 9)) >function f(x: T) { return null;} : (x: T) => any ->f : (x: T) => any ->T : T ->x : T ->T : T +>f : (x: T) => any, Symbol(f, Decl(noImplicitAnyFunctionExpressionAssignment.ts, 5, 26)) +>T : T, Symbol(T, Decl(noImplicitAnyFunctionExpressionAssignment.ts, 5, 38)) +>x : T, Symbol(x, Decl(noImplicitAnyFunctionExpressionAssignment.ts, 5, 41)) +>T : T, Symbol(T, Decl(noImplicitAnyFunctionExpressionAssignment.ts, 5, 38)) return null; +>null : null + }; diff --git a/tests/baselines/reference/noImplicitAnyInContextuallyTypesFunctionParamter.types b/tests/baselines/reference/noImplicitAnyInContextuallyTypesFunctionParamter.types index 9ac1bcbbe8d..9f4cc7ccd11 100644 --- a/tests/baselines/reference/noImplicitAnyInContextuallyTypesFunctionParamter.types +++ b/tests/baselines/reference/noImplicitAnyInContextuallyTypesFunctionParamter.types @@ -1,18 +1,22 @@ === tests/cases/compiler/noImplicitAnyInContextuallyTypesFunctionParamter.ts === var regexMatchList = ['', '']; ->regexMatchList : string[] +>regexMatchList : string[], Symbol(regexMatchList, Decl(noImplicitAnyInContextuallyTypesFunctionParamter.ts, 1, 3)) >['', ''] : string[] +>'' : string +>'' : string regexMatchList.forEach(match => ''.replace(match, '')); >regexMatchList.forEach(match => ''.replace(match, '')) : void ->regexMatchList.forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void ->regexMatchList : string[] ->forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void +>regexMatchList.forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void, Symbol(Array.forEach, Decl(lib.d.ts, 1108, 95)) +>regexMatchList : string[], Symbol(regexMatchList, Decl(noImplicitAnyInContextuallyTypesFunctionParamter.ts, 1, 3)) +>forEach : (callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any) => void, Symbol(Array.forEach, Decl(lib.d.ts, 1108, 95)) >match => ''.replace(match, '') : (match: string) => string ->match : string +>match : string, Symbol(match, Decl(noImplicitAnyInContextuallyTypesFunctionParamter.ts, 2, 23)) >''.replace(match, '') : string ->''.replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; } ->replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; } ->match : string +>''.replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; }, Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63)) +>'' : string +>replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; }, Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63)) +>match : string, Symbol(match, Decl(noImplicitAnyInContextuallyTypesFunctionParamter.ts, 2, 23)) +>'' : string diff --git a/tests/baselines/reference/noImplicitAnyIndexingSuppressed.types b/tests/baselines/reference/noImplicitAnyIndexingSuppressed.types index 20be75dc29e..b8dc5f47ad0 100644 --- a/tests/baselines/reference/noImplicitAnyIndexingSuppressed.types +++ b/tests/baselines/reference/noImplicitAnyIndexingSuppressed.types @@ -1,118 +1,130 @@ === tests/cases/compiler/noImplicitAnyIndexingSuppressed.ts === enum MyEmusEnum { ->MyEmusEnum : MyEmusEnum +>MyEmusEnum : MyEmusEnum, Symbol(MyEmusEnum, Decl(noImplicitAnyIndexingSuppressed.ts, 0, 0)) emu ->emu : MyEmusEnum +>emu : MyEmusEnum, Symbol(MyEmusEnum.emu, Decl(noImplicitAnyIndexingSuppressed.ts, 1, 17)) } // Should be okay; should be a string. var strRepresentation1 = MyEmusEnum[0] ->strRepresentation1 : string +>strRepresentation1 : string, Symbol(strRepresentation1, Decl(noImplicitAnyIndexingSuppressed.ts, 6, 3)) >MyEmusEnum[0] : string ->MyEmusEnum : typeof MyEmusEnum +>MyEmusEnum : typeof MyEmusEnum, Symbol(MyEmusEnum, Decl(noImplicitAnyIndexingSuppressed.ts, 0, 0)) +>0 : number // Should be okay; should be a string. var strRepresentation2 = MyEmusEnum[MyEmusEnum.emu] ->strRepresentation2 : string +>strRepresentation2 : string, Symbol(strRepresentation2, Decl(noImplicitAnyIndexingSuppressed.ts, 9, 3)) >MyEmusEnum[MyEmusEnum.emu] : string ->MyEmusEnum : typeof MyEmusEnum ->MyEmusEnum.emu : MyEmusEnum ->MyEmusEnum : typeof MyEmusEnum ->emu : MyEmusEnum +>MyEmusEnum : typeof MyEmusEnum, Symbol(MyEmusEnum, Decl(noImplicitAnyIndexingSuppressed.ts, 0, 0)) +>MyEmusEnum.emu : MyEmusEnum, Symbol(MyEmusEnum.emu, Decl(noImplicitAnyIndexingSuppressed.ts, 1, 17)) +>MyEmusEnum : typeof MyEmusEnum, Symbol(MyEmusEnum, Decl(noImplicitAnyIndexingSuppressed.ts, 0, 0)) +>emu : MyEmusEnum, Symbol(MyEmusEnum.emu, Decl(noImplicitAnyIndexingSuppressed.ts, 1, 17)) // Should be okay, as we suppress implicit 'any' property access checks var strRepresentation3 = MyEmusEnum["monehh"]; ->strRepresentation3 : any +>strRepresentation3 : any, Symbol(strRepresentation3, Decl(noImplicitAnyIndexingSuppressed.ts, 12, 3)) >MyEmusEnum["monehh"] : any ->MyEmusEnum : typeof MyEmusEnum +>MyEmusEnum : typeof MyEmusEnum, Symbol(MyEmusEnum, Decl(noImplicitAnyIndexingSuppressed.ts, 0, 0)) +>"monehh" : string // Should be okay; should be a MyEmusEnum var strRepresentation4 = MyEmusEnum["emu"]; ->strRepresentation4 : MyEmusEnum +>strRepresentation4 : MyEmusEnum, Symbol(strRepresentation4, Decl(noImplicitAnyIndexingSuppressed.ts, 15, 3)) >MyEmusEnum["emu"] : MyEmusEnum ->MyEmusEnum : typeof MyEmusEnum +>MyEmusEnum : typeof MyEmusEnum, Symbol(MyEmusEnum, Decl(noImplicitAnyIndexingSuppressed.ts, 0, 0)) +>"emu" : string, Symbol(MyEmusEnum.emu, Decl(noImplicitAnyIndexingSuppressed.ts, 1, 17)) // Should be okay, as we suppress implicit 'any' property access checks var x = {}["hi"]; ->x : any +>x : any, Symbol(x, Decl(noImplicitAnyIndexingSuppressed.ts, 19, 3)) >{}["hi"] : any >{} : {} +>"hi" : string // Should be okay, as we suppress implicit 'any' property access checks var y = {}[10]; ->y : any +>y : any, Symbol(y, Decl(noImplicitAnyIndexingSuppressed.ts, 22, 3)) >{}[10] : any >{} : {} +>10 : number var hi: any = "hi"; ->hi : any +>hi : any, Symbol(hi, Decl(noImplicitAnyIndexingSuppressed.ts, 24, 3)) +>"hi" : string var emptyObj = {}; ->emptyObj : {} +>emptyObj : {}, Symbol(emptyObj, Decl(noImplicitAnyIndexingSuppressed.ts, 26, 3)) >{} : {} // Should be okay, as we suppress implicit 'any' property access checks var z1 = emptyObj[hi]; ->z1 : any +>z1 : any, Symbol(z1, Decl(noImplicitAnyIndexingSuppressed.ts, 29, 3)) >emptyObj[hi] : any ->emptyObj : {} ->hi : any +>emptyObj : {}, Symbol(emptyObj, Decl(noImplicitAnyIndexingSuppressed.ts, 26, 3)) +>hi : any, Symbol(hi, Decl(noImplicitAnyIndexingSuppressed.ts, 24, 3)) var z2 = (emptyObj)[hi]; ->z2 : any +>z2 : any, Symbol(z2, Decl(noImplicitAnyIndexingSuppressed.ts, 30, 3)) >(emptyObj)[hi] : any >(emptyObj) : any >emptyObj : any ->emptyObj : {} ->hi : any +>emptyObj : {}, Symbol(emptyObj, Decl(noImplicitAnyIndexingSuppressed.ts, 26, 3)) +>hi : any, Symbol(hi, Decl(noImplicitAnyIndexingSuppressed.ts, 24, 3)) interface MyMap { ->MyMap : MyMap ->T : T +>MyMap : MyMap, Symbol(MyMap, Decl(noImplicitAnyIndexingSuppressed.ts, 30, 29)) +>T : T, Symbol(T, Decl(noImplicitAnyIndexingSuppressed.ts, 32, 16)) [key: string]: T; ->key : string ->T : T +>key : string, Symbol(key, Decl(noImplicitAnyIndexingSuppressed.ts, 33, 5)) +>T : T, Symbol(T, Decl(noImplicitAnyIndexingSuppressed.ts, 32, 16)) } var m: MyMap = { ->m : MyMap ->MyMap : MyMap +>m : MyMap, Symbol(m, Decl(noImplicitAnyIndexingSuppressed.ts, 36, 3)) +>MyMap : MyMap, Symbol(MyMap, Decl(noImplicitAnyIndexingSuppressed.ts, 30, 29)) >{ "0": 0, "1": 1, "2": 2, "Okay that's enough for today.": NaN} : { [x: string]: number; "0": number; "1": number; "2": number; "Okay that's enough for today.": number; } "0": 0, +>0 : number + "1": 1, +>1 : number + "2": 2, +>2 : number + "Okay that's enough for today.": NaN ->NaN : number +>NaN : number, Symbol(NaN, Decl(lib.d.ts, 21, 11)) }; var mResult1 = m[MyEmusEnum.emu]; ->mResult1 : number +>mResult1 : number, Symbol(mResult1, Decl(noImplicitAnyIndexingSuppressed.ts, 43, 3)) >m[MyEmusEnum.emu] : number ->m : MyMap ->MyEmusEnum.emu : MyEmusEnum ->MyEmusEnum : typeof MyEmusEnum ->emu : MyEmusEnum +>m : MyMap, Symbol(m, Decl(noImplicitAnyIndexingSuppressed.ts, 36, 3)) +>MyEmusEnum.emu : MyEmusEnum, Symbol(MyEmusEnum.emu, Decl(noImplicitAnyIndexingSuppressed.ts, 1, 17)) +>MyEmusEnum : typeof MyEmusEnum, Symbol(MyEmusEnum, Decl(noImplicitAnyIndexingSuppressed.ts, 0, 0)) +>emu : MyEmusEnum, Symbol(MyEmusEnum.emu, Decl(noImplicitAnyIndexingSuppressed.ts, 1, 17)) var mResult2 = m[MyEmusEnum[MyEmusEnum.emu]]; ->mResult2 : number +>mResult2 : number, Symbol(mResult2, Decl(noImplicitAnyIndexingSuppressed.ts, 44, 3)) >m[MyEmusEnum[MyEmusEnum.emu]] : number ->m : MyMap +>m : MyMap, Symbol(m, Decl(noImplicitAnyIndexingSuppressed.ts, 36, 3)) >MyEmusEnum[MyEmusEnum.emu] : string ->MyEmusEnum : typeof MyEmusEnum ->MyEmusEnum.emu : MyEmusEnum ->MyEmusEnum : typeof MyEmusEnum ->emu : MyEmusEnum +>MyEmusEnum : typeof MyEmusEnum, Symbol(MyEmusEnum, Decl(noImplicitAnyIndexingSuppressed.ts, 0, 0)) +>MyEmusEnum.emu : MyEmusEnum, Symbol(MyEmusEnum.emu, Decl(noImplicitAnyIndexingSuppressed.ts, 1, 17)) +>MyEmusEnum : typeof MyEmusEnum, Symbol(MyEmusEnum, Decl(noImplicitAnyIndexingSuppressed.ts, 0, 0)) +>emu : MyEmusEnum, Symbol(MyEmusEnum.emu, Decl(noImplicitAnyIndexingSuppressed.ts, 1, 17)) var mResult3 = m[hi]; ->mResult3 : number +>mResult3 : number, Symbol(mResult3, Decl(noImplicitAnyIndexingSuppressed.ts, 45, 3)) >m[hi] : number ->m : MyMap ->hi : any +>m : MyMap, Symbol(m, Decl(noImplicitAnyIndexingSuppressed.ts, 36, 3)) +>hi : any, Symbol(hi, Decl(noImplicitAnyIndexingSuppressed.ts, 24, 3)) diff --git a/tests/baselines/reference/noSelfOnVars.types b/tests/baselines/reference/noSelfOnVars.types index 8a059d8bc60..fd945ff2128 100644 --- a/tests/baselines/reference/noSelfOnVars.types +++ b/tests/baselines/reference/noSelfOnVars.types @@ -1,13 +1,13 @@ === tests/cases/compiler/noSelfOnVars.ts === function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(noSelfOnVars.ts, 0, 0)) function bar() { } ->bar : () => void +>bar : () => void, Symbol(bar, Decl(noSelfOnVars.ts, 0, 16)) var x = bar; ->x : () => void ->bar : () => void +>x : () => void, Symbol(x, Decl(noSelfOnVars.ts, 2, 7)) +>bar : () => void, Symbol(bar, Decl(noSelfOnVars.ts, 0, 16)) } diff --git a/tests/baselines/reference/nominalSubtypeCheckOfTypeParameter.types b/tests/baselines/reference/nominalSubtypeCheckOfTypeParameter.types index 79b2ac77d78..6f92dc28a9a 100644 --- a/tests/baselines/reference/nominalSubtypeCheckOfTypeParameter.types +++ b/tests/baselines/reference/nominalSubtypeCheckOfTypeParameter.types @@ -1,61 +1,61 @@ === tests/cases/conformance/types/typeRelationships/recursiveTypes/nominalSubtypeCheckOfTypeParameter.ts === interface Tuple { ->Tuple : Tuple ->T : T ->S : S +>Tuple : Tuple, Symbol(Tuple, Decl(nominalSubtypeCheckOfTypeParameter.ts, 0, 0)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter.ts, 0, 16)) +>S : S, Symbol(S, Decl(nominalSubtypeCheckOfTypeParameter.ts, 0, 18)) first: T ->first : T ->T : T +>first : T, Symbol(first, Decl(nominalSubtypeCheckOfTypeParameter.ts, 0, 23)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter.ts, 0, 16)) second: S ->second : S ->S : S +>second : S, Symbol(second, Decl(nominalSubtypeCheckOfTypeParameter.ts, 1, 12)) +>S : S, Symbol(S, Decl(nominalSubtypeCheckOfTypeParameter.ts, 0, 18)) } interface Sequence { ->Sequence : Sequence ->T : T +>Sequence : Sequence, Symbol(Sequence, Decl(nominalSubtypeCheckOfTypeParameter.ts, 3, 1)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter.ts, 5, 19)) hasNext(): boolean ->hasNext : () => boolean +>hasNext : () => boolean, Symbol(hasNext, Decl(nominalSubtypeCheckOfTypeParameter.ts, 5, 23)) pop(): T ->pop : () => T ->T : T +>pop : () => T, Symbol(pop, Decl(nominalSubtypeCheckOfTypeParameter.ts, 6, 22)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter.ts, 5, 19)) zip(seq: Sequence): Sequence> ->zip : (seq: Sequence) => Sequence> ->S : S ->seq : Sequence ->Sequence : Sequence ->S : S ->Sequence : Sequence ->Tuple : Tuple ->T : T ->S : S +>zip : (seq: Sequence) => Sequence>, Symbol(zip, Decl(nominalSubtypeCheckOfTypeParameter.ts, 7, 14)) +>S : S, Symbol(S, Decl(nominalSubtypeCheckOfTypeParameter.ts, 8, 10)) +>seq : Sequence, Symbol(seq, Decl(nominalSubtypeCheckOfTypeParameter.ts, 8, 13)) +>Sequence : Sequence, Symbol(Sequence, Decl(nominalSubtypeCheckOfTypeParameter.ts, 3, 1)) +>S : S, Symbol(S, Decl(nominalSubtypeCheckOfTypeParameter.ts, 8, 10)) +>Sequence : Sequence, Symbol(Sequence, Decl(nominalSubtypeCheckOfTypeParameter.ts, 3, 1)) +>Tuple : Tuple, Symbol(Tuple, Decl(nominalSubtypeCheckOfTypeParameter.ts, 0, 0)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter.ts, 5, 19)) +>S : S, Symbol(S, Decl(nominalSubtypeCheckOfTypeParameter.ts, 8, 10)) } // error, despite the fact that the code explicitly says List extends Sequence, the current rules for infinitely expanding type references // perform nominal subtyping checks that allow variance for type arguments, but not nominal subtyping for the generic type itself interface List extends Sequence { ->List : List ->T : T ->Sequence : Sequence ->T : T +>List : List, Symbol(List, Decl(nominalSubtypeCheckOfTypeParameter.ts, 9, 1)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter.ts, 13, 15)) +>Sequence : Sequence, Symbol(Sequence, Decl(nominalSubtypeCheckOfTypeParameter.ts, 3, 1)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter.ts, 13, 15)) getLength(): number ->getLength : () => number +>getLength : () => number, Symbol(getLength, Decl(nominalSubtypeCheckOfTypeParameter.ts, 13, 39)) zip(seq: Sequence): List> ->zip : (seq: Sequence) => List> ->S : S ->seq : Sequence ->Sequence : Sequence ->S : S ->List : List ->Tuple : Tuple ->T : T ->S : S +>zip : (seq: Sequence) => List>, Symbol(zip, Decl(nominalSubtypeCheckOfTypeParameter.ts, 14, 23)) +>S : S, Symbol(S, Decl(nominalSubtypeCheckOfTypeParameter.ts, 15, 10)) +>seq : Sequence, Symbol(seq, Decl(nominalSubtypeCheckOfTypeParameter.ts, 15, 13)) +>Sequence : Sequence, Symbol(Sequence, Decl(nominalSubtypeCheckOfTypeParameter.ts, 3, 1)) +>S : S, Symbol(S, Decl(nominalSubtypeCheckOfTypeParameter.ts, 15, 10)) +>List : List, Symbol(List, Decl(nominalSubtypeCheckOfTypeParameter.ts, 9, 1)) +>Tuple : Tuple, Symbol(Tuple, Decl(nominalSubtypeCheckOfTypeParameter.ts, 0, 0)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter.ts, 13, 15)) +>S : S, Symbol(S, Decl(nominalSubtypeCheckOfTypeParameter.ts, 15, 10)) } diff --git a/tests/baselines/reference/nominalSubtypeCheckOfTypeParameter2.types b/tests/baselines/reference/nominalSubtypeCheckOfTypeParameter2.types index 31549cd59c9..76a667a2066 100644 --- a/tests/baselines/reference/nominalSubtypeCheckOfTypeParameter2.types +++ b/tests/baselines/reference/nominalSubtypeCheckOfTypeParameter2.types @@ -1,55 +1,55 @@ === tests/cases/conformance/types/typeRelationships/recursiveTypes/nominalSubtypeCheckOfTypeParameter2.ts === interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 0, 0)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 0, 12)) bar: T; ->bar : T ->T : T +>bar : T, Symbol(bar, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 0, 16)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 0, 12)) } // ok interface A extends B { ->A : A ->T : T ->B : B ->T : T +>A : A, Symbol(A, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 2, 1)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 5, 12)) +>B : B, Symbol(B, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 0, 0)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 5, 12)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 5, 29)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 5, 12)) } // ok interface A2 extends B> { ->A2 : A2 ->T : T ->B : B ->B : B +>A2 : A2, Symbol(A2, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 7, 1)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 10, 13)) +>B : B, Symbol(B, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 0, 0)) +>B : B, Symbol(B, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 0, 0)) baz: T; ->baz : T ->T : T +>baz : T, Symbol(baz, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 10, 38)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 10, 13)) } interface C { ->C : C ->T : T +>C : C, Symbol(C, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 12, 1)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 14, 12)) bam: T; ->bam : T ->T : T +>bam : T, Symbol(bam, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 14, 16)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 14, 12)) } // ok interface A3 extends B> { ->A3 : A3 ->T : T ->B : B ->C : C ->T : T +>A3 : A3, Symbol(A3, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 16, 1)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 19, 13)) +>B : B, Symbol(B, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 0, 0)) +>C : C, Symbol(C, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 12, 1)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 19, 13)) bing: T; ->bing : T ->T : T +>bing : T, Symbol(bing, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 19, 33)) +>T : T, Symbol(T, Decl(nominalSubtypeCheckOfTypeParameter2.ts, 19, 13)) } diff --git a/tests/baselines/reference/nonConflictingRecursiveBaseTypeMembers.types b/tests/baselines/reference/nonConflictingRecursiveBaseTypeMembers.types index aa01b508764..f968543d582 100644 --- a/tests/baselines/reference/nonConflictingRecursiveBaseTypeMembers.types +++ b/tests/baselines/reference/nonConflictingRecursiveBaseTypeMembers.types @@ -1,29 +1,29 @@ === tests/cases/compiler/nonConflictingRecursiveBaseTypeMembers.ts === interface A { ->A : A ->T : T +>A : A, Symbol(A, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 0, 0)) +>T : T, Symbol(T, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 0, 12)) x: C ->x : C ->C : C ->T : T +>x : C, Symbol(x, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 0, 16)) +>C : C, Symbol(C, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 6, 1)) +>T : T, Symbol(T, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 0, 12)) } interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 2, 1)) +>T : T, Symbol(T, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 4, 12)) x: C ->x : C ->C : C ->T : T +>x : C, Symbol(x, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 4, 16)) +>C : C, Symbol(C, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 6, 1)) +>T : T, Symbol(T, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 4, 12)) } interface C extends A, B { } // Should not be an error ->C : C ->T : T ->A : A ->T : T ->B : B ->T : T +>C : C, Symbol(C, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 6, 1)) +>T : T, Symbol(T, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 8, 12)) +>A : A, Symbol(A, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 0, 0)) +>T : T, Symbol(T, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 8, 12)) +>B : B, Symbol(B, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 2, 1)) +>T : T, Symbol(T, Decl(nonConflictingRecursiveBaseTypeMembers.ts, 8, 12)) diff --git a/tests/baselines/reference/nonContextuallyTypedLogicalOr.types b/tests/baselines/reference/nonContextuallyTypedLogicalOr.types index aeb9d1409c6..578556ec217 100644 --- a/tests/baselines/reference/nonContextuallyTypedLogicalOr.types +++ b/tests/baselines/reference/nonContextuallyTypedLogicalOr.types @@ -1,37 +1,37 @@ === tests/cases/compiler/nonContextuallyTypedLogicalOr.ts === interface Contextual { ->Contextual : Contextual +>Contextual : Contextual, Symbol(Contextual, Decl(nonContextuallyTypedLogicalOr.ts, 0, 0)) dummy; ->dummy : any +>dummy : any, Symbol(dummy, Decl(nonContextuallyTypedLogicalOr.ts, 0, 22)) p?: number; ->p : number +>p : number, Symbol(p, Decl(nonContextuallyTypedLogicalOr.ts, 1, 10)) } interface Ellement { ->Ellement : Ellement +>Ellement : Ellement, Symbol(Ellement, Decl(nonContextuallyTypedLogicalOr.ts, 3, 1)) dummy; ->dummy : any +>dummy : any, Symbol(dummy, Decl(nonContextuallyTypedLogicalOr.ts, 5, 20)) p: any; ->p : any +>p : any, Symbol(p, Decl(nonContextuallyTypedLogicalOr.ts, 6, 10)) } var c: Contextual; ->c : Contextual ->Contextual : Contextual +>c : Contextual, Symbol(c, Decl(nonContextuallyTypedLogicalOr.ts, 10, 3)) +>Contextual : Contextual, Symbol(Contextual, Decl(nonContextuallyTypedLogicalOr.ts, 0, 0)) var e: Ellement; ->e : Ellement ->Ellement : Ellement +>e : Ellement, Symbol(e, Decl(nonContextuallyTypedLogicalOr.ts, 11, 3)) +>Ellement : Ellement, Symbol(Ellement, Decl(nonContextuallyTypedLogicalOr.ts, 3, 1)) (c || e).dummy; ->(c || e).dummy : any +>(c || e).dummy : any, Symbol(dummy, Decl(nonContextuallyTypedLogicalOr.ts, 0, 22), Decl(nonContextuallyTypedLogicalOr.ts, 5, 20)) >(c || e) : Contextual | Ellement >c || e : Contextual | Ellement ->c : Contextual ->e : Ellement ->dummy : any +>c : Contextual, Symbol(c, Decl(nonContextuallyTypedLogicalOr.ts, 10, 3)) +>e : Ellement, Symbol(e, Decl(nonContextuallyTypedLogicalOr.ts, 11, 3)) +>dummy : any, Symbol(dummy, Decl(nonContextuallyTypedLogicalOr.ts, 0, 22), Decl(nonContextuallyTypedLogicalOr.ts, 5, 20)) diff --git a/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.types b/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.types index 177becac643..6f7c6340038 100644 --- a/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.types +++ b/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.types @@ -1,14 +1,14 @@ === tests/cases/compiler/nonGenericClassExtendingGenericClassWithAny.ts === class Foo { ->Foo : Foo ->T : T +>Foo : Foo, Symbol(Foo, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 0)) +>T : T, Symbol(T, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 10)) t: T; ->t : T ->T : T +>t : T, Symbol(t, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 14)) +>T : T, Symbol(T, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 10)) } class Bar extends Foo { } // Valid ->Bar : Bar ->Foo : Foo +>Bar : Bar, Symbol(Bar, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 2, 1)) +>Foo : Foo, Symbol(Foo, Decl(nonGenericClassExtendingGenericClassWithAny.ts, 0, 0)) diff --git a/tests/baselines/reference/nonInstantiatedModule.types b/tests/baselines/reference/nonInstantiatedModule.types index 1093fbd0653..f1f1a703c6e 100644 --- a/tests/baselines/reference/nonInstantiatedModule.types +++ b/tests/baselines/reference/nonInstantiatedModule.types @@ -1,111 +1,115 @@ === tests/cases/conformance/internalModules/moduleDeclarations/nonInstantiatedModule.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(nonInstantiatedModule.ts, 0, 0)) export interface Point { x: number; y: number } ->Point : Point ->x : number ->y : number +>Point : Point, Symbol(Point, Decl(nonInstantiatedModule.ts, 0, 10)) +>x : number, Symbol(x, Decl(nonInstantiatedModule.ts, 1, 28)) +>y : number, Symbol(y, Decl(nonInstantiatedModule.ts, 1, 39)) export var a = 1; ->a : number +>a : number, Symbol(a, Decl(nonInstantiatedModule.ts, 2, 14)) +>1 : number } // primary expression var m : typeof M; ->m : typeof M ->M : typeof M +>m : typeof M, Symbol(m, Decl(nonInstantiatedModule.ts, 6, 3), Decl(nonInstantiatedModule.ts, 7, 3)) +>M : typeof M, Symbol(M, Decl(nonInstantiatedModule.ts, 0, 0)) var m = M; ->m : typeof M ->M : typeof M +>m : typeof M, Symbol(m, Decl(nonInstantiatedModule.ts, 6, 3), Decl(nonInstantiatedModule.ts, 7, 3)) +>M : typeof M, Symbol(M, Decl(nonInstantiatedModule.ts, 0, 0)) var a1: number; ->a1 : number +>a1 : number, Symbol(a1, Decl(nonInstantiatedModule.ts, 9, 3), Decl(nonInstantiatedModule.ts, 10, 3)) var a1 = M.a; ->a1 : number ->M.a : number ->M : typeof M ->a : number +>a1 : number, Symbol(a1, Decl(nonInstantiatedModule.ts, 9, 3), Decl(nonInstantiatedModule.ts, 10, 3)) +>M.a : number, Symbol(M.a, Decl(nonInstantiatedModule.ts, 2, 14)) +>M : typeof M, Symbol(M, Decl(nonInstantiatedModule.ts, 0, 0)) +>a : number, Symbol(M.a, Decl(nonInstantiatedModule.ts, 2, 14)) var a2: number; ->a2 : number +>a2 : number, Symbol(a2, Decl(nonInstantiatedModule.ts, 12, 3), Decl(nonInstantiatedModule.ts, 13, 3)) var a2 = m.a; ->a2 : number ->m.a : number ->m : typeof M ->a : number +>a2 : number, Symbol(a2, Decl(nonInstantiatedModule.ts, 12, 3), Decl(nonInstantiatedModule.ts, 13, 3)) +>m.a : number, Symbol(M.a, Decl(nonInstantiatedModule.ts, 2, 14)) +>m : typeof M, Symbol(m, Decl(nonInstantiatedModule.ts, 6, 3), Decl(nonInstantiatedModule.ts, 7, 3)) +>a : number, Symbol(M.a, Decl(nonInstantiatedModule.ts, 2, 14)) module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(nonInstantiatedModule.ts, 13, 13)) export module Point { ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(nonInstantiatedModule.ts, 15, 11), Decl(nonInstantiatedModule.ts, 20, 5)) export function Origin(): Point { ->Origin : () => Point ->Point : Point +>Origin : () => Point, Symbol(Origin, Decl(nonInstantiatedModule.ts, 16, 25)) +>Point : Point, Symbol(Point, Decl(nonInstantiatedModule.ts, 15, 11), Decl(nonInstantiatedModule.ts, 20, 5)) return { x: 0, y: 0 }; >{ x: 0, y: 0 } : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(nonInstantiatedModule.ts, 18, 20)) +>0 : number +>y : number, Symbol(y, Decl(nonInstantiatedModule.ts, 18, 26)) +>0 : number } } export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(nonInstantiatedModule.ts, 15, 11), Decl(nonInstantiatedModule.ts, 20, 5)) x: number; ->x : number +>x : number, Symbol(x, Decl(nonInstantiatedModule.ts, 22, 28)) y: number; ->y : number +>y : number, Symbol(y, Decl(nonInstantiatedModule.ts, 23, 18)) } } var p: { x: number; y: number; }; ->p : { x: number; y: number; } ->x : number ->y : number +>p : { x: number; y: number; }, Symbol(p, Decl(nonInstantiatedModule.ts, 28, 3), Decl(nonInstantiatedModule.ts, 29, 3)) +>x : number, Symbol(x, Decl(nonInstantiatedModule.ts, 28, 8)) +>y : number, Symbol(y, Decl(nonInstantiatedModule.ts, 28, 19)) var p: M2.Point; ->p : { x: number; y: number; } ->M2 : unknown ->Point : M2.Point +>p : { x: number; y: number; }, Symbol(p, Decl(nonInstantiatedModule.ts, 28, 3), Decl(nonInstantiatedModule.ts, 29, 3)) +>M2 : any, Symbol(M2, Decl(nonInstantiatedModule.ts, 13, 13)) +>Point : M2.Point, Symbol(M2.Point, Decl(nonInstantiatedModule.ts, 15, 11), Decl(nonInstantiatedModule.ts, 20, 5)) var p2: { Origin() : { x: number; y: number; } }; ->p2 : { Origin(): { x: number; y: number; }; } ->Origin : () => { x: number; y: number; } ->x : number ->y : number +>p2 : { Origin(): { x: number; y: number; }; }, Symbol(p2, Decl(nonInstantiatedModule.ts, 31, 3), Decl(nonInstantiatedModule.ts, 32, 3)) +>Origin : () => { x: number; y: number; }, Symbol(Origin, Decl(nonInstantiatedModule.ts, 31, 9)) +>x : number, Symbol(x, Decl(nonInstantiatedModule.ts, 31, 22)) +>y : number, Symbol(y, Decl(nonInstantiatedModule.ts, 31, 33)) var p2: typeof M2.Point; ->p2 : { Origin(): { x: number; y: number; }; } ->M2 : typeof M2 ->Point : typeof M2.Point +>p2 : { Origin(): { x: number; y: number; }; }, Symbol(p2, Decl(nonInstantiatedModule.ts, 31, 3), Decl(nonInstantiatedModule.ts, 32, 3)) +>M2.Point : typeof M2.Point, Symbol(M2.Point, Decl(nonInstantiatedModule.ts, 15, 11), Decl(nonInstantiatedModule.ts, 20, 5)) +>M2 : typeof M2, Symbol(M2, Decl(nonInstantiatedModule.ts, 13, 13)) +>Point : typeof M2.Point, Symbol(M2.Point, Decl(nonInstantiatedModule.ts, 15, 11), Decl(nonInstantiatedModule.ts, 20, 5)) module M3 { ->M3 : typeof M3 +>M3 : typeof M3, Symbol(M3, Decl(nonInstantiatedModule.ts, 32, 24)) export module Utils { ->Utils : typeof Utils +>Utils : typeof Utils, Symbol(Utils, Decl(nonInstantiatedModule.ts, 34, 11), Decl(nonInstantiatedModule.ts, 39, 5)) export interface Point { ->Point : Point +>Point : Point, Symbol(Point, Decl(nonInstantiatedModule.ts, 35, 25)) x: number; y: number; ->x : number ->y : number +>x : number, Symbol(x, Decl(nonInstantiatedModule.ts, 36, 32)) +>y : number, Symbol(y, Decl(nonInstantiatedModule.ts, 37, 22)) } } export class Utils { ->Utils : Utils +>Utils : Utils, Symbol(Utils, Decl(nonInstantiatedModule.ts, 34, 11), Decl(nonInstantiatedModule.ts, 39, 5)) name: string; ->name : string +>name : string, Symbol(name, Decl(nonInstantiatedModule.ts, 41, 24)) } } diff --git a/tests/baselines/reference/null.types b/tests/baselines/reference/null.types index 7a5232efb0b..76ce7be7148 100644 --- a/tests/baselines/reference/null.types +++ b/tests/baselines/reference/null.types @@ -1,48 +1,59 @@ === tests/cases/compiler/null.ts === var x=null; ->x : any +>x : any, Symbol(x, Decl(null.ts, 0, 3)) +>null : null var y=3+x; ->y : any +>y : any, Symbol(y, Decl(null.ts, 1, 3)) >3+x : any ->x : any +>3 : number +>x : any, Symbol(x, Decl(null.ts, 0, 3)) var z=3+null; ->z : number +>z : number, Symbol(z, Decl(null.ts, 2, 3)) >3+null : number +>3 : number +>null : null class C { ->C : C +>C : C, Symbol(C, Decl(null.ts, 2, 13)) } function f() { ->f : () => C +>f : () => C, Symbol(f, Decl(null.ts, 4, 1)) return null; +>null : null + return new C(); >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(null.ts, 2, 13)) } function g() { ->g : () => number +>g : () => number, Symbol(g, Decl(null.ts, 8, 1)) return null; +>null : null + return 3; +>3 : number } interface I { ->I : I +>I : I, Symbol(I, Decl(null.ts, 12, 1)) x:any; ->x : any +>x : any, Symbol(x, Decl(null.ts, 13, 13)) y:number; ->y : number +>y : number, Symbol(y, Decl(null.ts, 14, 10)) } var w:I={x:null,y:3}; ->w : I ->I : I +>w : I, Symbol(w, Decl(null.ts, 17, 3)) +>I : I, Symbol(I, Decl(null.ts, 12, 1)) >{x:null,y:3} : { x: null; y: number; } ->x : null ->y : number +>x : null, Symbol(x, Decl(null.ts, 17, 9)) +>null : null +>y : number, Symbol(y, Decl(null.ts, 17, 16)) +>3 : number diff --git a/tests/baselines/reference/nullAssignableToEveryType.types b/tests/baselines/reference/nullAssignableToEveryType.types index aaf3b3bd8c5..5f8c27ff885 100644 --- a/tests/baselines/reference/nullAssignableToEveryType.types +++ b/tests/baselines/reference/nullAssignableToEveryType.types @@ -1,127 +1,149 @@ === tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignableToEveryType.ts === class C { ->C : C +>C : C, Symbol(C, Decl(nullAssignableToEveryType.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(nullAssignableToEveryType.ts, 0, 9)) } var ac: C; ->ac : C ->C : C +>ac : C, Symbol(ac, Decl(nullAssignableToEveryType.ts, 3, 3)) +>C : C, Symbol(C, Decl(nullAssignableToEveryType.ts, 0, 0)) interface I { ->I : I +>I : I, Symbol(I, Decl(nullAssignableToEveryType.ts, 3, 10)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(nullAssignableToEveryType.ts, 4, 13)) } var ai: I; ->ai : I ->I : I +>ai : I, Symbol(ai, Decl(nullAssignableToEveryType.ts, 7, 3)) +>I : I, Symbol(I, Decl(nullAssignableToEveryType.ts, 3, 10)) enum E { A } ->E : E ->A : E +>E : E, Symbol(E, Decl(nullAssignableToEveryType.ts, 7, 10)) +>A : E, Symbol(E.A, Decl(nullAssignableToEveryType.ts, 9, 8)) var ae: E; ->ae : E ->E : E +>ae : E, Symbol(ae, Decl(nullAssignableToEveryType.ts, 10, 3)) +>E : E, Symbol(E, Decl(nullAssignableToEveryType.ts, 7, 10)) var b: number = null; ->b : number +>b : number, Symbol(b, Decl(nullAssignableToEveryType.ts, 12, 3)) +>null : null var c: string = null; ->c : string +>c : string, Symbol(c, Decl(nullAssignableToEveryType.ts, 13, 3)) +>null : null var d: boolean = null; ->d : boolean +>d : boolean, Symbol(d, Decl(nullAssignableToEveryType.ts, 14, 3)) +>null : null var e: Date = null; ->e : Date ->Date : Date +>e : Date, Symbol(e, Decl(nullAssignableToEveryType.ts, 15, 3)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>null : null var f: any = null; ->f : any +>f : any, Symbol(f, Decl(nullAssignableToEveryType.ts, 16, 3)) +>null : null var g: void = null; ->g : void +>g : void, Symbol(g, Decl(nullAssignableToEveryType.ts, 17, 3)) +>null : null var h: Object = null; ->h : Object ->Object : Object +>h : Object, Symbol(h, Decl(nullAssignableToEveryType.ts, 18, 3)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>null : null var i: {} = null; ->i : {} +>i : {}, Symbol(i, Decl(nullAssignableToEveryType.ts, 19, 3)) +>null : null var j: () => {} = null; ->j : () => {} +>j : () => {}, Symbol(j, Decl(nullAssignableToEveryType.ts, 20, 3)) +>null : null var k: Function = null; ->k : Function ->Function : Function +>k : Function, Symbol(k, Decl(nullAssignableToEveryType.ts, 21, 3)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) +>null : null var l: (x: number) => string = null; ->l : (x: number) => string ->x : number +>l : (x: number) => string, Symbol(l, Decl(nullAssignableToEveryType.ts, 22, 3)) +>x : number, Symbol(x, Decl(nullAssignableToEveryType.ts, 22, 8)) +>null : null ac = null; >ac = null : null ->ac : C +>ac : C, Symbol(ac, Decl(nullAssignableToEveryType.ts, 3, 3)) +>null : null ai = null; >ai = null : null ->ai : I +>ai : I, Symbol(ai, Decl(nullAssignableToEveryType.ts, 7, 3)) +>null : null ae = null; >ae = null : null ->ae : E +>ae : E, Symbol(ae, Decl(nullAssignableToEveryType.ts, 10, 3)) +>null : null var m: number[] = null; ->m : number[] +>m : number[], Symbol(m, Decl(nullAssignableToEveryType.ts, 26, 3)) +>null : null var n: { foo: string } = null; ->n : { foo: string; } ->foo : string +>n : { foo: string; }, Symbol(n, Decl(nullAssignableToEveryType.ts, 27, 3)) +>foo : string, Symbol(foo, Decl(nullAssignableToEveryType.ts, 27, 8)) +>null : null var o: (x: T) => T = null; ->o : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>o : (x: T) => T, Symbol(o, Decl(nullAssignableToEveryType.ts, 28, 3)) +>T : T, Symbol(T, Decl(nullAssignableToEveryType.ts, 28, 8)) +>x : T, Symbol(x, Decl(nullAssignableToEveryType.ts, 28, 11)) +>T : T, Symbol(T, Decl(nullAssignableToEveryType.ts, 28, 8)) +>T : T, Symbol(T, Decl(nullAssignableToEveryType.ts, 28, 8)) +>null : null var p: Number = null; ->p : Number ->Number : Number +>p : Number, Symbol(p, Decl(nullAssignableToEveryType.ts, 29, 3)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) +>null : null var q: String = null; ->q : String ->String : String +>q : String, Symbol(q, Decl(nullAssignableToEveryType.ts, 30, 3)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) +>null : null function foo(x: T, y: U, z: V) { ->foo : (x: T, y: U, z: V) => void ->T : T ->U : U ->V : V ->Date : Date ->x : T ->T : T ->y : U ->U : U ->z : V ->V : V +>foo : (x: T, y: U, z: V) => void, Symbol(foo, Decl(nullAssignableToEveryType.ts, 30, 21)) +>T : T, Symbol(T, Decl(nullAssignableToEveryType.ts, 32, 13)) +>U : U, Symbol(U, Decl(nullAssignableToEveryType.ts, 32, 15)) +>V : V, Symbol(V, Decl(nullAssignableToEveryType.ts, 32, 18)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : T, Symbol(x, Decl(nullAssignableToEveryType.ts, 32, 35)) +>T : T, Symbol(T, Decl(nullAssignableToEveryType.ts, 32, 13)) +>y : U, Symbol(y, Decl(nullAssignableToEveryType.ts, 32, 40)) +>U : U, Symbol(U, Decl(nullAssignableToEveryType.ts, 32, 15)) +>z : V, Symbol(z, Decl(nullAssignableToEveryType.ts, 32, 46)) +>V : V, Symbol(V, Decl(nullAssignableToEveryType.ts, 32, 18)) x = null; >x = null : null ->x : T +>x : T, Symbol(x, Decl(nullAssignableToEveryType.ts, 32, 35)) +>null : null y = null; >y = null : null ->y : U +>y : U, Symbol(y, Decl(nullAssignableToEveryType.ts, 32, 40)) +>null : null z = null; >z = null : null ->z : V +>z : V, Symbol(z, Decl(nullAssignableToEveryType.ts, 32, 46)) +>null : null } //function foo(x: T, y: U, z: V) { diff --git a/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.types b/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.types index 066f5eadef4..992c05f473d 100644 --- a/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.types +++ b/tests/baselines/reference/nullIsSubtypeOfEverythingButUndefined.types @@ -2,275 +2,365 @@ // null is a subtype of any other types except undefined var r0 = true ? null : null; ->r0 : any +>r0 : any, Symbol(r0, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 2, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 3, 3)) >true ? null : null : null +>true : boolean +>null : null +>null : null var r0 = true ? null : null; ->r0 : any +>r0 : any, Symbol(r0, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 2, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 3, 3)) >true ? null : null : null +>true : boolean +>null : null +>null : null var u: typeof undefined; ->u : any ->undefined : undefined +>u : any, Symbol(u, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 5, 3)) +>undefined : undefined, Symbol(undefined) var r0b = true ? u : null; ->r0b : any +>r0b : any, Symbol(r0b, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 6, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 7, 3)) >true ? u : null : any ->u : any +>true : boolean +>u : any, Symbol(u, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 5, 3)) +>null : null var r0b = true ? null : u; ->r0b : any +>r0b : any, Symbol(r0b, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 6, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 7, 3)) >true ? null : u : any ->u : any +>true : boolean +>null : null +>u : any, Symbol(u, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 5, 3)) var r1 = true ? 1 : null; ->r1 : number +>r1 : number, Symbol(r1, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 9, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 10, 3)) >true ? 1 : null : number +>true : boolean +>1 : number +>null : null var r1 = true ? null : 1; ->r1 : number +>r1 : number, Symbol(r1, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 9, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 10, 3)) >true ? null : 1 : number +>true : boolean +>null : null +>1 : number var r2 = true ? '' : null; ->r2 : string +>r2 : string, Symbol(r2, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 12, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 13, 3)) >true ? '' : null : string +>true : boolean +>'' : string +>null : null var r2 = true ? null : ''; ->r2 : string +>r2 : string, Symbol(r2, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 12, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 13, 3)) >true ? null : '' : string +>true : boolean +>null : null +>'' : string var r3 = true ? true : null; ->r3 : boolean +>r3 : boolean, Symbol(r3, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 15, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 16, 3)) >true ? true : null : boolean +>true : boolean +>true : boolean +>null : null var r3 = true ? null : true; ->r3 : boolean +>r3 : boolean, Symbol(r3, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 15, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 16, 3)) >true ? null : true : boolean +>true : boolean +>null : null +>true : boolean var r4 = true ? new Date() : null; ->r4 : Date +>r4 : Date, Symbol(r4, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 18, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 19, 3)) >true ? new Date() : null : Date +>true : boolean >new Date() : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>null : null var r4 = true ? null : new Date(); ->r4 : Date +>r4 : Date, Symbol(r4, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 18, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 19, 3)) >true ? null : new Date() : Date +>true : boolean +>null : null >new Date() : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var r5 = true ? /1/ : null; ->r5 : RegExp +>r5 : RegExp, Symbol(r5, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 21, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 22, 3)) >true ? /1/ : null : RegExp +>true : boolean +>/1/ : RegExp +>null : null var r5 = true ? null : /1/; ->r5 : RegExp +>r5 : RegExp, Symbol(r5, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 21, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 22, 3)) >true ? null : /1/ : RegExp +>true : boolean +>null : null +>/1/ : RegExp var r6 = true ? { foo: 1 } : null; ->r6 : { foo: number; } +>r6 : { foo: number; }, Symbol(r6, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 24, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 25, 3)) >true ? { foo: 1 } : null : { foo: number; } +>true : boolean >{ foo: 1 } : { foo: number; } ->foo : number +>foo : number, Symbol(foo, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 24, 17)) +>1 : number +>null : null var r6 = true ? null : { foo: 1 }; ->r6 : { foo: number; } +>r6 : { foo: number; }, Symbol(r6, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 24, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 25, 3)) >true ? null : { foo: 1 } : { foo: number; } +>true : boolean +>null : null >{ foo: 1 } : { foo: number; } ->foo : number +>foo : number, Symbol(foo, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 25, 24)) +>1 : number var r7 = true ? () => { } : null; ->r7 : () => void +>r7 : () => void, Symbol(r7, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 27, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 28, 3)) >true ? () => { } : null : () => void +>true : boolean >() => { } : () => void +>null : null var r7 = true ? null : () => { }; ->r7 : () => void +>r7 : () => void, Symbol(r7, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 27, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 28, 3)) >true ? null : () => { } : () => void +>true : boolean +>null : null >() => { } : () => void var r8 = true ? (x: T) => { return x } : null; ->r8 : (x: T) => T +>r8 : (x: T) => T, Symbol(r8, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 30, 3)) >true ? (x: T) => { return x } : null : (x: T) => T +>true : boolean >(x: T) => { return x } : (x: T) => T ->T : T ->x : T ->T : T ->x : T +>T : T, Symbol(T, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 30, 17)) +>x : T, Symbol(x, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 30, 20)) +>T : T, Symbol(T, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 30, 17)) +>x : T, Symbol(x, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 30, 20)) +>null : null var r8b = true ? null : (x: T) => { return x }; // type parameters not identical across declarations ->r8b : (x: T) => T +>r8b : (x: T) => T, Symbol(r8b, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 31, 3)) >true ? null : (x: T) => { return x } : (x: T) => T +>true : boolean +>null : null >(x: T) => { return x } : (x: T) => T ->T : T ->x : T ->T : T ->x : T +>T : T, Symbol(T, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 31, 25)) +>x : T, Symbol(x, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 31, 28)) +>T : T, Symbol(T, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 31, 25)) +>x : T, Symbol(x, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 31, 28)) interface I1 { foo: number; } ->I1 : I1 ->foo : number +>I1 : I1, Symbol(I1, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 31, 50)) +>foo : number, Symbol(foo, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 33, 14)) var i1: I1; ->i1 : I1 ->I1 : I1 +>i1 : I1, Symbol(i1, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 34, 3)) +>I1 : I1, Symbol(I1, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 31, 50)) var r9 = true ? i1 : null; ->r9 : I1 +>r9 : I1, Symbol(r9, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 35, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 36, 3)) >true ? i1 : null : I1 ->i1 : I1 +>true : boolean +>i1 : I1, Symbol(i1, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 34, 3)) +>null : null var r9 = true ? null : i1; ->r9 : I1 +>r9 : I1, Symbol(r9, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 35, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 36, 3)) >true ? null : i1 : I1 ->i1 : I1 +>true : boolean +>null : null +>i1 : I1, Symbol(i1, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 34, 3)) class C1 { foo: number; } ->C1 : C1 ->foo : number +>C1 : C1, Symbol(C1, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 36, 26)) +>foo : number, Symbol(foo, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 38, 10)) var c1: C1; ->c1 : C1 ->C1 : C1 +>c1 : C1, Symbol(c1, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 39, 3)) +>C1 : C1, Symbol(C1, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 36, 26)) var r10 = true ? c1 : null; ->r10 : C1 +>r10 : C1, Symbol(r10, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 40, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 41, 3)) >true ? c1 : null : C1 ->c1 : C1 +>true : boolean +>c1 : C1, Symbol(c1, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 39, 3)) +>null : null var r10 = true ? null : c1; ->r10 : C1 +>r10 : C1, Symbol(r10, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 40, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 41, 3)) >true ? null : c1 : C1 ->c1 : C1 +>true : boolean +>null : null +>c1 : C1, Symbol(c1, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 39, 3)) class C2 { foo: T; } ->C2 : C2 ->T : T ->foo : T ->T : T +>C2 : C2, Symbol(C2, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 41, 27)) +>T : T, Symbol(T, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 43, 9)) +>foo : T, Symbol(foo, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 43, 13)) +>T : T, Symbol(T, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 43, 9)) var c2: C2; ->c2 : C2 ->C2 : C2 +>c2 : C2, Symbol(c2, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 44, 3)) +>C2 : C2, Symbol(C2, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 41, 27)) var r12 = true ? c2 : null; ->r12 : C2 +>r12 : C2, Symbol(r12, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 45, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 46, 3)) >true ? c2 : null : C2 ->c2 : C2 +>true : boolean +>c2 : C2, Symbol(c2, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 44, 3)) +>null : null var r12 = true ? null : c2; ->r12 : C2 +>r12 : C2, Symbol(r12, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 45, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 46, 3)) >true ? null : c2 : C2 ->c2 : C2 +>true : boolean +>null : null +>c2 : C2, Symbol(c2, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 44, 3)) enum E { A } ->E : E ->A : E +>E : E, Symbol(E, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 46, 27)) +>A : E, Symbol(E.A, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 48, 8)) var r13 = true ? E : null; ->r13 : typeof E +>r13 : typeof E, Symbol(r13, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 49, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 50, 3)) >true ? E : null : typeof E ->E : typeof E +>true : boolean +>E : typeof E, Symbol(E, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 46, 27)) +>null : null var r13 = true ? null : E; ->r13 : typeof E +>r13 : typeof E, Symbol(r13, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 49, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 50, 3)) >true ? null : E : typeof E ->E : typeof E +>true : boolean +>null : null +>E : typeof E, Symbol(E, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 46, 27)) var r14 = true ? E.A : null; ->r14 : E +>r14 : E, Symbol(r14, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 52, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 53, 3)) >true ? E.A : null : E ->E.A : E ->E : typeof E ->A : E +>true : boolean +>E.A : E, Symbol(E.A, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 48, 8)) +>E : typeof E, Symbol(E, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 46, 27)) +>A : E, Symbol(E.A, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 48, 8)) +>null : null var r14 = true ? null : E.A; ->r14 : E +>r14 : E, Symbol(r14, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 52, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 53, 3)) >true ? null : E.A : E ->E.A : E ->E : typeof E ->A : E +>true : boolean +>null : null +>E.A : E, Symbol(E.A, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 48, 8)) +>E : typeof E, Symbol(E, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 46, 27)) +>A : E, Symbol(E.A, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 48, 8)) function f() { } ->f : typeof f +>f : typeof f, Symbol(f, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 53, 28), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 55, 16)) module f { ->f : typeof f +>f : typeof f, Symbol(f, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 53, 28), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 55, 16)) export var bar = 1; ->bar : number +>bar : number, Symbol(bar, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 57, 14)) +>1 : number } var af: typeof f; ->af : typeof f ->f : typeof f +>af : typeof f, Symbol(af, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 59, 3)) +>f : typeof f, Symbol(f, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 53, 28), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 55, 16)) var r15 = true ? af : null; ->r15 : typeof f +>r15 : typeof f, Symbol(r15, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 60, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 61, 3)) >true ? af : null : typeof f ->af : typeof f +>true : boolean +>af : typeof f, Symbol(af, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 59, 3)) +>null : null var r15 = true ? null : af; ->r15 : typeof f +>r15 : typeof f, Symbol(r15, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 60, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 61, 3)) >true ? null : af : typeof f ->af : typeof f +>true : boolean +>null : null +>af : typeof f, Symbol(af, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 59, 3)) class c { baz: string } ->c : c ->baz : string +>c : c, Symbol(c, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 61, 27), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 63, 23)) +>baz : string, Symbol(baz, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 63, 9)) module c { ->c : typeof c +>c : typeof c, Symbol(c, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 61, 27), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 63, 23)) export var bar = 1; ->bar : number +>bar : number, Symbol(bar, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 65, 14)) +>1 : number } var ac: typeof c; ->ac : typeof c ->c : typeof c +>ac : typeof c, Symbol(ac, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 67, 3)) +>c : typeof c, Symbol(c, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 61, 27), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 63, 23)) var r16 = true ? ac : null; ->r16 : typeof c +>r16 : typeof c, Symbol(r16, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 68, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 69, 3)) >true ? ac : null : typeof c ->ac : typeof c +>true : boolean +>ac : typeof c, Symbol(ac, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 67, 3)) +>null : null var r16 = true ? null : ac; ->r16 : typeof c +>r16 : typeof c, Symbol(r16, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 68, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 69, 3)) >true ? null : ac : typeof c ->ac : typeof c +>true : boolean +>null : null +>ac : typeof c, Symbol(ac, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 67, 3)) function f17(x: T) { ->f17 : (x: T) => void ->T : T ->x : T ->T : T +>f17 : (x: T) => void, Symbol(f17, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 69, 27)) +>T : T, Symbol(T, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 71, 13)) +>x : T, Symbol(x, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 71, 16)) +>T : T, Symbol(T, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 71, 13)) var r17 = true ? x : null; ->r17 : T +>r17 : T, Symbol(r17, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 72, 7), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 73, 7)) >true ? x : null : T ->x : T +>true : boolean +>x : T, Symbol(x, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 71, 16)) +>null : null var r17 = true ? null : x; ->r17 : T +>r17 : T, Symbol(r17, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 72, 7), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 73, 7)) >true ? null : x : T ->x : T +>true : boolean +>null : null +>x : T, Symbol(x, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 71, 16)) } function f18(x: U) { ->f18 : (x: U) => void ->T : T ->U : U ->x : U ->U : U +>f18 : (x: U) => void, Symbol(f18, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 74, 1)) +>T : T, Symbol(T, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 76, 13)) +>U : U, Symbol(U, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 76, 15)) +>x : U, Symbol(x, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 76, 19)) +>U : U, Symbol(U, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 76, 15)) var r18 = true ? x : null; ->r18 : U +>r18 : U, Symbol(r18, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 77, 7), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 78, 7)) >true ? x : null : U ->x : U +>true : boolean +>x : U, Symbol(x, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 76, 19)) +>null : null var r18 = true ? null : x; ->r18 : U +>r18 : U, Symbol(r18, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 77, 7), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 78, 7)) >true ? null : x : U ->x : U +>true : boolean +>null : null +>x : U, Symbol(x, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 76, 19)) } //function f18(x: U) { // var r18 = true ? x : null; @@ -278,24 +368,32 @@ function f18(x: U) { //} var r19 = true ? new Object() : null; ->r19 : Object +>r19 : Object, Symbol(r19, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 85, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 86, 3)) >true ? new Object() : null : Object +>true : boolean >new Object() : Object ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>null : null var r19 = true ? null : new Object(); ->r19 : Object +>r19 : Object, Symbol(r19, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 85, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 86, 3)) >true ? null : new Object() : Object +>true : boolean +>null : null >new Object() : Object ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) var r20 = true ? {} : null; ->r20 : {} +>r20 : {}, Symbol(r20, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 88, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 89, 3)) >true ? {} : null : {} +>true : boolean >{} : {} +>null : null var r20 = true ? null : {}; ->r20 : {} +>r20 : {}, Symbol(r20, Decl(nullIsSubtypeOfEverythingButUndefined.ts, 88, 3), Decl(nullIsSubtypeOfEverythingButUndefined.ts, 89, 3)) >true ? null : {} : {} +>true : boolean +>null : null >{} : {} diff --git a/tests/baselines/reference/numberAsInLHS.types b/tests/baselines/reference/numberAsInLHS.types index 823e3e0354d..848f937c618 100644 --- a/tests/baselines/reference/numberAsInLHS.types +++ b/tests/baselines/reference/numberAsInLHS.types @@ -1,5 +1,8 @@ === tests/cases/compiler/numberAsInLHS.ts === 3 in [0, 1] >3 in [0, 1] : boolean +>3 : number >[0, 1] : number[] +>0 : number +>1 : number diff --git a/tests/baselines/reference/numberAssignableToEnum.types b/tests/baselines/reference/numberAssignableToEnum.types index b7b75b5dc5c..152e45aec8a 100644 --- a/tests/baselines/reference/numberAssignableToEnum.types +++ b/tests/baselines/reference/numberAssignableToEnum.types @@ -1,22 +1,22 @@ === tests/cases/conformance/types/typeRelationships/assignmentCompatibility/numberAssignableToEnum.ts === enum E { A } ->E : E ->A : E +>E : E, Symbol(E, Decl(numberAssignableToEnum.ts, 0, 0)) +>A : E, Symbol(E.A, Decl(numberAssignableToEnum.ts, 0, 8)) var n: number; ->n : number +>n : number, Symbol(n, Decl(numberAssignableToEnum.ts, 1, 3)) var e: E; ->e : E ->E : E +>e : E, Symbol(e, Decl(numberAssignableToEnum.ts, 2, 3)) +>E : E, Symbol(E, Decl(numberAssignableToEnum.ts, 0, 0)) e = n; >e = n : number ->e : E ->n : number +>e : E, Symbol(e, Decl(numberAssignableToEnum.ts, 2, 3)) +>n : number, Symbol(n, Decl(numberAssignableToEnum.ts, 1, 3)) n = e; >n = e : E ->n : number ->e : E +>n : number, Symbol(n, Decl(numberAssignableToEnum.ts, 1, 3)) +>e : E, Symbol(e, Decl(numberAssignableToEnum.ts, 2, 3)) diff --git a/tests/baselines/reference/numberOnLeftSideOfInExpression.types b/tests/baselines/reference/numberOnLeftSideOfInExpression.types index 0b15c0aefee..38ec93da2ea 100644 --- a/tests/baselines/reference/numberOnLeftSideOfInExpression.types +++ b/tests/baselines/reference/numberOnLeftSideOfInExpression.types @@ -1,12 +1,12 @@ === tests/cases/compiler/numberOnLeftSideOfInExpression.ts === var left: number; ->left : number +>left : number, Symbol(left, Decl(numberOnLeftSideOfInExpression.ts, 0, 3)) var right: any; ->right : any +>right : any, Symbol(right, Decl(numberOnLeftSideOfInExpression.ts, 1, 3)) left in right; >left in right : boolean ->left : number ->right : any +>left : number, Symbol(left, Decl(numberOnLeftSideOfInExpression.ts, 0, 3)) +>right : any, Symbol(right, Decl(numberOnLeftSideOfInExpression.ts, 1, 3)) diff --git a/tests/baselines/reference/numberPropertyAccess.types b/tests/baselines/reference/numberPropertyAccess.types index fd554e95ace..fba40d89fa5 100644 --- a/tests/baselines/reference/numberPropertyAccess.types +++ b/tests/baselines/reference/numberPropertyAccess.types @@ -1,30 +1,35 @@ === tests/cases/conformance/types/primitives/number/numberPropertyAccess.ts === var x = 1; ->x : number +>x : number, Symbol(x, Decl(numberPropertyAccess.ts, 0, 3)) +>1 : number var a = x.toExponential(); ->a : string +>a : string, Symbol(a, Decl(numberPropertyAccess.ts, 1, 3)) >x.toExponential() : string ->x.toExponential : (fractionDigits?: number) => string ->x : number ->toExponential : (fractionDigits?: number) => string +>x.toExponential : (fractionDigits?: number) => string, Symbol(Number.toExponential, Decl(lib.d.ts, 469, 45)) +>x : number, Symbol(x, Decl(numberPropertyAccess.ts, 0, 3)) +>toExponential : (fractionDigits?: number) => string, Symbol(Number.toExponential, Decl(lib.d.ts, 469, 45)) var b = x.hasOwnProperty('toFixed'); ->b : boolean +>b : boolean, Symbol(b, Decl(numberPropertyAccess.ts, 2, 3)) >x.hasOwnProperty('toFixed') : boolean ->x.hasOwnProperty : (v: string) => boolean ->x : number ->hasOwnProperty : (v: string) => boolean +>x.hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>x : number, Symbol(x, Decl(numberPropertyAccess.ts, 0, 3)) +>hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>'toFixed' : string var c = x['toExponential'](); ->c : string +>c : string, Symbol(c, Decl(numberPropertyAccess.ts, 4, 3)) >x['toExponential']() : string >x['toExponential'] : (fractionDigits?: number) => string ->x : number +>x : number, Symbol(x, Decl(numberPropertyAccess.ts, 0, 3)) +>'toExponential' : string, Symbol(Number.toExponential, Decl(lib.d.ts, 469, 45)) var d = x['hasOwnProperty']('toFixed'); ->d : boolean +>d : boolean, Symbol(d, Decl(numberPropertyAccess.ts, 5, 3)) >x['hasOwnProperty']('toFixed') : boolean >x['hasOwnProperty'] : (v: string) => boolean ->x : number +>x : number, Symbol(x, Decl(numberPropertyAccess.ts, 0, 3)) +>'hasOwnProperty' : string, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>'toFixed' : string diff --git a/tests/baselines/reference/numericIndexerConstraint3.types b/tests/baselines/reference/numericIndexerConstraint3.types index 2e249c89b8c..c29f7dd3b7c 100644 --- a/tests/baselines/reference/numericIndexerConstraint3.types +++ b/tests/baselines/reference/numericIndexerConstraint3.types @@ -1,26 +1,26 @@ === tests/cases/compiler/numericIndexerConstraint3.ts === class A { ->A : A +>A : A, Symbol(A, Decl(numericIndexerConstraint3.ts, 0, 0)) foo: number; ->foo : number +>foo : number, Symbol(foo, Decl(numericIndexerConstraint3.ts, 0, 9)) } class B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(numericIndexerConstraint3.ts, 2, 1)) +>A : A, Symbol(A, Decl(numericIndexerConstraint3.ts, 0, 0)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(numericIndexerConstraint3.ts, 4, 19)) } class C { ->C : C +>C : C, Symbol(C, Decl(numericIndexerConstraint3.ts, 6, 1)) 0: B; ->B : B +>B : B, Symbol(B, Decl(numericIndexerConstraint3.ts, 2, 1)) [x: number]: A; ->x : number ->A : A +>x : number, Symbol(x, Decl(numericIndexerConstraint3.ts, 10, 5)) +>A : A, Symbol(A, Decl(numericIndexerConstraint3.ts, 0, 0)) } diff --git a/tests/baselines/reference/numericIndexerConstraint4.types b/tests/baselines/reference/numericIndexerConstraint4.types index 97e72b5088d..8be43ded37b 100644 --- a/tests/baselines/reference/numericIndexerConstraint4.types +++ b/tests/baselines/reference/numericIndexerConstraint4.types @@ -1,29 +1,29 @@ === tests/cases/compiler/numericIndexerConstraint4.ts === class A { ->A : A +>A : A, Symbol(A, Decl(numericIndexerConstraint4.ts, 0, 0)) foo: number; ->foo : number +>foo : number, Symbol(foo, Decl(numericIndexerConstraint4.ts, 0, 9)) } class B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(numericIndexerConstraint4.ts, 2, 1)) +>A : A, Symbol(A, Decl(numericIndexerConstraint4.ts, 0, 0)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(numericIndexerConstraint4.ts, 4, 19)) } var x: { ->x : { [idx: number]: A; } +>x : { [idx: number]: A; }, Symbol(x, Decl(numericIndexerConstraint4.ts, 8, 3)) [idx: number]: A; ->idx : number ->A : A +>idx : number, Symbol(idx, Decl(numericIndexerConstraint4.ts, 9, 5)) +>A : A, Symbol(A, Decl(numericIndexerConstraint4.ts, 0, 0)) } = { data: new B() } >{ data: new B() } : { [x: number]: undefined; data: B; } ->data : B +>data : B, Symbol(data, Decl(numericIndexerConstraint4.ts, 10, 5)) >new B() : B ->B : typeof B +>B : typeof B, Symbol(B, Decl(numericIndexerConstraint4.ts, 2, 1)) diff --git a/tests/baselines/reference/numericIndexingResults.types b/tests/baselines/reference/numericIndexingResults.types index e68a083bb74..10a097b78d9 100644 --- a/tests/baselines/reference/numericIndexingResults.types +++ b/tests/baselines/reference/numericIndexingResults.types @@ -1,199 +1,236 @@ === tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexingResults.ts === class C { ->C : C +>C : C, Symbol(C, Decl(numericIndexingResults.ts, 0, 0)) [x: number]: string; ->x : number +>x : number, Symbol(x, Decl(numericIndexingResults.ts, 1, 5)) 1 = ''; +>'' : string + "2" = '' +>'' : string } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(numericIndexingResults.ts, 6, 3)) +>C : C, Symbol(C, Decl(numericIndexingResults.ts, 0, 0)) var r1 = c['1']; ->r1 : string +>r1 : string, Symbol(r1, Decl(numericIndexingResults.ts, 7, 3), Decl(numericIndexingResults.ts, 21, 3), Decl(numericIndexingResults.ts, 34, 3)) >c['1'] : string ->c : C +>c : C, Symbol(c, Decl(numericIndexingResults.ts, 6, 3)) +>'1' : string, Symbol(C.1, Decl(numericIndexingResults.ts, 1, 24)) var r2 = c['2']; ->r2 : string +>r2 : string, Symbol(r2, Decl(numericIndexingResults.ts, 8, 3), Decl(numericIndexingResults.ts, 22, 3), Decl(numericIndexingResults.ts, 35, 3)) >c['2'] : string ->c : C +>c : C, Symbol(c, Decl(numericIndexingResults.ts, 6, 3)) +>'2' : string, Symbol(C."2", Decl(numericIndexingResults.ts, 2, 11)) var r3 = c['3']; ->r3 : any +>r3 : any, Symbol(r3, Decl(numericIndexingResults.ts, 9, 3), Decl(numericIndexingResults.ts, 23, 3), Decl(numericIndexingResults.ts, 36, 3), Decl(numericIndexingResults.ts, 44, 3), Decl(numericIndexingResults.ts, 52, 3)) >c['3'] : any ->c : C +>c : C, Symbol(c, Decl(numericIndexingResults.ts, 6, 3)) +>'3' : string var r4 = c[1]; ->r4 : string +>r4 : string, Symbol(r4, Decl(numericIndexingResults.ts, 10, 3), Decl(numericIndexingResults.ts, 24, 3), Decl(numericIndexingResults.ts, 37, 3), Decl(numericIndexingResults.ts, 45, 3), Decl(numericIndexingResults.ts, 53, 3)) >c[1] : string ->c : C +>c : C, Symbol(c, Decl(numericIndexingResults.ts, 6, 3)) +>1 : number, Symbol(C.1, Decl(numericIndexingResults.ts, 1, 24)) var r5 = c[2]; ->r5 : string +>r5 : string, Symbol(r5, Decl(numericIndexingResults.ts, 11, 3), Decl(numericIndexingResults.ts, 25, 3), Decl(numericIndexingResults.ts, 38, 3), Decl(numericIndexingResults.ts, 46, 3), Decl(numericIndexingResults.ts, 54, 3)) >c[2] : string ->c : C +>c : C, Symbol(c, Decl(numericIndexingResults.ts, 6, 3)) +>2 : number, Symbol(C."2", Decl(numericIndexingResults.ts, 2, 11)) var r6 = c[3]; ->r6 : string +>r6 : string, Symbol(r6, Decl(numericIndexingResults.ts, 12, 3), Decl(numericIndexingResults.ts, 26, 3), Decl(numericIndexingResults.ts, 39, 3), Decl(numericIndexingResults.ts, 47, 3), Decl(numericIndexingResults.ts, 55, 3)) >c[3] : string ->c : C +>c : C, Symbol(c, Decl(numericIndexingResults.ts, 6, 3)) +>3 : number interface I { ->I : I +>I : I, Symbol(I, Decl(numericIndexingResults.ts, 12, 14)) [x: number]: string; ->x : number +>x : number, Symbol(x, Decl(numericIndexingResults.ts, 15, 5)) 1: string; "2": string; } var i: I ->i : I ->I : I +>i : I, Symbol(i, Decl(numericIndexingResults.ts, 20, 3)) +>I : I, Symbol(I, Decl(numericIndexingResults.ts, 12, 14)) var r1 = i['1']; ->r1 : string +>r1 : string, Symbol(r1, Decl(numericIndexingResults.ts, 7, 3), Decl(numericIndexingResults.ts, 21, 3), Decl(numericIndexingResults.ts, 34, 3)) >i['1'] : string ->i : I +>i : I, Symbol(i, Decl(numericIndexingResults.ts, 20, 3)) +>'1' : string, Symbol(I.1, Decl(numericIndexingResults.ts, 15, 24)) var r2 = i['2']; ->r2 : string +>r2 : string, Symbol(r2, Decl(numericIndexingResults.ts, 8, 3), Decl(numericIndexingResults.ts, 22, 3), Decl(numericIndexingResults.ts, 35, 3)) >i['2'] : string ->i : I +>i : I, Symbol(i, Decl(numericIndexingResults.ts, 20, 3)) +>'2' : string, Symbol(I."2", Decl(numericIndexingResults.ts, 16, 14)) var r3 = i['3']; ->r3 : any +>r3 : any, Symbol(r3, Decl(numericIndexingResults.ts, 9, 3), Decl(numericIndexingResults.ts, 23, 3), Decl(numericIndexingResults.ts, 36, 3), Decl(numericIndexingResults.ts, 44, 3), Decl(numericIndexingResults.ts, 52, 3)) >i['3'] : any ->i : I +>i : I, Symbol(i, Decl(numericIndexingResults.ts, 20, 3)) +>'3' : string var r4 = i[1]; ->r4 : string +>r4 : string, Symbol(r4, Decl(numericIndexingResults.ts, 10, 3), Decl(numericIndexingResults.ts, 24, 3), Decl(numericIndexingResults.ts, 37, 3), Decl(numericIndexingResults.ts, 45, 3), Decl(numericIndexingResults.ts, 53, 3)) >i[1] : string ->i : I +>i : I, Symbol(i, Decl(numericIndexingResults.ts, 20, 3)) +>1 : number, Symbol(I.1, Decl(numericIndexingResults.ts, 15, 24)) var r5 = i[2]; ->r5 : string +>r5 : string, Symbol(r5, Decl(numericIndexingResults.ts, 11, 3), Decl(numericIndexingResults.ts, 25, 3), Decl(numericIndexingResults.ts, 38, 3), Decl(numericIndexingResults.ts, 46, 3), Decl(numericIndexingResults.ts, 54, 3)) >i[2] : string ->i : I +>i : I, Symbol(i, Decl(numericIndexingResults.ts, 20, 3)) +>2 : number, Symbol(I."2", Decl(numericIndexingResults.ts, 16, 14)) var r6 = i[3]; ->r6 : string +>r6 : string, Symbol(r6, Decl(numericIndexingResults.ts, 12, 3), Decl(numericIndexingResults.ts, 26, 3), Decl(numericIndexingResults.ts, 39, 3), Decl(numericIndexingResults.ts, 47, 3), Decl(numericIndexingResults.ts, 55, 3)) >i[3] : string ->i : I +>i : I, Symbol(i, Decl(numericIndexingResults.ts, 20, 3)) +>3 : number var a: { ->a : { [x: number]: string; 1: string; "2": string; } +>a : { [x: number]: string; 1: string; "2": string; }, Symbol(a, Decl(numericIndexingResults.ts, 28, 3)) [x: number]: string; ->x : number +>x : number, Symbol(x, Decl(numericIndexingResults.ts, 29, 5)) 1: string; "2": string; } var r1 = a['1']; ->r1 : string +>r1 : string, Symbol(r1, Decl(numericIndexingResults.ts, 7, 3), Decl(numericIndexingResults.ts, 21, 3), Decl(numericIndexingResults.ts, 34, 3)) >a['1'] : string ->a : { [x: number]: string; 1: string; "2": string; } +>a : { [x: number]: string; 1: string; "2": string; }, Symbol(a, Decl(numericIndexingResults.ts, 28, 3)) +>'1' : string, Symbol(1, Decl(numericIndexingResults.ts, 29, 24)) var r2 = a['2']; ->r2 : string +>r2 : string, Symbol(r2, Decl(numericIndexingResults.ts, 8, 3), Decl(numericIndexingResults.ts, 22, 3), Decl(numericIndexingResults.ts, 35, 3)) >a['2'] : string ->a : { [x: number]: string; 1: string; "2": string; } +>a : { [x: number]: string; 1: string; "2": string; }, Symbol(a, Decl(numericIndexingResults.ts, 28, 3)) +>'2' : string, Symbol("2", Decl(numericIndexingResults.ts, 30, 14)) var r3 = a['3']; ->r3 : any +>r3 : any, Symbol(r3, Decl(numericIndexingResults.ts, 9, 3), Decl(numericIndexingResults.ts, 23, 3), Decl(numericIndexingResults.ts, 36, 3), Decl(numericIndexingResults.ts, 44, 3), Decl(numericIndexingResults.ts, 52, 3)) >a['3'] : any ->a : { [x: number]: string; 1: string; "2": string; } +>a : { [x: number]: string; 1: string; "2": string; }, Symbol(a, Decl(numericIndexingResults.ts, 28, 3)) +>'3' : string var r4 = a[1]; ->r4 : string +>r4 : string, Symbol(r4, Decl(numericIndexingResults.ts, 10, 3), Decl(numericIndexingResults.ts, 24, 3), Decl(numericIndexingResults.ts, 37, 3), Decl(numericIndexingResults.ts, 45, 3), Decl(numericIndexingResults.ts, 53, 3)) >a[1] : string ->a : { [x: number]: string; 1: string; "2": string; } +>a : { [x: number]: string; 1: string; "2": string; }, Symbol(a, Decl(numericIndexingResults.ts, 28, 3)) +>1 : number, Symbol(1, Decl(numericIndexingResults.ts, 29, 24)) var r5 = a[2]; ->r5 : string +>r5 : string, Symbol(r5, Decl(numericIndexingResults.ts, 11, 3), Decl(numericIndexingResults.ts, 25, 3), Decl(numericIndexingResults.ts, 38, 3), Decl(numericIndexingResults.ts, 46, 3), Decl(numericIndexingResults.ts, 54, 3)) >a[2] : string ->a : { [x: number]: string; 1: string; "2": string; } +>a : { [x: number]: string; 1: string; "2": string; }, Symbol(a, Decl(numericIndexingResults.ts, 28, 3)) +>2 : number, Symbol("2", Decl(numericIndexingResults.ts, 30, 14)) var r6 = a[3]; ->r6 : string +>r6 : string, Symbol(r6, Decl(numericIndexingResults.ts, 12, 3), Decl(numericIndexingResults.ts, 26, 3), Decl(numericIndexingResults.ts, 39, 3), Decl(numericIndexingResults.ts, 47, 3), Decl(numericIndexingResults.ts, 55, 3)) >a[3] : string ->a : { [x: number]: string; 1: string; "2": string; } +>a : { [x: number]: string; 1: string; "2": string; }, Symbol(a, Decl(numericIndexingResults.ts, 28, 3)) +>3 : number var b: { [x: number]: string } = { 1: '', "2": '' } ->b : { [x: number]: string; } ->x : number +>b : { [x: number]: string; }, Symbol(b, Decl(numericIndexingResults.ts, 41, 3)) +>x : number, Symbol(x, Decl(numericIndexingResults.ts, 41, 10)) >{ 1: '', "2": '' } : { [x: number]: string; 1: string; "2": string; } +>'' : string +>'' : string var r1a = b['1']; ->r1a : any +>r1a : any, Symbol(r1a, Decl(numericIndexingResults.ts, 42, 3)) >b['1'] : any ->b : { [x: number]: string; } +>b : { [x: number]: string; }, Symbol(b, Decl(numericIndexingResults.ts, 41, 3)) +>'1' : string var r2a = b['2']; ->r2a : any +>r2a : any, Symbol(r2a, Decl(numericIndexingResults.ts, 43, 3)) >b['2'] : any ->b : { [x: number]: string; } +>b : { [x: number]: string; }, Symbol(b, Decl(numericIndexingResults.ts, 41, 3)) +>'2' : string var r3 = b['3']; ->r3 : any +>r3 : any, Symbol(r3, Decl(numericIndexingResults.ts, 9, 3), Decl(numericIndexingResults.ts, 23, 3), Decl(numericIndexingResults.ts, 36, 3), Decl(numericIndexingResults.ts, 44, 3), Decl(numericIndexingResults.ts, 52, 3)) >b['3'] : any ->b : { [x: number]: string; } +>b : { [x: number]: string; }, Symbol(b, Decl(numericIndexingResults.ts, 41, 3)) +>'3' : string var r4 = b[1]; ->r4 : string +>r4 : string, Symbol(r4, Decl(numericIndexingResults.ts, 10, 3), Decl(numericIndexingResults.ts, 24, 3), Decl(numericIndexingResults.ts, 37, 3), Decl(numericIndexingResults.ts, 45, 3), Decl(numericIndexingResults.ts, 53, 3)) >b[1] : string ->b : { [x: number]: string; } +>b : { [x: number]: string; }, Symbol(b, Decl(numericIndexingResults.ts, 41, 3)) +>1 : number var r5 = b[2]; ->r5 : string +>r5 : string, Symbol(r5, Decl(numericIndexingResults.ts, 11, 3), Decl(numericIndexingResults.ts, 25, 3), Decl(numericIndexingResults.ts, 38, 3), Decl(numericIndexingResults.ts, 46, 3), Decl(numericIndexingResults.ts, 54, 3)) >b[2] : string ->b : { [x: number]: string; } +>b : { [x: number]: string; }, Symbol(b, Decl(numericIndexingResults.ts, 41, 3)) +>2 : number var r6 = b[3]; ->r6 : string +>r6 : string, Symbol(r6, Decl(numericIndexingResults.ts, 12, 3), Decl(numericIndexingResults.ts, 26, 3), Decl(numericIndexingResults.ts, 39, 3), Decl(numericIndexingResults.ts, 47, 3), Decl(numericIndexingResults.ts, 55, 3)) >b[3] : string ->b : { [x: number]: string; } +>b : { [x: number]: string; }, Symbol(b, Decl(numericIndexingResults.ts, 41, 3)) +>3 : number var b2: { [x: number]: string; 1: string; "2": string; } = { 1: '', "2": '' } ->b2 : { [x: number]: string; 1: string; "2": string; } ->x : number +>b2 : { [x: number]: string; 1: string; "2": string; }, Symbol(b2, Decl(numericIndexingResults.ts, 49, 3)) +>x : number, Symbol(x, Decl(numericIndexingResults.ts, 49, 11)) >{ 1: '', "2": '' } : { [x: number]: string; 1: string; "2": string; } +>'' : string +>'' : string var r1b = b2['1']; ->r1b : string +>r1b : string, Symbol(r1b, Decl(numericIndexingResults.ts, 50, 3)) >b2['1'] : string ->b2 : { [x: number]: string; 1: string; "2": string; } +>b2 : { [x: number]: string; 1: string; "2": string; }, Symbol(b2, Decl(numericIndexingResults.ts, 49, 3)) +>'1' : string, Symbol(1, Decl(numericIndexingResults.ts, 49, 30)) var r2b = b2['2']; ->r2b : string +>r2b : string, Symbol(r2b, Decl(numericIndexingResults.ts, 51, 3)) >b2['2'] : string ->b2 : { [x: number]: string; 1: string; "2": string; } +>b2 : { [x: number]: string; 1: string; "2": string; }, Symbol(b2, Decl(numericIndexingResults.ts, 49, 3)) +>'2' : string, Symbol("2", Decl(numericIndexingResults.ts, 49, 41)) var r3 = b2['3']; ->r3 : any +>r3 : any, Symbol(r3, Decl(numericIndexingResults.ts, 9, 3), Decl(numericIndexingResults.ts, 23, 3), Decl(numericIndexingResults.ts, 36, 3), Decl(numericIndexingResults.ts, 44, 3), Decl(numericIndexingResults.ts, 52, 3)) >b2['3'] : any ->b2 : { [x: number]: string; 1: string; "2": string; } +>b2 : { [x: number]: string; 1: string; "2": string; }, Symbol(b2, Decl(numericIndexingResults.ts, 49, 3)) +>'3' : string var r4 = b2[1]; ->r4 : string +>r4 : string, Symbol(r4, Decl(numericIndexingResults.ts, 10, 3), Decl(numericIndexingResults.ts, 24, 3), Decl(numericIndexingResults.ts, 37, 3), Decl(numericIndexingResults.ts, 45, 3), Decl(numericIndexingResults.ts, 53, 3)) >b2[1] : string ->b2 : { [x: number]: string; 1: string; "2": string; } +>b2 : { [x: number]: string; 1: string; "2": string; }, Symbol(b2, Decl(numericIndexingResults.ts, 49, 3)) +>1 : number, Symbol(1, Decl(numericIndexingResults.ts, 49, 30)) var r5 = b2[2]; ->r5 : string +>r5 : string, Symbol(r5, Decl(numericIndexingResults.ts, 11, 3), Decl(numericIndexingResults.ts, 25, 3), Decl(numericIndexingResults.ts, 38, 3), Decl(numericIndexingResults.ts, 46, 3), Decl(numericIndexingResults.ts, 54, 3)) >b2[2] : string ->b2 : { [x: number]: string; 1: string; "2": string; } +>b2 : { [x: number]: string; 1: string; "2": string; }, Symbol(b2, Decl(numericIndexingResults.ts, 49, 3)) +>2 : number, Symbol("2", Decl(numericIndexingResults.ts, 49, 41)) var r6 = b2[3]; ->r6 : string +>r6 : string, Symbol(r6, Decl(numericIndexingResults.ts, 12, 3), Decl(numericIndexingResults.ts, 26, 3), Decl(numericIndexingResults.ts, 39, 3), Decl(numericIndexingResults.ts, 47, 3), Decl(numericIndexingResults.ts, 55, 3)) >b2[3] : string ->b2 : { [x: number]: string; 1: string; "2": string; } +>b2 : { [x: number]: string; 1: string; "2": string; }, Symbol(b2, Decl(numericIndexingResults.ts, 49, 3)) +>3 : number diff --git a/tests/baselines/reference/numericMethodName1.types b/tests/baselines/reference/numericMethodName1.types index 09d63f04e13..3e37179c4a5 100644 --- a/tests/baselines/reference/numericMethodName1.types +++ b/tests/baselines/reference/numericMethodName1.types @@ -1,7 +1,8 @@ === tests/cases/compiler/numericMethodName1.ts === class C { ->C : C +>C : C, Symbol(C, Decl(numericMethodName1.ts, 0, 0)) 1 = 2; +>2 : number } diff --git a/tests/baselines/reference/objectIndexer.types b/tests/baselines/reference/objectIndexer.types index 7b42ea51b56..6a0bf0709c8 100644 --- a/tests/baselines/reference/objectIndexer.types +++ b/tests/baselines/reference/objectIndexer.types @@ -1,32 +1,32 @@ === tests/cases/compiler/objectIndexer.ts === export interface Callback { ->Callback : Callback +>Callback : Callback, Symbol(Callback, Decl(objectIndexer.ts, 0, 0)) (value: any): void; ->value : any +>value : any, Symbol(value, Decl(objectIndexer.ts, 1, 5)) } interface IMap { ->IMap : IMap +>IMap : IMap, Symbol(IMap, Decl(objectIndexer.ts, 2, 1)) [s: string]: Callback; ->s : string ->Callback : Callback +>s : string, Symbol(s, Decl(objectIndexer.ts, 5, 5)) +>Callback : Callback, Symbol(Callback, Decl(objectIndexer.ts, 0, 0)) } class Emitter { ->Emitter : Emitter +>Emitter : Emitter, Symbol(Emitter, Decl(objectIndexer.ts, 6, 1)) private listeners: IMap; ->listeners : IMap ->IMap : IMap +>listeners : IMap, Symbol(listeners, Decl(objectIndexer.ts, 8, 15)) +>IMap : IMap, Symbol(IMap, Decl(objectIndexer.ts, 2, 1)) constructor () { this.listeners = {}; >this.listeners = {} : { [x: string]: undefined; } ->this.listeners : IMap ->this : Emitter ->listeners : IMap +>this.listeners : IMap, Symbol(listeners, Decl(objectIndexer.ts, 8, 15)) +>this : Emitter, Symbol(Emitter, Decl(objectIndexer.ts, 6, 1)) +>listeners : IMap, Symbol(listeners, Decl(objectIndexer.ts, 8, 15)) >{} : { [x: string]: undefined; } } } diff --git a/tests/baselines/reference/objectLitGetterSetter.types b/tests/baselines/reference/objectLitGetterSetter.types index 92decfd4068..c5061fa4c94 100644 --- a/tests/baselines/reference/objectLitGetterSetter.types +++ b/tests/baselines/reference/objectLitGetterSetter.types @@ -1,33 +1,37 @@ === tests/cases/compiler/objectLitGetterSetter.ts === var obj = {}; ->obj : {} +>obj : {}, Symbol(obj, Decl(objectLitGetterSetter.ts, 0, 15)) >{} : {} Object.defineProperty(obj, "accProperty", ({ >Object.defineProperty(obj, "accProperty", ({ get: function () { eval("public = 1;"); return 11; }, set: function (v) { } })) : any ->Object.defineProperty : (o: any, p: string, attributes: PropertyDescriptor) => any ->Object : ObjectConstructor ->defineProperty : (o: any, p: string, attributes: PropertyDescriptor) => any ->obj : {} +>Object.defineProperty : (o: any, p: string, attributes: PropertyDescriptor) => any, Symbol(ObjectConstructor.defineProperty, Decl(lib.d.ts, 160, 60)) +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>defineProperty : (o: any, p: string, attributes: PropertyDescriptor) => any, Symbol(ObjectConstructor.defineProperty, Decl(lib.d.ts, 160, 60)) +>obj : {}, Symbol(obj, Decl(objectLitGetterSetter.ts, 0, 15)) +>"accProperty" : string >({ get: function () { eval("public = 1;"); return 11; }, set: function (v) { } }) : PropertyDescriptor ->PropertyDescriptor : PropertyDescriptor +>PropertyDescriptor : PropertyDescriptor, Symbol(PropertyDescriptor, Decl(lib.d.ts, 79, 66)) >({ get: function () { eval("public = 1;"); return 11; }, set: function (v) { } }) : { get: () => number; set: (v: any) => void; } >{ get: function () { eval("public = 1;"); return 11; }, set: function (v) { } } : { get: () => number; set: (v: any) => void; } get: function () { ->get : () => number +>get : () => number, Symbol(get, Decl(objectLitGetterSetter.ts, 1, 76)) >function () { eval("public = 1;"); return 11; } : () => number eval("public = 1;"); >eval("public = 1;") : any ->eval : (x: string) => any +>eval : (x: string) => any, Symbol(eval, Decl(lib.d.ts, 22, 29)) +>"public = 1;" : string return 11; +>11 : number + }, set: function (v) { ->set : (v: any) => void +>set : (v: any) => void, Symbol(set, Decl(objectLitGetterSetter.ts, 5, 18)) >function (v) { } : (v: any) => void ->v : any +>v : any, Symbol(v, Decl(objectLitGetterSetter.ts, 6, 31)) } })) diff --git a/tests/baselines/reference/objectLiteral1.types b/tests/baselines/reference/objectLiteral1.types index 6371d285f63..407c6e1af4a 100644 --- a/tests/baselines/reference/objectLiteral1.types +++ b/tests/baselines/reference/objectLiteral1.types @@ -1,7 +1,9 @@ === tests/cases/compiler/objectLiteral1.ts === var v30 = {a:1, b:2}; ->v30 : { a: number; b: number; } +>v30 : { a: number; b: number; }, Symbol(v30, Decl(objectLiteral1.ts, 0, 3)) >{a:1, b:2} : { a: number; b: number; } ->a : number ->b : number +>a : number, Symbol(a, Decl(objectLiteral1.ts, 0, 11)) +>1 : number +>b : number, Symbol(b, Decl(objectLiteral1.ts, 0, 15)) +>2 : number diff --git a/tests/baselines/reference/objectLiteral2.types b/tests/baselines/reference/objectLiteral2.types index c6853bdbd88..a45c9d50499 100644 --- a/tests/baselines/reference/objectLiteral2.types +++ b/tests/baselines/reference/objectLiteral2.types @@ -1,8 +1,10 @@ === tests/cases/compiler/objectLiteral2.ts === var v30 = {a:1, b:2}, v31; ->v30 : { a: number; b: number; } +>v30 : { a: number; b: number; }, Symbol(v30, Decl(objectLiteral2.ts, 0, 3)) >{a:1, b:2} : { a: number; b: number; } ->a : number ->b : number ->v31 : any +>a : number, Symbol(a, Decl(objectLiteral2.ts, 0, 11)) +>1 : number +>b : number, Symbol(b, Decl(objectLiteral2.ts, 0, 15)) +>2 : number +>v31 : any, Symbol(v31, Decl(objectLiteral2.ts, 0, 21)) diff --git a/tests/baselines/reference/objectLiteralArraySpecialization.types b/tests/baselines/reference/objectLiteralArraySpecialization.types index d077354728b..abe42c7c96a 100644 --- a/tests/baselines/reference/objectLiteralArraySpecialization.types +++ b/tests/baselines/reference/objectLiteralArraySpecialization.types @@ -1,51 +1,56 @@ === tests/cases/compiler/objectLiteralArraySpecialization.ts === declare function create(initialValues?: T[]): MyArrayWrapper; ->create : (initialValues?: T[]) => MyArrayWrapper ->T : T ->initialValues : T[] ->T : T ->MyArrayWrapper : MyArrayWrapper ->T : T +>create : (initialValues?: T[]) => MyArrayWrapper, Symbol(create, Decl(objectLiteralArraySpecialization.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectLiteralArraySpecialization.ts, 0, 24)) +>initialValues : T[], Symbol(initialValues, Decl(objectLiteralArraySpecialization.ts, 0, 27)) +>T : T, Symbol(T, Decl(objectLiteralArraySpecialization.ts, 0, 24)) +>MyArrayWrapper : MyArrayWrapper, Symbol(MyArrayWrapper, Decl(objectLiteralArraySpecialization.ts, 0, 67)) +>T : T, Symbol(T, Decl(objectLiteralArraySpecialization.ts, 0, 24)) interface MyArrayWrapper { ->MyArrayWrapper : MyArrayWrapper ->T : T +>MyArrayWrapper : MyArrayWrapper, Symbol(MyArrayWrapper, Decl(objectLiteralArraySpecialization.ts, 0, 67)) +>T : T, Symbol(T, Decl(objectLiteralArraySpecialization.ts, 1, 25)) constructor(initialItems?: T[]); ->constructor : (initialItems?: T[]) => any ->initialItems : T[] ->T : T +>constructor : (initialItems?: T[]) => any, Symbol(constructor, Decl(objectLiteralArraySpecialization.ts, 1, 29)) +>initialItems : T[], Symbol(initialItems, Decl(objectLiteralArraySpecialization.ts, 2, 13)) +>T : T, Symbol(T, Decl(objectLiteralArraySpecialization.ts, 1, 25)) doSomething(predicate: (x: T, y: T) => boolean): void; ->doSomething : (predicate: (x: T, y: T) => boolean) => void ->predicate : (x: T, y: T) => boolean ->x : T ->T : T ->y : T ->T : T +>doSomething : (predicate: (x: T, y: T) => boolean) => void, Symbol(doSomething, Decl(objectLiteralArraySpecialization.ts, 2, 33)) +>predicate : (x: T, y: T) => boolean, Symbol(predicate, Decl(objectLiteralArraySpecialization.ts, 3, 13)) +>x : T, Symbol(x, Decl(objectLiteralArraySpecialization.ts, 3, 25)) +>T : T, Symbol(T, Decl(objectLiteralArraySpecialization.ts, 1, 25)) +>y : T, Symbol(y, Decl(objectLiteralArraySpecialization.ts, 3, 30)) +>T : T, Symbol(T, Decl(objectLiteralArraySpecialization.ts, 1, 25)) } var thing = create([ { name: "bob", id: 24 }, { name: "doug", id: 32 } ]); // should not error ->thing : MyArrayWrapper<{ name: string; id: number; }> +>thing : MyArrayWrapper<{ name: string; id: number; }>, Symbol(thing, Decl(objectLiteralArraySpecialization.ts, 5, 3)) >create([ { name: "bob", id: 24 }, { name: "doug", id: 32 } ]) : MyArrayWrapper<{ name: string; id: number; }> ->create : (initialValues?: T[]) => MyArrayWrapper +>create : (initialValues?: T[]) => MyArrayWrapper, Symbol(create, Decl(objectLiteralArraySpecialization.ts, 0, 0)) >[ { name: "bob", id: 24 }, { name: "doug", id: 32 } ] : { name: string; id: number; }[] >{ name: "bob", id: 24 } : { name: string; id: number; } ->name : string ->id : number +>name : string, Symbol(name, Decl(objectLiteralArraySpecialization.ts, 5, 22)) +>"bob" : string +>id : number, Symbol(id, Decl(objectLiteralArraySpecialization.ts, 5, 35)) +>24 : number >{ name: "doug", id: 32 } : { name: string; id: number; } ->name : string ->id : number +>name : string, Symbol(name, Decl(objectLiteralArraySpecialization.ts, 5, 47)) +>"doug" : string +>id : number, Symbol(id, Decl(objectLiteralArraySpecialization.ts, 5, 61)) +>32 : number thing.doSomething((x, y) => x.name === "bob"); // should not error >thing.doSomething((x, y) => x.name === "bob") : void ->thing.doSomething : (predicate: (x: { name: string; id: number; }, y: { name: string; id: number; }) => boolean) => void ->thing : MyArrayWrapper<{ name: string; id: number; }> ->doSomething : (predicate: (x: { name: string; id: number; }, y: { name: string; id: number; }) => boolean) => void +>thing.doSomething : (predicate: (x: { name: string; id: number; }, y: { name: string; id: number; }) => boolean) => void, Symbol(MyArrayWrapper.doSomething, Decl(objectLiteralArraySpecialization.ts, 2, 33)) +>thing : MyArrayWrapper<{ name: string; id: number; }>, Symbol(thing, Decl(objectLiteralArraySpecialization.ts, 5, 3)) +>doSomething : (predicate: (x: { name: string; id: number; }, y: { name: string; id: number; }) => boolean) => void, Symbol(MyArrayWrapper.doSomething, Decl(objectLiteralArraySpecialization.ts, 2, 33)) >(x, y) => x.name === "bob" : (x: { name: string; id: number; }, y: { name: string; id: number; }) => boolean ->x : { name: string; id: number; } ->y : { name: string; id: number; } +>x : { name: string; id: number; }, Symbol(x, Decl(objectLiteralArraySpecialization.ts, 6, 19)) +>y : { name: string; id: number; }, Symbol(y, Decl(objectLiteralArraySpecialization.ts, 6, 21)) >x.name === "bob" : boolean ->x.name : string ->x : { name: string; id: number; } ->name : string +>x.name : string, Symbol(name, Decl(objectLiteralArraySpecialization.ts, 5, 22)) +>x : { name: string; id: number; }, Symbol(x, Decl(objectLiteralArraySpecialization.ts, 6, 19)) +>name : string, Symbol(name, Decl(objectLiteralArraySpecialization.ts, 5, 22)) +>"bob" : string diff --git a/tests/baselines/reference/objectLiteralContextualTyping.types b/tests/baselines/reference/objectLiteralContextualTyping.types index 32c9e91b2c7..7b81f4e6672 100644 --- a/tests/baselines/reference/objectLiteralContextualTyping.types +++ b/tests/baselines/reference/objectLiteralContextualTyping.types @@ -2,80 +2,86 @@ // Tests related to #1774 interface Item { ->Item : Item +>Item : Item, Symbol(Item, Decl(objectLiteralContextualTyping.ts, 0, 0)) name: string; ->name : string +>name : string, Symbol(name, Decl(objectLiteralContextualTyping.ts, 2, 16)) description?: string; ->description : string +>description : string, Symbol(description, Decl(objectLiteralContextualTyping.ts, 3, 17)) } declare function foo(item: Item): string; ->foo : { (item: Item): string; (item: any): number; } ->item : Item ->Item : Item +>foo : { (item: Item): string; (item: any): number; }, Symbol(foo, Decl(objectLiteralContextualTyping.ts, 5, 1), Decl(objectLiteralContextualTyping.ts, 7, 41)) +>item : Item, Symbol(item, Decl(objectLiteralContextualTyping.ts, 7, 21)) +>Item : Item, Symbol(Item, Decl(objectLiteralContextualTyping.ts, 0, 0)) declare function foo(item: any): number; ->foo : { (item: Item): string; (item: any): number; } ->item : any +>foo : { (item: Item): string; (item: any): number; }, Symbol(foo, Decl(objectLiteralContextualTyping.ts, 5, 1), Decl(objectLiteralContextualTyping.ts, 7, 41)) +>item : any, Symbol(item, Decl(objectLiteralContextualTyping.ts, 8, 21)) var x = foo({ name: "Sprocket" }); ->x : string +>x : string, Symbol(x, Decl(objectLiteralContextualTyping.ts, 10, 3), Decl(objectLiteralContextualTyping.ts, 11, 3)) >foo({ name: "Sprocket" }) : string ->foo : { (item: Item): string; (item: any): number; } +>foo : { (item: Item): string; (item: any): number; }, Symbol(foo, Decl(objectLiteralContextualTyping.ts, 5, 1), Decl(objectLiteralContextualTyping.ts, 7, 41)) >{ name: "Sprocket" } : { name: string; } ->name : string +>name : string, Symbol(name, Decl(objectLiteralContextualTyping.ts, 10, 13)) +>"Sprocket" : string var x: string; ->x : string +>x : string, Symbol(x, Decl(objectLiteralContextualTyping.ts, 10, 3), Decl(objectLiteralContextualTyping.ts, 11, 3)) var y = foo({ name: "Sprocket", description: "Bumpy wheel" }); ->y : string +>y : string, Symbol(y, Decl(objectLiteralContextualTyping.ts, 13, 3), Decl(objectLiteralContextualTyping.ts, 14, 3)) >foo({ name: "Sprocket", description: "Bumpy wheel" }) : string ->foo : { (item: Item): string; (item: any): number; } +>foo : { (item: Item): string; (item: any): number; }, Symbol(foo, Decl(objectLiteralContextualTyping.ts, 5, 1), Decl(objectLiteralContextualTyping.ts, 7, 41)) >{ name: "Sprocket", description: "Bumpy wheel" } : { name: string; description: string; } ->name : string ->description : string +>name : string, Symbol(name, Decl(objectLiteralContextualTyping.ts, 13, 13)) +>"Sprocket" : string +>description : string, Symbol(description, Decl(objectLiteralContextualTyping.ts, 13, 31)) +>"Bumpy wheel" : string var y: string; ->y : string +>y : string, Symbol(y, Decl(objectLiteralContextualTyping.ts, 13, 3), Decl(objectLiteralContextualTyping.ts, 14, 3)) var z = foo({ name: "Sprocket", description: false }); ->z : number +>z : number, Symbol(z, Decl(objectLiteralContextualTyping.ts, 16, 3), Decl(objectLiteralContextualTyping.ts, 17, 3)) >foo({ name: "Sprocket", description: false }) : number ->foo : { (item: Item): string; (item: any): number; } +>foo : { (item: Item): string; (item: any): number; }, Symbol(foo, Decl(objectLiteralContextualTyping.ts, 5, 1), Decl(objectLiteralContextualTyping.ts, 7, 41)) >{ name: "Sprocket", description: false } : { name: string; description: boolean; } ->name : string ->description : boolean +>name : string, Symbol(name, Decl(objectLiteralContextualTyping.ts, 16, 13)) +>"Sprocket" : string +>description : boolean, Symbol(description, Decl(objectLiteralContextualTyping.ts, 16, 31)) +>false : boolean var z: number; ->z : number +>z : number, Symbol(z, Decl(objectLiteralContextualTyping.ts, 16, 3), Decl(objectLiteralContextualTyping.ts, 17, 3)) var w = foo({ a: 10 }); ->w : number +>w : number, Symbol(w, Decl(objectLiteralContextualTyping.ts, 19, 3), Decl(objectLiteralContextualTyping.ts, 20, 3)) >foo({ a: 10 }) : number ->foo : { (item: Item): string; (item: any): number; } +>foo : { (item: Item): string; (item: any): number; }, Symbol(foo, Decl(objectLiteralContextualTyping.ts, 5, 1), Decl(objectLiteralContextualTyping.ts, 7, 41)) >{ a: 10 } : { a: number; } ->a : number +>a : number, Symbol(a, Decl(objectLiteralContextualTyping.ts, 19, 13)) +>10 : number var w: number; ->w : number +>w : number, Symbol(w, Decl(objectLiteralContextualTyping.ts, 19, 3), Decl(objectLiteralContextualTyping.ts, 20, 3)) declare function bar(param: { x?: T }): T; ->bar : (param: { x?: T; }) => T ->T : T ->param : { x?: T; } ->x : T ->T : T ->T : T +>bar : (param: { x?: T; }) => T, Symbol(bar, Decl(objectLiteralContextualTyping.ts, 20, 14)) +>T : T, Symbol(T, Decl(objectLiteralContextualTyping.ts, 22, 21)) +>param : { x?: T; }, Symbol(param, Decl(objectLiteralContextualTyping.ts, 22, 24)) +>x : T, Symbol(x, Decl(objectLiteralContextualTyping.ts, 22, 32)) +>T : T, Symbol(T, Decl(objectLiteralContextualTyping.ts, 22, 21)) +>T : T, Symbol(T, Decl(objectLiteralContextualTyping.ts, 22, 21)) var b = bar({}); ->b : {} +>b : {}, Symbol(b, Decl(objectLiteralContextualTyping.ts, 24, 3), Decl(objectLiteralContextualTyping.ts, 25, 3)) >bar({}) : {} ->bar : (param: { x?: T; }) => T +>bar : (param: { x?: T; }) => T, Symbol(bar, Decl(objectLiteralContextualTyping.ts, 20, 14)) >{} : {} var b: {}; ->b : {} +>b : {}, Symbol(b, Decl(objectLiteralContextualTyping.ts, 24, 3), Decl(objectLiteralContextualTyping.ts, 25, 3)) diff --git a/tests/baselines/reference/objectLiteralDeclarationGeneration1.types b/tests/baselines/reference/objectLiteralDeclarationGeneration1.types index a7406d72ab4..4011f2c736e 100644 --- a/tests/baselines/reference/objectLiteralDeclarationGeneration1.types +++ b/tests/baselines/reference/objectLiteralDeclarationGeneration1.types @@ -1,5 +1,5 @@ === tests/cases/compiler/objectLiteralDeclarationGeneration1.ts === class y{ } ->y : y ->T : T +>y : y, Symbol(y, Decl(objectLiteralDeclarationGeneration1.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectLiteralDeclarationGeneration1.ts, 0, 8)) diff --git a/tests/baselines/reference/objectLiteralIndexerNoImplicitAny.types b/tests/baselines/reference/objectLiteralIndexerNoImplicitAny.types index 14bcc6f5b62..7115b323490 100644 --- a/tests/baselines/reference/objectLiteralIndexerNoImplicitAny.types +++ b/tests/baselines/reference/objectLiteralIndexerNoImplicitAny.types @@ -1,16 +1,17 @@ === tests/cases/compiler/objectLiteralIndexerNoImplicitAny.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(objectLiteralIndexerNoImplicitAny.ts, 0, 0)) [s: string]: any; ->s : string +>s : string, Symbol(s, Decl(objectLiteralIndexerNoImplicitAny.ts, 1, 5)) } var x: I = { ->x : I ->I : I +>x : I, Symbol(x, Decl(objectLiteralIndexerNoImplicitAny.ts, 4, 3)) +>I : I, Symbol(I, Decl(objectLiteralIndexerNoImplicitAny.ts, 0, 0)) >{ p: null} : { [x: string]: null; p: null; } p: null ->p : null +>p : null, Symbol(p, Decl(objectLiteralIndexerNoImplicitAny.ts, 4, 12)) +>null : null } diff --git a/tests/baselines/reference/objectLiteralIndexers.types b/tests/baselines/reference/objectLiteralIndexers.types index d5add00ebaf..fb8afab29bb 100644 --- a/tests/baselines/reference/objectLiteralIndexers.types +++ b/tests/baselines/reference/objectLiteralIndexers.types @@ -1,54 +1,54 @@ === tests/cases/compiler/objectLiteralIndexers.ts === interface A { ->A : A +>A : A, Symbol(A, Decl(objectLiteralIndexers.ts, 0, 0)) x: number; ->x : number +>x : number, Symbol(x, Decl(objectLiteralIndexers.ts, 0, 13)) } interface B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(objectLiteralIndexers.ts, 2, 1)) +>A : A, Symbol(A, Decl(objectLiteralIndexers.ts, 0, 0)) y: string; ->y : string +>y : string, Symbol(y, Decl(objectLiteralIndexers.ts, 4, 23)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(objectLiteralIndexers.ts, 8, 3)) +>A : A, Symbol(A, Decl(objectLiteralIndexers.ts, 0, 0)) var b: B; ->b : B ->B : B +>b : B, Symbol(b, Decl(objectLiteralIndexers.ts, 9, 3)) +>B : B, Symbol(B, Decl(objectLiteralIndexers.ts, 2, 1)) var c: any; ->c : any +>c : any, Symbol(c, Decl(objectLiteralIndexers.ts, 10, 3)) var o1: { [s: string]: A;[n: number]: B; } = { x: a, 0: b }; // string indexer is A, number indexer is B ->o1 : { [s: string]: A; [n: number]: B; } ->s : string ->A : A ->n : number ->B : B +>o1 : { [s: string]: A; [n: number]: B; }, Symbol(o1, Decl(objectLiteralIndexers.ts, 12, 3)) +>s : string, Symbol(s, Decl(objectLiteralIndexers.ts, 12, 11)) +>A : A, Symbol(A, Decl(objectLiteralIndexers.ts, 0, 0)) +>n : number, Symbol(n, Decl(objectLiteralIndexers.ts, 12, 26)) +>B : B, Symbol(B, Decl(objectLiteralIndexers.ts, 2, 1)) >{ x: a, 0: b } : { [x: string]: A; [x: number]: B; 0: B; x: A; } ->x : A ->a : A ->b : B +>x : A, Symbol(x, Decl(objectLiteralIndexers.ts, 12, 46)) +>a : A, Symbol(a, Decl(objectLiteralIndexers.ts, 8, 3)) +>b : B, Symbol(b, Decl(objectLiteralIndexers.ts, 9, 3)) o1 = { x: b, 0: c }; // both indexers are any >o1 = { x: b, 0: c } : { [x: string]: any; [x: number]: any; 0: any; x: B; } ->o1 : { [s: string]: A; [n: number]: B; } +>o1 : { [s: string]: A; [n: number]: B; }, Symbol(o1, Decl(objectLiteralIndexers.ts, 12, 3)) >{ x: b, 0: c } : { [x: string]: any; [x: number]: any; 0: any; x: B; } ->x : B ->b : B ->c : any +>x : B, Symbol(x, Decl(objectLiteralIndexers.ts, 13, 6)) +>b : B, Symbol(b, Decl(objectLiteralIndexers.ts, 9, 3)) +>c : any, Symbol(c, Decl(objectLiteralIndexers.ts, 10, 3)) o1 = { x: c, 0: b }; // string indexer is any, number indexer is B >o1 = { x: c, 0: b } : { [x: string]: any; [x: number]: B; 0: B; x: any; } ->o1 : { [s: string]: A; [n: number]: B; } +>o1 : { [s: string]: A; [n: number]: B; }, Symbol(o1, Decl(objectLiteralIndexers.ts, 12, 3)) >{ x: c, 0: b } : { [x: string]: any; [x: number]: B; 0: B; x: any; } ->x : any ->c : any ->b : B +>x : any, Symbol(x, Decl(objectLiteralIndexers.ts, 14, 6)) +>c : any, Symbol(c, Decl(objectLiteralIndexers.ts, 10, 3)) +>b : B, Symbol(b, Decl(objectLiteralIndexers.ts, 9, 3)) diff --git a/tests/baselines/reference/objectLiteralShorthandProperties.types b/tests/baselines/reference/objectLiteralShorthandProperties.types index c34b2ab79b7..5a2772e0290 100644 --- a/tests/baselines/reference/objectLiteralShorthandProperties.types +++ b/tests/baselines/reference/objectLiteralShorthandProperties.types @@ -1,48 +1,49 @@ === tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandProperties.ts === var a, b, c; ->a : any ->b : any ->c : any +>a : any, Symbol(a, Decl(objectLiteralShorthandProperties.ts, 0, 3)) +>b : any, Symbol(b, Decl(objectLiteralShorthandProperties.ts, 0, 6)) +>c : any, Symbol(c, Decl(objectLiteralShorthandProperties.ts, 0, 9)) var x1 = { ->x1 : { a: any; } +>x1 : { a: any; }, Symbol(x1, Decl(objectLiteralShorthandProperties.ts, 2, 3)) >{ a} : { a: any; } a ->a : any +>a : any, Symbol(a, Decl(objectLiteralShorthandProperties.ts, 2, 10)) }; var x2 = { ->x2 : { a: any; } +>x2 : { a: any; }, Symbol(x2, Decl(objectLiteralShorthandProperties.ts, 6, 3)) >{ a,} : { a: any; } a, ->a : any +>a : any, Symbol(a, Decl(objectLiteralShorthandProperties.ts, 6, 10)) } var x3 = { ->x3 : any +>x3 : any, Symbol(x3, Decl(objectLiteralShorthandProperties.ts, 10, 3)) >{ a: 0, b, c, d() { }, x3, parent: x3} : { a: number; b: any; c: any; d(): void; x3: any; parent: any; } a: 0, ->a : number +>a : number, Symbol(a, Decl(objectLiteralShorthandProperties.ts, 10, 10)) +>0 : number b, ->b : any +>b : any, Symbol(b, Decl(objectLiteralShorthandProperties.ts, 11, 9)) c, ->c : any +>c : any, Symbol(c, Decl(objectLiteralShorthandProperties.ts, 12, 6)) d() { }, ->d : () => void +>d : () => void, Symbol(d, Decl(objectLiteralShorthandProperties.ts, 13, 6)) x3, ->x3 : any +>x3 : any, Symbol(x3, Decl(objectLiteralShorthandProperties.ts, 14, 12)) parent: x3 ->parent : any ->x3 : any +>parent : any, Symbol(parent, Decl(objectLiteralShorthandProperties.ts, 15, 7)) +>x3 : any, Symbol(x3, Decl(objectLiteralShorthandProperties.ts, 10, 3)) }; diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesAssignment.types b/tests/baselines/reference/objectLiteralShorthandPropertiesAssignment.types index 91d9e528d63..33515248668 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesAssignment.types +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesAssignment.types @@ -1,68 +1,76 @@ === tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignment.ts === var id: number = 10000; ->id : number +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignment.ts, 0, 3)) +>10000 : number var name: string = "my name"; ->name : string +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 1, 3)) +>"my name" : string var person: { name: string; id: number } = { name, id }; ->person : { name: string; id: number; } ->name : string ->id : number +>person : { name: string; id: number; }, Symbol(person, Decl(objectLiteralShorthandPropertiesAssignment.ts, 3, 3)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 3, 13)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignment.ts, 3, 27)) >{ name, id } : { name: string; id: number; } ->name : string ->id : number +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 3, 44)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignment.ts, 3, 50)) function foo( obj:{ name: string }): void { }; ->foo : (obj: { name: string; }) => void ->obj : { name: string; } ->name : string +>foo : (obj: { name: string; }) => void, Symbol(foo, Decl(objectLiteralShorthandPropertiesAssignment.ts, 3, 56)) +>obj : { name: string; }, Symbol(obj, Decl(objectLiteralShorthandPropertiesAssignment.ts, 4, 13)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 4, 19)) function bar(name: string, id: number) { return { name, id }; } ->bar : (name: string, id: number) => { name: string; id: number; } ->name : string ->id : number +>bar : (name: string, id: number) => { name: string; id: number; }, Symbol(bar, Decl(objectLiteralShorthandPropertiesAssignment.ts, 4, 46)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 5, 13)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignment.ts, 5, 26)) >{ name, id } : { name: string; id: number; } ->name : string ->id : number +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 5, 49)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignment.ts, 5, 55)) function bar1(name: string, id: number) { return { name }; } ->bar1 : (name: string, id: number) => { name: string; } ->name : string ->id : number +>bar1 : (name: string, id: number) => { name: string; }, Symbol(bar1, Decl(objectLiteralShorthandPropertiesAssignment.ts, 5, 63)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 6, 14)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignment.ts, 6, 27)) >{ name } : { name: string; } ->name : string +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 6, 50)) function baz(name: string, id: number): { name: string; id: number } { return { name, id }; } ->baz : (name: string, id: number) => { name: string; id: number; } ->name : string ->id : number ->name : string ->id : number +>baz : (name: string, id: number) => { name: string; id: number; }, Symbol(baz, Decl(objectLiteralShorthandPropertiesAssignment.ts, 6, 60)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 7, 13)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignment.ts, 7, 26)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 7, 41)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignment.ts, 7, 55)) >{ name, id } : { name: string; id: number; } ->name : string ->id : number +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 7, 79)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignment.ts, 7, 85)) foo(person); >foo(person) : void ->foo : (obj: { name: string; }) => void ->person : { name: string; id: number; } +>foo : (obj: { name: string; }) => void, Symbol(foo, Decl(objectLiteralShorthandPropertiesAssignment.ts, 3, 56)) +>person : { name: string; id: number; }, Symbol(person, Decl(objectLiteralShorthandPropertiesAssignment.ts, 3, 3)) var person1 = bar("Hello", 5); ->person1 : { name: string; id: number; } +>person1 : { name: string; id: number; }, Symbol(person1, Decl(objectLiteralShorthandPropertiesAssignment.ts, 10, 3)) >bar("Hello", 5) : { name: string; id: number; } ->bar : (name: string, id: number) => { name: string; id: number; } +>bar : (name: string, id: number) => { name: string; id: number; }, Symbol(bar, Decl(objectLiteralShorthandPropertiesAssignment.ts, 4, 46)) +>"Hello" : string +>5 : number var person2: { name: string } = bar("Hello", 5); ->person2 : { name: string; } ->name : string +>person2 : { name: string; }, Symbol(person2, Decl(objectLiteralShorthandPropertiesAssignment.ts, 11, 3)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 11, 14)) >bar("Hello", 5) : { name: string; id: number; } ->bar : (name: string, id: number) => { name: string; id: number; } +>bar : (name: string, id: number) => { name: string; id: number; }, Symbol(bar, Decl(objectLiteralShorthandPropertiesAssignment.ts, 4, 46)) +>"Hello" : string +>5 : number var person3: { name: string; id:number } = bar("Hello", 5); ->person3 : { name: string; id: number; } ->name : string ->id : number +>person3 : { name: string; id: number; }, Symbol(person3, Decl(objectLiteralShorthandPropertiesAssignment.ts, 12, 3)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignment.ts, 12, 14)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignment.ts, 12, 28)) >bar("Hello", 5) : { name: string; id: number; } ->bar : (name: string, id: number) => { name: string; id: number; } +>bar : (name: string, id: number) => { name: string; id: number; }, Symbol(bar, Decl(objectLiteralShorthandPropertiesAssignment.ts, 4, 46)) +>"Hello" : string +>5 : number diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentES6.types b/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentES6.types index 38791fc1beb..7701d9761f8 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentES6.types +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesAssignmentES6.types @@ -1,68 +1,76 @@ === tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesAssignmentES6.ts === var id: number = 10000; ->id : number +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 0, 3)) +>10000 : number var name: string = "my name"; ->name : string +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 1, 3)) +>"my name" : string var person: { name: string; id: number } = { name, id }; ->person : { name: string; id: number; } ->name : string ->id : number +>person : { name: string; id: number; }, Symbol(person, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 3, 3)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 3, 13)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 3, 27)) >{ name, id } : { name: string; id: number; } ->name : string ->id : number +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 3, 44)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 3, 50)) function foo(obj: { name: string }): void { }; ->foo : (obj: { name: string; }) => void ->obj : { name: string; } ->name : string +>foo : (obj: { name: string; }) => void, Symbol(foo, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 3, 56)) +>obj : { name: string; }, Symbol(obj, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 4, 13)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 4, 19)) function bar(name: string, id: number) { return { name, id }; } ->bar : (name: string, id: number) => { name: string; id: number; } ->name : string ->id : number +>bar : (name: string, id: number) => { name: string; id: number; }, Symbol(bar, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 4, 46)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 5, 13)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 5, 26)) >{ name, id } : { name: string; id: number; } ->name : string ->id : number +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 5, 49)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 5, 55)) function bar1(name: string, id: number) { return { name }; } ->bar1 : (name: string, id: number) => { name: string; } ->name : string ->id : number +>bar1 : (name: string, id: number) => { name: string; }, Symbol(bar1, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 5, 63)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 6, 14)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 6, 27)) >{ name } : { name: string; } ->name : string +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 6, 50)) function baz(name: string, id: number): { name: string; id: number } { return { name, id }; } ->baz : (name: string, id: number) => { name: string; id: number; } ->name : string ->id : number ->name : string ->id : number +>baz : (name: string, id: number) => { name: string; id: number; }, Symbol(baz, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 6, 60)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 7, 13)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 7, 26)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 7, 41)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 7, 55)) >{ name, id } : { name: string; id: number; } ->name : string ->id : number +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 7, 79)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 7, 85)) foo(person); >foo(person) : void ->foo : (obj: { name: string; }) => void ->person : { name: string; id: number; } +>foo : (obj: { name: string; }) => void, Symbol(foo, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 3, 56)) +>person : { name: string; id: number; }, Symbol(person, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 3, 3)) var person1 = bar("Hello", 5); ->person1 : { name: string; id: number; } +>person1 : { name: string; id: number; }, Symbol(person1, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 10, 3)) >bar("Hello", 5) : { name: string; id: number; } ->bar : (name: string, id: number) => { name: string; id: number; } +>bar : (name: string, id: number) => { name: string; id: number; }, Symbol(bar, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 4, 46)) +>"Hello" : string +>5 : number var person2: { name: string } = bar("Hello", 5); ->person2 : { name: string; } ->name : string +>person2 : { name: string; }, Symbol(person2, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 11, 3)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 11, 14)) >bar("Hello", 5) : { name: string; id: number; } ->bar : (name: string, id: number) => { name: string; id: number; } +>bar : (name: string, id: number) => { name: string; id: number; }, Symbol(bar, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 4, 46)) +>"Hello" : string +>5 : number var person3: { name: string; id: number } = bar("Hello", 5); ->person3 : { name: string; id: number; } ->name : string ->id : number +>person3 : { name: string; id: number; }, Symbol(person3, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 12, 3)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 12, 14)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 12, 28)) >bar("Hello", 5) : { name: string; id: number; } ->bar : (name: string, id: number) => { name: string; id: number; } +>bar : (name: string, id: number) => { name: string; id: number; }, Symbol(bar, Decl(objectLiteralShorthandPropertiesAssignmentES6.ts, 4, 46)) +>"Hello" : string +>5 : number diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesES6.types b/tests/baselines/reference/objectLiteralShorthandPropertiesES6.types index 5d5acc279a5..7f98eaf1308 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesES6.types +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesES6.types @@ -1,48 +1,49 @@ === tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesES6.ts === var a, b, c; ->a : any ->b : any ->c : any +>a : any, Symbol(a, Decl(objectLiteralShorthandPropertiesES6.ts, 0, 3)) +>b : any, Symbol(b, Decl(objectLiteralShorthandPropertiesES6.ts, 0, 6)) +>c : any, Symbol(c, Decl(objectLiteralShorthandPropertiesES6.ts, 0, 9)) var x1 = { ->x1 : { a: any; } +>x1 : { a: any; }, Symbol(x1, Decl(objectLiteralShorthandPropertiesES6.ts, 2, 3)) >{ a} : { a: any; } a ->a : any +>a : any, Symbol(a, Decl(objectLiteralShorthandPropertiesES6.ts, 2, 10)) }; var x2 = { ->x2 : { a: any; } +>x2 : { a: any; }, Symbol(x2, Decl(objectLiteralShorthandPropertiesES6.ts, 6, 3)) >{ a,} : { a: any; } a, ->a : any +>a : any, Symbol(a, Decl(objectLiteralShorthandPropertiesES6.ts, 6, 10)) } var x3 = { ->x3 : any +>x3 : any, Symbol(x3, Decl(objectLiteralShorthandPropertiesES6.ts, 10, 3)) >{ a: 0, b, c, d() { }, x3, parent: x3} : { a: number; b: any; c: any; d(): void; x3: any; parent: any; } a: 0, ->a : number +>a : number, Symbol(a, Decl(objectLiteralShorthandPropertiesES6.ts, 10, 10)) +>0 : number b, ->b : any +>b : any, Symbol(b, Decl(objectLiteralShorthandPropertiesES6.ts, 11, 9)) c, ->c : any +>c : any, Symbol(c, Decl(objectLiteralShorthandPropertiesES6.ts, 12, 6)) d() { }, ->d : () => void +>d : () => void, Symbol(d, Decl(objectLiteralShorthandPropertiesES6.ts, 13, 6)) x3, ->x3 : any +>x3 : any, Symbol(x3, Decl(objectLiteralShorthandPropertiesES6.ts, 14, 12)) parent: x3 ->parent : any ->x3 : any +>parent : any, Symbol(parent, Decl(objectLiteralShorthandPropertiesES6.ts, 15, 7)) +>x3 : any, Symbol(x3, Decl(objectLiteralShorthandPropertiesES6.ts, 10, 3)) }; diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesFunctionArgument.types b/tests/baselines/reference/objectLiteralShorthandPropertiesFunctionArgument.types index 9b4261a74be..459addc5aed 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesFunctionArgument.types +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesFunctionArgument.types @@ -1,33 +1,35 @@ === tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesFunctionArgument.ts === var id: number = 10000; ->id : number +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 0, 3)) +>10000 : number var name: string = "my name"; ->name : string +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 1, 3)) +>"my name" : string var person = { name, id }; ->person : { name: string; id: number; } +>person : { name: string; id: number; }, Symbol(person, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 3, 3)) >{ name, id } : { name: string; id: number; } ->name : string ->id : number +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 3, 14)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 3, 20)) function foo(p: { name: string; id: number }) { } ->foo : (p: { name: string; id: number; }) => void ->p : { name: string; id: number; } ->name : string ->id : number +>foo : (p: { name: string; id: number; }) => void, Symbol(foo, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 3, 26)) +>p : { name: string; id: number; }, Symbol(p, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 5, 13)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 5, 17)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 5, 31)) foo(person); >foo(person) : void ->foo : (p: { name: string; id: number; }) => void ->person : { name: string; id: number; } +>foo : (p: { name: string; id: number; }) => void, Symbol(foo, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 3, 26)) +>person : { name: string; id: number; }, Symbol(person, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 3, 3)) var obj = { name: name, id: id }; ->obj : { name: string; id: number; } +>obj : { name: string; id: number; }, Symbol(obj, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 9, 3)) >{ name: name, id: id } : { name: string; id: number; } ->name : string ->name : string ->id : number ->id : number +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 9, 11)) +>name : string, Symbol(name, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 1, 3)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 9, 23)) +>id : number, Symbol(id, Decl(objectLiteralShorthandPropertiesFunctionArgument.ts, 0, 3)) diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesWithModule.types b/tests/baselines/reference/objectLiteralShorthandPropertiesWithModule.types index 77e139a3426..9c182487055 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesWithModule.types +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesWithModule.types @@ -2,29 +2,29 @@ // module export module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(objectLiteralShorthandPropertiesWithModule.ts, 0, 0), Decl(objectLiteralShorthandPropertiesWithModule.ts, 4, 1)) export var x; ->x : any +>x : any, Symbol(x, Decl(objectLiteralShorthandPropertiesWithModule.ts, 3, 14)) } module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(objectLiteralShorthandPropertiesWithModule.ts, 0, 0), Decl(objectLiteralShorthandPropertiesWithModule.ts, 4, 1)) var z = x; ->z : any ->x : any +>z : any, Symbol(z, Decl(objectLiteralShorthandPropertiesWithModule.ts, 7, 7)) +>x : any, Symbol(x, Decl(objectLiteralShorthandPropertiesWithModule.ts, 3, 14)) var y = { ->y : { a: any; x: any; } +>y : { a: any; x: any; }, Symbol(y, Decl(objectLiteralShorthandPropertiesWithModule.ts, 8, 7)) >{ a: x, x } : { a: any; x: any; } a: x, ->a : any ->x : any +>a : any, Symbol(a, Decl(objectLiteralShorthandPropertiesWithModule.ts, 8, 13)) +>x : any, Symbol(x, Decl(objectLiteralShorthandPropertiesWithModule.ts, 3, 14)) x ->x : any +>x : any, Symbol(x, Decl(objectLiteralShorthandPropertiesWithModule.ts, 9, 13)) }; } diff --git a/tests/baselines/reference/objectLiteralShorthandPropertiesWithModuleES6.types b/tests/baselines/reference/objectLiteralShorthandPropertiesWithModuleES6.types index 1030010d6c6..00d6f5f1f3e 100644 --- a/tests/baselines/reference/objectLiteralShorthandPropertiesWithModuleES6.types +++ b/tests/baselines/reference/objectLiteralShorthandPropertiesWithModuleES6.types @@ -1,29 +1,29 @@ === tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesWithModuleES6.ts === module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(objectLiteralShorthandPropertiesWithModuleES6.ts, 0, 0), Decl(objectLiteralShorthandPropertiesWithModuleES6.ts, 3, 1)) export var x; ->x : any +>x : any, Symbol(x, Decl(objectLiteralShorthandPropertiesWithModuleES6.ts, 2, 14)) } module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(objectLiteralShorthandPropertiesWithModuleES6.ts, 0, 0), Decl(objectLiteralShorthandPropertiesWithModuleES6.ts, 3, 1)) var z = x; ->z : any ->x : any +>z : any, Symbol(z, Decl(objectLiteralShorthandPropertiesWithModuleES6.ts, 6, 7)) +>x : any, Symbol(x, Decl(objectLiteralShorthandPropertiesWithModuleES6.ts, 2, 14)) var y = { ->y : { a: any; x: any; } +>y : { a: any; x: any; }, Symbol(y, Decl(objectLiteralShorthandPropertiesWithModuleES6.ts, 7, 7)) >{ a: x, x } : { a: any; x: any; } a: x, ->a : any ->x : any +>a : any, Symbol(a, Decl(objectLiteralShorthandPropertiesWithModuleES6.ts, 7, 13)) +>x : any, Symbol(x, Decl(objectLiteralShorthandPropertiesWithModuleES6.ts, 2, 14)) x ->x : any +>x : any, Symbol(x, Decl(objectLiteralShorthandPropertiesWithModuleES6.ts, 8, 13)) }; } diff --git a/tests/baselines/reference/objectLiteralWidened.types b/tests/baselines/reference/objectLiteralWidened.types index 3f9163e77ef..6ef0a2b460c 100644 --- a/tests/baselines/reference/objectLiteralWidened.types +++ b/tests/baselines/reference/objectLiteralWidened.types @@ -2,33 +2,36 @@ // object literal properties are widened to any var x = { ->x : { foo: any; bar: any; } +>x : { foo: any; bar: any; }, Symbol(x, Decl(objectLiteralWidened.ts, 2, 3)) >{ foo: null, bar: undefined} : { foo: null; bar: undefined; } foo: null, ->foo : null +>foo : null, Symbol(foo, Decl(objectLiteralWidened.ts, 2, 9)) +>null : null bar: undefined ->bar : undefined ->undefined : undefined +>bar : undefined, Symbol(bar, Decl(objectLiteralWidened.ts, 3, 14)) +>undefined : undefined, Symbol(undefined) } var y = { ->y : { foo: any; bar: { baz: any; boo: any; }; } +>y : { foo: any; bar: { baz: any; boo: any; }; }, Symbol(y, Decl(objectLiteralWidened.ts, 7, 3)) >{ foo: null, bar: { baz: null, boo: undefined }} : { foo: null; bar: { baz: null; boo: undefined; }; } foo: null, ->foo : null +>foo : null, Symbol(foo, Decl(objectLiteralWidened.ts, 7, 9)) +>null : null bar: { ->bar : { baz: null; boo: undefined; } +>bar : { baz: null; boo: undefined; }, Symbol(bar, Decl(objectLiteralWidened.ts, 8, 14)) >{ baz: null, boo: undefined } : { baz: null; boo: undefined; } baz: null, ->baz : null +>baz : null, Symbol(baz, Decl(objectLiteralWidened.ts, 9, 10)) +>null : null boo: undefined ->boo : undefined ->undefined : undefined +>boo : undefined, Symbol(boo, Decl(objectLiteralWidened.ts, 10, 18)) +>undefined : undefined, Symbol(undefined) } } diff --git a/tests/baselines/reference/objectMembersOnTypes.types b/tests/baselines/reference/objectMembersOnTypes.types index f634f0bce06..20cd37396b8 100644 --- a/tests/baselines/reference/objectMembersOnTypes.types +++ b/tests/baselines/reference/objectMembersOnTypes.types @@ -1,37 +1,37 @@ === tests/cases/compiler/objectMembersOnTypes.ts === interface I {} ->I : I +>I : I, Symbol(I, Decl(objectMembersOnTypes.ts, 0, 0)) class AAA implements I { } ->AAA : AAA ->I : I +>AAA : AAA, Symbol(AAA, Decl(objectMembersOnTypes.ts, 0, 14)) +>I : I, Symbol(I, Decl(objectMembersOnTypes.ts, 0, 0)) var x: number; ->x : number +>x : number, Symbol(x, Decl(objectMembersOnTypes.ts, 2, 3)) x.toString(); >x.toString() : string ->x.toString : (radix?: number) => string ->x : number ->toString : (radix?: number) => string +>x.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>x : number, Symbol(x, Decl(objectMembersOnTypes.ts, 2, 3)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(objectMembersOnTypes.ts, 4, 3)) +>I : I, Symbol(I, Decl(objectMembersOnTypes.ts, 0, 0)) i.toString(); // used to be an error >i.toString() : string ->i.toString : () => string ->i : I ->toString : () => string +>i.toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) +>i : I, Symbol(i, Decl(objectMembersOnTypes.ts, 4, 3)) +>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) var c: AAA; ->c : AAA ->AAA : AAA +>c : AAA, Symbol(c, Decl(objectMembersOnTypes.ts, 6, 3)) +>AAA : AAA, Symbol(AAA, Decl(objectMembersOnTypes.ts, 0, 14)) c.toString(); // used to be an error >c.toString() : string ->c.toString : () => string ->c : AAA ->toString : () => string +>c.toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) +>c : AAA, Symbol(c, Decl(objectMembersOnTypes.ts, 6, 3)) +>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) diff --git a/tests/baselines/reference/objectTypeHidingMembersOfObject.types b/tests/baselines/reference/objectTypeHidingMembersOfObject.types index 5bbd3a555ee..171efe3bbf2 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfObject.types +++ b/tests/baselines/reference/objectTypeHidingMembersOfObject.types @@ -2,68 +2,68 @@ // all of these valueOf calls should return the type shown in the overriding signatures here class C { ->C : C +>C : C, Symbol(C, Decl(objectTypeHidingMembersOfObject.ts, 0, 0)) valueOf() { } ->valueOf : () => void +>valueOf : () => void, Symbol(valueOf, Decl(objectTypeHidingMembersOfObject.ts, 2, 9)) } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(objectTypeHidingMembersOfObject.ts, 6, 3)) +>C : C, Symbol(C, Decl(objectTypeHidingMembersOfObject.ts, 0, 0)) var r1: void = c.valueOf(); ->r1 : void +>r1 : void, Symbol(r1, Decl(objectTypeHidingMembersOfObject.ts, 7, 3)) >c.valueOf() : void ->c.valueOf : () => void ->c : C ->valueOf : () => void +>c.valueOf : () => void, Symbol(C.valueOf, Decl(objectTypeHidingMembersOfObject.ts, 2, 9)) +>c : C, Symbol(c, Decl(objectTypeHidingMembersOfObject.ts, 6, 3)) +>valueOf : () => void, Symbol(C.valueOf, Decl(objectTypeHidingMembersOfObject.ts, 2, 9)) interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypeHidingMembersOfObject.ts, 7, 27)) valueOf(): void; ->valueOf : () => void +>valueOf : () => void, Symbol(valueOf, Decl(objectTypeHidingMembersOfObject.ts, 9, 13)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(objectTypeHidingMembersOfObject.ts, 13, 3)) +>I : I, Symbol(I, Decl(objectTypeHidingMembersOfObject.ts, 7, 27)) var r2: void = i.valueOf(); ->r2 : void +>r2 : void, Symbol(r2, Decl(objectTypeHidingMembersOfObject.ts, 14, 3)) >i.valueOf() : void ->i.valueOf : () => void ->i : I ->valueOf : () => void +>i.valueOf : () => void, Symbol(I.valueOf, Decl(objectTypeHidingMembersOfObject.ts, 9, 13)) +>i : I, Symbol(i, Decl(objectTypeHidingMembersOfObject.ts, 13, 3)) +>valueOf : () => void, Symbol(I.valueOf, Decl(objectTypeHidingMembersOfObject.ts, 9, 13)) var a = { ->a : { valueOf: () => void; } +>a : { valueOf: () => void; }, Symbol(a, Decl(objectTypeHidingMembersOfObject.ts, 16, 3)) >{ valueOf: () => { }} : { valueOf: () => void; } valueOf: () => { } ->valueOf : () => void +>valueOf : () => void, Symbol(valueOf, Decl(objectTypeHidingMembersOfObject.ts, 16, 9)) >() => { } : () => void } var r3: void = a.valueOf(); ->r3 : void +>r3 : void, Symbol(r3, Decl(objectTypeHidingMembersOfObject.ts, 20, 3)) >a.valueOf() : void ->a.valueOf : () => void ->a : { valueOf: () => void; } ->valueOf : () => void +>a.valueOf : () => void, Symbol(valueOf, Decl(objectTypeHidingMembersOfObject.ts, 16, 9)) +>a : { valueOf: () => void; }, Symbol(a, Decl(objectTypeHidingMembersOfObject.ts, 16, 3)) +>valueOf : () => void, Symbol(valueOf, Decl(objectTypeHidingMembersOfObject.ts, 16, 9)) var b: { ->b : { valueOf(): void; } +>b : { valueOf(): void; }, Symbol(b, Decl(objectTypeHidingMembersOfObject.ts, 22, 3)) valueOf(): void; ->valueOf : () => void +>valueOf : () => void, Symbol(valueOf, Decl(objectTypeHidingMembersOfObject.ts, 22, 8)) } var r4: void = b.valueOf(); ->r4 : void +>r4 : void, Symbol(r4, Decl(objectTypeHidingMembersOfObject.ts, 26, 3)) >b.valueOf() : void ->b.valueOf : () => void ->b : { valueOf(): void; } ->valueOf : () => void +>b.valueOf : () => void, Symbol(valueOf, Decl(objectTypeHidingMembersOfObject.ts, 22, 8)) +>b : { valueOf(): void; }, Symbol(b, Decl(objectTypeHidingMembersOfObject.ts, 22, 3)) +>valueOf : () => void, Symbol(valueOf, Decl(objectTypeHidingMembersOfObject.ts, 22, 8)) diff --git a/tests/baselines/reference/objectTypeLiteralSyntax.types b/tests/baselines/reference/objectTypeLiteralSyntax.types index 43f01ea19a9..6f70e2f1e7b 100644 --- a/tests/baselines/reference/objectTypeLiteralSyntax.types +++ b/tests/baselines/reference/objectTypeLiteralSyntax.types @@ -1,20 +1,20 @@ === tests/cases/conformance/types/objectTypeLiteral/objectTypeLiteralSyntax.ts === var x: { ->x : { foo: string; bar: string; } +>x : { foo: string; bar: string; }, Symbol(x, Decl(objectTypeLiteralSyntax.ts, 0, 3)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypeLiteralSyntax.ts, 0, 8)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(objectTypeLiteralSyntax.ts, 1, 16)) } var y: { ->y : { foo: string; bar: string; } +>y : { foo: string; bar: string; }, Symbol(y, Decl(objectTypeLiteralSyntax.ts, 5, 3)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypeLiteralSyntax.ts, 5, 8)) bar: string ->bar : string +>bar : string, Symbol(bar, Decl(objectTypeLiteralSyntax.ts, 6, 16)) } diff --git a/tests/baselines/reference/objectTypePropertyAccess.types b/tests/baselines/reference/objectTypePropertyAccess.types index 56e45f1bae0..d9d971a66d6 100644 --- a/tests/baselines/reference/objectTypePropertyAccess.types +++ b/tests/baselines/reference/objectTypePropertyAccess.types @@ -1,103 +1,110 @@ === tests/cases/conformance/types/members/objectTypePropertyAccess.ts === // Index notation should resolve to the type of a declared property with that same name class C { ->C : C +>C : C, Symbol(C, Decl(objectTypePropertyAccess.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypePropertyAccess.ts, 1, 9)) } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(objectTypePropertyAccess.ts, 5, 3)) +>C : C, Symbol(C, Decl(objectTypePropertyAccess.ts, 0, 0)) var r1 = c.toString(); ->r1 : string +>r1 : string, Symbol(r1, Decl(objectTypePropertyAccess.ts, 6, 3)) >c.toString() : string ->c.toString : () => string ->c : C ->toString : () => string +>c.toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) +>c : C, Symbol(c, Decl(objectTypePropertyAccess.ts, 5, 3)) +>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) var r2 = c['toString'](); ->r2 : string +>r2 : string, Symbol(r2, Decl(objectTypePropertyAccess.ts, 7, 3)) >c['toString']() : string >c['toString'] : () => string ->c : C +>c : C, Symbol(c, Decl(objectTypePropertyAccess.ts, 5, 3)) +>'toString' : string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) var r3 = c.foo; ->r3 : string ->c.foo : string ->c : C ->foo : string +>r3 : string, Symbol(r3, Decl(objectTypePropertyAccess.ts, 8, 3)) +>c.foo : string, Symbol(C.foo, Decl(objectTypePropertyAccess.ts, 1, 9)) +>c : C, Symbol(c, Decl(objectTypePropertyAccess.ts, 5, 3)) +>foo : string, Symbol(C.foo, Decl(objectTypePropertyAccess.ts, 1, 9)) var r4 = c['foo']; ->r4 : string +>r4 : string, Symbol(r4, Decl(objectTypePropertyAccess.ts, 9, 3), Decl(objectTypePropertyAccess.ts, 15, 3)) >c['foo'] : string ->c : C +>c : C, Symbol(c, Decl(objectTypePropertyAccess.ts, 5, 3)) +>'foo' : string, Symbol(C.foo, Decl(objectTypePropertyAccess.ts, 1, 9)) interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypePropertyAccess.ts, 9, 18)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(objectTypePropertyAccess.ts, 11, 13)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(objectTypePropertyAccess.ts, 14, 3)) +>I : I, Symbol(I, Decl(objectTypePropertyAccess.ts, 9, 18)) var r4 = i.toString(); ->r4 : string +>r4 : string, Symbol(r4, Decl(objectTypePropertyAccess.ts, 9, 3), Decl(objectTypePropertyAccess.ts, 15, 3)) >i.toString() : string ->i.toString : () => string ->i : I ->toString : () => string +>i.toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) +>i : I, Symbol(i, Decl(objectTypePropertyAccess.ts, 14, 3)) +>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) var r5 = i['toString'](); ->r5 : string +>r5 : string, Symbol(r5, Decl(objectTypePropertyAccess.ts, 16, 3)) >i['toString']() : string >i['toString'] : () => string ->i : I +>i : I, Symbol(i, Decl(objectTypePropertyAccess.ts, 14, 3)) +>'toString' : string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) var r6 = i.bar; ->r6 : string ->i.bar : string ->i : I ->bar : string +>r6 : string, Symbol(r6, Decl(objectTypePropertyAccess.ts, 17, 3)) +>i.bar : string, Symbol(I.bar, Decl(objectTypePropertyAccess.ts, 11, 13)) +>i : I, Symbol(i, Decl(objectTypePropertyAccess.ts, 14, 3)) +>bar : string, Symbol(I.bar, Decl(objectTypePropertyAccess.ts, 11, 13)) var r7 = i['bar']; ->r7 : string +>r7 : string, Symbol(r7, Decl(objectTypePropertyAccess.ts, 18, 3)) >i['bar'] : string ->i : I +>i : I, Symbol(i, Decl(objectTypePropertyAccess.ts, 14, 3)) +>'bar' : string, Symbol(I.bar, Decl(objectTypePropertyAccess.ts, 11, 13)) var a = { ->a : { foo: string; } +>a : { foo: string; }, Symbol(a, Decl(objectTypePropertyAccess.ts, 20, 3)) >{ foo: ''} : { foo: string; } foo: '' ->foo : string +>foo : string, Symbol(foo, Decl(objectTypePropertyAccess.ts, 20, 9)) +>'' : string } var r8 = a.toString(); ->r8 : string +>r8 : string, Symbol(r8, Decl(objectTypePropertyAccess.ts, 24, 3)) >a.toString() : string ->a.toString : () => string ->a : { foo: string; } ->toString : () => string +>a.toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) +>a : { foo: string; }, Symbol(a, Decl(objectTypePropertyAccess.ts, 20, 3)) +>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) var r9 = a['toString'](); ->r9 : string +>r9 : string, Symbol(r9, Decl(objectTypePropertyAccess.ts, 25, 3)) >a['toString']() : string >a['toString'] : () => string ->a : { foo: string; } +>a : { foo: string; }, Symbol(a, Decl(objectTypePropertyAccess.ts, 20, 3)) +>'toString' : string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) var r10 = a.foo; ->r10 : string ->a.foo : string ->a : { foo: string; } ->foo : string +>r10 : string, Symbol(r10, Decl(objectTypePropertyAccess.ts, 26, 3)) +>a.foo : string, Symbol(foo, Decl(objectTypePropertyAccess.ts, 20, 9)) +>a : { foo: string; }, Symbol(a, Decl(objectTypePropertyAccess.ts, 20, 3)) +>foo : string, Symbol(foo, Decl(objectTypePropertyAccess.ts, 20, 9)) var r11 = a['foo']; ->r11 : string +>r11 : string, Symbol(r11, Decl(objectTypePropertyAccess.ts, 27, 3)) >a['foo'] : string ->a : { foo: string; } +>a : { foo: string; }, Symbol(a, Decl(objectTypePropertyAccess.ts, 20, 3)) +>'foo' : string, Symbol(foo, Decl(objectTypePropertyAccess.ts, 20, 9)) diff --git a/tests/baselines/reference/objectTypeWithCallSignatureAppearsToBeFunctionType.types b/tests/baselines/reference/objectTypeWithCallSignatureAppearsToBeFunctionType.types index 74d8ef57d67..fc60fd724c4 100644 --- a/tests/baselines/reference/objectTypeWithCallSignatureAppearsToBeFunctionType.types +++ b/tests/baselines/reference/objectTypeWithCallSignatureAppearsToBeFunctionType.types @@ -3,44 +3,44 @@ // no errors expected below interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 0, 0)) (): void; } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 7, 3)) +>I : I, Symbol(I, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 0, 0)) var r2: void = i(); ->r2 : void +>r2 : void, Symbol(r2, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 8, 3)) >i() : void ->i : I +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 7, 3)) var r2b: (x: any, y?: any) => any = i.apply; ->r2b : (x: any, y?: any) => any ->x : any ->y : any ->i.apply : (thisArg: any, argArray?: any) => any ->i : I ->apply : (thisArg: any, argArray?: any) => any +>r2b : (x: any, y?: any) => any, Symbol(r2b, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 9, 3)) +>x : any, Symbol(x, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 9, 10)) +>y : any, Symbol(y, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 9, 17)) +>i.apply : (thisArg: any, argArray?: any) => any, Symbol(Function.apply, Decl(lib.d.ts, 228, 20)) +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 7, 3)) +>apply : (thisArg: any, argArray?: any) => any, Symbol(Function.apply, Decl(lib.d.ts, 228, 20)) var b: { ->b : () => void +>b : () => void, Symbol(b, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 11, 3)) (): void; } var r4: void = b(); ->r4 : void +>r4 : void, Symbol(r4, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 15, 3)) >b() : void ->b : () => void +>b : () => void, Symbol(b, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 11, 3)) var rb4: (x: any, y?: any) => any = b.apply; ->rb4 : (x: any, y?: any) => any ->x : any ->y : any ->b.apply : (thisArg: any, argArray?: any) => any ->b : () => void ->apply : (thisArg: any, argArray?: any) => any +>rb4 : (x: any, y?: any) => any, Symbol(rb4, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 16, 3)) +>x : any, Symbol(x, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 16, 10)) +>y : any, Symbol(y, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 16, 17)) +>b.apply : (thisArg: any, argArray?: any) => any, Symbol(Function.apply, Decl(lib.d.ts, 228, 20)) +>b : () => void, Symbol(b, Decl(objectTypeWithCallSignatureAppearsToBeFunctionType.ts, 11, 3)) +>apply : (thisArg: any, argArray?: any) => any, Symbol(Function.apply, Decl(lib.d.ts, 228, 20)) diff --git a/tests/baselines/reference/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.types b/tests/baselines/reference/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.types index 56635a8e399..fbe826c1ae2 100644 --- a/tests/baselines/reference/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.types +++ b/tests/baselines/reference/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.types @@ -3,113 +3,115 @@ // no errors expected below interface Function { ->Function : Function +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11), Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 0, 0)) data: number; ->data : number +>data : number, Symbol(data, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 3, 20)) [x: string]: Object; ->x : string ->Object : Object +>x : string, Symbol(x, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 5, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 6, 1)) (): void; apply(a: any, b?: any): void; ->apply : (a: any, b?: any) => void ->a : any ->b : any +>apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 9, 13)) +>a : any, Symbol(a, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 10, 10)) +>b : any, Symbol(b, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 10, 17)) call(thisArg: number, ...argArray: number[]): any; ->call : (thisArg: number, ...argArray: number[]) => any ->thisArg : number ->argArray : number[] +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 10, 33)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 11, 9)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 11, 25)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 14, 3)) +>I : I, Symbol(I, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 6, 1)) var r1: (a: any, b?: any) => void = i.apply; ->r1 : (a: any, b?: any) => void ->a : any ->b : any ->i.apply : (a: any, b?: any) => void ->i : I ->apply : (a: any, b?: any) => void +>r1 : (a: any, b?: any) => void, Symbol(r1, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 15, 3)) +>a : any, Symbol(a, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 15, 9)) +>b : any, Symbol(b, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 15, 16)) +>i.apply : (a: any, b?: any) => void, Symbol(I.apply, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 9, 13)) +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 14, 3)) +>apply : (a: any, b?: any) => void, Symbol(I.apply, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 9, 13)) var r1b: (thisArg: number, ...argArray: number[]) => void = i.call; ->r1b : (thisArg: number, ...argArray: number[]) => void ->thisArg : number ->argArray : number[] ->i.call : (thisArg: number, ...argArray: number[]) => any ->i : I ->call : (thisArg: number, ...argArray: number[]) => any +>r1b : (thisArg: number, ...argArray: number[]) => void, Symbol(r1b, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 16, 3)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 16, 10)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 16, 26)) +>i.call : (thisArg: number, ...argArray: number[]) => any, Symbol(I.call, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 10, 33)) +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 14, 3)) +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(I.call, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 10, 33)) var r1c = i.arguments; ->r1c : any ->i.arguments : any ->i : I ->arguments : any +>r1c : any, Symbol(r1c, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 17, 3)) +>i.arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 14, 3)) +>arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) var r1d = i.data; ->r1d : number ->i.data : number ->i : I ->data : number +>r1d : number, Symbol(r1d, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 18, 3)) +>i.data : number, Symbol(Function.data, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 3, 20)) +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 14, 3)) +>data : number, Symbol(Function.data, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 3, 20)) var r1e = i['hm']; // should be Object ->r1e : any +>r1e : any, Symbol(r1e, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 19, 3)) >i['hm'] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 14, 3)) +>'hm' : string var x: { ->x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } +>x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 21, 3)) (): void; apply(a: any, b?: any): void; ->apply : (a: any, b?: any) => void ->a : any ->b : any +>apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 22, 13)) +>a : any, Symbol(a, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 23, 10)) +>b : any, Symbol(b, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 23, 17)) call(thisArg: number, ...argArray: number[]): any; ->call : (thisArg: number, ...argArray: number[]) => any ->thisArg : number ->argArray : number[] +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 23, 33)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 24, 9)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 24, 25)) } var r2: (a: any, b?: any) => void = x.apply; ->r2 : (a: any, b?: any) => void ->a : any ->b : any ->x.apply : (a: any, b?: any) => void ->x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->apply : (a: any, b?: any) => void +>r2 : (a: any, b?: any) => void, Symbol(r2, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 27, 3)) +>a : any, Symbol(a, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 27, 9)) +>b : any, Symbol(b, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 27, 16)) +>x.apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 22, 13)) +>x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 21, 3)) +>apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 22, 13)) var r2b: (thisArg: number, ...argArray: number[]) => void = x.call; ->r2b : (thisArg: number, ...argArray: number[]) => void ->thisArg : number ->argArray : number[] ->x.call : (thisArg: number, ...argArray: number[]) => any ->x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->call : (thisArg: number, ...argArray: number[]) => any +>r2b : (thisArg: number, ...argArray: number[]) => void, Symbol(r2b, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 28, 3)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 28, 10)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 28, 26)) +>x.call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 23, 33)) +>x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 21, 3)) +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 23, 33)) var r2c = x.arguments; ->r2c : any ->x.arguments : any ->x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->arguments : any +>r2c : any, Symbol(r2c, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 29, 3)) +>x.arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) +>x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 21, 3)) +>arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) var r2d = x.data; ->r2d : number ->x.data : number ->x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->data : number +>r2d : number, Symbol(r2d, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 30, 3)) +>x.data : number, Symbol(Function.data, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 3, 20)) +>x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 21, 3)) +>data : number, Symbol(Function.data, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 3, 20)) var r2e = x['hm']; // should be Object ->r2e : any +>r2e : any, Symbol(r2e, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 31, 3)) >x['hm'] : any ->x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } +>x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts, 21, 3)) +>'hm' : string diff --git a/tests/baselines/reference/objectTypeWithCallSignatureHidingMembersOfFunction.types b/tests/baselines/reference/objectTypeWithCallSignatureHidingMembersOfFunction.types index 8f2f3d4a2b7..78a26bd402f 100644 --- a/tests/baselines/reference/objectTypeWithCallSignatureHidingMembersOfFunction.types +++ b/tests/baselines/reference/objectTypeWithCallSignatureHidingMembersOfFunction.types @@ -3,80 +3,80 @@ // no errors expected below interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 0, 0)) (): void; apply(a: any, b?: any): void; ->apply : (a: any, b?: any) => void ->a : any ->b : any +>apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 4, 13)) +>a : any, Symbol(a, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 5, 10)) +>b : any, Symbol(b, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 5, 17)) call(thisArg: number, ...argArray: number[]): any; ->call : (thisArg: number, ...argArray: number[]) => any ->thisArg : number ->argArray : number[] +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 5, 33)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 6, 9)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 6, 25)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 9, 3)) +>I : I, Symbol(I, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 0, 0)) var r1: (a: any, b?: any) => void = i.apply; ->r1 : (a: any, b?: any) => void ->a : any ->b : any ->i.apply : (a: any, b?: any) => void ->i : I ->apply : (a: any, b?: any) => void +>r1 : (a: any, b?: any) => void, Symbol(r1, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 10, 3)) +>a : any, Symbol(a, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 10, 9)) +>b : any, Symbol(b, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 10, 16)) +>i.apply : (a: any, b?: any) => void, Symbol(I.apply, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 4, 13)) +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 9, 3)) +>apply : (a: any, b?: any) => void, Symbol(I.apply, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 4, 13)) var r1b: (thisArg: number, ...argArray: number[]) => void = i.call; ->r1b : (thisArg: number, ...argArray: number[]) => void ->thisArg : number ->argArray : number[] ->i.call : (thisArg: number, ...argArray: number[]) => any ->i : I ->call : (thisArg: number, ...argArray: number[]) => any +>r1b : (thisArg: number, ...argArray: number[]) => void, Symbol(r1b, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 11, 3)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 11, 10)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 11, 26)) +>i.call : (thisArg: number, ...argArray: number[]) => any, Symbol(I.call, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 5, 33)) +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 9, 3)) +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(I.call, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 5, 33)) var r1c = i.arguments; ->r1c : any ->i.arguments : any ->i : I ->arguments : any +>r1c : any, Symbol(r1c, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 12, 3)) +>i.arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) +>i : I, Symbol(i, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 9, 3)) +>arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) var x: { ->x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } +>x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 14, 3)) (): void; apply(a: any, b?: any): void; ->apply : (a: any, b?: any) => void ->a : any ->b : any +>apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 15, 13)) +>a : any, Symbol(a, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 16, 10)) +>b : any, Symbol(b, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 16, 17)) call(thisArg: number, ...argArray: number[]): any; ->call : (thisArg: number, ...argArray: number[]) => any ->thisArg : number ->argArray : number[] +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 16, 33)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 17, 9)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 17, 25)) } var r2: (a: any, b?: any) => void = x.apply; ->r2 : (a: any, b?: any) => void ->a : any ->b : any ->x.apply : (a: any, b?: any) => void ->x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->apply : (a: any, b?: any) => void +>r2 : (a: any, b?: any) => void, Symbol(r2, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 20, 3)) +>a : any, Symbol(a, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 20, 9)) +>b : any, Symbol(b, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 20, 16)) +>x.apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 15, 13)) +>x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 14, 3)) +>apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 15, 13)) var r2b: (thisArg: number, ...argArray: number[]) => void = x.call; ->r2b : (thisArg: number, ...argArray: number[]) => void ->thisArg : number ->argArray : number[] ->x.call : (thisArg: number, ...argArray: number[]) => any ->x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->call : (thisArg: number, ...argArray: number[]) => any +>r2b : (thisArg: number, ...argArray: number[]) => void, Symbol(r2b, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 21, 3)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 21, 10)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 21, 26)) +>x.call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 16, 33)) +>x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 14, 3)) +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 16, 33)) var r2c = x.arguments; ->r2c : any ->x.arguments : any ->x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->arguments : any +>r2c : any, Symbol(r2c, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 22, 3)) +>x.arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) +>x : { (): void; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithCallSignatureHidingMembersOfFunction.ts, 14, 3)) +>arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) diff --git a/tests/baselines/reference/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.types b/tests/baselines/reference/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.types index b7d8294dd96..5dfb15f97b0 100644 --- a/tests/baselines/reference/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.types +++ b/tests/baselines/reference/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.types @@ -1,112 +1,114 @@ === tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts === interface Function { ->Function : Function +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11), Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 0, 0)) data: number; ->data : number +>data : number, Symbol(data, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 0, 20)) [x: string]: Object; ->x : string ->Object : Object +>x : string, Symbol(x, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 2, 5)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 3, 1)) new(): number; apply(a: any, b?: any): void; ->apply : (a: any, b?: any) => void ->a : any ->b : any +>apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 6, 18)) +>a : any, Symbol(a, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 7, 10)) +>b : any, Symbol(b, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 7, 17)) call(thisArg: number, ...argArray: number[]): any; ->call : (thisArg: number, ...argArray: number[]) => any ->thisArg : number ->argArray : number[] +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 7, 33)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 8, 9)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 8, 25)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 11, 3)) +>I : I, Symbol(I, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 3, 1)) var r1: (a: any, b?: any) => void = i.apply; ->r1 : (a: any, b?: any) => void ->a : any ->b : any ->i.apply : (a: any, b?: any) => void ->i : I ->apply : (a: any, b?: any) => void +>r1 : (a: any, b?: any) => void, Symbol(r1, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 12, 3)) +>a : any, Symbol(a, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 12, 9)) +>b : any, Symbol(b, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 12, 16)) +>i.apply : (a: any, b?: any) => void, Symbol(I.apply, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 6, 18)) +>i : I, Symbol(i, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 11, 3)) +>apply : (a: any, b?: any) => void, Symbol(I.apply, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 6, 18)) var r1b: (thisArg: number, ...argArray: number[]) => void = i.call; ->r1b : (thisArg: number, ...argArray: number[]) => void ->thisArg : number ->argArray : number[] ->i.call : (thisArg: number, ...argArray: number[]) => any ->i : I ->call : (thisArg: number, ...argArray: number[]) => any +>r1b : (thisArg: number, ...argArray: number[]) => void, Symbol(r1b, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 13, 3)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 13, 10)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 13, 26)) +>i.call : (thisArg: number, ...argArray: number[]) => any, Symbol(I.call, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 7, 33)) +>i : I, Symbol(i, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 11, 3)) +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(I.call, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 7, 33)) var r1c = i.arguments; ->r1c : any ->i.arguments : any ->i : I ->arguments : any +>r1c : any, Symbol(r1c, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 14, 3)) +>i.arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) +>i : I, Symbol(i, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 11, 3)) +>arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) var r1d = i.data; ->r1d : number ->i.data : number ->i : I ->data : number +>r1d : number, Symbol(r1d, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 15, 3)) +>i.data : number, Symbol(Function.data, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 0, 20)) +>i : I, Symbol(i, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 11, 3)) +>data : number, Symbol(Function.data, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 0, 20)) var r1e = i['hm']; // should be Object ->r1e : any +>r1e : any, Symbol(r1e, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 16, 3)) >i['hm'] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 11, 3)) +>'hm' : string var x: { ->x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } +>x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 18, 3)) new(): number; apply(a: any, b?: any): void; ->apply : (a: any, b?: any) => void ->a : any ->b : any +>apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 19, 18)) +>a : any, Symbol(a, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 20, 10)) +>b : any, Symbol(b, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 20, 17)) call(thisArg: number, ...argArray: number[]): any; ->call : (thisArg: number, ...argArray: number[]) => any ->thisArg : number ->argArray : number[] +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 20, 33)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 21, 9)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 21, 25)) } var r2: (a: any, b?: any) => void = x.apply; ->r2 : (a: any, b?: any) => void ->a : any ->b : any ->x.apply : (a: any, b?: any) => void ->x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->apply : (a: any, b?: any) => void +>r2 : (a: any, b?: any) => void, Symbol(r2, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 24, 3)) +>a : any, Symbol(a, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 24, 9)) +>b : any, Symbol(b, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 24, 16)) +>x.apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 19, 18)) +>x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 18, 3)) +>apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 19, 18)) var r2b: (thisArg: number, ...argArray: number[]) => void = x.call; ->r2b : (thisArg: number, ...argArray: number[]) => void ->thisArg : number ->argArray : number[] ->x.call : (thisArg: number, ...argArray: number[]) => any ->x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->call : (thisArg: number, ...argArray: number[]) => any +>r2b : (thisArg: number, ...argArray: number[]) => void, Symbol(r2b, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 25, 3)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 25, 10)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 25, 26)) +>x.call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 20, 33)) +>x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 18, 3)) +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 20, 33)) var r2c = x.arguments; ->r2c : any ->x.arguments : any ->x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->arguments : any +>r2c : any, Symbol(r2c, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 26, 3)) +>x.arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) +>x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 18, 3)) +>arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) var r2d = x.data; ->r2d : number ->x.data : number ->x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->data : number +>r2d : number, Symbol(r2d, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 27, 3)) +>x.data : number, Symbol(Function.data, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 0, 20)) +>x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 18, 3)) +>data : number, Symbol(Function.data, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 0, 20)) var r2e = x['hm']; // should be Object ->r2e : any +>r2e : any, Symbol(r2e, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 28, 3)) >x['hm'] : any ->x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } +>x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts, 18, 3)) +>'hm' : string diff --git a/tests/baselines/reference/objectTypeWithConstructSignatureHidingMembersOfFunction.types b/tests/baselines/reference/objectTypeWithConstructSignatureHidingMembersOfFunction.types index d8d8a96823c..63b84ed9826 100644 --- a/tests/baselines/reference/objectTypeWithConstructSignatureHidingMembersOfFunction.types +++ b/tests/baselines/reference/objectTypeWithConstructSignatureHidingMembersOfFunction.types @@ -1,79 +1,79 @@ === tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfFunction.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 0, 0)) new(): number; apply(a: any, b?: any): void; ->apply : (a: any, b?: any) => void ->a : any ->b : any +>apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 1, 18)) +>a : any, Symbol(a, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 2, 10)) +>b : any, Symbol(b, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 2, 17)) call(thisArg: number, ...argArray: number[]): any; ->call : (thisArg: number, ...argArray: number[]) => any ->thisArg : number ->argArray : number[] +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 2, 33)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 3, 9)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 3, 25)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 6, 3)) +>I : I, Symbol(I, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 0, 0)) var r1: (a: any, b?: any) => void = i.apply; ->r1 : (a: any, b?: any) => void ->a : any ->b : any ->i.apply : (a: any, b?: any) => void ->i : I ->apply : (a: any, b?: any) => void +>r1 : (a: any, b?: any) => void, Symbol(r1, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 7, 3)) +>a : any, Symbol(a, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 7, 9)) +>b : any, Symbol(b, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 7, 16)) +>i.apply : (a: any, b?: any) => void, Symbol(I.apply, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 1, 18)) +>i : I, Symbol(i, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 6, 3)) +>apply : (a: any, b?: any) => void, Symbol(I.apply, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 1, 18)) var r1b: (thisArg: number, ...argArray: number[]) => void = i.call; ->r1b : (thisArg: number, ...argArray: number[]) => void ->thisArg : number ->argArray : number[] ->i.call : (thisArg: number, ...argArray: number[]) => any ->i : I ->call : (thisArg: number, ...argArray: number[]) => any +>r1b : (thisArg: number, ...argArray: number[]) => void, Symbol(r1b, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 8, 3)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 8, 10)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 8, 26)) +>i.call : (thisArg: number, ...argArray: number[]) => any, Symbol(I.call, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 2, 33)) +>i : I, Symbol(i, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 6, 3)) +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(I.call, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 2, 33)) var r1c = i.arguments; ->r1c : any ->i.arguments : any ->i : I ->arguments : any +>r1c : any, Symbol(r1c, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 9, 3)) +>i.arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) +>i : I, Symbol(i, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 6, 3)) +>arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) var x: { ->x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } +>x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 11, 3)) new(): number; apply(a: any, b?: any): void; ->apply : (a: any, b?: any) => void ->a : any ->b : any +>apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 12, 18)) +>a : any, Symbol(a, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 13, 10)) +>b : any, Symbol(b, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 13, 17)) call(thisArg: number, ...argArray: number[]): any; ->call : (thisArg: number, ...argArray: number[]) => any ->thisArg : number ->argArray : number[] +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 13, 33)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 14, 9)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 14, 25)) } var r2: (a: any, b?: any) => void = x.apply; ->r2 : (a: any, b?: any) => void ->a : any ->b : any ->x.apply : (a: any, b?: any) => void ->x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->apply : (a: any, b?: any) => void +>r2 : (a: any, b?: any) => void, Symbol(r2, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 17, 3)) +>a : any, Symbol(a, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 17, 9)) +>b : any, Symbol(b, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 17, 16)) +>x.apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 12, 18)) +>x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 11, 3)) +>apply : (a: any, b?: any) => void, Symbol(apply, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 12, 18)) var r2b: (thisArg: number, ...argArray: number[]) => void = x.call; ->r2b : (thisArg: number, ...argArray: number[]) => void ->thisArg : number ->argArray : number[] ->x.call : (thisArg: number, ...argArray: number[]) => any ->x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->call : (thisArg: number, ...argArray: number[]) => any +>r2b : (thisArg: number, ...argArray: number[]) => void, Symbol(r2b, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 18, 3)) +>thisArg : number, Symbol(thisArg, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 18, 10)) +>argArray : number[], Symbol(argArray, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 18, 26)) +>x.call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 13, 33)) +>x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 11, 3)) +>call : (thisArg: number, ...argArray: number[]) => any, Symbol(call, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 13, 33)) var r2c = x.arguments; ->r2c : any ->x.arguments : any ->x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; } ->arguments : any +>r2c : any, Symbol(r2c, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 19, 3)) +>x.arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) +>x : { new (): number; apply(a: any, b?: any): void; call(thisArg: number, ...argArray: number[]): any; }, Symbol(x, Decl(objectTypeWithConstructSignatureHidingMembersOfFunction.ts, 11, 3)) +>arguments : any, Symbol(Function.arguments, Decl(lib.d.ts, 252, 19)) diff --git a/tests/baselines/reference/objectTypeWithNumericProperty.types b/tests/baselines/reference/objectTypeWithNumericProperty.types index 7c507cd4f64..742a6f18eae 100644 --- a/tests/baselines/reference/objectTypeWithNumericProperty.types +++ b/tests/baselines/reference/objectTypeWithNumericProperty.types @@ -2,119 +2,138 @@ // no errors here class C { ->C : C +>C : C, Symbol(C, Decl(objectTypeWithNumericProperty.ts, 0, 0)) 1: number; 1.1: string; } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3)) +>C : C, Symbol(C, Decl(objectTypeWithNumericProperty.ts, 0, 0)) var r1 = c[1]; ->r1 : number +>r1 : number, Symbol(r1, Decl(objectTypeWithNumericProperty.ts, 8, 3), Decl(objectTypeWithNumericProperty.ts, 19, 3), Decl(objectTypeWithNumericProperty.ts, 29, 3), Decl(objectTypeWithNumericProperty.ts, 39, 3)) >c[1] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3)) +>1 : number, Symbol(C.1, Decl(objectTypeWithNumericProperty.ts, 2, 9)) var r2 = c[1.1]; ->r2 : string +>r2 : string, Symbol(r2, Decl(objectTypeWithNumericProperty.ts, 9, 3), Decl(objectTypeWithNumericProperty.ts, 20, 3), Decl(objectTypeWithNumericProperty.ts, 30, 3), Decl(objectTypeWithNumericProperty.ts, 40, 3)) >c[1.1] : string ->c : C +>c : C, Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3)) +>1.1 : number, Symbol(C.1.1, Decl(objectTypeWithNumericProperty.ts, 3, 14)) var r3 = c['1']; ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithNumericProperty.ts, 10, 3), Decl(objectTypeWithNumericProperty.ts, 21, 3), Decl(objectTypeWithNumericProperty.ts, 31, 3), Decl(objectTypeWithNumericProperty.ts, 41, 3)) >c['1'] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3)) +>'1' : string, Symbol(C.1, Decl(objectTypeWithNumericProperty.ts, 2, 9)) var r4 = c['1.1']; ->r4 : string +>r4 : string, Symbol(r4, Decl(objectTypeWithNumericProperty.ts, 11, 3), Decl(objectTypeWithNumericProperty.ts, 22, 3), Decl(objectTypeWithNumericProperty.ts, 32, 3), Decl(objectTypeWithNumericProperty.ts, 42, 3)) >c['1.1'] : string ->c : C +>c : C, Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3)) +>'1.1' : string, Symbol(C.1.1, Decl(objectTypeWithNumericProperty.ts, 3, 14)) interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypeWithNumericProperty.ts, 11, 18)) 1: number; 1.1: string; } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3)) +>I : I, Symbol(I, Decl(objectTypeWithNumericProperty.ts, 11, 18)) var r1 = i[1]; ->r1 : number +>r1 : number, Symbol(r1, Decl(objectTypeWithNumericProperty.ts, 8, 3), Decl(objectTypeWithNumericProperty.ts, 19, 3), Decl(objectTypeWithNumericProperty.ts, 29, 3), Decl(objectTypeWithNumericProperty.ts, 39, 3)) >i[1] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3)) +>1 : number, Symbol(I.1, Decl(objectTypeWithNumericProperty.ts, 13, 13)) var r2 = i[1.1]; ->r2 : string +>r2 : string, Symbol(r2, Decl(objectTypeWithNumericProperty.ts, 9, 3), Decl(objectTypeWithNumericProperty.ts, 20, 3), Decl(objectTypeWithNumericProperty.ts, 30, 3), Decl(objectTypeWithNumericProperty.ts, 40, 3)) >i[1.1] : string ->i : I +>i : I, Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3)) +>1.1 : number, Symbol(I.1.1, Decl(objectTypeWithNumericProperty.ts, 14, 14)) var r3 = i['1']; ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithNumericProperty.ts, 10, 3), Decl(objectTypeWithNumericProperty.ts, 21, 3), Decl(objectTypeWithNumericProperty.ts, 31, 3), Decl(objectTypeWithNumericProperty.ts, 41, 3)) >i['1'] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3)) +>'1' : string, Symbol(I.1, Decl(objectTypeWithNumericProperty.ts, 13, 13)) var r4 = i['1.1']; ->r4 : string +>r4 : string, Symbol(r4, Decl(objectTypeWithNumericProperty.ts, 11, 3), Decl(objectTypeWithNumericProperty.ts, 22, 3), Decl(objectTypeWithNumericProperty.ts, 32, 3), Decl(objectTypeWithNumericProperty.ts, 42, 3)) >i['1.1'] : string ->i : I +>i : I, Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3)) +>'1.1' : string, Symbol(I.1.1, Decl(objectTypeWithNumericProperty.ts, 14, 14)) var a: { ->a : { 1: number; 1.1: string; } +>a : { 1: number; 1.1: string; }, Symbol(a, Decl(objectTypeWithNumericProperty.ts, 24, 3)) 1: number; 1.1: string; } var r1 = a[1]; ->r1 : number +>r1 : number, Symbol(r1, Decl(objectTypeWithNumericProperty.ts, 8, 3), Decl(objectTypeWithNumericProperty.ts, 19, 3), Decl(objectTypeWithNumericProperty.ts, 29, 3), Decl(objectTypeWithNumericProperty.ts, 39, 3)) >a[1] : number ->a : { 1: number; 1.1: string; } +>a : { 1: number; 1.1: string; }, Symbol(a, Decl(objectTypeWithNumericProperty.ts, 24, 3)) +>1 : number, Symbol(1, Decl(objectTypeWithNumericProperty.ts, 24, 8)) var r2 = a[1.1]; ->r2 : string +>r2 : string, Symbol(r2, Decl(objectTypeWithNumericProperty.ts, 9, 3), Decl(objectTypeWithNumericProperty.ts, 20, 3), Decl(objectTypeWithNumericProperty.ts, 30, 3), Decl(objectTypeWithNumericProperty.ts, 40, 3)) >a[1.1] : string ->a : { 1: number; 1.1: string; } +>a : { 1: number; 1.1: string; }, Symbol(a, Decl(objectTypeWithNumericProperty.ts, 24, 3)) +>1.1 : number, Symbol(1.1, Decl(objectTypeWithNumericProperty.ts, 25, 14)) var r3 = a['1']; ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithNumericProperty.ts, 10, 3), Decl(objectTypeWithNumericProperty.ts, 21, 3), Decl(objectTypeWithNumericProperty.ts, 31, 3), Decl(objectTypeWithNumericProperty.ts, 41, 3)) >a['1'] : number ->a : { 1: number; 1.1: string; } +>a : { 1: number; 1.1: string; }, Symbol(a, Decl(objectTypeWithNumericProperty.ts, 24, 3)) +>'1' : string, Symbol(1, Decl(objectTypeWithNumericProperty.ts, 24, 8)) var r4 = a['1.1']; ->r4 : string +>r4 : string, Symbol(r4, Decl(objectTypeWithNumericProperty.ts, 11, 3), Decl(objectTypeWithNumericProperty.ts, 22, 3), Decl(objectTypeWithNumericProperty.ts, 32, 3), Decl(objectTypeWithNumericProperty.ts, 42, 3)) >a['1.1'] : string ->a : { 1: number; 1.1: string; } +>a : { 1: number; 1.1: string; }, Symbol(a, Decl(objectTypeWithNumericProperty.ts, 24, 3)) +>'1.1' : string, Symbol(1.1, Decl(objectTypeWithNumericProperty.ts, 25, 14)) var b = { ->b : { 1: number; 1.1: string; } +>b : { 1: number; 1.1: string; }, Symbol(b, Decl(objectTypeWithNumericProperty.ts, 34, 3)) >{ 1: 1, 1.1: ""} : { 1: number; 1.1: string; } 1: 1, +>1 : number + 1.1: "" +>"" : string } var r1 = b[1]; ->r1 : number +>r1 : number, Symbol(r1, Decl(objectTypeWithNumericProperty.ts, 8, 3), Decl(objectTypeWithNumericProperty.ts, 19, 3), Decl(objectTypeWithNumericProperty.ts, 29, 3), Decl(objectTypeWithNumericProperty.ts, 39, 3)) >b[1] : number ->b : { 1: number; 1.1: string; } +>b : { 1: number; 1.1: string; }, Symbol(b, Decl(objectTypeWithNumericProperty.ts, 34, 3)) +>1 : number, Symbol(1, Decl(objectTypeWithNumericProperty.ts, 34, 9)) var r2 = b[1.1]; ->r2 : string +>r2 : string, Symbol(r2, Decl(objectTypeWithNumericProperty.ts, 9, 3), Decl(objectTypeWithNumericProperty.ts, 20, 3), Decl(objectTypeWithNumericProperty.ts, 30, 3), Decl(objectTypeWithNumericProperty.ts, 40, 3)) >b[1.1] : string ->b : { 1: number; 1.1: string; } +>b : { 1: number; 1.1: string; }, Symbol(b, Decl(objectTypeWithNumericProperty.ts, 34, 3)) +>1.1 : number, Symbol(1.1, Decl(objectTypeWithNumericProperty.ts, 35, 9)) var r3 = b['1']; ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithNumericProperty.ts, 10, 3), Decl(objectTypeWithNumericProperty.ts, 21, 3), Decl(objectTypeWithNumericProperty.ts, 31, 3), Decl(objectTypeWithNumericProperty.ts, 41, 3)) >b['1'] : number ->b : { 1: number; 1.1: string; } +>b : { 1: number; 1.1: string; }, Symbol(b, Decl(objectTypeWithNumericProperty.ts, 34, 3)) +>'1' : string, Symbol(1, Decl(objectTypeWithNumericProperty.ts, 34, 9)) var r4 = b['1.1']; ->r4 : string +>r4 : string, Symbol(r4, Decl(objectTypeWithNumericProperty.ts, 11, 3), Decl(objectTypeWithNumericProperty.ts, 22, 3), Decl(objectTypeWithNumericProperty.ts, 32, 3), Decl(objectTypeWithNumericProperty.ts, 42, 3)) >b['1.1'] : string ->b : { 1: number; 1.1: string; } +>b : { 1: number; 1.1: string; }, Symbol(b, Decl(objectTypeWithNumericProperty.ts, 34, 3)) +>'1.1' : string, Symbol(1.1, Decl(objectTypeWithNumericProperty.ts, 35, 9)) diff --git a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.types b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.types index 74b5550fecb..fa384c3a12c 100644 --- a/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.types +++ b/tests/baselines/reference/objectTypeWithStringNamedNumericProperty.types @@ -5,454 +5,531 @@ // no errors expected below class C { ->C : C +>C : C, Symbol(C, Decl(objectTypeWithStringNamedNumericProperty.ts, 0, 0)) "0.1": void; ".1": Object; ->Object : Object +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) "1": number; "1.": string; "1..": boolean; "1.0": Date; ->Date : Date +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) "-1.0": RegExp; ->RegExp : RegExp +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) "-1": Date; ->Date : Date +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>C : C, Symbol(C, Decl(objectTypeWithStringNamedNumericProperty.ts, 0, 0)) var r1 = c['0.1']; ->r1 : void +>r1 : void, Symbol(r1, Decl(objectTypeWithStringNamedNumericProperty.ts, 17, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 48, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 78, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 108, 3)) >c['0.1'] : void ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>'0.1' : string, Symbol(C."0.1", Decl(objectTypeWithStringNamedNumericProperty.ts, 5, 9)) var r2 = c['.1']; ->r2 : Object +>r2 : Object, Symbol(r2, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 79, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 109, 3)) >c['.1'] : Object ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>'.1' : string, Symbol(C.".1", Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 16)) var r3 = c['1']; ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c['1'] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>'1' : string, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) var r3 = c[1]; ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c[1] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>1 : number, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) var r4 = c['1.']; ->r4 : string +>r4 : string, Symbol(r4, Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 52, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 82, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 112, 3)) >c['1.'] : string ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>'1.' : string, Symbol(C."1.", Decl(objectTypeWithStringNamedNumericProperty.ts, 8, 16)) var r3 = c[1.]; // same as indexing by 1 when done numerically ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c[1.] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>1. : number, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) var r5 = c['1..']; ->r5 : boolean +>r5 : boolean, Symbol(r5, Decl(objectTypeWithStringNamedNumericProperty.ts, 23, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 54, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 84, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 114, 3)) >c['1..'] : boolean ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>'1..' : string, Symbol(C."1..", Decl(objectTypeWithStringNamedNumericProperty.ts, 9, 17)) var r6 = c['1.0']; ->r6 : Date +>r6 : Date, Symbol(r6, Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 55, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 85, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 115, 3)) >c['1.0'] : Date ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>'1.0' : string, Symbol(C."1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 10, 19)) var r3 = c[1.0]; // same as indexing by 1 when done numerically ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c[1.0] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>1.0 : number, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) // BUG 823822 var r7 = i[-1]; ->r7 : any +>r7 : any, Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 28, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 59, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 88, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 89, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 118, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 119, 3)) >i[-1] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-1 : number +>1 : number var r7 = i[-1.0]; ->r7 : any +>r7 : any, Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 28, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 59, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 88, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 89, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 118, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 119, 3)) >i[-1.0] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-1.0 : number +>1.0 : number var r8 = i["-1.0"]; ->r8 : RegExp +>r8 : RegExp, Symbol(r8, Decl(objectTypeWithStringNamedNumericProperty.ts, 29, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 60, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 90, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 120, 3)) >i["-1.0"] : RegExp ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>"-1.0" : string, Symbol(I."-1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 16)) var r9 = i["-1"]; ->r9 : Date +>r9 : Date, Symbol(r9, Decl(objectTypeWithStringNamedNumericProperty.ts, 30, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 61, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 91, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 121, 3)) >i["-1"] : Date ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>"-1" : string, Symbol(I."-1", Decl(objectTypeWithStringNamedNumericProperty.ts, 43, 19)) var r10 = i[0x1] ->r10 : number +>r10 : number, Symbol(r10, Decl(objectTypeWithStringNamedNumericProperty.ts, 31, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 62, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 92, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 122, 3)) >i[0x1] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>0x1 : number, Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17)) var r11 = i[-0x1] ->r11 : any +>r11 : any, Symbol(r11, Decl(objectTypeWithStringNamedNumericProperty.ts, 32, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 63, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 93, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 123, 3)) >i[-0x1] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-0x1 : number +>0x1 : number var r12 = i[01] ->r12 : number +>r12 : number, Symbol(r12, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 64, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 94, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 124, 3)) >i[01] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>01 : number, Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17)) var r13 = i[-01] ->r13 : any +>r13 : any, Symbol(r13, Decl(objectTypeWithStringNamedNumericProperty.ts, 34, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 65, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 95, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 125, 3)) >i[-01] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-01 : number +>01 : number interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypeWithStringNamedNumericProperty.ts, 34, 16)) "0.1": void; ".1": Object; ->Object : Object +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) "1": number; "1.": string; "1..": boolean; "1.0": Date; ->Date : Date +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) "-1.0": RegExp; ->RegExp : RegExp +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) "-1": Date; ->Date : Date +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>I : I, Symbol(I, Decl(objectTypeWithStringNamedNumericProperty.ts, 34, 16)) var r1 = i['0.1']; ->r1 : void +>r1 : void, Symbol(r1, Decl(objectTypeWithStringNamedNumericProperty.ts, 17, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 48, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 78, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 108, 3)) >i['0.1'] : void ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>'0.1' : string, Symbol(I."0.1", Decl(objectTypeWithStringNamedNumericProperty.ts, 36, 13)) var r2 = i['.1']; ->r2 : Object +>r2 : Object, Symbol(r2, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 79, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 109, 3)) >i['.1'] : Object ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>'.1' : string, Symbol(I.".1", Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 16)) var r3 = i['1']; ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >i['1'] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>'1' : string, Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17)) var r3 = c[1]; ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c[1] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>1 : number, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) var r4 = i['1.']; ->r4 : string +>r4 : string, Symbol(r4, Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 52, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 82, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 112, 3)) >i['1.'] : string ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>'1.' : string, Symbol(I."1.", Decl(objectTypeWithStringNamedNumericProperty.ts, 39, 16)) var r3 = c[1.]; // same as indexing by 1 when done numerically ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c[1.] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>1. : number, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) var r5 = i['1..']; ->r5 : boolean +>r5 : boolean, Symbol(r5, Decl(objectTypeWithStringNamedNumericProperty.ts, 23, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 54, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 84, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 114, 3)) >i['1..'] : boolean ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>'1..' : string, Symbol(I."1..", Decl(objectTypeWithStringNamedNumericProperty.ts, 40, 17)) var r6 = i['1.0']; ->r6 : Date +>r6 : Date, Symbol(r6, Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 55, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 85, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 115, 3)) >i['1.0'] : Date ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>'1.0' : string, Symbol(I."1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 41, 19)) var r3 = c[1.0]; // same as indexing by 1 when done numerically ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c[1.0] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>1.0 : number, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) // BUG 823822 var r7 = i[-1]; ->r7 : any +>r7 : any, Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 28, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 59, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 88, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 89, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 118, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 119, 3)) >i[-1] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-1 : number +>1 : number var r7 = i[-1.0]; ->r7 : any +>r7 : any, Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 28, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 59, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 88, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 89, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 118, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 119, 3)) >i[-1.0] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-1.0 : number +>1.0 : number var r8 = i["-1.0"]; ->r8 : RegExp +>r8 : RegExp, Symbol(r8, Decl(objectTypeWithStringNamedNumericProperty.ts, 29, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 60, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 90, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 120, 3)) >i["-1.0"] : RegExp ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>"-1.0" : string, Symbol(I."-1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 16)) var r9 = i["-1"]; ->r9 : Date +>r9 : Date, Symbol(r9, Decl(objectTypeWithStringNamedNumericProperty.ts, 30, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 61, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 91, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 121, 3)) >i["-1"] : Date ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>"-1" : string, Symbol(I."-1", Decl(objectTypeWithStringNamedNumericProperty.ts, 43, 19)) var r10 = i[0x1] ->r10 : number +>r10 : number, Symbol(r10, Decl(objectTypeWithStringNamedNumericProperty.ts, 31, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 62, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 92, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 122, 3)) >i[0x1] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>0x1 : number, Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17)) var r11 = i[-0x1] ->r11 : any +>r11 : any, Symbol(r11, Decl(objectTypeWithStringNamedNumericProperty.ts, 32, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 63, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 93, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 123, 3)) >i[-0x1] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-0x1 : number +>0x1 : number var r12 = i[01] ->r12 : number +>r12 : number, Symbol(r12, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 64, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 94, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 124, 3)) >i[01] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>01 : number, Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17)) var r13 = i[-01] ->r13 : any +>r13 : any, Symbol(r13, Decl(objectTypeWithStringNamedNumericProperty.ts, 34, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 65, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 95, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 125, 3)) >i[-01] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-01 : number +>01 : number var a: { ->a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +>a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; }, Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 67, 3)) "0.1": void; ".1": Object; ->Object : Object +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) "1": number; "1.": string; "1..": boolean; "1.0": Date; ->Date : Date +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) "-1.0": RegExp; ->RegExp : RegExp +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) "-1": Date; ->Date : Date +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } var r1 = a['0.1']; ->r1 : void +>r1 : void, Symbol(r1, Decl(objectTypeWithStringNamedNumericProperty.ts, 17, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 48, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 78, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 108, 3)) >a['0.1'] : void ->a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +>a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; }, Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 67, 3)) +>'0.1' : string, Symbol("0.1", Decl(objectTypeWithStringNamedNumericProperty.ts, 67, 8)) var r2 = a['.1']; ->r2 : Object +>r2 : Object, Symbol(r2, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 79, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 109, 3)) >a['.1'] : Object ->a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +>a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; }, Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 67, 3)) +>'.1' : string, Symbol(".1", Decl(objectTypeWithStringNamedNumericProperty.ts, 68, 16)) var r3 = a['1']; ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >a['1'] : number ->a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +>a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; }, Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 67, 3)) +>'1' : string, Symbol("1", Decl(objectTypeWithStringNamedNumericProperty.ts, 69, 17)) var r3 = c[1]; ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c[1] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>1 : number, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) var r4 = a['1.']; ->r4 : string +>r4 : string, Symbol(r4, Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 52, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 82, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 112, 3)) >a['1.'] : string ->a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +>a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; }, Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 67, 3)) +>'1.' : string, Symbol("1.", Decl(objectTypeWithStringNamedNumericProperty.ts, 70, 16)) var r3 = c[1.]; // same as indexing by 1 when done numerically ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c[1.] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>1. : number, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) var r5 = a['1..']; ->r5 : boolean +>r5 : boolean, Symbol(r5, Decl(objectTypeWithStringNamedNumericProperty.ts, 23, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 54, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 84, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 114, 3)) >a['1..'] : boolean ->a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +>a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; }, Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 67, 3)) +>'1..' : string, Symbol("1..", Decl(objectTypeWithStringNamedNumericProperty.ts, 71, 17)) var r6 = a['1.0']; ->r6 : Date +>r6 : Date, Symbol(r6, Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 55, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 85, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 115, 3)) >a['1.0'] : Date ->a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; } +>a : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": Date; }, Symbol(a, Decl(objectTypeWithStringNamedNumericProperty.ts, 67, 3)) +>'1.0' : string, Symbol("1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 72, 19)) var r3 = c[1.0]; // same as indexing by 1 when done numerically ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c[1.0] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>1.0 : number, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) // BUG 823822 var r7 = i[-1]; ->r7 : any +>r7 : any, Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 28, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 59, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 88, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 89, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 118, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 119, 3)) >i[-1] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-1 : number +>1 : number var r7 = i[-1.0]; ->r7 : any +>r7 : any, Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 28, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 59, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 88, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 89, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 118, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 119, 3)) >i[-1.0] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-1.0 : number +>1.0 : number var r8 = i["-1.0"]; ->r8 : RegExp +>r8 : RegExp, Symbol(r8, Decl(objectTypeWithStringNamedNumericProperty.ts, 29, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 60, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 90, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 120, 3)) >i["-1.0"] : RegExp ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>"-1.0" : string, Symbol(I."-1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 16)) var r9 = i["-1"]; ->r9 : Date +>r9 : Date, Symbol(r9, Decl(objectTypeWithStringNamedNumericProperty.ts, 30, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 61, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 91, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 121, 3)) >i["-1"] : Date ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>"-1" : string, Symbol(I."-1", Decl(objectTypeWithStringNamedNumericProperty.ts, 43, 19)) var r10 = i[0x1] ->r10 : number +>r10 : number, Symbol(r10, Decl(objectTypeWithStringNamedNumericProperty.ts, 31, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 62, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 92, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 122, 3)) >i[0x1] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>0x1 : number, Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17)) var r11 = i[-0x1] ->r11 : any +>r11 : any, Symbol(r11, Decl(objectTypeWithStringNamedNumericProperty.ts, 32, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 63, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 93, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 123, 3)) >i[-0x1] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-0x1 : number +>0x1 : number var r12 = i[01] ->r12 : number +>r12 : number, Symbol(r12, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 64, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 94, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 124, 3)) >i[01] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>01 : number, Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17)) var r13 = i[-01] ->r13 : any +>r13 : any, Symbol(r13, Decl(objectTypeWithStringNamedNumericProperty.ts, 34, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 65, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 95, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 125, 3)) >i[-01] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-01 : number +>01 : number var b = { ->b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +>b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; }, Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 97, 3)) >{ "0.1": null, ".1": new Object(), "1": 1, "1.": "", "1..": true, "1.0": new Date(), "-1.0": /123/, "-1": Date} : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } "0.1": null, >null : void +>null : null ".1": new Object(), >new Object() : Object ->Object : ObjectConstructor +>Object : ObjectConstructor, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) "1": 1, +>1 : number + "1.": "", +>"" : string + "1..": true, +>true : boolean + "1.0": new Date(), >new Date() : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) "-1.0": /123/, +>/123/ : RegExp + "-1": Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) }; var r1 = b['0.1']; ->r1 : void +>r1 : void, Symbol(r1, Decl(objectTypeWithStringNamedNumericProperty.ts, 17, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 48, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 78, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 108, 3)) >b['0.1'] : void ->b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +>b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; }, Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 97, 3)) +>'0.1' : string, Symbol("0.1", Decl(objectTypeWithStringNamedNumericProperty.ts, 97, 9)) var r2 = b['.1']; ->r2 : Object +>r2 : Object, Symbol(r2, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 79, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 109, 3)) >b['.1'] : Object ->b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +>b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; }, Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 97, 3)) +>'.1' : string, Symbol(".1", Decl(objectTypeWithStringNamedNumericProperty.ts, 98, 22)) var r3 = b['1']; ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >b['1'] : number ->b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +>b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; }, Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 97, 3)) +>'1' : string, Symbol("1", Decl(objectTypeWithStringNamedNumericProperty.ts, 99, 23)) var r3 = c[1]; ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c[1] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>1 : number, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) var r4 = b['1.']; ->r4 : string +>r4 : string, Symbol(r4, Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 52, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 82, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 112, 3)) >b['1.'] : string ->b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +>b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; }, Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 97, 3)) +>'1.' : string, Symbol("1.", Decl(objectTypeWithStringNamedNumericProperty.ts, 100, 11)) var r3 = c[1.]; // same as indexing by 1 when done numerically ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c[1.] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>1. : number, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) var r5 = b['1..']; ->r5 : boolean +>r5 : boolean, Symbol(r5, Decl(objectTypeWithStringNamedNumericProperty.ts, 23, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 54, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 84, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 114, 3)) >b['1..'] : boolean ->b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +>b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; }, Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 97, 3)) +>'1..' : string, Symbol("1..", Decl(objectTypeWithStringNamedNumericProperty.ts, 101, 13)) var r6 = b['1.0']; ->r6 : Date +>r6 : Date, Symbol(r6, Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 55, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 85, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 115, 3)) >b['1.0'] : Date ->b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; } +>b : { "1": number; "0.1": void; ".1": Object; "1.": string; "1..": boolean; "1.0": Date; "-1.0": RegExp; "-1": DateConstructor; }, Symbol(b, Decl(objectTypeWithStringNamedNumericProperty.ts, 97, 3)) +>'1.0' : string, Symbol("1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 102, 16)) var r3 = c[1.0]; // same as indexing by 1 when done numerically ->r3 : number +>r3 : number, Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3)) >c[1.0] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3)) +>1.0 : number, Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17)) // BUG 823822 var r7 = i[-1]; ->r7 : any +>r7 : any, Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 28, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 59, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 88, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 89, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 118, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 119, 3)) >i[-1] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-1 : number +>1 : number var r7 = i[-1.0]; ->r7 : any +>r7 : any, Symbol(r7, Decl(objectTypeWithStringNamedNumericProperty.ts, 27, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 28, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 58, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 59, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 88, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 89, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 118, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 119, 3)) >i[-1.0] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-1.0 : number +>1.0 : number var r8 = i["-1.0"]; ->r8 : RegExp +>r8 : RegExp, Symbol(r8, Decl(objectTypeWithStringNamedNumericProperty.ts, 29, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 60, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 90, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 120, 3)) >i["-1.0"] : RegExp ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>"-1.0" : string, Symbol(I."-1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 16)) var r9 = i["-1"]; ->r9 : Date +>r9 : Date, Symbol(r9, Decl(objectTypeWithStringNamedNumericProperty.ts, 30, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 61, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 91, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 121, 3)) >i["-1"] : Date ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>"-1" : string, Symbol(I."-1", Decl(objectTypeWithStringNamedNumericProperty.ts, 43, 19)) var r10 = i[0x1] ->r10 : number +>r10 : number, Symbol(r10, Decl(objectTypeWithStringNamedNumericProperty.ts, 31, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 62, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 92, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 122, 3)) >i[0x1] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>0x1 : number, Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17)) var r11 = i[-0x1] ->r11 : any +>r11 : any, Symbol(r11, Decl(objectTypeWithStringNamedNumericProperty.ts, 32, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 63, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 93, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 123, 3)) >i[-0x1] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-0x1 : number +>0x1 : number var r12 = i[01] ->r12 : number +>r12 : number, Symbol(r12, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 64, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 94, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 124, 3)) >i[01] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) +>01 : number, Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17)) var r13 = i[-01] ->r13 : any +>r13 : any, Symbol(r13, Decl(objectTypeWithStringNamedNumericProperty.ts, 34, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 65, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 95, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 125, 3)) >i[-01] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3)) >-01 : number +>01 : number diff --git a/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.types b/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.types index fce2b03f53f..698014b334c 100644 --- a/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.types +++ b/tests/baselines/reference/objectTypeWithStringNamedPropertyOfIllegalCharacters.types @@ -1,6 +1,6 @@ === tests/cases/conformance/types/members/objectTypeWithStringNamedPropertyOfIllegalCharacters.ts === class C { ->C : C +>C : C, Symbol(C, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 0, 0)) " ": number; "a b": string; @@ -10,32 +10,36 @@ class C { } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 8, 3)) +>C : C, Symbol(C, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 0, 0)) var r = c[" "]; ->r : number +>r : number, Symbol(r, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 9, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 22, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 35, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 47, 3)) >c[" "] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 8, 3)) +>" " : string, Symbol(C." ", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 0, 9)) var r2 = c[" "]; ->r2 : any +>r2 : any, Symbol(r2, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 10, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 23, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 36, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 48, 3)) >c[" "] : any ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 8, 3)) +>" " : string var r3 = c["a b"]; ->r3 : string +>r3 : string, Symbol(r3, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 11, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 24, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 37, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 49, 3)) >c["a b"] : string ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 8, 3)) +>"a b" : string, Symbol(C."a b", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 1, 18)) // BUG 817263 var r4 = c["~!@#$%^&*()_+{}|:'<>?\/.,`"]; ->r4 : number +>r4 : number, Symbol(r4, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 13, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 26, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 39, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 51, 3)) >c["~!@#$%^&*()_+{}|:'<>?\/.,`"] : number ->c : C +>c : C, Symbol(c, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 8, 3)) +>"~!@#$%^&*()_+{}|:'<>?\/.,`" : string, Symbol(C."~!@#$%^&*()_+{}|:'<>?\/.,`", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 2, 20)) interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 13, 41)) " ": number; "a b": string; @@ -43,33 +47,37 @@ interface I { } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 21, 3)) +>I : I, Symbol(I, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 13, 41)) var r = i[" "]; ->r : number +>r : number, Symbol(r, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 9, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 22, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 35, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 47, 3)) >i[" "] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 21, 3)) +>" " : string, Symbol(I." ", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 15, 13)) var r2 = i[" "]; ->r2 : any +>r2 : any, Symbol(r2, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 10, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 23, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 36, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 48, 3)) >i[" "] : any ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 21, 3)) +>" " : string var r3 = i["a b"]; ->r3 : string +>r3 : string, Symbol(r3, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 11, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 24, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 37, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 49, 3)) >i["a b"] : string ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 21, 3)) +>"a b" : string, Symbol(I."a b", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 16, 18)) // BUG 817263 var r4 = i["~!@#$%^&*()_+{}|:'<>?\/.,`"]; ->r4 : number +>r4 : number, Symbol(r4, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 13, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 26, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 39, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 51, 3)) >i["~!@#$%^&*()_+{}|:'<>?\/.,`"] : number ->i : I +>i : I, Symbol(i, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 21, 3)) +>"~!@#$%^&*()_+{}|:'<>?\/.,`" : string, Symbol(I."~!@#$%^&*()_+{}|:'<>?\/.,`", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 17, 20)) var a: { ->a : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; } +>a : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; }, Symbol(a, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 29, 3)) " ": number; "a b": string; @@ -77,53 +85,66 @@ var a: { } var r = a[" "]; ->r : number +>r : number, Symbol(r, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 9, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 22, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 35, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 47, 3)) >a[" "] : number ->a : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; } +>a : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; }, Symbol(a, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 29, 3)) +>" " : string, Symbol(" ", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 29, 8)) var r2 = a[" "]; ->r2 : any +>r2 : any, Symbol(r2, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 10, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 23, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 36, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 48, 3)) >a[" "] : any ->a : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; } +>a : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; }, Symbol(a, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 29, 3)) +>" " : string var r3 = a["a b"]; ->r3 : string +>r3 : string, Symbol(r3, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 11, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 24, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 37, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 49, 3)) >a["a b"] : string ->a : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; } +>a : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; }, Symbol(a, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 29, 3)) +>"a b" : string, Symbol("a b", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 30, 18)) // BUG 817263 var r4 = a["~!@#$%^&*()_+{}|:'<>?\/.,`"]; ->r4 : number +>r4 : number, Symbol(r4, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 13, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 26, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 39, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 51, 3)) >a["~!@#$%^&*()_+{}|:'<>?\/.,`"] : number ->a : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; } +>a : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; }, Symbol(a, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 29, 3)) +>"~!@#$%^&*()_+{}|:'<>?\/.,`" : string, Symbol("~!@#$%^&*()_+{}|:'<>?\/.,`", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 31, 20)) var b = { ->b : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; } +>b : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; }, Symbol(b, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 41, 3)) >{ " ": 1, "a b": "", "~!@#$%^&*()_+{}|:'<>?\/.,`": 1,} : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; } " ": 1, +>1 : number + "a b": "", +>"" : string + "~!@#$%^&*()_+{}|:'<>?\/.,`": 1, +>1 : number } var r = b[" "]; ->r : number +>r : number, Symbol(r, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 9, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 22, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 35, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 47, 3)) >b[" "] : number ->b : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; } +>b : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; }, Symbol(b, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 41, 3)) +>" " : string, Symbol(" ", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 41, 9)) var r2 = b[" "]; ->r2 : any +>r2 : any, Symbol(r2, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 10, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 23, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 36, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 48, 3)) >b[" "] : any ->b : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; } +>b : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; }, Symbol(b, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 41, 3)) +>" " : string var r3 = b["a b"]; ->r3 : string +>r3 : string, Symbol(r3, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 11, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 24, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 37, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 49, 3)) >b["a b"] : string ->b : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; } +>b : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; }, Symbol(b, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 41, 3)) +>"a b" : string, Symbol("a b", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 42, 13)) // BUG 817263 var r4 = b["~!@#$%^&*()_+{}|:'<>?\/.,`"]; ->r4 : number +>r4 : number, Symbol(r4, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 13, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 26, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 39, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 51, 3)) >b["~!@#$%^&*()_+{}|:'<>?\/.,`"] : number ->b : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; } +>b : { " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?\/.,`": number; }, Symbol(b, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 41, 3)) +>"~!@#$%^&*()_+{}|:'<>?\/.,`" : string, Symbol("~!@#$%^&*()_+{}|:'<>?\/.,`", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 43, 16)) diff --git a/tests/baselines/reference/objectTypesIdentity.types b/tests/baselines/reference/objectTypesIdentity.types index c148c4223ed..10bb1ea7080 100644 --- a/tests/baselines/reference/objectTypesIdentity.types +++ b/tests/baselines/reference/objectTypesIdentity.types @@ -2,279 +2,280 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentity.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentity.ts, 2, 9)) } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentity.ts, 4, 1)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentity.ts, 6, 9)) } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentity.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentity.ts, 10, 8)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(objectTypesIdentity.ts, 10, 12)) +>T : T, Symbol(T, Decl(objectTypesIdentity.ts, 10, 8)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentity.ts, 12, 1)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentity.ts, 14, 13)) } var a: { foo: string; } ->a : { foo: string; } ->foo : string +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentity.ts, 18, 3)) +>foo : string, Symbol(foo, Decl(objectTypesIdentity.ts, 18, 8)) var b = { foo: '' }; ->b : { foo: string; } +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentity.ts, 19, 3)) >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentity.ts, 19, 9)) +>'' : string function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentity.ts, 19, 20), Decl(objectTypesIdentity.ts, 21, 20), Decl(objectTypesIdentity.ts, 22, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentity.ts, 21, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentity.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentity.ts, 19, 20), Decl(objectTypesIdentity.ts, 21, 20), Decl(objectTypesIdentity.ts, 22, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentity.ts, 22, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentity.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentity.ts, 19, 20), Decl(objectTypesIdentity.ts, 21, 20), Decl(objectTypesIdentity.ts, 22, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 23, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentity.ts, 23, 25), Decl(objectTypesIdentity.ts, 25, 21), Decl(objectTypesIdentity.ts, 26, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentity.ts, 25, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentity.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentity.ts, 23, 25), Decl(objectTypesIdentity.ts, 25, 21), Decl(objectTypesIdentity.ts, 26, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentity.ts, 26, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentity.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentity.ts, 23, 25), Decl(objectTypesIdentity.ts, 25, 21), Decl(objectTypesIdentity.ts, 26, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 27, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentity.ts, 27, 26), Decl(objectTypesIdentity.ts, 29, 29), Decl(objectTypesIdentity.ts, 30, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentity.ts, 29, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentity.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentity.ts, 27, 26), Decl(objectTypesIdentity.ts, 29, 29), Decl(objectTypesIdentity.ts, 30, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentity.ts, 30, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentity.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentity.ts, 27, 26), Decl(objectTypesIdentity.ts, 29, 29), Decl(objectTypesIdentity.ts, 30, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 31, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentity.ts, 31, 26), Decl(objectTypesIdentity.ts, 33, 20), Decl(objectTypesIdentity.ts, 34, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentity.ts, 33, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentity.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentity.ts, 31, 26), Decl(objectTypesIdentity.ts, 33, 20), Decl(objectTypesIdentity.ts, 34, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentity.ts, 34, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentity.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentity.ts, 31, 26), Decl(objectTypesIdentity.ts, 33, 20), Decl(objectTypesIdentity.ts, 34, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 35, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentity.ts, 35, 25), Decl(objectTypesIdentity.ts, 37, 27), Decl(objectTypesIdentity.ts, 38, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentity.ts, 37, 14)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentity.ts, 18, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentity.ts, 35, 25), Decl(objectTypesIdentity.ts, 37, 27), Decl(objectTypesIdentity.ts, 38, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentity.ts, 38, 14)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentity.ts, 18, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : any +>foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentity.ts, 35, 25), Decl(objectTypesIdentity.ts, 37, 27), Decl(objectTypesIdentity.ts, 38, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 39, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentity.ts, 39, 25), Decl(objectTypesIdentity.ts, 41, 27), Decl(objectTypesIdentity.ts, 42, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentity.ts, 41, 14)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentity.ts, 19, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentity.ts, 39, 25), Decl(objectTypesIdentity.ts, 41, 27), Decl(objectTypesIdentity.ts, 42, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentity.ts, 42, 14)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentity.ts, 19, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : any +>foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentity.ts, 39, 25), Decl(objectTypesIdentity.ts, 41, 27), Decl(objectTypesIdentity.ts, 42, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 43, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentity.ts, 43, 25), Decl(objectTypesIdentity.ts, 45, 20), Decl(objectTypesIdentity.ts, 46, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentity.ts, 45, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentity.ts, 0, 0)) function foo5(x: B); // error ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentity.ts, 43, 25), Decl(objectTypesIdentity.ts, 45, 20), Decl(objectTypesIdentity.ts, 46, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentity.ts, 46, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentity.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentity.ts, 43, 25), Decl(objectTypesIdentity.ts, 45, 20), Decl(objectTypesIdentity.ts, 46, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 47, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentity.ts, 47, 25), Decl(objectTypesIdentity.ts, 49, 21), Decl(objectTypesIdentity.ts, 50, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentity.ts, 49, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentity.ts, 0, 0)) function foo5b(x: C); // error ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentity.ts, 47, 25), Decl(objectTypesIdentity.ts, 49, 21), Decl(objectTypesIdentity.ts, 50, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentity.ts, 50, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentity.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentity.ts, 47, 25), Decl(objectTypesIdentity.ts, 49, 21), Decl(objectTypesIdentity.ts, 50, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 51, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentity.ts, 51, 26), Decl(objectTypesIdentity.ts, 53, 20), Decl(objectTypesIdentity.ts, 54, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentity.ts, 53, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentity.ts, 0, 0)) function foo6(x: I); // error ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentity.ts, 51, 26), Decl(objectTypesIdentity.ts, 53, 20), Decl(objectTypesIdentity.ts, 54, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentity.ts, 54, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentity.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentity.ts, 51, 26), Decl(objectTypesIdentity.ts, 53, 20), Decl(objectTypesIdentity.ts, 54, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 55, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo: string; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentity.ts, 55, 25), Decl(objectTypesIdentity.ts, 57, 20), Decl(objectTypesIdentity.ts, 58, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentity.ts, 57, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentity.ts, 0, 0)) function foo7(x: typeof a); // error ->foo7 : { (x: A): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo7 : { (x: A): any; (x: { foo: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentity.ts, 55, 25), Decl(objectTypesIdentity.ts, 57, 20), Decl(objectTypesIdentity.ts, 58, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentity.ts, 58, 14)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentity.ts, 18, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo: string; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentity.ts, 55, 25), Decl(objectTypesIdentity.ts, 57, 20), Decl(objectTypesIdentity.ts, 58, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 59, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentity.ts, 59, 25), Decl(objectTypesIdentity.ts, 61, 20), Decl(objectTypesIdentity.ts, 62, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentity.ts, 61, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentity.ts, 4, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentity.ts, 59, 25), Decl(objectTypesIdentity.ts, 61, 20), Decl(objectTypesIdentity.ts, 62, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentity.ts, 62, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentity.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentity.ts, 59, 25), Decl(objectTypesIdentity.ts, 61, 20), Decl(objectTypesIdentity.ts, 62, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 63, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentity.ts, 63, 25), Decl(objectTypesIdentity.ts, 65, 20), Decl(objectTypesIdentity.ts, 66, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentity.ts, 65, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentity.ts, 4, 1)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentity.ts, 63, 25), Decl(objectTypesIdentity.ts, 65, 20), Decl(objectTypesIdentity.ts, 66, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentity.ts, 66, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentity.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentity.ts, 63, 25), Decl(objectTypesIdentity.ts, 65, 20), Decl(objectTypesIdentity.ts, 66, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 67, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo: string; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentity.ts, 67, 25), Decl(objectTypesIdentity.ts, 69, 21), Decl(objectTypesIdentity.ts, 70, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentity.ts, 69, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentity.ts, 4, 1)) function foo10(x: typeof a); // error ->foo10 : { (x: B): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo10 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentity.ts, 67, 25), Decl(objectTypesIdentity.ts, 69, 21), Decl(objectTypesIdentity.ts, 70, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentity.ts, 70, 15)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentity.ts, 18, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo: string; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentity.ts, 67, 25), Decl(objectTypesIdentity.ts, 69, 21), Decl(objectTypesIdentity.ts, 70, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 71, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo: string; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentity.ts, 71, 26), Decl(objectTypesIdentity.ts, 73, 21), Decl(objectTypesIdentity.ts, 74, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentity.ts, 73, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentity.ts, 4, 1)) function foo11(x: typeof b); // error ->foo11 : { (x: B): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo11 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentity.ts, 71, 26), Decl(objectTypesIdentity.ts, 73, 21), Decl(objectTypesIdentity.ts, 74, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentity.ts, 74, 15)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentity.ts, 19, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo: string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentity.ts, 71, 26), Decl(objectTypesIdentity.ts, 73, 21), Decl(objectTypesIdentity.ts, 74, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 75, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentity.ts, 75, 26), Decl(objectTypesIdentity.ts, 77, 21), Decl(objectTypesIdentity.ts, 78, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentity.ts, 77, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentity.ts, 12, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentity.ts, 75, 26), Decl(objectTypesIdentity.ts, 77, 21), Decl(objectTypesIdentity.ts, 78, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentity.ts, 78, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentity.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentity.ts, 75, 26), Decl(objectTypesIdentity.ts, 77, 21), Decl(objectTypesIdentity.ts, 78, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 79, 15)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo: string; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentity.ts, 79, 26), Decl(objectTypesIdentity.ts, 81, 21), Decl(objectTypesIdentity.ts, 82, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentity.ts, 81, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentity.ts, 12, 1)) function foo13(x: typeof a); // error ->foo13 : { (x: I): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo13 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentity.ts, 79, 26), Decl(objectTypesIdentity.ts, 81, 21), Decl(objectTypesIdentity.ts, 82, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentity.ts, 82, 15)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentity.ts, 18, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo: string; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentity.ts, 79, 26), Decl(objectTypesIdentity.ts, 81, 21), Decl(objectTypesIdentity.ts, 82, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 83, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo: string; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentity.ts, 83, 26), Decl(objectTypesIdentity.ts, 85, 21), Decl(objectTypesIdentity.ts, 86, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentity.ts, 85, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentity.ts, 12, 1)) function foo14(x: typeof b); // error ->foo14 : { (x: I): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo14 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentity.ts, 83, 26), Decl(objectTypesIdentity.ts, 85, 21), Decl(objectTypesIdentity.ts, 86, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentity.ts, 86, 15)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentity.ts, 19, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo: string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentity.ts, 83, 26), Decl(objectTypesIdentity.ts, 85, 21), Decl(objectTypesIdentity.ts, 86, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentity.ts, 87, 15)) diff --git a/tests/baselines/reference/objectTypesIdentity2.types b/tests/baselines/reference/objectTypesIdentity2.types index 1969d55bd11..f51b59cb98f 100644 --- a/tests/baselines/reference/objectTypesIdentity2.types +++ b/tests/baselines/reference/objectTypesIdentity2.types @@ -2,204 +2,204 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentity2.ts, 0, 0)) foo: number; ->foo : number +>foo : number, Symbol(foo, Decl(objectTypesIdentity2.ts, 2, 9)) } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentity2.ts, 4, 1)) foo: boolean; ->foo : boolean +>foo : boolean, Symbol(foo, Decl(objectTypesIdentity2.ts, 6, 9)) } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentity2.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentity2.ts, 10, 8)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(objectTypesIdentity2.ts, 10, 12)) +>T : T, Symbol(T, Decl(objectTypesIdentity2.ts, 10, 8)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentity2.ts, 12, 1)) foo: Date; ->foo : Date ->Date : Date +>foo : Date, Symbol(foo, Decl(objectTypesIdentity2.ts, 14, 13)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } var a: { foo: RegExp; } ->a : { foo: RegExp; } ->foo : RegExp ->RegExp : RegExp +>a : { foo: RegExp; }, Symbol(a, Decl(objectTypesIdentity2.ts, 18, 3)) +>foo : RegExp, Symbol(foo, Decl(objectTypesIdentity2.ts, 18, 8)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) enum E { A } ->E : E ->A : E +>E : E, Symbol(E, Decl(objectTypesIdentity2.ts, 18, 23)) +>A : E, Symbol(E.A, Decl(objectTypesIdentity2.ts, 19, 8)) var b = { foo: E.A }; ->b : { foo: E; } +>b : { foo: E; }, Symbol(b, Decl(objectTypesIdentity2.ts, 20, 3)) >{ foo: E.A } : { foo: E; } ->foo : E ->E.A : E ->E : typeof E ->A : E +>foo : E, Symbol(foo, Decl(objectTypesIdentity2.ts, 20, 9)) +>E.A : E, Symbol(E.A, Decl(objectTypesIdentity2.ts, 19, 8)) +>E : typeof E, Symbol(E, Decl(objectTypesIdentity2.ts, 18, 23)) +>A : E, Symbol(E.A, Decl(objectTypesIdentity2.ts, 19, 8)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentity2.ts, 20, 21), Decl(objectTypesIdentity2.ts, 22, 20), Decl(objectTypesIdentity2.ts, 23, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentity2.ts, 22, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentity2.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentity2.ts, 20, 21), Decl(objectTypesIdentity2.ts, 22, 20), Decl(objectTypesIdentity2.ts, 23, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentity2.ts, 23, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentity2.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentity2.ts, 20, 21), Decl(objectTypesIdentity2.ts, 22, 20), Decl(objectTypesIdentity2.ts, 23, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentity2.ts, 24, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentity2.ts, 24, 25), Decl(objectTypesIdentity2.ts, 26, 21), Decl(objectTypesIdentity2.ts, 27, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentity2.ts, 26, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentity2.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentity2.ts, 24, 25), Decl(objectTypesIdentity2.ts, 26, 21), Decl(objectTypesIdentity2.ts, 27, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentity2.ts, 27, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentity2.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentity2.ts, 24, 25), Decl(objectTypesIdentity2.ts, 26, 21), Decl(objectTypesIdentity2.ts, 27, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentity2.ts, 28, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentity2.ts, 28, 26), Decl(objectTypesIdentity2.ts, 30, 20), Decl(objectTypesIdentity2.ts, 31, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentity2.ts, 30, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentity2.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentity2.ts, 28, 26), Decl(objectTypesIdentity2.ts, 30, 20), Decl(objectTypesIdentity2.ts, 31, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentity2.ts, 31, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentity2.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentity2.ts, 28, 26), Decl(objectTypesIdentity2.ts, 30, 20), Decl(objectTypesIdentity2.ts, 31, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentity2.ts, 32, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo: RegExp; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo: RegExp; }): any; }, Symbol(foo7, Decl(objectTypesIdentity2.ts, 32, 25), Decl(objectTypesIdentity2.ts, 34, 20), Decl(objectTypesIdentity2.ts, 35, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentity2.ts, 34, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentity2.ts, 0, 0)) function foo7(x: typeof a); // ok ->foo7 : { (x: A): any; (x: { foo: RegExp; }): any; } ->x : { foo: RegExp; } ->a : { foo: RegExp; } +>foo7 : { (x: A): any; (x: { foo: RegExp; }): any; }, Symbol(foo7, Decl(objectTypesIdentity2.ts, 32, 25), Decl(objectTypesIdentity2.ts, 34, 20), Decl(objectTypesIdentity2.ts, 35, 27)) +>x : { foo: RegExp; }, Symbol(x, Decl(objectTypesIdentity2.ts, 35, 14)) +>a : { foo: RegExp; }, Symbol(a, Decl(objectTypesIdentity2.ts, 18, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo: RegExp; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo: RegExp; }): any; }, Symbol(foo7, Decl(objectTypesIdentity2.ts, 32, 25), Decl(objectTypesIdentity2.ts, 34, 20), Decl(objectTypesIdentity2.ts, 35, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentity2.ts, 36, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentity2.ts, 36, 25), Decl(objectTypesIdentity2.ts, 38, 20), Decl(objectTypesIdentity2.ts, 39, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentity2.ts, 38, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentity2.ts, 4, 1)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentity2.ts, 36, 25), Decl(objectTypesIdentity2.ts, 38, 20), Decl(objectTypesIdentity2.ts, 39, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentity2.ts, 39, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentity2.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentity2.ts, 36, 25), Decl(objectTypesIdentity2.ts, 38, 20), Decl(objectTypesIdentity2.ts, 39, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentity2.ts, 40, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentity2.ts, 40, 25), Decl(objectTypesIdentity2.ts, 42, 20), Decl(objectTypesIdentity2.ts, 43, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentity2.ts, 42, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentity2.ts, 4, 1)) function foo9(x: C); // ok ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentity2.ts, 40, 25), Decl(objectTypesIdentity2.ts, 42, 20), Decl(objectTypesIdentity2.ts, 43, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentity2.ts, 43, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentity2.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentity2.ts, 40, 25), Decl(objectTypesIdentity2.ts, 42, 20), Decl(objectTypesIdentity2.ts, 43, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentity2.ts, 44, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo: RegExp; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo: RegExp; }): any; }, Symbol(foo10, Decl(objectTypesIdentity2.ts, 44, 25), Decl(objectTypesIdentity2.ts, 46, 21), Decl(objectTypesIdentity2.ts, 47, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentity2.ts, 46, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentity2.ts, 4, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo: RegExp; }): any; } ->x : { foo: RegExp; } ->a : { foo: RegExp; } +>foo10 : { (x: B): any; (x: { foo: RegExp; }): any; }, Symbol(foo10, Decl(objectTypesIdentity2.ts, 44, 25), Decl(objectTypesIdentity2.ts, 46, 21), Decl(objectTypesIdentity2.ts, 47, 28)) +>x : { foo: RegExp; }, Symbol(x, Decl(objectTypesIdentity2.ts, 47, 15)) +>a : { foo: RegExp; }, Symbol(a, Decl(objectTypesIdentity2.ts, 18, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo: RegExp; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo: RegExp; }): any; }, Symbol(foo10, Decl(objectTypesIdentity2.ts, 44, 25), Decl(objectTypesIdentity2.ts, 46, 21), Decl(objectTypesIdentity2.ts, 47, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentity2.ts, 48, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo: E; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo: E; }): any; }, Symbol(foo11, Decl(objectTypesIdentity2.ts, 48, 26), Decl(objectTypesIdentity2.ts, 50, 21), Decl(objectTypesIdentity2.ts, 51, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentity2.ts, 50, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentity2.ts, 4, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo: E; }): any; } ->x : { foo: E; } ->b : { foo: E; } +>foo11 : { (x: B): any; (x: { foo: E; }): any; }, Symbol(foo11, Decl(objectTypesIdentity2.ts, 48, 26), Decl(objectTypesIdentity2.ts, 50, 21), Decl(objectTypesIdentity2.ts, 51, 28)) +>x : { foo: E; }, Symbol(x, Decl(objectTypesIdentity2.ts, 51, 15)) +>b : { foo: E; }, Symbol(b, Decl(objectTypesIdentity2.ts, 20, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo: E; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo: E; }): any; }, Symbol(foo11, Decl(objectTypesIdentity2.ts, 48, 26), Decl(objectTypesIdentity2.ts, 50, 21), Decl(objectTypesIdentity2.ts, 51, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentity2.ts, 52, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentity2.ts, 52, 26), Decl(objectTypesIdentity2.ts, 54, 21), Decl(objectTypesIdentity2.ts, 55, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentity2.ts, 54, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentity2.ts, 12, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentity2.ts, 52, 26), Decl(objectTypesIdentity2.ts, 54, 21), Decl(objectTypesIdentity2.ts, 55, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentity2.ts, 55, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentity2.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentity2.ts, 52, 26), Decl(objectTypesIdentity2.ts, 54, 21), Decl(objectTypesIdentity2.ts, 55, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentity2.ts, 56, 15)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo: RegExp; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo: RegExp; }): any; }, Symbol(foo13, Decl(objectTypesIdentity2.ts, 56, 26), Decl(objectTypesIdentity2.ts, 58, 21), Decl(objectTypesIdentity2.ts, 59, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentity2.ts, 58, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentity2.ts, 12, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo: RegExp; }): any; } ->x : { foo: RegExp; } ->a : { foo: RegExp; } +>foo13 : { (x: I): any; (x: { foo: RegExp; }): any; }, Symbol(foo13, Decl(objectTypesIdentity2.ts, 56, 26), Decl(objectTypesIdentity2.ts, 58, 21), Decl(objectTypesIdentity2.ts, 59, 28)) +>x : { foo: RegExp; }, Symbol(x, Decl(objectTypesIdentity2.ts, 59, 15)) +>a : { foo: RegExp; }, Symbol(a, Decl(objectTypesIdentity2.ts, 18, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo: RegExp; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo: RegExp; }): any; }, Symbol(foo13, Decl(objectTypesIdentity2.ts, 56, 26), Decl(objectTypesIdentity2.ts, 58, 21), Decl(objectTypesIdentity2.ts, 59, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentity2.ts, 60, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo: E; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo: E; }): any; }, Symbol(foo14, Decl(objectTypesIdentity2.ts, 60, 26), Decl(objectTypesIdentity2.ts, 62, 21), Decl(objectTypesIdentity2.ts, 63, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentity2.ts, 62, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentity2.ts, 12, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo: E; }): any; } ->x : { foo: E; } ->b : { foo: E; } +>foo14 : { (x: I): any; (x: { foo: E; }): any; }, Symbol(foo14, Decl(objectTypesIdentity2.ts, 60, 26), Decl(objectTypesIdentity2.ts, 62, 21), Decl(objectTypesIdentity2.ts, 63, 28)) +>x : { foo: E; }, Symbol(x, Decl(objectTypesIdentity2.ts, 63, 15)) +>b : { foo: E; }, Symbol(b, Decl(objectTypesIdentity2.ts, 20, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo: E; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo: E; }): any; }, Symbol(foo14, Decl(objectTypesIdentity2.ts, 60, 26), Decl(objectTypesIdentity2.ts, 62, 21), Decl(objectTypesIdentity2.ts, 63, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentity2.ts, 64, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignatures.types b/tests/baselines/reference/objectTypesIdentityWithCallSignatures.types index efe7e32f5d7..7c3b36091c2 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignatures.types +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignatures.types @@ -2,325 +2,329 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures.ts, 0, 0)) foo(x: string): string { return null; } ->foo : (x: string) => string ->x : string +>foo : (x: string) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures.ts, 2, 9)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 3, 8)) +>null : null } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures.ts, 4, 1)) foo(x: string): string { return null; } ->foo : (x: string) => string ->x : string +>foo : (x: string) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures.ts, 6, 9)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 7, 8)) +>null : null } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignatures.ts, 10, 8)) foo(x: T): T { return null; } ->foo : (x: T) => T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures.ts, 10, 12)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 11, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignatures.ts, 10, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignatures.ts, 10, 8)) +>null : null } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures.ts, 12, 1)) foo(x: string): string; ->foo : (x: string) => string ->x : string +>foo : (x: string) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures.ts, 14, 13)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 15, 8)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignatures.ts, 16, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignatures.ts, 18, 13)) foo(x: T): T; ->foo : (x: T) => T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures.ts, 18, 17)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 19, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignatures.ts, 18, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignatures.ts, 18, 13)) } var a: { foo(x: string): string } ->a : { foo(x: string): string; } ->foo : (x: string) => string ->x : string +>a : { foo(x: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignatures.ts, 22, 3)) +>foo : (x: string) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures.ts, 22, 8)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 22, 13)) var b = { foo(x: string) { return ''; } }; ->b : { foo(x: string): string; } +>b : { foo(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignatures.ts, 23, 3)) >{ foo(x: string) { return ''; } } : { foo(x: string): string; } ->foo : (x: string) => string ->x : string +>foo : (x: string) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures.ts, 23, 9)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 23, 14)) +>'' : string function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithCallSignatures.ts, 23, 42), Decl(objectTypesIdentityWithCallSignatures.ts, 25, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 25, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithCallSignatures.ts, 23, 42), Decl(objectTypesIdentityWithCallSignatures.ts, 25, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 26, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithCallSignatures.ts, 23, 42), Decl(objectTypesIdentityWithCallSignatures.ts, 25, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 26, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 27, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithCallSignatures.ts, 27, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 29, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 30, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 29, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithCallSignatures.ts, 27, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 29, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 30, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 30, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithCallSignatures.ts, 27, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 29, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 30, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 31, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithCallSignatures.ts, 31, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 33, 29), Decl(objectTypesIdentityWithCallSignatures.ts, 34, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 33, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithCallSignatures.ts, 31, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 33, 29), Decl(objectTypesIdentityWithCallSignatures.ts, 34, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 34, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithCallSignatures.ts, 31, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 33, 29), Decl(objectTypesIdentityWithCallSignatures.ts, 34, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 35, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignatures.ts, 35, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 37, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 38, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 37, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignatures.ts, 35, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 37, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 38, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 38, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignatures.ts, 35, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 37, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 38, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 39, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->a : { foo(x: string): string; } +>foo3 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignatures.ts, 39, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 41, 27), Decl(objectTypesIdentityWithCallSignatures.ts, 42, 27)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 41, 14)) +>a : { foo(x: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignatures.ts, 22, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->a : { foo(x: string): string; } +>foo3 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignatures.ts, 39, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 41, 27), Decl(objectTypesIdentityWithCallSignatures.ts, 42, 27)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 42, 14)) +>a : { foo(x: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignatures.ts, 22, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; } ->x : any +>foo3 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignatures.ts, 39, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 41, 27), Decl(objectTypesIdentityWithCallSignatures.ts, 42, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 43, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->b : { foo(x: string): string; } +>foo4 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignatures.ts, 43, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 45, 27), Decl(objectTypesIdentityWithCallSignatures.ts, 46, 27)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 45, 14)) +>b : { foo(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignatures.ts, 23, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->b : { foo(x: string): string; } +>foo4 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignatures.ts, 43, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 45, 27), Decl(objectTypesIdentityWithCallSignatures.ts, 46, 27)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 46, 14)) +>b : { foo(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignatures.ts, 23, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; } ->x : any +>foo4 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignatures.ts, 43, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 45, 27), Decl(objectTypesIdentityWithCallSignatures.ts, 46, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 47, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignatures.ts, 47, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 49, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 50, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 49, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures.ts, 0, 0)) function foo5(x: B); // error ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignatures.ts, 47, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 49, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 50, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 50, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignatures.ts, 47, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 49, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 50, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 51, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithCallSignatures.ts, 51, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 53, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 54, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 53, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures.ts, 0, 0)) function foo5b(x: C); // error ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithCallSignatures.ts, 51, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 53, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 54, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 54, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithCallSignatures.ts, 51, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 53, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 54, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 55, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithCallSignatures.ts, 55, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 57, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 58, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 57, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures.ts, 0, 0)) function foo6(x: I); // error ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithCallSignatures.ts, 55, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 57, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 58, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 58, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithCallSignatures.ts, 55, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 57, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 58, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 59, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: string): string; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: string): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithCallSignatures.ts, 59, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 61, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 62, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 61, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures.ts, 0, 0)) function foo7(x: typeof a); // error ->foo7 : { (x: A): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->a : { foo(x: string): string; } +>foo7 : { (x: A): any; (x: { foo(x: string): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithCallSignatures.ts, 59, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 61, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 62, 27)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 62, 14)) +>a : { foo(x: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignatures.ts, 22, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: string): string; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: string): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithCallSignatures.ts, 59, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 61, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 62, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 63, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithCallSignatures.ts, 63, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 65, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 66, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 65, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures.ts, 4, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithCallSignatures.ts, 63, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 65, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 66, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 66, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithCallSignatures.ts, 63, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 65, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 66, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 67, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithCallSignatures.ts, 67, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 69, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 70, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 69, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures.ts, 4, 1)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithCallSignatures.ts, 67, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 69, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 70, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 70, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithCallSignatures.ts, 67, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 69, 20), Decl(objectTypesIdentityWithCallSignatures.ts, 70, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 71, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: string): string; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo(x: string): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithCallSignatures.ts, 71, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 73, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 74, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 73, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures.ts, 4, 1)) function foo10(x: typeof a); // error ->foo10 : { (x: B): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->a : { foo(x: string): string; } +>foo10 : { (x: B): any; (x: { foo(x: string): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithCallSignatures.ts, 71, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 73, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 74, 28)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 74, 15)) +>a : { foo(x: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignatures.ts, 22, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: string): string; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: string): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithCallSignatures.ts, 71, 25), Decl(objectTypesIdentityWithCallSignatures.ts, 73, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 74, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 75, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: string): string; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo(x: string): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithCallSignatures.ts, 75, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 77, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 78, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 77, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures.ts, 4, 1)) function foo11(x: typeof b); // error ->foo11 : { (x: B): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->b : { foo(x: string): string; } +>foo11 : { (x: B): any; (x: { foo(x: string): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithCallSignatures.ts, 75, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 77, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 78, 28)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 78, 15)) +>b : { foo(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignatures.ts, 23, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: string): string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: string): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithCallSignatures.ts, 75, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 77, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 78, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 79, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithCallSignatures.ts, 79, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 81, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 82, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 81, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures.ts, 12, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithCallSignatures.ts, 79, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 81, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 82, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 82, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithCallSignatures.ts, 79, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 81, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 82, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 83, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithCallSignatures.ts, 83, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 85, 31), Decl(objectTypesIdentityWithCallSignatures.ts, 86, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 85, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignatures.ts, 16, 1)) function foo12b(x: C); // error ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithCallSignatures.ts, 83, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 85, 31), Decl(objectTypesIdentityWithCallSignatures.ts, 86, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 86, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures.ts, 8, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithCallSignatures.ts, 83, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 85, 31), Decl(objectTypesIdentityWithCallSignatures.ts, 86, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 87, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: string): string; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo(x: string): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignatures.ts, 87, 27), Decl(objectTypesIdentityWithCallSignatures.ts, 89, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 90, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 89, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures.ts, 12, 1)) function foo13(x: typeof a); // error ->foo13 : { (x: I): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->a : { foo(x: string): string; } +>foo13 : { (x: I): any; (x: { foo(x: string): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignatures.ts, 87, 27), Decl(objectTypesIdentityWithCallSignatures.ts, 89, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 90, 28)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 90, 15)) +>a : { foo(x: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignatures.ts, 22, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: string): string; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: string): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignatures.ts, 87, 27), Decl(objectTypesIdentityWithCallSignatures.ts, 89, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 90, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 91, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: string): string; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo(x: string): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignatures.ts, 91, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 93, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 94, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 93, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures.ts, 12, 1)) function foo14(x: typeof b); // error ->foo14 : { (x: I): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->b : { foo(x: string): string; } +>foo14 : { (x: I): any; (x: { foo(x: string): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignatures.ts, 91, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 93, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 94, 28)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 94, 15)) +>b : { foo(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignatures.ts, 23, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: string): string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: string): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignatures.ts, 91, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 93, 21), Decl(objectTypesIdentityWithCallSignatures.ts, 94, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 95, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignatures.ts, 95, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 97, 30), Decl(objectTypesIdentityWithCallSignatures.ts, 98, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 97, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignatures.ts, 16, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignatures.ts, 95, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 97, 30), Decl(objectTypesIdentityWithCallSignatures.ts, 98, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 98, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures.ts, 8, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignatures.ts, 95, 26), Decl(objectTypesIdentityWithCallSignatures.ts, 97, 30), Decl(objectTypesIdentityWithCallSignatures.ts, 98, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures.ts, 99, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.types b/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.types index 9004a267691..a4451c3923d 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.types +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.types @@ -2,327 +2,331 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures2.ts, 0, 0)) foo(x: string): string { return null; } ->foo : (x: string) => string ->x : string +>foo : (x: string) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures2.ts, 2, 9)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 3, 8)) +>null : null } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures2.ts, 4, 1)) foo(x: number): string { return null; } ->foo : (x: number) => string ->x : number +>foo : (x: number) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures2.ts, 6, 9)) +>x : number, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 7, 8)) +>null : null } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures2.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignatures2.ts, 10, 8)) foo(x: T): T { return null; } ->foo : (x: T) => T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures2.ts, 10, 12)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 11, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignatures2.ts, 10, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignatures2.ts, 10, 8)) +>null : null } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures2.ts, 12, 1)) foo(x: boolean): string; ->foo : (x: boolean) => string ->x : boolean +>foo : (x: boolean) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures2.ts, 14, 13)) +>x : boolean, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 15, 8)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignatures2.ts, 16, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignatures2.ts, 18, 13)) foo(x: T): T; ->foo : (x: T) => T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures2.ts, 18, 17)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 19, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignatures2.ts, 18, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignatures2.ts, 18, 13)) } var a: { foo(x: Date): string } ->a : { foo(x: Date): string; } ->foo : (x: Date) => string ->x : Date ->Date : Date +>a : { foo(x: Date): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignatures2.ts, 22, 3)) +>foo : (x: Date) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures2.ts, 22, 8)) +>x : Date, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 22, 13)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var b = { foo(x: RegExp) { return ''; } }; ->b : { foo(x: RegExp): string; } +>b : { foo(x: RegExp): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignatures2.ts, 23, 3)) >{ foo(x: RegExp) { return ''; } } : { foo(x: RegExp): string; } ->foo : (x: RegExp) => string ->x : RegExp ->RegExp : RegExp +>foo : (x: RegExp) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignatures2.ts, 23, 9)) +>x : RegExp, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 23, 14)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) +>'' : string function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithCallSignatures2.ts, 23, 42), Decl(objectTypesIdentityWithCallSignatures2.ts, 25, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 25, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures2.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithCallSignatures2.ts, 23, 42), Decl(objectTypesIdentityWithCallSignatures2.ts, 25, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 26, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures2.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithCallSignatures2.ts, 23, 42), Decl(objectTypesIdentityWithCallSignatures2.ts, 25, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 26, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 27, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithCallSignatures2.ts, 27, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 29, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 30, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 29, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures2.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithCallSignatures2.ts, 27, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 29, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 30, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 30, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures2.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithCallSignatures2.ts, 27, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 29, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 30, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 31, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithCallSignatures2.ts, 31, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 33, 29), Decl(objectTypesIdentityWithCallSignatures2.ts, 34, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 33, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures2.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithCallSignatures2.ts, 31, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 33, 29), Decl(objectTypesIdentityWithCallSignatures2.ts, 34, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 34, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures2.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithCallSignatures2.ts, 31, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 33, 29), Decl(objectTypesIdentityWithCallSignatures2.ts, 34, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 35, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignatures2.ts, 35, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 37, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 38, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 37, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures2.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignatures2.ts, 35, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 37, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 38, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 38, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures2.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignatures2.ts, 35, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 37, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 38, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 39, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: Date): string; }): any; (x: { foo(x: Date): string; }): any; } ->x : { foo(x: Date): string; } ->a : { foo(x: Date): string; } +>foo3 : { (x: { foo(x: Date): string; }): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignatures2.ts, 39, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 41, 27), Decl(objectTypesIdentityWithCallSignatures2.ts, 42, 27)) +>x : { foo(x: Date): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 41, 14)) +>a : { foo(x: Date): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignatures2.ts, 22, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: Date): string; }): any; (x: { foo(x: Date): string; }): any; } ->x : { foo(x: Date): string; } ->a : { foo(x: Date): string; } +>foo3 : { (x: { foo(x: Date): string; }): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignatures2.ts, 39, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 41, 27), Decl(objectTypesIdentityWithCallSignatures2.ts, 42, 27)) +>x : { foo(x: Date): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 42, 14)) +>a : { foo(x: Date): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignatures2.ts, 22, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: Date): string; }): any; (x: { foo(x: Date): string; }): any; } ->x : any +>foo3 : { (x: { foo(x: Date): string; }): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignatures2.ts, 39, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 41, 27), Decl(objectTypesIdentityWithCallSignatures2.ts, 42, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 43, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: RegExp): string; }): any; (x: { foo(x: RegExp): string; }): any; } ->x : { foo(x: RegExp): string; } ->b : { foo(x: RegExp): string; } +>foo4 : { (x: { foo(x: RegExp): string; }): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignatures2.ts, 43, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 45, 27), Decl(objectTypesIdentityWithCallSignatures2.ts, 46, 27)) +>x : { foo(x: RegExp): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 45, 14)) +>b : { foo(x: RegExp): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignatures2.ts, 23, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: RegExp): string; }): any; (x: { foo(x: RegExp): string; }): any; } ->x : { foo(x: RegExp): string; } ->b : { foo(x: RegExp): string; } +>foo4 : { (x: { foo(x: RegExp): string; }): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignatures2.ts, 43, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 45, 27), Decl(objectTypesIdentityWithCallSignatures2.ts, 46, 27)) +>x : { foo(x: RegExp): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 46, 14)) +>b : { foo(x: RegExp): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignatures2.ts, 23, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: RegExp): string; }): any; (x: { foo(x: RegExp): string; }): any; } ->x : any +>foo4 : { (x: { foo(x: RegExp): string; }): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignatures2.ts, 43, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 45, 27), Decl(objectTypesIdentityWithCallSignatures2.ts, 46, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 47, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignatures2.ts, 47, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 49, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 50, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 49, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures2.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignatures2.ts, 47, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 49, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 50, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 50, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures2.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignatures2.ts, 47, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 49, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 50, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 51, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithCallSignatures2.ts, 51, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 53, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 54, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 53, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures2.ts, 0, 0)) function foo5b(x: C); // error ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithCallSignatures2.ts, 51, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 53, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 54, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 54, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures2.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithCallSignatures2.ts, 51, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 53, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 54, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 55, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithCallSignatures2.ts, 55, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 57, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 58, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 57, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures2.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithCallSignatures2.ts, 55, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 57, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 58, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 58, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures2.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithCallSignatures2.ts, 55, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 57, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 58, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 59, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: Date): string; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithCallSignatures2.ts, 59, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 61, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 62, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 61, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignatures2.ts, 0, 0)) function foo7(x: typeof a); // ok ->foo7 : { (x: A): any; (x: { foo(x: Date): string; }): any; } ->x : { foo(x: Date): string; } ->a : { foo(x: Date): string; } +>foo7 : { (x: A): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithCallSignatures2.ts, 59, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 61, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 62, 27)) +>x : { foo(x: Date): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 62, 14)) +>a : { foo(x: Date): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignatures2.ts, 22, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: Date): string; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithCallSignatures2.ts, 59, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 61, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 62, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 63, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithCallSignatures2.ts, 63, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 65, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 66, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 65, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures2.ts, 4, 1)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithCallSignatures2.ts, 63, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 65, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 66, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 66, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures2.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithCallSignatures2.ts, 63, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 65, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 66, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 67, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithCallSignatures2.ts, 67, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 69, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 70, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 69, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures2.ts, 4, 1)) function foo9(x: C); // ok ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithCallSignatures2.ts, 67, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 69, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 70, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 70, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures2.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithCallSignatures2.ts, 67, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 69, 20), Decl(objectTypesIdentityWithCallSignatures2.ts, 70, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 71, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: Date): string; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithCallSignatures2.ts, 71, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 73, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 74, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 73, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures2.ts, 4, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo(x: Date): string; }): any; } ->x : { foo(x: Date): string; } ->a : { foo(x: Date): string; } +>foo10 : { (x: B): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithCallSignatures2.ts, 71, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 73, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 74, 28)) +>x : { foo(x: Date): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 74, 15)) +>a : { foo(x: Date): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignatures2.ts, 22, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: Date): string; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithCallSignatures2.ts, 71, 25), Decl(objectTypesIdentityWithCallSignatures2.ts, 73, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 74, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 75, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: RegExp): string; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithCallSignatures2.ts, 75, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 77, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 78, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 77, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignatures2.ts, 4, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: RegExp): string; }): any; } ->x : { foo(x: RegExp): string; } ->b : { foo(x: RegExp): string; } +>foo11 : { (x: B): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithCallSignatures2.ts, 75, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 77, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 78, 28)) +>x : { foo(x: RegExp): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 78, 15)) +>b : { foo(x: RegExp): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignatures2.ts, 23, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: RegExp): string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithCallSignatures2.ts, 75, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 77, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 78, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 79, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithCallSignatures2.ts, 79, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 81, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 82, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 81, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures2.ts, 12, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithCallSignatures2.ts, 79, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 81, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 82, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 82, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures2.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithCallSignatures2.ts, 79, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 81, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 82, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 83, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithCallSignatures2.ts, 83, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 85, 31), Decl(objectTypesIdentityWithCallSignatures2.ts, 86, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 85, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignatures2.ts, 16, 1)) function foo12b(x: C); // error ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithCallSignatures2.ts, 83, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 85, 31), Decl(objectTypesIdentityWithCallSignatures2.ts, 86, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 86, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures2.ts, 8, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithCallSignatures2.ts, 83, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 85, 31), Decl(objectTypesIdentityWithCallSignatures2.ts, 86, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 87, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: Date): string; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignatures2.ts, 87, 27), Decl(objectTypesIdentityWithCallSignatures2.ts, 89, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 90, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 89, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures2.ts, 12, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo(x: Date): string; }): any; } ->x : { foo(x: Date): string; } ->a : { foo(x: Date): string; } +>foo13 : { (x: I): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignatures2.ts, 87, 27), Decl(objectTypesIdentityWithCallSignatures2.ts, 89, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 90, 28)) +>x : { foo(x: Date): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 90, 15)) +>a : { foo(x: Date): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignatures2.ts, 22, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: Date): string; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignatures2.ts, 87, 27), Decl(objectTypesIdentityWithCallSignatures2.ts, 89, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 90, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 91, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: RegExp): string; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignatures2.ts, 91, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 93, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 94, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 93, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignatures2.ts, 12, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo(x: RegExp): string; }): any; } ->x : { foo(x: RegExp): string; } ->b : { foo(x: RegExp): string; } +>foo14 : { (x: I): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignatures2.ts, 91, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 93, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 94, 28)) +>x : { foo(x: RegExp): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 94, 15)) +>b : { foo(x: RegExp): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignatures2.ts, 23, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: RegExp): string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignatures2.ts, 91, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 93, 21), Decl(objectTypesIdentityWithCallSignatures2.ts, 94, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 95, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignatures2.ts, 95, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 97, 30), Decl(objectTypesIdentityWithCallSignatures2.ts, 98, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 97, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignatures2.ts, 16, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignatures2.ts, 95, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 97, 30), Decl(objectTypesIdentityWithCallSignatures2.ts, 98, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 98, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignatures2.ts, 8, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignatures2.ts, 95, 26), Decl(objectTypesIdentityWithCallSignatures2.ts, 97, 30), Decl(objectTypesIdentityWithCallSignatures2.ts, 98, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignatures2.ts, 99, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.types b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.types index 2f97c721637..f3f582f795f 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.types +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.types @@ -2,329 +2,333 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 0, 0)) foo(x: string): string { return null; } ->foo : (x: string) => string ->x : string +>foo : (x: string) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 2, 9)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 3, 8)) +>null : null } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 4, 1)) foo(x: string, y: string): string { return null; } ->foo : (x: string, y: string) => string ->x : string ->y : string +>foo : (x: string, y: string) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 6, 9)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 7, 8)) +>y : string, Symbol(y, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 7, 18)) +>null : null } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 10, 8)) foo(x: T, y: T): T { return null; } ->foo : (x: T, y: T) => T ->x : T ->T : T ->y : T ->T : T ->T : T +>foo : (x: T, y: T) => T, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 10, 12)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 11, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 10, 8)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 11, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 10, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 10, 8)) +>null : null } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 12, 1)) foo(x: string): string; ->foo : (x: string) => string ->x : string +>foo : (x: string) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 14, 13)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 15, 8)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 16, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 18, 13)) foo(x: T): T; ->foo : (x: T) => T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 18, 17)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 19, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 18, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 18, 13)) } var a: { foo(x: string, y: string): string } ->a : { foo(x: string, y: string): string; } ->foo : (x: string, y: string) => string ->x : string ->y : string +>a : { foo(x: string, y: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 22, 3)) +>foo : (x: string, y: string) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 22, 8)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 22, 13)) +>y : string, Symbol(y, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 22, 23)) var b = { foo(x: string) { return ''; } }; ->b : { foo(x: string): string; } +>b : { foo(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 23, 3)) >{ foo(x: string) { return ''; } } : { foo(x: string): string; } ->foo : (x: string) => string ->x : string +>foo : (x: string) => string, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 23, 9)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 23, 14)) +>'' : string function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 23, 42), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 25, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 25, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 23, 42), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 25, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 26, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 23, 42), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 25, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 26, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 27, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 27, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 29, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 30, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 29, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 27, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 29, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 30, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 30, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 27, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 29, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 30, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 31, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 31, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 33, 29), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 34, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 33, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 31, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 33, 29), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 34, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 34, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 31, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 33, 29), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 34, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 35, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 35, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 37, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 38, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 37, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 35, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 37, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 38, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 38, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 35, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 37, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 38, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 39, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: string, y: string): string; }): any; (x: { foo(x: string, y: string): string; }): any; } ->x : { foo(x: string, y: string): string; } ->a : { foo(x: string, y: string): string; } +>foo3 : { (x: { foo(x: string, y: string): string; }): any; (x: { foo(x: string, y: string): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 39, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 41, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 42, 27)) +>x : { foo(x: string, y: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 41, 14)) +>a : { foo(x: string, y: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 22, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: string, y: string): string; }): any; (x: { foo(x: string, y: string): string; }): any; } ->x : { foo(x: string, y: string): string; } ->a : { foo(x: string, y: string): string; } +>foo3 : { (x: { foo(x: string, y: string): string; }): any; (x: { foo(x: string, y: string): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 39, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 41, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 42, 27)) +>x : { foo(x: string, y: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 42, 14)) +>a : { foo(x: string, y: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 22, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: string, y: string): string; }): any; (x: { foo(x: string, y: string): string; }): any; } ->x : any +>foo3 : { (x: { foo(x: string, y: string): string; }): any; (x: { foo(x: string, y: string): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 39, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 41, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 42, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 43, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->b : { foo(x: string): string; } +>foo4 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 43, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 45, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 46, 27)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 45, 14)) +>b : { foo(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 23, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->b : { foo(x: string): string; } +>foo4 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 43, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 45, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 46, 27)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 46, 14)) +>b : { foo(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 23, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; } ->x : any +>foo4 : { (x: { foo(x: string): string; }): any; (x: { foo(x: string): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 43, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 45, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 46, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 47, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 47, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 49, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 50, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 49, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 47, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 49, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 50, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 50, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 47, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 49, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 50, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 51, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 51, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 53, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 54, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 53, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 51, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 53, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 54, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 54, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 51, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 53, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 54, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 55, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 55, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 57, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 58, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 57, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 0, 0)) function foo6(x: I); // error ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 55, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 57, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 58, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 58, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 55, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 57, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 58, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 59, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: string, y: string): string; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: string, y: string): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 59, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 61, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 62, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 61, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 0, 0)) function foo7(x: typeof a); // ok ->foo7 : { (x: A): any; (x: { foo(x: string, y: string): string; }): any; } ->x : { foo(x: string, y: string): string; } ->a : { foo(x: string, y: string): string; } +>foo7 : { (x: A): any; (x: { foo(x: string, y: string): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 59, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 61, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 62, 27)) +>x : { foo(x: string, y: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 62, 14)) +>a : { foo(x: string, y: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 22, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: string, y: string): string; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: string, y: string): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 59, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 61, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 62, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 63, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 63, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 65, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 66, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 65, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 4, 1)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 63, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 65, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 66, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 66, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 63, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 65, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 66, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 67, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 67, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 69, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 70, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 69, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 4, 1)) function foo9(x: C); // ok ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 67, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 69, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 70, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 70, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 67, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 69, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 70, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 71, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: string, y: string): string; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo(x: string, y: string): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 71, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 73, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 74, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 73, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 4, 1)) function foo10(x: typeof a); // error ->foo10 : { (x: B): any; (x: { foo(x: string, y: string): string; }): any; } ->x : { foo(x: string, y: string): string; } ->a : { foo(x: string, y: string): string; } +>foo10 : { (x: B): any; (x: { foo(x: string, y: string): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 71, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 73, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 74, 28)) +>x : { foo(x: string, y: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 74, 15)) +>a : { foo(x: string, y: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 22, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: string, y: string): string; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: string, y: string): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 71, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 73, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 74, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 75, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: string): string; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo(x: string): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 75, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 77, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 78, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 77, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 4, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->b : { foo(x: string): string; } +>foo11 : { (x: B): any; (x: { foo(x: string): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 75, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 77, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 78, 28)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 78, 15)) +>b : { foo(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 23, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: string): string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: string): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 75, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 77, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 78, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 79, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 79, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 81, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 82, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 81, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 12, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 79, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 81, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 82, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 82, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 79, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 81, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 82, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 83, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 83, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 85, 31), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 86, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 85, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 16, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 83, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 85, 31), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 86, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 86, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 8, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 83, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 85, 31), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 86, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 87, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: string, y: string): string; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo(x: string, y: string): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 87, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 89, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 90, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 89, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 12, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo(x: string, y: string): string; }): any; } ->x : { foo(x: string, y: string): string; } ->a : { foo(x: string, y: string): string; } +>foo13 : { (x: I): any; (x: { foo(x: string, y: string): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 87, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 89, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 90, 28)) +>x : { foo(x: string, y: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 90, 15)) +>a : { foo(x: string, y: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 22, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: string, y: string): string; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: string, y: string): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 87, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 89, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 90, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 91, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: string): string; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo(x: string): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 91, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 93, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 94, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 93, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 12, 1)) function foo14(x: typeof b); // error ->foo14 : { (x: I): any; (x: { foo(x: string): string; }): any; } ->x : { foo(x: string): string; } ->b : { foo(x: string): string; } +>foo14 : { (x: I): any; (x: { foo(x: string): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 91, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 93, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 94, 28)) +>x : { foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 94, 15)) +>b : { foo(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 23, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: string): string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: string): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 91, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 93, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 94, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 95, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 95, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 97, 30), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 98, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 97, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 16, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 95, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 97, 30), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 98, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 98, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 8, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 95, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 97, 30), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 98, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts.ts, 99, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.types b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.types index b72d0a799e4..5eadb6a3ff7 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.types +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts2.types @@ -2,136 +2,136 @@ // object types are identical structurally interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 0, 0)) (x: string): string; ->x : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 3, 5)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 4, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 6, 13)) (x: T): T; ->x : T ->T : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 7, 5)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 6, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 6, 13)) } var a: { (x: string, y: string): string } ->a : (x: string, y: string) => string ->x : string ->y : string +>a : (x: string, y: string) => string, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 10, 3)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 10, 10)) +>y : string, Symbol(y, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 10, 20)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 10, 41), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 12, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 13, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 12, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 0, 0)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 10, 41), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 12, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 13, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 13, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 0, 0)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 10, 41), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 12, 20), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 13, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 14, 14)) function foo3(x: typeof a); ->foo3 : { (x: (x: string, y: string) => string): any; (x: (x: string, y: string) => string): any; } ->x : (x: string, y: string) => string ->a : (x: string, y: string) => string +>foo3 : { (x: (x: string, y: string) => string): any; (x: (x: string, y: string) => string): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 14, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 16, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 17, 27)) +>x : (x: string, y: string) => string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 16, 14)) +>a : (x: string, y: string) => string, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 10, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: (x: string, y: string) => string): any; (x: (x: string, y: string) => string): any; } ->x : (x: string, y: string) => string ->a : (x: string, y: string) => string +>foo3 : { (x: (x: string, y: string) => string): any; (x: (x: string, y: string) => string): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 14, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 16, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 17, 27)) +>x : (x: string, y: string) => string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 17, 14)) +>a : (x: string, y: string) => string, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 10, 3)) function foo3(x: any) { } ->foo3 : { (x: (x: string, y: string) => string): any; (x: (x: string, y: string) => string): any; } ->x : any +>foo3 : { (x: (x: string, y: string) => string): any; (x: (x: string, y: string) => string): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 14, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 16, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 17, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 18, 14)) function foo4(x: I2); ->foo4 : { (x: I2): any; (x: I2): any; } ->x : I2 ->I2 : I2 +>foo4 : { (x: I2): any; (x: I2): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 18, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 20, 29), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 21, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 20, 14)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 4, 1)) function foo4(x: I2); // error ->foo4 : { (x: I2): any; (x: I2): any; } ->x : I2 ->I2 : I2 +>foo4 : { (x: I2): any; (x: I2): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 18, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 20, 29), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 21, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 21, 14)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 4, 1)) function foo4(x: any) { } ->foo4 : { (x: I2): any; (x: I2): any; } ->x : any +>foo4 : { (x: I2): any; (x: I2): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 18, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 20, 29), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 21, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 22, 14)) function foo5(x: I2); ->foo5 : { (x: I2): any; (x: I2): any; } ->x : I2 ->I2 : I2 +>foo5 : { (x: I2): any; (x: I2): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 22, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 24, 29), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 25, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 24, 14)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 4, 1)) function foo5(x: I2); // ok ->foo5 : { (x: I2): any; (x: I2): any; } ->x : I2 ->I2 : I2 +>foo5 : { (x: I2): any; (x: I2): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 22, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 24, 29), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 25, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 25, 14)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: I2): any; (x: I2): any; } ->x : any +>foo5 : { (x: I2): any; (x: I2): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 22, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 24, 29), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 25, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 26, 14)) function foo13(x: I); ->foo13 : { (x: I): any; (x: (x: string, y: string) => string): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: (x: string, y: string) => string): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 26, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 28, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 29, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 28, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 0, 0)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: (x: string, y: string) => string): any; } ->x : (x: string, y: string) => string ->a : (x: string, y: string) => string +>foo13 : { (x: I): any; (x: (x: string, y: string) => string): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 26, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 28, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 29, 28)) +>x : (x: string, y: string) => string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 29, 15)) +>a : (x: string, y: string) => string, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 10, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: (x: string, y: string) => string): any; } ->x : any +>foo13 : { (x: I): any; (x: (x: string, y: string) => string): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 26, 25), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 28, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 29, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 30, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: I2): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: I2): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 30, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 32, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 33, 30)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 32, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 0, 0)) function foo14(x: I2); // error ->foo14 : { (x: I): any; (x: I2): any; } ->x : I2 ->I2 : I2 +>foo14 : { (x: I): any; (x: I2): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 30, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 32, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 33, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 33, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 4, 1)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: I2): any; } ->x : any +>foo14 : { (x: I): any; (x: I2): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 30, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 32, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 33, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 34, 15)) function foo14b(x: typeof a); ->foo14b : { (x: (x: string, y: string) => string): any; (x: I2): any; } ->x : (x: string, y: string) => string ->a : (x: string, y: string) => string +>foo14b : { (x: (x: string, y: string) => string): any; (x: I2): any; }, Symbol(foo14b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 34, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 36, 29), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 37, 31)) +>x : (x: string, y: string) => string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 36, 16)) +>a : (x: string, y: string) => string, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 10, 3)) function foo14b(x: I2); // ok ->foo14b : { (x: (x: string, y: string) => string): any; (x: I2): any; } ->x : I2 ->I2 : I2 +>foo14b : { (x: (x: string, y: string) => string): any; (x: I2): any; }, Symbol(foo14b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 34, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 36, 29), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 37, 31)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 37, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 4, 1)) function foo14b(x: any) { } ->foo14b : { (x: (x: string, y: string) => string): any; (x: I2): any; } ->x : any +>foo14b : { (x: (x: string, y: string) => string): any; (x: I2): any; }, Symbol(foo14b, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 34, 26), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 36, 29), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 37, 31)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 38, 16)) function foo15(x: I); ->foo15 : { (x: I): any; (x: I2): any; } ->x : I ->I : I +>foo15 : { (x: I): any; (x: I2): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 38, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 40, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 41, 30)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 40, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 0, 0)) function foo15(x: I2); // ok ->foo15 : { (x: I): any; (x: I2): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I): any; (x: I2): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 38, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 40, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 41, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 41, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 4, 1)) function foo15(x: any) { } ->foo15 : { (x: I): any; (x: I2): any; } ->x : any +>foo15 : { (x: I): any; (x: I2): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 38, 27), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 40, 21), Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 41, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesDifferingParamCounts2.ts, 42, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.types b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.types index c3ab4ffb837..b7ecd942233 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.types +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.types @@ -2,377 +2,381 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 0, 0)) foo(x: number): number; ->foo : { (x: number): number; (x: string): string; } ->x : number +>foo : { (x: number): number; (x: string): string; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 2, 9), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 3, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 4, 27)) +>x : number, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 3, 8)) foo(x: string): string; ->foo : { (x: number): number; (x: string): string; } ->x : string +>foo : { (x: number): number; (x: string): string; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 2, 9), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 3, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 4, 27)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 4, 8)) foo(x: any): any { return null; } ->foo : { (x: number): number; (x: string): string; } ->x : any +>foo : { (x: number): number; (x: string): string; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 2, 9), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 3, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 4, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 5, 8)) +>null : null } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 6, 1)) foo(x: number): number; ->foo : { (x: number): number; (x: string): string; } ->x : number +>foo : { (x: number): number; (x: string): string; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 8, 9), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 9, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 10, 27)) +>x : number, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 9, 8)) foo(x: string): string; ->foo : { (x: number): number; (x: string): string; } ->x : string +>foo : { (x: number): number; (x: string): string; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 8, 9), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 9, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 10, 27)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 10, 8)) foo(x: any): any { return null; } ->foo : { (x: number): number; (x: string): string; } ->x : any +>foo : { (x: number): number; (x: string): string; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 8, 9), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 9, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 10, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 11, 8)) +>null : null } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 12, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 14, 8)) foo(x: number): number; ->foo : { (x: number): number; (x: string): string; (x: T): T; } ->x : number +>foo : { (x: number): number; (x: string): string; (x: T): T; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 14, 12), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 15, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 16, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 17, 17)) +>x : number, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 15, 8)) foo(x: string): string; ->foo : { (x: number): number; (x: string): string; (x: T): T; } ->x : string +>foo : { (x: number): number; (x: string): string; (x: T): T; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 14, 12), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 15, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 16, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 17, 17)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 16, 8)) foo(x: T): T; ->foo : { (x: number): number; (x: string): string; (x: T): T; } ->x : T ->T : T ->T : T +>foo : { (x: number): number; (x: string): string; (x: T): T; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 14, 12), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 15, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 16, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 17, 17)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 17, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 14, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 14, 8)) foo(x: any): any { return null; } ->foo : { (x: number): number; (x: string): string; (x: T): T; } ->x : any +>foo : { (x: number): number; (x: string): string; (x: T): T; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 14, 12), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 15, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 16, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 17, 17)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 18, 8)) +>null : null } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 19, 1)) foo(x: number): number; ->foo : { (x: number): number; (x: string): string; } ->x : number +>foo : { (x: number): number; (x: string): string; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 21, 13), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 22, 27)) +>x : number, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 22, 8)) foo(x: string): string; ->foo : { (x: number): number; (x: string): string; } ->x : string +>foo : { (x: number): number; (x: string): string; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 21, 13), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 22, 27)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 23, 8)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 24, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 26, 13)) foo(x: number): number; ->foo : { (x: number): number; (x: string): string; (x: T): T; } ->x : number +>foo : { (x: number): number; (x: string): string; (x: T): T; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 26, 17), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 27, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 28, 27)) +>x : number, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 27, 8)) foo(x: string): string; ->foo : { (x: number): number; (x: string): string; (x: T): T; } ->x : string +>foo : { (x: number): number; (x: string): string; (x: T): T; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 26, 17), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 27, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 28, 27)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 28, 8)) foo(x: T): T; ->foo : { (x: number): number; (x: string): string; (x: T): T; } ->x : T ->T : T ->T : T +>foo : { (x: number): number; (x: string): string; (x: T): T; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 26, 17), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 27, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 28, 27)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 29, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 26, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 26, 13)) } var a: { ->a : { foo(x: number): number; foo(x: string): string; } +>a : { foo(x: number): number; foo(x: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 32, 3)) foo(x: number): number ->foo : { (x: number): number; (x: string): string; } ->x : number +>foo : { (x: number): number; (x: string): string; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 32, 8), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 33, 26)) +>x : number, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 33, 8)) foo(x: string): string ->foo : { (x: number): number; (x: string): string; } ->x : string +>foo : { (x: number): number; (x: string): string; }, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 32, 8), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 33, 26)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 34, 8)) } var b = { ->b : { foo(x: any): any; } +>b : { foo(x: any): any; }, Symbol(b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 37, 3)) >{ foo(x: any) { return ''; }} : { foo(x: any): any; } foo(x: any) { return ''; } ->foo : (x: any) => any ->x : any +>foo : (x: any) => any, Symbol(foo, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 37, 9)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 38, 8)) >'' : any +>'' : string }; function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 39, 2), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 41, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 42, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 41, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 39, 2), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 41, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 42, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 42, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 39, 2), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 41, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 42, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 43, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 43, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 45, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 46, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 45, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 6, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 43, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 45, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 46, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 46, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 6, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 43, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 45, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 46, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 47, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 47, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 49, 29), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 50, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 49, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 12, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 47, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 49, 29), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 50, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 50, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 12, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 47, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 49, 29), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 50, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 51, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 51, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 53, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 54, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 53, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 19, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 51, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 53, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 54, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 54, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 19, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 51, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 53, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 54, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 55, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: number): number; foo(x: string): string; }): any; (x: { foo(x: number): number; foo(x: string): string; }): any; } ->x : { foo(x: number): number; foo(x: string): string; } ->a : { foo(x: number): number; foo(x: string): string; } +>foo3 : { (x: { foo(x: number): number; foo(x: string): string; }): any; (x: { foo(x: number): number; foo(x: string): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 55, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 57, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 58, 27)) +>x : { foo(x: number): number; foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 57, 14)) +>a : { foo(x: number): number; foo(x: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 32, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: number): number; foo(x: string): string; }): any; (x: { foo(x: number): number; foo(x: string): string; }): any; } ->x : { foo(x: number): number; foo(x: string): string; } ->a : { foo(x: number): number; foo(x: string): string; } +>foo3 : { (x: { foo(x: number): number; foo(x: string): string; }): any; (x: { foo(x: number): number; foo(x: string): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 55, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 57, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 58, 27)) +>x : { foo(x: number): number; foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 58, 14)) +>a : { foo(x: number): number; foo(x: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 32, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: number): number; foo(x: string): string; }): any; (x: { foo(x: number): number; foo(x: string): string; }): any; } ->x : any +>foo3 : { (x: { foo(x: number): number; foo(x: string): string; }): any; (x: { foo(x: number): number; foo(x: string): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 55, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 57, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 58, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 59, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: any): any; }): any; (x: { foo(x: any): any; }): any; } ->x : { foo(x: any): any; } ->b : { foo(x: any): any; } +>foo4 : { (x: { foo(x: any): any; }): any; (x: { foo(x: any): any; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 59, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 61, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 62, 27)) +>x : { foo(x: any): any; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 61, 14)) +>b : { foo(x: any): any; }, Symbol(b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 37, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: any): any; }): any; (x: { foo(x: any): any; }): any; } ->x : { foo(x: any): any; } ->b : { foo(x: any): any; } +>foo4 : { (x: { foo(x: any): any; }): any; (x: { foo(x: any): any; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 59, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 61, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 62, 27)) +>x : { foo(x: any): any; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 62, 14)) +>b : { foo(x: any): any; }, Symbol(b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 37, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: any): any; }): any; (x: { foo(x: any): any; }): any; } ->x : any +>foo4 : { (x: { foo(x: any): any; }): any; (x: { foo(x: any): any; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 59, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 61, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 62, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 63, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 63, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 65, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 66, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 65, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 0, 0)) function foo5(x: B); // error ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 63, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 65, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 66, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 66, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 6, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 63, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 65, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 66, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 67, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 67, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 69, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 70, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 69, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 67, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 69, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 70, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 70, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 12, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 67, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 69, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 70, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 71, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 71, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 73, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 74, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 73, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 0, 0)) function foo6(x: I); // BUG 831930 ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 71, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 73, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 74, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 74, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 19, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 71, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 73, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 74, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 75, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: number): number; foo(x: string): string; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: number): number; foo(x: string): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 75, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 77, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 78, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 77, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 0, 0)) function foo7(x: typeof a); // BUG 831930 ->foo7 : { (x: A): any; (x: { foo(x: number): number; foo(x: string): string; }): any; } ->x : { foo(x: number): number; foo(x: string): string; } ->a : { foo(x: number): number; foo(x: string): string; } +>foo7 : { (x: A): any; (x: { foo(x: number): number; foo(x: string): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 75, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 77, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 78, 27)) +>x : { foo(x: number): number; foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 78, 14)) +>a : { foo(x: number): number; foo(x: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 32, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: number): number; foo(x: string): string; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: number): number; foo(x: string): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 75, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 77, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 78, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 79, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 79, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 81, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 82, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 81, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 6, 1)) function foo8(x: I); // BUG 831930 ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 79, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 81, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 82, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 82, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 19, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 79, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 81, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 82, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 83, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 83, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 85, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 86, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 85, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 6, 1)) function foo9(x: C); // ok ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 83, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 85, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 86, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 86, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 12, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 83, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 85, 20), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 86, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 87, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: number): number; foo(x: string): string; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo(x: number): number; foo(x: string): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 87, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 89, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 90, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 89, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 6, 1)) function foo10(x: typeof a); // BUG 831930 ->foo10 : { (x: B): any; (x: { foo(x: number): number; foo(x: string): string; }): any; } ->x : { foo(x: number): number; foo(x: string): string; } ->a : { foo(x: number): number; foo(x: string): string; } +>foo10 : { (x: B): any; (x: { foo(x: number): number; foo(x: string): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 87, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 89, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 90, 28)) +>x : { foo(x: number): number; foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 90, 15)) +>a : { foo(x: number): number; foo(x: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 32, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: number): number; foo(x: string): string; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: number): number; foo(x: string): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 87, 25), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 89, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 90, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 91, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: any): any; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo(x: any): any; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 91, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 93, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 94, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 93, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 6, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: any): any; }): any; } ->x : { foo(x: any): any; } ->b : { foo(x: any): any; } +>foo11 : { (x: B): any; (x: { foo(x: any): any; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 91, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 93, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 94, 28)) +>x : { foo(x: any): any; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 94, 15)) +>b : { foo(x: any): any; }, Symbol(b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 37, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: any): any; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: any): any; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 91, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 93, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 94, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 95, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 95, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 97, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 98, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 97, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 19, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 95, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 97, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 98, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 98, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 12, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 95, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 97, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 98, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 99, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 99, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 101, 31), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 102, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 101, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 24, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 99, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 101, 31), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 102, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 102, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 12, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 99, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 101, 31), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 102, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 103, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: number): number; foo(x: string): string; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo(x: number): number; foo(x: string): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 103, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 105, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 106, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 105, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 19, 1)) function foo13(x: typeof a); // error ->foo13 : { (x: I): any; (x: { foo(x: number): number; foo(x: string): string; }): any; } ->x : { foo(x: number): number; foo(x: string): string; } ->a : { foo(x: number): number; foo(x: string): string; } +>foo13 : { (x: I): any; (x: { foo(x: number): number; foo(x: string): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 103, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 105, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 106, 28)) +>x : { foo(x: number): number; foo(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 106, 15)) +>a : { foo(x: number): number; foo(x: string): string; }, Symbol(a, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 32, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: number): number; foo(x: string): string; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: number): number; foo(x: string): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 103, 27), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 105, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 106, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 107, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: any): any; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo(x: any): any; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 107, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 109, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 110, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 109, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 19, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo(x: any): any; }): any; } ->x : { foo(x: any): any; } ->b : { foo(x: any): any; } +>foo14 : { (x: I): any; (x: { foo(x: any): any; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 107, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 109, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 110, 28)) +>x : { foo(x: any): any; }, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 110, 15)) +>b : { foo(x: any): any; }, Symbol(b, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 37, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: any): any; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: any): any; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 107, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 109, 21), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 110, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 111, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 111, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 113, 30), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 114, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 113, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 24, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 111, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 113, 30), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 114, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 114, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 12, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 111, 26), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 113, 30), Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 114, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithCallSignaturesWithOverloads.ts, 115, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithConstructSignatures.types b/tests/baselines/reference/objectTypesIdentityWithConstructSignatures.types index a29f213bdde..379e059a0bb 100644 --- a/tests/baselines/reference/objectTypesIdentityWithConstructSignatures.types +++ b/tests/baselines/reference/objectTypesIdentityWithConstructSignatures.types @@ -2,270 +2,270 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithConstructSignatures.ts, 0, 0)) constructor(x: string) { } ->x : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 3, 16)) } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures.ts, 4, 1)) constructor(x: string) { } ->x : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 7, 16)) } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignatures.ts, 10, 8)) constructor(x: T) { } ->x : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 11, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignatures.ts, 10, 8)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures.ts, 12, 1)) new(x: string); ->x : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 15, 8)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithConstructSignatures.ts, 16, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignatures.ts, 18, 13)) new(x: T): T; ->x : T ->T : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 19, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignatures.ts, 18, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignatures.ts, 18, 13)) } var a: { new(x: string) } ->a : new (x: string) => any ->x : string +>a : new (x: string) => any, Symbol(a, Decl(objectTypesIdentityWithConstructSignatures.ts, 22, 3)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 22, 13)) function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithConstructSignatures.ts, 22, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 24, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 25, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 24, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithConstructSignatures.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithConstructSignatures.ts, 22, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 24, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 25, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 25, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithConstructSignatures.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithConstructSignatures.ts, 22, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 24, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 25, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 26, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithConstructSignatures.ts, 26, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 28, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 29, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 28, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithConstructSignatures.ts, 26, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 28, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 29, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 29, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithConstructSignatures.ts, 26, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 28, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 29, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 30, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithConstructSignatures.ts, 30, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 32, 29), Decl(objectTypesIdentityWithConstructSignatures.ts, 33, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 32, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithConstructSignatures.ts, 30, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 32, 29), Decl(objectTypesIdentityWithConstructSignatures.ts, 33, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 33, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithConstructSignatures.ts, 30, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 32, 29), Decl(objectTypesIdentityWithConstructSignatures.ts, 33, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 34, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithConstructSignatures.ts, 34, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 36, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 37, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 36, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithConstructSignatures.ts, 34, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 36, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 37, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 37, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithConstructSignatures.ts, 34, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 36, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 37, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 38, 14)) function foo3(x: typeof a); ->foo3 : { (x: new (x: string) => any): any; (x: new (x: string) => any): any; } ->x : new (x: string) => any ->a : new (x: string) => any +>foo3 : { (x: new (x: string) => any): any; (x: new (x: string) => any): any; }, Symbol(foo3, Decl(objectTypesIdentityWithConstructSignatures.ts, 38, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 40, 27), Decl(objectTypesIdentityWithConstructSignatures.ts, 41, 27)) +>x : new (x: string) => any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 40, 14)) +>a : new (x: string) => any, Symbol(a, Decl(objectTypesIdentityWithConstructSignatures.ts, 22, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: new (x: string) => any): any; (x: new (x: string) => any): any; } ->x : new (x: string) => any ->a : new (x: string) => any +>foo3 : { (x: new (x: string) => any): any; (x: new (x: string) => any): any; }, Symbol(foo3, Decl(objectTypesIdentityWithConstructSignatures.ts, 38, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 40, 27), Decl(objectTypesIdentityWithConstructSignatures.ts, 41, 27)) +>x : new (x: string) => any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 41, 14)) +>a : new (x: string) => any, Symbol(a, Decl(objectTypesIdentityWithConstructSignatures.ts, 22, 3)) function foo3(x: any) { } ->foo3 : { (x: new (x: string) => any): any; (x: new (x: string) => any): any; } ->x : any +>foo3 : { (x: new (x: string) => any): any; (x: new (x: string) => any): any; }, Symbol(foo3, Decl(objectTypesIdentityWithConstructSignatures.ts, 38, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 40, 27), Decl(objectTypesIdentityWithConstructSignatures.ts, 41, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 42, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithConstructSignatures.ts, 42, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 44, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 45, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 44, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithConstructSignatures.ts, 0, 0)) function foo5(x: B); // error ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithConstructSignatures.ts, 42, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 44, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 45, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 45, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithConstructSignatures.ts, 42, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 44, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 45, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 46, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithConstructSignatures.ts, 46, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 48, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 49, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 48, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithConstructSignatures.ts, 0, 0)) function foo5b(x: C); // error ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithConstructSignatures.ts, 46, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 48, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 49, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 49, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithConstructSignatures.ts, 46, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 48, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 49, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 50, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithConstructSignatures.ts, 50, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 52, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 53, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 52, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithConstructSignatures.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithConstructSignatures.ts, 50, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 52, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 53, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 53, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithConstructSignatures.ts, 50, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 52, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 53, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 54, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: new (x: string) => any): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: new (x: string) => any): any; }, Symbol(foo7, Decl(objectTypesIdentityWithConstructSignatures.ts, 54, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 56, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 57, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 56, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithConstructSignatures.ts, 0, 0)) function foo7(x: typeof a); // ok ->foo7 : { (x: A): any; (x: new (x: string) => any): any; } ->x : new (x: string) => any ->a : new (x: string) => any +>foo7 : { (x: A): any; (x: new (x: string) => any): any; }, Symbol(foo7, Decl(objectTypesIdentityWithConstructSignatures.ts, 54, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 56, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 57, 27)) +>x : new (x: string) => any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 57, 14)) +>a : new (x: string) => any, Symbol(a, Decl(objectTypesIdentityWithConstructSignatures.ts, 22, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: new (x: string) => any): any; } ->x : any +>foo7 : { (x: A): any; (x: new (x: string) => any): any; }, Symbol(foo7, Decl(objectTypesIdentityWithConstructSignatures.ts, 54, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 56, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 57, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 58, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithConstructSignatures.ts, 58, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 60, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 61, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 60, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures.ts, 4, 1)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithConstructSignatures.ts, 58, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 60, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 61, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 61, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithConstructSignatures.ts, 58, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 60, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 61, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 62, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithConstructSignatures.ts, 62, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 64, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 65, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 64, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures.ts, 4, 1)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithConstructSignatures.ts, 62, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 64, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 65, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 65, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithConstructSignatures.ts, 62, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 64, 20), Decl(objectTypesIdentityWithConstructSignatures.ts, 65, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 66, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: new (x: string) => any): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: new (x: string) => any): any; }, Symbol(foo10, Decl(objectTypesIdentityWithConstructSignatures.ts, 66, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 68, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 69, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 68, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures.ts, 4, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: new (x: string) => any): any; } ->x : new (x: string) => any ->a : new (x: string) => any +>foo10 : { (x: B): any; (x: new (x: string) => any): any; }, Symbol(foo10, Decl(objectTypesIdentityWithConstructSignatures.ts, 66, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 68, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 69, 28)) +>x : new (x: string) => any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 69, 15)) +>a : new (x: string) => any, Symbol(a, Decl(objectTypesIdentityWithConstructSignatures.ts, 22, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: new (x: string) => any): any; } ->x : any +>foo10 : { (x: B): any; (x: new (x: string) => any): any; }, Symbol(foo10, Decl(objectTypesIdentityWithConstructSignatures.ts, 66, 25), Decl(objectTypesIdentityWithConstructSignatures.ts, 68, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 69, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 70, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithConstructSignatures.ts, 70, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 72, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 73, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 72, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures.ts, 12, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithConstructSignatures.ts, 70, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 72, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 73, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 73, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithConstructSignatures.ts, 70, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 72, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 73, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 74, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithConstructSignatures.ts, 74, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 76, 31), Decl(objectTypesIdentityWithConstructSignatures.ts, 77, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 76, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithConstructSignatures.ts, 16, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithConstructSignatures.ts, 74, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 76, 31), Decl(objectTypesIdentityWithConstructSignatures.ts, 77, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 77, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures.ts, 8, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithConstructSignatures.ts, 74, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 76, 31), Decl(objectTypesIdentityWithConstructSignatures.ts, 77, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 78, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: new (x: string) => any): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: new (x: string) => any): any; }, Symbol(foo13, Decl(objectTypesIdentityWithConstructSignatures.ts, 78, 27), Decl(objectTypesIdentityWithConstructSignatures.ts, 80, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 81, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 80, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures.ts, 12, 1)) function foo13(x: typeof a); // error ->foo13 : { (x: I): any; (x: new (x: string) => any): any; } ->x : new (x: string) => any ->a : new (x: string) => any +>foo13 : { (x: I): any; (x: new (x: string) => any): any; }, Symbol(foo13, Decl(objectTypesIdentityWithConstructSignatures.ts, 78, 27), Decl(objectTypesIdentityWithConstructSignatures.ts, 80, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 81, 28)) +>x : new (x: string) => any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 81, 15)) +>a : new (x: string) => any, Symbol(a, Decl(objectTypesIdentityWithConstructSignatures.ts, 22, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: new (x: string) => any): any; } ->x : any +>foo13 : { (x: I): any; (x: new (x: string) => any): any; }, Symbol(foo13, Decl(objectTypesIdentityWithConstructSignatures.ts, 78, 27), Decl(objectTypesIdentityWithConstructSignatures.ts, 80, 21), Decl(objectTypesIdentityWithConstructSignatures.ts, 81, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 82, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithConstructSignatures.ts, 82, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 84, 30), Decl(objectTypesIdentityWithConstructSignatures.ts, 85, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 84, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithConstructSignatures.ts, 16, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithConstructSignatures.ts, 82, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 84, 30), Decl(objectTypesIdentityWithConstructSignatures.ts, 85, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 85, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures.ts, 8, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithConstructSignatures.ts, 82, 26), Decl(objectTypesIdentityWithConstructSignatures.ts, 84, 30), Decl(objectTypesIdentityWithConstructSignatures.ts, 85, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures.ts, 86, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithConstructSignatures2.types b/tests/baselines/reference/objectTypesIdentityWithConstructSignatures2.types index 769682c826a..24c6913ace3 100644 --- a/tests/baselines/reference/objectTypesIdentityWithConstructSignatures2.types +++ b/tests/baselines/reference/objectTypesIdentityWithConstructSignatures2.types @@ -2,243 +2,246 @@ // object types are identical structurally class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures2.ts, 0, 0)) constructor(x: number) { return null; } ->x : number +>x : number, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 3, 16)) +>null : null } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures2.ts, 4, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignatures2.ts, 6, 8)) constructor(x: T) { return null; } ->x : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 7, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignatures2.ts, 6, 8)) +>null : null } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures2.ts, 8, 1)) new(x: boolean): string; ->x : boolean +>x : boolean, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 11, 8)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithConstructSignatures2.ts, 12, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignatures2.ts, 14, 13)) new(x: T): T; ->x : T ->T : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 15, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignatures2.ts, 14, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignatures2.ts, 14, 13)) } var a: { new(x: Date): string } ->a : new (x: Date) => string ->x : Date ->Date : Date +>a : new (x: Date) => string, Symbol(a, Decl(objectTypesIdentityWithConstructSignatures2.ts, 18, 3)) +>x : Date, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 18, 13)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var b = { new(x: RegExp) { return ''; } }; // not a construct signature, function called new ->b : { new(x: RegExp): string; } +>b : { new(x: RegExp): string; }, Symbol(b, Decl(objectTypesIdentityWithConstructSignatures2.ts, 19, 3)) >{ new(x: RegExp) { return ''; } } : { new(x: RegExp): string; } ->new : (x: RegExp) => string ->x : RegExp ->RegExp : RegExp +>new : (x: RegExp) => string, Symbol(new, Decl(objectTypesIdentityWithConstructSignatures2.ts, 19, 9)) +>x : RegExp, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 19, 14)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) +>'' : string function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithConstructSignatures2.ts, 19, 42), Decl(objectTypesIdentityWithConstructSignatures2.ts, 21, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 22, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 21, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures2.ts, 0, 0)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithConstructSignatures2.ts, 19, 42), Decl(objectTypesIdentityWithConstructSignatures2.ts, 21, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 22, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 22, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures2.ts, 0, 0)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithConstructSignatures2.ts, 19, 42), Decl(objectTypesIdentityWithConstructSignatures2.ts, 21, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 22, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 23, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithConstructSignatures2.ts, 23, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 25, 29), Decl(objectTypesIdentityWithConstructSignatures2.ts, 26, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 25, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures2.ts, 4, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithConstructSignatures2.ts, 23, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 25, 29), Decl(objectTypesIdentityWithConstructSignatures2.ts, 26, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 26, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures2.ts, 4, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithConstructSignatures2.ts, 23, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 25, 29), Decl(objectTypesIdentityWithConstructSignatures2.ts, 26, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 27, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithConstructSignatures2.ts, 27, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 29, 20), Decl(objectTypesIdentityWithConstructSignatures2.ts, 30, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 29, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures2.ts, 8, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithConstructSignatures2.ts, 27, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 29, 20), Decl(objectTypesIdentityWithConstructSignatures2.ts, 30, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 30, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures2.ts, 8, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithConstructSignatures2.ts, 27, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 29, 20), Decl(objectTypesIdentityWithConstructSignatures2.ts, 30, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 31, 14)) function foo3(x: typeof a); ->foo3 : { (x: new (x: Date) => string): any; (x: new (x: Date) => string): any; } ->x : new (x: Date) => string ->a : new (x: Date) => string +>foo3 : { (x: new (x: Date) => string): any; (x: new (x: Date) => string): any; }, Symbol(foo3, Decl(objectTypesIdentityWithConstructSignatures2.ts, 31, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 33, 27), Decl(objectTypesIdentityWithConstructSignatures2.ts, 34, 27)) +>x : new (x: Date) => string, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 33, 14)) +>a : new (x: Date) => string, Symbol(a, Decl(objectTypesIdentityWithConstructSignatures2.ts, 18, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: new (x: Date) => string): any; (x: new (x: Date) => string): any; } ->x : new (x: Date) => string ->a : new (x: Date) => string +>foo3 : { (x: new (x: Date) => string): any; (x: new (x: Date) => string): any; }, Symbol(foo3, Decl(objectTypesIdentityWithConstructSignatures2.ts, 31, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 33, 27), Decl(objectTypesIdentityWithConstructSignatures2.ts, 34, 27)) +>x : new (x: Date) => string, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 34, 14)) +>a : new (x: Date) => string, Symbol(a, Decl(objectTypesIdentityWithConstructSignatures2.ts, 18, 3)) function foo3(x: any) { } ->foo3 : { (x: new (x: Date) => string): any; (x: new (x: Date) => string): any; } ->x : any +>foo3 : { (x: new (x: Date) => string): any; (x: new (x: Date) => string): any; }, Symbol(foo3, Decl(objectTypesIdentityWithConstructSignatures2.ts, 31, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 33, 27), Decl(objectTypesIdentityWithConstructSignatures2.ts, 34, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 35, 14)) function foo4(x: typeof b); ->foo4 : { (x: { new(x: RegExp): string; }): any; (x: { new(x: RegExp): string; }): any; } ->x : { new(x: RegExp): string; } ->b : { new(x: RegExp): string; } +>foo4 : { (x: { new(x: RegExp): string; }): any; (x: { new(x: RegExp): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithConstructSignatures2.ts, 35, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 37, 27), Decl(objectTypesIdentityWithConstructSignatures2.ts, 38, 27)) +>x : { new(x: RegExp): string; }, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 37, 14)) +>b : { new(x: RegExp): string; }, Symbol(b, Decl(objectTypesIdentityWithConstructSignatures2.ts, 19, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { new(x: RegExp): string; }): any; (x: { new(x: RegExp): string; }): any; } ->x : { new(x: RegExp): string; } ->b : { new(x: RegExp): string; } +>foo4 : { (x: { new(x: RegExp): string; }): any; (x: { new(x: RegExp): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithConstructSignatures2.ts, 35, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 37, 27), Decl(objectTypesIdentityWithConstructSignatures2.ts, 38, 27)) +>x : { new(x: RegExp): string; }, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 38, 14)) +>b : { new(x: RegExp): string; }, Symbol(b, Decl(objectTypesIdentityWithConstructSignatures2.ts, 19, 3)) function foo4(x: any) { } ->foo4 : { (x: { new(x: RegExp): string; }): any; (x: { new(x: RegExp): string; }): any; } ->x : any +>foo4 : { (x: { new(x: RegExp): string; }): any; (x: { new(x: RegExp): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithConstructSignatures2.ts, 35, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 37, 27), Decl(objectTypesIdentityWithConstructSignatures2.ts, 38, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 39, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithConstructSignatures2.ts, 39, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 41, 20), Decl(objectTypesIdentityWithConstructSignatures2.ts, 42, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 41, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures2.ts, 0, 0)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithConstructSignatures2.ts, 39, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 41, 20), Decl(objectTypesIdentityWithConstructSignatures2.ts, 42, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 42, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures2.ts, 8, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithConstructSignatures2.ts, 39, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 41, 20), Decl(objectTypesIdentityWithConstructSignatures2.ts, 42, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 43, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithConstructSignatures2.ts, 43, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 45, 20), Decl(objectTypesIdentityWithConstructSignatures2.ts, 46, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 45, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures2.ts, 0, 0)) function foo9(x: C); // error, types are structurally equal ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithConstructSignatures2.ts, 43, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 45, 20), Decl(objectTypesIdentityWithConstructSignatures2.ts, 46, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 46, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures2.ts, 4, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithConstructSignatures2.ts, 43, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 45, 20), Decl(objectTypesIdentityWithConstructSignatures2.ts, 46, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 47, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: new (x: Date) => string): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: new (x: Date) => string): any; }, Symbol(foo10, Decl(objectTypesIdentityWithConstructSignatures2.ts, 47, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 49, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 50, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 49, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures2.ts, 0, 0)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: new (x: Date) => string): any; } ->x : new (x: Date) => string ->a : new (x: Date) => string +>foo10 : { (x: B): any; (x: new (x: Date) => string): any; }, Symbol(foo10, Decl(objectTypesIdentityWithConstructSignatures2.ts, 47, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 49, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 50, 28)) +>x : new (x: Date) => string, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 50, 15)) +>a : new (x: Date) => string, Symbol(a, Decl(objectTypesIdentityWithConstructSignatures2.ts, 18, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: new (x: Date) => string): any; } ->x : any +>foo10 : { (x: B): any; (x: new (x: Date) => string): any; }, Symbol(foo10, Decl(objectTypesIdentityWithConstructSignatures2.ts, 47, 25), Decl(objectTypesIdentityWithConstructSignatures2.ts, 49, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 50, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 51, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { new(x: RegExp): string; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { new(x: RegExp): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithConstructSignatures2.ts, 51, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 53, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 54, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 53, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignatures2.ts, 0, 0)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { new(x: RegExp): string; }): any; } ->x : { new(x: RegExp): string; } ->b : { new(x: RegExp): string; } +>foo11 : { (x: B): any; (x: { new(x: RegExp): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithConstructSignatures2.ts, 51, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 53, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 54, 28)) +>x : { new(x: RegExp): string; }, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 54, 15)) +>b : { new(x: RegExp): string; }, Symbol(b, Decl(objectTypesIdentityWithConstructSignatures2.ts, 19, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { new(x: RegExp): string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { new(x: RegExp): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithConstructSignatures2.ts, 51, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 53, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 54, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 55, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithConstructSignatures2.ts, 55, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 57, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 58, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 57, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures2.ts, 8, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithConstructSignatures2.ts, 55, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 57, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 58, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 58, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures2.ts, 4, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithConstructSignatures2.ts, 55, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 57, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 58, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 59, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithConstructSignatures2.ts, 59, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 61, 31), Decl(objectTypesIdentityWithConstructSignatures2.ts, 62, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 61, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithConstructSignatures2.ts, 12, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithConstructSignatures2.ts, 59, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 61, 31), Decl(objectTypesIdentityWithConstructSignatures2.ts, 62, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 62, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures2.ts, 4, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithConstructSignatures2.ts, 59, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 61, 31), Decl(objectTypesIdentityWithConstructSignatures2.ts, 62, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 63, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: new (x: Date) => string): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: new (x: Date) => string): any; }, Symbol(foo13, Decl(objectTypesIdentityWithConstructSignatures2.ts, 63, 27), Decl(objectTypesIdentityWithConstructSignatures2.ts, 65, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 66, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 65, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures2.ts, 8, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: new (x: Date) => string): any; } ->x : new (x: Date) => string ->a : new (x: Date) => string +>foo13 : { (x: I): any; (x: new (x: Date) => string): any; }, Symbol(foo13, Decl(objectTypesIdentityWithConstructSignatures2.ts, 63, 27), Decl(objectTypesIdentityWithConstructSignatures2.ts, 65, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 66, 28)) +>x : new (x: Date) => string, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 66, 15)) +>a : new (x: Date) => string, Symbol(a, Decl(objectTypesIdentityWithConstructSignatures2.ts, 18, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: new (x: Date) => string): any; } ->x : any +>foo13 : { (x: I): any; (x: new (x: Date) => string): any; }, Symbol(foo13, Decl(objectTypesIdentityWithConstructSignatures2.ts, 63, 27), Decl(objectTypesIdentityWithConstructSignatures2.ts, 65, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 66, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 67, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { new(x: RegExp): string; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { new(x: RegExp): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithConstructSignatures2.ts, 67, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 69, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 70, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 69, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignatures2.ts, 8, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { new(x: RegExp): string; }): any; } ->x : { new(x: RegExp): string; } ->b : { new(x: RegExp): string; } +>foo14 : { (x: I): any; (x: { new(x: RegExp): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithConstructSignatures2.ts, 67, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 69, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 70, 28)) +>x : { new(x: RegExp): string; }, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 70, 15)) +>b : { new(x: RegExp): string; }, Symbol(b, Decl(objectTypesIdentityWithConstructSignatures2.ts, 19, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { new(x: RegExp): string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { new(x: RegExp): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithConstructSignatures2.ts, 67, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 69, 21), Decl(objectTypesIdentityWithConstructSignatures2.ts, 70, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 71, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithConstructSignatures2.ts, 71, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 73, 30), Decl(objectTypesIdentityWithConstructSignatures2.ts, 74, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 73, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithConstructSignatures2.ts, 12, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithConstructSignatures2.ts, 71, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 73, 30), Decl(objectTypesIdentityWithConstructSignatures2.ts, 74, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 74, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignatures2.ts, 4, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithConstructSignatures2.ts, 71, 26), Decl(objectTypesIdentityWithConstructSignatures2.ts, 73, 30), Decl(objectTypesIdentityWithConstructSignatures2.ts, 74, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignatures2.ts, 75, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.types b/tests/baselines/reference/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.types index a2779e3bd35..437cf185961 100644 --- a/tests/baselines/reference/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.types +++ b/tests/baselines/reference/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.types @@ -2,245 +2,248 @@ // object types are identical structurally class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 0, 0)) constructor(x: string, y: string) { return null; } ->x : string ->y : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 3, 16)) +>y : string, Symbol(y, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 3, 26)) +>null : null } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 4, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 6, 8)) constructor(x: T, y: T) { return null; } ->x : T ->T : T ->y : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 7, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 6, 8)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 7, 21)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 6, 8)) +>null : null } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 8, 1)) new(x: string): string; ->x : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 11, 8)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 12, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 14, 13)) new(x: T): T; ->x : T ->T : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 15, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 14, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 14, 13)) } var a: { new(x: string, y: string): string } ->a : new (x: string, y: string) => string ->x : string ->y : string +>a : new (x: string, y: string) => string, Symbol(a, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 18, 3)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 18, 13)) +>y : string, Symbol(y, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 18, 23)) var b = { new(x: string) { return ''; } }; // not a construct signature, function called new ->b : { new(x: string): string; } +>b : { new(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 19, 3)) >{ new(x: string) { return ''; } } : { new(x: string): string; } ->new : (x: string) => string ->x : string +>new : (x: string) => string, Symbol(new, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 19, 9)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 19, 14)) +>'' : string function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 19, 42), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 21, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 22, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 21, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 0, 0)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 19, 42), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 21, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 22, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 22, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 0, 0)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 19, 42), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 21, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 22, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 23, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 23, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 25, 29), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 26, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 25, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 4, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 23, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 25, 29), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 26, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 26, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 4, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 23, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 25, 29), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 26, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 27, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 27, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 29, 20), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 30, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 29, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 8, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 27, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 29, 20), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 30, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 30, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 8, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 27, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 29, 20), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 30, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 31, 14)) function foo3(x: typeof a); ->foo3 : { (x: new (x: string, y: string) => string): any; (x: new (x: string, y: string) => string): any; } ->x : new (x: string, y: string) => string ->a : new (x: string, y: string) => string +>foo3 : { (x: new (x: string, y: string) => string): any; (x: new (x: string, y: string) => string): any; }, Symbol(foo3, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 31, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 33, 27), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 34, 27)) +>x : new (x: string, y: string) => string, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 33, 14)) +>a : new (x: string, y: string) => string, Symbol(a, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 18, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: new (x: string, y: string) => string): any; (x: new (x: string, y: string) => string): any; } ->x : new (x: string, y: string) => string ->a : new (x: string, y: string) => string +>foo3 : { (x: new (x: string, y: string) => string): any; (x: new (x: string, y: string) => string): any; }, Symbol(foo3, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 31, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 33, 27), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 34, 27)) +>x : new (x: string, y: string) => string, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 34, 14)) +>a : new (x: string, y: string) => string, Symbol(a, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 18, 3)) function foo3(x: any) { } ->foo3 : { (x: new (x: string, y: string) => string): any; (x: new (x: string, y: string) => string): any; } ->x : any +>foo3 : { (x: new (x: string, y: string) => string): any; (x: new (x: string, y: string) => string): any; }, Symbol(foo3, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 31, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 33, 27), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 34, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 35, 14)) function foo4(x: typeof b); ->foo4 : { (x: { new(x: string): string; }): any; (x: { new(x: string): string; }): any; } ->x : { new(x: string): string; } ->b : { new(x: string): string; } +>foo4 : { (x: { new(x: string): string; }): any; (x: { new(x: string): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 35, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 37, 27), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 38, 27)) +>x : { new(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 37, 14)) +>b : { new(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 19, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { new(x: string): string; }): any; (x: { new(x: string): string; }): any; } ->x : { new(x: string): string; } ->b : { new(x: string): string; } +>foo4 : { (x: { new(x: string): string; }): any; (x: { new(x: string): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 35, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 37, 27), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 38, 27)) +>x : { new(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 38, 14)) +>b : { new(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 19, 3)) function foo4(x: any) { } ->foo4 : { (x: { new(x: string): string; }): any; (x: { new(x: string): string; }): any; } ->x : any +>foo4 : { (x: { new(x: string): string; }): any; (x: { new(x: string): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 35, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 37, 27), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 38, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 39, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 39, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 41, 20), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 42, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 41, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 0, 0)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 39, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 41, 20), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 42, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 42, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 8, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 39, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 41, 20), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 42, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 43, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 43, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 45, 20), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 46, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 45, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 0, 0)) function foo9(x: C); // error, types are structurally equal ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 43, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 45, 20), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 46, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 46, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 4, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 43, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 45, 20), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 46, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 47, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: new (x: string, y: string) => string): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: new (x: string, y: string) => string): any; }, Symbol(foo10, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 47, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 49, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 50, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 49, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 0, 0)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: new (x: string, y: string) => string): any; } ->x : new (x: string, y: string) => string ->a : new (x: string, y: string) => string +>foo10 : { (x: B): any; (x: new (x: string, y: string) => string): any; }, Symbol(foo10, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 47, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 49, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 50, 28)) +>x : new (x: string, y: string) => string, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 50, 15)) +>a : new (x: string, y: string) => string, Symbol(a, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 18, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: new (x: string, y: string) => string): any; } ->x : any +>foo10 : { (x: B): any; (x: new (x: string, y: string) => string): any; }, Symbol(foo10, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 47, 25), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 49, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 50, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 51, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { new(x: string): string; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { new(x: string): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 51, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 53, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 54, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 53, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 0, 0)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { new(x: string): string; }): any; } ->x : { new(x: string): string; } ->b : { new(x: string): string; } +>foo11 : { (x: B): any; (x: { new(x: string): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 51, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 53, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 54, 28)) +>x : { new(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 54, 15)) +>b : { new(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 19, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { new(x: string): string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { new(x: string): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 51, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 53, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 54, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 55, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 55, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 57, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 58, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 57, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 8, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 55, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 57, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 58, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 58, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 4, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 55, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 57, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 58, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 59, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 59, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 61, 31), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 62, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 61, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 12, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 59, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 61, 31), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 62, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 62, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 4, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 59, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 61, 31), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 62, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 63, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: new (x: string, y: string) => string): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: new (x: string, y: string) => string): any; }, Symbol(foo13, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 63, 27), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 65, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 66, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 65, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 8, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: new (x: string, y: string) => string): any; } ->x : new (x: string, y: string) => string ->a : new (x: string, y: string) => string +>foo13 : { (x: I): any; (x: new (x: string, y: string) => string): any; }, Symbol(foo13, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 63, 27), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 65, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 66, 28)) +>x : new (x: string, y: string) => string, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 66, 15)) +>a : new (x: string, y: string) => string, Symbol(a, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 18, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: new (x: string, y: string) => string): any; } ->x : any +>foo13 : { (x: I): any; (x: new (x: string, y: string) => string): any; }, Symbol(foo13, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 63, 27), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 65, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 66, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 67, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { new(x: string): string; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { new(x: string): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 67, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 69, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 70, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 69, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 8, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { new(x: string): string; }): any; } ->x : { new(x: string): string; } ->b : { new(x: string): string; } +>foo14 : { (x: I): any; (x: { new(x: string): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 67, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 69, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 70, 28)) +>x : { new(x: string): string; }, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 70, 15)) +>b : { new(x: string): string; }, Symbol(b, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 19, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { new(x: string): string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { new(x: string): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 67, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 69, 21), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 70, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 71, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 71, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 73, 30), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 74, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 73, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 12, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 71, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 73, 30), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 74, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 74, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 4, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 71, 26), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 73, 30), Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 74, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithConstructSignaturesDifferingParamCounts.ts, 75, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.types index d3cf9bc0063..f704c8916cc 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.types @@ -2,340 +2,343 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 0, 0)) foo(x: T): T { return null; } ->foo : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 2, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 3, 8)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 3, 11)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 3, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 3, 8)) +>null : null } class B { ->B : B ->T : T +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 4, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 6, 8)) foo(x: T): T { return null; } ->foo : (x: T) => T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 6, 12)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 7, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 6, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 6, 8)) +>null : null } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 10, 8)) foo(x: T): T { return null; } ->foo : (x: T) => T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 10, 12)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 11, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 10, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 10, 8)) +>null : null } interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 12, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 14, 12)) foo(x: T): T; ->foo : (x: T) => T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 14, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 15, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 14, 12)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 14, 12)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 16, 1)) foo(x: T): T; ->foo : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 18, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 19, 8)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 19, 11)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 19, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 19, 8)) } var a: { foo(x: T): T } ->a : { foo(x: T): T; } ->foo : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 22, 3)) +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 22, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 22, 13)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 22, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 22, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 22, 13)) var b = { foo(x: T) { return x; } }; ->b : { foo(x: T): T; } +>b : { foo(x: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 3)) >{ foo(x: T) { return x; } } : { foo(x: T): T; } ->foo : (x: T) => T ->T : T ->x : T ->T : T ->x : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 14)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 17)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 14)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 17)) function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 39), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 25, 20), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 25, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 39), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 25, 20), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 26, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 39), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 25, 20), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 26, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 27, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 27, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 29, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 30, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 29, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 27, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 29, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 30, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 30, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 27, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 29, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 30, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 31, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 33, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 34, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 33, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 33, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 34, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 34, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 33, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 34, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 35, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 35, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 37, 28), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 38, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 37, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 35, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 37, 28), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 38, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 38, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 35, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 37, 28), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 38, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 39, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 39, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 41, 27), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 42, 27)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 41, 14)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 22, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 39, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 41, 27), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 42, 27)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 42, 14)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 22, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 39, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 41, 27), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 42, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 43, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->b : { foo(x: T): T; } +>foo4 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 43, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 45, 27), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 46, 27)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 45, 14)) +>b : { foo(x: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->b : { foo(x: T): T; } +>foo4 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 43, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 45, 27), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 46, 27)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 46, 14)) +>b : { foo(x: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo4 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 43, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 45, 27), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 46, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 47, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 47, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 49, 20), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 50, 28)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 49, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 47, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 49, 20), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 50, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 50, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 47, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 49, 20), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 50, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 51, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 51, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 53, 21), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 54, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 53, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 51, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 53, 21), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 54, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 54, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 51, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 53, 21), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 54, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 55, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 55, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 57, 20), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 58, 28)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 57, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 55, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 57, 20), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 58, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 58, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 55, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 57, 20), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 58, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 59, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 59, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 61, 20), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 62, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 61, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 0, 0)) function foo7(x: typeof a); // error ->foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 59, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 61, 20), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 62, 27)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 62, 14)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 22, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 59, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 61, 20), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 62, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 63, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 63, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 65, 28), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 66, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 65, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 4, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 63, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 65, 28), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 66, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 66, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 63, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 65, 28), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 66, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 67, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 67, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 69, 28), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 70, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 69, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 4, 1)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 67, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 69, 28), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 70, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 70, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 67, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 69, 28), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 70, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 71, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 71, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 73, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 74, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 73, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 4, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 71, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 73, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 74, 28)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 74, 15)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 22, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 71, 25), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 73, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 74, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 75, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: T): T; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo(x: T): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 75, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 77, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 78, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 77, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 4, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->b : { foo(x: T): T; } +>foo11 : { (x: B): any; (x: { foo(x: T): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 75, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 77, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 78, 28)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 78, 15)) +>b : { foo(x: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: T): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 75, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 77, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 78, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 79, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 79, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 81, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 82, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 81, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 12, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 79, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 81, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 82, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 82, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 79, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 81, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 82, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 83, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 83, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 85, 23), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 86, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 85, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 16, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 83, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 85, 23), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 86, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 86, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 8, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 83, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 85, 23), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 86, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 87, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 87, 27), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 89, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 90, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 89, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 12, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 87, 27), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 89, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 90, 28)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 90, 15)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 22, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 87, 27), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 89, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 90, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 91, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: T): T; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo(x: T): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 91, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 93, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 94, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 93, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 12, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->b : { foo(x: T): T; } +>foo14 : { (x: I): any; (x: { foo(x: T): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 91, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 93, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 94, 28)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 94, 15)) +>b : { foo(x: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 23, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: T): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 91, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 93, 29), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 94, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 95, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 95, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 97, 22), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 98, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 97, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 16, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 95, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 97, 22), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 98, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 98, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 8, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 95, 26), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 97, 22), Decl(objectTypesIdentityWithGenericCallSignatures.ts, 98, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures.ts, 99, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.types index 0c00e587b78..81cf96fbcc9 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.types @@ -2,361 +2,364 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 0, 0)) foo(x: T, y: U): T { return null; } ->foo : (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 2, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 3, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 3, 10)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 3, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 3, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 3, 19)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 3, 10)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 3, 8)) +>null : null } class B { ->B : B ->T : T ->U : U +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 4, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 6, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 6, 10)) foo(x: T, y: U): T { return null; } ->foo : (x: T, y: U) => T ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 6, 15)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 7, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 6, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 7, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 6, 10)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 6, 8)) +>null : null } class C { ->C : C ->T : T ->U : U +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 10, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 10, 10)) foo(x: T, y: U): T { return null; } ->foo : (x: T, y: U) => T ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 10, 15)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 11, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 10, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 11, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 10, 10)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 10, 8)) +>null : null } interface I { ->I : I ->T : T ->U : U +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 12, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 14, 12)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 14, 14)) foo(x: T, y: U): T; ->foo : (x: T, y: U) => T ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 14, 19)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 15, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 14, 12)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 15, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 14, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 14, 12)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 16, 1)) foo(x: T, y: U): T; ->foo : (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 18, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 19, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 19, 10)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 19, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 19, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 19, 19)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 19, 10)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 19, 8)) } var a: { foo(x: T, y: U): T } ->a : { foo(x: T, y: U): T; } ->foo : (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>a : { foo(x: T, y: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 3)) +>foo : (x: T, y: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 15)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 19)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 13)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 24)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 15)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 13)) var b = { foo(x: T, y: U) { return x; } }; ->b : { foo(x: T, y: U): T; } +>b : { foo(x: T, y: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 3)) >{ foo(x: T, y: U) { return x; } } : { foo(x: T, y: U): T; } ->foo : (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->x : T +>foo : (x: T, y: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 14)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 20)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 14)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 25)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 20)) function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 48), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 25, 20), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 25, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 48), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 25, 20), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 26, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 48), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 25, 20), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 26, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 27, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 27, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 29, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 30, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 29, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 27, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 29, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 30, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 30, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 27, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 29, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 30, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 31, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 33, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 34, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 33, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 33, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 34, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 34, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 33, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 34, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 35, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 35, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 37, 36), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 38, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 37, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 35, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 37, 36), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 38, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 38, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 35, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 37, 36), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 38, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 39, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->a : { foo(x: T, y: U): T; } +>foo3 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 39, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 41, 27), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 42, 27)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 41, 14)) +>a : { foo(x: T, y: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->a : { foo(x: T, y: U): T; } +>foo3 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 39, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 41, 27), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 42, 27)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 42, 14)) +>a : { foo(x: T, y: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; } ->x : any +>foo3 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 39, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 41, 27), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 42, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 43, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->b : { foo(x: T, y: U): T; } +>foo4 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 43, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 45, 27), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 46, 27)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 45, 14)) +>b : { foo(x: T, y: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->b : { foo(x: T, y: U): T; } +>foo4 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 43, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 45, 27), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 46, 27)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 46, 14)) +>b : { foo(x: T, y: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; } ->x : any +>foo4 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 43, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 45, 27), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 46, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 47, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 47, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 49, 20), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 50, 36)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 49, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 47, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 49, 20), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 50, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 50, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 47, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 49, 20), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 50, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 51, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 51, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 53, 21), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 54, 37)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 53, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 51, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 53, 21), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 54, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 54, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 51, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 53, 21), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 54, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 55, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 55, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 57, 20), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 58, 36)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 57, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 55, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 57, 20), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 58, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 58, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 55, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 57, 20), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 58, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 59, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: T, y: U): T; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 59, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 61, 20), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 62, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 61, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 0, 0)) function foo7(x: typeof a); // no error, bug? ->foo7 : { (x: A): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->a : { foo(x: T, y: U): T; } +>foo7 : { (x: A): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 59, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 61, 20), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 62, 27)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 62, 14)) +>a : { foo(x: T, y: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: T, y: U): T; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 59, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 61, 20), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 62, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 63, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 63, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 65, 36), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 66, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 65, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 4, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 63, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 65, 36), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 66, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 66, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 63, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 65, 36), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 66, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 67, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 67, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 69, 36), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 70, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 69, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 4, 1)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 67, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 69, 36), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 70, 36)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 70, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 67, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 69, 36), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 70, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 71, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 71, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 73, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 74, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 73, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 4, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->a : { foo(x: T, y: U): T; } +>foo10 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 71, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 73, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 74, 28)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 74, 15)) +>a : { foo(x: T, y: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 71, 25), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 73, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 74, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 75, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 75, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 77, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 78, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 77, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 4, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->b : { foo(x: T, y: U): T; } +>foo11 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 75, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 77, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 78, 28)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 78, 15)) +>b : { foo(x: T, y: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 75, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 77, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 78, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 79, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 79, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 81, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 82, 37)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 81, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 12, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 79, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 81, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 82, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 82, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 79, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 81, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 82, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 83, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 83, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 85, 23), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 86, 38)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 85, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 16, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 83, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 85, 23), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 86, 38)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 86, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 8, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 83, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 85, 23), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 86, 38)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 87, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 87, 27), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 89, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 90, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 89, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 12, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->a : { foo(x: T, y: U): T; } +>foo13 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 87, 27), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 89, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 90, 28)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 90, 15)) +>a : { foo(x: T, y: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 22, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 87, 27), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 89, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 90, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 91, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 91, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 93, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 94, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 93, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 12, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->b : { foo(x: T, y: U): T; } +>foo14 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 91, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 93, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 94, 28)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 94, 15)) +>b : { foo(x: T, y: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 23, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 91, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 93, 37), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 94, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 95, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 95, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 97, 22), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 98, 37)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 97, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 16, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 95, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 97, 22), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 98, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 98, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 8, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 95, 26), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 97, 22), Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 98, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignatures2.ts, 99, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.types index 432a618c4e2..f15dec66a29 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.types @@ -4,361 +4,365 @@ // optional or rest) and types, and identical return types. class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 0, 0)) foo(x: T): string { return null; } ->foo : (x: T) => string ->T : T ->Date : Date ->x : T ->T : T +>foo : (x: T) => string, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 4, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 5, 8)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 5, 24)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 5, 8)) +>null : null } class B> { ->B : B ->T : T ->Array : T[] +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 8, 8)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) foo(x: T): string { return null; } ->foo : (x: T) => string ->x : T ->T : T +>foo : (x: T) => string, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 8, 34)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 9, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 8, 8)) +>null : null } class C { ->C : C ->T : T ->String : String +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 12, 8)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) foo(x: T): string { return null; } ->foo : (x: T) => string ->x : T ->T : T +>foo : (x: T) => string, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 12, 27)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 13, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 12, 8)) +>null : null } interface I { ->I : I ->T : T ->Number : Number +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 14, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 16, 12)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) foo(x: T): string; ->foo : (x: T) => string ->x : T ->T : T +>foo : (x: T) => string, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 16, 31)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 17, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 16, 12)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 18, 1)) foo(x: T): string; ->foo : (x: T) => string ->T : T ->Boolean : Boolean ->x : T ->T : T +>foo : (x: T) => string, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 20, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 21, 8)) +>Boolean : Boolean, Symbol(Boolean, Decl(lib.d.ts, 443, 38), Decl(lib.d.ts, 456, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 21, 27)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 21, 8)) } var a: { foo>(x: T): string } ->a : { foo(x: T): string; } ->foo : (x: T) => string ->T : T ->Array : T[] ->x : T ->T : T +>a : { foo(x: T): string; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 24, 3)) +>foo : (x: T) => string, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 24, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 24, 13)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 24, 38)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 24, 13)) var b = { foo(x: T) { return ''; } }; ->b : { foo(x: T): string; } +>b : { foo(x: T): string; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 25, 3)) >{ foo(x: T) { return ''; } } : { foo(x: T): string; } ->foo : (x: T) => string ->T : T ->RegExp : RegExp ->x : T ->T : T +>foo : (x: T) => string, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 25, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 25, 14)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 25, 32)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 25, 14)) +>'' : string function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 25, 55), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 27, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 25, 55), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 28, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 25, 55), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 28, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 29, 14)) function foo1b(x: B>); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B ->Array : T[] +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 31, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 32, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 31, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 6, 1)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo1b(x: B>); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B ->Array : T[] +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 31, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 32, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 32, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 6, 1)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 31, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 32, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 33, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C ->String : String +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 35, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 36, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 35, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 10, 1)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C ->String : String +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 35, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 36, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 36, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 10, 1)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 35, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 36, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 37, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I ->Number : Number +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 39, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 40, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 39, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 14, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I ->Number : Number +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 39, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 40, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 40, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 14, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 39, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 40, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 41, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: T): string; }): any; (x: { foo(x: T): string; }): any; } ->x : { foo(x: T): string; } ->a : { foo(x: T): string; } +>foo3 : { (x: { foo(x: T): string; }): any; (x: { foo(x: T): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 44, 27)) +>x : { foo(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 43, 14)) +>a : { foo(x: T): string; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 24, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: T): string; }): any; (x: { foo(x: T): string; }): any; } ->x : { foo(x: T): string; } ->a : { foo(x: T): string; } +>foo3 : { (x: { foo(x: T): string; }): any; (x: { foo(x: T): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 44, 27)) +>x : { foo(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 44, 14)) +>a : { foo(x: T): string; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 24, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: T): string; }): any; (x: { foo(x: T): string; }): any; } ->x : any +>foo3 : { (x: { foo(x: T): string; }): any; (x: { foo(x: T): string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 44, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 45, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: T): string; }): any; (x: { foo(x: T): string; }): any; } ->x : { foo(x: T): string; } ->b : { foo(x: T): string; } +>foo4 : { (x: { foo(x: T): string; }): any; (x: { foo(x: T): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 48, 27)) +>x : { foo(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 47, 14)) +>b : { foo(x: T): string; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 25, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: T): string; }): any; (x: { foo(x: T): string; }): any; } ->x : { foo(x: T): string; } ->b : { foo(x: T): string; } +>foo4 : { (x: { foo(x: T): string; }): any; (x: { foo(x: T): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 48, 27)) +>x : { foo(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 48, 14)) +>b : { foo(x: T): string; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 25, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: T): string; }): any; (x: { foo(x: T): string; }): any; } ->x : any +>foo4 : { (x: { foo(x: T): string; }): any; (x: { foo(x: T): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 48, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 49, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 52, 35)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 51, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 0, 0)) function foo5(x: B>); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B ->Array : T[] +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 52, 35)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 52, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 6, 1)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 52, 35)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 53, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 56, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 55, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C ->String : String +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 56, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 56, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 10, 1)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 56, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 57, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 60, 28)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 59, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I ->Number : Number +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 60, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 60, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 14, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 60, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 61, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: T): string; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: T): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 64, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 63, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 0, 0)) function foo7(x: typeof a); // ok ->foo7 : { (x: A): any; (x: { foo(x: T): string; }): any; } ->x : { foo(x: T): string; } ->a : { foo(x: T): string; } +>foo7 : { (x: A): any; (x: { foo(x: T): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 64, 27)) +>x : { foo(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 64, 14)) +>a : { foo(x: T): string; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 24, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: T): string; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: T): string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 64, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 65, 14)) function foo8(x: B>); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B ->Array : T[] +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 67, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 68, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 67, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 6, 1)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I ->Number : Number +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 67, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 68, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 68, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 14, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 67, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 68, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 69, 14)) function foo9(x: B>); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B ->Array : T[] +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 71, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 72, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 71, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 6, 1)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo9(x: C); // ok ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C ->String : String +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 71, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 72, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 72, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 10, 1)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 71, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 72, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 73, 14)) function foo10(x: B>); ->foo10 : { (x: B): any; (x: { foo(x: T): string; }): any; } ->x : B ->B : B ->Array : T[] +>foo10 : { (x: B): any; (x: { foo(x: T): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 75, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 76, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 75, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 6, 1)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo(x: T): string; }): any; } ->x : { foo(x: T): string; } ->a : { foo(x: T): string; } +>foo10 : { (x: B): any; (x: { foo(x: T): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 75, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 76, 28)) +>x : { foo(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 76, 15)) +>a : { foo(x: T): string; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 24, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: T): string; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: T): string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 75, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 76, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 77, 15)) function foo11(x: B>); ->foo11 : { (x: B): any; (x: { foo(x: T): string; }): any; } ->x : B ->B : B ->Array : T[] +>foo11 : { (x: B): any; (x: { foo(x: T): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 79, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 80, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 79, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 6, 1)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: T): string; }): any; } ->x : { foo(x: T): string; } ->b : { foo(x: T): string; } +>foo11 : { (x: B): any; (x: { foo(x: T): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 79, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 80, 28)) +>x : { foo(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 80, 15)) +>b : { foo(x: T): string; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 25, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: T): string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: T): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 79, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 80, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 81, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I ->Number : Number +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 83, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 84, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 83, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 14, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C ->String : String +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 83, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 84, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 84, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 10, 1)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 83, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 84, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 85, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 88, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 87, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 18, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C ->String : String +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 88, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 88, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 10, 1)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 88, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 89, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: T): string; }): any; } ->x : I ->I : I ->Number : Number +>foo13 : { (x: I): any; (x: { foo(x: T): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 91, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 92, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 91, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 14, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo(x: T): string; }): any; } ->x : { foo(x: T): string; } ->a : { foo(x: T): string; } +>foo13 : { (x: I): any; (x: { foo(x: T): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 91, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 92, 28)) +>x : { foo(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 92, 15)) +>a : { foo(x: T): string; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 24, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: T): string; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: T): string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 91, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 92, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 93, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: T): string; }): any; } ->x : I ->I : I ->Number : Number +>foo14 : { (x: I): any; (x: { foo(x: T): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 95, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 96, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 95, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 14, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo(x: T): string; }): any; } ->x : { foo(x: T): string; } ->b : { foo(x: T): string; } +>foo14 : { (x: I): any; (x: { foo(x: T): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 95, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 96, 28)) +>x : { foo(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 96, 15)) +>b : { foo(x: T): string; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 25, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: T): string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: T): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 95, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 96, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 97, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 100, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 99, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 18, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C ->String : String +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 100, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 100, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 10, 1)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 100, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts, 101, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.types index 8b5a042c1e2..ec73372f0cf 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.types @@ -4,336 +4,340 @@ // optional or rest) and types, and identical return types. class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 0, 0)) foo(x: T): string { return null; } ->foo : (x: T) => string ->T : T ->x : T ->T : T +>foo : (x: T) => string, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 4, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 5, 8)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 5, 11)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 5, 8)) +>null : null } class B { ->B : B ->T : T +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 8, 8)) foo(x: T): number { return null; } ->foo : (x: T) => number ->x : T ->T : T +>foo : (x: T) => number, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 8, 12)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 9, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 8, 8)) +>null : null } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 10, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 12, 8)) foo(x: T): boolean { return null; } ->foo : (x: T) => boolean ->x : T ->T : T +>foo : (x: T) => boolean, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 12, 12)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 13, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 12, 8)) +>null : null } interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 14, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 16, 12)) foo(x: T): Date; ->foo : (x: T) => Date ->x : T ->T : T ->Date : Date +>foo : (x: T) => Date, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 16, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 17, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 16, 12)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 18, 1)) foo(x: T): RegExp; ->foo : (x: T) => RegExp ->T : T ->x : T ->T : T ->RegExp : RegExp +>foo : (x: T) => RegExp, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 20, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 21, 8)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 21, 11)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 21, 8)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) } var a: { foo(x: T): T } ->a : { foo(x: T): T; } ->foo : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 24, 3)) +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 24, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 24, 13)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 24, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 24, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 24, 13)) var b = { foo(x: T) { return null; } }; ->b : { foo(x: T): any; } +>b : { foo(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 25, 3)) >{ foo(x: T) { return null; } } : { foo(x: T): any; } ->foo : (x: T) => any ->T : T ->x : T ->T : T +>foo : (x: T) => any, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 25, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 25, 14)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 25, 17)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 25, 14)) +>null : null function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 25, 42), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 27, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 25, 42), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 28, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 25, 42), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 28, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 29, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 31, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 32, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 31, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 6, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 31, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 32, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 32, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 6, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 31, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 32, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 33, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 35, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 36, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 35, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 10, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 35, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 36, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 36, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 10, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 35, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 36, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 37, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 39, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 40, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 39, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 14, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 39, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 40, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 40, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 14, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 39, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 40, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 41, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 44, 27)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 43, 14)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 24, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 44, 27)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 44, 14)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 24, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 44, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 45, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: T): any; }): any; (x: { foo(x: T): any; }): any; } ->x : { foo(x: T): any; } ->b : { foo(x: T): any; } +>foo4 : { (x: { foo(x: T): any; }): any; (x: { foo(x: T): any; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 48, 27)) +>x : { foo(x: T): any; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 47, 14)) +>b : { foo(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 25, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: T): any; }): any; (x: { foo(x: T): any; }): any; } ->x : { foo(x: T): any; } ->b : { foo(x: T): any; } +>foo4 : { (x: { foo(x: T): any; }): any; (x: { foo(x: T): any; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 48, 27)) +>x : { foo(x: T): any; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 48, 14)) +>b : { foo(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 25, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: T): any; }): any; (x: { foo(x: T): any; }): any; } ->x : any +>foo4 : { (x: { foo(x: T): any; }): any; (x: { foo(x: T): any; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 48, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 49, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 52, 28)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 51, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 52, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 52, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 6, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 52, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 53, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 56, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 55, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 56, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 56, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 10, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 56, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 57, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 60, 28)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 59, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 60, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 60, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 14, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 60, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 61, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 64, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 63, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 0, 0)) function foo7(x: typeof a); // ok ->foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 64, 27)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 64, 14)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 24, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 64, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 65, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 67, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 68, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 67, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 6, 1)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 67, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 68, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 68, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 14, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 67, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 68, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 69, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 71, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 72, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 71, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 6, 1)) function foo9(x: C); // ok ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 71, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 72, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 72, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 10, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 71, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 72, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 73, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 75, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 76, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 75, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 6, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 75, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 76, 28)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 76, 15)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 24, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 75, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 76, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 77, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: T): any; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo(x: T): any; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 79, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 80, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 79, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 6, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: T): any; }): any; } ->x : { foo(x: T): any; } ->b : { foo(x: T): any; } +>foo11 : { (x: B): any; (x: { foo(x: T): any; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 79, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 80, 28)) +>x : { foo(x: T): any; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 80, 15)) +>b : { foo(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 25, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: T): any; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: T): any; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 79, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 80, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 81, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 83, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 84, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 83, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 14, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 83, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 84, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 84, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 10, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 83, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 84, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 85, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 88, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 87, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 18, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 88, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 88, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 10, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 88, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 89, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 91, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 92, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 91, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 14, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 91, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 92, 28)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 92, 15)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 24, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 91, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 92, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 93, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: T): any; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo(x: T): any; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 95, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 96, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 95, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 14, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo(x: T): any; }): any; } ->x : { foo(x: T): any; } ->b : { foo(x: T): any; } +>foo14 : { (x: I): any; (x: { foo(x: T): any; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 95, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 96, 28)) +>x : { foo(x: T): any; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 96, 15)) +>b : { foo(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 25, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: T): any; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: T): any; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 95, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 96, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 97, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 100, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 99, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 18, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 100, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 100, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 10, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 100, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.ts, 101, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.types index 2863cafa885..fc2f0ab0892 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.types @@ -4,364 +4,368 @@ // optional or rest) and types, and identical return types. class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 0, 0)) foo(x: T): string { return null; } ->foo : (x: T) => string ->T : T ->Date : Date ->x : T ->T : T +>foo : (x: T) => string, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 4, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 5, 8)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 5, 24)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 5, 8)) +>null : null } class B { ->B : B ->T : T ->Date : Date +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 8, 8)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) foo(x: T): number { return null; } ->foo : (x: T) => number ->x : T ->T : T +>foo : (x: T) => number, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 8, 25)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 9, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 8, 8)) +>null : null } class C { ->C : C ->T : T ->Date : Date +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 10, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 12, 8)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) foo(x: T): boolean { return null; } ->foo : (x: T) => boolean ->x : T ->T : T +>foo : (x: T) => boolean, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 12, 25)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 13, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 12, 8)) +>null : null } interface I { ->I : I ->T : T ->Date : Date +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 14, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 16, 12)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) foo(x: T): Date; ->foo : (x: T) => Date ->x : T ->T : T ->Date : Date +>foo : (x: T) => Date, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 16, 29)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 17, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 16, 12)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 18, 1)) foo(x: T): RegExp; ->foo : (x: T) => RegExp ->T : T ->Date : Date ->x : T ->T : T ->RegExp : RegExp +>foo : (x: T) => RegExp, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 20, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 21, 8)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 21, 24)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 21, 8)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) } var a: { foo(x: T): T } ->a : { foo(x: T): T; } ->foo : (x: T) => T ->T : T ->Date : Date ->x : T ->T : T ->T : T +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 24, 3)) +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 24, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 24, 13)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 24, 29)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 24, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 24, 13)) var b = { foo(x: T) { return null; } }; ->b : { foo(x: T): any; } +>b : { foo(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 25, 3)) >{ foo(x: T) { return null; } } : { foo(x: T): any; } ->foo : (x: T) => any ->T : T ->Date : Date ->x : T ->T : T +>foo : (x: T) => any, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 25, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 25, 14)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 25, 30)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 25, 14)) +>null : null function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 25, 55), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 27, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 25, 55), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 28, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 25, 55), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 28, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 29, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B ->Date : Date +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 31, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 32, 27)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 31, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B ->Date : Date +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 31, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 32, 27)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 32, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 31, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 32, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 33, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 35, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 36, 27)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 35, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 35, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 36, 27)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 36, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 35, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 36, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 37, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I ->Date : Date +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 39, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 40, 26)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 39, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 14, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I ->Date : Date +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 39, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 40, 26)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 40, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 14, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 39, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 40, 26)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 41, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 44, 27)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 43, 14)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 24, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 44, 27)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 44, 14)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 24, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo3 : { (x: { foo(x: T): T; }): any; (x: { foo(x: T): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 44, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 45, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: T): any; }): any; (x: { foo(x: T): any; }): any; } ->x : { foo(x: T): any; } ->b : { foo(x: T): any; } +>foo4 : { (x: { foo(x: T): any; }): any; (x: { foo(x: T): any; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 48, 27)) +>x : { foo(x: T): any; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 47, 14)) +>b : { foo(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 25, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: T): any; }): any; (x: { foo(x: T): any; }): any; } ->x : { foo(x: T): any; } ->b : { foo(x: T): any; } +>foo4 : { (x: { foo(x: T): any; }): any; (x: { foo(x: T): any; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 48, 27)) +>x : { foo(x: T): any; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 48, 14)) +>b : { foo(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 25, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: T): any; }): any; (x: { foo(x: T): any; }): any; } ->x : any +>foo4 : { (x: { foo(x: T): any; }): any; (x: { foo(x: T): any; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 48, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 49, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 52, 26)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 51, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B ->Date : Date +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 52, 26)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 52, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 52, 26)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 53, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 56, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 55, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 56, 27)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 56, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 56, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 57, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 60, 26)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 59, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I ->Date : Date +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 60, 26)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 60, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 14, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 60, 26)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 61, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 64, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 63, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 0, 0)) function foo7(x: typeof a); // ok ->foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 64, 27)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 64, 14)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 24, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: T): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 64, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 65, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B ->Date : Date +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 67, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 68, 26)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 67, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I ->Date : Date +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 67, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 68, 26)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 68, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 14, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 67, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 68, 26)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 69, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B ->Date : Date +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 71, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 72, 26)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 71, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo9(x: C); // ok ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 71, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 72, 26)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 72, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 71, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 72, 26)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 73, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; } ->x : B ->B : B ->Date : Date +>foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 75, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 76, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 75, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 75, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 76, 28)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 76, 15)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 24, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: T): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 75, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 76, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 77, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: T): any; }): any; } ->x : B ->B : B ->Date : Date +>foo11 : { (x: B): any; (x: { foo(x: T): any; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 79, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 80, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 79, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: T): any; }): any; } ->x : { foo(x: T): any; } ->b : { foo(x: T): any; } +>foo11 : { (x: B): any; (x: { foo(x: T): any; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 79, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 80, 28)) +>x : { foo(x: T): any; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 80, 15)) +>b : { foo(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 25, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: T): any; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: T): any; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 79, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 80, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 81, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I ->Date : Date +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 83, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 84, 27)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 83, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 14, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 83, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 84, 27)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 84, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 83, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 84, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 85, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 88, 28)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 87, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 18, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 88, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 88, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 88, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 89, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; } ->x : I ->I : I ->Date : Date +>foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 91, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 92, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 91, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 14, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; } ->x : { foo(x: T): T; } ->a : { foo(x: T): T; } +>foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 91, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 92, 28)) +>x : { foo(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 92, 15)) +>a : { foo(x: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 24, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: T): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 91, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 92, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 93, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: T): any; }): any; } ->x : I ->I : I ->Date : Date +>foo14 : { (x: I): any; (x: { foo(x: T): any; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 95, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 96, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 95, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 14, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo(x: T): any; }): any; } ->x : { foo(x: T): any; } ->b : { foo(x: T): any; } +>foo14 : { (x: I): any; (x: { foo(x: T): any; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 95, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 96, 28)) +>x : { foo(x: T): any; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 96, 15)) +>b : { foo(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 25, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: T): any; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: T): any; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 95, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 96, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 97, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 100, 27)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 99, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 18, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 100, 27)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 100, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 100, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts, 101, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.types index 125b82c9915..e7df8ef6f78 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.types @@ -2,372 +2,375 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 0, 0)) foo(x: T): T { return null; } ->foo : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 2, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 3, 8)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 3, 11)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 3, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 3, 8)) +>null : null } class B { ->B : B ->U : U ->V : V +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 6, 8)) +>V : V, Symbol(V, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 6, 10)) foo(x: U): U { return null; } ->foo : (x: U) => U ->x : U ->U : U ->U : U +>foo : (x: U) => U, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 6, 15)) +>x : U, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 7, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 6, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 6, 8)) +>null : null } class C { ->C : C ->V : V ->W : W ->X : X +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 8, 1)) +>V : V, Symbol(V, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 10, 8)) +>W : W, Symbol(W, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 10, 10)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 10, 13)) foo(x: V): V { return null; } ->foo : (x: V) => V ->x : V ->V : V ->V : V +>foo : (x: V) => V, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 10, 18)) +>x : V, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 11, 8)) +>V : V, Symbol(V, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 10, 8)) +>V : V, Symbol(V, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 10, 8)) +>null : null } interface I { ->I : I ->X : X ->Y : Y ->Z : Z ->A : A +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 12, 1)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 14, 12)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 14, 14)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 14, 17)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 14, 20)) foo(x: X): X; ->foo : (x: X) => X ->x : X ->X : X ->X : X +>foo : (x: X) => X, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 14, 25)) +>x : X, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 15, 8)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 14, 12)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 14, 12)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 16, 1)) foo(x: Y): Y; ->foo : (x: Y) => Y ->Y : Y ->Z : Z ->A : A ->B : B ->x : Y ->Y : Y ->Y : Y +>foo : (x: Y) => Y, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 18, 14)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 19, 8)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 19, 10)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 19, 13)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 19, 16)) +>x : Y, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 19, 20)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 19, 8)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 19, 8)) } var a: { foo(x: Z): Z } ->a : { foo(x: Z): Z; } ->foo : (x: Z) => Z ->Z : Z ->A : A ->B : B ->C : C ->D : D ->x : Z ->Z : Z ->Z : Z +>a : { foo(x: Z): Z; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 3)) +>foo : (x: Z) => Z, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 8)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 13)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 18)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 21)) +>D : D, Symbol(D, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 24)) +>x : Z, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 28)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 13)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 13)) var b = { foo(x: A) { return x; } }; ->b : { foo(x: A): A; } +>b : { foo(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 3)) >{ foo(x: A) { return x; } } : { foo(x: A): A; } ->foo : (x: A) => A ->A : A ->B : B ->C : C ->D : D ->E : E ->F : F ->x : A ->A : A ->x : A +>foo : (x: A) => A, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 9)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 19)) +>D : D, Symbol(D, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 22)) +>E : E, Symbol(E, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 25)) +>F : F, Symbol(F, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 28)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 32)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 14)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 32)) function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 54), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 25, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 25, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 54), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 25, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 26, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 54), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 25, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 26, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 27, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 27, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 29, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 30, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 29, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 27, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 29, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 30, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 30, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 27, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 29, 37), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 30, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 31, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 33, 46), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 34, 46)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 33, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 33, 46), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 34, 46)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 34, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 33, 46), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 34, 46)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 35, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 35, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 37, 53), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 38, 53)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 37, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 35, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 37, 53), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 38, 53)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 38, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 35, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 37, 53), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 38, 53)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 39, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: Z): Z; }): any; (x: { foo(x: Z): Z; }): any; } ->x : { foo(x: Z): Z; } ->a : { foo(x: Z): Z; } +>foo3 : { (x: { foo(x: Z): Z; }): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 39, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 41, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 42, 27)) +>x : { foo(x: Z): Z; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 41, 14)) +>a : { foo(x: Z): Z; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: Z): Z; }): any; (x: { foo(x: Z): Z; }): any; } ->x : { foo(x: Z): Z; } ->a : { foo(x: Z): Z; } +>foo3 : { (x: { foo(x: Z): Z; }): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 39, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 41, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 42, 27)) +>x : { foo(x: Z): Z; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 42, 14)) +>a : { foo(x: Z): Z; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: Z): Z; }): any; (x: { foo(x: Z): Z; }): any; } ->x : any +>foo3 : { (x: { foo(x: Z): Z; }): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 39, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 41, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 42, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 43, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: A): A; }): any; (x: { foo(x: A): A; }): any; } ->x : { foo(x: A): A; } ->b : { foo(x: A): A; } +>foo4 : { (x: { foo(x: A): A; }): any; (x: { foo(x: A): A; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 43, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 45, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 46, 27)) +>x : { foo(x: A): A; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 45, 14)) +>b : { foo(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: A): A; }): any; (x: { foo(x: A): A; }): any; } ->x : { foo(x: A): A; } ->b : { foo(x: A): A; } +>foo4 : { (x: { foo(x: A): A; }): any; (x: { foo(x: A): A; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 43, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 45, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 46, 27)) +>x : { foo(x: A): A; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 46, 14)) +>b : { foo(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: A): A; }): any; (x: { foo(x: A): A; }): any; } ->x : any +>foo4 : { (x: { foo(x: A): A; }): any; (x: { foo(x: A): A; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 43, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 45, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 46, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 47, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 47, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 49, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 50, 36)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 49, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 47, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 49, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 50, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 50, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 47, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 49, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 50, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 51, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 51, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 53, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 54, 46)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 53, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 51, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 53, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 54, 46)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 54, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 51, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 53, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 54, 46)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 55, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 55, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 57, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 58, 51)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 57, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I ->Date : Date +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 55, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 57, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 58, 51)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 58, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 12, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 55, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 57, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 58, 51)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 59, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: Z): Z; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 59, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 61, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 62, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 61, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo7(x: typeof a); // no error, bug? ->foo7 : { (x: A): any; (x: { foo(x: Z): Z; }): any; } ->x : { foo(x: Z): Z; } ->a : { foo(x: Z): Z; } +>foo7 : { (x: A): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 59, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 61, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 62, 27)) +>x : { foo(x: Z): Z; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 62, 14)) +>a : { foo(x: Z): Z; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: Z): Z; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 59, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 61, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 62, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 63, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 63, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 65, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 66, 51)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 65, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I ->Date : Date +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 63, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 65, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 66, 51)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 66, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 12, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 63, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 65, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 66, 51)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 67, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C>): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C>): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 67, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 69, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 70, 55)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 69, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) function foo9(x: C>); // error ->foo9 : { (x: B): any; (x: C>): any; } ->x : C> ->C : C ->B : B +>foo9 : { (x: B): any; (x: C>): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 67, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 69, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 70, 55)) +>x : C>, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 70, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 8, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C>): any; } ->x : any +>foo9 : { (x: B): any; (x: C>): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 67, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 69, 36), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 70, 55)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 71, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: Z): Z; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 71, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 73, 38), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 74, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 73, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo(x: Z): Z; }): any; } ->x : { foo(x: Z): Z; } ->a : { foo(x: Z): Z; } +>foo10 : { (x: B): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 71, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 73, 38), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 74, 28)) +>x : { foo(x: Z): Z; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 74, 15)) +>a : { foo(x: Z): Z; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: Z): Z; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 71, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 73, 38), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 74, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 75, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: A): A; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo(x: A): A; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 75, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 77, 38), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 78, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 77, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: A): A; }): any; } ->x : { foo(x: A): A; } ->b : { foo(x: A): A; } +>foo11 : { (x: B): any; (x: { foo(x: A): A; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 75, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 77, 38), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 78, 28)) +>x : { foo(x: A): A; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 78, 15)) +>b : { foo(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: A): A; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: A): A; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 75, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 77, 38), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 78, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 79, 15)) function foo12(x: I, number, Date, string>); ->foo12 : { (x: I, number, Date, string>): any; (x: C, number, Date>): any; } ->x : I, number, Date, string> ->I : I ->B : B ->Date : Date +>foo12 : { (x: I, number, Date, string>): any; (x: C, number, Date>): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 79, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 81, 62), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 82, 54)) +>x : I, number, Date, string>, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 81, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 12, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo12(x: C, number, Date>); // error ->foo12 : { (x: I, number, Date, string>): any; (x: C, number, Date>): any; } ->x : C, number, Date> ->C : C ->B : B ->Date : Date +>foo12 : { (x: I, number, Date, string>): any; (x: C, number, Date>): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 79, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 81, 62), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 82, 54)) +>x : C, number, Date>, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 82, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 8, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo12(x: any) { } ->foo12 : { (x: I, number, Date, string>): any; (x: C, number, Date>): any; } ->x : any +>foo12 : { (x: I, number, Date, string>): any; (x: C, number, Date>): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 79, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 81, 62), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 82, 54)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 83, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 83, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 85, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 86, 47)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 85, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 16, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 83, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 85, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 86, 47)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 86, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 8, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 83, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 85, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 86, 47)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 87, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: Z): Z; }): any; } ->x : I ->I : I ->Date : Date ->RegExp : RegExp ->Date : Date +>foo13 : { (x: I): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 87, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 89, 49), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 90, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 89, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 12, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo(x: Z): Z; }): any; } ->x : { foo(x: Z): Z; } ->a : { foo(x: Z): Z; } +>foo13 : { (x: I): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 87, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 89, 49), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 90, 28)) +>x : { foo(x: Z): Z; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 90, 15)) +>a : { foo(x: Z): Z; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 22, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: Z): Z; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 87, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 89, 49), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 90, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 91, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: A): A; }): any; } ->x : I ->I : I ->Date : Date ->RegExp : RegExp +>foo14 : { (x: I): any; (x: { foo(x: A): A; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 91, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 93, 52), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 94, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 93, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 12, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo(x: A): A; }): any; } ->x : { foo(x: A): A; } ->b : { foo(x: A): A; } +>foo14 : { (x: I): any; (x: { foo(x: A): A; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 91, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 93, 52), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 94, 28)) +>x : { foo(x: A): A; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 94, 15)) +>b : { foo(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 23, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: A): A; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: A): A; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 91, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 93, 52), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 94, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 95, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C, B>): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C, B>): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 95, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 97, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 98, 67)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 97, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 16, 1)) function foo15(x: C, B>); // ok ->foo15 : { (x: I2): any; (x: C, B>): any; } ->x : C, B> ->C : C ->B : B ->B : B +>foo15 : { (x: I2): any; (x: C, B>): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 95, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 97, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 98, 67)) +>x : C, B>, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 98, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 8, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 4, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C, B>): any; } ->x : any +>foo15 : { (x: I2): any; (x: C, B>): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 95, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 97, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 98, 67)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.ts, 99, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.types index 8cc0042cc9e..1cd1008d8fb 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.types @@ -3,140 +3,140 @@ interface I { ->I : I ->X : X ->Y : Y ->Z : Z ->A : A +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 0, 0)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 3, 12)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 3, 14)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 3, 17)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 3, 20)) (x: X): X; ->x : X ->X : X ->X : X +>x : X, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 4, 5)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 3, 12)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 3, 12)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 5, 1)) (x: Y): Y; ->Y : Y ->Z : Z ->A : A ->B : B ->x : Y ->Y : Y ->Y : Y +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 8, 5)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 8, 7)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 8, 10)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 8, 13)) +>x : Y, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 8, 17)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 8, 5)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 8, 5)) } var a: { (x: Z): Z } ->a : (x: Z) => Z ->Z : Z ->A : A ->B : B ->C : C ->D : D ->x : Z ->Z : Z ->Z : Z +>a : (x: Z) => Z, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 3)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 10)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 12)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 18)) +>D : D, Symbol(D, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 21)) +>x : Z, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 25)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 10)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 10)) function foo1(x: I); ->foo1 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo1 : { (x: I): any; (x: I): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 13, 53), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 14, 53)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 13, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 0, 0)) function foo1(x: I); // error ->foo1 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo1 : { (x: I): any; (x: I): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 13, 53), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 14, 53)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 14, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: I): any; (x: I): any; } ->x : any +>foo1 : { (x: I): any; (x: I): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 35), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 13, 53), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 14, 53)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 15, 14)) function foo2(x: I2); ->foo2 : { (x: I2): any; (x: I2): any; } ->x : I2 ->I2 : I2 +>foo2 : { (x: I2): any; (x: I2): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 15, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 17, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 18, 21)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 17, 14)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 5, 1)) function foo2(x: I2); // error ->foo2 : { (x: I2): any; (x: I2): any; } ->x : I2 ->I2 : I2 +>foo2 : { (x: I2): any; (x: I2): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 15, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 17, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 18, 21)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 18, 14)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 5, 1)) function foo2(x: any) { } ->foo2 : { (x: I2): any; (x: I2): any; } ->x : any +>foo2 : { (x: I2): any; (x: I2): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 15, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 17, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 18, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 19, 14)) function foo3(x: typeof a); ->foo3 : { (x: (x: Z) => Z): any; (x: (x: Z) => Z): any; } ->x : (x: Z) => Z ->a : (x: Z) => Z +>foo3 : { (x: (x: Z) => Z): any; (x: (x: Z) => Z): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 19, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 21, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 22, 27)) +>x : (x: Z) => Z, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 21, 14)) +>a : (x: Z) => Z, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: (x: Z) => Z): any; (x: (x: Z) => Z): any; } ->x : (x: Z) => Z ->a : (x: Z) => Z +>foo3 : { (x: (x: Z) => Z): any; (x: (x: Z) => Z): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 19, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 21, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 22, 27)) +>x : (x: Z) => Z, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 22, 14)) +>a : (x: Z) => Z, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 3)) function foo3(x: any) { } ->foo3 : { (x: (x: Z) => Z): any; (x: (x: Z) => Z): any; } ->x : any +>foo3 : { (x: (x: Z) => Z): any; (x: (x: Z) => Z): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 19, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 21, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 22, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 23, 14)) function foo13(x: I); ->foo13 : { (x: I): any; (x: (x: Z) => Z): any; } ->x : I ->I : I ->Date : Date +>foo13 : { (x: I): any; (x: (x: Z) => Z): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 23, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 25, 52), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 26, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 25, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: (x: Z) => Z): any; } ->x : (x: Z) => Z ->a : (x: Z) => Z +>foo13 : { (x: I): any; (x: (x: Z) => Z): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 23, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 25, 52), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 26, 28)) +>x : (x: Z) => Z, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 26, 15)) +>a : (x: Z) => Z, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: (x: Z) => Z): any; } ->x : any +>foo13 : { (x: I): any; (x: (x: Z) => Z): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 23, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 25, 52), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 26, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 27, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: I2): any; } ->x : I ->I : I ->Date : Date +>foo14 : { (x: I): any; (x: I2): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 27, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 29, 52), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 30, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 29, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo14(x: I2); // error ->foo14 : { (x: I): any; (x: I2): any; } ->x : I2 ->I2 : I2 +>foo14 : { (x: I): any; (x: I2): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 27, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 29, 52), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 30, 22)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 30, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 5, 1)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: I2): any; } ->x : any +>foo14 : { (x: I): any; (x: I2): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 27, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 29, 52), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 30, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 31, 15)) function foo14b(x: typeof a); ->foo14b : { (x: (x: Z) => Z): any; (x: I2): any; } ->x : (x: Z) => Z ->a : (x: Z) => Z +>foo14b : { (x: (x: Z) => Z): any; (x: I2): any; }, Symbol(foo14b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 33, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 34, 23)) +>x : (x: Z) => Z, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 33, 16)) +>a : (x: Z) => Z, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 11, 3)) function foo14b(x: I2); // ok ->foo14b : { (x: (x: Z) => Z): any; (x: I2): any; } ->x : I2 ->I2 : I2 +>foo14b : { (x: (x: Z) => Z): any; (x: I2): any; }, Symbol(foo14b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 33, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 34, 23)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 34, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 5, 1)) function foo14b(x: any) { } ->foo14b : { (x: (x: Z) => Z): any; (x: I2): any; } ->x : any +>foo14b : { (x: (x: Z) => Z): any; (x: I2): any; }, Symbol(foo14b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 33, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 34, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 35, 16)) function foo15(x: I); ->foo15 : { (x: I): any; (x: I2): any; } ->x : I ->I : I ->Date : Date +>foo15 : { (x: I): any; (x: I2): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 35, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 37, 52), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 38, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 37, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo15(x: I2); // ok ->foo15 : { (x: I): any; (x: I2): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I): any; (x: I2): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 35, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 37, 52), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 38, 22)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 38, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 5, 1)) function foo15(x: any) { } ->foo15 : { (x: I): any; (x: I2): any; } ->x : any +>foo15 : { (x: I): any; (x: I2): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 35, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 37, 52), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 38, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts2.ts, 39, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.types index fd0b14a4f79..58d505107a9 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.types @@ -2,340 +2,343 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 0, 0)) foo(x: T): T { return null; } ->foo : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>foo : (x: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 2, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 3, 8)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 3, 11)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 3, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 3, 8)) +>null : null } class B { ->B : B ->U : U +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 4, 1)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 6, 8)) foo(x: U): U { return null; } ->foo : (x: U) => U ->x : U ->U : U ->U : U +>foo : (x: U) => U, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 6, 12)) +>x : U, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 7, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 6, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 6, 8)) +>null : null } class C { ->C : C ->V : V +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 8, 1)) +>V : V, Symbol(V, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 10, 8)) foo(x: V): V { return null; } ->foo : (x: V) => V ->x : V ->V : V ->V : V +>foo : (x: V) => V, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 10, 12)) +>x : V, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 11, 8)) +>V : V, Symbol(V, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 10, 8)) +>V : V, Symbol(V, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 10, 8)) +>null : null } interface I { ->I : I ->X : X +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 12, 1)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 14, 12)) foo(x: X): X; ->foo : (x: X) => X ->x : X ->X : X ->X : X +>foo : (x: X) => X, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 14, 16)) +>x : X, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 15, 8)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 14, 12)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 14, 12)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 16, 1)) foo(x: Y): Y; ->foo : (x: Y) => Y ->Y : Y ->x : Y ->Y : Y ->Y : Y +>foo : (x: Y) => Y, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 18, 14)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 19, 8)) +>x : Y, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 19, 11)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 19, 8)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 19, 8)) } var a: { foo(x: Z): Z } ->a : { foo(x: Z): Z; } ->foo : (x: Z) => Z ->Z : Z ->x : Z ->Z : Z ->Z : Z +>a : { foo(x: Z): Z; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 22, 3)) +>foo : (x: Z) => Z, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 22, 8)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 22, 13)) +>x : Z, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 22, 16)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 22, 13)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 22, 13)) var b = { foo(x: A) { return x; } }; ->b : { foo(x: A): A; } +>b : { foo(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 3)) >{ foo(x: A) { return x; } } : { foo(x: A): A; } ->foo : (x: A) => A ->A : A ->x : A ->A : A ->x : A +>foo : (x: A) => A, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 9)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 14)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 17)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 14)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 17)) function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 39), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 25, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 25, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 39), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 25, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 26, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 26, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 39), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 25, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 26, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 27, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 27, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 29, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 30, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 29, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 27, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 29, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 30, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 30, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 27, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 29, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 30, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 31, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 33, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 34, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 33, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 33, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 34, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 34, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 31, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 33, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 34, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 35, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 35, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 37, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 38, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 37, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 35, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 37, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 38, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 38, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 35, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 37, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 38, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 39, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: Z): Z; }): any; (x: { foo(x: Z): Z; }): any; } ->x : { foo(x: Z): Z; } ->a : { foo(x: Z): Z; } +>foo3 : { (x: { foo(x: Z): Z; }): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 39, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 41, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 42, 27)) +>x : { foo(x: Z): Z; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 41, 14)) +>a : { foo(x: Z): Z; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 22, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: Z): Z; }): any; (x: { foo(x: Z): Z; }): any; } ->x : { foo(x: Z): Z; } ->a : { foo(x: Z): Z; } +>foo3 : { (x: { foo(x: Z): Z; }): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 39, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 41, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 42, 27)) +>x : { foo(x: Z): Z; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 42, 14)) +>a : { foo(x: Z): Z; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 22, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: Z): Z; }): any; (x: { foo(x: Z): Z; }): any; } ->x : any +>foo3 : { (x: { foo(x: Z): Z; }): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 39, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 41, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 42, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 43, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: A): A; }): any; (x: { foo(x: A): A; }): any; } ->x : { foo(x: A): A; } ->b : { foo(x: A): A; } +>foo4 : { (x: { foo(x: A): A; }): any; (x: { foo(x: A): A; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 43, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 45, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 46, 27)) +>x : { foo(x: A): A; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 45, 14)) +>b : { foo(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: A): A; }): any; (x: { foo(x: A): A; }): any; } ->x : { foo(x: A): A; } ->b : { foo(x: A): A; } +>foo4 : { (x: { foo(x: A): A; }): any; (x: { foo(x: A): A; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 43, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 45, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 46, 27)) +>x : { foo(x: A): A; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 46, 14)) +>b : { foo(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: A): A; }): any; (x: { foo(x: A): A; }): any; } ->x : any +>foo4 : { (x: { foo(x: A): A; }): any; (x: { foo(x: A): A; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 43, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 45, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 46, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 47, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 47, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 49, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 50, 28)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 49, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 47, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 49, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 50, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 50, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 47, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 49, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 50, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 51, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 51, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 53, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 54, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 53, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 51, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 53, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 54, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 54, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 51, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 53, 21), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 54, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 55, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 55, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 57, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 58, 28)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 57, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 55, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 57, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 58, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 58, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 55, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 57, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 58, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 59, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: Z): Z; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 59, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 61, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 62, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 61, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 0, 0)) function foo7(x: typeof a); // error ->foo7 : { (x: A): any; (x: { foo(x: Z): Z; }): any; } ->x : { foo(x: Z): Z; } ->a : { foo(x: Z): Z; } +>foo7 : { (x: A): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 59, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 61, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 62, 27)) +>x : { foo(x: Z): Z; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 62, 14)) +>a : { foo(x: Z): Z; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 22, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: Z): Z; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 59, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 61, 20), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 62, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 63, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 63, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 65, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 66, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 65, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 4, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 63, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 65, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 66, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 66, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 63, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 65, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 66, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 67, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 67, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 69, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 70, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 69, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 4, 1)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 67, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 69, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 70, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 70, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 67, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 69, 28), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 70, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 71, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: Z): Z; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 71, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 73, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 74, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 73, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 4, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo(x: Z): Z; }): any; } ->x : { foo(x: Z): Z; } ->a : { foo(x: Z): Z; } +>foo10 : { (x: B): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 71, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 73, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 74, 28)) +>x : { foo(x: Z): Z; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 74, 15)) +>a : { foo(x: Z): Z; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 22, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: Z): Z; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 71, 25), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 73, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 74, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 75, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: A): A; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo(x: A): A; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 75, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 77, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 78, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 77, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 4, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: A): A; }): any; } ->x : { foo(x: A): A; } ->b : { foo(x: A): A; } +>foo11 : { (x: B): any; (x: { foo(x: A): A; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 75, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 77, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 78, 28)) +>x : { foo(x: A): A; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 78, 15)) +>b : { foo(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: A): A; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: A): A; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 75, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 77, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 78, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 79, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 79, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 81, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 82, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 81, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 12, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 79, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 81, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 82, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 82, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 79, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 81, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 82, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 83, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 83, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 85, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 86, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 85, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 16, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 83, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 85, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 86, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 86, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 83, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 85, 23), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 86, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 87, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: Z): Z; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 87, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 89, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 90, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 89, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 12, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo(x: Z): Z; }): any; } ->x : { foo(x: Z): Z; } ->a : { foo(x: Z): Z; } +>foo13 : { (x: I): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 87, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 89, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 90, 28)) +>x : { foo(x: Z): Z; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 90, 15)) +>a : { foo(x: Z): Z; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 22, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: Z): Z; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: Z): Z; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 87, 27), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 89, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 90, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 91, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: A): A; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo(x: A): A; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 91, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 93, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 94, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 93, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 12, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo(x: A): A; }): any; } ->x : { foo(x: A): A; } ->b : { foo(x: A): A; } +>foo14 : { (x: I): any; (x: { foo(x: A): A; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 91, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 93, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 94, 28)) +>x : { foo(x: A): A; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 94, 15)) +>b : { foo(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 23, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: A): A; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: A): A; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 91, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 93, 29), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 94, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 95, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 95, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 97, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 98, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 97, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 16, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 95, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 97, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 98, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 98, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 95, 26), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 97, 22), Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 98, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.ts, 99, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.types index 33fce5295a7..69a5d903ccb 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.types @@ -4,354 +4,357 @@ // optional or rest) and types, and identical return types. class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0)) foo(x: T, y?: T): T { return null; } ->foo : (x: T, y?: T) => T ->T : T ->x : T ->T : T ->y : T ->T : T ->T : T +>foo : (x: T, y?: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 4, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 5, 8)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 5, 11)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 5, 8)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 5, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 5, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 5, 8)) +>null : null } class B { ->B : B ->T : T +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 8, 8)) foo(x: T, y?: T): T { return null; } ->foo : (x: T, y?: T) => T ->x : T ->T : T ->y : T ->T : T ->T : T +>foo : (x: T, y?: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 8, 12)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 9, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 8, 8)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 9, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 8, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 8, 8)) +>null : null } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 12, 8)) foo(x: T, y?: T): T { return null; } ->foo : (x: T, y?: T) => T ->x : T ->T : T ->y : T ->T : T ->T : T +>foo : (x: T, y?: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 12, 12)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 13, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 12, 8)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 13, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 12, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 12, 8)) +>null : null } interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 16, 12)) foo(x: T, y?: T): T; ->foo : (x: T, y?: T) => T ->x : T ->T : T ->y : T ->T : T ->T : T +>foo : (x: T, y?: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 16, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 17, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 16, 12)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 17, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 16, 12)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 16, 12)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 18, 1)) foo(x: T, y?: T): T; ->foo : (x: T, y?: T) => T ->T : T ->x : T ->T : T ->y : T ->T : T ->T : T +>foo : (x: T, y?: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 20, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 21, 8)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 21, 11)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 21, 8)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 21, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 21, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 21, 8)) } var a: { foo(x: T, y?: T): T } ->a : { foo(x: T, y?: T): T; } ->foo : (x: T, y?: T) => T ->T : T ->x : T ->T : T ->y : T ->T : T ->T : T +>a : { foo(x: T, y?: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 3)) +>foo : (x: T, y?: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 13)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 13)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 21)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 13)) var b = { foo(x: T, y?: T) { return x; } }; ->b : { foo(x: T, y?: T): T; } +>b : { foo(x: T, y?: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 3)) >{ foo(x: T, y?: T) { return x; } } : { foo(x: T, y?: T): T; } ->foo : (x: T, y?: T) => T ->T : T ->x : T ->T : T ->y : T ->T : T ->x : T +>foo : (x: T, y?: T) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 14)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 17)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 14)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 22)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 14)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 17)) function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 46), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 27, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 46), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 28, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 46), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 28, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 29, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 31, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 32, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 31, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 31, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 32, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 32, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 31, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 32, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 33, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 35, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 36, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 35, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 35, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 36, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 36, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 35, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 36, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 37, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 39, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 40, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 39, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 39, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 40, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 40, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 39, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 40, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 41, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: T, y?: T): T; }): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : { foo(x: T, y?: T): T; } ->a : { foo(x: T, y?: T): T; } +>foo3 : { (x: { foo(x: T, y?: T): T; }): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 44, 27)) +>x : { foo(x: T, y?: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 43, 14)) +>a : { foo(x: T, y?: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: T, y?: T): T; }): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : { foo(x: T, y?: T): T; } ->a : { foo(x: T, y?: T): T; } +>foo3 : { (x: { foo(x: T, y?: T): T; }): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 44, 27)) +>x : { foo(x: T, y?: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 44, 14)) +>a : { foo(x: T, y?: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: T, y?: T): T; }): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : any +>foo3 : { (x: { foo(x: T, y?: T): T; }): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 44, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 45, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: T, y?: T): T; }): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : { foo(x: T, y?: T): T; } ->b : { foo(x: T, y?: T): T; } +>foo4 : { (x: { foo(x: T, y?: T): T; }): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 48, 27)) +>x : { foo(x: T, y?: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 47, 14)) +>b : { foo(x: T, y?: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: T, y?: T): T; }): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : { foo(x: T, y?: T): T; } ->b : { foo(x: T, y?: T): T; } +>foo4 : { (x: { foo(x: T, y?: T): T; }): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 48, 27)) +>x : { foo(x: T, y?: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 48, 14)) +>b : { foo(x: T, y?: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: T, y?: T): T; }): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : any +>foo4 : { (x: { foo(x: T, y?: T): T; }): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 48, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 49, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 52, 28)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 51, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 52, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 52, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 52, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 53, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 56, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 55, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 56, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 56, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 56, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 57, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 60, 28)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 59, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 60, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 60, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 60, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 61, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 64, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 63, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0)) function foo7(x: typeof a); // no error, bug? ->foo7 : { (x: A): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : { foo(x: T, y?: T): T; } ->a : { foo(x: T, y?: T): T; } +>foo7 : { (x: A): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 64, 27)) +>x : { foo(x: T, y?: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 64, 14)) +>a : { foo(x: T, y?: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 64, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 65, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 67, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 68, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 67, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 67, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 68, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 68, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 67, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 68, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 69, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 71, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 72, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 71, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 71, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 72, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 72, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 71, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 72, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 73, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 75, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 76, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 75, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : { foo(x: T, y?: T): T; } ->a : { foo(x: T, y?: T): T; } +>foo10 : { (x: B): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 75, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 76, 28)) +>x : { foo(x: T, y?: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 76, 15)) +>a : { foo(x: T, y?: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 75, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 76, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 77, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 79, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 80, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 79, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : { foo(x: T, y?: T): T; } ->b : { foo(x: T, y?: T): T; } +>foo11 : { (x: B): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 79, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 80, 28)) +>x : { foo(x: T, y?: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 80, 15)) +>b : { foo(x: T, y?: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 79, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 80, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 81, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 83, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 84, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 83, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 83, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 84, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 84, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 83, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 84, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 85, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 88, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 87, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 18, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 88, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 88, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 88, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 89, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 91, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 92, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 91, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : { foo(x: T, y?: T): T; } ->a : { foo(x: T, y?: T): T; } +>foo13 : { (x: I): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 91, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 92, 28)) +>x : { foo(x: T, y?: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 92, 15)) +>a : { foo(x: T, y?: T): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 91, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 92, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 93, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 95, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 96, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 95, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : { foo(x: T, y?: T): T; } ->b : { foo(x: T, y?: T): T; } +>foo14 : { (x: I): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 95, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 96, 28)) +>x : { foo(x: T, y?: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 96, 15)) +>b : { foo(x: T, y?: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: T, y?: T): T; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: T, y?: T): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 95, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 96, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 97, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 100, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 99, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 18, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 100, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 100, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 100, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 101, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.types index 2d9eab7c540..1b69c4401eb 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.types @@ -4,361 +4,364 @@ // optional or rest) and types, and identical return types. class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 0, 0)) foo(x: T, y?: U): T { return null; } ->foo : (x: T, y?: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y?: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 4, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 5, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 5, 10)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 5, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 5, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 5, 19)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 5, 10)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 5, 8)) +>null : null } class B { ->B : B ->T : T ->U : U +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 8, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 8, 10)) foo(x: T, y?: U): T { return null; } ->foo : (x: T, y?: U) => T ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y?: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 8, 15)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 9, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 8, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 9, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 8, 10)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 8, 8)) +>null : null } class C { ->C : C ->T : T ->U : U +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 10, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 12, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 12, 10)) foo(x: T, y?: U): T { return null; } ->foo : (x: T, y?: U) => T ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y?: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 12, 15)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 13, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 12, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 13, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 12, 10)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 12, 8)) +>null : null } interface I { ->I : I ->T : T ->U : U +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 14, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 16, 12)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 16, 14)) foo(x: T, y?: U): T; ->foo : (x: T, y?: U) => T ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y?: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 16, 19)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 17, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 16, 12)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 17, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 16, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 16, 12)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 18, 1)) foo(x: T, y?: U): T; ->foo : (x: T, y?: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y?: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 20, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 21, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 21, 10)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 21, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 21, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 21, 19)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 21, 10)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 21, 8)) } var a: { foo(x: T, y?: U): T } ->a : { foo(x: T, y?: U): T; } ->foo : (x: T, y?: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>a : { foo(x: T, y?: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 3)) +>foo : (x: T, y?: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 15)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 19)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 13)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 24)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 15)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 13)) var b = { foo(x: T, y?: U) { return x; } }; ->b : { foo(x: T, y?: U): T; } +>b : { foo(x: T, y?: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 3)) >{ foo(x: T, y?: U) { return x; } } : { foo(x: T, y?: U): T; } ->foo : (x: T, y?: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->x : T +>foo : (x: T, y?: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 14)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 20)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 14)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 25)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 20)) function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 49), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 27, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 49), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 28, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 49), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 28, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 29, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 31, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 32, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 31, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 6, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 31, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 32, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 32, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 6, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 31, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 32, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 33, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 35, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 36, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 35, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 10, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 35, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 36, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 36, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 10, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 35, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 36, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 37, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 39, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 40, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 39, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 14, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 39, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 40, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 40, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 14, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 39, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 40, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 41, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->a : { foo(x: T, y?: U): T; } +>foo3 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 44, 27)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 43, 14)) +>a : { foo(x: T, y?: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->a : { foo(x: T, y?: U): T; } +>foo3 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 44, 27)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 44, 14)) +>a : { foo(x: T, y?: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : any +>foo3 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 44, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 45, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->b : { foo(x: T, y?: U): T; } +>foo4 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 48, 27)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 47, 14)) +>b : { foo(x: T, y?: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->b : { foo(x: T, y?: U): T; } +>foo4 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 48, 27)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 48, 14)) +>b : { foo(x: T, y?: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : any +>foo4 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 48, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 49, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 52, 36)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 51, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 52, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 52, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 6, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 52, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 53, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 56, 37)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 55, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 56, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 56, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 10, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 56, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 57, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 60, 36)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 59, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 60, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 60, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 14, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 60, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 61, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 64, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 63, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 0, 0)) function foo7(x: typeof a); // no error, bug? ->foo7 : { (x: A): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->a : { foo(x: T, y?: U): T; } +>foo7 : { (x: A): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 64, 27)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 64, 14)) +>a : { foo(x: T, y?: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 64, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 65, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 67, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 68, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 67, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 6, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 67, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 68, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 68, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 14, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 67, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 68, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 69, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 71, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 72, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 71, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 6, 1)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 71, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 72, 36)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 72, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 10, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 71, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 72, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 73, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 75, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 76, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 75, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 6, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->a : { foo(x: T, y?: U): T; } +>foo10 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 75, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 76, 28)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 76, 15)) +>a : { foo(x: T, y?: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 75, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 76, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 77, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 79, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 80, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 79, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 6, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->b : { foo(x: T, y?: U): T; } +>foo11 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 79, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 80, 28)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 80, 15)) +>b : { foo(x: T, y?: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 79, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 80, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 81, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 83, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 84, 37)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 83, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 14, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 83, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 84, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 84, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 10, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 83, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 84, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 85, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 88, 38)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 87, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 18, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 88, 38)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 88, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 10, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 88, 38)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 89, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 91, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 92, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 91, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 14, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->a : { foo(x: T, y?: U): T; } +>foo13 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 91, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 92, 28)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 92, 15)) +>a : { foo(x: T, y?: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 24, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 91, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 92, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 93, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 95, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 96, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 95, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 14, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->b : { foo(x: T, y?: U): T; } +>foo14 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 95, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 96, 28)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 96, 15)) +>b : { foo(x: T, y?: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 25, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 95, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 96, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 97, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 100, 37)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 99, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 18, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 100, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 100, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 10, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 100, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams2.ts, 101, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.types b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.types index 54ec438104e..3271fe389eb 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.types @@ -4,361 +4,364 @@ // optional or rest) and types, and identical return types. class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 0, 0)) foo(x: T, y?: U): T { return null; } ->foo : (x: T, y?: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y?: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 4, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 5, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 5, 10)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 5, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 5, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 5, 19)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 5, 10)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 5, 8)) +>null : null } class B { ->B : B ->T : T ->U : U +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 8, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 8, 10)) foo(x: T, y: U): T { return null; } ->foo : (x: T, y: U) => T ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 8, 15)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 9, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 8, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 9, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 8, 10)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 8, 8)) +>null : null } class C { ->C : C ->T : T ->U : U +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 10, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 12, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 12, 10)) foo(x: T, y?: U): T { return null; } ->foo : (x: T, y?: U) => T ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y?: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 12, 15)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 13, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 12, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 13, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 12, 10)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 12, 8)) +>null : null } interface I { ->I : I ->T : T ->U : U +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 14, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 16, 12)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 16, 14)) foo(x: T, y?: U): T; ->foo : (x: T, y?: U) => T ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y?: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 16, 19)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 17, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 16, 12)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 17, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 16, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 16, 12)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 18, 1)) foo(x: T, y: U): T; ->foo : (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>foo : (x: T, y: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 20, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 21, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 21, 10)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 21, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 21, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 21, 19)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 21, 10)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 21, 8)) } var a: { foo(x: T, y?: U): T } ->a : { foo(x: T, y?: U): T; } ->foo : (x: T, y?: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->T : T +>a : { foo(x: T, y?: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 3)) +>foo : (x: T, y?: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 15)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 19)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 13)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 24)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 15)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 13)) var b = { foo(x: T, y: U) { return x; } }; ->b : { foo(x: T, y: U): T; } +>b : { foo(x: T, y: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 3)) >{ foo(x: T, y: U) { return x; } } : { foo(x: T, y: U): T; } ->foo : (x: T, y: U) => T ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->x : T +>foo : (x: T, y: U) => T, Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 14)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 20)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 14)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 25)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 20)) function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 48), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 27, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 48), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 28, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 48), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 28, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 29, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 31, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 32, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 31, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 6, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 31, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 32, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 32, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 6, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 31, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 32, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 33, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 35, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 36, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 35, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 10, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 35, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 36, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 36, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 10, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 35, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 36, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 37, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 39, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 40, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 39, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 14, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 39, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 40, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 40, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 14, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 39, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 40, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 41, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->a : { foo(x: T, y?: U): T; } +>foo3 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 44, 27)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 43, 14)) +>a : { foo(x: T, y?: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->a : { foo(x: T, y?: U): T; } +>foo3 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 44, 27)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 44, 14)) +>a : { foo(x: T, y?: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : any +>foo3 : { (x: { foo(x: T, y?: U): T; }): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 44, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 45, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->b : { foo(x: T, y: U): T; } +>foo4 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 48, 27)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 47, 14)) +>b : { foo(x: T, y: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->b : { foo(x: T, y: U): T; } +>foo4 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 48, 27)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 48, 14)) +>b : { foo(x: T, y: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; } ->x : any +>foo4 : { (x: { foo(x: T, y: U): T; }): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 48, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 49, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 52, 36)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 51, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 52, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 52, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 6, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 52, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 53, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 56, 37)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 55, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 0, 0)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 56, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 56, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 10, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 56, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 57, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 60, 36)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 59, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 60, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 60, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 14, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 60, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 61, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 64, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 63, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 0, 0)) function foo7(x: typeof a); // no error, bug? ->foo7 : { (x: A): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->a : { foo(x: T, y?: U): T; } +>foo7 : { (x: A): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 64, 27)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 64, 14)) +>a : { foo(x: T, y?: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 64, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 65, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 67, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 68, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 67, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 6, 1)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 67, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 68, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 68, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 14, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 67, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 68, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 69, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 71, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 72, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 71, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 6, 1)) function foo9(x: C); // ok ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 71, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 72, 36)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 72, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 10, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 71, 36), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 72, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 73, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 75, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 76, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 75, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 6, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->a : { foo(x: T, y?: U): T; } +>foo10 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 75, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 76, 28)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 76, 15)) +>a : { foo(x: T, y?: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 75, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 76, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 77, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 79, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 80, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 79, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 6, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->b : { foo(x: T, y: U): T; } +>foo11 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 79, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 80, 28)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 80, 15)) +>b : { foo(x: T, y: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 79, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 80, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 81, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 83, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 84, 37)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 83, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 14, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 83, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 84, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 84, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 10, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 83, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 84, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 85, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 88, 38)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 87, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 18, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 88, 38)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 88, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 10, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 88, 38)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 89, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 91, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 92, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 91, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 14, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : { foo(x: T, y?: U): T; } ->a : { foo(x: T, y?: U): T; } +>foo13 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 91, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 92, 28)) +>x : { foo(x: T, y?: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 92, 15)) +>a : { foo(x: T, y?: U): T; }, Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 24, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo(x: T, y?: U): T; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 91, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 92, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 93, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 95, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 96, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 95, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 14, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; } ->x : { foo(x: T, y: U): T; } ->b : { foo(x: T, y: U): T; } +>foo14 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 95, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 96, 28)) +>x : { foo(x: T, y: U): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 96, 15)) +>b : { foo(x: T, y: U): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 25, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo(x: T, y: U): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 95, 37), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 96, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 97, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 100, 37)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 99, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 18, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 100, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 100, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 10, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 100, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams3.ts, 101, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.types b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.types index 7acc93db124..1db4b6ee32d 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.types @@ -4,257 +4,260 @@ // optional or rest) and types, and identical return types. class B> { ->B : B ->T : T ->Array : T[] +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 4, 8)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) constructor(x: T) { return null; } ->x : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 5, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 4, 8)) +>null : null } class C { ->C : C ->T : T ->String : String +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 8, 8)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) constructor(x: T) { return null; } ->x : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 9, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 8, 8)) +>null : null } interface I { ->I : I ->T : T ->Number : Number +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 10, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 12, 12)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) new(x: T): string; ->x : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 13, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 12, 12)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 14, 1)) new(x: T): string; ->T : T ->Boolean : Boolean ->x : T ->T : T +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 17, 8)) +>Boolean : Boolean, Symbol(Boolean, Decl(lib.d.ts, 443, 38), Decl(lib.d.ts, 456, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 17, 27)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 17, 8)) } var a: { new>(x: T): string } ->a : new (x: T) => string ->T : T ->Array : T[] ->x : T ->T : T +>a : new (x: T) => string, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 20, 3)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 20, 13)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 20, 38)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 20, 13)) var b = { new(x: T) { return ''; } }; // not a construct signature, function called new ->b : { new(x: T): string; } +>b : { new(x: T): string; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 21, 3)) >{ new(x: T) { return ''; } } : { new(x: T): string; } ->new : (x: T) => string ->T : T ->RegExp : RegExp ->x : T ->T : T +>new : (x: T) => string, Symbol(new, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 21, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 21, 14)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 21, 32)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 21, 14)) +>'' : string function foo1b(x: B>); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B ->Array : T[] +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 21, 55), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 23, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 24, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 23, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 0, 0)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo1b(x: B>); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B ->Array : T[] +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 21, 55), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 23, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 24, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 24, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 0, 0)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 21, 55), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 23, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 24, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 25, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C ->String : String +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 27, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 28, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 27, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 6, 1)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C ->String : String +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 27, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 28, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 28, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 6, 1)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 27, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 28, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 29, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I ->Number : Number +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 31, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 32, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 31, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 10, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I ->Number : Number +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 31, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 32, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 32, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 10, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 31, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 32, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 33, 14)) function foo3(x: typeof a); ->foo3 : { (x: new (x: T) => string): any; (x: new (x: T) => string): any; } ->x : new (x: T) => string ->a : new (x: T) => string +>foo3 : { (x: new (x: T) => string): any; (x: new (x: T) => string): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 36, 27)) +>x : new (x: T) => string, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 35, 14)) +>a : new (x: T) => string, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 20, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: new (x: T) => string): any; (x: new (x: T) => string): any; } ->x : new (x: T) => string ->a : new (x: T) => string +>foo3 : { (x: new (x: T) => string): any; (x: new (x: T) => string): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 36, 27)) +>x : new (x: T) => string, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 36, 14)) +>a : new (x: T) => string, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 20, 3)) function foo3(x: any) { } ->foo3 : { (x: new (x: T) => string): any; (x: new (x: T) => string): any; } ->x : any +>foo3 : { (x: new (x: T) => string): any; (x: new (x: T) => string): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 36, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 37, 14)) function foo4(x: typeof b); ->foo4 : { (x: { new(x: T): string; }): any; (x: { new(x: T): string; }): any; } ->x : { new(x: T): string; } ->b : { new(x: T): string; } +>foo4 : { (x: { new(x: T): string; }): any; (x: { new(x: T): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 40, 27)) +>x : { new(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 39, 14)) +>b : { new(x: T): string; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 21, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { new(x: T): string; }): any; (x: { new(x: T): string; }): any; } ->x : { new(x: T): string; } ->b : { new(x: T): string; } +>foo4 : { (x: { new(x: T): string; }): any; (x: { new(x: T): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 40, 27)) +>x : { new(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 40, 14)) +>b : { new(x: T): string; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 21, 3)) function foo4(x: any) { } ->foo4 : { (x: { new(x: T): string; }): any; (x: { new(x: T): string; }): any; } ->x : any +>foo4 : { (x: { new(x: T): string; }): any; (x: { new(x: T): string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 40, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 41, 14)) function foo8(x: B>); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B ->Array : T[] +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 43, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 44, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 43, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 0, 0)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I ->Number : Number +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 43, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 44, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 44, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 10, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 43, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 44, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 45, 14)) function foo9(x: B>); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B ->Array : T[] +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 47, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 48, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 47, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 0, 0)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo9(x: C); // error, types are structurally equal ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C ->String : String +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 47, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 48, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 48, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 6, 1)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 47, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 48, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 49, 14)) function foo10(x: B>); ->foo10 : { (x: B): any; (x: new (x: T) => string): any; } ->x : B ->B : B ->Array : T[] +>foo10 : { (x: B): any; (x: new (x: T) => string): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 51, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 52, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 51, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 0, 0)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: new (x: T) => string): any; } ->x : new (x: T) => string ->a : new (x: T) => string +>foo10 : { (x: B): any; (x: new (x: T) => string): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 51, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 52, 28)) +>x : new (x: T) => string, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 52, 15)) +>a : new (x: T) => string, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 20, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: new (x: T) => string): any; } ->x : any +>foo10 : { (x: B): any; (x: new (x: T) => string): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 51, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 52, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 53, 15)) function foo11(x: B>); ->foo11 : { (x: B): any; (x: { new(x: T): string; }): any; } ->x : B ->B : B ->Array : T[] +>foo11 : { (x: B): any; (x: { new(x: T): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 55, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 56, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 55, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 0, 0)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { new(x: T): string; }): any; } ->x : { new(x: T): string; } ->b : { new(x: T): string; } +>foo11 : { (x: B): any; (x: { new(x: T): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 55, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 56, 28)) +>x : { new(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 56, 15)) +>b : { new(x: T): string; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 21, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { new(x: T): string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { new(x: T): string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 55, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 56, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 57, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I ->Number : Number +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 59, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 60, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 59, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 10, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C ->String : String +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 59, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 60, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 60, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 6, 1)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 59, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 60, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 61, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 64, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 63, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 14, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C ->String : String +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 64, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 64, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 6, 1)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 64, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 65, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: new (x: T) => string): any; } ->x : I ->I : I ->Number : Number +>foo13 : { (x: I): any; (x: new (x: T) => string): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 67, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 68, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 67, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 10, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: new (x: T) => string): any; } ->x : new (x: T) => string ->a : new (x: T) => string +>foo13 : { (x: I): any; (x: new (x: T) => string): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 67, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 68, 28)) +>x : new (x: T) => string, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 68, 15)) +>a : new (x: T) => string, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 20, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: new (x: T) => string): any; } ->x : any +>foo13 : { (x: I): any; (x: new (x: T) => string): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 67, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 68, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 69, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { new(x: T): string; }): any; } ->x : I ->I : I ->Number : Number +>foo14 : { (x: I): any; (x: { new(x: T): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 71, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 72, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 71, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 10, 1)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { new(x: T): string; }): any; } ->x : { new(x: T): string; } ->b : { new(x: T): string; } +>foo14 : { (x: I): any; (x: { new(x: T): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 71, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 72, 28)) +>x : { new(x: T): string; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 72, 15)) +>b : { new(x: T): string; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 21, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { new(x: T): string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { new(x: T): string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 71, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 72, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts, 73, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.types b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.types index 4b2e628ad5d..93324129ed2 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.types @@ -4,266 +4,269 @@ // optional or rest) and types, and identical return types. class B { ->B : B ->T : T +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 4, 8)) constructor(x: T) { return null; } ->x : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 5, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 4, 8)) +>null : null } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 8, 8)) constructor(x: T) { return null; } ->x : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 9, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 8, 8)) +>null : null } interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 10, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 12, 12)) new(x: T): Date; ->x : T ->T : T ->Date : Date +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 13, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 12, 12)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 14, 1)) new(x: T): RegExp; ->T : T ->x : T ->T : T ->RegExp : RegExp +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 17, 8)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 17, 11)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 17, 8)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) } var a: { new(x: T): T } ->a : new (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a : new (x: T) => T, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 20, 3)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 20, 13)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 20, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 20, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 20, 13)) var b = { new(x: T): T { return null; } }; // not a construct signature, function called new ->b : { new(x: T): T; } +>b : { new(x: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 3)) >{ new(x: T): T { return null; } } : { new(x: T): T; } ->new : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>new : (x: T) => T, Symbol(new, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 14)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 17)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 14)) +>null : null function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 45), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 23, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 24, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 23, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 0, 0)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 45), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 23, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 24, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 24, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 0, 0)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 45), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 23, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 24, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 25, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 27, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 28, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 27, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 6, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 27, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 28, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 28, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 6, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 27, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 28, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 29, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 31, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 32, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 31, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 10, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 31, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 32, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 32, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 10, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 31, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 32, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 33, 14)) function foo3(x: typeof a); ->foo3 : { (x: new (x: T) => T): any; (x: new (x: T) => T): any; } ->x : new (x: T) => T ->a : new (x: T) => T +>foo3 : { (x: new (x: T) => T): any; (x: new (x: T) => T): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 36, 27)) +>x : new (x: T) => T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 35, 14)) +>a : new (x: T) => T, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 20, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: new (x: T) => T): any; (x: new (x: T) => T): any; } ->x : new (x: T) => T ->a : new (x: T) => T +>foo3 : { (x: new (x: T) => T): any; (x: new (x: T) => T): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 36, 27)) +>x : new (x: T) => T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 36, 14)) +>a : new (x: T) => T, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 20, 3)) function foo3(x: any) { } ->foo3 : { (x: new (x: T) => T): any; (x: new (x: T) => T): any; } ->x : any +>foo3 : { (x: new (x: T) => T): any; (x: new (x: T) => T): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 36, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 37, 14)) function foo4(x: typeof b); ->foo4 : { (x: { new(x: T): T; }): any; (x: { new(x: T): T; }): any; } ->x : { new(x: T): T; } ->b : { new(x: T): T; } +>foo4 : { (x: { new(x: T): T; }): any; (x: { new(x: T): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 40, 27)) +>x : { new(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 39, 14)) +>b : { new(x: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { new(x: T): T; }): any; (x: { new(x: T): T; }): any; } ->x : { new(x: T): T; } ->b : { new(x: T): T; } +>foo4 : { (x: { new(x: T): T; }): any; (x: { new(x: T): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 40, 27)) +>x : { new(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 40, 14)) +>b : { new(x: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 3)) function foo4(x: any) { } ->foo4 : { (x: { new(x: T): T; }): any; (x: { new(x: T): T; }): any; } ->x : any +>foo4 : { (x: { new(x: T): T; }): any; (x: { new(x: T): T; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 40, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 41, 14)) function foo5(x: typeof a): number; ->foo5 : { (x: new (x: T) => T): number; (x: { new(x: T): T; }): string; } ->x : new (x: T) => T ->a : new (x: T) => T +>foo5 : { (x: new (x: T) => T): number; (x: { new(x: T): T; }): string; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 43, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 44, 35)) +>x : new (x: T) => T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 43, 14)) +>a : new (x: T) => T, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 20, 3)) function foo5(x: typeof b): string; // ok ->foo5 : { (x: new (x: T) => T): number; (x: { new(x: T): T; }): string; } ->x : { new(x: T): T; } ->b : { new(x: T): T; } +>foo5 : { (x: new (x: T) => T): number; (x: { new(x: T): T; }): string; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 43, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 44, 35)) +>x : { new(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 44, 14)) +>b : { new(x: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 3)) function foo5(x: any): any { } ->foo5 : { (x: new (x: T) => T): number; (x: { new(x: T): T; }): string; } ->x : any +>foo5 : { (x: new (x: T) => T): number; (x: { new(x: T): T; }): string; }, Symbol(foo5, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 43, 35), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 44, 35)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 45, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 45, 30), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 47, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 48, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 47, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 0, 0)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 45, 30), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 47, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 48, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 48, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 10, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 45, 30), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 47, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 48, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 49, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 51, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 52, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 51, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 0, 0)) function foo9(x: C); // error since types are structurally equal ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 51, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 52, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 52, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 6, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 51, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 52, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 53, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: new (x: T) => T): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: new (x: T) => T): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 53, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 55, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 56, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 55, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 0, 0)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: new (x: T) => T): any; } ->x : new (x: T) => T ->a : new (x: T) => T +>foo10 : { (x: B): any; (x: new (x: T) => T): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 53, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 55, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 56, 28)) +>x : new (x: T) => T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 56, 15)) +>a : new (x: T) => T, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 20, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: new (x: T) => T): any; } ->x : any +>foo10 : { (x: B): any; (x: new (x: T) => T): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 53, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 55, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 56, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 57, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { new(x: T): T; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { new(x: T): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 59, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 60, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 59, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 0, 0)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { new(x: T): T; }): any; } ->x : { new(x: T): T; } ->b : { new(x: T): T; } +>foo11 : { (x: B): any; (x: { new(x: T): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 59, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 60, 28)) +>x : { new(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 60, 15)) +>b : { new(x: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { new(x: T): T; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { new(x: T): T; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 59, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 60, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 61, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 63, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 64, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 63, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 10, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 63, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 64, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 64, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 6, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 63, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 64, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 65, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 65, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 67, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 68, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 67, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 14, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 65, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 67, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 68, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 68, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 6, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 65, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 67, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 68, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 69, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: new (x: T) => T): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: new (x: T) => T): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 69, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 71, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 72, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 71, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 10, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: new (x: T) => T): any; } ->x : new (x: T) => T ->a : new (x: T) => T +>foo13 : { (x: I): any; (x: new (x: T) => T): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 69, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 71, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 72, 28)) +>x : new (x: T) => T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 72, 15)) +>a : new (x: T) => T, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 20, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: new (x: T) => T): any; } ->x : any +>foo13 : { (x: I): any; (x: new (x: T) => T): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 69, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 71, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 72, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 73, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { new(x: T): T; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { new(x: T): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 73, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 75, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 76, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 75, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 10, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { new(x: T): T; }): any; } ->x : { new(x: T): T; } ->b : { new(x: T): T; } +>foo14 : { (x: I): any; (x: { new(x: T): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 73, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 75, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 76, 28)) +>x : { new(x: T): T; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 76, 15)) +>b : { new(x: T): T; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 21, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { new(x: T): T; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { new(x: T): T; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 73, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 75, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 76, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 77, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 77, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 79, 22), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 80, 29)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 79, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 14, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 77, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 79, 22), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 80, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 80, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 6, 1)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 77, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 79, 22), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 80, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType.ts, 81, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.types b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.types index a25fb5b876a..967cfa6b61f 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.types @@ -4,275 +4,278 @@ // optional or rest) and types, and identical return types. class B { ->B : B ->T : T ->Date : Date +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 4, 8)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) constructor(x: T) { return null; } ->x : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 5, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 4, 8)) +>null : null } class C { ->C : C ->T : T ->Date : Date +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 8, 8)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) constructor(x: T) { return null; } ->x : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 9, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 8, 8)) +>null : null } interface I { ->I : I ->T : T ->Date : Date +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 10, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 12, 12)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) new(x: T): Date; ->x : T ->T : T ->Date : Date +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 13, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 12, 12)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 14, 1)) new(x: T): RegExp; ->T : T ->Date : Date ->x : T ->T : T ->RegExp : RegExp +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 17, 8)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 17, 24)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 17, 8)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) } var a: { new(x: T): T } ->a : new (x: T) => T ->T : T ->Date : Date ->x : T ->T : T ->T : T +>a : new (x: T) => T, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 20, 3)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 20, 13)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 20, 29)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 20, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 20, 13)) var b = { new(x: T) { return null; } }; // not a construct signature, function called new ->b : { new(x: T): any; } +>b : { new(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 21, 3)) >{ new(x: T) { return null; } } : { new(x: T): any; } ->new : (x: T) => any ->T : T ->Date : Date ->x : T ->T : T +>new : (x: T) => any, Symbol(new, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 21, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 21, 14)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 21, 30)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 21, 14)) +>null : null function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B ->Date : Date +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 21, 55), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 23, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 24, 27)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 23, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B ->Date : Date +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 21, 55), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 23, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 24, 27)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 24, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 21, 55), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 23, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 24, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 25, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 27, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 28, 27)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 27, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 27, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 28, 27)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 28, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 27, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 28, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 29, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I ->Date : Date +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 31, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 32, 26)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 31, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I ->Date : Date +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 31, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 32, 26)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 32, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 31, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 32, 26)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 33, 14)) function foo3(x: typeof a); ->foo3 : { (x: new (x: T) => T): any; (x: new (x: T) => T): any; } ->x : new (x: T) => T ->a : new (x: T) => T +>foo3 : { (x: new (x: T) => T): any; (x: new (x: T) => T): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 36, 27)) +>x : new (x: T) => T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 35, 14)) +>a : new (x: T) => T, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 20, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: new (x: T) => T): any; (x: new (x: T) => T): any; } ->x : new (x: T) => T ->a : new (x: T) => T +>foo3 : { (x: new (x: T) => T): any; (x: new (x: T) => T): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 36, 27)) +>x : new (x: T) => T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 36, 14)) +>a : new (x: T) => T, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 20, 3)) function foo3(x: any) { } ->foo3 : { (x: new (x: T) => T): any; (x: new (x: T) => T): any; } ->x : any +>foo3 : { (x: new (x: T) => T): any; (x: new (x: T) => T): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 36, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 37, 14)) function foo4(x: typeof b); ->foo4 : { (x: { new(x: T): any; }): any; (x: { new(x: T): any; }): any; } ->x : { new(x: T): any; } ->b : { new(x: T): any; } +>foo4 : { (x: { new(x: T): any; }): any; (x: { new(x: T): any; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 40, 27)) +>x : { new(x: T): any; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 39, 14)) +>b : { new(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 21, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { new(x: T): any; }): any; (x: { new(x: T): any; }): any; } ->x : { new(x: T): any; } ->b : { new(x: T): any; } +>foo4 : { (x: { new(x: T): any; }): any; (x: { new(x: T): any; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 40, 27)) +>x : { new(x: T): any; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 40, 14)) +>b : { new(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 21, 3)) function foo4(x: any) { } ->foo4 : { (x: { new(x: T): any; }): any; (x: { new(x: T): any; }): any; } ->x : any +>foo4 : { (x: { new(x: T): any; }): any; (x: { new(x: T): any; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 40, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 41, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B ->Date : Date +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 43, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 44, 26)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 43, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I ->Date : Date +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 43, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 44, 26)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 44, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 43, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 44, 26)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 45, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B ->Date : Date +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 47, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 48, 26)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 47, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo9(x: C); // error since types are structurally equal ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 47, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 48, 26)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 48, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 47, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 48, 26)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 49, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: new (x: T) => T): any; } ->x : B ->B : B ->Date : Date +>foo10 : { (x: B): any; (x: new (x: T) => T): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 51, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 52, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 51, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: new (x: T) => T): any; } ->x : new (x: T) => T ->a : new (x: T) => T +>foo10 : { (x: B): any; (x: new (x: T) => T): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 51, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 52, 28)) +>x : new (x: T) => T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 52, 15)) +>a : new (x: T) => T, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 20, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: new (x: T) => T): any; } ->x : any +>foo10 : { (x: B): any; (x: new (x: T) => T): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 51, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 52, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 53, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { new(x: T): any; }): any; } ->x : B ->B : B ->Date : Date +>foo11 : { (x: B): any; (x: { new(x: T): any; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 55, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 56, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 55, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { new(x: T): any; }): any; } ->x : { new(x: T): any; } ->b : { new(x: T): any; } +>foo11 : { (x: B): any; (x: { new(x: T): any; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 55, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 56, 28)) +>x : { new(x: T): any; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 56, 15)) +>b : { new(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 21, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { new(x: T): any; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { new(x: T): any; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 55, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 56, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 57, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I ->Date : Date +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 59, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 60, 27)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 59, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 59, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 60, 27)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 60, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 59, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 60, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 61, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 64, 28)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 63, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 14, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 64, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 64, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 64, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 65, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: new (x: T) => T): any; } ->x : I ->I : I ->Date : Date +>foo13 : { (x: I): any; (x: new (x: T) => T): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 67, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 68, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 67, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: new (x: T) => T): any; } ->x : new (x: T) => T ->a : new (x: T) => T +>foo13 : { (x: I): any; (x: new (x: T) => T): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 67, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 68, 28)) +>x : new (x: T) => T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 68, 15)) +>a : new (x: T) => T, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 20, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: new (x: T) => T): any; } ->x : any +>foo13 : { (x: I): any; (x: new (x: T) => T): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 67, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 68, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 69, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { new(x: T): any; }): any; } ->x : I ->I : I ->Date : Date +>foo14 : { (x: I): any; (x: { new(x: T): any; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 71, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 72, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 71, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 10, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { new(x: T): any; }): any; } ->x : { new(x: T): any; } ->b : { new(x: T): any; } +>foo14 : { (x: I): any; (x: { new(x: T): any; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 71, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 72, 28)) +>x : { new(x: T): any; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 72, 15)) +>b : { new(x: T): any; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 21, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { new(x: T): any; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { new(x: T): any; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 71, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 72, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 73, 15)) function foo15(x: I2); ->foo15 : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 73, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 75, 22), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 76, 27)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 75, 15)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 14, 1)) function foo15(x: C); // ok ->foo15 : { (x: I2): any; (x: C): any; } ->x : C ->C : C ->Date : Date +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 73, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 75, 22), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 76, 27)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 76, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 6, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo15(x: any) { } ->foo15 : { (x: I2): any; (x: C): any; } ->x : any +>foo15 : { (x: I2): any; (x: C): any; }, Symbol(foo15, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 73, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 75, 22), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 76, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts, 77, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.types b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.types index 683c3ace9f9..e23f6c86c5c 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.types @@ -2,275 +2,277 @@ // object types are identical structurally class B { ->B : B ->U : U ->V : V +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 0, 0)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 2, 8)) +>V : V, Symbol(V, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 2, 10)) constructor(x: U) { return null; } ->x : U ->U : U +>x : U, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 3, 16)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 2, 8)) +>null : null } class C { ->C : C ->V : V ->W : W ->X : X +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 4, 1)) +>V : V, Symbol(V, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 6, 8)) +>W : W, Symbol(W, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 6, 10)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 6, 13)) constructor(x: V) { return null; } ->x : V ->V : V +>x : V, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 7, 16)) +>V : V, Symbol(V, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 6, 8)) +>null : null } interface I { ->I : I ->X : X ->Y : Y ->Z : Z ->A : A +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 8, 1)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 10, 12)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 10, 14)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 10, 17)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 10, 20)) new(x: X): B; ->x : X ->X : X ->B : B ->X : X ->Y : Y +>x : X, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 11, 8)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 10, 12)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 0, 0)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 10, 12)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 10, 14)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 12, 1)) new (x: Y): C; ->Y : Y ->Z : Z ->A : A ->B : B ->x : Y ->Y : Y ->C : C ->Y : Y ->Z : Z ->A : A +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 15, 9)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 15, 11)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 15, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 15, 17)) +>x : Y, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 15, 21)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 15, 9)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 4, 1)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 15, 9)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 15, 11)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 15, 14)) } var a: { new (x: Z): C; } ->a : new (x: Z) => C ->Z : Z ->A : A ->B : B ->CC : CC ->D : D ->x : Z ->Z : Z ->C : C ->Z : Z ->A : A ->B : B +>a : new (x: Z) => C, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 3)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 19)) +>CC : CC, Symbol(CC, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 22)) +>D : D, Symbol(D, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 26)) +>x : Z, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 30)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 4, 1)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 19)) var b = { new(x: A) { return x; } }; ->b : { new(x: A): A; } +>b : { new(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 3)) >{ new(x: A) { return x; } } : { new(x: A): A; } ->new : (x: A) => A ->A : A ->B : B ->C : C ->D : D ->E : E ->F : F ->x : A ->A : A ->x : A +>new : (x: A) => A, Symbol(new, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 9)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 19)) +>D : D, Symbol(D, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 22)) +>E : E, Symbol(E, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 25)) +>F : F, Symbol(F, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 28)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 32)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 14)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 32)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 54), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 21, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 22, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 21, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 54), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 21, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 22, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 22, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 54), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 21, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 22, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 23, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 23, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 25, 46), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 26, 46)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 25, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 4, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 23, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 25, 46), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 26, 46)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 26, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 4, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 23, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 25, 46), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 26, 46)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 27, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 27, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 29, 53), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 30, 53)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 29, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 8, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 27, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 29, 53), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 30, 53)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 30, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 8, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 27, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 29, 53), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 30, 53)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 31, 14)) function foo3(x: typeof a); ->foo3 : { (x: new (x: Z) => C): any; (x: new (x: Z) => C): any; } ->x : new (x: Z) => C ->a : new (x: Z) => C +>foo3 : { (x: new (x: Z) => C): any; (x: new (x: Z) => C): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 31, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 33, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 34, 27)) +>x : new (x: Z) => C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 33, 14)) +>a : new (x: Z) => C, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: new (x: Z) => C): any; (x: new (x: Z) => C): any; } ->x : new (x: Z) => C ->a : new (x: Z) => C +>foo3 : { (x: new (x: Z) => C): any; (x: new (x: Z) => C): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 31, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 33, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 34, 27)) +>x : new (x: Z) => C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 34, 14)) +>a : new (x: Z) => C, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 3)) function foo3(x: any) { } ->foo3 : { (x: new (x: Z) => C): any; (x: new (x: Z) => C): any; } ->x : any +>foo3 : { (x: new (x: Z) => C): any; (x: new (x: Z) => C): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 31, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 33, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 34, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 35, 14)) function foo4(x: typeof b); ->foo4 : { (x: { new(x: A): A; }): any; (x: { new(x: A): A; }): any; } ->x : { new(x: A): A; } ->b : { new(x: A): A; } +>foo4 : { (x: { new(x: A): A; }): any; (x: { new(x: A): A; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 35, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 37, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 38, 27)) +>x : { new(x: A): A; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 37, 14)) +>b : { new(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { new(x: A): A; }): any; (x: { new(x: A): A; }): any; } ->x : { new(x: A): A; } ->b : { new(x: A): A; } +>foo4 : { (x: { new(x: A): A; }): any; (x: { new(x: A): A; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 35, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 37, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 38, 27)) +>x : { new(x: A): A; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 38, 14)) +>b : { new(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 3)) function foo4(x: any) { } ->foo4 : { (x: { new(x: A): A; }): any; (x: { new(x: A): A; }): any; } ->x : any +>foo4 : { (x: { new(x: A): A; }): any; (x: { new(x: A): A; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 35, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 37, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 38, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 39, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 39, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 41, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 42, 51)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 41, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo8(x: I); // BUG 832086 ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I ->Date : Date +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 39, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 41, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 42, 51)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 42, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 8, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 39, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 41, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 42, 51)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 43, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C>): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C>): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 43, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 45, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 46, 55)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 45, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo9(x: C>); // error ->foo9 : { (x: B): any; (x: C>): any; } ->x : C> ->C : C ->B : B +>foo9 : { (x: B): any; (x: C>): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 43, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 45, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 46, 55)) +>x : C>, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 46, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 4, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C>): any; } ->x : any +>foo9 : { (x: B): any; (x: C>): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 43, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 45, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 46, 55)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 47, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: new (x: Z) => C): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: new (x: Z) => C): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 47, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 49, 38), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 50, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 49, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: new (x: Z) => C): any; } ->x : new (x: Z) => C ->a : new (x: Z) => C +>foo10 : { (x: B): any; (x: new (x: Z) => C): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 47, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 49, 38), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 50, 28)) +>x : new (x: Z) => C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 50, 15)) +>a : new (x: Z) => C, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: new (x: Z) => C): any; } ->x : any +>foo10 : { (x: B): any; (x: new (x: Z) => C): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 47, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 49, 38), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 50, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 51, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { new(x: A): A; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { new(x: A): A; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 51, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 53, 38), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 54, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 53, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 0, 0)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { new(x: A): A; }): any; } ->x : { new(x: A): A; } ->b : { new(x: A): A; } +>foo11 : { (x: B): any; (x: { new(x: A): A; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 51, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 53, 38), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 54, 28)) +>x : { new(x: A): A; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 54, 15)) +>b : { new(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { new(x: A): A; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { new(x: A): A; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 51, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 53, 38), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 54, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 55, 15)) function foo12(x: I, number, Date, string>); ->foo12 : { (x: I, number, Date, string>): any; (x: C, number, Date>): any; } ->x : I, number, Date, string> ->I : I ->B : B ->Date : Date +>foo12 : { (x: I, number, Date, string>): any; (x: C, number, Date>): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 55, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 57, 62), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 58, 54)) +>x : I, number, Date, string>, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 57, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 8, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo12(x: C, number, Date>); // ok ->foo12 : { (x: I, number, Date, string>): any; (x: C, number, Date>): any; } ->x : C, number, Date> ->C : C ->B : B ->Date : Date +>foo12 : { (x: I, number, Date, string>): any; (x: C, number, Date>): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 55, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 57, 62), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 58, 54)) +>x : C, number, Date>, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 58, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 4, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo12(x: any) { } ->foo12 : { (x: I, number, Date, string>): any; (x: C, number, Date>): any; } ->x : any +>foo12 : { (x: I, number, Date, string>): any; (x: C, number, Date>): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 55, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 57, 62), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 58, 54)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 59, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 59, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 61, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 62, 47)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 61, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 12, 1)) function foo12b(x: C); // BUG 832086 ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 59, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 61, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 62, 47)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 62, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 4, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 59, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 61, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 62, 47)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 63, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: new (x: Z) => C): any; } ->x : I ->I : I ->Date : Date ->RegExp : RegExp ->Date : Date +>foo13 : { (x: I): any; (x: new (x: Z) => C): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 63, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 65, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 66, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 65, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 8, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: new (x: Z) => C): any; } ->x : new (x: Z) => C ->a : new (x: Z) => C +>foo13 : { (x: I): any; (x: new (x: Z) => C): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 63, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 65, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 66, 28)) +>x : new (x: Z) => C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 66, 15)) +>a : new (x: Z) => C, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 18, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: new (x: Z) => C): any; } ->x : any +>foo13 : { (x: I): any; (x: new (x: Z) => C): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 63, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 65, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 66, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 67, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { new(x: A): A; }): any; } ->x : I ->I : I ->Date : Date ->RegExp : RegExp +>foo14 : { (x: I): any; (x: { new(x: A): A; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 67, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 69, 52), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 70, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 69, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 8, 1)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { new(x: A): A; }): any; } ->x : { new(x: A): A; } ->b : { new(x: A): A; } +>foo14 : { (x: I): any; (x: { new(x: A): A; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 67, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 69, 52), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 70, 28)) +>x : { new(x: A): A; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 70, 15)) +>b : { new(x: A): A; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 19, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { new(x: A): A; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { new(x: A): A; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 67, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 69, 52), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 70, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts.ts, 71, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.types b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.types index af65ca5b911..d3235ae6f96 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.types @@ -2,244 +2,246 @@ // object types are identical structurally class B { ->B : B ->U : U +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 0, 0)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 2, 8)) constructor(x: U) { return null; } ->x : U ->U : U +>x : U, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 3, 16)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 2, 8)) +>null : null } class C { ->C : C ->V : V +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 4, 1)) +>V : V, Symbol(V, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 6, 8)) constructor(x: V) { return null; } ->x : V ->V : V +>x : V, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 7, 16)) +>V : V, Symbol(V, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 6, 8)) +>null : null } interface I { ->I : I ->X : X +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 8, 1)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 10, 12)) new(x: X): B; ->x : X ->X : X ->B : B ->X : X +>x : X, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 11, 8)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 10, 12)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 0, 0)) +>X : X, Symbol(X, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 10, 12)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 12, 1)) new(x: Y): C; ->Y : Y ->x : Y ->Y : Y ->C : C ->Y : Y +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 15, 8)) +>x : Y, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 15, 11)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 15, 8)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 4, 1)) +>Y : Y, Symbol(Y, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 15, 8)) } var a: { new(x: Z): B } ->a : new (x: Z) => B ->Z : Z ->x : Z ->Z : Z ->B : B ->Z : Z +>a : new (x: Z) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 18, 3)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 18, 13)) +>x : Z, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 18, 16)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 18, 13)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 0, 0)) +>Z : Z, Symbol(Z, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 18, 13)) var b = { new(x: A) { return new C(x); } }; ->b : { new(x: A): C; } +>b : { new(x: A): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 3)) >{ new(x: A) { return new C(x); } } : { new(x: A): C; } ->new : (x: A) => C ->A : A ->x : A ->A : A +>new : (x: A) => C, Symbol(new, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 9)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 14)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 17)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 14)) >new C(x) : C ->C : typeof C ->A : A ->x : A +>C : typeof C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 4, 1)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 14)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 17)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 21, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 22, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 21, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 0, 0)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 21, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 22, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 22, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 0, 0)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 49), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 21, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 22, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 23, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 23, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 25, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 26, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 25, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 4, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 23, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 25, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 26, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 26, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 4, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 23, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 25, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 26, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 27, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 27, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 29, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 30, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 29, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 27, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 29, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 30, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 30, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 27, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 29, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 30, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 31, 14)) function foo3(x: typeof a); ->foo3 : { (x: new (x: Z) => B): any; (x: new (x: Z) => B): any; } ->x : new (x: Z) => B ->a : new (x: Z) => B +>foo3 : { (x: new (x: Z) => B): any; (x: new (x: Z) => B): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 31, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 33, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 34, 27)) +>x : new (x: Z) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 33, 14)) +>a : new (x: Z) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 18, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: new (x: Z) => B): any; (x: new (x: Z) => B): any; } ->x : new (x: Z) => B ->a : new (x: Z) => B +>foo3 : { (x: new (x: Z) => B): any; (x: new (x: Z) => B): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 31, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 33, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 34, 27)) +>x : new (x: Z) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 34, 14)) +>a : new (x: Z) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 18, 3)) function foo3(x: any) { } ->foo3 : { (x: new (x: Z) => B): any; (x: new (x: Z) => B): any; } ->x : any +>foo3 : { (x: new (x: Z) => B): any; (x: new (x: Z) => B): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 31, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 33, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 34, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 35, 14)) function foo4(x: typeof b); ->foo4 : { (x: { new(x: A): C; }): any; (x: { new(x: A): C; }): any; } ->x : { new(x: A): C; } ->b : { new(x: A): C; } +>foo4 : { (x: { new(x: A): C; }): any; (x: { new(x: A): C; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 35, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 37, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 38, 27)) +>x : { new(x: A): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 37, 14)) +>b : { new(x: A): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { new(x: A): C; }): any; (x: { new(x: A): C; }): any; } ->x : { new(x: A): C; } ->b : { new(x: A): C; } +>foo4 : { (x: { new(x: A): C; }): any; (x: { new(x: A): C; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 35, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 37, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 38, 27)) +>x : { new(x: A): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 38, 14)) +>b : { new(x: A): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 3)) function foo4(x: any) { } ->foo4 : { (x: { new(x: A): C; }): any; (x: { new(x: A): C; }): any; } ->x : any +>foo4 : { (x: { new(x: A): C; }): any; (x: { new(x: A): C; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 35, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 37, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 38, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 39, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 39, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 41, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 42, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 41, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 0, 0)) function foo8(x: I); // BUG 832086 ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 39, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 41, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 42, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 42, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 39, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 41, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 42, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 43, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 43, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 45, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 46, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 45, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 0, 0)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 43, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 45, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 46, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 46, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 4, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 43, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 45, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 46, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 47, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: new (x: Z) => B): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: new (x: Z) => B): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 47, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 49, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 50, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 49, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 0, 0)) function foo10(x: typeof a); // BUG 832086 ->foo10 : { (x: B): any; (x: new (x: Z) => B): any; } ->x : new (x: Z) => B ->a : new (x: Z) => B +>foo10 : { (x: B): any; (x: new (x: Z) => B): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 47, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 49, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 50, 28)) +>x : new (x: Z) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 50, 15)) +>a : new (x: Z) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 18, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: new (x: Z) => B): any; } ->x : any +>foo10 : { (x: B): any; (x: new (x: Z) => B): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 47, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 49, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 50, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 51, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { new(x: A): C; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { new(x: A): C; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 51, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 53, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 54, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 53, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 0, 0)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { new(x: A): C; }): any; } ->x : { new(x: A): C; } ->b : { new(x: A): C; } +>foo11 : { (x: B): any; (x: { new(x: A): C; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 51, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 53, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 54, 28)) +>x : { new(x: A): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 54, 15)) +>b : { new(x: A): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { new(x: A): C; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { new(x: A): C; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 51, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 53, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 54, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 55, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 55, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 57, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 58, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 57, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 55, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 57, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 58, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 58, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 4, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 55, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 57, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 58, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 59, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 59, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 61, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 62, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 61, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 12, 1)) function foo12b(x: C); // BUG 832086 ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 59, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 61, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 62, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 62, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 4, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 59, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 61, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 62, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 63, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: new (x: Z) => B): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: new (x: Z) => B): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 63, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 65, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 66, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 65, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo13(x: typeof a); // BUG 832086 ->foo13 : { (x: I): any; (x: new (x: Z) => B): any; } ->x : new (x: Z) => B ->a : new (x: Z) => B +>foo13 : { (x: I): any; (x: new (x: Z) => B): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 63, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 65, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 66, 28)) +>x : new (x: Z) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 66, 15)) +>a : new (x: Z) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 18, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: new (x: Z) => B): any; } ->x : any +>foo13 : { (x: I): any; (x: new (x: Z) => B): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 63, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 65, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 66, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 67, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { new(x: A): C; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { new(x: A): C; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 67, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 69, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 70, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 69, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 8, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { new(x: A): C; }): any; } ->x : { new(x: A): C; } ->b : { new(x: A): C; } +>foo14 : { (x: I): any; (x: { new(x: A): C; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 67, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 69, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 70, 28)) +>x : { new(x: A): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 70, 15)) +>b : { new(x: A): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 19, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { new(x: A): C; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { new(x: A): C; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 67, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 69, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 70, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames.ts, 71, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.types b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.types index a6dea7c2518..6528d138090 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams.types @@ -4,257 +4,259 @@ // optional or rest) and types, and identical return types. class B { ->B : B ->T : T +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 4, 8)) constructor(x: T, y?: T) { return null; } ->x : T ->T : T ->y : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 5, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 4, 8)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 5, 21)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 4, 8)) +>null : null } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 8, 8)) constructor(x: T, y?: T) { return null; } ->x : T ->T : T ->y : T ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 9, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 8, 8)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 9, 21)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 8, 8)) +>null : null } interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 10, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 12, 12)) new(x: T, y?: T): B; ->x : T ->T : T ->y : T ->T : T ->B : B ->T : T +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 13, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 12, 12)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 13, 13)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 12, 12)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 12, 12)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 14, 1)) new(x: T, y?: T): C; ->T : T ->x : T ->T : T ->y : T ->T : T ->C : C ->T : T +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 17, 8)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 17, 11)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 17, 8)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 17, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 17, 8)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 17, 8)) } var a: { new(x: T, y?: T): B } ->a : new (x: T, y?: T) => B ->T : T ->x : T ->T : T ->y : T ->T : T ->B : B ->T : T +>a : new (x: T, y?: T) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 20, 3)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 20, 13)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 20, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 20, 13)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 20, 21)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 20, 13)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 20, 13)) var b = { new(x: T, y?: T) { return new C(x, y); } }; // not a construct signature, function called new ->b : { new(x: T, y?: T): C; } +>b : { new(x: T, y?: T): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 3)) >{ new(x: T, y?: T) { return new C(x, y); } } : { new(x: T, y?: T): C; } ->new : (x: T, y?: T) => C ->T : T ->x : T ->T : T ->y : T ->T : T +>new : (x: T, y?: T) => C, Symbol(new, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 14)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 17)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 14)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 22)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 14)) >new C(x, y) : C ->C : typeof C ->T : T ->x : T ->y : T +>C : typeof C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 14)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 17)) +>y : T, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 22)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 59), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 23, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 24, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 23, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 0, 0)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 59), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 23, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 24, 29)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 24, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 0, 0)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 59), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 23, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 24, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 25, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 27, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 28, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 27, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 6, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 27, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 28, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 28, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 6, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 27, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 28, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 29, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 31, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 32, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 31, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 10, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 31, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 32, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 32, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 10, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 31, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 32, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 33, 14)) function foo3(x: typeof a); ->foo3 : { (x: new (x: T, y?: T) => B): any; (x: new (x: T, y?: T) => B): any; } ->x : new (x: T, y?: T) => B ->a : new (x: T, y?: T) => B +>foo3 : { (x: new (x: T, y?: T) => B): any; (x: new (x: T, y?: T) => B): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 36, 27)) +>x : new (x: T, y?: T) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 35, 14)) +>a : new (x: T, y?: T) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 20, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: new (x: T, y?: T) => B): any; (x: new (x: T, y?: T) => B): any; } ->x : new (x: T, y?: T) => B ->a : new (x: T, y?: T) => B +>foo3 : { (x: new (x: T, y?: T) => B): any; (x: new (x: T, y?: T) => B): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 36, 27)) +>x : new (x: T, y?: T) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 36, 14)) +>a : new (x: T, y?: T) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 20, 3)) function foo3(x: any) { } ->foo3 : { (x: new (x: T, y?: T) => B): any; (x: new (x: T, y?: T) => B): any; } ->x : any +>foo3 : { (x: new (x: T, y?: T) => B): any; (x: new (x: T, y?: T) => B): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 36, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 37, 14)) function foo4(x: typeof b); ->foo4 : { (x: { new(x: T, y?: T): C; }): any; (x: { new(x: T, y?: T): C; }): any; } ->x : { new(x: T, y?: T): C; } ->b : { new(x: T, y?: T): C; } +>foo4 : { (x: { new(x: T, y?: T): C; }): any; (x: { new(x: T, y?: T): C; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 40, 27)) +>x : { new(x: T, y?: T): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 39, 14)) +>b : { new(x: T, y?: T): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { new(x: T, y?: T): C; }): any; (x: { new(x: T, y?: T): C; }): any; } ->x : { new(x: T, y?: T): C; } ->b : { new(x: T, y?: T): C; } +>foo4 : { (x: { new(x: T, y?: T): C; }): any; (x: { new(x: T, y?: T): C; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 40, 27)) +>x : { new(x: T, y?: T): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 40, 14)) +>b : { new(x: T, y?: T): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 3)) function foo4(x: any) { } ->foo4 : { (x: { new(x: T, y?: T): C; }): any; (x: { new(x: T, y?: T): C; }): any; } ->x : any +>foo4 : { (x: { new(x: T, y?: T): C; }): any; (x: { new(x: T, y?: T): C; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 40, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 41, 14)) function foo8(x: B): string; ->foo8 : { (x: B): string; (x: I): number; } ->x : B ->B : B +>foo8 : { (x: B): string; (x: I): number; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 43, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 44, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 43, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 0, 0)) function foo8(x: I): number; // BUG 832086 ->foo8 : { (x: B): string; (x: I): number; } ->x : I ->I : I +>foo8 : { (x: B): string; (x: I): number; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 43, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 44, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 44, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 10, 1)) function foo8(x: any): any { } ->foo8 : { (x: B): string; (x: I): number; } ->x : any +>foo8 : { (x: B): string; (x: I): number; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 43, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 44, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 45, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 45, 30), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 47, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 48, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 47, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 0, 0)) function foo9(x: C); // error, differ only by return type ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 45, 30), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 47, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 48, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 48, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 6, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 45, 30), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 47, 28), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 48, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 49, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: new (x: T, y?: T) => B): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: new (x: T, y?: T) => B): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 51, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 52, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 51, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 0, 0)) function foo10(x: typeof a); // BUG 832086 ->foo10 : { (x: B): any; (x: new (x: T, y?: T) => B): any; } ->x : new (x: T, y?: T) => B ->a : new (x: T, y?: T) => B +>foo10 : { (x: B): any; (x: new (x: T, y?: T) => B): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 51, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 52, 28)) +>x : new (x: T, y?: T) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 52, 15)) +>a : new (x: T, y?: T) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 20, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: new (x: T, y?: T) => B): any; } ->x : any +>foo10 : { (x: B): any; (x: new (x: T, y?: T) => B): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 51, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 52, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 53, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { new(x: T, y?: T): C; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { new(x: T, y?: T): C; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 55, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 56, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 55, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 0, 0)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { new(x: T, y?: T): C; }): any; } ->x : { new(x: T, y?: T): C; } ->b : { new(x: T, y?: T): C; } +>foo11 : { (x: B): any; (x: { new(x: T, y?: T): C; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 55, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 56, 28)) +>x : { new(x: T, y?: T): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 56, 15)) +>b : { new(x: T, y?: T): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { new(x: T, y?: T): C; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { new(x: T, y?: T): C; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 55, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 56, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 57, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 59, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 60, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 59, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 10, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 59, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 60, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 60, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 6, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 59, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 60, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 61, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 64, 30)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 63, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 14, 1)) function foo12b(x: C); // BUG 832086 ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 64, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 64, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 6, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 64, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 65, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: new (x: T, y?: T) => B): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: new (x: T, y?: T) => B): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 67, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 68, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 67, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 10, 1)) function foo13(x: typeof a); // BUG 832086 ->foo13 : { (x: I): any; (x: new (x: T, y?: T) => B): any; } ->x : new (x: T, y?: T) => B ->a : new (x: T, y?: T) => B +>foo13 : { (x: I): any; (x: new (x: T, y?: T) => B): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 67, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 68, 28)) +>x : new (x: T, y?: T) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 68, 15)) +>a : new (x: T, y?: T) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 20, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: new (x: T, y?: T) => B): any; } ->x : any +>foo13 : { (x: I): any; (x: new (x: T, y?: T) => B): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 67, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 68, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 69, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { new(x: T, y?: T): C; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { new(x: T, y?: T): C; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 71, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 72, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 71, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 10, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { new(x: T, y?: T): C; }): any; } ->x : { new(x: T, y?: T): C; } ->b : { new(x: T, y?: T): C; } +>foo14 : { (x: I): any; (x: { new(x: T, y?: T): C; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 71, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 72, 28)) +>x : { new(x: T, y?: T): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 72, 15)) +>b : { new(x: T, y?: T): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 21, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { new(x: T, y?: T): C; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { new(x: T, y?: T): C; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 71, 29), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 72, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams.ts, 73, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.types b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.types index 3c0f09e61da..d8516e66aaa 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.types @@ -4,267 +4,269 @@ // optional or rest) and types, and identical return types. class B { ->B : B ->T : T ->U : U +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 4, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 4, 10)) constructor(x: T, y?: U) { return null; } ->x : T ->T : T ->y : U ->U : U +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 5, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 4, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 5, 21)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 4, 10)) +>null : null } class C { ->C : C ->T : T ->U : U +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 8, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 8, 10)) constructor(x: T, y?: U) { return null; } ->x : T ->T : T ->y : U ->U : U +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 9, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 8, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 9, 21)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 8, 10)) +>null : null } interface I { ->I : I ->T : T ->U : U +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 10, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 12, 12)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 12, 14)) new (x: T, y?: U): B; ->x : T ->T : T ->y : U ->U : U ->B : B ->T : T ->U : U +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 13, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 12, 12)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 13, 14)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 12, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 12, 12)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 12, 14)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 14, 1)) new (x: T, y?: U): C; ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->C : C ->T : T ->U : U +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 17, 9)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 17, 11)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 17, 15)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 17, 9)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 17, 20)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 17, 11)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 17, 9)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 17, 11)) } var a: { new(x: T, y?: U): B } ->a : new (x: T, y?: U) => B ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->B : B ->T : T ->U : U +>a : new (x: T, y?: U) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 3)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 15)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 19)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 13)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 24)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 15)) var b = { new(x: T, y?: U) { return new C(x, y); } }; // not a construct signature, function called new ->b : { new(x: T, y?: U): C; } +>b : { new(x: T, y?: U): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 3)) >{ new(x: T, y?: U) { return new C(x, y); } } : { new(x: T, y?: U): C; } ->new : (x: T, y?: U) => C ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>new : (x: T, y?: U) => C, Symbol(new, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 14)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 20)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 14)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 25)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 16)) >new C(x, y) : C ->C : typeof C ->T : T ->U : U ->x : T ->y : U +>C : typeof C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 14)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 20)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 25)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 65), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 23, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 24, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 23, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 0, 0)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 65), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 23, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 24, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 24, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 0, 0)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 65), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 23, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 24, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 25, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 27, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 28, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 27, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 6, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 27, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 28, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 28, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 6, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 27, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 28, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 29, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 31, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 32, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 31, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 10, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 31, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 32, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 32, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 10, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 31, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 32, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 33, 14)) function foo3(x: typeof a); ->foo3 : { (x: new (x: T, y?: U) => B): any; (x: new (x: T, y?: U) => B): any; } ->x : new (x: T, y?: U) => B ->a : new (x: T, y?: U) => B +>foo3 : { (x: new (x: T, y?: U) => B): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 36, 27)) +>x : new (x: T, y?: U) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 35, 14)) +>a : new (x: T, y?: U) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: new (x: T, y?: U) => B): any; (x: new (x: T, y?: U) => B): any; } ->x : new (x: T, y?: U) => B ->a : new (x: T, y?: U) => B +>foo3 : { (x: new (x: T, y?: U) => B): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 36, 27)) +>x : new (x: T, y?: U) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 36, 14)) +>a : new (x: T, y?: U) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 3)) function foo3(x: any) { } ->foo3 : { (x: new (x: T, y?: U) => B): any; (x: new (x: T, y?: U) => B): any; } ->x : any +>foo3 : { (x: new (x: T, y?: U) => B): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 36, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 37, 14)) function foo4(x: typeof b); ->foo4 : { (x: { new(x: T, y?: U): C; }): any; (x: { new(x: T, y?: U): C; }): any; } ->x : { new(x: T, y?: U): C; } ->b : { new(x: T, y?: U): C; } +>foo4 : { (x: { new(x: T, y?: U): C; }): any; (x: { new(x: T, y?: U): C; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 40, 27)) +>x : { new(x: T, y?: U): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 39, 14)) +>b : { new(x: T, y?: U): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { new(x: T, y?: U): C; }): any; (x: { new(x: T, y?: U): C; }): any; } ->x : { new(x: T, y?: U): C; } ->b : { new(x: T, y?: U): C; } +>foo4 : { (x: { new(x: T, y?: U): C; }): any; (x: { new(x: T, y?: U): C; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 40, 27)) +>x : { new(x: T, y?: U): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 40, 14)) +>b : { new(x: T, y?: U): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 3)) function foo4(x: any) { } ->foo4 : { (x: { new(x: T, y?: U): C; }): any; (x: { new(x: T, y?: U): C; }): any; } ->x : any +>foo4 : { (x: { new(x: T, y?: U): C; }): any; (x: { new(x: T, y?: U): C; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 40, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 41, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 43, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 44, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 43, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 0, 0)) function foo8(x: I); // BUG 832086 ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 43, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 44, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 44, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 10, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 43, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 44, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 45, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 47, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 48, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 47, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 0, 0)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 47, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 48, 36)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 48, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 6, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 47, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 48, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 49, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: new (x: T, y?: U) => B): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 51, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 52, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 51, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 0, 0)) function foo10(x: typeof a); // BUG 832086 ->foo10 : { (x: B): any; (x: new (x: T, y?: U) => B): any; } ->x : new (x: T, y?: U) => B ->a : new (x: T, y?: U) => B +>foo10 : { (x: B): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 51, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 52, 28)) +>x : new (x: T, y?: U) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 52, 15)) +>a : new (x: T, y?: U) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: new (x: T, y?: U) => B): any; } ->x : any +>foo10 : { (x: B): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 51, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 52, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 53, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { new(x: T, y?: U): C; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { new(x: T, y?: U): C; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 55, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 56, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 55, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 0, 0)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { new(x: T, y?: U): C; }): any; } ->x : { new(x: T, y?: U): C; } ->b : { new(x: T, y?: U): C; } +>foo11 : { (x: B): any; (x: { new(x: T, y?: U): C; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 55, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 56, 28)) +>x : { new(x: T, y?: U): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 56, 15)) +>b : { new(x: T, y?: U): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { new(x: T, y?: U): C; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { new(x: T, y?: U): C; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 55, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 56, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 57, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 59, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 60, 37)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 59, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 10, 1)) function foo12(x: C); // BUG 832086 ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 59, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 60, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 60, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 6, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 59, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 60, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 61, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 64, 38)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 63, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 14, 1)) function foo12b(x: C); // ok ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 64, 38)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 64, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 6, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 64, 38)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 65, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: new (x: T, y?: U) => B): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 67, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 68, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 67, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 10, 1)) function foo13(x: typeof a); // BUG 832086 ->foo13 : { (x: I): any; (x: new (x: T, y?: U) => B): any; } ->x : new (x: T, y?: U) => B ->a : new (x: T, y?: U) => B +>foo13 : { (x: I): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 67, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 68, 28)) +>x : new (x: T, y?: U) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 68, 15)) +>a : new (x: T, y?: U) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 20, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: new (x: T, y?: U) => B): any; } ->x : any +>foo13 : { (x: I): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 67, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 68, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 69, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { new(x: T, y?: U): C; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { new(x: T, y?: U): C; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 71, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 72, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 71, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 10, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { new(x: T, y?: U): C; }): any; } ->x : { new(x: T, y?: U): C; } ->b : { new(x: T, y?: U): C; } +>foo14 : { (x: I): any; (x: { new(x: T, y?: U): C; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 71, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 72, 28)) +>x : { new(x: T, y?: U): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 72, 15)) +>b : { new(x: T, y?: U): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 21, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { new(x: T, y?: U): C; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { new(x: T, y?: U): C; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 71, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 72, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams2.ts, 73, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.types b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.types index f21ccc15abb..a0b4ae9caca 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.types +++ b/tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.types @@ -4,267 +4,269 @@ // optional or rest) and types, and identical return types. class B { ->B : B ->T : T ->U : U +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 4, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 4, 10)) constructor(x: T, y: U) { return null; } ->x : T ->T : T ->y : U ->U : U +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 5, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 4, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 5, 21)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 4, 10)) +>null : null } class C { ->C : C ->T : T ->U : U +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 8, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 8, 10)) constructor(x: T, y?: U) { return null; } ->x : T ->T : T ->y : U ->U : U +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 9, 16)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 8, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 9, 21)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 8, 10)) +>null : null } interface I { ->I : I ->T : T ->U : U +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 10, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 12, 12)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 12, 14)) new(x: T, y?: U): B; ->x : T ->T : T ->y : U ->U : U ->B : B ->T : T ->U : U +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 13, 8)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 12, 12)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 13, 13)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 12, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 12, 12)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 12, 14)) } interface I2 { ->I2 : I2 +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 14, 1)) new(x: T, y: U): C; ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->C : C ->T : T ->U : U +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 17, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 17, 10)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 17, 14)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 17, 8)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 17, 19)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 17, 10)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 17, 8)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 17, 10)) } var a: { new (x: T, y?: U): B }; ->a : new (x: T, y?: U) => B ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U ->B : B ->T : T ->U : U +>a : new (x: T, y?: U) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 3)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 14)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 20)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 14)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 25)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 14)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 16)) var b = { new(x: T, y: U) { return new C(x, y); } }; // not a construct signature, function called new ->b : { new(x: T, y: U): C; } +>b : { new(x: T, y: U): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 3)) >{ new(x: T, y: U) { return new C(x, y); } } : { new(x: T, y: U): C; } ->new : (x: T, y: U) => C ->T : T ->U : U ->x : T ->T : T ->y : U ->U : U +>new : (x: T, y: U) => C, Symbol(new, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 9)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 14)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 20)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 14)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 25)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 16)) >new C(x, y) : C ->C : typeof C ->T : T ->U : U ->x : T ->y : U +>C : typeof C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 6, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 14)) +>U : U, Symbol(U, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 16)) +>x : T, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 20)) +>y : U, Symbol(y, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 25)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 64), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 23, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 24, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 23, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 0, 0)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 64), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 23, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 24, 37)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 24, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 0, 0)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 64), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 23, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 24, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 25, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 27, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 28, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 27, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 6, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 27, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 28, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 28, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 6, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 25, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 27, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 28, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 29, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 31, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 32, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 31, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 10, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 31, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 32, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 32, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 10, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 29, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 31, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 32, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 33, 14)) function foo3(x: typeof a); ->foo3 : { (x: new (x: T, y?: U) => B): any; (x: new (x: T, y?: U) => B): any; } ->x : new (x: T, y?: U) => B ->a : new (x: T, y?: U) => B +>foo3 : { (x: new (x: T, y?: U) => B): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 36, 27)) +>x : new (x: T, y?: U) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 35, 14)) +>a : new (x: T, y?: U) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: new (x: T, y?: U) => B): any; (x: new (x: T, y?: U) => B): any; } ->x : new (x: T, y?: U) => B ->a : new (x: T, y?: U) => B +>foo3 : { (x: new (x: T, y?: U) => B): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 36, 27)) +>x : new (x: T, y?: U) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 36, 14)) +>a : new (x: T, y?: U) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 3)) function foo3(x: any) { } ->foo3 : { (x: new (x: T, y?: U) => B): any; (x: new (x: T, y?: U) => B): any; } ->x : any +>foo3 : { (x: new (x: T, y?: U) => B): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo3, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 33, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 35, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 36, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 37, 14)) function foo4(x: typeof b); ->foo4 : { (x: { new(x: T, y: U): C; }): any; (x: { new(x: T, y: U): C; }): any; } ->x : { new(x: T, y: U): C; } ->b : { new(x: T, y: U): C; } +>foo4 : { (x: { new(x: T, y: U): C; }): any; (x: { new(x: T, y: U): C; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 40, 27)) +>x : { new(x: T, y: U): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 39, 14)) +>b : { new(x: T, y: U): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { new(x: T, y: U): C; }): any; (x: { new(x: T, y: U): C; }): any; } ->x : { new(x: T, y: U): C; } ->b : { new(x: T, y: U): C; } +>foo4 : { (x: { new(x: T, y: U): C; }): any; (x: { new(x: T, y: U): C; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 40, 27)) +>x : { new(x: T, y: U): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 40, 14)) +>b : { new(x: T, y: U): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 3)) function foo4(x: any) { } ->foo4 : { (x: { new(x: T, y: U): C; }): any; (x: { new(x: T, y: U): C; }): any; } ->x : any +>foo4 : { (x: { new(x: T, y: U): C; }): any; (x: { new(x: T, y: U): C; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 37, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 39, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 40, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 41, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 43, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 44, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 43, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 0, 0)) function foo8(x: I); // BUG 832086 ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 43, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 44, 36)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 44, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 10, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 41, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 43, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 44, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 45, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 47, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 48, 36)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 47, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 0, 0)) function foo9(x: C); // error, differ only by return type ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 47, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 48, 36)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 48, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 6, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 45, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 47, 36), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 48, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 49, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: new (x: T, y?: U) => B): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 51, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 52, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 51, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 0, 0)) function foo10(x: typeof a); // BUG 832086 ->foo10 : { (x: B): any; (x: new (x: T, y?: U) => B): any; } ->x : new (x: T, y?: U) => B ->a : new (x: T, y?: U) => B +>foo10 : { (x: B): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 51, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 52, 28)) +>x : new (x: T, y?: U) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 52, 15)) +>a : new (x: T, y?: U) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: new (x: T, y?: U) => B): any; } ->x : any +>foo10 : { (x: B): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo10, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 49, 25), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 51, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 52, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 53, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { new(x: T, y: U): C; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { new(x: T, y: U): C; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 55, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 56, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 55, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 0, 0)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { new(x: T, y: U): C; }): any; } ->x : { new(x: T, y: U): C; } ->b : { new(x: T, y: U): C; } +>foo11 : { (x: B): any; (x: { new(x: T, y: U): C; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 55, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 56, 28)) +>x : { new(x: T, y: U): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 56, 15)) +>b : { new(x: T, y: U): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { new(x: T, y: U): C; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { new(x: T, y: U): C; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 53, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 55, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 56, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 57, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 59, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 60, 37)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 59, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 10, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 59, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 60, 37)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 60, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 6, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 57, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 59, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 60, 37)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 61, 15)) function foo12b(x: I2); ->foo12b : { (x: I2): any; (x: C): any; } ->x : I2 ->I2 : I2 +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 64, 38)) +>x : I2, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 63, 16)) +>I2 : I2, Symbol(I2, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 14, 1)) function foo12b(x: C); // BUG 832086 ->foo12b : { (x: I2): any; (x: C): any; } ->x : C ->C : C +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 64, 38)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 64, 16)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 6, 1)) function foo12b(x: any) { } ->foo12b : { (x: I2): any; (x: C): any; } ->x : any +>foo12b : { (x: I2): any; (x: C): any; }, Symbol(foo12b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 61, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 63, 23), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 64, 38)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 65, 16)) function foo13(x: I); ->foo13 : { (x: I): any; (x: new (x: T, y?: U) => B): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 67, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 68, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 67, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 10, 1)) function foo13(x: typeof a); // BUG 832086 ->foo13 : { (x: I): any; (x: new (x: T, y?: U) => B): any; } ->x : new (x: T, y?: U) => B ->a : new (x: T, y?: U) => B +>foo13 : { (x: I): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 67, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 68, 28)) +>x : new (x: T, y?: U) => B, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 68, 15)) +>a : new (x: T, y?: U) => B, Symbol(a, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 20, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: new (x: T, y?: U) => B): any; } ->x : any +>foo13 : { (x: I): any; (x: new (x: T, y?: U) => B): any; }, Symbol(foo13, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 65, 27), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 67, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 68, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 69, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { new(x: T, y: U): C; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { new(x: T, y: U): C; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 71, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 72, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 71, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 10, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { new(x: T, y: U): C; }): any; } ->x : { new(x: T, y: U): C; } ->b : { new(x: T, y: U): C; } +>foo14 : { (x: I): any; (x: { new(x: T, y: U): C; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 71, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 72, 28)) +>x : { new(x: T, y: U): C; }, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 72, 15)) +>b : { new(x: T, y: U): C; }, Symbol(b, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 21, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { new(x: T, y: U): C; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { new(x: T, y: U): C; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 69, 26), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 71, 37), Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 72, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithGenericConstructSignaturesOptionalParams3.ts, 73, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.types b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.types index a0603ae0777..141015a1bc3 100644 --- a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.types +++ b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.types @@ -2,377 +2,378 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers1.ts, 0, 0)) [x: number]: string; ->x : number +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 3, 5)) } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers1.ts, 4, 1)) [x: number]: string; ->x : number +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 7, 5)) } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers1.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithNumericIndexers1.ts, 10, 8)) [x: number]: T; ->x : number ->T : T +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 11, 5)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithNumericIndexers1.ts, 10, 8)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers1.ts, 12, 1)) [x: number]: string; ->x : number +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 15, 5)) } class PA extends A { ->PA : PA ->A : A +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers1.ts, 16, 1)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers1.ts, 0, 0)) } class PB extends B { ->PB : PB ->B : B +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers1.ts, 19, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers1.ts, 4, 1)) } var a: { ->a : { [x: number]: string; } +>a : { [x: number]: string; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers1.ts, 24, 3)) [x: number]: string; ->x : number +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 25, 5)) } var b: { [x: number]: string; } = { foo: '' }; ->b : { [x: number]: string; } ->x : number +>b : { [x: number]: string; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 27, 3)) +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 27, 10)) >{ foo: '' } : { [x: number]: undefined; foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithNumericIndexers1.ts, 27, 35)) +>'' : string function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithNumericIndexers1.ts, 27, 46), Decl(objectTypesIdentityWithNumericIndexers1.ts, 29, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 30, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 29, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers1.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithNumericIndexers1.ts, 27, 46), Decl(objectTypesIdentityWithNumericIndexers1.ts, 29, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 30, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 30, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers1.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithNumericIndexers1.ts, 27, 46), Decl(objectTypesIdentityWithNumericIndexers1.ts, 29, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 30, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 31, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 31, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 33, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 34, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 33, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers1.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 31, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 33, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 34, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 34, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers1.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 31, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 33, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 34, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 35, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithNumericIndexers1.ts, 35, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 37, 29), Decl(objectTypesIdentityWithNumericIndexers1.ts, 38, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 37, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers1.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithNumericIndexers1.ts, 35, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 37, 29), Decl(objectTypesIdentityWithNumericIndexers1.ts, 38, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 38, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers1.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithNumericIndexers1.ts, 35, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 37, 29), Decl(objectTypesIdentityWithNumericIndexers1.ts, 38, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 39, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithNumericIndexers1.ts, 39, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 41, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 42, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 41, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers1.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithNumericIndexers1.ts, 39, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 41, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 42, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 42, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers1.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithNumericIndexers1.ts, 39, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 41, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 42, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 43, 14)) function foo3(x: typeof a); ->foo3 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->a : { [x: number]: string; } +>foo3 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithNumericIndexers1.ts, 43, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 45, 27), Decl(objectTypesIdentityWithNumericIndexers1.ts, 46, 27)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 45, 14)) +>a : { [x: number]: string; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers1.ts, 24, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->a : { [x: number]: string; } +>foo3 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithNumericIndexers1.ts, 43, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 45, 27), Decl(objectTypesIdentityWithNumericIndexers1.ts, 46, 27)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 46, 14)) +>a : { [x: number]: string; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers1.ts, 24, 3)) function foo3(x: any) { } ->foo3 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; } ->x : any +>foo3 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithNumericIndexers1.ts, 43, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 45, 27), Decl(objectTypesIdentityWithNumericIndexers1.ts, 46, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 47, 14)) function foo4(x: typeof b); ->foo4 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->b : { [x: number]: string; } +>foo4 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithNumericIndexers1.ts, 47, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 49, 27), Decl(objectTypesIdentityWithNumericIndexers1.ts, 50, 27)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 49, 14)) +>b : { [x: number]: string; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 27, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->b : { [x: number]: string; } +>foo4 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithNumericIndexers1.ts, 47, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 49, 27), Decl(objectTypesIdentityWithNumericIndexers1.ts, 50, 27)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 50, 14)) +>b : { [x: number]: string; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 27, 3)) function foo4(x: any) { } ->foo4 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; } ->x : any +>foo4 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithNumericIndexers1.ts, 47, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 49, 27), Decl(objectTypesIdentityWithNumericIndexers1.ts, 50, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 51, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithNumericIndexers1.ts, 51, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 53, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 54, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 53, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers1.ts, 0, 0)) function foo5(x: B); // error ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithNumericIndexers1.ts, 51, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 53, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 54, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 54, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers1.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithNumericIndexers1.ts, 51, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 53, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 54, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 55, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 55, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 57, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 58, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 57, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers1.ts, 0, 0)) function foo5b(x: C); // error ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 55, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 57, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 58, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 58, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers1.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 55, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 57, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 58, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 59, 15)) function foo5c(x: A); ->foo5c : { (x: A): any; (x: PA): any; } ->x : A ->A : A +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithNumericIndexers1.ts, 59, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 61, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 62, 22)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 61, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers1.ts, 0, 0)) function foo5c(x: PA); // error ->foo5c : { (x: A): any; (x: PA): any; } ->x : PA ->PA : PA +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithNumericIndexers1.ts, 59, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 61, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 62, 22)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 62, 15)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers1.ts, 16, 1)) function foo5c(x: any) { } ->foo5c : { (x: A): any; (x: PA): any; } ->x : any +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithNumericIndexers1.ts, 59, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 61, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 62, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 63, 15)) function foo5d(x: A); ->foo5d : { (x: A): any; (x: PB): any; } ->x : A ->A : A +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithNumericIndexers1.ts, 63, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 65, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 66, 22)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 65, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers1.ts, 0, 0)) function foo5d(x: PB); // error ->foo5d : { (x: A): any; (x: PB): any; } ->x : PB ->PB : PB +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithNumericIndexers1.ts, 63, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 65, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 66, 22)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 66, 15)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers1.ts, 19, 1)) function foo5d(x: any) { } ->foo5d : { (x: A): any; (x: PB): any; } ->x : any +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithNumericIndexers1.ts, 63, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 65, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 66, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 67, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithNumericIndexers1.ts, 67, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 69, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 70, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 69, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers1.ts, 0, 0)) function foo6(x: I); // error ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithNumericIndexers1.ts, 67, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 69, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 70, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 70, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers1.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithNumericIndexers1.ts, 67, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 69, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 70, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 71, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { [x: number]: string; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { [x: number]: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithNumericIndexers1.ts, 71, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 73, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 74, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 73, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers1.ts, 0, 0)) function foo7(x: typeof a); // error ->foo7 : { (x: A): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->a : { [x: number]: string; } +>foo7 : { (x: A): any; (x: { [x: number]: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithNumericIndexers1.ts, 71, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 73, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 74, 27)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 74, 14)) +>a : { [x: number]: string; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers1.ts, 24, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { [x: number]: string; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { [x: number]: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithNumericIndexers1.ts, 71, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 73, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 74, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 75, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithNumericIndexers1.ts, 75, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 77, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 78, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 77, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers1.ts, 4, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithNumericIndexers1.ts, 75, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 77, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 78, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 78, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers1.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithNumericIndexers1.ts, 75, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 77, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 78, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 79, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithNumericIndexers1.ts, 79, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 81, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 82, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 81, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers1.ts, 4, 1)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithNumericIndexers1.ts, 79, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 81, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 82, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 82, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers1.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithNumericIndexers1.ts, 79, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 81, 20), Decl(objectTypesIdentityWithNumericIndexers1.ts, 82, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 83, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { [x: number]: string; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { [x: number]: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithNumericIndexers1.ts, 83, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 85, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 86, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 85, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers1.ts, 4, 1)) function foo10(x: typeof a); // error ->foo10 : { (x: B): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->a : { [x: number]: string; } +>foo10 : { (x: B): any; (x: { [x: number]: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithNumericIndexers1.ts, 83, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 85, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 86, 28)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 86, 15)) +>a : { [x: number]: string; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers1.ts, 24, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { [x: number]: string; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { [x: number]: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithNumericIndexers1.ts, 83, 25), Decl(objectTypesIdentityWithNumericIndexers1.ts, 85, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 86, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 87, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { [x: number]: string; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { [x: number]: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithNumericIndexers1.ts, 87, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 89, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 90, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 89, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers1.ts, 4, 1)) function foo11(x: typeof b); // error ->foo11 : { (x: B): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->b : { [x: number]: string; } +>foo11 : { (x: B): any; (x: { [x: number]: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithNumericIndexers1.ts, 87, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 89, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 90, 28)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 90, 15)) +>b : { [x: number]: string; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 27, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { [x: number]: string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { [x: number]: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithNumericIndexers1.ts, 87, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 89, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 90, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 91, 15)) function foo11b(x: B); ->foo11b : { (x: B): any; (x: PA): any; } ->x : B ->B : B +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 91, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 93, 22), Decl(objectTypesIdentityWithNumericIndexers1.ts, 94, 23)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 93, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers1.ts, 4, 1)) function foo11b(x: PA); // error ->foo11b : { (x: B): any; (x: PA): any; } ->x : PA ->PA : PA +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 91, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 93, 22), Decl(objectTypesIdentityWithNumericIndexers1.ts, 94, 23)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 94, 16)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers1.ts, 16, 1)) function foo11b(x: any) { } ->foo11b : { (x: B): any; (x: PA): any; } ->x : any +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 91, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 93, 22), Decl(objectTypesIdentityWithNumericIndexers1.ts, 94, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 95, 16)) function foo11c(x: B); ->foo11c : { (x: B): any; (x: PB): any; } ->x : B ->B : B +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithNumericIndexers1.ts, 95, 27), Decl(objectTypesIdentityWithNumericIndexers1.ts, 97, 22), Decl(objectTypesIdentityWithNumericIndexers1.ts, 98, 23)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 97, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers1.ts, 4, 1)) function foo11c(x: PB); // error ->foo11c : { (x: B): any; (x: PB): any; } ->x : PB ->PB : PB +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithNumericIndexers1.ts, 95, 27), Decl(objectTypesIdentityWithNumericIndexers1.ts, 97, 22), Decl(objectTypesIdentityWithNumericIndexers1.ts, 98, 23)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 98, 16)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers1.ts, 19, 1)) function foo11c(x: any) { } ->foo11c : { (x: B): any; (x: PB): any; } ->x : any +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithNumericIndexers1.ts, 95, 27), Decl(objectTypesIdentityWithNumericIndexers1.ts, 97, 22), Decl(objectTypesIdentityWithNumericIndexers1.ts, 98, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 99, 16)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithNumericIndexers1.ts, 99, 27), Decl(objectTypesIdentityWithNumericIndexers1.ts, 101, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 102, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 101, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers1.ts, 12, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithNumericIndexers1.ts, 99, 27), Decl(objectTypesIdentityWithNumericIndexers1.ts, 101, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 102, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 102, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers1.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithNumericIndexers1.ts, 99, 27), Decl(objectTypesIdentityWithNumericIndexers1.ts, 101, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 102, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 103, 15)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { [x: number]: string; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { [x: number]: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithNumericIndexers1.ts, 103, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 105, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 106, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 105, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers1.ts, 12, 1)) function foo13(x: typeof a); // error ->foo13 : { (x: I): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->a : { [x: number]: string; } +>foo13 : { (x: I): any; (x: { [x: number]: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithNumericIndexers1.ts, 103, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 105, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 106, 28)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 106, 15)) +>a : { [x: number]: string; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers1.ts, 24, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { [x: number]: string; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { [x: number]: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithNumericIndexers1.ts, 103, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 105, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 106, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 107, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { [x: number]: string; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { [x: number]: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithNumericIndexers1.ts, 107, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 109, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 110, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 109, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers1.ts, 12, 1)) function foo14(x: typeof b); // error ->foo14 : { (x: I): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->b : { [x: number]: string; } +>foo14 : { (x: I): any; (x: { [x: number]: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithNumericIndexers1.ts, 107, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 109, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 110, 28)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 110, 15)) +>b : { [x: number]: string; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers1.ts, 27, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { [x: number]: string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { [x: number]: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithNumericIndexers1.ts, 107, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 109, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 110, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 111, 15)) function foo15(x: I); ->foo15 : { (x: I): any; (x: PA): any; } ->x : I ->I : I +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithNumericIndexers1.ts, 111, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 113, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 114, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 113, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers1.ts, 12, 1)) function foo15(x: PA); // error ->foo15 : { (x: I): any; (x: PA): any; } ->x : PA ->PA : PA +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithNumericIndexers1.ts, 111, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 113, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 114, 22)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 114, 15)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers1.ts, 16, 1)) function foo15(x: any) { } ->foo15 : { (x: I): any; (x: PA): any; } ->x : any +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithNumericIndexers1.ts, 111, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 113, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 114, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 115, 15)) function foo16(x: I); ->foo16 : { (x: I): any; (x: PB): any; } ->x : I ->I : I +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithNumericIndexers1.ts, 115, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 117, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 118, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 117, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers1.ts, 12, 1)) function foo16(x: PB); // error ->foo16 : { (x: I): any; (x: PB): any; } ->x : PB ->PB : PB +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithNumericIndexers1.ts, 115, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 117, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 118, 22)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 118, 15)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers1.ts, 19, 1)) function foo16(x: any) { } ->foo16 : { (x: I): any; (x: PB): any; } ->x : any +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithNumericIndexers1.ts, 115, 26), Decl(objectTypesIdentityWithNumericIndexers1.ts, 117, 21), Decl(objectTypesIdentityWithNumericIndexers1.ts, 118, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers1.ts, 119, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.types b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.types index 9e4ccb5c43b..7b941467927 100644 --- a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.types +++ b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.types @@ -2,396 +2,397 @@ // object types are identical structurally class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(objectTypesIdentityWithNumericIndexers2.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithNumericIndexers2.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithNumericIndexers2.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(objectTypesIdentityWithNumericIndexers2.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(objectTypesIdentityWithNumericIndexers2.ts, 3, 28)) class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers2.ts, 3, 43)) [x: number]: Base; ->x : number ->Base : Base +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 6, 5)) +>Base : Base, Symbol(Base, Decl(objectTypesIdentityWithNumericIndexers2.ts, 0, 0)) } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers2.ts, 7, 1)) [x: number]: Derived; ->x : number ->Derived : Derived +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 10, 5)) +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithNumericIndexers2.ts, 2, 27)) } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers2.ts, 11, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithNumericIndexers2.ts, 13, 8)) [x: number]: T; ->x : number ->T : T +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 14, 5)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithNumericIndexers2.ts, 13, 8)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers2.ts, 15, 1)) [x: number]: Derived; ->x : number ->Derived : Derived +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 18, 5)) +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithNumericIndexers2.ts, 2, 27)) } class PA extends A { ->PA : PA ->A : A +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers2.ts, 19, 1)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers2.ts, 3, 43)) } class PB extends B { ->PB : PB ->B : B +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers2.ts, 22, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers2.ts, 7, 1)) } var a: { ->a : { [x: number]: Base; } +>a : { [x: number]: Base; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers2.ts, 27, 3)) [x: number]: Base; ->x : number ->Base : Base +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 28, 5)) +>Base : Base, Symbol(Base, Decl(objectTypesIdentityWithNumericIndexers2.ts, 0, 0)) } var b: { [x: number]: Derived; } = { foo: null }; ->b : { [x: number]: Derived; } ->x : number ->Derived : Derived +>b : { [x: number]: Derived; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 30, 3)) +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 30, 10)) +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithNumericIndexers2.ts, 2, 27)) >{ foo: null } : { [x: number]: undefined; foo: Derived; } ->foo : Derived +>foo : Derived, Symbol(foo, Decl(objectTypesIdentityWithNumericIndexers2.ts, 30, 36)) >null : Derived ->Derived : Derived +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithNumericIndexers2.ts, 2, 27)) +>null : null function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithNumericIndexers2.ts, 30, 58), Decl(objectTypesIdentityWithNumericIndexers2.ts, 32, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 33, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 32, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers2.ts, 3, 43)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithNumericIndexers2.ts, 30, 58), Decl(objectTypesIdentityWithNumericIndexers2.ts, 32, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 33, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 33, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers2.ts, 3, 43)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithNumericIndexers2.ts, 30, 58), Decl(objectTypesIdentityWithNumericIndexers2.ts, 32, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 33, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 34, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 34, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 36, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 37, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 36, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers2.ts, 7, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 34, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 36, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 37, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 37, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers2.ts, 7, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 34, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 36, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 37, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 38, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithNumericIndexers2.ts, 38, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 40, 29), Decl(objectTypesIdentityWithNumericIndexers2.ts, 41, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 40, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers2.ts, 11, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithNumericIndexers2.ts, 38, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 40, 29), Decl(objectTypesIdentityWithNumericIndexers2.ts, 41, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 41, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers2.ts, 11, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithNumericIndexers2.ts, 38, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 40, 29), Decl(objectTypesIdentityWithNumericIndexers2.ts, 41, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 42, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithNumericIndexers2.ts, 42, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 44, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 45, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 44, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers2.ts, 15, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithNumericIndexers2.ts, 42, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 44, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 45, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 45, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers2.ts, 15, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithNumericIndexers2.ts, 42, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 44, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 45, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 46, 14)) function foo3(x: typeof a); ->foo3 : { (x: { [x: number]: Base; }): any; (x: { [x: number]: Base; }): any; } ->x : { [x: number]: Base; } ->a : { [x: number]: Base; } +>foo3 : { (x: { [x: number]: Base; }): any; (x: { [x: number]: Base; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithNumericIndexers2.ts, 46, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 48, 27), Decl(objectTypesIdentityWithNumericIndexers2.ts, 49, 27)) +>x : { [x: number]: Base; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 48, 14)) +>a : { [x: number]: Base; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers2.ts, 27, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { [x: number]: Base; }): any; (x: { [x: number]: Base; }): any; } ->x : { [x: number]: Base; } ->a : { [x: number]: Base; } +>foo3 : { (x: { [x: number]: Base; }): any; (x: { [x: number]: Base; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithNumericIndexers2.ts, 46, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 48, 27), Decl(objectTypesIdentityWithNumericIndexers2.ts, 49, 27)) +>x : { [x: number]: Base; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 49, 14)) +>a : { [x: number]: Base; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers2.ts, 27, 3)) function foo3(x: any) { } ->foo3 : { (x: { [x: number]: Base; }): any; (x: { [x: number]: Base; }): any; } ->x : any +>foo3 : { (x: { [x: number]: Base; }): any; (x: { [x: number]: Base; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithNumericIndexers2.ts, 46, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 48, 27), Decl(objectTypesIdentityWithNumericIndexers2.ts, 49, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 50, 14)) function foo4(x: typeof b); ->foo4 : { (x: { [x: number]: Derived; }): any; (x: { [x: number]: Derived; }): any; } ->x : { [x: number]: Derived; } ->b : { [x: number]: Derived; } +>foo4 : { (x: { [x: number]: Derived; }): any; (x: { [x: number]: Derived; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithNumericIndexers2.ts, 50, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 52, 27), Decl(objectTypesIdentityWithNumericIndexers2.ts, 53, 27)) +>x : { [x: number]: Derived; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 52, 14)) +>b : { [x: number]: Derived; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 30, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { [x: number]: Derived; }): any; (x: { [x: number]: Derived; }): any; } ->x : { [x: number]: Derived; } ->b : { [x: number]: Derived; } +>foo4 : { (x: { [x: number]: Derived; }): any; (x: { [x: number]: Derived; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithNumericIndexers2.ts, 50, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 52, 27), Decl(objectTypesIdentityWithNumericIndexers2.ts, 53, 27)) +>x : { [x: number]: Derived; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 53, 14)) +>b : { [x: number]: Derived; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 30, 3)) function foo4(x: any) { } ->foo4 : { (x: { [x: number]: Derived; }): any; (x: { [x: number]: Derived; }): any; } ->x : any +>foo4 : { (x: { [x: number]: Derived; }): any; (x: { [x: number]: Derived; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithNumericIndexers2.ts, 50, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 52, 27), Decl(objectTypesIdentityWithNumericIndexers2.ts, 53, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 54, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithNumericIndexers2.ts, 54, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 56, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 57, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 56, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers2.ts, 3, 43)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithNumericIndexers2.ts, 54, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 56, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 57, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 57, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers2.ts, 7, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithNumericIndexers2.ts, 54, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 56, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 57, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 58, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 58, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 60, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 61, 30)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 60, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers2.ts, 3, 43)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C ->Derived : Derived +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 58, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 60, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 61, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 61, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers2.ts, 11, 1)) +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithNumericIndexers2.ts, 2, 27)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 58, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 60, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 61, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 62, 15)) function foo5c(x: A); ->foo5c : { (x: A): any; (x: PA): any; } ->x : A ->A : A +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithNumericIndexers2.ts, 62, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 64, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 65, 22)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 64, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers2.ts, 3, 43)) function foo5c(x: PA); // error ->foo5c : { (x: A): any; (x: PA): any; } ->x : PA ->PA : PA +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithNumericIndexers2.ts, 62, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 64, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 65, 22)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 65, 15)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers2.ts, 19, 1)) function foo5c(x: any) { } ->foo5c : { (x: A): any; (x: PA): any; } ->x : any +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithNumericIndexers2.ts, 62, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 64, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 65, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 66, 15)) function foo5d(x: A); ->foo5d : { (x: A): any; (x: PB): any; } ->x : A ->A : A +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithNumericIndexers2.ts, 66, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 68, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 69, 22)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 68, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers2.ts, 3, 43)) function foo5d(x: PB); // ok ->foo5d : { (x: A): any; (x: PB): any; } ->x : PB ->PB : PB +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithNumericIndexers2.ts, 66, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 68, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 69, 22)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 69, 15)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers2.ts, 22, 1)) function foo5d(x: any) { } ->foo5d : { (x: A): any; (x: PB): any; } ->x : any +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithNumericIndexers2.ts, 66, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 68, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 69, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 70, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithNumericIndexers2.ts, 70, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 72, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 73, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 72, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers2.ts, 3, 43)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithNumericIndexers2.ts, 70, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 72, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 73, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 73, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers2.ts, 15, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithNumericIndexers2.ts, 70, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 72, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 73, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 74, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { [x: number]: Base; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { [x: number]: Base; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithNumericIndexers2.ts, 74, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 76, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 77, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 76, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers2.ts, 3, 43)) function foo7(x: typeof a); // error ->foo7 : { (x: A): any; (x: { [x: number]: Base; }): any; } ->x : { [x: number]: Base; } ->a : { [x: number]: Base; } +>foo7 : { (x: A): any; (x: { [x: number]: Base; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithNumericIndexers2.ts, 74, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 76, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 77, 27)) +>x : { [x: number]: Base; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 77, 14)) +>a : { [x: number]: Base; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers2.ts, 27, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { [x: number]: Base; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { [x: number]: Base; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithNumericIndexers2.ts, 74, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 76, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 77, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 78, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithNumericIndexers2.ts, 78, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 80, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 81, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 80, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers2.ts, 7, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithNumericIndexers2.ts, 78, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 80, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 81, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 81, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers2.ts, 15, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithNumericIndexers2.ts, 78, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 80, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 81, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 82, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithNumericIndexers2.ts, 82, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 84, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 85, 26)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 84, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers2.ts, 7, 1)) function foo9(x: C); // ok ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C ->Base : Base +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithNumericIndexers2.ts, 82, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 84, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 85, 26)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 85, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers2.ts, 11, 1)) +>Base : Base, Symbol(Base, Decl(objectTypesIdentityWithNumericIndexers2.ts, 0, 0)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithNumericIndexers2.ts, 82, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 84, 20), Decl(objectTypesIdentityWithNumericIndexers2.ts, 85, 26)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 86, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { [x: number]: Base; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { [x: number]: Base; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithNumericIndexers2.ts, 86, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 88, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 89, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 88, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers2.ts, 7, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { [x: number]: Base; }): any; } ->x : { [x: number]: Base; } ->a : { [x: number]: Base; } +>foo10 : { (x: B): any; (x: { [x: number]: Base; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithNumericIndexers2.ts, 86, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 88, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 89, 28)) +>x : { [x: number]: Base; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 89, 15)) +>a : { [x: number]: Base; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers2.ts, 27, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { [x: number]: Base; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { [x: number]: Base; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithNumericIndexers2.ts, 86, 25), Decl(objectTypesIdentityWithNumericIndexers2.ts, 88, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 89, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 90, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { [x: number]: Derived; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { [x: number]: Derived; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithNumericIndexers2.ts, 90, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 92, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 93, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 92, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers2.ts, 7, 1)) function foo11(x: typeof b); // error ->foo11 : { (x: B): any; (x: { [x: number]: Derived; }): any; } ->x : { [x: number]: Derived; } ->b : { [x: number]: Derived; } +>foo11 : { (x: B): any; (x: { [x: number]: Derived; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithNumericIndexers2.ts, 90, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 92, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 93, 28)) +>x : { [x: number]: Derived; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 93, 15)) +>b : { [x: number]: Derived; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 30, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { [x: number]: Derived; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { [x: number]: Derived; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithNumericIndexers2.ts, 90, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 92, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 93, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 94, 15)) function foo11b(x: B); ->foo11b : { (x: B): any; (x: PA): any; } ->x : B ->B : B +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 94, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 96, 22), Decl(objectTypesIdentityWithNumericIndexers2.ts, 97, 23)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 96, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers2.ts, 7, 1)) function foo11b(x: PA); // ok ->foo11b : { (x: B): any; (x: PA): any; } ->x : PA ->PA : PA +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 94, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 96, 22), Decl(objectTypesIdentityWithNumericIndexers2.ts, 97, 23)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 97, 16)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers2.ts, 19, 1)) function foo11b(x: any) { } ->foo11b : { (x: B): any; (x: PA): any; } ->x : any +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 94, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 96, 22), Decl(objectTypesIdentityWithNumericIndexers2.ts, 97, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 98, 16)) function foo11c(x: B); ->foo11c : { (x: B): any; (x: PB): any; } ->x : B ->B : B +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithNumericIndexers2.ts, 98, 27), Decl(objectTypesIdentityWithNumericIndexers2.ts, 100, 22), Decl(objectTypesIdentityWithNumericIndexers2.ts, 101, 23)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 100, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers2.ts, 7, 1)) function foo11c(x: PB); // error ->foo11c : { (x: B): any; (x: PB): any; } ->x : PB ->PB : PB +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithNumericIndexers2.ts, 98, 27), Decl(objectTypesIdentityWithNumericIndexers2.ts, 100, 22), Decl(objectTypesIdentityWithNumericIndexers2.ts, 101, 23)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 101, 16)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers2.ts, 22, 1)) function foo11c(x: any) { } ->foo11c : { (x: B): any; (x: PB): any; } ->x : any +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithNumericIndexers2.ts, 98, 27), Decl(objectTypesIdentityWithNumericIndexers2.ts, 100, 22), Decl(objectTypesIdentityWithNumericIndexers2.ts, 101, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 102, 16)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithNumericIndexers2.ts, 102, 27), Decl(objectTypesIdentityWithNumericIndexers2.ts, 104, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 105, 30)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 104, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers2.ts, 15, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C ->Derived : Derived +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithNumericIndexers2.ts, 102, 27), Decl(objectTypesIdentityWithNumericIndexers2.ts, 104, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 105, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 105, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers2.ts, 11, 1)) +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithNumericIndexers2.ts, 2, 27)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithNumericIndexers2.ts, 102, 27), Decl(objectTypesIdentityWithNumericIndexers2.ts, 104, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 105, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 106, 15)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { [x: number]: Base; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { [x: number]: Base; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithNumericIndexers2.ts, 106, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 108, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 109, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 108, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers2.ts, 15, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { [x: number]: Base; }): any; } ->x : { [x: number]: Base; } ->a : { [x: number]: Base; } +>foo13 : { (x: I): any; (x: { [x: number]: Base; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithNumericIndexers2.ts, 106, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 108, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 109, 28)) +>x : { [x: number]: Base; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 109, 15)) +>a : { [x: number]: Base; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers2.ts, 27, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { [x: number]: Base; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { [x: number]: Base; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithNumericIndexers2.ts, 106, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 108, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 109, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 110, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { [x: number]: Derived; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { [x: number]: Derived; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithNumericIndexers2.ts, 110, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 112, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 113, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 112, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers2.ts, 15, 1)) function foo14(x: typeof b); // error ->foo14 : { (x: I): any; (x: { [x: number]: Derived; }): any; } ->x : { [x: number]: Derived; } ->b : { [x: number]: Derived; } +>foo14 : { (x: I): any; (x: { [x: number]: Derived; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithNumericIndexers2.ts, 110, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 112, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 113, 28)) +>x : { [x: number]: Derived; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 113, 15)) +>b : { [x: number]: Derived; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers2.ts, 30, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { [x: number]: Derived; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { [x: number]: Derived; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithNumericIndexers2.ts, 110, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 112, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 113, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 114, 15)) function foo15(x: I); ->foo15 : { (x: I): any; (x: PA): any; } ->x : I ->I : I +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithNumericIndexers2.ts, 114, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 116, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 117, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 116, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers2.ts, 15, 1)) function foo15(x: PA); // ok ->foo15 : { (x: I): any; (x: PA): any; } ->x : PA ->PA : PA +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithNumericIndexers2.ts, 114, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 116, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 117, 22)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 117, 15)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers2.ts, 19, 1)) function foo15(x: any) { } ->foo15 : { (x: I): any; (x: PA): any; } ->x : any +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithNumericIndexers2.ts, 114, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 116, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 117, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 118, 15)) function foo16(x: I); ->foo16 : { (x: I): any; (x: PB): any; } ->x : I ->I : I +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithNumericIndexers2.ts, 118, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 120, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 121, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 120, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers2.ts, 15, 1)) function foo16(x: PB); // error ->foo16 : { (x: I): any; (x: PB): any; } ->x : PB ->PB : PB +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithNumericIndexers2.ts, 118, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 120, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 121, 22)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 121, 15)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers2.ts, 22, 1)) function foo16(x: any) { } ->foo16 : { (x: I): any; (x: PB): any; } ->x : any +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithNumericIndexers2.ts, 118, 26), Decl(objectTypesIdentityWithNumericIndexers2.ts, 120, 21), Decl(objectTypesIdentityWithNumericIndexers2.ts, 121, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers2.ts, 122, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.types b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.types index 3553f5f7252..eb0df6a97d8 100644 --- a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.types +++ b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.types @@ -2,377 +2,378 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0)) [x: number]: string; ->x : number +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 3, 5)) } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1)) [x: string]: string; ->x : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 7, 5)) } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers3.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithNumericIndexers3.ts, 10, 8)) [x: number]: T; ->x : number ->T : T +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 11, 5)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithNumericIndexers3.ts, 10, 8)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1)) [x: string]: string; ->x : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 15, 5)) } class PA extends A { ->PA : PA ->A : A +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers3.ts, 16, 1)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0)) } class PB extends B { ->PB : PB ->B : B +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers3.ts, 19, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1)) } var a: { ->a : { [x: string]: string; } +>a : { [x: string]: string; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers3.ts, 24, 3)) [x: string]: string; ->x : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 25, 5)) } var b: { [x: number]: string; } = { foo: '' }; ->b : { [x: number]: string; } ->x : number +>b : { [x: number]: string; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 3)) +>x : number, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 10)) >{ foo: '' } : { [x: number]: undefined; foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 35)) +>'' : string function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 46), Decl(objectTypesIdentityWithNumericIndexers3.ts, 29, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 30, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 29, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 46), Decl(objectTypesIdentityWithNumericIndexers3.ts, 29, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 30, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 30, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 46), Decl(objectTypesIdentityWithNumericIndexers3.ts, 29, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 30, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 31, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 31, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 33, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 34, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 33, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 31, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 33, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 34, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 34, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 31, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 33, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 34, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 35, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 35, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 37, 29), Decl(objectTypesIdentityWithNumericIndexers3.ts, 38, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 37, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers3.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 35, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 37, 29), Decl(objectTypesIdentityWithNumericIndexers3.ts, 38, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 38, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers3.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 35, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 37, 29), Decl(objectTypesIdentityWithNumericIndexers3.ts, 38, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 39, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithNumericIndexers3.ts, 39, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 41, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 42, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 41, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithNumericIndexers3.ts, 39, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 41, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 42, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 42, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithNumericIndexers3.ts, 39, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 41, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 42, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 43, 14)) function foo3(x: typeof a); ->foo3 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->a : { [x: string]: string; } +>foo3 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithNumericIndexers3.ts, 43, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 45, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 46, 27)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 45, 14)) +>a : { [x: string]: string; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers3.ts, 24, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->a : { [x: string]: string; } +>foo3 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithNumericIndexers3.ts, 43, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 45, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 46, 27)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 46, 14)) +>a : { [x: string]: string; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers3.ts, 24, 3)) function foo3(x: any) { } ->foo3 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; } ->x : any +>foo3 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithNumericIndexers3.ts, 43, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 45, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 46, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 47, 14)) function foo4(x: typeof b); ->foo4 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->b : { [x: number]: string; } +>foo4 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithNumericIndexers3.ts, 47, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 49, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 50, 27)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 49, 14)) +>b : { [x: number]: string; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->b : { [x: number]: string; } +>foo4 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithNumericIndexers3.ts, 47, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 49, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 50, 27)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 50, 14)) +>b : { [x: number]: string; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 3)) function foo4(x: any) { } ->foo4 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; } ->x : any +>foo4 : { (x: { [x: number]: string; }): any; (x: { [x: number]: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithNumericIndexers3.ts, 47, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 49, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 50, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 51, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithNumericIndexers3.ts, 51, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 53, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 54, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 53, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithNumericIndexers3.ts, 51, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 53, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 54, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 54, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithNumericIndexers3.ts, 51, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 53, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 54, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 55, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 55, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 57, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 58, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 57, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0)) function foo5b(x: C); // error ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 55, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 57, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 58, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 58, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers3.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 55, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 57, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 58, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 59, 15)) function foo5c(x: A); ->foo5c : { (x: A): any; (x: PA): any; } ->x : A ->A : A +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 59, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 61, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 62, 22)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 61, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0)) function foo5c(x: PA); // error ->foo5c : { (x: A): any; (x: PA): any; } ->x : PA ->PA : PA +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 59, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 61, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 62, 22)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 62, 15)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers3.ts, 16, 1)) function foo5c(x: any) { } ->foo5c : { (x: A): any; (x: PA): any; } ->x : any +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 59, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 61, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 62, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 63, 15)) function foo5d(x: A); ->foo5d : { (x: A): any; (x: PB): any; } ->x : A ->A : A +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithNumericIndexers3.ts, 63, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 65, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 66, 22)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 65, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0)) function foo5d(x: PB); // ok ->foo5d : { (x: A): any; (x: PB): any; } ->x : PB ->PB : PB +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithNumericIndexers3.ts, 63, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 65, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 66, 22)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 66, 15)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers3.ts, 19, 1)) function foo5d(x: any) { } ->foo5d : { (x: A): any; (x: PB): any; } ->x : any +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithNumericIndexers3.ts, 63, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 65, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 66, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 67, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithNumericIndexers3.ts, 67, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 69, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 70, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 69, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithNumericIndexers3.ts, 67, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 69, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 70, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 70, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithNumericIndexers3.ts, 67, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 69, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 70, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 71, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { [x: string]: string; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { [x: string]: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithNumericIndexers3.ts, 71, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 73, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 74, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 73, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0)) function foo7(x: typeof a); // ok ->foo7 : { (x: A): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->a : { [x: string]: string; } +>foo7 : { (x: A): any; (x: { [x: string]: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithNumericIndexers3.ts, 71, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 73, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 74, 27)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 74, 14)) +>a : { [x: string]: string; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers3.ts, 24, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { [x: string]: string; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { [x: string]: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithNumericIndexers3.ts, 71, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 73, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 74, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 75, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithNumericIndexers3.ts, 75, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 77, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 78, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 77, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithNumericIndexers3.ts, 75, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 77, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 78, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 78, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithNumericIndexers3.ts, 75, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 77, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 78, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 79, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithNumericIndexers3.ts, 79, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 81, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 82, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 81, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1)) function foo9(x: C); // ok ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithNumericIndexers3.ts, 79, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 81, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 82, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 82, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers3.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithNumericIndexers3.ts, 79, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 81, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 82, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 83, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { [x: string]: string; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { [x: string]: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithNumericIndexers3.ts, 83, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 85, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 86, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 85, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1)) function foo10(x: typeof a); // error ->foo10 : { (x: B): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->a : { [x: string]: string; } +>foo10 : { (x: B): any; (x: { [x: string]: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithNumericIndexers3.ts, 83, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 85, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 86, 28)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 86, 15)) +>a : { [x: string]: string; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers3.ts, 24, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { [x: string]: string; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { [x: string]: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithNumericIndexers3.ts, 83, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 85, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 86, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 87, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { [x: number]: string; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { [x: number]: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithNumericIndexers3.ts, 87, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 89, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 90, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 89, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1)) function foo11(x: typeof b); // ok ->foo11 : { (x: B): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->b : { [x: number]: string; } +>foo11 : { (x: B): any; (x: { [x: number]: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithNumericIndexers3.ts, 87, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 89, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 90, 28)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 90, 15)) +>b : { [x: number]: string; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { [x: number]: string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { [x: number]: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithNumericIndexers3.ts, 87, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 89, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 90, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 91, 15)) function foo11b(x: B); ->foo11b : { (x: B): any; (x: PA): any; } ->x : B ->B : B +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 91, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 93, 22), Decl(objectTypesIdentityWithNumericIndexers3.ts, 94, 23)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 93, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1)) function foo11b(x: PA); // ok ->foo11b : { (x: B): any; (x: PA): any; } ->x : PA ->PA : PA +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 91, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 93, 22), Decl(objectTypesIdentityWithNumericIndexers3.ts, 94, 23)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 94, 16)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers3.ts, 16, 1)) function foo11b(x: any) { } ->foo11b : { (x: B): any; (x: PA): any; } ->x : any +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 91, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 93, 22), Decl(objectTypesIdentityWithNumericIndexers3.ts, 94, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 95, 16)) function foo11c(x: B); ->foo11c : { (x: B): any; (x: PB): any; } ->x : B ->B : B +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 95, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 97, 22), Decl(objectTypesIdentityWithNumericIndexers3.ts, 98, 23)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 97, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1)) function foo11c(x: PB); // error ->foo11c : { (x: B): any; (x: PB): any; } ->x : PB ->PB : PB +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 95, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 97, 22), Decl(objectTypesIdentityWithNumericIndexers3.ts, 98, 23)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 98, 16)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers3.ts, 19, 1)) function foo11c(x: any) { } ->foo11c : { (x: B): any; (x: PB): any; } ->x : any +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 95, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 97, 22), Decl(objectTypesIdentityWithNumericIndexers3.ts, 98, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 99, 16)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithNumericIndexers3.ts, 99, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 101, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 102, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 101, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithNumericIndexers3.ts, 99, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 101, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 102, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 102, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithNumericIndexers3.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithNumericIndexers3.ts, 99, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 101, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 102, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 103, 15)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { [x: string]: string; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { [x: string]: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithNumericIndexers3.ts, 103, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 105, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 106, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 105, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1)) function foo13(x: typeof a); // error ->foo13 : { (x: I): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->a : { [x: string]: string; } +>foo13 : { (x: I): any; (x: { [x: string]: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithNumericIndexers3.ts, 103, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 105, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 106, 28)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 106, 15)) +>a : { [x: string]: string; }, Symbol(a, Decl(objectTypesIdentityWithNumericIndexers3.ts, 24, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { [x: string]: string; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { [x: string]: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithNumericIndexers3.ts, 103, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 105, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 106, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 107, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { [x: number]: string; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { [x: number]: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithNumericIndexers3.ts, 107, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 109, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 110, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 109, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { [x: number]: string; }): any; } ->x : { [x: number]: string; } ->b : { [x: number]: string; } +>foo14 : { (x: I): any; (x: { [x: number]: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithNumericIndexers3.ts, 107, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 109, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 110, 28)) +>x : { [x: number]: string; }, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 110, 15)) +>b : { [x: number]: string; }, Symbol(b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { [x: number]: string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { [x: number]: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithNumericIndexers3.ts, 107, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 109, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 110, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 111, 15)) function foo15(x: I); ->foo15 : { (x: I): any; (x: PA): any; } ->x : I ->I : I +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithNumericIndexers3.ts, 111, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 113, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 114, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 113, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1)) function foo15(x: PA); // ok ->foo15 : { (x: I): any; (x: PA): any; } ->x : PA ->PA : PA +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithNumericIndexers3.ts, 111, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 113, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 114, 22)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 114, 15)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers3.ts, 16, 1)) function foo15(x: any) { } ->foo15 : { (x: I): any; (x: PA): any; } ->x : any +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithNumericIndexers3.ts, 111, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 113, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 114, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 115, 15)) function foo16(x: I); ->foo16 : { (x: I): any; (x: PB): any; } ->x : I ->I : I +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithNumericIndexers3.ts, 115, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 117, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 118, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 117, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1)) function foo16(x: PB); // error ->foo16 : { (x: I): any; (x: PB): any; } ->x : PB ->PB : PB +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithNumericIndexers3.ts, 115, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 117, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 118, 22)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 118, 15)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers3.ts, 19, 1)) function foo16(x: any) { } ->foo16 : { (x: I): any; (x: PB): any; } ->x : any +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithNumericIndexers3.ts, 115, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 117, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 118, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 119, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithOptionality.types b/tests/baselines/reference/objectTypesIdentityWithOptionality.types index 0ca5b552bf5..d43a842b930 100644 --- a/tests/baselines/reference/objectTypesIdentityWithOptionality.types +++ b/tests/baselines/reference/objectTypesIdentityWithOptionality.types @@ -2,167 +2,168 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithOptionality.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithOptionality.ts, 2, 9)) } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithOptionality.ts, 4, 1)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithOptionality.ts, 6, 9)) } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithOptionality.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithOptionality.ts, 10, 8)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(objectTypesIdentityWithOptionality.ts, 10, 12)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithOptionality.ts, 10, 8)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithOptionality.ts, 12, 1)) foo?: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithOptionality.ts, 14, 13)) } var a: { foo?: string; } ->a : { foo?: string; } ->foo : string +>a : { foo?: string; }, Symbol(a, Decl(objectTypesIdentityWithOptionality.ts, 18, 3)) +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithOptionality.ts, 18, 8)) var b = { foo: '' }; ->b : { foo: string; } +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentityWithOptionality.ts, 19, 3)) >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithOptionality.ts, 19, 9)) +>'' : string function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithOptionality.ts, 19, 20), Decl(objectTypesIdentityWithOptionality.ts, 21, 20), Decl(objectTypesIdentityWithOptionality.ts, 22, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 21, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithOptionality.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithOptionality.ts, 19, 20), Decl(objectTypesIdentityWithOptionality.ts, 21, 20), Decl(objectTypesIdentityWithOptionality.ts, 22, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 22, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithOptionality.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithOptionality.ts, 19, 20), Decl(objectTypesIdentityWithOptionality.ts, 21, 20), Decl(objectTypesIdentityWithOptionality.ts, 22, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 23, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo?: string; }): any; (x: { foo?: string; }): any; } ->x : { foo?: string; } ->a : { foo?: string; } +>foo3 : { (x: { foo?: string; }): any; (x: { foo?: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithOptionality.ts, 23, 25), Decl(objectTypesIdentityWithOptionality.ts, 25, 27), Decl(objectTypesIdentityWithOptionality.ts, 26, 27)) +>x : { foo?: string; }, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 25, 14)) +>a : { foo?: string; }, Symbol(a, Decl(objectTypesIdentityWithOptionality.ts, 18, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo?: string; }): any; (x: { foo?: string; }): any; } ->x : { foo?: string; } ->a : { foo?: string; } +>foo3 : { (x: { foo?: string; }): any; (x: { foo?: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithOptionality.ts, 23, 25), Decl(objectTypesIdentityWithOptionality.ts, 25, 27), Decl(objectTypesIdentityWithOptionality.ts, 26, 27)) +>x : { foo?: string; }, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 26, 14)) +>a : { foo?: string; }, Symbol(a, Decl(objectTypesIdentityWithOptionality.ts, 18, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo?: string; }): any; (x: { foo?: string; }): any; } ->x : any +>foo3 : { (x: { foo?: string; }): any; (x: { foo?: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithOptionality.ts, 23, 25), Decl(objectTypesIdentityWithOptionality.ts, 25, 27), Decl(objectTypesIdentityWithOptionality.ts, 26, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 27, 14)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithOptionality.ts, 27, 25), Decl(objectTypesIdentityWithOptionality.ts, 29, 20), Decl(objectTypesIdentityWithOptionality.ts, 30, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 29, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithOptionality.ts, 0, 0)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithOptionality.ts, 27, 25), Decl(objectTypesIdentityWithOptionality.ts, 29, 20), Decl(objectTypesIdentityWithOptionality.ts, 30, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 30, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithOptionality.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithOptionality.ts, 27, 25), Decl(objectTypesIdentityWithOptionality.ts, 29, 20), Decl(objectTypesIdentityWithOptionality.ts, 30, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 31, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo?: string; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo?: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithOptionality.ts, 31, 25), Decl(objectTypesIdentityWithOptionality.ts, 33, 20), Decl(objectTypesIdentityWithOptionality.ts, 34, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 33, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithOptionality.ts, 0, 0)) function foo7(x: typeof a); // ok ->foo7 : { (x: A): any; (x: { foo?: string; }): any; } ->x : { foo?: string; } ->a : { foo?: string; } +>foo7 : { (x: A): any; (x: { foo?: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithOptionality.ts, 31, 25), Decl(objectTypesIdentityWithOptionality.ts, 33, 20), Decl(objectTypesIdentityWithOptionality.ts, 34, 27)) +>x : { foo?: string; }, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 34, 14)) +>a : { foo?: string; }, Symbol(a, Decl(objectTypesIdentityWithOptionality.ts, 18, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo?: string; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo?: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithOptionality.ts, 31, 25), Decl(objectTypesIdentityWithOptionality.ts, 33, 20), Decl(objectTypesIdentityWithOptionality.ts, 34, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 35, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithOptionality.ts, 35, 25), Decl(objectTypesIdentityWithOptionality.ts, 37, 20), Decl(objectTypesIdentityWithOptionality.ts, 38, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 37, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithOptionality.ts, 4, 1)) function foo8(x: I); // ok ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithOptionality.ts, 35, 25), Decl(objectTypesIdentityWithOptionality.ts, 37, 20), Decl(objectTypesIdentityWithOptionality.ts, 38, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 38, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithOptionality.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithOptionality.ts, 35, 25), Decl(objectTypesIdentityWithOptionality.ts, 37, 20), Decl(objectTypesIdentityWithOptionality.ts, 38, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 39, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo?: string; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo?: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithOptionality.ts, 39, 25), Decl(objectTypesIdentityWithOptionality.ts, 41, 21), Decl(objectTypesIdentityWithOptionality.ts, 42, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 41, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithOptionality.ts, 4, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { foo?: string; }): any; } ->x : { foo?: string; } ->a : { foo?: string; } +>foo10 : { (x: B): any; (x: { foo?: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithOptionality.ts, 39, 25), Decl(objectTypesIdentityWithOptionality.ts, 41, 21), Decl(objectTypesIdentityWithOptionality.ts, 42, 28)) +>x : { foo?: string; }, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 42, 15)) +>a : { foo?: string; }, Symbol(a, Decl(objectTypesIdentityWithOptionality.ts, 18, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo?: string; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo?: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithOptionality.ts, 39, 25), Decl(objectTypesIdentityWithOptionality.ts, 41, 21), Decl(objectTypesIdentityWithOptionality.ts, 42, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 43, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithOptionality.ts, 43, 26), Decl(objectTypesIdentityWithOptionality.ts, 45, 21), Decl(objectTypesIdentityWithOptionality.ts, 46, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 45, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithOptionality.ts, 12, 1)) function foo12(x: C); // ok ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithOptionality.ts, 43, 26), Decl(objectTypesIdentityWithOptionality.ts, 45, 21), Decl(objectTypesIdentityWithOptionality.ts, 46, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 46, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithOptionality.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithOptionality.ts, 43, 26), Decl(objectTypesIdentityWithOptionality.ts, 45, 21), Decl(objectTypesIdentityWithOptionality.ts, 46, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 47, 15)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo?: string; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo?: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithOptionality.ts, 47, 26), Decl(objectTypesIdentityWithOptionality.ts, 49, 21), Decl(objectTypesIdentityWithOptionality.ts, 50, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 49, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithOptionality.ts, 12, 1)) function foo13(x: typeof a); // error ->foo13 : { (x: I): any; (x: { foo?: string; }): any; } ->x : { foo?: string; } ->a : { foo?: string; } +>foo13 : { (x: I): any; (x: { foo?: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithOptionality.ts, 47, 26), Decl(objectTypesIdentityWithOptionality.ts, 49, 21), Decl(objectTypesIdentityWithOptionality.ts, 50, 28)) +>x : { foo?: string; }, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 50, 15)) +>a : { foo?: string; }, Symbol(a, Decl(objectTypesIdentityWithOptionality.ts, 18, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo?: string; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo?: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithOptionality.ts, 47, 26), Decl(objectTypesIdentityWithOptionality.ts, 49, 21), Decl(objectTypesIdentityWithOptionality.ts, 50, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 51, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo: string; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithOptionality.ts, 51, 26), Decl(objectTypesIdentityWithOptionality.ts, 53, 21), Decl(objectTypesIdentityWithOptionality.ts, 54, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 53, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithOptionality.ts, 12, 1)) function foo14(x: typeof b); // ok ->foo14 : { (x: I): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo14 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithOptionality.ts, 51, 26), Decl(objectTypesIdentityWithOptionality.ts, 53, 21), Decl(objectTypesIdentityWithOptionality.ts, 54, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 54, 15)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentityWithOptionality.ts, 19, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo: string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithOptionality.ts, 51, 26), Decl(objectTypesIdentityWithOptionality.ts, 53, 21), Decl(objectTypesIdentityWithOptionality.ts, 54, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithOptionality.ts, 55, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithPrivates.types b/tests/baselines/reference/objectTypesIdentityWithPrivates.types index 391f6f1f200..d86bbbb2393 100644 --- a/tests/baselines/reference/objectTypesIdentityWithPrivates.types +++ b/tests/baselines/reference/objectTypesIdentityWithPrivates.types @@ -2,374 +2,375 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithPrivates.ts, 0, 0)) private foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithPrivates.ts, 2, 9)) } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithPrivates.ts, 4, 1)) private foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithPrivates.ts, 6, 9)) } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithPrivates.ts, 10, 8)) private foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(objectTypesIdentityWithPrivates.ts, 10, 12)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithPrivates.ts, 10, 8)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithPrivates.ts, 12, 1)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithPrivates.ts, 14, 13)) } class PA extends A { ->PA : PA ->A : A +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithPrivates.ts, 16, 1)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPrivates.ts, 0, 0)) } class PB extends B { ->PB : PB ->B : B +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithPrivates.ts, 19, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPrivates.ts, 4, 1)) } var a: { foo: string; } ->a : { foo: string; } ->foo : string +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentityWithPrivates.ts, 24, 3)) +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithPrivates.ts, 24, 8)) var b = { foo: '' }; ->b : { foo: string; } +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentityWithPrivates.ts, 25, 3)) >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithPrivates.ts, 25, 9)) +>'' : string function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithPrivates.ts, 25, 20), Decl(objectTypesIdentityWithPrivates.ts, 27, 20), Decl(objectTypesIdentityWithPrivates.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 27, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPrivates.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithPrivates.ts, 25, 20), Decl(objectTypesIdentityWithPrivates.ts, 27, 20), Decl(objectTypesIdentityWithPrivates.ts, 28, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 28, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPrivates.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithPrivates.ts, 25, 20), Decl(objectTypesIdentityWithPrivates.ts, 27, 20), Decl(objectTypesIdentityWithPrivates.ts, 28, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 29, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithPrivates.ts, 29, 25), Decl(objectTypesIdentityWithPrivates.ts, 31, 21), Decl(objectTypesIdentityWithPrivates.ts, 32, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 31, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPrivates.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithPrivates.ts, 29, 25), Decl(objectTypesIdentityWithPrivates.ts, 31, 21), Decl(objectTypesIdentityWithPrivates.ts, 32, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 32, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPrivates.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithPrivates.ts, 29, 25), Decl(objectTypesIdentityWithPrivates.ts, 31, 21), Decl(objectTypesIdentityWithPrivates.ts, 32, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 33, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithPrivates.ts, 33, 26), Decl(objectTypesIdentityWithPrivates.ts, 35, 29), Decl(objectTypesIdentityWithPrivates.ts, 36, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 35, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithPrivates.ts, 33, 26), Decl(objectTypesIdentityWithPrivates.ts, 35, 29), Decl(objectTypesIdentityWithPrivates.ts, 36, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 36, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithPrivates.ts, 33, 26), Decl(objectTypesIdentityWithPrivates.ts, 35, 29), Decl(objectTypesIdentityWithPrivates.ts, 36, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 37, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithPrivates.ts, 37, 26), Decl(objectTypesIdentityWithPrivates.ts, 39, 20), Decl(objectTypesIdentityWithPrivates.ts, 40, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 39, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPrivates.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithPrivates.ts, 37, 26), Decl(objectTypesIdentityWithPrivates.ts, 39, 20), Decl(objectTypesIdentityWithPrivates.ts, 40, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 40, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPrivates.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithPrivates.ts, 37, 26), Decl(objectTypesIdentityWithPrivates.ts, 39, 20), Decl(objectTypesIdentityWithPrivates.ts, 40, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 41, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithPrivates.ts, 41, 25), Decl(objectTypesIdentityWithPrivates.ts, 43, 27), Decl(objectTypesIdentityWithPrivates.ts, 44, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 43, 14)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentityWithPrivates.ts, 24, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithPrivates.ts, 41, 25), Decl(objectTypesIdentityWithPrivates.ts, 43, 27), Decl(objectTypesIdentityWithPrivates.ts, 44, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 44, 14)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentityWithPrivates.ts, 24, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : any +>foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithPrivates.ts, 41, 25), Decl(objectTypesIdentityWithPrivates.ts, 43, 27), Decl(objectTypesIdentityWithPrivates.ts, 44, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 45, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithPrivates.ts, 45, 25), Decl(objectTypesIdentityWithPrivates.ts, 47, 27), Decl(objectTypesIdentityWithPrivates.ts, 48, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 47, 14)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentityWithPrivates.ts, 25, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithPrivates.ts, 45, 25), Decl(objectTypesIdentityWithPrivates.ts, 47, 27), Decl(objectTypesIdentityWithPrivates.ts, 48, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 48, 14)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentityWithPrivates.ts, 25, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : any +>foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithPrivates.ts, 45, 25), Decl(objectTypesIdentityWithPrivates.ts, 47, 27), Decl(objectTypesIdentityWithPrivates.ts, 48, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 49, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithPrivates.ts, 49, 25), Decl(objectTypesIdentityWithPrivates.ts, 51, 20), Decl(objectTypesIdentityWithPrivates.ts, 52, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 51, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPrivates.ts, 0, 0)) function foo5(x: B); // no error ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithPrivates.ts, 49, 25), Decl(objectTypesIdentityWithPrivates.ts, 51, 20), Decl(objectTypesIdentityWithPrivates.ts, 52, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 52, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPrivates.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithPrivates.ts, 49, 25), Decl(objectTypesIdentityWithPrivates.ts, 51, 20), Decl(objectTypesIdentityWithPrivates.ts, 52, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 53, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithPrivates.ts, 53, 25), Decl(objectTypesIdentityWithPrivates.ts, 55, 21), Decl(objectTypesIdentityWithPrivates.ts, 56, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 55, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPrivates.ts, 0, 0)) function foo5b(x: C); // no error ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithPrivates.ts, 53, 25), Decl(objectTypesIdentityWithPrivates.ts, 55, 21), Decl(objectTypesIdentityWithPrivates.ts, 56, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 56, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithPrivates.ts, 53, 25), Decl(objectTypesIdentityWithPrivates.ts, 55, 21), Decl(objectTypesIdentityWithPrivates.ts, 56, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 57, 15)) function foo5c(x: A); ->foo5c : { (x: A): any; (x: PA): any; } ->x : A ->A : A +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithPrivates.ts, 57, 26), Decl(objectTypesIdentityWithPrivates.ts, 59, 21), Decl(objectTypesIdentityWithPrivates.ts, 60, 22)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 59, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPrivates.ts, 0, 0)) function foo5c(x: PA); // error ->foo5c : { (x: A): any; (x: PA): any; } ->x : PA ->PA : PA +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithPrivates.ts, 57, 26), Decl(objectTypesIdentityWithPrivates.ts, 59, 21), Decl(objectTypesIdentityWithPrivates.ts, 60, 22)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 60, 15)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithPrivates.ts, 16, 1)) function foo5c(x: any) { } ->foo5c : { (x: A): any; (x: PA): any; } ->x : any +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithPrivates.ts, 57, 26), Decl(objectTypesIdentityWithPrivates.ts, 59, 21), Decl(objectTypesIdentityWithPrivates.ts, 60, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 61, 15)) function foo5d(x: A); ->foo5d : { (x: A): any; (x: PB): any; } ->x : A ->A : A +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithPrivates.ts, 61, 26), Decl(objectTypesIdentityWithPrivates.ts, 63, 21), Decl(objectTypesIdentityWithPrivates.ts, 64, 22)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 63, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPrivates.ts, 0, 0)) function foo5d(x: PB); // no error ->foo5d : { (x: A): any; (x: PB): any; } ->x : PB ->PB : PB +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithPrivates.ts, 61, 26), Decl(objectTypesIdentityWithPrivates.ts, 63, 21), Decl(objectTypesIdentityWithPrivates.ts, 64, 22)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 64, 15)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithPrivates.ts, 19, 1)) function foo5d(x: any) { } ->foo5d : { (x: A): any; (x: PB): any; } ->x : any +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithPrivates.ts, 61, 26), Decl(objectTypesIdentityWithPrivates.ts, 63, 21), Decl(objectTypesIdentityWithPrivates.ts, 64, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 65, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithPrivates.ts, 65, 26), Decl(objectTypesIdentityWithPrivates.ts, 67, 20), Decl(objectTypesIdentityWithPrivates.ts, 68, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 67, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPrivates.ts, 0, 0)) function foo6(x: I); // no error ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithPrivates.ts, 65, 26), Decl(objectTypesIdentityWithPrivates.ts, 67, 20), Decl(objectTypesIdentityWithPrivates.ts, 68, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 68, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPrivates.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithPrivates.ts, 65, 26), Decl(objectTypesIdentityWithPrivates.ts, 67, 20), Decl(objectTypesIdentityWithPrivates.ts, 68, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 69, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo: string; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithPrivates.ts, 69, 25), Decl(objectTypesIdentityWithPrivates.ts, 71, 20), Decl(objectTypesIdentityWithPrivates.ts, 72, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 71, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPrivates.ts, 0, 0)) function foo7(x: typeof a); // no error ->foo7 : { (x: A): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo7 : { (x: A): any; (x: { foo: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithPrivates.ts, 69, 25), Decl(objectTypesIdentityWithPrivates.ts, 71, 20), Decl(objectTypesIdentityWithPrivates.ts, 72, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 72, 14)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentityWithPrivates.ts, 24, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo: string; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithPrivates.ts, 69, 25), Decl(objectTypesIdentityWithPrivates.ts, 71, 20), Decl(objectTypesIdentityWithPrivates.ts, 72, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 73, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithPrivates.ts, 73, 25), Decl(objectTypesIdentityWithPrivates.ts, 75, 20), Decl(objectTypesIdentityWithPrivates.ts, 76, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 75, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPrivates.ts, 4, 1)) function foo8(x: I); // no error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithPrivates.ts, 73, 25), Decl(objectTypesIdentityWithPrivates.ts, 75, 20), Decl(objectTypesIdentityWithPrivates.ts, 76, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 76, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPrivates.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithPrivates.ts, 73, 25), Decl(objectTypesIdentityWithPrivates.ts, 75, 20), Decl(objectTypesIdentityWithPrivates.ts, 76, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 77, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithPrivates.ts, 77, 25), Decl(objectTypesIdentityWithPrivates.ts, 79, 20), Decl(objectTypesIdentityWithPrivates.ts, 80, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 79, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPrivates.ts, 4, 1)) function foo9(x: C); // no error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithPrivates.ts, 77, 25), Decl(objectTypesIdentityWithPrivates.ts, 79, 20), Decl(objectTypesIdentityWithPrivates.ts, 80, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 80, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithPrivates.ts, 77, 25), Decl(objectTypesIdentityWithPrivates.ts, 79, 20), Decl(objectTypesIdentityWithPrivates.ts, 80, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 81, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo: string; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithPrivates.ts, 81, 25), Decl(objectTypesIdentityWithPrivates.ts, 83, 21), Decl(objectTypesIdentityWithPrivates.ts, 84, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 83, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPrivates.ts, 4, 1)) function foo10(x: typeof a); // no error ->foo10 : { (x: B): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo10 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithPrivates.ts, 81, 25), Decl(objectTypesIdentityWithPrivates.ts, 83, 21), Decl(objectTypesIdentityWithPrivates.ts, 84, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 84, 15)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentityWithPrivates.ts, 24, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo: string; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithPrivates.ts, 81, 25), Decl(objectTypesIdentityWithPrivates.ts, 83, 21), Decl(objectTypesIdentityWithPrivates.ts, 84, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 85, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo: string; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithPrivates.ts, 85, 26), Decl(objectTypesIdentityWithPrivates.ts, 87, 21), Decl(objectTypesIdentityWithPrivates.ts, 88, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 87, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPrivates.ts, 4, 1)) function foo11(x: typeof b); // no error ->foo11 : { (x: B): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo11 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithPrivates.ts, 85, 26), Decl(objectTypesIdentityWithPrivates.ts, 87, 21), Decl(objectTypesIdentityWithPrivates.ts, 88, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 88, 15)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentityWithPrivates.ts, 25, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo: string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithPrivates.ts, 85, 26), Decl(objectTypesIdentityWithPrivates.ts, 87, 21), Decl(objectTypesIdentityWithPrivates.ts, 88, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 89, 15)) function foo11b(x: B); ->foo11b : { (x: B): any; (x: PA): any; } ->x : B ->B : B +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithPrivates.ts, 89, 26), Decl(objectTypesIdentityWithPrivates.ts, 91, 22), Decl(objectTypesIdentityWithPrivates.ts, 92, 23)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 91, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPrivates.ts, 4, 1)) function foo11b(x: PA); // no error ->foo11b : { (x: B): any; (x: PA): any; } ->x : PA ->PA : PA +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithPrivates.ts, 89, 26), Decl(objectTypesIdentityWithPrivates.ts, 91, 22), Decl(objectTypesIdentityWithPrivates.ts, 92, 23)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 92, 16)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithPrivates.ts, 16, 1)) function foo11b(x: any) { } ->foo11b : { (x: B): any; (x: PA): any; } ->x : any +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithPrivates.ts, 89, 26), Decl(objectTypesIdentityWithPrivates.ts, 91, 22), Decl(objectTypesIdentityWithPrivates.ts, 92, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 93, 16)) function foo11c(x: B); ->foo11c : { (x: B): any; (x: PB): any; } ->x : B ->B : B +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithPrivates.ts, 93, 27), Decl(objectTypesIdentityWithPrivates.ts, 95, 22), Decl(objectTypesIdentityWithPrivates.ts, 96, 23)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 95, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPrivates.ts, 4, 1)) function foo11c(x: PB); // error ->foo11c : { (x: B): any; (x: PB): any; } ->x : PB ->PB : PB +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithPrivates.ts, 93, 27), Decl(objectTypesIdentityWithPrivates.ts, 95, 22), Decl(objectTypesIdentityWithPrivates.ts, 96, 23)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 96, 16)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithPrivates.ts, 19, 1)) function foo11c(x: any) { } ->foo11c : { (x: B): any; (x: PB): any; } ->x : any +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithPrivates.ts, 93, 27), Decl(objectTypesIdentityWithPrivates.ts, 95, 22), Decl(objectTypesIdentityWithPrivates.ts, 96, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 97, 16)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithPrivates.ts, 97, 27), Decl(objectTypesIdentityWithPrivates.ts, 99, 21), Decl(objectTypesIdentityWithPrivates.ts, 100, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 99, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPrivates.ts, 12, 1)) function foo12(x: C); // no error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithPrivates.ts, 97, 27), Decl(objectTypesIdentityWithPrivates.ts, 99, 21), Decl(objectTypesIdentityWithPrivates.ts, 100, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 100, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithPrivates.ts, 97, 27), Decl(objectTypesIdentityWithPrivates.ts, 99, 21), Decl(objectTypesIdentityWithPrivates.ts, 100, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 101, 15)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo: string; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithPrivates.ts, 101, 26), Decl(objectTypesIdentityWithPrivates.ts, 103, 21), Decl(objectTypesIdentityWithPrivates.ts, 104, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 103, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPrivates.ts, 12, 1)) function foo13(x: typeof a); // error ->foo13 : { (x: I): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo13 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithPrivates.ts, 101, 26), Decl(objectTypesIdentityWithPrivates.ts, 103, 21), Decl(objectTypesIdentityWithPrivates.ts, 104, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 104, 15)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentityWithPrivates.ts, 24, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo: string; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithPrivates.ts, 101, 26), Decl(objectTypesIdentityWithPrivates.ts, 103, 21), Decl(objectTypesIdentityWithPrivates.ts, 104, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 105, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo: string; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithPrivates.ts, 105, 26), Decl(objectTypesIdentityWithPrivates.ts, 107, 21), Decl(objectTypesIdentityWithPrivates.ts, 108, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 107, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPrivates.ts, 12, 1)) function foo14(x: typeof b); // error ->foo14 : { (x: I): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo14 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithPrivates.ts, 105, 26), Decl(objectTypesIdentityWithPrivates.ts, 107, 21), Decl(objectTypesIdentityWithPrivates.ts, 108, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 108, 15)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentityWithPrivates.ts, 25, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo: string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithPrivates.ts, 105, 26), Decl(objectTypesIdentityWithPrivates.ts, 107, 21), Decl(objectTypesIdentityWithPrivates.ts, 108, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 109, 15)) function foo15(x: I); ->foo15 : { (x: I): any; (x: PA): any; } ->x : I ->I : I +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithPrivates.ts, 109, 26), Decl(objectTypesIdentityWithPrivates.ts, 111, 21), Decl(objectTypesIdentityWithPrivates.ts, 112, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 111, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPrivates.ts, 12, 1)) function foo15(x: PA); // no error ->foo15 : { (x: I): any; (x: PA): any; } ->x : PA ->PA : PA +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithPrivates.ts, 109, 26), Decl(objectTypesIdentityWithPrivates.ts, 111, 21), Decl(objectTypesIdentityWithPrivates.ts, 112, 22)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 112, 15)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithPrivates.ts, 16, 1)) function foo15(x: any) { } ->foo15 : { (x: I): any; (x: PA): any; } ->x : any +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithPrivates.ts, 109, 26), Decl(objectTypesIdentityWithPrivates.ts, 111, 21), Decl(objectTypesIdentityWithPrivates.ts, 112, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 113, 15)) function foo16(x: I); ->foo16 : { (x: I): any; (x: PB): any; } ->x : I ->I : I +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithPrivates.ts, 113, 26), Decl(objectTypesIdentityWithPrivates.ts, 115, 21), Decl(objectTypesIdentityWithPrivates.ts, 116, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 115, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPrivates.ts, 12, 1)) function foo16(x: PB); // no error ->foo16 : { (x: I): any; (x: PB): any; } ->x : PB ->PB : PB +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithPrivates.ts, 113, 26), Decl(objectTypesIdentityWithPrivates.ts, 115, 21), Decl(objectTypesIdentityWithPrivates.ts, 116, 22)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 116, 15)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithPrivates.ts, 19, 1)) function foo16(x: any) { } ->foo16 : { (x: I): any; (x: PB): any; } ->x : any +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithPrivates.ts, 113, 26), Decl(objectTypesIdentityWithPrivates.ts, 115, 21), Decl(objectTypesIdentityWithPrivates.ts, 116, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates.ts, 117, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithPrivates2.types b/tests/baselines/reference/objectTypesIdentityWithPrivates2.types index a29edc75162..46e27e47b28 100644 --- a/tests/baselines/reference/objectTypesIdentityWithPrivates2.types +++ b/tests/baselines/reference/objectTypesIdentityWithPrivates2.types @@ -2,118 +2,118 @@ // object types are identical structurally class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates2.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithPrivates2.ts, 2, 8)) private foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(objectTypesIdentityWithPrivates2.ts, 2, 12)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithPrivates2.ts, 2, 8)) } class D extends C { ->D : D ->T : T ->C : C ->T : T +>D : D, Symbol(D, Decl(objectTypesIdentityWithPrivates2.ts, 4, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithPrivates2.ts, 6, 8)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates2.ts, 0, 0)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithPrivates2.ts, 6, 8)) } function foo1(x: C); ->foo1 : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1 : { (x: C): any; (x: C): any; }, Symbol(foo1, Decl(objectTypesIdentityWithPrivates2.ts, 7, 1), Decl(objectTypesIdentityWithPrivates2.ts, 9, 28), Decl(objectTypesIdentityWithPrivates2.ts, 10, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 9, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates2.ts, 0, 0)) function foo1(x: C); // ok ->foo1 : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1 : { (x: C): any; (x: C): any; }, Symbol(foo1, Decl(objectTypesIdentityWithPrivates2.ts, 7, 1), Decl(objectTypesIdentityWithPrivates2.ts, 9, 28), Decl(objectTypesIdentityWithPrivates2.ts, 10, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 10, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates2.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: C): any; (x: C): any; } ->x : any +>foo1 : { (x: C): any; (x: C): any; }, Symbol(foo1, Decl(objectTypesIdentityWithPrivates2.ts, 7, 1), Decl(objectTypesIdentityWithPrivates2.ts, 9, 28), Decl(objectTypesIdentityWithPrivates2.ts, 10, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 11, 14)) function foo2(x: D); ->foo2 : { (x: D): any; (x: D): any; } ->x : D ->D : D +>foo2 : { (x: D): any; (x: D): any; }, Symbol(foo2, Decl(objectTypesIdentityWithPrivates2.ts, 11, 25), Decl(objectTypesIdentityWithPrivates2.ts, 13, 28), Decl(objectTypesIdentityWithPrivates2.ts, 14, 28)) +>x : D, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 13, 14)) +>D : D, Symbol(D, Decl(objectTypesIdentityWithPrivates2.ts, 4, 1)) function foo2(x: D); // ok ->foo2 : { (x: D): any; (x: D): any; } ->x : D ->D : D +>foo2 : { (x: D): any; (x: D): any; }, Symbol(foo2, Decl(objectTypesIdentityWithPrivates2.ts, 11, 25), Decl(objectTypesIdentityWithPrivates2.ts, 13, 28), Decl(objectTypesIdentityWithPrivates2.ts, 14, 28)) +>x : D, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 14, 14)) +>D : D, Symbol(D, Decl(objectTypesIdentityWithPrivates2.ts, 4, 1)) function foo2(x: any) { } ->foo2 : { (x: D): any; (x: D): any; } ->x : any +>foo2 : { (x: D): any; (x: D): any; }, Symbol(foo2, Decl(objectTypesIdentityWithPrivates2.ts, 11, 25), Decl(objectTypesIdentityWithPrivates2.ts, 13, 28), Decl(objectTypesIdentityWithPrivates2.ts, 14, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 15, 14)) function foo3(x: C); ->foo3 : { (x: C): any; (x: D): any; } ->x : C ->C : C +>foo3 : { (x: C): any; (x: D): any; }, Symbol(foo3, Decl(objectTypesIdentityWithPrivates2.ts, 15, 25), Decl(objectTypesIdentityWithPrivates2.ts, 17, 28), Decl(objectTypesIdentityWithPrivates2.ts, 18, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 17, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates2.ts, 0, 0)) function foo3(x: D); // ok ->foo3 : { (x: C): any; (x: D): any; } ->x : D ->D : D +>foo3 : { (x: C): any; (x: D): any; }, Symbol(foo3, Decl(objectTypesIdentityWithPrivates2.ts, 15, 25), Decl(objectTypesIdentityWithPrivates2.ts, 17, 28), Decl(objectTypesIdentityWithPrivates2.ts, 18, 28)) +>x : D, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 18, 14)) +>D : D, Symbol(D, Decl(objectTypesIdentityWithPrivates2.ts, 4, 1)) function foo3(x: any) { } ->foo3 : { (x: C): any; (x: D): any; } ->x : any +>foo3 : { (x: C): any; (x: D): any; }, Symbol(foo3, Decl(objectTypesIdentityWithPrivates2.ts, 15, 25), Decl(objectTypesIdentityWithPrivates2.ts, 17, 28), Decl(objectTypesIdentityWithPrivates2.ts, 18, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 19, 14)) function foo4(x: C): number; ->foo4 : { (x: C): number; (x: D): string; } ->x : C ->C : C +>foo4 : { (x: C): number; (x: D): string; }, Symbol(foo4, Decl(objectTypesIdentityWithPrivates2.ts, 19, 25), Decl(objectTypesIdentityWithPrivates2.ts, 21, 36), Decl(objectTypesIdentityWithPrivates2.ts, 22, 36)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 21, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates2.ts, 0, 0)) function foo4(x: D): string; // BUG 831926 ->foo4 : { (x: C): number; (x: D): string; } ->x : D ->D : D +>foo4 : { (x: C): number; (x: D): string; }, Symbol(foo4, Decl(objectTypesIdentityWithPrivates2.ts, 19, 25), Decl(objectTypesIdentityWithPrivates2.ts, 21, 36), Decl(objectTypesIdentityWithPrivates2.ts, 22, 36)) +>x : D, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 22, 14)) +>D : D, Symbol(D, Decl(objectTypesIdentityWithPrivates2.ts, 4, 1)) function foo4(x: any): any { } ->foo4 : { (x: C): number; (x: D): string; } ->x : any +>foo4 : { (x: C): number; (x: D): string; }, Symbol(foo4, Decl(objectTypesIdentityWithPrivates2.ts, 19, 25), Decl(objectTypesIdentityWithPrivates2.ts, 21, 36), Decl(objectTypesIdentityWithPrivates2.ts, 22, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 23, 14)) var r = foo4(new C()); ->r : number +>r : number, Symbol(r, Decl(objectTypesIdentityWithPrivates2.ts, 25, 3), Decl(objectTypesIdentityWithPrivates2.ts, 26, 3)) >foo4(new C()) : number ->foo4 : { (x: C): number; (x: D): string; } +>foo4 : { (x: C): number; (x: D): string; }, Symbol(foo4, Decl(objectTypesIdentityWithPrivates2.ts, 19, 25), Decl(objectTypesIdentityWithPrivates2.ts, 21, 36), Decl(objectTypesIdentityWithPrivates2.ts, 22, 36)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(objectTypesIdentityWithPrivates2.ts, 0, 0)) var r = foo4(new D()); ->r : number +>r : number, Symbol(r, Decl(objectTypesIdentityWithPrivates2.ts, 25, 3), Decl(objectTypesIdentityWithPrivates2.ts, 26, 3)) >foo4(new D()) : number ->foo4 : { (x: C): number; (x: D): string; } +>foo4 : { (x: C): number; (x: D): string; }, Symbol(foo4, Decl(objectTypesIdentityWithPrivates2.ts, 19, 25), Decl(objectTypesIdentityWithPrivates2.ts, 21, 36), Decl(objectTypesIdentityWithPrivates2.ts, 22, 36)) >new D() : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(objectTypesIdentityWithPrivates2.ts, 4, 1)) function foo5(x: C): number; ->foo5 : { (x: C): number; (x: C): string; } ->x : C ->C : C +>foo5 : { (x: C): number; (x: C): string; }, Symbol(foo5, Decl(objectTypesIdentityWithPrivates2.ts, 26, 30), Decl(objectTypesIdentityWithPrivates2.ts, 28, 36), Decl(objectTypesIdentityWithPrivates2.ts, 29, 36)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 28, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates2.ts, 0, 0)) function foo5(x: C): string; // error ->foo5 : { (x: C): number; (x: C): string; } ->x : C ->C : C +>foo5 : { (x: C): number; (x: C): string; }, Symbol(foo5, Decl(objectTypesIdentityWithPrivates2.ts, 26, 30), Decl(objectTypesIdentityWithPrivates2.ts, 28, 36), Decl(objectTypesIdentityWithPrivates2.ts, 29, 36)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 29, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPrivates2.ts, 0, 0)) function foo5(x: any): any { } ->foo5 : { (x: C): number; (x: C): string; } ->x : any +>foo5 : { (x: C): number; (x: C): string; }, Symbol(foo5, Decl(objectTypesIdentityWithPrivates2.ts, 26, 30), Decl(objectTypesIdentityWithPrivates2.ts, 28, 36), Decl(objectTypesIdentityWithPrivates2.ts, 29, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 30, 14)) function foo6(x: D): number; ->foo6 : { (x: D): number; (x: D): string; } ->x : D ->D : D +>foo6 : { (x: D): number; (x: D): string; }, Symbol(foo6, Decl(objectTypesIdentityWithPrivates2.ts, 30, 30), Decl(objectTypesIdentityWithPrivates2.ts, 32, 36), Decl(objectTypesIdentityWithPrivates2.ts, 33, 36)) +>x : D, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 32, 14)) +>D : D, Symbol(D, Decl(objectTypesIdentityWithPrivates2.ts, 4, 1)) function foo6(x: D): string; // error ->foo6 : { (x: D): number; (x: D): string; } ->x : D ->D : D +>foo6 : { (x: D): number; (x: D): string; }, Symbol(foo6, Decl(objectTypesIdentityWithPrivates2.ts, 30, 30), Decl(objectTypesIdentityWithPrivates2.ts, 32, 36), Decl(objectTypesIdentityWithPrivates2.ts, 33, 36)) +>x : D, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 33, 14)) +>D : D, Symbol(D, Decl(objectTypesIdentityWithPrivates2.ts, 4, 1)) function foo6(x: any): any { } ->foo6 : { (x: D): number; (x: D): string; } ->x : any +>foo6 : { (x: D): number; (x: D): string; }, Symbol(foo6, Decl(objectTypesIdentityWithPrivates2.ts, 30, 30), Decl(objectTypesIdentityWithPrivates2.ts, 32, 36), Decl(objectTypesIdentityWithPrivates2.ts, 33, 36)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPrivates2.ts, 34, 14)) diff --git a/tests/baselines/reference/objectTypesIdentityWithPublics.types b/tests/baselines/reference/objectTypesIdentityWithPublics.types index 411fe4fb88e..eb5be3bda45 100644 --- a/tests/baselines/reference/objectTypesIdentityWithPublics.types +++ b/tests/baselines/reference/objectTypesIdentityWithPublics.types @@ -2,279 +2,280 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithPublics.ts, 0, 0)) public foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithPublics.ts, 2, 9)) } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithPublics.ts, 4, 1)) public foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithPublics.ts, 6, 9)) } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithPublics.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithPublics.ts, 10, 8)) public foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(objectTypesIdentityWithPublics.ts, 10, 12)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithPublics.ts, 10, 8)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithPublics.ts, 12, 1)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithPublics.ts, 14, 13)) } var a: { foo: string; } ->a : { foo: string; } ->foo : string +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentityWithPublics.ts, 18, 3)) +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithPublics.ts, 18, 8)) var b = { foo: '' }; ->b : { foo: string; } +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentityWithPublics.ts, 19, 3)) >{ foo: '' } : { foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithPublics.ts, 19, 9)) +>'' : string function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithPublics.ts, 19, 20), Decl(objectTypesIdentityWithPublics.ts, 21, 20), Decl(objectTypesIdentityWithPublics.ts, 22, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 21, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPublics.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithPublics.ts, 19, 20), Decl(objectTypesIdentityWithPublics.ts, 21, 20), Decl(objectTypesIdentityWithPublics.ts, 22, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 22, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPublics.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithPublics.ts, 19, 20), Decl(objectTypesIdentityWithPublics.ts, 21, 20), Decl(objectTypesIdentityWithPublics.ts, 22, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 23, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithPublics.ts, 23, 25), Decl(objectTypesIdentityWithPublics.ts, 25, 21), Decl(objectTypesIdentityWithPublics.ts, 26, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 25, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPublics.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithPublics.ts, 23, 25), Decl(objectTypesIdentityWithPublics.ts, 25, 21), Decl(objectTypesIdentityWithPublics.ts, 26, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 26, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPublics.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithPublics.ts, 23, 25), Decl(objectTypesIdentityWithPublics.ts, 25, 21), Decl(objectTypesIdentityWithPublics.ts, 26, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 27, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithPublics.ts, 27, 26), Decl(objectTypesIdentityWithPublics.ts, 29, 29), Decl(objectTypesIdentityWithPublics.ts, 30, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 29, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPublics.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithPublics.ts, 27, 26), Decl(objectTypesIdentityWithPublics.ts, 29, 29), Decl(objectTypesIdentityWithPublics.ts, 30, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 30, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPublics.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithPublics.ts, 27, 26), Decl(objectTypesIdentityWithPublics.ts, 29, 29), Decl(objectTypesIdentityWithPublics.ts, 30, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 31, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithPublics.ts, 31, 26), Decl(objectTypesIdentityWithPublics.ts, 33, 20), Decl(objectTypesIdentityWithPublics.ts, 34, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 33, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPublics.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithPublics.ts, 31, 26), Decl(objectTypesIdentityWithPublics.ts, 33, 20), Decl(objectTypesIdentityWithPublics.ts, 34, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 34, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPublics.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithPublics.ts, 31, 26), Decl(objectTypesIdentityWithPublics.ts, 33, 20), Decl(objectTypesIdentityWithPublics.ts, 34, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 35, 14)) function foo3(x: typeof a); ->foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithPublics.ts, 35, 25), Decl(objectTypesIdentityWithPublics.ts, 37, 27), Decl(objectTypesIdentityWithPublics.ts, 38, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 37, 14)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentityWithPublics.ts, 18, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithPublics.ts, 35, 25), Decl(objectTypesIdentityWithPublics.ts, 37, 27), Decl(objectTypesIdentityWithPublics.ts, 38, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 38, 14)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentityWithPublics.ts, 18, 3)) function foo3(x: any) { } ->foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : any +>foo3 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithPublics.ts, 35, 25), Decl(objectTypesIdentityWithPublics.ts, 37, 27), Decl(objectTypesIdentityWithPublics.ts, 38, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 39, 14)) function foo4(x: typeof b); ->foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithPublics.ts, 39, 25), Decl(objectTypesIdentityWithPublics.ts, 41, 27), Decl(objectTypesIdentityWithPublics.ts, 42, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 41, 14)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentityWithPublics.ts, 19, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithPublics.ts, 39, 25), Decl(objectTypesIdentityWithPublics.ts, 41, 27), Decl(objectTypesIdentityWithPublics.ts, 42, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 42, 14)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentityWithPublics.ts, 19, 3)) function foo4(x: any) { } ->foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; } ->x : any +>foo4 : { (x: { foo: string; }): any; (x: { foo: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithPublics.ts, 39, 25), Decl(objectTypesIdentityWithPublics.ts, 41, 27), Decl(objectTypesIdentityWithPublics.ts, 42, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 43, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithPublics.ts, 43, 25), Decl(objectTypesIdentityWithPublics.ts, 45, 20), Decl(objectTypesIdentityWithPublics.ts, 46, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 45, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPublics.ts, 0, 0)) function foo5(x: B); // error ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithPublics.ts, 43, 25), Decl(objectTypesIdentityWithPublics.ts, 45, 20), Decl(objectTypesIdentityWithPublics.ts, 46, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 46, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPublics.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithPublics.ts, 43, 25), Decl(objectTypesIdentityWithPublics.ts, 45, 20), Decl(objectTypesIdentityWithPublics.ts, 46, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 47, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithPublics.ts, 47, 25), Decl(objectTypesIdentityWithPublics.ts, 49, 21), Decl(objectTypesIdentityWithPublics.ts, 50, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 49, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPublics.ts, 0, 0)) function foo5b(x: C); // error ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithPublics.ts, 47, 25), Decl(objectTypesIdentityWithPublics.ts, 49, 21), Decl(objectTypesIdentityWithPublics.ts, 50, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 50, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPublics.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithPublics.ts, 47, 25), Decl(objectTypesIdentityWithPublics.ts, 49, 21), Decl(objectTypesIdentityWithPublics.ts, 50, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 51, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithPublics.ts, 51, 26), Decl(objectTypesIdentityWithPublics.ts, 53, 20), Decl(objectTypesIdentityWithPublics.ts, 54, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 53, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPublics.ts, 0, 0)) function foo6(x: I); // error ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithPublics.ts, 51, 26), Decl(objectTypesIdentityWithPublics.ts, 53, 20), Decl(objectTypesIdentityWithPublics.ts, 54, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 54, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPublics.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithPublics.ts, 51, 26), Decl(objectTypesIdentityWithPublics.ts, 53, 20), Decl(objectTypesIdentityWithPublics.ts, 54, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 55, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { foo: string; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { foo: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithPublics.ts, 55, 25), Decl(objectTypesIdentityWithPublics.ts, 57, 20), Decl(objectTypesIdentityWithPublics.ts, 58, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 57, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithPublics.ts, 0, 0)) function foo7(x: typeof a); // error ->foo7 : { (x: A): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo7 : { (x: A): any; (x: { foo: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithPublics.ts, 55, 25), Decl(objectTypesIdentityWithPublics.ts, 57, 20), Decl(objectTypesIdentityWithPublics.ts, 58, 27)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 58, 14)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentityWithPublics.ts, 18, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { foo: string; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { foo: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithPublics.ts, 55, 25), Decl(objectTypesIdentityWithPublics.ts, 57, 20), Decl(objectTypesIdentityWithPublics.ts, 58, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 59, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithPublics.ts, 59, 25), Decl(objectTypesIdentityWithPublics.ts, 61, 20), Decl(objectTypesIdentityWithPublics.ts, 62, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 61, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPublics.ts, 4, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithPublics.ts, 59, 25), Decl(objectTypesIdentityWithPublics.ts, 61, 20), Decl(objectTypesIdentityWithPublics.ts, 62, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 62, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPublics.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithPublics.ts, 59, 25), Decl(objectTypesIdentityWithPublics.ts, 61, 20), Decl(objectTypesIdentityWithPublics.ts, 62, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 63, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithPublics.ts, 63, 25), Decl(objectTypesIdentityWithPublics.ts, 65, 20), Decl(objectTypesIdentityWithPublics.ts, 66, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 65, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPublics.ts, 4, 1)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithPublics.ts, 63, 25), Decl(objectTypesIdentityWithPublics.ts, 65, 20), Decl(objectTypesIdentityWithPublics.ts, 66, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 66, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPublics.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithPublics.ts, 63, 25), Decl(objectTypesIdentityWithPublics.ts, 65, 20), Decl(objectTypesIdentityWithPublics.ts, 66, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 67, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { foo: string; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithPublics.ts, 67, 25), Decl(objectTypesIdentityWithPublics.ts, 69, 21), Decl(objectTypesIdentityWithPublics.ts, 70, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 69, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPublics.ts, 4, 1)) function foo10(x: typeof a); // error ->foo10 : { (x: B): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo10 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithPublics.ts, 67, 25), Decl(objectTypesIdentityWithPublics.ts, 69, 21), Decl(objectTypesIdentityWithPublics.ts, 70, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 70, 15)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentityWithPublics.ts, 18, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { foo: string; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithPublics.ts, 67, 25), Decl(objectTypesIdentityWithPublics.ts, 69, 21), Decl(objectTypesIdentityWithPublics.ts, 70, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 71, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { foo: string; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithPublics.ts, 71, 26), Decl(objectTypesIdentityWithPublics.ts, 73, 21), Decl(objectTypesIdentityWithPublics.ts, 74, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 73, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithPublics.ts, 4, 1)) function foo11(x: typeof b); // error ->foo11 : { (x: B): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo11 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithPublics.ts, 71, 26), Decl(objectTypesIdentityWithPublics.ts, 73, 21), Decl(objectTypesIdentityWithPublics.ts, 74, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 74, 15)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentityWithPublics.ts, 19, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { foo: string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { foo: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithPublics.ts, 71, 26), Decl(objectTypesIdentityWithPublics.ts, 73, 21), Decl(objectTypesIdentityWithPublics.ts, 74, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 75, 15)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithPublics.ts, 75, 26), Decl(objectTypesIdentityWithPublics.ts, 77, 21), Decl(objectTypesIdentityWithPublics.ts, 78, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 77, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPublics.ts, 12, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithPublics.ts, 75, 26), Decl(objectTypesIdentityWithPublics.ts, 77, 21), Decl(objectTypesIdentityWithPublics.ts, 78, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 78, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithPublics.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithPublics.ts, 75, 26), Decl(objectTypesIdentityWithPublics.ts, 77, 21), Decl(objectTypesIdentityWithPublics.ts, 78, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 79, 15)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { foo: string; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithPublics.ts, 79, 26), Decl(objectTypesIdentityWithPublics.ts, 81, 21), Decl(objectTypesIdentityWithPublics.ts, 82, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 81, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPublics.ts, 12, 1)) function foo13(x: typeof a); // error ->foo13 : { (x: I): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->a : { foo: string; } +>foo13 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithPublics.ts, 79, 26), Decl(objectTypesIdentityWithPublics.ts, 81, 21), Decl(objectTypesIdentityWithPublics.ts, 82, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 82, 15)) +>a : { foo: string; }, Symbol(a, Decl(objectTypesIdentityWithPublics.ts, 18, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { foo: string; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithPublics.ts, 79, 26), Decl(objectTypesIdentityWithPublics.ts, 81, 21), Decl(objectTypesIdentityWithPublics.ts, 82, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 83, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { foo: string; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithPublics.ts, 83, 26), Decl(objectTypesIdentityWithPublics.ts, 85, 21), Decl(objectTypesIdentityWithPublics.ts, 86, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 85, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithPublics.ts, 12, 1)) function foo14(x: typeof b); // error ->foo14 : { (x: I): any; (x: { foo: string; }): any; } ->x : { foo: string; } ->b : { foo: string; } +>foo14 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithPublics.ts, 83, 26), Decl(objectTypesIdentityWithPublics.ts, 85, 21), Decl(objectTypesIdentityWithPublics.ts, 86, 28)) +>x : { foo: string; }, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 86, 15)) +>b : { foo: string; }, Symbol(b, Decl(objectTypesIdentityWithPublics.ts, 19, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { foo: string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { foo: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithPublics.ts, 83, 26), Decl(objectTypesIdentityWithPublics.ts, 85, 21), Decl(objectTypesIdentityWithPublics.ts, 86, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithPublics.ts, 87, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithStringIndexers.types b/tests/baselines/reference/objectTypesIdentityWithStringIndexers.types index 83a73646874..ea58f2ff2d8 100644 --- a/tests/baselines/reference/objectTypesIdentityWithStringIndexers.types +++ b/tests/baselines/reference/objectTypesIdentityWithStringIndexers.types @@ -2,377 +2,378 @@ // object types are identical structurally class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers.ts, 0, 0)) [x: string]: string; ->x : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 3, 5)) } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers.ts, 4, 1)) [x: string]: string; ->x : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 7, 5)) } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithStringIndexers.ts, 8, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithStringIndexers.ts, 10, 8)) [x: string]: T; ->x : string ->T : T +>x : string, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 11, 5)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithStringIndexers.ts, 10, 8)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers.ts, 12, 1)) [x: string]: string; ->x : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 15, 5)) } class PA extends A { ->PA : PA ->A : A +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithStringIndexers.ts, 16, 1)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers.ts, 0, 0)) } class PB extends B { ->PB : PB ->B : B +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithStringIndexers.ts, 19, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers.ts, 4, 1)) } var a: { ->a : { [x: string]: string; } +>a : { [x: string]: string; }, Symbol(a, Decl(objectTypesIdentityWithStringIndexers.ts, 24, 3)) [x: string]: string; ->x : string +>x : string, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 25, 5)) } var b: { [x: string]: string; } = { foo: '' }; ->b : { [x: string]: string; } ->x : string +>b : { [x: string]: string; }, Symbol(b, Decl(objectTypesIdentityWithStringIndexers.ts, 27, 3)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 27, 10)) >{ foo: '' } : { [x: string]: string; foo: string; } ->foo : string +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithStringIndexers.ts, 27, 35)) +>'' : string function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithStringIndexers.ts, 27, 46), Decl(objectTypesIdentityWithStringIndexers.ts, 29, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 30, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 29, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers.ts, 0, 0)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithStringIndexers.ts, 27, 46), Decl(objectTypesIdentityWithStringIndexers.ts, 29, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 30, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 30, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers.ts, 0, 0)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithStringIndexers.ts, 27, 46), Decl(objectTypesIdentityWithStringIndexers.ts, 29, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 30, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 31, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithStringIndexers.ts, 31, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 33, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 34, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 33, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers.ts, 4, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithStringIndexers.ts, 31, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 33, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 34, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 34, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers.ts, 4, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithStringIndexers.ts, 31, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 33, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 34, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 35, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithStringIndexers.ts, 35, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 37, 29), Decl(objectTypesIdentityWithStringIndexers.ts, 38, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 37, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithStringIndexers.ts, 8, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithStringIndexers.ts, 35, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 37, 29), Decl(objectTypesIdentityWithStringIndexers.ts, 38, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 38, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithStringIndexers.ts, 8, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithStringIndexers.ts, 35, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 37, 29), Decl(objectTypesIdentityWithStringIndexers.ts, 38, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 39, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithStringIndexers.ts, 39, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 41, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 42, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 41, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers.ts, 12, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithStringIndexers.ts, 39, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 41, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 42, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 42, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers.ts, 12, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithStringIndexers.ts, 39, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 41, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 42, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 43, 14)) function foo3(x: typeof a); ->foo3 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->a : { [x: string]: string; } +>foo3 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithStringIndexers.ts, 43, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 45, 27), Decl(objectTypesIdentityWithStringIndexers.ts, 46, 27)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 45, 14)) +>a : { [x: string]: string; }, Symbol(a, Decl(objectTypesIdentityWithStringIndexers.ts, 24, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->a : { [x: string]: string; } +>foo3 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithStringIndexers.ts, 43, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 45, 27), Decl(objectTypesIdentityWithStringIndexers.ts, 46, 27)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 46, 14)) +>a : { [x: string]: string; }, Symbol(a, Decl(objectTypesIdentityWithStringIndexers.ts, 24, 3)) function foo3(x: any) { } ->foo3 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; } ->x : any +>foo3 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithStringIndexers.ts, 43, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 45, 27), Decl(objectTypesIdentityWithStringIndexers.ts, 46, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 47, 14)) function foo4(x: typeof b); ->foo4 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->b : { [x: string]: string; } +>foo4 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithStringIndexers.ts, 47, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 49, 27), Decl(objectTypesIdentityWithStringIndexers.ts, 50, 27)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 49, 14)) +>b : { [x: string]: string; }, Symbol(b, Decl(objectTypesIdentityWithStringIndexers.ts, 27, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->b : { [x: string]: string; } +>foo4 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithStringIndexers.ts, 47, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 49, 27), Decl(objectTypesIdentityWithStringIndexers.ts, 50, 27)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 50, 14)) +>b : { [x: string]: string; }, Symbol(b, Decl(objectTypesIdentityWithStringIndexers.ts, 27, 3)) function foo4(x: any) { } ->foo4 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; } ->x : any +>foo4 : { (x: { [x: string]: string; }): any; (x: { [x: string]: string; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithStringIndexers.ts, 47, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 49, 27), Decl(objectTypesIdentityWithStringIndexers.ts, 50, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 51, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithStringIndexers.ts, 51, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 53, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 54, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 53, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers.ts, 0, 0)) function foo5(x: B); // error ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithStringIndexers.ts, 51, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 53, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 54, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 54, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers.ts, 4, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithStringIndexers.ts, 51, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 53, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 54, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 55, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithStringIndexers.ts, 55, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 57, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 58, 29)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 57, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers.ts, 0, 0)) function foo5b(x: C); // error ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithStringIndexers.ts, 55, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 57, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 58, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 58, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithStringIndexers.ts, 8, 1)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithStringIndexers.ts, 55, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 57, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 58, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 59, 15)) function foo5c(x: A); ->foo5c : { (x: A): any; (x: PA): any; } ->x : A ->A : A +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithStringIndexers.ts, 59, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 61, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 62, 22)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 61, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers.ts, 0, 0)) function foo5c(x: PA); // error ->foo5c : { (x: A): any; (x: PA): any; } ->x : PA ->PA : PA +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithStringIndexers.ts, 59, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 61, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 62, 22)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 62, 15)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithStringIndexers.ts, 16, 1)) function foo5c(x: any) { } ->foo5c : { (x: A): any; (x: PA): any; } ->x : any +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithStringIndexers.ts, 59, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 61, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 62, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 63, 15)) function foo5d(x: A); ->foo5d : { (x: A): any; (x: PB): any; } ->x : A ->A : A +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithStringIndexers.ts, 63, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 65, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 66, 22)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 65, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers.ts, 0, 0)) function foo5d(x: PB); // error ->foo5d : { (x: A): any; (x: PB): any; } ->x : PB ->PB : PB +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithStringIndexers.ts, 63, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 65, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 66, 22)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 66, 15)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithStringIndexers.ts, 19, 1)) function foo5d(x: any) { } ->foo5d : { (x: A): any; (x: PB): any; } ->x : any +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithStringIndexers.ts, 63, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 65, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 66, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 67, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithStringIndexers.ts, 67, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 69, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 70, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 69, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers.ts, 0, 0)) function foo6(x: I); // error ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithStringIndexers.ts, 67, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 69, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 70, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 70, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers.ts, 12, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithStringIndexers.ts, 67, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 69, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 70, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 71, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { [x: string]: string; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { [x: string]: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithStringIndexers.ts, 71, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 73, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 74, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 73, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers.ts, 0, 0)) function foo7(x: typeof a); // error ->foo7 : { (x: A): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->a : { [x: string]: string; } +>foo7 : { (x: A): any; (x: { [x: string]: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithStringIndexers.ts, 71, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 73, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 74, 27)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 74, 14)) +>a : { [x: string]: string; }, Symbol(a, Decl(objectTypesIdentityWithStringIndexers.ts, 24, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { [x: string]: string; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { [x: string]: string; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithStringIndexers.ts, 71, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 73, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 74, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 75, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithStringIndexers.ts, 75, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 77, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 78, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 77, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers.ts, 4, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithStringIndexers.ts, 75, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 77, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 78, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 78, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers.ts, 12, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithStringIndexers.ts, 75, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 77, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 78, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 79, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithStringIndexers.ts, 79, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 81, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 82, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 81, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers.ts, 4, 1)) function foo9(x: C); // error ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithStringIndexers.ts, 79, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 81, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 82, 28)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 82, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithStringIndexers.ts, 8, 1)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithStringIndexers.ts, 79, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 81, 20), Decl(objectTypesIdentityWithStringIndexers.ts, 82, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 83, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { [x: string]: string; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { [x: string]: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithStringIndexers.ts, 83, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 85, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 86, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 85, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers.ts, 4, 1)) function foo10(x: typeof a); // error ->foo10 : { (x: B): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->a : { [x: string]: string; } +>foo10 : { (x: B): any; (x: { [x: string]: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithStringIndexers.ts, 83, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 85, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 86, 28)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 86, 15)) +>a : { [x: string]: string; }, Symbol(a, Decl(objectTypesIdentityWithStringIndexers.ts, 24, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { [x: string]: string; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { [x: string]: string; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithStringIndexers.ts, 83, 25), Decl(objectTypesIdentityWithStringIndexers.ts, 85, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 86, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 87, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { [x: string]: string; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { [x: string]: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithStringIndexers.ts, 87, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 89, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 90, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 89, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers.ts, 4, 1)) function foo11(x: typeof b); // error ->foo11 : { (x: B): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->b : { [x: string]: string; } +>foo11 : { (x: B): any; (x: { [x: string]: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithStringIndexers.ts, 87, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 89, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 90, 28)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 90, 15)) +>b : { [x: string]: string; }, Symbol(b, Decl(objectTypesIdentityWithStringIndexers.ts, 27, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { [x: string]: string; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { [x: string]: string; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithStringIndexers.ts, 87, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 89, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 90, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 91, 15)) function foo11b(x: B); ->foo11b : { (x: B): any; (x: PA): any; } ->x : B ->B : B +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithStringIndexers.ts, 91, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 93, 22), Decl(objectTypesIdentityWithStringIndexers.ts, 94, 23)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 93, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers.ts, 4, 1)) function foo11b(x: PA); // error ->foo11b : { (x: B): any; (x: PA): any; } ->x : PA ->PA : PA +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithStringIndexers.ts, 91, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 93, 22), Decl(objectTypesIdentityWithStringIndexers.ts, 94, 23)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 94, 16)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithStringIndexers.ts, 16, 1)) function foo11b(x: any) { } ->foo11b : { (x: B): any; (x: PA): any; } ->x : any +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithStringIndexers.ts, 91, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 93, 22), Decl(objectTypesIdentityWithStringIndexers.ts, 94, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 95, 16)) function foo11c(x: B); ->foo11c : { (x: B): any; (x: PB): any; } ->x : B ->B : B +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithStringIndexers.ts, 95, 27), Decl(objectTypesIdentityWithStringIndexers.ts, 97, 22), Decl(objectTypesIdentityWithStringIndexers.ts, 98, 23)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 97, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers.ts, 4, 1)) function foo11c(x: PB); // error ->foo11c : { (x: B): any; (x: PB): any; } ->x : PB ->PB : PB +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithStringIndexers.ts, 95, 27), Decl(objectTypesIdentityWithStringIndexers.ts, 97, 22), Decl(objectTypesIdentityWithStringIndexers.ts, 98, 23)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 98, 16)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithStringIndexers.ts, 19, 1)) function foo11c(x: any) { } ->foo11c : { (x: B): any; (x: PB): any; } ->x : any +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithStringIndexers.ts, 95, 27), Decl(objectTypesIdentityWithStringIndexers.ts, 97, 22), Decl(objectTypesIdentityWithStringIndexers.ts, 98, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 99, 16)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithStringIndexers.ts, 99, 27), Decl(objectTypesIdentityWithStringIndexers.ts, 101, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 102, 29)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 101, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers.ts, 12, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithStringIndexers.ts, 99, 27), Decl(objectTypesIdentityWithStringIndexers.ts, 101, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 102, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 102, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithStringIndexers.ts, 8, 1)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithStringIndexers.ts, 99, 27), Decl(objectTypesIdentityWithStringIndexers.ts, 101, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 102, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 103, 15)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { [x: string]: string; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { [x: string]: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithStringIndexers.ts, 103, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 105, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 106, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 105, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers.ts, 12, 1)) function foo13(x: typeof a); // error ->foo13 : { (x: I): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->a : { [x: string]: string; } +>foo13 : { (x: I): any; (x: { [x: string]: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithStringIndexers.ts, 103, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 105, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 106, 28)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 106, 15)) +>a : { [x: string]: string; }, Symbol(a, Decl(objectTypesIdentityWithStringIndexers.ts, 24, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { [x: string]: string; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { [x: string]: string; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithStringIndexers.ts, 103, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 105, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 106, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 107, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { [x: string]: string; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { [x: string]: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithStringIndexers.ts, 107, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 109, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 110, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 109, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers.ts, 12, 1)) function foo14(x: typeof b); // error ->foo14 : { (x: I): any; (x: { [x: string]: string; }): any; } ->x : { [x: string]: string; } ->b : { [x: string]: string; } +>foo14 : { (x: I): any; (x: { [x: string]: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithStringIndexers.ts, 107, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 109, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 110, 28)) +>x : { [x: string]: string; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 110, 15)) +>b : { [x: string]: string; }, Symbol(b, Decl(objectTypesIdentityWithStringIndexers.ts, 27, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { [x: string]: string; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { [x: string]: string; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithStringIndexers.ts, 107, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 109, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 110, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 111, 15)) function foo15(x: I); ->foo15 : { (x: I): any; (x: PA): any; } ->x : I ->I : I +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithStringIndexers.ts, 111, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 113, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 114, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 113, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers.ts, 12, 1)) function foo15(x: PA); // error ->foo15 : { (x: I): any; (x: PA): any; } ->x : PA ->PA : PA +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithStringIndexers.ts, 111, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 113, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 114, 22)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 114, 15)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithStringIndexers.ts, 16, 1)) function foo15(x: any) { } ->foo15 : { (x: I): any; (x: PA): any; } ->x : any +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithStringIndexers.ts, 111, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 113, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 114, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 115, 15)) function foo16(x: I); ->foo16 : { (x: I): any; (x: PB): any; } ->x : I ->I : I +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithStringIndexers.ts, 115, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 117, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 118, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 117, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers.ts, 12, 1)) function foo16(x: PB); // error ->foo16 : { (x: I): any; (x: PB): any; } ->x : PB ->PB : PB +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithStringIndexers.ts, 115, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 117, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 118, 22)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 118, 15)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithStringIndexers.ts, 19, 1)) function foo16(x: any) { } ->foo16 : { (x: I): any; (x: PB): any; } ->x : any +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithStringIndexers.ts, 115, 26), Decl(objectTypesIdentityWithStringIndexers.ts, 117, 21), Decl(objectTypesIdentityWithStringIndexers.ts, 118, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers.ts, 119, 15)) diff --git a/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.types b/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.types index c621be1e26b..32ff47b75bc 100644 --- a/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.types +++ b/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.types @@ -2,396 +2,397 @@ // object types are identical structurally class Base { foo: string; } ->Base : Base ->foo : string +>Base : Base, Symbol(Base, Decl(objectTypesIdentityWithStringIndexers2.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(objectTypesIdentityWithStringIndexers2.ts, 2, 12)) class Derived extends Base { bar: string; } ->Derived : Derived ->Base : Base ->bar : string +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithStringIndexers2.ts, 2, 27)) +>Base : Base, Symbol(Base, Decl(objectTypesIdentityWithStringIndexers2.ts, 0, 0)) +>bar : string, Symbol(bar, Decl(objectTypesIdentityWithStringIndexers2.ts, 3, 28)) class A { ->A : A +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers2.ts, 3, 43)) [x: string]: Base; ->x : string ->Base : Base +>x : string, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 6, 5)) +>Base : Base, Symbol(Base, Decl(objectTypesIdentityWithStringIndexers2.ts, 0, 0)) } class B { ->B : B +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers2.ts, 7, 1)) [x: string]: Derived; ->x : string ->Derived : Derived +>x : string, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 10, 5)) +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithStringIndexers2.ts, 2, 27)) } class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(objectTypesIdentityWithStringIndexers2.ts, 11, 1)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithStringIndexers2.ts, 13, 8)) [x: string]: T; ->x : string ->T : T +>x : string, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 14, 5)) +>T : T, Symbol(T, Decl(objectTypesIdentityWithStringIndexers2.ts, 13, 8)) } interface I { ->I : I +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers2.ts, 15, 1)) [x: string]: Derived; ->x : string ->Derived : Derived +>x : string, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 18, 5)) +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithStringIndexers2.ts, 2, 27)) } class PA extends A { ->PA : PA ->A : A +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithStringIndexers2.ts, 19, 1)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers2.ts, 3, 43)) } class PB extends B { ->PB : PB ->B : B +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithStringIndexers2.ts, 22, 1)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers2.ts, 7, 1)) } var a: { ->a : { [x: string]: Base; } +>a : { [x: string]: Base; }, Symbol(a, Decl(objectTypesIdentityWithStringIndexers2.ts, 27, 3)) [x: string]: Base; ->x : string ->Base : Base +>x : string, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 28, 5)) +>Base : Base, Symbol(Base, Decl(objectTypesIdentityWithStringIndexers2.ts, 0, 0)) } var b: { [x: string]: Derived; } = { foo: null }; ->b : { [x: string]: Derived; } ->x : string ->Derived : Derived +>b : { [x: string]: Derived; }, Symbol(b, Decl(objectTypesIdentityWithStringIndexers2.ts, 30, 3)) +>x : string, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 30, 10)) +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithStringIndexers2.ts, 2, 27)) >{ foo: null } : { [x: string]: Derived; foo: Derived; } ->foo : Derived +>foo : Derived, Symbol(foo, Decl(objectTypesIdentityWithStringIndexers2.ts, 30, 36)) >null : Derived ->Derived : Derived +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithStringIndexers2.ts, 2, 27)) +>null : null function foo1(x: A); ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithStringIndexers2.ts, 30, 58), Decl(objectTypesIdentityWithStringIndexers2.ts, 32, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 33, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 32, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers2.ts, 3, 43)) function foo1(x: A); // error ->foo1 : { (x: A): any; (x: A): any; } ->x : A ->A : A +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithStringIndexers2.ts, 30, 58), Decl(objectTypesIdentityWithStringIndexers2.ts, 32, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 33, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 33, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers2.ts, 3, 43)) function foo1(x: any) { } ->foo1 : { (x: A): any; (x: A): any; } ->x : any +>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1, Decl(objectTypesIdentityWithStringIndexers2.ts, 30, 58), Decl(objectTypesIdentityWithStringIndexers2.ts, 32, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 33, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 34, 14)) function foo1b(x: B); ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithStringIndexers2.ts, 34, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 36, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 37, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 36, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers2.ts, 7, 1)) function foo1b(x: B); // error ->foo1b : { (x: B): any; (x: B): any; } ->x : B ->B : B +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithStringIndexers2.ts, 34, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 36, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 37, 21)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 37, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers2.ts, 7, 1)) function foo1b(x: any) { } ->foo1b : { (x: B): any; (x: B): any; } ->x : any +>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b, Decl(objectTypesIdentityWithStringIndexers2.ts, 34, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 36, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 37, 21)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 38, 15)) function foo1c(x: C); ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithStringIndexers2.ts, 38, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 40, 29), Decl(objectTypesIdentityWithStringIndexers2.ts, 41, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 40, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithStringIndexers2.ts, 11, 1)) function foo1c(x: C); // error ->foo1c : { (x: C): any; (x: C): any; } ->x : C ->C : C +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithStringIndexers2.ts, 38, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 40, 29), Decl(objectTypesIdentityWithStringIndexers2.ts, 41, 29)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 41, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithStringIndexers2.ts, 11, 1)) function foo1c(x: any) { } ->foo1c : { (x: C): any; (x: C): any; } ->x : any +>foo1c : { (x: C): any; (x: C): any; }, Symbol(foo1c, Decl(objectTypesIdentityWithStringIndexers2.ts, 38, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 40, 29), Decl(objectTypesIdentityWithStringIndexers2.ts, 41, 29)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 42, 15)) function foo2(x: I); ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithStringIndexers2.ts, 42, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 44, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 45, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 44, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers2.ts, 15, 1)) function foo2(x: I); // error ->foo2 : { (x: I): any; (x: I): any; } ->x : I ->I : I +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithStringIndexers2.ts, 42, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 44, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 45, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 45, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers2.ts, 15, 1)) function foo2(x: any) { } ->foo2 : { (x: I): any; (x: I): any; } ->x : any +>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2, Decl(objectTypesIdentityWithStringIndexers2.ts, 42, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 44, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 45, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 46, 14)) function foo3(x: typeof a); ->foo3 : { (x: { [x: string]: Base; }): any; (x: { [x: string]: Base; }): any; } ->x : { [x: string]: Base; } ->a : { [x: string]: Base; } +>foo3 : { (x: { [x: string]: Base; }): any; (x: { [x: string]: Base; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithStringIndexers2.ts, 46, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 48, 27), Decl(objectTypesIdentityWithStringIndexers2.ts, 49, 27)) +>x : { [x: string]: Base; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 48, 14)) +>a : { [x: string]: Base; }, Symbol(a, Decl(objectTypesIdentityWithStringIndexers2.ts, 27, 3)) function foo3(x: typeof a); // error ->foo3 : { (x: { [x: string]: Base; }): any; (x: { [x: string]: Base; }): any; } ->x : { [x: string]: Base; } ->a : { [x: string]: Base; } +>foo3 : { (x: { [x: string]: Base; }): any; (x: { [x: string]: Base; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithStringIndexers2.ts, 46, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 48, 27), Decl(objectTypesIdentityWithStringIndexers2.ts, 49, 27)) +>x : { [x: string]: Base; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 49, 14)) +>a : { [x: string]: Base; }, Symbol(a, Decl(objectTypesIdentityWithStringIndexers2.ts, 27, 3)) function foo3(x: any) { } ->foo3 : { (x: { [x: string]: Base; }): any; (x: { [x: string]: Base; }): any; } ->x : any +>foo3 : { (x: { [x: string]: Base; }): any; (x: { [x: string]: Base; }): any; }, Symbol(foo3, Decl(objectTypesIdentityWithStringIndexers2.ts, 46, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 48, 27), Decl(objectTypesIdentityWithStringIndexers2.ts, 49, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 50, 14)) function foo4(x: typeof b); ->foo4 : { (x: { [x: string]: Derived; }): any; (x: { [x: string]: Derived; }): any; } ->x : { [x: string]: Derived; } ->b : { [x: string]: Derived; } +>foo4 : { (x: { [x: string]: Derived; }): any; (x: { [x: string]: Derived; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithStringIndexers2.ts, 50, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 52, 27), Decl(objectTypesIdentityWithStringIndexers2.ts, 53, 27)) +>x : { [x: string]: Derived; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 52, 14)) +>b : { [x: string]: Derived; }, Symbol(b, Decl(objectTypesIdentityWithStringIndexers2.ts, 30, 3)) function foo4(x: typeof b); // error ->foo4 : { (x: { [x: string]: Derived; }): any; (x: { [x: string]: Derived; }): any; } ->x : { [x: string]: Derived; } ->b : { [x: string]: Derived; } +>foo4 : { (x: { [x: string]: Derived; }): any; (x: { [x: string]: Derived; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithStringIndexers2.ts, 50, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 52, 27), Decl(objectTypesIdentityWithStringIndexers2.ts, 53, 27)) +>x : { [x: string]: Derived; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 53, 14)) +>b : { [x: string]: Derived; }, Symbol(b, Decl(objectTypesIdentityWithStringIndexers2.ts, 30, 3)) function foo4(x: any) { } ->foo4 : { (x: { [x: string]: Derived; }): any; (x: { [x: string]: Derived; }): any; } ->x : any +>foo4 : { (x: { [x: string]: Derived; }): any; (x: { [x: string]: Derived; }): any; }, Symbol(foo4, Decl(objectTypesIdentityWithStringIndexers2.ts, 50, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 52, 27), Decl(objectTypesIdentityWithStringIndexers2.ts, 53, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 54, 14)) function foo5(x: A); ->foo5 : { (x: A): any; (x: B): any; } ->x : A ->A : A +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithStringIndexers2.ts, 54, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 56, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 57, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 56, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers2.ts, 3, 43)) function foo5(x: B); // ok ->foo5 : { (x: A): any; (x: B): any; } ->x : B ->B : B +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithStringIndexers2.ts, 54, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 56, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 57, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 57, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers2.ts, 7, 1)) function foo5(x: any) { } ->foo5 : { (x: A): any; (x: B): any; } ->x : any +>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5, Decl(objectTypesIdentityWithStringIndexers2.ts, 54, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 56, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 57, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 58, 14)) function foo5b(x: A); ->foo5b : { (x: A): any; (x: C): any; } ->x : A ->A : A +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithStringIndexers2.ts, 58, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 60, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 61, 30)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 60, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers2.ts, 3, 43)) function foo5b(x: C); // ok ->foo5b : { (x: A): any; (x: C): any; } ->x : C ->C : C ->Derived : Derived +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithStringIndexers2.ts, 58, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 60, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 61, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 61, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithStringIndexers2.ts, 11, 1)) +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithStringIndexers2.ts, 2, 27)) function foo5b(x: any) { } ->foo5b : { (x: A): any; (x: C): any; } ->x : any +>foo5b : { (x: A): any; (x: C): any; }, Symbol(foo5b, Decl(objectTypesIdentityWithStringIndexers2.ts, 58, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 60, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 61, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 62, 15)) function foo5c(x: A); ->foo5c : { (x: A): any; (x: PA): any; } ->x : A ->A : A +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithStringIndexers2.ts, 62, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 64, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 65, 22)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 64, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers2.ts, 3, 43)) function foo5c(x: PA); // error ->foo5c : { (x: A): any; (x: PA): any; } ->x : PA ->PA : PA +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithStringIndexers2.ts, 62, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 64, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 65, 22)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 65, 15)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithStringIndexers2.ts, 19, 1)) function foo5c(x: any) { } ->foo5c : { (x: A): any; (x: PA): any; } ->x : any +>foo5c : { (x: A): any; (x: PA): any; }, Symbol(foo5c, Decl(objectTypesIdentityWithStringIndexers2.ts, 62, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 64, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 65, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 66, 15)) function foo5d(x: A); ->foo5d : { (x: A): any; (x: PB): any; } ->x : A ->A : A +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithStringIndexers2.ts, 66, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 68, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 69, 22)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 68, 15)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers2.ts, 3, 43)) function foo5d(x: PB); // ok ->foo5d : { (x: A): any; (x: PB): any; } ->x : PB ->PB : PB +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithStringIndexers2.ts, 66, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 68, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 69, 22)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 69, 15)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithStringIndexers2.ts, 22, 1)) function foo5d(x: any) { } ->foo5d : { (x: A): any; (x: PB): any; } ->x : any +>foo5d : { (x: A): any; (x: PB): any; }, Symbol(foo5d, Decl(objectTypesIdentityWithStringIndexers2.ts, 66, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 68, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 69, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 70, 15)) function foo6(x: A); ->foo6 : { (x: A): any; (x: I): any; } ->x : A ->A : A +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithStringIndexers2.ts, 70, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 72, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 73, 20)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 72, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers2.ts, 3, 43)) function foo6(x: I); // ok ->foo6 : { (x: A): any; (x: I): any; } ->x : I ->I : I +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithStringIndexers2.ts, 70, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 72, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 73, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 73, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers2.ts, 15, 1)) function foo6(x: any) { } ->foo6 : { (x: A): any; (x: I): any; } ->x : any +>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6, Decl(objectTypesIdentityWithStringIndexers2.ts, 70, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 72, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 73, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 74, 14)) function foo7(x: A); ->foo7 : { (x: A): any; (x: { [x: string]: Base; }): any; } ->x : A ->A : A +>foo7 : { (x: A): any; (x: { [x: string]: Base; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithStringIndexers2.ts, 74, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 76, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 77, 27)) +>x : A, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 76, 14)) +>A : A, Symbol(A, Decl(objectTypesIdentityWithStringIndexers2.ts, 3, 43)) function foo7(x: typeof a); // error ->foo7 : { (x: A): any; (x: { [x: string]: Base; }): any; } ->x : { [x: string]: Base; } ->a : { [x: string]: Base; } +>foo7 : { (x: A): any; (x: { [x: string]: Base; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithStringIndexers2.ts, 74, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 76, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 77, 27)) +>x : { [x: string]: Base; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 77, 14)) +>a : { [x: string]: Base; }, Symbol(a, Decl(objectTypesIdentityWithStringIndexers2.ts, 27, 3)) function foo7(x: any) { } ->foo7 : { (x: A): any; (x: { [x: string]: Base; }): any; } ->x : any +>foo7 : { (x: A): any; (x: { [x: string]: Base; }): any; }, Symbol(foo7, Decl(objectTypesIdentityWithStringIndexers2.ts, 74, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 76, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 77, 27)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 78, 14)) function foo8(x: B); ->foo8 : { (x: B): any; (x: I): any; } ->x : B ->B : B +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithStringIndexers2.ts, 78, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 80, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 81, 20)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 80, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers2.ts, 7, 1)) function foo8(x: I); // error ->foo8 : { (x: B): any; (x: I): any; } ->x : I ->I : I +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithStringIndexers2.ts, 78, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 80, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 81, 20)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 81, 14)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers2.ts, 15, 1)) function foo8(x: any) { } ->foo8 : { (x: B): any; (x: I): any; } ->x : any +>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8, Decl(objectTypesIdentityWithStringIndexers2.ts, 78, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 80, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 81, 20)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 82, 14)) function foo9(x: B); ->foo9 : { (x: B): any; (x: C): any; } ->x : B ->B : B +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithStringIndexers2.ts, 82, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 84, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 85, 26)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 84, 14)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers2.ts, 7, 1)) function foo9(x: C); // ok ->foo9 : { (x: B): any; (x: C): any; } ->x : C ->C : C ->Base : Base +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithStringIndexers2.ts, 82, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 84, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 85, 26)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 85, 14)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithStringIndexers2.ts, 11, 1)) +>Base : Base, Symbol(Base, Decl(objectTypesIdentityWithStringIndexers2.ts, 0, 0)) function foo9(x: any) { } ->foo9 : { (x: B): any; (x: C): any; } ->x : any +>foo9 : { (x: B): any; (x: C): any; }, Symbol(foo9, Decl(objectTypesIdentityWithStringIndexers2.ts, 82, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 84, 20), Decl(objectTypesIdentityWithStringIndexers2.ts, 85, 26)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 86, 14)) function foo10(x: B); ->foo10 : { (x: B): any; (x: { [x: string]: Base; }): any; } ->x : B ->B : B +>foo10 : { (x: B): any; (x: { [x: string]: Base; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithStringIndexers2.ts, 86, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 88, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 89, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 88, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers2.ts, 7, 1)) function foo10(x: typeof a); // ok ->foo10 : { (x: B): any; (x: { [x: string]: Base; }): any; } ->x : { [x: string]: Base; } ->a : { [x: string]: Base; } +>foo10 : { (x: B): any; (x: { [x: string]: Base; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithStringIndexers2.ts, 86, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 88, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 89, 28)) +>x : { [x: string]: Base; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 89, 15)) +>a : { [x: string]: Base; }, Symbol(a, Decl(objectTypesIdentityWithStringIndexers2.ts, 27, 3)) function foo10(x: any) { } ->foo10 : { (x: B): any; (x: { [x: string]: Base; }): any; } ->x : any +>foo10 : { (x: B): any; (x: { [x: string]: Base; }): any; }, Symbol(foo10, Decl(objectTypesIdentityWithStringIndexers2.ts, 86, 25), Decl(objectTypesIdentityWithStringIndexers2.ts, 88, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 89, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 90, 15)) function foo11(x: B); ->foo11 : { (x: B): any; (x: { [x: string]: Derived; }): any; } ->x : B ->B : B +>foo11 : { (x: B): any; (x: { [x: string]: Derived; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithStringIndexers2.ts, 90, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 92, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 93, 28)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 92, 15)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers2.ts, 7, 1)) function foo11(x: typeof b); // error ->foo11 : { (x: B): any; (x: { [x: string]: Derived; }): any; } ->x : { [x: string]: Derived; } ->b : { [x: string]: Derived; } +>foo11 : { (x: B): any; (x: { [x: string]: Derived; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithStringIndexers2.ts, 90, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 92, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 93, 28)) +>x : { [x: string]: Derived; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 93, 15)) +>b : { [x: string]: Derived; }, Symbol(b, Decl(objectTypesIdentityWithStringIndexers2.ts, 30, 3)) function foo11(x: any) { } ->foo11 : { (x: B): any; (x: { [x: string]: Derived; }): any; } ->x : any +>foo11 : { (x: B): any; (x: { [x: string]: Derived; }): any; }, Symbol(foo11, Decl(objectTypesIdentityWithStringIndexers2.ts, 90, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 92, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 93, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 94, 15)) function foo11b(x: B); ->foo11b : { (x: B): any; (x: PA): any; } ->x : B ->B : B +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithStringIndexers2.ts, 94, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 96, 22), Decl(objectTypesIdentityWithStringIndexers2.ts, 97, 23)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 96, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers2.ts, 7, 1)) function foo11b(x: PA); // ok ->foo11b : { (x: B): any; (x: PA): any; } ->x : PA ->PA : PA +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithStringIndexers2.ts, 94, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 96, 22), Decl(objectTypesIdentityWithStringIndexers2.ts, 97, 23)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 97, 16)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithStringIndexers2.ts, 19, 1)) function foo11b(x: any) { } ->foo11b : { (x: B): any; (x: PA): any; } ->x : any +>foo11b : { (x: B): any; (x: PA): any; }, Symbol(foo11b, Decl(objectTypesIdentityWithStringIndexers2.ts, 94, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 96, 22), Decl(objectTypesIdentityWithStringIndexers2.ts, 97, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 98, 16)) function foo11c(x: B); ->foo11c : { (x: B): any; (x: PB): any; } ->x : B ->B : B +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithStringIndexers2.ts, 98, 27), Decl(objectTypesIdentityWithStringIndexers2.ts, 100, 22), Decl(objectTypesIdentityWithStringIndexers2.ts, 101, 23)) +>x : B, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 100, 16)) +>B : B, Symbol(B, Decl(objectTypesIdentityWithStringIndexers2.ts, 7, 1)) function foo11c(x: PB); // error ->foo11c : { (x: B): any; (x: PB): any; } ->x : PB ->PB : PB +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithStringIndexers2.ts, 98, 27), Decl(objectTypesIdentityWithStringIndexers2.ts, 100, 22), Decl(objectTypesIdentityWithStringIndexers2.ts, 101, 23)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 101, 16)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithStringIndexers2.ts, 22, 1)) function foo11c(x: any) { } ->foo11c : { (x: B): any; (x: PB): any; } ->x : any +>foo11c : { (x: B): any; (x: PB): any; }, Symbol(foo11c, Decl(objectTypesIdentityWithStringIndexers2.ts, 98, 27), Decl(objectTypesIdentityWithStringIndexers2.ts, 100, 22), Decl(objectTypesIdentityWithStringIndexers2.ts, 101, 23)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 102, 16)) function foo12(x: I); ->foo12 : { (x: I): any; (x: C): any; } ->x : I ->I : I +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithStringIndexers2.ts, 102, 27), Decl(objectTypesIdentityWithStringIndexers2.ts, 104, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 105, 30)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 104, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers2.ts, 15, 1)) function foo12(x: C); // error ->foo12 : { (x: I): any; (x: C): any; } ->x : C ->C : C ->Derived : Derived +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithStringIndexers2.ts, 102, 27), Decl(objectTypesIdentityWithStringIndexers2.ts, 104, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 105, 30)) +>x : C, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 105, 15)) +>C : C, Symbol(C, Decl(objectTypesIdentityWithStringIndexers2.ts, 11, 1)) +>Derived : Derived, Symbol(Derived, Decl(objectTypesIdentityWithStringIndexers2.ts, 2, 27)) function foo12(x: any) { } ->foo12 : { (x: I): any; (x: C): any; } ->x : any +>foo12 : { (x: I): any; (x: C): any; }, Symbol(foo12, Decl(objectTypesIdentityWithStringIndexers2.ts, 102, 27), Decl(objectTypesIdentityWithStringIndexers2.ts, 104, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 105, 30)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 106, 15)) function foo13(x: I); ->foo13 : { (x: I): any; (x: { [x: string]: Base; }): any; } ->x : I ->I : I +>foo13 : { (x: I): any; (x: { [x: string]: Base; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithStringIndexers2.ts, 106, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 108, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 109, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 108, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers2.ts, 15, 1)) function foo13(x: typeof a); // ok ->foo13 : { (x: I): any; (x: { [x: string]: Base; }): any; } ->x : { [x: string]: Base; } ->a : { [x: string]: Base; } +>foo13 : { (x: I): any; (x: { [x: string]: Base; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithStringIndexers2.ts, 106, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 108, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 109, 28)) +>x : { [x: string]: Base; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 109, 15)) +>a : { [x: string]: Base; }, Symbol(a, Decl(objectTypesIdentityWithStringIndexers2.ts, 27, 3)) function foo13(x: any) { } ->foo13 : { (x: I): any; (x: { [x: string]: Base; }): any; } ->x : any +>foo13 : { (x: I): any; (x: { [x: string]: Base; }): any; }, Symbol(foo13, Decl(objectTypesIdentityWithStringIndexers2.ts, 106, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 108, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 109, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 110, 15)) function foo14(x: I); ->foo14 : { (x: I): any; (x: { [x: string]: Derived; }): any; } ->x : I ->I : I +>foo14 : { (x: I): any; (x: { [x: string]: Derived; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithStringIndexers2.ts, 110, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 112, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 113, 28)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 112, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers2.ts, 15, 1)) function foo14(x: typeof b); // error ->foo14 : { (x: I): any; (x: { [x: string]: Derived; }): any; } ->x : { [x: string]: Derived; } ->b : { [x: string]: Derived; } +>foo14 : { (x: I): any; (x: { [x: string]: Derived; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithStringIndexers2.ts, 110, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 112, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 113, 28)) +>x : { [x: string]: Derived; }, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 113, 15)) +>b : { [x: string]: Derived; }, Symbol(b, Decl(objectTypesIdentityWithStringIndexers2.ts, 30, 3)) function foo14(x: any) { } ->foo14 : { (x: I): any; (x: { [x: string]: Derived; }): any; } ->x : any +>foo14 : { (x: I): any; (x: { [x: string]: Derived; }): any; }, Symbol(foo14, Decl(objectTypesIdentityWithStringIndexers2.ts, 110, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 112, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 113, 28)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 114, 15)) function foo15(x: I); ->foo15 : { (x: I): any; (x: PA): any; } ->x : I ->I : I +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithStringIndexers2.ts, 114, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 116, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 117, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 116, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers2.ts, 15, 1)) function foo15(x: PA); // ok ->foo15 : { (x: I): any; (x: PA): any; } ->x : PA ->PA : PA +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithStringIndexers2.ts, 114, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 116, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 117, 22)) +>x : PA, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 117, 15)) +>PA : PA, Symbol(PA, Decl(objectTypesIdentityWithStringIndexers2.ts, 19, 1)) function foo15(x: any) { } ->foo15 : { (x: I): any; (x: PA): any; } ->x : any +>foo15 : { (x: I): any; (x: PA): any; }, Symbol(foo15, Decl(objectTypesIdentityWithStringIndexers2.ts, 114, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 116, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 117, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 118, 15)) function foo16(x: I); ->foo16 : { (x: I): any; (x: PB): any; } ->x : I ->I : I +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithStringIndexers2.ts, 118, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 120, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 121, 22)) +>x : I, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 120, 15)) +>I : I, Symbol(I, Decl(objectTypesIdentityWithStringIndexers2.ts, 15, 1)) function foo16(x: PB); // error ->foo16 : { (x: I): any; (x: PB): any; } ->x : PB ->PB : PB +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithStringIndexers2.ts, 118, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 120, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 121, 22)) +>x : PB, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 121, 15)) +>PB : PB, Symbol(PB, Decl(objectTypesIdentityWithStringIndexers2.ts, 22, 1)) function foo16(x: any) { } ->foo16 : { (x: I): any; (x: PB): any; } ->x : any +>foo16 : { (x: I): any; (x: PB): any; }, Symbol(foo16, Decl(objectTypesIdentityWithStringIndexers2.ts, 118, 26), Decl(objectTypesIdentityWithStringIndexers2.ts, 120, 21), Decl(objectTypesIdentityWithStringIndexers2.ts, 121, 22)) +>x : any, Symbol(x, Decl(objectTypesIdentityWithStringIndexers2.ts, 122, 15)) diff --git a/tests/baselines/reference/octalIntegerLiteral.types b/tests/baselines/reference/octalIntegerLiteral.types index 82f72cf625b..0a56d623420 100644 --- a/tests/baselines/reference/octalIntegerLiteral.types +++ b/tests/baselines/reference/octalIntegerLiteral.types @@ -1,121 +1,151 @@ === tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/octalIntegerLiteral.ts === var oct1 = 0o45436; ->oct1 : number +>oct1 : number, Symbol(oct1, Decl(octalIntegerLiteral.ts, 0, 3)) +>0o45436 : number var oct2 = 0O45436; ->oct2 : number +>oct2 : number, Symbol(oct2, Decl(octalIntegerLiteral.ts, 1, 3)) +>0O45436 : number var oct3 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; ->oct3 : number +>oct3 : number, Symbol(oct3, Decl(octalIntegerLiteral.ts, 2, 3)) +>0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777 : number var oct4 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; ->oct4 : number +>oct4 : number, Symbol(oct4, Decl(octalIntegerLiteral.ts, 3, 3)) +>0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777 : number var obj1 = { ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) >{ 0o45436: "Hello", a: 0o45436, b: oct1, oct1, 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: true} : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } 0o45436: "Hello", +>"Hello" : string + a: 0o45436, ->a : number +>a : number, Symbol(a, Decl(octalIntegerLiteral.ts, 6, 21)) +>0o45436 : number b: oct1, ->b : number ->oct1 : number +>b : number, Symbol(b, Decl(octalIntegerLiteral.ts, 7, 15)) +>oct1 : number, Symbol(oct1, Decl(octalIntegerLiteral.ts, 0, 3)) oct1, ->oct1 : number +>oct1 : number, Symbol(oct1, Decl(octalIntegerLiteral.ts, 8, 12)) 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: true +>true : boolean } var obj2 = { ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) >{ 0O45436: "hi", a: 0O45436, b: oct2, oct2, 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: false,} : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } 0O45436: "hi", +>"hi" : string + a: 0O45436, ->a : number +>a : number, Symbol(a, Decl(octalIntegerLiteral.ts, 14, 18)) +>0O45436 : number b: oct2, ->b : number ->oct2 : number +>b : number, Symbol(b, Decl(octalIntegerLiteral.ts, 15, 15)) +>oct2 : number, Symbol(oct2, Decl(octalIntegerLiteral.ts, 1, 3)) oct2, ->oct2 : number +>oct2 : number, Symbol(oct2, Decl(octalIntegerLiteral.ts, 16, 12)) 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: false, +>false : boolean } obj1[0o45436]; // string >obj1[0o45436] : string ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>0o45436 : number, Symbol(0o45436, Decl(octalIntegerLiteral.ts, 5, 12)) obj1["0o45436"]; // any >obj1["0o45436"] : any ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>"0o45436" : string obj1["19230"]; // string >obj1["19230"] : string ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>"19230" : string, Symbol(0o45436, Decl(octalIntegerLiteral.ts, 5, 12)) obj1[19230]; // string >obj1[19230] : string ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>19230 : number, Symbol(0o45436, Decl(octalIntegerLiteral.ts, 5, 12)) obj1["a"]; // number >obj1["a"] : number ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>"a" : string, Symbol(a, Decl(octalIntegerLiteral.ts, 6, 21)) obj1["b"]; // number >obj1["b"] : number ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>"b" : string, Symbol(b, Decl(octalIntegerLiteral.ts, 7, 15)) obj1["oct1"]; // number >obj1["oct1"] : number ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>"oct1" : string, Symbol(oct1, Decl(octalIntegerLiteral.ts, 8, 12)) obj1["Infinity"]; // boolean >obj1["Infinity"] : boolean ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteral.ts, 5, 3)) +>"Infinity" : string, Symbol(0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777, Decl(octalIntegerLiteral.ts, 9, 9)) obj2[0O45436]; // string >obj2[0O45436] : string ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>0O45436 : number, Symbol(0O45436, Decl(octalIntegerLiteral.ts, 13, 12)) obj2["0O45436"]; // any >obj2["0O45436"] : any ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>"0O45436" : string obj2["19230"]; // string >obj2["19230"] : string ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>"19230" : string, Symbol(0O45436, Decl(octalIntegerLiteral.ts, 13, 12)) obj2[19230]; // string >obj2[19230] : string ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>19230 : number, Symbol(0O45436, Decl(octalIntegerLiteral.ts, 13, 12)) obj2["a"]; // number >obj2["a"] : number ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>"a" : string, Symbol(a, Decl(octalIntegerLiteral.ts, 14, 18)) obj2["b"]; // number >obj2["b"] : number ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>"b" : string, Symbol(b, Decl(octalIntegerLiteral.ts, 15, 15)) obj2["oct2"]; // number >obj2["oct2"] : number ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>"oct2" : string, Symbol(oct2, Decl(octalIntegerLiteral.ts, 16, 12)) obj2[5.462437423415177e+244]; // boolean >obj2[5.462437423415177e+244] : boolean ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>5.462437423415177e+244 : number, Symbol(0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777, Decl(octalIntegerLiteral.ts, 17, 9)) obj2["5.462437423415177e+244"]; // boolean >obj2["5.462437423415177e+244"] : boolean ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>"5.462437423415177e+244" : string, Symbol(0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777, Decl(octalIntegerLiteral.ts, 17, 9)) obj2["Infinity"]; // any >obj2["Infinity"] : any ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteral.ts, 13, 3)) +>"Infinity" : string diff --git a/tests/baselines/reference/octalIntegerLiteralES6.types b/tests/baselines/reference/octalIntegerLiteralES6.types index e0a64f160c3..faf77f9c6be 100644 --- a/tests/baselines/reference/octalIntegerLiteralES6.types +++ b/tests/baselines/reference/octalIntegerLiteralES6.types @@ -1,121 +1,151 @@ === tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/octalIntegerLiteralES6.ts === var oct1 = 0o45436; ->oct1 : number +>oct1 : number, Symbol(oct1, Decl(octalIntegerLiteralES6.ts, 0, 3)) +>0o45436 : number var oct2 = 0O45436; ->oct2 : number +>oct2 : number, Symbol(oct2, Decl(octalIntegerLiteralES6.ts, 1, 3)) +>0O45436 : number var oct3 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; ->oct3 : number +>oct3 : number, Symbol(oct3, Decl(octalIntegerLiteralES6.ts, 2, 3)) +>0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777 : number var oct4 = 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777; ->oct4 : number +>oct4 : number, Symbol(oct4, Decl(octalIntegerLiteralES6.ts, 3, 3)) +>0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777 : number var obj1 = { ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteralES6.ts, 5, 3)) >{ 0o45436: "Hello", a: 0o45436, b: oct1, oct1, 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: true} : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } 0o45436: "Hello", +>"Hello" : string + a: 0o45436, ->a : number +>a : number, Symbol(a, Decl(octalIntegerLiteralES6.ts, 6, 21)) +>0o45436 : number b: oct1, ->b : number ->oct1 : number +>b : number, Symbol(b, Decl(octalIntegerLiteralES6.ts, 7, 15)) +>oct1 : number, Symbol(oct1, Decl(octalIntegerLiteralES6.ts, 0, 3)) oct1, ->oct1 : number +>oct1 : number, Symbol(oct1, Decl(octalIntegerLiteralES6.ts, 8, 12)) 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: true +>true : boolean } var obj2 = { ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3)) >{ 0O45436: "hi", a: 0O45436, b: oct2, oct2, 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: false,} : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } 0O45436: "hi", +>"hi" : string + a: 0O45436, ->a : number +>a : number, Symbol(a, Decl(octalIntegerLiteralES6.ts, 14, 18)) +>0O45436 : number b: oct2, ->b : number ->oct2 : number +>b : number, Symbol(b, Decl(octalIntegerLiteralES6.ts, 15, 15)) +>oct2 : number, Symbol(oct2, Decl(octalIntegerLiteralES6.ts, 1, 3)) oct2, ->oct2 : number +>oct2 : number, Symbol(oct2, Decl(octalIntegerLiteralES6.ts, 16, 12)) 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: false, +>false : boolean } obj1[0o45436]; // string >obj1[0o45436] : string ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteralES6.ts, 5, 3)) +>0o45436 : number, Symbol(0o45436, Decl(octalIntegerLiteralES6.ts, 5, 12)) obj1["0o45436"]; // any >obj1["0o45436"] : any ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteralES6.ts, 5, 3)) +>"0o45436" : string obj1["19230"]; // string >obj1["19230"] : string ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteralES6.ts, 5, 3)) +>"19230" : string, Symbol(0o45436, Decl(octalIntegerLiteralES6.ts, 5, 12)) obj1[19230]; // string >obj1[19230] : string ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteralES6.ts, 5, 3)) +>19230 : number, Symbol(0o45436, Decl(octalIntegerLiteralES6.ts, 5, 12)) obj1["a"]; // number >obj1["a"] : number ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteralES6.ts, 5, 3)) +>"a" : string, Symbol(a, Decl(octalIntegerLiteralES6.ts, 6, 21)) obj1["b"]; // number >obj1["b"] : number ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteralES6.ts, 5, 3)) +>"b" : string, Symbol(b, Decl(octalIntegerLiteralES6.ts, 7, 15)) obj1["oct1"]; // number >obj1["oct1"] : number ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteralES6.ts, 5, 3)) +>"oct1" : string, Symbol(oct1, Decl(octalIntegerLiteralES6.ts, 8, 12)) obj1["Infinity"]; // boolean >obj1["Infinity"] : boolean ->obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj1 : { 0o45436: string; a: number; b: number; oct1: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj1, Decl(octalIntegerLiteralES6.ts, 5, 3)) +>"Infinity" : string, Symbol(0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777, Decl(octalIntegerLiteralES6.ts, 9, 9)) obj2[0O45436]; // string >obj2[0O45436] : string ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3)) +>0O45436 : number, Symbol(0O45436, Decl(octalIntegerLiteralES6.ts, 13, 12)) obj2["0O45436"]; // any >obj2["0O45436"] : any ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3)) +>"0O45436" : string obj2["19230"]; // string >obj2["19230"] : string ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3)) +>"19230" : string, Symbol(0O45436, Decl(octalIntegerLiteralES6.ts, 13, 12)) obj2[19230]; // string >obj2[19230] : string ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3)) +>19230 : number, Symbol(0O45436, Decl(octalIntegerLiteralES6.ts, 13, 12)) obj2["a"]; // number >obj2["a"] : number ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3)) +>"a" : string, Symbol(a, Decl(octalIntegerLiteralES6.ts, 14, 18)) obj2["b"]; // number >obj2["b"] : number ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3)) +>"b" : string, Symbol(b, Decl(octalIntegerLiteralES6.ts, 15, 15)) obj2["oct2"]; // number >obj2["oct2"] : number ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3)) +>"oct2" : string, Symbol(oct2, Decl(octalIntegerLiteralES6.ts, 16, 12)) obj2[5.462437423415177e+244]; // boolean >obj2[5.462437423415177e+244] : boolean ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3)) +>5.462437423415177e+244 : number, Symbol(0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777, Decl(octalIntegerLiteralES6.ts, 17, 9)) obj2["5.462437423415177e+244"]; // boolean >obj2["5.462437423415177e+244"] : boolean ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3)) +>"5.462437423415177e+244" : string, Symbol(0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777, Decl(octalIntegerLiteralES6.ts, 17, 9)) obj2["Infinity"]; // any >obj2["Infinity"] : any ->obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; } +>obj2 : { 0O45436: string; a: number; b: number; oct2: number; 0o7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777: boolean; }, Symbol(obj2, Decl(octalIntegerLiteralES6.ts, 13, 3)) +>"Infinity" : string diff --git a/tests/baselines/reference/optionalAccessorsInInterface1.types b/tests/baselines/reference/optionalAccessorsInInterface1.types index c426cdba178..c2190324a0a 100644 --- a/tests/baselines/reference/optionalAccessorsInInterface1.types +++ b/tests/baselines/reference/optionalAccessorsInInterface1.types @@ -1,53 +1,57 @@ === tests/cases/compiler/optionalAccessorsInInterface1.ts === interface MyPropertyDescriptor { ->MyPropertyDescriptor : MyPropertyDescriptor +>MyPropertyDescriptor : MyPropertyDescriptor, Symbol(MyPropertyDescriptor, Decl(optionalAccessorsInInterface1.ts, 0, 0)) get? (): any; ->get : () => any +>get : () => any, Symbol(get, Decl(optionalAccessorsInInterface1.ts, 0, 32)) set? (v: any): void; ->set : (v: any) => void ->v : any +>set : (v: any) => void, Symbol(set, Decl(optionalAccessorsInInterface1.ts, 1, 17)) +>v : any, Symbol(v, Decl(optionalAccessorsInInterface1.ts, 2, 10)) } declare function defineMyProperty(o: any, p: string, attributes: MyPropertyDescriptor): any; ->defineMyProperty : (o: any, p: string, attributes: MyPropertyDescriptor) => any ->o : any ->p : string ->attributes : MyPropertyDescriptor ->MyPropertyDescriptor : MyPropertyDescriptor +>defineMyProperty : (o: any, p: string, attributes: MyPropertyDescriptor) => any, Symbol(defineMyProperty, Decl(optionalAccessorsInInterface1.ts, 3, 1)) +>o : any, Symbol(o, Decl(optionalAccessorsInInterface1.ts, 5, 34)) +>p : string, Symbol(p, Decl(optionalAccessorsInInterface1.ts, 5, 41)) +>attributes : MyPropertyDescriptor, Symbol(attributes, Decl(optionalAccessorsInInterface1.ts, 5, 52)) +>MyPropertyDescriptor : MyPropertyDescriptor, Symbol(MyPropertyDescriptor, Decl(optionalAccessorsInInterface1.ts, 0, 0)) defineMyProperty({}, "name", { get: function () { return 5; } }); >defineMyProperty({}, "name", { get: function () { return 5; } }) : any ->defineMyProperty : (o: any, p: string, attributes: MyPropertyDescriptor) => any +>defineMyProperty : (o: any, p: string, attributes: MyPropertyDescriptor) => any, Symbol(defineMyProperty, Decl(optionalAccessorsInInterface1.ts, 3, 1)) >{} : {} +>"name" : string >{ get: function () { return 5; } } : { get: () => number; } ->get : () => number +>get : () => number, Symbol(get, Decl(optionalAccessorsInInterface1.ts, 6, 30)) >function () { return 5; } : () => number +>5 : number interface MyPropertyDescriptor2 { ->MyPropertyDescriptor2 : MyPropertyDescriptor2 +>MyPropertyDescriptor2 : MyPropertyDescriptor2, Symbol(MyPropertyDescriptor2, Decl(optionalAccessorsInInterface1.ts, 6, 65)) get?: () => any; ->get : () => any +>get : () => any, Symbol(get, Decl(optionalAccessorsInInterface1.ts, 8, 33)) set?: (v: any) => void; ->set : (v: any) => void ->v : any +>set : (v: any) => void, Symbol(set, Decl(optionalAccessorsInInterface1.ts, 9, 20)) +>v : any, Symbol(v, Decl(optionalAccessorsInInterface1.ts, 10, 11)) } declare function defineMyProperty2(o: any, p: string, attributes: MyPropertyDescriptor2): any; ->defineMyProperty2 : (o: any, p: string, attributes: MyPropertyDescriptor2) => any ->o : any ->p : string ->attributes : MyPropertyDescriptor2 ->MyPropertyDescriptor2 : MyPropertyDescriptor2 +>defineMyProperty2 : (o: any, p: string, attributes: MyPropertyDescriptor2) => any, Symbol(defineMyProperty2, Decl(optionalAccessorsInInterface1.ts, 11, 1)) +>o : any, Symbol(o, Decl(optionalAccessorsInInterface1.ts, 13, 35)) +>p : string, Symbol(p, Decl(optionalAccessorsInInterface1.ts, 13, 42)) +>attributes : MyPropertyDescriptor2, Symbol(attributes, Decl(optionalAccessorsInInterface1.ts, 13, 53)) +>MyPropertyDescriptor2 : MyPropertyDescriptor2, Symbol(MyPropertyDescriptor2, Decl(optionalAccessorsInInterface1.ts, 6, 65)) defineMyProperty2({}, "name", { get: function () { return 5; } }); >defineMyProperty2({}, "name", { get: function () { return 5; } }) : any ->defineMyProperty2 : (o: any, p: string, attributes: MyPropertyDescriptor2) => any +>defineMyProperty2 : (o: any, p: string, attributes: MyPropertyDescriptor2) => any, Symbol(defineMyProperty2, Decl(optionalAccessorsInInterface1.ts, 11, 1)) >{} : {} +>"name" : string >{ get: function () { return 5; } } : { get: () => number; } ->get : () => number +>get : () => number, Symbol(get, Decl(optionalAccessorsInInterface1.ts, 14, 31)) >function () { return 5; } : () => number +>5 : number diff --git a/tests/baselines/reference/optionalConstructorArgInSuper.types b/tests/baselines/reference/optionalConstructorArgInSuper.types index 26d4fcb9abb..580299ba285 100644 --- a/tests/baselines/reference/optionalConstructorArgInSuper.types +++ b/tests/baselines/reference/optionalConstructorArgInSuper.types @@ -1,30 +1,30 @@ === tests/cases/compiler/optionalConstructorArgInSuper.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(optionalConstructorArgInSuper.ts, 0, 0)) constructor(opt?) { } ->opt : any +>opt : any, Symbol(opt, Decl(optionalConstructorArgInSuper.ts, 1, 16)) foo(other?) { } ->foo : (other?: any) => void ->other : any +>foo : (other?: any) => void, Symbol(foo, Decl(optionalConstructorArgInSuper.ts, 1, 25)) +>other : any, Symbol(other, Decl(optionalConstructorArgInSuper.ts, 2, 8)) } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(optionalConstructorArgInSuper.ts, 3, 1)) +>Base : Base, Symbol(Base, Decl(optionalConstructorArgInSuper.ts, 0, 0)) } var d = new Derived(); // bug caused an error here, couldn't select overload ->d : Derived +>d : Derived, Symbol(d, Decl(optionalConstructorArgInSuper.ts, 6, 3)) >new Derived() : Derived ->Derived : typeof Derived +>Derived : typeof Derived, Symbol(Derived, Decl(optionalConstructorArgInSuper.ts, 3, 1)) var d2: Derived; ->d2 : Derived ->Derived : Derived +>d2 : Derived, Symbol(d2, Decl(optionalConstructorArgInSuper.ts, 7, 3)) +>Derived : Derived, Symbol(Derived, Decl(optionalConstructorArgInSuper.ts, 3, 1)) d2.foo(); >d2.foo() : void ->d2.foo : (other?: any) => void ->d2 : Derived ->foo : (other?: any) => void +>d2.foo : (other?: any) => void, Symbol(Base.foo, Decl(optionalConstructorArgInSuper.ts, 1, 25)) +>d2 : Derived, Symbol(d2, Decl(optionalConstructorArgInSuper.ts, 7, 3)) +>foo : (other?: any) => void, Symbol(Base.foo, Decl(optionalConstructorArgInSuper.ts, 1, 25)) diff --git a/tests/baselines/reference/optionalParamInOverride.types b/tests/baselines/reference/optionalParamInOverride.types index f4530dace61..baa0d6def98 100644 --- a/tests/baselines/reference/optionalParamInOverride.types +++ b/tests/baselines/reference/optionalParamInOverride.types @@ -1,16 +1,16 @@ === tests/cases/compiler/optionalParamInOverride.ts === class Z { ->Z : Z +>Z : Z, Symbol(Z, Decl(optionalParamInOverride.ts, 0, 0)) public func(): void { } ->func : () => void +>func : () => void, Symbol(func, Decl(optionalParamInOverride.ts, 0, 9)) } class Y extends Z { ->Y : Y ->Z : Z +>Y : Y, Symbol(Y, Decl(optionalParamInOverride.ts, 2, 1)) +>Z : Z, Symbol(Z, Decl(optionalParamInOverride.ts, 0, 0)) public func(value?: any): void { } ->func : (value?: any) => void ->value : any +>func : (value?: any) => void, Symbol(func, Decl(optionalParamInOverride.ts, 3, 19)) +>value : any, Symbol(value, Decl(optionalParamInOverride.ts, 4, 16)) } diff --git a/tests/baselines/reference/optionalParamReferencingOtherParams1.types b/tests/baselines/reference/optionalParamReferencingOtherParams1.types index 3a62d51759c..4e14e069999 100644 --- a/tests/baselines/reference/optionalParamReferencingOtherParams1.types +++ b/tests/baselines/reference/optionalParamReferencingOtherParams1.types @@ -1,15 +1,16 @@ === tests/cases/compiler/optionalParamReferencingOtherParams1.ts === function strange(x: number, y = x * 1, z = x + y) { ->strange : (x: number, y?: number, z?: number) => number ->x : number ->y : number +>strange : (x: number, y?: number, z?: number) => number, Symbol(strange, Decl(optionalParamReferencingOtherParams1.ts, 0, 0)) +>x : number, Symbol(x, Decl(optionalParamReferencingOtherParams1.ts, 0, 17)) +>y : number, Symbol(y, Decl(optionalParamReferencingOtherParams1.ts, 0, 27)) >x * 1 : number ->x : number ->z : number +>x : number, Symbol(x, Decl(optionalParamReferencingOtherParams1.ts, 0, 17)) +>1 : number +>z : number, Symbol(z, Decl(optionalParamReferencingOtherParams1.ts, 0, 38)) >x + y : number ->x : number ->y : number +>x : number, Symbol(x, Decl(optionalParamReferencingOtherParams1.ts, 0, 17)) +>y : number, Symbol(y, Decl(optionalParamReferencingOtherParams1.ts, 0, 27)) return z; ->z : number +>z : number, Symbol(z, Decl(optionalParamReferencingOtherParams1.ts, 0, 38)) } diff --git a/tests/baselines/reference/out-flag.types b/tests/baselines/reference/out-flag.types index ac1b38b4e2e..5de55c7eee1 100644 --- a/tests/baselines/reference/out-flag.types +++ b/tests/baselines/reference/out-flag.types @@ -3,18 +3,19 @@ // my class comments class MyClass ->MyClass : MyClass +>MyClass : MyClass, Symbol(MyClass, Decl(out-flag.ts, 0, 0)) { // my function comments public Count(): number ->Count : () => number +>Count : () => number, Symbol(Count, Decl(out-flag.ts, 4, 1)) { return 42; +>42 : number } public SetCount(value: number) ->SetCount : (value: number) => void ->value : number +>SetCount : (value: number) => void, Symbol(SetCount, Decl(out-flag.ts, 9, 5)) +>value : number, Symbol(value, Decl(out-flag.ts, 11, 20)) { // } diff --git a/tests/baselines/reference/overload2.types b/tests/baselines/reference/overload2.types index 05a9533b2d2..b6faf198eba 100644 --- a/tests/baselines/reference/overload2.types +++ b/tests/baselines/reference/overload2.types @@ -1,42 +1,42 @@ === tests/cases/compiler/overload2.ts === enum A { } ->A : A +>A : A, Symbol(A, Decl(overload2.ts, 0, 0)) enum B { } ->B : B +>B : B, Symbol(B, Decl(overload2.ts, 0, 10)) function foo(a: A); ->foo : { (a: A): any; (b: B): any; } ->a : A ->A : A +>foo : { (a: A): any; (b: B): any; }, Symbol(foo, Decl(overload2.ts, 1, 10), Decl(overload2.ts, 3, 19), Decl(overload2.ts, 4, 19)) +>a : A, Symbol(a, Decl(overload2.ts, 3, 13)) +>A : A, Symbol(A, Decl(overload2.ts, 0, 0)) function foo(b: B); ->foo : { (a: A): any; (b: B): any; } ->b : B ->B : B +>foo : { (a: A): any; (b: B): any; }, Symbol(foo, Decl(overload2.ts, 1, 10), Decl(overload2.ts, 3, 19), Decl(overload2.ts, 4, 19)) +>b : B, Symbol(b, Decl(overload2.ts, 4, 13)) +>B : B, Symbol(B, Decl(overload2.ts, 0, 10)) // should be ok function foo(x: number) { ->foo : { (a: A): any; (b: B): any; } ->x : number +>foo : { (a: A): any; (b: B): any; }, Symbol(foo, Decl(overload2.ts, 1, 10), Decl(overload2.ts, 3, 19), Decl(overload2.ts, 4, 19)) +>x : number, Symbol(x, Decl(overload2.ts, 6, 13)) } class C { } ->C : C +>C : C, Symbol(C, Decl(overload2.ts, 7, 1)) function foo1(a: A); ->foo1 : { (a: A): any; (c: C): any; } ->a : A ->A : A +>foo1 : { (a: A): any; (c: C): any; }, Symbol(foo1, Decl(overload2.ts, 9, 11), Decl(overload2.ts, 10, 20), Decl(overload2.ts, 11, 20)) +>a : A, Symbol(a, Decl(overload2.ts, 10, 14)) +>A : A, Symbol(A, Decl(overload2.ts, 0, 0)) function foo1(c: C); ->foo1 : { (a: A): any; (c: C): any; } ->c : C ->C : C +>foo1 : { (a: A): any; (c: C): any; }, Symbol(foo1, Decl(overload2.ts, 9, 11), Decl(overload2.ts, 10, 20), Decl(overload2.ts, 11, 20)) +>c : C, Symbol(c, Decl(overload2.ts, 11, 14)) +>C : C, Symbol(C, Decl(overload2.ts, 7, 1)) // should be ok function foo1(x: number) { ->foo1 : { (a: A): any; (c: C): any; } ->x : number +>foo1 : { (a: A): any; (c: C): any; }, Symbol(foo1, Decl(overload2.ts, 9, 11), Decl(overload2.ts, 10, 20), Decl(overload2.ts, 11, 20)) +>x : number, Symbol(x, Decl(overload2.ts, 13, 14)) } diff --git a/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries.types b/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries.types index 311cf971b61..bafe70e1731 100644 --- a/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries.types +++ b/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries.types @@ -1,121 +1,121 @@ === tests/cases/compiler/overloadBindingAcrossDeclarationBoundaries.ts === interface Opt1 { ->Opt1 : Opt1 +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 0, 0)) p?: any; ->p : any +>p : any, Symbol(p, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 0, 16)) } interface Opt2 { ->Opt2 : Opt2 +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 2, 1)) q?: any; ->q : any +>q : any, Symbol(q, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 3, 16)) } interface Opt3 { ->Opt3 : Opt3 +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 5, 1)) r?: any; ->r : any +>r : any, Symbol(r, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 6, 16)) } interface Opt4 { ->Opt4 : Opt4 +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 8, 1)) s?: any; ->s : any +>s : any, Symbol(s, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 9, 16)) } interface A { ->A : A +>A : A, Symbol(A, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 11, 1), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 19, 1)) a(o: Opt1): Opt1; ->a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; } ->o : Opt1 ->Opt1 : Opt1 ->Opt1 : Opt1 +>a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; }, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 12, 13), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 13, 21), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 20, 13), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 21, 21)) +>o : Opt1, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 13, 6)) +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 0, 0)) +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 0, 0)) a(o: Opt2): Opt2; ->a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; } ->o : Opt2 ->Opt2 : Opt2 ->Opt2 : Opt2 +>a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; }, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 12, 13), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 13, 21), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 20, 13), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 21, 21)) +>o : Opt2, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 14, 6)) +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 2, 1)) +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 2, 1)) (o: Opt1): Opt1; ->o : Opt1 ->Opt1 : Opt1 ->Opt1 : Opt1 +>o : Opt1, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 15, 5)) +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 0, 0)) +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 0, 0)) (o: Opt2): Opt2; ->o : Opt2 ->Opt2 : Opt2 ->Opt2 : Opt2 +>o : Opt2, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 16, 5)) +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 2, 1)) +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 2, 1)) new (o: Opt1): Opt1; ->o : Opt1 ->Opt1 : Opt1 ->Opt1 : Opt1 +>o : Opt1, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 17, 9)) +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 0, 0)) +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 0, 0)) new (o: Opt2): Opt2; ->o : Opt2 ->Opt2 : Opt2 ->Opt2 : Opt2 +>o : Opt2, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 18, 9)) +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 2, 1)) +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 2, 1)) } interface A { ->A : A +>A : A, Symbol(A, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 11, 1), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 19, 1)) a(o: Opt3): Opt3; ->a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; } ->o : Opt3 ->Opt3 : Opt3 ->Opt3 : Opt3 +>a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; }, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 12, 13), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 13, 21), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 20, 13), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 21, 21)) +>o : Opt3, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 21, 6)) +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 5, 1)) +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 5, 1)) a(o: Opt4): Opt4; ->a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; } ->o : Opt4 ->Opt4 : Opt4 ->Opt4 : Opt4 +>a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; }, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 12, 13), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 13, 21), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 20, 13), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 21, 21)) +>o : Opt4, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 22, 6)) +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 8, 1)) +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 8, 1)) (o: Opt3): Opt3; ->o : Opt3 ->Opt3 : Opt3 ->Opt3 : Opt3 +>o : Opt3, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 23, 5)) +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 5, 1)) +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 5, 1)) (o: Opt4): Opt4; ->o : Opt4 ->Opt4 : Opt4 ->Opt4 : Opt4 +>o : Opt4, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 24, 5)) +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 8, 1)) +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 8, 1)) new (o: Opt3): Opt3; ->o : Opt3 ->Opt3 : Opt3 ->Opt3 : Opt3 +>o : Opt3, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 25, 9)) +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 5, 1)) +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 5, 1)) new (o: Opt4): Opt4; ->o : Opt4 ->Opt4 : Opt4 ->Opt4 : Opt4 +>o : Opt4, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 26, 9)) +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 8, 1)) +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 8, 1)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 29, 3)) +>A : A, Symbol(A, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 11, 1), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 19, 1)) // These should all be Opt3 var a1 = a.a({}); ->a1 : Opt3 +>a1 : Opt3, Symbol(a1, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 31, 3), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 32, 3), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 33, 3)) >a.a({}) : Opt3 ->a.a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; } ->a : A ->a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; } +>a.a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; }, Symbol(A.a, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 12, 13), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 13, 21), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 20, 13), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 21, 21)) +>a : A, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 29, 3)) +>a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; }, Symbol(A.a, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 12, 13), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 13, 21), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 20, 13), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 21, 21)) >{} : {} var a1 = a({}); ->a1 : Opt3 +>a1 : Opt3, Symbol(a1, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 31, 3), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 32, 3), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 33, 3)) >a({}) : Opt3 ->a : A +>a : A, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 29, 3)) >{} : {} var a1 = new a({}); ->a1 : Opt3 +>a1 : Opt3, Symbol(a1, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 31, 3), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 32, 3), Decl(overloadBindingAcrossDeclarationBoundaries.ts, 33, 3)) >new a({}) : Opt3 ->a : A +>a : A, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries.ts, 29, 3)) >{} : {} diff --git a/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries2.types b/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries2.types index e67ff2f8de6..6ec3486d03b 100644 --- a/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries2.types +++ b/tests/baselines/reference/overloadBindingAcrossDeclarationBoundaries2.types @@ -1,124 +1,124 @@ === tests/cases/compiler/overloadBindingAcrossDeclarationBoundaries_file0.ts === interface Opt1 { ->Opt1 : Opt1 +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 0, 0)) p?: any; ->p : any +>p : any, Symbol(p, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 0, 16)) } interface Opt2 { ->Opt2 : Opt2 +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 2, 1)) q?: any; ->q : any +>q : any, Symbol(q, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 3, 16)) } interface Opt3 { ->Opt3 : Opt3 +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 5, 1)) r?: any; ->r : any +>r : any, Symbol(r, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 6, 16)) } interface Opt4 { ->Opt4 : Opt4 +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 8, 1)) s?: any; ->s : any +>s : any, Symbol(s, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 9, 16)) } interface A { ->A : A +>A : A, Symbol(A, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 11, 1), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 0, 0)) a(o: Opt1): Opt1; ->a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; } ->o : Opt1 ->Opt1 : Opt1 ->Opt1 : Opt1 +>a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; }, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 13, 13), Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 14, 21), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 0, 13), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 1, 21)) +>o : Opt1, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 14, 6)) +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 0, 0)) +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 0, 0)) a(o: Opt2): Opt2; ->a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; } ->o : Opt2 ->Opt2 : Opt2 ->Opt2 : Opt2 +>a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; }, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 13, 13), Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 14, 21), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 0, 13), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 1, 21)) +>o : Opt2, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 15, 6)) +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 2, 1)) +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 2, 1)) (o: Opt1): Opt1; ->o : Opt1 ->Opt1 : Opt1 ->Opt1 : Opt1 +>o : Opt1, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 16, 5)) +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 0, 0)) +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 0, 0)) (o: Opt2): Opt2; ->o : Opt2 ->Opt2 : Opt2 ->Opt2 : Opt2 +>o : Opt2, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 17, 5)) +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 2, 1)) +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 2, 1)) new (o: Opt1): Opt1; ->o : Opt1 ->Opt1 : Opt1 ->Opt1 : Opt1 +>o : Opt1, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 18, 9)) +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 0, 0)) +>Opt1 : Opt1, Symbol(Opt1, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 0, 0)) new (o: Opt2): Opt2; ->o : Opt2 ->Opt2 : Opt2 ->Opt2 : Opt2 +>o : Opt2, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 19, 9)) +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 2, 1)) +>Opt2 : Opt2, Symbol(Opt2, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 2, 1)) } === tests/cases/compiler/overloadBindingAcrossDeclarationBoundaries_file1.ts === interface A { ->A : A +>A : A, Symbol(A, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 11, 1), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 0, 0)) a(o: Opt3): Opt3; ->a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; } ->o : Opt3 ->Opt3 : Opt3 ->Opt3 : Opt3 +>a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; }, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 13, 13), Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 14, 21), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 0, 13), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 1, 21)) +>o : Opt3, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 1, 6)) +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 5, 1)) +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 5, 1)) a(o: Opt4): Opt4; ->a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; } ->o : Opt4 ->Opt4 : Opt4 ->Opt4 : Opt4 +>a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; }, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 13, 13), Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 14, 21), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 0, 13), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 1, 21)) +>o : Opt4, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 2, 6)) +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 8, 1)) +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 8, 1)) (o: Opt3): Opt3; ->o : Opt3 ->Opt3 : Opt3 ->Opt3 : Opt3 +>o : Opt3, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 3, 5)) +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 5, 1)) +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 5, 1)) (o: Opt4): Opt4; ->o : Opt4 ->Opt4 : Opt4 ->Opt4 : Opt4 +>o : Opt4, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 4, 5)) +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 8, 1)) +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 8, 1)) new (o: Opt3): Opt3; ->o : Opt3 ->Opt3 : Opt3 ->Opt3 : Opt3 +>o : Opt3, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 5, 9)) +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 5, 1)) +>Opt3 : Opt3, Symbol(Opt3, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 5, 1)) new (o: Opt4): Opt4; ->o : Opt4 ->Opt4 : Opt4 ->Opt4 : Opt4 +>o : Opt4, Symbol(o, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 6, 9)) +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 8, 1)) +>Opt4 : Opt4, Symbol(Opt4, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 8, 1)) } var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 9, 3)) +>A : A, Symbol(A, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 11, 1), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 0, 0)) // These should all be Opt3 var a1 = a.a({}); ->a1 : Opt3 +>a1 : Opt3, Symbol(a1, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 11, 3), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 12, 3), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 13, 3)) >a.a({}) : Opt3 ->a.a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; } ->a : A ->a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; } +>a.a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; }, Symbol(A.a, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 13, 13), Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 14, 21), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 0, 13), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 1, 21)) +>a : A, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 9, 3)) +>a : { (o: Opt1): Opt1; (o: Opt2): Opt2; (o: Opt3): Opt3; (o: Opt4): Opt4; }, Symbol(A.a, Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 13, 13), Decl(overloadBindingAcrossDeclarationBoundaries_file0.ts, 14, 21), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 0, 13), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 1, 21)) >{} : {} var a1 = a({}); ->a1 : Opt3 +>a1 : Opt3, Symbol(a1, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 11, 3), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 12, 3), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 13, 3)) >a({}) : Opt3 ->a : A +>a : A, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 9, 3)) >{} : {} var a1 = new a({}); ->a1 : Opt3 +>a1 : Opt3, Symbol(a1, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 11, 3), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 12, 3), Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 13, 3)) >new a({}) : Opt3 ->a : A +>a : A, Symbol(a, Decl(overloadBindingAcrossDeclarationBoundaries_file1.ts, 9, 3)) >{} : {} diff --git a/tests/baselines/reference/overloadCallTest.types b/tests/baselines/reference/overloadCallTest.types index 0ed7ecccdbc..0a58a3c4fb3 100644 --- a/tests/baselines/reference/overloadCallTest.types +++ b/tests/baselines/reference/overloadCallTest.types @@ -1,34 +1,37 @@ === tests/cases/compiler/overloadCallTest.ts === class foo { ->foo : foo +>foo : foo, Symbol(foo, Decl(overloadCallTest.ts, 0, 0)) constructor() { function bar(): string; ->bar : { (): string; (s: string): any; } +>bar : { (): string; (s: string): any; }, Symbol(bar, Decl(overloadCallTest.ts, 1, 19), Decl(overloadCallTest.ts, 2, 31), Decl(overloadCallTest.ts, 3, 31)) function bar(s:string); ->bar : { (): string; (s: string): any; } ->s : string +>bar : { (): string; (s: string): any; }, Symbol(bar, Decl(overloadCallTest.ts, 1, 19), Decl(overloadCallTest.ts, 2, 31), Decl(overloadCallTest.ts, 3, 31)) +>s : string, Symbol(s, Decl(overloadCallTest.ts, 3, 21)) function bar(foo?: string) { return "foo" }; ->bar : { (): string; (s: string): any; } ->foo : string +>bar : { (): string; (s: string): any; }, Symbol(bar, Decl(overloadCallTest.ts, 1, 19), Decl(overloadCallTest.ts, 2, 31), Decl(overloadCallTest.ts, 3, 31)) +>foo : string, Symbol(foo, Decl(overloadCallTest.ts, 4, 21)) +>"foo" : string var test = bar("test"); ->test : any +>test : any, Symbol(test, Decl(overloadCallTest.ts, 6, 11)) >bar("test") : any ->bar : { (): string; (s: string): any; } +>bar : { (): string; (s: string): any; }, Symbol(bar, Decl(overloadCallTest.ts, 1, 19), Decl(overloadCallTest.ts, 2, 31), Decl(overloadCallTest.ts, 3, 31)) +>"test" : string var goo = bar(); ->goo : string +>goo : string, Symbol(goo, Decl(overloadCallTest.ts, 7, 11)) >bar() : string ->bar : { (): string; (s: string): any; } +>bar : { (): string; (s: string): any; }, Symbol(bar, Decl(overloadCallTest.ts, 1, 19), Decl(overloadCallTest.ts, 2, 31), Decl(overloadCallTest.ts, 3, 31)) goo = bar("test"); >goo = bar("test") : any ->goo : string +>goo : string, Symbol(goo, Decl(overloadCallTest.ts, 7, 11)) >bar("test") : any ->bar : { (): string; (s: string): any; } +>bar : { (): string; (s: string): any; }, Symbol(bar, Decl(overloadCallTest.ts, 1, 19), Decl(overloadCallTest.ts, 2, 31), Decl(overloadCallTest.ts, 3, 31)) +>"test" : string } } diff --git a/tests/baselines/reference/overloadCrash.types b/tests/baselines/reference/overloadCrash.types index 88c2b8c79c0..cef14e3b453 100644 --- a/tests/baselines/reference/overloadCrash.types +++ b/tests/baselines/reference/overloadCrash.types @@ -1,40 +1,40 @@ === tests/cases/compiler/overloadCrash.ts === interface I1 {a:number; b:number;}; ->I1 : I1 ->a : number ->b : number +>I1 : I1, Symbol(I1, Decl(overloadCrash.ts, 0, 0)) +>a : number, Symbol(a, Decl(overloadCrash.ts, 0, 14)) +>b : number, Symbol(b, Decl(overloadCrash.ts, 0, 23)) interface I2 {c:number; d:number;}; ->I2 : I2 ->c : number ->d : number +>I2 : I2, Symbol(I2, Decl(overloadCrash.ts, 0, 35)) +>c : number, Symbol(c, Decl(overloadCrash.ts, 1, 14)) +>d : number, Symbol(d, Decl(overloadCrash.ts, 1, 23)) interface I3 {a:number; b:number; c:number; d:number;}; ->I3 : I3 ->a : number ->b : number ->c : number ->d : number +>I3 : I3, Symbol(I3, Decl(overloadCrash.ts, 1, 35)) +>a : number, Symbol(a, Decl(overloadCrash.ts, 2, 14)) +>b : number, Symbol(b, Decl(overloadCrash.ts, 2, 23)) +>c : number, Symbol(c, Decl(overloadCrash.ts, 2, 33)) +>d : number, Symbol(d, Decl(overloadCrash.ts, 2, 43)) declare function foo(...n:I1[]); ->foo : { (...n: I1[]): any; (n1: I2, n3: I2): any; } ->n : I1[] ->I1 : I1 +>foo : { (...n: I1[]): any; (n1: I2, n3: I2): any; }, Symbol(foo, Decl(overloadCrash.ts, 2, 55), Decl(overloadCrash.ts, 4, 32)) +>n : I1[], Symbol(n, Decl(overloadCrash.ts, 4, 21)) +>I1 : I1, Symbol(I1, Decl(overloadCrash.ts, 0, 0)) declare function foo(n1:I2, n3:I2); ->foo : { (...n: I1[]): any; (n1: I2, n3: I2): any; } ->n1 : I2 ->I2 : I2 ->n3 : I2 ->I2 : I2 +>foo : { (...n: I1[]): any; (n1: I2, n3: I2): any; }, Symbol(foo, Decl(overloadCrash.ts, 2, 55), Decl(overloadCrash.ts, 4, 32)) +>n1 : I2, Symbol(n1, Decl(overloadCrash.ts, 5, 21)) +>I2 : I2, Symbol(I2, Decl(overloadCrash.ts, 0, 35)) +>n3 : I2, Symbol(n3, Decl(overloadCrash.ts, 5, 27)) +>I2 : I2, Symbol(I2, Decl(overloadCrash.ts, 0, 35)) var i3:I3; ->i3 : I3 ->I3 : I3 +>i3 : I3, Symbol(i3, Decl(overloadCrash.ts, 7, 3)) +>I3 : I3, Symbol(I3, Decl(overloadCrash.ts, 1, 35)) foo(i3, i3); // should not crash the compiler :) >foo(i3, i3) : any ->foo : { (...n: I1[]): any; (n1: I2, n3: I2): any; } ->i3 : I3 ->i3 : I3 +>foo : { (...n: I1[]): any; (n1: I2, n3: I2): any; }, Symbol(foo, Decl(overloadCrash.ts, 2, 55), Decl(overloadCrash.ts, 4, 32)) +>i3 : I3, Symbol(i3, Decl(overloadCrash.ts, 7, 3)) +>i3 : I3, Symbol(i3, Decl(overloadCrash.ts, 7, 3)) diff --git a/tests/baselines/reference/overloadEquivalenceWithStatics.types b/tests/baselines/reference/overloadEquivalenceWithStatics.types index 96ad16ae19c..478f19690eb 100644 --- a/tests/baselines/reference/overloadEquivalenceWithStatics.types +++ b/tests/baselines/reference/overloadEquivalenceWithStatics.types @@ -1,33 +1,34 @@ === tests/cases/compiler/overloadEquivalenceWithStatics.ts === class A1 { ->A1 : A1 ->T : T +>A1 : A1, Symbol(A1, Decl(overloadEquivalenceWithStatics.ts, 0, 0)) +>T : T, Symbol(T, Decl(overloadEquivalenceWithStatics.ts, 0, 9)) static B(v: A1): A1; // 1 ->B : { (v: A1): A1; (v: S): A1; } ->S : S ->v : A1 ->A1 : A1 ->S : S ->A1 : A1 ->S : S +>B : { (v: A1): A1; (v: S): A1; }, Symbol(A1.B, Decl(overloadEquivalenceWithStatics.ts, 0, 13), Decl(overloadEquivalenceWithStatics.ts, 1, 29), Decl(overloadEquivalenceWithStatics.ts, 2, 25)) +>S : S, Symbol(S, Decl(overloadEquivalenceWithStatics.ts, 1, 9)) +>v : A1, Symbol(v, Decl(overloadEquivalenceWithStatics.ts, 1, 12)) +>A1 : A1, Symbol(A1, Decl(overloadEquivalenceWithStatics.ts, 0, 0)) +>S : S, Symbol(S, Decl(overloadEquivalenceWithStatics.ts, 1, 9)) +>A1 : A1, Symbol(A1, Decl(overloadEquivalenceWithStatics.ts, 0, 0)) +>S : S, Symbol(S, Decl(overloadEquivalenceWithStatics.ts, 1, 9)) static B(v: S): A1; // 2 : Error Duplicate signature ->B : { (v: A1): A1; (v: S): A1; } ->S : S ->v : S ->S : S ->A1 : A1 ->S : S +>B : { (v: A1): A1; (v: S): A1; }, Symbol(A1.B, Decl(overloadEquivalenceWithStatics.ts, 0, 13), Decl(overloadEquivalenceWithStatics.ts, 1, 29), Decl(overloadEquivalenceWithStatics.ts, 2, 25)) +>S : S, Symbol(S, Decl(overloadEquivalenceWithStatics.ts, 2, 9)) +>v : S, Symbol(v, Decl(overloadEquivalenceWithStatics.ts, 2, 12)) +>S : S, Symbol(S, Decl(overloadEquivalenceWithStatics.ts, 2, 9)) +>A1 : A1, Symbol(A1, Decl(overloadEquivalenceWithStatics.ts, 0, 0)) +>S : S, Symbol(S, Decl(overloadEquivalenceWithStatics.ts, 2, 9)) static B(v: any): A1 { ->B : { (v: A1): A1; (v: S): A1; } ->S : S ->v : any ->A1 : A1 ->S : S +>B : { (v: A1): A1; (v: S): A1; }, Symbol(A1.B, Decl(overloadEquivalenceWithStatics.ts, 0, 13), Decl(overloadEquivalenceWithStatics.ts, 1, 29), Decl(overloadEquivalenceWithStatics.ts, 2, 25)) +>S : S, Symbol(S, Decl(overloadEquivalenceWithStatics.ts, 3, 9)) +>v : any, Symbol(v, Decl(overloadEquivalenceWithStatics.ts, 3, 12)) +>A1 : A1, Symbol(A1, Decl(overloadEquivalenceWithStatics.ts, 0, 0)) +>S : S, Symbol(S, Decl(overloadEquivalenceWithStatics.ts, 3, 9)) return null; +>null : null } } diff --git a/tests/baselines/reference/overloadGenericFunctionWithRestArgs.types b/tests/baselines/reference/overloadGenericFunctionWithRestArgs.types index 17ecdeac503..c4d5297984e 100644 --- a/tests/baselines/reference/overloadGenericFunctionWithRestArgs.types +++ b/tests/baselines/reference/overloadGenericFunctionWithRestArgs.types @@ -1,39 +1,39 @@ === tests/cases/compiler/overloadGenericFunctionWithRestArgs.ts === class B{ ->B : B ->V : V +>B : B, Symbol(B, Decl(overloadGenericFunctionWithRestArgs.ts, 0, 0)) +>V : V, Symbol(V, Decl(overloadGenericFunctionWithRestArgs.ts, 0, 8)) private id: V; ->id : V ->V : V +>id : V, Symbol(id, Decl(overloadGenericFunctionWithRestArgs.ts, 0, 11)) +>V : V, Symbol(V, Decl(overloadGenericFunctionWithRestArgs.ts, 0, 8)) } class A{ ->A : A ->U : U +>A : A, Symbol(A, Decl(overloadGenericFunctionWithRestArgs.ts, 2, 1)) +>U : U, Symbol(U, Decl(overloadGenericFunctionWithRestArgs.ts, 3, 8)) GetEnumerator: () => B; ->GetEnumerator : () => B ->B : B ->U : U +>GetEnumerator : () => B, Symbol(GetEnumerator, Decl(overloadGenericFunctionWithRestArgs.ts, 3, 11)) +>B : B, Symbol(B, Decl(overloadGenericFunctionWithRestArgs.ts, 0, 0)) +>U : U, Symbol(U, Decl(overloadGenericFunctionWithRestArgs.ts, 3, 8)) } function Choice(...v_args: T[]): A; ->Choice : (...v_args: T[]) => A ->T : T ->v_args : T[] ->T : T ->A : A ->T : T +>Choice : (...v_args: T[]) => A, Symbol(Choice, Decl(overloadGenericFunctionWithRestArgs.ts, 5, 1), Decl(overloadGenericFunctionWithRestArgs.ts, 6, 41)) +>T : T, Symbol(T, Decl(overloadGenericFunctionWithRestArgs.ts, 6, 16)) +>v_args : T[], Symbol(v_args, Decl(overloadGenericFunctionWithRestArgs.ts, 6, 19)) +>T : T, Symbol(T, Decl(overloadGenericFunctionWithRestArgs.ts, 6, 16)) +>A : A, Symbol(A, Decl(overloadGenericFunctionWithRestArgs.ts, 2, 1)) +>T : T, Symbol(T, Decl(overloadGenericFunctionWithRestArgs.ts, 6, 16)) function Choice(...v_args: T[]): A { ->Choice : (...v_args: T[]) => A ->T : T ->v_args : T[] ->T : T ->A : A ->T : T +>Choice : (...v_args: T[]) => A, Symbol(Choice, Decl(overloadGenericFunctionWithRestArgs.ts, 5, 1), Decl(overloadGenericFunctionWithRestArgs.ts, 6, 41)) +>T : T, Symbol(T, Decl(overloadGenericFunctionWithRestArgs.ts, 7, 16)) +>v_args : T[], Symbol(v_args, Decl(overloadGenericFunctionWithRestArgs.ts, 7, 19)) +>T : T, Symbol(T, Decl(overloadGenericFunctionWithRestArgs.ts, 7, 16)) +>A : A, Symbol(A, Decl(overloadGenericFunctionWithRestArgs.ts, 2, 1)) +>T : T, Symbol(T, Decl(overloadGenericFunctionWithRestArgs.ts, 7, 16)) return new A(); >new A() : A ->A : typeof A ->T : T +>A : typeof A, Symbol(A, Decl(overloadGenericFunctionWithRestArgs.ts, 2, 1)) +>T : T, Symbol(T, Decl(overloadGenericFunctionWithRestArgs.ts, 7, 16)) } diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks1.types b/tests/baselines/reference/overloadOnConstConstraintChecks1.types index 9f92e56c682..1360780e77a 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks1.types +++ b/tests/baselines/reference/overloadOnConstConstraintChecks1.types @@ -1,78 +1,79 @@ === tests/cases/compiler/overloadOnConstConstraintChecks1.ts === class Base { foo() { } } ->Base : Base ->foo : () => void +>Base : Base, Symbol(Base, Decl(overloadOnConstConstraintChecks1.ts, 0, 0)) +>foo : () => void, Symbol(foo, Decl(overloadOnConstConstraintChecks1.ts, 0, 12)) class Derived1 extends Base { bar() { } } ->Derived1 : Derived1 ->Base : Base ->bar : () => void +>Derived1 : Derived1, Symbol(Derived1, Decl(overloadOnConstConstraintChecks1.ts, 0, 24)) +>Base : Base, Symbol(Base, Decl(overloadOnConstConstraintChecks1.ts, 0, 0)) +>bar : () => void, Symbol(bar, Decl(overloadOnConstConstraintChecks1.ts, 1, 29)) class Derived2 extends Base { baz() { } } ->Derived2 : Derived2 ->Base : Base ->baz : () => void +>Derived2 : Derived2, Symbol(Derived2, Decl(overloadOnConstConstraintChecks1.ts, 1, 41)) +>Base : Base, Symbol(Base, Decl(overloadOnConstConstraintChecks1.ts, 0, 0)) +>baz : () => void, Symbol(baz, Decl(overloadOnConstConstraintChecks1.ts, 2, 29)) class Derived3 extends Base { biz() { } } ->Derived3 : Derived3 ->Base : Base ->biz : () => void +>Derived3 : Derived3, Symbol(Derived3, Decl(overloadOnConstConstraintChecks1.ts, 2, 41)) +>Base : Base, Symbol(Base, Decl(overloadOnConstConstraintChecks1.ts, 0, 0)) +>biz : () => void, Symbol(biz, Decl(overloadOnConstConstraintChecks1.ts, 3, 29)) interface MyDoc { // Document ->MyDoc : MyDoc +>MyDoc : MyDoc, Symbol(MyDoc, Decl(overloadOnConstConstraintChecks1.ts, 3, 41)) createElement(tagName: string): Base; ->createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; } ->tagName : string ->Base : Base +>createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; }, Symbol(createElement, Decl(overloadOnConstConstraintChecks1.ts, 5, 17), Decl(overloadOnConstConstraintChecks1.ts, 6, 41), Decl(overloadOnConstConstraintChecks1.ts, 7, 47), Decl(overloadOnConstConstraintChecks1.ts, 8, 44)) +>tagName : string, Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 6, 18)) +>Base : Base, Symbol(Base, Decl(overloadOnConstConstraintChecks1.ts, 0, 0)) createElement(tagName: 'canvas'): Derived1; ->createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; } ->tagName : 'canvas' ->Derived1 : Derived1 +>createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; }, Symbol(createElement, Decl(overloadOnConstConstraintChecks1.ts, 5, 17), Decl(overloadOnConstConstraintChecks1.ts, 6, 41), Decl(overloadOnConstConstraintChecks1.ts, 7, 47), Decl(overloadOnConstConstraintChecks1.ts, 8, 44)) +>tagName : 'canvas', Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 7, 18)) +>Derived1 : Derived1, Symbol(Derived1, Decl(overloadOnConstConstraintChecks1.ts, 0, 24)) createElement(tagName: 'div'): Derived2; ->createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; } ->tagName : 'div' ->Derived2 : Derived2 +>createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; }, Symbol(createElement, Decl(overloadOnConstConstraintChecks1.ts, 5, 17), Decl(overloadOnConstConstraintChecks1.ts, 6, 41), Decl(overloadOnConstConstraintChecks1.ts, 7, 47), Decl(overloadOnConstConstraintChecks1.ts, 8, 44)) +>tagName : 'div', Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 8, 18)) +>Derived2 : Derived2, Symbol(Derived2, Decl(overloadOnConstConstraintChecks1.ts, 1, 41)) createElement(tagName: 'span'): Derived3; ->createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; } ->tagName : 'span' ->Derived3 : Derived3 +>createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; }, Symbol(createElement, Decl(overloadOnConstConstraintChecks1.ts, 5, 17), Decl(overloadOnConstConstraintChecks1.ts, 6, 41), Decl(overloadOnConstConstraintChecks1.ts, 7, 47), Decl(overloadOnConstConstraintChecks1.ts, 8, 44)) +>tagName : 'span', Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 9, 18)) +>Derived3 : Derived3, Symbol(Derived3, Decl(overloadOnConstConstraintChecks1.ts, 2, 41)) // + 100 more } class D implements MyDoc { ->D : D ->MyDoc : MyDoc +>D : D, Symbol(D, Decl(overloadOnConstConstraintChecks1.ts, 11, 1)) +>MyDoc : MyDoc, Symbol(MyDoc, Decl(overloadOnConstConstraintChecks1.ts, 3, 41)) createElement(tagName:string): Base; ->createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; } ->tagName : string ->Base : Base +>createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; }, Symbol(createElement, Decl(overloadOnConstConstraintChecks1.ts, 13, 26), Decl(overloadOnConstConstraintChecks1.ts, 14, 40), Decl(overloadOnConstConstraintChecks1.ts, 15, 47), Decl(overloadOnConstConstraintChecks1.ts, 16, 44), Decl(overloadOnConstConstraintChecks1.ts, 17, 45)) +>tagName : string, Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 14, 18)) +>Base : Base, Symbol(Base, Decl(overloadOnConstConstraintChecks1.ts, 0, 0)) createElement(tagName: 'canvas'): Derived1; ->createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; } ->tagName : 'canvas' ->Derived1 : Derived1 +>createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; }, Symbol(createElement, Decl(overloadOnConstConstraintChecks1.ts, 13, 26), Decl(overloadOnConstConstraintChecks1.ts, 14, 40), Decl(overloadOnConstConstraintChecks1.ts, 15, 47), Decl(overloadOnConstConstraintChecks1.ts, 16, 44), Decl(overloadOnConstConstraintChecks1.ts, 17, 45)) +>tagName : 'canvas', Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 15, 18)) +>Derived1 : Derived1, Symbol(Derived1, Decl(overloadOnConstConstraintChecks1.ts, 0, 24)) createElement(tagName: 'div'): Derived2; ->createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; } ->tagName : 'div' ->Derived2 : Derived2 +>createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; }, Symbol(createElement, Decl(overloadOnConstConstraintChecks1.ts, 13, 26), Decl(overloadOnConstConstraintChecks1.ts, 14, 40), Decl(overloadOnConstConstraintChecks1.ts, 15, 47), Decl(overloadOnConstConstraintChecks1.ts, 16, 44), Decl(overloadOnConstConstraintChecks1.ts, 17, 45)) +>tagName : 'div', Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 16, 18)) +>Derived2 : Derived2, Symbol(Derived2, Decl(overloadOnConstConstraintChecks1.ts, 1, 41)) createElement(tagName: 'span'): Derived3; ->createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; } ->tagName : 'span' ->Derived3 : Derived3 +>createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; }, Symbol(createElement, Decl(overloadOnConstConstraintChecks1.ts, 13, 26), Decl(overloadOnConstConstraintChecks1.ts, 14, 40), Decl(overloadOnConstConstraintChecks1.ts, 15, 47), Decl(overloadOnConstConstraintChecks1.ts, 16, 44), Decl(overloadOnConstConstraintChecks1.ts, 17, 45)) +>tagName : 'span', Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 17, 18)) +>Derived3 : Derived3, Symbol(Derived3, Decl(overloadOnConstConstraintChecks1.ts, 2, 41)) createElement(tagName:any): Base { ->createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; } ->tagName : any ->Base : Base +>createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: 'div'): Derived2; (tagName: 'span'): Derived3; }, Symbol(createElement, Decl(overloadOnConstConstraintChecks1.ts, 13, 26), Decl(overloadOnConstConstraintChecks1.ts, 14, 40), Decl(overloadOnConstConstraintChecks1.ts, 15, 47), Decl(overloadOnConstConstraintChecks1.ts, 16, 44), Decl(overloadOnConstConstraintChecks1.ts, 17, 45)) +>tagName : any, Symbol(tagName, Decl(overloadOnConstConstraintChecks1.ts, 18, 18)) +>Base : Base, Symbol(Base, Decl(overloadOnConstConstraintChecks1.ts, 0, 0)) return null; +>null : null } } diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks2.types b/tests/baselines/reference/overloadOnConstConstraintChecks2.types index c5af206c6da..aeb86fd7f34 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks2.types +++ b/tests/baselines/reference/overloadOnConstConstraintChecks2.types @@ -1,37 +1,38 @@ === tests/cases/compiler/overloadOnConstConstraintChecks2.ts === class A {} ->A : A +>A : A, Symbol(A, Decl(overloadOnConstConstraintChecks2.ts, 0, 0)) class B extends A {} ->B : B ->A : A +>B : B, Symbol(B, Decl(overloadOnConstConstraintChecks2.ts, 0, 10)) +>A : A, Symbol(A, Decl(overloadOnConstConstraintChecks2.ts, 0, 0)) class C extends A { ->C : C ->A : A +>C : C, Symbol(C, Decl(overloadOnConstConstraintChecks2.ts, 1, 20)) +>A : A, Symbol(A, Decl(overloadOnConstConstraintChecks2.ts, 0, 0)) public foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(overloadOnConstConstraintChecks2.ts, 2, 19)) } function foo(name: 'hi'): B; ->foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; } ->name : 'hi' ->B : B +>foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; }, Symbol(foo, Decl(overloadOnConstConstraintChecks2.ts, 4, 1), Decl(overloadOnConstConstraintChecks2.ts, 5, 28), Decl(overloadOnConstConstraintChecks2.ts, 6, 29), Decl(overloadOnConstConstraintChecks2.ts, 7, 30)) +>name : 'hi', Symbol(name, Decl(overloadOnConstConstraintChecks2.ts, 5, 13)) +>B : B, Symbol(B, Decl(overloadOnConstConstraintChecks2.ts, 0, 10)) function foo(name: 'bye'): C; ->foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; } ->name : 'bye' ->C : C +>foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; }, Symbol(foo, Decl(overloadOnConstConstraintChecks2.ts, 4, 1), Decl(overloadOnConstConstraintChecks2.ts, 5, 28), Decl(overloadOnConstConstraintChecks2.ts, 6, 29), Decl(overloadOnConstConstraintChecks2.ts, 7, 30)) +>name : 'bye', Symbol(name, Decl(overloadOnConstConstraintChecks2.ts, 6, 13)) +>C : C, Symbol(C, Decl(overloadOnConstConstraintChecks2.ts, 1, 20)) function foo(name: string): A; ->foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; } ->name : string ->A : A +>foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; }, Symbol(foo, Decl(overloadOnConstConstraintChecks2.ts, 4, 1), Decl(overloadOnConstConstraintChecks2.ts, 5, 28), Decl(overloadOnConstConstraintChecks2.ts, 6, 29), Decl(overloadOnConstConstraintChecks2.ts, 7, 30)) +>name : string, Symbol(name, Decl(overloadOnConstConstraintChecks2.ts, 7, 13)) +>A : A, Symbol(A, Decl(overloadOnConstConstraintChecks2.ts, 0, 0)) function foo(name: any): A { ->foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; } ->name : any ->A : A +>foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; }, Symbol(foo, Decl(overloadOnConstConstraintChecks2.ts, 4, 1), Decl(overloadOnConstConstraintChecks2.ts, 5, 28), Decl(overloadOnConstConstraintChecks2.ts, 6, 29), Decl(overloadOnConstConstraintChecks2.ts, 7, 30)) +>name : any, Symbol(name, Decl(overloadOnConstConstraintChecks2.ts, 8, 13)) +>A : A, Symbol(A, Decl(overloadOnConstConstraintChecks2.ts, 0, 0)) return null; +>null : null } diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks3.types b/tests/baselines/reference/overloadOnConstConstraintChecks3.types index adc41ff235c..8acbcf2c66f 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks3.types +++ b/tests/baselines/reference/overloadOnConstConstraintChecks3.types @@ -1,39 +1,41 @@ === tests/cases/compiler/overloadOnConstConstraintChecks3.ts === class A { private x = 1} ->A : A ->x : number +>A : A, Symbol(A, Decl(overloadOnConstConstraintChecks3.ts, 0, 0)) +>x : number, Symbol(x, Decl(overloadOnConstConstraintChecks3.ts, 0, 9)) +>1 : number class B extends A {} ->B : B ->A : A +>B : B, Symbol(B, Decl(overloadOnConstConstraintChecks3.ts, 0, 24)) +>A : A, Symbol(A, Decl(overloadOnConstConstraintChecks3.ts, 0, 0)) class C extends A { ->C : C ->A : A +>C : C, Symbol(C, Decl(overloadOnConstConstraintChecks3.ts, 1, 20)) +>A : A, Symbol(A, Decl(overloadOnConstConstraintChecks3.ts, 0, 0)) public foo() { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(overloadOnConstConstraintChecks3.ts, 2, 19)) } function foo(name: 'hi'): B; ->foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; } ->name : 'hi' ->B : B +>foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; }, Symbol(foo, Decl(overloadOnConstConstraintChecks3.ts, 4, 1), Decl(overloadOnConstConstraintChecks3.ts, 5, 28), Decl(overloadOnConstConstraintChecks3.ts, 6, 29), Decl(overloadOnConstConstraintChecks3.ts, 7, 30)) +>name : 'hi', Symbol(name, Decl(overloadOnConstConstraintChecks3.ts, 5, 13)) +>B : B, Symbol(B, Decl(overloadOnConstConstraintChecks3.ts, 0, 24)) function foo(name: 'bye'): C; ->foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; } ->name : 'bye' ->C : C +>foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; }, Symbol(foo, Decl(overloadOnConstConstraintChecks3.ts, 4, 1), Decl(overloadOnConstConstraintChecks3.ts, 5, 28), Decl(overloadOnConstConstraintChecks3.ts, 6, 29), Decl(overloadOnConstConstraintChecks3.ts, 7, 30)) +>name : 'bye', Symbol(name, Decl(overloadOnConstConstraintChecks3.ts, 6, 13)) +>C : C, Symbol(C, Decl(overloadOnConstConstraintChecks3.ts, 1, 20)) function foo(name: string): A; ->foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; } ->name : string ->A : A +>foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; }, Symbol(foo, Decl(overloadOnConstConstraintChecks3.ts, 4, 1), Decl(overloadOnConstConstraintChecks3.ts, 5, 28), Decl(overloadOnConstConstraintChecks3.ts, 6, 29), Decl(overloadOnConstConstraintChecks3.ts, 7, 30)) +>name : string, Symbol(name, Decl(overloadOnConstConstraintChecks3.ts, 7, 13)) +>A : A, Symbol(A, Decl(overloadOnConstConstraintChecks3.ts, 0, 0)) function foo(name: any): A { ->foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; } ->name : any ->A : A +>foo : { (name: 'hi'): B; (name: 'bye'): C; (name: string): A; }, Symbol(foo, Decl(overloadOnConstConstraintChecks3.ts, 4, 1), Decl(overloadOnConstConstraintChecks3.ts, 5, 28), Decl(overloadOnConstConstraintChecks3.ts, 6, 29), Decl(overloadOnConstConstraintChecks3.ts, 7, 30)) +>name : any, Symbol(name, Decl(overloadOnConstConstraintChecks3.ts, 8, 13)) +>A : A, Symbol(A, Decl(overloadOnConstConstraintChecks3.ts, 0, 0)) return null; +>null : null } diff --git a/tests/baselines/reference/overloadOnConstInheritance1.types b/tests/baselines/reference/overloadOnConstInheritance1.types index 96f8df3dffd..d6a6576c066 100644 --- a/tests/baselines/reference/overloadOnConstInheritance1.types +++ b/tests/baselines/reference/overloadOnConstInheritance1.types @@ -1,25 +1,25 @@ === tests/cases/compiler/overloadOnConstInheritance1.ts === interface Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(overloadOnConstInheritance1.ts, 0, 0)) addEventListener(x: string): any; ->addEventListener : { (x: string): any; (x: 'foo'): string; } ->x : string +>addEventListener : { (x: string): any; (x: 'foo'): string; }, Symbol(addEventListener, Decl(overloadOnConstInheritance1.ts, 0, 16), Decl(overloadOnConstInheritance1.ts, 1, 37)) +>x : string, Symbol(x, Decl(overloadOnConstInheritance1.ts, 1, 21)) addEventListener(x: 'foo'): string; ->addEventListener : { (x: string): any; (x: 'foo'): string; } ->x : 'foo' +>addEventListener : { (x: string): any; (x: 'foo'): string; }, Symbol(addEventListener, Decl(overloadOnConstInheritance1.ts, 0, 16), Decl(overloadOnConstInheritance1.ts, 1, 37)) +>x : 'foo', Symbol(x, Decl(overloadOnConstInheritance1.ts, 2, 21)) } interface Deriver extends Base { ->Deriver : Deriver ->Base : Base +>Deriver : Deriver, Symbol(Deriver, Decl(overloadOnConstInheritance1.ts, 3, 1)) +>Base : Base, Symbol(Base, Decl(overloadOnConstInheritance1.ts, 0, 0)) addEventListener(x: string): any; ->addEventListener : { (x: string): any; (x: 'bar'): string; } ->x : string +>addEventListener : { (x: string): any; (x: 'bar'): string; }, Symbol(addEventListener, Decl(overloadOnConstInheritance1.ts, 4, 32), Decl(overloadOnConstInheritance1.ts, 5, 37)) +>x : string, Symbol(x, Decl(overloadOnConstInheritance1.ts, 5, 21)) addEventListener(x: 'bar'): string; ->addEventListener : { (x: string): any; (x: 'bar'): string; } ->x : 'bar' +>addEventListener : { (x: string): any; (x: 'bar'): string; }, Symbol(addEventListener, Decl(overloadOnConstInheritance1.ts, 4, 32), Decl(overloadOnConstInheritance1.ts, 5, 37)) +>x : 'bar', Symbol(x, Decl(overloadOnConstInheritance1.ts, 6, 21)) } diff --git a/tests/baselines/reference/overloadOnGenericArity.types b/tests/baselines/reference/overloadOnGenericArity.types index 53c9e922fb9..0d93fc913b0 100644 --- a/tests/baselines/reference/overloadOnGenericArity.types +++ b/tests/baselines/reference/overloadOnGenericArity.types @@ -1,16 +1,16 @@ === tests/cases/compiler/overloadOnGenericArity.ts === interface Test { ->Test : Test +>Test : Test, Symbol(Test, Decl(overloadOnGenericArity.ts, 0, 0)) then(p: string): string; ->then : { (p: string): string; (p: string): Date; } ->U : U ->p : string +>then : { (p: string): string; (p: string): Date; }, Symbol(then, Decl(overloadOnGenericArity.ts, 0, 16), Decl(overloadOnGenericArity.ts, 1, 31)) +>U : U, Symbol(U, Decl(overloadOnGenericArity.ts, 1, 9)) +>p : string, Symbol(p, Decl(overloadOnGenericArity.ts, 1, 12)) then(p: string): Date; // Error: Overloads cannot differ only by return type ->then : { (p: string): string; (p: string): Date; } ->p : string ->Date : Date +>then : { (p: string): string; (p: string): Date; }, Symbol(then, Decl(overloadOnGenericArity.ts, 0, 16), Decl(overloadOnGenericArity.ts, 1, 31)) +>p : string, Symbol(p, Decl(overloadOnGenericArity.ts, 2, 9)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } diff --git a/tests/baselines/reference/overloadOnGenericClassAndNonGenericClass.types b/tests/baselines/reference/overloadOnGenericClassAndNonGenericClass.types index c0d0533a533..a6c2d8cd759 100644 --- a/tests/baselines/reference/overloadOnGenericClassAndNonGenericClass.types +++ b/tests/baselines/reference/overloadOnGenericClassAndNonGenericClass.types @@ -1,60 +1,60 @@ === tests/cases/compiler/overloadOnGenericClassAndNonGenericClass.ts === class A { a; } ->A : A ->a : any +>A : A, Symbol(A, Decl(overloadOnGenericClassAndNonGenericClass.ts, 0, 0)) +>a : any, Symbol(a, Decl(overloadOnGenericClassAndNonGenericClass.ts, 0, 9)) class B { b; } ->B : B ->b : any +>B : B, Symbol(B, Decl(overloadOnGenericClassAndNonGenericClass.ts, 0, 14)) +>b : any, Symbol(b, Decl(overloadOnGenericClassAndNonGenericClass.ts, 1, 9)) class C { c; } ->C : C ->c : any +>C : C, Symbol(C, Decl(overloadOnGenericClassAndNonGenericClass.ts, 1, 14)) +>c : any, Symbol(c, Decl(overloadOnGenericClassAndNonGenericClass.ts, 2, 9)) class X { x: T; } ->X : X ->T : T ->x : T ->T : T +>X : X, Symbol(X, Decl(overloadOnGenericClassAndNonGenericClass.ts, 2, 14)) +>T : T, Symbol(T, Decl(overloadOnGenericClassAndNonGenericClass.ts, 3, 8)) +>x : T, Symbol(x, Decl(overloadOnGenericClassAndNonGenericClass.ts, 3, 12)) +>T : T, Symbol(T, Decl(overloadOnGenericClassAndNonGenericClass.ts, 3, 8)) class X1 { x: string; } ->X1 : X1 ->x : string +>X1 : X1, Symbol(X1, Decl(overloadOnGenericClassAndNonGenericClass.ts, 3, 20)) +>x : string, Symbol(x, Decl(overloadOnGenericClassAndNonGenericClass.ts, 4, 10)) class X2 { x: string; } ->X2 : X2 ->x : string +>X2 : X2, Symbol(X2, Decl(overloadOnGenericClassAndNonGenericClass.ts, 4, 23)) +>x : string, Symbol(x, Decl(overloadOnGenericClassAndNonGenericClass.ts, 5, 10)) function f(a: X1): A; ->f : { (a: X1): A; (a: X): B; } ->a : X1 ->X1 : X1 ->A : A +>f : { (a: X1): A; (a: X): B; }, Symbol(f, Decl(overloadOnGenericClassAndNonGenericClass.ts, 5, 23), Decl(overloadOnGenericClassAndNonGenericClass.ts, 6, 21), Decl(overloadOnGenericClassAndNonGenericClass.ts, 7, 26)) +>a : X1, Symbol(a, Decl(overloadOnGenericClassAndNonGenericClass.ts, 6, 11)) +>X1 : X1, Symbol(X1, Decl(overloadOnGenericClassAndNonGenericClass.ts, 3, 20)) +>A : A, Symbol(A, Decl(overloadOnGenericClassAndNonGenericClass.ts, 0, 0)) function f(a: X): B; ->f : { (a: X1): A; (a: X): B; } ->T : T ->a : X ->X : X ->T : T ->B : B +>f : { (a: X1): A; (a: X): B; }, Symbol(f, Decl(overloadOnGenericClassAndNonGenericClass.ts, 5, 23), Decl(overloadOnGenericClassAndNonGenericClass.ts, 6, 21), Decl(overloadOnGenericClassAndNonGenericClass.ts, 7, 26)) +>T : T, Symbol(T, Decl(overloadOnGenericClassAndNonGenericClass.ts, 7, 11)) +>a : X, Symbol(a, Decl(overloadOnGenericClassAndNonGenericClass.ts, 7, 14)) +>X : X, Symbol(X, Decl(overloadOnGenericClassAndNonGenericClass.ts, 2, 14)) +>T : T, Symbol(T, Decl(overloadOnGenericClassAndNonGenericClass.ts, 7, 11)) +>B : B, Symbol(B, Decl(overloadOnGenericClassAndNonGenericClass.ts, 0, 14)) function f(a): any { ->f : { (a: X1): A; (a: X): B; } ->a : any +>f : { (a: X1): A; (a: X): B; }, Symbol(f, Decl(overloadOnGenericClassAndNonGenericClass.ts, 5, 23), Decl(overloadOnGenericClassAndNonGenericClass.ts, 6, 21), Decl(overloadOnGenericClassAndNonGenericClass.ts, 7, 26)) +>a : any, Symbol(a, Decl(overloadOnGenericClassAndNonGenericClass.ts, 8, 11)) } var xs: X; ->xs : X ->X : X +>xs : X, Symbol(xs, Decl(overloadOnGenericClassAndNonGenericClass.ts, 11, 3)) +>X : X, Symbol(X, Decl(overloadOnGenericClassAndNonGenericClass.ts, 2, 14)) var t3 = f(xs); ->t3 : A +>t3 : A, Symbol(t3, Decl(overloadOnGenericClassAndNonGenericClass.ts, 13, 3), Decl(overloadOnGenericClassAndNonGenericClass.ts, 14, 3)) >f(xs) : A ->f : { (a: X1): A; (a: X): B; } ->xs : X +>f : { (a: X1): A; (a: X): B; }, Symbol(f, Decl(overloadOnGenericClassAndNonGenericClass.ts, 5, 23), Decl(overloadOnGenericClassAndNonGenericClass.ts, 6, 21), Decl(overloadOnGenericClassAndNonGenericClass.ts, 7, 26)) +>xs : X, Symbol(xs, Decl(overloadOnGenericClassAndNonGenericClass.ts, 11, 3)) var t3: A; // should not error ->t3 : A ->A : A +>t3 : A, Symbol(t3, Decl(overloadOnGenericClassAndNonGenericClass.ts, 13, 3), Decl(overloadOnGenericClassAndNonGenericClass.ts, 14, 3)) +>A : A, Symbol(A, Decl(overloadOnGenericClassAndNonGenericClass.ts, 0, 0)) diff --git a/tests/baselines/reference/overloadResolutionOverNonCTLambdas.types b/tests/baselines/reference/overloadResolutionOverNonCTLambdas.types index 6e129400736..8d3c14d4229 100644 --- a/tests/baselines/reference/overloadResolutionOverNonCTLambdas.types +++ b/tests/baselines/reference/overloadResolutionOverNonCTLambdas.types @@ -1,75 +1,79 @@ === tests/cases/compiler/overloadResolutionOverNonCTLambdas.ts === module Bugs { ->Bugs : typeof Bugs +>Bugs : typeof Bugs, Symbol(Bugs, Decl(overloadResolutionOverNonCTLambdas.ts, 0, 0)) class A { ->A : A +>A : A, Symbol(A, Decl(overloadResolutionOverNonCTLambdas.ts, 0, 13)) } // replace(searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; function bug2(message:string, ...args:any[]):string { ->bug2 : (message: string, ...args: any[]) => string ->message : string ->args : any[] +>bug2 : (message: string, ...args: any[]) => string, Symbol(bug2, Decl(overloadResolutionOverNonCTLambdas.ts, 2, 3)) +>message : string, Symbol(message, Decl(overloadResolutionOverNonCTLambdas.ts, 5, 16)) +>args : any[], Symbol(args, Decl(overloadResolutionOverNonCTLambdas.ts, 5, 31)) var result= message.replace(/\{(\d+)\}/g, function(match, ...rest) { ->result : string +>result : string, Symbol(result, Decl(overloadResolutionOverNonCTLambdas.ts, 6, 7)) >message.replace(/\{(\d+)\}/g, function(match, ...rest) { var index= rest[0]; return typeof args[index] !== 'undefined' ? args[index] : match; }) : string ->message.replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; } ->message : string ->replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; } +>message.replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; }, Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63)) +>message : string, Symbol(message, Decl(overloadResolutionOverNonCTLambdas.ts, 5, 16)) +>replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; }, Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63)) +>/\{(\d+)\}/g : RegExp >function(match, ...rest) { var index= rest[0]; return typeof args[index] !== 'undefined' ? args[index] : match; } : (match: string, ...rest: any[]) => any ->match : string ->rest : any[] +>match : string, Symbol(match, Decl(overloadResolutionOverNonCTLambdas.ts, 6, 55)) +>rest : any[], Symbol(rest, Decl(overloadResolutionOverNonCTLambdas.ts, 6, 61)) var index= rest[0]; ->index : any +>index : any, Symbol(index, Decl(overloadResolutionOverNonCTLambdas.ts, 7, 9)) >rest[0] : any ->rest : any[] +>rest : any[], Symbol(rest, Decl(overloadResolutionOverNonCTLambdas.ts, 6, 61)) +>0 : number return typeof args[index] !== 'undefined' >typeof args[index] !== 'undefined' ? args[index] : match : any >typeof args[index] !== 'undefined' : boolean >typeof args[index] : string >args[index] : any ->args : any[] ->index : any +>args : any[], Symbol(args, Decl(overloadResolutionOverNonCTLambdas.ts, 5, 31)) +>index : any, Symbol(index, Decl(overloadResolutionOverNonCTLambdas.ts, 7, 9)) +>'undefined' : string ? args[index] >args[index] : any ->args : any[] ->index : any +>args : any[], Symbol(args, Decl(overloadResolutionOverNonCTLambdas.ts, 5, 31)) +>index : any, Symbol(index, Decl(overloadResolutionOverNonCTLambdas.ts, 7, 9)) : match; ->match : string +>match : string, Symbol(match, Decl(overloadResolutionOverNonCTLambdas.ts, 6, 55)) }); return result; ->result : string +>result : string, Symbol(result, Decl(overloadResolutionOverNonCTLambdas.ts, 6, 7)) } } function bug3(f:(x:string)=>string) { return f("s") } ->bug3 : (f: (x: string) => string) => string ->f : (x: string) => string ->x : string +>bug3 : (f: (x: string) => string) => string, Symbol(bug3, Decl(overloadResolutionOverNonCTLambdas.ts, 14, 1)) +>f : (x: string) => string, Symbol(f, Decl(overloadResolutionOverNonCTLambdas.ts, 16, 14)) +>x : string, Symbol(x, Decl(overloadResolutionOverNonCTLambdas.ts, 16, 17)) >f("s") : string ->f : (x: string) => string +>f : (x: string) => string, Symbol(f, Decl(overloadResolutionOverNonCTLambdas.ts, 16, 14)) +>"s" : string function fprime(x:string):string { return x; } ->fprime : (x: string) => string ->x : string ->x : string +>fprime : (x: string) => string, Symbol(fprime, Decl(overloadResolutionOverNonCTLambdas.ts, 16, 53)) +>x : string, Symbol(x, Decl(overloadResolutionOverNonCTLambdas.ts, 18, 16)) +>x : string, Symbol(x, Decl(overloadResolutionOverNonCTLambdas.ts, 18, 16)) bug3(fprime); >bug3(fprime) : string ->bug3 : (f: (x: string) => string) => string ->fprime : (x: string) => string +>bug3 : (f: (x: string) => string) => string, Symbol(bug3, Decl(overloadResolutionOverNonCTLambdas.ts, 14, 1)) +>fprime : (x: string) => string, Symbol(fprime, Decl(overloadResolutionOverNonCTLambdas.ts, 16, 53)) bug3(function(x:string):string { return x; }); >bug3(function(x:string):string { return x; }) : string ->bug3 : (f: (x: string) => string) => string +>bug3 : (f: (x: string) => string) => string, Symbol(bug3, Decl(overloadResolutionOverNonCTLambdas.ts, 14, 1)) >function(x:string):string { return x; } : (x: string) => string ->x : string ->x : string +>x : string, Symbol(x, Decl(overloadResolutionOverNonCTLambdas.ts, 22, 14)) +>x : string, Symbol(x, Decl(overloadResolutionOverNonCTLambdas.ts, 22, 14)) diff --git a/tests/baselines/reference/overloadResolutionOverNonCTObjectLit.types b/tests/baselines/reference/overloadResolutionOverNonCTObjectLit.types index 7ad68cefa4f..cb9aa39307e 100644 --- a/tests/baselines/reference/overloadResolutionOverNonCTObjectLit.types +++ b/tests/baselines/reference/overloadResolutionOverNonCTObjectLit.types @@ -1,67 +1,75 @@ === tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts === module Bugs { ->Bugs : typeof Bugs +>Bugs : typeof Bugs, Symbol(Bugs, Decl(overloadResolutionOverNonCTObjectLit.ts, 0, 0)) export interface IToken { ->IToken : IToken +>IToken : IToken, Symbol(IToken, Decl(overloadResolutionOverNonCTObjectLit.ts, 0, 13)) startIndex:number; ->startIndex : number +>startIndex : number, Symbol(startIndex, Decl(overloadResolutionOverNonCTObjectLit.ts, 1, 41)) type:string; ->type : string +>type : string, Symbol(type, Decl(overloadResolutionOverNonCTObjectLit.ts, 2, 50)) bracket:number; ->bracket : number +>bracket : number, Symbol(bracket, Decl(overloadResolutionOverNonCTObjectLit.ts, 3, 44)) } export interface IState { ->IState : IState +>IState : IState, Symbol(IState, Decl(overloadResolutionOverNonCTObjectLit.ts, 5, 17)) } export interface IStateToken extends IToken { ->IStateToken : IStateToken ->IToken : IToken +>IStateToken : IStateToken, Symbol(IStateToken, Decl(overloadResolutionOverNonCTObjectLit.ts, 8, 17)) +>IToken : IToken, Symbol(IToken, Decl(overloadResolutionOverNonCTObjectLit.ts, 0, 13)) state: IState; ->state : IState ->IState : IState +>state : IState, Symbol(state, Decl(overloadResolutionOverNonCTObjectLit.ts, 10, 61)) +>IState : IState, Symbol(IState, Decl(overloadResolutionOverNonCTObjectLit.ts, 5, 17)) length: number; ->length : number +>length : number, Symbol(length, Decl(overloadResolutionOverNonCTObjectLit.ts, 11, 46)) } function bug3() { ->bug3 : () => void +>bug3 : () => void, Symbol(bug3, Decl(overloadResolutionOverNonCTObjectLit.ts, 13, 17)) var tokens:IToken[]= []; ->tokens : IToken[] ->IToken : IToken +>tokens : IToken[], Symbol(tokens, Decl(overloadResolutionOverNonCTObjectLit.ts, 16, 35)) +>IToken : IToken, Symbol(IToken, Decl(overloadResolutionOverNonCTObjectLit.ts, 0, 13)) >[] : undefined[] tokens.push({ startIndex: 1, type: '', bracket: 3 }); >tokens.push({ startIndex: 1, type: '', bracket: 3 }) : number ->tokens.push : (...items: IToken[]) => number ->tokens : IToken[] ->push : (...items: IToken[]) => number +>tokens.push : (...items: IToken[]) => number, Symbol(Array.push, Decl(lib.d.ts, 1016, 29)) +>tokens : IToken[], Symbol(tokens, Decl(overloadResolutionOverNonCTObjectLit.ts, 16, 35)) +>push : (...items: IToken[]) => number, Symbol(Array.push, Decl(lib.d.ts, 1016, 29)) >{ startIndex: 1, type: '', bracket: 3 } : { startIndex: number; type: string; bracket: number; } ->startIndex : number ->type : string ->bracket : number +>startIndex : number, Symbol(startIndex, Decl(overloadResolutionOverNonCTObjectLit.ts, 17, 45)) +>1 : number +>type : string, Symbol(type, Decl(overloadResolutionOverNonCTObjectLit.ts, 17, 60)) +>'' : string +>bracket : number, Symbol(bracket, Decl(overloadResolutionOverNonCTObjectLit.ts, 17, 70)) +>3 : number tokens.push(({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 })); >tokens.push(({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 })) : number ->tokens.push : (...items: IToken[]) => number ->tokens : IToken[] ->push : (...items: IToken[]) => number +>tokens.push : (...items: IToken[]) => number, Symbol(Array.push, Decl(lib.d.ts, 1016, 29)) +>tokens : IToken[], Symbol(tokens, Decl(overloadResolutionOverNonCTObjectLit.ts, 16, 35)) +>push : (...items: IToken[]) => number, Symbol(Array.push, Decl(lib.d.ts, 1016, 29)) >({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 }) : IToken ->IToken : IToken +>IToken : IToken, Symbol(IToken, Decl(overloadResolutionOverNonCTObjectLit.ts, 0, 13)) >({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 }) : { startIndex: number; type: string; bracket: number; state: null; length: number; } >{ startIndex: 1, type: '', bracket: 3, state: null, length: 10 } : { startIndex: number; type: string; bracket: number; state: null; length: number; } ->startIndex : number ->type : string ->bracket : number ->state : null ->length : number +>startIndex : number, Symbol(startIndex, Decl(overloadResolutionOverNonCTObjectLit.ts, 18, 54)) +>1 : number +>type : string, Symbol(type, Decl(overloadResolutionOverNonCTObjectLit.ts, 18, 69)) +>'' : string +>bracket : number, Symbol(bracket, Decl(overloadResolutionOverNonCTObjectLit.ts, 18, 79)) +>3 : number +>state : null, Symbol(state, Decl(overloadResolutionOverNonCTObjectLit.ts, 18, 91)) +>null : null +>length : number, Symbol(length, Decl(overloadResolutionOverNonCTObjectLit.ts, 18, 104)) +>10 : number } } diff --git a/tests/baselines/reference/overloadResolutionWithAny.types b/tests/baselines/reference/overloadResolutionWithAny.types index 14d378c9fac..ad8e62abae8 100644 --- a/tests/baselines/reference/overloadResolutionWithAny.types +++ b/tests/baselines/reference/overloadResolutionWithAny.types @@ -1,69 +1,75 @@ === tests/cases/compiler/overloadResolutionWithAny.ts === var func: { ->func : { (s: string): number; (s: any): string; } +>func : { (s: string): number; (s: any): string; }, Symbol(func, Decl(overloadResolutionWithAny.ts, 0, 3)) (s: string): number; ->s : string +>s : string, Symbol(s, Decl(overloadResolutionWithAny.ts, 1, 5)) (s: any): string; ->s : any +>s : any, Symbol(s, Decl(overloadResolutionWithAny.ts, 2, 5)) }; func(""); // number >func("") : number ->func : { (s: string): number; (s: any): string; } +>func : { (s: string): number; (s: any): string; }, Symbol(func, Decl(overloadResolutionWithAny.ts, 0, 3)) +>"" : string func(3); // string >func(3) : string ->func : { (s: string): number; (s: any): string; } +>func : { (s: string): number; (s: any): string; }, Symbol(func, Decl(overloadResolutionWithAny.ts, 0, 3)) +>3 : number var x: any; ->x : any +>x : any, Symbol(x, Decl(overloadResolutionWithAny.ts, 7, 3)) func(x); // string >func(x) : string ->func : { (s: string): number; (s: any): string; } ->x : any +>func : { (s: string): number; (s: any): string; }, Symbol(func, Decl(overloadResolutionWithAny.ts, 0, 3)) +>x : any, Symbol(x, Decl(overloadResolutionWithAny.ts, 7, 3)) var func2: { ->func2 : { (s: string, t: string): number; (s: any, t: string): boolean; (s: string, t: any): RegExp; (s: any, t: any): string; } +>func2 : { (s: string, t: string): number; (s: any, t: string): boolean; (s: string, t: any): RegExp; (s: any, t: any): string; }, Symbol(func2, Decl(overloadResolutionWithAny.ts, 10, 3)) (s: string, t: string): number; ->s : string ->t : string +>s : string, Symbol(s, Decl(overloadResolutionWithAny.ts, 11, 5)) +>t : string, Symbol(t, Decl(overloadResolutionWithAny.ts, 11, 15)) (s: any, t: string): boolean; ->s : any ->t : string +>s : any, Symbol(s, Decl(overloadResolutionWithAny.ts, 12, 5)) +>t : string, Symbol(t, Decl(overloadResolutionWithAny.ts, 12, 12)) (s: string, t: any): RegExp; ->s : string ->t : any ->RegExp : RegExp +>s : string, Symbol(s, Decl(overloadResolutionWithAny.ts, 13, 5)) +>t : any, Symbol(t, Decl(overloadResolutionWithAny.ts, 13, 15)) +>RegExp : RegExp, Symbol(RegExp, Decl(lib.d.ts, 825, 1), Decl(lib.d.ts, 876, 11)) (s: any, t: any): string; ->s : any ->t : any +>s : any, Symbol(s, Decl(overloadResolutionWithAny.ts, 14, 5)) +>t : any, Symbol(t, Decl(overloadResolutionWithAny.ts, 14, 12)) } func2(x, x); // string >func2(x, x) : string ->func2 : { (s: string, t: string): number; (s: any, t: string): boolean; (s: string, t: any): RegExp; (s: any, t: any): string; } ->x : any ->x : any +>func2 : { (s: string, t: string): number; (s: any, t: string): boolean; (s: string, t: any): RegExp; (s: any, t: any): string; }, Symbol(func2, Decl(overloadResolutionWithAny.ts, 10, 3)) +>x : any, Symbol(x, Decl(overloadResolutionWithAny.ts, 7, 3)) +>x : any, Symbol(x, Decl(overloadResolutionWithAny.ts, 7, 3)) func2("", ""); // number >func2("", "") : number ->func2 : { (s: string, t: string): number; (s: any, t: string): boolean; (s: string, t: any): RegExp; (s: any, t: any): string; } +>func2 : { (s: string, t: string): number; (s: any, t: string): boolean; (s: string, t: any): RegExp; (s: any, t: any): string; }, Symbol(func2, Decl(overloadResolutionWithAny.ts, 10, 3)) +>"" : string +>"" : string func2(x, ""); // boolean >func2(x, "") : boolean ->func2 : { (s: string, t: string): number; (s: any, t: string): boolean; (s: string, t: any): RegExp; (s: any, t: any): string; } ->x : any +>func2 : { (s: string, t: string): number; (s: any, t: string): boolean; (s: string, t: any): RegExp; (s: any, t: any): string; }, Symbol(func2, Decl(overloadResolutionWithAny.ts, 10, 3)) +>x : any, Symbol(x, Decl(overloadResolutionWithAny.ts, 7, 3)) +>"" : string func2("", x); // RegExp >func2("", x) : RegExp ->func2 : { (s: string, t: string): number; (s: any, t: string): boolean; (s: string, t: any): RegExp; (s: any, t: any): string; } ->x : any +>func2 : { (s: string, t: string): number; (s: any, t: string): boolean; (s: string, t: any): RegExp; (s: any, t: any): string; }, Symbol(func2, Decl(overloadResolutionWithAny.ts, 10, 3)) +>"" : string +>x : any, Symbol(x, Decl(overloadResolutionWithAny.ts, 7, 3)) diff --git a/tests/baselines/reference/overloadRet.types b/tests/baselines/reference/overloadRet.types index b4eb8538dbc..31f29bb03d2 100644 --- a/tests/baselines/reference/overloadRet.types +++ b/tests/baselines/reference/overloadRet.types @@ -1,38 +1,38 @@ === tests/cases/compiler/overloadRet.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(overloadRet.ts, 0, 0)) f(s:string):number; ->f : { (s: string): number; (n: number): string; } ->s : string +>f : { (s: string): number; (n: number): string; }, Symbol(f, Decl(overloadRet.ts, 0, 13), Decl(overloadRet.ts, 1, 23)) +>s : string, Symbol(s, Decl(overloadRet.ts, 1, 6)) f(n:number):string; ->f : { (s: string): number; (n: number): string; } ->n : number +>f : { (s: string): number; (n: number): string; }, Symbol(f, Decl(overloadRet.ts, 0, 13), Decl(overloadRet.ts, 1, 23)) +>n : number, Symbol(n, Decl(overloadRet.ts, 2, 6)) g(n:number):any; ->g : { (n: number): any; (n: number, m: number): string; } ->n : number +>g : { (n: number): any; (n: number, m: number): string; }, Symbol(g, Decl(overloadRet.ts, 2, 23), Decl(overloadRet.ts, 3, 20)) +>n : number, Symbol(n, Decl(overloadRet.ts, 3, 6)) g(n:number,m:number):string; ->g : { (n: number): any; (n: number, m: number): string; } ->n : number ->m : number +>g : { (n: number): any; (n: number, m: number): string; }, Symbol(g, Decl(overloadRet.ts, 2, 23), Decl(overloadRet.ts, 3, 20)) +>n : number, Symbol(n, Decl(overloadRet.ts, 4, 6)) +>m : number, Symbol(m, Decl(overloadRet.ts, 4, 15)) h(n:number):I; ->h : { (n: number): I; (b: boolean): number; } ->n : number ->I : I +>h : { (n: number): I; (b: boolean): number; }, Symbol(h, Decl(overloadRet.ts, 4, 32), Decl(overloadRet.ts, 5, 18)) +>n : number, Symbol(n, Decl(overloadRet.ts, 5, 6)) +>I : I, Symbol(I, Decl(overloadRet.ts, 0, 0)) h(b:boolean):number; ->h : { (n: number): I; (b: boolean): number; } ->b : boolean +>h : { (n: number): I; (b: boolean): number; }, Symbol(h, Decl(overloadRet.ts, 4, 32), Decl(overloadRet.ts, 5, 18)) +>b : boolean, Symbol(b, Decl(overloadRet.ts, 6, 6)) i(b:boolean):number; ->i : { (b: boolean): number; (b: boolean): any; } ->b : boolean +>i : { (b: boolean): number; (b: boolean): any; }, Symbol(i, Decl(overloadRet.ts, 6, 24), Decl(overloadRet.ts, 7, 24)) +>b : boolean, Symbol(b, Decl(overloadRet.ts, 7, 6)) i(b:boolean):any; ->i : { (b: boolean): number; (b: boolean): any; } ->b : boolean +>i : { (b: boolean): number; (b: boolean): any; }, Symbol(i, Decl(overloadRet.ts, 6, 24), Decl(overloadRet.ts, 7, 24)) +>b : boolean, Symbol(b, Decl(overloadRet.ts, 8, 6)) } diff --git a/tests/baselines/reference/overloadReturnTypes.types b/tests/baselines/reference/overloadReturnTypes.types index 1823c752ae7..d70bd930d40 100644 --- a/tests/baselines/reference/overloadReturnTypes.types +++ b/tests/baselines/reference/overloadReturnTypes.types @@ -1,62 +1,64 @@ === tests/cases/compiler/overloadReturnTypes.ts === class Accessor {} ->Accessor : Accessor +>Accessor : Accessor, Symbol(Accessor, Decl(overloadReturnTypes.ts, 0, 0)) function attr(name: string): string; ->attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; } ->name : string +>attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; }, Symbol(attr, Decl(overloadReturnTypes.ts, 0, 17), Decl(overloadReturnTypes.ts, 2, 36), Decl(overloadReturnTypes.ts, 3, 53), Decl(overloadReturnTypes.ts, 4, 34)) +>name : string, Symbol(name, Decl(overloadReturnTypes.ts, 2, 14)) function attr(name: string, value: string): Accessor; ->attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; } ->name : string ->value : string ->Accessor : Accessor +>attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; }, Symbol(attr, Decl(overloadReturnTypes.ts, 0, 17), Decl(overloadReturnTypes.ts, 2, 36), Decl(overloadReturnTypes.ts, 3, 53), Decl(overloadReturnTypes.ts, 4, 34)) +>name : string, Symbol(name, Decl(overloadReturnTypes.ts, 3, 14)) +>value : string, Symbol(value, Decl(overloadReturnTypes.ts, 3, 27)) +>Accessor : Accessor, Symbol(Accessor, Decl(overloadReturnTypes.ts, 0, 0)) function attr(map: any): Accessor; ->attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; } ->map : any ->Accessor : Accessor +>attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; }, Symbol(attr, Decl(overloadReturnTypes.ts, 0, 17), Decl(overloadReturnTypes.ts, 2, 36), Decl(overloadReturnTypes.ts, 3, 53), Decl(overloadReturnTypes.ts, 4, 34)) +>map : any, Symbol(map, Decl(overloadReturnTypes.ts, 4, 14)) +>Accessor : Accessor, Symbol(Accessor, Decl(overloadReturnTypes.ts, 0, 0)) function attr(nameOrMap: any, value?: string): any { ->attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; } ->nameOrMap : any ->value : string +>attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; }, Symbol(attr, Decl(overloadReturnTypes.ts, 0, 17), Decl(overloadReturnTypes.ts, 2, 36), Decl(overloadReturnTypes.ts, 3, 53), Decl(overloadReturnTypes.ts, 4, 34)) +>nameOrMap : any, Symbol(nameOrMap, Decl(overloadReturnTypes.ts, 5, 14)) +>value : string, Symbol(value, Decl(overloadReturnTypes.ts, 5, 29)) if (nameOrMap && typeof nameOrMap === "object") { >nameOrMap && typeof nameOrMap === "object" : boolean ->nameOrMap : any +>nameOrMap : any, Symbol(nameOrMap, Decl(overloadReturnTypes.ts, 5, 14)) >typeof nameOrMap === "object" : boolean >typeof nameOrMap : string ->nameOrMap : any +>nameOrMap : any, Symbol(nameOrMap, Decl(overloadReturnTypes.ts, 5, 14)) +>"object" : string // handle map case return new Accessor; >new Accessor : Accessor ->Accessor : typeof Accessor +>Accessor : typeof Accessor, Symbol(Accessor, Decl(overloadReturnTypes.ts, 0, 0)) } else { // handle string case return "s"; +>"s" : string } } interface IFace { ->IFace : IFace +>IFace : IFace, Symbol(IFace, Decl(overloadReturnTypes.ts, 14, 1)) attr(name:string):string; ->attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; } ->name : string +>attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; }, Symbol(attr, Decl(overloadReturnTypes.ts, 17, 17), Decl(overloadReturnTypes.ts, 18, 26), Decl(overloadReturnTypes.ts, 19, 45)) +>name : string, Symbol(name, Decl(overloadReturnTypes.ts, 18, 6)) attr(name: string, value: string): Accessor; ->attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; } ->name : string ->value : string ->Accessor : Accessor +>attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; }, Symbol(attr, Decl(overloadReturnTypes.ts, 17, 17), Decl(overloadReturnTypes.ts, 18, 26), Decl(overloadReturnTypes.ts, 19, 45)) +>name : string, Symbol(name, Decl(overloadReturnTypes.ts, 19, 6)) +>value : string, Symbol(value, Decl(overloadReturnTypes.ts, 19, 19)) +>Accessor : Accessor, Symbol(Accessor, Decl(overloadReturnTypes.ts, 0, 0)) attr(map: any): Accessor; ->attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; } ->map : any ->Accessor : Accessor +>attr : { (name: string): string; (name: string, value: string): Accessor; (map: any): Accessor; }, Symbol(attr, Decl(overloadReturnTypes.ts, 17, 17), Decl(overloadReturnTypes.ts, 18, 26), Decl(overloadReturnTypes.ts, 19, 45)) +>map : any, Symbol(map, Decl(overloadReturnTypes.ts, 20, 6)) +>Accessor : Accessor, Symbol(Accessor, Decl(overloadReturnTypes.ts, 0, 0)) } diff --git a/tests/baselines/reference/overloadWithCallbacksWithDifferingOptionalityOnArgs.types b/tests/baselines/reference/overloadWithCallbacksWithDifferingOptionalityOnArgs.types index 2ed804ad012..4d44e78f6c7 100644 --- a/tests/baselines/reference/overloadWithCallbacksWithDifferingOptionalityOnArgs.types +++ b/tests/baselines/reference/overloadWithCallbacksWithDifferingOptionalityOnArgs.types @@ -1,27 +1,29 @@ === tests/cases/compiler/overloadWithCallbacksWithDifferingOptionalityOnArgs.ts === function x2(callback: (x?: number) => number); ->x2 : { (callback: (x?: number) => number): any; (callback: (x: string) => number): any; } ->callback : (x?: number) => number ->x : number +>x2 : { (callback: (x?: number) => number): any; (callback: (x: string) => number): any; }, Symbol(x2, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 0), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 46), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 45)) +>callback : (x?: number) => number, Symbol(callback, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 12)) +>x : number, Symbol(x, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 23)) function x2(callback: (x: string) => number); ->x2 : { (callback: (x?: number) => number): any; (callback: (x: string) => number): any; } ->callback : (x: string) => number ->x : string +>x2 : { (callback: (x?: number) => number): any; (callback: (x: string) => number): any; }, Symbol(x2, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 0), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 46), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 45)) +>callback : (x: string) => number, Symbol(callback, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 12)) +>x : string, Symbol(x, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 23)) function x2(callback: (x: any) => number) { } ->x2 : { (callback: (x?: number) => number): any; (callback: (x: string) => number): any; } ->callback : (x: any) => number ->x : any +>x2 : { (callback: (x?: number) => number): any; (callback: (x: string) => number): any; }, Symbol(x2, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 0), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 46), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 45)) +>callback : (x: any) => number, Symbol(callback, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 2, 12)) +>x : any, Symbol(x, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 2, 23)) x2(() => 1); >x2(() => 1) : any ->x2 : { (callback: (x?: number) => number): any; (callback: (x: string) => number): any; } +>x2 : { (callback: (x?: number) => number): any; (callback: (x: string) => number): any; }, Symbol(x2, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 0), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 46), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 45)) >() => 1 : () => number +>1 : number x2((x) => 1 ); >x2((x) => 1 ) : any ->x2 : { (callback: (x?: number) => number): any; (callback: (x: string) => number): any; } +>x2 : { (callback: (x?: number) => number): any; (callback: (x: string) => number): any; }, Symbol(x2, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 0), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 0, 46), Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 1, 45)) >(x) => 1 : (x: number) => number ->x : number +>x : number, Symbol(x, Decl(overloadWithCallbacksWithDifferingOptionalityOnArgs.ts, 4, 4)) +>1 : number diff --git a/tests/baselines/reference/overloadedStaticMethodSpecialization.types b/tests/baselines/reference/overloadedStaticMethodSpecialization.types index bd60fc16fe0..32ac111ae7f 100644 --- a/tests/baselines/reference/overloadedStaticMethodSpecialization.types +++ b/tests/baselines/reference/overloadedStaticMethodSpecialization.types @@ -1,33 +1,34 @@ === tests/cases/compiler/overloadedStaticMethodSpecialization.ts === class A { ->A : A ->T : T +>A : A, Symbol(A, Decl(overloadedStaticMethodSpecialization.ts, 0, 0)) +>T : T, Symbol(T, Decl(overloadedStaticMethodSpecialization.ts, 0, 8)) static B(v: A): A; ->B : { (v: A): A; (v: S): A; } ->S : S ->v : A ->A : A ->S : S ->A : A ->S : S +>B : { (v: A): A; (v: S): A; }, Symbol(A.B, Decl(overloadedStaticMethodSpecialization.ts, 0, 12), Decl(overloadedStaticMethodSpecialization.ts, 1, 31), Decl(overloadedStaticMethodSpecialization.ts, 2, 28)) +>S : S, Symbol(S, Decl(overloadedStaticMethodSpecialization.ts, 1, 13)) +>v : A, Symbol(v, Decl(overloadedStaticMethodSpecialization.ts, 1, 16)) +>A : A, Symbol(A, Decl(overloadedStaticMethodSpecialization.ts, 0, 0)) +>S : S, Symbol(S, Decl(overloadedStaticMethodSpecialization.ts, 1, 13)) +>A : A, Symbol(A, Decl(overloadedStaticMethodSpecialization.ts, 0, 0)) +>S : S, Symbol(S, Decl(overloadedStaticMethodSpecialization.ts, 1, 13)) static B(v: S): A; ->B : { (v: A): A; (v: S): A; } ->S : S ->v : S ->S : S ->A : A ->S : S +>B : { (v: A): A; (v: S): A; }, Symbol(A.B, Decl(overloadedStaticMethodSpecialization.ts, 0, 12), Decl(overloadedStaticMethodSpecialization.ts, 1, 31), Decl(overloadedStaticMethodSpecialization.ts, 2, 28)) +>S : S, Symbol(S, Decl(overloadedStaticMethodSpecialization.ts, 2, 13)) +>v : S, Symbol(v, Decl(overloadedStaticMethodSpecialization.ts, 2, 16)) +>S : S, Symbol(S, Decl(overloadedStaticMethodSpecialization.ts, 2, 13)) +>A : A, Symbol(A, Decl(overloadedStaticMethodSpecialization.ts, 0, 0)) +>S : S, Symbol(S, Decl(overloadedStaticMethodSpecialization.ts, 2, 13)) static B(v: any): A { ->B : { (v: A): A; (v: S): A; } ->S : S ->v : any ->A : A ->S : S +>B : { (v: A): A; (v: S): A; }, Symbol(A.B, Decl(overloadedStaticMethodSpecialization.ts, 0, 12), Decl(overloadedStaticMethodSpecialization.ts, 1, 31), Decl(overloadedStaticMethodSpecialization.ts, 2, 28)) +>S : S, Symbol(S, Decl(overloadedStaticMethodSpecialization.ts, 3, 13)) +>v : any, Symbol(v, Decl(overloadedStaticMethodSpecialization.ts, 3, 16)) +>A : A, Symbol(A, Decl(overloadedStaticMethodSpecialization.ts, 0, 0)) +>S : S, Symbol(S, Decl(overloadedStaticMethodSpecialization.ts, 3, 13)) return null; +>null : null } } diff --git a/tests/baselines/reference/overloadsAndTypeArgumentArity.types b/tests/baselines/reference/overloadsAndTypeArgumentArity.types index 1b76b8e13fe..4ac9d5476e5 100644 --- a/tests/baselines/reference/overloadsAndTypeArgumentArity.types +++ b/tests/baselines/reference/overloadsAndTypeArgumentArity.types @@ -1,31 +1,33 @@ === tests/cases/compiler/overloadsAndTypeArgumentArity.ts === declare function Callbacks(flags?: string): void; ->Callbacks : { (flags?: string): void; (flags?: string): void; (flags?: string): void; (flags?: string): void; } ->flags : string +>Callbacks : { (flags?: string): void; (flags?: string): void; (flags?: string): void; (flags?: string): void; }, Symbol(Callbacks, Decl(overloadsAndTypeArgumentArity.ts, 0, 0), Decl(overloadsAndTypeArgumentArity.ts, 0, 49), Decl(overloadsAndTypeArgumentArity.ts, 1, 52), Decl(overloadsAndTypeArgumentArity.ts, 2, 57)) +>flags : string, Symbol(flags, Decl(overloadsAndTypeArgumentArity.ts, 0, 27)) declare function Callbacks(flags?: string): void; ->Callbacks : { (flags?: string): void; (flags?: string): void; (flags?: string): void; (flags?: string): void; } ->T : T ->flags : string +>Callbacks : { (flags?: string): void; (flags?: string): void; (flags?: string): void; (flags?: string): void; }, Symbol(Callbacks, Decl(overloadsAndTypeArgumentArity.ts, 0, 0), Decl(overloadsAndTypeArgumentArity.ts, 0, 49), Decl(overloadsAndTypeArgumentArity.ts, 1, 52), Decl(overloadsAndTypeArgumentArity.ts, 2, 57)) +>T : T, Symbol(T, Decl(overloadsAndTypeArgumentArity.ts, 1, 27)) +>flags : string, Symbol(flags, Decl(overloadsAndTypeArgumentArity.ts, 1, 30)) declare function Callbacks(flags?: string): void; ->Callbacks : { (flags?: string): void; (flags?: string): void; (flags?: string): void; (flags?: string): void; } ->T1 : T1 ->T2 : T2 ->flags : string +>Callbacks : { (flags?: string): void; (flags?: string): void; (flags?: string): void; (flags?: string): void; }, Symbol(Callbacks, Decl(overloadsAndTypeArgumentArity.ts, 0, 0), Decl(overloadsAndTypeArgumentArity.ts, 0, 49), Decl(overloadsAndTypeArgumentArity.ts, 1, 52), Decl(overloadsAndTypeArgumentArity.ts, 2, 57)) +>T1 : T1, Symbol(T1, Decl(overloadsAndTypeArgumentArity.ts, 2, 27)) +>T2 : T2, Symbol(T2, Decl(overloadsAndTypeArgumentArity.ts, 2, 30)) +>flags : string, Symbol(flags, Decl(overloadsAndTypeArgumentArity.ts, 2, 35)) declare function Callbacks(flags?: string): void; ->Callbacks : { (flags?: string): void; (flags?: string): void; (flags?: string): void; (flags?: string): void; } ->T1 : T1 ->T2 : T2 ->T3 : T3 ->flags : string +>Callbacks : { (flags?: string): void; (flags?: string): void; (flags?: string): void; (flags?: string): void; }, Symbol(Callbacks, Decl(overloadsAndTypeArgumentArity.ts, 0, 0), Decl(overloadsAndTypeArgumentArity.ts, 0, 49), Decl(overloadsAndTypeArgumentArity.ts, 1, 52), Decl(overloadsAndTypeArgumentArity.ts, 2, 57)) +>T1 : T1, Symbol(T1, Decl(overloadsAndTypeArgumentArity.ts, 3, 27)) +>T2 : T2, Symbol(T2, Decl(overloadsAndTypeArgumentArity.ts, 3, 30)) +>T3 : T3, Symbol(T3, Decl(overloadsAndTypeArgumentArity.ts, 3, 34)) +>flags : string, Symbol(flags, Decl(overloadsAndTypeArgumentArity.ts, 3, 39)) Callbacks('s'); // no error >Callbacks('s') : void ->Callbacks : { (flags?: string): void; (flags?: string): void; (flags?: string): void; (flags?: string): void; } +>Callbacks : { (flags?: string): void; (flags?: string): void; (flags?: string): void; (flags?: string): void; }, Symbol(Callbacks, Decl(overloadsAndTypeArgumentArity.ts, 0, 0), Decl(overloadsAndTypeArgumentArity.ts, 0, 49), Decl(overloadsAndTypeArgumentArity.ts, 1, 52), Decl(overloadsAndTypeArgumentArity.ts, 2, 57)) +>'s' : string new Callbacks('s'); // no error >new Callbacks('s') : any ->Callbacks : { (flags?: string): void; (flags?: string): void; (flags?: string): void; (flags?: string): void; } +>Callbacks : { (flags?: string): void; (flags?: string): void; (flags?: string): void; (flags?: string): void; }, Symbol(Callbacks, Decl(overloadsAndTypeArgumentArity.ts, 0, 0), Decl(overloadsAndTypeArgumentArity.ts, 0, 49), Decl(overloadsAndTypeArgumentArity.ts, 1, 52), Decl(overloadsAndTypeArgumentArity.ts, 2, 57)) +>'s' : string diff --git a/tests/baselines/reference/overloadsWithConstraints.types b/tests/baselines/reference/overloadsWithConstraints.types index 1493a0e1a2a..1e97d61bce0 100644 --- a/tests/baselines/reference/overloadsWithConstraints.types +++ b/tests/baselines/reference/overloadsWithConstraints.types @@ -1,22 +1,23 @@ === tests/cases/compiler/overloadsWithConstraints.ts === declare function f(x: T): T; ->f : { (x: T): T; (x: T): T; } ->T : T ->Number : Number ->x : T ->T : T ->T : T +>f : { (x: T): T; (x: T): T; }, Symbol(f, Decl(overloadsWithConstraints.ts, 0, 0), Decl(overloadsWithConstraints.ts, 0, 46)) +>T : T, Symbol(T, Decl(overloadsWithConstraints.ts, 0, 19)) +>Number : Number, Symbol(Number, Decl(lib.d.ts, 456, 40), Decl(lib.d.ts, 518, 11)) +>x : T, Symbol(x, Decl(overloadsWithConstraints.ts, 0, 37)) +>T : T, Symbol(T, Decl(overloadsWithConstraints.ts, 0, 19)) +>T : T, Symbol(T, Decl(overloadsWithConstraints.ts, 0, 19)) declare function f(x: T): T ->f : { (x: T): T; (x: T): T; } ->T : T ->String : String ->x : T ->T : T ->T : T +>f : { (x: T): T; (x: T): T; }, Symbol(f, Decl(overloadsWithConstraints.ts, 0, 0), Decl(overloadsWithConstraints.ts, 0, 46)) +>T : T, Symbol(T, Decl(overloadsWithConstraints.ts, 1, 19)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) +>x : T, Symbol(x, Decl(overloadsWithConstraints.ts, 1, 37)) +>T : T, Symbol(T, Decl(overloadsWithConstraints.ts, 1, 19)) +>T : T, Symbol(T, Decl(overloadsWithConstraints.ts, 1, 19)) var v = f(""); ->v : string +>v : string, Symbol(v, Decl(overloadsWithConstraints.ts, 3, 3)) >f("") : string ->f : { (x: T): T; (x: T): T; } +>f : { (x: T): T; (x: T): T; }, Symbol(f, Decl(overloadsWithConstraints.ts, 0, 0), Decl(overloadsWithConstraints.ts, 0, 46)) +>"" : string diff --git a/tests/baselines/reference/parameterPropertyInitializerInInitializers.types b/tests/baselines/reference/parameterPropertyInitializerInInitializers.types index c15ace849af..f61947366ff 100644 --- a/tests/baselines/reference/parameterPropertyInitializerInInitializers.types +++ b/tests/baselines/reference/parameterPropertyInitializerInInitializers.types @@ -1,9 +1,9 @@ === tests/cases/compiler/parameterPropertyInitializerInInitializers.ts === class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(parameterPropertyInitializerInInitializers.ts, 0, 0)) constructor(public x: number, public y: number = x) { } ->x : number ->y : number ->x : number +>x : number, Symbol(x, Decl(parameterPropertyInitializerInInitializers.ts, 1, 16)) +>y : number, Symbol(y, Decl(parameterPropertyInitializerInInitializers.ts, 1, 33)) +>x : number, Symbol(x, Decl(parameterPropertyInitializerInInitializers.ts, 1, 16)) } diff --git a/tests/baselines/reference/parameterPropertyReferencingOtherParameter.types b/tests/baselines/reference/parameterPropertyReferencingOtherParameter.types index 0cf31b8e3f8..462aa617afc 100644 --- a/tests/baselines/reference/parameterPropertyReferencingOtherParameter.types +++ b/tests/baselines/reference/parameterPropertyReferencingOtherParameter.types @@ -1,10 +1,10 @@ === tests/cases/compiler/parameterPropertyReferencingOtherParameter.ts === class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(parameterPropertyReferencingOtherParameter.ts, 0, 0)) constructor(public x: number, public y: number = x) { } ->x : number ->y : number ->x : number +>x : number, Symbol(x, Decl(parameterPropertyReferencingOtherParameter.ts, 1, 16)) +>y : number, Symbol(y, Decl(parameterPropertyReferencingOtherParameter.ts, 1, 33)) +>x : number, Symbol(x, Decl(parameterPropertyReferencingOtherParameter.ts, 1, 16)) } diff --git a/tests/baselines/reference/parameterReferencesOtherParameter1.types b/tests/baselines/reference/parameterReferencesOtherParameter1.types index bab9ef89189..a05d7bd03e9 100644 --- a/tests/baselines/reference/parameterReferencesOtherParameter1.types +++ b/tests/baselines/reference/parameterReferencesOtherParameter1.types @@ -1,21 +1,21 @@ === tests/cases/compiler/parameterReferencesOtherParameter1.ts === class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(parameterReferencesOtherParameter1.ts, 0, 0)) public name: string; ->name : string +>name : string, Symbol(name, Decl(parameterReferencesOtherParameter1.ts, 0, 13)) } class UI { ->UI : UI +>UI : UI, Symbol(UI, Decl(parameterReferencesOtherParameter1.ts, 2, 1)) constructor(model: Model, foo:string = model.name) ->model : Model ->Model : Model ->foo : string ->model.name : string ->model : Model ->name : string +>model : Model, Symbol(model, Decl(parameterReferencesOtherParameter1.ts, 5, 16)) +>Model : Model, Symbol(Model, Decl(parameterReferencesOtherParameter1.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(parameterReferencesOtherParameter1.ts, 5, 29)) +>model.name : string, Symbol(Model.name, Decl(parameterReferencesOtherParameter1.ts, 0, 13)) +>model : Model, Symbol(model, Decl(parameterReferencesOtherParameter1.ts, 5, 16)) +>name : string, Symbol(Model.name, Decl(parameterReferencesOtherParameter1.ts, 0, 13)) { } } diff --git a/tests/baselines/reference/parameterReferencesOtherParameter2.types b/tests/baselines/reference/parameterReferencesOtherParameter2.types index 3aac2cfd345..51c9221a990 100644 --- a/tests/baselines/reference/parameterReferencesOtherParameter2.types +++ b/tests/baselines/reference/parameterReferencesOtherParameter2.types @@ -1,21 +1,21 @@ === tests/cases/compiler/parameterReferencesOtherParameter2.ts === class Model { ->Model : Model +>Model : Model, Symbol(Model, Decl(parameterReferencesOtherParameter2.ts, 0, 0)) public name: string; ->name : string +>name : string, Symbol(name, Decl(parameterReferencesOtherParameter2.ts, 0, 13)) } class UI { ->UI : UI +>UI : UI, Symbol(UI, Decl(parameterReferencesOtherParameter2.ts, 2, 1)) constructor(model: Model, foo = model.name) ->model : Model ->Model : Model ->foo : string ->model.name : string ->model : Model ->name : string +>model : Model, Symbol(model, Decl(parameterReferencesOtherParameter2.ts, 5, 16)) +>Model : Model, Symbol(Model, Decl(parameterReferencesOtherParameter2.ts, 0, 0)) +>foo : string, Symbol(foo, Decl(parameterReferencesOtherParameter2.ts, 5, 29)) +>model.name : string, Symbol(Model.name, Decl(parameterReferencesOtherParameter2.ts, 0, 13)) +>model : Model, Symbol(model, Decl(parameterReferencesOtherParameter2.ts, 5, 16)) +>name : string, Symbol(Model.name, Decl(parameterReferencesOtherParameter2.ts, 0, 13)) { } } diff --git a/tests/baselines/reference/parametersWithNoAnnotationAreAny.types b/tests/baselines/reference/parametersWithNoAnnotationAreAny.types index 0424a169331..c6816842da4 100644 --- a/tests/baselines/reference/parametersWithNoAnnotationAreAny.types +++ b/tests/baselines/reference/parametersWithNoAnnotationAreAny.types @@ -1,87 +1,87 @@ === tests/cases/conformance/types/objectTypeLiteral/callSignatures/parametersWithNoAnnotationAreAny.ts === function foo(x) { return x; } ->foo : (x: any) => any ->x : any ->x : any +>foo : (x: any) => any, Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 0, 0)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 0, 13)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 0, 13)) var f = function foo(x) { return x; } ->f : (x: any) => any +>f : (x: any) => any, Symbol(f, Decl(parametersWithNoAnnotationAreAny.ts, 1, 3)) >function foo(x) { return x; } : (x: any) => any ->foo : (x: any) => any ->x : any ->x : any +>foo : (x: any) => any, Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 1, 7)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 1, 21)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 1, 21)) var f2 = (x) => x; ->f2 : (x: any) => any +>f2 : (x: any) => any, Symbol(f2, Decl(parametersWithNoAnnotationAreAny.ts, 2, 3)) >(x) => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 2, 10)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 2, 10)) var f3 = (x) => x; ->f3 : (x: any) => any +>f3 : (x: any) => any, Symbol(f3, Decl(parametersWithNoAnnotationAreAny.ts, 3, 3)) >(x) => x : (x: any) => any ->T : T ->x : any ->x : any +>T : T, Symbol(T, Decl(parametersWithNoAnnotationAreAny.ts, 3, 10)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 3, 13)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 3, 13)) class C { ->C : C +>C : C, Symbol(C, Decl(parametersWithNoAnnotationAreAny.ts, 3, 21)) foo(x) { ->foo : (x: any) => any ->x : any +>foo : (x: any) => any, Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 5, 9)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 6, 8)) return x; ->x : any +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 6, 8)) } } interface I { ->I : I +>I : I, Symbol(I, Decl(parametersWithNoAnnotationAreAny.ts, 9, 1)) foo(x); ->foo : (x: any) => any ->x : any +>foo : (x: any) => any, Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 11, 13)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 12, 8)) foo2(x, y); ->foo2 : (x: any, y: any) => any ->x : any ->y : any +>foo2 : (x: any, y: any) => any, Symbol(foo2, Decl(parametersWithNoAnnotationAreAny.ts, 12, 11)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 13, 9)) +>y : any, Symbol(y, Decl(parametersWithNoAnnotationAreAny.ts, 13, 11)) } var a: { ->a : { foo(x: any): any; } +>a : { foo(x: any): any; }, Symbol(a, Decl(parametersWithNoAnnotationAreAny.ts, 16, 3)) foo(x); ->foo : (x: any) => any ->x : any +>foo : (x: any) => any, Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 16, 8)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 17, 8)) } var b = { ->b : { foo(x: any): any; a: (x: any) => any; b: (x: any) => any; } +>b : { foo(x: any): any; a: (x: any) => any; b: (x: any) => any; }, Symbol(b, Decl(parametersWithNoAnnotationAreAny.ts, 20, 3)) >{ foo(x) { return x; }, a: function foo(x) { return x; }, b: (x) => x} : { foo(x: any): any; a: (x: any) => any; b: (x: any) => any; } foo(x) { ->foo : (x: any) => any ->x : any +>foo : (x: any) => any, Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 20, 9)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 21, 8)) return x; ->x : any +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 21, 8)) }, a: function foo(x) { ->a : (x: any) => any +>a : (x: any) => any, Symbol(a, Decl(parametersWithNoAnnotationAreAny.ts, 23, 6)) >function foo(x) { return x; } : (x: any) => any ->foo : (x: any) => any ->x : any +>foo : (x: any) => any, Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 24, 6)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 24, 20)) return x; ->x : any +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 24, 20)) }, b: (x) => x ->b : (x: any) => any +>b : (x: any) => any, Symbol(b, Decl(parametersWithNoAnnotationAreAny.ts, 26, 6)) >(x) => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 27, 8)) +>x : any, Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 27, 8)) } diff --git a/tests/baselines/reference/parenthesizedContexualTyping1.types b/tests/baselines/reference/parenthesizedContexualTyping1.types index 925347ed1b3..92aa02fac8a 100644 --- a/tests/baselines/reference/parenthesizedContexualTyping1.types +++ b/tests/baselines/reference/parenthesizedContexualTyping1.types @@ -1,289 +1,305 @@ === tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping1.ts === function fun(g: (x: T) => T, x: T): T; ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } ->T : T ->g : (x: T) => T ->x : T ->T : T ->T : T ->x : T ->T : T ->T : T +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 1, 13)) +>g : (x: T) => T, Symbol(g, Decl(parenthesizedContexualTyping1.ts, 1, 16)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 1, 20)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 1, 13)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 1, 13)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 1, 31)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 1, 13)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 1, 13)) function fun(g: (x: T) => T, h: (y: T) => T, x: T): T; ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } ->T : T ->g : (x: T) => T ->x : T ->T : T ->T : T ->h : (y: T) => T ->y : T ->T : T ->T : T ->x : T ->T : T ->T : T +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 2, 13)) +>g : (x: T) => T, Symbol(g, Decl(parenthesizedContexualTyping1.ts, 2, 16)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 2, 20)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 2, 13)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 2, 13)) +>h : (y: T) => T, Symbol(h, Decl(parenthesizedContexualTyping1.ts, 2, 31)) +>y : T, Symbol(y, Decl(parenthesizedContexualTyping1.ts, 2, 36)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 2, 13)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 2, 13)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 2, 47)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 2, 13)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 2, 13)) function fun(g: (x: T) => T, x: T): T { ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } ->T : T ->g : (x: T) => T ->x : T ->T : T ->T : T ->x : T ->T : T ->T : T +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 3, 13)) +>g : (x: T) => T, Symbol(g, Decl(parenthesizedContexualTyping1.ts, 3, 16)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 3, 20)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 3, 13)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 3, 13)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 3, 31)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 3, 13)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping1.ts, 3, 13)) return g(x); >g(x) : T ->g : (x: T) => T ->x : T +>g : (x: T) => T, Symbol(g, Decl(parenthesizedContexualTyping1.ts, 3, 16)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 3, 31)) } var a = fun(x => x, 10); ->a : number +>a : number, Symbol(a, Decl(parenthesizedContexualTyping1.ts, 7, 3)) >fun(x => x, 10) : number ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 7, 12)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 7, 12)) +>10 : number var b = fun((x => x), 10); ->b : number +>b : number, Symbol(b, Decl(parenthesizedContexualTyping1.ts, 8, 3)) >fun((x => x), 10) : number ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 8, 13)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 8, 13)) +>10 : number var c = fun(((x => x)), 10); ->c : number +>c : number, Symbol(c, Decl(parenthesizedContexualTyping1.ts, 9, 3)) >fun(((x => x)), 10) : number ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) >((x => x)) : (x: number) => number >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 9, 14)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 9, 14)) +>10 : number var d = fun((((x => x))), 10); ->d : number +>d : number, Symbol(d, Decl(parenthesizedContexualTyping1.ts, 10, 3)) >fun((((x => x))), 10) : number ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) >(((x => x))) : (x: number) => number >((x => x)) : (x: number) => number >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 10, 15)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 10, 15)) +>10 : number var e = fun(x => x, x => x, 10); ->e : number +>e : number, Symbol(e, Decl(parenthesizedContexualTyping1.ts, 12, 3)) >fun(x => x, x => x, 10) : number ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 12, 12)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 12, 12)) >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 12, 19)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 12, 19)) +>10 : number var f = fun((x => x), (x => x), 10); ->f : number +>f : number, Symbol(f, Decl(parenthesizedContexualTyping1.ts, 13, 3)) >fun((x => x), (x => x), 10) : number ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 13, 13)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 13, 13)) >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 13, 23)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 13, 23)) +>10 : number var g = fun(((x => x)), ((x => x)), 10); ->g : number +>g : number, Symbol(g, Decl(parenthesizedContexualTyping1.ts, 14, 3)) >fun(((x => x)), ((x => x)), 10) : number ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) >((x => x)) : (x: number) => number >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 14, 14)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 14, 14)) >((x => x)) : (x: number) => number >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 14, 26)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 14, 26)) +>10 : number var h = fun((((x => x))), ((x => x)), 10); ->h : number +>h : number, Symbol(h, Decl(parenthesizedContexualTyping1.ts, 15, 3)) >fun((((x => x))), ((x => x)), 10) : number ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) >(((x => x))) : (x: number) => number >((x => x)) : (x: number) => number >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 15, 15)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 15, 15)) >((x => x)) : (x: number) => number >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 15, 28)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 15, 28)) +>10 : number // Ternaries in parens var i = fun((Math.random() < 0.5 ? x => x : x => undefined), 10); ->i : any +>i : any, Symbol(i, Decl(parenthesizedContexualTyping1.ts, 18, 3)) >fun((Math.random() < 0.5 ? x => x : x => undefined), 10) : any ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) >(Math.random() < 0.5 ? x => x : x => undefined) : (x: number) => any >Math.random() < 0.5 ? x => x : x => undefined : (x: number) => any >Math.random() < 0.5 : boolean >Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number +>Math.random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>0.5 : number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 18, 34)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 18, 34)) >x => undefined : (x: number) => any ->x : number ->undefined : undefined +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 18, 43)) +>undefined : undefined, Symbol(undefined) +>10 : number var j = fun((Math.random() < 0.5 ? (x => x) : (x => undefined)), 10); ->j : any +>j : any, Symbol(j, Decl(parenthesizedContexualTyping1.ts, 19, 3)) >fun((Math.random() < 0.5 ? (x => x) : (x => undefined)), 10) : any ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) >(Math.random() < 0.5 ? (x => x) : (x => undefined)) : (x: number) => any >Math.random() < 0.5 ? (x => x) : (x => undefined) : (x: number) => any >Math.random() < 0.5 : boolean >Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number +>Math.random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>0.5 : number >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 19, 36)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 19, 36)) >(x => undefined) : (x: number) => any >x => undefined : (x: number) => any ->x : number ->undefined : undefined +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 19, 47)) +>undefined : undefined, Symbol(undefined) +>10 : number var k = fun((Math.random() < 0.5 ? (x => x) : (x => undefined)), x => x, 10); ->k : any +>k : any, Symbol(k, Decl(parenthesizedContexualTyping1.ts, 20, 3)) >fun((Math.random() < 0.5 ? (x => x) : (x => undefined)), x => x, 10) : any ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) >(Math.random() < 0.5 ? (x => x) : (x => undefined)) : (x: number) => any >Math.random() < 0.5 ? (x => x) : (x => undefined) : (x: number) => any >Math.random() < 0.5 : boolean >Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number +>Math.random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>0.5 : number >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 20, 36)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 20, 36)) >(x => undefined) : (x: number) => any >x => undefined : (x: number) => any ->x : number ->undefined : undefined +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 20, 47)) +>undefined : undefined, Symbol(undefined) >x => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 20, 64)) +>x : any, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 20, 64)) +>10 : number var l = fun(((Math.random() < 0.5 ? ((x => x)) : ((x => undefined)))), ((x => x)), 10); ->l : any +>l : any, Symbol(l, Decl(parenthesizedContexualTyping1.ts, 21, 3)) >fun(((Math.random() < 0.5 ? ((x => x)) : ((x => undefined)))), ((x => x)), 10) : any ->fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; } +>fun : { (g: (x: T) => T, x: T): T; (g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping1.ts, 0, 0), Decl(parenthesizedContexualTyping1.ts, 1, 41), Decl(parenthesizedContexualTyping1.ts, 2, 57)) >((Math.random() < 0.5 ? ((x => x)) : ((x => undefined)))) : (x: number) => any >(Math.random() < 0.5 ? ((x => x)) : ((x => undefined))) : (x: number) => any >Math.random() < 0.5 ? ((x => x)) : ((x => undefined)) : (x: number) => any >Math.random() < 0.5 : boolean >Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number +>Math.random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>0.5 : number >((x => x)) : (x: number) => number >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 21, 38)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 21, 38)) >((x => undefined)) : (x: number) => any >(x => undefined) : (x: number) => any >x => undefined : (x: number) => any ->x : number ->undefined : undefined +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 21, 51)) +>undefined : undefined, Symbol(undefined) >((x => x)) : (x: any) => any >(x => x) : (x: any) => any >x => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 21, 73)) +>x : any, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 21, 73)) +>10 : number var lambda1: (x: number) => number = x => x; ->lambda1 : (x: number) => number ->x : number +>lambda1 : (x: number) => number, Symbol(lambda1, Decl(parenthesizedContexualTyping1.ts, 23, 3)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 23, 14)) >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 23, 36)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 23, 36)) var lambda2: (x: number) => number = (x => x); ->lambda2 : (x: number) => number ->x : number +>lambda2 : (x: number) => number, Symbol(lambda2, Decl(parenthesizedContexualTyping1.ts, 24, 3)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 24, 14)) >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 24, 38)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 24, 38)) type ObjType = { x: (p: number) => string; y: (p: string) => number }; ->ObjType : { x: (p: number) => string; y: (p: string) => number; } ->x : (p: number) => string ->p : number ->y : (p: string) => number ->p : string +>ObjType : { x: (p: number) => string; y: (p: string) => number; }, Symbol(ObjType, Decl(parenthesizedContexualTyping1.ts, 24, 46)) +>x : (p: number) => string, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 26, 16)) +>p : number, Symbol(p, Decl(parenthesizedContexualTyping1.ts, 26, 21)) +>y : (p: string) => number, Symbol(y, Decl(parenthesizedContexualTyping1.ts, 26, 42)) +>p : string, Symbol(p, Decl(parenthesizedContexualTyping1.ts, 26, 47)) var obj1: ObjType = { x: x => (x, undefined), y: y => (y, undefined) }; ->obj1 : { x: (p: number) => string; y: (p: string) => number; } ->ObjType : { x: (p: number) => string; y: (p: string) => number; } +>obj1 : { x: (p: number) => string; y: (p: string) => number; }, Symbol(obj1, Decl(parenthesizedContexualTyping1.ts, 27, 3)) +>ObjType : { x: (p: number) => string; y: (p: string) => number; }, Symbol(ObjType, Decl(parenthesizedContexualTyping1.ts, 24, 46)) >{ x: x => (x, undefined), y: y => (y, undefined) } : { x: (x: number) => any; y: (y: string) => any; } ->x : (x: number) => any +>x : (x: number) => any, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 27, 21)) >x => (x, undefined) : (x: number) => any ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 27, 24)) >(x, undefined) : undefined >x, undefined : undefined ->x : number ->undefined : undefined ->y : (y: string) => any +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 27, 24)) +>undefined : undefined, Symbol(undefined) +>y : (y: string) => any, Symbol(y, Decl(parenthesizedContexualTyping1.ts, 27, 45)) >y => (y, undefined) : (y: string) => any ->y : string +>y : string, Symbol(y, Decl(parenthesizedContexualTyping1.ts, 27, 48)) >(y, undefined) : undefined >y, undefined : undefined ->y : string ->undefined : undefined +>y : string, Symbol(y, Decl(parenthesizedContexualTyping1.ts, 27, 48)) +>undefined : undefined, Symbol(undefined) var obj2: ObjType = ({ x: x => (x, undefined), y: y => (y, undefined) }); ->obj2 : { x: (p: number) => string; y: (p: string) => number; } ->ObjType : { x: (p: number) => string; y: (p: string) => number; } +>obj2 : { x: (p: number) => string; y: (p: string) => number; }, Symbol(obj2, Decl(parenthesizedContexualTyping1.ts, 28, 3)) +>ObjType : { x: (p: number) => string; y: (p: string) => number; }, Symbol(ObjType, Decl(parenthesizedContexualTyping1.ts, 24, 46)) >({ x: x => (x, undefined), y: y => (y, undefined) }) : { x: (x: number) => any; y: (y: string) => any; } >{ x: x => (x, undefined), y: y => (y, undefined) } : { x: (x: number) => any; y: (y: string) => any; } ->x : (x: number) => any +>x : (x: number) => any, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 28, 22)) >x => (x, undefined) : (x: number) => any ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 28, 25)) >(x, undefined) : undefined >x, undefined : undefined ->x : number ->undefined : undefined ->y : (y: string) => any +>x : number, Symbol(x, Decl(parenthesizedContexualTyping1.ts, 28, 25)) +>undefined : undefined, Symbol(undefined) +>y : (y: string) => any, Symbol(y, Decl(parenthesizedContexualTyping1.ts, 28, 46)) >y => (y, undefined) : (y: string) => any ->y : string +>y : string, Symbol(y, Decl(parenthesizedContexualTyping1.ts, 28, 49)) >(y, undefined) : undefined >y, undefined : undefined ->y : string ->undefined : undefined +>y : string, Symbol(y, Decl(parenthesizedContexualTyping1.ts, 28, 49)) +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/parenthesizedContexualTyping2.types b/tests/baselines/reference/parenthesizedContexualTyping2.types index 6824cc0f6e9..3b4976c9c45 100644 --- a/tests/baselines/reference/parenthesizedContexualTyping2.types +++ b/tests/baselines/reference/parenthesizedContexualTyping2.types @@ -6,345 +6,361 @@ // back if contextual typing is not taking effect. type FuncType = (x: (p: T) => T) => typeof x; ->FuncType : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T ->T : T ->p : T ->T : T ->T : T ->x : (p: T) => T +>FuncType : (x: (p: T) => T) => (p: T) => T, Symbol(FuncType, Decl(parenthesizedContexualTyping2.ts, 0, 0)) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 6, 17)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping2.ts, 6, 21)) +>p : T, Symbol(p, Decl(parenthesizedContexualTyping2.ts, 6, 24)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping2.ts, 6, 21)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping2.ts, 6, 21)) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 6, 17)) function fun(f: FuncType, x: T): T; ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } ->T : T ->f : (x: (p: T) => T) => (p: T) => T ->FuncType : (x: (p: T) => T) => (p: T) => T ->x : T ->T : T ->T : T +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping2.ts, 8, 13)) +>f : (x: (p: T) => T) => (p: T) => T, Symbol(f, Decl(parenthesizedContexualTyping2.ts, 8, 16)) +>FuncType : (x: (p: T) => T) => (p: T) => T, Symbol(FuncType, Decl(parenthesizedContexualTyping2.ts, 0, 0)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 8, 28)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping2.ts, 8, 13)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping2.ts, 8, 13)) function fun(f: FuncType, g: FuncType, x: T): T; ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } ->T : T ->f : (x: (p: T) => T) => (p: T) => T ->FuncType : (x: (p: T) => T) => (p: T) => T ->g : (x: (p: T) => T) => (p: T) => T ->FuncType : (x: (p: T) => T) => (p: T) => T ->x : T ->T : T ->T : T +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping2.ts, 9, 13)) +>f : (x: (p: T) => T) => (p: T) => T, Symbol(f, Decl(parenthesizedContexualTyping2.ts, 9, 16)) +>FuncType : (x: (p: T) => T) => (p: T) => T, Symbol(FuncType, Decl(parenthesizedContexualTyping2.ts, 0, 0)) +>g : (x: (p: T) => T) => (p: T) => T, Symbol(g, Decl(parenthesizedContexualTyping2.ts, 9, 28)) +>FuncType : (x: (p: T) => T) => (p: T) => T, Symbol(FuncType, Decl(parenthesizedContexualTyping2.ts, 0, 0)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 9, 41)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping2.ts, 9, 13)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping2.ts, 9, 13)) function fun(...rest: any[]): T { ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } ->T : T ->rest : any[] ->T : T +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping2.ts, 10, 13)) +>rest : any[], Symbol(rest, Decl(parenthesizedContexualTyping2.ts, 10, 16)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping2.ts, 10, 13)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } var a = fun(x => { x(undefined); return x; }, 10); ->a : number +>a : number, Symbol(a, Decl(parenthesizedContexualTyping2.ts, 14, 3)) >fun(x => { x(undefined); return x; }, 10) : number ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 14, 12)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 14, 12)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 14, 12)) +>10 : number var b = fun((x => { x(undefined); return x; }), 10); ->b : number +>b : number, Symbol(b, Decl(parenthesizedContexualTyping2.ts, 15, 3)) >fun((x => { x(undefined); return x; }), 10) : number ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 15, 13)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 15, 13)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 15, 13)) +>10 : number var c = fun(((x => { x(undefined); return x; })), 10); ->c : number +>c : number, Symbol(c, Decl(parenthesizedContexualTyping2.ts, 16, 3)) >fun(((x => { x(undefined); return x; })), 10) : number ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) >((x => { x(undefined); return x; })) : (x: (p: T) => T) => (p: T) => T >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 16, 14)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 16, 14)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 16, 14)) +>10 : number var d = fun((((x => { x(undefined); return x; }))), 10); ->d : number +>d : number, Symbol(d, Decl(parenthesizedContexualTyping2.ts, 17, 3)) >fun((((x => { x(undefined); return x; }))), 10) : number ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) >(((x => { x(undefined); return x; }))) : (x: (p: T) => T) => (p: T) => T >((x => { x(undefined); return x; })) : (x: (p: T) => T) => (p: T) => T >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 17, 15)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 17, 15)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 17, 15)) +>10 : number var e = fun(x => { x(undefined); return x; }, x => { x(undefined); return x; }, 10); ->e : number +>e : number, Symbol(e, Decl(parenthesizedContexualTyping2.ts, 19, 3)) >fun(x => { x(undefined); return x; }, x => { x(undefined); return x; }, 10) : number ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 19, 12)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 19, 12)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 19, 12)) >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 19, 53)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 19, 53)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 19, 53)) +>10 : number var f = fun((x => { x(undefined); return x; }),(x => { x(undefined); return x; }), 10); ->f : number +>f : number, Symbol(f, Decl(parenthesizedContexualTyping2.ts, 20, 3)) >fun((x => { x(undefined); return x; }),(x => { x(undefined); return x; }), 10) : number ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 20, 13)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 20, 13)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 20, 13)) >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 20, 56)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 20, 56)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 20, 56)) +>10 : number var g = fun(((x => { x(undefined); return x; })),((x => { x(undefined); return x; })), 10); ->g : number +>g : number, Symbol(g, Decl(parenthesizedContexualTyping2.ts, 21, 3)) >fun(((x => { x(undefined); return x; })),((x => { x(undefined); return x; })), 10) : number ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) >((x => { x(undefined); return x; })) : (x: (p: T) => T) => (p: T) => T >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 21, 14)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 21, 14)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 21, 14)) >((x => { x(undefined); return x; })) : (x: (p: T) => T) => (p: T) => T >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 21, 59)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 21, 59)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 21, 59)) +>10 : number var h = fun((((x => { x(undefined); return x; }))),((x => { x(undefined); return x; })), 10); ->h : number +>h : number, Symbol(h, Decl(parenthesizedContexualTyping2.ts, 22, 3)) >fun((((x => { x(undefined); return x; }))),((x => { x(undefined); return x; })), 10) : number ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) >(((x => { x(undefined); return x; }))) : (x: (p: T) => T) => (p: T) => T >((x => { x(undefined); return x; })) : (x: (p: T) => T) => (p: T) => T >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 22, 15)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 22, 15)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 22, 15)) >((x => { x(undefined); return x; })) : (x: (p: T) => T) => (p: T) => T >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 22, 61)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 22, 61)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 22, 61)) +>10 : number // Ternaries in parens var i = fun((Math.random() < 0.5 ? x => { x(undefined); return x; } : x => undefined), 10); ->i : number +>i : number, Symbol(i, Decl(parenthesizedContexualTyping2.ts, 25, 3)) >fun((Math.random() < 0.5 ? x => { x(undefined); return x; } : x => undefined), 10) : number ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) >(Math.random() < 0.5 ? x => { x(undefined); return x; } : x => undefined) : (x: (p: T) => T) => any >Math.random() < 0.5 ? x => { x(undefined); return x; } : x => undefined : (x: (p: T) => T) => any >Math.random() < 0.5 : boolean >Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number +>Math.random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>0.5 : number >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 25, 34)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 25, 34)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 25, 34)) >x => undefined : (x: (p: T) => T) => any ->x : (p: T) => T ->undefined : undefined +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 25, 77)) +>undefined : undefined, Symbol(undefined) +>10 : number var j = fun((Math.random() < 0.5 ? (x => { x(undefined); return x; }) : (x => undefined)), 10); ->j : number +>j : number, Symbol(j, Decl(parenthesizedContexualTyping2.ts, 26, 3)) >fun((Math.random() < 0.5 ? (x => { x(undefined); return x; }) : (x => undefined)), 10) : number ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) >(Math.random() < 0.5 ? (x => { x(undefined); return x; }) : (x => undefined)) : (x: (p: T) => T) => any >Math.random() < 0.5 ? (x => { x(undefined); return x; }) : (x => undefined) : (x: (p: T) => T) => any >Math.random() < 0.5 : boolean >Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number +>Math.random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>0.5 : number >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 26, 36)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 26, 36)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 26, 36)) >(x => undefined) : (x: (p: T) => T) => any >x => undefined : (x: (p: T) => T) => any ->x : (p: T) => T ->undefined : undefined +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 26, 81)) +>undefined : undefined, Symbol(undefined) +>10 : number var k = fun((Math.random() < 0.5 ? (x => { x(undefined); return x; }) : (x => undefined)), x => { x(undefined); return x; }, 10); ->k : number +>k : number, Symbol(k, Decl(parenthesizedContexualTyping2.ts, 27, 3)) >fun((Math.random() < 0.5 ? (x => { x(undefined); return x; }) : (x => undefined)), x => { x(undefined); return x; }, 10) : number ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) >(Math.random() < 0.5 ? (x => { x(undefined); return x; }) : (x => undefined)) : (x: (p: T) => T) => any >Math.random() < 0.5 ? (x => { x(undefined); return x; }) : (x => undefined) : (x: (p: T) => T) => any >Math.random() < 0.5 : boolean >Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number +>Math.random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>0.5 : number >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 27, 36)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 27, 36)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 27, 36)) >(x => undefined) : (x: (p: T) => T) => any >x => undefined : (x: (p: T) => T) => any ->x : (p: T) => T ->undefined : undefined +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 27, 81)) +>undefined : undefined, Symbol(undefined) >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 27, 98)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 27, 98)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 27, 98)) +>10 : number var l = fun(((Math.random() < 0.5 ? ((x => { x(undefined); return x; })) : ((x => undefined)))),((x => { x(undefined); return x; })), 10); ->l : number +>l : number, Symbol(l, Decl(parenthesizedContexualTyping2.ts, 28, 3)) >fun(((Math.random() < 0.5 ? ((x => { x(undefined); return x; })) : ((x => undefined)))),((x => { x(undefined); return x; })), 10) : number ->fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; } +>fun : { (f: (x: (p: T) => T) => (p: T) => T, x: T): T; (f: (x: (p: T) => T) => (p: T) => T, g: (x: (p: T) => T) => (p: T) => T, x: T): T; }, Symbol(fun, Decl(parenthesizedContexualTyping2.ts, 6, 48), Decl(parenthesizedContexualTyping2.ts, 8, 38), Decl(parenthesizedContexualTyping2.ts, 9, 51)) >((Math.random() < 0.5 ? ((x => { x(undefined); return x; })) : ((x => undefined)))) : (x: (p: T) => T) => any >(Math.random() < 0.5 ? ((x => { x(undefined); return x; })) : ((x => undefined))) : (x: (p: T) => T) => any >Math.random() < 0.5 ? ((x => { x(undefined); return x; })) : ((x => undefined)) : (x: (p: T) => T) => any >Math.random() < 0.5 : boolean >Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number +>Math.random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38)) +>0.5 : number >((x => { x(undefined); return x; })) : (x: (p: T) => T) => (p: T) => T >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 28, 38)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 28, 38)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 28, 38)) >((x => undefined)) : (x: (p: T) => T) => any >(x => undefined) : (x: (p: T) => T) => any >x => undefined : (x: (p: T) => T) => any ->x : (p: T) => T ->undefined : undefined +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 28, 85)) +>undefined : undefined, Symbol(undefined) >((x => { x(undefined); return x; })) : (x: (p: T) => T) => (p: T) => T >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 28, 106)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 28, 106)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 28, 106)) +>10 : number var lambda1: FuncType = x => { x(undefined); return x; }; ->lambda1 : (x: (p: T) => T) => (p: T) => T ->FuncType : (x: (p: T) => T) => (p: T) => T +>lambda1 : (x: (p: T) => T) => (p: T) => T, Symbol(lambda1, Decl(parenthesizedContexualTyping2.ts, 30, 3)) +>FuncType : (x: (p: T) => T) => (p: T) => T, Symbol(FuncType, Decl(parenthesizedContexualTyping2.ts, 0, 0)) >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 30, 23)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 30, 23)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 30, 23)) var lambda2: FuncType = (x => { x(undefined); return x; }); ->lambda2 : (x: (p: T) => T) => (p: T) => T ->FuncType : (x: (p: T) => T) => (p: T) => T +>lambda2 : (x: (p: T) => T) => (p: T) => T, Symbol(lambda2, Decl(parenthesizedContexualTyping2.ts, 31, 3)) +>FuncType : (x: (p: T) => T) => (p: T) => T, Symbol(FuncType, Decl(parenthesizedContexualTyping2.ts, 0, 0)) >(x => { x(undefined); return x; }) : (x: (p: T) => T) => (p: T) => T >x => { x(undefined); return x; } : (x: (p: T) => T) => (p: T) => T ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 31, 25)) >x(undefined) : number ->x : (p: T) => T ->undefined : undefined ->x : (p: T) => T +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 31, 25)) +>undefined : undefined, Symbol(undefined) +>x : (p: T) => T, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 31, 25)) type ObjType = { x: (p: number) => string; y: (p: string) => number }; ->ObjType : { x: (p: number) => string; y: (p: string) => number; } ->x : (p: number) => string ->p : number ->y : (p: string) => number ->p : string +>ObjType : { x: (p: number) => string; y: (p: string) => number; }, Symbol(ObjType, Decl(parenthesizedContexualTyping2.ts, 31, 67)) +>x : (p: number) => string, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 33, 16)) +>p : number, Symbol(p, Decl(parenthesizedContexualTyping2.ts, 33, 21)) +>y : (p: string) => number, Symbol(y, Decl(parenthesizedContexualTyping2.ts, 33, 42)) +>p : string, Symbol(p, Decl(parenthesizedContexualTyping2.ts, 33, 47)) var obj1: ObjType = { x: x => (x, undefined), y: y => (y, undefined) }; ->obj1 : { x: (p: number) => string; y: (p: string) => number; } ->ObjType : { x: (p: number) => string; y: (p: string) => number; } +>obj1 : { x: (p: number) => string; y: (p: string) => number; }, Symbol(obj1, Decl(parenthesizedContexualTyping2.ts, 34, 3)) +>ObjType : { x: (p: number) => string; y: (p: string) => number; }, Symbol(ObjType, Decl(parenthesizedContexualTyping2.ts, 31, 67)) >{ x: x => (x, undefined), y: y => (y, undefined) } : { x: (x: number) => any; y: (y: string) => any; } ->x : (x: number) => any +>x : (x: number) => any, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 34, 21)) >x => (x, undefined) : (x: number) => any ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 34, 24)) >(x, undefined) : undefined >x, undefined : undefined ->x : number ->undefined : undefined ->y : (y: string) => any +>x : number, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 34, 24)) +>undefined : undefined, Symbol(undefined) +>y : (y: string) => any, Symbol(y, Decl(parenthesizedContexualTyping2.ts, 34, 45)) >y => (y, undefined) : (y: string) => any ->y : string +>y : string, Symbol(y, Decl(parenthesizedContexualTyping2.ts, 34, 48)) >(y, undefined) : undefined >y, undefined : undefined ->y : string ->undefined : undefined +>y : string, Symbol(y, Decl(parenthesizedContexualTyping2.ts, 34, 48)) +>undefined : undefined, Symbol(undefined) var obj2: ObjType = ({ x: x => (x, undefined), y: y => (y, undefined) }); ->obj2 : { x: (p: number) => string; y: (p: string) => number; } ->ObjType : { x: (p: number) => string; y: (p: string) => number; } +>obj2 : { x: (p: number) => string; y: (p: string) => number; }, Symbol(obj2, Decl(parenthesizedContexualTyping2.ts, 35, 3)) +>ObjType : { x: (p: number) => string; y: (p: string) => number; }, Symbol(ObjType, Decl(parenthesizedContexualTyping2.ts, 31, 67)) >({ x: x => (x, undefined), y: y => (y, undefined) }) : { x: (x: number) => any; y: (y: string) => any; } >{ x: x => (x, undefined), y: y => (y, undefined) } : { x: (x: number) => any; y: (y: string) => any; } ->x : (x: number) => any +>x : (x: number) => any, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 35, 22)) >x => (x, undefined) : (x: number) => any ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 35, 25)) >(x, undefined) : undefined >x, undefined : undefined ->x : number ->undefined : undefined ->y : (y: string) => any +>x : number, Symbol(x, Decl(parenthesizedContexualTyping2.ts, 35, 25)) +>undefined : undefined, Symbol(undefined) +>y : (y: string) => any, Symbol(y, Decl(parenthesizedContexualTyping2.ts, 35, 46)) >y => (y, undefined) : (y: string) => any ->y : string +>y : string, Symbol(y, Decl(parenthesizedContexualTyping2.ts, 35, 49)) >(y, undefined) : undefined >y, undefined : undefined ->y : string ->undefined : undefined +>y : string, Symbol(y, Decl(parenthesizedContexualTyping2.ts, 35, 49)) +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/parenthesizedContexualTyping3.types b/tests/baselines/reference/parenthesizedContexualTyping3.types index 26c0207e523..0bc60b57e38 100644 --- a/tests/baselines/reference/parenthesizedContexualTyping3.types +++ b/tests/baselines/reference/parenthesizedContexualTyping3.types @@ -6,137 +6,160 @@ * tempFun - Can't have fun for too long. */ function tempFun(tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; ->tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; } ->T : T ->tempStrs : TemplateStringsArray ->TemplateStringsArray : TemplateStringsArray ->g : (x: T) => T ->x : T ->T : T ->T : T ->x : T ->T : T ->T : T +>tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(tempFun, Decl(parenthesizedContexualTyping3.ts, 0, 0), Decl(parenthesizedContexualTyping3.ts, 6, 77), Decl(parenthesizedContexualTyping3.ts, 7, 93)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 6, 17)) +>tempStrs : TemplateStringsArray, Symbol(tempStrs, Decl(parenthesizedContexualTyping3.ts, 6, 20)) +>TemplateStringsArray : TemplateStringsArray, Symbol(TemplateStringsArray, Decl(lib.d.ts, 518, 38)) +>g : (x: T) => T, Symbol(g, Decl(parenthesizedContexualTyping3.ts, 6, 51)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 6, 56)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 6, 17)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 6, 17)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 6, 67)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 6, 17)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 6, 17)) function tempFun(tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; ->tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; } ->T : T ->tempStrs : TemplateStringsArray ->TemplateStringsArray : TemplateStringsArray ->g : (x: T) => T ->x : T ->T : T ->T : T ->h : (y: T) => T ->y : T ->T : T ->T : T ->x : T ->T : T ->T : T +>tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(tempFun, Decl(parenthesizedContexualTyping3.ts, 0, 0), Decl(parenthesizedContexualTyping3.ts, 6, 77), Decl(parenthesizedContexualTyping3.ts, 7, 93)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 7, 17)) +>tempStrs : TemplateStringsArray, Symbol(tempStrs, Decl(parenthesizedContexualTyping3.ts, 7, 20)) +>TemplateStringsArray : TemplateStringsArray, Symbol(TemplateStringsArray, Decl(lib.d.ts, 518, 38)) +>g : (x: T) => T, Symbol(g, Decl(parenthesizedContexualTyping3.ts, 7, 51)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 7, 56)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 7, 17)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 7, 17)) +>h : (y: T) => T, Symbol(h, Decl(parenthesizedContexualTyping3.ts, 7, 67)) +>y : T, Symbol(y, Decl(parenthesizedContexualTyping3.ts, 7, 72)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 7, 17)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 7, 17)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 7, 83)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 7, 17)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 7, 17)) function tempFun(tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T { ->tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; } ->T : T ->tempStrs : TemplateStringsArray ->TemplateStringsArray : TemplateStringsArray ->g : (x: T) => T ->x : T ->T : T ->T : T ->x : T ->T : T ->T : T +>tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(tempFun, Decl(parenthesizedContexualTyping3.ts, 0, 0), Decl(parenthesizedContexualTyping3.ts, 6, 77), Decl(parenthesizedContexualTyping3.ts, 7, 93)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 8, 17)) +>tempStrs : TemplateStringsArray, Symbol(tempStrs, Decl(parenthesizedContexualTyping3.ts, 8, 20)) +>TemplateStringsArray : TemplateStringsArray, Symbol(TemplateStringsArray, Decl(lib.d.ts, 518, 38)) +>g : (x: T) => T, Symbol(g, Decl(parenthesizedContexualTyping3.ts, 8, 51)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 8, 56)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 8, 17)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 8, 17)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 8, 67)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 8, 17)) +>T : T, Symbol(T, Decl(parenthesizedContexualTyping3.ts, 8, 17)) return g(x); >g(x) : T ->g : (x: T) => T ->x : T +>g : (x: T) => T, Symbol(g, Decl(parenthesizedContexualTyping3.ts, 8, 51)) +>x : T, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 8, 67)) } var a = tempFun `${ x => x } ${ 10 }` ->a : number ->tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; } +>a : number, Symbol(a, Decl(parenthesizedContexualTyping3.ts, 12, 3)) +>tempFun `${ x => x } ${ 10 }` : number +>tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(tempFun, Decl(parenthesizedContexualTyping3.ts, 0, 0), Decl(parenthesizedContexualTyping3.ts, 6, 77), Decl(parenthesizedContexualTyping3.ts, 7, 93)) +>`${ x => x } ${ 10 }` : string >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 12, 19)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 12, 19)) +>10 : number var b = tempFun `${ (x => x) } ${ 10 }` ->b : number ->tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; } +>b : number, Symbol(b, Decl(parenthesizedContexualTyping3.ts, 13, 3)) +>tempFun `${ (x => x) } ${ 10 }` : number +>tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(tempFun, Decl(parenthesizedContexualTyping3.ts, 0, 0), Decl(parenthesizedContexualTyping3.ts, 6, 77), Decl(parenthesizedContexualTyping3.ts, 7, 93)) +>`${ (x => x) } ${ 10 }` : string >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 13, 21)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 13, 21)) +>10 : number var c = tempFun `${ ((x => x)) } ${ 10 }` ->c : number ->tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; } +>c : number, Symbol(c, Decl(parenthesizedContexualTyping3.ts, 14, 3)) +>tempFun `${ ((x => x)) } ${ 10 }` : number +>tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(tempFun, Decl(parenthesizedContexualTyping3.ts, 0, 0), Decl(parenthesizedContexualTyping3.ts, 6, 77), Decl(parenthesizedContexualTyping3.ts, 7, 93)) +>`${ ((x => x)) } ${ 10 }` : string >((x => x)) : (x: number) => number >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 14, 22)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 14, 22)) +>10 : number var d = tempFun `${ x => x } ${ x => x } ${ 10 }` ->d : number ->tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; } +>d : number, Symbol(d, Decl(parenthesizedContexualTyping3.ts, 15, 3)) +>tempFun `${ x => x } ${ x => x } ${ 10 }` : number +>tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(tempFun, Decl(parenthesizedContexualTyping3.ts, 0, 0), Decl(parenthesizedContexualTyping3.ts, 6, 77), Decl(parenthesizedContexualTyping3.ts, 7, 93)) +>`${ x => x } ${ x => x } ${ 10 }` : string >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 15, 19)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 15, 19)) >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 15, 31)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 15, 31)) +>10 : number var e = tempFun `${ x => x } ${ (x => x) } ${ 10 }` ->e : number ->tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; } +>e : number, Symbol(e, Decl(parenthesizedContexualTyping3.ts, 16, 3)) +>tempFun `${ x => x } ${ (x => x) } ${ 10 }` : number +>tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(tempFun, Decl(parenthesizedContexualTyping3.ts, 0, 0), Decl(parenthesizedContexualTyping3.ts, 6, 77), Decl(parenthesizedContexualTyping3.ts, 7, 93)) +>`${ x => x } ${ (x => x) } ${ 10 }` : string >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 16, 19)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 16, 19)) >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 16, 33)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 16, 33)) +>10 : number var f = tempFun `${ x => x } ${ ((x => x)) } ${ 10 }` ->f : number ->tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; } +>f : number, Symbol(f, Decl(parenthesizedContexualTyping3.ts, 17, 3)) +>tempFun `${ x => x } ${ ((x => x)) } ${ 10 }` : number +>tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(tempFun, Decl(parenthesizedContexualTyping3.ts, 0, 0), Decl(parenthesizedContexualTyping3.ts, 6, 77), Decl(parenthesizedContexualTyping3.ts, 7, 93)) +>`${ x => x } ${ ((x => x)) } ${ 10 }` : string >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 17, 19)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 17, 19)) >((x => x)) : (x: number) => number >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 17, 34)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 17, 34)) +>10 : number var g = tempFun `${ (x => x) } ${ (((x => x))) } ${ 10 }` ->g : number ->tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; } +>g : number, Symbol(g, Decl(parenthesizedContexualTyping3.ts, 18, 3)) +>tempFun `${ (x => x) } ${ (((x => x))) } ${ 10 }` : number +>tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(tempFun, Decl(parenthesizedContexualTyping3.ts, 0, 0), Decl(parenthesizedContexualTyping3.ts, 6, 77), Decl(parenthesizedContexualTyping3.ts, 7, 93)) +>`${ (x => x) } ${ (((x => x))) } ${ 10 }` : string >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 18, 21)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 18, 21)) >(((x => x))) : (x: number) => number >((x => x)) : (x: number) => number >(x => x) : (x: number) => number >x => x : (x: number) => number ->x : number ->x : number +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 18, 37)) +>x : number, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 18, 37)) +>10 : number var h = tempFun `${ (x => x) } ${ (((x => x))) } ${ undefined }` ->h : any ->tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; } +>h : any, Symbol(h, Decl(parenthesizedContexualTyping3.ts, 19, 3)) +>tempFun `${ (x => x) } ${ (((x => x))) } ${ undefined }` : any +>tempFun : { (tempStrs: TemplateStringsArray, g: (x: T) => T, x: T): T; (tempStrs: TemplateStringsArray, g: (x: T) => T, h: (y: T) => T, x: T): T; }, Symbol(tempFun, Decl(parenthesizedContexualTyping3.ts, 0, 0), Decl(parenthesizedContexualTyping3.ts, 6, 77), Decl(parenthesizedContexualTyping3.ts, 7, 93)) +>`${ (x => x) } ${ (((x => x))) } ${ undefined }` : string >(x => x) : (x: any) => any >x => x : (x: any) => any ->x : any ->x : any +>x : any, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 19, 21)) +>x : any, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 19, 21)) >(((x => x))) : (x: any) => any >((x => x)) : (x: any) => any >(x => x) : (x: any) => any >x => x : (x: any) => any ->x : any ->x : any ->undefined : undefined +>x : any, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 19, 37)) +>x : any, Symbol(x, Decl(parenthesizedContexualTyping3.ts, 19, 37)) +>undefined : undefined, Symbol(undefined) diff --git a/tests/baselines/reference/parenthesizedTypes.types b/tests/baselines/reference/parenthesizedTypes.types index 4b7129b3782..ca03d64bace 100644 --- a/tests/baselines/reference/parenthesizedTypes.types +++ b/tests/baselines/reference/parenthesizedTypes.types @@ -1,84 +1,84 @@ === tests/cases/conformance/types/specifyingTypes/typeLiterals/parenthesizedTypes.ts === var a: string; ->a : string +>a : string, Symbol(a, Decl(parenthesizedTypes.ts, 0, 3), Decl(parenthesizedTypes.ts, 1, 3), Decl(parenthesizedTypes.ts, 2, 3), Decl(parenthesizedTypes.ts, 3, 3)) var a: (string); ->a : string +>a : string, Symbol(a, Decl(parenthesizedTypes.ts, 0, 3), Decl(parenthesizedTypes.ts, 1, 3), Decl(parenthesizedTypes.ts, 2, 3), Decl(parenthesizedTypes.ts, 3, 3)) var a: ((string) | string | (((string)))); ->a : string +>a : string, Symbol(a, Decl(parenthesizedTypes.ts, 0, 3), Decl(parenthesizedTypes.ts, 1, 3), Decl(parenthesizedTypes.ts, 2, 3), Decl(parenthesizedTypes.ts, 3, 3)) var a: ((((((((((((((((((((((((((((((((((((((((string)))))))))))))))))))))))))))))))))))))))); ->a : string +>a : string, Symbol(a, Decl(parenthesizedTypes.ts, 0, 3), Decl(parenthesizedTypes.ts, 1, 3), Decl(parenthesizedTypes.ts, 2, 3), Decl(parenthesizedTypes.ts, 3, 3)) var b: (x: string) => string; ->b : (x: string) => string ->x : string +>b : (x: string) => string, Symbol(b, Decl(parenthesizedTypes.ts, 5, 3), Decl(parenthesizedTypes.ts, 6, 3)) +>x : string, Symbol(x, Decl(parenthesizedTypes.ts, 5, 8)) var b: ((x: (string)) => (string)); ->b : (x: string) => string ->x : string +>b : (x: string) => string, Symbol(b, Decl(parenthesizedTypes.ts, 5, 3), Decl(parenthesizedTypes.ts, 6, 3)) +>x : string, Symbol(x, Decl(parenthesizedTypes.ts, 6, 9)) var c: string[] | number[]; ->c : string[] | number[] +>c : string[] | number[], Symbol(c, Decl(parenthesizedTypes.ts, 8, 3), Decl(parenthesizedTypes.ts, 9, 3), Decl(parenthesizedTypes.ts, 10, 3)) var c: (string)[] | (number)[]; ->c : string[] | number[] +>c : string[] | number[], Symbol(c, Decl(parenthesizedTypes.ts, 8, 3), Decl(parenthesizedTypes.ts, 9, 3), Decl(parenthesizedTypes.ts, 10, 3)) var c: ((string)[]) | ((number)[]); ->c : string[] | number[] +>c : string[] | number[], Symbol(c, Decl(parenthesizedTypes.ts, 8, 3), Decl(parenthesizedTypes.ts, 9, 3), Decl(parenthesizedTypes.ts, 10, 3)) var d: (((x: string) => string) | ((x: number) => number))[]; ->d : (((x: string) => string) | ((x: number) => number))[] ->x : string ->x : number +>d : (((x: string) => string) | ((x: number) => number))[], Symbol(d, Decl(parenthesizedTypes.ts, 12, 3), Decl(parenthesizedTypes.ts, 13, 3), Decl(parenthesizedTypes.ts, 14, 3), Decl(parenthesizedTypes.ts, 15, 3), Decl(parenthesizedTypes.ts, 16, 3)) +>x : string, Symbol(x, Decl(parenthesizedTypes.ts, 12, 10)) +>x : number, Symbol(x, Decl(parenthesizedTypes.ts, 12, 36)) var d: ({ (x: string): string } | { (x: number): number })[]; ->d : (((x: string) => string) | ((x: number) => number))[] ->x : string ->x : number +>d : (((x: string) => string) | ((x: number) => number))[], Symbol(d, Decl(parenthesizedTypes.ts, 12, 3), Decl(parenthesizedTypes.ts, 13, 3), Decl(parenthesizedTypes.ts, 14, 3), Decl(parenthesizedTypes.ts, 15, 3), Decl(parenthesizedTypes.ts, 16, 3)) +>x : string, Symbol(x, Decl(parenthesizedTypes.ts, 13, 11)) +>x : number, Symbol(x, Decl(parenthesizedTypes.ts, 13, 37)) var d: Array<((x: string) => string) | ((x: number) => number)>; ->d : (((x: string) => string) | ((x: number) => number))[] ->Array : T[] ->x : string ->x : number +>d : (((x: string) => string) | ((x: number) => number))[], Symbol(d, Decl(parenthesizedTypes.ts, 12, 3), Decl(parenthesizedTypes.ts, 13, 3), Decl(parenthesizedTypes.ts, 14, 3), Decl(parenthesizedTypes.ts, 15, 3), Decl(parenthesizedTypes.ts, 16, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>x : string, Symbol(x, Decl(parenthesizedTypes.ts, 14, 15)) +>x : number, Symbol(x, Decl(parenthesizedTypes.ts, 14, 41)) var d: Array<{ (x: string): string } | { (x: number): number }>; ->d : (((x: string) => string) | ((x: number) => number))[] ->Array : T[] ->x : string ->x : number +>d : (((x: string) => string) | ((x: number) => number))[], Symbol(d, Decl(parenthesizedTypes.ts, 12, 3), Decl(parenthesizedTypes.ts, 13, 3), Decl(parenthesizedTypes.ts, 14, 3), Decl(parenthesizedTypes.ts, 15, 3), Decl(parenthesizedTypes.ts, 16, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>x : string, Symbol(x, Decl(parenthesizedTypes.ts, 15, 16)) +>x : number, Symbol(x, Decl(parenthesizedTypes.ts, 15, 42)) var d: (Array<{ (x: string): string } | { (x: number): number }>); ->d : (((x: string) => string) | ((x: number) => number))[] ->Array : T[] ->x : string ->x : number +>d : (((x: string) => string) | ((x: number) => number))[], Symbol(d, Decl(parenthesizedTypes.ts, 12, 3), Decl(parenthesizedTypes.ts, 13, 3), Decl(parenthesizedTypes.ts, 14, 3), Decl(parenthesizedTypes.ts, 15, 3), Decl(parenthesizedTypes.ts, 16, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>x : string, Symbol(x, Decl(parenthesizedTypes.ts, 16, 17)) +>x : number, Symbol(x, Decl(parenthesizedTypes.ts, 16, 43)) var e: typeof a[]; ->e : string[] ->a : string +>e : string[], Symbol(e, Decl(parenthesizedTypes.ts, 18, 3), Decl(parenthesizedTypes.ts, 19, 3)) +>a : string, Symbol(a, Decl(parenthesizedTypes.ts, 0, 3), Decl(parenthesizedTypes.ts, 1, 3), Decl(parenthesizedTypes.ts, 2, 3), Decl(parenthesizedTypes.ts, 3, 3)) var e: (typeof a)[]; ->e : string[] ->a : string +>e : string[], Symbol(e, Decl(parenthesizedTypes.ts, 18, 3), Decl(parenthesizedTypes.ts, 19, 3)) +>a : string, Symbol(a, Decl(parenthesizedTypes.ts, 0, 3), Decl(parenthesizedTypes.ts, 1, 3), Decl(parenthesizedTypes.ts, 2, 3), Decl(parenthesizedTypes.ts, 3, 3)) var f: (string) => string; ->f : (string: any) => string ->string : any +>f : (string: any) => string, Symbol(f, Decl(parenthesizedTypes.ts, 21, 3), Decl(parenthesizedTypes.ts, 22, 3)) +>string : any, Symbol(string, Decl(parenthesizedTypes.ts, 21, 8)) var f: (string: any) => string; ->f : (string: any) => string ->string : any +>f : (string: any) => string, Symbol(f, Decl(parenthesizedTypes.ts, 21, 3), Decl(parenthesizedTypes.ts, 22, 3)) +>string : any, Symbol(string, Decl(parenthesizedTypes.ts, 22, 8)) var g: [string, string]; ->g : [string, string] +>g : [string, string], Symbol(g, Decl(parenthesizedTypes.ts, 24, 3), Decl(parenthesizedTypes.ts, 25, 3), Decl(parenthesizedTypes.ts, 26, 3)) var g: [(string), string]; ->g : [string, string] +>g : [string, string], Symbol(g, Decl(parenthesizedTypes.ts, 24, 3), Decl(parenthesizedTypes.ts, 25, 3), Decl(parenthesizedTypes.ts, 26, 3)) var g: [(string), (((typeof a)))]; ->g : [string, string] ->a : string +>g : [string, string], Symbol(g, Decl(parenthesizedTypes.ts, 24, 3), Decl(parenthesizedTypes.ts, 25, 3), Decl(parenthesizedTypes.ts, 26, 3)) +>a : string, Symbol(a, Decl(parenthesizedTypes.ts, 0, 3), Decl(parenthesizedTypes.ts, 1, 3), Decl(parenthesizedTypes.ts, 2, 3), Decl(parenthesizedTypes.ts, 3, 3)) diff --git a/tests/baselines/reference/parseShortform.types b/tests/baselines/reference/parseShortform.types index e9e3f68b559..65349f35954 100644 --- a/tests/baselines/reference/parseShortform.types +++ b/tests/baselines/reference/parseShortform.types @@ -1,34 +1,34 @@ === tests/cases/compiler/parseShortform.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parseShortform.ts, 0, 0)) w: { ->w : { (): boolean; [s: string]: { x: any; y: any; }; [n: number]: { x: any; y: any; }; z: I; } +>w : { (): boolean; [s: string]: { x: any; y: any; }; [n: number]: { x: any; y: any; }; z: I; }, Symbol(w, Decl(parseShortform.ts, 0, 13)) z: I; ->z : I ->I : I +>z : I, Symbol(z, Decl(parseShortform.ts, 1, 8)) +>I : I, Symbol(I, Decl(parseShortform.ts, 0, 0)) (): boolean; [s: string]: { x: any; y: any; }; ->s : string ->x : any ->y : any +>s : string, Symbol(s, Decl(parseShortform.ts, 4, 9)) +>x : any, Symbol(x, Decl(parseShortform.ts, 4, 22)) +>y : any, Symbol(y, Decl(parseShortform.ts, 4, 30)) [n: number]: { x: any; y: any; }; ->n : number ->x : any ->y : any +>n : number, Symbol(n, Decl(parseShortform.ts, 5, 9)) +>x : any, Symbol(x, Decl(parseShortform.ts, 5, 22)) +>y : any, Symbol(y, Decl(parseShortform.ts, 5, 30)) }; x: boolean; ->x : boolean +>x : boolean, Symbol(x, Decl(parseShortform.ts, 6, 6)) y: (s: string) => boolean; ->y : (s: string) => boolean ->s : string +>y : (s: string) => boolean, Symbol(y, Decl(parseShortform.ts, 7, 15)) +>s : string, Symbol(s, Decl(parseShortform.ts, 8, 8)) z: I; ->z : I ->I : I +>z : I, Symbol(z, Decl(parseShortform.ts, 8, 30)) +>I : I, Symbol(I, Decl(parseShortform.ts, 0, 0)) } diff --git a/tests/baselines/reference/parser10.1.1-8gs.errors.txt b/tests/baselines/reference/parser10.1.1-8gs.errors.txt index c396c982bb8..185665d23da 100644 --- a/tests/baselines/reference/parser10.1.1-8gs.errors.txt +++ b/tests/baselines/reference/parser10.1.1-8gs.errors.txt @@ -1,10 +1,8 @@ tests/cases/conformance/parser/ecmascript5/parser10.1.1-8gs.ts(16,7): error TS2304: Cannot find name 'NotEarlyError'. -tests/cases/conformance/parser/ecmascript5/parser10.1.1-8gs.ts(17,5): error TS1134: Variable declaration expected. -tests/cases/conformance/parser/ecmascript5/parser10.1.1-8gs.ts(17,12): error TS1134: Variable declaration expected. -tests/cases/conformance/parser/ecmascript5/parser10.1.1-8gs.ts(17,14): error TS1134: Variable declaration expected. +tests/cases/conformance/parser/ecmascript5/parser10.1.1-8gs.ts(17,5): error TS1212: Identifier expected. 'public' is a reserved word in strict mode -==== tests/cases/conformance/parser/ecmascript5/parser10.1.1-8gs.ts (4 errors) ==== +==== tests/cases/conformance/parser/ecmascript5/parser10.1.1-8gs.ts (2 errors) ==== /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the @@ -25,9 +23,5 @@ tests/cases/conformance/parser/ecmascript5/parser10.1.1-8gs.ts(17,14): error TS1 !!! error TS2304: Cannot find name 'NotEarlyError'. var public = 1; ~~~~~~ -!!! error TS1134: Variable declaration expected. - ~ -!!! error TS1134: Variable declaration expected. - ~ -!!! error TS1134: Variable declaration expected. +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode \ No newline at end of file diff --git a/tests/baselines/reference/parser10.1.1-8gs.js b/tests/baselines/reference/parser10.1.1-8gs.js index 85227fab116..e7d342cf1f1 100644 --- a/tests/baselines/reference/parser10.1.1-8gs.js +++ b/tests/baselines/reference/parser10.1.1-8gs.js @@ -33,5 +33,4 @@ var public = 1; "use strict"; "use strict"; throw NotEarlyError; -var ; -1; +var public = 1; diff --git a/tests/baselines/reference/parser509668.errors.txt b/tests/baselines/reference/parser509668.errors.txt index 588bda6d91c..5ea380592ef 100644 --- a/tests/baselines/reference/parser509668.errors.txt +++ b/tests/baselines/reference/parser509668.errors.txt @@ -1,13 +1,10 @@ -tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509668.ts(3,16): error TS1003: Identifier expected. tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509668.ts(3,23): error TS1005: ',' expected. -==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509668.ts (2 errors) ==== +==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509668.ts (1 errors) ==== class Foo3 { // Doesn't work, but should constructor (public ...args: string[]) { } - ~~~~~~ -!!! error TS1003: Identifier expected. ~~~ !!! error TS1005: ',' expected. } \ No newline at end of file diff --git a/tests/baselines/reference/parser509668.js b/tests/baselines/reference/parser509668.js index a64c9c7b5b0..63c5d8a1a95 100644 --- a/tests/baselines/reference/parser509668.js +++ b/tests/baselines/reference/parser509668.js @@ -7,7 +7,7 @@ class Foo3 { //// [parser509668.js] var Foo3 = (function () { // Doesn't work, but should - function Foo3() { + function Foo3(public) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; diff --git a/tests/baselines/reference/parser509677.types b/tests/baselines/reference/parser509677.types index 2e5c8244923..b2449a7a8b4 100644 --- a/tests/baselines/reference/parser509677.types +++ b/tests/baselines/reference/parser509677.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509677.ts === var n: { y: string }; ->n : { y: string; } ->y : string +>n : { y: string; }, Symbol(n, Decl(parser509677.ts, 0, 3)) +>y : string, Symbol(y, Decl(parser509677.ts, 0, 8)) diff --git a/tests/baselines/reference/parser537152.types b/tests/baselines/reference/parser537152.types index 5c07bd6ae2d..450ca620367 100644 --- a/tests/baselines/reference/parser537152.types +++ b/tests/baselines/reference/parser537152.types @@ -1,10 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/RegressionTests/parser537152.ts === var t; ->t : any +>t : any, Symbol(t, Decl(parser537152.ts, 0, 3)) var y = t.e1; ->y : any +>y : any, Symbol(y, Decl(parser537152.ts, 1, 3)) >t.e1 : any ->t : any +>t : any, Symbol(t, Decl(parser537152.ts, 0, 3)) >e1 : any diff --git a/tests/baselines/reference/parser553699.errors.txt b/tests/baselines/reference/parser553699.errors.txt index 84bc6e60707..ea7e88cdf36 100644 --- a/tests/baselines/reference/parser553699.errors.txt +++ b/tests/baselines/reference/parser553699.errors.txt @@ -1,12 +1,15 @@ -tests/cases/conformance/parser/ecmascript5/RegressionTests/parser553699.ts(3,21): error TS1110: Type expected. +tests/cases/conformance/parser/ecmascript5/RegressionTests/parser553699.ts(3,21): error TS1216: Type expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/conformance/parser/ecmascript5/RegressionTests/parser553699.ts(3,21): error TS2304: Cannot find name 'public'. -==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser553699.ts (1 errors) ==== +==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser553699.ts (2 errors) ==== class Foo { constructor() { } public banana (x: public) { } ~~~~~~ -!!! error TS1110: Type expected. +!!! error TS1216: Type expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~ +!!! error TS2304: Cannot find name 'public'. } class Bar { diff --git a/tests/baselines/reference/parser553699.js b/tests/baselines/reference/parser553699.js index c4cc51bf5af..8570780e74a 100644 --- a/tests/baselines/reference/parser553699.js +++ b/tests/baselines/reference/parser553699.js @@ -12,7 +12,7 @@ class Bar { var Foo = (function () { function Foo() { } - Foo.prototype.banana = function (x, ) { }; + Foo.prototype.banana = function (x) { }; return Foo; })(); var Bar = (function () { diff --git a/tests/baselines/reference/parser579071.types b/tests/baselines/reference/parser579071.types index 6ae9576c036..dc6951e4b62 100644 --- a/tests/baselines/reference/parser579071.types +++ b/tests/baselines/reference/parser579071.types @@ -1,4 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/RegressionTests/parser579071.ts === var x = /fo(o/; ->x : RegExp +>x : RegExp, Symbol(x, Decl(parser579071.ts, 0, 3)) +>/fo(o/ : RegExp diff --git a/tests/baselines/reference/parser596700.types b/tests/baselines/reference/parser596700.types index d92d4b68ef5..d178aaa8600 100644 --- a/tests/baselines/reference/parser596700.types +++ b/tests/baselines/reference/parser596700.types @@ -1,4 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/RegressionTests/parser596700.ts === var regex2 = /[a-z/]$/i; ->regex2 : RegExp +>regex2 : RegExp, Symbol(regex2, Decl(parser596700.ts, 0, 3)) +>/[a-z/]$/i : RegExp diff --git a/tests/baselines/reference/parser630933.types b/tests/baselines/reference/parser630933.types index 4b1686fcbf2..6138e3a33d2 100644 --- a/tests/baselines/reference/parser630933.types +++ b/tests/baselines/reference/parser630933.types @@ -1,11 +1,13 @@ === tests/cases/conformance/parser/ecmascript5/RegressionTests/parser630933.ts === var a = "Hello"; ->a : string +>a : string, Symbol(a, Decl(parser630933.ts, 0, 3)) +>"Hello" : string var b = a.match(/\/ver=([^/]+)/); ->b : RegExpMatchArray +>b : RegExpMatchArray, Symbol(b, Decl(parser630933.ts, 1, 3)) >a.match(/\/ver=([^/]+)/) : RegExpMatchArray ->a.match : { (regexp: string): RegExpMatchArray; (regexp: RegExp): RegExpMatchArray; } ->a : string ->match : { (regexp: string): RegExpMatchArray; (regexp: RegExp): RegExpMatchArray; } +>a.match : { (regexp: string): RegExpMatchArray; (regexp: RegExp): RegExpMatchArray; }, Symbol(String.match, Decl(lib.d.ts, 317, 40), Decl(lib.d.ts, 323, 44)) +>a : string, Symbol(a, Decl(parser630933.ts, 0, 3)) +>match : { (regexp: string): RegExpMatchArray; (regexp: RegExp): RegExpMatchArray; }, Symbol(String.match, Decl(lib.d.ts, 317, 40), Decl(lib.d.ts, 323, 44)) +>/\/ver=([^/]+)/ : RegExp diff --git a/tests/baselines/reference/parser642331.errors.txt b/tests/baselines/reference/parser642331.errors.txt index fad38e66513..acff017d0ba 100644 --- a/tests/baselines/reference/parser642331.errors.txt +++ b/tests/baselines/reference/parser642331.errors.txt @@ -1,10 +1,10 @@ -tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331.ts(2,18): error TS1003: Identifier expected. +tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331.ts(2,18): error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. ==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331.ts (1 errors) ==== class test { constructor (static) { } ~~~~~~ -!!! error TS1003: Identifier expected. +!!! error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. } \ No newline at end of file diff --git a/tests/baselines/reference/parser642331.js b/tests/baselines/reference/parser642331.js index 3d88c096af3..056ea7dd384 100644 --- a/tests/baselines/reference/parser642331.js +++ b/tests/baselines/reference/parser642331.js @@ -6,7 +6,7 @@ class test { //// [parser642331.js] var test = (function () { - function test() { + function test(static) { } return test; })(); diff --git a/tests/baselines/reference/parser642331_1.errors.txt b/tests/baselines/reference/parser642331_1.errors.txt index c31cd9c5653..fe01123f865 100644 --- a/tests/baselines/reference/parser642331_1.errors.txt +++ b/tests/baselines/reference/parser642331_1.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331_1.ts(4,18): error TS1003: Identifier expected. +tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331_1.ts(4,18): error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. ==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331_1.ts (1 errors) ==== @@ -7,6 +7,6 @@ tests/cases/conformance/parser/ecmascript5/RegressionTests/parser642331_1.ts(4,1 class test { constructor (static) { } ~~~~~~ -!!! error TS1003: Identifier expected. +!!! error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. } \ No newline at end of file diff --git a/tests/baselines/reference/parser642331_1.js b/tests/baselines/reference/parser642331_1.js index d4de3c04d1d..83833ee6612 100644 --- a/tests/baselines/reference/parser642331_1.js +++ b/tests/baselines/reference/parser642331_1.js @@ -9,7 +9,7 @@ class test { //// [parser642331_1.js] "use strict"; var test = (function () { - function test() { + function test(static) { } return test; })(); diff --git a/tests/baselines/reference/parser643728.types b/tests/baselines/reference/parser643728.types index 55c5377b6f7..b60a82371c1 100644 --- a/tests/baselines/reference/parser643728.types +++ b/tests/baselines/reference/parser643728.types @@ -1,11 +1,11 @@ === tests/cases/conformance/parser/ecmascript5/RegressionTests/parser643728.ts === interface C { ->C : C +>C : C, Symbol(C, Decl(parser643728.ts, 0, 0)) foo; ->foo : any +>foo : any, Symbol(foo, Decl(parser643728.ts, 0, 13)) new; ->new : any +>new : any, Symbol(new, Decl(parser643728.ts, 1, 8)) } diff --git a/tests/baselines/reference/parser645086_3.types b/tests/baselines/reference/parser645086_3.types index 57ca07e1b2a..046bbec9b1d 100644 --- a/tests/baselines/reference/parser645086_3.types +++ b/tests/baselines/reference/parser645086_3.types @@ -1,4 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/RegressionTests/parser645086_3.ts === var v = /[\]/]/ ->v : RegExp +>v : RegExp, Symbol(v, Decl(parser645086_3.ts, 0, 3)) +>/[\]/]/ : RegExp diff --git a/tests/baselines/reference/parser645086_4.types b/tests/baselines/reference/parser645086_4.types index 01a702e2a06..3dca748b75a 100644 --- a/tests/baselines/reference/parser645086_4.types +++ b/tests/baselines/reference/parser645086_4.types @@ -1,4 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/RegressionTests/parser645086_4.ts === var v = /[^\]/]/ ->v : RegExp +>v : RegExp, Symbol(v, Decl(parser645086_4.ts, 0, 3)) +>/[^\]/]/ : RegExp diff --git a/tests/baselines/reference/parser645484.types b/tests/baselines/reference/parser645484.types index 60ab6719e3c..6434fe7afd9 100644 --- a/tests/baselines/reference/parser645484.types +++ b/tests/baselines/reference/parser645484.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/RegressionTests/parser645484.ts === var c : { ->c : { new?(): any; } +>c : { new?(): any; }, Symbol(c, Decl(parser645484.ts, 0, 3)) new?(): any; ->new : () => any +>new : () => any, Symbol(new, Decl(parser645484.ts, 0, 9)) } diff --git a/tests/baselines/reference/parser768531.types b/tests/baselines/reference/parser768531.types index 2da2298c8e2..f1bcedefae9 100644 --- a/tests/baselines/reference/parser768531.types +++ b/tests/baselines/reference/parser768531.types @@ -1,4 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/Fuzz/parser768531.ts === {a: 3} -No type information for this code./x/ -No type information for this code. \ No newline at end of file +>a : any +>3 : number + +/x/ +>/x/ : RegExp + diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic11.types b/tests/baselines/reference/parserAccessibilityAfterStatic11.types index c3b3699bb27..c48c0fbf422 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic11.types +++ b/tests/baselines/reference/parserAccessibilityAfterStatic11.types @@ -1,8 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic11.ts === class Outer ->Outer : Outer +>Outer : Outer, Symbol(Outer, Decl(parserAccessibilityAfterStatic11.ts, 0, 0)) { static public() {} ->public : () => void +>public : () => void, Symbol(Outer.public, Decl(parserAccessibilityAfterStatic11.ts, 1, 1)) } diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic14.types b/tests/baselines/reference/parserAccessibilityAfterStatic14.types index 6b4cff3e17f..886189c6d4e 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic14.types +++ b/tests/baselines/reference/parserAccessibilityAfterStatic14.types @@ -1,9 +1,9 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic14.ts === class Outer ->Outer : Outer +>Outer : Outer, Symbol(Outer, Decl(parserAccessibilityAfterStatic14.ts, 0, 0)) { static public() {} ->public : () => void ->T : T +>public : () => void, Symbol(Outer.public, Decl(parserAccessibilityAfterStatic14.ts, 1, 1)) +>T : T, Symbol(T, Decl(parserAccessibilityAfterStatic14.ts, 2, 14)) } diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic2.types b/tests/baselines/reference/parserAccessibilityAfterStatic2.types index d22f2fe7876..29e9dc417b8 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic2.types +++ b/tests/baselines/reference/parserAccessibilityAfterStatic2.types @@ -1,8 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic2.ts === class Outer ->Outer : Outer +>Outer : Outer, Symbol(Outer, Decl(parserAccessibilityAfterStatic2.ts, 0, 0)) { static public; ->public : any +>public : any, Symbol(Outer.public, Decl(parserAccessibilityAfterStatic2.ts, 1, 1)) } diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic3.types b/tests/baselines/reference/parserAccessibilityAfterStatic3.types index b8eeb416c92..bf702819d97 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic3.types +++ b/tests/baselines/reference/parserAccessibilityAfterStatic3.types @@ -1,8 +1,9 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic3.ts === class Outer ->Outer : Outer +>Outer : Outer, Symbol(Outer, Decl(parserAccessibilityAfterStatic3.ts, 0, 0)) { static public = 1; ->public : number +>public : number, Symbol(Outer.public, Decl(parserAccessibilityAfterStatic3.ts, 1, 1)) +>1 : number } diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic4.types b/tests/baselines/reference/parserAccessibilityAfterStatic4.types index 2e987cb0946..7dce98e2bab 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic4.types +++ b/tests/baselines/reference/parserAccessibilityAfterStatic4.types @@ -1,8 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic4.ts === class Outer ->Outer : Outer +>Outer : Outer, Symbol(Outer, Decl(parserAccessibilityAfterStatic4.ts, 0, 0)) { static public: number; ->public : number +>public : number, Symbol(Outer.public, Decl(parserAccessibilityAfterStatic4.ts, 1, 1)) } diff --git a/tests/baselines/reference/parserAccessibilityAfterStatic5.types b/tests/baselines/reference/parserAccessibilityAfterStatic5.types index 34cc33ce34c..b1ebc61b225 100644 --- a/tests/baselines/reference/parserAccessibilityAfterStatic5.types +++ b/tests/baselines/reference/parserAccessibilityAfterStatic5.types @@ -1,8 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic5.ts === class Outer ->Outer : Outer +>Outer : Outer, Symbol(Outer, Decl(parserAccessibilityAfterStatic5.ts, 0, 0)) { static public ->public : any +>public : any, Symbol(Outer.public, Decl(parserAccessibilityAfterStatic5.ts, 1, 1)) } diff --git a/tests/baselines/reference/parserAccessors2.types b/tests/baselines/reference/parserAccessors2.types index 9a0d9b0fdaa..333e8832d81 100644 --- a/tests/baselines/reference/parserAccessors2.types +++ b/tests/baselines/reference/parserAccessors2.types @@ -1,8 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors2.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserAccessors2.ts, 0, 0)) set Foo(a) { } ->Foo : any ->a : any +>Foo : any, Symbol(Foo, Decl(parserAccessors2.ts, 0, 9)) +>a : any, Symbol(a, Decl(parserAccessors2.ts, 1, 12)) } diff --git a/tests/baselines/reference/parserAccessors4.types b/tests/baselines/reference/parserAccessors4.types index d2db232d796..6f57a3a400c 100644 --- a/tests/baselines/reference/parserAccessors4.types +++ b/tests/baselines/reference/parserAccessors4.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/Accessors/parserAccessors4.ts === var v = { set Foo(a) { } }; ->v : { Foo: any; } +>v : { Foo: any; }, Symbol(v, Decl(parserAccessors4.ts, 0, 3)) >{ set Foo(a) { } } : { Foo: any; } ->Foo : any ->a : any +>Foo : any, Symbol(Foo, Decl(parserAccessors4.ts, 0, 9)) +>a : any, Symbol(a, Decl(parserAccessors4.ts, 0, 18)) diff --git a/tests/baselines/reference/parserAmbiguityWithBinaryOperator1.types b/tests/baselines/reference/parserAmbiguityWithBinaryOperator1.types index 1a087485e26..f5abbc06f08 100644 --- a/tests/baselines/reference/parserAmbiguityWithBinaryOperator1.types +++ b/tests/baselines/reference/parserAmbiguityWithBinaryOperator1.types @@ -1,20 +1,21 @@ === tests/cases/conformance/parser/ecmascript5/Generics/parserAmbiguityWithBinaryOperator1.ts === function f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(parserAmbiguityWithBinaryOperator1.ts, 0, 0)) var a, b, c; ->a : any ->b : any ->c : any +>a : any, Symbol(a, Decl(parserAmbiguityWithBinaryOperator1.ts, 1, 7)) +>b : any, Symbol(b, Decl(parserAmbiguityWithBinaryOperator1.ts, 1, 10)) +>c : any, Symbol(c, Decl(parserAmbiguityWithBinaryOperator1.ts, 1, 13)) if (a < b || b > (c + 1)) { } >a < b || b > (c + 1) : boolean >a < b : boolean ->a : any ->b : any +>a : any, Symbol(a, Decl(parserAmbiguityWithBinaryOperator1.ts, 1, 7)) +>b : any, Symbol(b, Decl(parserAmbiguityWithBinaryOperator1.ts, 1, 10)) >b > (c + 1) : boolean ->b : any +>b : any, Symbol(b, Decl(parserAmbiguityWithBinaryOperator1.ts, 1, 10)) >(c + 1) : any >c + 1 : any ->c : any +>c : any, Symbol(c, Decl(parserAmbiguityWithBinaryOperator1.ts, 1, 13)) +>1 : number } diff --git a/tests/baselines/reference/parserAmbiguityWithBinaryOperator2.types b/tests/baselines/reference/parserAmbiguityWithBinaryOperator2.types index 05ac7172cff..0b96fe5d140 100644 --- a/tests/baselines/reference/parserAmbiguityWithBinaryOperator2.types +++ b/tests/baselines/reference/parserAmbiguityWithBinaryOperator2.types @@ -1,20 +1,21 @@ === tests/cases/conformance/parser/ecmascript5/Generics/parserAmbiguityWithBinaryOperator2.ts === function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(parserAmbiguityWithBinaryOperator2.ts, 0, 0)) var a, b, c; ->a : any ->b : any ->c : any +>a : any, Symbol(a, Decl(parserAmbiguityWithBinaryOperator2.ts, 1, 7)) +>b : any, Symbol(b, Decl(parserAmbiguityWithBinaryOperator2.ts, 1, 10)) +>c : any, Symbol(c, Decl(parserAmbiguityWithBinaryOperator2.ts, 1, 13)) if (a < b && b > (c + 1)) { } >a < b && b > (c + 1) : boolean >a < b : boolean ->a : any ->b : any +>a : any, Symbol(a, Decl(parserAmbiguityWithBinaryOperator2.ts, 1, 7)) +>b : any, Symbol(b, Decl(parserAmbiguityWithBinaryOperator2.ts, 1, 10)) >b > (c + 1) : boolean ->b : any +>b : any, Symbol(b, Decl(parserAmbiguityWithBinaryOperator2.ts, 1, 10)) >(c + 1) : any >c + 1 : any ->c : any +>c : any, Symbol(c, Decl(parserAmbiguityWithBinaryOperator2.ts, 1, 13)) +>1 : number } diff --git a/tests/baselines/reference/parserAmbiguityWithBinaryOperator3.types b/tests/baselines/reference/parserAmbiguityWithBinaryOperator3.types index 03283115bf9..0771572c40b 100644 --- a/tests/baselines/reference/parserAmbiguityWithBinaryOperator3.types +++ b/tests/baselines/reference/parserAmbiguityWithBinaryOperator3.types @@ -1,21 +1,22 @@ === tests/cases/conformance/parser/ecmascript5/Generics/parserAmbiguityWithBinaryOperator3.ts === function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(parserAmbiguityWithBinaryOperator3.ts, 0, 0)) var a, b, c; ->a : any ->b : any ->c : any +>a : any, Symbol(a, Decl(parserAmbiguityWithBinaryOperator3.ts, 1, 7)) +>b : any, Symbol(b, Decl(parserAmbiguityWithBinaryOperator3.ts, 1, 10)) +>c : any, Symbol(c, Decl(parserAmbiguityWithBinaryOperator3.ts, 1, 13)) if (a < b && b < (c + 1)) { } >a < b && b < (c + 1) : boolean >a < b : boolean ->a : any ->b : any +>a : any, Symbol(a, Decl(parserAmbiguityWithBinaryOperator3.ts, 1, 7)) +>b : any, Symbol(b, Decl(parserAmbiguityWithBinaryOperator3.ts, 1, 10)) >b < (c + 1) : boolean ->b : any +>b : any, Symbol(b, Decl(parserAmbiguityWithBinaryOperator3.ts, 1, 10)) >(c + 1) : any >c + 1 : any ->c : any +>c : any, Symbol(c, Decl(parserAmbiguityWithBinaryOperator3.ts, 1, 13)) +>1 : number } diff --git a/tests/baselines/reference/parserArrayLiteralExpression1.types b/tests/baselines/reference/parserArrayLiteralExpression1.types index d31f5ee3bfb..03e097d01fc 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression1.types +++ b/tests/baselines/reference/parserArrayLiteralExpression1.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression1.ts === var v = []; ->v : any[] +>v : any[], Symbol(v, Decl(parserArrayLiteralExpression1.ts, 0, 3)) >[] : undefined[] diff --git a/tests/baselines/reference/parserArrayLiteralExpression10.types b/tests/baselines/reference/parserArrayLiteralExpression10.types index d324d42aa46..7555b2073e9 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression10.types +++ b/tests/baselines/reference/parserArrayLiteralExpression10.types @@ -1,5 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression10.ts === var v = [1,1,]; ->v : number[] +>v : number[], Symbol(v, Decl(parserArrayLiteralExpression10.ts, 0, 3)) >[1,1,] : number[] +>1 : number +>1 : number diff --git a/tests/baselines/reference/parserArrayLiteralExpression11.types b/tests/baselines/reference/parserArrayLiteralExpression11.types index 44ac1f6c5aa..f4dd5e3ee45 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression11.types +++ b/tests/baselines/reference/parserArrayLiteralExpression11.types @@ -1,5 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression11.ts === var v = [1,,1]; ->v : number[] +>v : number[], Symbol(v, Decl(parserArrayLiteralExpression11.ts, 0, 3)) >[1,,1] : number[] +>1 : number +> : undefined +>1 : number diff --git a/tests/baselines/reference/parserArrayLiteralExpression12.types b/tests/baselines/reference/parserArrayLiteralExpression12.types index a2ea5f12404..992f6cd41ef 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression12.types +++ b/tests/baselines/reference/parserArrayLiteralExpression12.types @@ -1,5 +1,9 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression12.ts === var v = [1,,,1]; ->v : number[] +>v : number[], Symbol(v, Decl(parserArrayLiteralExpression12.ts, 0, 3)) >[1,,,1] : number[] +>1 : number +> : undefined +> : undefined +>1 : number diff --git a/tests/baselines/reference/parserArrayLiteralExpression13.types b/tests/baselines/reference/parserArrayLiteralExpression13.types index bf8c15ac6b2..312882ff7a6 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression13.types +++ b/tests/baselines/reference/parserArrayLiteralExpression13.types @@ -1,5 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression13.ts === var v = [1,,1,,1]; ->v : number[] +>v : number[], Symbol(v, Decl(parserArrayLiteralExpression13.ts, 0, 3)) >[1,,1,,1] : number[] +>1 : number +> : undefined +>1 : number +> : undefined +>1 : number diff --git a/tests/baselines/reference/parserArrayLiteralExpression14.types b/tests/baselines/reference/parserArrayLiteralExpression14.types index 4de3139c4b8..3584229d7b7 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression14.types +++ b/tests/baselines/reference/parserArrayLiteralExpression14.types @@ -1,5 +1,16 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression14.ts === var v = [,,1,1,,1,,1,1,,1]; ->v : number[] +>v : number[], Symbol(v, Decl(parserArrayLiteralExpression14.ts, 0, 3)) >[,,1,1,,1,,1,1,,1] : number[] +> : undefined +> : undefined +>1 : number +>1 : number +> : undefined +>1 : number +> : undefined +>1 : number +>1 : number +> : undefined +>1 : number diff --git a/tests/baselines/reference/parserArrayLiteralExpression15.types b/tests/baselines/reference/parserArrayLiteralExpression15.types index b484c537f70..bd00aa2bd87 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression15.types +++ b/tests/baselines/reference/parserArrayLiteralExpression15.types @@ -1,5 +1,16 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression15.ts === var v = [,,1,1,,1,,1,1,,1,]; ->v : number[] +>v : number[], Symbol(v, Decl(parserArrayLiteralExpression15.ts, 0, 3)) >[,,1,1,,1,,1,1,,1,] : number[] +> : undefined +> : undefined +>1 : number +>1 : number +> : undefined +>1 : number +> : undefined +>1 : number +>1 : number +> : undefined +>1 : number diff --git a/tests/baselines/reference/parserArrayLiteralExpression2.types b/tests/baselines/reference/parserArrayLiteralExpression2.types index dd16681ab82..e45626a0e58 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression2.types +++ b/tests/baselines/reference/parserArrayLiteralExpression2.types @@ -1,5 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression2.ts === var v = [,]; ->v : any[] +>v : any[], Symbol(v, Decl(parserArrayLiteralExpression2.ts, 0, 3)) >[,] : undefined[] +> : undefined diff --git a/tests/baselines/reference/parserArrayLiteralExpression3.types b/tests/baselines/reference/parserArrayLiteralExpression3.types index d0fbaa9b67b..4669d02fa3e 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression3.types +++ b/tests/baselines/reference/parserArrayLiteralExpression3.types @@ -1,5 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression3.ts === var v = [,,]; ->v : any[] +>v : any[], Symbol(v, Decl(parserArrayLiteralExpression3.ts, 0, 3)) >[,,] : undefined[] +> : undefined +> : undefined diff --git a/tests/baselines/reference/parserArrayLiteralExpression4.types b/tests/baselines/reference/parserArrayLiteralExpression4.types index 0ceded3e62a..a452b86cf19 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression4.types +++ b/tests/baselines/reference/parserArrayLiteralExpression4.types @@ -1,5 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression4.ts === var v = [,,,]; ->v : any[] +>v : any[], Symbol(v, Decl(parserArrayLiteralExpression4.ts, 0, 3)) >[,,,] : undefined[] +> : undefined +> : undefined +> : undefined diff --git a/tests/baselines/reference/parserArrayLiteralExpression5.types b/tests/baselines/reference/parserArrayLiteralExpression5.types index b729f7fed86..c83b7069e61 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression5.types +++ b/tests/baselines/reference/parserArrayLiteralExpression5.types @@ -1,5 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression5.ts === var v = [1]; ->v : number[] +>v : number[], Symbol(v, Decl(parserArrayLiteralExpression5.ts, 0, 3)) >[1] : number[] +>1 : number diff --git a/tests/baselines/reference/parserArrayLiteralExpression6.types b/tests/baselines/reference/parserArrayLiteralExpression6.types index a72a8eda339..5adb277429d 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression6.types +++ b/tests/baselines/reference/parserArrayLiteralExpression6.types @@ -1,5 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression6.ts === var v = [,1]; ->v : number[] +>v : number[], Symbol(v, Decl(parserArrayLiteralExpression6.ts, 0, 3)) >[,1] : number[] +> : undefined +>1 : number diff --git a/tests/baselines/reference/parserArrayLiteralExpression7.types b/tests/baselines/reference/parserArrayLiteralExpression7.types index ca8c5d6e890..d79c0bcb25b 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression7.types +++ b/tests/baselines/reference/parserArrayLiteralExpression7.types @@ -1,5 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression7.ts === var v = [1,]; ->v : number[] +>v : number[], Symbol(v, Decl(parserArrayLiteralExpression7.ts, 0, 3)) >[1,] : number[] +>1 : number diff --git a/tests/baselines/reference/parserArrayLiteralExpression8.types b/tests/baselines/reference/parserArrayLiteralExpression8.types index 06824d77a1a..c6058352d6a 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression8.types +++ b/tests/baselines/reference/parserArrayLiteralExpression8.types @@ -1,5 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression8.ts === var v = [,1,]; ->v : number[] +>v : number[], Symbol(v, Decl(parserArrayLiteralExpression8.ts, 0, 3)) >[,1,] : number[] +> : undefined +>1 : number diff --git a/tests/baselines/reference/parserArrayLiteralExpression9.types b/tests/baselines/reference/parserArrayLiteralExpression9.types index 7107f9e4090..ed4777a4ef0 100644 --- a/tests/baselines/reference/parserArrayLiteralExpression9.types +++ b/tests/baselines/reference/parserArrayLiteralExpression9.types @@ -1,5 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/ArrayLiteralExpressions/parserArrayLiteralExpression9.ts === var v = [1,1]; ->v : number[] +>v : number[], Symbol(v, Decl(parserArrayLiteralExpression9.ts, 0, 3)) >[1,1] : number[] +>1 : number +>1 : number diff --git a/tests/baselines/reference/parserClassDeclaration16.types b/tests/baselines/reference/parserClassDeclaration16.types index 646e3db8789..a87c52a6c42 100644 --- a/tests/baselines/reference/parserClassDeclaration16.types +++ b/tests/baselines/reference/parserClassDeclaration16.types @@ -1,10 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration16.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserClassDeclaration16.ts, 0, 0)) foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(parserClassDeclaration16.ts, 0, 9), Decl(parserClassDeclaration16.ts, 1, 9)) foo() { } ->foo : () => any +>foo : () => any, Symbol(foo, Decl(parserClassDeclaration16.ts, 0, 9), Decl(parserClassDeclaration16.ts, 1, 9)) } diff --git a/tests/baselines/reference/parserClassDeclaration17.types b/tests/baselines/reference/parserClassDeclaration17.types index 665d4b8cb60..cfcc0f151db 100644 --- a/tests/baselines/reference/parserClassDeclaration17.types +++ b/tests/baselines/reference/parserClassDeclaration17.types @@ -1,17 +1,17 @@ === tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration17.ts === declare class Enumerator { ->Enumerator : Enumerator +>Enumerator : Enumerator, Symbol(Enumerator, Decl(parserClassDeclaration17.ts, 0, 0)) public atEnd(): boolean; ->atEnd : () => boolean +>atEnd : () => boolean, Symbol(atEnd, Decl(parserClassDeclaration17.ts, 0, 26)) public moveNext(); ->moveNext : () => any +>moveNext : () => any, Symbol(moveNext, Decl(parserClassDeclaration17.ts, 1, 28)) public item(): any; ->item : () => any +>item : () => any, Symbol(item, Decl(parserClassDeclaration17.ts, 2, 22)) constructor (o: any); ->o : any +>o : any, Symbol(o, Decl(parserClassDeclaration17.ts, 4, 17)) } diff --git a/tests/baselines/reference/parserClassDeclaration19.types b/tests/baselines/reference/parserClassDeclaration19.types index 1f6a25bbdc8..284aa74ef6b 100644 --- a/tests/baselines/reference/parserClassDeclaration19.types +++ b/tests/baselines/reference/parserClassDeclaration19.types @@ -1,9 +1,9 @@ === tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration19.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserClassDeclaration19.ts, 0, 0)) foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(parserClassDeclaration19.ts, 0, 9), Decl(parserClassDeclaration19.ts, 1, 10)) "foo"() { } } diff --git a/tests/baselines/reference/parserClassDeclaration20.types b/tests/baselines/reference/parserClassDeclaration20.types index e8014bf3af5..ba79c467e1a 100644 --- a/tests/baselines/reference/parserClassDeclaration20.types +++ b/tests/baselines/reference/parserClassDeclaration20.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration20.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserClassDeclaration20.ts, 0, 0)) 0(); "0"() { } diff --git a/tests/baselines/reference/parserClassDeclaration23.types b/tests/baselines/reference/parserClassDeclaration23.types index 71f293f5894..f5b998d036c 100644 --- a/tests/baselines/reference/parserClassDeclaration23.types +++ b/tests/baselines/reference/parserClassDeclaration23.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration23.ts === class C\u0032 { ->C\u0032 : C\u0032 +>C\u0032 : C\u0032, Symbol(C\u0032, Decl(parserClassDeclaration23.ts, 0, 0)) } diff --git a/tests/baselines/reference/parserClassDeclaration26.types b/tests/baselines/reference/parserClassDeclaration26.types index 567872e245e..84f2e6c6462 100644 --- a/tests/baselines/reference/parserClassDeclaration26.types +++ b/tests/baselines/reference/parserClassDeclaration26.types @@ -1,10 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration26.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserClassDeclaration26.ts, 0, 0)) var ->var : any +>var : any, Symbol(var, Decl(parserClassDeclaration26.ts, 0, 9)) public ->public : any +>public : any, Symbol(public, Decl(parserClassDeclaration26.ts, 1, 6)) } diff --git a/tests/baselines/reference/parserClassDeclaration7.d.types b/tests/baselines/reference/parserClassDeclaration7.d.types index 968f16d296a..914b97b4e3c 100644 --- a/tests/baselines/reference/parserClassDeclaration7.d.types +++ b/tests/baselines/reference/parserClassDeclaration7.d.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclaration7.d.ts === declare class C { ->C : C +>C : C, Symbol(C, Decl(parserClassDeclaration7.d.ts, 0, 0)) } diff --git a/tests/baselines/reference/parserClassDeclarationIndexSignature1.types b/tests/baselines/reference/parserClassDeclarationIndexSignature1.types index f4d2adeedcd..745ba2eee1a 100644 --- a/tests/baselines/reference/parserClassDeclarationIndexSignature1.types +++ b/tests/baselines/reference/parserClassDeclarationIndexSignature1.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/ClassDeclarations/parserClassDeclarationIndexSignature1.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserClassDeclarationIndexSignature1.ts, 0, 0)) [index:number]:number ->index : number +>index : number, Symbol(index, Decl(parserClassDeclarationIndexSignature1.ts, 1, 5)) } diff --git a/tests/baselines/reference/parserCommaInTypeMemberList1.types b/tests/baselines/reference/parserCommaInTypeMemberList1.types index 177372c3e27..bc15813b5b9 100644 --- a/tests/baselines/reference/parserCommaInTypeMemberList1.types +++ b/tests/baselines/reference/parserCommaInTypeMemberList1.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserCommaInTypeMemberList1.ts === var v: { workItem: any, width: string }; ->v : { workItem: any; width: string; } ->workItem : any ->width : string +>v : { workItem: any; width: string; }, Symbol(v, Decl(parserCommaInTypeMemberList1.ts, 0, 3)) +>workItem : any, Symbol(workItem, Decl(parserCommaInTypeMemberList1.ts, 0, 8)) +>width : string, Symbol(width, Decl(parserCommaInTypeMemberList1.ts, 0, 23)) diff --git a/tests/baselines/reference/parserComputedPropertyName36.errors.txt b/tests/baselines/reference/parserComputedPropertyName36.errors.txt index 8c647be13c9..6bcb5b52789 100644 --- a/tests/baselines/reference/parserComputedPropertyName36.errors.txt +++ b/tests/baselines/reference/parserComputedPropertyName36.errors.txt @@ -1,15 +1,15 @@ -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName36.ts(2,6): error TS1109: Expression expected. -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName36.ts(2,13): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName36.ts(2,14): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. +tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName36.ts(2,5): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol. +tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName36.ts(2,6): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName36.ts(2,6): error TS2304: Cannot find name 'public'. ==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName36.ts (3 errors) ==== class C { [public ]: string; + ~~~~~~~~~ +!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol. ~~~~~~ -!!! error TS1109: Expression expected. - ~ -!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. - ~ -!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. +!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~ +!!! error TS2304: Cannot find name 'public'. } \ No newline at end of file diff --git a/tests/baselines/reference/parserComputedPropertyName38.errors.txt b/tests/baselines/reference/parserComputedPropertyName38.errors.txt index 28daf322748..80589f1fde3 100644 --- a/tests/baselines/reference/parserComputedPropertyName38.errors.txt +++ b/tests/baselines/reference/parserComputedPropertyName38.errors.txt @@ -1,21 +1,12 @@ -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts(2,6): error TS1109: Expression expected. -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts(2,12): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts(2,13): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts(2,16): error TS1005: '=>' expected. -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts(3,1): error TS1128: Declaration or statement expected. +tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts(2,6): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts(2,6): error TS2304: Cannot find name 'public'. -==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts (5 errors) ==== +==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts (2 errors) ==== class C { [public]() { } ~~~~~~ -!!! error TS1109: Expression expected. - ~ -!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. - ~ -!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. - ~ -!!! error TS1005: '=>' expected. - } - ~ -!!! error TS1128: Declaration or statement expected. \ No newline at end of file +!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~ +!!! error TS2304: Cannot find name 'public'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserComputedPropertyName38.js b/tests/baselines/reference/parserComputedPropertyName38.js index e47f5233a77..822695e5cfd 100644 --- a/tests/baselines/reference/parserComputedPropertyName38.js +++ b/tests/baselines/reference/parserComputedPropertyName38.js @@ -5,5 +5,5 @@ class C { //// [parserComputedPropertyName38.js] class C { + [public]() { } } -(() => { }); diff --git a/tests/baselines/reference/parserComputedPropertyName39.errors.txt b/tests/baselines/reference/parserComputedPropertyName39.errors.txt index 32d59ad2403..0213127f6d9 100644 --- a/tests/baselines/reference/parserComputedPropertyName39.errors.txt +++ b/tests/baselines/reference/parserComputedPropertyName39.errors.txt @@ -1,22 +1,13 @@ -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts(3,6): error TS1109: Expression expected. -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts(3,12): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts(3,13): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts(3,16): error TS1005: '=>' expected. -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts(4,1): error TS1128: Declaration or statement expected. +tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts(3,6): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts(3,6): error TS2304: Cannot find name 'public'. -==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts (5 errors) ==== +==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts (2 errors) ==== "use strict"; class C { [public]() { } ~~~~~~ -!!! error TS1109: Expression expected. - ~ -!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. - ~ -!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. - ~ -!!! error TS1005: '=>' expected. - } - ~ -!!! error TS1128: Declaration or statement expected. \ No newline at end of file +!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~ +!!! error TS2304: Cannot find name 'public'. + } \ No newline at end of file diff --git a/tests/baselines/reference/parserComputedPropertyName39.js b/tests/baselines/reference/parserComputedPropertyName39.js index 541d1965385..8e2c4853bd3 100644 --- a/tests/baselines/reference/parserComputedPropertyName39.js +++ b/tests/baselines/reference/parserComputedPropertyName39.js @@ -7,5 +7,5 @@ class C { //// [parserComputedPropertyName39.js] "use strict"; class C { + [public]() { } } -(() => { }); diff --git a/tests/baselines/reference/parserConstructorDeclaration1.types b/tests/baselines/reference/parserConstructorDeclaration1.types index cc0d6f7a5c5..26a51e86ec9 100644 --- a/tests/baselines/reference/parserConstructorDeclaration1.types +++ b/tests/baselines/reference/parserConstructorDeclaration1.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration1.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserConstructorDeclaration1.ts, 0, 0)) public constructor() { } } diff --git a/tests/baselines/reference/parserDoStatement2.types b/tests/baselines/reference/parserDoStatement2.types index 62790b49103..5affaa958d6 100644 --- a/tests/baselines/reference/parserDoStatement2.types +++ b/tests/baselines/reference/parserDoStatement2.types @@ -1,3 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/Statements/parserDoStatement2.ts === do{;}while(false)false -No type information for this code. \ No newline at end of file +>false : boolean +>false : boolean + diff --git a/tests/baselines/reference/parserES5ComputedPropertyName2.js b/tests/baselines/reference/parserES5ComputedPropertyName2.js index d8a5bb45fac..4569c00d7b3 100644 --- a/tests/baselines/reference/parserES5ComputedPropertyName2.js +++ b/tests/baselines/reference/parserES5ComputedPropertyName2.js @@ -2,7 +2,5 @@ var v = { [e]: 1 }; //// [parserES5ComputedPropertyName2.js] -var v = (_a = {}, - _a[e] = 1, - _a); +var v = (_a = {}, _a[e] = 1, _a); var _a; diff --git a/tests/baselines/reference/parserES5ComputedPropertyName3.js b/tests/baselines/reference/parserES5ComputedPropertyName3.js index 26067467953..1fdb5ced65d 100644 --- a/tests/baselines/reference/parserES5ComputedPropertyName3.js +++ b/tests/baselines/reference/parserES5ComputedPropertyName3.js @@ -2,7 +2,5 @@ var v = { [e]() { } }; //// [parserES5ComputedPropertyName3.js] -var v = (_a = {}, - _a[e] = function () { }, - _a); +var v = (_a = {}, _a[e] = function () { }, _a); var _a; diff --git a/tests/baselines/reference/parserES5ComputedPropertyName4.js b/tests/baselines/reference/parserES5ComputedPropertyName4.js index 378624af08b..499e9a426d9 100644 --- a/tests/baselines/reference/parserES5ComputedPropertyName4.js +++ b/tests/baselines/reference/parserES5ComputedPropertyName4.js @@ -2,7 +2,9 @@ var v = { get [e]() { } }; //// [parserES5ComputedPropertyName4.js] -var v = (_a = {}, - _a[e] = Object.defineProperty({ get: function () { }, enumerable: true, configurable: true }), - _a); +var v = (_a = {}, Object.defineProperty(_a, e, { + get: function () { }, + enumerable: true, + configurable: true +}), _a); var _a; diff --git a/tests/baselines/reference/parserES5ForOfStatement17.types b/tests/baselines/reference/parserES5ForOfStatement17.types index 5dd0f6e9b93..d069fbb7710 100644 --- a/tests/baselines/reference/parserES5ForOfStatement17.types +++ b/tests/baselines/reference/parserES5ForOfStatement17.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement17.ts === for (var of; ;) { } ->of : any +>of : any, Symbol(of, Decl(parserES5ForOfStatement17.ts, 0, 8)) diff --git a/tests/baselines/reference/parserES5ForOfStatement18.types b/tests/baselines/reference/parserES5ForOfStatement18.types index f9544e39a31..81f26be8d22 100644 --- a/tests/baselines/reference/parserES5ForOfStatement18.types +++ b/tests/baselines/reference/parserES5ForOfStatement18.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement18.ts === for (var of of of) { } ->of : any ->of : any +>of : any, Symbol(of, Decl(parserES5ForOfStatement18.ts, 0, 8)) +>of : any, Symbol(of, Decl(parserES5ForOfStatement18.ts, 0, 8)) diff --git a/tests/baselines/reference/parserES5ForOfStatement19.types b/tests/baselines/reference/parserES5ForOfStatement19.types index 13abc7ae757..1ac5ef5ec7f 100644 --- a/tests/baselines/reference/parserES5ForOfStatement19.types +++ b/tests/baselines/reference/parserES5ForOfStatement19.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement19.ts === for (var of in of) { } ->of : any ->of : any +>of : any, Symbol(of, Decl(parserES5ForOfStatement19.ts, 0, 8)) +>of : any, Symbol(of, Decl(parserES5ForOfStatement19.ts, 0, 8)) diff --git a/tests/baselines/reference/parserEmptyStatement1.types b/tests/baselines/reference/parserEmptyStatement1.types index 585c87f202b..047bd7f8069 100644 --- a/tests/baselines/reference/parserEmptyStatement1.types +++ b/tests/baselines/reference/parserEmptyStatement1.types @@ -1,7 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/parserEmptyStatement1.ts === ; ; var a = 1; ->a : number +>a : number, Symbol(a, Decl(parserEmptyStatement1.ts, 1, 3)) +>1 : number ; diff --git a/tests/baselines/reference/parserEnum6.types b/tests/baselines/reference/parserEnum6.types index 9b9e2a4909a..d328d35624d 100644 --- a/tests/baselines/reference/parserEnum6.types +++ b/tests/baselines/reference/parserEnum6.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum6.ts === enum E { ->E : E +>E : E, Symbol(E, Decl(parserEnum6.ts, 0, 0)) "A", "B", "C" } diff --git a/tests/baselines/reference/parserEnumDeclaration1.types b/tests/baselines/reference/parserEnumDeclaration1.types index 86ac928d20f..a8309cebc64 100644 --- a/tests/baselines/reference/parserEnumDeclaration1.types +++ b/tests/baselines/reference/parserEnumDeclaration1.types @@ -1,10 +1,11 @@ === tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnumDeclaration1.ts === enum E { ->E : E +>E : E, Symbol(E, Decl(parserEnumDeclaration1.ts, 0, 0)) Foo = 1, ->Foo : E +>Foo : E, Symbol(E.Foo, Decl(parserEnumDeclaration1.ts, 0, 8)) +>1 : number Bar ->Bar : E +>Bar : E, Symbol(E.Bar, Decl(parserEnumDeclaration1.ts, 1, 10)) } diff --git a/tests/baselines/reference/parserEnumDeclaration2.d.types b/tests/baselines/reference/parserEnumDeclaration2.d.types index 782c530e505..b66f935e12f 100644 --- a/tests/baselines/reference/parserEnumDeclaration2.d.types +++ b/tests/baselines/reference/parserEnumDeclaration2.d.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnumDeclaration2.d.ts === declare enum E { ->E : E +>E : E, Symbol(E, Decl(parserEnumDeclaration2.d.ts, 0, 0)) } diff --git a/tests/baselines/reference/parserEnumDeclaration3.types b/tests/baselines/reference/parserEnumDeclaration3.types index a2a5542c060..3736ac4ffbb 100644 --- a/tests/baselines/reference/parserEnumDeclaration3.types +++ b/tests/baselines/reference/parserEnumDeclaration3.types @@ -1,7 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnumDeclaration3.ts === declare enum E { ->E : E +>E : E, Symbol(E, Decl(parserEnumDeclaration3.ts, 0, 0)) A = 1 ->A : E +>A : E, Symbol(E.A, Decl(parserEnumDeclaration3.ts, 0, 16)) +>1 : number } diff --git a/tests/baselines/reference/parserEnumDeclaration5.types b/tests/baselines/reference/parserEnumDeclaration5.types index be3559bd2b9..ff25d5ab77a 100644 --- a/tests/baselines/reference/parserEnumDeclaration5.types +++ b/tests/baselines/reference/parserEnumDeclaration5.types @@ -1,16 +1,18 @@ === tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnumDeclaration5.ts === enum E { ->E : E +>E : E, Symbol(E, Decl(parserEnumDeclaration5.ts, 0, 0)) A = 1, ->A : E +>A : E, Symbol(E.A, Decl(parserEnumDeclaration5.ts, 0, 8)) +>1 : number B, ->B : E +>B : E, Symbol(E.B, Decl(parserEnumDeclaration5.ts, 1, 10)) C = 2, ->C : E +>C : E, Symbol(E.C, Decl(parserEnumDeclaration5.ts, 2, 6)) +>2 : number D ->D : E +>D : E, Symbol(E.D, Decl(parserEnumDeclaration5.ts, 3, 10)) } diff --git a/tests/baselines/reference/parserExportAsFunctionIdentifier.types b/tests/baselines/reference/parserExportAsFunctionIdentifier.types index 6e8fb29287f..acf035eac9e 100644 --- a/tests/baselines/reference/parserExportAsFunctionIdentifier.types +++ b/tests/baselines/reference/parserExportAsFunctionIdentifier.types @@ -1,19 +1,19 @@ === tests/cases/conformance/parser/ecmascript5/parserExportAsFunctionIdentifier.ts === interface Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(parserExportAsFunctionIdentifier.ts, 0, 0)) export(): string; ->export : () => string +>export : () => string, Symbol(export, Decl(parserExportAsFunctionIdentifier.ts, 0, 15)) } var f: Foo; ->f : Foo ->Foo : Foo +>f : Foo, Symbol(f, Decl(parserExportAsFunctionIdentifier.ts, 4, 3)) +>Foo : Foo, Symbol(Foo, Decl(parserExportAsFunctionIdentifier.ts, 0, 0)) var x = f.export(); ->x : string +>x : string, Symbol(x, Decl(parserExportAsFunctionIdentifier.ts, 5, 3)) >f.export() : string ->f.export : () => string ->f : Foo ->export : () => string +>f.export : () => string, Symbol(Foo.export, Decl(parserExportAsFunctionIdentifier.ts, 0, 15)) +>f : Foo, Symbol(f, Decl(parserExportAsFunctionIdentifier.ts, 4, 3)) +>export : () => string, Symbol(Foo.export, Decl(parserExportAsFunctionIdentifier.ts, 0, 15)) diff --git a/tests/baselines/reference/parserForOfStatement17.types b/tests/baselines/reference/parserForOfStatement17.types index 64e15462dd6..48e4100f90f 100644 --- a/tests/baselines/reference/parserForOfStatement17.types +++ b/tests/baselines/reference/parserForOfStatement17.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement17.ts === for (var of; ;) { } ->of : any +>of : any, Symbol(of, Decl(parserForOfStatement17.ts, 0, 8)) diff --git a/tests/baselines/reference/parserForOfStatement18.types b/tests/baselines/reference/parserForOfStatement18.types index 8e3b52ac877..dc0be55fb50 100644 --- a/tests/baselines/reference/parserForOfStatement18.types +++ b/tests/baselines/reference/parserForOfStatement18.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement18.ts === for (var of of of) { } ->of : any ->of : any +>of : any, Symbol(of, Decl(parserForOfStatement18.ts, 0, 8)) +>of : any, Symbol(of, Decl(parserForOfStatement18.ts, 0, 8)) diff --git a/tests/baselines/reference/parserForOfStatement19.types b/tests/baselines/reference/parserForOfStatement19.types index 6fcc5e8f792..51a5e954a4b 100644 --- a/tests/baselines/reference/parserForOfStatement19.types +++ b/tests/baselines/reference/parserForOfStatement19.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement19.ts === for (var of in of) { } ->of : any ->of : any +>of : any, Symbol(of, Decl(parserForOfStatement19.ts, 0, 8)) +>of : any, Symbol(of, Decl(parserForOfStatement19.ts, 0, 8)) diff --git a/tests/baselines/reference/parserFunctionDeclaration1.d.types b/tests/baselines/reference/parserFunctionDeclaration1.d.types index cb62ab01c90..7269f7bfb36 100644 --- a/tests/baselines/reference/parserFunctionDeclaration1.d.types +++ b/tests/baselines/reference/parserFunctionDeclaration1.d.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration1.d.ts === declare function F(); ->F : () => any +>F : () => any, Symbol(F, Decl(parserFunctionDeclaration1.d.ts, 0, 0)) diff --git a/tests/baselines/reference/parserFunctionDeclaration5.types b/tests/baselines/reference/parserFunctionDeclaration5.types index a3cf71336ea..4ba1ea35227 100644 --- a/tests/baselines/reference/parserFunctionDeclaration5.types +++ b/tests/baselines/reference/parserFunctionDeclaration5.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration5.ts === function foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(parserFunctionDeclaration5.ts, 0, 0), Decl(parserFunctionDeclaration5.ts, 0, 15)) function foo() { } ->foo : () => any +>foo : () => any, Symbol(foo, Decl(parserFunctionDeclaration5.ts, 0, 0), Decl(parserFunctionDeclaration5.ts, 0, 15)) diff --git a/tests/baselines/reference/parserFunctionDeclaration8.types b/tests/baselines/reference/parserFunctionDeclaration8.types index ebb8ff8d409..baab2debc42 100644 --- a/tests/baselines/reference/parserFunctionDeclaration8.types +++ b/tests/baselines/reference/parserFunctionDeclaration8.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration8.ts === declare module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(parserFunctionDeclaration8.ts, 0, 0)) function foo(); ->foo : () => any +>foo : () => any, Symbol(foo, Decl(parserFunctionDeclaration8.ts, 0, 18)) } diff --git a/tests/baselines/reference/parserFunctionPropertyAssignment1.types b/tests/baselines/reference/parserFunctionPropertyAssignment1.types index 1b552cdfefd..62bbd8a5c0c 100644 --- a/tests/baselines/reference/parserFunctionPropertyAssignment1.types +++ b/tests/baselines/reference/parserFunctionPropertyAssignment1.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment1.ts === var v = { foo() { } }; ->v : { foo(): void; } +>v : { foo(): void; }, Symbol(v, Decl(parserFunctionPropertyAssignment1.ts, 0, 3)) >{ foo() { } } : { foo(): void; } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(parserFunctionPropertyAssignment1.ts, 0, 9)) diff --git a/tests/baselines/reference/parserFunctionPropertyAssignment2.types b/tests/baselines/reference/parserFunctionPropertyAssignment2.types index 747b66978af..3317dce91f4 100644 --- a/tests/baselines/reference/parserFunctionPropertyAssignment2.types +++ b/tests/baselines/reference/parserFunctionPropertyAssignment2.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment2.ts === var v = { 0() { } }; ->v : { 0(): void; } +>v : { 0(): void; }, Symbol(v, Decl(parserFunctionPropertyAssignment2.ts, 0, 3)) >{ 0() { } } : { 0(): void; } diff --git a/tests/baselines/reference/parserFunctionPropertyAssignment3.types b/tests/baselines/reference/parserFunctionPropertyAssignment3.types index 9fb2bb45fef..b420f308b0a 100644 --- a/tests/baselines/reference/parserFunctionPropertyAssignment3.types +++ b/tests/baselines/reference/parserFunctionPropertyAssignment3.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment3.ts === var v = { "foo"() { } }; ->v : { "foo"(): void; } +>v : { "foo"(): void; }, Symbol(v, Decl(parserFunctionPropertyAssignment3.ts, 0, 3)) >{ "foo"() { } } : { "foo"(): void; } diff --git a/tests/baselines/reference/parserFunctionPropertyAssignment4.types b/tests/baselines/reference/parserFunctionPropertyAssignment4.types index 6ab031518d4..4d4a33e3245 100644 --- a/tests/baselines/reference/parserFunctionPropertyAssignment4.types +++ b/tests/baselines/reference/parserFunctionPropertyAssignment4.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment4.ts === var v = { 0() { } }; ->v : { 0(): void; } +>v : { 0(): void; }, Symbol(v, Decl(parserFunctionPropertyAssignment4.ts, 0, 3)) >{ 0() { } } : { 0(): void; } ->T : T +>T : T, Symbol(T, Decl(parserFunctionPropertyAssignment4.ts, 0, 12)) diff --git a/tests/baselines/reference/parserGenericClass1.types b/tests/baselines/reference/parserGenericClass1.types index 546da49f9ab..6c2749a65e7 100644 --- a/tests/baselines/reference/parserGenericClass1.types +++ b/tests/baselines/reference/parserGenericClass1.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/Generics/parserGenericClass1.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(parserGenericClass1.ts, 0, 0)) +>T : T, Symbol(T, Decl(parserGenericClass1.ts, 0, 8)) } diff --git a/tests/baselines/reference/parserGenericClass2.types b/tests/baselines/reference/parserGenericClass2.types index b577eef39f3..f0218fa15a4 100644 --- a/tests/baselines/reference/parserGenericClass2.types +++ b/tests/baselines/reference/parserGenericClass2.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/Generics/parserGenericClass2.ts === class C { ->C : C ->K : K ->V : V +>C : C, Symbol(C, Decl(parserGenericClass2.ts, 0, 0)) +>K : K, Symbol(K, Decl(parserGenericClass2.ts, 0, 8)) +>V : V, Symbol(V, Decl(parserGenericClass2.ts, 0, 10)) } diff --git a/tests/baselines/reference/parserGenericConstraint1.types b/tests/baselines/reference/parserGenericConstraint1.types index 2b03617861c..393b64b10a8 100644 --- a/tests/baselines/reference/parserGenericConstraint1.types +++ b/tests/baselines/reference/parserGenericConstraint1.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint1.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(parserGenericConstraint1.ts, 0, 0)) +>T : T, Symbol(T, Decl(parserGenericConstraint1.ts, 0, 8)) } diff --git a/tests/baselines/reference/parserGreaterThanTokenAmbiguity1.types b/tests/baselines/reference/parserGreaterThanTokenAmbiguity1.types index 451ff65cdd9..0449fdda85a 100644 --- a/tests/baselines/reference/parserGreaterThanTokenAmbiguity1.types +++ b/tests/baselines/reference/parserGreaterThanTokenAmbiguity1.types @@ -1,4 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity1.ts === 1 >> 2; >1 >> 2 : number +>1 : number +>2 : number diff --git a/tests/baselines/reference/parserGreaterThanTokenAmbiguity10.types b/tests/baselines/reference/parserGreaterThanTokenAmbiguity10.types index f58be05c966..8b3d5dd2ba3 100644 --- a/tests/baselines/reference/parserGreaterThanTokenAmbiguity10.types +++ b/tests/baselines/reference/parserGreaterThanTokenAmbiguity10.types @@ -1,7 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity10.ts === 1 >1 // before>>> // after2 : number +>1 : number // before >>> // after 2; +>2 : number + diff --git a/tests/baselines/reference/parserGreaterThanTokenAmbiguity5.types b/tests/baselines/reference/parserGreaterThanTokenAmbiguity5.types index 770d3fa611f..609901bfdd5 100644 --- a/tests/baselines/reference/parserGreaterThanTokenAmbiguity5.types +++ b/tests/baselines/reference/parserGreaterThanTokenAmbiguity5.types @@ -1,7 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity5.ts === 1 >1 // before>> // after2 : number +>1 : number // before >> // after 2; +>2 : number + diff --git a/tests/baselines/reference/parserGreaterThanTokenAmbiguity6.types b/tests/baselines/reference/parserGreaterThanTokenAmbiguity6.types index fc7616eef90..e7aa311113c 100644 --- a/tests/baselines/reference/parserGreaterThanTokenAmbiguity6.types +++ b/tests/baselines/reference/parserGreaterThanTokenAmbiguity6.types @@ -1,4 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity6.ts === 1 >>> 2; >1 >>> 2 : number +>1 : number +>2 : number diff --git a/tests/baselines/reference/parserIndexMemberDeclaration1.types b/tests/baselines/reference/parserIndexMemberDeclaration1.types index 83bcfe79678..9a55d630a7f 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration1.types +++ b/tests/baselines/reference/parserIndexMemberDeclaration1.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration1.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserIndexMemberDeclaration1.ts, 0, 0)) [a: string]: number ->a : string +>a : string, Symbol(a, Decl(parserIndexMemberDeclaration1.ts, 1, 4)) } diff --git a/tests/baselines/reference/parserIndexMemberDeclaration2.types b/tests/baselines/reference/parserIndexMemberDeclaration2.types index 00ef9a54880..47b3ec2561b 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration2.types +++ b/tests/baselines/reference/parserIndexMemberDeclaration2.types @@ -1,10 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration2.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserIndexMemberDeclaration2.ts, 0, 0)) [a: string]: number ->a : string +>a : string, Symbol(a, Decl(parserIndexMemberDeclaration2.ts, 1, 4)) public v: number ->v : number +>v : number, Symbol(v, Decl(parserIndexMemberDeclaration2.ts, 1, 22)) } diff --git a/tests/baselines/reference/parserIndexMemberDeclaration3.types b/tests/baselines/reference/parserIndexMemberDeclaration3.types index 15a7d63ab8a..453a7c01c47 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration3.types +++ b/tests/baselines/reference/parserIndexMemberDeclaration3.types @@ -1,10 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration3.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserIndexMemberDeclaration3.ts, 0, 0)) [a: string]: number; ->a : string +>a : string, Symbol(a, Decl(parserIndexMemberDeclaration3.ts, 1, 4)) public v: number ->v : number +>v : number, Symbol(v, Decl(parserIndexMemberDeclaration3.ts, 1, 23)) } diff --git a/tests/baselines/reference/parserIndexMemberDeclaration4.types b/tests/baselines/reference/parserIndexMemberDeclaration4.types index a8d8880261d..5e6fcc10e46 100644 --- a/tests/baselines/reference/parserIndexMemberDeclaration4.types +++ b/tests/baselines/reference/parserIndexMemberDeclaration4.types @@ -1,8 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration4.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserIndexMemberDeclaration4.ts, 0, 0)) [a: string]: number; public v: number ->a : string ->v : number +>a : string, Symbol(a, Decl(parserIndexMemberDeclaration4.ts, 1, 4)) +>v : number, Symbol(v, Decl(parserIndexMemberDeclaration4.ts, 1, 23)) } diff --git a/tests/baselines/reference/parserInterfaceKeywordInEnum.types b/tests/baselines/reference/parserInterfaceKeywordInEnum.types index aa71126883d..4ae9784872d 100644 --- a/tests/baselines/reference/parserInterfaceKeywordInEnum.types +++ b/tests/baselines/reference/parserInterfaceKeywordInEnum.types @@ -1,8 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserInterfaceKeywordInEnum.ts === enum Bar { ->Bar : Bar +>Bar : Bar, Symbol(Bar, Decl(parserInterfaceKeywordInEnum.ts, 0, 0)) interface, ->interface : Bar +>interface : Bar, Symbol(Bar.interface, Decl(parserInterfaceKeywordInEnum.ts, 0, 10)) } diff --git a/tests/baselines/reference/parserInterfaceKeywordInEnum1.types b/tests/baselines/reference/parserInterfaceKeywordInEnum1.types index f17bfeacf88..f2e55e02125 100644 --- a/tests/baselines/reference/parserInterfaceKeywordInEnum1.types +++ b/tests/baselines/reference/parserInterfaceKeywordInEnum1.types @@ -1,10 +1,11 @@ === tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserInterfaceKeywordInEnum1.ts === "use strict"; +>"use strict" : string enum Bar { ->Bar : Bar +>Bar : Bar, Symbol(Bar, Decl(parserInterfaceKeywordInEnum1.ts, 0, 13)) interface, ->interface : Bar +>interface : Bar, Symbol(Bar.interface, Decl(parserInterfaceKeywordInEnum1.ts, 2, 10)) } diff --git a/tests/baselines/reference/parserKeywordsAsIdentifierName1.types b/tests/baselines/reference/parserKeywordsAsIdentifierName1.types index e917dc76cf0..08a91badb98 100644 --- a/tests/baselines/reference/parserKeywordsAsIdentifierName1.types +++ b/tests/baselines/reference/parserKeywordsAsIdentifierName1.types @@ -1,15 +1,18 @@ === tests/cases/conformance/parser/ecmascript5/parserKeywordsAsIdentifierName1.ts === var big = { ->big : { break: number; super: number; const: number; } +>big : { break: number; super: number; const: number; }, Symbol(big, Decl(parserKeywordsAsIdentifierName1.ts, 0, 3)) >{ break : 0, super : 0, const : 0} : { break: number; super: number; const: number; } break : 0, ->break : number +>break : number, Symbol(break, Decl(parserKeywordsAsIdentifierName1.ts, 0, 11)) +>0 : number super : 0, ->super : number +>super : number, Symbol(super, Decl(parserKeywordsAsIdentifierName1.ts, 1, 13)) +>0 : number const : 0 ->const : number +>const : number, Symbol(const, Decl(parserKeywordsAsIdentifierName1.ts, 2, 13)) +>0 : number } diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration4.types b/tests/baselines/reference/parserMemberAccessorDeclaration4.types index de4bc245d2e..b26fb6bdb8f 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration4.types +++ b/tests/baselines/reference/parserMemberAccessorDeclaration4.types @@ -1,8 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration4.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserMemberAccessorDeclaration4.ts, 0, 0)) set a(i) { } ->a : any ->i : any +>a : any, Symbol(a, Decl(parserMemberAccessorDeclaration4.ts, 0, 9)) +>i : any, Symbol(i, Decl(parserMemberAccessorDeclaration4.ts, 1, 8)) } diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration5.types b/tests/baselines/reference/parserMemberAccessorDeclaration5.types index d22ee2d775a..d55bce8a300 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration5.types +++ b/tests/baselines/reference/parserMemberAccessorDeclaration5.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration5.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserMemberAccessorDeclaration5.ts, 0, 0)) set "a"(i) { } ->i : any +>i : any, Symbol(i, Decl(parserMemberAccessorDeclaration5.ts, 1, 10)) } diff --git a/tests/baselines/reference/parserMemberAccessorDeclaration6.types b/tests/baselines/reference/parserMemberAccessorDeclaration6.types index a06b6ddfa0c..a954f3c9e0f 100644 --- a/tests/baselines/reference/parserMemberAccessorDeclaration6.types +++ b/tests/baselines/reference/parserMemberAccessorDeclaration6.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserMemberAccessorDeclaration6.ts, 0, 0)) set 0(i) { } ->i : any +>i : any, Symbol(i, Decl(parserMemberAccessorDeclaration6.ts, 1, 8)) } diff --git a/tests/baselines/reference/parserMethodSignature1.types b/tests/baselines/reference/parserMethodSignature1.types index fe016067294..7b96083e62d 100644 --- a/tests/baselines/reference/parserMethodSignature1.types +++ b/tests/baselines/reference/parserMethodSignature1.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature1.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserMethodSignature1.ts, 0, 0)) A(); ->A : () => any +>A : () => any, Symbol(A, Decl(parserMethodSignature1.ts, 0, 13)) } diff --git a/tests/baselines/reference/parserMethodSignature10.types b/tests/baselines/reference/parserMethodSignature10.types index 34b3bfcbd33..14bedb2872f 100644 --- a/tests/baselines/reference/parserMethodSignature10.types +++ b/tests/baselines/reference/parserMethodSignature10.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature10.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserMethodSignature10.ts, 0, 0)) 1?(); } diff --git a/tests/baselines/reference/parserMethodSignature11.types b/tests/baselines/reference/parserMethodSignature11.types index f47eda1e9cd..5e5bcb52d16 100644 --- a/tests/baselines/reference/parserMethodSignature11.types +++ b/tests/baselines/reference/parserMethodSignature11.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature11.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserMethodSignature11.ts, 0, 0)) 2(); ->T : T +>T : T, Symbol(T, Decl(parserMethodSignature11.ts, 1, 4)) } diff --git a/tests/baselines/reference/parserMethodSignature12.types b/tests/baselines/reference/parserMethodSignature12.types index b5b38fadb4b..e565898837b 100644 --- a/tests/baselines/reference/parserMethodSignature12.types +++ b/tests/baselines/reference/parserMethodSignature12.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature12.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserMethodSignature12.ts, 0, 0)) 3?(); ->T : T +>T : T, Symbol(T, Decl(parserMethodSignature12.ts, 1, 5)) } diff --git a/tests/baselines/reference/parserMethodSignature2.types b/tests/baselines/reference/parserMethodSignature2.types index 380c66c6a87..fcd0ae90f81 100644 --- a/tests/baselines/reference/parserMethodSignature2.types +++ b/tests/baselines/reference/parserMethodSignature2.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature2.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserMethodSignature2.ts, 0, 0)) B?(); ->B : () => any +>B : () => any, Symbol(B, Decl(parserMethodSignature2.ts, 0, 13)) } diff --git a/tests/baselines/reference/parserMethodSignature3.types b/tests/baselines/reference/parserMethodSignature3.types index c08081993fd..d4d49b2a05d 100644 --- a/tests/baselines/reference/parserMethodSignature3.types +++ b/tests/baselines/reference/parserMethodSignature3.types @@ -1,8 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature3.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserMethodSignature3.ts, 0, 0)) C(); ->C : () => any ->T : T +>C : () => any, Symbol(C, Decl(parserMethodSignature3.ts, 0, 13)) +>T : T, Symbol(T, Decl(parserMethodSignature3.ts, 1, 4)) } diff --git a/tests/baselines/reference/parserMethodSignature4.types b/tests/baselines/reference/parserMethodSignature4.types index e569b8e36a5..eedba56a14d 100644 --- a/tests/baselines/reference/parserMethodSignature4.types +++ b/tests/baselines/reference/parserMethodSignature4.types @@ -1,8 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature4.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserMethodSignature4.ts, 0, 0)) D?(); ->D : () => any ->T : T +>D : () => any, Symbol(D, Decl(parserMethodSignature4.ts, 0, 13)) +>T : T, Symbol(T, Decl(parserMethodSignature4.ts, 1, 5)) } diff --git a/tests/baselines/reference/parserMethodSignature5.types b/tests/baselines/reference/parserMethodSignature5.types index 86053a7c1f8..a45773f0681 100644 --- a/tests/baselines/reference/parserMethodSignature5.types +++ b/tests/baselines/reference/parserMethodSignature5.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature5.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserMethodSignature5.ts, 0, 0)) "E"(); } diff --git a/tests/baselines/reference/parserMethodSignature6.types b/tests/baselines/reference/parserMethodSignature6.types index 184cdc1148a..fd88d251f1e 100644 --- a/tests/baselines/reference/parserMethodSignature6.types +++ b/tests/baselines/reference/parserMethodSignature6.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature6.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserMethodSignature6.ts, 0, 0)) "F"?(); } diff --git a/tests/baselines/reference/parserMethodSignature7.types b/tests/baselines/reference/parserMethodSignature7.types index 58a029c0a4a..dc14d7502e5 100644 --- a/tests/baselines/reference/parserMethodSignature7.types +++ b/tests/baselines/reference/parserMethodSignature7.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature7.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserMethodSignature7.ts, 0, 0)) "G"(); ->T : T +>T : T, Symbol(T, Decl(parserMethodSignature7.ts, 1, 6)) } diff --git a/tests/baselines/reference/parserMethodSignature8.types b/tests/baselines/reference/parserMethodSignature8.types index 7480e3d92a2..a585fc9539b 100644 --- a/tests/baselines/reference/parserMethodSignature8.types +++ b/tests/baselines/reference/parserMethodSignature8.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature8.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserMethodSignature8.ts, 0, 0)) "H"?(); ->T : T +>T : T, Symbol(T, Decl(parserMethodSignature8.ts, 1, 7)) } diff --git a/tests/baselines/reference/parserMethodSignature9.types b/tests/baselines/reference/parserMethodSignature9.types index ac2f85d002d..13b2e858133 100644 --- a/tests/baselines/reference/parserMethodSignature9.types +++ b/tests/baselines/reference/parserMethodSignature9.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature9.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserMethodSignature9.ts, 0, 0)) 0(); } diff --git a/tests/baselines/reference/parserModifierOnPropertySignature2.types b/tests/baselines/reference/parserModifierOnPropertySignature2.types index adf8b411565..58fae659e5c 100644 --- a/tests/baselines/reference/parserModifierOnPropertySignature2.types +++ b/tests/baselines/reference/parserModifierOnPropertySignature2.types @@ -1,11 +1,11 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnPropertySignature2.ts === interface Foo{ ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(parserModifierOnPropertySignature2.ts, 0, 0)) public ->public : any +>public : any, Symbol(public, Decl(parserModifierOnPropertySignature2.ts, 0, 14)) biz; ->biz : any +>biz : any, Symbol(biz, Decl(parserModifierOnPropertySignature2.ts, 1, 10)) } diff --git a/tests/baselines/reference/parserModuleDeclaration11.types b/tests/baselines/reference/parserModuleDeclaration11.types index bd66d638ddf..69a50486069 100644 --- a/tests/baselines/reference/parserModuleDeclaration11.types +++ b/tests/baselines/reference/parserModuleDeclaration11.types @@ -1,22 +1,23 @@ === tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration11.ts === declare module string { ->string : typeof string +>string : typeof string, Symbol(string, Decl(parserModuleDeclaration11.ts, 0, 0)) interface X { } ->X : X +>X : X, Symbol(X, Decl(parserModuleDeclaration11.ts, 0, 23)) export function foo(s: string); ->foo : (s: string) => any ->s : string +>foo : (s: string) => any, Symbol(foo, Decl(parserModuleDeclaration11.ts, 1, 19)) +>s : string, Symbol(s, Decl(parserModuleDeclaration11.ts, 2, 24)) } string.foo("abc"); >string.foo("abc") : any ->string.foo : (s: string) => any ->string : typeof string ->foo : (s: string) => any +>string.foo : (s: string) => any, Symbol(string.foo, Decl(parserModuleDeclaration11.ts, 1, 19)) +>string : typeof string, Symbol(string, Decl(parserModuleDeclaration11.ts, 0, 0)) +>foo : (s: string) => any, Symbol(string.foo, Decl(parserModuleDeclaration11.ts, 1, 19)) +>"abc" : string var x: string.X; ->x : string.X ->string : unknown ->X : string.X +>x : string.X, Symbol(x, Decl(parserModuleDeclaration11.ts, 5, 3)) +>string : any, Symbol(string, Decl(parserModuleDeclaration11.ts, 0, 0)) +>X : string.X, Symbol(string.X, Decl(parserModuleDeclaration11.ts, 0, 23)) diff --git a/tests/baselines/reference/parserModuleDeclaration12.types b/tests/baselines/reference/parserModuleDeclaration12.types index cffa3cba358..f1d6af6c0d1 100644 --- a/tests/baselines/reference/parserModuleDeclaration12.types +++ b/tests/baselines/reference/parserModuleDeclaration12.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration12.ts === module A.string { ->A : unknown ->string : unknown +>A : any, Symbol(A, Decl(parserModuleDeclaration12.ts, 0, 0)) +>string : any, Symbol(string, Decl(parserModuleDeclaration12.ts, 0, 9)) } diff --git a/tests/baselines/reference/parserModuleDeclaration3.d.types b/tests/baselines/reference/parserModuleDeclaration3.d.types index 1fbd92c86af..6211189be1a 100644 --- a/tests/baselines/reference/parserModuleDeclaration3.d.types +++ b/tests/baselines/reference/parserModuleDeclaration3.d.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration3.d.ts === declare module M { ->M : unknown +>M : any, Symbol(M, Decl(parserModuleDeclaration3.d.ts, 0, 0)) } diff --git a/tests/baselines/reference/parserModuleDeclaration4.types b/tests/baselines/reference/parserModuleDeclaration4.types index 165378e62fa..13005663146 100644 --- a/tests/baselines/reference/parserModuleDeclaration4.types +++ b/tests/baselines/reference/parserModuleDeclaration4.types @@ -1,12 +1,12 @@ === tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration4.ts === module M { ->M : unknown +>M : any, Symbol(M, Decl(parserModuleDeclaration4.ts, 0, 0)) declare module M1 { ->M1 : unknown +>M1 : any, Symbol(M1, Decl(parserModuleDeclaration4.ts, 0, 10)) module M2 { ->M2 : unknown +>M2 : any, Symbol(M2, Decl(parserModuleDeclaration4.ts, 1, 21)) } } } diff --git a/tests/baselines/reference/parserModuleDeclaration6.types b/tests/baselines/reference/parserModuleDeclaration6.types index 012ad6f8270..235ca33a3c0 100644 --- a/tests/baselines/reference/parserModuleDeclaration6.types +++ b/tests/baselines/reference/parserModuleDeclaration6.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration6.ts === module number { ->number : unknown +>number : any, Symbol(number, Decl(parserModuleDeclaration6.ts, 0, 0)) } diff --git a/tests/baselines/reference/parserModuleDeclaration7.types b/tests/baselines/reference/parserModuleDeclaration7.types index 38f1c29e642..8fc1b457a67 100644 --- a/tests/baselines/reference/parserModuleDeclaration7.types +++ b/tests/baselines/reference/parserModuleDeclaration7.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration7.ts === module number.a { ->number : unknown ->a : unknown +>number : any, Symbol(number, Decl(parserModuleDeclaration7.ts, 0, 0)) +>a : any, Symbol(a, Decl(parserModuleDeclaration7.ts, 0, 14)) } diff --git a/tests/baselines/reference/parserModuleDeclaration8.types b/tests/baselines/reference/parserModuleDeclaration8.types index 474e81dbda0..2256c340283 100644 --- a/tests/baselines/reference/parserModuleDeclaration8.types +++ b/tests/baselines/reference/parserModuleDeclaration8.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration8.ts === module a.number { ->a : unknown ->number : unknown +>a : any, Symbol(a, Decl(parserModuleDeclaration8.ts, 0, 0)) +>number : any, Symbol(number, Decl(parserModuleDeclaration8.ts, 0, 9)) } diff --git a/tests/baselines/reference/parserModuleDeclaration9.types b/tests/baselines/reference/parserModuleDeclaration9.types index 1898d461290..87b11ad1f9f 100644 --- a/tests/baselines/reference/parserModuleDeclaration9.types +++ b/tests/baselines/reference/parserModuleDeclaration9.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration9.ts === module a.number.b { ->a : unknown ->number : unknown ->b : unknown +>a : any, Symbol(a, Decl(parserModuleDeclaration9.ts, 0, 0)) +>number : any, Symbol(number, Decl(parserModuleDeclaration9.ts, 0, 9)) +>b : any, Symbol(b, Decl(parserModuleDeclaration9.ts, 0, 16)) } diff --git a/tests/baselines/reference/parserObjectLiterals1.types b/tests/baselines/reference/parserObjectLiterals1.types index c38adbf55b6..8e7ac355094 100644 --- a/tests/baselines/reference/parserObjectLiterals1.types +++ b/tests/baselines/reference/parserObjectLiterals1.types @@ -1,7 +1,9 @@ === tests/cases/conformance/parser/ecmascript5/ObjectLiterals/parserObjectLiterals1.ts === var v = { a: 1, b: 2 }; ->v : { a: number; b: number; } +>v : { a: number; b: number; }, Symbol(v, Decl(parserObjectLiterals1.ts, 0, 3)) >{ a: 1, b: 2 } : { a: number; b: number; } ->a : number ->b : number +>a : number, Symbol(a, Decl(parserObjectLiterals1.ts, 0, 9)) +>1 : number +>b : number, Symbol(b, Decl(parserObjectLiterals1.ts, 0, 15)) +>2 : number diff --git a/tests/baselines/reference/parserObjectType1.types b/tests/baselines/reference/parserObjectType1.types index 4f333a41c4d..1a138038980 100644 --- a/tests/baselines/reference/parserObjectType1.types +++ b/tests/baselines/reference/parserObjectType1.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType1.ts === var v: {}; ->v : {} +>v : {}, Symbol(v, Decl(parserObjectType1.ts, 0, 3)) diff --git a/tests/baselines/reference/parserObjectType2.types b/tests/baselines/reference/parserObjectType2.types index cdc055a1660..cbb0070bbc6 100644 --- a/tests/baselines/reference/parserObjectType2.types +++ b/tests/baselines/reference/parserObjectType2.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType2.ts === var v: { x: number }; ->v : { x: number; } ->x : number +>v : { x: number; }, Symbol(v, Decl(parserObjectType2.ts, 0, 3)) +>x : number, Symbol(x, Decl(parserObjectType2.ts, 0, 8)) diff --git a/tests/baselines/reference/parserObjectType3.types b/tests/baselines/reference/parserObjectType3.types index 2cc6e50e807..beae1c5016f 100644 --- a/tests/baselines/reference/parserObjectType3.types +++ b/tests/baselines/reference/parserObjectType3.types @@ -1,11 +1,11 @@ === tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType3.ts === var v: { ->v : { x: any; y: any; } +>v : { x: any; y: any; }, Symbol(v, Decl(parserObjectType3.ts, 0, 3)) x; ->x : any +>x : any, Symbol(x, Decl(parserObjectType3.ts, 0, 8)) y ->y : any +>y : any, Symbol(y, Decl(parserObjectType3.ts, 1, 4)) }; diff --git a/tests/baselines/reference/parserObjectType4.types b/tests/baselines/reference/parserObjectType4.types index bbed75a7478..ae984e4d9e3 100644 --- a/tests/baselines/reference/parserObjectType4.types +++ b/tests/baselines/reference/parserObjectType4.types @@ -1,11 +1,11 @@ === tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType4.ts === var v: { ->v : { x: any; y: any; } +>v : { x: any; y: any; }, Symbol(v, Decl(parserObjectType4.ts, 0, 3)) x ->x : any +>x : any, Symbol(x, Decl(parserObjectType4.ts, 0, 8)) y ->y : any +>y : any, Symbol(y, Decl(parserObjectType4.ts, 1, 3)) }; diff --git a/tests/baselines/reference/parserOptionalTypeMembers1.types b/tests/baselines/reference/parserOptionalTypeMembers1.types index 7ede18a1d92..d9e1c251b4d 100644 --- a/tests/baselines/reference/parserOptionalTypeMembers1.types +++ b/tests/baselines/reference/parserOptionalTypeMembers1.types @@ -1,23 +1,23 @@ === tests/cases/conformance/parser/ecmascript5/parserOptionalTypeMembers1.ts === interface PropertyDescriptor2 { ->PropertyDescriptor2 : PropertyDescriptor2 +>PropertyDescriptor2 : PropertyDescriptor2, Symbol(PropertyDescriptor2, Decl(parserOptionalTypeMembers1.ts, 0, 0)) configurable?: boolean; ->configurable : boolean +>configurable : boolean, Symbol(configurable, Decl(parserOptionalTypeMembers1.ts, 0, 31)) enumerable?: boolean; ->enumerable : boolean +>enumerable : boolean, Symbol(enumerable, Decl(parserOptionalTypeMembers1.ts, 1, 27)) value?: any; ->value : any +>value : any, Symbol(value, Decl(parserOptionalTypeMembers1.ts, 2, 25)) writable?: boolean; ->writable : boolean +>writable : boolean, Symbol(writable, Decl(parserOptionalTypeMembers1.ts, 3, 16)) get?(): any; ->get : () => any +>get : () => any, Symbol(get, Decl(parserOptionalTypeMembers1.ts, 4, 23)) set?(v: any): void; ->set : (v: any) => void ->v : any +>set : (v: any) => void, Symbol(set, Decl(parserOptionalTypeMembers1.ts, 5, 16)) +>v : any, Symbol(v, Decl(parserOptionalTypeMembers1.ts, 6, 9)) } diff --git a/tests/baselines/reference/parserPropertySignature1.types b/tests/baselines/reference/parserPropertySignature1.types index 43a754c7751..f74548da5c2 100644 --- a/tests/baselines/reference/parserPropertySignature1.types +++ b/tests/baselines/reference/parserPropertySignature1.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature1.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserPropertySignature1.ts, 0, 0)) A; ->A : any +>A : any, Symbol(A, Decl(parserPropertySignature1.ts, 0, 13)) } diff --git a/tests/baselines/reference/parserPropertySignature10.types b/tests/baselines/reference/parserPropertySignature10.types index 06d1e78f0f1..89512ec5cf6 100644 --- a/tests/baselines/reference/parserPropertySignature10.types +++ b/tests/baselines/reference/parserPropertySignature10.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature10.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserPropertySignature10.ts, 0, 0)) 1?; } diff --git a/tests/baselines/reference/parserPropertySignature11.types b/tests/baselines/reference/parserPropertySignature11.types index 55776f4f820..4cc42740dd3 100644 --- a/tests/baselines/reference/parserPropertySignature11.types +++ b/tests/baselines/reference/parserPropertySignature11.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature11.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserPropertySignature11.ts, 0, 0)) 2:any; } diff --git a/tests/baselines/reference/parserPropertySignature12.types b/tests/baselines/reference/parserPropertySignature12.types index 1c37dcaa460..7beb96610b8 100644 --- a/tests/baselines/reference/parserPropertySignature12.types +++ b/tests/baselines/reference/parserPropertySignature12.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature12.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserPropertySignature12.ts, 0, 0)) 3?:any; } diff --git a/tests/baselines/reference/parserPropertySignature2.types b/tests/baselines/reference/parserPropertySignature2.types index fe67046e238..d30f1316c18 100644 --- a/tests/baselines/reference/parserPropertySignature2.types +++ b/tests/baselines/reference/parserPropertySignature2.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature2.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserPropertySignature2.ts, 0, 0)) B?; ->B : any +>B : any, Symbol(B, Decl(parserPropertySignature2.ts, 0, 13)) } diff --git a/tests/baselines/reference/parserPropertySignature3.types b/tests/baselines/reference/parserPropertySignature3.types index 04c3d21b0a1..2fb7ffdd670 100644 --- a/tests/baselines/reference/parserPropertySignature3.types +++ b/tests/baselines/reference/parserPropertySignature3.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature3.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserPropertySignature3.ts, 0, 0)) C:any; ->C : any +>C : any, Symbol(C, Decl(parserPropertySignature3.ts, 0, 13)) } diff --git a/tests/baselines/reference/parserPropertySignature4.types b/tests/baselines/reference/parserPropertySignature4.types index c1dda0e533d..0b003597b3d 100644 --- a/tests/baselines/reference/parserPropertySignature4.types +++ b/tests/baselines/reference/parserPropertySignature4.types @@ -1,7 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature4.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserPropertySignature4.ts, 0, 0)) D?:any; ->D : any +>D : any, Symbol(D, Decl(parserPropertySignature4.ts, 0, 13)) } diff --git a/tests/baselines/reference/parserPropertySignature5.types b/tests/baselines/reference/parserPropertySignature5.types index c85c814fc70..8616f127dd3 100644 --- a/tests/baselines/reference/parserPropertySignature5.types +++ b/tests/baselines/reference/parserPropertySignature5.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature5.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserPropertySignature5.ts, 0, 0)) "E"; } diff --git a/tests/baselines/reference/parserPropertySignature6.types b/tests/baselines/reference/parserPropertySignature6.types index 94ca4e313df..9f6a4fc0c7e 100644 --- a/tests/baselines/reference/parserPropertySignature6.types +++ b/tests/baselines/reference/parserPropertySignature6.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature6.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserPropertySignature6.ts, 0, 0)) "F"?; } diff --git a/tests/baselines/reference/parserPropertySignature7.types b/tests/baselines/reference/parserPropertySignature7.types index 0f78332d756..986b7e50a23 100644 --- a/tests/baselines/reference/parserPropertySignature7.types +++ b/tests/baselines/reference/parserPropertySignature7.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature7.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserPropertySignature7.ts, 0, 0)) "G":any; } diff --git a/tests/baselines/reference/parserPropertySignature8.types b/tests/baselines/reference/parserPropertySignature8.types index 79594cec56a..b6973111850 100644 --- a/tests/baselines/reference/parserPropertySignature8.types +++ b/tests/baselines/reference/parserPropertySignature8.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature8.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserPropertySignature8.ts, 0, 0)) "H"?:any; } diff --git a/tests/baselines/reference/parserPropertySignature9.types b/tests/baselines/reference/parserPropertySignature9.types index b7dbff8cbee..4a2728b5dcd 100644 --- a/tests/baselines/reference/parserPropertySignature9.types +++ b/tests/baselines/reference/parserPropertySignature9.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/PropertySignatures/parserPropertySignature9.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserPropertySignature9.ts, 0, 0)) 0; } diff --git a/tests/baselines/reference/parserReturnStatement3.types b/tests/baselines/reference/parserReturnStatement3.types index 6484050efee..0486efdc2c2 100644 --- a/tests/baselines/reference/parserReturnStatement3.types +++ b/tests/baselines/reference/parserReturnStatement3.types @@ -1,6 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/Statements/ReturnStatements/parserReturnStatement3.ts === function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(parserReturnStatement3.ts, 0, 0)) return; } diff --git a/tests/baselines/reference/parserSbp_7.9_A9_T3.types b/tests/baselines/reference/parserSbp_7.9_A9_T3.types index 0d6df58ed39..5e1eed4dd98 100644 --- a/tests/baselines/reference/parserSbp_7.9_A9_T3.types +++ b/tests/baselines/reference/parserSbp_7.9_A9_T3.types @@ -1,18 +1,19 @@ === tests/cases/conformance/parser/ecmascript5/parserSbp_7.9_A9_T3.ts === // Copyright 2009 the Sputnik authors. All rights reserved. -No type information for this code.// This code is governed by the BSD license found in the LICENSE file. -No type information for this code. -No type information for this code./** -No type information for this code. * Check Do-While Statement for automatic semicolon insertion -No type information for this code. * -No type information for this code. * @path bestPractice/Sbp_7.9_A9_T3.js -No type information for this code. * @description Execute do { \n ; \n }while(false) true -No type information for this code. */ -No type information for this code. -No type information for this code.//CHECK#1 -No type information for this code.do { -No type information for this code. ; -No type information for this code.} while (false) true -No type information for this code. -No type information for this code. -No type information for this code. \ No newline at end of file +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Check Do-While Statement for automatic semicolon insertion + * + * @path bestPractice/Sbp_7.9_A9_T3.js + * @description Execute do { \n ; \n }while(false) true + */ + +//CHECK#1 +do { + ; +} while (false) true +>false : boolean +>true : boolean + + diff --git a/tests/baselines/reference/parserStrictMode16.types b/tests/baselines/reference/parserStrictMode16.types index 6e68c0cbc6b..a7a68ab7811 100644 --- a/tests/baselines/reference/parserStrictMode16.types +++ b/tests/baselines/reference/parserStrictMode16.types @@ -1,15 +1,20 @@ === tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode16.ts === "use strict"; +>"use strict" : string + delete this; >delete this : boolean >this : any delete 1; >delete 1 : boolean +>1 : number delete null; >delete null : boolean +>null : null delete "a"; >delete "a" : boolean +>"a" : string diff --git a/tests/baselines/reference/parserStrictMode2.errors.txt b/tests/baselines/reference/parserStrictMode2.errors.txt index e920c02bed1..464e8eface8 100644 --- a/tests/baselines/reference/parserStrictMode2.errors.txt +++ b/tests/baselines/reference/parserStrictMode2.errors.txt @@ -1,8 +1,8 @@ tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode2.ts(2,1): error TS2304: Cannot find name 'foo1'. tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode2.ts(3,1): error TS2304: Cannot find name 'foo1'. tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode2.ts(4,1): error TS2304: Cannot find name 'foo1'. -tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode2.ts(5,1): error TS1128: Declaration or statement expected. -tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode2.ts(5,8): error TS1109: Expression expected. +tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode2.ts(5,1): error TS1212: Identifier expected. 'static' is a reserved word in strict mode +tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode2.ts(5,1): error TS2304: Cannot find name 'static'. ==== tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode2.ts (5 errors) ==== @@ -18,6 +18,6 @@ tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode2.ts(5,8): !!! error TS2304: Cannot find name 'foo1'. static(); ~~~~~~ -!!! error TS1128: Declaration or statement expected. - ~ -!!! error TS1109: Expression expected. \ No newline at end of file +!!! error TS1212: Identifier expected. 'static' is a reserved word in strict mode + ~~~~~~ +!!! error TS2304: Cannot find name 'static'. \ No newline at end of file diff --git a/tests/baselines/reference/parserStrictMode2.js b/tests/baselines/reference/parserStrictMode2.js index b8020672241..79b32ed9a58 100644 --- a/tests/baselines/reference/parserStrictMode2.js +++ b/tests/baselines/reference/parserStrictMode2.js @@ -10,4 +10,4 @@ static(); foo1(); foo1(); foo1(); -(); +static(); diff --git a/tests/baselines/reference/parserSymbolProperty1.types b/tests/baselines/reference/parserSymbolProperty1.types index 6c0cd75cf59..9e465e22140 100644 --- a/tests/baselines/reference/parserSymbolProperty1.types +++ b/tests/baselines/reference/parserSymbolProperty1.types @@ -1,9 +1,9 @@ === tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty1.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserSymbolProperty1.ts, 0, 0)) [Symbol.iterator]: string; ->Symbol.iterator : symbol ->Symbol : SymbolConstructor ->iterator : symbol +>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31)) } diff --git a/tests/baselines/reference/parserSymbolProperty2.types b/tests/baselines/reference/parserSymbolProperty2.types index bcf14b83a2a..4fc60a22a4c 100644 --- a/tests/baselines/reference/parserSymbolProperty2.types +++ b/tests/baselines/reference/parserSymbolProperty2.types @@ -1,9 +1,9 @@ === tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty2.ts === interface I { ->I : I +>I : I, Symbol(I, Decl(parserSymbolProperty2.ts, 0, 0)) [Symbol.unscopables](): string; ->Symbol.unscopables : symbol ->Symbol : SymbolConstructor ->unscopables : symbol +>Symbol.unscopables : symbol, Symbol(SymbolConstructor.unscopables, Decl(lib.d.ts, 1254, 24)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>unscopables : symbol, Symbol(SymbolConstructor.unscopables, Decl(lib.d.ts, 1254, 24)) } diff --git a/tests/baselines/reference/parserSymbolProperty3.types b/tests/baselines/reference/parserSymbolProperty3.types index 977375d7393..bc69dfb142f 100644 --- a/tests/baselines/reference/parserSymbolProperty3.types +++ b/tests/baselines/reference/parserSymbolProperty3.types @@ -1,9 +1,9 @@ === tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty3.ts === declare class C { ->C : C +>C : C, Symbol(C, Decl(parserSymbolProperty3.ts, 0, 0)) [Symbol.unscopables](): string; ->Symbol.unscopables : symbol ->Symbol : SymbolConstructor ->unscopables : symbol +>Symbol.unscopables : symbol, Symbol(SymbolConstructor.unscopables, Decl(lib.d.ts, 1254, 24)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>unscopables : symbol, Symbol(SymbolConstructor.unscopables, Decl(lib.d.ts, 1254, 24)) } diff --git a/tests/baselines/reference/parserSymbolProperty4.js b/tests/baselines/reference/parserSymbolProperty4.js index f79db0b1d79..698798351ac 100644 --- a/tests/baselines/reference/parserSymbolProperty4.js +++ b/tests/baselines/reference/parserSymbolProperty4.js @@ -1,6 +1,6 @@ //// [parserSymbolProperty4.ts] declare class C { - [Symbol.isRegExp]: string; + [Symbol.toPrimitive]: string; } //// [parserSymbolProperty4.js] diff --git a/tests/baselines/reference/parserSymbolProperty4.types b/tests/baselines/reference/parserSymbolProperty4.types index a9070897fa8..e7c539c3239 100644 --- a/tests/baselines/reference/parserSymbolProperty4.types +++ b/tests/baselines/reference/parserSymbolProperty4.types @@ -1,9 +1,9 @@ === tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty4.ts === declare class C { ->C : C +>C : C, Symbol(C, Decl(parserSymbolProperty4.ts, 0, 0)) - [Symbol.isRegExp]: string; ->Symbol.isRegExp : symbol ->Symbol : SymbolConstructor ->isRegExp : symbol + [Symbol.toPrimitive]: string; +>Symbol.toPrimitive : symbol, Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1242, 21)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>toPrimitive : symbol, Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1242, 21)) } diff --git a/tests/baselines/reference/parserSymbolProperty5.js b/tests/baselines/reference/parserSymbolProperty5.js index a8b1d564fa8..62a805602d1 100644 --- a/tests/baselines/reference/parserSymbolProperty5.js +++ b/tests/baselines/reference/parserSymbolProperty5.js @@ -1,6 +1,6 @@ //// [parserSymbolProperty5.ts] class C { - [Symbol.isRegExp]: string; + [Symbol.toPrimitive]: string; } //// [parserSymbolProperty5.js] diff --git a/tests/baselines/reference/parserSymbolProperty5.types b/tests/baselines/reference/parserSymbolProperty5.types index 8a171598e83..d5a6ac6640b 100644 --- a/tests/baselines/reference/parserSymbolProperty5.types +++ b/tests/baselines/reference/parserSymbolProperty5.types @@ -1,9 +1,9 @@ === tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty5.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserSymbolProperty5.ts, 0, 0)) - [Symbol.isRegExp]: string; ->Symbol.isRegExp : symbol ->Symbol : SymbolConstructor ->isRegExp : symbol + [Symbol.toPrimitive]: string; +>Symbol.toPrimitive : symbol, Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1242, 21)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>toPrimitive : symbol, Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1242, 21)) } diff --git a/tests/baselines/reference/parserSymbolProperty6.types b/tests/baselines/reference/parserSymbolProperty6.types index 660cbf4e545..11cf42f3068 100644 --- a/tests/baselines/reference/parserSymbolProperty6.types +++ b/tests/baselines/reference/parserSymbolProperty6.types @@ -1,9 +1,10 @@ === tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty6.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserSymbolProperty6.ts, 0, 0)) [Symbol.toStringTag]: string = ""; ->Symbol.toStringTag : symbol ->Symbol : SymbolConstructor ->toStringTag : symbol +>Symbol.toStringTag : symbol, Symbol(SymbolConstructor.toStringTag, Decl(lib.d.ts, 1248, 24)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>toStringTag : symbol, Symbol(SymbolConstructor.toStringTag, Decl(lib.d.ts, 1248, 24)) +>"" : string } diff --git a/tests/baselines/reference/parserSymbolProperty7.types b/tests/baselines/reference/parserSymbolProperty7.types index f8dc2523692..d4453253d2a 100644 --- a/tests/baselines/reference/parserSymbolProperty7.types +++ b/tests/baselines/reference/parserSymbolProperty7.types @@ -1,9 +1,9 @@ === tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty7.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parserSymbolProperty7.ts, 0, 0)) [Symbol.toStringTag](): void { } ->Symbol.toStringTag : symbol ->Symbol : SymbolConstructor ->toStringTag : symbol +>Symbol.toStringTag : symbol, Symbol(SymbolConstructor.toStringTag, Decl(lib.d.ts, 1248, 24)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>toStringTag : symbol, Symbol(SymbolConstructor.toStringTag, Decl(lib.d.ts, 1248, 24)) } diff --git a/tests/baselines/reference/parserSymbolProperty8.types b/tests/baselines/reference/parserSymbolProperty8.types index 06387c9c231..30975752ebc 100644 --- a/tests/baselines/reference/parserSymbolProperty8.types +++ b/tests/baselines/reference/parserSymbolProperty8.types @@ -1,9 +1,9 @@ === tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty8.ts === var x: { ->x : { [Symbol.toPrimitive](): string; } +>x : { [Symbol.toPrimitive](): string; }, Symbol(x, Decl(parserSymbolProperty8.ts, 0, 3)) [Symbol.toPrimitive](): string ->Symbol.toPrimitive : symbol ->Symbol : SymbolConstructor ->toPrimitive : symbol +>Symbol.toPrimitive : symbol, Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1242, 21)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>toPrimitive : symbol, Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1242, 21)) } diff --git a/tests/baselines/reference/parserSymbolProperty9.types b/tests/baselines/reference/parserSymbolProperty9.types index 40fbde2acff..994ef463857 100644 --- a/tests/baselines/reference/parserSymbolProperty9.types +++ b/tests/baselines/reference/parserSymbolProperty9.types @@ -1,9 +1,9 @@ === tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty9.ts === var x: { ->x : { [Symbol.toPrimitive]: string; } +>x : { [Symbol.toPrimitive]: string; }, Symbol(x, Decl(parserSymbolProperty9.ts, 0, 3)) [Symbol.toPrimitive]: string ->Symbol.toPrimitive : symbol ->Symbol : SymbolConstructor ->toPrimitive : symbol +>Symbol.toPrimitive : symbol, Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1242, 21)) +>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11)) +>toPrimitive : symbol, Symbol(SymbolConstructor.toPrimitive, Decl(lib.d.ts, 1242, 21)) } diff --git a/tests/baselines/reference/parserUnicode2.types b/tests/baselines/reference/parserUnicode2.types index d923f7a6550..27053775545 100644 --- a/tests/baselines/reference/parserUnicode2.types +++ b/tests/baselines/reference/parserUnicode2.types @@ -1,4 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/parserUnicode2.ts === var 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 = 1; ->才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 : number +>才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 : number, Symbol(才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123, Decl(parserUnicode2.ts, 0, 3)) +>1 : number diff --git a/tests/baselines/reference/parserUnicode3.types b/tests/baselines/reference/parserUnicode3.types index 2d81c9e9422..4a30c938403 100644 --- a/tests/baselines/reference/parserUnicode3.types +++ b/tests/baselines/reference/parserUnicode3.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/parserUnicode3.ts === class 剩下 { ->剩下 : 剩下 +>剩下 : 剩下, Symbol(剩下, Decl(parserUnicode3.ts, 0, 0)) } diff --git a/tests/baselines/reference/parserUnicodeWhitespaceCharacter1.types b/tests/baselines/reference/parserUnicodeWhitespaceCharacter1.types index 4fd487230b2..f63aa7d3897 100644 --- a/tests/baselines/reference/parserUnicodeWhitespaceCharacter1.types +++ b/tests/baselines/reference/parserUnicodeWhitespaceCharacter1.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/parserUnicodeWhitespaceCharacter1.ts === function foo(){ } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(parserUnicodeWhitespaceCharacter1.ts, 0, 0)) diff --git a/tests/baselines/reference/parserVariableDeclaration11.types b/tests/baselines/reference/parserVariableDeclaration11.types index 1b4f236b9f4..ad2fdf1d55a 100644 --- a/tests/baselines/reference/parserVariableDeclaration11.types +++ b/tests/baselines/reference/parserVariableDeclaration11.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration11.ts === var a,b; ->a : any ->b : any +>a : any, Symbol(a, Decl(parserVariableDeclaration11.ts, 0, 3)) +>b : any, Symbol(b, Decl(parserVariableDeclaration11.ts, 0, 6)) diff --git a/tests/baselines/reference/parserVariableDeclaration4.d.types b/tests/baselines/reference/parserVariableDeclaration4.d.types index 061f4540a20..1b66f11c16e 100644 --- a/tests/baselines/reference/parserVariableDeclaration4.d.types +++ b/tests/baselines/reference/parserVariableDeclaration4.d.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration4.d.ts === declare var v; ->v : any +>v : any, Symbol(v, Decl(parserVariableDeclaration4.d.ts, 0, 11)) diff --git a/tests/baselines/reference/parserVariableDeclaration7.types b/tests/baselines/reference/parserVariableDeclaration7.types index 23ac6a10d35..713134002b1 100644 --- a/tests/baselines/reference/parserVariableDeclaration7.types +++ b/tests/baselines/reference/parserVariableDeclaration7.types @@ -1,5 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration7.ts === var a,b ->a : any ->b : any +>a : any, Symbol(a, Decl(parserVariableDeclaration7.ts, 0, 3)) +>b : any, Symbol(b, Decl(parserVariableDeclaration7.ts, 0, 6)) diff --git a/tests/baselines/reference/parserVariableDeclaration9.types b/tests/baselines/reference/parserVariableDeclaration9.types index 0aba12200b1..a0fabadfe5d 100644 --- a/tests/baselines/reference/parserVariableDeclaration9.types +++ b/tests/baselines/reference/parserVariableDeclaration9.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration9.ts === var a; ->a : any +>a : any, Symbol(a, Decl(parserVariableDeclaration9.ts, 0, 3)) diff --git a/tests/baselines/reference/parserVariableStatement1.types b/tests/baselines/reference/parserVariableStatement1.types index db041b5684a..ba31f6ac682 100644 --- a/tests/baselines/reference/parserVariableStatement1.types +++ b/tests/baselines/reference/parserVariableStatement1.types @@ -1,10 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/VariableLists/parserVariableStatement1.ts === var a, ->a : any +>a : any, Symbol(a, Decl(parserVariableStatement1.ts, 0, 3)) b, ->b : any +>b : any, Symbol(b, Decl(parserVariableStatement1.ts, 0, 6)) c ->c : any +>c : any, Symbol(c, Decl(parserVariableStatement1.ts, 1, 6)) diff --git a/tests/baselines/reference/parserVariableStatement2.types b/tests/baselines/reference/parserVariableStatement2.types index 52a361df8c3..0bf3d7fcc41 100644 --- a/tests/baselines/reference/parserVariableStatement2.types +++ b/tests/baselines/reference/parserVariableStatement2.types @@ -1,10 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/VariableLists/parserVariableStatement2.ts === var a ->a : any +>a : any, Symbol(a, Decl(parserVariableStatement2.ts, 0, 3)) , b ->b : any +>b : any, Symbol(b, Decl(parserVariableStatement2.ts, 1, 3)) , c ->c : any +>c : any, Symbol(c, Decl(parserVariableStatement2.ts, 2, 3)) diff --git a/tests/baselines/reference/parserVariableStatement3.types b/tests/baselines/reference/parserVariableStatement3.types index 1c3c4b58596..925d35742c2 100644 --- a/tests/baselines/reference/parserVariableStatement3.types +++ b/tests/baselines/reference/parserVariableStatement3.types @@ -1,11 +1,11 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/VariableLists/parserVariableStatement3.ts === var a, ->a : any +>a : any, Symbol(a, Decl(parserVariableStatement3.ts, 0, 3)) b, ->b : any +>b : any, Symbol(b, Decl(parserVariableStatement3.ts, 1, 4)) c ->c : any +>c : any, Symbol(c, Decl(parserVariableStatement3.ts, 2, 4)) diff --git a/tests/baselines/reference/parserVariableStatement4.types b/tests/baselines/reference/parserVariableStatement4.types index dd292b4a1af..7b2d4c7817b 100644 --- a/tests/baselines/reference/parserVariableStatement4.types +++ b/tests/baselines/reference/parserVariableStatement4.types @@ -1,11 +1,11 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/VariableLists/parserVariableStatement4.ts === var a ->a : any +>a : any, Symbol(a, Decl(parserVariableStatement4.ts, 0, 3)) , b ->b : any +>b : any, Symbol(b, Decl(parserVariableStatement4.ts, 2, 3)) , c ->c : any +>c : any, Symbol(c, Decl(parserVariableStatement4.ts, 3, 3)) diff --git a/tests/baselines/reference/parserVoidExpression1.types b/tests/baselines/reference/parserVoidExpression1.types index c46abcb0835..a2d9988eee3 100644 --- a/tests/baselines/reference/parserVoidExpression1.types +++ b/tests/baselines/reference/parserVoidExpression1.types @@ -1,4 +1,5 @@ === tests/cases/conformance/parser/ecmascript5/parserVoidExpression1.ts === void 0; >void 0 : undefined +>0 : number diff --git a/tests/baselines/reference/parserX_ArrowFunction4.types b/tests/baselines/reference/parserX_ArrowFunction4.types index f52f06aa41e..d30c52a84be 100644 --- a/tests/baselines/reference/parserX_ArrowFunction4.types +++ b/tests/baselines/reference/parserX_ArrowFunction4.types @@ -1,8 +1,8 @@ === tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction4.ts === var v = (a, b) => { ->v : (a: any, b: any) => void +>v : (a: any, b: any) => void, Symbol(v, Decl(parserX_ArrowFunction4.ts, 0, 3)) >(a, b) => { } : (a: any, b: any) => void ->a : any ->b : any +>a : any, Symbol(a, Decl(parserX_ArrowFunction4.ts, 0, 9)) +>b : any, Symbol(b, Decl(parserX_ArrowFunction4.ts, 0, 11)) }; diff --git a/tests/baselines/reference/parser_breakInIterationOrSwitchStatement1.types b/tests/baselines/reference/parser_breakInIterationOrSwitchStatement1.types index 2036ae9bd07..6688f334a86 100644 --- a/tests/baselines/reference/parser_breakInIterationOrSwitchStatement1.types +++ b/tests/baselines/reference/parser_breakInIterationOrSwitchStatement1.types @@ -1,5 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/Statements/BreakStatements/parser_breakInIterationOrSwitchStatement1.ts === while (true) { -No type information for this code. break; -No type information for this code.} -No type information for this code. \ No newline at end of file +>true : boolean + + break; +} diff --git a/tests/baselines/reference/parser_breakInIterationOrSwitchStatement2.types b/tests/baselines/reference/parser_breakInIterationOrSwitchStatement2.types index 673d9438843..7def75c322a 100644 --- a/tests/baselines/reference/parser_breakInIterationOrSwitchStatement2.types +++ b/tests/baselines/reference/parser_breakInIterationOrSwitchStatement2.types @@ -1,6 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/Statements/BreakStatements/parser_breakInIterationOrSwitchStatement2.ts === do { -No type information for this code. break; -No type information for this code.} -No type information for this code.while (true); -No type information for this code. \ No newline at end of file + break; +} +while (true); +>true : boolean + diff --git a/tests/baselines/reference/parser_breakTarget1.types b/tests/baselines/reference/parser_breakTarget1.types index 95cc837010a..2e4a1f45e44 100644 --- a/tests/baselines/reference/parser_breakTarget1.types +++ b/tests/baselines/reference/parser_breakTarget1.types @@ -1,4 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/Statements/BreakStatements/parser_breakTarget1.ts === target: -No type information for this code. break target; -No type information for this code. \ No newline at end of file +>target : any + + break target; +>target : any + diff --git a/tests/baselines/reference/parser_breakTarget2.types b/tests/baselines/reference/parser_breakTarget2.types index fb006265664..8a1e7a991db 100644 --- a/tests/baselines/reference/parser_breakTarget2.types +++ b/tests/baselines/reference/parser_breakTarget2.types @@ -1,6 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/Statements/BreakStatements/parser_breakTarget2.ts === target: -No type information for this code.while (true) { -No type information for this code. break target; -No type information for this code.} -No type information for this code. \ No newline at end of file +>target : any + +while (true) { +>true : boolean + + break target; +>target : any +} diff --git a/tests/baselines/reference/parser_breakTarget3.types b/tests/baselines/reference/parser_breakTarget3.types index 99ec413987a..7cdcb74d7da 100644 --- a/tests/baselines/reference/parser_breakTarget3.types +++ b/tests/baselines/reference/parser_breakTarget3.types @@ -1,7 +1,13 @@ === tests/cases/conformance/parser/ecmascript5/Statements/BreakStatements/parser_breakTarget3.ts === target1: -No type information for this code.target2: -No type information for this code.while (true) { -No type information for this code. break target1; -No type information for this code.} -No type information for this code. \ No newline at end of file +>target1 : any + +target2: +>target2 : any + +while (true) { +>true : boolean + + break target1; +>target1 : any +} diff --git a/tests/baselines/reference/parser_breakTarget4.types b/tests/baselines/reference/parser_breakTarget4.types index 042df67d9b2..7315175800e 100644 --- a/tests/baselines/reference/parser_breakTarget4.types +++ b/tests/baselines/reference/parser_breakTarget4.types @@ -1,7 +1,13 @@ === tests/cases/conformance/parser/ecmascript5/Statements/BreakStatements/parser_breakTarget4.ts === target1: -No type information for this code.target2: -No type information for this code.while (true) { -No type information for this code. break target2; -No type information for this code.} -No type information for this code. \ No newline at end of file +>target1 : any + +target2: +>target2 : any + +while (true) { +>true : boolean + + break target2; +>target2 : any +} diff --git a/tests/baselines/reference/parser_continueInIterationStatement1.types b/tests/baselines/reference/parser_continueInIterationStatement1.types index c21d32a81a2..c6819ba2c18 100644 --- a/tests/baselines/reference/parser_continueInIterationStatement1.types +++ b/tests/baselines/reference/parser_continueInIterationStatement1.types @@ -1,5 +1,6 @@ === tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_continueInIterationStatement1.ts === while (true) { -No type information for this code. continue; -No type information for this code.} -No type information for this code. \ No newline at end of file +>true : boolean + + continue; +} diff --git a/tests/baselines/reference/parser_continueInIterationStatement2.types b/tests/baselines/reference/parser_continueInIterationStatement2.types index 1daadccd6c2..ead70157de4 100644 --- a/tests/baselines/reference/parser_continueInIterationStatement2.types +++ b/tests/baselines/reference/parser_continueInIterationStatement2.types @@ -1,6 +1,7 @@ === tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_continueInIterationStatement2.ts === do { -No type information for this code. continue; -No type information for this code.} -No type information for this code.while (true); -No type information for this code. \ No newline at end of file + continue; +} +while (true); +>true : boolean + diff --git a/tests/baselines/reference/parser_continueLabel.types b/tests/baselines/reference/parser_continueLabel.types index 4059c9c10d7..87021a99d94 100644 --- a/tests/baselines/reference/parser_continueLabel.types +++ b/tests/baselines/reference/parser_continueLabel.types @@ -1,10 +1,14 @@ === tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_continueLabel.ts === label1: for(var i = 0; i < 1; i++) { ->i : number +>label1 : any +>i : number, Symbol(i, Decl(parser_continueLabel.ts, 0, 15)) +>0 : number >i < 1 : boolean ->i : number +>i : number, Symbol(i, Decl(parser_continueLabel.ts, 0, 15)) +>1 : number >i++ : number ->i : number +>i : number, Symbol(i, Decl(parser_continueLabel.ts, 0, 15)) continue label1; +>label1 : any } diff --git a/tests/baselines/reference/parser_continueTarget2.types b/tests/baselines/reference/parser_continueTarget2.types index 25677d721d2..ba01f3b8927 100644 --- a/tests/baselines/reference/parser_continueTarget2.types +++ b/tests/baselines/reference/parser_continueTarget2.types @@ -1,6 +1,10 @@ === tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_continueTarget2.ts === target: -No type information for this code.while (true) { -No type information for this code. continue target; -No type information for this code.} -No type information for this code. \ No newline at end of file +>target : any + +while (true) { +>true : boolean + + continue target; +>target : any +} diff --git a/tests/baselines/reference/parser_continueTarget3.types b/tests/baselines/reference/parser_continueTarget3.types index 2038671d215..33c931c7959 100644 --- a/tests/baselines/reference/parser_continueTarget3.types +++ b/tests/baselines/reference/parser_continueTarget3.types @@ -1,7 +1,13 @@ === tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_continueTarget3.ts === target1: -No type information for this code.target2: -No type information for this code.while (true) { -No type information for this code. continue target1; -No type information for this code.} -No type information for this code. \ No newline at end of file +>target1 : any + +target2: +>target2 : any + +while (true) { +>true : boolean + + continue target1; +>target1 : any +} diff --git a/tests/baselines/reference/parser_continueTarget4.types b/tests/baselines/reference/parser_continueTarget4.types index 2b47099715e..cb0367283ce 100644 --- a/tests/baselines/reference/parser_continueTarget4.types +++ b/tests/baselines/reference/parser_continueTarget4.types @@ -1,7 +1,13 @@ === tests/cases/conformance/parser/ecmascript5/Statements/ContinueStatements/parser_continueTarget4.ts === target1: -No type information for this code.target2: -No type information for this code.while (true) { -No type information for this code. continue target2; -No type information for this code.} -No type information for this code. \ No newline at end of file +>target1 : any + +target2: +>target2 : any + +while (true) { +>true : boolean + + continue target2; +>target2 : any +} diff --git a/tests/baselines/reference/parser_duplicateLabel3.types b/tests/baselines/reference/parser_duplicateLabel3.types index ec136c60dca..6c11b6061f8 100644 --- a/tests/baselines/reference/parser_duplicateLabel3.types +++ b/tests/baselines/reference/parser_duplicateLabel3.types @@ -1,11 +1,18 @@ === tests/cases/conformance/parser/ecmascript5/Statements/LabeledStatements/parser_duplicateLabel3.ts === target: +>target : any + while (true) { +>true : boolean + function f() { ->f : () => void +>f : () => void, Symbol(f, Decl(parser_duplicateLabel3.ts, 1, 14)) target: +>target : any + while (true) { +>true : boolean } } } diff --git a/tests/baselines/reference/parser_duplicateLabel4.types b/tests/baselines/reference/parser_duplicateLabel4.types index 564531bf71b..d09529301ca 100644 --- a/tests/baselines/reference/parser_duplicateLabel4.types +++ b/tests/baselines/reference/parser_duplicateLabel4.types @@ -1,9 +1,14 @@ === tests/cases/conformance/parser/ecmascript5/Statements/LabeledStatements/parser_duplicateLabel4.ts === target: -No type information for this code.while (true) { -No type information for this code.} -No type information for this code. -No type information for this code.target: -No type information for this code.while (true) { -No type information for this code.} -No type information for this code. \ No newline at end of file +>target : any + +while (true) { +>true : boolean +} + +target: +>target : any + +while (true) { +>true : boolean +} diff --git a/tests/baselines/reference/parservoidInQualifiedName0.types b/tests/baselines/reference/parservoidInQualifiedName0.types index cc56c598d82..8065bf5505d 100644 --- a/tests/baselines/reference/parservoidInQualifiedName0.types +++ b/tests/baselines/reference/parservoidInQualifiedName0.types @@ -1,4 +1,4 @@ === tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName0.ts === var v : void; ->v : void +>v : void, Symbol(v, Decl(parservoidInQualifiedName0.ts, 0, 3)) diff --git a/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.types b/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.types index 6fdfccfa7fd..44227273fe4 100644 --- a/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.types +++ b/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.types @@ -1,11 +1,11 @@ === tests/cases/compiler/parsingClassRecoversWhenHittingUnexpectedSemicolon.ts === class C { ->C : C +>C : C, Symbol(C, Decl(parsingClassRecoversWhenHittingUnexpectedSemicolon.ts, 0, 0)) public f() { }; ->f : () => void +>f : () => void, Symbol(f, Decl(parsingClassRecoversWhenHittingUnexpectedSemicolon.ts, 0, 9)) private m; ->m : any +>m : any, Symbol(m, Decl(parsingClassRecoversWhenHittingUnexpectedSemicolon.ts, 1, 19)) } diff --git a/tests/baselines/reference/partiallyAmbientClodule.types b/tests/baselines/reference/partiallyAmbientClodule.types index 40307f426d0..880ea5bdac5 100644 --- a/tests/baselines/reference/partiallyAmbientClodule.types +++ b/tests/baselines/reference/partiallyAmbientClodule.types @@ -1,10 +1,10 @@ === tests/cases/compiler/partiallyAmbientClodule.ts === declare module foo { ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(partiallyAmbientClodule.ts, 0, 0), Decl(partiallyAmbientClodule.ts, 2, 1)) export function x(): any; ->x : () => any +>x : () => any, Symbol(x, Decl(partiallyAmbientClodule.ts, 0, 20)) } class foo { } // Legal, because module is ambient ->foo : foo +>foo : foo, Symbol(foo, Decl(partiallyAmbientClodule.ts, 0, 0), Decl(partiallyAmbientClodule.ts, 2, 1)) diff --git a/tests/baselines/reference/partiallyAmbientFundule.types b/tests/baselines/reference/partiallyAmbientFundule.types index c11c6ed5ec3..b106f56133e 100644 --- a/tests/baselines/reference/partiallyAmbientFundule.types +++ b/tests/baselines/reference/partiallyAmbientFundule.types @@ -1,10 +1,10 @@ === tests/cases/compiler/partiallyAmbientFundule.ts === declare module foo { ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(partiallyAmbientFundule.ts, 0, 0), Decl(partiallyAmbientFundule.ts, 2, 1)) export function x(): any; ->x : () => any +>x : () => any, Symbol(x, Decl(partiallyAmbientFundule.ts, 0, 20)) } function foo () { } // Legal, because module is ambient ->foo : typeof foo +>foo : typeof foo, Symbol(foo, Decl(partiallyAmbientFundule.ts, 0, 0), Decl(partiallyAmbientFundule.ts, 2, 1)) diff --git a/tests/baselines/reference/pinnedComments1.types b/tests/baselines/reference/pinnedComments1.types index d55feb67659..54ed1031438 100644 --- a/tests/baselines/reference/pinnedComments1.types +++ b/tests/baselines/reference/pinnedComments1.types @@ -3,5 +3,5 @@ /* unpinned comment */ /*! pinned comment */ class C { ->C : C +>C : C, Symbol(C, Decl(pinnedComments1.ts, 0, 0)) } diff --git a/tests/baselines/reference/plusOperatorWithBooleanType.types b/tests/baselines/reference/plusOperatorWithBooleanType.types index 40ca167a4d7..e3c6c416902 100644 --- a/tests/baselines/reference/plusOperatorWithBooleanType.types +++ b/tests/baselines/reference/plusOperatorWithBooleanType.types @@ -1,105 +1,113 @@ === tests/cases/conformance/expressions/unaryOperators/plusOperator/plusOperatorWithBooleanType.ts === // + operator on boolean type var BOOLEAN: boolean; ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(plusOperatorWithBooleanType.ts, 1, 3)) function foo(): boolean { return true; } ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(plusOperatorWithBooleanType.ts, 1, 21)) +>true : boolean class A { ->A : A +>A : A, Symbol(A, Decl(plusOperatorWithBooleanType.ts, 3, 40)) public a: boolean; ->a : boolean +>a : boolean, Symbol(a, Decl(plusOperatorWithBooleanType.ts, 5, 9)) static foo() { return false; } ->foo : () => boolean +>foo : () => boolean, Symbol(A.foo, Decl(plusOperatorWithBooleanType.ts, 6, 22)) +>false : boolean } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(plusOperatorWithBooleanType.ts, 8, 1)) export var n: boolean; ->n : boolean +>n : boolean, Symbol(n, Decl(plusOperatorWithBooleanType.ts, 10, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(plusOperatorWithBooleanType.ts, 13, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(plusOperatorWithBooleanType.ts, 3, 40)) // boolean type var var ResultIsNumber1 = +BOOLEAN; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(plusOperatorWithBooleanType.ts, 16, 3)) >+BOOLEAN : number ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(plusOperatorWithBooleanType.ts, 1, 3)) // boolean type literal var ResultIsNumber2 = +true; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(plusOperatorWithBooleanType.ts, 19, 3)) >+true : number +>true : boolean var ResultIsNumber3 = +{ x: true, y: false }; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(plusOperatorWithBooleanType.ts, 20, 3)) >+{ x: true, y: false } : number >{ x: true, y: false } : { x: boolean; y: boolean; } ->x : boolean ->y : boolean +>x : boolean, Symbol(x, Decl(plusOperatorWithBooleanType.ts, 20, 24)) +>true : boolean +>y : boolean, Symbol(y, Decl(plusOperatorWithBooleanType.ts, 20, 33)) +>false : boolean // boolean type expressions var ResultIsNumber4 = +objA.a; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(plusOperatorWithBooleanType.ts, 23, 3)) >+objA.a : number ->objA.a : boolean ->objA : A ->a : boolean +>objA.a : boolean, Symbol(A.a, Decl(plusOperatorWithBooleanType.ts, 5, 9)) +>objA : A, Symbol(objA, Decl(plusOperatorWithBooleanType.ts, 13, 3)) +>a : boolean, Symbol(A.a, Decl(plusOperatorWithBooleanType.ts, 5, 9)) var ResultIsNumber5 = +M.n; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(plusOperatorWithBooleanType.ts, 24, 3)) >+M.n : number ->M.n : boolean ->M : typeof M ->n : boolean +>M.n : boolean, Symbol(M.n, Decl(plusOperatorWithBooleanType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(plusOperatorWithBooleanType.ts, 8, 1)) +>n : boolean, Symbol(M.n, Decl(plusOperatorWithBooleanType.ts, 10, 14)) var ResultIsNumber6 = +foo(); ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(plusOperatorWithBooleanType.ts, 25, 3)) >+foo() : number >foo() : boolean ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(plusOperatorWithBooleanType.ts, 1, 21)) var ResultIsNumber7 = +A.foo(); ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(plusOperatorWithBooleanType.ts, 26, 3)) >+A.foo() : number >A.foo() : boolean ->A.foo : () => boolean ->A : typeof A ->foo : () => boolean +>A.foo : () => boolean, Symbol(A.foo, Decl(plusOperatorWithBooleanType.ts, 6, 22)) +>A : typeof A, Symbol(A, Decl(plusOperatorWithBooleanType.ts, 3, 40)) +>foo : () => boolean, Symbol(A.foo, Decl(plusOperatorWithBooleanType.ts, 6, 22)) // miss assignment operators +true; >+true : number +>true : boolean +BOOLEAN; >+BOOLEAN : number ->BOOLEAN : boolean +>BOOLEAN : boolean, Symbol(BOOLEAN, Decl(plusOperatorWithBooleanType.ts, 1, 3)) +foo(); >+foo() : number >foo() : boolean ->foo : () => boolean +>foo : () => boolean, Symbol(foo, Decl(plusOperatorWithBooleanType.ts, 1, 21)) +true, false; >+true, false : boolean >+true : number +>true : boolean +>false : boolean +objA.a; >+objA.a : number ->objA.a : boolean ->objA : A ->a : boolean +>objA.a : boolean, Symbol(A.a, Decl(plusOperatorWithBooleanType.ts, 5, 9)) +>objA : A, Symbol(objA, Decl(plusOperatorWithBooleanType.ts, 13, 3)) +>a : boolean, Symbol(A.a, Decl(plusOperatorWithBooleanType.ts, 5, 9)) +M.n; >+M.n : number ->M.n : boolean ->M : typeof M ->n : boolean +>M.n : boolean, Symbol(M.n, Decl(plusOperatorWithBooleanType.ts, 10, 14)) +>M : typeof M, Symbol(M, Decl(plusOperatorWithBooleanType.ts, 8, 1)) +>n : boolean, Symbol(M.n, Decl(plusOperatorWithBooleanType.ts, 10, 14)) diff --git a/tests/baselines/reference/plusOperatorWithEnumType.types b/tests/baselines/reference/plusOperatorWithEnumType.types index bc51414e4a5..a92c9978bb1 100644 --- a/tests/baselines/reference/plusOperatorWithEnumType.types +++ b/tests/baselines/reference/plusOperatorWithEnumType.types @@ -2,59 +2,62 @@ // + operator on enum type enum ENUM { }; ->ENUM : ENUM +>ENUM : ENUM, Symbol(ENUM, Decl(plusOperatorWithEnumType.ts, 0, 0)) enum ENUM1 { A, B, "" }; ->ENUM1 : ENUM1 ->A : ENUM1 ->B : ENUM1 +>ENUM1 : ENUM1, Symbol(ENUM1, Decl(plusOperatorWithEnumType.ts, 2, 14)) +>A : ENUM1, Symbol(ENUM1.A, Decl(plusOperatorWithEnumType.ts, 3, 12)) +>B : ENUM1, Symbol(ENUM1.B, Decl(plusOperatorWithEnumType.ts, 3, 15)) // enum type var var ResultIsNumber1 = +ENUM; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(plusOperatorWithEnumType.ts, 6, 3)) >+ENUM : number ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(plusOperatorWithEnumType.ts, 0, 0)) var ResultIsNumber2 = +ENUM1; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(plusOperatorWithEnumType.ts, 7, 3)) >+ENUM1 : number ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(plusOperatorWithEnumType.ts, 2, 14)) // enum type expressions var ResultIsNumber3 = +ENUM1["A"]; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(plusOperatorWithEnumType.ts, 10, 3)) >+ENUM1["A"] : number >ENUM1["A"] : ENUM1 ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(plusOperatorWithEnumType.ts, 2, 14)) +>"A" : string, Symbol(ENUM1.A, Decl(plusOperatorWithEnumType.ts, 3, 12)) var ResultIsNumber4 = +(ENUM[0] + ENUM1["B"]); ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(plusOperatorWithEnumType.ts, 11, 3)) >+(ENUM[0] + ENUM1["B"]) : number >(ENUM[0] + ENUM1["B"]) : string >ENUM[0] + ENUM1["B"] : string >ENUM[0] : string ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(plusOperatorWithEnumType.ts, 0, 0)) +>0 : number >ENUM1["B"] : ENUM1 ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(plusOperatorWithEnumType.ts, 2, 14)) +>"B" : string, Symbol(ENUM1.B, Decl(plusOperatorWithEnumType.ts, 3, 15)) // miss assignment operators +ENUM; >+ENUM : number ->ENUM : typeof ENUM +>ENUM : typeof ENUM, Symbol(ENUM, Decl(plusOperatorWithEnumType.ts, 0, 0)) +ENUM1; >+ENUM1 : number ->ENUM1 : typeof ENUM1 +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(plusOperatorWithEnumType.ts, 2, 14)) +ENUM1.B; >+ENUM1.B : number ->ENUM1.B : ENUM1 ->ENUM1 : typeof ENUM1 ->B : ENUM1 +>ENUM1.B : ENUM1, Symbol(ENUM1.B, Decl(plusOperatorWithEnumType.ts, 3, 15)) +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(plusOperatorWithEnumType.ts, 2, 14)) +>B : ENUM1, Symbol(ENUM1.B, Decl(plusOperatorWithEnumType.ts, 3, 15)) +ENUM, ENUM1; >+ENUM, ENUM1 : typeof ENUM1 >+ENUM : number ->ENUM : typeof ENUM ->ENUM1 : typeof ENUM1 +>ENUM : typeof ENUM, Symbol(ENUM, Decl(plusOperatorWithEnumType.ts, 0, 0)) +>ENUM1 : typeof ENUM1, Symbol(ENUM1, Decl(plusOperatorWithEnumType.ts, 2, 14)) diff --git a/tests/baselines/reference/plusOperatorWithNumberType.types b/tests/baselines/reference/plusOperatorWithNumberType.types index cad0448f2a3..deace76a19f 100644 --- a/tests/baselines/reference/plusOperatorWithNumberType.types +++ b/tests/baselines/reference/plusOperatorWithNumberType.types @@ -1,148 +1,158 @@ === tests/cases/conformance/expressions/unaryOperators/plusOperator/plusOperatorWithNumberType.ts === // + operator on number type var NUMBER: number; ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(plusOperatorWithNumberType.ts, 1, 3)) var NUMBER1: number[] = [1, 2]; ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(plusOperatorWithNumberType.ts, 2, 3)) >[1, 2] : number[] +>1 : number +>2 : number function foo(): number { return 1; } ->foo : () => number +>foo : () => number, Symbol(foo, Decl(plusOperatorWithNumberType.ts, 2, 31)) +>1 : number class A { ->A : A +>A : A, Symbol(A, Decl(plusOperatorWithNumberType.ts, 4, 36)) public a: number; ->a : number +>a : number, Symbol(a, Decl(plusOperatorWithNumberType.ts, 6, 9)) static foo() { return 1; } ->foo : () => number +>foo : () => number, Symbol(A.foo, Decl(plusOperatorWithNumberType.ts, 7, 21)) +>1 : number } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(plusOperatorWithNumberType.ts, 9, 1)) export var n: number; ->n : number +>n : number, Symbol(n, Decl(plusOperatorWithNumberType.ts, 11, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(plusOperatorWithNumberType.ts, 14, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(plusOperatorWithNumberType.ts, 4, 36)) // number type var var ResultIsNumber1 = +NUMBER; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(plusOperatorWithNumberType.ts, 17, 3)) >+NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(plusOperatorWithNumberType.ts, 1, 3)) var ResultIsNumber2 = +NUMBER1; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(plusOperatorWithNumberType.ts, 18, 3)) >+NUMBER1 : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(plusOperatorWithNumberType.ts, 2, 3)) // number type literal var ResultIsNumber3 = +1; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(plusOperatorWithNumberType.ts, 21, 3)) >+1 : number +>1 : number var ResultIsNumber4 = +{ x: 1, y: 2}; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(plusOperatorWithNumberType.ts, 22, 3)) >+{ x: 1, y: 2} : number >{ x: 1, y: 2} : { x: number; y: number; } ->x : number ->y : number +>x : number, Symbol(x, Decl(plusOperatorWithNumberType.ts, 22, 24)) +>1 : number +>y : number, Symbol(y, Decl(plusOperatorWithNumberType.ts, 22, 30)) +>2 : number var ResultIsNumber5 = +{ x: 1, y: (n: number) => { return n; } }; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(plusOperatorWithNumberType.ts, 23, 3)) >+{ x: 1, y: (n: number) => { return n; } } : number >{ x: 1, y: (n: number) => { return n; } } : { x: number; y: (n: number) => number; } ->x : number ->y : (n: number) => number +>x : number, Symbol(x, Decl(plusOperatorWithNumberType.ts, 23, 24)) +>1 : number +>y : (n: number) => number, Symbol(y, Decl(plusOperatorWithNumberType.ts, 23, 30)) >(n: number) => { return n; } : (n: number) => number ->n : number ->n : number +>n : number, Symbol(n, Decl(plusOperatorWithNumberType.ts, 23, 35)) +>n : number, Symbol(n, Decl(plusOperatorWithNumberType.ts, 23, 35)) // number type expressions var ResultIsNumber6 = +objA.a; ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(plusOperatorWithNumberType.ts, 26, 3)) >+objA.a : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(plusOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(plusOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(plusOperatorWithNumberType.ts, 6, 9)) var ResultIsNumber7 = +M.n; ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(plusOperatorWithNumberType.ts, 27, 3)) >+M.n : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(plusOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(plusOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(plusOperatorWithNumberType.ts, 11, 14)) var ResultIsNumber8 = +NUMBER1[0]; ->ResultIsNumber8 : number +>ResultIsNumber8 : number, Symbol(ResultIsNumber8, Decl(plusOperatorWithNumberType.ts, 28, 3)) >+NUMBER1[0] : number >NUMBER1[0] : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(plusOperatorWithNumberType.ts, 2, 3)) +>0 : number var ResultIsNumber9 = +foo(); ->ResultIsNumber9 : number +>ResultIsNumber9 : number, Symbol(ResultIsNumber9, Decl(plusOperatorWithNumberType.ts, 29, 3)) >+foo() : number >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(plusOperatorWithNumberType.ts, 2, 31)) var ResultIsNumber10 = +A.foo(); ->ResultIsNumber10 : number +>ResultIsNumber10 : number, Symbol(ResultIsNumber10, Decl(plusOperatorWithNumberType.ts, 30, 3)) >+A.foo() : number >A.foo() : number ->A.foo : () => number ->A : typeof A ->foo : () => number +>A.foo : () => number, Symbol(A.foo, Decl(plusOperatorWithNumberType.ts, 7, 21)) +>A : typeof A, Symbol(A, Decl(plusOperatorWithNumberType.ts, 4, 36)) +>foo : () => number, Symbol(A.foo, Decl(plusOperatorWithNumberType.ts, 7, 21)) var ResultIsNumber11 = +(NUMBER + NUMBER); ->ResultIsNumber11 : number +>ResultIsNumber11 : number, Symbol(ResultIsNumber11, Decl(plusOperatorWithNumberType.ts, 31, 3)) >+(NUMBER + NUMBER) : number >(NUMBER + NUMBER) : number >NUMBER + NUMBER : number ->NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(plusOperatorWithNumberType.ts, 1, 3)) +>NUMBER : number, Symbol(NUMBER, Decl(plusOperatorWithNumberType.ts, 1, 3)) // miss assignment operators +1; >+1 : number +>1 : number +NUMBER; >+NUMBER : number ->NUMBER : number +>NUMBER : number, Symbol(NUMBER, Decl(plusOperatorWithNumberType.ts, 1, 3)) +NUMBER1; >+NUMBER1 : number ->NUMBER1 : number[] +>NUMBER1 : number[], Symbol(NUMBER1, Decl(plusOperatorWithNumberType.ts, 2, 3)) +foo(); >+foo() : number >foo() : number ->foo : () => number +>foo : () => number, Symbol(foo, Decl(plusOperatorWithNumberType.ts, 2, 31)) +objA.a; >+objA.a : number ->objA.a : number ->objA : A ->a : number +>objA.a : number, Symbol(A.a, Decl(plusOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(plusOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(plusOperatorWithNumberType.ts, 6, 9)) +M.n; >+M.n : number ->M.n : number ->M : typeof M ->n : number +>M.n : number, Symbol(M.n, Decl(plusOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(plusOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(plusOperatorWithNumberType.ts, 11, 14)) +objA.a, M.n; >+objA.a, M.n : number >+objA.a : number ->objA.a : number ->objA : A ->a : number ->M.n : number ->M : typeof M ->n : number +>objA.a : number, Symbol(A.a, Decl(plusOperatorWithNumberType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(plusOperatorWithNumberType.ts, 14, 3)) +>a : number, Symbol(A.a, Decl(plusOperatorWithNumberType.ts, 6, 9)) +>M.n : number, Symbol(M.n, Decl(plusOperatorWithNumberType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(plusOperatorWithNumberType.ts, 9, 1)) +>n : number, Symbol(M.n, Decl(plusOperatorWithNumberType.ts, 11, 14)) diff --git a/tests/baselines/reference/plusOperatorWithStringType.types b/tests/baselines/reference/plusOperatorWithStringType.types index d08a3917196..94001026b9c 100644 --- a/tests/baselines/reference/plusOperatorWithStringType.types +++ b/tests/baselines/reference/plusOperatorWithStringType.types @@ -1,144 +1,155 @@ === tests/cases/conformance/expressions/unaryOperators/plusOperator/plusOperatorWithStringType.ts === // + operator on string type var STRING: string; ->STRING : string +>STRING : string, Symbol(STRING, Decl(plusOperatorWithStringType.ts, 1, 3)) var STRING1: string[] = ["", "abc"]; ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(plusOperatorWithStringType.ts, 2, 3)) >["", "abc"] : string[] +>"" : string +>"abc" : string function foo(): string { return "abc"; } ->foo : () => string +>foo : () => string, Symbol(foo, Decl(plusOperatorWithStringType.ts, 2, 36)) +>"abc" : string class A { ->A : A +>A : A, Symbol(A, Decl(plusOperatorWithStringType.ts, 4, 40)) public a: string; ->a : string +>a : string, Symbol(a, Decl(plusOperatorWithStringType.ts, 6, 9)) static foo() { return ""; } ->foo : () => string +>foo : () => string, Symbol(A.foo, Decl(plusOperatorWithStringType.ts, 7, 21)) +>"" : string } module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(plusOperatorWithStringType.ts, 9, 1)) export var n: string; ->n : string +>n : string, Symbol(n, Decl(plusOperatorWithStringType.ts, 11, 14)) } var objA = new A(); ->objA : A +>objA : A, Symbol(objA, Decl(plusOperatorWithStringType.ts, 14, 3)) >new A() : A ->A : typeof A +>A : typeof A, Symbol(A, Decl(plusOperatorWithStringType.ts, 4, 40)) // string type var var ResultIsNumber1 = +STRING; ->ResultIsNumber1 : number +>ResultIsNumber1 : number, Symbol(ResultIsNumber1, Decl(plusOperatorWithStringType.ts, 17, 3)) >+STRING : number ->STRING : string +>STRING : string, Symbol(STRING, Decl(plusOperatorWithStringType.ts, 1, 3)) var ResultIsNumber2 = +STRING1; ->ResultIsNumber2 : number +>ResultIsNumber2 : number, Symbol(ResultIsNumber2, Decl(plusOperatorWithStringType.ts, 18, 3)) >+STRING1 : number ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(plusOperatorWithStringType.ts, 2, 3)) // string type literal var ResultIsNumber3 = +""; ->ResultIsNumber3 : number +>ResultIsNumber3 : number, Symbol(ResultIsNumber3, Decl(plusOperatorWithStringType.ts, 21, 3)) >+"" : number +>"" : string var ResultIsNumber4 = +{ x: "", y: "" }; ->ResultIsNumber4 : number +>ResultIsNumber4 : number, Symbol(ResultIsNumber4, Decl(plusOperatorWithStringType.ts, 22, 3)) >+{ x: "", y: "" } : number >{ x: "", y: "" } : { x: string; y: string; } ->x : string ->y : string +>x : string, Symbol(x, Decl(plusOperatorWithStringType.ts, 22, 24)) +>"" : string +>y : string, Symbol(y, Decl(plusOperatorWithStringType.ts, 22, 31)) +>"" : string var ResultIsNumber5 = +{ x: "", y: (s: string) => { return s; } }; ->ResultIsNumber5 : number +>ResultIsNumber5 : number, Symbol(ResultIsNumber5, Decl(plusOperatorWithStringType.ts, 23, 3)) >+{ x: "", y: (s: string) => { return s; } } : number >{ x: "", y: (s: string) => { return s; } } : { x: string; y: (s: string) => string; } ->x : string ->y : (s: string) => string +>x : string, Symbol(x, Decl(plusOperatorWithStringType.ts, 23, 24)) +>"" : string +>y : (s: string) => string, Symbol(y, Decl(plusOperatorWithStringType.ts, 23, 31)) >(s: string) => { return s; } : (s: string) => string ->s : string ->s : string +>s : string, Symbol(s, Decl(plusOperatorWithStringType.ts, 23, 36)) +>s : string, Symbol(s, Decl(plusOperatorWithStringType.ts, 23, 36)) // string type expressions var ResultIsNumber6 = +objA.a; ->ResultIsNumber6 : number +>ResultIsNumber6 : number, Symbol(ResultIsNumber6, Decl(plusOperatorWithStringType.ts, 26, 3)) >+objA.a : number ->objA.a : string ->objA : A ->a : string +>objA.a : string, Symbol(A.a, Decl(plusOperatorWithStringType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(plusOperatorWithStringType.ts, 14, 3)) +>a : string, Symbol(A.a, Decl(plusOperatorWithStringType.ts, 6, 9)) var ResultIsNumber7 = +M.n; ->ResultIsNumber7 : number +>ResultIsNumber7 : number, Symbol(ResultIsNumber7, Decl(plusOperatorWithStringType.ts, 27, 3)) >+M.n : number ->M.n : string ->M : typeof M ->n : string +>M.n : string, Symbol(M.n, Decl(plusOperatorWithStringType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(plusOperatorWithStringType.ts, 9, 1)) +>n : string, Symbol(M.n, Decl(plusOperatorWithStringType.ts, 11, 14)) var ResultIsNumber8 = +STRING1[0]; ->ResultIsNumber8 : number +>ResultIsNumber8 : number, Symbol(ResultIsNumber8, Decl(plusOperatorWithStringType.ts, 28, 3)) >+STRING1[0] : number >STRING1[0] : string ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(plusOperatorWithStringType.ts, 2, 3)) +>0 : number var ResultIsNumber9 = +foo(); ->ResultIsNumber9 : number +>ResultIsNumber9 : number, Symbol(ResultIsNumber9, Decl(plusOperatorWithStringType.ts, 29, 3)) >+foo() : number >foo() : string ->foo : () => string +>foo : () => string, Symbol(foo, Decl(plusOperatorWithStringType.ts, 2, 36)) var ResultIsNumber10 = +A.foo(); ->ResultIsNumber10 : number +>ResultIsNumber10 : number, Symbol(ResultIsNumber10, Decl(plusOperatorWithStringType.ts, 30, 3)) >+A.foo() : number >A.foo() : string ->A.foo : () => string ->A : typeof A ->foo : () => string +>A.foo : () => string, Symbol(A.foo, Decl(plusOperatorWithStringType.ts, 7, 21)) +>A : typeof A, Symbol(A, Decl(plusOperatorWithStringType.ts, 4, 40)) +>foo : () => string, Symbol(A.foo, Decl(plusOperatorWithStringType.ts, 7, 21)) var ResultIsNumber11 = +(STRING + STRING); ->ResultIsNumber11 : number +>ResultIsNumber11 : number, Symbol(ResultIsNumber11, Decl(plusOperatorWithStringType.ts, 31, 3)) >+(STRING + STRING) : number >(STRING + STRING) : string >STRING + STRING : string ->STRING : string ->STRING : string +>STRING : string, Symbol(STRING, Decl(plusOperatorWithStringType.ts, 1, 3)) +>STRING : string, Symbol(STRING, Decl(plusOperatorWithStringType.ts, 1, 3)) var ResultIsNumber12 = +STRING.charAt(0); ->ResultIsNumber12 : number +>ResultIsNumber12 : number, Symbol(ResultIsNumber12, Decl(plusOperatorWithStringType.ts, 32, 3)) >+STRING.charAt(0) : number >STRING.charAt(0) : string ->STRING.charAt : (pos: number) => string ->STRING : string ->charAt : (pos: number) => string +>STRING.charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>STRING : string, Symbol(STRING, Decl(plusOperatorWithStringType.ts, 1, 3)) +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number // miss assignment operators +""; >+"" : number +>"" : string +STRING; >+STRING : number ->STRING : string +>STRING : string, Symbol(STRING, Decl(plusOperatorWithStringType.ts, 1, 3)) +STRING1; >+STRING1 : number ->STRING1 : string[] +>STRING1 : string[], Symbol(STRING1, Decl(plusOperatorWithStringType.ts, 2, 3)) +foo(); >+foo() : number >foo() : string ->foo : () => string +>foo : () => string, Symbol(foo, Decl(plusOperatorWithStringType.ts, 2, 36)) +objA.a,M.n; >+objA.a,M.n : string >+objA.a : number ->objA.a : string ->objA : A ->a : string ->M.n : string ->M : typeof M ->n : string +>objA.a : string, Symbol(A.a, Decl(plusOperatorWithStringType.ts, 6, 9)) +>objA : A, Symbol(objA, Decl(plusOperatorWithStringType.ts, 14, 3)) +>a : string, Symbol(A.a, Decl(plusOperatorWithStringType.ts, 6, 9)) +>M.n : string, Symbol(M.n, Decl(plusOperatorWithStringType.ts, 11, 14)) +>M : typeof M, Symbol(M, Decl(plusOperatorWithStringType.ts, 9, 1)) +>n : string, Symbol(M.n, Decl(plusOperatorWithStringType.ts, 11, 14)) diff --git a/tests/baselines/reference/prefixIncrementAsOperandOfPlusExpression.types b/tests/baselines/reference/prefixIncrementAsOperandOfPlusExpression.types index 0d773b89f12..9e8e4c30344 100644 --- a/tests/baselines/reference/prefixIncrementAsOperandOfPlusExpression.types +++ b/tests/baselines/reference/prefixIncrementAsOperandOfPlusExpression.types @@ -1,17 +1,19 @@ === tests/cases/compiler/prefixIncrementAsOperandOfPlusExpression.ts === var x = 1; ->x : number +>x : number, Symbol(x, Decl(prefixIncrementAsOperandOfPlusExpression.ts, 0, 3)) +>1 : number var y = 1; ->y : number +>y : number, Symbol(y, Decl(prefixIncrementAsOperandOfPlusExpression.ts, 1, 3)) +>1 : number + ++x; >+ ++x : number >++x : number ->x : number +>x : number, Symbol(x, Decl(prefixIncrementAsOperandOfPlusExpression.ts, 0, 3)) + ++y; >+ ++y : number >++y : number ->y : number +>y : number, Symbol(y, Decl(prefixIncrementAsOperandOfPlusExpression.ts, 1, 3)) diff --git a/tests/baselines/reference/preserveConstEnums.types b/tests/baselines/reference/preserveConstEnums.types index 080cdbffb2b..a7382668eb3 100644 --- a/tests/baselines/reference/preserveConstEnums.types +++ b/tests/baselines/reference/preserveConstEnums.types @@ -1,9 +1,10 @@ === tests/cases/compiler/preserveConstEnums.ts === const enum E { ->E : E +>E : E, Symbol(E, Decl(preserveConstEnums.ts, 0, 0)) Value = 1, Value2 = Value ->Value : E ->Value2 : E ->Value : E +>Value : E, Symbol(E.Value, Decl(preserveConstEnums.ts, 0, 14)) +>1 : number +>Value2 : E, Symbol(E.Value2, Decl(preserveConstEnums.ts, 1, 14)) +>Value : E, Symbol(E.Value, Decl(preserveConstEnums.ts, 0, 14)) } diff --git a/tests/baselines/reference/prespecializedGenericMembers1.types b/tests/baselines/reference/prespecializedGenericMembers1.types index 74e9f733a94..1340a7db105 100644 --- a/tests/baselines/reference/prespecializedGenericMembers1.types +++ b/tests/baselines/reference/prespecializedGenericMembers1.types @@ -1,13 +1,13 @@ === tests/cases/compiler/prespecializedGenericMembers1.ts === export interface IKitty { ->IKitty : IKitty +>IKitty : IKitty, Symbol(IKitty, Decl(prespecializedGenericMembers1.ts, 0, 0)) } export class Cat { ->Cat : Cat ->CatType : CatType ->IKitty : IKitty +>Cat : Cat, Symbol(Cat, Decl(prespecializedGenericMembers1.ts, 2, 5)) +>CatType : CatType, Symbol(CatType, Decl(prespecializedGenericMembers1.ts, 4, 17)) +>IKitty : IKitty, Symbol(IKitty, Decl(prespecializedGenericMembers1.ts, 0, 0)) constructor() { @@ -15,34 +15,34 @@ export class Cat { } export class CatBag { ->CatBag : CatBag +>CatBag : CatBag, Symbol(CatBag, Decl(prespecializedGenericMembers1.ts, 8, 1)) constructor(cats: { barry: Cat; }) { ->cats : { barry: Cat; } ->barry : Cat ->Cat : Cat ->IKitty : IKitty +>cats : { barry: Cat; }, Symbol(cats, Decl(prespecializedGenericMembers1.ts, 11, 16)) +>barry : Cat, Symbol(barry, Decl(prespecializedGenericMembers1.ts, 11, 23)) +>Cat : Cat, Symbol(Cat, Decl(prespecializedGenericMembers1.ts, 2, 5)) +>IKitty : IKitty, Symbol(IKitty, Decl(prespecializedGenericMembers1.ts, 0, 0)) } } var cat = new Cat(); ->cat : Cat +>cat : Cat, Symbol(cat, Decl(prespecializedGenericMembers1.ts, 15, 3)) >new Cat() : Cat ->Cat : typeof Cat ->IKitty : IKitty +>Cat : typeof Cat, Symbol(Cat, Decl(prespecializedGenericMembers1.ts, 2, 5)) +>IKitty : IKitty, Symbol(IKitty, Decl(prespecializedGenericMembers1.ts, 0, 0)) var catThing = { ->catThing : { barry: Cat; } +>catThing : { barry: Cat; }, Symbol(catThing, Decl(prespecializedGenericMembers1.ts, 16, 3)) >{ barry: cat} : { barry: Cat; } barry: cat ->barry : Cat ->cat : Cat +>barry : Cat, Symbol(barry, Decl(prespecializedGenericMembers1.ts, 16, 16)) +>cat : Cat, Symbol(cat, Decl(prespecializedGenericMembers1.ts, 15, 3)) }; var catBag = new CatBag(catThing); ->catBag : CatBag +>catBag : CatBag, Symbol(catBag, Decl(prespecializedGenericMembers1.ts, 19, 3)) >new CatBag(catThing) : CatBag ->CatBag : typeof CatBag ->catThing : { barry: Cat; } +>CatBag : typeof CatBag, Symbol(CatBag, Decl(prespecializedGenericMembers1.ts, 8, 1)) +>catThing : { barry: Cat; }, Symbol(catThing, Decl(prespecializedGenericMembers1.ts, 16, 3)) diff --git a/tests/baselines/reference/primitiveTypeAsmoduleName.types b/tests/baselines/reference/primitiveTypeAsmoduleName.types index 52a3933b745..448559cfed3 100644 --- a/tests/baselines/reference/primitiveTypeAsmoduleName.types +++ b/tests/baselines/reference/primitiveTypeAsmoduleName.types @@ -1,4 +1,4 @@ === tests/cases/compiler/primitiveTypeAsmoduleName.ts === module string {} ->string : unknown +>string : any, Symbol(string, Decl(primitiveTypeAsmoduleName.ts, 0, 0)) diff --git a/tests/baselines/reference/primtiveTypesAreIdentical.types b/tests/baselines/reference/primtiveTypesAreIdentical.types index bbff4623f0b..147d99c29eb 100644 --- a/tests/baselines/reference/primtiveTypesAreIdentical.types +++ b/tests/baselines/reference/primtiveTypesAreIdentical.types @@ -2,96 +2,96 @@ // primitive types are identical to themselves so these overloads will all cause errors function foo1(x: number); ->foo1 : { (x: number): any; (x: number): any; } ->x : number +>foo1 : { (x: number): any; (x: number): any; }, Symbol(foo1, Decl(primtiveTypesAreIdentical.ts, 0, 0), Decl(primtiveTypesAreIdentical.ts, 2, 25), Decl(primtiveTypesAreIdentical.ts, 3, 25)) +>x : number, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 2, 14)) function foo1(x: number); ->foo1 : { (x: number): any; (x: number): any; } ->x : number +>foo1 : { (x: number): any; (x: number): any; }, Symbol(foo1, Decl(primtiveTypesAreIdentical.ts, 0, 0), Decl(primtiveTypesAreIdentical.ts, 2, 25), Decl(primtiveTypesAreIdentical.ts, 3, 25)) +>x : number, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 3, 14)) function foo1(x: any) { } ->foo1 : { (x: number): any; (x: number): any; } ->x : any +>foo1 : { (x: number): any; (x: number): any; }, Symbol(foo1, Decl(primtiveTypesAreIdentical.ts, 0, 0), Decl(primtiveTypesAreIdentical.ts, 2, 25), Decl(primtiveTypesAreIdentical.ts, 3, 25)) +>x : any, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 4, 14)) function foo2(x: string); ->foo2 : { (x: string): any; (x: string): any; } ->x : string +>foo2 : { (x: string): any; (x: string): any; }, Symbol(foo2, Decl(primtiveTypesAreIdentical.ts, 4, 25), Decl(primtiveTypesAreIdentical.ts, 6, 25), Decl(primtiveTypesAreIdentical.ts, 7, 25)) +>x : string, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 6, 14)) function foo2(x: string); ->foo2 : { (x: string): any; (x: string): any; } ->x : string +>foo2 : { (x: string): any; (x: string): any; }, Symbol(foo2, Decl(primtiveTypesAreIdentical.ts, 4, 25), Decl(primtiveTypesAreIdentical.ts, 6, 25), Decl(primtiveTypesAreIdentical.ts, 7, 25)) +>x : string, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 7, 14)) function foo2(x: any) { } ->foo2 : { (x: string): any; (x: string): any; } ->x : any +>foo2 : { (x: string): any; (x: string): any; }, Symbol(foo2, Decl(primtiveTypesAreIdentical.ts, 4, 25), Decl(primtiveTypesAreIdentical.ts, 6, 25), Decl(primtiveTypesAreIdentical.ts, 7, 25)) +>x : any, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 8, 14)) function foo3(x: boolean); ->foo3 : { (x: boolean): any; (x: boolean): any; } ->x : boolean +>foo3 : { (x: boolean): any; (x: boolean): any; }, Symbol(foo3, Decl(primtiveTypesAreIdentical.ts, 8, 25), Decl(primtiveTypesAreIdentical.ts, 10, 26), Decl(primtiveTypesAreIdentical.ts, 11, 26)) +>x : boolean, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 10, 14)) function foo3(x: boolean); ->foo3 : { (x: boolean): any; (x: boolean): any; } ->x : boolean +>foo3 : { (x: boolean): any; (x: boolean): any; }, Symbol(foo3, Decl(primtiveTypesAreIdentical.ts, 8, 25), Decl(primtiveTypesAreIdentical.ts, 10, 26), Decl(primtiveTypesAreIdentical.ts, 11, 26)) +>x : boolean, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 11, 14)) function foo3(x: any) { } ->foo3 : { (x: boolean): any; (x: boolean): any; } ->x : any +>foo3 : { (x: boolean): any; (x: boolean): any; }, Symbol(foo3, Decl(primtiveTypesAreIdentical.ts, 8, 25), Decl(primtiveTypesAreIdentical.ts, 10, 26), Decl(primtiveTypesAreIdentical.ts, 11, 26)) +>x : any, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 12, 14)) function foo4(x: any); ->foo4 : { (x: any): any; (x: any): any; } ->x : any +>foo4 : { (x: any): any; (x: any): any; }, Symbol(foo4, Decl(primtiveTypesAreIdentical.ts, 12, 25), Decl(primtiveTypesAreIdentical.ts, 14, 22), Decl(primtiveTypesAreIdentical.ts, 15, 22)) +>x : any, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 14, 14)) function foo4(x: any); ->foo4 : { (x: any): any; (x: any): any; } ->x : any +>foo4 : { (x: any): any; (x: any): any; }, Symbol(foo4, Decl(primtiveTypesAreIdentical.ts, 12, 25), Decl(primtiveTypesAreIdentical.ts, 14, 22), Decl(primtiveTypesAreIdentical.ts, 15, 22)) +>x : any, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 15, 14)) function foo4(x: any) { } ->foo4 : { (x: any): any; (x: any): any; } ->x : any +>foo4 : { (x: any): any; (x: any): any; }, Symbol(foo4, Decl(primtiveTypesAreIdentical.ts, 12, 25), Decl(primtiveTypesAreIdentical.ts, 14, 22), Decl(primtiveTypesAreIdentical.ts, 15, 22)) +>x : any, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 16, 14)) function foo5(x: 'a'); ->foo5 : { (x: 'a'): any; (x: 'a'): any; (x: string): any; } ->x : 'a' +>foo5 : { (x: 'a'): any; (x: 'a'): any; (x: string): any; }, Symbol(foo5, Decl(primtiveTypesAreIdentical.ts, 16, 25), Decl(primtiveTypesAreIdentical.ts, 18, 22), Decl(primtiveTypesAreIdentical.ts, 19, 22), Decl(primtiveTypesAreIdentical.ts, 20, 25)) +>x : 'a', Symbol(x, Decl(primtiveTypesAreIdentical.ts, 18, 14)) function foo5(x: 'a'); ->foo5 : { (x: 'a'): any; (x: 'a'): any; (x: string): any; } ->x : 'a' +>foo5 : { (x: 'a'): any; (x: 'a'): any; (x: string): any; }, Symbol(foo5, Decl(primtiveTypesAreIdentical.ts, 16, 25), Decl(primtiveTypesAreIdentical.ts, 18, 22), Decl(primtiveTypesAreIdentical.ts, 19, 22), Decl(primtiveTypesAreIdentical.ts, 20, 25)) +>x : 'a', Symbol(x, Decl(primtiveTypesAreIdentical.ts, 19, 14)) function foo5(x: string); ->foo5 : { (x: 'a'): any; (x: 'a'): any; (x: string): any; } ->x : string +>foo5 : { (x: 'a'): any; (x: 'a'): any; (x: string): any; }, Symbol(foo5, Decl(primtiveTypesAreIdentical.ts, 16, 25), Decl(primtiveTypesAreIdentical.ts, 18, 22), Decl(primtiveTypesAreIdentical.ts, 19, 22), Decl(primtiveTypesAreIdentical.ts, 20, 25)) +>x : string, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 20, 14)) function foo5(x: any) { } ->foo5 : { (x: 'a'): any; (x: 'a'): any; (x: string): any; } ->x : any +>foo5 : { (x: 'a'): any; (x: 'a'): any; (x: string): any; }, Symbol(foo5, Decl(primtiveTypesAreIdentical.ts, 16, 25), Decl(primtiveTypesAreIdentical.ts, 18, 22), Decl(primtiveTypesAreIdentical.ts, 19, 22), Decl(primtiveTypesAreIdentical.ts, 20, 25)) +>x : any, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 21, 14)) enum E { A } ->E : E ->A : E +>E : E, Symbol(E, Decl(primtiveTypesAreIdentical.ts, 21, 25)) +>A : E, Symbol(E.A, Decl(primtiveTypesAreIdentical.ts, 23, 8)) function foo6(x: E); ->foo6 : { (x: E): any; (x: E): any; } ->x : E ->E : E +>foo6 : { (x: E): any; (x: E): any; }, Symbol(foo6, Decl(primtiveTypesAreIdentical.ts, 23, 12), Decl(primtiveTypesAreIdentical.ts, 24, 20), Decl(primtiveTypesAreIdentical.ts, 25, 20)) +>x : E, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 24, 14)) +>E : E, Symbol(E, Decl(primtiveTypesAreIdentical.ts, 21, 25)) function foo6(x: E); ->foo6 : { (x: E): any; (x: E): any; } ->x : E ->E : E +>foo6 : { (x: E): any; (x: E): any; }, Symbol(foo6, Decl(primtiveTypesAreIdentical.ts, 23, 12), Decl(primtiveTypesAreIdentical.ts, 24, 20), Decl(primtiveTypesAreIdentical.ts, 25, 20)) +>x : E, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 25, 14)) +>E : E, Symbol(E, Decl(primtiveTypesAreIdentical.ts, 21, 25)) function foo6(x: any) { } ->foo6 : { (x: E): any; (x: E): any; } ->x : any +>foo6 : { (x: E): any; (x: E): any; }, Symbol(foo6, Decl(primtiveTypesAreIdentical.ts, 23, 12), Decl(primtiveTypesAreIdentical.ts, 24, 20), Decl(primtiveTypesAreIdentical.ts, 25, 20)) +>x : any, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 26, 14)) function foo7(x: void); ->foo7 : { (x: void): any; (x: void): any; } ->x : void +>foo7 : { (x: void): any; (x: void): any; }, Symbol(foo7, Decl(primtiveTypesAreIdentical.ts, 26, 25), Decl(primtiveTypesAreIdentical.ts, 28, 23), Decl(primtiveTypesAreIdentical.ts, 29, 23)) +>x : void, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 28, 14)) function foo7(x: void); ->foo7 : { (x: void): any; (x: void): any; } ->x : void +>foo7 : { (x: void): any; (x: void): any; }, Symbol(foo7, Decl(primtiveTypesAreIdentical.ts, 26, 25), Decl(primtiveTypesAreIdentical.ts, 28, 23), Decl(primtiveTypesAreIdentical.ts, 29, 23)) +>x : void, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 29, 14)) function foo7(x: any) { } ->foo7 : { (x: void): any; (x: void): any; } ->x : any +>foo7 : { (x: void): any; (x: void): any; }, Symbol(foo7, Decl(primtiveTypesAreIdentical.ts, 26, 25), Decl(primtiveTypesAreIdentical.ts, 28, 23), Decl(primtiveTypesAreIdentical.ts, 29, 23)) +>x : any, Symbol(x, Decl(primtiveTypesAreIdentical.ts, 30, 14)) diff --git a/tests/baselines/reference/privacyCheckAnonymousFunctionParameter.types b/tests/baselines/reference/privacyCheckAnonymousFunctionParameter.types index 17e496f5568..e20829b9dab 100644 --- a/tests/baselines/reference/privacyCheckAnonymousFunctionParameter.types +++ b/tests/baselines/reference/privacyCheckAnonymousFunctionParameter.types @@ -1,38 +1,42 @@ === tests/cases/compiler/privacyCheckAnonymousFunctionParameter.ts === export var x = 1; // Makes this an external module ->x : number +>x : number, Symbol(x, Decl(privacyCheckAnonymousFunctionParameter.ts, 0, 10)) +>1 : number interface Iterator { ->Iterator : Iterator ->T : T +>Iterator : Iterator, Symbol(Iterator, Decl(privacyCheckAnonymousFunctionParameter.ts, 0, 17)) +>T : T, Symbol(T, Decl(privacyCheckAnonymousFunctionParameter.ts, 1, 19)) } module Query { ->Query : typeof Query +>Query : typeof Query, Symbol(Query, Decl(privacyCheckAnonymousFunctionParameter.ts, 2, 1)) export function fromDoWhile(doWhile: (test: Iterator) => boolean): Iterator { ->fromDoWhile : (doWhile: (test: Iterator) => boolean) => Iterator ->T : T ->doWhile : (test: Iterator) => boolean ->test : Iterator ->Iterator : Iterator ->T : T ->Iterator : Iterator ->T : T +>fromDoWhile : (doWhile: (test: Iterator) => boolean) => Iterator, Symbol(fromDoWhile, Decl(privacyCheckAnonymousFunctionParameter.ts, 4, 14)) +>T : T, Symbol(T, Decl(privacyCheckAnonymousFunctionParameter.ts, 5, 32)) +>doWhile : (test: Iterator) => boolean, Symbol(doWhile, Decl(privacyCheckAnonymousFunctionParameter.ts, 5, 35)) +>test : Iterator, Symbol(test, Decl(privacyCheckAnonymousFunctionParameter.ts, 5, 45)) +>Iterator : Iterator, Symbol(Iterator, Decl(privacyCheckAnonymousFunctionParameter.ts, 0, 17)) +>T : T, Symbol(T, Decl(privacyCheckAnonymousFunctionParameter.ts, 5, 32)) +>Iterator : Iterator, Symbol(Iterator, Decl(privacyCheckAnonymousFunctionParameter.ts, 0, 17)) +>T : T, Symbol(T, Decl(privacyCheckAnonymousFunctionParameter.ts, 5, 32)) return null; +>null : null } function fromOrderBy() { ->fromOrderBy : () => Iterator<{}> +>fromOrderBy : () => Iterator<{}>, Symbol(fromOrderBy, Decl(privacyCheckAnonymousFunctionParameter.ts, 7, 5)) return fromDoWhile(test => { >fromDoWhile(test => { return true; }) : Iterator<{}> ->fromDoWhile : (doWhile: (test: Iterator) => boolean) => Iterator +>fromDoWhile : (doWhile: (test: Iterator) => boolean) => Iterator, Symbol(fromDoWhile, Decl(privacyCheckAnonymousFunctionParameter.ts, 4, 14)) >test => { return true; } : (test: Iterator<{}>) => boolean ->test : Iterator<{}> +>test : Iterator<{}>, Symbol(test, Decl(privacyCheckAnonymousFunctionParameter.ts, 10, 27)) return true; +>true : boolean + }); } } diff --git a/tests/baselines/reference/privacyCheckAnonymousFunctionParameter2.types b/tests/baselines/reference/privacyCheckAnonymousFunctionParameter2.types index 6615a3c9af0..6a06d8ec625 100644 --- a/tests/baselines/reference/privacyCheckAnonymousFunctionParameter2.types +++ b/tests/baselines/reference/privacyCheckAnonymousFunctionParameter2.types @@ -1,37 +1,39 @@ === tests/cases/compiler/privacyCheckAnonymousFunctionParameter2.ts === export var x = 1; // Makes this an external module ->x : number +>x : number, Symbol(x, Decl(privacyCheckAnonymousFunctionParameter2.ts, 0, 10)) +>1 : number interface Iterator { x: T } ->Iterator : Iterator ->T : T ->x : T ->T : T +>Iterator : Iterator, Symbol(Iterator, Decl(privacyCheckAnonymousFunctionParameter2.ts, 0, 17)) +>T : T, Symbol(T, Decl(privacyCheckAnonymousFunctionParameter2.ts, 1, 19)) +>x : T, Symbol(x, Decl(privacyCheckAnonymousFunctionParameter2.ts, 1, 23)) +>T : T, Symbol(T, Decl(privacyCheckAnonymousFunctionParameter2.ts, 1, 19)) module Q { ->Q : typeof Q +>Q : typeof Q, Symbol(Q, Decl(privacyCheckAnonymousFunctionParameter2.ts, 1, 30), Decl(privacyCheckAnonymousFunctionParameter2.ts, 7, 1)) export function foo(x: (a: Iterator) => number) { ->foo : (x: (a: Iterator) => number) => (a: Iterator) => number ->T : T ->x : (a: Iterator) => number ->a : Iterator ->Iterator : Iterator ->T : T +>foo : (x: (a: Iterator) => number) => (a: Iterator) => number, Symbol(foo, Decl(privacyCheckAnonymousFunctionParameter2.ts, 3, 10)) +>T : T, Symbol(T, Decl(privacyCheckAnonymousFunctionParameter2.ts, 4, 24)) +>x : (a: Iterator) => number, Symbol(x, Decl(privacyCheckAnonymousFunctionParameter2.ts, 4, 27)) +>a : Iterator, Symbol(a, Decl(privacyCheckAnonymousFunctionParameter2.ts, 4, 31)) +>Iterator : Iterator, Symbol(Iterator, Decl(privacyCheckAnonymousFunctionParameter2.ts, 0, 17)) +>T : T, Symbol(T, Decl(privacyCheckAnonymousFunctionParameter2.ts, 4, 24)) return x; ->x : (a: Iterator) => number +>x : (a: Iterator) => number, Symbol(x, Decl(privacyCheckAnonymousFunctionParameter2.ts, 4, 27)) } } module Q { ->Q : typeof Q +>Q : typeof Q, Symbol(Q, Decl(privacyCheckAnonymousFunctionParameter2.ts, 1, 30), Decl(privacyCheckAnonymousFunctionParameter2.ts, 7, 1)) function bar() { ->bar : () => void +>bar : () => void, Symbol(bar, Decl(privacyCheckAnonymousFunctionParameter2.ts, 9, 10)) foo(null); >foo(null) : (a: Iterator<{}>) => number ->foo : (x: (a: Iterator) => number) => (a: Iterator) => number +>foo : (x: (a: Iterator) => number) => (a: Iterator) => number, Symbol(foo, Decl(privacyCheckAnonymousFunctionParameter2.ts, 3, 10)) +>null : null } } diff --git a/tests/baselines/reference/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.types b/tests/baselines/reference/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.types index 0d46d4ab12b..aa0964e8813 100644 --- a/tests/baselines/reference/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.types +++ b/tests/baselines/reference/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.types @@ -1,19 +1,19 @@ === tests/cases/compiler/privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts === export interface A { ->A : A ->T : T +>A : A, Symbol(A, Decl(privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts, 0, 0)) +>T : T, Symbol(T, Decl(privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts, 0, 19)) f1(callback: (p: T) => any); ->f1 : (callback: (p: T) => any) => any ->callback : (p: T) => any ->p : T ->T : T +>f1 : (callback: (p: T) => any) => any, Symbol(f1, Decl(privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts, 0, 23)) +>callback : (p: T) => any, Symbol(callback, Decl(privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts, 1, 7)) +>p : T, Symbol(p, Decl(privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts, 1, 18)) +>T : T, Symbol(T, Decl(privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts, 0, 19)) } export interface B extends A { ->B : B ->T : T ->A : A ->T : T +>B : B, Symbol(B, Decl(privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts, 2, 1)) +>T : T, Symbol(T, Decl(privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts, 4, 19)) +>A : A, Symbol(A, Decl(privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts, 0, 0)) +>T : T, Symbol(T, Decl(privacyCheckCallbackOfInterfaceMethodWithTypeParameter.ts, 4, 19)) } diff --git a/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface1.types b/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface1.types index 936f04731f6..f5a9e373aee 100644 --- a/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface1.types +++ b/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface1.types @@ -1,22 +1,22 @@ === tests/cases/compiler/privacyCheckExportAssignmentOnExportedGenericInterface1.ts === module Foo { ->Foo : new () => A> +>Foo : new () => A>, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 0, 0), Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 6, 3)) export interface A { ->A : A ->T : T +>A : A, Symbol(A, Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 0, 12)) +>T : T, Symbol(T, Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 1, 23)) } } interface Foo { ->Foo : Foo ->T : T +>Foo : Foo, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 0, 0), Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 6, 3)) +>T : T, Symbol(T, Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 4, 14)) } var Foo: new () => Foo.A>; ->Foo : new () => Foo.A> ->Foo : unknown ->A : Foo.A ->Foo : Foo +>Foo : new () => Foo.A>, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 0, 0), Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 6, 3)) +>Foo : any, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 0, 0), Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 6, 3)) +>A : Foo.A, Symbol(Foo.A, Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 0, 12)) +>Foo : Foo, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 0, 0), Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 6, 3)) export = Foo; ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 0, 0), Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface1.ts, 6, 3)) diff --git a/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.types b/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.types index 8c89db63515..20ff0d5d3d9 100644 --- a/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.types +++ b/tests/baselines/reference/privacyCheckExportAssignmentOnExportedGenericInterface2.types @@ -1,28 +1,29 @@ === tests/cases/compiler/privacyCheckExportAssignmentOnExportedGenericInterface2.ts === export = Foo; ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 0, 13), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 7, 1)) interface Foo { ->Foo : Foo ->T : T +>Foo : Foo, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 0, 13), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 7, 1)) +>T : T, Symbol(T, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 2, 14)) } function Foo(array: T[]): Foo { ->Foo : typeof Foo ->T : T ->array : T[] ->T : T ->Foo : Foo ->T : T +>Foo : typeof Foo, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 0, 13), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 7, 1)) +>T : T, Symbol(T, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 5, 13)) +>array : T[], Symbol(array, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 5, 16)) +>T : T, Symbol(T, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 5, 13)) +>Foo : Foo, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 0, 13), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 7, 1)) +>T : T, Symbol(T, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 5, 13)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 0, 13), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 3, 1), Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 7, 1)) export var x = "hello"; ->x : string +>x : string, Symbol(x, Decl(privacyCheckExportAssignmentOnExportedGenericInterface2.ts, 10, 14)) +>"hello" : string } diff --git a/tests/baselines/reference/privacyCheckExternalModuleExportAssignmentOfGenericClass.types b/tests/baselines/reference/privacyCheckExternalModuleExportAssignmentOfGenericClass.types index 2259b039c91..9a671051997 100644 --- a/tests/baselines/reference/privacyCheckExternalModuleExportAssignmentOfGenericClass.types +++ b/tests/baselines/reference/privacyCheckExternalModuleExportAssignmentOfGenericClass.types @@ -1,27 +1,27 @@ === tests/cases/compiler/privacyCheckExternalModuleExportAssignmentOfGenericClass_1.ts === import Foo = require("privacyCheckExternalModuleExportAssignmentOfGenericClass_0"); ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(privacyCheckExternalModuleExportAssignmentOfGenericClass_1.ts, 0, 0)) export = Bar; ->Bar : Bar +>Bar : Bar, Symbol(Bar, Decl(privacyCheckExternalModuleExportAssignmentOfGenericClass_1.ts, 1, 13)) interface Bar { ->Bar : Bar +>Bar : Bar, Symbol(Bar, Decl(privacyCheckExternalModuleExportAssignmentOfGenericClass_1.ts, 1, 13)) foo: Foo; ->foo : Foo ->Foo : Foo +>foo : Foo, Symbol(foo, Decl(privacyCheckExternalModuleExportAssignmentOfGenericClass_1.ts, 2, 15)) +>Foo : Foo, Symbol(Foo, Decl(privacyCheckExternalModuleExportAssignmentOfGenericClass_1.ts, 0, 0)) } === tests/cases/compiler/privacyCheckExternalModuleExportAssignmentOfGenericClass_0.ts === export = Foo; ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(privacyCheckExternalModuleExportAssignmentOfGenericClass_0.ts, 0, 13)) class Foo { ->Foo : Foo ->A : A +>Foo : Foo, Symbol(Foo, Decl(privacyCheckExternalModuleExportAssignmentOfGenericClass_0.ts, 0, 13)) +>A : A, Symbol(A, Decl(privacyCheckExternalModuleExportAssignmentOfGenericClass_0.ts, 1, 10)) constructor(public a: A) { } ->a : A ->A : A +>a : A, Symbol(a, Decl(privacyCheckExternalModuleExportAssignmentOfGenericClass_0.ts, 2, 16)) +>A : A, Symbol(A, Decl(privacyCheckExternalModuleExportAssignmentOfGenericClass_0.ts, 1, 10)) } diff --git a/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.types b/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.types index 2000b877abd..8d4c3144520 100644 --- a/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.types +++ b/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.types @@ -1,28 +1,28 @@ === tests/cases/compiler/privacyCheckOnTypeParameterReferenceInConstructorParameter.ts === export class A{ ->A : A ->T1 : T1 +>A : A, Symbol(A, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 0, 0)) +>T1 : T1, Symbol(T1, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 0, 15)) constructor(callback: (self: A) => void) { ->callback : (self: A) => void ->self : A ->A : A ->T1 : T1 +>callback : (self: A) => void, Symbol(callback, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 1, 16)) +>self : A, Symbol(self, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 1, 27)) +>A : A, Symbol(A, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 0, 0)) +>T1 : T1, Symbol(T1, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 0, 15)) var child = new B(this); ->child : B> +>child : B>, Symbol(child, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 2, 11)) >new B(this) : B> ->B : typeof B ->this : A +>B : typeof B, Symbol(B, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 4, 1)) +>this : A, Symbol(A, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 0, 0)) } } export class B { ->B : B ->T2 : T2 +>B : B, Symbol(B, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 4, 1)) +>T2 : T2, Symbol(T2, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 6, 15)) constructor(parent: T2) { } ->parent : T2 ->T2 : T2 +>parent : T2, Symbol(parent, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 7, 16)) +>T2 : T2, Symbol(T2, Decl(privacyCheckOnTypeParameterReferenceInConstructorParameter.ts, 6, 15)) } diff --git a/tests/baselines/reference/privacyClass.types b/tests/baselines/reference/privacyClass.types index d42133ad9ec..294025c0b21 100644 --- a/tests/baselines/reference/privacyClass.types +++ b/tests/baselines/reference/privacyClass.types @@ -1,246 +1,246 @@ === tests/cases/compiler/privacyClass.ts === export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(privacyClass.ts, 0, 0)) export interface m1_i_public { ->m1_i_public : m1_i_public +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyClass.ts, 0, 18)) } interface m1_i_private { ->m1_i_private : m1_i_private +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyClass.ts, 2, 5)) } export class m1_c_public { ->m1_c_public : m1_c_public +>m1_c_public : m1_c_public, Symbol(m1_c_public, Decl(privacyClass.ts, 5, 5)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyClass.ts, 7, 30)) } } class m1_c_private { ->m1_c_private : m1_c_private +>m1_c_private : m1_c_private, Symbol(m1_c_private, Decl(privacyClass.ts, 10, 5)) } class m1_C1_private extends m1_c_public { ->m1_C1_private : m1_C1_private ->m1_c_public : m1_c_public +>m1_C1_private : m1_C1_private, Symbol(m1_C1_private, Decl(privacyClass.ts, 13, 5)) +>m1_c_public : m1_c_public, Symbol(m1_c_public, Decl(privacyClass.ts, 5, 5)) } class m1_C2_private extends m1_c_private { ->m1_C2_private : m1_C2_private ->m1_c_private : m1_c_private +>m1_C2_private : m1_C2_private, Symbol(m1_C2_private, Decl(privacyClass.ts, 16, 5)) +>m1_c_private : m1_c_private, Symbol(m1_c_private, Decl(privacyClass.ts, 10, 5)) } export class m1_C3_public extends m1_c_public { ->m1_C3_public : m1_C3_public ->m1_c_public : m1_c_public +>m1_C3_public : m1_C3_public, Symbol(m1_C3_public, Decl(privacyClass.ts, 18, 5)) +>m1_c_public : m1_c_public, Symbol(m1_c_public, Decl(privacyClass.ts, 5, 5)) } export class m1_C4_public extends m1_c_private { ->m1_C4_public : m1_C4_public ->m1_c_private : m1_c_private +>m1_C4_public : m1_C4_public, Symbol(m1_C4_public, Decl(privacyClass.ts, 20, 5)) +>m1_c_private : m1_c_private, Symbol(m1_c_private, Decl(privacyClass.ts, 10, 5)) } class m1_C5_private implements m1_i_public { ->m1_C5_private : m1_C5_private ->m1_i_public : m1_i_public +>m1_C5_private : m1_C5_private, Symbol(m1_C5_private, Decl(privacyClass.ts, 22, 5)) +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyClass.ts, 0, 18)) } class m1_C6_private implements m1_i_private { ->m1_C6_private : m1_C6_private ->m1_i_private : m1_i_private +>m1_C6_private : m1_C6_private, Symbol(m1_C6_private, Decl(privacyClass.ts, 25, 5)) +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyClass.ts, 2, 5)) } export class m1_C7_public implements m1_i_public { ->m1_C7_public : m1_C7_public ->m1_i_public : m1_i_public +>m1_C7_public : m1_C7_public, Symbol(m1_C7_public, Decl(privacyClass.ts, 27, 5)) +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyClass.ts, 0, 18)) } export class m1_C8_public implements m1_i_private { ->m1_C8_public : m1_C8_public ->m1_i_private : m1_i_private +>m1_C8_public : m1_C8_public, Symbol(m1_C8_public, Decl(privacyClass.ts, 29, 5)) +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyClass.ts, 2, 5)) } class m1_C9_private extends m1_c_public implements m1_i_private, m1_i_public { ->m1_C9_private : m1_C9_private ->m1_c_public : m1_c_public ->m1_i_private : m1_i_private ->m1_i_public : m1_i_public +>m1_C9_private : m1_C9_private, Symbol(m1_C9_private, Decl(privacyClass.ts, 31, 5)) +>m1_c_public : m1_c_public, Symbol(m1_c_public, Decl(privacyClass.ts, 5, 5)) +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyClass.ts, 2, 5)) +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyClass.ts, 0, 18)) } class m1_C10_private extends m1_c_private implements m1_i_private, m1_i_public { ->m1_C10_private : m1_C10_private ->m1_c_private : m1_c_private ->m1_i_private : m1_i_private ->m1_i_public : m1_i_public +>m1_C10_private : m1_C10_private, Symbol(m1_C10_private, Decl(privacyClass.ts, 34, 5)) +>m1_c_private : m1_c_private, Symbol(m1_c_private, Decl(privacyClass.ts, 10, 5)) +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyClass.ts, 2, 5)) +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyClass.ts, 0, 18)) } export class m1_C11_public extends m1_c_public implements m1_i_private, m1_i_public { ->m1_C11_public : m1_C11_public ->m1_c_public : m1_c_public ->m1_i_private : m1_i_private ->m1_i_public : m1_i_public +>m1_C11_public : m1_C11_public, Symbol(m1_C11_public, Decl(privacyClass.ts, 36, 5)) +>m1_c_public : m1_c_public, Symbol(m1_c_public, Decl(privacyClass.ts, 5, 5)) +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyClass.ts, 2, 5)) +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyClass.ts, 0, 18)) } export class m1_C12_public extends m1_c_private implements m1_i_private, m1_i_public { ->m1_C12_public : m1_C12_public ->m1_c_private : m1_c_private ->m1_i_private : m1_i_private ->m1_i_public : m1_i_public +>m1_C12_public : m1_C12_public, Symbol(m1_C12_public, Decl(privacyClass.ts, 38, 5)) +>m1_c_private : m1_c_private, Symbol(m1_c_private, Decl(privacyClass.ts, 10, 5)) +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyClass.ts, 2, 5)) +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyClass.ts, 0, 18)) } } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(privacyClass.ts, 41, 1)) export interface m2_i_public { ->m2_i_public : m2_i_public +>m2_i_public : m2_i_public, Symbol(m2_i_public, Decl(privacyClass.ts, 44, 11)) } interface m2_i_private { ->m2_i_private : m2_i_private +>m2_i_private : m2_i_private, Symbol(m2_i_private, Decl(privacyClass.ts, 46, 5)) } export class m2_c_public { ->m2_c_public : m2_c_public +>m2_c_public : m2_c_public, Symbol(m2_c_public, Decl(privacyClass.ts, 49, 5)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyClass.ts, 51, 30)) } } class m2_c_private { ->m2_c_private : m2_c_private +>m2_c_private : m2_c_private, Symbol(m2_c_private, Decl(privacyClass.ts, 54, 5)) } class m2_C1_private extends m2_c_public { ->m2_C1_private : m2_C1_private ->m2_c_public : m2_c_public +>m2_C1_private : m2_C1_private, Symbol(m2_C1_private, Decl(privacyClass.ts, 57, 5)) +>m2_c_public : m2_c_public, Symbol(m2_c_public, Decl(privacyClass.ts, 49, 5)) } class m2_C2_private extends m2_c_private { ->m2_C2_private : m2_C2_private ->m2_c_private : m2_c_private +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyClass.ts, 60, 5)) +>m2_c_private : m2_c_private, Symbol(m2_c_private, Decl(privacyClass.ts, 54, 5)) } export class m2_C3_public extends m2_c_public { ->m2_C3_public : m2_C3_public ->m2_c_public : m2_c_public +>m2_C3_public : m2_C3_public, Symbol(m2_C3_public, Decl(privacyClass.ts, 62, 5)) +>m2_c_public : m2_c_public, Symbol(m2_c_public, Decl(privacyClass.ts, 49, 5)) } export class m2_C4_public extends m2_c_private { ->m2_C4_public : m2_C4_public ->m2_c_private : m2_c_private +>m2_C4_public : m2_C4_public, Symbol(m2_C4_public, Decl(privacyClass.ts, 64, 5)) +>m2_c_private : m2_c_private, Symbol(m2_c_private, Decl(privacyClass.ts, 54, 5)) } class m2_C5_private implements m2_i_public { ->m2_C5_private : m2_C5_private ->m2_i_public : m2_i_public +>m2_C5_private : m2_C5_private, Symbol(m2_C5_private, Decl(privacyClass.ts, 66, 5)) +>m2_i_public : m2_i_public, Symbol(m2_i_public, Decl(privacyClass.ts, 44, 11)) } class m2_C6_private implements m2_i_private { ->m2_C6_private : m2_C6_private ->m2_i_private : m2_i_private +>m2_C6_private : m2_C6_private, Symbol(m2_C6_private, Decl(privacyClass.ts, 69, 5)) +>m2_i_private : m2_i_private, Symbol(m2_i_private, Decl(privacyClass.ts, 46, 5)) } export class m2_C7_public implements m2_i_public { ->m2_C7_public : m2_C7_public ->m2_i_public : m2_i_public +>m2_C7_public : m2_C7_public, Symbol(m2_C7_public, Decl(privacyClass.ts, 71, 5)) +>m2_i_public : m2_i_public, Symbol(m2_i_public, Decl(privacyClass.ts, 44, 11)) } export class m2_C8_public implements m2_i_private { ->m2_C8_public : m2_C8_public ->m2_i_private : m2_i_private +>m2_C8_public : m2_C8_public, Symbol(m2_C8_public, Decl(privacyClass.ts, 73, 5)) +>m2_i_private : m2_i_private, Symbol(m2_i_private, Decl(privacyClass.ts, 46, 5)) } class m2_C9_private extends m2_c_public implements m2_i_private, m2_i_public { ->m2_C9_private : m2_C9_private ->m2_c_public : m2_c_public ->m2_i_private : m2_i_private ->m2_i_public : m2_i_public +>m2_C9_private : m2_C9_private, Symbol(m2_C9_private, Decl(privacyClass.ts, 75, 5)) +>m2_c_public : m2_c_public, Symbol(m2_c_public, Decl(privacyClass.ts, 49, 5)) +>m2_i_private : m2_i_private, Symbol(m2_i_private, Decl(privacyClass.ts, 46, 5)) +>m2_i_public : m2_i_public, Symbol(m2_i_public, Decl(privacyClass.ts, 44, 11)) } class m2_C10_private extends m2_c_private implements m2_i_private, m2_i_public { ->m2_C10_private : m2_C10_private ->m2_c_private : m2_c_private ->m2_i_private : m2_i_private ->m2_i_public : m2_i_public +>m2_C10_private : m2_C10_private, Symbol(m2_C10_private, Decl(privacyClass.ts, 78, 5)) +>m2_c_private : m2_c_private, Symbol(m2_c_private, Decl(privacyClass.ts, 54, 5)) +>m2_i_private : m2_i_private, Symbol(m2_i_private, Decl(privacyClass.ts, 46, 5)) +>m2_i_public : m2_i_public, Symbol(m2_i_public, Decl(privacyClass.ts, 44, 11)) } export class m2_C11_public extends m2_c_public implements m2_i_private, m2_i_public { ->m2_C11_public : m2_C11_public ->m2_c_public : m2_c_public ->m2_i_private : m2_i_private ->m2_i_public : m2_i_public +>m2_C11_public : m2_C11_public, Symbol(m2_C11_public, Decl(privacyClass.ts, 80, 5)) +>m2_c_public : m2_c_public, Symbol(m2_c_public, Decl(privacyClass.ts, 49, 5)) +>m2_i_private : m2_i_private, Symbol(m2_i_private, Decl(privacyClass.ts, 46, 5)) +>m2_i_public : m2_i_public, Symbol(m2_i_public, Decl(privacyClass.ts, 44, 11)) } export class m2_C12_public extends m2_c_private implements m2_i_private, m2_i_public { ->m2_C12_public : m2_C12_public ->m2_c_private : m2_c_private ->m2_i_private : m2_i_private ->m2_i_public : m2_i_public +>m2_C12_public : m2_C12_public, Symbol(m2_C12_public, Decl(privacyClass.ts, 82, 5)) +>m2_c_private : m2_c_private, Symbol(m2_c_private, Decl(privacyClass.ts, 54, 5)) +>m2_i_private : m2_i_private, Symbol(m2_i_private, Decl(privacyClass.ts, 46, 5)) +>m2_i_public : m2_i_public, Symbol(m2_i_public, Decl(privacyClass.ts, 44, 11)) } } export interface glo_i_public { ->glo_i_public : glo_i_public +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyClass.ts, 85, 1)) } interface glo_i_private { ->glo_i_private : glo_i_private +>glo_i_private : glo_i_private, Symbol(glo_i_private, Decl(privacyClass.ts, 88, 1)) } export class glo_c_public { ->glo_c_public : glo_c_public +>glo_c_public : glo_c_public, Symbol(glo_c_public, Decl(privacyClass.ts, 91, 1)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyClass.ts, 93, 27)) } } class glo_c_private { ->glo_c_private : glo_c_private +>glo_c_private : glo_c_private, Symbol(glo_c_private, Decl(privacyClass.ts, 96, 1)) } class glo_C1_private extends glo_c_public { ->glo_C1_private : glo_C1_private ->glo_c_public : glo_c_public +>glo_C1_private : glo_C1_private, Symbol(glo_C1_private, Decl(privacyClass.ts, 99, 1)) +>glo_c_public : glo_c_public, Symbol(glo_c_public, Decl(privacyClass.ts, 91, 1)) } class glo_C2_private extends glo_c_private { ->glo_C2_private : glo_C2_private ->glo_c_private : glo_c_private +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyClass.ts, 102, 1)) +>glo_c_private : glo_c_private, Symbol(glo_c_private, Decl(privacyClass.ts, 96, 1)) } export class glo_C3_public extends glo_c_public { ->glo_C3_public : glo_C3_public ->glo_c_public : glo_c_public +>glo_C3_public : glo_C3_public, Symbol(glo_C3_public, Decl(privacyClass.ts, 104, 1)) +>glo_c_public : glo_c_public, Symbol(glo_c_public, Decl(privacyClass.ts, 91, 1)) } export class glo_C4_public extends glo_c_private { ->glo_C4_public : glo_C4_public ->glo_c_private : glo_c_private +>glo_C4_public : glo_C4_public, Symbol(glo_C4_public, Decl(privacyClass.ts, 106, 1)) +>glo_c_private : glo_c_private, Symbol(glo_c_private, Decl(privacyClass.ts, 96, 1)) } class glo_C5_private implements glo_i_public { ->glo_C5_private : glo_C5_private ->glo_i_public : glo_i_public +>glo_C5_private : glo_C5_private, Symbol(glo_C5_private, Decl(privacyClass.ts, 108, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyClass.ts, 85, 1)) } class glo_C6_private implements glo_i_private { ->glo_C6_private : glo_C6_private ->glo_i_private : glo_i_private +>glo_C6_private : glo_C6_private, Symbol(glo_C6_private, Decl(privacyClass.ts, 111, 1)) +>glo_i_private : glo_i_private, Symbol(glo_i_private, Decl(privacyClass.ts, 88, 1)) } export class glo_C7_public implements glo_i_public { ->glo_C7_public : glo_C7_public ->glo_i_public : glo_i_public +>glo_C7_public : glo_C7_public, Symbol(glo_C7_public, Decl(privacyClass.ts, 113, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyClass.ts, 85, 1)) } export class glo_C8_public implements glo_i_private { ->glo_C8_public : glo_C8_public ->glo_i_private : glo_i_private +>glo_C8_public : glo_C8_public, Symbol(glo_C8_public, Decl(privacyClass.ts, 115, 1)) +>glo_i_private : glo_i_private, Symbol(glo_i_private, Decl(privacyClass.ts, 88, 1)) } class glo_C9_private extends glo_c_public implements glo_i_private, glo_i_public { ->glo_C9_private : glo_C9_private ->glo_c_public : glo_c_public ->glo_i_private : glo_i_private ->glo_i_public : glo_i_public +>glo_C9_private : glo_C9_private, Symbol(glo_C9_private, Decl(privacyClass.ts, 117, 1)) +>glo_c_public : glo_c_public, Symbol(glo_c_public, Decl(privacyClass.ts, 91, 1)) +>glo_i_private : glo_i_private, Symbol(glo_i_private, Decl(privacyClass.ts, 88, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyClass.ts, 85, 1)) } class glo_C10_private extends glo_c_private implements glo_i_private, glo_i_public { ->glo_C10_private : glo_C10_private ->glo_c_private : glo_c_private ->glo_i_private : glo_i_private ->glo_i_public : glo_i_public +>glo_C10_private : glo_C10_private, Symbol(glo_C10_private, Decl(privacyClass.ts, 120, 1)) +>glo_c_private : glo_c_private, Symbol(glo_c_private, Decl(privacyClass.ts, 96, 1)) +>glo_i_private : glo_i_private, Symbol(glo_i_private, Decl(privacyClass.ts, 88, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyClass.ts, 85, 1)) } export class glo_C11_public extends glo_c_public implements glo_i_private, glo_i_public { ->glo_C11_public : glo_C11_public ->glo_c_public : glo_c_public ->glo_i_private : glo_i_private ->glo_i_public : glo_i_public +>glo_C11_public : glo_C11_public, Symbol(glo_C11_public, Decl(privacyClass.ts, 122, 1)) +>glo_c_public : glo_c_public, Symbol(glo_c_public, Decl(privacyClass.ts, 91, 1)) +>glo_i_private : glo_i_private, Symbol(glo_i_private, Decl(privacyClass.ts, 88, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyClass.ts, 85, 1)) } export class glo_C12_public extends glo_c_private implements glo_i_private, glo_i_public { ->glo_C12_public : glo_C12_public ->glo_c_private : glo_c_private ->glo_i_private : glo_i_private ->glo_i_public : glo_i_public +>glo_C12_public : glo_C12_public, Symbol(glo_C12_public, Decl(privacyClass.ts, 124, 1)) +>glo_c_private : glo_c_private, Symbol(glo_c_private, Decl(privacyClass.ts, 96, 1)) +>glo_i_private : glo_i_private, Symbol(glo_i_private, Decl(privacyClass.ts, 88, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyClass.ts, 85, 1)) } diff --git a/tests/baselines/reference/privacyFunc.types b/tests/baselines/reference/privacyFunc.types index e43a5c0102a..45c2363d07a 100644 --- a/tests/baselines/reference/privacyFunc.types +++ b/tests/baselines/reference/privacyFunc.types @@ -1,460 +1,460 @@ === tests/cases/compiler/privacyFunc.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(privacyFunc.ts, 0, 0)) export class C1_public { ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyFunc.ts, 1, 28)) } } class C2_private { ->C2_private : C2_private +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } export class C3_public { ->C3_public : C3_public +>C3_public : C3_public, Symbol(C3_public, Decl(privacyFunc.ts, 7, 5)) constructor (m1_c3_c1: C1_public); ->m1_c3_c1 : C1_public ->C1_public : C1_public +>m1_c3_c1 : C1_public, Symbol(m1_c3_c1, Decl(privacyFunc.ts, 10, 21)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) constructor (m1_c3_c2: C2_private); //error ->m1_c3_c2 : C2_private ->C2_private : C2_private +>m1_c3_c2 : C2_private, Symbol(m1_c3_c2, Decl(privacyFunc.ts, 11, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) constructor (m1_c3_c1_2: any) { ->m1_c3_c1_2 : any +>m1_c3_c1_2 : any, Symbol(m1_c3_c1_2, Decl(privacyFunc.ts, 12, 21)) } private f1_private(m1_c3_f1_arg: C1_public) { ->f1_private : (m1_c3_f1_arg: C1_public) => void ->m1_c3_f1_arg : C1_public ->C1_public : C1_public +>f1_private : (m1_c3_f1_arg: C1_public) => void, Symbol(f1_private, Decl(privacyFunc.ts, 13, 9)) +>m1_c3_f1_arg : C1_public, Symbol(m1_c3_f1_arg, Decl(privacyFunc.ts, 15, 27)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } public f2_public(m1_c3_f2_arg: C1_public) { ->f2_public : (m1_c3_f2_arg: C1_public) => void ->m1_c3_f2_arg : C1_public ->C1_public : C1_public +>f2_public : (m1_c3_f2_arg: C1_public) => void, Symbol(f2_public, Decl(privacyFunc.ts, 16, 9)) +>m1_c3_f2_arg : C1_public, Symbol(m1_c3_f2_arg, Decl(privacyFunc.ts, 18, 25)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } private f3_private(m1_c3_f3_arg: C2_private) { ->f3_private : (m1_c3_f3_arg: C2_private) => void ->m1_c3_f3_arg : C2_private ->C2_private : C2_private +>f3_private : (m1_c3_f3_arg: C2_private) => void, Symbol(f3_private, Decl(privacyFunc.ts, 19, 9)) +>m1_c3_f3_arg : C2_private, Symbol(m1_c3_f3_arg, Decl(privacyFunc.ts, 21, 27)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } public f4_public(m1_c3_f4_arg: C2_private) { // error ->f4_public : (m1_c3_f4_arg: C2_private) => void ->m1_c3_f4_arg : C2_private ->C2_private : C2_private +>f4_public : (m1_c3_f4_arg: C2_private) => void, Symbol(f4_public, Decl(privacyFunc.ts, 22, 9)) +>m1_c3_f4_arg : C2_private, Symbol(m1_c3_f4_arg, Decl(privacyFunc.ts, 24, 25)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } private f5_private() { ->f5_private : () => C1_public +>f5_private : () => C1_public, Symbol(f5_private, Decl(privacyFunc.ts, 25, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } public f6_public() { ->f6_public : () => C1_public +>f6_public : () => C1_public, Symbol(f6_public, Decl(privacyFunc.ts, 29, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } private f7_private() { ->f7_private : () => C2_private +>f7_private : () => C2_private, Symbol(f7_private, Decl(privacyFunc.ts, 33, 9)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } public f8_public() { ->f8_public : () => C2_private +>f8_public : () => C2_private, Symbol(f8_public, Decl(privacyFunc.ts, 37, 9)) return new C2_private(); // error >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } private f9_private(): C1_public { ->f9_private : () => C1_public ->C1_public : C1_public +>f9_private : () => C1_public, Symbol(f9_private, Decl(privacyFunc.ts, 41, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } public f10_public(): C1_public { ->f10_public : () => C1_public ->C1_public : C1_public +>f10_public : () => C1_public, Symbol(f10_public, Decl(privacyFunc.ts, 45, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } private f11_private(): C2_private { ->f11_private : () => C2_private ->C2_private : C2_private +>f11_private : () => C2_private, Symbol(f11_private, Decl(privacyFunc.ts, 49, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } public f12_public(): C2_private { // error ->f12_public : () => C2_private ->C2_private : C2_private +>f12_public : () => C2_private, Symbol(f12_public, Decl(privacyFunc.ts, 53, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) return new C2_private(); //error >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } } class C4_private { ->C4_private : C4_private +>C4_private : C4_private, Symbol(C4_private, Decl(privacyFunc.ts, 58, 5)) constructor (m1_c4_c1: C1_public); ->m1_c4_c1 : C1_public ->C1_public : C1_public +>m1_c4_c1 : C1_public, Symbol(m1_c4_c1, Decl(privacyFunc.ts, 61, 21)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) constructor (m1_c4_c2: C2_private); ->m1_c4_c2 : C2_private ->C2_private : C2_private +>m1_c4_c2 : C2_private, Symbol(m1_c4_c2, Decl(privacyFunc.ts, 62, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) constructor (m1_c4_c1_2: any) { ->m1_c4_c1_2 : any +>m1_c4_c1_2 : any, Symbol(m1_c4_c1_2, Decl(privacyFunc.ts, 63, 21)) } private f1_private(m1_c4_f1_arg: C1_public) { ->f1_private : (m1_c4_f1_arg: C1_public) => void ->m1_c4_f1_arg : C1_public ->C1_public : C1_public +>f1_private : (m1_c4_f1_arg: C1_public) => void, Symbol(f1_private, Decl(privacyFunc.ts, 64, 9)) +>m1_c4_f1_arg : C1_public, Symbol(m1_c4_f1_arg, Decl(privacyFunc.ts, 65, 27)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } public f2_public(m1_c4_f2_arg: C1_public) { ->f2_public : (m1_c4_f2_arg: C1_public) => void ->m1_c4_f2_arg : C1_public ->C1_public : C1_public +>f2_public : (m1_c4_f2_arg: C1_public) => void, Symbol(f2_public, Decl(privacyFunc.ts, 66, 9)) +>m1_c4_f2_arg : C1_public, Symbol(m1_c4_f2_arg, Decl(privacyFunc.ts, 68, 25)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } private f3_private(m1_c4_f3_arg: C2_private) { ->f3_private : (m1_c4_f3_arg: C2_private) => void ->m1_c4_f3_arg : C2_private ->C2_private : C2_private +>f3_private : (m1_c4_f3_arg: C2_private) => void, Symbol(f3_private, Decl(privacyFunc.ts, 69, 9)) +>m1_c4_f3_arg : C2_private, Symbol(m1_c4_f3_arg, Decl(privacyFunc.ts, 71, 27)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } public f4_public(m1_c4_f4_arg: C2_private) { ->f4_public : (m1_c4_f4_arg: C2_private) => void ->m1_c4_f4_arg : C2_private ->C2_private : C2_private +>f4_public : (m1_c4_f4_arg: C2_private) => void, Symbol(f4_public, Decl(privacyFunc.ts, 72, 9)) +>m1_c4_f4_arg : C2_private, Symbol(m1_c4_f4_arg, Decl(privacyFunc.ts, 74, 25)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } private f5_private() { ->f5_private : () => C1_public +>f5_private : () => C1_public, Symbol(f5_private, Decl(privacyFunc.ts, 75, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } public f6_public() { ->f6_public : () => C1_public +>f6_public : () => C1_public, Symbol(f6_public, Decl(privacyFunc.ts, 80, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } private f7_private() { ->f7_private : () => C2_private +>f7_private : () => C2_private, Symbol(f7_private, Decl(privacyFunc.ts, 84, 9)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } public f8_public() { ->f8_public : () => C2_private +>f8_public : () => C2_private, Symbol(f8_public, Decl(privacyFunc.ts, 88, 9)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } private f9_private(): C1_public { ->f9_private : () => C1_public ->C1_public : C1_public +>f9_private : () => C1_public, Symbol(f9_private, Decl(privacyFunc.ts, 92, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } public f10_public(): C1_public { ->f10_public : () => C1_public ->C1_public : C1_public +>f10_public : () => C1_public, Symbol(f10_public, Decl(privacyFunc.ts, 97, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } private f11_private(): C2_private { ->f11_private : () => C2_private ->C2_private : C2_private +>f11_private : () => C2_private, Symbol(f11_private, Decl(privacyFunc.ts, 101, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } public f12_public(): C2_private { ->f12_public : () => C2_private ->C2_private : C2_private +>f12_public : () => C2_private, Symbol(f12_public, Decl(privacyFunc.ts, 105, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } } export class C5_public { ->C5_public : C5_public +>C5_public : C5_public, Symbol(C5_public, Decl(privacyFunc.ts, 110, 5)) constructor (m1_c5_c: C1_public) { ->m1_c5_c : C1_public ->C1_public : C1_public +>m1_c5_c : C1_public, Symbol(m1_c5_c, Decl(privacyFunc.ts, 113, 21)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } } class C6_private { ->C6_private : C6_private +>C6_private : C6_private, Symbol(C6_private, Decl(privacyFunc.ts, 115, 5)) constructor (m1_c6_c: C1_public) { ->m1_c6_c : C1_public ->C1_public : C1_public +>m1_c6_c : C1_public, Symbol(m1_c6_c, Decl(privacyFunc.ts, 118, 21)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } } export class C7_public { ->C7_public : C7_public +>C7_public : C7_public, Symbol(C7_public, Decl(privacyFunc.ts, 120, 5)) constructor (m1_c7_c: C2_private) { // error ->m1_c7_c : C2_private ->C2_private : C2_private +>m1_c7_c : C2_private, Symbol(m1_c7_c, Decl(privacyFunc.ts, 122, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } } class C8_private { ->C8_private : C8_private +>C8_private : C8_private, Symbol(C8_private, Decl(privacyFunc.ts, 124, 5)) constructor (m1_c8_c: C2_private) { ->m1_c8_c : C2_private ->C2_private : C2_private +>m1_c8_c : C2_private, Symbol(m1_c8_c, Decl(privacyFunc.ts, 127, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } } function f1_public(m1_f1_arg: C1_public) { ->f1_public : (m1_f1_arg: C1_public) => void ->m1_f1_arg : C1_public ->C1_public : C1_public +>f1_public : (m1_f1_arg: C1_public) => void, Symbol(f1_public, Decl(privacyFunc.ts, 129, 5)) +>m1_f1_arg : C1_public, Symbol(m1_f1_arg, Decl(privacyFunc.ts, 131, 23)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } export function f2_public(m1_f2_arg: C1_public) { ->f2_public : (m1_f2_arg: C1_public) => void ->m1_f2_arg : C1_public ->C1_public : C1_public +>f2_public : (m1_f2_arg: C1_public) => void, Symbol(f2_public, Decl(privacyFunc.ts, 132, 5)) +>m1_f2_arg : C1_public, Symbol(m1_f2_arg, Decl(privacyFunc.ts, 134, 30)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } function f3_public(m1_f3_arg: C2_private) { ->f3_public : (m1_f3_arg: C2_private) => void ->m1_f3_arg : C2_private ->C2_private : C2_private +>f3_public : (m1_f3_arg: C2_private) => void, Symbol(f3_public, Decl(privacyFunc.ts, 135, 5)) +>m1_f3_arg : C2_private, Symbol(m1_f3_arg, Decl(privacyFunc.ts, 137, 23)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } export function f4_public(m1_f4_arg: C2_private) { // error ->f4_public : (m1_f4_arg: C2_private) => void ->m1_f4_arg : C2_private ->C2_private : C2_private +>f4_public : (m1_f4_arg: C2_private) => void, Symbol(f4_public, Decl(privacyFunc.ts, 138, 5)) +>m1_f4_arg : C2_private, Symbol(m1_f4_arg, Decl(privacyFunc.ts, 140, 30)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } function f5_public() { ->f5_public : () => C1_public +>f5_public : () => C1_public, Symbol(f5_public, Decl(privacyFunc.ts, 141, 5)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } export function f6_public() { ->f6_public : () => C1_public +>f6_public : () => C1_public, Symbol(f6_public, Decl(privacyFunc.ts, 146, 5)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } function f7_public() { ->f7_public : () => C2_private +>f7_public : () => C2_private, Symbol(f7_public, Decl(privacyFunc.ts, 150, 5)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } export function f8_public() { ->f8_public : () => C2_private +>f8_public : () => C2_private, Symbol(f8_public, Decl(privacyFunc.ts, 154, 5)) return new C2_private(); // error >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } function f9_private(): C1_public { ->f9_private : () => C1_public ->C1_public : C1_public +>f9_private : () => C1_public, Symbol(f9_private, Decl(privacyFunc.ts, 158, 5)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } export function f10_public(): C1_public { ->f10_public : () => C1_public ->C1_public : C1_public +>f10_public : () => C1_public, Symbol(f10_public, Decl(privacyFunc.ts, 163, 5)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyFunc.ts, 0, 11)) } function f11_private(): C2_private { ->f11_private : () => C2_private ->C2_private : C2_private +>f11_private : () => C2_private, Symbol(f11_private, Decl(privacyFunc.ts, 167, 5)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } export function f12_public(): C2_private { // error ->f12_public : () => C2_private ->C2_private : C2_private +>f12_public : () => C2_private, Symbol(f12_public, Decl(privacyFunc.ts, 171, 5)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) return new C2_private(); //error >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyFunc.ts, 4, 5)) } } class C6_public { ->C6_public : C6_public +>C6_public : C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) } class C7_public { ->C7_public : C7_public +>C7_public : C7_public, Symbol(C7_public, Decl(privacyFunc.ts, 179, 1)) constructor (c7_c2: C6_public); ->c7_c2 : C6_public ->C6_public : C6_public +>c7_c2 : C6_public, Symbol(c7_c2, Decl(privacyFunc.ts, 182, 17)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) constructor (c7_c1_2: any) { ->c7_c1_2 : any +>c7_c1_2 : any, Symbol(c7_c1_2, Decl(privacyFunc.ts, 183, 17)) } private f1_private(c7_f1_arg: C6_public) { ->f1_private : (c7_f1_arg: C6_public) => void ->c7_f1_arg : C6_public ->C6_public : C6_public +>f1_private : (c7_f1_arg: C6_public) => void, Symbol(f1_private, Decl(privacyFunc.ts, 184, 5)) +>c7_f1_arg : C6_public, Symbol(c7_f1_arg, Decl(privacyFunc.ts, 185, 23)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) } public f2_public(c7_f2_arg: C6_public) { ->f2_public : (c7_f2_arg: C6_public) => void ->c7_f2_arg : C6_public ->C6_public : C6_public +>f2_public : (c7_f2_arg: C6_public) => void, Symbol(f2_public, Decl(privacyFunc.ts, 186, 5)) +>c7_f2_arg : C6_public, Symbol(c7_f2_arg, Decl(privacyFunc.ts, 188, 21)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) } private f5_private() { ->f5_private : () => C6_public +>f5_private : () => C6_public, Symbol(f5_private, Decl(privacyFunc.ts, 189, 5)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) } public f6_public() { ->f6_public : () => C6_public +>f6_public : () => C6_public, Symbol(f6_public, Decl(privacyFunc.ts, 193, 5)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) } private f9_private(): C6_public { ->f9_private : () => C6_public ->C6_public : C6_public +>f9_private : () => C6_public, Symbol(f9_private, Decl(privacyFunc.ts, 197, 5)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) } public f10_public(): C6_public { ->f10_public : () => C6_public ->C6_public : C6_public +>f10_public : () => C6_public, Symbol(f10_public, Decl(privacyFunc.ts, 201, 5)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) } } class C9_public { ->C9_public : C9_public +>C9_public : C9_public, Symbol(C9_public, Decl(privacyFunc.ts, 206, 1)) constructor (c9_c: C6_public) { ->c9_c : C6_public ->C6_public : C6_public +>c9_c : C6_public, Symbol(c9_c, Decl(privacyFunc.ts, 209, 17)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) } } function f4_public(f4_arg: C6_public) { ->f4_public : (f4_arg: C6_public) => void ->f4_arg : C6_public ->C6_public : C6_public +>f4_public : (f4_arg: C6_public) => void, Symbol(f4_public, Decl(privacyFunc.ts, 211, 1)) +>f4_arg : C6_public, Symbol(f4_arg, Decl(privacyFunc.ts, 214, 19)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) } function f6_public() { ->f6_public : () => C6_public +>f6_public : () => C6_public, Symbol(f6_public, Decl(privacyFunc.ts, 215, 1)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) } function f10_public(): C6_public { ->f10_public : () => C6_public ->C6_public : C6_public +>f10_public : () => C6_public, Symbol(f10_public, Decl(privacyFunc.ts, 221, 1)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyFunc.ts, 176, 1)) } diff --git a/tests/baselines/reference/privacyGetter.types b/tests/baselines/reference/privacyGetter.types index 160d72a0279..b4381929082 100644 --- a/tests/baselines/reference/privacyGetter.types +++ b/tests/baselines/reference/privacyGetter.types @@ -1,410 +1,410 @@ === tests/cases/compiler/privacyGetter.ts === export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(privacyGetter.ts, 0, 0)) export class C1_public { ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGetter.ts, 0, 18)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyGetter.ts, 1, 28)) } } class C2_private { ->C2_private : C2_private +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) } export class C3_public { ->C3_public : C3_public +>C3_public : C3_public, Symbol(C3_public, Decl(privacyGetter.ts, 7, 5)) private get p1_private() { ->p1_private : C1_public +>p1_private : C1_public, Symbol(p1_private, Decl(privacyGetter.ts, 9, 28), Decl(privacyGetter.ts, 12, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGetter.ts, 0, 18)) } private set p1_private(m1_c3_p1_arg: C1_public) { ->p1_private : C1_public ->m1_c3_p1_arg : C1_public ->C1_public : C1_public +>p1_private : C1_public, Symbol(p1_private, Decl(privacyGetter.ts, 9, 28), Decl(privacyGetter.ts, 12, 9)) +>m1_c3_p1_arg : C1_public, Symbol(m1_c3_p1_arg, Decl(privacyGetter.ts, 14, 31)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGetter.ts, 0, 18)) } private get p2_private() { ->p2_private : C1_public +>p2_private : C1_public, Symbol(p2_private, Decl(privacyGetter.ts, 15, 9), Decl(privacyGetter.ts, 19, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGetter.ts, 0, 18)) } private set p2_private(m1_c3_p2_arg: C1_public) { ->p2_private : C1_public ->m1_c3_p2_arg : C1_public ->C1_public : C1_public +>p2_private : C1_public, Symbol(p2_private, Decl(privacyGetter.ts, 15, 9), Decl(privacyGetter.ts, 19, 9)) +>m1_c3_p2_arg : C1_public, Symbol(m1_c3_p2_arg, Decl(privacyGetter.ts, 21, 31)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGetter.ts, 0, 18)) } private get p3_private() { ->p3_private : C2_private +>p3_private : C2_private, Symbol(p3_private, Decl(privacyGetter.ts, 22, 9), Decl(privacyGetter.ts, 26, 9)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) } private set p3_private(m1_c3_p3_arg: C2_private) { ->p3_private : C2_private ->m1_c3_p3_arg : C2_private ->C2_private : C2_private +>p3_private : C2_private, Symbol(p3_private, Decl(privacyGetter.ts, 22, 9), Decl(privacyGetter.ts, 26, 9)) +>m1_c3_p3_arg : C2_private, Symbol(m1_c3_p3_arg, Decl(privacyGetter.ts, 28, 31)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) } public get p4_public(): C2_private { // error ->p4_public : C2_private ->C2_private : C2_private +>p4_public : C2_private, Symbol(p4_public, Decl(privacyGetter.ts, 29, 9), Decl(privacyGetter.ts, 33, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) return new C2_private(); //error >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) } public set p4_public(m1_c3_p4_arg: C2_private) { // error ->p4_public : C2_private ->m1_c3_p4_arg : C2_private ->C2_private : C2_private +>p4_public : C2_private, Symbol(p4_public, Decl(privacyGetter.ts, 29, 9), Decl(privacyGetter.ts, 33, 9)) +>m1_c3_p4_arg : C2_private, Symbol(m1_c3_p4_arg, Decl(privacyGetter.ts, 35, 29)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) } } class C4_private { ->C4_private : C4_private +>C4_private : C4_private, Symbol(C4_private, Decl(privacyGetter.ts, 37, 5)) private get p1_private() { ->p1_private : C1_public +>p1_private : C1_public, Symbol(p1_private, Decl(privacyGetter.ts, 39, 22), Decl(privacyGetter.ts, 42, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGetter.ts, 0, 18)) } private set p1_private(m1_c3_p1_arg: C1_public) { ->p1_private : C1_public ->m1_c3_p1_arg : C1_public ->C1_public : C1_public +>p1_private : C1_public, Symbol(p1_private, Decl(privacyGetter.ts, 39, 22), Decl(privacyGetter.ts, 42, 9)) +>m1_c3_p1_arg : C1_public, Symbol(m1_c3_p1_arg, Decl(privacyGetter.ts, 44, 31)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGetter.ts, 0, 18)) } private get p2_private() { ->p2_private : C1_public +>p2_private : C1_public, Symbol(p2_private, Decl(privacyGetter.ts, 45, 9), Decl(privacyGetter.ts, 49, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGetter.ts, 0, 18)) } private set p2_private(m1_c3_p2_arg: C1_public) { ->p2_private : C1_public ->m1_c3_p2_arg : C1_public ->C1_public : C1_public +>p2_private : C1_public, Symbol(p2_private, Decl(privacyGetter.ts, 45, 9), Decl(privacyGetter.ts, 49, 9)) +>m1_c3_p2_arg : C1_public, Symbol(m1_c3_p2_arg, Decl(privacyGetter.ts, 51, 31)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGetter.ts, 0, 18)) } private get p3_private() { ->p3_private : C2_private +>p3_private : C2_private, Symbol(p3_private, Decl(privacyGetter.ts, 52, 9), Decl(privacyGetter.ts, 56, 9)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) } private set p3_private(m1_c3_p3_arg: C2_private) { ->p3_private : C2_private ->m1_c3_p3_arg : C2_private ->C2_private : C2_private +>p3_private : C2_private, Symbol(p3_private, Decl(privacyGetter.ts, 52, 9), Decl(privacyGetter.ts, 56, 9)) +>m1_c3_p3_arg : C2_private, Symbol(m1_c3_p3_arg, Decl(privacyGetter.ts, 58, 31)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) } public get p4_public(): C2_private { ->p4_public : C2_private ->C2_private : C2_private +>p4_public : C2_private, Symbol(p4_public, Decl(privacyGetter.ts, 59, 9), Decl(privacyGetter.ts, 63, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) } public set p4_public(m1_c3_p4_arg: C2_private) { ->p4_public : C2_private ->m1_c3_p4_arg : C2_private ->C2_private : C2_private +>p4_public : C2_private, Symbol(p4_public, Decl(privacyGetter.ts, 59, 9), Decl(privacyGetter.ts, 63, 9)) +>m1_c3_p4_arg : C2_private, Symbol(m1_c3_p4_arg, Decl(privacyGetter.ts, 65, 29)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGetter.ts, 4, 5)) } } } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(privacyGetter.ts, 68, 1)) export class m2_C1_public { ->m2_C1_public : m2_C1_public +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 11)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyGetter.ts, 71, 31)) } } class m2_C2_private { ->m2_C2_private : m2_C2_private +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) } export class m2_C3_public { ->m2_C3_public : m2_C3_public +>m2_C3_public : m2_C3_public, Symbol(m2_C3_public, Decl(privacyGetter.ts, 77, 5)) private get p1_private() { ->p1_private : m2_C1_public +>p1_private : m2_C1_public, Symbol(p1_private, Decl(privacyGetter.ts, 79, 31), Decl(privacyGetter.ts, 82, 9)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 11)) } private set p1_private(m2_c3_p1_arg: m2_C1_public) { ->p1_private : m2_C1_public ->m2_c3_p1_arg : m2_C1_public ->m2_C1_public : m2_C1_public +>p1_private : m2_C1_public, Symbol(p1_private, Decl(privacyGetter.ts, 79, 31), Decl(privacyGetter.ts, 82, 9)) +>m2_c3_p1_arg : m2_C1_public, Symbol(m2_c3_p1_arg, Decl(privacyGetter.ts, 84, 31)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 11)) } private get p2_private() { ->p2_private : m2_C1_public +>p2_private : m2_C1_public, Symbol(p2_private, Decl(privacyGetter.ts, 85, 9), Decl(privacyGetter.ts, 89, 9)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 11)) } private set p2_private(m2_c3_p2_arg: m2_C1_public) { ->p2_private : m2_C1_public ->m2_c3_p2_arg : m2_C1_public ->m2_C1_public : m2_C1_public +>p2_private : m2_C1_public, Symbol(p2_private, Decl(privacyGetter.ts, 85, 9), Decl(privacyGetter.ts, 89, 9)) +>m2_c3_p2_arg : m2_C1_public, Symbol(m2_c3_p2_arg, Decl(privacyGetter.ts, 91, 31)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 11)) } private get p3_private() { ->p3_private : m2_C2_private +>p3_private : m2_C2_private, Symbol(p3_private, Decl(privacyGetter.ts, 92, 9), Decl(privacyGetter.ts, 96, 9)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) } private set p3_private(m2_c3_p3_arg: m2_C2_private) { ->p3_private : m2_C2_private ->m2_c3_p3_arg : m2_C2_private ->m2_C2_private : m2_C2_private +>p3_private : m2_C2_private, Symbol(p3_private, Decl(privacyGetter.ts, 92, 9), Decl(privacyGetter.ts, 96, 9)) +>m2_c3_p3_arg : m2_C2_private, Symbol(m2_c3_p3_arg, Decl(privacyGetter.ts, 98, 31)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) } public get p4_public(): m2_C2_private { ->p4_public : m2_C2_private ->m2_C2_private : m2_C2_private +>p4_public : m2_C2_private, Symbol(p4_public, Decl(privacyGetter.ts, 99, 9), Decl(privacyGetter.ts, 103, 9)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) } public set p4_public(m2_c3_p4_arg: m2_C2_private) { ->p4_public : m2_C2_private ->m2_c3_p4_arg : m2_C2_private ->m2_C2_private : m2_C2_private +>p4_public : m2_C2_private, Symbol(p4_public, Decl(privacyGetter.ts, 99, 9), Decl(privacyGetter.ts, 103, 9)) +>m2_c3_p4_arg : m2_C2_private, Symbol(m2_c3_p4_arg, Decl(privacyGetter.ts, 105, 29)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) } } class m2_C4_private { ->m2_C4_private : m2_C4_private +>m2_C4_private : m2_C4_private, Symbol(m2_C4_private, Decl(privacyGetter.ts, 107, 5)) private get p1_private() { ->p1_private : m2_C1_public +>p1_private : m2_C1_public, Symbol(p1_private, Decl(privacyGetter.ts, 109, 25), Decl(privacyGetter.ts, 112, 9)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 11)) } private set p1_private(m2_c3_p1_arg: m2_C1_public) { ->p1_private : m2_C1_public ->m2_c3_p1_arg : m2_C1_public ->m2_C1_public : m2_C1_public +>p1_private : m2_C1_public, Symbol(p1_private, Decl(privacyGetter.ts, 109, 25), Decl(privacyGetter.ts, 112, 9)) +>m2_c3_p1_arg : m2_C1_public, Symbol(m2_c3_p1_arg, Decl(privacyGetter.ts, 114, 31)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 11)) } private get p2_private() { ->p2_private : m2_C1_public +>p2_private : m2_C1_public, Symbol(p2_private, Decl(privacyGetter.ts, 115, 9), Decl(privacyGetter.ts, 119, 9)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 11)) } private set p2_private(m2_c3_p2_arg: m2_C1_public) { ->p2_private : m2_C1_public ->m2_c3_p2_arg : m2_C1_public ->m2_C1_public : m2_C1_public +>p2_private : m2_C1_public, Symbol(p2_private, Decl(privacyGetter.ts, 115, 9), Decl(privacyGetter.ts, 119, 9)) +>m2_c3_p2_arg : m2_C1_public, Symbol(m2_c3_p2_arg, Decl(privacyGetter.ts, 121, 31)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGetter.ts, 70, 11)) } private get p3_private() { ->p3_private : m2_C2_private +>p3_private : m2_C2_private, Symbol(p3_private, Decl(privacyGetter.ts, 122, 9), Decl(privacyGetter.ts, 126, 9)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) } private set p3_private(m2_c3_p3_arg: m2_C2_private) { ->p3_private : m2_C2_private ->m2_c3_p3_arg : m2_C2_private ->m2_C2_private : m2_C2_private +>p3_private : m2_C2_private, Symbol(p3_private, Decl(privacyGetter.ts, 122, 9), Decl(privacyGetter.ts, 126, 9)) +>m2_c3_p3_arg : m2_C2_private, Symbol(m2_c3_p3_arg, Decl(privacyGetter.ts, 128, 31)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) } public get p4_public(): m2_C2_private { ->p4_public : m2_C2_private ->m2_C2_private : m2_C2_private +>p4_public : m2_C2_private, Symbol(p4_public, Decl(privacyGetter.ts, 129, 9), Decl(privacyGetter.ts, 133, 9)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) } public set p4_public(m2_c3_p4_arg: m2_C2_private) { ->p4_public : m2_C2_private ->m2_c3_p4_arg : m2_C2_private ->m2_C2_private : m2_C2_private +>p4_public : m2_C2_private, Symbol(p4_public, Decl(privacyGetter.ts, 129, 9), Decl(privacyGetter.ts, 133, 9)) +>m2_c3_p4_arg : m2_C2_private, Symbol(m2_c3_p4_arg, Decl(privacyGetter.ts, 135, 29)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGetter.ts, 74, 5)) } } } class C5_private { ->C5_private : C5_private +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) private f() { ->f : () => void +>f : () => void, Symbol(f, Decl(privacyGetter.ts, 140, 18)) } } export class C6_public { ->C6_public : C6_public +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) } export class C7_public { ->C7_public : C7_public +>C7_public : C7_public, Symbol(C7_public, Decl(privacyGetter.ts, 146, 1)) private get p1_private() { ->p1_private : C6_public +>p1_private : C6_public, Symbol(p1_private, Decl(privacyGetter.ts, 148, 24), Decl(privacyGetter.ts, 151, 5)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) } private set p1_private(m1_c3_p1_arg: C6_public) { ->p1_private : C6_public ->m1_c3_p1_arg : C6_public ->C6_public : C6_public +>p1_private : C6_public, Symbol(p1_private, Decl(privacyGetter.ts, 148, 24), Decl(privacyGetter.ts, 151, 5)) +>m1_c3_p1_arg : C6_public, Symbol(m1_c3_p1_arg, Decl(privacyGetter.ts, 153, 27)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) } private get p2_private() { ->p2_private : C6_public +>p2_private : C6_public, Symbol(p2_private, Decl(privacyGetter.ts, 154, 5), Decl(privacyGetter.ts, 158, 5)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) } private set p2_private(m1_c3_p2_arg: C6_public) { ->p2_private : C6_public ->m1_c3_p2_arg : C6_public ->C6_public : C6_public +>p2_private : C6_public, Symbol(p2_private, Decl(privacyGetter.ts, 154, 5), Decl(privacyGetter.ts, 158, 5)) +>m1_c3_p2_arg : C6_public, Symbol(m1_c3_p2_arg, Decl(privacyGetter.ts, 160, 27)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) } private get p3_private() { ->p3_private : C5_private +>p3_private : C5_private, Symbol(p3_private, Decl(privacyGetter.ts, 161, 5), Decl(privacyGetter.ts, 165, 5)) return new C5_private(); >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) } private set p3_private(m1_c3_p3_arg: C5_private) { ->p3_private : C5_private ->m1_c3_p3_arg : C5_private ->C5_private : C5_private +>p3_private : C5_private, Symbol(p3_private, Decl(privacyGetter.ts, 161, 5), Decl(privacyGetter.ts, 165, 5)) +>m1_c3_p3_arg : C5_private, Symbol(m1_c3_p3_arg, Decl(privacyGetter.ts, 167, 27)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) } public get p4_public(): C5_private { // error ->p4_public : C5_private ->C5_private : C5_private +>p4_public : C5_private, Symbol(p4_public, Decl(privacyGetter.ts, 168, 5), Decl(privacyGetter.ts, 172, 5)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) return new C5_private(); //error >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) } public set p4_public(m1_c3_p4_arg: C5_private) { // error ->p4_public : C5_private ->m1_c3_p4_arg : C5_private ->C5_private : C5_private +>p4_public : C5_private, Symbol(p4_public, Decl(privacyGetter.ts, 168, 5), Decl(privacyGetter.ts, 172, 5)) +>m1_c3_p4_arg : C5_private, Symbol(m1_c3_p4_arg, Decl(privacyGetter.ts, 174, 25)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) } } class C8_private { ->C8_private : C8_private +>C8_private : C8_private, Symbol(C8_private, Decl(privacyGetter.ts, 176, 1)) private get p1_private() { ->p1_private : C6_public +>p1_private : C6_public, Symbol(p1_private, Decl(privacyGetter.ts, 178, 18), Decl(privacyGetter.ts, 181, 5)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) } private set p1_private(m1_c3_p1_arg: C6_public) { ->p1_private : C6_public ->m1_c3_p1_arg : C6_public ->C6_public : C6_public +>p1_private : C6_public, Symbol(p1_private, Decl(privacyGetter.ts, 178, 18), Decl(privacyGetter.ts, 181, 5)) +>m1_c3_p1_arg : C6_public, Symbol(m1_c3_p1_arg, Decl(privacyGetter.ts, 183, 27)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) } private get p2_private() { ->p2_private : C6_public +>p2_private : C6_public, Symbol(p2_private, Decl(privacyGetter.ts, 184, 5), Decl(privacyGetter.ts, 188, 5)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) } private set p2_private(m1_c3_p2_arg: C6_public) { ->p2_private : C6_public ->m1_c3_p2_arg : C6_public ->C6_public : C6_public +>p2_private : C6_public, Symbol(p2_private, Decl(privacyGetter.ts, 184, 5), Decl(privacyGetter.ts, 188, 5)) +>m1_c3_p2_arg : C6_public, Symbol(m1_c3_p2_arg, Decl(privacyGetter.ts, 190, 27)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGetter.ts, 143, 1)) } private get p3_private() { ->p3_private : C5_private +>p3_private : C5_private, Symbol(p3_private, Decl(privacyGetter.ts, 191, 5), Decl(privacyGetter.ts, 195, 5)) return new C5_private(); >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) } private set p3_private(m1_c3_p3_arg: C5_private) { ->p3_private : C5_private ->m1_c3_p3_arg : C5_private ->C5_private : C5_private +>p3_private : C5_private, Symbol(p3_private, Decl(privacyGetter.ts, 191, 5), Decl(privacyGetter.ts, 195, 5)) +>m1_c3_p3_arg : C5_private, Symbol(m1_c3_p3_arg, Decl(privacyGetter.ts, 197, 27)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) } public get p4_public(): C5_private { ->p4_public : C5_private ->C5_private : C5_private +>p4_public : C5_private, Symbol(p4_public, Decl(privacyGetter.ts, 198, 5), Decl(privacyGetter.ts, 202, 5)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) return new C5_private(); >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) } public set p4_public(m1_c3_p4_arg: C5_private) { ->p4_public : C5_private ->m1_c3_p4_arg : C5_private ->C5_private : C5_private +>p4_public : C5_private, Symbol(p4_public, Decl(privacyGetter.ts, 198, 5), Decl(privacyGetter.ts, 202, 5)) +>m1_c3_p4_arg : C5_private, Symbol(m1_c3_p4_arg, Decl(privacyGetter.ts, 204, 25)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGetter.ts, 138, 1)) } } diff --git a/tests/baselines/reference/privacyGloClass.types b/tests/baselines/reference/privacyGloClass.types index be0c8a74dcc..7de3213d0a5 100644 --- a/tests/baselines/reference/privacyGloClass.types +++ b/tests/baselines/reference/privacyGloClass.types @@ -1,112 +1,112 @@ === tests/cases/compiler/privacyGloClass.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(privacyGloClass.ts, 0, 0)) export interface m1_i_public { ->m1_i_public : m1_i_public +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyGloClass.ts, 0, 11)) } interface m1_i_private { ->m1_i_private : m1_i_private +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyGloClass.ts, 2, 5)) } export class m1_c_public { ->m1_c_public : m1_c_public +>m1_c_public : m1_c_public, Symbol(m1_c_public, Decl(privacyGloClass.ts, 5, 5)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyGloClass.ts, 7, 30)) } } class m1_c_private { ->m1_c_private : m1_c_private +>m1_c_private : m1_c_private, Symbol(m1_c_private, Decl(privacyGloClass.ts, 10, 5)) } class m1_C1_private extends m1_c_public { ->m1_C1_private : m1_C1_private ->m1_c_public : m1_c_public +>m1_C1_private : m1_C1_private, Symbol(m1_C1_private, Decl(privacyGloClass.ts, 13, 5)) +>m1_c_public : m1_c_public, Symbol(m1_c_public, Decl(privacyGloClass.ts, 5, 5)) } class m1_C2_private extends m1_c_private { ->m1_C2_private : m1_C2_private ->m1_c_private : m1_c_private +>m1_C2_private : m1_C2_private, Symbol(m1_C2_private, Decl(privacyGloClass.ts, 16, 5)) +>m1_c_private : m1_c_private, Symbol(m1_c_private, Decl(privacyGloClass.ts, 10, 5)) } export class m1_C3_public extends m1_c_public { ->m1_C3_public : m1_C3_public ->m1_c_public : m1_c_public +>m1_C3_public : m1_C3_public, Symbol(m1_C3_public, Decl(privacyGloClass.ts, 18, 5)) +>m1_c_public : m1_c_public, Symbol(m1_c_public, Decl(privacyGloClass.ts, 5, 5)) } export class m1_C4_public extends m1_c_private { ->m1_C4_public : m1_C4_public ->m1_c_private : m1_c_private +>m1_C4_public : m1_C4_public, Symbol(m1_C4_public, Decl(privacyGloClass.ts, 20, 5)) +>m1_c_private : m1_c_private, Symbol(m1_c_private, Decl(privacyGloClass.ts, 10, 5)) } class m1_C5_private implements m1_i_public { ->m1_C5_private : m1_C5_private ->m1_i_public : m1_i_public +>m1_C5_private : m1_C5_private, Symbol(m1_C5_private, Decl(privacyGloClass.ts, 22, 5)) +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyGloClass.ts, 0, 11)) } class m1_C6_private implements m1_i_private { ->m1_C6_private : m1_C6_private ->m1_i_private : m1_i_private +>m1_C6_private : m1_C6_private, Symbol(m1_C6_private, Decl(privacyGloClass.ts, 25, 5)) +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyGloClass.ts, 2, 5)) } export class m1_C7_public implements m1_i_public { ->m1_C7_public : m1_C7_public ->m1_i_public : m1_i_public +>m1_C7_public : m1_C7_public, Symbol(m1_C7_public, Decl(privacyGloClass.ts, 27, 5)) +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyGloClass.ts, 0, 11)) } export class m1_C8_public implements m1_i_private { ->m1_C8_public : m1_C8_public ->m1_i_private : m1_i_private +>m1_C8_public : m1_C8_public, Symbol(m1_C8_public, Decl(privacyGloClass.ts, 29, 5)) +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyGloClass.ts, 2, 5)) } class m1_C9_private extends m1_c_public implements m1_i_private, m1_i_public { ->m1_C9_private : m1_C9_private ->m1_c_public : m1_c_public ->m1_i_private : m1_i_private ->m1_i_public : m1_i_public +>m1_C9_private : m1_C9_private, Symbol(m1_C9_private, Decl(privacyGloClass.ts, 31, 5)) +>m1_c_public : m1_c_public, Symbol(m1_c_public, Decl(privacyGloClass.ts, 5, 5)) +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyGloClass.ts, 2, 5)) +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyGloClass.ts, 0, 11)) } class m1_C10_private extends m1_c_private implements m1_i_private, m1_i_public { ->m1_C10_private : m1_C10_private ->m1_c_private : m1_c_private ->m1_i_private : m1_i_private ->m1_i_public : m1_i_public +>m1_C10_private : m1_C10_private, Symbol(m1_C10_private, Decl(privacyGloClass.ts, 34, 5)) +>m1_c_private : m1_c_private, Symbol(m1_c_private, Decl(privacyGloClass.ts, 10, 5)) +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyGloClass.ts, 2, 5)) +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyGloClass.ts, 0, 11)) } export class m1_C11_public extends m1_c_public implements m1_i_private, m1_i_public { ->m1_C11_public : m1_C11_public ->m1_c_public : m1_c_public ->m1_i_private : m1_i_private ->m1_i_public : m1_i_public +>m1_C11_public : m1_C11_public, Symbol(m1_C11_public, Decl(privacyGloClass.ts, 36, 5)) +>m1_c_public : m1_c_public, Symbol(m1_c_public, Decl(privacyGloClass.ts, 5, 5)) +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyGloClass.ts, 2, 5)) +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyGloClass.ts, 0, 11)) } export class m1_C12_public extends m1_c_private implements m1_i_private, m1_i_public { ->m1_C12_public : m1_C12_public ->m1_c_private : m1_c_private ->m1_i_private : m1_i_private ->m1_i_public : m1_i_public +>m1_C12_public : m1_C12_public, Symbol(m1_C12_public, Decl(privacyGloClass.ts, 38, 5)) +>m1_c_private : m1_c_private, Symbol(m1_c_private, Decl(privacyGloClass.ts, 10, 5)) +>m1_i_private : m1_i_private, Symbol(m1_i_private, Decl(privacyGloClass.ts, 2, 5)) +>m1_i_public : m1_i_public, Symbol(m1_i_public, Decl(privacyGloClass.ts, 0, 11)) } } interface glo_i_public { ->glo_i_public : glo_i_public +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyGloClass.ts, 41, 1)) } class glo_c_public { ->glo_c_public : glo_c_public +>glo_c_public : glo_c_public, Symbol(glo_c_public, Decl(privacyGloClass.ts, 44, 1)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyGloClass.ts, 46, 20)) } } class glo_C3_public extends glo_c_public { ->glo_C3_public : glo_C3_public ->glo_c_public : glo_c_public +>glo_C3_public : glo_C3_public, Symbol(glo_C3_public, Decl(privacyGloClass.ts, 49, 1)) +>glo_c_public : glo_c_public, Symbol(glo_c_public, Decl(privacyGloClass.ts, 44, 1)) } class glo_C7_public implements glo_i_public { ->glo_C7_public : glo_C7_public ->glo_i_public : glo_i_public +>glo_C7_public : glo_C7_public, Symbol(glo_C7_public, Decl(privacyGloClass.ts, 52, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyGloClass.ts, 41, 1)) } class glo_C11_public extends glo_c_public implements glo_i_public { ->glo_C11_public : glo_C11_public ->glo_c_public : glo_c_public ->glo_i_public : glo_i_public +>glo_C11_public : glo_C11_public, Symbol(glo_C11_public, Decl(privacyGloClass.ts, 55, 1)) +>glo_c_public : glo_c_public, Symbol(glo_c_public, Decl(privacyGloClass.ts, 44, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyGloClass.ts, 41, 1)) } diff --git a/tests/baselines/reference/privacyGloFunc.types b/tests/baselines/reference/privacyGloFunc.types index 35ccb19f8ed..bb4d3800e35 100644 --- a/tests/baselines/reference/privacyGloFunc.types +++ b/tests/baselines/reference/privacyGloFunc.types @@ -1,1081 +1,1081 @@ === tests/cases/compiler/privacyGloFunc.ts === export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(privacyGloFunc.ts, 0, 0)) export class C1_public { ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyGloFunc.ts, 1, 28)) } } class C2_private { ->C2_private : C2_private +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } export class C3_public { ->C3_public : C3_public +>C3_public : C3_public, Symbol(C3_public, Decl(privacyGloFunc.ts, 7, 5)) constructor (m1_c3_c1: C1_public); ->m1_c3_c1 : C1_public ->C1_public : C1_public +>m1_c3_c1 : C1_public, Symbol(m1_c3_c1, Decl(privacyGloFunc.ts, 10, 21)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) constructor (m1_c3_c2: C2_private); //error ->m1_c3_c2 : C2_private ->C2_private : C2_private +>m1_c3_c2 : C2_private, Symbol(m1_c3_c2, Decl(privacyGloFunc.ts, 11, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) constructor (m1_c3_c1_2: any) { ->m1_c3_c1_2 : any +>m1_c3_c1_2 : any, Symbol(m1_c3_c1_2, Decl(privacyGloFunc.ts, 12, 21)) } private f1_private(m1_c3_f1_arg: C1_public) { ->f1_private : (m1_c3_f1_arg: C1_public) => void ->m1_c3_f1_arg : C1_public ->C1_public : C1_public +>f1_private : (m1_c3_f1_arg: C1_public) => void, Symbol(f1_private, Decl(privacyGloFunc.ts, 13, 9)) +>m1_c3_f1_arg : C1_public, Symbol(m1_c3_f1_arg, Decl(privacyGloFunc.ts, 15, 27)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } public f2_public(m1_c3_f2_arg: C1_public) { ->f2_public : (m1_c3_f2_arg: C1_public) => void ->m1_c3_f2_arg : C1_public ->C1_public : C1_public +>f2_public : (m1_c3_f2_arg: C1_public) => void, Symbol(f2_public, Decl(privacyGloFunc.ts, 16, 9)) +>m1_c3_f2_arg : C1_public, Symbol(m1_c3_f2_arg, Decl(privacyGloFunc.ts, 18, 25)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } private f3_private(m1_c3_f3_arg: C2_private) { ->f3_private : (m1_c3_f3_arg: C2_private) => void ->m1_c3_f3_arg : C2_private ->C2_private : C2_private +>f3_private : (m1_c3_f3_arg: C2_private) => void, Symbol(f3_private, Decl(privacyGloFunc.ts, 19, 9)) +>m1_c3_f3_arg : C2_private, Symbol(m1_c3_f3_arg, Decl(privacyGloFunc.ts, 21, 27)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } public f4_public(m1_c3_f4_arg: C2_private) { // error ->f4_public : (m1_c3_f4_arg: C2_private) => void ->m1_c3_f4_arg : C2_private ->C2_private : C2_private +>f4_public : (m1_c3_f4_arg: C2_private) => void, Symbol(f4_public, Decl(privacyGloFunc.ts, 22, 9)) +>m1_c3_f4_arg : C2_private, Symbol(m1_c3_f4_arg, Decl(privacyGloFunc.ts, 24, 25)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } private f5_private() { ->f5_private : () => C1_public +>f5_private : () => C1_public, Symbol(f5_private, Decl(privacyGloFunc.ts, 25, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } public f6_public() { ->f6_public : () => C1_public +>f6_public : () => C1_public, Symbol(f6_public, Decl(privacyGloFunc.ts, 29, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } private f7_private() { ->f7_private : () => C2_private +>f7_private : () => C2_private, Symbol(f7_private, Decl(privacyGloFunc.ts, 33, 9)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } public f8_public() { ->f8_public : () => C2_private +>f8_public : () => C2_private, Symbol(f8_public, Decl(privacyGloFunc.ts, 37, 9)) return new C2_private(); // error >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } private f9_private(): C1_public { ->f9_private : () => C1_public ->C1_public : C1_public +>f9_private : () => C1_public, Symbol(f9_private, Decl(privacyGloFunc.ts, 41, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } public f10_public(): C1_public { ->f10_public : () => C1_public ->C1_public : C1_public +>f10_public : () => C1_public, Symbol(f10_public, Decl(privacyGloFunc.ts, 45, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } private f11_private(): C2_private { ->f11_private : () => C2_private ->C2_private : C2_private +>f11_private : () => C2_private, Symbol(f11_private, Decl(privacyGloFunc.ts, 49, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } public f12_public(): C2_private { // error ->f12_public : () => C2_private ->C2_private : C2_private +>f12_public : () => C2_private, Symbol(f12_public, Decl(privacyGloFunc.ts, 53, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) return new C2_private(); //error >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } } class C4_private { ->C4_private : C4_private +>C4_private : C4_private, Symbol(C4_private, Decl(privacyGloFunc.ts, 58, 5)) constructor (m1_c4_c1: C1_public); ->m1_c4_c1 : C1_public ->C1_public : C1_public +>m1_c4_c1 : C1_public, Symbol(m1_c4_c1, Decl(privacyGloFunc.ts, 61, 21)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) constructor (m1_c4_c2: C2_private); ->m1_c4_c2 : C2_private ->C2_private : C2_private +>m1_c4_c2 : C2_private, Symbol(m1_c4_c2, Decl(privacyGloFunc.ts, 62, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) constructor (m1_c4_c1_2: any) { ->m1_c4_c1_2 : any +>m1_c4_c1_2 : any, Symbol(m1_c4_c1_2, Decl(privacyGloFunc.ts, 63, 21)) } private f1_private(m1_c4_f1_arg: C1_public) { ->f1_private : (m1_c4_f1_arg: C1_public) => void ->m1_c4_f1_arg : C1_public ->C1_public : C1_public +>f1_private : (m1_c4_f1_arg: C1_public) => void, Symbol(f1_private, Decl(privacyGloFunc.ts, 64, 9)) +>m1_c4_f1_arg : C1_public, Symbol(m1_c4_f1_arg, Decl(privacyGloFunc.ts, 65, 27)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } public f2_public(m1_c4_f2_arg: C1_public) { ->f2_public : (m1_c4_f2_arg: C1_public) => void ->m1_c4_f2_arg : C1_public ->C1_public : C1_public +>f2_public : (m1_c4_f2_arg: C1_public) => void, Symbol(f2_public, Decl(privacyGloFunc.ts, 66, 9)) +>m1_c4_f2_arg : C1_public, Symbol(m1_c4_f2_arg, Decl(privacyGloFunc.ts, 68, 25)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } private f3_private(m1_c4_f3_arg: C2_private) { ->f3_private : (m1_c4_f3_arg: C2_private) => void ->m1_c4_f3_arg : C2_private ->C2_private : C2_private +>f3_private : (m1_c4_f3_arg: C2_private) => void, Symbol(f3_private, Decl(privacyGloFunc.ts, 69, 9)) +>m1_c4_f3_arg : C2_private, Symbol(m1_c4_f3_arg, Decl(privacyGloFunc.ts, 71, 27)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } public f4_public(m1_c4_f4_arg: C2_private) { ->f4_public : (m1_c4_f4_arg: C2_private) => void ->m1_c4_f4_arg : C2_private ->C2_private : C2_private +>f4_public : (m1_c4_f4_arg: C2_private) => void, Symbol(f4_public, Decl(privacyGloFunc.ts, 72, 9)) +>m1_c4_f4_arg : C2_private, Symbol(m1_c4_f4_arg, Decl(privacyGloFunc.ts, 74, 25)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } private f5_private() { ->f5_private : () => C1_public +>f5_private : () => C1_public, Symbol(f5_private, Decl(privacyGloFunc.ts, 75, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } public f6_public() { ->f6_public : () => C1_public +>f6_public : () => C1_public, Symbol(f6_public, Decl(privacyGloFunc.ts, 80, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } private f7_private() { ->f7_private : () => C2_private +>f7_private : () => C2_private, Symbol(f7_private, Decl(privacyGloFunc.ts, 84, 9)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } public f8_public() { ->f8_public : () => C2_private +>f8_public : () => C2_private, Symbol(f8_public, Decl(privacyGloFunc.ts, 88, 9)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } private f9_private(): C1_public { ->f9_private : () => C1_public ->C1_public : C1_public +>f9_private : () => C1_public, Symbol(f9_private, Decl(privacyGloFunc.ts, 92, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } public f10_public(): C1_public { ->f10_public : () => C1_public ->C1_public : C1_public +>f10_public : () => C1_public, Symbol(f10_public, Decl(privacyGloFunc.ts, 97, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } private f11_private(): C2_private { ->f11_private : () => C2_private ->C2_private : C2_private +>f11_private : () => C2_private, Symbol(f11_private, Decl(privacyGloFunc.ts, 101, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } public f12_public(): C2_private { ->f12_public : () => C2_private ->C2_private : C2_private +>f12_public : () => C2_private, Symbol(f12_public, Decl(privacyGloFunc.ts, 105, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } } export class C5_public { ->C5_public : C5_public +>C5_public : C5_public, Symbol(C5_public, Decl(privacyGloFunc.ts, 110, 5)) constructor (m1_c5_c: C1_public) { ->m1_c5_c : C1_public ->C1_public : C1_public +>m1_c5_c : C1_public, Symbol(m1_c5_c, Decl(privacyGloFunc.ts, 113, 21)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } } class C6_private { ->C6_private : C6_private +>C6_private : C6_private, Symbol(C6_private, Decl(privacyGloFunc.ts, 115, 5)) constructor (m1_c6_c: C1_public) { ->m1_c6_c : C1_public ->C1_public : C1_public +>m1_c6_c : C1_public, Symbol(m1_c6_c, Decl(privacyGloFunc.ts, 118, 21)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } } export class C7_public { ->C7_public : C7_public +>C7_public : C7_public, Symbol(C7_public, Decl(privacyGloFunc.ts, 120, 5)) constructor (m1_c7_c: C2_private) { // error ->m1_c7_c : C2_private ->C2_private : C2_private +>m1_c7_c : C2_private, Symbol(m1_c7_c, Decl(privacyGloFunc.ts, 122, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } } class C8_private { ->C8_private : C8_private +>C8_private : C8_private, Symbol(C8_private, Decl(privacyGloFunc.ts, 124, 5)) constructor (m1_c8_c: C2_private) { ->m1_c8_c : C2_private ->C2_private : C2_private +>m1_c8_c : C2_private, Symbol(m1_c8_c, Decl(privacyGloFunc.ts, 127, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } } function f1_public(m1_f1_arg: C1_public) { ->f1_public : (m1_f1_arg: C1_public) => void ->m1_f1_arg : C1_public ->C1_public : C1_public +>f1_public : (m1_f1_arg: C1_public) => void, Symbol(f1_public, Decl(privacyGloFunc.ts, 129, 5)) +>m1_f1_arg : C1_public, Symbol(m1_f1_arg, Decl(privacyGloFunc.ts, 131, 23)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } export function f2_public(m1_f2_arg: C1_public) { ->f2_public : (m1_f2_arg: C1_public) => void ->m1_f2_arg : C1_public ->C1_public : C1_public +>f2_public : (m1_f2_arg: C1_public) => void, Symbol(f2_public, Decl(privacyGloFunc.ts, 132, 5)) +>m1_f2_arg : C1_public, Symbol(m1_f2_arg, Decl(privacyGloFunc.ts, 134, 30)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } function f3_public(m1_f3_arg: C2_private) { ->f3_public : (m1_f3_arg: C2_private) => void ->m1_f3_arg : C2_private ->C2_private : C2_private +>f3_public : (m1_f3_arg: C2_private) => void, Symbol(f3_public, Decl(privacyGloFunc.ts, 135, 5)) +>m1_f3_arg : C2_private, Symbol(m1_f3_arg, Decl(privacyGloFunc.ts, 137, 23)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } export function f4_public(m1_f4_arg: C2_private) { // error ->f4_public : (m1_f4_arg: C2_private) => void ->m1_f4_arg : C2_private ->C2_private : C2_private +>f4_public : (m1_f4_arg: C2_private) => void, Symbol(f4_public, Decl(privacyGloFunc.ts, 138, 5)) +>m1_f4_arg : C2_private, Symbol(m1_f4_arg, Decl(privacyGloFunc.ts, 140, 30)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } function f5_public() { ->f5_public : () => C1_public +>f5_public : () => C1_public, Symbol(f5_public, Decl(privacyGloFunc.ts, 141, 5)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } export function f6_public() { ->f6_public : () => C1_public +>f6_public : () => C1_public, Symbol(f6_public, Decl(privacyGloFunc.ts, 146, 5)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } function f7_public() { ->f7_public : () => C2_private +>f7_public : () => C2_private, Symbol(f7_public, Decl(privacyGloFunc.ts, 150, 5)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } export function f8_public() { ->f8_public : () => C2_private +>f8_public : () => C2_private, Symbol(f8_public, Decl(privacyGloFunc.ts, 154, 5)) return new C2_private(); // error >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } function f9_private(): C1_public { ->f9_private : () => C1_public ->C1_public : C1_public +>f9_private : () => C1_public, Symbol(f9_private, Decl(privacyGloFunc.ts, 158, 5)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } export function f10_public(): C1_public { ->f10_public : () => C1_public ->C1_public : C1_public +>f10_public : () => C1_public, Symbol(f10_public, Decl(privacyGloFunc.ts, 163, 5)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloFunc.ts, 0, 18)) } function f11_private(): C2_private { ->f11_private : () => C2_private ->C2_private : C2_private +>f11_private : () => C2_private, Symbol(f11_private, Decl(privacyGloFunc.ts, 167, 5)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } export function f12_public(): C2_private { // error ->f12_public : () => C2_private ->C2_private : C2_private +>f12_public : () => C2_private, Symbol(f12_public, Decl(privacyGloFunc.ts, 171, 5)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) return new C2_private(); //error >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloFunc.ts, 4, 5)) } } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(privacyGloFunc.ts, 176, 1)) export class m2_C1_public { ->m2_C1_public : m2_C1_public +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) private f() { ->f : () => void +>f : () => void, Symbol(f, Decl(privacyGloFunc.ts, 179, 31)) } } class m2_C2_private { ->m2_C2_private : m2_C2_private +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } export class m2_C3_public { ->m2_C3_public : m2_C3_public +>m2_C3_public : m2_C3_public, Symbol(m2_C3_public, Decl(privacyGloFunc.ts, 185, 5)) constructor (m2_c3_c1: m2_C1_public); ->m2_c3_c1 : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_c3_c1 : m2_C1_public, Symbol(m2_c3_c1, Decl(privacyGloFunc.ts, 188, 21)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) constructor (m2_c3_c2: m2_C2_private); ->m2_c3_c2 : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_c3_c2 : m2_C2_private, Symbol(m2_c3_c2, Decl(privacyGloFunc.ts, 189, 21)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) constructor (m2_c3_c1_2: any) { ->m2_c3_c1_2 : any +>m2_c3_c1_2 : any, Symbol(m2_c3_c1_2, Decl(privacyGloFunc.ts, 190, 21)) } private f1_private(m2_c3_f1_arg: m2_C1_public) { ->f1_private : (m2_c3_f1_arg: m2_C1_public) => void ->m2_c3_f1_arg : m2_C1_public ->m2_C1_public : m2_C1_public +>f1_private : (m2_c3_f1_arg: m2_C1_public) => void, Symbol(f1_private, Decl(privacyGloFunc.ts, 191, 9)) +>m2_c3_f1_arg : m2_C1_public, Symbol(m2_c3_f1_arg, Decl(privacyGloFunc.ts, 193, 27)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } public f2_public(m2_c3_f2_arg: m2_C1_public) { ->f2_public : (m2_c3_f2_arg: m2_C1_public) => void ->m2_c3_f2_arg : m2_C1_public ->m2_C1_public : m2_C1_public +>f2_public : (m2_c3_f2_arg: m2_C1_public) => void, Symbol(f2_public, Decl(privacyGloFunc.ts, 194, 9)) +>m2_c3_f2_arg : m2_C1_public, Symbol(m2_c3_f2_arg, Decl(privacyGloFunc.ts, 196, 25)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } private f3_private(m2_c3_f3_arg: m2_C2_private) { ->f3_private : (m2_c3_f3_arg: m2_C2_private) => void ->m2_c3_f3_arg : m2_C2_private ->m2_C2_private : m2_C2_private +>f3_private : (m2_c3_f3_arg: m2_C2_private) => void, Symbol(f3_private, Decl(privacyGloFunc.ts, 197, 9)) +>m2_c3_f3_arg : m2_C2_private, Symbol(m2_c3_f3_arg, Decl(privacyGloFunc.ts, 199, 27)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } public f4_public(m2_c3_f4_arg: m2_C2_private) { ->f4_public : (m2_c3_f4_arg: m2_C2_private) => void ->m2_c3_f4_arg : m2_C2_private ->m2_C2_private : m2_C2_private +>f4_public : (m2_c3_f4_arg: m2_C2_private) => void, Symbol(f4_public, Decl(privacyGloFunc.ts, 200, 9)) +>m2_c3_f4_arg : m2_C2_private, Symbol(m2_c3_f4_arg, Decl(privacyGloFunc.ts, 202, 25)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } private f5_private() { ->f5_private : () => m2_C1_public +>f5_private : () => m2_C1_public, Symbol(f5_private, Decl(privacyGloFunc.ts, 203, 9)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } public f6_public() { ->f6_public : () => m2_C1_public +>f6_public : () => m2_C1_public, Symbol(f6_public, Decl(privacyGloFunc.ts, 207, 9)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } private f7_private() { ->f7_private : () => m2_C2_private +>f7_private : () => m2_C2_private, Symbol(f7_private, Decl(privacyGloFunc.ts, 211, 9)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } public f8_public() { ->f8_public : () => m2_C2_private +>f8_public : () => m2_C2_private, Symbol(f8_public, Decl(privacyGloFunc.ts, 215, 9)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } private f9_private(): m2_C1_public { ->f9_private : () => m2_C1_public ->m2_C1_public : m2_C1_public +>f9_private : () => m2_C1_public, Symbol(f9_private, Decl(privacyGloFunc.ts, 219, 9)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } public f10_public(): m2_C1_public { ->f10_public : () => m2_C1_public ->m2_C1_public : m2_C1_public +>f10_public : () => m2_C1_public, Symbol(f10_public, Decl(privacyGloFunc.ts, 223, 9)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } private f11_private(): m2_C2_private { ->f11_private : () => m2_C2_private ->m2_C2_private : m2_C2_private +>f11_private : () => m2_C2_private, Symbol(f11_private, Decl(privacyGloFunc.ts, 227, 9)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } public f12_public(): m2_C2_private { ->f12_public : () => m2_C2_private ->m2_C2_private : m2_C2_private +>f12_public : () => m2_C2_private, Symbol(f12_public, Decl(privacyGloFunc.ts, 231, 9)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } } class m2_C4_private { ->m2_C4_private : m2_C4_private +>m2_C4_private : m2_C4_private, Symbol(m2_C4_private, Decl(privacyGloFunc.ts, 236, 5)) constructor (m2_c4_c1: m2_C1_public); ->m2_c4_c1 : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_c4_c1 : m2_C1_public, Symbol(m2_c4_c1, Decl(privacyGloFunc.ts, 239, 21)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) constructor (m2_c4_c2: m2_C2_private); ->m2_c4_c2 : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_c4_c2 : m2_C2_private, Symbol(m2_c4_c2, Decl(privacyGloFunc.ts, 240, 21)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) constructor (m2_c4_c1_2: any) { ->m2_c4_c1_2 : any +>m2_c4_c1_2 : any, Symbol(m2_c4_c1_2, Decl(privacyGloFunc.ts, 241, 21)) } private f1_private(m2_c4_f1_arg: m2_C1_public) { ->f1_private : (m2_c4_f1_arg: m2_C1_public) => void ->m2_c4_f1_arg : m2_C1_public ->m2_C1_public : m2_C1_public +>f1_private : (m2_c4_f1_arg: m2_C1_public) => void, Symbol(f1_private, Decl(privacyGloFunc.ts, 242, 9)) +>m2_c4_f1_arg : m2_C1_public, Symbol(m2_c4_f1_arg, Decl(privacyGloFunc.ts, 244, 27)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } public f2_public(m2_c4_f2_arg: m2_C1_public) { ->f2_public : (m2_c4_f2_arg: m2_C1_public) => void ->m2_c4_f2_arg : m2_C1_public ->m2_C1_public : m2_C1_public +>f2_public : (m2_c4_f2_arg: m2_C1_public) => void, Symbol(f2_public, Decl(privacyGloFunc.ts, 245, 9)) +>m2_c4_f2_arg : m2_C1_public, Symbol(m2_c4_f2_arg, Decl(privacyGloFunc.ts, 247, 25)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } private f3_private(m2_c4_f3_arg: m2_C2_private) { ->f3_private : (m2_c4_f3_arg: m2_C2_private) => void ->m2_c4_f3_arg : m2_C2_private ->m2_C2_private : m2_C2_private +>f3_private : (m2_c4_f3_arg: m2_C2_private) => void, Symbol(f3_private, Decl(privacyGloFunc.ts, 248, 9)) +>m2_c4_f3_arg : m2_C2_private, Symbol(m2_c4_f3_arg, Decl(privacyGloFunc.ts, 250, 27)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } public f4_public(m2_c4_f4_arg: m2_C2_private) { ->f4_public : (m2_c4_f4_arg: m2_C2_private) => void ->m2_c4_f4_arg : m2_C2_private ->m2_C2_private : m2_C2_private +>f4_public : (m2_c4_f4_arg: m2_C2_private) => void, Symbol(f4_public, Decl(privacyGloFunc.ts, 251, 9)) +>m2_c4_f4_arg : m2_C2_private, Symbol(m2_c4_f4_arg, Decl(privacyGloFunc.ts, 253, 25)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } private f5_private() { ->f5_private : () => m2_C1_public +>f5_private : () => m2_C1_public, Symbol(f5_private, Decl(privacyGloFunc.ts, 254, 9)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } public f6_public() { ->f6_public : () => m2_C1_public +>f6_public : () => m2_C1_public, Symbol(f6_public, Decl(privacyGloFunc.ts, 259, 9)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } private f7_private() { ->f7_private : () => m2_C2_private +>f7_private : () => m2_C2_private, Symbol(f7_private, Decl(privacyGloFunc.ts, 263, 9)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } public f8_public() { ->f8_public : () => m2_C2_private +>f8_public : () => m2_C2_private, Symbol(f8_public, Decl(privacyGloFunc.ts, 267, 9)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } private f9_private(): m2_C1_public { ->f9_private : () => m2_C1_public ->m2_C1_public : m2_C1_public +>f9_private : () => m2_C1_public, Symbol(f9_private, Decl(privacyGloFunc.ts, 271, 9)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } public f10_public(): m2_C1_public { ->f10_public : () => m2_C1_public ->m2_C1_public : m2_C1_public +>f10_public : () => m2_C1_public, Symbol(f10_public, Decl(privacyGloFunc.ts, 276, 9)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } private f11_private(): m2_C2_private { ->f11_private : () => m2_C2_private ->m2_C2_private : m2_C2_private +>f11_private : () => m2_C2_private, Symbol(f11_private, Decl(privacyGloFunc.ts, 280, 9)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } public f12_public(): m2_C2_private { ->f12_public : () => m2_C2_private ->m2_C2_private : m2_C2_private +>f12_public : () => m2_C2_private, Symbol(f12_public, Decl(privacyGloFunc.ts, 284, 9)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } } export class m2_C5_public { ->m2_C5_public : m2_C5_public +>m2_C5_public : m2_C5_public, Symbol(m2_C5_public, Decl(privacyGloFunc.ts, 289, 5)) constructor (m2_c5_c: m2_C1_public) { ->m2_c5_c : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_c5_c : m2_C1_public, Symbol(m2_c5_c, Decl(privacyGloFunc.ts, 292, 21)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } } class m2_C6_private { ->m2_C6_private : m2_C6_private +>m2_C6_private : m2_C6_private, Symbol(m2_C6_private, Decl(privacyGloFunc.ts, 294, 5)) constructor (m2_c6_c: m2_C1_public) { ->m2_c6_c : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_c6_c : m2_C1_public, Symbol(m2_c6_c, Decl(privacyGloFunc.ts, 297, 21)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } } export class m2_C7_public { ->m2_C7_public : m2_C7_public +>m2_C7_public : m2_C7_public, Symbol(m2_C7_public, Decl(privacyGloFunc.ts, 299, 5)) constructor (m2_c7_c: m2_C2_private) { ->m2_c7_c : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_c7_c : m2_C2_private, Symbol(m2_c7_c, Decl(privacyGloFunc.ts, 301, 21)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } } class m2_C8_private { ->m2_C8_private : m2_C8_private +>m2_C8_private : m2_C8_private, Symbol(m2_C8_private, Decl(privacyGloFunc.ts, 303, 5)) constructor (m2_c8_c: m2_C2_private) { ->m2_c8_c : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_c8_c : m2_C2_private, Symbol(m2_c8_c, Decl(privacyGloFunc.ts, 306, 21)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } } function f1_public(m2_f1_arg: m2_C1_public) { ->f1_public : (m2_f1_arg: m2_C1_public) => void ->m2_f1_arg : m2_C1_public ->m2_C1_public : m2_C1_public +>f1_public : (m2_f1_arg: m2_C1_public) => void, Symbol(f1_public, Decl(privacyGloFunc.ts, 308, 5)) +>m2_f1_arg : m2_C1_public, Symbol(m2_f1_arg, Decl(privacyGloFunc.ts, 310, 23)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } export function f2_public(m2_f2_arg: m2_C1_public) { ->f2_public : (m2_f2_arg: m2_C1_public) => void ->m2_f2_arg : m2_C1_public ->m2_C1_public : m2_C1_public +>f2_public : (m2_f2_arg: m2_C1_public) => void, Symbol(f2_public, Decl(privacyGloFunc.ts, 311, 5)) +>m2_f2_arg : m2_C1_public, Symbol(m2_f2_arg, Decl(privacyGloFunc.ts, 313, 30)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } function f3_public(m2_f3_arg: m2_C2_private) { ->f3_public : (m2_f3_arg: m2_C2_private) => void ->m2_f3_arg : m2_C2_private ->m2_C2_private : m2_C2_private +>f3_public : (m2_f3_arg: m2_C2_private) => void, Symbol(f3_public, Decl(privacyGloFunc.ts, 314, 5)) +>m2_f3_arg : m2_C2_private, Symbol(m2_f3_arg, Decl(privacyGloFunc.ts, 316, 23)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } export function f4_public(m2_f4_arg: m2_C2_private) { ->f4_public : (m2_f4_arg: m2_C2_private) => void ->m2_f4_arg : m2_C2_private ->m2_C2_private : m2_C2_private +>f4_public : (m2_f4_arg: m2_C2_private) => void, Symbol(f4_public, Decl(privacyGloFunc.ts, 317, 5)) +>m2_f4_arg : m2_C2_private, Symbol(m2_f4_arg, Decl(privacyGloFunc.ts, 319, 30)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } function f5_public() { ->f5_public : () => m2_C1_public +>f5_public : () => m2_C1_public, Symbol(f5_public, Decl(privacyGloFunc.ts, 320, 5)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } export function f6_public() { ->f6_public : () => m2_C1_public +>f6_public : () => m2_C1_public, Symbol(f6_public, Decl(privacyGloFunc.ts, 325, 5)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } function f7_public() { ->f7_public : () => m2_C2_private +>f7_public : () => m2_C2_private, Symbol(f7_public, Decl(privacyGloFunc.ts, 329, 5)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } export function f8_public() { ->f8_public : () => m2_C2_private +>f8_public : () => m2_C2_private, Symbol(f8_public, Decl(privacyGloFunc.ts, 333, 5)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } function f9_private(): m2_C1_public { ->f9_private : () => m2_C1_public ->m2_C1_public : m2_C1_public +>f9_private : () => m2_C1_public, Symbol(f9_private, Decl(privacyGloFunc.ts, 337, 5)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } export function f10_public(): m2_C1_public { ->f10_public : () => m2_C1_public ->m2_C1_public : m2_C1_public +>f10_public : () => m2_C1_public, Symbol(f10_public, Decl(privacyGloFunc.ts, 342, 5)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) return new m2_C1_public(); >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyGloFunc.ts, 178, 11)) } function f11_private(): m2_C2_private { ->f11_private : () => m2_C2_private ->m2_C2_private : m2_C2_private +>f11_private : () => m2_C2_private, Symbol(f11_private, Decl(privacyGloFunc.ts, 346, 5)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } export function f12_public(): m2_C2_private { ->f12_public : () => m2_C2_private ->m2_C2_private : m2_C2_private +>f12_public : () => m2_C2_private, Symbol(f12_public, Decl(privacyGloFunc.ts, 350, 5)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) return new m2_C2_private(); >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyGloFunc.ts, 182, 5)) } } class C5_private { ->C5_private : C5_private +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) private f() { ->f : () => void +>f : () => void, Symbol(f, Decl(privacyGloFunc.ts, 357, 18)) } } export class C6_public { ->C6_public : C6_public +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } export class C7_public { ->C7_public : C7_public +>C7_public : C7_public, Symbol(C7_public, Decl(privacyGloFunc.ts, 363, 1)) constructor (c7_c1: C5_private); // error ->c7_c1 : C5_private ->C5_private : C5_private +>c7_c1 : C5_private, Symbol(c7_c1, Decl(privacyGloFunc.ts, 366, 17)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) constructor (c7_c2: C6_public); ->c7_c2 : C6_public ->C6_public : C6_public +>c7_c2 : C6_public, Symbol(c7_c2, Decl(privacyGloFunc.ts, 367, 17)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) constructor (c7_c1_2: any) { ->c7_c1_2 : any +>c7_c1_2 : any, Symbol(c7_c1_2, Decl(privacyGloFunc.ts, 368, 17)) } private f1_private(c7_f1_arg: C6_public) { ->f1_private : (c7_f1_arg: C6_public) => void ->c7_f1_arg : C6_public ->C6_public : C6_public +>f1_private : (c7_f1_arg: C6_public) => void, Symbol(f1_private, Decl(privacyGloFunc.ts, 369, 5)) +>c7_f1_arg : C6_public, Symbol(c7_f1_arg, Decl(privacyGloFunc.ts, 370, 23)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } public f2_public(c7_f2_arg: C6_public) { ->f2_public : (c7_f2_arg: C6_public) => void ->c7_f2_arg : C6_public ->C6_public : C6_public +>f2_public : (c7_f2_arg: C6_public) => void, Symbol(f2_public, Decl(privacyGloFunc.ts, 371, 5)) +>c7_f2_arg : C6_public, Symbol(c7_f2_arg, Decl(privacyGloFunc.ts, 373, 21)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } private f3_private(c7_f3_arg: C5_private) { ->f3_private : (c7_f3_arg: C5_private) => void ->c7_f3_arg : C5_private ->C5_private : C5_private +>f3_private : (c7_f3_arg: C5_private) => void, Symbol(f3_private, Decl(privacyGloFunc.ts, 374, 5)) +>c7_f3_arg : C5_private, Symbol(c7_f3_arg, Decl(privacyGloFunc.ts, 376, 23)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } public f4_public(c7_f4_arg: C5_private) { //error ->f4_public : (c7_f4_arg: C5_private) => void ->c7_f4_arg : C5_private ->C5_private : C5_private +>f4_public : (c7_f4_arg: C5_private) => void, Symbol(f4_public, Decl(privacyGloFunc.ts, 377, 5)) +>c7_f4_arg : C5_private, Symbol(c7_f4_arg, Decl(privacyGloFunc.ts, 379, 21)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } private f5_private() { ->f5_private : () => C6_public +>f5_private : () => C6_public, Symbol(f5_private, Decl(privacyGloFunc.ts, 380, 5)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } public f6_public() { ->f6_public : () => C6_public +>f6_public : () => C6_public, Symbol(f6_public, Decl(privacyGloFunc.ts, 384, 5)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } private f7_private() { ->f7_private : () => C5_private +>f7_private : () => C5_private, Symbol(f7_private, Decl(privacyGloFunc.ts, 388, 5)) return new C5_private(); >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } public f8_public() { ->f8_public : () => C5_private +>f8_public : () => C5_private, Symbol(f8_public, Decl(privacyGloFunc.ts, 392, 5)) return new C5_private(); //error >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } private f9_private(): C6_public { ->f9_private : () => C6_public ->C6_public : C6_public +>f9_private : () => C6_public, Symbol(f9_private, Decl(privacyGloFunc.ts, 396, 5)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } public f10_public(): C6_public { ->f10_public : () => C6_public ->C6_public : C6_public +>f10_public : () => C6_public, Symbol(f10_public, Decl(privacyGloFunc.ts, 400, 5)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } private f11_private(): C5_private { ->f11_private : () => C5_private ->C5_private : C5_private +>f11_private : () => C5_private, Symbol(f11_private, Decl(privacyGloFunc.ts, 404, 5)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) return new C5_private(); >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } public f12_public(): C5_private { //error ->f12_public : () => C5_private ->C5_private : C5_private +>f12_public : () => C5_private, Symbol(f12_public, Decl(privacyGloFunc.ts, 408, 5)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) return new C5_private(); //error >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } } class C8_private { ->C8_private : C8_private +>C8_private : C8_private, Symbol(C8_private, Decl(privacyGloFunc.ts, 413, 1)) constructor (c8_c1: C5_private); ->c8_c1 : C5_private ->C5_private : C5_private +>c8_c1 : C5_private, Symbol(c8_c1, Decl(privacyGloFunc.ts, 416, 17)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) constructor (c8_c2: C6_public); ->c8_c2 : C6_public ->C6_public : C6_public +>c8_c2 : C6_public, Symbol(c8_c2, Decl(privacyGloFunc.ts, 417, 17)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) constructor (c8_c1_2: any) { ->c8_c1_2 : any +>c8_c1_2 : any, Symbol(c8_c1_2, Decl(privacyGloFunc.ts, 418, 17)) } private f1_private(c8_f1_arg: C6_public) { ->f1_private : (c8_f1_arg: C6_public) => void ->c8_f1_arg : C6_public ->C6_public : C6_public +>f1_private : (c8_f1_arg: C6_public) => void, Symbol(f1_private, Decl(privacyGloFunc.ts, 419, 5)) +>c8_f1_arg : C6_public, Symbol(c8_f1_arg, Decl(privacyGloFunc.ts, 421, 23)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } public f2_public(c8_f2_arg: C6_public) { ->f2_public : (c8_f2_arg: C6_public) => void ->c8_f2_arg : C6_public ->C6_public : C6_public +>f2_public : (c8_f2_arg: C6_public) => void, Symbol(f2_public, Decl(privacyGloFunc.ts, 422, 5)) +>c8_f2_arg : C6_public, Symbol(c8_f2_arg, Decl(privacyGloFunc.ts, 424, 21)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } private f3_private(c8_f3_arg: C5_private) { ->f3_private : (c8_f3_arg: C5_private) => void ->c8_f3_arg : C5_private ->C5_private : C5_private +>f3_private : (c8_f3_arg: C5_private) => void, Symbol(f3_private, Decl(privacyGloFunc.ts, 425, 5)) +>c8_f3_arg : C5_private, Symbol(c8_f3_arg, Decl(privacyGloFunc.ts, 427, 23)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } public f4_public(c8_f4_arg: C5_private) { ->f4_public : (c8_f4_arg: C5_private) => void ->c8_f4_arg : C5_private ->C5_private : C5_private +>f4_public : (c8_f4_arg: C5_private) => void, Symbol(f4_public, Decl(privacyGloFunc.ts, 428, 5)) +>c8_f4_arg : C5_private, Symbol(c8_f4_arg, Decl(privacyGloFunc.ts, 430, 21)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } private f5_private() { ->f5_private : () => C6_public +>f5_private : () => C6_public, Symbol(f5_private, Decl(privacyGloFunc.ts, 431, 5)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } public f6_public() { ->f6_public : () => C6_public +>f6_public : () => C6_public, Symbol(f6_public, Decl(privacyGloFunc.ts, 435, 5)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } private f7_private() { ->f7_private : () => C5_private +>f7_private : () => C5_private, Symbol(f7_private, Decl(privacyGloFunc.ts, 439, 5)) return new C5_private(); >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } public f8_public() { ->f8_public : () => C5_private +>f8_public : () => C5_private, Symbol(f8_public, Decl(privacyGloFunc.ts, 443, 5)) return new C5_private(); >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } private f9_private(): C6_public { ->f9_private : () => C6_public ->C6_public : C6_public +>f9_private : () => C6_public, Symbol(f9_private, Decl(privacyGloFunc.ts, 447, 5)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } public f10_public(): C6_public { ->f10_public : () => C6_public ->C6_public : C6_public +>f10_public : () => C6_public, Symbol(f10_public, Decl(privacyGloFunc.ts, 451, 5)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } private f11_private(): C5_private { ->f11_private : () => C5_private ->C5_private : C5_private +>f11_private : () => C5_private, Symbol(f11_private, Decl(privacyGloFunc.ts, 455, 5)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) return new C5_private(); >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } public f12_public(): C5_private { ->f12_public : () => C5_private ->C5_private : C5_private +>f12_public : () => C5_private, Symbol(f12_public, Decl(privacyGloFunc.ts, 459, 5)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) return new C5_private(); >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } } export class C9_public { ->C9_public : C9_public +>C9_public : C9_public, Symbol(C9_public, Decl(privacyGloFunc.ts, 464, 1)) constructor (c9_c: C6_public) { ->c9_c : C6_public ->C6_public : C6_public +>c9_c : C6_public, Symbol(c9_c, Decl(privacyGloFunc.ts, 468, 17)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } } class C10_private { ->C10_private : C10_private +>C10_private : C10_private, Symbol(C10_private, Decl(privacyGloFunc.ts, 470, 1)) constructor (c10_c: C6_public) { ->c10_c : C6_public ->C6_public : C6_public +>c10_c : C6_public, Symbol(c10_c, Decl(privacyGloFunc.ts, 473, 17)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } } export class C11_public { ->C11_public : C11_public +>C11_public : C11_public, Symbol(C11_public, Decl(privacyGloFunc.ts, 475, 1)) constructor (c11_c: C5_private) { // error ->c11_c : C5_private ->C5_private : C5_private +>c11_c : C5_private, Symbol(c11_c, Decl(privacyGloFunc.ts, 477, 17)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } } class C12_private { ->C12_private : C12_private +>C12_private : C12_private, Symbol(C12_private, Decl(privacyGloFunc.ts, 479, 1)) constructor (c12_c: C5_private) { ->c12_c : C5_private ->C5_private : C5_private +>c12_c : C5_private, Symbol(c12_c, Decl(privacyGloFunc.ts, 482, 17)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } } function f1_private(f1_arg: C5_private) { ->f1_private : (f1_arg: C5_private) => void ->f1_arg : C5_private ->C5_private : C5_private +>f1_private : (f1_arg: C5_private) => void, Symbol(f1_private, Decl(privacyGloFunc.ts, 484, 1)) +>f1_arg : C5_private, Symbol(f1_arg, Decl(privacyGloFunc.ts, 486, 20)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } export function f2_public(f2_arg: C5_private) { // error ->f2_public : (f2_arg: C5_private) => void ->f2_arg : C5_private ->C5_private : C5_private +>f2_public : (f2_arg: C5_private) => void, Symbol(f2_public, Decl(privacyGloFunc.ts, 487, 1)) +>f2_arg : C5_private, Symbol(f2_arg, Decl(privacyGloFunc.ts, 489, 26)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } function f3_private(f3_arg: C6_public) { ->f3_private : (f3_arg: C6_public) => void ->f3_arg : C6_public ->C6_public : C6_public +>f3_private : (f3_arg: C6_public) => void, Symbol(f3_private, Decl(privacyGloFunc.ts, 490, 1)) +>f3_arg : C6_public, Symbol(f3_arg, Decl(privacyGloFunc.ts, 492, 20)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } export function f4_public(f4_arg: C6_public) { ->f4_public : (f4_arg: C6_public) => void ->f4_arg : C6_public ->C6_public : C6_public +>f4_public : (f4_arg: C6_public) => void, Symbol(f4_public, Decl(privacyGloFunc.ts, 493, 1)) +>f4_arg : C6_public, Symbol(f4_arg, Decl(privacyGloFunc.ts, 495, 26)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } function f5_private() { ->f5_private : () => C6_public +>f5_private : () => C6_public, Symbol(f5_private, Decl(privacyGloFunc.ts, 496, 1)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } export function f6_public() { ->f6_public : () => C6_public +>f6_public : () => C6_public, Symbol(f6_public, Decl(privacyGloFunc.ts, 500, 1)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } function f7_private() { ->f7_private : () => C5_private +>f7_private : () => C5_private, Symbol(f7_private, Decl(privacyGloFunc.ts, 504, 1)) return new C5_private(); >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } export function f8_public() { ->f8_public : () => C5_private +>f8_public : () => C5_private, Symbol(f8_public, Decl(privacyGloFunc.ts, 508, 1)) return new C5_private(); //error >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } function f9_private(): C6_public { ->f9_private : () => C6_public ->C6_public : C6_public +>f9_private : () => C6_public, Symbol(f9_private, Decl(privacyGloFunc.ts, 512, 1)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } export function f10_public(): C6_public { ->f10_public : () => C6_public ->C6_public : C6_public +>f10_public : () => C6_public, Symbol(f10_public, Decl(privacyGloFunc.ts, 516, 1)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloFunc.ts, 360, 1)) } function f11_private(): C5_private { ->f11_private : () => C5_private ->C5_private : C5_private +>f11_private : () => C5_private, Symbol(f11_private, Decl(privacyGloFunc.ts, 520, 1)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) return new C5_private(); >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } export function f12_public(): C5_private { //error ->f12_public : () => C5_private ->C5_private : C5_private +>f12_public : () => C5_private, Symbol(f12_public, Decl(privacyGloFunc.ts, 524, 1)) +>C5_private : C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) return new C5_private(); //error >new C5_private() : C5_private ->C5_private : typeof C5_private +>C5_private : typeof C5_private, Symbol(C5_private, Decl(privacyGloFunc.ts, 355, 1)) } diff --git a/tests/baselines/reference/privacyGloGetter.types b/tests/baselines/reference/privacyGloGetter.types index 6dc32ec095b..58ed90d997d 100644 --- a/tests/baselines/reference/privacyGloGetter.types +++ b/tests/baselines/reference/privacyGloGetter.types @@ -1,174 +1,174 @@ === tests/cases/compiler/privacyGloGetter.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(privacyGloGetter.ts, 0, 0)) export class C1_public { ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 11)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyGloGetter.ts, 1, 28)) } } class C2_private { ->C2_private : C2_private +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) } export class C3_public { ->C3_public : C3_public +>C3_public : C3_public, Symbol(C3_public, Decl(privacyGloGetter.ts, 7, 5)) private get p1_private() { ->p1_private : C1_public +>p1_private : C1_public, Symbol(p1_private, Decl(privacyGloGetter.ts, 9, 28), Decl(privacyGloGetter.ts, 12, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 11)) } private set p1_private(m1_c3_p1_arg: C1_public) { ->p1_private : C1_public ->m1_c3_p1_arg : C1_public ->C1_public : C1_public +>p1_private : C1_public, Symbol(p1_private, Decl(privacyGloGetter.ts, 9, 28), Decl(privacyGloGetter.ts, 12, 9)) +>m1_c3_p1_arg : C1_public, Symbol(m1_c3_p1_arg, Decl(privacyGloGetter.ts, 14, 31)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 11)) } private get p2_private() { ->p2_private : C1_public +>p2_private : C1_public, Symbol(p2_private, Decl(privacyGloGetter.ts, 15, 9), Decl(privacyGloGetter.ts, 19, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 11)) } private set p2_private(m1_c3_p2_arg: C1_public) { ->p2_private : C1_public ->m1_c3_p2_arg : C1_public ->C1_public : C1_public +>p2_private : C1_public, Symbol(p2_private, Decl(privacyGloGetter.ts, 15, 9), Decl(privacyGloGetter.ts, 19, 9)) +>m1_c3_p2_arg : C1_public, Symbol(m1_c3_p2_arg, Decl(privacyGloGetter.ts, 21, 31)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 11)) } private get p3_private() { ->p3_private : C2_private +>p3_private : C2_private, Symbol(p3_private, Decl(privacyGloGetter.ts, 22, 9), Decl(privacyGloGetter.ts, 26, 9)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) } private set p3_private(m1_c3_p3_arg: C2_private) { ->p3_private : C2_private ->m1_c3_p3_arg : C2_private ->C2_private : C2_private +>p3_private : C2_private, Symbol(p3_private, Decl(privacyGloGetter.ts, 22, 9), Decl(privacyGloGetter.ts, 26, 9)) +>m1_c3_p3_arg : C2_private, Symbol(m1_c3_p3_arg, Decl(privacyGloGetter.ts, 28, 31)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) } public get p4_public(): C2_private { // error ->p4_public : C2_private ->C2_private : C2_private +>p4_public : C2_private, Symbol(p4_public, Decl(privacyGloGetter.ts, 29, 9), Decl(privacyGloGetter.ts, 33, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) return new C2_private(); //error >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) } public set p4_public(m1_c3_p4_arg: C2_private) { // error ->p4_public : C2_private ->m1_c3_p4_arg : C2_private ->C2_private : C2_private +>p4_public : C2_private, Symbol(p4_public, Decl(privacyGloGetter.ts, 29, 9), Decl(privacyGloGetter.ts, 33, 9)) +>m1_c3_p4_arg : C2_private, Symbol(m1_c3_p4_arg, Decl(privacyGloGetter.ts, 35, 29)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) } } class C4_private { ->C4_private : C4_private +>C4_private : C4_private, Symbol(C4_private, Decl(privacyGloGetter.ts, 37, 5)) private get p1_private() { ->p1_private : C1_public +>p1_private : C1_public, Symbol(p1_private, Decl(privacyGloGetter.ts, 39, 22), Decl(privacyGloGetter.ts, 42, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 11)) } private set p1_private(m1_c3_p1_arg: C1_public) { ->p1_private : C1_public ->m1_c3_p1_arg : C1_public ->C1_public : C1_public +>p1_private : C1_public, Symbol(p1_private, Decl(privacyGloGetter.ts, 39, 22), Decl(privacyGloGetter.ts, 42, 9)) +>m1_c3_p1_arg : C1_public, Symbol(m1_c3_p1_arg, Decl(privacyGloGetter.ts, 44, 31)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 11)) } private get p2_private() { ->p2_private : C1_public +>p2_private : C1_public, Symbol(p2_private, Decl(privacyGloGetter.ts, 45, 9), Decl(privacyGloGetter.ts, 49, 9)) return new C1_public(); >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 11)) } private set p2_private(m1_c3_p2_arg: C1_public) { ->p2_private : C1_public ->m1_c3_p2_arg : C1_public ->C1_public : C1_public +>p2_private : C1_public, Symbol(p2_private, Decl(privacyGloGetter.ts, 45, 9), Decl(privacyGloGetter.ts, 49, 9)) +>m1_c3_p2_arg : C1_public, Symbol(m1_c3_p2_arg, Decl(privacyGloGetter.ts, 51, 31)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloGetter.ts, 0, 11)) } private get p3_private() { ->p3_private : C2_private +>p3_private : C2_private, Symbol(p3_private, Decl(privacyGloGetter.ts, 52, 9), Decl(privacyGloGetter.ts, 56, 9)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) } private set p3_private(m1_c3_p3_arg: C2_private) { ->p3_private : C2_private ->m1_c3_p3_arg : C2_private ->C2_private : C2_private +>p3_private : C2_private, Symbol(p3_private, Decl(privacyGloGetter.ts, 52, 9), Decl(privacyGloGetter.ts, 56, 9)) +>m1_c3_p3_arg : C2_private, Symbol(m1_c3_p3_arg, Decl(privacyGloGetter.ts, 58, 31)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) } public get p4_public(): C2_private { ->p4_public : C2_private ->C2_private : C2_private +>p4_public : C2_private, Symbol(p4_public, Decl(privacyGloGetter.ts, 59, 9), Decl(privacyGloGetter.ts, 63, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) return new C2_private(); >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) } public set p4_public(m1_c3_p4_arg: C2_private) { ->p4_public : C2_private ->m1_c3_p4_arg : C2_private ->C2_private : C2_private +>p4_public : C2_private, Symbol(p4_public, Decl(privacyGloGetter.ts, 59, 9), Decl(privacyGloGetter.ts, 63, 9)) +>m1_c3_p4_arg : C2_private, Symbol(m1_c3_p4_arg, Decl(privacyGloGetter.ts, 65, 29)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloGetter.ts, 4, 5)) } } } class C6_public { ->C6_public : C6_public +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloGetter.ts, 68, 1)) } class C7_public { ->C7_public : C7_public +>C7_public : C7_public, Symbol(C7_public, Decl(privacyGloGetter.ts, 71, 1)) private get p1_private() { ->p1_private : C6_public +>p1_private : C6_public, Symbol(p1_private, Decl(privacyGloGetter.ts, 73, 17), Decl(privacyGloGetter.ts, 76, 5)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloGetter.ts, 68, 1)) } private set p1_private(m1_c3_p1_arg: C6_public) { ->p1_private : C6_public ->m1_c3_p1_arg : C6_public ->C6_public : C6_public +>p1_private : C6_public, Symbol(p1_private, Decl(privacyGloGetter.ts, 73, 17), Decl(privacyGloGetter.ts, 76, 5)) +>m1_c3_p1_arg : C6_public, Symbol(m1_c3_p1_arg, Decl(privacyGloGetter.ts, 78, 27)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloGetter.ts, 68, 1)) } private get p2_private() { ->p2_private : C6_public +>p2_private : C6_public, Symbol(p2_private, Decl(privacyGloGetter.ts, 79, 5), Decl(privacyGloGetter.ts, 83, 5)) return new C6_public(); >new C6_public() : C6_public ->C6_public : typeof C6_public +>C6_public : typeof C6_public, Symbol(C6_public, Decl(privacyGloGetter.ts, 68, 1)) } private set p2_private(m1_c3_p2_arg: C6_public) { ->p2_private : C6_public ->m1_c3_p2_arg : C6_public ->C6_public : C6_public +>p2_private : C6_public, Symbol(p2_private, Decl(privacyGloGetter.ts, 79, 5), Decl(privacyGloGetter.ts, 83, 5)) +>m1_c3_p2_arg : C6_public, Symbol(m1_c3_p2_arg, Decl(privacyGloGetter.ts, 85, 27)) +>C6_public : C6_public, Symbol(C6_public, Decl(privacyGloGetter.ts, 68, 1)) } } diff --git a/tests/baselines/reference/privacyGloInterface.types b/tests/baselines/reference/privacyGloInterface.types index 9c3a538c8a9..5a5af5344b5 100644 --- a/tests/baselines/reference/privacyGloInterface.types +++ b/tests/baselines/reference/privacyGloInterface.types @@ -1,278 +1,278 @@ === tests/cases/compiler/privacyGloInterface.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(privacyGloInterface.ts, 0, 0)) export class C1_public { ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyGloInterface.ts, 1, 28)) } } class C2_private { ->C2_private : C2_private +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) } export interface C3_public { ->C3_public : C3_public +>C3_public : C3_public, Symbol(C3_public, Decl(privacyGloInterface.ts, 8, 5)) (c1: C1_public); ->c1 : C1_public ->C1_public : C1_public +>c1 : C1_public, Symbol(c1, Decl(privacyGloInterface.ts, 11, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) (c1: C2_private); ->c1 : C2_private ->C2_private : C2_private +>c1 : C2_private, Symbol(c1, Decl(privacyGloInterface.ts, 12, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) (): C1_public; ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) (c2: number): C2_private; ->c2 : number ->C2_private : C2_private +>c2 : number, Symbol(c2, Decl(privacyGloInterface.ts, 14, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) new (c1: C1_public); ->c1 : C1_public ->C1_public : C1_public +>c1 : C1_public, Symbol(c1, Decl(privacyGloInterface.ts, 16, 13)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) new (c1: C2_private); ->c1 : C2_private ->C2_private : C2_private +>c1 : C2_private, Symbol(c1, Decl(privacyGloInterface.ts, 17, 13)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) new (): C1_public; ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) new (c2: number): C2_private; ->c2 : number ->C2_private : C2_private +>c2 : number, Symbol(c2, Decl(privacyGloInterface.ts, 19, 13)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) [c: number]: C1_public; ->c : number ->C1_public : C1_public +>c : number, Symbol(c, Decl(privacyGloInterface.ts, 21, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) [c: string]: C2_private; ->c : string ->C2_private : C2_private +>c : string, Symbol(c, Decl(privacyGloInterface.ts, 22, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) x: C1_public; ->x : C1_public ->C1_public : C1_public +>x : C1_public, Symbol(x, Decl(privacyGloInterface.ts, 22, 32)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) y: C2_private; ->y : C2_private ->C2_private : C2_private +>y : C2_private, Symbol(y, Decl(privacyGloInterface.ts, 24, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) a?: C1_public; ->a : C1_public ->C1_public : C1_public +>a : C1_public, Symbol(a, Decl(privacyGloInterface.ts, 25, 22)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) b?: C2_private; ->b : C2_private ->C2_private : C2_private +>b : C2_private, Symbol(b, Decl(privacyGloInterface.ts, 27, 22)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) f1(a1: C1_public); ->f1 : (a1: C1_public) => any ->a1 : C1_public ->C1_public : C1_public +>f1 : (a1: C1_public) => any, Symbol(f1, Decl(privacyGloInterface.ts, 28, 23)) +>a1 : C1_public, Symbol(a1, Decl(privacyGloInterface.ts, 30, 11)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) f2(a1: C2_private); ->f2 : (a1: C2_private) => any ->a1 : C2_private ->C2_private : C2_private +>f2 : (a1: C2_private) => any, Symbol(f2, Decl(privacyGloInterface.ts, 30, 26)) +>a1 : C2_private, Symbol(a1, Decl(privacyGloInterface.ts, 31, 11)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) f3(): C1_public; ->f3 : () => C1_public ->C1_public : C1_public +>f3 : () => C1_public, Symbol(f3, Decl(privacyGloInterface.ts, 31, 27)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) f4(): C2_private; ->f4 : () => C2_private ->C2_private : C2_private +>f4 : () => C2_private, Symbol(f4, Decl(privacyGloInterface.ts, 32, 24)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) } interface C4_private { ->C4_private : C4_private +>C4_private : C4_private, Symbol(C4_private, Decl(privacyGloInterface.ts, 35, 5)) (c1: C1_public); ->c1 : C1_public ->C1_public : C1_public +>c1 : C1_public, Symbol(c1, Decl(privacyGloInterface.ts, 38, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) (c1: C2_private); ->c1 : C2_private ->C2_private : C2_private +>c1 : C2_private, Symbol(c1, Decl(privacyGloInterface.ts, 39, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) (): C1_public; ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) (c2: number): C2_private; ->c2 : number ->C2_private : C2_private +>c2 : number, Symbol(c2, Decl(privacyGloInterface.ts, 41, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) new (c1: C1_public); ->c1 : C1_public ->C1_public : C1_public +>c1 : C1_public, Symbol(c1, Decl(privacyGloInterface.ts, 43, 13)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) new (c1: C2_private); ->c1 : C2_private ->C2_private : C2_private +>c1 : C2_private, Symbol(c1, Decl(privacyGloInterface.ts, 44, 13)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) new (): C1_public; ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) new (c2: number): C2_private; ->c2 : number ->C2_private : C2_private +>c2 : number, Symbol(c2, Decl(privacyGloInterface.ts, 46, 13)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) [c: number]: C1_public; ->c : number ->C1_public : C1_public +>c : number, Symbol(c, Decl(privacyGloInterface.ts, 48, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) [c: string]: C2_private; ->c : string ->C2_private : C2_private +>c : string, Symbol(c, Decl(privacyGloInterface.ts, 49, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) x: C1_public; ->x : C1_public ->C1_public : C1_public +>x : C1_public, Symbol(x, Decl(privacyGloInterface.ts, 49, 32)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) y: C2_private; ->y : C2_private ->C2_private : C2_private +>y : C2_private, Symbol(y, Decl(privacyGloInterface.ts, 51, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) a?: C1_public; ->a : C1_public ->C1_public : C1_public +>a : C1_public, Symbol(a, Decl(privacyGloInterface.ts, 52, 22)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) b?: C2_private; ->b : C2_private ->C2_private : C2_private +>b : C2_private, Symbol(b, Decl(privacyGloInterface.ts, 54, 22)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) f1(a1: C1_public); ->f1 : (a1: C1_public) => any ->a1 : C1_public ->C1_public : C1_public +>f1 : (a1: C1_public) => any, Symbol(f1, Decl(privacyGloInterface.ts, 55, 23)) +>a1 : C1_public, Symbol(a1, Decl(privacyGloInterface.ts, 57, 11)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) f2(a1: C2_private); ->f2 : (a1: C2_private) => any ->a1 : C2_private ->C2_private : C2_private +>f2 : (a1: C2_private) => any, Symbol(f2, Decl(privacyGloInterface.ts, 57, 26)) +>a1 : C2_private, Symbol(a1, Decl(privacyGloInterface.ts, 58, 11)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) f3(): C1_public; ->f3 : () => C1_public ->C1_public : C1_public +>f3 : () => C1_public, Symbol(f3, Decl(privacyGloInterface.ts, 58, 27)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloInterface.ts, 0, 11)) f4(): C2_private; ->f4 : () => C2_private ->C2_private : C2_private +>f4 : () => C2_private, Symbol(f4, Decl(privacyGloInterface.ts, 59, 24)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloInterface.ts, 4, 5)) } } class C5_public { ->C5_public : C5_public +>C5_public : C5_public, Symbol(C5_public, Decl(privacyGloInterface.ts, 63, 1)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyGloInterface.ts, 65, 17)) } } interface C7_public { ->C7_public : C7_public +>C7_public : C7_public, Symbol(C7_public, Decl(privacyGloInterface.ts, 68, 1)) (c1: C5_public); ->c1 : C5_public ->C5_public : C5_public +>c1 : C5_public, Symbol(c1, Decl(privacyGloInterface.ts, 72, 5)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyGloInterface.ts, 63, 1)) (): C5_public; ->C5_public : C5_public +>C5_public : C5_public, Symbol(C5_public, Decl(privacyGloInterface.ts, 63, 1)) new (c1: C5_public); ->c1 : C5_public ->C5_public : C5_public +>c1 : C5_public, Symbol(c1, Decl(privacyGloInterface.ts, 75, 9)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyGloInterface.ts, 63, 1)) new (): C5_public; ->C5_public : C5_public +>C5_public : C5_public, Symbol(C5_public, Decl(privacyGloInterface.ts, 63, 1)) [c: number]: C5_public; ->c : number ->C5_public : C5_public +>c : number, Symbol(c, Decl(privacyGloInterface.ts, 78, 5)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyGloInterface.ts, 63, 1)) x: C5_public; ->x : C5_public ->C5_public : C5_public +>x : C5_public, Symbol(x, Decl(privacyGloInterface.ts, 78, 27)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyGloInterface.ts, 63, 1)) a?: C5_public; ->a : C5_public ->C5_public : C5_public +>a : C5_public, Symbol(a, Decl(privacyGloInterface.ts, 80, 17)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyGloInterface.ts, 63, 1)) f1(a1: C5_public); ->f1 : (a1: C5_public) => any ->a1 : C5_public ->C5_public : C5_public +>f1 : (a1: C5_public) => any, Symbol(f1, Decl(privacyGloInterface.ts, 82, 18)) +>a1 : C5_public, Symbol(a1, Decl(privacyGloInterface.ts, 84, 7)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyGloInterface.ts, 63, 1)) f3(): C5_public; ->f3 : () => C5_public ->C5_public : C5_public +>f3 : () => C5_public, Symbol(f3, Decl(privacyGloInterface.ts, 84, 22)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyGloInterface.ts, 63, 1)) } module m3 { ->m3 : unknown +>m3 : any, Symbol(m3, Decl(privacyGloInterface.ts, 86, 1)) export interface m3_i_public { ->m3_i_public : m3_i_public +>m3_i_public : m3_i_public, Symbol(m3_i_public, Decl(privacyGloInterface.ts, 88, 11)) f1(): number; ->f1 : () => number +>f1 : () => number, Symbol(f1, Decl(privacyGloInterface.ts, 89, 34)) } interface m3_i_private { ->m3_i_private : m3_i_private +>m3_i_private : m3_i_private, Symbol(m3_i_private, Decl(privacyGloInterface.ts, 91, 5)) f2(): string; ->f2 : () => string +>f2 : () => string, Symbol(f2, Decl(privacyGloInterface.ts, 93, 28)) } interface m3_C1_private extends m3_i_public { ->m3_C1_private : m3_C1_private ->m3_i_public : m3_i_public +>m3_C1_private : m3_C1_private, Symbol(m3_C1_private, Decl(privacyGloInterface.ts, 95, 5)) +>m3_i_public : m3_i_public, Symbol(m3_i_public, Decl(privacyGloInterface.ts, 88, 11)) } interface m3_C2_private extends m3_i_private { ->m3_C2_private : m3_C2_private ->m3_i_private : m3_i_private +>m3_C2_private : m3_C2_private, Symbol(m3_C2_private, Decl(privacyGloInterface.ts, 98, 5)) +>m3_i_private : m3_i_private, Symbol(m3_i_private, Decl(privacyGloInterface.ts, 91, 5)) } export interface m3_C3_public extends m3_i_public { ->m3_C3_public : m3_C3_public ->m3_i_public : m3_i_public +>m3_C3_public : m3_C3_public, Symbol(m3_C3_public, Decl(privacyGloInterface.ts, 100, 5)) +>m3_i_public : m3_i_public, Symbol(m3_i_public, Decl(privacyGloInterface.ts, 88, 11)) } export interface m3_C4_public extends m3_i_private { ->m3_C4_public : m3_C4_public ->m3_i_private : m3_i_private +>m3_C4_public : m3_C4_public, Symbol(m3_C4_public, Decl(privacyGloInterface.ts, 102, 5)) +>m3_i_private : m3_i_private, Symbol(m3_i_private, Decl(privacyGloInterface.ts, 91, 5)) } interface m3_C5_private extends m3_i_private, m3_i_public { ->m3_C5_private : m3_C5_private ->m3_i_private : m3_i_private ->m3_i_public : m3_i_public +>m3_C5_private : m3_C5_private, Symbol(m3_C5_private, Decl(privacyGloInterface.ts, 104, 5)) +>m3_i_private : m3_i_private, Symbol(m3_i_private, Decl(privacyGloInterface.ts, 91, 5)) +>m3_i_public : m3_i_public, Symbol(m3_i_public, Decl(privacyGloInterface.ts, 88, 11)) } export interface m3_C6_public extends m3_i_private, m3_i_public { ->m3_C6_public : m3_C6_public ->m3_i_private : m3_i_private ->m3_i_public : m3_i_public +>m3_C6_public : m3_C6_public, Symbol(m3_C6_public, Decl(privacyGloInterface.ts, 107, 5)) +>m3_i_private : m3_i_private, Symbol(m3_i_private, Decl(privacyGloInterface.ts, 91, 5)) +>m3_i_public : m3_i_public, Symbol(m3_i_public, Decl(privacyGloInterface.ts, 88, 11)) } } interface glo_i_public { ->glo_i_public : glo_i_public +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyGloInterface.ts, 110, 1)) f1(): number; ->f1 : () => number +>f1 : () => number, Symbol(f1, Decl(privacyGloInterface.ts, 112, 24)) } interface glo_C3_public extends glo_i_public { ->glo_C3_public : glo_C3_public ->glo_i_public : glo_i_public +>glo_C3_public : glo_C3_public, Symbol(glo_C3_public, Decl(privacyGloInterface.ts, 114, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyGloInterface.ts, 110, 1)) } diff --git a/tests/baselines/reference/privacyGloVar.types b/tests/baselines/reference/privacyGloVar.types index 173d6326da5..ceded92bf36 100644 --- a/tests/baselines/reference/privacyGloVar.types +++ b/tests/baselines/reference/privacyGloVar.types @@ -1,263 +1,263 @@ === tests/cases/compiler/privacyGloVar.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(privacyGloVar.ts, 0, 0)) export class C1_public { ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyGloVar.ts, 1, 28)) } } class C2_private { ->C2_private : C2_private +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) } export class C3_public { ->C3_public : C3_public +>C3_public : C3_public, Symbol(C3_public, Decl(privacyGloVar.ts, 7, 5)) private C3_v1_private: C1_public; ->C3_v1_private : C1_public ->C1_public : C1_public +>C3_v1_private : C1_public, Symbol(C3_v1_private, Decl(privacyGloVar.ts, 9, 28)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) public C3_v2_public: C1_public; ->C3_v2_public : C1_public ->C1_public : C1_public +>C3_v2_public : C1_public, Symbol(C3_v2_public, Decl(privacyGloVar.ts, 10, 41)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) private C3_v3_private: C2_private; ->C3_v3_private : C2_private ->C2_private : C2_private +>C3_v3_private : C2_private, Symbol(C3_v3_private, Decl(privacyGloVar.ts, 11, 39)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) public C3_v4_public: C2_private; // error ->C3_v4_public : C2_private ->C2_private : C2_private +>C3_v4_public : C2_private, Symbol(C3_v4_public, Decl(privacyGloVar.ts, 12, 42)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) private C3_v11_private = new C1_public(); ->C3_v11_private : C1_public +>C3_v11_private : C1_public, Symbol(C3_v11_private, Decl(privacyGloVar.ts, 13, 40)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) public C3_v12_public = new C1_public(); ->C3_v12_public : C1_public +>C3_v12_public : C1_public, Symbol(C3_v12_public, Decl(privacyGloVar.ts, 15, 49)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) private C3_v13_private = new C2_private(); ->C3_v13_private : C2_private +>C3_v13_private : C2_private, Symbol(C3_v13_private, Decl(privacyGloVar.ts, 16, 47)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) public C3_v14_public = new C2_private(); // error ->C3_v14_public : C2_private +>C3_v14_public : C2_private, Symbol(C3_v14_public, Decl(privacyGloVar.ts, 17, 50)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) private C3_v21_private: C1_public = new C1_public(); ->C3_v21_private : C1_public ->C1_public : C1_public +>C3_v21_private : C1_public, Symbol(C3_v21_private, Decl(privacyGloVar.ts, 18, 48)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) public C3_v22_public: C1_public = new C1_public(); ->C3_v22_public : C1_public ->C1_public : C1_public +>C3_v22_public : C1_public, Symbol(C3_v22_public, Decl(privacyGloVar.ts, 20, 60)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) private C3_v23_private: C2_private = new C2_private(); ->C3_v23_private : C2_private ->C2_private : C2_private +>C3_v23_private : C2_private, Symbol(C3_v23_private, Decl(privacyGloVar.ts, 21, 58)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) public C3_v24_public: C2_private = new C2_private(); // error ->C3_v24_public : C2_private ->C2_private : C2_private +>C3_v24_public : C2_private, Symbol(C3_v24_public, Decl(privacyGloVar.ts, 22, 62)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) } class C4_public { ->C4_public : C4_public +>C4_public : C4_public, Symbol(C4_public, Decl(privacyGloVar.ts, 24, 5)) private C4_v1_private: C1_public; ->C4_v1_private : C1_public ->C1_public : C1_public +>C4_v1_private : C1_public, Symbol(C4_v1_private, Decl(privacyGloVar.ts, 26, 21)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) public C4_v2_public: C1_public; ->C4_v2_public : C1_public ->C1_public : C1_public +>C4_v2_public : C1_public, Symbol(C4_v2_public, Decl(privacyGloVar.ts, 27, 41)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) private C4_v3_private: C2_private; ->C4_v3_private : C2_private ->C2_private : C2_private +>C4_v3_private : C2_private, Symbol(C4_v3_private, Decl(privacyGloVar.ts, 28, 39)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) public C4_v4_public: C2_private; ->C4_v4_public : C2_private ->C2_private : C2_private +>C4_v4_public : C2_private, Symbol(C4_v4_public, Decl(privacyGloVar.ts, 29, 42)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) private C4_v11_private = new C1_public(); ->C4_v11_private : C1_public +>C4_v11_private : C1_public, Symbol(C4_v11_private, Decl(privacyGloVar.ts, 30, 40)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) public C4_v12_public = new C1_public(); ->C4_v12_public : C1_public +>C4_v12_public : C1_public, Symbol(C4_v12_public, Decl(privacyGloVar.ts, 32, 49)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) private C4_v13_private = new C2_private(); ->C4_v13_private : C2_private +>C4_v13_private : C2_private, Symbol(C4_v13_private, Decl(privacyGloVar.ts, 33, 47)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) public C4_v14_public = new C2_private(); ->C4_v14_public : C2_private +>C4_v14_public : C2_private, Symbol(C4_v14_public, Decl(privacyGloVar.ts, 34, 50)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) private C4_v21_private: C1_public = new C1_public(); ->C4_v21_private : C1_public ->C1_public : C1_public +>C4_v21_private : C1_public, Symbol(C4_v21_private, Decl(privacyGloVar.ts, 35, 48)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) public C4_v22_public: C1_public = new C1_public(); ->C4_v22_public : C1_public ->C1_public : C1_public +>C4_v22_public : C1_public, Symbol(C4_v22_public, Decl(privacyGloVar.ts, 37, 60)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) private C4_v23_private: C2_private = new C2_private(); ->C4_v23_private : C2_private ->C2_private : C2_private +>C4_v23_private : C2_private, Symbol(C4_v23_private, Decl(privacyGloVar.ts, 38, 58)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) public C4_v24_public: C2_private = new C2_private(); ->C4_v24_public : C2_private ->C2_private : C2_private +>C4_v24_public : C2_private, Symbol(C4_v24_public, Decl(privacyGloVar.ts, 39, 62)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) } var m1_v1_private: C1_public; ->m1_v1_private : C1_public ->C1_public : C1_public +>m1_v1_private : C1_public, Symbol(m1_v1_private, Decl(privacyGloVar.ts, 43, 7)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) export var m1_v2_public: C1_public; ->m1_v2_public : C1_public ->C1_public : C1_public +>m1_v2_public : C1_public, Symbol(m1_v2_public, Decl(privacyGloVar.ts, 44, 14)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) var m1_v3_private: C2_private; ->m1_v3_private : C2_private ->C2_private : C2_private +>m1_v3_private : C2_private, Symbol(m1_v3_private, Decl(privacyGloVar.ts, 45, 7)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) export var m1_v4_public: C2_private; // error ->m1_v4_public : C2_private ->C2_private : C2_private +>m1_v4_public : C2_private, Symbol(m1_v4_public, Decl(privacyGloVar.ts, 46, 14)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) var m1_v11_private = new C1_public(); ->m1_v11_private : C1_public +>m1_v11_private : C1_public, Symbol(m1_v11_private, Decl(privacyGloVar.ts, 48, 7)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) export var m1_v12_public = new C1_public(); ->m1_v12_public : C1_public +>m1_v12_public : C1_public, Symbol(m1_v12_public, Decl(privacyGloVar.ts, 49, 14)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) var m1_v13_private = new C2_private(); ->m1_v13_private : C2_private +>m1_v13_private : C2_private, Symbol(m1_v13_private, Decl(privacyGloVar.ts, 50, 7)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) export var m1_v14_public = new C2_private(); //error ->m1_v14_public : C2_private +>m1_v14_public : C2_private, Symbol(m1_v14_public, Decl(privacyGloVar.ts, 51, 14)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) var m1_v21_private: C1_public = new C1_public(); ->m1_v21_private : C1_public ->C1_public : C1_public +>m1_v21_private : C1_public, Symbol(m1_v21_private, Decl(privacyGloVar.ts, 53, 7)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) export var m1_v22_public: C1_public = new C1_public(); ->m1_v22_public : C1_public ->C1_public : C1_public +>m1_v22_public : C1_public, Symbol(m1_v22_public, Decl(privacyGloVar.ts, 54, 14)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyGloVar.ts, 0, 11)) var m1_v23_private: C2_private = new C2_private(); ->m1_v23_private : C2_private ->C2_private : C2_private +>m1_v23_private : C2_private, Symbol(m1_v23_private, Decl(privacyGloVar.ts, 55, 7)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) export var m1_v24_public: C2_private = new C2_private(); // error ->m1_v24_public : C2_private ->C2_private : C2_private +>m1_v24_public : C2_private, Symbol(m1_v24_public, Decl(privacyGloVar.ts, 56, 14)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyGloVar.ts, 4, 5)) } class glo_C1_public { ->glo_C1_public : glo_C1_public +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyGloVar.ts, 59, 21)) } } class glo_C3_public { ->glo_C3_public : glo_C3_public +>glo_C3_public : glo_C3_public, Symbol(glo_C3_public, Decl(privacyGloVar.ts, 62, 1)) private glo_C3_v1_private: glo_C1_public; ->glo_C3_v1_private : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_C3_v1_private : glo_C1_public, Symbol(glo_C3_v1_private, Decl(privacyGloVar.ts, 64, 21)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) public glo_C3_v2_public: glo_C1_public; ->glo_C3_v2_public : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_C3_v2_public : glo_C1_public, Symbol(glo_C3_v2_public, Decl(privacyGloVar.ts, 65, 45)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) private glo_C3_v11_private = new glo_C1_public(); ->glo_C3_v11_private : glo_C1_public +>glo_C3_v11_private : glo_C1_public, Symbol(glo_C3_v11_private, Decl(privacyGloVar.ts, 66, 43)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) public glo_C3_v12_public = new glo_C1_public(); ->glo_C3_v12_public : glo_C1_public +>glo_C3_v12_public : glo_C1_public, Symbol(glo_C3_v12_public, Decl(privacyGloVar.ts, 68, 53)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) private glo_C3_v21_private: glo_C1_public = new glo_C1_public(); ->glo_C3_v21_private : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_C3_v21_private : glo_C1_public, Symbol(glo_C3_v21_private, Decl(privacyGloVar.ts, 69, 51)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) public glo_C3_v22_public: glo_C1_public = new glo_C1_public(); ->glo_C3_v22_public : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_C3_v22_public : glo_C1_public, Symbol(glo_C3_v22_public, Decl(privacyGloVar.ts, 71, 68)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) } var glo_v2_public: glo_C1_public; ->glo_v2_public : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_v2_public : glo_C1_public, Symbol(glo_v2_public, Decl(privacyGloVar.ts, 76, 3)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) var glo_v12_public = new glo_C1_public(); ->glo_v12_public : glo_C1_public +>glo_v12_public : glo_C1_public, Symbol(glo_v12_public, Decl(privacyGloVar.ts, 77, 3)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) var glo_v22_public: glo_C1_public = new glo_C1_public(); ->glo_v22_public : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_v22_public : glo_C1_public, Symbol(glo_v22_public, Decl(privacyGloVar.ts, 78, 3)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyGloVar.ts, 57, 1)) diff --git a/tests/baselines/reference/privacyInterface.types b/tests/baselines/reference/privacyInterface.types index a96b8de9d81..db1493a0af1 100644 --- a/tests/baselines/reference/privacyInterface.types +++ b/tests/baselines/reference/privacyInterface.types @@ -1,645 +1,645 @@ === tests/cases/compiler/privacyInterface.ts === export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(privacyInterface.ts, 0, 0)) export class C1_public { ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyInterface.ts, 1, 28)) } } class C2_private { ->C2_private : C2_private +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) } export interface C3_public { ->C3_public : C3_public +>C3_public : C3_public, Symbol(C3_public, Decl(privacyInterface.ts, 8, 5)) (c1: C1_public); ->c1 : C1_public ->C1_public : C1_public +>c1 : C1_public, Symbol(c1, Decl(privacyInterface.ts, 11, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) (c1: C2_private); ->c1 : C2_private ->C2_private : C2_private +>c1 : C2_private, Symbol(c1, Decl(privacyInterface.ts, 12, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) (): C1_public; ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) (c2: number): C2_private; ->c2 : number ->C2_private : C2_private +>c2 : number, Symbol(c2, Decl(privacyInterface.ts, 14, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) new (c1: C1_public); ->c1 : C1_public ->C1_public : C1_public +>c1 : C1_public, Symbol(c1, Decl(privacyInterface.ts, 16, 13)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) new (c1: C2_private); ->c1 : C2_private ->C2_private : C2_private +>c1 : C2_private, Symbol(c1, Decl(privacyInterface.ts, 17, 13)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) new (): C1_public; ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) new (c2: number): C2_private; ->c2 : number ->C2_private : C2_private +>c2 : number, Symbol(c2, Decl(privacyInterface.ts, 19, 13)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) [c: number]: C1_public; ->c : number ->C1_public : C1_public +>c : number, Symbol(c, Decl(privacyInterface.ts, 21, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) [c: string]: C2_private; ->c : string ->C2_private : C2_private +>c : string, Symbol(c, Decl(privacyInterface.ts, 22, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) x: C1_public; ->x : C1_public ->C1_public : C1_public +>x : C1_public, Symbol(x, Decl(privacyInterface.ts, 22, 32)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) y: C2_private; ->y : C2_private ->C2_private : C2_private +>y : C2_private, Symbol(y, Decl(privacyInterface.ts, 24, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) a?: C1_public; ->a : C1_public ->C1_public : C1_public +>a : C1_public, Symbol(a, Decl(privacyInterface.ts, 25, 22)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) b?: C2_private; ->b : C2_private ->C2_private : C2_private +>b : C2_private, Symbol(b, Decl(privacyInterface.ts, 27, 22)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) f1(a1: C1_public); ->f1 : (a1: C1_public) => any ->a1 : C1_public ->C1_public : C1_public +>f1 : (a1: C1_public) => any, Symbol(f1, Decl(privacyInterface.ts, 28, 23)) +>a1 : C1_public, Symbol(a1, Decl(privacyInterface.ts, 30, 11)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) f2(a1: C2_private); ->f2 : (a1: C2_private) => any ->a1 : C2_private ->C2_private : C2_private +>f2 : (a1: C2_private) => any, Symbol(f2, Decl(privacyInterface.ts, 30, 26)) +>a1 : C2_private, Symbol(a1, Decl(privacyInterface.ts, 31, 11)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) f3(): C1_public; ->f3 : () => C1_public ->C1_public : C1_public +>f3 : () => C1_public, Symbol(f3, Decl(privacyInterface.ts, 31, 27)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) f4(): C2_private; ->f4 : () => C2_private ->C2_private : C2_private +>f4 : () => C2_private, Symbol(f4, Decl(privacyInterface.ts, 32, 24)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) } interface C4_private { ->C4_private : C4_private +>C4_private : C4_private, Symbol(C4_private, Decl(privacyInterface.ts, 35, 5)) (c1: C1_public); ->c1 : C1_public ->C1_public : C1_public +>c1 : C1_public, Symbol(c1, Decl(privacyInterface.ts, 38, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) (c1: C2_private); ->c1 : C2_private ->C2_private : C2_private +>c1 : C2_private, Symbol(c1, Decl(privacyInterface.ts, 39, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) (): C1_public; ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) (c2: number): C2_private; ->c2 : number ->C2_private : C2_private +>c2 : number, Symbol(c2, Decl(privacyInterface.ts, 41, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) new (c1: C1_public); ->c1 : C1_public ->C1_public : C1_public +>c1 : C1_public, Symbol(c1, Decl(privacyInterface.ts, 43, 13)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) new (c1: C2_private); ->c1 : C2_private ->C2_private : C2_private +>c1 : C2_private, Symbol(c1, Decl(privacyInterface.ts, 44, 13)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) new (): C1_public; ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) new (c2: number): C2_private; ->c2 : number ->C2_private : C2_private +>c2 : number, Symbol(c2, Decl(privacyInterface.ts, 46, 13)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) [c: number]: C1_public; ->c : number ->C1_public : C1_public +>c : number, Symbol(c, Decl(privacyInterface.ts, 48, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) [c: string]: C2_private; ->c : string ->C2_private : C2_private +>c : string, Symbol(c, Decl(privacyInterface.ts, 49, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) x: C1_public; ->x : C1_public ->C1_public : C1_public +>x : C1_public, Symbol(x, Decl(privacyInterface.ts, 49, 32)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) y: C2_private; ->y : C2_private ->C2_private : C2_private +>y : C2_private, Symbol(y, Decl(privacyInterface.ts, 51, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) a?: C1_public; ->a : C1_public ->C1_public : C1_public +>a : C1_public, Symbol(a, Decl(privacyInterface.ts, 52, 22)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) b?: C2_private; ->b : C2_private ->C2_private : C2_private +>b : C2_private, Symbol(b, Decl(privacyInterface.ts, 54, 22)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) f1(a1: C1_public); ->f1 : (a1: C1_public) => any ->a1 : C1_public ->C1_public : C1_public +>f1 : (a1: C1_public) => any, Symbol(f1, Decl(privacyInterface.ts, 55, 23)) +>a1 : C1_public, Symbol(a1, Decl(privacyInterface.ts, 57, 11)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) f2(a1: C2_private); ->f2 : (a1: C2_private) => any ->a1 : C2_private ->C2_private : C2_private +>f2 : (a1: C2_private) => any, Symbol(f2, Decl(privacyInterface.ts, 57, 26)) +>a1 : C2_private, Symbol(a1, Decl(privacyInterface.ts, 58, 11)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) f3(): C1_public; ->f3 : () => C1_public ->C1_public : C1_public +>f3 : () => C1_public, Symbol(f3, Decl(privacyInterface.ts, 58, 27)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 0, 18)) f4(): C2_private; ->f4 : () => C2_private ->C2_private : C2_private +>f4 : () => C2_private, Symbol(f4, Decl(privacyInterface.ts, 59, 24)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 4, 5)) } } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(privacyInterface.ts, 63, 1)) export class C1_public { ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyInterface.ts, 67, 28)) } } class C2_private { ->C2_private : C2_private +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) } export interface C3_public { ->C3_public : C3_public +>C3_public : C3_public, Symbol(C3_public, Decl(privacyInterface.ts, 74, 5)) (c1: C1_public); ->c1 : C1_public ->C1_public : C1_public +>c1 : C1_public, Symbol(c1, Decl(privacyInterface.ts, 77, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) (c1: C2_private); ->c1 : C2_private ->C2_private : C2_private +>c1 : C2_private, Symbol(c1, Decl(privacyInterface.ts, 78, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) (): C1_public; ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) (c2: number): C2_private; ->c2 : number ->C2_private : C2_private +>c2 : number, Symbol(c2, Decl(privacyInterface.ts, 80, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) new (c1: C1_public); ->c1 : C1_public ->C1_public : C1_public +>c1 : C1_public, Symbol(c1, Decl(privacyInterface.ts, 82, 13)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) new (c1: C2_private); ->c1 : C2_private ->C2_private : C2_private +>c1 : C2_private, Symbol(c1, Decl(privacyInterface.ts, 83, 13)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) new (): C1_public; ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) new (c2: number): C2_private; ->c2 : number ->C2_private : C2_private +>c2 : number, Symbol(c2, Decl(privacyInterface.ts, 85, 13)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) [c: number]: C1_public; ->c : number ->C1_public : C1_public +>c : number, Symbol(c, Decl(privacyInterface.ts, 87, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) [c: string]: C2_private; ->c : string ->C2_private : C2_private +>c : string, Symbol(c, Decl(privacyInterface.ts, 88, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) x: C1_public; ->x : C1_public ->C1_public : C1_public +>x : C1_public, Symbol(x, Decl(privacyInterface.ts, 88, 32)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) y: C2_private; ->y : C2_private ->C2_private : C2_private +>y : C2_private, Symbol(y, Decl(privacyInterface.ts, 90, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) a?: C1_public; ->a : C1_public ->C1_public : C1_public +>a : C1_public, Symbol(a, Decl(privacyInterface.ts, 91, 22)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) b?: C2_private; ->b : C2_private ->C2_private : C2_private +>b : C2_private, Symbol(b, Decl(privacyInterface.ts, 93, 22)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) f1(a1: C1_public); ->f1 : (a1: C1_public) => any ->a1 : C1_public ->C1_public : C1_public +>f1 : (a1: C1_public) => any, Symbol(f1, Decl(privacyInterface.ts, 94, 23)) +>a1 : C1_public, Symbol(a1, Decl(privacyInterface.ts, 96, 11)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) f2(a1: C2_private); ->f2 : (a1: C2_private) => any ->a1 : C2_private ->C2_private : C2_private +>f2 : (a1: C2_private) => any, Symbol(f2, Decl(privacyInterface.ts, 96, 26)) +>a1 : C2_private, Symbol(a1, Decl(privacyInterface.ts, 97, 11)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) f3(): C1_public; ->f3 : () => C1_public ->C1_public : C1_public +>f3 : () => C1_public, Symbol(f3, Decl(privacyInterface.ts, 97, 27)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) f4(): C2_private; ->f4 : () => C2_private ->C2_private : C2_private +>f4 : () => C2_private, Symbol(f4, Decl(privacyInterface.ts, 98, 24)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) } interface C4_private { ->C4_private : C4_private +>C4_private : C4_private, Symbol(C4_private, Decl(privacyInterface.ts, 101, 5)) (c1: C1_public); ->c1 : C1_public ->C1_public : C1_public +>c1 : C1_public, Symbol(c1, Decl(privacyInterface.ts, 104, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) (c1: C2_private); ->c1 : C2_private ->C2_private : C2_private +>c1 : C2_private, Symbol(c1, Decl(privacyInterface.ts, 105, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) (): C1_public; ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) (c2: number): C2_private; ->c2 : number ->C2_private : C2_private +>c2 : number, Symbol(c2, Decl(privacyInterface.ts, 107, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) new (c1: C1_public); ->c1 : C1_public ->C1_public : C1_public +>c1 : C1_public, Symbol(c1, Decl(privacyInterface.ts, 109, 13)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) new (c1: C2_private); ->c1 : C2_private ->C2_private : C2_private +>c1 : C2_private, Symbol(c1, Decl(privacyInterface.ts, 110, 13)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) new (): C1_public; ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) new (c2: number): C2_private; ->c2 : number ->C2_private : C2_private +>c2 : number, Symbol(c2, Decl(privacyInterface.ts, 112, 13)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) [c: number]: C1_public; ->c : number ->C1_public : C1_public +>c : number, Symbol(c, Decl(privacyInterface.ts, 114, 9)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) [c: string]: C2_private; ->c : string ->C2_private : C2_private +>c : string, Symbol(c, Decl(privacyInterface.ts, 115, 9)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) x: C1_public; ->x : C1_public ->C1_public : C1_public +>x : C1_public, Symbol(x, Decl(privacyInterface.ts, 115, 32)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) y: C2_private; ->y : C2_private ->C2_private : C2_private +>y : C2_private, Symbol(y, Decl(privacyInterface.ts, 117, 21)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) a?: C1_public; ->a : C1_public ->C1_public : C1_public +>a : C1_public, Symbol(a, Decl(privacyInterface.ts, 118, 22)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) b?: C2_private; ->b : C2_private ->C2_private : C2_private +>b : C2_private, Symbol(b, Decl(privacyInterface.ts, 120, 22)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) f1(a1: C1_public); ->f1 : (a1: C1_public) => any ->a1 : C1_public ->C1_public : C1_public +>f1 : (a1: C1_public) => any, Symbol(f1, Decl(privacyInterface.ts, 121, 23)) +>a1 : C1_public, Symbol(a1, Decl(privacyInterface.ts, 123, 11)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) f2(a1: C2_private); ->f2 : (a1: C2_private) => any ->a1 : C2_private ->C2_private : C2_private +>f2 : (a1: C2_private) => any, Symbol(f2, Decl(privacyInterface.ts, 123, 26)) +>a1 : C2_private, Symbol(a1, Decl(privacyInterface.ts, 124, 11)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) f3(): C1_public; ->f3 : () => C1_public ->C1_public : C1_public +>f3 : () => C1_public, Symbol(f3, Decl(privacyInterface.ts, 124, 27)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyInterface.ts, 66, 11)) f4(): C2_private; ->f4 : () => C2_private ->C2_private : C2_private +>f4 : () => C2_private, Symbol(f4, Decl(privacyInterface.ts, 125, 24)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyInterface.ts, 70, 5)) } } export class C5_public { ->C5_public : C5_public +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyInterface.ts, 131, 24)) } } class C6_private { ->C6_private : C6_private +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) } export interface C7_public { ->C7_public : C7_public +>C7_public : C7_public, Symbol(C7_public, Decl(privacyInterface.ts, 138, 1)) (c1: C5_public); ->c1 : C5_public ->C5_public : C5_public +>c1 : C5_public, Symbol(c1, Decl(privacyInterface.ts, 141, 5)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) (c1: C6_private); ->c1 : C6_private ->C6_private : C6_private +>c1 : C6_private, Symbol(c1, Decl(privacyInterface.ts, 142, 5)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) (): C5_public; ->C5_public : C5_public +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) (c2: number): C6_private; ->c2 : number ->C6_private : C6_private +>c2 : number, Symbol(c2, Decl(privacyInterface.ts, 144, 5)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) new (c1: C5_public); ->c1 : C5_public ->C5_public : C5_public +>c1 : C5_public, Symbol(c1, Decl(privacyInterface.ts, 146, 9)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) new (c1: C6_private); ->c1 : C6_private ->C6_private : C6_private +>c1 : C6_private, Symbol(c1, Decl(privacyInterface.ts, 147, 9)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) new (): C5_public; ->C5_public : C5_public +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) new (c2: number): C6_private; ->c2 : number ->C6_private : C6_private +>c2 : number, Symbol(c2, Decl(privacyInterface.ts, 149, 9)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) [c: number]: C5_public; ->c : number ->C5_public : C5_public +>c : number, Symbol(c, Decl(privacyInterface.ts, 151, 5)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) [c: string]: C6_private; ->c : string ->C6_private : C6_private +>c : string, Symbol(c, Decl(privacyInterface.ts, 152, 5)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) x: C5_public; ->x : C5_public ->C5_public : C5_public +>x : C5_public, Symbol(x, Decl(privacyInterface.ts, 152, 28)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) y: C6_private; ->y : C6_private ->C6_private : C6_private +>y : C6_private, Symbol(y, Decl(privacyInterface.ts, 154, 17)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) a?: C5_public; ->a : C5_public ->C5_public : C5_public +>a : C5_public, Symbol(a, Decl(privacyInterface.ts, 155, 18)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) b?: C6_private; ->b : C6_private ->C6_private : C6_private +>b : C6_private, Symbol(b, Decl(privacyInterface.ts, 157, 18)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) f1(a1: C5_public); ->f1 : (a1: C5_public) => any ->a1 : C5_public ->C5_public : C5_public +>f1 : (a1: C5_public) => any, Symbol(f1, Decl(privacyInterface.ts, 158, 19)) +>a1 : C5_public, Symbol(a1, Decl(privacyInterface.ts, 160, 7)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) f2(a1: C6_private); ->f2 : (a1: C6_private) => any ->a1 : C6_private ->C6_private : C6_private +>f2 : (a1: C6_private) => any, Symbol(f2, Decl(privacyInterface.ts, 160, 22)) +>a1 : C6_private, Symbol(a1, Decl(privacyInterface.ts, 161, 7)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) f3(): C5_public; ->f3 : () => C5_public ->C5_public : C5_public +>f3 : () => C5_public, Symbol(f3, Decl(privacyInterface.ts, 161, 23)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) f4(): C6_private; ->f4 : () => C6_private ->C6_private : C6_private +>f4 : () => C6_private, Symbol(f4, Decl(privacyInterface.ts, 162, 20)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) } interface C8_private { ->C8_private : C8_private +>C8_private : C8_private, Symbol(C8_private, Decl(privacyInterface.ts, 165, 1)) (c1: C5_public); ->c1 : C5_public ->C5_public : C5_public +>c1 : C5_public, Symbol(c1, Decl(privacyInterface.ts, 168, 5)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) (c1: C6_private); ->c1 : C6_private ->C6_private : C6_private +>c1 : C6_private, Symbol(c1, Decl(privacyInterface.ts, 169, 5)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) (): C5_public; ->C5_public : C5_public +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) (c2: number): C6_private; ->c2 : number ->C6_private : C6_private +>c2 : number, Symbol(c2, Decl(privacyInterface.ts, 171, 5)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) new (c1: C5_public); ->c1 : C5_public ->C5_public : C5_public +>c1 : C5_public, Symbol(c1, Decl(privacyInterface.ts, 173, 9)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) new (c1: C6_private); ->c1 : C6_private ->C6_private : C6_private +>c1 : C6_private, Symbol(c1, Decl(privacyInterface.ts, 174, 9)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) new (): C5_public; ->C5_public : C5_public +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) new (c2: number): C6_private; ->c2 : number ->C6_private : C6_private +>c2 : number, Symbol(c2, Decl(privacyInterface.ts, 176, 9)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) [c: number]: C5_public; ->c : number ->C5_public : C5_public +>c : number, Symbol(c, Decl(privacyInterface.ts, 178, 5)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) [c: string]: C6_private; ->c : string ->C6_private : C6_private +>c : string, Symbol(c, Decl(privacyInterface.ts, 179, 5)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) x: C5_public; ->x : C5_public ->C5_public : C5_public +>x : C5_public, Symbol(x, Decl(privacyInterface.ts, 179, 28)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) y: C6_private; ->y : C6_private ->C6_private : C6_private +>y : C6_private, Symbol(y, Decl(privacyInterface.ts, 181, 17)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) a?: C5_public; ->a : C5_public ->C5_public : C5_public +>a : C5_public, Symbol(a, Decl(privacyInterface.ts, 182, 18)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) b?: C6_private; ->b : C6_private ->C6_private : C6_private +>b : C6_private, Symbol(b, Decl(privacyInterface.ts, 184, 18)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) f1(a1: C5_public); ->f1 : (a1: C5_public) => any ->a1 : C5_public ->C5_public : C5_public +>f1 : (a1: C5_public) => any, Symbol(f1, Decl(privacyInterface.ts, 185, 19)) +>a1 : C5_public, Symbol(a1, Decl(privacyInterface.ts, 187, 7)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) f2(a1: C6_private); ->f2 : (a1: C6_private) => any ->a1 : C6_private ->C6_private : C6_private +>f2 : (a1: C6_private) => any, Symbol(f2, Decl(privacyInterface.ts, 187, 22)) +>a1 : C6_private, Symbol(a1, Decl(privacyInterface.ts, 188, 7)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) f3(): C5_public; ->f3 : () => C5_public ->C5_public : C5_public +>f3 : () => C5_public, Symbol(f3, Decl(privacyInterface.ts, 188, 23)) +>C5_public : C5_public, Symbol(C5_public, Decl(privacyInterface.ts, 129, 1)) f4(): C6_private; ->f4 : () => C6_private ->C6_private : C6_private +>f4 : () => C6_private, Symbol(f4, Decl(privacyInterface.ts, 189, 20)) +>C6_private : C6_private, Symbol(C6_private, Decl(privacyInterface.ts, 134, 1)) } export module m3 { ->m3 : unknown +>m3 : any, Symbol(m3, Decl(privacyInterface.ts, 192, 1)) export interface m3_i_public { ->m3_i_public : m3_i_public +>m3_i_public : m3_i_public, Symbol(m3_i_public, Decl(privacyInterface.ts, 194, 18)) f1(): number; ->f1 : () => number +>f1 : () => number, Symbol(f1, Decl(privacyInterface.ts, 195, 34)) } interface m3_i_private { ->m3_i_private : m3_i_private +>m3_i_private : m3_i_private, Symbol(m3_i_private, Decl(privacyInterface.ts, 197, 5)) f2(): string; ->f2 : () => string +>f2 : () => string, Symbol(f2, Decl(privacyInterface.ts, 199, 28)) } interface m3_C1_private extends m3_i_public { ->m3_C1_private : m3_C1_private ->m3_i_public : m3_i_public +>m3_C1_private : m3_C1_private, Symbol(m3_C1_private, Decl(privacyInterface.ts, 201, 5)) +>m3_i_public : m3_i_public, Symbol(m3_i_public, Decl(privacyInterface.ts, 194, 18)) } interface m3_C2_private extends m3_i_private { ->m3_C2_private : m3_C2_private ->m3_i_private : m3_i_private +>m3_C2_private : m3_C2_private, Symbol(m3_C2_private, Decl(privacyInterface.ts, 204, 5)) +>m3_i_private : m3_i_private, Symbol(m3_i_private, Decl(privacyInterface.ts, 197, 5)) } export interface m3_C3_public extends m3_i_public { ->m3_C3_public : m3_C3_public ->m3_i_public : m3_i_public +>m3_C3_public : m3_C3_public, Symbol(m3_C3_public, Decl(privacyInterface.ts, 206, 5)) +>m3_i_public : m3_i_public, Symbol(m3_i_public, Decl(privacyInterface.ts, 194, 18)) } export interface m3_C4_public extends m3_i_private { ->m3_C4_public : m3_C4_public ->m3_i_private : m3_i_private +>m3_C4_public : m3_C4_public, Symbol(m3_C4_public, Decl(privacyInterface.ts, 208, 5)) +>m3_i_private : m3_i_private, Symbol(m3_i_private, Decl(privacyInterface.ts, 197, 5)) } interface m3_C5_private extends m3_i_private, m3_i_public { ->m3_C5_private : m3_C5_private ->m3_i_private : m3_i_private ->m3_i_public : m3_i_public +>m3_C5_private : m3_C5_private, Symbol(m3_C5_private, Decl(privacyInterface.ts, 210, 5)) +>m3_i_private : m3_i_private, Symbol(m3_i_private, Decl(privacyInterface.ts, 197, 5)) +>m3_i_public : m3_i_public, Symbol(m3_i_public, Decl(privacyInterface.ts, 194, 18)) } export interface m3_C6_public extends m3_i_private, m3_i_public { ->m3_C6_public : m3_C6_public ->m3_i_private : m3_i_private ->m3_i_public : m3_i_public +>m3_C6_public : m3_C6_public, Symbol(m3_C6_public, Decl(privacyInterface.ts, 213, 5)) +>m3_i_private : m3_i_private, Symbol(m3_i_private, Decl(privacyInterface.ts, 197, 5)) +>m3_i_public : m3_i_public, Symbol(m3_i_public, Decl(privacyInterface.ts, 194, 18)) } } module m4 { ->m4 : unknown +>m4 : any, Symbol(m4, Decl(privacyInterface.ts, 216, 1)) export interface m4_i_public { ->m4_i_public : m4_i_public +>m4_i_public : m4_i_public, Symbol(m4_i_public, Decl(privacyInterface.ts, 219, 11)) f1(): number; ->f1 : () => number +>f1 : () => number, Symbol(f1, Decl(privacyInterface.ts, 220, 34)) } interface m4_i_private { ->m4_i_private : m4_i_private +>m4_i_private : m4_i_private, Symbol(m4_i_private, Decl(privacyInterface.ts, 222, 5)) f2(): string; ->f2 : () => string +>f2 : () => string, Symbol(f2, Decl(privacyInterface.ts, 224, 28)) } interface m4_C1_private extends m4_i_public { ->m4_C1_private : m4_C1_private ->m4_i_public : m4_i_public +>m4_C1_private : m4_C1_private, Symbol(m4_C1_private, Decl(privacyInterface.ts, 226, 5)) +>m4_i_public : m4_i_public, Symbol(m4_i_public, Decl(privacyInterface.ts, 219, 11)) } interface m4_C2_private extends m4_i_private { ->m4_C2_private : m4_C2_private ->m4_i_private : m4_i_private +>m4_C2_private : m4_C2_private, Symbol(m4_C2_private, Decl(privacyInterface.ts, 229, 5)) +>m4_i_private : m4_i_private, Symbol(m4_i_private, Decl(privacyInterface.ts, 222, 5)) } export interface m4_C3_public extends m4_i_public { ->m4_C3_public : m4_C3_public ->m4_i_public : m4_i_public +>m4_C3_public : m4_C3_public, Symbol(m4_C3_public, Decl(privacyInterface.ts, 231, 5)) +>m4_i_public : m4_i_public, Symbol(m4_i_public, Decl(privacyInterface.ts, 219, 11)) } export interface m4_C4_public extends m4_i_private { ->m4_C4_public : m4_C4_public ->m4_i_private : m4_i_private +>m4_C4_public : m4_C4_public, Symbol(m4_C4_public, Decl(privacyInterface.ts, 233, 5)) +>m4_i_private : m4_i_private, Symbol(m4_i_private, Decl(privacyInterface.ts, 222, 5)) } interface m4_C5_private extends m4_i_private, m4_i_public { ->m4_C5_private : m4_C5_private ->m4_i_private : m4_i_private ->m4_i_public : m4_i_public +>m4_C5_private : m4_C5_private, Symbol(m4_C5_private, Decl(privacyInterface.ts, 235, 5)) +>m4_i_private : m4_i_private, Symbol(m4_i_private, Decl(privacyInterface.ts, 222, 5)) +>m4_i_public : m4_i_public, Symbol(m4_i_public, Decl(privacyInterface.ts, 219, 11)) } export interface m4_C6_public extends m4_i_private, m4_i_public { ->m4_C6_public : m4_C6_public ->m4_i_private : m4_i_private ->m4_i_public : m4_i_public +>m4_C6_public : m4_C6_public, Symbol(m4_C6_public, Decl(privacyInterface.ts, 238, 5)) +>m4_i_private : m4_i_private, Symbol(m4_i_private, Decl(privacyInterface.ts, 222, 5)) +>m4_i_public : m4_i_public, Symbol(m4_i_public, Decl(privacyInterface.ts, 219, 11)) } } export interface glo_i_public { ->glo_i_public : glo_i_public +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyInterface.ts, 241, 1)) f1(): number; ->f1 : () => number +>f1 : () => number, Symbol(f1, Decl(privacyInterface.ts, 243, 31)) } interface glo_i_private { ->glo_i_private : glo_i_private +>glo_i_private : glo_i_private, Symbol(glo_i_private, Decl(privacyInterface.ts, 245, 1)) f2(): string; ->f2 : () => string +>f2 : () => string, Symbol(f2, Decl(privacyInterface.ts, 247, 25)) } interface glo_C1_private extends glo_i_public { ->glo_C1_private : glo_C1_private ->glo_i_public : glo_i_public +>glo_C1_private : glo_C1_private, Symbol(glo_C1_private, Decl(privacyInterface.ts, 249, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyInterface.ts, 241, 1)) } interface glo_C2_private extends glo_i_private { ->glo_C2_private : glo_C2_private ->glo_i_private : glo_i_private +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyInterface.ts, 252, 1)) +>glo_i_private : glo_i_private, Symbol(glo_i_private, Decl(privacyInterface.ts, 245, 1)) } export interface glo_C3_public extends glo_i_public { ->glo_C3_public : glo_C3_public ->glo_i_public : glo_i_public +>glo_C3_public : glo_C3_public, Symbol(glo_C3_public, Decl(privacyInterface.ts, 254, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyInterface.ts, 241, 1)) } export interface glo_C4_public extends glo_i_private { ->glo_C4_public : glo_C4_public ->glo_i_private : glo_i_private +>glo_C4_public : glo_C4_public, Symbol(glo_C4_public, Decl(privacyInterface.ts, 256, 1)) +>glo_i_private : glo_i_private, Symbol(glo_i_private, Decl(privacyInterface.ts, 245, 1)) } interface glo_C5_private extends glo_i_private, glo_i_public { ->glo_C5_private : glo_C5_private ->glo_i_private : glo_i_private ->glo_i_public : glo_i_public +>glo_C5_private : glo_C5_private, Symbol(glo_C5_private, Decl(privacyInterface.ts, 258, 1)) +>glo_i_private : glo_i_private, Symbol(glo_i_private, Decl(privacyInterface.ts, 245, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyInterface.ts, 241, 1)) } export interface glo_C6_public extends glo_i_private, glo_i_public { ->glo_C6_public : glo_C6_public ->glo_i_private : glo_i_private ->glo_i_public : glo_i_public +>glo_C6_public : glo_C6_public, Symbol(glo_C6_public, Decl(privacyInterface.ts, 261, 1)) +>glo_i_private : glo_i_private, Symbol(glo_i_private, Decl(privacyInterface.ts, 245, 1)) +>glo_i_public : glo_i_public, Symbol(glo_i_public, Decl(privacyInterface.ts, 241, 1)) } diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.types b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.types index b6d3d2967dc..3a0076b1793 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.types +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithExport.types @@ -3,89 +3,89 @@ /// // Privacy errors - importing private elements export import im_public_mi_private = require("privacyTopLevelAmbientExternalModuleImportWithExport_require"); ->im_public_mi_private : typeof im_public_mi_private +>im_public_mi_private : typeof im_public_mi_private, Symbol(im_public_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 0, 0)) export import im_public_mu_private = require("privacyTopLevelAmbientExternalModuleImportWithExport_require1"); ->im_public_mu_private : typeof im_public_mu_private +>im_public_mu_private : typeof im_public_mu_private, Symbol(im_public_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 3, 109)) export import im_public_mi_public = require("m"); ->im_public_mi_public : typeof im_public_mi_public +>im_public_mi_public : typeof im_public_mi_public, Symbol(im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 4, 110)) export import im_public_mu_public = require("m2"); ->im_public_mu_public : typeof im_public_mu_public +>im_public_mu_public : typeof im_public_mu_public, Symbol(im_public_mu_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 5, 49)) // Usage of privacy error imports var privateUse_im_public_mi_private = new im_public_mi_private.c_public(); ->privateUse_im_public_mi_private : im_public_mi_private.c_public +>privateUse_im_public_mi_private : im_public_mi_private.c_public, Symbol(privateUse_im_public_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 9, 3)) >new im_public_mi_private.c_public() : im_public_mi_private.c_public ->im_public_mi_private.c_public : typeof im_public_mi_private.c_public ->im_public_mi_private : typeof im_public_mi_private ->c_public : typeof im_public_mi_private.c_public +>im_public_mi_private.c_public : typeof im_public_mi_private.c_public, Symbol(im_public_mi_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require.ts, 0, 0)) +>im_public_mi_private : typeof im_public_mi_private, Symbol(im_public_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 0, 0)) +>c_public : typeof im_public_mi_private.c_public, Symbol(im_public_mi_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require.ts, 0, 0)) export var publicUse_im_public_mi_private = new im_public_mi_private.c_public(); ->publicUse_im_public_mi_private : im_public_mi_private.c_public +>publicUse_im_public_mi_private : im_public_mi_private.c_public, Symbol(publicUse_im_public_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 10, 10)) >new im_public_mi_private.c_public() : im_public_mi_private.c_public ->im_public_mi_private.c_public : typeof im_public_mi_private.c_public ->im_public_mi_private : typeof im_public_mi_private ->c_public : typeof im_public_mi_private.c_public +>im_public_mi_private.c_public : typeof im_public_mi_private.c_public, Symbol(im_public_mi_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require.ts, 0, 0)) +>im_public_mi_private : typeof im_public_mi_private, Symbol(im_public_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 0, 0)) +>c_public : typeof im_public_mi_private.c_public, Symbol(im_public_mi_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require.ts, 0, 0)) var privateUse_im_public_mu_private = new im_public_mu_private.c_public(); ->privateUse_im_public_mu_private : im_public_mu_private.c_public +>privateUse_im_public_mu_private : im_public_mu_private.c_public, Symbol(privateUse_im_public_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 11, 3)) >new im_public_mu_private.c_public() : im_public_mu_private.c_public ->im_public_mu_private.c_public : typeof im_public_mu_private.c_public ->im_public_mu_private : typeof im_public_mu_private ->c_public : typeof im_public_mu_private.c_public +>im_public_mu_private.c_public : typeof im_public_mu_private.c_public, Symbol(im_public_mu_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts, 0, 0)) +>im_public_mu_private : typeof im_public_mu_private, Symbol(im_public_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 3, 109)) +>c_public : typeof im_public_mu_private.c_public, Symbol(im_public_mu_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts, 0, 0)) export var publicUse_im_public_mu_private = new im_public_mu_private.c_public(); ->publicUse_im_public_mu_private : im_public_mu_private.c_public +>publicUse_im_public_mu_private : im_public_mu_private.c_public, Symbol(publicUse_im_public_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 12, 10)) >new im_public_mu_private.c_public() : im_public_mu_private.c_public ->im_public_mu_private.c_public : typeof im_public_mu_private.c_public ->im_public_mu_private : typeof im_public_mu_private ->c_public : typeof im_public_mu_private.c_public +>im_public_mu_private.c_public : typeof im_public_mu_private.c_public, Symbol(im_public_mu_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts, 0, 0)) +>im_public_mu_private : typeof im_public_mu_private, Symbol(im_public_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 3, 109)) +>c_public : typeof im_public_mu_private.c_public, Symbol(im_public_mu_private.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts, 0, 0)) var privateUse_im_public_mi_public = new im_public_mi_public.c_private(); ->privateUse_im_public_mi_public : im_public_mi_public.c_private +>privateUse_im_public_mi_public : im_public_mi_public.c_private, Symbol(privateUse_im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 13, 3), Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 15, 3)) >new im_public_mi_public.c_private() : im_public_mi_public.c_private ->im_public_mi_public.c_private : typeof im_public_mi_public.c_private ->im_public_mi_public : typeof im_public_mi_public ->c_private : typeof im_public_mi_public.c_private +>im_public_mi_public.c_private : typeof im_public_mi_public.c_private, Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) +>im_public_mi_public : typeof im_public_mi_public, Symbol(im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 4, 110)) +>c_private : typeof im_public_mi_public.c_private, Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) export var publicUse_im_public_mi_public = new im_public_mi_public.c_private(); ->publicUse_im_public_mi_public : im_public_mi_public.c_private +>publicUse_im_public_mi_public : im_public_mi_public.c_private, Symbol(publicUse_im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 14, 10), Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 16, 10)) >new im_public_mi_public.c_private() : im_public_mi_public.c_private ->im_public_mi_public.c_private : typeof im_public_mi_public.c_private ->im_public_mi_public : typeof im_public_mi_public ->c_private : typeof im_public_mi_public.c_private +>im_public_mi_public.c_private : typeof im_public_mi_public.c_private, Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) +>im_public_mi_public : typeof im_public_mi_public, Symbol(im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 4, 110)) +>c_private : typeof im_public_mi_public.c_private, Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) var privateUse_im_public_mi_public = new im_public_mi_public.c_private(); ->privateUse_im_public_mi_public : im_public_mi_public.c_private +>privateUse_im_public_mi_public : im_public_mi_public.c_private, Symbol(privateUse_im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 13, 3), Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 15, 3)) >new im_public_mi_public.c_private() : im_public_mi_public.c_private ->im_public_mi_public.c_private : typeof im_public_mi_public.c_private ->im_public_mi_public : typeof im_public_mi_public ->c_private : typeof im_public_mi_public.c_private +>im_public_mi_public.c_private : typeof im_public_mi_public.c_private, Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) +>im_public_mi_public : typeof im_public_mi_public, Symbol(im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 4, 110)) +>c_private : typeof im_public_mi_public.c_private, Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) export var publicUse_im_public_mi_public = new im_public_mi_public.c_private(); ->publicUse_im_public_mi_public : im_public_mi_public.c_private +>publicUse_im_public_mi_public : im_public_mi_public.c_private, Symbol(publicUse_im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 14, 10), Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 16, 10)) >new im_public_mi_public.c_private() : im_public_mi_public.c_private ->im_public_mi_public.c_private : typeof im_public_mi_public.c_private ->im_public_mi_public : typeof im_public_mi_public ->c_private : typeof im_public_mi_public.c_private +>im_public_mi_public.c_private : typeof im_public_mi_public.c_private, Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) +>im_public_mi_public : typeof im_public_mi_public, Symbol(im_public_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_core.ts, 4, 110)) +>c_private : typeof im_public_mi_public.c_private, Symbol(im_public_mi_public.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) === tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require.ts === // Public elements export class c_public { ->c_public : c_public +>c_public : c_public, Symbol(c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require.ts, 1, 23)) } === tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts === export class c_public { ->c_public : c_public +>c_public : c_public, Symbol(c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts, 0, 0)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require1.ts, 0, 23)) } === tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts === @@ -93,10 +93,10 @@ export class c_public { // Export - Error ambient modules allowed only in global declare module 'm' { export class c_private { ->c_private : c_private +>c_private : c_private, Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20)) baz: string; ->baz : string +>baz : string, Symbol(baz, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 3, 28)) } } @@ -104,10 +104,10 @@ declare module 'm' { === tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require3.ts === declare module 'm2' { export class c_private { ->c_private : c_private +>c_private : c_private, Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require3.ts, 0, 21)) bing: string; ->bing : string +>bing : string, Symbol(bing, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require3.ts, 1, 28)) } } diff --git a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types index 437d35fb64a..4043ca81147 100644 --- a/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types +++ b/tests/baselines/reference/privacyTopLevelAmbientExternalModuleImportWithoutExport.types @@ -3,90 +3,90 @@ /// // Privacy errors - importing private elements import im_private_mi_private = require("m"); ->im_private_mi_private : typeof im_private_mi_private +>im_private_mi_private : typeof im_private_mi_private, Symbol(im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 0, 0)) import im_private_mu_private = require("m2"); ->im_private_mu_private : typeof im_private_mu_private +>im_private_mu_private : typeof im_private_mu_private, Symbol(im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 3, 44)) import im_private_mi_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require"); ->im_private_mi_public : typeof im_private_mi_public +>im_private_mi_public : typeof im_private_mi_public, Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) import im_private_mu_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require1"); ->im_private_mu_public : typeof im_private_mu_public +>im_private_mu_public : typeof im_private_mu_public, Symbol(im_private_mu_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 5, 105)) // Usage of privacy error imports var privateUse_im_private_mi_private = new im_private_mi_private.c_private(); ->privateUse_im_private_mi_private : im_private_mi_private.c_private +>privateUse_im_private_mi_private : im_private_mi_private.c_private, Symbol(privateUse_im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 9, 3)) >new im_private_mi_private.c_private() : im_private_mi_private.c_private ->im_private_mi_private.c_private : typeof im_private_mi_private.c_private ->im_private_mi_private : typeof im_private_mi_private ->c_private : typeof im_private_mi_private.c_private +>im_private_mi_private.c_private : typeof im_private_mi_private.c_private, Symbol(im_private_mi_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) +>im_private_mi_private : typeof im_private_mi_private, Symbol(im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 0, 0)) +>c_private : typeof im_private_mi_private.c_private, Symbol(im_private_mi_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) export var publicUse_im_private_mi_private = new im_private_mi_private.c_private(); ->publicUse_im_private_mi_private : im_private_mi_private.c_private +>publicUse_im_private_mi_private : im_private_mi_private.c_private, Symbol(publicUse_im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 10, 10)) >new im_private_mi_private.c_private() : im_private_mi_private.c_private ->im_private_mi_private.c_private : typeof im_private_mi_private.c_private ->im_private_mi_private : typeof im_private_mi_private ->c_private : typeof im_private_mi_private.c_private +>im_private_mi_private.c_private : typeof im_private_mi_private.c_private, Symbol(im_private_mi_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) +>im_private_mi_private : typeof im_private_mi_private, Symbol(im_private_mi_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 0, 0)) +>c_private : typeof im_private_mi_private.c_private, Symbol(im_private_mi_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) var privateUse_im_private_mu_private = new im_private_mu_private.c_private(); ->privateUse_im_private_mu_private : im_private_mu_private.c_private +>privateUse_im_private_mu_private : im_private_mu_private.c_private, Symbol(privateUse_im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 11, 3)) >new im_private_mu_private.c_private() : im_private_mu_private.c_private ->im_private_mu_private.c_private : typeof im_private_mu_private.c_private ->im_private_mu_private : typeof im_private_mu_private ->c_private : typeof im_private_mu_private.c_private +>im_private_mu_private.c_private : typeof im_private_mu_private.c_private, Symbol(im_private_mu_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) +>im_private_mu_private : typeof im_private_mu_private, Symbol(im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 3, 44)) +>c_private : typeof im_private_mu_private.c_private, Symbol(im_private_mu_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) export var publicUse_im_private_mu_private = new im_private_mu_private.c_private(); ->publicUse_im_private_mu_private : im_private_mu_private.c_private +>publicUse_im_private_mu_private : im_private_mu_private.c_private, Symbol(publicUse_im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 12, 10)) >new im_private_mu_private.c_private() : im_private_mu_private.c_private ->im_private_mu_private.c_private : typeof im_private_mu_private.c_private ->im_private_mu_private : typeof im_private_mu_private ->c_private : typeof im_private_mu_private.c_private +>im_private_mu_private.c_private : typeof im_private_mu_private.c_private, Symbol(im_private_mu_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) +>im_private_mu_private : typeof im_private_mu_private, Symbol(im_private_mu_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 3, 44)) +>c_private : typeof im_private_mu_private.c_private, Symbol(im_private_mu_private.c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); ->privateUse_im_private_mi_public : im_private_mi_public.c_public +>privateUse_im_private_mi_public : im_private_mi_public.c_public, Symbol(privateUse_im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 13, 3), Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 15, 3)) >new im_private_mi_public.c_public() : im_private_mi_public.c_public ->im_private_mi_public.c_public : typeof im_private_mi_public.c_public ->im_private_mi_public : typeof im_private_mi_public ->c_public : typeof im_private_mi_public.c_public +>im_private_mi_public.c_public : typeof im_private_mi_public.c_public, Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) +>im_private_mi_public : typeof im_private_mi_public, Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) +>c_public : typeof im_private_mi_public.c_public, Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); ->publicUse_im_private_mi_public : im_private_mi_public.c_public +>publicUse_im_private_mi_public : im_private_mi_public.c_public, Symbol(publicUse_im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 14, 10), Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 16, 10)) >new im_private_mi_public.c_public() : im_private_mi_public.c_public ->im_private_mi_public.c_public : typeof im_private_mi_public.c_public ->im_private_mi_public : typeof im_private_mi_public ->c_public : typeof im_private_mi_public.c_public +>im_private_mi_public.c_public : typeof im_private_mi_public.c_public, Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) +>im_private_mi_public : typeof im_private_mi_public, Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) +>c_public : typeof im_private_mi_public.c_public, Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) var privateUse_im_private_mi_public = new im_private_mi_public.c_public(); ->privateUse_im_private_mi_public : im_private_mi_public.c_public +>privateUse_im_private_mi_public : im_private_mi_public.c_public, Symbol(privateUse_im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 13, 3), Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 15, 3)) >new im_private_mi_public.c_public() : im_private_mi_public.c_public ->im_private_mi_public.c_public : typeof im_private_mi_public.c_public ->im_private_mi_public : typeof im_private_mi_public ->c_public : typeof im_private_mi_public.c_public +>im_private_mi_public.c_public : typeof im_private_mi_public.c_public, Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) +>im_private_mi_public : typeof im_private_mi_public, Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) +>c_public : typeof im_private_mi_public.c_public, Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) export var publicUse_im_private_mi_public = new im_private_mi_public.c_public(); ->publicUse_im_private_mi_public : im_private_mi_public.c_public +>publicUse_im_private_mi_public : im_private_mi_public.c_public, Symbol(publicUse_im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 14, 10), Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 16, 10)) >new im_private_mi_public.c_public() : im_private_mi_public.c_public ->im_private_mi_public.c_public : typeof im_private_mi_public.c_public ->im_private_mi_public : typeof im_private_mi_public ->c_public : typeof im_private_mi_public.c_public +>im_private_mi_public.c_public : typeof im_private_mi_public.c_public, Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) +>im_private_mi_public : typeof im_private_mi_public, Symbol(im_private_mi_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_core.ts, 4, 45)) +>c_public : typeof im_private_mi_public.c_public, Symbol(im_private_mi_public.c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) === tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts === // Public elements export class c_public { ->c_public : c_public +>c_public : c_public, Symbol(c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 0, 0)) foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require.ts, 2, 23)) } === tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts === export class c_public { ->c_public : c_public +>c_public : c_public, Symbol(c_public, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts, 0, 0)) bar: string; ->bar : string +>bar : string, Symbol(bar, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require1.ts, 0, 23)) } === tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts === @@ -94,20 +94,20 @@ export class c_public { // Export - Error ambient modules allowed only in global declare module 'm' { export class c_private { ->c_private : c_private +>c_private : c_private, Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20)) baz: string ->baz : string +>baz : string, Symbol(baz, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 3, 28)) } } === tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts === declare module 'm2' { export class c_private { ->c_private : c_private +>c_private : c_private, Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21)) bing: string; ->bing : string +>bing : string, Symbol(bing, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 1, 28)) } } diff --git a/tests/baselines/reference/privacyTypeParameterOfFunction.types b/tests/baselines/reference/privacyTypeParameterOfFunction.types index 7d5c147a21d..285ce92ac89 100644 --- a/tests/baselines/reference/privacyTypeParameterOfFunction.types +++ b/tests/baselines/reference/privacyTypeParameterOfFunction.types @@ -1,303 +1,303 @@ === tests/cases/compiler/privacyTypeParameterOfFunction.ts === class privateClass { ->privateClass : privateClass +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } export class publicClass { ->publicClass : publicClass +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } export interface publicInterfaceWithPrivateTypeParameters { ->publicInterfaceWithPrivateTypeParameters : publicInterfaceWithPrivateTypeParameters +>publicInterfaceWithPrivateTypeParameters : publicInterfaceWithPrivateTypeParameters, Symbol(publicInterfaceWithPrivateTypeParameters, Decl(privacyTypeParameterOfFunction.ts, 4, 1)) // TypeParameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_type_1 new (): privateClass; ->T : T ->privateClass : privateClass ->privateClass : privateClass +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 8, 9)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) // TypeParameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_type_1 (): privateClass; ->T : T ->privateClass : privateClass ->privateClass : privateClass +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 11, 5)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) // TypeParameter_0_of_method_from_exported_interface_has_or_is_using_private_type_1 myMethod(): privateClass; ->myMethod : () => privateClass ->T : T ->privateClass : privateClass ->privateClass : privateClass +>myMethod : () => privateClass, Symbol(myMethod, Decl(privacyTypeParameterOfFunction.ts, 11, 45)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 14, 13)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } export interface publicInterfaceWithPublicTypeParameters { ->publicInterfaceWithPublicTypeParameters : publicInterfaceWithPublicTypeParameters +>publicInterfaceWithPublicTypeParameters : publicInterfaceWithPublicTypeParameters, Symbol(publicInterfaceWithPublicTypeParameters, Decl(privacyTypeParameterOfFunction.ts, 15, 1)) new (): publicClass; ->T : T ->publicClass : publicClass ->publicClass : publicClass +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 18, 9)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) (): publicClass; ->T : T ->publicClass : publicClass ->publicClass : publicClass +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 19, 5)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) myMethod(): publicClass; ->myMethod : () => publicClass ->T : T ->publicClass : publicClass ->publicClass : publicClass +>myMethod : () => publicClass, Symbol(myMethod, Decl(privacyTypeParameterOfFunction.ts, 19, 43)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 20, 13)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } interface privateInterfaceWithPrivateTypeParameters { ->privateInterfaceWithPrivateTypeParameters : privateInterfaceWithPrivateTypeParameters +>privateInterfaceWithPrivateTypeParameters : privateInterfaceWithPrivateTypeParameters, Symbol(privateInterfaceWithPrivateTypeParameters, Decl(privacyTypeParameterOfFunction.ts, 21, 1)) new (): privateClass; ->T : T ->privateClass : privateClass ->privateClass : privateClass +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 24, 9)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) (): privateClass; ->T : T ->privateClass : privateClass ->privateClass : privateClass +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 25, 5)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) myMethod(): privateClass; ->myMethod : () => privateClass ->T : T ->privateClass : privateClass ->privateClass : privateClass +>myMethod : () => privateClass, Symbol(myMethod, Decl(privacyTypeParameterOfFunction.ts, 25, 45)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 26, 13)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } interface privateInterfaceWithPublicTypeParameters { ->privateInterfaceWithPublicTypeParameters : privateInterfaceWithPublicTypeParameters +>privateInterfaceWithPublicTypeParameters : privateInterfaceWithPublicTypeParameters, Symbol(privateInterfaceWithPublicTypeParameters, Decl(privacyTypeParameterOfFunction.ts, 27, 1)) new (): publicClass; ->T : T ->publicClass : publicClass ->publicClass : publicClass +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 30, 9)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) (): publicClass; ->T : T ->publicClass : publicClass ->publicClass : publicClass +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 31, 5)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) myMethod(): publicClass; ->myMethod : () => publicClass ->T : T ->publicClass : publicClass ->publicClass : publicClass +>myMethod : () => publicClass, Symbol(myMethod, Decl(privacyTypeParameterOfFunction.ts, 31, 43)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 32, 13)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } export class publicClassWithWithPrivateTypeParameters { ->publicClassWithWithPrivateTypeParameters : publicClassWithWithPrivateTypeParameters +>publicClassWithWithPrivateTypeParameters : publicClassWithWithPrivateTypeParameters, Symbol(publicClassWithWithPrivateTypeParameters, Decl(privacyTypeParameterOfFunction.ts, 33, 1)) // TypeParameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_type_1 static myPublicStaticMethod() { ->myPublicStaticMethod : () => void ->T : T ->privateClass : privateClass +>myPublicStaticMethod : () => void, Symbol(publicClassWithWithPrivateTypeParameters.myPublicStaticMethod, Decl(privacyTypeParameterOfFunction.ts, 35, 55)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 37, 32)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } private static myPrivateStaticMethod() { // No error ->myPrivateStaticMethod : () => void ->T : T ->privateClass : privateClass +>myPrivateStaticMethod : () => void, Symbol(publicClassWithWithPrivateTypeParameters.myPrivateStaticMethod, Decl(privacyTypeParameterOfFunction.ts, 38, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 39, 41)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } // TypeParameter_0_of_public_method_from_exported_class_has_or_is_using_private_type_1 myPublicMethod() { ->myPublicMethod : () => void ->T : T ->privateClass : privateClass +>myPublicMethod : () => void, Symbol(myPublicMethod, Decl(privacyTypeParameterOfFunction.ts, 40, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 42, 19)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } private myPrivateMethod() { // No error ->myPrivateMethod : () => void ->T : T ->privateClass : privateClass +>myPrivateMethod : () => void, Symbol(myPrivateMethod, Decl(privacyTypeParameterOfFunction.ts, 43, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 44, 28)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } } export class publicClassWithWithPublicTypeParameters { ->publicClassWithWithPublicTypeParameters : publicClassWithWithPublicTypeParameters +>publicClassWithWithPublicTypeParameters : publicClassWithWithPublicTypeParameters, Symbol(publicClassWithWithPublicTypeParameters, Decl(privacyTypeParameterOfFunction.ts, 46, 1)) static myPublicStaticMethod() { ->myPublicStaticMethod : () => void ->T : T ->publicClass : publicClass +>myPublicStaticMethod : () => void, Symbol(publicClassWithWithPublicTypeParameters.myPublicStaticMethod, Decl(privacyTypeParameterOfFunction.ts, 48, 54)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 49, 32)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } private static myPrivateStaticMethod() { ->myPrivateStaticMethod : () => void ->T : T ->publicClass : publicClass +>myPrivateStaticMethod : () => void, Symbol(publicClassWithWithPublicTypeParameters.myPrivateStaticMethod, Decl(privacyTypeParameterOfFunction.ts, 50, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 51, 41)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } myPublicMethod() { ->myPublicMethod : () => void ->T : T ->publicClass : publicClass +>myPublicMethod : () => void, Symbol(myPublicMethod, Decl(privacyTypeParameterOfFunction.ts, 52, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 53, 19)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } private myPrivateMethod() { ->myPrivateMethod : () => void ->T : T ->publicClass : publicClass +>myPrivateMethod : () => void, Symbol(myPrivateMethod, Decl(privacyTypeParameterOfFunction.ts, 54, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 55, 28)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } } class privateClassWithWithPrivateTypeParameters { ->privateClassWithWithPrivateTypeParameters : privateClassWithWithPrivateTypeParameters +>privateClassWithWithPrivateTypeParameters : privateClassWithWithPrivateTypeParameters, Symbol(privateClassWithWithPrivateTypeParameters, Decl(privacyTypeParameterOfFunction.ts, 57, 1)) static myPublicStaticMethod() { ->myPublicStaticMethod : () => void ->T : T ->privateClass : privateClass +>myPublicStaticMethod : () => void, Symbol(privateClassWithWithPrivateTypeParameters.myPublicStaticMethod, Decl(privacyTypeParameterOfFunction.ts, 59, 49)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 60, 32)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } private static myPrivateStaticMethod() { // No error ->myPrivateStaticMethod : () => void ->T : T ->privateClass : privateClass +>myPrivateStaticMethod : () => void, Symbol(privateClassWithWithPrivateTypeParameters.myPrivateStaticMethod, Decl(privacyTypeParameterOfFunction.ts, 61, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 62, 41)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } myPublicMethod() { ->myPublicMethod : () => void ->T : T ->privateClass : privateClass +>myPublicMethod : () => void, Symbol(myPublicMethod, Decl(privacyTypeParameterOfFunction.ts, 63, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 64, 19)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } private myPrivateMethod() { // No error ->myPrivateMethod : () => void ->T : T ->privateClass : privateClass +>myPrivateMethod : () => void, Symbol(myPrivateMethod, Decl(privacyTypeParameterOfFunction.ts, 65, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 66, 28)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } } class privateClassWithWithPublicTypeParameters { ->privateClassWithWithPublicTypeParameters : privateClassWithWithPublicTypeParameters +>privateClassWithWithPublicTypeParameters : privateClassWithWithPublicTypeParameters, Symbol(privateClassWithWithPublicTypeParameters, Decl(privacyTypeParameterOfFunction.ts, 68, 1)) static myPublicStaticMethod() { ->myPublicStaticMethod : () => void ->T : T ->publicClass : publicClass +>myPublicStaticMethod : () => void, Symbol(privateClassWithWithPublicTypeParameters.myPublicStaticMethod, Decl(privacyTypeParameterOfFunction.ts, 70, 48)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 71, 32)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } private static myPrivateStaticMethod() { ->myPrivateStaticMethod : () => void ->T : T ->publicClass : publicClass +>myPrivateStaticMethod : () => void, Symbol(privateClassWithWithPublicTypeParameters.myPrivateStaticMethod, Decl(privacyTypeParameterOfFunction.ts, 72, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 73, 41)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } myPublicMethod() { ->myPublicMethod : () => void ->T : T ->publicClass : publicClass +>myPublicMethod : () => void, Symbol(myPublicMethod, Decl(privacyTypeParameterOfFunction.ts, 74, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 75, 19)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } private myPrivateMethod() { ->myPrivateMethod : () => void ->T : T ->publicClass : publicClass +>myPrivateMethod : () => void, Symbol(myPrivateMethod, Decl(privacyTypeParameterOfFunction.ts, 76, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 77, 28)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } } // TypeParameter_0_of_exported_function_has_or_is_using_private_type_1 export function publicFunctionWithPrivateTypeParameters() { ->publicFunctionWithPrivateTypeParameters : () => void ->T : T ->privateClass : privateClass +>publicFunctionWithPrivateTypeParameters : () => void, Symbol(publicFunctionWithPrivateTypeParameters, Decl(privacyTypeParameterOfFunction.ts, 79, 1)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 82, 56)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } export function publicFunctionWithPublicTypeParameters() { ->publicFunctionWithPublicTypeParameters : () => void ->T : T ->publicClass : publicClass +>publicFunctionWithPublicTypeParameters : () => void, Symbol(publicFunctionWithPublicTypeParameters, Decl(privacyTypeParameterOfFunction.ts, 83, 1)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 85, 55)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } function privateFunctionWithPrivateTypeParameters() { ->privateFunctionWithPrivateTypeParameters : () => void ->T : T ->privateClass : privateClass +>privateFunctionWithPrivateTypeParameters : () => void, Symbol(privateFunctionWithPrivateTypeParameters, Decl(privacyTypeParameterOfFunction.ts, 86, 1)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 88, 50)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParameterOfFunction.ts, 0, 0)) } function privateFunctionWithPublicTypeParameters() { ->privateFunctionWithPublicTypeParameters : () => void ->T : T ->publicClass : publicClass +>privateFunctionWithPublicTypeParameters : () => void, Symbol(privateFunctionWithPublicTypeParameters, Decl(privacyTypeParameterOfFunction.ts, 89, 1)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 91, 49)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } export interface publicInterfaceWithPublicTypeParametersWithoutExtends { ->publicInterfaceWithPublicTypeParametersWithoutExtends : publicInterfaceWithPublicTypeParametersWithoutExtends +>publicInterfaceWithPublicTypeParametersWithoutExtends : publicInterfaceWithPublicTypeParametersWithoutExtends, Symbol(publicInterfaceWithPublicTypeParametersWithoutExtends, Decl(privacyTypeParameterOfFunction.ts, 92, 1)) new (): publicClass; ->T : T ->publicClass : publicClass +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 95, 9)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) (): publicClass; ->T : T ->publicClass : publicClass +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 96, 5)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) myMethod(): publicClass; ->myMethod : () => publicClass ->T : T ->publicClass : publicClass +>myMethod : () => publicClass, Symbol(myMethod, Decl(privacyTypeParameterOfFunction.ts, 96, 23)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 97, 13)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } interface privateInterfaceWithPublicTypeParametersWithoutExtends { ->privateInterfaceWithPublicTypeParametersWithoutExtends : privateInterfaceWithPublicTypeParametersWithoutExtends +>privateInterfaceWithPublicTypeParametersWithoutExtends : privateInterfaceWithPublicTypeParametersWithoutExtends, Symbol(privateInterfaceWithPublicTypeParametersWithoutExtends, Decl(privacyTypeParameterOfFunction.ts, 98, 1)) new (): publicClass; ->T : T ->publicClass : publicClass +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 101, 9)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) (): publicClass; ->T : T ->publicClass : publicClass +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 102, 5)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) myMethod(): publicClass; ->myMethod : () => publicClass ->T : T ->publicClass : publicClass +>myMethod : () => publicClass, Symbol(myMethod, Decl(privacyTypeParameterOfFunction.ts, 102, 23)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 103, 13)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParameterOfFunction.ts, 1, 1)) } export class publicClassWithWithPublicTypeParametersWithoutExtends { ->publicClassWithWithPublicTypeParametersWithoutExtends : publicClassWithWithPublicTypeParametersWithoutExtends +>publicClassWithWithPublicTypeParametersWithoutExtends : publicClassWithWithPublicTypeParametersWithoutExtends, Symbol(publicClassWithWithPublicTypeParametersWithoutExtends, Decl(privacyTypeParameterOfFunction.ts, 104, 1)) static myPublicStaticMethod() { ->myPublicStaticMethod : () => void ->T : T +>myPublicStaticMethod : () => void, Symbol(publicClassWithWithPublicTypeParametersWithoutExtends.myPublicStaticMethod, Decl(privacyTypeParameterOfFunction.ts, 106, 68)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 107, 32)) } private static myPrivateStaticMethod() { ->myPrivateStaticMethod : () => void ->T : T +>myPrivateStaticMethod : () => void, Symbol(publicClassWithWithPublicTypeParametersWithoutExtends.myPrivateStaticMethod, Decl(privacyTypeParameterOfFunction.ts, 108, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 109, 41)) } myPublicMethod() { ->myPublicMethod : () => void ->T : T +>myPublicMethod : () => void, Symbol(myPublicMethod, Decl(privacyTypeParameterOfFunction.ts, 110, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 111, 19)) } private myPrivateMethod() { ->myPrivateMethod : () => void ->T : T +>myPrivateMethod : () => void, Symbol(myPrivateMethod, Decl(privacyTypeParameterOfFunction.ts, 112, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 113, 28)) } } class privateClassWithWithPublicTypeParametersWithoutExtends { ->privateClassWithWithPublicTypeParametersWithoutExtends : privateClassWithWithPublicTypeParametersWithoutExtends +>privateClassWithWithPublicTypeParametersWithoutExtends : privateClassWithWithPublicTypeParametersWithoutExtends, Symbol(privateClassWithWithPublicTypeParametersWithoutExtends, Decl(privacyTypeParameterOfFunction.ts, 115, 1)) static myPublicStaticMethod() { ->myPublicStaticMethod : () => void ->T : T +>myPublicStaticMethod : () => void, Symbol(privateClassWithWithPublicTypeParametersWithoutExtends.myPublicStaticMethod, Decl(privacyTypeParameterOfFunction.ts, 116, 62)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 117, 32)) } private static myPrivateStaticMethod() { ->myPrivateStaticMethod : () => void ->T : T +>myPrivateStaticMethod : () => void, Symbol(privateClassWithWithPublicTypeParametersWithoutExtends.myPrivateStaticMethod, Decl(privacyTypeParameterOfFunction.ts, 118, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 119, 41)) } myPublicMethod() { ->myPublicMethod : () => void ->T : T +>myPublicMethod : () => void, Symbol(myPublicMethod, Decl(privacyTypeParameterOfFunction.ts, 120, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 121, 19)) } private myPrivateMethod() { ->myPrivateMethod : () => void ->T : T +>myPrivateMethod : () => void, Symbol(myPrivateMethod, Decl(privacyTypeParameterOfFunction.ts, 122, 5)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 123, 28)) } } export function publicFunctionWithPublicTypeParametersWithoutExtends() { ->publicFunctionWithPublicTypeParametersWithoutExtends : () => void ->T : T +>publicFunctionWithPublicTypeParametersWithoutExtends : () => void, Symbol(publicFunctionWithPublicTypeParametersWithoutExtends, Decl(privacyTypeParameterOfFunction.ts, 125, 1)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 127, 69)) } function privateFunctionWithPublicTypeParametersWithoutExtends() { ->privateFunctionWithPublicTypeParametersWithoutExtends : () => void ->T : T +>privateFunctionWithPublicTypeParametersWithoutExtends : () => void, Symbol(privateFunctionWithPublicTypeParametersWithoutExtends, Decl(privacyTypeParameterOfFunction.ts, 128, 1)) +>T : T, Symbol(T, Decl(privacyTypeParameterOfFunction.ts, 130, 63)) } diff --git a/tests/baselines/reference/privacyTypeParametersOfClass.types b/tests/baselines/reference/privacyTypeParametersOfClass.types index c99b8b08afd..b4aa796abeb 100644 --- a/tests/baselines/reference/privacyTypeParametersOfClass.types +++ b/tests/baselines/reference/privacyTypeParametersOfClass.types @@ -1,104 +1,104 @@ === tests/cases/compiler/privacyTypeParametersOfClass.ts === class privateClass { ->privateClass : privateClass +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfClass.ts, 0, 0)) } export class publicClass { ->publicClass : publicClass +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfClass.ts, 1, 1)) } // TypeParameter_0_of_exported_class_1_has_or_is_using_private_type_2 export class publicClassWithPrivateTypeParameters { ->publicClassWithPrivateTypeParameters : publicClassWithPrivateTypeParameters ->T : T ->privateClass : privateClass +>publicClassWithPrivateTypeParameters : publicClassWithPrivateTypeParameters, Symbol(publicClassWithPrivateTypeParameters, Decl(privacyTypeParametersOfClass.ts, 4, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 7, 50)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfClass.ts, 0, 0)) myMethod(val: T): T { // Error ->myMethod : (val: T) => T ->val : T ->T : T ->T : T +>myMethod : (val: T) => T, Symbol(myMethod, Decl(privacyTypeParametersOfClass.ts, 7, 75)) +>val : T, Symbol(val, Decl(privacyTypeParametersOfClass.ts, 8, 13)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 7, 50)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 7, 50)) return val; ->val : T +>val : T, Symbol(val, Decl(privacyTypeParametersOfClass.ts, 8, 13)) } } export class publicClassWithPublicTypeParameters { ->publicClassWithPublicTypeParameters : publicClassWithPublicTypeParameters ->T : T ->publicClass : publicClass +>publicClassWithPublicTypeParameters : publicClassWithPublicTypeParameters, Symbol(publicClassWithPublicTypeParameters, Decl(privacyTypeParametersOfClass.ts, 11, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 13, 49)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfClass.ts, 1, 1)) myMethod(val: T): T { // No Error ->myMethod : (val: T) => T ->val : T ->T : T ->T : T +>myMethod : (val: T) => T, Symbol(myMethod, Decl(privacyTypeParametersOfClass.ts, 13, 73)) +>val : T, Symbol(val, Decl(privacyTypeParametersOfClass.ts, 14, 13)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 13, 49)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 13, 49)) return val; ->val : T +>val : T, Symbol(val, Decl(privacyTypeParametersOfClass.ts, 14, 13)) } } class privateClassWithPrivateTypeParameters { ->privateClassWithPrivateTypeParameters : privateClassWithPrivateTypeParameters ->T : T ->privateClass : privateClass +>privateClassWithPrivateTypeParameters : privateClassWithPrivateTypeParameters, Symbol(privateClassWithPrivateTypeParameters, Decl(privacyTypeParametersOfClass.ts, 17, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 19, 44)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfClass.ts, 0, 0)) myMethod(val: T): T { // No Error ->myMethod : (val: T) => T ->val : T ->T : T ->T : T +>myMethod : (val: T) => T, Symbol(myMethod, Decl(privacyTypeParametersOfClass.ts, 19, 69)) +>val : T, Symbol(val, Decl(privacyTypeParametersOfClass.ts, 20, 13)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 19, 44)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 19, 44)) return val; ->val : T +>val : T, Symbol(val, Decl(privacyTypeParametersOfClass.ts, 20, 13)) } } class privateClassWithPublicTypeParameters { ->privateClassWithPublicTypeParameters : privateClassWithPublicTypeParameters ->T : T ->publicClass : publicClass +>privateClassWithPublicTypeParameters : privateClassWithPublicTypeParameters, Symbol(privateClassWithPublicTypeParameters, Decl(privacyTypeParametersOfClass.ts, 23, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 25, 43)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfClass.ts, 1, 1)) myMethod(val: T): T { // No Error ->myMethod : (val: T) => T ->val : T ->T : T ->T : T +>myMethod : (val: T) => T, Symbol(myMethod, Decl(privacyTypeParametersOfClass.ts, 25, 67)) +>val : T, Symbol(val, Decl(privacyTypeParametersOfClass.ts, 26, 13)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 25, 43)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 25, 43)) return val; ->val : T +>val : T, Symbol(val, Decl(privacyTypeParametersOfClass.ts, 26, 13)) } } export class publicClassWithPublicTypeParametersWithoutExtends { ->publicClassWithPublicTypeParametersWithoutExtends : publicClassWithPublicTypeParametersWithoutExtends ->T : T +>publicClassWithPublicTypeParametersWithoutExtends : publicClassWithPublicTypeParametersWithoutExtends, Symbol(publicClassWithPublicTypeParametersWithoutExtends, Decl(privacyTypeParametersOfClass.ts, 29, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 31, 63)) myMethod(val: T): T { // No Error ->myMethod : (val: T) => T ->val : T ->T : T ->T : T +>myMethod : (val: T) => T, Symbol(myMethod, Decl(privacyTypeParametersOfClass.ts, 31, 67)) +>val : T, Symbol(val, Decl(privacyTypeParametersOfClass.ts, 32, 13)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 31, 63)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 31, 63)) return val; ->val : T +>val : T, Symbol(val, Decl(privacyTypeParametersOfClass.ts, 32, 13)) } } class privateClassWithPublicTypeParametersWithoutExtends { ->privateClassWithPublicTypeParametersWithoutExtends : privateClassWithPublicTypeParametersWithoutExtends ->T : T +>privateClassWithPublicTypeParametersWithoutExtends : privateClassWithPublicTypeParametersWithoutExtends, Symbol(privateClassWithPublicTypeParametersWithoutExtends, Decl(privacyTypeParametersOfClass.ts, 35, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 37, 57)) myMethod(val: T): T { // No Error ->myMethod : (val: T) => T ->val : T ->T : T ->T : T +>myMethod : (val: T) => T, Symbol(myMethod, Decl(privacyTypeParametersOfClass.ts, 37, 61)) +>val : T, Symbol(val, Decl(privacyTypeParametersOfClass.ts, 38, 13)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 37, 57)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfClass.ts, 37, 57)) return val; ->val : T +>val : T, Symbol(val, Decl(privacyTypeParametersOfClass.ts, 38, 13)) } } diff --git a/tests/baselines/reference/privacyTypeParametersOfInterface.types b/tests/baselines/reference/privacyTypeParametersOfInterface.types index 0a72d093e04..ca97e7895ed 100644 --- a/tests/baselines/reference/privacyTypeParametersOfInterface.types +++ b/tests/baselines/reference/privacyTypeParametersOfInterface.types @@ -1,199 +1,199 @@ === tests/cases/compiler/privacyTypeParametersOfInterface.ts === class privateClass { ->privateClass : privateClass +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfInterface.ts, 0, 0)) } export class publicClass { ->publicClass : publicClass +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfInterface.ts, 1, 1)) } class privateClassT { ->privateClassT : privateClassT ->T : T +>privateClassT : privateClassT, Symbol(privateClassT, Decl(privacyTypeParametersOfInterface.ts, 4, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 6, 20)) } export class publicClassT { ->publicClassT : publicClassT ->T : T +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 9, 26)) } // TypeParameter_0_of_exported_interface_1_has_or_is_using_private_type_2 export interface publicInterfaceWithPrivateTypeParameters { ->publicInterfaceWithPrivateTypeParameters : publicInterfaceWithPrivateTypeParameters ->T : T ->privateClass : privateClass +>publicInterfaceWithPrivateTypeParameters : publicInterfaceWithPrivateTypeParameters, Symbol(publicInterfaceWithPrivateTypeParameters, Decl(privacyTypeParametersOfInterface.ts, 10, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 13, 58)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfInterface.ts, 0, 0)) myMethod(val: T): T; // Error ->myMethod : (val: T) => T ->val : T ->T : T ->T : T +>myMethod : (val: T) => T, Symbol(myMethod, Decl(privacyTypeParametersOfInterface.ts, 13, 83)) +>val : T, Symbol(val, Decl(privacyTypeParametersOfInterface.ts, 14, 13)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 13, 58)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 13, 58)) myMethod0(): publicClassT; // error ->myMethod0 : () => publicClassT ->publicClassT : publicClassT ->T : T +>myMethod0 : () => publicClassT, Symbol(myMethod0, Decl(privacyTypeParametersOfInterface.ts, 14, 24)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 13, 58)) myMethod1(): privateClassT; // error ->myMethod1 : () => privateClassT ->privateClassT : privateClassT ->privateClass : privateClass +>myMethod1 : () => privateClassT, Symbol(myMethod1, Decl(privacyTypeParametersOfInterface.ts, 15, 33)) +>privateClassT : privateClassT, Symbol(privateClassT, Decl(privacyTypeParametersOfInterface.ts, 4, 1)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfInterface.ts, 0, 0)) myMethod2(): privateClassT; // error ->myMethod2 : () => privateClassT ->privateClassT : privateClassT ->publicClass : publicClass +>myMethod2 : () => privateClassT, Symbol(myMethod2, Decl(privacyTypeParametersOfInterface.ts, 16, 45)) +>privateClassT : privateClassT, Symbol(privateClassT, Decl(privacyTypeParametersOfInterface.ts, 4, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfInterface.ts, 1, 1)) myMethod3(): publicClassT; //error ->myMethod3 : () => publicClassT ->publicClassT : publicClassT ->privateClass : privateClass +>myMethod3 : () => publicClassT, Symbol(myMethod3, Decl(privacyTypeParametersOfInterface.ts, 17, 44)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfInterface.ts, 0, 0)) myMethod4(): publicClassT; // no error ->myMethod4 : () => publicClassT ->publicClassT : publicClassT ->publicClass : publicClass +>myMethod4 : () => publicClassT, Symbol(myMethod4, Decl(privacyTypeParametersOfInterface.ts, 18, 44)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfInterface.ts, 1, 1)) } export interface publicInterfaceWithPublicTypeParameters { ->publicInterfaceWithPublicTypeParameters : publicInterfaceWithPublicTypeParameters ->T : T ->publicClass : publicClass +>publicInterfaceWithPublicTypeParameters : publicInterfaceWithPublicTypeParameters, Symbol(publicInterfaceWithPublicTypeParameters, Decl(privacyTypeParametersOfInterface.ts, 20, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 22, 57)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfInterface.ts, 1, 1)) myMethod(val: T): T; // No Error ->myMethod : (val: T) => T ->val : T ->T : T ->T : T +>myMethod : (val: T) => T, Symbol(myMethod, Decl(privacyTypeParametersOfInterface.ts, 22, 81)) +>val : T, Symbol(val, Decl(privacyTypeParametersOfInterface.ts, 23, 13)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 22, 57)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 22, 57)) myMethod0(): publicClassT; // No error ->myMethod0 : () => publicClassT ->publicClassT : publicClassT ->T : T +>myMethod0 : () => publicClassT, Symbol(myMethod0, Decl(privacyTypeParametersOfInterface.ts, 23, 24)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 22, 57)) myMethod1(): privateClassT; // error ->myMethod1 : () => privateClassT ->privateClassT : privateClassT ->privateClass : privateClass +>myMethod1 : () => privateClassT, Symbol(myMethod1, Decl(privacyTypeParametersOfInterface.ts, 24, 33)) +>privateClassT : privateClassT, Symbol(privateClassT, Decl(privacyTypeParametersOfInterface.ts, 4, 1)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfInterface.ts, 0, 0)) myMethod2(): privateClassT; // error ->myMethod2 : () => privateClassT ->privateClassT : privateClassT ->publicClass : publicClass +>myMethod2 : () => privateClassT, Symbol(myMethod2, Decl(privacyTypeParametersOfInterface.ts, 25, 45)) +>privateClassT : privateClassT, Symbol(privateClassT, Decl(privacyTypeParametersOfInterface.ts, 4, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfInterface.ts, 1, 1)) myMethod3(): publicClassT; //error ->myMethod3 : () => publicClassT ->publicClassT : publicClassT ->privateClass : privateClass +>myMethod3 : () => publicClassT, Symbol(myMethod3, Decl(privacyTypeParametersOfInterface.ts, 26, 44)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfInterface.ts, 0, 0)) myMethod4(): publicClassT; // no error ->myMethod4 : () => publicClassT ->publicClassT : publicClassT ->publicClass : publicClass +>myMethod4 : () => publicClassT, Symbol(myMethod4, Decl(privacyTypeParametersOfInterface.ts, 27, 44)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfInterface.ts, 1, 1)) } interface privateInterfaceWithPrivateTypeParameters { ->privateInterfaceWithPrivateTypeParameters : privateInterfaceWithPrivateTypeParameters ->T : T ->privateClass : privateClass +>privateInterfaceWithPrivateTypeParameters : privateInterfaceWithPrivateTypeParameters, Symbol(privateInterfaceWithPrivateTypeParameters, Decl(privacyTypeParametersOfInterface.ts, 29, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 31, 52)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfInterface.ts, 0, 0)) myMethod(val: T): T; // No Error ->myMethod : (val: T) => T ->val : T ->T : T ->T : T +>myMethod : (val: T) => T, Symbol(myMethod, Decl(privacyTypeParametersOfInterface.ts, 31, 77)) +>val : T, Symbol(val, Decl(privacyTypeParametersOfInterface.ts, 32, 13)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 31, 52)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 31, 52)) myMethod0(): publicClassT; // No error ->myMethod0 : () => publicClassT ->publicClassT : publicClassT ->T : T +>myMethod0 : () => publicClassT, Symbol(myMethod0, Decl(privacyTypeParametersOfInterface.ts, 32, 24)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 31, 52)) myMethod1(): privateClassT; // No error ->myMethod1 : () => privateClassT ->privateClassT : privateClassT ->privateClass : privateClass +>myMethod1 : () => privateClassT, Symbol(myMethod1, Decl(privacyTypeParametersOfInterface.ts, 33, 33)) +>privateClassT : privateClassT, Symbol(privateClassT, Decl(privacyTypeParametersOfInterface.ts, 4, 1)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfInterface.ts, 0, 0)) myMethod2(): privateClassT; // No error ->myMethod2 : () => privateClassT ->privateClassT : privateClassT ->publicClass : publicClass +>myMethod2 : () => privateClassT, Symbol(myMethod2, Decl(privacyTypeParametersOfInterface.ts, 34, 45)) +>privateClassT : privateClassT, Symbol(privateClassT, Decl(privacyTypeParametersOfInterface.ts, 4, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfInterface.ts, 1, 1)) myMethod3(): publicClassT; //No error ->myMethod3 : () => publicClassT ->publicClassT : publicClassT ->privateClass : privateClass +>myMethod3 : () => publicClassT, Symbol(myMethod3, Decl(privacyTypeParametersOfInterface.ts, 35, 44)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfInterface.ts, 0, 0)) myMethod4(): publicClassT; // no error ->myMethod4 : () => publicClassT ->publicClassT : publicClassT ->publicClass : publicClass +>myMethod4 : () => publicClassT, Symbol(myMethod4, Decl(privacyTypeParametersOfInterface.ts, 36, 44)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfInterface.ts, 1, 1)) } interface privateInterfaceWithPublicTypeParameters { ->privateInterfaceWithPublicTypeParameters : privateInterfaceWithPublicTypeParameters ->T : T ->publicClass : publicClass +>privateInterfaceWithPublicTypeParameters : privateInterfaceWithPublicTypeParameters, Symbol(privateInterfaceWithPublicTypeParameters, Decl(privacyTypeParametersOfInterface.ts, 38, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 40, 51)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfInterface.ts, 1, 1)) myMethod(val: T): T; // No Error ->myMethod : (val: T) => T ->val : T ->T : T ->T : T +>myMethod : (val: T) => T, Symbol(myMethod, Decl(privacyTypeParametersOfInterface.ts, 40, 75)) +>val : T, Symbol(val, Decl(privacyTypeParametersOfInterface.ts, 41, 13)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 40, 51)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 40, 51)) myMethod0(): publicClassT; // No error ->myMethod0 : () => publicClassT ->publicClassT : publicClassT ->T : T +>myMethod0 : () => publicClassT, Symbol(myMethod0, Decl(privacyTypeParametersOfInterface.ts, 41, 24)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 40, 51)) myMethod1(): privateClassT; // No error ->myMethod1 : () => privateClassT ->privateClassT : privateClassT ->privateClass : privateClass +>myMethod1 : () => privateClassT, Symbol(myMethod1, Decl(privacyTypeParametersOfInterface.ts, 42, 33)) +>privateClassT : privateClassT, Symbol(privateClassT, Decl(privacyTypeParametersOfInterface.ts, 4, 1)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfInterface.ts, 0, 0)) myMethod2(): privateClassT; // No error ->myMethod2 : () => privateClassT ->privateClassT : privateClassT ->publicClass : publicClass +>myMethod2 : () => privateClassT, Symbol(myMethod2, Decl(privacyTypeParametersOfInterface.ts, 43, 45)) +>privateClassT : privateClassT, Symbol(privateClassT, Decl(privacyTypeParametersOfInterface.ts, 4, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfInterface.ts, 1, 1)) myMethod3(): publicClassT; //No error ->myMethod3 : () => publicClassT ->publicClassT : publicClassT ->privateClass : privateClass +>myMethod3 : () => publicClassT, Symbol(myMethod3, Decl(privacyTypeParametersOfInterface.ts, 44, 44)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>privateClass : privateClass, Symbol(privateClass, Decl(privacyTypeParametersOfInterface.ts, 0, 0)) myMethod4(): publicClassT; // no error ->myMethod4 : () => publicClassT ->publicClassT : publicClassT ->publicClass : publicClass +>myMethod4 : () => publicClassT, Symbol(myMethod4, Decl(privacyTypeParametersOfInterface.ts, 45, 44)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>publicClass : publicClass, Symbol(publicClass, Decl(privacyTypeParametersOfInterface.ts, 1, 1)) } export interface publicInterfaceWithPublicTypeParametersWithoutExtends { ->publicInterfaceWithPublicTypeParametersWithoutExtends : publicInterfaceWithPublicTypeParametersWithoutExtends ->T : T +>publicInterfaceWithPublicTypeParametersWithoutExtends : publicInterfaceWithPublicTypeParametersWithoutExtends, Symbol(publicInterfaceWithPublicTypeParametersWithoutExtends, Decl(privacyTypeParametersOfInterface.ts, 47, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 49, 71)) myMethod(val: T): T; // No Error ->myMethod : (val: T) => T ->val : T ->T : T ->T : T +>myMethod : (val: T) => T, Symbol(myMethod, Decl(privacyTypeParametersOfInterface.ts, 49, 75)) +>val : T, Symbol(val, Decl(privacyTypeParametersOfInterface.ts, 50, 13)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 49, 71)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 49, 71)) myMethod0(): publicClassT; // No error ->myMethod0 : () => publicClassT ->publicClassT : publicClassT ->T : T +>myMethod0 : () => publicClassT, Symbol(myMethod0, Decl(privacyTypeParametersOfInterface.ts, 50, 24)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 49, 71)) } interface privateInterfaceWithPublicTypeParametersWithoutExtends { ->privateInterfaceWithPublicTypeParametersWithoutExtends : privateInterfaceWithPublicTypeParametersWithoutExtends ->T : T +>privateInterfaceWithPublicTypeParametersWithoutExtends : privateInterfaceWithPublicTypeParametersWithoutExtends, Symbol(privateInterfaceWithPublicTypeParametersWithoutExtends, Decl(privacyTypeParametersOfInterface.ts, 52, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 54, 65)) myMethod(val: T): T; // No Error ->myMethod : (val: T) => T ->val : T ->T : T ->T : T +>myMethod : (val: T) => T, Symbol(myMethod, Decl(privacyTypeParametersOfInterface.ts, 54, 69)) +>val : T, Symbol(val, Decl(privacyTypeParametersOfInterface.ts, 55, 13)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 54, 65)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 54, 65)) myMethod0(): publicClassT; // No error ->myMethod0 : () => publicClassT ->publicClassT : publicClassT ->T : T +>myMethod0 : () => publicClassT, Symbol(myMethod0, Decl(privacyTypeParametersOfInterface.ts, 55, 24)) +>publicClassT : publicClassT, Symbol(publicClassT, Decl(privacyTypeParametersOfInterface.ts, 7, 1)) +>T : T, Symbol(T, Decl(privacyTypeParametersOfInterface.ts, 54, 65)) } diff --git a/tests/baselines/reference/privacyVar.types b/tests/baselines/reference/privacyVar.types index b5a96afb9e6..de5e5ee9200 100644 --- a/tests/baselines/reference/privacyVar.types +++ b/tests/baselines/reference/privacyVar.types @@ -1,609 +1,609 @@ === tests/cases/compiler/privacyVar.ts === export module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(privacyVar.ts, 0, 0)) export class C1_public { ->C1_public : C1_public +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyVar.ts, 1, 28)) } } class C2_private { ->C2_private : C2_private +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) } export class C3_public { ->C3_public : C3_public +>C3_public : C3_public, Symbol(C3_public, Decl(privacyVar.ts, 7, 5)) private C3_v1_private: C1_public; ->C3_v1_private : C1_public ->C1_public : C1_public +>C3_v1_private : C1_public, Symbol(C3_v1_private, Decl(privacyVar.ts, 9, 28)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) public C3_v2_public: C1_public; ->C3_v2_public : C1_public ->C1_public : C1_public +>C3_v2_public : C1_public, Symbol(C3_v2_public, Decl(privacyVar.ts, 10, 41)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) private C3_v3_private: C2_private; ->C3_v3_private : C2_private ->C2_private : C2_private +>C3_v3_private : C2_private, Symbol(C3_v3_private, Decl(privacyVar.ts, 11, 39)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) public C3_v4_public: C2_private; // error ->C3_v4_public : C2_private ->C2_private : C2_private +>C3_v4_public : C2_private, Symbol(C3_v4_public, Decl(privacyVar.ts, 12, 42)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) private C3_v11_private = new C1_public(); ->C3_v11_private : C1_public +>C3_v11_private : C1_public, Symbol(C3_v11_private, Decl(privacyVar.ts, 13, 40)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) public C3_v12_public = new C1_public(); ->C3_v12_public : C1_public +>C3_v12_public : C1_public, Symbol(C3_v12_public, Decl(privacyVar.ts, 15, 49)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) private C3_v13_private = new C2_private(); ->C3_v13_private : C2_private +>C3_v13_private : C2_private, Symbol(C3_v13_private, Decl(privacyVar.ts, 16, 47)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) public C3_v14_public = new C2_private(); // error ->C3_v14_public : C2_private +>C3_v14_public : C2_private, Symbol(C3_v14_public, Decl(privacyVar.ts, 17, 50)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) private C3_v21_private: C1_public = new C1_public(); ->C3_v21_private : C1_public ->C1_public : C1_public +>C3_v21_private : C1_public, Symbol(C3_v21_private, Decl(privacyVar.ts, 18, 48)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) public C3_v22_public: C1_public = new C1_public(); ->C3_v22_public : C1_public ->C1_public : C1_public +>C3_v22_public : C1_public, Symbol(C3_v22_public, Decl(privacyVar.ts, 20, 60)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) private C3_v23_private: C2_private = new C2_private(); ->C3_v23_private : C2_private ->C2_private : C2_private +>C3_v23_private : C2_private, Symbol(C3_v23_private, Decl(privacyVar.ts, 21, 58)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) public C3_v24_public: C2_private = new C2_private(); // error ->C3_v24_public : C2_private ->C2_private : C2_private +>C3_v24_public : C2_private, Symbol(C3_v24_public, Decl(privacyVar.ts, 22, 62)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) } class C4_public { ->C4_public : C4_public +>C4_public : C4_public, Symbol(C4_public, Decl(privacyVar.ts, 24, 5)) private C4_v1_private: C1_public; ->C4_v1_private : C1_public ->C1_public : C1_public +>C4_v1_private : C1_public, Symbol(C4_v1_private, Decl(privacyVar.ts, 26, 21)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) public C4_v2_public: C1_public; ->C4_v2_public : C1_public ->C1_public : C1_public +>C4_v2_public : C1_public, Symbol(C4_v2_public, Decl(privacyVar.ts, 27, 41)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) private C4_v3_private: C2_private; ->C4_v3_private : C2_private ->C2_private : C2_private +>C4_v3_private : C2_private, Symbol(C4_v3_private, Decl(privacyVar.ts, 28, 39)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) public C4_v4_public: C2_private; ->C4_v4_public : C2_private ->C2_private : C2_private +>C4_v4_public : C2_private, Symbol(C4_v4_public, Decl(privacyVar.ts, 29, 42)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) private C4_v11_private = new C1_public(); ->C4_v11_private : C1_public +>C4_v11_private : C1_public, Symbol(C4_v11_private, Decl(privacyVar.ts, 30, 40)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) public C4_v12_public = new C1_public(); ->C4_v12_public : C1_public +>C4_v12_public : C1_public, Symbol(C4_v12_public, Decl(privacyVar.ts, 32, 49)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) private C4_v13_private = new C2_private(); ->C4_v13_private : C2_private +>C4_v13_private : C2_private, Symbol(C4_v13_private, Decl(privacyVar.ts, 33, 47)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) public C4_v14_public = new C2_private(); ->C4_v14_public : C2_private +>C4_v14_public : C2_private, Symbol(C4_v14_public, Decl(privacyVar.ts, 34, 50)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) private C4_v21_private: C1_public = new C1_public(); ->C4_v21_private : C1_public ->C1_public : C1_public +>C4_v21_private : C1_public, Symbol(C4_v21_private, Decl(privacyVar.ts, 35, 48)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) public C4_v22_public: C1_public = new C1_public(); ->C4_v22_public : C1_public ->C1_public : C1_public +>C4_v22_public : C1_public, Symbol(C4_v22_public, Decl(privacyVar.ts, 37, 60)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) private C4_v23_private: C2_private = new C2_private(); ->C4_v23_private : C2_private ->C2_private : C2_private +>C4_v23_private : C2_private, Symbol(C4_v23_private, Decl(privacyVar.ts, 38, 58)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) public C4_v24_public: C2_private = new C2_private(); ->C4_v24_public : C2_private ->C2_private : C2_private +>C4_v24_public : C2_private, Symbol(C4_v24_public, Decl(privacyVar.ts, 39, 62)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) } var m1_v1_private: C1_public; ->m1_v1_private : C1_public ->C1_public : C1_public +>m1_v1_private : C1_public, Symbol(m1_v1_private, Decl(privacyVar.ts, 43, 7)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) export var m1_v2_public: C1_public; ->m1_v2_public : C1_public ->C1_public : C1_public +>m1_v2_public : C1_public, Symbol(m1_v2_public, Decl(privacyVar.ts, 44, 14)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) var m1_v3_private: C2_private; ->m1_v3_private : C2_private ->C2_private : C2_private +>m1_v3_private : C2_private, Symbol(m1_v3_private, Decl(privacyVar.ts, 45, 7)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) export var m1_v4_public: C2_private; // error ->m1_v4_public : C2_private ->C2_private : C2_private +>m1_v4_public : C2_private, Symbol(m1_v4_public, Decl(privacyVar.ts, 46, 14)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) var m1_v11_private = new C1_public(); ->m1_v11_private : C1_public +>m1_v11_private : C1_public, Symbol(m1_v11_private, Decl(privacyVar.ts, 48, 7)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) export var m1_v12_public = new C1_public(); ->m1_v12_public : C1_public +>m1_v12_public : C1_public, Symbol(m1_v12_public, Decl(privacyVar.ts, 49, 14)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) var m1_v13_private = new C2_private(); ->m1_v13_private : C2_private +>m1_v13_private : C2_private, Symbol(m1_v13_private, Decl(privacyVar.ts, 50, 7)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) export var m1_v14_public = new C2_private(); //error ->m1_v14_public : C2_private +>m1_v14_public : C2_private, Symbol(m1_v14_public, Decl(privacyVar.ts, 51, 14)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) var m1_v21_private: C1_public = new C1_public(); ->m1_v21_private : C1_public ->C1_public : C1_public +>m1_v21_private : C1_public, Symbol(m1_v21_private, Decl(privacyVar.ts, 53, 7)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) export var m1_v22_public: C1_public = new C1_public(); ->m1_v22_public : C1_public ->C1_public : C1_public +>m1_v22_public : C1_public, Symbol(m1_v22_public, Decl(privacyVar.ts, 54, 14)) +>C1_public : C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) >new C1_public() : C1_public ->C1_public : typeof C1_public +>C1_public : typeof C1_public, Symbol(C1_public, Decl(privacyVar.ts, 0, 18)) var m1_v23_private: C2_private = new C2_private(); ->m1_v23_private : C2_private ->C2_private : C2_private +>m1_v23_private : C2_private, Symbol(m1_v23_private, Decl(privacyVar.ts, 55, 7)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) export var m1_v24_public: C2_private = new C2_private(); // error ->m1_v24_public : C2_private ->C2_private : C2_private +>m1_v24_public : C2_private, Symbol(m1_v24_public, Decl(privacyVar.ts, 56, 14)) +>C2_private : C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) >new C2_private() : C2_private ->C2_private : typeof C2_private +>C2_private : typeof C2_private, Symbol(C2_private, Decl(privacyVar.ts, 4, 5)) } module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(privacyVar.ts, 57, 1)) export class m2_C1_public { ->m2_C1_public : m2_C1_public +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyVar.ts, 60, 31)) } } class m2_C2_private { ->m2_C2_private : m2_C2_private +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) } export class m2_C3_public { ->m2_C3_public : m2_C3_public +>m2_C3_public : m2_C3_public, Symbol(m2_C3_public, Decl(privacyVar.ts, 66, 5)) private m2_C3_v1_private: m2_C1_public; ->m2_C3_v1_private : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_C3_v1_private : m2_C1_public, Symbol(m2_C3_v1_private, Decl(privacyVar.ts, 68, 31)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) public m2_C3_v2_public: m2_C1_public; ->m2_C3_v2_public : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_C3_v2_public : m2_C1_public, Symbol(m2_C3_v2_public, Decl(privacyVar.ts, 69, 47)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) private m2_C3_v3_private: m2_C2_private; ->m2_C3_v3_private : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_C3_v3_private : m2_C2_private, Symbol(m2_C3_v3_private, Decl(privacyVar.ts, 70, 45)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) public m2_C3_v4_public: m2_C2_private; ->m2_C3_v4_public : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_C3_v4_public : m2_C2_private, Symbol(m2_C3_v4_public, Decl(privacyVar.ts, 71, 48)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) private m2_C3_v11_private = new m2_C1_public(); ->m2_C3_v11_private : m2_C1_public +>m2_C3_v11_private : m2_C1_public, Symbol(m2_C3_v11_private, Decl(privacyVar.ts, 72, 46)) >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) public m2_C3_v12_public = new m2_C1_public(); ->m2_C3_v12_public : m2_C1_public +>m2_C3_v12_public : m2_C1_public, Symbol(m2_C3_v12_public, Decl(privacyVar.ts, 74, 55)) >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) private m2_C3_v13_private = new m2_C2_private(); ->m2_C3_v13_private : m2_C2_private +>m2_C3_v13_private : m2_C2_private, Symbol(m2_C3_v13_private, Decl(privacyVar.ts, 75, 53)) >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) public m2_C3_v14_public = new m2_C2_private(); ->m2_C3_v14_public : m2_C2_private +>m2_C3_v14_public : m2_C2_private, Symbol(m2_C3_v14_public, Decl(privacyVar.ts, 76, 56)) >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) private m2_C3_v21_private: m2_C1_public = new m2_C1_public(); ->m2_C3_v21_private : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_C3_v21_private : m2_C1_public, Symbol(m2_C3_v21_private, Decl(privacyVar.ts, 77, 54)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) public m2_C3_v22_public: m2_C1_public = new m2_C1_public(); ->m2_C3_v22_public : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_C3_v22_public : m2_C1_public, Symbol(m2_C3_v22_public, Decl(privacyVar.ts, 79, 69)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) private m2_C3_v23_private: m2_C2_private = new m2_C2_private(); ->m2_C3_v23_private : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_C3_v23_private : m2_C2_private, Symbol(m2_C3_v23_private, Decl(privacyVar.ts, 80, 67)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) public m2_C3_v24_public: m2_C2_private = new m2_C2_private(); ->m2_C3_v24_public : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_C3_v24_public : m2_C2_private, Symbol(m2_C3_v24_public, Decl(privacyVar.ts, 81, 71)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) } class m2_C4_public { ->m2_C4_public : m2_C4_public +>m2_C4_public : m2_C4_public, Symbol(m2_C4_public, Decl(privacyVar.ts, 83, 5)) private m2_C4_v1_private: m2_C1_public; ->m2_C4_v1_private : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_C4_v1_private : m2_C1_public, Symbol(m2_C4_v1_private, Decl(privacyVar.ts, 85, 24)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) public m2_C4_v2_public: m2_C1_public; ->m2_C4_v2_public : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_C4_v2_public : m2_C1_public, Symbol(m2_C4_v2_public, Decl(privacyVar.ts, 86, 47)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) private m2_C4_v3_private: m2_C2_private; ->m2_C4_v3_private : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_C4_v3_private : m2_C2_private, Symbol(m2_C4_v3_private, Decl(privacyVar.ts, 87, 45)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) public m2_C4_v4_public: m2_C2_private; ->m2_C4_v4_public : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_C4_v4_public : m2_C2_private, Symbol(m2_C4_v4_public, Decl(privacyVar.ts, 88, 48)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) private m2_C4_v11_private = new m2_C1_public(); ->m2_C4_v11_private : m2_C1_public +>m2_C4_v11_private : m2_C1_public, Symbol(m2_C4_v11_private, Decl(privacyVar.ts, 89, 46)) >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) public m2_C4_v12_public = new m2_C1_public(); ->m2_C4_v12_public : m2_C1_public +>m2_C4_v12_public : m2_C1_public, Symbol(m2_C4_v12_public, Decl(privacyVar.ts, 91, 55)) >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) private m2_C4_v13_private = new m2_C2_private(); ->m2_C4_v13_private : m2_C2_private +>m2_C4_v13_private : m2_C2_private, Symbol(m2_C4_v13_private, Decl(privacyVar.ts, 92, 53)) >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) public m2_C4_v14_public = new m2_C2_private(); ->m2_C4_v14_public : m2_C2_private +>m2_C4_v14_public : m2_C2_private, Symbol(m2_C4_v14_public, Decl(privacyVar.ts, 93, 56)) >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) private m2_C4_v21_private: m2_C1_public = new m2_C1_public(); ->m2_C4_v21_private : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_C4_v21_private : m2_C1_public, Symbol(m2_C4_v21_private, Decl(privacyVar.ts, 94, 54)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) public m2_C4_v22_public: m2_C1_public = new m2_C1_public(); ->m2_C4_v22_public : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_C4_v22_public : m2_C1_public, Symbol(m2_C4_v22_public, Decl(privacyVar.ts, 96, 69)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) private m2_C4_v23_private: m2_C2_private = new m2_C2_private(); ->m2_C4_v23_private : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_C4_v23_private : m2_C2_private, Symbol(m2_C4_v23_private, Decl(privacyVar.ts, 97, 67)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) public m2_C4_v24_public: m2_C2_private = new m2_C2_private(); ->m2_C4_v24_public : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_C4_v24_public : m2_C2_private, Symbol(m2_C4_v24_public, Decl(privacyVar.ts, 98, 71)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) } var m2_v1_private: m2_C1_public; ->m2_v1_private : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_v1_private : m2_C1_public, Symbol(m2_v1_private, Decl(privacyVar.ts, 102, 7)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) export var m2_v2_public: m2_C1_public; ->m2_v2_public : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_v2_public : m2_C1_public, Symbol(m2_v2_public, Decl(privacyVar.ts, 103, 14)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) var m2_v3_private: m2_C2_private; ->m2_v3_private : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_v3_private : m2_C2_private, Symbol(m2_v3_private, Decl(privacyVar.ts, 104, 7)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) export var m2_v4_public: m2_C2_private; ->m2_v4_public : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_v4_public : m2_C2_private, Symbol(m2_v4_public, Decl(privacyVar.ts, 105, 14)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) var m2_v11_private = new m2_C1_public(); ->m2_v11_private : m2_C1_public +>m2_v11_private : m2_C1_public, Symbol(m2_v11_private, Decl(privacyVar.ts, 107, 7)) >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) export var m2_v12_public = new m2_C1_public(); ->m2_v12_public : m2_C1_public +>m2_v12_public : m2_C1_public, Symbol(m2_v12_public, Decl(privacyVar.ts, 108, 14)) >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) var m2_v13_private = new m2_C2_private(); ->m2_v13_private : m2_C2_private +>m2_v13_private : m2_C2_private, Symbol(m2_v13_private, Decl(privacyVar.ts, 109, 7)) >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) export var m2_v14_public = new m2_C2_private(); ->m2_v14_public : m2_C2_private +>m2_v14_public : m2_C2_private, Symbol(m2_v14_public, Decl(privacyVar.ts, 110, 14)) >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) var m2_v21_private: m2_C1_public = new m2_C1_public(); ->m2_v21_private : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_v21_private : m2_C1_public, Symbol(m2_v21_private, Decl(privacyVar.ts, 112, 7)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) export var m2_v22_public: m2_C1_public = new m2_C1_public(); ->m2_v22_public : m2_C1_public ->m2_C1_public : m2_C1_public +>m2_v22_public : m2_C1_public, Symbol(m2_v22_public, Decl(privacyVar.ts, 113, 14)) +>m2_C1_public : m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) >new m2_C1_public() : m2_C1_public ->m2_C1_public : typeof m2_C1_public +>m2_C1_public : typeof m2_C1_public, Symbol(m2_C1_public, Decl(privacyVar.ts, 59, 11)) var m2_v23_private: m2_C2_private = new m2_C2_private(); ->m2_v23_private : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_v23_private : m2_C2_private, Symbol(m2_v23_private, Decl(privacyVar.ts, 114, 7)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) export var m2_v24_public: m2_C2_private = new m2_C2_private(); ->m2_v24_public : m2_C2_private ->m2_C2_private : m2_C2_private +>m2_v24_public : m2_C2_private, Symbol(m2_v24_public, Decl(privacyVar.ts, 115, 14)) +>m2_C2_private : m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) >new m2_C2_private() : m2_C2_private ->m2_C2_private : typeof m2_C2_private +>m2_C2_private : typeof m2_C2_private, Symbol(m2_C2_private, Decl(privacyVar.ts, 63, 5)) } export class glo_C1_public { ->glo_C1_public : glo_C1_public +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) private f1() { ->f1 : () => void +>f1 : () => void, Symbol(f1, Decl(privacyVar.ts, 118, 28)) } } class glo_C2_private { ->glo_C2_private : glo_C2_private +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) } export class glo_C3_public { ->glo_C3_public : glo_C3_public +>glo_C3_public : glo_C3_public, Symbol(glo_C3_public, Decl(privacyVar.ts, 124, 1)) private glo_C3_v1_private: glo_C1_public; ->glo_C3_v1_private : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_C3_v1_private : glo_C1_public, Symbol(glo_C3_v1_private, Decl(privacyVar.ts, 126, 28)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) public glo_C3_v2_public: glo_C1_public; ->glo_C3_v2_public : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_C3_v2_public : glo_C1_public, Symbol(glo_C3_v2_public, Decl(privacyVar.ts, 127, 45)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) private glo_C3_v3_private: glo_C2_private; ->glo_C3_v3_private : glo_C2_private ->glo_C2_private : glo_C2_private +>glo_C3_v3_private : glo_C2_private, Symbol(glo_C3_v3_private, Decl(privacyVar.ts, 128, 43)) +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) public glo_C3_v4_public: glo_C2_private; //error ->glo_C3_v4_public : glo_C2_private ->glo_C2_private : glo_C2_private +>glo_C3_v4_public : glo_C2_private, Symbol(glo_C3_v4_public, Decl(privacyVar.ts, 129, 46)) +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) private glo_C3_v11_private = new glo_C1_public(); ->glo_C3_v11_private : glo_C1_public +>glo_C3_v11_private : glo_C1_public, Symbol(glo_C3_v11_private, Decl(privacyVar.ts, 130, 44)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) public glo_C3_v12_public = new glo_C1_public(); ->glo_C3_v12_public : glo_C1_public +>glo_C3_v12_public : glo_C1_public, Symbol(glo_C3_v12_public, Decl(privacyVar.ts, 132, 53)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) private glo_C3_v13_private = new glo_C2_private(); ->glo_C3_v13_private : glo_C2_private +>glo_C3_v13_private : glo_C2_private, Symbol(glo_C3_v13_private, Decl(privacyVar.ts, 133, 51)) >new glo_C2_private() : glo_C2_private ->glo_C2_private : typeof glo_C2_private +>glo_C2_private : typeof glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) public glo_C3_v14_public = new glo_C2_private(); // error ->glo_C3_v14_public : glo_C2_private +>glo_C3_v14_public : glo_C2_private, Symbol(glo_C3_v14_public, Decl(privacyVar.ts, 134, 54)) >new glo_C2_private() : glo_C2_private ->glo_C2_private : typeof glo_C2_private +>glo_C2_private : typeof glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) private glo_C3_v21_private: glo_C1_public = new glo_C1_public(); ->glo_C3_v21_private : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_C3_v21_private : glo_C1_public, Symbol(glo_C3_v21_private, Decl(privacyVar.ts, 135, 52)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) public glo_C3_v22_public: glo_C1_public = new glo_C1_public(); ->glo_C3_v22_public : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_C3_v22_public : glo_C1_public, Symbol(glo_C3_v22_public, Decl(privacyVar.ts, 137, 68)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) private glo_C3_v23_private: glo_C2_private = new glo_C2_private(); ->glo_C3_v23_private : glo_C2_private ->glo_C2_private : glo_C2_private +>glo_C3_v23_private : glo_C2_private, Symbol(glo_C3_v23_private, Decl(privacyVar.ts, 138, 66)) +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) >new glo_C2_private() : glo_C2_private ->glo_C2_private : typeof glo_C2_private +>glo_C2_private : typeof glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) public glo_C3_v24_public: glo_C2_private = new glo_C2_private(); //error ->glo_C3_v24_public : glo_C2_private ->glo_C2_private : glo_C2_private +>glo_C3_v24_public : glo_C2_private, Symbol(glo_C3_v24_public, Decl(privacyVar.ts, 139, 70)) +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) >new glo_C2_private() : glo_C2_private ->glo_C2_private : typeof glo_C2_private +>glo_C2_private : typeof glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) } class glo_C4_public { ->glo_C4_public : glo_C4_public +>glo_C4_public : glo_C4_public, Symbol(glo_C4_public, Decl(privacyVar.ts, 141, 1)) private glo_C4_v1_private: glo_C1_public; ->glo_C4_v1_private : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_C4_v1_private : glo_C1_public, Symbol(glo_C4_v1_private, Decl(privacyVar.ts, 143, 21)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) public glo_C4_v2_public: glo_C1_public; ->glo_C4_v2_public : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_C4_v2_public : glo_C1_public, Symbol(glo_C4_v2_public, Decl(privacyVar.ts, 144, 45)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) private glo_C4_v3_private: glo_C2_private; ->glo_C4_v3_private : glo_C2_private ->glo_C2_private : glo_C2_private +>glo_C4_v3_private : glo_C2_private, Symbol(glo_C4_v3_private, Decl(privacyVar.ts, 145, 43)) +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) public glo_C4_v4_public: glo_C2_private; ->glo_C4_v4_public : glo_C2_private ->glo_C2_private : glo_C2_private +>glo_C4_v4_public : glo_C2_private, Symbol(glo_C4_v4_public, Decl(privacyVar.ts, 146, 46)) +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) private glo_C4_v11_private = new glo_C1_public(); ->glo_C4_v11_private : glo_C1_public +>glo_C4_v11_private : glo_C1_public, Symbol(glo_C4_v11_private, Decl(privacyVar.ts, 147, 44)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) public glo_C4_v12_public = new glo_C1_public(); ->glo_C4_v12_public : glo_C1_public +>glo_C4_v12_public : glo_C1_public, Symbol(glo_C4_v12_public, Decl(privacyVar.ts, 149, 53)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) private glo_C4_v13_private = new glo_C2_private(); ->glo_C4_v13_private : glo_C2_private +>glo_C4_v13_private : glo_C2_private, Symbol(glo_C4_v13_private, Decl(privacyVar.ts, 150, 51)) >new glo_C2_private() : glo_C2_private ->glo_C2_private : typeof glo_C2_private +>glo_C2_private : typeof glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) public glo_C4_v14_public = new glo_C2_private(); ->glo_C4_v14_public : glo_C2_private +>glo_C4_v14_public : glo_C2_private, Symbol(glo_C4_v14_public, Decl(privacyVar.ts, 151, 54)) >new glo_C2_private() : glo_C2_private ->glo_C2_private : typeof glo_C2_private +>glo_C2_private : typeof glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) private glo_C4_v21_private: glo_C1_public = new glo_C1_public(); ->glo_C4_v21_private : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_C4_v21_private : glo_C1_public, Symbol(glo_C4_v21_private, Decl(privacyVar.ts, 152, 52)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) public glo_C4_v22_public: glo_C1_public = new glo_C1_public(); ->glo_C4_v22_public : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_C4_v22_public : glo_C1_public, Symbol(glo_C4_v22_public, Decl(privacyVar.ts, 154, 68)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) private glo_C4_v23_private: glo_C2_private = new glo_C2_private(); ->glo_C4_v23_private : glo_C2_private ->glo_C2_private : glo_C2_private +>glo_C4_v23_private : glo_C2_private, Symbol(glo_C4_v23_private, Decl(privacyVar.ts, 155, 66)) +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) >new glo_C2_private() : glo_C2_private ->glo_C2_private : typeof glo_C2_private +>glo_C2_private : typeof glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) public glo_C4_v24_public: glo_C2_private = new glo_C2_private(); ->glo_C4_v24_public : glo_C2_private ->glo_C2_private : glo_C2_private +>glo_C4_v24_public : glo_C2_private, Symbol(glo_C4_v24_public, Decl(privacyVar.ts, 156, 70)) +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) >new glo_C2_private() : glo_C2_private ->glo_C2_private : typeof glo_C2_private +>glo_C2_private : typeof glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) } var glo_v1_private: glo_C1_public; ->glo_v1_private : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_v1_private : glo_C1_public, Symbol(glo_v1_private, Decl(privacyVar.ts, 160, 3)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) export var glo_v2_public: glo_C1_public; ->glo_v2_public : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_v2_public : glo_C1_public, Symbol(glo_v2_public, Decl(privacyVar.ts, 161, 10)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) var glo_v3_private: glo_C2_private; ->glo_v3_private : glo_C2_private ->glo_C2_private : glo_C2_private +>glo_v3_private : glo_C2_private, Symbol(glo_v3_private, Decl(privacyVar.ts, 162, 3)) +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) export var glo_v4_public: glo_C2_private; // error ->glo_v4_public : glo_C2_private ->glo_C2_private : glo_C2_private +>glo_v4_public : glo_C2_private, Symbol(glo_v4_public, Decl(privacyVar.ts, 163, 10)) +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) var glo_v11_private = new glo_C1_public(); ->glo_v11_private : glo_C1_public +>glo_v11_private : glo_C1_public, Symbol(glo_v11_private, Decl(privacyVar.ts, 165, 3)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) export var glo_v12_public = new glo_C1_public(); ->glo_v12_public : glo_C1_public +>glo_v12_public : glo_C1_public, Symbol(glo_v12_public, Decl(privacyVar.ts, 166, 10)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) var glo_v13_private = new glo_C2_private(); ->glo_v13_private : glo_C2_private +>glo_v13_private : glo_C2_private, Symbol(glo_v13_private, Decl(privacyVar.ts, 167, 3)) >new glo_C2_private() : glo_C2_private ->glo_C2_private : typeof glo_C2_private +>glo_C2_private : typeof glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) export var glo_v14_public = new glo_C2_private(); // error ->glo_v14_public : glo_C2_private +>glo_v14_public : glo_C2_private, Symbol(glo_v14_public, Decl(privacyVar.ts, 168, 10)) >new glo_C2_private() : glo_C2_private ->glo_C2_private : typeof glo_C2_private +>glo_C2_private : typeof glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) var glo_v21_private: glo_C1_public = new glo_C1_public(); ->glo_v21_private : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_v21_private : glo_C1_public, Symbol(glo_v21_private, Decl(privacyVar.ts, 170, 3)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) export var glo_v22_public: glo_C1_public = new glo_C1_public(); ->glo_v22_public : glo_C1_public ->glo_C1_public : glo_C1_public +>glo_v22_public : glo_C1_public, Symbol(glo_v22_public, Decl(privacyVar.ts, 171, 10)) +>glo_C1_public : glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) >new glo_C1_public() : glo_C1_public ->glo_C1_public : typeof glo_C1_public +>glo_C1_public : typeof glo_C1_public, Symbol(glo_C1_public, Decl(privacyVar.ts, 116, 1)) var glo_v23_private: glo_C2_private = new glo_C2_private(); ->glo_v23_private : glo_C2_private ->glo_C2_private : glo_C2_private +>glo_v23_private : glo_C2_private, Symbol(glo_v23_private, Decl(privacyVar.ts, 172, 3)) +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) >new glo_C2_private() : glo_C2_private ->glo_C2_private : typeof glo_C2_private +>glo_C2_private : typeof glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) export var glo_v24_public: glo_C2_private = new glo_C2_private(); // error ->glo_v24_public : glo_C2_private ->glo_C2_private : glo_C2_private +>glo_v24_public : glo_C2_private, Symbol(glo_v24_public, Decl(privacyVar.ts, 173, 10)) +>glo_C2_private : glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) >new glo_C2_private() : glo_C2_private ->glo_C2_private : typeof glo_C2_private +>glo_C2_private : typeof glo_C2_private, Symbol(glo_C2_private, Decl(privacyVar.ts, 121, 1)) diff --git a/tests/baselines/reference/privateIndexer2.js b/tests/baselines/reference/privateIndexer2.js index a90e03a5bc2..1268c6e4c25 100644 --- a/tests/baselines/reference/privateIndexer2.js +++ b/tests/baselines/reference/privateIndexer2.js @@ -14,6 +14,7 @@ var y: { var x = (_a = {}, _a[x] = string, _a.string = , - _a); + _a +); var y; var _a; diff --git a/tests/baselines/reference/privateInstanceVisibility.types b/tests/baselines/reference/privateInstanceVisibility.types index 109309ceb76..b1269a432c8 100644 --- a/tests/baselines/reference/privateInstanceVisibility.types +++ b/tests/baselines/reference/privateInstanceVisibility.types @@ -1,30 +1,30 @@ === tests/cases/compiler/privateInstanceVisibility.ts === module Test { ->Test : typeof Test +>Test : typeof Test, Symbol(Test, Decl(privateInstanceVisibility.ts, 0, 0)) export class Example { ->Example : Example +>Example : Example, Symbol(Example, Decl(privateInstanceVisibility.ts, 0, 13)) private someNumber: number; ->someNumber : number +>someNumber : number, Symbol(someNumber, Decl(privateInstanceVisibility.ts, 2, 26)) public doSomething() { ->doSomething : () => void +>doSomething : () => void, Symbol(doSomething, Decl(privateInstanceVisibility.ts, 4, 35)) var that = this; ->that : Example ->this : Example +>that : Example, Symbol(that, Decl(privateInstanceVisibility.ts, 10, 15)) +>this : Example, Symbol(Example, Decl(privateInstanceVisibility.ts, 0, 13)) function innerFunction() { ->innerFunction : () => void +>innerFunction : () => void, Symbol(innerFunction, Decl(privateInstanceVisibility.ts, 10, 28)) var num = that.someNumber; ->num : number ->that.someNumber : number ->that : Example ->someNumber : number +>num : number, Symbol(num, Decl(privateInstanceVisibility.ts, 14, 19)) +>that.someNumber : number, Symbol(someNumber, Decl(privateInstanceVisibility.ts, 2, 26)) +>that : Example, Symbol(that, Decl(privateInstanceVisibility.ts, 10, 15)) +>someNumber : number, Symbol(someNumber, Decl(privateInstanceVisibility.ts, 2, 26)) } @@ -37,30 +37,30 @@ module Test { class C { ->C : C +>C : C, Symbol(C, Decl(privateInstanceVisibility.ts, 22, 1)) private x: number; ->x : number +>x : number, Symbol(x, Decl(privateInstanceVisibility.ts, 26, 9)) getX() { return this.x; } ->getX : () => number ->this.x : number ->this : C ->x : number +>getX : () => number, Symbol(getX, Decl(privateInstanceVisibility.ts, 28, 22)) +>this.x : number, Symbol(x, Decl(privateInstanceVisibility.ts, 26, 9)) +>this : C, Symbol(C, Decl(privateInstanceVisibility.ts, 22, 1)) +>x : number, Symbol(x, Decl(privateInstanceVisibility.ts, 26, 9)) clone(other: C) { ->clone : (other: C) => void ->other : C ->C : C +>clone : (other: C) => void, Symbol(clone, Decl(privateInstanceVisibility.ts, 30, 29)) +>other : C, Symbol(other, Decl(privateInstanceVisibility.ts, 32, 10)) +>C : C, Symbol(C, Decl(privateInstanceVisibility.ts, 22, 1)) this.x = other.x; >this.x = other.x : number ->this.x : number ->this : C ->x : number ->other.x : number ->other : C ->x : number +>this.x : number, Symbol(x, Decl(privateInstanceVisibility.ts, 26, 9)) +>this : C, Symbol(C, Decl(privateInstanceVisibility.ts, 22, 1)) +>x : number, Symbol(x, Decl(privateInstanceVisibility.ts, 26, 9)) +>other.x : number, Symbol(x, Decl(privateInstanceVisibility.ts, 26, 9)) +>other : C, Symbol(other, Decl(privateInstanceVisibility.ts, 32, 10)) +>x : number, Symbol(x, Decl(privateInstanceVisibility.ts, 26, 9)) } } diff --git a/tests/baselines/reference/privatePropertyUsingObjectType.types b/tests/baselines/reference/privatePropertyUsingObjectType.types index 4c6b6820fc0..9b3cc74b4c6 100644 --- a/tests/baselines/reference/privatePropertyUsingObjectType.types +++ b/tests/baselines/reference/privatePropertyUsingObjectType.types @@ -1,28 +1,28 @@ === tests/cases/compiler/privatePropertyUsingObjectType.ts === export class FilterManager { ->FilterManager : FilterManager +>FilterManager : FilterManager, Symbol(FilterManager, Decl(privatePropertyUsingObjectType.ts, 0, 0)) private _filterProviders: { index: IFilterProvider; }; ->_filterProviders : { index: IFilterProvider; } ->index : IFilterProvider ->IFilterProvider : IFilterProvider +>_filterProviders : { index: IFilterProvider; }, Symbol(_filterProviders, Decl(privatePropertyUsingObjectType.ts, 0, 28)) +>index : IFilterProvider, Symbol(index, Decl(privatePropertyUsingObjectType.ts, 1, 31)) +>IFilterProvider : IFilterProvider, Symbol(IFilterProvider, Decl(privatePropertyUsingObjectType.ts, 5, 1)) private _filterProviders2: { [index: number]: IFilterProvider; }; ->_filterProviders2 : { [index: number]: IFilterProvider; } ->index : number ->IFilterProvider : IFilterProvider +>_filterProviders2 : { [index: number]: IFilterProvider; }, Symbol(_filterProviders2, Decl(privatePropertyUsingObjectType.ts, 1, 58)) +>index : number, Symbol(index, Decl(privatePropertyUsingObjectType.ts, 2, 34)) +>IFilterProvider : IFilterProvider, Symbol(IFilterProvider, Decl(privatePropertyUsingObjectType.ts, 5, 1)) private _filterProviders3: { (index: number): IFilterProvider; }; ->_filterProviders3 : (index: number) => IFilterProvider ->index : number ->IFilterProvider : IFilterProvider +>_filterProviders3 : (index: number) => IFilterProvider, Symbol(_filterProviders3, Decl(privatePropertyUsingObjectType.ts, 2, 69)) +>index : number, Symbol(index, Decl(privatePropertyUsingObjectType.ts, 3, 34)) +>IFilterProvider : IFilterProvider, Symbol(IFilterProvider, Decl(privatePropertyUsingObjectType.ts, 5, 1)) private _filterProviders4: (index: number) => IFilterProvider; ->_filterProviders4 : (index: number) => IFilterProvider ->index : number ->IFilterProvider : IFilterProvider +>_filterProviders4 : (index: number) => IFilterProvider, Symbol(_filterProviders4, Decl(privatePropertyUsingObjectType.ts, 3, 69)) +>index : number, Symbol(index, Decl(privatePropertyUsingObjectType.ts, 4, 32)) +>IFilterProvider : IFilterProvider, Symbol(IFilterProvider, Decl(privatePropertyUsingObjectType.ts, 5, 1)) } export interface IFilterProvider { ->IFilterProvider : IFilterProvider +>IFilterProvider : IFilterProvider, Symbol(IFilterProvider, Decl(privatePropertyUsingObjectType.ts, 5, 1)) } diff --git a/tests/baselines/reference/privateVisibles.types b/tests/baselines/reference/privateVisibles.types index 57554fc3474..17b6abc96d2 100644 --- a/tests/baselines/reference/privateVisibles.types +++ b/tests/baselines/reference/privateVisibles.types @@ -1,23 +1,24 @@ === tests/cases/compiler/privateVisibles.ts === class Foo { ->Foo : Foo +>Foo : Foo, Symbol(Foo, Decl(privateVisibles.ts, 0, 0)) private pvar = 0; ->pvar : number +>pvar : number, Symbol(pvar, Decl(privateVisibles.ts, 0, 11)) +>0 : number constructor() { var n = this.pvar; ->n : number ->this.pvar : number ->this : Foo ->pvar : number +>n : number, Symbol(n, Decl(privateVisibles.ts, 3, 8)) +>this.pvar : number, Symbol(pvar, Decl(privateVisibles.ts, 0, 11)) +>this : Foo, Symbol(Foo, Decl(privateVisibles.ts, 0, 0)) +>pvar : number, Symbol(pvar, Decl(privateVisibles.ts, 0, 11)) } public meth() { var q = this.pvar;} ->meth : () => void ->q : number ->this.pvar : number ->this : Foo ->pvar : number +>meth : () => void, Symbol(meth, Decl(privateVisibles.ts, 4, 2)) +>q : number, Symbol(q, Decl(privateVisibles.ts, 6, 20)) +>this.pvar : number, Symbol(pvar, Decl(privateVisibles.ts, 0, 11)) +>this : Foo, Symbol(Foo, Decl(privateVisibles.ts, 0, 0)) +>pvar : number, Symbol(pvar, Decl(privateVisibles.ts, 0, 11)) } diff --git a/tests/baselines/reference/promiseChaining.types b/tests/baselines/reference/promiseChaining.types index 6edb6c6d09f..28f30f58ea9 100644 --- a/tests/baselines/reference/promiseChaining.types +++ b/tests/baselines/reference/promiseChaining.types @@ -1,58 +1,59 @@ === tests/cases/compiler/promiseChaining.ts === class Chain { ->Chain : Chain ->T : T +>Chain : Chain, Symbol(Chain, Decl(promiseChaining.ts, 0, 0)) +>T : T, Symbol(T, Decl(promiseChaining.ts, 0, 12)) constructor(public value: T) { } ->value : T ->T : T +>value : T, Symbol(value, Decl(promiseChaining.ts, 1, 16)) +>T : T, Symbol(T, Decl(promiseChaining.ts, 0, 12)) then(cb: (x: T) => S): Chain { ->then : (cb: (x: T) => S) => Chain ->S : S ->cb : (x: T) => S ->x : T ->T : T ->S : S ->Chain : Chain ->S : S +>then : (cb: (x: T) => S) => Chain, Symbol(then, Decl(promiseChaining.ts, 1, 36)) +>S : S, Symbol(S, Decl(promiseChaining.ts, 2, 9)) +>cb : (x: T) => S, Symbol(cb, Decl(promiseChaining.ts, 2, 12)) +>x : T, Symbol(x, Decl(promiseChaining.ts, 2, 17)) +>T : T, Symbol(T, Decl(promiseChaining.ts, 0, 12)) +>S : S, Symbol(S, Decl(promiseChaining.ts, 2, 9)) +>Chain : Chain, Symbol(Chain, Decl(promiseChaining.ts, 0, 0)) +>S : S, Symbol(S, Decl(promiseChaining.ts, 2, 9)) var result = cb(this.value); ->result : S +>result : S, Symbol(result, Decl(promiseChaining.ts, 3, 11)) >cb(this.value) : S ->cb : (x: T) => S ->this.value : T ->this : Chain ->value : T +>cb : (x: T) => S, Symbol(cb, Decl(promiseChaining.ts, 2, 12)) +>this.value : T, Symbol(value, Decl(promiseChaining.ts, 1, 16)) +>this : Chain, Symbol(Chain, Decl(promiseChaining.ts, 0, 0)) +>value : T, Symbol(value, Decl(promiseChaining.ts, 1, 16)) // should get a fresh type parameter which each then call var z = this.then(x => result)/*S*/.then(x => "abc")/*string*/.then(x => x.length)/*number*/; // No error ->z : Chain +>z : Chain, Symbol(z, Decl(promiseChaining.ts, 5, 11)) >this.then(x => result)/*S*/.then(x => "abc")/*string*/.then(x => x.length) : Chain ->this.then(x => result)/*S*/.then(x => "abc")/*string*/.then : (cb: (x: string) => S) => Chain +>this.then(x => result)/*S*/.then(x => "abc")/*string*/.then : (cb: (x: string) => S) => Chain, Symbol(Chain.then, Decl(promiseChaining.ts, 1, 36)) >this.then(x => result)/*S*/.then(x => "abc") : Chain ->this.then(x => result)/*S*/.then : (cb: (x: S) => S) => Chain +>this.then(x => result)/*S*/.then : (cb: (x: S) => S) => Chain, Symbol(Chain.then, Decl(promiseChaining.ts, 1, 36)) >this.then(x => result) : Chain ->this.then : (cb: (x: T) => S) => Chain ->this : Chain ->then : (cb: (x: T) => S) => Chain +>this.then : (cb: (x: T) => S) => Chain, Symbol(then, Decl(promiseChaining.ts, 1, 36)) +>this : Chain, Symbol(Chain, Decl(promiseChaining.ts, 0, 0)) +>then : (cb: (x: T) => S) => Chain, Symbol(then, Decl(promiseChaining.ts, 1, 36)) >x => result : (x: T) => S ->x : T ->result : S ->then : (cb: (x: S) => S) => Chain +>x : T, Symbol(x, Decl(promiseChaining.ts, 5, 26)) +>result : S, Symbol(result, Decl(promiseChaining.ts, 3, 11)) +>then : (cb: (x: S) => S) => Chain, Symbol(Chain.then, Decl(promiseChaining.ts, 1, 36)) >x => "abc" : (x: S) => string ->x : S ->then : (cb: (x: string) => S) => Chain +>x : S, Symbol(x, Decl(promiseChaining.ts, 5, 49)) +>"abc" : string +>then : (cb: (x: string) => S) => Chain, Symbol(Chain.then, Decl(promiseChaining.ts, 1, 36)) >x => x.length : (x: string) => number ->x : string ->x.length : number ->x : string ->length : number +>x : string, Symbol(x, Decl(promiseChaining.ts, 5, 76)) +>x.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>x : string, Symbol(x, Decl(promiseChaining.ts, 5, 76)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) return new Chain(result); >new Chain(result) : Chain ->Chain : typeof Chain ->result : S +>Chain : typeof Chain, Symbol(Chain, Decl(promiseChaining.ts, 0, 0)) +>result : S, Symbol(result, Decl(promiseChaining.ts, 3, 11)) } } diff --git a/tests/baselines/reference/promiseIdentity.types b/tests/baselines/reference/promiseIdentity.types index 2be853c9964..e1f61bedcbf 100644 --- a/tests/baselines/reference/promiseIdentity.types +++ b/tests/baselines/reference/promiseIdentity.types @@ -1,89 +1,89 @@ === tests/cases/compiler/promiseIdentity.ts === interface IPromise { ->IPromise : IPromise ->T : T +>IPromise : IPromise, Symbol(IPromise, Decl(promiseIdentity.ts, 0, 0)) +>T : T, Symbol(T, Decl(promiseIdentity.ts, 0, 19)) then(callback: (x: T) => IPromise): IPromise; ->then : (callback: (x: T) => IPromise) => IPromise ->U : U ->callback : (x: T) => IPromise ->x : T ->T : T ->IPromise : IPromise ->U : U ->IPromise : IPromise ->U : U +>then : (callback: (x: T) => IPromise) => IPromise, Symbol(then, Decl(promiseIdentity.ts, 0, 23)) +>U : U, Symbol(U, Decl(promiseIdentity.ts, 1, 9)) +>callback : (x: T) => IPromise, Symbol(callback, Decl(promiseIdentity.ts, 1, 12)) +>x : T, Symbol(x, Decl(promiseIdentity.ts, 1, 23)) +>T : T, Symbol(T, Decl(promiseIdentity.ts, 0, 19)) +>IPromise : IPromise, Symbol(IPromise, Decl(promiseIdentity.ts, 0, 0)) +>U : U, Symbol(U, Decl(promiseIdentity.ts, 1, 9)) +>IPromise : IPromise, Symbol(IPromise, Decl(promiseIdentity.ts, 0, 0)) +>U : U, Symbol(U, Decl(promiseIdentity.ts, 1, 9)) } interface Promise { ->Promise : Promise ->T : T +>Promise : Promise, Symbol(Promise, Decl(promiseIdentity.ts, 2, 1)) +>T : T, Symbol(T, Decl(promiseIdentity.ts, 3, 18)) then(callback: (x: T) => Promise): Promise; ->then : (callback: (x: T) => Promise) => Promise ->U : U ->callback : (x: T) => Promise ->x : T ->T : T ->Promise : Promise ->U : U ->Promise : Promise ->U : U +>then : (callback: (x: T) => Promise) => Promise, Symbol(then, Decl(promiseIdentity.ts, 3, 22)) +>U : U, Symbol(U, Decl(promiseIdentity.ts, 4, 9)) +>callback : (x: T) => Promise, Symbol(callback, Decl(promiseIdentity.ts, 4, 12)) +>x : T, Symbol(x, Decl(promiseIdentity.ts, 4, 23)) +>T : T, Symbol(T, Decl(promiseIdentity.ts, 3, 18)) +>Promise : Promise, Symbol(Promise, Decl(promiseIdentity.ts, 2, 1)) +>U : U, Symbol(U, Decl(promiseIdentity.ts, 4, 9)) +>Promise : Promise, Symbol(Promise, Decl(promiseIdentity.ts, 2, 1)) +>U : U, Symbol(U, Decl(promiseIdentity.ts, 4, 9)) } var x: IPromise; ->x : IPromise ->IPromise : IPromise +>x : IPromise, Symbol(x, Decl(promiseIdentity.ts, 6, 3), Decl(promiseIdentity.ts, 7, 3)) +>IPromise : IPromise, Symbol(IPromise, Decl(promiseIdentity.ts, 0, 0)) var x: Promise; ->x : IPromise ->Promise : Promise +>x : IPromise, Symbol(x, Decl(promiseIdentity.ts, 6, 3), Decl(promiseIdentity.ts, 7, 3)) +>Promise : Promise, Symbol(Promise, Decl(promiseIdentity.ts, 2, 1)) interface IPromise2 { ->IPromise2 : IPromise2 ->T : T ->V : V +>IPromise2 : IPromise2, Symbol(IPromise2, Decl(promiseIdentity.ts, 7, 23)) +>T : T, Symbol(T, Decl(promiseIdentity.ts, 10, 20)) +>V : V, Symbol(V, Decl(promiseIdentity.ts, 10, 22)) then(callback: (x: T) => IPromise2): IPromise2; ->then : (callback: (x: T) => IPromise2) => IPromise2 ->U : U ->W : W ->callback : (x: T) => IPromise2 ->x : T ->T : T ->IPromise2 : IPromise2 ->U : U ->W : W ->IPromise2 : IPromise2 ->W : W ->U : U +>then : (callback: (x: T) => IPromise2) => IPromise2, Symbol(then, Decl(promiseIdentity.ts, 10, 27)) +>U : U, Symbol(U, Decl(promiseIdentity.ts, 11, 9)) +>W : W, Symbol(W, Decl(promiseIdentity.ts, 11, 11)) +>callback : (x: T) => IPromise2, Symbol(callback, Decl(promiseIdentity.ts, 11, 15)) +>x : T, Symbol(x, Decl(promiseIdentity.ts, 11, 26)) +>T : T, Symbol(T, Decl(promiseIdentity.ts, 10, 20)) +>IPromise2 : IPromise2, Symbol(IPromise2, Decl(promiseIdentity.ts, 7, 23)) +>U : U, Symbol(U, Decl(promiseIdentity.ts, 11, 9)) +>W : W, Symbol(W, Decl(promiseIdentity.ts, 11, 11)) +>IPromise2 : IPromise2, Symbol(IPromise2, Decl(promiseIdentity.ts, 7, 23)) +>W : W, Symbol(W, Decl(promiseIdentity.ts, 11, 11)) +>U : U, Symbol(U, Decl(promiseIdentity.ts, 11, 9)) } interface Promise2 { ->Promise2 : Promise2 ->T : T ->V : V +>Promise2 : Promise2, Symbol(Promise2, Decl(promiseIdentity.ts, 12, 1)) +>T : T, Symbol(T, Decl(promiseIdentity.ts, 13, 19)) +>V : V, Symbol(V, Decl(promiseIdentity.ts, 13, 21)) then(callback: (x: V) => Promise2): Promise2; // Uses V instead of T in callback's parameter ->then : (callback: (x: V) => Promise2) => Promise2 ->U : U ->W : W ->callback : (x: V) => Promise2 ->x : V ->V : V ->Promise2 : Promise2 ->U : U ->T : T ->Promise2 : Promise2 ->T : T ->W : W +>then : (callback: (x: V) => Promise2) => Promise2, Symbol(then, Decl(promiseIdentity.ts, 13, 26)) +>U : U, Symbol(U, Decl(promiseIdentity.ts, 14, 9)) +>W : W, Symbol(W, Decl(promiseIdentity.ts, 14, 11)) +>callback : (x: V) => Promise2, Symbol(callback, Decl(promiseIdentity.ts, 14, 15)) +>x : V, Symbol(x, Decl(promiseIdentity.ts, 14, 26)) +>V : V, Symbol(V, Decl(promiseIdentity.ts, 13, 21)) +>Promise2 : Promise2, Symbol(Promise2, Decl(promiseIdentity.ts, 12, 1)) +>U : U, Symbol(U, Decl(promiseIdentity.ts, 14, 9)) +>T : T, Symbol(T, Decl(promiseIdentity.ts, 13, 19)) +>Promise2 : Promise2, Symbol(Promise2, Decl(promiseIdentity.ts, 12, 1)) +>T : T, Symbol(T, Decl(promiseIdentity.ts, 13, 19)) +>W : W, Symbol(W, Decl(promiseIdentity.ts, 14, 11)) } // Ok because T in this particular Promise2 is any, as are all the U and W references. // Also, the V of Promise2 happens to coincide with the T of IPromise2 (they are both string). var y: IPromise2; ->y : IPromise2 ->IPromise2 : IPromise2 +>y : IPromise2, Symbol(y, Decl(promiseIdentity.ts, 19, 3), Decl(promiseIdentity.ts, 20, 3)) +>IPromise2 : IPromise2, Symbol(IPromise2, Decl(promiseIdentity.ts, 7, 23)) var y: Promise2; ->y : IPromise2 ->Promise2 : Promise2 +>y : IPromise2, Symbol(y, Decl(promiseIdentity.ts, 19, 3), Decl(promiseIdentity.ts, 20, 3)) +>Promise2 : Promise2, Symbol(Promise2, Decl(promiseIdentity.ts, 12, 1)) diff --git a/tests/baselines/reference/promiseIdentityWithAny.types b/tests/baselines/reference/promiseIdentityWithAny.types index f96e6d90363..2652da6f182 100644 --- a/tests/baselines/reference/promiseIdentityWithAny.types +++ b/tests/baselines/reference/promiseIdentityWithAny.types @@ -1,45 +1,45 @@ === tests/cases/compiler/promiseIdentityWithAny.ts === interface IPromise { ->IPromise : IPromise ->T : T ->V : V +>IPromise : IPromise, Symbol(IPromise, Decl(promiseIdentityWithAny.ts, 0, 0)) +>T : T, Symbol(T, Decl(promiseIdentityWithAny.ts, 0, 19)) +>V : V, Symbol(V, Decl(promiseIdentityWithAny.ts, 0, 21)) then(callback: (x: T) => IPromise): IPromise; ->then : (callback: (x: T) => IPromise) => IPromise ->U : U ->W : W ->callback : (x: T) => IPromise ->x : T ->T : T ->IPromise : IPromise ->U : U ->W : W ->IPromise : IPromise ->U : U ->W : W +>then : (callback: (x: T) => IPromise) => IPromise, Symbol(then, Decl(promiseIdentityWithAny.ts, 0, 26)) +>U : U, Symbol(U, Decl(promiseIdentityWithAny.ts, 1, 9)) +>W : W, Symbol(W, Decl(promiseIdentityWithAny.ts, 1, 11)) +>callback : (x: T) => IPromise, Symbol(callback, Decl(promiseIdentityWithAny.ts, 1, 15)) +>x : T, Symbol(x, Decl(promiseIdentityWithAny.ts, 1, 26)) +>T : T, Symbol(T, Decl(promiseIdentityWithAny.ts, 0, 19)) +>IPromise : IPromise, Symbol(IPromise, Decl(promiseIdentityWithAny.ts, 0, 0)) +>U : U, Symbol(U, Decl(promiseIdentityWithAny.ts, 1, 9)) +>W : W, Symbol(W, Decl(promiseIdentityWithAny.ts, 1, 11)) +>IPromise : IPromise, Symbol(IPromise, Decl(promiseIdentityWithAny.ts, 0, 0)) +>U : U, Symbol(U, Decl(promiseIdentityWithAny.ts, 1, 9)) +>W : W, Symbol(W, Decl(promiseIdentityWithAny.ts, 1, 11)) } interface Promise { ->Promise : Promise ->T : T ->V : V +>Promise : Promise, Symbol(Promise, Decl(promiseIdentityWithAny.ts, 2, 1)) +>T : T, Symbol(T, Decl(promiseIdentityWithAny.ts, 3, 18)) +>V : V, Symbol(V, Decl(promiseIdentityWithAny.ts, 3, 20)) then(callback: (x: T) => Promise): Promise; ->then : (callback: (x: T) => Promise) => Promise ->U : U ->W : W ->callback : (x: T) => Promise ->x : T ->T : T ->Promise : Promise ->Promise : Promise +>then : (callback: (x: T) => Promise) => Promise, Symbol(then, Decl(promiseIdentityWithAny.ts, 3, 25)) +>U : U, Symbol(U, Decl(promiseIdentityWithAny.ts, 4, 9)) +>W : W, Symbol(W, Decl(promiseIdentityWithAny.ts, 4, 11)) +>callback : (x: T) => Promise, Symbol(callback, Decl(promiseIdentityWithAny.ts, 4, 15)) +>x : T, Symbol(x, Decl(promiseIdentityWithAny.ts, 4, 26)) +>T : T, Symbol(T, Decl(promiseIdentityWithAny.ts, 3, 18)) +>Promise : Promise, Symbol(Promise, Decl(promiseIdentityWithAny.ts, 2, 1)) +>Promise : Promise, Symbol(Promise, Decl(promiseIdentityWithAny.ts, 2, 1)) } // Should be ok because signature type parameters get erased to any var x: IPromise; ->x : IPromise ->IPromise : IPromise +>x : IPromise, Symbol(x, Decl(promiseIdentityWithAny.ts, 8, 3), Decl(promiseIdentityWithAny.ts, 9, 3)) +>IPromise : IPromise, Symbol(IPromise, Decl(promiseIdentityWithAny.ts, 0, 0)) var x: Promise; ->x : IPromise ->Promise : Promise +>x : IPromise, Symbol(x, Decl(promiseIdentityWithAny.ts, 8, 3), Decl(promiseIdentityWithAny.ts, 9, 3)) +>Promise : Promise, Symbol(Promise, Decl(promiseIdentityWithAny.ts, 2, 1)) diff --git a/tests/baselines/reference/promiseIdentityWithConstraints.types b/tests/baselines/reference/promiseIdentityWithConstraints.types index 5bc321cbb16..888af1e501b 100644 --- a/tests/baselines/reference/promiseIdentityWithConstraints.types +++ b/tests/baselines/reference/promiseIdentityWithConstraints.types @@ -1,53 +1,53 @@ === tests/cases/compiler/promiseIdentityWithConstraints.ts === interface IPromise { ->IPromise : IPromise ->T : T ->V : V +>IPromise : IPromise, Symbol(IPromise, Decl(promiseIdentityWithConstraints.ts, 0, 0)) +>T : T, Symbol(T, Decl(promiseIdentityWithConstraints.ts, 0, 19)) +>V : V, Symbol(V, Decl(promiseIdentityWithConstraints.ts, 0, 21)) then(callback: (x: T) => IPromise): IPromise; ->then : (callback: (x: T) => IPromise) => IPromise ->U : U ->T : T ->W : W ->V : V ->callback : (x: T) => IPromise ->x : T ->T : T ->IPromise : IPromise ->U : U ->W : W ->IPromise : IPromise ->U : U ->W : W +>then : (callback: (x: T) => IPromise) => IPromise, Symbol(then, Decl(promiseIdentityWithConstraints.ts, 0, 26)) +>U : U, Symbol(U, Decl(promiseIdentityWithConstraints.ts, 1, 9)) +>T : T, Symbol(T, Decl(promiseIdentityWithConstraints.ts, 0, 19)) +>W : W, Symbol(W, Decl(promiseIdentityWithConstraints.ts, 1, 21)) +>V : V, Symbol(V, Decl(promiseIdentityWithConstraints.ts, 0, 21)) +>callback : (x: T) => IPromise, Symbol(callback, Decl(promiseIdentityWithConstraints.ts, 1, 35)) +>x : T, Symbol(x, Decl(promiseIdentityWithConstraints.ts, 1, 46)) +>T : T, Symbol(T, Decl(promiseIdentityWithConstraints.ts, 0, 19)) +>IPromise : IPromise, Symbol(IPromise, Decl(promiseIdentityWithConstraints.ts, 0, 0)) +>U : U, Symbol(U, Decl(promiseIdentityWithConstraints.ts, 1, 9)) +>W : W, Symbol(W, Decl(promiseIdentityWithConstraints.ts, 1, 21)) +>IPromise : IPromise, Symbol(IPromise, Decl(promiseIdentityWithConstraints.ts, 0, 0)) +>U : U, Symbol(U, Decl(promiseIdentityWithConstraints.ts, 1, 9)) +>W : W, Symbol(W, Decl(promiseIdentityWithConstraints.ts, 1, 21)) } interface Promise { ->Promise : Promise ->T : T ->V : V +>Promise : Promise, Symbol(Promise, Decl(promiseIdentityWithConstraints.ts, 2, 1)) +>T : T, Symbol(T, Decl(promiseIdentityWithConstraints.ts, 3, 18)) +>V : V, Symbol(V, Decl(promiseIdentityWithConstraints.ts, 3, 20)) then(callback: (x: T) => Promise): Promise; ->then : (callback: (x: T) => Promise) => Promise ->U : U ->T : T ->W : W ->V : V ->callback : (x: T) => Promise ->x : T ->T : T ->Promise : Promise ->U : U ->W : W ->Promise : Promise ->U : U ->W : W +>then : (callback: (x: T) => Promise) => Promise, Symbol(then, Decl(promiseIdentityWithConstraints.ts, 3, 25)) +>U : U, Symbol(U, Decl(promiseIdentityWithConstraints.ts, 4, 9)) +>T : T, Symbol(T, Decl(promiseIdentityWithConstraints.ts, 3, 18)) +>W : W, Symbol(W, Decl(promiseIdentityWithConstraints.ts, 4, 21)) +>V : V, Symbol(V, Decl(promiseIdentityWithConstraints.ts, 3, 20)) +>callback : (x: T) => Promise, Symbol(callback, Decl(promiseIdentityWithConstraints.ts, 4, 35)) +>x : T, Symbol(x, Decl(promiseIdentityWithConstraints.ts, 4, 46)) +>T : T, Symbol(T, Decl(promiseIdentityWithConstraints.ts, 3, 18)) +>Promise : Promise, Symbol(Promise, Decl(promiseIdentityWithConstraints.ts, 2, 1)) +>U : U, Symbol(U, Decl(promiseIdentityWithConstraints.ts, 4, 9)) +>W : W, Symbol(W, Decl(promiseIdentityWithConstraints.ts, 4, 21)) +>Promise : Promise, Symbol(Promise, Decl(promiseIdentityWithConstraints.ts, 2, 1)) +>U : U, Symbol(U, Decl(promiseIdentityWithConstraints.ts, 4, 9)) +>W : W, Symbol(W, Decl(promiseIdentityWithConstraints.ts, 4, 21)) } // Error because constraint V doesn't match var x: IPromise; ->x : IPromise ->IPromise : IPromise +>x : IPromise, Symbol(x, Decl(promiseIdentityWithConstraints.ts, 8, 3), Decl(promiseIdentityWithConstraints.ts, 9, 3)) +>IPromise : IPromise, Symbol(IPromise, Decl(promiseIdentityWithConstraints.ts, 0, 0)) var x: Promise; ->x : IPromise ->Promise : Promise +>x : IPromise, Symbol(x, Decl(promiseIdentityWithConstraints.ts, 8, 3), Decl(promiseIdentityWithConstraints.ts, 9, 3)) +>Promise : Promise, Symbol(Promise, Decl(promiseIdentityWithConstraints.ts, 2, 1)) diff --git a/tests/baselines/reference/promiseTest.types b/tests/baselines/reference/promiseTest.types index ac21c5973ad..1dd6d23ddd0 100644 --- a/tests/baselines/reference/promiseTest.types +++ b/tests/baselines/reference/promiseTest.types @@ -1,57 +1,58 @@ === tests/cases/compiler/promiseTest.ts === interface Promise { ->Promise : Promise ->T : T +>Promise : Promise, Symbol(Promise, Decl(promiseTest.ts, 0, 0)) +>T : T, Symbol(T, Decl(promiseTest.ts, 1, 18)) then(success?: (value: T) => Promise): Promise; ->then : { (success?: (value: T) => Promise): Promise; (success?: (value: T) => B): Promise; } ->A : A ->success : (value: T) => Promise ->value : T ->T : T ->Promise : Promise ->A : A ->Promise : Promise ->A : A +>then : { (success?: (value: T) => Promise): Promise; (success?: (value: T) => B): Promise; }, Symbol(then, Decl(promiseTest.ts, 1, 22), Decl(promiseTest.ts, 2, 60)) +>A : A, Symbol(A, Decl(promiseTest.ts, 2, 9)) +>success : (value: T) => Promise, Symbol(success, Decl(promiseTest.ts, 2, 12)) +>value : T, Symbol(value, Decl(promiseTest.ts, 2, 23)) +>T : T, Symbol(T, Decl(promiseTest.ts, 1, 18)) +>Promise : Promise, Symbol(Promise, Decl(promiseTest.ts, 0, 0)) +>A : A, Symbol(A, Decl(promiseTest.ts, 2, 9)) +>Promise : Promise, Symbol(Promise, Decl(promiseTest.ts, 0, 0)) +>A : A, Symbol(A, Decl(promiseTest.ts, 2, 9)) then(success?: (value: T) => B): Promise; ->then : { (success?: (value: T) => Promise): Promise; (success?: (value: T) => B): Promise; } ->B : B ->success : (value: T) => B ->value : T ->T : T ->B : B ->Promise : Promise ->B : B +>then : { (success?: (value: T) => Promise): Promise; (success?: (value: T) => B): Promise; }, Symbol(then, Decl(promiseTest.ts, 1, 22), Decl(promiseTest.ts, 2, 60)) +>B : B, Symbol(B, Decl(promiseTest.ts, 3, 9)) +>success : (value: T) => B, Symbol(success, Decl(promiseTest.ts, 3, 12)) +>value : T, Symbol(value, Decl(promiseTest.ts, 3, 23)) +>T : T, Symbol(T, Decl(promiseTest.ts, 1, 18)) +>B : B, Symbol(B, Decl(promiseTest.ts, 3, 9)) +>Promise : Promise, Symbol(Promise, Decl(promiseTest.ts, 0, 0)) +>B : B, Symbol(B, Decl(promiseTest.ts, 3, 9)) data: T; ->data : T ->T : T +>data : T, Symbol(data, Decl(promiseTest.ts, 3, 51)) +>T : T, Symbol(T, Decl(promiseTest.ts, 1, 18)) } var p: Promise = null; ->p : Promise ->Promise : Promise +>p : Promise, Symbol(p, Decl(promiseTest.ts, 7, 3)) +>Promise : Promise, Symbol(Promise, Decl(promiseTest.ts, 0, 0)) +>null : null var p2 = p.then(function (x) { ->p2 : Promise +>p2 : Promise, Symbol(p2, Decl(promiseTest.ts, 8, 3)) >p.then(function (x) { return p;} ) : Promise ->p.then : { (success?: (value: number) => Promise): Promise; (success?: (value: number) => B): Promise; } ->p : Promise ->then : { (success?: (value: number) => Promise): Promise; (success?: (value: number) => B): Promise; } +>p.then : { (success?: (value: number) => Promise): Promise; (success?: (value: number) => B): Promise; }, Symbol(Promise.then, Decl(promiseTest.ts, 1, 22), Decl(promiseTest.ts, 2, 60)) +>p : Promise, Symbol(p, Decl(promiseTest.ts, 7, 3)) +>then : { (success?: (value: number) => Promise): Promise; (success?: (value: number) => B): Promise; }, Symbol(Promise.then, Decl(promiseTest.ts, 1, 22), Decl(promiseTest.ts, 2, 60)) >function (x) { return p;} : (x: number) => Promise ->x : number +>x : number, Symbol(x, Decl(promiseTest.ts, 8, 26)) return p; ->p : Promise +>p : Promise, Symbol(p, Decl(promiseTest.ts, 7, 3)) } ); var x = p2.data; // number ->x : number ->p2.data : number ->p2 : Promise ->data : number +>x : number, Symbol(x, Decl(promiseTest.ts, 12, 3)) +>p2.data : number, Symbol(Promise.data, Decl(promiseTest.ts, 3, 51)) +>p2 : Promise, Symbol(p2, Decl(promiseTest.ts, 8, 3)) +>data : number, Symbol(Promise.data, Decl(promiseTest.ts, 3, 51)) diff --git a/tests/baselines/reference/promiseTypeInference.types b/tests/baselines/reference/promiseTypeInference.types index 52d026adb1d..de61cd8cf71 100644 --- a/tests/baselines/reference/promiseTypeInference.types +++ b/tests/baselines/reference/promiseTypeInference.types @@ -1,54 +1,55 @@ === tests/cases/compiler/promiseTypeInference.ts === declare class Promise { ->Promise : Promise ->T : T +>Promise : Promise, Symbol(Promise, Decl(promiseTypeInference.ts, 0, 0)) +>T : T, Symbol(T, Decl(promiseTypeInference.ts, 0, 22)) then(success?: (value: T) => Promise): Promise; ->then : (success?: (value: T) => Promise) => Promise ->U : U ->success : (value: T) => Promise ->value : T ->T : T ->Promise : Promise ->U : U ->Promise : Promise ->U : U +>then : (success?: (value: T) => Promise) => Promise, Symbol(then, Decl(promiseTypeInference.ts, 0, 26)) +>U : U, Symbol(U, Decl(promiseTypeInference.ts, 1, 9)) +>success : (value: T) => Promise, Symbol(success, Decl(promiseTypeInference.ts, 1, 12)) +>value : T, Symbol(value, Decl(promiseTypeInference.ts, 1, 23)) +>T : T, Symbol(T, Decl(promiseTypeInference.ts, 0, 22)) +>Promise : Promise, Symbol(Promise, Decl(promiseTypeInference.ts, 0, 0)) +>U : U, Symbol(U, Decl(promiseTypeInference.ts, 1, 9)) +>Promise : Promise, Symbol(Promise, Decl(promiseTypeInference.ts, 0, 0)) +>U : U, Symbol(U, Decl(promiseTypeInference.ts, 1, 9)) } interface IPromise { ->IPromise : IPromise ->T : T +>IPromise : IPromise, Symbol(IPromise, Decl(promiseTypeInference.ts, 2, 1)) +>T : T, Symbol(T, Decl(promiseTypeInference.ts, 3, 19)) then(success?: (value: T) => IPromise): IPromise; ->then : (success?: (value: T) => IPromise) => IPromise ->U : U ->success : (value: T) => IPromise ->value : T ->T : T ->IPromise : IPromise ->U : U ->IPromise : IPromise ->U : U +>then : (success?: (value: T) => IPromise) => IPromise, Symbol(then, Decl(promiseTypeInference.ts, 3, 23)) +>U : U, Symbol(U, Decl(promiseTypeInference.ts, 4, 9)) +>success : (value: T) => IPromise, Symbol(success, Decl(promiseTypeInference.ts, 4, 12)) +>value : T, Symbol(value, Decl(promiseTypeInference.ts, 4, 23)) +>T : T, Symbol(T, Decl(promiseTypeInference.ts, 3, 19)) +>IPromise : IPromise, Symbol(IPromise, Decl(promiseTypeInference.ts, 2, 1)) +>U : U, Symbol(U, Decl(promiseTypeInference.ts, 4, 9)) +>IPromise : IPromise, Symbol(IPromise, Decl(promiseTypeInference.ts, 2, 1)) +>U : U, Symbol(U, Decl(promiseTypeInference.ts, 4, 9)) } declare function load(name: string): Promise; ->load : (name: string) => Promise ->name : string ->Promise : Promise +>load : (name: string) => Promise, Symbol(load, Decl(promiseTypeInference.ts, 5, 1)) +>name : string, Symbol(name, Decl(promiseTypeInference.ts, 6, 22)) +>Promise : Promise, Symbol(Promise, Decl(promiseTypeInference.ts, 0, 0)) declare function convert(s: string): IPromise; ->convert : (s: string) => IPromise ->s : string ->IPromise : IPromise +>convert : (s: string) => IPromise, Symbol(convert, Decl(promiseTypeInference.ts, 6, 53)) +>s : string, Symbol(s, Decl(promiseTypeInference.ts, 7, 25)) +>IPromise : IPromise, Symbol(IPromise, Decl(promiseTypeInference.ts, 2, 1)) var $$x = load("something").then(s => convert(s)); ->$$x : Promise +>$$x : Promise, Symbol($$x, Decl(promiseTypeInference.ts, 9, 3)) >load("something").then(s => convert(s)) : Promise ->load("something").then : (success?: (value: string) => Promise) => Promise +>load("something").then : (success?: (value: string) => Promise) => Promise, Symbol(Promise.then, Decl(promiseTypeInference.ts, 0, 26)) >load("something") : Promise ->load : (name: string) => Promise ->then : (success?: (value: string) => Promise) => Promise +>load : (name: string) => Promise, Symbol(load, Decl(promiseTypeInference.ts, 5, 1)) +>"something" : string +>then : (success?: (value: string) => Promise) => Promise, Symbol(Promise.then, Decl(promiseTypeInference.ts, 0, 26)) >s => convert(s) : (s: string) => IPromise ->s : string +>s : string, Symbol(s, Decl(promiseTypeInference.ts, 9, 33)) >convert(s) : IPromise ->convert : (s: string) => IPromise ->s : string +>convert : (s: string) => IPromise, Symbol(convert, Decl(promiseTypeInference.ts, 6, 53)) +>s : string, Symbol(s, Decl(promiseTypeInference.ts, 9, 33)) diff --git a/tests/baselines/reference/promises.types b/tests/baselines/reference/promises.types index 639d28677d7..f9c2164e54f 100644 --- a/tests/baselines/reference/promises.types +++ b/tests/baselines/reference/promises.types @@ -1,31 +1,31 @@ === tests/cases/compiler/promises.ts === interface Promise { ->Promise : Promise ->T : T +>Promise : Promise, Symbol(Promise, Decl(promises.ts, 0, 0)) +>T : T, Symbol(T, Decl(promises.ts, 0, 18)) then(success?: (value: T) => U): Promise; ->then : { (success?: (value: T) => U): Promise; (success?: (value: T) => Promise): Promise; } ->U : U ->success : (value: T) => U ->value : T ->T : T ->U : U ->Promise : Promise ->U : U +>then : { (success?: (value: T) => U): Promise; (success?: (value: T) => Promise): Promise; }, Symbol(then, Decl(promises.ts, 0, 22), Decl(promises.ts, 1, 51)) +>U : U, Symbol(U, Decl(promises.ts, 1, 9)) +>success : (value: T) => U, Symbol(success, Decl(promises.ts, 1, 12)) +>value : T, Symbol(value, Decl(promises.ts, 1, 23)) +>T : T, Symbol(T, Decl(promises.ts, 0, 18)) +>U : U, Symbol(U, Decl(promises.ts, 1, 9)) +>Promise : Promise, Symbol(Promise, Decl(promises.ts, 0, 0)) +>U : U, Symbol(U, Decl(promises.ts, 1, 9)) then(success?: (value: T) => Promise): Promise; ->then : { (success?: (value: T) => U): Promise; (success?: (value: T) => Promise): Promise; } ->U : U ->success : (value: T) => Promise ->value : T ->T : T ->Promise : Promise ->U : U ->Promise : Promise ->U : U +>then : { (success?: (value: T) => U): Promise; (success?: (value: T) => Promise): Promise; }, Symbol(then, Decl(promises.ts, 0, 22), Decl(promises.ts, 1, 51)) +>U : U, Symbol(U, Decl(promises.ts, 2, 9)) +>success : (value: T) => Promise, Symbol(success, Decl(promises.ts, 2, 12)) +>value : T, Symbol(value, Decl(promises.ts, 2, 23)) +>T : T, Symbol(T, Decl(promises.ts, 0, 18)) +>Promise : Promise, Symbol(Promise, Decl(promises.ts, 0, 0)) +>U : U, Symbol(U, Decl(promises.ts, 2, 9)) +>Promise : Promise, Symbol(Promise, Decl(promises.ts, 0, 0)) +>U : U, Symbol(U, Decl(promises.ts, 2, 9)) value: T; ->value : T ->T : T +>value : T, Symbol(value, Decl(promises.ts, 2, 60)) +>T : T, Symbol(T, Decl(promises.ts, 0, 18)) } diff --git a/tests/baselines/reference/promisesWithConstraints.types b/tests/baselines/reference/promisesWithConstraints.types index a8c4c64d3fd..f0cdf14e533 100644 --- a/tests/baselines/reference/promisesWithConstraints.types +++ b/tests/baselines/reference/promisesWithConstraints.types @@ -1,84 +1,84 @@ === tests/cases/compiler/promisesWithConstraints.ts === interface Promise { ->Promise : Promise ->T : T +>Promise : Promise, Symbol(Promise, Decl(promisesWithConstraints.ts, 0, 0)) +>T : T, Symbol(T, Decl(promisesWithConstraints.ts, 0, 18)) then(cb: (x: T) => Promise): Promise; ->then : (cb: (x: T) => Promise) => Promise ->U : U ->cb : (x: T) => Promise ->x : T ->T : T ->Promise : Promise ->U : U ->Promise : Promise ->U : U +>then : (cb: (x: T) => Promise) => Promise, Symbol(then, Decl(promisesWithConstraints.ts, 0, 22)) +>U : U, Symbol(U, Decl(promisesWithConstraints.ts, 1, 9)) +>cb : (x: T) => Promise, Symbol(cb, Decl(promisesWithConstraints.ts, 1, 12)) +>x : T, Symbol(x, Decl(promisesWithConstraints.ts, 1, 17)) +>T : T, Symbol(T, Decl(promisesWithConstraints.ts, 0, 18)) +>Promise : Promise, Symbol(Promise, Decl(promisesWithConstraints.ts, 0, 0)) +>U : U, Symbol(U, Decl(promisesWithConstraints.ts, 1, 9)) +>Promise : Promise, Symbol(Promise, Decl(promisesWithConstraints.ts, 0, 0)) +>U : U, Symbol(U, Decl(promisesWithConstraints.ts, 1, 9)) } interface CPromise { ->CPromise : CPromise ->T : T ->x : any +>CPromise : CPromise, Symbol(CPromise, Decl(promisesWithConstraints.ts, 2, 1)) +>T : T, Symbol(T, Decl(promisesWithConstraints.ts, 4, 19)) +>x : any, Symbol(x, Decl(promisesWithConstraints.ts, 4, 30)) then(cb: (x: T) => Promise): Promise; ->then : (cb: (x: T) => Promise) => Promise ->U : U ->x : any ->cb : (x: T) => Promise ->x : T ->T : T ->Promise : Promise ->U : U ->Promise : Promise ->U : U +>then : (cb: (x: T) => Promise) => Promise, Symbol(then, Decl(promisesWithConstraints.ts, 4, 43)) +>U : U, Symbol(U, Decl(promisesWithConstraints.ts, 5, 9)) +>x : any, Symbol(x, Decl(promisesWithConstraints.ts, 5, 20)) +>cb : (x: T) => Promise, Symbol(cb, Decl(promisesWithConstraints.ts, 5, 32)) +>x : T, Symbol(x, Decl(promisesWithConstraints.ts, 5, 37)) +>T : T, Symbol(T, Decl(promisesWithConstraints.ts, 4, 19)) +>Promise : Promise, Symbol(Promise, Decl(promisesWithConstraints.ts, 0, 0)) +>U : U, Symbol(U, Decl(promisesWithConstraints.ts, 5, 9)) +>Promise : Promise, Symbol(Promise, Decl(promisesWithConstraints.ts, 0, 0)) +>U : U, Symbol(U, Decl(promisesWithConstraints.ts, 5, 9)) } interface Foo { x; } ->Foo : Foo ->x : any +>Foo : Foo, Symbol(Foo, Decl(promisesWithConstraints.ts, 6, 1)) +>x : any, Symbol(x, Decl(promisesWithConstraints.ts, 8, 15)) interface Bar { x; y; } ->Bar : Bar ->x : any ->y : any +>Bar : Bar, Symbol(Bar, Decl(promisesWithConstraints.ts, 8, 20)) +>x : any, Symbol(x, Decl(promisesWithConstraints.ts, 9, 15)) +>y : any, Symbol(y, Decl(promisesWithConstraints.ts, 9, 18)) var a: Promise; ->a : Promise ->Promise : Promise ->Foo : Foo +>a : Promise, Symbol(a, Decl(promisesWithConstraints.ts, 11, 3)) +>Promise : Promise, Symbol(Promise, Decl(promisesWithConstraints.ts, 0, 0)) +>Foo : Foo, Symbol(Foo, Decl(promisesWithConstraints.ts, 6, 1)) var b: Promise; ->b : Promise ->Promise : Promise ->Bar : Bar +>b : Promise, Symbol(b, Decl(promisesWithConstraints.ts, 12, 3)) +>Promise : Promise, Symbol(Promise, Decl(promisesWithConstraints.ts, 0, 0)) +>Bar : Bar, Symbol(Bar, Decl(promisesWithConstraints.ts, 8, 20)) a = b; // ok >a = b : Promise ->a : Promise ->b : Promise +>a : Promise, Symbol(a, Decl(promisesWithConstraints.ts, 11, 3)) +>b : Promise, Symbol(b, Decl(promisesWithConstraints.ts, 12, 3)) b = a; // ok >b = a : Promise ->b : Promise ->a : Promise +>b : Promise, Symbol(b, Decl(promisesWithConstraints.ts, 12, 3)) +>a : Promise, Symbol(a, Decl(promisesWithConstraints.ts, 11, 3)) var a2: CPromise; ->a2 : CPromise ->CPromise : CPromise ->Foo : Foo +>a2 : CPromise, Symbol(a2, Decl(promisesWithConstraints.ts, 16, 3)) +>CPromise : CPromise, Symbol(CPromise, Decl(promisesWithConstraints.ts, 2, 1)) +>Foo : Foo, Symbol(Foo, Decl(promisesWithConstraints.ts, 6, 1)) var b2: CPromise; ->b2 : CPromise ->CPromise : CPromise ->Bar : Bar +>b2 : CPromise, Symbol(b2, Decl(promisesWithConstraints.ts, 17, 3)) +>CPromise : CPromise, Symbol(CPromise, Decl(promisesWithConstraints.ts, 2, 1)) +>Bar : Bar, Symbol(Bar, Decl(promisesWithConstraints.ts, 8, 20)) a2 = b2; // ok >a2 = b2 : CPromise ->a2 : CPromise ->b2 : CPromise +>a2 : CPromise, Symbol(a2, Decl(promisesWithConstraints.ts, 16, 3)) +>b2 : CPromise, Symbol(b2, Decl(promisesWithConstraints.ts, 17, 3)) b2 = a2; // was error >b2 = a2 : CPromise ->b2 : CPromise ->a2 : CPromise +>b2 : CPromise, Symbol(b2, Decl(promisesWithConstraints.ts, 17, 3)) +>a2 : CPromise, Symbol(a2, Decl(promisesWithConstraints.ts, 16, 3)) diff --git a/tests/baselines/reference/propagationOfPromiseInitialization.types b/tests/baselines/reference/propagationOfPromiseInitialization.types index e146aea91d8..f079cd19e56 100644 --- a/tests/baselines/reference/propagationOfPromiseInitialization.types +++ b/tests/baselines/reference/propagationOfPromiseInitialization.types @@ -1,49 +1,53 @@ === tests/cases/compiler/propagationOfPromiseInitialization.ts === interface IPromise { ->IPromise : IPromise ->T : T +>IPromise : IPromise, Symbol(IPromise, Decl(propagationOfPromiseInitialization.ts, 0, 0)) +>T : T, Symbol(T, Decl(propagationOfPromiseInitialization.ts, 0, 19)) then(successCallback: (promiseValue: T) => TResult, errorCallback?: (reason: any) => TResult): IPromise; ->then : (successCallback: (promiseValue: T) => TResult, errorCallback?: (reason: any) => TResult) => IPromise ->TResult : TResult ->successCallback : (promiseValue: T) => TResult ->promiseValue : T ->T : T ->TResult : TResult ->errorCallback : (reason: any) => TResult ->reason : any ->TResult : TResult ->IPromise : IPromise ->TResult : TResult +>then : (successCallback: (promiseValue: T) => TResult, errorCallback?: (reason: any) => TResult) => IPromise, Symbol(then, Decl(propagationOfPromiseInitialization.ts, 0, 23)) +>TResult : TResult, Symbol(TResult, Decl(propagationOfPromiseInitialization.ts, 1, 9)) +>successCallback : (promiseValue: T) => TResult, Symbol(successCallback, Decl(propagationOfPromiseInitialization.ts, 1, 18)) +>promiseValue : T, Symbol(promiseValue, Decl(propagationOfPromiseInitialization.ts, 1, 36)) +>T : T, Symbol(T, Decl(propagationOfPromiseInitialization.ts, 0, 19)) +>TResult : TResult, Symbol(TResult, Decl(propagationOfPromiseInitialization.ts, 1, 9)) +>errorCallback : (reason: any) => TResult, Symbol(errorCallback, Decl(propagationOfPromiseInitialization.ts, 1, 64)) +>reason : any, Symbol(reason, Decl(propagationOfPromiseInitialization.ts, 1, 82)) +>TResult : TResult, Symbol(TResult, Decl(propagationOfPromiseInitialization.ts, 1, 9)) +>IPromise : IPromise, Symbol(IPromise, Decl(propagationOfPromiseInitialization.ts, 0, 0)) +>TResult : TResult, Symbol(TResult, Decl(propagationOfPromiseInitialization.ts, 1, 9)) } var foo: IPromise; ->foo : IPromise ->IPromise : IPromise +>foo : IPromise, Symbol(foo, Decl(propagationOfPromiseInitialization.ts, 4, 3)) +>IPromise : IPromise, Symbol(IPromise, Decl(propagationOfPromiseInitialization.ts, 0, 0)) foo.then((x) => { >foo.then((x) => { // x is inferred to be a number return "asdf";}).then((x) => { // x is inferred to be string x.length; return 123;}) : IPromise ->foo.then((x) => { // x is inferred to be a number return "asdf";}).then : (successCallback: (promiseValue: string) => TResult, errorCallback?: (reason: any) => TResult) => IPromise +>foo.then((x) => { // x is inferred to be a number return "asdf";}).then : (successCallback: (promiseValue: string) => TResult, errorCallback?: (reason: any) => TResult) => IPromise, Symbol(IPromise.then, Decl(propagationOfPromiseInitialization.ts, 0, 23)) >foo.then((x) => { // x is inferred to be a number return "asdf";}) : IPromise ->foo.then : (successCallback: (promiseValue: number) => TResult, errorCallback?: (reason: any) => TResult) => IPromise ->foo : IPromise ->then : (successCallback: (promiseValue: number) => TResult, errorCallback?: (reason: any) => TResult) => IPromise +>foo.then : (successCallback: (promiseValue: number) => TResult, errorCallback?: (reason: any) => TResult) => IPromise, Symbol(IPromise.then, Decl(propagationOfPromiseInitialization.ts, 0, 23)) +>foo : IPromise, Symbol(foo, Decl(propagationOfPromiseInitialization.ts, 4, 3)) +>then : (successCallback: (promiseValue: number) => TResult, errorCallback?: (reason: any) => TResult) => IPromise, Symbol(IPromise.then, Decl(propagationOfPromiseInitialization.ts, 0, 23)) >(x) => { // x is inferred to be a number return "asdf";} : (x: number) => string ->x : number +>x : number, Symbol(x, Decl(propagationOfPromiseInitialization.ts, 5, 10)) // x is inferred to be a number return "asdf"; +>"asdf" : string + }).then((x) => { ->then : (successCallback: (promiseValue: string) => TResult, errorCallback?: (reason: any) => TResult) => IPromise +>then : (successCallback: (promiseValue: string) => TResult, errorCallback?: (reason: any) => TResult) => IPromise, Symbol(IPromise.then, Decl(propagationOfPromiseInitialization.ts, 0, 23)) >(x) => { // x is inferred to be string x.length; return 123;} : (x: string) => number ->x : string +>x : string, Symbol(x, Decl(propagationOfPromiseInitialization.ts, 8, 9)) // x is inferred to be string x.length; ->x.length : number ->x : string ->length : number +>x.length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) +>x : string, Symbol(x, Decl(propagationOfPromiseInitialization.ts, 8, 9)) +>length : number, Symbol(String.length, Decl(lib.d.ts, 414, 19)) return 123; +>123 : number + }); diff --git a/tests/baselines/reference/properties.types b/tests/baselines/reference/properties.types index 2c42e093758..cb21e7c168d 100644 --- a/tests/baselines/reference/properties.types +++ b/tests/baselines/reference/properties.types @@ -1,17 +1,18 @@ === tests/cases/compiler/properties.ts === class MyClass ->MyClass : MyClass +>MyClass : MyClass, Symbol(MyClass, Decl(properties.ts, 0, 0)) { public get Count(): number ->Count : number +>Count : number, Symbol(Count, Decl(properties.ts, 2, 1), Decl(properties.ts, 6, 5)) { return 42; +>42 : number } public set Count(value: number) ->Count : number ->value : number +>Count : number, Symbol(Count, Decl(properties.ts, 2, 1), Decl(properties.ts, 6, 5)) +>value : number, Symbol(value, Decl(properties.ts, 8, 21)) { // } diff --git a/tests/baselines/reference/propertyAccess6.types b/tests/baselines/reference/propertyAccess6.types index a01c3718b39..64a1456aa3f 100644 --- a/tests/baselines/reference/propertyAccess6.types +++ b/tests/baselines/reference/propertyAccess6.types @@ -1,10 +1,11 @@ === tests/cases/compiler/propertyAccess6.ts === var foo: any; ->foo : any +>foo : any, Symbol(foo, Decl(propertyAccess6.ts, 0, 3)) foo.bar = 4; >foo.bar = 4 : number >foo.bar : any ->foo : any +>foo : any, Symbol(foo, Decl(propertyAccess6.ts, 0, 3)) >bar : any +>4 : number diff --git a/tests/baselines/reference/propertyAccess7.types b/tests/baselines/reference/propertyAccess7.types index f5b9778ea27..7dc07ed6cfd 100644 --- a/tests/baselines/reference/propertyAccess7.types +++ b/tests/baselines/reference/propertyAccess7.types @@ -1,10 +1,10 @@ === tests/cases/compiler/propertyAccess7.ts === var foo: string; ->foo : string +>foo : string, Symbol(foo, Decl(propertyAccess7.ts, 0, 3)) foo.toUpperCase(); >foo.toUpperCase() : string ->foo.toUpperCase : () => string ->foo : string ->toUpperCase : () => string +>foo.toUpperCase : () => string, Symbol(String.toUpperCase, Decl(lib.d.ts, 405, 32)) +>foo : string, Symbol(foo, Decl(propertyAccess7.ts, 0, 3)) +>toUpperCase : () => string, Symbol(String.toUpperCase, Decl(lib.d.ts, 405, 32)) diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.types b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.types index 9d74985b9a5..b5f76328b70 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.types +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.types @@ -3,132 +3,136 @@ // no errors expected class C { ->C : C ->T : T ->Date : Date +>C : C, Symbol(C, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 0, 0)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 3, 8)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) f() { ->f : () => number +>f : () => number, Symbol(f, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 3, 25)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 5, 11)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 3, 8)) var a = x['getDate'](); // number ->a : number +>a : number, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 6, 11)) >x['getDate']() : number >x['getDate'] : () => number ->x : T +>x : T, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 5, 11)) +>'getDate' : string, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) return a + x.getDate(); >a + x.getDate() : number ->a : number +>a : number, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 6, 11)) >x.getDate() : number ->x.getDate : () => number ->x : T ->getDate : () => number +>x.getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) +>x : T, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 5, 11)) +>getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) } } var r = (new C()).f(); ->r : number +>r : number, Symbol(r, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 11, 3)) >(new C()).f() : number ->(new C()).f : () => number +>(new C()).f : () => number, Symbol(C.f, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 3, 25)) >(new C()) : C >new C() : C ->C : typeof C ->Date : Date ->f : () => number +>C : typeof C, Symbol(C, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 0, 0)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>f : () => number, Symbol(C.f, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 3, 25)) interface I { ->I : I ->T : T ->Date : Date +>I : I, Symbol(I, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 11, 28)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 13, 12)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 13, 29)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 13, 12)) } var i: I; ->i : I ->I : I ->Date : Date +>i : I, Symbol(i, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 16, 3)) +>I : I, Symbol(I, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 11, 28)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) var r2 = i.foo.getDate(); ->r2 : number +>r2 : number, Symbol(r2, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 17, 3)) >i.foo.getDate() : number ->i.foo.getDate : () => number ->i.foo : Date ->i : I ->foo : Date ->getDate : () => number +>i.foo.getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) +>i.foo : Date, Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 13, 29)) +>i : I, Symbol(i, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 16, 3)) +>foo : Date, Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 13, 29)) +>getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) var r2b = i.foo['getDate'](); ->r2b : number +>r2b : number, Symbol(r2b, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 18, 3)) >i.foo['getDate']() : number >i.foo['getDate'] : () => number ->i.foo : Date ->i : I ->foo : Date +>i.foo : Date, Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 13, 29)) +>i : I, Symbol(i, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 16, 3)) +>foo : Date, Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 13, 29)) +>'getDate' : string, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) var a: { ->a : () => T +>a : () => T, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 20, 3)) (): T; ->T : T ->Date : Date ->T : T +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 21, 5)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 21, 5)) } var r3 = a().getDate(); ->r3 : number +>r3 : number, Symbol(r3, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 23, 3)) >a().getDate() : number ->a().getDate : () => number +>a().getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) >a() : Date ->a : () => T ->Date : Date ->getDate : () => number +>a : () => T, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 20, 3)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) var r3b = a()['getDate'](); ->r3b : number +>r3b : number, Symbol(r3b, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 24, 3)) >a()['getDate']() : number >a()['getDate'] : () => number >a() : Date ->a : () => T +>a : () => T, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 20, 3)) +>'getDate' : string, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) var b = { ->b : { foo: (x: T) => number; } +>b : { foo: (x: T) => number; }, Symbol(b, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 26, 3)) >{ foo: (x: T) => { var a = x['getDate'](); // number return a + x.getDate(); }} : { foo: (x: T) => number; } foo: (x: T) => { ->foo : (x: T) => number +>foo : (x: T) => number, Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 26, 9)) >(x: T) => { var a = x['getDate'](); // number return a + x.getDate(); } : (x: T) => number ->T : T ->Date : Date ->x : T ->T : T +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 27, 10)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>x : T, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 27, 26)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 27, 10)) var a = x['getDate'](); // number ->a : number +>a : number, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 28, 11)) >x['getDate']() : number >x['getDate'] : () => number ->x : T +>x : T, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 27, 26)) +>'getDate' : string, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) return a + x.getDate(); >a + x.getDate() : number ->a : number +>a : number, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 28, 11)) >x.getDate() : number ->x.getDate : () => number ->x : T ->getDate : () => number +>x.getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) +>x : T, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 27, 26)) +>getDate : () => number, Symbol(Date.getDate, Decl(lib.d.ts, 660, 26)) } } var r4 = b.foo(new Date()); ->r4 : number +>r4 : number, Symbol(r4, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 33, 3)) >b.foo(new Date()) : number ->b.foo : (x: T) => number ->b : { foo: (x: T) => number; } ->foo : (x: T) => number +>b.foo : (x: T) => number, Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 26, 9)) +>b : { foo: (x: T) => number; }, Symbol(b, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 26, 3)) +>foo : (x: T) => number, Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints.ts, 26, 9)) >new Date() : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.types b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.types index 364184d5652..0dae05f57ea 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.types +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.types @@ -2,70 +2,74 @@ // generic types should behave as if they have properties of their constraint type class A { ->A : A +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) foo(): string { return ''; } ->foo : () => string +>foo : () => string, Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) +>'' : string } class B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 4, 1)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) bar(): string { ->bar : () => string +>bar : () => string, Symbol(bar, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 6, 19)) return ''; +>'' : string } } class C { ->C : C ->U : U ->A : A ->T : T ->A : A +>C : C, Symbol(C, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 10, 1)) +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 12, 8)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 12, 20)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) f() { ->f : () => string +>f : () => string, Symbol(f, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 12, 35)) var x: U; ->x : U ->U : U +>x : U, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 14, 11)) +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 12, 8)) var a = x['foo'](); // should be string ->a : string +>a : string, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 15, 11)) >x['foo']() : string >x['foo'] : () => string ->x : U +>x : U, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 14, 11)) +>'foo' : string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) return a + x.foo(); >a + x.foo() : string ->a : string +>a : string, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 15, 11)) >x.foo() : string ->x.foo : () => string ->x : U ->foo : () => string +>x.foo : () => string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) +>x : U, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 14, 11)) +>foo : () => string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) } g(x: U) { ->g : (x: U) => string ->x : U ->U : U +>g : (x: U) => string, Symbol(g, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 17, 5)) +>x : U, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 19, 6)) +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 12, 8)) var a = x['foo'](); // should be string ->a : string +>a : string, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 20, 11)) >x['foo']() : string >x['foo'] : () => string ->x : U +>x : U, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 19, 6)) +>'foo' : string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) return a + x.foo(); >a + x.foo() : string ->a : string +>a : string, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 20, 11)) >x.foo() : string ->x.foo : () => string ->x : U ->foo : () => string +>x.foo : () => string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) +>x : U, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 19, 6)) +>foo : () => string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) } } //class C { @@ -82,95 +86,96 @@ class C { //} var r1 = (new C()).f(); ->r1 : string +>r1 : string, Symbol(r1, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 37, 3)) >(new C()).f() : string ->(new C()).f : () => string +>(new C()).f : () => string, Symbol(C.f, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 12, 35)) >(new C()) : C >new C() : C ->C : typeof C ->B : B ->A : A ->f : () => string +>C : typeof C, Symbol(C, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 10, 1)) +>B : B, Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 4, 1)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>f : () => string, Symbol(C.f, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 12, 35)) var r1b = (new C()).g(new B()); ->r1b : string +>r1b : string, Symbol(r1b, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 38, 3)) >(new C()).g(new B()) : string ->(new C()).g : (x: B) => string +>(new C()).g : (x: B) => string, Symbol(C.g, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 17, 5)) >(new C()) : C >new C() : C ->C : typeof C ->B : B ->A : A ->g : (x: B) => string +>C : typeof C, Symbol(C, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 10, 1)) +>B : B, Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 4, 1)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>g : (x: B) => string, Symbol(C.g, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 17, 5)) >new B() : B ->B : typeof B +>B : typeof B, Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 4, 1)) interface I { ->I : I ->U : U ->A : A ->T : T ->A : A +>I : I, Symbol(I, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 38, 37)) +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 40, 12)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 40, 24)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) foo: U; ->foo : U ->U : U +>foo : U, Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 40, 39)) +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 40, 12)) } //interface I { // foo: U; //} var i: I; ->i : I ->I : I ->B : B ->A : A +>i : I, Symbol(i, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 46, 3)) +>I : I, Symbol(I, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 38, 37)) +>B : B, Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 4, 1)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) var r2 = i.foo.foo(); ->r2 : string +>r2 : string, Symbol(r2, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 47, 3)) >i.foo.foo() : string ->i.foo.foo : () => string ->i.foo : B ->i : I ->foo : B ->foo : () => string +>i.foo.foo : () => string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) +>i.foo : B, Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 40, 39)) +>i : I, Symbol(i, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 46, 3)) +>foo : B, Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 40, 39)) +>foo : () => string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) var r2b = i.foo['foo'](); ->r2b : string +>r2b : string, Symbol(r2b, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 48, 3)) >i.foo['foo']() : string >i.foo['foo'] : () => string ->i.foo : B ->i : I ->foo : B +>i.foo : B, Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 40, 39)) +>i : I, Symbol(i, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 46, 3)) +>foo : B, Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 40, 39)) +>'foo' : string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) var a: { ->a : { (): U; (x: U): U; (x: U, y: T): U; } +>a : { (): U; (x: U): U; (x: U, y: T): U; }, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 50, 3)) (): U; ->U : U ->A : A ->T : T ->A : A ->U : U +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 51, 5)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 51, 17)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 51, 5)) (x: U): U; ->U : U ->A : A ->T : T ->A : A ->x : U ->U : U ->U : U +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 52, 5)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 52, 17)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>x : U, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 52, 31)) +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 52, 5)) +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 52, 5)) (x: U, y: T): U; ->U : U ->A : A ->T : T ->A : A ->x : U ->U : U ->y : T ->T : T ->U : U +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 53, 5)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 53, 17)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>x : U, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 53, 31)) +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 53, 5)) +>y : T, Symbol(y, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 53, 36)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 53, 17)) +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 53, 5)) } //var a: { // (): U; @@ -178,76 +183,79 @@ var a: { // (x: U, y: T): U; //} var r3 = a().foo(); ->r3 : string +>r3 : string, Symbol(r3, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 60, 3)) >a().foo() : string ->a().foo : () => string +>a().foo : () => string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) >a() : A ->a : { (): U; (x: U): U; (x: U, y: T): U; } ->A : A ->A : A ->foo : () => string +>a : { (): U; (x: U): U; (x: U, y: T): U; }, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 50, 3)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>foo : () => string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) var r3b = a()['foo'](); ->r3b : string +>r3b : string, Symbol(r3b, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 61, 3)) >a()['foo']() : string >a()['foo'] : () => string >a() : A ->a : { (): U; (x: U): U; (x: U, y: T): U; } +>a : { (): U; (x: U): U; (x: U, y: T): U; }, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 50, 3)) +>'foo' : string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) // parameter supplied for type argument inference to succeed var aB = new B(); ->aB : B +>aB : B, Symbol(aB, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 63, 3)) >new B() : B ->B : typeof B +>B : typeof B, Symbol(B, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 4, 1)) var r3c = a(aB, aB).foo(); ->r3c : string +>r3c : string, Symbol(r3c, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 64, 3)) >a(aB, aB).foo() : string ->a(aB, aB).foo : () => string +>a(aB, aB).foo : () => string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) >a(aB, aB) : B ->a : { (): U; (x: U): U; (x: U, y: T): U; } ->aB : B ->aB : B ->foo : () => string +>a : { (): U; (x: U): U; (x: U, y: T): U; }, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 50, 3)) +>aB : B, Symbol(aB, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 63, 3)) +>aB : B, Symbol(aB, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 63, 3)) +>foo : () => string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) var r3d = a(aB, aB)['foo'](); ->r3d : string +>r3d : string, Symbol(r3d, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 65, 3)) >a(aB, aB)['foo']() : string >a(aB, aB)['foo'] : () => string >a(aB, aB) : B ->a : { (): U; (x: U): U; (x: U, y: T): U; } ->aB : B ->aB : B +>a : { (): U; (x: U): U; (x: U, y: T): U; }, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 50, 3)) +>aB : B, Symbol(aB, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 63, 3)) +>aB : B, Symbol(aB, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 63, 3)) +>'foo' : string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) var b = { ->b : { foo: (x: U, y: T) => string; } +>b : { foo: (x: U, y: T) => string; }, Symbol(b, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 67, 3)) >{ foo: (x: U, y: T) => { var a = x['foo'](); // should be string return a + x.foo(); }} : { foo: (x: U, y: T) => string; } foo: (x: U, y: T) => { ->foo : (x: U, y: T) => string +>foo : (x: U, y: T) => string, Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 67, 9)) >(x: U, y: T) => { var a = x['foo'](); // should be string return a + x.foo(); } : (x: U, y: T) => string ->U : U ->A : A ->T : T ->A : A ->x : U ->U : U ->y : T ->T : T +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 68, 10)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 68, 22)) +>A : A, Symbol(A, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 0, 0)) +>x : U, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 68, 36)) +>U : U, Symbol(U, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 68, 10)) +>y : T, Symbol(y, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 68, 41)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 68, 22)) var a = x['foo'](); // should be string ->a : string +>a : string, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 69, 11)) >x['foo']() : string >x['foo'] : () => string ->x : U +>x : U, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 68, 36)) +>'foo' : string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) return a + x.foo(); >a + x.foo() : string ->a : string +>a : string, Symbol(a, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 69, 11)) >x.foo() : string ->x.foo : () => string ->x : U ->foo : () => string +>x.foo : () => string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) +>x : U, Symbol(x, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 68, 36)) +>foo : () => string, Symbol(A.foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 2, 9)) } } //var b = { @@ -258,11 +266,11 @@ var b = { //} var r4 = b.foo(aB, aB); // no inferences for T so constraint isn't satisfied, error ->r4 : string +>r4 : string, Symbol(r4, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 80, 3)) >b.foo(aB, aB) : string ->b.foo : (x: U, y: T) => string ->b : { foo: (x: U, y: T) => string; } ->foo : (x: U, y: T) => string ->aB : B ->aB : B +>b.foo : (x: U, y: T) => string, Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 67, 9)) +>b : { foo: (x: U, y: T) => string; }, Symbol(b, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 67, 3)) +>foo : (x: U, y: T) => string, Symbol(foo, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 67, 9)) +>aB : B, Symbol(aB, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 63, 3)) +>aB : B, Symbol(aB, Decl(propertyAccessOnTypeParameterWithConstraints2.ts, 63, 3)) diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.types b/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.types index 038c7962284..50c7d9dcf79 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.types +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.types @@ -1,122 +1,127 @@ === tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithoutConstraints.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 0, 0)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 0, 8)) f() { ->f : () => string +>f : () => string, Symbol(f, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 0, 12)) var x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 2, 11)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 0, 8)) var a = x['toString'](); // should be string ->a : string +>a : string, Symbol(a, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 3, 11)) >x['toString']() : string >x['toString'] : () => string ->x : T +>x : T, Symbol(x, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 2, 11)) +>'toString' : string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) return a + x.toString(); >a + x.toString() : string ->a : string +>a : string, Symbol(a, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 3, 11)) >x.toString() : string ->x.toString : () => string ->x : T ->toString : () => string +>x.toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) +>x : T, Symbol(x, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 2, 11)) +>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) } } var r = (new C()).f(); ->r : string +>r : string, Symbol(r, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 8, 3)) >(new C()).f() : string ->(new C()).f : () => string +>(new C()).f : () => string, Symbol(C.f, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 0, 12)) >(new C()) : C >new C() : C ->C : typeof C ->f : () => string +>C : typeof C, Symbol(C, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 0, 0)) +>f : () => string, Symbol(C.f, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 0, 12)) interface I { ->I : I ->T : T +>I : I, Symbol(I, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 8, 30)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 10, 12)) foo: T; ->foo : T ->T : T +>foo : T, Symbol(foo, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 10, 16)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 10, 12)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 13, 3)) +>I : I, Symbol(I, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 8, 30)) var r2 = i.foo.toString(); ->r2 : string +>r2 : string, Symbol(r2, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 14, 3)) >i.foo.toString() : string ->i.foo.toString : (radix?: number) => string ->i.foo : number ->i : I ->foo : number ->toString : (radix?: number) => string +>i.foo.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>i.foo : number, Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 10, 16)) +>i : I, Symbol(i, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 13, 3)) +>foo : number, Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 10, 16)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) var r2b = i.foo['toString'](); ->r2b : string +>r2b : string, Symbol(r2b, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 15, 3)) >i.foo['toString']() : string >i.foo['toString'] : (radix?: number) => string ->i.foo : number ->i : I ->foo : number +>i.foo : number, Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 10, 16)) +>i : I, Symbol(i, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 13, 3)) +>foo : number, Symbol(I.foo, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 10, 16)) +>'toString' : string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) var a: { ->a : () => T +>a : () => T, Symbol(a, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 17, 3)) (): T; ->T : T ->T : T +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 18, 5)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 18, 5)) } var r3: string = a().toString(); ->r3 : string +>r3 : string, Symbol(r3, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 20, 3)) >a().toString() : string ->a().toString : () => string +>a().toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) >a() : {} ->a : () => T ->toString : () => string +>a : () => T, Symbol(a, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 17, 3)) +>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) var r3b: string = a()['toString'](); ->r3b : string +>r3b : string, Symbol(r3b, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 21, 3)) >a()['toString']() : string >a()['toString'] : () => string >a() : {} ->a : () => T +>a : () => T, Symbol(a, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 17, 3)) +>'toString' : string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) var b = { ->b : { foo: (x: T) => string; } +>b : { foo: (x: T) => string; }, Symbol(b, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 23, 3)) >{ foo: (x: T) => { var a = x['toString'](); // should be string return a + x.toString(); }} : { foo: (x: T) => string; } foo: (x: T) => { ->foo : (x: T) => string +>foo : (x: T) => string, Symbol(foo, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 23, 9)) >(x: T) => { var a = x['toString'](); // should be string return a + x.toString(); } : (x: T) => string ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 24, 10)) +>x : T, Symbol(x, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 24, 13)) +>T : T, Symbol(T, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 24, 10)) var a = x['toString'](); // should be string ->a : string +>a : string, Symbol(a, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 25, 11)) >x['toString']() : string >x['toString'] : () => string ->x : T +>x : T, Symbol(x, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 24, 13)) +>'toString' : string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) return a + x.toString(); >a + x.toString() : string ->a : string +>a : string, Symbol(a, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 25, 11)) >x.toString() : string ->x.toString : () => string ->x : T ->toString : () => string +>x.toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) +>x : T, Symbol(x, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 24, 13)) +>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26)) } } var r4 = b.foo(1); ->r4 : string +>r4 : string, Symbol(r4, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 30, 3)) >b.foo(1) : string ->b.foo : (x: T) => string ->b : { foo: (x: T) => string; } ->foo : (x: T) => string +>b.foo : (x: T) => string, Symbol(foo, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 23, 9)) +>b : { foo: (x: T) => string; }, Symbol(b, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 23, 3)) +>foo : (x: T) => string, Symbol(foo, Decl(propertyAccessOnTypeParameterWithoutConstraints.ts, 23, 9)) +>1 : number diff --git a/tests/baselines/reference/propertyNameWithoutTypeAnnotation.types b/tests/baselines/reference/propertyNameWithoutTypeAnnotation.types index 520567d33a1..e88f09f3108 100644 --- a/tests/baselines/reference/propertyNameWithoutTypeAnnotation.types +++ b/tests/baselines/reference/propertyNameWithoutTypeAnnotation.types @@ -1,59 +1,61 @@ === tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNameWithoutTypeAnnotation.ts === class C { ->C : C +>C : C, Symbol(C, Decl(propertyNameWithoutTypeAnnotation.ts, 0, 0)) foo; ->foo : any +>foo : any, Symbol(foo, Decl(propertyNameWithoutTypeAnnotation.ts, 0, 9)) } interface I { ->I : I +>I : I, Symbol(I, Decl(propertyNameWithoutTypeAnnotation.ts, 2, 1)) foo; ->foo : any +>foo : any, Symbol(foo, Decl(propertyNameWithoutTypeAnnotation.ts, 4, 13)) } var a: { ->a : { foo: any; } +>a : { foo: any; }, Symbol(a, Decl(propertyNameWithoutTypeAnnotation.ts, 8, 3)) foo; ->foo : any +>foo : any, Symbol(foo, Decl(propertyNameWithoutTypeAnnotation.ts, 8, 8)) } var b = { ->b : { foo: any; } +>b : { foo: any; }, Symbol(b, Decl(propertyNameWithoutTypeAnnotation.ts, 12, 3)) >{ foo: null} : { foo: null; } foo: null ->foo : null +>foo : null, Symbol(foo, Decl(propertyNameWithoutTypeAnnotation.ts, 12, 9)) +>null : null } // These should all be of type 'any' var r1 = (new C()).foo; ->r1 : any ->(new C()).foo : any +>r1 : any, Symbol(r1, Decl(propertyNameWithoutTypeAnnotation.ts, 17, 3)) +>(new C()).foo : any, Symbol(C.foo, Decl(propertyNameWithoutTypeAnnotation.ts, 0, 9)) >(new C()) : C >new C() : C ->C : typeof C ->foo : any +>C : typeof C, Symbol(C, Decl(propertyNameWithoutTypeAnnotation.ts, 0, 0)) +>foo : any, Symbol(C.foo, Decl(propertyNameWithoutTypeAnnotation.ts, 0, 9)) var r2 = (null).foo; ->r2 : any ->(null).foo : any +>r2 : any, Symbol(r2, Decl(propertyNameWithoutTypeAnnotation.ts, 18, 3)) +>(null).foo : any, Symbol(I.foo, Decl(propertyNameWithoutTypeAnnotation.ts, 4, 13)) >(null) : I >null : I ->I : I ->foo : any +>I : I, Symbol(I, Decl(propertyNameWithoutTypeAnnotation.ts, 2, 1)) +>null : null +>foo : any, Symbol(I.foo, Decl(propertyNameWithoutTypeAnnotation.ts, 4, 13)) var r3 = a.foo; ->r3 : any ->a.foo : any ->a : { foo: any; } ->foo : any +>r3 : any, Symbol(r3, Decl(propertyNameWithoutTypeAnnotation.ts, 19, 3)) +>a.foo : any, Symbol(foo, Decl(propertyNameWithoutTypeAnnotation.ts, 8, 8)) +>a : { foo: any; }, Symbol(a, Decl(propertyNameWithoutTypeAnnotation.ts, 8, 3)) +>foo : any, Symbol(foo, Decl(propertyNameWithoutTypeAnnotation.ts, 8, 8)) var r4 = b.foo; ->r4 : any ->b.foo : any ->b : { foo: any; } ->foo : any +>r4 : any, Symbol(r4, Decl(propertyNameWithoutTypeAnnotation.ts, 20, 3)) +>b.foo : any, Symbol(foo, Decl(propertyNameWithoutTypeAnnotation.ts, 12, 9)) +>b : { foo: any; }, Symbol(b, Decl(propertyNameWithoutTypeAnnotation.ts, 12, 3)) +>foo : any, Symbol(foo, Decl(propertyNameWithoutTypeAnnotation.ts, 12, 9)) diff --git a/tests/baselines/reference/propertyNamesOfReservedWords.types b/tests/baselines/reference/propertyNamesOfReservedWords.types index 2554a7f61dd..ca87f8c4e82 100644 --- a/tests/baselines/reference/propertyNamesOfReservedWords.types +++ b/tests/baselines/reference/propertyNamesOfReservedWords.types @@ -1,828 +1,828 @@ === tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNamesOfReservedWords.ts === class C { ->C : C +>C : C, Symbol(C, Decl(propertyNamesOfReservedWords.ts, 0, 0)) abstract; ->abstract : any +>abstract : any, Symbol(abstract, Decl(propertyNamesOfReservedWords.ts, 0, 9)) as; ->as : any +>as : any, Symbol(as, Decl(propertyNamesOfReservedWords.ts, 1, 13)) boolean; ->boolean : any +>boolean : any, Symbol(boolean, Decl(propertyNamesOfReservedWords.ts, 2, 7)) break; ->break : any +>break : any, Symbol(break, Decl(propertyNamesOfReservedWords.ts, 3, 12)) byte; ->byte : any +>byte : any, Symbol(byte, Decl(propertyNamesOfReservedWords.ts, 4, 10)) case; ->case : any +>case : any, Symbol(case, Decl(propertyNamesOfReservedWords.ts, 5, 9)) catch; ->catch : any +>catch : any, Symbol(catch, Decl(propertyNamesOfReservedWords.ts, 6, 9)) char; ->char : any +>char : any, Symbol(char, Decl(propertyNamesOfReservedWords.ts, 7, 10)) class; ->class : any +>class : any, Symbol(class, Decl(propertyNamesOfReservedWords.ts, 8, 9)) continue; ->continue : any +>continue : any, Symbol(continue, Decl(propertyNamesOfReservedWords.ts, 9, 10)) const; ->const : any +>const : any, Symbol(const, Decl(propertyNamesOfReservedWords.ts, 10, 13)) debugger; ->debugger : any +>debugger : any, Symbol(debugger, Decl(propertyNamesOfReservedWords.ts, 11, 10)) default; ->default : any +>default : any, Symbol(default, Decl(propertyNamesOfReservedWords.ts, 12, 13)) delete; ->delete : any +>delete : any, Symbol(delete, Decl(propertyNamesOfReservedWords.ts, 13, 12)) do; ->do : any +>do : any, Symbol(do, Decl(propertyNamesOfReservedWords.ts, 14, 11)) double; ->double : any +>double : any, Symbol(double, Decl(propertyNamesOfReservedWords.ts, 15, 7)) else; ->else : any +>else : any, Symbol(else, Decl(propertyNamesOfReservedWords.ts, 16, 11)) enum; ->enum : any +>enum : any, Symbol(enum, Decl(propertyNamesOfReservedWords.ts, 17, 9)) export; ->export : any +>export : any, Symbol(export, Decl(propertyNamesOfReservedWords.ts, 18, 9)) extends; ->extends : any +>extends : any, Symbol(extends, Decl(propertyNamesOfReservedWords.ts, 19, 11)) false; ->false : any +>false : any, Symbol(false, Decl(propertyNamesOfReservedWords.ts, 20, 12)) final; ->final : any +>final : any, Symbol(final, Decl(propertyNamesOfReservedWords.ts, 21, 10)) finally; ->finally : any +>finally : any, Symbol(finally, Decl(propertyNamesOfReservedWords.ts, 22, 10)) float; ->float : any +>float : any, Symbol(float, Decl(propertyNamesOfReservedWords.ts, 23, 12)) for; ->for : any +>for : any, Symbol(for, Decl(propertyNamesOfReservedWords.ts, 24, 10)) function; ->function : any +>function : any, Symbol(function, Decl(propertyNamesOfReservedWords.ts, 25, 8)) goto; ->goto : any +>goto : any, Symbol(goto, Decl(propertyNamesOfReservedWords.ts, 26, 13)) if; ->if : any +>if : any, Symbol(if, Decl(propertyNamesOfReservedWords.ts, 27, 9)) implements; ->implements : any +>implements : any, Symbol(implements, Decl(propertyNamesOfReservedWords.ts, 28, 7)) import; ->import : any +>import : any, Symbol(import, Decl(propertyNamesOfReservedWords.ts, 29, 15)) in; ->in : any +>in : any, Symbol(in, Decl(propertyNamesOfReservedWords.ts, 30, 11)) instanceof; ->instanceof : any +>instanceof : any, Symbol(instanceof, Decl(propertyNamesOfReservedWords.ts, 31, 7)) int; ->int : any +>int : any, Symbol(int, Decl(propertyNamesOfReservedWords.ts, 32, 15)) interface; ->interface : any +>interface : any, Symbol(interface, Decl(propertyNamesOfReservedWords.ts, 33, 8)) is; ->is : any +>is : any, Symbol(is, Decl(propertyNamesOfReservedWords.ts, 34, 14)) long; ->long : any +>long : any, Symbol(long, Decl(propertyNamesOfReservedWords.ts, 35, 7)) namespace; ->namespace : any +>namespace : any, Symbol(namespace, Decl(propertyNamesOfReservedWords.ts, 36, 9)) native; ->native : any +>native : any, Symbol(native, Decl(propertyNamesOfReservedWords.ts, 37, 14)) new; ->new : any +>new : any, Symbol(new, Decl(propertyNamesOfReservedWords.ts, 38, 11)) null; ->null : any +>null : any, Symbol(null, Decl(propertyNamesOfReservedWords.ts, 39, 8)) package; ->package : any +>package : any, Symbol(package, Decl(propertyNamesOfReservedWords.ts, 40, 9)) private; ->private : any +>private : any, Symbol(private, Decl(propertyNamesOfReservedWords.ts, 41, 12)) protected; ->protected : any +>protected : any, Symbol(protected, Decl(propertyNamesOfReservedWords.ts, 42, 12)) public; ->public : any +>public : any, Symbol(public, Decl(propertyNamesOfReservedWords.ts, 43, 14)) return; ->return : any +>return : any, Symbol(return, Decl(propertyNamesOfReservedWords.ts, 44, 11)) short; ->short : any +>short : any, Symbol(short, Decl(propertyNamesOfReservedWords.ts, 45, 11)) static; ->static : any +>static : any, Symbol(static, Decl(propertyNamesOfReservedWords.ts, 46, 10)) super; ->super : any +>super : any, Symbol(super, Decl(propertyNamesOfReservedWords.ts, 47, 11)) switch; ->switch : any +>switch : any, Symbol(switch, Decl(propertyNamesOfReservedWords.ts, 48, 10)) synchronized; ->synchronized : any +>synchronized : any, Symbol(synchronized, Decl(propertyNamesOfReservedWords.ts, 49, 11)) this; ->this : any +>this : any, Symbol(this, Decl(propertyNamesOfReservedWords.ts, 50, 17)) throw; ->throw : any +>throw : any, Symbol(throw, Decl(propertyNamesOfReservedWords.ts, 51, 9)) throws; ->throws : any +>throws : any, Symbol(throws, Decl(propertyNamesOfReservedWords.ts, 52, 10)) transient; ->transient : any +>transient : any, Symbol(transient, Decl(propertyNamesOfReservedWords.ts, 53, 11)) true; ->true : any +>true : any, Symbol(true, Decl(propertyNamesOfReservedWords.ts, 54, 14)) try; ->try : any +>try : any, Symbol(try, Decl(propertyNamesOfReservedWords.ts, 55, 9)) typeof; ->typeof : any +>typeof : any, Symbol(typeof, Decl(propertyNamesOfReservedWords.ts, 56, 8)) use; ->use : any +>use : any, Symbol(use, Decl(propertyNamesOfReservedWords.ts, 57, 11)) var; ->var : any +>var : any, Symbol(var, Decl(propertyNamesOfReservedWords.ts, 58, 8)) void; ->void : any +>void : any, Symbol(void, Decl(propertyNamesOfReservedWords.ts, 59, 8)) volatile; ->volatile : any +>volatile : any, Symbol(volatile, Decl(propertyNamesOfReservedWords.ts, 60, 9)) while; ->while : any +>while : any, Symbol(while, Decl(propertyNamesOfReservedWords.ts, 61, 13)) with; ->with : any +>with : any, Symbol(with, Decl(propertyNamesOfReservedWords.ts, 62, 10)) } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(propertyNamesOfReservedWords.ts, 65, 3)) +>C : C, Symbol(C, Decl(propertyNamesOfReservedWords.ts, 0, 0)) var r1 = c.abstract; ->r1 : any ->c.abstract : any ->c : C ->abstract : any +>r1 : any, Symbol(r1, Decl(propertyNamesOfReservedWords.ts, 66, 3)) +>c.abstract : any, Symbol(C.abstract, Decl(propertyNamesOfReservedWords.ts, 0, 9)) +>c : C, Symbol(c, Decl(propertyNamesOfReservedWords.ts, 65, 3)) +>abstract : any, Symbol(C.abstract, Decl(propertyNamesOfReservedWords.ts, 0, 9)) var r2 = c.as; ->r2 : any ->c.as : any ->c : C ->as : any +>r2 : any, Symbol(r2, Decl(propertyNamesOfReservedWords.ts, 67, 3)) +>c.as : any, Symbol(C.as, Decl(propertyNamesOfReservedWords.ts, 1, 13)) +>c : C, Symbol(c, Decl(propertyNamesOfReservedWords.ts, 65, 3)) +>as : any, Symbol(C.as, Decl(propertyNamesOfReservedWords.ts, 1, 13)) interface I { ->I : I +>I : I, Symbol(I, Decl(propertyNamesOfReservedWords.ts, 67, 14)) abstract; ->abstract : any +>abstract : any, Symbol(abstract, Decl(propertyNamesOfReservedWords.ts, 69, 13)) as; ->as : any +>as : any, Symbol(as, Decl(propertyNamesOfReservedWords.ts, 70, 13)) boolean; ->boolean : any +>boolean : any, Symbol(boolean, Decl(propertyNamesOfReservedWords.ts, 71, 7)) break; ->break : any +>break : any, Symbol(break, Decl(propertyNamesOfReservedWords.ts, 72, 12)) byte; ->byte : any +>byte : any, Symbol(byte, Decl(propertyNamesOfReservedWords.ts, 73, 10)) case; ->case : any +>case : any, Symbol(case, Decl(propertyNamesOfReservedWords.ts, 74, 9)) catch; ->catch : any +>catch : any, Symbol(catch, Decl(propertyNamesOfReservedWords.ts, 75, 9)) char; ->char : any +>char : any, Symbol(char, Decl(propertyNamesOfReservedWords.ts, 76, 10)) class; ->class : any +>class : any, Symbol(class, Decl(propertyNamesOfReservedWords.ts, 77, 9)) continue; ->continue : any +>continue : any, Symbol(continue, Decl(propertyNamesOfReservedWords.ts, 78, 10)) const; ->const : any +>const : any, Symbol(const, Decl(propertyNamesOfReservedWords.ts, 79, 13)) debugger; ->debugger : any +>debugger : any, Symbol(debugger, Decl(propertyNamesOfReservedWords.ts, 80, 10)) default; ->default : any +>default : any, Symbol(default, Decl(propertyNamesOfReservedWords.ts, 81, 13)) delete; ->delete : any +>delete : any, Symbol(delete, Decl(propertyNamesOfReservedWords.ts, 82, 12)) do; ->do : any +>do : any, Symbol(do, Decl(propertyNamesOfReservedWords.ts, 83, 11)) double; ->double : any +>double : any, Symbol(double, Decl(propertyNamesOfReservedWords.ts, 84, 7)) else; ->else : any +>else : any, Symbol(else, Decl(propertyNamesOfReservedWords.ts, 85, 11)) enum; ->enum : any +>enum : any, Symbol(enum, Decl(propertyNamesOfReservedWords.ts, 86, 9)) export; ->export : any +>export : any, Symbol(export, Decl(propertyNamesOfReservedWords.ts, 87, 9)) extends; ->extends : any +>extends : any, Symbol(extends, Decl(propertyNamesOfReservedWords.ts, 88, 11)) false; ->false : any +>false : any, Symbol(false, Decl(propertyNamesOfReservedWords.ts, 89, 12)) final; ->final : any +>final : any, Symbol(final, Decl(propertyNamesOfReservedWords.ts, 90, 10)) finally; ->finally : any +>finally : any, Symbol(finally, Decl(propertyNamesOfReservedWords.ts, 91, 10)) float; ->float : any +>float : any, Symbol(float, Decl(propertyNamesOfReservedWords.ts, 92, 12)) for; ->for : any +>for : any, Symbol(for, Decl(propertyNamesOfReservedWords.ts, 93, 10)) function; ->function : any +>function : any, Symbol(function, Decl(propertyNamesOfReservedWords.ts, 94, 8)) goto; ->goto : any +>goto : any, Symbol(goto, Decl(propertyNamesOfReservedWords.ts, 95, 13)) if; ->if : any +>if : any, Symbol(if, Decl(propertyNamesOfReservedWords.ts, 96, 9)) implements; ->implements : any +>implements : any, Symbol(implements, Decl(propertyNamesOfReservedWords.ts, 97, 7)) import; ->import : any +>import : any, Symbol(import, Decl(propertyNamesOfReservedWords.ts, 98, 15)) in; ->in : any +>in : any, Symbol(in, Decl(propertyNamesOfReservedWords.ts, 99, 11)) instanceof; ->instanceof : any +>instanceof : any, Symbol(instanceof, Decl(propertyNamesOfReservedWords.ts, 100, 7)) int; ->int : any +>int : any, Symbol(int, Decl(propertyNamesOfReservedWords.ts, 101, 15)) interface; ->interface : any +>interface : any, Symbol(interface, Decl(propertyNamesOfReservedWords.ts, 102, 8)) is; ->is : any +>is : any, Symbol(is, Decl(propertyNamesOfReservedWords.ts, 103, 14)) long; ->long : any +>long : any, Symbol(long, Decl(propertyNamesOfReservedWords.ts, 104, 7)) namespace; ->namespace : any +>namespace : any, Symbol(namespace, Decl(propertyNamesOfReservedWords.ts, 105, 9)) native; ->native : any +>native : any, Symbol(native, Decl(propertyNamesOfReservedWords.ts, 106, 14)) new; ->new : any +>new : any, Symbol(new, Decl(propertyNamesOfReservedWords.ts, 107, 11)) null; ->null : any +>null : any, Symbol(null, Decl(propertyNamesOfReservedWords.ts, 108, 8)) package; ->package : any +>package : any, Symbol(package, Decl(propertyNamesOfReservedWords.ts, 109, 9)) private; ->private : any +>private : any, Symbol(private, Decl(propertyNamesOfReservedWords.ts, 110, 12)) protected; ->protected : any +>protected : any, Symbol(protected, Decl(propertyNamesOfReservedWords.ts, 111, 12)) public; ->public : any +>public : any, Symbol(public, Decl(propertyNamesOfReservedWords.ts, 112, 14)) return; ->return : any +>return : any, Symbol(return, Decl(propertyNamesOfReservedWords.ts, 113, 11)) short; ->short : any +>short : any, Symbol(short, Decl(propertyNamesOfReservedWords.ts, 114, 11)) static; ->static : any +>static : any, Symbol(static, Decl(propertyNamesOfReservedWords.ts, 115, 10)) super; ->super : any +>super : any, Symbol(super, Decl(propertyNamesOfReservedWords.ts, 116, 11)) switch; ->switch : any +>switch : any, Symbol(switch, Decl(propertyNamesOfReservedWords.ts, 117, 10)) synchronized; ->synchronized : any +>synchronized : any, Symbol(synchronized, Decl(propertyNamesOfReservedWords.ts, 118, 11)) this; ->this : any +>this : any, Symbol(this, Decl(propertyNamesOfReservedWords.ts, 119, 17)) throw; ->throw : any +>throw : any, Symbol(throw, Decl(propertyNamesOfReservedWords.ts, 120, 9)) throws; ->throws : any +>throws : any, Symbol(throws, Decl(propertyNamesOfReservedWords.ts, 121, 10)) transient; ->transient : any +>transient : any, Symbol(transient, Decl(propertyNamesOfReservedWords.ts, 122, 11)) true; ->true : any +>true : any, Symbol(true, Decl(propertyNamesOfReservedWords.ts, 123, 14)) try; ->try : any +>try : any, Symbol(try, Decl(propertyNamesOfReservedWords.ts, 124, 9)) typeof; ->typeof : any +>typeof : any, Symbol(typeof, Decl(propertyNamesOfReservedWords.ts, 125, 8)) use; ->use : any +>use : any, Symbol(use, Decl(propertyNamesOfReservedWords.ts, 126, 11)) var; ->var : any +>var : any, Symbol(var, Decl(propertyNamesOfReservedWords.ts, 127, 8)) void; ->void : any +>void : any, Symbol(void, Decl(propertyNamesOfReservedWords.ts, 128, 8)) volatile; ->volatile : any +>volatile : any, Symbol(volatile, Decl(propertyNamesOfReservedWords.ts, 129, 9)) while; ->while : any +>while : any, Symbol(while, Decl(propertyNamesOfReservedWords.ts, 130, 13)) with; ->with : any +>with : any, Symbol(with, Decl(propertyNamesOfReservedWords.ts, 131, 10)) } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(propertyNamesOfReservedWords.ts, 135, 3)) +>I : I, Symbol(I, Decl(propertyNamesOfReservedWords.ts, 67, 14)) var r3 = i.abstract; ->r3 : any ->i.abstract : any ->i : I ->abstract : any +>r3 : any, Symbol(r3, Decl(propertyNamesOfReservedWords.ts, 136, 3)) +>i.abstract : any, Symbol(I.abstract, Decl(propertyNamesOfReservedWords.ts, 69, 13)) +>i : I, Symbol(i, Decl(propertyNamesOfReservedWords.ts, 135, 3)) +>abstract : any, Symbol(I.abstract, Decl(propertyNamesOfReservedWords.ts, 69, 13)) var r4 = i.as; ->r4 : any ->i.as : any ->i : I ->as : any +>r4 : any, Symbol(r4, Decl(propertyNamesOfReservedWords.ts, 137, 3)) +>i.as : any, Symbol(I.as, Decl(propertyNamesOfReservedWords.ts, 70, 13)) +>i : I, Symbol(i, Decl(propertyNamesOfReservedWords.ts, 135, 3)) +>as : any, Symbol(I.as, Decl(propertyNamesOfReservedWords.ts, 70, 13)) var a: { ->a : { abstract: any; as: any; boolean: any; break: any; byte: any; case: any; catch: any; char: any; class: any; continue: any; const: any; debugger: any; default: any; delete: any; do: any; double: any; else: any; enum: any; export: any; extends: any; false: any; final: any; finally: any; float: any; for: any; function: any; goto: any; if: any; implements: any; import: any; in: any; instanceof: any; int: any; interface: any; is: any; long: any; namespace: any; native: any; new: any; null: any; package: any; private: any; protected: any; public: any; return: any; short: any; static: any; super: any; switch: any; synchronized: any; this: any; throw: any; throws: any; transient: any; true: any; try: any; typeof: any; use: any; var: any; void: any; volatile: any; while: any; with: any; } +>a : { abstract: any; as: any; boolean: any; break: any; byte: any; case: any; catch: any; char: any; class: any; continue: any; const: any; debugger: any; default: any; delete: any; do: any; double: any; else: any; enum: any; export: any; extends: any; false: any; final: any; finally: any; float: any; for: any; function: any; goto: any; if: any; implements: any; import: any; in: any; instanceof: any; int: any; interface: any; is: any; long: any; namespace: any; native: any; new: any; null: any; package: any; private: any; protected: any; public: any; return: any; short: any; static: any; super: any; switch: any; synchronized: any; this: any; throw: any; throws: any; transient: any; true: any; try: any; typeof: any; use: any; var: any; void: any; volatile: any; while: any; with: any; }, Symbol(a, Decl(propertyNamesOfReservedWords.ts, 139, 3)) abstract; ->abstract : any +>abstract : any, Symbol(abstract, Decl(propertyNamesOfReservedWords.ts, 139, 8)) as; ->as : any +>as : any, Symbol(as, Decl(propertyNamesOfReservedWords.ts, 140, 13)) boolean; ->boolean : any +>boolean : any, Symbol(boolean, Decl(propertyNamesOfReservedWords.ts, 141, 7)) break; ->break : any +>break : any, Symbol(break, Decl(propertyNamesOfReservedWords.ts, 142, 12)) byte; ->byte : any +>byte : any, Symbol(byte, Decl(propertyNamesOfReservedWords.ts, 143, 10)) case; ->case : any +>case : any, Symbol(case, Decl(propertyNamesOfReservedWords.ts, 144, 9)) catch; ->catch : any +>catch : any, Symbol(catch, Decl(propertyNamesOfReservedWords.ts, 145, 9)) char; ->char : any +>char : any, Symbol(char, Decl(propertyNamesOfReservedWords.ts, 146, 10)) class; ->class : any +>class : any, Symbol(class, Decl(propertyNamesOfReservedWords.ts, 147, 9)) continue; ->continue : any +>continue : any, Symbol(continue, Decl(propertyNamesOfReservedWords.ts, 148, 10)) const; ->const : any +>const : any, Symbol(const, Decl(propertyNamesOfReservedWords.ts, 149, 13)) debugger; ->debugger : any +>debugger : any, Symbol(debugger, Decl(propertyNamesOfReservedWords.ts, 150, 10)) default; ->default : any +>default : any, Symbol(default, Decl(propertyNamesOfReservedWords.ts, 151, 13)) delete; ->delete : any +>delete : any, Symbol(delete, Decl(propertyNamesOfReservedWords.ts, 152, 12)) do; ->do : any +>do : any, Symbol(do, Decl(propertyNamesOfReservedWords.ts, 153, 11)) double; ->double : any +>double : any, Symbol(double, Decl(propertyNamesOfReservedWords.ts, 154, 7)) else; ->else : any +>else : any, Symbol(else, Decl(propertyNamesOfReservedWords.ts, 155, 11)) enum; ->enum : any +>enum : any, Symbol(enum, Decl(propertyNamesOfReservedWords.ts, 156, 9)) export; ->export : any +>export : any, Symbol(export, Decl(propertyNamesOfReservedWords.ts, 157, 9)) extends; ->extends : any +>extends : any, Symbol(extends, Decl(propertyNamesOfReservedWords.ts, 158, 11)) false; ->false : any +>false : any, Symbol(false, Decl(propertyNamesOfReservedWords.ts, 159, 12)) final; ->final : any +>final : any, Symbol(final, Decl(propertyNamesOfReservedWords.ts, 160, 10)) finally; ->finally : any +>finally : any, Symbol(finally, Decl(propertyNamesOfReservedWords.ts, 161, 10)) float; ->float : any +>float : any, Symbol(float, Decl(propertyNamesOfReservedWords.ts, 162, 12)) for; ->for : any +>for : any, Symbol(for, Decl(propertyNamesOfReservedWords.ts, 163, 10)) function; ->function : any +>function : any, Symbol(function, Decl(propertyNamesOfReservedWords.ts, 164, 8)) goto; ->goto : any +>goto : any, Symbol(goto, Decl(propertyNamesOfReservedWords.ts, 165, 13)) if; ->if : any +>if : any, Symbol(if, Decl(propertyNamesOfReservedWords.ts, 166, 9)) implements; ->implements : any +>implements : any, Symbol(implements, Decl(propertyNamesOfReservedWords.ts, 167, 7)) import; ->import : any +>import : any, Symbol(import, Decl(propertyNamesOfReservedWords.ts, 168, 15)) in; ->in : any +>in : any, Symbol(in, Decl(propertyNamesOfReservedWords.ts, 169, 11)) instanceof; ->instanceof : any +>instanceof : any, Symbol(instanceof, Decl(propertyNamesOfReservedWords.ts, 170, 7)) int; ->int : any +>int : any, Symbol(int, Decl(propertyNamesOfReservedWords.ts, 171, 15)) interface; ->interface : any +>interface : any, Symbol(interface, Decl(propertyNamesOfReservedWords.ts, 172, 8)) is; ->is : any +>is : any, Symbol(is, Decl(propertyNamesOfReservedWords.ts, 173, 14)) long; ->long : any +>long : any, Symbol(long, Decl(propertyNamesOfReservedWords.ts, 174, 7)) namespace; ->namespace : any +>namespace : any, Symbol(namespace, Decl(propertyNamesOfReservedWords.ts, 175, 9)) native; ->native : any +>native : any, Symbol(native, Decl(propertyNamesOfReservedWords.ts, 176, 14)) new; ->new : any +>new : any, Symbol(new, Decl(propertyNamesOfReservedWords.ts, 177, 11)) null; ->null : any +>null : any, Symbol(null, Decl(propertyNamesOfReservedWords.ts, 178, 8)) package; ->package : any +>package : any, Symbol(package, Decl(propertyNamesOfReservedWords.ts, 179, 9)) private; ->private : any +>private : any, Symbol(private, Decl(propertyNamesOfReservedWords.ts, 180, 12)) protected; ->protected : any +>protected : any, Symbol(protected, Decl(propertyNamesOfReservedWords.ts, 181, 12)) public; ->public : any +>public : any, Symbol(public, Decl(propertyNamesOfReservedWords.ts, 182, 14)) return; ->return : any +>return : any, Symbol(return, Decl(propertyNamesOfReservedWords.ts, 183, 11)) short; ->short : any +>short : any, Symbol(short, Decl(propertyNamesOfReservedWords.ts, 184, 11)) static; ->static : any +>static : any, Symbol(static, Decl(propertyNamesOfReservedWords.ts, 185, 10)) super; ->super : any +>super : any, Symbol(super, Decl(propertyNamesOfReservedWords.ts, 186, 11)) switch; ->switch : any +>switch : any, Symbol(switch, Decl(propertyNamesOfReservedWords.ts, 187, 10)) synchronized; ->synchronized : any +>synchronized : any, Symbol(synchronized, Decl(propertyNamesOfReservedWords.ts, 188, 11)) this; ->this : any +>this : any, Symbol(this, Decl(propertyNamesOfReservedWords.ts, 189, 17)) throw; ->throw : any +>throw : any, Symbol(throw, Decl(propertyNamesOfReservedWords.ts, 190, 9)) throws; ->throws : any +>throws : any, Symbol(throws, Decl(propertyNamesOfReservedWords.ts, 191, 10)) transient; ->transient : any +>transient : any, Symbol(transient, Decl(propertyNamesOfReservedWords.ts, 192, 11)) true; ->true : any +>true : any, Symbol(true, Decl(propertyNamesOfReservedWords.ts, 193, 14)) try; ->try : any +>try : any, Symbol(try, Decl(propertyNamesOfReservedWords.ts, 194, 9)) typeof; ->typeof : any +>typeof : any, Symbol(typeof, Decl(propertyNamesOfReservedWords.ts, 195, 8)) use; ->use : any +>use : any, Symbol(use, Decl(propertyNamesOfReservedWords.ts, 196, 11)) var; ->var : any +>var : any, Symbol(var, Decl(propertyNamesOfReservedWords.ts, 197, 8)) void; ->void : any +>void : any, Symbol(void, Decl(propertyNamesOfReservedWords.ts, 198, 8)) volatile; ->volatile : any +>volatile : any, Symbol(volatile, Decl(propertyNamesOfReservedWords.ts, 199, 9)) while; ->while : any +>while : any, Symbol(while, Decl(propertyNamesOfReservedWords.ts, 200, 13)) with; ->with : any +>with : any, Symbol(with, Decl(propertyNamesOfReservedWords.ts, 201, 10)) } var r5 = a.abstract; ->r5 : any ->a.abstract : any ->a : { abstract: any; as: any; boolean: any; break: any; byte: any; case: any; catch: any; char: any; class: any; continue: any; const: any; debugger: any; default: any; delete: any; do: any; double: any; else: any; enum: any; export: any; extends: any; false: any; final: any; finally: any; float: any; for: any; function: any; goto: any; if: any; implements: any; import: any; in: any; instanceof: any; int: any; interface: any; is: any; long: any; namespace: any; native: any; new: any; null: any; package: any; private: any; protected: any; public: any; return: any; short: any; static: any; super: any; switch: any; synchronized: any; this: any; throw: any; throws: any; transient: any; true: any; try: any; typeof: any; use: any; var: any; void: any; volatile: any; while: any; with: any; } ->abstract : any +>r5 : any, Symbol(r5, Decl(propertyNamesOfReservedWords.ts, 205, 3)) +>a.abstract : any, Symbol(abstract, Decl(propertyNamesOfReservedWords.ts, 139, 8)) +>a : { abstract: any; as: any; boolean: any; break: any; byte: any; case: any; catch: any; char: any; class: any; continue: any; const: any; debugger: any; default: any; delete: any; do: any; double: any; else: any; enum: any; export: any; extends: any; false: any; final: any; finally: any; float: any; for: any; function: any; goto: any; if: any; implements: any; import: any; in: any; instanceof: any; int: any; interface: any; is: any; long: any; namespace: any; native: any; new: any; null: any; package: any; private: any; protected: any; public: any; return: any; short: any; static: any; super: any; switch: any; synchronized: any; this: any; throw: any; throws: any; transient: any; true: any; try: any; typeof: any; use: any; var: any; void: any; volatile: any; while: any; with: any; }, Symbol(a, Decl(propertyNamesOfReservedWords.ts, 139, 3)) +>abstract : any, Symbol(abstract, Decl(propertyNamesOfReservedWords.ts, 139, 8)) var r6 = a.as; ->r6 : any ->a.as : any ->a : { abstract: any; as: any; boolean: any; break: any; byte: any; case: any; catch: any; char: any; class: any; continue: any; const: any; debugger: any; default: any; delete: any; do: any; double: any; else: any; enum: any; export: any; extends: any; false: any; final: any; finally: any; float: any; for: any; function: any; goto: any; if: any; implements: any; import: any; in: any; instanceof: any; int: any; interface: any; is: any; long: any; namespace: any; native: any; new: any; null: any; package: any; private: any; protected: any; public: any; return: any; short: any; static: any; super: any; switch: any; synchronized: any; this: any; throw: any; throws: any; transient: any; true: any; try: any; typeof: any; use: any; var: any; void: any; volatile: any; while: any; with: any; } ->as : any +>r6 : any, Symbol(r6, Decl(propertyNamesOfReservedWords.ts, 206, 3)) +>a.as : any, Symbol(as, Decl(propertyNamesOfReservedWords.ts, 140, 13)) +>a : { abstract: any; as: any; boolean: any; break: any; byte: any; case: any; catch: any; char: any; class: any; continue: any; const: any; debugger: any; default: any; delete: any; do: any; double: any; else: any; enum: any; export: any; extends: any; false: any; final: any; finally: any; float: any; for: any; function: any; goto: any; if: any; implements: any; import: any; in: any; instanceof: any; int: any; interface: any; is: any; long: any; namespace: any; native: any; new: any; null: any; package: any; private: any; protected: any; public: any; return: any; short: any; static: any; super: any; switch: any; synchronized: any; this: any; throw: any; throws: any; transient: any; true: any; try: any; typeof: any; use: any; var: any; void: any; volatile: any; while: any; with: any; }, Symbol(a, Decl(propertyNamesOfReservedWords.ts, 139, 3)) +>as : any, Symbol(as, Decl(propertyNamesOfReservedWords.ts, 140, 13)) enum E { ->E : E +>E : E, Symbol(E, Decl(propertyNamesOfReservedWords.ts, 206, 14)) abstract, ->abstract : E +>abstract : E, Symbol(E.abstract, Decl(propertyNamesOfReservedWords.ts, 208, 8)) as, ->as : E +>as : E, Symbol(E.as, Decl(propertyNamesOfReservedWords.ts, 209, 13)) boolean, ->boolean : E +>boolean : E, Symbol(E.boolean, Decl(propertyNamesOfReservedWords.ts, 210, 7)) break, ->break : E +>break : E, Symbol(E.break, Decl(propertyNamesOfReservedWords.ts, 211, 12)) byte, ->byte : E +>byte : E, Symbol(E.byte, Decl(propertyNamesOfReservedWords.ts, 212, 10)) case, ->case : E +>case : E, Symbol(E.case, Decl(propertyNamesOfReservedWords.ts, 213, 9)) catch, ->catch : E +>catch : E, Symbol(E.catch, Decl(propertyNamesOfReservedWords.ts, 214, 9)) char, ->char : E +>char : E, Symbol(E.char, Decl(propertyNamesOfReservedWords.ts, 215, 10)) class, ->class : E +>class : E, Symbol(E.class, Decl(propertyNamesOfReservedWords.ts, 216, 9)) continue, ->continue : E +>continue : E, Symbol(E.continue, Decl(propertyNamesOfReservedWords.ts, 217, 10)) const, ->const : E +>const : E, Symbol(E.const, Decl(propertyNamesOfReservedWords.ts, 218, 13)) debugger, ->debugger : E +>debugger : E, Symbol(E.debugger, Decl(propertyNamesOfReservedWords.ts, 219, 10)) default, ->default : E +>default : E, Symbol(E.default, Decl(propertyNamesOfReservedWords.ts, 220, 13)) delete, ->delete : E +>delete : E, Symbol(E.delete, Decl(propertyNamesOfReservedWords.ts, 221, 12)) do, ->do : E +>do : E, Symbol(E.do, Decl(propertyNamesOfReservedWords.ts, 222, 11)) double, ->double : E +>double : E, Symbol(E.double, Decl(propertyNamesOfReservedWords.ts, 223, 7)) else, ->else : E +>else : E, Symbol(E.else, Decl(propertyNamesOfReservedWords.ts, 224, 11)) enum, ->enum : E +>enum : E, Symbol(E.enum, Decl(propertyNamesOfReservedWords.ts, 225, 9)) export, ->export : E +>export : E, Symbol(E.export, Decl(propertyNamesOfReservedWords.ts, 226, 9)) extends, ->extends : E +>extends : E, Symbol(E.extends, Decl(propertyNamesOfReservedWords.ts, 227, 11)) false, ->false : E +>false : E, Symbol(E.false, Decl(propertyNamesOfReservedWords.ts, 228, 12)) final, ->final : E +>final : E, Symbol(E.final, Decl(propertyNamesOfReservedWords.ts, 229, 10)) finally, ->finally : E +>finally : E, Symbol(E.finally, Decl(propertyNamesOfReservedWords.ts, 230, 10)) float, ->float : E +>float : E, Symbol(E.float, Decl(propertyNamesOfReservedWords.ts, 231, 12)) for, ->for : E +>for : E, Symbol(E.for, Decl(propertyNamesOfReservedWords.ts, 232, 10)) function, ->function : E +>function : E, Symbol(E.function, Decl(propertyNamesOfReservedWords.ts, 233, 8)) goto, ->goto : E +>goto : E, Symbol(E.goto, Decl(propertyNamesOfReservedWords.ts, 234, 13)) if, ->if : E +>if : E, Symbol(E.if, Decl(propertyNamesOfReservedWords.ts, 235, 9)) implements, ->implements : E +>implements : E, Symbol(E.implements, Decl(propertyNamesOfReservedWords.ts, 236, 7)) import, ->import : E +>import : E, Symbol(E.import, Decl(propertyNamesOfReservedWords.ts, 237, 15)) in, ->in : E +>in : E, Symbol(E.in, Decl(propertyNamesOfReservedWords.ts, 238, 11)) instanceof, ->instanceof : E +>instanceof : E, Symbol(E.instanceof, Decl(propertyNamesOfReservedWords.ts, 239, 7)) int, ->int : E +>int : E, Symbol(E.int, Decl(propertyNamesOfReservedWords.ts, 240, 15)) interface, ->interface : E +>interface : E, Symbol(E.interface, Decl(propertyNamesOfReservedWords.ts, 241, 8)) is, ->is : E +>is : E, Symbol(E.is, Decl(propertyNamesOfReservedWords.ts, 242, 14)) long, ->long : E +>long : E, Symbol(E.long, Decl(propertyNamesOfReservedWords.ts, 243, 7)) namespace, ->namespace : E +>namespace : E, Symbol(E.namespace, Decl(propertyNamesOfReservedWords.ts, 244, 9)) native, ->native : E +>native : E, Symbol(E.native, Decl(propertyNamesOfReservedWords.ts, 245, 14)) new, ->new : E +>new : E, Symbol(E.new, Decl(propertyNamesOfReservedWords.ts, 246, 11)) null, ->null : E +>null : E, Symbol(E.null, Decl(propertyNamesOfReservedWords.ts, 247, 8)) package, ->package : E +>package : E, Symbol(E.package, Decl(propertyNamesOfReservedWords.ts, 248, 9)) private, ->private : E +>private : E, Symbol(E.private, Decl(propertyNamesOfReservedWords.ts, 249, 12)) protected, ->protected : E +>protected : E, Symbol(E.protected, Decl(propertyNamesOfReservedWords.ts, 250, 12)) public, ->public : E +>public : E, Symbol(E.public, Decl(propertyNamesOfReservedWords.ts, 251, 14)) return, ->return : E +>return : E, Symbol(E.return, Decl(propertyNamesOfReservedWords.ts, 252, 11)) short, ->short : E +>short : E, Symbol(E.short, Decl(propertyNamesOfReservedWords.ts, 253, 11)) static, ->static : E +>static : E, Symbol(E.static, Decl(propertyNamesOfReservedWords.ts, 254, 10)) super, ->super : E +>super : E, Symbol(E.super, Decl(propertyNamesOfReservedWords.ts, 255, 11)) switch, ->switch : E +>switch : E, Symbol(E.switch, Decl(propertyNamesOfReservedWords.ts, 256, 10)) synchronized, ->synchronized : E +>synchronized : E, Symbol(E.synchronized, Decl(propertyNamesOfReservedWords.ts, 257, 11)) this, ->this : E +>this : E, Symbol(E.this, Decl(propertyNamesOfReservedWords.ts, 258, 17)) throw, ->throw : E +>throw : E, Symbol(E.throw, Decl(propertyNamesOfReservedWords.ts, 259, 9)) throws, ->throws : E +>throws : E, Symbol(E.throws, Decl(propertyNamesOfReservedWords.ts, 260, 10)) transient, ->transient : E +>transient : E, Symbol(E.transient, Decl(propertyNamesOfReservedWords.ts, 261, 11)) true, ->true : E +>true : E, Symbol(E.true, Decl(propertyNamesOfReservedWords.ts, 262, 14)) try, ->try : E +>try : E, Symbol(E.try, Decl(propertyNamesOfReservedWords.ts, 263, 9)) typeof, ->typeof : E +>typeof : E, Symbol(E.typeof, Decl(propertyNamesOfReservedWords.ts, 264, 8)) use, ->use : E +>use : E, Symbol(E.use, Decl(propertyNamesOfReservedWords.ts, 265, 11)) var, ->var : E +>var : E, Symbol(E.var, Decl(propertyNamesOfReservedWords.ts, 266, 8)) void, ->void : E +>void : E, Symbol(E.void, Decl(propertyNamesOfReservedWords.ts, 267, 8)) volatile, ->volatile : E +>volatile : E, Symbol(E.volatile, Decl(propertyNamesOfReservedWords.ts, 268, 9)) while, ->while : E +>while : E, Symbol(E.while, Decl(propertyNamesOfReservedWords.ts, 269, 13)) with, ->with : E +>with : E, Symbol(E.with, Decl(propertyNamesOfReservedWords.ts, 270, 10)) } var r7 = E.abstract; ->r7 : E ->E.abstract : E ->E : typeof E ->abstract : E +>r7 : E, Symbol(r7, Decl(propertyNamesOfReservedWords.ts, 274, 3)) +>E.abstract : E, Symbol(E.abstract, Decl(propertyNamesOfReservedWords.ts, 208, 8)) +>E : typeof E, Symbol(E, Decl(propertyNamesOfReservedWords.ts, 206, 14)) +>abstract : E, Symbol(E.abstract, Decl(propertyNamesOfReservedWords.ts, 208, 8)) var r8 = E.as; ->r8 : E ->E.as : E ->E : typeof E ->as : E +>r8 : E, Symbol(r8, Decl(propertyNamesOfReservedWords.ts, 275, 3)) +>E.as : E, Symbol(E.as, Decl(propertyNamesOfReservedWords.ts, 209, 13)) +>E : typeof E, Symbol(E, Decl(propertyNamesOfReservedWords.ts, 206, 14)) +>as : E, Symbol(E.as, Decl(propertyNamesOfReservedWords.ts, 209, 13)) diff --git a/tests/baselines/reference/propertyNamesWithStringLiteral.types b/tests/baselines/reference/propertyNamesWithStringLiteral.types index 89e5771a4b0..3a4befd6f35 100644 --- a/tests/baselines/reference/propertyNamesWithStringLiteral.types +++ b/tests/baselines/reference/propertyNamesWithStringLiteral.types @@ -1,53 +1,55 @@ === tests/cases/compiler/propertyNamesWithStringLiteral.ts === class _Color { ->_Color : _Color +>_Color : _Color, Symbol(_Color, Decl(propertyNamesWithStringLiteral.ts, 0, 0)) a: number; r: number; g: number; b: number; ->a : number ->r : number ->g : number ->b : number +>a : number, Symbol(a, Decl(propertyNamesWithStringLiteral.ts, 0, 14)) +>r : number, Symbol(r, Decl(propertyNamesWithStringLiteral.ts, 1, 14)) +>g : number, Symbol(g, Decl(propertyNamesWithStringLiteral.ts, 1, 25)) +>b : number, Symbol(b, Decl(propertyNamesWithStringLiteral.ts, 1, 36)) } interface NamedColors { ->NamedColors : NamedColors +>NamedColors : NamedColors, Symbol(NamedColors, Decl(propertyNamesWithStringLiteral.ts, 2, 1)) azure: _Color; ->azure : _Color ->_Color : _Color +>azure : _Color, Symbol(azure, Decl(propertyNamesWithStringLiteral.ts, 4, 23)) +>_Color : _Color, Symbol(_Color, Decl(propertyNamesWithStringLiteral.ts, 0, 0)) "blue": _Color; ->_Color : _Color +>_Color : _Color, Symbol(_Color, Decl(propertyNamesWithStringLiteral.ts, 0, 0)) "pale blue": _Color; ->_Color : _Color +>_Color : _Color, Symbol(_Color, Decl(propertyNamesWithStringLiteral.ts, 0, 0)) } module Color { ->Color : typeof Color +>Color : typeof Color, Symbol(Color, Decl(propertyNamesWithStringLiteral.ts, 8, 1)) export var namedColors: NamedColors; ->namedColors : NamedColors ->NamedColors : NamedColors +>namedColors : NamedColors, Symbol(namedColors, Decl(propertyNamesWithStringLiteral.ts, 10, 14)) +>NamedColors : NamedColors, Symbol(NamedColors, Decl(propertyNamesWithStringLiteral.ts, 2, 1)) } var a = Color.namedColors["azure"]; ->a : _Color +>a : _Color, Symbol(a, Decl(propertyNamesWithStringLiteral.ts, 12, 3), Decl(propertyNamesWithStringLiteral.ts, 13, 3), Decl(propertyNamesWithStringLiteral.ts, 14, 3)) >Color.namedColors["azure"] : _Color ->Color.namedColors : NamedColors ->Color : typeof Color ->namedColors : NamedColors +>Color.namedColors : NamedColors, Symbol(Color.namedColors, Decl(propertyNamesWithStringLiteral.ts, 10, 14)) +>Color : typeof Color, Symbol(Color, Decl(propertyNamesWithStringLiteral.ts, 8, 1)) +>namedColors : NamedColors, Symbol(Color.namedColors, Decl(propertyNamesWithStringLiteral.ts, 10, 14)) +>"azure" : string, Symbol(NamedColors.azure, Decl(propertyNamesWithStringLiteral.ts, 4, 23)) var a = Color.namedColors.blue; // Should not error ->a : _Color ->Color.namedColors.blue : _Color ->Color.namedColors : NamedColors ->Color : typeof Color ->namedColors : NamedColors ->blue : _Color +>a : _Color, Symbol(a, Decl(propertyNamesWithStringLiteral.ts, 12, 3), Decl(propertyNamesWithStringLiteral.ts, 13, 3), Decl(propertyNamesWithStringLiteral.ts, 14, 3)) +>Color.namedColors.blue : _Color, Symbol(NamedColors."blue", Decl(propertyNamesWithStringLiteral.ts, 5, 18)) +>Color.namedColors : NamedColors, Symbol(Color.namedColors, Decl(propertyNamesWithStringLiteral.ts, 10, 14)) +>Color : typeof Color, Symbol(Color, Decl(propertyNamesWithStringLiteral.ts, 8, 1)) +>namedColors : NamedColors, Symbol(Color.namedColors, Decl(propertyNamesWithStringLiteral.ts, 10, 14)) +>blue : _Color, Symbol(NamedColors."blue", Decl(propertyNamesWithStringLiteral.ts, 5, 18)) var a = Color.namedColors["pale blue"]; // should not error ->a : _Color +>a : _Color, Symbol(a, Decl(propertyNamesWithStringLiteral.ts, 12, 3), Decl(propertyNamesWithStringLiteral.ts, 13, 3), Decl(propertyNamesWithStringLiteral.ts, 14, 3)) >Color.namedColors["pale blue"] : _Color ->Color.namedColors : NamedColors ->Color : typeof Color ->namedColors : NamedColors +>Color.namedColors : NamedColors, Symbol(Color.namedColors, Decl(propertyNamesWithStringLiteral.ts, 10, 14)) +>Color : typeof Color, Symbol(Color, Decl(propertyNamesWithStringLiteral.ts, 8, 1)) +>namedColors : NamedColors, Symbol(Color.namedColors, Decl(propertyNamesWithStringLiteral.ts, 10, 14)) +>"pale blue" : string, Symbol(NamedColors."pale blue", Decl(propertyNamesWithStringLiteral.ts, 6, 19)) diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.types b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.types index 241b3cfc7a1..183f150c5d3 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.types +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.types @@ -2,138 +2,140 @@ // no errors class C { ->C : C +>C : C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) protected x: string; ->x : string +>x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 2, 9)) protected get y() { return this.x; } ->y : string ->this.x : string ->this : C ->x : string +>y : string, Symbol(y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 4, 40)) +>this.x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 2, 9)) +>this : C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 2, 9)) protected set y(x) { this.y = this.x; } ->y : string ->x : string +>y : string, Symbol(y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 4, 40)) +>x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 5, 20)) >this.y = this.x : string ->this.y : string ->this : C ->y : string ->this.x : string ->this : C ->x : string +>this.y : string, Symbol(y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 4, 40)) +>this : C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>y : string, Symbol(y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 3, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 4, 40)) +>this.x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 2, 9)) +>this : C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 2, 9)) protected foo() { return this.foo; } ->foo : () => any ->this.foo : () => any ->this : C ->foo : () => any +>foo : () => any, Symbol(foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 5, 43)) +>this.foo : () => any, Symbol(foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 5, 43)) +>this : C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>foo : () => any, Symbol(foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 5, 43)) protected static x: string; ->x : string +>x : string, Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 6, 40)) protected static get y() { return this.x; } ->y : string ->this.x : string ->this : typeof C ->x : string +>y : string, Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 9, 47)) +>this.x : string, Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 6, 40)) +>this : typeof C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>x : string, Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 6, 40)) protected static set y(x) { this.y = this.x; } ->y : string ->x : string +>y : string, Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 9, 47)) +>x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 10, 27)) >this.y = this.x : string ->this.y : string ->this : typeof C ->y : string ->this.x : string ->this : typeof C ->x : string +>this.y : string, Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 9, 47)) +>this : typeof C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>y : string, Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 8, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 9, 47)) +>this.x : string, Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 6, 40)) +>this : typeof C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>x : string, Symbol(C.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 6, 40)) protected static foo() { return this.foo; } ->foo : () => typeof C.foo ->this.foo : () => typeof C.foo ->this : typeof C ->foo : () => typeof C.foo +>foo : () => typeof C.foo, Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 10, 50)) +>this.foo : () => typeof C.foo, Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 10, 50)) +>this : typeof C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>foo : () => typeof C.foo, Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 10, 50)) protected static bar() { this.foo(); } ->bar : () => void +>bar : () => void, Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinClass.ts, 11, 47)) >this.foo() : () => typeof C.foo ->this.foo : () => typeof C.foo ->this : typeof C ->foo : () => typeof C.foo +>this.foo : () => typeof C.foo, Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 10, 50)) +>this : typeof C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinClass.ts, 0, 0)) +>foo : () => typeof C.foo, Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 10, 50)) } // added level of function nesting class C2 { ->C2 : C2 +>C2 : C2, Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) protected x: string; ->x : string +>x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 16, 10)) protected get y() { () => this.x; return null; } ->y : any +>y : any, Symbol(y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 17, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 18, 52)) >() => this.x : () => string ->this.x : string ->this : C2 ->x : string +>this.x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 16, 10)) +>this : C2, Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 16, 10)) +>null : null protected set y(x) { () => { this.y = this.x; } } ->y : any ->x : any +>y : any, Symbol(y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 17, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 18, 52)) +>x : any, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 19, 20)) >() => { this.y = this.x; } : () => void >this.y = this.x : string ->this.y : any ->this : C2 ->y : any ->this.x : string ->this : C2 ->x : string +>this.y : any, Symbol(y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 17, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 18, 52)) +>this : C2, Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>y : any, Symbol(y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 17, 24), Decl(protectedClassPropertyAccessibleWithinClass.ts, 18, 52)) +>this.x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 16, 10)) +>this : C2, Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 16, 10)) protected foo() { () => this.foo; } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 19, 53)) >() => this.foo : () => () => void ->this.foo : () => void ->this : C2 ->foo : () => void +>this.foo : () => void, Symbol(foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 19, 53)) +>this : C2, Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>foo : () => void, Symbol(foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 19, 53)) protected static x: string; ->x : string +>x : string, Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 20, 39)) protected static get y() { () => this.x; return null; } ->y : any +>y : any, Symbol(C2.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 22, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 23, 59)) >() => this.x : () => string ->this.x : string ->this : typeof C2 ->x : string +>this.x : string, Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 20, 39)) +>this : typeof C2, Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>x : string, Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 20, 39)) +>null : null protected static set y(x) { ->y : any ->x : any +>y : any, Symbol(C2.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 22, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 23, 59)) +>x : any, Symbol(x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 24, 27)) () => { this.y = this.x; } >() => { this.y = this.x; } : () => void >this.y = this.x : string ->this.y : any ->this : typeof C2 ->y : any ->this.x : string ->this : typeof C2 ->x : string +>this.y : any, Symbol(C2.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 22, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 23, 59)) +>this : typeof C2, Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>y : any, Symbol(C2.y, Decl(protectedClassPropertyAccessibleWithinClass.ts, 22, 31), Decl(protectedClassPropertyAccessibleWithinClass.ts, 23, 59)) +>this.x : string, Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 20, 39)) +>this : typeof C2, Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>x : string, Symbol(C2.x, Decl(protectedClassPropertyAccessibleWithinClass.ts, 20, 39)) } protected static foo() { () => this.foo; } ->foo : () => void +>foo : () => void, Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 26, 6)) >() => this.foo : () => () => void ->this.foo : () => void ->this : typeof C2 ->foo : () => void +>this.foo : () => void, Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 26, 6)) +>this : typeof C2, Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>foo : () => void, Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 26, 6)) protected static bar() { () => this.foo(); } ->bar : () => void +>bar : () => void, Symbol(C2.bar, Decl(protectedClassPropertyAccessibleWithinClass.ts, 27, 46)) >() => this.foo() : () => void >this.foo() : void ->this.foo : () => void ->this : typeof C2 ->foo : () => void +>this.foo : () => void, Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 26, 6)) +>this : typeof C2, Symbol(C2, Decl(protectedClassPropertyAccessibleWithinClass.ts, 13, 1)) +>foo : () => void, Symbol(C2.foo, Decl(protectedClassPropertyAccessibleWithinClass.ts, 26, 6)) } diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.types b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.types index bd230239d47..dbfd2c74861 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.types +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.types @@ -2,77 +2,77 @@ // no errors class B { ->B : B +>B : B, Symbol(B, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 0, 0)) protected x: string; ->x : string +>x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) protected static x: string; ->x : string +>x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) } class C extends B { ->C : C ->B : B +>C : C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>B : B, Symbol(B, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 0, 0)) protected get y() { return this.x; } ->y : string ->this.x : string ->this : C ->x : string +>y : string, Symbol(y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 7, 19), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 8, 40)) +>this.x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) +>this : C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) protected set y(x) { this.y = this.x; } ->y : string ->x : string +>y : string, Symbol(y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 7, 19), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 8, 40)) +>x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 9, 20)) >this.y = this.x : string ->this.y : string ->this : C ->y : string ->this.x : string ->this : C ->x : string +>this.y : string, Symbol(y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 7, 19), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 8, 40)) +>this : C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>y : string, Symbol(y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 7, 19), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 8, 40)) +>this.x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) +>this : C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) protected foo() { return this.x; } ->foo : () => string ->this.x : string ->this : C ->x : string +>foo : () => string, Symbol(foo, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 9, 43)) +>this.x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) +>this : C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 2, 9)) protected bar() { return this.foo(); } ->bar : () => string +>bar : () => string, Symbol(bar, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 10, 38)) >this.foo() : string ->this.foo : () => string ->this : C ->foo : () => string +>this.foo : () => string, Symbol(foo, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 9, 43)) +>this : C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>foo : () => string, Symbol(foo, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 9, 43)) protected static get y() { return this.x; } ->y : string ->this.x : string ->this : typeof C ->x : string +>y : string, Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 11, 42), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 13, 47)) +>this.x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) +>this : typeof C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) protected static set y(x) { this.y = this.x; } ->y : string ->x : string +>y : string, Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 11, 42), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 13, 47)) +>x : string, Symbol(x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 14, 27)) >this.y = this.x : string ->this.y : string ->this : typeof C ->y : string ->this.x : string ->this : typeof C ->x : string +>this.y : string, Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 11, 42), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 13, 47)) +>this : typeof C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>y : string, Symbol(C.y, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 11, 42), Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 13, 47)) +>this.x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) +>this : typeof C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) protected static foo() { return this.x; } ->foo : () => string ->this.x : string ->this : typeof C ->x : string +>foo : () => string, Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 14, 50)) +>this.x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) +>this : typeof C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>x : string, Symbol(B.x, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 3, 24)) protected static bar() { this.foo(); } ->bar : () => void +>bar : () => void, Symbol(C.bar, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 15, 45)) >this.foo() : string ->this.foo : () => string ->this : typeof C ->foo : () => string +>this.foo : () => string, Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 14, 50)) +>this : typeof C, Symbol(C, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 5, 1)) +>foo : () => string, Symbol(C.foo, Decl(protectedClassPropertyAccessibleWithinSubclass.ts, 14, 50)) } diff --git a/tests/baselines/reference/protoAsIndexInIndexExpression.types b/tests/baselines/reference/protoAsIndexInIndexExpression.types index bde87801fa5..73a9d2bd43e 100644 --- a/tests/baselines/reference/protoAsIndexInIndexExpression.types +++ b/tests/baselines/reference/protoAsIndexInIndexExpression.types @@ -1,36 +1,40 @@ === tests/cases/compiler/protoAsIndexInIndexExpression_1.ts === /// var EntityPrototype = undefined; ->EntityPrototype : any ->undefined : undefined +>EntityPrototype : any, Symbol(EntityPrototype, Decl(protoAsIndexInIndexExpression_1.ts, 1, 3)) +>undefined : undefined, Symbol(undefined) var WorkspacePrototype = { ->WorkspacePrototype : { serialize: () => any; } +>WorkspacePrototype : { serialize: () => any; }, Symbol(WorkspacePrototype, Decl(protoAsIndexInIndexExpression_1.ts, 2, 3)) >{ serialize: function (): any { }} : { serialize: () => any; } serialize: function (): any { ->serialize : () => any +>serialize : () => any, Symbol(serialize, Decl(protoAsIndexInIndexExpression_1.ts, 2, 26)) >function (): any { } : () => any } }; WorkspacePrototype['__proto__'] = EntityPrototype; >WorkspacePrototype['__proto__'] = EntityPrototype : any >WorkspacePrototype['__proto__'] : any ->WorkspacePrototype : { serialize: () => any; } ->EntityPrototype : any +>WorkspacePrototype : { serialize: () => any; }, Symbol(WorkspacePrototype, Decl(protoAsIndexInIndexExpression_1.ts, 2, 3)) +>'__proto__' : string +>EntityPrototype : any, Symbol(EntityPrototype, Decl(protoAsIndexInIndexExpression_1.ts, 1, 3)) var o = { ->o : { "__proto__": number; } +>o : { "__proto__": number; }, Symbol(o, Decl(protoAsIndexInIndexExpression_1.ts, 8, 3)) >{ "__proto__": 0} : { "__proto__": number; } "__proto__": 0 +>0 : number + }; class C { ->C : C +>C : C, Symbol(C, Decl(protoAsIndexInIndexExpression_1.ts, 10, 2)) "__proto__" = 0; +>0 : number } === tests/cases/compiler/protoAsIndexInIndexExpression_0.ts === export var x; ->x : any +>x : any, Symbol(x, Decl(protoAsIndexInIndexExpression_0.ts, 0, 10)) diff --git a/tests/baselines/reference/protoInIndexer.types b/tests/baselines/reference/protoInIndexer.types index 66eb61a05ef..8f813b38fda 100644 --- a/tests/baselines/reference/protoInIndexer.types +++ b/tests/baselines/reference/protoInIndexer.types @@ -1,11 +1,13 @@ === tests/cases/compiler/protoInIndexer.ts === class X { ->X : X +>X : X, Symbol(X, Decl(protoInIndexer.ts, 0, 0)) constructor() { this['__proto__'] = null; // used to cause ICE >this['__proto__'] = null : null >this['__proto__'] : any ->this : X +>this : X, Symbol(X, Decl(protoInIndexer.ts, 0, 0)) +>'__proto__' : string +>null : null } } diff --git a/tests/baselines/reference/prototypeInstantiatedWithBaseConstraint.types b/tests/baselines/reference/prototypeInstantiatedWithBaseConstraint.types index 2cad76a60b9..8191f0a283a 100644 --- a/tests/baselines/reference/prototypeInstantiatedWithBaseConstraint.types +++ b/tests/baselines/reference/prototypeInstantiatedWithBaseConstraint.types @@ -1,19 +1,19 @@ === tests/cases/compiler/prototypeInstantiatedWithBaseConstraint.ts === class C { ->C : C ->T : T +>C : C, Symbol(C, Decl(prototypeInstantiatedWithBaseConstraint.ts, 0, 0)) +>T : T, Symbol(T, Decl(prototypeInstantiatedWithBaseConstraint.ts, 0, 8)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(prototypeInstantiatedWithBaseConstraint.ts, 0, 12)) +>T : T, Symbol(T, Decl(prototypeInstantiatedWithBaseConstraint.ts, 0, 8)) } C.prototype.x.boo; // No error, prototype is instantiated to any >C.prototype.x.boo : any ->C.prototype.x : any ->C.prototype : C ->C : typeof C ->prototype : C ->x : any +>C.prototype.x : any, Symbol(C.x, Decl(prototypeInstantiatedWithBaseConstraint.ts, 0, 12)) +>C.prototype : C, Symbol(C.prototype) +>C : typeof C, Symbol(C, Decl(prototypeInstantiatedWithBaseConstraint.ts, 0, 0)) +>prototype : C, Symbol(C.prototype) +>x : any, Symbol(C.x, Decl(prototypeInstantiatedWithBaseConstraint.ts, 0, 12)) >boo : any diff --git a/tests/baselines/reference/prototypeOnConstructorFunctions.types b/tests/baselines/reference/prototypeOnConstructorFunctions.types index 53e374b9894..b074285dd38 100644 --- a/tests/baselines/reference/prototypeOnConstructorFunctions.types +++ b/tests/baselines/reference/prototypeOnConstructorFunctions.types @@ -1,26 +1,27 @@ === tests/cases/compiler/prototypeOnConstructorFunctions.ts === interface I1 { ->I1 : I1 +>I1 : I1, Symbol(I1, Decl(prototypeOnConstructorFunctions.ts, 0, 0)) const: new (options?, element?) => any; ->const : new (options?: any, element?: any) => any ->options : any ->element : any +>const : new (options?: any, element?: any) => any, Symbol(const, Decl(prototypeOnConstructorFunctions.ts, 0, 14)) +>options : any, Symbol(options, Decl(prototypeOnConstructorFunctions.ts, 1, 16)) +>element : any, Symbol(element, Decl(prototypeOnConstructorFunctions.ts, 1, 25)) } var i: I1; ->i : I1 ->I1 : I1 +>i : I1, Symbol(i, Decl(prototypeOnConstructorFunctions.ts, 5, 3)) +>I1 : I1, Symbol(I1, Decl(prototypeOnConstructorFunctions.ts, 0, 0)) i.const.prototype.prop = "yo"; >i.const.prototype.prop = "yo" : string >i.const.prototype.prop : any ->i.const.prototype : any ->i.const : new (options?: any, element?: any) => any ->i : I1 ->const : new (options?: any, element?: any) => any ->prototype : any +>i.const.prototype : any, Symbol(Function.prototype, Decl(lib.d.ts, 249, 48)) +>i.const : new (options?: any, element?: any) => any, Symbol(I1.const, Decl(prototypeOnConstructorFunctions.ts, 0, 14)) +>i : I1, Symbol(i, Decl(prototypeOnConstructorFunctions.ts, 5, 3)) +>const : new (options?: any, element?: any) => any, Symbol(I1.const, Decl(prototypeOnConstructorFunctions.ts, 0, 14)) +>prototype : any, Symbol(Function.prototype, Decl(lib.d.ts, 249, 48)) >prop : any +>"yo" : string diff --git a/tests/baselines/reference/qualifiedName_ImportDeclarations-entity-names-referencing-a-var.types b/tests/baselines/reference/qualifiedName_ImportDeclarations-entity-names-referencing-a-var.types index d438d846bf4..303ba13a905 100644 --- a/tests/baselines/reference/qualifiedName_ImportDeclarations-entity-names-referencing-a-var.types +++ b/tests/baselines/reference/qualifiedName_ImportDeclarations-entity-names-referencing-a-var.types @@ -1,24 +1,25 @@ === tests/cases/compiler/qualifiedName_ImportDeclarations-entity-names-referencing-a-var.ts === module Alpha { ->Alpha : typeof Alpha +>Alpha : typeof Alpha, Symbol(Alpha, Decl(qualifiedName_ImportDeclarations-entity-names-referencing-a-var.ts, 0, 0)) export var x = 100; ->x : number +>x : number, Symbol(x, Decl(qualifiedName_ImportDeclarations-entity-names-referencing-a-var.ts, 1, 14)) +>100 : number } module Beta { ->Beta : unknown +>Beta : any, Symbol(Beta, Decl(qualifiedName_ImportDeclarations-entity-names-referencing-a-var.ts, 2, 1)) import p = Alpha.x; ->p : number ->Alpha : typeof Alpha ->x : number +>p : number, Symbol(p, Decl(qualifiedName_ImportDeclarations-entity-names-referencing-a-var.ts, 4, 13)) +>Alpha : typeof Alpha, Symbol(Alpha, Decl(qualifiedName_ImportDeclarations-entity-names-referencing-a-var.ts, 0, 0)) +>x : number, Symbol(p, Decl(qualifiedName_ImportDeclarations-entity-names-referencing-a-var.ts, 1, 14)) } var x = Alpha.x ->x : number ->Alpha.x : number ->Alpha : typeof Alpha ->x : number +>x : number, Symbol(x, Decl(qualifiedName_ImportDeclarations-entity-names-referencing-a-var.ts, 9, 3)) +>Alpha.x : number, Symbol(Alpha.x, Decl(qualifiedName_ImportDeclarations-entity-names-referencing-a-var.ts, 1, 14)) +>Alpha : typeof Alpha, Symbol(Alpha, Decl(qualifiedName_ImportDeclarations-entity-names-referencing-a-var.ts, 0, 0)) +>x : number, Symbol(Alpha.x, Decl(qualifiedName_ImportDeclarations-entity-names-referencing-a-var.ts, 1, 14)) diff --git a/tests/baselines/reference/quotedFunctionName1.types b/tests/baselines/reference/quotedFunctionName1.types index 9ebc0abfc4d..15d2a874956 100644 --- a/tests/baselines/reference/quotedFunctionName1.types +++ b/tests/baselines/reference/quotedFunctionName1.types @@ -1,6 +1,6 @@ === tests/cases/compiler/quotedFunctionName1.ts === class Test1 { ->Test1 : Test1 +>Test1 : Test1, Symbol(Test1, Decl(quotedFunctionName1.ts, 0, 0)) "prop1"() { } } diff --git a/tests/baselines/reference/quotedFunctionName2.types b/tests/baselines/reference/quotedFunctionName2.types index de36a3f969a..db30da6ea98 100644 --- a/tests/baselines/reference/quotedFunctionName2.types +++ b/tests/baselines/reference/quotedFunctionName2.types @@ -1,6 +1,6 @@ === tests/cases/compiler/quotedFunctionName2.ts === class Test1 { ->Test1 : Test1 +>Test1 : Test1, Symbol(Test1, Decl(quotedFunctionName2.ts, 0, 0)) static "prop1"() { } } diff --git a/tests/baselines/reference/quotedPropertyName1.types b/tests/baselines/reference/quotedPropertyName1.types index 0ca2ecba536..f5992150ede 100644 --- a/tests/baselines/reference/quotedPropertyName1.types +++ b/tests/baselines/reference/quotedPropertyName1.types @@ -1,6 +1,7 @@ === tests/cases/compiler/quotedPropertyName1.ts === class Test1 { ->Test1 : Test1 +>Test1 : Test1, Symbol(Test1, Decl(quotedPropertyName1.ts, 0, 0)) "prop1" = 0; +>0 : number } diff --git a/tests/baselines/reference/quotedPropertyName2.types b/tests/baselines/reference/quotedPropertyName2.types index dc460caa551..2a2b06a8a45 100644 --- a/tests/baselines/reference/quotedPropertyName2.types +++ b/tests/baselines/reference/quotedPropertyName2.types @@ -1,6 +1,7 @@ === tests/cases/compiler/quotedPropertyName2.ts === class Test1 { ->Test1 : Test1 +>Test1 : Test1, Symbol(Test1, Decl(quotedPropertyName2.ts, 0, 0)) static "prop1" = 0; +>0 : number } diff --git a/tests/baselines/reference/quotedPropertyName3.types b/tests/baselines/reference/quotedPropertyName3.types index f90ca7c6242..b17c667ae4e 100644 --- a/tests/baselines/reference/quotedPropertyName3.types +++ b/tests/baselines/reference/quotedPropertyName3.types @@ -1,20 +1,21 @@ === tests/cases/compiler/quotedPropertyName3.ts === class Test { ->Test : Test +>Test : Test, Symbol(Test, Decl(quotedPropertyName3.ts, 0, 0)) "prop1": number; foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(quotedPropertyName3.ts, 1, 20)) var x = () => this["prop1"]; ->x : () => number +>x : () => number, Symbol(x, Decl(quotedPropertyName3.ts, 3, 11)) >() => this["prop1"] : () => number >this["prop1"] : number ->this : Test +>this : Test, Symbol(Test, Decl(quotedPropertyName3.ts, 0, 0)) +>"prop1" : string, Symbol("prop1", Decl(quotedPropertyName3.ts, 0, 12)) var y: number = x(); ->y : number +>y : number, Symbol(y, Decl(quotedPropertyName3.ts, 4, 11)) >x() : number ->x : () => number +>x : () => number, Symbol(x, Decl(quotedPropertyName3.ts, 3, 11)) } } diff --git a/tests/baselines/reference/randomSemicolons1.types b/tests/baselines/reference/randomSemicolons1.types index e77dcad34e3..c5e81a6a3b8 100644 --- a/tests/baselines/reference/randomSemicolons1.types +++ b/tests/baselines/reference/randomSemicolons1.types @@ -1,7 +1,8 @@ === tests/cases/compiler/randomSemicolons1.ts === ; ; var a = 1; ->a : number +>a : number, Symbol(a, Decl(randomSemicolons1.ts, 1, 3)) +>1 : number ; diff --git a/tests/baselines/reference/reboundBaseClassSymbol.types b/tests/baselines/reference/reboundBaseClassSymbol.types index 1a62a7f71cb..d7f2febeaf1 100644 --- a/tests/baselines/reference/reboundBaseClassSymbol.types +++ b/tests/baselines/reference/reboundBaseClassSymbol.types @@ -1,16 +1,17 @@ === tests/cases/compiler/reboundBaseClassSymbol.ts === interface A { a: number; } ->A : A ->a : number +>A : A, Symbol(A, Decl(reboundBaseClassSymbol.ts, 0, 0)) +>a : number, Symbol(a, Decl(reboundBaseClassSymbol.ts, 0, 13)) module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(reboundBaseClassSymbol.ts, 0, 26)) var A = 1; ->A : number +>A : number, Symbol(A, Decl(reboundBaseClassSymbol.ts, 2, 7)) +>1 : number interface B extends A { b: string; } ->B : B ->A : A ->b : string +>B : B, Symbol(B, Decl(reboundBaseClassSymbol.ts, 2, 14)) +>A : A, Symbol(A, Decl(reboundBaseClassSymbol.ts, 0, 0)) +>b : string, Symbol(b, Decl(reboundBaseClassSymbol.ts, 3, 27)) } diff --git a/tests/baselines/reference/rectype.types b/tests/baselines/reference/rectype.types index 403e7a3a4dc..f092dc63805 100644 --- a/tests/baselines/reference/rectype.types +++ b/tests/baselines/reference/rectype.types @@ -1,44 +1,44 @@ === tests/cases/compiler/rectype.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(rectype.ts, 0, 0)) interface I { (i:I):I; } ->I : I ->i : I ->I : I ->I : I +>I : I, Symbol(I, Decl(rectype.ts, 0, 10)) +>i : I, Symbol(i, Decl(rectype.ts, 1, 19)) +>I : I, Symbol(I, Decl(rectype.ts, 0, 10)) +>I : I, Symbol(I, Decl(rectype.ts, 0, 10)) export function f(p: I) { return f }; ->f : (p: I) => typeof f ->p : I ->I : I ->f : (p: I) => typeof f +>f : (p: I) => typeof f, Symbol(f, Decl(rectype.ts, 1, 28)) +>p : I, Symbol(p, Decl(rectype.ts, 3, 22)) +>I : I, Symbol(I, Decl(rectype.ts, 0, 10)) +>f : (p: I) => typeof f, Symbol(f, Decl(rectype.ts, 1, 28)) var i:I; ->i : I ->I : I +>i : I, Symbol(i, Decl(rectype.ts, 5, 7)) +>I : I, Symbol(I, Decl(rectype.ts, 0, 10)) f(i); >f(i) : (p: I) => typeof f ->f : (p: I) => typeof f ->i : I +>f : (p: I) => typeof f, Symbol(f, Decl(rectype.ts, 1, 28)) +>i : I, Symbol(i, Decl(rectype.ts, 5, 7)) f(f(i)); >f(f(i)) : (p: I) => typeof f ->f : (p: I) => typeof f +>f : (p: I) => typeof f, Symbol(f, Decl(rectype.ts, 1, 28)) >f(i) : (p: I) => typeof f ->f : (p: I) => typeof f ->i : I +>f : (p: I) => typeof f, Symbol(f, Decl(rectype.ts, 1, 28)) +>i : I, Symbol(i, Decl(rectype.ts, 5, 7)) f((f(f(i)))); >f((f(f(i)))) : (p: I) => typeof f ->f : (p: I) => typeof f +>f : (p: I) => typeof f, Symbol(f, Decl(rectype.ts, 1, 28)) >(f(f(i))) : (p: I) => typeof f >f(f(i)) : (p: I) => typeof f ->f : (p: I) => typeof f +>f : (p: I) => typeof f, Symbol(f, Decl(rectype.ts, 1, 28)) >f(i) : (p: I) => typeof f ->f : (p: I) => typeof f ->i : I +>f : (p: I) => typeof f, Symbol(f, Decl(rectype.ts, 1, 28)) +>i : I, Symbol(i, Decl(rectype.ts, 5, 7)) } diff --git a/tests/baselines/reference/recur1.types b/tests/baselines/reference/recur1.types index 83b4dbd598b..04e0907f9b1 100644 --- a/tests/baselines/reference/recur1.types +++ b/tests/baselines/reference/recur1.types @@ -1,29 +1,29 @@ === tests/cases/compiler/recur1.ts === var salt:any = new salt.pepper(); ->salt : any +>salt : any, Symbol(salt, Decl(recur1.ts, 0, 3)) >new salt.pepper() : any >salt.pepper : any ->salt : any +>salt : any, Symbol(salt, Decl(recur1.ts, 0, 3)) >pepper : any salt.pepper = function() {} >salt.pepper = function() {} : () => void >salt.pepper : any ->salt : any +>salt : any, Symbol(salt, Decl(recur1.ts, 0, 3)) >pepper : any >function() {} : () => void var cobalt = new cobalt.pitch(); ->cobalt : any +>cobalt : any, Symbol(cobalt, Decl(recur1.ts, 3, 3)) >new cobalt.pitch() : any >cobalt.pitch : any ->cobalt : any +>cobalt : any, Symbol(cobalt, Decl(recur1.ts, 3, 3)) >pitch : any cobalt.pitch = function() {} >cobalt.pitch = function() {} : () => void >cobalt.pitch : any ->cobalt : any +>cobalt : any, Symbol(cobalt, Decl(recur1.ts, 3, 3)) >pitch : any >function() {} : () => void diff --git a/tests/baselines/reference/recursiveBaseConstructorCreation1.types b/tests/baselines/reference/recursiveBaseConstructorCreation1.types index 4879fb260a3..95efcc6bc30 100644 --- a/tests/baselines/reference/recursiveBaseConstructorCreation1.types +++ b/tests/baselines/reference/recursiveBaseConstructorCreation1.types @@ -1,18 +1,18 @@ === tests/cases/compiler/recursiveBaseConstructorCreation1.ts === class C1 { ->C1 : C1 +>C1 : C1, Symbol(C1, Decl(recursiveBaseConstructorCreation1.ts, 0, 0)) public func(param: C2): any { } ->func : (param: C2) => any ->param : C2 ->C2 : C2 +>func : (param: C2) => any, Symbol(func, Decl(recursiveBaseConstructorCreation1.ts, 0, 10)) +>param : C2, Symbol(param, Decl(recursiveBaseConstructorCreation1.ts, 1, 12)) +>C2 : C2, Symbol(C2, Decl(recursiveBaseConstructorCreation1.ts, 2, 1)) } class C2 extends C1 { } ->C2 : C2 ->C1 : C1 +>C2 : C2, Symbol(C2, Decl(recursiveBaseConstructorCreation1.ts, 2, 1)) +>C1 : C1, Symbol(C1, Decl(recursiveBaseConstructorCreation1.ts, 0, 0)) var x = new C2(); // Valid ->x : C2 +>x : C2, Symbol(x, Decl(recursiveBaseConstructorCreation1.ts, 4, 3)) >new C2() : C2 ->C2 : typeof C2 +>C2 : typeof C2, Symbol(C2, Decl(recursiveBaseConstructorCreation1.ts, 2, 1)) diff --git a/tests/baselines/reference/recursiveBaseConstructorCreation2.types b/tests/baselines/reference/recursiveBaseConstructorCreation2.types index 00b72ee7d4f..bc090f73a96 100644 --- a/tests/baselines/reference/recursiveBaseConstructorCreation2.types +++ b/tests/baselines/reference/recursiveBaseConstructorCreation2.types @@ -1,25 +1,25 @@ === tests/cases/compiler/recursiveBaseConstructorCreation2.ts === declare class base ->base : base +>base : base, Symbol(base, Decl(recursiveBaseConstructorCreation2.ts, 0, 0)) { } declare class abc extends base ->abc : abc ->base : base +>abc : abc, Symbol(abc, Decl(recursiveBaseConstructorCreation2.ts, 2, 1)) +>base : base, Symbol(base, Decl(recursiveBaseConstructorCreation2.ts, 0, 0)) { foo: xyz; ->foo : xyz ->xyz : xyz +>foo : xyz, Symbol(foo, Decl(recursiveBaseConstructorCreation2.ts, 4, 1)) +>xyz : xyz, Symbol(xyz, Decl(recursiveBaseConstructorCreation2.ts, 6, 1)) } declare class xyz extends abc ->xyz : xyz ->abc : abc +>xyz : xyz, Symbol(xyz, Decl(recursiveBaseConstructorCreation2.ts, 6, 1)) +>abc : abc, Symbol(abc, Decl(recursiveBaseConstructorCreation2.ts, 2, 1)) { } var bar = new xyz(); // Error: Invalid 'new' expression. ->bar : xyz +>bar : xyz, Symbol(bar, Decl(recursiveBaseConstructorCreation2.ts, 11, 3)) >new xyz() : xyz ->xyz : typeof xyz +>xyz : typeof xyz, Symbol(xyz, Decl(recursiveBaseConstructorCreation2.ts, 6, 1)) diff --git a/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.types b/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.types index 49a97bdb656..0bc9742fd65 100644 --- a/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.types +++ b/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.types @@ -1,23 +1,24 @@ === tests/cases/compiler/recursiveClassInstantiationsWithDefaultConstructors.ts === var a = new TypeScript2.MemberNameArray() ->a : TypeScript2.MemberNameArray +>a : TypeScript2.MemberNameArray, Symbol(a, Decl(recursiveClassInstantiationsWithDefaultConstructors.ts, 0, 3)) >new TypeScript2.MemberNameArray() : TypeScript2.MemberNameArray ->TypeScript2.MemberNameArray : typeof TypeScript2.MemberNameArray ->TypeScript2 : typeof TypeScript2 ->MemberNameArray : typeof TypeScript2.MemberNameArray +>TypeScript2.MemberNameArray : typeof TypeScript2.MemberNameArray, Symbol(TypeScript2.MemberNameArray, Decl(recursiveClassInstantiationsWithDefaultConstructors.ts, 4, 1)) +>TypeScript2 : typeof TypeScript2, Symbol(TypeScript2, Decl(recursiveClassInstantiationsWithDefaultConstructors.ts, 0, 41)) +>MemberNameArray : typeof TypeScript2.MemberNameArray, Symbol(TypeScript2.MemberNameArray, Decl(recursiveClassInstantiationsWithDefaultConstructors.ts, 4, 1)) module TypeScript2 { ->TypeScript2 : typeof TypeScript2 +>TypeScript2 : typeof TypeScript2, Symbol(TypeScript2, Decl(recursiveClassInstantiationsWithDefaultConstructors.ts, 0, 41)) export class MemberName { ->MemberName : MemberName +>MemberName : MemberName, Symbol(MemberName, Decl(recursiveClassInstantiationsWithDefaultConstructors.ts, 1, 20)) public prefix: string = ""; ->prefix : string +>prefix : string, Symbol(prefix, Decl(recursiveClassInstantiationsWithDefaultConstructors.ts, 2, 25)) +>"" : string } export class MemberNameArray extends MemberName { ->MemberNameArray : MemberNameArray ->MemberName : MemberName +>MemberNameArray : MemberNameArray, Symbol(MemberNameArray, Decl(recursiveClassInstantiationsWithDefaultConstructors.ts, 4, 1)) +>MemberName : MemberName, Symbol(MemberName, Decl(recursiveClassInstantiationsWithDefaultConstructors.ts, 1, 20)) } } diff --git a/tests/baselines/reference/recursiveCloduleReference.types b/tests/baselines/reference/recursiveCloduleReference.types index b5de969cabe..5d2fd7a03f6 100644 --- a/tests/baselines/reference/recursiveCloduleReference.types +++ b/tests/baselines/reference/recursiveCloduleReference.types @@ -1,18 +1,18 @@ === tests/cases/compiler/recursiveCloduleReference.ts === module M ->M : typeof M +>M : typeof M, Symbol(M, Decl(recursiveCloduleReference.ts, 0, 0)) { export class C { ->C : C +>C : C, Symbol(C, Decl(recursiveCloduleReference.ts, 1, 1), Decl(recursiveCloduleReference.ts, 3, 3)) } export module C { ->C : typeof M.C +>C : typeof M.C, Symbol(C, Decl(recursiveCloduleReference.ts, 1, 1), Decl(recursiveCloduleReference.ts, 3, 3)) export var C = M.C ->C : typeof M.C ->M.C : typeof M.C ->M : typeof M ->C : typeof M.C +>C : typeof M.C, Symbol(C, Decl(recursiveCloduleReference.ts, 5, 14)) +>M.C : typeof M.C, Symbol(C, Decl(recursiveCloduleReference.ts, 1, 1), Decl(recursiveCloduleReference.ts, 3, 3)) +>M : typeof M, Symbol(M, Decl(recursiveCloduleReference.ts, 0, 0)) +>C : typeof M.C, Symbol(C, Decl(recursiveCloduleReference.ts, 1, 1), Decl(recursiveCloduleReference.ts, 3, 3)) }; }; diff --git a/tests/baselines/reference/recursiveComplicatedClasses.types b/tests/baselines/reference/recursiveComplicatedClasses.types index d969bbfcea0..a94be7b09fc 100644 --- a/tests/baselines/reference/recursiveComplicatedClasses.types +++ b/tests/baselines/reference/recursiveComplicatedClasses.types @@ -1,51 +1,53 @@ === tests/cases/compiler/recursiveComplicatedClasses.ts === class Signature { ->Signature : Signature +>Signature : Signature, Symbol(Signature, Decl(recursiveComplicatedClasses.ts, 0, 0)) public parameters: ParameterSymbol[] = null; ->parameters : ParameterSymbol[] ->ParameterSymbol : ParameterSymbol +>parameters : ParameterSymbol[], Symbol(parameters, Decl(recursiveComplicatedClasses.ts, 0, 17)) +>ParameterSymbol : ParameterSymbol, Symbol(ParameterSymbol, Decl(recursiveComplicatedClasses.ts, 17, 1)) +>null : null } function aEnclosesB(a: Symbol) { ->aEnclosesB : (a: Symbol) => boolean ->a : Symbol ->Symbol : Symbol +>aEnclosesB : (a: Symbol) => boolean, Symbol(aEnclosesB, Decl(recursiveComplicatedClasses.ts, 2, 1)) +>a : Symbol, Symbol(a, Decl(recursiveComplicatedClasses.ts, 4, 20)) +>Symbol : Symbol, Symbol(Symbol, Decl(recursiveComplicatedClasses.ts, 6, 1)) return true; +>true : boolean } class Symbol { ->Symbol : Symbol +>Symbol : Symbol, Symbol(Symbol, Decl(recursiveComplicatedClasses.ts, 6, 1)) public bound: boolean; ->bound : boolean +>bound : boolean, Symbol(bound, Decl(recursiveComplicatedClasses.ts, 8, 14)) public visible() { ->visible : () => boolean +>visible : () => boolean, Symbol(visible, Decl(recursiveComplicatedClasses.ts, 9, 26)) var b: TypeSymbol; ->b : TypeSymbol ->TypeSymbol : TypeSymbol +>b : TypeSymbol, Symbol(b, Decl(recursiveComplicatedClasses.ts, 11, 11)) +>TypeSymbol : TypeSymbol, Symbol(TypeSymbol, Decl(recursiveComplicatedClasses.ts, 20, 1)) return aEnclosesB(b); >aEnclosesB(b) : boolean ->aEnclosesB : (a: Symbol) => boolean ->b : TypeSymbol +>aEnclosesB : (a: Symbol) => boolean, Symbol(aEnclosesB, Decl(recursiveComplicatedClasses.ts, 2, 1)) +>b : TypeSymbol, Symbol(b, Decl(recursiveComplicatedClasses.ts, 11, 11)) } } class InferenceSymbol extends Symbol { ->InferenceSymbol : InferenceSymbol ->Symbol : Symbol +>InferenceSymbol : InferenceSymbol, Symbol(InferenceSymbol, Decl(recursiveComplicatedClasses.ts, 15, 1)) +>Symbol : Symbol, Symbol(Symbol, Decl(recursiveComplicatedClasses.ts, 6, 1)) } class ParameterSymbol extends InferenceSymbol { ->ParameterSymbol : ParameterSymbol ->InferenceSymbol : InferenceSymbol +>ParameterSymbol : ParameterSymbol, Symbol(ParameterSymbol, Decl(recursiveComplicatedClasses.ts, 17, 1)) +>InferenceSymbol : InferenceSymbol, Symbol(InferenceSymbol, Decl(recursiveComplicatedClasses.ts, 15, 1)) } class TypeSymbol extends InferenceSymbol { ->TypeSymbol : TypeSymbol ->InferenceSymbol : InferenceSymbol +>TypeSymbol : TypeSymbol, Symbol(TypeSymbol, Decl(recursiveComplicatedClasses.ts, 20, 1)) +>InferenceSymbol : InferenceSymbol, Symbol(InferenceSymbol, Decl(recursiveComplicatedClasses.ts, 15, 1)) } diff --git a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types index 3e4708e94eb..db2fe4d496c 100644 --- a/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types +++ b/tests/baselines/reference/recursiveExportAssignmentAndFindAliasedType7.types @@ -1,43 +1,43 @@ === tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7_moduleA.ts === import moduleC = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); ->moduleC : any +>moduleC : any, Symbol(moduleC, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 0, 0)) import ClassB = require("recursiveExportAssignmentAndFindAliasedType7_moduleB"); ->ClassB : typeof ClassB +>ClassB : typeof ClassB, Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 0, 81)) export var b: ClassB; // This should result in type ClassB ->b : ClassB ->ClassB : ClassB +>b : ClassB, Symbol(b, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 2, 10)) +>ClassB : ClassB, Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleA.ts, 0, 81)) === tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7_moduleC.ts === import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD"); ->self : any +>self : any, Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleC.ts, 0, 0)) var selfVar = self; ->selfVar : any ->self : any +>selfVar : any, Symbol(selfVar, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleC.ts, 1, 3)) +>self : any, Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleC.ts, 0, 0)) export = selfVar; ->selfVar : any +>selfVar : any, Symbol(selfVar, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleC.ts, 1, 3)) === tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7_moduleD.ts === import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleE"); ->self : any +>self : any, Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleD.ts, 0, 0)) export = self; ->self : any +>self : any, Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleD.ts, 0, 0)) === tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7_moduleE.ts === import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleC"); ->self : any +>self : any, Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleE.ts, 0, 0)) export = self; ->self : any +>self : any, Symbol(self, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleE.ts, 0, 0)) === tests/cases/compiler/recursiveExportAssignmentAndFindAliasedType7_moduleB.ts === class ClassB { } ->ClassB : ClassB +>ClassB : ClassB, Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleB.ts, 0, 0)) export = ClassB; ->ClassB : ClassB +>ClassB : ClassB, Symbol(ClassB, Decl(recursiveExportAssignmentAndFindAliasedType7_moduleB.ts, 0, 0)) diff --git a/tests/baselines/reference/recursiveFunctionTypes1.types b/tests/baselines/reference/recursiveFunctionTypes1.types index b78494ba24c..69d01135c6d 100644 --- a/tests/baselines/reference/recursiveFunctionTypes1.types +++ b/tests/baselines/reference/recursiveFunctionTypes1.types @@ -1,10 +1,11 @@ === tests/cases/compiler/recursiveFunctionTypes1.ts === class C { ->C : C +>C : C, Symbol(C, Decl(recursiveFunctionTypes1.ts, 0, 0)) static g(t: typeof C.g){ } ->g : (t: typeof C.g) => void ->t : (t: typeof C.g) => void ->C : typeof C ->g : (t: typeof C.g) => void +>g : (t: typeof C.g) => void, Symbol(C.g, Decl(recursiveFunctionTypes1.ts, 0, 9)) +>t : (t: typeof C.g) => void, Symbol(t, Decl(recursiveFunctionTypes1.ts, 1, 14)) +>C.g : (t: typeof C.g) => void, Symbol(C.g, Decl(recursiveFunctionTypes1.ts, 0, 9)) +>C : typeof C, Symbol(C, Decl(recursiveFunctionTypes1.ts, 0, 0)) +>g : (t: typeof C.g) => void, Symbol(C.g, Decl(recursiveFunctionTypes1.ts, 0, 9)) } diff --git a/tests/baselines/reference/recursiveGenericMethodCall.types b/tests/baselines/reference/recursiveGenericMethodCall.types index ef03ca545df..b636bbe5af3 100644 --- a/tests/baselines/reference/recursiveGenericMethodCall.types +++ b/tests/baselines/reference/recursiveGenericMethodCall.types @@ -1,20 +1,20 @@ === tests/cases/compiler/recursiveGenericMethodCall.ts === interface Generator { (): T; } ->Generator : Generator ->T : T ->T : T +>Generator : Generator, Symbol(Generator, Decl(recursiveGenericMethodCall.ts, 0, 0)) +>T : T, Symbol(T, Decl(recursiveGenericMethodCall.ts, 0, 20)) +>T : T, Symbol(T, Decl(recursiveGenericMethodCall.ts, 0, 20)) function Generate(func: Generator): T { ->Generate : (func: Generator) => T ->T : T ->func : Generator ->Generator : Generator ->T : T ->T : T +>Generate : (func: Generator) => T, Symbol(Generate, Decl(recursiveGenericMethodCall.ts, 0, 33)) +>T : T, Symbol(T, Decl(recursiveGenericMethodCall.ts, 2, 18)) +>func : Generator, Symbol(func, Decl(recursiveGenericMethodCall.ts, 2, 21)) +>Generator : Generator, Symbol(Generator, Decl(recursiveGenericMethodCall.ts, 0, 0)) +>T : T, Symbol(T, Decl(recursiveGenericMethodCall.ts, 2, 18)) +>T : T, Symbol(T, Decl(recursiveGenericMethodCall.ts, 2, 18)) return Generate(func); >Generate(func) : T ->Generate : (func: Generator) => T ->func : Generator +>Generate : (func: Generator) => T, Symbol(Generate, Decl(recursiveGenericMethodCall.ts, 0, 33)) +>func : Generator, Symbol(func, Decl(recursiveGenericMethodCall.ts, 2, 21)) } diff --git a/tests/baselines/reference/recursiveGenericSignatureInstantiation.types b/tests/baselines/reference/recursiveGenericSignatureInstantiation.types index f1e93270396..add5e7f8571 100644 --- a/tests/baselines/reference/recursiveGenericSignatureInstantiation.types +++ b/tests/baselines/reference/recursiveGenericSignatureInstantiation.types @@ -1,13 +1,13 @@ === tests/cases/compiler/recursiveGenericSignatureInstantiation.ts === function f6(x: T) { ->f6 : (x: T) => any ->T : T ->x : T ->T : T +>f6 : (x: T) => any, Symbol(f6, Decl(recursiveGenericSignatureInstantiation.ts, 0, 0)) +>T : T, Symbol(T, Decl(recursiveGenericSignatureInstantiation.ts, 0, 12)) +>x : T, Symbol(x, Decl(recursiveGenericSignatureInstantiation.ts, 0, 15)) +>T : T, Symbol(T, Decl(recursiveGenericSignatureInstantiation.ts, 0, 12)) return f6(x); >f6(x) : any ->f6 : (x: T) => any ->x : T +>f6 : (x: T) => any, Symbol(f6, Decl(recursiveGenericSignatureInstantiation.ts, 0, 0)) +>x : T, Symbol(x, Decl(recursiveGenericSignatureInstantiation.ts, 0, 15)) } diff --git a/tests/baselines/reference/recursiveIdenticalOverloadResolution.types b/tests/baselines/reference/recursiveIdenticalOverloadResolution.types index e2ec96b1c82..6cd25bb5a12 100644 --- a/tests/baselines/reference/recursiveIdenticalOverloadResolution.types +++ b/tests/baselines/reference/recursiveIdenticalOverloadResolution.types @@ -1,45 +1,45 @@ === tests/cases/compiler/recursiveIdenticalOverloadResolution.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(recursiveIdenticalOverloadResolution.ts, 0, 0)) interface I { (i: I): I; } ->I : I ->i : I ->I : I ->I : I +>I : I, Symbol(I, Decl(recursiveIdenticalOverloadResolution.ts, 1, 10)) +>i : I, Symbol(i, Decl(recursiveIdenticalOverloadResolution.ts, 3, 18)) +>I : I, Symbol(I, Decl(recursiveIdenticalOverloadResolution.ts, 1, 10)) +>I : I, Symbol(I, Decl(recursiveIdenticalOverloadResolution.ts, 1, 10)) function f(p: I) { return f }; ->f : (p: I) => typeof f ->p : I ->I : I ->f : (p: I) => typeof f +>f : (p: I) => typeof f, Symbol(f, Decl(recursiveIdenticalOverloadResolution.ts, 3, 29)) +>p : I, Symbol(p, Decl(recursiveIdenticalOverloadResolution.ts, 5, 14)) +>I : I, Symbol(I, Decl(recursiveIdenticalOverloadResolution.ts, 1, 10)) +>f : (p: I) => typeof f, Symbol(f, Decl(recursiveIdenticalOverloadResolution.ts, 3, 29)) var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(recursiveIdenticalOverloadResolution.ts, 7, 6)) +>I : I, Symbol(I, Decl(recursiveIdenticalOverloadResolution.ts, 1, 10)) f(i); >f(i) : (p: I) => typeof f ->f : (p: I) => typeof f ->i : I +>f : (p: I) => typeof f, Symbol(f, Decl(recursiveIdenticalOverloadResolution.ts, 3, 29)) +>i : I, Symbol(i, Decl(recursiveIdenticalOverloadResolution.ts, 7, 6)) f(f(i)); >f(f(i)) : (p: I) => typeof f ->f : (p: I) => typeof f +>f : (p: I) => typeof f, Symbol(f, Decl(recursiveIdenticalOverloadResolution.ts, 3, 29)) >f(i) : (p: I) => typeof f ->f : (p: I) => typeof f ->i : I +>f : (p: I) => typeof f, Symbol(f, Decl(recursiveIdenticalOverloadResolution.ts, 3, 29)) +>i : I, Symbol(i, Decl(recursiveIdenticalOverloadResolution.ts, 7, 6)) f((f(f(i)))); >f((f(f(i)))) : (p: I) => typeof f ->f : (p: I) => typeof f +>f : (p: I) => typeof f, Symbol(f, Decl(recursiveIdenticalOverloadResolution.ts, 3, 29)) >(f(f(i))) : (p: I) => typeof f >f(f(i)) : (p: I) => typeof f ->f : (p: I) => typeof f +>f : (p: I) => typeof f, Symbol(f, Decl(recursiveIdenticalOverloadResolution.ts, 3, 29)) >f(i) : (p: I) => typeof f ->f : (p: I) => typeof f ->i : I +>f : (p: I) => typeof f, Symbol(f, Decl(recursiveIdenticalOverloadResolution.ts, 3, 29)) +>i : I, Symbol(i, Decl(recursiveIdenticalOverloadResolution.ts, 7, 6)) } diff --git a/tests/baselines/reference/recursiveInference1.types b/tests/baselines/reference/recursiveInference1.types index 3fef5dbb805..c443a1bf76a 100644 --- a/tests/baselines/reference/recursiveInference1.types +++ b/tests/baselines/reference/recursiveInference1.types @@ -1,23 +1,27 @@ === tests/cases/compiler/recursiveInference1.ts === function fib(x:number) { return x <= 1 ? x : fib(x - 1) + fib(x - 2); } ->fib : (x: number) => any ->x : number +>fib : (x: number) => any, Symbol(fib, Decl(recursiveInference1.ts, 0, 0)) +>x : number, Symbol(x, Decl(recursiveInference1.ts, 0, 13)) >x <= 1 ? x : fib(x - 1) + fib(x - 2) : any >x <= 1 : boolean ->x : number ->x : number +>x : number, Symbol(x, Decl(recursiveInference1.ts, 0, 13)) +>1 : number +>x : number, Symbol(x, Decl(recursiveInference1.ts, 0, 13)) >fib(x - 1) + fib(x - 2) : any >fib(x - 1) : any ->fib : (x: number) => any +>fib : (x: number) => any, Symbol(fib, Decl(recursiveInference1.ts, 0, 0)) >x - 1 : number ->x : number +>x : number, Symbol(x, Decl(recursiveInference1.ts, 0, 13)) +>1 : number >fib(x - 2) : any ->fib : (x: number) => any +>fib : (x: number) => any, Symbol(fib, Decl(recursiveInference1.ts, 0, 0)) >x - 2 : number ->x : number +>x : number, Symbol(x, Decl(recursiveInference1.ts, 0, 13)) +>2 : number var result = fib(5); ->result : any +>result : any, Symbol(result, Decl(recursiveInference1.ts, 1, 3)) >fib(5) : any ->fib : (x: number) => any +>fib : (x: number) => any, Symbol(fib, Decl(recursiveInference1.ts, 0, 0)) +>5 : number diff --git a/tests/baselines/reference/recursiveInheritance2.types b/tests/baselines/reference/recursiveInheritance2.types index 393de022cb7..25283d5920c 100644 --- a/tests/baselines/reference/recursiveInheritance2.types +++ b/tests/baselines/reference/recursiveInheritance2.types @@ -1,45 +1,45 @@ === tests/cases/compiler/recursiveInheritance2.ts === interface A { (): B; }; ->A : A ->B : B +>A : A, Symbol(A, Decl(recursiveInheritance2.ts, 0, 0)) +>B : B, Symbol(B, Decl(recursiveInheritance2.ts, 2, 12)) declare var a: A; ->a : A ->A : A +>a : A, Symbol(a, Decl(recursiveInheritance2.ts, 1, 11)) +>A : A, Symbol(A, Decl(recursiveInheritance2.ts, 0, 0)) var x = a(); ->x : B +>x : B, Symbol(x, Decl(recursiveInheritance2.ts, 2, 3)) >a() : B ->a : A +>a : A, Symbol(a, Decl(recursiveInheritance2.ts, 1, 11)) interface B { (): C; }; ->B : B ->C : C +>B : B, Symbol(B, Decl(recursiveInheritance2.ts, 2, 12)) +>C : C, Symbol(C, Decl(recursiveInheritance2.ts, 6, 12)) declare var b: B; ->b : B ->B : B +>b : B, Symbol(b, Decl(recursiveInheritance2.ts, 5, 11)) +>B : B, Symbol(B, Decl(recursiveInheritance2.ts, 2, 12)) var y = b(); ->y : C +>y : C, Symbol(y, Decl(recursiveInheritance2.ts, 6, 3)) >b() : C ->b : B +>b : B, Symbol(b, Decl(recursiveInheritance2.ts, 5, 11)) interface C { (): A; }; ->C : C ->A : A +>C : C, Symbol(C, Decl(recursiveInheritance2.ts, 6, 12)) +>A : A, Symbol(A, Decl(recursiveInheritance2.ts, 0, 0)) declare var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(recursiveInheritance2.ts, 9, 11)) +>C : C, Symbol(C, Decl(recursiveInheritance2.ts, 6, 12)) var z = c(); ->z : A +>z : A, Symbol(z, Decl(recursiveInheritance2.ts, 10, 3)) >c() : A ->c : C +>c : C, Symbol(c, Decl(recursiveInheritance2.ts, 9, 11)) x = y; >x = y : C ->x : B ->y : C +>x : B, Symbol(x, Decl(recursiveInheritance2.ts, 2, 3)) +>y : C, Symbol(y, Decl(recursiveInheritance2.ts, 6, 3)) diff --git a/tests/baselines/reference/recursiveInitializer.types b/tests/baselines/reference/recursiveInitializer.types index 540553ea529..57c024de8a5 100644 --- a/tests/baselines/reference/recursiveInitializer.types +++ b/tests/baselines/reference/recursiveInitializer.types @@ -1,78 +1,80 @@ === tests/cases/conformance/statements/VariableStatements/recursiveInitializer.ts === // number unless otherwise specified var n1 = n1++; ->n1 : any +>n1 : any, Symbol(n1, Decl(recursiveInitializer.ts, 1, 3)) >n1++ : number ->n1 : any +>n1 : any, Symbol(n1, Decl(recursiveInitializer.ts, 1, 3)) var n2: number = n2 + n2; ->n2 : number +>n2 : number, Symbol(n2, Decl(recursiveInitializer.ts, 2, 3)) >n2 + n2 : number ->n2 : number ->n2 : number +>n2 : number, Symbol(n2, Decl(recursiveInitializer.ts, 2, 3)) +>n2 : number, Symbol(n2, Decl(recursiveInitializer.ts, 2, 3)) var n3 /* any */ = n3 + n3; ->n3 : any +>n3 : any, Symbol(n3, Decl(recursiveInitializer.ts, 3, 3)) >n3 + n3 : any ->n3 : any ->n3 : any +>n3 : any, Symbol(n3, Decl(recursiveInitializer.ts, 3, 3)) +>n3 : any, Symbol(n3, Decl(recursiveInitializer.ts, 3, 3)) // string unless otherwise specified var s1 = s1 + ''; ->s1 : any +>s1 : any, Symbol(s1, Decl(recursiveInitializer.ts, 6, 3)) >s1 + '' : string ->s1 : any +>s1 : any, Symbol(s1, Decl(recursiveInitializer.ts, 6, 3)) +>'' : string var s2 /* any */ = s2 + s2; ->s2 : any +>s2 : any, Symbol(s2, Decl(recursiveInitializer.ts, 7, 3)) >s2 + s2 : any ->s2 : any ->s2 : any +>s2 : any, Symbol(s2, Decl(recursiveInitializer.ts, 7, 3)) +>s2 : any, Symbol(s2, Decl(recursiveInitializer.ts, 7, 3)) var s3 : string = s3 + s3; ->s3 : string +>s3 : string, Symbol(s3, Decl(recursiveInitializer.ts, 8, 3)) >s3 + s3 : string ->s3 : string ->s3 : string +>s3 : string, Symbol(s3, Decl(recursiveInitializer.ts, 8, 3)) +>s3 : string, Symbol(s3, Decl(recursiveInitializer.ts, 8, 3)) var s4 = '' + s4; ->s4 : any +>s4 : any, Symbol(s4, Decl(recursiveInitializer.ts, 9, 3)) >'' + s4 : string ->s4 : any +>'' : string +>s4 : any, Symbol(s4, Decl(recursiveInitializer.ts, 9, 3)) // boolean unless otherwise specified var b1 = !b1; ->b1 : any +>b1 : any, Symbol(b1, Decl(recursiveInitializer.ts, 12, 3)) >!b1 : boolean ->b1 : any +>b1 : any, Symbol(b1, Decl(recursiveInitializer.ts, 12, 3)) var b2 = !!b2; ->b2 : any +>b2 : any, Symbol(b2, Decl(recursiveInitializer.ts, 13, 3)) >!!b2 : boolean >!b2 : boolean ->b2 : any +>b2 : any, Symbol(b2, Decl(recursiveInitializer.ts, 13, 3)) var b3 = !b3 || b3; // expected boolean here. actually 'any' ->b3 : any +>b3 : any, Symbol(b3, Decl(recursiveInitializer.ts, 14, 3)) >!b3 || b3 : any >!b3 : boolean ->b3 : any ->b3 : any +>b3 : any, Symbol(b3, Decl(recursiveInitializer.ts, 14, 3)) +>b3 : any, Symbol(b3, Decl(recursiveInitializer.ts, 14, 3)) var b4 = (!b4) && b4; // expected boolean here. actually 'any' ->b4 : any +>b4 : any, Symbol(b4, Decl(recursiveInitializer.ts, 15, 3)) >(!b4) && b4 : any >(!b4) : boolean >!b4 : boolean ->b4 : any ->b4 : any +>b4 : any, Symbol(b4, Decl(recursiveInitializer.ts, 15, 3)) +>b4 : any, Symbol(b4, Decl(recursiveInitializer.ts, 15, 3)) // (x:string) => any var f = (x: string) => f(x); ->f : (x: string) => any +>f : (x: string) => any, Symbol(f, Decl(recursiveInitializer.ts, 18, 3)) >(x: string) => f(x) : (x: string) => any ->x : string +>x : string, Symbol(x, Decl(recursiveInitializer.ts, 18, 9)) >f(x) : any ->f : (x: string) => any ->x : string +>f : (x: string) => any, Symbol(f, Decl(recursiveInitializer.ts, 18, 3)) +>x : string, Symbol(x, Decl(recursiveInitializer.ts, 18, 9)) diff --git a/tests/baselines/reference/recursiveMods.types b/tests/baselines/reference/recursiveMods.types index a02156a6e9b..97c3811d4d7 100644 --- a/tests/baselines/reference/recursiveMods.types +++ b/tests/baselines/reference/recursiveMods.types @@ -1,49 +1,50 @@ === tests/cases/compiler/recursiveMods.ts === export module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(recursiveMods.ts, 0, 0), Decl(recursiveMods.ts, 2, 1)) export class C {} ->C : C +>C : C, Symbol(C, Decl(recursiveMods.ts, 0, 19)) } export module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(recursiveMods.ts, 0, 0), Decl(recursiveMods.ts, 2, 1)) function Bar() : C { ->Bar : () => C ->C : C +>Bar : () => C, Symbol(Bar, Decl(recursiveMods.ts, 4, 19)) +>C : C, Symbol(C, Decl(recursiveMods.ts, 0, 19)) if (true) { return Bar();} +>true : boolean >Bar() : C ->Bar : () => C +>Bar : () => C, Symbol(Bar, Decl(recursiveMods.ts, 4, 19)) return new C(); >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(recursiveMods.ts, 0, 19)) } function Baz() : C { ->Baz : () => C ->C : C +>Baz : () => C, Symbol(Baz, Decl(recursiveMods.ts, 9, 2)) +>C : C, Symbol(C, Decl(recursiveMods.ts, 0, 19)) var c = Baz(); ->c : C +>c : C, Symbol(c, Decl(recursiveMods.ts, 12, 5)) >Baz() : C ->Baz : () => C +>Baz : () => C, Symbol(Baz, Decl(recursiveMods.ts, 9, 2)) return Bar(); >Bar() : C ->Bar : () => C +>Bar : () => C, Symbol(Bar, Decl(recursiveMods.ts, 4, 19)) } function Gar() { ->Gar : () => void +>Gar : () => void, Symbol(Gar, Decl(recursiveMods.ts, 14, 2)) var c : C = Baz(); ->c : C ->C : C +>c : C, Symbol(c, Decl(recursiveMods.ts, 17, 5)) +>C : C, Symbol(C, Decl(recursiveMods.ts, 0, 19)) >Baz() : C ->Baz : () => C +>Baz : () => C, Symbol(Baz, Decl(recursiveMods.ts, 9, 2)) return; } diff --git a/tests/baselines/reference/recursiveObjectLiteral.types b/tests/baselines/reference/recursiveObjectLiteral.types index 0dcc467977c..8209bb9ce2c 100644 --- a/tests/baselines/reference/recursiveObjectLiteral.types +++ b/tests/baselines/reference/recursiveObjectLiteral.types @@ -1,7 +1,7 @@ === tests/cases/compiler/recursiveObjectLiteral.ts === var a = { f: a }; ->a : any +>a : any, Symbol(a, Decl(recursiveObjectLiteral.ts, 0, 3)) >{ f: a } : { f: any; } ->f : any ->a : any +>f : any, Symbol(f, Decl(recursiveObjectLiteral.ts, 0, 9)) +>a : any, Symbol(a, Decl(recursiveObjectLiteral.ts, 0, 3)) diff --git a/tests/baselines/reference/recursiveProperties.types b/tests/baselines/reference/recursiveProperties.types index 2c3f90c6503..e838f39af70 100644 --- a/tests/baselines/reference/recursiveProperties.types +++ b/tests/baselines/reference/recursiveProperties.types @@ -1,23 +1,23 @@ === tests/cases/compiler/recursiveProperties.ts === class A { ->A : A +>A : A, Symbol(A, Decl(recursiveProperties.ts, 0, 0)) get testProp() { return this.testProp; } ->testProp : any ->this.testProp : any ->this : A ->testProp : any +>testProp : any, Symbol(testProp, Decl(recursiveProperties.ts, 0, 9)) +>this.testProp : any, Symbol(testProp, Decl(recursiveProperties.ts, 0, 9)) +>this : A, Symbol(A, Decl(recursiveProperties.ts, 0, 0)) +>testProp : any, Symbol(testProp, Decl(recursiveProperties.ts, 0, 9)) } class B { ->B : B +>B : B, Symbol(B, Decl(recursiveProperties.ts, 2, 1)) set testProp(value:string) { this.testProp = value; } ->testProp : string ->value : string +>testProp : string, Symbol(testProp, Decl(recursiveProperties.ts, 4, 9)) +>value : string, Symbol(value, Decl(recursiveProperties.ts, 5, 17)) >this.testProp = value : string ->this.testProp : string ->this : B ->testProp : string ->value : string +>this.testProp : string, Symbol(testProp, Decl(recursiveProperties.ts, 4, 9)) +>this : B, Symbol(B, Decl(recursiveProperties.ts, 2, 1)) +>testProp : string, Symbol(testProp, Decl(recursiveProperties.ts, 4, 9)) +>value : string, Symbol(value, Decl(recursiveProperties.ts, 5, 17)) } diff --git a/tests/baselines/reference/recursiveReturns.types b/tests/baselines/reference/recursiveReturns.types index dfb54f126a3..d32bf31d3f1 100644 --- a/tests/baselines/reference/recursiveReturns.types +++ b/tests/baselines/reference/recursiveReturns.types @@ -1,34 +1,35 @@ === tests/cases/compiler/recursiveReturns.ts === function R1() { ->R1 : () => void +>R1 : () => void, Symbol(R1, Decl(recursiveReturns.ts, 0, 0)) R1(); >R1() : void ->R1 : () => void +>R1 : () => void, Symbol(R1, Decl(recursiveReturns.ts, 0, 0)) return; } function R2() { R2(); } ->R2 : () => void +>R2 : () => void, Symbol(R2, Decl(recursiveReturns.ts, 3, 1)) >R2() : void ->R2 : () => void +>R2 : () => void, Symbol(R2, Decl(recursiveReturns.ts, 3, 1)) function R3(n:number) { ->R3 : (n: number) => void ->n : number +>R3 : (n: number) => void, Symbol(R3, Decl(recursiveReturns.ts, 5, 23)) +>n : number, Symbol(n, Decl(recursiveReturns.ts, 7, 12)) if (n == 0) { >n == 0 : boolean ->n : number +>n : number, Symbol(n, Decl(recursiveReturns.ts, 7, 12)) +>0 : number //return; } else { R3(n--); >R3(n--) : void ->R3 : (n: number) => void +>R3 : (n: number) => void, Symbol(R3, Decl(recursiveReturns.ts, 5, 23)) >n-- : number ->n : number +>n : number, Symbol(n, Decl(recursiveReturns.ts, 7, 12)) } } diff --git a/tests/baselines/reference/recursiveSpecializationOfExtendedTypeWithError.types b/tests/baselines/reference/recursiveSpecializationOfExtendedTypeWithError.types index 8bc4561ff43..9612b83c6c2 100644 --- a/tests/baselines/reference/recursiveSpecializationOfExtendedTypeWithError.types +++ b/tests/baselines/reference/recursiveSpecializationOfExtendedTypeWithError.types @@ -1,15 +1,15 @@ === tests/cases/compiler/recursiveSpecializationOfExtendedTypeWithError.ts === interface HTMLSelectElement { ->HTMLSelectElement : HTMLSelectElement +>HTMLSelectElement : HTMLSelectElement, Symbol(HTMLSelectElement, Decl(recursiveSpecializationOfExtendedTypeWithError.ts, 0, 0)) options: HTMLSelectElement; ->options : HTMLSelectElement ->HTMLSelectElement : HTMLSelectElement +>options : HTMLSelectElement, Symbol(options, Decl(recursiveSpecializationOfExtendedTypeWithError.ts, 0, 29)) +>HTMLSelectElement : HTMLSelectElement, Symbol(HTMLSelectElement, Decl(recursiveSpecializationOfExtendedTypeWithError.ts, 0, 0)) (name: A): any; ->A : A ->name : A ->A : A +>A : A, Symbol(A, Decl(recursiveSpecializationOfExtendedTypeWithError.ts, 2, 5)) +>name : A, Symbol(name, Decl(recursiveSpecializationOfExtendedTypeWithError.ts, 2, 8)) +>A : A, Symbol(A, Decl(recursiveSpecializationOfExtendedTypeWithError.ts, 2, 5)) } diff --git a/tests/baselines/reference/recursiveTypeComparison.types b/tests/baselines/reference/recursiveTypeComparison.types index 5504de74d85..b0116dfdaa2 100644 --- a/tests/baselines/reference/recursiveTypeComparison.types +++ b/tests/baselines/reference/recursiveTypeComparison.types @@ -2,43 +2,43 @@ // Before fix this would take an exceeding long time to complete (#1170) interface Observable { ->Observable : Observable ->T : T +>Observable : Observable, Symbol(Observable, Decl(recursiveTypeComparison.ts, 0, 0)) +>T : T, Symbol(T, Decl(recursiveTypeComparison.ts, 2, 21)) // This member can't be of type T, Property, or Observable needThisOne: Observable; ->needThisOne : Observable ->Observable : Observable ->T : T +>needThisOne : Observable, Symbol(needThisOne, Decl(recursiveTypeComparison.ts, 2, 25)) +>Observable : Observable, Symbol(Observable, Decl(recursiveTypeComparison.ts, 0, 0)) +>T : T, Symbol(T, Decl(recursiveTypeComparison.ts, 2, 21)) // Add more to make it slower expo1: Property; // 0.31 seconds in check ->expo1 : Property ->Property : Property ->T : T +>expo1 : Property, Symbol(expo1, Decl(recursiveTypeComparison.ts, 4, 31)) +>Property : Property, Symbol(Property, Decl(recursiveTypeComparison.ts, 9, 1)) +>T : T, Symbol(T, Decl(recursiveTypeComparison.ts, 2, 21)) expo2: Property; // 3.11 seconds ->expo2 : Property ->Property : Property ->T : T +>expo2 : Property, Symbol(expo2, Decl(recursiveTypeComparison.ts, 6, 25)) +>Property : Property, Symbol(Property, Decl(recursiveTypeComparison.ts, 9, 1)) +>T : T, Symbol(T, Decl(recursiveTypeComparison.ts, 2, 21)) expo3: Property; // 82.28 seconds ->expo3 : Property ->Property : Property ->T : T +>expo3 : Property, Symbol(expo3, Decl(recursiveTypeComparison.ts, 7, 25)) +>Property : Property, Symbol(Property, Decl(recursiveTypeComparison.ts, 9, 1)) +>T : T, Symbol(T, Decl(recursiveTypeComparison.ts, 2, 21)) } interface Property extends Observable { } ->Property : Property ->T : T ->Observable : Observable ->T : T +>Property : Property, Symbol(Property, Decl(recursiveTypeComparison.ts, 9, 1)) +>T : T, Symbol(T, Decl(recursiveTypeComparison.ts, 10, 19)) +>Observable : Observable, Symbol(Observable, Decl(recursiveTypeComparison.ts, 0, 0)) +>T : T, Symbol(T, Decl(recursiveTypeComparison.ts, 10, 19)) var p: Observable<{}>; ->p : Observable<{}> ->Observable : Observable +>p : Observable<{}>, Symbol(p, Decl(recursiveTypeComparison.ts, 12, 3)) +>Observable : Observable, Symbol(Observable, Decl(recursiveTypeComparison.ts, 0, 0)) var stuck: Property = p; ->stuck : Property ->Property : Property ->p : Observable<{}> +>stuck : Property, Symbol(stuck, Decl(recursiveTypeComparison.ts, 13, 3)) +>Property : Property, Symbol(Property, Decl(recursiveTypeComparison.ts, 9, 1)) +>p : Observable<{}>, Symbol(p, Decl(recursiveTypeComparison.ts, 12, 3)) diff --git a/tests/baselines/reference/recursiveTypeIdentity.types b/tests/baselines/reference/recursiveTypeIdentity.types index 6548650e990..bb734caf1cc 100644 --- a/tests/baselines/reference/recursiveTypeIdentity.types +++ b/tests/baselines/reference/recursiveTypeIdentity.types @@ -1,32 +1,32 @@ === tests/cases/compiler/recursiveTypeIdentity.ts === interface A { ->A : A +>A : A, Symbol(A, Decl(recursiveTypeIdentity.ts, 0, 0)) (x: T): void; ->T : T ->A : A ->x : T ->T : T +>T : T, Symbol(T, Decl(recursiveTypeIdentity.ts, 1, 5)) +>A : A, Symbol(A, Decl(recursiveTypeIdentity.ts, 0, 0)) +>x : T, Symbol(x, Decl(recursiveTypeIdentity.ts, 1, 18)) +>T : T, Symbol(T, Decl(recursiveTypeIdentity.ts, 1, 5)) } interface B { ->B : B +>B : B, Symbol(B, Decl(recursiveTypeIdentity.ts, 2, 1)) (x: T): void; ->T : T ->B : B ->x : T ->T : T +>T : T, Symbol(T, Decl(recursiveTypeIdentity.ts, 5, 5)) +>B : B, Symbol(B, Decl(recursiveTypeIdentity.ts, 2, 1)) +>x : T, Symbol(x, Decl(recursiveTypeIdentity.ts, 5, 18)) +>T : T, Symbol(T, Decl(recursiveTypeIdentity.ts, 5, 5)) } interface C { ->C : C +>C : C, Symbol(C, Decl(recursiveTypeIdentity.ts, 6, 1)) (x: A): void; ->x : A ->A : A +>x : A, Symbol(x, Decl(recursiveTypeIdentity.ts, 9, 5)) +>A : A, Symbol(A, Decl(recursiveTypeIdentity.ts, 0, 0)) (x: B): void; ->x : B ->B : B +>x : B, Symbol(x, Decl(recursiveTypeIdentity.ts, 10, 5)) +>B : B, Symbol(B, Decl(recursiveTypeIdentity.ts, 2, 1)) } diff --git a/tests/baselines/reference/recursiveTypeParameterReferenceError1.types b/tests/baselines/reference/recursiveTypeParameterReferenceError1.types index 9e6f5727142..cc877bcb468 100644 --- a/tests/baselines/reference/recursiveTypeParameterReferenceError1.types +++ b/tests/baselines/reference/recursiveTypeParameterReferenceError1.types @@ -1,54 +1,54 @@ === tests/cases/compiler/recursiveTypeParameterReferenceError1.ts === class X { } ->X : X ->T : T +>X : X, Symbol(X, Decl(recursiveTypeParameterReferenceError1.ts, 0, 0)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError1.ts, 0, 8)) interface Foo { ->Foo : Foo ->T : T +>Foo : Foo, Symbol(Foo, Decl(recursiveTypeParameterReferenceError1.ts, 0, 14)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError1.ts, 1, 14)) z: Foo>; // error ->z : Foo> ->Foo : Foo ->X : X ->T : T +>z : Foo>, Symbol(z, Decl(recursiveTypeParameterReferenceError1.ts, 1, 18)) +>Foo : Foo, Symbol(Foo, Decl(recursiveTypeParameterReferenceError1.ts, 0, 14)) +>X : X, Symbol(X, Decl(recursiveTypeParameterReferenceError1.ts, 0, 0)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError1.ts, 1, 14)) } var f: Foo; ->f : Foo ->Foo : Foo +>f : Foo, Symbol(f, Decl(recursiveTypeParameterReferenceError1.ts, 4, 3)) +>Foo : Foo, Symbol(Foo, Decl(recursiveTypeParameterReferenceError1.ts, 0, 14)) var r = f.z; ->r : Foo> ->f.z : Foo> ->f : Foo ->z : Foo> +>r : Foo>, Symbol(r, Decl(recursiveTypeParameterReferenceError1.ts, 5, 3)) +>f.z : Foo>, Symbol(Foo.z, Decl(recursiveTypeParameterReferenceError1.ts, 1, 18)) +>f : Foo, Symbol(f, Decl(recursiveTypeParameterReferenceError1.ts, 4, 3)) +>z : Foo>, Symbol(Foo.z, Decl(recursiveTypeParameterReferenceError1.ts, 1, 18)) class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(recursiveTypeParameterReferenceError1.ts, 5, 12)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError1.ts, 8, 9)) x: T; ->x : T ->T : T +>x : T, Symbol(x, Decl(recursiveTypeParameterReferenceError1.ts, 8, 13)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError1.ts, 8, 9)) } interface Foo2 { ->Foo2 : Foo2 ->T : T +>Foo2 : Foo2, Symbol(Foo2, Decl(recursiveTypeParameterReferenceError1.ts, 10, 1)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError1.ts, 11, 15)) ofC4: C2<{ x: T }> // ok ->ofC4 : C2<{ x: T; }> ->C2 : C2 ->x : T ->T : T +>ofC4 : C2<{ x: T; }>, Symbol(ofC4, Decl(recursiveTypeParameterReferenceError1.ts, 11, 19)) +>C2 : C2, Symbol(C2, Decl(recursiveTypeParameterReferenceError1.ts, 5, 12)) +>x : T, Symbol(x, Decl(recursiveTypeParameterReferenceError1.ts, 12, 14)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError1.ts, 11, 15)) } var f2: Foo2; ->f2 : Foo2 ->Foo2 : Foo2 +>f2 : Foo2, Symbol(f2, Decl(recursiveTypeParameterReferenceError1.ts, 14, 3)) +>Foo2 : Foo2, Symbol(Foo2, Decl(recursiveTypeParameterReferenceError1.ts, 10, 1)) var r2 = f2.ofC4; ->r2 : C2<{ x: number; }> ->f2.ofC4 : C2<{ x: number; }> ->f2 : Foo2 ->ofC4 : C2<{ x: number; }> +>r2 : C2<{ x: number; }>, Symbol(r2, Decl(recursiveTypeParameterReferenceError1.ts, 15, 3)) +>f2.ofC4 : C2<{ x: number; }>, Symbol(Foo2.ofC4, Decl(recursiveTypeParameterReferenceError1.ts, 11, 19)) +>f2 : Foo2, Symbol(f2, Decl(recursiveTypeParameterReferenceError1.ts, 14, 3)) +>ofC4 : C2<{ x: number; }>, Symbol(Foo2.ofC4, Decl(recursiveTypeParameterReferenceError1.ts, 11, 19)) diff --git a/tests/baselines/reference/recursiveTypeParameterReferenceError2.types b/tests/baselines/reference/recursiveTypeParameterReferenceError2.types index e6cc0e4a365..fd68546fd6c 100644 --- a/tests/baselines/reference/recursiveTypeParameterReferenceError2.types +++ b/tests/baselines/reference/recursiveTypeParameterReferenceError2.types @@ -1,40 +1,40 @@ === tests/cases/compiler/recursiveTypeParameterReferenceError2.ts === interface List { ->List : List ->T : T +>List : List, Symbol(List, Decl(recursiveTypeParameterReferenceError2.ts, 0, 0)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError2.ts, 0, 15)) data: T; ->data : T ->T : T +>data : T, Symbol(data, Decl(recursiveTypeParameterReferenceError2.ts, 0, 19)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError2.ts, 0, 15)) next: List; ->next : List ->List : List ->T : T +>next : List, Symbol(next, Decl(recursiveTypeParameterReferenceError2.ts, 1, 12)) +>List : List, Symbol(List, Decl(recursiveTypeParameterReferenceError2.ts, 0, 0)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError2.ts, 0, 15)) owner: List>; // Error, recursive reference with wrapped T ->owner : List> ->List : List ->List : List ->T : T +>owner : List>, Symbol(owner, Decl(recursiveTypeParameterReferenceError2.ts, 2, 18)) +>List : List, Symbol(List, Decl(recursiveTypeParameterReferenceError2.ts, 0, 0)) +>List : List, Symbol(List, Decl(recursiveTypeParameterReferenceError2.ts, 0, 0)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError2.ts, 0, 15)) } interface List2 { ->List2 : List2 ->T : T +>List2 : List2, Symbol(List2, Decl(recursiveTypeParameterReferenceError2.ts, 4, 1)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError2.ts, 6, 16)) data: T; ->data : T ->T : T +>data : T, Symbol(data, Decl(recursiveTypeParameterReferenceError2.ts, 6, 20)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError2.ts, 6, 16)) next: List2; ->next : List2 ->List2 : List2 ->T : T +>next : List2, Symbol(next, Decl(recursiveTypeParameterReferenceError2.ts, 7, 12)) +>List2 : List2, Symbol(List2, Decl(recursiveTypeParameterReferenceError2.ts, 4, 1)) +>T : T, Symbol(T, Decl(recursiveTypeParameterReferenceError2.ts, 6, 16)) owner: List2>; // Ok ->owner : List2> ->List2 : List2 ->List2 : List2 +>owner : List2>, Symbol(owner, Decl(recursiveTypeParameterReferenceError2.ts, 8, 19)) +>List2 : List2, Symbol(List2, Decl(recursiveTypeParameterReferenceError2.ts, 4, 1)) +>List2 : List2, Symbol(List2, Decl(recursiveTypeParameterReferenceError2.ts, 4, 1)) } diff --git a/tests/baselines/reference/recursiveTypesWithTypeof.types b/tests/baselines/reference/recursiveTypesWithTypeof.types index 14ff5a6d5b9..c4f83f241fd 100644 --- a/tests/baselines/reference/recursiveTypesWithTypeof.types +++ b/tests/baselines/reference/recursiveTypesWithTypeof.types @@ -2,195 +2,200 @@ // None of these declarations should have any errors! // Using typeof directly, these should be any var c: typeof c; ->c : any ->c : any +>c : any, Symbol(c, Decl(recursiveTypesWithTypeof.ts, 2, 3), Decl(recursiveTypesWithTypeof.ts, 3, 3)) +>c : any, Symbol(c, Decl(recursiveTypesWithTypeof.ts, 2, 3), Decl(recursiveTypesWithTypeof.ts, 3, 3)) var c: any; ->c : any +>c : any, Symbol(c, Decl(recursiveTypesWithTypeof.ts, 2, 3), Decl(recursiveTypesWithTypeof.ts, 3, 3)) var d: typeof e; ->d : any ->e : any +>d : any, Symbol(d, Decl(recursiveTypesWithTypeof.ts, 4, 3), Decl(recursiveTypesWithTypeof.ts, 5, 3)) +>e : any, Symbol(e, Decl(recursiveTypesWithTypeof.ts, 6, 3), Decl(recursiveTypesWithTypeof.ts, 7, 3)) var d: any; ->d : any +>d : any, Symbol(d, Decl(recursiveTypesWithTypeof.ts, 4, 3), Decl(recursiveTypesWithTypeof.ts, 5, 3)) var e: typeof d; ->e : any ->d : any +>e : any, Symbol(e, Decl(recursiveTypesWithTypeof.ts, 6, 3), Decl(recursiveTypesWithTypeof.ts, 7, 3)) +>d : any, Symbol(d, Decl(recursiveTypesWithTypeof.ts, 4, 3), Decl(recursiveTypesWithTypeof.ts, 5, 3)) var e: any; ->e : any +>e : any, Symbol(e, Decl(recursiveTypesWithTypeof.ts, 6, 3), Decl(recursiveTypesWithTypeof.ts, 7, 3)) // In type arguments, these should be any interface Foo { } ->Foo : Foo ->T : T +>Foo : Foo, Symbol(Foo, Decl(recursiveTypesWithTypeof.ts, 7, 11)) +>T : T, Symbol(T, Decl(recursiveTypesWithTypeof.ts, 10, 14)) var f: Array; ->f : any ->Array : T[] ->f : any +>f : any, Symbol(f, Decl(recursiveTypesWithTypeof.ts, 11, 3), Decl(recursiveTypesWithTypeof.ts, 12, 3)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>f : any, Symbol(f, Decl(recursiveTypesWithTypeof.ts, 11, 3), Decl(recursiveTypesWithTypeof.ts, 12, 3)) var f: any; ->f : any +>f : any, Symbol(f, Decl(recursiveTypesWithTypeof.ts, 11, 3), Decl(recursiveTypesWithTypeof.ts, 12, 3)) var f2: Foo; ->f2 : any ->Foo : Foo ->f2 : any +>f2 : any, Symbol(f2, Decl(recursiveTypesWithTypeof.ts, 13, 3), Decl(recursiveTypesWithTypeof.ts, 14, 3)) +>Foo : Foo, Symbol(Foo, Decl(recursiveTypesWithTypeof.ts, 7, 11)) +>f2 : any, Symbol(f2, Decl(recursiveTypesWithTypeof.ts, 13, 3), Decl(recursiveTypesWithTypeof.ts, 14, 3)) var f2: any; ->f2 : any +>f2 : any, Symbol(f2, Decl(recursiveTypesWithTypeof.ts, 13, 3), Decl(recursiveTypesWithTypeof.ts, 14, 3)) var f3: Foo[]; ->f3 : any ->Foo : Foo ->f3 : any +>f3 : any, Symbol(f3, Decl(recursiveTypesWithTypeof.ts, 15, 3), Decl(recursiveTypesWithTypeof.ts, 16, 3)) +>Foo : Foo, Symbol(Foo, Decl(recursiveTypesWithTypeof.ts, 7, 11)) +>f3 : any, Symbol(f3, Decl(recursiveTypesWithTypeof.ts, 15, 3), Decl(recursiveTypesWithTypeof.ts, 16, 3)) var f3: any; ->f3 : any +>f3 : any, Symbol(f3, Decl(recursiveTypesWithTypeof.ts, 15, 3), Decl(recursiveTypesWithTypeof.ts, 16, 3)) // Truly recursive types var g: { x: typeof g; }; ->g : { x: any; } ->x : { x: any; } ->g : { x: any; } +>g : { x: any; }, Symbol(g, Decl(recursiveTypesWithTypeof.ts, 19, 3), Decl(recursiveTypesWithTypeof.ts, 20, 3)) +>x : { x: any; }, Symbol(x, Decl(recursiveTypesWithTypeof.ts, 19, 8)) +>g : { x: any; }, Symbol(g, Decl(recursiveTypesWithTypeof.ts, 19, 3), Decl(recursiveTypesWithTypeof.ts, 20, 3)) var g: typeof g.x; ->g : { x: any; } ->g : { x: any; } ->x : { x: any; } +>g : { x: any; }, Symbol(g, Decl(recursiveTypesWithTypeof.ts, 19, 3), Decl(recursiveTypesWithTypeof.ts, 20, 3)) +>g.x : { x: any; }, Symbol(x, Decl(recursiveTypesWithTypeof.ts, 19, 8)) +>g : { x: any; }, Symbol(g, Decl(recursiveTypesWithTypeof.ts, 19, 3), Decl(recursiveTypesWithTypeof.ts, 20, 3)) +>x : { x: any; }, Symbol(x, Decl(recursiveTypesWithTypeof.ts, 19, 8)) var h: () => typeof h; ->h : () => any ->h : () => any +>h : () => any, Symbol(h, Decl(recursiveTypesWithTypeof.ts, 21, 3), Decl(recursiveTypesWithTypeof.ts, 22, 3)) +>h : () => any, Symbol(h, Decl(recursiveTypesWithTypeof.ts, 21, 3), Decl(recursiveTypesWithTypeof.ts, 22, 3)) var h = h(); ->h : () => any +>h : () => any, Symbol(h, Decl(recursiveTypesWithTypeof.ts, 21, 3), Decl(recursiveTypesWithTypeof.ts, 22, 3)) >h() : () => any ->h : () => any +>h : () => any, Symbol(h, Decl(recursiveTypesWithTypeof.ts, 21, 3), Decl(recursiveTypesWithTypeof.ts, 22, 3)) var i: (x: typeof i) => typeof x; ->i : (x: any) => any ->x : (x: any) => any ->i : (x: any) => any ->x : (x: any) => any +>i : (x: any) => any, Symbol(i, Decl(recursiveTypesWithTypeof.ts, 23, 3), Decl(recursiveTypesWithTypeof.ts, 24, 3)) +>x : (x: any) => any, Symbol(x, Decl(recursiveTypesWithTypeof.ts, 23, 8)) +>i : (x: any) => any, Symbol(i, Decl(recursiveTypesWithTypeof.ts, 23, 3), Decl(recursiveTypesWithTypeof.ts, 24, 3)) +>x : (x: any) => any, Symbol(x, Decl(recursiveTypesWithTypeof.ts, 23, 8)) var i = i(i); ->i : (x: any) => any +>i : (x: any) => any, Symbol(i, Decl(recursiveTypesWithTypeof.ts, 23, 3), Decl(recursiveTypesWithTypeof.ts, 24, 3)) >i(i) : (x: any) => any ->i : (x: any) => any ->i : (x: any) => any +>i : (x: any) => any, Symbol(i, Decl(recursiveTypesWithTypeof.ts, 23, 3), Decl(recursiveTypesWithTypeof.ts, 24, 3)) +>i : (x: any) => any, Symbol(i, Decl(recursiveTypesWithTypeof.ts, 23, 3), Decl(recursiveTypesWithTypeof.ts, 24, 3)) var j: (x: T) => T; ->j : (x: T) => T ->T : T ->j : (x: T) => T ->x : T ->T : T ->T : T +>j : (x: T) => T, Symbol(j, Decl(recursiveTypesWithTypeof.ts, 25, 3), Decl(recursiveTypesWithTypeof.ts, 26, 3)) +>T : T, Symbol(T, Decl(recursiveTypesWithTypeof.ts, 25, 8)) +>j : (x: T) => T, Symbol(j, Decl(recursiveTypesWithTypeof.ts, 25, 3), Decl(recursiveTypesWithTypeof.ts, 26, 3)) +>x : T, Symbol(x, Decl(recursiveTypesWithTypeof.ts, 25, 28)) +>T : T, Symbol(T, Decl(recursiveTypesWithTypeof.ts, 25, 8)) +>T : T, Symbol(T, Decl(recursiveTypesWithTypeof.ts, 25, 8)) var j = j(j); ->j : (x: T) => T +>j : (x: T) => T, Symbol(j, Decl(recursiveTypesWithTypeof.ts, 25, 3), Decl(recursiveTypesWithTypeof.ts, 26, 3)) >j(j) : (x: T) => T ->j : (x: T) => T ->j : (x: T) => T +>j : (x: T) => T, Symbol(j, Decl(recursiveTypesWithTypeof.ts, 25, 3), Decl(recursiveTypesWithTypeof.ts, 26, 3)) +>j : (x: T) => T, Symbol(j, Decl(recursiveTypesWithTypeof.ts, 25, 3), Decl(recursiveTypesWithTypeof.ts, 26, 3)) // Same as h, i, j with construct signatures var h2: new () => typeof h2; ->h2 : new () => any ->h2 : new () => any +>h2 : new () => any, Symbol(h2, Decl(recursiveTypesWithTypeof.ts, 29, 3), Decl(recursiveTypesWithTypeof.ts, 30, 3)) +>h2 : new () => any, Symbol(h2, Decl(recursiveTypesWithTypeof.ts, 29, 3), Decl(recursiveTypesWithTypeof.ts, 30, 3)) var h2 = new h2(); ->h2 : new () => any +>h2 : new () => any, Symbol(h2, Decl(recursiveTypesWithTypeof.ts, 29, 3), Decl(recursiveTypesWithTypeof.ts, 30, 3)) >new h2() : new () => any ->h2 : new () => any +>h2 : new () => any, Symbol(h2, Decl(recursiveTypesWithTypeof.ts, 29, 3), Decl(recursiveTypesWithTypeof.ts, 30, 3)) var i2: new (x: typeof i2) => typeof x; ->i2 : new (x: any) => any ->x : new (x: any) => any ->i2 : new (x: any) => any ->x : new (x: any) => any +>i2 : new (x: any) => any, Symbol(i2, Decl(recursiveTypesWithTypeof.ts, 31, 3), Decl(recursiveTypesWithTypeof.ts, 32, 3)) +>x : new (x: any) => any, Symbol(x, Decl(recursiveTypesWithTypeof.ts, 31, 13)) +>i2 : new (x: any) => any, Symbol(i2, Decl(recursiveTypesWithTypeof.ts, 31, 3), Decl(recursiveTypesWithTypeof.ts, 32, 3)) +>x : new (x: any) => any, Symbol(x, Decl(recursiveTypesWithTypeof.ts, 31, 13)) var i2 = new i2(i2); ->i2 : new (x: any) => any +>i2 : new (x: any) => any, Symbol(i2, Decl(recursiveTypesWithTypeof.ts, 31, 3), Decl(recursiveTypesWithTypeof.ts, 32, 3)) >new i2(i2) : new (x: any) => any ->i2 : new (x: any) => any ->i2 : new (x: any) => any +>i2 : new (x: any) => any, Symbol(i2, Decl(recursiveTypesWithTypeof.ts, 31, 3), Decl(recursiveTypesWithTypeof.ts, 32, 3)) +>i2 : new (x: any) => any, Symbol(i2, Decl(recursiveTypesWithTypeof.ts, 31, 3), Decl(recursiveTypesWithTypeof.ts, 32, 3)) var j2: new (x: T) => T; ->j2 : new (x: T) => T ->T : T ->j2 : new (x: T) => T ->x : T ->T : T ->T : T +>j2 : new (x: T) => T, Symbol(j2, Decl(recursiveTypesWithTypeof.ts, 33, 3), Decl(recursiveTypesWithTypeof.ts, 34, 3)) +>T : T, Symbol(T, Decl(recursiveTypesWithTypeof.ts, 33, 13)) +>j2 : new (x: T) => T, Symbol(j2, Decl(recursiveTypesWithTypeof.ts, 33, 3), Decl(recursiveTypesWithTypeof.ts, 34, 3)) +>x : T, Symbol(x, Decl(recursiveTypesWithTypeof.ts, 33, 34)) +>T : T, Symbol(T, Decl(recursiveTypesWithTypeof.ts, 33, 13)) +>T : T, Symbol(T, Decl(recursiveTypesWithTypeof.ts, 33, 13)) var j2 = new j2(j2); ->j2 : new (x: T) => T +>j2 : new (x: T) => T, Symbol(j2, Decl(recursiveTypesWithTypeof.ts, 33, 3), Decl(recursiveTypesWithTypeof.ts, 34, 3)) >new j2(j2) : new (x: T) => T ->j2 : new (x: T) => T ->j2 : new (x: T) => T +>j2 : new (x: T) => T, Symbol(j2, Decl(recursiveTypesWithTypeof.ts, 33, 3), Decl(recursiveTypesWithTypeof.ts, 34, 3)) +>j2 : new (x: T) => T, Symbol(j2, Decl(recursiveTypesWithTypeof.ts, 33, 3), Decl(recursiveTypesWithTypeof.ts, 34, 3)) // Indexers var k: { [n: number]: typeof k;[s: string]: typeof k }; ->k : { [s: string]: any; [n: number]: any; } ->n : number ->k : { [s: string]: any; [n: number]: any; } ->s : string ->k : { [s: string]: any; [n: number]: any; } +>k : { [s: string]: any; [n: number]: any; }, Symbol(k, Decl(recursiveTypesWithTypeof.ts, 37, 3), Decl(recursiveTypesWithTypeof.ts, 38, 3), Decl(recursiveTypesWithTypeof.ts, 39, 3)) +>n : number, Symbol(n, Decl(recursiveTypesWithTypeof.ts, 37, 10)) +>k : { [s: string]: any; [n: number]: any; }, Symbol(k, Decl(recursiveTypesWithTypeof.ts, 37, 3), Decl(recursiveTypesWithTypeof.ts, 38, 3), Decl(recursiveTypesWithTypeof.ts, 39, 3)) +>s : string, Symbol(s, Decl(recursiveTypesWithTypeof.ts, 37, 32)) +>k : { [s: string]: any; [n: number]: any; }, Symbol(k, Decl(recursiveTypesWithTypeof.ts, 37, 3), Decl(recursiveTypesWithTypeof.ts, 38, 3), Decl(recursiveTypesWithTypeof.ts, 39, 3)) var k = k[0]; ->k : { [s: string]: any; [n: number]: any; } +>k : { [s: string]: any; [n: number]: any; }, Symbol(k, Decl(recursiveTypesWithTypeof.ts, 37, 3), Decl(recursiveTypesWithTypeof.ts, 38, 3), Decl(recursiveTypesWithTypeof.ts, 39, 3)) >k[0] : { [s: string]: any; [n: number]: any; } ->k : { [s: string]: any; [n: number]: any; } +>k : { [s: string]: any; [n: number]: any; }, Symbol(k, Decl(recursiveTypesWithTypeof.ts, 37, 3), Decl(recursiveTypesWithTypeof.ts, 38, 3), Decl(recursiveTypesWithTypeof.ts, 39, 3)) +>0 : number var k = k['']; ->k : { [s: string]: any; [n: number]: any; } +>k : { [s: string]: any; [n: number]: any; }, Symbol(k, Decl(recursiveTypesWithTypeof.ts, 37, 3), Decl(recursiveTypesWithTypeof.ts, 38, 3), Decl(recursiveTypesWithTypeof.ts, 39, 3)) >k[''] : { [s: string]: any; [n: number]: any; } ->k : { [s: string]: any; [n: number]: any; } +>k : { [s: string]: any; [n: number]: any; }, Symbol(k, Decl(recursiveTypesWithTypeof.ts, 37, 3), Decl(recursiveTypesWithTypeof.ts, 38, 3), Decl(recursiveTypesWithTypeof.ts, 39, 3)) +>'' : string // Hybrid - contains type literals as well as type arguments // These two are recursive var hy1: { x: typeof hy1 }[]; ->hy1 : { x: any[]; }[] ->x : { x: any[]; }[] ->hy1 : { x: any[]; }[] +>hy1 : { x: any[]; }[], Symbol(hy1, Decl(recursiveTypesWithTypeof.ts, 43, 3), Decl(recursiveTypesWithTypeof.ts, 44, 3)) +>x : { x: any[]; }[], Symbol(x, Decl(recursiveTypesWithTypeof.ts, 43, 10)) +>hy1 : { x: any[]; }[], Symbol(hy1, Decl(recursiveTypesWithTypeof.ts, 43, 3), Decl(recursiveTypesWithTypeof.ts, 44, 3)) var hy1 = hy1[0].x; ->hy1 : { x: any[]; }[] ->hy1[0].x : { x: any[]; }[] +>hy1 : { x: any[]; }[], Symbol(hy1, Decl(recursiveTypesWithTypeof.ts, 43, 3), Decl(recursiveTypesWithTypeof.ts, 44, 3)) +>hy1[0].x : { x: any[]; }[], Symbol(x, Decl(recursiveTypesWithTypeof.ts, 43, 10)) >hy1[0] : { x: any[]; } ->hy1 : { x: any[]; }[] ->x : { x: any[]; }[] +>hy1 : { x: any[]; }[], Symbol(hy1, Decl(recursiveTypesWithTypeof.ts, 43, 3), Decl(recursiveTypesWithTypeof.ts, 44, 3)) +>0 : number +>x : { x: any[]; }[], Symbol(x, Decl(recursiveTypesWithTypeof.ts, 43, 10)) var hy2: { x: Array }; ->hy2 : { x: any[]; } ->x : { x: any[]; }[] ->Array : T[] ->hy2 : { x: any[]; } +>hy2 : { x: any[]; }, Symbol(hy2, Decl(recursiveTypesWithTypeof.ts, 45, 3), Decl(recursiveTypesWithTypeof.ts, 46, 3)) +>x : { x: any[]; }[], Symbol(x, Decl(recursiveTypesWithTypeof.ts, 45, 10)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>hy2 : { x: any[]; }, Symbol(hy2, Decl(recursiveTypesWithTypeof.ts, 45, 3), Decl(recursiveTypesWithTypeof.ts, 46, 3)) var hy2 = hy2.x[0]; ->hy2 : { x: any[]; } +>hy2 : { x: any[]; }, Symbol(hy2, Decl(recursiveTypesWithTypeof.ts, 45, 3), Decl(recursiveTypesWithTypeof.ts, 46, 3)) >hy2.x[0] : { x: any[]; } ->hy2.x : { x: any[]; }[] ->hy2 : { x: any[]; } ->x : { x: any[]; }[] +>hy2.x : { x: any[]; }[], Symbol(x, Decl(recursiveTypesWithTypeof.ts, 45, 10)) +>hy2 : { x: any[]; }, Symbol(hy2, Decl(recursiveTypesWithTypeof.ts, 45, 3), Decl(recursiveTypesWithTypeof.ts, 46, 3)) +>x : { x: any[]; }[], Symbol(x, Decl(recursiveTypesWithTypeof.ts, 45, 10)) +>0 : number interface Foo2 { } ->Foo2 : Foo2 ->T : T ->U : U +>Foo2 : Foo2, Symbol(Foo2, Decl(recursiveTypesWithTypeof.ts, 46, 19)) +>T : T, Symbol(T, Decl(recursiveTypesWithTypeof.ts, 48, 15)) +>U : U, Symbol(U, Decl(recursiveTypesWithTypeof.ts, 48, 17)) // This one should be any because the first type argument is not contained inside a type literal var hy3: Foo2; ->hy3 : any ->Foo2 : Foo2 ->hy3 : any ->x : any ->hy3 : any +>hy3 : any, Symbol(hy3, Decl(recursiveTypesWithTypeof.ts, 51, 3), Decl(recursiveTypesWithTypeof.ts, 52, 3)) +>Foo2 : Foo2, Symbol(Foo2, Decl(recursiveTypesWithTypeof.ts, 46, 19)) +>hy3 : any, Symbol(hy3, Decl(recursiveTypesWithTypeof.ts, 51, 3), Decl(recursiveTypesWithTypeof.ts, 52, 3)) +>x : any, Symbol(x, Decl(recursiveTypesWithTypeof.ts, 51, 27)) +>hy3 : any, Symbol(hy3, Decl(recursiveTypesWithTypeof.ts, 51, 3), Decl(recursiveTypesWithTypeof.ts, 52, 3)) var hy3: any; ->hy3 : any +>hy3 : any, Symbol(hy3, Decl(recursiveTypesWithTypeof.ts, 51, 3), Decl(recursiveTypesWithTypeof.ts, 52, 3)) diff --git a/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.types b/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.types index bccd226ceba..10a2e37233e 100644 --- a/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.types +++ b/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.types @@ -1,36 +1,36 @@ === tests/cases/compiler/recursivelySpecializedConstructorDeclaration.ts === module MsPortal.Controls.Base.ItemList { ->MsPortal : typeof MsPortal ->Controls : typeof Controls ->Base : typeof Base ->ItemList : typeof ItemList +>MsPortal : typeof MsPortal, Symbol(MsPortal, Decl(recursivelySpecializedConstructorDeclaration.ts, 0, 0)) +>Controls : typeof Controls, Symbol(Controls, Decl(recursivelySpecializedConstructorDeclaration.ts, 0, 16)) +>Base : typeof Base, Symbol(Base, Decl(recursivelySpecializedConstructorDeclaration.ts, 0, 25)) +>ItemList : typeof ItemList, Symbol(ItemList, Decl(recursivelySpecializedConstructorDeclaration.ts, 0, 30)) export interface Interface { ->Interface : Interface ->TValue : TValue +>Interface : Interface, Symbol(Interface, Decl(recursivelySpecializedConstructorDeclaration.ts, 0, 40)) +>TValue : TValue, Symbol(TValue, Decl(recursivelySpecializedConstructorDeclaration.ts, 2, 31)) // Removing this line fixes the constructor of ItemValue options: ViewModel; ->options : ViewModel ->ViewModel : ViewModel ->TValue : TValue +>options : ViewModel, Symbol(options, Decl(recursivelySpecializedConstructorDeclaration.ts, 2, 40)) +>ViewModel : ViewModel, Symbol(ViewModel, Decl(recursivelySpecializedConstructorDeclaration.ts, 10, 5)) +>TValue : TValue, Symbol(TValue, Decl(recursivelySpecializedConstructorDeclaration.ts, 2, 31)) } export class ItemValue { ->ItemValue : ItemValue ->T : T +>ItemValue : ItemValue, Symbol(ItemValue, Decl(recursivelySpecializedConstructorDeclaration.ts, 5, 5)) +>T : T, Symbol(T, Decl(recursivelySpecializedConstructorDeclaration.ts, 7, 27)) constructor(value: T) { ->value : T ->T : T +>value : T, Symbol(value, Decl(recursivelySpecializedConstructorDeclaration.ts, 8, 20)) +>T : T, Symbol(T, Decl(recursivelySpecializedConstructorDeclaration.ts, 7, 27)) } } export class ViewModel extends ItemValue { ->ViewModel : ViewModel ->TValue : TValue ->ItemValue : ItemValue ->TValue : TValue +>ViewModel : ViewModel, Symbol(ViewModel, Decl(recursivelySpecializedConstructorDeclaration.ts, 10, 5)) +>TValue : TValue, Symbol(TValue, Decl(recursivelySpecializedConstructorDeclaration.ts, 12, 27)) +>ItemValue : ItemValue, Symbol(ItemValue, Decl(recursivelySpecializedConstructorDeclaration.ts, 5, 5)) +>TValue : TValue, Symbol(TValue, Decl(recursivelySpecializedConstructorDeclaration.ts, 12, 27)) } } diff --git a/tests/baselines/reference/redeclarationOfVarWithGenericType.types b/tests/baselines/reference/redeclarationOfVarWithGenericType.types index 4a55c4c1f9d..e21e9e88cb5 100644 --- a/tests/baselines/reference/redeclarationOfVarWithGenericType.types +++ b/tests/baselines/reference/redeclarationOfVarWithGenericType.types @@ -1,17 +1,17 @@ === tests/cases/compiler/redeclarationOfVarWithGenericType.ts === var a1: { fn(x: T): T }; ->a1 : { fn(x: T): T; } ->fn : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(redeclarationOfVarWithGenericType.ts, 0, 3), Decl(redeclarationOfVarWithGenericType.ts, 1, 3)) +>fn : (x: T) => T, Symbol(fn, Decl(redeclarationOfVarWithGenericType.ts, 0, 9)) +>T : T, Symbol(T, Decl(redeclarationOfVarWithGenericType.ts, 0, 13)) +>x : T, Symbol(x, Decl(redeclarationOfVarWithGenericType.ts, 0, 16)) +>T : T, Symbol(T, Decl(redeclarationOfVarWithGenericType.ts, 0, 13)) +>T : T, Symbol(T, Decl(redeclarationOfVarWithGenericType.ts, 0, 13)) var a1: { fn(x: T): T }; ->a1 : { fn(x: T): T; } ->fn : (x: T) => T ->T : T ->x : T ->T : T ->T : T +>a1 : { fn(x: T): T; }, Symbol(a1, Decl(redeclarationOfVarWithGenericType.ts, 0, 3), Decl(redeclarationOfVarWithGenericType.ts, 1, 3)) +>fn : (x: T) => T, Symbol(fn, Decl(redeclarationOfVarWithGenericType.ts, 1, 9)) +>T : T, Symbol(T, Decl(redeclarationOfVarWithGenericType.ts, 1, 13)) +>x : T, Symbol(x, Decl(redeclarationOfVarWithGenericType.ts, 1, 16)) +>T : T, Symbol(T, Decl(redeclarationOfVarWithGenericType.ts, 1, 13)) +>T : T, Symbol(T, Decl(redeclarationOfVarWithGenericType.ts, 1, 13)) diff --git a/tests/baselines/reference/regExpWithSlashInCharClass.types b/tests/baselines/reference/regExpWithSlashInCharClass.types index c868594e457..94173f12fa8 100644 --- a/tests/baselines/reference/regExpWithSlashInCharClass.types +++ b/tests/baselines/reference/regExpWithSlashInCharClass.types @@ -1,19 +1,28 @@ === tests/cases/compiler/regExpWithSlashInCharClass.ts === var foo1 = "a/".replace(/.[/]/, ""); ->foo1 : string +>foo1 : string, Symbol(foo1, Decl(regExpWithSlashInCharClass.ts, 0, 3)) >"a/".replace(/.[/]/, "") : string ->"a/".replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; } ->replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; } +>"a/".replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; }, Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63)) +>"a/" : string +>replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; }, Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63)) +>/.[/]/ : RegExp +>"" : string var foo2 = "a//".replace(/.[//]/g, ""); ->foo2 : string +>foo2 : string, Symbol(foo2, Decl(regExpWithSlashInCharClass.ts, 1, 3)) >"a//".replace(/.[//]/g, "") : string ->"a//".replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; } ->replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; } +>"a//".replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; }, Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63)) +>"a//" : string +>replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; }, Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63)) +>/.[//]/g : RegExp +>"" : string var foo3 = "a/".replace(/.[/no sleep /till/]/, "bugfix"); ->foo3 : string +>foo3 : string, Symbol(foo3, Decl(regExpWithSlashInCharClass.ts, 2, 3)) >"a/".replace(/.[/no sleep /till/]/, "bugfix") : string ->"a/".replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; } ->replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; } +>"a/".replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; }, Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63)) +>"a/" : string +>replace : { (searchValue: string, replaceValue: string): string; (searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string; (searchValue: RegExp, replaceValue: string): string; (searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string; }, Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63)) +>/.[/no sleep /till/]/ : RegExp +>"bugfix" : string diff --git a/tests/baselines/reference/reorderProperties.types b/tests/baselines/reference/reorderProperties.types index 2e2939815f2..1fa0862e817 100644 --- a/tests/baselines/reference/reorderProperties.types +++ b/tests/baselines/reference/reorderProperties.types @@ -1,56 +1,56 @@ === tests/cases/compiler/reorderProperties.ts === interface A { ->A : A ->T : T +>A : A, Symbol(A, Decl(reorderProperties.ts, 0, 0)) +>T : T, Symbol(T, Decl(reorderProperties.ts, 0, 12)) x: T ->x : T ->T : T +>x : T, Symbol(x, Decl(reorderProperties.ts, 0, 16)) +>T : T, Symbol(T, Decl(reorderProperties.ts, 0, 12)) } interface B { ->B : B ->T : T +>B : B, Symbol(B, Decl(reorderProperties.ts, 2, 1)) +>T : T, Symbol(T, Decl(reorderProperties.ts, 4, 12)) x: T ->x : T ->T : T +>x : T, Symbol(x, Decl(reorderProperties.ts, 4, 16)) +>T : T, Symbol(T, Decl(reorderProperties.ts, 4, 12)) } interface C extends A> { ->C : C ->S : S ->A : A ->D : D ->S : S +>C : C, Symbol(C, Decl(reorderProperties.ts, 6, 1)) +>S : S, Symbol(S, Decl(reorderProperties.ts, 8, 12)) +>A : A, Symbol(A, Decl(reorderProperties.ts, 0, 0)) +>D : D, Symbol(D, Decl(reorderProperties.ts, 10, 1)) +>S : S, Symbol(S, Decl(reorderProperties.ts, 8, 12)) y: S ->y : S ->S : S +>y : S, Symbol(y, Decl(reorderProperties.ts, 8, 32)) +>S : S, Symbol(S, Decl(reorderProperties.ts, 8, 12)) } interface D extends B> { ->D : D ->S : S ->B : B ->C : C ->S : S +>D : D, Symbol(D, Decl(reorderProperties.ts, 10, 1)) +>S : S, Symbol(S, Decl(reorderProperties.ts, 12, 12)) +>B : B, Symbol(B, Decl(reorderProperties.ts, 2, 1)) +>C : C, Symbol(C, Decl(reorderProperties.ts, 6, 1)) +>S : S, Symbol(S, Decl(reorderProperties.ts, 12, 12)) y: S ->y : S ->S : S +>y : S, Symbol(y, Decl(reorderProperties.ts, 12, 32)) +>S : S, Symbol(S, Decl(reorderProperties.ts, 12, 12)) } var c: C<{ s: string; n: number }> ->c : C<{ s: string; n: number; }> ->C : C ->s : string ->n : number +>c : C<{ s: string; n: number; }>, Symbol(c, Decl(reorderProperties.ts, 16, 3)) +>C : C, Symbol(C, Decl(reorderProperties.ts, 6, 1)) +>s : string, Symbol(s, Decl(reorderProperties.ts, 16, 10)) +>n : number, Symbol(n, Decl(reorderProperties.ts, 16, 21)) var d: D<{ n: number; s: string }> = c ->d : D<{ n: number; s: string; }> ->D : D ->n : number ->s : string ->c : C<{ s: string; n: number; }> +>d : D<{ n: number; s: string; }>, Symbol(d, Decl(reorderProperties.ts, 17, 3)) +>D : D, Symbol(D, Decl(reorderProperties.ts, 10, 1)) +>n : number, Symbol(n, Decl(reorderProperties.ts, 17, 10)) +>s : string, Symbol(s, Decl(reorderProperties.ts, 17, 21)) +>c : C<{ s: string; n: number; }>, Symbol(c, Decl(reorderProperties.ts, 16, 3)) diff --git a/tests/baselines/reference/requireEmitSemicolon.types b/tests/baselines/reference/requireEmitSemicolon.types index 692cfcfe63f..2ee5b96427f 100644 --- a/tests/baselines/reference/requireEmitSemicolon.types +++ b/tests/baselines/reference/requireEmitSemicolon.types @@ -1,40 +1,41 @@ === tests/cases/compiler/requireEmitSemicolon_1.ts === /// import P = require("requireEmitSemicolon_0"); // bug was we were not emitting a ; here and causing runtime failures in node ->P : typeof P +>P : typeof P, Symbol(P, Decl(requireEmitSemicolon_1.ts, 0, 0)) export module Database { ->Database : typeof Database +>Database : typeof Database, Symbol(Database, Decl(requireEmitSemicolon_1.ts, 1, 45)) export class DB { ->DB : DB +>DB : DB, Symbol(DB, Decl(requireEmitSemicolon_1.ts, 3, 24)) public findPerson(id: number): P.Models.Person { ->findPerson : (id: number) => P.Models.Person ->id : number ->P : unknown ->Models : unknown ->Person : P.Models.Person +>findPerson : (id: number) => P.Models.Person, Symbol(findPerson, Decl(requireEmitSemicolon_1.ts, 4, 18)) +>id : number, Symbol(id, Decl(requireEmitSemicolon_1.ts, 5, 23)) +>P : any, Symbol(P, Decl(requireEmitSemicolon_1.ts, 0, 0)) +>Models : any, Symbol(P.Models, Decl(requireEmitSemicolon_0.ts, 0, 0)) +>Person : P.Models.Person, Symbol(P.Models.Person, Decl(requireEmitSemicolon_0.ts, 0, 22)) return new P.Models.Person("Rock"); >new P.Models.Person("Rock") : P.Models.Person ->P.Models.Person : typeof P.Models.Person ->P.Models : typeof P.Models ->P : typeof P ->Models : typeof P.Models ->Person : typeof P.Models.Person +>P.Models.Person : typeof P.Models.Person, Symbol(P.Models.Person, Decl(requireEmitSemicolon_0.ts, 0, 22)) +>P.Models : typeof P.Models, Symbol(P.Models, Decl(requireEmitSemicolon_0.ts, 0, 0)) +>P : typeof P, Symbol(P, Decl(requireEmitSemicolon_1.ts, 0, 0)) +>Models : typeof P.Models, Symbol(P.Models, Decl(requireEmitSemicolon_0.ts, 0, 0)) +>Person : typeof P.Models.Person, Symbol(P.Models.Person, Decl(requireEmitSemicolon_0.ts, 0, 22)) +>"Rock" : string } } } === tests/cases/compiler/requireEmitSemicolon_0.ts === export module Models { ->Models : typeof Models +>Models : typeof Models, Symbol(Models, Decl(requireEmitSemicolon_0.ts, 0, 0)) export class Person { ->Person : Person +>Person : Person, Symbol(Person, Decl(requireEmitSemicolon_0.ts, 0, 22)) constructor(name: string) { } ->name : string +>name : string, Symbol(name, Decl(requireEmitSemicolon_0.ts, 2, 20)) } } diff --git a/tests/baselines/reference/reservedNameOnModuleImport.types b/tests/baselines/reference/reservedNameOnModuleImport.types index f515b45fab8..3a611f2b634 100644 --- a/tests/baselines/reference/reservedNameOnModuleImport.types +++ b/tests/baselines/reference/reservedNameOnModuleImport.types @@ -1,13 +1,13 @@ === tests/cases/compiler/reservedNameOnModuleImport.ts === declare module test { ->test : typeof test +>test : typeof test, Symbol(test, Decl(reservedNameOnModuleImport.ts, 0, 0)) module mstring { } ->mstring : unknown +>mstring : any, Symbol(mstring, Decl(reservedNameOnModuleImport.ts, 0, 21)) // Should be fine; this does not clobber any declared values. export import string = mstring; ->string : unknown ->mstring : unknown +>string : any, Symbol(string, Decl(reservedNameOnModuleImport.ts, 1, 22)) +>mstring : any, Symbol(mstring, Decl(reservedNameOnModuleImport.ts, 0, 21)) } diff --git a/tests/baselines/reference/reservedWords.types b/tests/baselines/reference/reservedWords.types index 769039a76bf..7f2b856a887 100644 --- a/tests/baselines/reference/reservedWords.types +++ b/tests/baselines/reference/reservedWords.types @@ -1,40 +1,49 @@ === tests/cases/compiler/reservedWords.ts === var obj = { ->obj : { if: number; debugger: number; break: number; function: number; } +>obj : { if: number; debugger: number; break: number; function: number; }, Symbol(obj, Decl(reservedWords.ts, 0, 3)) >{ if: 0, debugger: 2, break: 3, function: 4} : { if: number; debugger: number; break: number; function: number; } if: 0, ->if : number +>if : number, Symbol(if, Decl(reservedWords.ts, 0, 11)) +>0 : number debugger: 2, ->debugger : number +>debugger : number, Symbol(debugger, Decl(reservedWords.ts, 1, 10)) +>2 : number break: 3, ->break : number +>break : number, Symbol(break, Decl(reservedWords.ts, 2, 16)) +>3 : number function: 4 ->function : number +>function : number, Symbol(function, Decl(reservedWords.ts, 3, 13)) +>4 : number } //This compiles. var obj2 = { ->obj2 : { if: number; while: number; debugger: number; break: number; function: number; } +>obj2 : { if: number; while: number; debugger: number; break: number; function: number; }, Symbol(obj2, Decl(reservedWords.ts, 9, 3)) >{ if: 0, while: 1, debugger: 2, break: 3, function: 4} : { if: number; while: number; debugger: number; break: number; function: number; } if: 0, ->if : number +>if : number, Symbol(if, Decl(reservedWords.ts, 9, 12)) +>0 : number while: 1, ->while : number +>while : number, Symbol(while, Decl(reservedWords.ts, 10, 10)) +>1 : number debugger: 2, ->debugger : number +>debugger : number, Symbol(debugger, Decl(reservedWords.ts, 11, 13)) +>2 : number break: 3, ->break : number +>break : number, Symbol(break, Decl(reservedWords.ts, 12, 16)) +>3 : number function: 4 ->function : number +>function : number, Symbol(function, Decl(reservedWords.ts, 13, 13)) +>4 : number } diff --git a/tests/baselines/reference/reservedWords2.errors.txt b/tests/baselines/reference/reservedWords2.errors.txt new file mode 100644 index 00000000000..ec4b7b09887 --- /dev/null +++ b/tests/baselines/reference/reservedWords2.errors.txt @@ -0,0 +1,85 @@ +tests/cases/compiler/reservedWords2.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided. +tests/cases/compiler/reservedWords2.ts(1,8): error TS1109: Expression expected. +tests/cases/compiler/reservedWords2.ts(1,14): error TS1005: '(' expected. +tests/cases/compiler/reservedWords2.ts(1,16): error TS2304: Cannot find name 'require'. +tests/cases/compiler/reservedWords2.ts(1,31): error TS1005: ')' expected. +tests/cases/compiler/reservedWords2.ts(2,12): error TS2300: Duplicate identifier '(Missing)'. +tests/cases/compiler/reservedWords2.ts(2,14): error TS1003: Identifier expected. +tests/cases/compiler/reservedWords2.ts(2,20): error TS1005: '(' expected. +tests/cases/compiler/reservedWords2.ts(2,20): error TS2304: Cannot find name 'from'. +tests/cases/compiler/reservedWords2.ts(2,25): error TS1005: ')' expected. +tests/cases/compiler/reservedWords2.ts(4,5): error TS1134: Variable declaration expected. +tests/cases/compiler/reservedWords2.ts(4,12): error TS1109: Expression expected. +tests/cases/compiler/reservedWords2.ts(5,9): error TS2300: Duplicate identifier '(Missing)'. +tests/cases/compiler/reservedWords2.ts(5,10): error TS1003: Identifier expected. +tests/cases/compiler/reservedWords2.ts(5,18): error TS1005: '=>' expected. +tests/cases/compiler/reservedWords2.ts(6,7): error TS2300: Duplicate identifier '(Missing)'. +tests/cases/compiler/reservedWords2.ts(6,8): error TS1003: Identifier expected. +tests/cases/compiler/reservedWords2.ts(9,6): error TS1181: Array element destructuring pattern expected. +tests/cases/compiler/reservedWords2.ts(9,14): error TS1005: ';' expected. +tests/cases/compiler/reservedWords2.ts(9,18): error TS1005: '(' expected. +tests/cases/compiler/reservedWords2.ts(9,20): error TS1128: Declaration or statement expected. +tests/cases/compiler/reservedWords2.ts(10,5): error TS2300: Duplicate identifier '(Missing)'. +tests/cases/compiler/reservedWords2.ts(10,6): error TS1003: Identifier expected. + + +==== tests/cases/compiler/reservedWords2.ts (23 errors) ==== + import while = require("dfdf"); + ~~~~~~ +!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided. + ~~~~~ +!!! error TS1109: Expression expected. + ~ +!!! error TS1005: '(' expected. + ~~~~~~~ +!!! error TS2304: Cannot find name 'require'. + ~ +!!! error TS1005: ')' expected. + import * as while from "foo" + +!!! error TS2300: Duplicate identifier '(Missing)'. + ~~~~~ +!!! error TS1003: Identifier expected. + ~~~~ +!!! error TS1005: '(' expected. + ~~~~ +!!! error TS2304: Cannot find name 'from'. + ~~~~~ +!!! error TS1005: ')' expected. + + var typeof = 10; + ~~~~~~ +!!! error TS1134: Variable declaration expected. + ~ +!!! error TS1109: Expression expected. + function throw() {} + +!!! error TS2300: Duplicate identifier '(Missing)'. + ~~~~~ +!!! error TS1003: Identifier expected. + ~ +!!! error TS1005: '=>' expected. + module void {} + +!!! error TS2300: Duplicate identifier '(Missing)'. + ~~~~ +!!! error TS1003: Identifier expected. + var {while, return} = { while: 1, return: 2 }; + var {this, switch: { continue} } = { this: 1, switch: { continue: 2 }}; + var [debugger, if] = [1, 2]; + ~~~~~~~~ +!!! error TS1181: Array element destructuring pattern expected. + ~ +!!! error TS1005: ';' expected. + ~ +!!! error TS1005: '(' expected. + ~ +!!! error TS1128: Declaration or statement expected. + enum void {} + +!!! error TS2300: Duplicate identifier '(Missing)'. + ~~~~ +!!! error TS1003: Identifier expected. + + + \ No newline at end of file diff --git a/tests/baselines/reference/reservedWords2.js b/tests/baselines/reference/reservedWords2.js new file mode 100644 index 00000000000..4bda38842a3 --- /dev/null +++ b/tests/baselines/reference/reservedWords2.js @@ -0,0 +1,37 @@ +//// [reservedWords2.ts] +import while = require("dfdf"); +import * as while from "foo" + +var typeof = 10; +function throw() {} +module void {} +var {while, return} = { while: 1, return: 2 }; +var {this, switch: { continue} } = { this: 1, switch: { continue: 2 }}; +var [debugger, if] = [1, 2]; +enum void {} + + + + +//// [reservedWords2.js] +require(); +while ( = require("dfdf")) + ; +while (from) + "foo"; +var ; +typeof ; +10; +throw function () { }; +void {}; +var _a = { while: 1, return: 2 }, while = _a.while, return = _a.return; +var _b = { this: 1, switch: { continue: 2 } }, this = _b.this, continue = _b.switch.continue; +var _c = void 0; +debugger; +if () + ; +[1, 2]; +var ; +(function () { +})( || ( = {})); +void {}; diff --git a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.types b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.types index c4aec3ea8c2..77da6d7363f 100644 --- a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.types +++ b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.types @@ -1,13691 +1,13738 @@ === tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts === module rionegrensis { ->rionegrensis : typeof rionegrensis +>rionegrensis : typeof rionegrensis, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) export class caniventer extends Lanthanum.nitidus { ->caniventer : caniventer ->Lanthanum : typeof Lanthanum ->nitidus : Lanthanum.nitidus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->julianae : unknown ->sumatrana : julianae.sumatrana +>caniventer : caniventer, Symbol(caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>Lanthanum.nitidus : any, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>Lanthanum : typeof Lanthanum, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) salomonseni() : caniventer { var x : caniventer; () => { var y = this; }; return x; } ->salomonseni : () => caniventer ->caniventer : caniventer ->x : caniventer ->caniventer : caniventer +>salomonseni : () => caniventer, Symbol(salomonseni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1, 96)) +>caniventer : caniventer, Symbol(caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 2, 36)) +>caniventer : caniventer, Symbol(caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : caniventer ->this : caniventer ->x : caniventer +>y : caniventer, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 2, 64)) +>this : caniventer, Symbol(caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 2, 36)) uchidai() : lavali.xanthognathus { var x : lavali.xanthognathus; () => { var y = this; }; return x; } ->uchidai : () => lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>uchidai : () => lavali.xanthognathus, Symbol(uchidai, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 2, 89)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 3, 42)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : caniventer ->this : caniventer ->x : lavali.xanthognathus +>y : caniventer, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 3, 80)) +>this : caniventer, Symbol(caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 3, 42)) raffrayana() : lavali.otion { var x : lavali.otion; () => { var y = this; }; return x; } ->raffrayana : () => lavali.otion ->lavali : unknown ->otion : lavali.otion ->x : lavali.otion ->lavali : unknown ->otion : lavali.otion +>raffrayana : () => lavali.otion, Symbol(raffrayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 3, 105)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : lavali.otion, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 4, 37)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) >() => { var y = this; } : () => void ->y : caniventer ->this : caniventer ->x : lavali.otion +>y : caniventer, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 4, 67)) +>this : caniventer, Symbol(caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : lavali.otion, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 4, 37)) Uranium() : minutus.inez, trivirgatus.falconeri> { var x : minutus.inez, trivirgatus.falconeri>; () => { var y = this; }; return x; } ->Uranium : () => minutus.inez, trivirgatus.falconeri> ->minutus : unknown ->inez : minutus.inez ->minutus : unknown ->inez : minutus.inez ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->dammermani : unknown ->melanops : dammermani.melanops ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->x : minutus.inez, trivirgatus.falconeri> ->minutus : unknown ->inez : minutus.inez ->minutus : unknown ->inez : minutus.inez ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->dammermani : unknown ->melanops : dammermani.melanops ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri +>Uranium : () => minutus.inez, trivirgatus.falconeri>, Symbol(Uranium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 4, 92)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : minutus.inez, trivirgatus.falconeri>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 5, 112)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) >() => { var y = this; } : () => void ->y : caniventer ->this : caniventer ->x : minutus.inez, trivirgatus.falconeri> +>y : caniventer, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 5, 220)) +>this : caniventer, Symbol(caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : minutus.inez, trivirgatus.falconeri>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 5, 112)) nayaur() : gabriellae.amicus { var x : gabriellae.amicus; () => { var y = this; }; return x; } ->nayaur : () => gabriellae.amicus ->gabriellae : unknown ->amicus : gabriellae.amicus ->x : gabriellae.amicus ->gabriellae : unknown ->amicus : gabriellae.amicus +>nayaur : () => gabriellae.amicus, Symbol(nayaur, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 5, 245)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : gabriellae.amicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 6, 38)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) >() => { var y = this; } : () => void ->y : caniventer ->this : caniventer ->x : gabriellae.amicus +>y : caniventer, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 6, 73)) +>this : caniventer, Symbol(caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : gabriellae.amicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 6, 38)) } export class veraecrucis extends trivirgatus.mixtus { ->veraecrucis : veraecrucis ->T0 : T0 ->T1 : T1 ->trivirgatus : typeof trivirgatus ->mixtus : trivirgatus.mixtus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->punicus : lutreolus.punicus +>veraecrucis : veraecrucis, Symbol(veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 8, 27)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 8, 30)) +>trivirgatus.mixtus : any, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>trivirgatus : typeof trivirgatus, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) naso() : panamensis.setulosus> { var x : panamensis.setulosus>; () => { var y = this; }; return x; } ->naso : () => panamensis.setulosus> ->panamensis : unknown ->setulosus : panamensis.setulosus ->lutreolus : unknown ->punicus : lutreolus.punicus ->howi : unknown ->coludo : howi.coludo ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : panamensis.setulosus> ->panamensis : unknown ->setulosus : panamensis.setulosus ->lutreolus : unknown ->punicus : lutreolus.punicus ->howi : unknown ->coludo : howi.coludo ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>naso : () => panamensis.setulosus>, Symbol(naso, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 8, 101)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : panamensis.setulosus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 9, 115)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : veraecrucis ->this : veraecrucis ->x : panamensis.setulosus> +>y : veraecrucis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 9, 229)) +>this : veraecrucis, Symbol(veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>x : panamensis.setulosus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 9, 115)) vancouverensis() : imperfecta.ciliolabrum { var x : imperfecta.ciliolabrum; () => { var y = this; }; return x; } ->vancouverensis : () => imperfecta.ciliolabrum ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->argurus : unknown ->oreas : argurus.oreas ->argurus : unknown ->peninsulae : argurus.peninsulae ->x : imperfecta.ciliolabrum ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->argurus : unknown ->oreas : argurus.oreas ->argurus : unknown ->peninsulae : argurus.peninsulae +>vancouverensis : () => imperfecta.ciliolabrum, Symbol(vancouverensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 9, 254)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : imperfecta.ciliolabrum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 10, 86)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) >() => { var y = this; } : () => void ->y : veraecrucis ->this : veraecrucis ->x : imperfecta.ciliolabrum +>y : veraecrucis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 10, 161)) +>this : veraecrucis, Symbol(veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>x : imperfecta.ciliolabrum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 10, 86)) africana() : argurus.gilbertii, sagitta.cinereus> { var x : argurus.gilbertii, sagitta.cinereus>; () => { var y = this; }; return x; } ->africana : () => argurus.gilbertii, sagitta.cinereus> ->argurus : unknown ->gilbertii : argurus.gilbertii ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->lepturus : lavali.lepturus ->argurus : unknown ->oreas : argurus.oreas ->sagitta : unknown ->cinereus : sagitta.cinereus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->argurus : unknown ->oreas : argurus.oreas ->x : argurus.gilbertii, sagitta.cinereus> ->argurus : unknown ->gilbertii : argurus.gilbertii ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->lepturus : lavali.lepturus ->argurus : unknown ->oreas : argurus.oreas ->sagitta : unknown ->cinereus : sagitta.cinereus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->argurus : unknown ->oreas : argurus.oreas +>africana : () => argurus.gilbertii, sagitta.cinereus>, Symbol(africana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 10, 186)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>gilbertii : argurus.gilbertii, Symbol(argurus.gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : argurus.gilbertii, sagitta.cinereus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 11, 147)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>gilbertii : argurus.gilbertii, Symbol(argurus.gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : veraecrucis ->this : veraecrucis ->x : argurus.gilbertii, sagitta.cinereus> +>y : veraecrucis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 11, 289)) +>this : veraecrucis, Symbol(veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>x : argurus.gilbertii, sagitta.cinereus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 11, 147)) palliolata() : Lanthanum.jugularis { var x : Lanthanum.jugularis; () => { var y = this; }; return x; } ->palliolata : () => Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>palliolata : () => Lanthanum.jugularis, Symbol(palliolata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 11, 314)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 12, 44)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : veraecrucis ->this : veraecrucis ->x : Lanthanum.jugularis +>y : veraecrucis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 12, 81)) +>this : veraecrucis, Symbol(veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 12, 44)) nivicola() : samarensis.pallidus { var x : samarensis.pallidus; () => { var y = this; }; return x; } ->nivicola : () => samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus +>nivicola : () => samarensis.pallidus, Symbol(nivicola, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 12, 106)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 13, 42)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : veraecrucis ->this : veraecrucis ->x : samarensis.pallidus +>y : veraecrucis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 13, 79)) +>this : veraecrucis, Symbol(veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 13, 42)) } } module julianae { ->julianae : typeof julianae +>julianae : typeof julianae, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) export class steerii { ->steerii : steerii +>steerii : steerii, Symbol(steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) } export class nudicaudus { ->nudicaudus : nudicaudus +>nudicaudus : nudicaudus, Symbol(nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) brandtii() : argurus.germaini { var x : argurus.germaini; () => { var y = this; }; return x; } ->brandtii : () => argurus.germaini ->argurus : unknown ->germaini : argurus.germaini ->x : argurus.germaini ->argurus : unknown ->germaini : argurus.germaini +>brandtii : () => argurus.germaini, Symbol(brandtii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 19, 27)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>x : argurus.germaini, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 20, 39)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) >() => { var y = this; } : () => void ->y : nudicaudus ->this : nudicaudus ->x : argurus.germaini +>y : nudicaudus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 20, 73)) +>this : nudicaudus, Symbol(nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : argurus.germaini, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 20, 39)) maxwellii() : ruatanica.Praseodymium { var x : ruatanica.Praseodymium; () => { var y = this; }; return x; } ->maxwellii : () => ruatanica.Praseodymium ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->dammermani : unknown ->melanops : dammermani.melanops ->x : ruatanica.Praseodymium ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->dammermani : unknown ->melanops : dammermani.melanops +>maxwellii : () => ruatanica.Praseodymium, Symbol(maxwellii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 20, 98)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : ruatanica.Praseodymium, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 21, 88)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : nudicaudus ->this : nudicaudus ->x : ruatanica.Praseodymium +>y : nudicaudus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 21, 170)) +>this : nudicaudus, Symbol(nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : ruatanica.Praseodymium, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 21, 88)) endoi() : panglima.abidi { var x : panglima.abidi; () => { var y = this; }; return x; } ->endoi : () => panglima.abidi ->panglima : unknown ->abidi : panglima.abidi ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : panglima.abidi ->panglima : unknown ->abidi : panglima.abidi ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->lavali : unknown ->wilsoni : lavali.wilsoni +>endoi : () => panglima.abidi, Symbol(endoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 21, 195)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : panglima.abidi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 22, 70)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : nudicaudus ->this : nudicaudus ->x : panglima.abidi +>y : nudicaudus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 22, 138)) +>this : nudicaudus, Symbol(nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : panglima.abidi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 22, 70)) venezuelae() : howi.marcanoi { var x : howi.marcanoi; () => { var y = this; }; return x; } ->venezuelae : () => howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi ->x : howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi +>venezuelae : () => howi.marcanoi, Symbol(venezuelae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 22, 163)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 23, 38)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : nudicaudus ->this : nudicaudus ->x : howi.marcanoi +>y : nudicaudus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 23, 69)) +>this : nudicaudus, Symbol(nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 23, 38)) zamicrus() : rionegrensis.caniventer { var x : rionegrensis.caniventer; () => { var y = this; }; return x; } ->zamicrus : () => rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>zamicrus : () => rionegrensis.caniventer, Symbol(zamicrus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 23, 94)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 24, 46)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : nudicaudus ->this : nudicaudus ->x : rionegrensis.caniventer +>y : nudicaudus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 24, 87)) +>this : nudicaudus, Symbol(nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 24, 46)) } export class galapagoensis { ->galapagoensis : galapagoensis +>galapagoensis : galapagoensis, Symbol(galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) isabellae() : panglima.amphibius { var x : panglima.amphibius; () => { var y = this; }; return x; } ->isabellae : () => panglima.amphibius ->panglima : unknown ->amphibius : panglima.amphibius ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->patas : unknown ->uralensis : patas.uralensis ->x : panglima.amphibius ->panglima : unknown ->amphibius : panglima.amphibius ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->patas : unknown ->uralensis : patas.uralensis +>isabellae : () => panglima.amphibius, Symbol(isabellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 26, 30)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : panglima.amphibius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 27, 84)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) >() => { var y = this; } : () => void ->y : galapagoensis ->this : galapagoensis ->x : panglima.amphibius +>y : galapagoensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 27, 162)) +>this : galapagoensis, Symbol(galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : panglima.amphibius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 27, 84)) rueppellii() : ruatanica.americanus { var x : ruatanica.americanus; () => { var y = this; }; return x; } ->rueppellii : () => ruatanica.americanus ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : ruatanica.americanus ->ruatanica : unknown ->americanus : ruatanica.americanus +>rueppellii : () => ruatanica.americanus, Symbol(rueppellii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 27, 187)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : ruatanica.americanus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 28, 45)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : galapagoensis ->this : galapagoensis ->x : ruatanica.americanus +>y : galapagoensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 28, 83)) +>this : galapagoensis, Symbol(galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : ruatanica.americanus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 28, 45)) peregusna() : dogramacii.kaiseri { var x : dogramacii.kaiseri; () => { var y = this; }; return x; } ->peregusna : () => dogramacii.kaiseri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : dogramacii.kaiseri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>peregusna : () => dogramacii.kaiseri, Symbol(peregusna, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 28, 108)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : dogramacii.kaiseri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 29, 42)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : galapagoensis ->this : galapagoensis ->x : dogramacii.kaiseri +>y : galapagoensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 29, 78)) +>this : galapagoensis, Symbol(galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : dogramacii.kaiseri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 29, 42)) gliroides() : howi.coludo { var x : howi.coludo; () => { var y = this; }; return x; } ->gliroides : () => howi.coludo ->howi : unknown ->coludo : howi.coludo ->howi : unknown ->marcanoi : howi.marcanoi ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : howi.coludo ->howi : unknown ->coludo : howi.coludo ->howi : unknown ->marcanoi : howi.marcanoi ->lavali : unknown ->wilsoni : lavali.wilsoni +>gliroides : () => howi.coludo, Symbol(gliroides, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 29, 103)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 30, 66)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : galapagoensis ->this : galapagoensis ->x : howi.coludo +>y : galapagoensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 30, 126)) +>this : galapagoensis, Symbol(galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 30, 66)) banakrisi() : macrorhinos.daphaenodon { var x : macrorhinos.daphaenodon; () => { var y = this; }; return x; } ->banakrisi : () => macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>banakrisi : () => macrorhinos.daphaenodon, Symbol(banakrisi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 30, 151)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 31, 47)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : galapagoensis ->this : galapagoensis ->x : macrorhinos.daphaenodon +>y : galapagoensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 31, 88)) +>this : galapagoensis, Symbol(galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 31, 47)) rozendaali() : lutreolus.foina { var x : lutreolus.foina; () => { var y = this; }; return x; } ->rozendaali : () => lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina ->x : lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina +>rozendaali : () => lutreolus.foina, Symbol(rozendaali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 31, 113)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : lutreolus.foina, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 32, 40)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : galapagoensis ->this : galapagoensis ->x : lutreolus.foina +>y : galapagoensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 32, 73)) +>this : galapagoensis, Symbol(galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : lutreolus.foina, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 32, 40)) stuhlmanni() : panamensis.linulus { var x : panamensis.linulus; () => { var y = this; }; return x; } ->stuhlmanni : () => panamensis.linulus ->panamensis : unknown ->linulus : panamensis.linulus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->x : panamensis.linulus ->panamensis : unknown ->linulus : panamensis.linulus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus +>stuhlmanni : () => panamensis.linulus, Symbol(stuhlmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 32, 98)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : panamensis.linulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 33, 87)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) >() => { var y = this; } : () => void ->y : galapagoensis ->this : galapagoensis ->x : panamensis.linulus +>y : galapagoensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 33, 167)) +>this : galapagoensis, Symbol(galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : panamensis.linulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 33, 87)) } export class albidens { ->albidens : albidens ->T0 : T0 ->T1 : T1 +>albidens : albidens, Symbol(albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 35, 24)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 35, 27)) mattheyi() : samarensis.fuscus> { var x : samarensis.fuscus>; () => { var y = this; }; return x; } ->mattheyi : () => samarensis.fuscus> ->samarensis : unknown ->fuscus : samarensis.fuscus ->lavali : unknown ->wilsoni : lavali.wilsoni ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : samarensis.fuscus> ->samarensis : unknown ->fuscus : samarensis.fuscus ->lavali : unknown ->wilsoni : lavali.wilsoni ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>mattheyi : () => samarensis.fuscus>, Symbol(mattheyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 35, 33)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : samarensis.fuscus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 36, 126)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : albidens ->this : albidens ->x : samarensis.fuscus> +>y : albidens, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 36, 247)) +>this : albidens, Symbol(albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>x : samarensis.fuscus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 36, 126)) Astatine() : steerii { var x : steerii; () => { var y = this; }; return x; } ->Astatine : () => steerii ->steerii : steerii ->x : steerii ->steerii : steerii +>Astatine : () => steerii, Symbol(Astatine, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 36, 272)) +>steerii : steerii, Symbol(steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 37, 30)) +>steerii : steerii, Symbol(steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : albidens ->this : albidens ->x : steerii +>y : albidens, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 37, 55)) +>this : albidens, Symbol(albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>x : steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 37, 30)) vincenti() : argurus.dauricus { var x : argurus.dauricus; () => { var y = this; }; return x; } ->vincenti : () => argurus.dauricus ->argurus : unknown ->dauricus : argurus.dauricus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->patas : unknown ->uralensis : patas.uralensis ->x : argurus.dauricus ->argurus : unknown ->dauricus : argurus.dauricus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->patas : unknown ->uralensis : patas.uralensis +>vincenti : () => argurus.dauricus, Symbol(vincenti, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 37, 80)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : argurus.dauricus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 38, 81)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) >() => { var y = this; } : () => void ->y : albidens ->this : albidens ->x : argurus.dauricus +>y : albidens, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 38, 157)) +>this : albidens, Symbol(albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>x : argurus.dauricus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 38, 81)) hirta() : Lanthanum.jugularis { var x : Lanthanum.jugularis; () => { var y = this; }; return x; } ->hirta : () => Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>hirta : () => Lanthanum.jugularis, Symbol(hirta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 38, 182)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 39, 39)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : albidens ->this : albidens ->x : Lanthanum.jugularis +>y : albidens, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 39, 76)) +>this : albidens, Symbol(albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 39, 39)) virginianus() : durangae { var x : durangae; () => { var y = this; }; return x; } ->virginianus : () => durangae ->durangae : durangae ->x : durangae ->durangae : durangae +>virginianus : () => durangae, Symbol(virginianus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 39, 101)) +>durangae : durangae, Symbol(durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : durangae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 40, 34)) +>durangae : durangae, Symbol(durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) >() => { var y = this; } : () => void ->y : albidens ->this : albidens ->x : durangae +>y : albidens, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 40, 60)) +>this : albidens, Symbol(albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>x : durangae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 40, 34)) macrophyllum() : howi.marcanoi { var x : howi.marcanoi; () => { var y = this; }; return x; } ->macrophyllum : () => howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi ->x : howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi +>macrophyllum : () => howi.marcanoi, Symbol(macrophyllum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 40, 85)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 41, 40)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : albidens ->this : albidens ->x : howi.marcanoi +>y : albidens, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 41, 71)) +>this : albidens, Symbol(albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 41, 40)) porcellus() : ruatanica.americanus { var x : ruatanica.americanus; () => { var y = this; }; return x; } ->porcellus : () => ruatanica.americanus ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : ruatanica.americanus ->ruatanica : unknown ->americanus : ruatanica.americanus +>porcellus : () => ruatanica.americanus, Symbol(porcellus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 41, 96)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : ruatanica.americanus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 42, 44)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : albidens ->this : albidens ->x : ruatanica.americanus +>y : albidens, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 42, 82)) +>this : albidens, Symbol(albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>x : ruatanica.americanus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 42, 44)) } export class oralis extends caurinus.psilurus { ->oralis : oralis ->T0 : T0 ->T1 : T1 ->caurinus : typeof caurinus ->psilurus : caurinus.psilurus +>oralis : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 44, 22)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 44, 25)) +>caurinus.psilurus : any, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>caurinus : typeof caurinus, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) cepapi() : caurinus.psilurus { var x : caurinus.psilurus; () => { var y = this; }; return x; } ->cepapi : () => caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus +>cepapi : () => caurinus.psilurus, Symbol(cepapi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 44, 57)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 45, 38)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : caurinus.psilurus +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 45, 73)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 45, 38)) porteri() : lavali.thaeleri { var x : lavali.thaeleri; () => { var y = this; }; return x; } ->porteri : () => lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri ->x : lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri +>porteri : () => lavali.thaeleri, Symbol(porteri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 45, 98)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 46, 37)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : lavali.thaeleri +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 46, 70)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 46, 37)) bindi() : caurinus.mahaganus> { var x : caurinus.mahaganus>; () => { var y = this; }; return x; } ->bindi : () => caurinus.mahaganus> ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->gabriellae : unknown ->amicus : gabriellae.amicus ->panglima : unknown ->amphibius : panglima.amphibius ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->patas : unknown ->uralensis : patas.uralensis ->x : caurinus.mahaganus> ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->gabriellae : unknown ->amicus : gabriellae.amicus ->panglima : unknown ->amphibius : panglima.amphibius ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->patas : unknown ->uralensis : patas.uralensis +>bindi : () => caurinus.mahaganus>, Symbol(bindi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 46, 95)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : caurinus.mahaganus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 47, 119)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : caurinus.mahaganus> +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 47, 236)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : caurinus.mahaganus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 47, 119)) puda() : sagitta.stolzmanni { var x : sagitta.stolzmanni; () => { var y = this; }; return x; } ->puda : () => sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>puda : () => sagitta.stolzmanni, Symbol(puda, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 47, 261)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 48, 37)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : sagitta.stolzmanni +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 48, 73)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 48, 37)) mindorensis() : trivirgatus.falconeri { var x : trivirgatus.falconeri; () => { var y = this; }; return x; } ->mindorensis : () => trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->x : trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri +>mindorensis : () => trivirgatus.falconeri, Symbol(mindorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 48, 98)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 49, 47)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : trivirgatus.falconeri +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 49, 86)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 49, 47)) ignitus() : petrophilus.rosalia, lavali.wilsoni> { var x : petrophilus.rosalia, lavali.wilsoni>; () => { var y = this; }; return x; } ->ignitus : () => petrophilus.rosalia, lavali.wilsoni> ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->panamensis : unknown ->setulosus : panamensis.setulosus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->steerii : steerii ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : petrophilus.rosalia, lavali.wilsoni> ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->panamensis : unknown ->setulosus : panamensis.setulosus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->steerii : steerii ->lavali : unknown ->wilsoni : lavali.wilsoni +>ignitus : () => petrophilus.rosalia, lavali.wilsoni>, Symbol(ignitus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 49, 111)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>steerii : steerii, Symbol(steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : petrophilus.rosalia, lavali.wilsoni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 50, 110)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>steerii : steerii, Symbol(steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : petrophilus.rosalia, lavali.wilsoni> +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 50, 216)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : petrophilus.rosalia, lavali.wilsoni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 50, 110)) rufus() : nudicaudus { var x : nudicaudus; () => { var y = this; }; return x; } ->rufus : () => nudicaudus ->nudicaudus : nudicaudus ->x : nudicaudus ->nudicaudus : nudicaudus +>rufus : () => nudicaudus, Symbol(rufus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 50, 241)) +>nudicaudus : nudicaudus, Symbol(nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : nudicaudus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 51, 30)) +>nudicaudus : nudicaudus, Symbol(nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : nudicaudus +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 51, 58)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : nudicaudus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 51, 30)) monax() : imperfecta.subspinosus { var x : imperfecta.subspinosus; () => { var y = this; }; return x; } ->monax : () => imperfecta.subspinosus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : imperfecta.subspinosus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>monax : () => imperfecta.subspinosus, Symbol(monax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 51, 83)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : imperfecta.subspinosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 52, 42)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : imperfecta.subspinosus +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 52, 82)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : imperfecta.subspinosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 52, 42)) unalascensis() : minutus.inez, gabriellae.echinatus>, dogramacii.aurata> { var x : minutus.inez, gabriellae.echinatus>, dogramacii.aurata>; () => { var y = this; }; return x; } ->unalascensis : () => minutus.inez, gabriellae.echinatus>, dogramacii.aurata> ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->dogramacii : unknown ->aurata : dogramacii.aurata ->x : minutus.inez, gabriellae.echinatus>, dogramacii.aurata> ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->dogramacii : unknown ->aurata : dogramacii.aurata +>unalascensis : () => minutus.inez, gabriellae.echinatus>, dogramacii.aurata>, Symbol(unalascensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 52, 107)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : minutus.inez, gabriellae.echinatus>, dogramacii.aurata>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 53, 160)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : minutus.inez, gabriellae.echinatus>, dogramacii.aurata> +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 53, 311)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : minutus.inez, gabriellae.echinatus>, dogramacii.aurata>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 53, 160)) wuchihensis() : howi.angulatus, petrophilus.minutilla> { var x : howi.angulatus, petrophilus.minutilla>; () => { var y = this; }; return x; } ->wuchihensis : () => howi.angulatus, petrophilus.minutilla> ->howi : unknown ->angulatus : howi.angulatus ->howi : unknown ->coludo : howi.coludo ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->minutus : unknown ->portoricensis : minutus.portoricensis ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->x : howi.angulatus, petrophilus.minutilla> ->howi : unknown ->angulatus : howi.angulatus ->howi : unknown ->coludo : howi.coludo ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->minutus : unknown ->portoricensis : minutus.portoricensis ->petrophilus : unknown ->minutilla : petrophilus.minutilla +>wuchihensis : () => howi.angulatus, petrophilus.minutilla>, Symbol(wuchihensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 53, 336)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>x : howi.angulatus, petrophilus.minutilla>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 54, 123)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : howi.angulatus, petrophilus.minutilla> +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 54, 238)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : howi.angulatus, petrophilus.minutilla>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 54, 123)) leucippe() : lavali.otion { var x : lavali.otion; () => { var y = this; }; return x; } ->leucippe : () => lavali.otion ->lavali : unknown ->otion : lavali.otion ->x : lavali.otion ->lavali : unknown ->otion : lavali.otion +>leucippe : () => lavali.otion, Symbol(leucippe, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 54, 263)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : lavali.otion, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 55, 35)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : lavali.otion +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 55, 65)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : lavali.otion, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 55, 35)) ordii() : daubentonii.arboreus { var x : daubentonii.arboreus; () => { var y = this; }; return x; } ->ordii : () => daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->argurus : unknown ->germaini : argurus.germaini ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->argurus : unknown ->germaini : argurus.germaini ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>ordii : () => daubentonii.arboreus, Symbol(ordii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 55, 90)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 56, 78)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : daubentonii.arboreus +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 56, 154)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 56, 78)) eisentrauti() : rendalli.zuluensis { var x : rendalli.zuluensis; () => { var y = this; }; return x; } ->eisentrauti : () => rendalli.zuluensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->x : rendalli.zuluensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis +>eisentrauti : () => rendalli.zuluensis, Symbol(eisentrauti, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 56, 179)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : rendalli.zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 57, 44)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) >() => { var y = this; } : () => void ->y : oralis ->this : oralis ->x : rendalli.zuluensis +>y : oralis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 57, 80)) +>this : oralis, Symbol(oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>x : rendalli.zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 57, 44)) } export class sumatrana extends Lanthanum.jugularis { ->sumatrana : sumatrana ->Lanthanum : typeof Lanthanum ->jugularis : Lanthanum.jugularis +>sumatrana : sumatrana, Symbol(sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>Lanthanum.jugularis : any, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>Lanthanum : typeof Lanthanum, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) wolffsohni() : Lanthanum.suillus { var x : Lanthanum.suillus; () => { var y = this; }; return x; } ->wolffsohni : () => Lanthanum.suillus ->Lanthanum : unknown ->suillus : Lanthanum.suillus ->dammermani : unknown ->melanops : dammermani.melanops ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : Lanthanum.suillus ->Lanthanum : unknown ->suillus : Lanthanum.suillus ->dammermani : unknown ->melanops : dammermani.melanops ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>wolffsohni : () => Lanthanum.suillus, Symbol(wolffsohni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 59, 54)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>suillus : Lanthanum.suillus, Symbol(Lanthanum.suillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 107, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : Lanthanum.suillus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 60, 87)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>suillus : Lanthanum.suillus, Symbol(Lanthanum.suillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 107, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : sumatrana ->this : sumatrana ->x : Lanthanum.suillus +>y : sumatrana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 60, 167)) +>this : sumatrana, Symbol(sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : Lanthanum.suillus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 60, 87)) geata() : ruatanica.hector { var x : ruatanica.hector; () => { var y = this; }; return x; } ->geata : () => ruatanica.hector ->ruatanica : unknown ->hector : ruatanica.hector ->sumatrana : sumatrana ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->x : ruatanica.hector ->ruatanica : unknown ->hector : ruatanica.hector ->sumatrana : sumatrana ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi +>geata : () => ruatanica.hector, Symbol(geata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 60, 192)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>sumatrana : sumatrana, Symbol(sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : ruatanica.hector, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 61, 69)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>sumatrana : sumatrana, Symbol(sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) >() => { var y = this; } : () => void ->y : sumatrana ->this : sumatrana ->x : ruatanica.hector +>y : sumatrana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 61, 136)) +>this : sumatrana, Symbol(sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : ruatanica.hector, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 61, 69)) awashensis() : petrophilus.minutilla { var x : petrophilus.minutilla; () => { var y = this; }; return x; } ->awashensis : () => petrophilus.minutilla ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->x : petrophilus.minutilla ->petrophilus : unknown ->minutilla : petrophilus.minutilla +>awashensis : () => petrophilus.minutilla, Symbol(awashensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 61, 161)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>x : petrophilus.minutilla, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 62, 46)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) >() => { var y = this; } : () => void ->y : sumatrana ->this : sumatrana ->x : petrophilus.minutilla +>y : sumatrana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 62, 85)) +>this : sumatrana, Symbol(sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : petrophilus.minutilla, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 62, 46)) sturdeei() : lutreolus.cor { var x : lutreolus.cor; () => { var y = this; }; return x; } ->sturdeei : () => lutreolus.cor ->lutreolus : unknown ->cor : lutreolus.cor ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->galapagoensis : galapagoensis ->x : lutreolus.cor ->lutreolus : unknown ->cor : lutreolus.cor ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->galapagoensis : galapagoensis +>sturdeei : () => lutreolus.cor, Symbol(sturdeei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 62, 110)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>cor : lutreolus.cor, Symbol(lutreolus.cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>galapagoensis : galapagoensis, Symbol(galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : lutreolus.cor, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 63, 72)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>cor : lutreolus.cor, Symbol(lutreolus.cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>galapagoensis : galapagoensis, Symbol(galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) >() => { var y = this; } : () => void ->y : sumatrana ->this : sumatrana ->x : lutreolus.cor +>y : sumatrana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 63, 139)) +>this : sumatrana, Symbol(sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : lutreolus.cor, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 63, 72)) pachyurus() : howi.angulatus> { var x : howi.angulatus>; () => { var y = this; }; return x; } ->pachyurus : () => howi.angulatus> ->howi : unknown ->angulatus : howi.angulatus ->dogramacii : unknown ->aurata : dogramacii.aurata ->gerbillus : gerbillus ->lavali : unknown ->thaeleri : lavali.thaeleri ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : howi.angulatus> ->howi : unknown ->angulatus : howi.angulatus ->dogramacii : unknown ->aurata : dogramacii.aurata ->gerbillus : gerbillus ->lavali : unknown ->thaeleri : lavali.thaeleri ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>pachyurus : () => howi.angulatus>, Symbol(pachyurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 63, 164)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>gerbillus : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : howi.angulatus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 64, 109)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>gerbillus : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : sumatrana ->this : sumatrana ->x : howi.angulatus> +>y : sumatrana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 64, 212)) +>this : sumatrana, Symbol(sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : howi.angulatus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 64, 109)) lyelli() : provocax.melanoleuca { var x : provocax.melanoleuca; () => { var y = this; }; return x; } ->lyelli : () => provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>lyelli : () => provocax.melanoleuca, Symbol(lyelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 64, 237)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : provocax.melanoleuca, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 65, 41)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : sumatrana ->this : sumatrana ->x : provocax.melanoleuca +>y : sumatrana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 65, 79)) +>this : sumatrana, Symbol(sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : provocax.melanoleuca, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 65, 41)) neohibernicus() : dammermani.siberu { var x : dammermani.siberu; () => { var y = this; }; return x; } ->neohibernicus : () => dammermani.siberu ->dammermani : unknown ->siberu : dammermani.siberu ->lutreolus : unknown ->foina : lutreolus.foina ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : dammermani.siberu ->dammermani : unknown ->siberu : dammermani.siberu ->lutreolus : unknown ->foina : lutreolus.foina ->samarensis : unknown ->pallidus : samarensis.pallidus +>neohibernicus : () => dammermani.siberu, Symbol(neohibernicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 65, 104)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : dammermani.siberu, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 66, 83)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : sumatrana ->this : sumatrana ->x : dammermani.siberu +>y : sumatrana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 66, 156)) +>this : sumatrana, Symbol(sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : dammermani.siberu, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 66, 83)) } export class gerbillus { ->gerbillus : gerbillus ->T0 : T0 ->T1 : T1 +>gerbillus : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 68, 25)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 68, 28)) pundti() : sagitta.sicarius { var x : sagitta.sicarius; () => { var y = this; }; return x; } ->pundti : () => sagitta.sicarius ->sagitta : unknown ->sicarius : sagitta.sicarius ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : sagitta.sicarius ->sagitta : unknown ->sicarius : sagitta.sicarius ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->caurinus : unknown ->psilurus : caurinus.psilurus +>pundti : () => sagitta.sicarius, Symbol(pundti, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 68, 34)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>sicarius : sagitta.sicarius, Symbol(sagitta.sicarius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 676, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : sagitta.sicarius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 69, 78)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>sicarius : sagitta.sicarius, Symbol(sagitta.sicarius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 676, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : gerbillus ->this : gerbillus ->x : sagitta.sicarius +>y : gerbillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 69, 153)) +>this : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>x : sagitta.sicarius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 69, 78)) tristrami() : petrophilus.minutilla { var x : petrophilus.minutilla; () => { var y = this; }; return x; } ->tristrami : () => petrophilus.minutilla ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->x : petrophilus.minutilla ->petrophilus : unknown ->minutilla : petrophilus.minutilla +>tristrami : () => petrophilus.minutilla, Symbol(tristrami, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 69, 178)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>x : petrophilus.minutilla, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 70, 45)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) >() => { var y = this; } : () => void ->y : gerbillus ->this : gerbillus ->x : petrophilus.minutilla +>y : gerbillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 70, 84)) +>this : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>x : petrophilus.minutilla, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 70, 45)) swarthi() : lutreolus.foina { var x : lutreolus.foina; () => { var y = this; }; return x; } ->swarthi : () => lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina ->x : lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina +>swarthi : () => lutreolus.foina, Symbol(swarthi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 70, 109)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : lutreolus.foina, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 71, 37)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : gerbillus ->this : gerbillus ->x : lutreolus.foina +>y : gerbillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 71, 70)) +>this : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>x : lutreolus.foina, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 71, 37)) horsfieldii() : trivirgatus.falconeri { var x : trivirgatus.falconeri; () => { var y = this; }; return x; } ->horsfieldii : () => trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->x : trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri +>horsfieldii : () => trivirgatus.falconeri, Symbol(horsfieldii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 71, 95)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 72, 47)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) >() => { var y = this; } : () => void ->y : gerbillus ->this : gerbillus ->x : trivirgatus.falconeri +>y : gerbillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 72, 86)) +>this : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 72, 47)) diazi() : imperfecta.lasiurus { var x : imperfecta.lasiurus; () => { var y = this; }; return x; } ->diazi : () => imperfecta.lasiurus ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->lutreolus : unknown ->foina : lutreolus.foina ->dammermani : unknown ->melanops : dammermani.melanops ->x : imperfecta.lasiurus ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->lutreolus : unknown ->foina : lutreolus.foina ->dammermani : unknown ->melanops : dammermani.melanops +>diazi : () => imperfecta.lasiurus, Symbol(diazi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 72, 111)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : imperfecta.lasiurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 73, 77)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : gerbillus ->this : gerbillus ->x : imperfecta.lasiurus +>y : gerbillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 73, 152)) +>this : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>x : imperfecta.lasiurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 73, 77)) rennelli() : argurus.luctuosa { var x : argurus.luctuosa; () => { var y = this; }; return x; } ->rennelli : () => argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa +>rennelli : () => argurus.luctuosa, Symbol(rennelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 73, 177)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 74, 39)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : gerbillus ->this : gerbillus ->x : argurus.luctuosa +>y : gerbillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 74, 73)) +>this : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 74, 39)) maulinus() : lavali.lepturus { var x : lavali.lepturus; () => { var y = this; }; return x; } ->maulinus : () => lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus ->x : lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus +>maulinus : () => lavali.lepturus, Symbol(maulinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 74, 98)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 75, 38)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : gerbillus ->this : gerbillus ->x : lavali.lepturus +>y : gerbillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 75, 71)) +>this : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 75, 38)) muscina() : daubentonii.arboreus { var x : daubentonii.arboreus; () => { var y = this; }; return x; } ->muscina : () => daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->argurus : unknown ->peninsulae : argurus.peninsulae ->x : daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->argurus : unknown ->peninsulae : argurus.peninsulae +>muscina : () => daubentonii.arboreus, Symbol(muscina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 75, 96)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 76, 85)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) >() => { var y = this; } : () => void ->y : gerbillus ->this : gerbillus ->x : daubentonii.arboreus +>y : gerbillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 76, 166)) +>this : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 76, 85)) pelengensis() : sagitta.leptoceros { var x : sagitta.leptoceros; () => { var y = this; }; return x; } ->pelengensis : () => sagitta.leptoceros ->sagitta : unknown ->leptoceros : sagitta.leptoceros ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : sagitta.leptoceros ->sagitta : unknown ->leptoceros : sagitta.leptoceros ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>pelengensis : () => sagitta.leptoceros, Symbol(pelengensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 76, 191)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>leptoceros : sagitta.leptoceros, Symbol(sagitta.leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : sagitta.leptoceros, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 77, 85)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>leptoceros : sagitta.leptoceros, Symbol(sagitta.leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : gerbillus ->this : gerbillus ->x : sagitta.leptoceros +>y : gerbillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 77, 162)) +>this : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>x : sagitta.leptoceros, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 77, 85)) abramus() : lavali.thaeleri { var x : lavali.thaeleri; () => { var y = this; }; return x; } ->abramus : () => lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri ->x : lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri +>abramus : () => lavali.thaeleri, Symbol(abramus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 77, 187)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 78, 37)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) >() => { var y = this; } : () => void ->y : gerbillus ->this : gerbillus ->x : lavali.thaeleri +>y : gerbillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 78, 70)) +>this : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 78, 37)) reevesi() : provocax.melanoleuca { var x : provocax.melanoleuca; () => { var y = this; }; return x; } ->reevesi : () => provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>reevesi : () => provocax.melanoleuca, Symbol(reevesi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 78, 95)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : provocax.melanoleuca, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 79, 42)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : gerbillus ->this : gerbillus ->x : provocax.melanoleuca +>y : gerbillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 79, 80)) +>this : gerbillus, Symbol(gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>x : provocax.melanoleuca, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 79, 42)) } export class acariensis { ->acariensis : acariensis +>acariensis : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) levicula() : lavali.lepturus { var x : lavali.lepturus; () => { var y = this; }; return x; } ->levicula : () => lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus ->x : lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus +>levicula : () => lavali.lepturus, Symbol(levicula, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 81, 27)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 82, 38)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : acariensis ->this : acariensis ->x : lavali.lepturus +>y : acariensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 82, 71)) +>this : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 82, 38)) minous() : argurus.dauricus { var x : argurus.dauricus; () => { var y = this; }; return x; } ->minous : () => argurus.dauricus ->argurus : unknown ->dauricus : argurus.dauricus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->otion : lavali.otion ->x : argurus.dauricus ->argurus : unknown ->dauricus : argurus.dauricus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->otion : lavali.otion +>minous : () => argurus.dauricus, Symbol(minous, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 82, 96)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : argurus.dauricus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 83, 75)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) >() => { var y = this; } : () => void ->y : acariensis ->this : acariensis ->x : argurus.dauricus +>y : acariensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 83, 147)) +>this : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : argurus.dauricus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 83, 75)) cinereiventer() : panamensis.setulosus { var x : panamensis.setulosus; () => { var y = this; }; return x; } ->cinereiventer : () => panamensis.setulosus ->panamensis : unknown ->setulosus : panamensis.setulosus ->sagitta : unknown ->walkeri : sagitta.walkeri ->lavali : unknown ->otion : lavali.otion ->x : panamensis.setulosus ->panamensis : unknown ->setulosus : panamensis.setulosus ->sagitta : unknown ->walkeri : sagitta.walkeri ->lavali : unknown ->otion : lavali.otion +>cinereiventer : () => panamensis.setulosus, Symbol(cinereiventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 83, 172)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : panamensis.setulosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 84, 79)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) >() => { var y = this; } : () => void ->y : acariensis ->this : acariensis ->x : panamensis.setulosus +>y : acariensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 84, 148)) +>this : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : panamensis.setulosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 84, 79)) longicaudatus() : macrorhinos.marmosurus> { var x : macrorhinos.marmosurus>; () => { var y = this; }; return x; } ->longicaudatus : () => macrorhinos.marmosurus> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->dammermani : unknown ->melanops : dammermani.melanops ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->nudicaudus : nudicaudus ->lavali : unknown ->otion : lavali.otion ->x : macrorhinos.marmosurus> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->dammermani : unknown ->melanops : dammermani.melanops ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->nudicaudus : nudicaudus ->lavali : unknown ->otion : lavali.otion +>longicaudatus : () => macrorhinos.marmosurus>, Symbol(longicaudatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 84, 173)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>nudicaudus : nudicaudus, Symbol(nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : macrorhinos.marmosurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 85, 117)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>nudicaudus : nudicaudus, Symbol(nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) >() => { var y = this; } : () => void ->y : acariensis ->this : acariensis ->x : macrorhinos.marmosurus> +>y : acariensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 85, 224)) +>this : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : macrorhinos.marmosurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 85, 117)) baeodon() : argurus.netscheri, argurus.luctuosa> { var x : argurus.netscheri, argurus.luctuosa>; () => { var y = this; }; return x; } ->baeodon : () => argurus.netscheri, argurus.luctuosa> ->argurus : unknown ->netscheri : argurus.netscheri ->dammermani : unknown ->siberu : dammermani.siberu ->lutreolus : unknown ->foina : lutreolus.foina ->samarensis : unknown ->pallidus : samarensis.pallidus ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : argurus.netscheri, argurus.luctuosa> ->argurus : unknown ->netscheri : argurus.netscheri ->dammermani : unknown ->siberu : dammermani.siberu ->lutreolus : unknown ->foina : lutreolus.foina ->samarensis : unknown ->pallidus : samarensis.pallidus ->argurus : unknown ->luctuosa : argurus.luctuosa +>baeodon : () => argurus.netscheri, argurus.luctuosa>, Symbol(baeodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 85, 249)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : argurus.netscheri, argurus.luctuosa>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 86, 114)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : acariensis ->this : acariensis ->x : argurus.netscheri, argurus.luctuosa> +>y : acariensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 86, 224)) +>this : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : argurus.netscheri, argurus.luctuosa>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 86, 114)) soricoides() : argurus.luctuosa { var x : argurus.luctuosa; () => { var y = this; }; return x; } ->soricoides : () => argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa +>soricoides : () => argurus.luctuosa, Symbol(soricoides, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 86, 249)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 87, 41)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : acariensis ->this : acariensis ->x : argurus.luctuosa +>y : acariensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 87, 75)) +>this : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 87, 41)) datae() : daubentonii.arboreus> { var x : daubentonii.arboreus>; () => { var y = this; }; return x; } ->datae : () => daubentonii.arboreus> ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->panglima : unknown ->amphibius : panglima.amphibius ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->patas : unknown ->uralensis : patas.uralensis ->x : daubentonii.arboreus> ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->panglima : unknown ->amphibius : panglima.amphibius ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->patas : unknown ->uralensis : patas.uralensis +>datae : () => daubentonii.arboreus>, Symbol(datae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 87, 100)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : daubentonii.arboreus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 88, 124)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) >() => { var y = this; } : () => void ->y : acariensis ->this : acariensis ->x : daubentonii.arboreus> +>y : acariensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 88, 246)) +>this : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : daubentonii.arboreus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 88, 124)) spixii() : imperfecta.subspinosus { var x : imperfecta.subspinosus; () => { var y = this; }; return x; } ->spixii : () => imperfecta.subspinosus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : imperfecta.subspinosus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>spixii : () => imperfecta.subspinosus, Symbol(spixii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 88, 271)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : imperfecta.subspinosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 89, 43)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : acariensis ->this : acariensis ->x : imperfecta.subspinosus +>y : acariensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 89, 83)) +>this : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : imperfecta.subspinosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 89, 43)) anakuma() : lavali.wilsoni { var x : lavali.wilsoni; () => { var y = this; }; return x; } ->anakuma : () => lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni +>anakuma : () => lavali.wilsoni, Symbol(anakuma, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 89, 108)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 90, 36)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : acariensis ->this : acariensis ->x : lavali.wilsoni +>y : acariensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 90, 68)) +>this : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 90, 36)) kihaulei() : panglima.amphibius { var x : panglima.amphibius; () => { var y = this; }; return x; } ->kihaulei : () => panglima.amphibius ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : panglima.amphibius ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>kihaulei : () => panglima.amphibius, Symbol(kihaulei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 90, 93)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : panglima.amphibius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 91, 89)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : acariensis ->this : acariensis ->x : panglima.amphibius +>y : acariensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 91, 173)) +>this : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : panglima.amphibius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 91, 89)) gymnura() : quasiater.carolinensis { var x : quasiater.carolinensis; () => { var y = this; }; return x; } ->gymnura : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>gymnura : () => quasiater.carolinensis, Symbol(gymnura, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 91, 198)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 92, 44)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : acariensis ->this : acariensis ->x : quasiater.carolinensis +>y : acariensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 92, 84)) +>this : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 92, 44)) olchonensis() : rendalli.crenulata { var x : rendalli.crenulata; () => { var y = this; }; return x; } ->olchonensis : () => rendalli.crenulata ->rendalli : unknown ->crenulata : rendalli.crenulata ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : rendalli.crenulata ->rendalli : unknown ->crenulata : rendalli.crenulata ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>olchonensis : () => rendalli.crenulata, Symbol(olchonensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 92, 109)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : rendalli.crenulata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 93, 89)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : acariensis ->this : acariensis ->x : rendalli.crenulata +>y : acariensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 93, 170)) +>this : acariensis, Symbol(acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : rendalli.crenulata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 93, 89)) } export class durangae extends dogramacii.aurata { ->durangae : durangae ->dogramacii : typeof dogramacii ->aurata : dogramacii.aurata +>durangae : durangae, Symbol(durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>dogramacii.aurata : any, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>dogramacii : typeof dogramacii, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) Californium() : panamensis.setulosus { var x : panamensis.setulosus; () => { var y = this; }; return x; } ->Californium : () => panamensis.setulosus ->panamensis : unknown ->setulosus : panamensis.setulosus ->lutreolus : unknown ->punicus : lutreolus.punicus ->dammermani : unknown ->melanops : dammermani.melanops ->x : panamensis.setulosus ->panamensis : unknown ->setulosus : panamensis.setulosus ->lutreolus : unknown ->punicus : lutreolus.punicus ->dammermani : unknown ->melanops : dammermani.melanops +>Californium : () => panamensis.setulosus, Symbol(Californium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 95, 51)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : panamensis.setulosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 96, 86)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : durangae ->this : durangae ->x : panamensis.setulosus +>y : durangae, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 96, 164)) +>this : durangae, Symbol(durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : panamensis.setulosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 96, 86)) Flerovium() : howi.angulatus { var x : howi.angulatus; () => { var y = this; }; return x; } ->Flerovium : () => howi.angulatus ->howi : unknown ->angulatus : howi.angulatus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : howi.angulatus ->howi : unknown ->angulatus : howi.angulatus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>Flerovium : () => howi.angulatus, Symbol(Flerovium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 96, 189)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : howi.angulatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 97, 83)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : durangae ->this : durangae ->x : howi.angulatus +>y : durangae, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 97, 160)) +>this : durangae, Symbol(durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : howi.angulatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 97, 83)) phrudus() : sagitta.stolzmanni { var x : sagitta.stolzmanni; () => { var y = this; }; return x; } ->phrudus : () => sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>phrudus : () => sagitta.stolzmanni, Symbol(phrudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 97, 185)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 98, 40)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : durangae ->this : durangae ->x : sagitta.stolzmanni +>y : durangae, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 98, 76)) +>this : durangae, Symbol(durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 98, 40)) } } module ruatanica { ->ruatanica : typeof ruatanica +>ruatanica : typeof ruatanica, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) export class hector { ->hector : hector ->T0 : T0 ->T1 : T1 +>hector : hector, Symbol(hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 102, 22)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 102, 25)) humulis() : julianae.steerii { var x : julianae.steerii; () => { var y = this; }; return x; } ->humulis : () => julianae.steerii ->julianae : unknown ->steerii : julianae.steerii ->x : julianae.steerii ->julianae : unknown ->steerii : julianae.steerii +>humulis : () => julianae.steerii, Symbol(humulis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 102, 31)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : julianae.steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 103, 38)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : hector ->this : hector ->x : julianae.steerii +>y : hector, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 103, 72)) +>this : hector, Symbol(hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>x : julianae.steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 103, 38)) eurycerus() : panamensis.linulus, lavali.wilsoni> { var x : panamensis.linulus, lavali.wilsoni>; () => { var y = this; }; return x; } ->eurycerus : () => panamensis.linulus, lavali.wilsoni> ->panamensis : unknown ->linulus : panamensis.linulus ->ruatanica : unknown ->Praseodymium : Praseodymium ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->dammermani : unknown ->melanops : dammermani.melanops ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : panamensis.linulus, lavali.wilsoni> ->panamensis : unknown ->linulus : panamensis.linulus ->ruatanica : unknown ->Praseodymium : Praseodymium ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->dammermani : unknown ->melanops : dammermani.melanops ->lavali : unknown ->wilsoni : lavali.wilsoni +>eurycerus : () => panamensis.linulus, lavali.wilsoni>, Symbol(eurycerus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 103, 97)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : panamensis.linulus, lavali.wilsoni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 104, 124)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : hector ->this : hector ->x : panamensis.linulus, lavali.wilsoni> +>y : hector, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 104, 242)) +>this : hector, Symbol(hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>x : panamensis.linulus, lavali.wilsoni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 104, 124)) } } module Lanthanum { ->Lanthanum : typeof Lanthanum +>Lanthanum : typeof Lanthanum, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) export class suillus { ->suillus : suillus ->T0 : T0 ->T1 : T1 +>suillus : suillus, Symbol(suillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 107, 18)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 108, 23)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 108, 26)) spilosoma() : quasiater.carolinensis { var x : quasiater.carolinensis; () => { var y = this; }; return x; } ->spilosoma : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>spilosoma : () => quasiater.carolinensis, Symbol(spilosoma, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 108, 32)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 109, 46)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : suillus ->this : suillus ->x : quasiater.carolinensis +>y : suillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 109, 86)) +>this : suillus, Symbol(suillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 107, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 109, 46)) tumbalensis() : caurinus.megaphyllus { var x : caurinus.megaphyllus; () => { var y = this; }; return x; } ->tumbalensis : () => caurinus.megaphyllus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->x : caurinus.megaphyllus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus +>tumbalensis : () => caurinus.megaphyllus, Symbol(tumbalensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 109, 111)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : caurinus.megaphyllus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 110, 46)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) >() => { var y = this; } : () => void ->y : suillus ->this : suillus ->x : caurinus.megaphyllus +>y : suillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 110, 84)) +>this : suillus, Symbol(suillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 107, 18)) +>x : caurinus.megaphyllus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 110, 46)) anatolicus() : julianae.steerii { var x : julianae.steerii; () => { var y = this; }; return x; } ->anatolicus : () => julianae.steerii ->julianae : unknown ->steerii : julianae.steerii ->x : julianae.steerii ->julianae : unknown ->steerii : julianae.steerii +>anatolicus : () => julianae.steerii, Symbol(anatolicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 110, 109)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : julianae.steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 111, 41)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : suillus ->this : suillus ->x : julianae.steerii +>y : suillus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 111, 75)) +>this : suillus, Symbol(suillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 107, 18)) +>x : julianae.steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 111, 41)) } export class nitidus extends argurus.gilbertii { ->nitidus : nitidus ->T0 : T0 ->T1 : T1 ->argurus : typeof argurus ->gilbertii : argurus.gilbertii ->lavali : unknown ->thaeleri : lavali.thaeleri ->lutreolus : unknown ->punicus : lutreolus.punicus +>nitidus : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 113, 23)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 113, 26)) +>argurus.gilbertii : any, Symbol(argurus.gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>gilbertii : argurus.gilbertii, Symbol(argurus.gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) granatensis() : quasiater.bobrinskoi { var x : quasiater.bobrinskoi; () => { var y = this; }; return x; } ->granatensis : () => quasiater.bobrinskoi ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->x : quasiater.bobrinskoi ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi +>granatensis : () => quasiater.bobrinskoi, Symbol(granatensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 113, 94)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : quasiater.bobrinskoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 114, 46)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) >() => { var y = this; } : () => void ->y : nitidus ->this : nitidus ->x : quasiater.bobrinskoi +>y : nitidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 114, 84)) +>this : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>x : quasiater.bobrinskoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 114, 46)) negligens() : minutus.inez { var x : minutus.inez; () => { var y = this; }; return x; } ->negligens : () => minutus.inez ->minutus : unknown ->inez : minutus.inez ->lavali : unknown ->wilsoni : lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : minutus.inez ->minutus : unknown ->inez : minutus.inez ->lavali : unknown ->wilsoni : lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni +>negligens : () => minutus.inez, Symbol(negligens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 114, 109)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 115, 68)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : nitidus ->this : nitidus ->x : minutus.inez +>y : nitidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 115, 130)) +>this : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 115, 68)) lewisi() : julianae.oralis { var x : julianae.oralis; () => { var y = this; }; return x; } ->lewisi : () => julianae.oralis ->julianae : unknown ->oralis : julianae.oralis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->argurus : unknown ->oreas : argurus.oreas ->x : julianae.oralis ->julianae : unknown ->oralis : julianae.oralis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->argurus : unknown ->oreas : argurus.oreas +>lewisi : () => julianae.oralis, Symbol(lewisi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 115, 155)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : julianae.oralis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 116, 73)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : nitidus ->this : nitidus ->x : julianae.oralis +>y : nitidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 116, 143)) +>this : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>x : julianae.oralis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 116, 73)) arge() : chrysaeolus.sarasinorum { var x : chrysaeolus.sarasinorum; () => { var y = this; }; return x; } ->arge : () => chrysaeolus.sarasinorum ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : chrysaeolus.sarasinorum ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>arge : () => chrysaeolus.sarasinorum, Symbol(arge, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 116, 168)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : chrysaeolus.sarasinorum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 117, 86)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : nitidus ->this : nitidus ->x : chrysaeolus.sarasinorum +>y : nitidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 117, 171)) +>this : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>x : chrysaeolus.sarasinorum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 117, 86)) dominicensis() : dammermani.melanops { var x : dammermani.melanops; () => { var y = this; }; return x; } ->dominicensis : () => dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops ->x : dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops +>dominicensis : () => dammermani.melanops, Symbol(dominicensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 117, 196)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 118, 46)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : nitidus ->this : nitidus ->x : dammermani.melanops +>y : nitidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 118, 83)) +>this : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 118, 46)) taurus() : macrorhinos.konganensis { var x : macrorhinos.konganensis; () => { var y = this; }; return x; } ->taurus : () => macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>taurus : () => macrorhinos.konganensis, Symbol(taurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 118, 108)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 119, 44)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : nitidus ->this : nitidus ->x : macrorhinos.konganensis +>y : nitidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 119, 85)) +>this : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 119, 44)) tonganus() : argurus.netscheri { var x : argurus.netscheri; () => { var y = this; }; return x; } ->tonganus : () => argurus.netscheri ->argurus : unknown ->netscheri : argurus.netscheri ->dogramacii : unknown ->aurata : dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata ->x : argurus.netscheri ->argurus : unknown ->netscheri : argurus.netscheri ->dogramacii : unknown ->aurata : dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata +>tonganus : () => argurus.netscheri, Symbol(tonganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 119, 110)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : argurus.netscheri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 120, 78)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : nitidus ->this : nitidus ->x : argurus.netscheri +>y : nitidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 120, 151)) +>this : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>x : argurus.netscheri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 120, 78)) silvatica() : rendalli.moojeni { var x : rendalli.moojeni; () => { var y = this; }; return x; } ->silvatica : () => rendalli.moojeni ->rendalli : unknown ->moojeni : rendalli.moojeni ->dogramacii : unknown ->aurata : dogramacii.aurata ->lavali : unknown ->otion : lavali.otion ->x : rendalli.moojeni ->rendalli : unknown ->moojeni : rendalli.moojeni ->dogramacii : unknown ->aurata : dogramacii.aurata ->lavali : unknown ->otion : lavali.otion +>silvatica : () => rendalli.moojeni, Symbol(silvatica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 120, 176)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : rendalli.moojeni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 121, 73)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) >() => { var y = this; } : () => void ->y : nitidus ->this : nitidus ->x : rendalli.moojeni +>y : nitidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 121, 140)) +>this : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>x : rendalli.moojeni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 121, 73)) midas() : lavali.xanthognathus { var x : lavali.xanthognathus; () => { var y = this; }; return x; } ->midas : () => lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>midas : () => lavali.xanthognathus, Symbol(midas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 121, 165)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 122, 40)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : nitidus ->this : nitidus ->x : lavali.xanthognathus +>y : nitidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 122, 78)) +>this : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 122, 40)) bicornis() : dogramacii.kaiseri { var x : dogramacii.kaiseri; () => { var y = this; }; return x; } ->bicornis : () => dogramacii.kaiseri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : dogramacii.kaiseri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>bicornis : () => dogramacii.kaiseri, Symbol(bicornis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 122, 103)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : dogramacii.kaiseri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 123, 41)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : nitidus ->this : nitidus ->x : dogramacii.kaiseri +>y : nitidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 123, 77)) +>this : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>x : dogramacii.kaiseri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 123, 41)) } export class megalonyx extends caurinus.johorensis { ->megalonyx : megalonyx ->caurinus : typeof caurinus ->johorensis : caurinus.johorensis ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->julianae : unknown ->steerii : julianae.steerii +>megalonyx : megalonyx, Symbol(megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>caurinus.johorensis : any, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>caurinus : typeof caurinus, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) phillipsii() : macrorhinos.konganensis { var x : macrorhinos.konganensis; () => { var y = this; }; return x; } ->phillipsii : () => macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>phillipsii : () => macrorhinos.konganensis, Symbol(phillipsii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 125, 94)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 126, 48)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : megalonyx ->this : megalonyx ->x : macrorhinos.konganensis +>y : megalonyx, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 126, 89)) +>this : megalonyx, Symbol(megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 126, 48)) melanogaster() : rionegrensis.veraecrucis { var x : rionegrensis.veraecrucis; () => { var y = this; }; return x; } ->melanogaster : () => rionegrensis.veraecrucis ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : rionegrensis.veraecrucis ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>melanogaster : () => rionegrensis.veraecrucis, Symbol(melanogaster, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 126, 114)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : rionegrensis.veraecrucis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 127, 98)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : megalonyx ->this : megalonyx ->x : rionegrensis.veraecrucis +>y : megalonyx, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 127, 187)) +>this : megalonyx, Symbol(megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : rionegrensis.veraecrucis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 127, 98)) elaphus() : nitidus { var x : nitidus; () => { var y = this; }; return x; } ->elaphus : () => nitidus ->nitidus : nitidus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : nitidus ->nitidus : nitidus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->julianae : unknown ->sumatrana : julianae.sumatrana +>elaphus : () => nitidus, Symbol(elaphus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 127, 212)) +>nitidus : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 128, 72)) +>nitidus : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : megalonyx ->this : megalonyx ->x : nitidus +>y : megalonyx, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 128, 140)) +>this : megalonyx, Symbol(megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 128, 72)) elater() : lavali.lepturus { var x : lavali.lepturus; () => { var y = this; }; return x; } ->elater : () => lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus ->x : lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus +>elater : () => lavali.lepturus, Symbol(elater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 128, 165)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 129, 36)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : megalonyx ->this : megalonyx ->x : lavali.lepturus +>y : megalonyx, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 129, 69)) +>this : megalonyx, Symbol(megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 129, 36)) ourebi() : provocax.melanoleuca { var x : provocax.melanoleuca; () => { var y = this; }; return x; } ->ourebi : () => provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>ourebi : () => provocax.melanoleuca, Symbol(ourebi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 129, 94)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : provocax.melanoleuca, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 130, 41)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : megalonyx ->this : megalonyx ->x : provocax.melanoleuca +>y : megalonyx, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 130, 79)) +>this : megalonyx, Symbol(megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : provocax.melanoleuca, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 130, 41)) caraccioli() : imperfecta.ciliolabrum> { var x : imperfecta.ciliolabrum>; () => { var y = this; }; return x; } ->caraccioli : () => imperfecta.ciliolabrum> ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->lavali : unknown ->thaeleri : lavali.thaeleri ->julianae : unknown ->acariensis : julianae.acariensis ->x : imperfecta.ciliolabrum> ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->lavali : unknown ->thaeleri : lavali.thaeleri ->julianae : unknown ->acariensis : julianae.acariensis +>caraccioli : () => imperfecta.ciliolabrum>, Symbol(caraccioli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 130, 104)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : imperfecta.ciliolabrum>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 131, 130)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) >() => { var y = this; } : () => void ->y : megalonyx ->this : megalonyx ->x : imperfecta.ciliolabrum> +>y : megalonyx, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 131, 253)) +>this : megalonyx, Symbol(megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : imperfecta.ciliolabrum>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 131, 130)) parva() : gabriellae.echinatus { var x : gabriellae.echinatus; () => { var y = this; }; return x; } ->parva : () => gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>parva : () => gabriellae.echinatus, Symbol(parva, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 131, 278)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 132, 40)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : megalonyx ->this : megalonyx ->x : gabriellae.echinatus +>y : megalonyx, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 132, 78)) +>this : megalonyx, Symbol(megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 132, 40)) albipes() : quasiater.wattsi { var x : quasiater.wattsi; () => { var y = this; }; return x; } ->albipes : () => quasiater.wattsi ->quasiater : unknown ->wattsi : quasiater.wattsi ->dammermani : unknown ->melanops : dammermani.melanops ->megalonyx : megalonyx ->x : quasiater.wattsi ->quasiater : unknown ->wattsi : quasiater.wattsi ->dammermani : unknown ->melanops : dammermani.melanops ->megalonyx : megalonyx +>albipes : () => quasiater.wattsi, Symbol(albipes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 132, 103)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>megalonyx : megalonyx, Symbol(megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : quasiater.wattsi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 133, 70)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>megalonyx : megalonyx, Symbol(megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) >() => { var y = this; } : () => void ->y : megalonyx ->this : megalonyx ->x : quasiater.wattsi +>y : megalonyx, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 133, 136)) +>this : megalonyx, Symbol(megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : quasiater.wattsi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 133, 70)) } export class jugularis { ->jugularis : jugularis +>jugularis : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) torrei() : petrophilus.sodyi { var x : petrophilus.sodyi; () => { var y = this; }; return x; } ->torrei : () => petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->argurus : unknown ->oreas : argurus.oreas ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->argurus : unknown ->oreas : argurus.oreas ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>torrei : () => petrophilus.sodyi, Symbol(torrei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 135, 26)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 136, 78)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : petrophilus.sodyi +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 136, 153)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 136, 78)) revoili() : lavali.wilsoni { var x : lavali.wilsoni; () => { var y = this; }; return x; } ->revoili : () => lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni +>revoili : () => lavali.wilsoni, Symbol(revoili, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 136, 178)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 137, 36)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : lavali.wilsoni +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 137, 68)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 137, 36)) macrobullatus() : macrorhinos.daphaenodon { var x : macrorhinos.daphaenodon; () => { var y = this; }; return x; } ->macrobullatus : () => macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>macrobullatus : () => macrorhinos.daphaenodon, Symbol(macrobullatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 137, 93)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 138, 51)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : macrorhinos.daphaenodon +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 138, 92)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 138, 51)) compactus() : sagitta.stolzmanni { var x : sagitta.stolzmanni; () => { var y = this; }; return x; } ->compactus : () => sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>compactus : () => sagitta.stolzmanni, Symbol(compactus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 138, 117)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 139, 42)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : sagitta.stolzmanni +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 139, 78)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 139, 42)) talpinus() : nitidus { var x : nitidus; () => { var y = this; }; return x; } ->talpinus : () => nitidus ->nitidus : nitidus ->ruatanica : unknown ->americanus : ruatanica.americanus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : nitidus ->nitidus : nitidus ->ruatanica : unknown ->americanus : ruatanica.americanus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>talpinus : () => nitidus, Symbol(talpinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 139, 103)) +>nitidus : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 140, 72)) +>nitidus : nitidus, Symbol(nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : nitidus +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 140, 139)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 140, 72)) stramineus() : gabriellae.amicus { var x : gabriellae.amicus; () => { var y = this; }; return x; } ->stramineus : () => gabriellae.amicus ->gabriellae : unknown ->amicus : gabriellae.amicus ->x : gabriellae.amicus ->gabriellae : unknown ->amicus : gabriellae.amicus +>stramineus : () => gabriellae.amicus, Symbol(stramineus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 140, 164)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : gabriellae.amicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 141, 42)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : gabriellae.amicus +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 141, 77)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : gabriellae.amicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 141, 42)) dartmouthi() : trivirgatus.mixtus { var x : trivirgatus.mixtus; () => { var y = this; }; return x; } ->dartmouthi : () => trivirgatus.mixtus ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : trivirgatus.mixtus ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->argurus : unknown ->luctuosa : argurus.luctuosa +>dartmouthi : () => trivirgatus.mixtus, Symbol(dartmouthi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 141, 102)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : trivirgatus.mixtus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 142, 86)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : trivirgatus.mixtus +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 142, 165)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : trivirgatus.mixtus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 142, 86)) ogilbyi() : argurus.dauricus { var x : argurus.dauricus; () => { var y = this; }; return x; } ->ogilbyi : () => argurus.dauricus ->argurus : unknown ->dauricus : argurus.dauricus ->argurus : unknown ->oreas : argurus.oreas ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : argurus.dauricus ->argurus : unknown ->dauricus : argurus.dauricus ->argurus : unknown ->oreas : argurus.oreas ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>ogilbyi : () => argurus.dauricus, Symbol(ogilbyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 142, 190)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : argurus.dauricus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 143, 77)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : argurus.dauricus +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 143, 150)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : argurus.dauricus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 143, 77)) incomtus() : daubentonii.nesiotes { var x : daubentonii.nesiotes; () => { var y = this; }; return x; } ->incomtus : () => daubentonii.nesiotes ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->julianae : unknown ->sumatrana : julianae.sumatrana ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : daubentonii.nesiotes ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->julianae : unknown ->sumatrana : julianae.sumatrana ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>incomtus : () => daubentonii.nesiotes, Symbol(incomtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 143, 175)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : daubentonii.nesiotes, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 144, 87)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : daubentonii.nesiotes +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 144, 169)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : daubentonii.nesiotes, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 144, 87)) surdaster() : ruatanica.Praseodymium { var x : ruatanica.Praseodymium; () => { var y = this; }; return x; } ->surdaster : () => ruatanica.Praseodymium ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->argurus : unknown ->germaini : argurus.germaini ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->x : ruatanica.Praseodymium ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->argurus : unknown ->germaini : argurus.germaini ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus +>surdaster : () => ruatanica.Praseodymium, Symbol(surdaster, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 144, 194)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : ruatanica.Praseodymium, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 145, 86)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : ruatanica.Praseodymium +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 145, 166)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : ruatanica.Praseodymium, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 145, 86)) melanorhinus() : samarensis.pelurus { var x : samarensis.pelurus; () => { var y = this; }; return x; } ->melanorhinus : () => samarensis.pelurus ->samarensis : unknown ->pelurus : samarensis.pelurus ->dammermani : unknown ->melanops : dammermani.melanops ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->x : samarensis.pelurus ->samarensis : unknown ->pelurus : samarensis.pelurus ->dammermani : unknown ->melanops : dammermani.melanops ->rendalli : unknown ->zuluensis : rendalli.zuluensis +>melanorhinus : () => samarensis.pelurus, Symbol(melanorhinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 145, 191)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : samarensis.pelurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 146, 86)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : samarensis.pelurus +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 146, 163)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : samarensis.pelurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 146, 86)) picticaudata() : minutus.inez, dogramacii.kaiseri> { var x : minutus.inez, dogramacii.kaiseri>; () => { var y = this; }; return x; } ->picticaudata : () => minutus.inez, dogramacii.kaiseri> ->minutus : unknown ->inez : minutus.inez ->quasiater : unknown ->wattsi : quasiater.wattsi ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->lepturus : lavali.lepturus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : minutus.inez, dogramacii.kaiseri> ->minutus : unknown ->inez : minutus.inez ->quasiater : unknown ->wattsi : quasiater.wattsi ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->lepturus : lavali.lepturus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>picticaudata : () => minutus.inez, dogramacii.kaiseri>, Symbol(picticaudata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 146, 188)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : minutus.inez, dogramacii.kaiseri>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 147, 118)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : minutus.inez, dogramacii.kaiseri> +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 147, 227)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : minutus.inez, dogramacii.kaiseri>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 147, 118)) pomona() : julianae.steerii { var x : julianae.steerii; () => { var y = this; }; return x; } ->pomona : () => julianae.steerii ->julianae : unknown ->steerii : julianae.steerii ->x : julianae.steerii ->julianae : unknown ->steerii : julianae.steerii +>pomona : () => julianae.steerii, Symbol(pomona, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 147, 252)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : julianae.steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 148, 37)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : julianae.steerii +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 148, 71)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : julianae.steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 148, 37)) ileile() : quasiater.carolinensis { var x : quasiater.carolinensis; () => { var y = this; }; return x; } ->ileile : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>ileile : () => quasiater.carolinensis, Symbol(ileile, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 148, 96)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 149, 43)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : jugularis ->this : jugularis ->x : quasiater.carolinensis +>y : jugularis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 149, 83)) +>this : jugularis, Symbol(jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 149, 43)) } } module rendalli { ->rendalli : typeof rendalli +>rendalli : typeof rendalli, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) export class zuluensis extends julianae.steerii { ->zuluensis : zuluensis ->julianae : typeof julianae ->steerii : julianae.steerii +>zuluensis : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>julianae.steerii : any, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>julianae : typeof julianae, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) telfairi() : argurus.wetmorei { var x : argurus.wetmorei; () => { var y = this; }; return x; } ->telfairi : () => argurus.wetmorei ->argurus : unknown ->wetmorei : argurus.wetmorei ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : argurus.wetmorei ->argurus : unknown ->wetmorei : argurus.wetmorei ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>telfairi : () => argurus.wetmorei, Symbol(telfairi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 153, 51)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>wetmorei : argurus.wetmorei, Symbol(argurus.wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : argurus.wetmorei, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 154, 82)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>wetmorei : argurus.wetmorei, Symbol(argurus.wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : argurus.wetmorei +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 154, 159)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : argurus.wetmorei, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 154, 82)) keyensis() : quasiater.wattsi { var x : quasiater.wattsi; () => { var y = this; }; return x; } ->keyensis : () => quasiater.wattsi ->quasiater : unknown ->wattsi : quasiater.wattsi ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->lepturus : lavali.lepturus ->x : quasiater.wattsi ->quasiater : unknown ->wattsi : quasiater.wattsi ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->lepturus : lavali.lepturus +>keyensis : () => quasiater.wattsi, Symbol(keyensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 154, 184)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : quasiater.wattsi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 155, 80)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : quasiater.wattsi +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 155, 155)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : quasiater.wattsi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 155, 80)) occasius() : argurus.gilbertii { var x : argurus.gilbertii; () => { var y = this; }; return x; } ->occasius : () => argurus.gilbertii ->argurus : unknown ->gilbertii : argurus.gilbertii ->caurinus : unknown ->psilurus : caurinus.psilurus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : argurus.gilbertii ->argurus : unknown ->gilbertii : argurus.gilbertii ->caurinus : unknown ->psilurus : caurinus.psilurus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>occasius : () => argurus.gilbertii, Symbol(occasius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 155, 180)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>gilbertii : argurus.gilbertii, Symbol(argurus.gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : argurus.gilbertii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 156, 81)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>gilbertii : argurus.gilbertii, Symbol(argurus.gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : argurus.gilbertii +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 156, 157)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : argurus.gilbertii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 156, 81)) damarensis() : julianae.galapagoensis { var x : julianae.galapagoensis; () => { var y = this; }; return x; } ->damarensis : () => julianae.galapagoensis ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->x : julianae.galapagoensis ->julianae : unknown ->galapagoensis : julianae.galapagoensis +>damarensis : () => julianae.galapagoensis, Symbol(damarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 156, 182)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : julianae.galapagoensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 157, 47)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : julianae.galapagoensis +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 157, 87)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : julianae.galapagoensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 157, 47)) Neptunium() : panglima.abidi { var x : panglima.abidi; () => { var y = this; }; return x; } ->Neptunium : () => panglima.abidi ->panglima : unknown ->abidi : panglima.abidi ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->lutreolus : unknown ->foina : lutreolus.foina ->x : panglima.abidi ->panglima : unknown ->abidi : panglima.abidi ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->lutreolus : unknown ->foina : lutreolus.foina +>Neptunium : () => panglima.abidi, Symbol(Neptunium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 157, 112)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : panglima.abidi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 158, 78)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : panglima.abidi +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 158, 150)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : panglima.abidi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 158, 78)) griseoflavus() : ruatanica.americanus { var x : ruatanica.americanus; () => { var y = this; }; return x; } ->griseoflavus : () => ruatanica.americanus ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : ruatanica.americanus ->ruatanica : unknown ->americanus : ruatanica.americanus +>griseoflavus : () => ruatanica.americanus, Symbol(griseoflavus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 158, 175)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : ruatanica.americanus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 159, 47)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : ruatanica.americanus +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 159, 85)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : ruatanica.americanus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 159, 47)) thar() : argurus.oreas { var x : argurus.oreas; () => { var y = this; }; return x; } ->thar : () => argurus.oreas ->argurus : unknown ->oreas : argurus.oreas ->x : argurus.oreas ->argurus : unknown ->oreas : argurus.oreas +>thar : () => argurus.oreas, Symbol(thar, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 159, 110)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 160, 32)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : argurus.oreas +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 160, 63)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 160, 32)) alborufus() : panamensis.linulus { var x : panamensis.linulus; () => { var y = this; }; return x; } ->alborufus : () => panamensis.linulus ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->lepturus : lavali.lepturus ->argurus : unknown ->oreas : argurus.oreas ->x : panamensis.linulus ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->lepturus : lavali.lepturus ->argurus : unknown ->oreas : argurus.oreas +>alborufus : () => panamensis.linulus, Symbol(alborufus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 160, 88)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : panamensis.linulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 161, 74)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : panamensis.linulus +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 161, 142)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : panamensis.linulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 161, 74)) fusicaudus() : sagitta.stolzmanni { var x : sagitta.stolzmanni; () => { var y = this; }; return x; } ->fusicaudus : () => sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>fusicaudus : () => sagitta.stolzmanni, Symbol(fusicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 161, 167)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 162, 43)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : sagitta.stolzmanni +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 162, 79)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 162, 43)) gordonorum() : howi.angulatus { var x : howi.angulatus; () => { var y = this; }; return x; } ->gordonorum : () => howi.angulatus ->howi : unknown ->angulatus : howi.angulatus ->ruatanica : unknown ->americanus : ruatanica.americanus ->argurus : unknown ->germaini : argurus.germaini ->x : howi.angulatus ->howi : unknown ->angulatus : howi.angulatus ->ruatanica : unknown ->americanus : ruatanica.americanus ->argurus : unknown ->germaini : argurus.germaini +>gordonorum : () => howi.angulatus, Symbol(gordonorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 162, 104)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>x : howi.angulatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 163, 79)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : howi.angulatus +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 163, 151)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : howi.angulatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 163, 79)) ruber() : dammermani.siberu { var x : dammermani.siberu; () => { var y = this; }; return x; } ->ruber : () => dammermani.siberu ->dammermani : unknown ->siberu : dammermani.siberu ->lutreolus : unknown ->punicus : lutreolus.punicus ->julianae : unknown ->acariensis : julianae.acariensis ->x : dammermani.siberu ->dammermani : unknown ->siberu : dammermani.siberu ->lutreolus : unknown ->punicus : lutreolus.punicus ->julianae : unknown ->acariensis : julianae.acariensis +>ruber : () => dammermani.siberu, Symbol(ruber, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 163, 176)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : dammermani.siberu, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 164, 77)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : dammermani.siberu +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 164, 152)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : dammermani.siberu, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 164, 77)) desmarestianus() : julianae.steerii { var x : julianae.steerii; () => { var y = this; }; return x; } ->desmarestianus : () => julianae.steerii ->julianae : unknown ->steerii : julianae.steerii ->x : julianae.steerii ->julianae : unknown ->steerii : julianae.steerii +>desmarestianus : () => julianae.steerii, Symbol(desmarestianus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 164, 177)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : julianae.steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 165, 45)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : julianae.steerii +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 165, 79)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : julianae.steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 165, 45)) lutillus() : nigra.dolichurus { var x : nigra.dolichurus; () => { var y = this; }; return x; } ->lutillus : () => nigra.dolichurus ->nigra : unknown ->dolichurus : nigra.dolichurus ->howi : unknown ->marcanoi : howi.marcanoi ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : nigra.dolichurus ->nigra : unknown ->dolichurus : nigra.dolichurus ->howi : unknown ->marcanoi : howi.marcanoi ->lavali : unknown ->wilsoni : lavali.wilsoni +>lutillus : () => nigra.dolichurus, Symbol(lutillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 165, 104)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : nigra.dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 166, 70)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : nigra.dolichurus +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 166, 135)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : nigra.dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 166, 70)) salocco() : argurus.peninsulae { var x : argurus.peninsulae; () => { var y = this; }; return x; } ->salocco : () => argurus.peninsulae ->argurus : unknown ->peninsulae : argurus.peninsulae ->x : argurus.peninsulae ->argurus : unknown ->peninsulae : argurus.peninsulae +>salocco : () => argurus.peninsulae, Symbol(salocco, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 166, 160)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : argurus.peninsulae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 167, 40)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) >() => { var y = this; } : () => void ->y : zuluensis ->this : zuluensis ->x : argurus.peninsulae +>y : zuluensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 167, 76)) +>this : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : argurus.peninsulae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 167, 40)) } export class moojeni { ->moojeni : moojeni ->T0 : T0 ->T1 : T1 +>moojeni : moojeni, Symbol(moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 169, 23)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 169, 26)) floweri() : lavali.otion { var x : lavali.otion; () => { var y = this; }; return x; } ->floweri : () => lavali.otion ->lavali : unknown ->otion : lavali.otion ->x : lavali.otion ->lavali : unknown ->otion : lavali.otion +>floweri : () => lavali.otion, Symbol(floweri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 169, 32)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : lavali.otion, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 170, 34)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) >() => { var y = this; } : () => void ->y : moojeni ->this : moojeni ->x : lavali.otion +>y : moojeni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 170, 64)) +>this : moojeni, Symbol(moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>x : lavali.otion, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 170, 34)) montosa() : imperfecta.ciliolabrum { var x : imperfecta.ciliolabrum; () => { var y = this; }; return x; } ->montosa : () => imperfecta.ciliolabrum ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->x : imperfecta.ciliolabrum ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->petrophilus : unknown ->minutilla : petrophilus.minutilla +>montosa : () => imperfecta.ciliolabrum, Symbol(montosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 170, 89)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>x : imperfecta.ciliolabrum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 171, 88)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) >() => { var y = this; } : () => void ->y : moojeni ->this : moojeni ->x : imperfecta.ciliolabrum +>y : moojeni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 171, 172)) +>this : moojeni, Symbol(moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>x : imperfecta.ciliolabrum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 171, 88)) miletus() : julianae.sumatrana { var x : julianae.sumatrana; () => { var y = this; }; return x; } ->miletus : () => julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana +>miletus : () => julianae.sumatrana, Symbol(miletus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 171, 197)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 172, 40)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : moojeni ->this : moojeni ->x : julianae.sumatrana +>y : moojeni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 172, 76)) +>this : moojeni, Symbol(moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 172, 40)) heaneyi() : zuluensis { var x : zuluensis; () => { var y = this; }; return x; } ->heaneyi : () => zuluensis ->zuluensis : zuluensis ->x : zuluensis ->zuluensis : zuluensis +>heaneyi : () => zuluensis, Symbol(heaneyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 172, 101)) +>zuluensis : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 173, 31)) +>zuluensis : zuluensis, Symbol(zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) >() => { var y = this; } : () => void ->y : moojeni ->this : moojeni ->x : zuluensis +>y : moojeni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 173, 58)) +>this : moojeni, Symbol(moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>x : zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 173, 31)) marchei() : panglima.amphibius> { var x : panglima.amphibius>; () => { var y = this; }; return x; } ->marchei : () => panglima.amphibius> ->panglima : unknown ->amphibius : panglima.amphibius ->patas : unknown ->uralensis : patas.uralensis ->gabriellae : unknown ->klossii : gabriellae.klossii ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata ->x : panglima.amphibius> ->panglima : unknown ->amphibius : panglima.amphibius ->patas : unknown ->uralensis : patas.uralensis ->gabriellae : unknown ->klossii : gabriellae.klossii ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata +>marchei : () => panglima.amphibius>, Symbol(marchei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 173, 83)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : panglima.amphibius>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 174, 117)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : moojeni ->this : moojeni ->x : panglima.amphibius> +>y : moojeni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 174, 230)) +>this : moojeni, Symbol(moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>x : panglima.amphibius>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 174, 117)) budini() : julianae.durangae { var x : julianae.durangae; () => { var y = this; }; return x; } ->budini : () => julianae.durangae ->julianae : unknown ->durangae : julianae.durangae ->x : julianae.durangae ->julianae : unknown ->durangae : julianae.durangae +>budini : () => julianae.durangae, Symbol(budini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 174, 255)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : julianae.durangae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 175, 38)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) >() => { var y = this; } : () => void ->y : moojeni ->this : moojeni ->x : julianae.durangae +>y : moojeni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 175, 73)) +>this : moojeni, Symbol(moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>x : julianae.durangae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 175, 38)) maggietaylorae() : trivirgatus.mixtus, imperfecta.subspinosus>, sagitta.stolzmanni> { var x : trivirgatus.mixtus, imperfecta.subspinosus>, sagitta.stolzmanni>; () => { var y = this; }; return x; } ->maggietaylorae : () => trivirgatus.mixtus, imperfecta.subspinosus>, sagitta.stolzmanni> ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->panglima : unknown ->amphibius : panglima.amphibius ->gabriellae : unknown ->klossii : gabriellae.klossii ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : trivirgatus.mixtus, imperfecta.subspinosus>, sagitta.stolzmanni> ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->panglima : unknown ->amphibius : panglima.amphibius ->gabriellae : unknown ->klossii : gabriellae.klossii ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>maggietaylorae : () => trivirgatus.mixtus, imperfecta.subspinosus>, sagitta.stolzmanni>, Symbol(maggietaylorae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 175, 98)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : trivirgatus.mixtus, imperfecta.subspinosus>, sagitta.stolzmanni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 176, 173)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : moojeni ->this : moojeni ->x : trivirgatus.mixtus, imperfecta.subspinosus>, sagitta.stolzmanni> +>y : moojeni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 176, 335)) +>this : moojeni, Symbol(moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>x : trivirgatus.mixtus, imperfecta.subspinosus>, sagitta.stolzmanni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 176, 173)) poliocephalus() : julianae.gerbillus { var x : julianae.gerbillus; () => { var y = this; }; return x; } ->poliocephalus : () => julianae.gerbillus ->julianae : unknown ->gerbillus : julianae.gerbillus ->julianae : unknown ->durangae : julianae.durangae ->dammermani : unknown ->melanops : dammermani.melanops ->x : julianae.gerbillus ->julianae : unknown ->gerbillus : julianae.gerbillus ->julianae : unknown ->durangae : julianae.durangae ->dammermani : unknown ->melanops : dammermani.melanops +>poliocephalus : () => julianae.gerbillus, Symbol(poliocephalus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 176, 360)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : julianae.gerbillus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 177, 86)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : moojeni ->this : moojeni ->x : julianae.gerbillus +>y : moojeni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 177, 162)) +>this : moojeni, Symbol(moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>x : julianae.gerbillus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 177, 86)) zibethicus() : minutus.inez { var x : minutus.inez; () => { var y = this; }; return x; } ->zibethicus : () => minutus.inez ->minutus : unknown ->inez : minutus.inez ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->dammermani : unknown ->melanops : dammermani.melanops ->x : minutus.inez ->minutus : unknown ->inez : minutus.inez ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->dammermani : unknown ->melanops : dammermani.melanops +>zibethicus : () => minutus.inez, Symbol(zibethicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 177, 187)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 178, 78)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : moojeni ->this : moojeni ->x : minutus.inez +>y : moojeni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 178, 149)) +>this : moojeni, Symbol(moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 178, 78)) biacensis() : howi.coludo { var x : howi.coludo; () => { var y = this; }; return x; } ->biacensis : () => howi.coludo ->howi : unknown ->coludo : howi.coludo ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : howi.coludo ->howi : unknown ->coludo : howi.coludo ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>biacensis : () => howi.coludo, Symbol(biacensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 178, 174)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 179, 79)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : moojeni ->this : moojeni ->x : howi.coludo +>y : moojeni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 179, 152)) +>this : moojeni, Symbol(moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 179, 79)) } export class crenulata extends trivirgatus.falconeri { ->crenulata : crenulata ->T0 : T0 ->T1 : T1 ->trivirgatus : typeof trivirgatus ->falconeri : trivirgatus.falconeri +>crenulata : crenulata, Symbol(crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 181, 25)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 181, 28)) +>trivirgatus.falconeri : any, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>trivirgatus : typeof trivirgatus, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) salvanius() : howi.coludo { var x : howi.coludo; () => { var y = this; }; return x; } ->salvanius : () => howi.coludo ->howi : unknown ->coludo : howi.coludo ->howi : unknown ->marcanoi : howi.marcanoi ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : howi.coludo ->howi : unknown ->coludo : howi.coludo ->howi : unknown ->marcanoi : howi.marcanoi ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>salvanius : () => howi.coludo, Symbol(salvanius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 181, 64)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 182, 75)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : crenulata ->this : crenulata ->x : howi.coludo +>y : crenulata, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 182, 144)) +>this : crenulata, Symbol(crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 182, 75)) maritimus() : ruatanica.americanus { var x : ruatanica.americanus; () => { var y = this; }; return x; } ->maritimus : () => ruatanica.americanus ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : ruatanica.americanus ->ruatanica : unknown ->americanus : ruatanica.americanus +>maritimus : () => ruatanica.americanus, Symbol(maritimus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 182, 169)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : ruatanica.americanus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 183, 44)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : crenulata ->this : crenulata ->x : ruatanica.americanus +>y : crenulata, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 183, 82)) +>this : crenulata, Symbol(crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>x : ruatanica.americanus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 183, 44)) edax() : lutreolus.cor>, rionegrensis.caniventer> { var x : lutreolus.cor>, rionegrensis.caniventer>; () => { var y = this; }; return x; } ->edax : () => lutreolus.cor>, rionegrensis.caniventer> ->lutreolus : unknown ->cor : lutreolus.cor ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->howi : unknown ->marcanoi : howi.marcanoi ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : lutreolus.cor>, rionegrensis.caniventer> ->lutreolus : unknown ->cor : lutreolus.cor ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->howi : unknown ->marcanoi : howi.marcanoi ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>edax : () => lutreolus.cor>, rionegrensis.caniventer>, Symbol(edax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 183, 107)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>cor : lutreolus.cor, Symbol(lutreolus.cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : lutreolus.cor>, rionegrensis.caniventer>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 184, 161)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>cor : lutreolus.cor, Symbol(lutreolus.cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : crenulata ->this : crenulata ->x : lutreolus.cor>, rionegrensis.caniventer> +>y : crenulata, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 184, 321)) +>this : crenulata, Symbol(crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>x : lutreolus.cor>, rionegrensis.caniventer>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 184, 161)) } } module trivirgatus { ->trivirgatus : typeof trivirgatus +>trivirgatus : typeof trivirgatus, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) export class tumidifrons { ->tumidifrons : tumidifrons ->T0 : T0 ->T1 : T1 +>tumidifrons : tumidifrons, Symbol(tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 188, 27)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 188, 30)) nivalis() : dogramacii.kaiseri { var x : dogramacii.kaiseri; () => { var y = this; }; return x; } ->nivalis : () => dogramacii.kaiseri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : dogramacii.kaiseri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>nivalis : () => dogramacii.kaiseri, Symbol(nivalis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 188, 36)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : dogramacii.kaiseri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 189, 40)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : tumidifrons ->this : tumidifrons ->x : dogramacii.kaiseri +>y : tumidifrons, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 189, 76)) +>this : tumidifrons, Symbol(tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>x : dogramacii.kaiseri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 189, 40)) vestitus() : lavali.xanthognathus { var x : lavali.xanthognathus; () => { var y = this; }; return x; } ->vestitus : () => lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>vestitus : () => lavali.xanthognathus, Symbol(vestitus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 189, 101)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 190, 43)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : tumidifrons ->this : tumidifrons ->x : lavali.xanthognathus +>y : tumidifrons, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 190, 81)) +>this : tumidifrons, Symbol(tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 190, 43)) aequatorius() : rionegrensis.caniventer { var x : rionegrensis.caniventer; () => { var y = this; }; return x; } ->aequatorius : () => rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>aequatorius : () => rionegrensis.caniventer, Symbol(aequatorius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 190, 106)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 191, 49)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : tumidifrons ->this : tumidifrons ->x : rionegrensis.caniventer +>y : tumidifrons, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 191, 90)) +>this : tumidifrons, Symbol(tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 191, 49)) scherman() : oconnelli { var x : oconnelli; () => { var y = this; }; return x; } ->scherman : () => oconnelli ->oconnelli : oconnelli ->x : oconnelli ->oconnelli : oconnelli +>scherman : () => oconnelli, Symbol(scherman, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 191, 115)) +>oconnelli : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 192, 32)) +>oconnelli : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : tumidifrons ->this : tumidifrons ->x : oconnelli +>y : tumidifrons, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 192, 59)) +>this : tumidifrons, Symbol(tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>x : oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 192, 32)) improvisum() : argurus.peninsulae { var x : argurus.peninsulae; () => { var y = this; }; return x; } ->improvisum : () => argurus.peninsulae ->argurus : unknown ->peninsulae : argurus.peninsulae ->x : argurus.peninsulae ->argurus : unknown ->peninsulae : argurus.peninsulae +>improvisum : () => argurus.peninsulae, Symbol(improvisum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 192, 84)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : argurus.peninsulae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 193, 43)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) >() => { var y = this; } : () => void ->y : tumidifrons ->this : tumidifrons ->x : argurus.peninsulae +>y : tumidifrons, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 193, 79)) +>this : tumidifrons, Symbol(tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>x : argurus.peninsulae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 193, 43)) cervinipes() : panglima.abidi { var x : panglima.abidi; () => { var y = this; }; return x; } ->cervinipes : () => panglima.abidi ->panglima : unknown ->abidi : panglima.abidi ->lavali : unknown ->lepturus : lavali.lepturus ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : panglima.abidi ->panglima : unknown ->abidi : panglima.abidi ->lavali : unknown ->lepturus : lavali.lepturus ->caurinus : unknown ->psilurus : caurinus.psilurus +>cervinipes : () => panglima.abidi, Symbol(cervinipes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 193, 104)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : panglima.abidi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 194, 75)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : tumidifrons ->this : tumidifrons ->x : panglima.abidi +>y : tumidifrons, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 194, 143)) +>this : tumidifrons, Symbol(tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>x : panglima.abidi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 194, 75)) audax() : dogramacii.robustulus { var x : dogramacii.robustulus; () => { var y = this; }; return x; } ->audax : () => dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>audax : () => dogramacii.robustulus, Symbol(audax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 194, 168)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 195, 41)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : tumidifrons ->this : tumidifrons ->x : dogramacii.robustulus +>y : tumidifrons, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 195, 80)) +>this : tumidifrons, Symbol(tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 195, 41)) vallinus() : sagitta.sicarius { var x : sagitta.sicarius; () => { var y = this; }; return x; } ->vallinus : () => sagitta.sicarius ->sagitta : unknown ->sicarius : sagitta.sicarius ->lavali : unknown ->wilsoni : lavali.wilsoni ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : sagitta.sicarius ->sagitta : unknown ->sicarius : sagitta.sicarius ->lavali : unknown ->wilsoni : lavali.wilsoni ->lutreolus : unknown ->punicus : lutreolus.punicus +>vallinus : () => sagitta.sicarius, Symbol(vallinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 195, 105)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>sicarius : sagitta.sicarius, Symbol(sagitta.sicarius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 676, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : sagitta.sicarius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 196, 74)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>sicarius : sagitta.sicarius, Symbol(sagitta.sicarius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 676, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : tumidifrons ->this : tumidifrons ->x : sagitta.sicarius +>y : tumidifrons, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 196, 143)) +>this : tumidifrons, Symbol(tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>x : sagitta.sicarius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 196, 74)) } export class mixtus extends argurus.pygmaea> { ->mixtus : mixtus ->T0 : T0 ->T1 : T1 ->argurus : typeof argurus ->pygmaea : argurus.pygmaea ->argurus : unknown ->oreas : argurus.oreas ->panglima : unknown ->fundatus : panglima.fundatus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>mixtus : mixtus, Symbol(mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 198, 22)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 198, 25)) +>argurus.pygmaea : any, Symbol(argurus.pygmaea, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 596, 16)) +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>pygmaea : argurus.pygmaea, Symbol(argurus.pygmaea, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 596, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) ochrogaster() : dogramacii.aurata { var x : dogramacii.aurata; () => { var y = this; }; return x; } ->ochrogaster : () => dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata ->x : dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata +>ochrogaster : () => dogramacii.aurata, Symbol(ochrogaster, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 198, 138)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : dogramacii.aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 199, 43)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : mixtus ->this : mixtus ->x : dogramacii.aurata +>y : mixtus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 199, 78)) +>this : mixtus, Symbol(mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>x : dogramacii.aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 199, 43)) bryophilus() : macrorhinos.marmosurus>> { var x : macrorhinos.marmosurus>>; () => { var y = this; }; return x; } ->bryophilus : () => macrorhinos.marmosurus>> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->panglima : unknown ->abidi : panglima.abidi ->dogramacii : unknown ->aurata : dogramacii.aurata ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : macrorhinos.marmosurus>> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->panglima : unknown ->abidi : panglima.abidi ->dogramacii : unknown ->aurata : dogramacii.aurata ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>bryophilus : () => macrorhinos.marmosurus>>, Symbol(bryophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 199, 103)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : macrorhinos.marmosurus>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 200, 173)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : mixtus ->this : mixtus ->x : macrorhinos.marmosurus>> +>y : mixtus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 200, 339)) +>this : mixtus, Symbol(mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>x : macrorhinos.marmosurus>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 200, 173)) liechtensteini() : rendalli.zuluensis { var x : rendalli.zuluensis; () => { var y = this; }; return x; } ->liechtensteini : () => rendalli.zuluensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->x : rendalli.zuluensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis +>liechtensteini : () => rendalli.zuluensis, Symbol(liechtensteini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 200, 364)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : rendalli.zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 201, 47)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) >() => { var y = this; } : () => void ->y : mixtus ->this : mixtus ->x : rendalli.zuluensis +>y : mixtus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 201, 83)) +>this : mixtus, Symbol(mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>x : rendalli.zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 201, 47)) crawfordi() : howi.coludo> { var x : howi.coludo>; () => { var y = this; }; return x; } ->crawfordi : () => howi.coludo> ->howi : unknown ->coludo : howi.coludo ->julianae : unknown ->steerii : julianae.steerii ->julianae : unknown ->gerbillus : julianae.gerbillus ->lavali : unknown ->thaeleri : lavali.thaeleri ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : howi.coludo> ->howi : unknown ->coludo : howi.coludo ->julianae : unknown ->steerii : julianae.steerii ->julianae : unknown ->gerbillus : julianae.gerbillus ->lavali : unknown ->thaeleri : lavali.thaeleri ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>crawfordi : () => howi.coludo>, Symbol(crawfordi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 201, 108)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : howi.coludo>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 202, 114)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : mixtus ->this : mixtus ->x : howi.coludo> +>y : mixtus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 202, 222)) +>this : mixtus, Symbol(mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>x : howi.coludo>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 202, 114)) hypsibia() : lavali.thaeleri { var x : lavali.thaeleri; () => { var y = this; }; return x; } ->hypsibia : () => lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri ->x : lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri +>hypsibia : () => lavali.thaeleri, Symbol(hypsibia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 202, 247)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 203, 38)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) >() => { var y = this; } : () => void ->y : mixtus ->this : mixtus ->x : lavali.thaeleri +>y : mixtus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 203, 71)) +>this : mixtus, Symbol(mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 203, 38)) matacus() : panglima.fundatus, lavali.beisa>, dammermani.melanops> { var x : panglima.fundatus, lavali.beisa>, dammermani.melanops>; () => { var y = this; }; return x; } ->matacus : () => panglima.fundatus, lavali.beisa>, dammermani.melanops> ->panglima : unknown ->fundatus : panglima.fundatus ->panamensis : unknown ->linulus : panamensis.linulus ->lotor : lotor ->argurus : unknown ->luctuosa : argurus.luctuosa ->lavali : unknown ->wilsoni : lavali.wilsoni ->lavali : unknown ->beisa : lavali.beisa ->dammermani : unknown ->melanops : dammermani.melanops ->x : panglima.fundatus, lavali.beisa>, dammermani.melanops> ->panglima : unknown ->fundatus : panglima.fundatus ->panamensis : unknown ->linulus : panamensis.linulus ->lotor : lotor ->argurus : unknown ->luctuosa : argurus.luctuosa ->lavali : unknown ->wilsoni : lavali.wilsoni ->lavali : unknown ->beisa : lavali.beisa ->dammermani : unknown ->melanops : dammermani.melanops +>matacus : () => panglima.fundatus, lavali.beisa>, dammermani.melanops>, Symbol(matacus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 203, 96)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lotor : lotor, Symbol(lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : panglima.fundatus, lavali.beisa>, dammermani.melanops>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 204, 135)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lotor : lotor, Symbol(lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : mixtus ->this : mixtus ->x : panglima.fundatus, lavali.beisa>, dammermani.melanops> +>y : mixtus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 204, 266)) +>this : mixtus, Symbol(mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>x : panglima.fundatus, lavali.beisa>, dammermani.melanops>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 204, 135)) demidoff() : caurinus.johorensis { var x : caurinus.johorensis; () => { var y = this; }; return x; } ->demidoff : () => caurinus.johorensis ->caurinus : unknown ->johorensis : caurinus.johorensis ->julianae : unknown ->acariensis : julianae.acariensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->x : caurinus.johorensis ->caurinus : unknown ->johorensis : caurinus.johorensis ->julianae : unknown ->acariensis : julianae.acariensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis +>demidoff : () => caurinus.johorensis, Symbol(demidoff, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 204, 291)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : caurinus.johorensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 205, 83)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) >() => { var y = this; } : () => void ->y : mixtus ->this : mixtus ->x : caurinus.johorensis +>y : mixtus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 205, 161)) +>this : mixtus, Symbol(mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>x : caurinus.johorensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 205, 83)) } export class lotor { ->lotor : lotor ->T0 : T0 ->T1 : T1 +>lotor : lotor, Symbol(lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 207, 21)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 207, 24)) balensis() : samarensis.pallidus { var x : samarensis.pallidus; () => { var y = this; }; return x; } ->balensis : () => samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus +>balensis : () => samarensis.pallidus, Symbol(balensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 207, 30)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 208, 42)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : lotor ->this : lotor ->x : samarensis.pallidus +>y : lotor, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 208, 79)) +>this : lotor, Symbol(lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 208, 42)) pullata() : rionegrensis.veraecrucis { var x : rionegrensis.veraecrucis; () => { var y = this; }; return x; } ->pullata : () => rionegrensis.veraecrucis ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->argurus : unknown ->peninsulae : argurus.peninsulae ->x : rionegrensis.veraecrucis ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->argurus : unknown ->peninsulae : argurus.peninsulae +>pullata : () => rionegrensis.veraecrucis, Symbol(pullata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 208, 104)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : rionegrensis.veraecrucis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 209, 90)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) >() => { var y = this; } : () => void ->y : lotor ->this : lotor ->x : rionegrensis.veraecrucis +>y : lotor, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 209, 176)) +>this : lotor, Symbol(lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>x : rionegrensis.veraecrucis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 209, 90)) } export class falconeri { ->falconeri : falconeri +>falconeri : falconeri, Symbol(falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) cabrali() : rendalli.moojeni>, daubentonii.arboreus> { var x : rendalli.moojeni>, daubentonii.arboreus>; () => { var y = this; }; return x; } ->cabrali : () => rendalli.moojeni>, daubentonii.arboreus> ->rendalli : unknown ->moojeni : rendalli.moojeni ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->howi : unknown ->marcanoi : howi.marcanoi ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->julianae : unknown ->steerii : julianae.steerii ->x : rendalli.moojeni>, daubentonii.arboreus> ->rendalli : unknown ->moojeni : rendalli.moojeni ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->howi : unknown ->marcanoi : howi.marcanoi ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->julianae : unknown ->steerii : julianae.steerii +>cabrali : () => rendalli.moojeni>, daubentonii.arboreus>, Symbol(cabrali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 211, 26)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : rendalli.moojeni>, daubentonii.arboreus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 212, 203)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : falconeri ->this : falconeri ->x : rendalli.moojeni>, daubentonii.arboreus> +>y : falconeri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 212, 402)) +>this : falconeri, Symbol(falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : rendalli.moojeni>, daubentonii.arboreus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 212, 203)) gouldi() : nigra.dolichurus>, patas.uralensis> { var x : nigra.dolichurus>, patas.uralensis>; () => { var y = this; }; return x; } ->gouldi : () => nigra.dolichurus>, patas.uralensis> ->nigra : unknown ->dolichurus : nigra.dolichurus ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->julianae : unknown ->acariensis : julianae.acariensis ->howi : unknown ->coludo : howi.coludo ->argurus : unknown ->oreas : argurus.oreas ->howi : unknown ->marcanoi : howi.marcanoi ->patas : unknown ->uralensis : patas.uralensis ->x : nigra.dolichurus>, patas.uralensis> ->nigra : unknown ->dolichurus : nigra.dolichurus ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->julianae : unknown ->acariensis : julianae.acariensis ->howi : unknown ->coludo : howi.coludo ->argurus : unknown ->oreas : argurus.oreas ->howi : unknown ->marcanoi : howi.marcanoi ->patas : unknown ->uralensis : patas.uralensis +>gouldi : () => nigra.dolichurus>, patas.uralensis>, Symbol(gouldi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 212, 427)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : nigra.dolichurus>, patas.uralensis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 213, 139)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) >() => { var y = this; } : () => void ->y : falconeri ->this : falconeri ->x : nigra.dolichurus>, patas.uralensis> +>y : falconeri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 213, 275)) +>this : falconeri, Symbol(falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : nigra.dolichurus>, patas.uralensis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 213, 139)) fuscicollis() : samarensis.pelurus> { var x : samarensis.pelurus>; () => { var y = this; }; return x; } ->fuscicollis : () => samarensis.pelurus> ->samarensis : unknown ->pelurus : samarensis.pelurus ->dammermani : unknown ->melanops : dammermani.melanops ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->ruatanica : unknown ->americanus : ruatanica.americanus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : samarensis.pelurus> ->samarensis : unknown ->pelurus : samarensis.pelurus ->dammermani : unknown ->melanops : dammermani.melanops ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->ruatanica : unknown ->americanus : ruatanica.americanus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>fuscicollis : () => samarensis.pelurus>, Symbol(fuscicollis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 213, 300)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : samarensis.pelurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 214, 126)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : falconeri ->this : falconeri ->x : samarensis.pelurus> +>y : falconeri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 214, 244)) +>this : falconeri, Symbol(falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : samarensis.pelurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 214, 126)) martiensseni() : sagitta.cinereus>, dogramacii.koepckeae> { var x : sagitta.cinereus>, dogramacii.koepckeae>; () => { var y = this; }; return x; } ->martiensseni : () => sagitta.cinereus>, dogramacii.koepckeae> ->sagitta : unknown ->cinereus : sagitta.cinereus ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->lavali : unknown ->otion : lavali.otion ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->caurinus : unknown ->psilurus : caurinus.psilurus ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->x : sagitta.cinereus>, dogramacii.koepckeae> ->sagitta : unknown ->cinereus : sagitta.cinereus ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->lavali : unknown ->otion : lavali.otion ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->caurinus : unknown ->psilurus : caurinus.psilurus ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae +>martiensseni : () => sagitta.cinereus>, dogramacii.koepckeae>, Symbol(martiensseni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 214, 269)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : sagitta.cinereus>, dogramacii.koepckeae>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 215, 166)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) >() => { var y = this; } : () => void ->y : falconeri ->this : falconeri ->x : sagitta.cinereus>, dogramacii.koepckeae> +>y : falconeri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 215, 323)) +>this : falconeri, Symbol(falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : sagitta.cinereus>, dogramacii.koepckeae>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 215, 166)) gaoligongensis() : dogramacii.koepckeae { var x : dogramacii.koepckeae; () => { var y = this; }; return x; } ->gaoligongensis : () => dogramacii.koepckeae ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->x : dogramacii.koepckeae ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae +>gaoligongensis : () => dogramacii.koepckeae, Symbol(gaoligongensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 215, 348)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : dogramacii.koepckeae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 216, 49)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) >() => { var y = this; } : () => void ->y : falconeri ->this : falconeri ->x : dogramacii.koepckeae +>y : falconeri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 216, 87)) +>this : falconeri, Symbol(falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : dogramacii.koepckeae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 216, 49)) shawi() : minutus.inez> { var x : minutus.inez>; () => { var y = this; }; return x; } ->shawi : () => minutus.inez> ->minutus : unknown ->inez : minutus.inez ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->x : minutus.inez> ->minutus : unknown ->inez : minutus.inez ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi +>shawi : () => minutus.inez>, Symbol(shawi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 216, 112)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : minutus.inez>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 217, 122)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) >() => { var y = this; } : () => void ->y : falconeri ->this : falconeri ->x : minutus.inez> +>y : falconeri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 217, 242)) +>this : falconeri, Symbol(falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : minutus.inez>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 217, 122)) gmelini() : rionegrensis.caniventer { var x : rionegrensis.caniventer; () => { var y = this; }; return x; } ->gmelini : () => rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>gmelini : () => rionegrensis.caniventer, Symbol(gmelini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 217, 267)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 218, 45)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : falconeri ->this : falconeri ->x : rionegrensis.caniventer +>y : falconeri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 218, 86)) +>this : falconeri, Symbol(falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 218, 45)) } export class oconnelli { ->oconnelli : oconnelli +>oconnelli : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) youngsoni() : nigra.thalia { var x : nigra.thalia; () => { var y = this; }; return x; } ->youngsoni : () => nigra.thalia ->nigra : unknown ->thalia : nigra.thalia ->patas : unknown ->uralensis : patas.uralensis ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->x : nigra.thalia ->nigra : unknown ->thalia : nigra.thalia ->patas : unknown ->uralensis : patas.uralensis ->julianae : unknown ->galapagoensis : julianae.galapagoensis +>youngsoni : () => nigra.thalia, Symbol(youngsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 220, 26)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : nigra.thalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 221, 77)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : nigra.thalia +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 221, 148)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : nigra.thalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 221, 77)) terrestris() : macrorhinos.konganensis { var x : macrorhinos.konganensis; () => { var y = this; }; return x; } ->terrestris : () => macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>terrestris : () => macrorhinos.konganensis, Symbol(terrestris, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 221, 173)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 222, 48)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : macrorhinos.konganensis +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 222, 89)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 222, 48)) chrysopus() : sagitta.sicarius> { var x : sagitta.sicarius>; () => { var y = this; }; return x; } ->chrysopus : () => sagitta.sicarius> ->sagitta : unknown ->sicarius : sagitta.sicarius ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->argurus : unknown ->oreas : argurus.oreas ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : sagitta.sicarius> ->sagitta : unknown ->sicarius : sagitta.sicarius ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->argurus : unknown ->oreas : argurus.oreas ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>chrysopus : () => sagitta.sicarius>, Symbol(chrysopus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 222, 114)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>sicarius : sagitta.sicarius, Symbol(sagitta.sicarius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 676, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : sagitta.sicarius>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 223, 121)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>sicarius : sagitta.sicarius, Symbol(sagitta.sicarius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 676, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : sagitta.sicarius> +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 223, 236)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : sagitta.sicarius>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 223, 121)) fuscomurina() : argurus.peninsulae { var x : argurus.peninsulae; () => { var y = this; }; return x; } ->fuscomurina : () => argurus.peninsulae ->argurus : unknown ->peninsulae : argurus.peninsulae ->x : argurus.peninsulae ->argurus : unknown ->peninsulae : argurus.peninsulae +>fuscomurina : () => argurus.peninsulae, Symbol(fuscomurina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 223, 261)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : argurus.peninsulae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 224, 44)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : argurus.peninsulae +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 224, 80)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : argurus.peninsulae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 224, 44)) hellwaldii() : nigra.gracilis, petrophilus.sodyi> { var x : nigra.gracilis, petrophilus.sodyi>; () => { var y = this; }; return x; } ->hellwaldii : () => nigra.gracilis, petrophilus.sodyi> ->nigra : unknown ->gracilis : nigra.gracilis ->panamensis : unknown ->setulosus : panamensis.setulosus ->sagitta : unknown ->walkeri : sagitta.walkeri ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->argurus : unknown ->oreas : argurus.oreas ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : nigra.gracilis, petrophilus.sodyi> ->nigra : unknown ->gracilis : nigra.gracilis ->panamensis : unknown ->setulosus : panamensis.setulosus ->sagitta : unknown ->walkeri : sagitta.walkeri ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->argurus : unknown ->oreas : argurus.oreas ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>hellwaldii : () => nigra.gracilis, petrophilus.sodyi>, Symbol(hellwaldii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 224, 105)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : nigra.gracilis, petrophilus.sodyi>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 225, 160)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : nigra.gracilis, petrophilus.sodyi> +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 225, 313)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : nigra.gracilis, petrophilus.sodyi>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 225, 160)) aenea() : argurus.luctuosa { var x : argurus.luctuosa; () => { var y = this; }; return x; } ->aenea : () => argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa +>aenea : () => argurus.luctuosa, Symbol(aenea, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 225, 338)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 226, 36)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : argurus.luctuosa +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 226, 70)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 226, 36)) perrini() : quasiater.bobrinskoi { var x : quasiater.bobrinskoi; () => { var y = this; }; return x; } ->perrini : () => quasiater.bobrinskoi ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->x : quasiater.bobrinskoi ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi +>perrini : () => quasiater.bobrinskoi, Symbol(perrini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 226, 95)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : quasiater.bobrinskoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 227, 42)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : quasiater.bobrinskoi +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 227, 80)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : quasiater.bobrinskoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 227, 42)) entellus() : dammermani.melanops { var x : dammermani.melanops; () => { var y = this; }; return x; } ->entellus : () => dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops ->x : dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops +>entellus : () => dammermani.melanops, Symbol(entellus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 227, 105)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 228, 42)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : dammermani.melanops +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 228, 79)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 228, 42)) krebsii() : rionegrensis.veraecrucis { var x : rionegrensis.veraecrucis; () => { var y = this; }; return x; } ->krebsii : () => rionegrensis.veraecrucis ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->julianae : unknown ->durangae : julianae.durangae ->x : rionegrensis.veraecrucis ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->julianae : unknown ->durangae : julianae.durangae +>krebsii : () => rionegrensis.veraecrucis, Symbol(krebsii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 228, 104)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : rionegrensis.veraecrucis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 229, 90)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : rionegrensis.veraecrucis +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 229, 176)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : rionegrensis.veraecrucis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 229, 90)) cephalotes() : lutreolus.schlegeli { var x : lutreolus.schlegeli; () => { var y = this; }; return x; } ->cephalotes : () => lutreolus.schlegeli ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->x : lutreolus.schlegeli ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli +>cephalotes : () => lutreolus.schlegeli, Symbol(cephalotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 229, 201)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : lutreolus.schlegeli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 230, 44)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : lutreolus.schlegeli +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 230, 81)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : lutreolus.schlegeli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 230, 44)) molossinus() : daubentonii.nigricans> { var x : daubentonii.nigricans>; () => { var y = this; }; return x; } ->molossinus : () => daubentonii.nigricans> ->daubentonii : unknown ->nigricans : daubentonii.nigricans ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->julianae : unknown ->sumatrana : julianae.sumatrana ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : daubentonii.nigricans> ->daubentonii : unknown ->nigricans : daubentonii.nigricans ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->julianae : unknown ->sumatrana : julianae.sumatrana ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>molossinus : () => daubentonii.nigricans>, Symbol(molossinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 230, 106)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nigricans : daubentonii.nigricans, Symbol(daubentonii.nigricans, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 587, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : daubentonii.nigricans>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 231, 136)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nigricans : daubentonii.nigricans, Symbol(daubentonii.nigricans, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 587, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : daubentonii.nigricans> +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 231, 265)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : daubentonii.nigricans>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 231, 136)) luisi() : dogramacii.robustulus { var x : dogramacii.robustulus; () => { var y = this; }; return x; } ->luisi : () => dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>luisi : () => dogramacii.robustulus, Symbol(luisi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 231, 290)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 232, 41)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : dogramacii.robustulus +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 232, 80)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 232, 41)) ceylonicus() : rionegrensis.caniventer { var x : rionegrensis.caniventer; () => { var y = this; }; return x; } ->ceylonicus : () => rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>ceylonicus : () => rionegrensis.caniventer, Symbol(ceylonicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 232, 105)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 233, 48)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : rionegrensis.caniventer +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 233, 89)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 233, 48)) ralli() : lavali.xanthognathus { var x : lavali.xanthognathus; () => { var y = this; }; return x; } ->ralli : () => lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>ralli : () => lavali.xanthognathus, Symbol(ralli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 233, 114)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 234, 40)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : oconnelli ->this : oconnelli ->x : lavali.xanthognathus +>y : oconnelli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 234, 78)) +>this : oconnelli, Symbol(oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 234, 40)) } } module quasiater { ->quasiater : typeof quasiater +>quasiater : typeof quasiater, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) export class bobrinskoi { ->bobrinskoi : bobrinskoi +>bobrinskoi : bobrinskoi, Symbol(bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) crassicaudatus() : samarensis.cahirinus { var x : samarensis.cahirinus; () => { var y = this; }; return x; } ->crassicaudatus : () => samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->argurus : unknown ->luctuosa : argurus.luctuosa +>crassicaudatus : () => samarensis.cahirinus, Symbol(crassicaudatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 238, 27)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 239, 92)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : bobrinskoi ->this : bobrinskoi ->x : samarensis.cahirinus +>y : bobrinskoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 239, 173)) +>this : bobrinskoi, Symbol(bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 239, 92)) mulatta() : argurus.oreas { var x : argurus.oreas; () => { var y = this; }; return x; } ->mulatta : () => argurus.oreas ->argurus : unknown ->oreas : argurus.oreas ->x : argurus.oreas ->argurus : unknown ->oreas : argurus.oreas +>mulatta : () => argurus.oreas, Symbol(mulatta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 239, 198)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 240, 35)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : bobrinskoi ->this : bobrinskoi ->x : argurus.oreas +>y : bobrinskoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 240, 66)) +>this : bobrinskoi, Symbol(bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 240, 35)) ansorgei() : rendalli.moojeni, gabriellae.echinatus> { var x : rendalli.moojeni, gabriellae.echinatus>; () => { var y = this; }; return x; } ->ansorgei : () => rendalli.moojeni, gabriellae.echinatus> ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : rendalli.moojeni, gabriellae.echinatus> ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>ansorgei : () => rendalli.moojeni, gabriellae.echinatus>, Symbol(ansorgei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 240, 91)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : rendalli.moojeni, gabriellae.echinatus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 241, 123)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : bobrinskoi ->this : bobrinskoi ->x : rendalli.moojeni, gabriellae.echinatus> +>y : bobrinskoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 241, 241)) +>this : bobrinskoi, Symbol(bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : rendalli.moojeni, gabriellae.echinatus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 241, 123)) Copper() : argurus.netscheri { var x : argurus.netscheri; () => { var y = this; }; return x; } ->Copper : () => argurus.netscheri ->argurus : unknown ->netscheri : argurus.netscheri ->quasiater : unknown ->carolinensis : carolinensis ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : argurus.netscheri ->argurus : unknown ->netscheri : argurus.netscheri ->quasiater : unknown ->carolinensis : carolinensis ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>Copper : () => argurus.netscheri, Symbol(Copper, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 241, 266)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : carolinensis, Symbol(carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : argurus.netscheri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 242, 82)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : carolinensis, Symbol(carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : bobrinskoi ->this : bobrinskoi ->x : argurus.netscheri +>y : bobrinskoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 242, 161)) +>this : bobrinskoi, Symbol(bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : argurus.netscheri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 242, 82)) } } module ruatanica { ->ruatanica : typeof ruatanica +>ruatanica : typeof ruatanica, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) export class americanus extends imperfecta.ciliolabrum { ->americanus : americanus ->imperfecta : typeof imperfecta ->ciliolabrum : imperfecta.ciliolabrum ->argurus : unknown ->germaini : argurus.germaini ->lutreolus : unknown ->foina : lutreolus.foina +>americanus : americanus, Symbol(americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>imperfecta.ciliolabrum : any, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>imperfecta : typeof imperfecta, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) nasoloi() : macrorhinos.konganensis { var x : macrorhinos.konganensis; () => { var y = this; }; return x; } ->nasoloi : () => macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>nasoloi : () => macrorhinos.konganensis, Symbol(nasoloi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 246, 93)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 247, 45)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : americanus ->this : americanus ->x : macrorhinos.konganensis +>y : americanus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 247, 86)) +>this : americanus, Symbol(americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 247, 45)) mystacalis() : howi.angulatus { var x : howi.angulatus; () => { var y = this; }; return x; } ->mystacalis : () => howi.angulatus ->howi : unknown ->angulatus : howi.angulatus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : howi.angulatus ->howi : unknown ->angulatus : howi.angulatus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>mystacalis : () => howi.angulatus, Symbol(mystacalis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 247, 111)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : howi.angulatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 248, 83)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : americanus ->this : americanus ->x : howi.angulatus +>y : americanus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 248, 159)) +>this : americanus, Symbol(americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : howi.angulatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 248, 83)) fardoulisi() : trivirgatus.oconnelli { var x : trivirgatus.oconnelli; () => { var y = this; }; return x; } ->fardoulisi : () => trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>fardoulisi : () => trivirgatus.oconnelli, Symbol(fardoulisi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 248, 184)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 249, 46)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : americanus ->this : americanus ->x : trivirgatus.oconnelli +>y : americanus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 249, 85)) +>this : americanus, Symbol(americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 249, 46)) tumidus() : gabriellae.amicus { var x : gabriellae.amicus; () => { var y = this; }; return x; } ->tumidus : () => gabriellae.amicus ->gabriellae : unknown ->amicus : gabriellae.amicus ->x : gabriellae.amicus ->gabriellae : unknown ->amicus : gabriellae.amicus +>tumidus : () => gabriellae.amicus, Symbol(tumidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 249, 110)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : gabriellae.amicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 250, 39)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) >() => { var y = this; } : () => void ->y : americanus ->this : americanus ->x : gabriellae.amicus +>y : americanus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 250, 74)) +>this : americanus, Symbol(americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : gabriellae.amicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 250, 39)) } } module lavali { ->lavali : typeof lavali +>lavali : typeof lavali, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) export class wilsoni extends Lanthanum.nitidus { ->wilsoni : wilsoni ->Lanthanum : typeof Lanthanum ->nitidus : Lanthanum.nitidus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>wilsoni : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>Lanthanum.nitidus : any, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>Lanthanum : typeof Lanthanum, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) setiger() : nigra.thalia { var x : nigra.thalia; () => { var y = this; }; return x; } ->setiger : () => nigra.thalia ->nigra : unknown ->thalia : nigra.thalia ->patas : unknown ->uralensis : patas.uralensis ->wilsoni : wilsoni ->x : nigra.thalia ->nigra : unknown ->thalia : nigra.thalia ->patas : unknown ->uralensis : patas.uralensis ->wilsoni : wilsoni +>setiger : () => nigra.thalia, Symbol(setiger, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 254, 96)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>wilsoni : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : nigra.thalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 255, 60)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>wilsoni : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : nigra.thalia +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 255, 116)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : nigra.thalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 255, 60)) lorentzii() : imperfecta.subspinosus { var x : imperfecta.subspinosus; () => { var y = this; }; return x; } ->lorentzii : () => imperfecta.subspinosus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : imperfecta.subspinosus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>lorentzii : () => imperfecta.subspinosus, Symbol(lorentzii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 255, 141)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : imperfecta.subspinosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 256, 46)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : imperfecta.subspinosus +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 256, 86)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : imperfecta.subspinosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 256, 46)) antisensis() : lutreolus.foina { var x : lutreolus.foina; () => { var y = this; }; return x; } ->antisensis : () => lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina ->x : lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina +>antisensis : () => lutreolus.foina, Symbol(antisensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 256, 111)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : lutreolus.foina, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 257, 40)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : lutreolus.foina +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 257, 73)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : lutreolus.foina, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 257, 40)) blossevillii() : dammermani.siberu { var x : dammermani.siberu; () => { var y = this; }; return x; } ->blossevillii : () => dammermani.siberu ->dammermani : unknown ->siberu : dammermani.siberu ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : dammermani.siberu ->dammermani : unknown ->siberu : dammermani.siberu ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>blossevillii : () => dammermani.siberu, Symbol(blossevillii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 257, 98)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : dammermani.siberu, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 258, 85)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : dammermani.siberu +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 258, 161)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : dammermani.siberu, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 258, 85)) bontanus() : rionegrensis.caniventer { var x : rionegrensis.caniventer; () => { var y = this; }; return x; } ->bontanus : () => rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>bontanus : () => rionegrensis.caniventer, Symbol(bontanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 258, 186)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 259, 46)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : rionegrensis.caniventer +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 259, 87)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 259, 46)) caligata() : argurus.oreas { var x : argurus.oreas; () => { var y = this; }; return x; } ->caligata : () => argurus.oreas ->argurus : unknown ->oreas : argurus.oreas ->x : argurus.oreas ->argurus : unknown ->oreas : argurus.oreas +>caligata : () => argurus.oreas, Symbol(caligata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 259, 112)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 260, 36)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : argurus.oreas +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 260, 67)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 260, 36)) franqueti() : panglima.amphibius, imperfecta.subspinosus> { var x : panglima.amphibius, imperfecta.subspinosus>; () => { var y = this; }; return x; } ->franqueti : () => panglima.amphibius, imperfecta.subspinosus> ->panglima : unknown ->amphibius : panglima.amphibius ->gabriellae : unknown ->klossii : gabriellae.klossii ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : panglima.amphibius, imperfecta.subspinosus> ->panglima : unknown ->amphibius : panglima.amphibius ->gabriellae : unknown ->klossii : gabriellae.klossii ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>franqueti : () => panglima.amphibius, imperfecta.subspinosus>, Symbol(franqueti, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 260, 92)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : panglima.amphibius, imperfecta.subspinosus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 261, 128)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : panglima.amphibius, imperfecta.subspinosus> +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 261, 250)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : panglima.amphibius, imperfecta.subspinosus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 261, 128)) roberti() : julianae.acariensis { var x : julianae.acariensis; () => { var y = this; }; return x; } ->roberti : () => julianae.acariensis ->julianae : unknown ->acariensis : julianae.acariensis ->x : julianae.acariensis ->julianae : unknown ->acariensis : julianae.acariensis +>roberti : () => julianae.acariensis, Symbol(roberti, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 261, 275)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : julianae.acariensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 262, 41)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : julianae.acariensis +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 262, 78)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : julianae.acariensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 262, 41)) degelidus() : chrysaeolus.sarasinorum { var x : chrysaeolus.sarasinorum; () => { var y = this; }; return x; } ->degelidus : () => chrysaeolus.sarasinorum ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : chrysaeolus.sarasinorum ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>degelidus : () => chrysaeolus.sarasinorum, Symbol(degelidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 262, 103)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : chrysaeolus.sarasinorum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 263, 92)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : chrysaeolus.sarasinorum +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 263, 178)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : chrysaeolus.sarasinorum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 263, 92)) amoenus() : quasiater.carolinensis { var x : quasiater.carolinensis; () => { var y = this; }; return x; } ->amoenus : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>amoenus : () => quasiater.carolinensis, Symbol(amoenus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 263, 203)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 264, 44)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : quasiater.carolinensis +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 264, 84)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 264, 44)) kob() : trivirgatus.lotor { var x : trivirgatus.lotor; () => { var y = this; }; return x; } ->kob : () => trivirgatus.lotor ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->argurus : unknown ->oreas : argurus.oreas ->beisa : beisa ->x : trivirgatus.lotor ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->argurus : unknown ->oreas : argurus.oreas ->beisa : beisa +>kob : () => trivirgatus.lotor, Symbol(kob, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 264, 109)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>beisa : beisa, Symbol(beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : trivirgatus.lotor, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 265, 57)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>beisa : beisa, Symbol(beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : trivirgatus.lotor +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 265, 114)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : trivirgatus.lotor, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 265, 57)) csorbai() : caurinus.johorensis { var x : caurinus.johorensis; () => { var y = this; }; return x; } ->csorbai : () => caurinus.johorensis ->caurinus : unknown ->johorensis : caurinus.johorensis ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->julianae : unknown ->steerii : julianae.steerii ->x : caurinus.johorensis ->caurinus : unknown ->johorensis : caurinus.johorensis ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->julianae : unknown ->steerii : julianae.steerii +>csorbai : () => caurinus.johorensis, Symbol(csorbai, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 265, 139)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : caurinus.johorensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 266, 81)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : caurinus.johorensis +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 266, 158)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : caurinus.johorensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 266, 81)) dorsata() : gabriellae.echinatus { var x : gabriellae.echinatus; () => { var y = this; }; return x; } ->dorsata : () => gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>dorsata : () => gabriellae.echinatus, Symbol(dorsata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 266, 183)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 267, 42)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : wilsoni ->this : wilsoni ->x : gabriellae.echinatus +>y : wilsoni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 267, 80)) +>this : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 267, 42)) } export class beisa { ->beisa : beisa +>beisa : beisa, Symbol(beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) } export class otion extends howi.coludo { ->otion : otion ->howi : typeof howi ->coludo : howi.coludo ->argurus : unknown ->oreas : argurus.oreas ->howi : unknown ->marcanoi : howi.marcanoi +>otion : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>howi.coludo : any, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>howi : typeof howi, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) bonaerensis() : provocax.melanoleuca { var x : provocax.melanoleuca; () => { var y = this; }; return x; } ->bonaerensis : () => provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>bonaerensis : () => provocax.melanoleuca, Symbol(bonaerensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 271, 72)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : provocax.melanoleuca, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 272, 46)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : provocax.melanoleuca +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 272, 84)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : provocax.melanoleuca, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 272, 46)) dussumieri() : nigra.gracilis { var x : nigra.gracilis; () => { var y = this; }; return x; } ->dussumieri : () => nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->julianae : unknown ->steerii : julianae.steerii ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->julianae : unknown ->steerii : julianae.steerii ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>dussumieri : () => nigra.gracilis, Symbol(dussumieri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 272, 109)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 273, 77)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : nigra.gracilis +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 273, 147)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 273, 77)) osvaldoreigi() : julianae.albidens { var x : julianae.albidens; () => { var y = this; }; return x; } ->osvaldoreigi : () => julianae.albidens ->julianae : unknown ->albidens : julianae.albidens ->julianae : unknown ->steerii : julianae.steerii ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : julianae.albidens ->julianae : unknown ->albidens : julianae.albidens ->julianae : unknown ->steerii : julianae.steerii ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>osvaldoreigi : () => julianae.albidens, Symbol(osvaldoreigi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 273, 172)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : julianae.albidens, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 274, 86)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : julianae.albidens +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 274, 163)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : julianae.albidens, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 274, 86)) grevyi() : samarensis.pallidus { var x : samarensis.pallidus; () => { var y = this; }; return x; } ->grevyi : () => samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus +>grevyi : () => samarensis.pallidus, Symbol(grevyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 274, 188)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 275, 40)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : samarensis.pallidus +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 275, 77)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 275, 40)) hirtula() : lepturus { var x : lepturus; () => { var y = this; }; return x; } ->hirtula : () => lepturus ->lepturus : lepturus ->x : lepturus ->lepturus : lepturus +>hirtula : () => lepturus, Symbol(hirtula, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 275, 102)) +>lepturus : lepturus, Symbol(lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 276, 30)) +>lepturus : lepturus, Symbol(lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : lepturus +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 276, 56)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 276, 30)) cristatus() : argurus.luctuosa { var x : argurus.luctuosa; () => { var y = this; }; return x; } ->cristatus : () => argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa +>cristatus : () => argurus.luctuosa, Symbol(cristatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 276, 81)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 277, 40)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : argurus.luctuosa +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 277, 74)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 277, 40)) darlingtoni() : sagitta.leptoceros { var x : sagitta.leptoceros; () => { var y = this; }; return x; } ->darlingtoni : () => sagitta.leptoceros ->sagitta : unknown ->leptoceros : sagitta.leptoceros ->wilsoni : wilsoni ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : sagitta.leptoceros ->sagitta : unknown ->leptoceros : sagitta.leptoceros ->wilsoni : wilsoni ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>darlingtoni : () => sagitta.leptoceros, Symbol(darlingtoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 277, 99)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>leptoceros : sagitta.leptoceros, Symbol(sagitta.leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>wilsoni : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : sagitta.leptoceros, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 278, 76)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>leptoceros : sagitta.leptoceros, Symbol(sagitta.leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>wilsoni : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : sagitta.leptoceros +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 278, 144)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : sagitta.leptoceros, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 278, 76)) fontanierii() : panamensis.setulosus>, lutreolus.foina> { var x : panamensis.setulosus>, lutreolus.foina>; () => { var y = this; }; return x; } ->fontanierii : () => panamensis.setulosus>, lutreolus.foina> ->panamensis : unknown ->setulosus : panamensis.setulosus ->samarensis : unknown ->fuscus : samarensis.fuscus ->wilsoni : wilsoni ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->lutreolus : unknown ->foina : lutreolus.foina ->x : panamensis.setulosus>, lutreolus.foina> ->panamensis : unknown ->setulosus : panamensis.setulosus ->samarensis : unknown ->fuscus : samarensis.fuscus ->wilsoni : wilsoni ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->lutreolus : unknown ->foina : lutreolus.foina +>fontanierii : () => panamensis.setulosus>, lutreolus.foina>, Symbol(fontanierii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 278, 169)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>wilsoni : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : panamensis.setulosus>, lutreolus.foina>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 279, 161)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>wilsoni : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : panamensis.setulosus>, lutreolus.foina> +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 279, 314)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : panamensis.setulosus>, lutreolus.foina>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 279, 161)) umbrosus() : howi.marcanoi { var x : howi.marcanoi; () => { var y = this; }; return x; } ->umbrosus : () => howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi ->x : howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi +>umbrosus : () => howi.marcanoi, Symbol(umbrosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 279, 339)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 280, 36)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : howi.marcanoi +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 280, 67)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 280, 36)) chiriquinus() : imperfecta.lasiurus { var x : imperfecta.lasiurus; () => { var y = this; }; return x; } ->chiriquinus : () => imperfecta.lasiurus ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->caurinus : unknown ->psilurus : caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : imperfecta.lasiurus ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->caurinus : unknown ->psilurus : caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus +>chiriquinus : () => imperfecta.lasiurus, Symbol(chiriquinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 280, 92)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : imperfecta.lasiurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 281, 83)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : imperfecta.lasiurus +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 281, 158)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : imperfecta.lasiurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 281, 83)) orarius() : lutreolus.schlegeli { var x : lutreolus.schlegeli; () => { var y = this; }; return x; } ->orarius : () => lutreolus.schlegeli ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->x : lutreolus.schlegeli ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli +>orarius : () => lutreolus.schlegeli, Symbol(orarius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 281, 183)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : lutreolus.schlegeli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 282, 41)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : lutreolus.schlegeli +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 282, 78)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : lutreolus.schlegeli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 282, 41)) ilaeus() : caurinus.mahaganus { var x : caurinus.mahaganus; () => { var y = this; }; return x; } ->ilaeus : () => caurinus.mahaganus ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->julianae : unknown ->acariensis : julianae.acariensis ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : caurinus.mahaganus ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->julianae : unknown ->acariensis : julianae.acariensis ->julianae : unknown ->sumatrana : julianae.sumatrana +>ilaeus : () => caurinus.mahaganus, Symbol(ilaeus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 282, 103)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : caurinus.mahaganus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 283, 80)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : caurinus.mahaganus +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 283, 157)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : caurinus.mahaganus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 283, 80)) musschenbroekii() : trivirgatus.falconeri { var x : trivirgatus.falconeri; () => { var y = this; }; return x; } ->musschenbroekii : () => trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->x : trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri +>musschenbroekii : () => trivirgatus.falconeri, Symbol(musschenbroekii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 283, 182)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 284, 51)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) >() => { var y = this; } : () => void ->y : otion ->this : otion ->x : trivirgatus.falconeri +>y : otion, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 284, 90)) +>this : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 284, 51)) } export class xanthognathus { ->xanthognathus : xanthognathus +>xanthognathus : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) nanulus() : daubentonii.nigricans { var x : daubentonii.nigricans; () => { var y = this; }; return x; } ->nanulus : () => daubentonii.nigricans ->daubentonii : unknown ->nigricans : daubentonii.nigricans ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : daubentonii.nigricans ->daubentonii : unknown ->nigricans : daubentonii.nigricans ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->samarensis : unknown ->pallidus : samarensis.pallidus +>nanulus : () => daubentonii.nigricans, Symbol(nanulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 286, 30)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nigricans : daubentonii.nigricans, Symbol(daubentonii.nigricans, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 587, 20)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : daubentonii.nigricans, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 287, 88)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nigricans : daubentonii.nigricans, Symbol(daubentonii.nigricans, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 587, 20)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : xanthognathus ->this : xanthognathus ->x : daubentonii.nigricans +>y : xanthognathus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 287, 172)) +>this : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : daubentonii.nigricans, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 287, 88)) albigena() : chrysaeolus.sarasinorum { var x : chrysaeolus.sarasinorum; () => { var y = this; }; return x; } ->albigena : () => chrysaeolus.sarasinorum ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->psilurus : caurinus.psilurus ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->x : chrysaeolus.sarasinorum ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->psilurus : caurinus.psilurus ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi +>albigena : () => chrysaeolus.sarasinorum, Symbol(albigena, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 287, 197)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : chrysaeolus.sarasinorum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 288, 87)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) >() => { var y = this; } : () => void ->y : xanthognathus ->this : xanthognathus ->x : chrysaeolus.sarasinorum +>y : xanthognathus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 288, 169)) +>this : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : chrysaeolus.sarasinorum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 288, 87)) onca() : sagitta.stolzmanni { var x : sagitta.stolzmanni; () => { var y = this; }; return x; } ->onca : () => sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>onca : () => sagitta.stolzmanni, Symbol(onca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 288, 194)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 289, 37)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : xanthognathus ->this : xanthognathus ->x : sagitta.stolzmanni +>y : xanthognathus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 289, 73)) +>this : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 289, 37)) gunnii() : minutus.himalayana, nigra.thalia> { var x : minutus.himalayana, nigra.thalia>; () => { var y = this; }; return x; } ->gunnii : () => minutus.himalayana, nigra.thalia> ->minutus : unknown ->himalayana : minutus.himalayana ->howi : unknown ->coludo : howi.coludo ->lepturus : lepturus ->lutreolus : unknown ->punicus : lutreolus.punicus ->nigra : unknown ->thalia : nigra.thalia ->patas : unknown ->uralensis : patas.uralensis ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : minutus.himalayana, nigra.thalia> ->minutus : unknown ->himalayana : minutus.himalayana ->howi : unknown ->coludo : howi.coludo ->lepturus : lepturus ->lutreolus : unknown ->punicus : lutreolus.punicus ->nigra : unknown ->thalia : nigra.thalia ->patas : unknown ->uralensis : patas.uralensis ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>gunnii : () => minutus.himalayana, nigra.thalia>, Symbol(gunnii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 289, 98)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>himalayana : minutus.himalayana, Symbol(minutus.himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>lepturus : lepturus, Symbol(lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : minutus.himalayana, nigra.thalia>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 290, 135)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>himalayana : minutus.himalayana, Symbol(minutus.himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>lepturus : lepturus, Symbol(lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : xanthognathus ->this : xanthognathus ->x : minutus.himalayana, nigra.thalia> +>y : xanthognathus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 290, 267)) +>this : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : minutus.himalayana, nigra.thalia>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 290, 135)) apeco() : lutreolus.foina { var x : lutreolus.foina; () => { var y = this; }; return x; } ->apeco : () => lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina ->x : lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina +>apeco : () => lutreolus.foina, Symbol(apeco, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 290, 292)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : lutreolus.foina, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 291, 35)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : xanthognathus ->this : xanthognathus ->x : lutreolus.foina +>y : xanthognathus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 291, 68)) +>this : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : lutreolus.foina, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 291, 35)) variegates() : gabriellae.klossii { var x : gabriellae.klossii; () => { var y = this; }; return x; } ->variegates : () => gabriellae.klossii ->gabriellae : unknown ->klossii : gabriellae.klossii ->wilsoni : wilsoni ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->x : gabriellae.klossii ->gabriellae : unknown ->klossii : gabriellae.klossii ->wilsoni : wilsoni ->julianae : unknown ->nudicaudus : julianae.nudicaudus +>variegates : () => gabriellae.klossii, Symbol(variegates, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 291, 93)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>wilsoni : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : gabriellae.klossii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 292, 73)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>wilsoni : wilsoni, Symbol(wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) >() => { var y = this; } : () => void ->y : xanthognathus ->this : xanthognathus ->x : gabriellae.klossii +>y : xanthognathus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 292, 139)) +>this : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : gabriellae.klossii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 292, 73)) goudotii() : trivirgatus.falconeri { var x : trivirgatus.falconeri; () => { var y = this; }; return x; } ->goudotii : () => trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->x : trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri +>goudotii : () => trivirgatus.falconeri, Symbol(goudotii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 292, 164)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 293, 44)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) >() => { var y = this; } : () => void ->y : xanthognathus ->this : xanthognathus ->x : trivirgatus.falconeri +>y : xanthognathus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 293, 83)) +>this : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 293, 44)) pohlei() : Lanthanum.megalonyx { var x : Lanthanum.megalonyx; () => { var y = this; }; return x; } ->pohlei : () => Lanthanum.megalonyx ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->x : Lanthanum.megalonyx ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx +>pohlei : () => Lanthanum.megalonyx, Symbol(pohlei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 293, 108)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : Lanthanum.megalonyx, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 294, 40)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) >() => { var y = this; } : () => void ->y : xanthognathus ->this : xanthognathus ->x : Lanthanum.megalonyx +>y : xanthognathus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 294, 77)) +>this : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : Lanthanum.megalonyx, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 294, 40)) ineptus() : panamensis.setulosus { var x : panamensis.setulosus; () => { var y = this; }; return x; } ->ineptus : () => panamensis.setulosus ->panamensis : unknown ->setulosus : panamensis.setulosus ->xanthognathus : xanthognathus ->beisa : beisa ->x : panamensis.setulosus ->panamensis : unknown ->setulosus : panamensis.setulosus ->xanthognathus : xanthognathus ->beisa : beisa +>ineptus : () => panamensis.setulosus, Symbol(ineptus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 294, 102)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>xanthognathus : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>beisa : beisa, Symbol(beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : panamensis.setulosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 295, 64)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>xanthognathus : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>beisa : beisa, Symbol(beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : xanthognathus ->this : xanthognathus ->x : panamensis.setulosus +>y : xanthognathus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 295, 124)) +>this : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : panamensis.setulosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 295, 64)) euryotis() : rendalli.moojeni> { var x : rendalli.moojeni>; () => { var y = this; }; return x; } ->euryotis : () => rendalli.moojeni> ->rendalli : unknown ->moojeni : rendalli.moojeni ->julianae : unknown ->steerii : julianae.steerii ->samarensis : unknown ->pelurus : samarensis.pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : rendalli.moojeni> ->rendalli : unknown ->moojeni : rendalli.moojeni ->julianae : unknown ->steerii : julianae.steerii ->samarensis : unknown ->pelurus : samarensis.pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->ruatanica : unknown ->americanus : ruatanica.americanus +>euryotis : () => rendalli.moojeni>, Symbol(euryotis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 295, 149)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : rendalli.moojeni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 296, 120)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : xanthognathus ->this : xanthognathus ->x : rendalli.moojeni> +>y : xanthognathus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 296, 235)) +>this : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : rendalli.moojeni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 296, 120)) maurisca() : Lanthanum.suillus { var x : Lanthanum.suillus; () => { var y = this; }; return x; } ->maurisca : () => Lanthanum.suillus ->Lanthanum : unknown ->suillus : Lanthanum.suillus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : Lanthanum.suillus ->Lanthanum : unknown ->suillus : Lanthanum.suillus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>maurisca : () => Lanthanum.suillus, Symbol(maurisca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 296, 260)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>suillus : Lanthanum.suillus, Symbol(Lanthanum.suillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 107, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : Lanthanum.suillus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 297, 89)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>suillus : Lanthanum.suillus, Symbol(Lanthanum.suillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 107, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : xanthognathus ->this : xanthognathus ->x : Lanthanum.suillus +>y : xanthognathus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 297, 173)) +>this : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : Lanthanum.suillus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 297, 89)) coyhaiquensis() : caurinus.mahaganus, panglima.abidi>, lutreolus.punicus> { var x : caurinus.mahaganus, panglima.abidi>, lutreolus.punicus>; () => { var y = this; }; return x; } ->coyhaiquensis : () => caurinus.mahaganus, panglima.abidi>, lutreolus.punicus> ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->dammermani : unknown ->siberu : dammermani.siberu ->nigra : unknown ->thalia : nigra.thalia ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->julianae : unknown ->sumatrana : julianae.sumatrana ->panglima : unknown ->abidi : panglima.abidi ->lutreolus : unknown ->foina : lutreolus.foina ->argurus : unknown ->peninsulae : argurus.peninsulae ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : caurinus.mahaganus, panglima.abidi>, lutreolus.punicus> ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->dammermani : unknown ->siberu : dammermani.siberu ->nigra : unknown ->thalia : nigra.thalia ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->julianae : unknown ->sumatrana : julianae.sumatrana ->panglima : unknown ->abidi : panglima.abidi ->lutreolus : unknown ->foina : lutreolus.foina ->argurus : unknown ->peninsulae : argurus.peninsulae ->lutreolus : unknown ->punicus : lutreolus.punicus +>coyhaiquensis : () => caurinus.mahaganus, panglima.abidi>, lutreolus.punicus>, Symbol(coyhaiquensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 297, 198)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : caurinus.mahaganus, panglima.abidi>, lutreolus.punicus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 298, 192)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : xanthognathus ->this : xanthognathus ->x : caurinus.mahaganus, panglima.abidi>, lutreolus.punicus> +>y : xanthognathus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 298, 374)) +>this : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : caurinus.mahaganus, panglima.abidi>, lutreolus.punicus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 298, 192)) } export class thaeleri extends argurus.oreas { ->thaeleri : thaeleri ->argurus : typeof argurus ->oreas : argurus.oreas +>thaeleri : thaeleri, Symbol(thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>argurus.oreas : any, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) coromandra() : julianae.galapagoensis { var x : julianae.galapagoensis; () => { var y = this; }; return x; } ->coromandra : () => julianae.galapagoensis ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->x : julianae.galapagoensis ->julianae : unknown ->galapagoensis : julianae.galapagoensis +>coromandra : () => julianae.galapagoensis, Symbol(coromandra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 300, 47)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : julianae.galapagoensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 301, 47)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) >() => { var y = this; } : () => void ->y : thaeleri ->this : thaeleri ->x : julianae.galapagoensis +>y : thaeleri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 301, 87)) +>this : thaeleri, Symbol(thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : julianae.galapagoensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 301, 47)) parvipes() : nigra.dolichurus { var x : nigra.dolichurus; () => { var y = this; }; return x; } ->parvipes : () => nigra.dolichurus ->nigra : unknown ->dolichurus : nigra.dolichurus ->argurus : unknown ->germaini : argurus.germaini ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : nigra.dolichurus ->nigra : unknown ->dolichurus : nigra.dolichurus ->argurus : unknown ->germaini : argurus.germaini ->samarensis : unknown ->pallidus : samarensis.pallidus +>parvipes : () => nigra.dolichurus, Symbol(parvipes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 301, 112)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : nigra.dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 302, 78)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : thaeleri ->this : thaeleri ->x : nigra.dolichurus +>y : thaeleri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 302, 151)) +>this : thaeleri, Symbol(thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : nigra.dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 302, 78)) sponsorius() : rionegrensis.veraecrucis, julianae.steerii> { var x : rionegrensis.veraecrucis, julianae.steerii>; () => { var y = this; }; return x; } ->sponsorius : () => rionegrensis.veraecrucis, julianae.steerii> ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->psilurus : caurinus.psilurus ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->julianae : unknown ->steerii : julianae.steerii ->x : rionegrensis.veraecrucis, julianae.steerii> ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->psilurus : caurinus.psilurus ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->julianae : unknown ->steerii : julianae.steerii +>sponsorius : () => rionegrensis.veraecrucis, julianae.steerii>, Symbol(sponsorius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 302, 176)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : rionegrensis.veraecrucis, julianae.steerii>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 303, 133)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : thaeleri ->this : thaeleri ->x : rionegrensis.veraecrucis, julianae.steerii> +>y : thaeleri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 303, 259)) +>this : thaeleri, Symbol(thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : rionegrensis.veraecrucis, julianae.steerii>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 303, 133)) vates() : dogramacii.robustulus { var x : dogramacii.robustulus; () => { var y = this; }; return x; } ->vates : () => dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>vates : () => dogramacii.robustulus, Symbol(vates, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 303, 284)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 304, 41)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : thaeleri ->this : thaeleri ->x : dogramacii.robustulus +>y : thaeleri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 304, 80)) +>this : thaeleri, Symbol(thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 304, 41)) roosmalenorum() : dogramacii.koepckeae { var x : dogramacii.koepckeae; () => { var y = this; }; return x; } ->roosmalenorum : () => dogramacii.koepckeae ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->x : dogramacii.koepckeae ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae +>roosmalenorum : () => dogramacii.koepckeae, Symbol(roosmalenorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 304, 105)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : dogramacii.koepckeae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 305, 48)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) >() => { var y = this; } : () => void ->y : thaeleri ->this : thaeleri ->x : dogramacii.koepckeae +>y : thaeleri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 305, 86)) +>this : thaeleri, Symbol(thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : dogramacii.koepckeae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 305, 48)) rubicola() : rendalli.moojeni, gabriellae.echinatus>> { var x : rendalli.moojeni, gabriellae.echinatus>>; () => { var y = this; }; return x; } ->rubicola : () => rendalli.moojeni, gabriellae.echinatus>> ->rendalli : unknown ->moojeni : rendalli.moojeni ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : rendalli.moojeni, gabriellae.echinatus>> ->rendalli : unknown ->moojeni : rendalli.moojeni ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>rubicola : () => rendalli.moojeni, gabriellae.echinatus>>, Symbol(rubicola, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 305, 111)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : rendalli.moojeni, gabriellae.echinatus>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 306, 166)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : thaeleri ->this : thaeleri ->x : rendalli.moojeni, gabriellae.echinatus>> +>y : thaeleri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 306, 327)) +>this : thaeleri, Symbol(thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : rendalli.moojeni, gabriellae.echinatus>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 306, 166)) ikonnikovi() : argurus.luctuosa { var x : argurus.luctuosa; () => { var y = this; }; return x; } ->ikonnikovi : () => argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa +>ikonnikovi : () => argurus.luctuosa, Symbol(ikonnikovi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 306, 352)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 307, 41)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : thaeleri ->this : thaeleri ->x : argurus.luctuosa +>y : thaeleri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 307, 75)) +>this : thaeleri, Symbol(thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 307, 41)) paramicrus() : imperfecta.ciliolabrum> { var x : imperfecta.ciliolabrum>; () => { var y = this; }; return x; } ->paramicrus : () => imperfecta.ciliolabrum> ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->otion : otion ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : imperfecta.ciliolabrum> ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->otion : otion ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->caurinus : unknown ->psilurus : caurinus.psilurus +>paramicrus : () => imperfecta.ciliolabrum>, Symbol(paramicrus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 307, 100)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>otion : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : imperfecta.ciliolabrum>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 308, 117)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>otion : otion, Symbol(otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : thaeleri ->this : thaeleri ->x : imperfecta.ciliolabrum> +>y : thaeleri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 308, 227)) +>this : thaeleri, Symbol(thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : imperfecta.ciliolabrum>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 308, 117)) } export class lepturus extends Lanthanum.suillus { ->lepturus : lepturus ->Lanthanum : typeof Lanthanum ->suillus : Lanthanum.suillus ->dammermani : unknown ->melanops : dammermani.melanops ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>lepturus : lepturus, Symbol(lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>Lanthanum.suillus : any, Symbol(Lanthanum.suillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 107, 18)) +>Lanthanum : typeof Lanthanum, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>suillus : Lanthanum.suillus, Symbol(Lanthanum.suillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 107, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) ferrumequinum() : argurus.netscheri { var x : argurus.netscheri; () => { var y = this; }; return x; } ->ferrumequinum : () => argurus.netscheri ->argurus : unknown ->netscheri : argurus.netscheri ->argurus : unknown ->luctuosa : argurus.luctuosa ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->x : argurus.netscheri ->argurus : unknown ->netscheri : argurus.netscheri ->argurus : unknown ->luctuosa : argurus.luctuosa ->julianae : unknown ->nudicaudus : julianae.nudicaudus +>ferrumequinum : () => argurus.netscheri, Symbol(ferrumequinum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 310, 96)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : argurus.netscheri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 311, 84)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) >() => { var y = this; } : () => void ->y : lepturus ->this : lepturus ->x : argurus.netscheri +>y : lepturus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 311, 158)) +>this : lepturus, Symbol(lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : argurus.netscheri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 311, 84)) aequalis() : sagitta.cinereus>, petrophilus.minutilla>, Lanthanum.jugularis> { var x : sagitta.cinereus>, petrophilus.minutilla>, Lanthanum.jugularis>; () => { var y = this; }; return x; } ->aequalis : () => sagitta.cinereus>, petrophilus.minutilla>, Lanthanum.jugularis> ->sagitta : unknown ->cinereus : sagitta.cinereus ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->quasiater : unknown ->wattsi : quasiater.wattsi ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->panamensis : unknown ->linulus : panamensis.linulus ->xanthognathus : xanthognathus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : sagitta.cinereus>, petrophilus.minutilla>, Lanthanum.jugularis> ->sagitta : unknown ->cinereus : sagitta.cinereus ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->quasiater : unknown ->wattsi : quasiater.wattsi ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->panamensis : unknown ->linulus : panamensis.linulus ->xanthognathus : xanthognathus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>aequalis : () => sagitta.cinereus>, petrophilus.minutilla>, Lanthanum.jugularis>, Symbol(aequalis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 311, 183)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>xanthognathus : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : sagitta.cinereus>, petrophilus.minutilla>, Lanthanum.jugularis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 312, 204)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>xanthognathus : xanthognathus, Symbol(xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : lepturus ->this : lepturus ->x : sagitta.cinereus>, petrophilus.minutilla>, Lanthanum.jugularis> +>y : lepturus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 312, 403)) +>this : lepturus, Symbol(lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : sagitta.cinereus>, petrophilus.minutilla>, Lanthanum.jugularis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 312, 204)) } } module dogramacii { ->dogramacii : typeof dogramacii +>dogramacii : typeof dogramacii, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) export class robustulus extends lavali.wilsoni { ->robustulus : robustulus ->lavali : typeof lavali ->wilsoni : lavali.wilsoni +>robustulus : robustulus, Symbol(robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>lavali.wilsoni : any, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lavali : typeof lavali, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) fossor() : minutus.inez { var x : minutus.inez; () => { var y = this; }; return x; } ->fossor : () => minutus.inez ->minutus : unknown ->inez : minutus.inez ->argurus : unknown ->peninsulae : argurus.peninsulae ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->x : minutus.inez ->minutus : unknown ->inez : minutus.inez ->argurus : unknown ->peninsulae : argurus.peninsulae ->julianae : unknown ->nudicaudus : julianae.nudicaudus +>fossor : () => minutus.inez, Symbol(fossor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 316, 50)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 317, 74)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) >() => { var y = this; } : () => void ->y : robustulus ->this : robustulus ->x : minutus.inez +>y : robustulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 317, 145)) +>this : robustulus, Symbol(robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 317, 74)) humboldti() : sagitta.cinereus { var x : sagitta.cinereus; () => { var y = this; }; return x; } ->humboldti : () => sagitta.cinereus ->sagitta : unknown ->cinereus : sagitta.cinereus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->argurus : unknown ->oreas : argurus.oreas ->x : sagitta.cinereus ->sagitta : unknown ->cinereus : sagitta.cinereus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->argurus : unknown ->oreas : argurus.oreas +>humboldti : () => sagitta.cinereus, Symbol(humboldti, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 317, 170)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : sagitta.cinereus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 318, 77)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : robustulus ->this : robustulus ->x : sagitta.cinereus +>y : robustulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 318, 148)) +>this : robustulus, Symbol(robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : sagitta.cinereus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 318, 77)) mexicana() : macrorhinos.konganensis { var x : macrorhinos.konganensis; () => { var y = this; }; return x; } ->mexicana : () => macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>mexicana : () => macrorhinos.konganensis, Symbol(mexicana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 318, 173)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 319, 46)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : robustulus ->this : robustulus ->x : macrorhinos.konganensis +>y : robustulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 319, 87)) +>this : robustulus, Symbol(robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 319, 46)) martini() : julianae.oralis { var x : julianae.oralis; () => { var y = this; }; return x; } ->martini : () => julianae.oralis ->julianae : unknown ->oralis : julianae.oralis ->julianae : unknown ->steerii : julianae.steerii ->lavali : unknown ->lepturus : lavali.lepturus ->x : julianae.oralis ->julianae : unknown ->oralis : julianae.oralis ->julianae : unknown ->steerii : julianae.steerii ->lavali : unknown ->lepturus : lavali.lepturus +>martini : () => julianae.oralis, Symbol(martini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 319, 112)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : julianae.oralis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 320, 72)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : robustulus ->this : robustulus ->x : julianae.oralis +>y : robustulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 320, 140)) +>this : robustulus, Symbol(robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : julianae.oralis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 320, 72)) beatus() : Lanthanum.jugularis { var x : Lanthanum.jugularis; () => { var y = this; }; return x; } ->beatus : () => Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>beatus : () => Lanthanum.jugularis, Symbol(beatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 320, 165)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 321, 40)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : robustulus ->this : robustulus ->x : Lanthanum.jugularis +>y : robustulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 321, 77)) +>this : robustulus, Symbol(robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 321, 40)) leporina() : trivirgatus.falconeri { var x : trivirgatus.falconeri; () => { var y = this; }; return x; } ->leporina : () => trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->x : trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri +>leporina : () => trivirgatus.falconeri, Symbol(leporina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 321, 102)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 322, 44)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) >() => { var y = this; } : () => void ->y : robustulus ->this : robustulus ->x : trivirgatus.falconeri +>y : robustulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 322, 83)) +>this : robustulus, Symbol(robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 322, 44)) pearsonii() : dammermani.melanops { var x : dammermani.melanops; () => { var y = this; }; return x; } ->pearsonii : () => dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops ->x : dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops +>pearsonii : () => dammermani.melanops, Symbol(pearsonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 322, 108)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 323, 43)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : robustulus ->this : robustulus ->x : dammermani.melanops +>y : robustulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 323, 80)) +>this : robustulus, Symbol(robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 323, 43)) keaysi() : howi.angulatus { var x : howi.angulatus; () => { var y = this; }; return x; } ->keaysi : () => howi.angulatus ->howi : unknown ->angulatus : howi.angulatus ->lavali : unknown ->beisa : lavali.beisa ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->x : howi.angulatus ->howi : unknown ->angulatus : howi.angulatus ->lavali : unknown ->beisa : lavali.beisa ->rendalli : unknown ->zuluensis : rendalli.zuluensis +>keaysi : () => howi.angulatus, Symbol(keaysi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 323, 105)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : howi.angulatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 324, 69)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) >() => { var y = this; } : () => void ->y : robustulus ->this : robustulus ->x : howi.angulatus +>y : robustulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 324, 135)) +>this : robustulus, Symbol(robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : howi.angulatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 324, 69)) hindei() : imperfecta.lasiurus { var x : imperfecta.lasiurus; () => { var y = this; }; return x; } ->hindei : () => imperfecta.lasiurus ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->julianae : unknown ->steerii : julianae.steerii ->x : imperfecta.lasiurus ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->julianae : unknown ->steerii : julianae.steerii +>hindei : () => imperfecta.lasiurus, Symbol(hindei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 324, 160)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : imperfecta.lasiurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 325, 83)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : robustulus ->this : robustulus ->x : imperfecta.lasiurus +>y : robustulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 325, 163)) +>this : robustulus, Symbol(robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : imperfecta.lasiurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 325, 83)) } export class koepckeae { ->koepckeae : koepckeae +>koepckeae : koepckeae, Symbol(koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) culturatus() : samarensis.pelurus, julianae.sumatrana> { var x : samarensis.pelurus, julianae.sumatrana>; () => { var y = this; }; return x; } ->culturatus : () => samarensis.pelurus, julianae.sumatrana> ->samarensis : unknown ->pelurus : samarensis.pelurus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->kaiseri : kaiseri ->lutreolus : unknown ->punicus : lutreolus.punicus ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : samarensis.pelurus, julianae.sumatrana> ->samarensis : unknown ->pelurus : samarensis.pelurus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->kaiseri : kaiseri ->lutreolus : unknown ->punicus : lutreolus.punicus ->julianae : unknown ->sumatrana : julianae.sumatrana +>culturatus : () => samarensis.pelurus, julianae.sumatrana>, Symbol(culturatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 327, 26)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>kaiseri : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : samarensis.pelurus, julianae.sumatrana>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 328, 113)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>kaiseri : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : koepckeae ->this : koepckeae ->x : samarensis.pelurus, julianae.sumatrana> +>y : koepckeae, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 328, 219)) +>this : koepckeae, Symbol(koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : samarensis.pelurus, julianae.sumatrana>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 328, 113)) } export class kaiseri { ->kaiseri : kaiseri +>kaiseri : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) bedfordiae() : quasiater.carolinensis { var x : quasiater.carolinensis; () => { var y = this; }; return x; } ->bedfordiae : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>bedfordiae : () => quasiater.carolinensis, Symbol(bedfordiae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 330, 24)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 331, 47)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : quasiater.carolinensis +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 331, 87)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 331, 47)) paramorum() : Lanthanum.megalonyx { var x : Lanthanum.megalonyx; () => { var y = this; }; return x; } ->paramorum : () => Lanthanum.megalonyx ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->x : Lanthanum.megalonyx ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx +>paramorum : () => Lanthanum.megalonyx, Symbol(paramorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 331, 112)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : Lanthanum.megalonyx, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 332, 43)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : Lanthanum.megalonyx +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 332, 80)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : Lanthanum.megalonyx, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 332, 43)) rubidus() : trivirgatus.lotor { var x : trivirgatus.lotor; () => { var y = this; }; return x; } ->rubidus : () => trivirgatus.lotor ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->julianae : unknown ->steerii : julianae.steerii ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : trivirgatus.lotor ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->julianae : unknown ->steerii : julianae.steerii ->samarensis : unknown ->pallidus : samarensis.pallidus +>rubidus : () => trivirgatus.lotor, Symbol(rubidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 332, 105)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : trivirgatus.lotor, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 333, 78)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : trivirgatus.lotor +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 333, 152)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : trivirgatus.lotor, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 333, 78)) juninensis() : quasiater.bobrinskoi { var x : quasiater.bobrinskoi; () => { var y = this; }; return x; } ->juninensis : () => quasiater.bobrinskoi ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->x : quasiater.bobrinskoi ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi +>juninensis : () => quasiater.bobrinskoi, Symbol(juninensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 333, 177)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : quasiater.bobrinskoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 334, 45)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : quasiater.bobrinskoi +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 334, 83)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : quasiater.bobrinskoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 334, 45)) marginata() : argurus.wetmorei>> { var x : argurus.wetmorei>>; () => { var y = this; }; return x; } ->marginata : () => argurus.wetmorei>> ->argurus : unknown ->wetmorei : argurus.wetmorei ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->sagitta : unknown ->leptoceros : sagitta.leptoceros ->lutreolus : unknown ->punicus : lutreolus.punicus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : argurus.wetmorei>> ->argurus : unknown ->wetmorei : argurus.wetmorei ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->sagitta : unknown ->leptoceros : sagitta.leptoceros ->lutreolus : unknown ->punicus : lutreolus.punicus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>marginata : () => argurus.wetmorei>>, Symbol(marginata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 334, 108)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>wetmorei : argurus.wetmorei, Symbol(argurus.wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>leptoceros : sagitta.leptoceros, Symbol(sagitta.leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : argurus.wetmorei>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 335, 175)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>wetmorei : argurus.wetmorei, Symbol(argurus.wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>leptoceros : sagitta.leptoceros, Symbol(sagitta.leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : argurus.wetmorei>> +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 335, 344)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : argurus.wetmorei>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 335, 175)) Meitnerium() : ruatanica.Praseodymium> { var x : ruatanica.Praseodymium>; () => { var y = this; }; return x; } ->Meitnerium : () => ruatanica.Praseodymium> ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->julianae : unknown ->sumatrana : julianae.sumatrana ->lutreolus : unknown ->cor : lutreolus.cor ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->x : ruatanica.Praseodymium> ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->julianae : unknown ->sumatrana : julianae.sumatrana ->lutreolus : unknown ->cor : lutreolus.cor ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->julianae : unknown ->galapagoensis : julianae.galapagoensis +>Meitnerium : () => ruatanica.Praseodymium>, Symbol(Meitnerium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 335, 369)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>cor : lutreolus.cor, Symbol(lutreolus.cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : ruatanica.Praseodymium>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 336, 127)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>cor : lutreolus.cor, Symbol(lutreolus.cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : ruatanica.Praseodymium> +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 336, 247)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : ruatanica.Praseodymium>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 336, 127)) pinetorum() : rionegrensis.caniventer { var x : rionegrensis.caniventer; () => { var y = this; }; return x; } ->pinetorum : () => rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>pinetorum : () => rionegrensis.caniventer, Symbol(pinetorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 336, 272)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 337, 47)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : rionegrensis.caniventer +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 337, 88)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 337, 47)) hoolock() : samarensis.pelurus { var x : samarensis.pelurus; () => { var y = this; }; return x; } ->hoolock : () => samarensis.pelurus ->samarensis : unknown ->pelurus : samarensis.pelurus ->argurus : unknown ->oreas : argurus.oreas ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : samarensis.pelurus ->samarensis : unknown ->pelurus : samarensis.pelurus ->argurus : unknown ->oreas : argurus.oreas ->argurus : unknown ->luctuosa : argurus.luctuosa +>hoolock : () => samarensis.pelurus, Symbol(hoolock, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 337, 113)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : samarensis.pelurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 338, 73)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : samarensis.pelurus +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 338, 142)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : samarensis.pelurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 338, 73)) poeyi() : gabriellae.echinatus { var x : gabriellae.echinatus; () => { var y = this; }; return x; } ->poeyi : () => gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>poeyi : () => gabriellae.echinatus, Symbol(poeyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 338, 167)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 339, 40)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : gabriellae.echinatus +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 339, 78)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 339, 40)) Thulium() : julianae.durangae { var x : julianae.durangae; () => { var y = this; }; return x; } ->Thulium : () => julianae.durangae ->julianae : unknown ->durangae : julianae.durangae ->x : julianae.durangae ->julianae : unknown ->durangae : julianae.durangae +>Thulium : () => julianae.durangae, Symbol(Thulium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 339, 103)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : julianae.durangae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 340, 39)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : julianae.durangae +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 340, 74)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : julianae.durangae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 340, 39)) patrius() : Lanthanum.jugularis { var x : Lanthanum.jugularis; () => { var y = this; }; return x; } ->patrius : () => Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>patrius : () => Lanthanum.jugularis, Symbol(patrius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 340, 99)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 341, 41)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : Lanthanum.jugularis +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 341, 78)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 341, 41)) quadraticauda() : julianae.nudicaudus { var x : julianae.nudicaudus; () => { var y = this; }; return x; } ->quadraticauda : () => julianae.nudicaudus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->x : julianae.nudicaudus ->julianae : unknown ->nudicaudus : julianae.nudicaudus +>quadraticauda : () => julianae.nudicaudus, Symbol(quadraticauda, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 341, 103)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : julianae.nudicaudus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 342, 47)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : julianae.nudicaudus +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 342, 84)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : julianae.nudicaudus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 342, 47)) ater() : ruatanica.americanus { var x : ruatanica.americanus; () => { var y = this; }; return x; } ->ater : () => ruatanica.americanus ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : ruatanica.americanus ->ruatanica : unknown ->americanus : ruatanica.americanus +>ater : () => ruatanica.americanus, Symbol(ater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 342, 109)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : ruatanica.americanus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 343, 39)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : kaiseri ->this : kaiseri ->x : ruatanica.americanus +>y : kaiseri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 343, 77)) +>this : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : ruatanica.americanus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 343, 39)) } export class aurata { ->aurata : aurata +>aurata : aurata, Symbol(aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) grunniens() : nigra.gracilis, julianae.sumatrana>, ruatanica.americanus> { var x : nigra.gracilis, julianae.sumatrana>, ruatanica.americanus>; () => { var y = this; }; return x; } ->grunniens : () => nigra.gracilis, julianae.sumatrana>, ruatanica.americanus> ->nigra : unknown ->gracilis : nigra.gracilis ->samarensis : unknown ->pelurus : samarensis.pelurus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->kaiseri : kaiseri ->lutreolus : unknown ->punicus : lutreolus.punicus ->julianae : unknown ->sumatrana : julianae.sumatrana ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : nigra.gracilis, julianae.sumatrana>, ruatanica.americanus> ->nigra : unknown ->gracilis : nigra.gracilis ->samarensis : unknown ->pelurus : samarensis.pelurus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->kaiseri : kaiseri ->lutreolus : unknown ->punicus : lutreolus.punicus ->julianae : unknown ->sumatrana : julianae.sumatrana ->ruatanica : unknown ->americanus : ruatanica.americanus +>grunniens : () => nigra.gracilis, julianae.sumatrana>, ruatanica.americanus>, Symbol(grunniens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 345, 23)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>kaiseri : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : nigra.gracilis, julianae.sumatrana>, ruatanica.americanus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 346, 150)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>kaiseri : kaiseri, Symbol(kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : aurata ->this : aurata ->x : nigra.gracilis, julianae.sumatrana>, ruatanica.americanus> +>y : aurata, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 346, 294)) +>this : aurata, Symbol(aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : nigra.gracilis, julianae.sumatrana>, ruatanica.americanus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 346, 150)) howensis() : ruatanica.americanus { var x : ruatanica.americanus; () => { var y = this; }; return x; } ->howensis : () => ruatanica.americanus ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : ruatanica.americanus ->ruatanica : unknown ->americanus : ruatanica.americanus +>howensis : () => ruatanica.americanus, Symbol(howensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 346, 319)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : ruatanica.americanus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 347, 43)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : aurata ->this : aurata ->x : ruatanica.americanus +>y : aurata, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 347, 81)) +>this : aurata, Symbol(aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : ruatanica.americanus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 347, 43)) karlkoopmani() : caurinus.psilurus { var x : caurinus.psilurus; () => { var y = this; }; return x; } ->karlkoopmani : () => caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus +>karlkoopmani : () => caurinus.psilurus, Symbol(karlkoopmani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 347, 106)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 348, 44)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : aurata ->this : aurata ->x : caurinus.psilurus +>y : aurata, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 348, 79)) +>this : aurata, Symbol(aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 348, 44)) mirapitanga() : julianae.albidens { var x : julianae.albidens; () => { var y = this; }; return x; } ->mirapitanga : () => julianae.albidens ->julianae : unknown ->albidens : julianae.albidens ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : julianae.albidens ->julianae : unknown ->albidens : julianae.albidens ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>mirapitanga : () => julianae.albidens, Symbol(mirapitanga, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 348, 104)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : julianae.albidens, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 349, 87)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : aurata ->this : aurata ->x : julianae.albidens +>y : aurata, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 349, 166)) +>this : aurata, Symbol(aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : julianae.albidens, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 349, 87)) ophiodon() : aurata { var x : aurata; () => { var y = this; }; return x; } ->ophiodon : () => aurata ->aurata : aurata ->x : aurata ->aurata : aurata +>ophiodon : () => aurata, Symbol(ophiodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 349, 191)) +>aurata : aurata, Symbol(aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 350, 29)) +>aurata : aurata, Symbol(aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : aurata ->this : aurata ->x : aurata +>y : aurata, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 350, 53)) +>this : aurata, Symbol(aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 350, 29)) landeri() : samarensis.pelurus { var x : samarensis.pelurus; () => { var y = this; }; return x; } ->landeri : () => samarensis.pelurus ->samarensis : unknown ->pelurus : samarensis.pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : samarensis.pelurus ->samarensis : unknown ->pelurus : samarensis.pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->ruatanica : unknown ->americanus : ruatanica.americanus +>landeri : () => samarensis.pelurus, Symbol(landeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 350, 78)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : samarensis.pelurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 351, 83)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : aurata ->this : aurata ->x : samarensis.pelurus +>y : aurata, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 351, 162)) +>this : aurata, Symbol(aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : samarensis.pelurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 351, 83)) sonomae() : trivirgatus.lotor, koepckeae> { var x : trivirgatus.lotor, koepckeae>; () => { var y = this; }; return x; } ->sonomae : () => trivirgatus.lotor, koepckeae> ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->panglima : unknown ->abidi : panglima.abidi ->lavali : unknown ->lepturus : lavali.lepturus ->caurinus : unknown ->psilurus : caurinus.psilurus ->koepckeae : koepckeae ->x : trivirgatus.lotor, koepckeae> ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->panglima : unknown ->abidi : panglima.abidi ->lavali : unknown ->lepturus : lavali.lepturus ->caurinus : unknown ->psilurus : caurinus.psilurus ->koepckeae : koepckeae +>sonomae : () => trivirgatus.lotor, koepckeae>, Symbol(sonomae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 351, 187)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>koepckeae : koepckeae, Symbol(koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : trivirgatus.lotor, koepckeae>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 352, 102)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>koepckeae : koepckeae, Symbol(koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) >() => { var y = this; } : () => void ->y : aurata ->this : aurata ->x : trivirgatus.lotor, koepckeae> +>y : aurata, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 352, 200)) +>this : aurata, Symbol(aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : trivirgatus.lotor, koepckeae>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 352, 102)) erythromos() : caurinus.johorensis, nigra.dolichurus> { var x : caurinus.johorensis, nigra.dolichurus>; () => { var y = this; }; return x; } ->erythromos : () => caurinus.johorensis, nigra.dolichurus> ->caurinus : unknown ->johorensis : caurinus.johorensis ->panglima : unknown ->fundatus : panglima.fundatus ->samarensis : unknown ->pallidus : samarensis.pallidus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->nigra : unknown ->dolichurus : nigra.dolichurus ->lavali : unknown ->lepturus : lavali.lepturus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : caurinus.johorensis, nigra.dolichurus> ->caurinus : unknown ->johorensis : caurinus.johorensis ->panglima : unknown ->fundatus : panglima.fundatus ->samarensis : unknown ->pallidus : samarensis.pallidus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->nigra : unknown ->dolichurus : nigra.dolichurus ->lavali : unknown ->lepturus : lavali.lepturus ->samarensis : unknown ->pallidus : samarensis.pallidus +>erythromos : () => caurinus.johorensis, nigra.dolichurus>, Symbol(erythromos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 352, 225)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : caurinus.johorensis, nigra.dolichurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 353, 160)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : aurata ->this : aurata ->x : caurinus.johorensis, nigra.dolichurus> +>y : aurata, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 353, 313)) +>this : aurata, Symbol(aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : caurinus.johorensis, nigra.dolichurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 353, 160)) } } module lutreolus { ->lutreolus : typeof lutreolus +>lutreolus : typeof lutreolus, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) export class schlegeli extends lavali.beisa { ->schlegeli : schlegeli ->lavali : typeof lavali ->beisa : lavali.beisa +>schlegeli : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>lavali.beisa : any, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>lavali : typeof lavali, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) mittendorfi() : rionegrensis.caniventer { var x : rionegrensis.caniventer; () => { var y = this; }; return x; } ->mittendorfi : () => rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>mittendorfi : () => rionegrensis.caniventer, Symbol(mittendorfi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 357, 47)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 358, 49)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : rionegrensis.caniventer +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 358, 90)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 358, 49)) blicki() : dogramacii.robustulus { var x : dogramacii.robustulus; () => { var y = this; }; return x; } ->blicki : () => dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>blicki : () => dogramacii.robustulus, Symbol(blicki, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 358, 115)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 359, 42)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : dogramacii.robustulus +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 359, 81)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 359, 42)) culionensis() : argurus.dauricus { var x : argurus.dauricus; () => { var y = this; }; return x; } ->culionensis : () => argurus.dauricus ->argurus : unknown ->dauricus : argurus.dauricus ->ruatanica : unknown ->americanus : ruatanica.americanus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : argurus.dauricus ->argurus : unknown ->dauricus : argurus.dauricus ->ruatanica : unknown ->americanus : ruatanica.americanus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>culionensis : () => argurus.dauricus, Symbol(culionensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 359, 106)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : argurus.dauricus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 360, 89)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : argurus.dauricus +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 360, 170)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : argurus.dauricus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 360, 89)) scrofa() : petrophilus.sodyi { var x : petrophilus.sodyi; () => { var y = this; }; return x; } ->scrofa : () => petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->gabriellae : unknown ->amicus : gabriellae.amicus ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->gabriellae : unknown ->amicus : gabriellae.amicus ->julianae : unknown ->sumatrana : julianae.sumatrana +>scrofa : () => petrophilus.sodyi, Symbol(scrofa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 360, 195)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 361, 77)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : petrophilus.sodyi +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 361, 151)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 361, 77)) fernandoni() : quasiater.carolinensis { var x : quasiater.carolinensis; () => { var y = this; }; return x; } ->fernandoni : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>fernandoni : () => quasiater.carolinensis, Symbol(fernandoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 361, 176)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 362, 47)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : quasiater.carolinensis +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 362, 87)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 362, 47)) Tin() : sagitta.leptoceros> { var x : sagitta.leptoceros>; () => { var y = this; }; return x; } ->Tin : () => sagitta.leptoceros> ->sagitta : unknown ->leptoceros : sagitta.leptoceros ->lutreolus : unknown ->punicus : punicus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : sagitta.leptoceros> ->sagitta : unknown ->leptoceros : sagitta.leptoceros ->lutreolus : unknown ->punicus : punicus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>Tin : () => sagitta.leptoceros>, Symbol(Tin, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 362, 112)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>leptoceros : sagitta.leptoceros, Symbol(sagitta.leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : sagitta.leptoceros>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 363, 126)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>leptoceros : sagitta.leptoceros, Symbol(sagitta.leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : sagitta.leptoceros> +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 363, 252)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : sagitta.leptoceros>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 363, 126)) marmorata() : panamensis.setulosus> { var x : panamensis.setulosus>; () => { var y = this; }; return x; } ->marmorata : () => panamensis.setulosus> ->panamensis : unknown ->setulosus : panamensis.setulosus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->lutreolus : unknown ->punicus : punicus ->x : panamensis.setulosus> ->panamensis : unknown ->setulosus : panamensis.setulosus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->lutreolus : unknown ->punicus : punicus +>marmorata : () => panamensis.setulosus>, Symbol(marmorata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 363, 277)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : panamensis.setulosus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 364, 129)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : panamensis.setulosus> +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 364, 252)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : panamensis.setulosus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 364, 129)) tavaratra() : Lanthanum.nitidus { var x : Lanthanum.nitidus; () => { var y = this; }; return x; } ->tavaratra : () => Lanthanum.nitidus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->howi : unknown ->marcanoi : howi.marcanoi ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : Lanthanum.nitidus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->howi : unknown ->marcanoi : howi.marcanoi ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>tavaratra : () => Lanthanum.nitidus, Symbol(tavaratra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 364, 277)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : Lanthanum.nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 365, 81)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : Lanthanum.nitidus +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 365, 156)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : Lanthanum.nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 365, 81)) peregrina() : daubentonii.nesiotes { var x : daubentonii.nesiotes; () => { var y = this; }; return x; } ->peregrina : () => daubentonii.nesiotes ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->lutreolus : unknown ->punicus : punicus ->x : daubentonii.nesiotes ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->lutreolus : unknown ->punicus : punicus +>peregrina : () => daubentonii.nesiotes, Symbol(peregrina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 365, 181)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : daubentonii.nesiotes, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 366, 88)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : daubentonii.nesiotes +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 366, 170)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : daubentonii.nesiotes, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 366, 88)) frontalis() : macrorhinos.marmosurus>, samarensis.pallidus> { var x : macrorhinos.marmosurus>, samarensis.pallidus>; () => { var y = this; }; return x; } ->frontalis : () => macrorhinos.marmosurus>, samarensis.pallidus> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->ruatanica : unknown ->hector : ruatanica.hector ->julianae : unknown ->sumatrana : julianae.sumatrana ->samarensis : unknown ->pelurus : samarensis.pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->sagitta : unknown ->walkeri : sagitta.walkeri ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : macrorhinos.marmosurus>, samarensis.pallidus> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->ruatanica : unknown ->hector : ruatanica.hector ->julianae : unknown ->sumatrana : julianae.sumatrana ->samarensis : unknown ->pelurus : samarensis.pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->sagitta : unknown ->walkeri : sagitta.walkeri ->samarensis : unknown ->pallidus : samarensis.pallidus +>frontalis : () => macrorhinos.marmosurus>, samarensis.pallidus>, Symbol(frontalis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 366, 195)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : macrorhinos.marmosurus>, samarensis.pallidus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 367, 163)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : macrorhinos.marmosurus>, samarensis.pallidus> +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 367, 320)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : macrorhinos.marmosurus>, samarensis.pallidus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 367, 163)) cuniculus() : patas.uralensis { var x : patas.uralensis; () => { var y = this; }; return x; } ->cuniculus : () => patas.uralensis ->patas : unknown ->uralensis : patas.uralensis ->x : patas.uralensis ->patas : unknown ->uralensis : patas.uralensis +>cuniculus : () => patas.uralensis, Symbol(cuniculus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 367, 345)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : patas.uralensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 368, 39)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : patas.uralensis +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 368, 72)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : patas.uralensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 368, 39)) magdalenae() : julianae.gerbillus> { var x : julianae.gerbillus>; () => { var y = this; }; return x; } ->magdalenae : () => julianae.gerbillus> ->julianae : unknown ->gerbillus : julianae.gerbillus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->rendalli : unknown ->crenulata : rendalli.crenulata ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : julianae.gerbillus> ->julianae : unknown ->gerbillus : julianae.gerbillus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->rendalli : unknown ->crenulata : rendalli.crenulata ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>magdalenae : () => julianae.gerbillus>, Symbol(magdalenae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 368, 97)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : julianae.gerbillus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 369, 131)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : julianae.gerbillus> +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 369, 255)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : julianae.gerbillus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 369, 131)) andamanensis() : julianae.oralis { var x : julianae.oralis; () => { var y = this; }; return x; } ->andamanensis : () => julianae.oralis ->julianae : unknown ->oralis : julianae.oralis ->ruatanica : unknown ->americanus : ruatanica.americanus ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->x : julianae.oralis ->julianae : unknown ->oralis : julianae.oralis ->ruatanica : unknown ->americanus : ruatanica.americanus ->rendalli : unknown ->zuluensis : rendalli.zuluensis +>andamanensis : () => julianae.oralis, Symbol(andamanensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 369, 280)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : julianae.oralis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 370, 84)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : julianae.oralis +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 370, 159)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : julianae.oralis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 370, 84)) dispar() : panamensis.linulus { var x : panamensis.linulus; () => { var y = this; }; return x; } ->dispar : () => panamensis.linulus ->panamensis : unknown ->linulus : panamensis.linulus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->minutus : unknown ->portoricensis : minutus.portoricensis ->x : panamensis.linulus ->panamensis : unknown ->linulus : panamensis.linulus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->minutus : unknown ->portoricensis : minutus.portoricensis +>dispar : () => panamensis.linulus, Symbol(dispar, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 370, 184)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>x : panamensis.linulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 371, 82)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) >() => { var y = this; } : () => void ->y : schlegeli ->this : schlegeli ->x : panamensis.linulus +>y : schlegeli, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 371, 161)) +>this : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : panamensis.linulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 371, 82)) } } module argurus { ->argurus : typeof argurus +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) export class dauricus { ->dauricus : dauricus ->T0 : T0 ->T1 : T1 +>dauricus : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 375, 24)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 375, 27)) chinensis() : Lanthanum.jugularis { var x : Lanthanum.jugularis; () => { var y = this; }; return x; } ->chinensis : () => Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>chinensis : () => Lanthanum.jugularis, Symbol(chinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 375, 33)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 376, 43)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : dauricus ->this : dauricus ->x : Lanthanum.jugularis +>y : dauricus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 376, 80)) +>this : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 376, 43)) duodecimcostatus() : lavali.xanthognathus { var x : lavali.xanthognathus; () => { var y = this; }; return x; } ->duodecimcostatus : () => lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>duodecimcostatus : () => lavali.xanthognathus, Symbol(duodecimcostatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 376, 105)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 377, 51)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : dauricus ->this : dauricus ->x : lavali.xanthognathus +>y : dauricus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 377, 89)) +>this : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 377, 51)) foxi() : daubentonii.nesiotes { var x : daubentonii.nesiotes; () => { var y = this; }; return x; } ->foxi : () => daubentonii.nesiotes ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->lavali : unknown ->beisa : lavali.beisa ->lavali : unknown ->lepturus : lavali.lepturus ->x : daubentonii.nesiotes ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->lavali : unknown ->beisa : lavali.beisa ->lavali : unknown ->lepturus : lavali.lepturus +>foxi : () => daubentonii.nesiotes, Symbol(foxi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 377, 114)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : daubentonii.nesiotes, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 378, 70)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : dauricus ->this : dauricus ->x : daubentonii.nesiotes +>y : dauricus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 378, 139)) +>this : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>x : daubentonii.nesiotes, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 378, 70)) macleayii() : petrophilus.sodyi>, petrophilus.minutilla> { var x : petrophilus.sodyi>, petrophilus.minutilla>; () => { var y = this; }; return x; } ->macleayii : () => petrophilus.sodyi>, petrophilus.minutilla> ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->quasiater : unknown ->wattsi : quasiater.wattsi ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->x : petrophilus.sodyi>, petrophilus.minutilla> ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->quasiater : unknown ->wattsi : quasiater.wattsi ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->petrophilus : unknown ->minutilla : petrophilus.minutilla +>macleayii : () => petrophilus.sodyi>, petrophilus.minutilla>, Symbol(macleayii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 378, 164)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>x : petrophilus.sodyi>, petrophilus.minutilla>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 379, 173)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) >() => { var y = this; } : () => void ->y : dauricus ->this : dauricus ->x : petrophilus.sodyi>, petrophilus.minutilla> +>y : dauricus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 379, 340)) +>this : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>x : petrophilus.sodyi>, petrophilus.minutilla>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 379, 173)) darienensis() : trivirgatus.oconnelli { var x : trivirgatus.oconnelli; () => { var y = this; }; return x; } ->darienensis : () => trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>darienensis : () => trivirgatus.oconnelli, Symbol(darienensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 379, 365)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 380, 47)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : dauricus ->this : dauricus ->x : trivirgatus.oconnelli +>y : dauricus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 380, 86)) +>this : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 380, 47)) hardwickii() : macrorhinos.daphaenodon { var x : macrorhinos.daphaenodon; () => { var y = this; }; return x; } ->hardwickii : () => macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>hardwickii : () => macrorhinos.daphaenodon, Symbol(hardwickii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 380, 111)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 381, 48)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : dauricus ->this : dauricus ->x : macrorhinos.daphaenodon +>y : dauricus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 381, 89)) +>this : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 381, 48)) albifrons() : rionegrensis.veraecrucis { var x : rionegrensis.veraecrucis; () => { var y = this; }; return x; } ->albifrons : () => rionegrensis.veraecrucis ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->lavali : unknown ->lepturus : lavali.lepturus ->julianae : unknown ->durangae : julianae.durangae ->x : rionegrensis.veraecrucis ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->lavali : unknown ->lepturus : lavali.lepturus ->julianae : unknown ->durangae : julianae.durangae +>albifrons : () => rionegrensis.veraecrucis, Symbol(albifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 381, 114)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : rionegrensis.veraecrucis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 382, 84)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) >() => { var y = this; } : () => void ->y : dauricus ->this : dauricus ->x : rionegrensis.veraecrucis +>y : dauricus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 382, 162)) +>this : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>x : rionegrensis.veraecrucis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 382, 84)) jacobitus() : caurinus.johorensis>> { var x : caurinus.johorensis>>; () => { var y = this; }; return x; } ->jacobitus : () => caurinus.johorensis>> ->caurinus : unknown ->johorensis : caurinus.johorensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->caurinus : unknown ->johorensis : caurinus.johorensis ->argurus : unknown ->peninsulae : peninsulae ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->argurus : unknown ->germaini : germaini ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : caurinus.johorensis>> ->caurinus : unknown ->johorensis : caurinus.johorensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->caurinus : unknown ->johorensis : caurinus.johorensis ->argurus : unknown ->peninsulae : peninsulae ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->argurus : unknown ->germaini : germaini ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>jacobitus : () => caurinus.johorensis>>, Symbol(jacobitus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 382, 187)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : germaini, Symbol(germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : caurinus.johorensis>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 383, 169)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : germaini, Symbol(germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : dauricus ->this : dauricus ->x : caurinus.johorensis>> +>y : dauricus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 383, 332)) +>this : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>x : caurinus.johorensis>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 383, 169)) guentheri() : rendalli.moojeni { var x : rendalli.moojeni; () => { var y = this; }; return x; } ->guentheri : () => rendalli.moojeni ->rendalli : unknown ->moojeni : rendalli.moojeni ->lutreolus : unknown ->foina : lutreolus.foina ->argurus : unknown ->oreas : oreas ->x : rendalli.moojeni ->rendalli : unknown ->moojeni : rendalli.moojeni ->lutreolus : unknown ->foina : lutreolus.foina ->argurus : unknown ->oreas : oreas +>guentheri : () => rendalli.moojeni, Symbol(guentheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 383, 357)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : rendalli.moojeni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 384, 72)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : dauricus ->this : dauricus ->x : rendalli.moojeni +>y : dauricus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 384, 138)) +>this : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>x : rendalli.moojeni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 384, 72)) mahomet() : imperfecta.ciliolabrum { var x : imperfecta.ciliolabrum; () => { var y = this; }; return x; } ->mahomet : () => imperfecta.ciliolabrum ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->argurus : unknown ->germaini : germaini ->lutreolus : unknown ->foina : lutreolus.foina ->x : imperfecta.ciliolabrum ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->argurus : unknown ->germaini : germaini ->lutreolus : unknown ->foina : lutreolus.foina +>mahomet : () => imperfecta.ciliolabrum, Symbol(mahomet, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 384, 163)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : germaini, Symbol(germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : imperfecta.ciliolabrum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 385, 79)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : germaini, Symbol(germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : dauricus ->this : dauricus ->x : imperfecta.ciliolabrum +>y : dauricus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 385, 154)) +>this : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>x : imperfecta.ciliolabrum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 385, 79)) misionensis() : macrorhinos.marmosurus, gabriellae.echinatus> { var x : macrorhinos.marmosurus, gabriellae.echinatus>; () => { var y = this; }; return x; } ->misionensis : () => macrorhinos.marmosurus, gabriellae.echinatus> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : macrorhinos.marmosurus, gabriellae.echinatus> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>misionensis : () => macrorhinos.marmosurus, gabriellae.echinatus>, Symbol(misionensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 385, 179)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : macrorhinos.marmosurus, gabriellae.echinatus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 386, 141)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : dauricus ->this : dauricus ->x : macrorhinos.marmosurus, gabriellae.echinatus> +>y : dauricus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 386, 274)) +>this : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>x : macrorhinos.marmosurus, gabriellae.echinatus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 386, 141)) } } module nigra { ->nigra : typeof nigra +>nigra : typeof nigra, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) export class dolichurus { ->dolichurus : dolichurus ->T0 : T0 ->T1 : T1 +>dolichurus : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 390, 26)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 390, 29)) solomonis() : panglima.abidi, argurus.netscheri, julianae.oralis>>> { var x : panglima.abidi, argurus.netscheri, julianae.oralis>>>; () => { var y = this; }; return x; } ->solomonis : () => panglima.abidi, argurus.netscheri, julianae.oralis>>> ->panglima : unknown ->abidi : panglima.abidi ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rendalli : unknown ->crenulata : rendalli.crenulata ->gabriellae : unknown ->klossii : gabriellae.klossii ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata ->argurus : unknown ->netscheri : argurus.netscheri ->minutus : unknown ->inez : minutus.inez ->argurus : unknown ->peninsulae : argurus.peninsulae ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->julianae : unknown ->oralis : julianae.oralis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->argurus : unknown ->oreas : argurus.oreas ->x : panglima.abidi, argurus.netscheri, julianae.oralis>>> ->panglima : unknown ->abidi : panglima.abidi ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rendalli : unknown ->crenulata : rendalli.crenulata ->gabriellae : unknown ->klossii : gabriellae.klossii ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata ->argurus : unknown ->netscheri : argurus.netscheri ->minutus : unknown ->inez : minutus.inez ->argurus : unknown ->peninsulae : argurus.peninsulae ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->julianae : unknown ->oralis : julianae.oralis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->argurus : unknown ->oreas : argurus.oreas +>solomonis : () => panglima.abidi, argurus.netscheri, julianae.oralis>>>, Symbol(solomonis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 390, 35)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : panglima.abidi, argurus.netscheri, julianae.oralis>>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 391, 270)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : dolichurus ->this : dolichurus ->x : panglima.abidi, argurus.netscheri, julianae.oralis>>> +>y : dolichurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 391, 534)) +>this : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>x : panglima.abidi, argurus.netscheri, julianae.oralis>>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 391, 270)) alfredi() : caurinus.psilurus { var x : caurinus.psilurus; () => { var y = this; }; return x; } ->alfredi : () => caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus +>alfredi : () => caurinus.psilurus, Symbol(alfredi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 391, 559)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 392, 39)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : dolichurus ->this : dolichurus ->x : caurinus.psilurus +>y : dolichurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 392, 74)) +>this : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 392, 39)) morrisi() : ruatanica.hector, quasiater.wattsi>>> { var x : ruatanica.hector, quasiater.wattsi>>>; () => { var y = this; }; return x; } ->morrisi : () => ruatanica.hector, quasiater.wattsi>>> ->ruatanica : unknown ->hector : ruatanica.hector ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->sagitta : unknown ->cinereus : sagitta.cinereus ->nigra : unknown ->caucasica : caucasica ->julianae : unknown ->sumatrana : julianae.sumatrana ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->quasiater : unknown ->wattsi : quasiater.wattsi ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : ruatanica.hector, quasiater.wattsi>>> ->ruatanica : unknown ->hector : ruatanica.hector ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->sagitta : unknown ->cinereus : sagitta.cinereus ->nigra : unknown ->caucasica : caucasica ->julianae : unknown ->sumatrana : julianae.sumatrana ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->quasiater : unknown ->wattsi : quasiater.wattsi ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>morrisi : () => ruatanica.hector, quasiater.wattsi>>>, Symbol(morrisi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 392, 99)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>caucasica : caucasica, Symbol(caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : ruatanica.hector, quasiater.wattsi>>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 393, 248)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>caucasica : caucasica, Symbol(caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : dolichurus ->this : dolichurus ->x : ruatanica.hector, quasiater.wattsi>>> +>y : dolichurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 393, 492)) +>this : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>x : ruatanica.hector, quasiater.wattsi>>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 393, 248)) lekaguli() : Lanthanum.nitidus { var x : Lanthanum.nitidus; () => { var y = this; }; return x; } ->lekaguli : () => Lanthanum.nitidus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->dammermani : unknown ->melanops : dammermani.melanops ->lavali : unknown ->lepturus : lavali.lepturus ->x : Lanthanum.nitidus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->dammermani : unknown ->melanops : dammermani.melanops ->lavali : unknown ->lepturus : lavali.lepturus +>lekaguli : () => Lanthanum.nitidus, Symbol(lekaguli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 393, 517)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : Lanthanum.nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 394, 78)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : dolichurus ->this : dolichurus ->x : Lanthanum.nitidus +>y : dolichurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 394, 151)) +>this : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>x : Lanthanum.nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 394, 78)) dimissus() : imperfecta.subspinosus { var x : imperfecta.subspinosus; () => { var y = this; }; return x; } ->dimissus : () => imperfecta.subspinosus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : imperfecta.subspinosus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>dimissus : () => imperfecta.subspinosus, Symbol(dimissus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 394, 176)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : imperfecta.subspinosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 395, 45)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : dolichurus ->this : dolichurus ->x : imperfecta.subspinosus +>y : dolichurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 395, 85)) +>this : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>x : imperfecta.subspinosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 395, 45)) phaeotis() : julianae.sumatrana { var x : julianae.sumatrana; () => { var y = this; }; return x; } ->phaeotis : () => julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana +>phaeotis : () => julianae.sumatrana, Symbol(phaeotis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 395, 110)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 396, 41)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : dolichurus ->this : dolichurus ->x : julianae.sumatrana +>y : dolichurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 396, 77)) +>this : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 396, 41)) ustus() : julianae.acariensis { var x : julianae.acariensis; () => { var y = this; }; return x; } ->ustus : () => julianae.acariensis ->julianae : unknown ->acariensis : julianae.acariensis ->x : julianae.acariensis ->julianae : unknown ->acariensis : julianae.acariensis +>ustus : () => julianae.acariensis, Symbol(ustus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 396, 102)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : julianae.acariensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 397, 39)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) >() => { var y = this; } : () => void ->y : dolichurus ->this : dolichurus ->x : julianae.acariensis +>y : dolichurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 397, 76)) +>this : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>x : julianae.acariensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 397, 39)) sagei() : howi.marcanoi { var x : howi.marcanoi; () => { var y = this; }; return x; } ->sagei : () => howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi ->x : howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi +>sagei : () => howi.marcanoi, Symbol(sagei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 397, 101)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 398, 33)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : dolichurus ->this : dolichurus ->x : howi.marcanoi +>y : dolichurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 398, 64)) +>this : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 398, 33)) } } module panglima { ->panglima : typeof panglima +>panglima : typeof panglima, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) export class amphibius extends caurinus.johorensis, Lanthanum.jugularis> { ->amphibius : amphibius ->T0 : T0 ->T1 : T1 ->caurinus : typeof caurinus ->johorensis : caurinus.johorensis ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->julianae : unknown ->sumatrana : julianae.sumatrana ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>amphibius : amphibius, Symbol(amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 402, 27)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 402, 30)) +>caurinus.johorensis : any, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>caurinus : typeof caurinus, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) bottegi(): macrorhinos.marmosurus, gabriellae.echinatus>, sagitta.stolzmanni> { var x: macrorhinos.marmosurus, gabriellae.echinatus>, sagitta.stolzmanni>; () => { var y = this; }; return x; } ->bottegi : () => macrorhinos.marmosurus, gabriellae.echinatus>, sagitta.stolzmanni> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->rendalli : unknown ->moojeni : rendalli.moojeni ->amphibius : amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : macrorhinos.marmosurus, gabriellae.echinatus>, sagitta.stolzmanni> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->rendalli : unknown ->moojeni : rendalli.moojeni ->amphibius : amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>bottegi : () => macrorhinos.marmosurus, gabriellae.echinatus>, sagitta.stolzmanni>, Symbol(bottegi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 402, 147)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>amphibius : amphibius, Symbol(amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : macrorhinos.marmosurus, gabriellae.echinatus>, sagitta.stolzmanni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 403, 160)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>amphibius : amphibius, Symbol(amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : amphibius ->this : amphibius ->x : macrorhinos.marmosurus, gabriellae.echinatus>, sagitta.stolzmanni> +>y : amphibius, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 403, 312)) +>this : amphibius, Symbol(amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>x : macrorhinos.marmosurus, gabriellae.echinatus>, sagitta.stolzmanni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 403, 160)) jerdoni(): macrorhinos.daphaenodon { var x: macrorhinos.daphaenodon; () => { var y = this; }; return x; } ->jerdoni : () => macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>jerdoni : () => macrorhinos.daphaenodon, Symbol(jerdoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 403, 337)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 404, 48)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : amphibius ->this : amphibius ->x : macrorhinos.daphaenodon +>y : amphibius, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 404, 88)) +>this : amphibius, Symbol(amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 404, 48)) camtschatica(): samarensis.pallidus { var x: samarensis.pallidus; () => { var y = this; }; return x; } ->camtschatica : () => samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus +>camtschatica : () => samarensis.pallidus, Symbol(camtschatica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 404, 113)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 405, 49)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : amphibius ->this : amphibius ->x : samarensis.pallidus +>y : amphibius, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 405, 85)) +>this : amphibius, Symbol(amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 405, 49)) spadix(): petrophilus.sodyi { var x: petrophilus.sodyi; () => { var y = this; }; return x; } ->spadix : () => petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->caurinus : unknown ->psilurus : caurinus.psilurus +>spadix : () => petrophilus.sodyi, Symbol(spadix, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 405, 110)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 406, 85)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : amphibius ->this : amphibius ->x : petrophilus.sodyi +>y : amphibius, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 406, 163)) +>this : amphibius, Symbol(amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 406, 85)) luismanueli(): rendalli.moojeni { var x: rendalli.moojeni; () => { var y = this; }; return x; } ->luismanueli : () => rendalli.moojeni ->rendalli : unknown ->moojeni : rendalli.moojeni ->julianae : unknown ->sumatrana : julianae.sumatrana ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : rendalli.moojeni ->rendalli : unknown ->moojeni : rendalli.moojeni ->julianae : unknown ->sumatrana : julianae.sumatrana ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>luismanueli : () => rendalli.moojeni, Symbol(luismanueli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 406, 188)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : rendalli.moojeni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 407, 88)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : amphibius ->this : amphibius ->x : rendalli.moojeni +>y : amphibius, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 407, 164)) +>this : amphibius, Symbol(amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>x : rendalli.moojeni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 407, 88)) aceramarcae(): daubentonii.arboreus { var x: daubentonii.arboreus; () => { var y = this; }; return x; } ->aceramarcae : () => daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->julianae : unknown ->steerii : julianae.steerii ->x : daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->julianae : unknown ->steerii : julianae.steerii +>aceramarcae : () => daubentonii.arboreus, Symbol(aceramarcae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 407, 189)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 408, 88)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : amphibius ->this : amphibius ->x : daubentonii.arboreus +>y : amphibius, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 408, 164)) +>this : amphibius, Symbol(amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 408, 88)) } export class fundatus extends lutreolus.schlegeli { ->fundatus : fundatus ->T0 : T0 ->T1 : T1 ->lutreolus : typeof lutreolus ->schlegeli : lutreolus.schlegeli +>fundatus : fundatus, Symbol(fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 410, 26)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 410, 29)) +>lutreolus.schlegeli : any, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>lutreolus : typeof lutreolus, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) crassulus(): nigra.gracilis { var x: nigra.gracilis; () => { var y = this; }; return x; } ->crassulus : () => nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>crassulus : () => nigra.gracilis, Symbol(crassulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 410, 63)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 411, 85)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : fundatus ->this : fundatus ->x : nigra.gracilis +>y : fundatus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 411, 160)) +>this : fundatus, Symbol(fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 411, 85)) flamarioni(): imperfecta.lasiurus>, sagitta.leptoceros>> { var x: imperfecta.lasiurus>, sagitta.leptoceros>>; () => { var y = this; }; return x; } ->flamarioni : () => imperfecta.lasiurus>, sagitta.leptoceros>> ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->amphibius : amphibius ->patas : unknown ->uralensis : patas.uralensis ->gabriellae : unknown ->klossii : gabriellae.klossii ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata ->sagitta : unknown ->leptoceros : sagitta.leptoceros ->lutreolus : unknown ->punicus : lutreolus.punicus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : imperfecta.lasiurus>, sagitta.leptoceros>> ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->amphibius : amphibius ->patas : unknown ->uralensis : patas.uralensis ->gabriellae : unknown ->klossii : gabriellae.klossii ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata ->sagitta : unknown ->leptoceros : sagitta.leptoceros ->lutreolus : unknown ->punicus : lutreolus.punicus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>flamarioni : () => imperfecta.lasiurus>, sagitta.leptoceros>>, Symbol(flamarioni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 411, 185)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>amphibius : amphibius, Symbol(amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>leptoceros : sagitta.leptoceros, Symbol(sagitta.leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : imperfecta.lasiurus>, sagitta.leptoceros>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 412, 245)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>amphibius : amphibius, Symbol(amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>leptoceros : sagitta.leptoceros, Symbol(sagitta.leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : fundatus ->this : fundatus ->x : imperfecta.lasiurus>, sagitta.leptoceros>> +>y : fundatus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 412, 479)) +>this : fundatus, Symbol(fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>x : imperfecta.lasiurus>, sagitta.leptoceros>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 412, 245)) mirabilis(): macrorhinos.marmosurus, lavali.lepturus> { var x: macrorhinos.marmosurus, lavali.lepturus>; () => { var y = this; }; return x; } ->mirabilis : () => macrorhinos.marmosurus, lavali.lepturus> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->julianae : unknown ->steerii : julianae.steerii ->lavali : unknown ->beisa : lavali.beisa ->lavali : unknown ->lepturus : lavali.lepturus ->x : macrorhinos.marmosurus, lavali.lepturus> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->julianae : unknown ->steerii : julianae.steerii ->lavali : unknown ->beisa : lavali.beisa ->lavali : unknown ->lepturus : lavali.lepturus +>mirabilis : () => macrorhinos.marmosurus, lavali.lepturus>, Symbol(mirabilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 412, 504)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : macrorhinos.marmosurus, lavali.lepturus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 413, 119)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : fundatus ->this : fundatus ->x : macrorhinos.marmosurus, lavali.lepturus> +>y : fundatus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 413, 228)) +>this : fundatus, Symbol(fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>x : macrorhinos.marmosurus, lavali.lepturus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 413, 119)) } export class abidi extends argurus.dauricus { ->abidi : abidi ->T0 : T0 ->T1 : T1 ->argurus : typeof argurus ->dauricus : argurus.dauricus ->argurus : unknown ->germaini : argurus.germaini ->julianae : unknown ->durangae : julianae.durangae +>abidi : abidi, Symbol(abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 415, 23)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 415, 26)) +>argurus.dauricus : any, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) greyii(): trivirgatus.oconnelli { var x: trivirgatus.oconnelli; () => { var y = this; }; return x; } ->greyii : () => trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>greyii : () => trivirgatus.oconnelli, Symbol(greyii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 415, 94)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 416, 45)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : abidi ->this : abidi ->x : trivirgatus.oconnelli +>y : abidi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 416, 83)) +>this : abidi, Symbol(abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 416, 45)) macedonicus(): petrophilus.minutilla { var x: petrophilus.minutilla; () => { var y = this; }; return x; } ->macedonicus : () => petrophilus.minutilla ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->x : petrophilus.minutilla ->petrophilus : unknown ->minutilla : petrophilus.minutilla +>macedonicus : () => petrophilus.minutilla, Symbol(macedonicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 416, 108)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>x : petrophilus.minutilla, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 417, 50)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) >() => { var y = this; } : () => void ->y : abidi ->this : abidi ->x : petrophilus.minutilla +>y : abidi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 417, 88)) +>this : abidi, Symbol(abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>x : petrophilus.minutilla, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 417, 50)) galili(): samarensis.cahirinus { var x: samarensis.cahirinus; () => { var y = this; }; return x; } ->galili : () => samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->dammermani : unknown ->melanops : dammermani.melanops ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->dammermani : unknown ->melanops : dammermani.melanops ->samarensis : unknown ->pallidus : samarensis.pallidus +>galili : () => samarensis.cahirinus, Symbol(galili, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 417, 113)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 418, 86)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : abidi ->this : abidi ->x : samarensis.cahirinus +>y : abidi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 418, 165)) +>this : abidi, Symbol(abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 418, 86)) thierryi(): dogramacii.robustulus { var x: dogramacii.robustulus; () => { var y = this; }; return x; } ->thierryi : () => dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>thierryi : () => dogramacii.robustulus, Symbol(thierryi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 418, 190)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 419, 47)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : abidi ->this : abidi ->x : dogramacii.robustulus +>y : abidi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 419, 85)) +>this : abidi, Symbol(abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 419, 47)) ega(): imperfecta.lasiurus> { var x: imperfecta.lasiurus>; () => { var y = this; }; return x; } ->ega : () => imperfecta.lasiurus> ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->julianae : unknown ->acariensis : julianae.acariensis ->howi : unknown ->coludo : howi.coludo ->argurus : unknown ->oreas : argurus.oreas ->howi : unknown ->marcanoi : howi.marcanoi ->x : imperfecta.lasiurus> ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->julianae : unknown ->acariensis : julianae.acariensis ->howi : unknown ->coludo : howi.coludo ->argurus : unknown ->oreas : argurus.oreas ->howi : unknown ->marcanoi : howi.marcanoi +>ega : () => imperfecta.lasiurus>, Symbol(ega, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 419, 110)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : imperfecta.lasiurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 420, 104)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : abidi ->this : abidi ->x : imperfecta.lasiurus> +>y : abidi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 420, 204)) +>this : abidi, Symbol(abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>x : imperfecta.lasiurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 420, 104)) } } module quasiater { ->quasiater : typeof quasiater +>quasiater : typeof quasiater, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) export class carolinensis { ->carolinensis : carolinensis +>carolinensis : carolinensis, Symbol(carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) concinna(): rendalli.zuluensis { var x: rendalli.zuluensis; () => { var y = this; }; return x; } ->concinna : () => rendalli.zuluensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->x : rendalli.zuluensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis +>concinna : () => rendalli.zuluensis, Symbol(concinna, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 424, 31)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : rendalli.zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 425, 44)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) >() => { var y = this; } : () => void ->y : carolinensis ->this : carolinensis ->x : rendalli.zuluensis +>y : carolinensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 425, 79)) +>this : carolinensis, Symbol(carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : rendalli.zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 425, 44)) aeneus(): howi.marcanoi { var x: howi.marcanoi; () => { var y = this; }; return x; } ->aeneus : () => howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi ->x : howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi +>aeneus : () => howi.marcanoi, Symbol(aeneus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 425, 104)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 426, 37)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : carolinensis ->this : carolinensis ->x : howi.marcanoi +>y : carolinensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 426, 67)) +>this : carolinensis, Symbol(carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 426, 37)) aloysiisabaudiae(): argurus.netscheri, lavali.lepturus> { var x: argurus.netscheri, lavali.lepturus>; () => { var y = this; }; return x; } ->aloysiisabaudiae : () => argurus.netscheri, lavali.lepturus> ->argurus : unknown ->netscheri : argurus.netscheri ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->argurus : unknown ->oreas : argurus.oreas ->lavali : unknown ->beisa : lavali.beisa ->lavali : unknown ->lepturus : lavali.lepturus ->x : argurus.netscheri, lavali.lepturus> ->argurus : unknown ->netscheri : argurus.netscheri ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->argurus : unknown ->oreas : argurus.oreas ->lavali : unknown ->beisa : lavali.beisa ->lavali : unknown ->lepturus : lavali.lepturus +>aloysiisabaudiae : () => argurus.netscheri, lavali.lepturus>, Symbol(aloysiisabaudiae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 426, 92)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : argurus.netscheri, lavali.lepturus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 427, 116)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : carolinensis ->this : carolinensis ->x : argurus.netscheri, lavali.lepturus> +>y : carolinensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 427, 215)) +>this : carolinensis, Symbol(carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : argurus.netscheri, lavali.lepturus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 427, 116)) tenellus(): julianae.nudicaudus { var x: julianae.nudicaudus; () => { var y = this; }; return x; } ->tenellus : () => julianae.nudicaudus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->x : julianae.nudicaudus ->julianae : unknown ->nudicaudus : julianae.nudicaudus +>tenellus : () => julianae.nudicaudus, Symbol(tenellus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 427, 240)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : julianae.nudicaudus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 428, 45)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) >() => { var y = this; } : () => void ->y : carolinensis ->this : carolinensis ->x : julianae.nudicaudus +>y : carolinensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 428, 81)) +>this : carolinensis, Symbol(carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : julianae.nudicaudus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 428, 45)) andium(): lavali.beisa { var x: lavali.beisa; () => { var y = this; }; return x; } ->andium : () => lavali.beisa ->lavali : unknown ->beisa : lavali.beisa ->x : lavali.beisa ->lavali : unknown ->beisa : lavali.beisa +>andium : () => lavali.beisa, Symbol(andium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 428, 106)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : lavali.beisa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 429, 36)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : carolinensis ->this : carolinensis ->x : lavali.beisa +>y : carolinensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 429, 65)) +>this : carolinensis, Symbol(carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : lavali.beisa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 429, 36)) persephone(): panglima.fundatus { var x: panglima.fundatus; () => { var y = this; }; return x; } ->persephone : () => panglima.fundatus ->panglima : unknown ->fundatus : panglima.fundatus ->samarensis : unknown ->pallidus : samarensis.pallidus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : panglima.fundatus ->panglima : unknown ->fundatus : panglima.fundatus ->samarensis : unknown ->pallidus : samarensis.pallidus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>persephone : () => panglima.fundatus, Symbol(persephone, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 429, 90)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : panglima.fundatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 430, 86)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : carolinensis ->this : carolinensis ->x : panglima.fundatus +>y : carolinensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 430, 161)) +>this : carolinensis, Symbol(carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : panglima.fundatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 430, 86)) patrizii(): Lanthanum.megalonyx { var x: Lanthanum.megalonyx; () => { var y = this; }; return x; } ->patrizii : () => Lanthanum.megalonyx ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->x : Lanthanum.megalonyx ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx +>patrizii : () => Lanthanum.megalonyx, Symbol(patrizii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 430, 186)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : Lanthanum.megalonyx, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 431, 45)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) >() => { var y = this; } : () => void ->y : carolinensis ->this : carolinensis ->x : Lanthanum.megalonyx +>y : carolinensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 431, 81)) +>this : carolinensis, Symbol(carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : Lanthanum.megalonyx, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 431, 45)) } } module minutus { ->minutus : typeof minutus +>minutus : typeof minutus, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) export class himalayana extends lutreolus.punicus { ->himalayana : himalayana ->T0 : T0 ->T1 : T1 ->lutreolus : typeof lutreolus ->punicus : lutreolus.punicus +>himalayana : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 435, 28)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 435, 31)) +>lutreolus.punicus : any, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>lutreolus : typeof lutreolus, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) simoni(): argurus.netscheri> { var x: argurus.netscheri>; () => { var y = this; }; return x; } ->simoni : () => argurus.netscheri> ->argurus : unknown ->netscheri : argurus.netscheri ->lavali : unknown ->lepturus : lavali.lepturus ->argurus : unknown ->dauricus : argurus.dauricus ->argurus : unknown ->oreas : argurus.oreas ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : argurus.netscheri> ->argurus : unknown ->netscheri : argurus.netscheri ->lavali : unknown ->lepturus : lavali.lepturus ->argurus : unknown ->dauricus : argurus.dauricus ->argurus : unknown ->oreas : argurus.oreas ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>simoni : () => argurus.netscheri>, Symbol(simoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 435, 63)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : argurus.netscheri>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 436, 115)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : himalayana ->this : himalayana ->x : argurus.netscheri> +>y : himalayana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 436, 223)) +>this : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>x : argurus.netscheri>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 436, 115)) lobata(): samarensis.pallidus { var x: samarensis.pallidus; () => { var y = this; }; return x; } ->lobata : () => samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus +>lobata : () => samarensis.pallidus, Symbol(lobata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 436, 248)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 437, 43)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : himalayana ->this : himalayana ->x : samarensis.pallidus +>y : himalayana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 437, 79)) +>this : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 437, 43)) rusticus(): dogramacii.aurata { var x: dogramacii.aurata; () => { var y = this; }; return x; } ->rusticus : () => dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata ->x : dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata +>rusticus : () => dogramacii.aurata, Symbol(rusticus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 437, 104)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : dogramacii.aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 438, 43)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : himalayana ->this : himalayana ->x : dogramacii.aurata +>y : himalayana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 438, 77)) +>this : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>x : dogramacii.aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 438, 43)) latona(): daubentonii.nesiotes { var x: daubentonii.nesiotes; () => { var y = this; }; return x; } ->latona : () => daubentonii.nesiotes ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->dammermani : unknown ->melanops : dammermani.melanops ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->x : daubentonii.nesiotes ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->dammermani : unknown ->melanops : dammermani.melanops ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx +>latona : () => daubentonii.nesiotes, Symbol(latona, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 438, 102)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : daubentonii.nesiotes, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 439, 86)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) >() => { var y = this; } : () => void ->y : himalayana ->this : himalayana ->x : daubentonii.nesiotes +>y : himalayana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 439, 165)) +>this : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>x : daubentonii.nesiotes, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 439, 86)) famulus(): patas.uralensis { var x: patas.uralensis; () => { var y = this; }; return x; } ->famulus : () => patas.uralensis ->patas : unknown ->uralensis : patas.uralensis ->x : patas.uralensis ->patas : unknown ->uralensis : patas.uralensis +>famulus : () => patas.uralensis, Symbol(famulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 439, 190)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : patas.uralensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 440, 40)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) >() => { var y = this; } : () => void ->y : himalayana ->this : himalayana ->x : patas.uralensis +>y : himalayana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 440, 72)) +>this : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>x : patas.uralensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 440, 40)) flaviceps(): minutus.inez> { var x: minutus.inez>; () => { var y = this; }; return x; } ->flaviceps : () => inez> ->minutus : unknown ->inez : inez ->argurus : unknown ->oreas : argurus.oreas ->panglima : unknown ->fundatus : panglima.fundatus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->foina : lutreolus.foina ->x : inez> ->minutus : unknown ->inez : inez ->argurus : unknown ->oreas : argurus.oreas ->panglima : unknown ->fundatus : panglima.fundatus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->foina : lutreolus.foina +>flaviceps : () => inez>, Symbol(flaviceps, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 440, 97)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : inez, Symbol(inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : inez>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 441, 109)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : inez, Symbol(inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : himalayana ->this : himalayana ->x : inez> +>y : himalayana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 441, 208)) +>this : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>x : inez>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 441, 109)) paradoxolophus(): nigra.dolichurus> { var x: nigra.dolichurus>; () => { var y = this; }; return x; } ->paradoxolophus : () => nigra.dolichurus> ->nigra : unknown ->dolichurus : nigra.dolichurus ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : nigra.dolichurus> ->nigra : unknown ->dolichurus : nigra.dolichurus ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>paradoxolophus : () => nigra.dolichurus>, Symbol(paradoxolophus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 441, 233)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : nigra.dolichurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 442, 139)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : himalayana ->this : himalayana ->x : nigra.dolichurus> +>y : himalayana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 442, 263)) +>this : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>x : nigra.dolichurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 442, 139)) Osmium(): lavali.wilsoni { var x: lavali.wilsoni; () => { var y = this; }; return x; } ->Osmium : () => lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni +>Osmium : () => lavali.wilsoni, Symbol(Osmium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 442, 288)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 443, 38)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : himalayana ->this : himalayana ->x : lavali.wilsoni +>y : himalayana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 443, 69)) +>this : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 443, 38)) vulgaris(): Lanthanum.nitidus { var x: Lanthanum.nitidus; () => { var y = this; }; return x; } ->vulgaris : () => Lanthanum.nitidus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->lavali : unknown ->lepturus : lavali.lepturus ->julianae : unknown ->acariensis : julianae.acariensis ->x : Lanthanum.nitidus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->lavali : unknown ->lepturus : lavali.lepturus ->julianae : unknown ->acariensis : julianae.acariensis +>vulgaris : () => Lanthanum.nitidus, Symbol(vulgaris, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 443, 94)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : Lanthanum.nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 444, 81)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) >() => { var y = this; } : () => void ->y : himalayana ->this : himalayana ->x : Lanthanum.nitidus +>y : himalayana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 444, 153)) +>this : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>x : Lanthanum.nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 444, 81)) betsileoensis(): panglima.amphibius { var x: panglima.amphibius; () => { var y = this; }; return x; } ->betsileoensis : () => panglima.amphibius ->panglima : unknown ->amphibius : panglima.amphibius ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->lepturus : lavali.lepturus ->x : panglima.amphibius ->panglima : unknown ->amphibius : panglima.amphibius ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->lepturus : lavali.lepturus +>betsileoensis : () => panglima.amphibius, Symbol(betsileoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 444, 178)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : panglima.amphibius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 445, 88)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : himalayana ->this : himalayana ->x : panglima.amphibius +>y : himalayana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 445, 162)) +>this : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>x : panglima.amphibius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 445, 88)) vespuccii(): argurus.gilbertii, provocax.melanoleuca> { var x: argurus.gilbertii, provocax.melanoleuca>; () => { var y = this; }; return x; } ->vespuccii : () => argurus.gilbertii, provocax.melanoleuca> ->argurus : unknown ->gilbertii : argurus.gilbertii ->gabriellae : unknown ->klossii : gabriellae.klossii ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : argurus.gilbertii, provocax.melanoleuca> ->argurus : unknown ->gilbertii : argurus.gilbertii ->gabriellae : unknown ->klossii : gabriellae.klossii ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>vespuccii : () => argurus.gilbertii, provocax.melanoleuca>, Symbol(vespuccii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 445, 187)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>gilbertii : argurus.gilbertii, Symbol(argurus.gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : argurus.gilbertii, provocax.melanoleuca>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 446, 135)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>gilbertii : argurus.gilbertii, Symbol(argurus.gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : himalayana ->this : himalayana ->x : argurus.gilbertii, provocax.melanoleuca> +>y : himalayana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 446, 260)) +>this : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>x : argurus.gilbertii, provocax.melanoleuca>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 446, 135)) olympus(): Lanthanum.megalonyx { var x: Lanthanum.megalonyx; () => { var y = this; }; return x; } ->olympus : () => Lanthanum.megalonyx ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->x : Lanthanum.megalonyx ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx +>olympus : () => Lanthanum.megalonyx, Symbol(olympus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 446, 285)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : Lanthanum.megalonyx, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 447, 44)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) >() => { var y = this; } : () => void ->y : himalayana ->this : himalayana ->x : Lanthanum.megalonyx +>y : himalayana, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 447, 80)) +>this : himalayana, Symbol(himalayana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 434, 16)) +>x : Lanthanum.megalonyx, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 447, 44)) } } module caurinus { ->caurinus : typeof caurinus +>caurinus : typeof caurinus, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) export class mahaganus extends panglima.fundatus { ->mahaganus : mahaganus ->T0 : T0 ->T1 : T1 ->panglima : typeof panglima ->fundatus : panglima.fundatus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>mahaganus : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 451, 27)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 451, 30)) +>panglima.fundatus : any, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>panglima : typeof panglima, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) martiniquensis(): ruatanica.hector>> { var x: ruatanica.hector>>; () => { var y = this; }; return x; } ->martiniquensis : () => ruatanica.hector>> ->ruatanica : unknown ->hector : ruatanica.hector ->julianae : unknown ->sumatrana : julianae.sumatrana ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->dammermani : unknown ->melanops : dammermani.melanops ->caurinus : unknown ->mahaganus : mahaganus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->lavali : unknown ->otion : lavali.otion ->x : ruatanica.hector>> ->ruatanica : unknown ->hector : ruatanica.hector ->julianae : unknown ->sumatrana : julianae.sumatrana ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->dammermani : unknown ->melanops : dammermani.melanops ->caurinus : unknown ->mahaganus : mahaganus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->lavali : unknown ->otion : lavali.otion +>martiniquensis : () => ruatanica.hector>>, Symbol(martiniquensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 451, 111)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : ruatanica.hector>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 452, 168)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) >() => { var y = this; } : () => void ->y : mahaganus ->this : mahaganus ->x : ruatanica.hector>> +>y : mahaganus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 452, 321)) +>this : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>x : ruatanica.hector>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 452, 168)) devius(): samarensis.pelurus, trivirgatus.falconeri>> { var x: samarensis.pelurus, trivirgatus.falconeri>>; () => { var y = this; }; return x; } ->devius : () => samarensis.pelurus, trivirgatus.falconeri>> ->samarensis : unknown ->pelurus : samarensis.pelurus ->dogramacii : unknown ->aurata : dogramacii.aurata ->minutus : unknown ->inez : minutus.inez ->minutus : unknown ->inez : minutus.inez ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->dammermani : unknown ->melanops : dammermani.melanops ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->x : samarensis.pelurus, trivirgatus.falconeri>> ->samarensis : unknown ->pelurus : samarensis.pelurus ->dogramacii : unknown ->aurata : dogramacii.aurata ->minutus : unknown ->inez : minutus.inez ->minutus : unknown ->inez : minutus.inez ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->dammermani : unknown ->melanops : dammermani.melanops ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri +>devius : () => samarensis.pelurus, trivirgatus.falconeri>>, Symbol(devius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 452, 346)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : samarensis.pelurus, trivirgatus.falconeri>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 453, 153)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) >() => { var y = this; } : () => void ->y : mahaganus ->this : mahaganus ->x : samarensis.pelurus, trivirgatus.falconeri>> +>y : mahaganus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 453, 299)) +>this : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>x : samarensis.pelurus, trivirgatus.falconeri>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 453, 153)) masalai(): argurus.oreas { var x: argurus.oreas; () => { var y = this; }; return x; } ->masalai : () => argurus.oreas ->argurus : unknown ->oreas : argurus.oreas ->x : argurus.oreas ->argurus : unknown ->oreas : argurus.oreas +>masalai : () => argurus.oreas, Symbol(masalai, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 453, 324)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 454, 38)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : mahaganus ->this : mahaganus ->x : argurus.oreas +>y : mahaganus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 454, 68)) +>this : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 454, 38)) kathleenae(): nigra.dolichurus { var x: nigra.dolichurus; () => { var y = this; }; return x; } ->kathleenae : () => nigra.dolichurus ->nigra : unknown ->dolichurus : nigra.dolichurus ->patas : unknown ->uralensis : patas.uralensis ->caurinus : unknown ->psilurus : psilurus ->x : nigra.dolichurus ->nigra : unknown ->dolichurus : nigra.dolichurus ->patas : unknown ->uralensis : patas.uralensis ->caurinus : unknown ->psilurus : psilurus +>kathleenae : () => nigra.dolichurus, Symbol(kathleenae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 454, 93)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : psilurus, Symbol(psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : nigra.dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 455, 80)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : psilurus, Symbol(psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : mahaganus ->this : mahaganus ->x : nigra.dolichurus +>y : mahaganus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 455, 149)) +>this : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>x : nigra.dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 455, 80)) simulus(): gabriellae.echinatus { var x: gabriellae.echinatus; () => { var y = this; }; return x; } ->simulus : () => gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>simulus : () => gabriellae.echinatus, Symbol(simulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 455, 174)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 456, 45)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : mahaganus ->this : mahaganus ->x : gabriellae.echinatus +>y : mahaganus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 456, 82)) +>this : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 456, 45)) nigrovittatus(): caurinus.mahaganus>> { var x: caurinus.mahaganus>>; () => { var y = this; }; return x; } ->nigrovittatus : () => mahaganus>> ->caurinus : unknown ->mahaganus : mahaganus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->panglima : unknown ->abidi : panglima.abidi ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : mahaganus>> ->caurinus : unknown ->mahaganus : mahaganus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->panglima : unknown ->abidi : panglima.abidi ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->lavali : unknown ->wilsoni : lavali.wilsoni +>nigrovittatus : () => mahaganus>>, Symbol(nigrovittatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 456, 107)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : mahaganus>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 457, 165)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : mahaganus ->this : mahaganus ->x : mahaganus>> +>y : mahaganus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 457, 316)) +>this : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>x : mahaganus>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 457, 165)) senegalensis(): gabriellae.klossii, dammermani.melanops> { var x: gabriellae.klossii, dammermani.melanops>; () => { var y = this; }; return x; } ->senegalensis : () => gabriellae.klossii, dammermani.melanops> ->gabriellae : unknown ->klossii : gabriellae.klossii ->howi : unknown ->coludo : howi.coludo ->lavali : unknown ->lepturus : lavali.lepturus ->lutreolus : unknown ->punicus : lutreolus.punicus ->dammermani : unknown ->melanops : dammermani.melanops ->x : gabriellae.klossii, dammermani.melanops> ->gabriellae : unknown ->klossii : gabriellae.klossii ->howi : unknown ->coludo : howi.coludo ->lavali : unknown ->lepturus : lavali.lepturus ->lutreolus : unknown ->punicus : lutreolus.punicus ->dammermani : unknown ->melanops : dammermani.melanops +>senegalensis : () => gabriellae.klossii, dammermani.melanops>, Symbol(senegalensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 457, 341)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : gabriellae.klossii, dammermani.melanops>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 458, 118)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : mahaganus ->this : mahaganus ->x : gabriellae.klossii, dammermani.melanops> +>y : mahaganus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 458, 223)) +>this : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>x : gabriellae.klossii, dammermani.melanops>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 458, 118)) acticola(): argurus.luctuosa { var x: argurus.luctuosa; () => { var y = this; }; return x; } ->acticola : () => argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa +>acticola : () => argurus.luctuosa, Symbol(acticola, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 458, 248)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 459, 42)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : mahaganus ->this : mahaganus ->x : argurus.luctuosa +>y : mahaganus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 459, 75)) +>this : mahaganus, Symbol(mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 459, 42)) } } module macrorhinos { ->macrorhinos : typeof macrorhinos +>macrorhinos : typeof macrorhinos, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) export class marmosurus { ->marmosurus : marmosurus ->T0 : T0 ->T1 : T1 +>marmosurus : marmosurus, Symbol(marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 463, 28)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 463, 31)) tansaniana(): lutreolus.punicus { var x: lutreolus.punicus; () => { var y = this; }; return x; } ->tansaniana : () => lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus +>tansaniana : () => lutreolus.punicus, Symbol(tansaniana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 463, 37)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 464, 45)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : marmosurus ->this : marmosurus ->x : lutreolus.punicus +>y : marmosurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 464, 79)) +>this : marmosurus, Symbol(marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 464, 45)) } } module howi { ->howi : typeof howi +>howi : typeof howi, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) export class angulatus extends sagitta.stolzmanni { ->angulatus : angulatus ->T0 : T0 ->T1 : T1 ->sagitta : typeof sagitta ->stolzmanni : sagitta.stolzmanni +>angulatus : angulatus, Symbol(angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 468, 27)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 468, 30)) +>sagitta.stolzmanni : any, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>sagitta : typeof sagitta, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) pennatus(): howi.marcanoi { var x: howi.marcanoi; () => { var y = this; }; return x; } ->pennatus : () => marcanoi ->howi : unknown ->marcanoi : marcanoi ->x : marcanoi ->howi : unknown ->marcanoi : marcanoi +>pennatus : () => marcanoi, Symbol(pennatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 468, 63)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 469, 39)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : angulatus ->this : angulatus ->x : marcanoi +>y : angulatus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 469, 69)) +>this : angulatus, Symbol(angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>x : marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 469, 39)) } } module daubentonii { ->daubentonii : typeof daubentonii +>daubentonii : typeof daubentonii, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) export class nesiotes { ->nesiotes : nesiotes ->T0 : T0 ->T1 : T1 +>nesiotes : nesiotes, Symbol(nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 473, 26)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 473, 29)) } } module nigra { ->nigra : typeof nigra +>nigra : typeof nigra, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) export class thalia { ->thalia : thalia ->T0 : T0 ->T1 : T1 +>thalia : thalia, Symbol(thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 477, 24)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 477, 27)) dichotomus(): quasiater.carolinensis { var x: quasiater.carolinensis; () => { var y = this; }; return x; } ->dichotomus : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>dichotomus : () => quasiater.carolinensis, Symbol(dichotomus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 477, 33)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 478, 50)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : thalia ->this : thalia ->x : quasiater.carolinensis +>y : thalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 478, 89)) +>this : thalia, Symbol(thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 478, 50)) arnuxii(): panamensis.linulus, lavali.beisa> { var x: panamensis.linulus, lavali.beisa>; () => { var y = this; }; return x; } ->arnuxii : () => panamensis.linulus, lavali.beisa> ->panamensis : unknown ->linulus : panamensis.linulus ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->argurus : unknown ->luctuosa : argurus.luctuosa ->lavali : unknown ->wilsoni : lavali.wilsoni ->lavali : unknown ->beisa : lavali.beisa ->x : panamensis.linulus, lavali.beisa> ->panamensis : unknown ->linulus : panamensis.linulus ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->argurus : unknown ->luctuosa : argurus.luctuosa ->lavali : unknown ->wilsoni : lavali.wilsoni ->lavali : unknown ->beisa : lavali.beisa +>arnuxii : () => panamensis.linulus, lavali.beisa>, Symbol(arnuxii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 478, 114)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : panamensis.linulus, lavali.beisa>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 479, 110)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : thalia ->this : thalia ->x : panamensis.linulus, lavali.beisa> +>y : thalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 479, 212)) +>this : thalia, Symbol(thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>x : panamensis.linulus, lavali.beisa>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 479, 110)) verheyeni(): lavali.xanthognathus { var x: lavali.xanthognathus; () => { var y = this; }; return x; } ->verheyeni : () => lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>verheyeni : () => lavali.xanthognathus, Symbol(verheyeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 479, 237)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 480, 47)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : thalia ->this : thalia ->x : lavali.xanthognathus +>y : thalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 480, 84)) +>this : thalia, Symbol(thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 480, 47)) dauuricus(): gabriellae.amicus { var x: gabriellae.amicus; () => { var y = this; }; return x; } ->dauuricus : () => gabriellae.amicus ->gabriellae : unknown ->amicus : gabriellae.amicus ->x : gabriellae.amicus ->gabriellae : unknown ->amicus : gabriellae.amicus +>dauuricus : () => gabriellae.amicus, Symbol(dauuricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 480, 109)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : gabriellae.amicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 481, 44)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) >() => { var y = this; } : () => void ->y : thalia ->this : thalia ->x : gabriellae.amicus +>y : thalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 481, 78)) +>this : thalia, Symbol(thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>x : gabriellae.amicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 481, 44)) tristriatus(): rionegrensis.veraecrucis> { var x: rionegrensis.veraecrucis>; () => { var y = this; }; return x; } ->tristriatus : () => rionegrensis.veraecrucis> ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->howi : unknown ->marcanoi : howi.marcanoi ->panamensis : unknown ->linulus : panamensis.linulus ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->howi : unknown ->marcanoi : howi.marcanoi ->x : rionegrensis.veraecrucis> ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->howi : unknown ->marcanoi : howi.marcanoi ->panamensis : unknown ->linulus : panamensis.linulus ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->howi : unknown ->marcanoi : howi.marcanoi +>tristriatus : () => rionegrensis.veraecrucis>, Symbol(tristriatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 481, 103)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : rionegrensis.veraecrucis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 482, 124)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : thalia ->this : thalia ->x : rionegrensis.veraecrucis> +>y : thalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 482, 236)) +>this : thalia, Symbol(thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>x : rionegrensis.veraecrucis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 482, 124)) lasiura(): panglima.abidi>, Lanthanum.nitidus> { var x: panglima.abidi>, Lanthanum.nitidus>; () => { var y = this; }; return x; } ->lasiura : () => panglima.abidi>, Lanthanum.nitidus> ->panglima : unknown ->abidi : panglima.abidi ->samarensis : unknown ->fuscus : samarensis.fuscus ->lavali : unknown ->wilsoni : lavali.wilsoni ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->lavali : unknown ->lepturus : lavali.lepturus ->julianae : unknown ->acariensis : julianae.acariensis ->x : panglima.abidi>, Lanthanum.nitidus> ->panglima : unknown ->abidi : panglima.abidi ->samarensis : unknown ->fuscus : samarensis.fuscus ->lavali : unknown ->wilsoni : lavali.wilsoni ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->lavali : unknown ->lepturus : lavali.lepturus ->julianae : unknown ->acariensis : julianae.acariensis +>lasiura : () => panglima.abidi>, Lanthanum.nitidus>, Symbol(lasiura, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 482, 261)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : panglima.abidi>, Lanthanum.nitidus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 483, 201)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) >() => { var y = this; } : () => void ->y : thalia ->this : thalia ->x : panglima.abidi>, Lanthanum.nitidus> +>y : thalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 483, 394)) +>this : thalia, Symbol(thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>x : panglima.abidi>, Lanthanum.nitidus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 483, 201)) gangetica(): argurus.luctuosa { var x: argurus.luctuosa; () => { var y = this; }; return x; } ->gangetica : () => argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa +>gangetica : () => argurus.luctuosa, Symbol(gangetica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 483, 419)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 484, 43)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : thalia ->this : thalia ->x : argurus.luctuosa +>y : thalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 484, 76)) +>this : thalia, Symbol(thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 484, 43)) brucei(): chrysaeolus.sarasinorum { var x: chrysaeolus.sarasinorum; () => { var y = this; }; return x; } ->brucei : () => chrysaeolus.sarasinorum ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->julianae : unknown ->steerii : julianae.steerii ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : chrysaeolus.sarasinorum ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->julianae : unknown ->steerii : julianae.steerii ->ruatanica : unknown ->americanus : ruatanica.americanus +>brucei : () => chrysaeolus.sarasinorum, Symbol(brucei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 484, 101)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : chrysaeolus.sarasinorum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 485, 87)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : thalia ->this : thalia ->x : chrysaeolus.sarasinorum +>y : thalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 485, 167)) +>this : thalia, Symbol(thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>x : chrysaeolus.sarasinorum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 485, 87)) } } module sagitta { ->sagitta : typeof sagitta +>sagitta : typeof sagitta, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) export class walkeri extends minutus.portoricensis { ->walkeri : walkeri ->minutus : typeof minutus ->portoricensis : minutus.portoricensis +>walkeri : walkeri, Symbol(walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>minutus.portoricensis : any, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>minutus : typeof minutus, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) maracajuensis(): samarensis.cahirinus { var x: samarensis.cahirinus; () => { var y = this; }; return x; } ->maracajuensis : () => samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->ruatanica : unknown ->americanus : ruatanica.americanus +>maracajuensis : () => samarensis.cahirinus, Symbol(maracajuensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 489, 56)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 490, 94)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : walkeri ->this : walkeri ->x : samarensis.cahirinus +>y : walkeri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 490, 174)) +>this : walkeri, Symbol(walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 490, 94)) } } module minutus { ->minutus : typeof minutus +>minutus : typeof minutus, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) export class inez extends samarensis.pelurus { ->inez : inez ->T0 : T0 ->T1 : T1 ->samarensis : typeof samarensis ->pelurus : samarensis.pelurus ->argurus : unknown ->germaini : argurus.germaini ->julianae : unknown ->durangae : julianae.durangae +>inez : inez, Symbol(inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 494, 22)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 494, 25)) +>samarensis.pelurus : any, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>samarensis : typeof samarensis, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) vexillaris(): samarensis.cahirinus { var x: samarensis.cahirinus; () => { var y = this; }; return x; } ->vexillaris : () => samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->lavali : unknown ->lepturus : lavali.lepturus ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->lavali : unknown ->lepturus : lavali.lepturus ->lavali : unknown ->wilsoni : lavali.wilsoni +>vexillaris : () => samarensis.cahirinus, Symbol(vexillaris, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 494, 95)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 495, 81)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : inez ->this : inez ->x : samarensis.cahirinus +>y : inez, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 495, 151)) +>this : inez, Symbol(inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 495, 81)) } } module macrorhinos { ->macrorhinos : typeof macrorhinos +>macrorhinos : typeof macrorhinos, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) export class konganensis extends imperfecta.lasiurus { ->konganensis : konganensis ->imperfecta : typeof imperfecta ->lasiurus : imperfecta.lasiurus ->caurinus : unknown ->psilurus : caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus +>konganensis : konganensis, Symbol(konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>imperfecta.lasiurus : any, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>imperfecta : typeof imperfecta, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) } } module panamensis { ->panamensis : typeof panamensis +>panamensis : typeof panamensis, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) export class linulus extends ruatanica.hector> { ->linulus : linulus ->T0 : T0 ->T1 : T1 ->ruatanica : typeof ruatanica ->hector : ruatanica.hector ->julianae : unknown ->sumatrana : julianae.sumatrana ->samarensis : unknown ->pelurus : samarensis.pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->sagitta : unknown ->walkeri : sagitta.walkeri +>linulus : linulus, Symbol(linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 503, 25)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 503, 28)) +>ruatanica.hector : any, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>ruatanica : typeof ruatanica, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) goslingi(): daubentonii.arboreus { var x: daubentonii.arboreus; () => { var y = this; }; return x; } ->goslingi : () => daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->gabriellae : unknown ->amicus : gabriellae.amicus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->gabriellae : unknown ->amicus : gabriellae.amicus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>goslingi : () => daubentonii.arboreus, Symbol(goslingi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 503, 137)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 504, 85)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : linulus ->this : linulus ->x : daubentonii.arboreus +>y : linulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 504, 161)) +>this : linulus, Symbol(linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 504, 85)) taki(): patas.uralensis { var x: patas.uralensis; () => { var y = this; }; return x; } ->taki : () => patas.uralensis ->patas : unknown ->uralensis : patas.uralensis ->x : patas.uralensis ->patas : unknown ->uralensis : patas.uralensis +>taki : () => patas.uralensis, Symbol(taki, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 504, 186)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : patas.uralensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 505, 37)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) >() => { var y = this; } : () => void ->y : linulus ->this : linulus ->x : patas.uralensis +>y : linulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 505, 69)) +>this : linulus, Symbol(linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>x : patas.uralensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 505, 37)) fumosus(): rendalli.moojeni, lavali.beisa> { var x: rendalli.moojeni, lavali.beisa>; () => { var y = this; }; return x; } ->fumosus : () => rendalli.moojeni, lavali.beisa> ->rendalli : unknown ->moojeni : rendalli.moojeni ->argurus : unknown ->netscheri : argurus.netscheri ->dogramacii : unknown ->aurata : dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata ->lavali : unknown ->beisa : lavali.beisa ->x : rendalli.moojeni, lavali.beisa> ->rendalli : unknown ->moojeni : rendalli.moojeni ->argurus : unknown ->netscheri : argurus.netscheri ->dogramacii : unknown ->aurata : dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata ->lavali : unknown ->beisa : lavali.beisa +>fumosus : () => rendalli.moojeni, lavali.beisa>, Symbol(fumosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 505, 94)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : rendalli.moojeni, lavali.beisa>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 506, 112)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : linulus ->this : linulus ->x : rendalli.moojeni, lavali.beisa> +>y : linulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 506, 216)) +>this : linulus, Symbol(linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>x : rendalli.moojeni, lavali.beisa>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 506, 112)) rufinus(): macrorhinos.konganensis { var x: macrorhinos.konganensis; () => { var y = this; }; return x; } ->rufinus : () => macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>rufinus : () => macrorhinos.konganensis, Symbol(rufinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 506, 241)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 507, 48)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : linulus ->this : linulus ->x : macrorhinos.konganensis +>y : linulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 507, 88)) +>this : linulus, Symbol(linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 507, 48)) lami(): nigra.thalia { var x: nigra.thalia; () => { var y = this; }; return x; } ->lami : () => nigra.thalia ->nigra : unknown ->thalia : nigra.thalia ->patas : unknown ->uralensis : patas.uralensis ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : nigra.thalia ->nigra : unknown ->thalia : nigra.thalia ->patas : unknown ->uralensis : patas.uralensis ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>lami : () => nigra.thalia, Symbol(lami, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 507, 113)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : nigra.thalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 508, 74)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : linulus ->this : linulus ->x : nigra.thalia +>y : linulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 508, 143)) +>this : linulus, Symbol(linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>x : nigra.thalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 508, 74)) regina(): trivirgatus.oconnelli { var x: trivirgatus.oconnelli; () => { var y = this; }; return x; } ->regina : () => trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>regina : () => trivirgatus.oconnelli, Symbol(regina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 508, 168)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 509, 45)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : linulus ->this : linulus ->x : trivirgatus.oconnelli +>y : linulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 509, 83)) +>this : linulus, Symbol(linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 509, 45)) nanilla(): dammermani.siberu { var x: dammermani.siberu; () => { var y = this; }; return x; } ->nanilla : () => dammermani.siberu ->dammermani : unknown ->siberu : dammermani.siberu ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : dammermani.siberu ->dammermani : unknown ->siberu : dammermani.siberu ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>nanilla : () => dammermani.siberu, Symbol(nanilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 509, 108)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : dammermani.siberu, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 510, 87)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : linulus ->this : linulus ->x : dammermani.siberu +>y : linulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 510, 166)) +>this : linulus, Symbol(linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>x : dammermani.siberu, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 510, 87)) enganus(): petrophilus.sodyi { var x: petrophilus.sodyi; () => { var y = this; }; return x; } ->enganus : () => petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->dogramacii : unknown ->aurata : dogramacii.aurata ->argurus : unknown ->oreas : argurus.oreas ->x : petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->dogramacii : unknown ->aurata : dogramacii.aurata ->argurus : unknown ->oreas : argurus.oreas +>enganus : () => petrophilus.sodyi, Symbol(enganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 510, 191)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 511, 76)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : linulus ->this : linulus ->x : petrophilus.sodyi +>y : linulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 511, 144)) +>this : linulus, Symbol(linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 511, 76)) gomantongensis(): rionegrensis.veraecrucis> { var x: rionegrensis.veraecrucis>; () => { var y = this; }; return x; } ->gomantongensis : () => rionegrensis.veraecrucis> ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->caurinus : unknown ->psilurus : caurinus.psilurus ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.veraecrucis> ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->caurinus : unknown ->psilurus : caurinus.psilurus ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>gomantongensis : () => rionegrensis.veraecrucis>, Symbol(gomantongensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 511, 169)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.veraecrucis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 512, 134)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : linulus ->this : linulus ->x : rionegrensis.veraecrucis> +>y : linulus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 512, 253)) +>this : linulus, Symbol(linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>x : rionegrensis.veraecrucis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 512, 134)) } } module nigra { ->nigra : typeof nigra +>nigra : typeof nigra, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) export class gracilis { ->gracilis : gracilis ->T0 : T0 ->T1 : T1 +>gracilis : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 516, 26)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 516, 29)) weddellii(): nigra.dolichurus { var x: nigra.dolichurus; () => { var y = this; }; return x; } ->weddellii : () => dolichurus ->nigra : unknown ->dolichurus : dolichurus ->dogramacii : unknown ->aurata : dogramacii.aurata ->julianae : unknown ->steerii : julianae.steerii ->x : dolichurus ->nigra : unknown ->dolichurus : dolichurus ->dogramacii : unknown ->aurata : dogramacii.aurata ->julianae : unknown ->steerii : julianae.steerii +>weddellii : () => dolichurus, Symbol(weddellii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 516, 35)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 517, 80)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : dolichurus +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 517, 150)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 517, 80)) echinothrix(): Lanthanum.nitidus, argurus.oreas> { var x: Lanthanum.nitidus, argurus.oreas>; () => { var y = this; }; return x; } ->echinothrix : () => Lanthanum.nitidus, argurus.oreas> ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->panglima : unknown ->amphibius : panglima.amphibius ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->lepturus : lavali.lepturus ->argurus : unknown ->oreas : argurus.oreas ->x : Lanthanum.nitidus, argurus.oreas> ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->panglima : unknown ->amphibius : panglima.amphibius ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->lepturus : lavali.lepturus ->argurus : unknown ->oreas : argurus.oreas +>echinothrix : () => Lanthanum.nitidus, argurus.oreas>, Symbol(echinothrix, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 517, 175)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : Lanthanum.nitidus, argurus.oreas>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 518, 120)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : Lanthanum.nitidus, argurus.oreas> +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 518, 228)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : Lanthanum.nitidus, argurus.oreas>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 518, 120)) garridoi(): dogramacii.koepckeae { var x: dogramacii.koepckeae; () => { var y = this; }; return x; } ->garridoi : () => dogramacii.koepckeae ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->x : dogramacii.koepckeae ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae +>garridoi : () => dogramacii.koepckeae, Symbol(garridoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 518, 253)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : dogramacii.koepckeae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 519, 46)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : dogramacii.koepckeae +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 519, 83)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : dogramacii.koepckeae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 519, 46)) rouxii(): nigra.gracilis, nigra.thalia> { var x: nigra.gracilis, nigra.thalia>; () => { var y = this; }; return x; } ->rouxii : () => gracilis, thalia> ->nigra : unknown ->gracilis : gracilis ->argurus : unknown ->dauricus : argurus.dauricus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->patas : unknown ->uralensis : patas.uralensis ->nigra : unknown ->thalia : thalia ->patas : unknown ->uralensis : patas.uralensis ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->x : gracilis, thalia> ->nigra : unknown ->gracilis : gracilis ->argurus : unknown ->dauricus : argurus.dauricus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->patas : unknown ->uralensis : patas.uralensis ->nigra : unknown ->thalia : thalia ->patas : unknown ->uralensis : patas.uralensis ->julianae : unknown ->galapagoensis : julianae.galapagoensis +>rouxii : () => gracilis, thalia>, Symbol(rouxii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 519, 108)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : thalia, Symbol(thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : gracilis, thalia>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 520, 153)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : thalia, Symbol(thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : gracilis, thalia> +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 520, 299)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : gracilis, thalia>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 520, 153)) aurita(): sagitta.stolzmanni { var x: sagitta.stolzmanni; () => { var y = this; }; return x; } ->aurita : () => sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>aurita : () => sagitta.stolzmanni, Symbol(aurita, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 520, 324)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 521, 42)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : sagitta.stolzmanni +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 521, 77)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 521, 42)) geoffrensis(): rionegrensis.caniventer { var x: rionegrensis.caniventer; () => { var y = this; }; return x; } ->geoffrensis : () => rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>geoffrensis : () => rionegrensis.caniventer, Symbol(geoffrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 521, 102)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 522, 52)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : rionegrensis.caniventer +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 522, 92)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 522, 52)) theresa(): macrorhinos.marmosurus, argurus.luctuosa>, nigra.dolichurus> { var x: macrorhinos.marmosurus, argurus.luctuosa>, nigra.dolichurus>; () => { var y = this; }; return x; } ->theresa : () => macrorhinos.marmosurus, argurus.luctuosa>, dolichurus> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->argurus : unknown ->netscheri : argurus.netscheri ->dammermani : unknown ->siberu : dammermani.siberu ->lutreolus : unknown ->foina : lutreolus.foina ->samarensis : unknown ->pallidus : samarensis.pallidus ->argurus : unknown ->luctuosa : argurus.luctuosa ->nigra : unknown ->dolichurus : dolichurus ->lavali : unknown ->lepturus : lavali.lepturus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : macrorhinos.marmosurus, argurus.luctuosa>, dolichurus> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->argurus : unknown ->netscheri : argurus.netscheri ->dammermani : unknown ->siberu : dammermani.siberu ->lutreolus : unknown ->foina : lutreolus.foina ->samarensis : unknown ->pallidus : samarensis.pallidus ->argurus : unknown ->luctuosa : argurus.luctuosa ->nigra : unknown ->dolichurus : dolichurus ->lavali : unknown ->lepturus : lavali.lepturus ->samarensis : unknown ->pallidus : samarensis.pallidus +>theresa : () => macrorhinos.marmosurus, argurus.luctuosa>, dolichurus>, Symbol(theresa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 522, 117)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : macrorhinos.marmosurus, argurus.luctuosa>, dolichurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 523, 197)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : dolichurus, Symbol(dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : macrorhinos.marmosurus, argurus.luctuosa>, dolichurus> +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 523, 386)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : macrorhinos.marmosurus, argurus.luctuosa>, dolichurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 523, 197)) melanocarpus(): julianae.albidens, julianae.sumatrana> { var x: julianae.albidens, julianae.sumatrana>; () => { var y = this; }; return x; } ->melanocarpus : () => julianae.albidens, julianae.sumatrana> ->julianae : unknown ->albidens : julianae.albidens ->dammermani : unknown ->siberu : dammermani.siberu ->lutreolus : unknown ->foina : lutreolus.foina ->samarensis : unknown ->pallidus : samarensis.pallidus ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : julianae.albidens, julianae.sumatrana> ->julianae : unknown ->albidens : julianae.albidens ->dammermani : unknown ->siberu : dammermani.siberu ->lutreolus : unknown ->foina : lutreolus.foina ->samarensis : unknown ->pallidus : samarensis.pallidus ->julianae : unknown ->sumatrana : julianae.sumatrana +>melanocarpus : () => julianae.albidens, julianae.sumatrana>, Symbol(melanocarpus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 523, 411)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : julianae.albidens, julianae.sumatrana>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 524, 124)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : julianae.albidens, julianae.sumatrana> +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 524, 235)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : julianae.albidens, julianae.sumatrana>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 524, 124)) dubiaquercus(): dogramacii.robustulus { var x: dogramacii.robustulus; () => { var y = this; }; return x; } ->dubiaquercus : () => dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>dubiaquercus : () => dogramacii.robustulus, Symbol(dubiaquercus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 524, 260)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 525, 51)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : dogramacii.robustulus +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 525, 89)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 525, 51)) pectoralis(): julianae.sumatrana { var x: julianae.sumatrana; () => { var y = this; }; return x; } ->pectoralis : () => julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana +>pectoralis : () => julianae.sumatrana, Symbol(pectoralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 525, 114)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 526, 46)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : julianae.sumatrana +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 526, 81)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 526, 46)) apoensis(): caurinus.megaphyllus { var x: caurinus.megaphyllus; () => { var y = this; }; return x; } ->apoensis : () => caurinus.megaphyllus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->x : caurinus.megaphyllus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus +>apoensis : () => caurinus.megaphyllus, Symbol(apoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 526, 106)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : caurinus.megaphyllus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 527, 46)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : caurinus.megaphyllus +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 527, 83)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : caurinus.megaphyllus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 527, 46)) grisescens(): Lanthanum.jugularis { var x: Lanthanum.jugularis; () => { var y = this; }; return x; } ->grisescens : () => Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>grisescens : () => Lanthanum.jugularis, Symbol(grisescens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 527, 108)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 528, 47)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : Lanthanum.jugularis +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 528, 83)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 528, 47)) ramirohitra(): panglima.amphibius { var x: panglima.amphibius; () => { var y = this; }; return x; } ->ramirohitra : () => panglima.amphibius ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : panglima.amphibius ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>ramirohitra : () => panglima.amphibius, Symbol(ramirohitra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 528, 108)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : panglima.amphibius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 529, 92)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : gracilis ->this : gracilis ->x : panglima.amphibius +>y : gracilis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 529, 172)) +>this : gracilis, Symbol(gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>x : panglima.amphibius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 529, 92)) } } module samarensis { ->samarensis : typeof samarensis +>samarensis : typeof samarensis, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) export class pelurus extends sagitta.stolzmanni { ->pelurus : pelurus ->T0 : T0 ->T1 : T1 ->sagitta : typeof sagitta ->stolzmanni : sagitta.stolzmanni +>pelurus : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 533, 25)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 533, 28)) +>sagitta.stolzmanni : any, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>sagitta : typeof sagitta, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) Palladium(): panamensis.linulus { var x: panamensis.linulus; () => { var y = this; }; return x; } ->Palladium : () => panamensis.linulus ->panamensis : unknown ->linulus : panamensis.linulus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : panamensis.linulus ->panamensis : unknown ->linulus : panamensis.linulus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>Palladium : () => panamensis.linulus, Symbol(Palladium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 533, 61)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : panamensis.linulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 534, 95)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : panamensis.linulus +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 534, 180)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : panamensis.linulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 534, 95)) castanea(): argurus.netscheri, julianae.oralis> { var x: argurus.netscheri, julianae.oralis>; () => { var y = this; }; return x; } ->castanea : () => argurus.netscheri, julianae.oralis> ->argurus : unknown ->netscheri : argurus.netscheri ->minutus : unknown ->inez : minutus.inez ->argurus : unknown ->peninsulae : argurus.peninsulae ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->julianae : unknown ->oralis : julianae.oralis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->argurus : unknown ->oreas : argurus.oreas ->x : argurus.netscheri, julianae.oralis> ->argurus : unknown ->netscheri : argurus.netscheri ->minutus : unknown ->inez : minutus.inez ->argurus : unknown ->peninsulae : argurus.peninsulae ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->julianae : unknown ->oralis : julianae.oralis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->argurus : unknown ->oreas : argurus.oreas +>castanea : () => argurus.netscheri, julianae.oralis>, Symbol(castanea, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 534, 205)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : argurus.netscheri, julianae.oralis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 535, 152)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : argurus.netscheri, julianae.oralis> +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 535, 295)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : argurus.netscheri, julianae.oralis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 535, 152)) chamek(): argurus.pygmaea { var x: argurus.pygmaea; () => { var y = this; }; return x; } ->chamek : () => argurus.pygmaea ->argurus : unknown ->pygmaea : argurus.pygmaea ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : argurus.pygmaea ->argurus : unknown ->pygmaea : argurus.pygmaea ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>chamek : () => argurus.pygmaea, Symbol(chamek, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 535, 320)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>pygmaea : argurus.pygmaea, Symbol(argurus.pygmaea, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 596, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : argurus.pygmaea, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 536, 85)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>pygmaea : argurus.pygmaea, Symbol(argurus.pygmaea, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 596, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : argurus.pygmaea +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 536, 163)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : argurus.pygmaea, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 536, 85)) nigriceps(): lutreolus.punicus { var x: lutreolus.punicus; () => { var y = this; }; return x; } ->nigriceps : () => lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus +>nigriceps : () => lutreolus.punicus, Symbol(nigriceps, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 536, 188)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 537, 44)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : lutreolus.punicus +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 537, 78)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 537, 44)) lunatus(): pelurus { var x: pelurus; () => { var y = this; }; return x; } ->lunatus : () => pelurus ->pelurus : pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->sagitta : unknown ->walkeri : sagitta.walkeri ->x : pelurus ->pelurus : pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->sagitta : unknown ->walkeri : sagitta.walkeri +>lunatus : () => pelurus, Symbol(lunatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 537, 103)) +>pelurus : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>x : pelurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 538, 70)) +>pelurus : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : pelurus +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 538, 132)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : pelurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 538, 70)) madurae(): rionegrensis.caniventer { var x: rionegrensis.caniventer; () => { var y = this; }; return x; } ->madurae : () => rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>madurae : () => rionegrensis.caniventer, Symbol(madurae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 538, 157)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 539, 48)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : rionegrensis.caniventer +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 539, 88)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 539, 48)) chinchilla(): macrorhinos.daphaenodon { var x: macrorhinos.daphaenodon; () => { var y = this; }; return x; } ->chinchilla : () => macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>chinchilla : () => macrorhinos.daphaenodon, Symbol(chinchilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 539, 113)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 540, 51)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : macrorhinos.daphaenodon +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 540, 91)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 540, 51)) eliasi(): petrophilus.rosalia { var x: petrophilus.rosalia; () => { var y = this; }; return x; } ->eliasi : () => petrophilus.rosalia ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->julianae : unknown ->steerii : julianae.steerii ->lavali : unknown ->beisa : lavali.beisa ->x : petrophilus.rosalia ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->julianae : unknown ->steerii : julianae.steerii ->lavali : unknown ->beisa : lavali.beisa +>eliasi : () => petrophilus.rosalia, Symbol(eliasi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 540, 116)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : petrophilus.rosalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 541, 75)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : petrophilus.rosalia +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 541, 143)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : petrophilus.rosalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 541, 75)) proditor(): panamensis.setulosus { var x: panamensis.setulosus; () => { var y = this; }; return x; } ->proditor : () => panamensis.setulosus ->panamensis : unknown ->setulosus : panamensis.setulosus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->julianae : unknown ->steerii : julianae.steerii ->x : panamensis.setulosus ->panamensis : unknown ->setulosus : panamensis.setulosus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->julianae : unknown ->steerii : julianae.steerii +>proditor : () => panamensis.setulosus, Symbol(proditor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 541, 168)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : panamensis.setulosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 542, 86)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : panamensis.setulosus +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 542, 163)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : panamensis.setulosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 542, 86)) gambianus(): quasiater.wattsi> { var x: quasiater.wattsi>; () => { var y = this; }; return x; } ->gambianus : () => quasiater.wattsi> ->quasiater : unknown ->wattsi : quasiater.wattsi ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : quasiater.wattsi> ->quasiater : unknown ->wattsi : quasiater.wattsi ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>gambianus : () => quasiater.wattsi>, Symbol(gambianus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 542, 188)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : quasiater.wattsi>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 543, 134)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : quasiater.wattsi> +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 543, 258)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : quasiater.wattsi>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 543, 134)) petteri(): dogramacii.kaiseri { var x: dogramacii.kaiseri; () => { var y = this; }; return x; } ->petteri : () => dogramacii.kaiseri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : dogramacii.kaiseri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>petteri : () => dogramacii.kaiseri, Symbol(petteri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 543, 283)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : dogramacii.kaiseri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 544, 43)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : dogramacii.kaiseri +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 544, 78)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : dogramacii.kaiseri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 544, 43)) nusatenggara(): panglima.amphibius { var x: panglima.amphibius; () => { var y = this; }; return x; } ->nusatenggara : () => panglima.amphibius ->panglima : unknown ->amphibius : panglima.amphibius ->lavali : unknown ->lepturus : lavali.lepturus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : panglima.amphibius ->panglima : unknown ->amphibius : panglima.amphibius ->lavali : unknown ->lepturus : lavali.lepturus ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>nusatenggara : () => panglima.amphibius, Symbol(nusatenggara, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 544, 103)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : panglima.amphibius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 545, 89)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : panglima.amphibius +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 545, 165)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : panglima.amphibius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 545, 89)) olitor(): rionegrensis.veraecrucis { var x: rionegrensis.veraecrucis; () => { var y = this; }; return x; } ->olitor : () => rionegrensis.veraecrucis ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->x : rionegrensis.veraecrucis ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi +>olitor : () => rionegrensis.veraecrucis, Symbol(olitor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 545, 190)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : rionegrensis.veraecrucis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 546, 92)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) >() => { var y = this; } : () => void ->y : pelurus ->this : pelurus ->x : rionegrensis.veraecrucis +>y : pelurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 546, 177)) +>this : pelurus, Symbol(pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>x : rionegrensis.veraecrucis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 546, 92)) } export class fuscus extends macrorhinos.daphaenodon { ->fuscus : fuscus ->T0 : T0 ->T1 : T1 ->macrorhinos : typeof macrorhinos ->daphaenodon : macrorhinos.daphaenodon +>fuscus : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 548, 24)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 548, 27)) +>macrorhinos.daphaenodon : any, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>macrorhinos : typeof macrorhinos, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) planifrons(): nigra.gracilis { var x: nigra.gracilis; () => { var y = this; }; return x; } ->planifrons : () => nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata ->x : nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata +>planifrons : () => nigra.gracilis, Symbol(planifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 548, 65)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 549, 82)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : nigra.gracilis +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 549, 153)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 549, 82)) badia(): julianae.sumatrana { var x: julianae.sumatrana; () => { var y = this; }; return x; } ->badia : () => julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana +>badia : () => julianae.sumatrana, Symbol(badia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 549, 178)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 550, 41)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : julianae.sumatrana +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 550, 76)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 550, 41)) prymnolopha(): sagitta.walkeri { var x: sagitta.walkeri; () => { var y = this; }; return x; } ->prymnolopha : () => sagitta.walkeri ->sagitta : unknown ->walkeri : sagitta.walkeri ->x : sagitta.walkeri ->sagitta : unknown ->walkeri : sagitta.walkeri +>prymnolopha : () => sagitta.walkeri, Symbol(prymnolopha, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 550, 101)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>x : sagitta.walkeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 551, 44)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : sagitta.walkeri +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 551, 76)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : sagitta.walkeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 551, 44)) natalensis(): trivirgatus.falconeri { var x: trivirgatus.falconeri; () => { var y = this; }; return x; } ->natalensis : () => trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->x : trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri +>natalensis : () => trivirgatus.falconeri, Symbol(natalensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 551, 101)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 552, 49)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : trivirgatus.falconeri +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 552, 87)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 552, 49)) hunteri(): julianae.durangae { var x: julianae.durangae; () => { var y = this; }; return x; } ->hunteri : () => julianae.durangae ->julianae : unknown ->durangae : julianae.durangae ->x : julianae.durangae ->julianae : unknown ->durangae : julianae.durangae +>hunteri : () => julianae.durangae, Symbol(hunteri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 552, 112)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : julianae.durangae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 553, 42)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : julianae.durangae +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 553, 76)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : julianae.durangae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 553, 42)) sapiens(): pallidus { var x: pallidus; () => { var y = this; }; return x; } ->sapiens : () => pallidus ->pallidus : pallidus ->x : pallidus ->pallidus : pallidus +>sapiens : () => pallidus, Symbol(sapiens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 553, 101)) +>pallidus : pallidus, Symbol(pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 554, 33)) +>pallidus : pallidus, Symbol(pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : pallidus +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 554, 58)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 554, 33)) macrocercus(): panamensis.setulosus { var x: panamensis.setulosus; () => { var y = this; }; return x; } ->macrocercus : () => panamensis.setulosus ->panamensis : unknown ->setulosus : panamensis.setulosus ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : panamensis.setulosus ->panamensis : unknown ->setulosus : panamensis.setulosus ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->julianae : unknown ->sumatrana : julianae.sumatrana +>macrocercus : () => panamensis.setulosus, Symbol(macrocercus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 554, 83)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : panamensis.setulosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 555, 91)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : panamensis.setulosus +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 555, 170)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : panamensis.setulosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 555, 91)) nimbae(): lutreolus.punicus { var x: lutreolus.punicus; () => { var y = this; }; return x; } ->nimbae : () => lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus +>nimbae : () => lutreolus.punicus, Symbol(nimbae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 555, 195)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 556, 41)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : lutreolus.punicus +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 556, 75)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 556, 41)) suricatta(): daubentonii.nigricans { var x: daubentonii.nigricans; () => { var y = this; }; return x; } ->suricatta : () => daubentonii.nigricans ->daubentonii : unknown ->nigricans : daubentonii.nigricans ->dammermani : unknown ->melanops : dammermani.melanops ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : daubentonii.nigricans ->daubentonii : unknown ->nigricans : daubentonii.nigricans ->dammermani : unknown ->melanops : dammermani.melanops ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>suricatta : () => daubentonii.nigricans, Symbol(suricatta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 556, 100)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nigricans : daubentonii.nigricans, Symbol(daubentonii.nigricans, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 587, 20)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : daubentonii.nigricans, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 557, 93)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nigricans : daubentonii.nigricans, Symbol(daubentonii.nigricans, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 587, 20)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : daubentonii.nigricans +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 557, 176)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : daubentonii.nigricans, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 557, 93)) jagorii(): julianae.galapagoensis { var x: julianae.galapagoensis; () => { var y = this; }; return x; } ->jagorii : () => julianae.galapagoensis ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->x : julianae.galapagoensis ->julianae : unknown ->galapagoensis : julianae.galapagoensis +>jagorii : () => julianae.galapagoensis, Symbol(jagorii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 557, 201)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : julianae.galapagoensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 558, 47)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : julianae.galapagoensis +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 558, 86)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : julianae.galapagoensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 558, 47)) beecrofti(): sagitta.stolzmanni { var x: sagitta.stolzmanni; () => { var y = this; }; return x; } ->beecrofti : () => sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>beecrofti : () => sagitta.stolzmanni, Symbol(beecrofti, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 558, 111)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 559, 45)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : sagitta.stolzmanni +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 559, 80)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 559, 45)) imaizumii(): minutus.inez, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion>, macrorhinos.konganensis> { var x: minutus.inez, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion>, macrorhinos.konganensis>; () => { var y = this; }; return x; } ->imaizumii : () => minutus.inez, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion>, macrorhinos.konganensis> ->minutus : unknown ->inez : minutus.inez ->julianae : unknown ->gerbillus : julianae.gerbillus ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->dogramacii : unknown ->aurata : dogramacii.aurata ->lavali : unknown ->otion : lavali.otion ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : minutus.inez, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion>, macrorhinos.konganensis> ->minutus : unknown ->inez : minutus.inez ->julianae : unknown ->gerbillus : julianae.gerbillus ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->dogramacii : unknown ->aurata : dogramacii.aurata ->lavali : unknown ->otion : lavali.otion ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>imaizumii : () => minutus.inez, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion>, macrorhinos.konganensis>, Symbol(imaizumii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 559, 105)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : minutus.inez, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion>, macrorhinos.konganensis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 560, 233)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : minutus.inez, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion>, macrorhinos.konganensis> +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 560, 456)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : minutus.inez, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion>, macrorhinos.konganensis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 560, 233)) colocolo(): quasiater.bobrinskoi { var x: quasiater.bobrinskoi; () => { var y = this; }; return x; } ->colocolo : () => quasiater.bobrinskoi ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->x : quasiater.bobrinskoi ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi +>colocolo : () => quasiater.bobrinskoi, Symbol(colocolo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 560, 481)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : quasiater.bobrinskoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 561, 46)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : quasiater.bobrinskoi +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 561, 83)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : quasiater.bobrinskoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 561, 46)) wolfi(): petrophilus.rosalia> { var x: petrophilus.rosalia>; () => { var y = this; }; return x; } ->wolfi : () => petrophilus.rosalia> ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->panglima : unknown ->abidi : panglima.abidi ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : petrophilus.rosalia> ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->panglima : unknown ->abidi : panglima.abidi ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->lavali : unknown ->wilsoni : lavali.wilsoni +>wolfi : () => petrophilus.rosalia>, Symbol(wolfi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 561, 108)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : petrophilus.rosalia>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 562, 115)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : fuscus ->this : fuscus ->x : petrophilus.rosalia> +>y : fuscus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 562, 224)) +>this : fuscus, Symbol(fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>x : petrophilus.rosalia>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 562, 115)) } export class pallidus { ->pallidus : pallidus +>pallidus : pallidus, Symbol(pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) oblativa(): trivirgatus.falconeri { var x: trivirgatus.falconeri; () => { var y = this; }; return x; } ->oblativa : () => trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->x : trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri +>oblativa : () => trivirgatus.falconeri, Symbol(oblativa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 564, 27)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 565, 47)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) >() => { var y = this; } : () => void ->y : pallidus ->this : pallidus ->x : trivirgatus.falconeri +>y : pallidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 565, 85)) +>this : pallidus, Symbol(pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 565, 47)) watersi(): lavali.wilsoni { var x: lavali.wilsoni; () => { var y = this; }; return x; } ->watersi : () => lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni +>watersi : () => lavali.wilsoni, Symbol(watersi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 565, 110)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 566, 39)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : pallidus ->this : pallidus ->x : lavali.wilsoni +>y : pallidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 566, 70)) +>this : pallidus, Symbol(pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 566, 39)) glacialis(): sagitta.cinereus, quasiater.wattsi>> { var x: sagitta.cinereus, quasiater.wattsi>>; () => { var y = this; }; return x; } ->glacialis : () => sagitta.cinereus, quasiater.wattsi>> ->sagitta : unknown ->cinereus : sagitta.cinereus ->nigra : unknown ->caucasica : nigra.caucasica ->julianae : unknown ->sumatrana : julianae.sumatrana ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->quasiater : unknown ->wattsi : quasiater.wattsi ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : sagitta.cinereus, quasiater.wattsi>> ->sagitta : unknown ->cinereus : sagitta.cinereus ->nigra : unknown ->caucasica : nigra.caucasica ->julianae : unknown ->sumatrana : julianae.sumatrana ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->quasiater : unknown ->wattsi : quasiater.wattsi ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>glacialis : () => sagitta.cinereus, quasiater.wattsi>>, Symbol(glacialis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 566, 95)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>caucasica : nigra.caucasica, Symbol(nigra.caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : sagitta.cinereus, quasiater.wattsi>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 567, 212)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>caucasica : nigra.caucasica, Symbol(nigra.caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : pallidus ->this : pallidus ->x : sagitta.cinereus, quasiater.wattsi>> +>y : pallidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 567, 414)) +>this : pallidus, Symbol(pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : sagitta.cinereus, quasiater.wattsi>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 567, 212)) viaria(): chrysaeolus.sarasinorum { var x: chrysaeolus.sarasinorum; () => { var y = this; }; return x; } ->viaria : () => chrysaeolus.sarasinorum ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : chrysaeolus.sarasinorum ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->lutreolus : unknown ->punicus : lutreolus.punicus +>viaria : () => chrysaeolus.sarasinorum, Symbol(viaria, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 567, 439)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : chrysaeolus.sarasinorum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 568, 88)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : pallidus ->this : pallidus ->x : chrysaeolus.sarasinorum +>y : pallidus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 568, 169)) +>this : pallidus, Symbol(pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : chrysaeolus.sarasinorum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 568, 88)) } export class cahirinus { ->cahirinus : cahirinus ->T0 : T0 ->T1 : T1 +>cahirinus : cahirinus, Symbol(cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 570, 27)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 570, 30)) alashanicus(): nigra.caucasica { var x: nigra.caucasica; () => { var y = this; }; return x; } ->alashanicus : () => nigra.caucasica ->nigra : unknown ->caucasica : nigra.caucasica ->ruatanica : unknown ->americanus : ruatanica.americanus ->argurus : unknown ->peninsulae : argurus.peninsulae ->x : nigra.caucasica ->nigra : unknown ->caucasica : nigra.caucasica ->ruatanica : unknown ->americanus : ruatanica.americanus ->argurus : unknown ->peninsulae : argurus.peninsulae +>alashanicus : () => nigra.caucasica, Symbol(alashanicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 570, 36)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>caucasica : nigra.caucasica, Symbol(nigra.caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : nigra.caucasica, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 571, 86)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>caucasica : nigra.caucasica, Symbol(nigra.caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) >() => { var y = this; } : () => void ->y : cahirinus ->this : cahirinus ->x : nigra.caucasica +>y : cahirinus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 571, 160)) +>this : cahirinus, Symbol(cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>x : nigra.caucasica, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 571, 86)) flaviventer(): trivirgatus.tumidifrons> { var x: trivirgatus.tumidifrons>; () => { var y = this; }; return x; } ->flaviventer : () => trivirgatus.tumidifrons> ->trivirgatus : unknown ->tumidifrons : trivirgatus.tumidifrons ->lavali : unknown ->thaeleri : lavali.thaeleri ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->argurus : unknown ->peninsulae : argurus.peninsulae ->x : trivirgatus.tumidifrons> ->trivirgatus : unknown ->tumidifrons : trivirgatus.tumidifrons ->lavali : unknown ->thaeleri : lavali.thaeleri ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->argurus : unknown ->peninsulae : argurus.peninsulae +>flaviventer : () => trivirgatus.tumidifrons>, Symbol(flaviventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 571, 185)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>tumidifrons : trivirgatus.tumidifrons, Symbol(trivirgatus.tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : trivirgatus.tumidifrons>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 572, 134)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>tumidifrons : trivirgatus.tumidifrons, Symbol(trivirgatus.tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) >() => { var y = this; } : () => void ->y : cahirinus ->this : cahirinus ->x : trivirgatus.tumidifrons> +>y : cahirinus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 572, 256)) +>this : cahirinus, Symbol(cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>x : trivirgatus.tumidifrons>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 572, 134)) bottai(): lutreolus.schlegeli { var x: lutreolus.schlegeli; () => { var y = this; }; return x; } ->bottai : () => lutreolus.schlegeli ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->x : lutreolus.schlegeli ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli +>bottai : () => lutreolus.schlegeli, Symbol(bottai, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 572, 281)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : lutreolus.schlegeli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 573, 43)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) >() => { var y = this; } : () => void ->y : cahirinus ->this : cahirinus ->x : lutreolus.schlegeli +>y : cahirinus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 573, 79)) +>this : cahirinus, Symbol(cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>x : lutreolus.schlegeli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 573, 43)) pinetis(): argurus.oreas { var x: argurus.oreas; () => { var y = this; }; return x; } ->pinetis : () => argurus.oreas ->argurus : unknown ->oreas : argurus.oreas ->x : argurus.oreas ->argurus : unknown ->oreas : argurus.oreas +>pinetis : () => argurus.oreas, Symbol(pinetis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 573, 104)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 574, 38)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : cahirinus ->this : cahirinus ->x : argurus.oreas +>y : cahirinus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 574, 68)) +>this : cahirinus, Symbol(cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 574, 38)) saussurei(): rendalli.crenulata, argurus.netscheri, julianae.oralis>> { var x: rendalli.crenulata, argurus.netscheri, julianae.oralis>>; () => { var y = this; }; return x; } ->saussurei : () => rendalli.crenulata, argurus.netscheri, julianae.oralis>> ->rendalli : unknown ->crenulata : rendalli.crenulata ->gabriellae : unknown ->klossii : gabriellae.klossii ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata ->argurus : unknown ->netscheri : argurus.netscheri ->minutus : unknown ->inez : minutus.inez ->argurus : unknown ->peninsulae : argurus.peninsulae ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->julianae : unknown ->oralis : julianae.oralis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->argurus : unknown ->oreas : argurus.oreas ->x : rendalli.crenulata, argurus.netscheri, julianae.oralis>> ->rendalli : unknown ->crenulata : rendalli.crenulata ->gabriellae : unknown ->klossii : gabriellae.klossii ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata ->argurus : unknown ->netscheri : argurus.netscheri ->minutus : unknown ->inez : minutus.inez ->argurus : unknown ->peninsulae : argurus.peninsulae ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->julianae : unknown ->oralis : julianae.oralis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->argurus : unknown ->oreas : argurus.oreas +>saussurei : () => rendalli.crenulata, argurus.netscheri, julianae.oralis>>, Symbol(saussurei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 574, 93)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : rendalli.crenulata, argurus.netscheri, julianae.oralis>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 575, 233)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : cahirinus ->this : cahirinus ->x : rendalli.crenulata, argurus.netscheri, julianae.oralis>> +>y : cahirinus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 575, 456)) +>this : cahirinus, Symbol(cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>x : rendalli.crenulata, argurus.netscheri, julianae.oralis>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 575, 233)) } } module sagitta { ->sagitta : typeof sagitta +>sagitta : typeof sagitta, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) export class leptoceros extends caurinus.johorensis> { ->leptoceros : leptoceros ->T0 : T0 ->T1 : T1 ->caurinus : typeof caurinus ->johorensis : caurinus.johorensis ->argurus : unknown ->peninsulae : argurus.peninsulae ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->argurus : unknown ->germaini : argurus.germaini ->sagitta : unknown ->stolzmanni : stolzmanni +>leptoceros : leptoceros, Symbol(leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 579, 28)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 579, 31)) +>caurinus.johorensis : any, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>caurinus : typeof caurinus, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) victus(): rionegrensis.caniventer { var x: rionegrensis.caniventer; () => { var y = this; }; return x; } ->victus : () => rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>victus : () => rionegrensis.caniventer, Symbol(victus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 579, 145)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 580, 47)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : leptoceros ->this : leptoceros ->x : rionegrensis.caniventer +>y : leptoceros, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 580, 87)) +>this : leptoceros, Symbol(leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 580, 47)) hoplomyoides(): panglima.fundatus, nigra.gracilis> { var x: panglima.fundatus, nigra.gracilis>; () => { var y = this; }; return x; } ->hoplomyoides : () => panglima.fundatus, nigra.gracilis> ->panglima : unknown ->fundatus : panglima.fundatus ->julianae : unknown ->gerbillus : julianae.gerbillus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->julianae : unknown ->durangae : julianae.durangae ->nigra : unknown ->gracilis : nigra.gracilis ->argurus : unknown ->luctuosa : argurus.luctuosa ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : panglima.fundatus, nigra.gracilis> ->panglima : unknown ->fundatus : panglima.fundatus ->julianae : unknown ->gerbillus : julianae.gerbillus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->julianae : unknown ->durangae : julianae.durangae ->nigra : unknown ->gracilis : nigra.gracilis ->argurus : unknown ->luctuosa : argurus.luctuosa ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>hoplomyoides : () => panglima.fundatus, nigra.gracilis>, Symbol(hoplomyoides, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 580, 112)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : panglima.fundatus, nigra.gracilis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 581, 168)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : leptoceros ->this : leptoceros ->x : panglima.fundatus, nigra.gracilis> +>y : leptoceros, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 581, 323)) +>this : leptoceros, Symbol(leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>x : panglima.fundatus, nigra.gracilis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 581, 168)) gratiosus(): lavali.lepturus { var x: lavali.lepturus; () => { var y = this; }; return x; } ->gratiosus : () => lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus ->x : lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus +>gratiosus : () => lavali.lepturus, Symbol(gratiosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 581, 348)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 582, 42)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : leptoceros ->this : leptoceros ->x : lavali.lepturus +>y : leptoceros, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 582, 74)) +>this : leptoceros, Symbol(leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 582, 42)) rex(): lavali.wilsoni { var x: lavali.wilsoni; () => { var y = this; }; return x; } ->rex : () => lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni +>rex : () => lavali.wilsoni, Symbol(rex, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 582, 99)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 583, 35)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : leptoceros ->this : leptoceros ->x : lavali.wilsoni +>y : leptoceros, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 583, 66)) +>this : leptoceros, Symbol(leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 583, 35)) bolami(): trivirgatus.tumidifrons { var x: trivirgatus.tumidifrons; () => { var y = this; }; return x; } ->bolami : () => trivirgatus.tumidifrons ->trivirgatus : unknown ->tumidifrons : trivirgatus.tumidifrons ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : trivirgatus.tumidifrons ->trivirgatus : unknown ->tumidifrons : trivirgatus.tumidifrons ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->ruatanica : unknown ->americanus : ruatanica.americanus +>bolami : () => trivirgatus.tumidifrons, Symbol(bolami, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 583, 91)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>tumidifrons : trivirgatus.tumidifrons, Symbol(trivirgatus.tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : trivirgatus.tumidifrons, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 584, 90)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>tumidifrons : trivirgatus.tumidifrons, Symbol(trivirgatus.tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : leptoceros ->this : leptoceros ->x : trivirgatus.tumidifrons +>y : leptoceros, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 584, 173)) +>this : leptoceros, Symbol(leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>x : trivirgatus.tumidifrons, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 584, 90)) } } module daubentonii { ->daubentonii : typeof daubentonii +>daubentonii : typeof daubentonii, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) export class nigricans extends sagitta.stolzmanni { ->nigricans : nigricans ->T0 : T0 ->T1 : T1 ->sagitta : typeof sagitta ->stolzmanni : sagitta.stolzmanni +>nigricans : nigricans, Symbol(nigricans, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 587, 20)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 588, 27)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 588, 30)) +>sagitta.stolzmanni : any, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>sagitta : typeof sagitta, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) woosnami(): dogramacii.robustulus { var x: dogramacii.robustulus; () => { var y = this; }; return x; } ->woosnami : () => dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : dogramacii.robustulus ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>woosnami : () => dogramacii.robustulus, Symbol(woosnami, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 588, 63)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 589, 47)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : nigricans ->this : nigricans ->x : dogramacii.robustulus +>y : nigricans, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 589, 85)) +>this : nigricans, Symbol(nigricans, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 587, 20)) +>x : dogramacii.robustulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 589, 47)) } } module dammermani { ->dammermani : typeof dammermani +>dammermani : typeof dammermani, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) export class siberu { ->siberu : siberu ->T0 : T0 ->T1 : T1 +>siberu : siberu, Symbol(siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 593, 24)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 593, 27)) } } module argurus { ->argurus : typeof argurus +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) export class pygmaea extends rendalli.moojeni { ->pygmaea : pygmaea ->T0 : T0 ->T1 : T1 ->rendalli : typeof rendalli ->moojeni : rendalli.moojeni ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>pygmaea : pygmaea, Symbol(pygmaea, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 596, 16)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 597, 25)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 597, 28)) +>rendalli.moojeni : any, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>rendalli : typeof rendalli, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) pajeros(): gabriellae.echinatus { var x: gabriellae.echinatus; () => { var y = this; }; return x; } ->pajeros : () => gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>pajeros : () => gabriellae.echinatus, Symbol(pajeros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 597, 106)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 598, 45)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : pygmaea ->this : pygmaea ->x : gabriellae.echinatus +>y : pygmaea, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 598, 82)) +>this : pygmaea, Symbol(pygmaea, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 596, 16)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 598, 45)) capucinus(): rendalli.zuluensis { var x: rendalli.zuluensis; () => { var y = this; }; return x; } ->capucinus : () => rendalli.zuluensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->x : rendalli.zuluensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis +>capucinus : () => rendalli.zuluensis, Symbol(capucinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 598, 107)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : rendalli.zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 599, 45)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) >() => { var y = this; } : () => void ->y : pygmaea ->this : pygmaea ->x : rendalli.zuluensis +>y : pygmaea, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 599, 80)) +>this : pygmaea, Symbol(pygmaea, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 596, 16)) +>x : rendalli.zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 599, 45)) cuvieri(): rionegrensis.caniventer { var x: rionegrensis.caniventer; () => { var y = this; }; return x; } ->cuvieri : () => rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>cuvieri : () => rionegrensis.caniventer, Symbol(cuvieri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 599, 105)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 600, 48)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : pygmaea ->this : pygmaea ->x : rionegrensis.caniventer +>y : pygmaea, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 600, 88)) +>this : pygmaea, Symbol(pygmaea, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 596, 16)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 600, 48)) } } module chrysaeolus { ->chrysaeolus : typeof chrysaeolus +>chrysaeolus : typeof chrysaeolus, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) export class sarasinorum extends caurinus.psilurus { ->sarasinorum : sarasinorum ->T0 : T0 ->T1 : T1 ->caurinus : typeof caurinus ->psilurus : caurinus.psilurus +>sarasinorum : sarasinorum, Symbol(sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 604, 29)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 604, 32)) +>caurinus.psilurus : any, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>caurinus : typeof caurinus, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) belzebul(): samarensis.pallidus { var x: samarensis.pallidus; () => { var y = this; }; return x; } ->belzebul : () => samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus +>belzebul : () => samarensis.pallidus, Symbol(belzebul, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 604, 64)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 605, 45)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : sarasinorum ->this : sarasinorum ->x : samarensis.pallidus +>y : sarasinorum, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 605, 81)) +>this : sarasinorum, Symbol(sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 605, 45)) hinpoon(): nigra.caucasica { var x: nigra.caucasica; () => { var y = this; }; return x; } ->hinpoon : () => nigra.caucasica ->nigra : unknown ->caucasica : nigra.caucasica ->julianae : unknown ->sumatrana : julianae.sumatrana ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : nigra.caucasica ->nigra : unknown ->caucasica : nigra.caucasica ->julianae : unknown ->sumatrana : julianae.sumatrana ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>hinpoon : () => nigra.caucasica, Symbol(hinpoon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 605, 106)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>caucasica : nigra.caucasica, Symbol(nigra.caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : nigra.caucasica, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 606, 83)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>caucasica : nigra.caucasica, Symbol(nigra.caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : sarasinorum ->this : sarasinorum ->x : nigra.caucasica +>y : sarasinorum, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 606, 158)) +>this : sarasinorum, Symbol(sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>x : nigra.caucasica, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 606, 83)) kandti(): quasiater.wattsi { var x: quasiater.wattsi; () => { var y = this; }; return x; } ->kandti : () => quasiater.wattsi ->quasiater : unknown ->wattsi : quasiater.wattsi ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : quasiater.wattsi ->quasiater : unknown ->wattsi : quasiater.wattsi ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->julianae : unknown ->sumatrana : julianae.sumatrana +>kandti : () => quasiater.wattsi, Symbol(kandti, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 606, 183)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : quasiater.wattsi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 607, 81)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : sarasinorum ->this : sarasinorum ->x : quasiater.wattsi +>y : sarasinorum, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 607, 155)) +>this : sarasinorum, Symbol(sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>x : quasiater.wattsi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 607, 81)) cynosuros(): dammermani.melanops { var x: dammermani.melanops; () => { var y = this; }; return x; } ->cynosuros : () => dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops ->x : dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops +>cynosuros : () => dammermani.melanops, Symbol(cynosuros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 607, 180)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 608, 46)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : sarasinorum ->this : sarasinorum ->x : dammermani.melanops +>y : sarasinorum, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 608, 82)) +>this : sarasinorum, Symbol(sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 608, 46)) Germanium(): lavali.beisa { var x: lavali.beisa; () => { var y = this; }; return x; } ->Germanium : () => lavali.beisa ->lavali : unknown ->beisa : lavali.beisa ->x : lavali.beisa ->lavali : unknown ->beisa : lavali.beisa +>Germanium : () => lavali.beisa, Symbol(Germanium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 608, 107)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : lavali.beisa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 609, 39)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : sarasinorum ->this : sarasinorum ->x : lavali.beisa +>y : sarasinorum, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 609, 68)) +>this : sarasinorum, Symbol(sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>x : lavali.beisa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 609, 39)) Ununoctium(): nigra.gracilis { var x: nigra.gracilis; () => { var y = this; }; return x; } ->Ununoctium : () => nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>Ununoctium : () => nigra.gracilis, Symbol(Ununoctium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 609, 93)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 610, 86)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : sarasinorum ->this : sarasinorum ->x : nigra.gracilis +>y : sarasinorum, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 610, 161)) +>this : sarasinorum, Symbol(sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 610, 86)) princeps(): minutus.portoricensis { var x: minutus.portoricensis; () => { var y = this; }; return x; } ->princeps : () => minutus.portoricensis ->minutus : unknown ->portoricensis : minutus.portoricensis ->x : minutus.portoricensis ->minutus : unknown ->portoricensis : minutus.portoricensis +>princeps : () => minutus.portoricensis, Symbol(princeps, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 610, 186)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>x : minutus.portoricensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 611, 47)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) >() => { var y = this; } : () => void ->y : sarasinorum ->this : sarasinorum ->x : minutus.portoricensis +>y : sarasinorum, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 611, 85)) +>this : sarasinorum, Symbol(sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>x : minutus.portoricensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 611, 47)) } } module argurus { ->argurus : typeof argurus +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) export class wetmorei { ->wetmorei : wetmorei ->T0 : T0 ->T1 : T1 +>wetmorei : wetmorei, Symbol(wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 615, 26)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 615, 29)) leucoptera(): petrophilus.rosalia { var x: petrophilus.rosalia; () => { var y = this; }; return x; } ->leucoptera : () => petrophilus.rosalia ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->lutreolus : unknown ->foina : lutreolus.foina ->x : petrophilus.rosalia ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->lutreolus : unknown ->foina : lutreolus.foina +>leucoptera : () => petrophilus.rosalia, Symbol(leucoptera, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 615, 35)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : petrophilus.rosalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 616, 86)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : wetmorei ->this : wetmorei ->x : petrophilus.rosalia +>y : wetmorei, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 616, 161)) +>this : wetmorei, Symbol(wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>x : petrophilus.rosalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 616, 86)) ochraventer(): sagitta.walkeri { var x: sagitta.walkeri; () => { var y = this; }; return x; } ->ochraventer : () => sagitta.walkeri ->sagitta : unknown ->walkeri : sagitta.walkeri ->x : sagitta.walkeri ->sagitta : unknown ->walkeri : sagitta.walkeri +>ochraventer : () => sagitta.walkeri, Symbol(ochraventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 616, 186)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>x : sagitta.walkeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 617, 44)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) >() => { var y = this; } : () => void ->y : wetmorei ->this : wetmorei ->x : sagitta.walkeri +>y : wetmorei, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 617, 76)) +>this : wetmorei, Symbol(wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>x : sagitta.walkeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 617, 44)) tephromelas(): Lanthanum.jugularis { var x: Lanthanum.jugularis; () => { var y = this; }; return x; } ->tephromelas : () => Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>tephromelas : () => Lanthanum.jugularis, Symbol(tephromelas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 617, 101)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 618, 48)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : wetmorei ->this : wetmorei ->x : Lanthanum.jugularis +>y : wetmorei, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 618, 84)) +>this : wetmorei, Symbol(wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 618, 48)) cracens(): argurus.gilbertii { var x: argurus.gilbertii; () => { var y = this; }; return x; } ->cracens : () => gilbertii ->argurus : unknown ->gilbertii : gilbertii ->lavali : unknown ->thaeleri : lavali.thaeleri ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : gilbertii ->argurus : unknown ->gilbertii : gilbertii ->lavali : unknown ->thaeleri : lavali.thaeleri ->lutreolus : unknown ->punicus : lutreolus.punicus +>cracens : () => gilbertii, Symbol(cracens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 618, 109)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>gilbertii : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : gilbertii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 619, 78)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>gilbertii : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : wetmorei ->this : wetmorei ->x : gilbertii +>y : wetmorei, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 619, 148)) +>this : wetmorei, Symbol(wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>x : gilbertii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 619, 78)) jamaicensis(): nigra.thalia> { var x: nigra.thalia>; () => { var y = this; }; return x; } ->jamaicensis : () => nigra.thalia> ->nigra : unknown ->thalia : nigra.thalia ->howi : unknown ->marcanoi : howi.marcanoi ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : nigra.thalia> ->nigra : unknown ->thalia : nigra.thalia ->howi : unknown ->marcanoi : howi.marcanoi ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>jamaicensis : () => nigra.thalia>, Symbol(jamaicensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 619, 173)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : nigra.thalia>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 620, 129)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : wetmorei ->this : wetmorei ->x : nigra.thalia> +>y : wetmorei, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 620, 246)) +>this : wetmorei, Symbol(wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>x : nigra.thalia>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 620, 129)) gymnocaudus(): dogramacii.aurata { var x: dogramacii.aurata; () => { var y = this; }; return x; } ->gymnocaudus : () => dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata ->x : dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata +>gymnocaudus : () => dogramacii.aurata, Symbol(gymnocaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 620, 271)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : dogramacii.aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 621, 46)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : wetmorei ->this : wetmorei ->x : dogramacii.aurata +>y : wetmorei, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 621, 80)) +>this : wetmorei, Symbol(wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>x : dogramacii.aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 621, 46)) mayori(): sagitta.stolzmanni { var x: sagitta.stolzmanni; () => { var y = this; }; return x; } ->mayori : () => sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>mayori : () => sagitta.stolzmanni, Symbol(mayori, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 621, 105)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 622, 42)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : wetmorei ->this : wetmorei ->x : sagitta.stolzmanni +>y : wetmorei, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 622, 77)) +>this : wetmorei, Symbol(wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 622, 42)) } } module argurus { ->argurus : typeof argurus +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) export class oreas extends lavali.wilsoni { ->oreas : oreas ->lavali : typeof lavali ->wilsoni : lavali.wilsoni +>oreas : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>lavali.wilsoni : any, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lavali : typeof lavali, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) salamonis(): lavali.xanthognathus { var x: lavali.xanthognathus; () => { var y = this; }; return x; } ->salamonis : () => lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>salamonis : () => lavali.xanthognathus, Symbol(salamonis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 626, 47)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 627, 47)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : oreas ->this : oreas ->x : lavali.xanthognathus +>y : oreas, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 627, 84)) +>this : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 627, 47)) paniscus(): ruatanica.Praseodymium { var x: ruatanica.Praseodymium; () => { var y = this; }; return x; } ->paniscus : () => ruatanica.Praseodymium ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->caurinus : unknown ->psilurus : caurinus.psilurus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : ruatanica.Praseodymium ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->caurinus : unknown ->psilurus : caurinus.psilurus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>paniscus : () => ruatanica.Praseodymium, Symbol(paniscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 627, 109)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : ruatanica.Praseodymium, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 628, 89)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : oreas ->this : oreas ->x : ruatanica.Praseodymium +>y : oreas, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 628, 169)) +>this : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : ruatanica.Praseodymium, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 628, 89)) fagani(): trivirgatus.oconnelli { var x: trivirgatus.oconnelli; () => { var y = this; }; return x; } ->fagani : () => trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>fagani : () => trivirgatus.oconnelli, Symbol(fagani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 628, 194)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 629, 45)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : oreas ->this : oreas ->x : trivirgatus.oconnelli +>y : oreas, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 629, 83)) +>this : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 629, 45)) papuanus(): panglima.fundatus { var x: panglima.fundatus; () => { var y = this; }; return x; } ->papuanus : () => panglima.fundatus ->panglima : unknown ->fundatus : panglima.fundatus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : panglima.fundatus ->panglima : unknown ->fundatus : panglima.fundatus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>papuanus : () => panglima.fundatus, Symbol(papuanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 629, 108)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : panglima.fundatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 630, 92)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : oreas ->this : oreas ->x : panglima.fundatus +>y : oreas, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 630, 175)) +>this : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : panglima.fundatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 630, 92)) timidus(): dammermani.melanops { var x: dammermani.melanops; () => { var y = this; }; return x; } ->timidus : () => dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops ->x : dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops +>timidus : () => dammermani.melanops, Symbol(timidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 630, 200)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 631, 44)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : oreas ->this : oreas ->x : dammermani.melanops +>y : oreas, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 631, 80)) +>this : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 631, 44)) nghetinhensis(): gabriellae.klossii { var x: gabriellae.klossii; () => { var y = this; }; return x; } ->nghetinhensis : () => gabriellae.klossii ->gabriellae : unknown ->klossii : gabriellae.klossii ->argurus : unknown ->luctuosa : luctuosa ->julianae : unknown ->steerii : julianae.steerii ->x : gabriellae.klossii ->gabriellae : unknown ->klossii : gabriellae.klossii ->argurus : unknown ->luctuosa : luctuosa ->julianae : unknown ->steerii : julianae.steerii +>nghetinhensis : () => gabriellae.klossii, Symbol(nghetinhensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 631, 105)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : luctuosa, Symbol(luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : gabriellae.klossii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 632, 85)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : luctuosa, Symbol(luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : oreas ->this : oreas ->x : gabriellae.klossii +>y : oreas, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 632, 156)) +>this : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : gabriellae.klossii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 632, 85)) barbei(): samarensis.cahirinus { var x: samarensis.cahirinus; () => { var y = this; }; return x; } ->barbei : () => samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->lavali : unknown ->lepturus : lavali.lepturus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->lavali : unknown ->lepturus : lavali.lepturus ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>barbei : () => samarensis.cahirinus, Symbol(barbei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 632, 181)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 633, 85)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : oreas ->this : oreas ->x : samarensis.cahirinus +>y : oreas, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 633, 163)) +>this : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 633, 85)) univittatus(): argurus.peninsulae { var x: argurus.peninsulae; () => { var y = this; }; return x; } ->univittatus : () => peninsulae ->argurus : unknown ->peninsulae : peninsulae ->x : peninsulae ->argurus : unknown ->peninsulae : peninsulae +>univittatus : () => peninsulae, Symbol(univittatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 633, 188)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : peninsulae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 634, 47)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) >() => { var y = this; } : () => void ->y : oreas ->this : oreas ->x : peninsulae +>y : oreas, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 634, 82)) +>this : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : peninsulae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 634, 47)) } } module daubentonii { ->daubentonii : typeof daubentonii +>daubentonii : typeof daubentonii, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) export class arboreus { ->arboreus : arboreus ->T0 : T0 ->T1 : T1 +>arboreus : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 638, 26)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 638, 29)) capreolus(): rendalli.crenulata, lavali.wilsoni> { var x: rendalli.crenulata, lavali.wilsoni>; () => { var y = this; }; return x; } ->capreolus : () => rendalli.crenulata, lavali.wilsoni> ->rendalli : unknown ->crenulata : rendalli.crenulata ->samarensis : unknown ->pelurus : samarensis.pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->ruatanica : unknown ->americanus : ruatanica.americanus ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : rendalli.crenulata, lavali.wilsoni> ->rendalli : unknown ->crenulata : rendalli.crenulata ->samarensis : unknown ->pelurus : samarensis.pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->ruatanica : unknown ->americanus : ruatanica.americanus ->lavali : unknown ->wilsoni : lavali.wilsoni +>capreolus : () => rendalli.crenulata, lavali.wilsoni>, Symbol(capreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 638, 35)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : rendalli.crenulata, lavali.wilsoni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 639, 124)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : arboreus ->this : arboreus ->x : rendalli.crenulata, lavali.wilsoni> +>y : arboreus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 639, 238)) +>this : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>x : rendalli.crenulata, lavali.wilsoni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 639, 124)) moreni(): panglima.abidi { var x: panglima.abidi; () => { var y = this; }; return x; } ->moreni : () => panglima.abidi ->panglima : unknown ->abidi : panglima.abidi ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->x : panglima.abidi ->panglima : unknown ->abidi : panglima.abidi ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae +>moreni : () => panglima.abidi, Symbol(moreni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 639, 263)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : panglima.abidi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 640, 84)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) >() => { var y = this; } : () => void ->y : arboreus ->this : arboreus ->x : panglima.abidi +>y : arboreus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 640, 161)) +>this : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>x : panglima.abidi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 640, 84)) hypoleucos(): nigra.gracilis { var x: nigra.gracilis; () => { var y = this; }; return x; } ->hypoleucos : () => nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->argurus : unknown ->germaini : argurus.germaini ->x : nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->argurus : unknown ->germaini : argurus.germaini +>hypoleucos : () => nigra.gracilis, Symbol(hypoleucos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 640, 186)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 641, 83)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) >() => { var y = this; } : () => void ->y : arboreus ->this : arboreus ->x : nigra.gracilis +>y : arboreus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 641, 155)) +>this : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 641, 83)) paedulcus(): minutus.portoricensis { var x: minutus.portoricensis; () => { var y = this; }; return x; } ->paedulcus : () => minutus.portoricensis ->minutus : unknown ->portoricensis : minutus.portoricensis ->x : minutus.portoricensis ->minutus : unknown ->portoricensis : minutus.portoricensis +>paedulcus : () => minutus.portoricensis, Symbol(paedulcus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 641, 180)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>x : minutus.portoricensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 642, 48)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) >() => { var y = this; } : () => void ->y : arboreus ->this : arboreus ->x : minutus.portoricensis +>y : arboreus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 642, 86)) +>this : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>x : minutus.portoricensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 642, 48)) pucheranii(): samarensis.fuscus { var x: samarensis.fuscus; () => { var y = this; }; return x; } ->pucheranii : () => samarensis.fuscus ->samarensis : unknown ->fuscus : samarensis.fuscus ->julianae : unknown ->durangae : julianae.durangae ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->x : samarensis.fuscus ->samarensis : unknown ->fuscus : samarensis.fuscus ->julianae : unknown ->durangae : julianae.durangae ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus +>pucheranii : () => samarensis.fuscus, Symbol(pucheranii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 642, 111)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : samarensis.fuscus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 643, 86)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) >() => { var y = this; } : () => void ->y : arboreus ->this : arboreus ->x : samarensis.fuscus +>y : arboreus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 643, 161)) +>this : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>x : samarensis.fuscus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 643, 86)) stella(): julianae.oralis { var x: julianae.oralis; () => { var y = this; }; return x; } ->stella : () => julianae.oralis ->julianae : unknown ->oralis : julianae.oralis ->lutreolus : unknown ->foina : lutreolus.foina ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : julianae.oralis ->julianae : unknown ->oralis : julianae.oralis ->lutreolus : unknown ->foina : lutreolus.foina ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>stella : () => julianae.oralis, Symbol(stella, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 643, 186)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : julianae.oralis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 644, 80)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : arboreus ->this : arboreus ->x : julianae.oralis +>y : arboreus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 644, 153)) +>this : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>x : julianae.oralis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 644, 80)) brasiliensis(): imperfecta.subspinosus { var x: imperfecta.subspinosus; () => { var y = this; }; return x; } ->brasiliensis : () => imperfecta.subspinosus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : imperfecta.subspinosus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>brasiliensis : () => imperfecta.subspinosus, Symbol(brasiliensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 644, 178)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : imperfecta.subspinosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 645, 52)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : arboreus ->this : arboreus ->x : imperfecta.subspinosus +>y : arboreus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 645, 91)) +>this : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>x : imperfecta.subspinosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 645, 52)) brevicaudata(): trivirgatus.oconnelli { var x: trivirgatus.oconnelli; () => { var y = this; }; return x; } ->brevicaudata : () => trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>brevicaudata : () => trivirgatus.oconnelli, Symbol(brevicaudata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 645, 116)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 646, 51)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : arboreus ->this : arboreus ->x : trivirgatus.oconnelli +>y : arboreus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 646, 89)) +>this : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 646, 51)) vitticollis(): dogramacii.koepckeae { var x: dogramacii.koepckeae; () => { var y = this; }; return x; } ->vitticollis : () => dogramacii.koepckeae ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->x : dogramacii.koepckeae ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae +>vitticollis : () => dogramacii.koepckeae, Symbol(vitticollis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 646, 114)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : dogramacii.koepckeae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 647, 49)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) >() => { var y = this; } : () => void ->y : arboreus ->this : arboreus ->x : dogramacii.koepckeae +>y : arboreus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 647, 86)) +>this : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>x : dogramacii.koepckeae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 647, 49)) huangensis(): caurinus.psilurus { var x: caurinus.psilurus; () => { var y = this; }; return x; } ->huangensis : () => caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus +>huangensis : () => caurinus.psilurus, Symbol(huangensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 647, 111)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 648, 45)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : arboreus ->this : arboreus ->x : caurinus.psilurus +>y : arboreus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 648, 79)) +>this : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 648, 45)) cameroni(): petrophilus.rosalia, imperfecta.ciliolabrum>, caurinus.psilurus> { var x: petrophilus.rosalia, imperfecta.ciliolabrum>, caurinus.psilurus>; () => { var y = this; }; return x; } ->cameroni : () => petrophilus.rosalia, imperfecta.ciliolabrum>, caurinus.psilurus> ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->dammermani : unknown ->siberu : dammermani.siberu ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->lutreolus : unknown ->foina : lutreolus.foina ->dammermani : unknown ->melanops : dammermani.melanops ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : petrophilus.rosalia, imperfecta.ciliolabrum>, caurinus.psilurus> ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->dammermani : unknown ->siberu : dammermani.siberu ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->lutreolus : unknown ->foina : lutreolus.foina ->dammermani : unknown ->melanops : dammermani.melanops ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->caurinus : unknown ->psilurus : caurinus.psilurus +>cameroni : () => petrophilus.rosalia, imperfecta.ciliolabrum>, caurinus.psilurus>, Symbol(cameroni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 648, 104)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : petrophilus.rosalia, imperfecta.ciliolabrum>, caurinus.psilurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 649, 210)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : arboreus ->this : arboreus ->x : petrophilus.rosalia, imperfecta.ciliolabrum>, caurinus.psilurus> +>y : arboreus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 649, 411)) +>this : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>x : petrophilus.rosalia, imperfecta.ciliolabrum>, caurinus.psilurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 649, 210)) tianshanica(): howi.marcanoi { var x: howi.marcanoi; () => { var y = this; }; return x; } ->tianshanica : () => howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi ->x : howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi +>tianshanica : () => howi.marcanoi, Symbol(tianshanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 649, 436)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 650, 42)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : arboreus ->this : arboreus ->x : howi.marcanoi +>y : arboreus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 650, 72)) +>this : arboreus, Symbol(arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 650, 42)) } } module patas { ->patas : typeof patas +>patas : typeof patas, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) export class uralensis { ->uralensis : uralensis +>uralensis : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) cartilagonodus(): Lanthanum.nitidus { var x: Lanthanum.nitidus; () => { var y = this; }; return x; } ->cartilagonodus : () => Lanthanum.nitidus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : Lanthanum.nitidus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>cartilagonodus : () => Lanthanum.nitidus, Symbol(cartilagonodus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 654, 28)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : Lanthanum.nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 655, 95)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : Lanthanum.nitidus +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 655, 175)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : Lanthanum.nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 655, 95)) pyrrhinus(): lavali.beisa { var x: lavali.beisa; () => { var y = this; }; return x; } ->pyrrhinus : () => lavali.beisa ->lavali : unknown ->beisa : lavali.beisa ->x : lavali.beisa ->lavali : unknown ->beisa : lavali.beisa +>pyrrhinus : () => lavali.beisa, Symbol(pyrrhinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 655, 200)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : lavali.beisa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 656, 39)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : lavali.beisa +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 656, 68)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : lavali.beisa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 656, 39)) insulans(): Lanthanum.jugularis { var x: Lanthanum.jugularis; () => { var y = this; }; return x; } ->insulans : () => Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>insulans : () => Lanthanum.jugularis, Symbol(insulans, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 656, 93)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 657, 45)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : Lanthanum.jugularis +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 657, 81)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 657, 45)) nigricauda(): caurinus.johorensis, Lanthanum.jugularis> { var x: caurinus.johorensis, Lanthanum.jugularis>; () => { var y = this; }; return x; } ->nigricauda : () => caurinus.johorensis, Lanthanum.jugularis> ->caurinus : unknown ->johorensis : caurinus.johorensis ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->julianae : unknown ->sumatrana : julianae.sumatrana ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : caurinus.johorensis, Lanthanum.jugularis> ->caurinus : unknown ->johorensis : caurinus.johorensis ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->julianae : unknown ->sumatrana : julianae.sumatrana ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>nigricauda : () => caurinus.johorensis, Lanthanum.jugularis>, Symbol(nigricauda, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 657, 106)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : caurinus.johorensis, Lanthanum.jugularis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 658, 130)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : caurinus.johorensis, Lanthanum.jugularis> +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 658, 249)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : caurinus.johorensis, Lanthanum.jugularis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 658, 130)) muricauda(): panglima.fundatus> { var x: panglima.fundatus>; () => { var y = this; }; return x; } ->muricauda : () => panglima.fundatus> ->panglima : unknown ->fundatus : panglima.fundatus ->lutreolus : unknown ->foina : lutreolus.foina ->dammermani : unknown ->siberu : dammermani.siberu ->lutreolus : unknown ->punicus : lutreolus.punicus ->julianae : unknown ->acariensis : julianae.acariensis ->x : panglima.fundatus> ->panglima : unknown ->fundatus : panglima.fundatus ->lutreolus : unknown ->foina : lutreolus.foina ->dammermani : unknown ->siberu : dammermani.siberu ->lutreolus : unknown ->punicus : lutreolus.punicus ->julianae : unknown ->acariensis : julianae.acariensis +>muricauda : () => panglima.fundatus>, Symbol(muricauda, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 658, 274)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : panglima.fundatus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 659, 120)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : panglima.fundatus> +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 659, 230)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : panglima.fundatus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 659, 120)) albicaudus(): sagitta.stolzmanni { var x: sagitta.stolzmanni; () => { var y = this; }; return x; } ->albicaudus : () => sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>albicaudus : () => sagitta.stolzmanni, Symbol(albicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 659, 255)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 660, 46)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : sagitta.stolzmanni +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 660, 81)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 660, 46)) fallax(): ruatanica.hector { var x: ruatanica.hector; () => { var y = this; }; return x; } ->fallax : () => ruatanica.hector ->ruatanica : unknown ->hector : ruatanica.hector ->lutreolus : unknown ->punicus : lutreolus.punicus ->gabriellae : unknown ->amicus : gabriellae.amicus ->x : ruatanica.hector ->ruatanica : unknown ->hector : ruatanica.hector ->lutreolus : unknown ->punicus : lutreolus.punicus ->gabriellae : unknown ->amicus : gabriellae.amicus +>fallax : () => ruatanica.hector, Symbol(fallax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 660, 106)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : ruatanica.hector, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 661, 78)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : ruatanica.hector +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 661, 149)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : ruatanica.hector, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 661, 78)) attenuata(): macrorhinos.marmosurus> { var x: macrorhinos.marmosurus>; () => { var y = this; }; return x; } ->attenuata : () => macrorhinos.marmosurus> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->ruatanica : unknown ->americanus : ruatanica.americanus ->argurus : unknown ->netscheri : argurus.netscheri ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : macrorhinos.marmosurus> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->ruatanica : unknown ->americanus : ruatanica.americanus ->argurus : unknown ->netscheri : argurus.netscheri ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>attenuata : () => macrorhinos.marmosurus>, Symbol(attenuata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 661, 174)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : macrorhinos.marmosurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 662, 134)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : macrorhinos.marmosurus> +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 662, 258)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : macrorhinos.marmosurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 662, 134)) megalura(): howi.marcanoi { var x: howi.marcanoi; () => { var y = this; }; return x; } ->megalura : () => howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi ->x : howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi +>megalura : () => howi.marcanoi, Symbol(megalura, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 662, 283)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 663, 39)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : howi.marcanoi +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 663, 69)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 663, 39)) neblina(): samarensis.pelurus { var x: samarensis.pelurus; () => { var y = this; }; return x; } ->neblina : () => samarensis.pelurus ->samarensis : unknown ->pelurus : samarensis.pelurus ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : samarensis.pelurus ->samarensis : unknown ->pelurus : samarensis.pelurus ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>neblina : () => samarensis.pelurus, Symbol(neblina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 663, 94)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : samarensis.pelurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 664, 93)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : samarensis.pelurus +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 664, 178)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : samarensis.pelurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 664, 93)) citellus(): daubentonii.arboreus { var x: daubentonii.arboreus; () => { var y = this; }; return x; } ->citellus : () => daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>citellus : () => daubentonii.arboreus, Symbol(citellus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 664, 203)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 665, 95)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : daubentonii.arboreus +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 665, 181)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 665, 95)) tanezumi(): imperfecta.lasiurus { var x: imperfecta.lasiurus; () => { var y = this; }; return x; } ->tanezumi : () => imperfecta.lasiurus ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : imperfecta.lasiurus ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->caurinus : unknown ->psilurus : caurinus.psilurus +>tanezumi : () => imperfecta.lasiurus, Symbol(tanezumi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 665, 206)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : imperfecta.lasiurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 666, 87)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : imperfecta.lasiurus +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 666, 165)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : imperfecta.lasiurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 666, 87)) albiventer(): rendalli.crenulata { var x: rendalli.crenulata; () => { var y = this; }; return x; } ->albiventer : () => rendalli.crenulata ->rendalli : unknown ->crenulata : rendalli.crenulata ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : rendalli.crenulata ->rendalli : unknown ->crenulata : rendalli.crenulata ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>albiventer : () => rendalli.crenulata, Symbol(albiventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 666, 190)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : rendalli.crenulata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 667, 89)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : uralensis ->this : uralensis ->x : rendalli.crenulata +>y : uralensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 667, 167)) +>this : uralensis, Symbol(uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : rendalli.crenulata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 667, 89)) } } module provocax { ->provocax : typeof provocax +>provocax : typeof provocax, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) export class melanoleuca extends lavali.wilsoni { ->melanoleuca : melanoleuca ->lavali : typeof lavali ->wilsoni : lavali.wilsoni +>melanoleuca : melanoleuca, Symbol(melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>lavali.wilsoni : any, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lavali : typeof lavali, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) Neodymium(): macrorhinos.marmosurus, lutreolus.foina> { var x: macrorhinos.marmosurus, lutreolus.foina>; () => { var y = this; }; return x; } ->Neodymium : () => macrorhinos.marmosurus, lutreolus.foina> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->lutreolus : unknown ->foina : lutreolus.foina ->x : macrorhinos.marmosurus, lutreolus.foina> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->lutreolus : unknown ->foina : lutreolus.foina +>Neodymium : () => macrorhinos.marmosurus, lutreolus.foina>, Symbol(Neodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 671, 53)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : macrorhinos.marmosurus, lutreolus.foina>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 672, 130)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : melanoleuca ->this : melanoleuca ->x : macrorhinos.marmosurus, lutreolus.foina> +>y : melanoleuca, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 672, 250)) +>this : melanoleuca, Symbol(melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : macrorhinos.marmosurus, lutreolus.foina>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 672, 130)) baeri(): imperfecta.lasiurus { var x: imperfecta.lasiurus; () => { var y = this; }; return x; } ->baeri : () => imperfecta.lasiurus ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->lavali : unknown ->lepturus : lavali.lepturus ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : imperfecta.lasiurus ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->lavali : unknown ->lepturus : lavali.lepturus ->ruatanica : unknown ->americanus : ruatanica.americanus +>baeri : () => imperfecta.lasiurus, Symbol(baeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 672, 275)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : imperfecta.lasiurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 673, 81)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : melanoleuca ->this : melanoleuca ->x : imperfecta.lasiurus +>y : melanoleuca, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 673, 156)) +>this : melanoleuca, Symbol(melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : imperfecta.lasiurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 673, 81)) } } module sagitta { ->sagitta : typeof sagitta +>sagitta : typeof sagitta, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) export class sicarius { ->sicarius : sicarius ->T0 : T0 ->T1 : T1 +>sicarius : sicarius, Symbol(sicarius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 676, 16)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 677, 26)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 677, 29)) Chlorine(): samarensis.cahirinus, dogramacii.robustulus> { var x: samarensis.cahirinus, dogramacii.robustulus>; () => { var y = this; }; return x; } ->Chlorine : () => samarensis.cahirinus, dogramacii.robustulus> ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->nigra : unknown ->gracilis : nigra.gracilis ->argurus : unknown ->luctuosa : argurus.luctuosa ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : samarensis.cahirinus, dogramacii.robustulus> ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->nigra : unknown ->gracilis : nigra.gracilis ->argurus : unknown ->luctuosa : argurus.luctuosa ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>Chlorine : () => samarensis.cahirinus, dogramacii.robustulus>, Symbol(Chlorine, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 677, 35)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : samarensis.cahirinus, dogramacii.robustulus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 678, 127)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : sicarius ->this : sicarius ->x : samarensis.cahirinus, dogramacii.robustulus> +>y : sicarius, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 678, 245)) +>this : sicarius, Symbol(sicarius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 676, 16)) +>x : samarensis.cahirinus, dogramacii.robustulus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 678, 127)) simulator(): macrorhinos.marmosurus, macrorhinos.marmosurus, gabriellae.echinatus>, sagitta.stolzmanni>> { var x: macrorhinos.marmosurus, macrorhinos.marmosurus, gabriellae.echinatus>, sagitta.stolzmanni>>; () => { var y = this; }; return x; } ->simulator : () => macrorhinos.marmosurus, macrorhinos.marmosurus, gabriellae.echinatus>, stolzmanni>> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->dammermani : unknown ->melanops : dammermani.melanops ->lavali : unknown ->lepturus : lavali.lepturus ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->sagitta : unknown ->stolzmanni : stolzmanni ->x : macrorhinos.marmosurus, macrorhinos.marmosurus, gabriellae.echinatus>, stolzmanni>> ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->dammermani : unknown ->melanops : dammermani.melanops ->lavali : unknown ->lepturus : lavali.lepturus ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->sagitta : unknown ->stolzmanni : stolzmanni +>simulator : () => macrorhinos.marmosurus, macrorhinos.marmosurus, gabriellae.echinatus>, stolzmanni>>, Symbol(simulator, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 678, 270)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : macrorhinos.marmosurus, macrorhinos.marmosurus, gabriellae.echinatus>, stolzmanni>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 679, 252)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : sicarius ->this : sicarius ->x : macrorhinos.marmosurus, macrorhinos.marmosurus, gabriellae.echinatus>, stolzmanni>> +>y : sicarius, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 679, 494)) +>this : sicarius, Symbol(sicarius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 676, 16)) +>x : macrorhinos.marmosurus, macrorhinos.marmosurus, gabriellae.echinatus>, stolzmanni>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 679, 252)) } } module howi { ->howi : typeof howi +>howi : typeof howi, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) export class marcanoi extends Lanthanum.megalonyx { ->marcanoi : marcanoi ->Lanthanum : typeof Lanthanum ->megalonyx : Lanthanum.megalonyx +>marcanoi : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>Lanthanum.megalonyx : any, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>Lanthanum : typeof Lanthanum, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) formosae(): Lanthanum.megalonyx { var x: Lanthanum.megalonyx; () => { var y = this; }; return x; } ->formosae : () => Lanthanum.megalonyx ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->x : Lanthanum.megalonyx ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx +>formosae : () => Lanthanum.megalonyx, Symbol(formosae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 683, 55)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>x : Lanthanum.megalonyx, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 684, 45)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : Lanthanum.megalonyx +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 684, 81)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : Lanthanum.megalonyx, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 684, 45)) dudui(): lutreolus.punicus { var x: lutreolus.punicus; () => { var y = this; }; return x; } ->dudui : () => lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus +>dudui : () => lutreolus.punicus, Symbol(dudui, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 684, 106)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 685, 40)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : lutreolus.punicus +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 685, 74)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 685, 40)) leander(): daubentonii.nesiotes { var x: daubentonii.nesiotes; () => { var y = this; }; return x; } ->leander : () => daubentonii.nesiotes ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->minutus : unknown ->portoricensis : minutus.portoricensis ->x : daubentonii.nesiotes ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->minutus : unknown ->portoricensis : minutus.portoricensis +>leander : () => daubentonii.nesiotes, Symbol(leander, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 685, 99)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>x : daubentonii.nesiotes, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 686, 89)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : daubentonii.nesiotes +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 686, 170)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : daubentonii.nesiotes, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 686, 89)) martinsi(): dogramacii.aurata { var x: dogramacii.aurata; () => { var y = this; }; return x; } ->martinsi : () => dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata ->x : dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata +>martinsi : () => dogramacii.aurata, Symbol(martinsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 686, 195)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : dogramacii.aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 687, 43)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : dogramacii.aurata +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 687, 77)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : dogramacii.aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 687, 43)) beatrix(): imperfecta.ciliolabrum, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum>> { var x: imperfecta.ciliolabrum, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum>>; () => { var y = this; }; return x; } ->beatrix : () => imperfecta.ciliolabrum, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum>> ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->panglima : unknown ->amphibius : panglima.amphibius ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->dogramacii : unknown ->aurata : dogramacii.aurata ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->beisa : lavali.beisa ->x : imperfecta.ciliolabrum, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum>> ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->panglima : unknown ->amphibius : panglima.amphibius ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->dogramacii : unknown ->aurata : dogramacii.aurata ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->beisa : lavali.beisa +>beatrix : () => imperfecta.ciliolabrum, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum>>, Symbol(beatrix, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 687, 102)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : imperfecta.ciliolabrum, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 688, 286)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : imperfecta.ciliolabrum, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum>> +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 688, 564)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : imperfecta.ciliolabrum, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 688, 286)) griseoventer(): argurus.oreas { var x: argurus.oreas; () => { var y = this; }; return x; } ->griseoventer : () => argurus.oreas ->argurus : unknown ->oreas : argurus.oreas ->x : argurus.oreas ->argurus : unknown ->oreas : argurus.oreas +>griseoventer : () => argurus.oreas, Symbol(griseoventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 688, 589)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 689, 43)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : argurus.oreas +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 689, 73)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 689, 43)) zerda(): quasiater.wattsi, howi.coludo>> { var x: quasiater.wattsi, howi.coludo>>; () => { var y = this; }; return x; } ->zerda : () => quasiater.wattsi, coludo>> ->quasiater : unknown ->wattsi : quasiater.wattsi ->julianae : unknown ->oralis : julianae.oralis ->julianae : unknown ->steerii : julianae.steerii ->lavali : unknown ->lepturus : lavali.lepturus ->howi : unknown ->coludo : coludo ->julianae : unknown ->steerii : julianae.steerii ->julianae : unknown ->gerbillus : julianae.gerbillus ->lavali : unknown ->thaeleri : lavali.thaeleri ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.wattsi, coludo>> ->quasiater : unknown ->wattsi : quasiater.wattsi ->julianae : unknown ->oralis : julianae.oralis ->julianae : unknown ->steerii : julianae.steerii ->lavali : unknown ->lepturus : lavali.lepturus ->howi : unknown ->coludo : coludo ->julianae : unknown ->steerii : julianae.steerii ->julianae : unknown ->gerbillus : julianae.gerbillus ->lavali : unknown ->thaeleri : lavali.thaeleri ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>zerda : () => quasiater.wattsi, coludo>>, Symbol(zerda, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 689, 98)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : coludo, Symbol(coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.wattsi, coludo>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 690, 183)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : coludo, Symbol(coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : quasiater.wattsi, coludo>> +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 690, 360)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : quasiater.wattsi, coludo>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 690, 183)) yucatanicus(): julianae.nudicaudus { var x: julianae.nudicaudus; () => { var y = this; }; return x; } ->yucatanicus : () => julianae.nudicaudus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->x : julianae.nudicaudus ->julianae : unknown ->nudicaudus : julianae.nudicaudus +>yucatanicus : () => julianae.nudicaudus, Symbol(yucatanicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 690, 385)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : julianae.nudicaudus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 691, 48)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : julianae.nudicaudus +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 691, 84)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : julianae.nudicaudus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 691, 48)) nigrita(): argurus.peninsulae { var x: argurus.peninsulae; () => { var y = this; }; return x; } ->nigrita : () => argurus.peninsulae ->argurus : unknown ->peninsulae : argurus.peninsulae ->x : argurus.peninsulae ->argurus : unknown ->peninsulae : argurus.peninsulae +>nigrita : () => argurus.peninsulae, Symbol(nigrita, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 691, 109)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : argurus.peninsulae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 692, 43)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : argurus.peninsulae +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 692, 78)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : argurus.peninsulae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 692, 43)) jouvenetae(): argurus.dauricus { var x: argurus.dauricus; () => { var y = this; }; return x; } ->jouvenetae : () => argurus.dauricus ->argurus : unknown ->dauricus : argurus.dauricus ->argurus : unknown ->germaini : argurus.germaini ->julianae : unknown ->durangae : julianae.durangae ->x : argurus.dauricus ->argurus : unknown ->dauricus : argurus.dauricus ->argurus : unknown ->germaini : argurus.germaini ->julianae : unknown ->durangae : julianae.durangae +>jouvenetae : () => argurus.dauricus, Symbol(jouvenetae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 692, 103)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : argurus.dauricus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 693, 81)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : argurus.dauricus +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 693, 151)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : argurus.dauricus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 693, 81)) indefessus(): sagitta.walkeri { var x: sagitta.walkeri; () => { var y = this; }; return x; } ->indefessus : () => sagitta.walkeri ->sagitta : unknown ->walkeri : sagitta.walkeri ->x : sagitta.walkeri ->sagitta : unknown ->walkeri : sagitta.walkeri +>indefessus : () => sagitta.walkeri, Symbol(indefessus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 693, 176)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>x : sagitta.walkeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 694, 43)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : sagitta.walkeri +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 694, 75)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : sagitta.walkeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 694, 43)) vuquangensis(): macrorhinos.daphaenodon { var x: macrorhinos.daphaenodon; () => { var y = this; }; return x; } ->vuquangensis : () => macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>vuquangensis : () => macrorhinos.daphaenodon, Symbol(vuquangensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 694, 100)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 695, 53)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : macrorhinos.daphaenodon +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 695, 93)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 695, 53)) Zirconium(): lavali.thaeleri { var x: lavali.thaeleri; () => { var y = this; }; return x; } ->Zirconium : () => lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri ->x : lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri +>Zirconium : () => lavali.thaeleri, Symbol(Zirconium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 695, 118)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 696, 42)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : lavali.thaeleri +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 696, 74)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 696, 42)) hyaena(): julianae.oralis { var x: julianae.oralis; () => { var y = this; }; return x; } ->hyaena : () => julianae.oralis ->julianae : unknown ->oralis : julianae.oralis ->lavali : unknown ->beisa : lavali.beisa ->argurus : unknown ->oreas : argurus.oreas ->x : julianae.oralis ->julianae : unknown ->oralis : julianae.oralis ->lavali : unknown ->beisa : lavali.beisa ->argurus : unknown ->oreas : argurus.oreas +>hyaena : () => julianae.oralis, Symbol(hyaena, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 696, 99)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : julianae.oralis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 697, 68)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : marcanoi ->this : marcanoi ->x : julianae.oralis +>y : marcanoi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 697, 129)) +>this : marcanoi, Symbol(marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : julianae.oralis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 697, 68)) } } module argurus { ->argurus : typeof argurus +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) export class gilbertii { ->gilbertii : gilbertii ->T0 : T0 ->T1 : T1 +>gilbertii : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 701, 27)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 701, 30)) nasutus(): lavali.lepturus { var x: lavali.lepturus; () => { var y = this; }; return x; } ->nasutus : () => lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus ->x : lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus +>nasutus : () => lavali.lepturus, Symbol(nasutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 701, 36)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 702, 40)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : gilbertii ->this : gilbertii ->x : lavali.lepturus +>y : gilbertii, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 702, 72)) +>this : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 702, 40)) poecilops(): julianae.steerii { var x: julianae.steerii; () => { var y = this; }; return x; } ->poecilops : () => julianae.steerii ->julianae : unknown ->steerii : julianae.steerii ->x : julianae.steerii ->julianae : unknown ->steerii : julianae.steerii +>poecilops : () => julianae.steerii, Symbol(poecilops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 702, 97)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : julianae.steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 703, 43)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : gilbertii ->this : gilbertii ->x : julianae.steerii +>y : gilbertii, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 703, 76)) +>this : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>x : julianae.steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 703, 43)) sondaicus(): samarensis.fuscus { var x: samarensis.fuscus; () => { var y = this; }; return x; } ->sondaicus : () => samarensis.fuscus ->samarensis : unknown ->fuscus : samarensis.fuscus ->argurus : unknown ->peninsulae : peninsulae ->lavali : unknown ->lepturus : lavali.lepturus ->x : samarensis.fuscus ->samarensis : unknown ->fuscus : samarensis.fuscus ->argurus : unknown ->peninsulae : peninsulae ->lavali : unknown ->lepturus : lavali.lepturus +>sondaicus : () => samarensis.fuscus, Symbol(sondaicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 703, 101)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : samarensis.fuscus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 704, 81)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : gilbertii ->this : gilbertii ->x : samarensis.fuscus +>y : gilbertii, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 704, 152)) +>this : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>x : samarensis.fuscus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 704, 81)) auriventer(): petrophilus.rosalia { var x: petrophilus.rosalia; () => { var y = this; }; return x; } ->auriventer : () => petrophilus.rosalia ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : petrophilus.rosalia ->petrophilus : unknown ->rosalia : petrophilus.rosalia ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>auriventer : () => petrophilus.rosalia, Symbol(auriventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 704, 177)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : petrophilus.rosalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 705, 92)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>rosalia : petrophilus.rosalia, Symbol(petrophilus.rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : gilbertii ->this : gilbertii ->x : petrophilus.rosalia +>y : gilbertii, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 705, 173)) +>this : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>x : petrophilus.rosalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 705, 92)) cherriei(): ruatanica.Praseodymium { var x: ruatanica.Praseodymium; () => { var y = this; }; return x; } ->cherriei : () => ruatanica.Praseodymium ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->argurus : unknown ->oreas : oreas ->x : ruatanica.Praseodymium ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->argurus : unknown ->oreas : oreas +>cherriei : () => ruatanica.Praseodymium, Symbol(cherriei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 705, 198)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : ruatanica.Praseodymium, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 706, 84)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : gilbertii ->this : gilbertii ->x : ruatanica.Praseodymium +>y : gilbertii, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 706, 159)) +>this : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>x : ruatanica.Praseodymium, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 706, 84)) lindberghi(): minutus.inez { var x: minutus.inez; () => { var y = this; }; return x; } ->lindberghi : () => minutus.inez ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : minutus.inez ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>lindberghi : () => minutus.inez, Symbol(lindberghi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 706, 184)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 707, 85)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : gilbertii ->this : gilbertii ->x : minutus.inez +>y : gilbertii, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 707, 159)) +>this : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 707, 85)) pipistrellus(): quasiater.carolinensis { var x: quasiater.carolinensis; () => { var y = this; }; return x; } ->pipistrellus : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>pipistrellus : () => quasiater.carolinensis, Symbol(pipistrellus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 707, 184)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 708, 52)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : gilbertii ->this : gilbertii ->x : quasiater.carolinensis +>y : gilbertii, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 708, 91)) +>this : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 708, 52)) paranus(): lutreolus.punicus { var x: lutreolus.punicus; () => { var y = this; }; return x; } ->paranus : () => lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus +>paranus : () => lutreolus.punicus, Symbol(paranus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 708, 116)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 709, 42)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : gilbertii ->this : gilbertii ->x : lutreolus.punicus +>y : gilbertii, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 709, 76)) +>this : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 709, 42)) dubosti(): nigra.thalia { var x: nigra.thalia; () => { var y = this; }; return x; } ->dubosti : () => nigra.thalia ->nigra : unknown ->thalia : nigra.thalia ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : nigra.thalia ->nigra : unknown ->thalia : nigra.thalia ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->julianae : unknown ->sumatrana : julianae.sumatrana +>dubosti : () => nigra.thalia, Symbol(dubosti, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 709, 101)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : nigra.thalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 710, 78)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : gilbertii ->this : gilbertii ->x : nigra.thalia +>y : gilbertii, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 710, 148)) +>this : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>x : nigra.thalia, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 710, 78)) opossum(): nigra.dolichurus { var x: nigra.dolichurus; () => { var y = this; }; return x; } ->opossum : () => nigra.dolichurus ->nigra : unknown ->dolichurus : nigra.dolichurus ->lavali : unknown ->lepturus : lavali.lepturus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : nigra.dolichurus ->nigra : unknown ->dolichurus : nigra.dolichurus ->lavali : unknown ->lepturus : lavali.lepturus ->samarensis : unknown ->pallidus : samarensis.pallidus +>opossum : () => nigra.dolichurus, Symbol(opossum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 710, 173)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : nigra.dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 711, 79)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : gilbertii ->this : gilbertii ->x : nigra.dolichurus +>y : gilbertii, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 711, 150)) +>this : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>x : nigra.dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 711, 79)) oreopolus(): minutus.portoricensis { var x: minutus.portoricensis; () => { var y = this; }; return x; } ->oreopolus : () => minutus.portoricensis ->minutus : unknown ->portoricensis : minutus.portoricensis ->x : minutus.portoricensis ->minutus : unknown ->portoricensis : minutus.portoricensis +>oreopolus : () => minutus.portoricensis, Symbol(oreopolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 711, 175)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>x : minutus.portoricensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 712, 48)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) >() => { var y = this; } : () => void ->y : gilbertii ->this : gilbertii ->x : minutus.portoricensis +>y : gilbertii, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 712, 86)) +>this : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>x : minutus.portoricensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 712, 48)) amurensis(): daubentonii.arboreus { var x: daubentonii.arboreus; () => { var y = this; }; return x; } ->amurensis : () => daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->lavali : unknown ->otion : lavali.otion ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->lavali : unknown ->otion : lavali.otion ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>amurensis : () => daubentonii.arboreus, Symbol(amurensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 712, 111)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 713, 86)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : gilbertii ->this : gilbertii ->x : daubentonii.arboreus +>y : gilbertii, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 713, 162)) +>this : gilbertii, Symbol(gilbertii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 700, 16)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 713, 86)) } } module petrophilus { ->petrophilus : typeof petrophilus +>petrophilus : typeof petrophilus, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) export class minutilla { ->minutilla : minutilla +>minutilla : minutilla, Symbol(minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) } } module lutreolus { ->lutreolus : typeof lutreolus +>lutreolus : typeof lutreolus, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) export class punicus { ->punicus : punicus +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) strandi(): gabriellae.klossii { var x: gabriellae.klossii; () => { var y = this; }; return x; } ->strandi : () => gabriellae.klossii ->gabriellae : unknown ->klossii : gabriellae.klossii ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : gabriellae.klossii ->gabriellae : unknown ->klossii : gabriellae.klossii ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>strandi : () => gabriellae.klossii, Symbol(strandi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 721, 26)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : gabriellae.klossii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 722, 85)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : gabriellae.klossii +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 722, 162)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : gabriellae.klossii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 722, 85)) lar(): caurinus.mahaganus { var x: caurinus.mahaganus; () => { var y = this; }; return x; } ->lar : () => caurinus.mahaganus ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->lavali : unknown ->otion : lavali.otion ->x : caurinus.mahaganus ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->lavali : unknown ->otion : lavali.otion +>lar : () => caurinus.mahaganus, Symbol(lar, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 722, 187)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : caurinus.mahaganus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 723, 74)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : caurinus.mahaganus +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 723, 144)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : caurinus.mahaganus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 723, 74)) erica(): dogramacii.koepckeae { var x: dogramacii.koepckeae; () => { var y = this; }; return x; } ->erica : () => dogramacii.koepckeae ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->x : dogramacii.koepckeae ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae +>erica : () => dogramacii.koepckeae, Symbol(erica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 723, 169)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : dogramacii.koepckeae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 724, 43)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : dogramacii.koepckeae +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 724, 80)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : dogramacii.koepckeae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 724, 43)) trichura(): macrorhinos.konganensis { var x: macrorhinos.konganensis; () => { var y = this; }; return x; } ->trichura : () => macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>trichura : () => macrorhinos.konganensis, Symbol(trichura, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 724, 105)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 725, 49)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : macrorhinos.konganensis +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 725, 89)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 725, 49)) lemniscatus(): panglima.fundatus { var x: panglima.fundatus; () => { var y = this; }; return x; } ->lemniscatus : () => panglima.fundatus ->panglima : unknown ->fundatus : panglima.fundatus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->foina : foina ->x : panglima.fundatus ->panglima : unknown ->fundatus : panglima.fundatus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->foina : foina +>lemniscatus : () => panglima.fundatus, Symbol(lemniscatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 725, 114)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : panglima.fundatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 726, 82)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : panglima.fundatus +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 726, 152)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : panglima.fundatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 726, 82)) aspalax(): panamensis.linulus { var x: panamensis.linulus; () => { var y = this; }; return x; } ->aspalax : () => panamensis.linulus ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : panamensis.linulus ->panamensis : unknown ->linulus : panamensis.linulus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>aspalax : () => panamensis.linulus, Symbol(aspalax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 726, 177)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : panamensis.linulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 727, 90)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : panamensis.linulus +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 727, 172)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : panamensis.linulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 727, 90)) marshalli(): julianae.nudicaudus { var x: julianae.nudicaudus; () => { var y = this; }; return x; } ->marshalli : () => julianae.nudicaudus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->x : julianae.nudicaudus ->julianae : unknown ->nudicaudus : julianae.nudicaudus +>marshalli : () => julianae.nudicaudus, Symbol(marshalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 727, 197)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : julianae.nudicaudus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 728, 46)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : julianae.nudicaudus +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 728, 82)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : julianae.nudicaudus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 728, 46)) Zinc(): julianae.galapagoensis { var x: julianae.galapagoensis; () => { var y = this; }; return x; } ->Zinc : () => julianae.galapagoensis ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->x : julianae.galapagoensis ->julianae : unknown ->galapagoensis : julianae.galapagoensis +>Zinc : () => julianae.galapagoensis, Symbol(Zinc, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 728, 107)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>x : julianae.galapagoensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 729, 44)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : julianae.galapagoensis +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 729, 83)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : julianae.galapagoensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 729, 44)) monochromos(): howi.coludo { var x: howi.coludo; () => { var y = this; }; return x; } ->monochromos : () => howi.coludo ->howi : unknown ->coludo : howi.coludo ->lavali : unknown ->lepturus : lavali.lepturus ->lutreolus : unknown ->punicus : punicus ->x : howi.coludo ->howi : unknown ->coludo : howi.coludo ->lavali : unknown ->lepturus : lavali.lepturus ->lutreolus : unknown ->punicus : punicus +>monochromos : () => howi.coludo, Symbol(monochromos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 729, 108)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 730, 76)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : howi.coludo +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 730, 140)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 730, 76)) purinus(): ruatanica.hector { var x: ruatanica.hector; () => { var y = this; }; return x; } ->purinus : () => ruatanica.hector ->ruatanica : unknown ->hector : ruatanica.hector ->lutreolus : unknown ->schlegeli : schlegeli ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : ruatanica.hector ->ruatanica : unknown ->hector : ruatanica.hector ->lutreolus : unknown ->schlegeli : schlegeli ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>purinus : () => ruatanica.hector, Symbol(purinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 730, 165)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : ruatanica.hector, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 731, 84)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : schlegeli, Symbol(schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : ruatanica.hector +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 731, 160)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : ruatanica.hector, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 731, 84)) ischyrus(): lavali.lepturus { var x: lavali.lepturus; () => { var y = this; }; return x; } ->ischyrus : () => lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus ->x : lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus +>ischyrus : () => lavali.lepturus, Symbol(ischyrus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 731, 185)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 732, 41)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : lavali.lepturus +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 732, 73)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 732, 41)) tenuis(): macrorhinos.daphaenodon { var x: macrorhinos.daphaenodon; () => { var y = this; }; return x; } ->tenuis : () => macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : macrorhinos.daphaenodon ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>tenuis : () => macrorhinos.daphaenodon, Symbol(tenuis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 732, 98)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 733, 47)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : macrorhinos.daphaenodon +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 733, 87)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : macrorhinos.daphaenodon, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 733, 47)) Helium(): julianae.acariensis { var x: julianae.acariensis; () => { var y = this; }; return x; } ->Helium : () => julianae.acariensis ->julianae : unknown ->acariensis : julianae.acariensis ->x : julianae.acariensis ->julianae : unknown ->acariensis : julianae.acariensis +>Helium : () => julianae.acariensis, Symbol(Helium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 733, 112)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : julianae.acariensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 734, 43)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) >() => { var y = this; } : () => void ->y : punicus ->this : punicus ->x : julianae.acariensis +>y : punicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 734, 79)) +>this : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : julianae.acariensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 734, 43)) } } module macrorhinos { ->macrorhinos : typeof macrorhinos +>macrorhinos : typeof macrorhinos, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) export class daphaenodon { ->daphaenodon : daphaenodon +>daphaenodon : daphaenodon, Symbol(daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) bredanensis(): julianae.sumatrana { var x: julianae.sumatrana; () => { var y = this; }; return x; } ->bredanensis : () => julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana +>bredanensis : () => julianae.sumatrana, Symbol(bredanensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 738, 30)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 739, 47)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : daphaenodon ->this : daphaenodon ->x : julianae.sumatrana +>y : daphaenodon, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 739, 82)) +>this : daphaenodon, Symbol(daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 739, 47)) othus(): howi.coludo { var x: howi.coludo; () => { var y = this; }; return x; } ->othus : () => howi.coludo ->howi : unknown ->coludo : howi.coludo ->argurus : unknown ->oreas : argurus.oreas ->howi : unknown ->marcanoi : howi.marcanoi ->x : howi.coludo ->howi : unknown ->coludo : howi.coludo ->argurus : unknown ->oreas : argurus.oreas ->howi : unknown ->marcanoi : howi.marcanoi +>othus : () => howi.coludo, Symbol(othus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 739, 107)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 740, 64)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : daphaenodon ->this : daphaenodon ->x : howi.coludo +>y : daphaenodon, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 740, 122)) +>this : daphaenodon, Symbol(daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 740, 64)) hammondi(): julianae.gerbillus, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion> { var x: julianae.gerbillus, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion>; () => { var y = this; }; return x; } ->hammondi : () => julianae.gerbillus, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion> ->julianae : unknown ->gerbillus : julianae.gerbillus ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->dogramacii : unknown ->aurata : dogramacii.aurata ->lavali : unknown ->otion : lavali.otion ->x : julianae.gerbillus, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion> ->julianae : unknown ->gerbillus : julianae.gerbillus ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->dogramacii : unknown ->aurata : dogramacii.aurata ->lavali : unknown ->otion : lavali.otion +>hammondi : () => julianae.gerbillus, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion>, Symbol(hammondi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 740, 147)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) +>x : julianae.gerbillus, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 741, 193)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>otion : lavali.otion, Symbol(lavali.otion, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 270, 3)) >() => { var y = this; } : () => void ->y : daphaenodon ->this : daphaenodon ->x : julianae.gerbillus, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion> +>y : daphaenodon, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 741, 377)) +>this : daphaenodon, Symbol(daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : julianae.gerbillus, gabriellae.echinatus>, dogramacii.aurata>, lavali.otion>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 741, 193)) aureocollaris(): quasiater.carolinensis { var x: quasiater.carolinensis; () => { var y = this; }; return x; } ->aureocollaris : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>aureocollaris : () => quasiater.carolinensis, Symbol(aureocollaris, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 741, 402)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 742, 53)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : daphaenodon ->this : daphaenodon ->x : quasiater.carolinensis +>y : daphaenodon, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 742, 92)) +>this : daphaenodon, Symbol(daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 742, 53)) flavipes(): petrophilus.minutilla { var x: petrophilus.minutilla; () => { var y = this; }; return x; } ->flavipes : () => petrophilus.minutilla ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->x : petrophilus.minutilla ->petrophilus : unknown ->minutilla : petrophilus.minutilla +>flavipes : () => petrophilus.minutilla, Symbol(flavipes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 742, 117)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>x : petrophilus.minutilla, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 743, 47)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) >() => { var y = this; } : () => void ->y : daphaenodon ->this : daphaenodon ->x : petrophilus.minutilla +>y : daphaenodon, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 743, 85)) +>this : daphaenodon, Symbol(daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : petrophilus.minutilla, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 743, 47)) callosus(): trivirgatus.lotor { var x: trivirgatus.lotor; () => { var y = this; }; return x; } ->callosus : () => trivirgatus.lotor ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->lutreolus : unknown ->foina : lutreolus.foina ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : trivirgatus.lotor ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->lutreolus : unknown ->foina : lutreolus.foina ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>callosus : () => trivirgatus.lotor, Symbol(callosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 743, 110)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : trivirgatus.lotor, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 744, 83)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : daphaenodon ->this : daphaenodon ->x : trivirgatus.lotor +>y : daphaenodon, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 744, 157)) +>this : daphaenodon, Symbol(daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : trivirgatus.lotor, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 744, 83)) } } module sagitta { ->sagitta : typeof sagitta +>sagitta : typeof sagitta, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) export class cinereus { ->cinereus : cinereus ->T0 : T0 ->T1 : T1 +>cinereus : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 748, 26)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 748, 29)) zunigae(): rendalli.crenulata> { var x: rendalli.crenulata>; () => { var y = this; }; return x; } ->zunigae : () => rendalli.crenulata> ->rendalli : unknown ->crenulata : rendalli.crenulata ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->nigra : unknown ->dolichurus : nigra.dolichurus ->lavali : unknown ->lepturus : lavali.lepturus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : rendalli.crenulata> ->rendalli : unknown ->crenulata : rendalli.crenulata ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->nigra : unknown ->dolichurus : nigra.dolichurus ->lavali : unknown ->lepturus : lavali.lepturus ->samarensis : unknown ->pallidus : samarensis.pallidus +>zunigae : () => rendalli.crenulata>, Symbol(zunigae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 748, 35)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : rendalli.crenulata>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 749, 124)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : cinereus ->this : cinereus ->x : rendalli.crenulata> +>y : cinereus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 749, 240)) +>this : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>x : rendalli.crenulata>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 749, 124)) microps(): daubentonii.nigricans> { var x: daubentonii.nigricans>; () => { var y = this; }; return x; } ->microps : () => daubentonii.nigricans> ->daubentonii : unknown ->nigricans : daubentonii.nigricans ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->quasiater : unknown ->wattsi : quasiater.wattsi ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : daubentonii.nigricans> ->daubentonii : unknown ->nigricans : daubentonii.nigricans ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->quasiater : unknown ->wattsi : quasiater.wattsi ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->julianae : unknown ->sumatrana : julianae.sumatrana +>microps : () => daubentonii.nigricans>, Symbol(microps, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 749, 265)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nigricans : daubentonii.nigricans, Symbol(daubentonii.nigricans, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 587, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : daubentonii.nigricans>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 750, 127)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nigricans : daubentonii.nigricans, Symbol(daubentonii.nigricans, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 587, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : cinereus ->this : cinereus ->x : daubentonii.nigricans> +>y : cinereus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 750, 246)) +>this : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>x : daubentonii.nigricans>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 750, 127)) guaporensis(): daubentonii.arboreus { var x: daubentonii.arboreus; () => { var y = this; }; return x; } ->guaporensis : () => daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->gabriellae : unknown ->amicus : gabriellae.amicus ->argurus : unknown ->germaini : argurus.germaini ->x : daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->gabriellae : unknown ->amicus : gabriellae.amicus ->argurus : unknown ->germaini : argurus.germaini +>guaporensis : () => daubentonii.arboreus, Symbol(guaporensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 750, 271)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 751, 86)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) >() => { var y = this; } : () => void ->y : cinereus ->this : cinereus ->x : daubentonii.arboreus +>y : cinereus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 751, 160)) +>this : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 751, 86)) tonkeana(): panglima.fundatus { var x: panglima.fundatus; () => { var y = this; }; return x; } ->tonkeana : () => panglima.fundatus ->panglima : unknown ->fundatus : panglima.fundatus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->dammermani : unknown ->melanops : dammermani.melanops ->x : panglima.fundatus ->panglima : unknown ->fundatus : panglima.fundatus ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->dammermani : unknown ->melanops : dammermani.melanops +>tonkeana : () => panglima.fundatus, Symbol(tonkeana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 751, 185)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : panglima.fundatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 752, 87)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : cinereus ->this : cinereus ->x : panglima.fundatus +>y : cinereus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 752, 165)) +>this : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>x : panglima.fundatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 752, 87)) montensis(): dammermani.siberu { var x: dammermani.siberu; () => { var y = this; }; return x; } ->montensis : () => dammermani.siberu ->dammermani : unknown ->siberu : dammermani.siberu ->dogramacii : unknown ->aurata : dogramacii.aurata ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : dammermani.siberu ->dammermani : unknown ->siberu : dammermani.siberu ->dogramacii : unknown ->aurata : dogramacii.aurata ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>montensis : () => dammermani.siberu, Symbol(montensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 752, 190)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : dammermani.siberu, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 753, 86)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : cinereus ->this : cinereus ->x : dammermani.siberu +>y : cinereus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 753, 162)) +>this : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>x : dammermani.siberu, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 753, 86)) sphinx(): minutus.portoricensis { var x: minutus.portoricensis; () => { var y = this; }; return x; } ->sphinx : () => minutus.portoricensis ->minutus : unknown ->portoricensis : minutus.portoricensis ->x : minutus.portoricensis ->minutus : unknown ->portoricensis : minutus.portoricensis +>sphinx : () => minutus.portoricensis, Symbol(sphinx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 753, 187)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>x : minutus.portoricensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 754, 45)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) >() => { var y = this; } : () => void ->y : cinereus ->this : cinereus ->x : minutus.portoricensis +>y : cinereus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 754, 83)) +>this : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>x : minutus.portoricensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 754, 45)) glis(): argurus.wetmorei { var x: argurus.wetmorei; () => { var y = this; }; return x; } ->glis : () => argurus.wetmorei ->argurus : unknown ->wetmorei : argurus.wetmorei ->argurus : unknown ->oreas : argurus.oreas ->howi : unknown ->marcanoi : howi.marcanoi ->x : argurus.wetmorei ->argurus : unknown ->wetmorei : argurus.wetmorei ->argurus : unknown ->oreas : argurus.oreas ->howi : unknown ->marcanoi : howi.marcanoi +>glis : () => argurus.wetmorei, Symbol(glis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 754, 108)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>wetmorei : argurus.wetmorei, Symbol(argurus.wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : argurus.wetmorei, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 755, 68)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>wetmorei : argurus.wetmorei, Symbol(argurus.wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : cinereus ->this : cinereus ->x : argurus.wetmorei +>y : cinereus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 755, 131)) +>this : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>x : argurus.wetmorei, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 755, 68)) dorsalis(): petrophilus.sodyi { var x: petrophilus.sodyi; () => { var y = this; }; return x; } ->dorsalis : () => petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->argurus : unknown ->luctuosa : argurus.luctuosa ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->argurus : unknown ->luctuosa : argurus.luctuosa ->julianae : unknown ->sumatrana : julianae.sumatrana +>dorsalis : () => petrophilus.sodyi, Symbol(dorsalis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 755, 156)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 756, 81)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : cinereus ->this : cinereus ->x : petrophilus.sodyi +>y : cinereus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 756, 153)) +>this : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 756, 81)) fimbriatus(): provocax.melanoleuca { var x: provocax.melanoleuca; () => { var y = this; }; return x; } ->fimbriatus : () => provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>fimbriatus : () => provocax.melanoleuca, Symbol(fimbriatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 756, 178)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : provocax.melanoleuca, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 757, 48)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : cinereus ->this : cinereus ->x : provocax.melanoleuca +>y : cinereus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 757, 85)) +>this : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>x : provocax.melanoleuca, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 757, 48)) sara(): nigra.gracilis { var x: nigra.gracilis; () => { var y = this; }; return x; } ->sara : () => nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->argurus : unknown ->luctuosa : argurus.luctuosa ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->argurus : unknown ->luctuosa : argurus.luctuosa ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>sara : () => nigra.gracilis, Symbol(sara, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 757, 110)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 758, 78)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : cinereus ->this : cinereus ->x : nigra.gracilis +>y : cinereus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 758, 151)) +>this : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 758, 78)) epimelas(): sagitta.stolzmanni { var x: sagitta.stolzmanni; () => { var y = this; }; return x; } ->epimelas : () => stolzmanni ->sagitta : unknown ->stolzmanni : stolzmanni ->x : stolzmanni ->sagitta : unknown ->stolzmanni : stolzmanni +>epimelas : () => stolzmanni, Symbol(epimelas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 758, 176)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 759, 44)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : cinereus ->this : cinereus ->x : stolzmanni +>y : cinereus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 759, 79)) +>this : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>x : stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 759, 44)) pittieri(): samarensis.fuscus { var x: samarensis.fuscus; () => { var y = this; }; return x; } ->pittieri : () => samarensis.fuscus ->samarensis : unknown ->fuscus : samarensis.fuscus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->sagitta : unknown ->stolzmanni : stolzmanni ->x : samarensis.fuscus ->samarensis : unknown ->fuscus : samarensis.fuscus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->sagitta : unknown ->stolzmanni : stolzmanni +>pittieri : () => samarensis.fuscus, Symbol(pittieri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 759, 104)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : samarensis.fuscus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 760, 87)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : cinereus ->this : cinereus ->x : samarensis.fuscus +>y : cinereus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 760, 165)) +>this : cinereus, Symbol(cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>x : samarensis.fuscus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 760, 87)) } } module nigra { ->nigra : typeof nigra +>nigra : typeof nigra, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) export class caucasica { ->caucasica : caucasica ->T0 : T0 ->T1 : T1 +>caucasica : caucasica, Symbol(caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 764, 27)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 764, 30)) } } module gabriellae { ->gabriellae : typeof gabriellae +>gabriellae : typeof gabriellae, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) export class klossii extends imperfecta.lasiurus { ->klossii : klossii ->T0 : T0 ->T1 : T1 ->imperfecta : typeof imperfecta ->lasiurus : imperfecta.lasiurus ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->caurinus : unknown ->psilurus : caurinus.psilurus +>klossii : klossii, Symbol(klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 768, 25)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 768, 28)) +>imperfecta.lasiurus : any, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>imperfecta : typeof imperfecta, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) } export class amicus { ->amicus : amicus +>amicus : amicus, Symbol(amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) pirrensis(): argurus.luctuosa { var x: argurus.luctuosa; () => { var y = this; }; return x; } ->pirrensis : () => argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa +>pirrensis : () => argurus.luctuosa, Symbol(pirrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 770, 25)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 771, 43)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : amicus ->this : amicus ->x : argurus.luctuosa +>y : amicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 771, 76)) +>this : amicus, Symbol(amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 771, 43)) phaeura(): panglima.abidi { var x: panglima.abidi; () => { var y = this; }; return x; } ->phaeura : () => panglima.abidi ->panglima : unknown ->abidi : panglima.abidi ->lutreolus : unknown ->foina : lutreolus.foina ->argurus : unknown ->peninsulae : argurus.peninsulae ->x : panglima.abidi ->panglima : unknown ->abidi : panglima.abidi ->lutreolus : unknown ->foina : lutreolus.foina ->argurus : unknown ->peninsulae : argurus.peninsulae +>phaeura : () => panglima.abidi, Symbol(phaeura, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 771, 101)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : panglima.abidi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 772, 76)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) >() => { var y = this; } : () => void ->y : amicus ->this : amicus ->x : panglima.abidi +>y : amicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 772, 144)) +>this : amicus, Symbol(amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : panglima.abidi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 772, 76)) voratus(): lavali.thaeleri { var x: lavali.thaeleri; () => { var y = this; }; return x; } ->voratus : () => lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri ->x : lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri +>voratus : () => lavali.thaeleri, Symbol(voratus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 772, 169)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 773, 40)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) >() => { var y = this; } : () => void ->y : amicus ->this : amicus ->x : lavali.thaeleri +>y : amicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 773, 72)) +>this : amicus, Symbol(amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 773, 40)) satarae(): trivirgatus.lotor { var x: trivirgatus.lotor; () => { var y = this; }; return x; } ->satarae : () => trivirgatus.lotor ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->argurus : unknown ->luctuosa : argurus.luctuosa ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : trivirgatus.lotor ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->argurus : unknown ->luctuosa : argurus.luctuosa ->lavali : unknown ->wilsoni : lavali.wilsoni +>satarae : () => trivirgatus.lotor, Symbol(satarae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 773, 97)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : trivirgatus.lotor, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 774, 76)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : amicus ->this : amicus ->x : trivirgatus.lotor +>y : amicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 774, 144)) +>this : amicus, Symbol(amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : trivirgatus.lotor, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 774, 76)) hooperi(): caurinus.psilurus { var x: caurinus.psilurus; () => { var y = this; }; return x; } ->hooperi : () => caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus +>hooperi : () => caurinus.psilurus, Symbol(hooperi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 774, 169)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 775, 42)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : amicus ->this : amicus ->x : caurinus.psilurus +>y : amicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 775, 76)) +>this : amicus, Symbol(amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 775, 42)) perrensi(): rendalli.crenulata { var x: rendalli.crenulata; () => { var y = this; }; return x; } ->perrensi : () => rendalli.crenulata ->rendalli : unknown ->crenulata : rendalli.crenulata ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->howi : unknown ->marcanoi : howi.marcanoi ->x : rendalli.crenulata ->rendalli : unknown ->crenulata : rendalli.crenulata ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->howi : unknown ->marcanoi : howi.marcanoi +>perrensi : () => rendalli.crenulata, Symbol(perrensi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 775, 101)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : rendalli.crenulata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 776, 82)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : amicus ->this : amicus ->x : rendalli.crenulata +>y : amicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 776, 155)) +>this : amicus, Symbol(amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : rendalli.crenulata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 776, 82)) ridei(): ruatanica.hector> { var x: ruatanica.hector>; () => { var y = this; }; return x; } ->ridei : () => ruatanica.hector> ->ruatanica : unknown ->hector : ruatanica.hector ->julianae : unknown ->sumatrana : julianae.sumatrana ->samarensis : unknown ->pelurus : samarensis.pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->sagitta : unknown ->walkeri : sagitta.walkeri ->x : ruatanica.hector> ->ruatanica : unknown ->hector : ruatanica.hector ->julianae : unknown ->sumatrana : julianae.sumatrana ->samarensis : unknown ->pelurus : samarensis.pelurus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->sagitta : unknown ->walkeri : sagitta.walkeri +>ridei : () => ruatanica.hector>, Symbol(ridei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 776, 180)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>x : ruatanica.hector>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 777, 117)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : ruatanica.hector, Symbol(ruatanica.hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) >() => { var y = this; } : () => void ->y : amicus ->this : amicus ->x : ruatanica.hector> +>y : amicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 777, 228)) +>this : amicus, Symbol(amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : ruatanica.hector>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 777, 117)) audeberti(): daubentonii.arboreus { var x: daubentonii.arboreus; () => { var y = this; }; return x; } ->audeberti : () => daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : daubentonii.arboreus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->lutreolus : unknown ->punicus : lutreolus.punicus +>audeberti : () => daubentonii.arboreus, Symbol(audeberti, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 777, 253)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 778, 86)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : amicus ->this : amicus ->x : daubentonii.arboreus +>y : amicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 778, 162)) +>this : amicus, Symbol(amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : daubentonii.arboreus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 778, 86)) Lutetium(): macrorhinos.marmosurus { var x: macrorhinos.marmosurus; () => { var y = this; }; return x; } ->Lutetium : () => macrorhinos.marmosurus ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->lavali : unknown ->thaeleri : lavali.thaeleri ->x : macrorhinos.marmosurus ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->lavali : unknown ->thaeleri : lavali.thaeleri +>Lutetium : () => macrorhinos.marmosurus, Symbol(Lutetium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 778, 187)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : macrorhinos.marmosurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 779, 85)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) >() => { var y = this; } : () => void ->y : amicus ->this : amicus ->x : macrorhinos.marmosurus +>y : amicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 779, 161)) +>this : amicus, Symbol(amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : macrorhinos.marmosurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 779, 85)) atrox(): samarensis.fuscus, dogramacii.koepckeae> { var x: samarensis.fuscus, dogramacii.koepckeae>; () => { var y = this; }; return x; } ->atrox : () => samarensis.fuscus, dogramacii.koepckeae> ->samarensis : unknown ->fuscus : samarensis.fuscus ->julianae : unknown ->oralis : julianae.oralis ->julianae : unknown ->steerii : julianae.steerii ->lavali : unknown ->lepturus : lavali.lepturus ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->x : samarensis.fuscus, dogramacii.koepckeae> ->samarensis : unknown ->fuscus : samarensis.fuscus ->julianae : unknown ->oralis : julianae.oralis ->julianae : unknown ->steerii : julianae.steerii ->lavali : unknown ->lepturus : lavali.lepturus ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae +>atrox : () => samarensis.fuscus, dogramacii.koepckeae>, Symbol(atrox, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 779, 186)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : samarensis.fuscus, dogramacii.koepckeae>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 780, 114)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) >() => { var y = this; } : () => void ->y : amicus ->this : amicus ->x : samarensis.fuscus, dogramacii.koepckeae> +>y : amicus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 780, 222)) +>this : amicus, Symbol(amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : samarensis.fuscus, dogramacii.koepckeae>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 780, 114)) } export class echinatus { ->echinatus : echinatus +>echinatus : echinatus, Symbol(echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) tenuipes(): howi.coludo> { var x: howi.coludo>; () => { var y = this; }; return x; } ->tenuipes : () => howi.coludo> ->howi : unknown ->coludo : howi.coludo ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->panglima : unknown ->amphibius : panglima.amphibius ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->patas : unknown ->uralensis : patas.uralensis ->x : howi.coludo> ->howi : unknown ->coludo : howi.coludo ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->panglima : unknown ->amphibius : panglima.amphibius ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->patas : unknown ->uralensis : patas.uralensis +>tenuipes : () => howi.coludo>, Symbol(tenuipes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 782, 28)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : howi.coludo>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 783, 124)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) >() => { var y = this; } : () => void ->y : echinatus ->this : echinatus ->x : howi.coludo> +>y : echinatus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 783, 239)) +>this : echinatus, Symbol(echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : howi.coludo>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 783, 124)) } } module imperfecta { ->imperfecta : typeof imperfecta +>imperfecta : typeof imperfecta, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) export class lasiurus { ->lasiurus : lasiurus ->T0 : T0 ->T1 : T1 +>lasiurus : lasiurus, Symbol(lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 787, 26)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 787, 29)) marisae(): lavali.thaeleri { var x: lavali.thaeleri; () => { var y = this; }; return x; } ->marisae : () => lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri ->x : lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri +>marisae : () => lavali.thaeleri, Symbol(marisae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 787, 35)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 788, 40)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) >() => { var y = this; } : () => void ->y : lasiurus ->this : lasiurus ->x : lavali.thaeleri +>y : lasiurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 788, 72)) +>this : lasiurus, Symbol(lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 788, 40)) fulvus(): argurus.germaini { var x: argurus.germaini; () => { var y = this; }; return x; } ->fulvus : () => argurus.germaini ->argurus : unknown ->germaini : argurus.germaini ->x : argurus.germaini ->argurus : unknown ->germaini : argurus.germaini +>fulvus : () => argurus.germaini, Symbol(fulvus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 788, 97)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>x : argurus.germaini, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 789, 40)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) >() => { var y = this; } : () => void ->y : lasiurus ->this : lasiurus ->x : argurus.germaini +>y : lasiurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 789, 73)) +>this : lasiurus, Symbol(lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>x : argurus.germaini, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 789, 40)) paranaensis(): dogramacii.koepckeae { var x: dogramacii.koepckeae; () => { var y = this; }; return x; } ->paranaensis : () => dogramacii.koepckeae ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->x : dogramacii.koepckeae ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae +>paranaensis : () => dogramacii.koepckeae, Symbol(paranaensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 789, 98)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : dogramacii.koepckeae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 790, 49)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) >() => { var y = this; } : () => void ->y : lasiurus ->this : lasiurus ->x : dogramacii.koepckeae +>y : lasiurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 790, 86)) +>this : lasiurus, Symbol(lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>x : dogramacii.koepckeae, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 790, 49)) didactylus(): panglima.abidi> { var x: panglima.abidi>; () => { var y = this; }; return x; } ->didactylus : () => panglima.abidi> ->panglima : unknown ->abidi : panglima.abidi ->dogramacii : unknown ->aurata : dogramacii.aurata ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : panglima.abidi> ->panglima : unknown ->abidi : panglima.abidi ->dogramacii : unknown ->aurata : dogramacii.aurata ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>didactylus : () => panglima.abidi>, Symbol(didactylus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 790, 111)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : panglima.abidi>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 791, 130)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : lasiurus ->this : lasiurus ->x : panglima.abidi> +>y : lasiurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 791, 249)) +>this : lasiurus, Symbol(lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>x : panglima.abidi>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 791, 130)) schreibersii(): nigra.gracilis { var x: nigra.gracilis; () => { var y = this; }; return x; } ->schreibersii : () => nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->argurus : unknown ->luctuosa : argurus.luctuosa ->ruatanica : unknown ->americanus : ruatanica.americanus ->x : nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->argurus : unknown ->luctuosa : argurus.luctuosa ->ruatanica : unknown ->americanus : ruatanica.americanus +>schreibersii : () => nigra.gracilis, Symbol(schreibersii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 791, 274)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 792, 84)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : ruatanica.americanus, Symbol(ruatanica.americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) >() => { var y = this; } : () => void ->y : lasiurus ->this : lasiurus ->x : nigra.gracilis +>y : lasiurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 792, 155)) +>this : lasiurus, Symbol(lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 792, 84)) orii(): dogramacii.kaiseri { var x: dogramacii.kaiseri; () => { var y = this; }; return x; } ->orii : () => dogramacii.kaiseri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : dogramacii.kaiseri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>orii : () => dogramacii.kaiseri, Symbol(orii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 792, 180)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : dogramacii.kaiseri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 793, 40)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : lasiurus ->this : lasiurus ->x : dogramacii.kaiseri +>y : lasiurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 793, 75)) +>this : lasiurus, Symbol(lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>x : dogramacii.kaiseri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 793, 40)) } export class subspinosus { ->subspinosus : subspinosus +>subspinosus : subspinosus, Symbol(subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) monticularis(): macrorhinos.konganensis { var x: macrorhinos.konganensis; () => { var y = this; }; return x; } ->monticularis : () => macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>monticularis : () => macrorhinos.konganensis, Symbol(monticularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 795, 30)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 796, 53)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : subspinosus ->this : subspinosus ->x : macrorhinos.konganensis +>y : subspinosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 796, 93)) +>this : subspinosus, Symbol(subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 796, 53)) Gadolinium(): nigra.caucasica { var x: nigra.caucasica; () => { var y = this; }; return x; } ->Gadolinium : () => nigra.caucasica ->nigra : unknown ->caucasica : nigra.caucasica ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->patas : unknown ->uralensis : patas.uralensis ->x : nigra.caucasica ->nigra : unknown ->caucasica : nigra.caucasica ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->patas : unknown ->uralensis : patas.uralensis +>Gadolinium : () => nigra.caucasica, Symbol(Gadolinium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 796, 118)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>caucasica : nigra.caucasica, Symbol(nigra.caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : nigra.caucasica, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 797, 80)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>caucasica : nigra.caucasica, Symbol(nigra.caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) >() => { var y = this; } : () => void ->y : subspinosus ->this : subspinosus ->x : nigra.caucasica +>y : subspinosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 797, 149)) +>this : subspinosus, Symbol(subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : nigra.caucasica, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 797, 80)) oasicus(): caurinus.johorensis> { var x: caurinus.johorensis>; () => { var y = this; }; return x; } ->oasicus : () => caurinus.johorensis> ->caurinus : unknown ->johorensis : caurinus.johorensis ->argurus : unknown ->peninsulae : argurus.peninsulae ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->argurus : unknown ->germaini : argurus.germaini ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : caurinus.johorensis> ->caurinus : unknown ->johorensis : caurinus.johorensis ->argurus : unknown ->peninsulae : argurus.peninsulae ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->argurus : unknown ->germaini : argurus.germaini ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>oasicus : () => caurinus.johorensis>, Symbol(oasicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 797, 174)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : caurinus.johorensis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 798, 124)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : argurus.peninsulae, Symbol(argurus.peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : subspinosus ->this : subspinosus ->x : caurinus.johorensis> +>y : subspinosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 798, 240)) +>this : subspinosus, Symbol(subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : caurinus.johorensis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 798, 124)) paterculus(): lutreolus.punicus { var x: lutreolus.punicus; () => { var y = this; }; return x; } ->paterculus : () => lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus +>paterculus : () => lutreolus.punicus, Symbol(paterculus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 798, 265)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 799, 45)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : subspinosus ->this : subspinosus ->x : lutreolus.punicus +>y : subspinosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 799, 79)) +>this : subspinosus, Symbol(subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 799, 45)) punctata(): lavali.thaeleri { var x: lavali.thaeleri; () => { var y = this; }; return x; } ->punctata : () => lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri ->x : lavali.thaeleri ->lavali : unknown ->thaeleri : lavali.thaeleri +>punctata : () => lavali.thaeleri, Symbol(punctata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 799, 104)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 800, 41)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) >() => { var y = this; } : () => void ->y : subspinosus ->this : subspinosus ->x : lavali.thaeleri +>y : subspinosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 800, 73)) +>this : subspinosus, Symbol(subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : lavali.thaeleri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 800, 41)) invictus(): sagitta.stolzmanni { var x: sagitta.stolzmanni; () => { var y = this; }; return x; } ->invictus : () => sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>invictus : () => sagitta.stolzmanni, Symbol(invictus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 800, 98)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 801, 44)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : subspinosus ->this : subspinosus ->x : sagitta.stolzmanni +>y : subspinosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 801, 79)) +>this : subspinosus, Symbol(subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 801, 44)) stangeri(): petrophilus.minutilla { var x: petrophilus.minutilla; () => { var y = this; }; return x; } ->stangeri : () => petrophilus.minutilla ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->x : petrophilus.minutilla ->petrophilus : unknown ->minutilla : petrophilus.minutilla +>stangeri : () => petrophilus.minutilla, Symbol(stangeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 801, 104)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>x : petrophilus.minutilla, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 802, 47)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) >() => { var y = this; } : () => void ->y : subspinosus ->this : subspinosus ->x : petrophilus.minutilla +>y : subspinosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 802, 85)) +>this : subspinosus, Symbol(subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : petrophilus.minutilla, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 802, 47)) siskiyou(): minutus.inez { var x: minutus.inez; () => { var y = this; }; return x; } ->siskiyou : () => minutus.inez ->minutus : unknown ->inez : minutus.inez ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : minutus.inez ->minutus : unknown ->inez : minutus.inez ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->samarensis : unknown ->pallidus : samarensis.pallidus +>siskiyou : () => minutus.inez, Symbol(siskiyou, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 802, 110)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 803, 84)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : subspinosus ->this : subspinosus ->x : minutus.inez +>y : subspinosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 803, 159)) +>this : subspinosus, Symbol(subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 803, 84)) welwitschii(): rionegrensis.caniventer { var x: rionegrensis.caniventer; () => { var y = this; }; return x; } ->welwitschii : () => rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : rionegrensis.caniventer ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>welwitschii : () => rionegrensis.caniventer, Symbol(welwitschii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 803, 184)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 804, 52)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : subspinosus ->this : subspinosus ->x : rionegrensis.caniventer +>y : subspinosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 804, 92)) +>this : subspinosus, Symbol(subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : rionegrensis.caniventer, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 804, 52)) Polonium(): lavali.wilsoni { var x: lavali.wilsoni; () => { var y = this; }; return x; } ->Polonium : () => lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni +>Polonium : () => lavali.wilsoni, Symbol(Polonium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 804, 117)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 805, 40)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : subspinosus ->this : subspinosus ->x : lavali.wilsoni +>y : subspinosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 805, 71)) +>this : subspinosus, Symbol(subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 805, 40)) harpia(): argurus.luctuosa { var x: argurus.luctuosa; () => { var y = this; }; return x; } ->harpia : () => argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa +>harpia : () => argurus.luctuosa, Symbol(harpia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 805, 96)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 806, 40)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : subspinosus ->this : subspinosus ->x : argurus.luctuosa +>y : subspinosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 806, 73)) +>this : subspinosus, Symbol(subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 806, 40)) } export class ciliolabrum extends dogramacii.robustulus { ->ciliolabrum : ciliolabrum ->T0 : T0 ->T1 : T1 ->dogramacii : typeof dogramacii ->robustulus : dogramacii.robustulus +>ciliolabrum : ciliolabrum, Symbol(ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 808, 29)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 808, 32)) +>dogramacii.robustulus : any, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>dogramacii : typeof dogramacii, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) leschenaultii(): argurus.dauricus> { var x: argurus.dauricus>; () => { var y = this; }; return x; } ->leschenaultii : () => argurus.dauricus> ->argurus : unknown ->dauricus : argurus.dauricus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->argurus : unknown ->germaini : argurus.germaini ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->x : argurus.dauricus> ->argurus : unknown ->dauricus : argurus.dauricus ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->argurus : unknown ->germaini : argurus.germaini ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus +>leschenaultii : () => argurus.dauricus>, Symbol(leschenaultii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 808, 68)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : argurus.dauricus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 809, 132)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) >() => { var y = this; } : () => void ->y : ciliolabrum ->this : ciliolabrum ->x : argurus.dauricus> +>y : ciliolabrum, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 809, 250)) +>this : ciliolabrum, Symbol(ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>x : argurus.dauricus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 809, 132)) ludia(): caurinus.johorensis { var x: caurinus.johorensis; () => { var y = this; }; return x; } ->ludia : () => caurinus.johorensis ->caurinus : unknown ->johorensis : caurinus.johorensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : caurinus.johorensis ->caurinus : unknown ->johorensis : caurinus.johorensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->lutreolus : unknown ->punicus : lutreolus.punicus +>ludia : () => caurinus.johorensis, Symbol(ludia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 809, 275)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : caurinus.johorensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 810, 86)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : ciliolabrum ->this : ciliolabrum ->x : caurinus.johorensis +>y : ciliolabrum, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 810, 166)) +>this : ciliolabrum, Symbol(ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>x : caurinus.johorensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 810, 86)) sinicus(): macrorhinos.marmosurus { var x: macrorhinos.marmosurus; () => { var y = this; }; return x; } ->sinicus : () => macrorhinos.marmosurus ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->gabriellae : unknown ->amicus : gabriellae.amicus ->x : macrorhinos.marmosurus ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->gabriellae : unknown ->amicus : gabriellae.amicus +>sinicus : () => macrorhinos.marmosurus, Symbol(sinicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 810, 191)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>x : macrorhinos.marmosurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 811, 91)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) >() => { var y = this; } : () => void ->y : ciliolabrum ->this : ciliolabrum ->x : macrorhinos.marmosurus +>y : ciliolabrum, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 811, 174)) +>this : ciliolabrum, Symbol(ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>x : macrorhinos.marmosurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 811, 91)) } } module quasiater { ->quasiater : typeof quasiater +>quasiater : typeof quasiater, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) export class wattsi { ->wattsi : wattsi ->T0 : T0 ->T1 : T1 +>wattsi : wattsi, Symbol(wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 815, 24)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 815, 27)) lagotis(): lavali.xanthognathus { var x: lavali.xanthognathus; () => { var y = this; }; return x; } ->lagotis : () => lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>lagotis : () => lavali.xanthognathus, Symbol(lagotis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 815, 33)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 816, 45)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : wattsi ->this : wattsi ->x : lavali.xanthognathus +>y : wattsi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 816, 82)) +>this : wattsi, Symbol(wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 816, 45)) hussoni(): lavali.wilsoni { var x: lavali.wilsoni; () => { var y = this; }; return x; } ->hussoni : () => lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni +>hussoni : () => lavali.wilsoni, Symbol(hussoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 816, 107)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 817, 39)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : wattsi ->this : wattsi ->x : lavali.wilsoni +>y : wattsi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 817, 70)) +>this : wattsi, Symbol(wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 817, 39)) bilarni(): samarensis.cahirinus>, dogramacii.koepckeae> { var x: samarensis.cahirinus>, dogramacii.koepckeae>; () => { var y = this; }; return x; } ->bilarni : () => samarensis.cahirinus>, dogramacii.koepckeae> ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->rendalli : unknown ->crenulata : rendalli.crenulata ->lavali : unknown ->wilsoni : lavali.wilsoni ->panglima : unknown ->fundatus : panglima.fundatus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->foina : lutreolus.foina ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->x : samarensis.cahirinus>, dogramacii.koepckeae> ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->rendalli : unknown ->crenulata : rendalli.crenulata ->lavali : unknown ->wilsoni : lavali.wilsoni ->panglima : unknown ->fundatus : panglima.fundatus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->foina : lutreolus.foina ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae +>bilarni : () => samarensis.cahirinus>, dogramacii.koepckeae>, Symbol(bilarni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 817, 95)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : samarensis.cahirinus>, dogramacii.koepckeae>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 818, 158)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) >() => { var y = this; } : () => void ->y : wattsi ->this : wattsi ->x : samarensis.cahirinus>, dogramacii.koepckeae> +>y : wattsi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 818, 308)) +>this : wattsi, Symbol(wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>x : samarensis.cahirinus>, dogramacii.koepckeae>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 818, 158)) cabrerae(): lavali.lepturus { var x: lavali.lepturus; () => { var y = this; }; return x; } ->cabrerae : () => lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus ->x : lavali.lepturus ->lavali : unknown ->lepturus : lavali.lepturus +>cabrerae : () => lavali.lepturus, Symbol(cabrerae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 818, 333)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 819, 41)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : wattsi ->this : wattsi ->x : lavali.lepturus +>y : wattsi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 819, 73)) +>this : wattsi, Symbol(wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>x : lavali.lepturus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 819, 41)) } } module butleri { ->butleri : unknown +>butleri : any, Symbol(butleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 821, 1)) } module petrophilus { ->petrophilus : typeof petrophilus +>petrophilus : typeof petrophilus, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) export class sodyi extends quasiater.bobrinskoi { ->sodyi : sodyi ->T0 : T0 ->T1 : T1 ->quasiater : typeof quasiater ->bobrinskoi : quasiater.bobrinskoi +>sodyi : sodyi, Symbol(sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 825, 23)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 825, 26)) +>quasiater.bobrinskoi : any, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>quasiater : typeof quasiater, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) saundersiae(): samarensis.pallidus { var x: samarensis.pallidus; () => { var y = this; }; return x; } ->saundersiae : () => samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus +>saundersiae : () => samarensis.pallidus, Symbol(saundersiae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 825, 61)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 826, 48)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : sodyi ->this : sodyi ->x : samarensis.pallidus +>y : sodyi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 826, 84)) +>this : sodyi, Symbol(sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 826, 48)) imberbis(): quasiater.carolinensis { var x: quasiater.carolinensis; () => { var y = this; }; return x; } ->imberbis : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>imberbis : () => quasiater.carolinensis, Symbol(imberbis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 826, 109)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 827, 48)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : sodyi ->this : sodyi ->x : quasiater.carolinensis +>y : sodyi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 827, 87)) +>this : sodyi, Symbol(sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 827, 48)) cansdalei(): dammermani.melanops { var x: dammermani.melanops; () => { var y = this; }; return x; } ->cansdalei : () => dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops ->x : dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops +>cansdalei : () => dammermani.melanops, Symbol(cansdalei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 827, 112)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 828, 46)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : sodyi ->this : sodyi ->x : dammermani.melanops +>y : sodyi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 828, 82)) +>this : sodyi, Symbol(sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 828, 46)) Lawrencium(): nigra.dolichurus { var x: nigra.dolichurus; () => { var y = this; }; return x; } ->Lawrencium : () => nigra.dolichurus ->nigra : unknown ->dolichurus : nigra.dolichurus ->julianae : unknown ->sumatrana : julianae.sumatrana ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : nigra.dolichurus ->nigra : unknown ->dolichurus : nigra.dolichurus ->julianae : unknown ->sumatrana : julianae.sumatrana ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>Lawrencium : () => nigra.dolichurus, Symbol(Lawrencium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 828, 107)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : nigra.dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 829, 88)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : sodyi ->this : sodyi ->x : nigra.dolichurus +>y : sodyi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 829, 165)) +>this : sodyi, Symbol(sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>x : nigra.dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 829, 88)) catta(): argurus.oreas { var x: argurus.oreas; () => { var y = this; }; return x; } ->catta : () => argurus.oreas ->argurus : unknown ->oreas : argurus.oreas ->x : argurus.oreas ->argurus : unknown ->oreas : argurus.oreas +>catta : () => argurus.oreas, Symbol(catta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 829, 190)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 830, 36)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : sodyi ->this : sodyi ->x : argurus.oreas +>y : sodyi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 830, 66)) +>this : sodyi, Symbol(sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 830, 36)) breviceps(): argurus.dauricus { var x: argurus.dauricus; () => { var y = this; }; return x; } ->breviceps : () => argurus.dauricus ->argurus : unknown ->dauricus : argurus.dauricus ->dogramacii : unknown ->aurata : dogramacii.aurata ->dammermani : unknown ->melanops : dammermani.melanops ->x : argurus.dauricus ->argurus : unknown ->dauricus : argurus.dauricus ->dogramacii : unknown ->aurata : dogramacii.aurata ->dammermani : unknown ->melanops : dammermani.melanops +>breviceps : () => argurus.dauricus, Symbol(breviceps, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 830, 91)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : argurus.dauricus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 831, 83)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : sodyi ->this : sodyi ->x : argurus.dauricus +>y : sodyi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 831, 156)) +>this : sodyi, Symbol(sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>x : argurus.dauricus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 831, 83)) transitionalis(): rendalli.zuluensis { var x: rendalli.zuluensis; () => { var y = this; }; return x; } ->transitionalis : () => rendalli.zuluensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->x : rendalli.zuluensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis +>transitionalis : () => rendalli.zuluensis, Symbol(transitionalis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 831, 181)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : rendalli.zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 832, 50)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) >() => { var y = this; } : () => void ->y : sodyi ->this : sodyi ->x : rendalli.zuluensis +>y : sodyi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 832, 85)) +>this : sodyi, Symbol(sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>x : rendalli.zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 832, 50)) heptneri(): argurus.germaini { var x: argurus.germaini; () => { var y = this; }; return x; } ->heptneri : () => argurus.germaini ->argurus : unknown ->germaini : argurus.germaini ->x : argurus.germaini ->argurus : unknown ->germaini : argurus.germaini +>heptneri : () => argurus.germaini, Symbol(heptneri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 832, 110)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>x : argurus.germaini, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 833, 42)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) >() => { var y = this; } : () => void ->y : sodyi ->this : sodyi ->x : argurus.germaini +>y : sodyi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 833, 75)) +>this : sodyi, Symbol(sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>x : argurus.germaini, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 833, 42)) bairdii(): lavali.beisa { var x: lavali.beisa; () => { var y = this; }; return x; } ->bairdii : () => lavali.beisa ->lavali : unknown ->beisa : lavali.beisa ->x : lavali.beisa ->lavali : unknown ->beisa : lavali.beisa +>bairdii : () => lavali.beisa, Symbol(bairdii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 833, 100)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : lavali.beisa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 834, 37)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : sodyi ->this : sodyi ->x : lavali.beisa +>y : sodyi, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 834, 66)) +>this : sodyi, Symbol(sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>x : lavali.beisa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 834, 37)) } } module caurinus { ->caurinus : typeof caurinus +>caurinus : typeof caurinus, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) export class megaphyllus extends imperfecta.lasiurus> { ->megaphyllus : megaphyllus ->imperfecta : typeof imperfecta ->lasiurus : imperfecta.lasiurus ->julianae : unknown ->acariensis : julianae.acariensis ->howi : unknown ->coludo : howi.coludo ->argurus : unknown ->oreas : argurus.oreas ->howi : unknown ->marcanoi : howi.marcanoi +>megaphyllus : megaphyllus, Symbol(megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>imperfecta.lasiurus : any, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>imperfecta : typeof imperfecta, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) montana(): argurus.oreas { var x: argurus.oreas; () => { var y = this; }; return x; } ->montana : () => argurus.oreas ->argurus : unknown ->oreas : argurus.oreas ->x : argurus.oreas ->argurus : unknown ->oreas : argurus.oreas +>montana : () => argurus.oreas, Symbol(montana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 838, 122)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 839, 38)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : megaphyllus ->this : megaphyllus ->x : argurus.oreas +>y : megaphyllus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 839, 68)) +>this : megaphyllus, Symbol(megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 839, 38)) amatus(): lutreolus.schlegeli { var x: lutreolus.schlegeli; () => { var y = this; }; return x; } ->amatus : () => lutreolus.schlegeli ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->x : lutreolus.schlegeli ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli +>amatus : () => lutreolus.schlegeli, Symbol(amatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 839, 93)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : lutreolus.schlegeli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 840, 43)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) >() => { var y = this; } : () => void ->y : megaphyllus ->this : megaphyllus ->x : lutreolus.schlegeli +>y : megaphyllus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 840, 79)) +>this : megaphyllus, Symbol(megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : lutreolus.schlegeli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 840, 43)) bucculentus(): gabriellae.echinatus { var x: gabriellae.echinatus; () => { var y = this; }; return x; } ->bucculentus : () => gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>bucculentus : () => gabriellae.echinatus, Symbol(bucculentus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 840, 104)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 841, 49)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : megaphyllus ->this : megaphyllus ->x : gabriellae.echinatus +>y : megaphyllus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 841, 86)) +>this : megaphyllus, Symbol(megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 841, 49)) lepida(): rendalli.crenulata> { var x: rendalli.crenulata>; () => { var y = this; }; return x; } ->lepida : () => rendalli.crenulata> ->rendalli : unknown ->crenulata : rendalli.crenulata ->lavali : unknown ->wilsoni : lavali.wilsoni ->panglima : unknown ->fundatus : panglima.fundatus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->foina : lutreolus.foina ->x : rendalli.crenulata> ->rendalli : unknown ->crenulata : rendalli.crenulata ->lavali : unknown ->wilsoni : lavali.wilsoni ->panglima : unknown ->fundatus : panglima.fundatus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->foina : lutreolus.foina +>lepida : () => rendalli.crenulata>, Symbol(lepida, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 841, 111)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : rendalli.crenulata>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 842, 113)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : megaphyllus ->this : megaphyllus ->x : rendalli.crenulata> +>y : megaphyllus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 842, 219)) +>this : megaphyllus, Symbol(megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : rendalli.crenulata>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 842, 113)) graecus(): dogramacii.kaiseri { var x: dogramacii.kaiseri; () => { var y = this; }; return x; } ->graecus : () => dogramacii.kaiseri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : dogramacii.kaiseri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>graecus : () => dogramacii.kaiseri, Symbol(graecus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 842, 244)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : dogramacii.kaiseri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 843, 43)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : megaphyllus ->this : megaphyllus ->x : dogramacii.kaiseri +>y : megaphyllus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 843, 78)) +>this : megaphyllus, Symbol(megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : dogramacii.kaiseri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 843, 43)) forsteri(): petrophilus.minutilla { var x: petrophilus.minutilla; () => { var y = this; }; return x; } ->forsteri : () => petrophilus.minutilla ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->x : petrophilus.minutilla ->petrophilus : unknown ->minutilla : petrophilus.minutilla +>forsteri : () => petrophilus.minutilla, Symbol(forsteri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 843, 103)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>x : petrophilus.minutilla, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 844, 47)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) >() => { var y = this; } : () => void ->y : megaphyllus ->this : megaphyllus ->x : petrophilus.minutilla +>y : megaphyllus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 844, 85)) +>this : megaphyllus, Symbol(megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : petrophilus.minutilla, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 844, 47)) perotensis(): samarensis.cahirinus { var x: samarensis.cahirinus; () => { var y = this; }; return x; } ->perotensis : () => samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->minutus : unknown ->portoricensis : minutus.portoricensis ->lavali : unknown ->lepturus : lavali.lepturus ->x : samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->minutus : unknown ->portoricensis : minutus.portoricensis ->lavali : unknown ->lepturus : lavali.lepturus +>perotensis : () => samarensis.cahirinus, Symbol(perotensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 844, 110)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 845, 88)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : megaphyllus ->this : megaphyllus ->x : samarensis.cahirinus +>y : megaphyllus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 845, 165)) +>this : megaphyllus, Symbol(megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 845, 88)) cirrhosus(): quasiater.carolinensis { var x: quasiater.carolinensis; () => { var y = this; }; return x; } ->cirrhosus : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>cirrhosus : () => quasiater.carolinensis, Symbol(cirrhosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 845, 190)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 846, 49)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : megaphyllus ->this : megaphyllus ->x : quasiater.carolinensis +>y : megaphyllus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 846, 88)) +>this : megaphyllus, Symbol(megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 846, 49)) } } module minutus { ->minutus : typeof minutus +>minutus : typeof minutus, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) export class portoricensis { ->portoricensis : portoricensis +>portoricensis : portoricensis, Symbol(portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) relictus(): quasiater.carolinensis { var x: quasiater.carolinensis; () => { var y = this; }; return x; } ->relictus : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>relictus : () => quasiater.carolinensis, Symbol(relictus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 850, 32)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 851, 48)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : portoricensis ->this : portoricensis ->x : quasiater.carolinensis +>y : portoricensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 851, 87)) +>this : portoricensis, Symbol(portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 851, 48)) aequatorianus(): gabriellae.klossii { var x: gabriellae.klossii; () => { var y = this; }; return x; } ->aequatorianus : () => gabriellae.klossii ->gabriellae : unknown ->klossii : gabriellae.klossii ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata ->x : gabriellae.klossii ->gabriellae : unknown ->klossii : gabriellae.klossii ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata +>aequatorianus : () => gabriellae.klossii, Symbol(aequatorianus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 851, 112)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : gabriellae.klossii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 852, 89)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : portoricensis ->this : portoricensis ->x : gabriellae.klossii +>y : portoricensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 852, 164)) +>this : portoricensis, Symbol(portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>x : gabriellae.klossii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 852, 89)) rhinogradoides(): samarensis.cahirinus { var x: samarensis.cahirinus; () => { var y = this; }; return x; } ->rhinogradoides : () => samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->julianae : unknown ->durangae : julianae.durangae ->x : samarensis.cahirinus ->samarensis : unknown ->cahirinus : samarensis.cahirinus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->julianae : unknown ->durangae : julianae.durangae +>rhinogradoides : () => samarensis.cahirinus, Symbol(rhinogradoides, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 852, 189)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 853, 95)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>cahirinus : samarensis.cahirinus, Symbol(samarensis.cahirinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 569, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) >() => { var y = this; } : () => void ->y : portoricensis ->this : portoricensis ->x : samarensis.cahirinus +>y : portoricensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 853, 175)) +>this : portoricensis, Symbol(portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>x : samarensis.cahirinus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 853, 95)) } } module lutreolus { ->lutreolus : typeof lutreolus +>lutreolus : typeof lutreolus, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) export class foina { ->foina : foina +>foina : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) tarfayensis(): lutreolus.punicus { var x: lutreolus.punicus; () => { var y = this; }; return x; } ->tarfayensis : () => punicus ->lutreolus : unknown ->punicus : punicus ->x : punicus ->lutreolus : unknown ->punicus : punicus +>tarfayensis : () => punicus, Symbol(tarfayensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 857, 24)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 858, 46)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : punicus +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 858, 80)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 858, 46)) Promethium(): samarensis.pelurus { var x: samarensis.pelurus; () => { var y = this; }; return x; } ->Promethium : () => samarensis.pelurus ->samarensis : unknown ->pelurus : samarensis.pelurus ->argurus : unknown ->germaini : argurus.germaini ->julianae : unknown ->durangae : julianae.durangae ->x : samarensis.pelurus ->samarensis : unknown ->pelurus : samarensis.pelurus ->argurus : unknown ->germaini : argurus.germaini ->julianae : unknown ->durangae : julianae.durangae +>Promethium : () => samarensis.pelurus, Symbol(Promethium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 858, 105)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : samarensis.pelurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 859, 83)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pelurus : samarensis.pelurus, Symbol(samarensis.pelurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 532, 19)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : samarensis.pelurus +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 859, 155)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : samarensis.pelurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 859, 83)) salinae(): gabriellae.klossii { var x: gabriellae.klossii; () => { var y = this; }; return x; } ->salinae : () => gabriellae.klossii ->gabriellae : unknown ->klossii : gabriellae.klossii ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : gabriellae.klossii ->gabriellae : unknown ->klossii : gabriellae.klossii ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>salinae : () => gabriellae.klossii, Symbol(salinae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 859, 180)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : gabriellae.klossii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 860, 92)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : gabriellae.klossii +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 860, 176)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : gabriellae.klossii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 860, 92)) kerri(): howi.coludo { var x: howi.coludo; () => { var y = this; }; return x; } ->kerri : () => howi.coludo ->howi : unknown ->coludo : howi.coludo ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->minutus : unknown ->portoricensis : minutus.portoricensis ->x : howi.coludo ->howi : unknown ->coludo : howi.coludo ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->minutus : unknown ->portoricensis : minutus.portoricensis +>kerri : () => howi.coludo, Symbol(kerri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 860, 201)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 861, 81)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : howi.coludo +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 861, 156)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 861, 81)) scotti(): quasiater.wattsi { var x: quasiater.wattsi; () => { var y = this; }; return x; } ->scotti : () => quasiater.wattsi ->quasiater : unknown ->wattsi : quasiater.wattsi ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : quasiater.wattsi ->quasiater : unknown ->wattsi : quasiater.wattsi ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>scotti : () => quasiater.wattsi, Symbol(scotti, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 861, 181)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : quasiater.wattsi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 862, 88)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : quasiater.wattsi +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 862, 169)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : quasiater.wattsi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 862, 88)) camerunensis(): julianae.gerbillus { var x: julianae.gerbillus; () => { var y = this; }; return x; } ->camerunensis : () => julianae.gerbillus ->julianae : unknown ->gerbillus : julianae.gerbillus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->julianae : unknown ->durangae : julianae.durangae ->x : julianae.gerbillus ->julianae : unknown ->gerbillus : julianae.gerbillus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->julianae : unknown ->durangae : julianae.durangae +>camerunensis : () => julianae.gerbillus, Symbol(camerunensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 862, 194)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) +>x : julianae.gerbillus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 863, 91)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>durangae : julianae.durangae, Symbol(julianae.durangae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 94, 3)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : julianae.gerbillus +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 863, 169)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : julianae.gerbillus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 863, 91)) affinis(): argurus.germaini { var x: argurus.germaini; () => { var y = this; }; return x; } ->affinis : () => argurus.germaini ->argurus : unknown ->germaini : argurus.germaini ->x : argurus.germaini ->argurus : unknown ->germaini : argurus.germaini +>affinis : () => argurus.germaini, Symbol(affinis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 863, 194)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>x : argurus.germaini, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 864, 41)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : argurus.germaini +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 864, 74)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : argurus.germaini, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 864, 41)) siebersi(): trivirgatus.lotor> { var x: trivirgatus.lotor>; () => { var y = this; }; return x; } ->siebersi : () => trivirgatus.lotor> ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->argurus : unknown ->oreas : argurus.oreas ->nigra : unknown ->thalia : nigra.thalia ->patas : unknown ->uralensis : patas.uralensis ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : trivirgatus.lotor> ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->argurus : unknown ->oreas : argurus.oreas ->nigra : unknown ->thalia : nigra.thalia ->patas : unknown ->uralensis : patas.uralensis ->lavali : unknown ->wilsoni : lavali.wilsoni +>siebersi : () => trivirgatus.lotor>, Symbol(siebersi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 864, 99)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : trivirgatus.lotor>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 865, 105)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : trivirgatus.lotor> +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 865, 201)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : trivirgatus.lotor>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 865, 105)) maquassiensis(): trivirgatus.oconnelli { var x: trivirgatus.oconnelli; () => { var y = this; }; return x; } ->maquassiensis : () => trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>maquassiensis : () => trivirgatus.oconnelli, Symbol(maquassiensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 865, 226)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 866, 52)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : trivirgatus.oconnelli +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 866, 90)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 866, 52)) layardi(): julianae.albidens { var x: julianae.albidens; () => { var y = this; }; return x; } ->layardi : () => julianae.albidens ->julianae : unknown ->albidens : julianae.albidens ->howi : unknown ->marcanoi : howi.marcanoi ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->x : julianae.albidens ->julianae : unknown ->albidens : julianae.albidens ->howi : unknown ->marcanoi : howi.marcanoi ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae +>layardi : () => julianae.albidens, Symbol(layardi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 866, 115)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>x : julianae.albidens, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 867, 79)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : julianae.albidens +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 867, 150)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : julianae.albidens, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 867, 79)) bishopi(): dogramacii.aurata { var x: dogramacii.aurata; () => { var y = this; }; return x; } ->bishopi : () => dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata ->x : dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata +>bishopi : () => dogramacii.aurata, Symbol(bishopi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 867, 175)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : dogramacii.aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 868, 42)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : dogramacii.aurata +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 868, 76)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : dogramacii.aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 868, 42)) apodemoides(): caurinus.psilurus { var x: caurinus.psilurus; () => { var y = this; }; return x; } ->apodemoides : () => caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus +>apodemoides : () => caurinus.psilurus, Symbol(apodemoides, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 868, 101)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 869, 46)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : caurinus.psilurus +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 869, 80)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 869, 46)) argentiventer(): trivirgatus.mixtus { var x: trivirgatus.mixtus; () => { var y = this; }; return x; } ->argentiventer : () => trivirgatus.mixtus ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->punicus : punicus ->x : trivirgatus.mixtus ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->punicus : punicus +>argentiventer : () => trivirgatus.mixtus, Symbol(argentiventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 869, 105)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : trivirgatus.mixtus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 870, 87)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : punicus, Symbol(punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : foina ->this : foina ->x : trivirgatus.mixtus +>y : foina, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 870, 160)) +>this : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : trivirgatus.mixtus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 870, 87)) } } module lutreolus { ->lutreolus : typeof lutreolus +>lutreolus : typeof lutreolus, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) export class cor extends panglima.fundatus, lavali.beisa>, dammermani.melanops> { ->cor : cor ->T0 : T0 ->T1 : T1 ->panglima : typeof panglima ->fundatus : panglima.fundatus ->panamensis : unknown ->linulus : panamensis.linulus ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->argurus : unknown ->luctuosa : argurus.luctuosa ->lavali : unknown ->wilsoni : lavali.wilsoni ->lavali : unknown ->beisa : lavali.beisa ->dammermani : unknown ->melanops : dammermani.melanops +>cor : cor, Symbol(cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 874, 21)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 874, 24)) +>panglima.fundatus : any, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>panglima : typeof panglima, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) antinorii(): petrophilus.sodyi { var x: petrophilus.sodyi; () => { var y = this; }; return x; } ->antinorii : () => petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->argurus : unknown ->germaini : argurus.germaini ->x : petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->argurus : unknown ->germaini : argurus.germaini +>antinorii : () => petrophilus.sodyi, Symbol(antinorii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 874, 164)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 875, 86)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) >() => { var y = this; } : () => void ->y : cor ->this : cor ->x : petrophilus.sodyi +>y : cor, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 875, 162)) +>this : cor, Symbol(cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 875, 86)) voi(): caurinus.johorensis { var x: caurinus.johorensis; () => { var y = this; }; return x; } ->voi : () => caurinus.johorensis ->caurinus : unknown ->johorensis : caurinus.johorensis ->dammermani : unknown ->melanops : dammermani.melanops ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : caurinus.johorensis ->caurinus : unknown ->johorensis : caurinus.johorensis ->dammermani : unknown ->melanops : dammermani.melanops ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>voi : () => caurinus.johorensis, Symbol(voi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 875, 187)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : caurinus.johorensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 876, 86)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>johorensis : caurinus.johorensis, Symbol(caurinus.johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : cor ->this : cor ->x : caurinus.johorensis +>y : cor, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 876, 168)) +>this : cor, Symbol(cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>x : caurinus.johorensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 876, 86)) mussoi(): quasiater.carolinensis { var x: quasiater.carolinensis; () => { var y = this; }; return x; } ->mussoi : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>mussoi : () => quasiater.carolinensis, Symbol(mussoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 876, 193)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 877, 46)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : cor ->this : cor ->x : quasiater.carolinensis +>y : cor, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 877, 85)) +>this : cor, Symbol(cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 877, 46)) truncatus(): trivirgatus.lotor { var x: trivirgatus.lotor; () => { var y = this; }; return x; } ->truncatus : () => trivirgatus.lotor ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->lutreolus : unknown ->foina : foina ->x : trivirgatus.lotor ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->lutreolus : unknown ->foina : foina +>truncatus : () => trivirgatus.lotor, Symbol(truncatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 877, 110)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : trivirgatus.lotor, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 878, 81)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : foina, Symbol(foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : cor ->this : cor ->x : trivirgatus.lotor +>y : cor, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 878, 152)) +>this : cor, Symbol(cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>x : trivirgatus.lotor, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 878, 81)) achates(): provocax.melanoleuca { var x: provocax.melanoleuca; () => { var y = this; }; return x; } ->achates : () => provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : provocax.melanoleuca ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>achates : () => provocax.melanoleuca, Symbol(achates, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 878, 177)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : provocax.melanoleuca, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 879, 45)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : cor ->this : cor ->x : provocax.melanoleuca +>y : cor, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 879, 82)) +>this : cor, Symbol(cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>x : provocax.melanoleuca, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 879, 45)) praedatrix(): howi.angulatus { var x: howi.angulatus; () => { var y = this; }; return x; } ->praedatrix : () => howi.angulatus ->howi : unknown ->angulatus : howi.angulatus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->julianae : unknown ->steerii : julianae.steerii ->x : howi.angulatus ->howi : unknown ->angulatus : howi.angulatus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->julianae : unknown ->steerii : julianae.steerii +>praedatrix : () => howi.angulatus, Symbol(praedatrix, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 879, 107)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : howi.angulatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 880, 80)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : cor ->this : cor ->x : howi.angulatus +>y : cor, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 880, 149)) +>this : cor, Symbol(cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>x : howi.angulatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 880, 80)) mzabi(): quasiater.wattsi, minutus.inez> { var x: quasiater.wattsi, minutus.inez>; () => { var y = this; }; return x; } ->mzabi : () => quasiater.wattsi, minutus.inez> ->quasiater : unknown ->wattsi : quasiater.wattsi ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->julianae : unknown ->steerii : julianae.steerii ->samarensis : unknown ->pallidus : samarensis.pallidus ->minutus : unknown ->inez : minutus.inez ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : quasiater.wattsi, minutus.inez> ->quasiater : unknown ->wattsi : quasiater.wattsi ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->julianae : unknown ->steerii : julianae.steerii ->samarensis : unknown ->pallidus : samarensis.pallidus ->minutus : unknown ->inez : minutus.inez ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>mzabi : () => quasiater.wattsi, minutus.inez>, Symbol(mzabi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 880, 174)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : quasiater.wattsi, minutus.inez>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 881, 155)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>wattsi : quasiater.wattsi, Symbol(quasiater.wattsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 814, 18)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : cor ->this : cor ->x : quasiater.wattsi, minutus.inez> +>y : cor, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 881, 304)) +>this : cor, Symbol(cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>x : quasiater.wattsi, minutus.inez>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 881, 155)) xanthinus(): nigra.gracilis, howi.marcanoi> { var x: nigra.gracilis, howi.marcanoi>; () => { var y = this; }; return x; } ->xanthinus : () => nigra.gracilis, howi.marcanoi> ->nigra : unknown ->gracilis : nigra.gracilis ->panamensis : unknown ->linulus : panamensis.linulus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->minutus : unknown ->portoricensis : minutus.portoricensis ->howi : unknown ->marcanoi : howi.marcanoi ->x : nigra.gracilis, howi.marcanoi> ->nigra : unknown ->gracilis : nigra.gracilis ->panamensis : unknown ->linulus : panamensis.linulus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->minutus : unknown ->portoricensis : minutus.portoricensis ->howi : unknown ->marcanoi : howi.marcanoi +>xanthinus : () => nigra.gracilis, howi.marcanoi>, Symbol(xanthinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 881, 329)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : nigra.gracilis, howi.marcanoi>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 882, 119)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : cor ->this : cor ->x : nigra.gracilis, howi.marcanoi> +>y : cor, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 882, 228)) +>this : cor, Symbol(cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>x : nigra.gracilis, howi.marcanoi>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 882, 119)) tapoatafa(): caurinus.megaphyllus { var x: caurinus.megaphyllus; () => { var y = this; }; return x; } ->tapoatafa : () => caurinus.megaphyllus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->x : caurinus.megaphyllus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus +>tapoatafa : () => caurinus.megaphyllus, Symbol(tapoatafa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 882, 253)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : caurinus.megaphyllus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 883, 47)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) >() => { var y = this; } : () => void ->y : cor ->this : cor ->x : caurinus.megaphyllus +>y : cor, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 883, 84)) +>this : cor, Symbol(cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>x : caurinus.megaphyllus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 883, 47)) castroviejoi(): Lanthanum.jugularis { var x: Lanthanum.jugularis; () => { var y = this; }; return x; } ->castroviejoi : () => Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : Lanthanum.jugularis ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>castroviejoi : () => Lanthanum.jugularis, Symbol(castroviejoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 883, 109)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 884, 49)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : cor ->this : cor ->x : Lanthanum.jugularis +>y : cor, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 884, 85)) +>this : cor, Symbol(cor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 873, 18)) +>x : Lanthanum.jugularis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 884, 49)) } } module howi { ->howi : typeof howi +>howi : typeof howi, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) export class coludo { ->coludo : coludo ->T0 : T0 ->T1 : T1 +>coludo : coludo, Symbol(coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 888, 24)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 888, 27)) bernhardi(): lutreolus.punicus { var x: lutreolus.punicus; () => { var y = this; }; return x; } ->bernhardi : () => lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : lutreolus.punicus ->lutreolus : unknown ->punicus : lutreolus.punicus +>bernhardi : () => lutreolus.punicus, Symbol(bernhardi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 888, 33)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 889, 44)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : coludo ->this : coludo ->x : lutreolus.punicus +>y : coludo, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 889, 78)) +>this : coludo, Symbol(coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>x : lutreolus.punicus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 889, 44)) isseli(): argurus.germaini { var x: argurus.germaini; () => { var y = this; }; return x; } ->isseli : () => argurus.germaini ->argurus : unknown ->germaini : argurus.germaini ->x : argurus.germaini ->argurus : unknown ->germaini : argurus.germaini +>isseli : () => argurus.germaini, Symbol(isseli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 889, 103)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>x : argurus.germaini, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 890, 40)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) >() => { var y = this; } : () => void ->y : coludo ->this : coludo ->x : argurus.germaini +>y : coludo, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 890, 73)) +>this : coludo, Symbol(coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>x : argurus.germaini, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 890, 40)) } } module argurus { ->argurus : typeof argurus +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) export class germaini extends gabriellae.amicus { ->germaini : germaini ->gabriellae : typeof gabriellae ->amicus : gabriellae.amicus +>germaini : germaini, Symbol(germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>gabriellae.amicus : any, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>gabriellae : typeof gabriellae, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) sharpei(): lavali.wilsoni { var x: lavali.wilsoni; () => { var y = this; }; return x; } ->sharpei : () => lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni +>sharpei : () => lavali.wilsoni, Symbol(sharpei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 894, 53)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 895, 39)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : germaini ->this : germaini ->x : lavali.wilsoni +>y : germaini, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 895, 70)) +>this : germaini, Symbol(germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 895, 39)) palmarum(): macrorhinos.marmosurus { var x: macrorhinos.marmosurus; () => { var y = this; }; return x; } ->palmarum : () => macrorhinos.marmosurus ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->lavali : unknown ->thaeleri : lavali.thaeleri ->x : macrorhinos.marmosurus ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->lavali : unknown ->thaeleri : lavali.thaeleri +>palmarum : () => macrorhinos.marmosurus, Symbol(palmarum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 895, 95)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : macrorhinos.marmosurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 896, 86)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) >() => { var y = this; } : () => void ->y : germaini ->this : germaini ->x : macrorhinos.marmosurus +>y : germaini, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 896, 163)) +>this : germaini, Symbol(germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>x : macrorhinos.marmosurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 896, 86)) } } module sagitta { ->sagitta : typeof sagitta +>sagitta : typeof sagitta, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) export class stolzmanni { ->stolzmanni : stolzmanni +>stolzmanni : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) riparius(): nigra.dolichurus { var x: nigra.dolichurus; () => { var y = this; }; return x; } ->riparius : () => nigra.dolichurus ->nigra : unknown ->dolichurus : nigra.dolichurus ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : nigra.dolichurus ->nigra : unknown ->dolichurus : nigra.dolichurus ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->caurinus : unknown ->psilurus : caurinus.psilurus +>riparius : () => nigra.dolichurus, Symbol(riparius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 900, 29)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : nigra.dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 901, 83)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : stolzmanni ->this : stolzmanni ->x : nigra.dolichurus +>y : stolzmanni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 901, 157)) +>this : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : nigra.dolichurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 901, 83)) dhofarensis(): lutreolus.foina { var x: lutreolus.foina; () => { var y = this; }; return x; } ->dhofarensis : () => lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina ->x : lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina +>dhofarensis : () => lutreolus.foina, Symbol(dhofarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 901, 182)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : lutreolus.foina, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 902, 44)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : stolzmanni ->this : stolzmanni ->x : lutreolus.foina +>y : stolzmanni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 902, 76)) +>this : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : lutreolus.foina, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 902, 44)) tricolor(): argurus.germaini { var x: argurus.germaini; () => { var y = this; }; return x; } ->tricolor : () => argurus.germaini ->argurus : unknown ->germaini : argurus.germaini ->x : argurus.germaini ->argurus : unknown ->germaini : argurus.germaini +>tricolor : () => argurus.germaini, Symbol(tricolor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 902, 101)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) +>x : argurus.germaini, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 903, 42)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>germaini : argurus.germaini, Symbol(argurus.germaini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 893, 16)) >() => { var y = this; } : () => void ->y : stolzmanni ->this : stolzmanni ->x : argurus.germaini +>y : stolzmanni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 903, 75)) +>this : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : argurus.germaini, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 903, 42)) gardneri(): lavali.xanthognathus { var x: lavali.xanthognathus; () => { var y = this; }; return x; } ->gardneri : () => lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>gardneri : () => lavali.xanthognathus, Symbol(gardneri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 903, 100)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 904, 46)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : stolzmanni ->this : stolzmanni ->x : lavali.xanthognathus +>y : stolzmanni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 904, 83)) +>this : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 904, 46)) walleri(): rendalli.moojeni, gabriellae.echinatus> { var x: rendalli.moojeni, gabriellae.echinatus>; () => { var y = this; }; return x; } ->walleri : () => rendalli.moojeni, gabriellae.echinatus> ->rendalli : unknown ->moojeni : rendalli.moojeni ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : rendalli.moojeni, gabriellae.echinatus> ->rendalli : unknown ->moojeni : rendalli.moojeni ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>walleri : () => rendalli.moojeni, gabriellae.echinatus>, Symbol(walleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 904, 108)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : rendalli.moojeni, gabriellae.echinatus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 905, 132)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : stolzmanni ->this : stolzmanni ->x : rendalli.moojeni, gabriellae.echinatus> +>y : stolzmanni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 905, 256)) +>this : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : rendalli.moojeni, gabriellae.echinatus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 905, 132)) talpoides(): gabriellae.echinatus { var x: gabriellae.echinatus; () => { var y = this; }; return x; } ->talpoides : () => gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : gabriellae.echinatus ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>talpoides : () => gabriellae.echinatus, Symbol(talpoides, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 905, 281)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 906, 47)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : stolzmanni ->this : stolzmanni ->x : gabriellae.echinatus +>y : stolzmanni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 906, 84)) +>this : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : gabriellae.echinatus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 906, 47)) pallipes(): dammermani.melanops { var x: dammermani.melanops; () => { var y = this; }; return x; } ->pallipes : () => dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops ->x : dammermani.melanops ->dammermani : unknown ->melanops : dammermani.melanops +>pallipes : () => dammermani.melanops, Symbol(pallipes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 906, 109)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 907, 45)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : stolzmanni ->this : stolzmanni ->x : dammermani.melanops +>y : stolzmanni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 907, 81)) +>this : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : dammermani.melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 907, 45)) lagurus(): lavali.beisa { var x: lavali.beisa; () => { var y = this; }; return x; } ->lagurus : () => lavali.beisa ->lavali : unknown ->beisa : lavali.beisa ->x : lavali.beisa ->lavali : unknown ->beisa : lavali.beisa +>lagurus : () => lavali.beisa, Symbol(lagurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 907, 106)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : lavali.beisa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 908, 37)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : stolzmanni ->this : stolzmanni ->x : lavali.beisa +>y : stolzmanni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 908, 66)) +>this : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : lavali.beisa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 908, 37)) hipposideros(): julianae.albidens { var x: julianae.albidens; () => { var y = this; }; return x; } ->hipposideros : () => julianae.albidens ->julianae : unknown ->albidens : julianae.albidens ->argurus : unknown ->luctuosa : argurus.luctuosa ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : julianae.albidens ->julianae : unknown ->albidens : julianae.albidens ->argurus : unknown ->luctuosa : argurus.luctuosa ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>hipposideros : () => julianae.albidens, Symbol(hipposideros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 908, 91)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : julianae.albidens, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 909, 87)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : stolzmanni ->this : stolzmanni ->x : julianae.albidens +>y : stolzmanni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 909, 161)) +>this : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : julianae.albidens, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 909, 87)) griselda(): caurinus.psilurus { var x: caurinus.psilurus; () => { var y = this; }; return x; } ->griselda : () => caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : caurinus.psilurus ->caurinus : unknown ->psilurus : caurinus.psilurus +>griselda : () => caurinus.psilurus, Symbol(griselda, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 909, 186)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 910, 43)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : stolzmanni ->this : stolzmanni ->x : caurinus.psilurus +>y : stolzmanni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 910, 77)) +>this : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : caurinus.psilurus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 910, 43)) florium(): rendalli.zuluensis { var x: rendalli.zuluensis; () => { var y = this; }; return x; } ->florium : () => rendalli.zuluensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis ->x : rendalli.zuluensis ->rendalli : unknown ->zuluensis : rendalli.zuluensis +>florium : () => rendalli.zuluensis, Symbol(florium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 910, 102)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) +>x : rendalli.zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 911, 43)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>zuluensis : rendalli.zuluensis, Symbol(rendalli.zuluensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 152, 17)) >() => { var y = this; } : () => void ->y : stolzmanni ->this : stolzmanni ->x : rendalli.zuluensis +>y : stolzmanni, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 911, 78)) +>this : stolzmanni, Symbol(stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : rendalli.zuluensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 911, 43)) } } module dammermani { ->dammermani : typeof dammermani +>dammermani : typeof dammermani, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) export class melanops extends minutus.inez { ->melanops : melanops ->minutus : typeof minutus ->inez : minutus.inez ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->dammermani : unknown ->melanops : melanops +>melanops : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>minutus.inez : any, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>minutus : typeof minutus, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) blarina(): dammermani.melanops { var x: dammermani.melanops; () => { var y = this; }; return x; } ->blarina : () => melanops ->dammermani : unknown ->melanops : melanops ->x : melanops ->dammermani : unknown ->melanops : melanops +>blarina : () => melanops, Symbol(blarina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 915, 89)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 916, 44)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : melanops +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 916, 80)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : melanops, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 916, 44)) harwoodi(): rionegrensis.veraecrucis, lavali.wilsoni> { var x: rionegrensis.veraecrucis, lavali.wilsoni>; () => { var y = this; }; return x; } ->harwoodi : () => rionegrensis.veraecrucis, lavali.wilsoni> ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->nigra : unknown ->dolichurus : nigra.dolichurus ->lavali : unknown ->lepturus : lavali.lepturus ->samarensis : unknown ->pallidus : samarensis.pallidus ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : rionegrensis.veraecrucis, lavali.wilsoni> ->rionegrensis : unknown ->veraecrucis : rionegrensis.veraecrucis ->nigra : unknown ->dolichurus : nigra.dolichurus ->lavali : unknown ->lepturus : lavali.lepturus ->samarensis : unknown ->pallidus : samarensis.pallidus ->lavali : unknown ->wilsoni : lavali.wilsoni +>harwoodi : () => rionegrensis.veraecrucis, lavali.wilsoni>, Symbol(harwoodi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 916, 105)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : rionegrensis.veraecrucis, lavali.wilsoni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 917, 122)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>veraecrucis : rionegrensis.veraecrucis, Symbol(rionegrensis.veraecrucis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 7, 3)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>dolichurus : nigra.dolichurus, Symbol(nigra.dolichurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 389, 14)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : rionegrensis.veraecrucis, lavali.wilsoni> +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 917, 235)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : rionegrensis.veraecrucis, lavali.wilsoni>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 917, 122)) ashaninka(): julianae.nudicaudus { var x: julianae.nudicaudus; () => { var y = this; }; return x; } ->ashaninka : () => julianae.nudicaudus ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->x : julianae.nudicaudus ->julianae : unknown ->nudicaudus : julianae.nudicaudus +>ashaninka : () => julianae.nudicaudus, Symbol(ashaninka, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 917, 260)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>x : julianae.nudicaudus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 918, 46)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : julianae.nudicaudus +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 918, 82)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : julianae.nudicaudus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 918, 46)) wiedii(): julianae.steerii { var x: julianae.steerii; () => { var y = this; }; return x; } ->wiedii : () => julianae.steerii ->julianae : unknown ->steerii : julianae.steerii ->x : julianae.steerii ->julianae : unknown ->steerii : julianae.steerii +>wiedii : () => julianae.steerii, Symbol(wiedii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 918, 107)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : julianae.steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 919, 40)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : julianae.steerii +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 919, 73)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : julianae.steerii, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 919, 40)) godmani(): imperfecta.subspinosus { var x: imperfecta.subspinosus; () => { var y = this; }; return x; } ->godmani : () => imperfecta.subspinosus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : imperfecta.subspinosus ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>godmani : () => imperfecta.subspinosus, Symbol(godmani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 919, 98)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : imperfecta.subspinosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 920, 47)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : imperfecta.subspinosus +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 920, 86)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : imperfecta.subspinosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 920, 47)) condorensis(): imperfecta.ciliolabrum { var x: imperfecta.ciliolabrum; () => { var y = this; }; return x; } ->condorensis : () => imperfecta.ciliolabrum ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->samarensis : unknown ->pallidus : samarensis.pallidus ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : imperfecta.ciliolabrum ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->samarensis : unknown ->pallidus : samarensis.pallidus ->caurinus : unknown ->psilurus : caurinus.psilurus +>condorensis : () => imperfecta.ciliolabrum, Symbol(condorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 920, 111)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : imperfecta.ciliolabrum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 921, 91)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : imperfecta.ciliolabrum +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 921, 170)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : imperfecta.ciliolabrum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 921, 91)) xerophila(): panglima.abidi { var x: panglima.abidi; () => { var y = this; }; return x; } ->xerophila : () => panglima.abidi ->panglima : unknown ->abidi : panglima.abidi ->minutus : unknown ->portoricensis : minutus.portoricensis ->patas : unknown ->uralensis : patas.uralensis ->x : panglima.abidi ->panglima : unknown ->abidi : panglima.abidi ->minutus : unknown ->portoricensis : minutus.portoricensis ->patas : unknown ->uralensis : patas.uralensis +>xerophila : () => panglima.abidi, Symbol(xerophila, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 921, 195)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : panglima.abidi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 922, 81)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : panglima.abidi +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 922, 152)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : panglima.abidi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 922, 81)) laminatus(): panglima.fundatus>> { var x: panglima.fundatus>>; () => { var y = this; }; return x; } ->laminatus : () => panglima.fundatus>> ->panglima : unknown ->fundatus : panglima.fundatus ->howi : unknown ->marcanoi : howi.marcanoi ->samarensis : unknown ->fuscus : samarensis.fuscus ->lavali : unknown ->wilsoni : lavali.wilsoni ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus ->x : panglima.fundatus>> ->panglima : unknown ->fundatus : panglima.fundatus ->howi : unknown ->marcanoi : howi.marcanoi ->samarensis : unknown ->fuscus : samarensis.fuscus ->lavali : unknown ->wilsoni : lavali.wilsoni ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->imperfecta : unknown ->subspinosus : imperfecta.subspinosus +>laminatus : () => panglima.fundatus>>, Symbol(laminatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 922, 177)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) +>x : panglima.fundatus>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 923, 164)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>fuscus : samarensis.fuscus, Symbol(samarensis.fuscus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 547, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>subspinosus : imperfecta.subspinosus, Symbol(imperfecta.subspinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 794, 5)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : panglima.fundatus>> +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 923, 318)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : panglima.fundatus>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 923, 164)) archeri(): howi.marcanoi { var x: howi.marcanoi; () => { var y = this; }; return x; } ->archeri : () => howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi ->x : howi.marcanoi ->howi : unknown ->marcanoi : howi.marcanoi +>archeri : () => howi.marcanoi, Symbol(archeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 923, 343)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 924, 38)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : howi.marcanoi +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 924, 68)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : howi.marcanoi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 924, 38)) hidalgo(): minutus.inez { var x: minutus.inez; () => { var y = this; }; return x; } ->hidalgo : () => minutus.inez ->minutus : unknown ->inez : minutus.inez ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->x : minutus.inez ->minutus : unknown ->inez : minutus.inez ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis +>hidalgo : () => minutus.inez, Symbol(hidalgo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 924, 93)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 925, 81)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : minutus.inez +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 925, 154)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 925, 81)) unicolor(): lutreolus.schlegeli { var x: lutreolus.schlegeli; () => { var y = this; }; return x; } ->unicolor : () => lutreolus.schlegeli ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->x : lutreolus.schlegeli ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli +>unicolor : () => lutreolus.schlegeli, Symbol(unicolor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 925, 179)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : lutreolus.schlegeli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 926, 45)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : lutreolus.schlegeli +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 926, 81)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : lutreolus.schlegeli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 926, 45)) philippii(): nigra.gracilis { var x: nigra.gracilis; () => { var y = this; }; return x; } ->philippii : () => nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->sagitta : unknown ->walkeri : sagitta.walkeri ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : nigra.gracilis ->nigra : unknown ->gracilis : nigra.gracilis ->sagitta : unknown ->walkeri : sagitta.walkeri ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>philippii : () => nigra.gracilis, Symbol(philippii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 926, 106)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 927, 78)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>gracilis : nigra.gracilis, Symbol(nigra.gracilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 515, 14)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : nigra.gracilis +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 927, 146)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : nigra.gracilis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 927, 78)) bocagei(): julianae.albidens { var x: julianae.albidens; () => { var y = this; }; return x; } ->bocagei : () => julianae.albidens ->julianae : unknown ->albidens : julianae.albidens ->lavali : unknown ->wilsoni : lavali.wilsoni ->lavali : unknown ->thaeleri : lavali.thaeleri ->x : julianae.albidens ->julianae : unknown ->albidens : julianae.albidens ->lavali : unknown ->wilsoni : lavali.wilsoni ->lavali : unknown ->thaeleri : lavali.thaeleri +>bocagei : () => julianae.albidens, Symbol(bocagei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 927, 171)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>x : julianae.albidens, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 928, 75)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) >() => { var y = this; } : () => void ->y : melanops ->this : melanops ->x : julianae.albidens +>y : melanops, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 928, 142)) +>this : melanops, Symbol(melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>x : julianae.albidens, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 928, 75)) } } module argurus { ->argurus : typeof argurus +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) export class peninsulae extends patas.uralensis { ->peninsulae : peninsulae ->patas : typeof patas ->uralensis : patas.uralensis +>peninsulae : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>patas.uralensis : any, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>patas : typeof patas, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) aitkeni(): trivirgatus.mixtus, panglima.amphibius> { var x: trivirgatus.mixtus, panglima.amphibius>; () => { var y = this; }; return x; } ->aitkeni : () => trivirgatus.mixtus, panglima.amphibius> ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->argurus : unknown ->dauricus : dauricus ->dogramacii : unknown ->aurata : dogramacii.aurata ->dammermani : unknown ->melanops : dammermani.melanops ->panglima : unknown ->amphibius : panglima.amphibius ->lavali : unknown ->lepturus : lavali.lepturus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : trivirgatus.mixtus, panglima.amphibius> ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->argurus : unknown ->dauricus : dauricus ->dogramacii : unknown ->aurata : dogramacii.aurata ->dammermani : unknown ->melanops : dammermani.melanops ->panglima : unknown ->amphibius : panglima.amphibius ->lavali : unknown ->lepturus : lavali.lepturus ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>aitkeni : () => trivirgatus.mixtus, panglima.amphibius>, Symbol(aitkeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 932, 53)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : trivirgatus.mixtus, panglima.amphibius>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 933, 162)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : dauricus, Symbol(dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : peninsulae ->this : peninsulae ->x : trivirgatus.mixtus, panglima.amphibius> +>y : peninsulae, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 933, 316)) +>this : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : trivirgatus.mixtus, panglima.amphibius>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 933, 162)) novaeangliae(): lavali.xanthognathus { var x: lavali.xanthognathus; () => { var y = this; }; return x; } ->novaeangliae : () => lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : lavali.xanthognathus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>novaeangliae : () => lavali.xanthognathus, Symbol(novaeangliae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 933, 341)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 934, 50)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : peninsulae ->this : peninsulae ->x : lavali.xanthognathus +>y : peninsulae, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 934, 87)) +>this : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : lavali.xanthognathus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 934, 50)) olallae(): julianae.sumatrana { var x: julianae.sumatrana; () => { var y = this; }; return x; } ->olallae : () => julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana +>olallae : () => julianae.sumatrana, Symbol(olallae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 934, 112)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 935, 43)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : peninsulae ->this : peninsulae ->x : julianae.sumatrana +>y : peninsulae, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 935, 78)) +>this : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 935, 43)) anselli(): dogramacii.aurata { var x: dogramacii.aurata; () => { var y = this; }; return x; } ->anselli : () => dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata ->x : dogramacii.aurata ->dogramacii : unknown ->aurata : dogramacii.aurata +>anselli : () => dogramacii.aurata, Symbol(anselli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 935, 103)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : dogramacii.aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 936, 42)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : peninsulae ->this : peninsulae ->x : dogramacii.aurata +>y : peninsulae, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 936, 76)) +>this : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : dogramacii.aurata, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 936, 42)) timminsi(): macrorhinos.konganensis { var x: macrorhinos.konganensis; () => { var y = this; }; return x; } ->timminsi : () => macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : macrorhinos.konganensis ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>timminsi : () => macrorhinos.konganensis, Symbol(timminsi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 936, 101)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 937, 49)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : peninsulae ->this : peninsulae ->x : macrorhinos.konganensis +>y : peninsulae, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 937, 89)) +>this : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : macrorhinos.konganensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 937, 49)) sordidus(): rendalli.moojeni { var x: rendalli.moojeni; () => { var y = this; }; return x; } ->sordidus : () => rendalli.moojeni ->rendalli : unknown ->moojeni : rendalli.moojeni ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : rendalli.moojeni ->rendalli : unknown ->moojeni : rendalli.moojeni ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>sordidus : () => rendalli.moojeni, Symbol(sordidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 937, 114)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : rendalli.moojeni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 938, 89)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : peninsulae ->this : peninsulae ->x : rendalli.moojeni +>y : peninsulae, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 938, 169)) +>this : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : rendalli.moojeni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 938, 89)) telfordi(): trivirgatus.oconnelli { var x: trivirgatus.oconnelli; () => { var y = this; }; return x; } ->telfordi : () => trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli ->x : trivirgatus.oconnelli ->trivirgatus : unknown ->oconnelli : trivirgatus.oconnelli +>telfordi : () => trivirgatus.oconnelli, Symbol(telfordi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 938, 194)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 939, 47)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>oconnelli : trivirgatus.oconnelli, Symbol(trivirgatus.oconnelli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 219, 3)) >() => { var y = this; } : () => void ->y : peninsulae ->this : peninsulae ->x : trivirgatus.oconnelli +>y : peninsulae, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 939, 85)) +>this : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : trivirgatus.oconnelli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 939, 47)) cavernarum(): minutus.inez { var x: minutus.inez; () => { var y = this; }; return x; } ->cavernarum : () => minutus.inez ->minutus : unknown ->inez : minutus.inez ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->argurus : unknown ->luctuosa : luctuosa ->x : minutus.inez ->minutus : unknown ->inez : minutus.inez ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->argurus : unknown ->luctuosa : luctuosa +>cavernarum : () => minutus.inez, Symbol(cavernarum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 939, 110)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : luctuosa, Symbol(luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 940, 80)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : luctuosa, Symbol(luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : peninsulae ->this : peninsulae ->x : minutus.inez +>y : peninsulae, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 940, 149)) +>this : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : minutus.inez, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 940, 80)) } } module argurus { ->argurus : typeof argurus +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) export class netscheri { ->netscheri : netscheri ->T0 : T0 ->T1 : T1 +>netscheri : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 944, 27)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 944, 30)) gravis(): nigra.caucasica, dogramacii.kaiseri> { var x: nigra.caucasica, dogramacii.kaiseri>; () => { var y = this; }; return x; } ->gravis : () => nigra.caucasica, dogramacii.kaiseri> ->nigra : unknown ->caucasica : nigra.caucasica ->rendalli : unknown ->crenulata : rendalli.crenulata ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->howi : unknown ->marcanoi : howi.marcanoi ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->x : nigra.caucasica, dogramacii.kaiseri> ->nigra : unknown ->caucasica : nigra.caucasica ->rendalli : unknown ->crenulata : rendalli.crenulata ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->howi : unknown ->marcanoi : howi.marcanoi ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri +>gravis : () => nigra.caucasica, dogramacii.kaiseri>, Symbol(gravis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 944, 36)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>caucasica : nigra.caucasica, Symbol(nigra.caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>x : nigra.caucasica, dogramacii.kaiseri>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 945, 117)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>caucasica : nigra.caucasica, Symbol(nigra.caucasica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 763, 14)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : nigra.caucasica, dogramacii.kaiseri> +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 945, 227)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : nigra.caucasica, dogramacii.kaiseri>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 945, 117)) ruschii(): imperfecta.lasiurus> { var x: imperfecta.lasiurus>; () => { var y = this; }; return x; } ->ruschii : () => imperfecta.lasiurus> ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->howi : unknown ->marcanoi : howi.marcanoi ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->x : imperfecta.lasiurus> ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->howi : unknown ->marcanoi : howi.marcanoi ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->petrophilus : unknown ->minutilla : petrophilus.minutilla +>ruschii : () => imperfecta.lasiurus>, Symbol(ruschii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 945, 252)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>x : imperfecta.lasiurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 946, 127)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : imperfecta.lasiurus> +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 946, 246)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : imperfecta.lasiurus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 946, 127)) tricuspidatus(): lavali.wilsoni { var x: lavali.wilsoni; () => { var y = this; }; return x; } ->tricuspidatus : () => lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni ->x : lavali.wilsoni ->lavali : unknown ->wilsoni : lavali.wilsoni +>tricuspidatus : () => lavali.wilsoni, Symbol(tricuspidatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 946, 271)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 947, 45)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>wilsoni : lavali.wilsoni, Symbol(lavali.wilsoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 253, 15)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : lavali.wilsoni +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 947, 76)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : lavali.wilsoni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 947, 45)) fernandezi(): dammermani.siberu, panglima.abidi> { var x: dammermani.siberu, panglima.abidi>; () => { var y = this; }; return x; } ->fernandezi : () => dammermani.siberu, panglima.abidi> ->dammermani : unknown ->siberu : dammermani.siberu ->nigra : unknown ->thalia : nigra.thalia ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->julianae : unknown ->sumatrana : julianae.sumatrana ->panglima : unknown ->abidi : panglima.abidi ->lutreolus : unknown ->foina : lutreolus.foina ->argurus : unknown ->peninsulae : peninsulae ->x : dammermani.siberu, panglima.abidi> ->dammermani : unknown ->siberu : dammermani.siberu ->nigra : unknown ->thalia : nigra.thalia ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->julianae : unknown ->sumatrana : julianae.sumatrana ->panglima : unknown ->abidi : panglima.abidi ->lutreolus : unknown ->foina : lutreolus.foina ->argurus : unknown ->peninsulae : peninsulae +>fernandezi : () => dammermani.siberu, panglima.abidi>, Symbol(fernandezi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 947, 101)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) +>x : dammermani.siberu, panglima.abidi>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 948, 153)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>nigra : any, Symbol(nigra, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 388, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 475, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 514, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 762, 1)) +>thalia : nigra.thalia, Symbol(nigra.thalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 476, 14)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>peninsulae : peninsulae, Symbol(peninsulae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 931, 16)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : dammermani.siberu, panglima.abidi> +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 948, 295)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : dammermani.siberu, panglima.abidi>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 948, 153)) colletti(): samarensis.pallidus { var x: samarensis.pallidus; () => { var y = this; }; return x; } ->colletti : () => samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus ->x : samarensis.pallidus ->samarensis : unknown ->pallidus : samarensis.pallidus +>colletti : () => samarensis.pallidus, Symbol(colletti, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 948, 320)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 949, 45)) +>samarensis : any, Symbol(samarensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 531, 1)) +>pallidus : samarensis.pallidus, Symbol(samarensis.pallidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 563, 5)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : samarensis.pallidus +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 949, 81)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : samarensis.pallidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 949, 45)) microbullatus(): lutreolus.schlegeli { var x: lutreolus.schlegeli; () => { var y = this; }; return x; } ->microbullatus : () => lutreolus.schlegeli ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli ->x : lutreolus.schlegeli ->lutreolus : unknown ->schlegeli : lutreolus.schlegeli +>microbullatus : () => lutreolus.schlegeli, Symbol(microbullatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 949, 106)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) +>x : lutreolus.schlegeli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 950, 50)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>schlegeli : lutreolus.schlegeli, Symbol(lutreolus.schlegeli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 356, 18)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : lutreolus.schlegeli +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 950, 86)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : lutreolus.schlegeli, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 950, 50)) eburneae(): chrysaeolus.sarasinorum { var x: chrysaeolus.sarasinorum; () => { var y = this; }; return x; } ->eburneae : () => chrysaeolus.sarasinorum ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->julianae : unknown ->acariensis : julianae.acariensis ->x : chrysaeolus.sarasinorum ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->julianae : unknown ->acariensis : julianae.acariensis +>eburneae : () => chrysaeolus.sarasinorum, Symbol(eburneae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 950, 111)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : chrysaeolus.sarasinorum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 951, 95)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : chrysaeolus.sarasinorum +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 951, 181)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : chrysaeolus.sarasinorum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 951, 95)) tatei(): argurus.pygmaea> { var x: argurus.pygmaea>; () => { var y = this; }; return x; } ->tatei : () => pygmaea> ->argurus : unknown ->pygmaea : pygmaea ->argurus : unknown ->oreas : oreas ->panglima : unknown ->fundatus : panglima.fundatus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->x : pygmaea> ->argurus : unknown ->pygmaea : pygmaea ->argurus : unknown ->oreas : oreas ->panglima : unknown ->fundatus : panglima.fundatus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon +>tatei : () => pygmaea>, Symbol(tatei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 951, 206)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>pygmaea : pygmaea, Symbol(pygmaea, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 596, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>x : pygmaea>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 952, 121)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>pygmaea : pygmaea, Symbol(pygmaea, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 596, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : oreas, Symbol(oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : pygmaea> +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 952, 236)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : pygmaea>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 952, 121)) millardi(): sagitta.walkeri { var x: sagitta.walkeri; () => { var y = this; }; return x; } ->millardi : () => sagitta.walkeri ->sagitta : unknown ->walkeri : sagitta.walkeri ->x : sagitta.walkeri ->sagitta : unknown ->walkeri : sagitta.walkeri +>millardi : () => sagitta.walkeri, Symbol(millardi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 952, 261)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>x : sagitta.walkeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 953, 41)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : sagitta.walkeri +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 953, 73)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : sagitta.walkeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 953, 41)) pruinosus(): trivirgatus.falconeri { var x: trivirgatus.falconeri; () => { var y = this; }; return x; } ->pruinosus : () => trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->x : trivirgatus.falconeri ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri +>pruinosus : () => trivirgatus.falconeri, Symbol(pruinosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 953, 98)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 954, 48)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : trivirgatus.falconeri +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 954, 86)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : trivirgatus.falconeri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 954, 48)) delator(): argurus.netscheri { var x: argurus.netscheri; () => { var y = this; }; return x; } ->delator : () => netscheri ->argurus : unknown ->netscheri : netscheri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->lavali : unknown ->lepturus : lavali.lepturus ->x : netscheri ->argurus : unknown ->netscheri : netscheri ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->lavali : unknown ->lepturus : lavali.lepturus +>delator : () => netscheri, Symbol(delator, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 954, 111)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : netscheri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 955, 79)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : netscheri +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 955, 150)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : netscheri, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 955, 79)) nyikae(): trivirgatus.tumidifrons, petrophilus.minutilla>, julianae.acariensis> { var x: trivirgatus.tumidifrons, petrophilus.minutilla>, julianae.acariensis>; () => { var y = this; }; return x; } ->nyikae : () => trivirgatus.tumidifrons, petrophilus.minutilla>, julianae.acariensis> ->trivirgatus : unknown ->tumidifrons : trivirgatus.tumidifrons ->howi : unknown ->angulatus : howi.angulatus ->howi : unknown ->coludo : howi.coludo ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->minutus : unknown ->portoricensis : minutus.portoricensis ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->julianae : unknown ->acariensis : julianae.acariensis ->x : trivirgatus.tumidifrons, petrophilus.minutilla>, julianae.acariensis> ->trivirgatus : unknown ->tumidifrons : trivirgatus.tumidifrons ->howi : unknown ->angulatus : howi.angulatus ->howi : unknown ->coludo : howi.coludo ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->minutus : unknown ->portoricensis : minutus.portoricensis ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->julianae : unknown ->acariensis : julianae.acariensis +>nyikae : () => trivirgatus.tumidifrons, petrophilus.minutilla>, julianae.acariensis>, Symbol(nyikae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 955, 175)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>tumidifrons : trivirgatus.tumidifrons, Symbol(trivirgatus.tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : trivirgatus.tumidifrons, petrophilus.minutilla>, julianae.acariensis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 956, 167)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>tumidifrons : trivirgatus.tumidifrons, Symbol(trivirgatus.tumidifrons, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 187, 20)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>angulatus : howi.angulatus, Symbol(howi.angulatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 467, 13)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : trivirgatus.tumidifrons, petrophilus.minutilla>, julianae.acariensis> +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 956, 327)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : trivirgatus.tumidifrons, petrophilus.minutilla>, julianae.acariensis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 956, 167)) ruemmleri(): panglima.amphibius, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum> { var x: panglima.amphibius, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum>; () => { var y = this; }; return x; } ->ruemmleri : () => panglima.amphibius, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum> ->panglima : unknown ->amphibius : panglima.amphibius ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->dogramacii : unknown ->aurata : dogramacii.aurata ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->beisa : lavali.beisa ->x : panglima.amphibius, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum> ->panglima : unknown ->amphibius : panglima.amphibius ->minutus : unknown ->inez : minutus.inez ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->dogramacii : unknown ->aurata : dogramacii.aurata ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->beisa : lavali.beisa +>ruemmleri : () => panglima.amphibius, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum>, Symbol(ruemmleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 956, 352)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : panglima.amphibius, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 957, 242)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : netscheri ->this : netscheri ->x : panglima.amphibius, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum> +>y : netscheri, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 957, 474)) +>this : netscheri, Symbol(netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>x : panglima.amphibius, gabriellae.echinatus>, dogramacii.aurata>, imperfecta.ciliolabrum>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 957, 242)) } } module ruatanica { ->ruatanica : typeof ruatanica +>ruatanica : typeof ruatanica, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) export class Praseodymium extends ruatanica.hector { ->Praseodymium : Praseodymium ->T0 : T0 ->T1 : T1 ->ruatanica : typeof ruatanica ->hector : hector ->lutreolus : unknown ->punicus : lutreolus.punicus ->gabriellae : unknown ->amicus : gabriellae.amicus +>Praseodymium : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 961, 30)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 961, 33)) +>ruatanica.hector : any, Symbol(hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>ruatanica : typeof ruatanica, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>hector : hector, Symbol(hector, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 101, 18)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) clara(): panglima.amphibius, argurus.dauricus> { var x: panglima.amphibius, argurus.dauricus>; () => { var y = this; }; return x; } ->clara : () => panglima.amphibius, argurus.dauricus> ->panglima : unknown ->amphibius : panglima.amphibius ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->beisa : lavali.beisa ->argurus : unknown ->dauricus : argurus.dauricus ->ruatanica : unknown ->americanus : americanus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->x : panglima.amphibius, argurus.dauricus> ->panglima : unknown ->amphibius : panglima.amphibius ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->beisa : lavali.beisa ->argurus : unknown ->dauricus : argurus.dauricus ->ruatanica : unknown ->americanus : americanus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer +>clara : () => panglima.amphibius, argurus.dauricus>, Symbol(clara, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 961, 102)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : americanus, Symbol(americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>x : panglima.amphibius, argurus.dauricus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 962, 168)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>americanus : americanus, Symbol(americanus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 245, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : panglima.amphibius, argurus.dauricus> +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 962, 330)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : panglima.amphibius, argurus.dauricus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 962, 168)) spectabilis(): petrophilus.sodyi { var x: petrophilus.sodyi; () => { var y = this; }; return x; } ->spectabilis : () => petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>spectabilis : () => petrophilus.sodyi, Symbol(spectabilis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 962, 355)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 963, 95)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : petrophilus.sodyi +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 963, 178)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 963, 95)) kamensis(): trivirgatus.lotor, lavali.lepturus> { var x: trivirgatus.lotor, lavali.lepturus>; () => { var y = this; }; return x; } ->kamensis : () => trivirgatus.lotor, lavali.lepturus> ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->panamensis : unknown ->linulus : panamensis.linulus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->minutus : unknown ->portoricensis : minutus.portoricensis ->lavali : unknown ->lepturus : lavali.lepturus ->x : trivirgatus.lotor, lavali.lepturus> ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->panamensis : unknown ->linulus : panamensis.linulus ->dogramacii : unknown ->kaiseri : dogramacii.kaiseri ->minutus : unknown ->portoricensis : minutus.portoricensis ->lavali : unknown ->lepturus : lavali.lepturus +>kamensis : () => trivirgatus.lotor, lavali.lepturus>, Symbol(kamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 963, 203)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : trivirgatus.lotor, lavali.lepturus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 964, 123)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>kaiseri : dogramacii.kaiseri, Symbol(dogramacii.kaiseri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 329, 3)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>portoricensis : minutus.portoricensis, Symbol(minutus.portoricensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 849, 16)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : trivirgatus.lotor, lavali.lepturus> +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 964, 237)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : trivirgatus.lotor, lavali.lepturus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 964, 123)) ruddi(): lutreolus.foina { var x: lutreolus.foina; () => { var y = this; }; return x; } ->ruddi : () => lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina ->x : lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina +>ruddi : () => lutreolus.foina, Symbol(ruddi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 964, 262)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : lutreolus.foina, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 965, 38)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : lutreolus.foina +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 965, 70)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : lutreolus.foina, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 965, 38)) bartelsii(): julianae.sumatrana { var x: julianae.sumatrana; () => { var y = this; }; return x; } ->bartelsii : () => julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana ->x : julianae.sumatrana ->julianae : unknown ->sumatrana : julianae.sumatrana +>bartelsii : () => julianae.sumatrana, Symbol(bartelsii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 965, 95)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 966, 45)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>sumatrana : julianae.sumatrana, Symbol(julianae.sumatrana, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 58, 3)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : julianae.sumatrana +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 966, 80)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : julianae.sumatrana, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 966, 45)) yerbabuenae(): dammermani.siberu, imperfecta.ciliolabrum> { var x: dammermani.siberu, imperfecta.ciliolabrum>; () => { var y = this; }; return x; } ->yerbabuenae : () => dammermani.siberu, imperfecta.ciliolabrum> ->dammermani : unknown ->siberu : dammermani.siberu ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->lutreolus : unknown ->foina : lutreolus.foina ->dammermani : unknown ->melanops : dammermani.melanops ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->petrophilus : unknown ->minutilla : petrophilus.minutilla ->x : dammermani.siberu, imperfecta.ciliolabrum> ->dammermani : unknown ->siberu : dammermani.siberu ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->lutreolus : unknown ->foina : lutreolus.foina ->dammermani : unknown ->melanops : dammermani.melanops ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->petrophilus : unknown ->minutilla : petrophilus.minutilla +>yerbabuenae : () => dammermani.siberu, imperfecta.ciliolabrum>, Symbol(yerbabuenae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 966, 105)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) +>x : dammermani.siberu, imperfecta.ciliolabrum>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 967, 173)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>siberu : dammermani.siberu, Symbol(dammermani.siberu, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 592, 19)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>minutilla : petrophilus.minutilla, Symbol(petrophilus.minutilla, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 716, 20)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : dammermani.siberu, imperfecta.ciliolabrum> +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 967, 334)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : dammermani.siberu, imperfecta.ciliolabrum>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 967, 173)) davidi(): trivirgatus.mixtus { var x: trivirgatus.mixtus; () => { var y = this; }; return x; } ->davidi : () => trivirgatus.mixtus ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : trivirgatus.mixtus ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>davidi : () => trivirgatus.mixtus, Symbol(davidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 967, 359)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : trivirgatus.mixtus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 968, 84)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : trivirgatus.mixtus +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 968, 161)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : trivirgatus.mixtus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 968, 84)) pilirostris(): argurus.wetmorei>, sagitta.leptoceros>>, macrorhinos.konganensis> { var x: argurus.wetmorei>, sagitta.leptoceros>>, macrorhinos.konganensis>; () => { var y = this; }; return x; } ->pilirostris : () => argurus.wetmorei>, sagitta.leptoceros>>, macrorhinos.konganensis> ->argurus : unknown ->wetmorei : argurus.wetmorei ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->panglima : unknown ->amphibius : panglima.amphibius ->patas : unknown ->uralensis : patas.uralensis ->gabriellae : unknown ->klossii : gabriellae.klossii ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata ->sagitta : unknown ->leptoceros : sagitta.leptoceros ->lutreolus : unknown ->punicus : lutreolus.punicus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->x : argurus.wetmorei>, sagitta.leptoceros>>, macrorhinos.konganensis> ->argurus : unknown ->wetmorei : argurus.wetmorei ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->panglima : unknown ->amphibius : panglima.amphibius ->patas : unknown ->uralensis : patas.uralensis ->gabriellae : unknown ->klossii : gabriellae.klossii ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->dogramacii : unknown ->aurata : dogramacii.aurata ->sagitta : unknown ->leptoceros : sagitta.leptoceros ->lutreolus : unknown ->punicus : lutreolus.punicus ->daubentonii : unknown ->arboreus : daubentonii.arboreus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis +>pilirostris : () => argurus.wetmorei>, sagitta.leptoceros>>, macrorhinos.konganensis>, Symbol(pilirostris, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 968, 186)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>wetmorei : argurus.wetmorei, Symbol(argurus.wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>leptoceros : sagitta.leptoceros, Symbol(sagitta.leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>x : argurus.wetmorei>, sagitta.leptoceros>>, macrorhinos.konganensis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 969, 298)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>wetmorei : argurus.wetmorei, Symbol(argurus.wetmorei, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 614, 16)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>klossii : gabriellae.klossii, Symbol(gabriellae.klossii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 767, 19)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>leptoceros : sagitta.leptoceros, Symbol(sagitta.leptoceros, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 578, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>arboreus : daubentonii.arboreus, Symbol(daubentonii.arboreus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 637, 20)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : argurus.wetmorei>, sagitta.leptoceros>>, macrorhinos.konganensis> +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 969, 584)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : argurus.wetmorei>, sagitta.leptoceros>>, macrorhinos.konganensis>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 969, 298)) catherinae(): imperfecta.lasiurus, petrophilus.sodyi> { var x: imperfecta.lasiurus, petrophilus.sodyi>; () => { var y = this; }; return x; } ->catherinae : () => imperfecta.lasiurus, petrophilus.sodyi> ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->howi : unknown ->marcanoi : howi.marcanoi ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->caurinus : unknown ->psilurus : caurinus.psilurus ->x : imperfecta.lasiurus, petrophilus.sodyi> ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->howi : unknown ->marcanoi : howi.marcanoi ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->macrorhinos : unknown ->konganensis : macrorhinos.konganensis ->caurinus : unknown ->psilurus : caurinus.psilurus +>catherinae : () => imperfecta.lasiurus, petrophilus.sodyi>, Symbol(catherinae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 969, 609)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : imperfecta.lasiurus, petrophilus.sodyi>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 970, 169)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>konganensis : macrorhinos.konganensis, Symbol(macrorhinos.konganensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 498, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : imperfecta.lasiurus, petrophilus.sodyi> +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 970, 327)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : imperfecta.lasiurus, petrophilus.sodyi>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 970, 169)) frontata(): argurus.oreas { var x: argurus.oreas; () => { var y = this; }; return x; } ->frontata : () => argurus.oreas ->argurus : unknown ->oreas : argurus.oreas ->x : argurus.oreas ->argurus : unknown ->oreas : argurus.oreas +>frontata : () => argurus.oreas, Symbol(frontata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 970, 352)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 971, 39)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : argurus.oreas +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 971, 69)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : argurus.oreas, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 971, 39)) Terbium(): caurinus.mahaganus { var x: caurinus.mahaganus; () => { var y = this; }; return x; } ->Terbium : () => caurinus.mahaganus ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : caurinus.mahaganus ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->julianae : unknown ->galapagoensis : julianae.galapagoensis ->argurus : unknown ->luctuosa : argurus.luctuosa +>Terbium : () => caurinus.mahaganus, Symbol(Terbium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 971, 94)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : caurinus.mahaganus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 972, 85)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>galapagoensis : julianae.galapagoensis, Symbol(julianae.galapagoensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 25, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : caurinus.mahaganus +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 972, 162)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : caurinus.mahaganus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 972, 85)) thomensis(): minutus.inez> { var x: minutus.inez>; () => { var y = this; }; return x; } ->thomensis : () => minutus.inez> ->minutus : unknown ->inez : minutus.inez ->argurus : unknown ->oreas : argurus.oreas ->julianae : unknown ->albidens : julianae.albidens ->argurus : unknown ->luctuosa : argurus.luctuosa ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->x : minutus.inez> ->minutus : unknown ->inez : minutus.inez ->argurus : unknown ->oreas : argurus.oreas ->julianae : unknown ->albidens : julianae.albidens ->argurus : unknown ->luctuosa : argurus.luctuosa ->gabriellae : unknown ->echinatus : gabriellae.echinatus +>thomensis : () => minutus.inez>, Symbol(thomensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 972, 187)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>x : minutus.inez>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 973, 113)) +>minutus : any, Symbol(minutus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 433, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 492, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 848, 1)) +>inez : minutus.inez, Symbol(minutus.inez, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 493, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>albidens : julianae.albidens, Symbol(julianae.albidens, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 34, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : minutus.inez> +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 973, 216)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : minutus.inez>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 973, 113)) soricinus(): quasiater.carolinensis { var x: quasiater.carolinensis; () => { var y = this; }; return x; } ->soricinus : () => quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : quasiater.carolinensis ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>soricinus : () => quasiater.carolinensis, Symbol(soricinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 973, 241)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 974, 49)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : Praseodymium ->this : Praseodymium ->x : quasiater.carolinensis +>y : Praseodymium, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 974, 88)) +>this : Praseodymium, Symbol(Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>x : quasiater.carolinensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 974, 49)) } } module caurinus { ->caurinus : typeof caurinus +>caurinus : typeof caurinus, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) export class johorensis extends lutreolus.punicus { ->johorensis : johorensis ->T0 : T0 ->T1 : T1 ->lutreolus : typeof lutreolus ->punicus : lutreolus.punicus +>johorensis : johorensis, Symbol(johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 978, 28)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 978, 31)) +>lutreolus.punicus : any, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>lutreolus : typeof lutreolus, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) maini(): ruatanica.Praseodymium { var x: ruatanica.Praseodymium; () => { var y = this; }; return x; } ->maini : () => ruatanica.Praseodymium ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->lavali : unknown ->thaeleri : lavali.thaeleri ->julianae : unknown ->acariensis : julianae.acariensis ->x : ruatanica.Praseodymium ->ruatanica : unknown ->Praseodymium : ruatanica.Praseodymium ->lavali : unknown ->thaeleri : lavali.thaeleri ->julianae : unknown ->acariensis : julianae.acariensis +>maini : () => ruatanica.Praseodymium, Symbol(maini, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 978, 63)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) +>x : ruatanica.Praseodymium, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 979, 83)) +>ruatanica : any, Symbol(ruatanica, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 100, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 244, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 959, 1)) +>Praseodymium : ruatanica.Praseodymium, Symbol(ruatanica.Praseodymium, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 960, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>acariensis : julianae.acariensis, Symbol(julianae.acariensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 80, 3)) >() => { var y = this; } : () => void ->y : johorensis ->this : johorensis ->x : ruatanica.Praseodymium +>y : johorensis, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 979, 160)) +>this : johorensis, Symbol(johorensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 977, 17)) +>x : ruatanica.Praseodymium, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 979, 83)) } } module argurus { ->argurus : typeof argurus +>argurus : typeof argurus, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) export class luctuosa { ->luctuosa : luctuosa +>luctuosa : luctuosa, Symbol(luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) loriae(): rendalli.moojeni, gabriellae.echinatus>, sagitta.stolzmanni>, lutreolus.punicus> { var x: rendalli.moojeni, gabriellae.echinatus>, sagitta.stolzmanni>, lutreolus.punicus>; () => { var y = this; }; return x; } ->loriae : () => rendalli.moojeni, gabriellae.echinatus>, sagitta.stolzmanni>, lutreolus.punicus> ->rendalli : unknown ->moojeni : rendalli.moojeni ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : rendalli.moojeni, gabriellae.echinatus>, sagitta.stolzmanni>, lutreolus.punicus> ->rendalli : unknown ->moojeni : rendalli.moojeni ->macrorhinos : unknown ->marmosurus : macrorhinos.marmosurus ->rendalli : unknown ->moojeni : rendalli.moojeni ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : caurinus.psilurus ->gabriellae : unknown ->echinatus : gabriellae.echinatus ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->lutreolus : unknown ->punicus : lutreolus.punicus +>loriae : () => rendalli.moojeni, gabriellae.echinatus>, sagitta.stolzmanni>, lutreolus.punicus>, Symbol(loriae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 983, 27)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : rendalli.moojeni, gabriellae.echinatus>, sagitta.stolzmanni>, lutreolus.punicus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 984, 205)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>marmosurus : macrorhinos.marmosurus, Symbol(macrorhinos.marmosurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 462, 20)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>moojeni : rendalli.moojeni, Symbol(rendalli.moojeni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 168, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>echinatus : gabriellae.echinatus, Symbol(gabriellae.echinatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 781, 5)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : luctuosa ->this : luctuosa ->x : rendalli.moojeni, gabriellae.echinatus>, sagitta.stolzmanni>, lutreolus.punicus> +>y : luctuosa, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 984, 403)) +>this : luctuosa, Symbol(luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : rendalli.moojeni, gabriellae.echinatus>, sagitta.stolzmanni>, lutreolus.punicus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 984, 205)) } } module panamensis { ->panamensis : typeof panamensis +>panamensis : typeof panamensis, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) export class setulosus { ->setulosus : setulosus ->T0 : T0 ->T1 : T1 +>setulosus : setulosus, Symbol(setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 988, 27)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 988, 30)) duthieae(): caurinus.mahaganus, dogramacii.aurata> { var x: caurinus.mahaganus, dogramacii.aurata>; () => { var y = this; }; return x; } ->duthieae : () => caurinus.mahaganus, dogramacii.aurata> ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->howi : unknown ->coludo : howi.coludo ->argurus : unknown ->oreas : argurus.oreas ->howi : unknown ->marcanoi : howi.marcanoi ->dogramacii : unknown ->aurata : dogramacii.aurata ->x : caurinus.mahaganus, dogramacii.aurata> ->caurinus : unknown ->mahaganus : caurinus.mahaganus ->howi : unknown ->coludo : howi.coludo ->argurus : unknown ->oreas : argurus.oreas ->howi : unknown ->marcanoi : howi.marcanoi ->dogramacii : unknown ->aurata : dogramacii.aurata +>duthieae : () => caurinus.mahaganus, dogramacii.aurata>, Symbol(duthieae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 988, 36)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>x : caurinus.mahaganus, dogramacii.aurata>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 989, 106)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>mahaganus : caurinus.mahaganus, Symbol(caurinus.mahaganus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 450, 17)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>oreas : argurus.oreas, Symbol(argurus.oreas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 625, 16)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) >() => { var y = this; } : () => void ->y : setulosus ->this : setulosus ->x : caurinus.mahaganus, dogramacii.aurata> +>y : setulosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 989, 203)) +>this : setulosus, Symbol(setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>x : caurinus.mahaganus, dogramacii.aurata>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 989, 106)) guereza(): howi.coludo { var x: howi.coludo; () => { var y = this; }; return x; } ->guereza : () => howi.coludo ->howi : unknown ->coludo : howi.coludo ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : howi.coludo ->howi : unknown ->coludo : howi.coludo ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>guereza : () => howi.coludo, Symbol(guereza, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 989, 228)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 990, 80)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : setulosus ->this : setulosus ->x : howi.coludo +>y : setulosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 990, 152)) +>this : setulosus, Symbol(setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>x : howi.coludo, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 990, 80)) buselaphus(): daubentonii.nesiotes, dogramacii.koepckeae>, trivirgatus.mixtus> { var x: daubentonii.nesiotes, dogramacii.koepckeae>, trivirgatus.mixtus>; () => { var y = this; }; return x; } ->buselaphus : () => daubentonii.nesiotes, dogramacii.koepckeae>, trivirgatus.mixtus> ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->panglima : unknown ->abidi : panglima.abidi ->lavali : unknown ->lepturus : lavali.lepturus ->caurinus : unknown ->psilurus : caurinus.psilurus ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->punicus : lutreolus.punicus ->x : daubentonii.nesiotes, dogramacii.koepckeae>, trivirgatus.mixtus> ->daubentonii : unknown ->nesiotes : daubentonii.nesiotes ->trivirgatus : unknown ->lotor : trivirgatus.lotor ->panglima : unknown ->abidi : panglima.abidi ->lavali : unknown ->lepturus : lavali.lepturus ->caurinus : unknown ->psilurus : caurinus.psilurus ->dogramacii : unknown ->koepckeae : dogramacii.koepckeae ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->punicus : lutreolus.punicus +>buselaphus : () => daubentonii.nesiotes, dogramacii.koepckeae>, trivirgatus.mixtus>, Symbol(buselaphus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 990, 177)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>x : daubentonii.nesiotes, dogramacii.koepckeae>, trivirgatus.mixtus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 991, 199)) +>daubentonii : any, Symbol(daubentonii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 471, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 586, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 636, 1)) +>nesiotes : daubentonii.nesiotes, Symbol(daubentonii.nesiotes, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 472, 20)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>lotor : trivirgatus.lotor, Symbol(trivirgatus.lotor, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 206, 3)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>abidi : panglima.abidi, Symbol(panglima.abidi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 414, 5)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : caurinus.psilurus, Symbol(caurinus.psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>koepckeae : dogramacii.koepckeae, Symbol(dogramacii.koepckeae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 326, 3)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) >() => { var y = this; } : () => void ->y : setulosus ->this : setulosus ->x : daubentonii.nesiotes, dogramacii.koepckeae>, trivirgatus.mixtus> +>y : setulosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 991, 387)) +>this : setulosus, Symbol(setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>x : daubentonii.nesiotes, dogramacii.koepckeae>, trivirgatus.mixtus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 991, 199)) nuttalli(): sagitta.cinereus, chrysaeolus.sarasinorum> { var x: sagitta.cinereus, chrysaeolus.sarasinorum>; () => { var y = this; }; return x; } ->nuttalli : () => sagitta.cinereus, chrysaeolus.sarasinorum> ->sagitta : unknown ->cinereus : sagitta.cinereus ->argurus : unknown ->netscheri : argurus.netscheri ->argurus : unknown ->luctuosa : argurus.luctuosa ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->xanthognathus : lavali.xanthognathus ->x : sagitta.cinereus, chrysaeolus.sarasinorum> ->sagitta : unknown ->cinereus : sagitta.cinereus ->argurus : unknown ->netscheri : argurus.netscheri ->argurus : unknown ->luctuosa : argurus.luctuosa ->julianae : unknown ->nudicaudus : julianae.nudicaudus ->chrysaeolus : unknown ->sarasinorum : chrysaeolus.sarasinorum ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->lavali : unknown ->xanthognathus : lavali.xanthognathus +>nuttalli : () => sagitta.cinereus, chrysaeolus.sarasinorum>, Symbol(nuttalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 991, 412)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) +>x : sagitta.cinereus, chrysaeolus.sarasinorum>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 992, 169)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>cinereus : sagitta.cinereus, Symbol(sagitta.cinereus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 747, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>netscheri : argurus.netscheri, Symbol(argurus.netscheri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 943, 16)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>nudicaudus : julianae.nudicaudus, Symbol(julianae.nudicaudus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 18, 3)) +>chrysaeolus : any, Symbol(chrysaeolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 602, 1)) +>sarasinorum : chrysaeolus.sarasinorum, Symbol(chrysaeolus.sarasinorum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 603, 20)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>xanthognathus : lavali.xanthognathus, Symbol(lavali.xanthognathus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 285, 3)) >() => { var y = this; } : () => void ->y : setulosus ->this : setulosus ->x : sagitta.cinereus, chrysaeolus.sarasinorum> +>y : setulosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 992, 329)) +>this : setulosus, Symbol(setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>x : sagitta.cinereus, chrysaeolus.sarasinorum>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 992, 169)) pelii(): rendalli.crenulata, julianae.steerii> { var x: rendalli.crenulata, julianae.steerii>; () => { var y = this; }; return x; } ->pelii : () => rendalli.crenulata, julianae.steerii> ->rendalli : unknown ->crenulata : rendalli.crenulata ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->julianae : unknown ->steerii : julianae.steerii ->x : rendalli.crenulata, julianae.steerii> ->rendalli : unknown ->crenulata : rendalli.crenulata ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->rionegrensis : unknown ->caniventer : rionegrensis.caniventer ->Lanthanum : unknown ->jugularis : Lanthanum.jugularis ->julianae : unknown ->steerii : julianae.steerii +>pelii : () => rendalli.crenulata, julianae.steerii>, Symbol(pelii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 992, 354)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) +>x : rendalli.crenulata, julianae.steerii>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 993, 124)) +>rendalli : any, Symbol(rendalli, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 151, 1)) +>crenulata : rendalli.crenulata, Symbol(rendalli.crenulata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 180, 3)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>rionegrensis : any, Symbol(rionegrensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 0)) +>caniventer : rionegrensis.caniventer, Symbol(rionegrensis.caniventer, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 0, 21)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>jugularis : Lanthanum.jugularis, Symbol(Lanthanum.jugularis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 134, 3)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>steerii : julianae.steerii, Symbol(julianae.steerii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 16, 17)) >() => { var y = this; } : () => void ->y : setulosus ->this : setulosus ->x : rendalli.crenulata, julianae.steerii> +>y : setulosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 993, 242)) +>this : setulosus, Symbol(setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>x : rendalli.crenulata, julianae.steerii>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 993, 124)) tunneyi(): sagitta.stolzmanni { var x: sagitta.stolzmanni; () => { var y = this; }; return x; } ->tunneyi : () => sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni ->x : sagitta.stolzmanni ->sagitta : unknown ->stolzmanni : sagitta.stolzmanni +>tunneyi : () => sagitta.stolzmanni, Symbol(tunneyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 993, 267)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 994, 43)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>stolzmanni : sagitta.stolzmanni, Symbol(sagitta.stolzmanni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 899, 16)) >() => { var y = this; } : () => void ->y : setulosus ->this : setulosus ->x : sagitta.stolzmanni +>y : setulosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 994, 78)) +>this : setulosus, Symbol(setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>x : sagitta.stolzmanni, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 994, 43)) lamula(): patas.uralensis { var x: patas.uralensis; () => { var y = this; }; return x; } ->lamula : () => patas.uralensis ->patas : unknown ->uralensis : patas.uralensis ->x : patas.uralensis ->patas : unknown ->uralensis : patas.uralensis +>lamula : () => patas.uralensis, Symbol(lamula, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 994, 103)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>x : patas.uralensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 995, 39)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) >() => { var y = this; } : () => void ->y : setulosus ->this : setulosus ->x : patas.uralensis +>y : setulosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 995, 71)) +>this : setulosus, Symbol(setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>x : patas.uralensis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 995, 39)) vampyrus(): julianae.oralis { var x: julianae.oralis; () => { var y = this; }; return x; } ->vampyrus : () => julianae.oralis ->julianae : unknown ->oralis : julianae.oralis ->lutreolus : unknown ->foina : lutreolus.foina ->provocax : unknown ->melanoleuca : provocax.melanoleuca ->x : julianae.oralis ->julianae : unknown ->oralis : julianae.oralis ->lutreolus : unknown ->foina : lutreolus.foina ->provocax : unknown ->melanoleuca : provocax.melanoleuca +>vampyrus : () => julianae.oralis, Symbol(vampyrus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 995, 96)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) +>x : julianae.oralis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 996, 80)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>oralis : julianae.oralis, Symbol(julianae.oralis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 43, 3)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>provocax : any, Symbol(provocax, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 669, 1)) +>melanoleuca : provocax.melanoleuca, Symbol(provocax.melanoleuca, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 670, 17)) >() => { var y = this; } : () => void ->y : setulosus ->this : setulosus ->x : julianae.oralis +>y : setulosus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 996, 151)) +>this : setulosus, Symbol(setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>x : julianae.oralis, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 996, 80)) } } module petrophilus { ->petrophilus : typeof petrophilus +>petrophilus : typeof petrophilus, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) export class rosalia { ->rosalia : rosalia ->T0 : T0 ->T1 : T1 +>rosalia : rosalia, Symbol(rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>T0 : T0, Symbol(T0, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1000, 25)) +>T1 : T1, Symbol(T1, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1000, 28)) palmeri(): panglima.amphibius>, trivirgatus.mixtus, panglima.amphibius>> { var x: panglima.amphibius>, trivirgatus.mixtus, panglima.amphibius>>; () => { var y = this; }; return x; } ->palmeri : () => panglima.amphibius>, trivirgatus.mixtus, panglima.amphibius>> ->panglima : unknown ->amphibius : panglima.amphibius ->howi : unknown ->coludo : howi.coludo ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->panglima : unknown ->amphibius : panglima.amphibius ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->patas : unknown ->uralensis : patas.uralensis ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->argurus : unknown ->dauricus : argurus.dauricus ->dogramacii : unknown ->aurata : dogramacii.aurata ->dammermani : unknown ->melanops : dammermani.melanops ->panglima : unknown ->amphibius : panglima.amphibius ->lavali : unknown ->lepturus : lavali.lepturus ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : panglima.amphibius>, trivirgatus.mixtus, panglima.amphibius>> ->panglima : unknown ->amphibius : panglima.amphibius ->howi : unknown ->coludo : howi.coludo ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->panglima : unknown ->amphibius : panglima.amphibius ->macrorhinos : unknown ->daphaenodon : macrorhinos.daphaenodon ->patas : unknown ->uralensis : patas.uralensis ->trivirgatus : unknown ->mixtus : trivirgatus.mixtus ->argurus : unknown ->dauricus : argurus.dauricus ->dogramacii : unknown ->aurata : dogramacii.aurata ->dammermani : unknown ->melanops : dammermani.melanops ->panglima : unknown ->amphibius : panglima.amphibius ->lavali : unknown ->lepturus : lavali.lepturus ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>palmeri : () => panglima.amphibius>, trivirgatus.mixtus, panglima.amphibius>>, Symbol(palmeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1000, 34)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : panglima.amphibius>, trivirgatus.mixtus, panglima.amphibius>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1001, 282)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>coludo : howi.coludo, Symbol(howi.coludo, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 887, 13)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>macrorhinos : any, Symbol(macrorhinos, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 461, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 497, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 736, 1)) +>daphaenodon : macrorhinos.daphaenodon, Symbol(macrorhinos.daphaenodon, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 737, 20)) +>patas : any, Symbol(patas, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 652, 1)) +>uralensis : patas.uralensis, Symbol(patas.uralensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 653, 14)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>mixtus : trivirgatus.mixtus, Symbol(trivirgatus.mixtus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 197, 3)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>dauricus : argurus.dauricus, Symbol(argurus.dauricus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 374, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>aurata : dogramacii.aurata, Symbol(dogramacii.aurata, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 344, 3)) +>dammermani : any, Symbol(dammermani, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 591, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 913, 1)) +>melanops : dammermani.melanops, Symbol(dammermani.melanops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 914, 19)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : rosalia ->this : rosalia ->x : panglima.amphibius>, trivirgatus.mixtus, panglima.amphibius>> +>y : rosalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1001, 556)) +>this : rosalia, Symbol(rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>x : panglima.amphibius>, trivirgatus.mixtus, panglima.amphibius>>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1001, 282)) baeops(): Lanthanum.nitidus { var x: Lanthanum.nitidus; () => { var y = this; }; return x; } ->baeops : () => Lanthanum.nitidus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->lavali : unknown ->thaeleri : lavali.thaeleri ->lavali : unknown ->lepturus : lavali.lepturus ->x : Lanthanum.nitidus ->Lanthanum : unknown ->nitidus : Lanthanum.nitidus ->lavali : unknown ->thaeleri : lavali.thaeleri ->lavali : unknown ->lepturus : lavali.lepturus +>baeops : () => Lanthanum.nitidus, Symbol(baeops, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1001, 581)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) +>x : Lanthanum.nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1002, 75)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>nitidus : Lanthanum.nitidus, Symbol(Lanthanum.nitidus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 112, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>lepturus : lavali.lepturus, Symbol(lavali.lepturus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 309, 3)) >() => { var y = this; } : () => void ->y : rosalia ->this : rosalia ->x : Lanthanum.nitidus +>y : rosalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1002, 143)) +>this : rosalia, Symbol(rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>x : Lanthanum.nitidus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1002, 75)) ozensis(): imperfecta.lasiurus, lutreolus.foina> { var x: imperfecta.lasiurus, lutreolus.foina>; () => { var y = this; }; return x; } ->ozensis : () => imperfecta.lasiurus, lutreolus.foina> ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->panglima : unknown ->fundatus : panglima.fundatus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->foina : lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina ->x : imperfecta.lasiurus, lutreolus.foina> ->imperfecta : unknown ->lasiurus : imperfecta.lasiurus ->panglima : unknown ->fundatus : panglima.fundatus ->gabriellae : unknown ->amicus : gabriellae.amicus ->lutreolus : unknown ->foina : lutreolus.foina ->lutreolus : unknown ->foina : lutreolus.foina +>ozensis : () => imperfecta.lasiurus, lutreolus.foina>, Symbol(ozensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1002, 168)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>x : imperfecta.lasiurus, lutreolus.foina>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1003, 116)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>lasiurus : imperfecta.lasiurus, Symbol(imperfecta.lasiurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 786, 19)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>fundatus : panglima.fundatus, Symbol(panglima.fundatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 409, 5)) +>gabriellae : any, Symbol(gabriellae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 766, 1)) +>amicus : gabriellae.amicus, Symbol(gabriellae.amicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 769, 5)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) +>lutreolus : any, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>foina : lutreolus.foina, Symbol(lutreolus.foina, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 856, 18)) >() => { var y = this; } : () => void ->y : rosalia ->this : rosalia ->x : imperfecta.lasiurus, lutreolus.foina> +>y : rosalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1003, 224)) +>this : rosalia, Symbol(rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>x : imperfecta.lasiurus, lutreolus.foina>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1003, 116)) creaghi(): argurus.luctuosa { var x: argurus.luctuosa; () => { var y = this; }; return x; } ->creaghi : () => argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa ->x : argurus.luctuosa ->argurus : unknown ->luctuosa : argurus.luctuosa +>creaghi : () => argurus.luctuosa, Symbol(creaghi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1003, 249)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1004, 41)) +>argurus : any, Symbol(argurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 373, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 595, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 613, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 624, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 699, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 892, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 930, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 942, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 981, 1)) +>luctuosa : argurus.luctuosa, Symbol(argurus.luctuosa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 982, 16)) >() => { var y = this; } : () => void ->y : rosalia ->this : rosalia ->x : argurus.luctuosa +>y : rosalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1004, 74)) +>this : rosalia, Symbol(rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>x : argurus.luctuosa, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1004, 41)) montivaga(): panamensis.setulosus> { var x: panamensis.setulosus>; () => { var y = this; }; return x; } ->montivaga : () => panamensis.setulosus> ->panamensis : unknown ->setulosus : panamensis.setulosus ->lavali : unknown ->beisa : lavali.beisa ->panamensis : unknown ->linulus : panamensis.linulus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->x : panamensis.setulosus> ->panamensis : unknown ->setulosus : panamensis.setulosus ->lavali : unknown ->beisa : lavali.beisa ->panamensis : unknown ->linulus : panamensis.linulus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus ->caurinus : unknown ->megaphyllus : caurinus.megaphyllus +>montivaga : () => panamensis.setulosus>, Symbol(montivaga, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1004, 99)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>x : panamensis.setulosus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1005, 125)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>megaphyllus : caurinus.megaphyllus, Symbol(caurinus.megaphyllus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 837, 17)) >() => { var y = this; } : () => void ->y : rosalia ->this : rosalia ->x : panamensis.setulosus> +>y : rosalia, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1005, 240)) +>this : rosalia, Symbol(rosalia, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 999, 20)) +>x : panamensis.setulosus>, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1005, 125)) } } module caurinus { ->caurinus : typeof caurinus +>caurinus : typeof caurinus, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) export class psilurus extends lutreolus.punicus { ->psilurus : psilurus ->lutreolus : typeof lutreolus ->punicus : lutreolus.punicus +>psilurus : psilurus, Symbol(psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>lutreolus.punicus : any, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) +>lutreolus : typeof lutreolus, Symbol(lutreolus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 355, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 719, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 855, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 872, 1)) +>punicus : lutreolus.punicus, Symbol(lutreolus.punicus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 720, 18)) socialis(): panglima.amphibius { var x: panglima.amphibius; () => { var y = this; }; return x; } ->socialis : () => panglima.amphibius ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : psilurus ->x : panglima.amphibius ->panglima : unknown ->amphibius : panglima.amphibius ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->caurinus : unknown ->psilurus : psilurus +>socialis : () => panglima.amphibius, Symbol(socialis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1009, 53)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : psilurus, Symbol(psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : panglima.amphibius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1010, 86)) +>panglima : any, Symbol(panglima, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 400, 1)) +>amphibius : panglima.amphibius, Symbol(panglima.amphibius, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 401, 17)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>caurinus : any, Symbol(caurinus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 449, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 836, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 976, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1007, 1)) +>psilurus : psilurus, Symbol(psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) >() => { var y = this; } : () => void ->y : psilurus ->this : psilurus ->x : panglima.amphibius +>y : psilurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1010, 163)) +>this : psilurus, Symbol(psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : panglima.amphibius, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1010, 86)) lundi(): petrophilus.sodyi { var x: petrophilus.sodyi; () => { var y = this; }; return x; } ->lundi : () => petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi ->x : petrophilus.sodyi ->petrophilus : unknown ->sodyi : petrophilus.sodyi ->trivirgatus : unknown ->falconeri : trivirgatus.falconeri ->quasiater : unknown ->bobrinskoi : quasiater.bobrinskoi +>lundi : () => petrophilus.sodyi, Symbol(lundi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1010, 188)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1011, 85)) +>petrophilus : any, Symbol(petrophilus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 715, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 823, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 998, 1)) +>sodyi : petrophilus.sodyi, Symbol(petrophilus.sodyi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 824, 20)) +>trivirgatus : any, Symbol(trivirgatus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 186, 1)) +>falconeri : trivirgatus.falconeri, Symbol(trivirgatus.falconeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 210, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>bobrinskoi : quasiater.bobrinskoi, Symbol(quasiater.bobrinskoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 237, 18)) >() => { var y = this; } : () => void ->y : psilurus ->this : psilurus ->x : petrophilus.sodyi +>y : psilurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1011, 164)) +>this : psilurus, Symbol(psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : petrophilus.sodyi, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1011, 85)) araeum(): imperfecta.ciliolabrum { var x: imperfecta.ciliolabrum; () => { var y = this; }; return x; } ->araeum : () => imperfecta.ciliolabrum ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->beisa : lavali.beisa ->x : imperfecta.ciliolabrum ->imperfecta : unknown ->ciliolabrum : imperfecta.ciliolabrum ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->lavali : unknown ->beisa : lavali.beisa +>araeum : () => imperfecta.ciliolabrum, Symbol(araeum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1011, 189)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) +>x : imperfecta.ciliolabrum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1012, 84)) +>imperfecta : any, Symbol(imperfecta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 785, 1)) +>ciliolabrum : imperfecta.ciliolabrum, Symbol(imperfecta.ciliolabrum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 807, 5)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>beisa : lavali.beisa, Symbol(lavali.beisa, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 268, 3)) >() => { var y = this; } : () => void ->y : psilurus ->this : psilurus ->x : imperfecta.ciliolabrum +>y : psilurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1012, 161)) +>this : psilurus, Symbol(psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : imperfecta.ciliolabrum, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1012, 84)) calamianensis(): julianae.gerbillus { var x: julianae.gerbillus; () => { var y = this; }; return x; } ->calamianensis : () => julianae.gerbillus ->julianae : unknown ->gerbillus : julianae.gerbillus ->lavali : unknown ->thaeleri : lavali.thaeleri ->quasiater : unknown ->carolinensis : quasiater.carolinensis ->x : julianae.gerbillus ->julianae : unknown ->gerbillus : julianae.gerbillus ->lavali : unknown ->thaeleri : lavali.thaeleri ->quasiater : unknown ->carolinensis : quasiater.carolinensis +>calamianensis : () => julianae.gerbillus, Symbol(calamianensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1012, 186)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) +>x : julianae.gerbillus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1013, 90)) +>julianae : any, Symbol(julianae, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 15, 1)) +>gerbillus : julianae.gerbillus, Symbol(julianae.gerbillus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 67, 3)) +>lavali : any, Symbol(lavali, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 252, 1)) +>thaeleri : lavali.thaeleri, Symbol(lavali.thaeleri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 299, 3)) +>quasiater : any, Symbol(quasiater, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 236, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 422, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 813, 1)) +>carolinensis : quasiater.carolinensis, Symbol(quasiater.carolinensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 423, 18)) >() => { var y = this; } : () => void ->y : psilurus ->this : psilurus ->x : julianae.gerbillus +>y : psilurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1013, 166)) +>this : psilurus, Symbol(psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : julianae.gerbillus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1013, 90)) petersoni(): panamensis.setulosus { var x: panamensis.setulosus; () => { var y = this; }; return x; } ->petersoni : () => panamensis.setulosus ->panamensis : unknown ->setulosus : panamensis.setulosus ->sagitta : unknown ->walkeri : sagitta.walkeri ->dogramacii : unknown ->robustulus : dogramacii.robustulus ->x : panamensis.setulosus ->panamensis : unknown ->setulosus : panamensis.setulosus ->sagitta : unknown ->walkeri : sagitta.walkeri ->dogramacii : unknown ->robustulus : dogramacii.robustulus +>petersoni : () => panamensis.setulosus, Symbol(petersoni, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1013, 191)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) +>x : panamensis.setulosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1014, 87)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>setulosus : panamensis.setulosus, Symbol(panamensis.setulosus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 987, 19)) +>sagitta : any, Symbol(sagitta, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 487, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 577, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 675, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 746, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 898, 1)) +>walkeri : sagitta.walkeri, Symbol(sagitta.walkeri, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 488, 16)) +>dogramacii : any, Symbol(dogramacii, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 314, 1)) +>robustulus : dogramacii.robustulus, Symbol(dogramacii.robustulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 315, 19)) >() => { var y = this; } : () => void ->y : psilurus ->this : psilurus ->x : panamensis.setulosus +>y : psilurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1014, 164)) +>this : psilurus, Symbol(psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : panamensis.setulosus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1014, 87)) nitela(): panamensis.linulus { var x: panamensis.linulus; () => { var y = this; }; return x; } ->nitela : () => panamensis.linulus ->panamensis : unknown ->linulus : panamensis.linulus ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->howi : unknown ->marcanoi : howi.marcanoi ->x : panamensis.linulus ->panamensis : unknown ->linulus : panamensis.linulus ->Lanthanum : unknown ->megalonyx : Lanthanum.megalonyx ->howi : unknown ->marcanoi : howi.marcanoi +>nitela : () => panamensis.linulus, Symbol(nitela, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1014, 189)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) +>x : panamensis.linulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1015, 78)) +>panamensis : any, Symbol(panamensis, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 501, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 986, 1)) +>linulus : panamensis.linulus, Symbol(panamensis.linulus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 502, 19)) +>Lanthanum : any, Symbol(Lanthanum, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 106, 1)) +>megalonyx : Lanthanum.megalonyx, Symbol(Lanthanum.megalonyx, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 124, 3)) +>howi : any, Symbol(howi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 466, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 681, 1), Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 886, 1)) +>marcanoi : howi.marcanoi, Symbol(howi.marcanoi, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 682, 13)) >() => { var y = this; } : () => void ->y : psilurus ->this : psilurus ->x : panamensis.linulus +>y : psilurus, Symbol(y, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1015, 149)) +>this : psilurus, Symbol(psilurus, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1008, 17)) +>x : panamensis.linulus, Symbol(x, Decl(resolvingClassDeclarationWhenInBaseTypeResolution.ts, 1015, 78)) } } diff --git a/tests/baselines/reference/restParameterAssignmentCompatibility.types b/tests/baselines/reference/restParameterAssignmentCompatibility.types index aad4f61cd9b..0df509e8446 100644 --- a/tests/baselines/reference/restParameterAssignmentCompatibility.types +++ b/tests/baselines/reference/restParameterAssignmentCompatibility.types @@ -1,57 +1,57 @@ === tests/cases/compiler/restParameterAssignmentCompatibility.ts === class T { ->T : T +>T : T, Symbol(T, Decl(restParameterAssignmentCompatibility.ts, 0, 0)) m(...p3) { ->m : (...p3: any[]) => void ->p3 : any[] +>m : (...p3: any[]) => void, Symbol(m, Decl(restParameterAssignmentCompatibility.ts, 0, 9)) +>p3 : any[], Symbol(p3, Decl(restParameterAssignmentCompatibility.ts, 1, 6)) } } class S { ->S : S +>S : S, Symbol(S, Decl(restParameterAssignmentCompatibility.ts, 4, 1)) m(p1, p2) { ->m : (p1: any, p2: any) => void ->p1 : any ->p2 : any +>m : (p1: any, p2: any) => void, Symbol(m, Decl(restParameterAssignmentCompatibility.ts, 6, 9)) +>p1 : any, Symbol(p1, Decl(restParameterAssignmentCompatibility.ts, 7, 6)) +>p2 : any, Symbol(p2, Decl(restParameterAssignmentCompatibility.ts, 7, 9)) } } var t: T; ->t : T ->T : T +>t : T, Symbol(t, Decl(restParameterAssignmentCompatibility.ts, 12, 3)) +>T : T, Symbol(T, Decl(restParameterAssignmentCompatibility.ts, 0, 0)) var s: S; ->s : S ->S : S +>s : S, Symbol(s, Decl(restParameterAssignmentCompatibility.ts, 13, 3)) +>S : S, Symbol(S, Decl(restParameterAssignmentCompatibility.ts, 4, 1)) // M is a non - specialized call or construct signature and S' contains a call or construct signature N where, // the number of non-optional parameters in N is less than or equal to the total number of parameters in M, t = s; // Should be valid (rest params correspond to an infinite expansion of parameters) >t = s : S ->t : T ->s : S +>t : T, Symbol(t, Decl(restParameterAssignmentCompatibility.ts, 12, 3)) +>s : S, Symbol(s, Decl(restParameterAssignmentCompatibility.ts, 13, 3)) class T1 { ->T1 : T1 +>T1 : T1, Symbol(T1, Decl(restParameterAssignmentCompatibility.ts, 16, 6)) m(p1?, p2?) { ->m : (p1?: any, p2?: any) => void ->p1 : any ->p2 : any +>m : (p1?: any, p2?: any) => void, Symbol(m, Decl(restParameterAssignmentCompatibility.ts, 18, 10)) +>p1 : any, Symbol(p1, Decl(restParameterAssignmentCompatibility.ts, 19, 6)) +>p2 : any, Symbol(p2, Decl(restParameterAssignmentCompatibility.ts, 19, 10)) } } var t1: T1; ->t1 : T1 ->T1 : T1 +>t1 : T1, Symbol(t1, Decl(restParameterAssignmentCompatibility.ts, 23, 3)) +>T1 : T1, Symbol(T1, Decl(restParameterAssignmentCompatibility.ts, 16, 6)) // When comparing call or construct signatures, parameter names are ignored and rest parameters correspond to an unbounded expansion of optional parameters of the rest parameter element type. t1 = s; // Similar to above, but optionality does not matter here. >t1 = s : S ->t1 : T1 ->s : S +>t1 : T1, Symbol(t1, Decl(restParameterAssignmentCompatibility.ts, 23, 3)) +>s : S, Symbol(s, Decl(restParameterAssignmentCompatibility.ts, 13, 3)) diff --git a/tests/baselines/reference/restParameterNoTypeAnnotation.types b/tests/baselines/reference/restParameterNoTypeAnnotation.types index 0298ff37ca5..fa180c8adcd 100644 --- a/tests/baselines/reference/restParameterNoTypeAnnotation.types +++ b/tests/baselines/reference/restParameterNoTypeAnnotation.types @@ -1,14 +1,15 @@ === tests/cases/compiler/restParameterNoTypeAnnotation.ts === function foo(...rest) { ->foo : (...rest: any[]) => number ->rest : any[] +>foo : (...rest: any[]) => number, Symbol(foo, Decl(restParameterNoTypeAnnotation.ts, 0, 0)) +>rest : any[], Symbol(rest, Decl(restParameterNoTypeAnnotation.ts, 0, 13)) var x: number = rest[0]; ->x : number +>x : number, Symbol(x, Decl(restParameterNoTypeAnnotation.ts, 1, 8)) >rest[0] : any ->rest : any[] +>rest : any[], Symbol(rest, Decl(restParameterNoTypeAnnotation.ts, 0, 13)) +>0 : number return x; ->x : number +>x : number, Symbol(x, Decl(restParameterNoTypeAnnotation.ts, 1, 8)) } diff --git a/tests/baselines/reference/restParameters.types b/tests/baselines/reference/restParameters.types index 441635287ea..d97ef36e4fc 100644 --- a/tests/baselines/reference/restParameters.types +++ b/tests/baselines/reference/restParameters.types @@ -1,25 +1,25 @@ === tests/cases/compiler/restParameters.ts === function f18(a?:string, ...b:number[]){} ->f18 : (a?: string, ...b: number[]) => void ->a : string ->b : number[] +>f18 : (a?: string, ...b: number[]) => void, Symbol(f18, Decl(restParameters.ts, 0, 0)) +>a : string, Symbol(a, Decl(restParameters.ts, 0, 13)) +>b : number[], Symbol(b, Decl(restParameters.ts, 0, 23)) function f19(a?:string, b?:number, ...c:number[]){} ->f19 : (a?: string, b?: number, ...c: number[]) => void ->a : string ->b : number ->c : number[] +>f19 : (a?: string, b?: number, ...c: number[]) => void, Symbol(f19, Decl(restParameters.ts, 0, 40)) +>a : string, Symbol(a, Decl(restParameters.ts, 2, 13)) +>b : number, Symbol(b, Decl(restParameters.ts, 2, 23)) +>c : number[], Symbol(c, Decl(restParameters.ts, 2, 34)) function f20(a:string, b?:string, ...c:number[]){} ->f20 : (a: string, b?: string, ...c: number[]) => void ->a : string ->b : string ->c : number[] +>f20 : (a: string, b?: string, ...c: number[]) => void, Symbol(f20, Decl(restParameters.ts, 2, 51)) +>a : string, Symbol(a, Decl(restParameters.ts, 4, 13)) +>b : string, Symbol(b, Decl(restParameters.ts, 4, 22)) +>c : number[], Symbol(c, Decl(restParameters.ts, 4, 33)) function f21(a:string, b?:string, c?:number, ...d:number[]){} ->f21 : (a: string, b?: string, c?: number, ...d: number[]) => void ->a : string ->b : string ->c : number ->d : number[] +>f21 : (a: string, b?: string, c?: number, ...d: number[]) => void, Symbol(f21, Decl(restParameters.ts, 4, 50)) +>a : string, Symbol(a, Decl(restParameters.ts, 6, 13)) +>b : string, Symbol(b, Decl(restParameters.ts, 6, 22)) +>c : number, Symbol(c, Decl(restParameters.ts, 6, 33)) +>d : number[], Symbol(d, Decl(restParameters.ts, 6, 44)) diff --git a/tests/baselines/reference/returnStatement1.types b/tests/baselines/reference/returnStatement1.types index b7a668bfa03..2ace5dad228 100644 --- a/tests/baselines/reference/returnStatement1.types +++ b/tests/baselines/reference/returnStatement1.types @@ -1,16 +1,17 @@ === tests/cases/compiler/returnStatement1.ts === function f() { ->f : () => (s: any) => void +>f : () => (s: any) => void, Symbol(f, Decl(returnStatement1.ts, 0, 0)) return function (s) { >function (s) { var x = s; } : (s: any) => void ->s : any +>s : any, Symbol(s, Decl(returnStatement1.ts, 1, 21)) var x = s; ->x : any ->s : any +>x : any, Symbol(x, Decl(returnStatement1.ts, 2, 11)) +>s : any, Symbol(s, Decl(returnStatement1.ts, 1, 21)) }; ("harmless extra line"); >("harmless extra line") : string +>"harmless extra line" : string } diff --git a/tests/baselines/reference/returnStatements.types b/tests/baselines/reference/returnStatements.types index 5437c835784..1bc6775cf44 100644 --- a/tests/baselines/reference/returnStatements.types +++ b/tests/baselines/reference/returnStatements.types @@ -1,73 +1,80 @@ === tests/cases/conformance/statements/returnStatements/returnStatements.ts === // all the following should be valid function fn1(): number { return 1; } ->fn1 : () => number +>fn1 : () => number, Symbol(fn1, Decl(returnStatements.ts, 0, 0)) +>1 : number function fn2(): string { return ''; } ->fn2 : () => string +>fn2 : () => string, Symbol(fn2, Decl(returnStatements.ts, 1, 36)) +>'' : string function fn3(): void { return undefined; } ->fn3 : () => void ->undefined : undefined +>fn3 : () => void, Symbol(fn3, Decl(returnStatements.ts, 2, 37)) +>undefined : undefined, Symbol(undefined) function fn4(): void { return; } ->fn4 : () => void +>fn4 : () => void, Symbol(fn4, Decl(returnStatements.ts, 3, 42)) function fn5(): boolean { return true; } ->fn5 : () => boolean +>fn5 : () => boolean, Symbol(fn5, Decl(returnStatements.ts, 4, 32)) +>true : boolean function fn6(): Date { return new Date(12); } ->fn6 : () => Date ->Date : Date +>fn6 : () => Date, Symbol(fn6, Decl(returnStatements.ts, 5, 40)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) >new Date(12) : Date ->Date : DateConstructor +>Date : DateConstructor, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) +>12 : number function fn7(): any { return null; } ->fn7 : () => any +>fn7 : () => any, Symbol(fn7, Decl(returnStatements.ts, 6, 45)) +>null : null function fn8(): any { return; } // OK, eq. to 'return undefined' ->fn8 : () => any +>fn8 : () => any, Symbol(fn8, Decl(returnStatements.ts, 7, 36)) interface I { id: number } ->I : I ->id : number +>I : I, Symbol(I, Decl(returnStatements.ts, 8, 31)) +>id : number, Symbol(id, Decl(returnStatements.ts, 10, 13)) class C implements I { ->C : C ->I : I +>C : C, Symbol(C, Decl(returnStatements.ts, 10, 26)) +>I : I, Symbol(I, Decl(returnStatements.ts, 8, 31)) id: number; ->id : number +>id : number, Symbol(id, Decl(returnStatements.ts, 11, 22)) dispose() {} ->dispose : () => void +>dispose : () => void, Symbol(dispose, Decl(returnStatements.ts, 12, 15)) } class D extends C { ->D : D ->C : C +>D : D, Symbol(D, Decl(returnStatements.ts, 14, 1)) +>C : C, Symbol(C, Decl(returnStatements.ts, 10, 26)) name: string; ->name : string +>name : string, Symbol(name, Decl(returnStatements.ts, 15, 19)) } function fn10(): I { return { id: 12 }; } ->fn10 : () => I ->I : I +>fn10 : () => I, Symbol(fn10, Decl(returnStatements.ts, 17, 1)) +>I : I, Symbol(I, Decl(returnStatements.ts, 8, 31)) >{ id: 12 } : { id: number; } ->id : number +>id : number, Symbol(id, Decl(returnStatements.ts, 18, 29)) +>12 : number function fn11(): I { return new C(); } ->fn11 : () => I ->I : I +>fn11 : () => I, Symbol(fn11, Decl(returnStatements.ts, 18, 41)) +>I : I, Symbol(I, Decl(returnStatements.ts, 8, 31)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(returnStatements.ts, 10, 26)) function fn12(): C { return new D(); } ->fn12 : () => C ->C : C +>fn12 : () => C, Symbol(fn12, Decl(returnStatements.ts, 20, 38)) +>C : C, Symbol(C, Decl(returnStatements.ts, 10, 26)) >new D() : D ->D : typeof D +>D : typeof D, Symbol(D, Decl(returnStatements.ts, 14, 1)) function fn13(): C { return null; } ->fn13 : () => C ->C : C +>fn13 : () => C, Symbol(fn13, Decl(returnStatements.ts, 21, 38)) +>C : C, Symbol(C, Decl(returnStatements.ts, 10, 26)) +>null : null diff --git a/tests/baselines/reference/returnTypeParameterWithModules.types b/tests/baselines/reference/returnTypeParameterWithModules.types index be09b8f46b0..6c07412c497 100644 --- a/tests/baselines/reference/returnTypeParameterWithModules.types +++ b/tests/baselines/reference/returnTypeParameterWithModules.types @@ -1,80 +1,80 @@ === tests/cases/compiler/returnTypeParameterWithModules.ts === module M1 { ->M1 : typeof M1 +>M1 : typeof M1, Symbol(M1, Decl(returnTypeParameterWithModules.ts, 0, 0)) export function reduce(ar, f, e?): Array { ->reduce : (ar: any, f: any, e?: any) => A[] ->A : A ->ar : any ->f : any ->e : any ->Array : T[] ->A : A +>reduce : (ar: any, f: any, e?: any) => A[], Symbol(reduce, Decl(returnTypeParameterWithModules.ts, 0, 11)) +>A : A, Symbol(A, Decl(returnTypeParameterWithModules.ts, 1, 27)) +>ar : any, Symbol(ar, Decl(returnTypeParameterWithModules.ts, 1, 30)) +>f : any, Symbol(f, Decl(returnTypeParameterWithModules.ts, 1, 33)) +>e : any, Symbol(e, Decl(returnTypeParameterWithModules.ts, 1, 36)) +>Array : T[], Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>A : A, Symbol(A, Decl(returnTypeParameterWithModules.ts, 1, 27)) return Array.prototype.reduce.apply(ar, e ? [f, e] : [f]); >Array.prototype.reduce.apply(ar, e ? [f, e] : [f]) : any ->Array.prototype.reduce.apply : (thisArg: any, argArray?: any) => any ->Array.prototype.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; } ->Array.prototype : any[] ->Array : ArrayConstructor ->prototype : any[] ->reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; } ->apply : (thisArg: any, argArray?: any) => any ->ar : any +>Array.prototype.reduce.apply : (thisArg: any, argArray?: any) => any, Symbol(Function.apply, Decl(lib.d.ts, 228, 20)) +>Array.prototype.reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }, Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120)) +>Array.prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31)) +>Array : ArrayConstructor, Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11)) +>prototype : any[], Symbol(ArrayConstructor.prototype, Decl(lib.d.ts, 1167, 31)) +>reduce : { (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue?: any): any; (callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U; }, Symbol(Array.reduce, Decl(lib.d.ts, 1129, 93), Decl(lib.d.ts, 1136, 120)) +>apply : (thisArg: any, argArray?: any) => any, Symbol(Function.apply, Decl(lib.d.ts, 228, 20)) +>ar : any, Symbol(ar, Decl(returnTypeParameterWithModules.ts, 1, 30)) >e ? [f, e] : [f] : any[] ->e : any +>e : any, Symbol(e, Decl(returnTypeParameterWithModules.ts, 1, 36)) >[f, e] : any[] ->f : any ->e : any +>f : any, Symbol(f, Decl(returnTypeParameterWithModules.ts, 1, 33)) +>e : any, Symbol(e, Decl(returnTypeParameterWithModules.ts, 1, 36)) >[f] : any[] ->f : any +>f : any, Symbol(f, Decl(returnTypeParameterWithModules.ts, 1, 33)) }; }; module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(returnTypeParameterWithModules.ts, 4, 2)) import A = M1 ->A : typeof A ->M1 : typeof A +>A : typeof A, Symbol(A, Decl(returnTypeParameterWithModules.ts, 5, 11)) +>M1 : typeof A, Symbol(A, Decl(returnTypeParameterWithModules.ts, 0, 0)) export function compose() { ->compose : () => void +>compose : () => void, Symbol(compose, Decl(returnTypeParameterWithModules.ts, 6, 15)) A.reduce(arguments, compose2); >A.reduce(arguments, compose2) : {}[] ->A.reduce : (ar: any, f: any, e?: any) => A[] ->A : typeof A ->reduce : (ar: any, f: any, e?: any) => A[] ->arguments : IArguments ->compose2 : (g: (x: B) => C, f: (x: D) => B) => (x: D) => C +>A.reduce : (ar: any, f: any, e?: any) => A[], Symbol(A.reduce, Decl(returnTypeParameterWithModules.ts, 0, 11)) +>A : typeof A, Symbol(A, Decl(returnTypeParameterWithModules.ts, 5, 11)) +>reduce : (ar: any, f: any, e?: any) => A[], Symbol(A.reduce, Decl(returnTypeParameterWithModules.ts, 0, 11)) +>arguments : IArguments, Symbol(arguments) +>compose2 : (g: (x: B) => C, f: (x: D) => B) => (x: D) => C, Symbol(compose2, Decl(returnTypeParameterWithModules.ts, 9, 6)) }; export function compose2(g: (x: B) => C, f: (x: D) => B): (x: D) => C { ->compose2 : (g: (x: B) => C, f: (x: D) => B) => (x: D) => C ->B : B ->C : C ->D : D ->g : (x: B) => C ->x : B ->B : B ->C : C ->f : (x: D) => B ->x : D ->D : D ->B : B ->x : D ->D : D ->C : C +>compose2 : (g: (x: B) => C, f: (x: D) => B) => (x: D) => C, Symbol(compose2, Decl(returnTypeParameterWithModules.ts, 9, 6)) +>B : B, Symbol(B, Decl(returnTypeParameterWithModules.ts, 10, 29)) +>C : C, Symbol(C, Decl(returnTypeParameterWithModules.ts, 10, 31)) +>D : D, Symbol(D, Decl(returnTypeParameterWithModules.ts, 10, 34)) +>g : (x: B) => C, Symbol(g, Decl(returnTypeParameterWithModules.ts, 10, 38)) +>x : B, Symbol(x, Decl(returnTypeParameterWithModules.ts, 10, 42)) +>B : B, Symbol(B, Decl(returnTypeParameterWithModules.ts, 10, 29)) +>C : C, Symbol(C, Decl(returnTypeParameterWithModules.ts, 10, 31)) +>f : (x: D) => B, Symbol(f, Decl(returnTypeParameterWithModules.ts, 10, 53)) +>x : D, Symbol(x, Decl(returnTypeParameterWithModules.ts, 10, 58)) +>D : D, Symbol(D, Decl(returnTypeParameterWithModules.ts, 10, 34)) +>B : B, Symbol(B, Decl(returnTypeParameterWithModules.ts, 10, 29)) +>x : D, Symbol(x, Decl(returnTypeParameterWithModules.ts, 10, 72)) +>D : D, Symbol(D, Decl(returnTypeParameterWithModules.ts, 10, 34)) +>C : C, Symbol(C, Decl(returnTypeParameterWithModules.ts, 10, 31)) return function (x) { return g(f(x)); } >function (x) { return g(f(x)); } : (x: D) => C ->x : D +>x : D, Symbol(x, Decl(returnTypeParameterWithModules.ts, 11, 21)) >g(f(x)) : C ->g : (x: B) => C +>g : (x: B) => C, Symbol(g, Decl(returnTypeParameterWithModules.ts, 10, 38)) >f(x) : B ->f : (x: D) => B ->x : D +>f : (x: D) => B, Symbol(f, Decl(returnTypeParameterWithModules.ts, 10, 53)) +>x : D, Symbol(x, Decl(returnTypeParameterWithModules.ts, 11, 21)) }; }; diff --git a/tests/baselines/reference/reuseInnerModuleMember.types b/tests/baselines/reference/reuseInnerModuleMember.types index b4ff68efbdf..945817d660c 100644 --- a/tests/baselines/reference/reuseInnerModuleMember.types +++ b/tests/baselines/reference/reuseInnerModuleMember.types @@ -1,24 +1,24 @@ === tests/cases/compiler/reuseInnerModuleMember_1.ts === /// declare module bar { ->bar : typeof bar +>bar : typeof bar, Symbol(bar, Decl(reuseInnerModuleMember_1.ts, 0, 0), Decl(reuseInnerModuleMember_1.ts, 5, 47)) interface alpha { } ->alpha : alpha +>alpha : alpha, Symbol(alpha, Decl(reuseInnerModuleMember_1.ts, 1, 20)) } import f = require('reuseInnerModuleMember_0'); ->f : typeof f +>f : typeof f, Symbol(f, Decl(reuseInnerModuleMember_1.ts, 3, 1)) module bar { ->bar : typeof bar +>bar : typeof bar, Symbol(bar, Decl(reuseInnerModuleMember_1.ts, 0, 0), Decl(reuseInnerModuleMember_1.ts, 5, 47)) var x: alpha; ->x : alpha ->alpha : alpha +>x : alpha, Symbol(x, Decl(reuseInnerModuleMember_1.ts, 7, 7)) +>alpha : alpha, Symbol(alpha, Decl(reuseInnerModuleMember_1.ts, 1, 20)) } === tests/cases/compiler/reuseInnerModuleMember_0.ts === export module M { } ->M : unknown +>M : any, Symbol(M, Decl(reuseInnerModuleMember_0.ts, 0, 0)) diff --git a/tests/baselines/reference/reverseInferenceInContextualInstantiation.types b/tests/baselines/reference/reverseInferenceInContextualInstantiation.types index d38d0423e84..d0eda4057e9 100644 --- a/tests/baselines/reference/reverseInferenceInContextualInstantiation.types +++ b/tests/baselines/reference/reverseInferenceInContextualInstantiation.types @@ -1,19 +1,20 @@ === tests/cases/compiler/reverseInferenceInContextualInstantiation.ts === function compare(a: T, b: T): number { return 0; } ->compare : (a: T, b: T) => number ->T : T ->a : T ->T : T ->b : T ->T : T +>compare : (a: T, b: T) => number, Symbol(compare, Decl(reverseInferenceInContextualInstantiation.ts, 0, 0)) +>T : T, Symbol(T, Decl(reverseInferenceInContextualInstantiation.ts, 0, 17)) +>a : T, Symbol(a, Decl(reverseInferenceInContextualInstantiation.ts, 0, 20)) +>T : T, Symbol(T, Decl(reverseInferenceInContextualInstantiation.ts, 0, 17)) +>b : T, Symbol(b, Decl(reverseInferenceInContextualInstantiation.ts, 0, 25)) +>T : T, Symbol(T, Decl(reverseInferenceInContextualInstantiation.ts, 0, 17)) +>0 : number var x: number[]; ->x : number[] +>x : number[], Symbol(x, Decl(reverseInferenceInContextualInstantiation.ts, 1, 3)) x.sort(compare); // Error, but shouldn't be >x.sort(compare) : number[] ->x.sort : (compareFn?: (a: number, b: number) => number) => number[] ->x : number[] ->sort : (compareFn?: (a: number, b: number) => number) => number[] ->compare : (a: T, b: T) => number +>x.sort : (compareFn?: (a: number, b: number) => number) => number[], Symbol(Array.sort, Decl(lib.d.ts, 1054, 45)) +>x : number[], Symbol(x, Decl(reverseInferenceInContextualInstantiation.ts, 1, 3)) +>sort : (compareFn?: (a: number, b: number) => number) => number[], Symbol(Array.sort, Decl(lib.d.ts, 1054, 45)) +>compare : (a: T, b: T) => number, Symbol(compare, Decl(reverseInferenceInContextualInstantiation.ts, 0, 0)) diff --git a/tests/baselines/reference/reversedRecusiveTypeInstantiation.types b/tests/baselines/reference/reversedRecusiveTypeInstantiation.types index fad3c15489c..8e9af6706c5 100644 --- a/tests/baselines/reference/reversedRecusiveTypeInstantiation.types +++ b/tests/baselines/reference/reversedRecusiveTypeInstantiation.types @@ -1,34 +1,35 @@ === tests/cases/compiler/reversedRecusiveTypeInstantiation.ts === interface A { ->A : A ->StringArgPos1 : StringArgPos1 ->NumberArgPos2 : NumberArgPos2 +>A : A, Symbol(A, Decl(reversedRecusiveTypeInstantiation.ts, 0, 0)) +>StringArgPos1 : StringArgPos1, Symbol(StringArgPos1, Decl(reversedRecusiveTypeInstantiation.ts, 0, 12)) +>NumberArgPos2 : NumberArgPos2, Symbol(NumberArgPos2, Decl(reversedRecusiveTypeInstantiation.ts, 0, 26)) xPos1 : StringArgPos1 ->xPos1 : StringArgPos1 ->StringArgPos1 : StringArgPos1 +>xPos1 : StringArgPos1, Symbol(xPos1, Decl(reversedRecusiveTypeInstantiation.ts, 0, 43)) +>StringArgPos1 : StringArgPos1, Symbol(StringArgPos1, Decl(reversedRecusiveTypeInstantiation.ts, 0, 12)) yPos2 : NumberArgPos2 ->yPos2 : NumberArgPos2 ->NumberArgPos2 : NumberArgPos2 +>yPos2 : NumberArgPos2, Symbol(yPos2, Decl(reversedRecusiveTypeInstantiation.ts, 1, 24)) +>NumberArgPos2 : NumberArgPos2, Symbol(NumberArgPos2, Decl(reversedRecusiveTypeInstantiation.ts, 0, 26)) zPos2Pos1 : A ->zPos2Pos1 : A ->A : A ->NumberArgPos2 : NumberArgPos2 ->StringArgPos1 : StringArgPos1 +>zPos2Pos1 : A, Symbol(zPos2Pos1, Decl(reversedRecusiveTypeInstantiation.ts, 2, 24)) +>A : A, Symbol(A, Decl(reversedRecusiveTypeInstantiation.ts, 0, 0)) +>NumberArgPos2 : NumberArgPos2, Symbol(NumberArgPos2, Decl(reversedRecusiveTypeInstantiation.ts, 0, 26)) +>StringArgPos1 : StringArgPos1, Symbol(StringArgPos1, Decl(reversedRecusiveTypeInstantiation.ts, 0, 12)) } var a : A ->a : A ->A : A +>a : A, Symbol(a, Decl(reversedRecusiveTypeInstantiation.ts, 6, 3)) +>A : A, Symbol(A, Decl(reversedRecusiveTypeInstantiation.ts, 0, 0)) a.zPos2Pos1.xPos1 = 1 >a.zPos2Pos1.xPos1 = 1 : number ->a.zPos2Pos1.xPos1 : number ->a.zPos2Pos1 : A ->a : A ->zPos2Pos1 : A ->xPos1 : number +>a.zPos2Pos1.xPos1 : number, Symbol(A.xPos1, Decl(reversedRecusiveTypeInstantiation.ts, 0, 43)) +>a.zPos2Pos1 : A, Symbol(A.zPos2Pos1, Decl(reversedRecusiveTypeInstantiation.ts, 2, 24)) +>a : A, Symbol(a, Decl(reversedRecusiveTypeInstantiation.ts, 6, 3)) +>zPos2Pos1 : A, Symbol(A.zPos2Pos1, Decl(reversedRecusiveTypeInstantiation.ts, 2, 24)) +>xPos1 : number, Symbol(A.xPos1, Decl(reversedRecusiveTypeInstantiation.ts, 0, 43)) +>1 : number diff --git a/tests/baselines/reference/scanner10.1.1-8gs.errors.txt b/tests/baselines/reference/scanner10.1.1-8gs.errors.txt index 2cfe3b3080a..54cd92dc0ca 100644 --- a/tests/baselines/reference/scanner10.1.1-8gs.errors.txt +++ b/tests/baselines/reference/scanner10.1.1-8gs.errors.txt @@ -1,10 +1,8 @@ tests/cases/conformance/scanner/ecmascript5/scanner10.1.1-8gs.ts(16,7): error TS2304: Cannot find name 'NotEarlyError'. -tests/cases/conformance/scanner/ecmascript5/scanner10.1.1-8gs.ts(17,5): error TS1134: Variable declaration expected. -tests/cases/conformance/scanner/ecmascript5/scanner10.1.1-8gs.ts(17,12): error TS1134: Variable declaration expected. -tests/cases/conformance/scanner/ecmascript5/scanner10.1.1-8gs.ts(17,14): error TS1134: Variable declaration expected. +tests/cases/conformance/scanner/ecmascript5/scanner10.1.1-8gs.ts(17,5): error TS1212: Identifier expected. 'public' is a reserved word in strict mode -==== tests/cases/conformance/scanner/ecmascript5/scanner10.1.1-8gs.ts (4 errors) ==== +==== tests/cases/conformance/scanner/ecmascript5/scanner10.1.1-8gs.ts (2 errors) ==== /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the @@ -25,9 +23,5 @@ tests/cases/conformance/scanner/ecmascript5/scanner10.1.1-8gs.ts(17,14): error T !!! error TS2304: Cannot find name 'NotEarlyError'. var public = 1; ~~~~~~ -!!! error TS1134: Variable declaration expected. - ~ -!!! error TS1134: Variable declaration expected. - ~ -!!! error TS1134: Variable declaration expected. +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode \ No newline at end of file diff --git a/tests/baselines/reference/scanner10.1.1-8gs.js b/tests/baselines/reference/scanner10.1.1-8gs.js index ed0deac165d..90a0cf8be9f 100644 --- a/tests/baselines/reference/scanner10.1.1-8gs.js +++ b/tests/baselines/reference/scanner10.1.1-8gs.js @@ -33,5 +33,4 @@ var public = 1; "use strict"; "use strict"; throw NotEarlyError; -var ; -1; +var public = 1; diff --git a/tests/baselines/reference/scannerES3NumericLiteral1.types b/tests/baselines/reference/scannerES3NumericLiteral1.types index 96f7ad835c2..0a1108c7ca9 100644 --- a/tests/baselines/reference/scannerES3NumericLiteral1.types +++ b/tests/baselines/reference/scannerES3NumericLiteral1.types @@ -1,3 +1,4 @@ === tests/cases/conformance/scanner/ecmascript3/scannerES3NumericLiteral1.ts === 0 -No type information for this code. \ No newline at end of file +>0 : number + diff --git a/tests/baselines/reference/scannerES3NumericLiteral2.types b/tests/baselines/reference/scannerES3NumericLiteral2.types index d51f3292e5f..8fae044c217 100644 --- a/tests/baselines/reference/scannerES3NumericLiteral2.types +++ b/tests/baselines/reference/scannerES3NumericLiteral2.types @@ -1,3 +1,4 @@ === tests/cases/conformance/scanner/ecmascript3/scannerES3NumericLiteral2.ts === 01 -No type information for this code. \ No newline at end of file +>01 : number + diff --git a/tests/baselines/reference/scannerES3NumericLiteral5.types b/tests/baselines/reference/scannerES3NumericLiteral5.types index d147c48a336..2a5367e5b17 100644 --- a/tests/baselines/reference/scannerES3NumericLiteral5.types +++ b/tests/baselines/reference/scannerES3NumericLiteral5.types @@ -1,3 +1,4 @@ === tests/cases/conformance/scanner/ecmascript3/scannerES3NumericLiteral5.ts === 1e0 -No type information for this code. \ No newline at end of file +>1e0 : number + diff --git a/tests/baselines/reference/scannerES3NumericLiteral7.types b/tests/baselines/reference/scannerES3NumericLiteral7.types index c615dd1ebfa..d5ffa0ea131 100644 --- a/tests/baselines/reference/scannerES3NumericLiteral7.types +++ b/tests/baselines/reference/scannerES3NumericLiteral7.types @@ -1,3 +1,4 @@ === tests/cases/conformance/scanner/ecmascript3/scannerES3NumericLiteral7.ts === 1e+0 -No type information for this code. \ No newline at end of file +>1e+0 : number + diff --git a/tests/baselines/reference/scannerNumericLiteral1.types b/tests/baselines/reference/scannerNumericLiteral1.types index e6ea5432ea5..a3eebc411fa 100644 --- a/tests/baselines/reference/scannerNumericLiteral1.types +++ b/tests/baselines/reference/scannerNumericLiteral1.types @@ -1,3 +1,4 @@ === tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral1.ts === 0 -No type information for this code. \ No newline at end of file +>0 : number + diff --git a/tests/baselines/reference/scannerNumericLiteral5.types b/tests/baselines/reference/scannerNumericLiteral5.types index d9cc2f1414b..86ab1a903e0 100644 --- a/tests/baselines/reference/scannerNumericLiteral5.types +++ b/tests/baselines/reference/scannerNumericLiteral5.types @@ -1,3 +1,4 @@ === tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral5.ts === 1e0 -No type information for this code. \ No newline at end of file +>1e0 : number + diff --git a/tests/baselines/reference/scannerNumericLiteral7.types b/tests/baselines/reference/scannerNumericLiteral7.types index f7ccc497e99..25ce9275290 100644 --- a/tests/baselines/reference/scannerNumericLiteral7.types +++ b/tests/baselines/reference/scannerNumericLiteral7.types @@ -1,3 +1,4 @@ === tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral7.ts === 1e+0 -No type information for this code. \ No newline at end of file +>1e+0 : number + diff --git a/tests/baselines/reference/scannerStringLiteralWithContainingNullCharacter1.types b/tests/baselines/reference/scannerStringLiteralWithContainingNullCharacter1.types index 0f491bbb18a..43eadd8c291 100644 Binary files a/tests/baselines/reference/scannerStringLiteralWithContainingNullCharacter1.types and b/tests/baselines/reference/scannerStringLiteralWithContainingNullCharacter1.types differ diff --git a/tests/baselines/reference/scannerUnicodeEscapeInKeyword1.types b/tests/baselines/reference/scannerUnicodeEscapeInKeyword1.types index 73acf3fd594..b2914e0b7bd 100644 --- a/tests/baselines/reference/scannerUnicodeEscapeInKeyword1.types +++ b/tests/baselines/reference/scannerUnicodeEscapeInKeyword1.types @@ -1,4 +1,5 @@ === tests/cases/conformance/scanner/ecmascript5/scannerUnicodeEscapeInKeyword1.ts === \u0076ar x = "hello"; ->x : string +>x : string, Symbol(x, Decl(scannerUnicodeEscapeInKeyword1.ts, 0, 8)) +>"hello" : string diff --git a/tests/baselines/reference/scopeResolutionIdentifiers.types b/tests/baselines/reference/scopeResolutionIdentifiers.types index 37fa897863d..1522356444d 100644 --- a/tests/baselines/reference/scopeResolutionIdentifiers.types +++ b/tests/baselines/reference/scopeResolutionIdentifiers.types @@ -2,93 +2,93 @@ // EveryType used in a nested scope of a different EveryType with the same name, type of the identifier is the one defined in the inner scope var s: string; ->s : string +>s : string, Symbol(s, Decl(scopeResolutionIdentifiers.ts, 2, 3)) module M1 { ->M1 : typeof M1 +>M1 : typeof M1, Symbol(M1, Decl(scopeResolutionIdentifiers.ts, 2, 14)) export var s: number; ->s : number +>s : number, Symbol(s, Decl(scopeResolutionIdentifiers.ts, 4, 14)) var n = s; ->n : number ->s : number +>n : number, Symbol(n, Decl(scopeResolutionIdentifiers.ts, 5, 7), Decl(scopeResolutionIdentifiers.ts, 6, 7)) +>s : number, Symbol(s, Decl(scopeResolutionIdentifiers.ts, 4, 14)) var n: number; ->n : number +>n : number, Symbol(n, Decl(scopeResolutionIdentifiers.ts, 5, 7), Decl(scopeResolutionIdentifiers.ts, 6, 7)) } module M2 { ->M2 : typeof M2 +>M2 : typeof M2, Symbol(M2, Decl(scopeResolutionIdentifiers.ts, 7, 1)) var s: number; ->s : number +>s : number, Symbol(s, Decl(scopeResolutionIdentifiers.ts, 10, 7)) var n = s; ->n : number ->s : number +>n : number, Symbol(n, Decl(scopeResolutionIdentifiers.ts, 11, 7), Decl(scopeResolutionIdentifiers.ts, 12, 7)) +>s : number, Symbol(s, Decl(scopeResolutionIdentifiers.ts, 10, 7)) var n: number; ->n : number +>n : number, Symbol(n, Decl(scopeResolutionIdentifiers.ts, 11, 7), Decl(scopeResolutionIdentifiers.ts, 12, 7)) } function fn() { ->fn : () => void +>fn : () => void, Symbol(fn, Decl(scopeResolutionIdentifiers.ts, 13, 1)) var s: boolean; ->s : boolean +>s : boolean, Symbol(s, Decl(scopeResolutionIdentifiers.ts, 16, 7)) var n = s; ->n : boolean ->s : boolean +>n : boolean, Symbol(n, Decl(scopeResolutionIdentifiers.ts, 17, 7), Decl(scopeResolutionIdentifiers.ts, 18, 7)) +>s : boolean, Symbol(s, Decl(scopeResolutionIdentifiers.ts, 16, 7)) var n: boolean; ->n : boolean +>n : boolean, Symbol(n, Decl(scopeResolutionIdentifiers.ts, 17, 7), Decl(scopeResolutionIdentifiers.ts, 18, 7)) } class C { ->C : C +>C : C, Symbol(C, Decl(scopeResolutionIdentifiers.ts, 19, 1)) s: Date; ->s : Date ->Date : Date +>s : Date, Symbol(s, Decl(scopeResolutionIdentifiers.ts, 21, 9)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) n = this.s; ->n : Date ->this.s : Date ->this : C ->s : Date +>n : Date, Symbol(n, Decl(scopeResolutionIdentifiers.ts, 22, 12)) +>this.s : Date, Symbol(s, Decl(scopeResolutionIdentifiers.ts, 21, 9)) +>this : C, Symbol(C, Decl(scopeResolutionIdentifiers.ts, 19, 1)) +>s : Date, Symbol(s, Decl(scopeResolutionIdentifiers.ts, 21, 9)) x() { ->x : () => void +>x : () => void, Symbol(x, Decl(scopeResolutionIdentifiers.ts, 23, 15)) var p = this.n; ->p : Date ->this.n : Date ->this : C ->n : Date +>p : Date, Symbol(p, Decl(scopeResolutionIdentifiers.ts, 25, 11), Decl(scopeResolutionIdentifiers.ts, 26, 11)) +>this.n : Date, Symbol(n, Decl(scopeResolutionIdentifiers.ts, 22, 12)) +>this : C, Symbol(C, Decl(scopeResolutionIdentifiers.ts, 19, 1)) +>n : Date, Symbol(n, Decl(scopeResolutionIdentifiers.ts, 22, 12)) var p: Date; ->p : Date ->Date : Date +>p : Date, Symbol(p, Decl(scopeResolutionIdentifiers.ts, 25, 11), Decl(scopeResolutionIdentifiers.ts, 26, 11)) +>Date : Date, Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11)) } } module M3 { ->M3 : typeof M3 +>M3 : typeof M3, Symbol(M3, Decl(scopeResolutionIdentifiers.ts, 28, 1)) var s: any; ->s : any +>s : any, Symbol(s, Decl(scopeResolutionIdentifiers.ts, 31, 7)) module M4 { ->M4 : typeof M4 +>M4 : typeof M4, Symbol(M4, Decl(scopeResolutionIdentifiers.ts, 31, 15)) var n = s; ->n : any ->s : any +>n : any, Symbol(n, Decl(scopeResolutionIdentifiers.ts, 33, 11), Decl(scopeResolutionIdentifiers.ts, 34, 11)) +>s : any, Symbol(s, Decl(scopeResolutionIdentifiers.ts, 31, 7)) var n: any; ->n : any +>n : any, Symbol(n, Decl(scopeResolutionIdentifiers.ts, 33, 11), Decl(scopeResolutionIdentifiers.ts, 34, 11)) } } diff --git a/tests/baselines/reference/selfInCallback.types b/tests/baselines/reference/selfInCallback.types index ed078d574d4..d8259766650 100644 --- a/tests/baselines/reference/selfInCallback.types +++ b/tests/baselines/reference/selfInCallback.types @@ -1,28 +1,30 @@ === tests/cases/compiler/selfInCallback.ts === class C { ->C : C +>C : C, Symbol(C, Decl(selfInCallback.ts, 0, 0)) public p1 = 0; ->p1 : number +>p1 : number, Symbol(p1, Decl(selfInCallback.ts, 0, 9)) +>0 : number public callback(cb:()=>void) {cb();} ->callback : (cb: () => void) => void ->cb : () => void +>callback : (cb: () => void) => void, Symbol(callback, Decl(selfInCallback.ts, 1, 15)) +>cb : () => void, Symbol(cb, Decl(selfInCallback.ts, 2, 17)) >cb() : void ->cb : () => void +>cb : () => void, Symbol(cb, Decl(selfInCallback.ts, 2, 17)) public doit() { ->doit : () => void +>doit : () => void, Symbol(doit, Decl(selfInCallback.ts, 2, 37)) this.callback(()=>{this.p1+1}); >this.callback(()=>{this.p1+1}) : void ->this.callback : (cb: () => void) => void ->this : C ->callback : (cb: () => void) => void +>this.callback : (cb: () => void) => void, Symbol(callback, Decl(selfInCallback.ts, 1, 15)) +>this : C, Symbol(C, Decl(selfInCallback.ts, 0, 0)) +>callback : (cb: () => void) => void, Symbol(callback, Decl(selfInCallback.ts, 1, 15)) >()=>{this.p1+1} : () => void >this.p1+1 : number ->this.p1 : number ->this : C ->p1 : number +>this.p1 : number, Symbol(p1, Decl(selfInCallback.ts, 0, 9)) +>this : C, Symbol(C, Decl(selfInCallback.ts, 0, 0)) +>p1 : number, Symbol(p1, Decl(selfInCallback.ts, 0, 9)) +>1 : number } } diff --git a/tests/baselines/reference/selfInLambdas.types b/tests/baselines/reference/selfInLambdas.types index 42a58a9294f..d9cd2e8e3b3 100644 --- a/tests/baselines/reference/selfInLambdas.types +++ b/tests/baselines/reference/selfInLambdas.types @@ -1,43 +1,44 @@ === tests/cases/compiler/selfInLambdas.ts === interface MouseEvent { ->MouseEvent : MouseEvent +>MouseEvent : MouseEvent, Symbol(MouseEvent, Decl(selfInLambdas.ts, 0, 0)) x: number; ->x : number +>x : number, Symbol(x, Decl(selfInLambdas.ts, 0, 22)) y: number; ->y : number +>y : number, Symbol(y, Decl(selfInLambdas.ts, 1, 14)) } declare var window: Window; ->window : Window ->Window : Window +>window : Window, Symbol(window, Decl(selfInLambdas.ts, 5, 11)) +>Window : Window, Symbol(Window, Decl(selfInLambdas.ts, 5, 27)) interface Window { ->Window : Window +>Window : Window, Symbol(Window, Decl(selfInLambdas.ts, 5, 27)) onmousemove: (ev: MouseEvent) => any; ->onmousemove : (ev: MouseEvent) => any ->ev : MouseEvent ->MouseEvent : MouseEvent +>onmousemove : (ev: MouseEvent) => any, Symbol(onmousemove, Decl(selfInLambdas.ts, 6, 18)) +>ev : MouseEvent, Symbol(ev, Decl(selfInLambdas.ts, 7, 18)) +>MouseEvent : MouseEvent, Symbol(MouseEvent, Decl(selfInLambdas.ts, 0, 0)) } var o = { ->o : { counter: number; start: () => void; } +>o : { counter: number; start: () => void; }, Symbol(o, Decl(selfInLambdas.ts, 10, 3)) >{ counter: 0, start: function() { window.onmousemove = () => { this.counter++ var f = () => this.counter; } }} : { counter: number; start: () => void; } counter: 0, ->counter : number +>counter : number, Symbol(counter, Decl(selfInLambdas.ts, 10, 9)) +>0 : number start: function() { ->start : () => void +>start : () => void, Symbol(start, Decl(selfInLambdas.ts, 12, 15)) >function() { window.onmousemove = () => { this.counter++ var f = () => this.counter; } } : () => void window.onmousemove = () => { >window.onmousemove = () => { this.counter++ var f = () => this.counter; } : () => void ->window.onmousemove : (ev: MouseEvent) => any ->window : Window ->onmousemove : (ev: MouseEvent) => any +>window.onmousemove : (ev: MouseEvent) => any, Symbol(Window.onmousemove, Decl(selfInLambdas.ts, 6, 18)) +>window : Window, Symbol(window, Decl(selfInLambdas.ts, 5, 11)) +>onmousemove : (ev: MouseEvent) => any, Symbol(Window.onmousemove, Decl(selfInLambdas.ts, 6, 18)) >() => { this.counter++ var f = () => this.counter; } : () => void this.counter++ @@ -47,7 +48,7 @@ var o = { >counter : any var f = () => this.counter; ->f : () => any +>f : () => any, Symbol(f, Decl(selfInLambdas.ts, 18, 15)) >() => this.counter : () => any >this.counter : any >this : any @@ -62,43 +63,44 @@ var o = { class X { ->X : X +>X : X, Symbol(X, Decl(selfInLambdas.ts, 24, 1)) private value = "value"; ->value : string +>value : string, Symbol(value, Decl(selfInLambdas.ts, 28, 9)) +>"value" : string public foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(selfInLambdas.ts, 29, 25)) var outer= () => { ->outer : () => void +>outer : () => void, Symbol(outer, Decl(selfInLambdas.ts, 32, 5)) >() => { var x = this.value; var inner = () => { var y = this.value; } inner(); } : () => void var x = this.value; ->x : string ->this.value : string ->this : X ->value : string +>x : string, Symbol(x, Decl(selfInLambdas.ts, 33, 15)) +>this.value : string, Symbol(value, Decl(selfInLambdas.ts, 28, 9)) +>this : X, Symbol(X, Decl(selfInLambdas.ts, 24, 1)) +>value : string, Symbol(value, Decl(selfInLambdas.ts, 28, 9)) var inner = () => { ->inner : () => void +>inner : () => void, Symbol(inner, Decl(selfInLambdas.ts, 34, 15)) >() => { var y = this.value; } : () => void var y = this.value; ->y : string ->this.value : string ->this : X ->value : string +>y : string, Symbol(y, Decl(selfInLambdas.ts, 35, 19)) +>this.value : string, Symbol(value, Decl(selfInLambdas.ts, 28, 9)) +>this : X, Symbol(X, Decl(selfInLambdas.ts, 24, 1)) +>value : string, Symbol(value, Decl(selfInLambdas.ts, 28, 9)) } inner(); >inner() : void ->inner : () => void +>inner : () => void, Symbol(inner, Decl(selfInLambdas.ts, 34, 15)) }; outer(); >outer() : void ->outer : () => void +>outer : () => void, Symbol(outer, Decl(selfInLambdas.ts, 32, 5)) } } diff --git a/tests/baselines/reference/separate1-2.types b/tests/baselines/reference/separate1-2.types index 11b19d0b476..efd5e687f99 100644 --- a/tests/baselines/reference/separate1-2.types +++ b/tests/baselines/reference/separate1-2.types @@ -1,7 +1,7 @@ === tests/cases/compiler/separate1-2.ts === module X { ->X : typeof X +>X : typeof X, Symbol(X, Decl(separate1-2.ts, 0, 0)) export function f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(separate1-2.ts, 0, 10)) } diff --git a/tests/baselines/reference/separateCompilationES6.types b/tests/baselines/reference/separateCompilationES6.types index 70381906800..9bebdae07e7 100644 --- a/tests/baselines/reference/separateCompilationES6.types +++ b/tests/baselines/reference/separateCompilationES6.types @@ -1,4 +1,4 @@ === tests/cases/compiler/separateCompilationES6.ts === export var x; ->x : any +>x : any, Symbol(x, Decl(separateCompilationES6.ts, 0, 10)) diff --git a/tests/baselines/reference/separateCompilationNonAmbientConstEnum.types b/tests/baselines/reference/separateCompilationNonAmbientConstEnum.types index d444cbd1493..66d41f3dd3d 100644 --- a/tests/baselines/reference/separateCompilationNonAmbientConstEnum.types +++ b/tests/baselines/reference/separateCompilationNonAmbientConstEnum.types @@ -1,15 +1,16 @@ === tests/cases/compiler/separateCompilationNonAmbientConstEnum.ts === const enum E { X = 100 }; ->E : E ->X : E +>E : E, Symbol(E, Decl(separateCompilationNonAmbientConstEnum.ts, 0, 0)) +>X : E, Symbol(E.X, Decl(separateCompilationNonAmbientConstEnum.ts, 1, 14)) +>100 : number var e = E.X; ->e : E ->E.X : E ->E : typeof E ->X : E +>e : E, Symbol(e, Decl(separateCompilationNonAmbientConstEnum.ts, 2, 3)) +>E.X : E, Symbol(E.X, Decl(separateCompilationNonAmbientConstEnum.ts, 1, 14)) +>E : typeof E, Symbol(E, Decl(separateCompilationNonAmbientConstEnum.ts, 0, 0)) +>X : E, Symbol(E.X, Decl(separateCompilationNonAmbientConstEnum.ts, 1, 14)) export var x; ->x : any +>x : any, Symbol(x, Decl(separateCompilationNonAmbientConstEnum.ts, 3, 10)) diff --git a/tests/baselines/reference/separateCompilationSpecifiedModule.types b/tests/baselines/reference/separateCompilationSpecifiedModule.types index 497f63faf62..9031c62e357 100644 --- a/tests/baselines/reference/separateCompilationSpecifiedModule.types +++ b/tests/baselines/reference/separateCompilationSpecifiedModule.types @@ -1,4 +1,4 @@ === tests/cases/compiler/separateCompilationSpecifiedModule.ts === export var x; ->x : any +>x : any, Symbol(x, Decl(separateCompilationSpecifiedModule.ts, 0, 10)) diff --git a/tests/baselines/reference/separateCompilationWithDeclarationFile.types b/tests/baselines/reference/separateCompilationWithDeclarationFile.types index 94adc5fa27e..fdf2f20c6c7 100644 --- a/tests/baselines/reference/separateCompilationWithDeclarationFile.types +++ b/tests/baselines/reference/separateCompilationWithDeclarationFile.types @@ -1,9 +1,9 @@ === tests/cases/compiler/file1.d.ts === declare function foo(): void; ->foo : () => void +>foo : () => void, Symbol(foo, Decl(file1.d.ts, 0, 0)) === tests/cases/compiler/file1.ts === export var x; ->x : any +>x : any, Symbol(x, Decl(file1.ts, 0, 10)) diff --git a/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.types b/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.types index 181effe4f90..4090da5cad5 100644 --- a/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.types +++ b/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.types @@ -1,24 +1,24 @@ === tests/cases/compiler/sigantureIsSubTypeIfTheyAreIdentical.ts === interface ICache { ->ICache : ICache +>ICache : ICache, Symbol(ICache, Decl(sigantureIsSubTypeIfTheyAreIdentical.ts, 0, 0)) get(key: string): T; ->get : (key: string) => T ->T : T ->key : string ->T : T +>get : (key: string) => T, Symbol(get, Decl(sigantureIsSubTypeIfTheyAreIdentical.ts, 0, 18)) +>T : T, Symbol(T, Decl(sigantureIsSubTypeIfTheyAreIdentical.ts, 1, 8)) +>key : string, Symbol(key, Decl(sigantureIsSubTypeIfTheyAreIdentical.ts, 1, 11)) +>T : T, Symbol(T, Decl(sigantureIsSubTypeIfTheyAreIdentical.ts, 1, 8)) } class CacheService implements ICache { // Should not error that property type of get are incomaptible ->CacheService : CacheService ->ICache : ICache +>CacheService : CacheService, Symbol(CacheService, Decl(sigantureIsSubTypeIfTheyAreIdentical.ts, 2, 1)) +>ICache : ICache, Symbol(ICache, Decl(sigantureIsSubTypeIfTheyAreIdentical.ts, 0, 0)) get(key: string): T { ->get : (key: string) => T ->T : T ->key : string ->T : T +>get : (key: string) => T, Symbol(get, Decl(sigantureIsSubTypeIfTheyAreIdentical.ts, 3, 38)) +>T : T, Symbol(T, Decl(sigantureIsSubTypeIfTheyAreIdentical.ts, 4, 8)) +>key : string, Symbol(key, Decl(sigantureIsSubTypeIfTheyAreIdentical.ts, 4, 11)) +>T : T, Symbol(T, Decl(sigantureIsSubTypeIfTheyAreIdentical.ts, 4, 8)) return undefined; ->undefined : undefined +>undefined : undefined, Symbol(undefined) } } diff --git a/tests/baselines/reference/simpleArrowFunctionParameterReferencedInObjectLiteral1.types b/tests/baselines/reference/simpleArrowFunctionParameterReferencedInObjectLiteral1.types index 417a51ac4b8..f6ad6dfbc0a 100644 --- a/tests/baselines/reference/simpleArrowFunctionParameterReferencedInObjectLiteral1.types +++ b/tests/baselines/reference/simpleArrowFunctionParameterReferencedInObjectLiteral1.types @@ -1,18 +1,18 @@ === tests/cases/compiler/simpleArrowFunctionParameterReferencedInObjectLiteral1.ts === [].map(() => [].map(p => ({ X: p }))); >[].map(() => [].map(p => ({ X: p }))) : { X: any; }[][] ->[].map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[] +>[].map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >[] : undefined[] ->map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[] +>map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >() => [].map(p => ({ X: p })) : () => { X: any; }[] >[].map(p => ({ X: p })) : { X: any; }[] ->[].map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[] +>[].map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >[] : undefined[] ->map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[] +>map : (callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >p => ({ X: p }) : (p: any) => { X: any; } ->p : any +>p : any, Symbol(p, Decl(simpleArrowFunctionParameterReferencedInObjectLiteral1.ts, 0, 20)) >({ X: p }) : { X: any; } >{ X: p } : { X: any; } ->X : any ->p : any +>X : any, Symbol(X, Decl(simpleArrowFunctionParameterReferencedInObjectLiteral1.ts, 0, 27)) +>p : any, Symbol(p, Decl(simpleArrowFunctionParameterReferencedInObjectLiteral1.ts, 0, 20)) diff --git a/tests/baselines/reference/sourceMap-FileWithComments.types b/tests/baselines/reference/sourceMap-FileWithComments.types index ecb32311c4a..4b7f559991c 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.types +++ b/tests/baselines/reference/sourceMap-FileWithComments.types @@ -2,84 +2,90 @@ // Interface interface IPoint { ->IPoint : IPoint +>IPoint : IPoint, Symbol(IPoint, Decl(sourceMap-FileWithComments.ts, 0, 0)) getDist(): number; ->getDist : () => number +>getDist : () => number, Symbol(getDist, Decl(sourceMap-FileWithComments.ts, 2, 18)) } // Module module Shapes { ->Shapes : typeof Shapes +>Shapes : typeof Shapes, Symbol(Shapes, Decl(sourceMap-FileWithComments.ts, 4, 1)) // Class export class Point implements IPoint { ->Point : Point ->IPoint : IPoint +>Point : Point, Symbol(Point, Decl(sourceMap-FileWithComments.ts, 7, 15)) +>IPoint : IPoint, Symbol(IPoint, Decl(sourceMap-FileWithComments.ts, 0, 0)) // Constructor constructor(public x: number, public y: number) { } ->x : number ->y : number +>x : number, Symbol(x, Decl(sourceMap-FileWithComments.ts, 12, 20)) +>y : number, Symbol(y, Decl(sourceMap-FileWithComments.ts, 12, 37)) // Instance member getDist() { return Math.sqrt(this.x * this.x + this.y * this.y); } ->getDist : () => number +>getDist : () => number, Symbol(getDist, Decl(sourceMap-FileWithComments.ts, 12, 59)) >Math.sqrt(this.x * this.x + this.y * this.y) : number ->Math.sqrt : (x: number) => number ->Math : Math ->sqrt : (x: number) => number +>Math.sqrt : (x: number) => number, Symbol(Math.sqrt, Decl(lib.d.ts, 620, 27)) +>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11)) +>sqrt : (x: number) => number, Symbol(Math.sqrt, Decl(lib.d.ts, 620, 27)) >this.x * this.x + this.y * this.y : number >this.x * this.x : number ->this.x : number ->this : Point ->x : number ->this.x : number ->this : Point ->x : number +>this.x : number, Symbol(x, Decl(sourceMap-FileWithComments.ts, 12, 20)) +>this : Point, Symbol(Point, Decl(sourceMap-FileWithComments.ts, 7, 15)) +>x : number, Symbol(x, Decl(sourceMap-FileWithComments.ts, 12, 20)) +>this.x : number, Symbol(x, Decl(sourceMap-FileWithComments.ts, 12, 20)) +>this : Point, Symbol(Point, Decl(sourceMap-FileWithComments.ts, 7, 15)) +>x : number, Symbol(x, Decl(sourceMap-FileWithComments.ts, 12, 20)) >this.y * this.y : number ->this.y : number ->this : Point ->y : number ->this.y : number ->this : Point ->y : number +>this.y : number, Symbol(y, Decl(sourceMap-FileWithComments.ts, 12, 37)) +>this : Point, Symbol(Point, Decl(sourceMap-FileWithComments.ts, 7, 15)) +>y : number, Symbol(y, Decl(sourceMap-FileWithComments.ts, 12, 37)) +>this.y : number, Symbol(y, Decl(sourceMap-FileWithComments.ts, 12, 37)) +>this : Point, Symbol(Point, Decl(sourceMap-FileWithComments.ts, 7, 15)) +>y : number, Symbol(y, Decl(sourceMap-FileWithComments.ts, 12, 37)) // Static member static origin = new Point(0, 0); ->origin : Point +>origin : Point, Symbol(Point.origin, Decl(sourceMap-FileWithComments.ts, 15, 74)) >new Point(0, 0) : Point ->Point : typeof Point +>Point : typeof Point, Symbol(Point, Decl(sourceMap-FileWithComments.ts, 7, 15)) +>0 : number +>0 : number } // Variable comment after class var a = 10; ->a : number +>a : number, Symbol(a, Decl(sourceMap-FileWithComments.ts, 22, 7)) +>10 : number export function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(sourceMap-FileWithComments.ts, 22, 15)) } /** comment after function * this is another comment */ var b = 10; ->b : number +>b : number, Symbol(b, Decl(sourceMap-FileWithComments.ts, 30, 7)) +>10 : number } /** Local Variable */ var p: IPoint = new Shapes.Point(3, 4); ->p : IPoint ->IPoint : IPoint +>p : IPoint, Symbol(p, Decl(sourceMap-FileWithComments.ts, 34, 3)) +>IPoint : IPoint, Symbol(IPoint, Decl(sourceMap-FileWithComments.ts, 0, 0)) >new Shapes.Point(3, 4) : Shapes.Point ->Shapes.Point : typeof Shapes.Point ->Shapes : typeof Shapes ->Point : typeof Shapes.Point +>Shapes.Point : typeof Shapes.Point, Symbol(Shapes.Point, Decl(sourceMap-FileWithComments.ts, 7, 15)) +>Shapes : typeof Shapes, Symbol(Shapes, Decl(sourceMap-FileWithComments.ts, 4, 1)) +>Point : typeof Shapes.Point, Symbol(Shapes.Point, Decl(sourceMap-FileWithComments.ts, 7, 15)) +>3 : number +>4 : number var dist = p.getDist(); ->dist : number +>dist : number, Symbol(dist, Decl(sourceMap-FileWithComments.ts, 35, 3)) >p.getDist() : number ->p.getDist : () => number ->p : IPoint ->getDist : () => number +>p.getDist : () => number, Symbol(IPoint.getDist, Decl(sourceMap-FileWithComments.ts, 2, 18)) +>p : IPoint, Symbol(p, Decl(sourceMap-FileWithComments.ts, 34, 3)) +>getDist : () => number, Symbol(IPoint.getDist, Decl(sourceMap-FileWithComments.ts, 2, 18)) diff --git a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.types b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.types index a27c426105c..7676d9a5816 100644 --- a/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.types +++ b/tests/baselines/reference/sourceMap-InterfacePrecedingVariableDeclaration1.types @@ -1,8 +1,9 @@ === tests/cases/compiler/sourceMap-InterfacePrecedingVariableDeclaration1.ts === interface I {} ->I : I +>I : I, Symbol(I, Decl(sourceMap-InterfacePrecedingVariableDeclaration1.ts, 0, 0)) var x = 0; ->x : number +>x : number, Symbol(x, Decl(sourceMap-InterfacePrecedingVariableDeclaration1.ts, 2, 3)) +>0 : number diff --git a/tests/baselines/reference/sourceMap-LineBreaks.types b/tests/baselines/reference/sourceMap-LineBreaks.types index cc2eebc973d..236204309d2 100644 --- a/tests/baselines/reference/sourceMap-LineBreaks.types +++ b/tests/baselines/reference/sourceMap-LineBreaks.types @@ -1,30 +1,40 @@ === tests/cases/compiler/sourceMap-LineBreaks.ts === var endsWithlineSeparator = 10; 
var endsWithParagraphSeparator = 10; 
var endsWithNextLine = 1;…var endsWithLineFeed = 1; ->endsWithlineSeparator : number +>endsWithlineSeparator : number, Symbol(endsWithlineSeparator, Decl(sourceMap-LineBreaks.ts, 0, 3)) +>10 : number var endsWithCarriageReturnLineFeed = 1; ->endsWithParagraphSeparator : number +>endsWithParagraphSeparator : number, Symbol(endsWithParagraphSeparator, Decl(sourceMap-LineBreaks.ts, 1, 3)) +>10 : number var endsWithCarriageReturn = 1; var endsWithLineFeedCarriageReturn = 1; ->endsWithNextLine : number ->endsWithLineFeed : number +>endsWithNextLine : number, Symbol(endsWithNextLine, Decl(sourceMap-LineBreaks.ts, 2, 3)) +>1 : number +>endsWithLineFeed : number, Symbol(endsWithLineFeed, Decl(sourceMap-LineBreaks.ts, 2, 29)) +>1 : number var endsWithLineFeedCarriageReturnLineFeed = 1; ->endsWithCarriageReturnLineFeed : number +>endsWithCarriageReturnLineFeed : number, Symbol(endsWithCarriageReturnLineFeed, Decl(sourceMap-LineBreaks.ts, 3, 3)) +>1 : number ->endsWithCarriageReturn : number +>endsWithCarriageReturn : number, Symbol(endsWithCarriageReturn, Decl(sourceMap-LineBreaks.ts, 4, 3)) +>1 : number var stringLiteralWithLineFeed = "line 1\ ->endsWithLineFeedCarriageReturn : number +>endsWithLineFeedCarriageReturn : number, Symbol(endsWithLineFeedCarriageReturn, Decl(sourceMap-LineBreaks.ts, 5, 3)) +>1 : number line 2"; var stringLiteralWithCarriageReturnLineFeed = "line 1\ ->endsWithLineFeedCarriageReturnLineFeed : number +>endsWithLineFeedCarriageReturnLineFeed : number, Symbol(endsWithLineFeedCarriageReturnLineFeed, Decl(sourceMap-LineBreaks.ts, 7, 3)) +>1 : number line 2"; var stringLiteralWithCarriageReturn = "line 1\ line 2"; ->stringLiteralWithLineFeed : string +>stringLiteralWithLineFeed : string, Symbol(stringLiteralWithLineFeed, Decl(sourceMap-LineBreaks.ts, 9, 3)) +>"line 1\line 2" : string var stringLiteralWithLineSeparator = "line 1\
line 2";
var stringLiteralWithParagraphSeparator = "line 1\
line 2";
var stringLiteralWithNextLine = "line 1\…line 2"; ->stringLiteralWithCarriageReturnLineFeed : string +>stringLiteralWithCarriageReturnLineFeed : string, Symbol(stringLiteralWithCarriageReturnLineFeed, Decl(sourceMap-LineBreaks.ts, 11, 3)) +>"line 1\line 2" : string diff --git a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.types b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.types index 3d71b5a5ca1..0a4dbfdcbac 100644 --- a/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.types +++ b/tests/baselines/reference/sourceMap-StringLiteralWithNewLine.types @@ -1,32 +1,34 @@ === tests/cases/compiler/sourceMap-StringLiteralWithNewLine.ts === interface Document { ->Document : Document +>Document : Document, Symbol(Document, Decl(sourceMap-StringLiteralWithNewLine.ts, 0, 0)) } interface Window { ->Window : Window +>Window : Window, Symbol(Window, Decl(sourceMap-StringLiteralWithNewLine.ts, 2, 1)) document: Document; ->document : Document ->Document : Document +>document : Document, Symbol(document, Decl(sourceMap-StringLiteralWithNewLine.ts, 3, 18)) +>Document : Document, Symbol(Document, Decl(sourceMap-StringLiteralWithNewLine.ts, 0, 0)) } declare var window: Window; ->window : Window ->Window : Window +>window : Window, Symbol(window, Decl(sourceMap-StringLiteralWithNewLine.ts, 6, 11)) +>Window : Window, Symbol(Window, Decl(sourceMap-StringLiteralWithNewLine.ts, 2, 1)) module Foo { ->Foo : typeof Foo +>Foo : typeof Foo, Symbol(Foo, Decl(sourceMap-StringLiteralWithNewLine.ts, 6, 27)) var x = "test1"; ->x : string +>x : string, Symbol(x, Decl(sourceMap-StringLiteralWithNewLine.ts, 9, 7)) +>"test1" : string var y = "test 2\ ->y : string +>y : string, Symbol(y, Decl(sourceMap-StringLiteralWithNewLine.ts, 10, 7)) +>"test 2\isn't this a lot of fun" : string isn't this a lot of fun"; var z = window.document; ->z : Document ->window.document : Document ->window : Window ->document : Document +>z : Document, Symbol(z, Decl(sourceMap-StringLiteralWithNewLine.ts, 12, 7)) +>window.document : Document, Symbol(Window.document, Decl(sourceMap-StringLiteralWithNewLine.ts, 3, 18)) +>window : Window, Symbol(window, Decl(sourceMap-StringLiteralWithNewLine.ts, 6, 11)) +>document : Document, Symbol(Window.document, Decl(sourceMap-StringLiteralWithNewLine.ts, 3, 18)) } diff --git a/tests/baselines/reference/sourceMapValidationClass.types b/tests/baselines/reference/sourceMapValidationClass.types index 1e10c244da3..70f97c206d7 100644 --- a/tests/baselines/reference/sourceMapValidationClass.types +++ b/tests/baselines/reference/sourceMapValidationClass.types @@ -1,52 +1,55 @@ === tests/cases/compiler/sourceMapValidationClass.ts === class Greeter { ->Greeter : Greeter +>Greeter : Greeter, Symbol(Greeter, Decl(sourceMapValidationClass.ts, 0, 0)) constructor(public greeting: string, ...b: string[]) { ->greeting : string ->b : string[] +>greeting : string, Symbol(greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>b : string[], Symbol(b, Decl(sourceMapValidationClass.ts, 1, 40)) } greet() { ->greet : () => string +>greet : () => string, Symbol(greet, Decl(sourceMapValidationClass.ts, 2, 5)) return "

" + this.greeting + "

"; >"

" + this.greeting + "

" : string >"

" + this.greeting : string ->this.greeting : string ->this : Greeter ->greeting : string +>"

" : string +>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationClass.ts, 0, 0)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>"

" : string } private x: string; ->x : string +>x : string, Symbol(x, Decl(sourceMapValidationClass.ts, 5, 5)) private x1: number = 10; ->x1 : number +>x1 : number, Symbol(x1, Decl(sourceMapValidationClass.ts, 6, 22)) +>10 : number private fn() { ->fn : () => string +>fn : () => string, Symbol(fn, Decl(sourceMapValidationClass.ts, 7, 28)) return this.greeting; ->this.greeting : string ->this : Greeter ->greeting : string +>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationClass.ts, 0, 0)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationClass.ts, 1, 16)) } get greetings() { ->greetings : string +>greetings : string, Symbol(greetings, Decl(sourceMapValidationClass.ts, 10, 5), Decl(sourceMapValidationClass.ts, 13, 5)) return this.greeting; ->this.greeting : string ->this : Greeter ->greeting : string +>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationClass.ts, 0, 0)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationClass.ts, 1, 16)) } set greetings(greetings: string) { ->greetings : string ->greetings : string +>greetings : string, Symbol(greetings, Decl(sourceMapValidationClass.ts, 10, 5), Decl(sourceMapValidationClass.ts, 13, 5)) +>greetings : string, Symbol(greetings, Decl(sourceMapValidationClass.ts, 14, 18)) this.greeting = greetings; >this.greeting = greetings : string ->this.greeting : string ->this : Greeter ->greeting : string ->greetings : string +>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationClass.ts, 0, 0)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationClass.ts, 1, 16)) +>greetings : string, Symbol(greetings, Decl(sourceMapValidationClass.ts, 14, 18)) } } diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.types b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.types index 894576a2c96..bcf11088f25 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.types +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructor.types @@ -1,10 +1,12 @@ === tests/cases/compiler/sourceMapValidationClassWithDefaultConstructor.ts === class Greeter { ->Greeter : Greeter +>Greeter : Greeter, Symbol(Greeter, Decl(sourceMapValidationClassWithDefaultConstructor.ts, 0, 0)) public a = 10; ->a : number +>a : number, Symbol(a, Decl(sourceMapValidationClassWithDefaultConstructor.ts, 0, 15)) +>10 : number public nameA = "Ten"; ->nameA : string +>nameA : string, Symbol(nameA, Decl(sourceMapValidationClassWithDefaultConstructor.ts, 1, 18)) +>"Ten" : string } diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.types b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.types index 6b0b25acf56..9ba7eca56b6 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.types +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.types @@ -1,14 +1,15 @@ === tests/cases/compiler/sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.ts === class Greeter { ->Greeter : Greeter +>Greeter : Greeter, Symbol(Greeter, Decl(sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.ts, 0, 0)) public a = 10; ->a : number +>a : number, Symbol(a, Decl(sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.ts, 0, 15)) +>10 : number public returnA = () => this.a; ->returnA : () => number +>returnA : () => number, Symbol(returnA, Decl(sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.ts, 1, 18)) >() => this.a : () => number ->this.a : number ->this : Greeter ->a : number +>this.a : number, Symbol(a, Decl(sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.ts, 0, 15)) +>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.ts, 0, 0)) +>a : number, Symbol(a, Decl(sourceMapValidationClassWithDefaultConstructorAndCapturedThisStatement.ts, 0, 15)) } diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.types b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.types index e1a3c814520..05fddbbed1c 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.types +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.types @@ -1,15 +1,17 @@ === tests/cases/compiler/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts === class AbstractGreeter { ->AbstractGreeter : AbstractGreeter +>AbstractGreeter : AbstractGreeter, Symbol(AbstractGreeter, Decl(sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts, 0, 0)) } class Greeter extends AbstractGreeter { ->Greeter : Greeter ->AbstractGreeter : AbstractGreeter +>Greeter : Greeter, Symbol(Greeter, Decl(sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts, 1, 1)) +>AbstractGreeter : AbstractGreeter, Symbol(AbstractGreeter, Decl(sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts, 0, 0)) public a = 10; ->a : number +>a : number, Symbol(a, Decl(sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts, 3, 39)) +>10 : number public nameA = "Ten"; ->nameA : string +>nameA : string, Symbol(nameA, Decl(sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts, 4, 18)) +>"Ten" : string } diff --git a/tests/baselines/reference/sourceMapValidationClasses.types b/tests/baselines/reference/sourceMapValidationClasses.types index 4f391c86f65..14fe1591d1b 100644 --- a/tests/baselines/reference/sourceMapValidationClasses.types +++ b/tests/baselines/reference/sourceMapValidationClasses.types @@ -1,119 +1,129 @@ === tests/cases/compiler/sourceMapValidationClasses.ts === module Foo.Bar { ->Foo : typeof Foo ->Bar : typeof Bar +>Foo : typeof Foo, Symbol(Foo, Decl(sourceMapValidationClasses.ts, 0, 0)) +>Bar : typeof Bar, Symbol(Bar, Decl(sourceMapValidationClasses.ts, 0, 11)) "use strict"; +>"use strict" : string class Greeter { ->Greeter : Greeter +>Greeter : Greeter, Symbol(Greeter, Decl(sourceMapValidationClasses.ts, 1, 17)) constructor(public greeting: string) { ->greeting : string +>greeting : string, Symbol(greeting, Decl(sourceMapValidationClasses.ts, 4, 20)) } greet() { ->greet : () => string +>greet : () => string, Symbol(greet, Decl(sourceMapValidationClasses.ts, 5, 9)) return "

" + this.greeting + "

"; >"

" + this.greeting + "

" : string >"

" + this.greeting : string ->this.greeting : string ->this : Greeter ->greeting : string +>"

" : string +>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationClasses.ts, 4, 20)) +>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationClasses.ts, 1, 17)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationClasses.ts, 4, 20)) +>"

" : string } } function foo(greeting: string): Greeter { ->foo : (greeting: string) => Greeter ->greeting : string ->Greeter : Greeter +>foo : (greeting: string) => Greeter, Symbol(foo, Decl(sourceMapValidationClasses.ts, 10, 5)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationClasses.ts, 13, 17)) +>Greeter : Greeter, Symbol(Greeter, Decl(sourceMapValidationClasses.ts, 1, 17)) return new Greeter(greeting); >new Greeter(greeting) : Greeter ->Greeter : typeof Greeter ->greeting : string +>Greeter : typeof Greeter, Symbol(Greeter, Decl(sourceMapValidationClasses.ts, 1, 17)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationClasses.ts, 13, 17)) } var greeter = new Greeter("Hello, world!"); ->greeter : Greeter +>greeter : Greeter, Symbol(greeter, Decl(sourceMapValidationClasses.ts, 17, 7)) >new Greeter("Hello, world!") : Greeter ->Greeter : typeof Greeter +>Greeter : typeof Greeter, Symbol(Greeter, Decl(sourceMapValidationClasses.ts, 1, 17)) +>"Hello, world!" : string var str = greeter.greet(); ->str : string +>str : string, Symbol(str, Decl(sourceMapValidationClasses.ts, 18, 7)) >greeter.greet() : string ->greeter.greet : () => string ->greeter : Greeter ->greet : () => string +>greeter.greet : () => string, Symbol(Greeter.greet, Decl(sourceMapValidationClasses.ts, 5, 9)) +>greeter : Greeter, Symbol(greeter, Decl(sourceMapValidationClasses.ts, 17, 7)) +>greet : () => string, Symbol(Greeter.greet, Decl(sourceMapValidationClasses.ts, 5, 9)) function foo2(greeting: string, ...restGreetings /* more greeting */: string[]) { ->foo2 : (greeting: string, ...restGreetings: string[]) => Greeter[] ->greeting : string ->restGreetings : string[] +>foo2 : (greeting: string, ...restGreetings: string[]) => Greeter[], Symbol(foo2, Decl(sourceMapValidationClasses.ts, 18, 30)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationClasses.ts, 20, 18)) +>restGreetings : string[], Symbol(restGreetings, Decl(sourceMapValidationClasses.ts, 20, 35)) var greeters: Greeter[] = []; /* inline block comment */ ->greeters : Greeter[] ->Greeter : Greeter +>greeters : Greeter[], Symbol(greeters, Decl(sourceMapValidationClasses.ts, 21, 11)) +>Greeter : Greeter, Symbol(Greeter, Decl(sourceMapValidationClasses.ts, 1, 17)) >[] : undefined[] greeters[0] = new Greeter(greeting); >greeters[0] = new Greeter(greeting) : Greeter >greeters[0] : Greeter ->greeters : Greeter[] +>greeters : Greeter[], Symbol(greeters, Decl(sourceMapValidationClasses.ts, 21, 11)) +>0 : number >new Greeter(greeting) : Greeter ->Greeter : typeof Greeter ->greeting : string +>Greeter : typeof Greeter, Symbol(Greeter, Decl(sourceMapValidationClasses.ts, 1, 17)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationClasses.ts, 20, 18)) for (var i = 0; i < restGreetings.length; i++) { ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationClasses.ts, 23, 16)) +>0 : number >i < restGreetings.length : boolean ->i : number ->restGreetings.length : number ->restGreetings : string[] ->length : number +>i : number, Symbol(i, Decl(sourceMapValidationClasses.ts, 23, 16)) +>restGreetings.length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) +>restGreetings : string[], Symbol(restGreetings, Decl(sourceMapValidationClasses.ts, 20, 35)) +>length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationClasses.ts, 23, 16)) greeters.push(new Greeter(restGreetings[i])); >greeters.push(new Greeter(restGreetings[i])) : number ->greeters.push : (...items: Greeter[]) => number ->greeters : Greeter[] ->push : (...items: Greeter[]) => number +>greeters.push : (...items: Greeter[]) => number, Symbol(Array.push, Decl(lib.d.ts, 1016, 29)) +>greeters : Greeter[], Symbol(greeters, Decl(sourceMapValidationClasses.ts, 21, 11)) +>push : (...items: Greeter[]) => number, Symbol(Array.push, Decl(lib.d.ts, 1016, 29)) >new Greeter(restGreetings[i]) : Greeter ->Greeter : typeof Greeter +>Greeter : typeof Greeter, Symbol(Greeter, Decl(sourceMapValidationClasses.ts, 1, 17)) >restGreetings[i] : string ->restGreetings : string[] ->i : number +>restGreetings : string[], Symbol(restGreetings, Decl(sourceMapValidationClasses.ts, 20, 35)) +>i : number, Symbol(i, Decl(sourceMapValidationClasses.ts, 23, 16)) } return greeters; ->greeters : Greeter[] +>greeters : Greeter[], Symbol(greeters, Decl(sourceMapValidationClasses.ts, 21, 11)) } var b = foo2("Hello", "World", "!"); ->b : Greeter[] +>b : Greeter[], Symbol(b, Decl(sourceMapValidationClasses.ts, 30, 7)) >foo2("Hello", "World", "!") : Greeter[] ->foo2 : (greeting: string, ...restGreetings: string[]) => Greeter[] +>foo2 : (greeting: string, ...restGreetings: string[]) => Greeter[], Symbol(foo2, Decl(sourceMapValidationClasses.ts, 18, 30)) +>"Hello" : string +>"World" : string +>"!" : string // This is simple signle line comment for (var j = 0; j < b.length; j++) { ->j : number +>j : number, Symbol(j, Decl(sourceMapValidationClasses.ts, 32, 12)) +>0 : number >j < b.length : boolean ->j : number ->b.length : number ->b : Greeter[] ->length : number +>j : number, Symbol(j, Decl(sourceMapValidationClasses.ts, 32, 12)) +>b.length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) +>b : Greeter[], Symbol(b, Decl(sourceMapValidationClasses.ts, 30, 7)) +>length : number, Symbol(Array.length, Decl(lib.d.ts, 1007, 20)) >j++ : number ->j : number +>j : number, Symbol(j, Decl(sourceMapValidationClasses.ts, 32, 12)) b[j].greet(); >b[j].greet() : string ->b[j].greet : () => string +>b[j].greet : () => string, Symbol(Greeter.greet, Decl(sourceMapValidationClasses.ts, 5, 9)) >b[j] : Greeter ->b : Greeter[] ->j : number ->greet : () => string +>b : Greeter[], Symbol(b, Decl(sourceMapValidationClasses.ts, 30, 7)) +>j : number, Symbol(j, Decl(sourceMapValidationClasses.ts, 32, 12)) +>greet : () => string, Symbol(Greeter.greet, Decl(sourceMapValidationClasses.ts, 5, 9)) } } diff --git a/tests/baselines/reference/sourceMapValidationDecorators.types b/tests/baselines/reference/sourceMapValidationDecorators.types index 8be7f237391..c5bef2374af 100644 --- a/tests/baselines/reference/sourceMapValidationDecorators.types +++ b/tests/baselines/reference/sourceMapValidationDecorators.types @@ -1,170 +1,182 @@ === tests/cases/compiler/sourceMapValidationDecorators.ts === declare function ClassDecorator1(target: Function): void; ->ClassDecorator1 : (target: Function) => void ->target : Function ->Function : Function +>ClassDecorator1 : (target: Function) => void, Symbol(ClassDecorator1, Decl(sourceMapValidationDecorators.ts, 0, 0)) +>target : Function, Symbol(target, Decl(sourceMapValidationDecorators.ts, 0, 33)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) declare function ClassDecorator2(x: number): (target: Function) => void; ->ClassDecorator2 : (x: number) => (target: Function) => void ->x : number ->target : Function ->Function : Function +>ClassDecorator2 : (x: number) => (target: Function) => void, Symbol(ClassDecorator2, Decl(sourceMapValidationDecorators.ts, 0, 57)) +>x : number, Symbol(x, Decl(sourceMapValidationDecorators.ts, 1, 33)) +>target : Function, Symbol(target, Decl(sourceMapValidationDecorators.ts, 1, 46)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void; ->PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void ->target : Object ->Object : Object ->key : string | symbol ->descriptor : PropertyDescriptor ->PropertyDescriptor : PropertyDescriptor +>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72)) +>target : Object, Symbol(target, Decl(sourceMapValidationDecorators.ts, 2, 36)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>key : string | symbol, Symbol(key, Decl(sourceMapValidationDecorators.ts, 2, 51)) +>descriptor : PropertyDescriptor, Symbol(descriptor, Decl(sourceMapValidationDecorators.ts, 2, 73)) +>PropertyDescriptor : PropertyDescriptor, Symbol(PropertyDescriptor, Decl(lib.d.ts, 79, 66)) declare function PropertyDecorator2(x: number): (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void; ->PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void ->x : number ->target : Object ->Object : Object ->key : string | symbol ->descriptor : PropertyDescriptor ->PropertyDescriptor : PropertyDescriptor +>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113)) +>x : number, Symbol(x, Decl(sourceMapValidationDecorators.ts, 3, 36)) +>target : Object, Symbol(target, Decl(sourceMapValidationDecorators.ts, 3, 49)) +>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11)) +>key : string | symbol, Symbol(key, Decl(sourceMapValidationDecorators.ts, 3, 64)) +>descriptor : PropertyDescriptor, Symbol(descriptor, Decl(sourceMapValidationDecorators.ts, 3, 86)) +>PropertyDescriptor : PropertyDescriptor, Symbol(PropertyDescriptor, Decl(lib.d.ts, 79, 66)) declare function ParameterDecorator1(target: Function, key: string | symbol, paramIndex: number): void; ->ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void ->target : Function ->Function : Function ->key : string | symbol ->paramIndex : number +>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128)) +>target : Function, Symbol(target, Decl(sourceMapValidationDecorators.ts, 4, 37)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) +>key : string | symbol, Symbol(key, Decl(sourceMapValidationDecorators.ts, 4, 54)) +>paramIndex : number, Symbol(paramIndex, Decl(sourceMapValidationDecorators.ts, 4, 76)) declare function ParameterDecorator2(x: number): (target: Function, key: string | symbol, paramIndex: number) => void; ->ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void ->x : number ->target : Function ->Function : Function ->key : string | symbol ->paramIndex : number +>ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 103)) +>x : number, Symbol(x, Decl(sourceMapValidationDecorators.ts, 5, 37)) +>target : Function, Symbol(target, Decl(sourceMapValidationDecorators.ts, 5, 50)) +>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11)) +>key : string | symbol, Symbol(key, Decl(sourceMapValidationDecorators.ts, 5, 67)) +>paramIndex : number, Symbol(paramIndex, Decl(sourceMapValidationDecorators.ts, 5, 89)) @ClassDecorator1 ->ClassDecorator1 : unknown +>ClassDecorator1 : (target: Function) => void, Symbol(ClassDecorator1, Decl(sourceMapValidationDecorators.ts, 0, 0)) @ClassDecorator2(10) >ClassDecorator2(10) : (target: Function) => void ->ClassDecorator2 : (x: number) => (target: Function) => void +>ClassDecorator2 : (x: number) => (target: Function) => void, Symbol(ClassDecorator2, Decl(sourceMapValidationDecorators.ts, 0, 57)) +>10 : number class Greeter { ->Greeter : Greeter +>Greeter : Greeter, Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 118)) constructor( @ParameterDecorator1 ->ParameterDecorator1 : unknown +>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128)) @ParameterDecorator2(20) >ParameterDecorator2(20) : (target: Function, key: string | symbol, paramIndex: number) => void ->ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void +>ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 103)) +>20 : number public greeting: string, ->greeting : string +>greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) @ParameterDecorator1 ->ParameterDecorator1 : unknown +>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128)) @ParameterDecorator2(30) >ParameterDecorator2(30) : (target: Function, key: string | symbol, paramIndex: number) => void ->ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void +>ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 103)) +>30 : number ...b: string[]) { ->b : string[] +>b : string[], Symbol(b, Decl(sourceMapValidationDecorators.ts, 13, 30)) } @PropertyDecorator1 ->PropertyDecorator1 : unknown +>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72)) @PropertyDecorator2(40) >PropertyDecorator2(40) : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void ->PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113)) +>40 : number greet() { ->greet : () => string +>greet : () => string, Symbol(greet, Decl(sourceMapValidationDecorators.ts, 18, 5)) return "

" + this.greeting + "

"; >"

" + this.greeting + "

" : string >"

" + this.greeting : string ->this.greeting : string ->this : Greeter ->greeting : string +>"

" : string +>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) +>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 118)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) +>"

" : string } @PropertyDecorator1 ->PropertyDecorator1 : unknown +>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72)) @PropertyDecorator2(50) >PropertyDecorator2(50) : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void ->PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113)) +>50 : number private x: string; ->x : string +>x : string, Symbol(x, Decl(sourceMapValidationDecorators.ts, 24, 5)) @PropertyDecorator1 ->PropertyDecorator1 : unknown +>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72)) @PropertyDecorator2(60) >PropertyDecorator2(60) : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void ->PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113)) +>60 : number private static x1: number = 10; ->x1 : number +>x1 : number, Symbol(Greeter.x1, Decl(sourceMapValidationDecorators.ts, 28, 22)) +>10 : number private fn( ->fn : (x: number) => string +>fn : (x: number) => string, Symbol(fn, Decl(sourceMapValidationDecorators.ts, 32, 35)) @ParameterDecorator1 ->ParameterDecorator1 : unknown +>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128)) @ParameterDecorator2(70) >ParameterDecorator2(70) : (target: Function, key: string | symbol, paramIndex: number) => void ->ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void +>ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 103)) +>70 : number x: number) { ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationDecorators.ts, 34, 15)) return this.greeting; ->this.greeting : string ->this : Greeter ->greeting : string +>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) +>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 118)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) } @PropertyDecorator1 ->PropertyDecorator1 : unknown +>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72)) @PropertyDecorator2(80) >PropertyDecorator2(80) : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void ->PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void +>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113)) +>80 : number get greetings() { ->greetings : string +>greetings : string, Symbol(greetings, Decl(sourceMapValidationDecorators.ts, 39, 5), Decl(sourceMapValidationDecorators.ts, 45, 5)) return this.greeting; ->this.greeting : string ->this : Greeter ->greeting : string +>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) +>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 118)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) } set greetings( ->greetings : string +>greetings : string, Symbol(greetings, Decl(sourceMapValidationDecorators.ts, 39, 5), Decl(sourceMapValidationDecorators.ts, 45, 5)) @ParameterDecorator1 ->ParameterDecorator1 : unknown +>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128)) @ParameterDecorator2(90) >ParameterDecorator2(90) : (target: Function, key: string | symbol, paramIndex: number) => void ->ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void +>ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 103)) +>90 : number greetings: string) { ->greetings : string +>greetings : string, Symbol(greetings, Decl(sourceMapValidationDecorators.ts, 47, 18)) this.greeting = greetings; >this.greeting = greetings : string ->this.greeting : string ->this : Greeter ->greeting : string ->greetings : string +>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) +>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 118)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16)) +>greetings : string, Symbol(greetings, Decl(sourceMapValidationDecorators.ts, 47, 18)) } } diff --git a/tests/baselines/reference/sourceMapValidationDo.types b/tests/baselines/reference/sourceMapValidationDo.types index 21bace62317..7c8c662140d 100644 --- a/tests/baselines/reference/sourceMapValidationDo.types +++ b/tests/baselines/reference/sourceMapValidationDo.types @@ -1,23 +1,26 @@ === tests/cases/compiler/sourceMapValidationDo.ts === var i = 0; ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationDo.ts, 0, 3)) +>0 : number do { i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationDo.ts, 0, 3)) } while (i < 10); >i < 10 : boolean ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationDo.ts, 0, 3)) +>10 : number do { i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationDo.ts, 0, 3)) } while (i < 20); >i < 20 : boolean ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationDo.ts, 0, 3)) +>20 : number diff --git a/tests/baselines/reference/sourceMapValidationExportAssignment.types b/tests/baselines/reference/sourceMapValidationExportAssignment.types index 2c4e47486af..5a0d08e2da4 100644 --- a/tests/baselines/reference/sourceMapValidationExportAssignment.types +++ b/tests/baselines/reference/sourceMapValidationExportAssignment.types @@ -1,10 +1,10 @@ === tests/cases/compiler/sourceMapValidationExportAssignment.ts === class a { ->a : a +>a : a, Symbol(a, Decl(sourceMapValidationExportAssignment.ts, 0, 0)) public c; ->c : any +>c : any, Symbol(c, Decl(sourceMapValidationExportAssignment.ts, 0, 9)) } export = a; ->a : a +>a : a, Symbol(a, Decl(sourceMapValidationExportAssignment.ts, 0, 0)) diff --git a/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.types b/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.types index 6a4e97bdbf3..5950dc8dbeb 100644 --- a/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.types +++ b/tests/baselines/reference/sourceMapValidationExportAssignmentCommonjs.types @@ -1,10 +1,10 @@ === tests/cases/compiler/sourceMapValidationExportAssignmentCommonjs.ts === class a { ->a : a +>a : a, Symbol(a, Decl(sourceMapValidationExportAssignmentCommonjs.ts, 0, 0)) public c; ->c : any +>c : any, Symbol(c, Decl(sourceMapValidationExportAssignmentCommonjs.ts, 0, 9)) } export = a; ->a : a +>a : a, Symbol(a, Decl(sourceMapValidationExportAssignmentCommonjs.ts, 0, 0)) diff --git a/tests/baselines/reference/sourceMapValidationFunctionExpressions.types b/tests/baselines/reference/sourceMapValidationFunctionExpressions.types index cd1c82c5819..9d7f6dc3c25 100644 --- a/tests/baselines/reference/sourceMapValidationFunctionExpressions.types +++ b/tests/baselines/reference/sourceMapValidationFunctionExpressions.types @@ -1,26 +1,28 @@ === tests/cases/compiler/sourceMapValidationFunctionExpressions.ts === var greetings = 0; ->greetings : number +>greetings : number, Symbol(greetings, Decl(sourceMapValidationFunctionExpressions.ts, 0, 3)) +>0 : number var greet = (greeting: string): number => { ->greet : (greeting: string) => number +>greet : (greeting: string) => number, Symbol(greet, Decl(sourceMapValidationFunctionExpressions.ts, 1, 3)) >(greeting: string): number => { greetings++; return greetings;} : (greeting: string) => number ->greeting : string +>greeting : string, Symbol(greeting, Decl(sourceMapValidationFunctionExpressions.ts, 1, 13)) greetings++; >greetings++ : number ->greetings : number +>greetings : number, Symbol(greetings, Decl(sourceMapValidationFunctionExpressions.ts, 0, 3)) return greetings; ->greetings : number +>greetings : number, Symbol(greetings, Decl(sourceMapValidationFunctionExpressions.ts, 0, 3)) } greet("Hello"); >greet("Hello") : number ->greet : (greeting: string) => number +>greet : (greeting: string) => number, Symbol(greet, Decl(sourceMapValidationFunctionExpressions.ts, 1, 3)) +>"Hello" : string var incrGreetings = () => greetings++; ->incrGreetings : () => number +>incrGreetings : () => number, Symbol(incrGreetings, Decl(sourceMapValidationFunctionExpressions.ts, 6, 3)) >() => greetings++ : () => number >greetings++ : number ->greetings : number +>greetings : number, Symbol(greetings, Decl(sourceMapValidationFunctionExpressions.ts, 0, 3)) diff --git a/tests/baselines/reference/sourceMapValidationFunctionPropertyAssignment.types b/tests/baselines/reference/sourceMapValidationFunctionPropertyAssignment.types index 4644782c551..5491525b4da 100644 --- a/tests/baselines/reference/sourceMapValidationFunctionPropertyAssignment.types +++ b/tests/baselines/reference/sourceMapValidationFunctionPropertyAssignment.types @@ -1,6 +1,6 @@ === tests/cases/compiler/sourceMapValidationFunctionPropertyAssignment.ts === var x = { n() { } }; ->x : { n(): void; } +>x : { n(): void; }, Symbol(x, Decl(sourceMapValidationFunctionPropertyAssignment.ts, 0, 3)) >{ n() { } } : { n(): void; } ->n : () => void +>n : () => void, Symbol(n, Decl(sourceMapValidationFunctionPropertyAssignment.ts, 0, 9)) diff --git a/tests/baselines/reference/sourceMapValidationFunctions.types b/tests/baselines/reference/sourceMapValidationFunctions.types index 0d110ece2d2..279f6698605 100644 --- a/tests/baselines/reference/sourceMapValidationFunctions.types +++ b/tests/baselines/reference/sourceMapValidationFunctions.types @@ -1,38 +1,41 @@ === tests/cases/compiler/sourceMapValidationFunctions.ts === var greetings = 0; ->greetings : number +>greetings : number, Symbol(greetings, Decl(sourceMapValidationFunctions.ts, 0, 3)) +>0 : number function greet(greeting: string): number { ->greet : (greeting: string) => number ->greeting : string +>greet : (greeting: string) => number, Symbol(greet, Decl(sourceMapValidationFunctions.ts, 0, 18)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationFunctions.ts, 1, 15)) greetings++; >greetings++ : number ->greetings : number +>greetings : number, Symbol(greetings, Decl(sourceMapValidationFunctions.ts, 0, 3)) return greetings; ->greetings : number +>greetings : number, Symbol(greetings, Decl(sourceMapValidationFunctions.ts, 0, 3)) } function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number { ->greet2 : (greeting: string, n?: number, x?: string, ...restParams: string[]) => number ->greeting : string ->n : number ->x : string ->restParams : string[] +>greet2 : (greeting: string, n?: number, x?: string, ...restParams: string[]) => number, Symbol(greet2, Decl(sourceMapValidationFunctions.ts, 4, 1)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationFunctions.ts, 5, 16)) +>n : number, Symbol(n, Decl(sourceMapValidationFunctions.ts, 5, 33)) +>10 : number +>x : string, Symbol(x, Decl(sourceMapValidationFunctions.ts, 5, 41)) +>restParams : string[], Symbol(restParams, Decl(sourceMapValidationFunctions.ts, 5, 53)) greetings++; >greetings++ : number ->greetings : number +>greetings : number, Symbol(greetings, Decl(sourceMapValidationFunctions.ts, 0, 3)) return greetings; ->greetings : number +>greetings : number, Symbol(greetings, Decl(sourceMapValidationFunctions.ts, 0, 3)) } function foo(greeting: string, n = 10, x?: string, ...restParams: string[]) ->foo : (greeting: string, n?: number, x?: string, ...restParams: string[]) => void ->greeting : string ->n : number ->x : string ->restParams : string[] +>foo : (greeting: string, n?: number, x?: string, ...restParams: string[]) => void, Symbol(foo, Decl(sourceMapValidationFunctions.ts, 8, 1)) +>greeting : string, Symbol(greeting, Decl(sourceMapValidationFunctions.ts, 9, 13)) +>n : number, Symbol(n, Decl(sourceMapValidationFunctions.ts, 9, 30)) +>10 : number +>x : string, Symbol(x, Decl(sourceMapValidationFunctions.ts, 9, 38)) +>restParams : string[], Symbol(restParams, Decl(sourceMapValidationFunctions.ts, 9, 50)) { return; } diff --git a/tests/baselines/reference/sourceMapValidationIfElse.types b/tests/baselines/reference/sourceMapValidationIfElse.types index 4d67d912752..1821287cac8 100644 --- a/tests/baselines/reference/sourceMapValidationIfElse.types +++ b/tests/baselines/reference/sourceMapValidationIfElse.types @@ -1,44 +1,50 @@ === tests/cases/compiler/sourceMapValidationIfElse.ts === var i = 10; ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationIfElse.ts, 0, 3)) +>10 : number if (i == 10) { >i == 10 : boolean ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationIfElse.ts, 0, 3)) +>10 : number i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationIfElse.ts, 0, 3)) } else { } if (i == 10) >i == 10 : boolean ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationIfElse.ts, 0, 3)) +>10 : number { i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationIfElse.ts, 0, 3)) } else if (i == 20) { >i == 20 : boolean ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationIfElse.ts, 0, 3)) +>20 : number i--; >i-- : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationIfElse.ts, 0, 3)) } else if (i == 30) { >i == 30 : boolean ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationIfElse.ts, 0, 3)) +>30 : number i += 70; >i += 70 : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationIfElse.ts, 0, 3)) +>70 : number } else { i--; >i-- : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationIfElse.ts, 0, 3)) } diff --git a/tests/baselines/reference/sourceMapValidationImport.types b/tests/baselines/reference/sourceMapValidationImport.types index 801925fc8cb..fc41df49481 100644 --- a/tests/baselines/reference/sourceMapValidationImport.types +++ b/tests/baselines/reference/sourceMapValidationImport.types @@ -1,28 +1,28 @@ === tests/cases/compiler/sourceMapValidationImport.ts === export module m { ->m : typeof m +>m : typeof m, Symbol(m, Decl(sourceMapValidationImport.ts, 0, 0)) export class c { ->c : c +>c : c, Symbol(c, Decl(sourceMapValidationImport.ts, 0, 17)) } } import a = m.c; ->a : typeof a ->m : typeof m ->c : a +>a : typeof a, Symbol(a, Decl(sourceMapValidationImport.ts, 3, 1)) +>m : typeof m, Symbol(m, Decl(sourceMapValidationImport.ts, 0, 0)) +>c : a, Symbol(a, Decl(sourceMapValidationImport.ts, 0, 17)) export import b = m.c; ->b : typeof a ->m : typeof m ->c : a +>b : typeof a, Symbol(b, Decl(sourceMapValidationImport.ts, 4, 15)) +>m : typeof m, Symbol(m, Decl(sourceMapValidationImport.ts, 0, 0)) +>c : a, Symbol(a, Decl(sourceMapValidationImport.ts, 0, 17)) var x = new a(); ->x : a +>x : a, Symbol(x, Decl(sourceMapValidationImport.ts, 6, 3)) >new a() : a ->a : typeof a +>a : typeof a, Symbol(a, Decl(sourceMapValidationImport.ts, 3, 1)) var y = new b(); ->y : a +>y : a, Symbol(y, Decl(sourceMapValidationImport.ts, 7, 3)) >new b() : a ->b : typeof a +>b : typeof a, Symbol(b, Decl(sourceMapValidationImport.ts, 4, 15)) diff --git a/tests/baselines/reference/sourceMapValidationLabeled.types b/tests/baselines/reference/sourceMapValidationLabeled.types index 179dc343755..a5422e8b2d4 100644 --- a/tests/baselines/reference/sourceMapValidationLabeled.types +++ b/tests/baselines/reference/sourceMapValidationLabeled.types @@ -1,5 +1,8 @@ === tests/cases/compiler/sourceMapValidationLabeled.ts === x: -var b = 10; ->b : number +>x : any + +var b = 10; +>b : number, Symbol(b, Decl(sourceMapValidationLabeled.ts, 1, 3)) +>10 : number diff --git a/tests/baselines/reference/sourceMapValidationModule.types b/tests/baselines/reference/sourceMapValidationModule.types index 6c77a0b9b44..7818dcce626 100644 --- a/tests/baselines/reference/sourceMapValidationModule.types +++ b/tests/baselines/reference/sourceMapValidationModule.types @@ -1,30 +1,32 @@ === tests/cases/compiler/sourceMapValidationModule.ts === module m2 { ->m2 : typeof m2 +>m2 : typeof m2, Symbol(m2, Decl(sourceMapValidationModule.ts, 0, 0)) var a = 10; ->a : number +>a : number, Symbol(a, Decl(sourceMapValidationModule.ts, 1, 7)) +>10 : number a++; >a++ : number ->a : number +>a : number, Symbol(a, Decl(sourceMapValidationModule.ts, 1, 7)) } module m3 { ->m3 : typeof m3 +>m3 : typeof m3, Symbol(m3, Decl(sourceMapValidationModule.ts, 3, 1)) module m4 { ->m4 : typeof m4 +>m4 : typeof m4, Symbol(m4, Decl(sourceMapValidationModule.ts, 4, 11)) export var x = 30; ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationModule.ts, 6, 18)) +>30 : number } export function foo() { ->foo : () => number +>foo : () => number, Symbol(foo, Decl(sourceMapValidationModule.ts, 7, 5)) return m4.x; ->m4.x : number ->m4 : typeof m4 ->x : number +>m4.x : number, Symbol(m4.x, Decl(sourceMapValidationModule.ts, 6, 18)) +>m4 : typeof m4, Symbol(m4, Decl(sourceMapValidationModule.ts, 4, 11)) +>x : number, Symbol(m4.x, Decl(sourceMapValidationModule.ts, 6, 18)) } } diff --git a/tests/baselines/reference/sourceMapValidationSwitch.types b/tests/baselines/reference/sourceMapValidationSwitch.types index ec520418963..aa78d309036 100644 --- a/tests/baselines/reference/sourceMapValidationSwitch.types +++ b/tests/baselines/reference/sourceMapValidationSwitch.types @@ -1,45 +1,53 @@ === tests/cases/compiler/sourceMapValidationSwitch.ts === var x = 10; ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationSwitch.ts, 0, 3)) +>10 : number switch (x) { ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationSwitch.ts, 0, 3)) case 5: +>5 : number + x++; >x++ : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationSwitch.ts, 0, 3)) break; case 10: +>10 : number { x--; >x-- : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationSwitch.ts, 0, 3)) break; } default: x = x *10; >x = x *10 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationSwitch.ts, 0, 3)) >x *10 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationSwitch.ts, 0, 3)) +>10 : number } switch (x) ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationSwitch.ts, 0, 3)) { case 5: +>5 : number + x++; >x++ : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationSwitch.ts, 0, 3)) break; case 10: +>10 : number { x--; >x-- : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationSwitch.ts, 0, 3)) break; } @@ -47,8 +55,9 @@ switch (x) { x = x * 10; >x = x * 10 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationSwitch.ts, 0, 3)) >x * 10 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationSwitch.ts, 0, 3)) +>10 : number } } diff --git a/tests/baselines/reference/sourceMapValidationTryCatchFinally.types b/tests/baselines/reference/sourceMapValidationTryCatchFinally.types index 66039a96642..d946a96b46d 100644 --- a/tests/baselines/reference/sourceMapValidationTryCatchFinally.types +++ b/tests/baselines/reference/sourceMapValidationTryCatchFinally.types @@ -1,56 +1,63 @@ === tests/cases/compiler/sourceMapValidationTryCatchFinally.ts === var x = 10; ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) +>10 : number try { x = x + 1; >x = x + 1 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) >x + 1 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) +>1 : number } catch (e) { ->e : any +>e : any, Symbol(e, Decl(sourceMapValidationTryCatchFinally.ts, 3, 9)) x = x - 1; >x = x - 1 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) >x - 1 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) +>1 : number } finally { x = x * 10; >x = x * 10 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) >x * 10 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) +>10 : number } try { x = x + 1; >x = x + 1 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) >x + 1 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) +>1 : number throw new Error(); >new Error() : Error ->Error : ErrorConstructor +>Error : ErrorConstructor, Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11)) } catch (e) ->e : any +>e : any, Symbol(e, Decl(sourceMapValidationTryCatchFinally.ts, 13, 7)) { x = x - 1; >x = x - 1 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) >x - 1 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) +>1 : number } finally { x = x * 10; >x = x * 10 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) >x * 10 : number ->x : number +>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3)) +>10 : number } diff --git a/tests/baselines/reference/sourceMapValidationVariables.types b/tests/baselines/reference/sourceMapValidationVariables.types index fa200da2b31..0826c0c4529 100644 --- a/tests/baselines/reference/sourceMapValidationVariables.types +++ b/tests/baselines/reference/sourceMapValidationVariables.types @@ -1,16 +1,19 @@ === tests/cases/compiler/sourceMapValidationVariables.ts === var a = 10; ->a : number +>a : number, Symbol(a, Decl(sourceMapValidationVariables.ts, 0, 3)) +>10 : number var b; ->b : any +>b : any, Symbol(b, Decl(sourceMapValidationVariables.ts, 1, 3)) var c = 10, d, e; ->c : number ->d : any ->e : any +>c : number, Symbol(c, Decl(sourceMapValidationVariables.ts, 2, 3)) +>10 : number +>d : any, Symbol(d, Decl(sourceMapValidationVariables.ts, 2, 11)) +>e : any, Symbol(e, Decl(sourceMapValidationVariables.ts, 2, 14)) var c2, d2 = 10; ->c2 : any ->d2 : number +>c2 : any, Symbol(c2, Decl(sourceMapValidationVariables.ts, 3, 3)) +>d2 : number, Symbol(d2, Decl(sourceMapValidationVariables.ts, 3, 7)) +>10 : number diff --git a/tests/baselines/reference/sourceMapValidationWhile.types b/tests/baselines/reference/sourceMapValidationWhile.types index 41dc90dfddc..9e34823fe69 100644 --- a/tests/baselines/reference/sourceMapValidationWhile.types +++ b/tests/baselines/reference/sourceMapValidationWhile.types @@ -1,20 +1,23 @@ === tests/cases/compiler/sourceMapValidationWhile.ts === var a = 10; ->a : number +>a : number, Symbol(a, Decl(sourceMapValidationWhile.ts, 0, 3)) +>10 : number while (a == 10) { >a == 10 : boolean ->a : number +>a : number, Symbol(a, Decl(sourceMapValidationWhile.ts, 0, 3)) +>10 : number a++; >a++ : number ->a : number +>a : number, Symbol(a, Decl(sourceMapValidationWhile.ts, 0, 3)) } while (a == 10) >a == 10 : boolean ->a : number +>a : number, Symbol(a, Decl(sourceMapValidationWhile.ts, 0, 3)) +>10 : number { a++; >a++ : number ->a : number +>a : number, Symbol(a, Decl(sourceMapValidationWhile.ts, 0, 3)) } diff --git a/tests/baselines/reference/sourceMapValidationWithComments.types b/tests/baselines/reference/sourceMapValidationWithComments.types index c5725c7d96c..0cb58656b4e 100644 --- a/tests/baselines/reference/sourceMapValidationWithComments.types +++ b/tests/baselines/reference/sourceMapValidationWithComments.types @@ -1,53 +1,55 @@ === tests/cases/compiler/sourceMapValidationWithComments.ts === class DebugClass { ->DebugClass : DebugClass +>DebugClass : DebugClass, Symbol(DebugClass, Decl(sourceMapValidationWithComments.ts, 0, 0)) public static debugFunc() { ->debugFunc : () => boolean +>debugFunc : () => boolean, Symbol(DebugClass.debugFunc, Decl(sourceMapValidationWithComments.ts, 0, 18)) // Start Debugger Test Code var i = 0; ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationWithComments.ts, 5, 11)) +>0 : number i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationWithComments.ts, 5, 11)) i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationWithComments.ts, 5, 11)) i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationWithComments.ts, 5, 11)) i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationWithComments.ts, 5, 11)) i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationWithComments.ts, 5, 11)) i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationWithComments.ts, 5, 11)) i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationWithComments.ts, 5, 11)) i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationWithComments.ts, 5, 11)) i++; >i++ : number ->i : number +>i : number, Symbol(i, Decl(sourceMapValidationWithComments.ts, 5, 11)) // End Debugger Test Code return true; +>true : boolean } } diff --git a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.types b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.types index 2d42e0b5e4b..549e2e587da 100644 --- a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.types +++ b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNames.types @@ -2,10 +2,10 @@ // Note in the out result we are using same folder name only different in casing // Since this is case sensitive, the folders are different and hence the relative paths in sourcemap shouldn't be just app.ts or app2.ts class c { ->c : c +>c : c, Symbol(c, Decl(app.ts, 0, 0)) } === tests/cases/compiler/testFiles/app2.ts === class d { ->d : d +>d : d, Symbol(d, Decl(app2.ts, 0, 0)) } diff --git a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.types b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.types index 2d42e0b5e4b..549e2e587da 100644 --- a/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.types +++ b/tests/baselines/reference/sourceMapWithCaseSensitiveFileNamesAndOutDir.types @@ -2,10 +2,10 @@ // Note in the out result we are using same folder name only different in casing // Since this is case sensitive, the folders are different and hence the relative paths in sourcemap shouldn't be just app.ts or app2.ts class c { ->c : c +>c : c, Symbol(c, Decl(app.ts, 0, 0)) } === tests/cases/compiler/testFiles/app2.ts === class d { ->d : d +>d : d, Symbol(d, Decl(app2.ts, 0, 0)) } diff --git a/tests/baselines/reference/sourceMapWithMultipleFilesWithCopyright.types b/tests/baselines/reference/sourceMapWithMultipleFilesWithCopyright.types index d72fd90b0c6..770e3d04d0b 100644 --- a/tests/baselines/reference/sourceMapWithMultipleFilesWithCopyright.types +++ b/tests/baselines/reference/sourceMapWithMultipleFilesWithCopyright.types @@ -5,8 +5,8 @@ Copyright /// var y = x; ->y : { a: number; b: number; } ->x : { a: number; b: number; } +>y : { a: number; b: number; }, Symbol(y, Decl(b.ts, 5, 3)) +>x : { a: number; b: number; }, Symbol(x, Decl(a.ts, 4, 3)) === tests/cases/compiler/a.ts === /*-------------------------------------------------------------------------- @@ -14,14 +14,16 @@ Copyright ---------------------------------------------------------------------------*/ var x = { ->x : { a: number; b: number; } +>x : { a: number; b: number; }, Symbol(x, Decl(a.ts, 4, 3)) >{ a: 10, b: 20} : { a: number; b: number; } a: 10, ->a : number +>a : number, Symbol(a, Decl(a.ts, 4, 9)) +>10 : number b: 20 ->b : number +>b : number, Symbol(b, Decl(a.ts, 5, 10)) +>20 : number }; diff --git a/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.types b/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.types index 6e6d6672c16..57ea7d6c05e 100644 --- a/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.types +++ b/tests/baselines/reference/sourceMapWithMultipleFilesWithFileEndingWithInterface.types @@ -1,35 +1,36 @@ === tests/cases/compiler/a.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(a.ts, 0, 0)) export var X = 1; ->X : number +>X : number, Symbol(X, Decl(a.ts, 1, 14)) +>1 : number } interface Navigator { ->Navigator : Navigator +>Navigator : Navigator, Symbol(Navigator, Decl(a.ts, 2, 1)) getGamepads(func?: any): any; ->getGamepads : (func?: any) => any ->func : any +>getGamepads : (func?: any) => any, Symbol(getGamepads, Decl(a.ts, 3, 21)) +>func : any, Symbol(func, Decl(a.ts, 4, 16)) webkitGetGamepads(func?: any): any ->webkitGetGamepads : (func?: any) => any ->func : any +>webkitGetGamepads : (func?: any) => any, Symbol(webkitGetGamepads, Decl(a.ts, 4, 33)) +>func : any, Symbol(func, Decl(a.ts, 5, 22)) msGetGamepads(func?: any): any; ->msGetGamepads : (func?: any) => any ->func : any +>msGetGamepads : (func?: any) => any, Symbol(msGetGamepads, Decl(a.ts, 5, 38)) +>func : any, Symbol(func, Decl(a.ts, 6, 18)) webkitGamepads(func?: any): any; ->webkitGamepads : (func?: any) => any ->func : any +>webkitGamepads : (func?: any) => any, Symbol(webkitGamepads, Decl(a.ts, 6, 35)) +>func : any, Symbol(func, Decl(a.ts, 7, 19)) } === tests/cases/compiler/b.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(b.ts, 0, 0)) export class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(b.ts, 0, 11)) } } diff --git a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.types b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.types index 2dd1319e9dd..5b0cc21a3eb 100644 --- a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.types +++ b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNames.types @@ -2,10 +2,10 @@ // Note in the out result we are using same folder name only different in casing // Since this is non case sensitive, the relative paths should be just app.ts and app2.ts in the sourcemap class c { ->c : c +>c : c, Symbol(c, Decl(app.ts, 0, 0)) } === tests/cases/compiler/testFiles/app2.ts === class d { ->d : d +>d : d, Symbol(d, Decl(app2.ts, 0, 0)) } diff --git a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.types b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.types index 2dd1319e9dd..5b0cc21a3eb 100644 --- a/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.types +++ b/tests/baselines/reference/sourceMapWithNonCaseSensitiveFileNamesAndOutDir.types @@ -2,10 +2,10 @@ // Note in the out result we are using same folder name only different in casing // Since this is non case sensitive, the relative paths should be just app.ts and app2.ts in the sourcemap class c { ->c : c +>c : c, Symbol(c, Decl(app.ts, 0, 0)) } === tests/cases/compiler/testFiles/app2.ts === class d { ->d : d +>d : d, Symbol(d, Decl(app2.ts, 0, 0)) } diff --git a/tests/baselines/reference/sourcemapValidationDuplicateNames.types b/tests/baselines/reference/sourcemapValidationDuplicateNames.types index d5862720ede..b277a187b94 100644 --- a/tests/baselines/reference/sourcemapValidationDuplicateNames.types +++ b/tests/baselines/reference/sourcemapValidationDuplicateNames.types @@ -1,21 +1,22 @@ === tests/cases/compiler/sourcemapValidationDuplicateNames.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(sourcemapValidationDuplicateNames.ts, 0, 0), Decl(sourcemapValidationDuplicateNames.ts, 4, 1)) var x = 10; ->x : number +>x : number, Symbol(x, Decl(sourcemapValidationDuplicateNames.ts, 1, 7)) +>10 : number export class c { ->c : c +>c : c, Symbol(c, Decl(sourcemapValidationDuplicateNames.ts, 1, 15)) } } module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(sourcemapValidationDuplicateNames.ts, 0, 0), Decl(sourcemapValidationDuplicateNames.ts, 4, 1)) var b = new m1.c(); ->b : c +>b : c, Symbol(b, Decl(sourcemapValidationDuplicateNames.ts, 6, 7)) >new m1.c() : c ->m1.c : typeof c ->m1 : typeof m1 ->c : typeof c +>m1.c : typeof c, Symbol(c, Decl(sourcemapValidationDuplicateNames.ts, 1, 15)) +>m1 : typeof m1, Symbol(m1, Decl(sourcemapValidationDuplicateNames.ts, 0, 0), Decl(sourcemapValidationDuplicateNames.ts, 4, 1)) +>c : typeof c, Symbol(c, Decl(sourcemapValidationDuplicateNames.ts, 1, 15)) } diff --git a/tests/baselines/reference/specializationError.types b/tests/baselines/reference/specializationError.types index c79816eaf8a..8eab67adbb0 100644 --- a/tests/baselines/reference/specializationError.types +++ b/tests/baselines/reference/specializationError.types @@ -1,36 +1,36 @@ === tests/cases/compiler/specializationError.ts === interface Promise { ->Promise : Promise ->T : T +>Promise : Promise, Symbol(Promise, Decl(specializationError.ts, 0, 0)) +>T : T, Symbol(T, Decl(specializationError.ts, 0, 18)) then(value: T): void; ->then : (value: T) => void ->U : U ->value : T ->T : T +>then : (value: T) => void, Symbol(then, Decl(specializationError.ts, 0, 22)) +>U : U, Symbol(U, Decl(specializationError.ts, 1, 9)) +>value : T, Symbol(value, Decl(specializationError.ts, 1, 12)) +>T : T, Symbol(T, Decl(specializationError.ts, 0, 18)) } interface Bar { ->Bar : Bar +>Bar : Bar, Symbol(Bar, Decl(specializationError.ts, 2, 1)) bar(value: "Menu"): Promise; ->bar : { (value: "Menu"): Promise; (value: string, element: string): Promise; (value: string): Promise; } ->value : "Menu" ->Promise : Promise +>bar : { (value: "Menu"): Promise; (value: string, element: string): Promise; (value: string): Promise; }, Symbol(bar, Decl(specializationError.ts, 4, 15), Decl(specializationError.ts, 5, 40), Decl(specializationError.ts, 6, 55)) +>value : "Menu", Symbol(value, Decl(specializationError.ts, 5, 8)) +>Promise : Promise, Symbol(Promise, Decl(specializationError.ts, 0, 0)) bar(value: string, element: string): Promise; ->bar : { (value: "Menu"): Promise; (value: string, element: string): Promise; (value: string): Promise; } ->T : T ->value : string ->element : string ->Promise : Promise ->T : T +>bar : { (value: "Menu"): Promise; (value: string, element: string): Promise; (value: string): Promise; }, Symbol(bar, Decl(specializationError.ts, 4, 15), Decl(specializationError.ts, 5, 40), Decl(specializationError.ts, 6, 55)) +>T : T, Symbol(T, Decl(specializationError.ts, 6, 8)) +>value : string, Symbol(value, Decl(specializationError.ts, 6, 11)) +>element : string, Symbol(element, Decl(specializationError.ts, 6, 25)) +>Promise : Promise, Symbol(Promise, Decl(specializationError.ts, 0, 0)) +>T : T, Symbol(T, Decl(specializationError.ts, 6, 8)) bar(value: string): Promise; ->bar : { (value: "Menu"): Promise; (value: string, element: string): Promise; (value: string): Promise; } ->T : T ->value : string ->Promise : Promise ->T : T +>bar : { (value: "Menu"): Promise; (value: string, element: string): Promise; (value: string): Promise; }, Symbol(bar, Decl(specializationError.ts, 4, 15), Decl(specializationError.ts, 5, 40), Decl(specializationError.ts, 6, 55)) +>T : T, Symbol(T, Decl(specializationError.ts, 7, 8)) +>value : string, Symbol(value, Decl(specializationError.ts, 7, 11)) +>Promise : Promise, Symbol(Promise, Decl(specializationError.ts, 0, 0)) +>T : T, Symbol(T, Decl(specializationError.ts, 7, 8)) } diff --git a/tests/baselines/reference/specializationOfExportedClass.types b/tests/baselines/reference/specializationOfExportedClass.types index bfe5bd0021d..14146a5edd6 100644 --- a/tests/baselines/reference/specializationOfExportedClass.types +++ b/tests/baselines/reference/specializationOfExportedClass.types @@ -1,17 +1,17 @@ === tests/cases/compiler/specializationOfExportedClass.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(specializationOfExportedClass.ts, 0, 0)) export class C { } ->C : C ->T : T +>C : C, Symbol(C, Decl(specializationOfExportedClass.ts, 0, 10)) +>T : T, Symbol(T, Decl(specializationOfExportedClass.ts, 2, 15)) } var x = new M.C(); ->x : M.C +>x : M.C, Symbol(x, Decl(specializationOfExportedClass.ts, 6, 3)) >new M.C() : M.C ->M.C : typeof M.C ->M : typeof M ->C : typeof M.C +>M.C : typeof M.C, Symbol(M.C, Decl(specializationOfExportedClass.ts, 0, 10)) +>M : typeof M, Symbol(M, Decl(specializationOfExportedClass.ts, 0, 0)) +>C : typeof M.C, Symbol(M.C, Decl(specializationOfExportedClass.ts, 0, 10)) diff --git a/tests/baselines/reference/specializationsShouldNotAffectEachOther.types b/tests/baselines/reference/specializationsShouldNotAffectEachOther.types index 9bf91e6fe42..e32fed36a1e 100644 --- a/tests/baselines/reference/specializationsShouldNotAffectEachOther.types +++ b/tests/baselines/reference/specializationsShouldNotAffectEachOther.types @@ -1,48 +1,50 @@ === tests/cases/compiler/specializationsShouldNotAffectEachOther.ts === interface Series { ->Series : Series +>Series : Series, Symbol(Series, Decl(specializationsShouldNotAffectEachOther.ts, 0, 0)) data: string[]; ->data : string[] +>data : string[], Symbol(data, Decl(specializationsShouldNotAffectEachOther.ts, 1, 19)) } var series: Series; ->series : Series ->Series : Series +>series : Series, Symbol(series, Decl(specializationsShouldNotAffectEachOther.ts, 5, 3)) +>Series : Series, Symbol(Series, Decl(specializationsShouldNotAffectEachOther.ts, 0, 0)) function foo() { ->foo : () => any +>foo : () => any, Symbol(foo, Decl(specializationsShouldNotAffectEachOther.ts, 5, 19)) var seriesExtent = (series) => null; ->seriesExtent : (series: any) => any +>seriesExtent : (series: any) => any, Symbol(seriesExtent, Decl(specializationsShouldNotAffectEachOther.ts, 10, 7)) >(series) => null : (series: any) => any ->series : any +>series : any, Symbol(series, Decl(specializationsShouldNotAffectEachOther.ts, 10, 24)) +>null : null var series2: number[]; ->series2 : number[] +>series2 : number[], Symbol(series2, Decl(specializationsShouldNotAffectEachOther.ts, 12, 7)) series2.map(seriesExtent); >series2.map(seriesExtent) : any[] ->series2.map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[] ->series2 : number[] ->map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[] ->seriesExtent : (series: any) => any +>series2.map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>series2 : number[], Symbol(series2, Decl(specializationsShouldNotAffectEachOther.ts, 12, 7)) +>map : (callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>seriesExtent : (series: any) => any, Symbol(seriesExtent, Decl(specializationsShouldNotAffectEachOther.ts, 10, 7)) return null; +>null : null } var keyExtent2: any[] = series.data.map(function (d: string) { return d; }); ->keyExtent2 : any[] +>keyExtent2 : any[], Symbol(keyExtent2, Decl(specializationsShouldNotAffectEachOther.ts, 19, 3)) >series.data.map(function (d: string) { return d; }) : string[] ->series.data.map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] ->series.data : string[] ->series : Series ->data : string[] ->map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[] +>series.data.map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) +>series.data : string[], Symbol(Series.data, Decl(specializationsShouldNotAffectEachOther.ts, 1, 19)) +>series : Series, Symbol(series, Decl(specializationsShouldNotAffectEachOther.ts, 5, 3)) +>data : string[], Symbol(Series.data, Decl(specializationsShouldNotAffectEachOther.ts, 1, 19)) +>map : (callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92)) >function (d: string) { return d; } : (d: string) => string ->d : string ->d : string +>d : string, Symbol(d, Decl(specializationsShouldNotAffectEachOther.ts, 19, 50)) +>d : string, Symbol(d, Decl(specializationsShouldNotAffectEachOther.ts, 19, 50)) diff --git a/tests/baselines/reference/specializeVarArgs1.types b/tests/baselines/reference/specializeVarArgs1.types index 4cdf5790983..3de4b522128 100644 --- a/tests/baselines/reference/specializeVarArgs1.types +++ b/tests/baselines/reference/specializeVarArgs1.types @@ -1,43 +1,45 @@ === tests/cases/compiler/specializeVarArgs1.ts === interface Observable{ } ->Observable : Observable ->T : T +>Observable : Observable, Symbol(Observable, Decl(specializeVarArgs1.ts, 0, 0)) +>T : T, Symbol(T, Decl(specializeVarArgs1.ts, 0, 21)) interface ObservableArray extends Observable ->ObservableArray : ObservableArray ->T : T ->Observable : Observable ->T : T +>ObservableArray : ObservableArray, Symbol(ObservableArray, Decl(specializeVarArgs1.ts, 0, 26)) +>T : T, Symbol(T, Decl(specializeVarArgs1.ts, 4, 26)) +>Observable : Observable, Symbol(Observable, Decl(specializeVarArgs1.ts, 0, 0)) +>T : T, Symbol(T, Decl(specializeVarArgs1.ts, 4, 26)) { push(...values: T[]); ->push : (...values: T[]) => any ->values : T[] ->T : T +>push : (...values: T[]) => any, Symbol(push, Decl(specializeVarArgs1.ts, 6, 1)) +>values : T[], Symbol(values, Decl(specializeVarArgs1.ts, 8, 9)) +>T : T, Symbol(T, Decl(specializeVarArgs1.ts, 4, 26)) } function observableArray(): ObservableArray { return null;} ->observableArray : () => ObservableArray ->T : T ->ObservableArray : ObservableArray ->T : T +>observableArray : () => ObservableArray, Symbol(observableArray, Decl(specializeVarArgs1.ts, 10, 1)) +>T : T, Symbol(T, Decl(specializeVarArgs1.ts, 14, 25)) +>ObservableArray : ObservableArray, Symbol(ObservableArray, Decl(specializeVarArgs1.ts, 0, 26)) +>T : T, Symbol(T, Decl(specializeVarArgs1.ts, 14, 25)) +>null : null var a = observableArray(); ->a : ObservableArray +>a : ObservableArray, Symbol(a, Decl(specializeVarArgs1.ts, 18, 3)) >observableArray() : ObservableArray ->observableArray : () => ObservableArray +>observableArray : () => ObservableArray, Symbol(observableArray, Decl(specializeVarArgs1.ts, 10, 1)) a.push('Some Value'); >a.push('Some Value') : any ->a.push : (...values: string[]) => any ->a : ObservableArray ->push : (...values: string[]) => any +>a.push : (...values: string[]) => any, Symbol(ObservableArray.push, Decl(specializeVarArgs1.ts, 6, 1)) +>a : ObservableArray, Symbol(a, Decl(specializeVarArgs1.ts, 18, 3)) +>push : (...values: string[]) => any, Symbol(ObservableArray.push, Decl(specializeVarArgs1.ts, 6, 1)) +>'Some Value' : string diff --git a/tests/baselines/reference/specializedInheritedConstructors1.types b/tests/baselines/reference/specializedInheritedConstructors1.types index a073efa24d7..57fd7fa95cf 100644 --- a/tests/baselines/reference/specializedInheritedConstructors1.types +++ b/tests/baselines/reference/specializedInheritedConstructors1.types @@ -1,62 +1,62 @@ === tests/cases/compiler/specializedInheritedConstructors1.ts === interface ViewOptions { ->ViewOptions : ViewOptions ->TModel : TModel +>ViewOptions : ViewOptions, Symbol(ViewOptions, Decl(specializedInheritedConstructors1.ts, 0, 0)) +>TModel : TModel, Symbol(TModel, Decl(specializedInheritedConstructors1.ts, 0, 22)) model: TModel; ->model : TModel ->TModel : TModel +>model : TModel, Symbol(model, Decl(specializedInheritedConstructors1.ts, 0, 31)) +>TModel : TModel, Symbol(TModel, Decl(specializedInheritedConstructors1.ts, 0, 22)) } class View { ->View : View ->TModel : TModel +>View : View, Symbol(View, Decl(specializedInheritedConstructors1.ts, 2, 1)) +>TModel : TModel, Symbol(TModel, Decl(specializedInheritedConstructors1.ts, 4, 11)) constructor(options: ViewOptions) { } ->options : ViewOptions ->ViewOptions : ViewOptions ->TModel : TModel +>options : ViewOptions, Symbol(options, Decl(specializedInheritedConstructors1.ts, 5, 16)) +>ViewOptions : ViewOptions, Symbol(ViewOptions, Decl(specializedInheritedConstructors1.ts, 0, 0)) +>TModel : TModel, Symbol(TModel, Decl(specializedInheritedConstructors1.ts, 4, 11)) model: TModel; ->model : TModel ->TModel : TModel +>model : TModel, Symbol(model, Decl(specializedInheritedConstructors1.ts, 5, 49)) +>TModel : TModel, Symbol(TModel, Decl(specializedInheritedConstructors1.ts, 4, 11)) } class Model { } ->Model : Model +>Model : Model, Symbol(Model, Decl(specializedInheritedConstructors1.ts, 7, 1)) class MyView extends View { } ->MyView : MyView ->View : View ->Model : Model +>MyView : MyView, Symbol(MyView, Decl(specializedInheritedConstructors1.ts, 9, 15)) +>View : View, Symbol(View, Decl(specializedInheritedConstructors1.ts, 2, 1)) +>Model : Model, Symbol(Model, Decl(specializedInheritedConstructors1.ts, 7, 1)) var m: ViewOptions = { model: new Model() }; ->m : ViewOptions ->ViewOptions : ViewOptions ->Model : Model +>m : ViewOptions, Symbol(m, Decl(specializedInheritedConstructors1.ts, 12, 3)) +>ViewOptions : ViewOptions, Symbol(ViewOptions, Decl(specializedInheritedConstructors1.ts, 0, 0)) +>Model : Model, Symbol(Model, Decl(specializedInheritedConstructors1.ts, 7, 1)) >{ model: new Model() } : { model: Model; } ->model : Model +>model : Model, Symbol(model, Decl(specializedInheritedConstructors1.ts, 12, 29)) >new Model() : Model ->Model : typeof Model +>Model : typeof Model, Symbol(Model, Decl(specializedInheritedConstructors1.ts, 7, 1)) var aView = new View({ model: new Model() }); ->aView : View +>aView : View, Symbol(aView, Decl(specializedInheritedConstructors1.ts, 13, 3)) >new View({ model: new Model() }) : View ->View : typeof View +>View : typeof View, Symbol(View, Decl(specializedInheritedConstructors1.ts, 2, 1)) >{ model: new Model() } : { model: Model; } ->model : Model +>model : Model, Symbol(model, Decl(specializedInheritedConstructors1.ts, 13, 22)) >new Model() : Model ->Model : typeof Model +>Model : typeof Model, Symbol(Model, Decl(specializedInheritedConstructors1.ts, 7, 1)) var aView2 = new View(m); ->aView2 : View +>aView2 : View, Symbol(aView2, Decl(specializedInheritedConstructors1.ts, 14, 3)) >new View(m) : View ->View : typeof View ->m : ViewOptions +>View : typeof View, Symbol(View, Decl(specializedInheritedConstructors1.ts, 2, 1)) +>m : ViewOptions, Symbol(m, Decl(specializedInheritedConstructors1.ts, 12, 3)) var myView = new MyView(m); // was error ->myView : MyView +>myView : MyView, Symbol(myView, Decl(specializedInheritedConstructors1.ts, 15, 3)) >new MyView(m) : MyView ->MyView : typeof MyView ->m : ViewOptions +>MyView : typeof MyView, Symbol(MyView, Decl(specializedInheritedConstructors1.ts, 9, 15)) +>m : ViewOptions, Symbol(m, Decl(specializedInheritedConstructors1.ts, 12, 3)) diff --git a/tests/baselines/reference/specializedLambdaTypeArguments.types b/tests/baselines/reference/specializedLambdaTypeArguments.types index 3eb2fbc959e..3b5ef40d12d 100644 --- a/tests/baselines/reference/specializedLambdaTypeArguments.types +++ b/tests/baselines/reference/specializedLambdaTypeArguments.types @@ -1,16 +1,16 @@ === tests/cases/compiler/specializedLambdaTypeArguments.ts === class X
{ ->X : X ->A : A +>X : X, Symbol(X, Decl(specializedLambdaTypeArguments.ts, 0, 0)) +>A : A, Symbol(A, Decl(specializedLambdaTypeArguments.ts, 0, 8)) prop: X< () => Tany >; ->prop : X<() => Tany> ->X : X ->Tany : Tany ->Tany : Tany +>prop : X<() => Tany>, Symbol(prop, Decl(specializedLambdaTypeArguments.ts, 0, 12)) +>X : X, Symbol(X, Decl(specializedLambdaTypeArguments.ts, 0, 0)) +>Tany : Tany, Symbol(Tany, Decl(specializedLambdaTypeArguments.ts, 1, 11)) +>Tany : Tany, Symbol(Tany, Decl(specializedLambdaTypeArguments.ts, 1, 11)) } var a: X; ->a : X ->X : X +>a : X, Symbol(a, Decl(specializedLambdaTypeArguments.ts, 3, 3)) +>X : X, Symbol(X, Decl(specializedLambdaTypeArguments.ts, 0, 0)) diff --git a/tests/baselines/reference/specializedSignatureInInterface.types b/tests/baselines/reference/specializedSignatureInInterface.types index c8f76f4cb9b..6efab525126 100644 --- a/tests/baselines/reference/specializedSignatureInInterface.types +++ b/tests/baselines/reference/specializedSignatureInInterface.types @@ -1,18 +1,18 @@ === tests/cases/compiler/specializedSignatureInInterface.ts === interface A { ->A : A +>A : A, Symbol(A, Decl(specializedSignatureInInterface.ts, 0, 0)) (key:string):void; ->key : string +>key : string, Symbol(key, Decl(specializedSignatureInInterface.ts, 1, 3)) } interface B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(specializedSignatureInInterface.ts, 2, 1)) +>A : A, Symbol(A, Decl(specializedSignatureInInterface.ts, 0, 0)) (key:'foo'):string; ->key : 'foo' +>key : 'foo', Symbol(key, Decl(specializedSignatureInInterface.ts, 5, 3)) (key:'bar'):string; ->key : 'bar' +>key : 'bar', Symbol(key, Decl(specializedSignatureInInterface.ts, 6, 3)) } diff --git a/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.types b/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.types index cb86966d65a..6d8b1ff3e0b 100644 --- a/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.types +++ b/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.types @@ -3,241 +3,241 @@ // All the below should not be errors function foo(x: 'a'); ->foo : { (x: 'a'): any; (x: string): any; } ->x : 'a' +>foo : { (x: 'a'): any; (x: string): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 0, 0), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 3, 21), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 4, 24)) +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 3, 13)) function foo(x: string); ->foo : { (x: 'a'): any; (x: string): any; } ->x : string +>foo : { (x: 'a'): any; (x: string): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 0, 0), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 3, 21), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 4, 24)) +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 4, 13)) function foo(x: any) { } ->foo : { (x: 'a'): any; (x: string): any; } ->x : any +>foo : { (x: 'a'): any; (x: string): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 0, 0), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 3, 21), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 4, 24)) +>x : any, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 5, 13)) class C { ->C : C +>C : C, Symbol(C, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 5, 24)) foo(x: 'a'); ->foo : { (x: 'a'): any; (x: string): any; } ->x : 'a' +>foo : { (x: 'a'): any; (x: string): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 7, 9), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 8, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 9, 19)) +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 8, 8)) foo(x: string); ->foo : { (x: 'a'): any; (x: string): any; } ->x : string +>foo : { (x: 'a'): any; (x: string): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 7, 9), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 8, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 9, 19)) +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 9, 8)) foo(x: any) { } ->foo : { (x: 'a'): any; (x: string): any; } ->x : any +>foo : { (x: 'a'): any; (x: string): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 7, 9), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 8, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 9, 19)) +>x : any, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 10, 8)) } class C2 { ->C2 : C2 ->T : T +>C2 : C2, Symbol(C2, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 11, 1)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 13, 9)) foo(x: 'a'); ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : 'a' +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 13, 13), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 14, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 15, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 16, 14)) +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 14, 8)) foo(x: string); ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : string +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 13, 13), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 14, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 15, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 16, 14)) +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 15, 8)) foo(x: T); ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : T ->T : T +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 13, 13), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 14, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 15, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 16, 14)) +>x : T, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 16, 8)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 13, 9)) foo(x: any) { } ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : any +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 13, 13), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 14, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 15, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 16, 14)) +>x : any, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 17, 8)) } class C3 { ->C3 : C3 ->T : T ->String : String +>C3 : C3, Symbol(C3, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 18, 1)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 20, 9)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) foo(x: 'a'); ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : 'a' +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 20, 28), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 21, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 22, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 23, 14)) +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 21, 8)) foo(x: string); ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : string +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 20, 28), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 21, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 22, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 23, 14)) +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 22, 8)) foo(x: T); ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : T ->T : T +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 20, 28), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 21, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 22, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 23, 14)) +>x : T, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 23, 8)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 20, 9)) foo(x: any) { } ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : any +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 20, 28), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 21, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 22, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 23, 14)) +>x : any, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 24, 8)) } interface I { ->I : I +>I : I, Symbol(I, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 25, 1)) (x: 'a'); ->x : 'a' +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 28, 5)) (x: number); ->x : number +>x : number, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 29, 5)) (x: string); ->x : string +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 30, 5)) foo(x: 'a'); ->foo : { (x: 'a'): any; (x: string): any; (x: number): any; } ->x : 'a' +>foo : { (x: 'a'): any; (x: string): any; (x: number): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 30, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 31, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 32, 19)) +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 31, 8)) foo(x: string); ->foo : { (x: 'a'): any; (x: string): any; (x: number): any; } ->x : string +>foo : { (x: 'a'): any; (x: string): any; (x: number): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 30, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 31, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 32, 19)) +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 32, 8)) foo(x: number); ->foo : { (x: 'a'): any; (x: string): any; (x: number): any; } ->x : number +>foo : { (x: 'a'): any; (x: string): any; (x: number): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 30, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 31, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 32, 19)) +>x : number, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 33, 8)) } interface I2 { ->I2 : I2 ->T : T +>I2 : I2, Symbol(I2, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 34, 1)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 36, 13)) (x: 'a'); ->x : 'a' +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 37, 5)) (x: T); ->x : T ->T : T +>x : T, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 38, 5)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 36, 13)) (x: string); ->x : string +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 39, 5)) foo(x: 'a'); ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : 'a' +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 39, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 40, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 41, 19)) +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 40, 8)) foo(x: string); ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : string +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 39, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 40, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 41, 19)) +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 41, 8)) foo(x: T); ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : T ->T : T +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 39, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 40, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 41, 19)) +>x : T, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 42, 8)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 36, 13)) } interface I3 { ->I3 : I3 ->T : T ->String : String +>I3 : I3, Symbol(I3, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 43, 1)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 45, 13)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) (x: 'a'); ->x : 'a' +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 46, 5)) (x: string); ->x : string +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 47, 5)) (x: T); ->x : T ->T : T +>x : T, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 48, 5)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 45, 13)) foo(x: 'a'); ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : 'a' +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 48, 11), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 49, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 50, 19)) +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 49, 8)) foo(x: string); ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : string +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 48, 11), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 49, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 50, 19)) +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 50, 8)) foo(x: T); ->foo : { (x: 'a'): any; (x: string): any; (x: T): any; } ->x : T ->T : T +>foo : { (x: 'a'): any; (x: string): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 48, 11), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 49, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 50, 19)) +>x : T, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 51, 8)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 45, 13)) } var a: { ->a : { (x: string): any; (x: 'a'): any; (x: number): any; foo(x: string): any; foo(x: 'a'): any; foo(x: number): any; } +>a : { (x: string): any; (x: 'a'): any; (x: number): any; foo(x: string): any; foo(x: 'a'): any; foo(x: number): any; }, Symbol(a, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 54, 3)) (x: string); ->x : string +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 55, 5)) (x: 'a'); ->x : 'a' +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 56, 5)) (x: number); ->x : number +>x : number, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 57, 5)) foo(x: string); ->foo : { (x: string): any; (x: 'a'): any; (x: number): any; } ->x : string +>foo : { (x: string): any; (x: 'a'): any; (x: number): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 57, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 58, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 59, 16)) +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 58, 8)) foo(x: 'a'); ->foo : { (x: string): any; (x: 'a'): any; (x: number): any; } ->x : 'a' +>foo : { (x: string): any; (x: 'a'): any; (x: number): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 57, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 58, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 59, 16)) +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 59, 8)) foo(x: number); ->foo : { (x: string): any; (x: 'a'): any; (x: number): any; } ->x : number +>foo : { (x: string): any; (x: 'a'): any; (x: number): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 57, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 58, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 59, 16)) +>x : number, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 60, 8)) } var a2: { ->a2 : { (x: 'a'): any; (x: string): any; (x: T): any; foo(x: string): any; foo(x: 'a'): any; foo(x: T): any; } +>a2 : { (x: 'a'): any; (x: string): any; (x: T): any; foo(x: string): any; foo(x: 'a'): any; foo(x: T): any; }, Symbol(a2, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 63, 3)) (x: 'a'); ->x : 'a' +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 64, 5)) (x: string); ->x : string +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 65, 5)) (x: T); ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 66, 5)) +>x : T, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 66, 8)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 66, 5)) foo(x: string); ->foo : { (x: string): any; (x: 'a'): any; (x: T): any; } ->x : string +>foo : { (x: string): any; (x: 'a'): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 66, 14), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 67, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 68, 16)) +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 67, 8)) foo(x: 'a'); ->foo : { (x: string): any; (x: 'a'): any; (x: T): any; } ->x : 'a' +>foo : { (x: string): any; (x: 'a'): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 66, 14), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 67, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 68, 16)) +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 68, 8)) foo(x: T); ->foo : { (x: string): any; (x: 'a'): any; (x: T): any; } ->T : T ->x : T ->T : T +>foo : { (x: string): any; (x: 'a'): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 66, 14), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 67, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 68, 16)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 69, 8)) +>x : T, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 69, 11)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 69, 8)) } var a3: { ->a3 : { (x: 'a'): any; (x: T): any; (x: string): any; foo(x: string): any; foo(x: 'a'): any; foo(x: T): any; } +>a3 : { (x: 'a'): any; (x: T): any; (x: string): any; foo(x: string): any; foo(x: 'a'): any; foo(x: T): any; }, Symbol(a3, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 72, 3)) (x: 'a'); ->x : 'a' +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 73, 5)) (x: T); ->T : T ->x : T ->T : T +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 74, 5)) +>x : T, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 74, 8)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 74, 5)) (x: string); ->x : string +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 75, 5)) foo(x: string); ->foo : { (x: string): any; (x: 'a'): any; (x: T): any; } ->x : string +>foo : { (x: string): any; (x: 'a'): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 75, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 76, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 77, 16)) +>x : string, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 76, 8)) foo(x: 'a'); ->foo : { (x: string): any; (x: 'a'): any; (x: T): any; } ->x : 'a' +>foo : { (x: string): any; (x: 'a'): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 75, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 76, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 77, 16)) +>x : 'a', Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 77, 8)) foo(x: T); ->foo : { (x: string): any; (x: 'a'): any; (x: T): any; } ->T : T ->String : String ->x : T ->T : T +>foo : { (x: string): any; (x: 'a'): any; (x: T): any; }, Symbol(foo, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 75, 16), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 76, 19), Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 77, 16)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 78, 8)) +>String : String, Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11)) +>x : T, Symbol(x, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 78, 26)) +>T : T, Symbol(T, Decl(specializedSignatureIsSubtypeOfNonSpecializedSignature.ts, 78, 8)) } diff --git a/tests/baselines/reference/specializedSignatureWithOptional.types b/tests/baselines/reference/specializedSignatureWithOptional.types index 73cd89edb30..436183613d2 100644 --- a/tests/baselines/reference/specializedSignatureWithOptional.types +++ b/tests/baselines/reference/specializedSignatureWithOptional.types @@ -1,9 +1,9 @@ === tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureWithOptional.ts === declare function f(x?: "hi"): void; ->f : { (x?: "hi"): void; (x?: string): void; } ->x : "hi" +>f : { (x?: "hi"): void; (x?: string): void; }, Symbol(f, Decl(specializedSignatureWithOptional.ts, 0, 0), Decl(specializedSignatureWithOptional.ts, 0, 35)) +>x : "hi", Symbol(x, Decl(specializedSignatureWithOptional.ts, 0, 19)) declare function f(x?: string): void; ->f : { (x?: "hi"): void; (x?: string): void; } ->x : string +>f : { (x?: "hi"): void; (x?: string): void; }, Symbol(f, Decl(specializedSignatureWithOptional.ts, 0, 0), Decl(specializedSignatureWithOptional.ts, 0, 35)) +>x : string, Symbol(x, Decl(specializedSignatureWithOptional.ts, 1, 19)) diff --git a/tests/baselines/reference/staticAndMemberFunctions.types b/tests/baselines/reference/staticAndMemberFunctions.types index cc52d24d281..29ad6f6f454 100644 --- a/tests/baselines/reference/staticAndMemberFunctions.types +++ b/tests/baselines/reference/staticAndMemberFunctions.types @@ -1,10 +1,10 @@ === tests/cases/compiler/staticAndMemberFunctions.ts === class T { ->T : T +>T : T, Symbol(T, Decl(staticAndMemberFunctions.ts, 0, 0)) static x() { } ->x : () => void +>x : () => void, Symbol(T.x, Decl(staticAndMemberFunctions.ts, 0, 9)) public y() { } ->y : () => void +>y : () => void, Symbol(y, Decl(staticAndMemberFunctions.ts, 1, 18)) } diff --git a/tests/baselines/reference/staticAndNonStaticPropertiesSameName.types b/tests/baselines/reference/staticAndNonStaticPropertiesSameName.types index 4c8da030f10..20beb3da939 100644 --- a/tests/baselines/reference/staticAndNonStaticPropertiesSameName.types +++ b/tests/baselines/reference/staticAndNonStaticPropertiesSameName.types @@ -1,16 +1,16 @@ === tests/cases/conformance/classes/propertyMemberDeclarations/staticAndNonStaticPropertiesSameName.ts === class C { ->C : C +>C : C, Symbol(C, Decl(staticAndNonStaticPropertiesSameName.ts, 0, 0)) x: number; ->x : number +>x : number, Symbol(x, Decl(staticAndNonStaticPropertiesSameName.ts, 0, 9)) static x: number; ->x : number +>x : number, Symbol(C.x, Decl(staticAndNonStaticPropertiesSameName.ts, 1, 14)) f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(staticAndNonStaticPropertiesSameName.ts, 2, 21)) static f() { } ->f : () => void +>f : () => void, Symbol(C.f, Decl(staticAndNonStaticPropertiesSameName.ts, 4, 11)) } diff --git a/tests/baselines/reference/staticFactory1.types b/tests/baselines/reference/staticFactory1.types index ed275442fb5..6fc408c100d 100644 --- a/tests/baselines/reference/staticFactory1.types +++ b/tests/baselines/reference/staticFactory1.types @@ -1,36 +1,38 @@ === tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/staticFactory1.ts === class Base { ->Base : Base +>Base : Base, Symbol(Base, Decl(staticFactory1.ts, 0, 0)) foo() { return 1; } ->foo : () => number +>foo : () => number, Symbol(foo, Decl(staticFactory1.ts, 0, 12)) +>1 : number static create() { ->create : () => Base +>create : () => Base, Symbol(Base.create, Decl(staticFactory1.ts, 1, 23)) return new this(); >new this() : Base ->this : typeof Base +>this : typeof Base, Symbol(Base, Decl(staticFactory1.ts, 0, 0)) } } class Derived extends Base { ->Derived : Derived ->Base : Base +>Derived : Derived, Symbol(Derived, Decl(staticFactory1.ts, 5, 1)) +>Base : Base, Symbol(Base, Decl(staticFactory1.ts, 0, 0)) foo() { return 2; } ->foo : () => number +>foo : () => number, Symbol(foo, Decl(staticFactory1.ts, 7, 28)) +>2 : number } var d = Derived.create(); ->d : Base +>d : Base, Symbol(d, Decl(staticFactory1.ts, 10, 3)) >Derived.create() : Base ->Derived.create : () => Base ->Derived : typeof Derived ->create : () => Base +>Derived.create : () => Base, Symbol(Base.create, Decl(staticFactory1.ts, 1, 23)) +>Derived : typeof Derived, Symbol(Derived, Decl(staticFactory1.ts, 5, 1)) +>create : () => Base, Symbol(Base.create, Decl(staticFactory1.ts, 1, 23)) d.foo(); >d.foo() : number ->d.foo : () => number ->d : Base ->foo : () => number +>d.foo : () => number, Symbol(Base.foo, Decl(staticFactory1.ts, 0, 12)) +>d : Base, Symbol(d, Decl(staticFactory1.ts, 10, 3)) +>foo : () => number, Symbol(Base.foo, Decl(staticFactory1.ts, 0, 12)) diff --git a/tests/baselines/reference/staticGetter2.types b/tests/baselines/reference/staticGetter2.types index 609c07aa059..4581effc56d 100644 --- a/tests/baselines/reference/staticGetter2.types +++ b/tests/baselines/reference/staticGetter2.types @@ -1,16 +1,16 @@ === tests/cases/compiler/staticGetter2.ts === // once caused stack overflow class C { ->C : C +>C : C, Symbol(C, Decl(staticGetter2.ts, 0, 0)) static x() { ->x : () => typeof C +>x : () => typeof C, Symbol(C.x, Decl(staticGetter2.ts, 1, 9)) var r = this; ->r : typeof C ->this : typeof C +>r : typeof C, Symbol(r, Decl(staticGetter2.ts, 3, 11)) +>this : typeof C, Symbol(C, Decl(staticGetter2.ts, 0, 0)) return this; ->this : typeof C +>this : typeof C, Symbol(C, Decl(staticGetter2.ts, 0, 0)) } } diff --git a/tests/baselines/reference/staticInheritance.types b/tests/baselines/reference/staticInheritance.types index 04c64281ba8..b02fa8fe033 100644 --- a/tests/baselines/reference/staticInheritance.types +++ b/tests/baselines/reference/staticInheritance.types @@ -1,39 +1,39 @@ === tests/cases/compiler/staticInheritance.ts === function doThing(x: { n: string }) { } ->doThing : (x: { n: string; }) => void ->x : { n: string; } ->n : string +>doThing : (x: { n: string; }) => void, Symbol(doThing, Decl(staticInheritance.ts, 0, 0)) +>x : { n: string; }, Symbol(x, Decl(staticInheritance.ts, 0, 17)) +>n : string, Symbol(n, Decl(staticInheritance.ts, 0, 21)) class A { ->A : A +>A : A, Symbol(A, Decl(staticInheritance.ts, 0, 38)) static n: string; ->n : string +>n : string, Symbol(A.n, Decl(staticInheritance.ts, 1, 9)) p = doThing(A); // OK ->p : void +>p : void, Symbol(p, Decl(staticInheritance.ts, 2, 21)) >doThing(A) : void ->doThing : (x: { n: string; }) => void ->A : typeof A +>doThing : (x: { n: string; }) => void, Symbol(doThing, Decl(staticInheritance.ts, 0, 0)) +>A : typeof A, Symbol(A, Decl(staticInheritance.ts, 0, 38)) } class B extends A { ->B : B ->A : A +>B : B, Symbol(B, Decl(staticInheritance.ts, 4, 1)) +>A : A, Symbol(A, Decl(staticInheritance.ts, 0, 38)) p1 = doThing(A); // OK ->p1 : void +>p1 : void, Symbol(p1, Decl(staticInheritance.ts, 5, 19)) >doThing(A) : void ->doThing : (x: { n: string; }) => void ->A : typeof A +>doThing : (x: { n: string; }) => void, Symbol(doThing, Decl(staticInheritance.ts, 0, 0)) +>A : typeof A, Symbol(A, Decl(staticInheritance.ts, 0, 38)) p2 = doThing(B); // OK ->p2 : void +>p2 : void, Symbol(p2, Decl(staticInheritance.ts, 6, 20)) >doThing(B) : void ->doThing : (x: { n: string; }) => void ->B : typeof B +>doThing : (x: { n: string; }) => void, Symbol(doThing, Decl(staticInheritance.ts, 0, 0)) +>B : typeof B, Symbol(B, Decl(staticInheritance.ts, 4, 1)) } doThing(B); //OK >doThing(B) : void ->doThing : (x: { n: string; }) => void ->B : typeof B +>doThing : (x: { n: string; }) => void, Symbol(doThing, Decl(staticInheritance.ts, 0, 0)) +>B : typeof B, Symbol(B, Decl(staticInheritance.ts, 4, 1)) diff --git a/tests/baselines/reference/staticInstanceResolution.types b/tests/baselines/reference/staticInstanceResolution.types index 1a4d3de09a0..bae0b1fb2cd 100644 --- a/tests/baselines/reference/staticInstanceResolution.types +++ b/tests/baselines/reference/staticInstanceResolution.types @@ -1,33 +1,34 @@ === tests/cases/compiler/staticInstanceResolution.ts === class Comment { ->Comment : Comment +>Comment : Comment, Symbol(Comment, Decl(staticInstanceResolution.ts, 0, 0)) public getDocCommentText() ->getDocCommentText : () => void +>getDocCommentText : () => void, Symbol(getDocCommentText, Decl(staticInstanceResolution.ts, 0, 15)) { } static getDocCommentText(comments: Comment[]) ->getDocCommentText : (comments: Comment[]) => void ->comments : Comment[] ->Comment : Comment +>getDocCommentText : (comments: Comment[]) => void, Symbol(Comment.getDocCommentText, Decl(staticInstanceResolution.ts, 5, 5)) +>comments : Comment[], Symbol(comments, Decl(staticInstanceResolution.ts, 7, 29)) +>Comment : Comment, Symbol(Comment, Decl(staticInstanceResolution.ts, 0, 0)) { comments[0].getDocCommentText(); >comments[0].getDocCommentText() : void ->comments[0].getDocCommentText : () => void +>comments[0].getDocCommentText : () => void, Symbol(getDocCommentText, Decl(staticInstanceResolution.ts, 0, 15)) >comments[0] : Comment ->comments : Comment[] ->getDocCommentText : () => void +>comments : Comment[], Symbol(comments, Decl(staticInstanceResolution.ts, 7, 29)) +>0 : number +>getDocCommentText : () => void, Symbol(getDocCommentText, Decl(staticInstanceResolution.ts, 0, 15)) var c: Comment; ->c : Comment ->Comment : Comment +>c : Comment, Symbol(c, Decl(staticInstanceResolution.ts, 10, 11)) +>Comment : Comment, Symbol(Comment, Decl(staticInstanceResolution.ts, 0, 0)) c.getDocCommentText(); >c.getDocCommentText() : void ->c.getDocCommentText : () => void ->c : Comment ->getDocCommentText : () => void +>c.getDocCommentText : () => void, Symbol(getDocCommentText, Decl(staticInstanceResolution.ts, 0, 15)) +>c : Comment, Symbol(c, Decl(staticInstanceResolution.ts, 10, 11)) +>getDocCommentText : () => void, Symbol(getDocCommentText, Decl(staticInstanceResolution.ts, 0, 15)) } } diff --git a/tests/baselines/reference/staticInstanceResolution2.types b/tests/baselines/reference/staticInstanceResolution2.types index c5fcd89fb89..638cfd0a953 100644 --- a/tests/baselines/reference/staticInstanceResolution2.types +++ b/tests/baselines/reference/staticInstanceResolution2.types @@ -1,23 +1,25 @@ === tests/cases/compiler/staticInstanceResolution2.ts === class A { } ->A : A +>A : A, Symbol(A, Decl(staticInstanceResolution2.ts, 0, 0)) A.hasOwnProperty('foo'); >A.hasOwnProperty('foo') : boolean ->A.hasOwnProperty : (v: string) => boolean ->A : typeof A ->hasOwnProperty : (v: string) => boolean +>A.hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>A : typeof A, Symbol(A, Decl(staticInstanceResolution2.ts, 0, 0)) +>hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>'foo' : string class B { ->B : B +>B : B, Symbol(B, Decl(staticInstanceResolution2.ts, 1, 24)) constructor() { } } B.hasOwnProperty('foo'); >B.hasOwnProperty('foo') : boolean ->B.hasOwnProperty : (v: string) => boolean ->B : typeof B ->hasOwnProperty : (v: string) => boolean +>B.hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>B : typeof B, Symbol(B, Decl(staticInstanceResolution2.ts, 1, 24)) +>hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>'foo' : string diff --git a/tests/baselines/reference/staticInstanceResolution3.types b/tests/baselines/reference/staticInstanceResolution3.types index b442aebd31f..ddee652ccc5 100644 --- a/tests/baselines/reference/staticInstanceResolution3.types +++ b/tests/baselines/reference/staticInstanceResolution3.types @@ -1,26 +1,28 @@ === tests/cases/compiler/staticInstanceResolution3_1.ts === /// import WinJS = require('staticInstanceResolution3_0'); ->WinJS : typeof WinJS +>WinJS : typeof WinJS, Symbol(WinJS, Decl(staticInstanceResolution3_1.ts, 0, 0)) WinJS.Promise.timeout(10); >WinJS.Promise.timeout(10) : WinJS.Promise ->WinJS.Promise.timeout : (delay: number) => WinJS.Promise ->WinJS.Promise : typeof WinJS.Promise ->WinJS : typeof WinJS ->Promise : typeof WinJS.Promise ->timeout : (delay: number) => WinJS.Promise +>WinJS.Promise.timeout : (delay: number) => WinJS.Promise, Symbol(WinJS.Promise.timeout, Decl(staticInstanceResolution3_0.ts, 0, 22)) +>WinJS.Promise : typeof WinJS.Promise, Symbol(WinJS.Promise, Decl(staticInstanceResolution3_0.ts, 0, 0)) +>WinJS : typeof WinJS, Symbol(WinJS, Decl(staticInstanceResolution3_1.ts, 0, 0)) +>Promise : typeof WinJS.Promise, Symbol(WinJS.Promise, Decl(staticInstanceResolution3_0.ts, 0, 0)) +>timeout : (delay: number) => WinJS.Promise, Symbol(WinJS.Promise.timeout, Decl(staticInstanceResolution3_0.ts, 0, 22)) +>10 : number === tests/cases/compiler/staticInstanceResolution3_0.ts === export class Promise { ->Promise : Promise +>Promise : Promise, Symbol(Promise, Decl(staticInstanceResolution3_0.ts, 0, 0)) static timeout(delay: number): Promise { ->timeout : (delay: number) => Promise ->delay : number ->Promise : Promise +>timeout : (delay: number) => Promise, Symbol(Promise.timeout, Decl(staticInstanceResolution3_0.ts, 0, 22)) +>delay : number, Symbol(delay, Decl(staticInstanceResolution3_0.ts, 1, 19)) +>Promise : Promise, Symbol(Promise, Decl(staticInstanceResolution3_0.ts, 0, 0)) return null; +>null : null } } diff --git a/tests/baselines/reference/staticInterfaceAssignmentCompat.types b/tests/baselines/reference/staticInterfaceAssignmentCompat.types index 89e513233ba..6e1d5c1103a 100644 --- a/tests/baselines/reference/staticInterfaceAssignmentCompat.types +++ b/tests/baselines/reference/staticInterfaceAssignmentCompat.types @@ -1,27 +1,27 @@ === tests/cases/compiler/staticInterfaceAssignmentCompat.ts === class Shape { ->Shape : Shape +>Shape : Shape, Symbol(Shape, Decl(staticInterfaceAssignmentCompat.ts, 0, 0)) static create(): Shape { ->create : () => Shape ->Shape : Shape +>create : () => Shape, Symbol(Shape.create, Decl(staticInterfaceAssignmentCompat.ts, 0, 13)) +>Shape : Shape, Symbol(Shape, Decl(staticInterfaceAssignmentCompat.ts, 0, 0)) return new Shape(); >new Shape() : Shape ->Shape : typeof Shape +>Shape : typeof Shape, Symbol(Shape, Decl(staticInterfaceAssignmentCompat.ts, 0, 0)) } } interface ShapeFactory { ->ShapeFactory : ShapeFactory +>ShapeFactory : ShapeFactory, Symbol(ShapeFactory, Decl(staticInterfaceAssignmentCompat.ts, 4, 1)) create(): Shape; ->create : () => Shape ->Shape : Shape +>create : () => Shape, Symbol(create, Decl(staticInterfaceAssignmentCompat.ts, 6, 24)) +>Shape : Shape, Symbol(Shape, Decl(staticInterfaceAssignmentCompat.ts, 0, 0)) } var x: ShapeFactory = Shape; ->x : ShapeFactory ->ShapeFactory : ShapeFactory ->Shape : typeof Shape +>x : ShapeFactory, Symbol(x, Decl(staticInterfaceAssignmentCompat.ts, 10, 3)) +>ShapeFactory : ShapeFactory, Symbol(ShapeFactory, Decl(staticInterfaceAssignmentCompat.ts, 4, 1)) +>Shape : typeof Shape, Symbol(Shape, Decl(staticInterfaceAssignmentCompat.ts, 0, 0)) diff --git a/tests/baselines/reference/staticMemberAccessOffDerivedType1.types b/tests/baselines/reference/staticMemberAccessOffDerivedType1.types index abae26973b0..f854f151741 100644 --- a/tests/baselines/reference/staticMemberAccessOffDerivedType1.types +++ b/tests/baselines/reference/staticMemberAccessOffDerivedType1.types @@ -1,22 +1,23 @@ === tests/cases/compiler/staticMemberAccessOffDerivedType1.ts === class SomeBase { ->SomeBase : SomeBase +>SomeBase : SomeBase, Symbol(SomeBase, Decl(staticMemberAccessOffDerivedType1.ts, 0, 0)) static GetNumber() { ->GetNumber : () => number +>GetNumber : () => number, Symbol(SomeBase.GetNumber, Decl(staticMemberAccessOffDerivedType1.ts, 0, 16)) return 2; +>2 : number } } class P extends SomeBase { ->P : P ->SomeBase : SomeBase +>P : P, Symbol(P, Decl(staticMemberAccessOffDerivedType1.ts, 4, 1)) +>SomeBase : SomeBase, Symbol(SomeBase, Decl(staticMemberAccessOffDerivedType1.ts, 0, 0)) static SomeNumber = P.GetNumber(); ->SomeNumber : number +>SomeNumber : number, Symbol(P.SomeNumber, Decl(staticMemberAccessOffDerivedType1.ts, 5, 26)) >P.GetNumber() : number ->P.GetNumber : () => number ->P : typeof P ->GetNumber : () => number +>P.GetNumber : () => number, Symbol(SomeBase.GetNumber, Decl(staticMemberAccessOffDerivedType1.ts, 0, 16)) +>P : typeof P, Symbol(P, Decl(staticMemberAccessOffDerivedType1.ts, 4, 1)) +>GetNumber : () => number, Symbol(SomeBase.GetNumber, Decl(staticMemberAccessOffDerivedType1.ts, 0, 16)) } diff --git a/tests/baselines/reference/staticMemberInitialization.types b/tests/baselines/reference/staticMemberInitialization.types index 56fe4f58ce2..7c4e97c1903 100644 --- a/tests/baselines/reference/staticMemberInitialization.types +++ b/tests/baselines/reference/staticMemberInitialization.types @@ -1,19 +1,20 @@ === tests/cases/conformance/classes/propertyMemberDeclarations/staticMemberInitialization.ts === class C { ->C : C +>C : C, Symbol(C, Decl(staticMemberInitialization.ts, 0, 0)) static x = 1; ->x : number +>x : number, Symbol(C.x, Decl(staticMemberInitialization.ts, 0, 9)) +>1 : number } var c = new C(); ->c : C +>c : C, Symbol(c, Decl(staticMemberInitialization.ts, 4, 3)) >new C() : C ->C : typeof C +>C : typeof C, Symbol(C, Decl(staticMemberInitialization.ts, 0, 0)) var r = C.x; ->r : number ->C.x : number ->C : typeof C ->x : number +>r : number, Symbol(r, Decl(staticMemberInitialization.ts, 5, 3)) +>C.x : number, Symbol(C.x, Decl(staticMemberInitialization.ts, 0, 9)) +>C : typeof C, Symbol(C, Decl(staticMemberInitialization.ts, 0, 0)) +>x : number, Symbol(C.x, Decl(staticMemberInitialization.ts, 0, 9)) diff --git a/tests/baselines/reference/staticMemberWithStringAndNumberNames.types b/tests/baselines/reference/staticMemberWithStringAndNumberNames.types index 3cb60e1f8fa..c4bab986d09 100644 --- a/tests/baselines/reference/staticMemberWithStringAndNumberNames.types +++ b/tests/baselines/reference/staticMemberWithStringAndNumberNames.types @@ -1,37 +1,46 @@ === tests/cases/compiler/staticMemberWithStringAndNumberNames.ts === class C { ->C : C +>C : C, Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0)) static "foo" = 0; +>0 : number + static 0 = 1; +>1 : number x = C['foo']; ->x : number +>x : number, Symbol(x, Decl(staticMemberWithStringAndNumberNames.ts, 2, 17)) >C['foo'] : number ->C : typeof C +>C : typeof C, Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0)) +>'foo' : string, Symbol(C."foo", Decl(staticMemberWithStringAndNumberNames.ts, 0, 9)) x2 = C['0']; ->x2 : number +>x2 : number, Symbol(x2, Decl(staticMemberWithStringAndNumberNames.ts, 4, 17)) >C['0'] : number ->C : typeof C +>C : typeof C, Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0)) +>'0' : string, Symbol(C.0, Decl(staticMemberWithStringAndNumberNames.ts, 1, 21)) x3 = C[0]; ->x3 : number +>x3 : number, Symbol(x3, Decl(staticMemberWithStringAndNumberNames.ts, 5, 16)) >C[0] : number ->C : typeof C +>C : typeof C, Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0)) +>0 : number, Symbol(C.0, Decl(staticMemberWithStringAndNumberNames.ts, 1, 21)) static s = C['foo']; ->s : number +>s : number, Symbol(C.s, Decl(staticMemberWithStringAndNumberNames.ts, 6, 14)) >C['foo'] : number ->C : typeof C +>C : typeof C, Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0)) +>'foo' : string, Symbol(C."foo", Decl(staticMemberWithStringAndNumberNames.ts, 0, 9)) static s2 = C['0']; ->s2 : number +>s2 : number, Symbol(C.s2, Decl(staticMemberWithStringAndNumberNames.ts, 8, 24)) >C['0'] : number ->C : typeof C +>C : typeof C, Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0)) +>'0' : string, Symbol(C.0, Decl(staticMemberWithStringAndNumberNames.ts, 1, 21)) static s3 = C[0]; ->s3 : number +>s3 : number, Symbol(C.s3, Decl(staticMemberWithStringAndNumberNames.ts, 9, 23)) >C[0] : number ->C : typeof C +>C : typeof C, Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0)) +>0 : number, Symbol(C.0, Decl(staticMemberWithStringAndNumberNames.ts, 1, 21)) } diff --git a/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.types b/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.types index eb43b58aecc..61555e5bf78 100644 --- a/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.types +++ b/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.types @@ -1,44 +1,44 @@ === tests/cases/compiler/staticMethodWithTypeParameterExtendsClauseDeclFile.ts === class privateClass { ->privateClass : privateClass +>privateClass : privateClass, Symbol(privateClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 0, 0)) } export class publicClass { ->publicClass : publicClass +>publicClass : publicClass, Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1)) } export class publicClassWithWithPrivateTypeParameters { ->publicClassWithWithPrivateTypeParameters : publicClassWithWithPrivateTypeParameters +>publicClassWithWithPrivateTypeParameters : publicClassWithWithPrivateTypeParameters, Symbol(publicClassWithWithPrivateTypeParameters, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 4, 1)) private static myPrivateStaticMethod1() { // do not emit extends clause ->myPrivateStaticMethod1 : () => void ->T : T ->privateClass : privateClass +>myPrivateStaticMethod1 : () => void, Symbol(publicClassWithWithPrivateTypeParameters.myPrivateStaticMethod1, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 6, 55)) +>T : T, Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 7, 42)) +>privateClass : privateClass, Symbol(privateClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 0, 0)) } private myPrivateMethod1() { // do not emit extends clause ->myPrivateMethod1 : () => void ->T : T ->privateClass : privateClass +>myPrivateMethod1 : () => void, Symbol(myPrivateMethod1, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 8, 5)) +>T : T, Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 9, 29)) +>privateClass : privateClass, Symbol(privateClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 0, 0)) } private static myPrivateStaticMethod2() { // do not emit extends clause ->myPrivateStaticMethod2 : () => void ->T : T ->publicClass : publicClass +>myPrivateStaticMethod2 : () => void, Symbol(publicClassWithWithPrivateTypeParameters.myPrivateStaticMethod2, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 10, 5)) +>T : T, Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 11, 42)) +>publicClass : publicClass, Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1)) } private myPrivateMethod2() { // do not emit extends clause ->myPrivateMethod2 : () => void ->T : T ->publicClass : publicClass +>myPrivateMethod2 : () => void, Symbol(myPrivateMethod2, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 12, 5)) +>T : T, Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 13, 29)) +>publicClass : publicClass, Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1)) } public static myPublicStaticMethod() { ->myPublicStaticMethod : () => void ->T : T ->publicClass : publicClass +>myPublicStaticMethod : () => void, Symbol(publicClassWithWithPrivateTypeParameters.myPublicStaticMethod, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 14, 5)) +>T : T, Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 15, 39)) +>publicClass : publicClass, Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1)) } public myPublicMethod() { ->myPublicMethod : () => void ->T : T ->publicClass : publicClass +>myPublicMethod : () => void, Symbol(myPublicMethod, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 16, 5)) +>T : T, Symbol(T, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 17, 26)) +>publicClass : publicClass, Symbol(publicClass, Decl(staticMethodWithTypeParameterExtendsClauseDeclFile.ts, 1, 1)) } } diff --git a/tests/baselines/reference/staticPropertyAndFunctionWithSameName.types b/tests/baselines/reference/staticPropertyAndFunctionWithSameName.types index 84cc19fe3a0..d9088e0c761 100644 --- a/tests/baselines/reference/staticPropertyAndFunctionWithSameName.types +++ b/tests/baselines/reference/staticPropertyAndFunctionWithSameName.types @@ -1,20 +1,20 @@ === tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyAndFunctionWithSameName.ts === class C { ->C : C +>C : C, Symbol(C, Decl(staticPropertyAndFunctionWithSameName.ts, 0, 0)) static f: number; ->f : number +>f : number, Symbol(C.f, Decl(staticPropertyAndFunctionWithSameName.ts, 0, 9)) f: number; ->f : number +>f : number, Symbol(f, Decl(staticPropertyAndFunctionWithSameName.ts, 1, 21)) } class D { ->D : D +>D : D, Symbol(D, Decl(staticPropertyAndFunctionWithSameName.ts, 3, 1)) static f: number; ->f : number +>f : number, Symbol(D.f, Decl(staticPropertyAndFunctionWithSameName.ts, 5, 9)) f() { } ->f : () => void +>f : () => void, Symbol(f, Decl(staticPropertyAndFunctionWithSameName.ts, 6, 21)) } diff --git a/tests/baselines/reference/staticPrototypePropertyOnClass.types b/tests/baselines/reference/staticPrototypePropertyOnClass.types index eae7ea690a1..dbf12aec9bf 100644 --- a/tests/baselines/reference/staticPrototypePropertyOnClass.types +++ b/tests/baselines/reference/staticPrototypePropertyOnClass.types @@ -1,43 +1,43 @@ === tests/cases/compiler/staticPrototypePropertyOnClass.ts === class c1 { ->c1 : c1 +>c1 : c1, Symbol(c1, Decl(staticPrototypePropertyOnClass.ts, 0, 0)) } class c2 { ->c2 : c2 ->T : T +>c2 : c2, Symbol(c2, Decl(staticPrototypePropertyOnClass.ts, 1, 1)) +>T : T, Symbol(T, Decl(staticPrototypePropertyOnClass.ts, 2, 9)) } class c3 { ->c3 : c3 +>c3 : c3, Symbol(c3, Decl(staticPrototypePropertyOnClass.ts, 3, 1)) constructor() { } } class c4 { ->c4 : c4 +>c4 : c4, Symbol(c4, Decl(staticPrototypePropertyOnClass.ts, 7, 1)) constructor(param: string); ->param : string +>param : string, Symbol(param, Decl(staticPrototypePropertyOnClass.ts, 9, 16)) constructor(param: number); ->param : number +>param : number, Symbol(param, Decl(staticPrototypePropertyOnClass.ts, 10, 16)) constructor(param: any) { ->param : any +>param : any, Symbol(param, Decl(staticPrototypePropertyOnClass.ts, 11, 16)) } } var a = c1; ->a : typeof c1 ->c1 : typeof c1 +>a : typeof c1, Symbol(a, Decl(staticPrototypePropertyOnClass.ts, 14, 3)) +>c1 : typeof c1, Symbol(c1, Decl(staticPrototypePropertyOnClass.ts, 0, 0)) var b = c2; ->b : typeof c2 ->c2 : typeof c2 +>b : typeof c2, Symbol(b, Decl(staticPrototypePropertyOnClass.ts, 15, 3)) +>c2 : typeof c2, Symbol(c2, Decl(staticPrototypePropertyOnClass.ts, 1, 1)) var c = c3; ->c : typeof c3 ->c3 : typeof c3 +>c : typeof c3, Symbol(c, Decl(staticPrototypePropertyOnClass.ts, 16, 3)) +>c3 : typeof c3, Symbol(c3, Decl(staticPrototypePropertyOnClass.ts, 3, 1)) var d = c4; ->d : typeof c4 ->c4 : typeof c4 +>d : typeof c4, Symbol(d, Decl(staticPrototypePropertyOnClass.ts, 17, 3)) +>c4 : typeof c4, Symbol(c4, Decl(staticPrototypePropertyOnClass.ts, 7, 1)) diff --git a/tests/baselines/reference/stradac.types b/tests/baselines/reference/stradac.types index 6fc9bb282be..1647cbfe3d6 100644 --- a/tests/baselines/reference/stradac.types +++ b/tests/baselines/reference/stradac.types @@ -1,6 +1,7 @@ === tests/cases/compiler/stradac.ts === var x = 10; ->x : number +>x : number, Symbol(x, Decl(stradac.ts, 0, 3)) +>10 : number // C++-style comment @@ -10,9 +11,9 @@ var x = 10; function foo() { ->foo : () => void +>foo : () => void, Symbol(foo, Decl(stradac.ts, 0, 11)) x++; >x++ : number ->x : number +>x : number, Symbol(x, Decl(stradac.ts, 0, 3)) } diff --git a/tests/baselines/reference/strictMode1.js b/tests/baselines/reference/strictMode1.js deleted file mode 100644 index f4c9db50ab7..00000000000 --- a/tests/baselines/reference/strictMode1.js +++ /dev/null @@ -1,25 +0,0 @@ -//// [strictMode1.ts] -"use strict"; -class A {} -class B extends A {} - -//// [strictMode1.js] -"use strict"; -var __extends = this.__extends || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { this.constructor = d; } - __.prototype = b.prototype; - d.prototype = new __(); -}; -var A = (function () { - function A() { - } - return A; -})(); -var B = (function (_super) { - __extends(B, _super); - function B() { - _super.apply(this, arguments); - } - return B; -})(A); diff --git a/tests/baselines/reference/strictMode1.types b/tests/baselines/reference/strictMode1.types deleted file mode 100644 index c0e57de97df..00000000000 --- a/tests/baselines/reference/strictMode1.types +++ /dev/null @@ -1,9 +0,0 @@ -=== tests/cases/compiler/strictMode1.ts === -"use strict"; -class A {} ->A : A - -class B extends A {} ->B : B ->A : A - diff --git a/tests/baselines/reference/strictMode2.js b/tests/baselines/reference/strictMode2.js deleted file mode 100644 index 4331b1ef52c..00000000000 --- a/tests/baselines/reference/strictMode2.js +++ /dev/null @@ -1,13 +0,0 @@ -//// [strictMode2.ts] -"use strict"; - -function foo() { - - return 30; -} - -//// [strictMode2.js] -"use strict"; -function foo() { - return 30; -} diff --git a/tests/baselines/reference/strictMode2.types b/tests/baselines/reference/strictMode2.types deleted file mode 100644 index 69c972355b8..00000000000 --- a/tests/baselines/reference/strictMode2.types +++ /dev/null @@ -1,8 +0,0 @@ -=== tests/cases/compiler/strictMode2.ts === -"use strict"; - -function foo() { ->foo : () => number - - return 30; -} diff --git a/tests/baselines/reference/strictMode3.js b/tests/baselines/reference/strictMode3.js deleted file mode 100644 index 792ab931f53..00000000000 --- a/tests/baselines/reference/strictMode3.js +++ /dev/null @@ -1,36 +0,0 @@ -//// [strictMode3.ts] -"use strict"; - -class A { -} - -class B extends A { -} - -function foo() { - return this.window; -} - -//// [strictMode3.js] -"use strict"; -var __extends = this.__extends || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { this.constructor = d; } - __.prototype = b.prototype; - d.prototype = new __(); -}; -var A = (function () { - function A() { - } - return A; -})(); -var B = (function (_super) { - __extends(B, _super); - function B() { - _super.apply(this, arguments); - } - return B; -})(A); -function foo() { - return this.window; -} diff --git a/tests/baselines/reference/strictMode3.types b/tests/baselines/reference/strictMode3.types deleted file mode 100644 index 701ebc12d9a..00000000000 --- a/tests/baselines/reference/strictMode3.types +++ /dev/null @@ -1,20 +0,0 @@ -=== tests/cases/compiler/strictMode3.ts === -"use strict"; - -class A { ->A : A -} - -class B extends A { ->B : B ->A : A -} - -function foo() { ->foo : () => any - - return this.window; ->this.window : any ->this : any ->window : any -} diff --git a/tests/baselines/reference/strictMode4.js b/tests/baselines/reference/strictMode4.js deleted file mode 100644 index b7bf798b34f..00000000000 --- a/tests/baselines/reference/strictMode4.js +++ /dev/null @@ -1,14 +0,0 @@ -//// [strictMode4.ts] -"use strict"; - -class A { -} - - -//// [strictMode4.js] -"use strict"; -var A = (function () { - function A() { - } - return A; -})(); diff --git a/tests/baselines/reference/strictMode4.types b/tests/baselines/reference/strictMode4.types deleted file mode 100644 index 7aea014b045..00000000000 --- a/tests/baselines/reference/strictMode4.types +++ /dev/null @@ -1,7 +0,0 @@ -=== tests/cases/compiler/strictMode4.ts === -"use strict"; - -class A { ->A : A -} - diff --git a/tests/baselines/reference/strictMode5.js b/tests/baselines/reference/strictMode5.js deleted file mode 100644 index 8e4021820f1..00000000000 --- a/tests/baselines/reference/strictMode5.js +++ /dev/null @@ -1,45 +0,0 @@ -//// [strictMode5.ts] -function foo(...args) { - "use strict" -} - -class A { - m() { - "use strict" - - var v = () => { - return this.n(); - }; - } - n() {} -} - -function bar(x: number = 10) { - "use strict" -} - -//// [strictMode5.js] -function foo() { - "use strict"; - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i - 0] = arguments[_i]; - } -} -var A = (function () { - function A() { - } - A.prototype.m = function () { - "use strict"; - var _this = this; - var v = function () { - return _this.n(); - }; - }; - A.prototype.n = function () { }; - return A; -})(); -function bar(x) { - "use strict"; - if (x === void 0) { x = 10; } -} diff --git a/tests/baselines/reference/strictMode5.types b/tests/baselines/reference/strictMode5.types deleted file mode 100644 index dd668dc24d1..00000000000 --- a/tests/baselines/reference/strictMode5.types +++ /dev/null @@ -1,38 +0,0 @@ -=== tests/cases/compiler/strictMode5.ts === -function foo(...args) { ->foo : (...args: any[]) => void ->args : any[] - - "use strict" -} - -class A { ->A : A - - m() { ->m : () => void - - "use strict" - - var v = () => { ->v : () => void ->() => { return this.n(); } : () => void - - return this.n(); ->this.n() : void ->this.n : () => void ->this : A ->n : () => void - - }; - } - n() {} ->n : () => void -} - -function bar(x: number = 10) { ->bar : (x?: number) => void ->x : number - - "use strict" -} diff --git a/tests/baselines/reference/strictModeReservedWord.errors.txt b/tests/baselines/reference/strictModeReservedWord.errors.txt new file mode 100644 index 00000000000..9e76e36551d --- /dev/null +++ b/tests/baselines/reference/strictModeReservedWord.errors.txt @@ -0,0 +1,147 @@ +tests/cases/compiler/strictModeReservedWord.ts(5,9): error TS1212: Identifier expected. 'public' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(6,9): error TS1212: Identifier expected. 'static' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(7,9): error TS1212: Identifier expected. 'let' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(8,9): error TS1212: Identifier expected. 'package' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(8,9): error TS2300: Duplicate identifier 'package'. +tests/cases/compiler/strictModeReservedWord.ts(9,14): error TS1212: Identifier expected. 'package' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(9,14): error TS2300: Duplicate identifier 'package'. +tests/cases/compiler/strictModeReservedWord.ts(10,18): error TS1212: Identifier expected. 'private' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(10,27): error TS1212: Identifier expected. 'implements' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(10,39): error TS1212: Identifier expected. 'let' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(11,18): error TS1212: Identifier expected. 'implements' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(11,30): error TS1212: Identifier expected. 'protected' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(12,24): error TS1212: Identifier expected. 'private' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(12,33): error TS1212: Identifier expected. 'public' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(12,41): error TS1212: Identifier expected. 'package' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(13,11): error TS1212: Identifier expected. 'private' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(13,20): error TS1212: Identifier expected. 'public' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(13,28): error TS1212: Identifier expected. 'package' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(15,25): error TS9003: 'class' expressions are not currently supported. +tests/cases/compiler/strictModeReservedWord.ts(17,9): error TS2300: Duplicate identifier 'b'. +tests/cases/compiler/strictModeReservedWord.ts(17,12): error TS1215: Type expected. 'public' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(17,12): error TS2304: Cannot find name 'public'. +tests/cases/compiler/strictModeReservedWord.ts(19,21): error TS1215: Type expected. 'private' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(19,21): error TS2304: Cannot find name 'private'. +tests/cases/compiler/strictModeReservedWord.ts(20,22): error TS1215: Type expected. 'private' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(20,22): error TS2304: Cannot find name 'private'. +tests/cases/compiler/strictModeReservedWord.ts(20,30): error TS1215: Type expected. 'package' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(21,22): error TS1215: Type expected. 'private' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(21,22): error TS2304: Cannot find name 'private'. +tests/cases/compiler/strictModeReservedWord.ts(21,30): error TS1215: Type expected. 'package' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(21,38): error TS1215: Type expected. 'protected' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(22,9): error TS2300: Duplicate identifier 'b'. +tests/cases/compiler/strictModeReservedWord.ts(22,12): error TS1215: Type expected. 'interface' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(22,12): error TS2304: Cannot find name 'interface'. +tests/cases/compiler/strictModeReservedWord.ts(22,22): error TS1215: Type expected. 'package' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(22,30): error TS1215: Type expected. 'implements' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(23,5): error TS2304: Cannot find name 'ublic'. +tests/cases/compiler/strictModeReservedWord.ts(24,5): error TS1212: Identifier expected. 'static' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord.ts(24,5): error TS2349: Cannot invoke an expression whose type lacks a call signature. + + +==== tests/cases/compiler/strictModeReservedWord.ts (39 errors) ==== + let let = 10; + + function foo() { + "use strict" + var public = 10; + ~~~~~~ +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode + var static = "hi"; + ~~~~~~ +!!! error TS1212: Identifier expected. 'static' is a reserved word in strict mode + let let = "blah"; + ~~~ +!!! error TS1212: Identifier expected. 'let' is a reserved word in strict mode + var package = "hello" + ~~~~~~~ +!!! error TS1212: Identifier expected. 'package' is a reserved word in strict mode + ~~~~~~~ +!!! error TS2300: Duplicate identifier 'package'. + function package() { } + ~~~~~~~ +!!! error TS1212: Identifier expected. 'package' is a reserved word in strict mode + ~~~~~~~ +!!! error TS2300: Duplicate identifier 'package'. + function bar(private, implements, let) { } + ~~~~~~~ +!!! error TS1212: Identifier expected. 'private' is a reserved word in strict mode + ~~~~~~~~~~ +!!! error TS1212: Identifier expected. 'implements' is a reserved word in strict mode + ~~~ +!!! error TS1212: Identifier expected. 'let' is a reserved word in strict mode + function baz() { } + ~~~~~~~~~~ +!!! error TS1212: Identifier expected. 'implements' is a reserved word in strict mode + ~~~~~~~~~ +!!! error TS1212: Identifier expected. 'protected' is a reserved word in strict mode + function barn(cb: (private, public, package) => void) { } + ~~~~~~~ +!!! error TS1212: Identifier expected. 'private' is a reserved word in strict mode + ~~~~~~ +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode + ~~~~~~~ +!!! error TS1212: Identifier expected. 'package' is a reserved word in strict mode + barn((private, public, package) => { }); + ~~~~~~~ +!!! error TS1212: Identifier expected. 'private' is a reserved word in strict mode + ~~~~~~ +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode + ~~~~~~~ +!!! error TS1212: Identifier expected. 'package' is a reserved word in strict mode + + var myClass = class package extends public {} + ~~~~~~~ +!!! error TS9003: 'class' expressions are not currently supported. + + var b: public.bar; + ~ +!!! error TS2300: Duplicate identifier 'b'. + ~~~~~~ +!!! error TS1215: Type expected. 'public' is a reserved word in strict mode + ~~~~~~ +!!! error TS2304: Cannot find name 'public'. + + function foo(x: private.x) { } + ~~~~~~~ +!!! error TS1215: Type expected. 'private' is a reserved word in strict mode + ~~~~~~~ +!!! error TS2304: Cannot find name 'private'. + function foo1(x: private.package.x) { } + ~~~~~~~ +!!! error TS1215: Type expected. 'private' is a reserved word in strict mode + ~~~~~~~ +!!! error TS2304: Cannot find name 'private'. + ~~~~~~~ +!!! error TS1215: Type expected. 'package' is a reserved word in strict mode + function foo2(x: private.package.protected) { } + ~~~~~~~ +!!! error TS1215: Type expected. 'private' is a reserved word in strict mode + ~~~~~~~ +!!! error TS2304: Cannot find name 'private'. + ~~~~~~~ +!!! error TS1215: Type expected. 'package' is a reserved word in strict mode + ~~~~~~~~~ +!!! error TS1215: Type expected. 'protected' is a reserved word in strict mode + let b: interface.package.implements.B; + ~ +!!! error TS2300: Duplicate identifier 'b'. + ~~~~~~~~~ +!!! error TS1215: Type expected. 'interface' is a reserved word in strict mode + ~~~~~~~~~ +!!! error TS2304: Cannot find name 'interface'. + ~~~~~~~ +!!! error TS1215: Type expected. 'package' is a reserved word in strict mode + ~~~~~~~~~~ +!!! error TS1215: Type expected. 'implements' is a reserved word in strict mode + ublic(); + ~~~~~ +!!! error TS2304: Cannot find name 'ublic'. + static(); + ~~~~~~ +!!! error TS1212: Identifier expected. 'static' is a reserved word in strict mode + ~~~~~~~~ +!!! error TS2349: Cannot invoke an expression whose type lacks a call signature. + } + + \ No newline at end of file diff --git a/tests/baselines/reference/strictModeReservedWord.js b/tests/baselines/reference/strictModeReservedWord.js new file mode 100644 index 00000000000..9be21b20ae6 --- /dev/null +++ b/tests/baselines/reference/strictModeReservedWord.js @@ -0,0 +1,57 @@ +//// [strictModeReservedWord.ts] +let let = 10; + +function foo() { + "use strict" + var public = 10; + var static = "hi"; + let let = "blah"; + var package = "hello" + function package() { } + function bar(private, implements, let) { } + function baz() { } + function barn(cb: (private, public, package) => void) { } + barn((private, public, package) => { }); + + var myClass = class package extends public {} + + var b: public.bar; + + function foo(x: private.x) { } + function foo1(x: private.package.x) { } + function foo2(x: private.package.protected) { } + let b: interface.package.implements.B; + ublic(); + static(); +} + + + +//// [strictModeReservedWord.js] +var let = 10; +function foo() { + "use strict"; + var public = 10; + var static = "hi"; + var let = "blah"; + var package = "hello"; + function package() { } + function bar(private, implements, let) { } + function baz() { } + function barn(cb) { } + barn(function (private, public, package) { }); + var myClass = (function (_super) { + __extends(package, _super); + function package() { + _super.apply(this, arguments); + } + return package; + })(public); + var b; + function foo(x) { } + function foo1(x) { } + function foo2(x) { } + var b; + ublic(); + static(); +} diff --git a/tests/baselines/reference/strictModeReservedWord2.errors.txt b/tests/baselines/reference/strictModeReservedWord2.errors.txt new file mode 100644 index 00000000000..8fbc79bbce0 --- /dev/null +++ b/tests/baselines/reference/strictModeReservedWord2.errors.txt @@ -0,0 +1,45 @@ +tests/cases/compiler/strictModeReservedWord2.ts(2,11): error TS1212: Identifier expected. 'public' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord2.ts(3,11): error TS1212: Identifier expected. 'implements' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord2.ts(4,9): error TS1212: Identifier expected. 'package' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord2.ts(4,18): error TS1212: Identifier expected. 'protected' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord2.ts(6,6): error TS1212: Identifier expected. 'package' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWord2.ts(13,12): error TS1212: Identifier expected. 'private' is a reserved word in strict mode + + +==== tests/cases/compiler/strictModeReservedWord2.ts (6 errors) ==== + "use strict" + interface public { } + ~~~~~~ +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode + interface implements { + ~~~~~~~~~~ +!!! error TS1212: Identifier expected. 'implements' is a reserved word in strict mode + foo(package, protected); + ~~~~~~~ +!!! error TS1212: Identifier expected. 'package' is a reserved word in strict mode + ~~~~~~~~~ +!!! error TS1212: Identifier expected. 'protected' is a reserved word in strict mode + } + enum package { } + ~~~~~~~ +!!! error TS1212: Identifier expected. 'package' is a reserved word in strict mode + enum foo { + public, + private, + pacakge + } + + const enum private { + ~~~~~~~ +!!! error TS1212: Identifier expected. 'private' is a reserved word in strict mode + public, + private, + pacakge + } + + const enum bar { + public, + private, + pacakge + } + \ No newline at end of file diff --git a/tests/baselines/reference/strictModeReservedWord2.js b/tests/baselines/reference/strictModeReservedWord2.js new file mode 100644 index 00000000000..f6adc2389cd --- /dev/null +++ b/tests/baselines/reference/strictModeReservedWord2.js @@ -0,0 +1,37 @@ +//// [strictModeReservedWord2.ts] +"use strict" +interface public { } +interface implements { + foo(package, protected); +} +enum package { } +enum foo { + public, + private, + pacakge +} + +const enum private { + public, + private, + pacakge +} + +const enum bar { + public, + private, + pacakge +} + + +//// [strictModeReservedWord2.js] +"use strict"; +var package; +(function (package) { +})(package || (package = {})); +var foo; +(function (foo) { + foo[foo["public"] = 0] = "public"; + foo[foo["private"] = 1] = "private"; + foo[foo["pacakge"] = 2] = "pacakge"; +})(foo || (foo = {})); diff --git a/tests/baselines/reference/strictModeReservedWordInClassDeclaration.errors.txt b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.errors.txt new file mode 100644 index 00000000000..b7876b1b849 --- /dev/null +++ b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.errors.txt @@ -0,0 +1,103 @@ +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(4,17): error TS1213: Identifier expected. 'private' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(4,26): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(4,34): error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(5,9): error TS1213: Identifier expected. 'private' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(5,19): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(5,28): error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(7,22): error TS1216: Type expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(11,24): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(11,32): error TS1213: Identifier expected. 'let' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(13,10): error TS1213: Identifier expected. 'private' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(13,19): error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(13,27): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(14,18): error TS1213: Identifier expected. 'let' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(21,9): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(21,17): error TS1213: Identifier expected. 'private' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(23,20): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(25,20): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(25,20): error TS2304: Cannot find name 'public'. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(26,21): error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(26,21): error TS2304: Cannot find name 'public'. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(27,17): error TS1213: Identifier expected. 'package' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(27,17): error TS2304: Cannot find name 'package'. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(28,17): error TS1213: Identifier expected. 'package' is a reserved word in strict mode. Class definitions are automatically in strict mode. +tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts(28,17): error TS2304: Cannot find name 'package'. + + +==== tests/cases/compiler/strictModeReservedWordInClassDeclaration.ts (24 errors) ==== + interface public { } + + class Foo { + constructor(private, public, static) { + ~~~~~~~ +!!! error TS1213: Identifier expected. 'private' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~ +!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~ +!!! error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. + private = public = static; + ~~~~~~~ +!!! error TS1213: Identifier expected. 'private' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~ +!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~ +!!! error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. + } + public banana(x: public) { } + ~~~~~~ +!!! error TS1216: Type expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + } + + class C { + constructor(public public, let) { + ~~~~~~ +!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~ +!!! error TS1213: Identifier expected. 'let' is a reserved word in strict mode. Class definitions are automatically in strict mode. + } + foo1(private, static, public) { + ~~~~~~~ +!!! error TS1213: Identifier expected. 'private' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~ +!!! error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~ +!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + function let() { } + ~~~ +!!! error TS1213: Identifier expected. 'let' is a reserved word in strict mode. Class definitions are automatically in strict mode. + var z = function let() { }; + } + + public pulbic() { } // No Error; + } + + class D{ } + ~~~~~~ +!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~~ +!!! error TS1213: Identifier expected. 'private' is a reserved word in strict mode. Class definitions are automatically in strict mode. + + class E implements public { } + ~~~~~~ +!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + + class F implements public.private.B { } + ~~~~~~ +!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~ +!!! error TS2304: Cannot find name 'public'. + class F1 implements public.private.implements { } + ~~~~~~ +!!! error TS1213: Identifier expected. 'public' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~ +!!! error TS2304: Cannot find name 'public'. + class G extends package { } + ~~~~~~~ +!!! error TS1213: Identifier expected. 'package' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~~ +!!! error TS2304: Cannot find name 'package'. + class H extends package.A { } + ~~~~~~~ +!!! error TS1213: Identifier expected. 'package' is a reserved word in strict mode. Class definitions are automatically in strict mode. + ~~~~~~~ +!!! error TS2304: Cannot find name 'package'. \ No newline at end of file diff --git a/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js new file mode 100644 index 00000000000..98b38532aa6 --- /dev/null +++ b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js @@ -0,0 +1,89 @@ +//// [strictModeReservedWordInClassDeclaration.ts] +interface public { } + +class Foo { + constructor(private, public, static) { + private = public = static; + } + public banana(x: public) { } +} + +class C { + constructor(public public, let) { + } + foo1(private, static, public) { + function let() { } + var z = function let() { }; + } + + public pulbic() { } // No Error; +} + +class D{ } + +class E implements public { } + +class F implements public.private.B { } +class F1 implements public.private.implements { } +class G extends package { } +class H extends package.A { } + +//// [strictModeReservedWordInClassDeclaration.js] +var __extends = this.__extends || function (d, b) { + for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; + function __() { this.constructor = d; } + __.prototype = b.prototype; + d.prototype = new __(); +}; +var Foo = (function () { + function Foo(private, public, static) { + private = public = static; + } + Foo.prototype.banana = function (x) { }; + return Foo; +})(); +var C = (function () { + function C(public, let) { + this.public = public; + } + C.prototype.foo1 = function (private, static, public) { + function let() { } + var z = function let() { }; + }; + C.prototype.pulbic = function () { }; // No Error; + return C; +})(); +var D = (function () { + function D() { + } + return D; +})(); +var E = (function () { + function E() { + } + return E; +})(); +var F = (function () { + function F() { + } + return F; +})(); +var F1 = (function () { + function F1() { + } + return F1; +})(); +var G = (function (_super) { + __extends(G, _super); + function G() { + _super.apply(this, arguments); + } + return G; +})(package); +var H = (function (_super) { + __extends(H, _super); + function H() { + _super.apply(this, arguments); + } + return H; +})(package.A); diff --git a/tests/baselines/reference/strictModeReservedWordInDestructuring.errors.txt b/tests/baselines/reference/strictModeReservedWordInDestructuring.errors.txt new file mode 100644 index 00000000000..0776e6b255b --- /dev/null +++ b/tests/baselines/reference/strictModeReservedWordInDestructuring.errors.txt @@ -0,0 +1,30 @@ +tests/cases/compiler/strictModeReservedWordInDestructuring.ts(2,6): error TS1212: Identifier expected. 'public' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWordInDestructuring.ts(3,10): error TS1212: Identifier expected. 'public' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWordInDestructuring.ts(4,7): error TS1212: Identifier expected. 'private' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWordInDestructuring.ts(5,15): error TS1212: Identifier expected. 'static' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWordInDestructuring.ts(5,38): error TS1212: Identifier expected. 'package' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWordInDestructuring.ts(6,6): error TS1212: Identifier expected. 'public' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWordInDestructuring.ts(6,14): error TS1212: Identifier expected. 'protected' is a reserved word in strict mode + + +==== tests/cases/compiler/strictModeReservedWordInDestructuring.ts (7 errors) ==== + "use strict" + var [public] = [1]; + ~~~~~~ +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode + var { x: public } = { x: 1 }; + ~~~~~~ +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode + var [[private]] = [["hello"]]; + ~~~~~~~ +!!! error TS1212: Identifier expected. 'private' is a reserved word in strict mode + var { y: { s: static }, z: { o: { p: package} }} = { y: { s: 1 }, z: { o: { p: 'h' } } }; + ~~~~~~ +!!! error TS1212: Identifier expected. 'static' is a reserved word in strict mode + ~~~~~~~ +!!! error TS1212: Identifier expected. 'package' is a reserved word in strict mode + var {public, protected} = { public: 1, protected: 2 }; + ~~~~~~ +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode + ~~~~~~~~~ +!!! error TS1212: Identifier expected. 'protected' is a reserved word in strict mode \ No newline at end of file diff --git a/tests/baselines/reference/strictModeReservedWordInDestructuring.js b/tests/baselines/reference/strictModeReservedWordInDestructuring.js new file mode 100644 index 00000000000..1fe5a9f71d6 --- /dev/null +++ b/tests/baselines/reference/strictModeReservedWordInDestructuring.js @@ -0,0 +1,15 @@ +//// [strictModeReservedWordInDestructuring.ts] +"use strict" +var [public] = [1]; +var { x: public } = { x: 1 }; +var [[private]] = [["hello"]]; +var { y: { s: static }, z: { o: { p: package} }} = { y: { s: 1 }, z: { o: { p: 'h' } } }; +var {public, protected} = { public: 1, protected: 2 }; + +//// [strictModeReservedWordInDestructuring.js] +"use strict"; +var public = ([1])[0]; +var public = ({ x: 1 }).x; +var private = ([["hello"]])[0][0]; +var _a = { y: { s: 1 }, z: { o: { p: 'h' } } }, static = _a.y.s, package = _a.z.o.p; +var _b = { public: 1, protected: 2 }, public = _b.public, protected = _b.protected; diff --git a/tests/baselines/reference/strictModeReservedWordInImportEqualDeclaration.errors.txt b/tests/baselines/reference/strictModeReservedWordInImportEqualDeclaration.errors.txt new file mode 100644 index 00000000000..408cf161f3c --- /dev/null +++ b/tests/baselines/reference/strictModeReservedWordInImportEqualDeclaration.errors.txt @@ -0,0 +1,12 @@ +tests/cases/compiler/strictModeReservedWordInImportEqualDeclaration.ts(3,8): error TS1212: Identifier expected. 'public' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWordInImportEqualDeclaration.ts(3,25): error TS2307: Cannot find external module '1'. + + +==== tests/cases/compiler/strictModeReservedWordInImportEqualDeclaration.ts (2 errors) ==== + + "use strict" + import public = require("1"); + ~~~~~~ +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode + ~~~ +!!! error TS2307: Cannot find external module '1'. \ No newline at end of file diff --git a/tests/baselines/reference/strictModeReservedWordInImportEqualDeclaration.js b/tests/baselines/reference/strictModeReservedWordInImportEqualDeclaration.js new file mode 100644 index 00000000000..50ed1b4d755 --- /dev/null +++ b/tests/baselines/reference/strictModeReservedWordInImportEqualDeclaration.js @@ -0,0 +1,7 @@ +//// [strictModeReservedWordInImportEqualDeclaration.ts] + +"use strict" +import public = require("1"); + +//// [strictModeReservedWordInImportEqualDeclaration.js] +"use strict"; diff --git a/tests/baselines/reference/strictModeReservedWordInModuleDeclaration.errors.txt b/tests/baselines/reference/strictModeReservedWordInModuleDeclaration.errors.txt new file mode 100644 index 00000000000..f745f93f79e --- /dev/null +++ b/tests/baselines/reference/strictModeReservedWordInModuleDeclaration.errors.txt @@ -0,0 +1,24 @@ +tests/cases/compiler/strictModeReservedWordInModuleDeclaration.ts(2,8): error TS1212: Identifier expected. 'public' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWordInModuleDeclaration.ts(3,8): error TS1212: Identifier expected. 'private' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWordInModuleDeclaration.ts(4,8): error TS1212: Identifier expected. 'public' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWordInModuleDeclaration.ts(6,8): error TS1212: Identifier expected. 'private' is a reserved word in strict mode +tests/cases/compiler/strictModeReservedWordInModuleDeclaration.ts(6,16): error TS1212: Identifier expected. 'public' is a reserved word in strict mode + + +==== tests/cases/compiler/strictModeReservedWordInModuleDeclaration.ts (5 errors) ==== + "use strict" + module public { } + ~~~~~~ +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode + module private { } + ~~~~~~~ +!!! error TS1212: Identifier expected. 'private' is a reserved word in strict mode + module public.whatever { + ~~~~~~ +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode + } + module private.public.foo { } + ~~~~~~~ +!!! error TS1212: Identifier expected. 'private' is a reserved word in strict mode + ~~~~~~ +!!! error TS1212: Identifier expected. 'public' is a reserved word in strict mode \ No newline at end of file diff --git a/tests/baselines/reference/strictModeReservedWordInModuleDeclaration.js b/tests/baselines/reference/strictModeReservedWordInModuleDeclaration.js new file mode 100644 index 00000000000..b7e7d0df341 --- /dev/null +++ b/tests/baselines/reference/strictModeReservedWordInModuleDeclaration.js @@ -0,0 +1,10 @@ +//// [strictModeReservedWordInModuleDeclaration.ts] +"use strict" +module public { } +module private { } +module public.whatever { +} +module private.public.foo { } + +//// [strictModeReservedWordInModuleDeclaration.js] +"use strict"; diff --git a/tests/baselines/reference/strictModeWordInExportDeclaration.js b/tests/baselines/reference/strictModeWordInExportDeclaration.js new file mode 100644 index 00000000000..e884f49e1b8 --- /dev/null +++ b/tests/baselines/reference/strictModeWordInExportDeclaration.js @@ -0,0 +1,13 @@ +//// [strictModeWordInExportDeclaration.ts] +"use strict" +var x = 1; +export { x as foo } +export { x as implements } +export { x as while } + +//// [strictModeWordInExportDeclaration.js] +"use strict"; +var x = 1; +export { x as foo }; +export { x as implements }; +export { x as while }; diff --git a/tests/baselines/reference/strictModeWordInExportDeclaration.types b/tests/baselines/reference/strictModeWordInExportDeclaration.types new file mode 100644 index 00000000000..294ad1d6cd9 --- /dev/null +++ b/tests/baselines/reference/strictModeWordInExportDeclaration.types @@ -0,0 +1,20 @@ +=== tests/cases/compiler/strictModeWordInExportDeclaration.ts === +"use strict" +>"use strict" : string + +var x = 1; +>x : number, Symbol(x, Decl(strictModeWordInExportDeclaration.ts, 1, 3)) +>1 : number + +export { x as foo } +>x : number, Symbol(foo, Decl(strictModeWordInExportDeclaration.ts, 2, 8)) +>foo : number, Symbol(foo, Decl(strictModeWordInExportDeclaration.ts, 2, 8)) + +export { x as implements } +>x : number, Symbol(implements, Decl(strictModeWordInExportDeclaration.ts, 3, 8)) +>implements : number, Symbol(implements, Decl(strictModeWordInExportDeclaration.ts, 3, 8)) + +export { x as while } +>x : number, Symbol(while, Decl(strictModeWordInExportDeclaration.ts, 4, 8)) +>while : number, Symbol(while, Decl(strictModeWordInExportDeclaration.ts, 4, 8)) + diff --git a/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt b/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt new file mode 100644 index 00000000000..83e44ab50b9 --- /dev/null +++ b/tests/baselines/reference/strictModeWordInImportDeclaration.errors.txt @@ -0,0 +1,22 @@ +tests/cases/compiler/strictModeWordInImportDeclaration.ts(2,13): error TS1212: Identifier expected. 'package' is a reserved word in strict mode +tests/cases/compiler/strictModeWordInImportDeclaration.ts(2,26): error TS2307: Cannot find external module './1'. +tests/cases/compiler/strictModeWordInImportDeclaration.ts(3,16): error TS1212: Identifier expected. 'private' is a reserved word in strict mode +tests/cases/compiler/strictModeWordInImportDeclaration.ts(3,30): error TS2307: Cannot find external module './1'. +tests/cases/compiler/strictModeWordInImportDeclaration.ts(4,20): error TS2307: Cannot find external module './1'. + + +==== tests/cases/compiler/strictModeWordInImportDeclaration.ts (5 errors) ==== + "use strict" + import * as package from "./1" + ~~~~~~~ +!!! error TS1212: Identifier expected. 'package' is a reserved word in strict mode + ~~~~~ +!!! error TS2307: Cannot find external module './1'. + import {foo as private} from "./1" + ~~~~~~~ +!!! error TS1212: Identifier expected. 'private' is a reserved word in strict mode + ~~~~~ +!!! error TS2307: Cannot find external module './1'. + import public from "./1" + ~~~~~ +!!! error TS2307: Cannot find external module './1'. \ No newline at end of file diff --git a/tests/baselines/reference/strictModeWordInImportDeclaration.js b/tests/baselines/reference/strictModeWordInImportDeclaration.js new file mode 100644 index 00000000000..4a335d8a744 --- /dev/null +++ b/tests/baselines/reference/strictModeWordInImportDeclaration.js @@ -0,0 +1,8 @@ +//// [strictModeWordInImportDeclaration.ts] +"use strict" +import * as package from "./1" +import {foo as private} from "./1" +import public from "./1" + +//// [strictModeWordInImportDeclaration.js] +"use strict"; diff --git a/tests/baselines/reference/stringHasStringValuedNumericIndexer.types b/tests/baselines/reference/stringHasStringValuedNumericIndexer.types index 242a357acde..b74339aac63 100644 --- a/tests/baselines/reference/stringHasStringValuedNumericIndexer.types +++ b/tests/baselines/reference/stringHasStringValuedNumericIndexer.types @@ -1,5 +1,7 @@ === tests/cases/compiler/stringHasStringValuedNumericIndexer.ts === var str: string = ""[0]; ->str : string +>str : string, Symbol(str, Decl(stringHasStringValuedNumericIndexer.ts, 0, 3)) >""[0] : string +>"" : string +>0 : number diff --git a/tests/baselines/reference/stringIndexingResults.types b/tests/baselines/reference/stringIndexingResults.types index 0b1840ee06f..290782cabd0 100644 --- a/tests/baselines/reference/stringIndexingResults.types +++ b/tests/baselines/reference/stringIndexingResults.types @@ -1,105 +1,119 @@ === tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexingResults.ts === class C { ->C : C +>C : C, Symbol(C, Decl(stringIndexingResults.ts, 0, 0)) [x: string]: string; ->x : string +>x : string, Symbol(x, Decl(stringIndexingResults.ts, 1, 5)) y = ''; ->y : string +>y : string, Symbol(y, Decl(stringIndexingResults.ts, 1, 24)) +>'' : string } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(stringIndexingResults.ts, 5, 3)) +>C : C, Symbol(C, Decl(stringIndexingResults.ts, 0, 0)) var r1 = c['y']; ->r1 : string +>r1 : string, Symbol(r1, Decl(stringIndexingResults.ts, 6, 3)) >c['y'] : string ->c : C +>c : C, Symbol(c, Decl(stringIndexingResults.ts, 5, 3)) +>'y' : string, Symbol(C.y, Decl(stringIndexingResults.ts, 1, 24)) var r2 = c['a']; ->r2 : string +>r2 : string, Symbol(r2, Decl(stringIndexingResults.ts, 7, 3)) >c['a'] : string ->c : C +>c : C, Symbol(c, Decl(stringIndexingResults.ts, 5, 3)) +>'a' : string var r3 = c[1]; ->r3 : string +>r3 : string, Symbol(r3, Decl(stringIndexingResults.ts, 8, 3)) >c[1] : string ->c : C +>c : C, Symbol(c, Decl(stringIndexingResults.ts, 5, 3)) +>1 : number interface I { ->I : I +>I : I, Symbol(I, Decl(stringIndexingResults.ts, 8, 14)) [x: string]: string; ->x : string +>x : string, Symbol(x, Decl(stringIndexingResults.ts, 11, 5)) y: string; ->y : string +>y : string, Symbol(y, Decl(stringIndexingResults.ts, 11, 24)) } var i: I ->i : I ->I : I +>i : I, Symbol(i, Decl(stringIndexingResults.ts, 15, 3)) +>I : I, Symbol(I, Decl(stringIndexingResults.ts, 8, 14)) var r4 = i['y']; ->r4 : string +>r4 : string, Symbol(r4, Decl(stringIndexingResults.ts, 16, 3)) >i['y'] : string ->i : I +>i : I, Symbol(i, Decl(stringIndexingResults.ts, 15, 3)) +>'y' : string, Symbol(I.y, Decl(stringIndexingResults.ts, 11, 24)) var r5 = i['a']; ->r5 : string +>r5 : string, Symbol(r5, Decl(stringIndexingResults.ts, 17, 3)) >i['a'] : string ->i : I +>i : I, Symbol(i, Decl(stringIndexingResults.ts, 15, 3)) +>'a' : string var r6 = i[1]; ->r6 : string +>r6 : string, Symbol(r6, Decl(stringIndexingResults.ts, 18, 3)) >i[1] : string ->i : I +>i : I, Symbol(i, Decl(stringIndexingResults.ts, 15, 3)) +>1 : number var a: { ->a : { [x: string]: string; y: string; } +>a : { [x: string]: string; y: string; }, Symbol(a, Decl(stringIndexingResults.ts, 20, 3)) [x: string]: string; ->x : string +>x : string, Symbol(x, Decl(stringIndexingResults.ts, 21, 5)) y: string; ->y : string +>y : string, Symbol(y, Decl(stringIndexingResults.ts, 21, 24)) } var r7 = a['y']; ->r7 : string +>r7 : string, Symbol(r7, Decl(stringIndexingResults.ts, 25, 3)) >a['y'] : string ->a : { [x: string]: string; y: string; } +>a : { [x: string]: string; y: string; }, Symbol(a, Decl(stringIndexingResults.ts, 20, 3)) +>'y' : string, Symbol(y, Decl(stringIndexingResults.ts, 21, 24)) var r8 = a['a']; ->r8 : string +>r8 : string, Symbol(r8, Decl(stringIndexingResults.ts, 26, 3)) >a['a'] : string ->a : { [x: string]: string; y: string; } +>a : { [x: string]: string; y: string; }, Symbol(a, Decl(stringIndexingResults.ts, 20, 3)) +>'a' : string var r9 = a[1]; ->r9 : string +>r9 : string, Symbol(r9, Decl(stringIndexingResults.ts, 27, 3)) >a[1] : string ->a : { [x: string]: string; y: string; } +>a : { [x: string]: string; y: string; }, Symbol(a, Decl(stringIndexingResults.ts, 20, 3)) +>1 : number var b: { [x: string]: string } = { y: '' } ->b : { [x: string]: string; } ->x : string +>b : { [x: string]: string; }, Symbol(b, Decl(stringIndexingResults.ts, 29, 3)) +>x : string, Symbol(x, Decl(stringIndexingResults.ts, 29, 10)) >{ y: '' } : { [x: string]: string; y: string; } ->y : string +>y : string, Symbol(y, Decl(stringIndexingResults.ts, 29, 34)) +>'' : string var r10 = b['y']; ->r10 : string +>r10 : string, Symbol(r10, Decl(stringIndexingResults.ts, 31, 3)) >b['y'] : string ->b : { [x: string]: string; } +>b : { [x: string]: string; }, Symbol(b, Decl(stringIndexingResults.ts, 29, 3)) +>'y' : string var r11 = b['a']; ->r11 : string +>r11 : string, Symbol(r11, Decl(stringIndexingResults.ts, 32, 3)) >b['a'] : string ->b : { [x: string]: string; } +>b : { [x: string]: string; }, Symbol(b, Decl(stringIndexingResults.ts, 29, 3)) +>'a' : string var r12 = b[1]; ->r12 : string +>r12 : string, Symbol(r12, Decl(stringIndexingResults.ts, 33, 3)) >b[1] : string ->b : { [x: string]: string; } +>b : { [x: string]: string; }, Symbol(b, Decl(stringIndexingResults.ts, 29, 3)) +>1 : number diff --git a/tests/baselines/reference/stringLiteralObjectLiteralDeclaration1.types b/tests/baselines/reference/stringLiteralObjectLiteralDeclaration1.types index 8a68a436577..b8c085339a9 100644 --- a/tests/baselines/reference/stringLiteralObjectLiteralDeclaration1.types +++ b/tests/baselines/reference/stringLiteralObjectLiteralDeclaration1.types @@ -1,9 +1,10 @@ === tests/cases/compiler/stringLiteralObjectLiteralDeclaration1.ts === module m1 { ->m1 : typeof m1 +>m1 : typeof m1, Symbol(m1, Decl(stringLiteralObjectLiteralDeclaration1.ts, 0, 0)) export var n = { 'foo bar': 4 }; ->n : { 'foo bar': number; } +>n : { 'foo bar': number; }, Symbol(n, Decl(stringLiteralObjectLiteralDeclaration1.ts, 1, 12)) >{ 'foo bar': 4 } : { 'foo bar': number; } +>4 : number } diff --git a/tests/baselines/reference/stringLiteralPropertyNameWithLineContinuation1.types b/tests/baselines/reference/stringLiteralPropertyNameWithLineContinuation1.types index 612d36fe6ad..eb18093be1c 100644 --- a/tests/baselines/reference/stringLiteralPropertyNameWithLineContinuation1.types +++ b/tests/baselines/reference/stringLiteralPropertyNameWithLineContinuation1.types @@ -1,15 +1,20 @@ === tests/cases/compiler/stringLiteralPropertyNameWithLineContinuation1.ts === var x = {'text\ >x : { 'text\ -': string; } +': string; }, Symbol(x, Decl(stringLiteralPropertyNameWithLineContinuation1.ts, 0, 3)) >{'text\':'hello'} : { 'text\ ': string; } ':'hello'} +>'hello' : string + x.text = "bar" >x.text = "bar" : string ->x.text : string +>x.text : string, Symbol('text\ +', Decl(stringLiteralPropertyNameWithLineContinuation1.ts, 0, 9)) >x : { 'text\ -': string; } ->text : string +': string; }, Symbol(x, Decl(stringLiteralPropertyNameWithLineContinuation1.ts, 0, 3)) +>text : string, Symbol('text\ +', Decl(stringLiteralPropertyNameWithLineContinuation1.ts, 0, 9)) +>"bar" : string diff --git a/tests/baselines/reference/stringNamedPropertyAccess.types b/tests/baselines/reference/stringNamedPropertyAccess.types index 180259cab6e..6a27cdffe3c 100644 --- a/tests/baselines/reference/stringNamedPropertyAccess.types +++ b/tests/baselines/reference/stringNamedPropertyAccess.types @@ -1,56 +1,62 @@ === tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyAccess.ts === class C { ->C : C +>C : C, Symbol(C, Decl(stringNamedPropertyAccess.ts, 0, 0)) "a b": number; static "c d": number; } var c: C; ->c : C ->C : C +>c : C, Symbol(c, Decl(stringNamedPropertyAccess.ts, 4, 3)) +>C : C, Symbol(C, Decl(stringNamedPropertyAccess.ts, 0, 0)) var r1 = c["a b"]; ->r1 : number +>r1 : number, Symbol(r1, Decl(stringNamedPropertyAccess.ts, 5, 3)) >c["a b"] : number ->c : C +>c : C, Symbol(c, Decl(stringNamedPropertyAccess.ts, 4, 3)) +>"a b" : string, Symbol(C."a b", Decl(stringNamedPropertyAccess.ts, 0, 9)) var r1b = C['c d']; ->r1b : number +>r1b : number, Symbol(r1b, Decl(stringNamedPropertyAccess.ts, 6, 3)) >C['c d'] : number ->C : typeof C +>C : typeof C, Symbol(C, Decl(stringNamedPropertyAccess.ts, 0, 0)) +>'c d' : string, Symbol(C."c d", Decl(stringNamedPropertyAccess.ts, 1, 18)) interface I { ->I : I +>I : I, Symbol(I, Decl(stringNamedPropertyAccess.ts, 6, 19)) "a b": number; } var i: I; ->i : I ->I : I +>i : I, Symbol(i, Decl(stringNamedPropertyAccess.ts, 11, 3)) +>I : I, Symbol(I, Decl(stringNamedPropertyAccess.ts, 6, 19)) var r2 = i["a b"]; ->r2 : number +>r2 : number, Symbol(r2, Decl(stringNamedPropertyAccess.ts, 12, 3)) >i["a b"] : number ->i : I +>i : I, Symbol(i, Decl(stringNamedPropertyAccess.ts, 11, 3)) +>"a b" : string, Symbol(I."a b", Decl(stringNamedPropertyAccess.ts, 8, 13)) var a: { ->a : { "a b": number; } +>a : { "a b": number; }, Symbol(a, Decl(stringNamedPropertyAccess.ts, 14, 3)) "a b": number; } var r3 = a["a b"]; ->r3 : number +>r3 : number, Symbol(r3, Decl(stringNamedPropertyAccess.ts, 17, 3)) >a["a b"] : number ->a : { "a b": number; } +>a : { "a b": number; }, Symbol(a, Decl(stringNamedPropertyAccess.ts, 14, 3)) +>"a b" : string, Symbol("a b", Decl(stringNamedPropertyAccess.ts, 14, 8)) var b = { ->b : { "a b": number; } +>b : { "a b": number; }, Symbol(b, Decl(stringNamedPropertyAccess.ts, 19, 3)) >{ "a b": 1} : { "a b": number; } "a b": 1 +>1 : number } var r4 = b["a b"]; ->r4 : number +>r4 : number, Symbol(r4, Decl(stringNamedPropertyAccess.ts, 22, 3)) >b["a b"] : number ->b : { "a b": number; } +>b : { "a b": number; }, Symbol(b, Decl(stringNamedPropertyAccess.ts, 19, 3)) +>"a b" : string, Symbol("a b", Decl(stringNamedPropertyAccess.ts, 19, 9)) diff --git a/tests/baselines/reference/stringPropCodeGen.types b/tests/baselines/reference/stringPropCodeGen.types index 423ab2ffa0e..5b75331e8c1 100644 --- a/tests/baselines/reference/stringPropCodeGen.types +++ b/tests/baselines/reference/stringPropCodeGen.types @@ -1,12 +1,13 @@ === tests/cases/compiler/stringPropCodeGen.ts === var a = { ->a : { "foo": () => void; "bar": number; } +>a : { "foo": () => void; "bar": number; }, Symbol(a, Decl(stringPropCodeGen.ts, 0, 3)) >{ "foo" : function() { }, "bar" : 5} : { "foo": () => void; "bar": number; } "foo" : function() { }, >function() { } : () => void "bar" : 5 +>5 : number }; @@ -14,15 +15,15 @@ var a = { a.foo(); >a.foo() : void ->a.foo : () => void ->a : { "foo": () => void; "bar": number; } ->foo : () => void +>a.foo : () => void, Symbol("foo", Decl(stringPropCodeGen.ts, 0, 9)) +>a : { "foo": () => void; "bar": number; }, Symbol(a, Decl(stringPropCodeGen.ts, 0, 3)) +>foo : () => void, Symbol("foo", Decl(stringPropCodeGen.ts, 0, 9)) a.bar.toString(); >a.bar.toString() : string ->a.bar.toString : (radix?: number) => string ->a.bar : number ->a : { "foo": () => void; "bar": number; } ->bar : number ->toString : (radix?: number) => string +>a.bar.toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) +>a.bar : number, Symbol("bar", Decl(stringPropCodeGen.ts, 2, 25)) +>a : { "foo": () => void; "bar": number; }, Symbol(a, Decl(stringPropCodeGen.ts, 0, 3)) +>bar : number, Symbol("bar", Decl(stringPropCodeGen.ts, 2, 25)) +>toString : (radix?: number) => string, Symbol(Number.toString, Decl(lib.d.ts, 458, 18)) diff --git a/tests/baselines/reference/stringPropertyAccess.types b/tests/baselines/reference/stringPropertyAccess.types index 43ef2487334..0871ff0d676 100644 --- a/tests/baselines/reference/stringPropertyAccess.types +++ b/tests/baselines/reference/stringPropertyAccess.types @@ -1,30 +1,37 @@ === tests/cases/conformance/types/primitives/string/stringPropertyAccess.ts === var x = ''; ->x : string +>x : string, Symbol(x, Decl(stringPropertyAccess.ts, 0, 3)) +>'' : string var a = x.charAt(0); ->a : string +>a : string, Symbol(a, Decl(stringPropertyAccess.ts, 1, 3)) >x.charAt(0) : string ->x.charAt : (pos: number) => string ->x : string ->charAt : (pos: number) => string +>x.charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>x : string, Symbol(x, Decl(stringPropertyAccess.ts, 0, 3)) +>charAt : (pos: number) => string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number var b = x.hasOwnProperty('charAt'); ->b : boolean +>b : boolean, Symbol(b, Decl(stringPropertyAccess.ts, 2, 3)) >x.hasOwnProperty('charAt') : boolean ->x.hasOwnProperty : (v: string) => boolean ->x : string ->hasOwnProperty : (v: string) => boolean +>x.hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>x : string, Symbol(x, Decl(stringPropertyAccess.ts, 0, 3)) +>hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>'charAt' : string var c = x['charAt'](0); ->c : string +>c : string, Symbol(c, Decl(stringPropertyAccess.ts, 4, 3)) >x['charAt'](0) : string >x['charAt'] : (pos: number) => string ->x : string +>x : string, Symbol(x, Decl(stringPropertyAccess.ts, 0, 3)) +>'charAt' : string, Symbol(String.charAt, Decl(lib.d.ts, 279, 23)) +>0 : number var e = x['hasOwnProperty']('toFixed'); ->e : boolean +>e : boolean, Symbol(e, Decl(stringPropertyAccess.ts, 5, 3)) >x['hasOwnProperty']('toFixed') : boolean >x['hasOwnProperty'] : (v: string) => boolean ->x : string +>x : string, Symbol(x, Decl(stringPropertyAccess.ts, 0, 3)) +>'hasOwnProperty' : string, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22)) +>'toFixed' : string diff --git a/tests/baselines/reference/stripInternal1.types b/tests/baselines/reference/stripInternal1.types index 8452de45596..cddf32c05ae 100644 --- a/tests/baselines/reference/stripInternal1.types +++ b/tests/baselines/reference/stripInternal1.types @@ -1,12 +1,12 @@ === tests/cases/compiler/stripInternal1.ts === class C { ->C : C +>C : C, Symbol(C, Decl(stripInternal1.ts, 0, 0)) foo(): void { } ->foo : () => void +>foo : () => void, Symbol(foo, Decl(stripInternal1.ts, 1, 9)) // @internal bar(): void { } ->bar : () => void +>bar : () => void, Symbol(bar, Decl(stripInternal1.ts, 2, 17)) } diff --git a/tests/baselines/reference/structural1.types b/tests/baselines/reference/structural1.types index dcbfc8a3bb7..1bc55b0328c 100644 --- a/tests/baselines/reference/structural1.types +++ b/tests/baselines/reference/structural1.types @@ -1,28 +1,30 @@ === tests/cases/compiler/structural1.ts === module M { ->M : typeof M +>M : typeof M, Symbol(M, Decl(structural1.ts, 0, 0)) export interface I { ->I : I +>I : I, Symbol(I, Decl(structural1.ts, 0, 10)) salt:number; ->salt : number +>salt : number, Symbol(salt, Decl(structural1.ts, 1, 24)) pepper:number; ->pepper : number +>pepper : number, Symbol(pepper, Decl(structural1.ts, 2, 20)) } export function f(i:I) { ->f : (i: I) => void ->i : I ->I : I +>f : (i: I) => void, Symbol(f, Decl(structural1.ts, 4, 5)) +>i : I, Symbol(i, Decl(structural1.ts, 6, 22)) +>I : I, Symbol(I, Decl(structural1.ts, 0, 10)) } f({salt:2,pepper:0}); >f({salt:2,pepper:0}) : void ->f : (i: I) => void +>f : (i: I) => void, Symbol(f, Decl(structural1.ts, 4, 5)) >{salt:2,pepper:0} : { salt: number; pepper: number; } ->salt : number ->pepper : number +>salt : number, Symbol(salt, Decl(structural1.ts, 9, 7)) +>2 : number +>pepper : number, Symbol(pepper, Decl(structural1.ts, 9, 14)) +>0 : number } diff --git a/tests/baselines/reference/structuralTypeInDeclareFileForModule.types b/tests/baselines/reference/structuralTypeInDeclareFileForModule.types index ff023a79133..5251bbc4017 100644 --- a/tests/baselines/reference/structuralTypeInDeclareFileForModule.types +++ b/tests/baselines/reference/structuralTypeInDeclareFileForModule.types @@ -1,10 +1,10 @@ === tests/cases/compiler/structuralTypeInDeclareFileForModule.ts === module M { export var x; } ->M : typeof M ->x : any +>M : typeof M, Symbol(M, Decl(structuralTypeInDeclareFileForModule.ts, 0, 0)) +>x : any, Symbol(x, Decl(structuralTypeInDeclareFileForModule.ts, 1, 21)) var m = M; ->m : typeof M ->M : typeof M +>m : typeof M, Symbol(m, Decl(structuralTypeInDeclareFileForModule.ts, 2, 3)) +>M : typeof M, Symbol(M, Decl(structuralTypeInDeclareFileForModule.ts, 0, 0)) diff --git a/tests/baselines/reference/styleOptions.types b/tests/baselines/reference/styleOptions.types index 76c95abb3c6..d636993519d 100644 --- a/tests/baselines/reference/styleOptions.types +++ b/tests/baselines/reference/styleOptions.types @@ -2,15 +2,17 @@ ///